@univerjs-pro/collaboration-client 0.4.0-nightly.202410121605 → 0.4.0-nightly.202410141110
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 _0x2cf6ff=_0xd63a;(function(_0x396ea2,_0x3881a0){const _0xdbef76=_0xd63a,_0x25086d=_0x396ea2();while(!![]){try{const _0x1a95b5=parseInt(_0xdbef76(0xfc))/0x1+-parseInt(_0xdbef76(0x31b))/0x2+parseInt(_0xdbef76(0x304))/0x3*(parseInt(_0xdbef76(0x2ef))/0x4)+parseInt(_0xdbef76(0x3cf))/0x5*(parseInt(_0xdbef76(0xe0))/0x6)+-parseInt(_0xdbef76(0x38e))/0x7*(-parseInt(_0xdbef76(0x2e3))/0x8)+parseInt(_0xdbef76(0x29f))/0x9*(-parseInt(_0xdbef76(0x401))/0xa)+parseInt(_0xdbef76(0x220))/0xb*(-parseInt(_0xdbef76(0x1c4))/0xc);if(_0x1a95b5===_0x3881a0)break;else _0x25086d['push'](_0x25086d['shift']());}catch(_0xd50fa7){_0x25086d['push'](_0x25086d['shift']());}}}(_0x38c5,0xda12f));var zs=Object['defineProperty'],Zs=(_0x7aa129,_0x314f3b,_0x58e409)=>_0x314f3b in _0x7aa129?zs(_0x7aa129,_0x314f3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58e409}):_0x7aa129[_0x314f3b]=_0x58e409,l=(_0xbf11bd,_0x5a791b,_0x3c77e5)=>Zs(_0xbf11bd,typeof _0x5a791b!=_0x2cf6ff(0x13b)?_0x5a791b+'':_0x5a791b,_0x3c77e5);import{createIdentifier as _0x131476,Inject as _0x11c4b2,Disposable as _0x28d30b,DisposableCollection as _0x435f5a,toDisposable as _0x57baeb,IConfigService as _0x5d22a5,ILogService as _0x58af89,UserManagerService as _0xffde51,UniverInstanceType as _0x5ba247,IUniverInstanceService as _0x3a69fb,LocaleService as _0x56c312,Optional as _0x32a7fe,RxDisposable as _0x424705,Injector as _0x3ca714,Tools as _0x3d523e,ILocalStorageService as _0x100b17,ICommandService as _0x339bfb,JSONX as _0x295634,CommandType as _0xccd063,IPermissionService as _0xbe145,IUndoRedoService as _0x55c638,sequenceExecute as _0x2a6345,debounce as _0x25bd20,Rectangle as _0x4df9d6,COLORS as _0xcac1ea,ColorKit as _0x449a4e,ThemeService as _0x156127,fromEventSubject as _0x1701f0,useDependency as _0x15d69a,connectInjector as _0x1be696,Workbook as _0x18ae05,isInternalEditorID as _0x5a1828,LocalUndoRedoService as _0x53b8f9,IContextService as _0x448680,DependentOn as _0x1044e4,Plugin as _0x4c33c6,touchDependencies as _0x34d48e,IAuthzIoService as _0x58edf4,mergeOverrideWithDependencies as _0x3d2851}from'@univerjs/core';import{Subject as _0x5ebd47,merge as _0x577df9,takeUntil as _0x5f0229,BehaviorSubject as _0xa8903e,distinctUntilChanged as _0x3c67f1,fromEvent as _0x4f5602,map as _0xe7708d,shareReplay as _0xbb5cb7,take as _0x3507ef,of as _0x1a6ece,debounceTime as _0x13e7ad,filter as _0x332bf1,switchMap as _0x42baee,combineLatest as _0xb1d5f6,concatMap as _0x20f242,mapTo as _0x17764b}from'rxjs';import{map as _0x4a2a85,take as _0x1fdc95,filter as _0x584f39,delay as _0x2972c0,throttleTime as _0x5b2033,takeUntil as _0x1cc51a,switchMap as _0xc1da79}from'rxjs/operators';import{MessageType as _0x3aebb1,Tooltip as _0x2b5e7f}from'@univerjs/design';import{IBeforeCloseService as _0x43afaa,IMessageService as _0x3d2cd0,INotificationService as _0x3cb956,useObservable as _0x34de5b,BuiltInUIPart as _0x2617bd,IUIPartsService as _0x2082c6}from'@univerjs/ui';import{HTTPService as _0xc66412,WebSocketService as _0x3b3681,MergeInterceptorFactory as _0x273707,HTTPRequest as _0x2fdb11,IHTTPImplementation as _0x447502,XHRHTTPImplementation as _0x56ea82,ThresholdInterceptorFactory as _0x41e9e4}from'@univerjs/network';import{CollaborationEvent as _0x236400,parseChangesetToProtocol as _0x527dbc,ISnapshotServerService as _0x473b7c,isTransformMutationFailure as _0x265ca1,isTransformMutationsWithChangesetSuccess as _0x61acc5,ITransformService as _0x1d81ff,RevisionService as _0x382160,mapDocumentTypeToUniverType as _0x4053f9,isTransformChangesetsSuccess as _0x535544,CompressMutationService as _0x5b8dc0,parseProtocolChangeset as _0x2f495d,SnapshotService as _0x3330fb,textEncoder as _0x55c956,b64DecodeUnicode as _0xf37c0a,isTransformMutationsWithChangesetFailure as _0x32c4b6,UniverCollaborationPlugin as _0x19cb4a}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x45254d}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x253567,RichTextEditingMutation as _0x137108,SetTextSelectionsOperation as _0x29ed30,DocSkeletonManagerService as _0x4498de}from'@univerjs/docs';import{DocIMEInputManagerService as _0x7e116c,DocStateChangeManagerService as _0x488409,NodePositionConvertToCursor as _0xd5545a,isValidRectRange as _0x32be08,NodePositionConvertToRectRange as _0x4e719a,TEXT_RANGE_LAYER_INDEX as _0x35e282,SetDocZoomRatioOperation as _0x5c3d7a}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5170b3,SetSelectionsOperation as _0xccbe27,InsertSheetMutation as _0x46f3fa,EmptyMutation as _0x2fd71f,WorkbookEditablePermission as _0x472746,RefRangeService as _0x29e128,EffectRefRangId as _0x1b652a,handleIRemoveRow as _0x33362a,handleIRemoveCol as _0x48280d,handleMoveRange as _0x20bba7,handleInsertRow as _0x3e245b,handleInsertRangeMoveRight as _0x4bb0be,handleInsertRangeMoveDown as _0x5ebf3e,handleInsertCol as _0x41eb19,handleDeleteRangeMoveUp as _0x6ffff2,handleDeleteRangeMoveLeft as _0x32c2ac,runRefRangeMutations as _0x4f2272,SetWorksheetActivateCommand as _0x1a6f76}from'@univerjs/sheets';import{IRenderManagerService as _0x45596d,Shape as _0x3224fa,Rect as _0xfe6739,getColor as _0xfc94f4,RegularPolygon as _0xfff04a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x54eff9,Vector2 as _0x57ce41}from'@univerjs/engine-render';import{ImageSourceType as _0x48f90c,ImageUploadStatusType as _0x139819,IImageIoService as _0x4fca93}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x276fac,serializeRangeWithSheet as _0x22216c}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x185e08,VIEWPORT_KEY as _0x4d1621,getCoordByCell as _0x26399,getSheetObject as _0x37206a,SheetPermissionInitController as _0x4a74e1}from'@univerjs/sheets-ui';import _0x3700dc,{forwardRef as _0x2e9a8e,useRef as _0x56832d,createElement as _0x1c6405,useCallback as _0x57b3b1}from'react';import{IRemoteInstanceService as _0x157237}from'@univerjs/rpc';import{getAttachHeader as _0x40e740}from'@univerjs-pro/license';const dn=_0x2cf6ff(0x33a),fn=_0x2cf6ff(0x18d),mn=_0x2cf6ff(0x103),Oa=_0x2cf6ff(0x372),gn=0x7d0,Sn='COLLAB_WEB_SOCKET_URL',pn='ws://127.0.0.1:8000/universer-api/comb/connect',vn=_0x2cf6ff(0x1d6),In=0x7530,Ns=_0x2cf6ff(0x299),Us=0x4e20,En=0x4e20,Cn=_0x2cf6ff(0x149),bn=0x3,Tn=_0x2cf6ff(0x24f),Rn=0x3e8,On=_0x2cf6ff(0x178),Dn=_0x2cf6ff(0x2bc),wn=_0x2cf6ff(0x274),Pn='/universer-api/oidc/authpage';var Ms=(_0x5659bc=>(_0x5659bc[_0x5659bc['UNDEFINED']=0x0]=_0x2cf6ff(0x124),_0x5659bc[_0x5659bc['OK']=0x1]='OK',_0x5659bc[_0x5659bc[_0x2cf6ff(0x21c)]=0x2]=_0x2cf6ff(0x21c),_0x5659bc[_0x5659bc[_0x2cf6ff(0x323)]=0x3]=_0x2cf6ff(0x323),_0x5659bc[_0x5659bc[_0x2cf6ff(0x36c)]=0x4]='NOT_FOUND',_0x5659bc[_0x5659bc['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x5659bc[_0x5659bc[_0x2cf6ff(0x334)]=0x6]=_0x2cf6ff(0x334),_0x5659bc[_0x5659bc[_0x2cf6ff(0x429)]=0x7]=_0x2cf6ff(0x429),_0x5659bc[_0x5659bc[_0x2cf6ff(0x3e7)]=0x8]=_0x2cf6ff(0x3e7),_0x5659bc[_0x5659bc['COMPLETION_FINISHED']=0x9]=_0x2cf6ff(0xf2),_0x5659bc[_0x5659bc[_0x2cf6ff(0x255)]=0x1389]=_0x2cf6ff(0x255),_0x5659bc[_0x5659bc['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2cf6ff(0x2a8),_0x5659bc[_0x5659bc[_0x2cf6ff(0x32e)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5659bc[_0x5659bc[_0x2cf6ff(0x254)]=0x1b59]=_0x2cf6ff(0x254),_0x5659bc[_0x5659bc[_0x2cf6ff(0x2b4)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5659bc[_0x5659bc[_0x2cf6ff(0x35e)]=0x1b5b]=_0x2cf6ff(0x35e),_0x5659bc[_0x5659bc['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x2cf6ff(0x293),_0x5659bc[_0x5659bc[_0x2cf6ff(0x2f3)]=0x1f41]=_0x2cf6ff(0x2f3),_0x5659bc[_0x5659bc[_0x2cf6ff(0x11a)]=0x2329]=_0x2cf6ff(0x11a),_0x5659bc[_0x5659bc[_0x2cf6ff(0x41b)]=0x232a]=_0x2cf6ff(0x41b),_0x5659bc[_0x5659bc[_0x2cf6ff(0x22e)]=0x232b]=_0x2cf6ff(0x22e),_0x5659bc[_0x5659bc[_0x2cf6ff(0x399)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5659bc[_0x5659bc[_0x2cf6ff(0x403)]=0x232d]=_0x2cf6ff(0x403),_0x5659bc[_0x5659bc[_0x2cf6ff(0x451)]=0x2711]=_0x2cf6ff(0x451),_0x5659bc[_0x5659bc[_0x2cf6ff(0x2fa)]=0x2712]=_0x2cf6ff(0x2fa),_0x5659bc[_0x5659bc['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2cf6ff(0x2c2),_0x5659bc[_0x5659bc[_0x2cf6ff(0x331)]=0x2714]=_0x2cf6ff(0x331),_0x5659bc[_0x5659bc[_0x2cf6ff(0x427)]=-0x1]=_0x2cf6ff(0x427),_0x5659bc))(Ms||{}),H=(_0x350762=>(_0x350762[_0x350762['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x350762[_0x350762[_0x2cf6ff(0x359)]=0x1]=_0x2cf6ff(0x359),_0x350762[_0x350762[_0x2cf6ff(0x43d)]=0x2]='UNIVER_SHEET',_0x350762[_0x350762[_0x2cf6ff(0x1bc)]=0x3]='UNIVER_SLIDE',_0x350762[_0x350762['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x350762[_0x350762[_0x2cf6ff(0x427)]=-0x1]=_0x2cf6ff(0x427),_0x350762))(H||{}),I=(_0x271c4a=>(_0x271c4a[_0x271c4a[_0x2cf6ff(0x1d9)]=0x0]=_0x2cf6ff(0x1d9),_0x271c4a[_0x271c4a['HELLO']=0x1]=_0x2cf6ff(0x3fd),_0x271c4a[_0x271c4a[_0x2cf6ff(0x171)]=0x2]=_0x2cf6ff(0x171),_0x271c4a[_0x271c4a[_0x2cf6ff(0x14c)]=0x3]=_0x2cf6ff(0x14c),_0x271c4a[_0x271c4a[_0x2cf6ff(0x44b)]=0x4]='INGEST',_0x271c4a[_0x271c4a[_0x2cf6ff(0x116)]=0x5]=_0x2cf6ff(0x116),_0x271c4a[_0x271c4a[_0x2cf6ff(0x262)]=0x6]=_0x2cf6ff(0x262),_0x271c4a[_0x271c4a[_0x2cf6ff(0x427)]=-0x1]=_0x2cf6ff(0x427),_0x271c4a))(I||{}),kt=(_0x428204=>(_0x428204[_0x428204[_0x2cf6ff(0x3d8)]=0x0]=_0x2cf6ff(0x3d8),_0x428204[_0x428204['OK']=0x1]='OK',_0x428204[_0x428204[_0x2cf6ff(0x3a4)]=0x2]=_0x2cf6ff(0x3a4),_0x428204[_0x428204['UNRECOGNIZED']=-0x1]=_0x2cf6ff(0x427),_0x428204))(kt||{}),As=(_0x185874=>(_0x185874[_0x185874[_0x2cf6ff(0x3e4)]=0x0]=_0x2cf6ff(0x3e4),_0x185874[_0x185874[_0x2cf6ff(0x1c2)]=0x1]=_0x2cf6ff(0x1c2),_0x185874[_0x185874['HttpExport']=0x2]=_0x2cf6ff(0x2ae),_0x185874[_0x185874['UnitEmbedded']=0x3]=_0x2cf6ff(0x211),_0x185874[_0x185874[_0x2cf6ff(0x315)]=0x4]=_0x2cf6ff(0x315),_0x185874[_0x185874['UNRECOGNIZED']=-0x1]=_0x2cf6ff(0x427),_0x185874))(As||{});const L=_0x2cf6ff(0x12d),yn={};function Nn(_0x23f4d2){const _0x57eae3=_0x2cf6ff;var _0x2891c0,_0x2f3bd4,_0x3aba0a,_0x4a4cd9;const _0x378e97=_0x23f4d2[_0x57eae3(0x406)],_0x1303c2=JSON[_0x57eae3(0x3ba)](_0x378e97);switch(_0x1303c2[_0x57eae3(0x411)]){case I['HEARTBEAT']:case I['HELLO']:{const _0x24540a=_0x1303c2[_0x57eae3(0x18c)];return{..._0x1303c2,'data':_0x24540a,'cmd':_0x1303c2[_0x57eae3(0x411)]};}case I[_0x57eae3(0x171)]:{const _0x337706=_0x1303c2[_0x57eae3(0x3f3)];return{..._0x1303c2,'data':_0x337706,'cmd':_0x1303c2[_0x57eae3(0x411)]};}case I['RECV']:{const _0x5baf61=_0x1303c2[_0x57eae3(0x278)];switch(_0x5baf61[_0x57eae3(0x446)]){case _0x236400[_0x57eae3(0x14e)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x2891c0=_0x5baf61[_0x57eae3(0x106)])==null?void 0x0:_0x2891c0['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x1bb)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x2f3bd4=_0x5baf61[_0x57eae3(0x35d)])==null?void 0x0:_0x2f3bd4['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['NEW_CHANGESETS']:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x3aba0a=_0x5baf61[_0x57eae3(0x37a)])==null?void 0x0:_0x3aba0a['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x18e)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':(_0x4a4cd9=_0x5baf61[_0x57eae3(0x302)])==null?void 0x0:_0x4a4cd9['cs']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['UPDATE_CURSOR']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x2c5)]},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['USERS_ENTER']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x36f)]},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['USERS_LEAVE']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['leaveEvent']},'cmd':_0x1303c2['cmd']};case _0x236400['LIVESHARE_NEW_HOST']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['liveShareNewHost']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x135)]:case _0x236400[_0x57eae3(0x233)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x257)]},'cmd':_0x1303c2['cmd']};case _0x236400[_0x57eae3(0x3ac)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['liveShareNewHost']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x115)]:return{..._0x1303c2,'data':_0x5baf61,'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400[_0x57eae3(0x25b)]:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['commentUpdateEvent']},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['UPDATE_PERMISSION_OBJ']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61[_0x57eae3(0x141)]},'cmd':_0x1303c2[_0x57eae3(0x411)]};case _0x236400['SHOULD_CLOSE_CONN']:return{..._0x1303c2,'data':{..._0x5baf61,'data':_0x5baf61['shouldCloseConn']},'cmd':_0x1303c2[_0x57eae3(0x411)]};default:return _0x1303c2;}}default:return _0x1303c2;}}function Un(_0x46bbd4){const _0x38b050=_0x2cf6ff;switch(_0x46bbd4[_0x38b050(0x411)]){case I['HEARTBEAT']:case I[_0x38b050(0x3fd)]:return JSON[_0x38b050(0x1ff)]({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4[_0x38b050(0x2f6)]});case I[_0x38b050(0x44b)]:{let _0x4cb720;switch(_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x446)]){case _0x236400[_0x38b050(0x3a2)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x3a2)],'updateCursorEvent':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x406)]};break;}case _0x236400['USERS_LEAVE']:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x375)],'leaveEvent':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x3e3)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x3e3)],'joinEvent':_0x46bbd4['data'][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x2f9)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x2f9)],'liveShareNewHost':_0x46bbd4['data'][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x233)]:{_0x4cb720={'eventID':_0x236400['LIVESHARE_OPERATION'],'liveShareOperation':_0x46bbd4[_0x38b050(0x406)]['data']};break;}case _0x236400[_0x38b050(0x3ac)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x3ac)],'liveShareTerminate':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x406)]};break;}case _0x236400[_0x38b050(0x130)]:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x130)],'liveShareRequestHost':_0x46bbd4['data'][_0x38b050(0x406)]};break;}case _0x236400['LIVESHARE_FETCH_OPERATIONS']:{_0x4cb720={'eventID':_0x236400[_0x38b050(0x135)]};break;}default:_0x4cb720={'eventID':_0x46bbd4[_0x38b050(0x406)][_0x38b050(0x446)]};}return JSON['stringify']({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4['routeKey'],'collaMsg':_0x4cb720});}case I[_0x38b050(0x171)]:return JSON[_0x38b050(0x1ff)]({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4[_0x38b050(0x2f6)],'joinReq':_0x46bbd4[_0x38b050(0x406)]});case I[_0x38b050(0x14c)]:return JSON[_0x38b050(0x1ff)]({'cmd':_0x46bbd4[_0x38b050(0x411)],'routeKey':_0x46bbd4[_0x38b050(0x2f6)],'leaveReq':_0x46bbd4[_0x38b050(0x406)]});default:throw new Error(_0x38b050(0xee));}}var Mn=Object[_0x2cf6ff(0x2d3)],An=Object[_0x2cf6ff(0x289)],Ln=(_0x22a2bc,_0x191409,_0x12f39d,_0x3492ed)=>{const _0x4324da=_0x2cf6ff;for(var _0x29cef9=_0x3492ed>0x1?void 0x0:_0x3492ed?An(_0x191409,_0x12f39d):_0x191409,_0x55ca9d=_0x22a2bc[_0x4324da(0x183)]-0x1,_0x186334;_0x55ca9d>=0x0;_0x55ca9d--)(_0x186334=_0x22a2bc[_0x55ca9d])&&(_0x29cef9=(_0x3492ed?_0x186334(_0x191409,_0x12f39d,_0x29cef9):_0x186334(_0x29cef9))||_0x29cef9);return _0x3492ed&&_0x29cef9&&Mn(_0x191409,_0x12f39d,_0x29cef9),_0x29cef9;},Re=(_0x5d6dfe,_0x7760b8)=>(_0x2f43bc,_0x457f1e)=>_0x7760b8(_0x2f43bc,_0x457f1e,_0x5d6dfe);const Ls=_0x131476('univer-pro.collaboration-client-socket-service');function $n(_0x1ea56a,_0x33231b,_0x7d81f){const _0x31cecf=_0x2cf6ff;return _0x1ea56a+'/'+_0x33231b+'/unit/'+_0x7d81f+_0x31cecf(0x2d8);}let Et=class extends _0x28d30b{constructor(_0x4ac66f,_0x4d5e08,_0x19cdee,_0x5296ae,_0xb69c3b){const _0x1b2007=_0x2cf6ff;super(),this[_0x1b2007(0x454)]=_0x4ac66f,this[_0x1b2007(0x29d)]=_0x4d5e08,this[_0x1b2007(0x17b)]=_0x19cdee,this[_0x1b2007(0x2f8)]=_0x5296ae,this[_0x1b2007(0x15d)]=_0xb69c3b;}[_0x2cf6ff(0x2eb)](_0x59630c){const _0x1cc29d=_0x2cf6ff,_0xdafaff=this[_0x1cc29d(0x29d)][_0x1cc29d(0x2eb)](_0x59630c);if(!_0xdafaff)throw new Error(_0x1cc29d(0x1f7));const _0x3c47d9=new _0x435f5a(),_0xf6261f=new _0x5ebd47();_0x3c47d9[_0x1cc29d(0x3a8)](_0xdafaff[_0x1cc29d(0x425)][_0x1cc29d(0x360)](_0x157909=>_0xf6261f['next'](_0x157909))),_0x3c47d9[_0x1cc29d(0x3a8)](_0x57baeb(()=>_0xf6261f[_0x1cc29d(0x307)]()));const _0x1b8edf=new _0x5ebd47();_0x3c47d9[_0x1cc29d(0x3a8)](_0xdafaff['error$'][_0x1cc29d(0x360)](_0xe74b61=>_0x1b8edf[_0x1cc29d(0x2ad)](_0xe74b61))),_0x3c47d9[_0x1cc29d(0x3a8)](_0x57baeb(()=>_0x1b8edf['complete']()));const _0x1eb65c=new _0x5ebd47();_0x3c47d9[_0x1cc29d(0x3a8)](_0xdafaff['message$'][_0x1cc29d(0x360)](_0x3cf5d0=>{const _0x5a9a4e=_0x1cc29d,_0x223c75=Nn(_0x3cf5d0);_0x1eb65c[_0x5a9a4e(0x2ad)](_0x223c75);})),_0x3c47d9[_0x1cc29d(0x3a8)](_0x57baeb(()=>_0x1eb65c[_0x1cc29d(0x307)]()));let _0x4c1a69;const _0x586d45=()=>{const _0x2682da=_0x1cc29d;_0x1b8edf[_0x2682da(0x2ad)](new Event(_0x2682da(0x3ce))),_0xf6261f[_0x2682da(0x2ad)](new CloseEvent('connection\x20error')),_0x4c1a69['close']();};return _0x4c1a69={'memberID':'','close$':_0xf6261f['asObservable'](),'error$':_0x1b8edf[_0x1cc29d(0x16e)](),'open$':_0xdafaff[_0x1cc29d(0x210)],'message$':_0x1eb65c['asObservable'](),'send':_0x3dd307=>{const _0x266f2d=_0x1cc29d;if(_0x3dd307['cmd']===I[_0x266f2d(0x44b)]){if(_0x3dd307['data'][_0x266f2d(0x446)]===_0x236400[_0x266f2d(0x28c)]){this['_submitChangeset'](_0x4c1a69,_0x3dd307['data'])[_0x266f2d(0x10b)](_0xcfeff6=>{const _0x3e596e=_0x266f2d;this[_0x3e596e(0x2f8)]['error'](_0xcfeff6),_0x586d45();});return;}if(_0x3dd307[_0x266f2d(0x406)][_0x266f2d(0x446)]===_0x236400['FETCH_MISSING']){const _0x513258=_0x3dd307[_0x266f2d(0x406)];this['_fetchMissChangesets'](_0x513258)[_0x266f2d(0x1ed)](_0x19ae82=>{const _0x2d8c59=_0x266f2d;_0x1eb65c['next']({'cmd':I[_0x2d8c59(0x262)],'code':kt['OK'],'routeKey':_0x513258[_0x2d8c59(0x406)]['unitID'],'routeType':'','data':{'eventID':_0x236400['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x19ae82}}});})[_0x266f2d(0x10b)](_0x8df044=>{const _0x56b78d=_0x266f2d;this[_0x56b78d(0x2f8)][_0x56b78d(0x36e)](_0x8df044),_0x586d45();});return;}}_0xdafaff[_0x266f2d(0x329)](Un(_0x3dd307));},'close':()=>{const _0x4c3ab3=_0x1cc29d;_0xdafaff[_0x4c3ab3(0x108)](),_0x3c47d9[_0x4c3ab3(0x275)]();}},_0x4c1a69;}async[_0x2cf6ff(0x42b)](_0x2f1d9b,_0x5f0b49){const _0x5aa2cc=_0x2cf6ff;var _0x6a394b,_0x44aa98;const {unitType:_0x4c5498,unitID:_0x224db3,changeset:_0x33691f}=_0x5f0b49[_0x5aa2cc(0x406)],_0x7be958={'unitID':_0x224db3,'memberID':_0x2f1d9b['memberID'],'type':_0x4c5498,'changeset':_0x527dbc(_0x33691f)},_0x167b7d=this[_0x5aa2cc(0x17b)]['getConfig'](On),_0x28af86=this[_0x5aa2cc(0x17b)][_0x5aa2cc(0x30f)](L),_0x482fef=$n((_0x44aa98=(_0x6a394b=_0x28af86==null?void 0x0:_0x28af86['collabSubmitChangesetUrl'])!=null?_0x6a394b:_0x167b7d)!=null?_0x44aa98:Dn,_0x4c5498,_0x224db3);try{await this[_0x5aa2cc(0x454)][_0x5aa2cc(0x236)](_0x482fef,{'body':_0x7be958});}catch(_0x36c3d5){throw this[_0x5aa2cc(0x2f8)][_0x5aa2cc(0x36e)](_0x5aa2cc(0x2cc),_0x5aa2cc(0x370)),_0x36c3d5;}}async[_0x2cf6ff(0x3ea)](_0x10cdaa){const _0x5b2e0d=_0x2cf6ff,{unitID:_0x267028,from:_0x398b02,to:_0x31b49b,unitType:_0x141d9d}=_0x10cdaa[_0x5b2e0d(0x406)];return(await this['_snapshotServerService'][_0x5b2e0d(0x3b0)]({'metadata':void 0x0},{'unitID':_0x267028,'type':_0x141d9d,'from':_0x398b02,'to':_0x31b49b}))[_0x5b2e0d(0x100)];}};Et=Ln([Re(0x0,_0x11c4b2(_0xc66412)),Re(0x1,_0x11c4b2(_0x3b3681)),Re(0x2,_0x5d22a5),Re(0x3,_0x58af89),Re(0x4,_0x473b7c)],Et);const jn='collaboration_new_changeset';function xn(_0x41aeb1){const _0x1c2579=_0x2cf6ff;return JSON[_0x1c2579(0x1ff)](_0x41aeb1)[_0x1c2579(0x183)];}class $s{constructor(){const _0x2ebc8c=_0x2cf6ff;l(this,_0x2ebc8c(0x223),new _0x5ebd47()),l(this,_0x2ebc8c(0x41f),this[_0x2ebc8c(0x223)]['asObservable']());}[_0x2cf6ff(0x243)](_0x14a97f){const _0x49cadd=_0x2cf6ff;this[_0x49cadd(0x223)][_0x49cadd(0x2ad)](_0x14a97f);}}var Hn=Object[_0x2cf6ff(0x2d3)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x2309c5,_0x3a1f7c,_0x3680ba,_0x53f32e)=>{for(var _0x2e82b0=_0x53f32e>0x1?void 0x0:_0x53f32e?kn(_0x3a1f7c,_0x3680ba):_0x3a1f7c,_0x288b0f=_0x2309c5['length']-0x1,_0x4d1657;_0x288b0f>=0x0;_0x288b0f--)(_0x4d1657=_0x2309c5[_0x288b0f])&&(_0x2e82b0=(_0x53f32e?_0x4d1657(_0x3a1f7c,_0x3680ba,_0x2e82b0):_0x4d1657(_0x2e82b0))||_0x2e82b0);return _0x53f32e&&_0x2e82b0&&Hn(_0x3a1f7c,_0x3680ba,_0x2e82b0),_0x2e82b0;},rs=(_0x55a966,_0x3fe3d7)=>(_0x5203f7,_0x4e3e20)=>_0x3fe3d7(_0x5203f7,_0x4e3e20,_0x55a966);let ae=class extends _0x28d30b{constructor(_0x46c7f4,_0x48d0ff){const _0x39b2df=_0x2cf6ff;super(),l(this,'_roomMembers',new Map()),(this[_0x39b2df(0xe4)]=_0x46c7f4,this[_0x39b2df(0x1bd)]=_0x48d0ff,this[_0x39b2df(0x2cd)](_0x57baeb(_0x577df9(this[_0x39b2df(0xe4)][_0x39b2df(0x1af)](_0x5ba247[_0x39b2df(0x43d)])['pipe'](_0x4a2a85(_0x4e56a2=>_0x4e56a2[_0x39b2df(0x3d4)]())),this[_0x39b2df(0xe4)][_0x39b2df(0x1af)](_0x5ba247['UNIVER_DOC'])[_0x39b2df(0x379)](_0x4a2a85(_0x1c6c1f=>_0x1c6c1f[_0x39b2df(0x3d4)]())),this[_0x39b2df(0xe4)][_0x39b2df(0x1af)](_0x5ba247['UNIVER_SLIDE'])['pipe'](_0x4a2a85(_0x32c13f=>_0x32c13f[_0x39b2df(0x3d4)]())))[_0x39b2df(0x360)](_0x474cc5=>this[_0x39b2df(0x240)](_0x474cc5)))));}['setCurrentUser'](_0x55bc56){const _0x510ed5=_0x2cf6ff;this[_0x510ed5(0x1bd)][_0x510ed5(0x219)](_0x55bc56);}[_0x2cf6ff(0x118)](){const _0x26fd1f=_0x2cf6ff;return this['_userManagerService'][_0x26fd1f(0x118)]();}[_0x2cf6ff(0x2a4)](_0x535c55,_0x2db651){const _0x219353=_0x2cf6ff;let _0x58ac57=this[_0x219353(0x32b)][_0x219353(0x19c)](_0x535c55);_0x58ac57||(_0x58ac57=new Vn(),this[_0x219353(0x32b)][_0x219353(0x138)](_0x535c55,_0x58ac57)),_0x58ac57[_0x219353(0x2a4)](_0x2db651);}[_0x2cf6ff(0x310)](_0x1574a0,_0x1df8cd){const _0x159779=_0x2cf6ff,_0x474d5c=this[_0x159779(0x32b)]['get'](_0x1574a0);_0x474d5c&&_0x474d5c[_0x159779(0x310)](_0x1df8cd);}[_0x2cf6ff(0x283)](_0x9f6d8){const _0x596aaa=_0x2cf6ff;return this['_roomMembers'][_0x596aaa(0x19c)](_0x9f6d8);}[_0x2cf6ff(0x165)](_0x34575a,_0x4ff0c6){const _0x19f91e=_0x2cf6ff,_0x52b169=this[_0x19f91e(0x32b)]['get'](_0x34575a);if(_0x52b169)return _0x52b169[_0x19f91e(0x165)](_0x4ff0c6);}[_0x2cf6ff(0x240)](_0x12b6a3){const _0x59cdae=_0x2cf6ff,_0xe2cb8c=this[_0x59cdae(0x32b)][_0x59cdae(0x19c)](_0x12b6a3);_0xe2cb8c&&(_0xe2cb8c[_0x59cdae(0x275)](),this['_roomMembers'][_0x59cdae(0x152)](_0x12b6a3));}[_0x2cf6ff(0x275)](){const _0x39666d=_0x2cf6ff;this['_roomMembers'][_0x39666d(0x198)](_0x5e07e0=>_0x5e07e0[_0x39666d(0x275)]()),this[_0x39666d(0x32b)]['clear']();}};ae=Bn([rs(0x0,_0x3a69fb),rs(0x1,_0x11c4b2(_0xffde51))],ae);class Vn extends _0x28d30b{constructor(){const _0x3e658c=_0x2cf6ff;super(...arguments),l(this,_0x3e658c(0x232),new Map());}[_0x2cf6ff(0x275)](){const _0x47ff36=_0x2cf6ff;this['_members'][_0x47ff36(0x16b)]();}[_0x2cf6ff(0x2a4)](_0x245462){const _0x55ec85=_0x2cf6ff;this[_0x55ec85(0x232)][_0x55ec85(0x138)](_0x245462['memberID'],_0x245462);}[_0x2cf6ff(0x310)](_0x1ebbc1){const _0x8c5229=_0x2cf6ff;this['_members'][_0x8c5229(0x152)](_0x1ebbc1);}[_0x2cf6ff(0x165)](_0x3511c1){const _0x286cab=_0x2cf6ff;return this['_members'][_0x286cab(0x19c)](_0x3511c1);}}var Fn=Object[_0x2cf6ff(0x2d3)],Wn=Object[_0x2cf6ff(0x289)],Gn=(_0x239cf0,_0x4dd66f,_0x56ba28,_0x30c539)=>{const _0x33df63=_0x2cf6ff;for(var _0x2dda53=_0x30c539>0x1?void 0x0:_0x30c539?Wn(_0x4dd66f,_0x56ba28):_0x4dd66f,_0x11a075=_0x239cf0[_0x33df63(0x183)]-0x1,_0x5e18bd;_0x11a075>=0x0;_0x11a075--)(_0x5e18bd=_0x239cf0[_0x11a075])&&(_0x2dda53=(_0x30c539?_0x5e18bd(_0x4dd66f,_0x56ba28,_0x2dda53):_0x5e18bd(_0x2dda53))||_0x2dda53);return _0x30c539&&_0x2dda53&&Fn(_0x4dd66f,_0x56ba28,_0x2dda53),_0x2dda53;},J=(_0x1bcdfc,_0x249fdf)=>(_0x2f1103,_0xa465f0)=>_0x249fdf(_0x2f1103,_0xa465f0,_0x1bcdfc),G=(_0x1a9a73=>(_0x1a9a73[_0x1a9a73[_0x2cf6ff(0x450)]=0x0]=_0x2cf6ff(0x450),_0x1a9a73[_0x1a9a73[_0x2cf6ff(0x169)]=0x1]=_0x2cf6ff(0x169),_0x1a9a73[_0x1a9a73['OFFLINE']=0x2]=_0x2cf6ff(0x26c),_0x1a9a73[_0x1a9a73['ONLINE']=0x3]=_0x2cf6ff(0x168),_0x1a9a73))(G||{});let Ct=class extends _0x424705{constructor(_0x1eef82,_0x54dd3c,_0x39aaf2,_0x7600ed,_0x37ca48,_0x32ade3,_0x2aebd5,_0x5a5734,_0x518e1f,_0x3b736c){const _0x209bec=_0x2cf6ff;super(),l(this,_0x209bec(0x32f),new _0xa8903e(0x0)),l(this,_0x209bec(0x3a1),this['_sessionStatus$'][_0x209bec(0x16e)]()),l(this,_0x209bec(0x40b),new _0x5ebd47()),l(this,_0x209bec(0x3d1),this['_event$'][_0x209bec(0x16e)]()),l(this,'_socket'),l(this,_0x209bec(0x3a5)),l(this,_0x209bec(0x3d2)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x209bec(0x409),null),(this[_0x209bec(0x3a6)]=_0x1eef82,this[_0x209bec(0x2f8)]=_0x39aaf2,this[_0x209bec(0x410)]=_0x7600ed,this[_0x209bec(0x358)]=_0x37ca48,this['_configService']=_0x32ade3,this['_localeService']=_0x2aebd5,this[_0x209bec(0x327)]=_0x5a5734,this[_0x209bec(0x2ca)]=_0x518e1f,this[_0x209bec(0x2b1)]=_0x3b736c,this[_0x209bec(0x2c3)]=!!this[_0x209bec(0x2b1)],_0x54dd3c['pipe'](_0x5f0229(this[_0x209bec(0x267)]))['subscribe'](_0x46124c=>{const _0x46cf6a=_0x209bec;var _0x12c004;typeof _0x46124c>'u'||(this[_0x46cf6a(0x1e9)]=_0x46124c,_0x46124c?(this[_0x46cf6a(0x2fd)](_0x46124c),this[_0x46cf6a(0x3a5)]=_0x46124c['message$'][_0x46cf6a(0x360)](_0x1f2094=>{const _0x391aee=_0x46cf6a;_0x1f2094['routeKey']===this[_0x391aee(0x3a6)]&&this[_0x391aee(0x1b3)](_0x1f2094);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$']['next'](0x2),(_0x12c004=this[_0x46cf6a(0x3a5)])==null||_0x12c004[_0x46cf6a(0x285)](),this[_0x46cf6a(0x3a5)]=null));}),this[_0x209bec(0x2cd)](this['_beforeCloseService'][_0x209bec(0x44a)](()=>{const _0x56611b=_0x209bec;var _0x380b5e;(_0x380b5e=this[_0x56611b(0x1e9)])==null||_0x380b5e[_0x56611b(0x329)]({'cmd':I[_0x56611b(0x14c)],'data':{'roomID':this['_unitID']}});})));}get[_0x2cf6ff(0x33b)](){const _0x32113a=_0x2cf6ff;return this[_0x32113a(0x32f)]['getValue']();}[_0x2cf6ff(0x2a6)](){const _0x5c8cff=_0x2cf6ff;var _0x3e0546,_0x5e698b;return(_0x5e698b=(_0x3e0546=this[_0x5c8cff(0x1e9)])==null?void 0x0:_0x3e0546[_0x5c8cff(0x288)])!=null?_0x5e698b:null;}[_0x2cf6ff(0x275)](){const _0x23e22a=_0x2cf6ff;super[_0x23e22a(0x275)](),this[_0x23e22a(0x267)][_0x23e22a(0x2ad)](),this[_0x23e22a(0x267)][_0x23e22a(0x307)]();}[_0x2cf6ff(0x108)](){const _0x2bb34f=_0x2cf6ff;var _0x112fcd,_0x108efb;this[_0x2bb34f(0x27f)](),(_0x112fcd=this[_0x2bb34f(0x1e9)])==null||_0x112fcd['send']({'cmd':I[_0x2bb34f(0x14c)],'data':{'roomID':this['_unitID']}}),(_0x108efb=this['_socket'])==null||_0x108efb[_0x2bb34f(0x108)](),this[_0x2bb34f(0x40b)][_0x2bb34f(0x307)](),this[_0x2bb34f(0x32f)]['complete'](),this[_0x2bb34f(0x275)]();}[_0x2cf6ff(0x1b3)](_0x5adce0){const _0xf720f4=_0x2cf6ff;_0x5adce0['cmd']===I[_0xf720f4(0x171)]?this[_0xf720f4(0x345)](_0x5adce0):_0x5adce0[_0xf720f4(0x411)]===I['RECV']&&this[_0xf720f4(0x438)](_0x5adce0);}['_joinRoom'](_0x3306e2){const _0x2962d0=_0x2cf6ff;this[_0x2962d0(0x32f)][_0x2962d0(0x2ad)](0x1),_0x3306e2[_0x2962d0(0x329)]({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2962d0(0x3a6)]}]}});}[_0x2cf6ff(0x345)](_0x50583e){const _0x28e1cc=_0x2cf6ff;var _0x4b600f;if(_0x50583e['code']===kt['FAIL']){this[_0x28e1cc(0x358)][_0x28e1cc(0x10c)]({'type':_0x3aebb1[_0x28e1cc(0x29b)],'content':this[_0x28e1cc(0x12c)]['t'](_0x28e1cc(0x195))}),this[_0x28e1cc(0x32f)][_0x28e1cc(0x2ad)](0x2);return;}this[_0x28e1cc(0x32f)][_0x28e1cc(0x2ad)](0x3);const _0x49729f=(_0x4b600f=_0x50583e[_0x28e1cc(0x406)][_0x28e1cc(0x1d2)][this[_0x28e1cc(0x3a6)]])==null?void 0x0:_0x4b600f[_0x28e1cc(0x3a9)];_0x49729f&&_0x49729f[_0x28e1cc(0x198)](_0x12ff50=>this[_0x28e1cc(0x327)][_0x28e1cc(0x2a4)](this['_unitID'],_0x12ff50));}[_0x2cf6ff(0x438)](_0x19b9f3){const _0x2fef1a=_0x2cf6ff;try{const _0xc97d6a=_0x19b9f3[_0x2fef1a(0x406)];switch(_0xc97d6a[_0x2fef1a(0x446)]){case _0x236400['USERS_ENTER']:this[_0x2fef1a(0x365)](_0xc97d6a),this[_0x2fef1a(0x40b)][_0x2fef1a(0x2ad)](_0xc97d6a);break;case _0x236400[_0x2fef1a(0x375)]:this[_0x2fef1a(0x189)](_0xc97d6a),this['_event$'][_0x2fef1a(0x2ad)](_0xc97d6a);break;case _0x236400[_0x2fef1a(0x1bb)]:this[_0x2fef1a(0x444)](),this[_0x2fef1a(0x1ad)](),this[_0x2fef1a(0x40b)]['next'](_0xc97d6a);break;case _0x236400[_0x2fef1a(0x115)]:this['_logService'][_0x2fef1a(0x36e)](_0x2fef1a(0x122)+JSON[_0x2fef1a(0x1ff)](_0xc97d6a)),this[_0x2fef1a(0x40b)]['next'](_0xc97d6a);break;case _0x236400['COMMENT_UPDATE']:this[_0x2fef1a(0x2ca)]['onCommentUpdate'](_0xc97d6a[_0x2fef1a(0x406)]),this['_event$'][_0x2fef1a(0x2ad)](_0xc97d6a);break;default:this[_0x2fef1a(0x40b)][_0x2fef1a(0x2ad)](_0xc97d6a);}}catch(_0x45c913){this['_logService'][_0x2fef1a(0x36e)](_0x45c913,_0x19b9f3);}}[_0x2cf6ff(0x365)](_0x4f5681){const _0x21b58d=_0x2cf6ff;this['_memberService']['updateMember'](this[_0x21b58d(0x3a6)],_0x4f5681['data']);}[_0x2cf6ff(0x189)](_0x178985){const _0x53526e=_0x2cf6ff;this[_0x53526e(0x327)][_0x53526e(0x310)](this['_unitID'],_0x178985[_0x53526e(0x406)]['memberID']);}async[_0x2cf6ff(0x329)](_0x214ef3,_0xa1853b){const _0x2fefed=_0x2cf6ff;if(this[_0x2fefed(0x33b)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x214ef3[_0x2fefed(0x446)]===_0x236400['SUBMIT_CHANGESET']&&(this[_0x2fefed(0x23a)](),this[_0x2fefed(0x369)](_0x214ef3)),this['_socket']['send']({'cmd':I[_0x2fefed(0x44b)],'routeKey':_0xa1853b,'routeType':'','data':_0x214ef3});}catch(_0x35435e){this[_0x2fefed(0x2f8)][_0x2fefed(0x36e)](_0x35435e);}}['_scheduleCollaborationTimeoutTimer'](){const _0x298381=_0x2cf6ff;var _0x2e05c3;this[_0x298381(0x3d2)]=window[_0x298381(0x128)](()=>{const _0x5cd4c3=_0x298381;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x5cd4c3(0x10c)]({'type':_0x3aebb1[_0x5cd4c3(0x276)],'content':this[_0x5cd4c3(0x12c)]['t'](_0x5cd4c3(0x26d))});},(_0x2e05c3=this[_0x298381(0x17b)][_0x298381(0x30f)](Ns))!=null?_0x2e05c3:Us);}[_0x2cf6ff(0x1ad)](){const _0x1f26a5=_0x2cf6ff;this[_0x1f26a5(0x3d2)]&&(clearTimeout(this[_0x1f26a5(0x3d2)]),this[_0x1f26a5(0x3d2)]=null);}[_0x2cf6ff(0x369)](_0x50e41a){const _0x90ea9b=_0x2cf6ff;if(!this['_shouldReportTelemetry'])return;const {data:_0x22d084}=_0x50e41a,{unitID:_0x566c85,changeset:_0x1eb44a}=_0x22d084,{mutations:_0x2fef18,type:_0x579e2a}=_0x1eb44a;this[_0x90ea9b(0x409)]={'unitId':_0x566c85,'type':_0x579e2a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':xn(_0x2fef18)};}['_stopTelemetryCollaborationNewChangeset'](){const _0xe863d3=_0x2cf6ff;if(this[_0xe863d3(0x2c3)]){if(!this[_0xe863d3(0x409)]){this[_0xe863d3(0x2f8)][_0xe863d3(0x36e)]('[CollaborationSession]',_0xe863d3(0x423));return;}this[_0xe863d3(0x409)][_0xe863d3(0x2e5)]=performance[_0xe863d3(0x381)](),this[_0xe863d3(0x409)][_0xe863d3(0x42e)]=this[_0xe863d3(0x409)][_0xe863d3(0x2e5)]-this['_telemetryInfo'][_0xe863d3(0x3e9)],this[_0xe863d3(0x2b1)][_0xe863d3(0x33d)](jn,this[_0xe863d3(0x409)]),this[_0xe863d3(0x409)]=null;}}[_0x2cf6ff(0x27f)](){const _0x96a4a2=_0x2cf6ff;this[_0x96a4a2(0x409)]=null;}};Ct=Gn([J(0x2,_0x58af89),J(0x3,_0x43afaa),J(0x4,_0x3d2cd0),J(0x5,_0x5d22a5),J(0x6,_0x11c4b2(_0x56c312)),J(0x7,_0x11c4b2(ae)),J(0x8,_0x11c4b2($s)),J(0x9,_0x32a7fe(_0x45254d))],Ct);var Yn=Object[_0x2cf6ff(0x2d3)],Kn=Object[_0x2cf6ff(0x289)],Xn=(_0x217e0c,_0x561edf,_0x516438,_0x5acde1)=>{const _0x46980c=_0x2cf6ff;for(var _0x4c2308=_0x5acde1>0x1?void 0x0:_0x5acde1?Kn(_0x561edf,_0x516438):_0x561edf,_0x502f90=_0x217e0c[_0x46980c(0x183)]-0x1,_0x5bce3f;_0x502f90>=0x0;_0x502f90--)(_0x5bce3f=_0x217e0c[_0x502f90])&&(_0x4c2308=(_0x5acde1?_0x5bce3f(_0x561edf,_0x516438,_0x4c2308):_0x5bce3f(_0x4c2308))||_0x4c2308);return _0x5acde1&&_0x4c2308&&Yn(_0x561edf,_0x516438,_0x4c2308),_0x4c2308;},de=(_0x2fd0de,_0x143254)=>(_0x13f664,_0x4a8bce)=>_0x143254(_0x13f664,_0x4a8bce,_0x2fd0de);let ce=class extends _0x28d30b{constructor(_0x505e47,_0x8161d6,_0x1e8edc,_0x2cb8aa,_0x50e665,_0x542500){const _0x560c2d=_0x2cf6ff;super(),l(this,_0x560c2d(0x174),new _0xa8903e(void 0x0)),l(this,'socket$',this[_0x560c2d(0x174)][_0x560c2d(0x16e)]()),l(this,'_candidateSocket',null),l(this,_0x560c2d(0x3f5),new Map()),l(this,_0x560c2d(0x1e4),new _0xa8903e(G[_0x560c2d(0x450)])),l(this,_0x560c2d(0x212),this[_0x560c2d(0x1e4)][_0x560c2d(0x16e)]()),l(this,_0x560c2d(0x3dc),!0x1),l(this,_0x560c2d(0x17e)),l(this,_0x560c2d(0x383),0x0),l(this,_0x560c2d(0x1cc)),l(this,_0x560c2d(0x1e2)),(this[_0x560c2d(0x249)]=_0x505e47,this[_0x560c2d(0x12c)]=_0x8161d6,this[_0x560c2d(0x358)]=_0x1e8edc,this[_0x560c2d(0x2f8)]=_0x2cb8aa,this[_0x560c2d(0x17b)]=_0x50e665,this['_socketService']=_0x542500,this['_initEventListeners']());}get['_socket'](){const _0x4ff4ff=_0x2cf6ff;return this[_0x4ff4ff(0x174)][_0x4ff4ff(0x308)]();}[_0x2cf6ff(0x184)](){const _0x1108fd=_0x2cf6ff;this[_0x1108fd(0x137)](),this[_0x1108fd(0x19a)]();}[_0x2cf6ff(0x275)](){const _0x1fdade=_0x2cf6ff;super['dispose'](),this[_0x1fdade(0x3f5)]['forEach'](_0xb64091=>_0xb64091[_0x1fdade(0x275)]()),this[_0x1fdade(0x3f5)][_0x1fdade(0x16b)](),this[_0x1fdade(0x1e4)]['complete']();}async[_0x2cf6ff(0x393)](_0x123b3b){const _0x30f552=_0x2cf6ff;if(this[_0x30f552(0x3f5)][_0x30f552(0x277)](_0x123b3b))return this['_sessions'][_0x30f552(0x19c)](_0x123b3b);this[_0x30f552(0x353)]();const _0x440e48=this[_0x30f552(0x249)][_0x30f552(0x1f3)](Ct,_0x123b3b,this[_0x30f552(0x174)][_0x30f552(0x16e)]());return this[_0x30f552(0x3f5)][_0x30f552(0x138)](_0x123b3b,_0x440e48),_0x440e48;}[_0x2cf6ff(0x170)](_0x4492fb){const _0x2c4bd7=_0x2cf6ff;var _0x5ad17f;const _0x4a163f=this[_0x2c4bd7(0x3f5)]['get'](_0x4492fb);_0x4a163f&&(this[_0x2c4bd7(0x3f5)][_0x2c4bd7(0x152)](_0x4492fb),_0x4a163f['close']()),this['_sessions'][_0x2c4bd7(0x387)]||(_0x5ad17f=this['_socket'])==null||_0x5ad17f[_0x2c4bd7(0x108)]();}[_0x2cf6ff(0x2e0)](){const _0x3ce4c0=_0x2cf6ff;this[_0x3ce4c0(0x383)]=0x0,this[_0x3ce4c0(0x17e)]!=null&&(clearTimeout(this[_0x3ce4c0(0x17e)]),this[_0x3ce4c0(0x17e)]=null),this[_0x3ce4c0(0x2de)]();}[_0x2cf6ff(0x207)](){const _0x1bb6c9=_0x2cf6ff;var _0x507a67,_0xbfa18d;const _0x3df8fe=this[_0x1bb6c9(0x17b)]['getConfig'](Sn),_0x429fed=this['_configService'][_0x1bb6c9(0x30f)](L),_0x442608=(_0xbfa18d=(_0x507a67=_0x429fed==null?void 0x0:_0x429fed[_0x1bb6c9(0x284)])!=null?_0x507a67:_0x3df8fe)!=null?_0xbfa18d:pn,_0x49193d=this[_0x1bb6c9(0x217)][_0x1bb6c9(0x2eb)](_0x442608);return this[_0x1bb6c9(0x39f)]=_0x49193d,_0x49193d;}[_0x2cf6ff(0x353)](){const _0x3c9b02=_0x2cf6ff;var _0x1a942a,_0x29ee40;try{const _0x2db5a9=(_0x29ee40=(_0x1a942a=this[_0x3c9b02(0x1e9)])!=null?_0x1a942a:this[_0x3c9b02(0x39f)])!=null?_0x29ee40:this[_0x3c9b02(0x207)]();if(_0x2db5a9){const _0x263b1f=_0x2db5a9[_0x3c9b02(0x329)];_0x2db5a9[_0x3c9b02(0x329)]=_0x49e31f=>(this['_rescheduleHeartbeat'](),_0x263b1f[_0x3c9b02(0x29e)](_0x2db5a9,[_0x49e31f])),_0x2db5a9[_0x3c9b02(0x340)]['subscribe'](_0x58a726=>this[_0x3c9b02(0x2a1)](_0x2db5a9,_0x58a726)),_0x2db5a9[_0x3c9b02(0x391)]['pipe'](_0x1fdc95(0x1))[_0x3c9b02(0x360)](_0x25d92c=>this[_0x3c9b02(0x2f8)]['error'](_0x3c9b02(0x21f),_0x25d92c)),_0x2db5a9['open$'][_0x3c9b02(0x379)](_0x1fdc95(0x1))[_0x3c9b02(0x360)](()=>{const _0x5e63e6=_0x3c9b02;this[_0x5e63e6(0x1c1)](_0x2db5a9);}),_0x2db5a9[_0x3c9b02(0x425)][_0x3c9b02(0x379)](_0x1fdc95(0x1))[_0x3c9b02(0x360)](_0x29ce76=>{const _0x3b1327=_0x3c9b02;this[_0x3b1327(0x2f8)][_0x3b1327(0x2b7)](_0x3b1327(0x378),'socket\x20close',_0x29ce76),this[_0x3b1327(0x41c)]();});}}catch(_0x21f769){this[_0x3c9b02(0x2f8)][_0x3c9b02(0x36e)](_0x21f769),this['_onConnectionFailed']();}}[_0x2cf6ff(0x1c1)](_0x35dcde){const _0x2049db=_0x2cf6ff;this[_0x2049db(0x2f8)][_0x2049db(0x2b7)]('[CollaborationSessionService]',_0x2049db(0x187)),_0x35dcde[_0x2049db(0x329)]({'cmd':I[_0x2049db(0x3fd)]}),this[_0x2049db(0x35f)]();}['_listenToOfflineEvent'](){const _0x1cd0a4=_0x2cf6ff;window[_0x1cd0a4(0x3d0)](_0x1cd0a4(0x2ac),()=>this['_onOffline']());}[_0x2cf6ff(0x42f)](){const _0x567d75=_0x2cf6ff;this[_0x567d75(0x3dc)]=!0x1,this[_0x567d75(0x39f)]=null,this[_0x567d75(0x1e4)]['next'](G[_0x567d75(0x26c)]),this[_0x567d75(0x174)]['next'](null),this['_clearTimeoutTimer'](),this[_0x567d75(0xe1)]();}['_onConnectionFailed'](){const _0x41764c=_0x2cf6ff;var _0x33093c;this['_onOffline'](),this[_0x41764c(0x383)]<((_0x33093c=this['_configService']['getConfig'](Cn))!=null?_0x33093c:bn)?(this['_messageService'][_0x41764c(0x10c)]({'key':_0x41764c(0x2d5),'type':_0x3aebb1['Warning'],'content':this['_localeService']['t'](_0x41764c(0x363))}),this[_0x41764c(0x2de)]()):this[_0x41764c(0x358)][_0x41764c(0x10c)]({'key':'collaboration-session-retry','type':_0x3aebb1['Error'],'content':this[_0x41764c(0x12c)]['t']('session.connection-failed')});}[_0x2cf6ff(0x19a)](){const _0x1305ed=_0x2cf6ff,_0x33e2e3=()=>{const _0x50f08f=_0xd63a;this[_0x50f08f(0x1e9)]||this[_0x50f08f(0x2e0)]();},_0x1456c9=()=>{const _0x49b38c=_0xd63a;this[_0x49b38c(0x1e9)]||document[_0x49b38c(0x21a)]===_0x49b38c(0x333)||this[_0x49b38c(0x2e0)]();};window['addEventListener'](_0x1305ed(0x27a),_0x33e2e3),document[_0x1305ed(0x3d0)](_0x1305ed(0x377),_0x1456c9);}[_0x2cf6ff(0x2de)](){const _0x10cb74=_0x2cf6ff;var _0x46bbad;const _0x1d6b25=this[_0x10cb74(0x383)],_0x4b589d=this[_0x10cb74(0x17b)][_0x10cb74(0x30f)](L),_0x969919=_0x1d6b25===0x0?0x0:((_0x46bbad=_0x4b589d==null?void 0x0:_0x4b589d[_0x10cb74(0xf3)])!=null?_0x46bbad:En)*0x2**_0x1d6b25;this['_retryConnectingTimer']=window[_0x10cb74(0x128)](()=>{const _0x33aaab=_0x10cb74;clearTimeout(this['_retryConnectingTimer']),this[_0x33aaab(0x17e)]=null,this['_tryEnsureSocket']();},_0x969919),this[_0x10cb74(0x383)]+=0x1;}['_onMessage'](_0x49a693,_0x4534c9){const _0x10e70d=_0x2cf6ff,{cmd:_0x188ee2}=_0x4534c9;_0x188ee2===I[_0x10e70d(0x3fd)]&&!this[_0x10e70d(0x3dc)]&&(_0x49a693[_0x10e70d(0x288)]=_0x4534c9['data']['memberID'],this[_0x10e70d(0x174)]['next'](_0x49a693),this[_0x10e70d(0x1e4)][_0x10e70d(0x2ad)](G[_0x10e70d(0x168)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x188ee2===I[_0x10e70d(0x116)]&&this[_0x10e70d(0x1a1)](),this[_0x10e70d(0x35f)]();}[_0x2cf6ff(0x35f)](){const _0xda3db8=_0x2cf6ff;var _0x1edd7f;this[_0xda3db8(0xe1)](),this['_sendHeartbeatTimer']=window[_0xda3db8(0x128)](()=>this[_0xda3db8(0x2c9)](),(_0x1edd7f=this[_0xda3db8(0x17b)][_0xda3db8(0x30f)](vn))!=null?_0x1edd7f:In);}[_0x2cf6ff(0x2c9)](){const _0x1a8927=_0x2cf6ff;this[_0x1a8927(0x1e9)][_0x1a8927(0x329)]({'cmd':I[_0x1a8927(0x116)]}),this[_0x1a8927(0x314)]();}[_0x2cf6ff(0x314)](){const _0x270b78=_0x2cf6ff;var _0x3309af;this['_timeoutTimer']=window[_0x270b78(0x128)](()=>this['_onConnectionFailed'](),(_0x3309af=this['_configService']['getConfig'](Ns))!=null?_0x3309af:Us);}[_0x2cf6ff(0xe1)](){const _0x946985=_0x2cf6ff;this[_0x946985(0x1cc)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x946985(0x1cc)]=null);}[_0x2cf6ff(0x1a1)](){const _0x260c08=_0x2cf6ff;this[_0x260c08(0x1e2)]!=null&&(clearTimeout(this[_0x260c08(0x1e2)]),this[_0x260c08(0x1e2)]=null);}};ce=Xn([de(0x0,_0x11c4b2(_0x3ca714)),de(0x1,_0x11c4b2(_0x56c312)),de(0x2,_0x3d2cd0),de(0x3,_0x58af89),de(0x4,_0x5d22a5),de(0x5,Ls)],ce);var Jn=Object[_0x2cf6ff(0x2d3)],qn=Object[_0x2cf6ff(0x289)],zn=(_0x164eee,_0x14fce1,_0x4d780f,_0x1e9833)=>{const _0x30aa4a=_0x2cf6ff;for(var _0x310a1c=_0x1e9833>0x1?void 0x0:_0x1e9833?qn(_0x14fce1,_0x4d780f):_0x14fce1,_0x5a18f4=_0x164eee[_0x30aa4a(0x183)]-0x1,_0x195c3e;_0x5a18f4>=0x0;_0x5a18f4--)(_0x195c3e=_0x164eee[_0x5a18f4])&&(_0x310a1c=(_0x1e9833?_0x195c3e(_0x14fce1,_0x4d780f,_0x310a1c):_0x195c3e(_0x310a1c))||_0x310a1c);return _0x1e9833&&_0x310a1c&&Jn(_0x14fce1,_0x4d780f,_0x310a1c),_0x310a1c;},ct=(_0x2e715b,_0x359114)=>(_0x5da717,_0x1b7f0f)=>_0x359114(_0x5da717,_0x1b7f0f,_0x2e715b);let Ye=class{constructor(_0x675ac,_0x166ff4,_0x5ecbe7){const _0x151ca4=_0x2cf6ff;this[_0x151ca4(0x249)]=_0x675ac,this[_0x151ca4(0x146)]=_0x166ff4,this[_0x151ca4(0x1d4)]=_0x5ecbe7;}[_0x2cf6ff(0x1ab)](_0x3ca1b5){const _0x485fb0=_0x2cf6ff;this['_transformUndoRedoStack'](_0x3ca1b5),this[_0x485fb0(0xde)](_0x3ca1b5);}[_0x2cf6ff(0x364)](_0x1b6d5a){const _0x179d07=_0x2cf6ff,{unitID:_0x56251c}=_0x1b6d5a,_0xa41656=this['_renderManagerService'][_0x179d07(0x354)](_0x56251c)[_0x179d07(0x443)](_0x7e116c),{redoCache:_0x210d4b}=_0xa41656[_0x179d07(0x37d)]();if(_0x210d4b[_0x179d07(0x183)]===0x0)return _0x1b6d5a;let _0x39ab79=_0x3d523e[_0x179d07(0x2b6)](_0x1b6d5a[_0x179d07(0x40d)][0x0]);for(let _0x1f5ab5=0x0;_0x1f5ab5<_0x210d4b['length'];_0x1f5ab5++){const _0x5ae9bd={'id':_0x179d07(0x1b7),'params':{..._0x210d4b[_0x1f5ab5]}},_0x8111f9=this[_0x179d07(0x146)][_0x179d07(0x279)](_0x39ab79,_0x5ae9bd,!0x1);if(_0x265ca1(_0x8111f9))throw _0x8111f9[_0x179d07(0x36e)];_0x39ab79=_0x8111f9[_0x179d07(0x3e1)];}return{..._0x3d523e[_0x179d07(0x2b6)](_0x1b6d5a),'mutations':[_0x39ab79]};}['_transformUndoRedoStack'](_0x167e22){const _0x551a36=_0x2cf6ff,{unitID:_0x306539}=_0x167e22,_0x3d7cad=this[_0x551a36(0x1d4)]['getRenderById'](_0x306539)['with'](_0x7e116c),{undoCache:_0x474e8e,redoCache:_0x214849}=_0x3d7cad['getUndoRedoMutationParamsCache']();if(_0x474e8e[_0x551a36(0x183)]===0x0||_0x214849[_0x551a36(0x183)]===0x0)return;const _0x1ad4a8=[],_0x2b355c=[];let _0x221783=_0x3d523e[_0x551a36(0x2b6)](_0x167e22[_0x551a36(0x40d)][0x0]),_0x39e471=_0x3d523e[_0x551a36(0x2b6)](_0x167e22['mutations'][0x0]);for(let _0x22f463=_0x474e8e[_0x551a36(0x183)]-0x1;_0x22f463>=0x0;_0x22f463--){const _0x39ebc1={'id':'doc.mutation.rich-text-editing','params':{..._0x474e8e[_0x22f463]}},_0x4c29f0={'id':_0x551a36(0x1b7),'params':{..._0x214849[_0x22f463]}},_0x7525b3=this[_0x551a36(0x146)][_0x551a36(0x279)](_0x221783,_0x39ebc1,!0x1),_0x2a1211=this[_0x551a36(0x146)][_0x551a36(0x279)](_0x39e471,_0x4c29f0,!0x1);if(_0x265ca1(_0x7525b3))throw _0x7525b3['error'];if(_0x265ca1(_0x2a1211))throw _0x2a1211[_0x551a36(0x36e)];_0x1ad4a8[_0x551a36(0x1b0)](_0x7525b3[_0x551a36(0x2d7)]['params']),_0x2b355c[_0x551a36(0x1b0)](_0x2a1211['m2Prime']['params']),_0x221783=_0x7525b3['m1Prime'],_0x39e471=_0x2a1211[_0x551a36(0x3e1)];}_0x3d7cad[_0x551a36(0x1fa)]({'undoCache':_0x1ad4a8,'redoCache':_0x2b355c});}['_transformPreviousActiveRange'](_0x3cf2c3){const _0xc6353b=_0x2cf6ff,{unitID:_0x52076e}=_0x3cf2c3,_0x122d1a=this[_0xc6353b(0x1d4)][_0xc6353b(0x354)](_0x52076e)[_0xc6353b(0x443)](_0x7e116c),_0x59385e=_0x122d1a['getActiveRange']();if(_0x59385e==null)return;const _0x5b0b34=[{'id':_0xc6353b(0x1b7),'params':{'unitId':_0x3cf2c3['unitID'],'actions':null,'textRanges':[_0x59385e]}}],_0x79fdf=this['_transformService'][_0xc6353b(0x1f5)](_0x3cf2c3,_0x5b0b34);if(!_0x61acc5(_0x79fdf))throw _0x79fdf['error'];const _0xa55b96=_0x79fdf[_0xc6353b(0x2d7)][0x0][_0xc6353b(0x3d6)][_0xc6353b(0x1cd)];Array[_0xc6353b(0x1da)](_0xa55b96)&&_0xa55b96['length']&&_0x122d1a[_0xc6353b(0x2bb)](_0xa55b96[0x0]);}};Ye=zn([ct(0x0,_0x11c4b2(_0x3ca714)),ct(0x1,_0x1d81ff),ct(0x2,_0x45596d)],Ye);var Zn=Object[_0x2cf6ff(0x2d3)],Qn=Object[_0x2cf6ff(0x289)],er=(_0x581cb8,_0x199821,_0x24844e,_0xb5095f)=>{for(var _0x4cded4=_0xb5095f>0x1?void 0x0:_0xb5095f?Qn(_0x199821,_0x24844e):_0x199821,_0x335034=_0x581cb8['length']-0x1,_0xd2db35;_0x335034>=0x0;_0x335034--)(_0xd2db35=_0x581cb8[_0x335034])&&(_0x4cded4=(_0xb5095f?_0xd2db35(_0x199821,_0x24844e,_0x4cded4):_0xd2db35(_0x4cded4))||_0x4cded4);return _0xb5095f&&_0x4cded4&&Zn(_0x199821,_0x24844e,_0x4cded4),_0x4cded4;},Oe=(_0x5a7f8c,_0x4f669c)=>(_0x31c7ae,_0x501a41)=>_0x4f669c(_0x31c7ae,_0x501a41,_0x5a7f8c);let D=class extends _0x28d30b{constructor(_0x45dce2,_0x5d6631,_0xe242a2,_0x25ec6c,_0x3d1e9e){const _0x281301=_0x2cf6ff;super(),l(this,'_cachedData',new Map()),l(this,'_saveTaskMap',new Map()),l(this,'_disabled',!0x1),(this[_0x281301(0x17b)]=_0x45dce2,this[_0x281301(0x349)]=_0x5d6631,this['_beforeCloseService']=_0xe242a2,this[_0x281301(0x12c)]=_0x25ec6c,this[_0x281301(0x25c)]=_0x3d1e9e,this[_0x281301(0x2f4)]());}[_0x2cf6ff(0x2df)](){const _0x58b820=_0x2cf6ff;this[_0x58b820(0x2ec)]=!0x0;}[_0x2cf6ff(0x295)](){const _0x282024=_0x2cf6ff;this[_0x282024(0x2ec)]=!0x1;}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x2cf6ff(0x1b1)](_0x4a85c4){const _0x4486a0=_0x2cf6ff;return this[_0x4486a0(0x2ec)]?null:this[_0x4486a0(0x349)][_0x4486a0(0x3b3)](os(_0x4a85c4));}async[_0x2cf6ff(0xf4)](_0xd2a9c5,_0x4c3f3d){const _0x684bdf=_0x2cf6ff;return!!this[_0x684bdf(0x349)]['setItem'](_0xd2a9c5,_0x4c3f3d);}[_0x2cf6ff(0x296)](_0x42a3f3,_0x3ba2bc,_0x5d9f66,_0x2e1dd2){const _0x11c0ae=_0x2cf6ff,_0x291dea=this['_revisionService'][_0x11c0ae(0xe9)](_0x42a3f3);this[_0x11c0ae(0x39e)]['set'](_0x42a3f3,{'unitID':_0x42a3f3,'type':_0x3ba2bc,'awaitingChangeset':_0x5d9f66,'mutations':_0x2e1dd2,'rev':_0x291dea}),this[_0x11c0ae(0x2cb)][_0x11c0ae(0x277)](_0x42a3f3)||this[_0x11c0ae(0x19d)](_0x42a3f3);}[_0x2cf6ff(0x19d)](_0x4030f3){const _0x3c5afe=_0x2cf6ff,_0x2d3d29=this[_0x3c5afe(0x16d)]();_0x2d3d29===0x0?this[_0x3c5afe(0x37c)](_0x4030f3):this[_0x3c5afe(0x2cb)]['set'](_0x4030f3,setTimeout(()=>this[_0x3c5afe(0x37c)](_0x4030f3),_0x2d3d29));}[_0x2cf6ff(0x16d)](){const _0x7f0bec=_0x2cf6ff;var _0x46432e;return(_0x46432e=this[_0x7f0bec(0x17b)][_0x7f0bec(0x30f)](Tn))!=null?_0x46432e:Rn;}[_0x2cf6ff(0x37c)](_0x29e170){const _0x50b023=_0x2cf6ff,_0x15169d=this[_0x50b023(0x2cb)][_0x50b023(0x19c)](_0x29e170);return _0x15169d!==void 0x0&&window[_0x50b023(0x40c)](_0x15169d),this['_localStorageService'][_0x50b023(0x28a)](os(_0x29e170),this[_0x50b023(0x39e)][_0x50b023(0x19c)](_0x29e170))[_0x50b023(0x1ed)](()=>this['_saveTaskMap']['delete'](_0x29e170));}async['exhaustSavingTask'](){const _0x10c262=_0x2cf6ff,_0x3094a8=[];this[_0x10c262(0x2cb)][_0x10c262(0x198)]((_0x431362,_0x22e499)=>{const _0x23b17f=_0x10c262;window[_0x23b17f(0x40c)](_0x431362),_0x3094a8[_0x23b17f(0x16c)](this[_0x23b17f(0x37c)](_0x22e499)[_0x23b17f(0x1ed)](()=>{const _0x265ea8=_0x23b17f;this[_0x265ea8(0x2cb)]['delete'](_0x22e499);}));}),await Promise['all'](_0x3094a8);}[_0x2cf6ff(0x2f4)](){const _0x27794e=_0x2cf6ff;this[_0x27794e(0x2cd)](this[_0x27794e(0x410)][_0x27794e(0x3d3)](()=>{const _0x2f428a=_0x27794e;if(this[_0x2f428a(0x2cb)]['size'])return this[_0x2f428a(0x12c)]['t']('collaboration-client.offline-data-not-saved');}));}};D=er([Oe(0x0,_0x5d22a5),Oe(0x1,_0x100b17),Oe(0x2,_0x43afaa),Oe(0x3,_0x11c4b2(_0x56c312)),Oe(0x4,_0x11c4b2(_0x382160))],D);function os(_0x134d7a){const _0xd5974b=_0x2cf6ff;return _0xd5974b(0x30e)+_0x134d7a;}var tr=Object[_0x2cf6ff(0x2d3)],sr=Object['getOwnPropertyDescriptor'],ir=(_0x60b845,_0x1bb5f9,_0x5104a5,_0x50f798)=>{const _0x1924b3=_0x2cf6ff;for(var _0x4e1f5e=_0x50f798>0x1?void 0x0:_0x50f798?sr(_0x1bb5f9,_0x5104a5):_0x1bb5f9,_0x17c8a9=_0x60b845[_0x1924b3(0x183)]-0x1,_0x5b6114;_0x17c8a9>=0x0;_0x17c8a9--)(_0x5b6114=_0x60b845[_0x17c8a9])&&(_0x4e1f5e=(_0x50f798?_0x5b6114(_0x1bb5f9,_0x5104a5,_0x4e1f5e):_0x5b6114(_0x4e1f5e))||_0x4e1f5e);return _0x50f798&&_0x4e1f5e&&tr(_0x1bb5f9,_0x5104a5,_0x4e1f5e),_0x4e1f5e;},ht=(_0x1c2a8c,_0x4d358c)=>(_0x157f4e,_0x202ce5)=>_0x4d358c(_0x157f4e,_0x202ce5,_0x1c2a8c);function nr(_0x58bc09){const _0x1a8bb7=_0x2cf6ff,{unitID:_0x2fc8cc,mutations:_0x11aba0}=_0x58bc09;return{'unitId':_0x2fc8cc,'subUnitId':_0x11aba0[0x0][_0x1a8bb7(0x3d6)][_0x1a8bb7(0x1d3)]};}let Ke=class{constructor(_0x308836,_0x166a7a,_0x3128d7){const _0x455c6f=_0x2cf6ff;this[_0x455c6f(0x249)]=_0x308836,this[_0x455c6f(0x146)]=_0x166a7a,this[_0x455c6f(0x338)]=_0x3128d7;}[_0x2cf6ff(0x300)](_0x434291){const _0x5d98cd=_0x2cf6ff;var _0x314546,_0x1c8d94,_0x5803cd,_0x4b51c6;const _0x37feb2=this[_0x5d98cd(0x249)][_0x5d98cd(0x19c)](_0x5170b3),{unitId:_0x67df94,subUnitId:_0x20452f}=nr(_0x434291),_0x4a6e40=_0x37feb2[_0x5d98cd(0x31f)](_0x67df94)['getCurrentSelections'](),_0x272e9d=(_0x1c8d94=(_0x314546=this[_0x5d98cd(0x338)][_0x5d98cd(0x18b)](_0x67df94))==null?void 0x0:_0x314546[_0x5d98cd(0x3be)]())==null?void 0x0:_0x1c8d94[_0x5d98cd(0xe6)]();if(_0x4a6e40[_0x5d98cd(0x183)]===0x0||!_0x67df94||!_0x20452f)return;const _0x576c39=[{'id':_0xccbe27['id'],'params':{'unitId':_0x67df94,'subUnitId':_0x272e9d,'selections':_0x3d523e['deepClone'](_0x4a6e40)}}],_0x425374=this[_0x5d98cd(0x146)][_0x5d98cd(0x1f5)](_0x434291,_0x576c39);if(!_0x61acc5(_0x425374))throw _0x425374[_0x5d98cd(0x36e)];const _0x31cec7=(_0x4b51c6=(_0x5803cd=_0x425374['m2Prime'][0x0])==null?void 0x0:_0x5803cd[_0x5d98cd(0x3d6)])==null?void 0x0:_0x4b51c6['selections'];Array[_0x5d98cd(0x1da)](_0x31cec7)&&_0x31cec7[_0x5d98cd(0x183)]&&this['_injector'][_0x5d98cd(0x19c)](_0x339bfb)[_0x5d98cd(0x3aa)](_0xccbe27['id'],{'unitId':_0x67df94,'subUnitId':_0x272e9d,'selections':_0x31cec7});}};Ke=ir([ht(0x0,_0x11c4b2(_0x3ca714)),ht(0x1,_0x1d81ff),ht(0x2,_0x3a69fb)],Ke);const tt=_0x131476(_0x2cf6ff(0x1b9));var js=(_0x47bbb6=>(_0x47bbb6[_0x47bbb6['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2cf6ff(0x2e9),_0x47bbb6[_0x47bbb6['OTHER_CLIENTS_EDITING']=0x1]=_0x2cf6ff(0x3da),_0x47bbb6))(js||{});function _0x38c5(){const _0x2b2a46=['SEND_CHANGESET_TIMEOUT','conflict.title','_render','USERS_LEAVE','arc','visibilitychange','[CollaborationSessionService]','pipe','newCsEvent','[CollaborationUndoRedoService]','_saveCache','getUndoRedoMutationParamsCache','roomMembers','blue400','image/jpg','now','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_retryCount','activeSheet$','onTransformIME','_onRemoteACK','size','_redoStacks','withCredentials','_assignedColors','_getAnchorBounding','getCollabCursors$','backgroundColor','8713999rkuxcZ','_anchor','trim','error$','prototype','requireSession','univer-online-status-title','getCurrentSelections','[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.','_createHandler','toggleOnline','LICENSE_EXPORT_SIZE_EXCEEDED','_unitStatus','_singleActiveUnitService','collaboration.single-unit.warning','_hover','_cachedData','_candidateSocket','localeService','sessionStatus$','UPDATE_CURSOR','split','FAIL','_socketMessageSubscription','_unitID','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','add','members','executeCommand','_onCursorUpdate','LIVESHARE_TERMINATE','_startCollaboration','assign','searchParams','fetchMissingChangesets','SYNCED','BASE64','getItem','isActive','flatMap','skeleton','awaiting_with_pending','json','extend','parse','_updateSubUnitFromURLParams','_scene','_updateState','getActiveSheet','defs','_showConflictNotification','UNIVER_COLLABORATION_CLIENT_PLUGIN','closePath','_uiPartsService','_roomMembers$','registerHTTPInterceptor','_HTTPService','resourceIDs','currentTheme$','min','responseType','_docSkeleton','override','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','connection\x20error','5wfJFNw','addEventListener','event$','_collaborationTimeoutTimer','registerBeforeClose','getUnitId','setConfig','params','[OfflineState]:\x20received\x20rejection.','UNKNOWN_CODE','fillText','OTHER_CLIENTS_EDITING','#fff','_socketReady','_localCacheService','_cursor','headers','_transformSelections','m1Prime','loginUrlKey','USERS_ENTER','Undefined','propertyIsEnumerable','name','TOO_MANY_REQUESTS','\x0aCurrent:\x20','startTime','_fetchMissChangesets','not_collab','incrementRevOfUnit','_collabCursorController','transformByState','engine','fetching\x20missing\x20changesets\x20from\x20','slice','defIds','joinRsp','substring','_sessions','getUnitType','objectType','/allowed','row','registerComponent','/-/object/list','jiqing500','HELLO','colorChannel1','authzUrl','unit','483430KWZPPd','_substituteRedoStack','LICENSE_DISTRO_REJECTED','InsertRangeMoveRightCommandId','_disableEditing','data','/block/','sendChangesetTimeout','_telemetryInfo','collabStatus.conflict','_event$','clearTimeout','mutations','div','getSheetBlock','_beforeCloseService','cmd','hovered','_acknowledgedAwaitingChangeset','evenodd','[UniverCollaborationClientPlugin]','bottom','_id','_context','getOwnPropertySymbols','_transformStack','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_onConnectionFailed','_getCurrentRevision','type','commentUpdate$','toRgbString','location','displayName','telemetry\x20info\x20is\x20not\x20initialized','batchAllowed','close$','removeParam','UNRECOGNIZED','startsWith','INVALID_ARGUMENT','image/bmp','_submitChangeset','_transformIMECache','_cursors','duration','_onOffline','getAncestorScale','collabStatus.notCollab','_setupSubUnitSync','_handler','generateRandomId','object','_getSignURL','_substituteUndoStack','_onRecvEvent','update','_incrementRevisionNumber','FETCH_MISSING','_clearOtherTimers','UNIVER_SHEET','replace','subscribeEvent','call','endColumn','isPermissionRej','with','_stopTelemetryCollaborationNewChangeset','image/png','eventID','_permissionService','[CollaborationState]:\x20apply\x20error!','roomMembers$','registerOnClose','INGEST','auth.needGotoLoginAlert','collabStatus.fetchMiss','_docSyncEditingCollabCursorService','_getSendChangesetTimeout','IDLE','YUUMI_UNABLE_LOAD_URL','_scheduleClearOtherTimer','collaborators','_http','findNodePositionByCharIndex','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','storage','Unknown\x20user','#FFF','_eventUnsubscribe','compose','_getMergeRange','collabStatus.offline','_send','_transformPreviousActiveRange','_themeService','9188946kqVtrG','_clearHeartbeatTimer','key','univer-online','_univerInstanceService','resend','getSheetId','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onStarting','getCurrentRevOfUnit','svg','/fetchmissing?from=','currentSkeleton$','_initRequestHeader','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_handleLeaveEvent','_getAPIPrefixPath','cursorInfo','COMPLETION_FINISHED','retryConnectingInterval','saveOfflineData','_createInitialStateImpl','_colorIndex','black','putCollaborators','_clearLocalCache','every','?size=','960838WrZxug','off-line-single_clip0_910_343','_initUnitPermissionChange','top','changesets','map','collaboratorID','SNAPSHOT_URL_KEY','_createInitialState','cursorInfo$','permissionRejEvent','_loadSheet','close','icon','status','catch','show','_scheduleTimestamp','CONFLICT','PENDING','_collabCursorState$','_color','onRemoteAck','_refreshCollabCursors','random','MSG_FOR_ERROR','HEARTBEAT','ERROR_EXCEED_SIZE','getCurrentUser','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','LICENSE_MAX_UNITS_EXCEEDED','_onRemoteChangeset','_waitCount','popstate','onlineStatus','path','roles','UniverIcon','save\x20fail\x20reason\x20is\x20','collab-client.tooltip.reconnect','UNDEFINED','downloadEndpointUrl','/universer-api/snapshot/','attrs','setTimeout','addObjects','_onRefRangeChange','NOT_COLLAB','_localeService','collaboration-client.config','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','getCellPositionByOffset','LIVESHARE_REQUEST_HOST','transformChangesets','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_getRedoStack','_compressMutationService','LIVESHARE_FETCH_OPERATIONS','_anchorDot','_listenToOfflineEvent','set','_selfUnitIDs','_name','symbol','\x20-\x20','_lastPointer','measureText','_exhaustRemoteChangesetQueue','height','updatePermissionObjEvent','selection','collab-rect-range-','_onRemoteRejected','saveSnapshot','_transformService','workbook','_updateLocalCache','RETRY_CONNECTING_MAX_COUNT','from','_transitionLocked','LEAVE','collabStatus.synced','PERMISSION_REJ','getCurrent','subunit','_decreaseWaiting','delete','onSyncEditingCollabCursor','pauseCollaboration','_initStatusListener','interceptor','objects','/role','_collabSessionService','listCollaborators','function','onMissedChangesetFetched','_snapshotServerService','_online','_initResize','_removeClearOtherTimer','collab-text-range-','synced','fetchMiss','onlyLocal','getMember','updatePermissionPoint','result','ONLINE','JOINING','_handleEvent','clear','push','_getSaveTimeout','asObservable','transform','closeSession','JOIN','getRelativeToViewportCoord','_unlockTransition','_socket$','RemoveColCommandId','_hovered','entries','COLLAB_SUBMIT_CHANGESET_URL','unload','InsertRowCommandId','_configService','_labelPosition','_awaitingChangeset','_retryConnectingTimer','_document','lineTo','xlink:href','onTransformRemoteChangesetByIMECache','length','_initEventListeners','rgba(255,\x20255,\x20255,\x200.01)','_collaborationSessionService','socket\x20open.','/rev/','_onUserLeave','put','getUnit','infoRsp','/universer-api/snapshot','CHANGESET_REJ','_toggleOnline','history','setShapeProps','rev','init','round','session.room-full','target','_clearRedo','forEach','setInterval','_listenToOnlineEvent','sheetId','get','_scheduleSaving','_range','translate(.97)','ranges','_clearTimeoutTimer','M0\x200H16V16H0z','getOffsetConfig','concat','href','color','_entityInit$','addObject','_collaborationController','_onFetchMissResult','transformIMECache','_handleHover','_clearCollaborationTimeoutTimer','awaiting','getTypeOfUnitDisposed$','unshift','loadOfflineData','_drawAnchor','_onCombEvent','url(#$1','onSendChangeset','unknown','doc.mutation.rich-text-editing','number','univer-pro.collaboration-client.single-active-unit-service','listRoles','CHANGESET_ACK','UNIVER_SLIDE','_userManagerService','getInterceptPoints','_config','FileId','_onConnectionOpen','HttpImport','_getDownloadEndpointURL','12GLKjxl','_getUndoStack','SUCCUSS','_toggleOffline','restore','enableAuthServer','_collaborationPaused','_drawTextRange','_sendHeartbeatTimer','textRanges','failed\x20to\x20apply\x20missed\x20changesets!','patch','_startDocCollabCursor','clearInterval','roomInfos','subUnitId','_renderManagerService','onCommandExecuted','HEARTBEAT_INTERVAL','use','x-univer-host','UNKNOWN_CMD','isArray','getUniverSheetInstance','drawWith','/universer-api/file/{fileID}/sign-url','[FetchMissState]','width','_initModules','\x20in\x20_schedule.','_timeoutTimer','getCollabEntity$','_status$','url','_initMergeInterceptor','getSheetBySheetId','DEFAULT_FILE_NAME','_socket','children','_getCtorByUniverType','fillStyle','then','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','text','requestParams','some','_undoStacks','createInstance','originalMeta','transformMutationsWithChangeset','[CollaborationEntity]','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','updateCollaborator','loadSheet','setUndoRedoMutationParamsCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitAdded$','find','startColumn','stringify','getCurrentUnitForType','POST','onStateChange','url(#on-line-single_clip0_910_349)','/unit/','values','_backgroundColor','_createSocket','_applyRemoteChangeset','encodeURIComponent','_cursorShapes','_textBubble','_httpService','fetchThroughInterceptors','UPDATE_PERMISSION_OBJ','onMissingChangesets','open$','UnitEmbedded','status$','state$','_colorAssignService','actions','univerjs-icon\x20univerjs-icon-','_socketService','COMPRESS_MUTATION_SEND','setCurrentUser','visibilityState','_updateURLWithCurrentState','INTERNAL_ERROR','_clearUndo','onload','[CollaborationSessionService]:\x20socket\x20error','31846617EmQSpj','replaceState','1em','_commentUpdate$','_sendingTimer','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getParam','idSuffix','_syncEditingCollabCursorService','beginPath','moveTo','resize','getMergeData','FETCH_MISS','LICENSE_IMPORT_SIZE_EXCEEDED','getSkeleton','assignAColorForMemberID','focused$','_members','LIVESHARE_OPERATION','_startSheetCollabCursor','_getLoginPath','post','/object/','hasOwnProperty','_removeCollabCursors','_scheduleCollaborationTimeoutTimer','toString','ERROR_IMAGE','getFocusedUnit','enableSingleActiveInstanceLock','currentColor','_removeRoom','_sheetTransformSelectionsService','_transformUndoredo','onCommentUpdate','_isPermissionRej','getUnhiddenWorksheets','/universer-api/authz','font','onRemoteChangeset','_injector','image/jpeg','className','getCollabEntity','AUTHZ_URL_KEY','_scheduleHeartbeat','LOCAL_CACHE_INTERVAL','newValue','_heartbeatTimer','isEditing','objectID','APPLY_REJECT','CHANGESET_REVISION_CONFILICT','EXCHANGE_SIGN_URL_SERVER_URL_KEY','liveShareOperation','_state$','save','_checkMissing','COMMENT_UPDATE','_revisionService','createElement','fill','InsertColCommandId','_onCursorDelete','_state','RECV','_unitOnClients','/resources','FromArray','pushState','dispose$','[SyncedState]:\x20received\x20rejection.','getDocRanges','PSEUDO_FETCH_MISSING_RESULT','snapshotServerUrl','OFFLINE','session.collaboration-timeout','getUnitStatus$','max','whenReady','0\x200\x2016\x2016','setParam','includes','LOGIN_URL_KEY','dispose','Error','has','collaMsg','transformMutation','online','getTime','on-line-single_clip0_910_349','hide','encode','_throwTelemetryCollaborationNewChangeset','_drawRectRange','current','collabStatus.syncing','getRoom','collabWebSocketUrl','unsubscribe','_type','editingUnit','memberID','getOwnPropertyDescriptor','setItem','snapshot','SUBMIT_CHANGESET','_cursorInfo$','onMouseMove','_change$','unitId','permission.content','fetch_missing','APPLY_PERMISSION_DENIED','appendMutation','enableLocalCache','updateOfflineData','_sheetSkeletonManagerService','tag','HEARTBEAT_TIMEOUT','RemoveRowCommandId','Warning','_initCloseConn','_ws','apply','126cBrNUG','uni.network.url-service','_onMessage','url(#off-line-single_clip0_910_343)','urlChange$','updateMember','getUnitOnRev','getMemberID','endRow','SNAPSHOT_INVALID_SNAPSHOT','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_ensureSubject','AWAITING_WITH_PENDING','offline','next','HttpExport','session','conflict','_telemetryService','_lockTransition','_session','APPLY_NON_SEQUENTIAL_REVISION','_getAPIPrefix','deepClone','debug','_executeRemoteChangeset','_urlService','_shapes','setActiveRange','/universer-api/comb','_transformRemoteChangesetByIMECache','range','UUID','indexOf','conflict.content','YUUMI_RATE_OVER_LIMIT','_shouldReportTelemetry','/collaborator','updateCursorEvent','_pendingMutations','initWorkbookPermissionChange','transformUndoRedo','_sendHeartbeat','_commentService','_saveTaskMap','[CollaborationSession]','disposeWithMe','_updateStatus','_updateLocalCursor','column','body','state','defineProperty','_onConflict','collaboration-session-retry','fromCollab','m2Prime','/new_changes','onRendered','_draw','pending','create','_snapshotService','_tryReconnect','disableLocalCache','reconnect','saveSheetBlock','_getUploadFileURL','8UqMJVj','{fileID}','stopTime','_registerRenderDependencies','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[SyncedState]:\x20received\x20acknowledgement.','NO_OTHER_CLIENTS_EDITING','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','createSocket','_disabled','onReady','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','1843492tFtATd','title','_registerDependencies','onRemoteRej','CONNECTOR_DATA_TOO_LARGE','_setupBeforeClosingHandler','_handleHeartbeatEvent','routeKey','COMPRESS_MUTATION_APPLY','_logService','LIVESHARE_NEW_HOST','YUUMI_URL_COL_OUT_OF_RANGE','_init','_replaceFileID','_joinRoom','_initCommandExecutedListener','verdancy600','transformSelections','_refRangeService','csRejEvent','_hideTimer','6mHYcaQ','[OfflineState]:\x20received\x20acknowledgement.','replaceTextRanges','complete','getValue','_entities','/object','gold400','baseRev','_loadDoc','unit-cache-','getConfig','removeMember','getImage','reduce','&source=','_waitForHeartbeatResponse','UnitSnapshot','_getSnapshotAPIPrefix','_clearScheduledTask','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','c2Prime','AWAITING','387504Fmtmfj','_initStatusComponent','\x0aAfter:\x20','_docTransformIMECacheService','getWorkbookSelections','_imageSourceCache','getImageSourceCache','awaitingChangeset','PERMISSION_DENIED','string','toggleOffline','getRangePointData','_memberService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','send','none','_roomMembers','signUrlServerUrl','clipPath','SNAPSHOT_HAS_BEEN_REMOVED','_sessionStatus$','0\x200\x2017\x2016','YUUMI_SUBSCRIPTION_NOT_FOUND','_schedule','hidden','ALREADY_EXISTS','loadDoc','_remoteChangesetQueue','onTransformSelections','_instanceService','_onLocalMutation','SNAPSHOT_SERVER_URL_KEY','sessionStatus','filter','capture','MUTATION','_updateCollabCursors','message$','OffLineSingle','code','\x20to\x20','_queuedRemoteChangesets','_onJoinRoomEvent','DeleteRangeMoveLeftCommandId','_docSkeletonManagerService','purple300','_localStorageService','_commandService','onPointerMove$','c1Prime','/-/object/-/batch_allowed','reject','MoveRangeCommandId','_getScale','...','onlineStatusTitle','_tryEnsureSocket','getRenderById','_syncEditingCollabCursor','setAlpha','unitID','_messageService','UNIVER_DOC','disposeUnit','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[DataLoaderController]','csAckEvent','APPLY_REVISION_CONFILICT','_rescheduleHeartbeat','subscribe','OnLineSingle','revision','session.will-retry','transformRemoteChangeset','_onUserJoin','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerRenderModule','selections','_startTelemetryCollaborationNewChangeset','collab-text-anchor-','_notificationService','NOT_FOUND','registerRefRange','error','joinEvent','submit\x20changeset\x20error!','confirm'];_0x38c5=function(){return _0x2b2a46;};return _0x38c5();}const as=0x7530,cs='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x28d30b{constructor(){const _0x3dae95=_0x2cf6ff;super(),l(this,_0x3dae95(0x417),_0x3d523e['generateRandomId']()),l(this,_0x3dae95(0x139),new Set()),l(this,_0x3dae95(0x263),new Map()),l(this,_0x3dae95(0x251),null),l(this,_0x3dae95(0x43c),new Map()),l(this,_0x3dae95(0x39a),new Map()),this['_init']();}[_0x2cf6ff(0x275)](){const _0x4b9c66=_0x2cf6ff;super[_0x4b9c66(0x275)](),this['_clearOtherTimers'][_0x4b9c66(0x198)]((_0x3f48fd,_0x471c81)=>this[_0x4b9c66(0x160)](_0x471c81)),this['_heartbeatTimer']&&window[_0x4b9c66(0x1d1)](this[_0x4b9c66(0x251)]);}[_0x2cf6ff(0x26e)](_0xd21e9a){const _0x3700b6=_0x2cf6ff;return this[_0x3700b6(0x2aa)](_0xd21e9a)['pipe'](_0x3c67f1());}[_0x2cf6ff(0x287)](_0x5721fc){const _0x315f3d=_0x2cf6ff;this['_selfUnitIDs']['size']===0x0&&this[_0x315f3d(0x24e)](),this[_0x315f3d(0x139)]['add'](_0x5721fc),this[_0x315f3d(0xdd)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5721fc],'isForwarded':!0x1});}[_0x2cf6ff(0x35a)](_0x534df7){const _0x749def=_0x2cf6ff;this[_0x749def(0x139)][_0x749def(0x152)](_0x534df7),this[_0x749def(0x139)][_0x749def(0x387)]===0x0&&this[_0x749def(0x251)]&&window[_0x749def(0x1d1)](this[_0x749def(0x251)]);}[_0x2cf6ff(0x2fb)](){const _0x1bdc66=_0x2cf6ff;this['disposeWithMe'](_0x57baeb(_0x4f5602(window,_0x1bdc66(0x457))[_0x1bdc66(0x360)](_0x23d687=>{const _0x167437=_0x1bdc66;if(_0x23d687[_0x167437(0xe2)]!==cs||!_0x23d687[_0x167437(0x250)])return;const _0x280c51=JSON[_0x167437(0x3ba)](_0x23d687[_0x167437(0x250)]);this['_handleEvent'](_0x280c51);}))),window['addEventListener'](_0x1bdc66(0x179),()=>this[_0x1bdc66(0xdd)]({'type':0x1,'memberID':this[_0x1bdc66(0x417)],'unitIDs':Array['from'](this[_0x1bdc66(0x139)])}));}[_0x2cf6ff(0x16a)](_0x1fa443){const _0x301e0f=_0x2cf6ff;switch(_0x1fa443[_0x301e0f(0x41e)]){case 0x0:this['_handleJoinEvent'](_0x1fa443);break;case 0x1:this[_0x301e0f(0xef)](_0x1fa443);break;case 0x2:this[_0x301e0f(0x2f5)](_0x1fa443);break;}}['_handleJoinEvent'](_0x46790c){const _0x5293a3=_0x2cf6ff,{unitIDs:_0xcda713,memberID:_0xd9d68e,isForwarded:_0x27c25a}=_0x46790c;_0xcda713[_0x5293a3(0x198)](_0x3d9ec2=>{const _0x971931=_0x5293a3;if(!_0x27c25a&&this[_0x971931(0x263)][_0x971931(0x277)](_0x3d9ec2)&&this[_0x971931(0x2aa)](_0x3d9ec2)[_0x971931(0x2ad)](0x1),!this[_0x971931(0x263)][_0x971931(0x277)](_0x3d9ec2)||!this[_0x971931(0x263)][_0x971931(0x19c)](_0x3d9ec2)[_0x971931(0x277)](_0xd9d68e)){const _0x31785e=this[_0x971931(0x263)]['get'](_0x3d9ec2)||new Set();_0x31785e[_0x971931(0x3a8)](_0xd9d68e),this[_0x971931(0x263)][_0x971931(0x138)](_0x3d9ec2,_0x31785e),this['_scheduleClearOtherTimer'](_0xd9d68e);}}),_0x27c25a||this['_send']({'type':0x0,'memberID':this[_0x5293a3(0x417)],'unitIDs':[...this[_0x5293a3(0x139)]],'isForwarded':!0x0});}[_0x2cf6ff(0x452)](_0x3f5740){const _0x2762f8=_0x2cf6ff;this[_0x2762f8(0x160)](_0x3f5740);const _0x2560b5=window[_0x2762f8(0x128)](()=>{const _0x10e6e3=_0x2762f8;this[_0x10e6e3(0x263)]['forEach'](_0x513ce5=>{const _0x3c6025=_0x10e6e3;_0x513ce5[_0x3c6025(0x152)](_0x3f5740);});},as*0x2);this[_0x2762f8(0x43c)]['set'](_0x3f5740,_0x2560b5);}['_removeClearOtherTimer'](_0x50b625){const _0x30929f=_0x2cf6ff;if(this['_clearOtherTimers']['has'](_0x50b625)){const _0x11f283=this['_clearOtherTimers'][_0x30929f(0x19c)](_0x50b625);_0x11f283&&window[_0x30929f(0x40c)](_0x11f283),this['_clearOtherTimers'][_0x30929f(0x138)](_0x50b625,null);}}[_0x2cf6ff(0xef)](_0x315640){const {memberID:_0x3f257d,unitIDs:_0x1b0472}=_0x315640;_0x1b0472['forEach'](_0x2b571e=>{const _0x1f9c3f=_0xd63a;var _0x17267c;const _0x4eebc2=this[_0x1f9c3f(0x263)][_0x1f9c3f(0x19c)](_0x2b571e);_0x4eebc2&&(_0x4eebc2[_0x1f9c3f(0x152)](_0x3f257d),(_0x17267c=this[_0x1f9c3f(0x2aa)](_0x2b571e))==null||_0x17267c['next'](_0x4eebc2[_0x1f9c3f(0x387)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x3f257d);}[_0x2cf6ff(0x2f5)](_0x398ab6){const _0x7e6010=_0x2cf6ff;this[_0x7e6010(0x452)](_0x398ab6[_0x7e6010(0x288)]);}[_0x2cf6ff(0xdd)](_0x4c31c6){const _0x34a4fe=_0x2cf6ff;localStorage['setItem'](cs,JSON[_0x34a4fe(0x1ff)](_0x4c31c6));}[_0x2cf6ff(0x24e)](){const _0x487fd1=_0x2cf6ff;this[_0x487fd1(0x251)]=window[_0x487fd1(0x199)](()=>{const _0x473b51=_0x487fd1;this[_0x473b51(0xdd)]({'type':0x2,'memberID':this['_id']});},as);}[_0x2cf6ff(0x2aa)](_0xc500b2){const _0x535ef1=_0x2cf6ff;return this['_unitStatus'][_0x535ef1(0x277)](_0xc500b2)||this[_0x535ef1(0x39a)][_0x535ef1(0x138)](_0xc500b2,new _0xa8903e(0x0)),this[_0x535ef1(0x39a)][_0x535ef1(0x19c)](_0xc500b2);}}function xs(_0xbcfd2c){let _0x2e69ce='';for(const _0x24491f of _0xbcfd2c){const {startOffset:_0x2bad0e,endOffset:_0x516835,isActive:_0x3063eb}=_0x24491f;_0x2e69ce['length']&&(_0x2e69ce+=','),_0x2e69ce+=_0x2bad0e+':'+_0x516835+':'+(_0x3063eb?'1':'0');}return _0x2e69ce;}function or(_0x35fa0c){const _0x488de9=_0x2cf6ff,_0x2aa7ee=_0x35fa0c[_0x488de9(0x3a3)](','),_0x50eda0=[];for(const _0x52e91d of _0x2aa7ee){const [_0x47fc7e,_0x165ee4,_0xd3571e]=_0x52e91d[_0x488de9(0x3a3)](':');_0x50eda0[_0x488de9(0x16c)]({'startOffset':Number(_0x47fc7e),'endOffset':Number(_0x165ee4),'collapsed':_0x47fc7e===_0x165ee4,'isActive':_0xd3571e==='1'});}return _0x50eda0[_0x488de9(0x1f1)](_0xaf2804=>_0xaf2804[_0x488de9(0x3b4)])||(_0x50eda0[0x0][_0x488de9(0x3b4)]=!0x0),_0x50eda0;}class Bt extends _0x424705{constructor(){const _0x3db98d=_0x2cf6ff;super(...arguments),l(this,_0x3db98d(0x110),new _0xa8903e(null)),l(this,'collabCursorState$',this[_0x3db98d(0x110)][_0x3db98d(0x16e)]());}['syncEditingCollabCursor'](_0xa41e5){const _0x11eed8=_0x2cf6ff,{unitID:_0x122209,memberID:_0x1dc552,textRanges:_0xc98d50}=_0xa41e5,_0x91b374=xs(_0xc98d50),_0x28619a={'unitID':_0x122209,'memberID':_0x1dc552,'selection':_0x91b374};this[_0x11eed8(0x110)]['next'](_0x28619a);}}var ar=Object[_0x2cf6ff(0x2d3)],cr=Object[_0x2cf6ff(0x289)],hr=(_0x3af35b,_0x6b030c,_0x2668ad,_0x2ff093)=>{for(var _0x2a9fea=_0x2ff093>0x1?void 0x0:_0x2ff093?cr(_0x6b030c,_0x2668ad):_0x6b030c,_0x4aef1d=_0x3af35b['length']-0x1,_0x3ec425;_0x4aef1d>=0x0;_0x4aef1d--)(_0x3ec425=_0x3af35b[_0x4aef1d])&&(_0x2a9fea=(_0x2ff093?_0x3ec425(_0x6b030c,_0x2668ad,_0x2a9fea):_0x3ec425(_0x2a9fea))||_0x2a9fea);return _0x2ff093&&_0x2a9fea&&ar(_0x6b030c,_0x2668ad,_0x2a9fea),_0x2a9fea;},hs=(_0x55b2be,_0x552131)=>(_0x3b8432,_0x5649a1)=>_0x552131(_0x3b8432,_0x5649a1,_0x55b2be);let Xe=class{constructor(_0x5b55de,_0x572b31){const _0x5e14b1=_0x2cf6ff;this[_0x5e14b1(0x249)]=_0x5b55de,this['_transformService']=_0x572b31;}[_0x2cf6ff(0x300)](_0x4c4f28){const _0x240a1a=_0x2cf6ff;var _0x314ded;const _0x5aaafc=this[_0x240a1a(0x249)][_0x240a1a(0x19c)](_0x253567),_0x1d388a=(_0x314ded=_0x5aaafc[_0x240a1a(0x269)]())!=null?_0x314ded:[];if(_0x1d388a[_0x240a1a(0x183)]===0x0)return;const _0x359147=[{'id':_0x240a1a(0x1b7),'params':{'unitId':_0x4c4f28['unitID'],'actions':null,'textRanges':_0x1d388a}}],_0x4f4e6c=this[_0x240a1a(0x146)][_0x240a1a(0x1f5)](_0x4c4f28,_0x359147);if(!_0x61acc5(_0x4f4e6c))throw _0x4f4e6c['error'];const _0x1928b6=_0x4f4e6c[_0x240a1a(0x2d7)][0x0][_0x240a1a(0x3d6)][_0x240a1a(0x1cd)];Array[_0x240a1a(0x1da)](_0x1928b6)&&_0x1928b6[_0x240a1a(0x183)]&&_0x5aaafc[_0x240a1a(0x306)](_0x1928b6,!0x1);}};Xe=hr([hs(0x0,_0x11c4b2(_0x3ca714)),hs(0x1,_0x1d81ff)],Xe);const lr=new Set([_0x46f3fa['id']]);function ls(_0x35e474,_0x396664,_0x1b764b,_0x12cb07,_0x1d833a){const _0x198c63=_0x2cf6ff;var _0x50a994,_0x50e055,_0x1477bd,_0x1ae006;const _0x5f4920=[];for(const _0x2b99f5 of _0x35e474)if(lr['has'](_0x2b99f5['id'])){if(_0x5f4920[_0x198c63(0x183)]>0x0)break;_0x5f4920[_0x198c63(0x16c)](_0x2b99f5);break;}else _0x5f4920[_0x198c63(0x16c)](_0x2b99f5);const _0x4afedb=(_0x50e055=(_0x50a994=_0x1d833a[_0x198c63(0x118)]())==null?void 0x0:_0x50a994['userID'])!=null?_0x50e055:_0x198c63(0x1b6),_0x368d01=(_0x1ae006=(_0x1477bd=_0x1d833a[_0x198c63(0x118)]())==null?void 0x0:_0x1477bd[_0x198c63(0x288)])!=null?_0x1ae006:_0x198c63(0x1b6);return{'changeset':{'unitID':_0x396664,'type':_0x4053f9(_0x1b764b[_0x198c63(0x3f6)](_0x396664)),'baseRev':_0x12cb07[_0x198c63(0xe9)](_0x396664),'revision':0x0,'userID':_0x4afedb,'memberID':_0x368d01,'mutations':_0x5f4920},'pendingMutations':_0x35e474[_0x198c63(0x3f1)](_0x5f4920[_0x198c63(0x183)])};}function _r(_0x175d9e,_0x5c2874,_0x2da6c1,_0x5ce4f9,_0x5bf855){const _0x109a41=_0x2cf6ff;var _0x4ddd89,_0x382116,_0x1e7c08,_0x187bb0;const _0x129516=[_0x175d9e[_0x109a41(0x312)]((_0x42b8f8,_0x1d4f05)=>{const _0x2f25ac=_0x109a41;var _0x212ce8;const {id:_0xd60062}=_0x42b8f8,{id:_0x1d37ae,type:_0x491bee}=_0x1d4f05,_0x1de411=(_0x212ce8=_0x42b8f8['params'])!=null?_0x212ce8:{'actions':null},_0x306af1=_0x1d4f05[_0x2f25ac(0x3d6)];if(_0xd60062&&_0xd60062!==_0x1d37ae)throw new Error(_0x2f25ac(0x382)+_0xd60062+_0x2f25ac(0x13c)+_0x1d37ae+'.');return{..._0x42b8f8,'id':_0x1d37ae,'type':_0x491bee,'params':{'unitId':_0x306af1[_0x2f25ac(0x290)],'textRanges':_0x306af1[_0x2f25ac(0x1cd)],'actions':_0x295634[_0x2f25ac(0xda)](_0x1de411[_0x2f25ac(0x215)],_0x306af1[_0x2f25ac(0x215)])}};},{})],_0xa62dc5=(_0x382116=(_0x4ddd89=_0x5bf855['getCurrentUser']())==null?void 0x0:_0x4ddd89['userID'])!=null?_0x382116:_0x109a41(0x1b6),_0x4cb5f1=(_0x187bb0=(_0x1e7c08=_0x5bf855['getCurrentUser']())==null?void 0x0:_0x1e7c08[_0x109a41(0x288)])!=null?_0x187bb0:_0x109a41(0x1b6);return{'changeset':{'unitID':_0x5c2874,'type':_0x4053f9(_0x2da6c1[_0x109a41(0x3f6)](_0x5c2874)),'baseRev':_0x5ce4f9['getCurrentRevOfUnit'](_0x5c2874),'revision':0x0,'userID':_0xa62dc5,'memberID':_0x4cb5f1,'mutations':_0x129516},'pendingMutations':[]};}const ur={'id':_0x2fd71f['id'],'type':_0xccd063[_0x2cf6ff(0x33e)],'params':{}};var dr=Object['defineProperty'],fr=Object[_0x2cf6ff(0x289)],le=(_0x409713,_0x1e60ed,_0x36df10,_0x3368c0)=>{const _0x1e83d3=_0x2cf6ff;for(var _0x37e57f=_0x3368c0>0x1?void 0x0:_0x3368c0?fr(_0x1e60ed,_0x36df10):_0x1e60ed,_0x577491=_0x409713[_0x1e83d3(0x183)]-0x1,_0x42851f;_0x577491>=0x0;_0x577491--)(_0x42851f=_0x409713[_0x577491])&&(_0x37e57f=(_0x3368c0?_0x42851f(_0x1e60ed,_0x36df10,_0x37e57f):_0x42851f(_0x37e57f))||_0x37e57f);return _0x3368c0&&_0x37e57f&&dr(_0x1e60ed,_0x36df10,_0x37e57f),_0x37e57f;},m=(_0x547118,_0x53691f)=>(_0x36782d,_0x42ba2e)=>_0x53691f(_0x36782d,_0x42ba2e,_0x547118),w=(_0x143058=>(_0x143058[_0x2cf6ff(0x12b)]=_0x2cf6ff(0x3eb),_0x143058[_0x2cf6ff(0x3b1)]=_0x2cf6ff(0x162),_0x143058[_0x2cf6ff(0x10f)]='pending',_0x143058[_0x2cf6ff(0x31a)]='awaiting',_0x143058[_0x2cf6ff(0x2ab)]=_0x2cf6ff(0x3b7),_0x143058[_0x2cf6ff(0x22d)]='fetch_missing',_0x143058[_0x2cf6ff(0x10e)]='conflict',_0x143058[_0x2cf6ff(0x26c)]=_0x2cf6ff(0x2ac),_0x143058))(w||{});class _e{constructor(_0x406d17,_0x168c23,_0x2542b8,_0x953c32,_0x5304bc,_0x2a10c1,_0x5bd242,_0x3dd447,_0xc7ea29){const _0x661bb9=_0x2cf6ff;l(this,_0x661bb9(0x17d),null),l(this,'_pendingMutations',[]),(this[_0x661bb9(0x357)]=_0x406d17,this[_0x661bb9(0x41e)]=_0x168c23,this['_handler']=_0x5304bc,this[_0x661bb9(0x34a)]=_0x2a10c1,this['_undoRedoService']=_0x5bd242,this[_0x661bb9(0x25c)]=_0x3dd447,this[_0x661bb9(0x3dd)]=_0xc7ea29,this[_0x661bb9(0x17d)]=_0x2542b8,this[_0x661bb9(0x2c6)]=_0x953c32);}[_0x2cf6ff(0x25a)](_0x36fdfa){const _0x1721e5=_0x2cf6ff,_0x177955=this[_0x1721e5(0x25c)][_0x1721e5(0xe9)](this[_0x1721e5(0x357)]);return _0x36fdfa[_0x1721e5(0x362)]>_0x177955+0x1?(this[_0x1721e5(0x433)][_0x1721e5(0x20f)]({'from':_0x177955,'to':_0x36fdfa['revision']-0x1}),!0x0):!0x1;}[_0x2cf6ff(0x242)](_0xf8574d){const _0x3e7c41=_0x2cf6ff;this['_undoRedoService']['transformUndoRedo'](this[_0x3e7c41(0x357)],_0xf8574d);}[_0x2cf6ff(0x3e0)](_0x3cbc40){var _0x4c3e10,_0x34e05f;(_0x34e05f=(_0x4c3e10=this['_handler'])['onTransformSelections'])==null||_0x34e05f['call'](_0x4c3e10,_0x3cbc40);}[_0x2cf6ff(0x42c)](_0x44e061){const _0x492ac6=_0x2cf6ff;var _0x47ce02,_0x393259;return(_0x393259=(_0x47ce02=this['_handler'])[_0x492ac6(0x385)])==null?void 0x0:_0x393259[_0x492ac6(0x440)](_0x47ce02,_0x44e061);}[_0x2cf6ff(0x2bd)](_0x48e27c){const _0x3050af=_0x2cf6ff;var _0x597a6b,_0xe77b08,_0xaefb68;return(_0xaefb68=(_0xe77b08=(_0x597a6b=this[_0x3050af(0x433)])[_0x3050af(0x182)])==null?void 0x0:_0xe77b08[_0x3050af(0x440)](_0x597a6b,_0x48e27c))!=null?_0xaefb68:_0x48e27c;}['_syncEditingCollabCursor'](_0x54ae45){const _0x2a853b=_0x2cf6ff;var _0xcc0968,_0x50e1b6;if(this[_0x2a853b(0x41e)]===H['UNIVER_DOC']){const {unitID:_0x34e72a,mutations:_0x4c3d9e,memberID:_0x6dac3f}=_0x54ae45,_0x2ca277=_0x4c3d9e[0x0][_0x2a853b(0x3d6)][_0x2a853b(0x1cd)];Array[_0x2a853b(0x1da)](_0x2ca277)&&_0x2ca277[_0x2a853b(0x183)]>0x0&&((_0x50e1b6=(_0xcc0968=this['_handler'])[_0x2a853b(0x153)])==null||_0x50e1b6[_0x2a853b(0x440)](_0xcc0968,{'unitID':_0x34e72a,'memberID':_0x6dac3f,'textRanges':_0x2ca277}));}}[_0x2cf6ff(0x148)](){const _0x4f91bd=_0x2cf6ff;this[_0x4f91bd(0x3dd)][_0x4f91bd(0x296)](this[_0x4f91bd(0x357)],this[_0x4f91bd(0x41e)],this[_0x4f91bd(0x17d)],this[_0x4f91bd(0x2c6)]);}['_getCurrentRevision'](){const _0x361956=_0x2cf6ff;return this['_revisionService'][_0x361956(0xe9)](this['unitID']);}[_0x2cf6ff(0x43a)](){const _0x4b2670=_0x2cf6ff;this[_0x4b2670(0x25c)][_0x4b2670(0x3ec)](this[_0x4b2670(0x357)]);}[_0x2cf6ff(0x2b8)](_0x1bd30a){const _0x5ddf6b=_0x2cf6ff;var _0x589e88;const _0xd40e94=this[_0x5ddf6b(0x2bd)](_0x1bd30a),_0x5d4aae=_0x2a6345(_0xd40e94[_0x5ddf6b(0x40d)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5d4aae['result'])throw _0x5d4aae[_0x5ddf6b(0x36e)]instanceof Error?_0x5d4aae[_0x5ddf6b(0x36e)]:new Error((_0x589e88=_0x5d4aae[_0x5ddf6b(0x36e)])!=null?_0x589e88:_0x5ddf6b(0x448));this[_0x5ddf6b(0x42c)](_0xd40e94),this['_transformUndoredo'](_0x1bd30a),this[_0x5ddf6b(0x3e0)](_0xd40e94),this[_0x5ddf6b(0x355)](_0xd40e94),this[_0x5ddf6b(0x43a)]();}}let Se=class extends _e{constructor(_0x37d6b9,_0x35ec4a,_0x2ed858,_0x4a9085,_0x131c0f,_0x441dcc,_0x30994b,_0x46111b,_0x3538ee,_0x1f2b2d){const _0x44e923=_0x2cf6ff;super(_0x37d6b9,_0x35ec4a,null,[],_0x2ed858,_0x46111b,_0x30994b,_0x4a9085,_0x131c0f),l(this,_0x44e923(0x10a),_0x44e923(0x162)),(this['_injector']=_0x441dcc,this[_0x44e923(0x2f8)]=_0x3538ee,this[_0x44e923(0x146)]=_0x1f2b2d);}['appendMutation'](_0x1ba0d7){const _0x9788c5=_0x2cf6ff,_0x2c77b6=this[_0x9788c5(0x249)][_0x9788c5(0x1f3)](K,this[_0x9788c5(0x357)],this[_0x9788c5(0x41e)],[_0x1ba0d7],this[_0x9788c5(0x433)]);return _0x2c77b6[_0x9788c5(0x332)](),_0x2c77b6['_updateLocalCache'](),_0x2c77b6;}['onRemoteChangeset'](_0x58728c){const _0xf96528=_0x2cf6ff;if(this[_0xf96528(0x25a)](_0x58728c))return this['_injector'][_0xf96528(0x1f3)](k,this[_0xf96528(0x357)],this[_0xf96528(0x41e)],null,[],null,[_0x58728c],this[_0xf96528(0x433)]);try{const _0x189427=this[_0xf96528(0x146)][_0xf96528(0x1f5)](_0x58728c,[ur]);if(_0x61acc5(_0x189427)){const {c1Prime:_0x4da21a}=_0x189427;return this[_0xf96528(0x2b8)](_0x4da21a),this;}throw _0x189427[_0xf96528(0x36e)];}catch(_0xf0d2e){return this[_0xf96528(0x2f8)][_0xf96528(0x36e)](_0xf0d2e),this[_0xf96528(0x2d4)](!0x1);}}['_onConflict'](_0x4d7531){const _0xc9d4e2=_0x2cf6ff;return this[_0xc9d4e2(0x249)][_0xc9d4e2(0x1f3)](Q,this[_0xc9d4e2(0x357)],this[_0xc9d4e2(0x41e)],null,[],this[_0xc9d4e2(0x433)],_0x4d7531);}[_0x2cf6ff(0x112)](){const _0x1b5ded=_0x2cf6ff;throw new Error(_0x1b5ded(0x2e8));}[_0x2cf6ff(0x2f2)](){const _0x212b3b=_0x2cf6ff;throw new Error(_0x212b3b(0x268));}[_0x2cf6ff(0x325)](){const _0x4fe2a1=_0x2cf6ff;return this[_0x4fe2a1(0x249)][_0x4fe2a1(0x1f3)](ee,this[_0x4fe2a1(0x357)],this[_0x4fe2a1(0x41e)],null,[],this[_0x4fe2a1(0x433)]);}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x812a26=_0x2cf6ff;throw new Error(_0x812a26(0x2ee));}[_0x2cf6ff(0x163)](){const _0x579d5f=_0x2cf6ff,_0x9f04fe=this[_0x579d5f(0x25c)][_0x579d5f(0xe9)](this[_0x579d5f(0x357)]);return this[_0x579d5f(0x433)][_0x579d5f(0x20f)]({'from':_0x9f04fe,'to':0x0}),this[_0x579d5f(0x249)][_0x579d5f(0x1f3)](k,this['unitID'],this[_0x579d5f(0x41e)],null,[],null,[],this[_0x579d5f(0x433)]);}};Se=le([m(0x3,_0x11c4b2(_0x382160)),m(0x4,_0x11c4b2(D)),m(0x5,_0x11c4b2(_0x3ca714)),m(0x6,_0x55c638),m(0x7,_0x339bfb),m(0x8,_0x58af89),m(0x9,_0x1d81ff)],Se);let K=class extends _e{constructor(_0x49f14a,_0x4d4e35,_0x5440a1,_0x2676ac,_0x32884a,_0x1e9c1e,_0x3f8525,_0x2c428f,_0x5c0eeb,_0x233500,_0x25de01,_0x280875,_0x332891,_0x21e31d){const _0x1f5a21=_0x2cf6ff;super(_0x49f14a,_0x4d4e35,null,_0x5440a1,_0x2676ac,_0x233500,_0x21e31d,_0x1e9c1e,_0x3f8525),l(this,'status',_0x1f5a21(0x2db)),l(this,'_scheduleTimestamp',null),l(this,_0x1f5a21(0x224),null),(this['_injector']=_0x32884a,this[_0x1f5a21(0x327)]=_0x2c428f,this[_0x1f5a21(0x2f8)]=_0x5c0eeb,this['_configService']=_0x25de01,this['_transformService']=_0x280875,this['_univerInstanceService']=_0x332891);}[_0x2cf6ff(0x294)](_0x18f7ab){const _0xd4ff7=_0x2cf6ff;return this[_0xd4ff7(0x2c6)][_0xd4ff7(0x16c)](_0x18f7ab),this[_0xd4ff7(0x148)](),this;}[_0x2cf6ff(0x248)](_0x168942){const _0x3af80b=_0x2cf6ff;if(this[_0x3af80b(0x25a)](_0x168942))return this['_clearScheduledTask'](),this[_0x3af80b(0x249)][_0x3af80b(0x1f3)](k,this[_0x3af80b(0x357)],this['type'],null,this['_pendingMutations'],null,[_0x168942],this[_0x3af80b(0x433)]);try{const _0x45393f=this[_0x3af80b(0x146)][_0x3af80b(0x1f5)](_0x168942,this[_0x3af80b(0x2c6)]);if(_0x61acc5(_0x45393f)){const {c1Prime:_0x337731,m2Prime:_0x2e9571}=_0x45393f;this[_0x3af80b(0x2b8)](_0x337731);const _0xb26fda=this[_0x3af80b(0x249)][_0x3af80b(0x1f3)](K,this[_0x3af80b(0x357)],this['type'],_0x2e9571,this['_handler']);return this[_0x3af80b(0x317)](),_0xb26fda['_schedule'](this[_0x3af80b(0x10d)]?Math['max'](0x0,new Date()[_0x3af80b(0x27b)]()-this[_0x3af80b(0x10d)]):this[_0x3af80b(0x44f)]()),_0xb26fda;}throw _0x45393f['error'];}catch(_0x1a7283){return this[_0x3af80b(0x2f8)][_0x3af80b(0x36e)](_0x1a7283),this['_onConflict'](!0x1);}}[_0x2cf6ff(0x112)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2cf6ff(0x2f2)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2cf6ff(0x325)](){const _0x556113=_0x2cf6ff;return this[_0x556113(0x317)](),this[_0x556113(0x249)]['createInstance'](ee,this[_0x556113(0x357)],this[_0x556113(0x41e)],null,this[_0x556113(0x2c6)],this['_handler']);}[_0x2cf6ff(0x398)](){return this;}['_schedule'](_0x2f3a4e){const _0x223ee9=_0x2cf6ff,_0x4402de=_0x2f3a4e!=null?_0x2f3a4e:this[_0x223ee9(0x44f)]();this[_0x223ee9(0x10d)]=new Date()['getTime'](),this[_0x223ee9(0x224)]=window[_0x223ee9(0x128)](()=>{const _0x2ee111=_0x223ee9;this['_clearScheduledTask']();let _0x2b8ddd=null;switch(this[_0x2ee111(0x41e)]){case H['UNIVER_SHEET']:{_0x2b8ddd=ls(this[_0x2ee111(0x2c6)],this[_0x2ee111(0x357)],this['_univerInstanceService'],this[_0x2ee111(0x25c)],this['_memberService']);break;}case H[_0x2ee111(0x359)]:{this[_0x2ee111(0x2c6)][_0x2ee111(0xfa)](_0x2d8e54=>_0x2d8e54['id']===_0x137108['id'])?_0x2b8ddd=_r(this[_0x2ee111(0x2c6)],this[_0x2ee111(0x357)],this[_0x2ee111(0xe4)],this[_0x2ee111(0x25c)],this[_0x2ee111(0x327)]):_0x2b8ddd=ls(this[_0x2ee111(0x2c6)],this['unitID'],this[_0x2ee111(0xe4)],this['_revisionService'],this[_0x2ee111(0x327)]);break;}default:throw new Error(_0x2ee111(0x2e7)+this[_0x2ee111(0x41e)]+_0x2ee111(0x1e1));}const {changeset:_0xd1475e,pendingMutations:_0x549de8}=_0x2b8ddd;this['_handler']['onSendChangeset'](_0xd1475e);const _0x34fd5d=_0x549de8[_0x2ee111(0x183)]?this[_0x2ee111(0x249)]['createInstance'](X,this[_0x2ee111(0x357)],this[_0x2ee111(0x41e)],_0xd1475e,_0x549de8,this[_0x2ee111(0x433)]):this[_0x2ee111(0x249)][_0x2ee111(0x1f3)](Z,this['unitID'],this['type'],_0xd1475e,this['_handler']);_0x34fd5d['_updateLocalCache'](),this[_0x2ee111(0x433)][_0x2ee111(0x202)](this,_0x34fd5d);},_0x4402de);}[_0x2cf6ff(0x44f)](){const _0x3c8094=_0x2cf6ff;var _0x1cb950;const _0x4ab780=this['_configService']['getConfig'](L);return(_0x1cb950=_0x4ab780==null?void 0x0:_0x4ab780[_0x3c8094(0x408)])!=null?_0x1cb950:gn;}[_0x2cf6ff(0xe5)](){const _0x3517ab=_0x2cf6ff;throw new Error(_0x3517ab(0x1fb));}['_clearScheduledTask'](){const _0x115ee4=_0x2cf6ff;this[_0x115ee4(0x224)]!=null&&(clearTimeout(this[_0x115ee4(0x224)]),this[_0x115ee4(0x224)]=null);}[_0x2cf6ff(0x2d4)](_0x5eeede){const _0x1f9259=_0x2cf6ff;return this[_0x1f9259(0x317)](),this[_0x1f9259(0x249)][_0x1f9259(0x1f3)](Q,this[_0x1f9259(0x357)],this[_0x1f9259(0x41e)],null,this[_0x1f9259(0x2c6)],this['_handler'],_0x5eeede);}};K=le([m(0x4,_0x11c4b2(_0x3ca714)),m(0x5,_0x11c4b2(_0x382160)),m(0x6,_0x11c4b2(D)),m(0x7,_0x11c4b2(ae)),m(0x8,_0x58af89),m(0x9,_0x339bfb),m(0xa,_0x5d22a5),m(0xb,_0x1d81ff),m(0xc,_0x3a69fb),m(0xd,_0x55c638)],K);let Z=class extends _e{constructor(_0x3b202b,_0x5bb26e,_0x30552,_0xcbd500,_0x1d188c,_0x1c86a0,_0x7be4d3,_0x28210b,_0x183d09,_0x3345e6,_0x2fa7af){const _0x4e6a3d=_0x2cf6ff;super(_0x3b202b,_0x5bb26e,_0x30552,[],_0xcbd500,_0x28210b,_0x2fa7af,_0x1c86a0,_0x7be4d3),l(this,_0x4e6a3d(0x10a),_0x4e6a3d(0x1ae)),(this[_0x4e6a3d(0x249)]=_0x1d188c,this[_0x4e6a3d(0x2f8)]=_0x183d09,this[_0x4e6a3d(0x146)]=_0x3345e6);}[_0x2cf6ff(0x294)](_0x3561c2){const _0x47a63b=_0x2cf6ff,_0x36a1b5=this[_0x47a63b(0x249)][_0x47a63b(0x1f3)](X,this[_0x47a63b(0x357)],this[_0x47a63b(0x41e)],this['_awaitingChangeset'],[_0x3561c2],this[_0x47a63b(0x433)]);return _0x36a1b5[_0x47a63b(0x148)](),_0x36a1b5;}[_0x2cf6ff(0x248)](_0x594acf){const _0x240680=_0x2cf6ff;if(this[_0x240680(0x25a)](_0x594acf))return this['_injector'][_0x240680(0x1f3)](k,this[_0x240680(0x357)],this[_0x240680(0x41e)],this[_0x240680(0x17d)],[],null,[_0x594acf],this[_0x240680(0x433)]);try{const _0x4326a1=this[_0x240680(0x146)][_0x240680(0x131)]([_0x594acf],[this['_awaitingChangeset']],!0x1);if(_0x535544(_0x4326a1)){const {c1Prime:_0xccfc2,c2Prime:_0x4ed793}=_0x4326a1;this[_0x240680(0x2b8)](_0xccfc2[0x0]),_0x4ed793[0x0][_0x240680(0x30c)]=this[_0x240680(0x41d)]();const _0x2153e6=this[_0x240680(0x249)][_0x240680(0x1f3)](Z,this[_0x240680(0x357)],this[_0x240680(0x41e)],_0x4ed793[0x0],this[_0x240680(0x433)]);return _0x2153e6[_0x240680(0x148)](),_0x2153e6;}return this['_onConflict'](!0x1);}catch(_0x4cd0d2){return this['_logService'][_0x240680(0x36e)](_0x4cd0d2),this[_0x240680(0x2d4)](!0x1);}}['onRemoteAck'](_0x231db6){const _0x4c459a=_0x2cf6ff,_0x3880b8=this['_revisionService'][_0x4c459a(0xe9)](this['unitID']);if(_0x231db6[_0x4c459a(0x362)]<_0x3880b8-0x1)return this;if(this[_0x4c459a(0x25a)](_0x231db6))return this[_0x4c459a(0x249)][_0x4c459a(0x1f3)](k,this[_0x4c459a(0x357)],this[_0x4c459a(0x41e)],null,[],this['_awaitingChangeset'],[],this['_handler']);this['_incrementRevisionNumber']();const _0x4440a3=this[_0x4c459a(0x249)][_0x4c459a(0x1f3)](Se,this[_0x4c459a(0x357)],this[_0x4c459a(0x41e)],this[_0x4c459a(0x433)]);return _0x4440a3['_updateLocalCache'](),_0x4440a3;}[_0x2cf6ff(0x2f2)](_0x2236b7){return this['_onConflict'](!!(_0x2236b7!=null&&_0x2236b7['isPermissionRej']));}[_0x2cf6ff(0x325)](){const _0x739a99=_0x2cf6ff;return this[_0x739a99(0x249)][_0x739a99(0x1f3)](ee,this[_0x739a99(0x357)],this[_0x739a99(0x41e)],this['_awaitingChangeset'],[],this[_0x739a99(0x433)]);}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x92d9d3=_0x2cf6ff;this[_0x92d9d3(0x433)][_0x92d9d3(0x1b5)](this[_0x92d9d3(0x17d)]);}[_0x2cf6ff(0x2d4)](_0x153deb){const _0x134358=_0x2cf6ff;return this[_0x134358(0x249)][_0x134358(0x1f3)](Q,this['unitID'],this[_0x134358(0x41e)],this[_0x134358(0x17d)],[],this['_handler'],_0x153deb);}};Z=le([m(0x4,_0x11c4b2(_0x3ca714)),m(0x5,_0x11c4b2(_0x382160)),m(0x6,_0x11c4b2(D)),m(0x7,_0x339bfb),m(0x8,_0x58af89),m(0x9,_0x1d81ff),m(0xa,_0x55c638)],Z);let X=class extends _e{constructor(_0x3fe3f8,_0x8c2ef2,_0x2f9874,_0x2797c7,_0x1cc13b,_0x7eb5f9,_0x4d7d90,_0x32529b,_0xa0e6f,_0x53372c,_0x4fbd97,_0x31896a){const _0x4f1127=_0x2cf6ff;super(_0x3fe3f8,_0x8c2ef2,_0x2f9874,_0x2797c7,_0x1cc13b,_0xa0e6f,_0x31896a,_0x4d7d90,_0x32529b),l(this,_0x4f1127(0x10a),_0x4f1127(0x3b7)),(this[_0x4f1127(0x249)]=_0x7eb5f9,this[_0x4f1127(0x2f8)]=_0x53372c,this['_transformService']=_0x4fbd97);}[_0x2cf6ff(0x294)](_0xca386){const _0xd4bfa0=_0x2cf6ff;return this[_0xd4bfa0(0x2c6)][_0xd4bfa0(0x16c)](_0xca386),this;}['onRemoteChangeset'](_0x940a64){const _0x55265e=_0x2cf6ff;if(this[_0x55265e(0x25a)](_0x940a64))return this[_0x55265e(0x249)]['createInstance'](k,this[_0x55265e(0x357)],this[_0x55265e(0x41e)],this[_0x55265e(0x17d)],this[_0x55265e(0x2c6)],null,[_0x940a64],this[_0x55265e(0x433)]);try{const _0x2ad564=this[_0x55265e(0x146)][_0x55265e(0x131)]([_0x940a64],[this[_0x55265e(0x17d)]],!0x1);if(_0x535544(_0x2ad564)){const {c1Prime:_0x3fc912,c2Prime:_0x5c1a0f}=_0x2ad564,_0x4cf813=this[_0x55265e(0x146)]['transformMutationsWithChangeset'](_0x3fc912[0x0],this[_0x55265e(0x2c6)]);if(_0x61acc5(_0x4cf813)){const {c1Prime:_0x311f10,m2Prime:_0x371929}=_0x4cf813;return this[_0x55265e(0x2b8)](_0x311f10),_0x5c1a0f[0x0]['baseRev']=this[_0x55265e(0x41d)](),this[_0x55265e(0x249)][_0x55265e(0x1f3)](X,this[_0x55265e(0x357)],this[_0x55265e(0x41e)],_0x5c1a0f[0x0],_0x371929,this[_0x55265e(0x433)]);}throw _0x4cf813['error'];}throw _0x2ad564[_0x55265e(0x36e)];}catch(_0x161026){return this[_0x55265e(0x2f8)][_0x55265e(0x36e)](_0x161026),this['_onConflict'](!0x1);}}[_0x2cf6ff(0x112)](_0x449df4){const _0x5e3b79=_0x2cf6ff;if(this[_0x5e3b79(0x25a)](_0x449df4))return this['_injector'][_0x5e3b79(0x1f3)](k,this['unitID'],this[_0x5e3b79(0x41e)],null,this[_0x5e3b79(0x2c6)],this['_awaitingChangeset'],[],this[_0x5e3b79(0x433)]);this[_0x5e3b79(0x43a)]();const _0x3f9786=this['_injector'][_0x5e3b79(0x1f3)](K,this['unitID'],this['type'],this['_pendingMutations'],this[_0x5e3b79(0x433)]);return _0x3f9786[_0x5e3b79(0x332)](),_0x3f9786['_updateLocalCache'](),_0x3f9786;}['onRemoteRej'](_0x29c03e){const _0x979a39=_0x2cf6ff;return this[_0x979a39(0x2d4)](!!(_0x29c03e!=null&&_0x29c03e[_0x979a39(0x442)]));}[_0x2cf6ff(0x325)](){const _0x4f59cc=_0x2cf6ff;return this[_0x4f59cc(0x249)][_0x4f59cc(0x1f3)](ee,this[_0x4f59cc(0x357)],this[_0x4f59cc(0x41e)],this[_0x4f59cc(0x17d)],this[_0x4f59cc(0x2c6)],this[_0x4f59cc(0x433)]);}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x9d9d29=_0x2cf6ff;this[_0x9d9d29(0x433)][_0x9d9d29(0x1b5)](this[_0x9d9d29(0x17d)]);}[_0x2cf6ff(0x2d4)](_0x2a4890){const _0xb8a1f2=_0x2cf6ff;return this[_0xb8a1f2(0x249)][_0xb8a1f2(0x1f3)](Q,this[_0xb8a1f2(0x357)],this['type'],null,this[_0xb8a1f2(0x2c6)],this[_0xb8a1f2(0x433)],_0x2a4890);}};X=le([m(0x5,_0x11c4b2(_0x3ca714)),m(0x6,_0x11c4b2(_0x382160)),m(0x7,_0x11c4b2(D)),m(0x8,_0x339bfb),m(0x9,_0x58af89),m(0xa,_0x1d81ff),m(0xb,_0x55c638)],X);let Q=class extends _e{constructor(_0x1ca78e,_0x109e21,_0x3d7ed6,_0x37d2e6,_0xd2414d,_0x5cca81=!0x1,_0x13adbd,_0x3221b7,_0x138848,_0x5730d6,_0x168397,_0x112e4f,_0xe92072){const _0x51b256=_0x2cf6ff;super(_0x1ca78e,_0x109e21,_0x3d7ed6,_0x37d2e6,_0xd2414d,_0x3221b7,_0x138848,_0x168397,_0x5730d6),l(this,_0x51b256(0x10a),_0x51b256(0x2b0)),(this[_0x51b256(0x244)]=_0x5cca81,this[_0x51b256(0x447)]=_0x13adbd,this[_0x51b256(0x12c)]=_0x112e4f,this[_0x51b256(0x36b)]=_0xe92072,this[_0x51b256(0x3c0)](),this[_0x51b256(0xf9)](),this[_0x51b256(0x405)]());}['appendMutation'](){return this;}[_0x2cf6ff(0x248)](){return this;}[_0x2cf6ff(0x112)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x2cf6ff(0x398)](){return this;}[_0x2cf6ff(0xe5)](){const _0x45c883=_0x2cf6ff;throw new Error(_0x45c883(0x2a9));}['_clearLocalCache'](){const _0x3331b4=_0x2cf6ff;this[_0x3331b4(0x3dd)][_0x3331b4(0x296)](this['unitID'],this['type'],null,[]);}[_0x2cf6ff(0x3c0)](){const _0x24f7e6=_0x2cf6ff;this[_0x24f7e6(0x244)]?this[_0x24f7e6(0x36b)][_0x24f7e6(0x10c)]({'title':this[_0x24f7e6(0x12c)]['t']('permission.title'),'content':this[_0x24f7e6(0x12c)]['t'](_0x24f7e6(0x291)),'type':_0x24f7e6(0x36e),'duration':0x0}):this[_0x24f7e6(0x36b)][_0x24f7e6(0x10c)]({'title':this['_localeService']['t'](_0x24f7e6(0x373)),'content':this[_0x24f7e6(0x12c)]['t'](_0x24f7e6(0x2c1)),'type':_0x24f7e6(0x36e),'duration':0x0});}[_0x2cf6ff(0x405)](){const _0x323389=_0x2cf6ff;this[_0x323389(0x447)][_0x323389(0x166)](new _0x472746(this[_0x323389(0x357)])['id'],!0x1);}};Q=le([m(0x6,_0x11c4b2(_0xbe145)),m(0x7,_0x339bfb),m(0x8,_0x55c638),m(0x9,_0x11c4b2(D)),m(0xa,_0x11c4b2(_0x382160)),m(0xb,_0x11c4b2(_0x56c312)),m(0xc,_0x3cb956)],Q);let ee=class extends _e{constructor(_0x1e3911,_0x19cd96,_0x369718,_0x597d86,_0x3131ef,_0xf16be4,_0x1ce7ce,_0x4ea648,_0x28bfdf,_0x458c5d){const _0x47448c=_0x2cf6ff;super(_0x1e3911,_0x19cd96,_0x369718,_0x597d86,_0x3131ef,_0x28bfdf,_0x458c5d,_0x1ce7ce,_0x4ea648),l(this,'status',_0x47448c(0x2ac)),this[_0x47448c(0x249)]=_0xf16be4;}[_0x2cf6ff(0x294)](_0x5aa303){const _0x233e18=_0x2cf6ff;return this['_pendingMutations'][_0x233e18(0x16c)](_0x5aa303),this[_0x233e18(0x148)](),this;}[_0x2cf6ff(0x248)](_0x20ae43){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x2cf6ff(0x112)](){const _0x7cbf4c=_0x2cf6ff;throw new Error(_0x7cbf4c(0x305));}['onRemoteRej'](){const _0x5ceab3=_0x2cf6ff;throw new Error(_0x5ceab3(0x3d7));}[_0x2cf6ff(0x325)](){return this;}[_0x2cf6ff(0x398)](){const {_injector:_0xf9fa47,_pendingMutations:_0xc63cee,_awaitingChangeset:_0x59b2e9,unitID:_0x43d213,_handler:_0x302411,type:_0x14ec4d}=this,_0x1c4b8d=Hs(_0xf9fa47,_0x43d213,_0x14ec4d,_0x59b2e9,_0xc63cee,_0x302411);return _0x1c4b8d instanceof K?_0x1c4b8d['_schedule']():(_0x1c4b8d instanceof X||_0x1c4b8d instanceof Z)&&_0x1c4b8d['resend'](),_0x1c4b8d;}['resend'](){const _0x41481b=_0x2cf6ff;throw new Error(_0x41481b(0x132));}};ee=le([m(0x5,_0x11c4b2(_0x3ca714)),m(0x6,_0x11c4b2(_0x382160)),m(0x7,_0x11c4b2(D)),m(0x8,_0x339bfb),m(0x9,_0x55c638)],ee);let k=class extends _e{constructor(_0x445781,_0x564d3a,_0x4fbfdc,_0x4ff782,_0x1f496d,_0x40be2c,_0x2d1889,_0x22d98a,_0x15942f,_0x567eaa,_0x4c2c83,_0x384040,_0x2c185f,_0x4c8cb9){const _0x1e493c=_0x2cf6ff;super(_0x445781,_0x564d3a,_0x4fbfdc,_0x4ff782,_0x2d1889,_0x384040,_0x2c185f,_0x15942f,_0x567eaa),l(this,'status',_0x1e493c(0x292)),(this[_0x1e493c(0x413)]=_0x1f496d,this['_queuedRemoteChangesets']=_0x40be2c,this[_0x1e493c(0x249)]=_0x22d98a,this[_0x1e493c(0x2f8)]=_0x4c2c83,this[_0x1e493c(0x146)]=_0x4c8cb9);}[_0x2cf6ff(0x15c)](_0x5aad49){const _0x45572e=_0x2cf6ff;try{const _0x12c6f9=[..._0x5aad49,...this[_0x45572e(0x344)]],_0x4531ab=[this[_0x45572e(0x17d)]||this['_acknowledgedAwaitingChangeset']][_0x45572e(0x33c)](_0x2cb1e0=>!!_0x2cb1e0);let _0x12f9e7,_0x503d6d;if(_0x4531ab[_0x45572e(0x183)]){const _0x5319e8=this[_0x45572e(0x146)]['transformChangesets'](_0x12c6f9,_0x4531ab,!0x1);if(!_0x535544(_0x5319e8))throw _0x5319e8['error'];_0x12f9e7=_0x5319e8[_0x45572e(0x34c)],_0x503d6d=_0x5319e8[_0x45572e(0x319)];}else _0x12f9e7=_0x12c6f9,_0x503d6d=[];let _0x2e749f=this[_0x45572e(0x2c6)];_0x12f9e7[_0x45572e(0x198)](_0x12cfb8=>{const _0x2b2f52=_0x45572e;let _0x3f91db;if(_0x2e749f[_0x2b2f52(0x183)]){const _0x5e4642=this[_0x2b2f52(0x146)][_0x2b2f52(0x1f5)](_0x12cfb8,_0x2e749f);if(!_0x61acc5(_0x5e4642))throw _0x5e4642['error'];_0x3f91db=_0x5e4642[_0x2b2f52(0x34c)],_0x2e749f=_0x5e4642[_0x2b2f52(0x2d7)];}else _0x3f91db=_0x12cfb8;this[_0x2b2f52(0x2b8)](_0x3f91db);}),this[_0x45572e(0x413)]&&this[_0x45572e(0x43a)](),this[_0x45572e(0x17d)]&&_0x503d6d[_0x45572e(0x183)]&&(_0x503d6d[0x0][_0x45572e(0x30c)]=this[_0x45572e(0x41d)]());let _0x12c8a1;if(this['_awaitingChangeset']&&_0x2e749f['length']!==0x0)_0x12c8a1=this[_0x45572e(0x249)][_0x45572e(0x1f3)](X,this[_0x45572e(0x357)],this[_0x45572e(0x41e)],_0x503d6d[0x0],_0x2e749f,this[_0x45572e(0x433)]);else{if(this[_0x45572e(0x17d)]&&_0x2e749f[_0x45572e(0x183)]===0x0)_0x503d6d[0x0][_0x45572e(0x30c)]=this[_0x45572e(0x41d)](),_0x12c8a1=this['_injector'][_0x45572e(0x1f3)](Z,this[_0x45572e(0x357)],this['type'],_0x503d6d[0x0],this[_0x45572e(0x433)]);else{if(_0x2e749f['length']!==0x0){const _0x164b0f=this['_injector']['createInstance'](K,this['unitID'],this[_0x45572e(0x41e)],_0x2e749f,this[_0x45572e(0x433)]);_0x164b0f[_0x45572e(0x332)](),_0x12c8a1=_0x164b0f;}else _0x12c8a1=this['_injector'][_0x45572e(0x1f3)](Se,this[_0x45572e(0x357)],this[_0x45572e(0x41e)],this[_0x45572e(0x433)]);}}return _0x12c8a1[_0x45572e(0x148)](),_0x12c8a1;}catch(_0x5de981){return this['_logService']['error'](_0x45572e(0x1de),_0x45572e(0x1ce),_0x5de981),this[_0x45572e(0x249)][_0x45572e(0x1f3)](Q,this['unitID'],this[_0x45572e(0x41e)],this[_0x45572e(0x17d)],this[_0x45572e(0x2c6)],this[_0x45572e(0x433)],!0x1);}}[_0x2cf6ff(0xe5)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2cf6ff(0x294)](_0x33ad9c){const _0x3f739a=_0x2cf6ff;return this[_0x3f739a(0x2c6)][_0x3f739a(0x16c)](_0x33ad9c),this;}[_0x2cf6ff(0x248)](_0x9879c6){const _0x4426d1=_0x2cf6ff;return this[_0x4426d1(0x344)][_0x4426d1(0x16c)](_0x9879c6),this;}['onRemoteAck'](_0x2a054f){const _0x332f69=_0x2cf6ff;if(this[_0x332f69(0x17d)])return this[_0x332f69(0x413)]=this[_0x332f69(0x17d)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2cf6ff(0x2f2)](_0x3ad651){const _0x58c4ad=_0x2cf6ff;return this[_0x58c4ad(0x2d4)](!!(_0x3ad651!=null&&_0x3ad651[_0x58c4ad(0x442)]));}[_0x2cf6ff(0x325)](){const _0x4d35b1=_0x2cf6ff;return this['_injector'][_0x4d35b1(0x1f3)](ee,this[_0x4d35b1(0x357)],this['type'],this[_0x4d35b1(0x17d)],this[_0x4d35b1(0x2c6)],this[_0x4d35b1(0x433)]);}[_0x2cf6ff(0x398)](){return this;}['_onConflict'](_0x484fd2){const _0x36ca7f=_0x2cf6ff;return this['_injector'][_0x36ca7f(0x1f3)](Q,this['unitID'],this[_0x36ca7f(0x41e)],this[_0x36ca7f(0x17d)],this[_0x36ca7f(0x2c6)],this[_0x36ca7f(0x433)],_0x484fd2);}};k=le([m(0x7,_0x11c4b2(_0x3ca714)),m(0x8,_0x11c4b2(_0x382160)),m(0x9,_0x11c4b2(D)),m(0xa,_0x58af89),m(0xb,_0x339bfb),m(0xc,_0x55c638),m(0xd,_0x1d81ff)],k);function Hs(_0x199716,_0x555b98,_0x42ff17,_0x369d73,_0x100b0b,_0x2ea5c4){const _0x1c60da=_0x2cf6ff;return _0x369d73&&_0x100b0b[_0x1c60da(0x183)]?_0x199716['createInstance'](X,_0x555b98,_0x42ff17,_0x369d73,_0x100b0b,_0x2ea5c4):_0x369d73?_0x199716[_0x1c60da(0x1f3)](Z,_0x555b98,_0x42ff17,_0x369d73,_0x2ea5c4):_0x100b0b[_0x1c60da(0x183)]?_0x199716[_0x1c60da(0x1f3)](K,_0x555b98,_0x42ff17,_0x100b0b,_0x2ea5c4):_0x199716[_0x1c60da(0x1f3)](Se,_0x555b98,_0x42ff17,_0x2ea5c4);}var mr=Object[_0x2cf6ff(0x2d3)],gr=Object[_0x2cf6ff(0x289)],Vt=(_0x332a77,_0x1b130b,_0x327da7,_0x511c75)=>{const _0x2a57cf=_0x2cf6ff;for(var _0x2106cf=_0x511c75>0x1?void 0x0:_0x511c75?gr(_0x1b130b,_0x327da7):_0x1b130b,_0x40fb71=_0x332a77[_0x2a57cf(0x183)]-0x1,_0x10a688;_0x40fb71>=0x0;_0x40fb71--)(_0x10a688=_0x332a77[_0x40fb71])&&(_0x2106cf=(_0x511c75?_0x10a688(_0x1b130b,_0x327da7,_0x2106cf):_0x10a688(_0x2106cf))||_0x2106cf);return _0x511c75&&_0x2106cf&&mr(_0x1b130b,_0x327da7,_0x2106cf),_0x2106cf;},p=(_0x422457,_0x3e20a3)=>(_0x10ca16,_0x33b078)=>_0x3e20a3(_0x10ca16,_0x33b078,_0x422457);let Je=class extends _0x424705{constructor(_0x248da4,_0x512169,_0x3c7736,_0x4fa196,_0x5ae160,_0x43c6f1,_0x5d2538,_0xc23a96,_0x28c18f,_0x3ef013,_0x338035,_0x424fa6,_0x3b2323){const _0x5b0b86=_0x2cf6ff;super(),l(this,_0x5b0b86(0x258),new _0xa8903e(null)),l(this,'state$',this[_0x5b0b86(0x258)]['asObservable']()),l(this,_0x5b0b86(0x261)),l(this,_0x5b0b86(0x1ca),!0x1),l(this,_0x5b0b86(0x212),this[_0x5b0b86(0x213)][_0x5b0b86(0x379)](_0xe7708d(_0x5ef4c0=>_0x5ef4c0?_0x5ef4c0[_0x5b0b86(0x10a)]:w['OFFLINE']),_0xbb5cb7(0x1))),l(this,_0x5b0b86(0x14b),!0x1),l(this,_0x5b0b86(0x336),[]),(this[_0x5b0b86(0x357)]=_0x248da4,this['session']=_0x512169,this[_0x5b0b86(0x286)]=_0x3c7736,this[_0x5b0b86(0x249)]=_0x4fa196,this['_localCacheService']=_0x5ae160,this[_0x5b0b86(0x134)]=_0x43c6f1,this[_0x5b0b86(0x12c)]=_0x5d2538,this['_revisionService']=_0xc23a96,this[_0x5b0b86(0x2f8)]=_0x28c18f,this[_0x5b0b86(0x34a)]=_0x3ef013,this[_0x5b0b86(0x358)]=_0x338035,this[_0x5b0b86(0x447)]=_0x424fa6,this['_singleActiveUnitService']=_0x3b2323);}get[_0x2cf6ff(0x2d2)](){const _0x13daa3=_0x2cf6ff;return this[_0x13daa3(0x261)];}async[_0x2cf6ff(0x193)](){const _0x3feb3e=_0x2cf6ff;if(this['state'])throw new Error(_0x3feb3e(0x2ea));await this[_0x3feb3e(0x2fb)]();}[_0x2cf6ff(0x154)](){const _0x2529d5=_0x2cf6ff;return this[_0x2529d5(0x1ca)]=!0x0,_0x57baeb(()=>{const _0x2be44b=_0x2529d5;this['_collaborationPaused']=!0x1,this[_0x2be44b(0x13f)]();});}[_0x2cf6ff(0x3bd)](_0x2e4101){const _0x5042f1=_0x2cf6ff;this[_0x5042f1(0x261)]=_0x2e4101,this[_0x5042f1(0x258)][_0x5042f1(0x2ad)](_0x2e4101);}async[_0x2cf6ff(0x2fb)](){const _0x30fefd=_0x2cf6ff;var _0x5f13e0;this[_0x30fefd(0x3bd)](await this[_0x30fefd(0x104)]()),this[_0x30fefd(0x39b)]&&((_0x5f13e0=this[_0x30fefd(0x39b)])==null||_0x5f13e0['editingUnit'](this[_0x30fefd(0x357)]),this[_0x30fefd(0x2cd)](this[_0x30fefd(0x39b)][_0x30fefd(0x26e)](this[_0x30fefd(0x357)])[_0x30fefd(0x360)](_0xd6954=>{const _0x2d310b=_0x30fefd;this[_0x2d310b(0x2f8)][_0x2d310b(0x2b7)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0xd6954),_0xd6954===js['OTHER_CLIENTS_EDITING']?(this[_0x2d310b(0x358)][_0x2d310b(0x10c)]({'content':this[_0x2d310b(0x12c)]['t'](_0x2d310b(0x39c)),'type':_0x3aebb1[_0x2d310b(0x29b)]}),this[_0x2d310b(0x447)][_0x2d310b(0x166)](new _0x472746(this['unitID'])['id'],!0x1)):this[_0x2d310b(0x447)][_0x2d310b(0x166)](new _0x472746(this[_0x2d310b(0x357)])['id'],!0x0);})));let _0x1d7c3a=!0x1;return this['disposeWithMe'](this[_0x30fefd(0x2af)][_0x30fefd(0x3a1)]['subscribe'](_0x935ded=>{const _0x3930b8=_0x30fefd;_0x935ded===G[_0x3930b8(0x168)]?this['_toggleOnline'](_0x1d7c3a):_0x935ded===G[_0x3930b8(0x26c)]&&(_0x1d7c3a=!0x0,this[_0x3930b8(0x1c7)]());})),this[_0x30fefd(0x2cd)](this[_0x30fefd(0x2af)][_0x30fefd(0x3d1)][_0x30fefd(0x360)](_0x2f5003=>{const _0x378520=_0x30fefd;try{switch(_0x2f5003[_0x378520(0x446)]){case _0x236400['NEW_CHANGESETS']:{this[_0x378520(0x11b)](_0x2f495d(_0x2f5003[_0x378520(0x406)]));break;}case _0x236400[_0x378520(0x1bb)]:{this[_0x378520(0x386)](_0x2f5003[_0x378520(0x406)]);break;}case _0x236400[_0x378520(0x18e)]:{this[_0x378520(0x144)]();break;}case _0x236400[_0x378520(0x26a)]:{this['_onFetchMissResult'](_0x2f5003[_0x378520(0x406)]['changesets'][_0x378520(0x101)](_0x8e2d06=>_0x2f495d(_0x8e2d06)));break;}case _0x236400[_0x378520(0x14e)]:this[_0x378520(0x144)]({'isPermissionRej':!0x0});}}catch(_0x11959f){throw console[_0x378520(0x36e)]('Error\x20on\x20receiving\x20event',_0x11959f),_0x11959f;}})),this[_0x30fefd(0x261)];}[_0x2cf6ff(0x173)](){this['_transitionLocked']=!0x1;}[_0x2cf6ff(0x2b2)](){const _0x21f775=_0x2cf6ff;if(this[_0x21f775(0x14b)])throw new Error(_0x21f775(0x396));this[_0x21f775(0x14b)]=!0x0;}['_onLocalMutation'](_0x3e2812){const _0x3913c0=_0x2cf6ff;this[_0x3913c0(0x2b2)](),this['_updateState'](this[_0x3913c0(0x261)][_0x3913c0(0x294)](_0x3e2812)),this['_unlockTransition']();}[_0x2cf6ff(0x11b)](_0x4d9a12){const _0x43993f=_0x2cf6ff;if(!(_0x4d9a12[_0x43993f(0x362)]<=this[_0x43993f(0x25c)][_0x43993f(0xe9)](this[_0x43993f(0x357)]))){if(this[_0x43993f(0x1ca)]){this[_0x43993f(0x336)][_0x43993f(0x16c)](_0x4d9a12);return;}this[_0x43993f(0x208)](_0x4d9a12);}}[_0x2cf6ff(0x13f)](){const _0x3bf644=_0x2cf6ff;this[_0x3bf644(0x336)][_0x3bf644(0x198)](_0x5b8960=>this['_applyRemoteChangeset'](_0x5b8960)),this['_remoteChangesetQueue']=[];}[_0x2cf6ff(0x208)](_0x14aa92){const _0x440e80=_0x2cf6ff,_0x5c1770=this[_0x440e80(0x134)][_0x440e80(0x156)][_0x440e80(0x20d)](this[_0x440e80(0x134)][_0x440e80(0x156)]['getInterceptPoints']()[_0x440e80(0x2f7)])(_0x14aa92['mutations'],null)||_0x14aa92[_0x440e80(0x40d)],_0x578af9={..._0x14aa92,'mutations':_0x5c1770};this[_0x440e80(0x2b2)](),this[_0x440e80(0x3bd)](this[_0x440e80(0x261)][_0x440e80(0x248)](_0x578af9)),this['_unlockTransition']();}[_0x2cf6ff(0x386)](_0x14be5f){const _0x21877c=_0x2cf6ff;this[_0x21877c(0x2b2)](),this[_0x21877c(0x3bd)](this[_0x21877c(0x261)][_0x21877c(0x112)](_0x14be5f)),this[_0x21877c(0x173)]();}[_0x2cf6ff(0x144)](_0x5af432){const _0x5b6a6a=_0x2cf6ff;this['_lockTransition'](),this[_0x5b6a6a(0x3bd)](this[_0x5b6a6a(0x261)]['onRemoteRej'](_0x5af432)),this[_0x5b6a6a(0x173)]();}[_0x2cf6ff(0x1aa)](_0xcd1996){const _0x22bb86=_0x2cf6ff;if(!(this[_0x22bb86(0x261)]instanceof k))throw new TypeError(_0x22bb86(0x119));const _0x270e06=_0xcd1996[_0x22bb86(0x101)](_0x52033e=>{const _0xce35dd=_0x22bb86,_0xd9548e=this[_0xce35dd(0x134)][_0xce35dd(0x156)][_0xce35dd(0x20d)](this[_0xce35dd(0x134)][_0xce35dd(0x156)][_0xce35dd(0x1be)]()['COMPRESS_MUTATION_APPLY'])(_0x52033e[_0xce35dd(0x40d)],null)||_0x52033e[_0xce35dd(0x40d)];return{..._0x52033e,'mutations':_0xd9548e};});this[_0x22bb86(0x2b2)](),this['_updateState'](this[_0x22bb86(0x261)][_0x22bb86(0x15c)](_0x270e06)),this['_unlockTransition']();}[_0x2cf6ff(0x1c7)](){const _0x3de6e2=_0x2cf6ff;this[_0x3de6e2(0x2b2)](),this['_updateState'](this[_0x3de6e2(0x261)][_0x3de6e2(0x325)]()),this[_0x3de6e2(0x173)]();}[_0x2cf6ff(0x18f)](_0x30ccbe=!0x1){const _0x584616=_0x2cf6ff;this[_0x584616(0x2b2)](),this['_updateState'](this['_state'][_0x584616(0x398)]()),this['_unlockTransition']();const _0x448620=this['_state'];_0x30ccbe&&_0x448620 instanceof Se&&(this[_0x584616(0x2b2)](),this[_0x584616(0x3bd)](_0x448620[_0x584616(0x163)]()),this[_0x584616(0x173)]());}async[_0x2cf6ff(0x104)](){return new Promise(_0x176eec=>{const _0x4df62e=_0xd63a;this['session'][_0x4df62e(0x3a1)]['pipe'](_0x3507ef(0x1))[_0x4df62e(0x360)](async _0x571eac=>{const _0x4191e3=_0x4df62e;_0x176eec(await this[_0x4191e3(0xf5)](_0x571eac===G[_0x4191e3(0x168)]));});});}['_createHandler'](){const _0x296a27=this['unitID'];return{'onStateChange':(_0x26a525,_0x1915c2)=>{const _0x262ac4=_0xd63a;if(_0x26a525!==this[_0x262ac4(0x261)])throw new Error(_0x262ac4(0x1ee)+_0x26a525[_0x262ac4(0x10a)]+_0x262ac4(0x31d)+_0x1915c2[_0x262ac4(0x10a)]+_0x262ac4(0x3e8)+this[_0x262ac4(0x261)][_0x262ac4(0x10a)]);this[_0x262ac4(0x3bd)](_0x1915c2);},'onSendChangeset':_0x1b67f8=>{const _0x1e776a=_0xd63a,_0x4a6f09={'eventID':_0x236400[_0x1e776a(0x28c)],'data':{'unitID':_0x1b67f8[_0x1e776a(0x357)],'unitType':this[_0x1e776a(0x286)],'changeset':_0x1b67f8,'memberID':this[_0x1e776a(0x2af)][_0x1e776a(0x2a6)]()}};this[_0x1e776a(0x2af)][_0x1e776a(0x329)](_0x4a6f09,this[_0x1e776a(0x357)]);},'onMissingChangesets':({from:_0x11705e,to:_0x5dad54})=>{const _0x48cce4=_0xd63a;this[_0x48cce4(0x2f8)]['debug'](_0x48cce4(0x1f6),_0x48cce4(0x3f0)+_0x11705e+_0x48cce4(0x343)+_0x5dad54);const _0x180c29={'eventID':_0x236400[_0x48cce4(0x43b)],'data':{'unitID':_0x296a27,'unitType':this[_0x48cce4(0x286)],'from':_0x11705e,'to':_0x5dad54}};this[_0x48cce4(0x2af)][_0x48cce4(0x329)](_0x180c29,this['unitID']);}};}async[_0x2cf6ff(0xf5)](_0x5b73bd){const _0x2c5762=_0x2cf6ff;var _0x1b2345,_0x3d31e3;const _0x519e45=await this[_0x2c5762(0x3dd)][_0x2c5762(0x1b1)](this[_0x2c5762(0x357)]),_0x353955=(_0x1b2345=_0x519e45==null?void 0x0:_0x519e45[_0x2c5762(0x40d)])!=null?_0x1b2345:[],_0x4b3e70=(_0x3d31e3=_0x519e45==null?void 0x0:_0x519e45[_0x2c5762(0x322)])!=null?_0x3d31e3:null,_0x5dd2de=this[_0x2c5762(0x357)];try{this['_replayCachedMutations'](_0x4b3e70,_0x353955);}catch(_0x2a56b4){this[_0x2c5762(0x2f8)][_0x2c5762(0x36e)](_0x2a56b4);}const _0x1e832c=this[_0x2c5762(0x397)]();if(_0x5b73bd){const _0x5b4418=Hs(this['_injector'],_0x5dd2de,this['_type'],_0x4b3e70,_0x353955,_0x1e832c);return _0x5b4418 instanceof K?_0x5b4418[_0x2c5762(0x332)]():(_0x5b4418 instanceof X||_0x5b4418 instanceof Z)&&_0x5b4418[_0x2c5762(0xe5)](),_0x5b4418;}return this[_0x2c5762(0x249)][_0x2c5762(0x1f3)](ee,_0x5dd2de,this['_type'],_0x4b3e70,_0x353955,_0x1e832c);}['_replayCachedMutations'](_0xeec7a,_0x528502){const _0x1107fa=_0x2cf6ff;var _0x1d01f4,_0x41caa6;const _0x3d4658=this[_0x1107fa(0x134)]['interceptor'][_0x1107fa(0x20d)](this[_0x1107fa(0x134)][_0x1107fa(0x156)][_0x1107fa(0x1be)]()[_0x1107fa(0x2f7)]);(_0x1d01f4=_0x3d4658((_0xeec7a==null?void 0x0:_0xeec7a[_0x1107fa(0x40d)])||[],null))==null||_0x1d01f4['forEach'](_0x554ce3=>this[_0x1107fa(0x34a)][_0x1107fa(0x3aa)](_0x554ce3['id'],_0x554ce3[_0x1107fa(0x3d6)])),(_0x41caa6=_0x3d4658(_0x528502||[],null))==null||_0x41caa6[_0x1107fa(0x198)](_0x2eac74=>this['_commandService'][_0x1107fa(0x3aa)](_0x2eac74['id'],_0x2eac74['params']));}};Je=Vt([p(0x3,_0x11c4b2(_0x3ca714)),p(0x4,_0x11c4b2(D)),p(0x5,_0x11c4b2(_0x5b8dc0)),p(0x6,_0x11c4b2(_0x56c312)),p(0x7,_0x11c4b2(_0x382160)),p(0x8,_0x58af89),p(0x9,_0x339bfb),p(0xa,_0x3d2cd0),p(0xb,_0xbe145),p(0xc,_0x32a7fe(tt))],Je);let bt=class extends Je{constructor(_0x3b35a0,_0x4897a5,_0x9b8f21,_0x1147ab,_0xfa2f17,_0x1db84c,_0x8215cd,_0x7ec1e6,_0x53b8e0,_0x137604,_0x1d06b8,_0x6afc6c,_0x4ff1a6,_0x41977d,_0x18a334,_0x5dcb8f,_0xbac0e4){const _0x38e02a=_0x2cf6ff;super(_0x3b35a0,_0x9b8f21,_0x4897a5,_0x1147ab,_0xfa2f17,_0x1db84c,_0x8215cd,_0x7ec1e6,_0x4ff1a6,_0x41977d,_0x18a334,_0x5dcb8f,_0xbac0e4),this['unitID']=_0x3b35a0,this[_0x38e02a(0x41e)]=_0x4897a5,this['_docStateChangeManagerService']=_0x53b8e0,this[_0x38e02a(0x31e)]=_0x137604,this['_docTransformSelectionsService']=_0x1d06b8,this['_docSyncEditingCollabCursorService']=_0x6afc6c;}[_0x2cf6ff(0x397)](){const _0x3f8c03=_0x2cf6ff,_0x32ad95=super['_createHandler']();return _0x32ad95[_0x3f8c03(0x385)]=_0x3cb5ca=>this[_0x3f8c03(0x31e)][_0x3f8c03(0x1ab)](_0x3cb5ca),_0x32ad95[_0x3f8c03(0x337)]=_0xad6860=>this['_docTransformSelectionsService'][_0x3f8c03(0x300)](_0xad6860),_0x32ad95[_0x3f8c03(0x153)]=_0x1d9b0a=>this[_0x3f8c03(0x44e)]['syncEditingCollabCursor'](_0x1d9b0a),_0x32ad95[_0x3f8c03(0x182)]=_0x57d087=>this[_0x3f8c03(0x31e)][_0x3f8c03(0x364)](_0x57d087),_0x32ad95;}async[_0x2cf6ff(0x2fb)](){const _0x3014ec=_0x2cf6ff,_0xc6c355=await super[_0x3014ec(0x2fb)]();return this['disposeWithMe'](this[_0x3014ec(0x34a)][_0x3014ec(0x1d5)]((_0x13dda1,_0x38ec73)=>{const _0x29e2a0=_0x3014ec;if(_0x13dda1['type']!==_0xccd063['MUTATION']||_0x38ec73!=null&&_0x38ec73['fromCollab']||_0x38ec73!=null&&_0x38ec73[_0x29e2a0(0x164)])return;const _0x46b3f1=_0x13dda1[_0x29e2a0(0x3d6)];if((_0x46b3f1==null?void 0x0:_0x46b3f1['unitId'])!==this[_0x29e2a0(0x357)])return;let _0x4898c7=_0x13dda1;if(_0x4898c7['id']===_0x137108['id']){const _0xdf4292=_0x4898c7[_0x29e2a0(0x3d6)];_0x4898c7={'id':_0x137108['id'],'type':_0xccd063[_0x29e2a0(0x33e)],'params':{'unitId':_0xdf4292[_0x29e2a0(0x290)],'actions':_0xdf4292[_0x29e2a0(0x215)],'textRanges':null}};}const _0x43e679=this[_0x29e2a0(0x134)][_0x29e2a0(0x156)]['fetchThroughInterceptors'](this[_0x29e2a0(0x134)][_0x29e2a0(0x156)][_0x29e2a0(0x1be)]()[_0x29e2a0(0x218)])([_0x4898c7],null)||[_0x4898c7];this[_0x29e2a0(0x339)](_0x43e679[0x0]);})),_0xc6c355;}};bt=Vt([p(0x3,_0x11c4b2(_0x3ca714)),p(0x4,_0x11c4b2(D)),p(0x5,_0x11c4b2(_0x5b8dc0)),p(0x6,_0x11c4b2(_0x56c312)),p(0x7,_0x11c4b2(_0x382160)),p(0x8,_0x11c4b2(_0x488409)),p(0x9,_0x11c4b2(Ye)),p(0xa,_0x11c4b2(Xe)),p(0xb,_0x11c4b2(Bt)),p(0xc,_0x58af89),p(0xd,_0x339bfb),p(0xe,_0x3d2cd0),p(0xf,_0xbe145),p(0x10,_0x32a7fe(tt))],bt);let Tt=class extends Je{constructor(_0x50014f,_0x4af09b,_0x42e329,_0x1aec09,_0x29aa97,_0xcaf271,_0x38748c,_0x201bda,_0x4f3c5c,_0xf7b78e,_0x145535,_0x117a02,_0x12196f,_0x390bf8){const _0x5ee781=_0x2cf6ff;super(_0x50014f,_0x42e329,_0x4af09b,_0x1aec09,_0x29aa97,_0xcaf271,_0x38748c,_0x201bda,_0xf7b78e,_0x145535,_0x117a02,_0x12196f,_0x390bf8),this[_0x5ee781(0x357)]=_0x50014f,this[_0x5ee781(0x41e)]=_0x4af09b,this[_0x5ee781(0x241)]=_0x4f3c5c;}[_0x2cf6ff(0x397)](){const _0x30b79a=_0x2cf6ff,_0x1c8ab2=super[_0x30b79a(0x397)]();return _0x1c8ab2[_0x30b79a(0x337)]=_0x6ccb62=>this[_0x30b79a(0x241)][_0x30b79a(0x300)](_0x6ccb62),_0x1c8ab2;}async['_init'](){const _0x1641c4=_0x2cf6ff,_0x4af14c=await super[_0x1641c4(0x2fb)]();return this[_0x1641c4(0x2cd)](this['_commandService'][_0x1641c4(0x1d5)]((_0x15409a,_0x4084b4)=>{const _0x1e3b01=_0x1641c4;if(_0x15409a[_0x1e3b01(0x41e)]!==_0xccd063[_0x1e3b01(0x33e)]||_0x4084b4!=null&&_0x4084b4[_0x1e3b01(0x2d6)]||_0x4084b4!=null&&_0x4084b4[_0x1e3b01(0x164)])return;const _0x237a23=_0x15409a['params'];if((_0x237a23==null?void 0x0:_0x237a23[_0x1e3b01(0x290)])!==this['unitID'])return;const _0x429338=_0x15409a,_0x1be312=this['_compressMutationService'][_0x1e3b01(0x156)][_0x1e3b01(0x20d)](this['_compressMutationService']['interceptor'][_0x1e3b01(0x1be)]()[_0x1e3b01(0x218)])([_0x429338],null)||[_0x429338];this[_0x1e3b01(0x339)](_0x1be312[0x0]);})),_0x4af14c;}};Tt=Vt([p(0x3,_0x11c4b2(_0x3ca714)),p(0x4,_0x11c4b2(D)),p(0x5,_0x11c4b2(_0x5b8dc0)),p(0x6,_0x11c4b2(_0x56c312)),p(0x7,_0x11c4b2(_0x382160)),p(0x8,_0x11c4b2(Ke)),p(0x9,_0x58af89),p(0xa,_0x339bfb),p(0xb,_0x3d2cd0),p(0xc,_0xbe145),p(0xd,_0x32a7fe(tt))],Tt);var Sr=Object[_0x2cf6ff(0x2d3)],pr=Object['getOwnPropertyDescriptor'],vr=(_0x5f0979,_0xe87f13,_0x3e4f05,_0x39a9a7)=>{const _0x408c5b=_0x2cf6ff;for(var _0x27ee83=_0x39a9a7>0x1?void 0x0:_0x39a9a7?pr(_0xe87f13,_0x3e4f05):_0xe87f13,_0x374f95=_0x5f0979[_0x408c5b(0x183)]-0x1,_0x2d81f5;_0x374f95>=0x0;_0x374f95--)(_0x2d81f5=_0x5f0979[_0x374f95])&&(_0x27ee83=(_0x39a9a7?_0x2d81f5(_0xe87f13,_0x3e4f05,_0x27ee83):_0x2d81f5(_0x27ee83))||_0x27ee83);return _0x39a9a7&&_0x27ee83&&Sr(_0xe87f13,_0x3e4f05,_0x27ee83),_0x27ee83;},lt=(_0xcc1f32,_0x510b73)=>(_0x260bfe,_0x256c10)=>_0x510b73(_0x260bfe,_0x256c10,_0xcc1f32);let Ae=class extends _0x424705{constructor(_0x1a1641,_0x3a3be3,_0x5da478){const _0x2f3180=_0x2cf6ff;super(),l(this,'_entities',new Map()),l(this,_0x2f3180(0x1a7),new _0x5ebd47()),(this['_injector']=_0x1a1641,this['_collabSessionService']=_0x3a3be3,this[_0x2f3180(0xe4)]=_0x5da478,this[_0x2f3180(0x2fb)]());}[_0x2cf6ff(0x275)](){const _0x215928=_0x2cf6ff;super[_0x215928(0x275)](),this['_entities'][_0x215928(0x198)](_0x2a9952=>_0x2a9952['dispose']()),this['_entities'][_0x215928(0x16b)]();}[_0x2cf6ff(0x24c)](_0x52b1d4){var _0x294f2b;return(_0x294f2b=this['_entities']['get'](_0x52b1d4))!=null?_0x294f2b:null;}[_0x2cf6ff(0x1e3)](_0x1aa130){const _0x1dda2a=_0x2cf6ff,_0x31ec5a=this[_0x1dda2a(0x24c)](_0x1aa130);return _0x31ec5a?_0x1a6ece(_0x31ec5a):this['_entityInit$']['pipe'](_0x584f39(_0x58d7f3=>_0x58d7f3['unitID']===_0x1aa130));}[_0x2cf6ff(0x2fb)](){const _0x363a71=_0x2cf6ff;this['_univerInstanceService'][_0x363a71(0x1fc)](_0x5ba247[_0x363a71(0x43d)])[_0x363a71(0x379)](_0x5f0229(this['dispose$']),_0x2972c0(0x10))[_0x363a71(0x360)](async _0x57e9d4=>{const _0x67fabc=_0x363a71,_0x4456f9=_0x57e9d4[_0x67fabc(0x3d4)](),_0x4fbe7c=await this[_0x67fabc(0x3ad)](_0x4456f9,H['UNIVER_SHEET']);this[_0x67fabc(0x309)][_0x67fabc(0x138)](_0x4456f9,_0x4fbe7c);}),this['_univerInstanceService'][_0x363a71(0x1fc)](_0x5ba247['UNIVER_DOC'])['pipe'](_0x5f0229(this['dispose$']),_0x2972c0(0x10))[_0x363a71(0x379)](_0x584f39(_0x16a599=>!_0x16a599[_0x363a71(0x3d4)]()[_0x363a71(0x428)]('__')))[_0x363a71(0x360)](async _0x3e8bcf=>{const _0x5ba69c=_0x363a71,_0x55e329=_0x3e8bcf[_0x5ba69c(0x3d4)](),_0x4efe18=await this['_startCollaboration'](_0x55e329,H[_0x5ba69c(0x359)]);this['_entities'][_0x5ba69c(0x138)](_0x55e329,_0x4efe18);}),_0x577df9(this['_univerInstanceService'][_0x363a71(0x1af)](_0x5ba247[_0x363a71(0x43d)]),this[_0x363a71(0xe4)][_0x363a71(0x1af)](_0x5ba247[_0x363a71(0x359)]))[_0x363a71(0x379)](_0x5f0229(this[_0x363a71(0x267)]))[_0x363a71(0x360)](_0x4fadf0=>{const _0x38f7fc=_0x363a71,_0x3a52a2=_0x4fadf0['getUnitId'](),_0x2681ab=this[_0x38f7fc(0x309)][_0x38f7fc(0x19c)](_0x3a52a2);_0x2681ab&&(_0x2681ab[_0x38f7fc(0x275)](),this[_0x38f7fc(0x309)][_0x38f7fc(0x152)](_0x3a52a2));});}async[_0x2cf6ff(0x3ad)](_0x5039a5,_0xfaa27b){const _0x55d4ae=_0x2cf6ff,_0x2a4d47=await this[_0x55d4ae(0x159)][_0x55d4ae(0x393)](_0x5039a5),_0x55094c=this[_0x55d4ae(0x249)][_0x55d4ae(0x1f3)](this[_0x55d4ae(0x1eb)](_0xfaa27b),_0x5039a5,_0xfaa27b,_0x2a4d47);return await _0x55094c['init'](),this[_0x55d4ae(0x1a7)][_0x55d4ae(0x2ad)](_0x55094c),_0x55094c;}[_0x2cf6ff(0x1eb)](_0x193831){const _0x23233c=_0x2cf6ff;switch(_0x193831){case H[_0x23233c(0x359)]:return bt;case H[_0x23233c(0x43d)]:return Tt;default:throw new Error(_0x23233c(0x225)+_0x193831);}}};Ae=vr([lt(0x0,_0x11c4b2(_0x3ca714)),lt(0x1,_0x11c4b2(ce)),lt(0x2,_0x3a69fb)],Ae);const _s=[_0x2cf6ff(0x348),_0x2cf6ff(0x3fc),_0x2cf6ff(0x2ff),'red300',_0x2cf6ff(0x37f),_0x2cf6ff(0x30b)];class Ft extends _0x28d30b{constructor(){const _0x50670d=_0x2cf6ff;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x50670d(0xf6),0x0);}[_0x2cf6ff(0x230)](_0x173cfb){const _0x27ec4=_0x2cf6ff;if(this['_assignedColors']['has'](_0x173cfb))return this['_assignedColors'][_0x27ec4(0x19c)](_0x173cfb);const _0x58f282=_s[this[_0x27ec4(0xf6)]];return this['_colorIndex']=(this[_0x27ec4(0xf6)]+0x1)%_s[_0x27ec4(0x183)],this[_0x27ec4(0x38a)][_0x27ec4(0x138)](_0x173cfb,_0x58f282),_0x58f282;}}var Ir=Object['defineProperty'],Er=Object[_0x2cf6ff(0x289)],Cr=(_0x3aa025,_0x3066ed,_0x26e847,_0x4988ed)=>{for(var _0x47a7f8=_0x4988ed>0x1?void 0x0:_0x4988ed?Er(_0x3066ed,_0x26e847):_0x3066ed,_0x174e61=_0x3aa025['length']-0x1,_0x6e1f77;_0x174e61>=0x0;_0x174e61--)(_0x6e1f77=_0x3aa025[_0x174e61])&&(_0x47a7f8=(_0x4988ed?_0x6e1f77(_0x3066ed,_0x26e847,_0x47a7f8):_0x6e1f77(_0x47a7f8))||_0x47a7f8);return _0x4988ed&&_0x47a7f8&&Ir(_0x3066ed,_0x26e847,_0x47a7f8),_0x47a7f8;},se=(_0x30d58f,_0x422aee)=>(_0x57aa37,_0x420f26)=>_0x422aee(_0x57aa37,_0x420f26,_0x30d58f);const br=0x12c,Tr=0x64;let Rt=class extends _0x424705{constructor(_0x27573c,_0x3edbbf,_0x4c78c,_0x58566b,_0x2e5b3b,_0x195d46,_0xec2ad1,_0x2c17a1,_0x438a35){const _0x32167d=_0x2cf6ff;super(),l(this,'_online',!0x1),l(this,_0x32167d(0x2fb),!0x1),l(this,_0x32167d(0x28d),new _0xa8903e(new Map())),l(this,_0x32167d(0x105),this[_0x32167d(0x28d)][_0x32167d(0x16e)]()),l(this,_0x32167d(0x3c4),new _0xa8903e([])),l(this,_0x32167d(0x449),this[_0x32167d(0x3c4)][_0x32167d(0x379)](_0x13e7ad(br))),l(this,'_updateLocalCursor',_0x25bd20(_0x1b701b=>{const _0x4e418e=_0x32167d,_0x34c1ac={'eventID':_0x236400[_0x4e418e(0x3a2)],'data':{'unitID':this['unitID'],'memberID':this[_0x4e418e(0x2b3)][_0x4e418e(0x2a6)](),'selection':xs(_0x1b701b)}};this[_0x4e418e(0x2b3)][_0x4e418e(0x329)](_0x34c1ac,this[_0x4e418e(0x357)]);},Tr)),(this[_0x32167d(0x357)]=_0x27573c,this[_0x32167d(0x2b3)]=_0x3edbbf,this['_injector']=_0x4c78c,this['_colorAssignService']=_0x58566b,this[_0x32167d(0x327)]=_0x2e5b3b,this[_0x32167d(0x228)]=_0x195d46,this['_transformService']=_0xec2ad1,this[_0x32167d(0xe4)]=_0x2c17a1,this['_commandService']=_0x438a35);}get[_0x2cf6ff(0xf1)](){const _0x5ab1e0=_0x2cf6ff;return this[_0x5ab1e0(0x28d)][_0x5ab1e0(0x308)]();}get['roomMembers'](){const _0x559cbc=_0x2cf6ff;return this[_0x559cbc(0x3c4)][_0x559cbc(0x308)]();}[_0x2cf6ff(0x275)](){const _0x42e35c=_0x2cf6ff;super[_0x42e35c(0x275)](),this[_0x42e35c(0x28d)][_0x42e35c(0x2ad)](new Map()),this['_cursorInfo$'][_0x42e35c(0x307)](),this['_roomMembers$']['next']([]),this[_0x42e35c(0x3c4)][_0x42e35c(0x307)]();}[_0x2cf6ff(0x193)](){const _0x505cdf=_0x2cf6ff;this[_0x505cdf(0x2fb)]||(this[_0x505cdf(0x2fb)]=!0x0,this['_session'][_0x505cdf(0x3a1)][_0x505cdf(0x379)](_0x5f0229(this['dispose$']))['subscribe'](_0x417d9b=>{const _0x2caa16=_0x505cdf;_0x417d9b===G[_0x2caa16(0x168)]?this['_toggleOnline']():this[_0x2caa16(0x1c7)]();}),this[_0x505cdf(0x2b3)]['event$'][_0x505cdf(0x379)](_0x5f0229(this[_0x505cdf(0x267)]))[_0x505cdf(0x360)](_0x31bc1b=>{const _0x1960e0=_0x505cdf,_0xdcb43d=_0x31bc1b[_0x1960e0(0x446)];_0xdcb43d===_0x236400[_0x1960e0(0x3a2)]&&this[_0x1960e0(0x3ab)](_0x31bc1b),_0xdcb43d===_0x236400[_0x1960e0(0x375)]&&this[_0x1960e0(0x260)](_0x31bc1b);}),this['disposeWithMe'](this[_0x505cdf(0x34a)][_0x505cdf(0x1d5)](_0x4a1ab8=>{const _0x49784f=_0x505cdf,_0x240e08=_0x4a1ab8[_0x49784f(0x3d6)];_0x240e08!=null&&this['_online']&&_0x4a1ab8['id']===_0x29ed30['id']&&_0x240e08['unitId']===this[_0x49784f(0x357)]&&_0x240e08[_0x49784f(0x252)]===!0x1&&this['_updateLocalCursor'](_0x240e08[_0x49784f(0x1a0)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x505cdf(0x379)](_0x5f0229(this[_0x505cdf(0x267)]))[_0x505cdf(0x360)](_0x44abfc=>{const _0x2a2368=_0x505cdf;if((_0x44abfc==null?void 0x0:_0x44abfc[_0x2a2368(0x357)])!==this['unitID'])return;const _0x3eeab9={'eventID':_0x236400[_0x2a2368(0x3a2)],'data':_0x44abfc};this[_0x2a2368(0x3ab)](_0x3eeab9);}),this['disposeWithMe'](this[_0x505cdf(0x34a)][_0x505cdf(0x1d5)](_0x542c5c=>{const _0x294576=_0x505cdf;if(_0x542c5c[_0x294576(0x3d6)]==null)return;const _0x191e3e=_0x542c5c[_0x294576(0x3d6)];if(_0x542c5c['id']!==_0x137108['id']||_0x191e3e['unitId']!==this[_0x294576(0x357)])return;const _0xc23065={'id':_0x294576(0x1b7),'params':_0x191e3e},_0x505449=this[_0x294576(0xf1)];for(const [_0x27dd6d,_0x5212a2]of _0x505449){const _0x47ec54={'id':_0x294576(0x1b7),'params':{'unitId':this[_0x294576(0x357)],'actions':null,'textRanges':_0x5212a2[_0x294576(0x1a0)]}},_0x472576=this[_0x294576(0x146)]['transformMutation'](_0xc23065,_0x47ec54,!0x1);if(_0x265ca1(_0x472576))throw _0x472576['error'];_0x505449[_0x294576(0x138)](_0x27dd6d,{..._0x5212a2,'ranges':_0x472576[_0x294576(0x2d7)]['params']['textRanges']});}queueMicrotask(()=>{const _0x11f78d=_0x294576;this[_0x11f78d(0x28d)][_0x11f78d(0x2ad)](_0x505449);});})));}[_0x2cf6ff(0x3ab)](_0x3f0508){const _0x3fb843=_0x2cf6ff;var _0x45511d,_0x1ee323;const {memberID:_0x4c4424,selection:_0x5dc855}=_0x3f0508['data'],_0x157b61=or(_0x5dc855),_0x183392=(_0x1ee323=(_0x45511d=this[_0x3fb843(0x327)]['getMember'](this[_0x3fb843(0x357)],_0x4c4424))==null?void 0x0:_0x45511d['name'])!=null?_0x1ee323:'Unknown\x20user',_0x365e04={'color':this['_colorAssignService'][_0x3fb843(0x230)](_0x4c4424),'name':_0x183392,'ranges':_0x157b61},_0x38dd83=this[_0x3fb843(0xf1)];_0x38dd83[_0x3fb843(0x138)](_0x4c4424,_0x365e04),this[_0x3fb843(0x28d)][_0x3fb843(0x2ad)](_0x38dd83);}[_0x2cf6ff(0x260)](_0x4050ef){const _0x129439=_0x2cf6ff,{memberID:_0x4075a6}=_0x4050ef[_0x129439(0x406)],_0x5962d1=this[_0x129439(0xf1)];_0x5962d1[_0x129439(0x152)](_0x4075a6),this[_0x129439(0x28d)][_0x129439(0x2ad)](_0x5962d1);}[_0x2cf6ff(0x18f)](){const _0x1dcebf=_0x2cf6ff;var _0x967e80;if(this[_0x1dcebf(0x15e)]=!0x0,((_0x967e80=this['_univerInstanceService'][_0x1dcebf(0x23d)]())==null?void 0x0:_0x967e80[_0x1dcebf(0x3d4)]())!==this[_0x1dcebf(0x357)])return;const _0x4ea05e=this[_0x1dcebf(0x249)]['get'](_0x253567)[_0x1dcebf(0x269)]();Array[_0x1dcebf(0x1da)](_0x4ea05e)&&_0x4ea05e[_0x1dcebf(0x183)]>0x0&&this['_updateLocalCursor'](_0x4ea05e);}[_0x2cf6ff(0x1c7)](){const _0x576cdb=_0x2cf6ff;this[_0x576cdb(0x15e)]=!0x1;}};Rt=Cr([se(0x2,_0x11c4b2(_0x3ca714)),se(0x3,_0x11c4b2(Ft)),se(0x4,_0x11c4b2(ae)),se(0x5,_0x11c4b2(Bt)),se(0x6,_0x1d81ff),se(0x7,_0x3a69fb),se(0x8,_0x339bfb)],Rt);var Rr=Object[_0x2cf6ff(0x2d3)],Or=Object[_0x2cf6ff(0x289)],Dr=(_0x1f2806,_0x41cec3,_0x11d4ea,_0x6acca0)=>{const _0x562b8e=_0x2cf6ff;for(var _0x3b0186=_0x6acca0>0x1?void 0x0:_0x6acca0?Or(_0x41cec3,_0x11d4ea):_0x41cec3,_0x2cddb9=_0x1f2806[_0x562b8e(0x183)]-0x1,_0x5617ad;_0x2cddb9>=0x0;_0x2cddb9--)(_0x5617ad=_0x1f2806[_0x2cddb9])&&(_0x3b0186=(_0x6acca0?_0x5617ad(_0x41cec3,_0x11d4ea,_0x3b0186):_0x5617ad(_0x3b0186))||_0x3b0186);return _0x6acca0&&_0x3b0186&&Rr(_0x41cec3,_0x11d4ea,_0x3b0186),_0x3b0186;},fe=(_0x4ccfca,_0x3f875f)=>(_0x47bcdd,_0x46f2af)=>_0x3f875f(_0x47bcdd,_0x46f2af,_0x4ccfca);const wr=0x12c,Pr=0x64,yr=()=>{let _0x58c4b1=[],_0xdfa82b=!0x1;return _0x48adfb=>{_0x58c4b1['push'](_0x48adfb),_0xdfa82b||(_0xdfa82b=!0x0,setTimeout(()=>{const _0x417bb9=_0xd63a;_0x58c4b1[_0x417bb9(0x198)](_0x4fc9d5=>_0x4fc9d5()),_0x58c4b1=[],_0xdfa82b=!0x1;}));};};let Ot=class extends _0x424705{constructor(_0x26b95e,_0x5b9eb6,_0x1433fd,_0x26a4c1,_0x10feee,_0x1685df,_0x57c280,_0x28031d){const _0x16ec20=_0x2cf6ff;super(),l(this,_0x16ec20(0x15e),!0x1),l(this,_0x16ec20(0x2fb),!0x1),l(this,'_cursorInfo$',new _0xa8903e(new Map())),l(this,_0x16ec20(0x105),this['_cursorInfo$'][_0x16ec20(0x16e)]()),l(this,'_roomMembers$',new _0xa8903e([])),l(this,_0x16ec20(0x449),this[_0x16ec20(0x3c4)][_0x16ec20(0x379)](_0x13e7ad(wr))),l(this,'_updateLocalCursor',_0x25bd20((_0x44b984,_0x4e6325)=>{const _0x5c1eda=_0x16ec20,_0x84434a={'eventID':_0x236400[_0x5c1eda(0x3a2)],'data':{'unitID':this[_0x5c1eda(0x357)],'memberID':this[_0x5c1eda(0x2b3)][_0x5c1eda(0x2a6)](),'selection':_0x22216c(_0x44b984,_0x4e6325[_0x5c1eda(0x2be)])}};this[_0x5c1eda(0x2b3)][_0x5c1eda(0x329)](_0x84434a,this[_0x5c1eda(0x357)]);},Pr)),(this[_0x16ec20(0x357)]=_0x26b95e,this[_0x16ec20(0x2b3)]=_0x5b9eb6,this[_0x16ec20(0x249)]=_0x1433fd,this[_0x16ec20(0x214)]=_0x26a4c1,this['_memberService']=_0x10feee,this[_0x16ec20(0xe4)]=_0x1685df,this[_0x16ec20(0x34a)]=_0x57c280,this['_refRangeService']=_0x28031d);}get[_0x2cf6ff(0xf1)](){const _0x3e653b=_0x2cf6ff;return this[_0x3e653b(0x28d)][_0x3e653b(0x308)]();}get[_0x2cf6ff(0x37e)](){const _0x460731=_0x2cf6ff;return this['_roomMembers$'][_0x460731(0x308)]();}[_0x2cf6ff(0x275)](){const _0x403914=_0x2cf6ff;super['dispose'](),this[_0x403914(0x28d)][_0x403914(0x2ad)](new Map()),this[_0x403914(0x28d)]['complete'](),this[_0x403914(0x3c4)][_0x403914(0x2ad)]([]),this[_0x403914(0x3c4)][_0x403914(0x307)]();}[_0x2cf6ff(0x193)](){const _0x1a51d6=_0x2cf6ff;this[_0x1a51d6(0x2fb)]||(this['_init']=!0x0,this[_0x1a51d6(0x2b3)][_0x1a51d6(0x3a1)][_0x1a51d6(0x379)](_0x5f0229(this[_0x1a51d6(0x267)]))['subscribe'](_0x502f47=>{const _0x35dac7=_0x1a51d6;_0x502f47===G[_0x35dac7(0x168)]?this['_toggleOnline']():this[_0x35dac7(0x1c7)]();}),this[_0x1a51d6(0x2b3)][_0x1a51d6(0x3d1)]['pipe'](_0x5f0229(this['dispose$']))[_0x1a51d6(0x360)](_0x2e0f7f=>{const _0x169f2b=_0x1a51d6,_0x2b6315=_0x2e0f7f[_0x169f2b(0x446)];_0x2b6315===_0x236400['UPDATE_CURSOR']&&this[_0x169f2b(0x3ab)](_0x2e0f7f),_0x2b6315===_0x236400[_0x169f2b(0x375)]&&this[_0x169f2b(0x260)](_0x2e0f7f);}),this[_0x1a51d6(0x12a)](),this[_0x1a51d6(0x2cd)](this['_commandService']['onCommandExecuted'](_0x8e57b9=>{const _0xf17990=_0x1a51d6;if(this['_online']&&_0x8e57b9['id']===_0xccbe27['id']&&_0x8e57b9['params'][_0xf17990(0x290)]===this[_0xf17990(0x357)]){const _0x60c64f=_0x8e57b9[_0xf17990(0x3d6)];this[_0xf17990(0x2cf)](_0x60c64f[_0xf17990(0x1d3)],_0x60c64f[_0xf17990(0x368)][0x0]);}})));}[_0x2cf6ff(0x3ab)](_0x3e826e){const _0x2fe3f9=_0x2cf6ff;var _0x103305,_0xad4ab7;const {memberID:_0x1c7fef,selection:_0x1942e1}=_0x3e826e[_0x2fe3f9(0x406)],{sheetName:_0x410513,range:_0x361e1d}=_0x276fac(_0x1942e1),_0x32b1f4={'name':(_0xad4ab7=(_0x103305=this['_memberService']['getMember'](this[_0x2fe3f9(0x357)],_0x1c7fef))==null?void 0x0:_0x103305[_0x2fe3f9(0x3e6)])!=null?_0xad4ab7:_0x2fe3f9(0x458),'range':this['_getMergeRange'](_0x410513,_0x361e1d),'sheetID':_0x410513,'color':this[_0x2fe3f9(0x214)][_0x2fe3f9(0x230)](_0x1c7fef),'selection':_0x1942e1},_0x25556a=this[_0x2fe3f9(0xf1)];_0x25556a['set'](_0x1c7fef,_0x32b1f4),this[_0x2fe3f9(0x28d)][_0x2fe3f9(0x2ad)](_0x25556a);}[_0x2cf6ff(0x260)](_0x42c5da){const _0x456e51=_0x2cf6ff,{memberID:_0x478bef}=_0x42c5da[_0x456e51(0x406)],_0x5743ba=this['cursorInfo'];_0x5743ba[_0x456e51(0x152)](_0x478bef),this[_0x456e51(0x28d)][_0x456e51(0x2ad)](_0x5743ba);}[_0x2cf6ff(0xdb)](_0x12121f,_0x5e01aa){const _0x2eb402=_0x2cf6ff;var _0x977601,_0x2528e6;const _0x396bb4=(_0x2528e6=(_0x977601=this[_0x2eb402(0xe4)][_0x2eb402(0x1db)](this[_0x2eb402(0x357)]))==null?void 0x0:_0x977601['getSheetBySheetId'](_0x12121f))==null?void 0x0:_0x2528e6[_0x2eb402(0x22c)]();return(_0x396bb4==null?void 0x0:_0x396bb4['find'](_0x24f4c7=>_0x4df9d6['contains'](_0x24f4c7,_0x5e01aa)))||_0x5e01aa;}[_0x2cf6ff(0x12a)](){const _0x17da8e=_0x2cf6ff,_0x5d126a=new _0x435f5a(),_0x49a0a3=yr(),_0x14ee4e=()=>{const _0x270c3=_0xd63a;_0x5d126a['dispose']();const _0x3805e3=(_0x4df680,_0x3842e6,_0x22b060,_0x2d5fed)=>{const _0x485042=_0xd63a;let _0x2cf260=[];switch(_0x4df680['id']){case _0x1b652a[_0x485042(0x346)]:{_0x2cf260=_0x32c2ac(_0x4df680,_0x2d5fed);break;}case _0x1b652a['DeleteRangeMoveUpCommandId']:{_0x2cf260=_0x6ffff2(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x25f)]:{_0x2cf260=_0x41eb19(_0x4df680,_0x2d5fed);break;}case _0x1b652a['InsertRangeMoveDownCommandId']:{_0x2cf260=_0x5ebf3e(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x404)]:{_0x2cf260=_0x4bb0be(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x17a)]:{_0x2cf260=_0x3e245b(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x34f)]:{_0x2cf260=_0x20bba7(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x175)]:{_0x2cf260=_0x48280d(_0x4df680,_0x2d5fed);break;}case _0x1b652a[_0x485042(0x29a)]:{_0x2cf260=_0x33362a(_0x4df680,_0x2d5fed);break;}}const _0x581b7e=_0x4f2272(_0x2cf260,_0x2d5fed),_0x165085=this[_0x485042(0xf1)][_0x485042(0x19c)](_0x3842e6);if(_0x165085&&_0x581b7e){const _0x2e2c18={..._0x165085,'range':_0x581b7e};this[_0x485042(0xf1)][_0x485042(0x138)](_0x3842e6,_0x2e2c18),_0x49a0a3(()=>{const _0x39212f=_0x485042,_0x363d9a=this[_0x39212f(0x301)][_0x39212f(0x36d)](_0x581b7e,_0x1e1382=>(_0x363d9a[_0x39212f(0x275)](),_0x3805e3(_0x1e1382,_0x3842e6,_0x22b060,_0x581b7e)));_0x5d126a[_0x39212f(0x3a8)](_0x363d9a);});}return{'redos':[],'undos':[]};};this[_0x270c3(0xf1)][_0x270c3(0x198)]((_0x2fe65f,_0x59cdad)=>{const _0x4da329=_0x270c3,{range:_0x215254,sheetID:_0x160bd6}=_0x2fe65f,_0x190c14=this[_0x4da329(0x301)][_0x4da329(0x36d)](_0x215254,_0x29d12b=>(_0x190c14['dispose'](),_0x3805e3(_0x29d12b,_0x59cdad,_0x160bd6,_0x215254)));_0x5d126a[_0x4da329(0x3a8)](_0x190c14);});};this[_0x17da8e(0x2cd)](_0x57baeb(this[_0x17da8e(0x28d)][_0x17da8e(0x360)](()=>{_0x14ee4e();})));}[_0x2cf6ff(0x18f)](){const _0x4223b1=_0x2cf6ff;var _0x2e8e92,_0x54b434;if(this[_0x4223b1(0x15e)]=!0x0,((_0x2e8e92=this[_0x4223b1(0xe4)][_0x4223b1(0x23d)]())==null?void 0x0:_0x2e8e92['getUnitId']())!==this['unitID'])return;const _0x394bdd=(_0x54b434=this[_0x4223b1(0x249)][_0x4223b1(0x19c)](_0x5170b3)[_0x4223b1(0x395)]())==null?void 0x0:_0x54b434[0x0],_0x54fd35=this[_0x4223b1(0xe4)][_0x4223b1(0x200)](_0x5ba247[_0x4223b1(0x43d)])['getActiveSheet']();_0x394bdd&&_0x54fd35&&this[_0x4223b1(0x2cf)](_0x54fd35['getSheetId'](),_0x394bdd);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Dr([fe(0x2,_0x11c4b2(_0x3ca714)),fe(0x3,_0x11c4b2(Ft)),fe(0x4,_0x11c4b2(ae)),fe(0x5,_0x3a69fb),fe(0x6,_0x339bfb),fe(0x7,_0x11c4b2(_0x29e128))],Ot);var Nr=Object[_0x2cf6ff(0x2d3)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x4a454c,_0x315c57,_0xd3cbda,_0x5cb3c9)=>{const _0x2e89cb=_0x2cf6ff;for(var _0x1d3c80=_0x5cb3c9>0x1?void 0x0:_0x5cb3c9?Ur(_0x315c57,_0xd3cbda):_0x315c57,_0x422528=_0x4a454c[_0x2e89cb(0x183)]-0x1,_0x4b6b11;_0x422528>=0x0;_0x422528--)(_0x4b6b11=_0x4a454c[_0x422528])&&(_0x1d3c80=(_0x5cb3c9?_0x4b6b11(_0x315c57,_0xd3cbda,_0x1d3c80):_0x4b6b11(_0x1d3c80))||_0x1d3c80);return _0x5cb3c9&&_0x1d3c80&&Nr(_0x315c57,_0xd3cbda,_0x1d3c80),_0x1d3c80;},_t=(_0x49fabf,_0x20264d)=>(_0x5c891d,_0x5b49cb)=>_0x20264d(_0x5c891d,_0x5b49cb,_0x49fabf);let pe=class extends _0x424705{constructor(_0x32ff6c,_0xe334b1,_0xe76c9f){const _0x4a897d=_0x2cf6ff;super(),l(this,_0x4a897d(0x309),new Map()),l(this,_0x4a897d(0x1a7),new _0x5ebd47()),(this[_0x4a897d(0xe4)]=_0x32ff6c,this['_injector']=_0xe334b1,this[_0x4a897d(0x159)]=_0xe76c9f,this['_init']());}[_0x2cf6ff(0x275)](){const _0x191f37=_0x2cf6ff;super['dispose'](),this[_0x191f37(0x1a7)][_0x191f37(0x307)](),this[_0x191f37(0x309)]['forEach'](_0x3d6684=>_0x3d6684[_0x191f37(0x275)]());}[_0x2cf6ff(0x38c)](_0x4b8e92){const _0x48a5a5=_0x2cf6ff;return this[_0x48a5a5(0x309)][_0x48a5a5(0x277)](_0x4b8e92)?this['_entities'][_0x48a5a5(0x19c)](_0x4b8e92)['cursorInfo$']:this[_0x48a5a5(0x1a7)][_0x48a5a5(0x379)](_0x332bf1(_0x29be67=>_0x29be67[_0x48a5a5(0x357)]===_0x4b8e92),_0x42baee(_0x59d116=>_0x59d116['cursorInfo$']));}[_0x2cf6ff(0x2fb)](){const _0xeee95c=_0x2cf6ff;this[_0xeee95c(0xe4)][_0xeee95c(0x1fc)](_0x5ba247[_0xeee95c(0x43d)])[_0xeee95c(0x379)](_0x5f0229(this[_0xeee95c(0x267)]))[_0xeee95c(0x360)](async _0x4e8ca5=>{const _0x57292e=_0xeee95c,_0x1172f5=_0x4e8ca5[_0x57292e(0x3d4)](),_0x3f0312=await this[_0x57292e(0x234)](_0x1172f5);this[_0x57292e(0x1a7)]['next'](_0x3f0312),this[_0x57292e(0x309)][_0x57292e(0x138)](_0x1172f5,_0x3f0312);}),this[_0xeee95c(0xe4)][_0xeee95c(0x1fc)](_0x5ba247[_0xeee95c(0x359)])[_0xeee95c(0x379)](_0x5f0229(this['dispose$']))['pipe'](_0x332bf1(_0x433309=>!_0x433309[_0xeee95c(0x3d4)]()[_0xeee95c(0x428)]('__')))[_0xeee95c(0x360)](async _0x48f847=>{const _0x39c76d=_0xeee95c,_0x3de0c0=_0x48f847[_0x39c76d(0x3d4)](),_0xa1a9a2=await this[_0x39c76d(0x1d0)](_0x3de0c0);this[_0x39c76d(0x1a7)]['next'](_0xa1a9a2),this[_0x39c76d(0x309)][_0x39c76d(0x138)](_0x3de0c0,_0xa1a9a2);}),_0x577df9(this['_univerInstanceService'][_0xeee95c(0x1af)](_0x5ba247[_0xeee95c(0x359)]),this[_0xeee95c(0xe4)]['getTypeOfUnitDisposed$'](_0x5ba247[_0xeee95c(0x43d)]))[_0xeee95c(0x379)](_0x5f0229(this['dispose$']))['subscribe'](_0x549e42=>{const _0x35ac80=_0xeee95c,_0x2a6f04=_0x549e42[_0x35ac80(0x3d4)](),_0x697fe0=this['_entities'][_0x35ac80(0x19c)](_0x2a6f04);_0x697fe0&&(_0x697fe0['dispose'](),this[_0x35ac80(0x309)]['delete'](_0x2a6f04));});}async['_startSheetCollabCursor'](_0x305fa8){const _0x5a204f=_0x2cf6ff,_0x111ccd=await this['_collabSessionService'][_0x5a204f(0x393)](_0x305fa8),_0x43734e=this[_0x5a204f(0x249)][_0x5a204f(0x1f3)](Ot,_0x305fa8,_0x111ccd);return _0x43734e['init'](),_0x43734e;}async[_0x2cf6ff(0x1d0)](_0x3f64af){const _0x5b6e4a=_0x2cf6ff,_0x4a7002=await this['_collabSessionService']['requireSession'](_0x3f64af),_0x157fac=this['_injector'][_0x5b6e4a(0x1f3)](Rt,_0x3f64af,_0x4a7002);return _0x157fac[_0x5b6e4a(0x193)](),_0x157fac;}};pe=Mr([_t(0x0,_0x3a69fb),_t(0x1,_0x11c4b2(_0x3ca714)),_t(0x2,_0x11c4b2(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0xe03d3a,_0x2ae922){const _0xc188ef=_0x2cf6ff;let {radius:_0x2ff28a,width:_0x4a46b5,height:_0x1f9d82}=_0x2ae922;_0x2ff28a=_0x2ff28a!=null?_0x2ff28a:0x0,_0x4a46b5=_0x4a46b5!=null?_0x4a46b5:0x1e,_0x1f9d82=_0x1f9d82!=null?_0x1f9d82:0x1e;let _0x2a8e0e=0x0,_0x422297=0x0,_0x2c3e09=0x0;_0x2a8e0e=_0x422297=_0x2c3e09=Math[_0xc188ef(0x3c9)](_0x2ff28a,_0x4a46b5/0x2,_0x1f9d82/0x2),_0xe03d3a[_0xc188ef(0x229)](),_0xe03d3a[_0xc188ef(0x22a)](_0x2a8e0e,0x0),_0xe03d3a[_0xc188ef(0x180)](_0x4a46b5-_0x422297,0x0),_0xe03d3a['arc'](_0x4a46b5-_0x422297,_0x422297,_0x422297,Math['PI']*0x3/0x2,0x0,!0x1),_0xe03d3a[_0xc188ef(0x180)](_0x4a46b5,_0x1f9d82-_0x2c3e09),_0xe03d3a[_0xc188ef(0x376)](_0x4a46b5-_0x2c3e09,_0x1f9d82-_0x2c3e09,_0x2c3e09,0x0,Math['PI']/0x2,!0x1),_0xe03d3a[_0xc188ef(0x180)](0x0,_0x1f9d82),_0xe03d3a[_0xc188ef(0x180)](0x0,_0x2a8e0e),_0xe03d3a['arc'](_0x2a8e0e,_0x2a8e0e,_0x2a8e0e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xe03d3a[_0xc188ef(0x3c2)](),_0x2ae922[_0xc188ef(0x25e)]&&(_0xe03d3a[_0xc188ef(0x259)](),_0xe03d3a[_0xc188ef(0x1ec)]=_0x2ae922[_0xc188ef(0x25e)],_0x2ae922['fillRule']===_0xc188ef(0x414)?_0xe03d3a['fill'](_0xc188ef(0x414)):_0xe03d3a[_0xc188ef(0x25e)](),_0xe03d3a[_0xc188ef(0x1c8)]());}class st extends _0x3224fa{constructor(_0x26ec11,_0x20b2fd){const _0xfb85c0=_0x2cf6ff;super(_0x26ec11,_0x20b2fd),l(this,'color'),l(this,_0xfb85c0(0x1ef)),(this['color']=_0x20b2fd==null?void 0x0:_0x20b2fd['color'],this[_0xfb85c0(0x1ef)]=_0x20b2fd==null?void 0x0:_0x20b2fd['text']);}static[_0x2cf6ff(0x1dc)](_0x44c25a,_0x527375){const _0xf41e81=_0x2cf6ff,{text:_0x27d6fc,color:_0x326bfc}=_0x527375;_0x44c25a[_0xf41e81(0x259)](),_0x44c25a[_0xf41e81(0x247)]=_0xf41e81(0x3cd);const _0x3f571b=_0x44c25a[_0xf41e81(0x13e)](_0x27d6fc)[_0xf41e81(0x1df)],_0x1dcd6e=Math[_0xf41e81(0x3c9)](_0x3f571b+0x2*ut,us);Lr(_0x44c25a,{'height':Le,'radius':0x4,'width':_0x1dcd6e,'fill':_0x326bfc,'evented':!0x1}),_0x44c25a['fillStyle']=_0xf41e81(0x459);const _0x28a698=ut,_0x85193b=Le-Ar,_0x53f395=us-0x2*ut;if(_0x3f571b>_0x53f395){let _0x1280b5='',_0x2ed4c4=0x0;for(const _0x4de14e of _0x27d6fc){const _0x3ea93c=_0x44c25a[_0xf41e81(0x13e)](_0x4de14e)[_0xf41e81(0x1df)];if(_0x2ed4c4+_0x3ea93c<=_0x53f395-_0x44c25a['measureText'](_0xf41e81(0x351))['width'])_0x1280b5+=_0x4de14e,_0x2ed4c4+=_0x3ea93c;else{_0x1280b5+=_0xf41e81(0x351);break;}}_0x44c25a[_0xf41e81(0x3d9)](_0x1280b5,_0x28a698,_0x85193b);}else _0x44c25a[_0xf41e81(0x3d9)](_0x27d6fc,_0x28a698,_0x85193b);_0x44c25a['restore']();}[_0x2cf6ff(0x2da)](_0x13be14){const _0x2bbebc=_0x2cf6ff;st[_0x2bbebc(0x1dc)](_0x13be14,this);}}const dt=_0x2cf6ff(0x36a),$r=_0x2cf6ff(0x161),jr=_0x2cf6ff(0x143),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x2cf6ff(0x185);class ds{constructor(_0x20844b,_0x3a5a79,_0x23f420,_0x903da){const _0x29481e=_0x2cf6ff;l(this,'_shapes',[]),l(this,_0x29481e(0x38f),null),l(this,_0x29481e(0x20b),null),l(this,_0x29481e(0x136),null),l(this,'_hideTimer',null),l(this,_0x29481e(0x45a),null),(this[_0x29481e(0x3de)]=_0x20844b,this['_scene']=_0x3a5a79,this[_0x29481e(0x3cb)]=_0x23f420,this[_0x29481e(0x17f)]=_0x903da,this[_0x29481e(0x374)]());}set['_hover'](_0xf20d97){const _0x888ba8=_0x2cf6ff;_0xf20d97?(this[_0x888ba8(0x136)]&&this[_0x888ba8(0x136)][_0x888ba8(0x27d)](),this[_0x888ba8(0x20b)]&&this['_textBubble'][_0x888ba8(0x10c)]()):(this[_0x888ba8(0x136)]&&this[_0x888ba8(0x136)][_0x888ba8(0x10c)](),this[_0x888ba8(0x20b)]&&this['_textBubble'][_0x888ba8(0x27d)]());}[_0x2cf6ff(0x275)](){const _0x423044=_0x2cf6ff;for(const _0x5c00a7 of this[_0x423044(0x2ba)])_0x5c00a7[_0x423044(0x275)]();this[_0x423044(0x20b)]&&this[_0x423044(0x20b)][_0x423044(0x275)](),this[_0x423044(0x136)]&&this['_anchorDot'][_0x423044(0x275)](),this[_0x423044(0x38f)]&&this[_0x423044(0x38f)][_0x423044(0x275)](),this['_eventUnsubscribe']&&this[_0x423044(0x45a)]();}[_0x2cf6ff(0x374)](){const _0x52db90=_0x2cf6ff;var _0xc3e04e;const {_docSkeleton:_0x388ce4,_document:_0x4c7baf}=this,{color:_0x5636ad,name:_0x39f0f9,ranges:_0x579658}=this['_cursor'],_0x23d2a4=_0x4c7baf[_0x52db90(0x1a3)](),{docsLeft:_0x4d3b25,docsTop:_0x151477}=_0x23d2a4,_0x13ff66=new _0xd5545a(_0x23d2a4,_0x388ce4);for(const {startOffset:_0x459806,endOffset:_0xe657dc,collapsed:_0x2960c0,isActive:_0x339782}of _0x579658){const _0x129698=_0x388ce4['findNodePositionByCharIndex'](_0x459806),_0x60f38e=_0x388ce4[_0x52db90(0x455)](_0xe657dc);if(_0x339782){const {contentBoxPointGroup:_0x49bdda}=_0x13ff66[_0x52db90(0x326)](_0x60f38e,_0x60f38e);if(_0x49bdda[_0x52db90(0x183)]===0x0)continue;this[_0x52db90(0x1b2)](_0x5636ad,_0x49bdda,_0x4d3b25,_0x151477,_0x39f0f9),this[_0x52db90(0x45a)]=this[_0x52db90(0x1ac)]();}if(!_0x2960c0&&_0x129698&&_0x60f38e){if(_0x32be08(_0x129698,_0x60f38e)){const _0x153801=new _0x4e719a(_0x23d2a4,_0x388ce4),{pointGroup:_0x2a6c0d}=(_0xc3e04e=_0x153801[_0x52db90(0x326)](_0x129698,_0x60f38e))!=null?_0xc3e04e:{};if(_0x2a6c0d==null||_0x2a6c0d[_0x52db90(0x183)]===0x0)continue;this[_0x52db90(0x280)](_0x5636ad,_0x2a6c0d,_0x4d3b25,_0x151477);}else{const {contentBoxPointGroup:_0x350bf8}=_0x13ff66['getRangePointData'](_0x129698,_0x60f38e);if(_0x350bf8[_0x52db90(0x183)]===0x0)continue;this[_0x52db90(0x1cb)](_0x5636ad,_0x350bf8,_0x4d3b25,_0x151477);}}}}[_0x2cf6ff(0x1b2)](_0x3e7a5f,_0x376b40,_0x323690,_0x34b90b,_0x425043){const _0x567bb7=_0x2cf6ff,_0x283782=this[_0x567bb7(0x38b)](_0x376b40),{left:_0x51a733,top:_0x4c8e97,height:_0x530ee6}=_0x283782,_0x21d06f=this[_0x567bb7(0x350)](),_0x40185e=Hr/_0x21d06f,_0x1963cd=new _0xfe6739(dt+_0x3d523e['generateRandomId'](De),{'left':_0x51a733+_0x323690-_0x40185e,'top':_0x4c8e97+_0x34b90b,'height':_0x530ee6,'width':xr,'fill':_0x3e7a5f||_0xfc94f4(_0xcac1ea['black'],0x0),'strokeWidth':_0x40185e,'stroke':kr,'evented':!0x0});this['_anchor']=_0x1963cd,this[_0x567bb7(0x3bc)][_0x567bb7(0x1a8)](_0x1963cd,_0x35e282);const _0x44998a=new _0xfe6739(dt+_0x3d523e[_0x567bb7(0x434)](De),{'left':_0x51a733+_0x323690-_0x40185e,'top':_0x4c8e97+_0x34b90b-ft/0x2,'height':ft,'width':ft,'fill':_0x3e7a5f||_0xfc94f4(_0xcac1ea['black'],0x0),'strokeWidth':0x0,'stroke':_0x3e7a5f||_0xfc94f4(_0xcac1ea[_0x567bb7(0xf7)],0x0),'evented':!0x1});this[_0x567bb7(0x136)]=_0x44998a,this[_0x567bb7(0x3bc)][_0x567bb7(0x1a8)](_0x44998a,_0x35e282);const _0x5eff28=new st(dt+_0x3d523e[_0x567bb7(0x434)](De),{'left':_0x51a733+_0x323690-_0x40185e,'top':_0x4c8e97+_0x34b90b-Le,'text':_0x425043,'color':_0x3e7a5f});this[_0x567bb7(0x20b)]=_0x5eff28,this[_0x567bb7(0x3bc)]['addObject'](_0x5eff28,_0x35e282),this[_0x567bb7(0x39d)]=!0x1;}['_handleHover'](){const _0x346d6d=_0x2cf6ff,_0x46d59a=this['_anchor']['onPointerEnter$'][_0x346d6d(0x43f)](()=>{const _0xcf1edc=_0x346d6d;this[_0xcf1edc(0x39d)]=!0x0;}),_0x339c63=this[_0x346d6d(0x38f)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x405d20=_0x346d6d;this[_0x405d20(0x303)]&&clearTimeout(this[_0x405d20(0x303)]),this[_0x405d20(0x303)]=setTimeout(()=>{const _0x1aad74=_0x405d20;this[_0x1aad74(0x39d)]=!0x1;},0x7d0);});return()=>{const _0xa6560c=_0x346d6d;_0x46d59a[_0xa6560c(0x285)](),_0x339c63[_0xa6560c(0x285)]();};}[_0x2cf6ff(0x1cb)](_0x306ccf,_0x1fa3f4,_0xd2d80a,_0x584d1b){const _0x29d16a=_0x2cf6ff,_0x1f7d1c=new _0x449a4e(_0x306ccf)[_0x29d16a(0x356)](0.2)[_0x29d16a(0x420)](),_0x22ad30=new _0xfff04a($r+_0x3d523e['generateRandomId'](De),{'pointsGroup':_0x1fa3f4,'fill':_0x1f7d1c||_0xfc94f4(_0xcac1ea[_0x29d16a(0xf7)],0.2),'left':_0xd2d80a,'top':_0x584d1b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x29d16a(0x2ba)][_0x29d16a(0x16c)](_0x22ad30),this[_0x29d16a(0x3bc)][_0x29d16a(0x1a8)](_0x22ad30,_0x35e282);}['_drawRectRange'](_0x1e7cb2,_0x4ea13e,_0xa51a59,_0x4ebfd7){const _0x372c8b=_0x2cf6ff,_0x42d9e8=new _0x449a4e(_0x1e7cb2)[_0x372c8b(0x356)](0.2)[_0x372c8b(0x420)](),_0x439a96=new _0xfff04a(jr+_0x3d523e['generateRandomId'](De),{'pointsGroup':_0x4ea13e,'fill':_0x42d9e8||_0xfc94f4(_0xcac1ea[_0x372c8b(0xf7)],0.2),'left':_0xa51a59,'top':_0x4ebfd7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x372c8b(0x2ba)][_0x372c8b(0x16c)](_0x439a96),this['_scene'][_0x372c8b(0x1a8)](_0x439a96,_0x35e282);}[_0x2cf6ff(0x38b)](_0x199159){const _0x362eda=_0x199159[0x0],_0x18353f=_0x362eda[0x0],_0x5e2d8f=_0x362eda[0x2],{x:_0x4a30ee,y:_0x217eb8}=_0x18353f,{x:_0x41e521,y:_0x53a965}=_0x5e2d8f;return{'left':_0x4a30ee,'top':_0x217eb8,'width':_0x41e521-_0x4a30ee,'height':_0x53a965-_0x217eb8};}[_0x2cf6ff(0x350)](){const _0x368c9d=_0x2cf6ff,{scaleX:_0x109222,scaleY:_0x5db178}=this[_0x368c9d(0x3bc)]['getAncestorScale']();return Math[_0x368c9d(0x26f)](_0x109222,_0x5db178);}}var Br=Object['defineProperty'],Vr=Object['getOwnPropertyDescriptor'],Fr=(_0x3c9994,_0x4784f5,_0x457a1a,_0x3def91)=>{for(var _0x35f186=_0x3def91>0x1?void 0x0:_0x3def91?Vr(_0x4784f5,_0x457a1a):_0x4784f5,_0x2bd01f=_0x3c9994['length']-0x1,_0x27c658;_0x2bd01f>=0x0;_0x2bd01f--)(_0x27c658=_0x3c9994[_0x2bd01f])&&(_0x35f186=(_0x3def91?_0x27c658(_0x4784f5,_0x457a1a,_0x35f186):_0x27c658(_0x35f186))||_0x35f186);return _0x3def91&&_0x35f186&&Br(_0x4784f5,_0x457a1a,_0x35f186),_0x35f186;},xe=(_0x183a39,_0x95d474)=>(_0x4f9938,_0x12f9b1)=>_0x95d474(_0x4f9938,_0x12f9b1,_0x183a39);let Dt=class extends _0x424705{constructor(_0x179def,_0x1c5f20,_0x19dc3a,_0x1ab89d,_0x4c8639){const _0x1ea2f8=_0x2cf6ff;super(),l(this,_0x1ea2f8(0x20a),[]),l(this,_0x1ea2f8(0x42d),[]),(this['_context']=_0x179def,this[_0x1ea2f8(0x347)]=_0x1c5f20,this[_0x1ea2f8(0x3ed)]=_0x19dc3a,this[_0x1ea2f8(0x34a)]=_0x1ab89d,this[_0x1ea2f8(0xdf)]=_0x4c8639,this[_0x1ea2f8(0x2fb)]());}[_0x2cf6ff(0x2fb)](){const _0x1de6a7=_0x2cf6ff,_0x4b69d4=this['_context'][_0x1de6a7(0x290)],_0xd9084f=this[_0x1de6a7(0x347)];this[_0x1de6a7(0x2cd)](_0xb1d5f6([this[_0x1de6a7(0x3ed)][_0x1de6a7(0x38c)](_0x4b69d4),this[_0x1de6a7(0xdf)]['currentTheme$']])['pipe'](_0x4a2a85(([_0x4defe3,_0x253441])=>({'skeleton':_0xd9084f[_0x1de6a7(0x22f)](),'cursors':[..._0x4defe3[_0x1de6a7(0x205)]()][_0x1de6a7(0x3b5)](_0x76b369=>({..._0x76b369,'color':_0x253441[_0x76b369[_0x1de6a7(0x1a6)]]}))})))[_0x1de6a7(0x360)](_0x2a1be8=>{const _0x11f486=_0x1de6a7;if(this[_0x11f486(0x239)](),_0x2a1be8){const {skeleton:_0x289c2a,cursors:_0x871c4b}=_0x2a1be8;this[_0x11f486(0x33f)](_0x289c2a,_0x871c4b);}})),this[_0x1de6a7(0x15f)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0xdf1dc2,_0x2d7366){const _0x50d6cd=_0x2cf6ff,{scene:_0x159fe8,mainComponent:_0x18b16c}=this[_0x50d6cd(0x418)],_0x3d7c82=_0x2d7366[_0x50d6cd(0x101)](_0x32c1d=>new ds(_0x32c1d,_0x159fe8,_0xdf1dc2,_0x18b16c));this[_0x50d6cd(0x20a)]=_0x3d7c82,this['_cursors']=_0x2d7366;}[_0x2cf6ff(0x113)](){const _0x1e552d=_0x2cf6ff;this[_0x1e552d(0x239)]();const {scene:_0x493130,mainComponent:_0x155af3}=this[_0x1e552d(0x418)],_0x12523f=this['_docSkeletonManagerService']['getSkeleton'](),_0x2b9f2b=this[_0x1e552d(0x42d)][_0x1e552d(0x101)](_0x124292=>new ds(_0x124292,_0x493130,_0x12523f,_0x155af3));this['_cursorShapes']=_0x2b9f2b;}['_removeCollabCursors'](){const _0x579f24=_0x2cf6ff;this[_0x579f24(0x20a)]['forEach'](_0x16ba4a=>_0x16ba4a[_0x579f24(0x275)]()),this['_cursorShapes']=[];}[_0x2cf6ff(0x2fe)](){const _0x243012=_0x2cf6ff,_0x50e8f1=[_0x5c3d7a['id']];this['disposeWithMe'](this[_0x243012(0x34a)][_0x243012(0x1d5)](_0x376e17=>{const _0x36dfec=_0x243012;_0x50e8f1['includes'](_0x376e17['id'])&&_0x376e17[_0x36dfec(0x3d6)][_0x36dfec(0x290)]===this[_0x36dfec(0x418)][_0x36dfec(0x290)]&&this[_0x36dfec(0x113)]();}));}[_0x2cf6ff(0x15f)](){const _0x31b1e2=_0x2cf6ff;this['disposeWithMe'](_0x1701f0(this['_context'][_0x31b1e2(0x3ef)]['onTransformChange$'])[_0x31b1e2(0x379)](_0x584f39(_0x36e070=>_0x36e070['type']===_0x54eff9[_0x31b1e2(0x22b)]),_0x5b2033(0x10))[_0x31b1e2(0x360)](()=>{this['_refreshCollabCursors']();}));}};Dt=Fr([xe(0x1,_0x11c4b2(_0x4498de)),xe(0x2,_0x11c4b2(pe)),xe(0x3,_0x339bfb),xe(0x4,_0x11c4b2(_0x156127))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x3224fa{constructor(_0x1de0ea,_0x30d7de){const _0x1504e8=_0x2cf6ff;super(_0x1de0ea,_0x30d7de),l(this,_0x1504e8(0x111)),l(this,_0x1504e8(0x176),!0x1),l(this,_0x1504e8(0x19e)),l(this,_0x1504e8(0x13a),''),l(this,_0x1504e8(0x17c),_0x1504e8(0xff)),l(this,_0x1504e8(0x206)),(_0x30d7de&&this['setShapeProps'](_0x30d7de),this['onPointerEnter$'][_0x1504e8(0x43f)](()=>this[_0x1504e8(0x191)]({'hovered':!0x0})),this['onPointerLeave$'][_0x1504e8(0x43f)](()=>this[_0x1504e8(0x191)]({'hovered':!0x1})));}[_0x2cf6ff(0x191)](_0x380043){const _0x11b56e=_0x2cf6ff;var _0x3eeead,_0x4d6f7b,_0x548c60,_0xf0923c,_0x4797b9,_0x53b2c7;this[_0x11b56e(0x111)]=(_0x3eeead=_0x380043[_0x11b56e(0x1a6)])!=null?_0x3eeead:this[_0x11b56e(0x111)],this[_0x11b56e(0x176)]=(_0x4d6f7b=_0x380043[_0x11b56e(0x412)])!=null?_0x4d6f7b:this[_0x11b56e(0x176)],this[_0x11b56e(0x19e)]=(_0x548c60=_0x380043[_0x11b56e(0x2be)])!=null?_0x548c60:this[_0x11b56e(0x19e)],this[_0x11b56e(0x13a)]=(_0xf0923c=_0x380043[_0x11b56e(0x3e6)])!=null?_0xf0923c:this['_name'],this[_0x11b56e(0x17c)]=(_0x4797b9=_0x380043['labelPosition'])!=null?_0x4797b9:this['_labelPosition'],this[_0x11b56e(0x206)]=(_0x53b2c7=_0x380043[_0x11b56e(0x38d)])!=null?_0x53b2c7:this[_0x11b56e(0x206)],this[_0x11b56e(0x3ee)]({'width':_0x380043[_0x11b56e(0x1df)],'height':_0x380043[_0x11b56e(0x140)]});}[_0x2cf6ff(0x28e)](_0x231dbc){const _0x387456=_0x2cf6ff,{row:_0xfd8654,column:_0x513251}=_0x231dbc;if(_0xfd8654>=this[_0x387456(0x19e)]['startRow']&&_0xfd8654<=this[_0x387456(0x19e)][_0x387456(0x2a7)]&&_0x513251>=this[_0x387456(0x19e)][_0x387456(0x1fe)]&&_0x513251<=this['_range'][_0x387456(0x441)]){this[_0x387456(0x191)]({'hovered':!0x0});return;}this[_0x387456(0x191)]({'hovered':!0x1});}['triggerDblclick'](_0x810548){return!0x1;}[_0x2cf6ff(0x2da)](_0xbd46d9){const _0x5490e0=_0x2cf6ff;_0xfe6739['drawWith'](_0xbd46d9,{'width':this[_0x5490e0(0x1df)],'height':this[_0x5490e0(0x140)],'strokeWidth':Gr,'stroke':this[_0x5490e0(0x111)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0xbd46d9[_0x5490e0(0x259)](),_0xbd46d9[_0x5490e0(0x16f)](0x1,0x0,0x0,0x1,this['width'],this[_0x5490e0(0x17c)]===_0x5490e0(0x416)?0x0:-Le),st[_0x5490e0(0x1dc)](_0xbd46d9,{'text':this[_0x5490e0(0x13a)],'color':this[_0x5490e0(0x111)]}),_0xbd46d9[_0x5490e0(0x1c8)]());}}var Kr=Object[_0x2cf6ff(0x2d3)],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x1a04ee,_0x6f4914,_0x43113f,_0x651bd3)=>{const _0x28ee1c=_0x2cf6ff;for(var _0xc09b84=_0x651bd3>0x1?void 0x0:_0x651bd3?Xr(_0x6f4914,_0x43113f):_0x6f4914,_0x20561f=_0x1a04ee[_0x28ee1c(0x183)]-0x1,_0x18d346;_0x20561f>=0x0;_0x20561f--)(_0x18d346=_0x1a04ee[_0x20561f])&&(_0xc09b84=(_0x651bd3?_0x18d346(_0x6f4914,_0x43113f,_0xc09b84):_0x18d346(_0xc09b84))||_0xc09b84);return _0x651bd3&&_0xc09b84&&Kr(_0x6f4914,_0x43113f,_0xc09b84),_0xc09b84;},mt=(_0x253472,_0x4994bc)=>(_0x129f18,_0x46d99c)=>_0x4994bc(_0x129f18,_0x46d99c,_0x253472);const qr=0x1389;let wt=class extends _0x424705{constructor(_0x5ac4b9,_0x32ffdd,_0x2b6db8,_0x2c7707){const _0x169c85=_0x2cf6ff;super(),l(this,_0x169c85(0x42d),new Set()),l(this,_0x169c85(0x13d),null),(this['_context']=_0x5ac4b9,this[_0x169c85(0x297)]=_0x32ffdd,this[_0x169c85(0x3ed)]=_0x2b6db8,this[_0x169c85(0xdf)]=_0x2c7707,this[_0x169c85(0x2fb)]());}['_init'](){const _0x16e06e=_0x2cf6ff;this['_sheetSkeletonManagerService'][_0x16e06e(0xec)][_0x16e06e(0x379)](_0x1cc51a(this[_0x16e06e(0x267)]),_0xc1da79(_0x594e69=>{const _0x19db0c=_0x16e06e;if(_0x594e69){const _0x2c5467=_0x594e69[_0x19db0c(0x19b)];return _0xb1d5f6(this['_collabCursorController']['getCollabCursors$'](this[_0x19db0c(0x418)][_0x19db0c(0x290)]),this[_0x19db0c(0xdf)][_0x19db0c(0x3c8)])['pipe'](_0x4a2a85(([_0x50bd81,_0x21fa89])=>{const _0xc6211d=new Map();return _0x50bd81['forEach']((_0x3870e9,_0x56ec9e)=>{const _0xc1ed57=_0xd63a;if(_0x3870e9['sheetID']===_0x2c5467){const _0x239a08={..._0x3870e9};_0x239a08[_0xc1ed57(0x1a6)]=_0x21fa89[_0x3870e9[_0xc1ed57(0x1a6)]],_0xc6211d[_0xc1ed57(0x138)](_0x56ec9e,_0x239a08);}}),{'skeleton':_0x594e69,'cursors':_0xc6211d};}));}return _0x1a6ece({'skeleton':null,'cursors':new Map()});}))[_0x16e06e(0x360)](({skeleton:_0x47dbed,cursors:_0x1bff3b})=>{const _0x47eaa4=_0x16e06e;this[_0x47eaa4(0x239)](),_0x47dbed&&this[_0x47eaa4(0x33f)](_0x47dbed,_0x1bff3b);}),this[_0x16e06e(0x297)][_0x16e06e(0xec)][_0x16e06e(0x360)](_0x5663e9=>{const _0x5eb1a6=_0x16e06e;if(_0x5663e9==null)return;const {skeleton:_0x181964}=_0x5663e9,{scene:_0x399fe2}=this[_0x5eb1a6(0x418)];_0x399fe2[_0x5eb1a6(0x34b)]['subscribeEvent'](_0x25bd20(_0x129914=>{const _0xdc8329=_0x5eb1a6;var _0x1469f6,_0x100c25;const {offsetX:_0x2734f8,offsetY:_0x469079}=_0x129914,{x:_0x1c3c74,y:_0x33e545}=_0x399fe2[_0xdc8329(0x172)](_0x57ce41[_0xdc8329(0x265)]([_0x2734f8,_0x469079])),{scaleX:_0x18aee6,scaleY:_0x26e5e9}=_0x399fe2[_0xdc8329(0x430)](),_0x584589=_0x399fe2['getViewport'](_0x4d1621['VIEW_MAIN']),_0x2fa25a=_0x399fe2['getVpScrollXYInfoByPosToVp'](_0x57ce41[_0xdc8329(0x265)]([_0x1c3c74,_0x33e545]),_0x584589),_0x7e7616=_0x181964[_0xdc8329(0x12f)](_0x2734f8,_0x469079,_0x18aee6,_0x26e5e9,_0x2fa25a);((_0x1469f6=this['_lastPointer'])==null?void 0x0:_0x1469f6['column'])===_0x7e7616[_0xdc8329(0x2d0)]&&((_0x100c25=this['_lastPointer'])==null?void 0x0:_0x100c25[_0xdc8329(0x3f9)])===_0x7e7616['row']||this[_0xdc8329(0x42d)][_0xdc8329(0x198)](_0x3f38c7=>{const _0x2105b6=_0xdc8329;_0x3f38c7[_0x2105b6(0x28e)](_0x7e7616);});},0x64));});}[_0x2cf6ff(0x33f)](_0x23fa7c,_0x865a67){const _0x29b614=_0x2cf6ff;var _0x331816;const _0x4fd5be=(_0x331816=this[_0x29b614(0x297)][_0x29b614(0x14f)]())==null?void 0x0:_0x331816[_0x29b614(0x3b6)];if(!_0x4fd5be)return;const _0x5be713=this['_getSheetObject']();if(!_0x5be713)return;this[_0x29b614(0x42d)][_0x29b614(0x198)](_0x2ce3e0=>{_0x2ce3e0['makeDirty']();});const {scene:_0x3cac6a}=_0x5be713,_0x40e3eb=zr(Array[_0x29b614(0x14a)](_0x865a67[_0x29b614(0x205)]()))[_0x29b614(0x101)](_0x4607a8=>{const _0x36423d=_0x29b614,{color:_0x249c7d,range:_0x4b9a9d,name:_0x494f87,selection:_0x1d4702,sheetID:_0x2741bf}=_0x4607a8,{startColumn:_0x4a92ce,startRow:_0x719f2b,endColumn:_0x2734c1,endRow:_0x29f0a3}=_0x4b9a9d,_0x2a9f57=_0x26399(_0x719f2b,_0x4a92ce,_0x3cac6a,_0x4fd5be),_0x4c2003=_0x26399(_0x29f0a3,_0x2734c1,_0x3cac6a,_0x4fd5be),{columnHeaderHeightAndMarginTop:_0x1bac9b}=_0x4fd5be,{startX:_0x3ff0c9,startY:_0x7eaa71}=_0x2a9f57,{endX:_0x47b045,endY:_0x357db7}=_0x4c2003,_0x31849c=_0x47b045-_0x3ff0c9,_0x1dd104=_0x357db7-_0x7eaa71,_0x4f0213={'labelPosition':_0x7eaa71-_0x1bac9b>=Le?_0x36423d(0xff):_0x36423d(0x416),'sheetID':_0x2741bf,'range':_0x4b9a9d,'color':_0x249c7d,'name':_0x494f87,'selection':_0x1d4702,'left':_0x3ff0c9,'top':_0x7eaa71,'width':_0x31849c,'height':_0x1dd104,'evented':!0x1,'zIndex':qr};return new Yr(_0x494f87,_0x4f0213);});_0x3cac6a[_0x29b614(0x129)](_0x40e3eb,Wr),this['_cursors']=new Set(_0x40e3eb);}['_removeCollabCursors'](){const _0x618554=_0x2cf6ff;var _0x4a4209;(_0x4a4209=this[_0x618554(0x42d)])==null||_0x4a4209[_0x618554(0x198)](_0x3e6bd6=>_0x3e6bd6[_0x618554(0x275)]());}['_getSheetObject'](){const _0x8a5912=_0x2cf6ff;return _0x37206a(this[_0x8a5912(0x418)][_0x8a5912(0x400)],this[_0x8a5912(0x418)]);}};wt=Jr([mt(0x1,_0x11c4b2(_0x185e08)),mt(0x2,_0x11c4b2(pe)),mt(0x3,_0x11c4b2(_0x156127))],wt);function zr(_0x1a584e){const _0x198344=_0x2cf6ff,_0x47fc61=new Map();return _0x1a584e['forEach'](_0x315c6a=>{const _0x582130=_0xd63a;if(_0x47fc61[_0x582130(0x277)](_0x315c6a[_0x582130(0x142)])){const _0x38b8da=_0x47fc61['get'](_0x315c6a['selection']);_0x38b8da[_0x582130(0x3e6)]+=',\x20'+_0x315c6a[_0x582130(0x3e6)];}else _0x47fc61['set'](_0x315c6a[_0x582130(0x142)],_0x315c6a);}),Array[_0x198344(0x14a)](_0x47fc61[_0x198344(0x205)]());}var N=function(){const _0x4ca536=_0x2cf6ff;return N=Object[_0x4ca536(0x3ae)]||function(_0x56d51a){const _0x22d080=_0x4ca536;for(var _0x2411e0,_0x3aff7a=0x1,_0x116831=arguments[_0x22d080(0x183)];_0x3aff7a<_0x116831;_0x3aff7a++){_0x2411e0=arguments[_0x3aff7a];for(var _0xbc139a in _0x2411e0)Object[_0x22d080(0x392)][_0x22d080(0x238)][_0x22d080(0x440)](_0x2411e0,_0xbc139a)&&(_0x56d51a[_0xbc139a]=_0x2411e0[_0xbc139a]);}return _0x56d51a;},N['apply'](this,arguments);},Zr=function(_0x164ab3,_0x2d2f87){const _0x442869=_0x2cf6ff;var _0x396360={};for(var _0x1131a4 in _0x164ab3)Object[_0x442869(0x392)][_0x442869(0x238)][_0x442869(0x440)](_0x164ab3,_0x1131a4)&&_0x2d2f87[_0x442869(0x2c0)](_0x1131a4)<0x0&&(_0x396360[_0x1131a4]=_0x164ab3[_0x1131a4]);if(_0x164ab3!=null&&typeof Object['getOwnPropertySymbols']==_0x442869(0x15b)){for(var _0x1daeda=0x0,_0x1131a4=Object[_0x442869(0x419)](_0x164ab3);_0x1daeda<_0x1131a4['length'];_0x1daeda++)_0x2d2f87['indexOf'](_0x1131a4[_0x1daeda])<0x0&&Object['prototype'][_0x442869(0x3e5)]['call'](_0x164ab3,_0x1131a4[_0x1daeda])&&(_0x396360[_0x1131a4[_0x1daeda]]=_0x164ab3[_0x1131a4[_0x1daeda]]);}return _0x396360;},Wt=_0x2e9a8e(function(_0x52d508,_0x2484fe){const _0x14958d=_0x2cf6ff;var _0x526c64=_0x52d508[_0x14958d(0x109)],_0x5ea302=_0x52d508['id'],_0x3ca03a=_0x52d508['className'],_0x424fe4=_0x52d508[_0x14958d(0x3b9)],_0x514913=Zr(_0x52d508,[_0x14958d(0x109),'id',_0x14958d(0x24b),_0x14958d(0x3b9)]),_0x239a25=_0x14958d(0x216)['concat'](_0x5ea302,'\x20')[_0x14958d(0x1a4)](_0x3ca03a||'')[_0x14958d(0x390)](),_0x34152b=_0x56832d('_'[_0x14958d(0x1a4)](to()));return ks(_0x526c64,''['concat'](_0x5ea302),{'defIds':_0x526c64['defIds'],'idSuffix':_0x34152b[_0x14958d(0x281)]},N({'ref':_0x2484fe,'className':_0x239a25},_0x514913),_0x424fe4);});function ks(_0x31c5d1,_0x42aa3c,_0x2b2ff6,_0x64b7a,_0x50952f){const _0x56ca57=_0x2cf6ff;return _0x1c6405(_0x31c5d1[_0x56ca57(0x298)],N(N({'key':_0x42aa3c},Qr(_0x31c5d1,_0x2b2ff6,_0x50952f)),_0x64b7a),(eo(_0x31c5d1,_0x2b2ff6)[_0x56ca57(0x1ea)]||[])[_0x56ca57(0x101)](function(_0x3fd2f6,_0x40b6d6){const _0x39d38d=_0x56ca57;return ks(_0x3fd2f6,''['concat'](_0x42aa3c,'-')[_0x39d38d(0x1a4)](_0x31c5d1[_0x39d38d(0x298)],'-')[_0x39d38d(0x1a4)](_0x40b6d6),_0x2b2ff6,void 0x0,_0x50952f);}));}function _0xd63a(_0xb32b59,_0x300b70){const _0x38c541=_0x38c5();return _0xd63a=function(_0xd63a75,_0x22ac62){_0xd63a75=_0xd63a75-0xda;let _0x570776=_0x38c541[_0xd63a75];return _0x570776;},_0xd63a(_0xb32b59,_0x300b70);}function Qr(_0x2e11bc,_0x204b55,_0x443bfa){const _0x1c07fe=_0x2cf6ff;var _0x11da6f=N({},_0x2e11bc[_0x1c07fe(0x127)]);_0x443bfa!=null&&_0x443bfa['colorChannel1']&&_0x11da6f['fill']==='colorChannel1'&&(_0x11da6f[_0x1c07fe(0x25e)]=_0x443bfa[_0x1c07fe(0x3fe)]);var _0x45c711=_0x204b55['defIds'];return!_0x45c711||_0x45c711[_0x1c07fe(0x183)]===0x0||(_0x2e11bc[_0x1c07fe(0x298)]===_0x1c07fe(0x1d7)&&_0x11da6f[_0x1c07fe(0x181)]&&(_0x11da6f[_0x1c07fe(0x181)]=_0x11da6f[_0x1c07fe(0x181)]+_0x204b55[_0x1c07fe(0x227)]),Object[_0x1c07fe(0x177)](_0x11da6f)['forEach'](function(_0xc09f9f){const _0xa453e9=_0x1c07fe;var _0x5848f2=_0xc09f9f[0x0],_0x3a877d=_0xc09f9f[0x1];typeof _0x3a877d==_0xa453e9(0x324)&&(_0x11da6f[_0x5848f2]=_0x3a877d['replace'](/url\(#(.*)\)/,_0xa453e9(0x1b4)[_0xa453e9(0x1a4)](_0x204b55[_0xa453e9(0x227)],')')));})),_0x11da6f;}function eo(_0x511068,_0x58596e){const _0x5ce9a8=_0x2cf6ff;var _0x5df40a,_0x4fe719=_0x58596e[_0x5ce9a8(0x3f2)];return!_0x4fe719||_0x4fe719[_0x5ce9a8(0x183)]===0x0?_0x511068:_0x511068['tag']===_0x5ce9a8(0x3bf)&&(!((_0x5df40a=_0x511068[_0x5ce9a8(0x1ea)])===null||_0x5df40a===void 0x0)&&_0x5df40a[_0x5ce9a8(0x183)])?N(N({},_0x511068),{'children':_0x511068[_0x5ce9a8(0x1ea)][_0x5ce9a8(0x101)](function(_0x37ac62){const _0x3edb53=_0x5ce9a8;return typeof _0x37ac62['attrs']['id']=='string'&&_0x4fe719&&_0x4fe719[_0x3edb53(0x2c0)](_0x37ac62[_0x3edb53(0x127)]['id'])>-0x1?N(N({},_0x37ac62),{'attrs':N(N({},_0x37ac62[_0x3edb53(0x127)]),{'id':_0x37ac62['attrs']['id']+_0x58596e[_0x3edb53(0x227)]})}):_0x37ac62;})}):_0x511068;}function to(){const _0x5d6c12=_0x2cf6ff;return Math[_0x5d6c12(0x114)]()[_0x5d6c12(0x23b)](0x24)[_0x5d6c12(0x3f4)](0x2,0x8);}Wt['displayName']=_0x2cf6ff(0x121);var so={'tag':_0x2cf6ff(0xea),'attrs':{'fill':_0x2cf6ff(0x32a),'viewBox':_0x2cf6ff(0x271),'width':_0x2cf6ff(0x222),'height':_0x2cf6ff(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x2cf6ff(0x2a2)},'children':[{'tag':_0x2cf6ff(0x11f),'attrs':{'stroke':_0x2cf6ff(0x23f),'d':_0x2cf6ff(0x12e),'strokeLinecap':_0x2cf6ff(0x194),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2cf6ff(0x3bf),'attrs':{},'children':[{'tag':_0x2cf6ff(0x32d),'attrs':{'id':_0x2cf6ff(0xfd)},'children':[{'tag':'path','attrs':{'fill':_0x2cf6ff(0x3db),'d':_0x2cf6ff(0x1a2)}}]}]}],'defIds':[_0x2cf6ff(0xfd)]},Bs=_0x2e9a8e(function(_0x4256bd,_0x1ccf67){const _0x5d0337=_0x2cf6ff;return _0x1c6405(Wt,Object[_0x5d0337(0x3ae)]({},_0x4256bd,{'id':'off-line-single','ref':_0x1ccf67,'icon':so}));});Bs[_0x2cf6ff(0x422)]=_0x2cf6ff(0x341);var io={'tag':_0x2cf6ff(0xea),'attrs':{'fill':'none','viewBox':_0x2cf6ff(0x330),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2cf6ff(0x203)},'children':[{'tag':_0x2cf6ff(0x11f),'attrs':{'stroke':_0x2cf6ff(0x23f),'d':_0x2cf6ff(0x3a7),'strokeLinecap':_0x2cf6ff(0x194),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2cf6ff(0x32d),'attrs':{'id':_0x2cf6ff(0x27c)},'children':[{'tag':_0x2cf6ff(0x11f),'attrs':{'fill':_0x2cf6ff(0x3db),'d':_0x2cf6ff(0x1a2),'transform':_0x2cf6ff(0x19f)}}]}]}],'defIds':[_0x2cf6ff(0x27c)]},Vs=_0x2e9a8e(function(_0x2fb375,_0x1d9df2){return _0x1c6405(Wt,Object['assign']({},_0x2fb375,{'id':'on-line-single','ref':_0x1d9df2,'icon':io}));});Vs[_0x2cf6ff(0x422)]=_0x2cf6ff(0x361);function Fs(_0x5873d6){const _0x3afb20=_0x2cf6ff;var _0x4d3d62,_0x383248,_0x573ddb='';if(typeof _0x5873d6==_0x3afb20(0x324)||typeof _0x5873d6==_0x3afb20(0x1b8))_0x573ddb+=_0x5873d6;else{if(typeof _0x5873d6==_0x3afb20(0x435)){if(Array[_0x3afb20(0x1da)](_0x5873d6)){var _0x53285c=_0x5873d6[_0x3afb20(0x183)];for(_0x4d3d62=0x0;_0x4d3d62<_0x53285c;_0x4d3d62++)_0x5873d6[_0x4d3d62]&&(_0x383248=Fs(_0x5873d6[_0x4d3d62]))&&(_0x573ddb&&(_0x573ddb+='\x20'),_0x573ddb+=_0x383248);}else{for(_0x383248 in _0x5873d6)_0x5873d6[_0x383248]&&(_0x573ddb&&(_0x573ddb+='\x20'),_0x573ddb+=_0x383248);}}}return _0x573ddb;}function no(){const _0x24fc56=_0x2cf6ff;for(var _0x53d102,_0x14e2a2,_0x2317da=0x0,_0x4881b3='',_0x2b2263=arguments[_0x24fc56(0x183)];_0x2317da<_0x2b2263;_0x2317da++)(_0x53d102=arguments[_0x2317da])&&(_0x14e2a2=Fs(_0x53d102))&&(_0x4881b3&&(_0x4881b3+='\x20'),_0x4881b3+=_0x14e2a2);return _0x4881b3;}const ro='univer-online-status-icon',oo=_0x2cf6ff(0x394),ao='univer-online-status',co=_0x2cf6ff(0xe3),ho='univer-offline',we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x209169){const _0x120c1d=_0x2cf6ff;switch(_0x209169){case w[_0x120c1d(0x26c)]:return _0x120c1d(0xdc);case w[_0x120c1d(0x10e)]:return _0x120c1d(0x40a);case w[_0x120c1d(0x22d)]:return _0x120c1d(0x44d);case w['NOT_COLLAB']:return _0x120c1d(0x431);case w[_0x120c1d(0x10f)]:case w[_0x120c1d(0x31a)]:case w[_0x120c1d(0x2ab)]:return _0x120c1d(0x282);case w[_0x120c1d(0x3b1)]:return _0x120c1d(0x14d);}}function _o(_0x542fdf){const _0x1d83ec=_0x2cf6ff,{status$:_0x1de835}=_0x542fdf,_0x32342e=_0x34de5b(_0x1de835,w['NOT_COLLAB']),_0x2d5051=_0x15d69a(_0x56c312),_0x5d58b8=_0x15d69a(ce),_0x1e8bce=_0x32342e!==w[_0x1d83ec(0x26c)],_0x5ad8fc=_0x2d5051['t'](lo(_0x32342e)),_0x167962=no(we[_0x1d83ec(0x11e)],{[we['online']]:_0x1e8bce,[we[_0x1d83ec(0x2ac)]]:!_0x1e8bce}),_0x44e9f3=_0x1e8bce?_0x3700dc[_0x1d83ec(0x25d)](Vs,null):_0x3700dc[_0x1d83ec(0x25d)](Bs,null),_0x57abac=_0x57b3b1(()=>{_0x1e8bce||_0x5d58b8['reconnect']();},[_0x1e8bce,_0x5d58b8]);function _0x5627cc(){const _0x204607=_0x1d83ec;return _0x3700dc[_0x204607(0x25d)](_0x204607(0x40e),{'className':_0x167962,'onClick':_0x57abac},_0x3700dc[_0x204607(0x25d)](_0x204607(0x40e),{'className':we['onlineStatusIcon']},_0x44e9f3),_0x3700dc[_0x204607(0x25d)](_0x204607(0x40e),{'className':we[_0x204607(0x352)]},_0x5ad8fc));}return _0x1e8bce?_0x5627cc():_0x3700dc['createElement'](_0x2b5e7f,{'title':_0x2d5051['t'](_0x1d83ec(0x123))},_0x5627cc());}var uo=Object[_0x2cf6ff(0x2d3)],fo=Object['getOwnPropertyDescriptor'],mo=(_0x22a4c4,_0x420f1f,_0x1623ff,_0x54692a)=>{const _0x798779=_0x2cf6ff;for(var _0x539bda=_0x54692a>0x1?void 0x0:_0x54692a?fo(_0x420f1f,_0x1623ff):_0x420f1f,_0x5d869a=_0x22a4c4[_0x798779(0x183)]-0x1,_0xda0e69;_0x5d869a>=0x0;_0x5d869a--)(_0xda0e69=_0x22a4c4[_0x5d869a])&&(_0x539bda=(_0x54692a?_0xda0e69(_0x420f1f,_0x1623ff,_0x539bda):_0xda0e69(_0x539bda))||_0x539bda);return _0x54692a&&_0x539bda&&uo(_0x420f1f,_0x1623ff,_0x539bda),_0x539bda;},He=(_0x3ca05c,_0x414c95)=>(_0x7dcd6e,_0x237344)=>_0x414c95(_0x7dcd6e,_0x237344,_0x3ca05c);let Ue=class extends _0x28d30b{constructor(_0x1b585e,_0x3eed65,_0x7c3690,_0x57ce7e){const _0x543bf7=_0x2cf6ff;super(),l(this,_0x543bf7(0x1e4),new _0xa8903e(w['NOT_COLLAB'])),(this['_univerInstanceService']=_0x1b585e,this[_0x543bf7(0x3c3)]=_0x3eed65,this[_0x543bf7(0x249)]=_0x7c3690,this[_0x543bf7(0x1a9)]=_0x57ce7e,this[_0x543bf7(0x31c)](),this[_0x543bf7(0x155)]());}[_0x2cf6ff(0x155)](){const _0x3cb6fe=_0x2cf6ff;this[_0x3cb6fe(0x2cd)](this[_0x3cb6fe(0xe4)][_0x3cb6fe(0x231)][_0x3cb6fe(0x379)](_0x42baee(()=>{const _0x4b96fa=_0x3cb6fe,_0x2fbd71=this[_0x4b96fa(0xe4)]['getFocusedUnit']();return _0x2fbd71?this[_0x4b96fa(0x1a9)]['getCollabEntity$'](_0x2fbd71[_0x4b96fa(0x3d4)]()):_0x1a6ece(null);}),_0x42baee(_0x1ed161=>_0x1ed161?_0x1ed161[_0x3cb6fe(0x212)]:_0x1a6ece(w[_0x3cb6fe(0x12b)])))[_0x3cb6fe(0x360)](_0x1e3cee=>{const _0x667d1b=_0x3cb6fe;this['_status$'][_0x667d1b(0x2ad)](_0x1e3cee);}));}['_initStatusComponent'](){const _0x5e9f02=_0x2cf6ff;this['disposeWithMe'](this[_0x5e9f02(0x3c3)][_0x5e9f02(0x3fa)](_0x2617bd['HEADER_MENU'],()=>_0x1be696(go({'status$':this[_0x5e9f02(0x1e4)][_0x5e9f02(0x16e)]()}),this['_injector'])));}};Ue=mo([He(0x0,_0x3a69fb),He(0x1,_0x2082c6),He(0x2,_0x11c4b2(_0x3ca714)),He(0x3,_0x11c4b2(Ae))],Ue);function go(_0x4a4a0f){const {status$:_0x24c4bc}=_0x4a4a0f;return function(){const _0x452949=_0xd63a;return _0x3700dc[_0x452949(0x25d)](_o,{'status$':_0x24c4bc});};}const Ws=_0x131476(_0x2cf6ff(0x2a0));var So=Object[_0x2cf6ff(0x2d3)],po=Object[_0x2cf6ff(0x289)],vo=(_0x38f8b4,_0x18a8b5,_0x25b6a6,_0xfb3e5)=>{for(var _0x185496=_0xfb3e5>0x1?void 0x0:_0xfb3e5?po(_0x18a8b5,_0x25b6a6):_0x18a8b5,_0x22d30e=_0x38f8b4['length']-0x1,_0x170832;_0x22d30e>=0x0;_0x22d30e--)(_0x170832=_0x38f8b4[_0x22d30e])&&(_0x185496=(_0xfb3e5?_0x170832(_0x18a8b5,_0x25b6a6,_0x185496):_0x170832(_0x185496))||_0x185496);return _0xfb3e5&&_0x185496&&So(_0x18a8b5,_0x25b6a6,_0x185496),_0x185496;},me=(_0x2c5ab2,_0x8e937)=>(_0x128134,_0x533ceb)=>_0x8e937(_0x128134,_0x533ceb,_0x2c5ab2);let qe=class extends _0x424705{constructor(_0xf3388e,_0x52c522,_0x4f478e,_0x4d3538,_0x11ba2b,_0x57f8bf){const _0x45d252=_0x2cf6ff;super(),this[_0x45d252(0x2b9)]=_0xf3388e,this[_0x45d252(0x2f8)]=_0x52c522,this['_commandService']=_0x4f478e,this['_localCacheService']=_0x4d3538,this[_0x45d252(0x2dd)]=_0x11ba2b,_0x57f8bf?_0x57f8bf==null||_0x57f8bf[_0x45d252(0x270)]()[_0x45d252(0x1ed)](()=>this[_0x45d252(0x2fb)]()):(this[_0x45d252(0x2f8)]['debug'](_0x45d252(0x35c),_0x45d252(0x366)),this[_0x45d252(0x2fb)]());}async[_0x2cf6ff(0x2fb)](){const _0x2e298d=_0x2cf6ff,_0x3ae178=this[_0x2e298d(0x2b9)][_0x2e298d(0x226)](_0x2e298d(0x400)),_0x410b2c=this[_0x2e298d(0x2b9)][_0x2e298d(0x226)](_0x2e298d(0x41e));if(!_0x3ae178||!_0x410b2c){this[_0x2e298d(0x2f8)][_0x2e298d(0x2b7)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x410b2c)){case H[_0x2e298d(0x43d)]:{const _0x1f6599=await this[_0x2e298d(0x107)](_0x3ae178);this[_0x2e298d(0x432)](_0x1f6599);break;}case H['UNIVER_DOC']:{await this[_0x2e298d(0x30d)](_0x3ae178);break;}default:{this[_0x2e298d(0x2f8)][_0x2e298d(0x36e)](_0x2e298d(0x35c),_0x2e298d(0x35b));break;}}}async[_0x2cf6ff(0x432)](_0x1a4521){const _0x2c226f=_0x2cf6ff;await this[_0x2c226f(0x3bb)](_0x1a4521),_0x1a4521[_0x2c226f(0x384)][_0x2c226f(0x379)](_0x5f0229(this['dispose$']))['subscribe'](_0x213752=>{_0x213752&&this['_updateURLWithCurrentState'](_0x213752);}),this[_0x2c226f(0x2b9)][_0x2c226f(0x2a3)][_0x2c226f(0x379)](_0x5f0229(this[_0x2c226f(0x267)]))[_0x2c226f(0x360)](()=>this[_0x2c226f(0x3bb)](_0x1a4521));}[_0x2cf6ff(0x21b)](_0x4dddc7,_0x180ef=!0x1){const _0x57bb8c=_0x2cf6ff,_0x230bb3=this[_0x57bb8c(0x2b9)]['getParam'](_0x57bb8c(0x150));_0x4dddc7['getSheetId']()!==_0x230bb3&&this[_0x57bb8c(0x2b9)][_0x57bb8c(0x272)](_0x57bb8c(0x150),_0x4dddc7[_0x57bb8c(0xe6)](),_0x180ef);}async[_0x2cf6ff(0x3bb)](_0x14d769){const _0x22f06a=_0x2cf6ff;var _0x107a8f;const _0x1a83fa=this['_urlService']['getParam'](_0x22f06a(0x150));if(!_0x1a83fa||!_0x14d769[_0x22f06a(0x1e7)](_0x1a83fa)){const _0x423d34=_0x14d769[_0x22f06a(0x245)]()[0x0],_0x350e49=_0x14d769[_0x22f06a(0x1e7)](_0x423d34);if(!_0x350e49)return;this[_0x22f06a(0x21b)](_0x350e49,!0x0),await this[_0x22f06a(0x34a)][_0x22f06a(0x3aa)](_0x1a6f76['id'],{'unitId':_0x14d769[_0x22f06a(0x3d4)](),'subUnitId':_0x423d34});return;}((_0x107a8f=_0x14d769[_0x22f06a(0x3be)]())==null?void 0x0:_0x107a8f[_0x22f06a(0xe6)]())!==_0x1a83fa&&await this[_0x22f06a(0x34a)][_0x22f06a(0x3aa)](_0x1a6f76['id'],{'unitId':_0x14d769['getUnitId'](),'subUnitId':_0x1a83fa});}async[_0x2cf6ff(0x107)](_0x11af7d){const _0x2e4fa1=_0x2cf6ff;let _0x477f75=0x0;const _0xb9ad47=await this['_localCacheService'][_0x2e4fa1(0x1b1)](_0x11af7d);return _0xb9ad47&&(_0xb9ad47[_0x2e4fa1(0x322)]||_0xb9ad47[_0x2e4fa1(0x40d)][_0x2e4fa1(0x183)]!==0x0)&&(_0x477f75=_0xb9ad47[_0x2e4fa1(0x192)]),_0x477f75===0x0&&this[_0x2e4fa1(0x2f8)]['debug'](_0x2e4fa1(0x35c),_0x2e4fa1(0xe7)),this[_0x2e4fa1(0x2dd)][_0x2e4fa1(0x1f9)](_0x11af7d,_0x477f75);}async[_0x2cf6ff(0x30d)](_0x4990a6){const _0x4ac8a8=_0x2cf6ff;let _0x507e04=0x0;const _0x46c3ec=await this[_0x4ac8a8(0x3dd)]['loadOfflineData'](_0x4990a6);return _0x46c3ec&&(_0x46c3ec['awaitingChangeset']||_0x46c3ec[_0x4ac8a8(0x40d)][_0x4ac8a8(0x183)]!==0x0)&&(_0x507e04=_0x46c3ec[_0x4ac8a8(0x192)]),_0x507e04===0x0&&this[_0x4ac8a8(0x2f8)]['debug'](_0x4ac8a8(0x35c),_0x4ac8a8(0xe7)),this['_snapshotService'][_0x4ac8a8(0x335)](_0x4990a6,_0x507e04);}};qe=vo([me(0x0,Ws),me(0x1,_0x58af89),me(0x2,_0x339bfb),me(0x3,_0x11c4b2(D)),me(0x4,_0x11c4b2(_0x3330fb)),me(0x5,_0x32a7fe(_0x157237))],qe);var Io=Object[_0x2cf6ff(0x2d3)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x87df21,_0x16d0d4,_0x19ade1,_0x3b84ef)=>{const _0x2fad74=_0x2cf6ff;for(var _0x302acc=_0x3b84ef>0x1?void 0x0:_0x3b84ef?Eo(_0x16d0d4,_0x19ade1):_0x16d0d4,_0x408ddd=_0x87df21[_0x2fad74(0x183)]-0x1,_0x16c511;_0x408ddd>=0x0;_0x408ddd--)(_0x16c511=_0x87df21[_0x408ddd])&&(_0x302acc=(_0x3b84ef?_0x16c511(_0x16d0d4,_0x19ade1,_0x302acc):_0x16c511(_0x302acc))||_0x302acc);return _0x3b84ef&&_0x302acc&&Io(_0x16d0d4,_0x19ade1,_0x302acc),_0x302acc;},fs=(_0x1fe74b,_0x59b4ea)=>(_0x30382a,_0x1ad1b4)=>_0x59b4ea(_0x30382a,_0x1ad1b4,_0x1fe74b);const bo=_0x2cf6ff(0x1e8),To='Univer';let ze=class extends _0x28d30b{constructor(_0x400bc8,_0x538823){const _0x32891c=_0x2cf6ff;super(),this[_0x32891c(0xe4)]=_0x400bc8,this['_configService']=_0x538823,this['_init']();}[_0x2cf6ff(0x2fb)](){const _0x10781e=_0x2cf6ff;this[_0x10781e(0x2cd)](this[_0x10781e(0xe4)][_0x10781e(0x231)][_0x10781e(0x360)](()=>{const _0x5eacbd=_0x10781e;var _0x3889f8;const _0x2a6449=this[_0x5eacbd(0xe4)][_0x5eacbd(0x23d)]();let _0x36edda=(_0x3889f8=this[_0x5eacbd(0x17b)][_0x5eacbd(0x30f)](bo))!=null?_0x3889f8:To;_0x2a6449 instanceof _0x18ae05&&(_0x36edda=_0x2a6449[_0x5eacbd(0x3e6)]),document[_0x5eacbd(0x2f0)]=_0x36edda;}));}};ze=Co([fs(0x0,_0x3a69fb),fs(0x1,_0x5d22a5)],ze);var Ro=Object['defineProperty'],Oo=Object[_0x2cf6ff(0x289)],Do=(_0x11d0c6,_0x22795c,_0x690e13,_0x2507ec)=>{const _0x2b1696=_0x2cf6ff;for(var _0x5ffd93=_0x2507ec>0x1?void 0x0:_0x2507ec?Oo(_0x22795c,_0x690e13):_0x22795c,_0x30bffb=_0x11d0c6[_0x2b1696(0x183)]-0x1,_0x28b30c;_0x30bffb>=0x0;_0x30bffb--)(_0x28b30c=_0x11d0c6[_0x30bffb])&&(_0x5ffd93=(_0x2507ec?_0x28b30c(_0x22795c,_0x690e13,_0x5ffd93):_0x28b30c(_0x5ffd93))||_0x5ffd93);return _0x2507ec&&_0x5ffd93&&Ro(_0x22795c,_0x690e13,_0x5ffd93),_0x5ffd93;},gt=(_0x297c39,_0x13cade)=>(_0x4061c3,_0x4a5a8b)=>_0x13cade(_0x4061c3,_0x4a5a8b,_0x297c39);let Ze=class{constructor(_0x2edd25,_0x1e788a,_0x33eed5){const _0x3aecee=_0x2cf6ff;this[_0x3aecee(0x17b)]=_0x2edd25,this[_0x3aecee(0x20c)]=_0x1e788a,this[_0x3aecee(0x3a0)]=_0x33eed5,this[_0x3aecee(0x193)]();}[_0x2cf6ff(0x193)](){const _0x2002d0=_0x2cf6ff;this[_0x2002d0(0x20c)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x10c36f,_0x5d6797)=>_0x5d6797(_0x10c36f)[_0x2002d0(0x379)](_0x20f242(async _0x16dfa1=>{const _0x2c381e=_0x2002d0,_0x32b86a=_0x16dfa1;if(_0x32b86a[_0x2c381e(0x10a)]===0x191&&window[_0x2c381e(0x371)](this[_0x2c381e(0x3a0)]['t'](_0x2c381e(0x44c)))){const _0xcc2e11=window[_0x2c381e(0x209)](window[_0x2c381e(0x421)][_0x2c381e(0x1a5)]);window[_0x2c381e(0x421)]['href']=this[_0x2c381e(0x235)]()+'?url='+_0xcc2e11;}return _0x32b86a;}))});}[_0x2cf6ff(0x235)](){const _0x91b170=_0x2cf6ff;var _0x29b45f,_0x47d953;const _0x1ce00b=this['_configService'][_0x91b170(0x30f)](wn),_0x45b4d7=this[_0x91b170(0x17b)][_0x91b170(0x30f)](L);return(_0x47d953=(_0x29b45f=_0x45b4d7==null?void 0x0:_0x45b4d7[_0x91b170(0x3e2)])!=null?_0x29b45f:_0x1ce00b)!=null?_0x47d953:Pn;}};Ze=Do([gt(0x0,_0x5d22a5),gt(0x1,_0x11c4b2(_0xc66412)),gt(0x2,_0x11c4b2(_0x56c312))],Ze);var wo=Object[_0x2cf6ff(0x2d3)],Po=Object[_0x2cf6ff(0x289)],yo=(_0x3d30ae,_0x5e459a,_0x41a7c9,_0x4f16bb)=>{for(var _0x3c1aab=_0x4f16bb>0x1?void 0x0:_0x4f16bb?Po(_0x5e459a,_0x41a7c9):_0x5e459a,_0x44598b=_0x3d30ae['length']-0x1,_0xe14146;_0x44598b>=0x0;_0x44598b--)(_0xe14146=_0x3d30ae[_0x44598b])&&(_0x3c1aab=(_0x4f16bb?_0xe14146(_0x5e459a,_0x41a7c9,_0x3c1aab):_0xe14146(_0x3c1aab))||_0x3c1aab);return _0x4f16bb&&_0x3c1aab&&wo(_0x5e459a,_0x41a7c9,_0x3c1aab),_0x3c1aab;},ms=(_0x4c16ce,_0x262e1b)=>(_0xe3a2d1,_0x1c3623)=>_0x262e1b(_0xe3a2d1,_0x1c3623,_0x4c16ce);const No=_0x2cf6ff(0x24d),Uo=_0x2cf6ff(0x246);let Pt=class extends _0x28d30b{constructor(_0x9d4b60,_0x1e975f){const _0x21cd25=_0x2cf6ff;super(),this['_HTTPService']=_0x9d4b60,this[_0x21cd25(0x17b)]=_0x1e975f,this[_0x21cd25(0x1e6)]();}[_0x2cf6ff(0x1e6)](){const _0x4437dd=_0x2cf6ff,_0x4d05a7=this;this[_0x4437dd(0x2cd)](this[_0x4437dd(0x3c6)][_0x4437dd(0x3c5)]({'priority':0x3e7,'interceptor':_0x273707({'isMatch'(_0x25df96){const _0x1017fe=_0x4437dd;var _0xd28f1f;if(_0x25df96['method']===_0x1017fe(0x201)&&((_0xd28f1f=_0x25df96[_0x1017fe(0x1f0)])!=null&&_0xd28f1f['body'])){const {objectID:_0x5445e9,objectType:_0x4f4eb5}=_0x25df96['requestParams']['body']||{};if(!_0x5445e9||_0x4f4eb5===void 0x0)return!0x1;const _0x3a8cbb=_0x4d05a7['_getAPIPrefixPath']()+'/'+_0x4f4eb5+_0x1017fe(0x237)+_0x5445e9+_0x1017fe(0x3f8);if(_0x25df96[_0x1017fe(0x1e5)]===_0x3a8cbb)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2d3343){const _0x22111b=_0x4437dd;var _0xf40633;return(_0xf40633=_0x2d3343[_0x22111b(0x1f0)])==null?void 0x0:_0xf40633[_0x22111b(0x2d1)];},'mergeParamsToRequest'(_0x12d903,_0x2582ed){const _0x4891c0=_0x4437dd,_0x44751c=_0x4d05a7['_getAPIPrefixPath']()+_0x4891c0(0x34d),_0x1bfd74=_0x12d903[_0x4891c0(0x312)]((_0x543323,_0xc39378)=>{const _0x576d1f=_0x4891c0,{unitID:_0x1479d7,objectID:_0x1dc181,objectType:_0x10316b,actions:_0x9af3cd}=_0xc39378;return _0x543323[_0x1479d7]||(_0x543323[_0x1479d7]={}),_0x543323[_0x1479d7][_0x1dc181]||(_0x543323[_0x1479d7][_0x1dc181]={'objectID':_0x1dc181,'objectType':_0x10316b,'actions':[]}),_0x543323[_0x1479d7][_0x1dc181][_0x576d1f(0x215)][_0x576d1f(0x16c)](..._0x9af3cd),_0x543323;},{}),_0x26dd81=[];for(const _0x1c3da2 in _0x1bfd74)for(const _0x4f6643 in _0x1bfd74[_0x1c3da2]){const {actions:_0xf6a4b2,objectType:_0x4102f5}=_0x1bfd74[_0x1c3da2][_0x4f6643],_0x4c01c4=[...new Set(_0xf6a4b2)];_0x26dd81[_0x4891c0(0x16c)]({'unitID':_0x1c3da2,'objectID':_0x4f6643,'objectType':_0x4102f5,'actions':_0x4c01c4});}return new _0x2fdb11('POST',_0x44751c,{'headers':_0x2582ed[_0x4891c0(0x3df)],'withCredentials':_0x2582ed[_0x4891c0(0x389)],'responseType':_0x2582ed[_0x4891c0(0x3ca)],'body':{'requests':_0x26dd81}});}},{'distributeResult'(_0x3fcf41,_0x6a1dfe){const _0x15ee31=_0x4437dd,{objectActions:_0x3e0518}=_0x3fcf41;return _0x6a1dfe[_0x15ee31(0x101)](_0x1582dc=>{const _0x4b19bf=_0x15ee31,{unitID:_0x28cdba,objectID:_0x1ffe1d,actions:_0x38f780}=_0x1582dc,_0xb079cb=_0x3e0518[_0x4b19bf(0x1fd)](_0x46d291=>_0x46d291[_0x4b19bf(0x357)]===_0x28cdba&&_0x46d291[_0x4b19bf(0x253)]===_0x1ffe1d),_0x414b6b=_0x38f780[_0x4b19bf(0x101)](_0x4be596=>_0xb079cb==null?void 0x0:_0xb079cb[_0x4b19bf(0x215)][_0x4b19bf(0x1fd)](_0x5cb252=>_0x5cb252['action']===_0x4be596))[_0x4b19bf(0x33c)](_0x4417cc=>!!_0x4417cc);return{'config':_0x1582dc,'result':{'actions':_0x414b6b,'error':_0x3fcf41[_0x4b19bf(0x36e)]}};});}})}));}[_0x2cf6ff(0xf0)](){const _0x551daa=_0x2cf6ff;var _0xf991e9,_0x448165;const _0x44fbe8=this['_configService'][_0x551daa(0x30f)](No),_0x290f6f=this[_0x551daa(0x17b)][_0x551daa(0x30f)](L);return(_0x448165=(_0xf991e9=_0x290f6f==null?void 0x0:_0x290f6f[_0x551daa(0x3ff)])!=null?_0xf991e9:_0x44fbe8)!=null?_0x448165:Uo;}async[_0x2cf6ff(0x2dc)](_0x224a75){const _0x312dac=_0x2cf6ff,_0x147fbf=this[_0x312dac(0xf0)]()+'/'+_0x224a75[_0x312dac(0x3f7)]+_0x312dac(0x30a);return(await this['_HTTPService']['post'](_0x147fbf,{'body':_0x224a75}))['body']['objectID']||'';}async['list'](_0x249abd){const _0x4755e8=_0x2cf6ff,_0x1248dd=this[_0x4755e8(0xf0)]()+_0x4755e8(0x3fb);return(await this[_0x4755e8(0x3c6)][_0x4755e8(0x236)](_0x1248dd,{'body':_0x249abd}))[_0x4755e8(0x2d1)][_0x4755e8(0x157)];}async[_0x2cf6ff(0x439)](_0x3178cd){const _0x76fc26=_0x2cf6ff,_0x26653=this[_0x76fc26(0xf0)]()+'/'+_0x3178cd['objectType']+_0x76fc26(0x237)+_0x3178cd[_0x76fc26(0x253)];await this[_0x76fc26(0x3c6)][_0x76fc26(0x18a)](_0x26653,{'body':_0x3178cd});}async['allowed'](_0x261336){const _0x1b4736=_0x2cf6ff,_0x202745=this['_getAPIPrefixPath']()+'/'+_0x261336[_0x1b4736(0x3f7)]+_0x1b4736(0x237)+_0x261336[_0x1b4736(0x253)]+_0x1b4736(0x3f8);return(await this[_0x1b4736(0x3c6)][_0x1b4736(0x236)](_0x202745,{'body':_0x261336}))['body'][_0x1b4736(0x215)];}async[_0x2cf6ff(0x424)](_0x282ba7){const _0x187084=_0x2cf6ff,_0x4d5189=this['_getAPIPrefixPath']()+_0x187084(0x34d);return(await this[_0x187084(0x3c6)][_0x187084(0x236)](_0x4d5189,{'body':{'requests':_0x282ba7}}))[_0x187084(0x2d1)]['objectActions'];}async[_0x2cf6ff(0x1ba)](_0x11b876){const _0x4339f4=_0x2cf6ff,_0x190a73=this[_0x4339f4(0xf0)]()+'/'+_0x11b876['objectType']+_0x4339f4(0x158),_0x149d3c=await this['_HTTPService']['post'](_0x190a73,{'body':_0x11b876});return{'roles':_0x149d3c[_0x4339f4(0x2d1)][_0x4339f4(0x120)],'actions':_0x149d3c[_0x4339f4(0x2d1)]['actions']};}async['deleteCollaborator'](_0x569220){const _0x51e6a1=_0x2cf6ff,_0x256980=this[_0x51e6a1(0xf0)]()+_0x51e6a1(0x2c4);await this[_0x51e6a1(0x3c6)][_0x51e6a1(0x152)](_0x256980,{'params':{'collaboratorID':_0x569220[_0x51e6a1(0x102)],'objectID':_0x569220[_0x51e6a1(0x253)],'unitID':_0x569220['unitID']}});}async[_0x2cf6ff(0x1f8)](_0x40a5eb){const _0x396ca9=_0x2cf6ff,_0x1ed61d=this[_0x396ca9(0xf0)]()+'/collaborator';await this[_0x396ca9(0x3c6)][_0x396ca9(0x1cf)](_0x1ed61d,{'body':_0x40a5eb});}async['createCollaborator'](_0x42d73b){const _0x359b67=_0x2cf6ff,_0x462149=this[_0x359b67(0xf0)]()+_0x359b67(0x2c4);await this[_0x359b67(0x3c6)][_0x359b67(0x236)](_0x462149,{'body':_0x42d73b});}async[_0x2cf6ff(0x15a)](_0x1c6edb){const _0x2ca74c=_0x2cf6ff,_0xadf2d=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x2ca74c(0x3c6)][_0x2ca74c(0x19c)](_0xadf2d,{'params':{'objectID':_0x1c6edb[_0x2ca74c(0x253)],'unitID':_0x1c6edb['unitID']}}))[_0x2ca74c(0x2d1)][_0x2ca74c(0x453)];}async[_0x2cf6ff(0xf8)](_0x586929){const _0x3c57f2=_0x2cf6ff,_0x2bb4cf=this[_0x3c57f2(0xf0)]()+_0x3c57f2(0x2c4);await this[_0x3c57f2(0x3c6)]['put'](_0x2bb4cf,{'body':_0x586929});}};Pt=yo([ms(0x0,_0x11c4b2(_0xc66412)),ms(0x1,_0x11c4b2(_0x5d22a5))],Pt);var Mo=Object[_0x2cf6ff(0x2d3)],Ao=Object['getOwnPropertyDescriptor'],Lo=(_0x8feec,_0x4d45f0,_0x423478,_0x1d8bfd)=>{const _0x1e9565=_0x2cf6ff;for(var _0x2520e2=_0x1d8bfd>0x1?void 0x0:_0x1d8bfd?Ao(_0x4d45f0,_0x423478):_0x4d45f0,_0x912503=_0x8feec[_0x1e9565(0x183)]-0x1,_0x4773cd;_0x912503>=0x0;_0x912503--)(_0x4773cd=_0x8feec[_0x912503])&&(_0x2520e2=(_0x1d8bfd?_0x4773cd(_0x4d45f0,_0x423478,_0x2520e2):_0x4773cd(_0x2520e2))||_0x2520e2);return _0x1d8bfd&&_0x2520e2&&Mo(_0x4d45f0,_0x423478,_0x2520e2),_0x2520e2;},$o=(_0x566d21,_0x1a015f)=>(_0x297ecb,_0x488457)=>_0x1a015f(_0x297ecb,_0x488457,_0x566d21);let Qe=class{constructor(_0x3067e8){const _0x4f95e9=_0x2cf6ff;this[_0x4f95e9(0x20c)]=_0x3067e8,this[_0x4f95e9(0xed)]();}['_initRequestHeader'](){const _0x34f9e1=_0x2cf6ff;this[_0x34f9e1(0x20c)][_0x34f9e1(0x3c5)]({'interceptor':(_0x4e11c7,_0x4e707b)=>{const _0x516f09=_0x34f9e1,_0x59d078=_0x4e11c7[_0x516f09(0x3df)],_0x241658=_0x40e740();return _0x241658&&_0x59d078[_0x516f09(0x138)](_0x516f09(0x1d8),_0x241658),_0x4e707b(_0x4e11c7);}});}};Qe=Lo([$o(0x0,_0x11c4b2(_0xc66412))],Qe);var jo=Object[_0x2cf6ff(0x2d3)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x155d7b,_0x565081,_0x5f109e,_0x1e0ae5)=>{const _0x27fbd9=_0x2cf6ff;for(var _0x32d0bc=_0x1e0ae5>0x1?void 0x0:_0x1e0ae5?xo(_0x565081,_0x5f109e):_0x565081,_0x1d5657=_0x155d7b[_0x27fbd9(0x183)]-0x1,_0x57dae6;_0x1d5657>=0x0;_0x1d5657--)(_0x57dae6=_0x155d7b[_0x1d5657])&&(_0x32d0bc=(_0x1e0ae5?_0x57dae6(_0x565081,_0x5f109e,_0x32d0bc):_0x57dae6(_0x32d0bc))||_0x32d0bc);return _0x1e0ae5&&_0x32d0bc&&jo(_0x565081,_0x5f109e,_0x32d0bc),_0x32d0bc;},St=(_0x3ac641,_0x5a4c41)=>(_0x2e71b6,_0x525c4c)=>_0x5a4c41(_0x2e71b6,_0x525c4c,_0x3ac641);const ko=[_0x2cf6ff(0x445),_0x2cf6ff(0x24a),_0x2cf6ff(0x380),'image/gif',_0x2cf6ff(0x42a)],Bo=0x5*0x400*0x400,Vo=_0x2cf6ff(0x318),Fo='/universer-api/stream/file/upload',Wo=_0x2cf6ff(0x256),Go=_0x2cf6ff(0x1dd);let yt=class{constructor(_0x39cd11,_0x749a3,_0x42701e){const _0xe9ffe7=_0x2cf6ff;l(this,'_waitCount',0x0),l(this,_0xe9ffe7(0x28f),new _0x5ebd47()),l(this,'change$',this[_0xe9ffe7(0x28f)]),l(this,_0xe9ffe7(0x320),new Map()),(this[_0xe9ffe7(0x20c)]=_0x39cd11,this[_0xe9ffe7(0x17b)]=_0x749a3,this[_0xe9ffe7(0xe4)]=_0x42701e);}['setWaitCount'](_0x3a336d){const _0x360113=_0x2cf6ff;this[_0x360113(0x11c)]=_0x3a336d,this[_0x360113(0x28f)][_0x360113(0x2ad)](_0x3a336d);}[_0x2cf6ff(0x321)](_0x3c8f49,_0x59eb9a){const _0x271886=_0x2cf6ff;if(_0x59eb9a===_0x48f90c['BASE64']){const _0x1fc7f0=new Image();return _0x1fc7f0['src']=_0x3c8f49,_0x1fc7f0;}return this['_imageSourceCache'][_0x271886(0x19c)](_0x3c8f49);}['addImageSourceCache'](_0x3a8096,_0x515010,_0x560336){const _0x218155=_0x2cf6ff;_0x515010===_0x48f90c[_0x218155(0x3b2)]||_0x560336==null||this[_0x218155(0x320)]['set'](_0x3a8096,_0x560336);}async[_0x2cf6ff(0x311)](_0x392dbe){const _0x3ed220=_0x2cf6ff;try{const _0x39e7c3=this[_0x3ed220(0x2fc)](this['_getSignURL'](),''+_0x392dbe),_0x128f5c=(await this['_httpService'][_0x3ed220(0x19c)](_0x39e7c3))[_0x3ed220(0x2d1)];if(_0x128f5c[_0x3ed220(0x36e)]&&_0x128f5c[_0x3ed220(0x36e)][_0x3ed220(0x342)]===Ms['OK']){const _0x5ca567=new URL(_0x128f5c[_0x3ed220(0x1e5)],this[_0x3ed220(0x1c3)]())['toString']();return Promise['resolve'](_0x5ca567);}return Promise['reject'](_0x128f5c[_0x3ed220(0x36e)]);}catch(_0x3c5233){return Promise['reject'](_0x3c5233);}}async['saveImage'](_0x1e2e53){const _0x398aca=_0x2cf6ff;let _0x382892='';if(!ko[_0x398aca(0x273)](_0x1e2e53[_0x398aca(0x41e)]))return this['_decreaseWaiting'](),Promise[_0x398aca(0x34e)](new Error(_0x139819['ERROR_IMAGE_TYPE']));if(_0x1e2e53[_0x398aca(0x387)]>Bo)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x139819[_0x398aca(0x117)]));try{const _0x3ceb99=new FormData();_0x3ceb99['append']('file',_0x1e2e53);const _0x16a1ab=this[_0x398aca(0xe4)][_0x398aca(0x23d)](),_0x1ebd42=_0x16a1ab==null?void 0x0:_0x16a1ab[_0x398aca(0x3d4)]();if(!_0x1ebd42)throw new Error('unitId\x20is\x20not\x20found');const _0x4b0557=this[_0x398aca(0x2e2)]()+_0x398aca(0xfb)+_0x1e2e53[_0x398aca(0x387)][_0x398aca(0x23b)]()+_0x398aca(0x313)+As[_0x398aca(0x211)]+'&assign='+encodeURIComponent(_0x1ebd42),_0x1d7a30=await(await fetch(_0x4b0557,{'method':_0x398aca(0x201),'body':_0x3ceb99}))[_0x398aca(0x3b8)]();if(typeof _0x1d7a30[_0x398aca(0x1c0)]!=_0x398aca(0x324))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x139819[_0x398aca(0x23c)]));_0x382892=_0x1d7a30[_0x398aca(0x1c0)];}catch{return this[_0x398aca(0x151)](),Promise['reject'](new Error(_0x139819['ERROR_IMAGE']));}return new Promise((_0x5ce8c7,_0x16d08e)=>{const _0x2f5e4b=_0x398aca,_0x55e3ca=new FileReader();_0x55e3ca['readAsDataURL'](_0x1e2e53),_0x55e3ca[_0x2f5e4b(0x21e)]=_0x39f570=>{const _0x204b14=_0x2f5e4b;var _0xe74dd8;const _0x5901a7=(_0xe74dd8=_0x39f570[_0x204b14(0x196)])==null?void 0x0:_0xe74dd8[_0x204b14(0x167)];if(_0x5901a7==null){this[_0x204b14(0x151)](),_0x16d08e(new Error(_0x139819['ERROR_IMAGE']));return;}const _0x26a546=_0x3d523e[_0x204b14(0x434)](0x6);_0x5ce8c7({'imageId':_0x26a546,'imageSourceType':_0x48f90c[_0x204b14(0x2bf)],'source':_0x382892,'base64Cache':_0x5901a7,'status':_0x139819[_0x204b14(0x1c6)]}),this[_0x204b14(0x151)]();};});}[_0x2cf6ff(0x2e2)](){const _0x21e644=_0x2cf6ff;var _0x29130e,_0xe36c3a;const _0x5ac0c1=this['_configService']['getConfig'](Vo),_0x52c027=this[_0x21e644(0x17b)][_0x21e644(0x30f)](L);return(_0xe36c3a=(_0x29130e=_0x52c027==null?void 0x0:_0x52c027['uploadFileServerUrl'])!=null?_0x29130e:_0x5ac0c1)!=null?_0xe36c3a:Fo;}[_0x2cf6ff(0x436)](){const _0x2d0744=_0x2cf6ff;var _0x1333ba,_0x162181;const _0xe40233=this[_0x2d0744(0x17b)][_0x2d0744(0x30f)](Wo),_0x3c5c6f=this[_0x2d0744(0x17b)]['getConfig'](L);return(_0x162181=(_0x1333ba=_0x3c5c6f==null?void 0x0:_0x3c5c6f[_0x2d0744(0x32c)])!=null?_0x1333ba:_0xe40233)!=null?_0x162181:Go;}[_0x2cf6ff(0x1c3)](){const _0x51cf70=_0x2cf6ff;var _0x3cee93;const _0xb32de9=this['_configService']['getConfig'](L);return(_0x3cee93=_0xb32de9==null?void 0x0:_0xb32de9[_0x51cf70(0x125)])!=null?_0x3cee93:location['origin'];}[_0x2cf6ff(0x2fc)](_0x106e89,_0x930178){const _0x316378=_0x2cf6ff;return _0x106e89[_0x316378(0x43e)](_0x316378(0x2e4),_0x930178);}[_0x2cf6ff(0x151)](){const _0x30e686=_0x2cf6ff;this[_0x30e686(0x11c)]-=0x1,this[_0x30e686(0x28f)][_0x30e686(0x2ad)](this['_waitCount']);}};yt=Ho([St(0x0,_0x11c4b2(_0xc66412)),St(0x1,_0x5d22a5),St(0x2,_0x11c4b2(_0x3a69fb))],yt);var Yo=Object[_0x2cf6ff(0x2d3)],Ko=Object['getOwnPropertyDescriptor'],Xo=(_0x247a88,_0x37c500,_0x3ea36a,_0x40182f)=>{for(var _0x406fbc=_0x40182f>0x1?void 0x0:_0x40182f?Ko(_0x37c500,_0x3ea36a):_0x37c500,_0x4c2b25=_0x247a88['length']-0x1,_0x201f45;_0x4c2b25>=0x0;_0x4c2b25--)(_0x201f45=_0x247a88[_0x4c2b25])&&(_0x406fbc=(_0x40182f?_0x201f45(_0x37c500,_0x3ea36a,_0x406fbc):_0x201f45(_0x406fbc))||_0x406fbc);return _0x40182f&&_0x406fbc&&Yo(_0x37c500,_0x3ea36a,_0x406fbc),_0x406fbc;},Pe=(_0x324d9d,_0x434e11)=>(_0xc6422d,_0x31742a)=>_0x434e11(_0xc6422d,_0x31742a,_0x324d9d);let et=class extends _0x424705{constructor(_0x4f61fb,_0x4b1b87,_0x186f34,_0x4c7b7d,_0x1920f3){const _0x58adab=_0x2cf6ff;super(),this[_0x58adab(0x249)]=_0x4f61fb,this[_0x58adab(0xe4)]=_0x4b1b87,this['_permissionService']=_0x186f34,this[_0x58adab(0x186)]=_0x4c7b7d,this[_0x58adab(0x12c)]=_0x1920f3,this[_0x58adab(0xfe)](),this[_0x58adab(0x29c)]();}[_0x2cf6ff(0x29c)](){const _0x1aaed6=_0x2cf6ff,_0x1e97f8=async _0x3967d1=>{const _0x5c83c3=_0xd63a;(await this[_0x5c83c3(0x186)][_0x5c83c3(0x393)](_0x3967d1))[_0x5c83c3(0x3d1)]['pipe'](_0x584f39(_0x472357=>_0x472357['eventID']===_0x236400['SHOULD_CLOSE_CONN']),_0x1cc51a(this[_0x5c83c3(0x267)]))[_0x5c83c3(0x360)](_0x34bd8f=>{const _0x19e595=_0x5c83c3,_0x2e5b2f=_0x34bd8f,{reason:_0x254898}=_0x2e5b2f[_0x19e595(0x406)];this[_0x19e595(0x249)][_0x19e595(0x19c)](_0x3d2cd0)['show']({'type':_0x3aebb1[_0x19e595(0x276)],'content':this[_0x19e595(0x12c)]['t']('collaboration.closeRoom')+'('+_0x254898+')'}),this[_0x19e595(0x447)]['updatePermissionPoint'](new _0x472746(_0x3967d1)['id'],!0x1),this['_collaborationSessionService'][_0x19e595(0x170)](_0x3967d1);});};_0x577df9(this[_0x1aaed6(0xe4)][_0x1aaed6(0x1fc)](_0x5ba247[_0x1aaed6(0x43d)]),this[_0x1aaed6(0xe4)][_0x1aaed6(0x1fc)](_0x5ba247[_0x1aaed6(0x359)]))['pipe'](_0x4a2a85(_0x1ba3c6=>_0x1ba3c6[_0x1aaed6(0x3d4)]()),_0x584f39(_0x395806=>!_0x5a1828(_0x395806)),_0x1cc51a(this['dispose$']))[_0x1aaed6(0x360)](_0x3877f8=>{_0x1e97f8(_0x3877f8);});}['_initUnitPermissionChange'](){const _0x54fe95=_0x2cf6ff,_0x1fafef=async _0x5cc03f=>{const _0x3f4e06=_0xd63a;(await this['_collaborationSessionService'][_0x3f4e06(0x393)](_0x5cc03f))['event$'][_0x3f4e06(0x379)](_0x584f39(_0x4c83e5=>_0x4c83e5[_0x3f4e06(0x446)]===_0x236400[_0x3f4e06(0x20e)]),_0x1cc51a(this[_0x3f4e06(0x267)]))[_0x3f4e06(0x360)](_0x263360=>{const _0x3f7a2f=_0x3f4e06,_0x23407c=_0x263360,{objectId:_0xc89242}=_0x23407c[_0x3f7a2f(0x406)],_0x4bcbc3=this[_0x3f7a2f(0x249)]['get'](_0x4a74e1);_0xc89242===_0x5cc03f?_0x4bcbc3[_0x3f7a2f(0x2c7)](_0x5cc03f):_0x4bcbc3['refreshPermission'](_0x5cc03f,_0xc89242);});};_0x577df9(this[_0x54fe95(0xe4)]['getTypeOfUnitAdded$'](_0x5ba247[_0x54fe95(0x43d)]),this[_0x54fe95(0xe4)][_0x54fe95(0x1fc)](_0x5ba247['UNIVER_DOC']))[_0x54fe95(0x379)](_0x4a2a85(_0x4be1ad=>_0x4be1ad[_0x54fe95(0x3d4)]()),_0x584f39(_0xf2b18e=>!_0x5a1828(_0xf2b18e)),_0x1cc51a(this[_0x54fe95(0x267)]))[_0x54fe95(0x360)](_0x5a5002=>{_0x1fafef(_0x5a5002);});}};et=Xo([Pe(0x0,_0x11c4b2(_0x3ca714)),Pe(0x1,_0x3a69fb),Pe(0x2,_0xbe145),Pe(0x3,_0x11c4b2(ce)),Pe(0x4,_0x11c4b2(_0x56c312))],et);var Jo=Object[_0x2cf6ff(0x2d3)],qo=Object[_0x2cf6ff(0x289)],zo=(_0xbcf35f,_0x1e8976,_0x3ab607,_0x1cf1f2)=>{const _0x156fd3=_0x2cf6ff;for(var _0x216339=_0x1cf1f2>0x1?void 0x0:_0x1cf1f2?qo(_0x1e8976,_0x3ab607):_0x1e8976,_0x1146be=_0xbcf35f[_0x156fd3(0x183)]-0x1,_0x488879;_0x1146be>=0x0;_0x1146be--)(_0x488879=_0xbcf35f[_0x1146be])&&(_0x216339=(_0x1cf1f2?_0x488879(_0x1e8976,_0x3ab607,_0x216339):_0x488879(_0x216339))||_0x216339);return _0x1cf1f2&&_0x216339&&Jo(_0x1e8976,_0x3ab607,_0x216339),_0x216339;},gs=(_0x2d4127,_0x45da74)=>(_0xcc9309,_0x37bcd9)=>_0x45da74(_0xcc9309,_0x37bcd9,_0x2d4127);let Nt=class{constructor(_0xa06d20,_0x1fc40d){const _0x538428=_0x2cf6ff;this[_0x538428(0x17b)]=_0xa06d20,this[_0x538428(0x20c)]=_0x1fc40d;}async[_0x2cf6ff(0x2a5)](_0x2c7449,_0x49ed5f){const _0x1c006e=_0x2cf6ff;var _0x4cf10f;const {unitID:_0x2ee2e8,type:_0x3db45b,revision:_0x38b65=0x0}=_0x49ed5f,_0x1da95a=this[_0x1c006e(0x316)]()+'/'+_0x3db45b+'/unit/'+_0x2ee2e8+_0x1c006e(0x188)+_0x38b65,_0x4f1c6d=(await this['_httpService'][_0x1c006e(0x19c)](_0x1da95a))[_0x1c006e(0x2d1)],_0x14ba75=(_0x4cf10f=_0x4f1c6d[_0x1c006e(0x28b)])==null?void 0x0:_0x4cf10f[_0x1c006e(0x147)];if(_0x14ba75){const _0x332511=_0x14ba75==null?void 0x0:_0x14ba75[_0x1c006e(0x1f4)],_0x499382=_0x55c956[_0x1c006e(0x27e)](_0xf37c0a(_0x332511));_0x14ba75[_0x1c006e(0x1f4)]=_0x499382,Object['entries'](_0x14ba75['sheets'])[_0x1c006e(0x198)](([,_0x4608d2])=>{const _0x5b09bd=_0x1c006e,_0x2d4383=_0x4608d2[_0x5b09bd(0x1f4)],_0x29f367=_0x55c956[_0x5b09bd(0x27e)](_0xf37c0a(_0x2d4383));_0x4608d2[_0x5b09bd(0x1f4)]=_0x29f367;});}return _0x4f1c6d;}async[_0x2cf6ff(0x40f)](_0x568886,_0x3855c9){const _0x49ed43=_0x2cf6ff,{unitID:_0x1a1ee0,type:_0x29ad67,blockID:_0x3fbdf6}=_0x3855c9,_0x283781=this[_0x49ed43(0x2b5)]()+'/'+_0x29ad67+_0x49ed43(0x204)+_0x1a1ee0+_0x49ed43(0x407)+_0x3fbdf6;return(await this['_httpService'][_0x49ed43(0x19c)](_0x283781))[_0x49ed43(0x2d1)];}async['getDeserializedSheetBlock'](_0x492c49,_0x314ace){const _0x24e3fc=_0x2cf6ff,{unitID:_0x3ea973,type:_0x4a5f32,blockID:_0x315faf}=_0x314ace,_0x13b931=this[_0x24e3fc(0x2b5)]()+_0x24e3fc(0x407)+_0x4a5f32+_0x24e3fc(0x204)+_0x3ea973+_0x24e3fc(0x407)+_0x315faf;return(await this[_0x24e3fc(0x20c)]['get'](_0x13b931))['body'];}async['fetchMissingChangesets'](_0x176a8e,_0x3c5e04){const _0x3e17d9=_0x2cf6ff,{unitID:_0x2a8dae,type:_0x340799,from:_0x122041,to:_0x28a8b3}=_0x3c5e04,_0x336832=this[_0x3e17d9(0x2b5)]()+'/'+_0x340799+_0x3e17d9(0x204)+_0x2a8dae+_0x3e17d9(0xeb)+_0x122041+'&to='+_0x28a8b3;return(await this[_0x3e17d9(0x20c)][_0x3e17d9(0x19c)](_0x336832))[_0x3e17d9(0x2d1)];}[_0x2cf6ff(0x316)](){const _0x34ece4=_0x2cf6ff;var _0x34ac5a;return(_0x34ac5a=this[_0x34ece4(0x17b)][_0x34ece4(0x30f)](mn))!=null?_0x34ac5a:this[_0x34ece4(0x2b5)]();}['_getAPIPrefix'](){const _0x465b6d=_0x2cf6ff;var _0x37927f,_0x2e381b;const _0x581c9d=this[_0x465b6d(0x17b)][_0x465b6d(0x30f)](dn),_0x21a18f=this[_0x465b6d(0x17b)][_0x465b6d(0x30f)](L);return(_0x2e381b=(_0x37927f=_0x21a18f==null?void 0x0:_0x21a18f[_0x465b6d(0x26b)])!=null?_0x37927f:_0x581c9d)!=null?_0x2e381b:fn;}async['getResourcesRequest'](_0x3bc17d,_0x147fd4){const _0x5dba0d=_0x2cf6ff,_0x529368=_0x5dba0d(0x126)+_0x147fd4[_0x5dba0d(0x41e)]+_0x5dba0d(0x204)+_0x147fd4[_0x5dba0d(0x357)]+_0x5dba0d(0x264);return(await this[_0x5dba0d(0x20c)]['get'](_0x529368,{'params':{'resourceId':JSON[_0x5dba0d(0x1ff)](_0x147fd4[_0x5dba0d(0x3c7)])}}))[_0x5dba0d(0x2d1)];}[_0x2cf6ff(0x145)](){const _0x4e90b6=_0x2cf6ff;throw new Error(_0x4e90b6(0x328));}[_0x2cf6ff(0x2e1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x112ff3=_0x2cf6ff;throw new Error(_0x112ff3(0x328));}['copyFileMeta'](){const _0x1d54af=_0x2cf6ff;throw new Error(_0x1d54af(0x328));}};Nt=zo([gs(0x0,_0x5d22a5),gs(0x1,_0x11c4b2(_0xc66412))],Nt);var Zo=Object['defineProperty'],Qo=Object[_0x2cf6ff(0x289)],ea=(_0x2762b9,_0x3fea8d,_0x37fa74,_0x1e0753)=>{const _0x1ab88e=_0x2cf6ff;for(var _0x388c98=_0x1e0753>0x1?void 0x0:_0x1e0753?Qo(_0x3fea8d,_0x37fa74):_0x3fea8d,_0x559680=_0x2762b9[_0x1ab88e(0x183)]-0x1,_0x45aa6f;_0x559680>=0x0;_0x559680--)(_0x45aa6f=_0x2762b9[_0x559680])&&(_0x388c98=(_0x1e0753?_0x45aa6f(_0x3fea8d,_0x37fa74,_0x388c98):_0x45aa6f(_0x388c98))||_0x388c98);return _0x1e0753&&_0x388c98&&Zo(_0x3fea8d,_0x37fa74,_0x388c98),_0x388c98;},ye=(_0x178f06,_0x5cdc8d)=>(_0x8bc0d2,_0x5338b8)=>_0x5cdc8d(_0x8bc0d2,_0x5338b8,_0x178f06);let Ut=class extends _0x53b8f9{constructor(_0x2ed8d3,_0x2c7c69,_0x5525d7,_0x11ff65,_0x809218){const _0x15c012=_0x2cf6ff;super(_0x2ed8d3,_0x2c7c69,_0x5525d7),this[_0x15c012(0x146)]=_0x11ff65,this[_0x15c012(0x2f8)]=_0x809218;}[_0x2cf6ff(0x2c8)](_0x1125e5,_0xce821f){const _0x4233c6=_0x2cf6ff,_0x5531d7=this[_0x4233c6(0x1c5)](_0x1125e5);if(_0x5531d7)try{const _0x38ecf6=this[_0x4233c6(0x41a)](_0x5531d7,_0xce821f);this[_0x4233c6(0x437)](_0x1125e5,_0x38ecf6);}catch(_0x11fe70){this['_logService'][_0x4233c6(0x36e)]('[CollaborationUndoRedoService]',_0x11fe70),this[_0x4233c6(0x21d)](_0x1125e5);}const _0x574087=this[_0x4233c6(0x133)](_0x1125e5);if(_0x574087)try{const _0x1e6999=this[_0x4233c6(0x41a)](_0x574087,_0xce821f);this['_substituteRedoStack'](_0x1125e5,_0x1e6999);}catch(_0x595d53){this[_0x4233c6(0x2f8)][_0x4233c6(0x36e)](_0x595d53),this[_0x4233c6(0x197)](_0x1125e5);}}[_0x2cf6ff(0x21d)](_0xef76ae){const _0xea5f78=_0x2cf6ff,_0x2c8896=this[_0xea5f78(0x1c5)](_0xef76ae);_0x2c8896&&(_0x2c8896[_0xea5f78(0x183)]=0x0,this[_0xea5f78(0x2ce)]());}[_0x2cf6ff(0x197)](_0x2fdfd5){const _0x3a4f98=_0x2cf6ff,_0x51f3d3=this['_getRedoStack'](_0x2fdfd5);_0x51f3d3&&(_0x51f3d3[_0x3a4f98(0x183)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x425ee2,_0x18422e){const _0x44b346=_0x2cf6ff;this[_0x44b346(0x1f2)][_0x44b346(0x138)](_0x425ee2,_0x18422e),this[_0x44b346(0x2ce)]();}[_0x2cf6ff(0x402)](_0x37b35a,_0x2276ce){const _0x988cf7=_0x2cf6ff;this[_0x988cf7(0x388)][_0x988cf7(0x138)](_0x37b35a,_0x2276ce),this[_0x988cf7(0x2ce)]();}['_transformStack'](_0x763a28,_0x25a54a){const _0x529c08=_0x2cf6ff,_0x159873=[];let _0x36ae8e=_0x25a54a,_0x3edf9c=_0x25a54a;for(let _0x36a734=_0x763a28[_0x529c08(0x183)]-0x1;_0x36a734>=0x0;_0x36a734--){const {unitID:_0x7b31b6,undoMutations:_0x3b9770,redoMutations:_0x4e7046}=_0x763a28[_0x36a734],_0xd0643d=this['_transformService'][_0x529c08(0x1f5)](_0x36ae8e,_0x3b9770),_0x1a9b21=this[_0x529c08(0x146)]['transformMutationsWithChangeset'](_0x3edf9c,_0x4e7046);if(_0x32c4b6(_0xd0643d)||_0x32c4b6(_0x1a9b21)){this['_logService'][_0x529c08(0x36e)](_0x529c08(0x37b),'transformStack\x20failed!',_0xd0643d,_0x1a9b21);break;}_0x36ae8e=_0xd0643d[_0x529c08(0x34c)],_0x3edf9c=_0x1a9b21[_0x529c08(0x34c)],_0x159873[_0x529c08(0x16c)]({'unitID':_0x7b31b6,'undoMutations':_0xd0643d['m2Prime'],'redoMutations':_0x1a9b21['m2Prime']});}return _0x159873['reverse']();}};Ut=ea([ye(0x0,_0x3a69fb),ye(0x1,_0x339bfb),ye(0x2,_0x448680),ye(0x3,_0x1d81ff),ye(0x4,_0x58af89)],Ut);class ta extends _0x424705{constructor(){const _0x17da81=_0x2cf6ff;super(),l(this,'urlChange$'),this['urlChange$']=_0x4f5602(window,_0x17da81(0x11d))[_0x17da81(0x379)](_0x5f0229(this[_0x17da81(0x267)]),_0xbb5cb7(0x1),_0x17764b(void 0x0));}[_0x2cf6ff(0x272)](_0x3cdc0e,_0x2138b5,_0x3acb35=!0x1){const _0x20a683=_0x2cf6ff,_0x1642cb=new URL(window[_0x20a683(0x421)][_0x20a683(0x1a5)]);_0x1642cb[_0x20a683(0x3af)][_0x20a683(0x138)](_0x3cdc0e,_0x2138b5),_0x3acb35?window[_0x20a683(0x190)]['replaceState']('','',_0x1642cb[_0x20a683(0x23b)]()):window[_0x20a683(0x190)]['pushState']('','',_0x1642cb[_0x20a683(0x23b)]());}[_0x2cf6ff(0x426)](_0x5a5189,_0x54d60b=!0x1){const _0x16b340=_0x2cf6ff,_0x182db3=new URL(window[_0x16b340(0x421)][_0x16b340(0x1a5)]);_0x182db3[_0x16b340(0x3af)][_0x16b340(0x152)](_0x5a5189),_0x54d60b?window[_0x16b340(0x190)][_0x16b340(0x221)]('','',_0x182db3['toString']()):window[_0x16b340(0x190)][_0x16b340(0x266)]('','',_0x182db3[_0x16b340(0x23b)]());}[_0x2cf6ff(0x226)](_0x4c21d5){const _0x3df9bc=_0x2cf6ff;var _0x4e8e36;return(_0x4e8e36=new URL(window['location'][_0x3df9bc(0x1a5)])[_0x3df9bc(0x3af)]['get'](_0x4c21d5))!=null?_0x4e8e36:void 0x0;}}var Gs=Object[_0x2cf6ff(0x2d3)],sa=Object[_0x2cf6ff(0x289)],ia=(_0x456a18,_0x23d51f,_0x26750d)=>_0x23d51f in _0x456a18?Gs(_0x456a18,_0x23d51f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26750d}):_0x456a18[_0x23d51f]=_0x26750d,na=(_0x584a77,_0x4effd7,_0x2ebdd3,_0x48d3b8)=>{for(var _0x4cb19f=_0x48d3b8>0x1?void 0x0:_0x48d3b8?sa(_0x4effd7,_0x2ebdd3):_0x4effd7,_0x3c5716=_0x584a77['length']-0x1,_0x57235d;_0x3c5716>=0x0;_0x3c5716--)(_0x57235d=_0x584a77[_0x3c5716])&&(_0x4cb19f=(_0x48d3b8?_0x57235d(_0x4effd7,_0x2ebdd3,_0x4cb19f):_0x57235d(_0x4cb19f))||_0x4cb19f);return _0x48d3b8&&_0x4cb19f&&Gs(_0x4effd7,_0x2ebdd3,_0x4cb19f),_0x4cb19f;},ke=(_0x57fd21,_0x4df483)=>(_0x5306ad,_0x1d606c)=>_0x4df483(_0x5306ad,_0x1d606c,_0x57fd21),ra=(_0x5278de,_0x3c9022,_0x2d3b02)=>ia(_0x5278de,_0x3c9022+'',_0x2d3b02);const oa=_0x2cf6ff(0x3c1);let Mt=class extends _0x4c33c6{constructor(_0x32c6dd=yn,_0x8a12a,_0x3422d0,_0x1a6b27,_0x339bc7){const _0x15af36=_0x2cf6ff;super(),this[_0x15af36(0x1bf)]=_0x32c6dd,this[_0x15af36(0x2f8)]=_0x8a12a,this[_0x15af36(0x1d4)]=_0x3422d0,this[_0x15af36(0x249)]=_0x1a6b27,this[_0x15af36(0x17b)]=_0x339bc7;const {..._0x1b7eb1}=this[_0x15af36(0x1bf)];this['_configService'][_0x15af36(0x3d5)](L,_0x1b7eb1);}[_0x2cf6ff(0xe8)](){const _0x2fc68c=_0x2cf6ff;this[_0x2fc68c(0x2f1)](),_0x34d48e(this['_injector'],[[pe],[qe],[et]]);}[_0x2cf6ff(0x2ed)](){const _0x1a4850=_0x2cf6ff;_0x34d48e(this[_0x1a4850(0x249)],[[ze]]);}[_0x2cf6ff(0x2d9)](){const _0x5d67e5=_0x2cf6ff;this[_0x5d67e5(0x2e6)]();}[_0x2cf6ff(0x2f1)](){const _0x4688d4=_0x2cf6ff;var _0x2ff53f,_0x3e3ea2,_0x4b75cc,_0x334470;this['_injector']['has'](_0x55c638)&&this[_0x4688d4(0x2f8)][_0x4688d4(0x36e)](_0x4688d4(0x415),_0x4688d4(0x456));let _0xd1459f=[[_0x55c638,{'useClass':Ut}],[ce],[Ft],[_0xc66412],[Ws,{'useClass':ta}],[ae],[D],[_0x3b3681],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x3e3ea2=(_0x2ff53f=this['_config'])==null?void 0x0:_0x2ff53f['socketService'])!=null?_0x3e3ea2:Et}],[_0x447502,{'useClass':_0x56ea82}],[_0x473b7c,{'useClass':Nt}],[_0x58edf4,{'useClass':Pt}],[_0x4fca93,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x4b75cc=this[_0x4688d4(0x1bf)])!=null&&_0x4b75cc[_0x4688d4(0x23e)]&&_0xd1459f[_0x4688d4(0x16c)]([tt,{'useClass':rr}]),_0xd1459f=_0x3d2851(_0xd1459f,(_0x334470=this[_0x4688d4(0x1bf)])==null?void 0x0:_0x334470[_0x4688d4(0x3cc)]),_0xd1459f[_0x4688d4(0x198)](_0x241566=>this['_injector']['add'](_0x241566)),this['_initModules']();}[_0x2cf6ff(0x2e6)](){const _0x2843f9=_0x2cf6ff;this[_0x2843f9(0x2cd)](this[_0x2843f9(0x1d4)][_0x2843f9(0x367)](_0x5ba247['UNIVER_DOC'],[Dt])),this['disposeWithMe'](this['_renderManagerService'][_0x2843f9(0x367)](_0x5ba247[_0x2843f9(0x43d)],[wt]));}[_0x2cf6ff(0x1e0)](){const _0x4d447a=_0x2cf6ff;var _0x1cbe9d,_0x17a9d8;this[_0x4d447a(0x249)][_0x4d447a(0x19c)](_0xc66412)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x41e9e4({'maxParallel':0x6})}),this[_0x4d447a(0x249)][_0x4d447a(0x19c)](Qe),(_0x1cbe9d=this[_0x4d447a(0x1bf)])!=null&&_0x1cbe9d['enableOfflineEditing']||this[_0x4d447a(0x249)]['get'](D)[_0x4d447a(0x2df)](),(_0x17a9d8=this[_0x4d447a(0x1bf)])!=null&&_0x17a9d8[_0x4d447a(0x1c9)]&&this['_injector'][_0x4d447a(0x19c)](Ze),this[_0x4d447a(0x249)][_0x4d447a(0x19c)](Ae),this[_0x4d447a(0x249)]['has'](Ue)&&this[_0x4d447a(0x249)][_0x4d447a(0x19c)](Ue);}};ra(Mt,'pluginName',oa),Mt=na([_0x1044e4(_0x19cb4a),ke(0x1,_0x58af89),ke(0x2,_0x45596d),ke(0x3,_0x11c4b2(_0x3ca714)),ke(0x4,_0x5d22a5)],Mt);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Ws as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ta as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
|
1
|
+
const _0xa6a604=_0x40a3;(function(_0x23a300,_0x14f630){const _0x5a45c0=_0x40a3,_0x8435d4=_0x23a300();while(!![]){try{const _0x5002ef=-parseInt(_0x5a45c0(0x490))/0x1*(-parseInt(_0x5a45c0(0x258))/0x2)+-parseInt(_0x5a45c0(0x21d))/0x3*(parseInt(_0x5a45c0(0x383))/0x4)+-parseInt(_0x5a45c0(0x4e2))/0x5*(parseInt(_0x5a45c0(0x44a))/0x6)+-parseInt(_0x5a45c0(0x4c8))/0x7*(-parseInt(_0x5a45c0(0x43b))/0x8)+parseInt(_0x5a45c0(0x435))/0x9*(-parseInt(_0x5a45c0(0x221))/0xa)+-parseInt(_0x5a45c0(0x2fa))/0xb+parseInt(_0x5a45c0(0x25f))/0xc;if(_0x5002ef===_0x14f630)break;else _0x8435d4['push'](_0x8435d4['shift']());}catch(_0x1c47c5){_0x8435d4['push'](_0x8435d4['shift']());}}}(_0x7251,0x9b157));var zs=Object[_0xa6a604(0x222)],Zs=(_0x58fe1b,_0x370ea1,_0x353c65)=>_0x370ea1 in _0x58fe1b?zs(_0x58fe1b,_0x370ea1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x353c65}):_0x58fe1b[_0x370ea1]=_0x353c65,l=(_0xd00f47,_0x26b715,_0x41ab4d)=>Zs(_0xd00f47,typeof _0x26b715!='symbol'?_0x26b715+'':_0x26b715,_0x41ab4d);import{createIdentifier as _0x33c554,Inject as _0x160402,Disposable as _0x252360,DisposableCollection as _0x17834d,toDisposable as _0x9a96d1,IConfigService as _0x123c7a,ILogService as _0x4e432b,UserManagerService as _0x3a34b9,UniverInstanceType as _0x39cf18,IUniverInstanceService as _0x33adea,LocaleService as _0x2f3b7b,Optional as _0x363100,RxDisposable as _0x48a1ad,Injector as _0x283cc6,Tools as _0x3c0ad5,ILocalStorageService as _0x1dabce,ICommandService as _0x5a0862,JSONX as _0x285898,CommandType as _0x58275d,IPermissionService as _0x375c1f,IUndoRedoService as _0xfe397,sequenceExecute as _0x500ae1,debounce as _0x30da7c,Rectangle as _0x7947b9,COLORS as _0x343cac,ColorKit as _0x2385c0,ThemeService as _0x3ce7f6,fromEventSubject as _0x41d8df,useDependency as _0x36782d,connectInjector as _0x1e6371,Workbook as _0x370cd1,isInternalEditorID as _0x19d0e1,LocalUndoRedoService as _0x5871c7,IContextService as _0x485aab,DependentOn as _0x571c11,Plugin as _0x56b9f6,touchDependencies as _0x5319da,IAuthzIoService as _0x523cec,mergeOverrideWithDependencies as _0x370722}from'@univerjs/core';import{Subject as _0x3daa12,merge as _0xcf1d88,takeUntil as _0x23bb2f,BehaviorSubject as _0x3d8ff6,distinctUntilChanged as _0x1dd265,fromEvent as _0x258cea,map as _0x5c23c9,shareReplay as _0x1acd58,take as _0x9fd648,of as _0x3a75ff,debounceTime as _0x147d44,filter as _0x207549,switchMap as _0x26d305,combineLatest as _0x161980,concatMap as _0x26f55c,mapTo as _0x27b06e}from'rxjs';import{map as _0x4beb38,take as _0x5f0667,filter as _0x38e98e,delay as _0x335667,throttleTime as _0x20abf3,takeUntil as _0x4c0c8e,switchMap as _0x481de6}from'rxjs/operators';import{MessageType as _0x1beabd,Tooltip as _0x4977ae}from'@univerjs/design';import{IBeforeCloseService as _0x4ac547,IMessageService as _0xd292a2,INotificationService as _0x53e404,useObservable as _0x4bb038,BuiltInUIPart as _0x3d8424,IUIPartsService as _0x438994}from'@univerjs/ui';import{HTTPService as _0x24a261,WebSocketService as _0x455b4c,MergeInterceptorFactory as _0x3b7a0e,HTTPRequest as _0x4e7fe7,IHTTPImplementation as _0x5e91e5,XHRHTTPImplementation as _0x5f0490,ThresholdInterceptorFactory as _0x1d7570}from'@univerjs/network';import{CollaborationEvent as _0x17f69c,parseChangesetToProtocol as _0x2b4f80,ISnapshotServerService as _0x4c8bab,isTransformMutationFailure as _0x4c49c5,isTransformMutationsWithChangesetSuccess as _0x5d8ed5,ITransformService as _0x5ea876,RevisionService as _0x842000,mapDocumentTypeToUniverType as _0x894d81,isTransformChangesetsSuccess as _0x42a926,CompressMutationService as _0x1f6597,parseProtocolChangeset as _0x44554a,SnapshotService as _0x1e34c6,textEncoder as _0x20a8ca,b64DecodeUnicode as _0x2b8cba,isTransformMutationsWithChangesetFailure as _0x5c865a,UniverCollaborationPlugin as _0x43d2ba}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xdd7e1e}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x5c017d,RichTextEditingMutation as _0x1aac28,SetTextSelectionsOperation as _0x188c9b,DocSkeletonManagerService as _0xae4148}from'@univerjs/docs';import{DocIMEInputManagerService as _0x57ed85,DocStateChangeManagerService as _0x1fdec3,NodePositionConvertToCursor as _0x3ae0b8,isValidRectRange as _0x22164d,NodePositionConvertToRectRange as _0x489432,TEXT_RANGE_LAYER_INDEX as _0x3284d2,SetDocZoomRatioOperation as _0x54633a}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x370067,SetSelectionsOperation as _0x5889b8,InsertSheetMutation as _0x53345b,EmptyMutation as _0x497cca,WorkbookEditablePermission as _0x1c28a6,RefRangeService as _0x397e46,EffectRefRangId as _0x1c0dca,handleIRemoveRow as _0x2e07d4,handleIRemoveCol as _0x550305,handleMoveRange as _0x588bad,handleInsertRow as _0x14236b,handleInsertRangeMoveRight as _0x4d67a8,handleInsertRangeMoveDown as _0x317d9f,handleInsertCol as _0x21b7f3,handleDeleteRangeMoveUp as _0x312c24,handleDeleteRangeMoveLeft as _0xa951f6,runRefRangeMutations as _0x335941,SetWorksheetActivateCommand as _0x3ecee7}from'@univerjs/sheets';import{IRenderManagerService as _0x25950e,Shape as _0x202b11,Rect as _0x2f5118,getColor as _0x3d1cbf,RegularPolygon as _0x500449,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2ae356,Vector2 as _0x1811c0}from'@univerjs/engine-render';import{ImageSourceType as _0x48b7bc,ImageUploadStatusType as _0x7a4b58,IImageIoService as _0x53feec}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x3b6279,serializeRangeWithSheet as _0xff349}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x2e7833,VIEWPORT_KEY as _0x34ad61,getCoordByCell as _0x35d811,getSheetObject as _0x255eaf,SheetPermissionInitController as _0x323ea7}from'@univerjs/sheets-ui';import _0x369a6b,{forwardRef as _0x39d2df,useRef as _0x3b887a,createElement as _0x52237d,useCallback as _0x2836d2}from'react';import{IRemoteInstanceService as _0x44b35c}from'@univerjs/rpc';import{getAttachHeader as _0x35d498}from'@univerjs-pro/license';const dn=_0xa6a604(0x1fb),fn=_0xa6a604(0x253),mn='SNAPSHOT_URL_KEY',Oa=_0xa6a604(0x514),gn=0x7d0,Sn=_0xa6a604(0x418),pn=_0xa6a604(0x528),vn=_0xa6a604(0x3d8),In=0x7530,Ns=_0xa6a604(0x4f9),Us=0x4e20,En=0x4e20,Cn='RETRY_CONNECTING_MAX_COUNT',bn=0x3,Tn=_0xa6a604(0x2c1),Rn=0x3e8,On=_0xa6a604(0x1e8),Dn='/universer-api/comb',wn=_0xa6a604(0x41a),Pn=_0xa6a604(0x271);var Ms=(_0x3f9b50=>(_0x3f9b50[_0x3f9b50[_0xa6a604(0x308)]=0x0]=_0xa6a604(0x308),_0x3f9b50[_0x3f9b50['OK']=0x1]='OK',_0x3f9b50[_0x3f9b50['INTERNAL_ERROR']=0x2]=_0xa6a604(0x4e8),_0x3f9b50[_0x3f9b50[_0xa6a604(0x47e)]=0x3]='PERMISSION_DENIED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x27e)]=0x4]=_0xa6a604(0x27e),_0x3f9b50[_0x3f9b50[_0xa6a604(0x49c)]=0x5]=_0xa6a604(0x49c),_0x3f9b50[_0x3f9b50[_0xa6a604(0x443)]=0x6]=_0xa6a604(0x443),_0x3f9b50[_0x3f9b50[_0xa6a604(0x4e9)]=0x7]='INVALID_ARGUMENT',_0x3f9b50[_0x3f9b50[_0xa6a604(0x2a9)]=0x8]=_0xa6a604(0x2a9),_0x3f9b50[_0x3f9b50[_0xa6a604(0x53d)]=0x9]=_0xa6a604(0x53d),_0x3f9b50[_0x3f9b50[_0xa6a604(0x2d0)]=0x1389]=_0xa6a604(0x2d0),_0x3f9b50[_0x3f9b50[_0xa6a604(0x4b8)]=0x1771]=_0xa6a604(0x4b8),_0x3f9b50[_0x3f9b50['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xa6a604(0x529),_0x3f9b50[_0x3f9b50['APPLY_REJECT']=0x1b59]=_0xa6a604(0x25d),_0x3f9b50[_0x3f9b50[_0xa6a604(0x34c)]=0x1b5a]=_0xa6a604(0x34c),_0x3f9b50[_0x3f9b50[_0xa6a604(0x3fa)]=0x1b5b]=_0xa6a604(0x3fa),_0x3f9b50[_0x3f9b50[_0xa6a604(0x2fc)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x405)]=0x1f41]=_0xa6a604(0x405),_0x3f9b50[_0x3f9b50[_0xa6a604(0x259)]=0x2329]=_0xa6a604(0x259),_0x3f9b50[_0x3f9b50['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xa6a604(0x264),_0x3f9b50[_0x3f9b50[_0xa6a604(0x305)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x3f2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3f9b50[_0x3f9b50[_0xa6a604(0x4b9)]=0x232d]=_0xa6a604(0x4b9),_0x3f9b50[_0x3f9b50[_0xa6a604(0x51a)]=0x2711]=_0xa6a604(0x51a),_0x3f9b50[_0x3f9b50[_0xa6a604(0x30c)]=0x2712]=_0xa6a604(0x30c),_0x3f9b50[_0x3f9b50['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xa6a604(0x4c9),_0x3f9b50[_0x3f9b50[_0xa6a604(0x3e5)]=0x2714]=_0xa6a604(0x3e5),_0x3f9b50[_0x3f9b50[_0xa6a604(0x40c)]=-0x1]=_0xa6a604(0x40c),_0x3f9b50))(Ms||{}),H=(_0x359c6c=>(_0x359c6c[_0x359c6c[_0xa6a604(0x2f9)]=0x0]=_0xa6a604(0x2f9),_0x359c6c[_0x359c6c['UNIVER_DOC']=0x1]=_0xa6a604(0x1eb),_0x359c6c[_0x359c6c['UNIVER_SHEET']=0x2]=_0xa6a604(0x48b),_0x359c6c[_0x359c6c[_0xa6a604(0x4a7)]=0x3]=_0xa6a604(0x4a7),_0x359c6c[_0x359c6c[_0xa6a604(0x26b)]=0x4]=_0xa6a604(0x26b),_0x359c6c[_0x359c6c[_0xa6a604(0x40c)]=-0x1]=_0xa6a604(0x40c),_0x359c6c))(H||{}),I=(_0x30d486=>(_0x30d486[_0x30d486[_0xa6a604(0x30b)]=0x0]=_0xa6a604(0x30b),_0x30d486[_0x30d486['HELLO']=0x1]=_0xa6a604(0x35f),_0x30d486[_0x30d486[_0xa6a604(0x3ee)]=0x2]=_0xa6a604(0x3ee),_0x30d486[_0x30d486['LEAVE']=0x3]='LEAVE',_0x30d486[_0x30d486[_0xa6a604(0x509)]=0x4]=_0xa6a604(0x509),_0x30d486[_0x30d486[_0xa6a604(0x3ab)]=0x5]=_0xa6a604(0x3ab),_0x30d486[_0x30d486[_0xa6a604(0x3e0)]=0x6]=_0xa6a604(0x3e0),_0x30d486[_0x30d486[_0xa6a604(0x40c)]=-0x1]=_0xa6a604(0x40c),_0x30d486))(I||{}),kt=(_0x281ea2=>(_0x281ea2[_0x281ea2[_0xa6a604(0x227)]=0x0]=_0xa6a604(0x227),_0x281ea2[_0x281ea2['OK']=0x1]='OK',_0x281ea2[_0x281ea2[_0xa6a604(0x441)]=0x2]=_0xa6a604(0x441),_0x281ea2[_0x281ea2['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x281ea2))(kt||{}),As=(_0x1aa69d=>(_0x1aa69d[_0x1aa69d[_0xa6a604(0x2b4)]=0x0]=_0xa6a604(0x2b4),_0x1aa69d[_0x1aa69d['HttpImport']=0x1]=_0xa6a604(0x278),_0x1aa69d[_0x1aa69d[_0xa6a604(0x506)]=0x2]='HttpExport',_0x1aa69d[_0x1aa69d[_0xa6a604(0x371)]=0x3]='UnitEmbedded',_0x1aa69d[_0x1aa69d['UnitSnapshot']=0x4]='UnitSnapshot',_0x1aa69d[_0x1aa69d['UNRECOGNIZED']=-0x1]=_0xa6a604(0x40c),_0x1aa69d))(As||{});const L=_0xa6a604(0x459),yn={};function Nn(_0x152ad6){const _0x4c92a5=_0xa6a604;var _0x2efcc3,_0x8c787d,_0x535ed1,_0x97e693;const _0x504eb8=_0x152ad6[_0x4c92a5(0x525)],_0x1bad81=JSON['parse'](_0x504eb8);switch(_0x1bad81[_0x4c92a5(0x47b)]){case I[_0x4c92a5(0x3ab)]:case I[_0x4c92a5(0x35f)]:{const _0x424618=_0x1bad81[_0x4c92a5(0x297)];return{..._0x1bad81,'data':_0x424618,'cmd':_0x1bad81['cmd']};}case I[_0x4c92a5(0x3ee)]:{const _0x57c6ff=_0x1bad81['joinRsp'];return{..._0x1bad81,'data':_0x57c6ff,'cmd':_0x1bad81[_0x4c92a5(0x47b)]};}case I[_0x4c92a5(0x3e0)]:{const _0x56bbe0=_0x1bad81[_0x4c92a5(0x46d)];switch(_0x56bbe0[_0x4c92a5(0x33b)]){case _0x17f69c[_0x4c92a5(0x2f0)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x2efcc3=_0x56bbe0[_0x4c92a5(0x423)])==null?void 0x0:_0x2efcc3['cs']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x4a4)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x8c787d=_0x56bbe0[_0x4c92a5(0x33d)])==null?void 0x0:_0x8c787d['cs']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x427)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x535ed1=_0x56bbe0['newCsEvent'])==null?void 0x0:_0x535ed1['cs']},'cmd':_0x1bad81['cmd']};case _0x17f69c[_0x4c92a5(0x2d4)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':(_0x97e693=_0x56bbe0[_0x4c92a5(0x25e)])==null?void 0x0:_0x97e693['cs']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c['UPDATE_CURSOR']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x419)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x38a)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x2f2)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x356)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x537)]},'cmd':_0x1bad81['cmd']};case _0x17f69c['LIVESHARE_NEW_HOST']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x376)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c['LIVESHARE_FETCH_OPERATIONS']:case _0x17f69c['LIVESHARE_OPERATION']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x284)]},'cmd':_0x1bad81['cmd']};case _0x17f69c[_0x4c92a5(0x32b)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x376)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x4e1)]:return{..._0x1bad81,'data':_0x56bbe0,'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x2fe)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0['commentUpdateEvent']},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c['UPDATE_PERMISSION_OBJ']:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0[_0x4c92a5(0x2ec)]},'cmd':_0x1bad81[_0x4c92a5(0x47b)]};case _0x17f69c[_0x4c92a5(0x4db)]:return{..._0x1bad81,'data':{..._0x56bbe0,'data':_0x56bbe0['shouldCloseConn']},'cmd':_0x1bad81['cmd']};default:return _0x1bad81;}}default:return _0x1bad81;}}function Un(_0x1322d2){const _0x11b8b6=_0xa6a604;switch(_0x1322d2[_0x11b8b6(0x47b)]){case I['HEARTBEAT']:case I[_0x11b8b6(0x35f)]:return JSON[_0x11b8b6(0x45c)]({'cmd':_0x1322d2['cmd'],'routeKey':_0x1322d2[_0x11b8b6(0x399)]});case I[_0x11b8b6(0x509)]:{let _0xb923f6;switch(_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x33b)]){case _0x17f69c['UPDATE_CURSOR']:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x42b)],'updateCursorEvent':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c['USERS_LEAVE']:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x356)],'leaveEvent':_0x1322d2['data'][_0x11b8b6(0x525)]};break;}case _0x17f69c[_0x11b8b6(0x38a)]:{_0xb923f6={'eventID':_0x17f69c['USERS_ENTER'],'joinEvent':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c[_0x11b8b6(0x3e6)]:{_0xb923f6={'eventID':_0x17f69c['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1322d2['data']['data']};break;}case _0x17f69c[_0x11b8b6(0x3bf)]:{_0xb923f6={'eventID':_0x17f69c['LIVESHARE_OPERATION'],'liveShareOperation':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c['LIVESHARE_TERMINATE']:{_0xb923f6={'eventID':_0x17f69c['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x525)]};break;}case _0x17f69c[_0x11b8b6(0x547)]:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x547)],'liveShareRequestHost':_0x1322d2[_0x11b8b6(0x525)]['data']};break;}case _0x17f69c[_0x11b8b6(0x4b6)]:{_0xb923f6={'eventID':_0x17f69c[_0x11b8b6(0x4b6)]};break;}default:_0xb923f6={'eventID':_0x1322d2[_0x11b8b6(0x525)][_0x11b8b6(0x33b)]};}return JSON[_0x11b8b6(0x45c)]({'cmd':_0x1322d2[_0x11b8b6(0x47b)],'routeKey':_0x1322d2[_0x11b8b6(0x399)],'collaMsg':_0xb923f6});}case I[_0x11b8b6(0x3ee)]:return JSON['stringify']({'cmd':_0x1322d2[_0x11b8b6(0x47b)],'routeKey':_0x1322d2['routeKey'],'joinReq':_0x1322d2['data']});case I['LEAVE']:return JSON[_0x11b8b6(0x45c)]({'cmd':_0x1322d2['cmd'],'routeKey':_0x1322d2[_0x11b8b6(0x399)],'leaveReq':_0x1322d2[_0x11b8b6(0x525)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object[_0xa6a604(0x222)],An=Object[_0xa6a604(0x4ce)],Ln=(_0xb034b3,_0x4b29c8,_0x1ffd17,_0x4f4dd0)=>{const _0x28c22a=_0xa6a604;for(var _0x3b9481=_0x4f4dd0>0x1?void 0x0:_0x4f4dd0?An(_0x4b29c8,_0x1ffd17):_0x4b29c8,_0x3fcfe7=_0xb034b3[_0x28c22a(0x391)]-0x1,_0x32301f;_0x3fcfe7>=0x0;_0x3fcfe7--)(_0x32301f=_0xb034b3[_0x3fcfe7])&&(_0x3b9481=(_0x4f4dd0?_0x32301f(_0x4b29c8,_0x1ffd17,_0x3b9481):_0x32301f(_0x3b9481))||_0x3b9481);return _0x4f4dd0&&_0x3b9481&&Mn(_0x4b29c8,_0x1ffd17,_0x3b9481),_0x3b9481;},Re=(_0x55f05e,_0x3c26e7)=>(_0x333a66,_0x200d08)=>_0x3c26e7(_0x333a66,_0x200d08,_0x55f05e);const Ls=_0x33c554(_0xa6a604(0x40a));function $n(_0x46e8c1,_0xbc750e,_0x332974){const _0x161ef1=_0xa6a604;return _0x46e8c1+'/'+_0xbc750e+_0x161ef1(0x34e)+_0x332974+_0x161ef1(0x37e);}let Et=class extends _0x252360{constructor(_0x5e84c0,_0x3ce42f,_0xa13b5,_0x2b51fe,_0x56ec15){const _0x55507a=_0xa6a604;super(),this[_0x55507a(0x430)]=_0x5e84c0,this[_0x55507a(0x4cf)]=_0x3ce42f,this['_configService']=_0xa13b5,this[_0x55507a(0x493)]=_0x2b51fe,this[_0x55507a(0x45a)]=_0x56ec15;}[_0xa6a604(0x501)](_0x59c43e){const _0x8b72b7=_0xa6a604,_0x55d1fd=this[_0x8b72b7(0x4cf)][_0x8b72b7(0x501)](_0x59c43e);if(!_0x55d1fd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x466c73=new _0x17834d(),_0x182b71=new _0x3daa12();_0x466c73[_0x8b72b7(0x1e7)](_0x55d1fd[_0x8b72b7(0x1e9)][_0x8b72b7(0x426)](_0x25aea8=>_0x182b71[_0x8b72b7(0x480)](_0x25aea8))),_0x466c73[_0x8b72b7(0x1e7)](_0x9a96d1(()=>_0x182b71['complete']()));const _0x434547=new _0x3daa12();_0x466c73['add'](_0x55d1fd[_0x8b72b7(0x280)]['subscribe'](_0x65b579=>_0x434547[_0x8b72b7(0x480)](_0x65b579))),_0x466c73[_0x8b72b7(0x1e7)](_0x9a96d1(()=>_0x434547['complete']()));const _0x5a3967=new _0x3daa12();_0x466c73[_0x8b72b7(0x1e7)](_0x55d1fd[_0x8b72b7(0x502)][_0x8b72b7(0x426)](_0x237049=>{const _0x3bcaec=Nn(_0x237049);_0x5a3967['next'](_0x3bcaec);})),_0x466c73['add'](_0x9a96d1(()=>_0x5a3967[_0x8b72b7(0x52b)]()));let _0x5d00bf;const _0x2dd055=()=>{const _0x107f25=_0x8b72b7;_0x434547[_0x107f25(0x480)](new Event(_0x107f25(0x531))),_0x182b71[_0x107f25(0x480)](new CloseEvent(_0x107f25(0x531))),_0x5d00bf[_0x107f25(0x4b2)]();};return _0x5d00bf={'memberID':'','close$':_0x182b71[_0x8b72b7(0x294)](),'error$':_0x434547['asObservable'](),'open$':_0x55d1fd[_0x8b72b7(0x2fd)],'message$':_0x5a3967['asObservable'](),'send':_0x2e9c69=>{const _0x418189=_0x8b72b7;if(_0x2e9c69[_0x418189(0x47b)]===I[_0x418189(0x509)]){if(_0x2e9c69['data'][_0x418189(0x33b)]===_0x17f69c[_0x418189(0x54d)]){this[_0x418189(0x39f)](_0x5d00bf,_0x2e9c69[_0x418189(0x525)])[_0x418189(0x4c3)](_0x4457f3=>{const _0x3bf6f9=_0x418189;this['_logService'][_0x3bf6f9(0x3f7)](_0x4457f3),_0x2dd055();});return;}if(_0x2e9c69[_0x418189(0x525)]['eventID']===_0x17f69c['FETCH_MISSING']){const _0x2ddb28=_0x2e9c69[_0x418189(0x525)];this['_fetchMissChangesets'](_0x2ddb28)[_0x418189(0x232)](_0x32f064=>{const _0x4602a7=_0x418189;_0x5a3967[_0x4602a7(0x480)]({'cmd':I[_0x4602a7(0x3e0)],'code':kt['OK'],'routeKey':_0x2ddb28[_0x4602a7(0x525)][_0x4602a7(0x1ec)],'routeType':'','data':{'eventID':_0x17f69c[_0x4602a7(0x49f)],'data':{'changesets':_0x32f064}}});})[_0x418189(0x4c3)](_0x52530b=>{const _0x266ead=_0x418189;this['_logService'][_0x266ead(0x3f7)](_0x52530b),_0x2dd055();});return;}}_0x55d1fd[_0x418189(0x233)](Un(_0x2e9c69));},'close':()=>{const _0x1ff618=_0x8b72b7;_0x55d1fd[_0x1ff618(0x4b2)](),_0x466c73[_0x1ff618(0x4f4)]();}},_0x5d00bf;}async['_submitChangeset'](_0x3a1dd3,_0x3b7483){const _0x21abe0=_0xa6a604;var _0x210bab,_0x3dd64b;const {unitType:_0x40ce91,unitID:_0x501569,changeset:_0x48f928}=_0x3b7483[_0x21abe0(0x525)],_0x29191d={'unitID':_0x501569,'memberID':_0x3a1dd3[_0x21abe0(0x50c)],'type':_0x40ce91,'changeset':_0x2b4f80(_0x48f928)},_0x5136d6=this[_0x21abe0(0x325)][_0x21abe0(0x4e5)](On),_0x327545=this[_0x21abe0(0x325)][_0x21abe0(0x4e5)](L),_0x37b5a2=$n((_0x3dd64b=(_0x210bab=_0x327545==null?void 0x0:_0x327545[_0x21abe0(0x3c5)])!=null?_0x210bab:_0x5136d6)!=null?_0x3dd64b:Dn,_0x40ce91,_0x501569);try{await this[_0x21abe0(0x430)][_0x21abe0(0x216)](_0x37b5a2,{'body':_0x29191d});}catch(_0x97353b){throw this[_0x21abe0(0x493)][_0x21abe0(0x3f7)](_0x21abe0(0x4d0),_0x21abe0(0x23d)),_0x97353b;}}async['_fetchMissChangesets'](_0x38eb00){const _0x3a66a0=_0xa6a604,{unitID:_0x49c658,from:_0xe66b06,to:_0x1f35ed,unitType:_0x4396c7}=_0x38eb00['data'];return(await this[_0x3a66a0(0x45a)][_0x3a66a0(0x279)]({'metadata':void 0x0},{'unitID':_0x49c658,'type':_0x4396c7,'from':_0xe66b06,'to':_0x1f35ed}))[_0x3a66a0(0x51e)];}};Et=Ln([Re(0x0,_0x160402(_0x24a261)),Re(0x1,_0x160402(_0x455b4c)),Re(0x2,_0x123c7a),Re(0x3,_0x4e432b),Re(0x4,_0x4c8bab)],Et);const jn=_0xa6a604(0x367);function xn(_0x2ae710){const _0x5a9bf0=_0xa6a604;return JSON[_0x5a9bf0(0x45c)](_0x2ae710)['length'];}class $s{constructor(){const _0xa803ca=_0xa6a604;l(this,_0xa803ca(0x41c),new _0x3daa12()),l(this,'commentUpdate$',this[_0xa803ca(0x41c)][_0xa803ca(0x294)]());}['onCommentUpdate'](_0x3f6034){const _0x116dff=_0xa6a604;this[_0x116dff(0x41c)][_0x116dff(0x480)](_0x3f6034);}}var Hn=Object['defineProperty'],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x5daa40,_0x5829ab,_0xc071e3,_0x2cebed)=>{const _0x3130a7=_0xa6a604;for(var _0x2cdb57=_0x2cebed>0x1?void 0x0:_0x2cebed?kn(_0x5829ab,_0xc071e3):_0x5829ab,_0x3aac41=_0x5daa40[_0x3130a7(0x391)]-0x1,_0x2e2b22;_0x3aac41>=0x0;_0x3aac41--)(_0x2e2b22=_0x5daa40[_0x3aac41])&&(_0x2cdb57=(_0x2cebed?_0x2e2b22(_0x5829ab,_0xc071e3,_0x2cdb57):_0x2e2b22(_0x2cdb57))||_0x2cdb57);return _0x2cebed&&_0x2cdb57&&Hn(_0x5829ab,_0xc071e3,_0x2cdb57),_0x2cdb57;},rs=(_0x5cfc5c,_0x402a35)=>(_0x485ef9,_0x322212)=>_0x402a35(_0x485ef9,_0x322212,_0x5cfc5c);let ae=class extends _0x252360{constructor(_0x49dc19,_0x43190b){const _0x71e1cc=_0xa6a604;super(),l(this,_0x71e1cc(0x31c),new Map()),(this[_0x71e1cc(0x1fd)]=_0x49dc19,this[_0x71e1cc(0x224)]=_0x43190b,this['disposeWithMe'](_0x9a96d1(_0xcf1d88(this[_0x71e1cc(0x1fd)]['getTypeOfUnitDisposed$'](_0x39cf18[_0x71e1cc(0x48b)])['pipe'](_0x4beb38(_0x4bb18a=>_0x4bb18a[_0x71e1cc(0x203)]())),this[_0x71e1cc(0x1fd)][_0x71e1cc(0x44e)](_0x39cf18[_0x71e1cc(0x1eb)])[_0x71e1cc(0x3b6)](_0x4beb38(_0x38b15b=>_0x38b15b['getUnitId']())),this[_0x71e1cc(0x1fd)][_0x71e1cc(0x44e)](_0x39cf18[_0x71e1cc(0x4a7)])[_0x71e1cc(0x3b6)](_0x4beb38(_0x50ea9a=>_0x50ea9a['getUnitId']())))['subscribe'](_0x599928=>this[_0x71e1cc(0x2d6)](_0x599928)))));}[_0xa6a604(0x3aa)](_0x47eefb){const _0x293b44=_0xa6a604;this['_userManagerService'][_0x293b44(0x3aa)](_0x47eefb);}['getCurrentUser'](){const _0x2ea6e2=_0xa6a604;return this[_0x2ea6e2(0x224)][_0x2ea6e2(0x53a)]();}[_0xa6a604(0x512)](_0x1cf317,_0x292808){const _0x133bb2=_0xa6a604;let _0x26c6e5=this[_0x133bb2(0x31c)][_0x133bb2(0x504)](_0x1cf317);_0x26c6e5||(_0x26c6e5=new Vn(),this[_0x133bb2(0x31c)][_0x133bb2(0x455)](_0x1cf317,_0x26c6e5)),_0x26c6e5[_0x133bb2(0x512)](_0x292808);}[_0xa6a604(0x4da)](_0x3a147d,_0x351648){const _0xb7505f=_0xa6a604,_0x312871=this[_0xb7505f(0x31c)][_0xb7505f(0x504)](_0x3a147d);_0x312871&&_0x312871[_0xb7505f(0x4da)](_0x351648);}['getRoom'](_0x306275){const _0x40a6e2=_0xa6a604;return this[_0x40a6e2(0x31c)][_0x40a6e2(0x504)](_0x306275);}[_0xa6a604(0x4d6)](_0x5c085c,_0x53bc51){const _0x26014f=_0xa6a604,_0x5e75e8=this['_roomMembers'][_0x26014f(0x504)](_0x5c085c);if(_0x5e75e8)return _0x5e75e8[_0x26014f(0x4d6)](_0x53bc51);}[_0xa6a604(0x2d6)](_0xc89f82){const _0xf98d3f=_0xa6a604,_0x419c8a=this[_0xf98d3f(0x31c)][_0xf98d3f(0x504)](_0xc89f82);_0x419c8a&&(_0x419c8a['dispose'](),this[_0xf98d3f(0x31c)][_0xf98d3f(0x3fe)](_0xc89f82));}['dispose'](){const _0x2af5d9=_0xa6a604;this['_roomMembers'][_0x2af5d9(0x213)](_0x560995=>_0x560995['dispose']()),this[_0x2af5d9(0x31c)][_0x2af5d9(0x215)]();}};ae=Bn([rs(0x0,_0x33adea),rs(0x1,_0x160402(_0x3a34b9))],ae);class Vn extends _0x252360{constructor(){const _0x28d906=_0xa6a604;super(...arguments),l(this,_0x28d906(0x451),new Map());}[_0xa6a604(0x4f4)](){const _0x2cd573=_0xa6a604;this[_0x2cd573(0x451)][_0x2cd573(0x215)]();}[_0xa6a604(0x512)](_0x2993c3){const _0x1aee85=_0xa6a604;this['_members'][_0x1aee85(0x455)](_0x2993c3[_0x1aee85(0x50c)],_0x2993c3);}['removeMember'](_0x3188fa){const _0x32230e=_0xa6a604;this[_0x32230e(0x451)][_0x32230e(0x3fe)](_0x3188fa);}[_0xa6a604(0x4d6)](_0x2ed7fd){const _0x51d676=_0xa6a604;return this[_0x51d676(0x451)][_0x51d676(0x504)](_0x2ed7fd);}}var Fn=Object['defineProperty'],Wn=Object[_0xa6a604(0x4ce)],Gn=(_0x31c5a7,_0x14b19d,_0x23866a,_0x4b9272)=>{const _0x3a320c=_0xa6a604;for(var _0x39253a=_0x4b9272>0x1?void 0x0:_0x4b9272?Wn(_0x14b19d,_0x23866a):_0x14b19d,_0x3b2f71=_0x31c5a7[_0x3a320c(0x391)]-0x1,_0x3d4d37;_0x3b2f71>=0x0;_0x3b2f71--)(_0x3d4d37=_0x31c5a7[_0x3b2f71])&&(_0x39253a=(_0x4b9272?_0x3d4d37(_0x14b19d,_0x23866a,_0x39253a):_0x3d4d37(_0x39253a))||_0x39253a);return _0x4b9272&&_0x39253a&&Fn(_0x14b19d,_0x23866a,_0x39253a),_0x39253a;},J=(_0xb56d00,_0x357254)=>(_0xf51a0e,_0x282bf3)=>_0x357254(_0xf51a0e,_0x282bf3,_0xb56d00),G=(_0x675fec=>(_0x675fec[_0x675fec['IDLE']=0x0]='IDLE',_0x675fec[_0x675fec[_0xa6a604(0x1e4)]=0x1]='JOINING',_0x675fec[_0x675fec['OFFLINE']=0x2]=_0xa6a604(0x210),_0x675fec[_0x675fec['ONLINE']=0x3]=_0xa6a604(0x3a2),_0x675fec))(G||{});let Ct=class extends _0x48a1ad{constructor(_0x344d40,_0x11ee0e,_0x48c477,_0x10b94b,_0x3a308a,_0x20fc36,_0xff4ebb,_0x589e1e,_0xf97857,_0x26a9f7){const _0x26b32e=_0xa6a604;super(),l(this,_0x26b32e(0x520),new _0x3d8ff6(0x0)),l(this,_0x26b32e(0x304),this[_0x26b32e(0x520)][_0x26b32e(0x294)]()),l(this,_0x26b32e(0x27b),new _0x3daa12()),l(this,_0x26b32e(0x2bc),this[_0x26b32e(0x27b)][_0x26b32e(0x294)]()),l(this,'_socket'),l(this,_0x26b32e(0x290)),l(this,_0x26b32e(0x4cb)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x26b32e(0x22e),null),(this[_0x26b32e(0x3e7)]=_0x344d40,this[_0x26b32e(0x493)]=_0x48c477,this[_0x26b32e(0x27a)]=_0x10b94b,this[_0x26b32e(0x44c)]=_0x3a308a,this[_0x26b32e(0x325)]=_0x20fc36,this[_0x26b32e(0x247)]=_0xff4ebb,this['_memberService']=_0x589e1e,this[_0x26b32e(0x22d)]=_0xf97857,this[_0x26b32e(0x254)]=_0x26a9f7,this[_0x26b32e(0x3e3)]=!!this['_telemetryService'],_0x11ee0e[_0x26b32e(0x3b6)](_0x23bb2f(this[_0x26b32e(0x424)]))[_0x26b32e(0x426)](_0x37e60e=>{const _0x1a0b56=_0x26b32e;var _0x13c9e6;typeof _0x37e60e>'u'||(this['_socket']=_0x37e60e,_0x37e60e?(this[_0x1a0b56(0x28d)](_0x37e60e),this[_0x1a0b56(0x290)]=_0x37e60e[_0x1a0b56(0x502)][_0x1a0b56(0x426)](_0x3198af=>{const _0x22c27b=_0x1a0b56;_0x3198af[_0x22c27b(0x399)]===this['_unitID']&&this[_0x22c27b(0x3de)](_0x3198af);})):(this[_0x1a0b56(0x37f)](),this[_0x1a0b56(0x520)]['next'](0x2),(_0x13c9e6=this[_0x1a0b56(0x290)])==null||_0x13c9e6[_0x1a0b56(0x442)](),this[_0x1a0b56(0x290)]=null));}),this[_0x26b32e(0x4f3)](this[_0x26b32e(0x27a)][_0x26b32e(0x292)](()=>{const _0x1fe29c=_0x26b32e;var _0x42a112;(_0x42a112=this[_0x1fe29c(0x31a)])==null||_0x42a112[_0x1fe29c(0x233)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0xa6a604(0x4c2)](){const _0x3dcbc2=_0xa6a604;return this[_0x3dcbc2(0x520)][_0x3dcbc2(0x2a2)]();}[_0xa6a604(0x2c6)](){const _0x241d73=_0xa6a604;var _0x3103be,_0x4c4151;return(_0x4c4151=(_0x3103be=this['_socket'])==null?void 0x0:_0x3103be[_0x241d73(0x50c)])!=null?_0x4c4151:null;}[_0xa6a604(0x4f4)](){const _0xe7ff7a=_0xa6a604;super[_0xe7ff7a(0x4f4)](),this[_0xe7ff7a(0x424)][_0xe7ff7a(0x480)](),this[_0xe7ff7a(0x424)]['complete']();}[_0xa6a604(0x4b2)](){const _0x3fc724=_0xa6a604;var _0x114a8a,_0x440963;this[_0x3fc724(0x37f)](),(_0x114a8a=this[_0x3fc724(0x31a)])==null||_0x114a8a[_0x3fc724(0x233)]({'cmd':I[_0x3fc724(0x3df)],'data':{'roomID':this[_0x3fc724(0x3e7)]}}),(_0x440963=this[_0x3fc724(0x31a)])==null||_0x440963[_0x3fc724(0x4b2)](),this[_0x3fc724(0x27b)][_0x3fc724(0x52b)](),this[_0x3fc724(0x520)][_0x3fc724(0x52b)](),this['dispose']();}['_onCombEvent'](_0x4c8f77){const _0x9f1283=_0xa6a604;_0x4c8f77['cmd']===I[_0x9f1283(0x3ee)]?this[_0x9f1283(0x2c2)](_0x4c8f77):_0x4c8f77['cmd']===I[_0x9f1283(0x3e0)]&&this[_0x9f1283(0x345)](_0x4c8f77);}[_0xa6a604(0x28d)](_0x274d94){const _0x168fc2=_0xa6a604;this['_sessionStatus$'][_0x168fc2(0x480)](0x1),_0x274d94[_0x168fc2(0x233)]({'cmd':I[_0x168fc2(0x3ee)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xa6a604(0x2c2)](_0x4e5420){const _0x50c54b=_0xa6a604;var _0x31eed4;if(_0x4e5420[_0x50c54b(0x2b7)]===kt[_0x50c54b(0x441)]){this[_0x50c54b(0x44c)]['show']({'type':_0x1beabd['Warning'],'content':this[_0x50c54b(0x247)]['t'](_0x50c54b(0x1e3))}),this['_sessionStatus$'][_0x50c54b(0x480)](0x2);return;}this[_0x50c54b(0x520)][_0x50c54b(0x480)](0x3);const _0x3c8a18=(_0x31eed4=_0x4e5420['data'][_0x50c54b(0x257)][this[_0x50c54b(0x3e7)]])==null?void 0x0:_0x31eed4['members'];_0x3c8a18&&_0x3c8a18[_0x50c54b(0x213)](_0x1c6f43=>this[_0x50c54b(0x242)]['updateMember'](this['_unitID'],_0x1c6f43));}[_0xa6a604(0x345)](_0x471f1a){const _0x3f631a=_0xa6a604;try{const _0x170582=_0x471f1a[_0x3f631a(0x525)];switch(_0x170582[_0x3f631a(0x33b)]){case _0x17f69c[_0x3f631a(0x38a)]:this[_0x3f631a(0x291)](_0x170582),this['_event$'][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x356)]:this[_0x3f631a(0x4de)](_0x170582),this[_0x3f631a(0x27b)][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x4a4)]:this[_0x3f631a(0x2cd)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x4e1)]:this['_logService'][_0x3f631a(0x3f7)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x170582)),this[_0x3f631a(0x27b)][_0x3f631a(0x480)](_0x170582);break;case _0x17f69c[_0x3f631a(0x2fe)]:this[_0x3f631a(0x22d)]['onCommentUpdate'](_0x170582[_0x3f631a(0x525)]),this[_0x3f631a(0x27b)]['next'](_0x170582);break;default:this[_0x3f631a(0x27b)][_0x3f631a(0x480)](_0x170582);}}catch(_0x318370){this['_logService'][_0x3f631a(0x3f7)](_0x318370,_0x471f1a);}}[_0xa6a604(0x291)](_0x40bc59){const _0x1612c2=_0xa6a604;this[_0x1612c2(0x242)]['updateMember'](this['_unitID'],_0x40bc59['data']);}[_0xa6a604(0x4de)](_0x4ec5af){const _0x147520=_0xa6a604;this[_0x147520(0x242)][_0x147520(0x4da)](this[_0x147520(0x3e7)],_0x4ec5af[_0x147520(0x525)][_0x147520(0x50c)]);}async['send'](_0x166b4d,_0x357cef){const _0x514946=_0xa6a604;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x514946(0x335));try{_0x166b4d[_0x514946(0x33b)]===_0x17f69c[_0x514946(0x54d)]&&(this[_0x514946(0x354)](),this['_startTelemetryCollaborationNewChangeset'](_0x166b4d)),this[_0x514946(0x31a)]['send']({'cmd':I[_0x514946(0x509)],'routeKey':_0x357cef,'routeType':'','data':_0x166b4d});}catch(_0x4ad8e5){this[_0x514946(0x493)][_0x514946(0x3f7)](_0x4ad8e5);}}[_0xa6a604(0x354)](){const _0x2c2b40=_0xa6a604;var _0x5787dd;this['_collaborationTimeoutTimer']=window[_0x2c2b40(0x3e8)](()=>{const _0x3dc1c0=_0x2c2b40;this[_0x3dc1c0(0x4cb)]=null,this['_messageService'][_0x3dc1c0(0x4d8)]({'type':_0x1beabd['Error'],'content':this[_0x3dc1c0(0x247)]['t'](_0x3dc1c0(0x4f1))});},(_0x5787dd=this[_0x2c2b40(0x325)]['getConfig'](Ns))!=null?_0x5787dd:Us);}[_0xa6a604(0x3d0)](){const _0x327d72=_0xa6a604;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x327d72(0x4cb)]),this['_collaborationTimeoutTimer']=null);}[_0xa6a604(0x484)](_0x543de){const _0x29f565=_0xa6a604;if(!this[_0x29f565(0x3e3)])return;const {data:_0x3db718}=_0x543de,{unitID:_0x5cf108,changeset:_0x2e8565}=_0x3db718,{mutations:_0x2c3b07,type:_0x3937c8}=_0x2e8565;this[_0x29f565(0x22e)]={'unitId':_0x5cf108,'type':_0x3937c8,'startTime':performance[_0x29f565(0x398)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x2c3b07)};}[_0xa6a604(0x2cd)](){const _0x3003e0=_0xa6a604;if(this[_0x3003e0(0x3e3)]){if(!this[_0x3003e0(0x22e)]){this[_0x3003e0(0x493)][_0x3003e0(0x3f7)](_0x3003e0(0x4d0),_0x3003e0(0x35b));return;}this['_telemetryInfo'][_0x3003e0(0x2ea)]=performance['now'](),this[_0x3003e0(0x22e)][_0x3003e0(0x4e6)]=this[_0x3003e0(0x22e)][_0x3003e0(0x2ea)]-this[_0x3003e0(0x22e)][_0x3003e0(0x2a1)],this[_0x3003e0(0x254)][_0x3003e0(0x29c)](jn,this[_0x3003e0(0x22e)]),this[_0x3003e0(0x22e)]=null;}}[_0xa6a604(0x37f)](){this['_telemetryInfo']=null;}};Ct=Gn([J(0x2,_0x4e432b),J(0x3,_0x4ac547),J(0x4,_0xd292a2),J(0x5,_0x123c7a),J(0x6,_0x160402(_0x2f3b7b)),J(0x7,_0x160402(ae)),J(0x8,_0x160402($s)),J(0x9,_0x363100(_0xdd7e1e))],Ct);var Yn=Object[_0xa6a604(0x222)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x16130f,_0x319296,_0x4ae746,_0x15989b)=>{const _0x77bd5=_0xa6a604;for(var _0x34a5d8=_0x15989b>0x1?void 0x0:_0x15989b?Kn(_0x319296,_0x4ae746):_0x319296,_0x269541=_0x16130f[_0x77bd5(0x391)]-0x1,_0x24e407;_0x269541>=0x0;_0x269541--)(_0x24e407=_0x16130f[_0x269541])&&(_0x34a5d8=(_0x15989b?_0x24e407(_0x319296,_0x4ae746,_0x34a5d8):_0x24e407(_0x34a5d8))||_0x34a5d8);return _0x15989b&&_0x34a5d8&&Yn(_0x319296,_0x4ae746,_0x34a5d8),_0x34a5d8;},de=(_0x920994,_0x1bf7d6)=>(_0x4d9606,_0x5137b2)=>_0x1bf7d6(_0x4d9606,_0x5137b2,_0x920994);let ce=class extends _0x252360{constructor(_0x39f973,_0x32ef34,_0x514eff,_0x3b9546,_0x570a69,_0x3101da){const _0x275c59=_0xa6a604;super(),l(this,_0x275c59(0x4f2),new _0x3d8ff6(void 0x0)),l(this,_0x275c59(0x2f4),this[_0x275c59(0x4f2)][_0x275c59(0x294)]()),l(this,_0x275c59(0x42a),null),l(this,_0x275c59(0x374),new Map()),l(this,_0x275c59(0x26e),new _0x3d8ff6(G[_0x275c59(0x4a0)])),l(this,_0x275c59(0x23c),this[_0x275c59(0x26e)]['asObservable']()),l(this,_0x275c59(0x541),!0x1),l(this,_0x275c59(0x527)),l(this,_0x275c59(0x389),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x275c59(0x2e3)),(this['_injector']=_0x39f973,this['_localeService']=_0x32ef34,this[_0x275c59(0x44c)]=_0x514eff,this[_0x275c59(0x493)]=_0x3b9546,this[_0x275c59(0x325)]=_0x570a69,this[_0x275c59(0x402)]=_0x3101da,this[_0x275c59(0x34b)]());}get[_0xa6a604(0x31a)](){const _0x3bec98=_0xa6a604;return this[_0x3bec98(0x4f2)][_0x3bec98(0x2a2)]();}[_0xa6a604(0x34b)](){const _0x20ae4f=_0xa6a604;this[_0x20ae4f(0x414)](),this[_0x20ae4f(0x37d)]();}['dispose'](){const _0x51b9c5=_0xa6a604;super['dispose'](),this[_0x51b9c5(0x374)]['forEach'](_0x1bf24b=>_0x1bf24b[_0x51b9c5(0x4f4)]()),this['_sessions'][_0x51b9c5(0x215)](),this['_status$'][_0x51b9c5(0x52b)]();}async[_0xa6a604(0x269)](_0xe3cf83){const _0x3df58d=_0xa6a604;if(this['_sessions']['has'](_0xe3cf83))return this[_0x3df58d(0x374)][_0x3df58d(0x504)](_0xe3cf83);this['_tryEnsureSocket']();const _0x1516be=this[_0x3df58d(0x35a)][_0x3df58d(0x307)](Ct,_0xe3cf83,this[_0x3df58d(0x4f2)][_0x3df58d(0x294)]());return this[_0x3df58d(0x374)][_0x3df58d(0x455)](_0xe3cf83,_0x1516be),_0x1516be;}[_0xa6a604(0x1f5)](_0x2bdcd4){const _0x54168d=_0xa6a604;var _0x491eb6;const _0x1c8735=this['_sessions'][_0x54168d(0x504)](_0x2bdcd4);_0x1c8735&&(this['_sessions'][_0x54168d(0x3fe)](_0x2bdcd4),_0x1c8735[_0x54168d(0x4b2)]()),this[_0x54168d(0x374)]['size']||(_0x491eb6=this[_0x54168d(0x31a)])==null||_0x491eb6['close']();}[_0xa6a604(0x237)](){const _0xe6248=_0xa6a604;this[_0xe6248(0x389)]=0x0,this[_0xe6248(0x527)]!=null&&(clearTimeout(this[_0xe6248(0x527)]),this[_0xe6248(0x527)]=null),this['_tryReconnect']();}[_0xa6a604(0x243)](){const _0x25f77a=_0xa6a604;var _0x2c213f,_0x2aea70;const _0x1792f9=this[_0x25f77a(0x325)][_0x25f77a(0x4e5)](Sn),_0x2c61ec=this[_0x25f77a(0x325)][_0x25f77a(0x4e5)](L),_0x3889d7=(_0x2aea70=(_0x2c213f=_0x2c61ec==null?void 0x0:_0x2c61ec[_0x25f77a(0x395)])!=null?_0x2c213f:_0x1792f9)!=null?_0x2aea70:pn,_0x3e2d55=this[_0x25f77a(0x402)][_0x25f77a(0x501)](_0x3889d7);return this[_0x25f77a(0x42a)]=_0x3e2d55,_0x3e2d55;}[_0xa6a604(0x489)](){const _0x44f62b=_0xa6a604;var _0x4dd7eb,_0x2f9b7f;try{const _0x512c4c=(_0x2f9b7f=(_0x4dd7eb=this['_socket'])!=null?_0x4dd7eb:this[_0x44f62b(0x42a)])!=null?_0x2f9b7f:this[_0x44f62b(0x243)]();if(_0x512c4c){const _0x2025a8=_0x512c4c[_0x44f62b(0x233)];_0x512c4c[_0x44f62b(0x233)]=_0x36d856=>(this['_rescheduleHeartbeat'](),_0x2025a8['apply'](_0x512c4c,[_0x36d856])),_0x512c4c[_0x44f62b(0x502)][_0x44f62b(0x426)](_0x45abf8=>this[_0x44f62b(0x445)](_0x512c4c,_0x45abf8)),_0x512c4c[_0x44f62b(0x280)][_0x44f62b(0x3b6)](_0x5f0667(0x1))[_0x44f62b(0x426)](_0x29db8b=>this[_0x44f62b(0x493)][_0x44f62b(0x3f7)](_0x44f62b(0x311),_0x29db8b)),_0x512c4c[_0x44f62b(0x2fd)]['pipe'](_0x5f0667(0x1))[_0x44f62b(0x426)](()=>{const _0x14e4b2=_0x44f62b;this[_0x14e4b2(0x252)](_0x512c4c);}),_0x512c4c['close$'][_0x44f62b(0x3b6)](_0x5f0667(0x1))[_0x44f62b(0x426)](_0x5d5c3d=>{const _0x260992=_0x44f62b;this[_0x260992(0x493)][_0x260992(0x408)](_0x260992(0x54f),_0x260992(0x447),_0x5d5c3d),this['_onConnectionFailed']();});}}catch(_0x4cadde){this[_0x44f62b(0x493)][_0x44f62b(0x3f7)](_0x4cadde),this[_0x44f62b(0x2cb)]();}}[_0xa6a604(0x252)](_0x191eb2){const _0x58fc5f=_0xa6a604;this[_0x58fc5f(0x493)][_0x58fc5f(0x408)](_0x58fc5f(0x54f),_0x58fc5f(0x517)),_0x191eb2['send']({'cmd':I[_0x58fc5f(0x35f)]}),this[_0x58fc5f(0x492)]();}['_listenToOfflineEvent'](){const _0x324339=_0xa6a604;window[_0x324339(0x3d9)](_0x324339(0x486),()=>this['_onOffline']());}['_onOffline'](){const _0x47c483=_0xa6a604;this[_0x47c483(0x541)]=!0x1,this[_0x47c483(0x42a)]=null,this[_0x47c483(0x26e)][_0x47c483(0x480)](G[_0x47c483(0x210)]),this[_0x47c483(0x4f2)][_0x47c483(0x480)](null),this[_0x47c483(0x44f)](),this[_0x47c483(0x1ef)]();}[_0xa6a604(0x2cb)](){const _0x129797=_0xa6a604;var _0x5538c4;this['_onOffline'](),this[_0x129797(0x389)]<((_0x5538c4=this[_0x129797(0x325)][_0x129797(0x4e5)](Cn))!=null?_0x5538c4:bn)?(this[_0x129797(0x44c)]['show']({'key':_0x129797(0x4d7),'type':_0x1beabd[_0x129797(0x299)],'content':this[_0x129797(0x247)]['t'](_0x129797(0x29e))}),this[_0x129797(0x246)]()):this[_0x129797(0x44c)][_0x129797(0x4d8)]({'key':'collaboration-session-retry','type':_0x1beabd['Error'],'content':this['_localeService']['t'](_0x129797(0x2c4))});}[_0xa6a604(0x37d)](){const _0x2e6e93=_0xa6a604,_0x5e62d6=()=>{const _0x420246=_0x40a3;this[_0x420246(0x31a)]||this[_0x420246(0x237)]();},_0x87543e=()=>{const _0x4285fb=_0x40a3;this[_0x4285fb(0x31a)]||document[_0x4285fb(0x205)]===_0x4285fb(0x421)||this['reconnect']();};window[_0x2e6e93(0x3d9)]('online',_0x5e62d6),document['addEventListener']('visibilitychange',_0x87543e);}[_0xa6a604(0x246)](){const _0xb4cf2=_0xa6a604;var _0x39e77f;const _0x47b8e8=this[_0xb4cf2(0x389)],_0x1fa0e6=this[_0xb4cf2(0x325)][_0xb4cf2(0x4e5)](L),_0x5a19c8=_0x47b8e8===0x0?0x0:((_0x39e77f=_0x1fa0e6==null?void 0x0:_0x1fa0e6['retryConnectingInterval'])!=null?_0x39e77f:En)*0x2**_0x47b8e8;this['_retryConnectingTimer']=window[_0xb4cf2(0x3e8)](()=>{const _0x2158b5=_0xb4cf2;clearTimeout(this[_0x2158b5(0x527)]),this[_0x2158b5(0x527)]=null,this[_0x2158b5(0x489)]();},_0x5a19c8),this[_0xb4cf2(0x389)]+=0x1;}[_0xa6a604(0x445)](_0x5ccb8f,_0x597506){const _0x1cb02a=_0xa6a604,{cmd:_0x1afe17}=_0x597506;_0x1afe17===I['HELLO']&&!this[_0x1cb02a(0x541)]&&(_0x5ccb8f[_0x1cb02a(0x50c)]=_0x597506[_0x1cb02a(0x525)][_0x1cb02a(0x50c)],this[_0x1cb02a(0x4f2)][_0x1cb02a(0x480)](_0x5ccb8f),this[_0x1cb02a(0x26e)][_0x1cb02a(0x480)](G[_0x1cb02a(0x3a2)]),this['_socketReady']=!0x0,this[_0x1cb02a(0x42a)]=null),_0x1afe17===I[_0x1cb02a(0x3ab)]&&this['_clearTimeoutTimer'](),this[_0x1cb02a(0x492)]();}[_0xa6a604(0x492)](){const _0x42769b=_0xa6a604;var _0x493be8;this[_0x42769b(0x1ef)](),this[_0x42769b(0x387)]=window[_0x42769b(0x3e8)](()=>this[_0x42769b(0x2fb)](),(_0x493be8=this[_0x42769b(0x325)][_0x42769b(0x4e5)](vn))!=null?_0x493be8:In);}[_0xa6a604(0x2fb)](){const _0x5561a7=_0xa6a604;this[_0x5561a7(0x31a)][_0x5561a7(0x233)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x377e6c=_0xa6a604;var _0x255c8d;this[_0x377e6c(0x2e3)]=window['setTimeout'](()=>this[_0x377e6c(0x2cb)](),(_0x255c8d=this[_0x377e6c(0x325)][_0x377e6c(0x4e5)](Ns))!=null?_0x255c8d:Us);}[_0xa6a604(0x1ef)](){const _0x4cbec9=_0xa6a604;this[_0x4cbec9(0x387)]!=null&&(clearTimeout(this[_0x4cbec9(0x387)]),this['_sendHeartbeatTimer']=null);}[_0xa6a604(0x44f)](){const _0x417dbe=_0xa6a604;this[_0x417dbe(0x2e3)]!=null&&(clearTimeout(this[_0x417dbe(0x2e3)]),this[_0x417dbe(0x2e3)]=null);}};ce=Xn([de(0x0,_0x160402(_0x283cc6)),de(0x1,_0x160402(_0x2f3b7b)),de(0x2,_0xd292a2),de(0x3,_0x4e432b),de(0x4,_0x123c7a),de(0x5,Ls)],ce);var Jn=Object[_0xa6a604(0x222)],qn=Object[_0xa6a604(0x4ce)],zn=(_0x214b2e,_0xb4788c,_0xe0d28f,_0x15697f)=>{const _0x4acc98=_0xa6a604;for(var _0x342ab5=_0x15697f>0x1?void 0x0:_0x15697f?qn(_0xb4788c,_0xe0d28f):_0xb4788c,_0x44840d=_0x214b2e[_0x4acc98(0x391)]-0x1,_0x1afcf0;_0x44840d>=0x0;_0x44840d--)(_0x1afcf0=_0x214b2e[_0x44840d])&&(_0x342ab5=(_0x15697f?_0x1afcf0(_0xb4788c,_0xe0d28f,_0x342ab5):_0x1afcf0(_0x342ab5))||_0x342ab5);return _0x15697f&&_0x342ab5&&Jn(_0xb4788c,_0xe0d28f,_0x342ab5),_0x342ab5;},ct=(_0x4d8c93,_0x3f2073)=>(_0x224f14,_0x26afe0)=>_0x3f2073(_0x224f14,_0x26afe0,_0x4d8c93);let Ye=class{constructor(_0x179165,_0x107776,_0x2273ee){const _0x57a95b=_0xa6a604;this[_0x57a95b(0x35a)]=_0x179165,this['_transformService']=_0x107776,this['_renderManagerService']=_0x2273ee;}['transformIMECache'](_0xd994ef){const _0x219a64=_0xa6a604;this[_0x219a64(0x434)](_0xd994ef),this[_0x219a64(0x4a6)](_0xd994ef);}[_0xa6a604(0x50a)](_0x5dfbb1){const _0x3ba40e=_0xa6a604,{unitID:_0xf5af0}=_0x5dfbb1,_0x35ab1f=this[_0x3ba40e(0x288)][_0x3ba40e(0x2eb)](_0xf5af0)[_0x3ba40e(0x218)](_0x57ed85),{redoCache:_0x323162}=_0x35ab1f['getUndoRedoMutationParamsCache']();if(_0x323162[_0x3ba40e(0x391)]===0x0)return _0x5dfbb1;let _0x3497d0=_0x3c0ad5[_0x3ba40e(0x20c)](_0x5dfbb1['mutations'][0x0]);for(let _0x29b4ff=0x0;_0x29b4ff<_0x323162[_0x3ba40e(0x391)];_0x29b4ff++){const _0x59896e={'id':_0x3ba40e(0x23f),'params':{..._0x323162[_0x29b4ff]}},_0x43de00=this[_0x3ba40e(0x48c)][_0x3ba40e(0x54a)](_0x3497d0,_0x59896e,!0x1);if(_0x4c49c5(_0x43de00))throw _0x43de00['error'];_0x3497d0=_0x43de00['m1Prime'];}return{..._0x3c0ad5[_0x3ba40e(0x20c)](_0x5dfbb1),'mutations':[_0x3497d0]};}[_0xa6a604(0x434)](_0x3fc9c6){const _0x44a953=_0xa6a604,{unitID:_0x27de61}=_0x3fc9c6,_0x1659fa=this[_0x44a953(0x288)][_0x44a953(0x2eb)](_0x27de61)[_0x44a953(0x218)](_0x57ed85),{undoCache:_0x4bdfa4,redoCache:_0x598261}=_0x1659fa[_0x44a953(0x2d2)]();if(_0x4bdfa4[_0x44a953(0x391)]===0x0||_0x598261[_0x44a953(0x391)]===0x0)return;const _0x54b6d6=[],_0x5155ac=[];let _0x4e273b=_0x3c0ad5[_0x44a953(0x20c)](_0x3fc9c6[_0x44a953(0x2ce)][0x0]),_0x20dc84=_0x3c0ad5[_0x44a953(0x20c)](_0x3fc9c6['mutations'][0x0]);for(let _0x2bb1cc=_0x4bdfa4[_0x44a953(0x391)]-0x1;_0x2bb1cc>=0x0;_0x2bb1cc--){const _0x4699e5={'id':'doc.mutation.rich-text-editing','params':{..._0x4bdfa4[_0x2bb1cc]}},_0x4ce97e={'id':_0x44a953(0x23f),'params':{..._0x598261[_0x2bb1cc]}},_0x179242=this['_transformService'][_0x44a953(0x54a)](_0x4e273b,_0x4699e5,!0x1),_0x203f75=this[_0x44a953(0x48c)]['transformMutation'](_0x20dc84,_0x4ce97e,!0x1);if(_0x4c49c5(_0x179242))throw _0x179242[_0x44a953(0x3f7)];if(_0x4c49c5(_0x203f75))throw _0x203f75['error'];_0x54b6d6['unshift'](_0x179242[_0x44a953(0x29d)][_0x44a953(0x4d2)]),_0x5155ac[_0x44a953(0x20a)](_0x203f75[_0x44a953(0x29d)][_0x44a953(0x4d2)]),_0x4e273b=_0x179242[_0x44a953(0x515)],_0x20dc84=_0x203f75[_0x44a953(0x515)];}_0x1659fa[_0x44a953(0x42e)]({'undoCache':_0x54b6d6,'redoCache':_0x5155ac});}[_0xa6a604(0x4a6)](_0x5c0b0b){const _0x44a118=_0xa6a604,{unitID:_0x273636}=_0x5c0b0b,_0x5931c3=this[_0x44a118(0x288)][_0x44a118(0x2eb)](_0x273636)[_0x44a118(0x218)](_0x57ed85),_0x1b9339=_0x5931c3[_0x44a118(0x51c)]();if(_0x1b9339==null)return;const _0x157be4=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5c0b0b[_0x44a118(0x1ec)],'actions':null,'textRanges':[_0x1b9339]}}],_0x5b9f61=this['_transformService'][_0x44a118(0x49b)](_0x5c0b0b,_0x157be4);if(!_0x5d8ed5(_0x5b9f61))throw _0x5b9f61[_0x44a118(0x3f7)];const _0x2dad46=_0x5b9f61[_0x44a118(0x29d)][0x0]['params']['textRanges'];Array[_0x44a118(0x2f8)](_0x2dad46)&&_0x2dad46[_0x44a118(0x391)]&&_0x5931c3[_0x44a118(0x3fd)](_0x2dad46[0x0]);}};Ye=zn([ct(0x0,_0x160402(_0x283cc6)),ct(0x1,_0x5ea876),ct(0x2,_0x25950e)],Ye);var Zn=Object[_0xa6a604(0x222)],Qn=Object[_0xa6a604(0x4ce)],er=(_0x18dcb0,_0x59f349,_0x4c4c45,_0x5837e3)=>{const _0xf26ca4=_0xa6a604;for(var _0x40afac=_0x5837e3>0x1?void 0x0:_0x5837e3?Qn(_0x59f349,_0x4c4c45):_0x59f349,_0x124b38=_0x18dcb0[_0xf26ca4(0x391)]-0x1,_0x25f7dc;_0x124b38>=0x0;_0x124b38--)(_0x25f7dc=_0x18dcb0[_0x124b38])&&(_0x40afac=(_0x5837e3?_0x25f7dc(_0x59f349,_0x4c4c45,_0x40afac):_0x25f7dc(_0x40afac))||_0x40afac);return _0x5837e3&&_0x40afac&&Zn(_0x59f349,_0x4c4c45,_0x40afac),_0x40afac;},Oe=(_0x2afe94,_0xba48e)=>(_0x115ac2,_0x7df22)=>_0xba48e(_0x115ac2,_0x7df22,_0x2afe94);let D=class extends _0x252360{constructor(_0x4baed1,_0x4e3afe,_0x163c21,_0x20b6f8,_0x4656ac){const _0x52837a=_0xa6a604;super(),l(this,'_cachedData',new Map()),l(this,_0x52837a(0x268),new Map()),l(this,_0x52837a(0x337),!0x1),(this[_0x52837a(0x325)]=_0x4baed1,this[_0x52837a(0x30d)]=_0x4e3afe,this[_0x52837a(0x27a)]=_0x163c21,this[_0x52837a(0x247)]=_0x20b6f8,this[_0x52837a(0x4dc)]=_0x4656ac,this['_setupBeforeClosingHandler']());}[_0xa6a604(0x2e6)](){const _0x17e8e7=_0xa6a604;this[_0x17e8e7(0x337)]=!0x0;}[_0xa6a604(0x2ff)](){this['_disabled']=!0x1;}[_0xa6a604(0x4f4)](){const _0x3de769=_0xa6a604;this[_0x3de769(0x2ef)]()[_0x3de769(0x232)](()=>super[_0x3de769(0x4f4)]());}async['loadOfflineData'](_0x3e0c63){const _0x401104=_0xa6a604;return this[_0x401104(0x337)]?null:this[_0x401104(0x30d)][_0x401104(0x3f5)](os(_0x3e0c63));}async[_0xa6a604(0x1e1)](_0x4b1131,_0x3ea3d4){const _0x393165=_0xa6a604;return!!this[_0x393165(0x30d)][_0x393165(0x20b)](_0x4b1131,_0x3ea3d4);}[_0xa6a604(0x31d)](_0x48804e,_0x391064,_0x57b340,_0x2cdc43){const _0xd10d9f=_0xa6a604,_0x2a6807=this['_revisionService']['getCurrentRevOfUnit'](_0x48804e);this[_0xd10d9f(0x2e2)][_0xd10d9f(0x455)](_0x48804e,{'unitID':_0x48804e,'type':_0x391064,'awaitingChangeset':_0x57b340,'mutations':_0x2cdc43,'rev':_0x2a6807}),this[_0xd10d9f(0x268)][_0xd10d9f(0x1f9)](_0x48804e)||this[_0xd10d9f(0x24a)](_0x48804e);}['_scheduleSaving'](_0x56e715){const _0x13fd6f=_0xa6a604,_0x25a39d=this[_0x13fd6f(0x44d)]();_0x25a39d===0x0?this[_0x13fd6f(0x30e)](_0x56e715):this[_0x13fd6f(0x268)][_0x13fd6f(0x455)](_0x56e715,setTimeout(()=>this[_0x13fd6f(0x30e)](_0x56e715),_0x25a39d));}[_0xa6a604(0x44d)](){const _0x175fd9=_0xa6a604;var _0x2cf8cd;return(_0x2cf8cd=this[_0x175fd9(0x325)][_0x175fd9(0x4e5)](Tn))!=null?_0x2cf8cd:Rn;}['_saveCache'](_0x2cd800){const _0x518027=_0xa6a604,_0x3b9749=this['_saveTaskMap'][_0x518027(0x504)](_0x2cd800);return _0x3b9749!==void 0x0&&window[_0x518027(0x2a4)](_0x3b9749),this[_0x518027(0x30d)]['setItem'](os(_0x2cd800),this['_cachedData'][_0x518027(0x504)](_0x2cd800))['then'](()=>this[_0x518027(0x268)][_0x518027(0x3fe)](_0x2cd800));}async[_0xa6a604(0x2ef)](){const _0x3dd5dc=_0xa6a604,_0x6c05e6=[];this[_0x3dd5dc(0x268)][_0x3dd5dc(0x213)]((_0x129744,_0x194d77)=>{const _0x1b8d34=_0x3dd5dc;window[_0x1b8d34(0x2a4)](_0x129744),_0x6c05e6[_0x1b8d34(0x539)](this[_0x1b8d34(0x30e)](_0x194d77)['then'](()=>{const _0x2947ed=_0x1b8d34;this[_0x2947ed(0x268)][_0x2947ed(0x3fe)](_0x194d77);}));}),await Promise[_0x3dd5dc(0x2df)](_0x6c05e6);}[_0xa6a604(0x326)](){const _0x2d4439=_0xa6a604;this[_0x2d4439(0x4f3)](this['_beforeCloseService'][_0x2d4439(0x366)](()=>{const _0x565405=_0x2d4439;if(this[_0x565405(0x268)][_0x565405(0x4e4)])return this[_0x565405(0x247)]['t'](_0x565405(0x2ae));}));}};D=er([Oe(0x0,_0x123c7a),Oe(0x1,_0x1dabce),Oe(0x2,_0x4ac547),Oe(0x3,_0x160402(_0x2f3b7b)),Oe(0x4,_0x160402(_0x842000))],D);function os(_0x6dc81c){const _0x3825fb=_0xa6a604;return _0x3825fb(0x49d)+_0x6dc81c;}var tr=Object[_0xa6a604(0x222)],sr=Object['getOwnPropertyDescriptor'],ir=(_0x484fd0,_0xb85e8a,_0x1d234b,_0x4d03c7)=>{const _0x8783c6=_0xa6a604;for(var _0x217579=_0x4d03c7>0x1?void 0x0:_0x4d03c7?sr(_0xb85e8a,_0x1d234b):_0xb85e8a,_0x4bdfac=_0x484fd0[_0x8783c6(0x391)]-0x1,_0x4f7de4;_0x4bdfac>=0x0;_0x4bdfac--)(_0x4f7de4=_0x484fd0[_0x4bdfac])&&(_0x217579=(_0x4d03c7?_0x4f7de4(_0xb85e8a,_0x1d234b,_0x217579):_0x4f7de4(_0x217579))||_0x217579);return _0x4d03c7&&_0x217579&&tr(_0xb85e8a,_0x1d234b,_0x217579),_0x217579;},ht=(_0x543ff8,_0xc9b13a)=>(_0x52178f,_0x3f879d)=>_0xc9b13a(_0x52178f,_0x3f879d,_0x543ff8);function nr(_0x16ca70){const _0x33d716=_0xa6a604,{unitID:_0x16e9a7,mutations:_0x703edb}=_0x16ca70;return{'unitId':_0x16e9a7,'subUnitId':_0x703edb[0x0]['params'][_0x33d716(0x46b)]};}let Ke=class{constructor(_0x221c7e,_0x58ba85,_0x3df677){const _0x4e639c=_0xa6a604;this['_injector']=_0x221c7e,this[_0x4e639c(0x48c)]=_0x58ba85,this[_0x4e639c(0x35c)]=_0x3df677;}[_0xa6a604(0x255)](_0x2a01a5){const _0x2dae6e=_0xa6a604;var _0x29f787,_0x3ad996,_0x5d594e,_0x5b80aa;const _0x2ab0d6=this[_0x2dae6e(0x35a)][_0x2dae6e(0x504)](_0x370067),{unitId:_0x430ebb,subUnitId:_0x2eacb3}=nr(_0x2a01a5),_0xcb0e4b=_0x2ab0d6['getWorkbookSelections'](_0x430ebb)[_0x2dae6e(0x37b)](),_0x4d0226=(_0x3ad996=(_0x29f787=this['_instanceService'][_0x2dae6e(0x353)](_0x430ebb))==null?void 0x0:_0x29f787['getActiveSheet']())==null?void 0x0:_0x3ad996[_0x2dae6e(0x406)]();if(_0xcb0e4b[_0x2dae6e(0x391)]===0x0||!_0x430ebb||!_0x2eacb3)return;const _0x3ec00d=[{'id':_0x5889b8['id'],'params':{'unitId':_0x430ebb,'subUnitId':_0x4d0226,'selections':_0x3c0ad5[_0x2dae6e(0x20c)](_0xcb0e4b)}}],_0x2e10f3=this['_transformService'][_0x2dae6e(0x49b)](_0x2a01a5,_0x3ec00d);if(!_0x5d8ed5(_0x2e10f3))throw _0x2e10f3['error'];const _0x13b9bd=(_0x5b80aa=(_0x5d594e=_0x2e10f3[_0x2dae6e(0x29d)][0x0])==null?void 0x0:_0x5d594e['params'])==null?void 0x0:_0x5b80aa['selections'];Array[_0x2dae6e(0x2f8)](_0x13b9bd)&&_0x13b9bd['length']&&this[_0x2dae6e(0x35a)][_0x2dae6e(0x504)](_0x5a0862)[_0x2dae6e(0x352)](_0x5889b8['id'],{'unitId':_0x430ebb,'subUnitId':_0x4d0226,'selections':_0x13b9bd});}};Ke=ir([ht(0x0,_0x160402(_0x283cc6)),ht(0x1,_0x5ea876),ht(0x2,_0x33adea)],Ke);const tt=_0x33c554('univer-pro.collaboration-client.single-active-unit-service');var js=(_0x5a9dd7=>(_0x5a9dd7[_0x5a9dd7[_0xa6a604(0x240)]=0x0]=_0xa6a604(0x240),_0x5a9dd7[_0x5a9dd7[_0xa6a604(0x54e)]=0x1]='OTHER_CLIENTS_EDITING',_0x5a9dd7))(js||{});const as=0x7530,cs='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x252360{constructor(){const _0x59e1cb=_0xa6a604;super(),l(this,'_id',_0x3c0ad5[_0x59e1cb(0x24c)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x59e1cb(0x30a),new Map()),l(this,_0x59e1cb(0x50d),null),l(this,_0x59e1cb(0x25c),new Map()),l(this,_0x59e1cb(0x32f),new Map()),this[_0x59e1cb(0x21e)]();}[_0xa6a604(0x4f4)](){const _0x57c2c6=_0xa6a604;super[_0x57c2c6(0x4f4)](),this[_0x57c2c6(0x25c)][_0x57c2c6(0x213)]((_0x26f013,_0x12041c)=>this[_0x57c2c6(0x330)](_0x12041c)),this[_0x57c2c6(0x50d)]&&window['clearInterval'](this[_0x57c2c6(0x50d)]);}[_0xa6a604(0x3a0)](_0x1ef520){const _0x47bdf8=_0xa6a604;return this[_0x47bdf8(0x2d8)](_0x1ef520)[_0x47bdf8(0x3b6)](_0x1dd265());}['editingUnit'](_0x23a447){const _0x546f7d=_0xa6a604;this[_0x546f7d(0x52a)][_0x546f7d(0x4e4)]===0x0&&this['_scheduleHeartbeat'](),this[_0x546f7d(0x52a)]['add'](_0x23a447),this[_0x546f7d(0x249)]({'type':0x0,'memberID':this[_0x546f7d(0x438)],'unitIDs':[_0x23a447],'isForwarded':!0x1});}[_0xa6a604(0x3b1)](_0x5095be){const _0x3eb7af=_0xa6a604;this['_selfUnitIDs'][_0x3eb7af(0x3fe)](_0x5095be),this[_0x3eb7af(0x52a)][_0x3eb7af(0x4e4)]===0x0&&this[_0x3eb7af(0x50d)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0xa6a604(0x21e)](){const _0x41e1ed=_0xa6a604;this[_0x41e1ed(0x4f3)](_0x9a96d1(_0x258cea(window,_0x41e1ed(0x321))[_0x41e1ed(0x426)](_0x2dbcb2=>{const _0x34bc35=_0x41e1ed;if(_0x2dbcb2[_0x34bc35(0x3f9)]!==cs||!_0x2dbcb2[_0x34bc35(0x1e2)])return;const _0x373076=JSON['parse'](_0x2dbcb2[_0x34bc35(0x1e2)]);this[_0x34bc35(0x505)](_0x373076);}))),window[_0x41e1ed(0x3d9)](_0x41e1ed(0x2e0),()=>this[_0x41e1ed(0x249)]({'type':0x1,'memberID':this[_0x41e1ed(0x438)],'unitIDs':Array[_0x41e1ed(0x281)](this[_0x41e1ed(0x52a)])}));}[_0xa6a604(0x505)](_0x1a0b3f){const _0x3919ed=_0xa6a604;switch(_0x1a0b3f[_0x3919ed(0x536)]){case 0x0:this['_handleJoinEvent'](_0x1a0b3f);break;case 0x1:this['_handleLeaveEvent'](_0x1a0b3f);break;case 0x2:this[_0x3919ed(0x226)](_0x1a0b3f);break;}}['_handleJoinEvent'](_0x43cfda){const _0x5b3c02=_0xa6a604,{unitIDs:_0x103d1e,memberID:_0x10deb0,isForwarded:_0x6caf63}=_0x43cfda;_0x103d1e['forEach'](_0xe3c010=>{const _0x49c56d=_0x40a3;if(!_0x6caf63&&this[_0x49c56d(0x30a)][_0x49c56d(0x1f9)](_0xe3c010)&&this[_0x49c56d(0x2d8)](_0xe3c010)[_0x49c56d(0x480)](0x1),!this['_unitOnClients'][_0x49c56d(0x1f9)](_0xe3c010)||!this[_0x49c56d(0x30a)][_0x49c56d(0x504)](_0xe3c010)[_0x49c56d(0x1f9)](_0x10deb0)){const _0x24c4fe=this['_unitOnClients']['get'](_0xe3c010)||new Set();_0x24c4fe['add'](_0x10deb0),this[_0x49c56d(0x30a)][_0x49c56d(0x455)](_0xe3c010,_0x24c4fe),this[_0x49c56d(0x207)](_0x10deb0);}}),_0x6caf63||this[_0x5b3c02(0x249)]({'type':0x0,'memberID':this[_0x5b3c02(0x438)],'unitIDs':[...this[_0x5b3c02(0x52a)]],'isForwarded':!0x0});}[_0xa6a604(0x207)](_0x52123e){const _0x1b804a=_0xa6a604;this[_0x1b804a(0x330)](_0x52123e);const _0x143de4=window[_0x1b804a(0x3e8)](()=>{const _0x144547=_0x1b804a;this['_unitOnClients'][_0x144547(0x213)](_0x1095b2=>{const _0x2119e4=_0x144547;_0x1095b2[_0x2119e4(0x3fe)](_0x52123e);});},as*0x2);this[_0x1b804a(0x25c)][_0x1b804a(0x455)](_0x52123e,_0x143de4);}[_0xa6a604(0x330)](_0x308af1){const _0x4ae485=_0xa6a604;if(this['_clearOtherTimers'][_0x4ae485(0x1f9)](_0x308af1)){const _0x101a27=this['_clearOtherTimers']['get'](_0x308af1);_0x101a27&&window[_0x4ae485(0x2a4)](_0x101a27),this[_0x4ae485(0x25c)][_0x4ae485(0x455)](_0x308af1,null);}}[_0xa6a604(0x542)](_0x148c94){const _0x37c48a=_0xa6a604,{memberID:_0x54ebc8,unitIDs:_0x30ccbd}=_0x148c94;_0x30ccbd['forEach'](_0x2142e0=>{const _0x29f074=_0x40a3;var _0x50fcd3;const _0x4d90c0=this[_0x29f074(0x30a)][_0x29f074(0x504)](_0x2142e0);_0x4d90c0&&(_0x4d90c0[_0x29f074(0x3fe)](_0x54ebc8),(_0x50fcd3=this['_ensureSubject'](_0x2142e0))==null||_0x50fcd3['next'](_0x4d90c0[_0x29f074(0x4e4)]===0x0?0x0:0x1));}),this[_0x37c48a(0x330)](_0x54ebc8);}[_0xa6a604(0x226)](_0x5e17b1){const _0x49d5d7=_0xa6a604;this['_scheduleClearOtherTimer'](_0x5e17b1[_0x49d5d7(0x50c)]);}[_0xa6a604(0x249)](_0x53bc7f){const _0x275124=_0xa6a604;localStorage[_0x275124(0x20b)](cs,JSON[_0x275124(0x45c)](_0x53bc7f));}[_0xa6a604(0x394)](){const _0x1adab8=_0xa6a604;this['_heartbeatTimer']=window[_0x1adab8(0x2ad)](()=>{const _0x6c5671=_0x1adab8;this[_0x6c5671(0x249)]({'type':0x2,'memberID':this[_0x6c5671(0x438)]});},as);}[_0xa6a604(0x2d8)](_0xaa5bed){const _0x3fd2cf=_0xa6a604;return this[_0x3fd2cf(0x32f)]['has'](_0xaa5bed)||this['_unitStatus'][_0x3fd2cf(0x455)](_0xaa5bed,new _0x3d8ff6(0x0)),this[_0x3fd2cf(0x32f)][_0x3fd2cf(0x504)](_0xaa5bed);}}function xs(_0x5d4105){const _0x394833=_0xa6a604;let _0x25b9a0='';for(const _0x533168 of _0x5d4105){const {startOffset:_0xfaa241,endOffset:_0x8f47ec,isActive:_0x403be0}=_0x533168;_0x25b9a0[_0x394833(0x391)]&&(_0x25b9a0+=','),_0x25b9a0+=_0xfaa241+':'+_0x8f47ec+':'+(_0x403be0?'1':'0');}return _0x25b9a0;}function or(_0x31af49){const _0x15f72e=_0xa6a604,_0x19de3c=_0x31af49[_0x15f72e(0x231)](','),_0x4783e4=[];for(const _0x5701fd of _0x19de3c){const [_0x1c6c9f,_0x2e6a23,_0x3f5809]=_0x5701fd[_0x15f72e(0x231)](':');_0x4783e4['push']({'startOffset':Number(_0x1c6c9f),'endOffset':Number(_0x2e6a23),'collapsed':_0x1c6c9f===_0x2e6a23,'isActive':_0x3f5809==='1'});}return _0x4783e4['some'](_0x55811a=>_0x55811a['isActive'])||(_0x4783e4[0x0][_0x15f72e(0x51f)]=!0x0),_0x4783e4;}class Bt extends _0x48a1ad{constructor(){const _0x363b3f=_0xa6a604;super(...arguments),l(this,_0x363b3f(0x47c),new _0x3d8ff6(null)),l(this,'collabCursorState$',this[_0x363b3f(0x47c)][_0x363b3f(0x294)]());}[_0xa6a604(0x285)](_0x323b1a){const _0x9f7fd6=_0xa6a604,{unitID:_0x32c6c1,memberID:_0x51df30,textRanges:_0xb9dea0}=_0x323b1a,_0x208ce7=xs(_0xb9dea0),_0x4c0819={'unitID':_0x32c6c1,'memberID':_0x51df30,'selection':_0x208ce7};this['_collabCursorState$'][_0x9f7fd6(0x480)](_0x4c0819);}}var ar=Object[_0xa6a604(0x222)],cr=Object[_0xa6a604(0x4ce)],hr=(_0x18886f,_0x2da75e,_0x1e5660,_0x11e6fe)=>{const _0x1df5c2=_0xa6a604;for(var _0x336dd0=_0x11e6fe>0x1?void 0x0:_0x11e6fe?cr(_0x2da75e,_0x1e5660):_0x2da75e,_0xde6189=_0x18886f[_0x1df5c2(0x391)]-0x1,_0x2d5ae3;_0xde6189>=0x0;_0xde6189--)(_0x2d5ae3=_0x18886f[_0xde6189])&&(_0x336dd0=(_0x11e6fe?_0x2d5ae3(_0x2da75e,_0x1e5660,_0x336dd0):_0x2d5ae3(_0x336dd0))||_0x336dd0);return _0x11e6fe&&_0x336dd0&&ar(_0x2da75e,_0x1e5660,_0x336dd0),_0x336dd0;},hs=(_0x52fd73,_0x27f600)=>(_0x429f0d,_0x25ea21)=>_0x27f600(_0x429f0d,_0x25ea21,_0x52fd73);let Xe=class{constructor(_0x41569c,_0x34fb00){const _0x431046=_0xa6a604;this[_0x431046(0x35a)]=_0x41569c,this[_0x431046(0x48c)]=_0x34fb00;}[_0xa6a604(0x255)](_0x19d86b){const _0x2b8dcb=_0xa6a604;var _0x105bd1;const _0x2fb556=this[_0x2b8dcb(0x35a)]['get'](_0x5c017d),_0x9bcf95=(_0x105bd1=_0x2fb556[_0x2b8dcb(0x549)]())!=null?_0x105bd1:[];if(_0x9bcf95[_0x2b8dcb(0x391)]===0x0)return;const _0x70017d=[{'id':_0x2b8dcb(0x23f),'params':{'unitId':_0x19d86b[_0x2b8dcb(0x1ec)],'actions':null,'textRanges':_0x9bcf95}}],_0x1bd57d=this[_0x2b8dcb(0x48c)][_0x2b8dcb(0x49b)](_0x19d86b,_0x70017d);if(!_0x5d8ed5(_0x1bd57d))throw _0x1bd57d[_0x2b8dcb(0x3f7)];const _0x248a68=_0x1bd57d[_0x2b8dcb(0x29d)][0x0][_0x2b8dcb(0x4d2)]['textRanges'];Array['isArray'](_0x248a68)&&_0x248a68[_0x2b8dcb(0x391)]&&_0x2fb556[_0x2b8dcb(0x453)](_0x248a68,!0x1);}};Xe=hr([hs(0x0,_0x160402(_0x283cc6)),hs(0x1,_0x5ea876)],Xe);const lr=new Set([_0x53345b['id']]);function ls(_0x4534cc,_0x5593c5,_0x34be74,_0x4964fb,_0x2fd2dd){const _0x547958=_0xa6a604;var _0x1e9f1a,_0x234a2c,_0x18fee9,_0x22a7cb;const _0x3f5822=[];for(const _0x5c908b of _0x4534cc)if(lr[_0x547958(0x1f9)](_0x5c908b['id'])){if(_0x3f5822['length']>0x0)break;_0x3f5822[_0x547958(0x539)](_0x5c908b);break;}else _0x3f5822[_0x547958(0x539)](_0x5c908b);const _0x138ffd=(_0x234a2c=(_0x1e9f1a=_0x2fd2dd[_0x547958(0x53a)]())==null?void 0x0:_0x1e9f1a['userID'])!=null?_0x234a2c:_0x547958(0x1ed),_0x4d0c3b=(_0x22a7cb=(_0x18fee9=_0x2fd2dd[_0x547958(0x53a)]())==null?void 0x0:_0x18fee9[_0x547958(0x50c)])!=null?_0x22a7cb:_0x547958(0x1ed);return{'changeset':{'unitID':_0x5593c5,'type':_0x894d81(_0x34be74[_0x547958(0x41e)](_0x5593c5)),'baseRev':_0x4964fb['getCurrentRevOfUnit'](_0x5593c5),'revision':0x0,'userID':_0x138ffd,'memberID':_0x4d0c3b,'mutations':_0x3f5822},'pendingMutations':_0x4534cc['slice'](_0x3f5822[_0x547958(0x391)])};}function _r(_0x3de64c,_0x1c38f2,_0x38e55f,_0x4dbe2c,_0x591aa0){const _0x4cfb70=_0xa6a604;var _0x488adf,_0x3602df,_0x4e4b95,_0x437d1a;const _0x2503be=[_0x3de64c[_0x4cfb70(0x3ae)]((_0x371702,_0x159b89)=>{const _0x142904=_0x4cfb70;var _0x2937d1;const {id:_0x265b34}=_0x371702,{id:_0x15f20c,type:_0x3c0573}=_0x159b89,_0x186e4b=(_0x2937d1=_0x371702['params'])!=null?_0x2937d1:{'actions':null},_0x5a2236=_0x159b89['params'];if(_0x265b34&&_0x265b34!==_0x15f20c)throw new Error(_0x142904(0x46a)+_0x265b34+_0x142904(0x1f0)+_0x15f20c+'.');return{..._0x371702,'id':_0x15f20c,'type':_0x3c0573,'params':{'unitId':_0x5a2236['unitId'],'textRanges':_0x5a2236['textRanges'],'actions':_0x285898[_0x142904(0x48a)](_0x186e4b[_0x142904(0x2e9)],_0x5a2236['actions'])}};},{})],_0x298fb4=(_0x3602df=(_0x488adf=_0x591aa0[_0x4cfb70(0x53a)]())==null?void 0x0:_0x488adf[_0x4cfb70(0x454)])!=null?_0x3602df:'unknown',_0xbf2224=(_0x437d1a=(_0x4e4b95=_0x591aa0[_0x4cfb70(0x53a)]())==null?void 0x0:_0x4e4b95[_0x4cfb70(0x50c)])!=null?_0x437d1a:_0x4cfb70(0x1ed);return{'changeset':{'unitID':_0x1c38f2,'type':_0x894d81(_0x38e55f[_0x4cfb70(0x41e)](_0x1c38f2)),'baseRev':_0x4dbe2c[_0x4cfb70(0x4c7)](_0x1c38f2),'revision':0x0,'userID':_0x298fb4,'memberID':_0xbf2224,'mutations':_0x2503be},'pendingMutations':[]};}const ur={'id':_0x497cca['id'],'type':_0x58275d[_0xa6a604(0x372)],'params':{}};var dr=Object[_0xa6a604(0x222)],fr=Object[_0xa6a604(0x4ce)],le=(_0x3e7584,_0x179878,_0x449e3d,_0xcf4f8c)=>{const _0x4eaced=_0xa6a604;for(var _0x5eabbd=_0xcf4f8c>0x1?void 0x0:_0xcf4f8c?fr(_0x179878,_0x449e3d):_0x179878,_0xb075a8=_0x3e7584[_0x4eaced(0x391)]-0x1,_0x4113a4;_0xb075a8>=0x0;_0xb075a8--)(_0x4113a4=_0x3e7584[_0xb075a8])&&(_0x5eabbd=(_0xcf4f8c?_0x4113a4(_0x179878,_0x449e3d,_0x5eabbd):_0x4113a4(_0x5eabbd))||_0x5eabbd);return _0xcf4f8c&&_0x5eabbd&&dr(_0x179878,_0x449e3d,_0x5eabbd),_0x5eabbd;},m=(_0x28e5c9,_0xd0c4f1)=>(_0x353fd2,_0x567996)=>_0xd0c4f1(_0x353fd2,_0x567996,_0x28e5c9),w=(_0x24c25b=>(_0x24c25b[_0xa6a604(0x41b)]='not_collab',_0x24c25b[_0xa6a604(0x2b2)]='synced',_0x24c25b[_0xa6a604(0x4a5)]='pending',_0x24c25b[_0xa6a604(0x3a3)]='awaiting',_0x24c25b[_0xa6a604(0x364)]=_0xa6a604(0x533),_0x24c25b['FETCH_MISS']=_0xa6a604(0x274),_0x24c25b['CONFLICT']=_0xa6a604(0x4bf),_0x24c25b['OFFLINE']=_0xa6a604(0x486),_0x24c25b))(w||{});class _e{constructor(_0x196cfb,_0x366ed7,_0x4b49df,_0x468712,_0x388af6,_0x1c4ca9,_0x30e099,_0x275d33,_0x104472){const _0x139bee=_0xa6a604;l(this,_0x139bee(0x214),null),l(this,_0x139bee(0x2ee),[]),(this[_0x139bee(0x1ec)]=_0x196cfb,this[_0x139bee(0x536)]=_0x366ed7,this['_handler']=_0x388af6,this[_0x139bee(0x4d3)]=_0x1c4ca9,this['_undoRedoService']=_0x30e099,this['_revisionService']=_0x275d33,this[_0x139bee(0x302)]=_0x104472,this[_0x139bee(0x214)]=_0x4b49df,this['_pendingMutations']=_0x468712);}[_0xa6a604(0x327)](_0x5ca338){const _0x301341=_0xa6a604,_0x2f3f54=this['_revisionService'][_0x301341(0x4c7)](this['unitID']);return _0x5ca338[_0x301341(0x543)]>_0x2f3f54+0x1?(this['_handler'][_0x301341(0x32d)]({'from':_0x2f3f54,'to':_0x5ca338[_0x301341(0x543)]-0x1}),!0x0):!0x1;}[_0xa6a604(0x235)](_0x291d00){const _0x1ba1a6=_0xa6a604;this[_0x1ba1a6(0x457)][_0x1ba1a6(0x3e4)](this['unitID'],_0x291d00);}[_0xa6a604(0x3c9)](_0x4bdf13){const _0x41d9a2=_0xa6a604;var _0x512c6b,_0x6c2a3d;(_0x6c2a3d=(_0x512c6b=this['_handler'])[_0x41d9a2(0x3e1)])==null||_0x6c2a3d[_0x41d9a2(0x24f)](_0x512c6b,_0x4bdf13);}[_0xa6a604(0x2a6)](_0x188735){const _0x2edf7c=_0xa6a604;var _0x1c24b5,_0xbfd004;return(_0xbfd004=(_0x1c24b5=this[_0x2edf7c(0x507)])['onTransformIME'])==null?void 0x0:_0xbfd004[_0x2edf7c(0x24f)](_0x1c24b5,_0x188735);}[_0xa6a604(0x267)](_0x18e330){const _0x4fb95a=_0xa6a604;var _0x277aae,_0xb52667,_0x273799;return(_0x273799=(_0xb52667=(_0x277aae=this['_handler'])[_0x4fb95a(0x42d)])==null?void 0x0:_0xb52667['call'](_0x277aae,_0x18e330))!=null?_0x273799:_0x18e330;}[_0xa6a604(0x277)](_0x31aefb){const _0x217545=_0xa6a604;var _0x59bfff,_0xaac94f;if(this[_0x217545(0x536)]===H[_0x217545(0x1eb)]){const {unitID:_0x519edd,mutations:_0x3b6319,memberID:_0x518f3a}=_0x31aefb,_0x5cecae=_0x3b6319[0x0][_0x217545(0x4d2)][_0x217545(0x2b6)];Array['isArray'](_0x5cecae)&&_0x5cecae[_0x217545(0x391)]>0x0&&((_0xaac94f=(_0x59bfff=this[_0x217545(0x507)])['onSyncEditingCollabCursor'])==null||_0xaac94f[_0x217545(0x24f)](_0x59bfff,{'unitID':_0x519edd,'memberID':_0x518f3a,'textRanges':_0x5cecae}));}}[_0xa6a604(0x270)](){const _0x575493=_0xa6a604;this[_0x575493(0x302)][_0x575493(0x31d)](this[_0x575493(0x1ec)],this[_0x575493(0x536)],this[_0x575493(0x214)],this['_pendingMutations']);}[_0xa6a604(0x4eb)](){const _0x3ad884=_0xa6a604;return this[_0x3ad884(0x4dc)][_0x3ad884(0x4c7)](this[_0x3ad884(0x1ec)]);}[_0xa6a604(0x273)](){const _0x372d40=_0xa6a604;this[_0x372d40(0x4dc)][_0x372d40(0x4cc)](this[_0x372d40(0x1ec)]);}[_0xa6a604(0x282)](_0x5d922b){const _0x49acf2=_0xa6a604;var _0x24a997;const _0x42b6fe=this[_0x49acf2(0x267)](_0x5d922b),_0x7f7135=_0x500ae1(_0x42b6fe['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x7f7135[_0x49acf2(0x3eb)])throw _0x7f7135[_0x49acf2(0x3f7)]instanceof Error?_0x7f7135[_0x49acf2(0x3f7)]:new Error((_0x24a997=_0x7f7135[_0x49acf2(0x3f7)])!=null?_0x24a997:_0x49acf2(0x36e));this[_0x49acf2(0x2a6)](_0x42b6fe),this[_0x49acf2(0x235)](_0x5d922b),this[_0x49acf2(0x3c9)](_0x42b6fe),this[_0x49acf2(0x277)](_0x42b6fe),this[_0x49acf2(0x273)]();}}let Se=class extends _e{constructor(_0x196519,_0x4129d9,_0x2e4b29,_0x39c193,_0x20d1a5,_0x81c1db,_0x222fd0,_0x32977e,_0x5cb966,_0x3d1912){const _0x574a01=_0xa6a604;super(_0x196519,_0x4129d9,null,[],_0x2e4b29,_0x32977e,_0x222fd0,_0x39c193,_0x20d1a5),l(this,_0x574a01(0x33f),'synced'),(this[_0x574a01(0x35a)]=_0x81c1db,this[_0x574a01(0x493)]=_0x5cb966,this['_transformService']=_0x3d1912);}['appendMutation'](_0x1bde24){const _0x226ccf=_0xa6a604,_0xc765c9=this[_0x226ccf(0x35a)][_0x226ccf(0x307)](K,this[_0x226ccf(0x1ec)],this['type'],[_0x1bde24],this[_0x226ccf(0x507)]);return _0xc765c9[_0x226ccf(0x4e0)](),_0xc765c9['_updateLocalCache'](),_0xc765c9;}[_0xa6a604(0x54b)](_0x310689){const _0x3eaf93=_0xa6a604;if(this[_0x3eaf93(0x327)](_0x310689))return this[_0x3eaf93(0x35a)][_0x3eaf93(0x307)](k,this['unitID'],this['type'],null,[],null,[_0x310689],this[_0x3eaf93(0x507)]);try{const _0x7d7f81=this['_transformService'][_0x3eaf93(0x49b)](_0x310689,[ur]);if(_0x5d8ed5(_0x7d7f81)){const {c1Prime:_0x15686a}=_0x7d7f81;return this[_0x3eaf93(0x282)](_0x15686a),this;}throw _0x7d7f81[_0x3eaf93(0x3f7)];}catch(_0x43019a){return this[_0x3eaf93(0x493)][_0x3eaf93(0x3f7)](_0x43019a),this[_0x3eaf93(0x4d1)](!0x1);}}['_onConflict'](_0x59e48f){const _0x98dce2=_0xa6a604;return this['_injector'][_0x98dce2(0x307)](Q,this[_0x98dce2(0x1ec)],this['type'],null,[],this['_handler'],_0x59e48f);}[_0xa6a604(0x544)](){const _0x4f7754=_0xa6a604;throw new Error(_0x4f7754(0x357));}[_0xa6a604(0x3d3)](){const _0x423f80=_0xa6a604;throw new Error(_0x423f80(0x4f5));}[_0xa6a604(0x381)](){const _0x3ae582=_0xa6a604;return this[_0x3ae582(0x35a)][_0x3ae582(0x307)](ee,this[_0x3ae582(0x1ec)],this[_0x3ae582(0x536)],null,[],this[_0x3ae582(0x507)]);}['toggleOnline'](){return this;}[_0xa6a604(0x4e3)](){const _0x327d17=_0xa6a604;throw new Error(_0x327d17(0x51b));}[_0xa6a604(0x4e7)](){const _0x5f14af=_0xa6a604,_0xa56016=this['_revisionService']['getCurrentRevOfUnit'](this[_0x5f14af(0x1ec)]);return this[_0x5f14af(0x507)][_0x5f14af(0x32d)]({'from':_0xa56016,'to':0x0}),this[_0x5f14af(0x35a)][_0x5f14af(0x307)](k,this['unitID'],this[_0x5f14af(0x536)],null,[],null,[],this[_0x5f14af(0x507)]);}};Se=le([m(0x3,_0x160402(_0x842000)),m(0x4,_0x160402(D)),m(0x5,_0x160402(_0x283cc6)),m(0x6,_0xfe397),m(0x7,_0x5a0862),m(0x8,_0x4e432b),m(0x9,_0x5ea876)],Se);let K=class extends _e{constructor(_0x228c70,_0x2ceeb1,_0x4fa078,_0x22a55e,_0x2b386b,_0x4dc804,_0x5075e4,_0xada763,_0x108391,_0x25307d,_0x36d4b8,_0xdb9956,_0x5da37e,_0x18ec29){const _0x4a2fe2=_0xa6a604;super(_0x228c70,_0x2ceeb1,null,_0x4fa078,_0x22a55e,_0x25307d,_0x18ec29,_0x4dc804,_0x5075e4),l(this,_0x4a2fe2(0x33f),_0x4a2fe2(0x3bd)),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this['_injector']=_0x2b386b,this[_0x4a2fe2(0x242)]=_0xada763,this['_logService']=_0x108391,this[_0x4a2fe2(0x325)]=_0x36d4b8,this[_0x4a2fe2(0x48c)]=_0xdb9956,this['_univerInstanceService']=_0x5da37e);}['appendMutation'](_0x11cc3e){const _0x5cbc88=_0xa6a604;return this['_pendingMutations'][_0x5cbc88(0x539)](_0x11cc3e),this[_0x5cbc88(0x270)](),this;}[_0xa6a604(0x54b)](_0x2211ac){const _0x586442=_0xa6a604;if(this[_0x586442(0x327)](_0x2211ac))return this[_0x586442(0x3d1)](),this[_0x586442(0x35a)][_0x586442(0x307)](k,this[_0x586442(0x1ec)],this[_0x586442(0x536)],null,this[_0x586442(0x2ee)],null,[_0x2211ac],this[_0x586442(0x507)]);try{const _0x1cb7bd=this[_0x586442(0x48c)][_0x586442(0x49b)](_0x2211ac,this['_pendingMutations']);if(_0x5d8ed5(_0x1cb7bd)){const {c1Prime:_0x198000,m2Prime:_0x1acb9b}=_0x1cb7bd;this[_0x586442(0x282)](_0x198000);const _0x3e5935=this[_0x586442(0x35a)][_0x586442(0x307)](K,this[_0x586442(0x1ec)],this[_0x586442(0x536)],_0x1acb9b,this[_0x586442(0x507)]);return this[_0x586442(0x3d1)](),_0x3e5935[_0x586442(0x4e0)](this['_scheduleTimestamp']?Math[_0x586442(0x4c5)](0x0,new Date()[_0x586442(0x3fb)]()-this['_scheduleTimestamp']):this[_0x586442(0x4bc)]()),_0x3e5935;}throw _0x1cb7bd[_0x586442(0x3f7)];}catch(_0x248b61){return this['_logService']['error'](_0x248b61),this[_0x586442(0x4d1)](!0x1);}}[_0xa6a604(0x544)](){const _0x46a0f5=_0xa6a604;throw new Error(_0x46a0f5(0x380));}['onRemoteRej'](){const _0x58ae5c=_0xa6a604;throw new Error(_0x58ae5c(0x2af));}[_0xa6a604(0x381)](){const _0x546a8=_0xa6a604;return this['_clearScheduledTask'](),this[_0x546a8(0x35a)]['createInstance'](ee,this[_0x546a8(0x1ec)],this[_0x546a8(0x536)],null,this[_0x546a8(0x2ee)],this[_0x546a8(0x507)]);}[_0xa6a604(0x46c)](){return this;}['_schedule'](_0x56d499){const _0x504d1b=_0xa6a604,_0x4e7d21=_0x56d499!=null?_0x56d499:this[_0x504d1b(0x4bc)]();this['_scheduleTimestamp']=new Date()[_0x504d1b(0x3fb)](),this[_0x504d1b(0x45d)]=window['setTimeout'](()=>{const _0x259b4b=_0x504d1b;this['_clearScheduledTask']();let _0x30427f=null;switch(this[_0x259b4b(0x536)]){case H[_0x259b4b(0x48b)]:{_0x30427f=ls(this['_pendingMutations'],this[_0x259b4b(0x1ec)],this['_univerInstanceService'],this[_0x259b4b(0x4dc)],this[_0x259b4b(0x242)]);break;}case H['UNIVER_DOC']:{this[_0x259b4b(0x2ee)]['every'](_0x211d03=>_0x211d03['id']===_0x1aac28['id'])?_0x30427f=_r(this['_pendingMutations'],this[_0x259b4b(0x1ec)],this[_0x259b4b(0x1fd)],this[_0x259b4b(0x4dc)],this[_0x259b4b(0x242)]):_0x30427f=ls(this[_0x259b4b(0x2ee)],this['unitID'],this[_0x259b4b(0x1fd)],this[_0x259b4b(0x4dc)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x259b4b(0x50f));}const {changeset:_0x21a711,pendingMutations:_0x418416}=_0x30427f;this[_0x259b4b(0x507)][_0x259b4b(0x2b1)](_0x21a711);const _0x218be9=_0x418416[_0x259b4b(0x391)]?this['_injector'][_0x259b4b(0x307)](X,this['unitID'],this[_0x259b4b(0x536)],_0x21a711,_0x418416,this[_0x259b4b(0x507)]):this[_0x259b4b(0x35a)][_0x259b4b(0x307)](Z,this['unitID'],this[_0x259b4b(0x536)],_0x21a711,this[_0x259b4b(0x507)]);_0x218be9[_0x259b4b(0x270)](),this[_0x259b4b(0x507)][_0x259b4b(0x3c8)](this,_0x218be9);},_0x4e7d21);}[_0xa6a604(0x4bc)](){const _0x343533=_0xa6a604;var _0xf53ef2;const _0x211e2e=this[_0x343533(0x325)][_0x343533(0x4e5)](L);return(_0xf53ef2=_0x211e2e==null?void 0x0:_0x211e2e[_0x343533(0x30f)])!=null?_0xf53ef2:gn;}[_0xa6a604(0x4e3)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa6a604(0x3d1)](){const _0x35e184=_0xa6a604;this[_0x35e184(0x45d)]!=null&&(clearTimeout(this[_0x35e184(0x45d)]),this[_0x35e184(0x45d)]=null);}[_0xa6a604(0x4d1)](_0x2ebdbc){const _0x2e8ae9=_0xa6a604;return this['_clearScheduledTask'](),this[_0x2e8ae9(0x35a)][_0x2e8ae9(0x307)](Q,this['unitID'],this[_0x2e8ae9(0x536)],null,this[_0x2e8ae9(0x2ee)],this['_handler'],_0x2ebdbc);}};K=le([m(0x4,_0x160402(_0x283cc6)),m(0x5,_0x160402(_0x842000)),m(0x6,_0x160402(D)),m(0x7,_0x160402(ae)),m(0x8,_0x4e432b),m(0x9,_0x5a0862),m(0xa,_0x123c7a),m(0xb,_0x5ea876),m(0xc,_0x33adea),m(0xd,_0xfe397)],K);let Z=class extends _e{constructor(_0x4f7aac,_0x2a73f9,_0x35571f,_0x46c39b,_0x1ac8f6,_0x16a71b,_0x509b23,_0x401945,_0x1d5e8b,_0x1537aa,_0x124337){const _0x3e384a=_0xa6a604;super(_0x4f7aac,_0x2a73f9,_0x35571f,[],_0x46c39b,_0x401945,_0x124337,_0x16a71b,_0x509b23),l(this,_0x3e384a(0x33f),_0x3e384a(0x2e7)),(this[_0x3e384a(0x35a)]=_0x1ac8f6,this['_logService']=_0x1d5e8b,this[_0x3e384a(0x48c)]=_0x1537aa);}[_0xa6a604(0x318)](_0x3a07f9){const _0x53737a=_0xa6a604,_0x135a71=this[_0x53737a(0x35a)]['createInstance'](X,this[_0x53737a(0x1ec)],this[_0x53737a(0x536)],this[_0x53737a(0x214)],[_0x3a07f9],this[_0x53737a(0x507)]);return _0x135a71[_0x53737a(0x270)](),_0x135a71;}['onRemoteChangeset'](_0x54c4bf){const _0x37b001=_0xa6a604;if(this['_checkMissing'](_0x54c4bf))return this[_0x37b001(0x35a)][_0x37b001(0x307)](k,this[_0x37b001(0x1ec)],this['type'],this[_0x37b001(0x214)],[],null,[_0x54c4bf],this[_0x37b001(0x507)]);try{const _0x19f85a=this[_0x37b001(0x48c)]['transformChangesets']([_0x54c4bf],[this[_0x37b001(0x214)]],!0x1);if(_0x42a926(_0x19f85a)){const {c1Prime:_0x17d247,c2Prime:_0x364dc1}=_0x19f85a;this['_executeRemoteChangeset'](_0x17d247[0x0]),_0x364dc1[0x0][_0x37b001(0x3a5)]=this[_0x37b001(0x4eb)]();const _0x3a5043=this[_0x37b001(0x35a)][_0x37b001(0x307)](Z,this[_0x37b001(0x1ec)],this[_0x37b001(0x536)],_0x364dc1[0x0],this[_0x37b001(0x507)]);return _0x3a5043['_updateLocalCache'](),_0x3a5043;}return this[_0x37b001(0x4d1)](!0x1);}catch(_0x48e437){return this[_0x37b001(0x493)][_0x37b001(0x3f7)](_0x48e437),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x4bb870){const _0x14cf02=_0xa6a604,_0x57561a=this[_0x14cf02(0x4dc)][_0x14cf02(0x4c7)](this[_0x14cf02(0x1ec)]);if(_0x4bb870[_0x14cf02(0x543)]<_0x57561a-0x1)return this;if(this['_checkMissing'](_0x4bb870))return this['_injector'][_0x14cf02(0x307)](k,this[_0x14cf02(0x1ec)],this[_0x14cf02(0x536)],null,[],this[_0x14cf02(0x214)],[],this[_0x14cf02(0x507)]);this[_0x14cf02(0x273)]();const _0xfccbad=this[_0x14cf02(0x35a)][_0x14cf02(0x307)](Se,this[_0x14cf02(0x1ec)],this[_0x14cf02(0x536)],this[_0x14cf02(0x507)]);return _0xfccbad[_0x14cf02(0x270)](),_0xfccbad;}[_0xa6a604(0x3d3)](_0xbcea47){const _0xdb948e=_0xa6a604;return this[_0xdb948e(0x4d1)](!!(_0xbcea47!=null&&_0xbcea47['isPermissionRej']));}[_0xa6a604(0x381)](){const _0x78ad1a=_0xa6a604;return this[_0x78ad1a(0x35a)][_0x78ad1a(0x307)](ee,this['unitID'],this[_0x78ad1a(0x536)],this[_0x78ad1a(0x214)],[],this['_handler']);}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4e3)](){const _0x14df0c=_0xa6a604;this[_0x14df0c(0x507)][_0x14df0c(0x2b1)](this[_0x14df0c(0x214)]);}[_0xa6a604(0x4d1)](_0x3d2293){const _0xe065b2=_0xa6a604;return this[_0xe065b2(0x35a)][_0xe065b2(0x307)](Q,this[_0xe065b2(0x1ec)],this[_0xe065b2(0x536)],this['_awaitingChangeset'],[],this[_0xe065b2(0x507)],_0x3d2293);}};Z=le([m(0x4,_0x160402(_0x283cc6)),m(0x5,_0x160402(_0x842000)),m(0x6,_0x160402(D)),m(0x7,_0x5a0862),m(0x8,_0x4e432b),m(0x9,_0x5ea876),m(0xa,_0xfe397)],Z);let X=class extends _e{constructor(_0x2b77e8,_0x49037a,_0x18c231,_0x4d678f,_0xae2dfd,_0x5d16f5,_0xaa7ad2,_0x2bce29,_0x268092,_0x29d077,_0x44ab11,_0x5c74f8){const _0x19b593=_0xa6a604;super(_0x2b77e8,_0x49037a,_0x18c231,_0x4d678f,_0xae2dfd,_0x268092,_0x5c74f8,_0xaa7ad2,_0x2bce29),l(this,'status','awaiting_with_pending'),(this['_injector']=_0x5d16f5,this['_logService']=_0x29d077,this[_0x19b593(0x48c)]=_0x44ab11);}['appendMutation'](_0x1d1d19){return this['_pendingMutations']['push'](_0x1d1d19),this;}[_0xa6a604(0x54b)](_0x1ed5a3){const _0x49d2d3=_0xa6a604;if(this[_0x49d2d3(0x327)](_0x1ed5a3))return this[_0x49d2d3(0x35a)][_0x49d2d3(0x307)](k,this['unitID'],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x1ed5a3],this[_0x49d2d3(0x507)]);try{const _0x4f7ffc=this[_0x49d2d3(0x48c)][_0x49d2d3(0x351)]([_0x1ed5a3],[this[_0x49d2d3(0x214)]],!0x1);if(_0x42a926(_0x4f7ffc)){const {c1Prime:_0x4dac2b,c2Prime:_0x36e7bf}=_0x4f7ffc,_0x301f47=this[_0x49d2d3(0x48c)][_0x49d2d3(0x49b)](_0x4dac2b[0x0],this[_0x49d2d3(0x2ee)]);if(_0x5d8ed5(_0x301f47)){const {c1Prime:_0x3415d9,m2Prime:_0x1c9443}=_0x301f47;return this['_executeRemoteChangeset'](_0x3415d9),_0x36e7bf[0x0][_0x49d2d3(0x3a5)]=this['_getCurrentRevision'](),this[_0x49d2d3(0x35a)][_0x49d2d3(0x307)](X,this[_0x49d2d3(0x1ec)],this['type'],_0x36e7bf[0x0],_0x1c9443,this['_handler']);}throw _0x301f47[_0x49d2d3(0x3f7)];}throw _0x4f7ffc['error'];}catch(_0xf98b09){return this[_0x49d2d3(0x493)][_0x49d2d3(0x3f7)](_0xf98b09),this[_0x49d2d3(0x4d1)](!0x1);}}[_0xa6a604(0x544)](_0x15d843){const _0x18c479=_0xa6a604;if(this[_0x18c479(0x327)](_0x15d843))return this[_0x18c479(0x35a)][_0x18c479(0x307)](k,this[_0x18c479(0x1ec)],this[_0x18c479(0x536)],null,this['_pendingMutations'],this[_0x18c479(0x214)],[],this[_0x18c479(0x507)]);this[_0x18c479(0x273)]();const _0x57afe2=this[_0x18c479(0x35a)][_0x18c479(0x307)](K,this[_0x18c479(0x1ec)],this[_0x18c479(0x536)],this[_0x18c479(0x2ee)],this[_0x18c479(0x507)]);return _0x57afe2[_0x18c479(0x4e0)](),_0x57afe2[_0x18c479(0x270)](),_0x57afe2;}[_0xa6a604(0x3d3)](_0xa99602){return this['_onConflict'](!!(_0xa99602!=null&&_0xa99602['isPermissionRej']));}[_0xa6a604(0x381)](){const _0x47b35e=_0xa6a604;return this['_injector'][_0x47b35e(0x307)](ee,this[_0x47b35e(0x1ec)],this[_0x47b35e(0x536)],this['_awaitingChangeset'],this[_0x47b35e(0x2ee)],this['_handler']);}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4e3)](){const _0xccdb05=_0xa6a604;this[_0xccdb05(0x507)][_0xccdb05(0x2b1)](this[_0xccdb05(0x214)]);}[_0xa6a604(0x4d1)](_0x59e30f){const _0x54ce07=_0xa6a604;return this[_0x54ce07(0x35a)][_0x54ce07(0x307)](Q,this['unitID'],this[_0x54ce07(0x536)],null,this['_pendingMutations'],this['_handler'],_0x59e30f);}};X=le([m(0x5,_0x160402(_0x283cc6)),m(0x6,_0x160402(_0x842000)),m(0x7,_0x160402(D)),m(0x8,_0x5a0862),m(0x9,_0x4e432b),m(0xa,_0x5ea876),m(0xb,_0xfe397)],X);let Q=class extends _e{constructor(_0x4d0db5,_0x552f43,_0x1d7c33,_0x3aad42,_0x3231b0,_0x20c338=!0x1,_0x57c3b3,_0x4de499,_0x2bca99,_0x4ddcfd,_0x810cd7,_0x33b308,_0x43dc3d){const _0x482701=_0xa6a604;super(_0x4d0db5,_0x552f43,_0x1d7c33,_0x3aad42,_0x3231b0,_0x4de499,_0x2bca99,_0x810cd7,_0x4ddcfd),l(this,_0x482701(0x33f),_0x482701(0x4bf)),(this['_isPermissionRej']=_0x20c338,this[_0x482701(0x2b0)]=_0x57c3b3,this[_0x482701(0x247)]=_0x33b308,this[_0x482701(0x36a)]=_0x43dc3d,this[_0x482701(0x4d9)](),this[_0x482701(0x322)](),this[_0x482701(0x38c)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0xa6a604(0x544)](){return this;}[_0xa6a604(0x3d3)](){return this;}[_0xa6a604(0x381)](){return this;}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4e3)](){const _0x293495=_0xa6a604;throw new Error(_0x293495(0x283));}[_0xa6a604(0x322)](){const _0x49eb8b=_0xa6a604;this[_0x49eb8b(0x302)]['updateOfflineData'](this[_0x49eb8b(0x1ec)],this[_0x49eb8b(0x536)],null,[]);}[_0xa6a604(0x4d9)](){const _0x2583d0=_0xa6a604;this[_0x2583d0(0x516)]?this['_notificationService']['show']({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}):this[_0x2583d0(0x36a)][_0x2583d0(0x4d8)]({'title':this[_0x2583d0(0x247)]['t'](_0x2583d0(0x475)),'content':this['_localeService']['t'](_0x2583d0(0x3ac)),'type':_0x2583d0(0x3f7),'duration':0x0});}['_disableEditing'](){const _0x4fb3e9=_0xa6a604;this['_permissionService'][_0x4fb3e9(0x456)](new _0x1c28a6(this['unitID'])['id'],!0x1);}};Q=le([m(0x6,_0x160402(_0x375c1f)),m(0x7,_0x5a0862),m(0x8,_0xfe397),m(0x9,_0x160402(D)),m(0xa,_0x160402(_0x842000)),m(0xb,_0x160402(_0x2f3b7b)),m(0xc,_0x53e404)],Q);let ee=class extends _e{constructor(_0x5b7324,_0x57526a,_0x538910,_0x5b4a7e,_0x4af542,_0x340c40,_0x182e67,_0x397d56,_0x4a9881,_0x296939){const _0x32a416=_0xa6a604;super(_0x5b7324,_0x57526a,_0x538910,_0x5b4a7e,_0x4af542,_0x4a9881,_0x296939,_0x182e67,_0x397d56),l(this,_0x32a416(0x33f),_0x32a416(0x486)),this[_0x32a416(0x35a)]=_0x340c40;}['appendMutation'](_0x1049c7){const _0x12789a=_0xa6a604;return this[_0x12789a(0x2ee)][_0x12789a(0x539)](_0x1049c7),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x351cad){const _0x4131cd=_0xa6a604;throw new Error(_0x4131cd(0x303));}['onRemoteAck'](){const _0x2c5e53=_0xa6a604;throw new Error(_0x2c5e53(0x470));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0xa6a604(0x381)](){return this;}[_0xa6a604(0x46c)](){const _0x3ad46c=_0xa6a604,{_injector:_0x3361e3,_pendingMutations:_0x2f76cb,_awaitingChangeset:_0x15ce23,unitID:_0x1f060c,_handler:_0x3e348e,type:_0x2390ec}=this,_0x46fde8=Hs(_0x3361e3,_0x1f060c,_0x2390ec,_0x15ce23,_0x2f76cb,_0x3e348e);return _0x46fde8 instanceof K?_0x46fde8[_0x3ad46c(0x4e0)]():(_0x46fde8 instanceof X||_0x46fde8 instanceof Z)&&_0x46fde8[_0x3ad46c(0x4e3)](),_0x46fde8;}['resend'](){const _0x4a2e01=_0xa6a604;throw new Error(_0x4a2e01(0x2cc));}};ee=le([m(0x5,_0x160402(_0x283cc6)),m(0x6,_0x160402(_0x842000)),m(0x7,_0x160402(D)),m(0x8,_0x5a0862),m(0x9,_0xfe397)],ee);let k=class extends _e{constructor(_0x29e218,_0x12e127,_0x4ec734,_0x5d3cdb,_0x4598d0,_0x4501b1,_0x59d889,_0x2855c9,_0x53d9ee,_0x3964fb,_0x3c3f9e,_0x39b077,_0x515a8a,_0x259064){const _0x2e1743=_0xa6a604;super(_0x29e218,_0x12e127,_0x4ec734,_0x5d3cdb,_0x59d889,_0x39b077,_0x515a8a,_0x53d9ee,_0x3964fb),l(this,_0x2e1743(0x33f),_0x2e1743(0x274)),(this[_0x2e1743(0x407)]=_0x4598d0,this['_queuedRemoteChangesets']=_0x4501b1,this[_0x2e1743(0x35a)]=_0x2855c9,this[_0x2e1743(0x493)]=_0x3c3f9e,this[_0x2e1743(0x48c)]=_0x259064);}[_0xa6a604(0x1e6)](_0xd2f6a5){const _0x5d4adc=_0xa6a604;try{const _0x893595=[..._0xd2f6a5,...this['_queuedRemoteChangesets']],_0x3b2e24=[this['_awaitingChangeset']||this[_0x5d4adc(0x407)]][_0x5d4adc(0x346)](_0x4c1b9e=>!!_0x4c1b9e);let _0x504fce,_0x3bf468;if(_0x3b2e24[_0x5d4adc(0x391)]){const _0x575376=this[_0x5d4adc(0x48c)][_0x5d4adc(0x351)](_0x893595,_0x3b2e24,!0x1);if(!_0x42a926(_0x575376))throw _0x575376[_0x5d4adc(0x3f7)];_0x504fce=_0x575376[_0x5d4adc(0x24e)],_0x3bf468=_0x575376[_0x5d4adc(0x2b3)];}else _0x504fce=_0x893595,_0x3bf468=[];let _0x2c22dd=this[_0x5d4adc(0x2ee)];_0x504fce[_0x5d4adc(0x213)](_0x1aea12=>{const _0x45ab27=_0x5d4adc;let _0x248532;if(_0x2c22dd['length']){const _0x55a22a=this[_0x45ab27(0x48c)]['transformMutationsWithChangeset'](_0x1aea12,_0x2c22dd);if(!_0x5d8ed5(_0x55a22a))throw _0x55a22a[_0x45ab27(0x3f7)];_0x248532=_0x55a22a[_0x45ab27(0x24e)],_0x2c22dd=_0x55a22a[_0x45ab27(0x29d)];}else _0x248532=_0x1aea12;this['_executeRemoteChangeset'](_0x248532);}),this[_0x5d4adc(0x407)]&&this[_0x5d4adc(0x273)](),this[_0x5d4adc(0x214)]&&_0x3bf468['length']&&(_0x3bf468[0x0][_0x5d4adc(0x3a5)]=this['_getCurrentRevision']());let _0x363dbe;if(this[_0x5d4adc(0x214)]&&_0x2c22dd['length']!==0x0)_0x363dbe=this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](X,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],_0x3bf468[0x0],_0x2c22dd,this[_0x5d4adc(0x507)]);else{if(this[_0x5d4adc(0x214)]&&_0x2c22dd[_0x5d4adc(0x391)]===0x0)_0x3bf468[0x0]['baseRev']=this[_0x5d4adc(0x4eb)](),_0x363dbe=this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](Z,this[_0x5d4adc(0x1ec)],this['type'],_0x3bf468[0x0],this[_0x5d4adc(0x507)]);else{if(_0x2c22dd['length']!==0x0){const _0x8d8fd4=this['_injector']['createInstance'](K,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],_0x2c22dd,this[_0x5d4adc(0x507)]);_0x8d8fd4['_schedule'](),_0x363dbe=_0x8d8fd4;}else _0x363dbe=this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](Se,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],this[_0x5d4adc(0x507)]);}}return _0x363dbe[_0x5d4adc(0x270)](),_0x363dbe;}catch(_0x32315a){return this[_0x5d4adc(0x493)][_0x5d4adc(0x3f7)]('[FetchMissState]',_0x5d4adc(0x3dd),_0x32315a),this[_0x5d4adc(0x35a)][_0x5d4adc(0x307)](Q,this[_0x5d4adc(0x1ec)],this[_0x5d4adc(0x536)],this['_awaitingChangeset'],this[_0x5d4adc(0x2ee)],this['_handler'],!0x1);}}[_0xa6a604(0x4e3)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa6a604(0x318)](_0x5baf4a){const _0x54b5db=_0xa6a604;return this[_0x54b5db(0x2ee)][_0x54b5db(0x539)](_0x5baf4a),this;}[_0xa6a604(0x54b)](_0x26e2e1){return this['_queuedRemoteChangesets']['push'](_0x26e2e1),this;}[_0xa6a604(0x544)](_0x7f1248){const _0x26aac3=_0xa6a604;if(this[_0x26aac3(0x214)])return this[_0x26aac3(0x407)]=this[_0x26aac3(0x214)],this[_0x26aac3(0x214)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x4af38f){const _0x543780=_0xa6a604;return this[_0x543780(0x4d1)](!!(_0x4af38f!=null&&_0x4af38f['isPermissionRej']));}[_0xa6a604(0x381)](){const _0x44fa1c=_0xa6a604;return this[_0x44fa1c(0x35a)][_0x44fa1c(0x307)](ee,this[_0x44fa1c(0x1ec)],this[_0x44fa1c(0x536)],this[_0x44fa1c(0x214)],this['_pendingMutations'],this[_0x44fa1c(0x507)]);}[_0xa6a604(0x46c)](){return this;}[_0xa6a604(0x4d1)](_0x150e55){const _0x1159b2=_0xa6a604;return this[_0x1159b2(0x35a)][_0x1159b2(0x307)](Q,this[_0x1159b2(0x1ec)],this['type'],this[_0x1159b2(0x214)],this[_0x1159b2(0x2ee)],this[_0x1159b2(0x507)],_0x150e55);}};k=le([m(0x7,_0x160402(_0x283cc6)),m(0x8,_0x160402(_0x842000)),m(0x9,_0x160402(D)),m(0xa,_0x4e432b),m(0xb,_0x5a0862),m(0xc,_0xfe397),m(0xd,_0x5ea876)],k);function Hs(_0x5dae2e,_0x33ea6a,_0x511879,_0x316c33,_0x1c5232,_0x26d5b5){const _0x5eee3a=_0xa6a604;return _0x316c33&&_0x1c5232[_0x5eee3a(0x391)]?_0x5dae2e[_0x5eee3a(0x307)](X,_0x33ea6a,_0x511879,_0x316c33,_0x1c5232,_0x26d5b5):_0x316c33?_0x5dae2e[_0x5eee3a(0x307)](Z,_0x33ea6a,_0x511879,_0x316c33,_0x26d5b5):_0x1c5232[_0x5eee3a(0x391)]?_0x5dae2e[_0x5eee3a(0x307)](K,_0x33ea6a,_0x511879,_0x1c5232,_0x26d5b5):_0x5dae2e['createInstance'](Se,_0x33ea6a,_0x511879,_0x26d5b5);}var mr=Object[_0xa6a604(0x222)],gr=Object['getOwnPropertyDescriptor'],Vt=(_0x52c7f0,_0x126f36,_0x51b6c8,_0x590d21)=>{for(var _0x2bc59e=_0x590d21>0x1?void 0x0:_0x590d21?gr(_0x126f36,_0x51b6c8):_0x126f36,_0x94d18b=_0x52c7f0['length']-0x1,_0xe4623;_0x94d18b>=0x0;_0x94d18b--)(_0xe4623=_0x52c7f0[_0x94d18b])&&(_0x2bc59e=(_0x590d21?_0xe4623(_0x126f36,_0x51b6c8,_0x2bc59e):_0xe4623(_0x2bc59e))||_0x2bc59e);return _0x590d21&&_0x2bc59e&&mr(_0x126f36,_0x51b6c8,_0x2bc59e),_0x2bc59e;},p=(_0x496ea0,_0x368090)=>(_0x4de486,_0x2ef9ed)=>_0x368090(_0x4de486,_0x2ef9ed,_0x496ea0);let Je=class extends _0x48a1ad{constructor(_0x15bf92,_0x2320b8,_0x4e52ca,_0x102d83,_0xb7c59f,_0x4f8b56,_0xebf470,_0x1704e0,_0x2fcd2b,_0x204f2a,_0x209e9b,_0x112872,_0x5b7007){const _0xd1fe4d=_0xa6a604;super(),l(this,_0xd1fe4d(0x41d),new _0x3d8ff6(null)),l(this,_0xd1fe4d(0x410),this[_0xd1fe4d(0x41d)][_0xd1fe4d(0x294)]()),l(this,_0xd1fe4d(0x201)),l(this,_0xd1fe4d(0x27d),!0x1),l(this,_0xd1fe4d(0x23c),this[_0xd1fe4d(0x410)][_0xd1fe4d(0x3b6)](_0x5c23c9(_0x543768=>_0x543768?_0x543768['status']:w['OFFLINE']),_0x1acd58(0x1))),l(this,_0xd1fe4d(0x256),!0x1),l(this,_0xd1fe4d(0x48e),[]),(this[_0xd1fe4d(0x1ec)]=_0x15bf92,this[_0xd1fe4d(0x260)]=_0x2320b8,this[_0xd1fe4d(0x239)]=_0x4e52ca,this['_injector']=_0x102d83,this['_localCacheService']=_0xb7c59f,this[_0xd1fe4d(0x3af)]=_0x4f8b56,this[_0xd1fe4d(0x247)]=_0xebf470,this[_0xd1fe4d(0x4dc)]=_0x1704e0,this['_logService']=_0x2fcd2b,this['_commandService']=_0x204f2a,this[_0xd1fe4d(0x44c)]=_0x209e9b,this[_0xd1fe4d(0x2b0)]=_0x112872,this[_0xd1fe4d(0x20e)]=_0x5b7007);}get[_0xa6a604(0x349)](){const _0x4ff91d=_0xa6a604;return this[_0x4ff91d(0x201)];}async[_0xa6a604(0x4c6)](){const _0x1a7829=_0xa6a604;if(this[_0x1a7829(0x349)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1a7829(0x21e)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x9a96d1(()=>{const _0xd3ca85=_0x40a3;this[_0xd3ca85(0x27d)]=!0x1,this[_0xd3ca85(0x47a)]();});}[_0xa6a604(0x2c0)](_0x1a3266){const _0x5aa84f=_0xa6a604;this['_state']=_0x1a3266,this[_0x5aa84f(0x41d)][_0x5aa84f(0x480)](_0x1a3266);}async['_init'](){const _0x47be5=_0xa6a604;var _0x1bf7be;this['_updateState'](await this[_0x47be5(0x479)]()),this[_0x47be5(0x20e)]&&((_0x1bf7be=this['_singleActiveUnitService'])==null||_0x1bf7be[_0x47be5(0x390)](this[_0x47be5(0x1ec)]),this[_0x47be5(0x4f3)](this[_0x47be5(0x20e)]['getUnitStatus$'](this[_0x47be5(0x1ec)])['subscribe'](_0x46f3ae=>{const _0x586f0a=_0x47be5;this[_0x586f0a(0x493)][_0x586f0a(0x408)](_0x586f0a(0x40d),'editing\x20status\x20changed\x20to',_0x46f3ae),_0x46f3ae===js[_0x586f0a(0x54e)]?(this[_0x586f0a(0x44c)]['show']({'content':this[_0x586f0a(0x247)]['t'](_0x586f0a(0x2f7)),'type':_0x1beabd[_0x586f0a(0x299)]}),this[_0x586f0a(0x2b0)][_0x586f0a(0x456)](new _0x1c28a6(this[_0x586f0a(0x1ec)])['id'],!0x1)):this[_0x586f0a(0x2b0)]['updatePermissionPoint'](new _0x1c28a6(this[_0x586f0a(0x1ec)])['id'],!0x0);})));let _0x2e9305=!0x1;return this[_0x47be5(0x4f3)](this['session']['sessionStatus$'][_0x47be5(0x426)](_0x3b3cd8=>{const _0x16f8d6=_0x47be5;_0x3b3cd8===G[_0x16f8d6(0x3a2)]?this['_toggleOnline'](_0x2e9305):_0x3b3cd8===G[_0x16f8d6(0x210)]&&(_0x2e9305=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x47be5(0x260)][_0x47be5(0x2bc)][_0x47be5(0x426)](_0x338b60=>{const _0x69d6e0=_0x47be5;try{switch(_0x338b60['eventID']){case _0x17f69c[_0x69d6e0(0x427)]:{this[_0x69d6e0(0x3bc)](_0x44554a(_0x338b60[_0x69d6e0(0x525)]));break;}case _0x17f69c[_0x69d6e0(0x4a4)]:{this[_0x69d6e0(0x1f4)](_0x338b60['data']);break;}case _0x17f69c[_0x69d6e0(0x2d4)]:{this[_0x69d6e0(0x4bb)]();break;}case _0x17f69c[_0x69d6e0(0x49f)]:{this[_0x69d6e0(0x396)](_0x338b60['data'][_0x69d6e0(0x51e)][_0x69d6e0(0x422)](_0x3f5d86=>_0x44554a(_0x3f5d86)));break;}case _0x17f69c[_0x69d6e0(0x2f0)]:this[_0x69d6e0(0x4bb)]({'isPermissionRej':!0x0});}}catch(_0x3b1839){throw console[_0x69d6e0(0x3f7)](_0x69d6e0(0x3a7),_0x3b1839),_0x3b1839;}})),this[_0x47be5(0x201)];}[_0xa6a604(0x1f8)](){const _0x4d9af0=_0xa6a604;this[_0x4d9af0(0x256)]=!0x1;}[_0xa6a604(0x348)](){const _0x50c92f=_0xa6a604;if(this[_0x50c92f(0x256)])throw new Error(_0x50c92f(0x4a2));this[_0x50c92f(0x256)]=!0x0;}[_0xa6a604(0x3c7)](_0x1eba9f){const _0x63b216=_0xa6a604;this[_0x63b216(0x348)](),this[_0x63b216(0x2c0)](this[_0x63b216(0x201)][_0x63b216(0x318)](_0x1eba9f)),this[_0x63b216(0x1f8)]();}[_0xa6a604(0x3bc)](_0x682c13){const _0x17becb=_0xa6a604;if(!(_0x682c13[_0x17becb(0x543)]<=this[_0x17becb(0x4dc)][_0x17becb(0x4c7)](this[_0x17becb(0x1ec)]))){if(this[_0x17becb(0x27d)]){this[_0x17becb(0x48e)]['push'](_0x682c13);return;}this[_0x17becb(0x3d7)](_0x682c13);}}['_exhaustRemoteChangesetQueue'](){const _0x44e414=_0xa6a604;this['_remoteChangesetQueue'][_0x44e414(0x213)](_0x81b2dc=>this[_0x44e414(0x3d7)](_0x81b2dc)),this[_0x44e414(0x48e)]=[];}['_applyRemoteChangeset'](_0xc9194){const _0x5bef2f=_0xa6a604,_0x3d9b6e=this[_0x5bef2f(0x3af)][_0x5bef2f(0x463)][_0x5bef2f(0x37a)](this['_compressMutationService'][_0x5bef2f(0x463)][_0x5bef2f(0x428)]()[_0x5bef2f(0x27f)])(_0xc9194['mutations'],null)||_0xc9194[_0x5bef2f(0x2ce)],_0xe86207={..._0xc9194,'mutations':_0x3d9b6e};this[_0x5bef2f(0x348)](),this[_0x5bef2f(0x2c0)](this[_0x5bef2f(0x201)]['onRemoteChangeset'](_0xe86207)),this[_0x5bef2f(0x1f8)]();}[_0xa6a604(0x1f4)](_0x56fb74){const _0x5ada82=_0xa6a604;this['_lockTransition'](),this[_0x5ada82(0x2c0)](this[_0x5ada82(0x201)][_0x5ada82(0x544)](_0x56fb74)),this[_0x5ada82(0x1f8)]();}[_0xa6a604(0x4bb)](_0x30ba38){const _0x13ecdb=_0xa6a604;this[_0x13ecdb(0x348)](),this['_updateState'](this[_0x13ecdb(0x201)]['onRemoteRej'](_0x30ba38)),this[_0x13ecdb(0x1f8)]();}[_0xa6a604(0x396)](_0x4ee215){const _0x5f14a4=_0xa6a604;if(!(this[_0x5f14a4(0x201)]instanceof k))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x3c62f5=_0x4ee215['map'](_0x36cd53=>{const _0x742f04=_0x5f14a4,_0x5e7739=this['_compressMutationService'][_0x742f04(0x463)][_0x742f04(0x37a)](this[_0x742f04(0x3af)]['interceptor']['getInterceptPoints']()[_0x742f04(0x27f)])(_0x36cd53[_0x742f04(0x2ce)],null)||_0x36cd53[_0x742f04(0x2ce)];return{..._0x36cd53,'mutations':_0x5e7739};});this[_0x5f14a4(0x348)](),this[_0x5f14a4(0x2c0)](this[_0x5f14a4(0x201)]['onMissedChangesetFetched'](_0x3c62f5)),this[_0x5f14a4(0x1f8)]();}[_0xa6a604(0x33e)](){const _0x156e9e=_0xa6a604;this['_lockTransition'](),this['_updateState'](this['_state'][_0x156e9e(0x381)]()),this[_0x156e9e(0x1f8)]();}[_0xa6a604(0x511)](_0xcdc268=!0x1){const _0x2b8635=_0xa6a604;this[_0x2b8635(0x348)](),this[_0x2b8635(0x2c0)](this[_0x2b8635(0x201)][_0x2b8635(0x46c)]()),this[_0x2b8635(0x1f8)]();const _0x174e73=this[_0x2b8635(0x201)];_0xcdc268&&_0x174e73 instanceof Se&&(this[_0x2b8635(0x348)](),this[_0x2b8635(0x2c0)](_0x174e73[_0x2b8635(0x4e7)]()),this[_0x2b8635(0x1f8)]());}async['_createInitialState'](){return new Promise(_0x376313=>{const _0x58f496=_0x40a3;this['session']['sessionStatus$'][_0x58f496(0x3b6)](_0x9fd648(0x1))[_0x58f496(0x426)](async _0x20560b=>{_0x376313(await this['_createInitialStateImpl'](_0x20560b===G['ONLINE']));});});}[_0xa6a604(0x4d4)](){const _0x2e91f9=_0xa6a604,_0x3a784c=this[_0x2e91f9(0x1ec)];return{'onStateChange':(_0x48ffbe,_0x3650f0)=>{const _0xc2cfd4=_0x2e91f9;if(_0x48ffbe!==this[_0xc2cfd4(0x201)])throw new Error(_0xc2cfd4(0x2d5)+_0x48ffbe[_0xc2cfd4(0x33f)]+_0xc2cfd4(0x22b)+_0x3650f0[_0xc2cfd4(0x33f)]+_0xc2cfd4(0x319)+this[_0xc2cfd4(0x201)]['status']);this[_0xc2cfd4(0x2c0)](_0x3650f0);},'onSendChangeset':_0x6f0982=>{const _0x3522b1=_0x2e91f9,_0x4f709c={'eventID':_0x17f69c[_0x3522b1(0x54d)],'data':{'unitID':_0x6f0982[_0x3522b1(0x1ec)],'unitType':this['_type'],'changeset':_0x6f0982,'memberID':this[_0x3522b1(0x260)][_0x3522b1(0x2c6)]()}};this[_0x3522b1(0x260)][_0x3522b1(0x233)](_0x4f709c,this[_0x3522b1(0x1ec)]);},'onMissingChangesets':({from:_0x1627d4,to:_0x29dae7})=>{const _0x24be0e=_0x2e91f9;this[_0x24be0e(0x493)][_0x24be0e(0x408)](_0x24be0e(0x40d),_0x24be0e(0x225)+_0x1627d4+'\x20to\x20'+_0x29dae7);const _0x710015={'eventID':_0x17f69c['FETCH_MISSING'],'data':{'unitID':_0x3a784c,'unitType':this[_0x24be0e(0x239)],'from':_0x1627d4,'to':_0x29dae7}};this[_0x24be0e(0x260)][_0x24be0e(0x233)](_0x710015,this[_0x24be0e(0x1ec)]);}};}async[_0xa6a604(0x52e)](_0x146aca){const _0x5e6a4e=_0xa6a604;var _0x42af0f,_0x185969;const _0x1c49fb=await this['_localCacheService']['loadOfflineData'](this[_0x5e6a4e(0x1ec)]),_0x2f694f=(_0x42af0f=_0x1c49fb==null?void 0x0:_0x1c49fb[_0x5e6a4e(0x2ce)])!=null?_0x42af0f:[],_0x3871f4=(_0x185969=_0x1c49fb==null?void 0x0:_0x1c49fb[_0x5e6a4e(0x33a)])!=null?_0x185969:null,_0x3c861d=this['unitID'];try{this[_0x5e6a4e(0x350)](_0x3871f4,_0x2f694f);}catch(_0x1dd027){this[_0x5e6a4e(0x493)][_0x5e6a4e(0x3f7)](_0x1dd027);}const _0x4b6b99=this['_createHandler']();if(_0x146aca){const _0xaf8bb5=Hs(this['_injector'],_0x3c861d,this[_0x5e6a4e(0x239)],_0x3871f4,_0x2f694f,_0x4b6b99);return _0xaf8bb5 instanceof K?_0xaf8bb5[_0x5e6a4e(0x4e0)]():(_0xaf8bb5 instanceof X||_0xaf8bb5 instanceof Z)&&_0xaf8bb5[_0x5e6a4e(0x4e3)](),_0xaf8bb5;}return this[_0x5e6a4e(0x35a)][_0x5e6a4e(0x307)](ee,_0x3c861d,this[_0x5e6a4e(0x239)],_0x3871f4,_0x2f694f,_0x4b6b99);}[_0xa6a604(0x350)](_0x240cc3,_0x367508){const _0x2fa676=_0xa6a604;var _0x144e1c,_0x5a8a0b;const _0x459600=this[_0x2fa676(0x3af)][_0x2fa676(0x463)][_0x2fa676(0x37a)](this[_0x2fa676(0x3af)]['interceptor'][_0x2fa676(0x428)]()[_0x2fa676(0x27f)]);(_0x144e1c=_0x459600((_0x240cc3==null?void 0x0:_0x240cc3['mutations'])||[],null))==null||_0x144e1c['forEach'](_0x5e946f=>this[_0x2fa676(0x4d3)][_0x2fa676(0x352)](_0x5e946f['id'],_0x5e946f[_0x2fa676(0x4d2)])),(_0x5a8a0b=_0x459600(_0x367508||[],null))==null||_0x5a8a0b['forEach'](_0x145990=>this[_0x2fa676(0x4d3)][_0x2fa676(0x352)](_0x145990['id'],_0x145990['params']));}};Je=Vt([p(0x3,_0x160402(_0x283cc6)),p(0x4,_0x160402(D)),p(0x5,_0x160402(_0x1f6597)),p(0x6,_0x160402(_0x2f3b7b)),p(0x7,_0x160402(_0x842000)),p(0x8,_0x4e432b),p(0x9,_0x5a0862),p(0xa,_0xd292a2),p(0xb,_0x375c1f),p(0xc,_0x363100(tt))],Je);let bt=class extends Je{constructor(_0x4a51a0,_0x366688,_0x1b7898,_0x46da78,_0x3f7420,_0x3d6bc9,_0x4a97c9,_0x184cdd,_0x49343d,_0x3e3d50,_0x25d80b,_0x3352d7,_0x390bc9,_0x2cb67c,_0x111c1c,_0x187b69,_0x4621a9){const _0x3208d4=_0xa6a604;super(_0x4a51a0,_0x1b7898,_0x366688,_0x46da78,_0x3f7420,_0x3d6bc9,_0x4a97c9,_0x184cdd,_0x390bc9,_0x2cb67c,_0x111c1c,_0x187b69,_0x4621a9),this[_0x3208d4(0x1ec)]=_0x4a51a0,this['type']=_0x366688,this[_0x3208d4(0x360)]=_0x49343d,this[_0x3208d4(0x444)]=_0x3e3d50,this[_0x3208d4(0x363)]=_0x25d80b,this[_0x3208d4(0x41f)]=_0x3352d7;}['_createHandler'](){const _0x2c8056=_0xa6a604,_0x978916=super[_0x2c8056(0x4d4)]();return _0x978916[_0x2c8056(0x42c)]=_0x442cbc=>this[_0x2c8056(0x444)][_0x2c8056(0x2dd)](_0x442cbc),_0x978916[_0x2c8056(0x3e1)]=_0x338406=>this[_0x2c8056(0x363)]['transformSelections'](_0x338406),_0x978916[_0x2c8056(0x3ce)]=_0x4d2fe2=>this[_0x2c8056(0x41f)][_0x2c8056(0x285)](_0x4d2fe2),_0x978916[_0x2c8056(0x42d)]=_0x39667a=>this[_0x2c8056(0x444)][_0x2c8056(0x50a)](_0x39667a),_0x978916;}async[_0xa6a604(0x21e)](){const _0x3d40e9=_0xa6a604,_0x30794e=await super[_0x3d40e9(0x21e)]();return this['disposeWithMe'](this[_0x3d40e9(0x4d3)][_0x3d40e9(0x365)]((_0x3656d3,_0x129bc0)=>{const _0x76e6d0=_0x3d40e9;if(_0x3656d3[_0x76e6d0(0x536)]!==_0x58275d[_0x76e6d0(0x372)]||_0x129bc0!=null&&_0x129bc0[_0x76e6d0(0x316)]||_0x129bc0!=null&&_0x129bc0['onlyLocal'])return;const _0x1dd2bb=_0x3656d3[_0x76e6d0(0x4d2)];if((_0x1dd2bb==null?void 0x0:_0x1dd2bb[_0x76e6d0(0x2a5)])!==this[_0x76e6d0(0x1ec)])return;let _0x5efff5=_0x3656d3;if(_0x5efff5['id']===_0x1aac28['id']){const _0xb5711e=_0x5efff5[_0x76e6d0(0x4d2)];_0x5efff5={'id':_0x1aac28['id'],'type':_0x58275d[_0x76e6d0(0x372)],'params':{'unitId':_0xb5711e[_0x76e6d0(0x2a5)],'actions':_0xb5711e[_0x76e6d0(0x2e9)],'textRanges':null}};}const _0x3f4210=this[_0x76e6d0(0x3af)][_0x76e6d0(0x463)][_0x76e6d0(0x37a)](this[_0x76e6d0(0x3af)]['interceptor'][_0x76e6d0(0x428)]()['COMPRESS_MUTATION_SEND'])([_0x5efff5],null)||[_0x5efff5];this[_0x76e6d0(0x3c7)](_0x3f4210[0x0]);})),_0x30794e;}};bt=Vt([p(0x3,_0x160402(_0x283cc6)),p(0x4,_0x160402(D)),p(0x5,_0x160402(_0x1f6597)),p(0x6,_0x160402(_0x2f3b7b)),p(0x7,_0x160402(_0x842000)),p(0x8,_0x160402(_0x1fdec3)),p(0x9,_0x160402(Ye)),p(0xa,_0x160402(Xe)),p(0xb,_0x160402(Bt)),p(0xc,_0x4e432b),p(0xd,_0x5a0862),p(0xe,_0xd292a2),p(0xf,_0x375c1f),p(0x10,_0x363100(tt))],bt);let Tt=class extends Je{constructor(_0x3b7fb8,_0x16115e,_0x4bb738,_0x47720f,_0x3f19d4,_0x366b17,_0x229aa0,_0x5e4426,_0x4a952b,_0x427a31,_0x56565b,_0x4bde73,_0x942d6d,_0x1e0d00){const _0x58e473=_0xa6a604;super(_0x3b7fb8,_0x4bb738,_0x16115e,_0x47720f,_0x3f19d4,_0x366b17,_0x229aa0,_0x5e4426,_0x427a31,_0x56565b,_0x4bde73,_0x942d6d,_0x1e0d00),this[_0x58e473(0x1ec)]=_0x3b7fb8,this[_0x58e473(0x536)]=_0x16115e,this[_0x58e473(0x52c)]=_0x4a952b;}['_createHandler'](){const _0x31c340=_0xa6a604,_0x38e3e2=super['_createHandler']();return _0x38e3e2['onTransformSelections']=_0x158b6e=>this[_0x31c340(0x52c)][_0x31c340(0x255)](_0x158b6e),_0x38e3e2;}async[_0xa6a604(0x21e)](){const _0x2d6817=_0xa6a604,_0x1f6bad=await super[_0x2d6817(0x21e)]();return this[_0x2d6817(0x4f3)](this['_commandService'][_0x2d6817(0x365)]((_0x1ac699,_0x25eb90)=>{const _0x1fffde=_0x2d6817;if(_0x1ac699[_0x1fffde(0x536)]!==_0x58275d[_0x1fffde(0x372)]||_0x25eb90!=null&&_0x25eb90[_0x1fffde(0x316)]||_0x25eb90!=null&&_0x25eb90[_0x1fffde(0x272)])return;const _0x302d92=_0x1ac699[_0x1fffde(0x4d2)];if((_0x302d92==null?void 0x0:_0x302d92[_0x1fffde(0x2a5)])!==this[_0x1fffde(0x1ec)])return;const _0x4f2366=_0x1ac699,_0x43ae3f=this[_0x1fffde(0x3af)]['interceptor']['fetchThroughInterceptors'](this[_0x1fffde(0x3af)]['interceptor'][_0x1fffde(0x428)]()['COMPRESS_MUTATION_SEND'])([_0x4f2366],null)||[_0x4f2366];this[_0x1fffde(0x3c7)](_0x43ae3f[0x0]);})),_0x1f6bad;}};Tt=Vt([p(0x3,_0x160402(_0x283cc6)),p(0x4,_0x160402(D)),p(0x5,_0x160402(_0x1f6597)),p(0x6,_0x160402(_0x2f3b7b)),p(0x7,_0x160402(_0x842000)),p(0x8,_0x160402(Ke)),p(0x9,_0x4e432b),p(0xa,_0x5a0862),p(0xb,_0xd292a2),p(0xc,_0x375c1f),p(0xd,_0x363100(tt))],Tt);var Sr=Object['defineProperty'],pr=Object[_0xa6a604(0x4ce)],vr=(_0x5ecf8f,_0x18c1b4,_0x334dbb,_0x1768ab)=>{const _0x3773df=_0xa6a604;for(var _0x45c916=_0x1768ab>0x1?void 0x0:_0x1768ab?pr(_0x18c1b4,_0x334dbb):_0x18c1b4,_0x1890b2=_0x5ecf8f[_0x3773df(0x391)]-0x1,_0x50f655;_0x1890b2>=0x0;_0x1890b2--)(_0x50f655=_0x5ecf8f[_0x1890b2])&&(_0x45c916=(_0x1768ab?_0x50f655(_0x18c1b4,_0x334dbb,_0x45c916):_0x50f655(_0x45c916))||_0x45c916);return _0x1768ab&&_0x45c916&&Sr(_0x18c1b4,_0x334dbb,_0x45c916),_0x45c916;},lt=(_0x4e02e8,_0x1942ed)=>(_0x334046,_0x560973)=>_0x1942ed(_0x334046,_0x560973,_0x4e02e8);let Ae=class extends _0x48a1ad{constructor(_0x262541,_0x246e82,_0x419af8){const _0x5d27e1=_0xa6a604;super(),l(this,_0x5d27e1(0x379),new Map()),l(this,_0x5d27e1(0x38d),new _0x3daa12()),(this[_0x5d27e1(0x35a)]=_0x262541,this[_0x5d27e1(0x37c)]=_0x246e82,this[_0x5d27e1(0x1fd)]=_0x419af8,this[_0x5d27e1(0x21e)]());}['dispose'](){const _0x3be955=_0xa6a604;super[_0x3be955(0x4f4)](),this[_0x3be955(0x379)][_0x3be955(0x213)](_0x3ad9ba=>_0x3ad9ba['dispose']()),this[_0x3be955(0x379)]['clear']();}[_0xa6a604(0x2ab)](_0x8f53a8){const _0x371510=_0xa6a604;var _0x5969f2;return(_0x5969f2=this[_0x371510(0x379)]['get'](_0x8f53a8))!=null?_0x5969f2:null;}[_0xa6a604(0x23a)](_0x215abd){const _0x4debd2=_0xa6a604,_0x9bb1bb=this[_0x4debd2(0x2ab)](_0x215abd);return _0x9bb1bb?_0x3a75ff(_0x9bb1bb):this[_0x4debd2(0x38d)][_0x4debd2(0x3b6)](_0x38e98e(_0x3e368d=>_0x3e368d[_0x4debd2(0x1ec)]===_0x215abd));}[_0xa6a604(0x21e)](){const _0x256349=_0xa6a604;this[_0x256349(0x1fd)][_0x256349(0x2dc)](_0x39cf18[_0x256349(0x48b)])[_0x256349(0x3b6)](_0x23bb2f(this[_0x256349(0x424)]),_0x335667(0x10))['subscribe'](async _0x233733=>{const _0x315567=_0x256349,_0x44523b=_0x233733[_0x315567(0x203)](),_0x561628=await this[_0x315567(0x3c6)](_0x44523b,H[_0x315567(0x48b)]);this[_0x315567(0x379)][_0x315567(0x455)](_0x44523b,_0x561628);}),this[_0x256349(0x1fd)][_0x256349(0x2dc)](_0x39cf18[_0x256349(0x1eb)])['pipe'](_0x23bb2f(this['dispose$']),_0x335667(0x10))[_0x256349(0x3b6)](_0x38e98e(_0x170683=>!_0x170683[_0x256349(0x203)]()['startsWith']('__')))[_0x256349(0x426)](async _0x1786df=>{const _0x5a740e=_0x256349,_0x1f5da7=_0x1786df[_0x5a740e(0x203)](),_0x21e1ee=await this[_0x5a740e(0x3c6)](_0x1f5da7,H[_0x5a740e(0x1eb)]);this[_0x5a740e(0x379)]['set'](_0x1f5da7,_0x21e1ee);}),_0xcf1d88(this['_univerInstanceService'][_0x256349(0x44e)](_0x39cf18['UNIVER_SHEET']),this['_univerInstanceService'][_0x256349(0x44e)](_0x39cf18['UNIVER_DOC']))[_0x256349(0x3b6)](_0x23bb2f(this[_0x256349(0x424)]))[_0x256349(0x426)](_0x2319ac=>{const _0x1aedec=_0x256349,_0x18d926=_0x2319ac[_0x1aedec(0x203)](),_0x29a5cf=this[_0x1aedec(0x379)][_0x1aedec(0x504)](_0x18d926);_0x29a5cf&&(_0x29a5cf[_0x1aedec(0x4f4)](),this[_0x1aedec(0x379)]['delete'](_0x18d926));});}async[_0xa6a604(0x3c6)](_0x5b0e42,_0x3ce135){const _0x124727=_0xa6a604,_0x5cd2f3=await this[_0x124727(0x37c)][_0x124727(0x269)](_0x5b0e42),_0x2ad54c=this[_0x124727(0x35a)][_0x124727(0x307)](this[_0x124727(0x2b8)](_0x3ce135),_0x5b0e42,_0x3ce135,_0x5cd2f3);return await _0x2ad54c[_0x124727(0x4c6)](),this[_0x124727(0x38d)][_0x124727(0x480)](_0x2ad54c),_0x2ad54c;}[_0xa6a604(0x2b8)](_0x202f39){const _0x253673=_0xa6a604;switch(_0x202f39){case H['UNIVER_DOC']:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0x253673(0x49e)+_0x202f39);}}};Ae=vr([lt(0x0,_0x160402(_0x283cc6)),lt(0x1,_0x160402(ce)),lt(0x2,_0x33adea)],Ae);const _s=['purple300',_0xa6a604(0x38e),_0xa6a604(0x373),_0xa6a604(0x25a),_0xa6a604(0x3f3),_0xa6a604(0x275)];class Ft extends _0x252360{constructor(){const _0x1e9b23=_0xa6a604;super(...arguments),l(this,_0x1e9b23(0x32e),new Map()),l(this,_0x1e9b23(0x440),0x0);}[_0xa6a604(0x2ca)](_0xb4eb87){const _0x2b11f0=_0xa6a604;if(this[_0x2b11f0(0x32e)][_0x2b11f0(0x1f9)](_0xb4eb87))return this[_0x2b11f0(0x32e)][_0x2b11f0(0x504)](_0xb4eb87);const _0x1c3676=_s[this[_0x2b11f0(0x440)]];return this[_0x2b11f0(0x440)]=(this['_colorIndex']+0x1)%_s[_0x2b11f0(0x391)],this['_assignedColors']['set'](_0xb4eb87,_0x1c3676),_0x1c3676;}}var Ir=Object['defineProperty'],Er=Object[_0xa6a604(0x4ce)],Cr=(_0x399d13,_0x55442a,_0x4d33e6,_0x517a62)=>{const _0x22c7fb=_0xa6a604;for(var _0x2d296f=_0x517a62>0x1?void 0x0:_0x517a62?Er(_0x55442a,_0x4d33e6):_0x55442a,_0x56e306=_0x399d13[_0x22c7fb(0x391)]-0x1,_0x341cda;_0x56e306>=0x0;_0x56e306--)(_0x341cda=_0x399d13[_0x56e306])&&(_0x2d296f=(_0x517a62?_0x341cda(_0x55442a,_0x4d33e6,_0x2d296f):_0x341cda(_0x2d296f))||_0x2d296f);return _0x517a62&&_0x2d296f&&Ir(_0x55442a,_0x4d33e6,_0x2d296f),_0x2d296f;},se=(_0x2cde9b,_0x5a3e3d)=>(_0x21b622,_0x5b376f)=>_0x5a3e3d(_0x21b622,_0x5b376f,_0x2cde9b);const br=0x12c,Tr=0x64;let Rt=class extends _0x48a1ad{constructor(_0x2a85cb,_0x10d96a,_0x29d8b4,_0x38afb2,_0x5f3bde,_0x41bdab,_0x95a567,_0x42b45c,_0x3d3c12){const _0x418fb5=_0xa6a604;super(),l(this,_0x418fb5(0x538),!0x1),l(this,_0x418fb5(0x21e),!0x1),l(this,_0x418fb5(0x3bb),new _0x3d8ff6(new Map())),l(this,_0x418fb5(0x2d7),this[_0x418fb5(0x3bb)][_0x418fb5(0x294)]()),l(this,_0x418fb5(0x548),new _0x3d8ff6([])),l(this,'roomMembers$',this[_0x418fb5(0x548)][_0x418fb5(0x3b6)](_0x147d44(br))),l(this,_0x418fb5(0x208),_0x30da7c(_0x90d56a=>{const _0x487411=_0x418fb5,_0x303b40={'eventID':_0x17f69c[_0x487411(0x42b)],'data':{'unitID':this[_0x487411(0x1ec)],'memberID':this[_0x487411(0x209)]['getMemberID'](),'selection':xs(_0x90d56a)}};this[_0x487411(0x209)][_0x487411(0x233)](_0x303b40,this[_0x487411(0x1ec)]);},Tr)),(this['unitID']=_0x2a85cb,this[_0x418fb5(0x209)]=_0x10d96a,this[_0x418fb5(0x35a)]=_0x29d8b4,this['_colorAssignService']=_0x38afb2,this['_memberService']=_0x5f3bde,this[_0x418fb5(0x397)]=_0x41bdab,this[_0x418fb5(0x48c)]=_0x95a567,this[_0x418fb5(0x1fd)]=_0x42b45c,this['_commandService']=_0x3d3c12);}get[_0xa6a604(0x293)](){const _0x35f436=_0xa6a604;return this['_cursorInfo$'][_0x35f436(0x2a2)]();}get[_0xa6a604(0x3c1)](){const _0x3c88b1=_0xa6a604;return this[_0x3c88b1(0x548)][_0x3c88b1(0x2a2)]();}[_0xa6a604(0x4f4)](){const _0x50801a=_0xa6a604;super[_0x50801a(0x4f4)](),this[_0x50801a(0x3bb)]['next'](new Map()),this[_0x50801a(0x3bb)][_0x50801a(0x52b)](),this['_roomMembers$']['next']([]),this[_0x50801a(0x548)][_0x50801a(0x52b)]();}[_0xa6a604(0x4c6)](){const _0xa25891=_0xa6a604;this['_init']||(this[_0xa25891(0x21e)]=!0x0,this[_0xa25891(0x209)]['sessionStatus$'][_0xa25891(0x3b6)](_0x23bb2f(this[_0xa25891(0x424)]))[_0xa25891(0x426)](_0x1b07c8=>{const _0x2d7893=_0xa25891;_0x1b07c8===G['ONLINE']?this[_0x2d7893(0x511)]():this['_toggleOffline']();}),this[_0xa25891(0x209)][_0xa25891(0x2bc)][_0xa25891(0x3b6)](_0x23bb2f(this[_0xa25891(0x424)]))[_0xa25891(0x426)](_0xfb960b=>{const _0x355631=_0xa25891,_0x134433=_0xfb960b[_0x355631(0x33b)];_0x134433===_0x17f69c[_0x355631(0x42b)]&&this['_onCursorUpdate'](_0xfb960b),_0x134433===_0x17f69c[_0x355631(0x356)]&&this[_0x355631(0x436)](_0xfb960b);}),this[_0xa25891(0x4f3)](this[_0xa25891(0x4d3)][_0xa25891(0x365)](_0x52e160=>{const _0x2626eb=_0xa25891,_0x35925a=_0x52e160[_0x2626eb(0x4d2)];_0x35925a!=null&&this[_0x2626eb(0x538)]&&_0x52e160['id']===_0x188c9b['id']&&_0x35925a[_0x2626eb(0x2a5)]===this['unitID']&&_0x35925a[_0x2626eb(0x4ea)]===!0x1&&this[_0x2626eb(0x208)](_0x35925a[_0x2626eb(0x1f2)]);})),this[_0xa25891(0x397)]['collabCursorState$'][_0xa25891(0x3b6)](_0x23bb2f(this['dispose$']))['subscribe'](_0x349398=>{const _0x1e7a3e=_0xa25891;if((_0x349398==null?void 0x0:_0x349398[_0x1e7a3e(0x1ec)])!==this['unitID'])return;const _0x3124a8={'eventID':_0x17f69c[_0x1e7a3e(0x42b)],'data':_0x349398};this['_onCursorUpdate'](_0x3124a8);}),this[_0xa25891(0x4f3)](this[_0xa25891(0x4d3)]['onCommandExecuted'](_0x170cef=>{const _0x28a3e3=_0xa25891;if(_0x170cef[_0x28a3e3(0x4d2)]==null)return;const _0x2fe6b6=_0x170cef['params'];if(_0x170cef['id']!==_0x1aac28['id']||_0x2fe6b6[_0x28a3e3(0x2a5)]!==this[_0x28a3e3(0x1ec)])return;const _0x18b68b={'id':_0x28a3e3(0x23f),'params':_0x2fe6b6},_0x216cf9=this['cursorInfo'];for(const [_0x2c7b87,_0x19fa7b]of _0x216cf9){const _0x3ff2e3={'id':_0x28a3e3(0x23f),'params':{'unitId':this[_0x28a3e3(0x1ec)],'actions':null,'textRanges':_0x19fa7b[_0x28a3e3(0x1f2)]}},_0x21a9b6=this['_transformService']['transformMutation'](_0x18b68b,_0x3ff2e3,!0x1);if(_0x4c49c5(_0x21a9b6))throw _0x21a9b6['error'];_0x216cf9['set'](_0x2c7b87,{..._0x19fa7b,'ranges':_0x21a9b6[_0x28a3e3(0x29d)][_0x28a3e3(0x4d2)][_0x28a3e3(0x2b6)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x216cf9);});})));}[_0xa6a604(0x1ee)](_0x37fc24){const _0x19372f=_0xa6a604;var _0x26771f,_0x1d3287;const {memberID:_0x2581c4,selection:_0x321e03}=_0x37fc24[_0x19372f(0x525)],_0x45ee2c=or(_0x321e03),_0x8e3447=(_0x1d3287=(_0x26771f=this[_0x19372f(0x242)][_0x19372f(0x4d6)](this[_0x19372f(0x1ec)],_0x2581c4))==null?void 0x0:_0x26771f[_0x19372f(0x3cb)])!=null?_0x1d3287:_0x19372f(0x39b),_0x454744={'color':this[_0x19372f(0x3ca)][_0x19372f(0x2ca)](_0x2581c4),'name':_0x8e3447,'ranges':_0x45ee2c},_0x18caa0=this[_0x19372f(0x293)];_0x18caa0[_0x19372f(0x455)](_0x2581c4,_0x454744),this['_cursorInfo$'][_0x19372f(0x480)](_0x18caa0);}['_onCursorDelete'](_0xdbe120){const _0x48d571=_0xa6a604,{memberID:_0x3355ca}=_0xdbe120[_0x48d571(0x525)],_0x4fccd5=this[_0x48d571(0x293)];_0x4fccd5[_0x48d571(0x3fe)](_0x3355ca),this[_0x48d571(0x3bb)][_0x48d571(0x480)](_0x4fccd5);}[_0xa6a604(0x511)](){const _0x31a4d7=_0xa6a604;var _0x45f372;if(this[_0x31a4d7(0x538)]=!0x0,((_0x45f372=this['_univerInstanceService'][_0x31a4d7(0x2a3)]())==null?void 0x0:_0x45f372['getUnitId']())!==this['unitID'])return;const _0x194533=this[_0x31a4d7(0x35a)]['get'](_0x5c017d)[_0x31a4d7(0x549)]();Array[_0x31a4d7(0x2f8)](_0x194533)&&_0x194533[_0x31a4d7(0x391)]>0x0&&this[_0x31a4d7(0x208)](_0x194533);}['_toggleOffline'](){const _0x328efa=_0xa6a604;this[_0x328efa(0x538)]=!0x1;}};Rt=Cr([se(0x2,_0x160402(_0x283cc6)),se(0x3,_0x160402(Ft)),se(0x4,_0x160402(ae)),se(0x5,_0x160402(Bt)),se(0x6,_0x5ea876),se(0x7,_0x33adea),se(0x8,_0x5a0862)],Rt);var Rr=Object[_0xa6a604(0x222)],Or=Object[_0xa6a604(0x4ce)],Dr=(_0x2e9bc0,_0x522d82,_0x4348b1,_0x386055)=>{const _0x41e213=_0xa6a604;for(var _0x1915f7=_0x386055>0x1?void 0x0:_0x386055?Or(_0x522d82,_0x4348b1):_0x522d82,_0x265338=_0x2e9bc0[_0x41e213(0x391)]-0x1,_0x644eec;_0x265338>=0x0;_0x265338--)(_0x644eec=_0x2e9bc0[_0x265338])&&(_0x1915f7=(_0x386055?_0x644eec(_0x522d82,_0x4348b1,_0x1915f7):_0x644eec(_0x1915f7))||_0x1915f7);return _0x386055&&_0x1915f7&&Rr(_0x522d82,_0x4348b1,_0x1915f7),_0x1915f7;},fe=(_0x1f96ce,_0x2e1a40)=>(_0x35998c,_0x5df13c)=>_0x2e1a40(_0x35998c,_0x5df13c,_0x1f96ce);const wr=0x12c,Pr=0x64,yr=()=>{let _0x26f2e7=[],_0x2cfc75=!0x1;return _0x4bfde4=>{const _0x1c1ac7=_0x40a3;_0x26f2e7[_0x1c1ac7(0x539)](_0x4bfde4),_0x2cfc75||(_0x2cfc75=!0x0,setTimeout(()=>{const _0x192565=_0x1c1ac7;_0x26f2e7[_0x192565(0x213)](_0x4ffe45=>_0x4ffe45()),_0x26f2e7=[],_0x2cfc75=!0x1;}));};};let Ot=class extends _0x48a1ad{constructor(_0x2d3d29,_0x394d41,_0x5c70ba,_0x10e88d,_0x1c5460,_0x3bb03,_0x1fea98,_0x423c33){const _0x3488f7=_0xa6a604;super(),l(this,_0x3488f7(0x538),!0x1),l(this,_0x3488f7(0x21e),!0x1),l(this,_0x3488f7(0x3bb),new _0x3d8ff6(new Map())),l(this,_0x3488f7(0x2d7),this[_0x3488f7(0x3bb)]['asObservable']()),l(this,'_roomMembers$',new _0x3d8ff6([])),l(this,_0x3488f7(0x503),this[_0x3488f7(0x548)][_0x3488f7(0x3b6)](_0x147d44(wr))),l(this,_0x3488f7(0x208),_0x30da7c((_0x3f870f,_0x134933)=>{const _0x11be6c=_0x3488f7,_0x559c55={'eventID':_0x17f69c['UPDATE_CURSOR'],'data':{'unitID':this[_0x11be6c(0x1ec)],'memberID':this['_session'][_0x11be6c(0x2c6)](),'selection':_0xff349(_0x3f870f,_0x134933['range'])}};this[_0x11be6c(0x209)][_0x11be6c(0x233)](_0x559c55,this[_0x11be6c(0x1ec)]);},Pr)),(this[_0x3488f7(0x1ec)]=_0x2d3d29,this[_0x3488f7(0x209)]=_0x394d41,this[_0x3488f7(0x35a)]=_0x5c70ba,this[_0x3488f7(0x3ca)]=_0x10e88d,this[_0x3488f7(0x242)]=_0x1c5460,this[_0x3488f7(0x1fd)]=_0x3bb03,this['_commandService']=_0x1fea98,this[_0x3488f7(0x4ec)]=_0x423c33);}get[_0xa6a604(0x293)](){const _0x41bf3b=_0xa6a604;return this[_0x41bf3b(0x3bb)]['getValue']();}get[_0xa6a604(0x3c1)](){const _0x3e4b34=_0xa6a604;return this[_0x3e4b34(0x548)][_0x3e4b34(0x2a2)]();}[_0xa6a604(0x4f4)](){const _0x693f29=_0xa6a604;super[_0x693f29(0x4f4)](),this[_0x693f29(0x3bb)]['next'](new Map()),this['_cursorInfo$'][_0x693f29(0x52b)](),this['_roomMembers$'][_0x693f29(0x480)]([]),this[_0x693f29(0x548)]['complete']();}['init'](){const _0x386438=_0xa6a604;this[_0x386438(0x21e)]||(this[_0x386438(0x21e)]=!0x0,this[_0x386438(0x209)][_0x386438(0x304)][_0x386438(0x3b6)](_0x23bb2f(this[_0x386438(0x424)]))[_0x386438(0x426)](_0x4ca4fa=>{const _0x4b3a97=_0x386438;_0x4ca4fa===G[_0x4b3a97(0x3a2)]?this[_0x4b3a97(0x511)]():this[_0x4b3a97(0x33e)]();}),this[_0x386438(0x209)][_0x386438(0x2bc)][_0x386438(0x3b6)](_0x23bb2f(this[_0x386438(0x424)]))['subscribe'](_0x3b7789=>{const _0x19ecf7=_0x386438,_0x396395=_0x3b7789[_0x19ecf7(0x33b)];_0x396395===_0x17f69c[_0x19ecf7(0x42b)]&&this['_onCursorUpdate'](_0x3b7789),_0x396395===_0x17f69c[_0x19ecf7(0x356)]&&this[_0x19ecf7(0x436)](_0x3b7789);}),this[_0x386438(0x234)](),this['disposeWithMe'](this[_0x386438(0x4d3)][_0x386438(0x365)](_0x1ad400=>{const _0x37cfd4=_0x386438;if(this[_0x37cfd4(0x538)]&&_0x1ad400['id']===_0x5889b8['id']&&_0x1ad400[_0x37cfd4(0x4d2)]['unitId']===this['unitID']){const _0x56c919=_0x1ad400['params'];this[_0x37cfd4(0x208)](_0x56c919[_0x37cfd4(0x46b)],_0x56c919['selections'][0x0]);}})));}['_onCursorUpdate'](_0x10783f){const _0x114f7f=_0xa6a604;var _0x2c8d20,_0x588798;const {memberID:_0x342bac,selection:_0x1d4c4f}=_0x10783f[_0x114f7f(0x525)],{sheetName:_0x1ef379,range:_0x4db545}=_0x3b6279(_0x1d4c4f),_0x1290c7={'name':(_0x588798=(_0x2c8d20=this[_0x114f7f(0x242)][_0x114f7f(0x4d6)](this['unitID'],_0x342bac))==null?void 0x0:_0x2c8d20[_0x114f7f(0x3cb)])!=null?_0x588798:_0x114f7f(0x39b),'range':this[_0x114f7f(0x206)](_0x1ef379,_0x4db545),'sheetID':_0x1ef379,'color':this['_colorAssignService'][_0x114f7f(0x2ca)](_0x342bac),'selection':_0x1d4c4f},_0x15523b=this[_0x114f7f(0x293)];_0x15523b[_0x114f7f(0x455)](_0x342bac,_0x1290c7),this['_cursorInfo$'][_0x114f7f(0x480)](_0x15523b);}[_0xa6a604(0x436)](_0x6f067a){const _0x195e1a=_0xa6a604,{memberID:_0x254c2e}=_0x6f067a['data'],_0x7c9848=this[_0x195e1a(0x293)];_0x7c9848[_0x195e1a(0x3fe)](_0x254c2e),this[_0x195e1a(0x3bb)]['next'](_0x7c9848);}['_getMergeRange'](_0x463f49,_0x73c601){const _0x489270=_0xa6a604;var _0x57beec,_0xd5e7af;const _0x3a4029=(_0xd5e7af=(_0x57beec=this[_0x489270(0x1fd)][_0x489270(0x4df)](this[_0x489270(0x1ec)]))==null?void 0x0:_0x57beec['getSheetBySheetId'](_0x463f49))==null?void 0x0:_0xd5e7af[_0x489270(0x2de)]();return(_0x3a4029==null?void 0x0:_0x3a4029[_0x489270(0x4dd)](_0x4e3c1b=>_0x7947b9[_0x489270(0x450)](_0x4e3c1b,_0x73c601)))||_0x73c601;}[_0xa6a604(0x234)](){const _0x26571b=_0xa6a604,_0x19afc8=new _0x17834d(),_0x518500=yr(),_0x31d7d0=()=>{const _0x2273d6=_0x40a3;_0x19afc8[_0x2273d6(0x4f4)]();const _0x4fca81=(_0x476944,_0x1d947c,_0x2051d5,_0x143f9a)=>{const _0x620665=_0x2273d6;let _0x481c7f=[];switch(_0x476944['id']){case _0x1c0dca[_0x620665(0x313)]:{_0x481c7f=_0xa951f6(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x28e)]:{_0x481c7f=_0x312c24(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x26f)]:{_0x481c7f=_0x21b7f3(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x3e9)]:{_0x481c7f=_0x317d9f(_0x476944,_0x143f9a);break;}case _0x1c0dca['InsertRangeMoveRightCommandId']:{_0x481c7f=_0x4d67a8(_0x476944,_0x143f9a);break;}case _0x1c0dca['InsertRowCommandId']:{_0x481c7f=_0x14236b(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x545)]:{_0x481c7f=_0x588bad(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x377)]:{_0x481c7f=_0x550305(_0x476944,_0x143f9a);break;}case _0x1c0dca[_0x620665(0x45b)]:{_0x481c7f=_0x2e07d4(_0x476944,_0x143f9a);break;}}const _0x2f5907=_0x335941(_0x481c7f,_0x143f9a),_0x3c1ca1=this[_0x620665(0x293)][_0x620665(0x504)](_0x1d947c);if(_0x3c1ca1&&_0x2f5907){const _0x558954={..._0x3c1ca1,'range':_0x2f5907};this[_0x620665(0x293)][_0x620665(0x455)](_0x1d947c,_0x558954),_0x518500(()=>{const _0x51cc7c=_0x620665,_0x38a0d5=this[_0x51cc7c(0x4ec)][_0x51cc7c(0x43e)](_0x2f5907,_0x462ae8=>(_0x38a0d5['dispose'](),_0x4fca81(_0x462ae8,_0x1d947c,_0x2051d5,_0x2f5907)));_0x19afc8[_0x51cc7c(0x1e7)](_0x38a0d5);});}return{'redos':[],'undos':[]};};this[_0x2273d6(0x293)][_0x2273d6(0x213)]((_0x41ed8b,_0x3e8398)=>{const _0x33aa35=_0x2273d6,{range:_0x5ef2be,sheetID:_0xeba376}=_0x41ed8b,_0x2ddda9=this[_0x33aa35(0x4ec)][_0x33aa35(0x43e)](_0x5ef2be,_0x21505d=>(_0x2ddda9[_0x33aa35(0x4f4)](),_0x4fca81(_0x21505d,_0x3e8398,_0xeba376,_0x5ef2be)));_0x19afc8[_0x33aa35(0x1e7)](_0x2ddda9);});};this[_0x26571b(0x4f3)](_0x9a96d1(this[_0x26571b(0x3bb)][_0x26571b(0x426)](()=>{_0x31d7d0();})));}[_0xa6a604(0x511)](){const _0x538578=_0xa6a604;var _0x3cd429,_0x3d3928;if(this['_online']=!0x0,((_0x3cd429=this[_0x538578(0x1fd)][_0x538578(0x2a3)]())==null?void 0x0:_0x3cd429[_0x538578(0x203)]())!==this[_0x538578(0x1ec)])return;const _0x280aae=(_0x3d3928=this['_injector'][_0x538578(0x504)](_0x370067)[_0x538578(0x37b)]())==null?void 0x0:_0x3d3928[0x0],_0x25cc53=this[_0x538578(0x1fd)]['getCurrentUnitForType'](_0x39cf18[_0x538578(0x48b)])['getActiveSheet']();_0x280aae&&_0x25cc53&&this[_0x538578(0x208)](_0x25cc53['getSheetId'](),_0x280aae);}[_0xa6a604(0x33e)](){this['_online']=!0x1;}};Ot=Dr([fe(0x2,_0x160402(_0x283cc6)),fe(0x3,_0x160402(Ft)),fe(0x4,_0x160402(ae)),fe(0x5,_0x33adea),fe(0x6,_0x5a0862),fe(0x7,_0x160402(_0x397e46))],Ot);var Nr=Object['defineProperty'],Ur=Object[_0xa6a604(0x4ce)],Mr=(_0x24318c,_0x136d97,_0xd70498,_0x5179d2)=>{const _0x590f90=_0xa6a604;for(var _0x2c8e57=_0x5179d2>0x1?void 0x0:_0x5179d2?Ur(_0x136d97,_0xd70498):_0x136d97,_0x1efa71=_0x24318c[_0x590f90(0x391)]-0x1,_0x2771a9;_0x1efa71>=0x0;_0x1efa71--)(_0x2771a9=_0x24318c[_0x1efa71])&&(_0x2c8e57=(_0x5179d2?_0x2771a9(_0x136d97,_0xd70498,_0x2c8e57):_0x2771a9(_0x2c8e57))||_0x2c8e57);return _0x5179d2&&_0x2c8e57&&Nr(_0x136d97,_0xd70498,_0x2c8e57),_0x2c8e57;},_t=(_0x4b8298,_0x2f9199)=>(_0x338c19,_0x365b7a)=>_0x2f9199(_0x338c19,_0x365b7a,_0x4b8298);let pe=class extends _0x48a1ad{constructor(_0x834017,_0x430449,_0x47b924){const _0x25e159=_0xa6a604;super(),l(this,'_entities',new Map()),l(this,_0x25e159(0x38d),new _0x3daa12()),(this[_0x25e159(0x1fd)]=_0x834017,this[_0x25e159(0x35a)]=_0x430449,this['_collabSessionService']=_0x47b924,this[_0x25e159(0x21e)]());}[_0xa6a604(0x4f4)](){const _0x5f4a75=_0xa6a604;super[_0x5f4a75(0x4f4)](),this[_0x5f4a75(0x38d)][_0x5f4a75(0x52b)](),this[_0x5f4a75(0x379)]['forEach'](_0x1d4cf7=>_0x1d4cf7[_0x5f4a75(0x4f4)]());}['getCollabCursors$'](_0x31b05c){const _0x3f5a10=_0xa6a604;return this['_entities'][_0x3f5a10(0x1f9)](_0x31b05c)?this[_0x3f5a10(0x379)][_0x3f5a10(0x504)](_0x31b05c)[_0x3f5a10(0x2d7)]:this[_0x3f5a10(0x38d)][_0x3f5a10(0x3b6)](_0x207549(_0x37bc84=>_0x37bc84[_0x3f5a10(0x1ec)]===_0x31b05c),_0x26d305(_0x341d47=>_0x341d47[_0x3f5a10(0x2d7)]));}[_0xa6a604(0x21e)](){const _0x5acc33=_0xa6a604;this[_0x5acc33(0x1fd)][_0x5acc33(0x2dc)](_0x39cf18[_0x5acc33(0x48b)])[_0x5acc33(0x3b6)](_0x23bb2f(this[_0x5acc33(0x424)]))[_0x5acc33(0x426)](async _0x55769f=>{const _0x26acb6=_0x5acc33,_0x104b07=_0x55769f['getUnitId'](),_0x389611=await this[_0x26acb6(0x378)](_0x104b07);this[_0x26acb6(0x38d)]['next'](_0x389611),this[_0x26acb6(0x379)][_0x26acb6(0x455)](_0x104b07,_0x389611);}),this[_0x5acc33(0x1fd)]['getTypeOfUnitAdded$'](_0x39cf18[_0x5acc33(0x1eb)])[_0x5acc33(0x3b6)](_0x23bb2f(this[_0x5acc33(0x424)]))[_0x5acc33(0x3b6)](_0x207549(_0x2199ec=>!_0x2199ec[_0x5acc33(0x203)]()['startsWith']('__')))[_0x5acc33(0x426)](async _0x20f02d=>{const _0x24f568=_0x5acc33,_0x2369d6=_0x20f02d[_0x24f568(0x203)](),_0x5bf58c=await this['_startDocCollabCursor'](_0x2369d6);this['_entityInit$']['next'](_0x5bf58c),this[_0x24f568(0x379)][_0x24f568(0x455)](_0x2369d6,_0x5bf58c);}),_0xcf1d88(this['_univerInstanceService'][_0x5acc33(0x44e)](_0x39cf18[_0x5acc33(0x1eb)]),this[_0x5acc33(0x1fd)]['getTypeOfUnitDisposed$'](_0x39cf18[_0x5acc33(0x48b)]))['pipe'](_0x23bb2f(this[_0x5acc33(0x424)]))[_0x5acc33(0x426)](_0x456579=>{const _0x33d404=_0x5acc33,_0xb712b5=_0x456579[_0x33d404(0x203)](),_0x5752e1=this[_0x33d404(0x379)][_0x33d404(0x504)](_0xb712b5);_0x5752e1&&(_0x5752e1['dispose'](),this['_entities'][_0x33d404(0x3fe)](_0xb712b5));});}async[_0xa6a604(0x378)](_0x39482b){const _0xb7cf4c=_0xa6a604,_0x428545=await this['_collabSessionService'][_0xb7cf4c(0x269)](_0x39482b),_0x233c1b=this[_0xb7cf4c(0x35a)]['createInstance'](Ot,_0x39482b,_0x428545);return _0x233c1b[_0xb7cf4c(0x4c6)](),_0x233c1b;}async['_startDocCollabCursor'](_0x31dcf3){const _0x6db58c=_0xa6a604,_0x1dabc9=await this['_collabSessionService'][_0x6db58c(0x269)](_0x31dcf3),_0x1ff123=this[_0x6db58c(0x35a)][_0x6db58c(0x307)](Rt,_0x31dcf3,_0x1dabc9);return _0x1ff123[_0x6db58c(0x4c6)](),_0x1ff123;}};pe=Mr([_t(0x0,_0x33adea),_t(0x1,_0x160402(_0x283cc6)),_t(0x2,_0x160402(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x45b476,_0x9c0606){const _0x5c3a6e=_0xa6a604;let {radius:_0x214e55,width:_0x18ab4e,height:_0x472df0}=_0x9c0606;_0x214e55=_0x214e55!=null?_0x214e55:0x0,_0x18ab4e=_0x18ab4e!=null?_0x18ab4e:0x1e,_0x472df0=_0x472df0!=null?_0x472df0:0x1e;let _0x566560=0x0,_0x541732=0x0,_0x5f5cad=0x0;_0x566560=_0x541732=_0x5f5cad=Math[_0x5c3a6e(0x43c)](_0x214e55,_0x18ab4e/0x2,_0x472df0/0x2),_0x45b476[_0x5c3a6e(0x4af)](),_0x45b476['moveTo'](_0x566560,0x0),_0x45b476['lineTo'](_0x18ab4e-_0x541732,0x0),_0x45b476[_0x5c3a6e(0x519)](_0x18ab4e-_0x541732,_0x541732,_0x541732,Math['PI']*0x3/0x2,0x0,!0x1),_0x45b476[_0x5c3a6e(0x336)](_0x18ab4e,_0x472df0-_0x5f5cad),_0x45b476[_0x5c3a6e(0x519)](_0x18ab4e-_0x5f5cad,_0x472df0-_0x5f5cad,_0x5f5cad,0x0,Math['PI']/0x2,!0x1),_0x45b476[_0x5c3a6e(0x336)](0x0,_0x472df0),_0x45b476[_0x5c3a6e(0x336)](0x0,_0x566560),_0x45b476['arc'](_0x566560,_0x566560,_0x566560,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45b476['closePath'](),_0x9c0606[_0x5c3a6e(0x3e2)]&&(_0x45b476[_0x5c3a6e(0x32c)](),_0x45b476[_0x5c3a6e(0x448)]=_0x9c0606['fill'],_0x9c0606['fillRule']===_0x5c3a6e(0x340)?_0x45b476[_0x5c3a6e(0x3e2)]('evenodd'):_0x45b476[_0x5c3a6e(0x3e2)](),_0x45b476[_0x5c3a6e(0x2bb)]());}class st extends _0x202b11{constructor(_0x4f276f,_0xb7ed4c){const _0xcbc5ec=_0xa6a604;super(_0x4f276f,_0xb7ed4c),l(this,'color'),l(this,'text'),(this[_0xcbc5ec(0x510)]=_0xb7ed4c==null?void 0x0:_0xb7ed4c['color'],this[_0xcbc5ec(0x3b5)]=_0xb7ed4c==null?void 0x0:_0xb7ed4c['text']);}static[_0xa6a604(0x4fd)](_0x436915,_0x2e66ff){const _0x863e7d=_0xa6a604,{text:_0x2a6d05,color:_0x8e0d07}=_0x2e66ff;_0x436915[_0x863e7d(0x32c)](),_0x436915[_0x863e7d(0x4b4)]=_0x863e7d(0x3a6);const _0xa960c1=_0x436915['measureText'](_0x2a6d05)[_0x863e7d(0x3a1)],_0x1f39c1=Math[_0x863e7d(0x43c)](_0xa960c1+0x2*ut,us);Lr(_0x436915,{'height':Le,'radius':0x4,'width':_0x1f39c1,'fill':_0x8e0d07,'evented':!0x1}),_0x436915[_0x863e7d(0x448)]=_0x863e7d(0x36f);const _0xe78ffa=ut,_0x2cefa1=Le-Ar,_0x401ba6=us-0x2*ut;if(_0xa960c1>_0x401ba6){let _0x5c1666='',_0x489e6f=0x0;for(const _0x3d9ce7 of _0x2a6d05){const _0x126c70=_0x436915[_0x863e7d(0x412)](_0x3d9ce7)[_0x863e7d(0x3a1)];if(_0x489e6f+_0x126c70<=_0x401ba6-_0x436915[_0x863e7d(0x412)]('...')[_0x863e7d(0x3a1)])_0x5c1666+=_0x3d9ce7,_0x489e6f+=_0x126c70;else{_0x5c1666+=_0x863e7d(0x211);break;}}_0x436915['fillText'](_0x5c1666,_0xe78ffa,_0x2cefa1);}else _0x436915[_0x863e7d(0x3be)](_0x2a6d05,_0xe78ffa,_0x2cefa1);_0x436915[_0x863e7d(0x2bb)]();}[_0xa6a604(0x495)](_0x58c485){st['drawWith'](_0x58c485,this);}}const dt=_0xa6a604(0x309),$r='collab-text-range-',jr='collab-rect-range-',De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr='rgba(255,\x20255,\x20255,\x200.01)';class ds{constructor(_0x2939fe,_0x45b8dd,_0x276276,_0x14e32f){const _0x59e706=_0xa6a604;l(this,'_shapes',[]),l(this,_0x59e706(0x3a4),null),l(this,_0x59e706(0x241),null),l(this,_0x59e706(0x306),null),l(this,_0x59e706(0x1ea),null),l(this,_0x59e706(0x2ed),null),(this['_cursor']=_0x2939fe,this['_scene']=_0x45b8dd,this[_0x59e706(0x289)]=_0x276276,this[_0x59e706(0x465)]=_0x14e32f,this[_0x59e706(0x36b)]());}set['_hover'](_0x14cbb8){const _0x23cf8c=_0xa6a604;_0x14cbb8?(this[_0x23cf8c(0x306)]&&this[_0x23cf8c(0x306)]['hide'](),this[_0x23cf8c(0x241)]&&this[_0x23cf8c(0x241)][_0x23cf8c(0x4d8)]()):(this['_anchorDot']&&this['_anchorDot'][_0x23cf8c(0x4d8)](),this[_0x23cf8c(0x241)]&&this[_0x23cf8c(0x241)]['hide']());}[_0xa6a604(0x4f4)](){const _0x22f9e8=_0xa6a604;for(const _0x88940 of this[_0x22f9e8(0x468)])_0x88940[_0x22f9e8(0x4f4)]();this['_textBubble']&&this[_0x22f9e8(0x241)][_0x22f9e8(0x4f4)](),this['_anchorDot']&&this[_0x22f9e8(0x306)][_0x22f9e8(0x4f4)](),this['_anchor']&&this[_0x22f9e8(0x3a4)][_0x22f9e8(0x4f4)](),this[_0x22f9e8(0x2ed)]&&this['_eventUnsubscribe']();}['_render'](){const _0x5e7ba0=_0xa6a604;var _0x5e0f1a;const {_docSkeleton:_0x3091de,_document:_0x48bbf8}=this,{color:_0x5c46fa,name:_0x2350f3,ranges:_0x89d627}=this[_0x5e7ba0(0x40e)],_0x48d03b=_0x48bbf8['getOffsetConfig'](),{docsLeft:_0x51c16f,docsTop:_0x11b222}=_0x48d03b,_0x524e57=new _0x3ae0b8(_0x48d03b,_0x3091de);for(const {startOffset:_0x109644,endOffset:_0x2763b3,collapsed:_0x37c74b,isActive:_0x5a0695}of _0x89d627){const _0xb857ef=_0x3091de[_0x5e7ba0(0x488)](_0x109644),_0x2a5b31=_0x3091de[_0x5e7ba0(0x488)](_0x2763b3);if(_0x5a0695){const {contentBoxPointGroup:_0x3008b5}=_0x524e57['getRangePointData'](_0x2a5b31,_0x2a5b31);if(_0x3008b5[_0x5e7ba0(0x391)]===0x0)continue;this[_0x5e7ba0(0x39a)](_0x5c46fa,_0x3008b5,_0x51c16f,_0x11b222,_0x2350f3),this[_0x5e7ba0(0x2ed)]=this[_0x5e7ba0(0x361)]();}if(!_0x37c74b&&_0xb857ef&&_0x2a5b31){if(_0x22164d(_0xb857ef,_0x2a5b31)){const _0x2d4155=new _0x489432(_0x48d03b,_0x3091de),{pointGroup:_0x41f58b}=(_0x5e0f1a=_0x2d4155[_0x5e7ba0(0x1f6)](_0xb857ef,_0x2a5b31))!=null?_0x5e0f1a:{};if(_0x41f58b==null||_0x41f58b['length']===0x0)continue;this[_0x5e7ba0(0x534)](_0x5c46fa,_0x41f58b,_0x51c16f,_0x11b222);}else{const {contentBoxPointGroup:_0x3b54d7}=_0x524e57[_0x5e7ba0(0x1f6)](_0xb857ef,_0x2a5b31);if(_0x3b54d7['length']===0x0)continue;this[_0x5e7ba0(0x487)](_0x5c46fa,_0x3b54d7,_0x51c16f,_0x11b222);}}}}['_drawAnchor'](_0x20d1a6,_0x2bf27e,_0x5b9cb3,_0x11e59f,_0x2c3ed7){const _0x15d453=_0xa6a604,_0x565d95=this['_getAnchorBounding'](_0x2bf27e),{left:_0x3c44b7,top:_0x2903f1,height:_0x534b5e}=_0x565d95,_0x2ea1d2=this[_0x15d453(0x39e)](),_0x4692d4=Hr/_0x2ea1d2,_0x58bbe6=new _0x2f5118(dt+_0x3c0ad5[_0x15d453(0x24c)](De),{'left':_0x3c44b7+_0x5b9cb3-_0x4692d4,'top':_0x2903f1+_0x11e59f,'height':_0x534b5e,'width':xr,'fill':_0x20d1a6||_0x3d1cbf(_0x343cac[_0x15d453(0x370)],0x0),'strokeWidth':_0x4692d4,'stroke':kr,'evented':!0x0});this[_0x15d453(0x3a4)]=_0x58bbe6,this[_0x15d453(0x420)][_0x15d453(0x4ba)](_0x58bbe6,_0x3284d2);const _0x43306b=new _0x2f5118(dt+_0x3c0ad5[_0x15d453(0x24c)](De),{'left':_0x3c44b7+_0x5b9cb3-_0x4692d4,'top':_0x2903f1+_0x11e59f-ft/0x2,'height':ft,'width':ft,'fill':_0x20d1a6||_0x3d1cbf(_0x343cac[_0x15d453(0x370)],0x0),'strokeWidth':0x0,'stroke':_0x20d1a6||_0x3d1cbf(_0x343cac['black'],0x0),'evented':!0x1});this[_0x15d453(0x306)]=_0x43306b,this[_0x15d453(0x420)][_0x15d453(0x4ba)](_0x43306b,_0x3284d2);const _0x2ecc84=new st(dt+_0x3c0ad5['generateRandomId'](De),{'left':_0x3c44b7+_0x5b9cb3-_0x4692d4,'top':_0x2903f1+_0x11e59f-Le,'text':_0x2c3ed7,'color':_0x20d1a6});this['_textBubble']=_0x2ecc84,this[_0x15d453(0x420)]['addObject'](_0x2ecc84,_0x3284d2),this[_0x15d453(0x460)]=!0x1;}[_0xa6a604(0x361)](){const _0xc232d4=_0xa6a604,_0x416f66=this['_anchor'][_0xc232d4(0x3b7)]['subscribeEvent'](()=>{const _0x4a8029=_0xc232d4;this[_0x4a8029(0x460)]=!0x0;}),_0x1392c6=this[_0xc232d4(0x3a4)][_0xc232d4(0x4aa)][_0xc232d4(0x220)](()=>{const _0x3778f3=_0xc232d4;this[_0x3778f3(0x1ea)]&&clearTimeout(this[_0x3778f3(0x1ea)]),this[_0x3778f3(0x1ea)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1634de=_0xc232d4;_0x416f66[_0x1634de(0x442)](),_0x1392c6['unsubscribe']();};}[_0xa6a604(0x487)](_0x1dce0f,_0x5286ad,_0x38b5c4,_0x5bbd14){const _0x4827b3=_0xa6a604,_0x5067a0=new _0x2385c0(_0x1dce0f)[_0x4827b3(0x320)](0.2)[_0x4827b3(0x413)](),_0x4e4a4a=new _0x500449($r+_0x3c0ad5[_0x4827b3(0x24c)](De),{'pointsGroup':_0x5286ad,'fill':_0x5067a0||_0x3d1cbf(_0x343cac[_0x4827b3(0x370)],0.2),'left':_0x38b5c4,'top':_0x5bbd14,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4e4a4a),this[_0x4827b3(0x420)][_0x4827b3(0x4ba)](_0x4e4a4a,_0x3284d2);}['_drawRectRange'](_0x194619,_0x4b5cbc,_0x11ee2f,_0xb75427){const _0x55a176=_0xa6a604,_0x3e2768=new _0x2385c0(_0x194619)[_0x55a176(0x320)](0.2)[_0x55a176(0x413)](),_0x47421a=new _0x500449(jr+_0x3c0ad5['generateRandomId'](De),{'pointsGroup':_0x4b5cbc,'fill':_0x3e2768||_0x3d1cbf(_0x343cac[_0x55a176(0x370)],0.2),'left':_0x11ee2f,'top':_0xb75427,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x55a176(0x468)][_0x55a176(0x539)](_0x47421a),this[_0x55a176(0x420)][_0x55a176(0x4ba)](_0x47421a,_0x3284d2);}['_getAnchorBounding'](_0x328d11){const _0xf0412a=_0x328d11[0x0],_0x48170e=_0xf0412a[0x0],_0x2bc731=_0xf0412a[0x2],{x:_0x7d438f,y:_0x1d8110}=_0x48170e,{x:_0x1b2c58,y:_0x201aca}=_0x2bc731;return{'left':_0x7d438f,'top':_0x1d8110,'width':_0x1b2c58-_0x7d438f,'height':_0x201aca-_0x1d8110};}[_0xa6a604(0x39e)](){const _0x2507b2=_0xa6a604,{scaleX:_0x49849d,scaleY:_0x4eda77}=this[_0x2507b2(0x420)][_0x2507b2(0x338)]();return Math[_0x2507b2(0x4c5)](_0x49849d,_0x4eda77);}}var Br=Object[_0xa6a604(0x222)],Vr=Object[_0xa6a604(0x4ce)],Fr=(_0x4dc8d4,_0x4a70c3,_0x3c7fbf,_0xe11823)=>{for(var _0xa59ea8=_0xe11823>0x1?void 0x0:_0xe11823?Vr(_0x4a70c3,_0x3c7fbf):_0x4a70c3,_0x8b6a6=_0x4dc8d4['length']-0x1,_0x2d961c;_0x8b6a6>=0x0;_0x8b6a6--)(_0x2d961c=_0x4dc8d4[_0x8b6a6])&&(_0xa59ea8=(_0xe11823?_0x2d961c(_0x4a70c3,_0x3c7fbf,_0xa59ea8):_0x2d961c(_0xa59ea8))||_0xa59ea8);return _0xe11823&&_0xa59ea8&&Br(_0x4a70c3,_0x3c7fbf,_0xa59ea8),_0xa59ea8;},xe=(_0x1f5a0c,_0x239785)=>(_0x17554a,_0x3931f4)=>_0x239785(_0x17554a,_0x3931f4,_0x1f5a0c);let Dt=class extends _0x48a1ad{constructor(_0x565f0a,_0x7e9c72,_0x56e031,_0x2d70c3,_0x27b82b){const _0x2449d4=_0xa6a604;super(),l(this,'_cursorShapes',[]),l(this,_0x2449d4(0x54c),[]),(this[_0x2449d4(0x21c)]=_0x565f0a,this[_0x2449d4(0x43f)]=_0x7e9c72,this[_0x2449d4(0x50b)]=_0x56e031,this['_commandService']=_0x2d70c3,this[_0x2449d4(0x403)]=_0x27b82b,this[_0x2449d4(0x21e)]());}[_0xa6a604(0x21e)](){const _0x4c0d0a=_0xa6a604,_0x990c89=this[_0x4c0d0a(0x21c)][_0x4c0d0a(0x2a5)],_0xeb4e0f=this['_docSkeletonManagerService'];this[_0x4c0d0a(0x4f3)](_0x161980([this[_0x4c0d0a(0x50b)][_0x4c0d0a(0x432)](_0x990c89),this[_0x4c0d0a(0x403)][_0x4c0d0a(0x2b9)]])[_0x4c0d0a(0x3b6)](_0x4beb38(([_0x52baa8,_0x54b31a])=>({'skeleton':_0xeb4e0f['getSkeleton'](),'cursors':[..._0x52baa8[_0x4c0d0a(0x261)]()]['flatMap'](_0x305fbb=>({..._0x305fbb,'color':_0x54b31a[_0x305fbb[_0x4c0d0a(0x510)]]}))})))['subscribe'](_0x38a0fa=>{const _0xdc7e12=_0x4c0d0a;if(this[_0xdc7e12(0x2d1)](),_0x38a0fa){const {skeleton:_0xb2703d,cursors:_0x360262}=_0x38a0fa;this[_0xdc7e12(0x4c0)](_0xb2703d,_0x360262);}})),this[_0x4c0d0a(0x29b)](),this[_0x4c0d0a(0x312)]();}[_0xa6a604(0x4c0)](_0x210a7c,_0x434158){const _0x3f9c1b=_0xa6a604,{scene:_0x550ef7,mainComponent:_0x497259}=this[_0x3f9c1b(0x21c)],_0xbe49d1=_0x434158[_0x3f9c1b(0x422)](_0x325e5e=>new ds(_0x325e5e,_0x550ef7,_0x210a7c,_0x497259));this['_cursorShapes']=_0xbe49d1,this[_0x3f9c1b(0x54c)]=_0x434158;}[_0xa6a604(0x3a9)](){const _0x51653f=_0xa6a604;this[_0x51653f(0x2d1)]();const {scene:_0x44c279,mainComponent:_0x13f388}=this[_0x51653f(0x21c)],_0x8c5fef=this[_0x51653f(0x43f)][_0x51653f(0x530)](),_0x62e86f=this[_0x51653f(0x54c)]['map'](_0x72afb5=>new ds(_0x72afb5,_0x44c279,_0x8c5fef,_0x13f388));this[_0x51653f(0x32a)]=_0x62e86f;}['_removeCollabCursors'](){const _0x3ce757=_0xa6a604;this[_0x3ce757(0x32a)][_0x3ce757(0x213)](_0x2289fa=>_0x2289fa[_0x3ce757(0x4f4)]()),this['_cursorShapes']=[];}[_0xa6a604(0x312)](){const _0x20f189=_0xa6a604,_0x41b362=[_0x54633a['id']];this[_0x20f189(0x4f3)](this['_commandService'][_0x20f189(0x365)](_0x294086=>{const _0x49de0f=_0x20f189;_0x41b362[_0x49de0f(0x2ac)](_0x294086['id'])&&_0x294086['params'][_0x49de0f(0x2a5)]===this[_0x49de0f(0x21c)][_0x49de0f(0x2a5)]&&this['_refreshCollabCursors']();}));}[_0xa6a604(0x29b)](){const _0x28dee8=_0xa6a604;this[_0x28dee8(0x4f3)](_0x41d8df(this[_0x28dee8(0x21c)][_0x28dee8(0x33c)][_0x28dee8(0x3c3)])[_0x28dee8(0x3b6)](_0x38e98e(_0x58872b=>_0x58872b[_0x28dee8(0x536)]===_0x2ae356[_0x28dee8(0x314)]),_0x20abf3(0x10))[_0x28dee8(0x426)](()=>{const _0x252264=_0x28dee8;this[_0x252264(0x3a9)]();}));}};Dt=Fr([xe(0x1,_0x160402(_0xae4148)),xe(0x2,_0x160402(pe)),xe(0x3,_0x5a0862),xe(0x4,_0x160402(_0x3ce7f6))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x202b11{constructor(_0x10787d,_0x9f3e29){const _0x3f7640=_0xa6a604;super(_0x10787d,_0x9f3e29),l(this,_0x3f7640(0x526)),l(this,_0x3f7640(0x4bd),!0x1),l(this,'_range'),l(this,_0x3f7640(0x2cf),''),l(this,_0x3f7640(0x251),'top'),l(this,'_backgroundColor'),(_0x9f3e29&&this[_0x3f7640(0x2a0)](_0x9f3e29),this[_0x3f7640(0x3b7)][_0x3f7640(0x220)](()=>this[_0x3f7640(0x2a0)]({'hovered':!0x0})),this[_0x3f7640(0x4aa)][_0x3f7640(0x220)](()=>this[_0x3f7640(0x2a0)]({'hovered':!0x1})));}[_0xa6a604(0x2a0)](_0x520d2a){const _0x539c7e=_0xa6a604;var _0xf72fe9,_0x28d0bc,_0x5ce410,_0x1c204d,_0x2db74a,_0x4bcbbd;this[_0x539c7e(0x526)]=(_0xf72fe9=_0x520d2a[_0x539c7e(0x510)])!=null?_0xf72fe9:this[_0x539c7e(0x526)],this[_0x539c7e(0x4bd)]=(_0x28d0bc=_0x520d2a[_0x539c7e(0x4ee)])!=null?_0x28d0bc:this[_0x539c7e(0x4bd)],this[_0x539c7e(0x400)]=(_0x5ce410=_0x520d2a[_0x539c7e(0x49a)])!=null?_0x5ce410:this['_range'],this[_0x539c7e(0x2cf)]=(_0x1c204d=_0x520d2a['name'])!=null?_0x1c204d:this[_0x539c7e(0x2cf)],this[_0x539c7e(0x251)]=(_0x2db74a=_0x520d2a[_0x539c7e(0x3c4)])!=null?_0x2db74a:this[_0x539c7e(0x251)],this[_0x539c7e(0x287)]=(_0x4bcbbd=_0x520d2a['backgroundColor'])!=null?_0x4bcbbd:this[_0x539c7e(0x287)],this[_0x539c7e(0x342)]({'width':_0x520d2a[_0x539c7e(0x3a1)],'height':_0x520d2a[_0x539c7e(0x4b7)]});}[_0xa6a604(0x3f0)](_0x1e6361){const _0xc0b6b4=_0xa6a604,{row:_0x38532e,column:_0x48118f}=_0x1e6361;if(_0x38532e>=this[_0xc0b6b4(0x400)][_0xc0b6b4(0x228)]&&_0x38532e<=this[_0xc0b6b4(0x400)][_0xc0b6b4(0x51d)]&&_0x48118f>=this['_range'][_0xc0b6b4(0x4ad)]&&_0x48118f<=this['_range']['endColumn']){this[_0xc0b6b4(0x2a0)]({'hovered':!0x0});return;}this[_0xc0b6b4(0x2a0)]({'hovered':!0x1});}['triggerDblclick'](_0x1d66e0){return!0x1;}[_0xa6a604(0x495)](_0x72861c){const _0x160fe6=_0xa6a604;_0x2f5118[_0x160fe6(0x4fd)](_0x72861c,{'width':this[_0x160fe6(0x3a1)],'height':this['height'],'strokeWidth':Gr,'stroke':this[_0x160fe6(0x526)],'evented':!0x1,'fill':this[_0x160fe6(0x287)]}),this[_0x160fe6(0x4bd)]&&(_0x72861c['save'](),_0x72861c[_0x160fe6(0x3da)](0x1,0x0,0x0,0x1,this[_0x160fe6(0x3a1)],this[_0x160fe6(0x251)]===_0x160fe6(0x20f)?0x0:-Le),st['drawWith'](_0x72861c,{'text':this[_0x160fe6(0x2cf)],'color':this[_0x160fe6(0x526)]}),_0x72861c[_0x160fe6(0x2bb)]());}}var Kr=Object[_0xa6a604(0x222)],Xr=Object[_0xa6a604(0x4ce)],Jr=(_0x570ba2,_0x2928b7,_0x37918e,_0x27670a)=>{const _0x139699=_0xa6a604;for(var _0xe3faeb=_0x27670a>0x1?void 0x0:_0x27670a?Xr(_0x2928b7,_0x37918e):_0x2928b7,_0x2773ba=_0x570ba2[_0x139699(0x391)]-0x1,_0x154523;_0x2773ba>=0x0;_0x2773ba--)(_0x154523=_0x570ba2[_0x2773ba])&&(_0xe3faeb=(_0x27670a?_0x154523(_0x2928b7,_0x37918e,_0xe3faeb):_0x154523(_0xe3faeb))||_0xe3faeb);return _0x27670a&&_0xe3faeb&&Kr(_0x2928b7,_0x37918e,_0xe3faeb),_0xe3faeb;},mt=(_0xcfe943,_0x11104c)=>(_0x3adab2,_0x5f0b41)=>_0x11104c(_0x3adab2,_0x5f0b41,_0xcfe943);const qr=0x1389;let wt=class extends _0x48a1ad{constructor(_0x365bda,_0x450c4c,_0x20411f,_0x5f0467){const _0x2ceb85=_0xa6a604;super(),l(this,_0x2ceb85(0x54c),new Set()),l(this,_0x2ceb85(0x2c5),null),(this[_0x2ceb85(0x21c)]=_0x365bda,this['_sheetSkeletonManagerService']=_0x450c4c,this[_0x2ceb85(0x50b)]=_0x20411f,this['_themeService']=_0x5f0467,this[_0x2ceb85(0x21e)]());}[_0xa6a604(0x21e)](){const _0x51a365=_0xa6a604;this[_0x51a365(0x2bf)][_0x51a365(0x3a8)][_0x51a365(0x3b6)](_0x4c0c8e(this[_0x51a365(0x424)]),_0x481de6(_0x3a56c2=>{const _0x43d2a8=_0x51a365;if(_0x3a56c2){const _0x59196a=_0x3a56c2[_0x43d2a8(0x212)];return _0x161980(this[_0x43d2a8(0x50b)]['getCollabCursors$'](this['_context'][_0x43d2a8(0x2a5)]),this[_0x43d2a8(0x403)][_0x43d2a8(0x2b9)])[_0x43d2a8(0x3b6)](_0x4beb38(([_0x285c35,_0x2ab410])=>{const _0x2da7a9=_0x43d2a8,_0x2964a3=new Map();return _0x285c35[_0x2da7a9(0x213)]((_0x1e4c44,_0x3229c3)=>{const _0xc2b7f8=_0x2da7a9;if(_0x1e4c44[_0xc2b7f8(0x39d)]===_0x59196a){const _0x522a29={..._0x1e4c44};_0x522a29[_0xc2b7f8(0x510)]=_0x2ab410[_0x1e4c44[_0xc2b7f8(0x510)]],_0x2964a3[_0xc2b7f8(0x455)](_0x3229c3,_0x522a29);}}),{'skeleton':_0x3a56c2,'cursors':_0x2964a3};}));}return _0x3a75ff({'skeleton':null,'cursors':new Map()});}))[_0x51a365(0x426)](({skeleton:_0x53bea5,cursors:_0x1173fe})=>{const _0x33d738=_0x51a365;this['_removeCollabCursors'](),_0x53bea5&&this[_0x33d738(0x4c0)](_0x53bea5,_0x1173fe);}),this[_0x51a365(0x2bf)][_0x51a365(0x3a8)]['subscribe'](_0x373b58=>{const _0x20b9f2=_0x51a365;if(_0x373b58==null)return;const {skeleton:_0x2b29d0}=_0x373b58,{scene:_0x4fe8bc}=this[_0x20b9f2(0x21c)];_0x4fe8bc['onPointerMove$'][_0x20b9f2(0x220)](_0x30da7c(_0x1cd2db=>{const _0x37503f=_0x20b9f2;var _0x28cc87,_0x255869;const {offsetX:_0x23ba42,offsetY:_0x217024}=_0x1cd2db,{x:_0x13f74e,y:_0x5de36d}=_0x4fe8bc[_0x37503f(0x382)](_0x1811c0[_0x37503f(0x28a)]([_0x23ba42,_0x217024])),{scaleX:_0x4f88d1,scaleY:_0xb3d7b5}=_0x4fe8bc[_0x37503f(0x338)](),_0x235ab6=_0x4fe8bc['getViewport'](_0x34ad61[_0x37503f(0x532)]),_0x2e1137=_0x4fe8bc['getVpScrollXYInfoByPosToVp'](_0x1811c0['FromArray']([_0x13f74e,_0x5de36d]),_0x235ab6),_0x4eba1d=_0x2b29d0[_0x37503f(0x4a3)](_0x23ba42,_0x217024,_0x4f88d1,_0xb3d7b5,_0x2e1137);((_0x28cc87=this['_lastPointer'])==null?void 0x0:_0x28cc87[_0x37503f(0x229)])===_0x4eba1d['column']&&((_0x255869=this[_0x37503f(0x2c5)])==null?void 0x0:_0x255869['row'])===_0x4eba1d[_0x37503f(0x474)]||this[_0x37503f(0x54c)][_0x37503f(0x213)](_0x58626f=>{const _0x432943=_0x37503f;_0x58626f[_0x432943(0x3f0)](_0x4eba1d);});},0x64));});}[_0xa6a604(0x4c0)](_0x5ef6ea,_0x5cd851){const _0x4b5031=_0xa6a604;var _0x4b4ec4;const _0x3123a0=(_0x4b4ec4=this[_0x4b5031(0x2bf)][_0x4b5031(0x477)]())==null?void 0x0:_0x4b4ec4['skeleton'];if(!_0x3123a0)return;const _0x2719a8=this['_getSheetObject']();if(!_0x2719a8)return;this[_0x4b5031(0x54c)][_0x4b5031(0x213)](_0x136cd9=>{const _0x573a98=_0x4b5031;_0x136cd9[_0x573a98(0x2a7)]();});const {scene:_0x4be60b}=_0x2719a8,_0x383873=zr(Array[_0x4b5031(0x281)](_0x5cd851[_0x4b5031(0x261)]()))['map'](_0x1e5eb8=>{const _0x1508fe=_0x4b5031,{color:_0x404e01,range:_0x5b6274,name:_0x3831d5,selection:_0x38ffcd,sheetID:_0x441aa9}=_0x1e5eb8,{startColumn:_0xc0f46b,startRow:_0x4d9bc4,endColumn:_0x5ab3cf,endRow:_0x575a80}=_0x5b6274,_0x501f5f=_0x35d811(_0x4d9bc4,_0xc0f46b,_0x4be60b,_0x3123a0),_0x2b80fd=_0x35d811(_0x575a80,_0x5ab3cf,_0x4be60b,_0x3123a0),{columnHeaderHeightAndMarginTop:_0x5c3404}=_0x3123a0,{startX:_0x348da3,startY:_0x4d8a91}=_0x501f5f,{endX:_0x5c74f3,endY:_0x4814ca}=_0x2b80fd,_0x3be5be=_0x5c74f3-_0x348da3,_0x101a2a=_0x4814ca-_0x4d8a91,_0x4ec29d={'labelPosition':_0x4d8a91-_0x5c3404>=Le?_0x1508fe(0x439):'bottom','sheetID':_0x441aa9,'range':_0x5b6274,'color':_0x404e01,'name':_0x3831d5,'selection':_0x38ffcd,'left':_0x348da3,'top':_0x4d8a91,'width':_0x3be5be,'height':_0x101a2a,'evented':!0x1,'zIndex':qr};return new Yr(_0x3831d5,_0x4ec29d);});_0x4be60b[_0x4b5031(0x362)](_0x383873,Wr),this[_0x4b5031(0x54c)]=new Set(_0x383873);}[_0xa6a604(0x2d1)](){const _0x286595=_0xa6a604;var _0x7ab3af;(_0x7ab3af=this[_0x286595(0x54c)])==null||_0x7ab3af[_0x286595(0x213)](_0x20c7ba=>_0x20c7ba[_0x286595(0x4f4)]());}[_0xa6a604(0x415)](){const _0x276b73=_0xa6a604;return _0x255eaf(this[_0x276b73(0x21c)][_0x276b73(0x1e5)],this[_0x276b73(0x21c)]);}};wt=Jr([mt(0x1,_0x160402(_0x2e7833)),mt(0x2,_0x160402(pe)),mt(0x3,_0x160402(_0x3ce7f6))],wt);function zr(_0x40b1fd){const _0x18b0a3=_0xa6a604,_0x238852=new Map();return _0x40b1fd[_0x18b0a3(0x213)](_0x7b5bbe=>{const _0xb42dbb=_0x18b0a3;if(_0x238852[_0xb42dbb(0x1f9)](_0x7b5bbe[_0xb42dbb(0x433)])){const _0x11f981=_0x238852[_0xb42dbb(0x504)](_0x7b5bbe[_0xb42dbb(0x433)]);_0x11f981[_0xb42dbb(0x3cb)]+=',\x20'+_0x7b5bbe['name'];}else _0x238852[_0xb42dbb(0x455)](_0x7b5bbe[_0xb42dbb(0x433)],_0x7b5bbe);}),Array[_0x18b0a3(0x281)](_0x238852[_0x18b0a3(0x261)]());}var N=function(){const _0x1d59a0=_0xa6a604;return N=Object[_0x1d59a0(0x20d)]||function(_0x5d79aa){const _0x4611de=_0x1d59a0;for(var _0x17e707,_0x20d5ff=0x1,_0x467956=arguments['length'];_0x20d5ff<_0x467956;_0x20d5ff++){_0x17e707=arguments[_0x20d5ff];for(var _0x4c6d8a in _0x17e707)Object[_0x4611de(0x223)][_0x4611de(0x481)][_0x4611de(0x24f)](_0x17e707,_0x4c6d8a)&&(_0x5d79aa[_0x4c6d8a]=_0x17e707[_0x4c6d8a]);}return _0x5d79aa;},N[_0x1d59a0(0x384)](this,arguments);},Zr=function(_0x4c9bed,_0x55feee){const _0xd27fed=_0xa6a604;var _0x3b1711={};for(var _0x102b19 in _0x4c9bed)Object['prototype']['hasOwnProperty']['call'](_0x4c9bed,_0x102b19)&&_0x55feee[_0xd27fed(0x458)](_0x102b19)<0x0&&(_0x3b1711[_0x102b19]=_0x4c9bed[_0x102b19]);if(_0x4c9bed!=null&&typeof Object['getOwnPropertySymbols']==_0xd27fed(0x2f3)){for(var _0x49b242=0x0,_0x102b19=Object['getOwnPropertySymbols'](_0x4c9bed);_0x49b242<_0x102b19[_0xd27fed(0x391)];_0x49b242++)_0x55feee[_0xd27fed(0x458)](_0x102b19[_0x49b242])<0x0&&Object[_0xd27fed(0x223)][_0xd27fed(0x29a)][_0xd27fed(0x24f)](_0x4c9bed,_0x102b19[_0x49b242])&&(_0x3b1711[_0x102b19[_0x49b242]]=_0x4c9bed[_0x102b19[_0x49b242]]);}return _0x3b1711;},Wt=_0x39d2df(function(_0x2e7bd5,_0x25365a){const _0xe8c1f=_0xa6a604;var _0x2a5fb7=_0x2e7bd5[_0xe8c1f(0x500)],_0x5b81b6=_0x2e7bd5['id'],_0x3f01e1=_0x2e7bd5[_0xe8c1f(0x2f1)],_0x4442f5=_0x2e7bd5[_0xe8c1f(0x3d4)],_0x4bea71=Zr(_0x2e7bd5,[_0xe8c1f(0x500),'id',_0xe8c1f(0x2f1),_0xe8c1f(0x3d4)]),_0x433029=_0xe8c1f(0x2d3)[_0xe8c1f(0x35d)](_0x5b81b6,'\x20')['concat'](_0x3f01e1||'')[_0xe8c1f(0x508)](),_0x1cb80c=_0x3b887a('_'['concat'](to()));return ks(_0x2a5fb7,''[_0xe8c1f(0x35d)](_0x5b81b6),{'defIds':_0x2a5fb7[_0xe8c1f(0x368)],'idSuffix':_0x1cb80c[_0xe8c1f(0x46f)]},N({'ref':_0x25365a,'className':_0x433029},_0x4bea71),_0x4442f5);});function ks(_0xa01993,_0x54669f,_0x46dcc7,_0x2c94fe,_0x5e248c){const _0x12af24=_0xa6a604;return _0x52237d(_0xa01993['tag'],N(N({'key':_0x54669f},Qr(_0xa01993,_0x46dcc7,_0x5e248c)),_0x2c94fe),(eo(_0xa01993,_0x46dcc7)[_0x12af24(0x4f7)]||[])['map'](function(_0xc35f16,_0x336d06){const _0x183acb=_0x12af24;return ks(_0xc35f16,''[_0x183acb(0x35d)](_0x54669f,'-')[_0x183acb(0x35d)](_0xa01993['tag'],'-')['concat'](_0x336d06),_0x46dcc7,void 0x0,_0x5e248c);}));}function Qr(_0x1b4def,_0x12ed70,_0x47c1b8){const _0x7581c7=_0xa6a604;var _0xef3380=N({},_0x1b4def['attrs']);_0x47c1b8!=null&&_0x47c1b8['colorChannel1']&&_0xef3380['fill']===_0x7581c7(0x323)&&(_0xef3380[_0x7581c7(0x3e2)]=_0x47c1b8[_0x7581c7(0x323)]);var _0x3ae656=_0x12ed70[_0x7581c7(0x368)];return!_0x3ae656||_0x3ae656[_0x7581c7(0x391)]===0x0||(_0x1b4def[_0x7581c7(0x42f)]===_0x7581c7(0x476)&&_0xef3380[_0x7581c7(0x4c1)]&&(_0xef3380[_0x7581c7(0x4c1)]=_0xef3380[_0x7581c7(0x4c1)]+_0x12ed70[_0x7581c7(0x1f1)]),Object[_0x7581c7(0x296)](_0xef3380)[_0x7581c7(0x213)](function(_0x308bae){const _0x45079a=_0x7581c7;var _0xa8701a=_0x308bae[0x0],_0xae3590=_0x308bae[0x1];typeof _0xae3590==_0x45079a(0x3ec)&&(_0xef3380[_0xa8701a]=_0xae3590['replace'](/url\(#(.*)\)/,'url(#$1'[_0x45079a(0x35d)](_0x12ed70[_0x45079a(0x1f1)],')')));})),_0xef3380;}function eo(_0xcdf576,_0x53183a){const _0x49f909=_0xa6a604;var _0x2c9684,_0x32d052=_0x53183a[_0x49f909(0x368)];return!_0x32d052||_0x32d052['length']===0x0?_0xcdf576:_0xcdf576['tag']==='defs'&&(!((_0x2c9684=_0xcdf576['children'])===null||_0x2c9684===void 0x0)&&_0x2c9684['length'])?N(N({},_0xcdf576),{'children':_0xcdf576[_0x49f909(0x4f7)][_0x49f909(0x422)](function(_0x580ad8){const _0x261757=_0x49f909;return typeof _0x580ad8['attrs']['id']==_0x261757(0x3ec)&&_0x32d052&&_0x32d052[_0x261757(0x458)](_0x580ad8[_0x261757(0x478)]['id'])>-0x1?N(N({},_0x580ad8),{'attrs':N(N({},_0x580ad8['attrs']),{'id':_0x580ad8[_0x261757(0x478)]['id']+_0x53183a[_0x261757(0x1f1)]})}):_0x580ad8;})}):_0xcdf576;}function to(){const _0x291f93=_0xa6a604;return Math['random']()[_0x291f93(0x3ed)](0x24)[_0x291f93(0x2ba)](0x2,0x8);}Wt[_0xa6a604(0x523)]=_0xa6a604(0x483);var so={'tag':_0xa6a604(0x245),'attrs':{'fill':_0xa6a604(0x3ff),'viewBox':_0xa6a604(0x2c9),'width':'1em','height':_0xa6a604(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0xa6a604(0x431),'attrs':{'stroke':_0xa6a604(0x34d),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0xa6a604(0x34a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa6a604(0x3b2),'attrs':{},'children':[{'tag':_0xa6a604(0x217),'attrs':{'id':_0xa6a604(0x47f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0xa6a604(0x23e)}}]}]}],'defIds':[_0xa6a604(0x47f)]},Bs=_0x39d2df(function(_0x1236bf,_0x55ff22){const _0x1f3327=_0xa6a604;return _0x52237d(Wt,Object[_0x1f3327(0x20d)]({},_0x1236bf,{'id':_0x1f3327(0x334),'ref':_0x55ff22,'icon':so}));});Bs['displayName']=_0xa6a604(0x4b1);var io={'tag':_0xa6a604(0x245),'attrs':{'fill':_0xa6a604(0x3ff),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xa6a604(0x3f1)},'children':[{'tag':_0xa6a604(0x431),'attrs':{'stroke':_0xa6a604(0x34d),'d':_0xa6a604(0x4a9),'strokeLinecap':_0xa6a604(0x34a),'strokeLinejoin':_0xa6a604(0x34a),'strokeWidth':1.2}}]},{'tag':_0xa6a604(0x3b2),'attrs':{},'children':[{'tag':_0xa6a604(0x217),'attrs':{'id':_0xa6a604(0x4b3)},'children':[{'tag':_0xa6a604(0x431),'attrs':{'fill':'#fff','d':_0xa6a604(0x23e),'transform':_0xa6a604(0x369)}}]}]}],'defIds':[_0xa6a604(0x4b3)]},Vs=_0x39d2df(function(_0x2a56ff,_0x1d0b8b){const _0xd0766c=_0xa6a604;return _0x52237d(Wt,Object[_0xd0766c(0x20d)]({},_0x2a56ff,{'id':_0xd0766c(0x2da),'ref':_0x1d0b8b,'icon':io}));});Vs[_0xa6a604(0x523)]='OnLineSingle';function Fs(_0x5b3925){const _0x2e82c5=_0xa6a604;var _0x1aa8c8,_0x24cc26,_0x1bb598='';if(typeof _0x5b3925==_0x2e82c5(0x3ec)||typeof _0x5b3925==_0x2e82c5(0x45f))_0x1bb598+=_0x5b3925;else{if(typeof _0x5b3925==_0x2e82c5(0x329)){if(Array[_0x2e82c5(0x2f8)](_0x5b3925)){var _0x97e68e=_0x5b3925['length'];for(_0x1aa8c8=0x0;_0x1aa8c8<_0x97e68e;_0x1aa8c8++)_0x5b3925[_0x1aa8c8]&&(_0x24cc26=Fs(_0x5b3925[_0x1aa8c8]))&&(_0x1bb598&&(_0x1bb598+='\x20'),_0x1bb598+=_0x24cc26);}else{for(_0x24cc26 in _0x5b3925)_0x5b3925[_0x24cc26]&&(_0x1bb598&&(_0x1bb598+='\x20'),_0x1bb598+=_0x24cc26);}}}return _0x1bb598;}function no(){const _0x589024=_0xa6a604;for(var _0x420812,_0x55436a,_0x3842c6=0x0,_0x2b412f='',_0x5012da=arguments[_0x589024(0x391)];_0x3842c6<_0x5012da;_0x3842c6++)(_0x420812=arguments[_0x3842c6])&&(_0x55436a=Fs(_0x420812))&&(_0x2b412f&&(_0x2b412f+='\x20'),_0x2b412f+=_0x55436a);return _0x2b412f;}const ro='univer-online-status-icon',oo=_0xa6a604(0x464),ao=_0xa6a604(0x498),co=_0xa6a604(0x471),ho=_0xa6a604(0x4a8),we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0x110544){const _0x224b68=_0xa6a604;switch(_0x110544){case w[_0x224b68(0x210)]:return'collabStatus.offline';case w['CONFLICT']:return _0x224b68(0x28f);case w[_0x224b68(0x202)]:return _0x224b68(0x4fa);case w[_0x224b68(0x41b)]:return'collabStatus.notCollab';case w[_0x224b68(0x4a5)]:case w[_0x224b68(0x3a3)]:case w[_0x224b68(0x364)]:return _0x224b68(0x27c);case w[_0x224b68(0x2b2)]:return _0x224b68(0x29f);}}function _o(_0x3f30a7){const _0x424756=_0xa6a604,{status$:_0x2db81e}=_0x3f30a7,_0x1d8d6e=_0x4bb038(_0x2db81e,w[_0x424756(0x41b)]),_0x59b500=_0x36782d(_0x2f3b7b),_0x2bbe11=_0x36782d(ce),_0x4cc2de=_0x1d8d6e!==w[_0x424756(0x210)],_0x4a93dc=_0x59b500['t'](lo(_0x1d8d6e)),_0xa5c3ad=no(we[_0x424756(0x262)],{[we[_0x424756(0x343)]]:_0x4cc2de,[we['offline']]:!_0x4cc2de}),_0x5287f8=_0x4cc2de?_0x369a6b[_0x424756(0x522)](Vs,null):_0x369a6b[_0x424756(0x522)](Bs,null),_0x15056b=_0x2836d2(()=>{const _0x1503de=_0x424756;_0x4cc2de||_0x2bbe11[_0x1503de(0x237)]();},[_0x4cc2de,_0x2bbe11]);function _0x3163d2(){const _0x44318d=_0x424756;return _0x369a6b['createElement']('div',{'className':_0xa5c3ad,'onClick':_0x15056b},_0x369a6b[_0x44318d(0x522)](_0x44318d(0x375),{'className':we['onlineStatusIcon']},_0x5287f8),_0x369a6b[_0x44318d(0x522)](_0x44318d(0x375),{'className':we[_0x44318d(0x416)]},_0x4a93dc));}return _0x4cc2de?_0x3163d2():_0x369a6b['createElement'](_0x4977ae,{'title':_0x59b500['t']('collab-client.tooltip.reconnect')},_0x3163d2());}function _0x40a3(_0x10e2d7,_0x49eda0){const _0x725199=_0x7251();return _0x40a3=function(_0x40a394,_0x6606ca){_0x40a394=_0x40a394-0x1e1;let _0x44917e=_0x725199[_0x40a394];return _0x44917e;},_0x40a3(_0x10e2d7,_0x49eda0);}var uo=Object[_0xa6a604(0x222)],fo=Object[_0xa6a604(0x4ce)],mo=(_0x479a7c,_0x286577,_0x825329,_0x4b6d7d)=>{const _0x1755d7=_0xa6a604;for(var _0x121d50=_0x4b6d7d>0x1?void 0x0:_0x4b6d7d?fo(_0x286577,_0x825329):_0x286577,_0x22b384=_0x479a7c[_0x1755d7(0x391)]-0x1,_0x5ded87;_0x22b384>=0x0;_0x22b384--)(_0x5ded87=_0x479a7c[_0x22b384])&&(_0x121d50=(_0x4b6d7d?_0x5ded87(_0x286577,_0x825329,_0x121d50):_0x5ded87(_0x121d50))||_0x121d50);return _0x4b6d7d&&_0x121d50&&uo(_0x286577,_0x825329,_0x121d50),_0x121d50;},He=(_0x116dc7,_0x31ad1f)=>(_0xdcbdc7,_0x551f61)=>_0x31ad1f(_0xdcbdc7,_0x551f61,_0x116dc7);let Ue=class extends _0x252360{constructor(_0x9d0d70,_0x547d64,_0x44e49e,_0x18c316){const _0x3d1b72=_0xa6a604;super(),l(this,'_status$',new _0x3d8ff6(w[_0x3d1b72(0x41b)])),(this[_0x3d1b72(0x1fd)]=_0x9d0d70,this[_0x3d1b72(0x4b0)]=_0x547d64,this['_injector']=_0x44e49e,this[_0x3d1b72(0x46e)]=_0x18c316,this[_0x3d1b72(0x4ab)](),this[_0x3d1b72(0x1f7)]());}[_0xa6a604(0x1f7)](){const _0x5e1ddb=_0xa6a604;this['disposeWithMe'](this[_0x5e1ddb(0x1fd)][_0x5e1ddb(0x401)][_0x5e1ddb(0x3b6)](_0x26d305(()=>{const _0x92375c=_0x5e1ddb,_0x5777ac=this[_0x92375c(0x1fd)][_0x92375c(0x2a3)]();return _0x5777ac?this[_0x92375c(0x46e)][_0x92375c(0x23a)](_0x5777ac['getUnitId']()):_0x3a75ff(null);}),_0x26d305(_0x13dca8=>_0x13dca8?_0x13dca8[_0x5e1ddb(0x23c)]:_0x3a75ff(w['NOT_COLLAB'])))[_0x5e1ddb(0x426)](_0x5cc8f3=>{const _0x27a878=_0x5e1ddb;this[_0x27a878(0x26e)]['next'](_0x5cc8f3);}));}[_0xa6a604(0x4ab)](){const _0x2a660b=_0xa6a604;this['disposeWithMe'](this['_uiPartsService'][_0x2a660b(0x388)](_0x3d8424[_0x2a660b(0x429)],()=>_0x1e6371(go({'status$':this[_0x2a660b(0x26e)][_0x2a660b(0x294)]()}),this[_0x2a660b(0x35a)])));}};Ue=mo([He(0x0,_0x33adea),He(0x1,_0x438994),He(0x2,_0x160402(_0x283cc6)),He(0x3,_0x160402(Ae))],Ue);function go(_0xea49d4){const {status$:_0x1759db}=_0xea49d4;return function(){return _0x369a6b['createElement'](_o,{'status$':_0x1759db});};}const Ws=_0x33c554(_0xa6a604(0x2f6));var So=Object[_0xa6a604(0x222)],po=Object['getOwnPropertyDescriptor'],vo=(_0x1f24ca,_0x499b8e,_0x3f1c2e,_0x4c3b72)=>{const _0x13cc65=_0xa6a604;for(var _0x11ca45=_0x4c3b72>0x1?void 0x0:_0x4c3b72?po(_0x499b8e,_0x3f1c2e):_0x499b8e,_0x37651b=_0x1f24ca[_0x13cc65(0x391)]-0x1,_0x72d0d5;_0x37651b>=0x0;_0x37651b--)(_0x72d0d5=_0x1f24ca[_0x37651b])&&(_0x11ca45=(_0x4c3b72?_0x72d0d5(_0x499b8e,_0x3f1c2e,_0x11ca45):_0x72d0d5(_0x11ca45))||_0x11ca45);return _0x4c3b72&&_0x11ca45&&So(_0x499b8e,_0x3f1c2e,_0x11ca45),_0x11ca45;},me=(_0x26b689,_0x4f995d)=>(_0x169e8c,_0x52a930)=>_0x4f995d(_0x169e8c,_0x52a930,_0x26b689);let qe=class extends _0x48a1ad{constructor(_0x13ec53,_0x29bdfe,_0x1641e4,_0x483dc1,_0xcfb994,_0x28a4f7){const _0x22fa1c=_0xa6a604;super(),this[_0x22fa1c(0x2be)]=_0x13ec53,this[_0x22fa1c(0x493)]=_0x29bdfe,this[_0x22fa1c(0x4d3)]=_0x1641e4,this[_0x22fa1c(0x302)]=_0x483dc1,this['_snapshotService']=_0xcfb994,_0x28a4f7?_0x28a4f7==null||_0x28a4f7[_0x22fa1c(0x298)]()[_0x22fa1c(0x232)](()=>this[_0x22fa1c(0x21e)]()):(this[_0x22fa1c(0x493)][_0x22fa1c(0x408)]('[DataLoaderController]',_0x22fa1c(0x31b)),this[_0x22fa1c(0x21e)]());}async[_0xa6a604(0x21e)](){const _0x44fa4d=_0xa6a604,_0x13bf56=this['_urlService']['getParam'](_0x44fa4d(0x1e5)),_0x3d374b=this[_0x44fa4d(0x2be)][_0x44fa4d(0x4ed)](_0x44fa4d(0x536));if(!_0x13bf56||!_0x3d374b){this[_0x44fa4d(0x493)]['debug']('[DataLoaderController]',_0x44fa4d(0x4f6));return;}switch(Number(_0x3d374b)){case H[_0x44fa4d(0x48b)]:{const _0x1b3f49=await this[_0x44fa4d(0x3f6)](_0x13bf56);this[_0x44fa4d(0x48f)](_0x1b3f49);break;}case H[_0x44fa4d(0x1eb)]:{await this[_0x44fa4d(0x521)](_0x13bf56);break;}default:{this[_0x44fa4d(0x493)][_0x44fa4d(0x3f7)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0xa6a604(0x48f)](_0x4f0a79){const _0x3c950c=_0xa6a604;await this[_0x3c950c(0x21b)](_0x4f0a79),_0x4f0a79[_0x3c950c(0x524)][_0x3c950c(0x3b6)](_0x23bb2f(this[_0x3c950c(0x424)]))[_0x3c950c(0x426)](_0x23fc0d=>{const _0x1e09d9=_0x3c950c;_0x23fc0d&&this[_0x1e09d9(0x4ae)](_0x23fc0d);}),this['_urlService'][_0x3c950c(0x36c)]['pipe'](_0x23bb2f(this[_0x3c950c(0x424)]))['subscribe'](()=>this[_0x3c950c(0x21b)](_0x4f0a79));}[_0xa6a604(0x4ae)](_0x1de344,_0x2c643d=!0x1){const _0x4948ce=_0xa6a604,_0x1b9c94=this[_0x4948ce(0x2be)][_0x4948ce(0x4ed)]('subunit');_0x1de344['getSheetId']()!==_0x1b9c94&&this['_urlService'][_0x4948ce(0x3ad)]('subunit',_0x1de344[_0x4948ce(0x406)](),_0x2c643d);}async[_0xa6a604(0x21b)](_0x573348){const _0x5d80d2=_0xa6a604;var _0x449e7b;const _0x54ed5a=this['_urlService']['getParam'](_0x5d80d2(0x446));if(!_0x54ed5a||!_0x573348['getSheetBySheetId'](_0x54ed5a)){const _0x2d225a=_0x573348[_0x5d80d2(0x40b)]()[0x0],_0xa31b5f=_0x573348[_0x5d80d2(0x3b3)](_0x2d225a);if(!_0xa31b5f)return;this[_0x5d80d2(0x4ae)](_0xa31b5f,!0x0),await this['_commandService'][_0x5d80d2(0x352)](_0x3ecee7['id'],{'unitId':_0x573348[_0x5d80d2(0x203)](),'subUnitId':_0x2d225a});return;}((_0x449e7b=_0x573348['getActiveSheet']())==null?void 0x0:_0x449e7b['getSheetId']())!==_0x54ed5a&&await this[_0x5d80d2(0x4d3)][_0x5d80d2(0x352)](_0x3ecee7['id'],{'unitId':_0x573348[_0x5d80d2(0x203)](),'subUnitId':_0x54ed5a});}async[_0xa6a604(0x3f6)](_0x27c3f2){const _0x9af596=_0xa6a604;let _0x381e92=0x0;const _0x5b5b0b=await this['_localCacheService'][_0x9af596(0x4ac)](_0x27c3f2);return _0x5b5b0b&&(_0x5b5b0b[_0x9af596(0x33a)]||_0x5b5b0b[_0x9af596(0x2ce)]['length']!==0x0)&&(_0x381e92=_0x5b5b0b[_0x9af596(0x38f)]),_0x381e92===0x0&&this[_0x9af596(0x493)]['debug'](_0x9af596(0x38b),_0x9af596(0x4be)),this[_0x9af596(0x23b)][_0x9af596(0x295)](_0x27c3f2,_0x381e92);}async[_0xa6a604(0x521)](_0x20bc29){const _0x1fdeac=_0xa6a604;let _0x48afe3=0x0;const _0x57a925=await this[_0x1fdeac(0x302)][_0x1fdeac(0x4ac)](_0x20bc29);return _0x57a925&&(_0x57a925['awaitingChangeset']||_0x57a925[_0x1fdeac(0x2ce)][_0x1fdeac(0x391)]!==0x0)&&(_0x48afe3=_0x57a925[_0x1fdeac(0x38f)]),_0x48afe3===0x0&&this[_0x1fdeac(0x493)][_0x1fdeac(0x408)](_0x1fdeac(0x38b),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x1fdeac(0x23b)][_0x1fdeac(0x4ff)](_0x20bc29,_0x48afe3);}};qe=vo([me(0x0,Ws),me(0x1,_0x4e432b),me(0x2,_0x5a0862),me(0x3,_0x160402(D)),me(0x4,_0x160402(_0x1e34c6)),me(0x5,_0x363100(_0x44b35c))],qe);var Io=Object['defineProperty'],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x31d0af,_0xaae3a9,_0x24e0e5,_0x688283)=>{const _0xfc5d51=_0xa6a604;for(var _0x11a2b9=_0x688283>0x1?void 0x0:_0x688283?Eo(_0xaae3a9,_0x24e0e5):_0xaae3a9,_0x8b789=_0x31d0af[_0xfc5d51(0x391)]-0x1,_0x39f4d5;_0x8b789>=0x0;_0x8b789--)(_0x39f4d5=_0x31d0af[_0x8b789])&&(_0x11a2b9=(_0x688283?_0x39f4d5(_0xaae3a9,_0x24e0e5,_0x11a2b9):_0x39f4d5(_0x11a2b9))||_0x11a2b9);return _0x688283&&_0x11a2b9&&Io(_0xaae3a9,_0x24e0e5,_0x11a2b9),_0x11a2b9;},fs=(_0x4d582b,_0x17094a)=>(_0x3bd2c3,_0x2f5b62)=>_0x17094a(_0x3bd2c3,_0x2f5b62,_0x4d582b);const bo=_0xa6a604(0x332),To=_0xa6a604(0x324);let ze=class extends _0x252360{constructor(_0x4e9e57,_0x4ec848){const _0x57a395=_0xa6a604;super(),this[_0x57a395(0x1fd)]=_0x4e9e57,this[_0x57a395(0x325)]=_0x4ec848,this[_0x57a395(0x21e)]();}['_init'](){const _0x52cc79=_0xa6a604;this[_0x52cc79(0x4f3)](this['_univerInstanceService'][_0x52cc79(0x401)][_0x52cc79(0x426)](()=>{const _0x2d95a9=_0x52cc79;var _0xa4199f;const _0x2c2422=this[_0x2d95a9(0x1fd)]['getFocusedUnit']();let _0x5ac4d8=(_0xa4199f=this[_0x2d95a9(0x325)]['getConfig'](bo))!=null?_0xa4199f:To;_0x2c2422 instanceof _0x370cd1&&(_0x5ac4d8=_0x2c2422[_0x2d95a9(0x3cb)]),document[_0x2d95a9(0x3f4)]=_0x5ac4d8;}));}};ze=Co([fs(0x0,_0x33adea),fs(0x1,_0x123c7a)],ze);var Ro=Object[_0xa6a604(0x222)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x4db197,_0x5683ed,_0x2b70a9,_0x5cbdf9)=>{for(var _0x3f2103=_0x5cbdf9>0x1?void 0x0:_0x5cbdf9?Oo(_0x5683ed,_0x2b70a9):_0x5683ed,_0x21209b=_0x4db197['length']-0x1,_0x55805d;_0x21209b>=0x0;_0x21209b--)(_0x55805d=_0x4db197[_0x21209b])&&(_0x3f2103=(_0x5cbdf9?_0x55805d(_0x5683ed,_0x2b70a9,_0x3f2103):_0x55805d(_0x3f2103))||_0x3f2103);return _0x5cbdf9&&_0x3f2103&&Ro(_0x5683ed,_0x2b70a9,_0x3f2103),_0x3f2103;},gt=(_0x571d99,_0x3ea7c8)=>(_0x3d9f84,_0x2f5630)=>_0x3ea7c8(_0x3d9f84,_0x2f5630,_0x571d99);let Ze=class{constructor(_0x3f462c,_0x36a9aa,_0x5dbcbd){const _0x431ee7=_0xa6a604;this[_0x431ee7(0x325)]=_0x3f462c,this[_0x431ee7(0x35e)]=_0x36a9aa,this[_0x431ee7(0x404)]=_0x5dbcbd,this['init']();}[_0xa6a604(0x4c6)](){const _0x599868=_0xa6a604;this[_0x599868(0x35e)][_0x599868(0x36d)]({'priority':0x1,'interceptor':(_0x273542,_0x563b12)=>_0x563b12(_0x273542)[_0x599868(0x3b6)](_0x26f55c(async _0x119df0=>{const _0x5226af=_0x599868,_0x1fabf9=_0x119df0;if(_0x1fabf9[_0x5226af(0x33f)]===0x191&&window[_0x5226af(0x3c0)](this['localeService']['t'](_0x5226af(0x317)))){const _0x22bc9d=window['encodeURIComponent'](window[_0x5226af(0x437)][_0x5226af(0x4f8)]);window[_0x5226af(0x437)][_0x5226af(0x4f8)]=this['_getLoginPath']()+_0x5226af(0x2e4)+_0x22bc9d;}return _0x1fabf9;}))});}[_0xa6a604(0x491)](){const _0x1bfa85=_0xa6a604;var _0x8161e9,_0x39c608;const _0xbc0cc=this[_0x1bfa85(0x325)][_0x1bfa85(0x4e5)](wn),_0x435023=this[_0x1bfa85(0x325)][_0x1bfa85(0x4e5)](L);return(_0x39c608=(_0x8161e9=_0x435023==null?void 0x0:_0x435023[_0x1bfa85(0x2a8)])!=null?_0x8161e9:_0xbc0cc)!=null?_0x39c608:Pn;}};Ze=Do([gt(0x0,_0x123c7a),gt(0x1,_0x160402(_0x24a261)),gt(0x2,_0x160402(_0x2f3b7b))],Ze);var wo=Object['defineProperty'],Po=Object['getOwnPropertyDescriptor'],yo=(_0x567cbf,_0x46b094,_0x1a1617,_0x3701e3)=>{const _0x13dace=_0xa6a604;for(var _0x4cf031=_0x3701e3>0x1?void 0x0:_0x3701e3?Po(_0x46b094,_0x1a1617):_0x46b094,_0x24c8d6=_0x567cbf[_0x13dace(0x391)]-0x1,_0x4887ec;_0x24c8d6>=0x0;_0x24c8d6--)(_0x4887ec=_0x567cbf[_0x24c8d6])&&(_0x4cf031=(_0x3701e3?_0x4887ec(_0x46b094,_0x1a1617,_0x4cf031):_0x4887ec(_0x4cf031))||_0x4cf031);return _0x3701e3&&_0x4cf031&&wo(_0x46b094,_0x1a1617,_0x4cf031),_0x4cf031;},ms=(_0x287cdf,_0x1cbcfb)=>(_0x47fa9f,_0x4edfea)=>_0x1cbcfb(_0x47fa9f,_0x4edfea,_0x287cdf);const No=_0xa6a604(0x230),Uo=_0xa6a604(0x2e5);let Pt=class extends _0x252360{constructor(_0x3da860,_0x27d21c){const _0x131f6a=_0xa6a604;super(),this[_0x131f6a(0x1fa)]=_0x3da860,this['_configService']=_0x27d21c,this['_initMergeInterceptor']();}[_0xa6a604(0x462)](){const _0xf9d16b=_0xa6a604,_0x4ac513=this;this[_0xf9d16b(0x4f3)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3b7a0e({'isMatch'(_0x4d1f72){const _0x4db1c0=_0xf9d16b;var _0x544e61;if(_0x4d1f72[_0x4db1c0(0x4fc)]===_0x4db1c0(0x52d)&&((_0x544e61=_0x4d1f72[_0x4db1c0(0x4c4)])!=null&&_0x544e61[_0x4db1c0(0x3d2)])){const {objectID:_0x4304ac,objectType:_0x2f3fb6}=_0x4d1f72[_0x4db1c0(0x4c4)][_0x4db1c0(0x3d2)]||{};if(!_0x4304ac||_0x2f3fb6===void 0x0)return!0x1;const _0x37164b=_0x4ac513[_0x4db1c0(0x513)]()+'/'+_0x2f3fb6+_0x4db1c0(0x4f0)+_0x4304ac+_0x4db1c0(0x53e);if(_0x4d1f72[_0x4db1c0(0x1f3)]===_0x37164b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x44cd94){const _0x172db5=_0xf9d16b;var _0x25c204;return(_0x25c204=_0x44cd94[_0x172db5(0x4c4)])==null?void 0x0:_0x25c204[_0x172db5(0x3d2)];},'mergeParamsToRequest'(_0x4c2912,_0x137fa8){const _0x4cac3a=_0xf9d16b,_0x40d9db=_0x4ac513[_0x4cac3a(0x513)]()+_0x4cac3a(0x3d5),_0x5cbdb7=_0x4c2912[_0x4cac3a(0x3ae)]((_0x2ed8d7,_0x290111)=>{const _0x525bf2=_0x4cac3a,{unitID:_0x4c7579,objectID:_0x1019be,objectType:_0x562e03,actions:_0x5cfc2a}=_0x290111;return _0x2ed8d7[_0x4c7579]||(_0x2ed8d7[_0x4c7579]={}),_0x2ed8d7[_0x4c7579][_0x1019be]||(_0x2ed8d7[_0x4c7579][_0x1019be]={'objectID':_0x1019be,'objectType':_0x562e03,'actions':[]}),_0x2ed8d7[_0x4c7579][_0x1019be][_0x525bf2(0x2e9)][_0x525bf2(0x539)](..._0x5cfc2a),_0x2ed8d7;},{}),_0x4dd001=[];for(const _0x29ea0e in _0x5cbdb7)for(const _0x5a1cd9 in _0x5cbdb7[_0x29ea0e]){const {actions:_0x1b005e,objectType:_0x5a6bef}=_0x5cbdb7[_0x29ea0e][_0x5a1cd9],_0xf45478=[...new Set(_0x1b005e)];_0x4dd001[_0x4cac3a(0x539)]({'unitID':_0x29ea0e,'objectID':_0x5a1cd9,'objectType':_0x5a6bef,'actions':_0xf45478});}return new _0x4e7fe7(_0x4cac3a(0x52d),_0x40d9db,{'headers':_0x137fa8[_0x4cac3a(0x393)],'withCredentials':_0x137fa8[_0x4cac3a(0x347)],'responseType':_0x137fa8[_0x4cac3a(0x310)],'body':{'requests':_0x4dd001}});}},{'distributeResult'(_0x56692f,_0x2fb82d){const _0x2b3c0=_0xf9d16b,{objectActions:_0x220c9e}=_0x56692f;return _0x2fb82d[_0x2b3c0(0x422)](_0x4ce651=>{const _0x52222f=_0x2b3c0,{unitID:_0x721b96,objectID:_0x337d89,actions:_0x49c899}=_0x4ce651,_0x4bac81=_0x220c9e[_0x52222f(0x4dd)](_0x1a1dbf=>_0x1a1dbf[_0x52222f(0x1ec)]===_0x721b96&&_0x1a1dbf[_0x52222f(0x469)]===_0x337d89),_0x2ca575=_0x49c899[_0x52222f(0x422)](_0xa7849a=>_0x4bac81==null?void 0x0:_0x4bac81[_0x52222f(0x2e9)]['find'](_0x4d8024=>_0x4d8024['action']===_0xa7849a))[_0x52222f(0x346)](_0x20df9d=>!!_0x20df9d);return{'config':_0x4ce651,'result':{'actions':_0x2ca575,'error':_0x56692f[_0x52222f(0x3f7)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3d19a6=_0xa6a604;var _0x8b1ca0,_0xc1399;const _0x7abb4e=this[_0x3d19a6(0x325)][_0x3d19a6(0x4e5)](No),_0xf0eb0a=this['_configService'][_0x3d19a6(0x4e5)](L);return(_0xc1399=(_0x8b1ca0=_0xf0eb0a==null?void 0x0:_0xf0eb0a[_0x3d19a6(0x31f)])!=null?_0x8b1ca0:_0x7abb4e)!=null?_0xc1399:Uo;}async[_0xa6a604(0x26a)](_0x17c42a){const _0x14eec4=_0xa6a604,_0x2d39a7=this[_0x14eec4(0x513)]()+'/'+_0x17c42a[_0x14eec4(0x24d)]+_0x14eec4(0x263);return(await this[_0x14eec4(0x1fa)][_0x14eec4(0x216)](_0x2d39a7,{'body':_0x17c42a}))['body'][_0x14eec4(0x469)]||'';}async['list'](_0x5d8e91){const _0x2e9c6f=_0xa6a604,_0x67cbc0=this['_getAPIPrefixPath']()+_0x2e9c6f(0x355);return(await this[_0x2e9c6f(0x1fa)]['post'](_0x67cbc0,{'body':_0x5d8e91}))[_0x2e9c6f(0x3d2)][_0x2e9c6f(0x4cd)];}async[_0xa6a604(0x2e1)](_0x47c215){const _0x1941ab=_0xa6a604,_0x40431c=this[_0x1941ab(0x513)]()+'/'+_0x47c215[_0x1941ab(0x24d)]+_0x1941ab(0x4f0)+_0x47c215[_0x1941ab(0x469)];await this['_HTTPService']['put'](_0x40431c,{'body':_0x47c215});}async[_0xa6a604(0x496)](_0x4a74f9){const _0x460b68=_0xa6a604,_0x5ac089=this[_0x460b68(0x513)]()+'/'+_0x4a74f9[_0x460b68(0x24d)]+_0x460b68(0x4f0)+_0x4a74f9['objectID']+_0x460b68(0x53e);return(await this[_0x460b68(0x1fa)][_0x460b68(0x216)](_0x5ac089,{'body':_0x4a74f9}))[_0x460b68(0x3d2)][_0x460b68(0x2e9)];}async[_0xa6a604(0x238)](_0x174ac0){const _0x1d4d44=_0xa6a604,_0x2c2ad8=this[_0x1d4d44(0x513)]()+_0x1d4d44(0x3d5);return(await this['_HTTPService'][_0x1d4d44(0x216)](_0x2c2ad8,{'body':{'requests':_0x174ac0}}))['body'][_0x1d4d44(0x473)];}async[_0xa6a604(0x3db)](_0x9cc387){const _0x32ad59=_0xa6a604,_0x4055d4=this[_0x32ad59(0x513)]()+'/'+_0x9cc387['objectType']+'/role',_0x3ca47d=await this[_0x32ad59(0x1fa)][_0x32ad59(0x216)](_0x4055d4,{'body':_0x9cc387});return{'roles':_0x3ca47d[_0x32ad59(0x3d2)]['roles'],'actions':_0x3ca47d[_0x32ad59(0x3d2)][_0x32ad59(0x2e9)]};}async[_0xa6a604(0x3cf)](_0x7628c){const _0x12b62e=_0xa6a604,_0x5ef696=this[_0x12b62e(0x513)]()+_0x12b62e(0x204);await this[_0x12b62e(0x1fa)][_0x12b62e(0x3fe)](_0x5ef696,{'params':{'collaboratorID':_0x7628c[_0x12b62e(0x3b9)],'objectID':_0x7628c[_0x12b62e(0x469)],'unitID':_0x7628c[_0x12b62e(0x1ec)]}});}async[_0xa6a604(0x2c3)](_0x52ca31){const _0x458aa0=_0xa6a604,_0x378ff7=this['_getAPIPrefixPath']()+_0x458aa0(0x204);await this[_0x458aa0(0x1fa)][_0x458aa0(0x52f)](_0x378ff7,{'body':_0x52ca31});}async['createCollaborator'](_0x30211e){const _0x42b78e=_0xa6a604,_0x2057a3=this[_0x42b78e(0x513)]()+_0x42b78e(0x204);await this[_0x42b78e(0x1fa)][_0x42b78e(0x216)](_0x2057a3,{'body':_0x30211e});}async[_0xa6a604(0x494)](_0xfcb44){const _0x313ef8=_0xa6a604,_0x5cc830=this[_0x313ef8(0x513)]()+_0x313ef8(0x204);return(await this[_0x313ef8(0x1fa)]['get'](_0x5cc830,{'params':{'objectID':_0xfcb44[_0x313ef8(0x469)],'unitID':_0xfcb44['unitID']}}))['body'][_0x313ef8(0x4d5)];}async[_0xa6a604(0x2bd)](_0x409ada){const _0x8f10b9=_0xa6a604,_0x24596d=this[_0x8f10b9(0x513)]()+_0x8f10b9(0x204);await this[_0x8f10b9(0x1fa)]['put'](_0x24596d,{'body':_0x409ada});}};Pt=yo([ms(0x0,_0x160402(_0x24a261)),ms(0x1,_0x160402(_0x123c7a))],Pt);var Mo=Object[_0xa6a604(0x222)],Ao=Object[_0xa6a604(0x4ce)],Lo=(_0x524e16,_0x44fdc4,_0x1c748c,_0xb105f6)=>{const _0xa76584=_0xa6a604;for(var _0x4ae967=_0xb105f6>0x1?void 0x0:_0xb105f6?Ao(_0x44fdc4,_0x1c748c):_0x44fdc4,_0x15d191=_0x524e16[_0xa76584(0x391)]-0x1,_0x220897;_0x15d191>=0x0;_0x15d191--)(_0x220897=_0x524e16[_0x15d191])&&(_0x4ae967=(_0xb105f6?_0x220897(_0x44fdc4,_0x1c748c,_0x4ae967):_0x220897(_0x4ae967))||_0x4ae967);return _0xb105f6&&_0x4ae967&&Mo(_0x44fdc4,_0x1c748c,_0x4ae967),_0x4ae967;},$o=(_0x263073,_0x27cf4b)=>(_0x5d0198,_0x49c802)=>_0x27cf4b(_0x5d0198,_0x49c802,_0x263073);let Qe=class{constructor(_0x2c477b){this['_httpService']=_0x2c477b,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x318a0f=_0xa6a604;this['_httpService'][_0x318a0f(0x36d)]({'interceptor':(_0x5d770d,_0x882037)=>{const _0x588ee9=_0x318a0f,_0x43616d=_0x5d770d[_0x588ee9(0x393)],_0x34e142=_0x35d498();return _0x34e142&&_0x43616d['set'](_0x588ee9(0x3f8),_0x34e142),_0x882037(_0x5d770d);}});}};Qe=Lo([$o(0x0,_0x160402(_0x24a261))],Qe);var jo=Object[_0xa6a604(0x222)],xo=Object[_0xa6a604(0x4ce)],Ho=(_0x235805,_0x12b177,_0x4bc937,_0x43776d)=>{const _0x4e086e=_0xa6a604;for(var _0x44bc5c=_0x43776d>0x1?void 0x0:_0x43776d?xo(_0x12b177,_0x4bc937):_0x12b177,_0x10f0f9=_0x235805[_0x4e086e(0x391)]-0x1,_0x2fef4d;_0x10f0f9>=0x0;_0x10f0f9--)(_0x2fef4d=_0x235805[_0x10f0f9])&&(_0x44bc5c=(_0x43776d?_0x2fef4d(_0x12b177,_0x4bc937,_0x44bc5c):_0x2fef4d(_0x44bc5c))||_0x44bc5c);return _0x43776d&&_0x44bc5c&&jo(_0x12b177,_0x4bc937,_0x44bc5c),_0x44bc5c;},St=(_0x68daf7,_0x23b722)=>(_0x2a4ca9,_0x152a92)=>_0x23b722(_0x2a4ca9,_0x152a92,_0x68daf7);const ko=['image/png',_0xa6a604(0x3ba),_0xa6a604(0x315),'image/gif',_0xa6a604(0x26d)],Bo=0x5*0x400*0x400,Vo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Fo=_0xa6a604(0x386),Wo=_0xa6a604(0x4fb),Go='/universer-api/file/{fileID}/sign-url';let yt=class{constructor(_0x351b63,_0x4f4aff,_0x5f339f){const _0x5f0451=_0xa6a604;l(this,_0x5f0451(0x546),0x0),l(this,_0x5f0451(0x3b0),new _0x3daa12()),l(this,_0x5f0451(0x28b),this[_0x5f0451(0x3b0)]),l(this,'_imageSourceCache',new Map()),(this[_0x5f0451(0x35e)]=_0x351b63,this[_0x5f0451(0x325)]=_0x4f4aff,this['_univerInstanceService']=_0x5f339f);}['setWaitCount'](_0x3b42b8){const _0xa4df63=_0xa6a604;this['_waitCount']=_0x3b42b8,this[_0xa4df63(0x3b0)][_0xa4df63(0x480)](_0x3b42b8);}[_0xa6a604(0x24b)](_0x514240,_0x4fc6ef){const _0x35e0ee=_0xa6a604;if(_0x4fc6ef===_0x48b7bc[_0x35e0ee(0x3d6)]){const _0x5985e5=new Image();return _0x5985e5[_0x35e0ee(0x497)]=_0x514240,_0x5985e5;}return this[_0x35e0ee(0x2e8)]['get'](_0x514240);}[_0xa6a604(0x385)](_0x3f8d14,_0x13cd4c,_0x9038f3){const _0x1491a9=_0xa6a604;_0x13cd4c===_0x48b7bc[_0x1491a9(0x3d6)]||_0x9038f3==null||this[_0x1491a9(0x2e8)][_0x1491a9(0x455)](_0x3f8d14,_0x9038f3);}async[_0xa6a604(0x344)](_0x220262){const _0x492bff=_0xa6a604;try{const _0x230cee=this[_0x492bff(0x472)](this[_0x492bff(0x26c)](),''+_0x220262),_0x38ed46=(await this[_0x492bff(0x35e)]['get'](_0x230cee))['body'];if(_0x38ed46[_0x492bff(0x3f7)]&&_0x38ed46['error']['code']===Ms['OK']){const _0x2b1876=new URL(_0x38ed46[_0x492bff(0x1f3)],this[_0x492bff(0x28c)]())[_0x492bff(0x3ed)]();return Promise[_0x492bff(0x3c2)](_0x2b1876);}return Promise[_0x492bff(0x50e)](_0x38ed46[_0x492bff(0x3f7)]);}catch(_0x348c68){return Promise[_0x492bff(0x50e)](_0x348c68);}}async['saveImage'](_0x5b5653){const _0x4515e7=_0xa6a604;let _0x58ae18='';if(!ko[_0x4515e7(0x2ac)](_0x5b5653['type']))return this['_decreaseWaiting'](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58['ERROR_IMAGE_TYPE']));if(_0x5b5653[_0x4515e7(0x4e4)]>Bo)return this[_0x4515e7(0x3cc)](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58['ERROR_EXCEED_SIZE']));try{const _0x429dd5=new FormData();_0x429dd5[_0x4515e7(0x358)](_0x4515e7(0x417),_0x5b5653);const _0x1f4ee1=this[_0x4515e7(0x1fd)][_0x4515e7(0x2a3)](),_0x31a48f=_0x1f4ee1==null?void 0x0:_0x1f4ee1[_0x4515e7(0x203)]();if(!_0x31a48f)throw new Error(_0x4515e7(0x248));const _0x285120=this[_0x4515e7(0x466)]()+'?size='+_0x5b5653[_0x4515e7(0x4e4)][_0x4515e7(0x3ed)]()+_0x4515e7(0x53b)+As[_0x4515e7(0x371)]+_0x4515e7(0x3b8)+encodeURIComponent(_0x31a48f),_0x255e92=await(await fetch(_0x285120,{'method':'POST','body':_0x429dd5}))[_0x4515e7(0x461)]();if(typeof _0x255e92[_0x4515e7(0x4ca)]!='string')return this[_0x4515e7(0x3cc)](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58[_0x4515e7(0x31e)]));_0x58ae18=_0x255e92['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x4515e7(0x50e)](new Error(_0x7a4b58[_0x4515e7(0x31e)]));}return new Promise((_0x4ad54e,_0x560a93)=>{const _0x5cd74e=_0x4515e7,_0xdcd7a2=new FileReader();_0xdcd7a2[_0x5cd74e(0x219)](_0x5b5653),_0xdcd7a2['onload']=_0x5c1d50=>{const _0x11db48=_0x5cd74e;var _0x239a50;const _0x1672d8=(_0x239a50=_0x5c1d50[_0x11db48(0x266)])==null?void 0x0:_0x239a50[_0x11db48(0x3eb)];if(_0x1672d8==null){this[_0x11db48(0x3cc)](),_0x560a93(new Error(_0x7a4b58[_0x11db48(0x31e)]));return;}const _0xcffc5a=_0x3c0ad5[_0x11db48(0x24c)](0x6);_0x4ad54e({'imageId':_0xcffc5a,'imageSourceType':_0x48b7bc[_0x11db48(0x359)],'source':_0x58ae18,'base64Cache':_0x1672d8,'status':_0x7a4b58['SUCCUSS']}),this[_0x11db48(0x3cc)]();};});}[_0xa6a604(0x466)](){const _0x32b3bd=_0xa6a604;var _0x171d4c,_0x307482;const _0x3826b9=this[_0x32b3bd(0x325)][_0x32b3bd(0x4e5)](Vo),_0x3805e4=this[_0x32b3bd(0x325)][_0x32b3bd(0x4e5)](L);return(_0x307482=(_0x171d4c=_0x3805e4==null?void 0x0:_0x3805e4[_0x32b3bd(0x425)])!=null?_0x171d4c:_0x3826b9)!=null?_0x307482:Fo;}['_getSignURL'](){const _0x2c6b59=_0xa6a604;var _0x25f527,_0x399051;const _0x43a4a5=this[_0x2c6b59(0x325)][_0x2c6b59(0x4e5)](Wo),_0x1c8302=this['_configService']['getConfig'](L);return(_0x399051=(_0x25f527=_0x1c8302==null?void 0x0:_0x1c8302['signUrlServerUrl'])!=null?_0x25f527:_0x43a4a5)!=null?_0x399051:Go;}[_0xa6a604(0x28c)](){const _0x32af1e=_0xa6a604;var _0x4f5690;const _0x19c567=this[_0x32af1e(0x325)]['getConfig'](L);return(_0x4f5690=_0x19c567==null?void 0x0:_0x19c567[_0x32af1e(0x276)])!=null?_0x4f5690:location[_0x32af1e(0x3ea)];}[_0xa6a604(0x472)](_0x3f7fdc,_0x1eeaa9){const _0x14f58a=_0xa6a604;return _0x3f7fdc[_0x14f58a(0x44b)](_0x14f58a(0x499),_0x1eeaa9);}[_0xa6a604(0x3cc)](){const _0x17498c=_0xa6a604;this[_0x17498c(0x546)]-=0x1,this[_0x17498c(0x3b0)][_0x17498c(0x480)](this[_0x17498c(0x546)]);}};yt=Ho([St(0x0,_0x160402(_0x24a261)),St(0x1,_0x123c7a),St(0x2,_0x160402(_0x33adea))],yt);var Yo=Object['defineProperty'],Ko=Object['getOwnPropertyDescriptor'],Xo=(_0x354069,_0xca5df4,_0x41b078,_0x4d7c3e)=>{const _0x48517b=_0xa6a604;for(var _0x1dc3b6=_0x4d7c3e>0x1?void 0x0:_0x4d7c3e?Ko(_0xca5df4,_0x41b078):_0xca5df4,_0x38f09c=_0x354069[_0x48517b(0x391)]-0x1,_0x4d3131;_0x38f09c>=0x0;_0x38f09c--)(_0x4d3131=_0x354069[_0x38f09c])&&(_0x1dc3b6=(_0x4d7c3e?_0x4d3131(_0xca5df4,_0x41b078,_0x1dc3b6):_0x4d3131(_0x1dc3b6))||_0x1dc3b6);return _0x4d7c3e&&_0x1dc3b6&&Yo(_0xca5df4,_0x41b078,_0x1dc3b6),_0x1dc3b6;},Pe=(_0x1518db,_0x1fc7e7)=>(_0x5658dc,_0x3499cf)=>_0x1fc7e7(_0x5658dc,_0x3499cf,_0x1518db);let et=class extends _0x48a1ad{constructor(_0x24062d,_0xb859db,_0x102501,_0x70060c,_0x398aa9){const _0x1803bf=_0xa6a604;super(),this[_0x1803bf(0x35a)]=_0x24062d,this[_0x1803bf(0x1fd)]=_0xb859db,this[_0x1803bf(0x2b0)]=_0x102501,this[_0x1803bf(0x482)]=_0x70060c,this[_0x1803bf(0x247)]=_0x398aa9,this[_0x1803bf(0x265)](),this[_0x1803bf(0x250)]();}[_0xa6a604(0x250)](){const _0x352114=_0xa6a604,_0x1b6771=async _0x360f54=>{const _0x24ee49=_0x40a3;(await this[_0x24ee49(0x482)][_0x24ee49(0x269)](_0x360f54))[_0x24ee49(0x2bc)]['pipe'](_0x38e98e(_0xe44dcf=>_0xe44dcf[_0x24ee49(0x33b)]===_0x17f69c[_0x24ee49(0x4db)]),_0x4c0c8e(this[_0x24ee49(0x424)]))[_0x24ee49(0x426)](_0x4e87c2=>{const _0x234141=_0x24ee49,_0x116f6c=_0x4e87c2,{reason:_0x5bf7b9}=_0x116f6c[_0x234141(0x525)];this['_injector'][_0x234141(0x504)](_0xd292a2)['show']({'type':_0x1beabd[_0x234141(0x535)],'content':this[_0x234141(0x247)]['t'](_0x234141(0x452))+'('+_0x5bf7b9+')'}),this['_permissionService'][_0x234141(0x456)](new _0x1c28a6(_0x360f54)['id'],!0x1),this[_0x234141(0x482)][_0x234141(0x1f5)](_0x360f54);});};_0xcf1d88(this[_0x352114(0x1fd)][_0x352114(0x2dc)](_0x39cf18['UNIVER_SHEET']),this['_univerInstanceService'][_0x352114(0x2dc)](_0x39cf18[_0x352114(0x1eb)]))[_0x352114(0x3b6)](_0x4beb38(_0x165143=>_0x165143[_0x352114(0x203)]()),_0x38e98e(_0x563a1a=>!_0x19d0e1(_0x563a1a)),_0x4c0c8e(this[_0x352114(0x424)]))[_0x352114(0x426)](_0x3807c6=>{_0x1b6771(_0x3807c6);});}[_0xa6a604(0x265)](){const _0x4f45b2=_0xa6a604,_0x258b94=async _0x59330d=>{const _0x2d1a4c=_0x40a3;(await this[_0x2d1a4c(0x482)][_0x2d1a4c(0x269)](_0x59330d))[_0x2d1a4c(0x2bc)]['pipe'](_0x38e98e(_0xe04ce8=>_0xe04ce8[_0x2d1a4c(0x33b)]===_0x17f69c['UPDATE_PERMISSION_OBJ']),_0x4c0c8e(this[_0x2d1a4c(0x424)]))[_0x2d1a4c(0x426)](_0x392e6b=>{const _0x254bc1=_0x2d1a4c,_0x5ae6b1=_0x392e6b,{objectId:_0x45aa84}=_0x5ae6b1['data'],_0x2170cf=this[_0x254bc1(0x35a)][_0x254bc1(0x504)](_0x323ea7);_0x45aa84===_0x59330d?_0x2170cf['initWorkbookPermissionChange'](_0x59330d):_0x2170cf['refreshPermission'](_0x59330d,_0x45aa84);});};_0xcf1d88(this[_0x4f45b2(0x1fd)][_0x4f45b2(0x2dc)](_0x39cf18[_0x4f45b2(0x48b)]),this[_0x4f45b2(0x1fd)][_0x4f45b2(0x2dc)](_0x39cf18[_0x4f45b2(0x1eb)]))[_0x4f45b2(0x3b6)](_0x4beb38(_0x3636c4=>_0x3636c4[_0x4f45b2(0x203)]()),_0x38e98e(_0x4753cc=>!_0x19d0e1(_0x4753cc)),_0x4c0c8e(this['dispose$']))[_0x4f45b2(0x426)](_0x4fee3d=>{_0x258b94(_0x4fee3d);});}};function _0x7251(){const _0x9706ac=['YUUMI_SUBSCRIPTION_NOT_FOUND','LIVESHARE_NEW_HOST','_unitID','setTimeout','InsertRangeMoveDownCommandId','origin','result','string','toString','JOIN','pluginName','onMouseMove','url(#on-line-single_clip0_910_349)','LICENSE_EXPORT_SIZE_EXCEEDED','blue400','title','getItem','_loadSheet','error','x-univer-host','key','APPLY_REVISION_CONFILICT','getTime','_config','setActiveRange','delete','none','_range','focused$','_socketService','_themeService','localeService','CONNECTOR_DATA_TOO_LARGE','getSheetId','_acknowledgedAwaitingChangeset','debug','[UniverCollaborationClientPlugin]','univer-pro.collaboration-client-socket-service','getUnhiddenWorksheets','UNRECOGNIZED','[CollaborationEntity]','_cursor','_clearUndo','state$','enableAuthServer','measureText','toRgbString','_listenToOfflineEvent','_getSheetObject','onlineStatusTitle','file','COLLAB_WEB_SOCKET_URL','updateCursorEvent','LOGIN_URL_KEY','NOT_COLLAB','_commentUpdate$','_state$','getUnitType','_docSyncEditingCollabCursorService','_scene','hidden','map','permissionRejEvent','dispose$','uploadFileServerUrl','subscribe','NEW_CHANGESETS','getInterceptPoints','HEADER_MENU','_candidateSocket','UPDATE_CURSOR','onTransformIME','onTransformRemoteChangesetByIMECache','setUndoRedoMutationParamsCache','tag','_http','path','getCollabCursors$','selection','_transformUndoRedoStack','27npIrlP','_onCursorDelete','location','_id','top','/block/','16uREBHT','min','_registerDependencies','registerRefRange','_docSkeletonManagerService','_colorIndex','FAIL','unsubscribe','ALREADY_EXISTS','_docTransformIMECacheService','_onMessage','subunit','socket\x20close','fillStyle','getUnitOnRev','214614XFWUsw','replace','_messageService','_getSaveTimeout','getTypeOfUnitDisposed$','_clearTimeoutTimer','contains','_members','collaboration.closeRoom','replaceTextRanges','userID','set','updatePermissionPoint','_undoRedoService','indexOf','collaboration-client.config','_snapshotServerService','RemoveRowCommandId','stringify','_sendingTimer','_transformStack','number','_hover','json','_initMergeInterceptor','interceptor','univer-online-status-title','_document','_getUploadFileURL','_registerRenderDependencies','_shapes','objectID','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','subUnitId','toggleOnline','collaMsg','_collaborationController','current','[OfflineState]:\x20received\x20acknowledgement.','univer-online','_replaceFileID','objectActions','row','conflict.title','use','getCurrent','attrs','_createInitialState','_exhaustRemoteChangesetQueue','cmd','_collabCursorState$','_getAPIPrefix','PERMISSION_DENIED','off-line-single_clip0_910_343','next','hasOwnProperty','_collaborationSessionService','UniverIcon','_startTelemetryCollaborationNewChangeset','&to=','offline','_drawTextRange','findNodePositionByCharIndex','_tryEnsureSocket','compose','UNIVER_SHEET','_transformService','getResourcesRequest','_remoteChangesetQueue','_setupSubUnitSync','187159MFeAGA','_getLoginPath','_rescheduleHeartbeat','_logService','listCollaborators','_draw','allowed','src','univer-online-status','{fileID}','range','transformMutationsWithChangeset','UNAUTHENTICATED','unit-cache-','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','PSEUDO_FETCH_MISSING_RESULT','IDLE','enableSingleActiveInstanceLock','[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.','getCellPositionByOffset','CHANGESET_ACK','PENDING','_transformPreviousActiveRange','UNIVER_SLIDE','univer-offline','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','onPointerLeave$','_initStatusComponent','loadOfflineData','startColumn','_updateURLWithCurrentState','beginPath','_uiPartsService','OffLineSingle','close','on-line-single_clip0_910_349','font','_getUndoStack','LIVESHARE_FETCH_OPERATIONS','height','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_DISTRO_REJECTED','addObject','_onRemoteRejected','_getSendChangesetTimeout','_hovered','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','conflict','_updateCollabCursors','xlink:href','sessionStatus','catch','requestParams','max','init','getCurrentRevOfUnit','3637417LiEFvA','YUUMI_RATE_OVER_LIMIT','FileId','_collaborationTimeoutTimer','incrementRevOfUnit','objects','getOwnPropertyDescriptor','_ws','[CollaborationSession]','_onConflict','params','_commandService','_createHandler','collaborators','getMember','collaboration-session-retry','show','_showConflictNotification','removeMember','SHOULD_CLOSE_CONN','_revisionService','find','_onUserLeave','getUniverSheetInstance','_schedule','MSG_FOR_ERROR','135ncWCqq','resend','size','getConfig','duration','fetchMiss','INTERNAL_ERROR','INVALID_ARGUMENT','isEditing','_getCurrentRevision','_refRangeService','getParam','hovered','transformStack\x20failed!','/object/','session.collaboration-timeout','_socket$','disposeWithMe','dispose','[SyncedState]:\x20received\x20rejection.','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','children','href','HEARTBEAT_TIMEOUT','collabStatus.fetchMiss','EXCHANGE_SIGN_URL_SERVER_URL_KEY','method','drawWith','UNIVER_COLLABORATION_CLIENT_PLUGIN','loadDoc','icon','createSocket','message$','roomMembers$','get','_handleEvent','HttpExport','_handler','trim','INGEST','transformRemoteChangeset','_collabCursorController','memberID','_heartbeatTimer','reject','\x20in\x20_schedule.','color','_toggleOnline','updateMember','_getAPIPrefixPath','SEND_CHANGESET_TIMEOUT','m1Prime','_isPermissionRej','socket\x20open.','_updateStatus','arc','YUUMI_UNABLE_LOAD_URL','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getActiveRange','endRow','changesets','isActive','_sessionStatus$','_loadDoc','createElement','displayName','activeSheet$','data','_color','_retryConnectingTimer','ws://127.0.0.1:8000/universer-api/comb/connect','SNAPSHOT_HAS_BEEN_REMOVED','_selfUnitIDs','complete','_sheetTransformSelectionsService','POST','_createInitialStateImpl','patch','getSkeleton','connection\x20error','VIEW_MAIN','awaiting_with_pending','_drawRectRange','Error','type','leaveEvent','_online','push','getCurrentUser','&source=','enableOfflineEditing','COMPLETION_FINISHED','/allowed','getDeserializedSheetBlock','workbook','_socketReady','_handleLeaveEvent','revision','onRemoteAck','MoveRangeCommandId','_waitCount','LIVESHARE_REQUEST_HOST','_roomMembers$','getDocRanges','transformMutation','onRemoteChangeset','_cursors','SUBMIT_CHANGESET','OTHER_CLIENTS_EDITING','[CollaborationSessionService]','saveOfflineData','newValue','session.room-full','JOINING','unit','onMissedChangesetFetched','add','COLLAB_SUBMIT_CHANGESET_URL','close$','_hideTimer','UNIVER_DOC','unitID','unknown','_onCursorUpdate','_clearHeartbeatTimer','\x20-\x20','idSuffix','ranges','url','_onRemoteACK','closeSession','getRangePointData','_initStatusListener','_unlockTransition','has','_HTTPService','SNAPSHOT_SERVER_URL_KEY','copyFileMeta','_univerInstanceService','getSheetBlock','snapshot','/fetchmissing?from=','_state','FETCH_MISS','getUnitId','/collaborator','visibilityState','_getMergeRange','_scheduleClearOtherTimer','_updateLocalCursor','_session','unshift','setItem','deepClone','assign','_singleActiveUnitService','bottom','OFFLINE','...','sheetId','forEach','_awaitingChangeset','clear','post','clipPath','with','readAsDataURL','1em','_updateSubUnitFromURLParams','_context','1524iGPGRu','_init','/rev/','subscribeEvent','328260fKrPYM','defineProperty','prototype','_userManagerService','fetching\x20missing\x20changesets\x20from\x20','_handleHeartbeatEvent','UNKNOWN_CODE','startRow','column','originalMeta','\x0aAfter:\x20','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_commentService','_telemetryInfo','onReady','AUTHZ_URL_KEY','split','then','send','_onRefRangeChange','_transformUndoredo','_getRedoStack','reconnect','batchAllowed','_type','getCollabEntity$','_snapshotService','status$','submit\x20changeset\x20error!','M0\x200H16V16H0z','doc.mutation.rich-text-editing','NO_OTHER_CLIENTS_EDITING','_textBubble','_memberService','_createSocket','replaceState','svg','_tryReconnect','_localeService','unitId\x20is\x20not\x20found','_send','_scheduleSaving','getImageSourceCache','generateRandomId','objectType','c1Prime','call','_initCloseConn','_labelPosition','_onConnectionOpen','/universer-api/snapshot','_telemetryService','transformSelections','_transitionLocked','roomInfos','6gziDVa','LICENSE_MAX_UNITS_EXCEEDED','red300','reverse','_clearOtherTimers','APPLY_REJECT','csRejEvent','9952164GyeGrf','session','values','onlineStatus','/object','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_initUnitPermissionChange','target','_transformRemoteChangesetByIMECache','_saveTaskMap','requireSession','create','UNIVER_PROJECT','_getSignURL','image/bmp','_status$','InsertColCommandId','_updateLocalCache','/universer-api/oidc/authpage','onlyLocal','_incrementRevisionNumber','fetch_missing','gold400','downloadEndpointUrl','_syncEditingCollabCursor','HttpImport','fetchMissingChangesets','_beforeCloseService','_event$','collabStatus.syncing','_collaborationPaused','NOT_FOUND','COMPRESS_MUTATION_APPLY','error$','from','_executeRemoteChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','liveShareOperation','syncEditingCollabCursor','saveSheetBlock','_backgroundColor','_renderManagerService','_docSkeleton','FromArray','change$','_getDownloadEndpointURL','_joinRoom','DeleteRangeMoveUpCommandId','collabStatus.conflict','_socketMessageSubscription','_onUserJoin','registerOnClose','cursorInfo','asObservable','loadSheet','entries','infoRsp','whenReady','Warning','propertyIsEnumerable','_initResize','capture','m2Prime','session.will-retry','collabStatus.synced','setShapeProps','startTime','getValue','getFocusedUnit','clearTimeout','unitId','_transformIMECache','makeDirty','loginUrlKey','TOO_MANY_REQUESTS','_substituteRedoStack','getCollabEntity','includes','setInterval','collaboration-client.offline-data-not-saved','[PendingState]:\x20received\x20rejection.','_permissionService','onSendChangeset','SYNCED','c2Prime','Undefined','_clearRedo','textRanges','code','_getCtorByUniverType','currentTheme$','substring','restore','event$','putCollaborators','_urlService','_sheetSkeletonManagerService','_updateState','LOCAL_CACHE_INTERVAL','_onJoinRoomEvent','updateCollaborator','session.connection-failed','_lastPointer','getMemberID','history','_substituteUndoStack','0\x200\x2016\x2016','assignAColorForMemberID','_onConnectionFailed','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_stopTelemetryCollaborationNewChangeset','mutations','_name','CHANGESET_REVISION_CONFILICT','_removeCollabCursors','getUndoRedoMutationParamsCache','univerjs-icon\x20univerjs-icon-','CHANGESET_REJ','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_removeRoom','cursorInfo$','_ensureSubject','pushState','on-line-single','_undoStacks','getTypeOfUnitAdded$','transformIMECache','getMergeData','all','unload','update','_cachedData','_timeoutTimer','?url=','/universer-api/authz','disableLocalCache','awaiting','_imageSourceCache','actions','stopTime','getRenderById','updatePermissionObjEvent','_eventUnsubscribe','_pendingMutations','exhaustSavingTask','PERMISSION_REJ','className','joinEvent','function','socket$','searchParams','uni.network.url-service','collaboration.single-unit.warning','isArray','UNIVER_UNKNOWN','3717318YkCBfv','_sendHeartbeat','APPLY_PERMISSION_DENIED','open$','COMMENT_UPDATE','enableLocalCache','setConfig','socketService','_localCacheService','[OfflineState]:\x20received\x20changeset.','sessionStatus$','LICENSE_IMPORT_SIZE_EXCEEDED','_anchorDot','createInstance','UNDEFINED','collab-text-anchor-','_unitOnClients','UNKNOWN_CMD','YUUMI_URL_COL_OUT_OF_RANGE','_localStorageService','_saveCache','sendChangesetTimeout','responseType','[CollaborationSessionService]:\x20socket\x20error','_initCommandExecutedListener','DeleteRangeMoveLeftCommandId','resize','image/jpg','fromCollab','auth.needGotoLoginAlert','appendMutation','\x0aCurrent:\x20','_socket','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_roomMembers','updateOfflineData','ERROR_IMAGE','authzUrl','setAlpha','storage','_clearLocalCache','colorChannel1','Univer','_configService','_setupBeforeClosingHandler','_checkMissing','/universer-api/snapshot/','object','_cursorShapes','LIVESHARE_TERMINATE','save','onMissingChangesets','_assignedColors','_unitStatus','_removeClearOtherTimer','_initModules','DEFAULT_FILE_NAME','popstate','off-line-single','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','lineTo','_disabled','getAncestorScale','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','awaitingChangeset','eventID','engine','csAckEvent','_toggleOffline','status','evenodd','_redoStacks','transformByState','online','getImage','_onRecvEvent','filter','withCredentials','_lockTransition','state','round','_initEventListeners','APPLY_NON_SEQUENTIAL_REVISION','currentColor','/unit/','_getSnapshotAPIPrefix','_replayCachedMutations','transformChangesets','executeCommand','getUnit','_scheduleCollaborationTimeoutTimer','/-/object/list','USERS_LEAVE','[SyncedState]:\x20received\x20acknowledgement.','append','UUID','_injector','telemetry\x20info\x20is\x20not\x20initialized','_instanceService','concat','_httpService','HELLO','_docStateChangeManagerService','_handleHover','addObjects','_docTransformSelectionsService','AWAITING_WITH_PENDING','onCommandExecuted','registerBeforeClose','collaboration_new_changeset','defIds','translate(.97)','_notificationService','_render','urlChange$','registerHTTPInterceptor','[CollaborationState]:\x20apply\x20error!','#FFF','black','UnitEmbedded','MUTATION','verdancy600','_sessions','div','liveShareNewHost','RemoveColCommandId','_startSheetCollabCursor','_entities','fetchThroughInterceptors','getCurrentSelections','_collabSessionService','_listenToOnlineEvent','/new_changes','_throwTelemetryCollaborationNewChangeset','[PendingState]:\x20received\x20acknowledgement.','toggleOffline','getRelativeToViewportCoord','3092VLNTyN','apply','addImageSourceCache','/universer-api/stream/file/upload','_sendHeartbeatTimer','registerComponent','_retryCount','USERS_ENTER','[DataLoaderController]','_disableEditing','_entityInit$','jiqing500','rev','editingUnit','length','saveChangeset','headers','_scheduleHeartbeat','collabWebSocketUrl','_onFetchMissResult','_syncEditingCollabCursorService','now','routeKey','_drawAnchor','Unknown\x20user','sheets','sheetID','_getScale','_submitChangeset','getUnitStatus$','width','ONLINE','AWAITING','_anchor','baseRev','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Error\x20on\x20receiving\x20event','currentSkeleton$','_refreshCollabCursors','setCurrentUser','HEARTBEAT','conflict.content','setParam','reduce','_compressMutationService','_change$','disposeUnit','defs','getSheetBySheetId','saveSnapshot','text','pipe','onPointerEnter$','&assign=','collaboratorID','image/jpeg','_cursorInfo$','_onRemoteChangeset','pending','fillText','LIVESHARE_OPERATION','confirm','roomMembers','resolve','onTransformChange$','labelPosition','collabSubmitChangesetUrl','_startCollaboration','_onLocalMutation','onStateChange','_transformSelections','_colorAssignService','name','_decreaseWaiting','[CollaborationUndoRedoService]','onSyncEditingCollabCursor','deleteCollaborator','_clearCollaborationTimeoutTimer','_clearScheduledTask','body','onRemoteRej','extend','/-/object/-/batch_allowed','BASE64','_applyRemoteChangeset','HEARTBEAT_INTERVAL','addEventListener','transform','listRoles','override','failed\x20to\x20apply\x20missed\x20changesets!','_onCombEvent','LEAVE','RECV','onTransformSelections','fill','_shouldReportTelemetry','transformUndoRedo'];_0x7251=function(){return _0x9706ac;};return _0x7251();}et=Xo([Pe(0x0,_0x160402(_0x283cc6)),Pe(0x1,_0x33adea),Pe(0x2,_0x375c1f),Pe(0x3,_0x160402(ce)),Pe(0x4,_0x160402(_0x2f3b7b))],et);var Jo=Object[_0xa6a604(0x222)],qo=Object[_0xa6a604(0x4ce)],zo=(_0x34a2d3,_0x8b8385,_0x1a4e88,_0x2a20ef)=>{const _0x3e8a93=_0xa6a604;for(var _0x2921cb=_0x2a20ef>0x1?void 0x0:_0x2a20ef?qo(_0x8b8385,_0x1a4e88):_0x8b8385,_0x34a0b2=_0x34a2d3[_0x3e8a93(0x391)]-0x1,_0x9743c8;_0x34a0b2>=0x0;_0x34a0b2--)(_0x9743c8=_0x34a2d3[_0x34a0b2])&&(_0x2921cb=(_0x2a20ef?_0x9743c8(_0x8b8385,_0x1a4e88,_0x2921cb):_0x9743c8(_0x2921cb))||_0x2921cb);return _0x2a20ef&&_0x2921cb&&Jo(_0x8b8385,_0x1a4e88,_0x2921cb),_0x2921cb;},gs=(_0x1b0d58,_0x108e6f)=>(_0x49cf10,_0xac64b4)=>_0x108e6f(_0x49cf10,_0xac64b4,_0x1b0d58);let Nt=class{constructor(_0x381422,_0xf959eb){const _0x27f85d=_0xa6a604;this[_0x27f85d(0x325)]=_0x381422,this['_httpService']=_0xf959eb;}async[_0xa6a604(0x449)](_0x537afc,_0x454a0d){const _0x32bb0b=_0xa6a604;var _0x36f6b2;const {unitID:_0x57805a,type:_0x1e67ee,revision:_0x501438=0x0}=_0x454a0d,_0x1a586f=this[_0x32bb0b(0x34f)]()+'/'+_0x1e67ee+_0x32bb0b(0x34e)+_0x57805a+_0x32bb0b(0x21f)+_0x501438,_0x3f591e=(await this[_0x32bb0b(0x35e)][_0x32bb0b(0x504)](_0x1a586f))[_0x32bb0b(0x3d2)],_0x2f8604=(_0x36f6b2=_0x3f591e[_0x32bb0b(0x1ff)])==null?void 0x0:_0x36f6b2[_0x32bb0b(0x540)];if(_0x2f8604){const _0x10a3b1=_0x2f8604==null?void 0x0:_0x2f8604['originalMeta'],_0x1790c7=_0x20a8ca['encode'](_0x2b8cba(_0x10a3b1));_0x2f8604['originalMeta']=_0x1790c7,Object[_0x32bb0b(0x296)](_0x2f8604[_0x32bb0b(0x39c)])[_0x32bb0b(0x213)](([,_0xea92d4])=>{const _0x538451=_0x32bb0b,_0x448119=_0xea92d4[_0x538451(0x22a)],_0x3adc2d=_0x20a8ca['encode'](_0x2b8cba(_0x448119));_0xea92d4[_0x538451(0x22a)]=_0x3adc2d;});}return _0x3f591e;}async[_0xa6a604(0x1fe)](_0x4a4f37,_0x24e5ed){const _0x578f9b=_0xa6a604,{unitID:_0xe2d46,type:_0x494269,blockID:_0x1e41fd}=_0x24e5ed,_0x5e58f3=this[_0x578f9b(0x47d)]()+'/'+_0x494269+_0x578f9b(0x34e)+_0xe2d46+_0x578f9b(0x43a)+_0x1e41fd;return(await this[_0x578f9b(0x35e)]['get'](_0x5e58f3))[_0x578f9b(0x3d2)];}async[_0xa6a604(0x53f)](_0x3483b1,_0xc650c6){const _0x21b5a9=_0xa6a604,{unitID:_0x4369bf,type:_0x30fc11,blockID:_0x1e4d95}=_0xc650c6,_0x352e95=this[_0x21b5a9(0x47d)]()+_0x21b5a9(0x43a)+_0x30fc11+_0x21b5a9(0x34e)+_0x4369bf+_0x21b5a9(0x43a)+_0x1e4d95;return(await this['_httpService'][_0x21b5a9(0x504)](_0x352e95))[_0x21b5a9(0x3d2)];}async['fetchMissingChangesets'](_0x915abc,_0x240679){const _0xc18073=_0xa6a604,{unitID:_0x5d99be,type:_0x6ac836,from:_0x403c71,to:_0xa01ae0}=_0x240679,_0x29f5b8=this[_0xc18073(0x47d)]()+'/'+_0x6ac836+_0xc18073(0x34e)+_0x5d99be+_0xc18073(0x200)+_0x403c71+_0xc18073(0x485)+_0xa01ae0;return(await this[_0xc18073(0x35e)][_0xc18073(0x504)](_0x29f5b8))['body'];}[_0xa6a604(0x34f)](){const _0x44c403=_0xa6a604;var _0x1fb911;return(_0x1fb911=this[_0x44c403(0x325)][_0x44c403(0x4e5)](mn))!=null?_0x1fb911:this[_0x44c403(0x47d)]();}[_0xa6a604(0x47d)](){const _0x1a7d2b=_0xa6a604;var _0x1090e0,_0x17f09b;const _0x415294=this[_0x1a7d2b(0x325)][_0x1a7d2b(0x4e5)](dn),_0x10bf9f=this[_0x1a7d2b(0x325)][_0x1a7d2b(0x4e5)](L);return(_0x17f09b=(_0x1090e0=_0x10bf9f==null?void 0x0:_0x10bf9f['snapshotServerUrl'])!=null?_0x1090e0:_0x415294)!=null?_0x17f09b:fn;}async[_0xa6a604(0x48d)](_0x3c9c7f,_0x3a01e5){const _0xfd110=_0xa6a604,_0x57334a=_0xfd110(0x328)+_0x3a01e5[_0xfd110(0x536)]+_0xfd110(0x34e)+_0x3a01e5[_0xfd110(0x1ec)]+'/resources';return(await this['_httpService'][_0xfd110(0x504)](_0x57334a,{'params':{'resourceId':JSON['stringify'](_0x3a01e5['resourceIDs'])}}))[_0xfd110(0x3d2)];}[_0xa6a604(0x3b4)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0xa6a604(0x286)](){const _0x5a7926=_0xa6a604;throw new Error(_0x5a7926(0x22c));}[_0xa6a604(0x392)](){const _0x52f1a1=_0xa6a604;throw new Error(_0x52f1a1(0x22c));}[_0xa6a604(0x1fc)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Nt=zo([gs(0x0,_0x123c7a),gs(0x1,_0x160402(_0x24a261))],Nt);var Zo=Object[_0xa6a604(0x222)],Qo=Object['getOwnPropertyDescriptor'],ea=(_0x41bdde,_0x1b6e1f,_0x3c259b,_0x5aedb7)=>{const _0x1fb7f7=_0xa6a604;for(var _0x218f7d=_0x5aedb7>0x1?void 0x0:_0x5aedb7?Qo(_0x1b6e1f,_0x3c259b):_0x1b6e1f,_0x2e2060=_0x41bdde[_0x1fb7f7(0x391)]-0x1,_0x1067a8;_0x2e2060>=0x0;_0x2e2060--)(_0x1067a8=_0x41bdde[_0x2e2060])&&(_0x218f7d=(_0x5aedb7?_0x1067a8(_0x1b6e1f,_0x3c259b,_0x218f7d):_0x1067a8(_0x218f7d))||_0x218f7d);return _0x5aedb7&&_0x218f7d&&Zo(_0x1b6e1f,_0x3c259b,_0x218f7d),_0x218f7d;},ye=(_0x8b6b67,_0x36678b)=>(_0x95be59,_0x1b1e3e)=>_0x36678b(_0x95be59,_0x1b1e3e,_0x8b6b67);let Ut=class extends _0x5871c7{constructor(_0x46a43e,_0x3936ab,_0x42f119,_0x1ee4ab,_0x2e7dd3){const _0x239644=_0xa6a604;super(_0x46a43e,_0x3936ab,_0x42f119),this[_0x239644(0x48c)]=_0x1ee4ab,this[_0x239644(0x493)]=_0x2e7dd3;}[_0xa6a604(0x3e4)](_0x2da1f6,_0x2d2172){const _0x4c4e8b=_0xa6a604,_0xa565e=this[_0x4c4e8b(0x4b5)](_0x2da1f6);if(_0xa565e)try{const _0x1034a4=this[_0x4c4e8b(0x45e)](_0xa565e,_0x2d2172);this[_0x4c4e8b(0x2c8)](_0x2da1f6,_0x1034a4);}catch(_0x4732c4){this[_0x4c4e8b(0x493)][_0x4c4e8b(0x3f7)](_0x4c4e8b(0x3cd),_0x4732c4),this[_0x4c4e8b(0x40f)](_0x2da1f6);}const _0x21a6f5=this[_0x4c4e8b(0x236)](_0x2da1f6);if(_0x21a6f5)try{const _0x5d1ce4=this[_0x4c4e8b(0x45e)](_0x21a6f5,_0x2d2172);this[_0x4c4e8b(0x2aa)](_0x2da1f6,_0x5d1ce4);}catch(_0xb54976){this[_0x4c4e8b(0x493)][_0x4c4e8b(0x3f7)](_0xb54976),this[_0x4c4e8b(0x2b5)](_0x2da1f6);}}['_clearUndo'](_0x526df3){const _0x3ada45=_0xa6a604,_0x326350=this[_0x3ada45(0x4b5)](_0x526df3);_0x326350&&(_0x326350[_0x3ada45(0x391)]=0x0,this[_0x3ada45(0x518)]());}[_0xa6a604(0x2b5)](_0x25c826){const _0x5e9ffe=this['_getRedoStack'](_0x25c826);_0x5e9ffe&&(_0x5e9ffe['length']=0x0,this['_updateStatus']());}[_0xa6a604(0x2c8)](_0x267727,_0x12f275){const _0x57509b=_0xa6a604;this[_0x57509b(0x2db)][_0x57509b(0x455)](_0x267727,_0x12f275),this['_updateStatus']();}[_0xa6a604(0x2aa)](_0xaafc78,_0x46214f){const _0xa50d34=_0xa6a604;this[_0xa50d34(0x341)][_0xa50d34(0x455)](_0xaafc78,_0x46214f),this[_0xa50d34(0x518)]();}[_0xa6a604(0x45e)](_0x5a6047,_0x192ff8){const _0x575211=_0xa6a604,_0x729223=[];let _0x52bd51=_0x192ff8,_0x23461d=_0x192ff8;for(let _0x56f90b=_0x5a6047[_0x575211(0x391)]-0x1;_0x56f90b>=0x0;_0x56f90b--){const {unitID:_0xcc3b26,undoMutations:_0xd24f83,redoMutations:_0x2fbca7}=_0x5a6047[_0x56f90b],_0x609df6=this[_0x575211(0x48c)]['transformMutationsWithChangeset'](_0x52bd51,_0xd24f83),_0x836c40=this['_transformService']['transformMutationsWithChangeset'](_0x23461d,_0x2fbca7);if(_0x5c865a(_0x609df6)||_0x5c865a(_0x836c40)){this[_0x575211(0x493)][_0x575211(0x3f7)](_0x575211(0x3cd),_0x575211(0x4ef),_0x609df6,_0x836c40);break;}_0x52bd51=_0x609df6['c1Prime'],_0x23461d=_0x836c40[_0x575211(0x24e)],_0x729223[_0x575211(0x539)]({'unitID':_0xcc3b26,'undoMutations':_0x609df6[_0x575211(0x29d)],'redoMutations':_0x836c40[_0x575211(0x29d)]});}return _0x729223[_0x575211(0x25b)]();}};Ut=ea([ye(0x0,_0x33adea),ye(0x1,_0x5a0862),ye(0x2,_0x485aab),ye(0x3,_0x5ea876),ye(0x4,_0x4e432b)],Ut);class ta extends _0x48a1ad{constructor(){const _0x5ef2cf=_0xa6a604;super(),l(this,_0x5ef2cf(0x36c)),this[_0x5ef2cf(0x36c)]=_0x258cea(window,_0x5ef2cf(0x333))[_0x5ef2cf(0x3b6)](_0x23bb2f(this[_0x5ef2cf(0x424)]),_0x1acd58(0x1),_0x27b06e(void 0x0));}['setParam'](_0x58c919,_0x39cb61,_0x4cd0a0=!0x1){const _0x24df06=_0xa6a604,_0x23700c=new URL(window[_0x24df06(0x437)][_0x24df06(0x4f8)]);_0x23700c[_0x24df06(0x2f5)][_0x24df06(0x455)](_0x58c919,_0x39cb61),_0x4cd0a0?window[_0x24df06(0x2c7)][_0x24df06(0x244)]('','',_0x23700c[_0x24df06(0x3ed)]()):window['history'][_0x24df06(0x2d9)]('','',_0x23700c[_0x24df06(0x3ed)]());}['removeParam'](_0x5af8fe,_0x7c5a5=!0x1){const _0x2d7dc1=_0xa6a604,_0x6c0fb0=new URL(window['location']['href']);_0x6c0fb0[_0x2d7dc1(0x2f5)][_0x2d7dc1(0x3fe)](_0x5af8fe),_0x7c5a5?window['history'][_0x2d7dc1(0x244)]('','',_0x6c0fb0['toString']()):window[_0x2d7dc1(0x2c7)][_0x2d7dc1(0x2d9)]('','',_0x6c0fb0[_0x2d7dc1(0x3ed)]());}[_0xa6a604(0x4ed)](_0x6bae24){const _0x939bad=_0xa6a604;var _0x425ce8;return(_0x425ce8=new URL(window['location'][_0x939bad(0x4f8)])[_0x939bad(0x2f5)][_0x939bad(0x504)](_0x6bae24))!=null?_0x425ce8:void 0x0;}}var Gs=Object['defineProperty'],sa=Object[_0xa6a604(0x4ce)],ia=(_0x25c47f,_0x36953a,_0x4ac9cc)=>_0x36953a in _0x25c47f?Gs(_0x25c47f,_0x36953a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ac9cc}):_0x25c47f[_0x36953a]=_0x4ac9cc,na=(_0x2a4df1,_0x389cfb,_0x24f531,_0x3d8bd4)=>{for(var _0x680677=_0x3d8bd4>0x1?void 0x0:_0x3d8bd4?sa(_0x389cfb,_0x24f531):_0x389cfb,_0x36c650=_0x2a4df1['length']-0x1,_0x5b816b;_0x36c650>=0x0;_0x36c650--)(_0x5b816b=_0x2a4df1[_0x36c650])&&(_0x680677=(_0x3d8bd4?_0x5b816b(_0x389cfb,_0x24f531,_0x680677):_0x5b816b(_0x680677))||_0x680677);return _0x3d8bd4&&_0x680677&&Gs(_0x389cfb,_0x24f531,_0x680677),_0x680677;},ke=(_0x5587c7,_0x4e3d9d)=>(_0x58dd90,_0x457ae3)=>_0x4e3d9d(_0x58dd90,_0x457ae3,_0x5587c7),ra=(_0x55c438,_0x4c948d,_0x2c4003)=>ia(_0x55c438,_0x4c948d+'',_0x2c4003);const oa=_0xa6a604(0x4fe);let Mt=class extends _0x56b9f6{constructor(_0x4d83d7=yn,_0x3cd666,_0x398052,_0x2527e8,_0x4d54f3){const _0x3675e0=_0xa6a604;super(),this[_0x3675e0(0x3fc)]=_0x4d83d7,this[_0x3675e0(0x493)]=_0x3cd666,this['_renderManagerService']=_0x398052,this[_0x3675e0(0x35a)]=_0x2527e8,this[_0x3675e0(0x325)]=_0x4d54f3;const {..._0x317cf0}=this[_0x3675e0(0x3fc)];this[_0x3675e0(0x325)][_0x3675e0(0x300)](L,_0x317cf0);}['onStarting'](){const _0x875c26=_0xa6a604;this[_0x875c26(0x43d)](),_0x5319da(this[_0x875c26(0x35a)],[[pe],[qe],[et]]);}[_0xa6a604(0x22f)](){const _0x3f7dd6=_0xa6a604;_0x5319da(this[_0x3f7dd6(0x35a)],[[ze]]);}['onRendered'](){const _0x51ee11=_0xa6a604;this[_0x51ee11(0x467)]();}['_registerDependencies'](){const _0x2bce86=_0xa6a604;var _0x22b3b6,_0x496296,_0x55955b,_0x1bb8b0;this[_0x2bce86(0x35a)][_0x2bce86(0x1f9)](_0xfe397)&&this[_0x2bce86(0x493)][_0x2bce86(0x3f7)](_0x2bce86(0x409),_0x2bce86(0x339));let _0x41c82b=[[_0xfe397,{'useClass':Ut}],[ce],[Ft],[_0x24a261],[Ws,{'useClass':ta}],[ae],[D],[_0x455b4c],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x496296=(_0x22b3b6=this['_config'])==null?void 0x0:_0x22b3b6[_0x2bce86(0x301)])!=null?_0x496296:Et}],[_0x5e91e5,{'useClass':_0x5f0490}],[_0x4c8bab,{'useClass':Nt}],[_0x523cec,{'useClass':Pt}],[_0x53feec,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x55955b=this[_0x2bce86(0x3fc)])!=null&&_0x55955b[_0x2bce86(0x4a1)]&&_0x41c82b['push']([tt,{'useClass':rr}]),_0x41c82b=_0x370722(_0x41c82b,(_0x1bb8b0=this['_config'])==null?void 0x0:_0x1bb8b0[_0x2bce86(0x3dc)]),_0x41c82b[_0x2bce86(0x213)](_0x535a16=>this[_0x2bce86(0x35a)][_0x2bce86(0x1e7)](_0x535a16)),this[_0x2bce86(0x331)]();}['_registerRenderDependencies'](){const _0x1d6d34=_0xa6a604;this[_0x1d6d34(0x4f3)](this[_0x1d6d34(0x288)]['registerRenderModule'](_0x39cf18['UNIVER_DOC'],[Dt])),this[_0x1d6d34(0x4f3)](this[_0x1d6d34(0x288)]['registerRenderModule'](_0x39cf18['UNIVER_SHEET'],[wt]));}[_0xa6a604(0x331)](){const _0x3b9731=_0xa6a604;var _0x53cef2,_0x238145;this[_0x3b9731(0x35a)]['get'](_0x24a261)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x1d7570({'maxParallel':0x6})}),this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Qe),(_0x53cef2=this['_config'])!=null&&_0x53cef2[_0x3b9731(0x53c)]||this[_0x3b9731(0x35a)][_0x3b9731(0x504)](D)['disableLocalCache'](),(_0x238145=this['_config'])!=null&&_0x238145[_0x3b9731(0x411)]&&this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Ze),this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Ae),this['_injector'][_0x3b9731(0x1f9)](Ue)&&this[_0x3b9731(0x35a)][_0x3b9731(0x504)](Ue);}};ra(Mt,_0xa6a604(0x3ef),oa),Mt=na([_0x571c11(_0x43d2ba),ke(0x1,_0x4e432b),ke(0x2,_0x25950e),ke(0x3,_0x160402(_0x283cc6)),ke(0x4,_0x123c7a)],Mt);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Ws as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ta as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
|