@univerjs-pro/collaboration-client 0.4.1-nightly.202410201605 → 0.4.1-nightly.202410211606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x1551de=_0x15b1;(function(_0x4df1a1,_0x59833e){const _0x5d6565=_0x15b1,_0x1ea9a7=_0x4df1a1();while(!![]){try{const _0x6a617d=-parseInt(_0x5d6565(0x52f))/0x1*(parseInt(_0x5d6565(0x28b))/0x2)+-parseInt(_0x5d6565(0x33c))/0x3*(parseInt(_0x5d6565(0x20a))/0x4)+parseInt(_0x5d6565(0x31b))/0x5*(-parseInt(_0x5d6565(0x448))/0x6)+-parseInt(_0x5d6565(0x360))/0x7*(-parseInt(_0x5d6565(0x277))/0x8)+parseInt(_0x5d6565(0x1f8))/0x9*(-parseInt(_0x5d6565(0x3b6))/0xa)+parseInt(_0x5d6565(0x45b))/0xb*(-parseInt(_0x5d6565(0x235))/0xc)+parseInt(_0x5d6565(0x482))/0xd;if(_0x6a617d===_0x59833e)break;else _0x1ea9a7['push'](_0x1ea9a7['shift']());}catch(_0x3bea60){_0x1ea9a7['push'](_0x1ea9a7['shift']());}}}(_0x41ee,0x8efb0));var si=Object[_0x1551de(0x2f4)],ii=(_0x2f906c,_0x1ea250,_0x576098)=>_0x1ea250 in _0x2f906c?si(_0x2f906c,_0x1ea250,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x576098}):_0x2f906c[_0x1ea250]=_0x576098,l=(_0x1a649b,_0x8d4fd0,_0x3c9f51)=>ii(_0x1a649b,typeof _0x8d4fd0!=_0x1551de(0x4fd)?_0x8d4fd0+'':_0x8d4fd0,_0x3c9f51);import{createIdentifier as _0x28e772,Inject as _0x1e17a6,Disposable as _0x241134,DisposableCollection as _0x131e3a,toDisposable as _0x544db0,IConfigService as _0x162b76,ILogService as _0x57653f,UserManagerService as _0x380bcd,UniverInstanceType as _0x55d6cf,IUniverInstanceService as _0x39ffff,LocaleService as _0x2268fa,Optional as _0x302b5c,RxDisposable as _0x1a4d16,Injector as _0x2c37d0,Tools as _0x3358a8,ILocalStorageService as _0x1ae577,Rectangle as _0x1d754c,ICommandService as _0x1b1421,JSONX as _0x4d8492,CommandType as _0x36b537,IPermissionService as _0x42a9f2,IUndoRedoService as _0x3046ff,sequenceExecute as _0x2de33d,debounce as _0x5b918a,COLORS as _0x4bca3e,ColorKit as _0x51530e,ThemeService as _0x5b005a,fromEventSubject as _0x35c5dc,useDependency as _0x2c42a7,connectInjector as _0xb693b1,Workbook as _0x3a418b,isInternalEditorID as _0x388de8,LocalUndoRedoService as _0x126412,IContextService as _0x3c9612,DependentOn as _0x309260,Plugin as _0x4da272,touchDependencies as _0x25b34c,IAuthzIoService as _0x23b3b1,mergeOverrideWithDependencies as _0x2e57e3}from'@univerjs/core';import{Subject as _0x47928e,merge as _0x4d44c4,takeUntil as _0x2e6539,BehaviorSubject as _0x278b2c,distinctUntilChanged as _0x408e5e,fromEvent as _0xbba4c3,map as _0x533f04,shareReplay as _0x3c413f,take as _0x43d9c0,of as _0x55d71b,debounceTime as _0x328bac,filter as _0x5ccf08,switchMap as _0x228bc0,combineLatest as _0x4dd8de,concatMap as _0x2cf83c,mapTo as _0x553d1a}from'rxjs';import{map as _0x336dd2,take as _0x1e05ba,filter as _0x357d19,delay as _0x22da72,throttleTime as _0x1b73c6,takeUntil as _0x3afad8,switchMap as _0x587fbb}from'rxjs/operators';import{MessageType as _0x2710e7,Tooltip as _0x1e912a}from'@univerjs/design';import{IBeforeCloseService as _0x17edcb,IMessageService as _0x2c0505,INotificationService as _0x59f2dd,useObservable as _0x3bafa4,BuiltInUIPart as _0x2fd672,IUIPartsService as _0x276a39}from'@univerjs/ui';import{HTTPService as _0x2ada7,WebSocketService as _0x15b636,MergeInterceptorFactory as _0x64732f,HTTPRequest as _0x583456,IHTTPImplementation as _0xd79801,XHRHTTPImplementation as _0x14fb29,ThresholdInterceptorFactory as _0x97582e}from'@univerjs/network';import{CollaborationEvent as _0x5b54e6,parseChangesetToProtocol as _0x6f1e69,ISnapshotServerService as _0x347090,isTransformMutationFailure as _0x532e50,isTransformMutationsWithChangesetSuccess as _0xb2b180,ITransformService as _0x19690b,RevisionService as _0x5b3021,mapDocumentTypeToUniverType as _0x3687fc,isTransformChangesetsSuccess as _0x34eddb,CompressMutationService as _0x13b0c8,parseProtocolChangeset as _0x54e663,SnapshotService as _0x475013,textEncoder as _0x3bf2d1,b64DecodeUnicode as _0x256849,isTransformMutationsWithChangesetFailure as _0x4b804d,UniverCollaborationPlugin as _0x49871e}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x377ae4}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x443b09,DocStateChangeManagerService as _0xfcb938,NodePositionConvertToCursor as _0x4e4c87,isValidRectRange as _0x4f9221,NodePositionConvertToRectRange as _0x41c0d6,TEXT_RANGE_LAYER_INDEX as _0x21be17,SetDocZoomRatioOperation as _0x4e5807}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0xfd41d9,SetSelectionsOperation as _0x535015,InsertSheetMutation as _0x5dd58c,EmptyMutation as _0x3c1917,WorkbookEditablePermission as _0x454d8a,RefRangeService as _0x58a9c7,EffectRefRangId as _0x5e34f6,handleIRemoveRow as _0x1ec08f,handleIRemoveCol as _0x40d87a,handleMoveRange as _0x595129,handleInsertRow as _0x1cf46a,handleInsertRangeMoveRight as _0x4670d1,handleInsertRangeMoveDown as _0x9352bb,handleInsertCol as _0x341cd2,handleDeleteRangeMoveUp as _0x368149,handleDeleteRangeMoveLeft as _0x4928f2,runRefRangeMutations as _0x1be136,SetWorksheetActivateCommand as _0x52bf81}from'@univerjs/sheets';import{IRenderManagerService as _0x5978ec,Shape as _0x2ce64a,Rect as _0x198f56,getColor as _0x277d19,RegularPolygon as _0x20175b,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x35563d,Vector2 as _0x1052d6}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x29f57e,RichTextEditingMutation as _0x315728,SetTextSelectionsOperation as _0x477c79,DocSkeletonManagerService as _0x1d79f4}from'@univerjs/docs';import{ImageSourceType as _0x113090,ImageUploadStatusType as _0x15532d,IImageIoService as _0xc48711}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x4023cd,serializeRangeWithSheet as _0x52f47a}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x51b777,VIEWPORT_KEY as _0x9ff851,getCoordByCell as _0x19d398,getSheetObject as _0x29c7cf,SheetPermissionInitController as _0xea1c95}from'@univerjs/sheets-ui';import _0x1bcc89,{forwardRef as _0x455bcc,useRef as _0x176724,createElement as _0x20d1ba,useCallback as _0xc8cdc7}from'react';import{IRemoteInstanceService as _0x42220d}from'@univerjs/rpc';import{getAttachHeader as _0x384d73}from'@univerjs-pro/license';const Sn='SNAPSHOT_SERVER_URL_KEY',pn=_0x1551de(0x27a),vn=_0x1551de(0x457),La='SEND_CHANGESET_TIMEOUT',In=0x7d0,En=_0x1551de(0x3fc),Cn=_0x1551de(0x2d7),bn=_0x1551de(0x230),Tn=0x7530,$s=_0x1551de(0x302),js=0x4e20,Rn=0x4e20,On='RETRY_CONNECTING_MAX_COUNT',Dn=0x3,wn='LOCAL_CACHE_INTERVAL',Pn=0x3e8,yn=_0x1551de(0x47c),Un=_0x1551de(0x21b),Nn=_0x1551de(0x33a),Mn=_0x1551de(0x2e0);var xs=(_0x220f47=>(_0x220f47[_0x220f47[_0x1551de(0x29a)]=0x0]=_0x1551de(0x29a),_0x220f47[_0x220f47['OK']=0x1]='OK',_0x220f47[_0x220f47[_0x1551de(0x23b)]=0x2]=_0x1551de(0x23b),_0x220f47[_0x220f47[_0x1551de(0x2d1)]=0x3]=_0x1551de(0x2d1),_0x220f47[_0x220f47[_0x1551de(0x4f0)]=0x4]=_0x1551de(0x4f0),_0x220f47[_0x220f47[_0x1551de(0x260)]=0x5]=_0x1551de(0x260),_0x220f47[_0x220f47[_0x1551de(0x28d)]=0x6]=_0x1551de(0x28d),_0x220f47[_0x220f47[_0x1551de(0x3ca)]=0x7]=_0x1551de(0x3ca),_0x220f47[_0x220f47[_0x1551de(0x46b)]=0x8]=_0x1551de(0x46b),_0x220f47[_0x220f47['COMPLETION_FINISHED']=0x9]=_0x1551de(0x2f1),_0x220f47[_0x220f47[_0x1551de(0x2dd)]=0x1389]=_0x1551de(0x2dd),_0x220f47[_0x220f47[_0x1551de(0x488)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x220f47[_0x220f47[_0x1551de(0x3dc)]=0x1772]=_0x1551de(0x3dc),_0x220f47[_0x220f47[_0x1551de(0x2bb)]=0x1773]=_0x1551de(0x2bb),_0x220f47[_0x220f47['APPLY_REJECT']=0x1b59]=_0x1551de(0x297),_0x220f47[_0x220f47[_0x1551de(0x1f7)]=0x1b5a]=_0x1551de(0x1f7),_0x220f47[_0x220f47['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x1551de(0x3fe),_0x220f47[_0x220f47[_0x1551de(0x296)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x220f47[_0x220f47[_0x1551de(0x4a8)]=0x1b5d]=_0x1551de(0x4a8),_0x220f47[_0x220f47[_0x1551de(0x304)]=0x1f41]=_0x1551de(0x304),_0x220f47[_0x220f47['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x1551de(0x252),_0x220f47[_0x220f47['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1551de(0x30a),_0x220f47[_0x220f47[_0x1551de(0x49b)]=0x232b]=_0x1551de(0x49b),_0x220f47[_0x220f47[_0x1551de(0x1db)]=0x232c]=_0x1551de(0x1db),_0x220f47[_0x220f47[_0x1551de(0x26e)]=0x232d]=_0x1551de(0x26e),_0x220f47[_0x220f47[_0x1551de(0x35a)]=0x2711]=_0x1551de(0x35a),_0x220f47[_0x220f47[_0x1551de(0x503)]=0x2712]=_0x1551de(0x503),_0x220f47[_0x220f47['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x1551de(0x342),_0x220f47[_0x220f47[_0x1551de(0x2d3)]=0x2714]=_0x1551de(0x2d3),_0x220f47[_0x220f47['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x220f47))(xs||{}),k=(_0x445fb4=>(_0x445fb4[_0x445fb4[_0x1551de(0x4d5)]=0x0]=_0x1551de(0x4d5),_0x445fb4[_0x445fb4[_0x1551de(0x36e)]=0x1]='UNIVER_DOC',_0x445fb4[_0x445fb4[_0x1551de(0x273)]=0x2]=_0x1551de(0x273),_0x445fb4[_0x445fb4[_0x1551de(0x395)]=0x3]=_0x1551de(0x395),_0x445fb4[_0x445fb4[_0x1551de(0x435)]=0x4]='UNIVER_PROJECT',_0x445fb4[_0x445fb4[_0x1551de(0x1c2)]=-0x1]=_0x1551de(0x1c2),_0x445fb4))(k||{}),I=(_0x3488e4=>(_0x3488e4[_0x3488e4[_0x1551de(0x2ee)]=0x0]='UNKNOWN_CMD',_0x3488e4[_0x3488e4['HELLO']=0x1]=_0x1551de(0x411),_0x3488e4[_0x3488e4['JOIN']=0x2]=_0x1551de(0x350),_0x3488e4[_0x3488e4['LEAVE']=0x3]='LEAVE',_0x3488e4[_0x3488e4[_0x1551de(0x234)]=0x4]=_0x1551de(0x234),_0x3488e4[_0x3488e4[_0x1551de(0x514)]=0x5]=_0x1551de(0x514),_0x3488e4[_0x3488e4[_0x1551de(0x3f2)]=0x6]=_0x1551de(0x3f2),_0x3488e4[_0x3488e4[_0x1551de(0x1c2)]=-0x1]=_0x1551de(0x1c2),_0x3488e4))(I||{}),Vt=(_0x32fa55=>(_0x32fa55[_0x32fa55['UNKNOWN_CODE']=0x0]=_0x1551de(0x3f1),_0x32fa55[_0x32fa55['OK']=0x1]='OK',_0x32fa55[_0x32fa55[_0x1551de(0x487)]=0x2]=_0x1551de(0x487),_0x32fa55[_0x32fa55[_0x1551de(0x1c2)]=-0x1]=_0x1551de(0x1c2),_0x32fa55))(Vt||{}),Hs=(_0x4b25a3=>(_0x4b25a3[_0x4b25a3[_0x1551de(0x278)]=0x0]=_0x1551de(0x278),_0x4b25a3[_0x4b25a3['HttpImport']=0x1]=_0x1551de(0x2c5),_0x4b25a3[_0x4b25a3[_0x1551de(0x38a)]=0x2]='HttpExport',_0x4b25a3[_0x4b25a3[_0x1551de(0x2c1)]=0x3]=_0x1551de(0x2c1),_0x4b25a3[_0x4b25a3[_0x1551de(0x202)]=0x4]=_0x1551de(0x202),_0x4b25a3[_0x4b25a3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4b25a3))(Hs||{});const $=_0x1551de(0x4ad),An={};function Ln(_0x4cfbe4){const _0x519e58=_0x1551de;var _0xeba7a2,_0x3726ae,_0x278331,_0x548468;const _0x569f83=_0x4cfbe4[_0x519e58(0x253)],_0x43503c=JSON[_0x519e58(0x1e6)](_0x569f83);switch(_0x43503c[_0x519e58(0x348)]){case I['HEARTBEAT']:case I[_0x519e58(0x411)]:{const _0x2de865=_0x43503c[_0x519e58(0x352)];return{..._0x43503c,'data':_0x2de865,'cmd':_0x43503c[_0x519e58(0x348)]};}case I['JOIN']:{const _0x4b6913=_0x43503c[_0x519e58(0x42b)];return{..._0x43503c,'data':_0x4b6913,'cmd':_0x43503c['cmd']};}case I[_0x519e58(0x3f2)]:{const _0x56d08e=_0x43503c['collaMsg'];switch(_0x56d08e[_0x519e58(0x1be)]){case _0x5b54e6[_0x519e58(0x3f0)]:return{..._0x43503c,'data':{..._0x56d08e,'data':(_0xeba7a2=_0x56d08e[_0x519e58(0x232)])==null?void 0x0:_0xeba7a2['cs']},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6[_0x519e58(0x3e9)]:return{..._0x43503c,'data':{..._0x56d08e,'data':(_0x3726ae=_0x56d08e[_0x519e58(0x392)])==null?void 0x0:_0x3726ae['cs']},'cmd':_0x43503c['cmd']};case _0x5b54e6['NEW_CHANGESETS']:return{..._0x43503c,'data':{..._0x56d08e,'data':(_0x278331=_0x56d08e['newCsEvent'])==null?void 0x0:_0x278331['cs']},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6[_0x519e58(0x4cb)]:return{..._0x43503c,'data':{..._0x56d08e,'data':(_0x548468=_0x56d08e[_0x519e58(0x42f)])==null?void 0x0:_0x548468['cs']},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6['UPDATE_CURSOR']:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e['updateCursorEvent']},'cmd':_0x43503c['cmd']};case _0x5b54e6[_0x519e58(0x429)]:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e['joinEvent']},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6[_0x519e58(0x319)]:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e[_0x519e58(0x405)]},'cmd':_0x43503c['cmd']};case _0x5b54e6['LIVESHARE_NEW_HOST']:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e[_0x519e58(0x247)]},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6[_0x519e58(0x4d6)]:case _0x5b54e6[_0x519e58(0x4e1)]:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e[_0x519e58(0x497)]},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6['LIVESHARE_TERMINATE']:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e[_0x519e58(0x247)]},'cmd':_0x43503c['cmd']};case _0x5b54e6[_0x519e58(0x344)]:return{..._0x43503c,'data':_0x56d08e,'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6[_0x519e58(0x2da)]:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e['commentUpdateEvent']},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6['UPDATE_PERMISSION_OBJ']:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e[_0x519e58(0x45f)]},'cmd':_0x43503c[_0x519e58(0x348)]};case _0x5b54e6['SHOULD_CLOSE_CONN']:return{..._0x43503c,'data':{..._0x56d08e,'data':_0x56d08e[_0x519e58(0x441)]},'cmd':_0x43503c['cmd']};default:return _0x43503c;}}default:return _0x43503c;}}function $n(_0x2ce830){const _0x4339e1=_0x1551de;switch(_0x2ce830['cmd']){case I[_0x4339e1(0x514)]:case I[_0x4339e1(0x411)]:return JSON[_0x4339e1(0x3da)]({'cmd':_0x2ce830[_0x4339e1(0x348)],'routeKey':_0x2ce830[_0x4339e1(0x1c0)]});case I['INGEST']:{let _0x3d28c2;switch(_0x2ce830[_0x4339e1(0x253)][_0x4339e1(0x1be)]){case _0x5b54e6[_0x4339e1(0x32f)]:{_0x3d28c2={'eventID':_0x5b54e6[_0x4339e1(0x32f)],'updateCursorEvent':_0x2ce830['data']['data']};break;}case _0x5b54e6[_0x4339e1(0x319)]:{_0x3d28c2={'eventID':_0x5b54e6['USERS_LEAVE'],'leaveEvent':_0x2ce830[_0x4339e1(0x253)][_0x4339e1(0x253)]};break;}case _0x5b54e6[_0x4339e1(0x429)]:{_0x3d28c2={'eventID':_0x5b54e6['USERS_ENTER'],'joinEvent':_0x2ce830['data']['data']};break;}case _0x5b54e6[_0x4339e1(0x31f)]:{_0x3d28c2={'eventID':_0x5b54e6['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2ce830[_0x4339e1(0x253)][_0x4339e1(0x253)]};break;}case _0x5b54e6[_0x4339e1(0x4e1)]:{_0x3d28c2={'eventID':_0x5b54e6[_0x4339e1(0x4e1)],'liveShareOperation':_0x2ce830[_0x4339e1(0x253)][_0x4339e1(0x253)]};break;}case _0x5b54e6[_0x4339e1(0x40a)]:{_0x3d28c2={'eventID':_0x5b54e6[_0x4339e1(0x40a)],'liveShareTerminate':_0x2ce830[_0x4339e1(0x253)][_0x4339e1(0x253)]};break;}case _0x5b54e6[_0x4339e1(0x33e)]:{_0x3d28c2={'eventID':_0x5b54e6['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x2ce830['data'][_0x4339e1(0x253)]};break;}case _0x5b54e6[_0x4339e1(0x4d6)]:{_0x3d28c2={'eventID':_0x5b54e6[_0x4339e1(0x4d6)]};break;}default:_0x3d28c2={'eventID':_0x2ce830[_0x4339e1(0x253)][_0x4339e1(0x1be)]};}return JSON['stringify']({'cmd':_0x2ce830[_0x4339e1(0x348)],'routeKey':_0x2ce830[_0x4339e1(0x1c0)],'collaMsg':_0x3d28c2});}case I[_0x4339e1(0x350)]:return JSON[_0x4339e1(0x3da)]({'cmd':_0x2ce830[_0x4339e1(0x348)],'routeKey':_0x2ce830[_0x4339e1(0x1c0)],'joinReq':_0x2ce830[_0x4339e1(0x253)]});case I[_0x4339e1(0x3e6)]:return JSON['stringify']({'cmd':_0x2ce830[_0x4339e1(0x348)],'routeKey':_0x2ce830[_0x4339e1(0x1c0)],'leaveReq':_0x2ce830[_0x4339e1(0x253)]});default:throw new Error(_0x4339e1(0x28a));}}var jn=Object[_0x1551de(0x2f4)],xn=Object[_0x1551de(0x1d2)],Hn=(_0x40f572,_0x1e2c96,_0x3384a7,_0x52457d)=>{const _0x52dbef=_0x1551de;for(var _0x582e37=_0x52457d>0x1?void 0x0:_0x52457d?xn(_0x1e2c96,_0x3384a7):_0x1e2c96,_0x315909=_0x40f572[_0x52dbef(0x379)]-0x1,_0x2869ad;_0x315909>=0x0;_0x315909--)(_0x2869ad=_0x40f572[_0x315909])&&(_0x582e37=(_0x52457d?_0x2869ad(_0x1e2c96,_0x3384a7,_0x582e37):_0x2869ad(_0x582e37))||_0x582e37);return _0x52457d&&_0x582e37&&jn(_0x1e2c96,_0x3384a7,_0x582e37),_0x582e37;},Oe=(_0x29e72b,_0x6b91ad)=>(_0x559a32,_0x2f4840)=>_0x6b91ad(_0x559a32,_0x2f4840,_0x29e72b);const ks=_0x28e772('univer-pro.collaboration-client-socket-service');function kn(_0x26c7d3,_0x2b661b,_0xccc592){const _0x12ce7d=_0x1551de;return _0x26c7d3+'/'+_0x2b661b+_0x12ce7d(0x3a5)+_0xccc592+_0x12ce7d(0x3f9);}let Ct=class extends _0x241134{constructor(_0x22e938,_0x11cbdf,_0x341be2,_0x3c764d,_0x63d9fc){const _0x4adc6b=_0x1551de;super(),this['_http']=_0x22e938,this[_0x4adc6b(0x3b7)]=_0x11cbdf,this[_0x4adc6b(0x1fb)]=_0x341be2,this['_logService']=_0x3c764d,this['_snapshotServerService']=_0x63d9fc;}[_0x1551de(0x34a)](_0x2e94be){const _0x180242=_0x1551de,_0x4fff63=this[_0x180242(0x3b7)][_0x180242(0x34a)](_0x2e94be);if(!_0x4fff63)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3743f8=new _0x131e3a(),_0x3625e0=new _0x47928e();_0x3743f8[_0x180242(0x285)](_0x4fff63[_0x180242(0x2a5)][_0x180242(0x245)](_0x5e5b6b=>_0x3625e0[_0x180242(0x3a7)](_0x5e5b6b))),_0x3743f8['add'](_0x544db0(()=>_0x3625e0[_0x180242(0x4c0)]()));const _0x36c5f6=new _0x47928e();_0x3743f8['add'](_0x4fff63['error$'][_0x180242(0x245)](_0x48ba02=>_0x36c5f6[_0x180242(0x3a7)](_0x48ba02))),_0x3743f8['add'](_0x544db0(()=>_0x36c5f6[_0x180242(0x4c0)]()));const _0x2f8a9f=new _0x47928e();_0x3743f8[_0x180242(0x285)](_0x4fff63[_0x180242(0x41a)]['subscribe'](_0x547bcd=>{const _0x217fdc=_0x180242,_0x1f6514=Ln(_0x547bcd);_0x2f8a9f[_0x217fdc(0x3a7)](_0x1f6514);})),_0x3743f8[_0x180242(0x285)](_0x544db0(()=>_0x2f8a9f['complete']()));let _0x472992;const _0x4136d9=()=>{const _0x289571=_0x180242;_0x36c5f6[_0x289571(0x3a7)](new Event(_0x289571(0x26f))),_0x3625e0[_0x289571(0x3a7)](new CloseEvent(_0x289571(0x26f))),_0x472992['close']();};return _0x472992={'memberID':'','close$':_0x3625e0['asObservable'](),'error$':_0x36c5f6[_0x180242(0x1ea)](),'open$':_0x4fff63[_0x180242(0x250)],'message$':_0x2f8a9f[_0x180242(0x1ea)](),'send':_0x5ccd65=>{const _0x5a1cf4=_0x180242;if(_0x5ccd65['cmd']===I[_0x5a1cf4(0x234)]){if(_0x5ccd65[_0x5a1cf4(0x253)][_0x5a1cf4(0x1be)]===_0x5b54e6['SUBMIT_CHANGESET']){this[_0x5a1cf4(0x39f)](_0x472992,_0x5ccd65[_0x5a1cf4(0x253)])[_0x5a1cf4(0x1b6)](_0x34efd8=>{const _0x569167=_0x5a1cf4;this[_0x569167(0x428)][_0x569167(0x31c)](_0x34efd8),_0x4136d9();});return;}if(_0x5ccd65[_0x5a1cf4(0x253)][_0x5a1cf4(0x1be)]===_0x5b54e6['FETCH_MISSING']){const _0x18cee2=_0x5ccd65[_0x5a1cf4(0x253)];this['_fetchMissChangesets'](_0x18cee2)[_0x5a1cf4(0x1d7)](_0x2d71f1=>{const _0x1cb42f=_0x5a1cf4;_0x2f8a9f['next']({'cmd':I[_0x1cb42f(0x3f2)],'code':Vt['OK'],'routeKey':_0x18cee2['data']['unitID'],'routeType':'','data':{'eventID':_0x5b54e6['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2d71f1}}});})[_0x5a1cf4(0x1b6)](_0x2e03a2=>{const _0x503d7f=_0x5a1cf4;this[_0x503d7f(0x428)][_0x503d7f(0x31c)](_0x2e03a2),_0x4136d9();});return;}}_0x4fff63[_0x5a1cf4(0x3e4)]($n(_0x5ccd65));},'close':()=>{const _0x505460=_0x180242;_0x4fff63['close'](),_0x3743f8[_0x505460(0x3d3)]();}},_0x472992;}async[_0x1551de(0x39f)](_0x11cae9,_0x5208ad){const _0x42d688=_0x1551de;var _0x400ede,_0xca74f;const {unitType:_0x1ec819,unitID:_0x131418,changeset:_0x5d50bf}=_0x5208ad[_0x42d688(0x253)],_0x12fd65={'unitID':_0x131418,'memberID':_0x11cae9[_0x42d688(0x201)],'type':_0x1ec819,'changeset':_0x6f1e69(_0x5d50bf)},_0x5e75fb=this[_0x42d688(0x1fb)][_0x42d688(0x31a)](yn),_0x440de2=this[_0x42d688(0x1fb)][_0x42d688(0x31a)]($),_0x38b9c7=kn((_0xca74f=(_0x400ede=_0x440de2==null?void 0x0:_0x440de2[_0x42d688(0x4d4)])!=null?_0x400ede:_0x5e75fb)!=null?_0xca74f:Un,_0x1ec819,_0x131418);try{await this[_0x42d688(0x2b2)][_0x42d688(0x3d7)](_0x38b9c7,{'body':_0x12fd65});}catch(_0x3ae5a8){throw this[_0x42d688(0x428)]['error'](_0x42d688(0x35c),_0x42d688(0x4a6)),_0x3ae5a8;}}async[_0x1551de(0x432)](_0x4f28af){const _0x517531=_0x1551de,{unitID:_0x3752c1,from:_0x24ea0b,to:_0x2292e8,unitType:_0x173190}=_0x4f28af[_0x517531(0x253)];return(await this['_snapshotServerService'][_0x517531(0x4d9)]({'metadata':void 0x0},{'unitID':_0x3752c1,'type':_0x173190,'from':_0x24ea0b,'to':_0x2292e8}))[_0x517531(0x3ae)];}};Ct=Hn([Oe(0x0,_0x1e17a6(_0x2ada7)),Oe(0x1,_0x1e17a6(_0x15b636)),Oe(0x2,_0x162b76),Oe(0x3,_0x57653f),Oe(0x4,_0x347090)],Ct);const Bn='collaboration_new_changeset';function Vn(_0x1f6b85){const _0x101571=_0x1551de;return JSON['stringify'](_0x1f6b85)[_0x101571(0x379)];}class Bs{constructor(){const _0x1bd68b=_0x1551de;l(this,'_commentUpdate$',new _0x47928e()),l(this,_0x1bd68b(0x424),this[_0x1bd68b(0x494)][_0x1bd68b(0x1ea)]());}[_0x1551de(0x20c)](_0x5ce2da){const _0x3584bf=_0x1551de;this[_0x3584bf(0x494)][_0x3584bf(0x3a7)](_0x5ce2da);}}var Fn=Object[_0x1551de(0x2f4)],Wn=Object[_0x1551de(0x1d2)],Gn=(_0x2d9582,_0x59831e,_0x36f110,_0x4c0ce4)=>{const _0x35669b=_0x1551de;for(var _0xe327eb=_0x4c0ce4>0x1?void 0x0:_0x4c0ce4?Wn(_0x59831e,_0x36f110):_0x59831e,_0xcd633a=_0x2d9582[_0x35669b(0x379)]-0x1,_0x3aad27;_0xcd633a>=0x0;_0xcd633a--)(_0x3aad27=_0x2d9582[_0xcd633a])&&(_0xe327eb=(_0x4c0ce4?_0x3aad27(_0x59831e,_0x36f110,_0xe327eb):_0x3aad27(_0xe327eb))||_0xe327eb);return _0x4c0ce4&&_0xe327eb&&Fn(_0x59831e,_0x36f110,_0xe327eb),_0xe327eb;},as=(_0x2ac398,_0x40d3ca)=>(_0x597c48,_0x14a3fd)=>_0x40d3ca(_0x597c48,_0x14a3fd,_0x2ac398);function _0x41ee(){const _0x53ec87=['fetchThroughInterceptors','_hover','OffLineSingle','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','\x0aCurrent:\x20','reqId','_getAnchorBounding','toRgbString','_httpService','_socketMessageSubscription','rgba(255,\x20255,\x20255,\x200.01)','url(#on-line-single_clip0_910_349)','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','triggerDblclick','updatePermissionPoint','_onOffline','roomMembers','complete','_shouldReportTelemetry','current','_urlService','UUID','_clearUndo','disableLocalCache','SUBMIT_CHANGESET','\x0aAfter:\x20','univer-online-status-icon','transformUndoRedo','CHANGESET_REJ','getUniverSheetInstance','save\x20fail\x20reason\x20is\x20','prototype','_onRemoteRejected','_univerInstanceService','_transformUndoredo','/role','/universer-api/stream/file/upload','collabSubmitChangesetUrl','UNIVER_UNKNOWN','LIVESHARE_FETCH_OPERATIONS','replace','popstate','fetchMissingChangesets','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unit','_unlockTransition','originalMeta','reconnect','registerRenderModule','close','LIVESHARE_OPERATION','setAlpha','pauseCollaboration','urlChange$','_render','snapshot','_colorIndex','collaboration-session-retry','[OfflineState]:\x20received\x20rejection.','loadOfflineData','objectType','transformByState','setShapeProps','onMissingChangesets','transformIMECache','NOT_FOUND','univer-pro.collaboration-client.single-active-unit-service','onTransformSelections','readAsDataURL','encodeURIComponent','SUCCUSS','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','updateOfflineData','headers','registerBeforeClose','_localStorageService','session.connection-failed','onPointerEnter$','symbol','focused$','_changesetSessionId','getItem','onRendered','UPDATE_PERMISSION_OBJ','YUUMI_URL_COL_OUT_OF_RANGE','/fetchmissing?from=','Univer','pipe','[UniverCollaborationClientPlugin]','on-line-single','addObjects','COMPRESS_MUTATION_APPLY','_startDocCollabCursor','sheetID','_localeService','_drawRectRange','restore','colorChannel1','_updateSubUnitFromURLParams','_commandService','_shapes','HEARTBEAT','_executeRemoteChangeset','CONFLICT','getMemberID','_onConnectionOpen','members','_transitionLocked','skeleton','generateRandomId','_cursor','dispose$','_replaceFileID','_initMergeInterceptor','engine','verdancy600','_onUserLeave','socketService','_initResize','_changesetReqId','/block/','PENDING','now','saveSheetBlock','_clearHeartbeatTimer','editingUnit','title','currentSkeleton$','699343mIovLS','_docSkeletonManagerService','NOT_COLLAB','makeDirty','params','_removeClearOtherTimer','_drawTextRange','bind','getSheetBySheetId','_createInitialState','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_queuedRemoteChangesets','_telemetryInfo','_onJoinRoomEvent','_collaborationSessionService','url(#off-line-single_clip0_910_343)','signUrlServerUrl','font','catch','function','state','updateCollaborator','isEditing','baseRev','_removeCollabCursors','loadSheet','eventID','_registerRenderDependencies','routeKey','getMember','UNRECOGNIZED','rev','getInterceptPoints','ERROR_EXCEED_SIZE','IDLE','JOINING','unknown','FETCH_MISS','FETCH_MISSING','objectID','_checkMissing','_permissionService','filter','setConfig','docStateChange$','values','getOwnPropertyDescriptor','collaboration.single-unit.warning','_roomMembers$','setWaitCount','xlink:href','then','_type','[OfflineState]:\x20received\x20acknowledgement.','beginPath','LICENSE_EXPORT_SIZE_EXCEEDED','_sessions','getCurrentRevOfUnit','lineTo','trim','save','_candidateSocket','_collabSessionService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','defIds','append','parse','_startCollaboration','responseType','getCollabEntity','asObservable','_cursors','[CollaborationSessionService]','_initCloseConn','getActiveRange','syncEditingCollabCursor','_docTransformIMECacheService','unsubscribe','/object','_remoteChangesetQueue','_onRemoteACK','_compressMutationService','_selfUnitIDs','APPLY_NON_SEQUENTIAL_REVISION','220788RNOdbZ','min','userID','_configService','displayName','_localCacheService','/-/object/-/batch_allowed','/object/','collabStatus.notCollab','memberID','UnitSnapshot','fetch_missing','resend','[DataLoaderController]','disposeUnit','status$','getActiveSheet','getCurrentSelections','20FjiDUl','getCurrent','onCommentUpdate','getOwnPropertySymbols','ranges','loadDoc','onSyncEditingCollabCursor','_syncEditingCollabCursor','_session','enableOfflineEditing','getUnit','Error\x20on\x20receiving\x20event','hovered','[CollaborationSessionService]:\x20socket\x20error','awaitingChangeset','_handleHover','ERROR_IMAGE','/universer-api/comb','getCurrentUser','_createSocket','_substituteUndoStack','M0\x200H16V16H0z','transformChangesets','_cursorShapes','_clearOtherTimers','_getSignURL','unitId','&to=','/rev/','collab-client.tooltip.reconnect','[CollaborationUndoRedoService]','_onCursorUpdate','onlineStatus','subscribeEvent','_disabled','_userManagerService','getWorkbookSelections','getOffsetConfig','HEARTBEAT_INTERVAL','downloadEndpointUrl','permissionRejEvent','reject','INGEST','1142472PyaaCL','_timeoutTimer','top','off-line-single','_tryEnsureSocket','/collaborator','INTERNAL_ERROR','round','\x20to\x20','target','color','_labelPosition','resolve','svg','_exhaustRemoteChangesetQueue','getCollabEntity$','subscribe','univer-online','liveShareNewHost','getParam','translate(.97)','drawWith','_rescheduleHeartbeat','sid','_commentService','children','1em','open$','find','LICENSE_MAX_UNITS_EXCEEDED','data','_updateCollabCursors','roomMembers$','getViewport','bottom','attrs','onlineStatusIcon','_loadSheet','FromArray','transformRemoteChangeset','MUTATION','_instanceService','registerOnClose','UNAUTHENTICATED','isPermissionRej','_onRemoteChangeset','getUnhiddenWorksheets','image/png','collab-rect-range-','session','_updateLocalCursor','_getRedoStack','key','debug','_collabCursorController','randomUUID','text','LICENSE_DISTRO_REJECTED','connection\x20error','setTimeout','_anchor','enableLocalCache','UNIVER_SHEET','FileId','findNodePositionByCharIndex','ONLINE','2504YmvPry','Undefined','startTime','/universer-api/snapshot','clearTimeout','put','executeCommand','_initRequestHeader','collabWebSocketUrl','onTransformRemoteChangesetByIMECache','image/jpg','_initModules','listRoles','init','add','getTypeOfUnitAdded$','backgroundColor','_getAPIPrefix','loginUrlKey','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','2AhKNuT','synced','ALREADY_EXISTS','visibilitychange','_notificationService','actions','getRelativeToViewportCoord','div','toggleOffline','_updateState','_getCtorByUniverType','APPLY_PERMISSION_DENIED','APPLY_REJECT','_drawAnchor','toggleOnline','UNDEFINED','_telemetryService','not_collab','collabStatus.fetchMiss','roles','_initStatusListener','addObject','_handleHeartbeatEvent','c1Prime','InsertRangeMoveRightCommandId','_online','close$','_undoRedoService','getSheetId','_socket$','0\x200\x2016\x2016','deepClone','registerHTTPInterceptor','setItem','_context','_unitID','transformSelections','_clearLocalCache','jiqing500','_http','_collaborationPaused','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_setupSubUnitSync','setCurrentUser','idSuffix','collabStatus.synced','getVpScrollXYInfoByPosToVp','[PendingState]:\x20received\x20rejection.','ENSURE_SNAPSHOT_EXECUTION','_toggleOffline','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','method','onRemoteRej','onPointerLeave$','UnitEmbedded','number','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','Error','HttpImport','_getScale','univerjs-icon\x20univerjs-icon-','copyFileMeta','_singleActiveUnitService','objects','listCollaborators','_clearCollaborationTimeoutTimer','contains','NO_OTHER_CLIENTS_EDITING','0\x200\x2017\x2016','startRow','PERMISSION_DENIED','width','YUUMI_SUBSCRIPTION_NOT_FOUND','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_loadDoc','visibilityState','ws://127.0.0.1:8000/universer-api/comb/connect','_hovered','_transformSelections','COMMENT_UPDATE','_startTelemetryCollaborationNewChangeset','offline','CHANGESET_REVISION_CONFILICT','propertyIsEnumerable','_collaborationTimeoutTimer','/universer-api/oidc/authpage','getAncestorScale','_anchorDot','getUndoRedoMutationParamsCache','selection','_onRecvEvent','onSendChangeset','push','incrementRevOfUnit','status','_transformStack','DEFAULT_FILE_NAME','OFFLINE','createCollaborator','UNKNOWN_CMD','withCredentials','flatMap','COMPLETION_FINISHED','registerRefRange','random','defineProperty','socket\x20close','_range','permission.title','unit-cache-','_replayCachedMutations','batchAllowed','_getSheetObject','_renderManagerService','NEW_CHANGESETS','_listenToOfflineEvent','collabStatus.offline','_sheetSkeletonManagerService','_eventUnsubscribe','HEARTBEAT_TIMEOUT','_getSendChangesetTimeout','CONNECTOR_DATA_TOO_LARGE','fetching\x20missing\x20changesets\x20from\x20','?url=','range','_clearTimeoutTimer','_socketReady','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','result','clipPath','removeMember','session.will-retry','_change$','pending','_lastPointer','_refRangeService','_sessionStatus$','startColumn','url','_unitStatus','/universer-api/file/{fileID}/sign-url','_onFetchMissResult','USERS_LEAVE','getConfig','9995lBQVfe','error','_removeRoom','fillText','LIVESHARE_NEW_HOST','apply','max','doc.mutation.rich-text-editing','_transformRemoteChangesetByIMECache','column','roomInfos','BASE64','fill','_initCommandExecutedListener','has','stopTime','selections','isArray','getUnitStatus$','some','UPDATE_CURSOR','awaiting','\x20-\x20','_handleEvent','transformMutationsWithChangeset','Unknown\x20user','[CollaborationEntity]','sessionStatus','saveImage','defs','body','LOGIN_URL_KEY','map','239562ndXlmu','onload','LIVESHARE_REQUEST_HOST','string','file','show','YUUMI_RATE_OVER_LIMIT','c2Prime','MSG_FOR_ERROR','_messageService','getRandomValues','_decreaseWaiting','cmd','_getAPIPrefixPath','createSocket','_socketService','_clearScheduledTask','MoveRangeCommandId','UNIVER_COLLABORATION_CLIENT_PLUGIN','object','JOIN','x-univer-host','infoRsp','RemoveColCommandId','toLowerCase','_memberService','_socket','forEach','ACTIVE_UNIT_EVENT_CHANNEL','_docTransformSelectionsService','YUUMI_UNABLE_LOAD_URL','replaceTextRanges','[CollaborationSession]','history','getUnitId','_init','11942bFwvYY','_entityInit$','closeSession','_joinRoom','getSheetBlock','univer-online-status-title','_event$','createElement','getTime','getMergeData','resize','_getSaveTimeout','[PendingState]:\x20received\x20acknowledgement.','InsertRangeMoveDownCommandId','UNIVER_DOC','textRanges','DeleteRangeMoveLeftCommandId','patch','_textBubble','appendMutation','_saveTaskMap','_assignedColors','_unitOnClients','startsWith','_onUserJoin','length','clearInterval','_heartbeatTimer','_incrementRevisionNumber','unshift','off-line-single_clip0_910_343','_tryReconnect','_onMessage','_showConflictNotification','_revisionService','capture','call','OTHER_CLIENTS_EDITING','currentColor','onlineStatusTitle','row','_uiPartsService','HttpExport','_sendHeartbeatTimer','onStarting','closePath','/-/object/list','json','updateMember','getTypeOfUnitDisposed$','csAckEvent','whenReady','unitId\x20is\x20not\x20found','UNIVER_SLIDE','_lockTransition','_name','ERROR_IMAGE_TYPE','cursorInfo$','deleteCollaborator','onReady','hasOwnProperty','_cursorInfo$','_state','_submitChangeset','\x20in\x20_schedule.','_draw','_saveCache','_transformIMECache','set','/unit/','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','next','get','slice','className','_imageSourceCache','_entities','clear','changesets','onStateChange','_scheduleHeartbeat','_status$','getCollabCursors$','getCellPositionByOffset','_getUploadFileURL','createInstance','10asTahk','_ws','onRemoteAck','_getSnapshotAPIPrefix','retryConnectingInterval','arc','_refreshCollabCursors','_getDownloadEndpointURL','_waitForHeartbeatResponse','assignAColorForMemberID','transformMutation','subunit','includes','localeService','getRoom','m1Prime','_handleJoinEvent','_collaborationController','setParam','_getUndoStack','INVALID_ARGUMENT','change$','on-line-single_clip0_910_349','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','name','_transformPreviousActiveRange','[CollaborationState]:\x20apply\x20error!','_initStatusComponent','_hideTimer','dispose','socket\x20open.','endRow','UniverIcon','post','_sendHeartbeat','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','stringify','getRangePointData','SNAPSHOT_HAS_BEEN_REMOVED','_updateStatus','_config','requireSession','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_themeService','from','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','send','requestParams','LEAVE','icon','collaboration.closeRoom','CHANGESET_ACK','_onConflict','toString','#fff','_transformService','href','_scheduleSaving','PERMISSION_REJ','UNKNOWN_CODE','RECV','indexOf','DeleteRangeMoveUpCommandId','_getLoginPath','_createHandler','enableAuthServer','_send','/new_changes','endColumn','_roomMembers','COLLAB_WEB_SOCKET_URL','_colorAssignService','APPLY_REVISION_CONFILICT','getImage','update','_setupBeforeClosingHandler','action','pushState','searchParams','leaveEvent','purple300','collab-text-range-','_listenToOnlineEvent','_handler','LIVESHARE_TERMINATE','duration','allowed','_onLocalMutation','sheets','_handleLeaveEvent','_waitCount','HELLO','...','_collabCursorState$','currentTheme$','&assign=','measureText','mutations','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','_scheduleClearOtherTimer','message$','_ensureSubject','extend','m2Prime','list','_transformUndoRedoStack','_retryCount','_docSyncEditingCollabCursorService','_docStateChangeManagerService','unload','commentUpdate$','fillStyle','onMissedChangesetFetched','_cachedData','_logService','USERS_ENTER','addEventListener','joinRsp','_updateURLWithCurrentState','getRenderById','_schedule','csRejEvent','awaiting_with_pending','_acknowledgedAwaitingChangeset','_fetchMissChangesets','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_sendingTimer','UNIVER_PROJECT','_scheduleCollaborationTimeoutTimer','_initEventListeners','substring','gold400','_syncEditingCollabCursorService','assign','reduce','every','with','/resources','override','shouldCloseConn','cursorInfo','collabCursorState$','_getMergeRange','setActiveRange','conflict','image/gif','276qczzee','getImageSourceCache','_backgroundColor','fetchMiss','_onRefRangeChange','VIEW_MAIN','session.collaboration-timeout','session.room-full','encode','height','pluginName','_snapshotService','_initUnitPermissionChange','_getCurrentRevision','_scheduleTimestamp','SNAPSHOT_URL_KEY','use','delete','_beforeCloseService','110aVEUsO','objectActions','_state$','getValue','updatePermissionObjEvent','collab-text-anchor-','_onConnectionFailed','fillRule','onCommandExecuted','getSkeleton','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onTransformIME','uni.network.url-service','_scene','POST','_throwTelemetryCollaborationNewChangeset','TOO_MANY_REQUESTS','initWorkbookPermissionChange','concat','exhaustSavingTask','_onCursorDelete','_color','_HTTPService','state$','_pendingMutations','path','_sheetTransformSelectionsService','?size=','location','editing\x20status\x20changed\x20to','enableSingleActiveInstanceLock','onRemoteChangeset','_substituteRedoStack','COLLAB_SUBMIT_CHANGESET_URL','_updateLocalCache','type','_registerDependencies','tag','_stopTelemetryCollaborationNewChangeset','28844777OxJDcF','resourceIDs','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_disableEditing','getCurrentUnitForType','FAIL','SNAPSHOT_INVALID_SNAPSHOT','replaceState','disposeWithMe','_id','addImageSourceCache','onPointerMove$','PSEUDO_FETCH_MISSING_RESULT','entries','_retryConnectingTimer','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','subUnitId','_applyRemoteChangeset','_commentUpdate$','black','Warning','liveShareOperation','event$','size','sessionStatus$','LICENSE_IMPORT_SIZE_EXCEEDED','_startSheetCollabCursor','_members','newValue','_injector','image/bmp','_toggleOnline','collaboration-client.offline-data-not-saved','getFocusedUnit','revision','_createInitialStateImpl','submit\x20changeset\x20error!','interceptor','APPLY_DUPLICATED','fromCollab','unitID','_onCombEvent','_awaitingChangeset','collaboration-client.config'];_0x41ee=function(){return _0x53ec87;};return _0x41ee();}let ce=class extends _0x241134{constructor(_0x2b87ab,_0x5250b5){const _0x1f610f=_0x1551de;super(),l(this,_0x1f610f(0x3fb),new Map()),(this[_0x1f610f(0x4d0)]=_0x2b87ab,this[_0x1f610f(0x22d)]=_0x5250b5,this[_0x1f610f(0x48a)](_0x544db0(_0x4d44c4(this[_0x1f610f(0x4d0)]['getTypeOfUnitDisposed$'](_0x55d6cf[_0x1f610f(0x273)])[_0x1f610f(0x506)](_0x336dd2(_0x57cc29=>_0x57cc29[_0x1f610f(0x35e)]())),this[_0x1f610f(0x4d0)][_0x1f610f(0x391)](_0x55d6cf[_0x1f610f(0x36e)])[_0x1f610f(0x506)](_0x336dd2(_0x49df9f=>_0x49df9f[_0x1f610f(0x35e)]())),this['_univerInstanceService'][_0x1f610f(0x391)](_0x55d6cf[_0x1f610f(0x395)])[_0x1f610f(0x506)](_0x336dd2(_0x21ca06=>_0x21ca06[_0x1f610f(0x35e)]())))['subscribe'](_0x191945=>this['_removeRoom'](_0x191945)))));}[_0x1551de(0x2b6)](_0x3dd349){const _0x1311e4=_0x1551de;this[_0x1311e4(0x22d)][_0x1311e4(0x2b6)](_0x3dd349);}[_0x1551de(0x21c)](){const _0x36ecc4=_0x1551de;return this[_0x36ecc4(0x22d)][_0x36ecc4(0x21c)]();}[_0x1551de(0x390)](_0x20d4eb,_0x159ee3){const _0x156da3=_0x1551de;let _0x1c6fd1=this[_0x156da3(0x3fb)][_0x156da3(0x3a8)](_0x20d4eb);_0x1c6fd1||(_0x1c6fd1=new Yn(),this[_0x156da3(0x3fb)][_0x156da3(0x3a4)](_0x20d4eb,_0x1c6fd1)),_0x1c6fd1['updateMember'](_0x159ee3);}[_0x1551de(0x30d)](_0x25158f,_0x35ec59){const _0x5c97e0=_0x1551de,_0x49be19=this[_0x5c97e0(0x3fb)][_0x5c97e0(0x3a8)](_0x25158f);_0x49be19&&_0x49be19[_0x5c97e0(0x30d)](_0x35ec59);}[_0x1551de(0x3c4)](_0x515405){const _0x5d3f28=_0x1551de;return this['_roomMembers'][_0x5d3f28(0x3a8)](_0x515405);}['getMember'](_0x2f559f,_0x51d6b6){const _0x1e3787=_0x1551de,_0x4182d5=this[_0x1e3787(0x3fb)][_0x1e3787(0x3a8)](_0x2f559f);if(_0x4182d5)return _0x4182d5[_0x1e3787(0x1c1)](_0x51d6b6);}[_0x1551de(0x31d)](_0xcb07c5){const _0x5ece96=_0x1551de,_0x1ee29a=this[_0x5ece96(0x3fb)][_0x5ece96(0x3a8)](_0xcb07c5);_0x1ee29a&&(_0x1ee29a[_0x5ece96(0x3d3)](),this[_0x5ece96(0x3fb)][_0x5ece96(0x459)](_0xcb07c5));}[_0x1551de(0x3d3)](){const _0x5b94a9=_0x1551de;this['_roomMembers'][_0x5b94a9(0x357)](_0x685389=>_0x685389['dispose']()),this[_0x5b94a9(0x3fb)][_0x5b94a9(0x3ad)]();}};ce=Gn([as(0x0,_0x39ffff),as(0x1,_0x1e17a6(_0x380bcd))],ce);class Yn extends _0x241134{constructor(){const _0x6a7e8e=_0x1551de;super(...arguments),l(this,_0x6a7e8e(0x49d),new Map());}[_0x1551de(0x3d3)](){const _0xc851fa=_0x1551de;this['_members'][_0xc851fa(0x3ad)]();}['updateMember'](_0x34c606){const _0x567d67=_0x1551de;this[_0x567d67(0x49d)][_0x567d67(0x3a4)](_0x34c606['memberID'],_0x34c606);}[_0x1551de(0x30d)](_0x2c9db0){const _0x42e7fb=_0x1551de;this[_0x42e7fb(0x49d)][_0x42e7fb(0x459)](_0x2c9db0);}[_0x1551de(0x1c1)](_0x1e45c1){const _0x4bfd3f=_0x1551de;return this[_0x4bfd3f(0x49d)][_0x4bfd3f(0x3a8)](_0x1e45c1);}}var Kn=Object['defineProperty'],Xn=Object['getOwnPropertyDescriptor'],qn=(_0xd80227,_0x55cd0f,_0x4993d3,_0x3e7999)=>{const _0x3611dd=_0x1551de;for(var _0x2907ee=_0x3e7999>0x1?void 0x0:_0x3e7999?Xn(_0x55cd0f,_0x4993d3):_0x55cd0f,_0x2e6e66=_0xd80227[_0x3611dd(0x379)]-0x1,_0x22fd0d;_0x2e6e66>=0x0;_0x2e6e66--)(_0x22fd0d=_0xd80227[_0x2e6e66])&&(_0x2907ee=(_0x3e7999?_0x22fd0d(_0x55cd0f,_0x4993d3,_0x2907ee):_0x22fd0d(_0x2907ee))||_0x2907ee);return _0x3e7999&&_0x2907ee&&Kn(_0x55cd0f,_0x4993d3,_0x2907ee),_0x2907ee;},J=(_0x2fddea,_0xdca55f)=>(_0x2f0dad,_0x368642)=>_0xdca55f(_0x2f0dad,_0x368642,_0x2fddea),Y=(_0x309c74=>(_0x309c74[_0x309c74[_0x1551de(0x1c6)]=0x0]=_0x1551de(0x1c6),_0x309c74[_0x309c74[_0x1551de(0x1c7)]=0x1]=_0x1551de(0x1c7),_0x309c74[_0x309c74['OFFLINE']=0x2]='OFFLINE',_0x309c74[_0x309c74[_0x1551de(0x276)]=0x3]=_0x1551de(0x276),_0x309c74))(Y||{});let bt=class extends _0x1a4d16{constructor(_0x4c0bf3,_0x31f3dd,_0x542b57,_0x4bd169,_0x4ef831,_0x59c302,_0x386390,_0x56a7b1,_0x58b271,_0x57286f){const _0xe20f87=_0x1551de;super(),l(this,_0xe20f87(0x313),new _0x278b2c(0x0)),l(this,_0xe20f87(0x49a),this[_0xe20f87(0x313)][_0xe20f87(0x1ea)]()),l(this,'_event$',new _0x47928e()),l(this,'event$',this[_0xe20f87(0x366)]['asObservable']()),l(this,'_socket'),l(this,_0xe20f87(0x4b8)),l(this,_0xe20f87(0x2df)),l(this,_0xe20f87(0x4c1),!0x1),l(this,_0xe20f87(0x1b0),null),(this[_0xe20f87(0x2ae)]=_0x4c0bf3,this[_0xe20f87(0x428)]=_0x542b57,this[_0xe20f87(0x45a)]=_0x4bd169,this[_0xe20f87(0x345)]=_0x4ef831,this['_configService']=_0x59c302,this[_0xe20f87(0x50d)]=_0x386390,this[_0xe20f87(0x355)]=_0x56a7b1,this['_commentService']=_0x58b271,this[_0xe20f87(0x29b)]=_0x57286f,this[_0xe20f87(0x4c1)]=!!this[_0xe20f87(0x29b)],_0x31f3dd[_0xe20f87(0x506)](_0x2e6539(this['dispose$']))[_0xe20f87(0x245)](_0x12b59a=>{const _0x5f2fd9=_0xe20f87;var _0x4e613a;typeof _0x12b59a>'u'||(this[_0x5f2fd9(0x356)]=_0x12b59a,_0x12b59a?(this['_joinRoom'](_0x12b59a),this[_0x5f2fd9(0x4b8)]=_0x12b59a[_0x5f2fd9(0x41a)][_0x5f2fd9(0x245)](_0x40cc1e=>{const _0xb80b64=_0x5f2fd9;_0x40cc1e[_0xb80b64(0x1c0)]===this[_0xb80b64(0x2ae)]&&this[_0xb80b64(0x4ab)](_0x40cc1e);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5f2fd9(0x313)][_0x5f2fd9(0x3a7)](0x2),(_0x4e613a=this[_0x5f2fd9(0x4b8)])==null||_0x4e613a['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0xe20f87(0x48a)](this[_0xe20f87(0x45a)][_0xe20f87(0x25f)](()=>{const _0x7faaca=_0xe20f87;var _0x9e7a1a;(_0x9e7a1a=this[_0x7faaca(0x356)])==null||_0x9e7a1a['send']({'cmd':I[_0x7faaca(0x3e6)],'data':{'roomID':this['_unitID']}});})));}get[_0x1551de(0x336)](){const _0x486a83=_0x1551de;return this[_0x486a83(0x313)][_0x486a83(0x45e)]();}[_0x1551de(0x517)](){const _0x5cd60c=_0x1551de;var _0x1bbb74,_0x36be8f;return(_0x36be8f=(_0x1bbb74=this[_0x5cd60c(0x356)])==null?void 0x0:_0x1bbb74['memberID'])!=null?_0x36be8f:null;}['dispose'](){const _0x4db65e=_0x1551de;super[_0x4db65e(0x3d3)](),this[_0x4db65e(0x51e)][_0x4db65e(0x3a7)](),this['dispose$'][_0x4db65e(0x4c0)]();}[_0x1551de(0x4e0)](){const _0x386e97=_0x1551de;var _0x469964,_0x1591f8;this['_throwTelemetryCollaborationNewChangeset'](),(_0x469964=this[_0x386e97(0x356)])==null||_0x469964[_0x386e97(0x3e4)]({'cmd':I[_0x386e97(0x3e6)],'data':{'roomID':this['_unitID']}}),(_0x1591f8=this['_socket'])==null||_0x1591f8[_0x386e97(0x4e0)](),this[_0x386e97(0x366)][_0x386e97(0x4c0)](),this['_sessionStatus$'][_0x386e97(0x4c0)](),this[_0x386e97(0x3d3)]();}[_0x1551de(0x4ab)](_0x41ea81){const _0x67901e=_0x1551de;_0x41ea81[_0x67901e(0x348)]===I[_0x67901e(0x350)]?this['_onJoinRoomEvent'](_0x41ea81):_0x41ea81[_0x67901e(0x348)]===I[_0x67901e(0x3f2)]&&this[_0x67901e(0x2e5)](_0x41ea81);}[_0x1551de(0x363)](_0x50bc6e){const _0x24e9b0=_0x1551de;this['_sessionStatus$'][_0x24e9b0(0x3a7)](0x1),_0x50bc6e[_0x24e9b0(0x3e4)]({'cmd':I[_0x24e9b0(0x350)],'routeKey':this[_0x24e9b0(0x2ae)],'routeType':'','data':{'rooms':[{'roomID':this[_0x24e9b0(0x2ae)]}]}});}[_0x1551de(0x1b1)](_0x10cd55){const _0xfa7d7e=_0x1551de;var _0x229fc7;if(_0x10cd55['code']===Vt['FAIL']){this['_messageService'][_0xfa7d7e(0x341)]({'type':_0x2710e7[_0xfa7d7e(0x496)],'content':this['_localeService']['t'](_0xfa7d7e(0x44f))}),this[_0xfa7d7e(0x313)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x352a94=(_0x229fc7=_0x10cd55[_0xfa7d7e(0x253)][_0xfa7d7e(0x325)][this['_unitID']])==null?void 0x0:_0x229fc7[_0xfa7d7e(0x519)];_0x352a94&&_0x352a94['forEach'](_0x165ac4=>this[_0xfa7d7e(0x355)]['updateMember'](this[_0xfa7d7e(0x2ae)],_0x165ac4));}['_onRecvEvent'](_0x225a33){const _0x47dcd2=_0x1551de;try{const _0x16334f=_0x225a33[_0x47dcd2(0x253)];switch(_0x16334f[_0x47dcd2(0x1be)]){case _0x5b54e6[_0x47dcd2(0x429)]:this['_onUserJoin'](_0x16334f),this['_event$']['next'](_0x16334f);break;case _0x5b54e6[_0x47dcd2(0x319)]:this[_0x47dcd2(0x523)](_0x16334f),this['_event$'][_0x47dcd2(0x3a7)](_0x16334f);break;case _0x5b54e6[_0x47dcd2(0x3e9)]:this[_0x47dcd2(0x481)](),this['_clearCollaborationTimeoutTimer'](),this[_0x47dcd2(0x366)][_0x47dcd2(0x3a7)](_0x16334f);break;case _0x5b54e6[_0x47dcd2(0x344)]:this[_0x47dcd2(0x428)][_0x47dcd2(0x31c)](_0x47dcd2(0x4cd)+JSON[_0x47dcd2(0x3da)](_0x16334f)),this[_0x47dcd2(0x366)]['next'](_0x16334f);break;case _0x5b54e6[_0x47dcd2(0x2da)]:this[_0x47dcd2(0x24d)][_0x47dcd2(0x20c)](_0x16334f[_0x47dcd2(0x253)]),this['_event$']['next'](_0x16334f);break;default:this['_event$'][_0x47dcd2(0x3a7)](_0x16334f);}}catch(_0x9b788b){this[_0x47dcd2(0x428)][_0x47dcd2(0x31c)](_0x9b788b,_0x225a33);}}[_0x1551de(0x378)](_0x3622cc){const _0x4c20a3=_0x1551de;this[_0x4c20a3(0x355)][_0x4c20a3(0x390)](this[_0x4c20a3(0x2ae)],_0x3622cc[_0x4c20a3(0x253)]);}['_onUserLeave'](_0x530b67){const _0x2d1e0d=_0x1551de;this[_0x2d1e0d(0x355)][_0x2d1e0d(0x30d)](this[_0x2d1e0d(0x2ae)],_0x530b67[_0x2d1e0d(0x253)]['memberID']);}async[_0x1551de(0x3e4)](_0x263420,_0x431c2a){const _0xbe2365=_0x1551de;if(this[_0xbe2365(0x336)]!==0x3||!this[_0xbe2365(0x356)])throw new Error(_0xbe2365(0x3e0));try{_0x263420[_0xbe2365(0x1be)]===_0x5b54e6[_0xbe2365(0x4c7)]&&(this[_0xbe2365(0x436)](),this[_0xbe2365(0x2db)](_0x263420)),this[_0xbe2365(0x356)][_0xbe2365(0x3e4)]({'cmd':I[_0xbe2365(0x234)],'routeKey':_0x431c2a,'routeType':'','data':_0x263420});}catch(_0x3d5f55){this[_0xbe2365(0x428)][_0xbe2365(0x31c)](_0x3d5f55);}}[_0x1551de(0x436)](){const _0x32ac82=_0x1551de;var _0x1fb53c;this[_0x32ac82(0x2df)]=window[_0x32ac82(0x270)](()=>{const _0x2f1f81=_0x32ac82;this[_0x2f1f81(0x2df)]=null,this[_0x2f1f81(0x345)]['show']({'type':_0x2710e7[_0x2f1f81(0x2c4)],'content':this[_0x2f1f81(0x50d)]['t'](_0x2f1f81(0x44e))});},(_0x1fb53c=this['_configService'][_0x32ac82(0x31a)]($s))!=null?_0x1fb53c:js);}[_0x1551de(0x2cc)](){const _0x32bb30=_0x1551de;this[_0x32bb30(0x2df)]&&(clearTimeout(this[_0x32bb30(0x2df)]),this[_0x32bb30(0x2df)]=null);}[_0x1551de(0x2db)](_0x297e08){const _0x2240f6=_0x1551de;if(!this[_0x2240f6(0x4c1)])return;const {data:_0x472d30}=_0x297e08,{unitID:_0x500a9b,changeset:_0x498b2b}=_0x472d30,{mutations:_0x343e98,type:_0x1eaf66}=_0x498b2b;this[_0x2240f6(0x1b0)]={'unitId':_0x500a9b,'type':_0x1eaf66,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x343e98)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3a468c=_0x1551de;if(this[_0x3a468c(0x4c1)]){if(!this[_0x3a468c(0x1b0)]){this[_0x3a468c(0x428)][_0x3a468c(0x31c)](_0x3a468c(0x35c),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x3a468c(0x32a)]=performance[_0x3a468c(0x529)](),this[_0x3a468c(0x1b0)][_0x3a468c(0x40b)]=this[_0x3a468c(0x1b0)][_0x3a468c(0x32a)]-this[_0x3a468c(0x1b0)][_0x3a468c(0x279)],this[_0x3a468c(0x29b)][_0x3a468c(0x383)](Bn,this[_0x3a468c(0x1b0)]),this['_telemetryInfo']=null;}}[_0x1551de(0x46a)](){this['_telemetryInfo']=null;}};bt=qn([J(0x2,_0x57653f),J(0x3,_0x17edcb),J(0x4,_0x2c0505),J(0x5,_0x162b76),J(0x6,_0x1e17a6(_0x2268fa)),J(0x7,_0x1e17a6(ce)),J(0x8,_0x1e17a6(Bs)),J(0x9,_0x302b5c(_0x377ae4))],bt);var Jn=Object['defineProperty'],zn=Object['getOwnPropertyDescriptor'],Zn=(_0x39d10c,_0xd66634,_0x48973e,_0x3e317d)=>{const _0x2017d4=_0x1551de;for(var _0x699fad=_0x3e317d>0x1?void 0x0:_0x3e317d?zn(_0xd66634,_0x48973e):_0xd66634,_0x5c50f9=_0x39d10c[_0x2017d4(0x379)]-0x1,_0x4d5245;_0x5c50f9>=0x0;_0x5c50f9--)(_0x4d5245=_0x39d10c[_0x5c50f9])&&(_0x699fad=(_0x3e317d?_0x4d5245(_0xd66634,_0x48973e,_0x699fad):_0x4d5245(_0x699fad))||_0x699fad);return _0x3e317d&&_0x699fad&&Jn(_0xd66634,_0x48973e,_0x699fad),_0x699fad;},fe=(_0x13a86f,_0x331da5)=>(_0x9ef96a,_0x583da0)=>_0x331da5(_0x9ef96a,_0x583da0,_0x13a86f);let he=class extends _0x241134{constructor(_0x909342,_0x5ef7cf,_0x298bbe,_0x30ecb8,_0x3355cb,_0x344051){const _0x223823=_0x1551de;super(),l(this,_0x223823(0x2a8),new _0x278b2c(void 0x0)),l(this,'socket$',this[_0x223823(0x2a8)]['asObservable']()),l(this,_0x223823(0x1e1),null),l(this,_0x223823(0x1dc),new Map()),l(this,_0x223823(0x3b1),new _0x278b2c(Y['IDLE'])),l(this,'status$',this[_0x223823(0x3b1)]['asObservable']()),l(this,_0x223823(0x309),!0x1),l(this,_0x223823(0x490)),l(this,_0x223823(0x420),0x0),l(this,_0x223823(0x38b)),l(this,'_timeoutTimer'),(this[_0x223823(0x49f)]=_0x909342,this[_0x223823(0x50d)]=_0x5ef7cf,this[_0x223823(0x345)]=_0x298bbe,this[_0x223823(0x428)]=_0x30ecb8,this[_0x223823(0x1fb)]=_0x3355cb,this[_0x223823(0x34b)]=_0x344051,this[_0x223823(0x437)]());}get[_0x1551de(0x356)](){const _0x3e3cbd=_0x1551de;return this['_socket$'][_0x3e3cbd(0x45e)]();}[_0x1551de(0x437)](){const _0x22e371=_0x1551de;this[_0x22e371(0x2fe)](),this[_0x22e371(0x408)]();}[_0x1551de(0x3d3)](){const _0x168c52=_0x1551de;super[_0x168c52(0x3d3)](),this[_0x168c52(0x1dc)][_0x168c52(0x357)](_0x49ba7c=>_0x49ba7c['dispose']()),this['_sessions'][_0x168c52(0x3ad)](),this[_0x168c52(0x3b1)][_0x168c52(0x4c0)]();}async[_0x1551de(0x3df)](_0x355b5f){const _0x51f7df=_0x1551de;if(this['_sessions'][_0x51f7df(0x329)](_0x355b5f))return this['_sessions'][_0x51f7df(0x3a8)](_0x355b5f);this[_0x51f7df(0x239)]();const _0x16f54a=this[_0x51f7df(0x49f)][_0x51f7df(0x3b5)](bt,_0x355b5f,this[_0x51f7df(0x2a8)]['asObservable']());return this[_0x51f7df(0x1dc)][_0x51f7df(0x3a4)](_0x355b5f,_0x16f54a),_0x16f54a;}['closeSession'](_0x55c013){const _0x113e24=_0x1551de;var _0x1ec354;const _0x3e9a1c=this[_0x113e24(0x1dc)][_0x113e24(0x3a8)](_0x55c013);_0x3e9a1c&&(this['_sessions'][_0x113e24(0x459)](_0x55c013),_0x3e9a1c[_0x113e24(0x4e0)]()),this[_0x113e24(0x1dc)][_0x113e24(0x499)]||(_0x1ec354=this[_0x113e24(0x356)])==null||_0x1ec354['close']();}['reconnect'](){const _0x47db4c=_0x1551de;this[_0x47db4c(0x420)]=0x0,this[_0x47db4c(0x490)]!=null&&(clearTimeout(this[_0x47db4c(0x490)]),this[_0x47db4c(0x490)]=null),this[_0x47db4c(0x37f)]();}[_0x1551de(0x21d)](){const _0x3283f5=_0x1551de;var _0x4711f7,_0xc92d2e;const _0x5a5966=this['_configService'][_0x3283f5(0x31a)](En),_0x378eaa=this[_0x3283f5(0x1fb)][_0x3283f5(0x31a)]($),_0x1c7338=(_0xc92d2e=(_0x4711f7=_0x378eaa==null?void 0x0:_0x378eaa[_0x3283f5(0x27f)])!=null?_0x4711f7:_0x5a5966)!=null?_0xc92d2e:Cn,_0x1a76f5=this[_0x3283f5(0x34b)][_0x3283f5(0x34a)](_0x1c7338);return this[_0x3283f5(0x1e1)]=_0x1a76f5,_0x1a76f5;}[_0x1551de(0x239)](){const _0x5010f4=_0x1551de;var _0x2e5d09,_0x2ae4a6;try{const _0x31eb7f=(_0x2ae4a6=(_0x2e5d09=this[_0x5010f4(0x356)])!=null?_0x2e5d09:this['_candidateSocket'])!=null?_0x2ae4a6:this[_0x5010f4(0x21d)]();if(_0x31eb7f){const _0x34eec5=_0x31eb7f['send'];_0x31eb7f['send']=_0x464547=>(this[_0x5010f4(0x24b)](),_0x34eec5['apply'](_0x31eb7f,[_0x464547])),_0x31eb7f[_0x5010f4(0x41a)][_0x5010f4(0x245)](_0x25c44f=>this[_0x5010f4(0x380)](_0x31eb7f,_0x25c44f)),_0x31eb7f['error$'][_0x5010f4(0x506)](_0x1e05ba(0x1))[_0x5010f4(0x245)](_0x4e9409=>this[_0x5010f4(0x428)][_0x5010f4(0x31c)](_0x5010f4(0x217),_0x4e9409)),_0x31eb7f[_0x5010f4(0x250)][_0x5010f4(0x506)](_0x1e05ba(0x1))['subscribe'](()=>{const _0x3c4813=_0x5010f4;this[_0x3c4813(0x518)](_0x31eb7f);}),_0x31eb7f['close$']['pipe'](_0x1e05ba(0x1))['subscribe'](_0x8b259b=>{const _0x4436a6=_0x5010f4;this[_0x4436a6(0x428)][_0x4436a6(0x26a)]('[CollaborationSessionService]',_0x4436a6(0x2f5),_0x8b259b),this[_0x4436a6(0x461)]();});}}catch(_0x11d169){this[_0x5010f4(0x428)][_0x5010f4(0x31c)](_0x11d169),this[_0x5010f4(0x461)]();}}[_0x1551de(0x518)](_0x3dadc4){const _0x5e6e8a=_0x1551de;this[_0x5e6e8a(0x428)][_0x5e6e8a(0x26a)](_0x5e6e8a(0x1ec),_0x5e6e8a(0x3d4)),_0x3dadc4[_0x5e6e8a(0x3e4)]({'cmd':I['HELLO']}),this[_0x5e6e8a(0x24b)]();}['_listenToOfflineEvent'](){const _0xfee467=_0x1551de;window[_0xfee467(0x42a)](_0xfee467(0x2dc),()=>this[_0xfee467(0x4be)]());}[_0x1551de(0x4be)](){const _0x1aa66d=_0x1551de;this[_0x1aa66d(0x309)]=!0x1,this['_candidateSocket']=null,this[_0x1aa66d(0x3b1)][_0x1aa66d(0x3a7)](Y['OFFLINE']),this[_0x1aa66d(0x2a8)]['next'](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x1e0e95=_0x1551de;var _0x3951bb;this[_0x1e0e95(0x4be)](),this[_0x1e0e95(0x420)]<((_0x3951bb=this[_0x1e0e95(0x1fb)][_0x1e0e95(0x31a)](On))!=null?_0x3951bb:Dn)?(this[_0x1e0e95(0x345)]['show']({'key':_0x1e0e95(0x4e8),'type':_0x2710e7['Warning'],'content':this[_0x1e0e95(0x50d)]['t'](_0x1e0e95(0x30e))}),this[_0x1e0e95(0x37f)]()):this[_0x1e0e95(0x345)][_0x1e0e95(0x341)]({'key':'collaboration-session-retry','type':_0x2710e7[_0x1e0e95(0x2c4)],'content':this[_0x1e0e95(0x50d)]['t'](_0x1e0e95(0x4fb))});}[_0x1551de(0x408)](){const _0x38415f=_0x1551de,_0x14796c=()=>{const _0x5281aa=_0x15b1;this['_socket']||this[_0x5281aa(0x4de)]();},_0x1a3080=()=>{const _0x5dc324=_0x15b1;this[_0x5dc324(0x356)]||document[_0x5dc324(0x2d6)]==='hidden'||this['reconnect']();};window[_0x38415f(0x42a)]('online',_0x14796c),document['addEventListener'](_0x38415f(0x28e),_0x1a3080);}[_0x1551de(0x37f)](){const _0x49f707=_0x1551de;var _0x2e31de;const _0x1a7221=this[_0x49f707(0x420)],_0x47d5fc=this[_0x49f707(0x1fb)][_0x49f707(0x31a)]($),_0x4cc876=_0x1a7221===0x0?0x0:((_0x2e31de=_0x47d5fc==null?void 0x0:_0x47d5fc[_0x49f707(0x3ba)])!=null?_0x2e31de:Rn)*0x2**_0x1a7221;this['_retryConnectingTimer']=window[_0x49f707(0x270)](()=>{clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x4cc876),this[_0x49f707(0x420)]+=0x1;}['_onMessage'](_0x15d888,_0x4e7870){const _0x3c7f8b=_0x1551de,{cmd:_0x5e2875}=_0x4e7870;_0x5e2875===I[_0x3c7f8b(0x411)]&&!this[_0x3c7f8b(0x309)]&&(_0x15d888['memberID']=_0x4e7870[_0x3c7f8b(0x253)][_0x3c7f8b(0x201)],this[_0x3c7f8b(0x2a8)]['next'](_0x15d888),this[_0x3c7f8b(0x3b1)][_0x3c7f8b(0x3a7)](Y['ONLINE']),this[_0x3c7f8b(0x309)]=!0x0,this[_0x3c7f8b(0x1e1)]=null),_0x5e2875===I[_0x3c7f8b(0x514)]&&this[_0x3c7f8b(0x308)](),this[_0x3c7f8b(0x24b)]();}['_rescheduleHeartbeat'](){const _0xe473c7=_0x1551de;var _0x41b3cf;this[_0xe473c7(0x52b)](),this[_0xe473c7(0x38b)]=window[_0xe473c7(0x270)](()=>this[_0xe473c7(0x3d8)](),(_0x41b3cf=this[_0xe473c7(0x1fb)][_0xe473c7(0x31a)](bn))!=null?_0x41b3cf:Tn);}[_0x1551de(0x3d8)](){const _0x15fb11=_0x1551de;this['_socket']['send']({'cmd':I['HEARTBEAT']}),this[_0x15fb11(0x3be)]();}[_0x1551de(0x3be)](){const _0x13b7d3=_0x1551de;var _0x128fb2;this[_0x13b7d3(0x236)]=window['setTimeout'](()=>this[_0x13b7d3(0x461)](),(_0x128fb2=this[_0x13b7d3(0x1fb)][_0x13b7d3(0x31a)]($s))!=null?_0x128fb2:js);}[_0x1551de(0x52b)](){const _0x101d12=_0x1551de;this[_0x101d12(0x38b)]!=null&&(clearTimeout(this[_0x101d12(0x38b)]),this[_0x101d12(0x38b)]=null);}[_0x1551de(0x308)](){const _0x3f52d5=_0x1551de;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3f52d5(0x236)]),this[_0x3f52d5(0x236)]=null);}};he=Zn([fe(0x0,_0x1e17a6(_0x2c37d0)),fe(0x1,_0x1e17a6(_0x2268fa)),fe(0x2,_0x2c0505),fe(0x3,_0x57653f),fe(0x4,_0x162b76),fe(0x5,ks)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x1551de(0x2e7)]((ct+0x100)[_0x1551de(0x3eb)](0x10)['slice'](0x1));function Qn(_0x19a160,_0x306964=0x0){const _0x28af03=_0x1551de;return(T[_0x19a160[_0x306964+0x0]]+T[_0x19a160[_0x306964+0x1]]+T[_0x19a160[_0x306964+0x2]]+T[_0x19a160[_0x306964+0x3]]+'-'+T[_0x19a160[_0x306964+0x4]]+T[_0x19a160[_0x306964+0x5]]+'-'+T[_0x19a160[_0x306964+0x6]]+T[_0x19a160[_0x306964+0x7]]+'-'+T[_0x19a160[_0x306964+0x8]]+T[_0x19a160[_0x306964+0x9]]+'-'+T[_0x19a160[_0x306964+0xa]]+T[_0x19a160[_0x306964+0xb]]+T[_0x19a160[_0x306964+0xc]]+T[_0x19a160[_0x306964+0xd]]+T[_0x19a160[_0x306964+0xe]]+T[_0x19a160[_0x306964+0xf]])[_0x28af03(0x354)]();}var He,er=new Uint8Array(0x10);function tr(){const _0x2004a5=_0x1551de;if(!He&&(He=typeof crypto<'u'&&crypto[_0x2004a5(0x346)]&&crypto[_0x2004a5(0x346)]['bind'](crypto),!He))throw new Error(_0x2004a5(0x4b1));return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto['randomUUID'][_0x1551de(0x536)](crypto);const cs={'randomUUID':sr};function ir(_0x540844,_0x34cc58,_0x377038){const _0x4c008e=_0x1551de;if(cs[_0x4c008e(0x26c)]&&!_0x34cc58&&!_0x540844)return cs[_0x4c008e(0x26c)]();_0x540844=_0x540844||{};var _0x3f2add=_0x540844['random']||(_0x540844['rng']||tr)();return _0x3f2add[0x6]=_0x3f2add[0x6]&0xf|0x40,_0x3f2add[0x8]=_0x3f2add[0x8]&0x3f|0x80,Qn(_0x3f2add);}var nr=Object[_0x1551de(0x2f4)],rr=Object['getOwnPropertyDescriptor'],or=(_0x44d58f,_0x12186f,_0x302b5a,_0x36feac)=>{const _0x262870=_0x1551de;for(var _0x133237=_0x36feac>0x1?void 0x0:_0x36feac?rr(_0x12186f,_0x302b5a):_0x12186f,_0x41e1ce=_0x44d58f[_0x262870(0x379)]-0x1,_0x2e5a28;_0x41e1ce>=0x0;_0x41e1ce--)(_0x2e5a28=_0x44d58f[_0x41e1ce])&&(_0x133237=(_0x36feac?_0x2e5a28(_0x12186f,_0x302b5a,_0x133237):_0x2e5a28(_0x133237))||_0x133237);return _0x36feac&&_0x133237&&nr(_0x12186f,_0x302b5a,_0x133237),_0x133237;},ht=(_0xacf668,_0x2951b9)=>(_0x104088,_0xc58dbb)=>_0x2951b9(_0x104088,_0xc58dbb,_0xacf668);let Ye=class{constructor(_0x3626e0,_0x10bd5b,_0x2abc29){this['_injector']=_0x3626e0,this['_transformService']=_0x10bd5b,this['_renderManagerService']=_0x2abc29;}[_0x1551de(0x4ef)](_0x1c743d){const _0x2815de=_0x1551de;this[_0x2815de(0x41f)](_0x1c743d),this[_0x2815de(0x3cf)](_0x1c743d);}[_0x1551de(0x25c)](_0x4fa8fc){const _0x26f029=_0x1551de,{unitID:_0x20c5c7}=_0x4fa8fc,_0x1f6410=this[_0x26f029(0x2fc)][_0x26f029(0x42d)](_0x20c5c7)[_0x26f029(0x43e)](_0x443b09),{redoCache:_0x55fa80}=_0x1f6410[_0x26f029(0x2e3)]();if(_0x55fa80[_0x26f029(0x379)]===0x0)return _0x4fa8fc;let _0x205d6f=_0x3358a8[_0x26f029(0x2aa)](_0x4fa8fc['mutations'][0x0]);for(let _0x3111bb=0x0;_0x3111bb<_0x55fa80[_0x26f029(0x379)];_0x3111bb++){const _0x465d6b={'id':_0x26f029(0x322),'params':{..._0x55fa80[_0x3111bb]}},_0x239b5b=this[_0x26f029(0x3ed)]['transformMutation'](_0x205d6f,_0x465d6b,!0x1);if(_0x532e50(_0x239b5b))throw _0x239b5b['error'];_0x205d6f=_0x239b5b[_0x26f029(0x3c5)];}return{..._0x3358a8[_0x26f029(0x2aa)](_0x4fa8fc),'mutations':[_0x205d6f]};}['_transformUndoRedoStack'](_0x5c72c8){const _0x27cc6e=_0x1551de,{unitID:_0x32793e}=_0x5c72c8,_0x226566=this['_renderManagerService']['getRenderById'](_0x32793e)[_0x27cc6e(0x43e)](_0x443b09),{undoCache:_0x539145,redoCache:_0x4fc9d5}=_0x226566[_0x27cc6e(0x2e3)]();if(_0x539145[_0x27cc6e(0x379)]===0x0||_0x4fc9d5[_0x27cc6e(0x379)]===0x0)return;const _0x152cce=[],_0x1f5fe0=[];let _0x3a4c05=_0x3358a8[_0x27cc6e(0x2aa)](_0x5c72c8[_0x27cc6e(0x417)][0x0]),_0x66b52d=_0x3358a8[_0x27cc6e(0x2aa)](_0x5c72c8['mutations'][0x0]);for(let _0xa62786=_0x539145[_0x27cc6e(0x379)]-0x1;_0xa62786>=0x0;_0xa62786--){const _0x224f9c={'id':_0x27cc6e(0x322),'params':{..._0x539145[_0xa62786]}},_0x13cd7d={'id':_0x27cc6e(0x322),'params':{..._0x4fc9d5[_0xa62786]}},_0x1b2e25=this[_0x27cc6e(0x3ed)]['transformMutation'](_0x3a4c05,_0x224f9c,!0x1),_0xa2e772=this[_0x27cc6e(0x3ed)]['transformMutation'](_0x66b52d,_0x13cd7d,!0x1);if(_0x532e50(_0x1b2e25))throw _0x1b2e25[_0x27cc6e(0x31c)];if(_0x532e50(_0xa2e772))throw _0xa2e772[_0x27cc6e(0x31c)];_0x152cce['unshift'](_0x1b2e25[_0x27cc6e(0x41d)][_0x27cc6e(0x533)]),_0x1f5fe0[_0x27cc6e(0x37d)](_0xa2e772['m2Prime'][_0x27cc6e(0x533)]),_0x3a4c05=_0x1b2e25['m1Prime'],_0x66b52d=_0xa2e772[_0x27cc6e(0x3c5)];}_0x226566['setUndoRedoMutationParamsCache']({'undoCache':_0x152cce,'redoCache':_0x1f5fe0});}[_0x1551de(0x3cf)](_0x1f45b5){const _0x4bba58=_0x1551de,{unitID:_0x512314}=_0x1f45b5,_0x5dcada=this[_0x4bba58(0x2fc)]['getRenderById'](_0x512314)[_0x4bba58(0x43e)](_0x443b09),_0x2c7bfe=_0x5dcada[_0x4bba58(0x1ee)]();if(_0x2c7bfe==null)return;const _0xad5a3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1f45b5[_0x4bba58(0x4aa)],'actions':null,'textRanges':[_0x2c7bfe]}}],_0x3b3570=this[_0x4bba58(0x3ed)][_0x4bba58(0x333)](_0x1f45b5,_0xad5a3);if(!_0xb2b180(_0x3b3570))throw _0x3b3570['error'];const _0x597b49=_0x3b3570['m2Prime'][0x0][_0x4bba58(0x533)][_0x4bba58(0x36f)];Array[_0x4bba58(0x32c)](_0x597b49)&&_0x597b49[_0x4bba58(0x379)]&&_0x5dcada[_0x4bba58(0x445)](_0x597b49[0x0]);}};Ye=or([ht(0x0,_0x1e17a6(_0x2c37d0)),ht(0x1,_0x19690b),ht(0x2,_0x5978ec)],Ye);var ar=Object[_0x1551de(0x2f4)],cr=Object['getOwnPropertyDescriptor'],hr=(_0x3965f6,_0xd591af,_0x172fbb,_0x4b94b8)=>{const _0x1bcd7f=_0x1551de;for(var _0x4420ee=_0x4b94b8>0x1?void 0x0:_0x4b94b8?cr(_0xd591af,_0x172fbb):_0xd591af,_0x54f011=_0x3965f6[_0x1bcd7f(0x379)]-0x1,_0x1440df;_0x54f011>=0x0;_0x54f011--)(_0x1440df=_0x3965f6[_0x54f011])&&(_0x4420ee=(_0x4b94b8?_0x1440df(_0xd591af,_0x172fbb,_0x4420ee):_0x1440df(_0x4420ee))||_0x4420ee);return _0x4b94b8&&_0x4420ee&&ar(_0xd591af,_0x172fbb,_0x4420ee),_0x4420ee;},De=(_0x9d0a3b,_0x4ba23b)=>(_0x47f2c3,_0xebb6da)=>_0x4ba23b(_0x47f2c3,_0xebb6da,_0x9d0a3b);let w=class extends _0x241134{constructor(_0xbae88e,_0x18d331,_0xbb385f,_0x3d5dba,_0xd02af9){const _0x3598b3=_0x1551de;super(),l(this,_0x3598b3(0x427),new Map()),l(this,_0x3598b3(0x374),new Map()),l(this,_0x3598b3(0x22c),!0x1),(this[_0x3598b3(0x1fb)]=_0xbae88e,this[_0x3598b3(0x4fa)]=_0x18d331,this[_0x3598b3(0x45a)]=_0xbb385f,this['_localeService']=_0x3d5dba,this[_0x3598b3(0x382)]=_0xd02af9,this['_setupBeforeClosingHandler']());}[_0x1551de(0x4c6)](){const _0x3d6f2e=_0x1551de;this[_0x3d6f2e(0x22c)]=!0x0;}[_0x1551de(0x272)](){const _0x3ce10f=_0x1551de;this[_0x3ce10f(0x22c)]=!0x1;}['dispose'](){const _0x560b47=_0x1551de;this['exhaustSavingTask']()[_0x560b47(0x1d7)](()=>super['dispose']());}async[_0x1551de(0x4ea)](_0x4445e5){const _0x2bba9f=_0x1551de;return this[_0x2bba9f(0x22c)]?null:this[_0x2bba9f(0x4fa)][_0x2bba9f(0x500)](hs(_0x4445e5));}async['saveOfflineData'](_0x353ccd,_0x422d2b){const _0x54783a=_0x1551de;return!!this[_0x54783a(0x4fa)][_0x54783a(0x2ac)](_0x353ccd,_0x422d2b);}[_0x1551de(0x4f7)](_0x31992d,_0xf5d11b,_0x1d152d,_0x24065d){const _0x38b2d1=_0x1551de,_0xdae980=this[_0x38b2d1(0x382)][_0x38b2d1(0x1dd)](_0x31992d);this[_0x38b2d1(0x427)][_0x38b2d1(0x3a4)](_0x31992d,{'unitID':_0x31992d,'type':_0xf5d11b,'awaitingChangeset':_0x1d152d,'mutations':_0x24065d,'rev':_0xdae980}),this[_0x38b2d1(0x374)][_0x38b2d1(0x329)](_0x31992d)||this[_0x38b2d1(0x3ef)](_0x31992d);}[_0x1551de(0x3ef)](_0x2957aa){const _0xf0dafd=_0x1551de,_0xbc3d7f=this['_getSaveTimeout']();_0xbc3d7f===0x0?this['_saveCache'](_0x2957aa):this[_0xf0dafd(0x374)][_0xf0dafd(0x3a4)](_0x2957aa,setTimeout(()=>this[_0xf0dafd(0x3a2)](_0x2957aa),_0xbc3d7f));}[_0x1551de(0x36b)](){const _0x55cf0c=_0x1551de;var _0x2637d8;return(_0x2637d8=this[_0x55cf0c(0x1fb)][_0x55cf0c(0x31a)](wn))!=null?_0x2637d8:Pn;}[_0x1551de(0x3a2)](_0x44b0fa){const _0x25a792=_0x1551de,_0x2e3035=this[_0x25a792(0x374)][_0x25a792(0x3a8)](_0x44b0fa);return _0x2e3035!==void 0x0&&window['clearTimeout'](_0x2e3035),this[_0x25a792(0x4fa)]['setItem'](hs(_0x44b0fa),this[_0x25a792(0x427)]['get'](_0x44b0fa))[_0x25a792(0x1d7)](()=>this[_0x25a792(0x374)]['delete'](_0x44b0fa));}async[_0x1551de(0x46e)](){const _0x328952=[];this['_saveTaskMap']['forEach']((_0xc50bcb,_0x3bfddb)=>{const _0x25f133=_0x15b1;window[_0x25f133(0x27b)](_0xc50bcb),_0x328952[_0x25f133(0x2e7)](this[_0x25f133(0x3a2)](_0x3bfddb)[_0x25f133(0x1d7)](()=>{const _0x1fa499=_0x25f133;this[_0x1fa499(0x374)]['delete'](_0x3bfddb);}));}),await Promise['all'](_0x328952);}[_0x1551de(0x401)](){const _0x4adb4c=_0x1551de;this[_0x4adb4c(0x48a)](this[_0x4adb4c(0x45a)][_0x4adb4c(0x4f9)](()=>{const _0x14337a=_0x4adb4c;if(this[_0x14337a(0x374)]['size'])return this[_0x14337a(0x50d)]['t'](_0x14337a(0x4a2));}));}};w=hr([De(0x0,_0x162b76),De(0x1,_0x1ae577),De(0x2,_0x17edcb),De(0x3,_0x1e17a6(_0x2268fa)),De(0x4,_0x1e17a6(_0x5b3021))],w);function hs(_0x161cb7){const _0x2ebbee=_0x1551de;return _0x2ebbee(0x2f8)+_0x161cb7;}var lr=Object[_0x1551de(0x2f4)],_r=Object[_0x1551de(0x1d2)],ur=(_0x1ff162,_0x6a1e6e,_0x49e61d,_0x4f421d)=>{const _0x4aa67a=_0x1551de;for(var _0x53718c=_0x4f421d>0x1?void 0x0:_0x4f421d?_r(_0x6a1e6e,_0x49e61d):_0x6a1e6e,_0x28befd=_0x1ff162[_0x4aa67a(0x379)]-0x1,_0x188608;_0x28befd>=0x0;_0x28befd--)(_0x188608=_0x1ff162[_0x28befd])&&(_0x53718c=(_0x4f421d?_0x188608(_0x6a1e6e,_0x49e61d,_0x53718c):_0x188608(_0x53718c))||_0x53718c);return _0x4f421d&&_0x53718c&&lr(_0x6a1e6e,_0x49e61d,_0x53718c),_0x53718c;},lt=(_0x3a7e1f,_0x2428d9)=>(_0x330f3c,_0x3214d2)=>_0x2428d9(_0x330f3c,_0x3214d2,_0x3a7e1f);function dr(_0x2c04ac){const {unitID:_0x59ac34,mutations:_0x48df9a}=_0x2c04ac;return{'unitId':_0x59ac34,'subUnitId':_0x48df9a[0x0]['params']['subUnitId']};}let Ke=class{constructor(_0x54ec00,_0x32c511,_0x59ce60){const _0x5e28a1=_0x1551de;this['_injector']=_0x54ec00,this[_0x5e28a1(0x3ed)]=_0x32c511,this[_0x5e28a1(0x25e)]=_0x59ce60;}[_0x1551de(0x2af)](_0x2e1aa1){const _0x25263e=_0x1551de;var _0x276a2d,_0x35c035,_0x40940f,_0x2a2ff1;const _0x594902=this['_injector'][_0x25263e(0x3a8)](_0xfd41d9),{unitId:_0x1cb83d,subUnitId:_0x5f167d}=dr(_0x2e1aa1),_0x3a36ec=_0x594902[_0x25263e(0x22e)](_0x1cb83d)[_0x25263e(0x209)](),_0x51c88d=(_0x35c035=(_0x276a2d=this[_0x25263e(0x25e)][_0x25263e(0x214)](_0x1cb83d))==null?void 0x0:_0x276a2d['getActiveSheet']())==null?void 0x0:_0x35c035['getSheetId']();if(_0x3a36ec[_0x25263e(0x379)]===0x0||!_0x1cb83d||!_0x5f167d)return;const _0x3fc091=[{'id':_0x535015['id'],'params':{'unitId':_0x1cb83d,'subUnitId':_0x51c88d,'selections':_0x3358a8['deepClone'](_0x3a36ec)}}],_0xcfd8bb=this['_transformService'][_0x25263e(0x333)](_0x2e1aa1,_0x3fc091);if(!_0xb2b180(_0xcfd8bb))throw _0xcfd8bb[_0x25263e(0x31c)];const _0x438351=(_0x2a2ff1=(_0x40940f=_0xcfd8bb[_0x25263e(0x41d)][0x0])==null?void 0x0:_0x40940f[_0x25263e(0x533)])==null?void 0x0:_0x2a2ff1[_0x25263e(0x32b)];if(Array[_0x25263e(0x32c)](_0x438351)&&_0x438351[_0x25263e(0x379)]){if(_0x438351[_0x25263e(0x379)]===_0x3fc091[0x0][_0x25263e(0x533)][_0x25263e(0x32b)][_0x25263e(0x379)]&&_0x438351[_0x25263e(0x43d)]((_0x471f8d,_0x4600c8)=>_0x1d754c['equals'](_0x471f8d[_0x25263e(0x307)],_0x3fc091[0x0]['params']['selections'][_0x4600c8][_0x25263e(0x307)])))return;this[_0x25263e(0x49f)][_0x25263e(0x3a8)](_0x1b1421)[_0x25263e(0x27d)](_0x535015['id'],{'unitId':_0x1cb83d,'subUnitId':_0x51c88d,'selections':_0x438351});}}};Ke=ur([lt(0x0,_0x1e17a6(_0x2c37d0)),lt(0x1,_0x19690b),lt(0x2,_0x39ffff)],Ke);const tt=_0x28e772(_0x1551de(0x4f1));var Vs=(_0x1159ee=>(_0x1159ee[_0x1159ee[_0x1551de(0x2ce)]=0x0]=_0x1551de(0x2ce),_0x1159ee[_0x1159ee[_0x1551de(0x385)]=0x1]=_0x1551de(0x385),_0x1159ee))(Vs||{});const ls=0x7530,_s=_0x1551de(0x358);class fr extends _0x241134{constructor(){const _0x8c0baa=_0x1551de;super(),l(this,_0x8c0baa(0x48b),_0x3358a8[_0x8c0baa(0x51c)]()),l(this,_0x8c0baa(0x1f6),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x8c0baa(0x37b),null),l(this,_0x8c0baa(0x222),new Map()),l(this,_0x8c0baa(0x316),new Map()),this['_init']();}[_0x1551de(0x3d3)](){const _0x2083f6=_0x1551de;super[_0x2083f6(0x3d3)](),this['_clearOtherTimers']['forEach']((_0x3a49b0,_0x3109f9)=>this['_removeClearOtherTimer'](_0x3109f9)),this['_heartbeatTimer']&&window[_0x2083f6(0x37a)](this['_heartbeatTimer']);}[_0x1551de(0x32d)](_0x5abaac){const _0x3cc39c=_0x1551de;return this['_ensureSubject'](_0x5abaac)[_0x3cc39c(0x506)](_0x408e5e());}[_0x1551de(0x52c)](_0x5899ca){const _0x3969d3=_0x1551de;this[_0x3969d3(0x1f6)]['size']===0x0&&this[_0x3969d3(0x3b0)](),this['_selfUnitIDs']['add'](_0x5899ca),this['_send']({'type':0x0,'memberID':this[_0x3969d3(0x48b)],'unitIDs':[_0x5899ca],'isForwarded':!0x1});}[_0x1551de(0x206)](_0x10fce7){const _0x50aa43=_0x1551de;this[_0x50aa43(0x1f6)][_0x50aa43(0x459)](_0x10fce7),this['_selfUnitIDs'][_0x50aa43(0x499)]===0x0&&this[_0x50aa43(0x37b)]&&window[_0x50aa43(0x37a)](this[_0x50aa43(0x37b)]);}[_0x1551de(0x35f)](){const _0x2585ae=_0x1551de;this['disposeWithMe'](_0x544db0(_0xbba4c3(window,'storage')[_0x2585ae(0x245)](_0x19c874=>{const _0x3b857e=_0x2585ae;if(_0x19c874[_0x3b857e(0x269)]!==_s||!_0x19c874[_0x3b857e(0x49e)])return;const _0x15c850=JSON[_0x3b857e(0x1e6)](_0x19c874[_0x3b857e(0x49e)]);this[_0x3b857e(0x332)](_0x15c850);}))),window['addEventListener'](_0x2585ae(0x423),()=>this[_0x2585ae(0x3f8)]({'type':0x1,'memberID':this[_0x2585ae(0x48b)],'unitIDs':Array[_0x2585ae(0x3e2)](this[_0x2585ae(0x1f6)])}));}['_handleEvent'](_0xcb7d77){const _0x130ca8=_0x1551de;switch(_0xcb7d77[_0x130ca8(0x47e)]){case 0x0:this[_0x130ca8(0x3c6)](_0xcb7d77);break;case 0x1:this[_0x130ca8(0x40f)](_0xcb7d77);break;case 0x2:this['_handleHeartbeatEvent'](_0xcb7d77);break;}}['_handleJoinEvent'](_0x2063a1){const _0x49f706=_0x1551de,{unitIDs:_0x467c67,memberID:_0x45da28,isForwarded:_0xef53ab}=_0x2063a1;_0x467c67[_0x49f706(0x357)](_0x364867=>{const _0x28ee27=_0x49f706;if(!_0xef53ab&&this[_0x28ee27(0x376)][_0x28ee27(0x329)](_0x364867)&&this[_0x28ee27(0x41b)](_0x364867)['next'](0x1),!this[_0x28ee27(0x376)]['has'](_0x364867)||!this[_0x28ee27(0x376)][_0x28ee27(0x3a8)](_0x364867)[_0x28ee27(0x329)](_0x45da28)){const _0x166d88=this[_0x28ee27(0x376)]['get'](_0x364867)||new Set();_0x166d88[_0x28ee27(0x285)](_0x45da28),this[_0x28ee27(0x376)][_0x28ee27(0x3a4)](_0x364867,_0x166d88),this[_0x28ee27(0x419)](_0x45da28);}}),_0xef53ab||this[_0x49f706(0x3f8)]({'type':0x0,'memberID':this[_0x49f706(0x48b)],'unitIDs':[...this[_0x49f706(0x1f6)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x42baad){const _0x2b16fa=_0x1551de;this['_removeClearOtherTimer'](_0x42baad);const _0x377951=window[_0x2b16fa(0x270)](()=>{const _0x5374ce=_0x2b16fa;this['_unitOnClients'][_0x5374ce(0x357)](_0x4c8995=>{const _0x27b747=_0x5374ce;_0x4c8995[_0x27b747(0x459)](_0x42baad);});},ls*0x2);this[_0x2b16fa(0x222)][_0x2b16fa(0x3a4)](_0x42baad,_0x377951);}[_0x1551de(0x534)](_0x2de7af){const _0x299649=_0x1551de;if(this[_0x299649(0x222)][_0x299649(0x329)](_0x2de7af)){const _0x288a92=this[_0x299649(0x222)][_0x299649(0x3a8)](_0x2de7af);_0x288a92&&window['clearTimeout'](_0x288a92),this[_0x299649(0x222)]['set'](_0x2de7af,null);}}[_0x1551de(0x40f)](_0x589866){const _0x7c3774=_0x1551de,{memberID:_0x36064c,unitIDs:_0x3e5c73}=_0x589866;_0x3e5c73[_0x7c3774(0x357)](_0xb938db=>{const _0x55bed9=_0x7c3774;var _0x2c4093;const _0x1f5874=this['_unitOnClients']['get'](_0xb938db);_0x1f5874&&(_0x1f5874[_0x55bed9(0x459)](_0x36064c),(_0x2c4093=this['_ensureSubject'](_0xb938db))==null||_0x2c4093['next'](_0x1f5874['size']===0x0?0x0:0x1));}),this[_0x7c3774(0x534)](_0x36064c);}[_0x1551de(0x2a1)](_0x5a808a){this['_scheduleClearOtherTimer'](_0x5a808a['memberID']);}[_0x1551de(0x3f8)](_0x4320bf){const _0x108b00=_0x1551de;localStorage[_0x108b00(0x2ac)](_s,JSON[_0x108b00(0x3da)](_0x4320bf));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x47b107=_0x15b1;this[_0x47b107(0x3f8)]({'type':0x2,'memberID':this[_0x47b107(0x48b)]});},ls);}['_ensureSubject'](_0x2c91f0){const _0x39eddb=_0x1551de;return this['_unitStatus'][_0x39eddb(0x329)](_0x2c91f0)||this[_0x39eddb(0x316)][_0x39eddb(0x3a4)](_0x2c91f0,new _0x278b2c(0x0)),this[_0x39eddb(0x316)]['get'](_0x2c91f0);}}function Fs(_0x1e014e){const _0xa75a7d=_0x1551de;let _0xe1548f='';for(const _0x4822e2 of _0x1e014e){const {startOffset:_0x1ad57d,endOffset:_0x48ffc0,isActive:_0x10fe36}=_0x4822e2;_0xe1548f[_0xa75a7d(0x379)]&&(_0xe1548f+=','),_0xe1548f+=_0x1ad57d+':'+_0x48ffc0+':'+(_0x10fe36?'1':'0');}return _0xe1548f;}function mr(_0x3395b4){const _0x113a5f=_0x1551de,_0x47df48=_0x3395b4['split'](','),_0x338ad2=[];for(const _0x21a772 of _0x47df48){const [_0x16ff0f,_0x52bc4a,_0x17babf]=_0x21a772['split'](':');_0x338ad2['push']({'startOffset':Number(_0x16ff0f),'endOffset':Number(_0x52bc4a),'collapsed':_0x16ff0f===_0x52bc4a,'isActive':_0x17babf==='1'});}return _0x338ad2[_0x113a5f(0x32e)](_0x393d98=>_0x393d98['isActive'])||(_0x338ad2[0x0]['isActive']=!0x0),_0x338ad2;}class Ft extends _0x1a4d16{constructor(){const _0x2c5eb8=_0x1551de;super(...arguments),l(this,_0x2c5eb8(0x413),new _0x278b2c(null)),l(this,'collabCursorState$',this[_0x2c5eb8(0x413)]['asObservable']());}[_0x1551de(0x1ef)](_0x2a5564){const _0x44ba91=_0x1551de,{unitID:_0x4b4dda,memberID:_0x38837f,textRanges:_0x2147ac}=_0x2a5564,_0x143aa8=Fs(_0x2147ac),_0x5408f3={'unitID':_0x4b4dda,'memberID':_0x38837f,'selection':_0x143aa8};this['_collabCursorState$'][_0x44ba91(0x3a7)](_0x5408f3);}}var gr=Object['defineProperty'],Sr=Object[_0x1551de(0x1d2)],pr=(_0x33bac1,_0x168386,_0x53e2cc,_0xed5f35)=>{const _0x5f0f40=_0x1551de;for(var _0xf3208d=_0xed5f35>0x1?void 0x0:_0xed5f35?Sr(_0x168386,_0x53e2cc):_0x168386,_0x44f024=_0x33bac1[_0x5f0f40(0x379)]-0x1,_0x167fbe;_0x44f024>=0x0;_0x44f024--)(_0x167fbe=_0x33bac1[_0x44f024])&&(_0xf3208d=(_0xed5f35?_0x167fbe(_0x168386,_0x53e2cc,_0xf3208d):_0x167fbe(_0xf3208d))||_0xf3208d);return _0xed5f35&&_0xf3208d&&gr(_0x168386,_0x53e2cc,_0xf3208d),_0xf3208d;},us=(_0x18dff3,_0x2f2a62)=>(_0x12c627,_0x1ccfa3)=>_0x2f2a62(_0x12c627,_0x1ccfa3,_0x18dff3);let Xe=class{constructor(_0x7e3c56,_0x3cde25){const _0x5156c9=_0x1551de;this[_0x5156c9(0x49f)]=_0x7e3c56,this[_0x5156c9(0x3ed)]=_0x3cde25;}[_0x1551de(0x2af)](_0x4f9f21){const _0x3d86f8=_0x1551de;var _0x426ab9;const _0x1e5b9d=this[_0x3d86f8(0x49f)][_0x3d86f8(0x3a8)](_0x29f57e),_0x204598=(_0x426ab9=_0x1e5b9d['getDocRanges']())!=null?_0x426ab9:[];if(_0x204598['length']===0x0)return;const _0x3a569e=[{'id':_0x3d86f8(0x322),'params':{'unitId':_0x4f9f21[_0x3d86f8(0x4aa)],'actions':null,'textRanges':_0x204598}}],_0x22cb26=this['_transformService'][_0x3d86f8(0x333)](_0x4f9f21,_0x3a569e);if(!_0xb2b180(_0x22cb26))throw _0x22cb26[_0x3d86f8(0x31c)];const _0x481187=_0x22cb26[_0x3d86f8(0x41d)][0x0][_0x3d86f8(0x533)][_0x3d86f8(0x36f)];Array['isArray'](_0x481187)&&_0x481187[_0x3d86f8(0x379)]&&_0x1e5b9d[_0x3d86f8(0x35b)](_0x481187,!0x1);}};Xe=pr([us(0x0,_0x1e17a6(_0x2c37d0)),us(0x1,_0x19690b)],Xe);const vr=new Set([_0x5dd58c['id']]);function ds(_0x3b6b04,_0x38d326,_0x2a1644,_0x23537d,_0x1ea84a){const _0x543f8c=_0x1551de;var _0x393502,_0x57ecf8,_0x2390d8,_0x1bd775;const _0x4512bf=[];for(const _0x156c15 of _0x3b6b04)if(vr[_0x543f8c(0x329)](_0x156c15['id'])){if(_0x4512bf['length']>0x0)break;_0x4512bf[_0x543f8c(0x2e7)](_0x156c15);break;}else _0x4512bf['push'](_0x156c15);const _0x33a62f=(_0x57ecf8=(_0x393502=_0x1ea84a[_0x543f8c(0x21c)]())==null?void 0x0:_0x393502[_0x543f8c(0x1fa)])!=null?_0x57ecf8:_0x543f8c(0x1c8),_0x4b5fcf=(_0x1bd775=(_0x2390d8=_0x1ea84a[_0x543f8c(0x21c)]())==null?void 0x0:_0x2390d8['memberID'])!=null?_0x1bd775:_0x543f8c(0x1c8);return{'changeset':{'unitID':_0x38d326,'type':_0x3687fc(_0x2a1644['getUnitType'](_0x38d326)),'baseRev':_0x23537d[_0x543f8c(0x1dd)](_0x38d326),'revision':0x0,'userID':_0x33a62f,'memberID':_0x4b5fcf,'mutations':_0x4512bf},'pendingMutations':_0x3b6b04[_0x543f8c(0x3a9)](_0x4512bf[_0x543f8c(0x379)])};}function Ir(_0x292da3,_0x42d1f6,_0xd181fe,_0x365c21,_0x35f90a){const _0x3bb100=_0x1551de;var _0x359b19,_0x398b86,_0x1a72bd,_0x5d25ab;const _0x493e94=[_0x292da3[_0x3bb100(0x43c)]((_0x5b28cc,_0x5b188f)=>{const _0x583cb3=_0x3bb100;var _0x39d010;const {id:_0x54fc55}=_0x5b28cc,{id:_0x4ac24e,type:_0x1036d0}=_0x5b188f,_0x2e9c16=(_0x39d010=_0x5b28cc[_0x583cb3(0x533)])!=null?_0x39d010:{'actions':null},_0x7116e7=_0x5b188f[_0x583cb3(0x533)];if(_0x54fc55&&_0x54fc55!==_0x4ac24e)throw new Error(_0x583cb3(0x4bb)+_0x54fc55+_0x583cb3(0x331)+_0x4ac24e+'.');return{..._0x5b28cc,'id':_0x4ac24e,'type':_0x1036d0,'params':{'unitId':_0x7116e7['unitId'],'textRanges':_0x7116e7['textRanges'],'actions':_0x4d8492['compose'](_0x2e9c16[_0x583cb3(0x290)],_0x7116e7['actions'])}};},{})],_0x15fef0=(_0x398b86=(_0x359b19=_0x35f90a['getCurrentUser']())==null?void 0x0:_0x359b19['userID'])!=null?_0x398b86:_0x3bb100(0x1c8),_0x1d4e99=(_0x5d25ab=(_0x1a72bd=_0x35f90a[_0x3bb100(0x21c)]())==null?void 0x0:_0x1a72bd[_0x3bb100(0x201)])!=null?_0x5d25ab:'unknown';return{'changeset':{'unitID':_0x42d1f6,'type':_0x3687fc(_0xd181fe['getUnitType'](_0x42d1f6)),'baseRev':_0x365c21['getCurrentRevOfUnit'](_0x42d1f6),'revision':0x0,'userID':_0x15fef0,'memberID':_0x1d4e99,'mutations':_0x493e94},'pendingMutations':[]};}function _0x15b1(_0xa5ec82,_0x23ab1){const _0x41eed8=_0x41ee();return _0x15b1=function(_0x15b1d2,_0x86f10a){_0x15b1d2=_0x15b1d2-0x1ad;let _0x36371e=_0x41eed8[_0x15b1d2];return _0x36371e;},_0x15b1(_0xa5ec82,_0x23ab1);}const Er={'id':_0x3c1917['id'],'type':_0x36b537['MUTATION'],'params':{}};var Cr=Object[_0x1551de(0x2f4)],br=Object[_0x1551de(0x1d2)],_e=(_0x258d2f,_0x537548,_0x26b20c,_0x17a0a6)=>{const _0x1db24b=_0x1551de;for(var _0x4ce2e3=_0x17a0a6>0x1?void 0x0:_0x17a0a6?br(_0x537548,_0x26b20c):_0x537548,_0x1013aa=_0x258d2f[_0x1db24b(0x379)]-0x1,_0x189427;_0x1013aa>=0x0;_0x1013aa--)(_0x189427=_0x258d2f[_0x1013aa])&&(_0x4ce2e3=(_0x17a0a6?_0x189427(_0x537548,_0x26b20c,_0x4ce2e3):_0x189427(_0x4ce2e3))||_0x4ce2e3);return _0x17a0a6&&_0x4ce2e3&&Cr(_0x537548,_0x26b20c,_0x4ce2e3),_0x4ce2e3;},m=(_0x272a39,_0x4397cb)=>(_0x1bfdb0,_0x16def1)=>_0x4397cb(_0x1bfdb0,_0x16def1,_0x272a39),P=(_0x5c79bf=>(_0x5c79bf[_0x1551de(0x531)]=_0x1551de(0x29c),_0x5c79bf['SYNCED']=_0x1551de(0x28c),_0x5c79bf[_0x1551de(0x528)]='pending',_0x5c79bf['AWAITING']=_0x1551de(0x330),_0x5c79bf['AWAITING_WITH_PENDING']=_0x1551de(0x430),_0x5c79bf[_0x1551de(0x1c9)]=_0x1551de(0x203),_0x5c79bf[_0x1551de(0x516)]=_0x1551de(0x446),_0x5c79bf[_0x1551de(0x2ec)]=_0x1551de(0x2dc),_0x5c79bf))(P||{});class ue{constructor(_0x3cfd45,_0x5e30ef,_0x55bacf,_0x4bc153,_0x120ddc,_0x2dedfc,_0x284b23,_0x3ca9bd,_0x166a8c){const _0x5ee7e0=_0x1551de;l(this,_0x5ee7e0(0x4ac),null),l(this,_0x5ee7e0(0x473),[]),(this['unitID']=_0x3cfd45,this['type']=_0x5e30ef,this[_0x5ee7e0(0x409)]=_0x120ddc,this[_0x5ee7e0(0x512)]=_0x2dedfc,this[_0x5ee7e0(0x2a6)]=_0x284b23,this[_0x5ee7e0(0x382)]=_0x3ca9bd,this['_localCacheService']=_0x166a8c,this[_0x5ee7e0(0x4ac)]=_0x55bacf,this['_pendingMutations']=_0x4bc153);}[_0x1551de(0x1cc)](_0x465c0f){const _0x20eda1=_0x1551de,_0x525d59=this[_0x20eda1(0x382)][_0x20eda1(0x1dd)](this[_0x20eda1(0x4aa)]);return _0x465c0f[_0x20eda1(0x4a4)]>_0x525d59+0x1?(this[_0x20eda1(0x409)][_0x20eda1(0x4ee)]({'from':_0x525d59,'to':_0x465c0f[_0x20eda1(0x4a4)]-0x1}),!0x0):!0x1;}[_0x1551de(0x4d1)](_0x3b2f3b){const _0x6d6ca2=_0x1551de;this['_undoRedoService']['transformUndoRedo'](this[_0x6d6ca2(0x4aa)],_0x3b2f3b);}[_0x1551de(0x2d9)](_0x2480e4){const _0x8c8664=_0x1551de;var _0x464514,_0x686bbc;(_0x686bbc=(_0x464514=this['_handler'])[_0x8c8664(0x4f2)])==null||_0x686bbc['call'](_0x464514,_0x2480e4);}[_0x1551de(0x3a3)](_0x10b688){const _0x4cdb34=_0x1551de;var _0x4ab4ec,_0x5b65cc;return(_0x5b65cc=(_0x4ab4ec=this['_handler'])[_0x4cdb34(0x466)])==null?void 0x0:_0x5b65cc[_0x4cdb34(0x384)](_0x4ab4ec,_0x10b688);}[_0x1551de(0x323)](_0x10eb0c){const _0x5e395c=_0x1551de;var _0x194d3b,_0x3e745a,_0x4bb387;return(_0x4bb387=(_0x3e745a=(_0x194d3b=this['_handler'])[_0x5e395c(0x280)])==null?void 0x0:_0x3e745a['call'](_0x194d3b,_0x10eb0c))!=null?_0x4bb387:_0x10eb0c;}[_0x1551de(0x211)](_0x2cbcf1){const _0x285c87=_0x1551de;var _0x308fb1,_0x3f4c5d;if(this[_0x285c87(0x47e)]===k[_0x285c87(0x36e)]){const {unitID:_0x337c52,mutations:_0x3b461f,memberID:_0x3a24c7}=_0x2cbcf1,_0x4a3577=_0x3b461f[0x0][_0x285c87(0x533)][_0x285c87(0x36f)];Array[_0x285c87(0x32c)](_0x4a3577)&&_0x4a3577['length']>0x0&&((_0x3f4c5d=(_0x308fb1=this['_handler'])[_0x285c87(0x210)])==null||_0x3f4c5d[_0x285c87(0x384)](_0x308fb1,{'unitID':_0x337c52,'memberID':_0x3a24c7,'textRanges':_0x4a3577}));}}[_0x1551de(0x47d)](){const _0x2a071d=_0x1551de;this['_localCacheService'][_0x2a071d(0x4f7)](this[_0x2a071d(0x4aa)],this[_0x2a071d(0x47e)],this[_0x2a071d(0x4ac)],this['_pendingMutations']);}[_0x1551de(0x455)](){const _0x4bb37b=_0x1551de;return this[_0x4bb37b(0x382)][_0x4bb37b(0x1dd)](this[_0x4bb37b(0x4aa)]);}[_0x1551de(0x37c)](){const _0x204b2d=_0x1551de;this['_revisionService'][_0x204b2d(0x2e8)](this['unitID']);}[_0x1551de(0x515)](_0x1dc541){const _0x19097d=_0x1551de;var _0x1fc889;const _0x1ddb58=this[_0x19097d(0x323)](_0x1dc541),_0x3e5b3f=_0x2de33d(_0x1ddb58['mutations'],this[_0x19097d(0x512)],{'fromCollab':!0x0});if(!_0x3e5b3f['result'])throw _0x3e5b3f[_0x19097d(0x31c)]instanceof Error?_0x3e5b3f[_0x19097d(0x31c)]:new Error((_0x1fc889=_0x3e5b3f[_0x19097d(0x31c)])!=null?_0x1fc889:_0x19097d(0x3d0));this[_0x19097d(0x3a3)](_0x1ddb58),this[_0x19097d(0x4d1)](_0x1dc541),this['_transformSelections'](_0x1ddb58),this['_syncEditingCollabCursor'](_0x1ddb58),this[_0x19097d(0x37c)]();}}let pe=class extends ue{constructor(_0x3fdcf0,_0x48bbb8,_0x3a5d5c,_0xb25c49,_0x574b1f,_0x5594ae,_0xef045,_0x1063b2,_0x46b6c2,_0x4308d3){const _0x461cf1=_0x1551de;super(_0x3fdcf0,_0x48bbb8,null,[],_0x3a5d5c,_0x1063b2,_0xef045,_0xb25c49,_0x574b1f),l(this,_0x461cf1(0x2e9),'synced'),(this[_0x461cf1(0x49f)]=_0x5594ae,this[_0x461cf1(0x428)]=_0x46b6c2,this['_transformService']=_0x4308d3);}[_0x1551de(0x373)](_0x54659f){const _0x34ff7f=_0x1551de,_0xacb1f0=this['_injector'][_0x34ff7f(0x3b5)](X,this[_0x34ff7f(0x4aa)],this[_0x34ff7f(0x47e)],[_0x54659f],this[_0x34ff7f(0x409)]);return _0xacb1f0[_0x34ff7f(0x42e)](),_0xacb1f0[_0x34ff7f(0x47d)](),_0xacb1f0;}['onRemoteChangeset'](_0x5c0bfe){const _0x1926d5=_0x1551de;if(this['_checkMissing'](_0x5c0bfe))return this[_0x1926d5(0x49f)][_0x1926d5(0x3b5)](B,this[_0x1926d5(0x4aa)],this['type'],null,[],null,[_0x5c0bfe],this[_0x1926d5(0x409)]);try{const _0x1d471a=this[_0x1926d5(0x3ed)]['transformMutationsWithChangeset'](_0x5c0bfe,[Er]);if(_0xb2b180(_0x1d471a)){const {c1Prime:_0x5e0382}=_0x1d471a;return this['_executeRemoteChangeset'](_0x5e0382),this;}throw _0x1d471a[_0x1926d5(0x31c)];}catch(_0x598961){return this[_0x1926d5(0x428)]['error'](_0x598961),this['_onConflict'](!0x1);}}[_0x1551de(0x3ea)](_0x2ac167){const _0x5b5c0b=_0x1551de;return this[_0x5b5c0b(0x49f)]['createInstance'](ee,this[_0x5b5c0b(0x4aa)],this[_0x5b5c0b(0x47e)],null,[],this[_0x5b5c0b(0x409)],_0x2ac167);}[_0x1551de(0x3b8)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x1551de(0x293)](){const _0x159f36=_0x1551de;return this[_0x159f36(0x49f)][_0x159f36(0x3b5)](te,this[_0x159f36(0x4aa)],this[_0x159f36(0x47e)],null,[],this['_handler']);}[_0x1551de(0x299)](){return this;}[_0x1551de(0x204)](){const _0x4f69c7=_0x1551de;throw new Error(_0x4f69c7(0x3d9));}[_0x1551de(0x44b)](){const _0x99c343=_0x1551de,_0x6f062b=this[_0x99c343(0x382)]['getCurrentRevOfUnit'](this[_0x99c343(0x4aa)]);return this[_0x99c343(0x409)][_0x99c343(0x4ee)]({'from':_0x6f062b,'to':0x0}),this['_injector'][_0x99c343(0x3b5)](B,this[_0x99c343(0x4aa)],this[_0x99c343(0x47e)],null,[],null,[],this[_0x99c343(0x409)]);}};pe=_e([m(0x3,_0x1e17a6(_0x5b3021)),m(0x4,_0x1e17a6(w)),m(0x5,_0x1e17a6(_0x2c37d0)),m(0x6,_0x3046ff),m(0x7,_0x1b1421),m(0x8,_0x57653f),m(0x9,_0x19690b)],pe);let X=class extends ue{constructor(_0xf20e8,_0x17f847,_0x355e01,_0x2c527f,_0x598bb4,_0xa5a3b7,_0x1eb93e,_0xc73f89,_0x21023d,_0xa913,_0x26a1b6,_0x562111,_0x229a43,_0x4f202f){const _0x3ae23d=_0x1551de;super(_0xf20e8,_0x17f847,null,_0x355e01,_0x2c527f,_0xa913,_0x4f202f,_0xa5a3b7,_0x1eb93e),l(this,_0x3ae23d(0x2e9),_0x3ae23d(0x310)),l(this,_0x3ae23d(0x456),null),l(this,_0x3ae23d(0x434),null),(this[_0x3ae23d(0x49f)]=_0x598bb4,this[_0x3ae23d(0x355)]=_0xc73f89,this['_logService']=_0x21023d,this[_0x3ae23d(0x1fb)]=_0x26a1b6,this[_0x3ae23d(0x3ed)]=_0x562111,this[_0x3ae23d(0x4d0)]=_0x229a43);}['appendMutation'](_0x305087){const _0x73246a=_0x1551de;return this['_pendingMutations']['push'](_0x305087),this[_0x73246a(0x47d)](),this;}[_0x1551de(0x47a)](_0x1c48d5){const _0xa9f421=_0x1551de;if(this[_0xa9f421(0x1cc)](_0x1c48d5))return this[_0xa9f421(0x34c)](),this[_0xa9f421(0x49f)][_0xa9f421(0x3b5)](B,this[_0xa9f421(0x4aa)],this[_0xa9f421(0x47e)],null,this[_0xa9f421(0x473)],null,[_0x1c48d5],this[_0xa9f421(0x409)]);try{const _0x25d6ff=this['_transformService'][_0xa9f421(0x333)](_0x1c48d5,this[_0xa9f421(0x473)]);if(_0xb2b180(_0x25d6ff)){const {c1Prime:_0x56ded0,m2Prime:_0x2a48e1}=_0x25d6ff;this[_0xa9f421(0x515)](_0x56ded0);const _0x17654a=this[_0xa9f421(0x49f)]['createInstance'](X,this['unitID'],this['type'],_0x2a48e1,this[_0xa9f421(0x409)]);return this[_0xa9f421(0x34c)](),_0x17654a['_schedule'](this['_scheduleTimestamp']?Math[_0xa9f421(0x321)](0x0,new Date()['getTime']()-this[_0xa9f421(0x456)]):this[_0xa9f421(0x303)]()),_0x17654a;}throw _0x25d6ff[_0xa9f421(0x31c)];}catch(_0x41941b){return this[_0xa9f421(0x428)][_0xa9f421(0x31c)](_0x41941b),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x20092c=_0x1551de;throw new Error(_0x20092c(0x36c));}[_0x1551de(0x2bf)](){const _0xc58f9e=_0x1551de;throw new Error(_0xc58f9e(0x2ba));}['toggleOffline'](){const _0x2d7002=_0x1551de;return this[_0x2d7002(0x34c)](),this[_0x2d7002(0x49f)][_0x2d7002(0x3b5)](te,this[_0x2d7002(0x4aa)],this[_0x2d7002(0x47e)],null,this[_0x2d7002(0x473)],this[_0x2d7002(0x409)]);}['toggleOnline'](){return this;}[_0x1551de(0x42e)](_0x132674){const _0x25c9f7=_0x1551de,_0x37abac=_0x132674!=null?_0x132674:this['_getSendChangesetTimeout']();this[_0x25c9f7(0x456)]=new Date()[_0x25c9f7(0x368)](),this['_sendingTimer']=window[_0x25c9f7(0x270)](()=>{const _0x3d35f6=_0x25c9f7;this[_0x3d35f6(0x34c)]();let _0x528f2a=null;switch(this['type']){case k[_0x3d35f6(0x273)]:{_0x528f2a=ds(this[_0x3d35f6(0x473)],this[_0x3d35f6(0x4aa)],this[_0x3d35f6(0x4d0)],this[_0x3d35f6(0x382)],this['_memberService']);break;}case k[_0x3d35f6(0x36e)]:{this['_pendingMutations'][_0x3d35f6(0x43d)](_0x42d6c=>_0x42d6c['id']===_0x315728['id'])?_0x528f2a=Ir(this[_0x3d35f6(0x473)],this[_0x3d35f6(0x4aa)],this['_univerInstanceService'],this[_0x3d35f6(0x382)],this[_0x3d35f6(0x355)]):_0x528f2a=ds(this[_0x3d35f6(0x473)],this[_0x3d35f6(0x4aa)],this[_0x3d35f6(0x4d0)],this[_0x3d35f6(0x382)],this[_0x3d35f6(0x355)]);break;}default:throw new Error(_0x3d35f6(0x2b4)+this['type']+_0x3d35f6(0x3a0));}const {changeset:_0x3fdc05,pendingMutations:_0x56185d}=_0x528f2a;this[_0x3d35f6(0x409)][_0x3d35f6(0x2e6)](_0x3fdc05);const _0x5a6fb3=_0x56185d[_0x3d35f6(0x379)]?this['_injector'][_0x3d35f6(0x3b5)](q,this['unitID'],this[_0x3d35f6(0x47e)],_0x3fdc05,_0x56185d,this[_0x3d35f6(0x409)]):this[_0x3d35f6(0x49f)][_0x3d35f6(0x3b5)](Q,this['unitID'],this[_0x3d35f6(0x47e)],_0x3fdc05,this[_0x3d35f6(0x409)]);_0x5a6fb3[_0x3d35f6(0x47d)](),this[_0x3d35f6(0x409)][_0x3d35f6(0x3af)](this,_0x5a6fb3);},_0x37abac);}[_0x1551de(0x303)](){const _0x187eb9=_0x1551de;var _0x3a8f9b;const _0x3d3dbb=this[_0x187eb9(0x1fb)][_0x187eb9(0x31a)]($);return(_0x3a8f9b=_0x3d3dbb==null?void 0x0:_0x3d3dbb['sendChangesetTimeout'])!=null?_0x3a8f9b:In;}[_0x1551de(0x204)](){const _0x4fb4d9=_0x1551de;throw new Error(_0x4fb4d9(0x1e3));}['_clearScheduledTask'](){const _0x4cdf62=_0x1551de;this[_0x4cdf62(0x434)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x4cdf62(0x434)]=null);}[_0x1551de(0x3ea)](_0x282f8a){const _0x52ae4f=_0x1551de;return this[_0x52ae4f(0x34c)](),this[_0x52ae4f(0x49f)][_0x52ae4f(0x3b5)](ee,this[_0x52ae4f(0x4aa)],this[_0x52ae4f(0x47e)],null,this[_0x52ae4f(0x473)],this[_0x52ae4f(0x409)],_0x282f8a);}};X=_e([m(0x4,_0x1e17a6(_0x2c37d0)),m(0x5,_0x1e17a6(_0x5b3021)),m(0x6,_0x1e17a6(w)),m(0x7,_0x1e17a6(ce)),m(0x8,_0x57653f),m(0x9,_0x1b1421),m(0xa,_0x162b76),m(0xb,_0x19690b),m(0xc,_0x39ffff),m(0xd,_0x3046ff)],X);let Q=class extends ue{constructor(_0x935e35,_0x1b4639,_0xa476bf,_0x22b846,_0xfb82be,_0x4d5633,_0x16bdd0,_0xfebe12,_0x234b88,_0x3f593d,_0x5c2941){const _0x5cd3ae=_0x1551de;super(_0x935e35,_0x1b4639,_0xa476bf,[],_0x22b846,_0xfebe12,_0x5c2941,_0x4d5633,_0x16bdd0),l(this,_0x5cd3ae(0x2e9),_0x5cd3ae(0x330)),(this[_0x5cd3ae(0x49f)]=_0xfb82be,this[_0x5cd3ae(0x428)]=_0x234b88,this[_0x5cd3ae(0x3ed)]=_0x3f593d);}[_0x1551de(0x373)](_0x373bfe){const _0x4bd352=_0x1551de,_0x19a97f=this[_0x4bd352(0x49f)][_0x4bd352(0x3b5)](q,this[_0x4bd352(0x4aa)],this['type'],this[_0x4bd352(0x4ac)],[_0x373bfe],this[_0x4bd352(0x409)]);return _0x19a97f['_updateLocalCache'](),_0x19a97f;}[_0x1551de(0x47a)](_0x5c6fa0){const _0x423edb=_0x1551de;if(this[_0x423edb(0x1cc)](_0x5c6fa0))return this[_0x423edb(0x49f)][_0x423edb(0x3b5)](B,this['unitID'],this['type'],this[_0x423edb(0x4ac)],[],null,[_0x5c6fa0],this[_0x423edb(0x409)]);try{const _0x5aba65=this['_transformService'][_0x423edb(0x220)]([_0x5c6fa0],[this['_awaitingChangeset']],!0x1);if(_0x34eddb(_0x5aba65)){const {c1Prime:_0x5831fd,c2Prime:_0x54767b}=_0x5aba65;this[_0x423edb(0x515)](_0x5831fd[0x0]),_0x54767b[0x0]['baseRev']=this[_0x423edb(0x455)]();const _0xd6d80b=this[_0x423edb(0x49f)]['createInstance'](Q,this['unitID'],this[_0x423edb(0x47e)],_0x54767b[0x0],this[_0x423edb(0x409)]);return _0xd6d80b['_updateLocalCache'](),_0xd6d80b;}return this[_0x423edb(0x3ea)](!0x1);}catch(_0x201cda){return this[_0x423edb(0x428)][_0x423edb(0x31c)](_0x201cda),this[_0x423edb(0x3ea)](!0x1);}}['onRemoteAck'](_0x5bcd22){const _0x2fcaf4=_0x1551de,_0x3f96f4=this[_0x2fcaf4(0x382)][_0x2fcaf4(0x1dd)](this[_0x2fcaf4(0x4aa)]);if(_0x5bcd22['revision']<_0x3f96f4-0x1)return this;if(this[_0x2fcaf4(0x1cc)](_0x5bcd22))return this[_0x2fcaf4(0x49f)][_0x2fcaf4(0x3b5)](B,this[_0x2fcaf4(0x4aa)],this[_0x2fcaf4(0x47e)],null,[],this['_awaitingChangeset'],[],this[_0x2fcaf4(0x409)]);this[_0x2fcaf4(0x37c)]();const _0xfb6de5=this[_0x2fcaf4(0x49f)]['createInstance'](pe,this[_0x2fcaf4(0x4aa)],this[_0x2fcaf4(0x47e)],this[_0x2fcaf4(0x409)]);return _0xfb6de5[_0x2fcaf4(0x47d)](),_0xfb6de5;}[_0x1551de(0x2bf)](_0x29f1eb){const _0x1ac426=_0x1551de;return this['_onConflict'](!!(_0x29f1eb!=null&&_0x29f1eb[_0x1ac426(0x261)]));}[_0x1551de(0x293)](){const _0x5abf1c=_0x1551de;return this['_injector'][_0x5abf1c(0x3b5)](te,this[_0x5abf1c(0x4aa)],this[_0x5abf1c(0x47e)],this[_0x5abf1c(0x4ac)],[],this[_0x5abf1c(0x409)]);}[_0x1551de(0x299)](){return this;}[_0x1551de(0x204)](){const _0xd5dc8b=_0x1551de;this['_handler']['onSendChangeset'](this[_0xd5dc8b(0x4ac)]);}[_0x1551de(0x3ea)](_0x176b94){const _0x76fe97=_0x1551de;return this[_0x76fe97(0x49f)]['createInstance'](ee,this[_0x76fe97(0x4aa)],this[_0x76fe97(0x47e)],this[_0x76fe97(0x4ac)],[],this[_0x76fe97(0x409)],_0x176b94);}};Q=_e([m(0x4,_0x1e17a6(_0x2c37d0)),m(0x5,_0x1e17a6(_0x5b3021)),m(0x6,_0x1e17a6(w)),m(0x7,_0x1b1421),m(0x8,_0x57653f),m(0x9,_0x19690b),m(0xa,_0x3046ff)],Q);let q=class extends ue{constructor(_0x463e40,_0x5787c3,_0x30890d,_0x368e50,_0xb414ff,_0x427268,_0x54ceaf,_0x2efbc7,_0x43aa4b,_0x2401ca,_0x28c507,_0x126183){const _0x28a37a=_0x1551de;super(_0x463e40,_0x5787c3,_0x30890d,_0x368e50,_0xb414ff,_0x43aa4b,_0x126183,_0x54ceaf,_0x2efbc7),l(this,_0x28a37a(0x2e9),_0x28a37a(0x430)),(this[_0x28a37a(0x49f)]=_0x427268,this['_logService']=_0x2401ca,this[_0x28a37a(0x3ed)]=_0x28c507);}[_0x1551de(0x373)](_0x5111a5){const _0x19a799=_0x1551de;return this['_pendingMutations'][_0x19a799(0x2e7)](_0x5111a5),this;}[_0x1551de(0x47a)](_0x131b5d){const _0x5397cc=_0x1551de;if(this['_checkMissing'](_0x131b5d))return this['_injector'][_0x5397cc(0x3b5)](B,this['unitID'],this[_0x5397cc(0x47e)],this[_0x5397cc(0x4ac)],this[_0x5397cc(0x473)],null,[_0x131b5d],this['_handler']);try{const _0x501959=this[_0x5397cc(0x3ed)][_0x5397cc(0x220)]([_0x131b5d],[this[_0x5397cc(0x4ac)]],!0x1);if(_0x34eddb(_0x501959)){const {c1Prime:_0x4fd069,c2Prime:_0x205d66}=_0x501959,_0x5a1e62=this['_transformService']['transformMutationsWithChangeset'](_0x4fd069[0x0],this[_0x5397cc(0x473)]);if(_0xb2b180(_0x5a1e62)){const {c1Prime:_0x133a3f,m2Prime:_0x23923d}=_0x5a1e62;return this[_0x5397cc(0x515)](_0x133a3f),_0x205d66[0x0][_0x5397cc(0x1bb)]=this[_0x5397cc(0x455)](),this[_0x5397cc(0x49f)][_0x5397cc(0x3b5)](q,this[_0x5397cc(0x4aa)],this[_0x5397cc(0x47e)],_0x205d66[0x0],_0x23923d,this['_handler']);}throw _0x5a1e62['error'];}throw _0x501959[_0x5397cc(0x31c)];}catch(_0x328f1f){return this[_0x5397cc(0x428)][_0x5397cc(0x31c)](_0x328f1f),this[_0x5397cc(0x3ea)](!0x1);}}[_0x1551de(0x3b8)](_0x483f1d){const _0x50e08=_0x1551de;if(this[_0x50e08(0x1cc)](_0x483f1d))return this[_0x50e08(0x49f)][_0x50e08(0x3b5)](B,this['unitID'],this['type'],null,this[_0x50e08(0x473)],this[_0x50e08(0x4ac)],[],this[_0x50e08(0x409)]);this[_0x50e08(0x37c)]();const _0x748544=this['_injector'][_0x50e08(0x3b5)](X,this[_0x50e08(0x4aa)],this[_0x50e08(0x47e)],this[_0x50e08(0x473)],this['_handler']);return _0x748544[_0x50e08(0x42e)](),_0x748544['_updateLocalCache'](),_0x748544;}[_0x1551de(0x2bf)](_0x1df5ba){const _0x155145=_0x1551de;return this[_0x155145(0x3ea)](!!(_0x1df5ba!=null&&_0x1df5ba[_0x155145(0x261)]));}['toggleOffline'](){const _0x42cb2b=_0x1551de;return this['_injector'][_0x42cb2b(0x3b5)](te,this[_0x42cb2b(0x4aa)],this[_0x42cb2b(0x47e)],this['_awaitingChangeset'],this[_0x42cb2b(0x473)],this[_0x42cb2b(0x409)]);}[_0x1551de(0x299)](){return this;}[_0x1551de(0x204)](){const _0x52a6b9=_0x1551de;this[_0x52a6b9(0x409)][_0x52a6b9(0x2e6)](this[_0x52a6b9(0x4ac)]);}[_0x1551de(0x3ea)](_0x412efa){const _0x27744b=_0x1551de;return this[_0x27744b(0x49f)]['createInstance'](ee,this['unitID'],this[_0x27744b(0x47e)],null,this['_pendingMutations'],this['_handler'],_0x412efa);}};q=_e([m(0x5,_0x1e17a6(_0x2c37d0)),m(0x6,_0x1e17a6(_0x5b3021)),m(0x7,_0x1e17a6(w)),m(0x8,_0x1b1421),m(0x9,_0x57653f),m(0xa,_0x19690b),m(0xb,_0x3046ff)],q);let ee=class extends ue{constructor(_0x40e817,_0x12a848,_0x595057,_0x554b2a,_0x4c7ec7,_0x1a3051=!0x1,_0x4f40a1,_0x3dd17b,_0x112c7,_0x574af5,_0x68a20c,_0x515110,_0x2062d7){const _0x1cfdce=_0x1551de;super(_0x40e817,_0x12a848,_0x595057,_0x554b2a,_0x4c7ec7,_0x3dd17b,_0x112c7,_0x68a20c,_0x574af5),l(this,'status',_0x1cfdce(0x446)),(this['_isPermissionRej']=_0x1a3051,this[_0x1cfdce(0x1cd)]=_0x4f40a1,this[_0x1cfdce(0x50d)]=_0x515110,this[_0x1cfdce(0x28f)]=_0x2062d7,this[_0x1cfdce(0x381)](),this[_0x1cfdce(0x2b0)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x1551de(0x47a)](){return this;}[_0x1551de(0x3b8)](){return this;}[_0x1551de(0x2bf)](){return this;}[_0x1551de(0x293)](){return this;}[_0x1551de(0x299)](){return this;}[_0x1551de(0x204)](){const _0x541c3e=_0x1551de;throw new Error(_0x541c3e(0x491));}[_0x1551de(0x2b0)](){const _0x6f589c=_0x1551de;this[_0x6f589c(0x1fd)]['updateOfflineData'](this[_0x6f589c(0x4aa)],this[_0x6f589c(0x47e)],null,[]);}['_showConflictNotification'](){const _0xb5de3=_0x1551de;this['_isPermissionRej']?this[_0xb5de3(0x28f)][_0xb5de3(0x341)]({'title':this[_0xb5de3(0x50d)]['t'](_0xb5de3(0x2f7)),'content':this['_localeService']['t']('permission.content'),'type':_0xb5de3(0x31c),'duration':0x0}):this[_0xb5de3(0x28f)]['show']({'title':this['_localeService']['t']('conflict.title'),'content':this[_0xb5de3(0x50d)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x1551de(0x485)](){const _0x43d0b3=_0x1551de;this[_0x43d0b3(0x1cd)][_0x43d0b3(0x4bd)](new _0x454d8a(this[_0x43d0b3(0x4aa)])['id'],!0x1);}};ee=_e([m(0x6,_0x1e17a6(_0x42a9f2)),m(0x7,_0x1b1421),m(0x8,_0x3046ff),m(0x9,_0x1e17a6(w)),m(0xa,_0x1e17a6(_0x5b3021)),m(0xb,_0x1e17a6(_0x2268fa)),m(0xc,_0x59f2dd)],ee);let te=class extends ue{constructor(_0x50de32,_0x1c004,_0x515876,_0x462b06,_0x1623dc,_0x4147aa,_0x262c2e,_0x28d931,_0x365a1d,_0x23b670){const _0x5d69ef=_0x1551de;super(_0x50de32,_0x1c004,_0x515876,_0x462b06,_0x1623dc,_0x365a1d,_0x23b670,_0x262c2e,_0x28d931),l(this,_0x5d69ef(0x2e9),'offline'),this[_0x5d69ef(0x49f)]=_0x4147aa;}[_0x1551de(0x373)](_0x2b3aaa){const _0x5d75fc=_0x1551de;return this['_pendingMutations']['push'](_0x2b3aaa),this[_0x5d75fc(0x47d)](),this;}['onRemoteChangeset'](_0x2d420d){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x1551de(0x3b8)](){const _0x5a2ced=_0x1551de;throw new Error(_0x5a2ced(0x1d9));}[_0x1551de(0x2bf)](){const _0x313db8=_0x1551de;throw new Error(_0x313db8(0x4e9));}[_0x1551de(0x293)](){return this;}[_0x1551de(0x299)](){const _0x468f92=_0x1551de,{_injector:_0x22c01b,_pendingMutations:_0x539600,_awaitingChangeset:_0xa4fe47,unitID:_0x3a89b5,_handler:_0x2d9251,type:_0x2814e4}=this,_0x36f2af=Ws(_0x22c01b,_0x3a89b5,_0x2814e4,_0xa4fe47,_0x539600,_0x2d9251);return _0x36f2af instanceof X?_0x36f2af[_0x468f92(0x42e)]():(_0x36f2af instanceof q||_0x36f2af instanceof Q)&&_0x36f2af['resend'](),_0x36f2af;}[_0x1551de(0x204)](){const _0x3100fa=_0x1551de;throw new Error(_0x3100fa(0x4b2));}};te=_e([m(0x5,_0x1e17a6(_0x2c37d0)),m(0x6,_0x1e17a6(_0x5b3021)),m(0x7,_0x1e17a6(w)),m(0x8,_0x1b1421),m(0x9,_0x3046ff)],te);let B=class extends ue{constructor(_0x3743e2,_0x26c72d,_0xb29972,_0x137200,_0x2ac2cc,_0x571748,_0x49fbcb,_0x51df9b,_0x39070e,_0x24d550,_0x1b79ed,_0x1b5010,_0x1ef5df,_0x38a619){const _0x2c39eb=_0x1551de;super(_0x3743e2,_0x26c72d,_0xb29972,_0x137200,_0x49fbcb,_0x1b5010,_0x1ef5df,_0x39070e,_0x24d550),l(this,_0x2c39eb(0x2e9),'fetch_missing'),(this[_0x2c39eb(0x431)]=_0x2ac2cc,this[_0x2c39eb(0x1af)]=_0x571748,this[_0x2c39eb(0x49f)]=_0x51df9b,this[_0x2c39eb(0x428)]=_0x1b79ed,this[_0x2c39eb(0x3ed)]=_0x38a619);}[_0x1551de(0x426)](_0x27c93c){const _0x8183ee=_0x1551de;try{const _0x29a9e5=[..._0x27c93c,...this['_queuedRemoteChangesets']],_0x4f0009=[this[_0x8183ee(0x4ac)]||this['_acknowledgedAwaitingChangeset']][_0x8183ee(0x1ce)](_0x431e3f=>!!_0x431e3f);let _0x1977d7,_0x5cfb21;if(_0x4f0009[_0x8183ee(0x379)]){const _0x454300=this[_0x8183ee(0x3ed)][_0x8183ee(0x220)](_0x29a9e5,_0x4f0009,!0x1);if(!_0x34eddb(_0x454300))throw _0x454300[_0x8183ee(0x31c)];_0x1977d7=_0x454300['c1Prime'],_0x5cfb21=_0x454300[_0x8183ee(0x343)];}else _0x1977d7=_0x29a9e5,_0x5cfb21=[];let _0x4332b1=this[_0x8183ee(0x473)];_0x1977d7[_0x8183ee(0x357)](_0x573bd7=>{const _0x5e8a77=_0x8183ee;let _0x44af31;if(_0x4332b1[_0x5e8a77(0x379)]){const _0x460d07=this['_transformService'][_0x5e8a77(0x333)](_0x573bd7,_0x4332b1);if(!_0xb2b180(_0x460d07))throw _0x460d07[_0x5e8a77(0x31c)];_0x44af31=_0x460d07[_0x5e8a77(0x2a2)],_0x4332b1=_0x460d07[_0x5e8a77(0x41d)];}else _0x44af31=_0x573bd7;this[_0x5e8a77(0x515)](_0x44af31);}),this[_0x8183ee(0x431)]&&this[_0x8183ee(0x37c)](),this[_0x8183ee(0x4ac)]&&_0x5cfb21[_0x8183ee(0x379)]&&(_0x5cfb21[0x0][_0x8183ee(0x1bb)]=this['_getCurrentRevision']());let _0x33177c;if(this[_0x8183ee(0x4ac)]&&_0x4332b1[_0x8183ee(0x379)]!==0x0)_0x33177c=this[_0x8183ee(0x49f)][_0x8183ee(0x3b5)](q,this['unitID'],this[_0x8183ee(0x47e)],_0x5cfb21[0x0],_0x4332b1,this['_handler']);else{if(this[_0x8183ee(0x4ac)]&&_0x4332b1[_0x8183ee(0x379)]===0x0)_0x5cfb21[0x0][_0x8183ee(0x1bb)]=this['_getCurrentRevision'](),_0x33177c=this['_injector'][_0x8183ee(0x3b5)](Q,this[_0x8183ee(0x4aa)],this[_0x8183ee(0x47e)],_0x5cfb21[0x0],this[_0x8183ee(0x409)]);else{if(_0x4332b1[_0x8183ee(0x379)]!==0x0){const _0x6574e3=this[_0x8183ee(0x49f)][_0x8183ee(0x3b5)](X,this[_0x8183ee(0x4aa)],this[_0x8183ee(0x47e)],_0x4332b1,this[_0x8183ee(0x409)]);_0x6574e3[_0x8183ee(0x42e)](),_0x33177c=_0x6574e3;}else _0x33177c=this['_injector'][_0x8183ee(0x3b5)](pe,this[_0x8183ee(0x4aa)],this['type'],this['_handler']);}}return _0x33177c[_0x8183ee(0x47d)](),_0x33177c;}catch(_0x393704){return this['_logService'][_0x8183ee(0x31c)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x393704),this['_injector'][_0x8183ee(0x3b5)](ee,this[_0x8183ee(0x4aa)],this['type'],this[_0x8183ee(0x4ac)],this[_0x8183ee(0x473)],this[_0x8183ee(0x409)],!0x1);}}['resend'](){const _0x5085ff=_0x1551de;throw new Error(_0x5085ff(0x484));}['appendMutation'](_0x253154){const _0x9c3557=_0x1551de;return this[_0x9c3557(0x473)][_0x9c3557(0x2e7)](_0x253154),this;}[_0x1551de(0x47a)](_0x52f4a4){const _0x26434a=_0x1551de;return this['_queuedRemoteChangesets'][_0x26434a(0x2e7)](_0x52f4a4),this;}[_0x1551de(0x3b8)](_0x1fc5d4){const _0xd71aaf=_0x1551de;if(this[_0xd71aaf(0x4ac)])return this[_0xd71aaf(0x431)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0xd71aaf(0x1ae));}[_0x1551de(0x2bf)](_0x15f3dc){const _0x4f719f=_0x1551de;return this['_onConflict'](!!(_0x15f3dc!=null&&_0x15f3dc[_0x4f719f(0x261)]));}['toggleOffline'](){const _0x4c2de9=_0x1551de;return this[_0x4c2de9(0x49f)][_0x4c2de9(0x3b5)](te,this[_0x4c2de9(0x4aa)],this['type'],this['_awaitingChangeset'],this[_0x4c2de9(0x473)],this[_0x4c2de9(0x409)]);}['toggleOnline'](){return this;}['_onConflict'](_0x2dba53){const _0x35d52d=_0x1551de;return this[_0x35d52d(0x49f)]['createInstance'](ee,this['unitID'],this[_0x35d52d(0x47e)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x35d52d(0x409)],_0x2dba53);}};B=_e([m(0x7,_0x1e17a6(_0x2c37d0)),m(0x8,_0x1e17a6(_0x5b3021)),m(0x9,_0x1e17a6(w)),m(0xa,_0x57653f),m(0xb,_0x1b1421),m(0xc,_0x3046ff),m(0xd,_0x19690b)],B);function Ws(_0x47cc4c,_0x5eea07,_0x489284,_0x5f0951,_0x10dbad,_0x5b6f40){const _0x319e0d=_0x1551de;return _0x5f0951&&_0x10dbad[_0x319e0d(0x379)]?_0x47cc4c[_0x319e0d(0x3b5)](q,_0x5eea07,_0x489284,_0x5f0951,_0x10dbad,_0x5b6f40):_0x5f0951?_0x47cc4c[_0x319e0d(0x3b5)](Q,_0x5eea07,_0x489284,_0x5f0951,_0x5b6f40):_0x10dbad[_0x319e0d(0x379)]?_0x47cc4c['createInstance'](X,_0x5eea07,_0x489284,_0x10dbad,_0x5b6f40):_0x47cc4c['createInstance'](pe,_0x5eea07,_0x489284,_0x5b6f40);}var Tr=Object[_0x1551de(0x2f4)],Rr=Object[_0x1551de(0x1d2)],Wt=(_0x1b4387,_0x13ec37,_0x9bf4ad,_0x474680)=>{for(var _0x5c7390=_0x474680>0x1?void 0x0:_0x474680?Rr(_0x13ec37,_0x9bf4ad):_0x13ec37,_0x299242=_0x1b4387['length']-0x1,_0x2eb51e;_0x299242>=0x0;_0x299242--)(_0x2eb51e=_0x1b4387[_0x299242])&&(_0x5c7390=(_0x474680?_0x2eb51e(_0x13ec37,_0x9bf4ad,_0x5c7390):_0x2eb51e(_0x5c7390))||_0x5c7390);return _0x474680&&_0x5c7390&&Tr(_0x13ec37,_0x9bf4ad,_0x5c7390),_0x5c7390;},p=(_0x2b92cf,_0x38c1cd)=>(_0x52a4c4,_0x27a5ca)=>_0x38c1cd(_0x52a4c4,_0x27a5ca,_0x2b92cf);let qe=class extends _0x1a4d16{constructor(_0x9beb8e,_0x275e52,_0x5397cb,_0x1131c6,_0x40d36d,_0x32a918,_0x545bc1,_0x1f54b2,_0x34498c,_0x2eebdf,_0x121596,_0x4a79de,_0x354508){const _0x40f724=_0x1551de;super(),l(this,_0x40f724(0x45d),new _0x278b2c(null)),l(this,_0x40f724(0x472),this[_0x40f724(0x45d)][_0x40f724(0x1ea)]()),l(this,'_state'),l(this,_0x40f724(0x2b3),!0x1),l(this,_0x40f724(0x4ff),''),l(this,'_changesetReqId',0x0),l(this,_0x40f724(0x207),this[_0x40f724(0x472)][_0x40f724(0x506)](_0x533f04(_0x10b657=>_0x10b657?_0x10b657[_0x40f724(0x2e9)]:P['OFFLINE']),_0x3c413f(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x40f724(0x1f3),[]),(this['unitID']=_0x9beb8e,this[_0x40f724(0x266)]=_0x275e52,this[_0x40f724(0x1d8)]=_0x5397cb,this[_0x40f724(0x49f)]=_0x1131c6,this[_0x40f724(0x1fd)]=_0x40d36d,this[_0x40f724(0x1f5)]=_0x32a918,this['_localeService']=_0x545bc1,this[_0x40f724(0x382)]=_0x1f54b2,this[_0x40f724(0x428)]=_0x34498c,this[_0x40f724(0x512)]=_0x2eebdf,this['_messageService']=_0x121596,this[_0x40f724(0x1cd)]=_0x4a79de,this[_0x40f724(0x2c9)]=_0x354508);}get[_0x1551de(0x1b8)](){const _0x48bb54=_0x1551de;return this[_0x48bb54(0x39e)];}async[_0x1551de(0x284)](){const _0x43a80e=_0x1551de;if(this['state'])throw new Error(_0x43a80e(0x433));await this[_0x43a80e(0x35f)]();}[_0x1551de(0x4e3)](){return this['_collaborationPaused']=!0x0,_0x544db0(()=>{const _0x1b422b=_0x15b1;this[_0x1b422b(0x2b3)]=!0x1,this[_0x1b422b(0x243)]();});}['_updateState'](_0x32bb1c){const _0x1636ca=_0x1551de;this[_0x1636ca(0x39e)]=_0x32bb1c,this[_0x1636ca(0x45d)]['next'](_0x32bb1c);}async[_0x1551de(0x35f)](){const _0x335c91=_0x1551de;var _0x8c9523;this[_0x335c91(0x294)](await this[_0x335c91(0x1ad)]()),this[_0x335c91(0x2c9)]&&((_0x8c9523=this['_singleActiveUnitService'])==null||_0x8c9523[_0x335c91(0x52c)](this[_0x335c91(0x4aa)]),this[_0x335c91(0x48a)](this[_0x335c91(0x2c9)][_0x335c91(0x32d)](this['unitID'])[_0x335c91(0x245)](_0x1ab842=>{const _0x3da3ab=_0x335c91;this['_logService']['debug']('[CollaborationEntity]',_0x3da3ab(0x478),_0x1ab842),_0x1ab842===Vs[_0x3da3ab(0x385)]?(this[_0x3da3ab(0x345)][_0x3da3ab(0x341)]({'content':this[_0x3da3ab(0x50d)]['t'](_0x3da3ab(0x1d3)),'type':_0x2710e7[_0x3da3ab(0x496)]}),this[_0x3da3ab(0x1cd)][_0x3da3ab(0x4bd)](new _0x454d8a(this[_0x3da3ab(0x4aa)])['id'],!0x1)):this[_0x3da3ab(0x1cd)]['updatePermissionPoint'](new _0x454d8a(this['unitID'])['id'],!0x0);})));let _0x1c1b8b=!0x1;return this[_0x335c91(0x48a)](this[_0x335c91(0x266)]['sessionStatus$']['subscribe'](_0x32ffc2=>{const _0x3ee360=_0x335c91;_0x32ffc2===Y[_0x3ee360(0x276)]?this[_0x3ee360(0x4a1)](_0x1c1b8b):_0x32ffc2===Y[_0x3ee360(0x2ec)]&&(_0x1c1b8b=!0x0,this[_0x3ee360(0x2bc)]());})),this[_0x335c91(0x48a)](this['session'][_0x335c91(0x498)]['subscribe'](_0x3f4316=>{const _0x380c63=_0x335c91;try{switch(_0x3f4316[_0x380c63(0x1be)]){case _0x5b54e6[_0x380c63(0x2fd)]:{this[_0x380c63(0x262)](_0x54e663(_0x3f4316['data']));break;}case _0x5b54e6[_0x380c63(0x3e9)]:{this[_0x380c63(0x1f4)](_0x3f4316['data']);break;}case _0x5b54e6[_0x380c63(0x4cb)]:{this[_0x380c63(0x4cf)]();break;}case _0x5b54e6[_0x380c63(0x48e)]:{this[_0x380c63(0x318)](_0x3f4316[_0x380c63(0x253)][_0x380c63(0x3ae)][_0x380c63(0x33b)](_0x2e8c74=>_0x54e663(_0x2e8c74)));break;}case _0x5b54e6[_0x380c63(0x3f0)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x33e0d7){throw console[_0x380c63(0x31c)](_0x380c63(0x215),_0x33e0d7),_0x33e0d7;}})),this[_0x335c91(0x39e)];}[_0x1551de(0x4dc)](){const _0x438e81=_0x1551de;this[_0x438e81(0x51a)]=!0x1;}[_0x1551de(0x396)](){const _0x2c57b9=_0x1551de;if(this[_0x2c57b9(0x51a)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x2c57b9(0x51a)]=!0x0;}[_0x1551de(0x40d)](_0x2fc414){const _0x143211=_0x1551de;this[_0x143211(0x396)](),this[_0x143211(0x294)](this[_0x143211(0x39e)][_0x143211(0x373)](_0x2fc414)),this[_0x143211(0x4dc)]();}[_0x1551de(0x262)](_0x5c054b){const _0x3a699c=_0x1551de;if(!(_0x5c054b[_0x3a699c(0x4a4)]<=this[_0x3a699c(0x382)]['getCurrentRevOfUnit'](this[_0x3a699c(0x4aa)]))){if(this[_0x3a699c(0x2b3)]){this[_0x3a699c(0x1f3)][_0x3a699c(0x2e7)](_0x5c054b);return;}this['_applyRemoteChangeset'](_0x5c054b);}}[_0x1551de(0x243)](){const _0x35d22d=_0x1551de;this[_0x35d22d(0x1f3)]['forEach'](_0x300f0a=>this[_0x35d22d(0x493)](_0x300f0a)),this[_0x35d22d(0x1f3)]=[];}['_applyRemoteChangeset'](_0x35e827){const _0x45e7d4=_0x1551de,_0x50947b=this[_0x45e7d4(0x1f5)][_0x45e7d4(0x4a7)][_0x45e7d4(0x4ae)](this['_compressMutationService'][_0x45e7d4(0x4a7)][_0x45e7d4(0x1c4)]()[_0x45e7d4(0x50a)])(_0x35e827[_0x45e7d4(0x417)],null)||_0x35e827['mutations'],_0x6ba8ca={..._0x35e827,'mutations':_0x50947b};this[_0x45e7d4(0x396)](),this['_updateState'](this['_state'][_0x45e7d4(0x47a)](_0x6ba8ca)),this['_unlockTransition']();}[_0x1551de(0x1f4)](_0xf9620d){const _0x2af9a9=_0x1551de;this['_lockTransition'](),this[_0x2af9a9(0x294)](this[_0x2af9a9(0x39e)]['onRemoteAck'](_0xf9620d)),this[_0x2af9a9(0x4dc)]();}[_0x1551de(0x4cf)](_0x41918a){const _0xf58e3d=_0x1551de;this[_0xf58e3d(0x396)](),this[_0xf58e3d(0x294)](this[_0xf58e3d(0x39e)]['onRemoteRej'](_0x41918a)),this[_0xf58e3d(0x4dc)]();}[_0x1551de(0x318)](_0x422899){const _0x206f60=_0x1551de;if(!(this['_state']instanceof B))throw new TypeError(_0x206f60(0x3cd));const _0x51c727=_0x422899[_0x206f60(0x33b)](_0x3d8890=>{const _0x2cdd90=_0x206f60,_0x4a9eae=this[_0x2cdd90(0x1f5)][_0x2cdd90(0x4a7)][_0x2cdd90(0x4ae)](this[_0x2cdd90(0x1f5)][_0x2cdd90(0x4a7)][_0x2cdd90(0x1c4)]()['COMPRESS_MUTATION_APPLY'])(_0x3d8890[_0x2cdd90(0x417)],null)||_0x3d8890['mutations'];return{..._0x3d8890,'mutations':_0x4a9eae};});this[_0x206f60(0x396)](),this['_updateState'](this['_state']['onMissedChangesetFetched'](_0x51c727)),this[_0x206f60(0x4dc)]();}[_0x1551de(0x2bc)](){const _0x86ad9e=_0x1551de;this[_0x86ad9e(0x396)](),this[_0x86ad9e(0x294)](this['_state'][_0x86ad9e(0x293)]()),this[_0x86ad9e(0x4dc)]();}['_toggleOnline'](_0x86dbd4=!0x1){const _0x13301f=_0x1551de;this[_0x13301f(0x396)](),this[_0x13301f(0x294)](this[_0x13301f(0x39e)][_0x13301f(0x299)]()),this[_0x13301f(0x4dc)]();const _0x4f9dce=this[_0x13301f(0x39e)];_0x86dbd4&&_0x4f9dce instanceof pe&&(this[_0x13301f(0x396)](),this[_0x13301f(0x294)](_0x4f9dce['fetchMiss']()),this[_0x13301f(0x4dc)]());}async[_0x1551de(0x1ad)](){return new Promise(_0x40b4f7=>{const _0x308b9c=_0x15b1;this['session'][_0x308b9c(0x49a)][_0x308b9c(0x506)](_0x43d9c0(0x1))[_0x308b9c(0x245)](async _0x1d134a=>{const _0x3bf1ba=_0x308b9c;_0x40b4f7(await this[_0x3bf1ba(0x4a5)](_0x1d134a===Y[_0x3bf1ba(0x276)]));});});}[_0x1551de(0x3f6)](){const _0x512091=_0x1551de,_0x22ff03=this[_0x512091(0x4aa)];return{'onStateChange':(_0x29b20d,_0x4d1155)=>{const _0x1ff2ed=_0x512091;if(_0x29b20d!==this[_0x1ff2ed(0x39e)])throw new Error(_0x1ff2ed(0x2d4)+_0x29b20d[_0x1ff2ed(0x2e9)]+_0x1ff2ed(0x4c8)+_0x4d1155[_0x1ff2ed(0x2e9)]+_0x1ff2ed(0x4b3)+this[_0x1ff2ed(0x39e)][_0x1ff2ed(0x2e9)]);this[_0x1ff2ed(0x294)](_0x4d1155);},'onSendChangeset':_0x35cef4=>{const _0x2abfe3=_0x512091;_0x35cef4[_0x2abfe3(0x24c)]||(_0x35cef4[_0x2abfe3(0x24c)]=this['_changesetSessionId'],_0x35cef4[_0x2abfe3(0x4b4)]=++this[_0x2abfe3(0x526)]);const _0x45912f={'eventID':_0x5b54e6[_0x2abfe3(0x4c7)],'data':{'unitID':_0x35cef4[_0x2abfe3(0x4aa)],'unitType':this[_0x2abfe3(0x1d8)],'changeset':_0x35cef4,'memberID':this[_0x2abfe3(0x266)][_0x2abfe3(0x517)]()}};this[_0x2abfe3(0x266)][_0x2abfe3(0x3e4)](_0x45912f,this[_0x2abfe3(0x4aa)]);},'onMissingChangesets':({from:_0x17041b,to:_0x171154})=>{const _0xb51bea=_0x512091;this[_0xb51bea(0x428)][_0xb51bea(0x26a)](_0xb51bea(0x335),_0xb51bea(0x305)+_0x17041b+_0xb51bea(0x23d)+_0x171154);const _0x5b3fc1={'eventID':_0x5b54e6[_0xb51bea(0x1ca)],'data':{'unitID':_0x22ff03,'unitType':this[_0xb51bea(0x1d8)],'from':_0x17041b,'to':_0x171154}};this[_0xb51bea(0x266)][_0xb51bea(0x3e4)](_0x5b3fc1,this['unitID']);}};}async[_0x1551de(0x4a5)](_0x460158){const _0x38cd18=_0x1551de;var _0x4283a7,_0x2d8e4d;const _0x484153=await this[_0x38cd18(0x1fd)]['loadOfflineData'](this[_0x38cd18(0x4aa)]),_0x40538b=(_0x4283a7=_0x484153==null?void 0x0:_0x484153[_0x38cd18(0x417)])!=null?_0x4283a7:[],_0x3f0886=(_0x2d8e4d=_0x484153==null?void 0x0:_0x484153[_0x38cd18(0x218)])!=null?_0x2d8e4d:null,_0x4e8aeb=!!(_0x3f0886!=null&&_0x3f0886['sid'])&&!!(_0x3f0886!=null&&_0x3f0886['reqId']);this[_0x38cd18(0x4ff)]=_0x4e8aeb?_0x3f0886['sid']:ir(),this[_0x38cd18(0x526)]=_0x4e8aeb?_0x3f0886[_0x38cd18(0x4b4)]:0x0;const _0x246a47=this[_0x38cd18(0x4aa)];try{this[_0x38cd18(0x2f9)](_0x3f0886,_0x40538b);}catch(_0x5c7eeb){this[_0x38cd18(0x428)][_0x38cd18(0x31c)](_0x5c7eeb);}const _0x39cdd7=this[_0x38cd18(0x3f6)]();if(_0x460158){const _0x5b48fc=Ws(this[_0x38cd18(0x49f)],_0x246a47,this[_0x38cd18(0x1d8)],_0x3f0886,_0x40538b,_0x39cdd7);return _0x5b48fc instanceof X?_0x5b48fc['_schedule']():(_0x5b48fc instanceof q||_0x5b48fc instanceof Q)&&_0x5b48fc['resend'](),_0x5b48fc;}return this[_0x38cd18(0x49f)][_0x38cd18(0x3b5)](te,_0x246a47,this['_type'],_0x3f0886,_0x40538b,_0x39cdd7);}[_0x1551de(0x2f9)](_0x45fb8c,_0x51e475){const _0x932b1c=_0x1551de;var _0x2029ed,_0x258a6e;const _0x397f34=this[_0x932b1c(0x1f5)]['interceptor'][_0x932b1c(0x4ae)](this[_0x932b1c(0x1f5)][_0x932b1c(0x4a7)][_0x932b1c(0x1c4)]()[_0x932b1c(0x50a)]);(_0x2029ed=_0x397f34((_0x45fb8c==null?void 0x0:_0x45fb8c[_0x932b1c(0x417)])||[],null))==null||_0x2029ed[_0x932b1c(0x357)](_0xd1f7f2=>this[_0x932b1c(0x512)][_0x932b1c(0x27d)](_0xd1f7f2['id'],_0xd1f7f2[_0x932b1c(0x533)])),(_0x258a6e=_0x397f34(_0x51e475||[],null))==null||_0x258a6e['forEach'](_0x347cfc=>this[_0x932b1c(0x512)][_0x932b1c(0x27d)](_0x347cfc['id'],_0x347cfc[_0x932b1c(0x533)]));}};qe=Wt([p(0x3,_0x1e17a6(_0x2c37d0)),p(0x4,_0x1e17a6(w)),p(0x5,_0x1e17a6(_0x13b0c8)),p(0x6,_0x1e17a6(_0x2268fa)),p(0x7,_0x1e17a6(_0x5b3021)),p(0x8,_0x57653f),p(0x9,_0x1b1421),p(0xa,_0x2c0505),p(0xb,_0x42a9f2),p(0xc,_0x302b5c(tt))],qe);let Tt=class extends qe{constructor(_0x12f277,_0x42aa92,_0x2521e4,_0x17b617,_0x11d62a,_0x4ce546,_0x30c0e4,_0x15d7de,_0x4c843b,_0x396a04,_0x187f45,_0x55a030,_0x43531c,_0x541c28,_0x5c6836,_0x197eb7,_0x172c48){const _0x2e3660=_0x1551de;super(_0x12f277,_0x2521e4,_0x42aa92,_0x17b617,_0x11d62a,_0x4ce546,_0x30c0e4,_0x15d7de,_0x43531c,_0x541c28,_0x5c6836,_0x197eb7,_0x172c48),this['unitID']=_0x12f277,this[_0x2e3660(0x47e)]=_0x42aa92,this[_0x2e3660(0x422)]=_0x4c843b,this[_0x2e3660(0x1f0)]=_0x396a04,this[_0x2e3660(0x359)]=_0x187f45,this[_0x2e3660(0x421)]=_0x55a030;}[_0x1551de(0x3f6)](){const _0x3e0764=_0x1551de,_0x3a9cf7=super[_0x3e0764(0x3f6)]();return _0x3a9cf7['onTransformIME']=_0x15c59c=>this[_0x3e0764(0x1f0)]['transformIMECache'](_0x15c59c),_0x3a9cf7[_0x3e0764(0x4f2)]=_0xa22c0a=>this['_docTransformSelectionsService'][_0x3e0764(0x2af)](_0xa22c0a),_0x3a9cf7[_0x3e0764(0x210)]=_0x166829=>this[_0x3e0764(0x421)]['syncEditingCollabCursor'](_0x166829),_0x3a9cf7[_0x3e0764(0x280)]=_0x345f08=>this['_docTransformIMECacheService'][_0x3e0764(0x25c)](_0x345f08),_0x3a9cf7;}async[_0x1551de(0x35f)](){const _0x84ce9=_0x1551de,_0x5d326e=await super[_0x84ce9(0x35f)]();return this[_0x84ce9(0x422)][_0x84ce9(0x1d0)][_0x84ce9(0x506)](_0x2e6539(this[_0x84ce9(0x51e)]))[_0x84ce9(0x245)](_0x104b75=>{const _0x479a71=_0x84ce9;if(_0x104b75==null)return;const {unitId:_0x4a0f12,redoState:_0x39aca0,commandId:_0x4c32ca}=_0x104b75;if(_0x4a0f12!==this[_0x479a71(0x4aa)])return;const _0x1c2683={'id':_0x4c32ca,'type':_0x36b537[_0x479a71(0x25d)],'params':{'unitId':_0x4a0f12,'actions':_0x39aca0[_0x479a71(0x290)],'textRanges':null}};this[_0x479a71(0x40d)](_0x1c2683);}),_0x5d326e;}};Tt=Wt([p(0x3,_0x1e17a6(_0x2c37d0)),p(0x4,_0x1e17a6(w)),p(0x5,_0x1e17a6(_0x13b0c8)),p(0x6,_0x1e17a6(_0x2268fa)),p(0x7,_0x1e17a6(_0x5b3021)),p(0x8,_0x1e17a6(_0xfcb938)),p(0x9,_0x1e17a6(Ye)),p(0xa,_0x1e17a6(Xe)),p(0xb,_0x1e17a6(Ft)),p(0xc,_0x57653f),p(0xd,_0x1b1421),p(0xe,_0x2c0505),p(0xf,_0x42a9f2),p(0x10,_0x302b5c(tt))],Tt);let Rt=class extends qe{constructor(_0x2d066c,_0x3cfc23,_0x2d7072,_0x98f103,_0x14510d,_0x56ce9d,_0x1649a3,_0x42d24f,_0x366fb2,_0x422437,_0x4e33bd,_0x589dee,_0x3808b2,_0x41dbef){const _0x1e2de8=_0x1551de;super(_0x2d066c,_0x2d7072,_0x3cfc23,_0x98f103,_0x14510d,_0x56ce9d,_0x1649a3,_0x42d24f,_0x422437,_0x4e33bd,_0x589dee,_0x3808b2,_0x41dbef),this[_0x1e2de8(0x4aa)]=_0x2d066c,this[_0x1e2de8(0x47e)]=_0x3cfc23,this[_0x1e2de8(0x475)]=_0x366fb2;}[_0x1551de(0x3f6)](){const _0x364182=_0x1551de,_0x31dbca=super['_createHandler']();return _0x31dbca['onTransformSelections']=_0x14f408=>this[_0x364182(0x475)][_0x364182(0x2af)](_0x14f408),_0x31dbca;}async[_0x1551de(0x35f)](){const _0x5e78e6=_0x1551de,_0x26ce69=await super[_0x5e78e6(0x35f)]();return this[_0x5e78e6(0x48a)](this[_0x5e78e6(0x512)][_0x5e78e6(0x463)]((_0x297baf,_0x12e607)=>{const _0x41f7a0=_0x5e78e6;if(_0x297baf[_0x41f7a0(0x47e)]!==_0x36b537[_0x41f7a0(0x25d)]||_0x12e607!=null&&_0x12e607[_0x41f7a0(0x4a9)]||_0x12e607!=null&&_0x12e607['onlyLocal'])return;const _0x58cbbf=_0x297baf[_0x41f7a0(0x533)];if((_0x58cbbf==null?void 0x0:_0x58cbbf[_0x41f7a0(0x224)])!==this[_0x41f7a0(0x4aa)])return;const _0x2d87c0=_0x297baf,_0x472cd8=this[_0x41f7a0(0x1f5)][_0x41f7a0(0x4a7)]['fetchThroughInterceptors'](this[_0x41f7a0(0x1f5)][_0x41f7a0(0x4a7)][_0x41f7a0(0x1c4)]()['COMPRESS_MUTATION_SEND'])([_0x2d87c0],null)||[_0x2d87c0];this[_0x41f7a0(0x40d)](_0x472cd8[0x0]);})),_0x26ce69;}};Rt=Wt([p(0x3,_0x1e17a6(_0x2c37d0)),p(0x4,_0x1e17a6(w)),p(0x5,_0x1e17a6(_0x13b0c8)),p(0x6,_0x1e17a6(_0x2268fa)),p(0x7,_0x1e17a6(_0x5b3021)),p(0x8,_0x1e17a6(Ke)),p(0x9,_0x57653f),p(0xa,_0x1b1421),p(0xb,_0x2c0505),p(0xc,_0x42a9f2),p(0xd,_0x302b5c(tt))],Rt);var Or=Object[_0x1551de(0x2f4)],Dr=Object[_0x1551de(0x1d2)],wr=(_0x4be692,_0x5a0401,_0x3419d6,_0x53fc7f)=>{const _0x81e984=_0x1551de;for(var _0x2f1c96=_0x53fc7f>0x1?void 0x0:_0x53fc7f?Dr(_0x5a0401,_0x3419d6):_0x5a0401,_0x33b7ec=_0x4be692[_0x81e984(0x379)]-0x1,_0x28949d;_0x33b7ec>=0x0;_0x33b7ec--)(_0x28949d=_0x4be692[_0x33b7ec])&&(_0x2f1c96=(_0x53fc7f?_0x28949d(_0x5a0401,_0x3419d6,_0x2f1c96):_0x28949d(_0x2f1c96))||_0x2f1c96);return _0x53fc7f&&_0x2f1c96&&Or(_0x5a0401,_0x3419d6,_0x2f1c96),_0x2f1c96;},_t=(_0x140235,_0x1979de)=>(_0x357ddf,_0x367fb9)=>_0x1979de(_0x357ddf,_0x367fb9,_0x140235);let Le=class extends _0x1a4d16{constructor(_0x1e2349,_0x133f57,_0x5ccb26){const _0x4e5427=_0x1551de;super(),l(this,_0x4e5427(0x3ac),new Map()),l(this,_0x4e5427(0x361),new _0x47928e()),(this[_0x4e5427(0x49f)]=_0x1e2349,this[_0x4e5427(0x1e2)]=_0x133f57,this[_0x4e5427(0x4d0)]=_0x5ccb26,this['_init']());}[_0x1551de(0x3d3)](){const _0x459877=_0x1551de;super['dispose'](),this[_0x459877(0x3ac)]['forEach'](_0x3bde8b=>_0x3bde8b[_0x459877(0x3d3)]()),this[_0x459877(0x3ac)][_0x459877(0x3ad)]();}[_0x1551de(0x1e9)](_0x437183){const _0x540a02=_0x1551de;var _0x50580a;return(_0x50580a=this[_0x540a02(0x3ac)][_0x540a02(0x3a8)](_0x437183))!=null?_0x50580a:null;}[_0x1551de(0x244)](_0x8194e3){const _0x4dbb01=_0x1551de,_0x199aee=this[_0x4dbb01(0x1e9)](_0x8194e3);return _0x199aee?_0x55d71b(_0x199aee):this['_entityInit$'][_0x4dbb01(0x506)](_0x357d19(_0x17770c=>_0x17770c[_0x4dbb01(0x4aa)]===_0x8194e3));}[_0x1551de(0x35f)](){const _0x35ed12=_0x1551de;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x55d6cf['UNIVER_SHEET'])[_0x35ed12(0x506)](_0x2e6539(this[_0x35ed12(0x51e)]),_0x22da72(0x10))[_0x35ed12(0x245)](async _0x49b768=>{const _0x509fb5=_0x35ed12,_0x31c762=_0x49b768[_0x509fb5(0x35e)](),_0x1daca3=await this[_0x509fb5(0x1e7)](_0x31c762,k[_0x509fb5(0x273)]);this['_entities'][_0x509fb5(0x3a4)](_0x31c762,_0x1daca3);}),this['_univerInstanceService'][_0x35ed12(0x286)](_0x55d6cf[_0x35ed12(0x36e)])['pipe'](_0x2e6539(this[_0x35ed12(0x51e)]),_0x22da72(0x10))[_0x35ed12(0x506)](_0x357d19(_0x26b641=>!_0x26b641[_0x35ed12(0x35e)]()[_0x35ed12(0x377)]('__')))[_0x35ed12(0x245)](async _0x561b14=>{const _0x317f32=_0x35ed12,_0x5a7cc6=_0x561b14[_0x317f32(0x35e)](),_0x26e12e=await this[_0x317f32(0x1e7)](_0x5a7cc6,k['UNIVER_DOC']);this[_0x317f32(0x3ac)][_0x317f32(0x3a4)](_0x5a7cc6,_0x26e12e);}),_0x4d44c4(this[_0x35ed12(0x4d0)]['getTypeOfUnitDisposed$'](_0x55d6cf['UNIVER_SHEET']),this[_0x35ed12(0x4d0)]['getTypeOfUnitDisposed$'](_0x55d6cf[_0x35ed12(0x36e)]))[_0x35ed12(0x506)](_0x2e6539(this[_0x35ed12(0x51e)]))[_0x35ed12(0x245)](_0x392ec5=>{const _0x14636e=_0x35ed12,_0x35d75c=_0x392ec5['getUnitId'](),_0x1754d9=this[_0x14636e(0x3ac)]['get'](_0x35d75c);_0x1754d9&&(_0x1754d9['dispose'](),this[_0x14636e(0x3ac)]['delete'](_0x35d75c));});}async['_startCollaboration'](_0x522070,_0x19e2b6){const _0x4e218d=_0x1551de,_0x55ca83=await this[_0x4e218d(0x1e2)][_0x4e218d(0x3df)](_0x522070),_0x209c20=this[_0x4e218d(0x49f)][_0x4e218d(0x3b5)](this[_0x4e218d(0x295)](_0x19e2b6),_0x522070,_0x19e2b6,_0x55ca83);return await _0x209c20[_0x4e218d(0x284)](),this['_entityInit$'][_0x4e218d(0x3a7)](_0x209c20),_0x209c20;}[_0x1551de(0x295)](_0x3375f2){const _0x35fa5b=_0x1551de;switch(_0x3375f2){case k[_0x35fa5b(0x36e)]:return Tt;case k[_0x35fa5b(0x273)]:return Rt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x3375f2);}}};Le=wr([_t(0x0,_0x1e17a6(_0x2c37d0)),_t(0x1,_0x1e17a6(he)),_t(0x2,_0x39ffff)],Le);const fs=[_0x1551de(0x406),_0x1551de(0x2b1),_0x1551de(0x522),'red300','blue400',_0x1551de(0x439)];class Gt extends _0x241134{constructor(){const _0x1ac705=_0x1551de;super(...arguments),l(this,_0x1ac705(0x375),new Map()),l(this,_0x1ac705(0x4e7),0x0);}[_0x1551de(0x3bf)](_0x3c0f47){const _0x31839c=_0x1551de;if(this[_0x31839c(0x375)][_0x31839c(0x329)](_0x3c0f47))return this[_0x31839c(0x375)]['get'](_0x3c0f47);const _0x38e224=fs[this[_0x31839c(0x4e7)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%fs[_0x31839c(0x379)],this[_0x31839c(0x375)][_0x31839c(0x3a4)](_0x3c0f47,_0x38e224),_0x38e224;}}var Pr=Object[_0x1551de(0x2f4)],yr=Object[_0x1551de(0x1d2)],Ur=(_0x347180,_0x1f7c61,_0xfd6eba,_0x2b5e2f)=>{for(var _0x451dde=_0x2b5e2f>0x1?void 0x0:_0x2b5e2f?yr(_0x1f7c61,_0xfd6eba):_0x1f7c61,_0xefcd3c=_0x347180['length']-0x1,_0x4035f8;_0xefcd3c>=0x0;_0xefcd3c--)(_0x4035f8=_0x347180[_0xefcd3c])&&(_0x451dde=(_0x2b5e2f?_0x4035f8(_0x1f7c61,_0xfd6eba,_0x451dde):_0x4035f8(_0x451dde))||_0x451dde);return _0x2b5e2f&&_0x451dde&&Pr(_0x1f7c61,_0xfd6eba,_0x451dde),_0x451dde;},ie=(_0x293347,_0x4c0227)=>(_0x458365,_0x2bdbb9)=>_0x4c0227(_0x458365,_0x2bdbb9,_0x293347);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x1a4d16{constructor(_0x3b1cd8,_0x481c50,_0x513d2e,_0x3472e3,_0x475008,_0xcda0f,_0x39d39c,_0x35667d,_0x343d23){const _0x163dab=_0x1551de;super(),l(this,_0x163dab(0x2a4),!0x1),l(this,_0x163dab(0x35f),!0x1),l(this,_0x163dab(0x39d),new _0x278b2c(new Map())),l(this,_0x163dab(0x399),this[_0x163dab(0x39d)][_0x163dab(0x1ea)]()),l(this,_0x163dab(0x1d4),new _0x278b2c([])),l(this,_0x163dab(0x255),this[_0x163dab(0x1d4)][_0x163dab(0x506)](_0x328bac(Nr))),l(this,_0x163dab(0x267),_0x5b918a(_0x3b41b6=>{const _0x5e1769=_0x163dab,_0xadbe8d={'eventID':_0x5b54e6[_0x5e1769(0x32f)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5e1769(0x517)](),'selection':Fs(_0x3b41b6)}};this[_0x5e1769(0x212)][_0x5e1769(0x3e4)](_0xadbe8d,this[_0x5e1769(0x4aa)]);},Mr)),(this['unitID']=_0x3b1cd8,this[_0x163dab(0x212)]=_0x481c50,this[_0x163dab(0x49f)]=_0x513d2e,this[_0x163dab(0x3fd)]=_0x3472e3,this[_0x163dab(0x355)]=_0x475008,this[_0x163dab(0x43a)]=_0xcda0f,this[_0x163dab(0x3ed)]=_0x39d39c,this[_0x163dab(0x4d0)]=_0x35667d,this['_commandService']=_0x343d23);}get[_0x1551de(0x442)](){const _0x4e9c9c=_0x1551de;return this[_0x4e9c9c(0x39d)]['getValue']();}get['roomMembers'](){const _0x47d02a=_0x1551de;return this[_0x47d02a(0x1d4)][_0x47d02a(0x45e)]();}[_0x1551de(0x3d3)](){const _0x35b5d0=_0x1551de;super['dispose'](),this['_cursorInfo$'][_0x35b5d0(0x3a7)](new Map()),this['_cursorInfo$'][_0x35b5d0(0x4c0)](),this['_roomMembers$'][_0x35b5d0(0x3a7)]([]),this[_0x35b5d0(0x1d4)][_0x35b5d0(0x4c0)]();}[_0x1551de(0x284)](){const _0x308f4f=_0x1551de;this[_0x308f4f(0x35f)]||(this[_0x308f4f(0x35f)]=!0x0,this['_session'][_0x308f4f(0x49a)][_0x308f4f(0x506)](_0x2e6539(this[_0x308f4f(0x51e)]))['subscribe'](_0x518b63=>{const _0x27592f=_0x308f4f;_0x518b63===Y[_0x27592f(0x276)]?this['_toggleOnline']():this[_0x27592f(0x2bc)]();}),this[_0x308f4f(0x212)][_0x308f4f(0x498)]['pipe'](_0x2e6539(this[_0x308f4f(0x51e)]))[_0x308f4f(0x245)](_0x3410fc=>{const _0x1c2bd9=_0x308f4f,_0x1a2c80=_0x3410fc['eventID'];_0x1a2c80===_0x5b54e6[_0x1c2bd9(0x32f)]&&this[_0x1c2bd9(0x229)](_0x3410fc),_0x1a2c80===_0x5b54e6[_0x1c2bd9(0x319)]&&this[_0x1c2bd9(0x46f)](_0x3410fc);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x371d46=>{const _0x2e7d83=_0x308f4f,_0x32164d=_0x371d46[_0x2e7d83(0x533)];_0x32164d!=null&&this[_0x2e7d83(0x2a4)]&&_0x371d46['id']===_0x477c79['id']&&_0x32164d[_0x2e7d83(0x224)]===this[_0x2e7d83(0x4aa)]&&_0x32164d[_0x2e7d83(0x1ba)]===!0x1&&this[_0x2e7d83(0x267)](_0x32164d[_0x2e7d83(0x20e)]);})),this[_0x308f4f(0x43a)][_0x308f4f(0x443)]['pipe'](_0x2e6539(this[_0x308f4f(0x51e)]))[_0x308f4f(0x245)](_0x355844=>{const _0x52977b=_0x308f4f;if((_0x355844==null?void 0x0:_0x355844[_0x52977b(0x4aa)])!==this[_0x52977b(0x4aa)])return;const _0x23fd4b={'eventID':_0x5b54e6['UPDATE_CURSOR'],'data':_0x355844};this[_0x52977b(0x229)](_0x23fd4b);}),this[_0x308f4f(0x48a)](this['_commandService'][_0x308f4f(0x463)](_0x32efa8=>{const _0x493970=_0x308f4f;if(_0x32efa8[_0x493970(0x533)]==null)return;const _0x2ee8a4=_0x32efa8['params'];if(_0x32efa8['id']!==_0x315728['id']||_0x2ee8a4[_0x493970(0x224)]!==this[_0x493970(0x4aa)])return;const _0x2c237f={'id':'doc.mutation.rich-text-editing','params':_0x2ee8a4},_0x271019=this[_0x493970(0x442)];for(const [_0x1bfe5d,_0x368dff]of _0x271019){const _0x172d57={'id':_0x493970(0x322),'params':{'unitId':this[_0x493970(0x4aa)],'actions':null,'textRanges':_0x368dff['ranges']}},_0x968629=this['_transformService'][_0x493970(0x3c0)](_0x2c237f,_0x172d57,!0x1);if(_0x532e50(_0x968629))throw _0x968629[_0x493970(0x31c)];_0x271019['set'](_0x1bfe5d,{..._0x368dff,'ranges':_0x968629['m2Prime']['params'][_0x493970(0x36f)]});}queueMicrotask(()=>{const _0x335049=_0x493970;this['_cursorInfo$'][_0x335049(0x3a7)](_0x271019);});})));}[_0x1551de(0x229)](_0x4e38a5){const _0x94cdba=_0x1551de;var _0x2e5b77,_0xab70ff;const {memberID:_0x3a828d,selection:_0x499845}=_0x4e38a5[_0x94cdba(0x253)],_0x4ddece=mr(_0x499845),_0x473087=(_0xab70ff=(_0x2e5b77=this[_0x94cdba(0x355)][_0x94cdba(0x1c1)](this[_0x94cdba(0x4aa)],_0x3a828d))==null?void 0x0:_0x2e5b77[_0x94cdba(0x3ce)])!=null?_0xab70ff:_0x94cdba(0x334),_0x104ff3={'color':this[_0x94cdba(0x3fd)]['assignAColorForMemberID'](_0x3a828d),'name':_0x473087,'ranges':_0x4ddece},_0xf8049c=this['cursorInfo'];_0xf8049c[_0x94cdba(0x3a4)](_0x3a828d,_0x104ff3),this[_0x94cdba(0x39d)]['next'](_0xf8049c);}[_0x1551de(0x46f)](_0x2a65bd){const _0x4a17ff=_0x1551de,{memberID:_0x3bb941}=_0x2a65bd[_0x4a17ff(0x253)],_0x2acd33=this[_0x4a17ff(0x442)];_0x2acd33[_0x4a17ff(0x459)](_0x3bb941),this[_0x4a17ff(0x39d)][_0x4a17ff(0x3a7)](_0x2acd33);}[_0x1551de(0x4a1)](){const _0x3be654=_0x1551de;var _0x338461;if(this[_0x3be654(0x2a4)]=!0x0,((_0x338461=this['_univerInstanceService'][_0x3be654(0x4a3)]())==null?void 0x0:_0x338461['getUnitId']())!==this[_0x3be654(0x4aa)])return;const _0x2e1690=this[_0x3be654(0x49f)][_0x3be654(0x3a8)](_0x29f57e)['getDocRanges']();Array[_0x3be654(0x32c)](_0x2e1690)&&_0x2e1690[_0x3be654(0x379)]>0x0&&this[_0x3be654(0x267)](_0x2e1690);}[_0x1551de(0x2bc)](){const _0x446c15=_0x1551de;this[_0x446c15(0x2a4)]=!0x1;}};Ot=Ur([ie(0x2,_0x1e17a6(_0x2c37d0)),ie(0x3,_0x1e17a6(Gt)),ie(0x4,_0x1e17a6(ce)),ie(0x5,_0x1e17a6(Ft)),ie(0x6,_0x19690b),ie(0x7,_0x39ffff),ie(0x8,_0x1b1421)],Ot);var Ar=Object[_0x1551de(0x2f4)],Lr=Object[_0x1551de(0x1d2)],$r=(_0x1e1e9b,_0x1cb9af,_0x35d17b,_0x3fd454)=>{const _0x221aee=_0x1551de;for(var _0x33483e=_0x3fd454>0x1?void 0x0:_0x3fd454?Lr(_0x1cb9af,_0x35d17b):_0x1cb9af,_0x339a06=_0x1e1e9b[_0x221aee(0x379)]-0x1,_0x56dedb;_0x339a06>=0x0;_0x339a06--)(_0x56dedb=_0x1e1e9b[_0x339a06])&&(_0x33483e=(_0x3fd454?_0x56dedb(_0x1cb9af,_0x35d17b,_0x33483e):_0x56dedb(_0x33483e))||_0x33483e);return _0x3fd454&&_0x33483e&&Ar(_0x1cb9af,_0x35d17b,_0x33483e),_0x33483e;},me=(_0x59a400,_0x39b899)=>(_0x1202ce,_0x3f4f2e)=>_0x39b899(_0x1202ce,_0x3f4f2e,_0x59a400);const jr=0x12c,xr=0x64,Hr=()=>{let _0x5cbcc5=[],_0x214c97=!0x1;return _0x22032e=>{_0x5cbcc5['push'](_0x22032e),_0x214c97||(_0x214c97=!0x0,setTimeout(()=>{const _0xbac84=_0x15b1;_0x5cbcc5[_0xbac84(0x357)](_0x589a3e=>_0x589a3e()),_0x5cbcc5=[],_0x214c97=!0x1;}));};};let Dt=class extends _0x1a4d16{constructor(_0x408383,_0xeb4af0,_0x96160c,_0x26275e,_0x2ba860,_0x3a66da,_0x5c5ef4,_0x2aad37){const _0x66ddce=_0x1551de;super(),l(this,_0x66ddce(0x2a4),!0x1),l(this,_0x66ddce(0x35f),!0x1),l(this,_0x66ddce(0x39d),new _0x278b2c(new Map())),l(this,_0x66ddce(0x399),this['_cursorInfo$'][_0x66ddce(0x1ea)]()),l(this,_0x66ddce(0x1d4),new _0x278b2c([])),l(this,'roomMembers$',this[_0x66ddce(0x1d4)]['pipe'](_0x328bac(jr))),l(this,'_updateLocalCursor',_0x5b918a((_0xbde8d0,_0x51c14e)=>{const _0x2563f6=_0x66ddce,_0x28f8de={'eventID':_0x5b54e6['UPDATE_CURSOR'],'data':{'unitID':this[_0x2563f6(0x4aa)],'memberID':this[_0x2563f6(0x212)]['getMemberID'](),'selection':_0x52f47a(_0xbde8d0,_0x51c14e['range'])}};this[_0x2563f6(0x212)][_0x2563f6(0x3e4)](_0x28f8de,this[_0x2563f6(0x4aa)]);},xr)),(this[_0x66ddce(0x4aa)]=_0x408383,this['_session']=_0xeb4af0,this[_0x66ddce(0x49f)]=_0x96160c,this[_0x66ddce(0x3fd)]=_0x26275e,this[_0x66ddce(0x355)]=_0x2ba860,this[_0x66ddce(0x4d0)]=_0x3a66da,this[_0x66ddce(0x512)]=_0x5c5ef4,this[_0x66ddce(0x312)]=_0x2aad37);}get[_0x1551de(0x442)](){const _0x44a419=_0x1551de;return this['_cursorInfo$'][_0x44a419(0x45e)]();}get[_0x1551de(0x4bf)](){const _0x2e4a74=_0x1551de;return this[_0x2e4a74(0x1d4)][_0x2e4a74(0x45e)]();}[_0x1551de(0x3d3)](){const _0x596133=_0x1551de;super[_0x596133(0x3d3)](),this[_0x596133(0x39d)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x596133(0x1d4)][_0x596133(0x3a7)]([]),this[_0x596133(0x1d4)]['complete']();}[_0x1551de(0x284)](){const _0x26510e=_0x1551de;this['_init']||(this[_0x26510e(0x35f)]=!0x0,this[_0x26510e(0x212)][_0x26510e(0x49a)]['pipe'](_0x2e6539(this['dispose$']))['subscribe'](_0x314b46=>{const _0x1ae461=_0x26510e;_0x314b46===Y[_0x1ae461(0x276)]?this[_0x1ae461(0x4a1)]():this['_toggleOffline']();}),this[_0x26510e(0x212)][_0x26510e(0x498)][_0x26510e(0x506)](_0x2e6539(this[_0x26510e(0x51e)]))[_0x26510e(0x245)](_0x1f2594=>{const _0x79c14a=_0x26510e,_0x501a6f=_0x1f2594['eventID'];_0x501a6f===_0x5b54e6[_0x79c14a(0x32f)]&&this[_0x79c14a(0x229)](_0x1f2594),_0x501a6f===_0x5b54e6['USERS_LEAVE']&&this[_0x79c14a(0x46f)](_0x1f2594);}),this[_0x26510e(0x44c)](),this[_0x26510e(0x48a)](this['_commandService'][_0x26510e(0x463)](_0xbc3b35=>{const _0x290820=_0x26510e;if(this[_0x290820(0x2a4)]&&_0xbc3b35['id']===_0x535015['id']&&_0xbc3b35[_0x290820(0x533)]['unitId']===this[_0x290820(0x4aa)]){const _0xbafe24=_0xbc3b35['params'];this[_0x290820(0x267)](_0xbafe24[_0x290820(0x492)],_0xbafe24[_0x290820(0x32b)][0x0]);}})));}['_onCursorUpdate'](_0x388c3){const _0x37c9d6=_0x1551de;var _0x2522e1,_0x5a35c7;const {memberID:_0x13ae11,selection:_0x45632f}=_0x388c3[_0x37c9d6(0x253)],{sheetName:_0x23f2fe,range:_0x318c8d}=_0x4023cd(_0x45632f),_0x6bfc8={'name':(_0x5a35c7=(_0x2522e1=this[_0x37c9d6(0x355)]['getMember'](this[_0x37c9d6(0x4aa)],_0x13ae11))==null?void 0x0:_0x2522e1[_0x37c9d6(0x3ce)])!=null?_0x5a35c7:'Unknown\x20user','range':this[_0x37c9d6(0x444)](_0x23f2fe,_0x318c8d),'sheetID':_0x23f2fe,'color':this[_0x37c9d6(0x3fd)][_0x37c9d6(0x3bf)](_0x13ae11),'selection':_0x45632f},_0x4eba90=this[_0x37c9d6(0x442)];_0x4eba90[_0x37c9d6(0x3a4)](_0x13ae11,_0x6bfc8),this['_cursorInfo$'][_0x37c9d6(0x3a7)](_0x4eba90);}[_0x1551de(0x46f)](_0x49190c){const _0x1a9ee2=_0x1551de,{memberID:_0x4a5cb7}=_0x49190c[_0x1a9ee2(0x253)],_0x4aecd1=this[_0x1a9ee2(0x442)];_0x4aecd1[_0x1a9ee2(0x459)](_0x4a5cb7),this[_0x1a9ee2(0x39d)][_0x1a9ee2(0x3a7)](_0x4aecd1);}['_getMergeRange'](_0x44f01c,_0x2dcacb){const _0x4ee491=_0x1551de;var _0x1134f7,_0xfc59fa;const _0x13e91c=(_0xfc59fa=(_0x1134f7=this[_0x4ee491(0x4d0)][_0x4ee491(0x4cc)](this[_0x4ee491(0x4aa)]))==null?void 0x0:_0x1134f7[_0x4ee491(0x537)](_0x44f01c))==null?void 0x0:_0xfc59fa[_0x4ee491(0x369)]();return(_0x13e91c==null?void 0x0:_0x13e91c[_0x4ee491(0x251)](_0x457cf8=>_0x1d754c[_0x4ee491(0x2cd)](_0x457cf8,_0x2dcacb)))||_0x2dcacb;}[_0x1551de(0x44c)](){const _0x2bc479=_0x1551de,_0xdde808=new _0x131e3a(),_0x13c25e=Hr(),_0x255cc4=()=>{const _0x4e83eb=_0x15b1;_0xdde808['dispose']();const _0x180e41=(_0x585183,_0x4295f0,_0x263b9e,_0x5a46cc)=>{const _0x2d2c9c=_0x15b1;let _0x531dff=[];switch(_0x585183['id']){case _0x5e34f6[_0x2d2c9c(0x370)]:{_0x531dff=_0x4928f2(_0x585183,_0x5a46cc);break;}case _0x5e34f6[_0x2d2c9c(0x3f4)]:{_0x531dff=_0x368149(_0x585183,_0x5a46cc);break;}case _0x5e34f6['InsertColCommandId']:{_0x531dff=_0x341cd2(_0x585183,_0x5a46cc);break;}case _0x5e34f6[_0x2d2c9c(0x36d)]:{_0x531dff=_0x9352bb(_0x585183,_0x5a46cc);break;}case _0x5e34f6[_0x2d2c9c(0x2a3)]:{_0x531dff=_0x4670d1(_0x585183,_0x5a46cc);break;}case _0x5e34f6['InsertRowCommandId']:{_0x531dff=_0x1cf46a(_0x585183,_0x5a46cc);break;}case _0x5e34f6[_0x2d2c9c(0x34d)]:{_0x531dff=_0x595129(_0x585183,_0x5a46cc);break;}case _0x5e34f6[_0x2d2c9c(0x353)]:{_0x531dff=_0x40d87a(_0x585183,_0x5a46cc);break;}case _0x5e34f6['RemoveRowCommandId']:{_0x531dff=_0x1ec08f(_0x585183,_0x5a46cc);break;}}const _0x3fbe11=_0x1be136(_0x531dff,_0x5a46cc),_0x426aee=this[_0x2d2c9c(0x442)]['get'](_0x4295f0);if(_0x426aee&&_0x3fbe11){const _0x4b67c1={..._0x426aee,'range':_0x3fbe11};this[_0x2d2c9c(0x442)][_0x2d2c9c(0x3a4)](_0x4295f0,_0x4b67c1),_0x13c25e(()=>{const _0x218132=_0x2d2c9c,_0x41c17b=this['_refRangeService'][_0x218132(0x2f2)](_0x3fbe11,_0x3c721a=>(_0x41c17b[_0x218132(0x3d3)](),_0x180e41(_0x3c721a,_0x4295f0,_0x263b9e,_0x3fbe11)));_0xdde808[_0x218132(0x285)](_0x41c17b);});}return{'redos':[],'undos':[]};};this[_0x4e83eb(0x442)][_0x4e83eb(0x357)]((_0x21d012,_0x389959)=>{const _0x2b655f=_0x4e83eb,{range:_0x63c81a,sheetID:_0x10f869}=_0x21d012,_0x5d5372=this[_0x2b655f(0x312)][_0x2b655f(0x2f2)](_0x63c81a,_0x5b5ea7=>(_0x5d5372[_0x2b655f(0x3d3)](),_0x180e41(_0x5b5ea7,_0x389959,_0x10f869,_0x63c81a)));_0xdde808['add'](_0x5d5372);});};this[_0x2bc479(0x48a)](_0x544db0(this[_0x2bc479(0x39d)][_0x2bc479(0x245)](()=>{_0x255cc4();})));}[_0x1551de(0x4a1)](){const _0x2f42ce=_0x1551de;var _0x5073d5,_0x4e0a5f;if(this[_0x2f42ce(0x2a4)]=!0x0,((_0x5073d5=this[_0x2f42ce(0x4d0)][_0x2f42ce(0x4a3)]())==null?void 0x0:_0x5073d5[_0x2f42ce(0x35e)]())!==this['unitID'])return;const _0x5c7445=(_0x4e0a5f=this[_0x2f42ce(0x49f)][_0x2f42ce(0x3a8)](_0xfd41d9)['getCurrentSelections']())==null?void 0x0:_0x4e0a5f[0x0],_0x42ee24=this[_0x2f42ce(0x4d0)][_0x2f42ce(0x486)](_0x55d6cf[_0x2f42ce(0x273)])[_0x2f42ce(0x208)]();_0x5c7445&&_0x42ee24&&this[_0x2f42ce(0x267)](_0x42ee24[_0x2f42ce(0x2a7)](),_0x5c7445);}[_0x1551de(0x2bc)](){this['_online']=!0x1;}};Dt=$r([me(0x2,_0x1e17a6(_0x2c37d0)),me(0x3,_0x1e17a6(Gt)),me(0x4,_0x1e17a6(ce)),me(0x5,_0x39ffff),me(0x6,_0x1b1421),me(0x7,_0x1e17a6(_0x58a9c7))],Dt);var kr=Object['defineProperty'],Br=Object[_0x1551de(0x1d2)],Vr=(_0x2205ab,_0x5daf5a,_0x40536a,_0x4fb6e4)=>{const _0x58ed93=_0x1551de;for(var _0x1f11ff=_0x4fb6e4>0x1?void 0x0:_0x4fb6e4?Br(_0x5daf5a,_0x40536a):_0x5daf5a,_0x46d987=_0x2205ab[_0x58ed93(0x379)]-0x1,_0x2459cc;_0x46d987>=0x0;_0x46d987--)(_0x2459cc=_0x2205ab[_0x46d987])&&(_0x1f11ff=(_0x4fb6e4?_0x2459cc(_0x5daf5a,_0x40536a,_0x1f11ff):_0x2459cc(_0x1f11ff))||_0x1f11ff);return _0x4fb6e4&&_0x1f11ff&&kr(_0x5daf5a,_0x40536a,_0x1f11ff),_0x1f11ff;},ut=(_0x345610,_0x4f30eb)=>(_0x21702a,_0x88f7bc)=>_0x4f30eb(_0x21702a,_0x88f7bc,_0x345610);let ve=class extends _0x1a4d16{constructor(_0x4ecee1,_0x51d008,_0x11b3bc){const _0x49920b=_0x1551de;super(),l(this,_0x49920b(0x3ac),new Map()),l(this,_0x49920b(0x361),new _0x47928e()),(this[_0x49920b(0x4d0)]=_0x4ecee1,this[_0x49920b(0x49f)]=_0x51d008,this[_0x49920b(0x1e2)]=_0x11b3bc,this[_0x49920b(0x35f)]());}[_0x1551de(0x3d3)](){const _0x4f92e2=_0x1551de;super[_0x4f92e2(0x3d3)](),this[_0x4f92e2(0x361)]['complete'](),this[_0x4f92e2(0x3ac)]['forEach'](_0x53db9d=>_0x53db9d[_0x4f92e2(0x3d3)]());}[_0x1551de(0x3b2)](_0x309ec8){const _0x1b9606=_0x1551de;return this[_0x1b9606(0x3ac)][_0x1b9606(0x329)](_0x309ec8)?this[_0x1b9606(0x3ac)][_0x1b9606(0x3a8)](_0x309ec8)[_0x1b9606(0x399)]:this[_0x1b9606(0x361)][_0x1b9606(0x506)](_0x5ccf08(_0x4644d1=>_0x4644d1[_0x1b9606(0x4aa)]===_0x309ec8),_0x228bc0(_0x460680=>_0x460680[_0x1b9606(0x399)]));}['_init'](){const _0x3cd53e=_0x1551de;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x55d6cf[_0x3cd53e(0x273)])[_0x3cd53e(0x506)](_0x2e6539(this['dispose$']))[_0x3cd53e(0x245)](async _0x29bb66=>{const _0x20c343=_0x3cd53e,_0x59b671=_0x29bb66[_0x20c343(0x35e)](),_0x58e8d6=await this['_startSheetCollabCursor'](_0x59b671);this[_0x20c343(0x361)][_0x20c343(0x3a7)](_0x58e8d6),this[_0x20c343(0x3ac)][_0x20c343(0x3a4)](_0x59b671,_0x58e8d6);}),this[_0x3cd53e(0x4d0)][_0x3cd53e(0x286)](_0x55d6cf[_0x3cd53e(0x36e)])[_0x3cd53e(0x506)](_0x2e6539(this[_0x3cd53e(0x51e)]))[_0x3cd53e(0x506)](_0x5ccf08(_0xe3185f=>!_0xe3185f[_0x3cd53e(0x35e)]()['startsWith']('__')))[_0x3cd53e(0x245)](async _0x43db79=>{const _0x18e078=_0x3cd53e,_0x3bc19a=_0x43db79[_0x18e078(0x35e)](),_0x13b265=await this[_0x18e078(0x50b)](_0x3bc19a);this[_0x18e078(0x361)]['next'](_0x13b265),this[_0x18e078(0x3ac)][_0x18e078(0x3a4)](_0x3bc19a,_0x13b265);}),_0x4d44c4(this['_univerInstanceService'][_0x3cd53e(0x391)](_0x55d6cf[_0x3cd53e(0x36e)]),this[_0x3cd53e(0x4d0)][_0x3cd53e(0x391)](_0x55d6cf[_0x3cd53e(0x273)]))[_0x3cd53e(0x506)](_0x2e6539(this[_0x3cd53e(0x51e)]))[_0x3cd53e(0x245)](_0x1f3fba=>{const _0x5a00ef=_0x3cd53e,_0x41989d=_0x1f3fba[_0x5a00ef(0x35e)](),_0x45ce8=this[_0x5a00ef(0x3ac)][_0x5a00ef(0x3a8)](_0x41989d);_0x45ce8&&(_0x45ce8[_0x5a00ef(0x3d3)](),this[_0x5a00ef(0x3ac)]['delete'](_0x41989d));});}async[_0x1551de(0x49c)](_0x47013d){const _0x4f0da1=_0x1551de,_0x34fbdc=await this[_0x4f0da1(0x1e2)][_0x4f0da1(0x3df)](_0x47013d),_0x459537=this[_0x4f0da1(0x49f)][_0x4f0da1(0x3b5)](Dt,_0x47013d,_0x34fbdc);return _0x459537[_0x4f0da1(0x284)](),_0x459537;}async['_startDocCollabCursor'](_0x4e9399){const _0x118937=_0x1551de,_0x4390c8=await this['_collabSessionService'][_0x118937(0x3df)](_0x4e9399),_0x268db7=this[_0x118937(0x49f)][_0x118937(0x3b5)](Ot,_0x4e9399,_0x4390c8);return _0x268db7[_0x118937(0x284)](),_0x268db7;}};ve=Vr([ut(0x0,_0x39ffff),ut(0x1,_0x1e17a6(_0x2c37d0)),ut(0x2,_0x1e17a6(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x170ed3,_0x4912dd){const _0x1765e2=_0x1551de;let {radius:_0xf072f8,width:_0x128897,height:_0x2667e6}=_0x4912dd;_0xf072f8=_0xf072f8!=null?_0xf072f8:0x0,_0x128897=_0x128897!=null?_0x128897:0x1e,_0x2667e6=_0x2667e6!=null?_0x2667e6:0x1e;let _0x2d4cc2=0x0,_0x5c15a2=0x0,_0x2da0e4=0x0;_0x2d4cc2=_0x5c15a2=_0x2da0e4=Math[_0x1765e2(0x1f9)](_0xf072f8,_0x128897/0x2,_0x2667e6/0x2),_0x170ed3[_0x1765e2(0x1da)](),_0x170ed3['moveTo'](_0x2d4cc2,0x0),_0x170ed3['lineTo'](_0x128897-_0x5c15a2,0x0),_0x170ed3[_0x1765e2(0x3bb)](_0x128897-_0x5c15a2,_0x5c15a2,_0x5c15a2,Math['PI']*0x3/0x2,0x0,!0x1),_0x170ed3[_0x1765e2(0x1de)](_0x128897,_0x2667e6-_0x2da0e4),_0x170ed3[_0x1765e2(0x3bb)](_0x128897-_0x2da0e4,_0x2667e6-_0x2da0e4,_0x2da0e4,0x0,Math['PI']/0x2,!0x1),_0x170ed3['lineTo'](0x0,_0x2667e6),_0x170ed3[_0x1765e2(0x1de)](0x0,_0x2d4cc2),_0x170ed3[_0x1765e2(0x3bb)](_0x2d4cc2,_0x2d4cc2,_0x2d4cc2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x170ed3[_0x1765e2(0x38d)](),_0x4912dd['fill']&&(_0x170ed3[_0x1765e2(0x1e0)](),_0x170ed3[_0x1765e2(0x425)]=_0x4912dd[_0x1765e2(0x327)],_0x4912dd[_0x1765e2(0x462)]==='evenodd'?_0x170ed3['fill']('evenodd'):_0x170ed3[_0x1765e2(0x327)](),_0x170ed3[_0x1765e2(0x50f)]());}class st extends _0x2ce64a{constructor(_0x124422,_0xa5553f){const _0x5118df=_0x1551de;super(_0x124422,_0xa5553f),l(this,_0x5118df(0x23f)),l(this,_0x5118df(0x26d)),(this[_0x5118df(0x23f)]=_0xa5553f==null?void 0x0:_0xa5553f[_0x5118df(0x23f)],this[_0x5118df(0x26d)]=_0xa5553f==null?void 0x0:_0xa5553f[_0x5118df(0x26d)]);}static[_0x1551de(0x24a)](_0xe286fa,_0x57c06c){const _0x50f278=_0x1551de,{text:_0x42ec9a,color:_0x663dde}=_0x57c06c;_0xe286fa[_0x50f278(0x1e0)](),_0xe286fa[_0x50f278(0x1b5)]=_0x50f278(0x2bd);const _0x1bb743=_0xe286fa[_0x50f278(0x416)](_0x42ec9a)[_0x50f278(0x2d2)],_0x3cc4c3=Math['min'](_0x1bb743+0x2*dt,ms);Wr(_0xe286fa,{'height':$e,'radius':0x4,'width':_0x3cc4c3,'fill':_0x663dde,'evented':!0x1}),_0xe286fa[_0x50f278(0x425)]='#FFF';const _0xff275a=dt,_0x108328=$e-Fr,_0x56ddcc=ms-0x2*dt;if(_0x1bb743>_0x56ddcc){let _0x3815fb='',_0xb4a941=0x0;for(const _0x138c1a of _0x42ec9a){const _0x4e75fa=_0xe286fa['measureText'](_0x138c1a)['width'];if(_0xb4a941+_0x4e75fa<=_0x56ddcc-_0xe286fa['measureText'](_0x50f278(0x412))[_0x50f278(0x2d2)])_0x3815fb+=_0x138c1a,_0xb4a941+=_0x4e75fa;else{_0x3815fb+=_0x50f278(0x412);break;}}_0xe286fa['fillText'](_0x3815fb,_0xff275a,_0x108328);}else _0xe286fa[_0x50f278(0x31e)](_0x42ec9a,_0xff275a,_0x108328);_0xe286fa[_0x50f278(0x50f)]();}['_draw'](_0x27c9a2){const _0x40122c=_0x1551de;st[_0x40122c(0x24a)](_0x27c9a2,this);}}const ft=_0x1551de(0x460),Gr=_0x1551de(0x407),Yr=_0x1551de(0x265),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr=_0x1551de(0x4b9);class gs{constructor(_0x23c57c,_0x8cd442,_0x3bcbdd,_0x5b7727){const _0xea1aef=_0x1551de;l(this,'_shapes',[]),l(this,_0xea1aef(0x271),null),l(this,_0xea1aef(0x372),null),l(this,_0xea1aef(0x2e2),null),l(this,_0xea1aef(0x3d2),null),l(this,_0xea1aef(0x301),null),(this[_0xea1aef(0x51d)]=_0x23c57c,this[_0xea1aef(0x468)]=_0x8cd442,this['_docSkeleton']=_0x3bcbdd,this['_document']=_0x5b7727,this[_0xea1aef(0x4e5)]());}set[_0x1551de(0x4af)](_0x273653){const _0x2b0c3e=_0x1551de;_0x273653?(this[_0x2b0c3e(0x2e2)]&&this[_0x2b0c3e(0x2e2)]['hide'](),this['_textBubble']&&this[_0x2b0c3e(0x372)]['show']()):(this['_anchorDot']&&this[_0x2b0c3e(0x2e2)]['show'](),this[_0x2b0c3e(0x372)]&&this[_0x2b0c3e(0x372)]['hide']());}[_0x1551de(0x3d3)](){const _0x2b1f53=_0x1551de;for(const _0x1e9491 of this[_0x2b1f53(0x513)])_0x1e9491['dispose']();this[_0x2b1f53(0x372)]&&this[_0x2b1f53(0x372)]['dispose'](),this['_anchorDot']&&this[_0x2b1f53(0x2e2)]['dispose'](),this[_0x2b1f53(0x271)]&&this[_0x2b1f53(0x271)][_0x2b1f53(0x3d3)](),this[_0x2b1f53(0x301)]&&this['_eventUnsubscribe']();}[_0x1551de(0x4e5)](){const _0x50a94c=_0x1551de;var _0xa00f3e;const {_docSkeleton:_0x4e0bcc,_document:_0x7bba2e}=this,{color:_0x11f6d7,name:_0x3eb48a,ranges:_0x1d23ae}=this['_cursor'],_0x3fa64e=_0x7bba2e[_0x50a94c(0x22f)](),{docsLeft:_0x28f5f7,docsTop:_0x3c0407}=_0x3fa64e,_0x502ec4=new _0x4e4c87(_0x3fa64e,_0x4e0bcc);for(const {startOffset:_0x56abe2,endOffset:_0x2305f1,collapsed:_0x4ae499,isActive:_0x101b43}of _0x1d23ae){const _0x3f8d83=_0x4e0bcc[_0x50a94c(0x275)](_0x56abe2),_0x5bbc08=_0x4e0bcc[_0x50a94c(0x275)](_0x2305f1);if(_0x101b43){const {contentBoxPointGroup:_0x1cdf84}=_0x502ec4[_0x50a94c(0x3db)](_0x5bbc08,_0x5bbc08);if(_0x1cdf84[_0x50a94c(0x379)]===0x0)continue;this[_0x50a94c(0x298)](_0x11f6d7,_0x1cdf84,_0x28f5f7,_0x3c0407,_0x3eb48a),this[_0x50a94c(0x301)]=this[_0x50a94c(0x219)]();}if(!_0x4ae499&&_0x3f8d83&&_0x5bbc08){if(_0x4f9221(_0x3f8d83,_0x5bbc08)){const _0x557875=new _0x41c0d6(_0x3fa64e,_0x4e0bcc),{pointGroup:_0x1acf3a}=(_0xa00f3e=_0x557875[_0x50a94c(0x3db)](_0x3f8d83,_0x5bbc08))!=null?_0xa00f3e:{};if(_0x1acf3a==null||_0x1acf3a[_0x50a94c(0x379)]===0x0)continue;this[_0x50a94c(0x50e)](_0x11f6d7,_0x1acf3a,_0x28f5f7,_0x3c0407);}else{const {contentBoxPointGroup:_0x112d16}=_0x502ec4[_0x50a94c(0x3db)](_0x3f8d83,_0x5bbc08);if(_0x112d16[_0x50a94c(0x379)]===0x0)continue;this[_0x50a94c(0x535)](_0x11f6d7,_0x112d16,_0x28f5f7,_0x3c0407);}}}}[_0x1551de(0x298)](_0x1e73ff,_0x3e853d,_0x3d4859,_0x44a7f7,_0x10b234){const _0x533cf4=_0x1551de,_0x838593=this[_0x533cf4(0x4b5)](_0x3e853d),{left:_0x3fc5b7,top:_0x277bc7,height:_0x373ebe}=_0x838593,_0x1d88d7=this[_0x533cf4(0x2c6)](),_0xc40189=Xr/_0x1d88d7,_0x56da11=new _0x198f56(ft+_0x3358a8[_0x533cf4(0x51c)](we),{'left':_0x3fc5b7+_0x3d4859-_0xc40189,'top':_0x277bc7+_0x44a7f7,'height':_0x373ebe,'width':Kr,'fill':_0x1e73ff||_0x277d19(_0x4bca3e[_0x533cf4(0x495)],0x0),'strokeWidth':_0xc40189,'stroke':qr,'evented':!0x0});this['_anchor']=_0x56da11,this[_0x533cf4(0x468)][_0x533cf4(0x2a0)](_0x56da11,_0x21be17);const _0x31af2d=new _0x198f56(ft+_0x3358a8['generateRandomId'](we),{'left':_0x3fc5b7+_0x3d4859-_0xc40189,'top':_0x277bc7+_0x44a7f7-mt/0x2,'height':mt,'width':mt,'fill':_0x1e73ff||_0x277d19(_0x4bca3e[_0x533cf4(0x495)],0x0),'strokeWidth':0x0,'stroke':_0x1e73ff||_0x277d19(_0x4bca3e[_0x533cf4(0x495)],0x0),'evented':!0x1});this[_0x533cf4(0x2e2)]=_0x31af2d,this[_0x533cf4(0x468)]['addObject'](_0x31af2d,_0x21be17);const _0x28d3df=new st(ft+_0x3358a8[_0x533cf4(0x51c)](we),{'left':_0x3fc5b7+_0x3d4859-_0xc40189,'top':_0x277bc7+_0x44a7f7-$e,'text':_0x10b234,'color':_0x1e73ff});this['_textBubble']=_0x28d3df,this[_0x533cf4(0x468)]['addObject'](_0x28d3df,_0x21be17),this[_0x533cf4(0x4af)]=!0x1;}['_handleHover'](){const _0x2bea3d=_0x1551de,_0x536d87=this['_anchor'][_0x2bea3d(0x4fc)][_0x2bea3d(0x22b)](()=>{const _0x29b784=_0x2bea3d;this[_0x29b784(0x4af)]=!0x0;}),_0x54a94d=this[_0x2bea3d(0x271)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x5ddaf0=_0x2bea3d;this[_0x5ddaf0(0x3d2)]&&clearTimeout(this[_0x5ddaf0(0x3d2)]),this[_0x5ddaf0(0x3d2)]=setTimeout(()=>{const _0x3ad1a0=_0x5ddaf0;this[_0x3ad1a0(0x4af)]=!0x1;},0x7d0);});return()=>{const _0x3b924d=_0x2bea3d;_0x536d87[_0x3b924d(0x1f1)](),_0x54a94d[_0x3b924d(0x1f1)]();};}[_0x1551de(0x535)](_0x4a2de6,_0xa71beb,_0xe02000,_0x281d1c){const _0x442b43=_0x1551de,_0x468193=new _0x51530e(_0x4a2de6)[_0x442b43(0x4e2)](0.2)[_0x442b43(0x4b6)](),_0x4d04c0=new _0x20175b(Gr+_0x3358a8['generateRandomId'](we),{'pointsGroup':_0xa71beb,'fill':_0x468193||_0x277d19(_0x4bca3e[_0x442b43(0x495)],0.2),'left':_0xe02000,'top':_0x281d1c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x442b43(0x513)]['push'](_0x4d04c0),this['_scene'][_0x442b43(0x2a0)](_0x4d04c0,_0x21be17);}[_0x1551de(0x50e)](_0xb86d7b,_0x4a5868,_0x5758c7,_0x3bce13){const _0x39e140=_0x1551de,_0x52aab8=new _0x51530e(_0xb86d7b)['setAlpha'](0.2)[_0x39e140(0x4b6)](),_0x421ee8=new _0x20175b(Yr+_0x3358a8['generateRandomId'](we),{'pointsGroup':_0x4a5868,'fill':_0x52aab8||_0x277d19(_0x4bca3e[_0x39e140(0x495)],0.2),'left':_0x5758c7,'top':_0x3bce13,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x39e140(0x513)][_0x39e140(0x2e7)](_0x421ee8),this[_0x39e140(0x468)]['addObject'](_0x421ee8,_0x21be17);}[_0x1551de(0x4b5)](_0x556bfe){const _0x23fb74=_0x556bfe[0x0],_0x52266d=_0x23fb74[0x0],_0x4e7755=_0x23fb74[0x2],{x:_0x1e6ed3,y:_0x3d41df}=_0x52266d,{x:_0x3d0b5f,y:_0x2843e4}=_0x4e7755;return{'left':_0x1e6ed3,'top':_0x3d41df,'width':_0x3d0b5f-_0x1e6ed3,'height':_0x2843e4-_0x3d41df};}['_getScale'](){const _0x1a88b3=_0x1551de,{scaleX:_0xb07a6c,scaleY:_0x5a5d9a}=this[_0x1a88b3(0x468)][_0x1a88b3(0x2e1)]();return Math[_0x1a88b3(0x321)](_0xb07a6c,_0x5a5d9a);}}var Jr=Object['defineProperty'],zr=Object[_0x1551de(0x1d2)],Zr=(_0x597bbd,_0x285dda,_0x299cb3,_0xaf3658)=>{const _0x1df062=_0x1551de;for(var _0x52ebc5=_0xaf3658>0x1?void 0x0:_0xaf3658?zr(_0x285dda,_0x299cb3):_0x285dda,_0x167c55=_0x597bbd[_0x1df062(0x379)]-0x1,_0x6fbac4;_0x167c55>=0x0;_0x167c55--)(_0x6fbac4=_0x597bbd[_0x167c55])&&(_0x52ebc5=(_0xaf3658?_0x6fbac4(_0x285dda,_0x299cb3,_0x52ebc5):_0x6fbac4(_0x52ebc5))||_0x52ebc5);return _0xaf3658&&_0x52ebc5&&Jr(_0x285dda,_0x299cb3,_0x52ebc5),_0x52ebc5;},ke=(_0xedcbc9,_0x5d362b)=>(_0x5d0446,_0x2bb217)=>_0x5d362b(_0x5d0446,_0x2bb217,_0xedcbc9);let wt=class extends _0x1a4d16{constructor(_0x2562c7,_0x453376,_0x1d9bb3,_0x924918,_0x28f2f7){const _0x31673d=_0x1551de;super(),l(this,_0x31673d(0x221),[]),l(this,'_cursors',[]),(this[_0x31673d(0x2ad)]=_0x2562c7,this[_0x31673d(0x530)]=_0x453376,this[_0x31673d(0x26b)]=_0x1d9bb3,this[_0x31673d(0x512)]=_0x924918,this[_0x31673d(0x3e1)]=_0x28f2f7,this[_0x31673d(0x35f)]());}[_0x1551de(0x35f)](){const _0x461865=_0x1551de,_0x22a6ca=this['_context']['unitId'],_0x1ebca0=this[_0x461865(0x530)];this[_0x461865(0x48a)](_0x4dd8de([this[_0x461865(0x26b)][_0x461865(0x3b2)](_0x22a6ca),this[_0x461865(0x3e1)][_0x461865(0x414)]])[_0x461865(0x506)](_0x336dd2(([_0x1eb9d7,_0x14a7a0])=>({'skeleton':_0x1ebca0[_0x461865(0x464)](),'cursors':[..._0x1eb9d7[_0x461865(0x1d1)]()][_0x461865(0x2f0)](_0x51caa6=>({..._0x51caa6,'color':_0x14a7a0[_0x51caa6[_0x461865(0x23f)]]}))})))['subscribe'](_0x4d5b92=>{const _0x2989da=_0x461865;if(this[_0x2989da(0x1bc)](),_0x4d5b92){const {skeleton:_0x473e97,cursors:_0x3877d5}=_0x4d5b92;this['_updateCollabCursors'](_0x473e97,_0x3877d5);}})),this[_0x461865(0x525)](),this[_0x461865(0x328)]();}[_0x1551de(0x254)](_0x5fa941,_0x425f2f){const _0x15152d=_0x1551de,{scene:_0x1087d7,mainComponent:_0x264fe7}=this[_0x15152d(0x2ad)],_0x109b53=_0x425f2f[_0x15152d(0x33b)](_0x1b3488=>new gs(_0x1b3488,_0x1087d7,_0x5fa941,_0x264fe7));this['_cursorShapes']=_0x109b53,this[_0x15152d(0x1eb)]=_0x425f2f;}[_0x1551de(0x3bc)](){const _0x4d2d9a=_0x1551de;this['_removeCollabCursors']();const {scene:_0x5182fb,mainComponent:_0x1071db}=this[_0x4d2d9a(0x2ad)],_0x476b09=this['_docSkeletonManagerService'][_0x4d2d9a(0x464)](),_0x44c42c=this[_0x4d2d9a(0x1eb)]['map'](_0x103651=>new gs(_0x103651,_0x5182fb,_0x476b09,_0x1071db));this[_0x4d2d9a(0x221)]=_0x44c42c;}['_removeCollabCursors'](){const _0x417de1=_0x1551de;this[_0x417de1(0x221)]['forEach'](_0xfe5433=>_0xfe5433[_0x417de1(0x3d3)]()),this[_0x417de1(0x221)]=[];}['_initCommandExecutedListener'](){const _0xe74ec8=_0x1551de,_0x5baa9f=[_0x4e5807['id']];this[_0xe74ec8(0x48a)](this[_0xe74ec8(0x512)][_0xe74ec8(0x463)](_0x42cbd8=>{const _0x360ce1=_0xe74ec8;_0x5baa9f[_0x360ce1(0x3c2)](_0x42cbd8['id'])&&_0x42cbd8[_0x360ce1(0x533)][_0x360ce1(0x224)]===this[_0x360ce1(0x2ad)][_0x360ce1(0x224)]&&this[_0x360ce1(0x3bc)]();}));}[_0x1551de(0x525)](){const _0x1fc637=_0x1551de;this[_0x1fc637(0x48a)](_0x35c5dc(this[_0x1fc637(0x2ad)][_0x1fc637(0x521)]['onTransformChange$'])[_0x1fc637(0x506)](_0x357d19(_0x384e1b=>_0x384e1b[_0x1fc637(0x47e)]===_0x35563d[_0x1fc637(0x36a)]),_0x1b73c6(0x10))[_0x1fc637(0x245)](()=>{const _0x42f334=_0x1fc637;this[_0x42f334(0x3bc)]();}));}};wt=Zr([ke(0x1,_0x1e17a6(_0x1d79f4)),ke(0x2,_0x1e17a6(ve)),ke(0x3,_0x1b1421),ke(0x4,_0x1e17a6(_0x5b005a))],wt);const Qr=0x1,eo=1.5;class to extends _0x2ce64a{constructor(_0x4fc137,_0x2ab46b){const _0x3754f1=_0x1551de;super(_0x4fc137,_0x2ab46b),l(this,_0x3754f1(0x470)),l(this,'_hovered',!0x1),l(this,_0x3754f1(0x2f6)),l(this,_0x3754f1(0x397),''),l(this,_0x3754f1(0x240),_0x3754f1(0x237)),l(this,_0x3754f1(0x44a)),(_0x2ab46b&&this[_0x3754f1(0x4ed)](_0x2ab46b),this[_0x3754f1(0x4fc)][_0x3754f1(0x22b)](()=>this[_0x3754f1(0x4ed)]({'hovered':!0x0})),this[_0x3754f1(0x2c0)][_0x3754f1(0x22b)](()=>this[_0x3754f1(0x4ed)]({'hovered':!0x1})));}['setShapeProps'](_0x460da4){const _0x38cc38=_0x1551de;var _0x394c20,_0x19f72e,_0x5ee572,_0x431c07,_0x2417e2,_0x1c7b56;this[_0x38cc38(0x470)]=(_0x394c20=_0x460da4[_0x38cc38(0x23f)])!=null?_0x394c20:this[_0x38cc38(0x470)],this[_0x38cc38(0x2d8)]=(_0x19f72e=_0x460da4[_0x38cc38(0x216)])!=null?_0x19f72e:this[_0x38cc38(0x2d8)],this[_0x38cc38(0x2f6)]=(_0x5ee572=_0x460da4[_0x38cc38(0x307)])!=null?_0x5ee572:this[_0x38cc38(0x2f6)],this[_0x38cc38(0x397)]=(_0x431c07=_0x460da4[_0x38cc38(0x3ce)])!=null?_0x431c07:this['_name'],this[_0x38cc38(0x240)]=(_0x2417e2=_0x460da4['labelPosition'])!=null?_0x2417e2:this[_0x38cc38(0x240)],this[_0x38cc38(0x44a)]=(_0x1c7b56=_0x460da4[_0x38cc38(0x287)])!=null?_0x1c7b56:this[_0x38cc38(0x44a)],this[_0x38cc38(0x4ec)]({'width':_0x460da4['width'],'height':_0x460da4[_0x38cc38(0x451)]});}['onMouseMove'](_0x2c2ade){const _0x10e0b3=_0x1551de,{row:_0x2c5f05,column:_0x45a5de}=_0x2c2ade;if(_0x2c5f05>=this['_range'][_0x10e0b3(0x2d0)]&&_0x2c5f05<=this[_0x10e0b3(0x2f6)][_0x10e0b3(0x3d5)]&&_0x45a5de>=this[_0x10e0b3(0x2f6)][_0x10e0b3(0x314)]&&_0x45a5de<=this['_range'][_0x10e0b3(0x3fa)]){this[_0x10e0b3(0x4ed)]({'hovered':!0x0});return;}this[_0x10e0b3(0x4ed)]({'hovered':!0x1});}[_0x1551de(0x4bc)](_0x2f1ad4){return!0x1;}[_0x1551de(0x3a1)](_0x1faa50){const _0x36b558=_0x1551de;_0x198f56[_0x36b558(0x24a)](_0x1faa50,{'width':this[_0x36b558(0x2d2)],'height':this[_0x36b558(0x451)],'strokeWidth':eo,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x36b558(0x44a)]}),this[_0x36b558(0x2d8)]&&(_0x1faa50['save'](),_0x1faa50['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x36b558(0x240)]==='bottom'?0x0:-$e),st[_0x36b558(0x24a)](_0x1faa50,{'text':this[_0x36b558(0x397)],'color':this[_0x36b558(0x470)]}),_0x1faa50[_0x36b558(0x50f)]());}}var so=Object[_0x1551de(0x2f4)],io=Object['getOwnPropertyDescriptor'],no=(_0x459e41,_0x163972,_0x4ddf10,_0x490f58)=>{for(var _0x16a91a=_0x490f58>0x1?void 0x0:_0x490f58?io(_0x163972,_0x4ddf10):_0x163972,_0x51ba10=_0x459e41['length']-0x1,_0x22e2bd;_0x51ba10>=0x0;_0x51ba10--)(_0x22e2bd=_0x459e41[_0x51ba10])&&(_0x16a91a=(_0x490f58?_0x22e2bd(_0x163972,_0x4ddf10,_0x16a91a):_0x22e2bd(_0x16a91a))||_0x16a91a);return _0x490f58&&_0x16a91a&&so(_0x163972,_0x4ddf10,_0x16a91a),_0x16a91a;},gt=(_0x163c4d,_0xf60cb6)=>(_0x4f6be3,_0x37dcd9)=>_0xf60cb6(_0x4f6be3,_0x37dcd9,_0x163c4d);const ro=0x1389;let Pt=class extends _0x1a4d16{constructor(_0x18da39,_0x19a1b4,_0x174943,_0x1d0c77){const _0x4679b8=_0x1551de;super(),l(this,_0x4679b8(0x1eb),new Set()),l(this,_0x4679b8(0x311),null),(this['_context']=_0x18da39,this[_0x4679b8(0x300)]=_0x19a1b4,this['_collabCursorController']=_0x174943,this[_0x4679b8(0x3e1)]=_0x1d0c77,this[_0x4679b8(0x35f)]());}[_0x1551de(0x35f)](){const _0x33904b=_0x1551de;this[_0x33904b(0x300)][_0x33904b(0x52e)][_0x33904b(0x506)](_0x3afad8(this[_0x33904b(0x51e)]),_0x587fbb(_0x5d0005=>{const _0x909954=_0x33904b;if(_0x5d0005){const _0x3f77e6=_0x5d0005['sheetId'];return _0x4dd8de(this['_collabCursorController'][_0x909954(0x3b2)](this['_context'][_0x909954(0x224)]),this['_themeService']['currentTheme$'])[_0x909954(0x506)](_0x336dd2(([_0xad8f1d,_0x2a6a57])=>{const _0x2dad32=new Map();return _0xad8f1d['forEach']((_0x2f5673,_0x5f73e8)=>{const _0x1c1a6a=_0x15b1;if(_0x2f5673[_0x1c1a6a(0x50c)]===_0x3f77e6){const _0xdc5fc1={..._0x2f5673};_0xdc5fc1[_0x1c1a6a(0x23f)]=_0x2a6a57[_0x2f5673[_0x1c1a6a(0x23f)]],_0x2dad32[_0x1c1a6a(0x3a4)](_0x5f73e8,_0xdc5fc1);}}),{'skeleton':_0x5d0005,'cursors':_0x2dad32};}));}return _0x55d71b({'skeleton':null,'cursors':new Map()});}))[_0x33904b(0x245)](({skeleton:_0xc11e7a,cursors:_0x57d2b4})=>{const _0x2929bd=_0x33904b;this[_0x2929bd(0x1bc)](),_0xc11e7a&&this['_updateCollabCursors'](_0xc11e7a,_0x57d2b4);}),this[_0x33904b(0x300)]['currentSkeleton$']['subscribe'](_0x3ea32d=>{const _0x1fbda8=_0x33904b;if(_0x3ea32d==null)return;const {skeleton:_0x425cac}=_0x3ea32d,{scene:_0x623f3}=this[_0x1fbda8(0x2ad)];_0x623f3[_0x1fbda8(0x48d)][_0x1fbda8(0x22b)](_0x5b918a(_0x1d4cca=>{const _0xda924e=_0x1fbda8;var _0x55cab4,_0x496d07;const {offsetX:_0x589303,offsetY:_0x14a461}=_0x1d4cca,{x:_0x3b2df5,y:_0x4ddd03}=_0x623f3[_0xda924e(0x291)](_0x1052d6[_0xda924e(0x25b)]([_0x589303,_0x14a461])),{scaleX:_0x49ba45,scaleY:_0x3b7a17}=_0x623f3[_0xda924e(0x2e1)](),_0x23cc33=_0x623f3[_0xda924e(0x256)](_0x9ff851[_0xda924e(0x44d)]),_0x113412=_0x623f3[_0xda924e(0x2b9)](_0x1052d6[_0xda924e(0x25b)]([_0x3b2df5,_0x4ddd03]),_0x23cc33),_0xb44e34=_0x425cac[_0xda924e(0x3b3)](_0x589303,_0x14a461,_0x49ba45,_0x3b7a17,_0x113412);((_0x55cab4=this[_0xda924e(0x311)])==null?void 0x0:_0x55cab4[_0xda924e(0x324)])===_0xb44e34['column']&&((_0x496d07=this['_lastPointer'])==null?void 0x0:_0x496d07[_0xda924e(0x388)])===_0xb44e34[_0xda924e(0x388)]||this[_0xda924e(0x1eb)]['forEach'](_0x299b1a=>{_0x299b1a['onMouseMove'](_0xb44e34);});},0x64));});}[_0x1551de(0x254)](_0x553b1b,_0x3e1b17){const _0x382de0=_0x1551de;var _0x94f413;const _0x207c50=(_0x94f413=this['_sheetSkeletonManagerService'][_0x382de0(0x20b)]())==null?void 0x0:_0x94f413[_0x382de0(0x51b)];if(!_0x207c50)return;const _0x315744=this[_0x382de0(0x2fb)]();if(!_0x315744)return;this['_cursors']['forEach'](_0xd17e25=>{const _0x34b4c1=_0x382de0;_0xd17e25[_0x34b4c1(0x532)]();});const {scene:_0x2579ec}=_0x315744,_0x203ffb=oo(Array['from'](_0x3e1b17[_0x382de0(0x1d1)]()))[_0x382de0(0x33b)](_0x2abea9=>{const _0xbadea5=_0x382de0,{color:_0x56d0ee,range:_0x491c83,name:_0x46b490,selection:_0x31827e,sheetID:_0x294c2f}=_0x2abea9,{startColumn:_0x42336e,startRow:_0x5050f0,endColumn:_0x2aca70,endRow:_0x481689}=_0x491c83,_0x25a533=_0x19d398(_0x5050f0,_0x42336e,_0x2579ec,_0x207c50),_0x320f36=_0x19d398(_0x481689,_0x2aca70,_0x2579ec,_0x207c50),{columnHeaderHeightAndMarginTop:_0x1fb9fd}=_0x207c50,{startX:_0x2769d1,startY:_0x2505f1}=_0x25a533,{endX:_0x2e0805,endY:_0x36296e}=_0x320f36,_0x191e3f=_0x2e0805-_0x2769d1,_0x304dcd=_0x36296e-_0x2505f1,_0xcd3fb7={'labelPosition':_0x2505f1-_0x1fb9fd>=$e?'top':_0xbadea5(0x257),'sheetID':_0x294c2f,'range':_0x491c83,'color':_0x56d0ee,'name':_0x46b490,'selection':_0x31827e,'left':_0x2769d1,'top':_0x2505f1,'width':_0x191e3f,'height':_0x304dcd,'evented':!0x1,'zIndex':ro};return new to(_0x46b490,_0xcd3fb7);});_0x2579ec[_0x382de0(0x509)](_0x203ffb,Qr),this['_cursors']=new Set(_0x203ffb);}[_0x1551de(0x1bc)](){const _0x5799ab=_0x1551de;var _0x3adfe1;(_0x3adfe1=this[_0x5799ab(0x1eb)])==null||_0x3adfe1[_0x5799ab(0x357)](_0x3b64af=>_0x3b64af[_0x5799ab(0x3d3)]());}[_0x1551de(0x2fb)](){const _0x505ac8=_0x1551de;return _0x29c7cf(this[_0x505ac8(0x2ad)][_0x505ac8(0x4db)],this[_0x505ac8(0x2ad)]);}};Pt=no([gt(0x1,_0x1e17a6(_0x51b777)),gt(0x2,_0x1e17a6(ve)),gt(0x3,_0x1e17a6(_0x5b005a))],Pt);function oo(_0x18755d){const _0x46d6a4=_0x1551de,_0x2cee88=new Map();return _0x18755d[_0x46d6a4(0x357)](_0x5953c3=>{const _0x4ca3bb=_0x46d6a4;if(_0x2cee88['has'](_0x5953c3[_0x4ca3bb(0x2e4)])){const _0x1a3f36=_0x2cee88[_0x4ca3bb(0x3a8)](_0x5953c3[_0x4ca3bb(0x2e4)]);_0x1a3f36[_0x4ca3bb(0x3ce)]+=',\x20'+_0x5953c3['name'];}else _0x2cee88[_0x4ca3bb(0x3a4)](_0x5953c3[_0x4ca3bb(0x2e4)],_0x5953c3);}),Array[_0x46d6a4(0x3e2)](_0x2cee88[_0x46d6a4(0x1d1)]());}var N=function(){const _0x2f8595=_0x1551de;return N=Object[_0x2f8595(0x43b)]||function(_0x4b3af3){const _0x2e0150=_0x2f8595;for(var _0x479f05,_0x4aec51=0x1,_0x3eedfb=arguments[_0x2e0150(0x379)];_0x4aec51<_0x3eedfb;_0x4aec51++){_0x479f05=arguments[_0x4aec51];for(var _0x4c68bc in _0x479f05)Object[_0x2e0150(0x4ce)][_0x2e0150(0x39c)][_0x2e0150(0x384)](_0x479f05,_0x4c68bc)&&(_0x4b3af3[_0x4c68bc]=_0x479f05[_0x4c68bc]);}return _0x4b3af3;},N[_0x2f8595(0x320)](this,arguments);},ao=function(_0x4b7676,_0x193df0){const _0x501008=_0x1551de;var _0x2a3552={};for(var _0x174fce in _0x4b7676)Object['prototype'][_0x501008(0x39c)][_0x501008(0x384)](_0x4b7676,_0x174fce)&&_0x193df0[_0x501008(0x3f3)](_0x174fce)<0x0&&(_0x2a3552[_0x174fce]=_0x4b7676[_0x174fce]);if(_0x4b7676!=null&&typeof Object[_0x501008(0x20d)]==_0x501008(0x1b7)){for(var _0xc4d19e=0x0,_0x174fce=Object[_0x501008(0x20d)](_0x4b7676);_0xc4d19e<_0x174fce[_0x501008(0x379)];_0xc4d19e++)_0x193df0['indexOf'](_0x174fce[_0xc4d19e])<0x0&&Object[_0x501008(0x4ce)][_0x501008(0x2de)][_0x501008(0x384)](_0x4b7676,_0x174fce[_0xc4d19e])&&(_0x2a3552[_0x174fce[_0xc4d19e]]=_0x4b7676[_0x174fce[_0xc4d19e]]);}return _0x2a3552;},Yt=_0x455bcc(function(_0x1fc78b,_0xdf73f){const _0x16f207=_0x1551de;var _0x3007c2=_0x1fc78b[_0x16f207(0x3e7)],_0x373fb7=_0x1fc78b['id'],_0x48bef2=_0x1fc78b[_0x16f207(0x3aa)],_0xfb6041=_0x1fc78b[_0x16f207(0x41c)],_0x27fb57=ao(_0x1fc78b,[_0x16f207(0x3e7),'id',_0x16f207(0x3aa),_0x16f207(0x41c)]),_0x597605=_0x16f207(0x2c7)[_0x16f207(0x46d)](_0x373fb7,'\x20')[_0x16f207(0x46d)](_0x48bef2||'')[_0x16f207(0x1df)](),_0x427d7b=_0x176724('_'[_0x16f207(0x46d)](lo()));return Gs(_0x3007c2,''['concat'](_0x373fb7),{'defIds':_0x3007c2[_0x16f207(0x1e4)],'idSuffix':_0x427d7b[_0x16f207(0x4c2)]},N({'ref':_0xdf73f,'className':_0x597605},_0x27fb57),_0xfb6041);});function Gs(_0x39c5c4,_0x669adc,_0x2d5d54,_0x252b7f,_0x4b1834){const _0x4699d8=_0x1551de;return _0x20d1ba(_0x39c5c4[_0x4699d8(0x480)],N(N({'key':_0x669adc},co(_0x39c5c4,_0x2d5d54,_0x4b1834)),_0x252b7f),(ho(_0x39c5c4,_0x2d5d54)[_0x4699d8(0x24e)]||[])[_0x4699d8(0x33b)](function(_0x14a6aa,_0x27d487){const _0x4bd318=_0x4699d8;return Gs(_0x14a6aa,''[_0x4bd318(0x46d)](_0x669adc,'-')[_0x4bd318(0x46d)](_0x39c5c4[_0x4bd318(0x480)],'-')[_0x4bd318(0x46d)](_0x27d487),_0x2d5d54,void 0x0,_0x4b1834);}));}function co(_0xe25439,_0x355d4a,_0x521642){const _0x18f27a=_0x1551de;var _0x130be1=N({},_0xe25439['attrs']);_0x521642!=null&&_0x521642['colorChannel1']&&_0x130be1['fill']===_0x18f27a(0x510)&&(_0x130be1[_0x18f27a(0x327)]=_0x521642['colorChannel1']);var _0x357bab=_0x355d4a['defIds'];return!_0x357bab||_0x357bab[_0x18f27a(0x379)]===0x0||(_0xe25439[_0x18f27a(0x480)]===_0x18f27a(0x458)&&_0x130be1['xlink:href']&&(_0x130be1[_0x18f27a(0x1d6)]=_0x130be1[_0x18f27a(0x1d6)]+_0x355d4a[_0x18f27a(0x2b7)]),Object['entries'](_0x130be1)['forEach'](function(_0x8b1ca){const _0x47fb0f=_0x18f27a;var _0x15882e=_0x8b1ca[0x0],_0x4df55b=_0x8b1ca[0x1];typeof _0x4df55b==_0x47fb0f(0x33f)&&(_0x130be1[_0x15882e]=_0x4df55b['replace'](/url\(#(.*)\)/,'url(#$1'[_0x47fb0f(0x46d)](_0x355d4a['idSuffix'],')')));})),_0x130be1;}function ho(_0xeff6a6,_0xcd97f9){const _0x1a6600=_0x1551de;var _0x2f104e,_0x270712=_0xcd97f9[_0x1a6600(0x1e4)];return!_0x270712||_0x270712[_0x1a6600(0x379)]===0x0?_0xeff6a6:_0xeff6a6['tag']==='defs'&&(!((_0x2f104e=_0xeff6a6['children'])===null||_0x2f104e===void 0x0)&&_0x2f104e[_0x1a6600(0x379)])?N(N({},_0xeff6a6),{'children':_0xeff6a6['children'][_0x1a6600(0x33b)](function(_0x1d4dea){const _0x47d52f=_0x1a6600;return typeof _0x1d4dea[_0x47d52f(0x258)]['id']==_0x47d52f(0x33f)&&_0x270712&&_0x270712['indexOf'](_0x1d4dea['attrs']['id'])>-0x1?N(N({},_0x1d4dea),{'attrs':N(N({},_0x1d4dea['attrs']),{'id':_0x1d4dea[_0x47d52f(0x258)]['id']+_0xcd97f9[_0x47d52f(0x2b7)]})}):_0x1d4dea;})}):_0xeff6a6;}function lo(){const _0x105427=_0x1551de;return Math[_0x105427(0x2f3)]()[_0x105427(0x3eb)](0x24)[_0x105427(0x438)](0x2,0x8);}Yt['displayName']=_0x1551de(0x3d6);var _o={'tag':_0x1551de(0x242),'attrs':{'fill':'none','viewBox':_0x1551de(0x2a9),'width':'1em','height':_0x1551de(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1551de(0x1b3)},'children':[{'tag':_0x1551de(0x474),'attrs':{'stroke':_0x1551de(0x386),'d':_0x1551de(0x418),'strokeLinecap':_0x1551de(0x23c),'strokeLinejoin':_0x1551de(0x23c),'strokeWidth':1.2}}]},{'tag':_0x1551de(0x338),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1551de(0x37e)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x1551de(0x21f)}}]}]}],'defIds':[_0x1551de(0x37e)]},Ys=_0x455bcc(function(_0x412d68,_0xb540f8){const _0x10de1d=_0x1551de;return _0x20d1ba(Yt,Object['assign']({},_0x412d68,{'id':_0x10de1d(0x238),'ref':_0xb540f8,'icon':_o}));});Ys['displayName']=_0x1551de(0x4b0);var uo={'tag':'svg','attrs':{'fill':'none','viewBox':_0x1551de(0x2cf),'width':_0x1551de(0x24f),'height':_0x1551de(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1551de(0x4ba)},'children':[{'tag':_0x1551de(0x474),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1551de(0x23c),'strokeLinejoin':_0x1551de(0x23c),'strokeWidth':1.2}}]},{'tag':_0x1551de(0x338),'attrs':{},'children':[{'tag':_0x1551de(0x30c),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x1551de(0x3ec),'d':_0x1551de(0x21f),'transform':_0x1551de(0x249)}}]}]}],'defIds':[_0x1551de(0x3cc)]},Ks=_0x455bcc(function(_0x2d8ebc,_0x147101){const _0x10d234=_0x1551de;return _0x20d1ba(Yt,Object[_0x10d234(0x43b)]({},_0x2d8ebc,{'id':_0x10d234(0x508),'ref':_0x147101,'icon':uo}));});Ks[_0x1551de(0x1fc)]='OnLineSingle';function Xs(_0x198d16){const _0x487e2a=_0x1551de;var _0x497f66,_0x25b0bc,_0x87174='';if(typeof _0x198d16==_0x487e2a(0x33f)||typeof _0x198d16==_0x487e2a(0x2c2))_0x87174+=_0x198d16;else{if(typeof _0x198d16==_0x487e2a(0x34f)){if(Array[_0x487e2a(0x32c)](_0x198d16)){var _0x3a924c=_0x198d16[_0x487e2a(0x379)];for(_0x497f66=0x0;_0x497f66<_0x3a924c;_0x497f66++)_0x198d16[_0x497f66]&&(_0x25b0bc=Xs(_0x198d16[_0x497f66]))&&(_0x87174&&(_0x87174+='\x20'),_0x87174+=_0x25b0bc);}else{for(_0x25b0bc in _0x198d16)_0x198d16[_0x25b0bc]&&(_0x87174&&(_0x87174+='\x20'),_0x87174+=_0x25b0bc);}}}return _0x87174;}function fo(){const _0x3aed01=_0x1551de;for(var _0x1e3793,_0x22c9d0,_0x5e0026=0x0,_0x543619='',_0x1b6260=arguments[_0x3aed01(0x379)];_0x5e0026<_0x1b6260;_0x5e0026++)(_0x1e3793=arguments[_0x5e0026])&&(_0x22c9d0=Xs(_0x1e3793))&&(_0x543619&&(_0x543619+='\x20'),_0x543619+=_0x22c9d0);return _0x543619;}const mo=_0x1551de(0x4c9),go=_0x1551de(0x365),So='univer-online-status',po=_0x1551de(0x246),vo='univer-offline',Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x1150ab){const _0x301813=_0x1551de;switch(_0x1150ab){case P[_0x301813(0x2ec)]:return _0x301813(0x2ff);case P[_0x301813(0x516)]:return'collabStatus.conflict';case P[_0x301813(0x1c9)]:return _0x301813(0x29d);case P[_0x301813(0x531)]:return _0x301813(0x200);case P[_0x301813(0x528)]:case P['AWAITING']:case P['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case P['SYNCED']:return _0x301813(0x2b8);}}function Eo(_0x5cce67){const _0x2aa311=_0x1551de,{status$:_0x1c9b01}=_0x5cce67,_0x243ae2=_0x3bafa4(_0x1c9b01,P[_0x2aa311(0x531)]),_0x564e43=_0x2c42a7(_0x2268fa),_0x3209cc=_0x2c42a7(he),_0x51bc2d=_0x243ae2!==P['OFFLINE'],_0xf12883=_0x564e43['t'](Io(_0x243ae2)),_0x271619=fo(Pe[_0x2aa311(0x22a)],{[Pe['online']]:_0x51bc2d,[Pe[_0x2aa311(0x2dc)]]:!_0x51bc2d}),_0x5c3016=_0x51bc2d?_0x1bcc89['createElement'](Ks,null):_0x1bcc89[_0x2aa311(0x367)](Ys,null),_0xe5965f=_0xc8cdc7(()=>{_0x51bc2d||_0x3209cc['reconnect']();},[_0x51bc2d,_0x3209cc]);function _0x397a8b(){const _0x2110d0=_0x2aa311;return _0x1bcc89[_0x2110d0(0x367)]('div',{'className':_0x271619,'onClick':_0xe5965f},_0x1bcc89['createElement'](_0x2110d0(0x292),{'className':Pe[_0x2110d0(0x259)]},_0x5c3016),_0x1bcc89[_0x2110d0(0x367)]('div',{'className':Pe[_0x2110d0(0x387)]},_0xf12883));}return _0x51bc2d?_0x397a8b():_0x1bcc89['createElement'](_0x1e912a,{'title':_0x564e43['t'](_0x2aa311(0x227))},_0x397a8b());}var Co=Object[_0x1551de(0x2f4)],bo=Object[_0x1551de(0x1d2)],To=(_0x3c0bf1,_0x5cb504,_0x43bd5d,_0x18d5f0)=>{for(var _0x149bb1=_0x18d5f0>0x1?void 0x0:_0x18d5f0?bo(_0x5cb504,_0x43bd5d):_0x5cb504,_0x3325eb=_0x3c0bf1['length']-0x1,_0x2db8cd;_0x3325eb>=0x0;_0x3325eb--)(_0x2db8cd=_0x3c0bf1[_0x3325eb])&&(_0x149bb1=(_0x18d5f0?_0x2db8cd(_0x5cb504,_0x43bd5d,_0x149bb1):_0x2db8cd(_0x149bb1))||_0x149bb1);return _0x18d5f0&&_0x149bb1&&Co(_0x5cb504,_0x43bd5d,_0x149bb1),_0x149bb1;},Be=(_0x10afdb,_0x263737)=>(_0x48dbdb,_0x19c774)=>_0x263737(_0x48dbdb,_0x19c774,_0x10afdb);let Me=class extends _0x241134{constructor(_0x52cc45,_0x27c2a8,_0xe53c5e,_0x180ed0){const _0x50c44f=_0x1551de;super(),l(this,_0x50c44f(0x3b1),new _0x278b2c(P[_0x50c44f(0x531)])),(this[_0x50c44f(0x4d0)]=_0x52cc45,this['_uiPartsService']=_0x27c2a8,this[_0x50c44f(0x49f)]=_0xe53c5e,this[_0x50c44f(0x3c7)]=_0x180ed0,this[_0x50c44f(0x3d1)](),this[_0x50c44f(0x29f)]());}[_0x1551de(0x29f)](){const _0x1bae2a=_0x1551de;this[_0x1bae2a(0x48a)](this[_0x1bae2a(0x4d0)][_0x1bae2a(0x4fe)][_0x1bae2a(0x506)](_0x228bc0(()=>{const _0x5f0765=_0x1bae2a,_0x4decec=this[_0x5f0765(0x4d0)][_0x5f0765(0x4a3)]();return _0x4decec?this[_0x5f0765(0x3c7)][_0x5f0765(0x244)](_0x4decec[_0x5f0765(0x35e)]()):_0x55d71b(null);}),_0x228bc0(_0x3362bf=>_0x3362bf?_0x3362bf[_0x1bae2a(0x207)]:_0x55d71b(P[_0x1bae2a(0x531)])))[_0x1bae2a(0x245)](_0x3cb576=>{const _0xffb1f3=_0x1bae2a;this[_0xffb1f3(0x3b1)][_0xffb1f3(0x3a7)](_0x3cb576);}));}['_initStatusComponent'](){const _0x26e55e=_0x1551de;this[_0x26e55e(0x48a)](this[_0x26e55e(0x389)]['registerComponent'](_0x2fd672['HEADER_MENU'],()=>_0xb693b1(Ro({'status$':this[_0x26e55e(0x3b1)]['asObservable']()}),this['_injector'])));}};Me=To([Be(0x0,_0x39ffff),Be(0x1,_0x276a39),Be(0x2,_0x1e17a6(_0x2c37d0)),Be(0x3,_0x1e17a6(Le))],Me);function Ro(_0x15a100){const {status$:_0x5d53be}=_0x15a100;return function(){const _0x50730b=_0x15b1;return _0x1bcc89[_0x50730b(0x367)](Eo,{'status$':_0x5d53be});};}const qs=_0x28e772(_0x1551de(0x467));var Oo=Object[_0x1551de(0x2f4)],Do=Object[_0x1551de(0x1d2)],wo=(_0x1364db,_0xd4b90,_0x208124,_0x10f0a8)=>{const _0x1803f6=_0x1551de;for(var _0x15fa71=_0x10f0a8>0x1?void 0x0:_0x10f0a8?Do(_0xd4b90,_0x208124):_0xd4b90,_0x5ac8eb=_0x1364db[_0x1803f6(0x379)]-0x1,_0x508853;_0x5ac8eb>=0x0;_0x5ac8eb--)(_0x508853=_0x1364db[_0x5ac8eb])&&(_0x15fa71=(_0x10f0a8?_0x508853(_0xd4b90,_0x208124,_0x15fa71):_0x508853(_0x15fa71))||_0x15fa71);return _0x10f0a8&&_0x15fa71&&Oo(_0xd4b90,_0x208124,_0x15fa71),_0x15fa71;},ge=(_0x4402aa,_0x5bc1f3)=>(_0x343cc0,_0x41f707)=>_0x5bc1f3(_0x343cc0,_0x41f707,_0x4402aa);let Je=class extends _0x1a4d16{constructor(_0x56c051,_0xf56d79,_0x424f4b,_0x3e96a8,_0x29e9c9,_0x21a966){const _0x5e683e=_0x1551de;super(),this['_urlService']=_0x56c051,this['_logService']=_0xf56d79,this[_0x5e683e(0x512)]=_0x424f4b,this['_localCacheService']=_0x3e96a8,this[_0x5e683e(0x453)]=_0x29e9c9,_0x21a966?_0x21a966==null||_0x21a966[_0x5e683e(0x393)]()['then'](()=>this[_0x5e683e(0x35f)]()):(this[_0x5e683e(0x428)][_0x5e683e(0x26a)](_0x5e683e(0x205),_0x5e683e(0x4da)),this[_0x5e683e(0x35f)]());}async[_0x1551de(0x35f)](){const _0x40b4f8=_0x1551de,_0x154d8d=this[_0x40b4f8(0x4c3)][_0x40b4f8(0x248)](_0x40b4f8(0x4db)),_0x23880f=this[_0x40b4f8(0x4c3)][_0x40b4f8(0x248)](_0x40b4f8(0x47e));if(!_0x154d8d||!_0x23880f){this[_0x40b4f8(0x428)]['debug'](_0x40b4f8(0x205),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x23880f)){case k[_0x40b4f8(0x273)]:{const _0x5264eb=await this[_0x40b4f8(0x25a)](_0x154d8d);this[_0x40b4f8(0x2b5)](_0x5264eb);break;}case k[_0x40b4f8(0x36e)]:{await this['_loadDoc'](_0x154d8d);break;}default:{this[_0x40b4f8(0x428)][_0x40b4f8(0x31c)](_0x40b4f8(0x205),_0x40b4f8(0x3e3));break;}}}async[_0x1551de(0x2b5)](_0x467378){const _0x595b80=_0x1551de;await this['_updateSubUnitFromURLParams'](_0x467378),_0x467378['activeSheet$'][_0x595b80(0x506)](_0x2e6539(this[_0x595b80(0x51e)]))[_0x595b80(0x245)](_0x55b59f=>{const _0x43dc33=_0x595b80;_0x55b59f&&this[_0x43dc33(0x42c)](_0x55b59f);}),this[_0x595b80(0x4c3)]['urlChange$'][_0x595b80(0x506)](_0x2e6539(this['dispose$']))[_0x595b80(0x245)](()=>this[_0x595b80(0x511)](_0x467378));}[_0x1551de(0x42c)](_0x46c7b5,_0x405e74=!0x1){const _0x2cd133=_0x1551de,_0xa789d2=this[_0x2cd133(0x4c3)][_0x2cd133(0x248)]('subunit');_0x46c7b5[_0x2cd133(0x2a7)]()!==_0xa789d2&&this[_0x2cd133(0x4c3)][_0x2cd133(0x3c8)](_0x2cd133(0x3c1),_0x46c7b5[_0x2cd133(0x2a7)](),_0x405e74);}async[_0x1551de(0x511)](_0x204feb){const _0x49bd14=_0x1551de;var _0xc0c90f;const _0x5c2e2a=this[_0x49bd14(0x4c3)]['getParam'](_0x49bd14(0x3c1));if(!_0x5c2e2a||!_0x204feb[_0x49bd14(0x537)](_0x5c2e2a)){const _0x3101e6=_0x204feb[_0x49bd14(0x263)]()[0x0],_0x47ee8c=_0x204feb[_0x49bd14(0x537)](_0x3101e6);if(!_0x47ee8c)return;this[_0x49bd14(0x42c)](_0x47ee8c,!0x0),await this[_0x49bd14(0x512)][_0x49bd14(0x27d)](_0x52bf81['id'],{'unitId':_0x204feb[_0x49bd14(0x35e)](),'subUnitId':_0x3101e6});return;}((_0xc0c90f=_0x204feb['getActiveSheet']())==null?void 0x0:_0xc0c90f[_0x49bd14(0x2a7)]())!==_0x5c2e2a&&await this['_commandService']['executeCommand'](_0x52bf81['id'],{'unitId':_0x204feb[_0x49bd14(0x35e)](),'subUnitId':_0x5c2e2a});}async[_0x1551de(0x25a)](_0x200a85){const _0x339f9b=_0x1551de;let _0x54dde9=0x0;const _0x45eeb1=await this[_0x339f9b(0x1fd)]['loadOfflineData'](_0x200a85);return _0x45eeb1&&(_0x45eeb1[_0x339f9b(0x218)]||_0x45eeb1[_0x339f9b(0x417)]['length']!==0x0)&&(_0x54dde9=_0x45eeb1[_0x339f9b(0x1c3)]),_0x54dde9===0x0&&this[_0x339f9b(0x428)][_0x339f9b(0x26a)](_0x339f9b(0x205),_0x339f9b(0x465)),this['_snapshotService'][_0x339f9b(0x1bd)](_0x200a85,_0x54dde9);}async[_0x1551de(0x2d5)](_0x373aca){const _0x51af7c=_0x1551de;let _0x502149=0x0;const _0x926d06=await this[_0x51af7c(0x1fd)][_0x51af7c(0x4ea)](_0x373aca);return _0x926d06&&(_0x926d06[_0x51af7c(0x218)]||_0x926d06[_0x51af7c(0x417)][_0x51af7c(0x379)]!==0x0)&&(_0x502149=_0x926d06[_0x51af7c(0x1c3)]),_0x502149===0x0&&this[_0x51af7c(0x428)][_0x51af7c(0x26a)]('[DataLoaderController]',_0x51af7c(0x465)),this[_0x51af7c(0x453)][_0x51af7c(0x20f)](_0x373aca,_0x502149);}};Je=wo([ge(0x0,qs),ge(0x1,_0x57653f),ge(0x2,_0x1b1421),ge(0x3,_0x1e17a6(w)),ge(0x4,_0x1e17a6(_0x475013)),ge(0x5,_0x302b5c(_0x42220d))],Je);var Po=Object[_0x1551de(0x2f4)],yo=Object[_0x1551de(0x1d2)],Uo=(_0x872439,_0x56ea98,_0x2cc1f9,_0x516c31)=>{const _0x3af790=_0x1551de;for(var _0x42e0c3=_0x516c31>0x1?void 0x0:_0x516c31?yo(_0x56ea98,_0x2cc1f9):_0x56ea98,_0x492802=_0x872439[_0x3af790(0x379)]-0x1,_0x3f8dc9;_0x492802>=0x0;_0x492802--)(_0x3f8dc9=_0x872439[_0x492802])&&(_0x42e0c3=(_0x516c31?_0x3f8dc9(_0x56ea98,_0x2cc1f9,_0x42e0c3):_0x3f8dc9(_0x42e0c3))||_0x42e0c3);return _0x516c31&&_0x42e0c3&&Po(_0x56ea98,_0x2cc1f9,_0x42e0c3),_0x42e0c3;},Ss=(_0x867d47,_0x350aaa)=>(_0x2a7720,_0x4a9649)=>_0x350aaa(_0x2a7720,_0x4a9649,_0x867d47);const No=_0x1551de(0x2eb),Mo=_0x1551de(0x505);let ze=class extends _0x241134{constructor(_0x48f249,_0xdb7a33){const _0x490c12=_0x1551de;super(),this['_univerInstanceService']=_0x48f249,this[_0x490c12(0x1fb)]=_0xdb7a33,this[_0x490c12(0x35f)]();}[_0x1551de(0x35f)](){const _0x1819b7=_0x1551de;this['disposeWithMe'](this[_0x1819b7(0x4d0)][_0x1819b7(0x4fe)]['subscribe'](()=>{const _0x4f24fa=_0x1819b7;var _0x25ac01;const _0x38d1d9=this[_0x4f24fa(0x4d0)][_0x4f24fa(0x4a3)]();let _0x99b3df=(_0x25ac01=this['_configService'][_0x4f24fa(0x31a)](No))!=null?_0x25ac01:Mo;_0x38d1d9 instanceof _0x3a418b&&(_0x99b3df=_0x38d1d9['name']),document[_0x4f24fa(0x52d)]=_0x99b3df;}));}};ze=Uo([Ss(0x0,_0x39ffff),Ss(0x1,_0x162b76)],ze);var Ao=Object['defineProperty'],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x3d87bd,_0x5b8917,_0x47d6ef,_0x56f7dc)=>{const _0x2f9516=_0x1551de;for(var _0x3ac589=_0x56f7dc>0x1?void 0x0:_0x56f7dc?Lo(_0x5b8917,_0x47d6ef):_0x5b8917,_0x47b5e8=_0x3d87bd[_0x2f9516(0x379)]-0x1,_0x14152b;_0x47b5e8>=0x0;_0x47b5e8--)(_0x14152b=_0x3d87bd[_0x47b5e8])&&(_0x3ac589=(_0x56f7dc?_0x14152b(_0x5b8917,_0x47d6ef,_0x3ac589):_0x14152b(_0x3ac589))||_0x3ac589);return _0x56f7dc&&_0x3ac589&&Ao(_0x5b8917,_0x47d6ef,_0x3ac589),_0x3ac589;},St=(_0x69c64f,_0x2f8bfc)=>(_0x6c8d89,_0x560277)=>_0x2f8bfc(_0x6c8d89,_0x560277,_0x69c64f);let Ze=class{constructor(_0x1efb81,_0x2874d3,_0x3aed02){const _0x5373d3=_0x1551de;this['_configService']=_0x1efb81,this['_httpService']=_0x2874d3,this[_0x5373d3(0x3c3)]=_0x3aed02,this[_0x5373d3(0x284)]();}['init'](){const _0x20a583=_0x1551de;this['_httpService'][_0x20a583(0x2ab)]({'priority':0x1,'interceptor':(_0x5224df,_0x5d8cb7)=>_0x5d8cb7(_0x5224df)['pipe'](_0x2cf83c(async _0x1b4fad=>{const _0x8dab6e=_0x20a583,_0x6922b4=_0x1b4fad;if(_0x6922b4[_0x8dab6e(0x2e9)]===0x191&&window['confirm'](this[_0x8dab6e(0x3c3)]['t']('auth.needGotoLoginAlert'))){const _0x1f1f86=window[_0x8dab6e(0x4f4)](window['location'][_0x8dab6e(0x3ee)]);window[_0x8dab6e(0x477)][_0x8dab6e(0x3ee)]=this['_getLoginPath']()+_0x8dab6e(0x306)+_0x1f1f86;}return _0x6922b4;}))});}[_0x1551de(0x3f5)](){const _0x39caad=_0x1551de;var _0x58ac64,_0x964e2e;const _0x4922d0=this[_0x39caad(0x1fb)][_0x39caad(0x31a)](Nn),_0x30a37d=this[_0x39caad(0x1fb)][_0x39caad(0x31a)]($);return(_0x964e2e=(_0x58ac64=_0x30a37d==null?void 0x0:_0x30a37d[_0x39caad(0x289)])!=null?_0x58ac64:_0x4922d0)!=null?_0x964e2e:Mn;}};Ze=$o([St(0x0,_0x162b76),St(0x1,_0x1e17a6(_0x2ada7)),St(0x2,_0x1e17a6(_0x2268fa))],Ze);var jo=Object[_0x1551de(0x2f4)],xo=Object[_0x1551de(0x1d2)],Ho=(_0x438788,_0x1d79cc,_0x224d10,_0xa02b19)=>{const _0x55a1c0=_0x1551de;for(var _0x2af882=_0xa02b19>0x1?void 0x0:_0xa02b19?xo(_0x1d79cc,_0x224d10):_0x1d79cc,_0x219162=_0x438788[_0x55a1c0(0x379)]-0x1,_0x231fb5;_0x219162>=0x0;_0x219162--)(_0x231fb5=_0x438788[_0x219162])&&(_0x2af882=(_0xa02b19?_0x231fb5(_0x1d79cc,_0x224d10,_0x2af882):_0x231fb5(_0x2af882))||_0x2af882);return _0xa02b19&&_0x2af882&&jo(_0x1d79cc,_0x224d10,_0x2af882),_0x2af882;},ps=(_0x1bdfc5,_0x22c721)=>(_0x292f63,_0x8dc0b2)=>_0x22c721(_0x292f63,_0x8dc0b2,_0x1bdfc5);const ko='AUTHZ_URL_KEY',Bo='/universer-api/authz';let yt=class extends _0x241134{constructor(_0x18a717,_0x22e567){const _0x290620=_0x1551de;super(),this['_HTTPService']=_0x18a717,this[_0x290620(0x1fb)]=_0x22e567,this[_0x290620(0x520)]();}[_0x1551de(0x520)](){const _0x51dae6=_0x1551de,_0x25a309=this;this[_0x51dae6(0x48a)](this[_0x51dae6(0x471)][_0x51dae6(0x2ab)]({'priority':0x3e7,'interceptor':_0x64732f({'isMatch'(_0x95e8ce){const _0x5684c2=_0x51dae6;var _0x453972;if(_0x95e8ce[_0x5684c2(0x2be)]==='POST'&&((_0x453972=_0x95e8ce[_0x5684c2(0x3e5)])!=null&&_0x453972[_0x5684c2(0x339)])){const {objectID:_0xdb0fab,objectType:_0x590193}=_0x95e8ce[_0x5684c2(0x3e5)][_0x5684c2(0x339)]||{};if(!_0xdb0fab||_0x590193===void 0x0)return!0x1;const _0x3db190=_0x25a309[_0x5684c2(0x349)]()+'/'+_0x590193+_0x5684c2(0x1ff)+_0xdb0fab+'/allowed';if(_0x95e8ce['url']===_0x3db190)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd212ab){const _0x406682=_0x51dae6;var _0xbdf748;return(_0xbdf748=_0xd212ab['requestParams'])==null?void 0x0:_0xbdf748[_0x406682(0x339)];},'mergeParamsToRequest'(_0x32f85b,_0x580fee){const _0x17953a=_0x51dae6,_0x56fb9d=_0x25a309[_0x17953a(0x349)]()+'/-/object/-/batch_allowed',_0x324e67=_0x32f85b[_0x17953a(0x43c)]((_0x4731e5,_0x284e11)=>{const _0x1d5340=_0x17953a,{unitID:_0x1ae8ad,objectID:_0x1ac304,objectType:_0x313c53,actions:_0x4027c0}=_0x284e11;return _0x4731e5[_0x1ae8ad]||(_0x4731e5[_0x1ae8ad]={}),_0x4731e5[_0x1ae8ad][_0x1ac304]||(_0x4731e5[_0x1ae8ad][_0x1ac304]={'objectID':_0x1ac304,'objectType':_0x313c53,'actions':[]}),_0x4731e5[_0x1ae8ad][_0x1ac304][_0x1d5340(0x290)][_0x1d5340(0x2e7)](..._0x4027c0),_0x4731e5;},{}),_0x1913e5=[];for(const _0x21cd2a in _0x324e67)for(const _0x58b7df in _0x324e67[_0x21cd2a]){const {actions:_0x43f81e,objectType:_0x12df28}=_0x324e67[_0x21cd2a][_0x58b7df],_0x2266a5=[...new Set(_0x43f81e)];_0x1913e5['push']({'unitID':_0x21cd2a,'objectID':_0x58b7df,'objectType':_0x12df28,'actions':_0x2266a5});}return new _0x583456(_0x17953a(0x469),_0x56fb9d,{'headers':_0x580fee[_0x17953a(0x4f8)],'withCredentials':_0x580fee[_0x17953a(0x2ef)],'responseType':_0x580fee[_0x17953a(0x1e8)],'body':{'requests':_0x1913e5}});}},{'distributeResult'(_0x577374,_0x203b5d){const _0x2ce653=_0x51dae6,{objectActions:_0x1706a9}=_0x577374;return _0x203b5d[_0x2ce653(0x33b)](_0x15e536=>{const _0x2d72ef=_0x2ce653,{unitID:_0x4b63c2,objectID:_0x303256,actions:_0x30a3b7}=_0x15e536,_0x3e64e9=_0x1706a9['find'](_0x440148=>_0x440148['unitID']===_0x4b63c2&&_0x440148[_0x2d72ef(0x1cb)]===_0x303256),_0xfdb503=_0x30a3b7[_0x2d72ef(0x33b)](_0x11b0d8=>_0x3e64e9==null?void 0x0:_0x3e64e9['actions'][_0x2d72ef(0x251)](_0x1fc3df=>_0x1fc3df[_0x2d72ef(0x402)]===_0x11b0d8))['filter'](_0x24ae4b=>!!_0x24ae4b);return{'config':_0x15e536,'result':{'actions':_0xfdb503,'error':_0x577374['error']}};});}})}));}[_0x1551de(0x349)](){const _0x4d5398=_0x1551de;var _0x28ffee,_0x3dc0e4;const _0x2beec6=this[_0x4d5398(0x1fb)][_0x4d5398(0x31a)](ko),_0x72521c=this[_0x4d5398(0x1fb)][_0x4d5398(0x31a)]($);return(_0x3dc0e4=(_0x28ffee=_0x72521c==null?void 0x0:_0x72521c['authzUrl'])!=null?_0x28ffee:_0x2beec6)!=null?_0x3dc0e4:Bo;}async['create'](_0x5d8a68){const _0x159585=_0x1551de,_0x3a7adb=this[_0x159585(0x349)]()+'/'+_0x5d8a68[_0x159585(0x4eb)]+_0x159585(0x1f2);return(await this[_0x159585(0x471)][_0x159585(0x3d7)](_0x3a7adb,{'body':_0x5d8a68}))[_0x159585(0x339)][_0x159585(0x1cb)]||'';}async[_0x1551de(0x41e)](_0x452ebe){const _0x4cd6c3=_0x1551de,_0x37fff2=this[_0x4cd6c3(0x349)]()+_0x4cd6c3(0x38e);return(await this[_0x4cd6c3(0x471)][_0x4cd6c3(0x3d7)](_0x37fff2,{'body':_0x452ebe}))[_0x4cd6c3(0x339)][_0x4cd6c3(0x2ca)];}async[_0x1551de(0x400)](_0x4dd2a2){const _0x492b58=_0x1551de,_0x1a4267=this[_0x492b58(0x349)]()+'/'+_0x4dd2a2[_0x492b58(0x4eb)]+_0x492b58(0x1ff)+_0x4dd2a2[_0x492b58(0x1cb)];await this['_HTTPService']['put'](_0x1a4267,{'body':_0x4dd2a2});}async[_0x1551de(0x40c)](_0x18df09){const _0x5ce58d=_0x1551de,_0x35730f=this['_getAPIPrefixPath']()+'/'+_0x18df09[_0x5ce58d(0x4eb)]+'/object/'+_0x18df09['objectID']+'/allowed';return(await this[_0x5ce58d(0x471)]['post'](_0x35730f,{'body':_0x18df09}))[_0x5ce58d(0x339)][_0x5ce58d(0x290)];}async[_0x1551de(0x2fa)](_0xe7a74f){const _0x126997=_0x1551de,_0x4a9f72=this[_0x126997(0x349)]()+_0x126997(0x1fe);return(await this[_0x126997(0x471)][_0x126997(0x3d7)](_0x4a9f72,{'body':{'requests':_0xe7a74f}}))['body'][_0x126997(0x45c)];}async[_0x1551de(0x283)](_0x40838c){const _0xfb3d4a=_0x1551de,_0x13522e=this['_getAPIPrefixPath']()+'/'+_0x40838c[_0xfb3d4a(0x4eb)]+_0xfb3d4a(0x4d2),_0x463fa6=await this[_0xfb3d4a(0x471)][_0xfb3d4a(0x3d7)](_0x13522e,{'body':_0x40838c});return{'roles':_0x463fa6[_0xfb3d4a(0x339)][_0xfb3d4a(0x29e)],'actions':_0x463fa6['body'][_0xfb3d4a(0x290)]};}async[_0x1551de(0x39a)](_0x1e638d){const _0x3e3c83=_0x1551de,_0x95eb26=this[_0x3e3c83(0x349)]()+_0x3e3c83(0x23a);await this[_0x3e3c83(0x471)]['delete'](_0x95eb26,{'params':{'collaboratorID':_0x1e638d['collaboratorID'],'objectID':_0x1e638d[_0x3e3c83(0x1cb)],'unitID':_0x1e638d[_0x3e3c83(0x4aa)]}});}async[_0x1551de(0x1b9)](_0xcdd0d5){const _0x534185=_0x1551de,_0x1889b0=this[_0x534185(0x349)]()+_0x534185(0x23a);await this[_0x534185(0x471)][_0x534185(0x371)](_0x1889b0,{'body':_0xcdd0d5});}async[_0x1551de(0x2ed)](_0x5ea6bf){const _0x4deb7b=_0x1551de,_0x5991c0=this[_0x4deb7b(0x349)]()+_0x4deb7b(0x23a);await this[_0x4deb7b(0x471)]['post'](_0x5991c0,{'body':_0x5ea6bf});}async[_0x1551de(0x2cb)](_0x13b238){const _0x495b24=_0x1551de,_0x3f4c88=this[_0x495b24(0x349)]()+_0x495b24(0x23a);return(await this['_HTTPService'][_0x495b24(0x3a8)](_0x3f4c88,{'params':{'objectID':_0x13b238['objectID'],'unitID':_0x13b238[_0x495b24(0x4aa)]}}))[_0x495b24(0x339)]['collaborators'];}async['putCollaborators'](_0x5dd8be){const _0x13d146=_0x1551de,_0x501672=this[_0x13d146(0x349)]()+_0x13d146(0x23a);await this[_0x13d146(0x471)][_0x13d146(0x27c)](_0x501672,{'body':_0x5dd8be});}};yt=Ho([ps(0x0,_0x1e17a6(_0x2ada7)),ps(0x1,_0x1e17a6(_0x162b76))],yt);var Vo=Object[_0x1551de(0x2f4)],Fo=Object[_0x1551de(0x1d2)],Wo=(_0x3d4686,_0x507e72,_0x213498,_0x43de4b)=>{const _0x17c8c3=_0x1551de;for(var _0x227f1d=_0x43de4b>0x1?void 0x0:_0x43de4b?Fo(_0x507e72,_0x213498):_0x507e72,_0x587fde=_0x3d4686[_0x17c8c3(0x379)]-0x1,_0x582237;_0x587fde>=0x0;_0x587fde--)(_0x582237=_0x3d4686[_0x587fde])&&(_0x227f1d=(_0x43de4b?_0x582237(_0x507e72,_0x213498,_0x227f1d):_0x582237(_0x227f1d))||_0x227f1d);return _0x43de4b&&_0x227f1d&&Vo(_0x507e72,_0x213498,_0x227f1d),_0x227f1d;},Go=(_0x2ffdb2,_0x51ffcc)=>(_0x370d48,_0x528981)=>_0x51ffcc(_0x370d48,_0x528981,_0x2ffdb2);let Qe=class{constructor(_0x3995cb){const _0x36a9e9=_0x1551de;this[_0x36a9e9(0x4b7)]=_0x3995cb,this['_initRequestHeader']();}[_0x1551de(0x27e)](){const _0x585329=_0x1551de;this[_0x585329(0x4b7)][_0x585329(0x2ab)]({'interceptor':(_0x55acbb,_0x4db82c)=>{const _0x54b33d=_0x585329,_0x513b06=_0x55acbb[_0x54b33d(0x4f8)],_0x5f5d44=_0x384d73();return _0x5f5d44&&_0x513b06[_0x54b33d(0x3a4)](_0x54b33d(0x351),_0x5f5d44),_0x4db82c(_0x55acbb);}});}};Qe=Wo([Go(0x0,_0x1e17a6(_0x2ada7))],Qe);var Yo=Object[_0x1551de(0x2f4)],Ko=Object[_0x1551de(0x1d2)],Xo=(_0x45c8df,_0x26c1ad,_0x6199b3,_0x221ba3)=>{const _0x522864=_0x1551de;for(var _0x31db57=_0x221ba3>0x1?void 0x0:_0x221ba3?Ko(_0x26c1ad,_0x6199b3):_0x26c1ad,_0x120d56=_0x45c8df[_0x522864(0x379)]-0x1,_0x28ddba;_0x120d56>=0x0;_0x120d56--)(_0x28ddba=_0x45c8df[_0x120d56])&&(_0x31db57=(_0x221ba3?_0x28ddba(_0x26c1ad,_0x6199b3,_0x31db57):_0x28ddba(_0x31db57))||_0x31db57);return _0x221ba3&&_0x31db57&&Yo(_0x26c1ad,_0x6199b3,_0x31db57),_0x31db57;},pt=(_0x1f3260,_0x1ae997)=>(_0x45116c,_0x5f02c8)=>_0x1ae997(_0x45116c,_0x5f02c8,_0x1f3260);const qo=[_0x1551de(0x264),'image/jpeg',_0x1551de(0x281),_0x1551de(0x447),_0x1551de(0x4a0)],Jo=0x5*0x400*0x400,zo=_0x1551de(0x2c3),Zo=_0x1551de(0x4d3),Qo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ea=_0x1551de(0x317);let Ut=class{constructor(_0x1a7694,_0x5036b1,_0x503655){const _0x4ebac4=_0x1551de;l(this,_0x4ebac4(0x410),0x0),l(this,_0x4ebac4(0x30f),new _0x47928e()),l(this,_0x4ebac4(0x3cb),this[_0x4ebac4(0x30f)]),l(this,_0x4ebac4(0x3ab),new Map()),(this[_0x4ebac4(0x4b7)]=_0x1a7694,this[_0x4ebac4(0x1fb)]=_0x5036b1,this['_univerInstanceService']=_0x503655);}[_0x1551de(0x1d5)](_0x93bf3d){const _0x459c74=_0x1551de;this[_0x459c74(0x410)]=_0x93bf3d,this[_0x459c74(0x30f)][_0x459c74(0x3a7)](_0x93bf3d);}[_0x1551de(0x449)](_0x4e2333,_0x2676ea){const _0x476801=_0x1551de;if(_0x2676ea===_0x113090[_0x476801(0x326)]){const _0x52a503=new Image();return _0x52a503['src']=_0x4e2333,_0x52a503;}return this[_0x476801(0x3ab)][_0x476801(0x3a8)](_0x4e2333);}[_0x1551de(0x48c)](_0x58d126,_0x86918b,_0x29d370){const _0xacd2cb=_0x1551de;_0x86918b===_0x113090[_0xacd2cb(0x326)]||_0x29d370==null||this[_0xacd2cb(0x3ab)]['set'](_0x58d126,_0x29d370);}async[_0x1551de(0x3ff)](_0x444e07){const _0x579d77=_0x1551de;try{const _0x5d5c93=this[_0x579d77(0x51f)](this[_0x579d77(0x223)](),''+_0x444e07),_0xb5af4e=(await this[_0x579d77(0x4b7)][_0x579d77(0x3a8)](_0x5d5c93))[_0x579d77(0x339)];if(_0xb5af4e['error']&&_0xb5af4e['error']['code']===xs['OK']){const _0x51e8a5=new URL(_0xb5af4e[_0x579d77(0x315)],this[_0x579d77(0x3bd)]())[_0x579d77(0x3eb)]();return Promise[_0x579d77(0x241)](_0x51e8a5);}return Promise[_0x579d77(0x233)](_0xb5af4e[_0x579d77(0x31c)]);}catch(_0x1516d4){return Promise[_0x579d77(0x233)](_0x1516d4);}}async[_0x1551de(0x337)](_0x2e3755){const _0x67feeb=_0x1551de;let _0x43d637='';if(!qo[_0x67feeb(0x3c2)](_0x2e3755[_0x67feeb(0x47e)]))return this[_0x67feeb(0x347)](),Promise[_0x67feeb(0x233)](new Error(_0x15532d[_0x67feeb(0x398)]));if(_0x2e3755[_0x67feeb(0x499)]>Jo)return this[_0x67feeb(0x347)](),Promise[_0x67feeb(0x233)](new Error(_0x15532d[_0x67feeb(0x1c5)]));try{const _0x40994c=new FormData();_0x40994c[_0x67feeb(0x1e5)](_0x67feeb(0x340),_0x2e3755);const _0x2ffa0a=this['_univerInstanceService'][_0x67feeb(0x4a3)](),_0xbbf607=_0x2ffa0a==null?void 0x0:_0x2ffa0a['getUnitId']();if(!_0xbbf607)throw new Error(_0x67feeb(0x394));const _0x35f483=this[_0x67feeb(0x3b4)]()+_0x67feeb(0x476)+_0x2e3755[_0x67feeb(0x499)][_0x67feeb(0x3eb)]()+'&source='+Hs[_0x67feeb(0x2c1)]+_0x67feeb(0x415)+encodeURIComponent(_0xbbf607),_0x3e9692=await(await fetch(_0x35f483,{'method':'POST','body':_0x40994c}))[_0x67feeb(0x38f)]();if(typeof _0x3e9692[_0x67feeb(0x274)]!=_0x67feeb(0x33f))return this[_0x67feeb(0x347)](),Promise['reject'](new Error(_0x15532d[_0x67feeb(0x21a)]));_0x43d637=_0x3e9692[_0x67feeb(0x274)];}catch{return this[_0x67feeb(0x347)](),Promise['reject'](new Error(_0x15532d['ERROR_IMAGE']));}return new Promise((_0x244b05,_0x34e630)=>{const _0x2a97cb=_0x67feeb,_0x113509=new FileReader();_0x113509[_0x2a97cb(0x4f3)](_0x2e3755),_0x113509[_0x2a97cb(0x33d)]=_0x5d40ca=>{const _0x4dfa55=_0x2a97cb;var _0x30fe6f;const _0x33a327=(_0x30fe6f=_0x5d40ca[_0x4dfa55(0x23e)])==null?void 0x0:_0x30fe6f[_0x4dfa55(0x30b)];if(_0x33a327==null){this[_0x4dfa55(0x347)](),_0x34e630(new Error(_0x15532d[_0x4dfa55(0x21a)]));return;}const _0x360a5e=_0x3358a8['generateRandomId'](0x6);_0x244b05({'imageId':_0x360a5e,'imageSourceType':_0x113090[_0x4dfa55(0x4c4)],'source':_0x43d637,'base64Cache':_0x33a327,'status':_0x15532d[_0x4dfa55(0x4f5)]}),this[_0x4dfa55(0x347)]();};});}[_0x1551de(0x3b4)](){const _0x5f15ac=_0x1551de;var _0x23212c,_0x2af0a5;const _0x1be815=this[_0x5f15ac(0x1fb)][_0x5f15ac(0x31a)](zo),_0x2daba1=this[_0x5f15ac(0x1fb)][_0x5f15ac(0x31a)]($);return(_0x2af0a5=(_0x23212c=_0x2daba1==null?void 0x0:_0x2daba1['uploadFileServerUrl'])!=null?_0x23212c:_0x1be815)!=null?_0x2af0a5:Zo;}[_0x1551de(0x223)](){const _0x10ba27=_0x1551de;var _0x5495ed,_0x11bd02;const _0x4b2d24=this[_0x10ba27(0x1fb)][_0x10ba27(0x31a)](Qo),_0x248010=this[_0x10ba27(0x1fb)]['getConfig']($);return(_0x11bd02=(_0x5495ed=_0x248010==null?void 0x0:_0x248010[_0x10ba27(0x1b4)])!=null?_0x5495ed:_0x4b2d24)!=null?_0x11bd02:ea;}[_0x1551de(0x3bd)](){const _0x143491=_0x1551de;var _0x13ac01;const _0x638e26=this[_0x143491(0x1fb)]['getConfig']($);return(_0x13ac01=_0x638e26==null?void 0x0:_0x638e26[_0x143491(0x231)])!=null?_0x13ac01:location['origin'];}[_0x1551de(0x51f)](_0x50382d,_0x502084){const _0x1c8594=_0x1551de;return _0x50382d[_0x1c8594(0x4d7)]('{fileID}',_0x502084);}[_0x1551de(0x347)](){const _0x344d97=_0x1551de;this[_0x344d97(0x410)]-=0x1,this[_0x344d97(0x30f)][_0x344d97(0x3a7)](this['_waitCount']);}};Ut=Xo([pt(0x0,_0x1e17a6(_0x2ada7)),pt(0x1,_0x162b76),pt(0x2,_0x1e17a6(_0x39ffff))],Ut);var ta=Object[_0x1551de(0x2f4)],sa=Object[_0x1551de(0x1d2)],ia=(_0x3f36d5,_0x4c4539,_0x448739,_0x57da5a)=>{const _0x281e16=_0x1551de;for(var _0x1da739=_0x57da5a>0x1?void 0x0:_0x57da5a?sa(_0x4c4539,_0x448739):_0x4c4539,_0x4601a7=_0x3f36d5[_0x281e16(0x379)]-0x1,_0x1d2b56;_0x4601a7>=0x0;_0x4601a7--)(_0x1d2b56=_0x3f36d5[_0x4601a7])&&(_0x1da739=(_0x57da5a?_0x1d2b56(_0x4c4539,_0x448739,_0x1da739):_0x1d2b56(_0x1da739))||_0x1da739);return _0x57da5a&&_0x1da739&&ta(_0x4c4539,_0x448739,_0x1da739),_0x1da739;},ye=(_0x393b98,_0x1f9bad)=>(_0x58cea3,_0x55db28)=>_0x1f9bad(_0x58cea3,_0x55db28,_0x393b98);let et=class extends _0x1a4d16{constructor(_0x3102ad,_0x5ad921,_0x426483,_0x523dc0,_0xb5d3bd){const _0x1bb5bc=_0x1551de;super(),this[_0x1bb5bc(0x49f)]=_0x3102ad,this[_0x1bb5bc(0x4d0)]=_0x5ad921,this['_permissionService']=_0x426483,this[_0x1bb5bc(0x1b2)]=_0x523dc0,this[_0x1bb5bc(0x50d)]=_0xb5d3bd,this[_0x1bb5bc(0x454)](),this[_0x1bb5bc(0x1ed)]();}[_0x1551de(0x1ed)](){const _0x102a23=_0x1551de,_0x1745c5=async _0x231e35=>{const _0x970b0e=_0x15b1;(await this[_0x970b0e(0x1b2)][_0x970b0e(0x3df)](_0x231e35))['event$'][_0x970b0e(0x506)](_0x357d19(_0x12e3cc=>_0x12e3cc[_0x970b0e(0x1be)]===_0x5b54e6['SHOULD_CLOSE_CONN']),_0x3afad8(this[_0x970b0e(0x51e)]))[_0x970b0e(0x245)](_0x3bd434=>{const _0x2cb005=_0x970b0e,_0x56f8bc=_0x3bd434,{reason:_0x58e4f9}=_0x56f8bc[_0x2cb005(0x253)];this['_injector'][_0x2cb005(0x3a8)](_0x2c0505)[_0x2cb005(0x341)]({'type':_0x2710e7[_0x2cb005(0x2c4)],'content':this[_0x2cb005(0x50d)]['t'](_0x2cb005(0x3e8))+'('+_0x58e4f9+')'}),this[_0x2cb005(0x1cd)][_0x2cb005(0x4bd)](new _0x454d8a(_0x231e35)['id'],!0x1),this['_collaborationSessionService'][_0x2cb005(0x362)](_0x231e35);});};_0x4d44c4(this[_0x102a23(0x4d0)]['getTypeOfUnitAdded$'](_0x55d6cf[_0x102a23(0x273)]),this[_0x102a23(0x4d0)][_0x102a23(0x286)](_0x55d6cf[_0x102a23(0x36e)]))[_0x102a23(0x506)](_0x336dd2(_0x56f707=>_0x56f707['getUnitId']()),_0x357d19(_0x567d41=>!_0x388de8(_0x567d41)),_0x3afad8(this[_0x102a23(0x51e)]))[_0x102a23(0x245)](_0x1662be=>{_0x1745c5(_0x1662be);});}[_0x1551de(0x454)](){const _0x335812=_0x1551de,_0x5199c6=async _0x539ef5=>{const _0x1ffa8e=_0x15b1;(await this[_0x1ffa8e(0x1b2)][_0x1ffa8e(0x3df)](_0x539ef5))['event$'][_0x1ffa8e(0x506)](_0x357d19(_0x4ca034=>_0x4ca034['eventID']===_0x5b54e6[_0x1ffa8e(0x502)]),_0x3afad8(this[_0x1ffa8e(0x51e)]))[_0x1ffa8e(0x245)](_0x5be071=>{const _0x47330f=_0x1ffa8e,_0x2287af=_0x5be071,{objectId:_0x231227}=_0x2287af[_0x47330f(0x253)],_0x265838=this['_injector'][_0x47330f(0x3a8)](_0xea1c95);_0x231227===_0x539ef5?_0x265838[_0x47330f(0x46c)](_0x539ef5):_0x265838['refreshPermission'](_0x539ef5,_0x231227);});};_0x4d44c4(this[_0x335812(0x4d0)][_0x335812(0x286)](_0x55d6cf['UNIVER_SHEET']),this['_univerInstanceService'][_0x335812(0x286)](_0x55d6cf[_0x335812(0x36e)]))[_0x335812(0x506)](_0x336dd2(_0x11cd31=>_0x11cd31[_0x335812(0x35e)]()),_0x357d19(_0x4f0261=>!_0x388de8(_0x4f0261)),_0x3afad8(this[_0x335812(0x51e)]))[_0x335812(0x245)](_0x2f5324=>{_0x5199c6(_0x2f5324);});}};et=ia([ye(0x0,_0x1e17a6(_0x2c37d0)),ye(0x1,_0x39ffff),ye(0x2,_0x42a9f2),ye(0x3,_0x1e17a6(he)),ye(0x4,_0x1e17a6(_0x2268fa))],et);var na=Object[_0x1551de(0x2f4)],ra=Object[_0x1551de(0x1d2)],oa=(_0x4fe57f,_0x5b5adc,_0x426609,_0x3b06cd)=>{const _0x38b79a=_0x1551de;for(var _0x5ce28b=_0x3b06cd>0x1?void 0x0:_0x3b06cd?ra(_0x5b5adc,_0x426609):_0x5b5adc,_0x300905=_0x4fe57f[_0x38b79a(0x379)]-0x1,_0x1d0890;_0x300905>=0x0;_0x300905--)(_0x1d0890=_0x4fe57f[_0x300905])&&(_0x5ce28b=(_0x3b06cd?_0x1d0890(_0x5b5adc,_0x426609,_0x5ce28b):_0x1d0890(_0x5ce28b))||_0x5ce28b);return _0x3b06cd&&_0x5ce28b&&na(_0x5b5adc,_0x426609,_0x5ce28b),_0x5ce28b;},vs=(_0x268a02,_0x3b5fd7)=>(_0x14a688,_0x54c55a)=>_0x3b5fd7(_0x14a688,_0x54c55a,_0x268a02);let Nt=class{constructor(_0x2e65a2,_0x3baf31){const _0x1c74ba=_0x1551de;this[_0x1c74ba(0x1fb)]=_0x2e65a2,this[_0x1c74ba(0x4b7)]=_0x3baf31;}async['getUnitOnRev'](_0x22f56a,_0x485129){const _0x147448=_0x1551de;var _0x2e492e;const {unitID:_0x17e892,type:_0x494835,revision:_0x2aa687=0x0}=_0x485129,_0xb311a9=this[_0x147448(0x3b9)]()+'/'+_0x494835+_0x147448(0x3a5)+_0x17e892+_0x147448(0x226)+_0x2aa687,_0x29f5ac=(await this[_0x147448(0x4b7)][_0x147448(0x3a8)](_0xb311a9))[_0x147448(0x339)],_0x337f1b=(_0x2e492e=_0x29f5ac[_0x147448(0x4e6)])==null?void 0x0:_0x2e492e['workbook'];if(_0x337f1b){const _0x45a203=_0x337f1b==null?void 0x0:_0x337f1b[_0x147448(0x4dd)],_0x499992=_0x3bf2d1[_0x147448(0x450)](_0x256849(_0x45a203));_0x337f1b[_0x147448(0x4dd)]=_0x499992,Object[_0x147448(0x48f)](_0x337f1b[_0x147448(0x40e)])[_0x147448(0x357)](([,_0x2dd9d6])=>{const _0x513a9c=_0x147448,_0x2c5e33=_0x2dd9d6[_0x513a9c(0x4dd)],_0x3c1b8e=_0x3bf2d1[_0x513a9c(0x450)](_0x256849(_0x2c5e33));_0x2dd9d6[_0x513a9c(0x4dd)]=_0x3c1b8e;});}return _0x29f5ac;}async[_0x1551de(0x364)](_0x41b8cd,_0x31b90e){const _0x352432=_0x1551de,{unitID:_0x525038,type:_0x45fe2e,blockID:_0x5b0c60}=_0x31b90e,_0x3d66eb=this['_getAPIPrefix']()+'/'+_0x45fe2e+_0x352432(0x3a5)+_0x525038+'/block/'+_0x5b0c60;return(await this['_httpService'][_0x352432(0x3a8)](_0x3d66eb))['body'];}async['getDeserializedSheetBlock'](_0x206b8d,_0x181bc1){const _0x3bbc68=_0x1551de,{unitID:_0x2c470e,type:_0x4b9645,blockID:_0x2e0796}=_0x181bc1,_0xcd36bb=this['_getAPIPrefix']()+_0x3bbc68(0x527)+_0x4b9645+_0x3bbc68(0x3a5)+_0x2c470e+_0x3bbc68(0x527)+_0x2e0796;return(await this[_0x3bbc68(0x4b7)][_0x3bbc68(0x3a8)](_0xcd36bb))[_0x3bbc68(0x339)];}async[_0x1551de(0x4d9)](_0x539bba,_0x4f531b){const _0x54c96d=_0x1551de,{unitID:_0x127765,type:_0x201126,from:_0x2f3fff,to:_0x5c1f1f}=_0x4f531b,_0x584d7d=this[_0x54c96d(0x288)]()+'/'+_0x201126+_0x54c96d(0x3a5)+_0x127765+_0x54c96d(0x504)+_0x2f3fff+_0x54c96d(0x225)+_0x5c1f1f;return(await this[_0x54c96d(0x4b7)][_0x54c96d(0x3a8)](_0x584d7d))[_0x54c96d(0x339)];}[_0x1551de(0x3b9)](){const _0x226bda=_0x1551de;var _0x402830;return(_0x402830=this[_0x226bda(0x1fb)][_0x226bda(0x31a)](vn))!=null?_0x402830:this[_0x226bda(0x288)]();}[_0x1551de(0x288)](){const _0x26d124=_0x1551de;var _0x587e97,_0x23f1f8;const _0x35a123=this['_configService'][_0x26d124(0x31a)](Sn),_0x30c678=this[_0x26d124(0x1fb)]['getConfig']($);return(_0x23f1f8=(_0x587e97=_0x30c678==null?void 0x0:_0x30c678['snapshotServerUrl'])!=null?_0x587e97:_0x35a123)!=null?_0x23f1f8:pn;}async['getResourcesRequest'](_0x9faf79,_0x4b6710){const _0x1f6c89=_0x1551de,_0x36b5a3='/universer-api/snapshot/'+_0x4b6710[_0x1f6c89(0x47e)]+'/unit/'+_0x4b6710[_0x1f6c89(0x4aa)]+_0x1f6c89(0x43f);return(await this[_0x1f6c89(0x4b7)][_0x1f6c89(0x3a8)](_0x36b5a3,{'params':{'resourceId':JSON[_0x1f6c89(0x3da)](_0x4b6710[_0x1f6c89(0x483)])}}))['body'];}['saveSnapshot'](){const _0x57c347=_0x1551de;throw new Error(_0x57c347(0x3a6));}[_0x1551de(0x52a)](){const _0x497486=_0x1551de;throw new Error(_0x497486(0x3a6));}['saveChangeset'](){const _0x360f22=_0x1551de;throw new Error(_0x360f22(0x3a6));}[_0x1551de(0x2c8)](){const _0x3a7677=_0x1551de;throw new Error(_0x3a7677(0x3a6));}['getLatestCsReqIdBySid'](){const _0x35547b=_0x1551de;throw new Error(_0x35547b(0x3a6));}};Nt=oa([vs(0x0,_0x162b76),vs(0x1,_0x1e17a6(_0x2ada7))],Nt);var aa=Object[_0x1551de(0x2f4)],ca=Object[_0x1551de(0x1d2)],ha=(_0x57705f,_0x2f4f47,_0x244c0f,_0x355a18)=>{const _0x294cbe=_0x1551de;for(var _0x360549=_0x355a18>0x1?void 0x0:_0x355a18?ca(_0x2f4f47,_0x244c0f):_0x2f4f47,_0x5e8e4b=_0x57705f[_0x294cbe(0x379)]-0x1,_0x5f346d;_0x5e8e4b>=0x0;_0x5e8e4b--)(_0x5f346d=_0x57705f[_0x5e8e4b])&&(_0x360549=(_0x355a18?_0x5f346d(_0x2f4f47,_0x244c0f,_0x360549):_0x5f346d(_0x360549))||_0x360549);return _0x355a18&&_0x360549&&aa(_0x2f4f47,_0x244c0f,_0x360549),_0x360549;},Ue=(_0xf4ec26,_0x10e0e7)=>(_0x1d76d9,_0x2c2474)=>_0x10e0e7(_0x1d76d9,_0x2c2474,_0xf4ec26);let Mt=class extends _0x126412{constructor(_0x4d8529,_0x583402,_0x2eaf09,_0x44cad1,_0x35e2ce){super(_0x4d8529,_0x583402,_0x2eaf09),this['_transformService']=_0x44cad1,this['_logService']=_0x35e2ce;}[_0x1551de(0x4ca)](_0x3440eb,_0x55e111){const _0xedc051=_0x1551de,_0x55931a=this[_0xedc051(0x3c9)](_0x3440eb);if(_0x55931a)try{const _0x3a8d1e=this[_0xedc051(0x2ea)](_0x55931a,_0x55e111);this[_0xedc051(0x21e)](_0x3440eb,_0x3a8d1e);}catch(_0x48660a){this[_0xedc051(0x428)]['error'](_0xedc051(0x228),_0x48660a),this[_0xedc051(0x4c5)](_0x3440eb);}const _0xb9bea5=this['_getRedoStack'](_0x3440eb);if(_0xb9bea5)try{const _0x288565=this[_0xedc051(0x2ea)](_0xb9bea5,_0x55e111);this[_0xedc051(0x47b)](_0x3440eb,_0x288565);}catch(_0x1bdf01){this[_0xedc051(0x428)][_0xedc051(0x31c)](_0x1bdf01),this['_clearRedo'](_0x3440eb);}}[_0x1551de(0x4c5)](_0x493113){const _0x4a8f54=_0x1551de,_0x5076bc=this[_0x4a8f54(0x3c9)](_0x493113);_0x5076bc&&(_0x5076bc[_0x4a8f54(0x379)]=0x0,this[_0x4a8f54(0x3dd)]());}['_clearRedo'](_0x1f849f){const _0x412829=_0x1551de,_0x4cbeb=this[_0x412829(0x268)](_0x1f849f);_0x4cbeb&&(_0x4cbeb[_0x412829(0x379)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x5c2f5b,_0x2926bb){const _0x48e309=_0x1551de;this['_undoStacks'][_0x48e309(0x3a4)](_0x5c2f5b,_0x2926bb),this['_updateStatus']();}['_substituteRedoStack'](_0x26f228,_0x4e96ef){const _0x2c2e03=_0x1551de;this['_redoStacks']['set'](_0x26f228,_0x4e96ef),this[_0x2c2e03(0x3dd)]();}['_transformStack'](_0x590651,_0x36d322){const _0x35a1f7=_0x1551de,_0x1361d2=[];let _0x50f0d3=_0x36d322,_0x34d7b7=_0x36d322;for(let _0x300f8e=_0x590651[_0x35a1f7(0x379)]-0x1;_0x300f8e>=0x0;_0x300f8e--){const {unitID:_0x231d69,undoMutations:_0x49ccd4,redoMutations:_0x2709f3}=_0x590651[_0x300f8e],_0x3903b8=this[_0x35a1f7(0x3ed)][_0x35a1f7(0x333)](_0x50f0d3,_0x49ccd4),_0x5e2b38=this[_0x35a1f7(0x3ed)][_0x35a1f7(0x333)](_0x34d7b7,_0x2709f3);if(_0x4b804d(_0x3903b8)||_0x4b804d(_0x5e2b38)){this[_0x35a1f7(0x428)][_0x35a1f7(0x31c)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x3903b8,_0x5e2b38);break;}_0x50f0d3=_0x3903b8[_0x35a1f7(0x2a2)],_0x34d7b7=_0x5e2b38['c1Prime'],_0x1361d2[_0x35a1f7(0x2e7)]({'unitID':_0x231d69,'undoMutations':_0x3903b8[_0x35a1f7(0x41d)],'redoMutations':_0x5e2b38['m2Prime']});}return _0x1361d2['reverse']();}};Mt=ha([Ue(0x0,_0x39ffff),Ue(0x1,_0x1b1421),Ue(0x2,_0x3c9612),Ue(0x3,_0x19690b),Ue(0x4,_0x57653f)],Mt);class la extends _0x1a4d16{constructor(){const _0x7a677d=_0x1551de;super(),l(this,_0x7a677d(0x4e4)),this[_0x7a677d(0x4e4)]=_0xbba4c3(window,_0x7a677d(0x4d8))['pipe'](_0x2e6539(this[_0x7a677d(0x51e)]),_0x3c413f(0x1),_0x553d1a(void 0x0));}[_0x1551de(0x3c8)](_0x18ad60,_0x594d6f,_0xe1b6d1=!0x1){const _0x501fbf=_0x1551de,_0x3fc741=new URL(window[_0x501fbf(0x477)][_0x501fbf(0x3ee)]);_0x3fc741[_0x501fbf(0x404)]['set'](_0x18ad60,_0x594d6f),_0xe1b6d1?window[_0x501fbf(0x35d)]['replaceState']('','',_0x3fc741[_0x501fbf(0x3eb)]()):window[_0x501fbf(0x35d)][_0x501fbf(0x403)]('','',_0x3fc741[_0x501fbf(0x3eb)]());}['removeParam'](_0x51f197,_0x1e7683=!0x1){const _0x43029f=_0x1551de,_0x5badf9=new URL(window[_0x43029f(0x477)][_0x43029f(0x3ee)]);_0x5badf9[_0x43029f(0x404)]['delete'](_0x51f197),_0x1e7683?window[_0x43029f(0x35d)][_0x43029f(0x489)]('','',_0x5badf9[_0x43029f(0x3eb)]()):window[_0x43029f(0x35d)]['pushState']('','',_0x5badf9[_0x43029f(0x3eb)]());}[_0x1551de(0x248)](_0x4c6045){const _0x117535=_0x1551de;var _0x2555fb;return(_0x2555fb=new URL(window[_0x117535(0x477)][_0x117535(0x3ee)])['searchParams']['get'](_0x4c6045))!=null?_0x2555fb:void 0x0;}}var Js=Object[_0x1551de(0x2f4)],_a=Object[_0x1551de(0x1d2)],ua=(_0x3925ef,_0x57f9f9,_0x2f2d22)=>_0x57f9f9 in _0x3925ef?Js(_0x3925ef,_0x57f9f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2d22}):_0x3925ef[_0x57f9f9]=_0x2f2d22,da=(_0x567283,_0x502a77,_0x58b625,_0x4fa611)=>{const _0x58a677=_0x1551de;for(var _0x2d0ad0=_0x4fa611>0x1?void 0x0:_0x4fa611?_a(_0x502a77,_0x58b625):_0x502a77,_0x563fdf=_0x567283[_0x58a677(0x379)]-0x1,_0x3b1cee;_0x563fdf>=0x0;_0x563fdf--)(_0x3b1cee=_0x567283[_0x563fdf])&&(_0x2d0ad0=(_0x4fa611?_0x3b1cee(_0x502a77,_0x58b625,_0x2d0ad0):_0x3b1cee(_0x2d0ad0))||_0x2d0ad0);return _0x4fa611&&_0x2d0ad0&&Js(_0x502a77,_0x58b625,_0x2d0ad0),_0x2d0ad0;},Ve=(_0x36eca8,_0x468fbd)=>(_0x308506,_0x3db9cd)=>_0x468fbd(_0x308506,_0x3db9cd,_0x36eca8),fa=(_0x2d5dbb,_0x8ddd6f,_0x1e5dab)=>ua(_0x2d5dbb,_0x8ddd6f+'',_0x1e5dab);const ma=_0x1551de(0x34e);let At=class extends _0x4da272{constructor(_0x37a3ff=An,_0x4e3d6b,_0x50a31e,_0x9eacd0,_0x1bf0e6){const _0x13defd=_0x1551de;super(),this[_0x13defd(0x3de)]=_0x37a3ff,this['_logService']=_0x4e3d6b,this[_0x13defd(0x2fc)]=_0x50a31e,this['_injector']=_0x9eacd0,this['_configService']=_0x1bf0e6;const {..._0x497fc5}=this[_0x13defd(0x3de)];this[_0x13defd(0x1fb)][_0x13defd(0x1cf)]($,_0x497fc5);}[_0x1551de(0x38c)](){const _0x1c0b5c=_0x1551de;this[_0x1c0b5c(0x47f)](),_0x25b34c(this[_0x1c0b5c(0x49f)],[[ve],[Je],[et]]);}[_0x1551de(0x39b)](){const _0x31de95=_0x1551de;_0x25b34c(this[_0x31de95(0x49f)],[[ze]]);}[_0x1551de(0x501)](){const _0xeb3f92=_0x1551de;this[_0xeb3f92(0x1bf)]();}['_registerDependencies'](){const _0x43bc94=_0x1551de;var _0x3fafd2,_0x411c12,_0x258123,_0x338a2e;this[_0x43bc94(0x49f)][_0x43bc94(0x329)](_0x3046ff)&&this['_logService'][_0x43bc94(0x31c)](_0x43bc94(0x507),_0x43bc94(0x4f6));let _0x27c4a3=[[_0x3046ff,{'useClass':Mt}],[he],[Gt],[_0x2ada7],[qs,{'useClass':la}],[ce],[w],[_0x15b636],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Bs],[et],[ks,{'useClass':(_0x411c12=(_0x3fafd2=this[_0x43bc94(0x3de)])==null?void 0x0:_0x3fafd2[_0x43bc94(0x524)])!=null?_0x411c12:Ct}],[_0xd79801,{'useClass':_0x14fb29}],[_0x347090,{'useClass':Nt}],[_0x23b3b1,{'useClass':yt}],[_0xc48711,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x258123=this[_0x43bc94(0x3de)])!=null&&_0x258123[_0x43bc94(0x479)]&&_0x27c4a3[_0x43bc94(0x2e7)]([tt,{'useClass':fr}]),_0x27c4a3=_0x2e57e3(_0x27c4a3,(_0x338a2e=this[_0x43bc94(0x3de)])==null?void 0x0:_0x338a2e[_0x43bc94(0x440)]),_0x27c4a3[_0x43bc94(0x357)](_0x18bb57=>this['_injector'][_0x43bc94(0x285)](_0x18bb57)),this[_0x43bc94(0x282)]();}[_0x1551de(0x1bf)](){const _0x31ad9b=_0x1551de;this[_0x31ad9b(0x48a)](this[_0x31ad9b(0x2fc)][_0x31ad9b(0x4df)](_0x55d6cf[_0x31ad9b(0x36e)],[wt])),this[_0x31ad9b(0x48a)](this[_0x31ad9b(0x2fc)][_0x31ad9b(0x4df)](_0x55d6cf['UNIVER_SHEET'],[Pt]));}['_initModules'](){const _0x221cba=_0x1551de;var _0x30936d,_0x3c953c;this[_0x221cba(0x49f)][_0x221cba(0x3a8)](_0x2ada7)[_0x221cba(0x2ab)]({'priority':0x14,'interceptor':_0x97582e({'maxParallel':0x6})}),this[_0x221cba(0x49f)][_0x221cba(0x3a8)](Qe),(_0x30936d=this[_0x221cba(0x3de)])!=null&&_0x30936d[_0x221cba(0x213)]||this['_injector'][_0x221cba(0x3a8)](w)[_0x221cba(0x4c6)](),(_0x3c953c=this[_0x221cba(0x3de)])!=null&&_0x3c953c[_0x221cba(0x3f7)]&&this[_0x221cba(0x49f)][_0x221cba(0x3a8)](Ze),this[_0x221cba(0x49f)]['get'](Le),this[_0x221cba(0x49f)][_0x221cba(0x329)](Me)&&this[_0x221cba(0x49f)]['get'](Me);}};fa(At,_0x1551de(0x452),ma),At=da([_0x309260(_0x49871e),Ve(0x1,_0x57653f),Ve(0x2,_0x5978ec),Ve(0x3,_0x1e17a6(_0x2c37d0)),Ve(0x4,_0x162b76)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,Bs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,$s as HEARTBEAT_TIMEOUT_KEY,ks as ICollaborationSocketService,qs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
|
1
|
+
const _0x12409a=_0x4bc7;(function(_0x57c949,_0xd5d6e2){const _0x231639=_0x4bc7,_0x3bcfbb=_0x57c949();while(!![]){try{const _0x10f1c9=parseInt(_0x231639(0x336))/0x1*(-parseInt(_0x231639(0x129))/0x2)+parseInt(_0x231639(0x11b))/0x3+parseInt(_0x231639(0x211))/0x4+parseInt(_0x231639(0x381))/0x5*(-parseInt(_0x231639(0x231))/0x6)+-parseInt(_0x231639(0x2e9))/0x7+parseInt(_0x231639(0x348))/0x8*(parseInt(_0x231639(0x260))/0x9)+parseInt(_0x231639(0x1c4))/0xa;if(_0x10f1c9===_0xd5d6e2)break;else _0x3bcfbb['push'](_0x3bcfbb['shift']());}catch(_0x5f343e){_0x3bcfbb['push'](_0x3bcfbb['shift']());}}}(_0xe1d4,0x758ee));var si=Object[_0x12409a(0x1ee)],ii=(_0x4bd1e2,_0x1fcc32,_0x3b4603)=>_0x1fcc32 in _0x4bd1e2?si(_0x4bd1e2,_0x1fcc32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b4603}):_0x4bd1e2[_0x1fcc32]=_0x3b4603,l=(_0x46e8cf,_0x38c55b,_0x3d7ae0)=>ii(_0x46e8cf,typeof _0x38c55b!=_0x12409a(0x1e8)?_0x38c55b+'':_0x38c55b,_0x3d7ae0);import{createIdentifier as _0x2fc4d3,Inject as _0x565e28,Disposable as _0x1efbc8,DisposableCollection as _0x29a9a9,toDisposable as _0x5ef5c0,IConfigService as _0x301e4e,ILogService as _0x2fef42,UserManagerService as _0x1f884e,UniverInstanceType as _0x351a49,IUniverInstanceService as _0x114f27,LocaleService as _0x128cab,Optional as _0x1a9909,RxDisposable as _0x5d8701,Injector as _0x3f178c,Tools as _0x5bdceb,ILocalStorageService as _0x57776d,Rectangle as _0x3b6a0d,ICommandService as _0x2af4cf,JSONX as _0x5294e6,CommandType as _0x1070ad,IPermissionService as _0x4594fa,IUndoRedoService as _0x26c70e,sequenceExecute as _0x12c615,debounce as _0x173224,COLORS as _0x2654dc,ColorKit as _0xa805c,ThemeService as _0x376b1d,fromEventSubject as _0x3c0cfa,useDependency as _0x4a37c6,connectInjector as _0x56c2b6,Workbook as _0x4c9bc9,isInternalEditorID as _0x272710,LocalUndoRedoService as _0x18741d,IContextService as _0x26f27f,DependentOn as _0x2737b3,Plugin as _0x2545f7,touchDependencies as _0xeba9f1,IAuthzIoService as _0x57894e,mergeOverrideWithDependencies as _0x48fc26}from'@univerjs/core';import{Subject as _0x5633a5,merge as _0x23085b,takeUntil as _0x2d78ee,BehaviorSubject as _0x30f2ca,distinctUntilChanged as _0x1f7048,fromEvent as _0x983b61,map as _0x54df3a,shareReplay as _0x27a368,take as _0x470012,of as _0x303fa8,debounceTime as _0x246b10,filter as _0x1e6332,switchMap as _0x3fba78,combineLatest as _0x214399,concatMap as _0x5d8791,mapTo as _0x56c97a}from'rxjs';import{map as _0x123c40,take as _0x28aef5,filter as _0x51df9d,delay as _0x4f83c9,throttleTime as _0x39d280,takeUntil as _0xeca24a,switchMap as _0x14c343}from'rxjs/operators';import{MessageType as _0x3ea716,Tooltip as _0x5a45cb}from'@univerjs/design';import{IBeforeCloseService as _0x186c4b,IMessageService as _0x32ad3e,INotificationService as _0x2ba0b5,useObservable as _0xec0688,BuiltInUIPart as _0xc250c8,IUIPartsService as _0x2892a4}from'@univerjs/ui';import{HTTPService as _0x1a28a3,WebSocketService as _0x9095c5,MergeInterceptorFactory as _0x3b04fe,HTTPRequest as _0x369bef,IHTTPImplementation as _0x3545d6,XHRHTTPImplementation as _0x526b8a,ThresholdInterceptorFactory as _0x27806c}from'@univerjs/network';import{CollaborationEvent as _0x1a2ec1,parseChangesetToProtocol as _0x451f64,ISnapshotServerService as _0x2bb579,isTransformMutationFailure as _0x1711e0,isTransformMutationsWithChangesetSuccess as _0x568457,ITransformService as _0x5dfa67,RevisionService as _0x4b7ded,mapDocumentTypeToUniverType as _0x22736c,isTransformChangesetsSuccess as _0x35b7ff,CompressMutationService as _0x269693,parseProtocolChangeset as _0x30a82b,SnapshotService as _0x32ca9e,textEncoder as _0x249833,b64DecodeUnicode as _0x3432b1,isTransformMutationsWithChangesetFailure as _0x5c083e,UniverCollaborationPlugin as _0x33d032}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xc705be}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x5566fa,DocStateChangeManagerService as _0x2ae8fb,NodePositionConvertToCursor as _0xae33e2,isValidRectRange as _0xc6104c,NodePositionConvertToRectRange as _0x4a1ef9,TEXT_RANGE_LAYER_INDEX as _0x13a457,SetDocZoomRatioOperation as _0x7ebe35}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x158fb6,SetSelectionsOperation as _0x1c4355,InsertSheetMutation as _0x565345,EmptyMutation as _0x8b0674,WorkbookEditablePermission as _0x19d13a,RefRangeService as _0x280a5a,EffectRefRangId as _0x4d74df,handleIRemoveRow as _0x8d978d,handleIRemoveCol as _0x300f40,handleMoveRange as _0x40d85b,handleInsertRow as _0x284a2f,handleInsertRangeMoveRight as _0x214bbf,handleInsertRangeMoveDown as _0x1c8722,handleInsertCol as _0x413277,handleDeleteRangeMoveUp as _0x55259b,handleDeleteRangeMoveLeft as _0x37b146,runRefRangeMutations as _0x596bfe,SetWorksheetActivateCommand as _0x7b97d2}from'@univerjs/sheets';import{IRenderManagerService as _0x3872a8,Shape as _0x5ff19f,Rect as _0x2433b1,getColor as _0x4194dd,RegularPolygon as _0x346ba4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1ab316,Vector2 as _0x15e28a}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2452e8,RichTextEditingMutation as _0x5e8bc0,SetTextSelectionsOperation as _0x45e900,DocSkeletonManagerService as _0x48a76e}from'@univerjs/docs';import{ImageSourceType as _0x1b83e4,ImageUploadStatusType as _0x5daf8d,IImageIoService as _0x45bed1}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x18ada2,serializeRangeWithSheet as _0x319cba}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x44f148,VIEWPORT_KEY as _0x178749,getCoordByCell as _0x288960,getSheetObject as _0x62e069,SheetPermissionInitController as _0x3b6dd6}from'@univerjs/sheets-ui';import _0x1fd77a,{forwardRef as _0x4249ce,useRef as _0x499775,createElement as _0x50fdbf,useCallback as _0x5136b8}from'react';import{IRemoteInstanceService as _0x5e7134}from'@univerjs/rpc';import{getAttachHeader as _0x293789}from'@univerjs-pro/license';const Sn=_0x12409a(0x285),pn=_0x12409a(0xcb),vn=_0x12409a(0x23b),La=_0x12409a(0x290),In=0x7d0,En=_0x12409a(0x321),Cn=_0x12409a(0x1ef),bn=_0x12409a(0x241),Tn=0x7530,$s=_0x12409a(0xb4),js=0x4e20,Rn=0x4e20,On=_0x12409a(0xf6),Dn=0x3,wn=_0x12409a(0x20a),Pn=0x3e8,yn=_0x12409a(0x427),Un='/universer-api/comb',Nn=_0x12409a(0x364),Mn=_0x12409a(0x2e2);var xs=(_0x1c2bf2=>(_0x1c2bf2[_0x1c2bf2['UNDEFINED']=0x0]='UNDEFINED',_0x1c2bf2[_0x1c2bf2['OK']=0x1]='OK',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x2ba)]=0x2]=_0x12409a(0x2ba),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3a7)]=0x3]='PERMISSION_DENIED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3c6)]=0x4]='NOT_FOUND',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x107)]=0x5]='UNAUTHENTICATED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x23a)]=0x6]=_0x12409a(0x23a),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x1fd)]=0x7]=_0x12409a(0x1fd),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x2e5)]=0x8]=_0x12409a(0x2e5),_0x1c2bf2[_0x1c2bf2['COMPLETION_FINISHED']=0x9]=_0x12409a(0xba),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x1dd)]=0x1389]=_0x12409a(0x1dd),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x126)]=0x1771]=_0x12409a(0x126),_0x1c2bf2[_0x1c2bf2['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x12409a(0xb6),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3f8)]=0x1773]=_0x12409a(0x3f8),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x19a)]=0x1b59]=_0x12409a(0x19a),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3c8)]=0x1b5a]=_0x12409a(0x3c8),_0x1c2bf2[_0x1c2bf2['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x12409a(0x1a7),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x320)]=0x1b5c]=_0x12409a(0x320),_0x1c2bf2[_0x1c2bf2['APPLY_DUPLICATED']=0x1b5d]=_0x12409a(0x370),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x19b)]=0x1f41]=_0x12409a(0x19b),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3cf)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x223)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3ff)]=0x232b]=_0x12409a(0x3ff),_0x1c2bf2[_0x1c2bf2['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x230)]=0x232d]=_0x12409a(0x230),_0x1c2bf2[_0x1c2bf2['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x12409a(0x316),_0x1c2bf2[_0x1c2bf2['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x12409a(0x306),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x315)]=0x2713]=_0x12409a(0x315),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x377)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1c2bf2[_0x1c2bf2['UNRECOGNIZED']=-0x1]=_0x12409a(0x338),_0x1c2bf2))(xs||{}),k=(_0x3a0ca1=>(_0x3a0ca1[_0x3a0ca1['UNIVER_UNKNOWN']=0x0]=_0x12409a(0x400),_0x3a0ca1[_0x3a0ca1[_0x12409a(0x15b)]=0x1]='UNIVER_DOC',_0x3a0ca1[_0x3a0ca1[_0x12409a(0x1e2)]=0x2]=_0x12409a(0x1e2),_0x3a0ca1[_0x3a0ca1[_0x12409a(0x27e)]=0x3]=_0x12409a(0x27e),_0x3a0ca1[_0x3a0ca1[_0x12409a(0x2b6)]=0x4]='UNIVER_PROJECT',_0x3a0ca1[_0x3a0ca1[_0x12409a(0x338)]=-0x1]=_0x12409a(0x338),_0x3a0ca1))(k||{}),I=(_0x32a496=>(_0x32a496[_0x32a496[_0x12409a(0x3dd)]=0x0]=_0x12409a(0x3dd),_0x32a496[_0x32a496[_0x12409a(0x3ef)]=0x1]=_0x12409a(0x3ef),_0x32a496[_0x32a496[_0x12409a(0x1d7)]=0x2]=_0x12409a(0x1d7),_0x32a496[_0x32a496[_0x12409a(0x10b)]=0x3]=_0x12409a(0x10b),_0x32a496[_0x32a496[_0x12409a(0x2e6)]=0x4]=_0x12409a(0x2e6),_0x32a496[_0x32a496['HEARTBEAT']=0x5]=_0x12409a(0x157),_0x32a496[_0x32a496[_0x12409a(0x11f)]=0x6]=_0x12409a(0x11f),_0x32a496[_0x32a496['UNRECOGNIZED']=-0x1]=_0x12409a(0x338),_0x32a496))(I||{}),Vt=(_0x3491ab=>(_0x3491ab[_0x3491ab[_0x12409a(0xc8)]=0x0]=_0x12409a(0xc8),_0x3491ab[_0x3491ab['OK']=0x1]='OK',_0x3491ab[_0x3491ab[_0x12409a(0x245)]=0x2]=_0x12409a(0x245),_0x3491ab[_0x3491ab['UNRECOGNIZED']=-0x1]=_0x12409a(0x338),_0x3491ab))(Vt||{}),Hs=(_0x49521c=>(_0x49521c[_0x49521c[_0x12409a(0x278)]=0x0]='Undefined',_0x49521c[_0x49521c['HttpImport']=0x1]='HttpImport',_0x49521c[_0x49521c[_0x12409a(0x1d0)]=0x2]=_0x12409a(0x1d0),_0x49521c[_0x49521c[_0x12409a(0x173)]=0x3]='UnitEmbedded',_0x49521c[_0x49521c[_0x12409a(0x248)]=0x4]=_0x12409a(0x248),_0x49521c[_0x49521c['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x49521c))(Hs||{});const $=_0x12409a(0x279),An={};function Ln(_0x32b099){const _0x239ae7=_0x12409a;var _0x1e007a,_0xe4ad01,_0x32a160,_0x450f43;const _0x214e4f=_0x32b099[_0x239ae7(0x244)],_0x14b567=JSON['parse'](_0x214e4f);switch(_0x14b567[_0x239ae7(0x307)]){case I[_0x239ae7(0x157)]:case I[_0x239ae7(0x3ef)]:{const _0x13fc4d=_0x14b567[_0x239ae7(0xb5)];return{..._0x14b567,'data':_0x13fc4d,'cmd':_0x14b567[_0x239ae7(0x307)]};}case I[_0x239ae7(0x1d7)]:{const _0x358687=_0x14b567[_0x239ae7(0x3e8)];return{..._0x14b567,'data':_0x358687,'cmd':_0x14b567['cmd']};}case I[_0x239ae7(0x11f)]:{const _0x23df2e=_0x14b567['collaMsg'];switch(_0x23df2e[_0x239ae7(0x331)]){case _0x1a2ec1['PERMISSION_REJ']:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0x1e007a=_0x23df2e[_0x239ae7(0x10c)])==null?void 0x0:_0x1e007a['cs']},'cmd':_0x14b567['cmd']};case _0x1a2ec1[_0x239ae7(0x1df)]:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0xe4ad01=_0x23df2e['csAckEvent'])==null?void 0x0:_0xe4ad01['cs']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1['NEW_CHANGESETS']:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0x32a160=_0x23df2e[_0x239ae7(0x2c0)])==null?void 0x0:_0x32a160['cs']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x2d9)]:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0x450f43=_0x23df2e['csRejEvent'])==null?void 0x0:_0x450f43['cs']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x2de)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x2fb)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x42d)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0xb3)]},'cmd':_0x14b567['cmd']};case _0x1a2ec1[_0x239ae7(0x186)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x141)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x3a2)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e['liveShareNewHost']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1['LIVESHARE_FETCH_OPERATIONS']:case _0x1a2ec1[_0x239ae7(0x1a8)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e['liveShareOperation']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x3e0)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x3df)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x401)]:return{..._0x14b567,'data':_0x23df2e,'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x40f)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x13f)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x2d2)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e['updatePermissionObjEvent']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x252)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x2db)]},'cmd':_0x14b567[_0x239ae7(0x307)]};default:return _0x14b567;}}default:return _0x14b567;}}function $n(_0x193874){const _0x1bdc64=_0x12409a;switch(_0x193874['cmd']){case I[_0x1bdc64(0x157)]:case I['HELLO']:return JSON[_0x1bdc64(0x322)]({'cmd':_0x193874['cmd'],'routeKey':_0x193874['routeKey']});case I['INGEST']:{let _0x19c271;switch(_0x193874['data'][_0x1bdc64(0x331)]){case _0x1a2ec1[_0x1bdc64(0x2de)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x2de)],'updateCursorEvent':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x186)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x186)],'leaveEvent':_0x193874['data'][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x42d)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x42d)],'joinEvent':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1['LIVESHARE_NEW_HOST']:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x3a2)],'liveShareNewHost':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x1a8)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x1a8)],'liveShareOperation':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x3e0)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x3e0)],'liveShareTerminate':_0x193874[_0x1bdc64(0x244)]['data']};break;}case _0x1a2ec1[_0x1bdc64(0x2a8)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x2a8)],'liveShareRequestHost':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x206)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x206)]};break;}default:_0x19c271={'eventID':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x331)]};}return JSON['stringify']({'cmd':_0x193874[_0x1bdc64(0x307)],'routeKey':_0x193874[_0x1bdc64(0x179)],'collaMsg':_0x19c271});}case I[_0x1bdc64(0x1d7)]:return JSON[_0x1bdc64(0x322)]({'cmd':_0x193874[_0x1bdc64(0x307)],'routeKey':_0x193874[_0x1bdc64(0x179)],'joinReq':_0x193874[_0x1bdc64(0x244)]});case I['LEAVE']:return JSON[_0x1bdc64(0x322)]({'cmd':_0x193874[_0x1bdc64(0x307)],'routeKey':_0x193874[_0x1bdc64(0x179)],'leaveReq':_0x193874[_0x1bdc64(0x244)]});default:throw new Error(_0x1bdc64(0x355));}}var jn=Object['defineProperty'],xn=Object[_0x12409a(0xfe)],Hn=(_0x596f28,_0x125c72,_0x254a28,_0x48d580)=>{const _0x43c87d=_0x12409a;for(var _0x2c3af8=_0x48d580>0x1?void 0x0:_0x48d580?xn(_0x125c72,_0x254a28):_0x125c72,_0xd1a7f3=_0x596f28[_0x43c87d(0x3b7)]-0x1,_0x3bcb0e;_0xd1a7f3>=0x0;_0xd1a7f3--)(_0x3bcb0e=_0x596f28[_0xd1a7f3])&&(_0x2c3af8=(_0x48d580?_0x3bcb0e(_0x125c72,_0x254a28,_0x2c3af8):_0x3bcb0e(_0x2c3af8))||_0x2c3af8);return _0x48d580&&_0x2c3af8&&jn(_0x125c72,_0x254a28,_0x2c3af8),_0x2c3af8;},Oe=(_0x543eb8,_0x540486)=>(_0x5ae139,_0x415110)=>_0x540486(_0x5ae139,_0x415110,_0x543eb8);const ks=_0x2fc4d3(_0x12409a(0x3c7));function kn(_0x1e1b2f,_0x25b004,_0x3da62e){const _0x7f0c75=_0x12409a;return _0x1e1b2f+'/'+_0x25b004+'/unit/'+_0x3da62e+_0x7f0c75(0x233);}let Ct=class extends _0x1efbc8{constructor(_0x588604,_0x2980f6,_0xc38bde,_0x341626,_0x561c55){const _0x2a700c=_0x12409a;super(),this[_0x2a700c(0xb7)]=_0x588604,this[_0x2a700c(0x26f)]=_0x2980f6,this[_0x2a700c(0x150)]=_0xc38bde,this[_0x2a700c(0x24e)]=_0x341626,this['_snapshotServerService']=_0x561c55;}['createSocket'](_0x23cde3){const _0x3c390b=_0x12409a,_0x49cce2=this[_0x3c390b(0x26f)][_0x3c390b(0x167)](_0x23cde3);if(!_0x49cce2)throw new Error(_0x3c390b(0xb8));const _0x24bf9d=new _0x29a9a9(),_0x3d3dfb=new _0x5633a5();_0x24bf9d[_0x3c390b(0x22d)](_0x49cce2[_0x3c390b(0x1d8)][_0x3c390b(0x3c1)](_0x37def4=>_0x3d3dfb[_0x3c390b(0x188)](_0x37def4))),_0x24bf9d[_0x3c390b(0x22d)](_0x5ef5c0(()=>_0x3d3dfb[_0x3c390b(0x38f)]()));const _0x58571a=new _0x5633a5();_0x24bf9d[_0x3c390b(0x22d)](_0x49cce2[_0x3c390b(0x234)]['subscribe'](_0x390dd4=>_0x58571a[_0x3c390b(0x188)](_0x390dd4))),_0x24bf9d['add'](_0x5ef5c0(()=>_0x58571a['complete']()));const _0x3229c0=new _0x5633a5();_0x24bf9d[_0x3c390b(0x22d)](_0x49cce2[_0x3c390b(0x31a)][_0x3c390b(0x3c1)](_0x138e54=>{const _0x42059f=_0x3c390b,_0x125230=Ln(_0x138e54);_0x3229c0[_0x42059f(0x188)](_0x125230);})),_0x24bf9d[_0x3c390b(0x22d)](_0x5ef5c0(()=>_0x3229c0[_0x3c390b(0x38f)]()));let _0x555a6d;const _0x1611c7=()=>{const _0x2e66fb=_0x3c390b;_0x58571a[_0x2e66fb(0x188)](new Event('connection\x20error')),_0x3d3dfb['next'](new CloseEvent(_0x2e66fb(0x413))),_0x555a6d['close']();};return _0x555a6d={'memberID':'','close$':_0x3d3dfb[_0x3c390b(0x142)](),'error$':_0x58571a[_0x3c390b(0x142)](),'open$':_0x49cce2[_0x3c390b(0x341)],'message$':_0x3229c0[_0x3c390b(0x142)](),'send':_0x3d897c=>{const _0x57fbca=_0x3c390b;if(_0x3d897c[_0x57fbca(0x307)]===I[_0x57fbca(0x2e6)]){if(_0x3d897c[_0x57fbca(0x244)][_0x57fbca(0x331)]===_0x1a2ec1[_0x57fbca(0xee)]){this['_submitChangeset'](_0x555a6d,_0x3d897c['data'])['catch'](_0x2de8f2=>{const _0x3ac70e=_0x57fbca;this['_logService'][_0x3ac70e(0x2d7)](_0x2de8f2),_0x1611c7();});return;}if(_0x3d897c[_0x57fbca(0x244)][_0x57fbca(0x331)]===_0x1a2ec1[_0x57fbca(0x24c)]){const _0x10f9cc=_0x3d897c[_0x57fbca(0x244)];this[_0x57fbca(0x30b)](_0x10f9cc)[_0x57fbca(0x403)](_0x2fdbc9=>{const _0x19cf0c=_0x57fbca;_0x3229c0[_0x19cf0c(0x188)]({'cmd':I[_0x19cf0c(0x11f)],'code':Vt['OK'],'routeKey':_0x10f9cc[_0x19cf0c(0x244)]['unitID'],'routeType':'','data':{'eventID':_0x1a2ec1[_0x19cf0c(0x3a5)],'data':{'changesets':_0x2fdbc9}}});})[_0x57fbca(0x3d9)](_0x289207=>{const _0x86f258=_0x57fbca;this[_0x86f258(0x24e)]['error'](_0x289207),_0x1611c7();});return;}}_0x49cce2[_0x57fbca(0x10d)]($n(_0x3d897c));},'close':()=>{const _0x55824a=_0x3c390b;_0x49cce2[_0x55824a(0xd3)](),_0x24bf9d[_0x55824a(0x280)]();}},_0x555a6d;}async['_submitChangeset'](_0x26ae36,_0x52813d){const _0xc103ce=_0x12409a;var _0x4ac496,_0x4c9e75;const {unitType:_0x5c1cbd,unitID:_0x3a4243,changeset:_0x311f60}=_0x52813d[_0xc103ce(0x244)],_0x34d7c1={'unitID':_0x3a4243,'memberID':_0x26ae36[_0xc103ce(0x2ec)],'type':_0x5c1cbd,'changeset':_0x451f64(_0x311f60)},_0x369c41=this[_0xc103ce(0x150)]['getConfig'](yn),_0x2e7df5=this['_configService'][_0xc103ce(0x312)]($),_0x3311ba=kn((_0x4c9e75=(_0x4ac496=_0x2e7df5==null?void 0x0:_0x2e7df5[_0xc103ce(0x3f6)])!=null?_0x4ac496:_0x369c41)!=null?_0x4c9e75:Un,_0x5c1cbd,_0x3a4243);try{await this['_http'][_0xc103ce(0x1b4)](_0x3311ba,{'body':_0x34d7c1});}catch(_0x1af9c7){throw this[_0xc103ce(0x24e)]['error']('[CollaborationSession]',_0xc103ce(0x21a)),_0x1af9c7;}}async[_0x12409a(0x30b)](_0x4b3f8d){const _0x3928b9=_0x12409a,{unitID:_0x31f0b8,from:_0xfdf4b5,to:_0xdd15af,unitType:_0x5904fe}=_0x4b3f8d['data'];return(await this[_0x3928b9(0x187)][_0x3928b9(0x27a)]({'metadata':void 0x0},{'unitID':_0x31f0b8,'type':_0x5904fe,'from':_0xfdf4b5,'to':_0xdd15af}))[_0x3928b9(0x102)];}};Ct=Hn([Oe(0x0,_0x565e28(_0x1a28a3)),Oe(0x1,_0x565e28(_0x9095c5)),Oe(0x2,_0x301e4e),Oe(0x3,_0x2fef42),Oe(0x4,_0x2bb579)],Ct);const Bn='collaboration_new_changeset';function Vn(_0x235873){const _0x24b46c=_0x12409a;return JSON[_0x24b46c(0x322)](_0x235873)[_0x24b46c(0x3b7)];}class Bs{constructor(){const _0x328bb4=_0x12409a;l(this,_0x328bb4(0x1cf),new _0x5633a5()),l(this,_0x328bb4(0x3e4),this[_0x328bb4(0x1cf)][_0x328bb4(0x142)]());}['onCommentUpdate'](_0x752f0a){const _0x2ab20f=_0x12409a;this[_0x2ab20f(0x1cf)][_0x2ab20f(0x188)](_0x752f0a);}}var Fn=Object[_0x12409a(0x1ee)],Wn=Object[_0x12409a(0xfe)],Gn=(_0x7d2706,_0x1d0b0a,_0x1c5612,_0x420ee2)=>{for(var _0x2fb46d=_0x420ee2>0x1?void 0x0:_0x420ee2?Wn(_0x1d0b0a,_0x1c5612):_0x1d0b0a,_0x19b340=_0x7d2706['length']-0x1,_0x49f279;_0x19b340>=0x0;_0x19b340--)(_0x49f279=_0x7d2706[_0x19b340])&&(_0x2fb46d=(_0x420ee2?_0x49f279(_0x1d0b0a,_0x1c5612,_0x2fb46d):_0x49f279(_0x2fb46d))||_0x2fb46d);return _0x420ee2&&_0x2fb46d&&Fn(_0x1d0b0a,_0x1c5612,_0x2fb46d),_0x2fb46d;},as=(_0x593129,_0x22e16d)=>(_0x5d1967,_0x2aaa25)=>_0x22e16d(_0x5d1967,_0x2aaa25,_0x593129);let ce=class extends _0x1efbc8{constructor(_0xd30393,_0xf3be4d){const _0x496a7b=_0x12409a;super(),l(this,_0x496a7b(0xbc),new Map()),(this[_0x496a7b(0x392)]=_0xd30393,this[_0x496a7b(0x314)]=_0xf3be4d,this[_0x496a7b(0x2f2)](_0x5ef5c0(_0x23085b(this[_0x496a7b(0x392)][_0x496a7b(0x3ac)](_0x351a49['UNIVER_SHEET'])['pipe'](_0x123c40(_0x5d4bca=>_0x5d4bca[_0x496a7b(0xe4)]())),this[_0x496a7b(0x392)]['getTypeOfUnitDisposed$'](_0x351a49[_0x496a7b(0x15b)])['pipe'](_0x123c40(_0x54ce46=>_0x54ce46[_0x496a7b(0xe4)]())),this[_0x496a7b(0x392)]['getTypeOfUnitDisposed$'](_0x351a49[_0x496a7b(0x27e)])[_0x496a7b(0x29f)](_0x123c40(_0x5304f6=>_0x5304f6[_0x496a7b(0xe4)]())))[_0x496a7b(0x3c1)](_0x2cced0=>this['_removeRoom'](_0x2cced0)))));}[_0x12409a(0x259)](_0x3c84f8){const _0x55896e=_0x12409a;this[_0x55896e(0x314)][_0x55896e(0x259)](_0x3c84f8);}[_0x12409a(0x2a2)](){const _0x12e669=_0x12409a;return this[_0x12e669(0x314)][_0x12e669(0x2a2)]();}[_0x12409a(0x11d)](_0x4a2437,_0x588f1b){const _0x67b442=_0x12409a;let _0x47f229=this[_0x67b442(0xbc)][_0x67b442(0x2d5)](_0x4a2437);_0x47f229||(_0x47f229=new Yn(),this[_0x67b442(0xbc)]['set'](_0x4a2437,_0x47f229)),_0x47f229[_0x67b442(0x11d)](_0x588f1b);}[_0x12409a(0x2b0)](_0x491dca,_0x1397c5){const _0x5a23f7=_0x12409a,_0x455db1=this[_0x5a23f7(0xbc)][_0x5a23f7(0x2d5)](_0x491dca);_0x455db1&&_0x455db1[_0x5a23f7(0x2b0)](_0x1397c5);}[_0x12409a(0x40b)](_0x3071db){const _0x2b3a59=_0x12409a;return this[_0x2b3a59(0xbc)][_0x2b3a59(0x2d5)](_0x3071db);}['getMember'](_0x265f0d,_0xd50fc5){const _0x48dc37=_0x12409a,_0x18d024=this[_0x48dc37(0xbc)][_0x48dc37(0x2d5)](_0x265f0d);if(_0x18d024)return _0x18d024[_0x48dc37(0x265)](_0xd50fc5);}[_0x12409a(0x1d5)](_0x318e7c){const _0x478243=_0x12409a,_0x295656=this['_roomMembers'][_0x478243(0x2d5)](_0x318e7c);_0x295656&&(_0x295656[_0x478243(0x280)](),this[_0x478243(0xbc)][_0x478243(0xf3)](_0x318e7c));}[_0x12409a(0x280)](){const _0x4fb059=_0x12409a;this[_0x4fb059(0xbc)]['forEach'](_0x391240=>_0x391240[_0x4fb059(0x280)]()),this[_0x4fb059(0xbc)]['clear']();}};ce=Gn([as(0x0,_0x114f27),as(0x1,_0x565e28(_0x1f884e))],ce);class Yn extends _0x1efbc8{constructor(){const _0x43fd8d=_0x12409a;super(...arguments),l(this,_0x43fd8d(0x303),new Map());}[_0x12409a(0x280)](){const _0x1dd531=_0x12409a;this[_0x1dd531(0x303)][_0x1dd531(0x190)]();}[_0x12409a(0x11d)](_0xf4ffa1){const _0x30fa44=_0x12409a;this['_members'][_0x30fa44(0x28a)](_0xf4ffa1[_0x30fa44(0x2ec)],_0xf4ffa1);}[_0x12409a(0x2b0)](_0xf46359){const _0x54da18=_0x12409a;this['_members'][_0x54da18(0xf3)](_0xf46359);}['getMember'](_0x5409b7){const _0x386b11=_0x12409a;return this['_members'][_0x386b11(0x2d5)](_0x5409b7);}}var Kn=Object[_0x12409a(0x1ee)],Xn=Object[_0x12409a(0xfe)],qn=(_0x563061,_0x1485cb,_0x4cd1b2,_0x21f427)=>{const _0x2f7fd4=_0x12409a;for(var _0xcbc478=_0x21f427>0x1?void 0x0:_0x21f427?Xn(_0x1485cb,_0x4cd1b2):_0x1485cb,_0x1404d2=_0x563061[_0x2f7fd4(0x3b7)]-0x1,_0x13612b;_0x1404d2>=0x0;_0x1404d2--)(_0x13612b=_0x563061[_0x1404d2])&&(_0xcbc478=(_0x21f427?_0x13612b(_0x1485cb,_0x4cd1b2,_0xcbc478):_0x13612b(_0xcbc478))||_0xcbc478);return _0x21f427&&_0xcbc478&&Kn(_0x1485cb,_0x4cd1b2,_0xcbc478),_0xcbc478;},J=(_0x49dd24,_0x1f6957)=>(_0x49cc2f,_0x49ee25)=>_0x1f6957(_0x49cc2f,_0x49ee25,_0x49dd24),Y=(_0x5bdd18=>(_0x5bdd18[_0x5bdd18[_0x12409a(0x22a)]=0x0]=_0x12409a(0x22a),_0x5bdd18[_0x5bdd18[_0x12409a(0x266)]=0x1]=_0x12409a(0x266),_0x5bdd18[_0x5bdd18[_0x12409a(0x108)]=0x2]=_0x12409a(0x108),_0x5bdd18[_0x5bdd18['ONLINE']=0x3]=_0x12409a(0xca),_0x5bdd18))(Y||{});let bt=class extends _0x5d8701{constructor(_0x298996,_0x3d160a,_0x1866c7,_0x48a226,_0x3b336d,_0xe793f4,_0x165f6a,_0x4e5f53,_0x39881c,_0x1774db){const _0x3486a5=_0x12409a;super(),l(this,'_sessionStatus$',new _0x30f2ca(0x0)),l(this,_0x3486a5(0xe2),this[_0x3486a5(0x3f7)]['asObservable']()),l(this,_0x3486a5(0x41e),new _0x5633a5()),l(this,_0x3486a5(0x3e9),this['_event$'][_0x3486a5(0x142)]()),l(this,_0x3486a5(0x389)),l(this,_0x3486a5(0x1ca)),l(this,_0x3486a5(0x1a9)),l(this,'_shouldReportTelemetry',!0x1),l(this,'_telemetryInfo',null),(this[_0x3486a5(0x351)]=_0x298996,this[_0x3486a5(0x24e)]=_0x1866c7,this[_0x3486a5(0x26d)]=_0x48a226,this[_0x3486a5(0x417)]=_0x3b336d,this['_configService']=_0xe793f4,this[_0x3486a5(0xd9)]=_0x165f6a,this[_0x3486a5(0x3bc)]=_0x4e5f53,this[_0x3486a5(0x262)]=_0x39881c,this['_telemetryService']=_0x1774db,this['_shouldReportTelemetry']=!!this[_0x3486a5(0x2b8)],_0x3d160a[_0x3486a5(0x29f)](_0x2d78ee(this[_0x3486a5(0x394)]))['subscribe'](_0x2907f2=>{const _0x41e423=_0x3486a5;var _0x12d72c;typeof _0x2907f2>'u'||(this[_0x41e423(0x389)]=_0x2907f2,_0x2907f2?(this[_0x41e423(0x34a)](_0x2907f2),this[_0x41e423(0x1ca)]=_0x2907f2[_0x41e423(0x31a)][_0x41e423(0x3c1)](_0x29edd8=>{const _0x333b58=_0x41e423;_0x29edd8[_0x333b58(0x179)]===this[_0x333b58(0x351)]&&this[_0x333b58(0x2e0)](_0x29edd8);})):(this[_0x41e423(0x379)](),this[_0x41e423(0x3f7)][_0x41e423(0x188)](0x2),(_0x12d72c=this[_0x41e423(0x1ca)])==null||_0x12d72c[_0x41e423(0x365)](),this[_0x41e423(0x1ca)]=null));}),this[_0x3486a5(0x2f2)](this['_beforeCloseService'][_0x3486a5(0x2fe)](()=>{const _0xc96a0=_0x3486a5;var _0x5cc1f3;(_0x5cc1f3=this[_0xc96a0(0x389)])==null||_0x5cc1f3[_0xc96a0(0x10d)]({'cmd':I[_0xc96a0(0x10b)],'data':{'roomID':this['_unitID']}});})));}get[_0x12409a(0x2bc)](){const _0x1dc583=_0x12409a;return this[_0x1dc583(0x3f7)]['getValue']();}[_0x12409a(0x22f)](){const _0x1756b2=_0x12409a;var _0x14cd5f,_0x5c38a0;return(_0x5c38a0=(_0x14cd5f=this[_0x1756b2(0x389)])==null?void 0x0:_0x14cd5f['memberID'])!=null?_0x5c38a0:null;}[_0x12409a(0x280)](){const _0x5297a5=_0x12409a;super[_0x5297a5(0x280)](),this[_0x5297a5(0x394)][_0x5297a5(0x188)](),this[_0x5297a5(0x394)][_0x5297a5(0x38f)]();}[_0x12409a(0xd3)](){const _0x4c73b8=_0x12409a;var _0x31fa52,_0x561804;this[_0x4c73b8(0x379)](),(_0x31fa52=this['_socket'])==null||_0x31fa52[_0x4c73b8(0x10d)]({'cmd':I[_0x4c73b8(0x10b)],'data':{'roomID':this[_0x4c73b8(0x351)]}}),(_0x561804=this['_socket'])==null||_0x561804[_0x4c73b8(0xd3)](),this['_event$'][_0x4c73b8(0x38f)](),this[_0x4c73b8(0x3f7)][_0x4c73b8(0x38f)](),this['dispose']();}['_onCombEvent'](_0x1e2cb5){const _0x11f51c=_0x12409a;_0x1e2cb5[_0x11f51c(0x307)]===I[_0x11f51c(0x1d7)]?this[_0x11f51c(0x1e5)](_0x1e2cb5):_0x1e2cb5[_0x11f51c(0x307)]===I[_0x11f51c(0x11f)]&&this[_0x11f51c(0x40c)](_0x1e2cb5);}[_0x12409a(0x34a)](_0x381875){const _0x257511=_0x12409a;this[_0x257511(0x3f7)]['next'](0x1),_0x381875['send']({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x12409a(0x1e5)](_0x5dc796){const _0x37e8ad=_0x12409a;var _0x1a5fcb;if(_0x5dc796[_0x37e8ad(0x1a3)]===Vt[_0x37e8ad(0x245)]){this[_0x37e8ad(0x417)][_0x37e8ad(0x3a1)]({'type':_0x3ea716[_0x37e8ad(0x20b)],'content':this[_0x37e8ad(0xd9)]['t'](_0x37e8ad(0x1a1))}),this[_0x37e8ad(0x3f7)][_0x37e8ad(0x188)](0x2);return;}this['_sessionStatus$'][_0x37e8ad(0x188)](0x3);const _0x5e3f91=(_0x1a5fcb=_0x5dc796[_0x37e8ad(0x244)]['roomInfos'][this[_0x37e8ad(0x351)]])==null?void 0x0:_0x1a5fcb[_0x37e8ad(0x393)];_0x5e3f91&&_0x5e3f91[_0x37e8ad(0x20d)](_0x41fbb9=>this[_0x37e8ad(0x3bc)][_0x37e8ad(0x11d)](this[_0x37e8ad(0x351)],_0x41fbb9));}[_0x12409a(0x40c)](_0x240e31){const _0x7e9c06=_0x12409a;try{const _0x2ddbfb=_0x240e31[_0x7e9c06(0x244)];switch(_0x2ddbfb[_0x7e9c06(0x331)]){case _0x1a2ec1[_0x7e9c06(0x42d)]:this['_onUserJoin'](_0x2ddbfb),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1[_0x7e9c06(0x186)]:this['_onUserLeave'](_0x2ddbfb),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1['CHANGESET_ACK']:this[_0x7e9c06(0x41f)](),this['_clearCollaborationTimeoutTimer'](),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1['MSG_FOR_ERROR']:this[_0x7e9c06(0x24e)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x7e9c06(0x322)](_0x2ddbfb)),this['_event$'][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1['COMMENT_UPDATE']:this[_0x7e9c06(0x262)][_0x7e9c06(0x34c)](_0x2ddbfb['data']),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;default:this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);}}catch(_0xb67cef){this[_0x7e9c06(0x24e)][_0x7e9c06(0x2d7)](_0xb67cef,_0x240e31);}}[_0x12409a(0x2cc)](_0x8a61cd){const _0x2c1bf5=_0x12409a;this[_0x2c1bf5(0x3bc)][_0x2c1bf5(0x11d)](this[_0x2c1bf5(0x351)],_0x8a61cd[_0x2c1bf5(0x244)]);}[_0x12409a(0xd5)](_0x10ca5c){const _0x51a130=_0x12409a;this['_memberService'][_0x51a130(0x2b0)](this[_0x51a130(0x351)],_0x10ca5c[_0x51a130(0x244)][_0x51a130(0x2ec)]);}async['send'](_0xe8a00a,_0x380712){const _0x582f25=_0x12409a;if(this[_0x582f25(0x2bc)]!==0x3||!this[_0x582f25(0x389)])throw new Error(_0x582f25(0x2f6));try{_0xe8a00a[_0x582f25(0x331)]===_0x1a2ec1['SUBMIT_CHANGESET']&&(this[_0x582f25(0x415)](),this[_0x582f25(0x368)](_0xe8a00a)),this[_0x582f25(0x389)][_0x582f25(0x10d)]({'cmd':I[_0x582f25(0x2e6)],'routeKey':_0x380712,'routeType':'','data':_0xe8a00a});}catch(_0x2a5934){this[_0x582f25(0x24e)][_0x582f25(0x2d7)](_0x2a5934);}}[_0x12409a(0x415)](){const _0x1b4bca=_0x12409a;var _0x305404;this[_0x1b4bca(0x1a9)]=window[_0x1b4bca(0x156)](()=>{const _0x27c61c=_0x1b4bca;this[_0x27c61c(0x1a9)]=null,this['_messageService'][_0x27c61c(0x3a1)]({'type':_0x3ea716[_0x27c61c(0x34f)],'content':this[_0x27c61c(0xd9)]['t'](_0x27c61c(0x250))});},(_0x305404=this[_0x1b4bca(0x150)][_0x1b4bca(0x312)]($s))!=null?_0x305404:js);}[_0x12409a(0x33c)](){const _0x5ae366=_0x12409a;this[_0x5ae366(0x1a9)]&&(clearTimeout(this[_0x5ae366(0x1a9)]),this[_0x5ae366(0x1a9)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x41b2a5){const _0x261430=_0x12409a;if(!this[_0x261430(0xe5)])return;const {data:_0x36c630}=_0x41b2a5,{unitID:_0x140109,changeset:_0x4efa06}=_0x36c630,{mutations:_0x1f5ffb,type:_0x11341c}=_0x4efa06;this[_0x261430(0x32f)]={'unitId':_0x140109,'type':_0x11341c,'startTime':performance[_0x261430(0x3d0)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x1f5ffb)};}[_0x12409a(0x41f)](){const _0x50029c=_0x12409a;if(this[_0x50029c(0xe5)]){if(!this[_0x50029c(0x32f)]){this[_0x50029c(0x24e)][_0x50029c(0x2d7)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x50029c(0x32f)][_0x50029c(0x23f)]=performance[_0x50029c(0x3d0)](),this[_0x50029c(0x32f)]['duration']=this[_0x50029c(0x32f)][_0x50029c(0x23f)]-this[_0x50029c(0x32f)][_0x50029c(0x41b)],this['_telemetryService'][_0x50029c(0x16f)](Bn,this[_0x50029c(0x32f)]),this[_0x50029c(0x32f)]=null;}}[_0x12409a(0x379)](){this['_telemetryInfo']=null;}};bt=qn([J(0x2,_0x2fef42),J(0x3,_0x186c4b),J(0x4,_0x32ad3e),J(0x5,_0x301e4e),J(0x6,_0x565e28(_0x128cab)),J(0x7,_0x565e28(ce)),J(0x8,_0x565e28(Bs)),J(0x9,_0x1a9909(_0xc705be))],bt);var Jn=Object[_0x12409a(0x1ee)],zn=Object[_0x12409a(0xfe)],Zn=(_0x179d87,_0x243f45,_0x1c3412,_0x5619bf)=>{const _0x210da7=_0x12409a;for(var _0x51dc70=_0x5619bf>0x1?void 0x0:_0x5619bf?zn(_0x243f45,_0x1c3412):_0x243f45,_0x189398=_0x179d87[_0x210da7(0x3b7)]-0x1,_0x1fcd34;_0x189398>=0x0;_0x189398--)(_0x1fcd34=_0x179d87[_0x189398])&&(_0x51dc70=(_0x5619bf?_0x1fcd34(_0x243f45,_0x1c3412,_0x51dc70):_0x1fcd34(_0x51dc70))||_0x51dc70);return _0x5619bf&&_0x51dc70&&Jn(_0x243f45,_0x1c3412,_0x51dc70),_0x51dc70;},fe=(_0xd69e2a,_0x193c19)=>(_0x30470c,_0x4dbc95)=>_0x193c19(_0x30470c,_0x4dbc95,_0xd69e2a);let he=class extends _0x1efbc8{constructor(_0x8070ea,_0x11b6df,_0x9e905b,_0x598e57,_0x3e57b9,_0x48582d){const _0x4f4146=_0x12409a;super(),l(this,_0x4f4146(0x18a),new _0x30f2ca(void 0x0)),l(this,_0x4f4146(0x40a),this['_socket$'][_0x4f4146(0x142)]()),l(this,_0x4f4146(0x161),null),l(this,_0x4f4146(0x17f),new Map()),l(this,_0x4f4146(0x148),new _0x30f2ca(Y[_0x4f4146(0x22a)])),l(this,'status$',this['_status$']['asObservable']()),l(this,_0x4f4146(0x328),!0x1),l(this,_0x4f4146(0x12c)),l(this,_0x4f4146(0x2e4),0x0),l(this,_0x4f4146(0x121)),l(this,_0x4f4146(0x282)),(this[_0x4f4146(0x26a)]=_0x8070ea,this['_localeService']=_0x11b6df,this['_messageService']=_0x9e905b,this['_logService']=_0x598e57,this[_0x4f4146(0x150)]=_0x3e57b9,this[_0x4f4146(0x2fc)]=_0x48582d,this[_0x4f4146(0x29d)]());}get['_socket'](){const _0x58c82b=_0x12409a;return this[_0x58c82b(0x18a)][_0x58c82b(0x3f3)]();}['_initEventListeners'](){const _0x1611b3=_0x12409a;this[_0x1611b3(0x31e)](),this['_listenToOnlineEvent']();}[_0x12409a(0x280)](){const _0x36c3fe=_0x12409a;super['dispose'](),this[_0x36c3fe(0x17f)][_0x36c3fe(0x20d)](_0x1ff8e6=>_0x1ff8e6['dispose']()),this[_0x36c3fe(0x17f)][_0x36c3fe(0x190)](),this[_0x36c3fe(0x148)]['complete']();}async[_0x12409a(0x3be)](_0x5f0be4){const _0x34ceb6=_0x12409a;if(this[_0x34ceb6(0x17f)][_0x34ceb6(0x128)](_0x5f0be4))return this['_sessions'][_0x34ceb6(0x2d5)](_0x5f0be4);this[_0x34ceb6(0x3b6)]();const _0x5079c9=this[_0x34ceb6(0x26a)]['createInstance'](bt,_0x5f0be4,this[_0x34ceb6(0x18a)][_0x34ceb6(0x142)]());return this['_sessions']['set'](_0x5f0be4,_0x5079c9),_0x5079c9;}['closeSession'](_0x1175bb){const _0xcfa604=_0x12409a;var _0x10d222;const _0x5df774=this['_sessions'][_0xcfa604(0x2d5)](_0x1175bb);_0x5df774&&(this[_0xcfa604(0x17f)][_0xcfa604(0xf3)](_0x1175bb),_0x5df774[_0xcfa604(0xd3)]()),this['_sessions']['size']||(_0x10d222=this[_0xcfa604(0x389)])==null||_0x10d222[_0xcfa604(0xd3)]();}[_0x12409a(0x33d)](){const _0x24bc89=_0x12409a;this[_0x24bc89(0x2e4)]=0x0,this[_0x24bc89(0x12c)]!=null&&(clearTimeout(this[_0x24bc89(0x12c)]),this[_0x24bc89(0x12c)]=null),this[_0x24bc89(0x32b)]();}[_0x12409a(0x35e)](){const _0x536d45=_0x12409a;var _0xdd4396,_0x1b8730;const _0x3297fa=this[_0x536d45(0x150)][_0x536d45(0x312)](En),_0x18d8cf=this[_0x536d45(0x150)][_0x536d45(0x312)]($),_0x5baed0=(_0x1b8730=(_0xdd4396=_0x18d8cf==null?void 0x0:_0x18d8cf[_0x536d45(0xf5)])!=null?_0xdd4396:_0x3297fa)!=null?_0x1b8730:Cn,_0x14c952=this[_0x536d45(0x2fc)][_0x536d45(0x167)](_0x5baed0);return this['_candidateSocket']=_0x14c952,_0x14c952;}['_tryEnsureSocket'](){const _0x3d2609=_0x12409a;var _0x3f852a,_0x3c022b;try{const _0x4f5905=(_0x3c022b=(_0x3f852a=this['_socket'])!=null?_0x3f852a:this[_0x3d2609(0x161)])!=null?_0x3c022b:this[_0x3d2609(0x35e)]();if(_0x4f5905){const _0x1635cf=_0x4f5905[_0x3d2609(0x10d)];_0x4f5905[_0x3d2609(0x10d)]=_0x2e6e55=>(this[_0x3d2609(0x2a6)](),_0x1635cf['apply'](_0x4f5905,[_0x2e6e55])),_0x4f5905['message$'][_0x3d2609(0x3c1)](_0x5aee3b=>this['_onMessage'](_0x4f5905,_0x5aee3b)),_0x4f5905[_0x3d2609(0x234)]['pipe'](_0x28aef5(0x1))['subscribe'](_0x4a219b=>this[_0x3d2609(0x24e)][_0x3d2609(0x2d7)](_0x3d2609(0x356),_0x4a219b)),_0x4f5905[_0x3d2609(0x341)][_0x3d2609(0x29f)](_0x28aef5(0x1))[_0x3d2609(0x3c1)](()=>{this['_onConnectionOpen'](_0x4f5905);}),_0x4f5905[_0x3d2609(0x1d8)]['pipe'](_0x28aef5(0x1))[_0x3d2609(0x3c1)](_0x13ff98=>{const _0x3ad979=_0x3d2609;this['_logService']['debug'](_0x3ad979(0x15e),_0x3ad979(0x1a6),_0x13ff98),this[_0x3ad979(0xf9)]();});}}catch(_0x330e91){this['_logService'][_0x3d2609(0x2d7)](_0x330e91),this[_0x3d2609(0xf9)]();}}[_0x12409a(0x3f0)](_0x2155b0){const _0x3dd523=_0x12409a;this['_logService']['debug'](_0x3dd523(0x15e),_0x3dd523(0x11e)),_0x2155b0[_0x3dd523(0x10d)]({'cmd':I[_0x3dd523(0x3ef)]}),this[_0x3dd523(0x2a6)]();}['_listenToOfflineEvent'](){const _0x3df9bf=_0x12409a;window['addEventListener'](_0x3df9bf(0x247),()=>this[_0x3df9bf(0x106)]());}[_0x12409a(0x106)](){const _0x1a8f16=_0x12409a;this['_socketReady']=!0x1,this[_0x1a8f16(0x161)]=null,this[_0x1a8f16(0x148)][_0x1a8f16(0x188)](Y['OFFLINE']),this[_0x1a8f16(0x18a)]['next'](null),this[_0x1a8f16(0x1ce)](),this[_0x1a8f16(0x37b)]();}[_0x12409a(0xf9)](){const _0xf0174e=_0x12409a;var _0x177d12;this[_0xf0174e(0x106)](),this[_0xf0174e(0x2e4)]<((_0x177d12=this[_0xf0174e(0x150)][_0xf0174e(0x312)](On))!=null?_0x177d12:Dn)?(this[_0xf0174e(0x417)][_0xf0174e(0x3a1)]({'key':'collaboration-session-retry','type':_0x3ea716[_0xf0174e(0x20b)],'content':this[_0xf0174e(0xd9)]['t'](_0xf0174e(0x113))}),this[_0xf0174e(0x32b)]()):this[_0xf0174e(0x417)][_0xf0174e(0x3a1)]({'key':_0xf0174e(0x1d9),'type':_0x3ea716[_0xf0174e(0x34f)],'content':this[_0xf0174e(0xd9)]['t']('session.connection-failed')});}[_0x12409a(0x22e)](){const _0x17dcb6=_0x12409a,_0x15b97a=()=>{const _0x148a04=_0x4bc7;this[_0x148a04(0x389)]||this[_0x148a04(0x33d)]();},_0x159381=()=>{const _0x4e48b4=_0x4bc7;this[_0x4e48b4(0x389)]||document[_0x4e48b4(0x2eb)]===_0x4e48b4(0x42a)||this[_0x4e48b4(0x33d)]();};window[_0x17dcb6(0x3c5)](_0x17dcb6(0x21f),_0x15b97a),document[_0x17dcb6(0x3c5)](_0x17dcb6(0xcf),_0x159381);}['_tryReconnect'](){const _0x3d4bd5=_0x12409a;var _0x4d3fcb;const _0x18575b=this[_0x3d4bd5(0x2e4)],_0x986e18=this[_0x3d4bd5(0x150)][_0x3d4bd5(0x312)]($),_0x40b861=_0x18575b===0x0?0x0:((_0x4d3fcb=_0x986e18==null?void 0x0:_0x986e18[_0x3d4bd5(0x3b0)])!=null?_0x4d3fcb:Rn)*0x2**_0x18575b;this[_0x3d4bd5(0x12c)]=window[_0x3d4bd5(0x156)](()=>{const _0xb82025=_0x3d4bd5;clearTimeout(this[_0xb82025(0x12c)]),this[_0xb82025(0x12c)]=null,this[_0xb82025(0x3b6)]();},_0x40b861),this['_retryCount']+=0x1;}[_0x12409a(0x25c)](_0x1e46a3,_0x3e4ad8){const _0x29893b=_0x12409a,{cmd:_0x5d5f23}=_0x3e4ad8;_0x5d5f23===I[_0x29893b(0x3ef)]&&!this[_0x29893b(0x328)]&&(_0x1e46a3[_0x29893b(0x2ec)]=_0x3e4ad8['data']['memberID'],this[_0x29893b(0x18a)]['next'](_0x1e46a3),this[_0x29893b(0x148)][_0x29893b(0x188)](Y[_0x29893b(0xca)]),this[_0x29893b(0x328)]=!0x0,this[_0x29893b(0x161)]=null),_0x5d5f23===I[_0x29893b(0x157)]&&this[_0x29893b(0x1ce)](),this[_0x29893b(0x2a6)]();}[_0x12409a(0x2a6)](){const _0x408749=_0x12409a;var _0x22b21b;this[_0x408749(0x37b)](),this[_0x408749(0x121)]=window[_0x408749(0x156)](()=>this['_sendHeartbeat'](),(_0x22b21b=this[_0x408749(0x150)][_0x408749(0x312)](bn))!=null?_0x22b21b:Tn);}['_sendHeartbeat'](){const _0x29b6f8=_0x12409a;this[_0x29b6f8(0x389)][_0x29b6f8(0x10d)]({'cmd':I[_0x29b6f8(0x157)]}),this['_waitForHeartbeatResponse']();}[_0x12409a(0x1c2)](){const _0xf022b0=_0x12409a;var _0x7d1b74;this[_0xf022b0(0x282)]=window[_0xf022b0(0x156)](()=>this[_0xf022b0(0xf9)](),(_0x7d1b74=this[_0xf022b0(0x150)][_0xf022b0(0x312)]($s))!=null?_0x7d1b74:js);}[_0x12409a(0x37b)](){const _0x3f5f90=_0x12409a;this[_0x3f5f90(0x121)]!=null&&(clearTimeout(this[_0x3f5f90(0x121)]),this[_0x3f5f90(0x121)]=null);}[_0x12409a(0x1ce)](){const _0x11fe93=_0x12409a;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x11fe93(0x282)]),this[_0x11fe93(0x282)]=null);}};he=Zn([fe(0x0,_0x565e28(_0x3f178c)),fe(0x1,_0x565e28(_0x128cab)),fe(0x2,_0x32ad3e),fe(0x3,_0x2fef42),fe(0x4,_0x301e4e),fe(0x5,ks)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T['push']((ct+0x100)[_0x12409a(0x226)](0x10)['slice'](0x1));function Qn(_0x8241f3,_0x52a184=0x0){const _0x4e240f=_0x12409a;return(T[_0x8241f3[_0x52a184+0x0]]+T[_0x8241f3[_0x52a184+0x1]]+T[_0x8241f3[_0x52a184+0x2]]+T[_0x8241f3[_0x52a184+0x3]]+'-'+T[_0x8241f3[_0x52a184+0x4]]+T[_0x8241f3[_0x52a184+0x5]]+'-'+T[_0x8241f3[_0x52a184+0x6]]+T[_0x8241f3[_0x52a184+0x7]]+'-'+T[_0x8241f3[_0x52a184+0x8]]+T[_0x8241f3[_0x52a184+0x9]]+'-'+T[_0x8241f3[_0x52a184+0xa]]+T[_0x8241f3[_0x52a184+0xb]]+T[_0x8241f3[_0x52a184+0xc]]+T[_0x8241f3[_0x52a184+0xd]]+T[_0x8241f3[_0x52a184+0xe]]+T[_0x8241f3[_0x52a184+0xf]])[_0x4e240f(0xd4)]();}var He,er=new Uint8Array(0x10);function tr(){const _0x55dfa7=_0x12409a;if(!He&&(He=typeof crypto<'u'&&crypto[_0x55dfa7(0x35a)]&&crypto[_0x55dfa7(0x35a)]['bind'](crypto),!He))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return He(er);}var sr=typeof crypto<'u'&&crypto[_0x12409a(0x3f4)]&&crypto[_0x12409a(0x3f4)][_0x12409a(0x214)](crypto);const cs={'randomUUID':sr};function ir(_0x36928e,_0x4acf01,_0x123210){const _0x481f93=_0x12409a;if(cs['randomUUID']&&!_0x4acf01&&!_0x36928e)return cs[_0x481f93(0x3f4)]();_0x36928e=_0x36928e||{};var _0x3598fd=_0x36928e[_0x481f93(0x424)]||(_0x36928e[_0x481f93(0x39d)]||tr)();return _0x3598fd[0x6]=_0x3598fd[0x6]&0xf|0x40,_0x3598fd[0x8]=_0x3598fd[0x8]&0x3f|0x80,Qn(_0x3598fd);}var nr=Object['defineProperty'],rr=Object[_0x12409a(0xfe)],or=(_0xcd6540,_0x2b271b,_0x327225,_0x45c4a4)=>{const _0x5a46e3=_0x12409a;for(var _0x33ee2d=_0x45c4a4>0x1?void 0x0:_0x45c4a4?rr(_0x2b271b,_0x327225):_0x2b271b,_0x4d1d2c=_0xcd6540[_0x5a46e3(0x3b7)]-0x1,_0x1c5ada;_0x4d1d2c>=0x0;_0x4d1d2c--)(_0x1c5ada=_0xcd6540[_0x4d1d2c])&&(_0x33ee2d=(_0x45c4a4?_0x1c5ada(_0x2b271b,_0x327225,_0x33ee2d):_0x1c5ada(_0x33ee2d))||_0x33ee2d);return _0x45c4a4&&_0x33ee2d&&nr(_0x2b271b,_0x327225,_0x33ee2d),_0x33ee2d;},ht=(_0x2143a5,_0x52fc77)=>(_0x5cff36,_0x462bc0)=>_0x52fc77(_0x5cff36,_0x462bc0,_0x2143a5);let Ye=class{constructor(_0x1355cc,_0xc1197c,_0x38e555){const _0x305fcc=_0x12409a;this['_injector']=_0x1355cc,this[_0x305fcc(0x3e7)]=_0xc1197c,this[_0x305fcc(0x209)]=_0x38e555;}['transformIMECache'](_0x1c32b0){const _0x418d8f=_0x12409a;this[_0x418d8f(0x330)](_0x1c32b0),this[_0x418d8f(0x2cd)](_0x1c32b0);}[_0x12409a(0x2a3)](_0x47a649){const _0x570610=_0x12409a,{unitID:_0x50d21f}=_0x47a649,_0x57ee95=this[_0x570610(0x209)][_0x570610(0x23d)](_0x50d21f)[_0x570610(0x34e)](_0x5566fa),{redoCache:_0x555856}=_0x57ee95['getUndoRedoMutationParamsCache']();if(_0x555856[_0x570610(0x3b7)]===0x0)return _0x47a649;let _0x354006=_0x5bdceb[_0x570610(0x2b1)](_0x47a649[_0x570610(0x1b8)][0x0]);for(let _0x391bff=0x0;_0x391bff<_0x555856[_0x570610(0x3b7)];_0x391bff++){const _0x19ecb1={'id':_0x570610(0x3af),'params':{..._0x555856[_0x391bff]}},_0x1df710=this[_0x570610(0x3e7)][_0x570610(0x124)](_0x354006,_0x19ecb1,!0x1);if(_0x1711e0(_0x1df710))throw _0x1df710[_0x570610(0x2d7)];_0x354006=_0x1df710[_0x570610(0x29c)];}return{..._0x5bdceb[_0x570610(0x2b1)](_0x47a649),'mutations':[_0x354006]};}[_0x12409a(0x330)](_0x546423){const _0xad7598=_0x12409a,{unitID:_0x4ba778}=_0x546423,_0x4fdca8=this['_renderManagerService'][_0xad7598(0x23d)](_0x4ba778)['with'](_0x5566fa),{undoCache:_0x5a7ec4,redoCache:_0x4b39ad}=_0x4fdca8[_0xad7598(0x2da)]();if(_0x5a7ec4['length']===0x0||_0x4b39ad['length']===0x0)return;const _0xd90e8c=[],_0x2103ec=[];let _0x209c63=_0x5bdceb[_0xad7598(0x2b1)](_0x546423[_0xad7598(0x1b8)][0x0]),_0x467ec0=_0x5bdceb['deepClone'](_0x546423[_0xad7598(0x1b8)][0x0]);for(let _0x152b23=_0x5a7ec4[_0xad7598(0x3b7)]-0x1;_0x152b23>=0x0;_0x152b23--){const _0x59bd3c={'id':_0xad7598(0x3af),'params':{..._0x5a7ec4[_0x152b23]}},_0x3968b6={'id':_0xad7598(0x3af),'params':{..._0x4b39ad[_0x152b23]}},_0x345267=this[_0xad7598(0x3e7)][_0xad7598(0x124)](_0x209c63,_0x59bd3c,!0x1),_0x132023=this[_0xad7598(0x3e7)][_0xad7598(0x124)](_0x467ec0,_0x3968b6,!0x1);if(_0x1711e0(_0x345267))throw _0x345267[_0xad7598(0x2d7)];if(_0x1711e0(_0x132023))throw _0x132023[_0xad7598(0x2d7)];_0xd90e8c[_0xad7598(0x293)](_0x345267[_0xad7598(0x346)][_0xad7598(0x319)]),_0x2103ec[_0xad7598(0x293)](_0x132023[_0xad7598(0x346)][_0xad7598(0x319)]),_0x209c63=_0x345267[_0xad7598(0x29c)],_0x467ec0=_0x132023[_0xad7598(0x29c)];}_0x4fdca8['setUndoRedoMutationParamsCache']({'undoCache':_0xd90e8c,'redoCache':_0x2103ec});}[_0x12409a(0x2cd)](_0x55426a){const _0x1e9a9c=_0x12409a,{unitID:_0x51735d}=_0x55426a,_0x44ff8f=this[_0x1e9a9c(0x209)]['getRenderById'](_0x51735d)[_0x1e9a9c(0x34e)](_0x5566fa),_0x15a842=_0x44ff8f[_0x1e9a9c(0xb1)]();if(_0x15a842==null)return;const _0x376a75=[{'id':_0x1e9a9c(0x3af),'params':{'unitId':_0x55426a[_0x1e9a9c(0x2fd)],'actions':null,'textRanges':[_0x15a842]}}],_0x330226=this[_0x1e9a9c(0x3e7)][_0x1e9a9c(0x146)](_0x55426a,_0x376a75);if(!_0x568457(_0x330226))throw _0x330226[_0x1e9a9c(0x2d7)];const _0x2ab9e2=_0x330226[_0x1e9a9c(0x346)][0x0][_0x1e9a9c(0x319)][_0x1e9a9c(0x3a8)];Array['isArray'](_0x2ab9e2)&&_0x2ab9e2[_0x1e9a9c(0x3b7)]&&_0x44ff8f[_0x1e9a9c(0x2aa)](_0x2ab9e2[0x0]);}};Ye=or([ht(0x0,_0x565e28(_0x3f178c)),ht(0x1,_0x5dfa67),ht(0x2,_0x3872a8)],Ye);var ar=Object[_0x12409a(0x1ee)],cr=Object[_0x12409a(0xfe)],hr=(_0x40b014,_0xdb3c56,_0x55ac01,_0x3de424)=>{for(var _0x444e4b=_0x3de424>0x1?void 0x0:_0x3de424?cr(_0xdb3c56,_0x55ac01):_0xdb3c56,_0x1ba4ce=_0x40b014['length']-0x1,_0x4afe98;_0x1ba4ce>=0x0;_0x1ba4ce--)(_0x4afe98=_0x40b014[_0x1ba4ce])&&(_0x444e4b=(_0x3de424?_0x4afe98(_0xdb3c56,_0x55ac01,_0x444e4b):_0x4afe98(_0x444e4b))||_0x444e4b);return _0x3de424&&_0x444e4b&&ar(_0xdb3c56,_0x55ac01,_0x444e4b),_0x444e4b;},De=(_0x492a8d,_0x50e4df)=>(_0x4539e6,_0x1d0f54)=>_0x50e4df(_0x4539e6,_0x1d0f54,_0x492a8d);let w=class extends _0x1efbc8{constructor(_0x29102f,_0x515c4f,_0x169e40,_0x140644,_0x53f258){const _0x4a4dff=_0x12409a;super(),l(this,_0x4a4dff(0xec),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x4a4dff(0x395),!0x1),(this[_0x4a4dff(0x150)]=_0x29102f,this[_0x4a4dff(0x2f3)]=_0x515c4f,this[_0x4a4dff(0x26d)]=_0x169e40,this['_localeService']=_0x140644,this[_0x4a4dff(0x1fa)]=_0x53f258,this[_0x4a4dff(0x1ad)]());}['disableLocalCache'](){const _0x30a0b5=_0x12409a;this[_0x30a0b5(0x395)]=!0x0;}[_0x12409a(0x35c)](){this['_disabled']=!0x1;}['dispose'](){const _0x24a9b8=_0x12409a;this[_0x24a9b8(0x215)]()[_0x24a9b8(0x403)](()=>super['dispose']());}async[_0x12409a(0x1f0)](_0x2061df){const _0x5a90b7=_0x12409a;return this[_0x5a90b7(0x395)]?null:this['_localStorageService']['getItem'](hs(_0x2061df));}async[_0x12409a(0x16a)](_0x48c1c4,_0x336f0a){const _0x2fd5c7=_0x12409a;return!!this[_0x2fd5c7(0x2f3)][_0x2fd5c7(0x335)](_0x48c1c4,_0x336f0a);}[_0x12409a(0x158)](_0x545914,_0x1ca11b,_0x308ead,_0x414055){const _0x57f6c8=_0x12409a,_0x46befd=this[_0x57f6c8(0x1fa)][_0x57f6c8(0x419)](_0x545914);this['_cachedData'][_0x57f6c8(0x28a)](_0x545914,{'unitID':_0x545914,'type':_0x1ca11b,'awaitingChangeset':_0x308ead,'mutations':_0x414055,'rev':_0x46befd}),this['_saveTaskMap'][_0x57f6c8(0x128)](_0x545914)||this[_0x57f6c8(0x239)](_0x545914);}[_0x12409a(0x239)](_0x5581e6){const _0x5e5cfc=_0x12409a,_0x27b554=this[_0x5e5cfc(0x3e1)]();_0x27b554===0x0?this[_0x5e5cfc(0x251)](_0x5581e6):this[_0x5e5cfc(0x204)][_0x5e5cfc(0x28a)](_0x5581e6,setTimeout(()=>this[_0x5e5cfc(0x251)](_0x5581e6),_0x27b554));}['_getSaveTimeout'](){const _0x6eef2f=_0x12409a;var _0x3c3bfb;return(_0x3c3bfb=this[_0x6eef2f(0x150)]['getConfig'](wn))!=null?_0x3c3bfb:Pn;}[_0x12409a(0x251)](_0x465b33){const _0x370659=_0x12409a,_0x3984b2=this[_0x370659(0x204)][_0x370659(0x2d5)](_0x465b33);return _0x3984b2!==void 0x0&&window[_0x370659(0x1ff)](_0x3984b2),this[_0x370659(0x2f3)][_0x370659(0x335)](hs(_0x465b33),this[_0x370659(0xec)][_0x370659(0x2d5)](_0x465b33))[_0x370659(0x403)](()=>this[_0x370659(0x204)][_0x370659(0xf3)](_0x465b33));}async[_0x12409a(0x215)](){const _0x28d718=_0x12409a,_0xc6b276=[];this['_saveTaskMap'][_0x28d718(0x20d)]((_0x3be738,_0xabfa67)=>{const _0x483282=_0x28d718;window[_0x483282(0x1ff)](_0x3be738),_0xc6b276['push'](this[_0x483282(0x251)](_0xabfa67)[_0x483282(0x403)](()=>{const _0x5df67b=_0x483282;this['_saveTaskMap'][_0x5df67b(0xf3)](_0xabfa67);}));}),await Promise[_0x28d718(0x3de)](_0xc6b276);}[_0x12409a(0x1ad)](){const _0x30c28e=_0x12409a;this[_0x30c28e(0x2f2)](this[_0x30c28e(0x26d)][_0x30c28e(0xaf)](()=>{const _0x2125e7=_0x30c28e;if(this[_0x2125e7(0x204)][_0x2125e7(0x1b5)])return this['_localeService']['t'](_0x2125e7(0xd7));}));}};w=hr([De(0x0,_0x301e4e),De(0x1,_0x57776d),De(0x2,_0x186c4b),De(0x3,_0x565e28(_0x128cab)),De(0x4,_0x565e28(_0x4b7ded))],w);function hs(_0x565b69){const _0x2c4909=_0x12409a;return _0x2c4909(0x40d)+_0x565b69;}var lr=Object[_0x12409a(0x1ee)],_r=Object['getOwnPropertyDescriptor'],ur=(_0x59f88c,_0x4f5b77,_0x437cfc,_0x4e86a2)=>{const _0x5b4478=_0x12409a;for(var _0x4608aa=_0x4e86a2>0x1?void 0x0:_0x4e86a2?_r(_0x4f5b77,_0x437cfc):_0x4f5b77,_0x85f5ac=_0x59f88c[_0x5b4478(0x3b7)]-0x1,_0x49de88;_0x85f5ac>=0x0;_0x85f5ac--)(_0x49de88=_0x59f88c[_0x85f5ac])&&(_0x4608aa=(_0x4e86a2?_0x49de88(_0x4f5b77,_0x437cfc,_0x4608aa):_0x49de88(_0x4608aa))||_0x4608aa);return _0x4e86a2&&_0x4608aa&&lr(_0x4f5b77,_0x437cfc,_0x4608aa),_0x4608aa;},lt=(_0x417fc0,_0x1e9b9e)=>(_0x8ae5bd,_0x4e6d2f)=>_0x1e9b9e(_0x8ae5bd,_0x4e6d2f,_0x417fc0);function dr(_0x29110a){const _0x3cecde=_0x12409a,{unitID:_0x4c6395,mutations:_0x2ce688}=_0x29110a;return{'unitId':_0x4c6395,'subUnitId':_0x2ce688[0x0][_0x3cecde(0x319)][_0x3cecde(0x1b9)]};}let Ke=class{constructor(_0x3e1a6f,_0x553367,_0x3c8acf){const _0x276c41=_0x12409a;this['_injector']=_0x3e1a6f,this[_0x276c41(0x3e7)]=_0x553367,this[_0x276c41(0x10a)]=_0x3c8acf;}['transformSelections'](_0xea835e){const _0x1070b5=_0x12409a;var _0x487fdf,_0x2bd6d6,_0x1b323b,_0x3019a7;const _0x207e54=this[_0x1070b5(0x26a)][_0x1070b5(0x2d5)](_0x158fb6),{unitId:_0x595596,subUnitId:_0x51e615}=dr(_0xea835e),_0x386953=_0x207e54[_0x1070b5(0x3ca)](_0x595596)[_0x1070b5(0xd6)](),_0x5b1032=(_0x2bd6d6=(_0x487fdf=this[_0x1070b5(0x10a)][_0x1070b5(0x3e3)](_0x595596))==null?void 0x0:_0x487fdf[_0x1070b5(0x140)]())==null?void 0x0:_0x2bd6d6['getSheetId']();if(_0x386953[_0x1070b5(0x3b7)]===0x0||!_0x595596||!_0x51e615)return;const _0x1f5fd3=[{'id':_0x1c4355['id'],'params':{'unitId':_0x595596,'subUnitId':_0x5b1032,'selections':_0x5bdceb[_0x1070b5(0x2b1)](_0x386953)}}],_0x39c34c=this[_0x1070b5(0x3e7)][_0x1070b5(0x146)](_0xea835e,_0x1f5fd3);if(!_0x568457(_0x39c34c))throw _0x39c34c['error'];const _0x11e10a=(_0x3019a7=(_0x1b323b=_0x39c34c['m2Prime'][0x0])==null?void 0x0:_0x1b323b[_0x1070b5(0x319)])==null?void 0x0:_0x3019a7[_0x1070b5(0x1fb)];if(Array[_0x1070b5(0x36f)](_0x11e10a)&&_0x11e10a[_0x1070b5(0x3b7)]){if(_0x11e10a[_0x1070b5(0x3b7)]===_0x1f5fd3[0x0][_0x1070b5(0x319)][_0x1070b5(0x1fb)][_0x1070b5(0x3b7)]&&_0x11e10a['every']((_0x2817c5,_0x51da4a)=>_0x3b6a0d[_0x1070b5(0x31f)](_0x2817c5[_0x1070b5(0x3b2)],_0x1f5fd3[0x0][_0x1070b5(0x319)]['selections'][_0x51da4a][_0x1070b5(0x3b2)])))return;this[_0x1070b5(0x26a)]['get'](_0x2af4cf)[_0x1070b5(0x155)](_0x1c4355['id'],{'unitId':_0x595596,'subUnitId':_0x5b1032,'selections':_0x11e10a});}}};Ke=ur([lt(0x0,_0x565e28(_0x3f178c)),lt(0x1,_0x5dfa67),lt(0x2,_0x114f27)],Ke);const tt=_0x2fc4d3(_0x12409a(0x3d6));var Vs=(_0x3b4be4=>(_0x3b4be4[_0x3b4be4['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x12409a(0x366),_0x3b4be4[_0x3b4be4[_0x12409a(0x273)]=0x1]='OTHER_CLIENTS_EDITING',_0x3b4be4))(Vs||{});const ls=0x7530,_s=_0x12409a(0xe3);class fr extends _0x1efbc8{constructor(){const _0x5d90f0=_0x12409a;super(),l(this,'_id',_0x5bdceb['generateRandomId']()),l(this,_0x5d90f0(0x1f4),new Set()),l(this,_0x5d90f0(0x374),new Map()),l(this,_0x5d90f0(0x2f1),null),l(this,_0x5d90f0(0x2ff),new Map()),l(this,'_unitStatus',new Map()),this[_0x5d90f0(0x2c3)]();}['dispose'](){const _0x2d9e49=_0x12409a;super['dispose'](),this[_0x2d9e49(0x2ff)][_0x2d9e49(0x20d)]((_0x2fc857,_0x1e9ef5)=>this[_0x2d9e49(0x268)](_0x1e9ef5)),this[_0x2d9e49(0x2f1)]&&window[_0x2d9e49(0x14f)](this[_0x2d9e49(0x2f1)]);}[_0x12409a(0x258)](_0x2d45fc){const _0x1de25f=_0x12409a;return this[_0x1de25f(0x423)](_0x2d45fc)[_0x1de25f(0x29f)](_0x1f7048());}[_0x12409a(0x127)](_0x565b21){const _0x602f1c=_0x12409a;this[_0x602f1c(0x1f4)]['size']===0x0&&this[_0x602f1c(0x2d3)](),this['_selfUnitIDs']['add'](_0x565b21),this[_0x602f1c(0x134)]({'type':0x0,'memberID':this[_0x602f1c(0x2ae)],'unitIDs':[_0x565b21],'isForwarded':!0x1});}[_0x12409a(0xc9)](_0x40326e){const _0x300ed1=_0x12409a;this[_0x300ed1(0x1f4)][_0x300ed1(0xf3)](_0x40326e),this[_0x300ed1(0x1f4)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x300ed1(0x14f)](this[_0x300ed1(0x2f1)]);}['_init'](){const _0x1d5c31=_0x12409a;this[_0x1d5c31(0x2f2)](_0x5ef5c0(_0x983b61(window,_0x1d5c31(0x385))[_0x1d5c31(0x3c1)](_0x39d16e=>{const _0x2e1bc7=_0x1d5c31;if(_0x39d16e['key']!==_s||!_0x39d16e[_0x2e1bc7(0xe1)])return;const _0x10bb2e=JSON['parse'](_0x39d16e[_0x2e1bc7(0xe1)]);this[_0x2e1bc7(0x2f0)](_0x10bb2e);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1d5c31(0x1f4)])}));}[_0x12409a(0x2f0)](_0x447b77){const _0x4620f4=_0x12409a;switch(_0x447b77[_0x4620f4(0x198)]){case 0x0:this['_handleJoinEvent'](_0x447b77);break;case 0x1:this[_0x4620f4(0x37d)](_0x447b77);break;case 0x2:this[_0x4620f4(0x2e1)](_0x447b77);break;}}[_0x12409a(0x3ed)](_0x421972){const _0x34fca7=_0x12409a,{unitIDs:_0x13da11,memberID:_0x1eef41,isForwarded:_0x253b83}=_0x421972;_0x13da11[_0x34fca7(0x20d)](_0x139864=>{const _0x310ff2=_0x34fca7;if(!_0x253b83&&this[_0x310ff2(0x374)][_0x310ff2(0x128)](_0x139864)&&this[_0x310ff2(0x423)](_0x139864)['next'](0x1),!this[_0x310ff2(0x374)][_0x310ff2(0x128)](_0x139864)||!this['_unitOnClients'][_0x310ff2(0x2d5)](_0x139864)[_0x310ff2(0x128)](_0x1eef41)){const _0x2f19a8=this[_0x310ff2(0x374)][_0x310ff2(0x2d5)](_0x139864)||new Set();_0x2f19a8[_0x310ff2(0x22d)](_0x1eef41),this['_unitOnClients']['set'](_0x139864,_0x2f19a8),this['_scheduleClearOtherTimer'](_0x1eef41);}}),_0x253b83||this[_0x34fca7(0x134)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x12409a(0x176)](_0x7066d){const _0x13ae27=_0x12409a;this[_0x13ae27(0x268)](_0x7066d);const _0x21ebeb=window[_0x13ae27(0x156)](()=>{const _0x10f9d1=_0x13ae27;this[_0x10f9d1(0x374)][_0x10f9d1(0x20d)](_0x542352=>{const _0x39fa72=_0x10f9d1;_0x542352[_0x39fa72(0xf3)](_0x7066d);});},ls*0x2);this[_0x13ae27(0x2ff)][_0x13ae27(0x28a)](_0x7066d,_0x21ebeb);}[_0x12409a(0x268)](_0x49be88){const _0x4ed14a=_0x12409a;if(this[_0x4ed14a(0x2ff)][_0x4ed14a(0x128)](_0x49be88)){const _0x3faf18=this[_0x4ed14a(0x2ff)]['get'](_0x49be88);_0x3faf18&&window[_0x4ed14a(0x1ff)](_0x3faf18),this[_0x4ed14a(0x2ff)][_0x4ed14a(0x28a)](_0x49be88,null);}}[_0x12409a(0x37d)](_0x2680b8){const _0x24d1a6=_0x12409a,{memberID:_0x549764,unitIDs:_0x3bf7f2}=_0x2680b8;_0x3bf7f2[_0x24d1a6(0x20d)](_0x1efeec=>{const _0x1b952a=_0x24d1a6;var _0x33e156;const _0x2f36f4=this[_0x1b952a(0x374)][_0x1b952a(0x2d5)](_0x1efeec);_0x2f36f4&&(_0x2f36f4['delete'](_0x549764),(_0x33e156=this[_0x1b952a(0x423)](_0x1efeec))==null||_0x33e156[_0x1b952a(0x188)](_0x2f36f4[_0x1b952a(0x1b5)]===0x0?0x0:0x1));}),this[_0x24d1a6(0x268)](_0x549764);}[_0x12409a(0x2e1)](_0x345d15){const _0x47778b=_0x12409a;this['_scheduleClearOtherTimer'](_0x345d15[_0x47778b(0x2ec)]);}[_0x12409a(0x134)](_0x3440dc){const _0x1fb992=_0x12409a;localStorage[_0x1fb992(0x335)](_s,JSON[_0x1fb992(0x322)](_0x3440dc));}['_scheduleHeartbeat'](){const _0x486e96=_0x12409a;this[_0x486e96(0x2f1)]=window[_0x486e96(0x332)](()=>{const _0x48ac17=_0x486e96;this[_0x48ac17(0x134)]({'type':0x2,'memberID':this['_id']});},ls);}['_ensureSubject'](_0x2f3e1d){const _0x2227da=_0x12409a;return this[_0x2227da(0x2d1)]['has'](_0x2f3e1d)||this[_0x2227da(0x2d1)][_0x2227da(0x28a)](_0x2f3e1d,new _0x30f2ca(0x0)),this['_unitStatus'][_0x2227da(0x2d5)](_0x2f3e1d);}}function Fs(_0x47d08f){let _0x53c945='';for(const _0x5122c2 of _0x47d08f){const {startOffset:_0x5a29b3,endOffset:_0x3c44de,isActive:_0x1dffea}=_0x5122c2;_0x53c945['length']&&(_0x53c945+=','),_0x53c945+=_0x5a29b3+':'+_0x3c44de+':'+(_0x1dffea?'1':'0');}return _0x53c945;}function mr(_0x463a9f){const _0x1ec83a=_0x12409a,_0x258f39=_0x463a9f[_0x1ec83a(0xe9)](','),_0x31e401=[];for(const _0x333bfb of _0x258f39){const [_0x424533,_0x205236,_0x53832f]=_0x333bfb[_0x1ec83a(0xe9)](':');_0x31e401[_0x1ec83a(0x325)]({'startOffset':Number(_0x424533),'endOffset':Number(_0x205236),'collapsed':_0x424533===_0x205236,'isActive':_0x53832f==='1'});}return _0x31e401[_0x1ec83a(0x3c3)](_0x18a858=>_0x18a858[_0x1ec83a(0x36a)])||(_0x31e401[0x0][_0x1ec83a(0x36a)]=!0x0),_0x31e401;}class Ft extends _0x5d8701{constructor(){const _0x159ae2=_0x12409a;super(...arguments),l(this,_0x159ae2(0x219),new _0x30f2ca(null)),l(this,_0x159ae2(0xf4),this[_0x159ae2(0x219)]['asObservable']());}[_0x12409a(0x145)](_0x4a8edd){const _0xe9bca0=_0x12409a,{unitID:_0x511a6e,memberID:_0x45397a,textRanges:_0x3b361d}=_0x4a8edd,_0x15a90b=Fs(_0x3b361d),_0x2f652b={'unitID':_0x511a6e,'memberID':_0x45397a,'selection':_0x15a90b};this[_0xe9bca0(0x219)][_0xe9bca0(0x188)](_0x2f652b);}}var gr=Object[_0x12409a(0x1ee)],Sr=Object[_0x12409a(0xfe)],pr=(_0x135186,_0x5034e6,_0x1c71be,_0x3a9382)=>{const _0x30b2bb=_0x12409a;for(var _0x492cbe=_0x3a9382>0x1?void 0x0:_0x3a9382?Sr(_0x5034e6,_0x1c71be):_0x5034e6,_0x409b6e=_0x135186[_0x30b2bb(0x3b7)]-0x1,_0xe533ec;_0x409b6e>=0x0;_0x409b6e--)(_0xe533ec=_0x135186[_0x409b6e])&&(_0x492cbe=(_0x3a9382?_0xe533ec(_0x5034e6,_0x1c71be,_0x492cbe):_0xe533ec(_0x492cbe))||_0x492cbe);return _0x3a9382&&_0x492cbe&&gr(_0x5034e6,_0x1c71be,_0x492cbe),_0x492cbe;},us=(_0x56d2da,_0x535459)=>(_0x1a3680,_0x981543)=>_0x535459(_0x1a3680,_0x981543,_0x56d2da);let Xe=class{constructor(_0x17f698,_0x27edb0){const _0x36ddfa=_0x12409a;this[_0x36ddfa(0x26a)]=_0x17f698,this['_transformService']=_0x27edb0;}[_0x12409a(0x272)](_0x58cda5){const _0x52602b=_0x12409a;var _0x45c240;const _0x434cfe=this[_0x52602b(0x26a)][_0x52602b(0x2d5)](_0x2452e8),_0x221896=(_0x45c240=_0x434cfe['getDocRanges']())!=null?_0x45c240:[];if(_0x221896['length']===0x0)return;const _0xfac7d7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58cda5['unitID'],'actions':null,'textRanges':_0x221896}}],_0x2a0cd0=this['_transformService']['transformMutationsWithChangeset'](_0x58cda5,_0xfac7d7);if(!_0x568457(_0x2a0cd0))throw _0x2a0cd0[_0x52602b(0x2d7)];const _0x12895d=_0x2a0cd0[_0x52602b(0x346)][0x0][_0x52602b(0x319)][_0x52602b(0x3a8)];Array['isArray'](_0x12895d)&&_0x12895d[_0x52602b(0x3b7)]&&_0x434cfe[_0x52602b(0x3fe)](_0x12895d,!0x1);}};Xe=pr([us(0x0,_0x565e28(_0x3f178c)),us(0x1,_0x5dfa67)],Xe);const vr=new Set([_0x565345['id']]);function ds(_0x39dee9,_0x4d0f18,_0x49de20,_0x508ea2,_0x5300a8){const _0x4aca88=_0x12409a;var _0x87eef2,_0x4f9e35,_0x592a61,_0x37c85c;const _0x2ff190=[];for(const _0x28255b of _0x39dee9)if(vr[_0x4aca88(0x128)](_0x28255b['id'])){if(_0x2ff190[_0x4aca88(0x3b7)]>0x0)break;_0x2ff190[_0x4aca88(0x325)](_0x28255b);break;}else _0x2ff190[_0x4aca88(0x325)](_0x28255b);const _0x52dbf5=(_0x4f9e35=(_0x87eef2=_0x5300a8[_0x4aca88(0x2a2)]())==null?void 0x0:_0x87eef2[_0x4aca88(0x359)])!=null?_0x4f9e35:'unknown',_0x148228=(_0x37c85c=(_0x592a61=_0x5300a8['getCurrentUser']())==null?void 0x0:_0x592a61['memberID'])!=null?_0x37c85c:'unknown';return{'changeset':{'unitID':_0x4d0f18,'type':_0x22736c(_0x49de20[_0x4aca88(0x1ea)](_0x4d0f18)),'baseRev':_0x508ea2[_0x4aca88(0x419)](_0x4d0f18),'revision':0x0,'userID':_0x52dbf5,'memberID':_0x148228,'mutations':_0x2ff190},'pendingMutations':_0x39dee9[_0x4aca88(0x3e6)](_0x2ff190['length'])};}function Ir(_0x32da2d,_0x430432,_0x15d84d,_0x4fa6e6,_0x22089e){const _0x2236ef=_0x12409a;var _0x402bc6,_0x262cbe,_0x587b27,_0x3c2b58;const _0x9e25e6=[_0x32da2d[_0x2236ef(0xb0)]((_0x41fb15,_0x25c581)=>{const _0x53bda8=_0x2236ef;var _0x41d726;const {id:_0x53cbbf}=_0x41fb15,{id:_0x102108,type:_0x32b7be}=_0x25c581,_0x3f1e93=(_0x41d726=_0x41fb15[_0x53bda8(0x319)])!=null?_0x41d726:{'actions':null},_0x3f2155=_0x25c581['params'];if(_0x53cbbf&&_0x53cbbf!==_0x102108)throw new Error(_0x53bda8(0x16d)+_0x53cbbf+'\x20-\x20'+_0x102108+'.');return{..._0x41fb15,'id':_0x102108,'type':_0x32b7be,'params':{'unitId':_0x3f2155[_0x53bda8(0x42e)],'textRanges':_0x3f2155['textRanges'],'actions':_0x5294e6[_0x53bda8(0x1ed)](_0x3f1e93['actions'],_0x3f2155['actions'])}};},{})],_0x4402b7=(_0x262cbe=(_0x402bc6=_0x22089e[_0x2236ef(0x2a2)]())==null?void 0x0:_0x402bc6[_0x2236ef(0x359)])!=null?_0x262cbe:_0x2236ef(0x165),_0x23782a=(_0x3c2b58=(_0x587b27=_0x22089e[_0x2236ef(0x2a2)]())==null?void 0x0:_0x587b27[_0x2236ef(0x2ec)])!=null?_0x3c2b58:_0x2236ef(0x165);return{'changeset':{'unitID':_0x430432,'type':_0x22736c(_0x15d84d[_0x2236ef(0x1ea)](_0x430432)),'baseRev':_0x4fa6e6[_0x2236ef(0x419)](_0x430432),'revision':0x0,'userID':_0x4402b7,'memberID':_0x23782a,'mutations':_0x9e25e6},'pendingMutations':[]};}const Er={'id':_0x8b0674['id'],'type':_0x1070ad[_0x12409a(0x376)],'params':{}};var Cr=Object[_0x12409a(0x1ee)],br=Object[_0x12409a(0xfe)],_e=(_0x55a085,_0x1da659,_0x4e4b11,_0x270390)=>{for(var _0x17a997=_0x270390>0x1?void 0x0:_0x270390?br(_0x1da659,_0x4e4b11):_0x1da659,_0x2a9a0c=_0x55a085['length']-0x1,_0x590cea;_0x2a9a0c>=0x0;_0x2a9a0c--)(_0x590cea=_0x55a085[_0x2a9a0c])&&(_0x17a997=(_0x270390?_0x590cea(_0x1da659,_0x4e4b11,_0x17a997):_0x590cea(_0x17a997))||_0x17a997);return _0x270390&&_0x17a997&&Cr(_0x1da659,_0x4e4b11,_0x17a997),_0x17a997;},m=(_0x1bcfac,_0x5cf25f)=>(_0x252408,_0x5c2b74)=>_0x5cf25f(_0x252408,_0x5c2b74,_0x1bcfac),P=(_0x2a7831=>(_0x2a7831['NOT_COLLAB']=_0x12409a(0x2ee),_0x2a7831[_0x12409a(0x42b)]=_0x12409a(0x1f7),_0x2a7831[_0x12409a(0x12f)]=_0x12409a(0x3a0),_0x2a7831[_0x12409a(0x3d8)]=_0x12409a(0x37c),_0x2a7831[_0x12409a(0x3aa)]=_0x12409a(0xe7),_0x2a7831[_0x12409a(0x3a4)]='fetch_missing',_0x2a7831[_0x12409a(0x197)]=_0x12409a(0x240),_0x2a7831[_0x12409a(0x108)]='offline',_0x2a7831))(P||{});class ue{constructor(_0x29526c,_0x403e1e,_0x335772,_0x401129,_0x3bc90b,_0x2d7e59,_0x3c2c8a,_0x1b11c1,_0x3e7045){const _0x271eaf=_0x12409a;l(this,_0x271eaf(0xcc),null),l(this,_0x271eaf(0x29a),[]),(this['unitID']=_0x29526c,this[_0x271eaf(0x198)]=_0x403e1e,this[_0x271eaf(0x257)]=_0x3bc90b,this['_commandService']=_0x2d7e59,this[_0x271eaf(0x33a)]=_0x3c2c8a,this[_0x271eaf(0x1fa)]=_0x1b11c1,this[_0x271eaf(0x2f8)]=_0x3e7045,this[_0x271eaf(0xcc)]=_0x335772,this[_0x271eaf(0x29a)]=_0x401129);}[_0x12409a(0x412)](_0x5e301b){const _0x2a0e17=_0x12409a,_0x4ba8fe=this[_0x2a0e17(0x1fa)][_0x2a0e17(0x419)](this[_0x2a0e17(0x2fd)]);return _0x5e301b[_0x2a0e17(0x168)]>_0x4ba8fe+0x1?(this[_0x2a0e17(0x257)][_0x2a0e17(0x398)]({'from':_0x4ba8fe,'to':_0x5e301b[_0x2a0e17(0x168)]-0x1}),!0x0):!0x1;}[_0x12409a(0x3bd)](_0x2ad3b3){const _0x30236f=_0x12409a;this[_0x30236f(0x33a)]['transformUndoRedo'](this[_0x30236f(0x2fd)],_0x2ad3b3);}[_0x12409a(0x1f9)](_0xb6d296){const _0xfc8903=_0x12409a;var _0x226bad,_0x3b9031;(_0x3b9031=(_0x226bad=this['_handler'])[_0xfc8903(0x311)])==null||_0x3b9031['call'](_0x226bad,_0xb6d296);}['_transformIMECache'](_0x59db69){const _0x3effce=_0x12409a;var _0x590eaa,_0x4b75e8;return(_0x4b75e8=(_0x590eaa=this[_0x3effce(0x257)])[_0x3effce(0x352)])==null?void 0x0:_0x4b75e8[_0x3effce(0x1da)](_0x590eaa,_0x59db69);}['_transformRemoteChangesetByIMECache'](_0x85154f){const _0x24ec2e=_0x12409a;var _0x1878fc,_0x451292,_0x4c7ae5;return(_0x4c7ae5=(_0x451292=(_0x1878fc=this[_0x24ec2e(0x257)])[_0x24ec2e(0x396)])==null?void 0x0:_0x451292[_0x24ec2e(0x1da)](_0x1878fc,_0x85154f))!=null?_0x4c7ae5:_0x85154f;}[_0x12409a(0x212)](_0xe644c){const _0x4562a4=_0x12409a;var _0x239d6c,_0x1fbfbd;if(this[_0x4562a4(0x198)]===k[_0x4562a4(0x15b)]){const {unitID:_0x552e5d,mutations:_0x42164b,memberID:_0x282c0f}=_0xe644c,_0x40d806=_0x42164b[0x0][_0x4562a4(0x319)][_0x4562a4(0x3a8)];Array['isArray'](_0x40d806)&&_0x40d806['length']>0x0&&((_0x1fbfbd=(_0x239d6c=this[_0x4562a4(0x257)])[_0x4562a4(0xb9)])==null||_0x1fbfbd[_0x4562a4(0x1da)](_0x239d6c,{'unitID':_0x552e5d,'memberID':_0x282c0f,'textRanges':_0x40d806}));}}[_0x12409a(0x349)](){const _0x18572a=_0x12409a;this[_0x18572a(0x2f8)][_0x18572a(0x158)](this[_0x18572a(0x2fd)],this['type'],this['_awaitingChangeset'],this[_0x18572a(0x29a)]);}['_getCurrentRevision'](){const _0x57b41a=_0x12409a;return this[_0x57b41a(0x1fa)][_0x57b41a(0x419)](this[_0x57b41a(0x2fd)]);}['_incrementRevisionNumber'](){const _0x3c7750=_0x12409a;this[_0x3c7750(0x1fa)][_0x3c7750(0x2b5)](this[_0x3c7750(0x2fd)]);}[_0x12409a(0x428)](_0x396ec1){const _0x1794cd=_0x12409a;var _0x406ed0;const _0x311331=this[_0x1794cd(0x329)](_0x396ec1),_0x2d4965=_0x12c615(_0x311331[_0x1794cd(0x1b8)],this['_commandService'],{'fromCollab':!0x0});if(!_0x2d4965['result'])throw _0x2d4965['error']instanceof Error?_0x2d4965[_0x1794cd(0x2d7)]:new Error((_0x406ed0=_0x2d4965['error'])!=null?_0x406ed0:_0x1794cd(0xdb));this[_0x1794cd(0x409)](_0x311331),this[_0x1794cd(0x3bd)](_0x396ec1),this[_0x1794cd(0x1f9)](_0x311331),this['_syncEditingCollabCursor'](_0x311331),this[_0x1794cd(0x25d)]();}}let pe=class extends ue{constructor(_0x357c7a,_0x1c1cd0,_0x4e168a,_0x4b0a65,_0x56b37f,_0x485f1f,_0x36c930,_0xdd198c,_0x1f492a,_0x7858f){const _0x2cfa12=_0x12409a;super(_0x357c7a,_0x1c1cd0,null,[],_0x4e168a,_0xdd198c,_0x36c930,_0x4b0a65,_0x56b37f),l(this,_0x2cfa12(0x39e),'synced'),(this['_injector']=_0x485f1f,this['_logService']=_0x1f492a,this[_0x2cfa12(0x3e7)]=_0x7858f);}[_0x12409a(0x30a)](_0xd86ad4){const _0x215377=_0x12409a,_0x4c0ad4=this[_0x215377(0x26a)]['createInstance'](X,this[_0x215377(0x2fd)],this['type'],[_0xd86ad4],this[_0x215377(0x257)]);return _0x4c0ad4[_0x215377(0x1ae)](),_0x4c0ad4[_0x215377(0x349)](),_0x4c0ad4;}[_0x12409a(0xfa)](_0x250c9b){const _0x479bf3=_0x12409a;if(this[_0x479bf3(0x412)](_0x250c9b))return this[_0x479bf3(0x26a)][_0x479bf3(0x32e)](B,this[_0x479bf3(0x2fd)],this['type'],null,[],null,[_0x250c9b],this[_0x479bf3(0x257)]);try{const _0x5b7daa=this[_0x479bf3(0x3e7)][_0x479bf3(0x146)](_0x250c9b,[Er]);if(_0x568457(_0x5b7daa)){const {c1Prime:_0x2cec56}=_0x5b7daa;return this[_0x479bf3(0x428)](_0x2cec56),this;}throw _0x5b7daa[_0x479bf3(0x2d7)];}catch(_0x51fa2f){return this[_0x479bf3(0x24e)][_0x479bf3(0x2d7)](_0x51fa2f),this[_0x479bf3(0x308)](!0x1);}}[_0x12409a(0x308)](_0x57944c){const _0x1ef8b1=_0x12409a;return this[_0x1ef8b1(0x26a)][_0x1ef8b1(0x32e)](ee,this[_0x1ef8b1(0x2fd)],this[_0x1ef8b1(0x198)],null,[],this[_0x1ef8b1(0x257)],_0x57944c);}[_0x12409a(0x367)](){const _0x297cbb=_0x12409a;throw new Error(_0x297cbb(0x2f9));}[_0x12409a(0x35b)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x12409a(0x217)](){const _0x429e6c=_0x12409a;return this[_0x429e6c(0x26a)][_0x429e6c(0x32e)](te,this[_0x429e6c(0x2fd)],this['type'],null,[],this[_0x429e6c(0x257)]);}['toggleOnline'](){return this;}[_0x12409a(0x20c)](){const _0x9df48b=_0x12409a;throw new Error(_0x9df48b(0x402));}[_0x12409a(0x284)](){const _0x14be9b=_0x12409a,_0x3126c6=this[_0x14be9b(0x1fa)][_0x14be9b(0x419)](this[_0x14be9b(0x2fd)]);return this[_0x14be9b(0x257)][_0x14be9b(0x398)]({'from':_0x3126c6,'to':0x0}),this['_injector'][_0x14be9b(0x32e)](B,this['unitID'],this['type'],null,[],null,[],this[_0x14be9b(0x257)]);}};pe=_e([m(0x3,_0x565e28(_0x4b7ded)),m(0x4,_0x565e28(w)),m(0x5,_0x565e28(_0x3f178c)),m(0x6,_0x26c70e),m(0x7,_0x2af4cf),m(0x8,_0x2fef42),m(0x9,_0x5dfa67)],pe);let X=class extends ue{constructor(_0x5abf62,_0x3dd3cd,_0x2daba3,_0x4320d0,_0x228dd5,_0x10391a,_0x13934d,_0x15ace4,_0x56cf66,_0x2487bb,_0x2ef0fa,_0x54aeed,_0x563e13,_0x5789a0){const _0x43ba70=_0x12409a;super(_0x5abf62,_0x3dd3cd,null,_0x2daba3,_0x4320d0,_0x2487bb,_0x5789a0,_0x10391a,_0x13934d),l(this,'status',_0x43ba70(0x3a0)),l(this,_0x43ba70(0xdf),null),l(this,'_sendingTimer',null),(this[_0x43ba70(0x26a)]=_0x228dd5,this[_0x43ba70(0x3bc)]=_0x15ace4,this[_0x43ba70(0x24e)]=_0x56cf66,this[_0x43ba70(0x150)]=_0x2ef0fa,this[_0x43ba70(0x3e7)]=_0x54aeed,this[_0x43ba70(0x392)]=_0x563e13);}[_0x12409a(0x30a)](_0x1596b7){const _0xfa36f7=_0x12409a;return this['_pendingMutations'][_0xfa36f7(0x325)](_0x1596b7),this[_0xfa36f7(0x349)](),this;}[_0x12409a(0xfa)](_0x330a2c){const _0x118c90=_0x12409a;if(this[_0x118c90(0x412)](_0x330a2c))return this['_clearScheduledTask'](),this['_injector'][_0x118c90(0x32e)](B,this['unitID'],this['type'],null,this[_0x118c90(0x29a)],null,[_0x330a2c],this[_0x118c90(0x257)]);try{const _0x5a304f=this[_0x118c90(0x3e7)][_0x118c90(0x146)](_0x330a2c,this[_0x118c90(0x29a)]);if(_0x568457(_0x5a304f)){const {c1Prime:_0x169c44,m2Prime:_0x5c5052}=_0x5a304f;this[_0x118c90(0x428)](_0x169c44);const _0x45d9f6=this[_0x118c90(0x26a)]['createInstance'](X,this[_0x118c90(0x2fd)],this['type'],_0x5c5052,this[_0x118c90(0x257)]);return this[_0x118c90(0x1f1)](),_0x45d9f6[_0x118c90(0x1ae)](this['_scheduleTimestamp']?Math[_0x118c90(0x360)](0x0,new Date()[_0x118c90(0x2b9)]()-this[_0x118c90(0xdf)]):this[_0x118c90(0xf2)]()),_0x45d9f6;}throw _0x5a304f[_0x118c90(0x2d7)];}catch(_0x2001bc){return this[_0x118c90(0x24e)][_0x118c90(0x2d7)](_0x2001bc),this[_0x118c90(0x308)](!0x1);}}[_0x12409a(0x367)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x5b5527=_0x12409a;throw new Error(_0x5b5527(0x18b));}[_0x12409a(0x217)](){const _0xb041=_0x12409a;return this[_0xb041(0x1f1)](),this['_injector']['createInstance'](te,this[_0xb041(0x2fd)],this['type'],null,this[_0xb041(0x29a)],this[_0xb041(0x257)]);}[_0x12409a(0x1d6)](){return this;}[_0x12409a(0x1ae)](_0x2802d2){const _0x226372=_0x12409a,_0x523fc4=_0x2802d2!=null?_0x2802d2:this[_0x226372(0xf2)]();this[_0x226372(0xdf)]=new Date()[_0x226372(0x2b9)](),this[_0x226372(0x3cc)]=window[_0x226372(0x156)](()=>{const _0x2bb673=_0x226372;this[_0x2bb673(0x1f1)]();let _0x2024c1=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x2024c1=ds(this[_0x2bb673(0x29a)],this[_0x2bb673(0x2fd)],this[_0x2bb673(0x392)],this[_0x2bb673(0x1fa)],this[_0x2bb673(0x3bc)]);break;}case k[_0x2bb673(0x15b)]:{this[_0x2bb673(0x29a)][_0x2bb673(0x26c)](_0x3c44f1=>_0x3c44f1['id']===_0x5e8bc0['id'])?_0x2024c1=Ir(this[_0x2bb673(0x29a)],this['unitID'],this[_0x2bb673(0x392)],this[_0x2bb673(0x1fa)],this[_0x2bb673(0x3bc)]):_0x2024c1=ds(this[_0x2bb673(0x29a)],this[_0x2bb673(0x2fd)],this[_0x2bb673(0x392)],this['_revisionService'],this[_0x2bb673(0x3bc)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2bb673(0x198)]+_0x2bb673(0x39f));}const {changeset:_0x2af32f,pendingMutations:_0x2fcb9c}=_0x2024c1;this[_0x2bb673(0x257)]['onSendChangeset'](_0x2af32f);const _0x5a39f9=_0x2fcb9c['length']?this[_0x2bb673(0x26a)][_0x2bb673(0x32e)](q,this['unitID'],this[_0x2bb673(0x198)],_0x2af32f,_0x2fcb9c,this['_handler']):this[_0x2bb673(0x26a)][_0x2bb673(0x32e)](Q,this[_0x2bb673(0x2fd)],this[_0x2bb673(0x198)],_0x2af32f,this[_0x2bb673(0x257)]);_0x5a39f9[_0x2bb673(0x349)](),this[_0x2bb673(0x257)]['onStateChange'](this,_0x5a39f9);},_0x523fc4);}[_0x12409a(0xf2)](){const _0x2e6f54=_0x12409a;var _0x20cbe6;const _0x4dc07c=this[_0x2e6f54(0x150)][_0x2e6f54(0x312)]($);return(_0x20cbe6=_0x4dc07c==null?void 0x0:_0x4dc07c[_0x2e6f54(0x38d)])!=null?_0x20cbe6:In;}[_0x12409a(0x20c)](){const _0x56fa3f=_0x12409a;throw new Error(_0x56fa3f(0x1b7));}['_clearScheduledTask'](){const _0x5bad72=_0x12409a;this[_0x5bad72(0x3cc)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x5bad72(0x3cc)]=null);}[_0x12409a(0x308)](_0x5a2734){const _0x4f3f79=_0x12409a;return this[_0x4f3f79(0x1f1)](),this[_0x4f3f79(0x26a)][_0x4f3f79(0x32e)](ee,this[_0x4f3f79(0x2fd)],this[_0x4f3f79(0x198)],null,this[_0x4f3f79(0x29a)],this['_handler'],_0x5a2734);}};X=_e([m(0x4,_0x565e28(_0x3f178c)),m(0x5,_0x565e28(_0x4b7ded)),m(0x6,_0x565e28(w)),m(0x7,_0x565e28(ce)),m(0x8,_0x2fef42),m(0x9,_0x2af4cf),m(0xa,_0x301e4e),m(0xb,_0x5dfa67),m(0xc,_0x114f27),m(0xd,_0x26c70e)],X);let Q=class extends ue{constructor(_0x81398e,_0x3d4f27,_0x187c03,_0x4c06d0,_0x5f3691,_0x4867f3,_0x4c5c43,_0x2e4b33,_0x593d37,_0xbaa060,_0x41cfcd){const _0x13453e=_0x12409a;super(_0x81398e,_0x3d4f27,_0x187c03,[],_0x4c06d0,_0x2e4b33,_0x41cfcd,_0x4867f3,_0x4c5c43),l(this,_0x13453e(0x39e),_0x13453e(0x37c)),(this['_injector']=_0x5f3691,this[_0x13453e(0x24e)]=_0x593d37,this[_0x13453e(0x3e7)]=_0xbaa060);}['appendMutation'](_0x4ce1d0){const _0x4a8a8d=_0x12409a,_0xd33889=this[_0x4a8a8d(0x26a)][_0x4a8a8d(0x32e)](q,this[_0x4a8a8d(0x2fd)],this[_0x4a8a8d(0x198)],this[_0x4a8a8d(0xcc)],[_0x4ce1d0],this[_0x4a8a8d(0x257)]);return _0xd33889[_0x4a8a8d(0x349)](),_0xd33889;}[_0x12409a(0xfa)](_0x60fc16){const _0x426669=_0x12409a;if(this[_0x426669(0x412)](_0x60fc16))return this[_0x426669(0x26a)][_0x426669(0x32e)](B,this[_0x426669(0x2fd)],this[_0x426669(0x198)],this[_0x426669(0xcc)],[],null,[_0x60fc16],this[_0x426669(0x257)]);try{const _0x23ba16=this[_0x426669(0x3e7)][_0x426669(0xc3)]([_0x60fc16],[this[_0x426669(0xcc)]],!0x1);if(_0x35b7ff(_0x23ba16)){const {c1Prime:_0x1dca2,c2Prime:_0x3d88b0}=_0x23ba16;this[_0x426669(0x428)](_0x1dca2[0x0]),_0x3d88b0[0x0][_0x426669(0x1e3)]=this[_0x426669(0x163)]();const _0x1c2480=this[_0x426669(0x26a)][_0x426669(0x32e)](Q,this['unitID'],this[_0x426669(0x198)],_0x3d88b0[0x0],this['_handler']);return _0x1c2480[_0x426669(0x349)](),_0x1c2480;}return this[_0x426669(0x308)](!0x1);}catch(_0x3a9786){return this[_0x426669(0x24e)]['error'](_0x3a9786),this[_0x426669(0x308)](!0x1);}}['onRemoteAck'](_0x529227){const _0x4cc694=_0x12409a,_0x16367d=this[_0x4cc694(0x1fa)]['getCurrentRevOfUnit'](this[_0x4cc694(0x2fd)]);if(_0x529227[_0x4cc694(0x168)]<_0x16367d-0x1)return this;if(this[_0x4cc694(0x412)](_0x529227))return this[_0x4cc694(0x26a)][_0x4cc694(0x32e)](B,this[_0x4cc694(0x2fd)],this['type'],null,[],this[_0x4cc694(0xcc)],[],this[_0x4cc694(0x257)]);this['_incrementRevisionNumber']();const _0x387eeb=this[_0x4cc694(0x26a)][_0x4cc694(0x32e)](pe,this[_0x4cc694(0x2fd)],this[_0x4cc694(0x198)],this['_handler']);return _0x387eeb[_0x4cc694(0x349)](),_0x387eeb;}[_0x12409a(0x35b)](_0x44554b){const _0x4238dc=_0x12409a;return this[_0x4238dc(0x308)](!!(_0x44554b!=null&&_0x44554b[_0x4238dc(0x256)]));}['toggleOffline'](){const _0x2ae07f=_0x12409a;return this[_0x2ae07f(0x26a)][_0x2ae07f(0x32e)](te,this['unitID'],this[_0x2ae07f(0x198)],this[_0x2ae07f(0xcc)],[],this[_0x2ae07f(0x257)]);}['toggleOnline'](){return this;}[_0x12409a(0x20c)](){const _0x4166cf=_0x12409a;this[_0x4166cf(0x257)][_0x4166cf(0x383)](this[_0x4166cf(0xcc)]);}[_0x12409a(0x308)](_0x5f4934){const _0x2b5489=_0x12409a;return this['_injector'][_0x2b5489(0x32e)](ee,this[_0x2b5489(0x2fd)],this['type'],this[_0x2b5489(0xcc)],[],this[_0x2b5489(0x257)],_0x5f4934);}};Q=_e([m(0x4,_0x565e28(_0x3f178c)),m(0x5,_0x565e28(_0x4b7ded)),m(0x6,_0x565e28(w)),m(0x7,_0x2af4cf),m(0x8,_0x2fef42),m(0x9,_0x5dfa67),m(0xa,_0x26c70e)],Q);let q=class extends ue{constructor(_0x15367b,_0xec6c13,_0x40c2b4,_0x3bed95,_0x149d20,_0x451a9a,_0x2552d8,_0x4f9bdb,_0x39e92e,_0x4193ef,_0xb87d64,_0x2b9282){const _0x53fa3c=_0x12409a;super(_0x15367b,_0xec6c13,_0x40c2b4,_0x3bed95,_0x149d20,_0x39e92e,_0x2b9282,_0x2552d8,_0x4f9bdb),l(this,_0x53fa3c(0x39e),'awaiting_with_pending'),(this['_injector']=_0x451a9a,this[_0x53fa3c(0x24e)]=_0x4193ef,this[_0x53fa3c(0x3e7)]=_0xb87d64);}[_0x12409a(0x30a)](_0x2f1acd){const _0x335a8b=_0x12409a;return this['_pendingMutations'][_0x335a8b(0x325)](_0x2f1acd),this;}['onRemoteChangeset'](_0x72ea72){const _0x2a4c1d=_0x12409a;if(this[_0x2a4c1d(0x412)](_0x72ea72))return this['_injector'][_0x2a4c1d(0x32e)](B,this['unitID'],this[_0x2a4c1d(0x198)],this[_0x2a4c1d(0xcc)],this[_0x2a4c1d(0x29a)],null,[_0x72ea72],this[_0x2a4c1d(0x257)]);try{const _0x3c6a40=this[_0x2a4c1d(0x3e7)]['transformChangesets']([_0x72ea72],[this[_0x2a4c1d(0xcc)]],!0x1);if(_0x35b7ff(_0x3c6a40)){const {c1Prime:_0x3da17f,c2Prime:_0x4ffbb3}=_0x3c6a40,_0x3cdc56=this['_transformService'][_0x2a4c1d(0x146)](_0x3da17f[0x0],this['_pendingMutations']);if(_0x568457(_0x3cdc56)){const {c1Prime:_0x50c100,m2Prime:_0x3e1d03}=_0x3cdc56;return this[_0x2a4c1d(0x428)](_0x50c100),_0x4ffbb3[0x0][_0x2a4c1d(0x1e3)]=this[_0x2a4c1d(0x163)](),this[_0x2a4c1d(0x26a)]['createInstance'](q,this[_0x2a4c1d(0x2fd)],this['type'],_0x4ffbb3[0x0],_0x3e1d03,this[_0x2a4c1d(0x257)]);}throw _0x3cdc56[_0x2a4c1d(0x2d7)];}throw _0x3c6a40[_0x2a4c1d(0x2d7)];}catch(_0x1cf9fd){return this[_0x2a4c1d(0x24e)]['error'](_0x1cf9fd),this[_0x2a4c1d(0x308)](!0x1);}}['onRemoteAck'](_0x36f691){const _0x19d32d=_0x12409a;if(this[_0x19d32d(0x412)](_0x36f691))return this[_0x19d32d(0x26a)]['createInstance'](B,this[_0x19d32d(0x2fd)],this[_0x19d32d(0x198)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x19d32d(0x257)]);this[_0x19d32d(0x25d)]();const _0x105f48=this['_injector'][_0x19d32d(0x32e)](X,this[_0x19d32d(0x2fd)],this[_0x19d32d(0x198)],this[_0x19d32d(0x29a)],this['_handler']);return _0x105f48[_0x19d32d(0x1ae)](),_0x105f48[_0x19d32d(0x349)](),_0x105f48;}[_0x12409a(0x35b)](_0x3019b3){const _0x1da783=_0x12409a;return this[_0x1da783(0x308)](!!(_0x3019b3!=null&&_0x3019b3[_0x1da783(0x256)]));}['toggleOffline'](){const _0x59014a=_0x12409a;return this[_0x59014a(0x26a)][_0x59014a(0x32e)](te,this[_0x59014a(0x2fd)],this[_0x59014a(0x198)],this[_0x59014a(0xcc)],this[_0x59014a(0x29a)],this['_handler']);}[_0x12409a(0x1d6)](){return this;}[_0x12409a(0x20c)](){const _0x5478fb=_0x12409a;this['_handler'][_0x5478fb(0x383)](this['_awaitingChangeset']);}[_0x12409a(0x308)](_0x5251a1){const _0x3bfca5=_0x12409a;return this[_0x3bfca5(0x26a)][_0x3bfca5(0x32e)](ee,this['unitID'],this[_0x3bfca5(0x198)],null,this['_pendingMutations'],this[_0x3bfca5(0x257)],_0x5251a1);}};q=_e([m(0x5,_0x565e28(_0x3f178c)),m(0x6,_0x565e28(_0x4b7ded)),m(0x7,_0x565e28(w)),m(0x8,_0x2af4cf),m(0x9,_0x2fef42),m(0xa,_0x5dfa67),m(0xb,_0x26c70e)],q);let ee=class extends ue{constructor(_0x5ef5f7,_0x2deaeb,_0x4829a1,_0x5a6c20,_0x2b44b5,_0x34b6bc=!0x1,_0x1d6091,_0x32beeb,_0x1167ea,_0x4e5917,_0x549f1d,_0x3d5ef8,_0x3b67a8){const _0x3dbf47=_0x12409a;super(_0x5ef5f7,_0x2deaeb,_0x4829a1,_0x5a6c20,_0x2b44b5,_0x32beeb,_0x1167ea,_0x549f1d,_0x4e5917),l(this,_0x3dbf47(0x39e),_0x3dbf47(0x240)),(this['_isPermissionRej']=_0x34b6bc,this[_0x3dbf47(0x16b)]=_0x1d6091,this[_0x3dbf47(0xd9)]=_0x3d5ef8,this[_0x3dbf47(0x38c)]=_0x3b67a8,this[_0x3dbf47(0x407)](),this[_0x3dbf47(0x3fc)](),this[_0x3dbf47(0x2bb)]());}[_0x12409a(0x30a)](){return this;}[_0x12409a(0xfa)](){return this;}[_0x12409a(0x367)](){return this;}[_0x12409a(0x35b)](){return this;}[_0x12409a(0x217)](){return this;}['toggleOnline'](){return this;}[_0x12409a(0x20c)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x12409a(0x3fc)](){const _0x3c8d56=_0x12409a;this[_0x3c8d56(0x2f8)][_0x3c8d56(0x158)](this[_0x3c8d56(0x2fd)],this[_0x3c8d56(0x198)],null,[]);}[_0x12409a(0x407)](){const _0x242a7f=_0x12409a;this[_0x242a7f(0xde)]?this[_0x242a7f(0x38c)][_0x242a7f(0x3a1)]({'title':this[_0x242a7f(0xd9)]['t']('permission.title'),'content':this[_0x242a7f(0xd9)]['t']('permission.content'),'type':_0x242a7f(0x2d7),'duration':0x0}):this['_notificationService'][_0x242a7f(0x3a1)]({'title':this[_0x242a7f(0xd9)]['t'](_0x242a7f(0x35d)),'content':this[_0x242a7f(0xd9)]['t'](_0x242a7f(0xbd)),'type':'error','duration':0x0});}[_0x12409a(0x2bb)](){const _0x45de7d=_0x12409a;this[_0x45de7d(0x16b)][_0x45de7d(0x333)](new _0x19d13a(this[_0x45de7d(0x2fd)])['id'],!0x1);}};ee=_e([m(0x6,_0x565e28(_0x4594fa)),m(0x7,_0x2af4cf),m(0x8,_0x26c70e),m(0x9,_0x565e28(w)),m(0xa,_0x565e28(_0x4b7ded)),m(0xb,_0x565e28(_0x128cab)),m(0xc,_0x2ba0b5)],ee);let te=class extends ue{constructor(_0x537457,_0x531e45,_0xc9f97a,_0x53d4bc,_0x7a2e1f,_0x4bdeb5,_0x23e901,_0x1477af,_0x5a267a,_0x5aa1cc){const _0x477087=_0x12409a;super(_0x537457,_0x531e45,_0xc9f97a,_0x53d4bc,_0x7a2e1f,_0x5a267a,_0x5aa1cc,_0x23e901,_0x1477af),l(this,'status','offline'),this[_0x477087(0x26a)]=_0x4bdeb5;}[_0x12409a(0x30a)](_0x5cfcb3){const _0xc29445=_0x12409a;return this[_0xc29445(0x29a)][_0xc29445(0x325)](_0x5cfcb3),this[_0xc29445(0x349)](),this;}[_0x12409a(0xfa)](_0x4ad61a){const _0x38b705=_0x12409a;throw new Error(_0x38b705(0x1c8));}[_0x12409a(0x367)](){const _0x405b02=_0x12409a;throw new Error(_0x405b02(0x3a6));}[_0x12409a(0x35b)](){const _0x4438dd=_0x12409a;throw new Error(_0x4438dd(0x15a));}['toggleOffline'](){return this;}[_0x12409a(0x1d6)](){const _0x5cef13=_0x12409a,{_injector:_0x4e3b27,_pendingMutations:_0x583641,_awaitingChangeset:_0xdcb5bf,unitID:_0x341f17,_handler:_0xdf1d82,type:_0x1ebd55}=this,_0x274baa=Ws(_0x4e3b27,_0x341f17,_0x1ebd55,_0xdcb5bf,_0x583641,_0xdf1d82);return _0x274baa instanceof X?_0x274baa[_0x5cef13(0x1ae)]():(_0x274baa instanceof q||_0x274baa instanceof Q)&&_0x274baa[_0x5cef13(0x20c)](),_0x274baa;}[_0x12409a(0x20c)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};te=_e([m(0x5,_0x565e28(_0x3f178c)),m(0x6,_0x565e28(_0x4b7ded)),m(0x7,_0x565e28(w)),m(0x8,_0x2af4cf),m(0x9,_0x26c70e)],te);let B=class extends ue{constructor(_0x332dea,_0x5c55dc,_0x49941d,_0x2c55da,_0x4be9f1,_0x4f8274,_0x478e70,_0x12ca34,_0x21ab3b,_0x10d811,_0x42cd7d,_0x2221e8,_0x58fd32,_0x39bdf6){const _0x1b01ce=_0x12409a;super(_0x332dea,_0x5c55dc,_0x49941d,_0x2c55da,_0x478e70,_0x2221e8,_0x58fd32,_0x21ab3b,_0x10d811),l(this,_0x1b01ce(0x39e),'fetch_missing'),(this[_0x1b01ce(0x2ef)]=_0x4be9f1,this['_queuedRemoteChangesets']=_0x4f8274,this[_0x1b01ce(0x26a)]=_0x12ca34,this[_0x1b01ce(0x24e)]=_0x42cd7d,this[_0x1b01ce(0x3e7)]=_0x39bdf6);}[_0x12409a(0x3c4)](_0x56261c){const _0x4055e1=_0x12409a;try{const _0x1ea24a=[..._0x56261c,...this[_0x4055e1(0x3ec)]],_0x4be013=[this['_awaitingChangeset']||this[_0x4055e1(0x2ef)]][_0x4055e1(0x101)](_0x163d1e=>!!_0x163d1e);let _0x53ca0f,_0x305aba;if(_0x4be013['length']){const _0x5ab4a9=this[_0x4055e1(0x3e7)][_0x4055e1(0xc3)](_0x1ea24a,_0x4be013,!0x1);if(!_0x35b7ff(_0x5ab4a9))throw _0x5ab4a9[_0x4055e1(0x2d7)];_0x53ca0f=_0x5ab4a9['c1Prime'],_0x305aba=_0x5ab4a9[_0x4055e1(0x2a0)];}else _0x53ca0f=_0x1ea24a,_0x305aba=[];let _0x370eee=this[_0x4055e1(0x29a)];_0x53ca0f[_0x4055e1(0x20d)](_0x47a02f=>{const _0x586ce0=_0x4055e1;let _0x26e097;if(_0x370eee[_0x586ce0(0x3b7)]){const _0x12b910=this[_0x586ce0(0x3e7)][_0x586ce0(0x146)](_0x47a02f,_0x370eee);if(!_0x568457(_0x12b910))throw _0x12b910[_0x586ce0(0x2d7)];_0x26e097=_0x12b910[_0x586ce0(0x1a4)],_0x370eee=_0x12b910[_0x586ce0(0x346)];}else _0x26e097=_0x47a02f;this['_executeRemoteChangeset'](_0x26e097);}),this[_0x4055e1(0x2ef)]&&this[_0x4055e1(0x25d)](),this[_0x4055e1(0xcc)]&&_0x305aba['length']&&(_0x305aba[0x0][_0x4055e1(0x1e3)]=this[_0x4055e1(0x163)]());let _0x368f6b;if(this['_awaitingChangeset']&&_0x370eee['length']!==0x0)_0x368f6b=this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](q,this[_0x4055e1(0x2fd)],this['type'],_0x305aba[0x0],_0x370eee,this[_0x4055e1(0x257)]);else{if(this['_awaitingChangeset']&&_0x370eee[_0x4055e1(0x3b7)]===0x0)_0x305aba[0x0]['baseRev']=this['_getCurrentRevision'](),_0x368f6b=this[_0x4055e1(0x26a)]['createInstance'](Q,this[_0x4055e1(0x2fd)],this['type'],_0x305aba[0x0],this[_0x4055e1(0x257)]);else{if(_0x370eee[_0x4055e1(0x3b7)]!==0x0){const _0x1e0600=this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](X,this['unitID'],this['type'],_0x370eee,this['_handler']);_0x1e0600['_schedule'](),_0x368f6b=_0x1e0600;}else _0x368f6b=this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](pe,this[_0x4055e1(0x2fd)],this['type'],this[_0x4055e1(0x257)]);}}return _0x368f6b[_0x4055e1(0x349)](),_0x368f6b;}catch(_0x30838a){return this[_0x4055e1(0x24e)][_0x4055e1(0x2d7)](_0x4055e1(0x1e9),_0x4055e1(0x147),_0x30838a),this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](ee,this[_0x4055e1(0x2fd)],this[_0x4055e1(0x198)],this[_0x4055e1(0xcc)],this[_0x4055e1(0x29a)],this[_0x4055e1(0x257)],!0x1);}}[_0x12409a(0x20c)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x12409a(0x30a)](_0x5b97be){const _0x6e9464=_0x12409a;return this['_pendingMutations'][_0x6e9464(0x325)](_0x5b97be),this;}[_0x12409a(0xfa)](_0x296ac9){const _0x513e4d=_0x12409a;return this[_0x513e4d(0x3ec)][_0x513e4d(0x325)](_0x296ac9),this;}[_0x12409a(0x367)](_0x2b9950){const _0x121a7e=_0x12409a;if(this[_0x121a7e(0xcc)])return this[_0x121a7e(0x2ef)]=this[_0x121a7e(0xcc)],this[_0x121a7e(0xcc)]=null,this;throw new Error(_0x121a7e(0x277));}[_0x12409a(0x35b)](_0x473866){const _0x548aab=_0x12409a;return this[_0x548aab(0x308)](!!(_0x473866!=null&&_0x473866[_0x548aab(0x256)]));}[_0x12409a(0x217)](){const _0x1b5046=_0x12409a;return this['_injector'][_0x1b5046(0x32e)](te,this[_0x1b5046(0x2fd)],this[_0x1b5046(0x198)],this[_0x1b5046(0xcc)],this[_0x1b5046(0x29a)],this['_handler']);}[_0x12409a(0x1d6)](){return this;}[_0x12409a(0x308)](_0x214331){const _0x2761f3=_0x12409a;return this[_0x2761f3(0x26a)][_0x2761f3(0x32e)](ee,this[_0x2761f3(0x2fd)],this[_0x2761f3(0x198)],this[_0x2761f3(0xcc)],this['_pendingMutations'],this[_0x2761f3(0x257)],_0x214331);}};B=_e([m(0x7,_0x565e28(_0x3f178c)),m(0x8,_0x565e28(_0x4b7ded)),m(0x9,_0x565e28(w)),m(0xa,_0x2fef42),m(0xb,_0x2af4cf),m(0xc,_0x26c70e),m(0xd,_0x5dfa67)],B);function Ws(_0xfb24e6,_0x27a713,_0x1839d5,_0x3d719a,_0x2d52dd,_0x300aeb){const _0x50435e=_0x12409a;return _0x3d719a&&_0x2d52dd[_0x50435e(0x3b7)]?_0xfb24e6[_0x50435e(0x32e)](q,_0x27a713,_0x1839d5,_0x3d719a,_0x2d52dd,_0x300aeb):_0x3d719a?_0xfb24e6['createInstance'](Q,_0x27a713,_0x1839d5,_0x3d719a,_0x300aeb):_0x2d52dd[_0x50435e(0x3b7)]?_0xfb24e6[_0x50435e(0x32e)](X,_0x27a713,_0x1839d5,_0x2d52dd,_0x300aeb):_0xfb24e6[_0x50435e(0x32e)](pe,_0x27a713,_0x1839d5,_0x300aeb);}var Tr=Object[_0x12409a(0x1ee)],Rr=Object[_0x12409a(0xfe)],Wt=(_0x534427,_0x1b2e68,_0x22a015,_0x1c12e5)=>{const _0x59fc0d=_0x12409a;for(var _0x138dce=_0x1c12e5>0x1?void 0x0:_0x1c12e5?Rr(_0x1b2e68,_0x22a015):_0x1b2e68,_0x59df7e=_0x534427[_0x59fc0d(0x3b7)]-0x1,_0x5d0f69;_0x59df7e>=0x0;_0x59df7e--)(_0x5d0f69=_0x534427[_0x59df7e])&&(_0x138dce=(_0x1c12e5?_0x5d0f69(_0x1b2e68,_0x22a015,_0x138dce):_0x5d0f69(_0x138dce))||_0x138dce);return _0x1c12e5&&_0x138dce&&Tr(_0x1b2e68,_0x22a015,_0x138dce),_0x138dce;},p=(_0x360b94,_0x6cc007)=>(_0x399064,_0x36b630)=>_0x6cc007(_0x399064,_0x36b630,_0x360b94);let qe=class extends _0x5d8701{constructor(_0x1ff3e9,_0x1455e4,_0x376352,_0xf6e859,_0x2ded9e,_0x195a6b,_0x3d9f74,_0x5cb1b7,_0x245aa2,_0x20b6ae,_0x45346d,_0x564d7c,_0x340d7e){const _0x237697=_0x12409a;super(),l(this,_0x237697(0x345),new _0x30f2ca(null)),l(this,_0x237697(0x261),this[_0x237697(0x345)][_0x237697(0x142)]()),l(this,_0x237697(0x327)),l(this,_0x237697(0x344),!0x1),l(this,_0x237697(0x1fe),''),l(this,_0x237697(0x3cb),0x0),l(this,_0x237697(0x15d),this[_0x237697(0x261)]['pipe'](_0x54df3a(_0x44ac9d=>_0x44ac9d?_0x44ac9d['status']:P[_0x237697(0x108)]),_0x27a368(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x237697(0x38e),[]),(this[_0x237697(0x2fd)]=_0x1ff3e9,this[_0x237697(0x119)]=_0x1455e4,this[_0x237697(0x111)]=_0x376352,this[_0x237697(0x26a)]=_0xf6e859,this[_0x237697(0x2f8)]=_0x2ded9e,this[_0x237697(0x3b1)]=_0x195a6b,this[_0x237697(0xd9)]=_0x3d9f74,this[_0x237697(0x1fa)]=_0x5cb1b7,this[_0x237697(0x24e)]=_0x245aa2,this[_0x237697(0x3fa)]=_0x20b6ae,this['_messageService']=_0x45346d,this[_0x237697(0x16b)]=_0x564d7c,this[_0x237697(0x19c)]=_0x340d7e);}get['state'](){const _0x3355a1=_0x12409a;return this[_0x3355a1(0x327)];}async[_0x12409a(0x138)](){const _0x21a7f1=_0x12409a;if(this[_0x21a7f1(0x185)])throw new Error(_0x21a7f1(0x3bf));await this[_0x21a7f1(0x2c3)]();}['pauseCollaboration'](){const _0x3f4cfe=_0x12409a;return this[_0x3f4cfe(0x344)]=!0x0,_0x5ef5c0(()=>{const _0x51a9a4=_0x3f4cfe;this[_0x51a9a4(0x344)]=!0x1,this[_0x51a9a4(0x1e7)]();});}[_0x12409a(0x24d)](_0x3f8c69){const _0xb39534=_0x12409a;this[_0xb39534(0x327)]=_0x3f8c69,this['_state$'][_0xb39534(0x188)](_0x3f8c69);}async[_0x12409a(0x2c3)](){const _0x44e7b4=_0x12409a;var _0x13ecd0;this[_0x44e7b4(0x24d)](await this[_0x44e7b4(0xc2)]()),this[_0x44e7b4(0x19c)]&&((_0x13ecd0=this[_0x44e7b4(0x19c)])==null||_0x13ecd0[_0x44e7b4(0x127)](this[_0x44e7b4(0x2fd)]),this[_0x44e7b4(0x2f2)](this[_0x44e7b4(0x19c)][_0x44e7b4(0x258)](this[_0x44e7b4(0x2fd)])[_0x44e7b4(0x3c1)](_0x1fcc4d=>{const _0x13f9d5=_0x44e7b4;this[_0x13f9d5(0x24e)][_0x13f9d5(0x318)](_0x13f9d5(0x1bd),_0x13f9d5(0x326),_0x1fcc4d),_0x1fcc4d===Vs[_0x13f9d5(0x273)]?(this[_0x13f9d5(0x417)]['show']({'content':this[_0x13f9d5(0xd9)]['t'](_0x13f9d5(0x2c7)),'type':_0x3ea716[_0x13f9d5(0x20b)]}),this[_0x13f9d5(0x16b)]['updatePermissionPoint'](new _0x19d13a(this[_0x13f9d5(0x2fd)])['id'],!0x1)):this[_0x13f9d5(0x16b)]['updatePermissionPoint'](new _0x19d13a(this[_0x13f9d5(0x2fd)])['id'],!0x0);})));let _0x3d30e5=!0x1;return this[_0x44e7b4(0x2f2)](this[_0x44e7b4(0x119)][_0x44e7b4(0xe2)][_0x44e7b4(0x3c1)](_0x448e46=>{const _0x2bec82=_0x44e7b4;_0x448e46===Y[_0x2bec82(0xca)]?this['_toggleOnline'](_0x3d30e5):_0x448e46===Y[_0x2bec82(0x108)]&&(_0x3d30e5=!0x0,this[_0x2bec82(0x27d)]());})),this[_0x44e7b4(0x2f2)](this[_0x44e7b4(0x119)][_0x44e7b4(0x3e9)][_0x44e7b4(0x3c1)](_0x514c4e=>{const _0x5be745=_0x44e7b4;try{switch(_0x514c4e[_0x5be745(0x331)]){case _0x1a2ec1[_0x5be745(0x10e)]:{this[_0x5be745(0x426)](_0x30a82b(_0x514c4e[_0x5be745(0x244)]));break;}case _0x1a2ec1['CHANGESET_ACK']:{this['_onRemoteACK'](_0x514c4e[_0x5be745(0x244)]);break;}case _0x1a2ec1[_0x5be745(0x2d9)]:{this['_onRemoteRejected']();break;}case _0x1a2ec1[_0x5be745(0x3a5)]:{this[_0x5be745(0x151)](_0x514c4e[_0x5be745(0x244)][_0x5be745(0x102)]['map'](_0x21e287=>_0x30a82b(_0x21e287)));break;}case _0x1a2ec1[_0x5be745(0x18f)]:this[_0x5be745(0xc7)]({'isPermissionRej':!0x0});}}catch(_0x56bce7){throw console[_0x5be745(0x2d7)]('Error\x20on\x20receiving\x20event',_0x56bce7),_0x56bce7;}})),this[_0x44e7b4(0x327)];}[_0x12409a(0x15f)](){const _0x4d7d02=_0x12409a;this[_0x4d7d02(0x2d6)]=!0x1;}[_0x12409a(0x225)](){const _0x44d04e=_0x12409a;if(this[_0x44d04e(0x2d6)])throw new Error(_0x44d04e(0x20f));this[_0x44d04e(0x2d6)]=!0x0;}[_0x12409a(0x30c)](_0x1dac97){const _0x5b063b=_0x12409a;this[_0x5b063b(0x225)](),this[_0x5b063b(0x24d)](this['_state'][_0x5b063b(0x30a)](_0x1dac97)),this[_0x5b063b(0x15f)]();}[_0x12409a(0x426)](_0x7119f5){const _0x24d64a=_0x12409a;if(!(_0x7119f5['revision']<=this[_0x24d64a(0x1fa)][_0x24d64a(0x419)](this['unitID']))){if(this[_0x24d64a(0x344)]){this['_remoteChangesetQueue'][_0x24d64a(0x325)](_0x7119f5);return;}this[_0x24d64a(0x41a)](_0x7119f5);}}['_exhaustRemoteChangesetQueue'](){const _0x8a7701=_0x12409a;this['_remoteChangesetQueue'][_0x8a7701(0x20d)](_0xaba4ca=>this[_0x8a7701(0x41a)](_0xaba4ca)),this[_0x8a7701(0x38e)]=[];}['_applyRemoteChangeset'](_0x359b89){const _0x4a7f43=_0x12409a,_0x43d141=this[_0x4a7f43(0x3b1)][_0x4a7f43(0x3f1)][_0x4a7f43(0x200)](this[_0x4a7f43(0x3b1)]['interceptor'][_0x4a7f43(0x2b4)]()[_0x4a7f43(0x21b)])(_0x359b89[_0x4a7f43(0x1b8)],null)||_0x359b89[_0x4a7f43(0x1b8)],_0x1da3df={..._0x359b89,'mutations':_0x43d141};this[_0x4a7f43(0x225)](),this['_updateState'](this['_state'][_0x4a7f43(0xfa)](_0x1da3df)),this[_0x4a7f43(0x15f)]();}['_onRemoteACK'](_0x5d88d6){const _0x1f2bcb=_0x12409a;this[_0x1f2bcb(0x225)](),this[_0x1f2bcb(0x24d)](this[_0x1f2bcb(0x327)][_0x1f2bcb(0x367)](_0x5d88d6)),this[_0x1f2bcb(0x15f)]();}[_0x12409a(0xc7)](_0x3d978c){const _0x4eadb2=_0x12409a;this[_0x4eadb2(0x225)](),this[_0x4eadb2(0x24d)](this[_0x4eadb2(0x327)][_0x4eadb2(0x35b)](_0x3d978c)),this[_0x4eadb2(0x15f)]();}[_0x12409a(0x151)](_0x7b16a5){const _0x34dc3c=_0x12409a;if(!(this[_0x34dc3c(0x327)]instanceof B))throw new TypeError(_0x34dc3c(0x310));const _0x451628=_0x7b16a5[_0x34dc3c(0x110)](_0x15a621=>{const _0x1d4678=_0x34dc3c,_0x261410=this[_0x1d4678(0x3b1)]['interceptor'][_0x1d4678(0x200)](this[_0x1d4678(0x3b1)]['interceptor'][_0x1d4678(0x2b4)]()[_0x1d4678(0x21b)])(_0x15a621[_0x1d4678(0x1b8)],null)||_0x15a621['mutations'];return{..._0x15a621,'mutations':_0x261410};});this[_0x34dc3c(0x225)](),this['_updateState'](this[_0x34dc3c(0x327)]['onMissedChangesetFetched'](_0x451628)),this[_0x34dc3c(0x15f)]();}['_toggleOffline'](){const _0x5611f6=_0x12409a;this[_0x5611f6(0x225)](),this[_0x5611f6(0x24d)](this[_0x5611f6(0x327)]['toggleOffline']()),this['_unlockTransition']();}['_toggleOnline'](_0x3110b6=!0x1){const _0x11f9ed=_0x12409a;this[_0x11f9ed(0x225)](),this[_0x11f9ed(0x24d)](this[_0x11f9ed(0x327)]['toggleOnline']()),this[_0x11f9ed(0x15f)]();const _0x326d96=this[_0x11f9ed(0x327)];_0x3110b6&&_0x326d96 instanceof pe&&(this[_0x11f9ed(0x225)](),this['_updateState'](_0x326d96['fetchMiss']()),this[_0x11f9ed(0x15f)]());}async['_createInitialState'](){return new Promise(_0x46f0cc=>{const _0x5ac1a8=_0x4bc7;this['session'][_0x5ac1a8(0xe2)]['pipe'](_0x470012(0x1))['subscribe'](async _0x3e762a=>{const _0xef1dc3=_0x5ac1a8;_0x46f0cc(await this[_0xef1dc3(0xdc)](_0x3e762a===Y[_0xef1dc3(0xca)]));});});}[_0x12409a(0x135)](){const _0x477d8e=this['unitID'];return{'onStateChange':(_0x48c7dc,_0x5483ff)=>{const _0x207929=_0x4bc7;if(_0x48c7dc!==this['_state'])throw new Error(_0x207929(0x411)+_0x48c7dc[_0x207929(0x39e)]+'\x0aAfter:\x20'+_0x5483ff['status']+_0x207929(0x1e0)+this[_0x207929(0x327)][_0x207929(0x39e)]);this[_0x207929(0x24d)](_0x5483ff);},'onSendChangeset':_0x53df39=>{const _0x359992=_0x4bc7;_0x53df39['sid']||(_0x53df39['sid']=this[_0x359992(0x1fe)],_0x53df39['reqId']=++this['_changesetReqId']);const _0x12587a={'eventID':_0x1a2ec1[_0x359992(0xee)],'data':{'unitID':_0x53df39[_0x359992(0x2fd)],'unitType':this[_0x359992(0x111)],'changeset':_0x53df39,'memberID':this[_0x359992(0x119)][_0x359992(0x22f)]()}};this[_0x359992(0x119)][_0x359992(0x10d)](_0x12587a,this['unitID']);},'onMissingChangesets':({from:_0x1bd698,to:_0x3a71b4})=>{const _0x1a2202=_0x4bc7;this[_0x1a2202(0x24e)]['debug'](_0x1a2202(0x1bd),'fetching\x20missing\x20changesets\x20from\x20'+_0x1bd698+_0x1a2202(0x12d)+_0x3a71b4);const _0x51dfbc={'eventID':_0x1a2ec1['FETCH_MISSING'],'data':{'unitID':_0x477d8e,'unitType':this[_0x1a2202(0x111)],'from':_0x1bd698,'to':_0x3a71b4}};this['session']['send'](_0x51dfbc,this[_0x1a2202(0x2fd)]);}};}async[_0x12409a(0xdc)](_0x55ba44){const _0x5c9476=_0x12409a;var _0x34a32b,_0x17bfb1;const _0x2cfc7a=await this[_0x5c9476(0x2f8)]['loadOfflineData'](this['unitID']),_0x2080b2=(_0x34a32b=_0x2cfc7a==null?void 0x0:_0x2cfc7a[_0x5c9476(0x1b8)])!=null?_0x34a32b:[],_0x256894=(_0x17bfb1=_0x2cfc7a==null?void 0x0:_0x2cfc7a[_0x5c9476(0x210)])!=null?_0x17bfb1:null,_0x17be49=!!(_0x256894!=null&&_0x256894[_0x5c9476(0x300)])&&!!(_0x256894!=null&&_0x256894['reqId']);this[_0x5c9476(0x1fe)]=_0x17be49?_0x256894['sid']:ir(),this[_0x5c9476(0x3cb)]=_0x17be49?_0x256894[_0x5c9476(0x2c5)]:0x0;const _0x50326d=this[_0x5c9476(0x2fd)];try{this['_replayCachedMutations'](_0x256894,_0x2080b2);}catch(_0x3b4ad1){this[_0x5c9476(0x24e)][_0x5c9476(0x2d7)](_0x3b4ad1);}const _0x486204=this[_0x5c9476(0x135)]();if(_0x55ba44){const _0xa3c85f=Ws(this[_0x5c9476(0x26a)],_0x50326d,this['_type'],_0x256894,_0x2080b2,_0x486204);return _0xa3c85f instanceof X?_0xa3c85f[_0x5c9476(0x1ae)]():(_0xa3c85f instanceof q||_0xa3c85f instanceof Q)&&_0xa3c85f[_0x5c9476(0x20c)](),_0xa3c85f;}return this[_0x5c9476(0x26a)]['createInstance'](te,_0x50326d,this['_type'],_0x256894,_0x2080b2,_0x486204);}[_0x12409a(0x3fb)](_0x4afb84,_0xbc14ee){const _0x4b2bf8=_0x12409a;var _0x131414,_0xcdf010;const _0x24ff46=this['_compressMutationService'][_0x4b2bf8(0x3f1)][_0x4b2bf8(0x200)](this['_compressMutationService'][_0x4b2bf8(0x3f1)][_0x4b2bf8(0x2b4)]()['COMPRESS_MUTATION_APPLY']);(_0x131414=_0x24ff46((_0x4afb84==null?void 0x0:_0x4afb84[_0x4b2bf8(0x1b8)])||[],null))==null||_0x131414[_0x4b2bf8(0x20d)](_0x50ce4d=>this[_0x4b2bf8(0x3fa)][_0x4b2bf8(0x155)](_0x50ce4d['id'],_0x50ce4d[_0x4b2bf8(0x319)])),(_0xcdf010=_0x24ff46(_0xbc14ee||[],null))==null||_0xcdf010[_0x4b2bf8(0x20d)](_0x43c8f1=>this['_commandService'][_0x4b2bf8(0x155)](_0x43c8f1['id'],_0x43c8f1['params']));}};qe=Wt([p(0x3,_0x565e28(_0x3f178c)),p(0x4,_0x565e28(w)),p(0x5,_0x565e28(_0x269693)),p(0x6,_0x565e28(_0x128cab)),p(0x7,_0x565e28(_0x4b7ded)),p(0x8,_0x2fef42),p(0x9,_0x2af4cf),p(0xa,_0x32ad3e),p(0xb,_0x4594fa),p(0xc,_0x1a9909(tt))],qe);let Tt=class extends qe{constructor(_0x36942c,_0x49cff5,_0x106e9d,_0x10ccc0,_0x1c510e,_0x3949b7,_0x24dc92,_0xdb6898,_0x29ee1e,_0x1143e8,_0xc0527,_0x269774,_0x3df902,_0x42b4fd,_0x16db16,_0x367147,_0x41c7dc){const _0x369333=_0x12409a;super(_0x36942c,_0x106e9d,_0x49cff5,_0x10ccc0,_0x1c510e,_0x3949b7,_0x24dc92,_0xdb6898,_0x3df902,_0x42b4fd,_0x16db16,_0x367147,_0x41c7dc),this[_0x369333(0x2fd)]=_0x36942c,this[_0x369333(0x198)]=_0x49cff5,this[_0x369333(0x41d)]=_0x29ee1e,this[_0x369333(0x24f)]=_0x1143e8,this[_0x369333(0x274)]=_0xc0527,this['_docSyncEditingCollabCursorService']=_0x269774;}[_0x12409a(0x135)](){const _0xeb5904=_0x12409a,_0x2b3c31=super['_createHandler']();return _0x2b3c31[_0xeb5904(0x352)]=_0x2fe357=>this[_0xeb5904(0x24f)][_0xeb5904(0x1f6)](_0x2fe357),_0x2b3c31[_0xeb5904(0x311)]=_0x58fd5a=>this[_0xeb5904(0x274)]['transformSelections'](_0x58fd5a),_0x2b3c31[_0xeb5904(0xb9)]=_0x4d1da3=>this['_docSyncEditingCollabCursorService'][_0xeb5904(0x145)](_0x4d1da3),_0x2b3c31[_0xeb5904(0x396)]=_0x1699b3=>this[_0xeb5904(0x24f)]['transformRemoteChangeset'](_0x1699b3),_0x2b3c31;}async[_0x12409a(0x2c3)](){const _0x549976=_0x12409a,_0x4775a2=await super[_0x549976(0x2c3)]();return this['_docStateChangeManagerService'][_0x549976(0x122)][_0x549976(0x29f)](_0x2d78ee(this[_0x549976(0x394)]))[_0x549976(0x3c1)](_0x544587=>{const _0x463724=_0x549976;if(_0x544587==null)return;const {unitId:_0x359a1e,redoState:_0x4a2454,commandId:_0x259045}=_0x544587;if(_0x359a1e!==this['unitID'])return;const _0x4a4d47={'id':_0x259045,'type':_0x1070ad[_0x463724(0x376)],'params':{'unitId':_0x359a1e,'actions':_0x4a2454[_0x463724(0x353)],'textRanges':null}};this[_0x463724(0x30c)](_0x4a4d47);}),_0x4775a2;}};Tt=Wt([p(0x3,_0x565e28(_0x3f178c)),p(0x4,_0x565e28(w)),p(0x5,_0x565e28(_0x269693)),p(0x6,_0x565e28(_0x128cab)),p(0x7,_0x565e28(_0x4b7ded)),p(0x8,_0x565e28(_0x2ae8fb)),p(0x9,_0x565e28(Ye)),p(0xa,_0x565e28(Xe)),p(0xb,_0x565e28(Ft)),p(0xc,_0x2fef42),p(0xd,_0x2af4cf),p(0xe,_0x32ad3e),p(0xf,_0x4594fa),p(0x10,_0x1a9909(tt))],Tt);let Rt=class extends qe{constructor(_0x1b4594,_0x46d610,_0x180d4b,_0x503bda,_0x1552fb,_0x19b94a,_0x34ce6f,_0x1a1cc7,_0x3256c3,_0x590f53,_0x2a6fcf,_0x48818c,_0x1bb650,_0x560537){const _0x32f05a=_0x12409a;super(_0x1b4594,_0x180d4b,_0x46d610,_0x503bda,_0x1552fb,_0x19b94a,_0x34ce6f,_0x1a1cc7,_0x590f53,_0x2a6fcf,_0x48818c,_0x1bb650,_0x560537),this[_0x32f05a(0x2fd)]=_0x1b4594,this[_0x32f05a(0x198)]=_0x46d610,this[_0x32f05a(0x143)]=_0x3256c3;}['_createHandler'](){const _0x12e1f3=_0x12409a,_0x3c5f86=super['_createHandler']();return _0x3c5f86[_0x12e1f3(0x311)]=_0x4d1121=>this['_sheetTransformSelectionsService']['transformSelections'](_0x4d1121),_0x3c5f86;}async['_init'](){const _0xc12ec1=_0x12409a,_0x2d5753=await super[_0xc12ec1(0x2c3)]();return this[_0xc12ec1(0x2f2)](this[_0xc12ec1(0x3fa)][_0xc12ec1(0x416)]((_0x8dda15,_0x182451)=>{const _0x545514=_0xc12ec1;if(_0x8dda15['type']!==_0x1070ad[_0x545514(0x376)]||_0x182451!=null&&_0x182451[_0x545514(0x182)]||_0x182451!=null&&_0x182451[_0x545514(0x375)])return;const _0x55d263=_0x8dda15['params'];if((_0x55d263==null?void 0x0:_0x55d263[_0x545514(0x42e)])!==this[_0x545514(0x2fd)])return;const _0x2169ab=_0x8dda15,_0xf5a34f=this['_compressMutationService'][_0x545514(0x3f1)][_0x545514(0x200)](this[_0x545514(0x3b1)][_0x545514(0x3f1)]['getInterceptPoints']()[_0x545514(0x2bd)])([_0x2169ab],null)||[_0x2169ab];this[_0x545514(0x30c)](_0xf5a34f[0x0]);})),_0x2d5753;}};Rt=Wt([p(0x3,_0x565e28(_0x3f178c)),p(0x4,_0x565e28(w)),p(0x5,_0x565e28(_0x269693)),p(0x6,_0x565e28(_0x128cab)),p(0x7,_0x565e28(_0x4b7ded)),p(0x8,_0x565e28(Ke)),p(0x9,_0x2fef42),p(0xa,_0x2af4cf),p(0xb,_0x32ad3e),p(0xc,_0x4594fa),p(0xd,_0x1a9909(tt))],Rt);var Or=Object[_0x12409a(0x1ee)],Dr=Object['getOwnPropertyDescriptor'],wr=(_0x5eb5fa,_0x342864,_0x179b3b,_0xf6fa93)=>{const _0x51bb85=_0x12409a;for(var _0xa48f83=_0xf6fa93>0x1?void 0x0:_0xf6fa93?Dr(_0x342864,_0x179b3b):_0x342864,_0x2e68cb=_0x5eb5fa[_0x51bb85(0x3b7)]-0x1,_0x5eeb1a;_0x2e68cb>=0x0;_0x2e68cb--)(_0x5eeb1a=_0x5eb5fa[_0x2e68cb])&&(_0xa48f83=(_0xf6fa93?_0x5eeb1a(_0x342864,_0x179b3b,_0xa48f83):_0x5eeb1a(_0xa48f83))||_0xa48f83);return _0xf6fa93&&_0xa48f83&&Or(_0x342864,_0x179b3b,_0xa48f83),_0xa48f83;},_t=(_0x48982c,_0x19e4a5)=>(_0x281b46,_0x3b896c)=>_0x19e4a5(_0x281b46,_0x3b896c,_0x48982c);let Le=class extends _0x5d8701{constructor(_0x6c5d6b,_0x3d0fdd,_0x5ba8cf){const _0x5901e4=_0x12409a;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x5633a5()),(this[_0x5901e4(0x26a)]=_0x6c5d6b,this['_collabSessionService']=_0x3d0fdd,this[_0x5901e4(0x392)]=_0x5ba8cf,this[_0x5901e4(0x2c3)]());}[_0x12409a(0x280)](){const _0x4bacc5=_0x12409a;super[_0x4bacc5(0x280)](),this[_0x4bacc5(0x112)][_0x4bacc5(0x20d)](_0x49fdb9=>_0x49fdb9[_0x4bacc5(0x280)]()),this['_entities']['clear']();}[_0x12409a(0x205)](_0x18f6ba){const _0x1a827f=_0x12409a;var _0x3fa085;return(_0x3fa085=this[_0x1a827f(0x112)]['get'](_0x18f6ba))!=null?_0x3fa085:null;}[_0x12409a(0x34d)](_0x1be595){const _0x517276=_0x12409a,_0x22b358=this['getCollabEntity'](_0x1be595);return _0x22b358?_0x303fa8(_0x22b358):this[_0x517276(0x166)][_0x517276(0x29f)](_0x51df9d(_0x4cbe80=>_0x4cbe80[_0x517276(0x2fd)]===_0x1be595));}[_0x12409a(0x2c3)](){const _0x2d6239=_0x12409a;this[_0x2d6239(0x392)][_0x2d6239(0x3dc)](_0x351a49[_0x2d6239(0x1e2)])[_0x2d6239(0x29f)](_0x2d78ee(this[_0x2d6239(0x394)]),_0x4f83c9(0x10))['subscribe'](async _0x232928=>{const _0x370201=_0x2d6239,_0x172c7a=_0x232928['getUnitId'](),_0x58f1c8=await this['_startCollaboration'](_0x172c7a,k[_0x370201(0x1e2)]);this[_0x370201(0x112)][_0x370201(0x28a)](_0x172c7a,_0x58f1c8);}),this['_univerInstanceService'][_0x2d6239(0x3dc)](_0x351a49[_0x2d6239(0x15b)])[_0x2d6239(0x29f)](_0x2d78ee(this['dispose$']),_0x4f83c9(0x10))[_0x2d6239(0x29f)](_0x51df9d(_0x2bdf31=>!_0x2bdf31['getUnitId']()[_0x2d6239(0xd2)]('__')))[_0x2d6239(0x3c1)](async _0x3f4d8c=>{const _0x3004dd=_0x2d6239,_0x45fdfd=_0x3f4d8c[_0x3004dd(0xe4)](),_0x3f7452=await this[_0x3004dd(0x287)](_0x45fdfd,k[_0x3004dd(0x15b)]);this[_0x3004dd(0x112)][_0x3004dd(0x28a)](_0x45fdfd,_0x3f7452);}),_0x23085b(this['_univerInstanceService'][_0x2d6239(0x3ac)](_0x351a49['UNIVER_SHEET']),this[_0x2d6239(0x392)][_0x2d6239(0x3ac)](_0x351a49[_0x2d6239(0x15b)]))[_0x2d6239(0x29f)](_0x2d78ee(this[_0x2d6239(0x394)]))[_0x2d6239(0x3c1)](_0x204ad1=>{const _0x5b335e=_0x2d6239,_0x30034b=_0x204ad1[_0x5b335e(0xe4)](),_0x20e6a3=this['_entities']['get'](_0x30034b);_0x20e6a3&&(_0x20e6a3[_0x5b335e(0x280)](),this[_0x5b335e(0x112)][_0x5b335e(0xf3)](_0x30034b));});}async[_0x12409a(0x287)](_0x25d71e,_0x51ae60){const _0xc067fd=_0x12409a,_0x57ebaf=await this[_0xc067fd(0x3d7)][_0xc067fd(0x3be)](_0x25d71e),_0x3994d1=this['_injector'][_0xc067fd(0x32e)](this[_0xc067fd(0xef)](_0x51ae60),_0x25d71e,_0x51ae60,_0x57ebaf);return await _0x3994d1[_0xc067fd(0x138)](),this[_0xc067fd(0x166)]['next'](_0x3994d1),_0x3994d1;}['_getCtorByUniverType'](_0x4565da){const _0x12c38a=_0x12409a;switch(_0x4565da){case k[_0x12c38a(0x15b)]:return Tt;case k[_0x12c38a(0x1e2)]:return Rt;default:throw new Error(_0x12c38a(0x3d5)+_0x4565da);}}};Le=wr([_t(0x0,_0x565e28(_0x3f178c)),_t(0x1,_0x565e28(he)),_t(0x2,_0x114f27)],Le);const fs=[_0x12409a(0x334),_0x12409a(0xf1),'verdancy600','red300','blue400',_0x12409a(0x267)];class Gt extends _0x1efbc8{constructor(){const _0x332466=_0x12409a;super(...arguments),l(this,_0x332466(0x2a7),new Map()),l(this,_0x332466(0x21d),0x0);}['assignAColorForMemberID'](_0x53e363){const _0x57148e=_0x12409a;if(this[_0x57148e(0x2a7)][_0x57148e(0x128)](_0x53e363))return this[_0x57148e(0x2a7)]['get'](_0x53e363);const _0x27d895=fs[this[_0x57148e(0x21d)]];return this[_0x57148e(0x21d)]=(this[_0x57148e(0x21d)]+0x1)%fs[_0x57148e(0x3b7)],this[_0x57148e(0x2a7)]['set'](_0x53e363,_0x27d895),_0x27d895;}}var Pr=Object['defineProperty'],yr=Object['getOwnPropertyDescriptor'],Ur=(_0x4f786c,_0x3c69f0,_0x5b50b0,_0x3a998a)=>{const _0x46e7a9=_0x12409a;for(var _0x54fd95=_0x3a998a>0x1?void 0x0:_0x3a998a?yr(_0x3c69f0,_0x5b50b0):_0x3c69f0,_0x97ebbe=_0x4f786c[_0x46e7a9(0x3b7)]-0x1,_0x341b75;_0x97ebbe>=0x0;_0x97ebbe--)(_0x341b75=_0x4f786c[_0x97ebbe])&&(_0x54fd95=(_0x3a998a?_0x341b75(_0x3c69f0,_0x5b50b0,_0x54fd95):_0x341b75(_0x54fd95))||_0x54fd95);return _0x3a998a&&_0x54fd95&&Pr(_0x3c69f0,_0x5b50b0,_0x54fd95),_0x54fd95;},ie=(_0x10a201,_0x202dd3)=>(_0x3d12fe,_0x195135)=>_0x202dd3(_0x3d12fe,_0x195135,_0x10a201);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x5d8701{constructor(_0x1e3652,_0x8c7768,_0x607607,_0x1c44cb,_0x2f7f59,_0x3b92d4,_0x48a60d,_0x4a1377,_0x4bcc0e){const _0x6c66f8=_0x12409a;super(),l(this,_0x6c66f8(0x2fa),!0x1),l(this,_0x6c66f8(0x2c3),!0x1),l(this,_0x6c66f8(0x33f),new _0x30f2ca(new Map())),l(this,_0x6c66f8(0x1b0),this['_cursorInfo$']['asObservable']()),l(this,'_roomMembers$',new _0x30f2ca([])),l(this,_0x6c66f8(0x171),this[_0x6c66f8(0x1d3)][_0x6c66f8(0x29f)](_0x246b10(Nr))),l(this,_0x6c66f8(0x378),_0x173224(_0x3d6acc=>{const _0x83b6f1=_0x6c66f8,_0x1f78e5={'eventID':_0x1a2ec1[_0x83b6f1(0x2de)],'data':{'unitID':this[_0x83b6f1(0x2fd)],'memberID':this[_0x83b6f1(0x37e)]['getMemberID'](),'selection':Fs(_0x3d6acc)}};this[_0x83b6f1(0x37e)][_0x83b6f1(0x10d)](_0x1f78e5,this['unitID']);},Mr)),(this[_0x6c66f8(0x2fd)]=_0x1e3652,this[_0x6c66f8(0x37e)]=_0x8c7768,this[_0x6c66f8(0x26a)]=_0x607607,this['_colorAssignService']=_0x1c44cb,this[_0x6c66f8(0x3bc)]=_0x2f7f59,this[_0x6c66f8(0x36e)]=_0x3b92d4,this[_0x6c66f8(0x3e7)]=_0x48a60d,this[_0x6c66f8(0x392)]=_0x4a1377,this[_0x6c66f8(0x3fa)]=_0x4bcc0e);}get['cursorInfo'](){const _0x436f93=_0x12409a;return this[_0x436f93(0x33f)]['getValue']();}get[_0x12409a(0x170)](){const _0x5335a0=_0x12409a;return this[_0x5335a0(0x1d3)][_0x5335a0(0x3f3)]();}[_0x12409a(0x280)](){const _0x34af5d=_0x12409a;super['dispose'](),this[_0x34af5d(0x33f)][_0x34af5d(0x188)](new Map()),this[_0x34af5d(0x33f)][_0x34af5d(0x38f)](),this[_0x34af5d(0x1d3)][_0x34af5d(0x188)]([]),this[_0x34af5d(0x1d3)]['complete']();}[_0x12409a(0x138)](){const _0x5c2c33=_0x12409a;this['_init']||(this['_init']=!0x0,this[_0x5c2c33(0x37e)][_0x5c2c33(0xe2)][_0x5c2c33(0x29f)](_0x2d78ee(this[_0x5c2c33(0x394)]))[_0x5c2c33(0x3c1)](_0x2fc14b=>{const _0x3ab965=_0x5c2c33;_0x2fc14b===Y[_0x3ab965(0xca)]?this[_0x3ab965(0x1c0)]():this[_0x3ab965(0x27d)]();}),this[_0x5c2c33(0x37e)]['event$'][_0x5c2c33(0x29f)](_0x2d78ee(this['dispose$']))[_0x5c2c33(0x3c1)](_0x2dfcbd=>{const _0x3ead8f=_0x5c2c33,_0x4160ec=_0x2dfcbd[_0x3ead8f(0x331)];_0x4160ec===_0x1a2ec1[_0x3ead8f(0x2de)]&&this[_0x3ead8f(0x309)](_0x2dfcbd),_0x4160ec===_0x1a2ec1[_0x3ead8f(0x186)]&&this[_0x3ead8f(0x288)](_0x2dfcbd);}),this['disposeWithMe'](this['_commandService'][_0x5c2c33(0x416)](_0x17c6b3=>{const _0x4eaf28=_0x5c2c33,_0x4ef594=_0x17c6b3[_0x4eaf28(0x319)];_0x4ef594!=null&&this[_0x4eaf28(0x2fa)]&&_0x17c6b3['id']===_0x45e900['id']&&_0x4ef594[_0x4eaf28(0x42e)]===this[_0x4eaf28(0x2fd)]&&_0x4ef594[_0x4eaf28(0x373)]===!0x1&&this[_0x4eaf28(0x378)](_0x4ef594['ranges']);})),this[_0x5c2c33(0x36e)][_0x5c2c33(0xf4)]['pipe'](_0x2d78ee(this[_0x5c2c33(0x394)]))['subscribe'](_0x184059=>{const _0xd4268f=_0x5c2c33;if((_0x184059==null?void 0x0:_0x184059[_0xd4268f(0x2fd)])!==this[_0xd4268f(0x2fd)])return;const _0x299935={'eventID':_0x1a2ec1[_0xd4268f(0x2de)],'data':_0x184059};this[_0xd4268f(0x309)](_0x299935);}),this[_0x5c2c33(0x2f2)](this[_0x5c2c33(0x3fa)][_0x5c2c33(0x416)](_0x58fa51=>{const _0x160689=_0x5c2c33;if(_0x58fa51[_0x160689(0x319)]==null)return;const _0x53c419=_0x58fa51[_0x160689(0x319)];if(_0x58fa51['id']!==_0x5e8bc0['id']||_0x53c419[_0x160689(0x42e)]!==this[_0x160689(0x2fd)])return;const _0x4c34a6={'id':_0x160689(0x3af),'params':_0x53c419},_0x3dfcb2=this[_0x160689(0x289)];for(const [_0x2659a0,_0x3814fc]of _0x3dfcb2){const _0xb3e6de={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3814fc['ranges']}},_0x1e8490=this[_0x160689(0x3e7)]['transformMutation'](_0x4c34a6,_0xb3e6de,!0x1);if(_0x1711e0(_0x1e8490))throw _0x1e8490[_0x160689(0x2d7)];_0x3dfcb2['set'](_0x2659a0,{..._0x3814fc,'ranges':_0x1e8490[_0x160689(0x346)][_0x160689(0x319)][_0x160689(0x3a8)]});}queueMicrotask(()=>{const _0x286472=_0x160689;this[_0x286472(0x33f)][_0x286472(0x188)](_0x3dfcb2);});})));}['_onCursorUpdate'](_0xff1fb4){const _0x165a92=_0x12409a;var _0x86a9a9,_0x5a4ee3;const {memberID:_0x197ee2,selection:_0x147f94}=_0xff1fb4[_0x165a92(0x244)],_0x499362=mr(_0x147f94),_0x20e69e=(_0x5a4ee3=(_0x86a9a9=this[_0x165a92(0x3bc)][_0x165a92(0x265)](this['unitID'],_0x197ee2))==null?void 0x0:_0x86a9a9[_0x165a92(0x295)])!=null?_0x5a4ee3:_0x165a92(0x104),_0x431e22={'color':this['_colorAssignService'][_0x165a92(0x33e)](_0x197ee2),'name':_0x20e69e,'ranges':_0x499362},_0x3d291b=this[_0x165a92(0x289)];_0x3d291b[_0x165a92(0x28a)](_0x197ee2,_0x431e22),this['_cursorInfo$'][_0x165a92(0x188)](_0x3d291b);}[_0x12409a(0x288)](_0x31ed85){const _0x568155=_0x12409a,{memberID:_0x2554ac}=_0x31ed85['data'],_0x599933=this[_0x568155(0x289)];_0x599933['delete'](_0x2554ac),this[_0x568155(0x33f)][_0x568155(0x188)](_0x599933);}['_toggleOnline'](){const _0xc6542c=_0x12409a;var _0x32a278;if(this[_0xc6542c(0x2fa)]=!0x0,((_0x32a278=this['_univerInstanceService'][_0xc6542c(0x1c5)]())==null?void 0x0:_0x32a278[_0xc6542c(0xe4)]())!==this['unitID'])return;const _0x16752d=this[_0xc6542c(0x26a)][_0xc6542c(0x2d5)](_0x2452e8)[_0xc6542c(0x1ec)]();Array['isArray'](_0x16752d)&&_0x16752d[_0xc6542c(0x3b7)]>0x0&&this['_updateLocalCursor'](_0x16752d);}[_0x12409a(0x27d)](){this['_online']=!0x1;}};Ot=Ur([ie(0x2,_0x565e28(_0x3f178c)),ie(0x3,_0x565e28(Gt)),ie(0x4,_0x565e28(ce)),ie(0x5,_0x565e28(Ft)),ie(0x6,_0x5dfa67),ie(0x7,_0x114f27),ie(0x8,_0x2af4cf)],Ot);var Ar=Object[_0x12409a(0x1ee)],Lr=Object['getOwnPropertyDescriptor'],$r=(_0x572371,_0x50e4a7,_0x21fa1c,_0x452b23)=>{for(var _0x53f997=_0x452b23>0x1?void 0x0:_0x452b23?Lr(_0x50e4a7,_0x21fa1c):_0x50e4a7,_0x33c62f=_0x572371['length']-0x1,_0x501104;_0x33c62f>=0x0;_0x33c62f--)(_0x501104=_0x572371[_0x33c62f])&&(_0x53f997=(_0x452b23?_0x501104(_0x50e4a7,_0x21fa1c,_0x53f997):_0x501104(_0x53f997))||_0x53f997);return _0x452b23&&_0x53f997&&Ar(_0x50e4a7,_0x21fa1c,_0x53f997),_0x53f997;},me=(_0x37798f,_0x58c665)=>(_0x3b189e,_0x38da0f)=>_0x58c665(_0x3b189e,_0x38da0f,_0x37798f);const jr=0x12c,xr=0x64,Hr=()=>{let _0xdbbb8d=[],_0x1b9d16=!0x1;return _0x161f85=>{const _0x224724=_0x4bc7;_0xdbbb8d[_0x224724(0x325)](_0x161f85),_0x1b9d16||(_0x1b9d16=!0x0,setTimeout(()=>{const _0x59bb22=_0x224724;_0xdbbb8d[_0x59bb22(0x20d)](_0x323231=>_0x323231()),_0xdbbb8d=[],_0x1b9d16=!0x1;}));};};let Dt=class extends _0x5d8701{constructor(_0x1f9416,_0x33b7ba,_0x7145c0,_0x106871,_0x5ddaac,_0x5a7f7b,_0x49bc4a,_0x12a8bd){const _0xa72df8=_0x12409a;super(),l(this,_0xa72df8(0x2fa),!0x1),l(this,_0xa72df8(0x2c3),!0x1),l(this,_0xa72df8(0x33f),new _0x30f2ca(new Map())),l(this,_0xa72df8(0x1b0),this['_cursorInfo$'][_0xa72df8(0x142)]()),l(this,'_roomMembers$',new _0x30f2ca([])),l(this,_0xa72df8(0x171),this[_0xa72df8(0x1d3)]['pipe'](_0x246b10(jr))),l(this,_0xa72df8(0x378),_0x173224((_0x1ab968,_0x4bd1fe)=>{const _0x449f54=_0xa72df8,_0x205ac8={'eventID':_0x1a2ec1['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':_0x319cba(_0x1ab968,_0x4bd1fe['range'])}};this['_session'][_0x449f54(0x10d)](_0x205ac8,this[_0x449f54(0x2fd)]);},xr)),(this[_0xa72df8(0x2fd)]=_0x1f9416,this[_0xa72df8(0x37e)]=_0x33b7ba,this[_0xa72df8(0x26a)]=_0x7145c0,this[_0xa72df8(0x301)]=_0x106871,this[_0xa72df8(0x3bc)]=_0x5ddaac,this[_0xa72df8(0x392)]=_0x5a7f7b,this[_0xa72df8(0x3fa)]=_0x49bc4a,this[_0xa72df8(0x324)]=_0x12a8bd);}get[_0x12409a(0x289)](){const _0x236b38=_0x12409a;return this[_0x236b38(0x33f)][_0x236b38(0x3f3)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x12409a(0x280)](){const _0x5f2fa9=_0x12409a;super[_0x5f2fa9(0x280)](),this[_0x5f2fa9(0x33f)]['next'](new Map()),this[_0x5f2fa9(0x33f)][_0x5f2fa9(0x38f)](),this['_roomMembers$'][_0x5f2fa9(0x188)]([]),this[_0x5f2fa9(0x1d3)]['complete']();}[_0x12409a(0x138)](){const _0x48e704=_0x12409a;this['_init']||(this[_0x48e704(0x2c3)]=!0x0,this[_0x48e704(0x37e)][_0x48e704(0xe2)][_0x48e704(0x29f)](_0x2d78ee(this[_0x48e704(0x394)]))['subscribe'](_0x47ee14=>{const _0x13606e=_0x48e704;_0x47ee14===Y[_0x13606e(0xca)]?this[_0x13606e(0x1c0)]():this[_0x13606e(0x27d)]();}),this[_0x48e704(0x37e)][_0x48e704(0x3e9)][_0x48e704(0x29f)](_0x2d78ee(this[_0x48e704(0x394)]))[_0x48e704(0x3c1)](_0xc6c06b=>{const _0x34f229=_0x48e704,_0x5ee50c=_0xc6c06b[_0x34f229(0x331)];_0x5ee50c===_0x1a2ec1['UPDATE_CURSOR']&&this[_0x34f229(0x309)](_0xc6c06b),_0x5ee50c===_0x1a2ec1[_0x34f229(0x186)]&&this['_onCursorDelete'](_0xc6c06b);}),this[_0x48e704(0x1ab)](),this[_0x48e704(0x2f2)](this[_0x48e704(0x3fa)][_0x48e704(0x416)](_0x535ba2=>{const _0x4c01bf=_0x48e704;if(this[_0x4c01bf(0x2fa)]&&_0x535ba2['id']===_0x1c4355['id']&&_0x535ba2[_0x4c01bf(0x319)][_0x4c01bf(0x42e)]===this[_0x4c01bf(0x2fd)]){const _0x537fa8=_0x535ba2[_0x4c01bf(0x319)];this[_0x4c01bf(0x378)](_0x537fa8['subUnitId'],_0x537fa8[_0x4c01bf(0x1fb)][0x0]);}})));}[_0x12409a(0x309)](_0x1e0088){const _0x29a06a=_0x12409a;var _0x32d7f3,_0x28a246;const {memberID:_0x354d84,selection:_0x123896}=_0x1e0088['data'],{sheetName:_0x2bbcf4,range:_0x448c21}=_0x18ada2(_0x123896),_0x45756a={'name':(_0x28a246=(_0x32d7f3=this[_0x29a06a(0x3bc)][_0x29a06a(0x265)](this[_0x29a06a(0x2fd)],_0x354d84))==null?void 0x0:_0x32d7f3[_0x29a06a(0x295)])!=null?_0x28a246:_0x29a06a(0x104),'range':this[_0x29a06a(0x1dc)](_0x2bbcf4,_0x448c21),'sheetID':_0x2bbcf4,'color':this[_0x29a06a(0x301)][_0x29a06a(0x33e)](_0x354d84),'selection':_0x123896},_0x31ca6d=this[_0x29a06a(0x289)];_0x31ca6d[_0x29a06a(0x28a)](_0x354d84,_0x45756a),this[_0x29a06a(0x33f)]['next'](_0x31ca6d);}['_onCursorDelete'](_0x5d1f7e){const _0x401604=_0x12409a,{memberID:_0x3d7ba2}=_0x5d1f7e[_0x401604(0x244)],_0x462d12=this[_0x401604(0x289)];_0x462d12[_0x401604(0xf3)](_0x3d7ba2),this[_0x401604(0x33f)][_0x401604(0x188)](_0x462d12);}[_0x12409a(0x1dc)](_0x55da28,_0x17311f){const _0x3b23ca=_0x12409a;var _0x144c4d,_0x577f79;const _0x4d1702=(_0x577f79=(_0x144c4d=this[_0x3b23ca(0x392)][_0x3b23ca(0x17d)](this[_0x3b23ca(0x2fd)]))==null?void 0x0:_0x144c4d[_0x3b23ca(0x208)](_0x55da28))==null?void 0x0:_0x577f79['getMergeData']();return(_0x4d1702==null?void 0x0:_0x4d1702[_0x3b23ca(0x297)](_0xfb2fe9=>_0x3b6a0d['contains'](_0xfb2fe9,_0x17311f)))||_0x17311f;}[_0x12409a(0x1ab)](){const _0x438584=_0x12409a,_0x2ef2ad=new _0x29a9a9(),_0x4ca076=Hr(),_0x2ef7d9=()=>{const _0x115d36=_0x4bc7;_0x2ef2ad[_0x115d36(0x280)]();const _0x1284ef=(_0x40239f,_0x57d6c5,_0x22be97,_0x322caf)=>{const _0x5da008=_0x115d36;let _0x325fcf=[];switch(_0x40239f['id']){case _0x4d74df[_0x5da008(0x2ed)]:{_0x325fcf=_0x37b146(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x253)]:{_0x325fcf=_0x55259b(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x340)]:{_0x325fcf=_0x413277(_0x40239f,_0x322caf);break;}case _0x4d74df['InsertRangeMoveDownCommandId']:{_0x325fcf=_0x1c8722(_0x40239f,_0x322caf);break;}case _0x4d74df['InsertRangeMoveRightCommandId']:{_0x325fcf=_0x214bbf(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x39b)]:{_0x325fcf=_0x284a2f(_0x40239f,_0x322caf);break;}case _0x4d74df['MoveRangeCommandId']:{_0x325fcf=_0x40d85b(_0x40239f,_0x322caf);break;}case _0x4d74df['RemoveColCommandId']:{_0x325fcf=_0x300f40(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x125)]:{_0x325fcf=_0x8d978d(_0x40239f,_0x322caf);break;}}const _0x275c40=_0x596bfe(_0x325fcf,_0x322caf),_0x4984dd=this[_0x5da008(0x289)][_0x5da008(0x2d5)](_0x57d6c5);if(_0x4984dd&&_0x275c40){const _0x23a238={..._0x4984dd,'range':_0x275c40};this['cursorInfo'][_0x5da008(0x28a)](_0x57d6c5,_0x23a238),_0x4ca076(()=>{const _0x4b3eaf=_0x5da008,_0x31240d=this[_0x4b3eaf(0x324)]['registerRefRange'](_0x275c40,_0x2b2e3a=>(_0x31240d[_0x4b3eaf(0x280)](),_0x1284ef(_0x2b2e3a,_0x57d6c5,_0x22be97,_0x275c40)));_0x2ef2ad[_0x4b3eaf(0x22d)](_0x31240d);});}return{'redos':[],'undos':[]};};this[_0x115d36(0x289)][_0x115d36(0x20d)]((_0x27795f,_0x328fd0)=>{const _0x2adf6e=_0x115d36,{range:_0x4da804,sheetID:_0x40fac5}=_0x27795f,_0x4d3a16=this[_0x2adf6e(0x324)][_0x2adf6e(0x2cb)](_0x4da804,_0x6a5e39=>(_0x4d3a16[_0x2adf6e(0x280)](),_0x1284ef(_0x6a5e39,_0x328fd0,_0x40fac5,_0x4da804)));_0x2ef2ad[_0x2adf6e(0x22d)](_0x4d3a16);});};this[_0x438584(0x2f2)](_0x5ef5c0(this['_cursorInfo$'][_0x438584(0x3c1)](()=>{_0x2ef7d9();})));}['_toggleOnline'](){const _0x3cf7c0=_0x12409a;var _0x5c8e47,_0x2852e9;if(this['_online']=!0x0,((_0x5c8e47=this[_0x3cf7c0(0x392)]['getFocusedUnit']())==null?void 0x0:_0x5c8e47[_0x3cf7c0(0xe4)]())!==this[_0x3cf7c0(0x2fd)])return;const _0x5a6407=(_0x2852e9=this[_0x3cf7c0(0x26a)][_0x3cf7c0(0x2d5)](_0x158fb6)[_0x3cf7c0(0xd6)]())==null?void 0x0:_0x2852e9[0x0],_0x453ea=this[_0x3cf7c0(0x392)][_0x3cf7c0(0x1cb)](_0x351a49[_0x3cf7c0(0x1e2)])['getActiveSheet']();_0x5a6407&&_0x453ea&&this[_0x3cf7c0(0x378)](_0x453ea[_0x3cf7c0(0x25f)](),_0x5a6407);}['_toggleOffline'](){const _0x5ab55a=_0x12409a;this[_0x5ab55a(0x2fa)]=!0x1;}};Dt=$r([me(0x2,_0x565e28(_0x3f178c)),me(0x3,_0x565e28(Gt)),me(0x4,_0x565e28(ce)),me(0x5,_0x114f27),me(0x6,_0x2af4cf),me(0x7,_0x565e28(_0x280a5a))],Dt);var kr=Object[_0x12409a(0x1ee)],Br=Object[_0x12409a(0xfe)],Vr=(_0x742497,_0x388a34,_0x49c668,_0x1bb3cc)=>{for(var _0x40d4e1=_0x1bb3cc>0x1?void 0x0:_0x1bb3cc?Br(_0x388a34,_0x49c668):_0x388a34,_0x54ae96=_0x742497['length']-0x1,_0x54d1ec;_0x54ae96>=0x0;_0x54ae96--)(_0x54d1ec=_0x742497[_0x54ae96])&&(_0x40d4e1=(_0x1bb3cc?_0x54d1ec(_0x388a34,_0x49c668,_0x40d4e1):_0x54d1ec(_0x40d4e1))||_0x40d4e1);return _0x1bb3cc&&_0x40d4e1&&kr(_0x388a34,_0x49c668,_0x40d4e1),_0x40d4e1;},ut=(_0x485e11,_0x3c5dc4)=>(_0x506c30,_0x5dcedf)=>_0x3c5dc4(_0x506c30,_0x5dcedf,_0x485e11);let ve=class extends _0x5d8701{constructor(_0x1f4f2c,_0x29d393,_0x236d3a){const _0x5733e5=_0x12409a;super(),l(this,_0x5733e5(0x112),new Map()),l(this,'_entityInit$',new _0x5633a5()),(this[_0x5733e5(0x392)]=_0x1f4f2c,this[_0x5733e5(0x26a)]=_0x29d393,this[_0x5733e5(0x3d7)]=_0x236d3a,this['_init']());}[_0x12409a(0x280)](){const _0x2c0924=_0x12409a;super[_0x2c0924(0x280)](),this[_0x2c0924(0x166)][_0x2c0924(0x38f)](),this[_0x2c0924(0x112)][_0x2c0924(0x20d)](_0x351eca=>_0x351eca['dispose']());}[_0x12409a(0x2d0)](_0x55a517){const _0x40bdfe=_0x12409a;return this[_0x40bdfe(0x112)][_0x40bdfe(0x128)](_0x55a517)?this[_0x40bdfe(0x112)][_0x40bdfe(0x2d5)](_0x55a517)[_0x40bdfe(0x1b0)]:this[_0x40bdfe(0x166)]['pipe'](_0x1e6332(_0x5c1cd3=>_0x5c1cd3[_0x40bdfe(0x2fd)]===_0x55a517),_0x3fba78(_0x53a0e4=>_0x53a0e4[_0x40bdfe(0x1b0)]));}[_0x12409a(0x2c3)](){const _0x4c32c3=_0x12409a;this['_univerInstanceService'][_0x4c32c3(0x3dc)](_0x351a49['UNIVER_SHEET'])[_0x4c32c3(0x29f)](_0x2d78ee(this['dispose$']))[_0x4c32c3(0x3c1)](async _0x2e9f18=>{const _0x544612=_0x4c32c3,_0x3ce99a=_0x2e9f18[_0x544612(0xe4)](),_0x2422df=await this[_0x544612(0x3c9)](_0x3ce99a);this['_entityInit$']['next'](_0x2422df),this[_0x544612(0x112)][_0x544612(0x28a)](_0x3ce99a,_0x2422df);}),this[_0x4c32c3(0x392)]['getTypeOfUnitAdded$'](_0x351a49[_0x4c32c3(0x15b)])[_0x4c32c3(0x29f)](_0x2d78ee(this[_0x4c32c3(0x394)]))['pipe'](_0x1e6332(_0x5e74a5=>!_0x5e74a5[_0x4c32c3(0xe4)]()['startsWith']('__')))[_0x4c32c3(0x3c1)](async _0x5308e3=>{const _0x223901=_0x4c32c3,_0x5203a9=_0x5308e3['getUnitId'](),_0x29f522=await this['_startDocCollabCursor'](_0x5203a9);this[_0x223901(0x166)][_0x223901(0x188)](_0x29f522),this[_0x223901(0x112)][_0x223901(0x28a)](_0x5203a9,_0x29f522);}),_0x23085b(this[_0x4c32c3(0x392)][_0x4c32c3(0x3ac)](_0x351a49[_0x4c32c3(0x15b)]),this[_0x4c32c3(0x392)][_0x4c32c3(0x3ac)](_0x351a49[_0x4c32c3(0x1e2)]))['pipe'](_0x2d78ee(this[_0x4c32c3(0x394)]))['subscribe'](_0x298f91=>{const _0x3a84ad=_0x4c32c3,_0x3fbae7=_0x298f91[_0x3a84ad(0xe4)](),_0x4682c3=this[_0x3a84ad(0x112)][_0x3a84ad(0x2d5)](_0x3fbae7);_0x4682c3&&(_0x4682c3[_0x3a84ad(0x280)](),this[_0x3a84ad(0x112)][_0x3a84ad(0xf3)](_0x3fbae7));});}async[_0x12409a(0x3c9)](_0x3ee5c4){const _0x36c3df=_0x12409a,_0x4cc7ad=await this[_0x36c3df(0x3d7)][_0x36c3df(0x3be)](_0x3ee5c4),_0xc99f61=this[_0x36c3df(0x26a)][_0x36c3df(0x32e)](Dt,_0x3ee5c4,_0x4cc7ad);return _0xc99f61[_0x36c3df(0x138)](),_0xc99f61;}async[_0x12409a(0x302)](_0x28be83){const _0x3a465b=_0x12409a,_0x19b90f=await this['_collabSessionService']['requireSession'](_0x28be83),_0x3de3e9=this[_0x3a465b(0x26a)][_0x3a465b(0x32e)](Ot,_0x28be83,_0x19b90f);return _0x3de3e9['init'](),_0x3de3e9;}};ve=Vr([ut(0x0,_0x114f27),ut(0x1,_0x565e28(_0x3f178c)),ut(0x2,_0x565e28(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function _0xe1d4(){const _0x49c200=['unit','_tryReconnect','resize','_redoStacks','createInstance','_telemetryInfo','_transformUndoRedoStack','eventID','setInterval','updatePermissionPoint','purple300','setItem','15989bwGWuN','/rev/','UNRECOGNIZED','url(#off-line-single_clip0_910_343)','_undoRedoService','enableAuthServer','_clearCollaborationTimeoutTimer','reconnect','assignAColorForMemberID','_cursorInfo$','InsertColCommandId','open$','top','_registerDependencies','_collaborationPaused','_state$','m2Prime','updateCollaborator','284552uqhhWg','_updateLocalCache','_joinRoom','findNodePositionByCharIndex','onCommentUpdate','getCollabEntity$','with','Error','UUID','_unitID','onTransformIME','actions','_getRedoStack','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','[CollaborationSessionService]:\x20socket\x20error','OffLineSingle','getSkeleton','userID','getRandomValues','onRemoteRej','enableLocalCache','conflict.title','_createSocket','arc','max','on-line-single','put','socketService','LOGIN_URL_KEY','unsubscribe','NO_OTHER_CLIENTS_EDITING','onRemoteAck','_startTelemetryCollaborationNewChangeset','popstate','isActive','save','collabStatus.offline','batchAllowed','_syncEditingCollabCursorService','isArray','APPLY_DUPLICATED','append','result','isEditing','_unitOnClients','onlyLocal','MUTATION','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateLocalCursor','_throwTelemetryCollaborationNewChangeset','idSuffix','_clearHeartbeatTimer','awaiting','_handleLeaveEvent','_session','prototype','_clearUndo','5ZKWlaD','originalMeta','onSendChangeset','_getDownloadEndpointURL','storage','/role','addObject','onPointerMove$','_socket','&source=','POST','_notificationService','sendChangesetTimeout','_remoteChangesetQueue','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initModules','_univerInstanceService','members','dispose$','_disabled','onTransformRemoteChangesetByIMECache','flatMap','onMissingChangesets','_range','file','InsertRowCommandId','downloadEndpointUrl','rng','status','\x20in\x20_schedule.','pending','show','LIVESHARE_NEW_HOST','_hovered','FETCH_MISS','PSEUDO_FETCH_MISSING_RESULT','[OfflineState]:\x20received\x20acknowledgement.','PERMISSION_DENIED','textRanges','endColumn','AWAITING_WITH_PENDING','setConfig','getTypeOfUnitDisposed$','DEFAULT_FILE_NAME','saveChangeset','doc.mutation.rich-text-editing','retryConnectingInterval','_compressMutationService','range','_labelPosition','_textBubble','href','_tryEnsureSocket','length','body','_handleHover','loadSheet','width','_memberService','_transformUndoredo','requireSession','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','/fetchmissing?from=','subscribe','_anchor','some','onMissedChangesetFetched','addEventListener','NOT_FOUND','univer-pro.collaboration-client-socket-service','APPLY_NON_SEQUENTIAL_REVISION','_startSheetCollabCursor','getWorkbookSelections','_changesetReqId','_sendingTimer','black','restore','LICENSE_MAX_UNITS_EXCEEDED','now','snapshot','collabStatus.synced','setParam','subscribeEvent','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','univer-pro.collaboration-client.single-active-unit-service','_collabSessionService','AWAITING','catch','authzUrl','/unit/','getTypeOfUnitAdded$','UNKNOWN_CMD','all','liveShareNewHost','LIVESHARE_TERMINATE','_getSaveTimeout','apply','getUnit','commentUpdate$','readAsDataURL','slice','_transformService','joinRsp','event$','_docSkeletonManagerService','encode','_queuedRemoteChangesets','_handleJoinEvent','NOT_COLLAB','HELLO','_onConnectionOpen','interceptor','colorChannel1','getValue','randomUUID','[UniverCollaborationClientPlugin]','collabSubmitChangesetUrl','_sessionStatus$','ENSURE_SNAPSHOT_EXECUTION','Univer','_commandService','_replayCachedMutations','_clearLocalCache','getVpScrollXYInfoByPosToVp','replaceTextRanges','LICENSE_IMPORT_SIZE_EXCEEDED','UNIVER_UNKNOWN','MSG_FOR_ERROR','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','then','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','objectActions','_decreaseWaiting','_showConflictNotification','onPointerLeave$','_transformIMECache','socket$','getRoom','_onRecvEvent','unit-cache-','onlineStatus','COMMENT_UPDATE','collaboration.closeRoom','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_checkMissing','connection\x20error','history','_scheduleCollaborationTimeoutTimer','onCommandExecuted','_messageService','registerComponent','getCurrentRevOfUnit','_applyRemoteChangeset','startTime','...','_docStateChangeManagerService','_event$','_stopTelemetryCollaborationNewChangeset','selection','/block/','withCredentials','_ensureSubject','random','urlChange$','_onRemoteChangeset','COLLAB_SUBMIT_CHANGESET_URL','_executeRemoteChangeset','onReady','hidden','SYNCED','_hideTimer','USERS_ENTER','unitId','registerBeforeClose','reduce','getActiveRange','1em','joinEvent','HEARTBEAT_TIMEOUT','infoRsp','SNAPSHOT_HAS_BEEN_REMOVED','_http','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','onSyncEditingCollabCursor','COMPLETION_FINISHED','activeSheet$','_roomMembers','conflict.content','_substituteUndoStack','_registerRenderDependencies','onlineStatusTitle','focused$','_createInitialState','transformChangesets','/universer-api/file/{fileID}/sign-url','_initCommandExecutedListener','closeSession','_onRemoteRejected','UNKNOWN_CODE','disposeUnit','ONLINE','/universer-api/snapshot','_awaitingChangeset','/allowed','FromArray','visibilitychange','image/gif','origin','startsWith','close','toLowerCase','_onUserLeave','getCurrentSelections','collaboration-client.offline-data-not-saved','currentColor','_localeService','sheetId','[CollaborationState]:\x20apply\x20error!','_createInitialStateImpl','moveTo','_isPermissionRej','_scheduleTimestamp','_getSheetObject','newValue','sessionStatus$','ACTIVE_UNIT_EVENT_CHANNEL','getUnitId','_shouldReportTelemetry','create','awaiting_with_pending','fillText','split','transformUndoRedo','roles','_cachedData','univer-online-status-title','SUBMIT_CHANGESET','_getCtorByUniverType','getRangePointData','jiqing500','_getSendChangesetTimeout','delete','collabCursorState$','collabWebSocketUrl','RETRY_CONNECTING_MAX_COUNT','requestParams','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onConnectionFailed','onRemoteChangeset','_clearRedo','text','_anchorDot','getOwnPropertyDescriptor','xlink:href','_hover','filter','changesets','VIEW_MAIN','Unknown\x20user','createElement','_onOffline','UNAUTHENTICATED','OFFLINE','defs','_instanceService','LEAVE','permissionRejEvent','send','NEW_CHANGESETS','0\x200\x2016\x2016','map','_type','_entities','session.will-retry','[CollaborationUndoRedoService]','getLatestCsReqIdBySid','/object','_scene','UNIVER_COLLABORATION_CLIENT_PLUGIN','session','replaceState','1258368VNeNVi','/collaborator','updateMember','socket\x20open.','RECV','univerjs-icon\x20univerjs-icon-','_sendHeartbeatTimer','docStateChange$','_updateCollabCursors','transformMutation','RemoveRowCommandId','SNAPSHOT_INVALID_SNAPSHOT','editingUnit','has','102meCugh','_imageSourceCache','collabStatus.conflict','_retryConnectingTimer','\x20to\x20','endRow','PENDING','getOwnPropertySymbols','values','backgroundColor','round','_send','_createHandler','SUCCUSS','includes','init','collabStatus.syncing','patch','lineTo','entries','_config','height','commentUpdateEvent','getActiveSheet','leaveEvent','asObservable','_sheetTransformSelectionsService','min','syncEditingCollabCursor','transformMutationsWithChangeset','failed\x20to\x20apply\x20missed\x20changesets!','_status$','univer-online','clipPath','getCellPositionByOffset','trim','_getScale','collaboratorID','clearInterval','_configService','_onFetchMissResult','closePath','_themeService','resolve','executeCommand','setTimeout','HEARTBEAT','updateOfflineData','uni.network.url-service','[OfflineState]:\x20received\x20rejection.','UNIVER_DOC','_getLoginPath','status$','[CollaborationSessionService]','_unlockTransition','_initRequestHeader','_candidateSocket','_initStatusComponent','_getCurrentRevision','drawWith','unknown','_entityInit$','createSocket','revision','[DataLoaderController]','saveOfflineData','_permissionService','removeParam','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_updateURLWithCurrentState','capture','roomMembers','roomMembers$','&assign=','UnitEmbedded','UniverIcon','signUrlServerUrl','_scheduleClearOtherTimer','list','reject','routeKey','use','getRelativeToViewportCoord','_render','getUniverSheetInstance','_waitCount','_sessions','getUnhiddenWorksheets','searchParams','fromCollab','_getUndoStack','_refreshCollabCursors','state','USERS_LEAVE','_snapshotServerService','next','objectID','_socket$','[PendingState]:\x20received\x20rejection.','ERROR_IMAGE','registerHTTPInterceptor','icon','PERMISSION_REJ','clear','_drawAnchor','rev','makeDirty','loginUrlKey','column','assign','CONFLICT','type','object','APPLY_REJECT','CONNECTOR_DATA_TOO_LARGE','_singleActiveUnitService','fill','refreshPermission','hasOwnProperty','svg','session.room-full','setShapeProps','code','c1Prime','getResourcesRequest','socket\x20close','APPLY_REVISION_CONFILICT','LIVESHARE_OPERATION','_collaborationTimeoutTimer','getAncestorScale','_onRefRangeChange','engine','_setupBeforeClosingHandler','_schedule','getUnitOnRev','cursorInfo$','_sheetSkeletonManagerService','_getSnapshotAPIPrefix','_initResize','post','size','onload','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','mutations','subUnitId','M0\x200H16V16H0z','_change$','defIds','[CollaborationEntity]','setWaitCount','concat','_toggleOnline','#FFF','_waitForHeartbeatResponse','enableSingleActiveInstanceLock','10076700OQgKqY','getFocusedUnit','path','_docSkeleton','[OfflineState]:\x20received\x20changeset.','?url=','_socketMessageSubscription','getCurrentUnitForType','method','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_clearTimeoutTimer','_commentUpdate$','HttpExport','objects','registerRenderModule','_roomMembers$','univer-online-status-icon','_removeRoom','toggleOnline','JOIN','close$','collaboration-session-retry','call','collab-rect-range-','_getMergeRange','CHANGESET_REVISION_CONFILICT','_substituteRedoStack','CHANGESET_ACK','\x0aCurrent:\x20','allowed','UNIVER_SHEET','baseRev','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onJoinRoomEvent','_draw','_exhaustRemoteChangesetQueue','symbol','[FetchMissState]','getUnitType','_cursors','getDocRanges','compose','defineProperty','ws://127.0.0.1:8000/universer-api/comb/connect','loadOfflineData','_clearScheduledTask','onMouseMove','/universer-api/authz','_selfUnitIDs','url(#$1','transformIMECache','synced','_updateStatus','_transformSelections','_revisionService','selections','#fff','INVALID_ARGUMENT','_changesetSessionId','clearTimeout','fetchThroughInterceptors','_initStatusListener','row','snapshotServerUrl','_saveTaskMap','getCollabEntity','LIVESHARE_FETCH_OPERATIONS','ERROR_EXCEED_SIZE','getSheetBySheetId','_renderManagerService','LOCAL_CACHE_INTERVAL','Warning','resend','forEach','_lastPointer','[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.','awaitingChangeset','2612348dQgzpx','_syncEditingCollabCursor','string','bind','exhaustSavingTask','color','toggleOffline','_backgroundColor','_collabCursorState$','submit\x20changeset\x20error!','COMPRESS_MUTATION_APPLY','collab-client.tooltip.reconnect','_colorIndex','onlineStatusIcon','online','_name','replace','saveSheetBlock','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','children','_lockTransition','toString','_getAPIPrefix','_collabCursorController','_eventUnsubscribe','IDLE','getDeserializedSheetBlock','_getAPIPrefixPath','add','_listenToOnlineEvent','getMemberID','LICENSE_DISTRO_REJECTED','5645334NjOWeP','_context','/new_changes','error$','getParam','url','measureText','unitId\x20is\x20not\x20found','_scheduleSaving','ALREADY_EXISTS','SNAPSHOT_URL_KEY','_replaceFileID','getRenderById','univer-offline','stopTime','conflict','HEARTBEAT_INTERVAL','FileId','_transformStack','data','FAIL','skeleton','offline','UnitSnapshot','attrs','getViewport','sheets','FETCH_MISSING','_updateState','_logService','_docTransformIMECacheService','session.collaboration-timeout','_saveCache','SHOULD_CLOSE_CONN','DeleteRangeMoveUpCommandId','fillStyle','_cursorShapes','isPermissionRej','_handler','getUnitStatus$','setCurrentUser','hovered','confirm','_onMessage','_incrementRevisionNumber','from','getSheetId','81WmUJYc','state$','_commentService','_snapshotService','none','getMember','JOINING','gold400','_removeClearOtherTimer','tag','_injector','/object/','every','_beforeCloseService','generateRandomId','_ws','_color','setAlpha','transformSelections','OTHER_CLIENTS_EDITING','_docTransformSelectionsService','target','auth.needGotoLoginAlert','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','Undefined','collaboration-client.config','fetchMissingChangesets','_document','extend','_toggleOffline','UNIVER_SLIDE','localeService','dispose','_drawTextRange','_timeoutTimer','substring','fetchMiss','SNAPSHOT_SERVER_URL_KEY','_uiPartsService','_startCollaboration','_onCursorDelete','cursorInfo','set','_removeCollabCursors','_setupSubUnitSync','subunit','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','className','SEND_CHANGESET_TIMEOUT','sheetID','_initMergeInterceptor','unshift','function','name','_getSignURL','find','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','_collaborationController','_pendingMutations','currentSkeleton$','m1Prime','_initEventListeners','listCollaborators','pipe','c2Prime','_shapes','getCurrentUser','transformRemoteChangeset','on-line-single_clip0_910_349','_initCloseConn','_rescheduleHeartbeat','_assignedColors','LIVESHARE_REQUEST_HOST','collabStatus.notCollab','setActiveRange','_drawRectRange','_getAnchorBounding','image/bmp','_id','off-line-single_clip0_910_343','removeMember','deepClone','pushState','_urlService','getInterceptPoints','incrementRevOfUnit','UNIVER_PROJECT','onTransformChange$','_telemetryService','getTime','INTERNAL_ERROR','_disableEditing','sessionStatus','COMPRESS_MUTATION_SEND','_HTTPService','_httpService','newCsEvent','indexOf','evenodd','_init','_cursor','reqId','_updateSubUnitFromURLParams','collaboration.single-unit.warning','collabStatus.fetchMiss','image/jpg','ERROR_IMAGE_TYPE','registerRefRange','_onUserJoin','_transformPreviousActiveRange','font','/-/object/list','getCollabCursors$','_unitStatus','UPDATE_PERMISSION_OBJ','_scheduleHeartbeat','displayName','get','_transitionLocked','error','disableLocalCache','CHANGESET_REJ','getUndoRedoMutationParamsCache','shouldCloseConn','_getUploadFileURL','BASE64','UPDATE_CURSOR','labelPosition','_onCombEvent','_handleHeartbeatEvent','/universer-api/oidc/authpage','initWorkbookPermissionChange','_retryCount','TOO_MANY_REQUESTS','INGEST','_collaborationSessionService','uploadFileServerUrl','1137416rVBRwh','image/jpeg','visibilityState','memberID','DeleteRangeMoveLeftCommandId','not_collab','_acknowledgedAwaitingChangeset','_handleEvent','_heartbeatTimer','disposeWithMe','_localStorageService','headers','div','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','src','_localCacheService','[SyncedState]:\x20received\x20acknowledgement.','_online','updateCursorEvent','_socketService','unitID','registerOnClose','_clearOtherTimers','sid','_colorAssignService','_startDocCollabCursor','_members','action','objectType','YUUMI_URL_COL_OUT_OF_RANGE','cmd','_onConflict','_onCursorUpdate','appendMutation','_fetchMissChangesets','_onLocalMutation','current','0\x200\x2017\x2016','_loadDoc','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onTransformSelections','getConfig','location','_userManagerService','YUUMI_RATE_OVER_LIMIT','YUUMI_UNABLE_LOAD_URL','startRow','debug','params','message$','{fileID}','hide','createCollaborator','_listenToOfflineEvent','equals','APPLY_PERMISSION_DENIED','COLLAB_WEB_SOCKET_URL','stringify','toRgbString','_refRangeService','push','editing\x20status\x20changed\x20to','_state','_socketReady','_transformRemoteChangesetByIMECache'];_0xe1d4=function(){return _0x49c200;};return _0xe1d4();}function Wr(_0x4731bd,_0x5c6508){const _0x3c1310=_0x12409a;let {radius:_0x473aa2,width:_0x1c3171,height:_0x28a80b}=_0x5c6508;_0x473aa2=_0x473aa2!=null?_0x473aa2:0x0,_0x1c3171=_0x1c3171!=null?_0x1c3171:0x1e,_0x28a80b=_0x28a80b!=null?_0x28a80b:0x1e;let _0x259033=0x0,_0x220102=0x0,_0x171476=0x0;_0x259033=_0x220102=_0x171476=Math[_0x3c1310(0x144)](_0x473aa2,_0x1c3171/0x2,_0x28a80b/0x2),_0x4731bd['beginPath'](),_0x4731bd[_0x3c1310(0xdd)](_0x259033,0x0),_0x4731bd[_0x3c1310(0x13b)](_0x1c3171-_0x220102,0x0),_0x4731bd[_0x3c1310(0x35f)](_0x1c3171-_0x220102,_0x220102,_0x220102,Math['PI']*0x3/0x2,0x0,!0x1),_0x4731bd['lineTo'](_0x1c3171,_0x28a80b-_0x171476),_0x4731bd['arc'](_0x1c3171-_0x171476,_0x28a80b-_0x171476,_0x171476,0x0,Math['PI']/0x2,!0x1),_0x4731bd[_0x3c1310(0x13b)](0x0,_0x28a80b),_0x4731bd[_0x3c1310(0x13b)](0x0,_0x259033),_0x4731bd[_0x3c1310(0x35f)](_0x259033,_0x259033,_0x259033,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4731bd[_0x3c1310(0x152)](),_0x5c6508[_0x3c1310(0x19d)]&&(_0x4731bd[_0x3c1310(0x36b)](),_0x4731bd[_0x3c1310(0x254)]=_0x5c6508[_0x3c1310(0x19d)],_0x5c6508['fillRule']==='evenodd'?_0x4731bd[_0x3c1310(0x19d)](_0x3c1310(0x2c2)):_0x4731bd[_0x3c1310(0x19d)](),_0x4731bd[_0x3c1310(0x3ce)]());}class st extends _0x5ff19f{constructor(_0x3e14e4,_0x4db086){const _0x6dc07f=_0x12409a;super(_0x3e14e4,_0x4db086),l(this,_0x6dc07f(0x216)),l(this,_0x6dc07f(0xfc)),(this[_0x6dc07f(0x216)]=_0x4db086==null?void 0x0:_0x4db086[_0x6dc07f(0x216)],this[_0x6dc07f(0xfc)]=_0x4db086==null?void 0x0:_0x4db086[_0x6dc07f(0xfc)]);}static[_0x12409a(0x164)](_0x383558,_0x553ad8){const _0x3d91cb=_0x12409a,{text:_0x4016c3,color:_0xd9e156}=_0x553ad8;_0x383558['save'](),_0x383558[_0x3d91cb(0x2ce)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2e0660=_0x383558['measureText'](_0x4016c3)[_0x3d91cb(0x3bb)],_0x3d0e08=Math['min'](_0x2e0660+0x2*dt,ms);Wr(_0x383558,{'height':$e,'radius':0x4,'width':_0x3d0e08,'fill':_0xd9e156,'evented':!0x1}),_0x383558[_0x3d91cb(0x254)]=_0x3d91cb(0x1c1);const _0x4ee8a9=dt,_0x4342c4=$e-Fr,_0x2883b9=ms-0x2*dt;if(_0x2e0660>_0x2883b9){let _0xdb2d79='',_0xf6054f=0x0;for(const _0x5d7e62 of _0x4016c3){const _0x230232=_0x383558[_0x3d91cb(0x237)](_0x5d7e62)[_0x3d91cb(0x3bb)];if(_0xf6054f+_0x230232<=_0x2883b9-_0x383558[_0x3d91cb(0x237)](_0x3d91cb(0x41c))[_0x3d91cb(0x3bb)])_0xdb2d79+=_0x5d7e62,_0xf6054f+=_0x230232;else{_0xdb2d79+=_0x3d91cb(0x41c);break;}}_0x383558['fillText'](_0xdb2d79,_0x4ee8a9,_0x4342c4);}else _0x383558[_0x3d91cb(0xe8)](_0x4016c3,_0x4ee8a9,_0x4342c4);_0x383558[_0x3d91cb(0x3ce)]();}[_0x12409a(0x1e6)](_0x124666){const _0x1b0c1e=_0x12409a;st[_0x1b0c1e(0x164)](_0x124666,this);}}const ft='collab-text-anchor-',Gr='collab-text-range-',Yr=_0x12409a(0x1db),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x4b956c,_0x18f4f4,_0x49bddd,_0x2e6b3c){const _0x88438d=_0x12409a;l(this,_0x88438d(0x2a1),[]),l(this,_0x88438d(0x3c2),null),l(this,'_textBubble',null),l(this,_0x88438d(0xfd),null),l(this,_0x88438d(0x42c),null),l(this,_0x88438d(0x229),null),(this[_0x88438d(0x2c4)]=_0x4b956c,this[_0x88438d(0x117)]=_0x18f4f4,this[_0x88438d(0x1c7)]=_0x49bddd,this[_0x88438d(0x27b)]=_0x2e6b3c,this[_0x88438d(0x17c)]());}set[_0x12409a(0x100)](_0xebb063){const _0x262d77=_0x12409a;_0xebb063?(this[_0x262d77(0xfd)]&&this[_0x262d77(0xfd)][_0x262d77(0x31c)](),this[_0x262d77(0x3b4)]&&this[_0x262d77(0x3b4)][_0x262d77(0x3a1)]()):(this[_0x262d77(0xfd)]&&this[_0x262d77(0xfd)]['show'](),this[_0x262d77(0x3b4)]&&this[_0x262d77(0x3b4)][_0x262d77(0x31c)]());}[_0x12409a(0x280)](){const _0x376a2f=_0x12409a;for(const _0x2f9aae of this[_0x376a2f(0x2a1)])_0x2f9aae[_0x376a2f(0x280)]();this['_textBubble']&&this[_0x376a2f(0x3b4)][_0x376a2f(0x280)](),this[_0x376a2f(0xfd)]&&this[_0x376a2f(0xfd)][_0x376a2f(0x280)](),this['_anchor']&&this[_0x376a2f(0x3c2)]['dispose'](),this[_0x376a2f(0x229)]&&this[_0x376a2f(0x229)]();}[_0x12409a(0x17c)](){const _0x2faa44=_0x12409a;var _0x1a0587;const {_docSkeleton:_0x2f7e02,_document:_0x533780}=this,{color:_0x2d014f,name:_0xfcd3c7,ranges:_0x587f75}=this[_0x2faa44(0x2c4)],_0x341ff0=_0x533780['getOffsetConfig'](),{docsLeft:_0x2a2c1b,docsTop:_0xc19297}=_0x341ff0,_0x10cef5=new _0xae33e2(_0x341ff0,_0x2f7e02);for(const {startOffset:_0x337024,endOffset:_0x56b077,collapsed:_0x57749f,isActive:_0x583e58}of _0x587f75){const _0x29b313=_0x2f7e02['findNodePositionByCharIndex'](_0x337024),_0x42611b=_0x2f7e02[_0x2faa44(0x34b)](_0x56b077);if(_0x583e58){const {contentBoxPointGroup:_0x4089b5}=_0x10cef5[_0x2faa44(0xf0)](_0x42611b,_0x42611b);if(_0x4089b5[_0x2faa44(0x3b7)]===0x0)continue;this['_drawAnchor'](_0x2d014f,_0x4089b5,_0x2a2c1b,_0xc19297,_0xfcd3c7),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x57749f&&_0x29b313&&_0x42611b){if(_0xc6104c(_0x29b313,_0x42611b)){const _0x1502b8=new _0x4a1ef9(_0x341ff0,_0x2f7e02),{pointGroup:_0x459e6f}=(_0x1a0587=_0x1502b8['getRangePointData'](_0x29b313,_0x42611b))!=null?_0x1a0587:{};if(_0x459e6f==null||_0x459e6f[_0x2faa44(0x3b7)]===0x0)continue;this['_drawRectRange'](_0x2d014f,_0x459e6f,_0x2a2c1b,_0xc19297);}else{const {contentBoxPointGroup:_0x5b9e02}=_0x10cef5[_0x2faa44(0xf0)](_0x29b313,_0x42611b);if(_0x5b9e02[_0x2faa44(0x3b7)]===0x0)continue;this['_drawTextRange'](_0x2d014f,_0x5b9e02,_0x2a2c1b,_0xc19297);}}}}[_0x12409a(0x191)](_0x36d72e,_0x1f114b,_0x1d2fd3,_0xb7da66,_0x4e6c60){const _0x3de917=_0x12409a,_0x80feec=this[_0x3de917(0x2ac)](_0x1f114b),{left:_0x2695b9,top:_0x786e43,height:_0x2f75c9}=_0x80feec,_0x75e436=this['_getScale'](),_0x46b50d=Xr/_0x75e436,_0x462f21=new _0x2433b1(ft+_0x5bdceb['generateRandomId'](we),{'left':_0x2695b9+_0x1d2fd3-_0x46b50d,'top':_0x786e43+_0xb7da66,'height':_0x2f75c9,'width':Kr,'fill':_0x36d72e||_0x4194dd(_0x2654dc[_0x3de917(0x3cd)],0x0),'strokeWidth':_0x46b50d,'stroke':qr,'evented':!0x0});this['_anchor']=_0x462f21,this['_scene'][_0x3de917(0x387)](_0x462f21,_0x13a457);const _0x24369a=new _0x2433b1(ft+_0x5bdceb[_0x3de917(0x26e)](we),{'left':_0x2695b9+_0x1d2fd3-_0x46b50d,'top':_0x786e43+_0xb7da66-mt/0x2,'height':mt,'width':mt,'fill':_0x36d72e||_0x4194dd(_0x2654dc['black'],0x0),'strokeWidth':0x0,'stroke':_0x36d72e||_0x4194dd(_0x2654dc['black'],0x0),'evented':!0x1});this[_0x3de917(0xfd)]=_0x24369a,this[_0x3de917(0x117)]['addObject'](_0x24369a,_0x13a457);const _0x1d1bd4=new st(ft+_0x5bdceb['generateRandomId'](we),{'left':_0x2695b9+_0x1d2fd3-_0x46b50d,'top':_0x786e43+_0xb7da66-$e,'text':_0x4e6c60,'color':_0x36d72e});this[_0x3de917(0x3b4)]=_0x1d1bd4,this[_0x3de917(0x117)][_0x3de917(0x387)](_0x1d1bd4,_0x13a457),this['_hover']=!0x1;}[_0x12409a(0x3b9)](){const _0x3c91ec=_0x12409a,_0x34675a=this[_0x3c91ec(0x3c2)]['onPointerEnter$'][_0x3c91ec(0x3d4)](()=>{const _0x2bf51c=_0x3c91ec;this[_0x2bf51c(0x100)]=!0x0;}),_0x4f44ca=this['_anchor'][_0x3c91ec(0x408)][_0x3c91ec(0x3d4)](()=>{const _0x547569=_0x3c91ec;this['_hideTimer']&&clearTimeout(this[_0x547569(0x42c)]),this[_0x547569(0x42c)]=setTimeout(()=>{const _0x299f0=_0x547569;this[_0x299f0(0x100)]=!0x1;},0x7d0);});return()=>{const _0x36d094=_0x3c91ec;_0x34675a['unsubscribe'](),_0x4f44ca[_0x36d094(0x365)]();};}[_0x12409a(0x281)](_0x1c18ca,_0x4fd91b,_0x4caaa1,_0x587aa0){const _0x17f2cb=_0x12409a,_0x4066e6=new _0xa805c(_0x1c18ca)[_0x17f2cb(0x271)](0.2)[_0x17f2cb(0x323)](),_0x3cb5c6=new _0x346ba4(Gr+_0x5bdceb[_0x17f2cb(0x26e)](we),{'pointsGroup':_0x4fd91b,'fill':_0x4066e6||_0x4194dd(_0x2654dc['black'],0.2),'left':_0x4caaa1,'top':_0x587aa0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x17f2cb(0x325)](_0x3cb5c6),this['_scene'][_0x17f2cb(0x387)](_0x3cb5c6,_0x13a457);}[_0x12409a(0x2ab)](_0xe0c324,_0x5da559,_0x4b9841,_0x2eacd2){const _0x3348a2=_0x12409a,_0x6f2eb6=new _0xa805c(_0xe0c324)[_0x3348a2(0x271)](0.2)[_0x3348a2(0x323)](),_0x25a8f6=new _0x346ba4(Yr+_0x5bdceb[_0x3348a2(0x26e)](we),{'pointsGroup':_0x5da559,'fill':_0x6f2eb6||_0x4194dd(_0x2654dc[_0x3348a2(0x3cd)],0.2),'left':_0x4b9841,'top':_0x2eacd2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3348a2(0x325)](_0x25a8f6),this[_0x3348a2(0x117)][_0x3348a2(0x387)](_0x25a8f6,_0x13a457);}[_0x12409a(0x2ac)](_0x1c4c80){const _0x143eb4=_0x1c4c80[0x0],_0x584898=_0x143eb4[0x0],_0x2e4a52=_0x143eb4[0x2],{x:_0x5681b8,y:_0xc7124b}=_0x584898,{x:_0x634f9c,y:_0x376034}=_0x2e4a52;return{'left':_0x5681b8,'top':_0xc7124b,'width':_0x634f9c-_0x5681b8,'height':_0x376034-_0xc7124b};}[_0x12409a(0x14d)](){const _0x17ce55=_0x12409a,{scaleX:_0x463e56,scaleY:_0x102e9f}=this['_scene'][_0x17ce55(0x1aa)]();return Math[_0x17ce55(0x360)](_0x463e56,_0x102e9f);}}var Jr=Object[_0x12409a(0x1ee)],zr=Object[_0x12409a(0xfe)],Zr=(_0x1a34c5,_0x2fd8ca,_0x1b64a4,_0x4a074f)=>{const _0x2b000e=_0x12409a;for(var _0x2c0ded=_0x4a074f>0x1?void 0x0:_0x4a074f?zr(_0x2fd8ca,_0x1b64a4):_0x2fd8ca,_0x5e64e1=_0x1a34c5[_0x2b000e(0x3b7)]-0x1,_0x278c30;_0x5e64e1>=0x0;_0x5e64e1--)(_0x278c30=_0x1a34c5[_0x5e64e1])&&(_0x2c0ded=(_0x4a074f?_0x278c30(_0x2fd8ca,_0x1b64a4,_0x2c0ded):_0x278c30(_0x2c0ded))||_0x2c0ded);return _0x4a074f&&_0x2c0ded&&Jr(_0x2fd8ca,_0x1b64a4,_0x2c0ded),_0x2c0ded;},ke=(_0x466e80,_0x4eb8ac)=>(_0x5399d6,_0x195ebb)=>_0x4eb8ac(_0x5399d6,_0x195ebb,_0x466e80);let wt=class extends _0x5d8701{constructor(_0x25b747,_0x790d03,_0x55e542,_0x4fc4b2,_0x1e7027){const _0x2b1541=_0x12409a;super(),l(this,'_cursorShapes',[]),l(this,_0x2b1541(0x1eb),[]),(this[_0x2b1541(0x232)]=_0x25b747,this[_0x2b1541(0x3ea)]=_0x790d03,this[_0x2b1541(0x228)]=_0x55e542,this[_0x2b1541(0x3fa)]=_0x4fc4b2,this[_0x2b1541(0x153)]=_0x1e7027,this[_0x2b1541(0x2c3)]());}[_0x12409a(0x2c3)](){const _0x5b646a=_0x12409a,_0x3411ce=this[_0x5b646a(0x232)][_0x5b646a(0x42e)],_0x8d3a9d=this[_0x5b646a(0x3ea)];this['disposeWithMe'](_0x214399([this[_0x5b646a(0x228)]['getCollabCursors$'](_0x3411ce),this[_0x5b646a(0x153)]['currentTheme$']])[_0x5b646a(0x29f)](_0x123c40(([_0x4e6b38,_0x26e28f])=>({'skeleton':_0x8d3a9d['getSkeleton'](),'cursors':[..._0x4e6b38[_0x5b646a(0x131)]()][_0x5b646a(0x397)](_0x15b811=>({..._0x15b811,'color':_0x26e28f[_0x15b811[_0x5b646a(0x216)]]}))})))['subscribe'](_0x3628f2=>{const _0x327429=_0x5b646a;if(this[_0x327429(0x28b)](),_0x3628f2){const {skeleton:_0x5eb83a,cursors:_0x719836}=_0x3628f2;this[_0x327429(0x123)](_0x5eb83a,_0x719836);}})),this[_0x5b646a(0x1b3)](),this[_0x5b646a(0xc5)]();}[_0x12409a(0x123)](_0x5274c9,_0x1caa88){const _0x368ce1=_0x12409a,{scene:_0x2f0910,mainComponent:_0x6564f6}=this[_0x368ce1(0x232)],_0x101f9b=_0x1caa88[_0x368ce1(0x110)](_0x5b53e7=>new gs(_0x5b53e7,_0x2f0910,_0x5274c9,_0x6564f6));this[_0x368ce1(0x255)]=_0x101f9b,this[_0x368ce1(0x1eb)]=_0x1caa88;}[_0x12409a(0x184)](){const _0x315971=_0x12409a;this['_removeCollabCursors']();const {scene:_0x131a89,mainComponent:_0x428e93}=this['_context'],_0x3c65c9=this[_0x315971(0x3ea)][_0x315971(0x358)](),_0x3bd337=this[_0x315971(0x1eb)]['map'](_0x2bb879=>new gs(_0x2bb879,_0x131a89,_0x3c65c9,_0x428e93));this[_0x315971(0x255)]=_0x3bd337;}['_removeCollabCursors'](){const _0x43d79d=_0x12409a;this[_0x43d79d(0x255)][_0x43d79d(0x20d)](_0x50792d=>_0x50792d['dispose']()),this['_cursorShapes']=[];}[_0x12409a(0xc5)](){const _0x3556d2=_0x12409a,_0x496943=[_0x7ebe35['id']];this[_0x3556d2(0x2f2)](this[_0x3556d2(0x3fa)][_0x3556d2(0x416)](_0x5f3204=>{const _0x4f83f2=_0x3556d2;_0x496943['includes'](_0x5f3204['id'])&&_0x5f3204[_0x4f83f2(0x319)][_0x4f83f2(0x42e)]===this[_0x4f83f2(0x232)][_0x4f83f2(0x42e)]&&this['_refreshCollabCursors']();}));}[_0x12409a(0x1b3)](){const _0x467681=_0x12409a;this[_0x467681(0x2f2)](_0x3c0cfa(this[_0x467681(0x232)][_0x467681(0x1ac)][_0x467681(0x2b7)])[_0x467681(0x29f)](_0x51df9d(_0x278664=>_0x278664[_0x467681(0x198)]===_0x1ab316[_0x467681(0x32c)]),_0x39d280(0x10))[_0x467681(0x3c1)](()=>{const _0x2a65d8=_0x467681;this[_0x2a65d8(0x184)]();}));}};wt=Zr([ke(0x1,_0x565e28(_0x48a76e)),ke(0x2,_0x565e28(ve)),ke(0x3,_0x2af4cf),ke(0x4,_0x565e28(_0x376b1d))],wt);const Qr=0x1,eo=1.5;class to extends _0x5ff19f{constructor(_0x2428bc,_0x4eca70){const _0x5bf313=_0x12409a;super(_0x2428bc,_0x4eca70),l(this,_0x5bf313(0x270)),l(this,_0x5bf313(0x3a3),!0x1),l(this,_0x5bf313(0x399)),l(this,_0x5bf313(0x220),''),l(this,_0x5bf313(0x3b3),_0x5bf313(0x342)),l(this,'_backgroundColor'),(_0x4eca70&&this[_0x5bf313(0x1a2)](_0x4eca70),this['onPointerEnter$'][_0x5bf313(0x3d4)](()=>this[_0x5bf313(0x1a2)]({'hovered':!0x0})),this[_0x5bf313(0x408)][_0x5bf313(0x3d4)](()=>this[_0x5bf313(0x1a2)]({'hovered':!0x1})));}['setShapeProps'](_0x486296){const _0x556d12=_0x12409a;var _0x344385,_0x1220fb,_0x130aeb,_0x4e665c,_0x14a9c4,_0x2039b6;this['_color']=(_0x344385=_0x486296['color'])!=null?_0x344385:this[_0x556d12(0x270)],this[_0x556d12(0x3a3)]=(_0x1220fb=_0x486296[_0x556d12(0x25a)])!=null?_0x1220fb:this['_hovered'],this[_0x556d12(0x399)]=(_0x130aeb=_0x486296[_0x556d12(0x3b2)])!=null?_0x130aeb:this[_0x556d12(0x399)],this[_0x556d12(0x220)]=(_0x4e665c=_0x486296[_0x556d12(0x295)])!=null?_0x4e665c:this['_name'],this[_0x556d12(0x3b3)]=(_0x14a9c4=_0x486296[_0x556d12(0x2df)])!=null?_0x14a9c4:this['_labelPosition'],this[_0x556d12(0x218)]=(_0x2039b6=_0x486296[_0x556d12(0x132)])!=null?_0x2039b6:this['_backgroundColor'],this['transformByState']({'width':_0x486296[_0x556d12(0x3bb)],'height':_0x486296[_0x556d12(0x13e)]});}[_0x12409a(0x1f2)](_0xcda37b){const _0x2cd06d=_0x12409a,{row:_0x11c15,column:_0x45a60f}=_0xcda37b;if(_0x11c15>=this[_0x2cd06d(0x399)][_0x2cd06d(0x317)]&&_0x11c15<=this[_0x2cd06d(0x399)][_0x2cd06d(0x12e)]&&_0x45a60f>=this[_0x2cd06d(0x399)]['startColumn']&&_0x45a60f<=this[_0x2cd06d(0x399)][_0x2cd06d(0x3a9)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x377495){return!0x1;}[_0x12409a(0x1e6)](_0x239783){const _0x157af3=_0x12409a;_0x2433b1[_0x157af3(0x164)](_0x239783,{'width':this[_0x157af3(0x3bb)],'height':this['height'],'strokeWidth':eo,'stroke':this[_0x157af3(0x270)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x157af3(0x3a3)]&&(_0x239783[_0x157af3(0x36b)](),_0x239783['transform'](0x1,0x0,0x0,0x1,this[_0x157af3(0x3bb)],this['_labelPosition']==='bottom'?0x0:-$e),st[_0x157af3(0x164)](_0x239783,{'text':this[_0x157af3(0x220)],'color':this[_0x157af3(0x270)]}),_0x239783[_0x157af3(0x3ce)]());}}var so=Object[_0x12409a(0x1ee)],io=Object[_0x12409a(0xfe)],no=(_0x524155,_0x2f32d4,_0x38cf84,_0x5cc505)=>{for(var _0x35cec8=_0x5cc505>0x1?void 0x0:_0x5cc505?io(_0x2f32d4,_0x38cf84):_0x2f32d4,_0x3e566f=_0x524155['length']-0x1,_0x15b6fb;_0x3e566f>=0x0;_0x3e566f--)(_0x15b6fb=_0x524155[_0x3e566f])&&(_0x35cec8=(_0x5cc505?_0x15b6fb(_0x2f32d4,_0x38cf84,_0x35cec8):_0x15b6fb(_0x35cec8))||_0x35cec8);return _0x5cc505&&_0x35cec8&&so(_0x2f32d4,_0x38cf84,_0x35cec8),_0x35cec8;},gt=(_0x370cc8,_0x1c42f1)=>(_0x54fef4,_0x4985ff)=>_0x1c42f1(_0x54fef4,_0x4985ff,_0x370cc8);const ro=0x1389;let Pt=class extends _0x5d8701{constructor(_0x2d7f1f,_0x3f5d00,_0x569f38,_0x57250){const _0x4349ca=_0x12409a;super(),l(this,_0x4349ca(0x1eb),new Set()),l(this,_0x4349ca(0x20e),null),(this[_0x4349ca(0x232)]=_0x2d7f1f,this[_0x4349ca(0x1b1)]=_0x3f5d00,this[_0x4349ca(0x228)]=_0x569f38,this[_0x4349ca(0x153)]=_0x57250,this[_0x4349ca(0x2c3)]());}['_init'](){const _0x7acfbb=_0x12409a;this['_sheetSkeletonManagerService'][_0x7acfbb(0x29b)][_0x7acfbb(0x29f)](_0xeca24a(this[_0x7acfbb(0x394)]),_0x14c343(_0x4cbfd9=>{const _0x1f23ea=_0x7acfbb;if(_0x4cbfd9){const _0x5c6664=_0x4cbfd9[_0x1f23ea(0xda)];return _0x214399(this[_0x1f23ea(0x228)][_0x1f23ea(0x2d0)](this['_context'][_0x1f23ea(0x42e)]),this[_0x1f23ea(0x153)]['currentTheme$'])[_0x1f23ea(0x29f)](_0x123c40(([_0xc4a88e,_0x599b01])=>{const _0x11ab43=new Map();return _0xc4a88e['forEach']((_0x1e8df7,_0x234636)=>{const _0x5c85aa=_0x4bc7;if(_0x1e8df7[_0x5c85aa(0x291)]===_0x5c6664){const _0x461064={..._0x1e8df7};_0x461064[_0x5c85aa(0x216)]=_0x599b01[_0x1e8df7[_0x5c85aa(0x216)]],_0x11ab43[_0x5c85aa(0x28a)](_0x234636,_0x461064);}}),{'skeleton':_0x4cbfd9,'cursors':_0x11ab43};}));}return _0x303fa8({'skeleton':null,'cursors':new Map()});}))[_0x7acfbb(0x3c1)](({skeleton:_0x539244,cursors:_0x53c951})=>{this['_removeCollabCursors'](),_0x539244&&this['_updateCollabCursors'](_0x539244,_0x53c951);}),this[_0x7acfbb(0x1b1)]['currentSkeleton$'][_0x7acfbb(0x3c1)](_0x1cebab=>{const _0x1879dc=_0x7acfbb;if(_0x1cebab==null)return;const {skeleton:_0x1ecdc3}=_0x1cebab,{scene:_0x4f002e}=this[_0x1879dc(0x232)];_0x4f002e[_0x1879dc(0x388)][_0x1879dc(0x3d4)](_0x173224(_0x522b68=>{const _0x179ed2=_0x1879dc;var _0x261082,_0x5043c4;const {offsetX:_0x2dbd21,offsetY:_0x2ee6a7}=_0x522b68,{x:_0xa70a58,y:_0x1c3237}=_0x4f002e[_0x179ed2(0x17b)](_0x15e28a[_0x179ed2(0xce)]([_0x2dbd21,_0x2ee6a7])),{scaleX:_0x317707,scaleY:_0x41b920}=_0x4f002e[_0x179ed2(0x1aa)](),_0xf0589b=_0x4f002e[_0x179ed2(0x24a)](_0x178749[_0x179ed2(0x103)]),_0x4fcbd0=_0x4f002e[_0x179ed2(0x3fd)](_0x15e28a['FromArray']([_0xa70a58,_0x1c3237]),_0xf0589b),_0x1b3c51=_0x1ecdc3[_0x179ed2(0x14b)](_0x2dbd21,_0x2ee6a7,_0x317707,_0x41b920,_0x4fcbd0);((_0x261082=this['_lastPointer'])==null?void 0x0:_0x261082[_0x179ed2(0x195)])===_0x1b3c51[_0x179ed2(0x195)]&&((_0x5043c4=this[_0x179ed2(0x20e)])==null?void 0x0:_0x5043c4[_0x179ed2(0x202)])===_0x1b3c51[_0x179ed2(0x202)]||this[_0x179ed2(0x1eb)][_0x179ed2(0x20d)](_0x179c52=>{const _0x5c25cd=_0x179ed2;_0x179c52[_0x5c25cd(0x1f2)](_0x1b3c51);});},0x64));});}[_0x12409a(0x123)](_0x360a55,_0x170272){const _0x1d505d=_0x12409a;var _0x45058d;const _0x11673c=(_0x45058d=this[_0x1d505d(0x1b1)]['getCurrent']())==null?void 0x0:_0x45058d[_0x1d505d(0x246)];if(!_0x11673c)return;const _0x3ef0c6=this[_0x1d505d(0xe0)]();if(!_0x3ef0c6)return;this[_0x1d505d(0x1eb)][_0x1d505d(0x20d)](_0x302492=>{const _0x8f2f1f=_0x1d505d;_0x302492[_0x8f2f1f(0x193)]();});const {scene:_0x20f43f}=_0x3ef0c6,_0x44c1ae=oo(Array[_0x1d505d(0x25e)](_0x170272[_0x1d505d(0x131)]()))[_0x1d505d(0x110)](_0x564dd5=>{const {color:_0x40e0d8,range:_0x57c095,name:_0x321035,selection:_0x5bb822,sheetID:_0x37e59f}=_0x564dd5,{startColumn:_0x41c806,startRow:_0x203aab,endColumn:_0x31fdcb,endRow:_0x4f0841}=_0x57c095,_0x455fb7=_0x288960(_0x203aab,_0x41c806,_0x20f43f,_0x11673c),_0x424201=_0x288960(_0x4f0841,_0x31fdcb,_0x20f43f,_0x11673c),{columnHeaderHeightAndMarginTop:_0xf5d11e}=_0x11673c,{startX:_0x2d04f6,startY:_0x120d87}=_0x455fb7,{endX:_0x4ef2b1,endY:_0x5d29ea}=_0x424201,_0x1e59e3=_0x4ef2b1-_0x2d04f6,_0x3ea4dd=_0x5d29ea-_0x120d87,_0x3f2b6c={'labelPosition':_0x120d87-_0xf5d11e>=$e?'top':'bottom','sheetID':_0x37e59f,'range':_0x57c095,'color':_0x40e0d8,'name':_0x321035,'selection':_0x5bb822,'left':_0x2d04f6,'top':_0x120d87,'width':_0x1e59e3,'height':_0x3ea4dd,'evented':!0x1,'zIndex':ro};return new to(_0x321035,_0x3f2b6c);});_0x20f43f['addObjects'](_0x44c1ae,Qr),this[_0x1d505d(0x1eb)]=new Set(_0x44c1ae);}[_0x12409a(0x28b)](){const _0x4a42d4=_0x12409a;var _0x569fa5;(_0x569fa5=this['_cursors'])==null||_0x569fa5['forEach'](_0x450e67=>_0x450e67[_0x4a42d4(0x280)]());}[_0x12409a(0xe0)](){const _0x32dcd5=_0x12409a;return _0x62e069(this['_context']['unit'],this[_0x32dcd5(0x232)]);}};Pt=no([gt(0x1,_0x565e28(_0x44f148)),gt(0x2,_0x565e28(ve)),gt(0x3,_0x565e28(_0x376b1d))],Pt);function oo(_0x1103e6){const _0x32c75f=_0x12409a,_0x4c545e=new Map();return _0x1103e6['forEach'](_0x3cfa54=>{const _0x49a3bf=_0x4bc7;if(_0x4c545e[_0x49a3bf(0x128)](_0x3cfa54[_0x49a3bf(0x420)])){const _0xd1fa4e=_0x4c545e[_0x49a3bf(0x2d5)](_0x3cfa54[_0x49a3bf(0x420)]);_0xd1fa4e[_0x49a3bf(0x295)]+=',\x20'+_0x3cfa54['name'];}else _0x4c545e[_0x49a3bf(0x28a)](_0x3cfa54[_0x49a3bf(0x420)],_0x3cfa54);}),Array[_0x32c75f(0x25e)](_0x4c545e[_0x32c75f(0x131)]());}var N=function(){const _0x39f052=_0x12409a;return N=Object[_0x39f052(0x196)]||function(_0x136047){const _0x18cd3e=_0x39f052;for(var _0x52f734,_0x1ecf39=0x1,_0x3c053d=arguments['length'];_0x1ecf39<_0x3c053d;_0x1ecf39++){_0x52f734=arguments[_0x1ecf39];for(var _0xe4feeb in _0x52f734)Object[_0x18cd3e(0x37f)][_0x18cd3e(0x19f)][_0x18cd3e(0x1da)](_0x52f734,_0xe4feeb)&&(_0x136047[_0xe4feeb]=_0x52f734[_0xe4feeb]);}return _0x136047;},N[_0x39f052(0x3e2)](this,arguments);},ao=function(_0x308e99,_0x2a7b79){const _0x112717=_0x12409a;var _0x5531c2={};for(var _0x306f45 in _0x308e99)Object[_0x112717(0x37f)][_0x112717(0x19f)][_0x112717(0x1da)](_0x308e99,_0x306f45)&&_0x2a7b79[_0x112717(0x2c1)](_0x306f45)<0x0&&(_0x5531c2[_0x306f45]=_0x308e99[_0x306f45]);if(_0x308e99!=null&&typeof Object['getOwnPropertySymbols']==_0x112717(0x294)){for(var _0x43133c=0x0,_0x306f45=Object[_0x112717(0x130)](_0x308e99);_0x43133c<_0x306f45['length'];_0x43133c++)_0x2a7b79[_0x112717(0x2c1)](_0x306f45[_0x43133c])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x112717(0x1da)](_0x308e99,_0x306f45[_0x43133c])&&(_0x5531c2[_0x306f45[_0x43133c]]=_0x308e99[_0x306f45[_0x43133c]]);}return _0x5531c2;},Yt=_0x4249ce(function(_0x34d6a3,_0x3bb340){const _0xe1d7b9=_0x12409a;var _0x8c8582=_0x34d6a3['icon'],_0x39b9e1=_0x34d6a3['id'],_0x399c1a=_0x34d6a3[_0xe1d7b9(0x28f)],_0x3252e7=_0x34d6a3[_0xe1d7b9(0x27c)],_0x1e4d8a=ao(_0x34d6a3,[_0xe1d7b9(0x18e),'id','className',_0xe1d7b9(0x27c)]),_0x1a7550=_0xe1d7b9(0x120)[_0xe1d7b9(0x1bf)](_0x39b9e1,'\x20')['concat'](_0x399c1a||'')[_0xe1d7b9(0x14c)](),_0xaef304=_0x499775('_'[_0xe1d7b9(0x1bf)](lo()));return Gs(_0x8c8582,''[_0xe1d7b9(0x1bf)](_0x39b9e1),{'defIds':_0x8c8582[_0xe1d7b9(0x1bc)],'idSuffix':_0xaef304[_0xe1d7b9(0x30d)]},N({'ref':_0x3bb340,'className':_0x1a7550},_0x1e4d8a),_0x3252e7);});function Gs(_0x5e9254,_0x43beaf,_0x2e1f9a,_0x45af9f,_0x4ecf2c){const _0x5470f7=_0x12409a;return _0x50fdbf(_0x5e9254[_0x5470f7(0x269)],N(N({'key':_0x43beaf},co(_0x5e9254,_0x2e1f9a,_0x4ecf2c)),_0x45af9f),(ho(_0x5e9254,_0x2e1f9a)[_0x5470f7(0x224)]||[])[_0x5470f7(0x110)](function(_0x234946,_0x35bf54){const _0xd16fd5=_0x5470f7;return Gs(_0x234946,''['concat'](_0x43beaf,'-')['concat'](_0x5e9254[_0xd16fd5(0x269)],'-')['concat'](_0x35bf54),_0x2e1f9a,void 0x0,_0x4ecf2c);}));}function co(_0x118b92,_0x396ad8,_0x1577e2){const _0x365571=_0x12409a;var _0x329fe0=N({},_0x118b92[_0x365571(0x249)]);_0x1577e2!=null&&_0x1577e2[_0x365571(0x3f2)]&&_0x329fe0[_0x365571(0x19d)]===_0x365571(0x3f2)&&(_0x329fe0[_0x365571(0x19d)]=_0x1577e2['colorChannel1']);var _0x58c963=_0x396ad8[_0x365571(0x1bc)];return!_0x58c963||_0x58c963[_0x365571(0x3b7)]===0x0||(_0x118b92[_0x365571(0x269)]===_0x365571(0x17a)&&_0x329fe0[_0x365571(0xff)]&&(_0x329fe0[_0x365571(0xff)]=_0x329fe0[_0x365571(0xff)]+_0x396ad8['idSuffix']),Object[_0x365571(0x13c)](_0x329fe0)['forEach'](function(_0x5913d9){const _0x350507=_0x365571;var _0x3e5cdd=_0x5913d9[0x0],_0x36b2a6=_0x5913d9[0x1];typeof _0x36b2a6==_0x350507(0x213)&&(_0x329fe0[_0x3e5cdd]=_0x36b2a6[_0x350507(0x221)](/url\(#(.*)\)/,_0x350507(0x1f5)[_0x350507(0x1bf)](_0x396ad8[_0x350507(0x37a)],')')));})),_0x329fe0;}function ho(_0x42428d,_0x505a84){const _0x1657a0=_0x12409a;var _0x13dc2e,_0x283a43=_0x505a84[_0x1657a0(0x1bc)];return!_0x283a43||_0x283a43[_0x1657a0(0x3b7)]===0x0?_0x42428d:_0x42428d[_0x1657a0(0x269)]==='defs'&&(!((_0x13dc2e=_0x42428d[_0x1657a0(0x224)])===null||_0x13dc2e===void 0x0)&&_0x13dc2e[_0x1657a0(0x3b7)])?N(N({},_0x42428d),{'children':_0x42428d['children'][_0x1657a0(0x110)](function(_0x113723){const _0x25fd71=_0x1657a0;return typeof _0x113723[_0x25fd71(0x249)]['id']==_0x25fd71(0x213)&&_0x283a43&&_0x283a43[_0x25fd71(0x2c1)](_0x113723[_0x25fd71(0x249)]['id'])>-0x1?N(N({},_0x113723),{'attrs':N(N({},_0x113723['attrs']),{'id':_0x113723['attrs']['id']+_0x505a84[_0x25fd71(0x37a)]})}):_0x113723;})}):_0x42428d;}function lo(){const _0x3fc38f=_0x12409a;return Math[_0x3fc38f(0x424)]()[_0x3fc38f(0x226)](0x24)[_0x3fc38f(0x283)](0x2,0x8);}Yt[_0x12409a(0x2d4)]=_0x12409a(0x174);var _o={'tag':_0x12409a(0x1a0),'attrs':{'fill':'none','viewBox':_0x12409a(0x10f),'width':_0x12409a(0xb2),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x12409a(0x339)},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'stroke':_0x12409a(0xd8),'d':_0x12409a(0x404),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x12409a(0x109),'attrs':{},'children':[{'tag':_0x12409a(0x14a),'attrs':{'id':_0x12409a(0x2af)},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'fill':_0x12409a(0x1fc),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x12409a(0x2af)]},Ys=_0x4249ce(function(_0x30bb92,_0x17d398){const _0x43eedc=_0x12409a;return _0x50fdbf(Yt,Object[_0x43eedc(0x196)]({},_0x30bb92,{'id':'off-line-single','ref':_0x17d398,'icon':_o}));});Ys[_0x12409a(0x2d4)]=_0x12409a(0x357);var uo={'tag':_0x12409a(0x1a0),'attrs':{'fill':_0x12409a(0x264),'viewBox':_0x12409a(0x30e),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'stroke':'currentColor','d':_0x12409a(0x298),'strokeLinecap':_0x12409a(0x133),'strokeLinejoin':_0x12409a(0x133),'strokeWidth':1.2}}]},{'tag':_0x12409a(0x109),'attrs':{},'children':[{'tag':_0x12409a(0x14a),'attrs':{'id':_0x12409a(0x2a4)},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'fill':_0x12409a(0x1fc),'d':_0x12409a(0x1ba),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ks=_0x4249ce(function(_0x1931f0,_0x16566c){const _0x278665=_0x12409a;return _0x50fdbf(Yt,Object[_0x278665(0x196)]({},_0x1931f0,{'id':_0x278665(0x361),'ref':_0x16566c,'icon':uo}));});Ks[_0x12409a(0x2d4)]='OnLineSingle';function Xs(_0x2d5d60){const _0x3f8be0=_0x12409a;var _0x1b575c,_0x12e6df,_0x500f47='';if(typeof _0x2d5d60==_0x3f8be0(0x213)||typeof _0x2d5d60=='number')_0x500f47+=_0x2d5d60;else{if(typeof _0x2d5d60==_0x3f8be0(0x199)){if(Array[_0x3f8be0(0x36f)](_0x2d5d60)){var _0x3581a0=_0x2d5d60[_0x3f8be0(0x3b7)];for(_0x1b575c=0x0;_0x1b575c<_0x3581a0;_0x1b575c++)_0x2d5d60[_0x1b575c]&&(_0x12e6df=Xs(_0x2d5d60[_0x1b575c]))&&(_0x500f47&&(_0x500f47+='\x20'),_0x500f47+=_0x12e6df);}else{for(_0x12e6df in _0x2d5d60)_0x2d5d60[_0x12e6df]&&(_0x500f47&&(_0x500f47+='\x20'),_0x500f47+=_0x12e6df);}}}return _0x500f47;}function fo(){const _0x2cee36=_0x12409a;for(var _0x419e45,_0xad8383,_0x1142c0=0x0,_0xbaa722='',_0x487bcd=arguments[_0x2cee36(0x3b7)];_0x1142c0<_0x487bcd;_0x1142c0++)(_0x419e45=arguments[_0x1142c0])&&(_0xad8383=Xs(_0x419e45))&&(_0xbaa722&&(_0xbaa722+='\x20'),_0xbaa722+=_0xad8383);return _0xbaa722;}const mo=_0x12409a(0x1d4),go=_0x12409a(0xed),So='univer-online-status',po=_0x12409a(0x149),vo=_0x12409a(0x23e),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x4beb1){const _0x9d0745=_0x12409a;switch(_0x4beb1){case P[_0x9d0745(0x108)]:return _0x9d0745(0x36c);case P[_0x9d0745(0x197)]:return _0x9d0745(0x12b);case P[_0x9d0745(0x3a4)]:return _0x9d0745(0x2c8);case P[_0x9d0745(0x3ee)]:return _0x9d0745(0x2a9);case P[_0x9d0745(0x12f)]:case P[_0x9d0745(0x3d8)]:case P['AWAITING_WITH_PENDING']:return _0x9d0745(0x139);case P[_0x9d0745(0x42b)]:return _0x9d0745(0x3d2);}}function Eo(_0x59da93){const _0x5bfd78=_0x12409a,{status$:_0xb61335}=_0x59da93,_0x54cdd4=_0xec0688(_0xb61335,P[_0x5bfd78(0x3ee)]),_0x342dcf=_0x4a37c6(_0x128cab),_0x2309c8=_0x4a37c6(he),_0x2eb455=_0x54cdd4!==P[_0x5bfd78(0x108)],_0x33a1ea=_0x342dcf['t'](Io(_0x54cdd4)),_0x3557b2=fo(Pe[_0x5bfd78(0x40e)],{[Pe[_0x5bfd78(0x21f)]]:_0x2eb455,[Pe['offline']]:!_0x2eb455}),_0x272c52=_0x2eb455?_0x1fd77a[_0x5bfd78(0x105)](Ks,null):_0x1fd77a[_0x5bfd78(0x105)](Ys,null),_0x12c284=_0x5136b8(()=>{const _0x4684be=_0x5bfd78;_0x2eb455||_0x2309c8[_0x4684be(0x33d)]();},[_0x2eb455,_0x2309c8]);function _0x106df8(){const _0x2c0fb1=_0x5bfd78;return _0x1fd77a[_0x2c0fb1(0x105)](_0x2c0fb1(0x2f5),{'className':_0x3557b2,'onClick':_0x12c284},_0x1fd77a[_0x2c0fb1(0x105)](_0x2c0fb1(0x2f5),{'className':Pe[_0x2c0fb1(0x21e)]},_0x272c52),_0x1fd77a['createElement'](_0x2c0fb1(0x2f5),{'className':Pe[_0x2c0fb1(0xc0)]},_0x33a1ea));}return _0x2eb455?_0x106df8():_0x1fd77a[_0x5bfd78(0x105)](_0x5a45cb,{'title':_0x342dcf['t'](_0x5bfd78(0x21c))},_0x106df8());}var Co=Object['defineProperty'],bo=Object[_0x12409a(0xfe)],To=(_0x44fb23,_0x3f1767,_0x1399d4,_0x2124c7)=>{const _0x432cf8=_0x12409a;for(var _0x11998f=_0x2124c7>0x1?void 0x0:_0x2124c7?bo(_0x3f1767,_0x1399d4):_0x3f1767,_0x41364a=_0x44fb23[_0x432cf8(0x3b7)]-0x1,_0x598bc3;_0x41364a>=0x0;_0x41364a--)(_0x598bc3=_0x44fb23[_0x41364a])&&(_0x11998f=(_0x2124c7?_0x598bc3(_0x3f1767,_0x1399d4,_0x11998f):_0x598bc3(_0x11998f))||_0x11998f);return _0x2124c7&&_0x11998f&&Co(_0x3f1767,_0x1399d4,_0x11998f),_0x11998f;},Be=(_0xbf4ac6,_0x33e77c)=>(_0x47376a,_0x294764)=>_0x33e77c(_0x47376a,_0x294764,_0xbf4ac6);let Me=class extends _0x1efbc8{constructor(_0x4c9b76,_0x44e0be,_0x2175fa,_0x1f5af5){const _0x5dad5c=_0x12409a;super(),l(this,_0x5dad5c(0x148),new _0x30f2ca(P['NOT_COLLAB'])),(this[_0x5dad5c(0x392)]=_0x4c9b76,this[_0x5dad5c(0x286)]=_0x44e0be,this[_0x5dad5c(0x26a)]=_0x2175fa,this[_0x5dad5c(0x299)]=_0x1f5af5,this[_0x5dad5c(0x162)](),this[_0x5dad5c(0x201)]());}[_0x12409a(0x201)](){const _0x526744=_0x12409a;this[_0x526744(0x2f2)](this[_0x526744(0x392)][_0x526744(0xc1)][_0x526744(0x29f)](_0x3fba78(()=>{const _0x324ea1=_0x526744,_0x307b58=this[_0x324ea1(0x392)]['getFocusedUnit']();return _0x307b58?this[_0x324ea1(0x299)][_0x324ea1(0x34d)](_0x307b58[_0x324ea1(0xe4)]()):_0x303fa8(null);}),_0x3fba78(_0x3125a7=>_0x3125a7?_0x3125a7['status$']:_0x303fa8(P[_0x526744(0x3ee)])))[_0x526744(0x3c1)](_0x516df0=>{const _0x33ca1d=_0x526744;this[_0x33ca1d(0x148)]['next'](_0x516df0);}));}[_0x12409a(0x162)](){const _0x5f4fc9=_0x12409a;this[_0x5f4fc9(0x2f2)](this[_0x5f4fc9(0x286)][_0x5f4fc9(0x418)](_0xc250c8['HEADER_MENU'],()=>_0x56c2b6(Ro({'status$':this[_0x5f4fc9(0x148)][_0x5f4fc9(0x142)]()}),this['_injector'])));}};Me=To([Be(0x0,_0x114f27),Be(0x1,_0x2892a4),Be(0x2,_0x565e28(_0x3f178c)),Be(0x3,_0x565e28(Le))],Me);function Ro(_0x564add){const {status$:_0x465b2c}=_0x564add;return function(){const _0x3fb8b0=_0x4bc7;return _0x1fd77a[_0x3fb8b0(0x105)](Eo,{'status$':_0x465b2c});};}const qs=_0x2fc4d3(_0x12409a(0x159));var Oo=Object[_0x12409a(0x1ee)],Do=Object['getOwnPropertyDescriptor'],wo=(_0x5a913c,_0x30dcd0,_0x564c23,_0x410b29)=>{for(var _0x3435b4=_0x410b29>0x1?void 0x0:_0x410b29?Do(_0x30dcd0,_0x564c23):_0x30dcd0,_0x1c5d78=_0x5a913c['length']-0x1,_0x96f8e7;_0x1c5d78>=0x0;_0x1c5d78--)(_0x96f8e7=_0x5a913c[_0x1c5d78])&&(_0x3435b4=(_0x410b29?_0x96f8e7(_0x30dcd0,_0x564c23,_0x3435b4):_0x96f8e7(_0x3435b4))||_0x3435b4);return _0x410b29&&_0x3435b4&&Oo(_0x30dcd0,_0x564c23,_0x3435b4),_0x3435b4;},ge=(_0x101830,_0x39dc85)=>(_0x31f6cc,_0x478d7c)=>_0x39dc85(_0x31f6cc,_0x478d7c,_0x101830);let Je=class extends _0x5d8701{constructor(_0x2f2011,_0x3ccce9,_0x22515f,_0x1937d5,_0x1ceb2b,_0x2a665b){const _0x1a2dba=_0x12409a;super(),this[_0x1a2dba(0x2b3)]=_0x2f2011,this[_0x1a2dba(0x24e)]=_0x3ccce9,this['_commandService']=_0x22515f,this[_0x1a2dba(0x2f8)]=_0x1937d5,this['_snapshotService']=_0x1ceb2b,_0x2a665b?_0x2a665b==null||_0x2a665b['whenReady']()[_0x1a2dba(0x403)](()=>this[_0x1a2dba(0x2c3)]()):(this['_logService'][_0x1a2dba(0x318)](_0x1a2dba(0x169),_0x1a2dba(0xf8)),this['_init']());}async[_0x12409a(0x2c3)](){const _0x103c76=_0x12409a,_0x4ab509=this[_0x103c76(0x2b3)][_0x103c76(0x235)](_0x103c76(0x32a)),_0x6693f7=this['_urlService'][_0x103c76(0x235)]('type');if(!_0x4ab509||!_0x6693f7){this['_logService'][_0x103c76(0x318)](_0x103c76(0x169),_0x103c76(0x390));return;}switch(Number(_0x6693f7)){case k[_0x103c76(0x1e2)]:{const _0x4bd3ec=await this['_loadSheet'](_0x4ab509);this[_0x103c76(0x28c)](_0x4bd3ec);break;}case k[_0x103c76(0x15b)]:{await this['_loadDoc'](_0x4ab509);break;}default:{this['_logService'][_0x103c76(0x2d7)](_0x103c76(0x169),_0x103c76(0x28e));break;}}}async[_0x12409a(0x28c)](_0x2f319b){const _0x48ae08=_0x12409a;await this[_0x48ae08(0x2c6)](_0x2f319b),_0x2f319b[_0x48ae08(0xbb)][_0x48ae08(0x29f)](_0x2d78ee(this[_0x48ae08(0x394)]))['subscribe'](_0x596a1f=>{const _0x3b193a=_0x48ae08;_0x596a1f&&this[_0x3b193a(0x16e)](_0x596a1f);}),this['_urlService'][_0x48ae08(0x425)]['pipe'](_0x2d78ee(this['dispose$']))['subscribe'](()=>this[_0x48ae08(0x2c6)](_0x2f319b));}[_0x12409a(0x16e)](_0x3adc84,_0x2a8220=!0x1){const _0x13541b=_0x12409a,_0x430e14=this[_0x13541b(0x2b3)][_0x13541b(0x235)]('subunit');_0x3adc84[_0x13541b(0x25f)]()!==_0x430e14&&this[_0x13541b(0x2b3)][_0x13541b(0x3d3)](_0x13541b(0x28d),_0x3adc84[_0x13541b(0x25f)](),_0x2a8220);}async[_0x12409a(0x2c6)](_0x3fa4f){const _0xef89c3=_0x12409a;var _0x3b7f81;const _0xd3d943=this['_urlService']['getParam'](_0xef89c3(0x28d));if(!_0xd3d943||!_0x3fa4f[_0xef89c3(0x208)](_0xd3d943)){const _0x2cbaa8=_0x3fa4f[_0xef89c3(0x180)]()[0x0],_0x25b901=_0x3fa4f['getSheetBySheetId'](_0x2cbaa8);if(!_0x25b901)return;this['_updateURLWithCurrentState'](_0x25b901,!0x0),await this[_0xef89c3(0x3fa)][_0xef89c3(0x155)](_0x7b97d2['id'],{'unitId':_0x3fa4f[_0xef89c3(0xe4)](),'subUnitId':_0x2cbaa8});return;}((_0x3b7f81=_0x3fa4f[_0xef89c3(0x140)]())==null?void 0x0:_0x3b7f81[_0xef89c3(0x25f)]())!==_0xd3d943&&await this[_0xef89c3(0x3fa)][_0xef89c3(0x155)](_0x7b97d2['id'],{'unitId':_0x3fa4f['getUnitId'](),'subUnitId':_0xd3d943});}async['_loadSheet'](_0x23fc71){const _0x2ce62f=_0x12409a;let _0x870cb5=0x0;const _0x51290e=await this['_localCacheService'][_0x2ce62f(0x1f0)](_0x23fc71);return _0x51290e&&(_0x51290e[_0x2ce62f(0x210)]||_0x51290e[_0x2ce62f(0x1b8)][_0x2ce62f(0x3b7)]!==0x0)&&(_0x870cb5=_0x51290e[_0x2ce62f(0x192)]),_0x870cb5===0x0&&this['_logService']['debug'](_0x2ce62f(0x169),_0x2ce62f(0x1e4)),this['_snapshotService'][_0x2ce62f(0x3ba)](_0x23fc71,_0x870cb5);}async[_0x12409a(0x30f)](_0x113987){const _0x130916=_0x12409a;let _0x33655f=0x0;const _0x393451=await this[_0x130916(0x2f8)][_0x130916(0x1f0)](_0x113987);return _0x393451&&(_0x393451[_0x130916(0x210)]||_0x393451[_0x130916(0x1b8)][_0x130916(0x3b7)]!==0x0)&&(_0x33655f=_0x393451[_0x130916(0x192)]),_0x33655f===0x0&&this[_0x130916(0x24e)][_0x130916(0x318)](_0x130916(0x169),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x130916(0x263)]['loadDoc'](_0x113987,_0x33655f);}};Je=wo([ge(0x0,qs),ge(0x1,_0x2fef42),ge(0x2,_0x2af4cf),ge(0x3,_0x565e28(w)),ge(0x4,_0x565e28(_0x32ca9e)),ge(0x5,_0x1a9909(_0x5e7134))],Je);var Po=Object[_0x12409a(0x1ee)],yo=Object[_0x12409a(0xfe)],Uo=(_0x47d933,_0x1c3189,_0x3f0b39,_0x2abee6)=>{const _0x14d68b=_0x12409a;for(var _0x3a8617=_0x2abee6>0x1?void 0x0:_0x2abee6?yo(_0x1c3189,_0x3f0b39):_0x1c3189,_0x2c7f9a=_0x47d933[_0x14d68b(0x3b7)]-0x1,_0x22333c;_0x2c7f9a>=0x0;_0x2c7f9a--)(_0x22333c=_0x47d933[_0x2c7f9a])&&(_0x3a8617=(_0x2abee6?_0x22333c(_0x1c3189,_0x3f0b39,_0x3a8617):_0x22333c(_0x3a8617))||_0x3a8617);return _0x2abee6&&_0x3a8617&&Po(_0x1c3189,_0x3f0b39,_0x3a8617),_0x3a8617;},Ss=(_0x393e06,_0x1ea9e)=>(_0x505e46,_0x2d69d2)=>_0x1ea9e(_0x505e46,_0x2d69d2,_0x393e06);const No=_0x12409a(0x3ad),Mo=_0x12409a(0x3f9);let ze=class extends _0x1efbc8{constructor(_0x1fb587,_0x312199){const _0x52f987=_0x12409a;super(),this[_0x52f987(0x392)]=_0x1fb587,this['_configService']=_0x312199,this[_0x52f987(0x2c3)]();}[_0x12409a(0x2c3)](){const _0x19a341=_0x12409a;this['disposeWithMe'](this['_univerInstanceService'][_0x19a341(0xc1)][_0x19a341(0x3c1)](()=>{const _0x2292bd=_0x19a341;var _0x4a937d;const _0x1efd53=this[_0x2292bd(0x392)]['getFocusedUnit']();let _0x503395=(_0x4a937d=this['_configService']['getConfig'](No))!=null?_0x4a937d:Mo;_0x1efd53 instanceof _0x4c9bc9&&(_0x503395=_0x1efd53[_0x2292bd(0x295)]),document['title']=_0x503395;}));}};ze=Uo([Ss(0x0,_0x114f27),Ss(0x1,_0x301e4e)],ze);var Ao=Object[_0x12409a(0x1ee)],Lo=Object[_0x12409a(0xfe)],$o=(_0x6f74af,_0x12e6a0,_0x400edf,_0x577cde)=>{const _0x1eae24=_0x12409a;for(var _0x2c68a8=_0x577cde>0x1?void 0x0:_0x577cde?Lo(_0x12e6a0,_0x400edf):_0x12e6a0,_0x2a50a3=_0x6f74af[_0x1eae24(0x3b7)]-0x1,_0x5a1499;_0x2a50a3>=0x0;_0x2a50a3--)(_0x5a1499=_0x6f74af[_0x2a50a3])&&(_0x2c68a8=(_0x577cde?_0x5a1499(_0x12e6a0,_0x400edf,_0x2c68a8):_0x5a1499(_0x2c68a8))||_0x2c68a8);return _0x577cde&&_0x2c68a8&&Ao(_0x12e6a0,_0x400edf,_0x2c68a8),_0x2c68a8;},St=(_0xf43841,_0x5cbb1a)=>(_0x147adc,_0x5e5ed3)=>_0x5cbb1a(_0x147adc,_0x5e5ed3,_0xf43841);let Ze=class{constructor(_0x21f919,_0x120611,_0x3c1c7c){const _0x394905=_0x12409a;this[_0x394905(0x150)]=_0x21f919,this[_0x394905(0x2bf)]=_0x120611,this[_0x394905(0x27f)]=_0x3c1c7c,this['init']();}[_0x12409a(0x138)](){const _0xb5c788=_0x12409a;this[_0xb5c788(0x2bf)][_0xb5c788(0x18d)]({'priority':0x1,'interceptor':(_0x2b3893,_0x2f199f)=>_0x2f199f(_0x2b3893)[_0xb5c788(0x29f)](_0x5d8791(async _0x33984f=>{const _0x504ca0=_0xb5c788,_0x23b529=_0x33984f;if(_0x23b529[_0x504ca0(0x39e)]===0x191&&window[_0x504ca0(0x25b)](this[_0x504ca0(0x27f)]['t'](_0x504ca0(0x276)))){const _0x1f43f1=window['encodeURIComponent'](window['location'][_0x504ca0(0x3b5)]);window[_0x504ca0(0x313)][_0x504ca0(0x3b5)]=this[_0x504ca0(0x15c)]()+_0x504ca0(0x1c9)+_0x1f43f1;}return _0x23b529;}))});}['_getLoginPath'](){const _0x205480=_0x12409a;var _0x2a3f9d,_0x56e07d;const _0x386ea5=this[_0x205480(0x150)][_0x205480(0x312)](Nn),_0xb2e1d=this[_0x205480(0x150)][_0x205480(0x312)]($);return(_0x56e07d=(_0x2a3f9d=_0xb2e1d==null?void 0x0:_0xb2e1d[_0x205480(0x194)])!=null?_0x2a3f9d:_0x386ea5)!=null?_0x56e07d:Mn;}};Ze=$o([St(0x0,_0x301e4e),St(0x1,_0x565e28(_0x1a28a3)),St(0x2,_0x565e28(_0x128cab))],Ze);var jo=Object[_0x12409a(0x1ee)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x5c9a2e,_0x24b778,_0x35f4e0,_0x1abfb1)=>{const _0x2ffe97=_0x12409a;for(var _0x323b3e=_0x1abfb1>0x1?void 0x0:_0x1abfb1?xo(_0x24b778,_0x35f4e0):_0x24b778,_0x1f2ed8=_0x5c9a2e[_0x2ffe97(0x3b7)]-0x1,_0x40bec8;_0x1f2ed8>=0x0;_0x1f2ed8--)(_0x40bec8=_0x5c9a2e[_0x1f2ed8])&&(_0x323b3e=(_0x1abfb1?_0x40bec8(_0x24b778,_0x35f4e0,_0x323b3e):_0x40bec8(_0x323b3e))||_0x323b3e);return _0x1abfb1&&_0x323b3e&&jo(_0x24b778,_0x35f4e0,_0x323b3e),_0x323b3e;},ps=(_0x5b9756,_0x2d7e7a)=>(_0x4dd9a4,_0x26f706)=>_0x2d7e7a(_0x4dd9a4,_0x26f706,_0x5b9756);const ko='AUTHZ_URL_KEY',Bo=_0x12409a(0x1f3);let yt=class extends _0x1efbc8{constructor(_0x5c1481,_0xdd0c07){const _0x3c7511=_0x12409a;super(),this['_HTTPService']=_0x5c1481,this[_0x3c7511(0x150)]=_0xdd0c07,this['_initMergeInterceptor']();}[_0x12409a(0x292)](){const _0xe4fb5a=_0x12409a,_0x3bcc00=this;this['disposeWithMe'](this[_0xe4fb5a(0x2be)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3b04fe({'isMatch'(_0x3999da){const _0x4fa195=_0xe4fb5a;var _0xcc84;if(_0x3999da[_0x4fa195(0x1cc)]===_0x4fa195(0x38b)&&((_0xcc84=_0x3999da[_0x4fa195(0xf7)])!=null&&_0xcc84[_0x4fa195(0x3b8)])){const {objectID:_0x1697fa,objectType:_0x3958fe}=_0x3999da[_0x4fa195(0xf7)][_0x4fa195(0x3b8)]||{};if(!_0x1697fa||_0x3958fe===void 0x0)return!0x1;const _0x4dd060=_0x3bcc00[_0x4fa195(0x22c)]()+'/'+_0x3958fe+'/object/'+_0x1697fa+_0x4fa195(0xcd);if(_0x3999da[_0x4fa195(0x236)]===_0x4dd060)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x15ecf6){const _0x1f34d7=_0xe4fb5a;var _0x5c3c8e;return(_0x5c3c8e=_0x15ecf6[_0x1f34d7(0xf7)])==null?void 0x0:_0x5c3c8e[_0x1f34d7(0x3b8)];},'mergeParamsToRequest'(_0xee3b51,_0x47cb08){const _0x284288=_0xe4fb5a,_0x367e7a=_0x3bcc00[_0x284288(0x22c)]()+'/-/object/-/batch_allowed',_0x2a78e0=_0xee3b51[_0x284288(0xb0)]((_0x59eaa5,_0x1da4a8)=>{const _0x36947d=_0x284288,{unitID:_0x154a33,objectID:_0x32dff9,objectType:_0x11f281,actions:_0x3c6148}=_0x1da4a8;return _0x59eaa5[_0x154a33]||(_0x59eaa5[_0x154a33]={}),_0x59eaa5[_0x154a33][_0x32dff9]||(_0x59eaa5[_0x154a33][_0x32dff9]={'objectID':_0x32dff9,'objectType':_0x11f281,'actions':[]}),_0x59eaa5[_0x154a33][_0x32dff9][_0x36947d(0x353)][_0x36947d(0x325)](..._0x3c6148),_0x59eaa5;},{}),_0xe558a9=[];for(const _0x35c313 in _0x2a78e0)for(const _0x3bcaf5 in _0x2a78e0[_0x35c313]){const {actions:_0x50d762,objectType:_0x2ada30}=_0x2a78e0[_0x35c313][_0x3bcaf5],_0x2c4516=[...new Set(_0x50d762)];_0xe558a9[_0x284288(0x325)]({'unitID':_0x35c313,'objectID':_0x3bcaf5,'objectType':_0x2ada30,'actions':_0x2c4516});}return new _0x369bef(_0x284288(0x38b),_0x367e7a,{'headers':_0x47cb08[_0x284288(0x2f4)],'withCredentials':_0x47cb08[_0x284288(0x422)],'responseType':_0x47cb08['responseType'],'body':{'requests':_0xe558a9}});}},{'distributeResult'(_0x1c4875,_0x1a2ebc){const _0x52f9cb=_0xe4fb5a,{objectActions:_0x429ab4}=_0x1c4875;return _0x1a2ebc[_0x52f9cb(0x110)](_0x2e2eff=>{const _0x14a984=_0x52f9cb,{unitID:_0x1c50fb,objectID:_0x81c03,actions:_0x2c622a}=_0x2e2eff,_0x5a6aeb=_0x429ab4['find'](_0x1ab34b=>_0x1ab34b['unitID']===_0x1c50fb&&_0x1ab34b[_0x14a984(0x189)]===_0x81c03),_0x225a06=_0x2c622a[_0x14a984(0x110)](_0x101bcf=>_0x5a6aeb==null?void 0x0:_0x5a6aeb['actions'][_0x14a984(0x297)](_0x4a15ac=>_0x4a15ac[_0x14a984(0x304)]===_0x101bcf))[_0x14a984(0x101)](_0x54d1a3=>!!_0x54d1a3);return{'config':_0x2e2eff,'result':{'actions':_0x225a06,'error':_0x1c4875[_0x14a984(0x2d7)]}};});}})}));}[_0x12409a(0x22c)](){const _0x7e88d2=_0x12409a;var _0x54b635,_0x3da668;const _0x177d8a=this['_configService']['getConfig'](ko),_0x4faaa7=this[_0x7e88d2(0x150)]['getConfig']($);return(_0x3da668=(_0x54b635=_0x4faaa7==null?void 0x0:_0x4faaa7[_0x7e88d2(0x3da)])!=null?_0x54b635:_0x177d8a)!=null?_0x3da668:Bo;}async[_0x12409a(0xe6)](_0x2de0e6){const _0x51cf76=_0x12409a,_0x2ddca8=this['_getAPIPrefixPath']()+'/'+_0x2de0e6['objectType']+_0x51cf76(0x116);return(await this[_0x51cf76(0x2be)]['post'](_0x2ddca8,{'body':_0x2de0e6}))['body'][_0x51cf76(0x189)]||'';}async[_0x12409a(0x177)](_0x220fa6){const _0x43d932=_0x12409a,_0x326c39=this[_0x43d932(0x22c)]()+_0x43d932(0x2cf);return(await this[_0x43d932(0x2be)][_0x43d932(0x1b4)](_0x326c39,{'body':_0x220fa6}))[_0x43d932(0x3b8)][_0x43d932(0x1d1)];}async['update'](_0x2286cd){const _0x15ab74=_0x12409a,_0x2acdc2=this[_0x15ab74(0x22c)]()+'/'+_0x2286cd['objectType']+_0x15ab74(0x26b)+_0x2286cd['objectID'];await this['_HTTPService'][_0x15ab74(0x362)](_0x2acdc2,{'body':_0x2286cd});}async[_0x12409a(0x1e1)](_0x1bada8){const _0x4b5bc2=_0x12409a,_0x46a67f=this['_getAPIPrefixPath']()+'/'+_0x1bada8[_0x4b5bc2(0x305)]+'/object/'+_0x1bada8[_0x4b5bc2(0x189)]+_0x4b5bc2(0xcd);return(await this[_0x4b5bc2(0x2be)][_0x4b5bc2(0x1b4)](_0x46a67f,{'body':_0x1bada8}))['body'][_0x4b5bc2(0x353)];}async[_0x12409a(0x36d)](_0x4ed7ff){const _0x1234db=_0x12409a,_0x5d7518=this[_0x1234db(0x22c)]()+'/-/object/-/batch_allowed';return(await this[_0x1234db(0x2be)][_0x1234db(0x1b4)](_0x5d7518,{'body':{'requests':_0x4ed7ff}}))[_0x1234db(0x3b8)][_0x1234db(0x405)];}async['listRoles'](_0xcd4503){const _0x10fd18=_0x12409a,_0x167475=this[_0x10fd18(0x22c)]()+'/'+_0xcd4503[_0x10fd18(0x305)]+_0x10fd18(0x386),_0x5e057d=await this[_0x10fd18(0x2be)][_0x10fd18(0x1b4)](_0x167475,{'body':_0xcd4503});return{'roles':_0x5e057d[_0x10fd18(0x3b8)][_0x10fd18(0xeb)],'actions':_0x5e057d['body'][_0x10fd18(0x353)]};}async['deleteCollaborator'](_0x446414){const _0x4b8c78=_0x12409a,_0xa473b1=this[_0x4b8c78(0x22c)]()+_0x4b8c78(0x11c);await this[_0x4b8c78(0x2be)][_0x4b8c78(0xf3)](_0xa473b1,{'params':{'collaboratorID':_0x446414[_0x4b8c78(0x14e)],'objectID':_0x446414[_0x4b8c78(0x189)],'unitID':_0x446414[_0x4b8c78(0x2fd)]}});}async[_0x12409a(0x347)](_0x2c73be){const _0x2eb069=_0x12409a,_0x595909=this[_0x2eb069(0x22c)]()+_0x2eb069(0x11c);await this[_0x2eb069(0x2be)][_0x2eb069(0x13a)](_0x595909,{'body':_0x2c73be});}async[_0x12409a(0x31d)](_0x20b060){const _0x48f8eb=_0x12409a,_0x5820ea=this[_0x48f8eb(0x22c)]()+'/collaborator';await this[_0x48f8eb(0x2be)][_0x48f8eb(0x1b4)](_0x5820ea,{'body':_0x20b060});}async[_0x12409a(0x29e)](_0x43d242){const _0x43061b=_0x12409a,_0x1327cf=this['_getAPIPrefixPath']()+_0x43061b(0x11c);return(await this['_HTTPService'][_0x43061b(0x2d5)](_0x1327cf,{'params':{'objectID':_0x43d242[_0x43061b(0x189)],'unitID':_0x43d242[_0x43061b(0x2fd)]}}))[_0x43061b(0x3b8)]['collaborators'];}async['putCollaborators'](_0x44434d){const _0x8a9c6f=_0x12409a,_0x25e237=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x8a9c6f(0x2be)][_0x8a9c6f(0x362)](_0x25e237,{'body':_0x44434d});}};yt=Ho([ps(0x0,_0x565e28(_0x1a28a3)),ps(0x1,_0x565e28(_0x301e4e))],yt);var Vo=Object['defineProperty'],Fo=Object[_0x12409a(0xfe)],Wo=(_0x248926,_0x3d1e6c,_0x50638a,_0x398fe0)=>{const _0x3e5d64=_0x12409a;for(var _0x516b55=_0x398fe0>0x1?void 0x0:_0x398fe0?Fo(_0x3d1e6c,_0x50638a):_0x3d1e6c,_0x4956f5=_0x248926[_0x3e5d64(0x3b7)]-0x1,_0x562a08;_0x4956f5>=0x0;_0x4956f5--)(_0x562a08=_0x248926[_0x4956f5])&&(_0x516b55=(_0x398fe0?_0x562a08(_0x3d1e6c,_0x50638a,_0x516b55):_0x562a08(_0x516b55))||_0x516b55);return _0x398fe0&&_0x516b55&&Vo(_0x3d1e6c,_0x50638a,_0x516b55),_0x516b55;},Go=(_0x4b5b26,_0x5bd22c)=>(_0x5799eb,_0x717a4b)=>_0x5bd22c(_0x5799eb,_0x717a4b,_0x4b5b26);let Qe=class{constructor(_0x5aba08){const _0x4fc7fd=_0x12409a;this[_0x4fc7fd(0x2bf)]=_0x5aba08,this[_0x4fc7fd(0x160)]();}[_0x12409a(0x160)](){const _0x19e613=_0x12409a;this[_0x19e613(0x2bf)][_0x19e613(0x18d)]({'interceptor':(_0x406b67,_0x1c38a2)=>{const _0x207256=_0x19e613,_0x542f60=_0x406b67[_0x207256(0x2f4)],_0x18cfeb=_0x293789();return _0x18cfeb&&_0x542f60[_0x207256(0x28a)]('x-univer-host',_0x18cfeb),_0x1c38a2(_0x406b67);}});}};Qe=Wo([Go(0x0,_0x565e28(_0x1a28a3))],Qe);var Yo=Object['defineProperty'],Ko=Object[_0x12409a(0xfe)],Xo=(_0x51d116,_0x179280,_0x58d95d,_0x27b21a)=>{const _0x39e22b=_0x12409a;for(var _0x50c580=_0x27b21a>0x1?void 0x0:_0x27b21a?Ko(_0x179280,_0x58d95d):_0x179280,_0x59d573=_0x51d116[_0x39e22b(0x3b7)]-0x1,_0x2f038a;_0x59d573>=0x0;_0x59d573--)(_0x2f038a=_0x51d116[_0x59d573])&&(_0x50c580=(_0x27b21a?_0x2f038a(_0x179280,_0x58d95d,_0x50c580):_0x2f038a(_0x50c580))||_0x50c580);return _0x27b21a&&_0x50c580&&Yo(_0x179280,_0x58d95d,_0x50c580),_0x50c580;},pt=(_0x5440ec,_0x58a1c8)=>(_0x216e1e,_0x429631)=>_0x58a1c8(_0x216e1e,_0x429631,_0x5440ec);const qo=['image/png',_0x12409a(0x2ea),_0x12409a(0x2c9),_0x12409a(0xd0),_0x12409a(0x2ad)],Jo=0x5*0x400*0x400,zo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Zo='/universer-api/stream/file/upload',Qo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ea=_0x12409a(0xc4);let Ut=class{constructor(_0x19c579,_0x2a27c5,_0x18be39){const _0x37a50b=_0x12409a;l(this,_0x37a50b(0x17e),0x0),l(this,_0x37a50b(0x1bb),new _0x5633a5()),l(this,'change$',this[_0x37a50b(0x1bb)]),l(this,_0x37a50b(0x12a),new Map()),(this[_0x37a50b(0x2bf)]=_0x19c579,this[_0x37a50b(0x150)]=_0x2a27c5,this[_0x37a50b(0x392)]=_0x18be39);}[_0x12409a(0x1be)](_0x2aae0d){const _0x4a48c6=_0x12409a;this[_0x4a48c6(0x17e)]=_0x2aae0d,this[_0x4a48c6(0x1bb)][_0x4a48c6(0x188)](_0x2aae0d);}['getImageSourceCache'](_0x1c7f03,_0x4098e8){const _0x4e3501=_0x12409a;if(_0x4098e8===_0x1b83e4[_0x4e3501(0x2dd)]){const _0x552a6b=new Image();return _0x552a6b[_0x4e3501(0x2f7)]=_0x1c7f03,_0x552a6b;}return this['_imageSourceCache'][_0x4e3501(0x2d5)](_0x1c7f03);}['addImageSourceCache'](_0x34207f,_0x4361e3,_0x141719){const _0x427a35=_0x12409a;_0x4361e3===_0x1b83e4['BASE64']||_0x141719==null||this[_0x427a35(0x12a)][_0x427a35(0x28a)](_0x34207f,_0x141719);}async['getImage'](_0x5effbb){const _0x424e59=_0x12409a;try{const _0x37da14=this[_0x424e59(0x23c)](this['_getSignURL'](),''+_0x5effbb),_0x398294=(await this[_0x424e59(0x2bf)][_0x424e59(0x2d5)](_0x37da14))[_0x424e59(0x3b8)];if(_0x398294[_0x424e59(0x2d7)]&&_0x398294['error']['code']===xs['OK']){const _0x249218=new URL(_0x398294[_0x424e59(0x236)],this[_0x424e59(0x384)]())[_0x424e59(0x226)]();return Promise[_0x424e59(0x154)](_0x249218);}return Promise[_0x424e59(0x178)](_0x398294[_0x424e59(0x2d7)]);}catch(_0x19a280){return Promise[_0x424e59(0x178)](_0x19a280);}}async['saveImage'](_0x309730){const _0x590756=_0x12409a;let _0xe4d7f1='';if(!qo[_0x590756(0x137)](_0x309730[_0x590756(0x198)]))return this[_0x590756(0x406)](),Promise[_0x590756(0x178)](new Error(_0x5daf8d[_0x590756(0x2ca)]));if(_0x309730[_0x590756(0x1b5)]>Jo)return this[_0x590756(0x406)](),Promise['reject'](new Error(_0x5daf8d[_0x590756(0x207)]));try{const _0x3a8b75=new FormData();_0x3a8b75[_0x590756(0x371)](_0x590756(0x39a),_0x309730);const _0x54154d=this[_0x590756(0x392)][_0x590756(0x1c5)](),_0x13cb83=_0x54154d==null?void 0x0:_0x54154d['getUnitId']();if(!_0x13cb83)throw new Error(_0x590756(0x238));const _0x30d3a4=this[_0x590756(0x2dc)]()+'?size='+_0x309730[_0x590756(0x1b5)][_0x590756(0x226)]()+_0x590756(0x38a)+Hs[_0x590756(0x173)]+_0x590756(0x172)+encodeURIComponent(_0x13cb83),_0x4cd076=await(await fetch(_0x30d3a4,{'method':_0x590756(0x38b),'body':_0x3a8b75}))['json']();if(typeof _0x4cd076[_0x590756(0x242)]!='string')return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x5daf8d[_0x590756(0x18c)]));_0xe4d7f1=_0x4cd076[_0x590756(0x242)];}catch{return this[_0x590756(0x406)](),Promise[_0x590756(0x178)](new Error(_0x5daf8d[_0x590756(0x18c)]));}return new Promise((_0x427e8e,_0x20318d)=>{const _0x38054f=_0x590756,_0x59a507=new FileReader();_0x59a507[_0x38054f(0x3e5)](_0x309730),_0x59a507[_0x38054f(0x1b6)]=_0x274a16=>{const _0x23a523=_0x38054f;var _0x1f0925;const _0xf74d0f=(_0x1f0925=_0x274a16[_0x23a523(0x275)])==null?void 0x0:_0x1f0925[_0x23a523(0x372)];if(_0xf74d0f==null){this[_0x23a523(0x406)](),_0x20318d(new Error(_0x5daf8d[_0x23a523(0x18c)]));return;}const _0x39f7ba=_0x5bdceb[_0x23a523(0x26e)](0x6);_0x427e8e({'imageId':_0x39f7ba,'imageSourceType':_0x1b83e4[_0x23a523(0x350)],'source':_0xe4d7f1,'base64Cache':_0xf74d0f,'status':_0x5daf8d[_0x23a523(0x136)]}),this[_0x23a523(0x406)]();};});}['_getUploadFileURL'](){const _0x5aed0e=_0x12409a;var _0xcd6923,_0x487d2c;const _0x17e03c=this[_0x5aed0e(0x150)][_0x5aed0e(0x312)](zo),_0x175e1c=this[_0x5aed0e(0x150)][_0x5aed0e(0x312)]($);return(_0x487d2c=(_0xcd6923=_0x175e1c==null?void 0x0:_0x175e1c[_0x5aed0e(0x2e8)])!=null?_0xcd6923:_0x17e03c)!=null?_0x487d2c:Zo;}[_0x12409a(0x296)](){const _0xdcddd5=_0x12409a;var _0x506732,_0x330e53;const _0x2d39c7=this['_configService']['getConfig'](Qo),_0x5d7917=this['_configService'][_0xdcddd5(0x312)]($);return(_0x330e53=(_0x506732=_0x5d7917==null?void 0x0:_0x5d7917[_0xdcddd5(0x175)])!=null?_0x506732:_0x2d39c7)!=null?_0x330e53:ea;}[_0x12409a(0x384)](){const _0x58a286=_0x12409a;var _0x3565a8;const _0x88c3f=this[_0x58a286(0x150)][_0x58a286(0x312)]($);return(_0x3565a8=_0x88c3f==null?void 0x0:_0x88c3f[_0x58a286(0x39c)])!=null?_0x3565a8:location[_0x58a286(0xd1)];}[_0x12409a(0x23c)](_0x55352d,_0x1ef629){const _0x51f89a=_0x12409a;return _0x55352d[_0x51f89a(0x221)](_0x51f89a(0x31b),_0x1ef629);}['_decreaseWaiting'](){const _0x18a625=_0x12409a;this[_0x18a625(0x17e)]-=0x1,this['_change$'][_0x18a625(0x188)](this[_0x18a625(0x17e)]);}};Ut=Xo([pt(0x0,_0x565e28(_0x1a28a3)),pt(0x1,_0x301e4e),pt(0x2,_0x565e28(_0x114f27))],Ut);var ta=Object[_0x12409a(0x1ee)],sa=Object['getOwnPropertyDescriptor'],ia=(_0x222968,_0xb3d3bd,_0x5b058f,_0x4e2b08)=>{const _0x4847c5=_0x12409a;for(var _0x5f46db=_0x4e2b08>0x1?void 0x0:_0x4e2b08?sa(_0xb3d3bd,_0x5b058f):_0xb3d3bd,_0x5f40fc=_0x222968[_0x4847c5(0x3b7)]-0x1,_0x3bb7c2;_0x5f40fc>=0x0;_0x5f40fc--)(_0x3bb7c2=_0x222968[_0x5f40fc])&&(_0x5f46db=(_0x4e2b08?_0x3bb7c2(_0xb3d3bd,_0x5b058f,_0x5f46db):_0x3bb7c2(_0x5f46db))||_0x5f46db);return _0x4e2b08&&_0x5f46db&&ta(_0xb3d3bd,_0x5b058f,_0x5f46db),_0x5f46db;},ye=(_0x180674,_0x53fb98)=>(_0x4526c0,_0x41eff7)=>_0x53fb98(_0x4526c0,_0x41eff7,_0x180674);let et=class extends _0x5d8701{constructor(_0x244b2c,_0x5a2b9e,_0x2828a7,_0x563fa2,_0x185dd3){const _0x4f5a7b=_0x12409a;super(),this['_injector']=_0x244b2c,this[_0x4f5a7b(0x392)]=_0x5a2b9e,this[_0x4f5a7b(0x16b)]=_0x2828a7,this[_0x4f5a7b(0x2e7)]=_0x563fa2,this[_0x4f5a7b(0xd9)]=_0x185dd3,this['_initUnitPermissionChange'](),this[_0x4f5a7b(0x2a5)]();}[_0x12409a(0x2a5)](){const _0x3a3e2c=_0x12409a,_0x2d8e23=async _0x344d27=>{const _0x50e4c3=_0x4bc7;(await this['_collaborationSessionService'][_0x50e4c3(0x3be)](_0x344d27))[_0x50e4c3(0x3e9)]['pipe'](_0x51df9d(_0x44aefa=>_0x44aefa['eventID']===_0x1a2ec1[_0x50e4c3(0x252)]),_0xeca24a(this[_0x50e4c3(0x394)]))[_0x50e4c3(0x3c1)](_0x3db7cc=>{const _0x57b6ed=_0x50e4c3,_0x2fa01d=_0x3db7cc,{reason:_0x451f32}=_0x2fa01d[_0x57b6ed(0x244)];this['_injector'][_0x57b6ed(0x2d5)](_0x32ad3e)[_0x57b6ed(0x3a1)]({'type':_0x3ea716['Error'],'content':this[_0x57b6ed(0xd9)]['t'](_0x57b6ed(0x410))+'('+_0x451f32+')'}),this['_permissionService']['updatePermissionPoint'](new _0x19d13a(_0x344d27)['id'],!0x1),this[_0x57b6ed(0x2e7)][_0x57b6ed(0xc6)](_0x344d27);});};_0x23085b(this[_0x3a3e2c(0x392)][_0x3a3e2c(0x3dc)](_0x351a49[_0x3a3e2c(0x1e2)]),this[_0x3a3e2c(0x392)][_0x3a3e2c(0x3dc)](_0x351a49[_0x3a3e2c(0x15b)]))[_0x3a3e2c(0x29f)](_0x123c40(_0x48d517=>_0x48d517[_0x3a3e2c(0xe4)]()),_0x51df9d(_0x154ff3=>!_0x272710(_0x154ff3)),_0xeca24a(this[_0x3a3e2c(0x394)]))[_0x3a3e2c(0x3c1)](_0x544a0c=>{_0x2d8e23(_0x544a0c);});}['_initUnitPermissionChange'](){const _0x4fbf01=_0x12409a,_0x3287da=async _0x5c6aa2=>{const _0x34f052=_0x4bc7;(await this[_0x34f052(0x2e7)]['requireSession'](_0x5c6aa2))[_0x34f052(0x3e9)][_0x34f052(0x29f)](_0x51df9d(_0x2b0c77=>_0x2b0c77[_0x34f052(0x331)]===_0x1a2ec1[_0x34f052(0x2d2)]),_0xeca24a(this['dispose$']))[_0x34f052(0x3c1)](_0x3ce48c=>{const _0xe2cd91=_0x34f052,_0x4634f8=_0x3ce48c,{objectId:_0x1d2fe8}=_0x4634f8[_0xe2cd91(0x244)],_0x5a4a75=this[_0xe2cd91(0x26a)][_0xe2cd91(0x2d5)](_0x3b6dd6);_0x1d2fe8===_0x5c6aa2?_0x5a4a75[_0xe2cd91(0x2e3)](_0x5c6aa2):_0x5a4a75[_0xe2cd91(0x19e)](_0x5c6aa2,_0x1d2fe8);});};_0x23085b(this[_0x4fbf01(0x392)][_0x4fbf01(0x3dc)](_0x351a49[_0x4fbf01(0x1e2)]),this['_univerInstanceService'][_0x4fbf01(0x3dc)](_0x351a49[_0x4fbf01(0x15b)]))[_0x4fbf01(0x29f)](_0x123c40(_0x2480d1=>_0x2480d1[_0x4fbf01(0xe4)]()),_0x51df9d(_0x3c576a=>!_0x272710(_0x3c576a)),_0xeca24a(this['dispose$']))[_0x4fbf01(0x3c1)](_0x25ab13=>{_0x3287da(_0x25ab13);});}};et=ia([ye(0x0,_0x565e28(_0x3f178c)),ye(0x1,_0x114f27),ye(0x2,_0x4594fa),ye(0x3,_0x565e28(he)),ye(0x4,_0x565e28(_0x128cab))],et);var na=Object[_0x12409a(0x1ee)],ra=Object[_0x12409a(0xfe)],oa=(_0x2d5a99,_0x3b7174,_0x12a3d5,_0x48bbdf)=>{const _0x5cbc27=_0x12409a;for(var _0x5bcc4d=_0x48bbdf>0x1?void 0x0:_0x48bbdf?ra(_0x3b7174,_0x12a3d5):_0x3b7174,_0x237175=_0x2d5a99[_0x5cbc27(0x3b7)]-0x1,_0x5ac8db;_0x237175>=0x0;_0x237175--)(_0x5ac8db=_0x2d5a99[_0x237175])&&(_0x5bcc4d=(_0x48bbdf?_0x5ac8db(_0x3b7174,_0x12a3d5,_0x5bcc4d):_0x5ac8db(_0x5bcc4d))||_0x5bcc4d);return _0x48bbdf&&_0x5bcc4d&&na(_0x3b7174,_0x12a3d5,_0x5bcc4d),_0x5bcc4d;},vs=(_0x5d5a24,_0x838720)=>(_0x54ad8c,_0x51dac1)=>_0x838720(_0x54ad8c,_0x51dac1,_0x5d5a24);let Nt=class{constructor(_0x527f4d,_0x3bb08f){this['_configService']=_0x527f4d,this['_httpService']=_0x3bb08f;}async[_0x12409a(0x1af)](_0x2e5594,_0x3424bf){const _0x806b74=_0x12409a;var _0x35023a;const {unitID:_0x405fcb,type:_0x3af0e8,revision:_0x407b36=0x0}=_0x3424bf,_0x42587c=this[_0x806b74(0x1b2)]()+'/'+_0x3af0e8+_0x806b74(0x3db)+_0x405fcb+_0x806b74(0x337)+_0x407b36,_0x3bb301=(await this[_0x806b74(0x2bf)][_0x806b74(0x2d5)](_0x42587c))[_0x806b74(0x3b8)],_0x4a0f15=(_0x35023a=_0x3bb301[_0x806b74(0x3d1)])==null?void 0x0:_0x35023a['workbook'];if(_0x4a0f15){const _0x5e4152=_0x4a0f15==null?void 0x0:_0x4a0f15[_0x806b74(0x382)],_0x7715b1=_0x249833[_0x806b74(0x3eb)](_0x3432b1(_0x5e4152));_0x4a0f15[_0x806b74(0x382)]=_0x7715b1,Object[_0x806b74(0x13c)](_0x4a0f15[_0x806b74(0x24b)])['forEach'](([,_0xd67f24])=>{const _0x33b2c0=_0x806b74,_0x452234=_0xd67f24[_0x33b2c0(0x382)],_0x9f7cc8=_0x249833[_0x33b2c0(0x3eb)](_0x3432b1(_0x452234));_0xd67f24[_0x33b2c0(0x382)]=_0x9f7cc8;});}return _0x3bb301;}async['getSheetBlock'](_0x410d9e,_0x2e0446){const _0xc9782=_0x12409a,{unitID:_0x317d43,type:_0x1794eb,blockID:_0x6d6478}=_0x2e0446,_0x220582=this[_0xc9782(0x227)]()+'/'+_0x1794eb+_0xc9782(0x3db)+_0x317d43+'/block/'+_0x6d6478;return(await this['_httpService'][_0xc9782(0x2d5)](_0x220582))['body'];}async[_0x12409a(0x22b)](_0xdfdefc,_0x424b49){const _0x1a74ed=_0x12409a,{unitID:_0x53c0f4,type:_0x5b0f7d,blockID:_0x29ae95}=_0x424b49,_0x27dc2d=this[_0x1a74ed(0x227)]()+_0x1a74ed(0x421)+_0x5b0f7d+'/unit/'+_0x53c0f4+_0x1a74ed(0x421)+_0x29ae95;return(await this[_0x1a74ed(0x2bf)]['get'](_0x27dc2d))[_0x1a74ed(0x3b8)];}async[_0x12409a(0x27a)](_0x18a821,_0x2bfebc){const _0x8d56c=_0x12409a,{unitID:_0x3b4012,type:_0x33ce6d,from:_0x2f58e9,to:_0x3f5b0f}=_0x2bfebc,_0x373fad=this[_0x8d56c(0x227)]()+'/'+_0x33ce6d+_0x8d56c(0x3db)+_0x3b4012+_0x8d56c(0x3c0)+_0x2f58e9+'&to='+_0x3f5b0f;return(await this[_0x8d56c(0x2bf)][_0x8d56c(0x2d5)](_0x373fad))[_0x8d56c(0x3b8)];}['_getSnapshotAPIPrefix'](){const _0xff142=_0x12409a;var _0x4e3a41;return(_0x4e3a41=this['_configService'][_0xff142(0x312)](vn))!=null?_0x4e3a41:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x108550=_0x12409a;var _0xb7eac0,_0x4c5367;const _0x5ae1c7=this['_configService']['getConfig'](Sn),_0x1f4d4e=this[_0x108550(0x150)][_0x108550(0x312)]($);return(_0x4c5367=(_0xb7eac0=_0x1f4d4e==null?void 0x0:_0x1f4d4e[_0x108550(0x203)])!=null?_0xb7eac0:_0x5ae1c7)!=null?_0x4c5367:pn;}async[_0x12409a(0x1a5)](_0x400098,_0x526c2a){const _0x43846b=_0x12409a,_0xce054='/universer-api/snapshot/'+_0x526c2a[_0x43846b(0x198)]+_0x43846b(0x3db)+_0x526c2a['unitID']+'/resources';return(await this[_0x43846b(0x2bf)]['get'](_0xce054,{'params':{'resourceId':JSON[_0x43846b(0x322)](_0x526c2a['resourceIDs'])}}))[_0x43846b(0x3b8)];}['saveSnapshot'](){const _0x12cc7b=_0x12409a;throw new Error(_0x12cc7b(0x1cd));}[_0x12409a(0x222)](){const _0x342402=_0x12409a;throw new Error(_0x342402(0x1cd));}[_0x12409a(0x3ae)](){const _0x5784ee=_0x12409a;throw new Error(_0x5784ee(0x1cd));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x12409a(0x115)](){const _0x5b9ce4=_0x12409a;throw new Error(_0x5b9ce4(0x1cd));}};Nt=oa([vs(0x0,_0x301e4e),vs(0x1,_0x565e28(_0x1a28a3))],Nt);var aa=Object[_0x12409a(0x1ee)],ca=Object[_0x12409a(0xfe)],ha=(_0x585f1a,_0x338f11,_0x4c0d44,_0x2f531e)=>{const _0x174b64=_0x12409a;for(var _0x13596f=_0x2f531e>0x1?void 0x0:_0x2f531e?ca(_0x338f11,_0x4c0d44):_0x338f11,_0x35f753=_0x585f1a[_0x174b64(0x3b7)]-0x1,_0xe7d3a2;_0x35f753>=0x0;_0x35f753--)(_0xe7d3a2=_0x585f1a[_0x35f753])&&(_0x13596f=(_0x2f531e?_0xe7d3a2(_0x338f11,_0x4c0d44,_0x13596f):_0xe7d3a2(_0x13596f))||_0x13596f);return _0x2f531e&&_0x13596f&&aa(_0x338f11,_0x4c0d44,_0x13596f),_0x13596f;},Ue=(_0x3481eb,_0x499010)=>(_0xd31600,_0x2b950d)=>_0x499010(_0xd31600,_0x2b950d,_0x3481eb);let Mt=class extends _0x18741d{constructor(_0x3c2c98,_0xf859fc,_0x839de,_0x5ed39e,_0x7ecbf1){const _0x1ad00f=_0x12409a;super(_0x3c2c98,_0xf859fc,_0x839de),this['_transformService']=_0x5ed39e,this[_0x1ad00f(0x24e)]=_0x7ecbf1;}[_0x12409a(0xea)](_0x4f0284,_0x8b7d49){const _0x43fe34=_0x12409a,_0x2849d3=this[_0x43fe34(0x183)](_0x4f0284);if(_0x2849d3)try{const _0x2eea04=this['_transformStack'](_0x2849d3,_0x8b7d49);this['_substituteUndoStack'](_0x4f0284,_0x2eea04);}catch(_0x401658){this[_0x43fe34(0x24e)]['error'](_0x43fe34(0x114),_0x401658),this['_clearUndo'](_0x4f0284);}const _0x280d22=this[_0x43fe34(0x354)](_0x4f0284);if(_0x280d22)try{const _0x3ca42d=this[_0x43fe34(0x243)](_0x280d22,_0x8b7d49);this[_0x43fe34(0x1de)](_0x4f0284,_0x3ca42d);}catch(_0x84b4a6){this[_0x43fe34(0x24e)][_0x43fe34(0x2d7)](_0x84b4a6),this[_0x43fe34(0xfb)](_0x4f0284);}}[_0x12409a(0x380)](_0x258e2b){const _0x4d3b71=_0x12409a,_0x368f8e=this[_0x4d3b71(0x183)](_0x258e2b);_0x368f8e&&(_0x368f8e[_0x4d3b71(0x3b7)]=0x0,this[_0x4d3b71(0x1f8)]());}[_0x12409a(0xfb)](_0x153d33){const _0xec9fa1=_0x12409a,_0x1e5309=this['_getRedoStack'](_0x153d33);_0x1e5309&&(_0x1e5309[_0xec9fa1(0x3b7)]=0x0,this[_0xec9fa1(0x1f8)]());}[_0x12409a(0xbe)](_0x56ed0c,_0x45e544){const _0x1b6cca=_0x12409a;this['_undoStacks'][_0x1b6cca(0x28a)](_0x56ed0c,_0x45e544),this[_0x1b6cca(0x1f8)]();}[_0x12409a(0x1de)](_0x208c78,_0x2d29a5){const _0x144c5b=_0x12409a;this[_0x144c5b(0x32d)][_0x144c5b(0x28a)](_0x208c78,_0x2d29a5),this[_0x144c5b(0x1f8)]();}[_0x12409a(0x243)](_0x122fd7,_0x3ae6c9){const _0x543697=_0x12409a,_0x1b4629=[];let _0x2d29d6=_0x3ae6c9,_0x3e54db=_0x3ae6c9;for(let _0x11bdc2=_0x122fd7['length']-0x1;_0x11bdc2>=0x0;_0x11bdc2--){const {unitID:_0x519869,undoMutations:_0x75271b,redoMutations:_0x495fce}=_0x122fd7[_0x11bdc2],_0x1b0241=this[_0x543697(0x3e7)]['transformMutationsWithChangeset'](_0x2d29d6,_0x75271b),_0x31b2f6=this[_0x543697(0x3e7)]['transformMutationsWithChangeset'](_0x3e54db,_0x495fce);if(_0x5c083e(_0x1b0241)||_0x5c083e(_0x31b2f6)){this[_0x543697(0x24e)][_0x543697(0x2d7)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x1b0241,_0x31b2f6);break;}_0x2d29d6=_0x1b0241[_0x543697(0x1a4)],_0x3e54db=_0x31b2f6['c1Prime'],_0x1b4629[_0x543697(0x325)]({'unitID':_0x519869,'undoMutations':_0x1b0241[_0x543697(0x346)],'redoMutations':_0x31b2f6['m2Prime']});}return _0x1b4629['reverse']();}};Mt=ha([Ue(0x0,_0x114f27),Ue(0x1,_0x2af4cf),Ue(0x2,_0x26f27f),Ue(0x3,_0x5dfa67),Ue(0x4,_0x2fef42)],Mt);class la extends _0x5d8701{constructor(){const _0x2a9fbd=_0x12409a;super(),l(this,_0x2a9fbd(0x425)),this[_0x2a9fbd(0x425)]=_0x983b61(window,_0x2a9fbd(0x369))['pipe'](_0x2d78ee(this[_0x2a9fbd(0x394)]),_0x27a368(0x1),_0x56c97a(void 0x0));}[_0x12409a(0x3d3)](_0x40f3db,_0x2cf9c6,_0x1d5e3b=!0x1){const _0x36c403=_0x12409a,_0x203fe1=new URL(window[_0x36c403(0x313)]['href']);_0x203fe1[_0x36c403(0x181)]['set'](_0x40f3db,_0x2cf9c6),_0x1d5e3b?window['history'][_0x36c403(0x11a)]('','',_0x203fe1[_0x36c403(0x226)]()):window['history'][_0x36c403(0x2b2)]('','',_0x203fe1[_0x36c403(0x226)]());}[_0x12409a(0x16c)](_0x295362,_0x54f289=!0x1){const _0x2c994a=_0x12409a,_0x182924=new URL(window[_0x2c994a(0x313)]['href']);_0x182924[_0x2c994a(0x181)][_0x2c994a(0xf3)](_0x295362),_0x54f289?window['history'][_0x2c994a(0x11a)]('','',_0x182924['toString']()):window[_0x2c994a(0x414)][_0x2c994a(0x2b2)]('','',_0x182924[_0x2c994a(0x226)]());}['getParam'](_0x4b9cc8){const _0x32149f=_0x12409a;var _0xb01276;return(_0xb01276=new URL(window[_0x32149f(0x313)][_0x32149f(0x3b5)])['searchParams'][_0x32149f(0x2d5)](_0x4b9cc8))!=null?_0xb01276:void 0x0;}}var Js=Object['defineProperty'],_a=Object[_0x12409a(0xfe)],ua=(_0x41ec7f,_0x86e6da,_0x4987b5)=>_0x86e6da in _0x41ec7f?Js(_0x41ec7f,_0x86e6da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4987b5}):_0x41ec7f[_0x86e6da]=_0x4987b5,da=(_0x4fe364,_0x5a1e83,_0x3e0629,_0x2934ff)=>{for(var _0x584e31=_0x2934ff>0x1?void 0x0:_0x2934ff?_a(_0x5a1e83,_0x3e0629):_0x5a1e83,_0x473663=_0x4fe364['length']-0x1,_0x4c1ad5;_0x473663>=0x0;_0x473663--)(_0x4c1ad5=_0x4fe364[_0x473663])&&(_0x584e31=(_0x2934ff?_0x4c1ad5(_0x5a1e83,_0x3e0629,_0x584e31):_0x4c1ad5(_0x584e31))||_0x584e31);return _0x2934ff&&_0x584e31&&Js(_0x5a1e83,_0x3e0629,_0x584e31),_0x584e31;},Ve=(_0x159402,_0x556cbc)=>(_0xa41eef,_0xfab367)=>_0x556cbc(_0xa41eef,_0xfab367,_0x159402),fa=(_0x4b8aad,_0x34d985,_0x2f0d24)=>ua(_0x4b8aad,_0x34d985+'',_0x2f0d24);const ma=_0x12409a(0x118);let At=class extends _0x2545f7{constructor(_0x10629d=An,_0x5247fc,_0x26f150,_0x2dc1d6,_0x39bcc6){const _0x5ce413=_0x12409a;super(),this[_0x5ce413(0x13d)]=_0x10629d,this[_0x5ce413(0x24e)]=_0x5247fc,this[_0x5ce413(0x209)]=_0x26f150,this[_0x5ce413(0x26a)]=_0x2dc1d6,this[_0x5ce413(0x150)]=_0x39bcc6;const {..._0x25fc4f}=this[_0x5ce413(0x13d)];this['_configService'][_0x5ce413(0x3ab)]($,_0x25fc4f);}['onStarting'](){const _0x516370=_0x12409a;this['_registerDependencies'](),_0xeba9f1(this[_0x516370(0x26a)],[[ve],[Je],[et]]);}[_0x12409a(0x429)](){const _0x4df212=_0x12409a;_0xeba9f1(this[_0x4df212(0x26a)],[[ze]]);}['onRendered'](){const _0x31d436=_0x12409a;this[_0x31d436(0xbf)]();}[_0x12409a(0x343)](){const _0x8c5563=_0x12409a;var _0x4d459d,_0x4f152e,_0xab91d,_0x3a25a7;this['_injector'][_0x8c5563(0x128)](_0x26c70e)&&this[_0x8c5563(0x24e)][_0x8c5563(0x2d7)](_0x8c5563(0x3f5),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x27c3fa=[[_0x26c70e,{'useClass':Mt}],[he],[Gt],[_0x1a28a3],[qs,{'useClass':la}],[ce],[w],[_0x9095c5],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Bs],[et],[ks,{'useClass':(_0x4f152e=(_0x4d459d=this[_0x8c5563(0x13d)])==null?void 0x0:_0x4d459d[_0x8c5563(0x363)])!=null?_0x4f152e:Ct}],[_0x3545d6,{'useClass':_0x526b8a}],[_0x2bb579,{'useClass':Nt}],[_0x57894e,{'useClass':yt}],[_0x45bed1,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0xab91d=this[_0x8c5563(0x13d)])!=null&&_0xab91d[_0x8c5563(0x1c3)]&&_0x27c3fa[_0x8c5563(0x325)]([tt,{'useClass':fr}]),_0x27c3fa=_0x48fc26(_0x27c3fa,(_0x3a25a7=this['_config'])==null?void 0x0:_0x3a25a7['override']),_0x27c3fa['forEach'](_0x4dea0a=>this[_0x8c5563(0x26a)][_0x8c5563(0x22d)](_0x4dea0a)),this[_0x8c5563(0x391)]();}[_0x12409a(0xbf)](){const _0x19098a=_0x12409a;this[_0x19098a(0x2f2)](this[_0x19098a(0x209)][_0x19098a(0x1d2)](_0x351a49[_0x19098a(0x15b)],[wt])),this[_0x19098a(0x2f2)](this['_renderManagerService'][_0x19098a(0x1d2)](_0x351a49['UNIVER_SHEET'],[Pt]));}[_0x12409a(0x391)](){const _0x37eefa=_0x12409a;var _0x76b529,_0xffeded;this[_0x37eefa(0x26a)][_0x37eefa(0x2d5)](_0x1a28a3)[_0x37eefa(0x18d)]({'priority':0x14,'interceptor':_0x27806c({'maxParallel':0x6})}),this[_0x37eefa(0x26a)]['get'](Qe),(_0x76b529=this[_0x37eefa(0x13d)])!=null&&_0x76b529['enableOfflineEditing']||this['_injector'][_0x37eefa(0x2d5)](w)[_0x37eefa(0x2d8)](),(_0xffeded=this[_0x37eefa(0x13d)])!=null&&_0xffeded[_0x37eefa(0x33b)]&&this['_injector']['get'](Ze),this[_0x37eefa(0x26a)]['get'](Le),this[_0x37eefa(0x26a)][_0x37eefa(0x128)](Me)&&this['_injector']['get'](Me);}};function _0x4bc7(_0x14f30e,_0x42ba31){const _0xe1d464=_0xe1d4();return _0x4bc7=function(_0x4bc707,_0x476a40){_0x4bc707=_0x4bc707-0xaf;let _0x177bc7=_0xe1d464[_0x4bc707];return _0x177bc7;},_0x4bc7(_0x14f30e,_0x42ba31);}fa(At,'pluginName',ma),At=da([_0x2737b3(_0x33d032),Ve(0x1,_0x2fef42),Ve(0x2,_0x3872a8),Ve(0x3,_0x565e28(_0x3f178c)),Ve(0x4,_0x301e4e)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,Bs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,$s as HEARTBEAT_TIMEOUT_KEY,ks as ICollaborationSocketService,qs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
|