@univerjs-pro/collaboration-client 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -1
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -1
- package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -1
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -1
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -1
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -1
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +0 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -1
- package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -1
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -1
- package/lib/types/controllers/file-name/file-name.controller.d.ts +0 -1
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/locale/ru-RU.d.ts +0 -1
- package/lib/types/locale/vi-VN.d.ts +0 -1
- package/lib/types/locale/zh-TW.d.ts +0 -1
- package/lib/types/models/cursor.d.ts +0 -1
- package/lib/types/plugin.d.ts +1 -2
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -1
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +0 -1
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -1
- package/lib/types/services/color-assign/color-assign.service.d.ts +0 -1
- package/lib/types/services/comment/comment.service.d.ts +0 -1
- package/lib/types/services/image-remote/image-io.service.d.ts +3 -3
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -1
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -1
- package/lib/types/services/member/member.service.d.ts +0 -1
- package/lib/types/services/permission/permission.service.d.ts +0 -1
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +0 -1
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -1
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +0 -1
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
- package/lib/types/services/socket/serialize.d.ts +0 -1
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -1
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -1
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +0 -1
- package/lib/types/services/url/url.service.d.ts +0 -1
- package/lib/types/services/url/web-url.service.d.ts +0 -1
- package/lib/types/views/components/CollabStatus.d.ts +0 -1
- package/lib/types/views/components/CollabStatus.stories.d.ts +0 -1
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +0 -1
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -1
- package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +27 -27
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x1e1deb=_0x44de;(function(_0x5caaba,_0xf4c842){const _0x31c50a=_0x44de,_0x1ed9d0=_0x5caaba();while(!![]){try{const _0x277aec=parseInt(_0x31c50a(0x22c))/0x1*(-parseInt(_0x31c50a(0x1ed))/0x2)+-parseInt(_0x31c50a(0x1f0))/0x3+parseInt(_0x31c50a(0x2cb))/0x4+parseInt(_0x31c50a(0x153))/0x5+-parseInt(_0x31c50a(0x235))/0x6*(-parseInt(_0x31c50a(0x1e7))/0x7)+-parseInt(_0x31c50a(0x2eb))/0x8*(parseInt(_0x31c50a(0x108))/0x9)+-parseInt(_0x31c50a(0x1d2))/0xa;if(_0x277aec===_0xf4c842)break;else _0x1ed9d0['push'](_0x1ed9d0['shift']());}catch(_0x1c31bd){_0x1ed9d0['push'](_0x1ed9d0['shift']());}}}(_0x48fb,0x7b1ff));var Gs=Object[_0x1e1deb(0x158)],Ys=(_0x1e9254,_0x27915c,_0x10e9dc)=>_0x27915c in _0x1e9254?Gs(_0x1e9254,_0x27915c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10e9dc}):_0x1e9254[_0x27915c]=_0x10e9dc,l=(_0x56df29,_0x505eb8,_0x49369f)=>Ys(_0x56df29,typeof _0x505eb8!=_0x1e1deb(0x180)?_0x505eb8+'':_0x505eb8,_0x49369f);import{Disposable as _0xc94eea,toDisposable as _0x4259e5,UniverInstanceType as _0x37298b,Inject as _0x441fe2,UserManagerService as _0x12c7a1,IUniverInstanceService as _0x4902a5,createIdentifier as _0x32feec,DisposableCollection as _0x5b86e3,IConfigService as _0x5445a8,ILogService as _0x5f4df3,ISnapshotServerService as _0x4a4d9b,RxDisposable as _0x5b9cf1,LocaleService as _0x2cfe85,Injector as _0x9c5d64,ILocalStorageService as _0x2f04ba,Tools as _0x4526c0,ICommandService as _0x9845f,JSONX as _0x564a09,CommandType as _0x5cd9c4,IPermissionService as _0x3660f2,IUndoRedoService as _0x416533,sequenceExecute as _0x35dc8f,OnLifecycle as _0x3e0133,LifecycleStages as _0x1781f1,Optional as _0x16cd37,Rectangle as _0xf02aa9,ThemeService as _0x5af768,useDependency as _0x12a590,connectInjector as _0x1bcf38,Workbook as _0x5a1e31,textEncoder as _0x3faa9c,b64DecodeUnicode as _0x41bd2d,LocalUndoRedoService as _0x3da1d9,IContextService as _0x3def4f,COLORS as _0x5090fb,ColorKit as _0x1d709d,fromEventSubject as _0x3cb543,isInternalEditorID as _0x2f9fa5,Plugin as _0x14ee3b,IAuthzIoService as _0x2914fb,mergeOverrideWithDependencies as _0x117d0f,DependentOn as _0xb27d8b}from'@univerjs/core';import{SheetsSelectionsService as _0x402922,SetSelectionsOperation as _0x37d621,InsertSheetMutation as _0x447932,EmptyMutation as _0x4bcf83,WorkbookEditablePermission as _0x230e97,RefRangeService as _0x298890,EffectRefRangId as _0x5d94fe,handleIRemoveRow as _0x361c3a,handleIRemoveCol as _0x1cf9bc,handleMoveRange as _0x158655,handleInsertRow as _0x4865ab,handleInsertRangeMoveRight as _0x5abfa3,handleInsertRangeMoveDown as _0x4c8313,handleInsertCol as _0x3fcda2,handleDeleteRangeMoveUp as _0x31ef26,handleDeleteRangeMoveLeft as _0x5f1e8b,runRefRangeMutations as _0x1df086,SetWorksheetActivateCommand as _0x2576c5}from'@univerjs/sheets';import{MessageType as _0x3eac95}from'@univerjs/design';import{IBeforeCloseService as _0x1a3f95,IMessageService as _0x49507b,INotificationService as _0x73ec84,useObservable as _0x40760a,BuiltInUIPart as _0x37823b,IUIPartsService as _0xbabd5f}from'@univerjs/ui';import{CollaborationEvent as _0x1c415b,parseChangesetToProtocol as _0x23ced7,RevisionService as _0xaeae41,isTransformMutationFailure as _0x1d42ec,isTransformMutationsWithChangesetSuccess as _0x4f645f,ITransformService as _0x1e0f5c,mapDocumentTypeToUniverType as _0x4d8b7d,isTransformChangesetsSuccess as _0x316cc8,CompressMutationService as _0x4ef08c,parseProtocolChangeset as _0x485874,SnapshotService as _0x1e8d71,isTransformMutationsWithChangesetFailure as _0x5339fb,UniverCollaborationPlugin as _0x5d157c}from'@univerjs-pro/collaboration';import{merge as _0x5726e7,Subject as _0x365a49,BehaviorSubject as _0x16d05d,distinctUntilChanged as _0x306a98,fromEvent as _0x1fd07d,of as _0x4f1794,takeUntil as _0x3f75b0,debounceTime as _0x380776,filter as _0x4543ab,switchMap as _0xd6054c,combineLatest as _0x1a6529,shareReplay as _0xaffb9f,mapTo as _0x497582,concatMap as _0x4ff395}from'rxjs';import{map as _0x5ac769,takeUntil as _0x946afe,take as _0x59ece1,filter as _0x190413,delay as _0x12d8e6,shareReplay as _0xec62cf,switchMap as _0x4abf00,throttleTime as _0x4faae9}from'rxjs/operators';import{IMEInputManagerService as _0x3c7fed,TextSelectionManagerService as _0x490704,serializeDocRange as _0x14d063,RichTextEditingMutation as _0x54abea,DocStateChangeManagerService as _0x30c46a,SetTextSelectionsOperation as _0x1ed2cb,SetDocZoomRatioOperation as _0x21025d,DocSkeletonManagerService as _0x1b04a5}from'@univerjs/docs';import{HTTPService as _0x34ef08,WebSocketService as _0x3ee676,MergeInterceptorFactory as _0x57c1a3,HTTPRequest as _0x3f5fe8,IHTTPImplementation as _0x2a4f7d,XHRHTTPImplementation as _0xea0666,ThresholdInterceptorFactory as _0x43013b}from'@univerjs/network';import{ImageSourceType as _0x53415e,ImageUploadStatusType as _0x3a4a7b,IImageIoService as _0x19b622}from'@univerjs/drawing';import{Shape as _0x26e4f3,Rect as _0xb0d98f,Vector2 as _0x261805,NodePositionConvertToCursor as _0x23cfc5,isValidRectRange as _0x4e3ab9,NodePositionConvertToRectRange as _0x52f652,getColor as _0x2c779e,TEXT_RANGE_LAYER_INDEX as _0x261e5f,RegularPolygon as _0x3fb47a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3aecba,IRenderManagerService as _0x2b632b}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x370f5d,serializeRangeWithSheet as _0x419817}from'@univerjs/engine-formula';import _0x21f8bc from'lodash/debounce';import{VIEWPORT_KEY as _0x148a75,getCoordByCell as _0x2dd2e3,getSheetObject as _0x8759c1,SheetSkeletonManagerService as _0x1b2381,SheetPermissionInitController as _0x357f80}from'@univerjs/sheets-ui';import _0xed19ed,{forwardRef as _0x4c5978,useRef as _0x42a52e,createElement as _0x5dad64}from'react';import _0x513823 from'clsx';import{IRemoteInstanceService as _0x182e1b}from'@univerjs/rpc';const on=_0x1e1deb(0x347),an=_0x1e1deb(0x401),cn=_0x1e1deb(0x1b5),hn=_0x1e1deb(0x210),ln=0x7d0,_n=_0x1e1deb(0x30a),un=_0x1e1deb(0x1a9),dn=_0x1e1deb(0x297),mn=0x7530,Os=_0x1e1deb(0x239),Ds=0x2710,fn=_0x1e1deb(0x2c3),gn=0x4e20,Sn=_0x1e1deb(0x1f5),pn=0x3,vn=_0x1e1deb(0x41c),In=0x3e8,En=_0x1e1deb(0x120),Cn=_0x1e1deb(0x3af),bn='LOGIN_URL_KEY',Tn=_0x1e1deb(0x224);var Ps=(_0x2ff3ab=>(_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x36e)]=0x0]=_0x1e1deb(0x36e),_0x2ff3ab[_0x2ff3ab['OK']=0x1]='OK',_0x2ff3ab[_0x2ff3ab['INTERNAL_ERROR']=0x2]=_0x1e1deb(0x31a),_0x2ff3ab[_0x2ff3ab['PERMISSION_DENIED']=0x3]=_0x1e1deb(0x2f5),_0x2ff3ab[_0x2ff3ab['NOT_FOUND']=0x4]=_0x1e1deb(0x123),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2fe)]=0x5]='UNAUTHENTICATED',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2bb)]=0x6]=_0x1e1deb(0x2bb),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1c0)]=0x7]=_0x1e1deb(0x1c0),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x267)]=0x8]=_0x1e1deb(0x267),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x326)]=0x9]=_0x1e1deb(0x326),_0x2ff3ab[_0x2ff3ab['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2ff3ab[_0x2ff3ab['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2b7)]=0x1772]=_0x1e1deb(0x2b7),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1a3)]=0x1b59]='APPLY_REJECT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x378)]=0x1b5a]=_0x1e1deb(0x378),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x343)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x321)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2ff3ab[_0x2ff3ab['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1e1deb(0x1a5),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x284)]=0x2329]=_0x1e1deb(0x284),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0xfb)]=0x232a]=_0x1e1deb(0xfb),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x3b2)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x3ac)]=0x232c]=_0x1e1deb(0x3ac),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x13d)]=0x232d]=_0x1e1deb(0x13d),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x122)]=0x2711]=_0x1e1deb(0x122),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x285)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x391)]=0x2713]=_0x1e1deb(0x391),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2e0)]=0x2714]=_0x1e1deb(0x2e0),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x2ff3ab))(Ps||{}),x=(_0x310cc1=>(_0x310cc1[_0x310cc1[_0x1e1deb(0x234)]=0x0]=_0x1e1deb(0x234),_0x310cc1[_0x310cc1[_0x1e1deb(0x1c7)]=0x1]=_0x1e1deb(0x1c7),_0x310cc1[_0x310cc1['UNIVER_SHEET']=0x2]=_0x1e1deb(0x3d0),_0x310cc1[_0x310cc1[_0x1e1deb(0x41b)]=0x3]='UNIVER_SLIDE',_0x310cc1[_0x310cc1[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x310cc1))(x||{}),I=(_0x5bb7f0=>(_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x17e)]=0x0]='UNKNOWN_CMD',_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x37f)]=0x1]='HELLO',_0x5bb7f0[_0x5bb7f0['JOIN']=0x2]=_0x1e1deb(0x14f),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x3ca)]=0x3]=_0x1e1deb(0x3ca),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x420)]=0x4]=_0x1e1deb(0x420),_0x5bb7f0[_0x5bb7f0['HEARTBEAT']=0x5]='HEARTBEAT',_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x3c5)]=0x6]=_0x1e1deb(0x3c5),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x5bb7f0))(I||{}),$t=(_0xdea636=>(_0xdea636[_0xdea636[_0x1e1deb(0x21e)]=0x0]=_0x1e1deb(0x21e),_0xdea636[_0xdea636['OK']=0x1]='OK',_0xdea636[_0xdea636['FAIL']=0x2]='FAIL',_0xdea636[_0xdea636[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0xdea636))($t||{}),Rn=Object['defineProperty'],On=Object['getOwnPropertyDescriptor'],Dn=(_0x171d31,_0x124962,_0x12b32d,_0x199f79)=>{const _0x2ac37d=_0x1e1deb;for(var _0x3fa628=_0x199f79>0x1?void 0x0:_0x199f79?On(_0x124962,_0x12b32d):_0x124962,_0x12a6f1=_0x171d31[_0x2ac37d(0x426)]-0x1,_0x4760a8;_0x12a6f1>=0x0;_0x12a6f1--)(_0x4760a8=_0x171d31[_0x12a6f1])&&(_0x3fa628=(_0x199f79?_0x4760a8(_0x124962,_0x12b32d,_0x3fa628):_0x4760a8(_0x3fa628))||_0x3fa628);return _0x199f79&&_0x3fa628&&Rn(_0x124962,_0x12b32d,_0x3fa628),_0x3fa628;},Zt=(_0xd518a6,_0x28199a)=>(_0x301d51,_0x219caa)=>_0x28199a(_0x301d51,_0x219caa,_0xd518a6);let ne=class extends _0xc94eea{constructor(_0x453fac,_0x2b579e){const _0x25ee89=_0x1e1deb;super(),l(this,_0x25ee89(0x2cf),new Map()),(this['_univerInstanceService']=_0x453fac,this['_userManagerService']=_0x2b579e,this[_0x25ee89(0x32e)](_0x4259e5(_0x5726e7(this[_0x25ee89(0x145)][_0x25ee89(0x363)](_0x37298b[_0x25ee89(0x3d0)])[_0x25ee89(0x119)](_0x5ac769(_0xb76318=>_0xb76318[_0x25ee89(0x3cf)]())),this[_0x25ee89(0x145)][_0x25ee89(0x363)](_0x37298b['UNIVER_DOC'])[_0x25ee89(0x119)](_0x5ac769(_0x52e1f4=>_0x52e1f4[_0x25ee89(0x3cf)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x37298b['UNIVER_SLIDE'])['pipe'](_0x5ac769(_0x57ba0e=>_0x57ba0e[_0x25ee89(0x3cf)]())))[_0x25ee89(0x3e0)](_0x47680e=>this['_removeRoom'](_0x47680e)))));}['setCurrentUser'](_0x2131d5){const _0x3fd17d=_0x1e1deb;this['_userManagerService'][_0x3fd17d(0x380)](_0x2131d5);}[_0x1e1deb(0x20c)](){const _0x289c3a=_0x1e1deb;return this[_0x289c3a(0x192)][_0x289c3a(0x20c)]();}[_0x1e1deb(0x23f)](_0xbabbee,_0x5f3856){const _0x2d0537=_0x1e1deb;let _0x210e1b=this[_0x2d0537(0x2cf)]['get'](_0xbabbee);_0x210e1b||(_0x210e1b=new Pn(),this[_0x2d0537(0x2cf)][_0x2d0537(0x394)](_0xbabbee,_0x210e1b)),_0x210e1b['updateMember'](_0x5f3856);}[_0x1e1deb(0x238)](_0x76d36b,_0x45e793){const _0x9129f5=_0x1e1deb,_0x3d2f9b=this['_roomMembers'][_0x9129f5(0x10a)](_0x76d36b);_0x3d2f9b&&_0x3d2f9b[_0x9129f5(0x238)](_0x45e793);}[_0x1e1deb(0x42e)](_0x193658){const _0x2fa797=_0x1e1deb;return this[_0x2fa797(0x2cf)]['get'](_0x193658);}[_0x1e1deb(0x3a0)](_0x428ca9,_0x4be60b){const _0x5b255f=_0x1e1deb,_0x230529=this[_0x5b255f(0x2cf)]['get'](_0x428ca9);if(_0x230529)return _0x230529[_0x5b255f(0x3a0)](_0x4be60b);}[_0x1e1deb(0x3fa)](_0x5c91e8){const _0x5cf32e=_0x1e1deb,_0x684035=this[_0x5cf32e(0x2cf)][_0x5cf32e(0x10a)](_0x5c91e8);_0x684035&&(_0x684035['dispose'](),this[_0x5cf32e(0x2cf)][_0x5cf32e(0x36f)](_0x5c91e8));}[_0x1e1deb(0x1de)](){const _0x4da830=_0x1e1deb;this[_0x4da830(0x2cf)][_0x4da830(0x23e)](_0x275d0c=>_0x275d0c[_0x4da830(0x1de)]()),this[_0x4da830(0x2cf)][_0x4da830(0x124)]();}};ne=Dn([Zt(0x0,_0x4902a5),Zt(0x1,_0x441fe2(_0x12c7a1))],ne);class Pn extends _0xc94eea{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x42df64=_0x1e1deb;this[_0x42df64(0x3f1)]['clear']();}[_0x1e1deb(0x23f)](_0x286440){const _0xcc55ac=_0x1e1deb;this[_0xcc55ac(0x3f1)]['set'](_0x286440[_0xcc55ac(0x283)],_0x286440);}[_0x1e1deb(0x238)](_0x2af5c0){this['_members']['delete'](_0x2af5c0);}[_0x1e1deb(0x3a0)](_0x2b4dfb){const _0x2226f7=_0x1e1deb;return this[_0x2226f7(0x3f1)]['get'](_0x2b4dfb);}}function wn(_0x4957fd){const _0x3d48b0=_0x1e1deb;var _0x5e161e,_0x50581e,_0x7e86ea,_0x3fe3ac;const _0x156b8e=_0x4957fd[_0x3d48b0(0x265)],_0x5abd0a=JSON['parse'](_0x156b8e);switch(_0x5abd0a[_0x3d48b0(0x129)]){case I[_0x3d48b0(0x410)]:case I[_0x3d48b0(0x37f)]:{const _0x1ac88b=_0x5abd0a[_0x3d48b0(0xfa)];return{..._0x5abd0a,'data':_0x1ac88b,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};}case I['JOIN']:{const _0x25c109=_0x5abd0a[_0x3d48b0(0x324)];return{..._0x5abd0a,'data':_0x25c109,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};}case I[_0x3d48b0(0x3c5)]:{const _0x3d0697=_0x5abd0a[_0x3d48b0(0x24f)];switch(_0x3d0697[_0x3d48b0(0x2f8)]){case _0x1c415b[_0x3d48b0(0x436)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x5e161e=_0x3d0697[_0x3d48b0(0x3b5)])==null?void 0x0:_0x5e161e['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x402)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x50581e=_0x3d0697[_0x3d48b0(0x242)])==null?void 0x0:_0x50581e['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x38c)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x7e86ea=_0x3d0697[_0x3d48b0(0x262)])==null?void 0x0:_0x7e86ea['cs']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x3fb)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x3fe3ac=_0x3d0697[_0x3d48b0(0x3de)])==null?void 0x0:_0x3fe3ac['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x21d)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['updateCursorEvent']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['USERS_ENTER']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x399)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x25e)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['leaveEvent']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x2c5)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x3d6)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['LIVESHARE_FETCH_OPERATIONS']:case _0x1c415b[_0x3d48b0(0x1dc)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x148)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['LIVESHARE_TERMINATE']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x3d6)]},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x422)]:return{..._0x5abd0a,'data':_0x3d0697,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['COMMENT_UPDATE']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['commentUpdateEvent']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x207)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['updatePermissionObjEvent']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x171)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x27a)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};default:return _0x5abd0a;}}default:return _0x5abd0a;}}function Nn(_0x5c7866){const _0x2a5a4f=_0x1e1deb;switch(_0x5c7866['cmd']){case I[_0x2a5a4f(0x410)]:case I[_0x2a5a4f(0x37f)]:return JSON[_0x2a5a4f(0x32f)]({'cmd':_0x5c7866['cmd'],'routeKey':_0x5c7866[_0x2a5a4f(0x349)]});case I[_0x2a5a4f(0x420)]:{let _0x4ad669;switch(_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x2f8)]){case _0x1c415b[_0x2a5a4f(0x21d)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x21d)],'updateCursorEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x25e)]:{_0x4ad669={'eventID':_0x1c415b['USERS_LEAVE'],'leaveEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b['USERS_ENTER']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x29f)],'joinEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x2c5)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x2c5)],'liveShareNewHost':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x1dc)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x1dc)],'liveShareOperation':_0x5c7866[_0x2a5a4f(0x265)]['data']};break;}case _0x1c415b[_0x2a5a4f(0x1bb)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x1bb)],'liveShareTerminate':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b['LIVESHARE_REQUEST_HOST']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x2ab)],'liveShareRequestHost':_0x5c7866[_0x2a5a4f(0x265)]['data']};break;}case _0x1c415b['LIVESHARE_FETCH_OPERATIONS']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x139)]};break;}default:_0x4ad669={'eventID':_0x5c7866['data'][_0x2a5a4f(0x2f8)]};}return JSON[_0x2a5a4f(0x32f)]({'cmd':_0x5c7866[_0x2a5a4f(0x129)],'routeKey':_0x5c7866['routeKey'],'collaMsg':_0x4ad669});}case I['JOIN']:return JSON['stringify']({'cmd':_0x5c7866['cmd'],'routeKey':_0x5c7866['routeKey'],'joinReq':_0x5c7866['data']});case I[_0x2a5a4f(0x3ca)]:return JSON['stringify']({'cmd':_0x5c7866[_0x2a5a4f(0x129)],'routeKey':_0x5c7866['routeKey'],'leaveReq':_0x5c7866[_0x2a5a4f(0x265)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object[_0x1e1deb(0x158)],An=Object['getOwnPropertyDescriptor'],yn=(_0x3e9988,_0x511b74,_0x578662,_0x2f23e5)=>{const _0x78c512=_0x1e1deb;for(var _0x132225=_0x2f23e5>0x1?void 0x0:_0x2f23e5?An(_0x511b74,_0x578662):_0x511b74,_0x7e2168=_0x3e9988[_0x78c512(0x426)]-0x1,_0x351478;_0x7e2168>=0x0;_0x7e2168--)(_0x351478=_0x3e9988[_0x7e2168])&&(_0x132225=(_0x2f23e5?_0x351478(_0x511b74,_0x578662,_0x132225):_0x351478(_0x132225))||_0x132225);return _0x2f23e5&&_0x132225&&Mn(_0x511b74,_0x578662,_0x132225),_0x132225;},Re=(_0xcbcb1f,_0x41a5ec)=>(_0x3628d6,_0x152677)=>_0x41a5ec(_0x3628d6,_0x152677,_0xcbcb1f);const ws=_0x32feec(_0x1e1deb(0x1e0));function Un(_0x5ebece,_0x18ea01,_0x5e1d29){const _0x7f0b9b=_0x1e1deb;return _0x5ebece+'/'+_0x18ea01+_0x7f0b9b(0x19e)+_0x5e1d29+_0x7f0b9b(0x294);}let pt=class{constructor(_0x40ca17,_0xbeea79,_0x26dff6,_0x266166,_0x1a735d){const _0x2b2a2e=_0x1e1deb;this[_0x2b2a2e(0x1aa)]=_0x40ca17,this[_0x2b2a2e(0x1dd)]=_0xbeea79,this[_0x2b2a2e(0x26b)]=_0x26dff6,this['_logService']=_0x266166,this[_0x2b2a2e(0x18f)]=_0x1a735d;}['createSocket'](_0x4cd524){const _0x273813=_0x1e1deb,_0x4bd368=this[_0x273813(0x1dd)][_0x273813(0x17f)](_0x4cd524);if(!_0x4bd368)throw new Error(_0x273813(0x2f1));const _0x4da524=new _0x5b86e3(),_0x546453=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368[_0x273813(0x34e)][_0x273813(0x3e0)](_0x37a33c=>_0x546453[_0x273813(0x3cd)](_0x37a33c)))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0x546453[_0x273813(0x433)]()));const _0x1fd6d6=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368['error$'][_0x273813(0x3e0)](_0xf82dde=>_0x1fd6d6['next'](_0xf82dde)))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0x1fd6d6[_0x273813(0x433)]()));const _0xd21716=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368[_0x273813(0x2e2)]['subscribe'](_0x2b2375=>{const _0xcdaf6=_0x273813,_0x17c263=wn(_0x2b2375);_0xd21716[_0xcdaf6(0x3cd)](_0x17c263);}))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0xd21716[_0x273813(0x433)]()));const _0x1d31de=()=>{const _0x2f03e0=_0x273813;_0x1fd6d6[_0x2f03e0(0x3cd)](new Event(_0x2f03e0(0x193))),_0x546453[_0x2f03e0(0x3cd)](new CloseEvent(_0x2f03e0(0x193))),_0x342176[_0x2f03e0(0x2fd)]();},_0x342176={'memberID':'','close$':_0x546453[_0x273813(0x14e)](),'error$':_0x1fd6d6[_0x273813(0x14e)](),'open$':_0x4bd368[_0x273813(0x386)],'message$':_0xd21716['asObservable'](),'send':_0xc17685=>{const _0x5471ce=_0x273813;if(_0xc17685[_0x5471ce(0x129)]===I['INGEST']){if(_0xc17685[_0x5471ce(0x265)][_0x5471ce(0x2f8)]===_0x1c415b[_0x5471ce(0x181)]){this[_0x5471ce(0x1ca)](_0x342176,_0xc17685[_0x5471ce(0x265)])[_0x5471ce(0x1ce)](_0x300f93=>{const _0x1b063e=_0x5471ce;this[_0x1b063e(0x12a)][_0x1b063e(0x1f8)](_0x300f93),_0x1d31de();});return;}if(_0xc17685[_0x5471ce(0x265)][_0x5471ce(0x2f8)]===_0x1c415b[_0x5471ce(0x15e)]){const _0x5da9cd=_0xc17685[_0x5471ce(0x265)];this[_0x5471ce(0x31b)](_0x5da9cd)[_0x5471ce(0x1e8)](_0x547497=>{const _0x26edb7=_0x5471ce;_0xd21716[_0x26edb7(0x3cd)]({'cmd':I[_0x26edb7(0x3c5)],'code':$t['OK'],'routeKey':_0x5da9cd['data'][_0x26edb7(0x370)],'routeType':'','data':{'eventID':_0x1c415b[_0x26edb7(0x2ff)],'data':{'changesets':_0x547497}}});})[_0x5471ce(0x1ce)](_0x3b42c1=>{const _0x4fc30f=_0x5471ce;this[_0x4fc30f(0x12a)][_0x4fc30f(0x1f8)](_0x3b42c1),_0x1d31de();});return;}}_0x4bd368[_0x5471ce(0x409)](Nn(_0xc17685));},'close':()=>{const _0x2d5935=_0x273813;_0x4bd368[_0x2d5935(0x2fd)](),_0x4da524[_0x2d5935(0x1de)]();}};return _0x342176;}async[_0x1e1deb(0x1ca)](_0x4e2132,_0x476a41){const _0x60d27a=_0x1e1deb;var _0x1f6727;const {unitType:_0x48d84d,unitID:_0x3762d6,changeset:_0x33ed30}=_0x476a41['data'],_0x221f7c={'unitID':_0x3762d6,'memberID':_0x4e2132[_0x60d27a(0x283)],'type':_0x48d84d,'changeset':_0x23ced7(_0x33ed30)},_0x55a90d=Un((_0x1f6727=this[_0x60d27a(0x26b)][_0x60d27a(0x35c)](En))!=null?_0x1f6727:Cn,_0x48d84d,_0x3762d6);try{await this[_0x60d27a(0x1aa)]['post'](_0x55a90d,{'body':_0x221f7c});}catch(_0x87e9e){throw this['_logService'][_0x60d27a(0x1f8)]('[CollaborationSession]',_0x60d27a(0x190)),_0x87e9e;}}async[_0x1e1deb(0x31b)](_0x172d40){const _0x5c332f=_0x1e1deb,{unitID:_0x1b4020,from:_0x42f7d1,to:_0x58353c,unitType:_0x4161e6}=_0x172d40[_0x5c332f(0x265)];return(await this[_0x5c332f(0x18f)][_0x5c332f(0x1d9)]({'metadata':void 0x0},{'unitID':_0x1b4020,'type':_0x4161e6,'from':_0x42f7d1,'to':_0x58353c}))[_0x5c332f(0x247)];}};pt=yn([Re(0x0,_0x441fe2(_0x34ef08)),Re(0x1,_0x441fe2(_0x3ee676)),Re(0x2,_0x5445a8),Re(0x3,_0x5f4df3),Re(0x4,_0x4a4d9b)],pt);class Ns{constructor(){const _0x36ff62=_0x1e1deb;l(this,_0x36ff62(0x156),new _0x365a49()),l(this,_0x36ff62(0x365),this[_0x36ff62(0x156)]['asObservable']());}[_0x1e1deb(0x22f)](_0x575e87){const _0x3c218a=_0x1e1deb;this[_0x3c218a(0x156)][_0x3c218a(0x3cd)](_0x575e87);}}var Ln=Object['defineProperty'],$n=Object[_0x1e1deb(0x32c)],Ms=(_0x59a1a4,_0x3cc291,_0x460f09,_0x3b89db)=>{const _0x1a35ae=_0x1e1deb;for(var _0x39d821=_0x3b89db>0x1?void 0x0:_0x3b89db?$n(_0x3cc291,_0x460f09):_0x3cc291,_0x44deaf=_0x59a1a4[_0x1a35ae(0x426)]-0x1,_0x2c1263;_0x44deaf>=0x0;_0x44deaf--)(_0x2c1263=_0x59a1a4[_0x44deaf])&&(_0x39d821=(_0x3b89db?_0x2c1263(_0x3cc291,_0x460f09,_0x39d821):_0x2c1263(_0x39d821))||_0x39d821);return _0x3b89db&&_0x39d821&&Ln(_0x3cc291,_0x460f09,_0x39d821),_0x39d821;},A=(_0x40e2b2,_0xb0a5cc)=>(_0x5f4f3c,_0x379a1a)=>_0xb0a5cc(_0x5f4f3c,_0x379a1a,_0x40e2b2),fe=(_0x86d639=>(_0x86d639[_0x86d639['IDLE']=0x0]=_0x1e1deb(0x21f),_0x86d639[_0x86d639[_0x1e1deb(0x3ab)]=0x1]='JOINING',_0x86d639[_0x86d639[_0x1e1deb(0x328)]=0x2]=_0x1e1deb(0x328),_0x86d639[_0x86d639[_0x1e1deb(0x3c2)]=0x3]='ONLINE',_0x86d639))(fe||{});let vt=class extends _0x5b9cf1{constructor(_0x4d6248,_0x377495,_0x78867,_0x513102,_0x2072fb,_0x21ed35,_0x5b35ee,_0x193cce,_0x311637){const _0x37e373=_0x1e1deb;super(),l(this,_0x37e373(0x286),new _0x16d05d(0x0)),l(this,'sessionStatus$',this[_0x37e373(0x286)][_0x37e373(0x14e)]()),l(this,_0x37e373(0x141),new _0x365a49()),l(this,_0x37e373(0x19f),this[_0x37e373(0x141)][_0x37e373(0x14e)]()),l(this,'_socket'),l(this,_0x37e373(0x2df)),l(this,_0x37e373(0x2b5)),(this['_unitID']=_0x4d6248,this[_0x37e373(0x12a)]=_0x78867,this[_0x37e373(0x27b)]=_0x513102,this[_0x37e373(0x130)]=_0x2072fb,this[_0x37e373(0x26b)]=_0x21ed35,this[_0x37e373(0x367)]=_0x5b35ee,this[_0x37e373(0x13e)]=_0x193cce,this[_0x37e373(0x37d)]=_0x311637,_0x377495[_0x37e373(0x119)](_0x946afe(this['dispose$']))[_0x37e373(0x3e0)](_0x2fcf70=>{const _0x490c07=_0x37e373;var _0x23eb0b;typeof _0x2fcf70>'u'||(this[_0x490c07(0x34b)]=_0x2fcf70,_0x2fcf70?(this[_0x490c07(0x2f6)](_0x2fcf70),this[_0x490c07(0x2df)]=this[_0x490c07(0x34b)]['message$'][_0x490c07(0x3e0)](_0x83ff33=>{const _0x1fc0be=_0x490c07;_0x83ff33['routeKey']===this[_0x1fc0be(0x2c9)]&&this['_onCombEvent'](_0x83ff33);})):(this['_sessionStatus$'][_0x490c07(0x3cd)](0x2),(_0x23eb0b=this[_0x490c07(0x2df)])==null||_0x23eb0b[_0x490c07(0x376)](),this[_0x490c07(0x2df)]=null));}),this[_0x37e373(0x32e)](this[_0x37e373(0x27b)]['registerOnClose'](()=>{const _0x5998b8=_0x37e373;var _0x534126;(_0x534126=this[_0x5998b8(0x34b)])==null||_0x534126[_0x5998b8(0x409)]({'cmd':I[_0x5998b8(0x3ca)],'data':{'roomID':this[_0x5998b8(0x2c9)]}});})));}get[_0x1e1deb(0x143)](){return this['_sessionStatus$']['getValue']();}['getMemberID'](){const _0x7acdd1=_0x1e1deb;var _0x45092a,_0x54057e;return(_0x54057e=(_0x45092a=this[_0x7acdd1(0x34b)])==null?void 0x0:_0x45092a[_0x7acdd1(0x283)])!=null?_0x54057e:null;}[_0x1e1deb(0x1de)](){const _0xf22381=_0x1e1deb;super[_0xf22381(0x1de)](),this['dispose$'][_0xf22381(0x3cd)](),this['dispose$'][_0xf22381(0x433)]();}['close'](){const _0x4b8f6c=_0x1e1deb;var _0x29327b,_0x4dbe41;(_0x29327b=this[_0x4b8f6c(0x34b)])==null||_0x29327b[_0x4b8f6c(0x409)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x4b8f6c(0x2c9)]}}),this['_event$'][_0x4b8f6c(0x433)](),this[_0x4b8f6c(0x286)][_0x4b8f6c(0x433)](),(_0x4dbe41=this[_0x4b8f6c(0x34b)])==null||_0x4dbe41[_0x4b8f6c(0x2fd)](),this[_0x4b8f6c(0x1de)]();}['_onCombEvent'](_0x367600){const _0x3f2300=_0x1e1deb;_0x367600[_0x3f2300(0x129)]===I[_0x3f2300(0x14f)]?this[_0x3f2300(0x2a9)](_0x367600):_0x367600[_0x3f2300(0x129)]===I[_0x3f2300(0x3c5)]&&this['_onRecvEvent'](_0x367600);}['_joinRoom'](_0x5f24d0){const _0x5a5574=_0x1e1deb;this[_0x5a5574(0x286)][_0x5a5574(0x3cd)](0x1),_0x5f24d0['send']({'cmd':I[_0x5a5574(0x14f)],'routeKey':this[_0x5a5574(0x2c9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5a5574(0x2c9)]}]}});}['_onJoinRoomEvent'](_0x118934){const _0x120080=_0x1e1deb;var _0x484f80;if(_0x118934[_0x120080(0x1d5)]===$t[_0x120080(0x388)]){this[_0x120080(0x130)]['show']({'type':_0x3eac95['Warning'],'content':this[_0x120080(0x367)]['t'](_0x120080(0x40d))}),this[_0x120080(0x286)][_0x120080(0x3cd)](0x2);return;}this[_0x120080(0x286)][_0x120080(0x3cd)](0x3);const _0x4e909d=(_0x484f80=_0x118934[_0x120080(0x265)][_0x120080(0x27f)][this['_unitID']])==null?void 0x0:_0x484f80[_0x120080(0x42c)];_0x4e909d&&_0x4e909d[_0x120080(0x23e)](_0x2f2958=>this[_0x120080(0x13e)]['updateMember'](this[_0x120080(0x2c9)],_0x2f2958));}['_onRecvEvent'](_0x3e54f2){const _0x94b683=_0x1e1deb;try{const _0xff73d2=_0x3e54f2[_0x94b683(0x265)];switch(_0xff73d2['eventID']){case _0x1c415b['USERS_ENTER']:this[_0x94b683(0x104)](_0xff73d2),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x25e)]:this[_0x94b683(0x3e5)](_0xff73d2),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x402)]:this[_0x94b683(0x39b)](),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x422)]:this[_0x94b683(0x12a)]['error'](_0x94b683(0x38e)+JSON[_0x94b683(0x32f)](_0xff73d2)),this['_event$'][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x2e4)]:this[_0x94b683(0x37d)]['onCommentUpdate'](_0xff73d2[_0x94b683(0x265)]),this['_event$'][_0x94b683(0x3cd)](_0xff73d2);break;default:this['_event$'][_0x94b683(0x3cd)](_0xff73d2);}}catch(_0x6b06b){this[_0x94b683(0x12a)][_0x94b683(0x1f8)](_0x6b06b,_0x3e54f2);}}[_0x1e1deb(0x104)](_0x584d33){const _0x4ec899=_0x1e1deb;this[_0x4ec899(0x13e)][_0x4ec899(0x23f)](this[_0x4ec899(0x2c9)],_0x584d33[_0x4ec899(0x265)]);}[_0x1e1deb(0x3e5)](_0x3aac67){const _0xe984d3=_0x1e1deb;this[_0xe984d3(0x13e)][_0xe984d3(0x238)](this[_0xe984d3(0x2c9)],_0x3aac67[_0xe984d3(0x265)][_0xe984d3(0x283)]);}async[_0x1e1deb(0x409)](_0x254998,_0xb16380){const _0xc4f00=_0x1e1deb;if(this[_0xc4f00(0x143)]!==0x3||!this[_0xc4f00(0x34b)])throw new Error(_0xc4f00(0x215));try{_0x254998[_0xc4f00(0x2f8)]===_0x1c415b[_0xc4f00(0x38c)]&&this[_0xc4f00(0x14c)](),this[_0xc4f00(0x34b)][_0xc4f00(0x409)]({'cmd':I[_0xc4f00(0x420)],'routeKey':_0xb16380,'routeType':'','data':_0x254998});}catch(_0x308f59){this[_0xc4f00(0x12a)]['error'](_0x308f59);}}[_0x1e1deb(0x14c)](){const _0x53b5c6=_0x1e1deb;var _0x2cdf00;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x22574f=_0x44de;this[_0x22574f(0x2b5)]=null,this[_0x22574f(0x130)][_0x22574f(0x154)]({'type':_0x3eac95['Error'],'content':this['_localeService']['t'](_0x22574f(0x3d1))});},(_0x2cdf00=this[_0x53b5c6(0x26b)]['getConfig'](Os))!=null?_0x2cdf00:Ds);}[_0x1e1deb(0x39b)](){const _0x46924b=_0x1e1deb;this[_0x46924b(0x2b5)]&&(clearTimeout(this[_0x46924b(0x2b5)]),this['_collaborationTimeoutTimer']=null);}};vt=Ms([A(0x2,_0x5f4df3),A(0x3,_0x1a3f95),A(0x4,_0x49507b),A(0x5,_0x5445a8),A(0x6,_0x441fe2(_0x2cfe85)),A(0x7,_0x441fe2(ne)),A(0x8,_0x441fe2(Ns))],vt);let pe=class extends _0xc94eea{constructor(_0x21b382,_0x57f318,_0x2550fd,_0x1ff16a,_0x15196c,_0x3ce70b){const _0xbf0374=_0x1e1deb;super(),l(this,_0xbf0374(0x3b8),new _0x16d05d(void 0x0)),l(this,_0xbf0374(0x21b),new Map()),l(this,'_status$',new _0x16d05d(0x0)),l(this,_0xbf0374(0x200),this['_status$'][_0xbf0374(0x14e)]()),l(this,_0xbf0374(0x11f),!0x1),l(this,_0xbf0374(0x296)),l(this,_0xbf0374(0x1f6)),l(this,_0xbf0374(0x100)),l(this,'_retryCount',0x0),(this[_0xbf0374(0x432)]=_0x21b382,this['_localeService']=_0x57f318,this['_messageService']=_0x2550fd,this['_logService']=_0x1ff16a,this[_0xbf0374(0x26b)]=_0x15196c,this[_0xbf0374(0x1b9)]=_0x3ce70b);}get[_0x1e1deb(0x34b)](){const _0x5e7a30=_0x1e1deb;return this['_socket$'][_0x5e7a30(0x107)]();}[_0x1e1deb(0x1de)](){const _0x46d5b6=_0x1e1deb;super[_0x46d5b6(0x1de)](),this[_0x46d5b6(0x21b)]['forEach'](_0x560dac=>_0x560dac[_0x46d5b6(0x1de)]()),this[_0x46d5b6(0x21b)]['clear'](),this['_status$']['complete']();}async[_0x1e1deb(0x2c6)](_0x291c56){const _0xea4af6=_0x1e1deb;if(this[_0xea4af6(0x21b)][_0xea4af6(0x1e3)](_0x291c56))return this[_0xea4af6(0x21b)][_0xea4af6(0x10a)](_0x291c56);this['_tryEnsureSocket']();const _0xbc1966=this[_0xea4af6(0x432)]['createInstance'](vt,_0x291c56,this[_0xea4af6(0x3b8)][_0xea4af6(0x14e)]());return this['_sessions'][_0xea4af6(0x394)](_0x291c56,_0xbc1966),_0xbc1966;}[_0x1e1deb(0x2ad)](_0x386b00){const _0x30be5f=_0x1e1deb;var _0x5ba5a6;const _0x5957df=this[_0x30be5f(0x21b)][_0x30be5f(0x10a)](_0x386b00);_0x5957df&&(this[_0x30be5f(0x21b)][_0x30be5f(0x36f)](_0x386b00),_0x5957df[_0x30be5f(0x2fd)]()),this['_sessions'][_0x30be5f(0x1b4)]||(_0x5ba5a6=this['_socket'])==null||_0x5ba5a6[_0x30be5f(0x2fd)]();}[_0x1e1deb(0x211)](){const _0x5f30ea=_0x1e1deb;var _0x20171d;const _0x5d6bc3=(_0x20171d=this[_0x5f30ea(0x26b)][_0x5f30ea(0x35c)](_n))!=null?_0x20171d:un;return this[_0x5f30ea(0x1b9)][_0x5f30ea(0x17f)](_0x5d6bc3);}[_0x1e1deb(0x417)](){const _0x1d345e=_0x1e1deb;try{const _0x767896=this[_0x1d345e(0x211)]();if(_0x767896){const _0x1dc594=_0x767896[_0x1d345e(0x409)];_0x767896[_0x1d345e(0x409)]=_0x23a864=>(this[_0x1d345e(0x3b7)](),_0x1dc594['apply'](_0x767896,[_0x23a864])),_0x767896['message$']['subscribe'](_0x55f1d3=>this[_0x1d345e(0x40f)](_0x767896,_0x55f1d3)),_0x767896[_0x1d345e(0x2bc)][_0x1d345e(0x119)](_0x59ece1(0x1))['subscribe'](_0x485a22=>this[_0x1d345e(0x12a)][_0x1d345e(0x1f8)](_0x1d345e(0x3c4),_0x485a22)),_0x767896[_0x1d345e(0x386)]['pipe'](_0x59ece1(0x1))[_0x1d345e(0x3e0)](()=>{const _0x3836ad=_0x1d345e;this[_0x3836ad(0x187)](_0x767896);}),_0x767896[_0x1d345e(0x34e)][_0x1d345e(0x119)](_0x59ece1(0x1))[_0x1d345e(0x3e0)](_0x5deb2d=>{const _0xe45d5b=_0x1d345e;this[_0xe45d5b(0x12a)][_0xe45d5b(0x1fc)](_0xe45d5b(0x42d),_0xe45d5b(0x3d4),_0x5deb2d),this[_0xe45d5b(0x41f)]();});}}catch(_0x5b005d){this[_0x1d345e(0x12a)][_0x1d345e(0x1f8)](_0x5b005d),this[_0x1d345e(0x41f)]();}}[_0x1e1deb(0x187)](_0x49f32d){const _0x50060f=_0x1e1deb;this[_0x50060f(0x12a)][_0x50060f(0x1fc)](_0x50060f(0x42d),_0x50060f(0x1d1)),_0x49f32d[_0x50060f(0x409)]({'cmd':I[_0x50060f(0x37f)]}),this[_0x50060f(0x3b7)]();}[_0x1e1deb(0x41f)](){const _0x5ad37a=_0x1e1deb;var _0x50f615;this['_status$'][_0x5ad37a(0x3cd)](0x2),this[_0x5ad37a(0x3b8)]['next'](null),this['_clearTimeoutTimer'](),this[_0x5ad37a(0x360)](),this[_0x5ad37a(0x11f)]=!0x1,this['_retryCount']<((_0x50f615=this[_0x5ad37a(0x26b)][_0x5ad37a(0x35c)](Sn))!=null?_0x50f615:pn)?(this[_0x5ad37a(0x34d)](this[_0x5ad37a(0x289)]),this[_0x5ad37a(0x289)]+=0x1):this['_messageService'][_0x5ad37a(0x154)]({'type':_0x3eac95['Error'],'content':this[_0x5ad37a(0x367)]['t'](_0x5ad37a(0x2d5))});}[_0x1e1deb(0x34d)](_0x12bd01){const _0x4f6bfb=_0x1e1deb;var _0x955c7b;const _0x1bc460=((_0x955c7b=this['_configService'][_0x4f6bfb(0x35c)](fn))!=null?_0x955c7b:gn)*0x2**_0x12bd01;this[_0x4f6bfb(0x130)][_0x4f6bfb(0x154)]({'type':_0x3eac95[_0x4f6bfb(0x15d)],'content':this[_0x4f6bfb(0x367)]['t']('session.will-retry')}),this[_0x4f6bfb(0x100)]=setTimeout(()=>{const _0x40b133=_0x4f6bfb;this['_tryEnsureSocket'](),clearTimeout(this[_0x40b133(0x100)]),this['_retryConnectingTimer']=null;},_0x1bc460);}['_rescheduleHeartbeatEvent'](){const _0x457d26=_0x1e1deb;var _0xc226a3;this[_0x457d26(0x360)](),this[_0x457d26(0x296)]=setTimeout(()=>this[_0x457d26(0x3ce)](),(_0xc226a3=this['_configService'][_0x457d26(0x35c)](dn))!=null?_0xc226a3:mn);}[_0x1e1deb(0x3ce)](){const _0x4e6630=_0x1e1deb;this[_0x4e6630(0x34b)][_0x4e6630(0x409)]({'cmd':I[_0x4e6630(0x410)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x557c6d=_0x1e1deb;var _0x33425a;this[_0x557c6d(0x1f6)]=setTimeout(()=>this[_0x557c6d(0x41f)](),(_0x33425a=this[_0x557c6d(0x26b)]['getConfig'](Os))!=null?_0x33425a:Ds);}[_0x1e1deb(0x40f)](_0x27d8cf,_0x3d0b02){const _0x24be46=_0x1e1deb,{cmd:_0x4c9958}=_0x3d0b02;_0x4c9958===I['HELLO']&&!this[_0x24be46(0x11f)]&&(_0x27d8cf[_0x24be46(0x283)]=_0x3d0b02[_0x24be46(0x265)][_0x24be46(0x283)],this[_0x24be46(0x3b8)]['next'](_0x27d8cf),this[_0x24be46(0x2ea)][_0x24be46(0x3cd)](0x3),this[_0x24be46(0x11f)]=!0x0),_0x4c9958===I[_0x24be46(0x410)]&&this[_0x24be46(0x2cd)](),this[_0x24be46(0x3b7)]();}[_0x1e1deb(0x360)](){const _0x558ca8=_0x1e1deb;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x558ca8(0x296)]=null);}[_0x1e1deb(0x2cd)](){const _0x348fe2=_0x1e1deb;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x348fe2(0x1f6)]),this[_0x348fe2(0x1f6)]=null);}};pe=Ms([A(0x0,_0x441fe2(_0x9c5d64)),A(0x1,_0x441fe2(_0x2cfe85)),A(0x2,_0x49507b),A(0x3,_0x5f4df3),A(0x4,_0x5445a8),A(0x5,ws)],pe);var jn=Object[_0x1e1deb(0x158)],xn=Object[_0x1e1deb(0x32c)],Hn=(_0x4ee1e6,_0x4d3d03,_0x22641f,_0x313049)=>{const _0x43e972=_0x1e1deb;for(var _0x2f50a9=_0x313049>0x1?void 0x0:_0x313049?xn(_0x4d3d03,_0x22641f):_0x4d3d03,_0xf408a6=_0x4ee1e6[_0x43e972(0x426)]-0x1,_0x18aa20;_0xf408a6>=0x0;_0xf408a6--)(_0x18aa20=_0x4ee1e6[_0xf408a6])&&(_0x2f50a9=(_0x313049?_0x18aa20(_0x4d3d03,_0x22641f,_0x2f50a9):_0x18aa20(_0x2f50a9))||_0x2f50a9);return _0x313049&&_0x2f50a9&&jn(_0x4d3d03,_0x22641f,_0x2f50a9),_0x2f50a9;},Oe=(_0x376b62,_0x21e249)=>(_0x34fdbe,_0x5bd022)=>_0x21e249(_0x34fdbe,_0x5bd022,_0x376b62);let D=class extends _0xc94eea{constructor(_0x2d93f0,_0x14702e,_0x1bc6a4,_0x2f9cc6,_0x327b3c){const _0x481e0f=_0x1e1deb;super(),l(this,_0x481e0f(0x3e4),new Map()),l(this,_0x481e0f(0x354),new Map()),l(this,_0x481e0f(0x320),!0x1),(this['_configService']=_0x2d93f0,this[_0x481e0f(0x115)]=_0x14702e,this[_0x481e0f(0x27b)]=_0x1bc6a4,this['_localeService']=_0x2f9cc6,this['_revisionService']=_0x327b3c,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x2dcd3e=_0x1e1deb;this[_0x2dcd3e(0x320)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x1e1deb(0x1de)](){const _0x22f33d=_0x1e1deb;this[_0x22f33d(0x2c8)]()[_0x22f33d(0x1e8)](()=>super[_0x22f33d(0x1de)]());}async['loadOfflineData'](_0xa45001){const _0x1c02d7=_0x1e1deb;return this[_0x1c02d7(0x320)]?null:this[_0x1c02d7(0x115)][_0x1c02d7(0x19d)](Qt(_0xa45001));}async['saveOfflineData'](_0x1a3eec,_0x1cbbdc){const _0x38f654=_0x1e1deb;return!!this[_0x38f654(0x115)][_0x38f654(0x28b)](_0x1a3eec,_0x1cbbdc);}[_0x1e1deb(0x2b4)](_0x3cf491,_0x451b62,_0x1de051,_0x58c610){const _0xe9bc76=_0x1e1deb,_0x58a5f1=this[_0xe9bc76(0x2d6)][_0xe9bc76(0x202)](_0x3cf491);this['_cachedData'][_0xe9bc76(0x394)](_0x3cf491,{'unitID':_0x3cf491,'type':_0x451b62,'awaitingChangeset':_0x1de051,'mutations':_0x58c610,'rev':_0x58a5f1}),this[_0xe9bc76(0x354)][_0xe9bc76(0x1e3)](_0x3cf491)||this[_0xe9bc76(0x29b)](_0x3cf491);}['_scheduleSaving'](_0x2055fa){const _0x36e4e6=_0x1e1deb,_0x1d9bf0=this['_getSaveTimeout']();_0x1d9bf0===0x0?this[_0x36e4e6(0x39e)](_0x2055fa):this[_0x36e4e6(0x354)][_0x36e4e6(0x394)](_0x2055fa,setTimeout(()=>this[_0x36e4e6(0x39e)](_0x2055fa),_0x1d9bf0));}['_getSaveTimeout'](){var _0xf61a13;return(_0xf61a13=this['_configService']['getConfig'](vn))!=null?_0xf61a13:In;}['_saveCache'](_0xc62227){const _0x4b3177=_0x1e1deb,_0x2b7597=this[_0x4b3177(0x354)][_0x4b3177(0x10a)](_0xc62227);return _0x2b7597!==void 0x0&&window[_0x4b3177(0x339)](_0x2b7597),this[_0x4b3177(0x115)][_0x4b3177(0x28b)](Qt(_0xc62227),this[_0x4b3177(0x3e4)][_0x4b3177(0x10a)](_0xc62227))[_0x4b3177(0x1e8)](()=>this[_0x4b3177(0x354)][_0x4b3177(0x36f)](_0xc62227));}async[_0x1e1deb(0x2c8)](){const _0x4e168d=_0x1e1deb,_0x12c518=[];this['_saveTaskMap'][_0x4e168d(0x23e)]((_0x4e3e4f,_0x3e6436)=>{const _0x426b8=_0x4e168d;window[_0x426b8(0x339)](_0x4e3e4f),_0x12c518['push'](this[_0x426b8(0x39e)](_0x3e6436)['then'](()=>{const _0x166ce4=_0x426b8;this[_0x166ce4(0x354)]['delete'](_0x3e6436);}));}),await Promise['all'](_0x12c518);}[_0x1e1deb(0x28c)](){const _0x40ab2b=_0x1e1deb;this[_0x40ab2b(0x32e)](this[_0x40ab2b(0x27b)][_0x40ab2b(0x1fe)](()=>{const _0x4e42e4=_0x40ab2b;if(this[_0x4e42e4(0x354)][_0x4e42e4(0x1b4)])return this[_0x4e42e4(0x367)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Hn([Oe(0x0,_0x5445a8),Oe(0x1,_0x2f04ba),Oe(0x2,_0x1a3f95),Oe(0x3,_0x441fe2(_0x2cfe85)),Oe(0x4,_0x441fe2(_0xaeae41))],D);function Qt(_0x3c404b){return'unit-cache-'+_0x3c404b;}const tt=_0x32feec('univer-pro.collaboration-client.single-active-unit-service');var As=(_0x375917=>(_0x375917[_0x375917[_0x1e1deb(0x17a)]=0x0]=_0x1e1deb(0x17a),_0x375917[_0x375917[_0x1e1deb(0x288)]=0x1]=_0x1e1deb(0x288),_0x375917))(As||{});const es=0x7530,ts=_0x1e1deb(0x2c7);class kn extends _0xc94eea{constructor(){const _0x5b6d92=_0x1e1deb;super(),l(this,'_id',_0x4526c0[_0x5b6d92(0x259)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5b6d92(0x219),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x5b6d92(0x24a),new Map()),l(this,_0x5b6d92(0x366),new Map()),this['_init']();}[_0x1e1deb(0x1de)](){const _0x5978a0=_0x1e1deb;super['dispose'](),this[_0x5978a0(0x24a)][_0x5978a0(0x23e)]((_0x5e8bfd,_0x4696e4)=>this['_removeClearOtherTimer'](_0x4696e4)),this[_0x5978a0(0x253)]&&window[_0x5978a0(0x194)](this[_0x5978a0(0x253)]);}[_0x1e1deb(0x2ac)](_0xb470db){const _0x5edb9a=_0x1e1deb;return this['_ensureSubject'](_0xb470db)[_0x5edb9a(0x119)](_0x306a98());}[_0x1e1deb(0x2f9)](_0x1d12c6){const _0x40cad8=_0x1e1deb;this['_selfUnitIDs']['size']===0x0&&this[_0x40cad8(0x109)](),this['_selfUnitIDs'][_0x40cad8(0x11a)](_0x1d12c6),this[_0x40cad8(0x2de)]({'type':0x0,'memberID':this[_0x40cad8(0x1e2)],'unitIDs':[_0x1d12c6],'isForwarded':!0x1});}['disposeUnit'](_0x5c9fcf){const _0x599933=_0x1e1deb;this[_0x599933(0x2b0)][_0x599933(0x36f)](_0x5c9fcf),this[_0x599933(0x2b0)][_0x599933(0x1b4)]===0x0&&this['_heartbeatTimer']&&window[_0x599933(0x194)](this[_0x599933(0x253)]);}['_init'](){const _0x1fb32c=_0x1e1deb;this[_0x1fb32c(0x32e)](_0x4259e5(_0x1fd07d(window,_0x1fb32c(0x208))[_0x1fb32c(0x3e0)](_0x4d0a2a=>{const _0x838156=_0x1fb32c;if(_0x4d0a2a['key']!==ts||!_0x4d0a2a[_0x838156(0x256)])return;const _0x3478e9=JSON[_0x838156(0x1e1)](_0x4d0a2a[_0x838156(0x256)]);this[_0x838156(0x261)](_0x3478e9);}))),window[_0x1fb32c(0x397)](_0x1fb32c(0x3f4),()=>this['_send']({'type':0x1,'memberID':this[_0x1fb32c(0x1e2)],'unitIDs':Array[_0x1fb32c(0x427)](this[_0x1fb32c(0x2b0)])}));}[_0x1e1deb(0x261)](_0x415aad){const _0x3b7d50=_0x1e1deb;switch(_0x415aad[_0x3b7d50(0x2cc)]){case 0x0:this['_handleJoinEvent'](_0x415aad);break;case 0x1:this[_0x3b7d50(0x1bd)](_0x415aad);break;case 0x2:this['_handleHeartbeatEvent'](_0x415aad);break;}}[_0x1e1deb(0x11d)](_0x39154f){const _0x572c5d=_0x1e1deb,{unitIDs:_0x110c48,memberID:_0x3d3d22,isForwarded:_0x6017ca}=_0x39154f;_0x110c48[_0x572c5d(0x23e)](_0x19754e=>{const _0x54af23=_0x572c5d;if(!_0x6017ca&&this['_unitOnClients']['has'](_0x19754e)&&this[_0x54af23(0x1b2)](_0x19754e)['next'](0x1),!this[_0x54af23(0x219)][_0x54af23(0x1e3)](_0x19754e)||!this[_0x54af23(0x219)]['get'](_0x19754e)[_0x54af23(0x1e3)](_0x3d3d22)){const _0x722057=this[_0x54af23(0x219)][_0x54af23(0x10a)](_0x19754e)||new Set();_0x722057[_0x54af23(0x11a)](_0x3d3d22),this['_unitOnClients']['set'](_0x19754e,_0x722057),this[_0x54af23(0x18e)](_0x3d3d22);}}),_0x6017ca||this[_0x572c5d(0x2de)]({'type':0x0,'memberID':this[_0x572c5d(0x1e2)],'unitIDs':[...this[_0x572c5d(0x2b0)]],'isForwarded':!0x0});}[_0x1e1deb(0x18e)](_0x2337db){const _0x140413=_0x1e1deb;this['_removeClearOtherTimer'](_0x2337db);const _0x446163=window[_0x140413(0x245)](()=>{const _0x3725f1=_0x140413;this[_0x3725f1(0x219)][_0x3725f1(0x23e)](_0x1934cb=>{const _0x3f68fa=_0x3725f1;_0x1934cb[_0x3f68fa(0x36f)](_0x2337db);});},es*0x2);this[_0x140413(0x24a)][_0x140413(0x394)](_0x2337db,_0x446163);}['_removeClearOtherTimer'](_0x47934e){const _0x4129f4=_0x1e1deb;if(this['_clearOtherTimers'][_0x4129f4(0x1e3)](_0x47934e)){const _0x1a57b0=this[_0x4129f4(0x24a)][_0x4129f4(0x10a)](_0x47934e);_0x1a57b0&&window['clearTimeout'](_0x1a57b0),this[_0x4129f4(0x24a)][_0x4129f4(0x394)](_0x47934e,null);}}['_handleLeaveEvent'](_0x221a8d){const _0x228b70=_0x1e1deb,{memberID:_0x5cdf3f,unitIDs:_0x3cb7a9}=_0x221a8d;_0x3cb7a9['forEach'](_0x15f865=>{const _0x370055=_0x44de;var _0x5bcf40;const _0x4d5c1f=this['_unitOnClients'][_0x370055(0x10a)](_0x15f865);_0x4d5c1f&&(_0x4d5c1f['delete'](_0x5cdf3f),(_0x5bcf40=this[_0x370055(0x1b2)](_0x15f865))==null||_0x5bcf40[_0x370055(0x3cd)](_0x4d5c1f['size']===0x0?0x0:0x1));}),this[_0x228b70(0x301)](_0x5cdf3f);}[_0x1e1deb(0x277)](_0x1c78c8){const _0x27b36a=_0x1e1deb;this[_0x27b36a(0x18e)](_0x1c78c8[_0x27b36a(0x283)]);}[_0x1e1deb(0x2de)](_0x3bb720){const _0x6dc241=_0x1e1deb;localStorage[_0x6dc241(0x28b)](ts,JSON[_0x6dc241(0x32f)](_0x3bb720));}[_0x1e1deb(0x109)](){const _0xbdc7f9=_0x1e1deb;this[_0xbdc7f9(0x253)]=window[_0xbdc7f9(0x3ef)](()=>{const _0x115c54=_0xbdc7f9;this[_0x115c54(0x2de)]({'type':0x2,'memberID':this[_0x115c54(0x1e2)]});},es);}[_0x1e1deb(0x1b2)](_0x302c38){const _0x533489=_0x1e1deb;return this['_unitStatus'][_0x533489(0x1e3)](_0x302c38)||this[_0x533489(0x366)][_0x533489(0x394)](_0x302c38,new _0x16d05d(0x0)),this[_0x533489(0x366)]['get'](_0x302c38);}}var Fn=Object['defineProperty'],Vn=Object[_0x1e1deb(0x32c)],Bn=(_0xd78208,_0xc6466b,_0x3cd3d6,_0x211814)=>{const _0xfa355f=_0x1e1deb;for(var _0x39a585=_0x211814>0x1?void 0x0:_0x211814?Vn(_0xc6466b,_0x3cd3d6):_0xc6466b,_0x186c48=_0xd78208[_0xfa355f(0x426)]-0x1,_0x621efa;_0x186c48>=0x0;_0x186c48--)(_0x621efa=_0xd78208[_0x186c48])&&(_0x39a585=(_0x211814?_0x621efa(_0xc6466b,_0x3cd3d6,_0x39a585):_0x621efa(_0x39a585))||_0x39a585);return _0x211814&&_0x39a585&&Fn(_0xc6466b,_0x3cd3d6,_0x39a585),_0x39a585;},ss=(_0xf9a308,_0x56c1a4)=>(_0x1a4b6e,_0x441d02)=>_0x56c1a4(_0x1a4b6e,_0x441d02,_0xf9a308);let Je=class{constructor(_0x25138b,_0x2d7fcc){const _0x2f5a73=_0x1e1deb;this[_0x2f5a73(0x432)]=_0x25138b,this[_0x2f5a73(0x258)]=_0x2d7fcc;}[_0x1e1deb(0x218)](_0x1fc50e){const _0x5ecf6c=_0x1e1deb;this[_0x5ecf6c(0x361)](_0x1fc50e),this[_0x5ecf6c(0x323)](_0x1fc50e);}['transformRemoteChangeset'](_0x1a2fdd){const _0x50f1d0=_0x1e1deb,_0x18641d=this[_0x50f1d0(0x432)][_0x50f1d0(0x10a)](_0x3c7fed),{redoCache:_0x277a98}=_0x18641d[_0x50f1d0(0x1cc)]();if(_0x277a98['length']===0x0)return _0x1a2fdd;let _0x5d7099=_0x4526c0['deepClone'](_0x1a2fdd[_0x50f1d0(0x357)][0x0]);for(let _0x3a6de5=0x0;_0x3a6de5<_0x277a98[_0x50f1d0(0x426)];_0x3a6de5++){const _0x3097ce={'id':'doc.mutation.rich-text-editing','params':{..._0x277a98[_0x3a6de5]}},_0x1aca7d=this['_transformService'][_0x50f1d0(0x2d3)](_0x5d7099,_0x3097ce,!0x1);if(_0x1d42ec(_0x1aca7d))throw _0x1aca7d[_0x50f1d0(0x1f8)];_0x5d7099=_0x1aca7d[_0x50f1d0(0x11b)];}return{..._0x4526c0[_0x50f1d0(0x152)](_0x1a2fdd),'mutations':[_0x5d7099]};}[_0x1e1deb(0x361)](_0xd97128){const _0x1068e0=_0x1e1deb,_0x32e2a6=this[_0x1068e0(0x432)][_0x1068e0(0x10a)](_0x3c7fed),{undoCache:_0x2bf140,redoCache:_0x21dde7}=_0x32e2a6[_0x1068e0(0x1cc)]();if(_0x2bf140[_0x1068e0(0x426)]===0x0||_0x21dde7[_0x1068e0(0x426)]===0x0)return;const _0x1ffcdf=[],_0x5343b7=[];let _0x1af9bd=_0x4526c0[_0x1068e0(0x152)](_0xd97128['mutations'][0x0]),_0x2cd462=_0x4526c0[_0x1068e0(0x152)](_0xd97128[_0x1068e0(0x357)][0x0]);for(let _0x1ec60b=_0x2bf140[_0x1068e0(0x426)]-0x1;_0x1ec60b>=0x0;_0x1ec60b--){const _0x105321={'id':_0x1068e0(0x412),'params':{..._0x2bf140[_0x1ec60b]}},_0x31a7b9={'id':_0x1068e0(0x412),'params':{..._0x21dde7[_0x1ec60b]}},_0x36ce86=this[_0x1068e0(0x258)][_0x1068e0(0x2d3)](_0x1af9bd,_0x105321,!0x1),_0x260dbd=this[_0x1068e0(0x258)][_0x1068e0(0x2d3)](_0x2cd462,_0x31a7b9,!0x1);if(_0x1d42ec(_0x36ce86))throw _0x36ce86[_0x1068e0(0x1f8)];if(_0x1d42ec(_0x260dbd))throw _0x260dbd[_0x1068e0(0x1f8)];_0x1ffcdf[_0x1068e0(0x2b9)](_0x36ce86['m2Prime'][_0x1068e0(0x42b)]),_0x5343b7[_0x1068e0(0x2b9)](_0x260dbd[_0x1068e0(0x2fa)][_0x1068e0(0x42b)]),_0x1af9bd=_0x36ce86['m1Prime'],_0x2cd462=_0x260dbd[_0x1068e0(0x11b)];}_0x32e2a6['setUndoRedoMutationParamsCache']({'undoCache':_0x1ffcdf,'redoCache':_0x5343b7});}['_transformPreviousActiveRange'](_0x117136){const _0x88b7e8=_0x1e1deb,_0x1603ea=this[_0x88b7e8(0x432)][_0x88b7e8(0x10a)](_0x3c7fed),_0x882f18=_0x1603ea[_0x88b7e8(0x3e2)]();if(_0x882f18==null)return;const _0x440087=[{'id':_0x88b7e8(0x412),'params':{'unitId':_0x117136[_0x88b7e8(0x370)],'actions':null,'textRanges':[_0x882f18]}}],_0x35304a=this[_0x88b7e8(0x258)][_0x88b7e8(0x3a3)](_0x117136,_0x440087);if(!_0x4f645f(_0x35304a))throw _0x35304a[_0x88b7e8(0x1f8)];const _0x5de1c9=_0x35304a[_0x88b7e8(0x2fa)][0x0][_0x88b7e8(0x42b)][_0x88b7e8(0x203)];Array[_0x88b7e8(0x117)](_0x5de1c9)&&_0x5de1c9[_0x88b7e8(0x426)]&&_0x1603ea['setActiveRange'](_0x5de1c9[0x0]);}};Je=Bn([ss(0x0,_0x441fe2(_0x9c5d64)),ss(0x1,_0x1e0f5c)],Je);var Wn=Object[_0x1e1deb(0x158)],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x388f04,_0x3e04a6,_0x29c922,_0x65f95)=>{for(var _0x35aaab=_0x65f95>0x1?void 0x0:_0x65f95?Gn(_0x3e04a6,_0x29c922):_0x3e04a6,_0x313143=_0x388f04['length']-0x1,_0x20110c;_0x313143>=0x0;_0x313143--)(_0x20110c=_0x388f04[_0x313143])&&(_0x35aaab=(_0x65f95?_0x20110c(_0x3e04a6,_0x29c922,_0x35aaab):_0x20110c(_0x35aaab))||_0x35aaab);return _0x65f95&&_0x35aaab&&Wn(_0x3e04a6,_0x29c922,_0x35aaab),_0x35aaab;},is=(_0x55ece1,_0x518a46)=>(_0x54d57f,_0x4d6be6)=>_0x518a46(_0x54d57f,_0x4d6be6,_0x55ece1);let ze=class{constructor(_0x414078,_0x327a78){const _0x45ccce=_0x1e1deb;this[_0x45ccce(0x432)]=_0x414078,this[_0x45ccce(0x258)]=_0x327a78;}[_0x1e1deb(0x137)](_0x390a97){const _0x5d5e14=_0x1e1deb;var _0x31119b;const _0x229f0c=this[_0x5d5e14(0x432)][_0x5d5e14(0x10a)](_0x490704),_0x24e168=(_0x31119b=_0x229f0c[_0x5d5e14(0x31f)]())!=null?_0x31119b:[],_0x1980de=_0x24e168==null?void 0x0:_0x24e168[_0x5d5e14(0x230)](_0x14d063);if(_0x1980de[_0x5d5e14(0x426)]===0x0)return;const _0x212c1c=[{'id':_0x5d5e14(0x412),'params':{'unitId':_0x390a97[_0x5d5e14(0x370)],'actions':null,'textRanges':_0x1980de}}],_0x109915=this['_transformService']['transformMutationsWithChangeset'](_0x390a97,_0x212c1c);if(!_0x4f645f(_0x109915))throw _0x109915[_0x5d5e14(0x1f8)];const _0x59f8fc=_0x109915[_0x5d5e14(0x2fa)][0x0][_0x5d5e14(0x42b)]['textRanges'];Array[_0x5d5e14(0x117)](_0x59f8fc)&&_0x59f8fc[_0x5d5e14(0x426)]&&_0x229f0c[_0x5d5e14(0x273)](_0x59f8fc,!0x1);}};ze=Yn([is(0x0,_0x441fe2(_0x9c5d64)),is(0x1,_0x1e0f5c)],ze);function ys(_0x1db956){const _0x295dbe=_0x1e1deb;let _0x14cf0e='';for(const _0x231ded of _0x1db956){const {startOffset:_0x15b5f1,endOffset:_0x275c66,isActive:_0x44d914}=_0x231ded;_0x14cf0e[_0x295dbe(0x426)]&&(_0x14cf0e+=','),_0x14cf0e+=_0x15b5f1+':'+_0x275c66+':'+(_0x44d914?'1':'0');}return _0x14cf0e;}function Kn(_0x4a174c){const _0x3d6640=_0x1e1deb,_0x4e39b4=_0x4a174c['split'](','),_0x252d03=[];for(const _0x58c431 of _0x4e39b4){const [_0x1766c6,_0x23f45d,_0x44c456]=_0x58c431[_0x3d6640(0x2a1)](':');_0x252d03[_0x3d6640(0x39d)]({'startOffset':Number(_0x1766c6),'endOffset':Number(_0x23f45d),'collapsed':_0x1766c6===_0x23f45d,'isActive':_0x44c456==='1'});}return _0x252d03['some'](_0x287abc=>_0x287abc['isActive'])||(_0x252d03[0x0][_0x3d6640(0x3d9)]=!0x0),_0x252d03;}class jt extends _0x5b9cf1{constructor(){const _0x4d48f3=_0x1e1deb;super(...arguments),l(this,_0x4d48f3(0x26e),new _0x16d05d(null)),l(this,'collabCursorState$',this[_0x4d48f3(0x26e)][_0x4d48f3(0x14e)]());}[_0x1e1deb(0x40e)](_0x58bfc0){const _0x18781e=_0x1e1deb,{unitID:_0xa22bf3,memberID:_0x28de4a,textRanges:_0x39b7}=_0x58bfc0,_0x3a99ff=ys(_0x39b7),_0x4c2694={'unitID':_0xa22bf3,'memberID':_0x28de4a,'selection':_0x3a99ff};this[_0x18781e(0x26e)]['next'](_0x4c2694);}}var Xn=Object['defineProperty'],Jn=Object['getOwnPropertyDescriptor'],zn=(_0x967ada,_0x4842b9,_0x7a5738,_0x3c57ee)=>{const _0x5df762=_0x1e1deb;for(var _0x5613d0=_0x3c57ee>0x1?void 0x0:_0x3c57ee?Jn(_0x4842b9,_0x7a5738):_0x4842b9,_0x2b06a9=_0x967ada[_0x5df762(0x426)]-0x1,_0x5ca6d9;_0x2b06a9>=0x0;_0x2b06a9--)(_0x5ca6d9=_0x967ada[_0x2b06a9])&&(_0x5613d0=(_0x3c57ee?_0x5ca6d9(_0x4842b9,_0x7a5738,_0x5613d0):_0x5ca6d9(_0x5613d0))||_0x5613d0);return _0x3c57ee&&_0x5613d0&&Xn(_0x4842b9,_0x7a5738,_0x5613d0),_0x5613d0;},ns=(_0x99a6da,_0x5409f6)=>(_0x3366dd,_0xd1a7cc)=>_0x5409f6(_0x3366dd,_0xd1a7cc,_0x99a6da);function _0x44de(_0x18dc17,_0x3abca2){const _0x48fbad=_0x48fb();return _0x44de=function(_0x44de12,_0x7cde9b){_0x44de12=_0x44de12-0xfa;let _0xe2f919=_0x48fbad[_0x44de12];return _0xe2f919;},_0x44de(_0x18dc17,_0x3abca2);}function qn(_0x1f6084){const _0x40f5bb=_0x1e1deb,{unitID:_0x151892,mutations:_0x2a3d0b}=_0x1f6084;return{'unitId':_0x151892,'subUnitId':_0x2a3d0b[0x0][_0x40f5bb(0x42b)][_0x40f5bb(0x3b0)]};}let qe=class{constructor(_0x45f6b2,_0x5cf77d){const _0x25d535=_0x1e1deb;this['_injector']=_0x45f6b2,this[_0x25d535(0x258)]=_0x5cf77d;}[_0x1e1deb(0x137)](_0x1879c2){const _0x3d438e=_0x1e1deb;var _0x259013,_0x49d3fa,_0x3604d6;const _0x50b2b7=this[_0x3d438e(0x432)][_0x3d438e(0x10a)](_0x402922),{unitId:_0x1dfef8,subUnitId:_0x5e8641}=qn(_0x1879c2),_0x32b3fb=_0x50b2b7[_0x3d438e(0x160)](_0x1dfef8)[_0x3d438e(0x310)]();if(_0x32b3fb[_0x3d438e(0x426)]===0x0||!_0x1dfef8||!_0x5e8641)return;const _0x1b3167=[{'id':_0x37d621['id'],'params':{'unitId':_0x1dfef8,'subUnitId':_0x5e8641,'selections':_0x4526c0[_0x3d438e(0x152)](_0x32b3fb)}}],_0x120e92=this[_0x3d438e(0x258)]['transformMutationsWithChangeset'](_0x1879c2,_0x1b3167);if(!_0x4f645f(_0x120e92))throw _0x120e92[_0x3d438e(0x1f8)];const _0xf95e11=(_0x3604d6=(_0x49d3fa=(_0x259013=_0x120e92[_0x3d438e(0x2fa)][0x0])==null?void 0x0:_0x259013['params'])==null?void 0x0:_0x49d3fa[_0x3d438e(0x287)])!=null?_0x3604d6:_0x32b3fb;Array[_0x3d438e(0x117)](_0xf95e11)&&_0xf95e11['length']&&this['_injector']['get'](_0x9845f)[_0x3d438e(0x3e7)](_0x37d621['id'],{'unitId':_0x1dfef8,'subUnitId':_0x5e8641,'selections':_0xf95e11});}};qe=zn([ns(0x0,_0x441fe2(_0x9c5d64)),ns(0x1,_0x1e0f5c)],qe);const Zn=new Set([_0x447932['id']]);function rs(_0x24d909,_0x455ae4,_0x465880,_0x553ff0,_0x2403ae){const _0x175b34=_0x1e1deb;var _0x47629f,_0x10d79e,_0x32b3ae,_0x13b184;const _0x22e1de=[];for(const _0x61964c of _0x24d909)if(Zn[_0x175b34(0x1e3)](_0x61964c['id'])){if(_0x22e1de[_0x175b34(0x426)]>0x0)break;_0x22e1de[_0x175b34(0x39d)](_0x61964c);break;}else _0x22e1de[_0x175b34(0x39d)](_0x61964c);const _0x463ad3=(_0x10d79e=(_0x47629f=_0x2403ae[_0x175b34(0x20c)]())==null?void 0x0:_0x47629f['userID'])!=null?_0x10d79e:_0x175b34(0x2d9),_0x57c117=(_0x13b184=(_0x32b3ae=_0x2403ae[_0x175b34(0x20c)]())==null?void 0x0:_0x32b3ae[_0x175b34(0x283)])!=null?_0x13b184:'unknown';return{'changeset':{'unitID':_0x455ae4,'type':_0x4d8b7d(_0x465880['getUnitType'](_0x455ae4)),'baseRev':_0x553ff0[_0x175b34(0x202)](_0x455ae4),'revision':0x0,'userID':_0x463ad3,'memberID':_0x57c117,'mutations':_0x22e1de},'pendingMutations':_0x24d909[_0x175b34(0x1d7)](_0x22e1de[_0x175b34(0x426)])};}function Qn(_0x3dbc47,_0x21f4c1,_0x47e06b,_0xce29bc,_0x4bc00b){const _0x4bc76e=_0x1e1deb;var _0x3321fa,_0x13e1c2,_0x58d6f0,_0x48ec35;const _0x201d36=[_0x3dbc47['reduce']((_0x1e6de2,_0x241d77)=>{const _0x56ce39=_0x44de;var _0x50c451;const {id:_0x59ae12}=_0x1e6de2,{id:_0x4a024a,type:_0x29c5c3}=_0x241d77,_0x29d323=(_0x50c451=_0x1e6de2[_0x56ce39(0x42b)])!=null?_0x50c451:{'actions':null},_0x5c5fcb=_0x241d77['params'];if(_0x59ae12&&_0x59ae12!==_0x4a024a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x59ae12+_0x56ce39(0x106)+_0x4a024a+'.');return{..._0x1e6de2,'id':_0x4a024a,'type':_0x29c5c3,'params':{'unitId':_0x5c5fcb[_0x56ce39(0x439)],'textRanges':_0x5c5fcb[_0x56ce39(0x203)],'actions':_0x564a09[_0x56ce39(0x381)](_0x29d323[_0x56ce39(0x15f)],_0x5c5fcb[_0x56ce39(0x15f)])}};},{})],_0x210753=(_0x13e1c2=(_0x3321fa=_0x4bc00b[_0x4bc76e(0x20c)]())==null?void 0x0:_0x3321fa[_0x4bc76e(0x314)])!=null?_0x13e1c2:'unknown',_0x37bceb=(_0x48ec35=(_0x58d6f0=_0x4bc00b[_0x4bc76e(0x20c)]())==null?void 0x0:_0x58d6f0[_0x4bc76e(0x283)])!=null?_0x48ec35:_0x4bc76e(0x2d9);return{'changeset':{'unitID':_0x21f4c1,'type':_0x4d8b7d(_0x47e06b[_0x4bc76e(0x182)](_0x21f4c1)),'baseRev':_0xce29bc['getCurrentRevForDocument'](_0x21f4c1),'revision':0x0,'userID':_0x210753,'memberID':_0x37bceb,'mutations':_0x201d36},'pendingMutations':[]};}const er={'id':_0x4bcf83['id'],'type':_0x5cd9c4[_0x1e1deb(0x173)],'params':{}};var tr=Object[_0x1e1deb(0x158)],sr=Object['getOwnPropertyDescriptor'],ce=(_0x4d15f3,_0x4ac7d8,_0x5be020,_0xe34def)=>{const _0x28c052=_0x1e1deb;for(var _0x3beb5e=_0xe34def>0x1?void 0x0:_0xe34def?sr(_0x4ac7d8,_0x5be020):_0x4ac7d8,_0x1330b4=_0x4d15f3[_0x28c052(0x426)]-0x1,_0x38d1a0;_0x1330b4>=0x0;_0x1330b4--)(_0x38d1a0=_0x4d15f3[_0x1330b4])&&(_0x3beb5e=(_0xe34def?_0x38d1a0(_0x4ac7d8,_0x5be020,_0x3beb5e):_0x38d1a0(_0x3beb5e))||_0x3beb5e);return _0xe34def&&_0x3beb5e&&tr(_0x4ac7d8,_0x5be020,_0x3beb5e),_0x3beb5e;},f=(_0x2997db,_0x1476bf)=>(_0x1fd000,_0x1f9242)=>_0x1476bf(_0x1fd000,_0x1f9242,_0x2997db),P=(_0x2e88a5=>(_0x2e88a5['NOT_COLLAB']=_0x1e1deb(0x19a),_0x2e88a5[_0x1e1deb(0x23d)]='synced',_0x2e88a5['PENDING']=_0x1e1deb(0x3f2),_0x2e88a5['AWAITING']=_0x1e1deb(0x3a2),_0x2e88a5[_0x1e1deb(0x1b7)]=_0x1e1deb(0x1f9),_0x2e88a5['FETCH_MISS']='fetch_missing',_0x2e88a5[_0x1e1deb(0x2dc)]=_0x1e1deb(0x142),_0x2e88a5[_0x1e1deb(0x328)]=_0x1e1deb(0x291),_0x2e88a5))(P||{});class he{constructor(_0xfb08,_0xd5fdd2,_0x17e028,_0x5bdeee,_0x266644,_0x1709d5,_0x4f8502,_0x2d7435,_0x13afc7){const _0x34351a=_0x1e1deb;l(this,_0x34351a(0x332),null),l(this,_0x34351a(0x23c),[]),(this['unitID']=_0xfb08,this[_0x34351a(0x2cc)]=_0xd5fdd2,this['_handler']=_0x266644,this[_0x34351a(0x1fb)]=_0x1709d5,this[_0x34351a(0x1d0)]=_0x4f8502,this[_0x34351a(0x2d6)]=_0x2d7435,this[_0x34351a(0x1f2)]=_0x13afc7,this[_0x34351a(0x332)]=_0x17e028,this[_0x34351a(0x23c)]=_0x5bdeee);}[_0x1e1deb(0x319)](_0x45ec3c){const _0x2a6483=_0x1e1deb,_0x4e044a=this[_0x2a6483(0x2d6)][_0x2a6483(0x202)](this[_0x2a6483(0x370)]);return _0x45ec3c[_0x2a6483(0x126)]>_0x4e044a+0x1?(this['_handler'][_0x2a6483(0x34f)]({'from':_0x4e044a,'to':_0x45ec3c[_0x2a6483(0x126)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x22bcee){const _0x4e286e=_0x1e1deb;this[_0x4e286e(0x1d0)][_0x4e286e(0x2f2)](this[_0x4e286e(0x370)],_0x22bcee);}['_transformSelections'](_0x2cd441){const _0x36f245=_0x1e1deb;var _0xaf70f9,_0x19cb46;(_0x19cb46=(_0xaf70f9=this['_handler'])['onTransformSelections'])==null||_0x19cb46[_0x36f245(0x2fb)](_0xaf70f9,_0x2cd441);}[_0x1e1deb(0x3c3)](_0x5409d9){const _0x403e2e=_0x1e1deb;var _0xe9bb97,_0x27ba34;return(_0x27ba34=(_0xe9bb97=this[_0x403e2e(0x373)])['onTransformIME'])==null?void 0x0:_0x27ba34[_0x403e2e(0x2fb)](_0xe9bb97,_0x5409d9);}[_0x1e1deb(0x3cb)](_0xfd3fee){const _0x51b7fa=_0x1e1deb;var _0x44a0f6,_0x3d2708,_0x23a5b4;return(_0x23a5b4=(_0x3d2708=(_0x44a0f6=this[_0x51b7fa(0x373)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3d2708[_0x51b7fa(0x2fb)](_0x44a0f6,_0xfd3fee))!=null?_0x23a5b4:_0xfd3fee;}[_0x1e1deb(0x407)](_0x510d3b){const _0x52a0d8=_0x1e1deb;var _0x280155,_0x235f07;if(this[_0x52a0d8(0x2cc)]===x['UNIVER_DOC']){const {unitID:_0x5657cc,mutations:_0x33b2c7,memberID:_0x516fb6}=_0x510d3b,_0x495275=_0x33b2c7[0x0][_0x52a0d8(0x42b)][_0x52a0d8(0x203)];Array[_0x52a0d8(0x117)](_0x495275)&&_0x495275[_0x52a0d8(0x426)]>0x0&&((_0x235f07=(_0x280155=this[_0x52a0d8(0x373)])[_0x52a0d8(0x3ff)])==null||_0x235f07[_0x52a0d8(0x2fb)](_0x280155,{'unitID':_0x5657cc,'memberID':_0x516fb6,'textRanges':_0x495275}));}}['_updateLocalCache'](){const _0xdac977=_0x1e1deb;this[_0xdac977(0x1f2)][_0xdac977(0x2b4)](this[_0xdac977(0x370)],this[_0xdac977(0x2cc)],this[_0xdac977(0x332)],this['_pendingMutations']);}[_0x1e1deb(0x149)](){const _0x8ea5cd=_0x1e1deb;return this['_revisionService'][_0x8ea5cd(0x202)](this[_0x8ea5cd(0x370)]);}[_0x1e1deb(0x22b)](){const _0x1d435c=_0x1e1deb;this['_revisionService']['incrementRevForDocument'](this[_0x1d435c(0x370)]);}[_0x1e1deb(0x1ac)](_0x15165c){const _0x38bedf=_0x1e1deb;var _0x3384cc;const _0x524d8e=this[_0x38bedf(0x3cb)](_0x15165c),_0x29c7cb=_0x35dc8f(_0x524d8e[_0x38bedf(0x357)],this[_0x38bedf(0x1fb)],{'fromCollab':!0x0});if(!_0x29c7cb['result'])throw _0x29c7cb[_0x38bedf(0x1f8)]instanceof Error?_0x29c7cb['error']:new Error((_0x3384cc=_0x29c7cb['error'])!=null?_0x3384cc:_0x38bedf(0x12c));this[_0x38bedf(0x3c3)](_0x524d8e),this[_0x38bedf(0x18d)](_0x15165c),this[_0x38bedf(0x3f8)](_0x524d8e),this['_syncEditingCollabCursor'](_0x524d8e),this[_0x38bedf(0x22b)]();}}let ye=class extends he{constructor(_0x24cd87,_0x2b22ae,_0x376e41,_0x95b44b,_0x5c4581,_0x3cedcb,_0x1a4a24,_0x4a7712,_0x2ba433,_0x65e7d6){const _0x4b4faf=_0x1e1deb;super(_0x24cd87,_0x2b22ae,null,[],_0x376e41,_0x4a7712,_0x1a4a24,_0x95b44b,_0x5c4581),l(this,_0x4b4faf(0x356),_0x4b4faf(0x368)),(this[_0x4b4faf(0x432)]=_0x3cedcb,this['_logService']=_0x2ba433,this[_0x4b4faf(0x258)]=_0x65e7d6);}[_0x1e1deb(0x374)](_0x5bfc8f){const _0x3ac634=_0x1e1deb,_0x2663b6=this[_0x3ac634(0x432)][_0x3ac634(0x116)](G,this['unitID'],this[_0x3ac634(0x2cc)],[_0x5bfc8f],this[_0x3ac634(0x373)]);return _0x2663b6[_0x3ac634(0x198)](),_0x2663b6[_0x3ac634(0x32b)](),_0x2663b6;}[_0x1e1deb(0x25b)](_0x3e0cfa){const _0x243edf=_0x1e1deb;if(this['_checkMissing'](_0x3e0cfa))return this[_0x243edf(0x432)][_0x243edf(0x116)](K,this[_0x243edf(0x370)],this[_0x243edf(0x2cc)],null,[],null,[_0x3e0cfa],this[_0x243edf(0x373)]);try{const _0x8f2a5=this[_0x243edf(0x258)]['transformMutationsWithChangeset'](_0x3e0cfa,[er]);if(_0x4f645f(_0x8f2a5)){const {c1Prime:_0x15e3c0}=_0x8f2a5;return this[_0x243edf(0x1ac)](_0x15e3c0),this;}throw _0x8f2a5['error'];}catch(_0x3d7b66){return this[_0x243edf(0x12a)][_0x243edf(0x1f8)](_0x3d7b66),this[_0x243edf(0x359)](!0x1);}}[_0x1e1deb(0x359)](_0x39e4af){const _0x141d62=_0x1e1deb;return this['_injector'][_0x141d62(0x116)](Z,this[_0x141d62(0x370)],this[_0x141d62(0x2cc)],null,[],this[_0x141d62(0x373)],_0x39e4af);}[_0x1e1deb(0x379)](){const _0x45fc26=_0x1e1deb;throw new Error(_0x45fc26(0x35a));}[_0x1e1deb(0x37e)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x34a200=_0x1e1deb;return this[_0x34a200(0x432)][_0x34a200(0x116)](Q,this[_0x34a200(0x370)],this[_0x34a200(0x2cc)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x1e1deb(0x372)](){const _0x445890=_0x1e1deb;throw new Error(_0x445890(0x32a));}};ye=ce([f(0x3,_0x441fe2(_0xaeae41)),f(0x4,_0x441fe2(D)),f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x416533),f(0x7,_0x9845f),f(0x8,_0x5f4df3),f(0x9,_0x1e0f5c)],ye);let G=class extends he{constructor(_0x311956,_0x4bafe7,_0x3b9a93,_0x23022b,_0x5ac925,_0x595466,_0x20c521,_0x217292,_0x1409eb,_0x1e7a60,_0x4c0c30,_0x1d0fa5,_0x2e44cf,_0x13c5dd){const _0x2eb3f5=_0x1e1deb;super(_0x311956,_0x4bafe7,null,_0x3b9a93,_0x23022b,_0x1e7a60,_0x13c5dd,_0x595466,_0x20c521),l(this,'status','pending'),l(this,'_scheduleTimestamp',null),l(this,_0x2eb3f5(0x266),null),(this[_0x2eb3f5(0x432)]=_0x5ac925,this[_0x2eb3f5(0x13e)]=_0x217292,this[_0x2eb3f5(0x12a)]=_0x1409eb,this[_0x2eb3f5(0x26b)]=_0x4c0c30,this[_0x2eb3f5(0x258)]=_0x1d0fa5,this['_univerInstanceService']=_0x2e44cf);}[_0x1e1deb(0x374)](_0x300643){const _0x1669a8=_0x1e1deb;return this[_0x1669a8(0x23c)][_0x1669a8(0x39d)](_0x300643),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x47fe00){const _0x3083b5=_0x1e1deb;if(this[_0x3083b5(0x319)](_0x47fe00))return this[_0x3083b5(0x355)](),this[_0x3083b5(0x432)]['createInstance'](K,this[_0x3083b5(0x370)],this[_0x3083b5(0x2cc)],null,this[_0x3083b5(0x23c)],null,[_0x47fe00],this[_0x3083b5(0x373)]);try{const _0x1ecea7=this['_transformService'][_0x3083b5(0x3a3)](_0x47fe00,this['_pendingMutations']);if(_0x4f645f(_0x1ecea7)){const {c1Prime:_0x148479,m2Prime:_0x508860}=_0x1ecea7;this[_0x3083b5(0x1ac)](_0x148479);const _0x494c6a=this[_0x3083b5(0x432)][_0x3083b5(0x116)](G,this[_0x3083b5(0x370)],this[_0x3083b5(0x2cc)],_0x508860,this['_handler']);return this[_0x3083b5(0x355)](),_0x494c6a[_0x3083b5(0x198)](this[_0x3083b5(0x1e9)]?Math[_0x3083b5(0x274)](0x0,new Date()[_0x3083b5(0x12b)]()-this[_0x3083b5(0x1e9)]):this[_0x3083b5(0x362)]()),_0x494c6a;}throw _0x1ecea7[_0x3083b5(0x1f8)];}catch(_0x6c9c2c){return this[_0x3083b5(0x12a)][_0x3083b5(0x1f8)](_0x6c9c2c),this['_onConflict'](!0x1);}}[_0x1e1deb(0x379)](){const _0x34560a=_0x1e1deb;throw new Error(_0x34560a(0x431));}[_0x1e1deb(0x37e)](){const _0x1bd64d=_0x1e1deb;throw new Error(_0x1bd64d(0x255));}[_0x1e1deb(0x2dd)](){const _0x293159=_0x1e1deb;return this[_0x293159(0x355)](),this[_0x293159(0x432)][_0x293159(0x116)](Q,this[_0x293159(0x370)],this[_0x293159(0x2cc)],null,this[_0x293159(0x23c)],this[_0x293159(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x198)](_0x15f770){const _0x5ea99c=_0x1e1deb;_0x15f770=_0x15f770!=null?_0x15f770:this[_0x5ea99c(0x362)](),this['_scheduleTimestamp']=new Date()[_0x5ea99c(0x12b)](),this[_0x5ea99c(0x266)]=setTimeout(()=>{const _0x16848d=_0x5ea99c;this[_0x16848d(0x355)]();let _0x32768c=null;switch(this[_0x16848d(0x2cc)]){case x['UNIVER_SHEET']:{_0x32768c=rs(this[_0x16848d(0x23c)],this[_0x16848d(0x370)],this[_0x16848d(0x145)],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]);break;}case x[_0x16848d(0x1c7)]:{this[_0x16848d(0x23c)][_0x16848d(0x3a1)](_0x1d5203=>_0x1d5203['id']===_0x54abea['id'])?_0x32768c=Qn(this['_pendingMutations'],this[_0x16848d(0x370)],this['_univerInstanceService'],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]):_0x32768c=rs(this['_pendingMutations'],this[_0x16848d(0x370)],this[_0x16848d(0x145)],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x16848d(0x2cc)]+_0x16848d(0x164));}const {changeset:_0x2af2b5,pendingMutations:_0x11f75d}=_0x32768c;this[_0x16848d(0x373)][_0x16848d(0x15c)](_0x2af2b5);const _0x19e322=_0x11f75d[_0x16848d(0x426)]?this[_0x16848d(0x432)][_0x16848d(0x116)](Y,this['unitID'],this[_0x16848d(0x2cc)],_0x2af2b5,_0x11f75d,this[_0x16848d(0x373)]):this[_0x16848d(0x432)][_0x16848d(0x116)](q,this[_0x16848d(0x370)],this[_0x16848d(0x2cc)],_0x2af2b5,this[_0x16848d(0x373)]);_0x19e322['_updateLocalCache'](),this[_0x16848d(0x373)]['onStateChange'](this,_0x19e322);},_0x15f770);}[_0x1e1deb(0x362)](){var _0x4a2473;return(_0x4a2473=this['_configService']['getConfig'](hn))!=null?_0x4a2473:ln;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1e1deb(0x355)](){const _0x4310a1=_0x1e1deb;this[_0x4310a1(0x266)]!=null&&(clearTimeout(this[_0x4310a1(0x266)]),this[_0x4310a1(0x266)]=null);}[_0x1e1deb(0x359)](_0x4a574e){const _0xf1b101=_0x1e1deb;return this['_clearScheduledTask'](),this[_0xf1b101(0x432)][_0xf1b101(0x116)](Z,this[_0xf1b101(0x370)],this[_0xf1b101(0x2cc)],null,this[_0xf1b101(0x23c)],this[_0xf1b101(0x373)],_0x4a574e);}};G=ce([f(0x4,_0x441fe2(_0x9c5d64)),f(0x5,_0x441fe2(_0xaeae41)),f(0x6,_0x441fe2(D)),f(0x7,_0x441fe2(ne)),f(0x8,_0x5f4df3),f(0x9,_0x9845f),f(0xa,_0x5445a8),f(0xb,_0x1e0f5c),f(0xc,_0x4902a5),f(0xd,_0x416533)],G);let q=class extends he{constructor(_0xbf79d9,_0x33819d,_0x207e59,_0x4b68e6,_0x238611,_0x18097d,_0x55aba0,_0x2ef123,_0x2fd63d,_0x12e951,_0x5f4fd9){const _0x484cfd=_0x1e1deb;super(_0xbf79d9,_0x33819d,_0x207e59,[],_0x4b68e6,_0x2ef123,_0x5f4fd9,_0x18097d,_0x55aba0),l(this,_0x484cfd(0x356),_0x484cfd(0x3a2)),(this[_0x484cfd(0x432)]=_0x238611,this['_logService']=_0x2fd63d,this['_transformService']=_0x12e951);}['appendMutation'](_0x4e0e3c){const _0x336b12=_0x1e1deb,_0x3a9f34=this[_0x336b12(0x432)][_0x336b12(0x116)](Y,this['unitID'],this[_0x336b12(0x2cc)],this[_0x336b12(0x332)],[_0x4e0e3c],this[_0x336b12(0x373)]);return _0x3a9f34['_updateLocalCache'](),_0x3a9f34;}[_0x1e1deb(0x25b)](_0x4f4144){const _0x5a876d=_0x1e1deb;if(this[_0x5a876d(0x319)](_0x4f4144))return this[_0x5a876d(0x432)][_0x5a876d(0x116)](K,this[_0x5a876d(0x370)],this[_0x5a876d(0x2cc)],this['_awaitingChangeset'],[],null,[_0x4f4144],this[_0x5a876d(0x373)]);try{const _0x449748=this['_transformService'][_0x5a876d(0x3e9)]([_0x4f4144],[this['_awaitingChangeset']],!0x1);if(_0x316cc8(_0x449748)){const {c1Prime:_0x112099,c2Prime:_0x12d0aa}=_0x449748;this[_0x5a876d(0x1ac)](_0x112099[0x0]),_0x12d0aa[0x0][_0x5a876d(0x212)]=this[_0x5a876d(0x149)]();const _0x1b6d00=this['_injector']['createInstance'](q,this['unitID'],this[_0x5a876d(0x2cc)],_0x12d0aa[0x0],this[_0x5a876d(0x373)]);return _0x1b6d00['_updateLocalCache'](),_0x1b6d00;}return this[_0x5a876d(0x359)](!0x1);}catch(_0x5c1f5a){return this[_0x5a876d(0x12a)][_0x5a876d(0x1f8)](_0x5c1f5a),this[_0x5a876d(0x359)](!0x1);}}[_0x1e1deb(0x379)](_0x5691d5){const _0x3a556d=_0x1e1deb,_0x435b5c=this[_0x3a556d(0x2d6)]['getCurrentRevForDocument'](this['unitID']);if(_0x5691d5[_0x3a556d(0x126)]<_0x435b5c-0x1)return this;if(this[_0x3a556d(0x319)](_0x5691d5))return this[_0x3a556d(0x432)]['createInstance'](K,this[_0x3a556d(0x370)],this[_0x3a556d(0x2cc)],null,[],this[_0x3a556d(0x332)],[],this[_0x3a556d(0x373)]);this['_incrementRevisionNumber']();const _0x1fccfe=this[_0x3a556d(0x432)][_0x3a556d(0x116)](ye,this[_0x3a556d(0x370)],this[_0x3a556d(0x2cc)],this[_0x3a556d(0x373)]);return _0x1fccfe[_0x3a556d(0x32b)](),_0x1fccfe;}[_0x1e1deb(0x37e)](_0x56ae55){const _0x52f4f8=_0x1e1deb;return this[_0x52f4f8(0x359)](!!(_0x56ae55!=null&&_0x56ae55['isPermissionRej']));}[_0x1e1deb(0x2dd)](){const _0x3db6ac=_0x1e1deb;return this[_0x3db6ac(0x432)][_0x3db6ac(0x116)](Q,this[_0x3db6ac(0x370)],this[_0x3db6ac(0x2cc)],this[_0x3db6ac(0x332)],[],this[_0x3db6ac(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x27b9a4=_0x1e1deb;this[_0x27b9a4(0x373)][_0x27b9a4(0x15c)](this[_0x27b9a4(0x332)]);}[_0x1e1deb(0x359)](_0x44690f){const _0x478ba4=_0x1e1deb;return this[_0x478ba4(0x432)][_0x478ba4(0x116)](Z,this['unitID'],this[_0x478ba4(0x2cc)],this[_0x478ba4(0x332)],[],this[_0x478ba4(0x373)],_0x44690f);}};q=ce([f(0x4,_0x441fe2(_0x9c5d64)),f(0x5,_0x441fe2(_0xaeae41)),f(0x6,_0x441fe2(D)),f(0x7,_0x9845f),f(0x8,_0x5f4df3),f(0x9,_0x1e0f5c),f(0xa,_0x416533)],q);let Y=class extends he{constructor(_0x1c5598,_0x55ac7d,_0x109cd5,_0x53310d,_0x1cb1de,_0x535291,_0x990d7b,_0x22dca9,_0x8f712,_0x4e3e3f,_0x4d7b92,_0x45bd63){const _0x311c51=_0x1e1deb;super(_0x1c5598,_0x55ac7d,_0x109cd5,_0x53310d,_0x1cb1de,_0x8f712,_0x45bd63,_0x990d7b,_0x22dca9),l(this,_0x311c51(0x356),_0x311c51(0x1f9)),(this['_injector']=_0x535291,this[_0x311c51(0x12a)]=_0x4e3e3f,this[_0x311c51(0x258)]=_0x4d7b92);}['appendMutation'](_0x296f0c){const _0x474d05=_0x1e1deb;return this[_0x474d05(0x23c)]['push'](_0x296f0c),this;}[_0x1e1deb(0x25b)](_0x1e317b){const _0x16b0fe=_0x1e1deb;if(this['_checkMissing'](_0x1e317b))return this[_0x16b0fe(0x432)][_0x16b0fe(0x116)](K,this[_0x16b0fe(0x370)],this['type'],this[_0x16b0fe(0x332)],this[_0x16b0fe(0x23c)],null,[_0x1e317b],this[_0x16b0fe(0x373)]);try{const _0x3e992f=this[_0x16b0fe(0x258)][_0x16b0fe(0x3e9)]([_0x1e317b],[this['_awaitingChangeset']],!0x1);if(_0x316cc8(_0x3e992f)){const {c1Prime:_0x598330,c2Prime:_0x3603ae}=_0x3e992f,_0xdc2477=this[_0x16b0fe(0x258)]['transformMutationsWithChangeset'](_0x598330[0x0],this[_0x16b0fe(0x23c)]);if(_0x4f645f(_0xdc2477)){const {c1Prime:_0x2edce6,m2Prime:_0xec2b1d}=_0xdc2477;return this[_0x16b0fe(0x1ac)](_0x2edce6),_0x3603ae[0x0][_0x16b0fe(0x212)]=this[_0x16b0fe(0x149)](),this[_0x16b0fe(0x432)][_0x16b0fe(0x116)](Y,this[_0x16b0fe(0x370)],this['type'],_0x3603ae[0x0],_0xec2b1d,this[_0x16b0fe(0x373)]);}throw _0xdc2477['error'];}throw _0x3e992f[_0x16b0fe(0x1f8)];}catch(_0x1852de){return this[_0x16b0fe(0x12a)][_0x16b0fe(0x1f8)](_0x1852de),this[_0x16b0fe(0x359)](!0x1);}}[_0x1e1deb(0x379)](_0xcd1fbb){const _0x402358=_0x1e1deb;if(this[_0x402358(0x319)](_0xcd1fbb))return this[_0x402358(0x432)][_0x402358(0x116)](K,this['unitID'],this[_0x402358(0x2cc)],null,this['_pendingMutations'],this[_0x402358(0x332)],[],this['_handler']);this[_0x402358(0x22b)]();const _0x215df=this[_0x402358(0x432)]['createInstance'](G,this[_0x402358(0x370)],this[_0x402358(0x2cc)],this[_0x402358(0x23c)],this[_0x402358(0x373)]);return _0x215df[_0x402358(0x198)](),_0x215df[_0x402358(0x32b)](),_0x215df;}[_0x1e1deb(0x37e)](_0x53b870){const _0x4f8615=_0x1e1deb;return this['_onConflict'](!!(_0x53b870!=null&&_0x53b870[_0x4f8615(0x32d)]));}[_0x1e1deb(0x2dd)](){const _0x3dfd76=_0x1e1deb;return this[_0x3dfd76(0x432)][_0x3dfd76(0x116)](Q,this['unitID'],this[_0x3dfd76(0x2cc)],this['_awaitingChangeset'],this[_0x3dfd76(0x23c)],this[_0x3dfd76(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x42accc=_0x1e1deb;this['_handler'][_0x42accc(0x15c)](this['_awaitingChangeset']);}[_0x1e1deb(0x359)](_0x483b69){const _0xfae14f=_0x1e1deb;return this[_0xfae14f(0x432)][_0xfae14f(0x116)](Z,this[_0xfae14f(0x370)],this[_0xfae14f(0x2cc)],null,this[_0xfae14f(0x23c)],this[_0xfae14f(0x373)],_0x483b69);}};Y=ce([f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x441fe2(_0xaeae41)),f(0x7,_0x441fe2(D)),f(0x8,_0x9845f),f(0x9,_0x5f4df3),f(0xa,_0x1e0f5c),f(0xb,_0x416533)],Y);let Z=class extends he{constructor(_0x47c831,_0x381247,_0x586de1,_0x3b6a91,_0x3f0a44,_0x3425ff=!0x1,_0x4870f5,_0x171b6a,_0x1478de,_0x39228f,_0x4c9e0b,_0x20dc09,_0x4ddedc){const _0x3620e3=_0x1e1deb;super(_0x47c831,_0x381247,_0x586de1,_0x3b6a91,_0x3f0a44,_0x171b6a,_0x1478de,_0x4c9e0b,_0x39228f),l(this,_0x3620e3(0x356),_0x3620e3(0x142)),(this[_0x3620e3(0x2e3)]=_0x3425ff,this[_0x3620e3(0x1eb)]=_0x4870f5,this['_localeService']=_0x20dc09,this[_0x3620e3(0x3dd)]=_0x4ddedc,this[_0x3620e3(0x2ca)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x1e1deb(0x374)](){return this;}['onRemoteChangeset'](){return this;}[_0x1e1deb(0x379)](){return this;}[_0x1e1deb(0x37e)](){return this;}[_0x1e1deb(0x2dd)](){return this;}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x2dc7a2=_0x1e1deb;throw new Error(_0x2dc7a2(0x35e));}[_0x1e1deb(0x377)](){const _0x191080=_0x1e1deb;this[_0x191080(0x1f2)]['updateOfflineData'](this[_0x191080(0x370)],this['type'],null,[]);}[_0x1e1deb(0x2ca)](){const _0xbf1449=_0x1e1deb;this[_0xbf1449(0x2e3)]?this[_0xbf1449(0x3dd)][_0xbf1449(0x154)]({'title':this[_0xbf1449(0x367)]['t']('permission.title'),'content':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x217)),'type':_0xbf1449(0x1f8),'duration':0x0}):this['_notificationService']['show']({'title':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x30e)),'content':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x1a7)),'type':_0xbf1449(0x1f8),'duration':0x0});}[_0x1e1deb(0x169)](){const _0x43f8a9=_0x1e1deb;this[_0x43f8a9(0x1eb)][_0x43f8a9(0x3ba)](new _0x230e97(this['unitID'])['id'],!0x1);}};Z=ce([f(0x6,_0x441fe2(_0x3660f2)),f(0x7,_0x9845f),f(0x8,_0x416533),f(0x9,_0x441fe2(D)),f(0xa,_0x441fe2(_0xaeae41)),f(0xb,_0x441fe2(_0x2cfe85)),f(0xc,_0x73ec84)],Z);let Q=class extends he{constructor(_0x4033ed,_0x294e68,_0x42ae01,_0x1ae8fa,_0x4a9923,_0x28c475,_0x445d82,_0x3de675,_0x3f2eb6,_0x2b6b18){const _0x4cf51f=_0x1e1deb;super(_0x4033ed,_0x294e68,_0x42ae01,_0x1ae8fa,_0x4a9923,_0x3f2eb6,_0x2b6b18,_0x445d82,_0x3de675),l(this,_0x4cf51f(0x356),'offline'),this['_injector']=_0x28c475;}['appendMutation'](_0x19d234){const _0x44a949=_0x1e1deb;return this[_0x44a949(0x23c)][_0x44a949(0x39d)](_0x19d234),this[_0x44a949(0x32b)](),this;}[_0x1e1deb(0x25b)](_0x31afe7){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xb10699=_0x1e1deb;throw new Error(_0xb10699(0x26a));}[_0x1e1deb(0x37e)](){const _0x1395d2=_0x1e1deb;throw new Error(_0x1395d2(0x371));}[_0x1e1deb(0x2dd)](){return this;}['toggleOnline'](){const _0x37d1ab=_0x1e1deb,{_injector:_0x31e81f,_pendingMutations:_0x30cb4a,_awaitingChangeset:_0x2f4d56,unitID:_0x2d5b68,_handler:_0x592196,type:_0x2c9179}=this,_0x45df02=Us(_0x31e81f,_0x2d5b68,_0x2c9179,_0x2f4d56,_0x30cb4a,_0x592196);return _0x45df02 instanceof G?_0x45df02[_0x37d1ab(0x198)]():(_0x45df02 instanceof Y||_0x45df02 instanceof q)&&_0x45df02[_0x37d1ab(0x372)](),_0x45df02;}[_0x1e1deb(0x372)](){const _0x5ce96e=_0x1e1deb;throw new Error(_0x5ce96e(0x3da));}};Q=ce([f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x441fe2(_0xaeae41)),f(0x7,_0x441fe2(D)),f(0x8,_0x9845f),f(0x9,_0x416533)],Q);let K=class extends he{constructor(_0x5413fa,_0x10b864,_0x24d54e,_0x300b16,_0x35cc00,_0x35295d,_0xe20ac1,_0x28979e,_0x4637b7,_0x26d5f0,_0x181bcd,_0x1c0b77,_0x18fd54,_0x18e5ba){const _0x31c961=_0x1e1deb;super(_0x5413fa,_0x10b864,_0x24d54e,_0x300b16,_0xe20ac1,_0x1c0b77,_0x18fd54,_0x4637b7,_0x26d5f0),l(this,_0x31c961(0x356),_0x31c961(0x2b1)),(this[_0x31c961(0x3b4)]=_0x35cc00,this[_0x31c961(0x135)]=_0x35295d,this[_0x31c961(0x432)]=_0x28979e,this[_0x31c961(0x12a)]=_0x181bcd,this[_0x31c961(0x258)]=_0x18e5ba);}['onMissedChangesetFetched'](_0x352185){const _0x5a1a1b=_0x1e1deb;try{const _0xd2a67f=[..._0x352185,...this[_0x5a1a1b(0x135)]],_0x5b9a9c=[this[_0x5a1a1b(0x332)]||this[_0x5a1a1b(0x3b4)]][_0x5a1a1b(0x3fd)](_0x18ca98=>!!_0x18ca98);let _0x47a729,_0x5cb6ad;if(_0x5b9a9c[_0x5a1a1b(0x426)]){const _0x2ce4d1=this[_0x5a1a1b(0x258)][_0x5a1a1b(0x3e9)](_0xd2a67f,_0x5b9a9c,!0x1);if(!_0x316cc8(_0x2ce4d1))throw _0x2ce4d1[_0x5a1a1b(0x1f8)];_0x47a729=_0x2ce4d1[_0x5a1a1b(0x1ba)],_0x5cb6ad=_0x2ce4d1['c2Prime'];}else _0x47a729=_0xd2a67f,_0x5cb6ad=[];let _0x43119d=this[_0x5a1a1b(0x23c)];_0x47a729[_0x5a1a1b(0x23e)](_0x189226=>{const _0x5a3e9=_0x5a1a1b;let _0x4644e6;if(_0x43119d['length']){const _0x1ab949=this[_0x5a3e9(0x258)]['transformMutationsWithChangeset'](_0x189226,_0x43119d);if(!_0x4f645f(_0x1ab949))throw _0x1ab949[_0x5a3e9(0x1f8)];_0x4644e6=_0x1ab949[_0x5a3e9(0x1ba)],_0x43119d=_0x1ab949[_0x5a3e9(0x2fa)];}else _0x4644e6=_0x189226;this[_0x5a3e9(0x1ac)](_0x4644e6);}),this[_0x5a1a1b(0x3b4)]&&this[_0x5a1a1b(0x22b)](),this['_awaitingChangeset']&&_0x5cb6ad[_0x5a1a1b(0x426)]&&(_0x5cb6ad[0x0][_0x5a1a1b(0x212)]=this[_0x5a1a1b(0x149)]());let _0x304130;if(this[_0x5a1a1b(0x332)]&&_0x43119d[_0x5a1a1b(0x426)]!==0x0)_0x304130=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](Y,this['unitID'],this[_0x5a1a1b(0x2cc)],_0x5cb6ad[0x0],_0x43119d,this[_0x5a1a1b(0x373)]);else{if(this[_0x5a1a1b(0x332)]&&_0x43119d['length']===0x0)_0x5cb6ad[0x0][_0x5a1a1b(0x212)]=this['_getCurrentRevision'](),_0x304130=this[_0x5a1a1b(0x432)]['createInstance'](q,this[_0x5a1a1b(0x370)],this['type'],_0x5cb6ad[0x0],this[_0x5a1a1b(0x373)]);else{if(_0x43119d['length']!==0x0){const _0x86efe3=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](G,this['unitID'],this['type'],_0x43119d,this[_0x5a1a1b(0x373)]);_0x86efe3['_schedule'](),_0x304130=_0x86efe3;}else _0x304130=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](ye,this['unitID'],this[_0x5a1a1b(0x2cc)],this['_handler']);}}return _0x304130[_0x5a1a1b(0x32b)](),_0x304130;}catch(_0x550117){return this['_logService'][_0x5a1a1b(0x1f8)](_0x5a1a1b(0x290),_0x5a1a1b(0x26f),_0x550117),this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](Z,this[_0x5a1a1b(0x370)],this[_0x5a1a1b(0x2cc)],this[_0x5a1a1b(0x332)],this[_0x5a1a1b(0x23c)],this[_0x5a1a1b(0x373)],!0x1);}}[_0x1e1deb(0x372)](){const _0x45f47c=_0x1e1deb;throw new Error(_0x45f47c(0x144));}[_0x1e1deb(0x374)](_0x5cb69b){const _0x1b773e=_0x1e1deb;return this[_0x1b773e(0x23c)][_0x1b773e(0x39d)](_0x5cb69b),this;}[_0x1e1deb(0x25b)](_0x407148){const _0x199083=_0x1e1deb;return this[_0x199083(0x135)][_0x199083(0x39d)](_0x407148),this;}[_0x1e1deb(0x379)](_0x4369e2){const _0x175780=_0x1e1deb;if(this[_0x175780(0x332)])return this['_acknowledgedAwaitingChangeset']=this[_0x175780(0x332)],this[_0x175780(0x332)]=null,this;throw new Error(_0x175780(0x27d));}['onRemoteRej'](_0xe91030){const _0x19e25=_0x1e1deb;return this[_0x19e25(0x359)](!!(_0xe91030!=null&&_0xe91030['isPermissionRej']));}[_0x1e1deb(0x2dd)](){const _0x24daff=_0x1e1deb;return this['_injector']['createInstance'](Q,this[_0x24daff(0x370)],this['type'],this['_awaitingChangeset'],this[_0x24daff(0x23c)],this[_0x24daff(0x373)]);}['toggleOnline'](){return this;}[_0x1e1deb(0x359)](_0xb28e10){const _0x516a3f=_0x1e1deb;return this[_0x516a3f(0x432)]['createInstance'](Z,this[_0x516a3f(0x370)],this['type'],this['_awaitingChangeset'],this[_0x516a3f(0x23c)],this['_handler'],_0xb28e10);}};K=ce([f(0x7,_0x441fe2(_0x9c5d64)),f(0x8,_0x441fe2(_0xaeae41)),f(0x9,_0x441fe2(D)),f(0xa,_0x5f4df3),f(0xb,_0x9845f),f(0xc,_0x416533),f(0xd,_0x1e0f5c)],K);function Us(_0x579dec,_0x46bd78,_0x1ebb8c,_0x13829d,_0x12331f,_0x2a5cae){const _0x4e6c22=_0x1e1deb;return _0x13829d&&_0x12331f[_0x4e6c22(0x426)]?_0x579dec[_0x4e6c22(0x116)](Y,_0x46bd78,_0x1ebb8c,_0x13829d,_0x12331f,_0x2a5cae):_0x13829d?_0x579dec['createInstance'](q,_0x46bd78,_0x1ebb8c,_0x13829d,_0x2a5cae):_0x12331f[_0x4e6c22(0x426)]?_0x579dec[_0x4e6c22(0x116)](G,_0x46bd78,_0x1ebb8c,_0x12331f,_0x2a5cae):_0x579dec[_0x4e6c22(0x116)](ye,_0x46bd78,_0x1ebb8c,_0x2a5cae);}var ir=Object[_0x1e1deb(0x158)],nr=Object[_0x1e1deb(0x32c)],st=(_0x48e165,_0x416c0b,_0x51291f,_0x451ff2)=>{const _0x54fda0=_0x1e1deb;for(var _0x4ce40e=_0x451ff2>0x1?void 0x0:_0x451ff2?nr(_0x416c0b,_0x51291f):_0x416c0b,_0x163375=_0x48e165[_0x54fda0(0x426)]-0x1,_0x460e26;_0x163375>=0x0;_0x163375--)(_0x460e26=_0x48e165[_0x163375])&&(_0x4ce40e=(_0x451ff2?_0x460e26(_0x416c0b,_0x51291f,_0x4ce40e):_0x460e26(_0x4ce40e))||_0x4ce40e);return _0x451ff2&&_0x4ce40e&&ir(_0x416c0b,_0x51291f,_0x4ce40e),_0x4ce40e;},p=(_0xee83f7,_0x169274)=>(_0x1b5003,_0x5b464a)=>_0x169274(_0x1b5003,_0x5b464a,_0xee83f7);let Me=class extends _0x5b9cf1{constructor(_0x509b45,_0x291204,_0x3e294d){const _0x2c87b9=_0x1e1deb;super(),l(this,'_entities',new Map()),l(this,_0x2c87b9(0x325),new _0x365a49()),(this[_0x2c87b9(0x432)]=_0x509b45,this[_0x2c87b9(0x341)]=_0x291204,this['_univerInstanceService']=_0x3e294d,this[_0x2c87b9(0x37a)]());}['dispose'](){const _0x5390a0=_0x1e1deb;super['dispose'](),this['_entities'][_0x5390a0(0x23e)](_0x4f282c=>_0x4f282c[_0x5390a0(0x1de)]()),this['_entities'][_0x5390a0(0x124)]();}['getCollabEntity'](_0x27039e){const _0x2c9152=_0x1e1deb;var _0x2701f3;return(_0x2701f3=this[_0x2c9152(0x272)]['get'](_0x27039e))!=null?_0x2701f3:null;}[_0x1e1deb(0x1d3)](_0x4ffc56){const _0x1c00ee=_0x1e1deb,_0x32c325=this['getCollabEntity'](_0x4ffc56);return _0x32c325?_0x4f1794(_0x32c325):this[_0x1c00ee(0x325)][_0x1c00ee(0x119)](_0x190413(_0x490ced=>_0x490ced[_0x1c00ee(0x370)]===_0x4ffc56));}[_0x1e1deb(0x37a)](){const _0x5b0435=_0x1e1deb;this[_0x5b0435(0x145)][_0x5b0435(0x405)](_0x37298b[_0x5b0435(0x3d0)])['pipe'](_0x3f75b0(this[_0x5b0435(0x413)]),_0x12d8e6(0x10))['subscribe'](async _0x499dd4=>{const _0x1e1229=_0x5b0435,_0x43f234=_0x499dd4['getUnitId'](),_0x6da999=await this[_0x1e1229(0x38f)](_0x43f234,x[_0x1e1229(0x3d0)]);this[_0x1e1229(0x272)]['set'](_0x43f234,_0x6da999);}),this[_0x5b0435(0x145)]['getTypeOfUnitAdded$'](_0x37298b[_0x5b0435(0x1c7)])[_0x5b0435(0x119)](_0x3f75b0(this['dispose$']),_0x12d8e6(0x10))[_0x5b0435(0x119)](_0x190413(_0x5d5cb4=>!_0x5d5cb4['getUnitId']()[_0x5b0435(0x240)]('__')))[_0x5b0435(0x3e0)](async _0x1bb952=>{const _0x198b8e=_0x5b0435,_0x26e91c=_0x1bb952[_0x198b8e(0x3cf)](),_0x4669b3=await this['_startCollaboration'](_0x26e91c,x[_0x198b8e(0x1c7)]);this[_0x198b8e(0x272)][_0x198b8e(0x394)](_0x26e91c,_0x4669b3);}),_0x5726e7(this[_0x5b0435(0x145)]['getTypeOfUnitDisposed$'](_0x37298b['UNIVER_SHEET']),this[_0x5b0435(0x145)]['getTypeOfUnitDisposed$'](_0x37298b[_0x5b0435(0x1c7)]))[_0x5b0435(0x119)](_0x3f75b0(this['dispose$']))[_0x5b0435(0x3e0)](_0x4e3e8d=>{const _0xbd1a18=_0x5b0435,_0x28b29c=_0x4e3e8d[_0xbd1a18(0x3cf)](),_0x5dc702=this[_0xbd1a18(0x272)][_0xbd1a18(0x10a)](_0x28b29c);_0x5dc702&&(_0x5dc702[_0xbd1a18(0x1de)](),this[_0xbd1a18(0x272)]['delete'](_0x28b29c));});}async[_0x1e1deb(0x38f)](_0xd132ec,_0x485567){const _0x6a96be=_0x1e1deb,_0x259989=await this['_collabSessionService'][_0x6a96be(0x2c6)](_0xd132ec),_0xa5e8a1=this['_injector'][_0x6a96be(0x116)](this[_0x6a96be(0x1d8)](_0x485567),_0xd132ec,_0x485567,_0x259989);return await _0xa5e8a1[_0x6a96be(0x3db)](),this[_0x6a96be(0x325)]['next'](_0xa5e8a1),_0xa5e8a1;}[_0x1e1deb(0x1d8)](_0x2d58b0){const _0x4854b7=_0x1e1deb;switch(_0x2d58b0){case x['UNIVER_DOC']:return It;case x[_0x4854b7(0x3d0)]:return Et;default:throw new Error(_0x4854b7(0x2e5)+_0x2d58b0);}}};Me=st([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],Me),p(0x0,_0x441fe2(_0x9c5d64)),p(0x1,_0x441fe2(pe)),p(0x2,_0x4902a5)],Me);let Ze=class extends _0x5b9cf1{constructor(_0x36f389,_0x1129b4,_0x1599de,_0x363f83,_0x523d17,_0x1f1971,_0x51f01c,_0x477fcc,_0x4f09ad,_0x50ac2a,_0x31773c,_0xbb257e,_0x1354cc){const _0x4c8e67=_0x1e1deb;super(),l(this,_0x4c8e67(0x128),new _0x16d05d(null)),l(this,_0x4c8e67(0x229),this[_0x4c8e67(0x128)]['asObservable']()),l(this,_0x4c8e67(0x195)),l(this,_0x4c8e67(0x2d4),!0x1),l(this,'status$',this[_0x4c8e67(0x229)][_0x4c8e67(0x119)](_0x5ac769(_0x1b3212=>_0x1b3212?_0x1b3212[_0x4c8e67(0x356)]:P[_0x4c8e67(0x328)]),_0xec62cf(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x4c8e67(0x1ae),[]),(this[_0x4c8e67(0x370)]=_0x36f389,this[_0x4c8e67(0x33f)]=_0x1129b4,this[_0x4c8e67(0x188)]=_0x1599de,this[_0x4c8e67(0x432)]=_0x363f83,this['_localCacheService']=_0x523d17,this['_compressMutationService']=_0x1f1971,this['_localeService']=_0x51f01c,this[_0x4c8e67(0x2d6)]=_0x477fcc,this[_0x4c8e67(0x12a)]=_0x4f09ad,this[_0x4c8e67(0x1fb)]=_0x50ac2a,this[_0x4c8e67(0x130)]=_0x31773c,this['_permissionService']=_0xbb257e,this[_0x4c8e67(0x3ea)]=_0x1354cc);}get['state'](){const _0x31db9a=_0x1e1deb;return this[_0x31db9a(0x195)];}async['init'](){const _0x31b9cd=_0x1e1deb;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x31b9cd(0x37a)]();}[_0x1e1deb(0x1c9)](){return this['_collaborationPaused']=!0x0,_0x4259e5(()=>{const _0x5eec24=_0x44de;this[_0x5eec24(0x2d4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x1e1deb(0x330)](_0x269e6b){const _0x4104dc=_0x1e1deb;this[_0x4104dc(0x195)]=_0x269e6b,this[_0x4104dc(0x128)]['next'](_0x269e6b);}async[_0x1e1deb(0x37a)](){const _0x548a85=_0x1e1deb;var _0x4ecf58;return this[_0x548a85(0x330)](await this[_0x548a85(0x1a1)]()),this[_0x548a85(0x3ea)]&&((_0x4ecf58=this[_0x548a85(0x3ea)])==null||_0x4ecf58[_0x548a85(0x2f9)](this[_0x548a85(0x370)]),this[_0x548a85(0x32e)](_0x4259e5(this['_singleActiveUnitService'][_0x548a85(0x2ac)](this[_0x548a85(0x370)])[_0x548a85(0x3e0)](_0x48c6b6=>{const _0x58fa6c=_0x548a85;this[_0x58fa6c(0x12a)]['debug'](_0x58fa6c(0x20f),'editing\x20status\x20changed\x20to',_0x48c6b6),_0x48c6b6===As[_0x58fa6c(0x288)]?(this['_messageService']['show']({'content':this['_localeService']['t'](_0x58fa6c(0x336)),'type':_0x3eac95[_0x58fa6c(0x15d)]}),this[_0x58fa6c(0x1eb)][_0x58fa6c(0x3ba)](new _0x230e97(this[_0x58fa6c(0x370)])['id'],!0x1)):this['_permissionService'][_0x58fa6c(0x3ba)](new _0x230e97(this[_0x58fa6c(0x370)])['id'],!0x0);})))),this[_0x548a85(0x32e)](_0x4259e5(this[_0x548a85(0x188)][_0x548a85(0x220)]['subscribe'](_0x1b3d89=>{const _0x2248e5=_0x548a85;_0x1b3d89===fe[_0x2248e5(0x3c2)]?this['_toggleOnline']():_0x1b3d89===fe[_0x2248e5(0x328)]&&this[_0x2248e5(0x437)]();}))),this[_0x548a85(0x32e)](_0x4259e5(this['_session'][_0x548a85(0x19f)][_0x548a85(0x3e0)](_0x2ac18d=>{const _0x50b20e=_0x548a85;try{switch(_0x2ac18d[_0x50b20e(0x2f8)]){case _0x1c415b[_0x50b20e(0x38c)]:{this[_0x50b20e(0x127)](_0x485874(_0x2ac18d[_0x50b20e(0x265)]));break;}case _0x1c415b[_0x50b20e(0x402)]:{this['_onRemoteACK'](_0x2ac18d[_0x50b20e(0x265)]);break;}case _0x1c415b[_0x50b20e(0x3fb)]:{this['_onRemoteRejected']();break;}case _0x1c415b[_0x50b20e(0x2ff)]:{this[_0x50b20e(0x214)](_0x2ac18d['data'][_0x50b20e(0x247)][_0x50b20e(0x230)](_0x12692b=>_0x485874(_0x12692b)));break;}case _0x1c415b[_0x50b20e(0x436)]:this[_0x50b20e(0x1a4)]({'isPermissionRej':!0x0});}}catch(_0x2a0fcf){throw console[_0x50b20e(0x1f8)]('Error\x20on\x20receiving\x20event',_0x2a0fcf),_0x2a0fcf;}}))),this[_0x548a85(0x195)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x1e1deb(0x3b1)](){const _0x4f0ddd=_0x1e1deb;if(this[_0x4f0ddd(0x322)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x4f0ddd(0x322)]=!0x0;}[_0x1e1deb(0x2f3)](_0x46d15e){const _0x9726d5=_0x1e1deb;this[_0x9726d5(0x3b1)](),this[_0x9726d5(0x330)](this[_0x9726d5(0x195)]['appendMutation'](_0x46d15e)),this[_0x9726d5(0x125)]();}[_0x1e1deb(0x127)](_0x5d5ebb){const _0x1e552c=_0x1e1deb;if(!(_0x5d5ebb[_0x1e552c(0x126)]<=this[_0x1e552c(0x2d6)]['getCurrentRevForDocument'](this['unitID']))){if(this['_collaborationPaused']){this[_0x1e552c(0x1ae)]['push'](_0x5d5ebb);return;}this[_0x1e552c(0x382)](_0x5d5ebb);}}[_0x1e1deb(0x406)](){const _0x30e053=_0x1e1deb;this[_0x30e053(0x1ae)][_0x30e053(0x23e)](_0x12b2bc=>this[_0x30e053(0x382)](_0x12b2bc)),this['_remoteChangesetQueue']=[];}[_0x1e1deb(0x382)](_0x225df3){const _0x53d40a=_0x1e1deb,_0x49695b=this[_0x53d40a(0x312)]['interceptor'][_0x53d40a(0x184)](this[_0x53d40a(0x312)][_0x53d40a(0x3c1)][_0x53d40a(0x3d2)]()[_0x53d40a(0x1b3)])(_0x225df3[_0x53d40a(0x357)],null)||_0x225df3[_0x53d40a(0x357)],_0x4d5023={..._0x225df3,'mutations':_0x49695b};this[_0x53d40a(0x3b1)](),this['_updateState'](this[_0x53d40a(0x195)][_0x53d40a(0x25b)](_0x4d5023)),this[_0x53d40a(0x125)]();}['_onRemoteACK'](_0x5250dd){const _0x33ae49=_0x1e1deb;this[_0x33ae49(0x3b1)](),this['_updateState'](this[_0x33ae49(0x195)][_0x33ae49(0x379)](_0x5250dd)),this[_0x33ae49(0x125)]();}['_onRemoteRejected'](_0x45fa86){const _0x343ebd=_0x1e1deb;this['_lockTransition'](),this[_0x343ebd(0x330)](this[_0x343ebd(0x195)]['onRemoteRej'](_0x45fa86)),this[_0x343ebd(0x125)]();}[_0x1e1deb(0x214)](_0x2fc339){const _0x115f22=_0x1e1deb;if(!(this[_0x115f22(0x195)]instanceof K))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x24b9bd=_0x2fc339['map'](_0x5ed02d=>{const _0x53dabe=_0x115f22,_0xf8fb97=this[_0x53dabe(0x312)]['interceptor'][_0x53dabe(0x184)](this[_0x53dabe(0x312)]['interceptor'][_0x53dabe(0x3d2)]()[_0x53dabe(0x1b3)])(_0x5ed02d[_0x53dabe(0x357)],null)||_0x5ed02d[_0x53dabe(0x357)];return{..._0x5ed02d,'mutations':_0xf8fb97};});this[_0x115f22(0x3b1)](),this[_0x115f22(0x330)](this[_0x115f22(0x195)]['onMissedChangesetFetched'](_0x24b9bd)),this[_0x115f22(0x125)]();}[_0x1e1deb(0x437)](){const _0x21c958=_0x1e1deb;this[_0x21c958(0x3b1)](),this['_updateState'](this[_0x21c958(0x195)]['toggleOffline']()),this[_0x21c958(0x125)]();}[_0x1e1deb(0x225)](){const _0x3a59a4=_0x1e1deb;this[_0x3a59a4(0x3b1)](),this[_0x3a59a4(0x330)](this[_0x3a59a4(0x195)][_0x3a59a4(0x13a)]()),this[_0x3a59a4(0x125)]();}async[_0x1e1deb(0x1a1)](){return new Promise(_0x53e659=>{const _0xfeb62a=_0x44de;this[_0xfeb62a(0x188)][_0xfeb62a(0x220)][_0xfeb62a(0x119)](_0x59ece1(0x1))[_0xfeb62a(0x3e0)](async _0x2fcf63=>{const _0x40c2cf=_0xfeb62a;_0x53e659(await this[_0x40c2cf(0x28f)](_0x2fcf63===fe[_0x40c2cf(0x3c2)]));});});}[_0x1e1deb(0x300)](){const _0x4e1227=_0x1e1deb,_0x2302c8=this[_0x4e1227(0x370)];return{'onStateChange':(_0x3192e2,_0x536819)=>{const _0x1769a4=_0x4e1227;if(_0x3192e2!==this[_0x1769a4(0x195)])throw new Error(_0x1769a4(0x1b0)+_0x3192e2[_0x1769a4(0x356)]+_0x1769a4(0x315)+_0x536819[_0x1769a4(0x356)]+'\x0aCurrent:\x20'+this[_0x1769a4(0x195)]['status']);this[_0x1769a4(0x330)](_0x536819);},'onSendChangeset':_0x47aedd=>{const _0x4dadb6=_0x4e1227,_0x47f3a6={'eventID':_0x1c415b['SUBMIT_CHANGESET'],'data':{'unitID':_0x47aedd['unitID'],'unitType':this[_0x4dadb6(0x33f)],'changeset':_0x47aedd,'memberID':this[_0x4dadb6(0x188)][_0x4dadb6(0x3be)]()}};this[_0x4dadb6(0x188)][_0x4dadb6(0x409)](_0x47f3a6,this[_0x4dadb6(0x370)]);},'onMissingChangesets':({from:_0x11028d,to:_0x201bec})=>{const _0x344473=_0x4e1227;this[_0x344473(0x12a)]['debug'](_0x344473(0x20f),_0x344473(0x415)+_0x11028d+'\x20to\x20'+_0x201bec);const _0x24850b={'eventID':_0x1c415b[_0x344473(0x15e)],'data':{'unitID':_0x2302c8,'unitType':this[_0x344473(0x33f)],'from':_0x11028d,'to':_0x201bec}};this['_session'][_0x344473(0x409)](_0x24850b,this[_0x344473(0x370)]);}};}async[_0x1e1deb(0x28f)](_0x34fbea){const _0x2e6196=_0x1e1deb;var _0x2418b8,_0x1317bc;const _0x5d3816=await this[_0x2e6196(0x1f2)][_0x2e6196(0x329)](this[_0x2e6196(0x370)]),_0x46e058=(_0x2418b8=_0x5d3816==null?void 0x0:_0x5d3816['mutations'])!=null?_0x2418b8:[],_0x2fc0a4=(_0x1317bc=_0x5d3816==null?void 0x0:_0x5d3816[_0x2e6196(0x22e)])!=null?_0x1317bc:null,_0x629462=this[_0x2e6196(0x370)];try{this[_0x2e6196(0x16e)](_0x2fc0a4,_0x46e058);}catch(_0x1a1243){this[_0x2e6196(0x12a)][_0x2e6196(0x1f8)](_0x1a1243);}const _0x2dc677=this[_0x2e6196(0x300)]();if(_0x34fbea){const _0x3ad1f0=Us(this[_0x2e6196(0x432)],_0x629462,this[_0x2e6196(0x33f)],_0x2fc0a4,_0x46e058,_0x2dc677);return _0x3ad1f0 instanceof G?_0x3ad1f0[_0x2e6196(0x198)]():(_0x3ad1f0 instanceof Y||_0x3ad1f0 instanceof q)&&_0x3ad1f0['resend'](),_0x3ad1f0;}return this['_injector'][_0x2e6196(0x116)](Q,_0x629462,this['_type'],_0x2fc0a4,_0x46e058,_0x2dc677);}[_0x1e1deb(0x16e)](_0x346910,_0xce41be){const _0x44e2c8=_0x1e1deb;var _0x6c8128,_0x20cec4;const _0x44723e=this['_compressMutationService'][_0x44e2c8(0x3c1)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x44e2c8(0x3c1)]['getInterceptPoints']()[_0x44e2c8(0x1b3)]);(_0x6c8128=_0x44723e((_0x346910==null?void 0x0:_0x346910[_0x44e2c8(0x357)])||[],null))==null||_0x6c8128[_0x44e2c8(0x23e)](_0x13267d=>this[_0x44e2c8(0x1fb)]['executeCommand'](_0x13267d['id'],_0x13267d[_0x44e2c8(0x42b)])),(_0x20cec4=_0x44723e(_0xce41be||[],null))==null||_0x20cec4[_0x44e2c8(0x23e)](_0x35af36=>this[_0x44e2c8(0x1fb)]['executeCommand'](_0x35af36['id'],_0x35af36[_0x44e2c8(0x42b)]));}};Ze=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x5f4df3),p(0x9,_0x9845f),p(0xa,_0x49507b),p(0xb,_0x3660f2),p(0xc,_0x16cd37(tt))],Ze);let It=class extends Ze{constructor(_0x359404,_0x56e96b,_0x30c039,_0x26c5bb,_0x1c93d5,_0x118725,_0x579c05,_0x236d9a,_0x43f6cf,_0x2c7ec4,_0x196a6d,_0x5b14db,_0x187016,_0x35b023,_0x1a2ce6,_0x529075,_0x3701ed){const _0x51004e=_0x1e1deb;super(_0x359404,_0x56e96b,_0x30c039,_0x26c5bb,_0x1c93d5,_0x118725,_0x579c05,_0x236d9a,_0x187016,_0x35b023,_0x1a2ce6,_0x529075,_0x3701ed),this[_0x51004e(0x370)]=_0x359404,this['type']=_0x56e96b,this['session']=_0x30c039,this['_docStateChangeManagerService']=_0x43f6cf,this[_0x51004e(0x185)]=_0x2c7ec4,this[_0x51004e(0x29e)]=_0x196a6d,this['_docSyncEditingCollabCursorService']=_0x5b14db;}[_0x1e1deb(0x300)](){const _0x2f6400=_0x1e1deb,_0x4d6a89=super[_0x2f6400(0x300)]();return _0x4d6a89[_0x2f6400(0x2d2)]=_0x520a34=>this[_0x2f6400(0x185)][_0x2f6400(0x218)](_0x520a34),_0x4d6a89[_0x2f6400(0xfe)]=_0x13146d=>this[_0x2f6400(0x29e)][_0x2f6400(0x137)](_0x13146d),_0x4d6a89[_0x2f6400(0x3ff)]=_0x172914=>this[_0x2f6400(0x29c)][_0x2f6400(0x40e)](_0x172914),_0x4d6a89[_0x2f6400(0x1c5)]=_0xa4dfa7=>this[_0x2f6400(0x185)][_0x2f6400(0x3f9)](_0xa4dfa7),_0x4d6a89;}async[_0x1e1deb(0x37a)](){const _0x228b58=_0x1e1deb,_0x1be8b0=await super[_0x228b58(0x37a)]();return this[_0x228b58(0x32e)](this[_0x228b58(0x1fb)][_0x228b58(0x250)]((_0x53e24f,_0x24a276)=>{const _0x3fbb43=_0x228b58;if(_0x53e24f[_0x3fbb43(0x2cc)]!==_0x5cd9c4[_0x3fbb43(0x173)]||_0x24a276!=null&&_0x24a276[_0x3fbb43(0x292)]||_0x24a276!=null&&_0x24a276[_0x3fbb43(0x270)])return;const _0x2359a3=_0x53e24f[_0x3fbb43(0x42b)];if((_0x2359a3==null?void 0x0:_0x2359a3['unitId'])!==this[_0x3fbb43(0x370)])return;let _0x343ffe=_0x53e24f;if(_0x343ffe['id']===_0x54abea['id']){const _0x3fd6d3=_0x343ffe[_0x3fbb43(0x42b)];_0x343ffe={'id':_0x54abea['id'],'type':_0x5cd9c4[_0x3fbb43(0x173)],'params':{'unitId':_0x3fd6d3[_0x3fbb43(0x439)],'actions':_0x3fd6d3['actions'],'textRanges':null}};}const _0x1cbdf3=this[_0x3fbb43(0x312)][_0x3fbb43(0x3c1)]['fetchThroughInterceptors'](this[_0x3fbb43(0x312)][_0x3fbb43(0x3c1)][_0x3fbb43(0x3d2)]()[_0x3fbb43(0x344)])([_0x343ffe],null)||[_0x343ffe];this[_0x3fbb43(0x2f3)](_0x1cbdf3[0x0]);})),_0x1be8b0;}};It=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x441fe2(_0x30c46a)),p(0x9,_0x441fe2(Je)),p(0xa,_0x441fe2(ze)),p(0xb,_0x441fe2(jt)),p(0xc,_0x5f4df3),p(0xd,_0x9845f),p(0xe,_0x49507b),p(0xf,_0x3660f2),p(0x10,_0x16cd37(tt))],It);let Et=class extends Ze{constructor(_0xa19b1c,_0x522f30,_0x21b901,_0x7db238,_0x343306,_0x241c5f,_0x3a4710,_0x5743a6,_0x3e4f07,_0x4e3047,_0x2a8dcd,_0x5a5792,_0x2ea1a3,_0x4f87c3){const _0x2258a9=_0x1e1deb;super(_0xa19b1c,_0x522f30,_0x21b901,_0x7db238,_0x343306,_0x241c5f,_0x3a4710,_0x5743a6,_0x4e3047,_0x2a8dcd,_0x5a5792,_0x2ea1a3,_0x4f87c3),this[_0x2258a9(0x370)]=_0xa19b1c,this['type']=_0x522f30,this[_0x2258a9(0x11e)]=_0x21b901,this[_0x2258a9(0x174)]=_0x3e4f07;}[_0x1e1deb(0x300)](){const _0x310f9d=_0x1e1deb,_0x2ef298=super[_0x310f9d(0x300)]();return _0x2ef298[_0x310f9d(0xfe)]=_0x418d3f=>this[_0x310f9d(0x174)]['transformSelections'](_0x418d3f),_0x2ef298;}async['_init'](){const _0x40e195=_0x1e1deb,_0x120c0f=await super['_init']();return this[_0x40e195(0x32e)](this[_0x40e195(0x1fb)][_0x40e195(0x250)]((_0x1cb520,_0x3785e0)=>{const _0x39b850=_0x40e195;if(_0x1cb520[_0x39b850(0x2cc)]!==_0x5cd9c4[_0x39b850(0x173)]||_0x3785e0!=null&&_0x3785e0['fromCollab']||_0x3785e0!=null&&_0x3785e0[_0x39b850(0x270)])return;const _0x323ac4=_0x1cb520[_0x39b850(0x42b)];if((_0x323ac4==null?void 0x0:_0x323ac4[_0x39b850(0x439)])!==this[_0x39b850(0x370)])return;const _0x37ba9e=_0x1cb520,_0x48510b=this[_0x39b850(0x312)][_0x39b850(0x3c1)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x37ba9e],null)||[_0x37ba9e];this[_0x39b850(0x2f3)](_0x48510b[0x0]);})),_0x120c0f;}};Et=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x441fe2(qe)),p(0x9,_0x5f4df3),p(0xa,_0x9845f),p(0xb,_0x49507b),p(0xc,_0x3660f2),p(0xd,_0x16cd37(tt))],Et);const os=[_0x1e1deb(0x38b),'jiqing500',_0x1e1deb(0x34a),_0x1e1deb(0x369),_0x1e1deb(0x275),_0x1e1deb(0x2c4)];class xt extends _0xc94eea{constructor(){const _0x2e59f0=_0x1e1deb;super(...arguments),l(this,_0x2e59f0(0x36b),new Map()),l(this,_0x2e59f0(0x28a),0x0);}[_0x1e1deb(0x3bf)](_0x470b83){const _0x25a40e=_0x1e1deb;if(this[_0x25a40e(0x36b)]['has'](_0x470b83))return this[_0x25a40e(0x36b)][_0x25a40e(0x10a)](_0x470b83);const _0x5cb892=os[this[_0x25a40e(0x28a)]];return this[_0x25a40e(0x28a)]=(this[_0x25a40e(0x28a)]+0x1)%os[_0x25a40e(0x426)],this[_0x25a40e(0x36b)]['set'](_0x470b83,_0x5cb892),_0x5cb892;}}var rr=Object['defineProperty'],or=Object[_0x1e1deb(0x32c)],ar=(_0x5c0c52,_0x1c47c7,_0x203b27,_0x438e61)=>{const _0x1e5e13=_0x1e1deb;for(var _0x2e701a=_0x438e61>0x1?void 0x0:_0x438e61?or(_0x1c47c7,_0x203b27):_0x1c47c7,_0x20d5a3=_0x5c0c52[_0x1e5e13(0x426)]-0x1,_0x577512;_0x20d5a3>=0x0;_0x20d5a3--)(_0x577512=_0x5c0c52[_0x20d5a3])&&(_0x2e701a=(_0x438e61?_0x577512(_0x1c47c7,_0x203b27,_0x2e701a):_0x577512(_0x2e701a))||_0x2e701a);return _0x438e61&&_0x2e701a&&rr(_0x1c47c7,_0x203b27,_0x2e701a),_0x2e701a;},_e=(_0x54e9fe,_0x19c3c3)=>(_0x3886e7,_0x27df62)=>_0x19c3c3(_0x3886e7,_0x27df62,_0x54e9fe);const cr=0x12c,hr=0x64,lr=()=>{let _0x4950f8=[],_0x30a567=!0x1;return _0x5c54f6=>{const _0x4cd4d5=_0x44de;_0x4950f8[_0x4cd4d5(0x39d)](_0x5c54f6),_0x30a567||(_0x30a567=!0x0,setTimeout(()=>{const _0x165b1b=_0x4cd4d5;_0x4950f8[_0x165b1b(0x23e)](_0x4082dc=>_0x4082dc()),_0x4950f8=[],_0x30a567=!0x1;}));};};let Ct=class extends _0x5b9cf1{constructor(_0x4e9f03,_0x511d86,_0x1b7a28,_0x2032a7,_0x3d55da,_0x1ab1f8,_0x18bdae,_0x9d287){const _0x557274=_0x1e1deb;super(),l(this,'_online',!0x1),l(this,_0x557274(0x37a),!0x1),l(this,_0x557274(0x42f),new _0x16d05d(new Map())),l(this,_0x557274(0x430),this[_0x557274(0x42f)][_0x557274(0x14e)]()),l(this,_0x557274(0x1cd),new _0x16d05d([])),l(this,_0x557274(0x421),this[_0x557274(0x1cd)][_0x557274(0x119)](_0x380776(cr))),l(this,_0x557274(0x22d),_0x21f8bc((_0x5cf6c9,_0x1f1997)=>{const _0x5b1bc8=_0x557274,_0x577a47={'eventID':_0x1c415b[_0x5b1bc8(0x21d)],'data':{'unitID':this[_0x5b1bc8(0x370)],'memberID':this['_session'][_0x5b1bc8(0x3be)](),'selection':_0x419817(_0x5cf6c9,_0x1f1997['range'])}};this[_0x5b1bc8(0x188)][_0x5b1bc8(0x409)](_0x577a47,this[_0x5b1bc8(0x370)]);},hr)),(this['unitID']=_0x4e9f03,this[_0x557274(0x188)]=_0x511d86,this[_0x557274(0x432)]=_0x1b7a28,this[_0x557274(0x231)]=_0x2032a7,this[_0x557274(0x13e)]=_0x3d55da,this['_univerInstanceService']=_0x1ab1f8,this['_commandService']=_0x18bdae,this['_refRangeService']=_0x9d287);}get[_0x1e1deb(0x30d)](){const _0x2e23c9=_0x1e1deb;return this['_cursorInfo$'][_0x2e23c9(0x107)]();}get[_0x1e1deb(0x25d)](){const _0x4a8f9b=_0x1e1deb;return this[_0x4a8f9b(0x1cd)][_0x4a8f9b(0x107)]();}[_0x1e1deb(0x1de)](){const _0x3913b5=_0x1e1deb;super[_0x3913b5(0x1de)](),this[_0x3913b5(0x42f)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x3913b5(0x1cd)][_0x3913b5(0x3cd)]([]),this[_0x3913b5(0x1cd)][_0x3913b5(0x433)]();}['init'](){const _0x54d00e=_0x1e1deb;this[_0x54d00e(0x37a)]||(this['_init']=!0x0,this[_0x54d00e(0x188)][_0x54d00e(0x220)][_0x54d00e(0x119)](_0x3f75b0(this[_0x54d00e(0x413)]))[_0x54d00e(0x3e0)](_0x50e4f9=>{const _0x40111a=_0x54d00e;_0x50e4f9===fe[_0x40111a(0x3c2)]?this[_0x40111a(0x225)]():this[_0x40111a(0x437)]();}),this[_0x54d00e(0x188)][_0x54d00e(0x19f)]['pipe'](_0x3f75b0(this[_0x54d00e(0x413)]))[_0x54d00e(0x3e0)](_0x458fc1=>{const _0x57bc0b=_0x54d00e,_0xf77f0c=_0x458fc1[_0x57bc0b(0x2f8)];_0xf77f0c===_0x1c415b[_0x57bc0b(0x21d)]&&this[_0x57bc0b(0x352)](_0x458fc1),_0xf77f0c===_0x1c415b[_0x57bc0b(0x25e)]&&this[_0x57bc0b(0x2a2)](_0x458fc1);}),this[_0x54d00e(0x2e7)](),this[_0x54d00e(0x32e)](this[_0x54d00e(0x1fb)][_0x54d00e(0x250)](_0x26c1d9=>{const _0x51605b=_0x54d00e;if(this[_0x51605b(0x132)]&&_0x26c1d9['id']===_0x37d621['id']&&_0x26c1d9[_0x51605b(0x42b)][_0x51605b(0x439)]===this[_0x51605b(0x370)]){const _0x3da80b=_0x26c1d9[_0x51605b(0x42b)];this['_updateLocalCursor'](_0x3da80b[_0x51605b(0x3b0)],_0x3da80b['selections'][0x0]);}})));}[_0x1e1deb(0x352)](_0x38b9f7){const _0x2fe3b3=_0x1e1deb;var _0x4685b9,_0x42f28a;const {memberID:_0x5c9b22,selection:_0x5c34b2}=_0x38b9f7['data'],{sheetName:_0x1cd938,range:_0x22683a}=_0x370f5d(_0x5c34b2),_0x45ac40={'name':(_0x42f28a=(_0x4685b9=this[_0x2fe3b3(0x13e)]['getMember'](this[_0x2fe3b3(0x370)],_0x5c9b22))==null?void 0x0:_0x4685b9[_0x2fe3b3(0x10e)])!=null?_0x42f28a:_0x2fe3b3(0x28e),'range':this[_0x2fe3b3(0x1b8)](_0x1cd938,_0x22683a),'sheetID':_0x1cd938,'color':this[_0x2fe3b3(0x231)][_0x2fe3b3(0x3bf)](_0x5c9b22),'selection':_0x5c34b2},_0x716212=this[_0x2fe3b3(0x30d)];_0x716212[_0x2fe3b3(0x394)](_0x5c9b22,_0x45ac40),this[_0x2fe3b3(0x42f)]['next'](_0x716212);}[_0x1e1deb(0x2a2)](_0x14528c){const _0x3e7c05=_0x1e1deb,{memberID:_0xa3bdd9}=_0x14528c[_0x3e7c05(0x265)],_0x12f015=this['cursorInfo'];_0x12f015['delete'](_0xa3bdd9),this[_0x3e7c05(0x42f)][_0x3e7c05(0x3cd)](_0x12f015);}[_0x1e1deb(0x1b8)](_0x1f2a52,_0x3469ff){const _0x49c2f9=_0x1e1deb;var _0xe1d6ca,_0x75541b;const _0x4e7748=(_0x75541b=(_0xe1d6ca=this[_0x49c2f9(0x145)][_0x49c2f9(0x351)](this[_0x49c2f9(0x370)]))==null?void 0x0:_0xe1d6ca[_0x49c2f9(0x2ee)](_0x1f2a52))==null?void 0x0:_0x75541b['getMergeData']();return(_0x4e7748==null?void 0x0:_0x4e7748['find'](_0x211ddb=>_0xf02aa9[_0x49c2f9(0x1cf)](_0x211ddb,_0x3469ff)))||_0x3469ff;}['_onRefRangeChange'](){const _0x3a6dc4=_0x1e1deb,_0xe3fdf9=new _0x5b86e3(),_0x10d318=lr(),_0x4586b8=()=>{const _0x917949=_0x44de;_0xe3fdf9[_0x917949(0x1de)]();const _0xa7555a=(_0x4886af,_0x9d81cb,_0x3926e9,_0x445848)=>{const _0x5f323c=_0x917949;let _0x137562=[];switch(_0x4886af['id']){case _0x5d94fe[_0x5f323c(0x419)]:{_0x137562=_0x5f1e8b(_0x4886af,_0x445848);break;}case _0x5d94fe['DeleteRangeMoveUpCommandId']:{_0x137562=_0x31ef26(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x3f3)]:{_0x137562=_0x3fcda2(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x316)]:{_0x137562=_0x4c8313(_0x4886af,_0x445848);break;}case _0x5d94fe['InsertRangeMoveRightCommandId']:{_0x137562=_0x5abfa3(_0x4886af,_0x445848);break;}case _0x5d94fe['InsertRowCommandId']:{_0x137562=_0x4865ab(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x3c9)]:{_0x137562=_0x158655(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x404)]:{_0x137562=_0x1cf9bc(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x26c)]:{_0x137562=_0x361c3a(_0x4886af,_0x445848);break;}}const _0x57be6a=_0x1df086(_0x137562,_0x445848),_0x38727c=this[_0x5f323c(0x30d)]['get'](_0x9d81cb);if(_0x38727c&&_0x57be6a){const _0x61ee33={..._0x38727c,'range':_0x57be6a};this['cursorInfo'][_0x5f323c(0x394)](_0x9d81cb,_0x61ee33),_0x10d318(()=>{const _0x1c8741=_0x5f323c,_0x269d9c=this[_0x1c8741(0x2b8)][_0x1c8741(0x1d6)](_0x57be6a,_0x3411b1=>(_0x269d9c['dispose'](),_0xa7555a(_0x3411b1,_0x9d81cb,_0x3926e9,_0x57be6a)));_0xe3fdf9['add'](_0x269d9c);});}return{'redos':[],'undos':[]};};this[_0x917949(0x30d)][_0x917949(0x23e)]((_0x4d88ef,_0x26d583)=>{const _0x377cb4=_0x917949,{range:_0x45913e,sheetID:_0x10fc86}=_0x4d88ef,_0x2a4792=this[_0x377cb4(0x2b8)]['registerRefRange'](_0x45913e,_0x429f4d=>(_0x2a4792[_0x377cb4(0x1de)](),_0xa7555a(_0x429f4d,_0x26d583,_0x10fc86,_0x45913e)));_0xe3fdf9[_0x377cb4(0x11a)](_0x2a4792);});};this['disposeWithMe'](_0x4259e5(this[_0x3a6dc4(0x42f)][_0x3a6dc4(0x3e0)](()=>{_0x4586b8();})));}[_0x1e1deb(0x225)](){const _0x14af37=_0x1e1deb;var _0x4331d6,_0x2c27ff;if(this['_online']=!0x0,((_0x4331d6=this['_univerInstanceService'][_0x14af37(0x228)]())==null?void 0x0:_0x4331d6['getUnitId']())!==this[_0x14af37(0x370)])return;const _0x29ff7e=(_0x2c27ff=this['_injector'][_0x14af37(0x10a)](_0x402922)[_0x14af37(0x310)]())==null?void 0x0:_0x2c27ff[0x0],_0x177507=this[_0x14af37(0x145)]['getCurrentUnitForType'](_0x37298b[_0x14af37(0x3d0)])['getActiveSheet']();_0x29ff7e&&_0x177507&&this['_updateLocalCursor'](_0x177507[_0x14af37(0x2c2)](),_0x29ff7e);}[_0x1e1deb(0x437)](){const _0x4afecc=_0x1e1deb;this[_0x4afecc(0x132)]=!0x1;}};Ct=ar([_e(0x2,_0x441fe2(_0x9c5d64)),_e(0x3,_0x441fe2(xt)),_e(0x4,_0x441fe2(ne)),_e(0x5,_0x4902a5),_e(0x6,_0x9845f),_e(0x7,_0x441fe2(_0x298890))],Ct);var _r=Object[_0x1e1deb(0x158)],ur=Object[_0x1e1deb(0x32c)],dr=(_0x2e92fb,_0x554deb,_0xcbae60,_0x5611b6)=>{const _0x464353=_0x1e1deb;for(var _0x1d7cd3=_0x5611b6>0x1?void 0x0:_0x5611b6?ur(_0x554deb,_0xcbae60):_0x554deb,_0x48a9b2=_0x2e92fb[_0x464353(0x426)]-0x1,_0x5ea5c1;_0x48a9b2>=0x0;_0x48a9b2--)(_0x5ea5c1=_0x2e92fb[_0x48a9b2])&&(_0x1d7cd3=(_0x5611b6?_0x5ea5c1(_0x554deb,_0xcbae60,_0x1d7cd3):_0x5ea5c1(_0x1d7cd3))||_0x1d7cd3);return _0x5611b6&&_0x1d7cd3&&_r(_0x554deb,_0xcbae60,_0x1d7cd3),_0x1d7cd3;},te=(_0x47ca82,_0x6dbd99)=>(_0xe49b80,_0x1ee1bd)=>_0x6dbd99(_0xe49b80,_0x1ee1bd,_0x47ca82);const mr=0x12c,fr=0x64;let bt=class extends _0x5b9cf1{constructor(_0xbcce6d,_0x202292,_0x4b679,_0x47b55d,_0x1f1b4d,_0x37ec6f,_0x23652a,_0x52f160,_0x279095){const _0x179e4c=_0x1e1deb;super(),l(this,_0x179e4c(0x132),!0x1),l(this,_0x179e4c(0x37a),!0x1),l(this,_0x179e4c(0x42f),new _0x16d05d(new Map())),l(this,_0x179e4c(0x430),this[_0x179e4c(0x42f)][_0x179e4c(0x14e)]()),l(this,'_roomMembers$',new _0x16d05d([])),l(this,_0x179e4c(0x421),this['_roomMembers$'][_0x179e4c(0x119)](_0x380776(mr))),l(this,'_updateLocalCursor',_0x21f8bc(_0xe2dfd4=>{const _0x4d4f7d=_0x179e4c,_0x4ec18c={'eventID':_0x1c415b[_0x4d4f7d(0x21d)],'data':{'unitID':this[_0x4d4f7d(0x370)],'memberID':this[_0x4d4f7d(0x188)][_0x4d4f7d(0x3be)](),'selection':ys(_0xe2dfd4)}};this[_0x4d4f7d(0x188)][_0x4d4f7d(0x409)](_0x4ec18c,this[_0x4d4f7d(0x370)]);},fr)),(this[_0x179e4c(0x370)]=_0xbcce6d,this['_session']=_0x202292,this[_0x179e4c(0x432)]=_0x4b679,this[_0x179e4c(0x231)]=_0x47b55d,this['_memberService']=_0x1f1b4d,this[_0x179e4c(0x2a4)]=_0x37ec6f,this[_0x179e4c(0x258)]=_0x23652a,this[_0x179e4c(0x145)]=_0x52f160,this[_0x179e4c(0x1fb)]=_0x279095);}get[_0x1e1deb(0x30d)](){const _0x427cc7=_0x1e1deb;return this['_cursorInfo$'][_0x427cc7(0x107)]();}get[_0x1e1deb(0x25d)](){const _0x27a25f=_0x1e1deb;return this['_roomMembers$'][_0x27a25f(0x107)]();}[_0x1e1deb(0x1de)](){const _0x406897=_0x1e1deb;super[_0x406897(0x1de)](),this[_0x406897(0x42f)][_0x406897(0x3cd)](new Map()),this[_0x406897(0x42f)][_0x406897(0x433)](),this[_0x406897(0x1cd)][_0x406897(0x3cd)]([]),this[_0x406897(0x1cd)]['complete']();}[_0x1e1deb(0x3db)](){const _0x583c2b=_0x1e1deb;this[_0x583c2b(0x37a)]||(this['_init']=!0x0,this['_session'][_0x583c2b(0x220)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x28f46a=>{const _0x582311=_0x583c2b;_0x28f46a===fe['ONLINE']?this[_0x582311(0x225)]():this['_toggleOffline']();}),this[_0x583c2b(0x188)][_0x583c2b(0x19f)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x376baa=>{const _0x285be2=_0x583c2b,_0x12639f=_0x376baa['eventID'];_0x12639f===_0x1c415b['UPDATE_CURSOR']&&this[_0x285be2(0x352)](_0x376baa),_0x12639f===_0x1c415b[_0x285be2(0x25e)]&&this[_0x285be2(0x2a2)](_0x376baa);}),this['disposeWithMe'](this['_commandService'][_0x583c2b(0x250)](_0x2f0425=>{const _0x450240=_0x583c2b,_0x1a1e9c=_0x2f0425[_0x450240(0x42b)];_0x1a1e9c!=null&&this[_0x450240(0x132)]&&_0x2f0425['id']===_0x1ed2cb['id']&&_0x1a1e9c[_0x450240(0x439)]===this[_0x450240(0x370)]&&_0x1a1e9c[_0x450240(0x348)]===!0x1&&this[_0x450240(0x22d)](_0x1a1e9c[_0x450240(0x345)]);})),this['_syncEditingCollabCursorService'][_0x583c2b(0x138)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x3c56ea=>{const _0x5a9b06=_0x583c2b;if((_0x3c56ea==null?void 0x0:_0x3c56ea[_0x5a9b06(0x370)])!==this['unitID'])return;const _0x1ceb45={'eventID':_0x1c415b['UPDATE_CURSOR'],'data':_0x3c56ea};this[_0x5a9b06(0x352)](_0x1ceb45);}),this['disposeWithMe'](this[_0x583c2b(0x1fb)][_0x583c2b(0x250)](_0x172710=>{const _0x5c2352=_0x583c2b;if(_0x172710[_0x5c2352(0x42b)]==null)return;const _0x3c6752=_0x172710[_0x5c2352(0x42b)];if(_0x172710['id']!==_0x54abea['id']||_0x3c6752[_0x5c2352(0x439)]!==this[_0x5c2352(0x370)])return;const _0x2eee03={'id':_0x5c2352(0x412),'params':_0x3c6752},_0x505cef=this[_0x5c2352(0x30d)];for(const [_0x44c87c,_0xcc40dd]of _0x505cef){const _0x5866b8={'id':_0x5c2352(0x412),'params':{'unitId':this[_0x5c2352(0x370)],'actions':null,'textRanges':_0xcc40dd[_0x5c2352(0x345)]}},_0x292b95=this[_0x5c2352(0x258)][_0x5c2352(0x2d3)](_0x2eee03,_0x5866b8,!0x1);if(_0x1d42ec(_0x292b95))throw _0x292b95[_0x5c2352(0x1f8)];_0x505cef[_0x5c2352(0x394)](_0x44c87c,{..._0xcc40dd,'ranges':_0x292b95[_0x5c2352(0x2fa)][_0x5c2352(0x42b)][_0x5c2352(0x203)]});}queueMicrotask(()=>{const _0x5a7bd1=_0x5c2352;this[_0x5a7bd1(0x42f)]['next'](_0x505cef);});})));}[_0x1e1deb(0x352)](_0x5c8291){const _0x367221=_0x1e1deb;var _0x19a125,_0x4a45d;const {memberID:_0x4ae349,selection:_0x5a8a5c}=_0x5c8291['data'],_0x44d5b8=Kn(_0x5a8a5c),_0x3ed819=(_0x4a45d=(_0x19a125=this['_memberService'][_0x367221(0x3a0)](this[_0x367221(0x370)],_0x4ae349))==null?void 0x0:_0x19a125[_0x367221(0x10e)])!=null?_0x4a45d:_0x367221(0x28e),_0x4b500a={'color':this[_0x367221(0x231)][_0x367221(0x3bf)](_0x4ae349),'name':_0x3ed819,'ranges':_0x44d5b8},_0x26b593=this[_0x367221(0x30d)];_0x26b593['set'](_0x4ae349,_0x4b500a),this[_0x367221(0x42f)][_0x367221(0x3cd)](_0x26b593);}[_0x1e1deb(0x2a2)](_0x3a0293){const _0x1d1916=_0x1e1deb,{memberID:_0x129ef2}=_0x3a0293[_0x1d1916(0x265)],_0x48d62d=this[_0x1d1916(0x30d)];_0x48d62d[_0x1d1916(0x36f)](_0x129ef2),this[_0x1d1916(0x42f)][_0x1d1916(0x3cd)](_0x48d62d);}[_0x1e1deb(0x225)](){const _0x18f2e0=_0x1e1deb;var _0x21820c;if(this['_online']=!0x0,((_0x21820c=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x21820c[_0x18f2e0(0x3cf)]())!==this['unitID'])return;const _0xced87=this['_injector']['get'](_0x490704)[_0x18f2e0(0x31f)](),_0x3c36b0=_0xced87==null?void 0x0:_0xced87['map'](_0x14d063);Array[_0x18f2e0(0x117)](_0x3c36b0)&&_0x3c36b0['length']>0x0&&this[_0x18f2e0(0x22d)](_0x3c36b0);}[_0x1e1deb(0x437)](){const _0x52823f=_0x1e1deb;this[_0x52823f(0x132)]=!0x1;}};bt=dr([te(0x2,_0x441fe2(_0x9c5d64)),te(0x3,_0x441fe2(xt)),te(0x4,_0x441fe2(ne)),te(0x5,_0x441fe2(jt)),te(0x6,_0x1e0f5c),te(0x7,_0x4902a5),te(0x8,_0x9845f)],bt);var gr=Object[_0x1e1deb(0x158)],Sr=Object[_0x1e1deb(0x32c)],pr=(_0x2fd3c3,_0x31cc47,_0x130d55,_0x5d098d)=>{const _0x9b0a8b=_0x1e1deb;for(var _0x2f9bb8=_0x5d098d>0x1?void 0x0:_0x5d098d?Sr(_0x31cc47,_0x130d55):_0x31cc47,_0x11fc9a=_0x2fd3c3[_0x9b0a8b(0x426)]-0x1,_0x1f5615;_0x11fc9a>=0x0;_0x11fc9a--)(_0x1f5615=_0x2fd3c3[_0x11fc9a])&&(_0x2f9bb8=(_0x5d098d?_0x1f5615(_0x31cc47,_0x130d55,_0x2f9bb8):_0x1f5615(_0x2f9bb8))||_0x2f9bb8);return _0x5d098d&&_0x2f9bb8&&gr(_0x31cc47,_0x130d55,_0x2f9bb8),_0x2f9bb8;},ct=(_0x50b993,_0xe197fb)=>(_0x191dd0,_0x3b0701)=>_0xe197fb(_0x191dd0,_0x3b0701,_0x50b993);let ge=class extends _0x5b9cf1{constructor(_0x11d64d,_0x517c96,_0x3bf14c){const _0x40646b=_0x1e1deb;super(),l(this,'_entities',new Map()),l(this,_0x40646b(0x325),new _0x365a49()),(this[_0x40646b(0x145)]=_0x11d64d,this[_0x40646b(0x432)]=_0x517c96,this[_0x40646b(0x341)]=_0x3bf14c,this[_0x40646b(0x37a)]());}[_0x1e1deb(0x1de)](){const _0x203e4c=_0x1e1deb;super[_0x203e4c(0x1de)](),this[_0x203e4c(0x325)][_0x203e4c(0x433)](),this[_0x203e4c(0x272)][_0x203e4c(0x23e)](_0x31f7da=>_0x31f7da['dispose']());}[_0x1e1deb(0x19c)](_0x197472){const _0x875ea6=_0x1e1deb;return this[_0x875ea6(0x272)][_0x875ea6(0x1e3)](_0x197472)?this[_0x875ea6(0x272)][_0x875ea6(0x10a)](_0x197472)[_0x875ea6(0x430)]:this[_0x875ea6(0x325)][_0x875ea6(0x119)](_0x4543ab(_0x573f37=>_0x573f37[_0x875ea6(0x370)]===_0x197472),_0xd6054c(_0x3aa0b9=>_0x3aa0b9[_0x875ea6(0x430)]));}[_0x1e1deb(0x37a)](){const _0x4f3a8b=_0x1e1deb;this[_0x4f3a8b(0x145)][_0x4f3a8b(0x405)](_0x37298b['UNIVER_SHEET'])[_0x4f3a8b(0x119)](_0x3f75b0(this['dispose$']))[_0x4f3a8b(0x3e0)](async _0x496678=>{const _0x5701d0=_0x4f3a8b,_0x4ea4ff=_0x496678[_0x5701d0(0x3cf)](),_0x4941fa=await this['_startSheetCollabCursor'](_0x4ea4ff);this[_0x5701d0(0x325)]['next'](_0x4941fa),this[_0x5701d0(0x272)]['set'](_0x4ea4ff,_0x4941fa);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x37298b[_0x4f3a8b(0x1c7)])[_0x4f3a8b(0x119)](_0x3f75b0(this[_0x4f3a8b(0x413)]))[_0x4f3a8b(0x119)](_0x4543ab(_0x396c76=>!_0x396c76[_0x4f3a8b(0x3cf)]()['startsWith']('__')))[_0x4f3a8b(0x3e0)](async _0x212673=>{const _0x378346=_0x4f3a8b,_0x2c4194=_0x212673[_0x378346(0x3cf)](),_0x24b8f1=await this[_0x378346(0x35b)](_0x2c4194);this[_0x378346(0x325)]['next'](_0x24b8f1),this[_0x378346(0x272)][_0x378346(0x394)](_0x2c4194,_0x24b8f1);}),_0x5726e7(this[_0x4f3a8b(0x145)][_0x4f3a8b(0x363)](_0x37298b['UNIVER_DOC']),this[_0x4f3a8b(0x145)][_0x4f3a8b(0x363)](_0x37298b[_0x4f3a8b(0x3d0)]))[_0x4f3a8b(0x119)](_0x3f75b0(this[_0x4f3a8b(0x413)]))[_0x4f3a8b(0x3e0)](_0x3e5738=>{const _0x4b44b0=_0x4f3a8b,_0xebe98c=_0x3e5738[_0x4b44b0(0x3cf)](),_0x4848d3=this[_0x4b44b0(0x272)]['get'](_0xebe98c);_0x4848d3&&(_0x4848d3[_0x4b44b0(0x1de)](),this[_0x4b44b0(0x272)]['delete'](_0xebe98c));});}async[_0x1e1deb(0x3c8)](_0x4c3944){const _0xcd6beb=_0x1e1deb,_0x23e121=await this[_0xcd6beb(0x341)]['requireSession'](_0x4c3944),_0x390b84=this[_0xcd6beb(0x432)][_0xcd6beb(0x116)](Ct,_0x4c3944,_0x23e121);return _0x390b84[_0xcd6beb(0x3db)](),_0x390b84;}async[_0x1e1deb(0x35b)](_0x2108f2){const _0x28fb16=_0x1e1deb,_0x562c77=await this['_collabSessionService'][_0x28fb16(0x2c6)](_0x2108f2),_0x587c69=this[_0x28fb16(0x432)]['createInstance'](bt,_0x2108f2,_0x562c77);return _0x587c69[_0x28fb16(0x3db)](),_0x587c69;}};ge=pr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],ge),ct(0x0,_0x4902a5),ct(0x1,_0x441fe2(_0x9c5d64)),ct(0x2,_0x441fe2(pe))],ge);const Ue=0x14,as=0xc8,ht=0x4,vr=0x5;function Ir(_0x4fae90,_0x55c097){const _0x332056=_0x1e1deb;let {radius:_0x18a8eb,width:_0xcdf00e,height:_0xec2079}=_0x55c097;_0x18a8eb=_0x18a8eb!=null?_0x18a8eb:0x0,_0xcdf00e=_0xcdf00e!=null?_0xcdf00e:0x1e,_0xec2079=_0xec2079!=null?_0xec2079:0x1e;let _0x157922=0x0,_0x2974ce=0x0,_0x145dc8=0x0;_0x157922=_0x2974ce=_0x145dc8=Math[_0x332056(0x414)](_0x18a8eb,_0xcdf00e/0x2,_0xec2079/0x2),_0x4fae90[_0x332056(0x36d)](),_0x4fae90['moveTo'](_0x157922,0x0),_0x4fae90['lineTo'](_0xcdf00e-_0x2974ce,0x0),_0x4fae90['arc'](_0xcdf00e-_0x2974ce,_0x2974ce,_0x2974ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x4fae90['lineTo'](_0xcdf00e,_0xec2079-_0x145dc8),_0x4fae90[_0x332056(0x2ae)](_0xcdf00e-_0x145dc8,_0xec2079-_0x145dc8,_0x145dc8,0x0,Math['PI']/0x2,!0x1),_0x4fae90[_0x332056(0x299)](0x0,_0xec2079),_0x4fae90['lineTo'](0x0,_0x157922),_0x4fae90[_0x332056(0x2ae)](_0x157922,_0x157922,_0x157922,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4fae90[_0x332056(0x27e)](),_0x55c097[_0x332056(0x248)]&&(_0x4fae90[_0x332056(0x2e8)](),_0x4fae90['fillStyle']=_0x55c097[_0x332056(0x248)],_0x55c097[_0x332056(0x112)]===_0x332056(0x3cc)?_0x4fae90[_0x332056(0x248)](_0x332056(0x3cc)):_0x4fae90[_0x332056(0x248)](),_0x4fae90['restore']());}class it extends _0x26e4f3{constructor(_0x778f19,_0x355f1c){const _0x51c1d6=_0x1e1deb;super(_0x778f19,_0x355f1c),l(this,_0x51c1d6(0x39f)),l(this,_0x51c1d6(0x2ce)),(this[_0x51c1d6(0x39f)]=_0x355f1c==null?void 0x0:_0x355f1c[_0x51c1d6(0x39f)],this[_0x51c1d6(0x2ce)]=_0x355f1c==null?void 0x0:_0x355f1c['text']);}static[_0x1e1deb(0x3dc)](_0x2e5c4c,_0x58259c){const _0x234a7f=_0x1e1deb,{text:_0x42336e,color:_0x8b4830}=_0x58259c;_0x2e5c4c['save'](),_0x2e5c4c[_0x234a7f(0x3df)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xca54fa=_0x2e5c4c['measureText'](_0x42336e)[_0x234a7f(0x3b3)],_0x382391=Math[_0x234a7f(0x414)](_0xca54fa+0x2*ht,as);Ir(_0x2e5c4c,{'height':Ue,'radius':0x4,'width':_0x382391,'fill':_0x8b4830,'evented':!0x1}),_0x2e5c4c[_0x234a7f(0x271)]='#FFF';const _0xb107f6=ht,_0x10f815=Ue-vr,_0x23c570=as-0x2*ht;if(_0xca54fa>_0x23c570){let _0x2b0b1a='',_0xf37d96=0x0;for(const _0x5c80a9 of _0x42336e){const _0x461fb5=_0x2e5c4c[_0x234a7f(0x16d)](_0x5c80a9)[_0x234a7f(0x3b3)];if(_0xf37d96+_0x461fb5<=_0x23c570-_0x2e5c4c[_0x234a7f(0x16d)](_0x234a7f(0x20e))[_0x234a7f(0x3b3)])_0x2b0b1a+=_0x5c80a9,_0xf37d96+=_0x461fb5;else{_0x2b0b1a+=_0x234a7f(0x20e);break;}}_0x2e5c4c[_0x234a7f(0x14b)](_0x2b0b1a,_0xb107f6,_0x10f815);}else _0x2e5c4c[_0x234a7f(0x14b)](_0x42336e,_0xb107f6,_0x10f815);_0x2e5c4c[_0x234a7f(0x41d)]();}[_0x1e1deb(0x10d)](_0x3485b8){const _0x5bd01d=_0x1e1deb;it[_0x5bd01d(0x3dc)](_0x3485b8,this);}}const Er=0x1,Cr=1.5;class br extends _0x26e4f3{constructor(_0x26f13c,_0x14d361){const _0x3b1def=_0x1e1deb;super(_0x26f13c,_0x14d361),l(this,_0x3b1def(0x2aa)),l(this,_0x3b1def(0x155),!0x1),l(this,_0x3b1def(0x411)),l(this,_0x3b1def(0x102),''),l(this,_0x3b1def(0x113),_0x3b1def(0x2da)),l(this,_0x3b1def(0x233)),(_0x14d361&&this['setShapeProps'](_0x14d361),this[_0x3b1def(0x1c8)][_0x3b1def(0x364)](()=>this[_0x3b1def(0x384)]({'hovered':!0x0})),this['onPointerLeave$'][_0x3b1def(0x364)](()=>this[_0x3b1def(0x384)]({'hovered':!0x1})));}['setShapeProps'](_0x12ce4f){const _0x509e63=_0x1e1deb;var _0x5d3f58,_0xd0baf7,_0x32e5eb,_0x21c9a3,_0x320994,_0x2a966a;this['_color']=(_0x5d3f58=_0x12ce4f[_0x509e63(0x39f)])!=null?_0x5d3f58:this[_0x509e63(0x2aa)],this['_hovered']=(_0xd0baf7=_0x12ce4f['hovered'])!=null?_0xd0baf7:this[_0x509e63(0x155)],this['_range']=(_0x32e5eb=_0x12ce4f['range'])!=null?_0x32e5eb:this[_0x509e63(0x411)],this[_0x509e63(0x102)]=(_0x21c9a3=_0x12ce4f[_0x509e63(0x10e)])!=null?_0x21c9a3:this[_0x509e63(0x102)],this[_0x509e63(0x113)]=(_0x320994=_0x12ce4f[_0x509e63(0x18c)])!=null?_0x320994:this[_0x509e63(0x113)],this['_backgroundColor']=(_0x2a966a=_0x12ce4f[_0x509e63(0x429)])!=null?_0x2a966a:this[_0x509e63(0x233)],this['transformByState']({'width':_0x12ce4f[_0x509e63(0x3b3)],'height':_0x12ce4f[_0x509e63(0x2e1)]});}[_0x1e1deb(0x295)](_0x11e636){const _0x535666=_0x1e1deb,{row:_0x12380e,column:_0x4570fc}=_0x11e636;if(_0x12380e>=this[_0x535666(0x411)][_0x535666(0x2c1)]&&_0x12380e<=this[_0x535666(0x411)][_0x535666(0x1be)]&&_0x4570fc>=this[_0x535666(0x411)][_0x535666(0x236)]&&_0x4570fc<=this[_0x535666(0x411)][_0x535666(0x1c1)]){this[_0x535666(0x384)]({'hovered':!0x0});return;}this[_0x535666(0x384)]({'hovered':!0x1});}[_0x1e1deb(0x40c)](_0xd8efa8){return!0x1;}[_0x1e1deb(0x10d)](_0x335a6c){const _0x2f19fe=_0x1e1deb;_0xb0d98f['drawWith'](_0x335a6c,{'width':this[_0x2f19fe(0x3b3)],'height':this[_0x2f19fe(0x2e1)],'strokeWidth':Cr,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2f19fe(0x155)]&&(_0x335a6c[_0x2f19fe(0x2e8)](),_0x335a6c[_0x2f19fe(0x3f0)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']==='bottom'?0x0:-Ue),it[_0x2f19fe(0x3dc)](_0x335a6c,{'text':this[_0x2f19fe(0x102)],'color':this[_0x2f19fe(0x2aa)]}),_0x335a6c[_0x2f19fe(0x41d)]());}}var Tr=Object[_0x1e1deb(0x158)],Rr=Object['getOwnPropertyDescriptor'],Or=(_0x84c562,_0x2b3f89,_0x19547b,_0x662895)=>{const _0x5443f5=_0x1e1deb;for(var _0x51a268=_0x662895>0x1?void 0x0:_0x662895?Rr(_0x2b3f89,_0x19547b):_0x2b3f89,_0x2d551c=_0x84c562[_0x5443f5(0x426)]-0x1,_0x373ef4;_0x2d551c>=0x0;_0x2d551c--)(_0x373ef4=_0x84c562[_0x2d551c])&&(_0x51a268=(_0x662895?_0x373ef4(_0x2b3f89,_0x19547b,_0x51a268):_0x373ef4(_0x51a268))||_0x51a268);return _0x662895&&_0x51a268&&Tr(_0x2b3f89,_0x19547b,_0x51a268),_0x51a268;},lt=(_0x55d54a,_0x53e4d7)=>(_0x3007d7,_0x3981f8)=>_0x53e4d7(_0x3007d7,_0x3981f8,_0x55d54a);const Dr=0x1389;let Tt=class extends _0x5b9cf1{constructor(_0x3fd35e,_0x46ecc0,_0x380d3c,_0x103ed3){const _0x412eb2=_0x1e1deb;super(),l(this,'_cursors',new Set()),l(this,_0x412eb2(0x15a),null),(this[_0x412eb2(0x428)]=_0x3fd35e,this[_0x412eb2(0x2f0)]=_0x46ecc0,this['_collabCursorController']=_0x380d3c,this[_0x412eb2(0x281)]=_0x103ed3,this[_0x412eb2(0x37a)]());}[_0x1e1deb(0x37a)](){const _0x4ae974=_0x1e1deb;this[_0x4ae974(0x2f0)]['currentSkeleton$'][_0x4ae974(0x119)](_0x946afe(this[_0x4ae974(0x413)]),_0x4abf00(_0x42a5a3=>{const _0x3e5a55=_0x4ae974;if(_0x42a5a3){const _0x1c0294=_0x42a5a3[_0x3e5a55(0x35f)];return _0x1a6529(this[_0x3e5a55(0x307)][_0x3e5a55(0x19c)](this[_0x3e5a55(0x428)][_0x3e5a55(0x439)]),this[_0x3e5a55(0x281)][_0x3e5a55(0x24e)])[_0x3e5a55(0x119)](_0x5ac769(([_0x1edbf7,_0x4c4ca9])=>{const _0x22fb7c=_0x3e5a55,_0x1c5d8b=new Map();return _0x1edbf7[_0x22fb7c(0x23e)]((_0x550341,_0x26bd18)=>{const _0x50d53b=_0x22fb7c;if(_0x550341[_0x50d53b(0x438)]===_0x1c0294){const _0x4eb6ca={..._0x550341};_0x4eb6ca[_0x50d53b(0x39f)]=_0x4c4ca9[_0x550341['color']],_0x1c5d8b[_0x50d53b(0x394)](_0x26bd18,_0x4eb6ca);}}),{'skeleton':_0x42a5a3,'cursors':_0x1c5d8b};}));}return _0x4f1794({'skeleton':null,'cursors':new Map()});}))[_0x4ae974(0x3e0)](({skeleton:_0x32e391,cursors:_0x414bca})=>{const _0x540905=_0x4ae974;this[_0x540905(0x383)](),_0x32e391&&this['_updateCollabCursors'](_0x32e391,_0x414bca);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4ae974(0x3e0)](_0x38a844=>{const _0x2a1f90=_0x4ae974;if(_0x38a844==null)return;const {skeleton:_0x16c7df}=_0x38a844,{scene:_0x285ec8}=this[_0x2a1f90(0x428)];_0x285ec8[_0x2a1f90(0x167)][_0x2a1f90(0x364)](_0x21f8bc(_0x25fb68=>{const _0x38a6c6=_0x2a1f90;var _0x5c348a,_0x2baddd;const {offsetX:_0x495000,offsetY:_0x2e86fc}=_0x25fb68,{x:_0x268ffc,y:_0x1a434d}=_0x285ec8['getRelativeToViewportCoord'](_0x261805[_0x38a6c6(0x172)]([_0x495000,_0x2e86fc])),{scaleX:_0x310ff8,scaleY:_0x2b0a64}=_0x285ec8[_0x38a6c6(0x197)](),_0x505959=_0x285ec8[_0x38a6c6(0x1f4)](_0x148a75[_0x38a6c6(0x33b)]),_0x3ef1ff=_0x285ec8[_0x38a6c6(0x276)](_0x261805[_0x38a6c6(0x172)]([_0x268ffc,_0x1a434d]),_0x505959),_0x2709f1=_0x16c7df['getCellPositionByOffset'](_0x495000,_0x2e86fc,_0x310ff8,_0x2b0a64,_0x3ef1ff);((_0x5c348a=this[_0x38a6c6(0x15a)])==null?void 0x0:_0x5c348a[_0x38a6c6(0x24d)])===_0x2709f1[_0x38a6c6(0x24d)]&&((_0x2baddd=this[_0x38a6c6(0x15a)])==null?void 0x0:_0x2baddd[_0x38a6c6(0x1f7)])===_0x2709f1[_0x38a6c6(0x1f7)]||this['_cursors'][_0x38a6c6(0x23e)](_0x309f8a=>{_0x309f8a['onMouseMove'](_0x2709f1);});},0x64));});}[_0x1e1deb(0x31e)](_0x451f4e,_0x440322){const _0x3c27b5=_0x1e1deb;var _0x39ccbd;const _0x4db93f=(_0x39ccbd=this[_0x3c27b5(0x2f0)][_0x3c27b5(0x298)]())==null?void 0x0:_0x39ccbd['skeleton'];if(!_0x4db93f)return;const _0x39d6e5=this[_0x3c27b5(0x23b)]();if(!_0x39d6e5)return;this['_cursors'][_0x3c27b5(0x23e)](_0x494a3f=>{_0x494a3f['makeDirty']();});const {scene:_0x40f750}=_0x39d6e5,_0x34f114=Pr(Array[_0x3c27b5(0x427)](_0x440322[_0x3c27b5(0x1ec)]()))[_0x3c27b5(0x230)](_0x4b5c43=>{const _0x530638=_0x3c27b5,{color:_0x13fe40,range:_0x4af9a6,name:_0x11d793,selection:_0x5bc2f5,sheetID:_0x5221cb}=_0x4b5c43,{startColumn:_0x2a6c17,startRow:_0x5ee295,endColumn:_0x528ab8,endRow:_0x48e823}=_0x4af9a6,_0x279133=_0x2dd2e3(_0x5ee295,_0x2a6c17,_0x40f750,_0x4db93f),_0x2e5178=_0x2dd2e3(_0x48e823,_0x528ab8,_0x40f750,_0x4db93f),{columnHeaderHeightAndMarginTop:_0xdec1c0}=_0x4db93f,{startX:_0x1f6506,startY:_0x404e20}=_0x279133,{endX:_0x2cef1a,endY:_0x22b5a5}=_0x2e5178,_0x4ed481=_0x2cef1a-_0x1f6506,_0x42ca7d=_0x22b5a5-_0x404e20,_0x21a154={'labelPosition':_0x404e20-_0xdec1c0>=Ue?_0x530638(0x2da):'bottom','sheetID':_0x5221cb,'range':_0x4af9a6,'color':_0x13fe40,'name':_0x11d793,'selection':_0x5bc2f5,'left':_0x1f6506,'top':_0x404e20,'width':_0x4ed481,'height':_0x42ca7d,'evented':!0x1,'zIndex':Dr};return new br(_0x11d793,_0x21a154);});_0x40f750[_0x3c27b5(0x3eb)](_0x34f114,Er),this[_0x3c27b5(0x18b)]=new Set(_0x34f114);}['_removeCollabCursors'](){const _0x54f433=_0x1e1deb;var _0x313a15;(_0x313a15=this[_0x54f433(0x18b)])==null||_0x313a15['forEach'](_0x1782a7=>_0x1782a7[_0x54f433(0x1de)]());}[_0x1e1deb(0x23b)](){const _0x546022=_0x1e1deb;return _0x8759c1(this[_0x546022(0x428)]['unit'],this['_context']);}};Tt=Or([lt(0x1,_0x441fe2(_0x1b2381)),lt(0x2,_0x441fe2(ge)),lt(0x3,_0x441fe2(_0x5af768))],Tt);function Pr(_0x19e1bc){const _0x14df0b=_0x1e1deb,_0x5196b5=new Map();return _0x19e1bc[_0x14df0b(0x23e)](_0x371068=>{const _0x3d8f81=_0x14df0b;if(_0x5196b5[_0x3d8f81(0x1e3)](_0x371068['selection'])){const _0x488ebb=_0x5196b5['get'](_0x371068[_0x3d8f81(0x3ad)]);_0x488ebb['name']+=',\x20'+_0x371068[_0x3d8f81(0x10e)];}else _0x5196b5[_0x3d8f81(0x394)](_0x371068[_0x3d8f81(0x3ad)],_0x371068);}),Array['from'](_0x5196b5['values']());}var y=function(){const _0x5a892f=_0x1e1deb;return y=Object[_0x5a892f(0x2fc)]||function(_0x3f3e1a){const _0x37adc6=_0x5a892f;for(var _0x6ffb07,_0x3e6933=0x1,_0x32a8bb=arguments['length'];_0x3e6933<_0x32a8bb;_0x3e6933++){_0x6ffb07=arguments[_0x3e6933];for(var _0x2c4f34 in _0x6ffb07)Object[_0x37adc6(0x1c2)][_0x37adc6(0x246)][_0x37adc6(0x2fb)](_0x6ffb07,_0x2c4f34)&&(_0x3f3e1a[_0x2c4f34]=_0x6ffb07[_0x2c4f34]);}return _0x3f3e1a;},y['apply'](this,arguments);},wr=function(_0x4704e7,_0x39dc15){const _0x2312d8=_0x1e1deb;var _0x2fced2={};for(var _0x2273f1 in _0x4704e7)Object[_0x2312d8(0x1c2)][_0x2312d8(0x246)][_0x2312d8(0x2fb)](_0x4704e7,_0x2273f1)&&_0x39dc15[_0x2312d8(0x196)](_0x2273f1)<0x0&&(_0x2fced2[_0x2273f1]=_0x4704e7[_0x2273f1]);if(_0x4704e7!=null&&typeof Object[_0x2312d8(0x2a5)]==_0x2312d8(0x408)){for(var _0x1a5ee1=0x0,_0x2273f1=Object[_0x2312d8(0x2a5)](_0x4704e7);_0x1a5ee1<_0x2273f1[_0x2312d8(0x426)];_0x1a5ee1++)_0x39dc15['indexOf'](_0x2273f1[_0x1a5ee1])<0x0&&Object['prototype'][_0x2312d8(0x305)][_0x2312d8(0x2fb)](_0x4704e7,_0x2273f1[_0x1a5ee1])&&(_0x2fced2[_0x2273f1[_0x1a5ee1]]=_0x4704e7[_0x2273f1[_0x1a5ee1]]);}return _0x2fced2;},Ht=_0x4c5978(function(_0x128bf2,_0x47c970){const _0x155037=_0x1e1deb;var _0x20675c=_0x128bf2['icon'],_0x85792b=_0x128bf2['id'],_0x532d2c=_0x128bf2[_0x155037(0x13b)],_0x2be95d=_0x128bf2['extend'],_0x5b776c=wr(_0x128bf2,[_0x155037(0x232),'id',_0x155037(0x13b),_0x155037(0x41e)]),_0x2dff62='univerjs-icon\x20univerjs-icon-'['concat'](_0x85792b,'\x20')[_0x155037(0x114)](_0x532d2c||'')[_0x155037(0x1e6)](),_0x3afa59=_0x42a52e('_'[_0x155037(0x114)](Ar()));return Ls(_0x20675c,''[_0x155037(0x114)](_0x85792b),{'defIds':_0x20675c[_0x155037(0x263)],'idSuffix':_0x3afa59[_0x155037(0x257)]},y({'ref':_0x47c970,'className':_0x2dff62},_0x5b776c),_0x2be95d);});function Ls(_0x5613b1,_0x3d68b5,_0x2b2edd,_0xd0487,_0x4b7e3c){const _0x24fb55=_0x1e1deb;return _0x5dad64(_0x5613b1['tag'],y(y({'key':_0x3d68b5},Nr(_0x5613b1,_0x2b2edd,_0x4b7e3c)),_0xd0487),(Mr(_0x5613b1,_0x2b2edd)[_0x24fb55(0x3d5)]||[])[_0x24fb55(0x230)](function(_0x3fc766,_0x403429){const _0x21ab84=_0x24fb55;return Ls(_0x3fc766,''['concat'](_0x3d68b5,'-')[_0x21ab84(0x114)](_0x5613b1[_0x21ab84(0x2e6)],'-')[_0x21ab84(0x114)](_0x403429),_0x2b2edd,void 0x0,_0x4b7e3c);}));}function Nr(_0x377fd9,_0x165002,_0x39762b){const _0x4e33dc=_0x1e1deb;var _0x2602a0=y({},_0x377fd9['attrs']);_0x39762b!=null&&_0x39762b[_0x4e33dc(0x1a8)]&&_0x2602a0[_0x4e33dc(0x248)]===_0x4e33dc(0x1a8)&&(_0x2602a0[_0x4e33dc(0x248)]=_0x39762b[_0x4e33dc(0x1a8)]);var _0x2c79d9=_0x165002[_0x4e33dc(0x263)];return!_0x2c79d9||_0x2c79d9[_0x4e33dc(0x426)]===0x0||(_0x377fd9[_0x4e33dc(0x2e6)]===_0x4e33dc(0x12e)&&_0x2602a0[_0x4e33dc(0x254)]&&(_0x2602a0['xlink:href']=_0x2602a0['xlink:href']+_0x165002['idSuffix']),Object['entries'](_0x2602a0)[_0x4e33dc(0x23e)](function(_0x5c5d16){const _0x33157b=_0x4e33dc;var _0x53e2eb=_0x5c5d16[0x0],_0x5e1a39=_0x5c5d16[0x1];typeof _0x5e1a39==_0x33157b(0x159)&&(_0x2602a0[_0x53e2eb]=_0x5e1a39[_0x33157b(0x20a)](/url\(#(.*)\)/,'url(#$1'[_0x33157b(0x114)](_0x165002[_0x33157b(0x20b)],')')));})),_0x2602a0;}function Mr(_0x2fd192,_0x418d82){const _0x132b67=_0x1e1deb;var _0x364f4e,_0xa0ea27=_0x418d82[_0x132b67(0x263)];return!_0xa0ea27||_0xa0ea27[_0x132b67(0x426)]===0x0?_0x2fd192:_0x2fd192[_0x132b67(0x2e6)]===_0x132b67(0x26d)&&(!((_0x364f4e=_0x2fd192['children'])===null||_0x364f4e===void 0x0)&&_0x364f4e[_0x132b67(0x426)])?y(y({},_0x2fd192),{'children':_0x2fd192[_0x132b67(0x3d5)][_0x132b67(0x230)](function(_0xccec19){const _0xec6668=_0x132b67;return typeof _0xccec19[_0xec6668(0x206)]['id']==_0xec6668(0x159)&&_0xa0ea27&&_0xa0ea27[_0xec6668(0x196)](_0xccec19[_0xec6668(0x206)]['id'])>-0x1?y(y({},_0xccec19),{'attrs':y(y({},_0xccec19[_0xec6668(0x206)]),{'id':_0xccec19[_0xec6668(0x206)]['id']+_0x418d82['idSuffix']})}):_0xccec19;})}):_0x2fd192;}function Ar(){const _0x1b560c=_0x1e1deb;return Math[_0x1b560c(0x216)]()[_0x1b560c(0x400)](0x24)[_0x1b560c(0x1a2)](0x2,0x8);}Ht['displayName']=_0x1e1deb(0x398);var yr={'tag':_0x1e1deb(0x2ec),'attrs':{'fill':_0x1e1deb(0x170),'viewBox':_0x1e1deb(0x157),'width':_0x1e1deb(0x1bc),'height':_0x1e1deb(0x1bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x1e1deb(0x1ea),'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':_0x1e1deb(0x24b),'strokeLinejoin':_0x1e1deb(0x24b),'strokeWidth':1.2}}]},{'tag':_0x1e1deb(0x26d),'attrs':{},'children':[{'tag':_0x1e1deb(0x40b),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1e1deb(0x2bd),'attrs':{'fill':_0x1e1deb(0x416),'d':_0x1e1deb(0x1c6)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$s=_0x4c5978(function(_0x3a7ab8,_0x503e27){const _0x9be884=_0x1e1deb;return _0x5dad64(Ht,Object[_0x9be884(0x2fc)]({},_0x3a7ab8,{'id':_0x9be884(0x16b),'ref':_0x503e27,'icon':yr}));});$s['displayName']='OffLineSingle';var Ur={'tag':'svg','attrs':{'fill':_0x1e1deb(0x170),'viewBox':_0x1e1deb(0x25c),'width':_0x1e1deb(0x1bc),'height':_0x1e1deb(0x1bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x1e1deb(0x1ea),'d':_0x1e1deb(0x205),'strokeLinecap':_0x1e1deb(0x24b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1e1deb(0x26d),'attrs':{},'children':[{'tag':_0x1e1deb(0x40b),'attrs':{'id':_0x1e1deb(0x35d)},'children':[{'tag':_0x1e1deb(0x2bd),'attrs':{'fill':_0x1e1deb(0x416),'d':_0x1e1deb(0x1c6),'transform':_0x1e1deb(0x13c)}}]}]}],'defIds':[_0x1e1deb(0x35d)]},js=_0x4c5978(function(_0xaa6dc8,_0x226221){const _0x393908=_0x1e1deb;return _0x5dad64(Ht,Object[_0x393908(0x2fc)]({},_0xaa6dc8,{'id':_0x393908(0x2ba),'ref':_0x226221,'icon':Ur}));});js[_0x1e1deb(0x2a0)]='OnLineSingle';const Lr=_0x1e1deb(0x3d8),$r='univer-online-status-title',jr='univer-online-status',xr=_0x1e1deb(0x279),Hr=_0x1e1deb(0x1c3),De={'onlineStatusIcon':Lr,'onlineStatusTitle':$r,'onlineStatus':jr,'online':xr,'offline':Hr};function kr(_0x3f615b){const _0xc24b35=_0x1e1deb;switch(_0x3f615b){case P['OFFLINE']:return'collabStatus.offline';case P['CONFLICT']:return _0xc24b35(0x29a);case P[_0xc24b35(0x3c6)]:return _0xc24b35(0x390);case P['NOT_COLLAB']:return _0xc24b35(0x318);case P[_0xc24b35(0x2ef)]:case P['AWAITING']:case P[_0xc24b35(0x1b7)]:return _0xc24b35(0x19b);case P[_0xc24b35(0x23d)]:return _0xc24b35(0x133);}}function Fr(_0x5322c2){const _0xf3a9c3=_0x1e1deb,{status$:_0x4082d1}=_0x5322c2,_0x2290ec=_0x40760a(_0x4082d1,P[_0xf3a9c3(0x105)]),_0x87a24d=_0x12a590(_0x2cfe85),_0x381ca2=_0x2290ec!==P[_0xf3a9c3(0x328)],_0x3ba8ce=_0x87a24d['t'](kr(_0x2290ec)),_0x587275=_0x513823(De[_0xf3a9c3(0x147)],{[De[_0xf3a9c3(0x2b3)]]:_0x381ca2,[De[_0xf3a9c3(0x291)]]:!_0x381ca2}),_0x582921=_0x381ca2?_0xed19ed[_0xf3a9c3(0x350)](js,null):_0xed19ed[_0xf3a9c3(0x350)]($s,null);return _0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':_0x587275},_0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':De[_0xf3a9c3(0x3a6)]},_0x582921),_0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':De[_0xf3a9c3(0x3aa)]},_0x3ba8ce));}var Vr=Object[_0x1e1deb(0x158)],Br=Object[_0x1e1deb(0x32c)],Wr=(_0x1a2edd,_0x5c4e18,_0xd8bbb8,_0x2755b5)=>{const _0x2022ae=_0x1e1deb;for(var _0x19fbaa=_0x2755b5>0x1?void 0x0:_0x2755b5?Br(_0x5c4e18,_0xd8bbb8):_0x5c4e18,_0x118871=_0x1a2edd[_0x2022ae(0x426)]-0x1,_0x48891d;_0x118871>=0x0;_0x118871--)(_0x48891d=_0x1a2edd[_0x118871])&&(_0x19fbaa=(_0x2755b5?_0x48891d(_0x5c4e18,_0xd8bbb8,_0x19fbaa):_0x48891d(_0x19fbaa))||_0x19fbaa);return _0x2755b5&&_0x19fbaa&&Vr(_0x5c4e18,_0xd8bbb8,_0x19fbaa),_0x19fbaa;},$e=(_0x1d02c5,_0x5a6818)=>(_0x473fd6,_0x50e811)=>_0x5a6818(_0x473fd6,_0x50e811,_0x1d02c5);let ke=class extends _0xc94eea{constructor(_0x4133ff,_0x3a71a4,_0x409fcb,_0xf57783){const _0x377612=_0x1e1deb;super(),l(this,'_status$',new _0x16d05d(P[_0x377612(0x105)])),(this['_univerInstanceService']=_0x4133ff,this[_0x377612(0x237)]=_0x3a71a4,this['_injector']=_0x409fcb,this[_0x377612(0x3a8)]=_0xf57783,this[_0x377612(0x3a7)](),this[_0x377612(0x3bc)]());}['_initStatusComponent'](){const _0x35df1d=_0x1e1deb;this[_0x35df1d(0x32e)](this[_0x35df1d(0x237)]['registerComponent'](_0x37823b[_0x35df1d(0x3bb)],()=>_0x1bcf38(Gr({'status$':this[_0x35df1d(0x2ea)]['asObservable']()}),this['_injector'])));}[_0x1e1deb(0x3bc)](){const _0x214058=_0x1e1deb;this['disposeWithMe'](_0x4259e5(this['_univerInstanceService'][_0x214058(0xfd)][_0x214058(0x119)](_0xd6054c(()=>{const _0xf4f46e=_0x214058,_0x4cec09=this[_0xf4f46e(0x145)][_0xf4f46e(0x228)]();return _0x4cec09?this[_0xf4f46e(0x3a8)][_0xf4f46e(0x1d3)](_0x4cec09[_0xf4f46e(0x3cf)]()):_0x4f1794(null);}),_0xd6054c(_0x23f60f=>_0x23f60f?_0x23f60f[_0x214058(0x200)]:_0x4f1794(P['NOT_COLLAB'])))['subscribe'](_0x5cbbc7=>{const _0x4eac9a=_0x214058;this[_0x4eac9a(0x2ea)][_0x4eac9a(0x3cd)](_0x5cbbc7);})));}};ke=Wr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],ke),$e(0x0,_0x4902a5),$e(0x1,_0xbabd5f),$e(0x2,_0x441fe2(_0x9c5d64)),$e(0x3,_0x441fe2(Me))],ke);function Gr(_0x8fcc7f){const {status$:_0x3e3663}=_0x8fcc7f;return function(){const _0x43e62f=_0x44de;return _0xed19ed[_0x43e62f(0x350)](Fr,{'status$':_0x3e3663});};}const xs=_0x32feec(_0x1e1deb(0x3ec));var Yr=Object['defineProperty'],Kr=Object[_0x1e1deb(0x32c)],Xr=(_0x44be9c,_0x4c0221,_0x4cac6e,_0x2e0d00)=>{const _0x4bcffd=_0x1e1deb;for(var _0x179476=_0x2e0d00>0x1?void 0x0:_0x2e0d00?Kr(_0x4c0221,_0x4cac6e):_0x4c0221,_0x191e7b=_0x44be9c[_0x4bcffd(0x426)]-0x1,_0x429a2f;_0x191e7b>=0x0;_0x191e7b--)(_0x429a2f=_0x44be9c[_0x191e7b])&&(_0x179476=(_0x2e0d00?_0x429a2f(_0x4c0221,_0x4cac6e,_0x179476):_0x429a2f(_0x179476))||_0x179476);return _0x2e0d00&&_0x179476&&Yr(_0x4c0221,_0x4cac6e,_0x179476),_0x179476;},ue=(_0x4988f6,_0x363bf8)=>(_0x3e208c,_0x43c652)=>_0x363bf8(_0x3e208c,_0x43c652,_0x4988f6);let Fe=class extends _0x5b9cf1{constructor(_0x12fc25,_0x536dbc,_0x3acce0,_0x4d21dc,_0x18021c,_0xac6f2b){const _0x136833=_0x1e1deb;super(),this[_0x136833(0x3ed)]=_0x12fc25,this['_logService']=_0x536dbc,this['_commandService']=_0x3acce0,this['_localCacheService']=_0x4d21dc,this[_0x136833(0x40a)]=_0x18021c,_0xac6f2b?_0xac6f2b==null||_0xac6f2b[_0x136833(0x199)]()[_0x136833(0x1e8)](()=>this[_0x136833(0x37a)]()):(this['_logService'][_0x136833(0x1fc)]('[DataLoaderController]',_0x136833(0x24c)),this[_0x136833(0x37a)]());}async['_init'](){const _0x26e9ed=_0x1e1deb,_0x59182c=this[_0x26e9ed(0x3ed)]['getParam'](_0x26e9ed(0x418)),_0x148378=this[_0x26e9ed(0x3ed)][_0x26e9ed(0x14a)](_0x26e9ed(0x2cc));if(!_0x59182c||!_0x148378){this['_logService']['debug'](_0x26e9ed(0x189),_0x26e9ed(0x337));return;}switch(Number(_0x148378)){case x[_0x26e9ed(0x3d0)]:{const _0x5498bd=await this[_0x26e9ed(0x311)](_0x59182c);this[_0x26e9ed(0x3e6)](_0x5498bd);break;}case x[_0x26e9ed(0x1c7)]:{await this[_0x26e9ed(0x3ae)](_0x59182c);break;}default:{this[_0x26e9ed(0x12a)][_0x26e9ed(0x1f8)](_0x26e9ed(0x189),_0x26e9ed(0xfc));break;}}}async[_0x1e1deb(0x3e6)](_0x3754d3){const _0x5d148f=_0x1e1deb;await this[_0x5d148f(0x25a)](_0x3754d3),_0x3754d3['activeSheet$'][_0x5d148f(0x119)](_0x3f75b0(this[_0x5d148f(0x413)]))['subscribe'](_0x132ca6=>{const _0x1dad28=_0x5d148f;_0x132ca6&&this[_0x1dad28(0x168)](_0x132ca6);}),this[_0x5d148f(0x3ed)]['urlChange$'][_0x5d148f(0x119)](_0x3f75b0(this[_0x5d148f(0x413)]))[_0x5d148f(0x3e0)](()=>this[_0x5d148f(0x25a)](_0x3754d3));}[_0x1e1deb(0x168)](_0x4baec9,_0x3565d0=!0x1){const _0x2270cb=_0x1e1deb,_0x583aa2=this['_urlService'][_0x2270cb(0x14a)](_0x2270cb(0x3fc));_0x4baec9['getSheetId']()!==_0x583aa2&&this['_urlService']['setParam']('subunit',_0x4baec9[_0x2270cb(0x2c2)](),_0x3565d0);}async['_updateSubUnitFromURLParams'](_0x46bcf2){const _0x3eda58=_0x1e1deb;var _0x1afcfc;const _0x5ce5cd=this['_urlService'][_0x3eda58(0x14a)](_0x3eda58(0x3fc));if(!_0x5ce5cd||!_0x46bcf2[_0x3eda58(0x2ee)](_0x5ce5cd)){const _0x183010=_0x46bcf2[_0x3eda58(0x1a6)]()[0x0],_0x2d2101=_0x46bcf2['getSheetBySheetId'](_0x183010);if(!_0x2d2101)return;this['_updateURLWithCurrentState'](_0x2d2101,!0x0),await this['_commandService'][_0x3eda58(0x3e7)](_0x2576c5['id'],{'unitId':_0x46bcf2['getUnitId'](),'subUnitId':_0x183010});return;}((_0x1afcfc=_0x46bcf2[_0x3eda58(0x39a)]())==null?void 0x0:_0x1afcfc[_0x3eda58(0x2c2)]())!==_0x5ce5cd&&await this[_0x3eda58(0x1fb)]['executeCommand'](_0x2576c5['id'],{'unitId':_0x46bcf2['getUnitId'](),'subUnitId':_0x5ce5cd});}async[_0x1e1deb(0x311)](_0x416964){const _0x5d73a4=_0x1e1deb;let _0x1a18ff=0x0;const _0x33cbd5=await this['_localCacheService']['loadOfflineData'](_0x416964);return _0x33cbd5&&(_0x33cbd5['awaitingChangeset']||_0x33cbd5['mutations'][_0x5d73a4(0x426)]!==0x0)&&(_0x1a18ff=_0x33cbd5[_0x5d73a4(0x209)]),_0x1a18ff===0x0&&this[_0x5d73a4(0x12a)][_0x5d73a4(0x1fc)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5d73a4(0x40a)][_0x5d73a4(0x3fe)](_0x416964,_0x1a18ff);}async[_0x1e1deb(0x3ae)](_0x5b7308){const _0x4bf896=_0x1e1deb;let _0x22eff0=0x0;const _0x5abdbd=await this['_localCacheService'][_0x4bf896(0x329)](_0x5b7308);return _0x5abdbd&&(_0x5abdbd[_0x4bf896(0x22e)]||_0x5abdbd[_0x4bf896(0x357)][_0x4bf896(0x426)]!==0x0)&&(_0x22eff0=_0x5abdbd['rev']),_0x22eff0===0x0&&this[_0x4bf896(0x12a)][_0x4bf896(0x1fc)](_0x4bf896(0x189),_0x4bf896(0x16f)),this[_0x4bf896(0x40a)][_0x4bf896(0x280)](_0x5b7308,_0x22eff0);}};Fe=Xr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],Fe),ue(0x0,xs),ue(0x1,_0x5f4df3),ue(0x2,_0x9845f),ue(0x3,_0x441fe2(D)),ue(0x4,_0x441fe2(_0x1e8d71)),ue(0x5,_0x16cd37(_0x182e1b))],Fe);var Jr=Object[_0x1e1deb(0x158)],zr=Object[_0x1e1deb(0x32c)],qr=(_0x280f13,_0x182afa,_0x5d3e0c,_0x18de35)=>{for(var _0x2263c3=_0x18de35>0x1?void 0x0:_0x18de35?zr(_0x182afa,_0x5d3e0c):_0x182afa,_0x54e851=_0x280f13['length']-0x1,_0x49440c;_0x54e851>=0x0;_0x54e851--)(_0x49440c=_0x280f13[_0x54e851])&&(_0x2263c3=(_0x18de35?_0x49440c(_0x182afa,_0x5d3e0c,_0x2263c3):_0x49440c(_0x2263c3))||_0x2263c3);return _0x18de35&&_0x2263c3&&Jr(_0x182afa,_0x5d3e0c,_0x2263c3),_0x2263c3;},cs=(_0x4ff45e,_0x219b4c)=>(_0x23a5cf,_0x47e372)=>_0x219b4c(_0x23a5cf,_0x47e372,_0x4ff45e);const Zr=_0x1e1deb(0x3b9),Qr=_0x1e1deb(0x183);let Ve=class extends _0xc94eea{constructor(_0x57c508,_0x23be06){const _0x1a6c62=_0x1e1deb;super(),this[_0x1a6c62(0x145)]=_0x57c508,this[_0x1a6c62(0x26b)]=_0x23be06,this[_0x1a6c62(0x37a)]();}[_0x1e1deb(0x37a)](){const _0x434d54=_0x1e1deb;this['disposeWithMe'](_0x4259e5(this['_univerInstanceService'][_0x434d54(0xfd)][_0x434d54(0x3e0)](()=>{const _0x1c7fa2=_0x434d54;var _0xb51369;const _0x174685=this[_0x1c7fa2(0x145)][_0x1c7fa2(0x228)]();let _0x5dbb1e=(_0xb51369=this[_0x1c7fa2(0x26b)][_0x1c7fa2(0x35c)](Zr))!=null?_0xb51369:Qr;_0x174685 instanceof _0x5a1e31&&(_0x5dbb1e=_0x174685[_0x1c7fa2(0x10e)]),document[_0x1c7fa2(0x244)]=_0x5dbb1e;})));}};Ve=qr([_0x3e0133(_0x1781f1[_0x1e1deb(0x249)],Ve),cs(0x0,_0x4902a5),cs(0x1,_0x5445a8)],Ve);var eo=Object[_0x1e1deb(0x158)],to=Object['getOwnPropertyDescriptor'],so=(_0x15125f,_0x502626,_0x507335,_0x41af40)=>{const _0x5f1573=_0x1e1deb;for(var _0x335fdb=_0x41af40>0x1?void 0x0:_0x41af40?to(_0x502626,_0x507335):_0x502626,_0x2d038f=_0x15125f[_0x5f1573(0x426)]-0x1,_0x62744d;_0x2d038f>=0x0;_0x2d038f--)(_0x62744d=_0x15125f[_0x2d038f])&&(_0x335fdb=(_0x41af40?_0x62744d(_0x502626,_0x507335,_0x335fdb):_0x62744d(_0x335fdb))||_0x335fdb);return _0x41af40&&_0x335fdb&&eo(_0x502626,_0x507335,_0x335fdb),_0x335fdb;},hs=(_0x1c81d3,_0x2ac7b9)=>(_0x21243f,_0x2db129)=>_0x2ac7b9(_0x21243f,_0x2db129,_0x1c81d3);let Rt=class{constructor(_0x217442,_0x5f30f9){const _0x59038a=_0x1e1deb;this['_configService']=_0x217442,this[_0x59038a(0x2d1)]=_0x5f30f9;}async[_0x1e1deb(0x309)](_0x4abab7,_0x5c61bb){const _0x1357ca=_0x1e1deb;var _0x1c849a;const {unitID:_0x36b1cc,type:_0x5d54c5,revision:_0x5f404c=0x0}=_0x5c61bb,_0x248159=this[_0x1357ca(0x1db)]()+'/'+_0x5d54c5+_0x1357ca(0x19e)+_0x36b1cc+_0x1357ca(0x303)+_0x5f404c,_0x244d3f=(await this[_0x1357ca(0x2d1)][_0x1357ca(0x10a)](_0x248159))['body'],_0x4677e9=(_0x1c849a=_0x244d3f[_0x1357ca(0x17c)])==null?void 0x0:_0x1c849a[_0x1357ca(0x30f)];if(_0x4677e9){const _0x5c0bfc=_0x4677e9==null?void 0x0:_0x4677e9[_0x1357ca(0x33d)],_0x234b86=_0x3faa9c[_0x1357ca(0x2b6)](_0x41bd2d(_0x5c0bfc));_0x4677e9[_0x1357ca(0x33d)]=_0x234b86,Object['entries'](_0x4677e9[_0x1357ca(0x331)])[_0x1357ca(0x23e)](([,_0x465410])=>{const _0x595597=_0x1357ca,_0x5134f1=_0x465410[_0x595597(0x33d)],_0x403ab6=_0x3faa9c['encode'](_0x41bd2d(_0x5134f1));_0x465410[_0x595597(0x33d)]=_0x403ab6;});}return _0x244d3f;}async[_0x1e1deb(0x39c)](_0x3be9e7,_0x367347){const _0x4d3200=_0x1e1deb,{unitID:_0xae3727,type:_0x52861d,blockID:_0x49deff}=_0x367347,_0x486564=this['_getAPIPrefix']()+'/'+_0x52861d+_0x4d3200(0x19e)+_0xae3727+'/block/'+_0x49deff;return(await this['_httpService']['get'](_0x486564))[_0x4d3200(0x434)];}async['fetchMissingChangesets'](_0xdb636b,_0x313032){const _0x243bac=_0x1e1deb,{unitID:_0x5aabe8,type:_0x4e2c16,from:_0x5a92e3,to:_0x2c4f76}=_0x313032,_0x4d314e=this[_0x243bac(0x34c)]()+'/'+_0x4e2c16+_0x243bac(0x19e)+_0x5aabe8+_0x243bac(0x1fa)+_0x5a92e3+_0x243bac(0x1b6)+_0x2c4f76;return(await this['_httpService'][_0x243bac(0x10a)](_0x4d314e))[_0x243bac(0x434)];}[_0x1e1deb(0x1db)](){const _0xbb3b60=_0x1e1deb;var _0x72421a;return(_0x72421a=this[_0xbb3b60(0x26b)]['getConfig'](cn))!=null?_0x72421a:this['_getAPIPrefix']();}[_0x1e1deb(0x34c)](){const _0x344aed=_0x1e1deb;var _0x4e45c8;return(_0x4e45c8=this['_configService'][_0x344aed(0x35c)](on))!=null?_0x4e45c8:an;}async[_0x1e1deb(0x25f)](_0x5ab554,_0x285625){const _0x3f93f8=_0x1e1deb,_0x5f46d3='/universer-api/snapshot/'+_0x285625[_0x3f93f8(0x2cc)]+_0x3f93f8(0x19e)+_0x285625[_0x3f93f8(0x370)]+'/resources';return(await this[_0x3f93f8(0x2d1)][_0x3f93f8(0x10a)](_0x5f46d3,{'params':{'resourceId':JSON[_0x3f93f8(0x32f)](_0x285625['resourceIDs'])}}))[_0x3f93f8(0x434)];}['saveSnapshot'](){const _0x5ba0bf=_0x1e1deb;throw new Error(_0x5ba0bf(0x3a5));}[_0x1e1deb(0x178)](){const _0x183c87=_0x1e1deb;throw new Error(_0x183c87(0x3a5));}[_0x1e1deb(0x140)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Rt=so([hs(0x0,_0x5445a8),hs(0x1,_0x441fe2(_0x34ef08))],Rt);var io=Object[_0x1e1deb(0x158)],no=Object['getOwnPropertyDescriptor'],ro=(_0x1452b2,_0x1e5a6e,_0xd640cf,_0x5ef52a)=>{const _0x493bab=_0x1e1deb;for(var _0x267e60=_0x5ef52a>0x1?void 0x0:_0x5ef52a?no(_0x1e5a6e,_0xd640cf):_0x1e5a6e,_0x43b008=_0x1452b2[_0x493bab(0x426)]-0x1,_0x49c055;_0x43b008>=0x0;_0x43b008--)(_0x49c055=_0x1452b2[_0x43b008])&&(_0x267e60=(_0x5ef52a?_0x49c055(_0x1e5a6e,_0xd640cf,_0x267e60):_0x49c055(_0x267e60))||_0x267e60);return _0x5ef52a&&_0x267e60&&io(_0x1e5a6e,_0xd640cf,_0x267e60),_0x267e60;},Pe=(_0x44aacb,_0xbc1b2c)=>(_0x1d804c,_0x52376d)=>_0xbc1b2c(_0x1d804c,_0x52376d,_0x44aacb);let Ot=class extends _0x3da1d9{constructor(_0x1f4175,_0x5ef20c,_0x2c397b,_0x5bb33f,_0x24e15c){const _0xb62b81=_0x1e1deb;super(_0x1f4175,_0x5ef20c,_0x2c397b),this[_0xb62b81(0x258)]=_0x5bb33f,this[_0xb62b81(0x12a)]=_0x24e15c;}[_0x1e1deb(0x2f2)](_0x198da2,_0x19b569){const _0x260ae1=_0x1e1deb,_0x2ac096=this['_getUndoStack'](_0x198da2);if(_0x2ac096)try{const _0x2f5762=this[_0x260ae1(0x33a)](_0x2ac096,_0x19b569);this[_0x260ae1(0x134)](_0x198da2,_0x2f5762);}catch(_0x5be885){this[_0x260ae1(0x12a)][_0x260ae1(0x1f8)](_0x260ae1(0x2f7),_0x5be885),this[_0x260ae1(0x2bf)](_0x198da2);}const _0x547600=this[_0x260ae1(0x191)](_0x198da2);if(_0x547600)try{const _0x187b46=this[_0x260ae1(0x33a)](_0x547600,_0x19b569);this[_0x260ae1(0x2b2)](_0x198da2,_0x187b46);}catch(_0xbe45cf){this[_0x260ae1(0x12a)][_0x260ae1(0x1f8)](_0xbe45cf),this[_0x260ae1(0x2e9)](_0x198da2);}}['_clearUndo'](_0x3359ea){const _0x2fbe63=_0x1e1deb,_0x380e28=this[_0x2fbe63(0x251)](_0x3359ea);_0x380e28&&(_0x380e28[_0x2fbe63(0x426)]=0x0,this[_0x2fbe63(0x353)]());}[_0x1e1deb(0x2e9)](_0x7d43ac){const _0x31f916=this['_getRedoStack'](_0x7d43ac);_0x31f916&&(_0x31f916['length']=0x0,this['_updateStatus']());}[_0x1e1deb(0x134)](_0x299506,_0x5d3f64){const _0x22df89=_0x1e1deb;this[_0x22df89(0x2a7)][_0x22df89(0x394)](_0x299506,_0x5d3f64),this[_0x22df89(0x353)]();}['_substituteRedoStack'](_0x1f1810,_0x34675a){const _0x3c279c=_0x1e1deb;this[_0x3c279c(0x37b)]['set'](_0x1f1810,_0x34675a),this[_0x3c279c(0x353)]();}[_0x1e1deb(0x33a)](_0x4536b6,_0x1b4b20){const _0x572fac=_0x1e1deb,_0x4d04d2=[];let _0x29fccb=_0x1b4b20,_0x1c71cf=_0x1b4b20;for(let _0x2a75c4=_0x4536b6[_0x572fac(0x426)]-0x1;_0x2a75c4>=0x0;_0x2a75c4--){const {unitID:_0x5a3210,undoMutations:_0x515979,redoMutations:_0x52c9bd}=_0x4536b6[_0x2a75c4],_0x1d51e1=this[_0x572fac(0x258)]['transformMutationsWithChangeset'](_0x29fccb,_0x515979),_0x23e11e=this[_0x572fac(0x258)][_0x572fac(0x3a3)](_0x1c71cf,_0x52c9bd);if(_0x5339fb(_0x1d51e1)||_0x5339fb(_0x23e11e)){this[_0x572fac(0x12a)][_0x572fac(0x1f8)](_0x572fac(0x2f7),_0x572fac(0x387),_0x1d51e1,_0x23e11e);break;}_0x29fccb=_0x1d51e1['c1Prime'],_0x1c71cf=_0x23e11e['c1Prime'],_0x4d04d2[_0x572fac(0x39d)]({'unitID':_0x5a3210,'undoMutations':_0x1d51e1[_0x572fac(0x2fa)],'redoMutations':_0x23e11e[_0x572fac(0x2fa)]});}return _0x4d04d2[_0x572fac(0x269)]();}};Ot=ro([Pe(0x0,_0x4902a5),Pe(0x1,_0x9845f),Pe(0x2,_0x3def4f),Pe(0x3,_0x1e0f5c),Pe(0x4,_0x5f4df3)],Ot);class oo extends _0x5b9cf1{constructor(){const _0x2f2309=_0x1e1deb;super(),l(this,_0x2f2309(0x1ab)),this[_0x2f2309(0x1ab)]=_0x1fd07d(window,_0x2f2309(0x20d))[_0x2f2309(0x119)](_0x3f75b0(this[_0x2f2309(0x413)]),_0xaffb9f(0x1),_0x497582(void 0x0));}[_0x1e1deb(0x3d7)](_0x50712a,_0x1ee5f8,_0x26b221=!0x1){const _0x2f639e=_0x1e1deb,_0x24c4b6=new URL(window[_0x2f639e(0x2f4)]['href']);_0x24c4b6[_0x2f639e(0x118)][_0x2f639e(0x394)](_0x50712a,_0x1ee5f8),_0x26b221?window[_0x2f639e(0x424)][_0x2f639e(0x21c)]('','',_0x24c4b6[_0x2f639e(0x400)]()):window['history'][_0x2f639e(0x335)]('','',_0x24c4b6[_0x2f639e(0x400)]());}['removeParam'](_0x2628fe,_0x438393=!0x1){const _0x1f8ce0=_0x1e1deb,_0x14e136=new URL(window['location'][_0x1f8ce0(0x111)]);_0x14e136[_0x1f8ce0(0x118)][_0x1f8ce0(0x36f)](_0x2628fe),_0x438393?window['history'][_0x1f8ce0(0x21c)]('','',_0x14e136['toString']()):window[_0x1f8ce0(0x424)][_0x1f8ce0(0x335)]('','',_0x14e136[_0x1f8ce0(0x400)]());}['getParam'](_0x3c9dfa){const _0x2f7dbb=_0x1e1deb;var _0x4fc706;return(_0x4fc706=new URL(window[_0x2f7dbb(0x2f4)][_0x2f7dbb(0x111)])[_0x2f7dbb(0x118)][_0x2f7dbb(0x10a)](_0x3c9dfa))!=null?_0x4fc706:void 0x0;}}const _t=_0x1e1deb(0x308),ao=_0x1e1deb(0x282),co=_0x1e1deb(0x151),we=0x6,ho=1.5,ut=0x4,lo=1.5,_o=_0x1e1deb(0x435);class ls{constructor(_0x10eccd,_0x2a0e67,_0x36714b,_0x484bcb){const _0x41e7b6=_0x1e1deb;l(this,_0x41e7b6(0x2d8),[]),l(this,_0x41e7b6(0x1e5),null),l(this,_0x41e7b6(0x2a3),null),l(this,_0x41e7b6(0x3ee),null),l(this,_0x41e7b6(0x1df),null),l(this,_0x41e7b6(0x12d),null),(this[_0x41e7b6(0x17b)]=_0x10eccd,this[_0x41e7b6(0x227)]=_0x2a0e67,this[_0x41e7b6(0x403)]=_0x36714b,this[_0x41e7b6(0x340)]=_0x484bcb,this[_0x41e7b6(0x136)]());}set[_0x1e1deb(0x1ef)](_0x361f75){const _0x2ac9b8=_0x1e1deb;_0x361f75?(this[_0x2ac9b8(0x3ee)]&&this[_0x2ac9b8(0x3ee)][_0x2ac9b8(0x389)](),this['_textBubble']&&this['_textBubble'][_0x2ac9b8(0x154)]()):(this[_0x2ac9b8(0x3ee)]&&this['_anchorDot'][_0x2ac9b8(0x154)](),this[_0x2ac9b8(0x2a3)]&&this['_textBubble'][_0x2ac9b8(0x389)]());}[_0x1e1deb(0x1de)](){const _0x432ac4=_0x1e1deb;for(const _0x4a3db9 of this[_0x432ac4(0x2d8)])_0x4a3db9[_0x432ac4(0x1de)]();this['_textBubble']&&this[_0x432ac4(0x2a3)][_0x432ac4(0x1de)](),this[_0x432ac4(0x3ee)]&&this['_anchorDot'][_0x432ac4(0x1de)](),this[_0x432ac4(0x1e5)]&&this[_0x432ac4(0x1e5)]['dispose'](),this[_0x432ac4(0x12d)]&&this[_0x432ac4(0x12d)]();}['_render'](){const _0x5a8dc8=_0x1e1deb;var _0x5bd4bc;const {_docSkeleton:_0xce096,_document:_0x4884dc}=this,{color:_0x12876e,name:_0x2c381b,ranges:_0x5cd29d}=this[_0x5a8dc8(0x17b)],_0x26f5c0=_0x4884dc[_0x5a8dc8(0x41a)](),{docsLeft:_0x42b46c,docsTop:_0x53581e}=_0x26f5c0,_0xbce8e3=new _0x23cfc5(_0x26f5c0,_0xce096);for(const {startOffset:_0x80f0e5,endOffset:_0x5dc4bb,collapsed:_0x233c7b,isActive:_0xf6a7a9}of _0x5cd29d){const _0x41a783=_0xce096[_0x5a8dc8(0x2a8)](_0x80f0e5),_0x26234a=_0xce096['findNodePositionByCharIndex'](_0x5dc4bb);if(_0xf6a7a9){const {contentBoxPointGroup:_0x21c0f2}=_0xbce8e3['getRangePointData'](_0x26234a,_0x26234a);if(_0x21c0f2[_0x5a8dc8(0x426)]===0x0)continue;this[_0x5a8dc8(0x12f)](_0x12876e,_0x21c0f2,_0x42b46c,_0x53581e,_0x2c381b),this[_0x5a8dc8(0x12d)]=this[_0x5a8dc8(0xff)]();}if(!_0x233c7b&&_0x41a783&&_0x26234a){if(_0x4e3ab9(_0x41a783,_0x26234a)){const _0x5f57d1=new _0x52f652(_0x26f5c0,_0xce096),{pointGroup:_0x8f8643}=(_0x5bd4bc=_0x5f57d1['getRangePointData'](_0x41a783,_0x26234a))!=null?_0x5bd4bc:{};if(_0x8f8643==null||_0x8f8643['length']===0x0)continue;this[_0x5a8dc8(0x21a)](_0x12876e,_0x8f8643,_0x42b46c,_0x53581e);}else{const {contentBoxPointGroup:_0x5d5d03}=_0xbce8e3[_0x5a8dc8(0x110)](_0x41a783,_0x26234a);if(_0x5d5d03[_0x5a8dc8(0x426)]===0x0)continue;this['_drawTextRange'](_0x12876e,_0x5d5d03,_0x42b46c,_0x53581e);}}}}['_drawAnchor'](_0x3524b8,_0x20d86b,_0x1af146,_0x262c54,_0xae6fe9){const _0x503508=_0x1e1deb,_0x3fe50b=this[_0x503508(0x18a)](_0x20d86b),{left:_0x208aa0,top:_0x1a8e7a,height:_0xdbffd5}=_0x3fe50b,_0x388bdb=this['_getScale'](),_0x17b3a8=lo/_0x388bdb,_0x322af9=new _0xb0d98f(_t+_0x4526c0['generateRandomId'](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54,'height':_0xdbffd5,'width':ho,'fill':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'strokeWidth':_0x17b3a8,'stroke':_o,'evented':!0x0});this['_anchor']=_0x322af9,this[_0x503508(0x227)][_0x503508(0x161)](_0x322af9,_0x261e5f);const _0x4b90e2=new _0xb0d98f(_t+_0x4526c0[_0x503508(0x259)](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54-ut/0x2,'height':ut,'width':ut,'fill':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'strokeWidth':0x0,'stroke':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'evented':!0x1});this[_0x503508(0x3ee)]=_0x4b90e2,this['_scene'][_0x503508(0x161)](_0x4b90e2,_0x261e5f);const _0x4366bc=new it(_t+_0x4526c0[_0x503508(0x259)](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54-Ue,'text':_0xae6fe9,'color':_0x3524b8});this[_0x503508(0x2a3)]=_0x4366bc,this['_scene'][_0x503508(0x161)](_0x4366bc,_0x261e5f),this[_0x503508(0x1ef)]=!0x1;}[_0x1e1deb(0xff)](){const _0x10f24e=_0x1e1deb,_0x525126=this[_0x10f24e(0x1e5)][_0x10f24e(0x1c8)][_0x10f24e(0x364)](()=>{const _0xe8e760=_0x10f24e;this[_0xe8e760(0x1ef)]=!0x0;}),_0x444691=this[_0x10f24e(0x1e5)]['onPointerLeave$'][_0x10f24e(0x364)](()=>{const _0xd466bd=_0x10f24e;this[_0xd466bd(0x1df)]&&clearTimeout(this['_hideTimer']),this[_0xd466bd(0x1df)]=setTimeout(()=>{const _0x42399a=_0xd466bd;this[_0x42399a(0x1ef)]=!0x1;},0x7d0);});return()=>{const _0x2fc9dc=_0x10f24e;_0x525126[_0x2fc9dc(0x376)](),_0x444691[_0x2fc9dc(0x376)]();};}[_0x1e1deb(0x327)](_0x21df58,_0x261408,_0x309978,_0x2e1957){const _0x2d2f25=_0x1e1deb,_0x5e42f3=new _0x1d709d(_0x21df58)[_0x2d2f25(0x1cb)](0.2)[_0x2d2f25(0x10b)](),_0x2f8150=new _0x3fb47a(ao+_0x4526c0[_0x2d2f25(0x259)](we),{'pointsGroup':_0x261408,'fill':_0x5e42f3||_0x2c779e(_0x5090fb[_0x2d2f25(0x16c)],0.2),'left':_0x309978,'top':_0x2e1957,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d2f25(0x2d8)][_0x2d2f25(0x39d)](_0x2f8150),this[_0x2d2f25(0x227)][_0x2d2f25(0x161)](_0x2f8150,_0x261e5f);}[_0x1e1deb(0x21a)](_0x546779,_0x52d491,_0x1550c5,_0x424bda){const _0x97ff82=_0x1e1deb,_0x27dc54=new _0x1d709d(_0x546779)[_0x97ff82(0x1cb)](0.2)[_0x97ff82(0x10b)](),_0x265569=new _0x3fb47a(co+_0x4526c0[_0x97ff82(0x259)](we),{'pointsGroup':_0x52d491,'fill':_0x27dc54||_0x2c779e(_0x5090fb['black'],0.2),'left':_0x1550c5,'top':_0x424bda,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x97ff82(0x39d)](_0x265569),this['_scene'][_0x97ff82(0x161)](_0x265569,_0x261e5f);}[_0x1e1deb(0x18a)](_0x463cb1){const _0x4b5703=_0x463cb1[0x0],_0xb40da1=_0x4b5703[0x0],_0x23a388=_0x4b5703[0x2],{x:_0x1f185c,y:_0x3963a7}=_0xb40da1,{x:_0x24a21a,y:_0x3fe9f6}=_0x23a388;return{'left':_0x1f185c,'top':_0x3963a7,'width':_0x24a21a-_0x1f185c,'height':_0x3fe9f6-_0x3963a7};}[_0x1e1deb(0x3b6)](){const _0x1bf155=_0x1e1deb,{scaleX:_0x1c261d,scaleY:_0x1220ef}=this['_scene'][_0x1bf155(0x197)]();return Math[_0x1bf155(0x274)](_0x1c261d,_0x1220ef);}}var uo=Object[_0x1e1deb(0x158)],mo=Object['getOwnPropertyDescriptor'],fo=(_0x2fd6a0,_0x1b703e,_0x43bc04,_0x3b2e09)=>{const _0x57f08e=_0x1e1deb;for(var _0x4300c7=_0x3b2e09>0x1?void 0x0:_0x3b2e09?mo(_0x1b703e,_0x43bc04):_0x1b703e,_0x4bca6d=_0x2fd6a0[_0x57f08e(0x426)]-0x1,_0x9c390e;_0x4bca6d>=0x0;_0x4bca6d--)(_0x9c390e=_0x2fd6a0[_0x4bca6d])&&(_0x4300c7=(_0x3b2e09?_0x9c390e(_0x1b703e,_0x43bc04,_0x4300c7):_0x9c390e(_0x4300c7))||_0x4300c7);return _0x3b2e09&&_0x4300c7&&uo(_0x1b703e,_0x43bc04,_0x4300c7),_0x4300c7;},je=(_0xc07444,_0x8872e8)=>(_0x120429,_0xbd9e49)=>_0x8872e8(_0x120429,_0xbd9e49,_0xc07444);let Be=class extends _0x5b9cf1{constructor(_0x44b30b,_0x10905a,_0x5da8f4,_0x5109a0,_0x59d2d5){const _0x4fc687=_0x1e1deb;super(),l(this,'_cursorShapes',[]),l(this,_0x4fc687(0x18b),[]),(this[_0x4fc687(0x428)]=_0x44b30b,this[_0x4fc687(0x338)]=_0x10905a,this['_collabCursorController']=_0x5da8f4,this[_0x4fc687(0x1fb)]=_0x5109a0,this[_0x4fc687(0x281)]=_0x59d2d5,this[_0x4fc687(0x37a)]());}[_0x1e1deb(0x37a)](){const _0x1c8e27=_0x1e1deb,_0x5f02c3=this['_context'][_0x1c8e27(0x439)],_0x301ef6=this[_0x1c8e27(0x338)];this[_0x1c8e27(0x32e)](_0x1a6529([this[_0x1c8e27(0x307)]['getCollabCursors$'](_0x5f02c3),this[_0x1c8e27(0x281)]['currentTheme$']])[_0x1c8e27(0x119)](_0x5ac769(([_0x5175ce,_0x31db80])=>({'skeleton':_0x301ef6[_0x1c8e27(0x176)](),'cursors':[..._0x5175ce[_0x1c8e27(0x1ec)]()][_0x1c8e27(0x268)](_0x30a1e5=>({..._0x30a1e5,'color':_0x31db80[_0x30a1e5[_0x1c8e27(0x39f)]]}))})))[_0x1c8e27(0x3e0)](_0x35a2b7=>{const _0x1b9da4=_0x1c8e27;if(this[_0x1b9da4(0x383)](),_0x35a2b7){const {skeleton:_0x21ebe1,cursors:_0x567ac1}=_0x35a2b7;this['_updateCollabCursors'](_0x21ebe1,_0x567ac1);}})),this['_initResize'](),this[_0x1c8e27(0x36a)]();}[_0x1e1deb(0x31e)](_0x281ade,_0x165566){const _0x533def=_0x1e1deb,{scene:_0x27caf7,mainComponent:_0x4bcdb9}=this[_0x533def(0x428)],_0x393cbc=_0x165566[_0x533def(0x230)](_0x1b74d0=>new ls(_0x1b74d0,_0x27caf7,_0x281ade,_0x4bcdb9));this['_cursorShapes']=_0x393cbc,this['_cursors']=_0x165566;}[_0x1e1deb(0x425)](){const _0x171314=_0x1e1deb;this[_0x171314(0x383)]();const {scene:_0x6a3993,mainComponent:_0x2d3d30}=this[_0x171314(0x428)],_0x346d49=this[_0x171314(0x338)][_0x171314(0x176)](),_0x387ce7=this['_cursors'][_0x171314(0x230)](_0x429713=>new ls(_0x429713,_0x6a3993,_0x346d49,_0x2d3d30));this[_0x171314(0x150)]=_0x387ce7;}[_0x1e1deb(0x383)](){const _0x2e6ea6=_0x1e1deb;this[_0x2e6ea6(0x150)][_0x2e6ea6(0x23e)](_0x49124b=>_0x49124b[_0x2e6ea6(0x1de)]()),this[_0x2e6ea6(0x150)]=[];}['_initCommandExecutedListener'](){const _0x2a3cbd=_0x1e1deb,_0xda4e21=[_0x21025d['id']];this[_0x2a3cbd(0x32e)](this[_0x2a3cbd(0x1fb)][_0x2a3cbd(0x250)](_0x1b5270=>{const _0x305795=_0x2a3cbd;_0xda4e21[_0x305795(0x23a)](_0x1b5270['id'])&&_0x1b5270[_0x305795(0x42b)][_0x305795(0x439)]===this[_0x305795(0x428)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x1e1deb(0x30c)](){const _0x1d78de=_0x1e1deb;this['disposeWithMe'](_0x3cb543(this[_0x1d78de(0x428)][_0x1d78de(0x313)][_0x1d78de(0x252)])[_0x1d78de(0x119)](_0x190413(_0x36b30c=>_0x36b30c['type']===_0x3aecba[_0x1d78de(0x1ad)]),_0x4faae9(0x10))[_0x1d78de(0x3e0)](()=>{const _0x49e7de=_0x1d78de;this[_0x49e7de(0x425)]();}));}};Be=fo([_0x3e0133(_0x1781f1[_0x1e1deb(0x2ed)],Be),je(0x1,_0x441fe2(_0x1b04a5)),je(0x2,_0x441fe2(ge)),je(0x3,_0x9845f),je(0x4,_0x441fe2(_0x5af768))],Be);function _0x48fb(){const _0x313528=['transformMutationsWithChangeset','objectActions','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onlineStatusIcon','_initStatusComponent','_collaborationController','_change$','onlineStatusTitle','JOINING','LICENSE_EXPORT_SIZE_EXCEEDED','selection','_loadDoc','/universer-api/comb','subUnitId','_lockTransition','LICENSE_IMPORT_SIZE_EXCEEDED','width','_acknowledgedAwaitingChangeset','permissionRejEvent','_getScale','_rescheduleHeartbeatEvent','_socket$','DEFAULT_FILE_NAME','updatePermissionPoint','HEADER_MENU','_initStatusListener','Starting','getMemberID','assignAColorForMemberID','_collaborationSessionService','interceptor','ONLINE','_transformIMECache','[CollaborationSessionService]:\x20socket\x20error','RECV','FETCH_MISS','image/gif','_startSheetCollabCursor','MoveRangeCommandId','LEAVE','_transformRemoteChangesetByIMECache','evenodd','next','_sendHeartbeat','getUnitId','UNIVER_SHEET','session.collaboration-timeout','getInterceptPoints','_initCloseConn','socket\x20close','children','liveShareNewHost','setParam','univer-online-status-icon','isActive','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','init','drawWith','_notificationService','csRejEvent','font','subscribe','[UniverCollaborationClientPlugin]','getActiveRange','allowed','_cachedData','_onUserLeave','_setupSubUnitSync','executeCommand','reject','transformChangesets','_singleActiveUnitService','addObjects','uni.network.url-service','_urlService','_anchorDot','setInterval','transform','_members','pending','InsertColCommandId','unload','/-/object/-/batch_allowed','objects','saveImage','_transformSelections','transformRemoteChangeset','_removeRoom','CHANGESET_REJ','subunit','filter','loadSheet','onSyncEditingCollabCursor','toString','/universer-api/snapshot','CHANGESET_ACK','_docSkeleton','RemoveColCommandId','getTypeOfUnitAdded$','_exhaustRemoteChangesetQueue','_syncEditingCollabCursor','function','send','_snapshotService','clipPath','triggerDblclick','session.room-full','syncEditingCollabCursor','_onMessage','HEARTBEAT','_range','doc.mutation.rich-text-editing','dispose$','min','fetching\x20missing\x20changesets\x20from\x20','#fff','_tryEnsureSocket','unit','DeleteRangeMoveLeftCommandId','getOffsetConfig','UNIVER_SLIDE','LOCAL_CACHE_INTERVAL','restore','extend','_onConnectionFailed','INGEST','roomMembers$','MSG_FOR_ERROR','_waitCount','history','_refreshCollabCursors','length','from','_context','backgroundColor','override','params','members','[CollaborationSessionService]','getRoom','_cursorInfo$','cursorInfo$','[PendingState]:\x20received\x20acknowledgement.','_injector','complete','body','rgba(255,\x20255,\x20255,\x200.01)','PERMISSION_REJ','_toggleOffline','sheetID','unitId','infoRsp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','focused$','onTransformSelections','_handleHover','_retryConnectingTimer','ERROR_IMAGE','_name','json','_onUserJoin','NOT_COLLAB','\x20-\x20','getValue','9nTpKTq','_scheduleHeartbeat','get','toRgbString','POST','_draw','name','_replaceFileID','getRangePointData','href','fillRule','_labelPosition','concat','_localStorageService','createInstance','isArray','searchParams','pipe','add','m1Prime','responseType','_handleJoinEvent','session','_socketReady','COLLAB_SUBMIT_CHANGESET_URL','/object/','YUUMI_UNABLE_LOAD_URL','NOT_FOUND','clear','_unlockTransition','revision','_onRemoteChangeset','_state$','cmd','_logService','getTime','[CollaborationState]:\x20apply\x20error!','_eventUnsubscribe','use','_drawAnchor','_messageService','objectType','_online','collabStatus.synced','_substituteUndoStack','_queuedRemoteChangesets','_render','transformSelections','collabCursorState$','LIVESHARE_FETCH_OPERATIONS','toggleOnline','className','translate(.97)','LICENSE_DISTRO_REJECTED','_memberService','readAsDataURL','saveChangeset','_event$','conflict','sessionStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_univerInstanceService','onload','onlineStatus','liveShareOperation','_getCurrentRevision','getParam','fillText','_scheduleCollaborationTimeoutTimer','collaboratorID','asObservable','JOIN','_cursorShapes','collab-rect-range-','deepClone','3963470poEgnt','show','_hovered','_commentUpdate$','0\x200\x2016\x2016','defineProperty','string','_lastPointer','list','onSendChangeset','Warning','FETCH_MISSING','actions','getWorkbookSelections','addObject','append','withCredentials','\x20in\x20_schedule.','_getSignURL','putCollaborators','onPointerMove$','_updateURLWithCurrentState','_disableEditing','/collaborator','off-line-single','black','measureText','_replayCachedMutations','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','none','SHOULD_CLOSE_CONN','FromArray','MUTATION','_sheetTransformSelectionsService','image/bmp','getSkeleton','_registerDependencies','saveSheetBlock','setWaitCount','NO_OTHER_CLIENTS_EDITING','_cursor','snapshot','enableAuthServer','UNKNOWN_CMD','createSocket','symbol','SUBMIT_CHANGESET','getUnitType','Univer','fetchThroughInterceptors','_docTransformIMECacheService','socketService','_onConnectionOpen','_session','[DataLoaderController]','_getAnchorBounding','_cursors','labelPosition','_transformUndoredo','_scheduleClearOtherTimer','_snapshotServerService','submit\x20changeset\x20error!','_getRedoStack','_userManagerService','connection\x20error','clearInterval','_state','indexOf','getAncestorScale','_schedule','whenReady','not_collab','collabStatus.syncing','getCollabCursors$','getItem','/unit/','event$','UNIVER_COLLABORATION_CLIENT_PLUGIN','_createInitialState','substring','APPLY_REJECT','_onRemoteRejected','CONNECTOR_DATA_TOO_LARGE','getUnhiddenWorksheets','conflict.content','colorChannel1','ws://127.0.0.1:8000/universer-api/comb/connect','_http','urlChange$','_executeRemoteChangeset','resize','_remoteChangesetQueue','src','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNRECOGNIZED','_ensureSubject','COMPRESS_MUTATION_APPLY','size','SNAPSHOT_URL_KEY','&to=','AWAITING_WITH_PENDING','_getMergeRange','_socketService','c1Prime','LIVESHARE_TERMINATE','1em','_handleLeaveEvent','endRow','{fileID}','INVALID_ARGUMENT','endColumn','prototype','univer-offline','confirm','onTransformRemoteChangesetByIMECache','M0\x200H16V16H0z','UNIVER_DOC','onPointerEnter$','pauseCollaboration','_submitChangeset','setAlpha','getUndoRedoMutationParamsCache','_roomMembers$','catch','contains','_undoRedoService','socket\x20open.','1028130wtKxYy','getCollabEntity$','_imageSourceCache','code','registerRefRange','slice','_getCtorByUniverType','fetchMissingChangesets','_getAPIPrefixPath','_getSnapshotAPIPrefix','LIVESHARE_OPERATION','_ws','dispose','_hideTimer','univer-pro.collaboration-client-socket-service','parse','_id','has','encodeURIComponent','_anchor','trim','805LyhGIC','then','_scheduleTimestamp','currentColor','_permissionService','values','338yrKBja','onStarting','_hover','916455TxfTlp','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_localCacheService','/universer-api/authz','getViewport','RETRY_CONNECTING_MAX_COUNT','_timeoutTimer','row','error','awaiting_with_pending','/fetchmissing?from=','_commandService','debug','_decreaseWaiting','registerBeforeClose','AUTHZ_URL_KEY','status$','getImage','getCurrentRevForDocument','textRanges','enableOfflineEditing','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','attrs','UPDATE_PERMISSION_OBJ','storage','rev','replace','idSuffix','getCurrentUser','popstate','...','[CollaborationEntity]','SEND_CHANGESET_TIMEOUT','_createSocket','baseRev','objectID','_onFetchMissResult','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','random','permission.content','transformIMECache','_unitOnClients','_drawRectRange','_sessions','replaceState','UPDATE_CURSOR','UNKNOWN_CODE','IDLE','sessionStatus$','auth.needGotoLoginAlert','updateCollaborator','_initMergeInterceptor','/universer-api/oidc/authpage','_toggleOnline','FileId','_scene','getFocusedUnit','state$','/universer-api/file/{fileID}/sign-url','_incrementRevisionNumber','3243TLrxeF','_updateLocalCursor','awaitingChangeset','onCommentUpdate','map','_colorAssignService','icon','_backgroundColor','UNIVER_UNKNOWN','22986fnXIJj','startColumn','_uiPartsService','removeMember','HEARTBEAT_TIMEOUT','includes','_getSheetObject','_pendingMutations','SYNCED','forEach','updateMember','startsWith','_initUnitPermissionChange','csAckEvent','listRoles','title','setTimeout','hasOwnProperty','changesets','fill','Ready','_clearOtherTimers','round','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','column','currentTheme$','collaMsg','onCommandExecuted','_getUndoStack','onTransformChange$','_heartbeatTimer','xlink:href','[PendingState]:\x20received\x20rejection.','newValue','current','_transformService','generateRandomId','_updateSubUnitFromURLParams','onRemoteChangeset','0\x200\x2017\x2016','roomMembers','USERS_LEAVE','getResourcesRequest','image/jpeg','_handleEvent','newCsEvent','defIds','onRendered','data','_sendingTimer','TOO_MANY_REQUESTS','flatMap','reverse','[OfflineState]:\x20received\x20acknowledgement.','_configService','RemoveRowCommandId','defs','_collabCursorState$','failed\x20to\x20apply\x20missed\x20changesets!','onlyLocal','fillStyle','_entities','replaceTextRanges','max','blue400','getVpScrollXYInfoByPosToVp','_handleHeartbeatEvent','disableLocalCache','univer-online','shouldCloseConn','_beforeCloseService','image/jpg','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','closePath','roomInfos','loadDoc','_themeService','collab-text-range-','memberID','LICENSE_MAX_UNITS_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','_sessionStatus$','selections','OTHER_CLIENTS_EDITING','_retryCount','_colorIndex','setItem','_setupBeforeClosingHandler','_initModules','Unknown\x20user','_createInitialStateImpl','[FetchMissState]','offline','fromCollab','pluginName','/new_changes','onMouseMove','_sendHeartbeatTimer','HEARTBEAT_INTERVAL','getCurrent','lineTo','collabStatus.conflict','_scheduleSaving','_docSyncEditingCollabCursorService','/-/object/list','_docTransformSelectionsService','USERS_ENTER','displayName','split','_onCursorDelete','_textBubble','_syncEditingCollabCursorService','getOwnPropertySymbols','_HTTPService','_undoStacks','findNodePositionByCharIndex','_onJoinRoomEvent','_color','LIVESHARE_REQUEST_HOST','getUnitStatus$','closeSession','arc','_renderManagerService','_selfUnitIDs','fetch_missing','_substituteRedoStack','online','updateOfflineData','_collaborationTimeoutTimer','encode','SNAPSHOT_HAS_BEEN_REMOVED','_refRangeService','unshift','on-line-single','ALREADY_EXISTS','error$','path','getImageSourceCache','_clearUndo','localeService','startRow','getSheetId','RETRY_CONNECTING_INTERVAL','gold400','LIVESHARE_NEW_HOST','requireSession','ACTIVE_UNIT_EVENT_CHANNEL','exhaustSavingTask','_unitID','_showConflictNotification','2103804dZmSdw','type','_clearTimeoutTimer','text','_roomMembers','enableSingleActiveInstanceLock','_httpService','onTransformIME','transformMutation','_collaborationPaused','session.connection-failed','_revisionService','find','_shapes','unknown','top','action','CONFLICT','toggleOffline','_send','_socketMessageSubscription','YUUMI_SUBSCRIPTION_NOT_FOUND','height','message$','_isPermissionRej','COMMENT_UPDATE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','tag','_onRefRangeChange','save','_clearRedo','_status$','2388208RnnXjJ','svg','Steady','getSheetBySheetId','PENDING','_sheetSkeletonManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','transformUndoRedo','_onLocalMutation','location','PERMISSION_DENIED','_joinRoom','[CollaborationUndoRedoService]','eventID','editingUnit','m2Prime','call','assign','close','UNAUTHENTICATED','PSEUDO_FETCH_MISSING_RESULT','_createHandler','_removeClearOtherTimer','?url=','/rev/','_registerRenderDependencies','propertyIsEnumerable','resolve','_collabCursorController','collab-text-anchor-','getUnitOnRev','COLLAB_WEB_SOCKET_URL','url','_initResize','cursorInfo','conflict.title','workbook','getCurrentSelections','_loadSheet','_compressMutationService','engine','userID','\x0aAfter:\x20','InsertRangeMoveDownCommandId','_config','collabStatus.notCollab','_checkMissing','INTERNAL_ERROR','_fetchMissChangesets','file','registerHTTPInterceptor','_updateCollabCursors','getDocRanges','_disabled','APPLY_PERMISSION_DENIED','_transitionLocked','_transformPreviousActiveRange','joinRsp','_entityInit$','COMPLETION_FINISHED','_drawTextRange','OFFLINE','loadOfflineData','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateLocalCache','getOwnPropertyDescriptor','isPermissionRej','disposeWithMe','stringify','_updateState','sheets','_awaitingChangeset','roles','addImageSourceCache','pushState','collaboration.single-unit.warning','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSkeletonManagerService','clearTimeout','_transformStack','VIEW_MAIN','Error','originalMeta','BASE64','_type','_document','_collabSessionService','target','APPLY_REVISION_CONFILICT','COMPRESS_MUTATION_SEND','ranges','_getUploadFileURL','SNAPSHOT_SERVER_URL_KEY','isEditing','routeKey','verdancy600','_socket','_getAPIPrefix','_scheduleReconnection','close$','onMissingChangesets','createElement','getUniverSheetInstance','_onCursorUpdate','_updateStatus','_saveTaskMap','_clearScheduledTask','status','mutations','post','_onConflict','[SyncedState]:\x20received\x20acknowledgement.','_startDocCollabCursor','getConfig','on-line-single_clip0_910_349','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','sheetId','_clearHeartbeatTimer','_transformUndoRedoStack','_getSendChangesetTimeout','getTypeOfUnitDisposed$','subscribeEvent','commentUpdate$','_unitStatus','_localeService','synced','red300','_initCommandExecutedListener','_assignedColors','div','beginPath','UNDEFINED','delete','unitID','[OfflineState]:\x20received\x20rejection.','resend','_handler','appendMutation','patch','unsubscribe','_clearLocalCache','APPLY_NON_SEQUENTIAL_REVISION','onRemoteAck','_init','_redoStacks','method','_commentService','onRemoteRej','HELLO','setCurrentUser','compose','_applyRemoteChangeset','_removeCollabCursors','setShapeProps','/allowed','open$','transformStack\x20failed!','FAIL','hide','requestParams','purple300','NEW_CHANGESETS','create','save\x20fail\x20reason\x20is\x20','_startCollaboration','collabStatus.fetchMiss','YUUMI_RATE_OVER_LIMIT','change$','put','set','ERROR_IMAGE_TYPE','UUID','addEventListener','UniverIcon','joinEvent','getActiveSheet','_clearCollaborationTimeoutTimer','getSheetBlock','push','_saveCache','color','getMember','every','awaiting'];_0x48fb=function(){return _0x313528;};return _0x48fb();}var go=Object[_0x1e1deb(0x158)],So=Object[_0x1e1deb(0x32c)],po=(_0x8440c6,_0x3dc453,_0x456eeb,_0x39eb3b)=>{for(var _0xccc40b=_0x39eb3b>0x1?void 0x0:_0x39eb3b?So(_0x3dc453,_0x456eeb):_0x3dc453,_0xad14ef=_0x8440c6['length']-0x1,_0x277943;_0xad14ef>=0x0;_0xad14ef--)(_0x277943=_0x8440c6[_0xad14ef])&&(_0xccc40b=(_0x39eb3b?_0x277943(_0x3dc453,_0x456eeb,_0xccc40b):_0x277943(_0xccc40b))||_0xccc40b);return _0x39eb3b&&_0xccc40b&&go(_0x3dc453,_0x456eeb,_0xccc40b),_0xccc40b;},dt=(_0x1b153b,_0x383563)=>(_0x2f09fa,_0x4ff221)=>_0x383563(_0x2f09fa,_0x4ff221,_0x1b153b);let Qe=class{constructor(_0x3690d1,_0x4c346a,_0x14e04e){const _0x263b51=_0x1e1deb;this[_0x263b51(0x26b)]=_0x3690d1,this['_httpService']=_0x4c346a,this[_0x263b51(0x2c0)]=_0x14e04e,this['init']();}['init'](){const _0x364257=_0x1e1deb;this[_0x364257(0x2d1)][_0x364257(0x31d)]({'priority':0x1,'interceptor':(_0x29295f,_0x566720)=>_0x566720(_0x29295f)[_0x364257(0x119)](_0x4ff395(async _0xd368a6=>{const _0x2a1264=_0x364257,_0x57cd53=_0xd368a6;if(_0x57cd53[_0x2a1264(0x356)]===0x191&&window[_0x2a1264(0x1c4)](this[_0x2a1264(0x2c0)]['t'](_0x2a1264(0x221)))){const _0x5379d8=window[_0x2a1264(0x1e4)](window[_0x2a1264(0x2f4)][_0x2a1264(0x111)]);window[_0x2a1264(0x2f4)][_0x2a1264(0x111)]=this['_getLoginPath']()+_0x2a1264(0x302)+_0x5379d8;}return _0x57cd53;}))});}['_getLoginPath'](){const _0x5818ab=_0x1e1deb;var _0x38c57e;return(_0x38c57e=this['_configService'][_0x5818ab(0x35c)](bn))!=null?_0x38c57e:Tn;}};Qe=po([dt(0x0,_0x5445a8),dt(0x1,_0x441fe2(_0x34ef08)),dt(0x2,_0x441fe2(_0x2cfe85))],Qe);var vo=Object[_0x1e1deb(0x158)],Io=Object[_0x1e1deb(0x32c)],Eo=(_0x4681fd,_0x30550a,_0x2613bb,_0x2fd22e)=>{const _0x36de3b=_0x1e1deb;for(var _0x39e0ce=_0x2fd22e>0x1?void 0x0:_0x2fd22e?Io(_0x30550a,_0x2613bb):_0x30550a,_0x4d6d4f=_0x4681fd[_0x36de3b(0x426)]-0x1,_0x4ce219;_0x4d6d4f>=0x0;_0x4d6d4f--)(_0x4ce219=_0x4681fd[_0x4d6d4f])&&(_0x39e0ce=(_0x2fd22e?_0x4ce219(_0x30550a,_0x2613bb,_0x39e0ce):_0x4ce219(_0x39e0ce))||_0x39e0ce);return _0x2fd22e&&_0x39e0ce&&vo(_0x30550a,_0x2613bb,_0x39e0ce),_0x39e0ce;},_s=(_0x56b7c1,_0x37b34a)=>(_0x494a87,_0x34379a)=>_0x37b34a(_0x494a87,_0x34379a,_0x56b7c1);const Co=_0x1e1deb(0x1ff),bo=_0x1e1deb(0x1f3);let Dt=class extends _0xc94eea{constructor(_0x21d1bf,_0x5d4d8f){const _0x2c2d13=_0x1e1deb;super(),this[_0x2c2d13(0x2a6)]=_0x21d1bf,this[_0x2c2d13(0x26b)]=_0x5d4d8f,this[_0x2c2d13(0x223)]();}[_0x1e1deb(0x223)](){const _0x410e64=_0x1e1deb,_0x111159=this;this[_0x410e64(0x32e)](this[_0x410e64(0x2a6)][_0x410e64(0x31d)]({'priority':0x3e7,'interceptor':_0x57c1a3({'isMatch'(_0x342ccd){const _0x1bcd12=_0x410e64;var _0x293a05;if(_0x342ccd[_0x1bcd12(0x37c)]===_0x1bcd12(0x10c)&&((_0x293a05=_0x342ccd[_0x1bcd12(0x38a)])!=null&&_0x293a05['body'])){const {objectID:_0x209144,objectType:_0x31bcc3}=_0x342ccd[_0x1bcd12(0x38a)][_0x1bcd12(0x434)]||{};if(!_0x209144||_0x31bcc3===void 0x0)return!0x1;const _0x2a4188=_0x111159['_getAPIPrefixPath']()+'/'+_0x31bcc3+_0x1bcd12(0x121)+_0x209144+_0x1bcd12(0x385);if(_0x342ccd[_0x1bcd12(0x30b)]===_0x2a4188)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5832ea){const _0x5e39bf=_0x410e64;var _0x47428e;return(_0x47428e=_0x5832ea[_0x5e39bf(0x38a)])==null?void 0x0:_0x47428e[_0x5e39bf(0x434)];},'mergeParamsToRequest'(_0x393289,_0x3ee5be){const _0x49eb18=_0x410e64,_0x753e8f=_0x111159[_0x49eb18(0x1da)]()+'/-/object/-/batch_allowed',_0x920126=_0x393289['reduce']((_0x150d1b,_0x3acba8)=>{const _0x433a4e=_0x49eb18,{unitID:_0x355f14,objectID:_0x123699,objectType:_0x1b0e2a,actions:_0x4a3a5f}=_0x3acba8;return _0x150d1b[_0x355f14]||(_0x150d1b[_0x355f14]={}),_0x150d1b[_0x355f14][_0x123699]||(_0x150d1b[_0x355f14][_0x123699]={'objectID':_0x123699,'objectType':_0x1b0e2a,'actions':[]}),_0x150d1b[_0x355f14][_0x123699][_0x433a4e(0x15f)][_0x433a4e(0x39d)](..._0x4a3a5f),_0x150d1b;},{}),_0x5ae5ac=[];for(const _0x3da7a1 in _0x920126)for(const _0x59472f in _0x920126[_0x3da7a1]){const {actions:_0x2671e1,objectType:_0x5135e6}=_0x920126[_0x3da7a1][_0x59472f],_0x28b33c=[...new Set(_0x2671e1)];_0x5ae5ac[_0x49eb18(0x39d)]({'unitID':_0x3da7a1,'objectID':_0x59472f,'objectType':_0x5135e6,'actions':_0x28b33c});}return new _0x3f5fe8(_0x49eb18(0x10c),_0x753e8f,{'headers':_0x3ee5be['headers'],'withCredentials':_0x3ee5be[_0x49eb18(0x163)],'responseType':_0x3ee5be[_0x49eb18(0x11c)],'body':{'requests':_0x5ae5ac}});}},{'distributeResult'(_0x41bd78,_0x27df9f){const _0xa61491=_0x410e64,{objectActions:_0x35ee39}=_0x41bd78;return _0x27df9f[_0xa61491(0x230)](_0x260a09=>{const _0x2c5f69=_0xa61491,{unitID:_0x39f3ca,objectID:_0x583373,actions:_0x4c0643}=_0x260a09,_0xf94f30=_0x35ee39['find'](_0x57084e=>_0x57084e['unitID']===_0x39f3ca&&_0x57084e[_0x2c5f69(0x213)]===_0x583373),_0xe13816=_0x4c0643['map'](_0x437cd2=>_0xf94f30==null?void 0x0:_0xf94f30['actions'][_0x2c5f69(0x2d7)](_0x17bffc=>_0x17bffc[_0x2c5f69(0x2db)]===_0x437cd2))[_0x2c5f69(0x3fd)](_0xde5c47=>!!_0xde5c47);return{'config':_0x260a09,'result':{'actions':_0xe13816,'error':_0x41bd78[_0x2c5f69(0x1f8)]}};});}})}));}[_0x1e1deb(0x1da)](){const _0x369a51=_0x1e1deb;var _0x3abd10;return(_0x3abd10=this[_0x369a51(0x26b)]['getConfig'](Co))!=null?_0x3abd10:bo;}async[_0x1e1deb(0x38d)](_0x369c16){const _0x1366ae=_0x1e1deb,_0x130277=this[_0x1366ae(0x1da)]()+'/'+_0x369c16['objectType']+'/object';return(await this['_HTTPService']['post'](_0x130277,{'body':_0x369c16}))[_0x1366ae(0x434)][_0x1366ae(0x213)]||'';}async[_0x1e1deb(0x15b)](_0x2b5b85){const _0x2ae2bd=_0x1e1deb,_0x527a73=this['_getAPIPrefixPath']()+_0x2ae2bd(0x29d);return(await this[_0x2ae2bd(0x2a6)]['post'](_0x527a73,{'body':_0x2b5b85}))[_0x2ae2bd(0x434)][_0x2ae2bd(0x3f6)];}async['update'](_0x52e6dc){const _0x21aaea=_0x1e1deb,_0x13c2be=this[_0x21aaea(0x1da)]()+'/'+_0x52e6dc[_0x21aaea(0x131)]+_0x21aaea(0x121)+_0x52e6dc[_0x21aaea(0x213)];await this[_0x21aaea(0x2a6)][_0x21aaea(0x393)](_0x13c2be,{'body':_0x52e6dc});}async[_0x1e1deb(0x3e3)](_0x96d540){const _0x4bf61f=_0x1e1deb,_0x3ba920=this[_0x4bf61f(0x1da)]()+'/'+_0x96d540[_0x4bf61f(0x131)]+_0x4bf61f(0x121)+_0x96d540[_0x4bf61f(0x213)]+_0x4bf61f(0x385);return(await this['_HTTPService'][_0x4bf61f(0x358)](_0x3ba920,{'body':_0x96d540}))[_0x4bf61f(0x434)][_0x4bf61f(0x15f)];}async['batchAllowed'](_0x3e2a79){const _0x5a5d5e=_0x1e1deb,_0x1fd85e=this[_0x5a5d5e(0x1da)]()+_0x5a5d5e(0x3f5);return(await this[_0x5a5d5e(0x2a6)][_0x5a5d5e(0x358)](_0x1fd85e,{'body':{'requests':_0x3e2a79}}))['body'][_0x5a5d5e(0x3a4)];}async[_0x1e1deb(0x243)](_0x32c852){const _0x5b374b=_0x1e1deb,_0x5f5d16=this[_0x5b374b(0x1da)]()+'/'+_0x32c852[_0x5b374b(0x131)]+'/role',_0x2903a9=await this[_0x5b374b(0x2a6)][_0x5b374b(0x358)](_0x5f5d16,{'body':_0x32c852});return{'roles':_0x2903a9[_0x5b374b(0x434)][_0x5b374b(0x333)],'actions':_0x2903a9[_0x5b374b(0x434)][_0x5b374b(0x15f)]};}async['deleteCollaborator'](_0x531d07){const _0x4316f4=_0x1e1deb,_0x130f3e=this['_getAPIPrefixPath']()+_0x4316f4(0x16a);await this['_HTTPService'][_0x4316f4(0x36f)](_0x130f3e,{'params':{'collaboratorID':_0x531d07[_0x4316f4(0x14d)],'objectID':_0x531d07[_0x4316f4(0x213)],'unitID':_0x531d07[_0x4316f4(0x370)]}});}async[_0x1e1deb(0x222)](_0x47bdce){const _0x219354=_0x1e1deb,_0x5ea432=this[_0x219354(0x1da)]()+'/collaborator';await this[_0x219354(0x2a6)][_0x219354(0x375)](_0x5ea432,{'body':_0x47bdce});}async['createCollaborator'](_0x3edb57){const _0x381275=_0x1e1deb,_0x102f8c=this['_getAPIPrefixPath']()+_0x381275(0x16a);await this[_0x381275(0x2a6)][_0x381275(0x358)](_0x102f8c,{'body':_0x3edb57});}async['listCollaborators'](_0x4d59c0){const _0x256f09=_0x1e1deb,_0xebd78e=this[_0x256f09(0x1da)]()+_0x256f09(0x16a);return(await this[_0x256f09(0x2a6)]['get'](_0xebd78e,{'params':{'objectID':_0x4d59c0['objectID'],'unitID':_0x4d59c0[_0x256f09(0x370)]}}))[_0x256f09(0x434)]['collaborators'];}async[_0x1e1deb(0x166)](_0x59f3d4){const _0xf4f4b8=_0x1e1deb,_0x432e76=this['_getAPIPrefixPath']()+_0xf4f4b8(0x16a);await this[_0xf4f4b8(0x2a6)][_0xf4f4b8(0x393)](_0x432e76,{'body':_0x59f3d4});}};Dt=Eo([_s(0x0,_0x441fe2(_0x34ef08)),_s(0x1,_0x441fe2(_0x5445a8))],Dt);var To=Object[_0x1e1deb(0x158)],Ro=Object[_0x1e1deb(0x32c)],Oo=(_0x37962c,_0x503155,_0x26d866,_0xbf2cc7)=>{const _0x1fa7ae=_0x1e1deb;for(var _0x28f91b=_0xbf2cc7>0x1?void 0x0:_0xbf2cc7?Ro(_0x503155,_0x26d866):_0x503155,_0x28b907=_0x37962c[_0x1fa7ae(0x426)]-0x1,_0x53a284;_0x28b907>=0x0;_0x28b907--)(_0x53a284=_0x37962c[_0x28b907])&&(_0x28f91b=(_0xbf2cc7?_0x53a284(_0x503155,_0x26d866,_0x28f91b):_0x53a284(_0x28f91b))||_0x28f91b);return _0xbf2cc7&&_0x28f91b&&To(_0x503155,_0x26d866,_0x28f91b),_0x28f91b;},us=(_0x29e87b,_0x1aaae3)=>(_0x2cb58c,_0x4f11a9)=>_0x1aaae3(_0x2cb58c,_0x4f11a9,_0x29e87b);const Do=['image/png',_0x1e1deb(0x260),_0x1e1deb(0x27c),_0x1e1deb(0x3c7),_0x1e1deb(0x175)],Po=0x5*0x400*0x400,wo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',No='/universer-api/stream/file/upload',Mo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ao=_0x1e1deb(0x22a);let Pt=class{constructor(_0x1ce7c8,_0x33d74c){const _0x34032b=_0x1e1deb;l(this,_0x34032b(0x423),0x0),l(this,_0x34032b(0x3a9),new _0x365a49()),l(this,_0x34032b(0x392),this[_0x34032b(0x3a9)]),l(this,_0x34032b(0x1d4),new Map()),(this['_httpService']=_0x1ce7c8,this[_0x34032b(0x26b)]=_0x33d74c);}[_0x1e1deb(0x179)](_0x329eb4){const _0x148a5c=_0x1e1deb;this[_0x148a5c(0x423)]=_0x329eb4,this[_0x148a5c(0x3a9)][_0x148a5c(0x3cd)](_0x329eb4);}[_0x1e1deb(0x2be)](_0x498d0e,_0x266623){const _0x37f56b=_0x1e1deb;if(_0x266623===_0x53415e[_0x37f56b(0x33e)]){const _0x35cd22=new Image();return _0x35cd22[_0x37f56b(0x1af)]=_0x498d0e,_0x35cd22;}return this[_0x37f56b(0x1d4)]['get'](_0x498d0e);}[_0x1e1deb(0x334)](_0x45937d,_0x1eb2b9,_0x511769){const _0x5380b6=_0x1e1deb;_0x1eb2b9===_0x53415e['BASE64']||_0x511769==null||this[_0x5380b6(0x1d4)][_0x5380b6(0x394)](_0x45937d,_0x511769);}async[_0x1e1deb(0x201)](_0xd2a422){const _0x19b7c2=_0x1e1deb;try{const _0x116ff8=this[_0x19b7c2(0x10f)](this[_0x19b7c2(0x165)](),''+_0xd2a422),_0x56bfa3=(await this['_httpService'][_0x19b7c2(0x10a)](_0x116ff8))[_0x19b7c2(0x434)];return _0x56bfa3['error']&&_0x56bfa3[_0x19b7c2(0x1f8)]['code']===Ps['OK']?Promise[_0x19b7c2(0x306)](_0x56bfa3[_0x19b7c2(0x30b)]):Promise[_0x19b7c2(0x3e8)](_0x56bfa3[_0x19b7c2(0x1f8)]);}catch(_0x3ad13e){return Promise[_0x19b7c2(0x3e8)](_0x3ad13e);}}async[_0x1e1deb(0x3f7)](_0x2dc082){const _0x432d22=_0x1e1deb;let _0x49e34b='';if(!Do['includes'](_0x2dc082['type']))return this[_0x432d22(0x1fd)](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b[_0x432d22(0x395)]));if(_0x2dc082[_0x432d22(0x1b4)]>Po)return this['_decreaseWaiting'](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b['ERROR_EXCEED_SIZE']));try{const _0x4934ad=new FormData();_0x4934ad[_0x432d22(0x162)](_0x432d22(0x31c),_0x2dc082);const _0x551068=this[_0x432d22(0x346)]()+'?size='+_0x2dc082['size']['toString'](),_0x46523a=await(await fetch(_0x551068,{'method':_0x432d22(0x10c),'body':_0x4934ad}))[_0x432d22(0x103)]();if(typeof _0x46523a[_0x432d22(0x226)]!='string')return this[_0x432d22(0x1fd)](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b['ERROR_IMAGE']));_0x49e34b=_0x46523a[_0x432d22(0x226)];}catch{return this[_0x432d22(0x1fd)](),Promise['reject'](new Error(_0x3a4a7b[_0x432d22(0x101)]));}return new Promise((_0x48be28,_0x4431f9)=>{const _0xc16006=_0x432d22,_0x5b83b7=new FileReader();_0x5b83b7[_0xc16006(0x13f)](_0x2dc082),_0x5b83b7[_0xc16006(0x146)]=_0x4a2f89=>{const _0x325f0=_0xc16006;var _0x43c9bf;const _0x54074f=(_0x43c9bf=_0x4a2f89[_0x325f0(0x342)])==null?void 0x0:_0x43c9bf['result'];if(_0x54074f==null){this[_0x325f0(0x1fd)](),_0x4431f9(new Error(_0x3a4a7b[_0x325f0(0x101)]));return;}const _0x49aa30=_0x4526c0[_0x325f0(0x259)](0x6);_0x48be28({'imageId':_0x49aa30,'imageSourceType':_0x53415e[_0x325f0(0x396)],'source':_0x49e34b,'base64Cache':_0x54074f,'status':_0x3a4a7b['SUCCUSS']}),this[_0x325f0(0x1fd)]();};});}[_0x1e1deb(0x346)](){const _0x28a5db=_0x1e1deb;var _0x102efb;return(_0x102efb=this[_0x28a5db(0x26b)][_0x28a5db(0x35c)](wo))!=null?_0x102efb:No;}['_getSignURL'](){const _0x84b9d9=_0x1e1deb;var _0x288752;return(_0x288752=this[_0x84b9d9(0x26b)][_0x84b9d9(0x35c)](Mo))!=null?_0x288752:Ao;}['_replaceFileID'](_0x2fde90,_0x771aae){const _0x187a3a=_0x1e1deb;return _0x2fde90[_0x187a3a(0x20a)](_0x187a3a(0x1bf),_0x771aae);}[_0x1e1deb(0x1fd)](){this['_waitCount']-=0x1,this['_change$']['next'](this['_waitCount']);}};Pt=Oo([us(0x0,_0x441fe2(_0x34ef08)),us(0x1,_0x5445a8)],Pt);var yo=Object[_0x1e1deb(0x158)],Uo=Object[_0x1e1deb(0x32c)],Lo=(_0x3ac11c,_0xe60ef9,_0x2fc2c3,_0x5ad2da)=>{const _0x3ceb83=_0x1e1deb;for(var _0xed29ba=_0x5ad2da>0x1?void 0x0:_0x5ad2da?Uo(_0xe60ef9,_0x2fc2c3):_0xe60ef9,_0x301d69=_0x3ac11c[_0x3ceb83(0x426)]-0x1,_0x32e4bb;_0x301d69>=0x0;_0x301d69--)(_0x32e4bb=_0x3ac11c[_0x301d69])&&(_0xed29ba=(_0x5ad2da?_0x32e4bb(_0xe60ef9,_0x2fc2c3,_0xed29ba):_0x32e4bb(_0xed29ba))||_0xed29ba);return _0x5ad2da&&_0xed29ba&&yo(_0xe60ef9,_0x2fc2c3,_0xed29ba),_0xed29ba;},Ne=(_0x2c9aa4,_0x2508f9)=>(_0x1f18d2,_0x2e3081)=>_0x2508f9(_0x1f18d2,_0x2e3081,_0x2c9aa4);let We=class extends _0x5b9cf1{constructor(_0x4e0e48,_0x452281,_0x88119d,_0xfc9f0b,_0x236e11){const _0x257dce=_0x1e1deb;super(),this[_0x257dce(0x432)]=_0x4e0e48,this[_0x257dce(0x145)]=_0x452281,this['_permissionService']=_0x88119d,this[_0x257dce(0x3c0)]=_0xfc9f0b,this[_0x257dce(0x367)]=_0x236e11,this[_0x257dce(0x241)](),this[_0x257dce(0x3d3)]();}[_0x1e1deb(0x3d3)](){const _0x3700e4=_0x1e1deb,_0xe1762c=async _0x51e286=>{const _0x2c1c4d=_0x44de;(await this[_0x2c1c4d(0x3c0)]['requireSession'](_0x51e286))['event$'][_0x2c1c4d(0x119)](_0x190413(_0x27e1fd=>_0x27e1fd[_0x2c1c4d(0x2f8)]===_0x1c415b[_0x2c1c4d(0x171)]),_0x946afe(this[_0x2c1c4d(0x413)]))[_0x2c1c4d(0x3e0)](_0x167378=>{const _0x33ef9d=_0x2c1c4d,_0x1636c3=_0x167378,{reason:_0x44f334}=_0x1636c3[_0x33ef9d(0x265)];this['_injector']['get'](_0x49507b)[_0x33ef9d(0x154)]({'type':_0x3eac95[_0x33ef9d(0x33c)],'content':this[_0x33ef9d(0x367)]['t']('collaboration.closeRoom')+'('+_0x44f334+')'}),this['_permissionService'][_0x33ef9d(0x3ba)](new _0x230e97(_0x51e286)['id'],!0x1),this[_0x33ef9d(0x3c0)][_0x33ef9d(0x2ad)](_0x51e286);});};_0x5726e7(this['_univerInstanceService'][_0x3700e4(0x405)](_0x37298b[_0x3700e4(0x3d0)]),this[_0x3700e4(0x145)][_0x3700e4(0x405)](_0x37298b[_0x3700e4(0x1c7)]))[_0x3700e4(0x119)](_0x5ac769(_0x5cdbdc=>_0x5cdbdc[_0x3700e4(0x3cf)]()),_0x190413(_0x30acf5=>!_0x2f9fa5(_0x30acf5)),_0x946afe(this[_0x3700e4(0x413)]))[_0x3700e4(0x3e0)](_0x2faaa9=>{_0xe1762c(_0x2faaa9);});}['_initUnitPermissionChange'](){const _0x261994=_0x1e1deb,_0x14bcf2=async _0x5b5c71=>{const _0x4f25ac=_0x44de;(await this[_0x4f25ac(0x3c0)]['requireSession'](_0x5b5c71))[_0x4f25ac(0x19f)][_0x4f25ac(0x119)](_0x190413(_0xf615a5=>_0xf615a5[_0x4f25ac(0x2f8)]===_0x1c415b[_0x4f25ac(0x207)]),_0x946afe(this['dispose$']))[_0x4f25ac(0x3e0)](_0x1a05a2=>{const _0x3abd46=_0x4f25ac,_0x58d481=_0x1a05a2,{objectId:_0x20bd23}=_0x58d481[_0x3abd46(0x265)];_0x20bd23===_0x5b5c71&&this[_0x3abd46(0x432)]['get'](_0x357f80)['initWorkbookPermissionChange'](_0x5b5c71);});};_0x5726e7(this['_univerInstanceService'][_0x261994(0x405)](_0x37298b['UNIVER_SHEET']),this[_0x261994(0x145)][_0x261994(0x405)](_0x37298b[_0x261994(0x1c7)]))[_0x261994(0x119)](_0x5ac769(_0x45d7d5=>_0x45d7d5[_0x261994(0x3cf)]()),_0x190413(_0x76fa0=>!_0x2f9fa5(_0x76fa0)),_0x946afe(this[_0x261994(0x413)]))['subscribe'](_0x44b5fc=>{_0x14bcf2(_0x44b5fc);});}};We=Lo([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],We),Ne(0x0,_0x441fe2(_0x9c5d64)),Ne(0x1,_0x4902a5),Ne(0x2,_0x3660f2),Ne(0x3,_0x441fe2(pe)),Ne(0x4,_0x441fe2(_0x2cfe85))],We);var Hs=Object[_0x1e1deb(0x158)],$o=Object['getOwnPropertyDescriptor'],jo=(_0x13a62f,_0x304f23,_0x2d1cee)=>_0x304f23 in _0x13a62f?Hs(_0x13a62f,_0x304f23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d1cee}):_0x13a62f[_0x304f23]=_0x2d1cee,xo=(_0x447c3d,_0x33da96,_0x5c5cc1,_0x29c0b9)=>{for(var _0x283348=_0x29c0b9>0x1?void 0x0:_0x29c0b9?$o(_0x33da96,_0x5c5cc1):_0x33da96,_0x52efe9=_0x447c3d['length']-0x1,_0x461791;_0x52efe9>=0x0;_0x52efe9--)(_0x461791=_0x447c3d[_0x52efe9])&&(_0x283348=(_0x29c0b9?_0x461791(_0x33da96,_0x5c5cc1,_0x283348):_0x461791(_0x283348))||_0x283348);return _0x29c0b9&&_0x283348&&Hs(_0x33da96,_0x5c5cc1,_0x283348),_0x283348;},mt=(_0x20c2d6,_0x33eab4)=>(_0x3c8b84,_0x4413a0)=>_0x33eab4(_0x3c8b84,_0x4413a0,_0x20c2d6),Ho=(_0x564121,_0x3a7e02,_0x179853)=>jo(_0x564121,_0x3a7e02+'',_0x179853);const ko=_0x1e1deb(0x1a0);let wt=class extends _0x14ee3b{constructor(_0x7b993d,_0x24bd96,_0x40e79f,_0x10bad2){const _0x186333=_0x1e1deb;super(),this[_0x186333(0x317)]=_0x7b993d,this[_0x186333(0x12a)]=_0x24bd96,this[_0x186333(0x2af)]=_0x40e79f,this[_0x186333(0x432)]=_0x10bad2;}[_0x1e1deb(0x1ee)](_0x3c294d){this['_registerDependencies'](_0x3c294d);}[_0x1e1deb(0x264)](){const _0x5d1cae=_0x1e1deb;this[_0x5d1cae(0x304)]();}[_0x1e1deb(0x177)](_0x21fea1){const _0x18ab8e=_0x1e1deb;var _0x4004d2,_0x5c1d66,_0x171fa4,_0x55af7a;_0x21fea1['has'](_0x416533)&&this[_0x18ab8e(0x12a)][_0x18ab8e(0x1f8)](_0x18ab8e(0x3e1),_0x18ab8e(0x1f1));let _0x13a052=[[_0x416533,{'useClass':Ot}],[pe],[xt],[_0x34ef08],[xs,{'useClass':oo}],[ne],[D],[_0x3ee676],[qe],[ze],[Je],[jt],[Qe],[Ns],[We],[ws,{'useClass':(_0x5c1d66=(_0x4004d2=this['_config'])==null?void 0x0:_0x4004d2[_0x18ab8e(0x186)])!=null?_0x5c1d66:pt}],[_0x2a4f7d,{'useClass':_0xea0666}],[_0x4a4d9b,{'useClass':Rt}],[_0x2914fb,{'useClass':Dt}],[_0x19b622,{'useClass':Pt}],[Me],[Fe],[ke],[Ve],[ge]];(_0x171fa4=this['_config'])!=null&&_0x171fa4[_0x18ab8e(0x2d0)]&&_0x13a052['push']([tt,{'useClass':kn}]),_0x13a052=_0x117d0f(_0x13a052,(_0x55af7a=this['_config'])==null?void 0x0:_0x55af7a[_0x18ab8e(0x42a)]),_0x13a052[_0x18ab8e(0x23e)](_0x4be868=>_0x21fea1[_0x18ab8e(0x11a)](_0x4be868)),this[_0x18ab8e(0x28d)]();}[_0x1e1deb(0x304)](){const _0x52b1a2=_0x1e1deb;this[_0x52b1a2(0x32e)](this[_0x52b1a2(0x2af)]['registerRenderModule'](_0x37298b[_0x52b1a2(0x1c7)],[Be])),this[_0x52b1a2(0x32e)](this[_0x52b1a2(0x2af)]['registerRenderModule'](_0x37298b[_0x52b1a2(0x3d0)],[Tt]));}[_0x1e1deb(0x28d)](){const _0x386780=_0x1e1deb;var _0x9d1d6,_0x1ecd93;this[_0x386780(0x432)][_0x386780(0x10a)](_0x34ef08)[_0x386780(0x31d)]({'priority':0x14,'interceptor':_0x43013b({'maxParallel':0x6})}),(_0x9d1d6=this[_0x386780(0x317)])!=null&&_0x9d1d6[_0x386780(0x204)]||this[_0x386780(0x432)][_0x386780(0x10a)](D)[_0x386780(0x278)](),(_0x1ecd93=this[_0x386780(0x317)])!=null&&_0x1ecd93[_0x386780(0x17d)]&&this[_0x386780(0x432)][_0x386780(0x10a)](Qe);}};Ho(wt,_0x1e1deb(0x293),ko),wt=xo([_0xb27d8b(_0x5d157c),mt(0x1,_0x5f4df3),mt(0x2,_0x2b632b),mt(0x3,_0x441fe2(_0x9c5d64))],wt);export{Co as AUTHZ_URL_KEY,Dt as AuthzIoHttpService,En as COLLAB_SUBMIT_CHANGESET_URL_KEY,_n as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,vt as CollaborationSession,pe as CollaborationSessionService,pt as CollaborationSocketService,P as CollaborationStatus,Fr as CollaborationStatusDisplay,Ns as CommentService,Fe as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,dn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,ws as ICollaborationSocketService,xs as IURLService,Pt as ImageIoService,vn as LOCAL_CACHE_INTERVAL_KEY,bn as LOGIN_URL_KEY,D as LocalCacheService,hn as SEND_CHANGESET_TIMEOUT_KEY,on as SNAPSHOT_SERVER_URL_KEY,cn as SNAPSHOT_URL_KEY,fe as SessionStatus,br as SheetCollabCursorShape,Et as SheetCollaborationEntity,Rt as SnapshotServerOverHTTPService,wt as UniverCollaborationClientPlugin,oo as WebURLService,wn as deserializeToCombResponse,Nn as serializeCombRequest};
|
1
|
+
const _0xa83ddf=_0xed79;(function(_0x16458c,_0x49daa5){const _0x3c29db=_0xed79,_0x36de65=_0x16458c();while(!![]){try{const _0x28c08b=-parseInt(_0x3c29db(0x2b4))/0x1*(parseInt(_0x3c29db(0x3f4))/0x2)+parseInt(_0x3c29db(0x35c))/0x3+-parseInt(_0x3c29db(0x395))/0x4*(parseInt(_0x3c29db(0x155))/0x5)+-parseInt(_0x3c29db(0x236))/0x6+parseInt(_0x3c29db(0x35b))/0x7*(parseInt(_0x3c29db(0x253))/0x8)+parseInt(_0x3c29db(0x2b5))/0x9+parseInt(_0x3c29db(0x2dc))/0xa*(parseInt(_0x3c29db(0x328))/0xb);if(_0x28c08b===_0x49daa5)break;else _0x36de65['push'](_0x36de65['shift']());}catch(_0xbe2c3b){_0x36de65['push'](_0x36de65['shift']());}}}(_0x28da,0x6a409));var Ys=Object[_0xa83ddf(0x3b2)],Ks=(_0x512695,_0x516e23,_0x4fd70f)=>_0x516e23 in _0x512695?Ys(_0x512695,_0x516e23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fd70f}):_0x512695[_0x516e23]=_0x4fd70f,_=(_0x329dd1,_0x139264,_0x36a716)=>Ks(_0x329dd1,typeof _0x139264!=_0xa83ddf(0x42a)?_0x139264+'':_0x139264,_0x36a716);import{Disposable as _0x54b342,toDisposable as _0x5bf8dd,UniverInstanceType as _0x54437b,Inject as _0x2854bc,UserManagerService as _0xee8ebd,IUniverInstanceService as _0x1b1ada,createIdentifier as _0x39166c,DisposableCollection as _0x207116,IConfigService as _0x5e7a12,ILogService as _0x31880b,ISnapshotServerService as _0x5c5b29,RxDisposable as _0x26114b,LocaleService as _0x501416,Injector as _0x28aed1,ILocalStorageService as _0x29e353,Tools as _0x146730,ICommandService as _0x291fa9,JSONX as _0x5f5d93,CommandType as _0x20ade7,IPermissionService as _0x524b2d,IUndoRedoService as _0x1e8ca5,sequenceExecute as _0x343a59,OnLifecycle as _0x3b619c,LifecycleStages as _0x13d562,Optional as _0x36b891,Rectangle as _0x405e44,ThemeService as _0x356051,useDependency as _0x535e2e,connectInjector as _0x1c7a3c,Workbook as _0x5340aa,textEncoder as _0x46e75c,b64DecodeUnicode as _0x2a1742,LocalUndoRedoService as _0x4430ad,IContextService as _0x330f45,COLORS as _0x2cb332,ColorKit as _0x57dab2,fromEventSubject as _0x4fb823,isInternalEditorID as _0xc1669d,Plugin as _0x5791fb,IAuthzIoService as _0x382e20,mergeOverrideWithDependencies as _0x5c52e3,DependentOn as _0x3f4163}from'@univerjs/core';import{SheetsSelectionsService as _0x3bd81d,SetSelectionsOperation as _0x5fa864,InsertSheetMutation as _0x295e2d,EmptyMutation as _0x2006d3,WorkbookEditablePermission as _0x2efdca,RefRangeService as _0x180f6f,EffectRefRangId as _0x23dfbc,handleIRemoveRow as _0x354afa,handleIRemoveCol as _0x3a1e0d,handleMoveRange as _0x32cf1a,handleInsertRow as _0x4f79a5,handleInsertRangeMoveRight as _0x4f72f8,handleInsertRangeMoveDown as _0x5751e9,handleInsertCol as _0x5db54b,handleDeleteRangeMoveUp as _0x3fdc0a,handleDeleteRangeMoveLeft as _0x59566e,runRefRangeMutations as _0x279243,SetWorksheetActivateCommand as _0x488c5e}from'@univerjs/sheets';import{MessageType as _0x403ffc}from'@univerjs/design';import{IBeforeCloseService as _0x498303,IMessageService as _0x192174,INotificationService as _0x55f36b,useObservable as _0x26cb93,BuiltInUIPart as _0x31b0de,IUIPartsService as _0x1588cc}from'@univerjs/ui';import{CollaborationEvent as _0x4e62f0,parseChangesetToProtocol as _0x5ab243,RevisionService as _0x4bf679,isTransformMutationFailure as _0x571c72,isTransformMutationsWithChangesetSuccess as _0x5d016b,ITransformService as _0x5b4b40,mapDocumentTypeToUniverType as _0x286a05,isTransformChangesetsSuccess as _0x110984,CompressMutationService as _0x1c9e18,parseProtocolChangeset as _0x2d3fa1,SnapshotService as _0x235fd7,isTransformMutationsWithChangesetFailure as _0x22b0cf,UniverCollaborationPlugin as _0x1e27ff}from'@univerjs-pro/collaboration';import{merge as _0x19b764,Subject as _0x27d684,BehaviorSubject as _0xbc7543,distinctUntilChanged as _0x59f62b,fromEvent as _0x78aa37,of as _0x2e1ce7,takeUntil as _0x4b5283,debounceTime as _0x5d9837,filter as _0x30916b,switchMap as _0x284752,combineLatest as _0x4ffd7b,shareReplay as _0x2fa1a3,mapTo as _0x3080b0,concatMap as _0xf4bbfb}from'rxjs';import{map as _0x255c5b,takeUntil as _0x15cb3a,take as _0x4bc9cf,filter as _0x4393c3,delay as _0x3db649,shareReplay as _0x28cb00,switchMap as _0x1f02e9,throttleTime as _0x133efc}from'rxjs/operators';import{IMEInputManagerService as _0x55de7b,TextSelectionManagerService as _0x4857f4,serializeDocRange as _0xfbe9ba,RichTextEditingMutation as _0x53c1cb,DocStateChangeManagerService as _0x2f98ea,SetTextSelectionsOperation as _0x49f40d,SetDocZoomRatioOperation as _0x5d1a0c,DocSkeletonManagerService as _0x4a13e2}from'@univerjs/docs';import{HTTPService as _0x3efcab,WebSocketService as _0x4a0f72,MergeInterceptorFactory as _0x222d3b,HTTPRequest as _0x4f3fd2,IHTTPImplementation as _0x54f7a8,XHRHTTPImplementation as _0x50ec1f,ThresholdInterceptorFactory as _0xcec304}from'@univerjs/network';import{ImageSourceType as _0x10d13d,ImageUploadStatusType as _0x1f46e1,IImageIoService as _0x3a43a5}from'@univerjs/drawing';import{Shape as _0x497bf1,Rect as _0x97f8c4,Vector2 as _0x32bb51,NodePositionConvertToCursor as _0x2ea5cc,isValidRectRange as _0x4b651b,NodePositionConvertToRectRange as _0x172ca8,getColor as _0x18174b,TEXT_RANGE_LAYER_INDEX as _0x480610,RegularPolygon as _0x37879a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2257dd,IRenderManagerService as _0x12e84d}from'@univerjs/engine-render';function _0xed79(_0x3dfcb2,_0x88c52d){const _0x28dab4=_0x28da();return _0xed79=function(_0xed79ec,_0x55d7ec){_0xed79ec=_0xed79ec-0x13d;let _0x5e51c2=_0x28dab4[_0xed79ec];return _0x5e51c2;},_0xed79(_0x3dfcb2,_0x88c52d);}import{deserializeRangeWithSheet as _0x4c55b7,serializeRangeWithSheet as _0x2fa69e}from'@univerjs/engine-formula';import _0x238659 from'lodash/debounce';import{VIEWPORT_KEY as _0x574d50,getCoordByCell as _0x487c58,getSheetObject as _0x5c1291,SheetSkeletonManagerService as _0x4ee093,SheetPermissionInitController as _0x174f49}from'@univerjs/sheets-ui';import _0x58584e,{forwardRef as _0x1300f6,useRef as _0x3deeb2,createElement as _0xedc958}from'react';import _0x46f863 from'clsx';import{IRemoteInstanceService as _0x467bd6}from'@univerjs/rpc';const an=_0xa83ddf(0x29b),cn='/universer-api/snapshot',hn=_0xa83ddf(0x171),_n='SEND_CHANGESET_TIMEOUT',ln=0x7d0,un=_0xa83ddf(0x24e),dn=_0xa83ddf(0x2cc),mn=_0xa83ddf(0x453),fn=0x7530,Os=_0xa83ddf(0x174),Ds=0x2710,gn=_0xa83ddf(0x24f),Sn=0x4e20,pn=_0xa83ddf(0x166),vn=0x3,In='LOCAL_CACHE_INTERVAL',En=0x3e8,Cn=_0xa83ddf(0x430),bn=_0xa83ddf(0x3b4),Rn='LOGIN_URL_KEY',Tn=_0xa83ddf(0x224);var Ps=(_0x1fb855=>(_0x1fb855[_0x1fb855['UNDEFINED']=0x0]=_0xa83ddf(0x3d2),_0x1fb855[_0x1fb855['OK']=0x1]='OK',_0x1fb855[_0x1fb855[_0xa83ddf(0x3eb)]=0x2]=_0xa83ddf(0x3eb),_0x1fb855[_0x1fb855[_0xa83ddf(0x3e5)]=0x3]=_0xa83ddf(0x3e5),_0x1fb855[_0x1fb855[_0xa83ddf(0x352)]=0x4]='NOT_FOUND',_0x1fb855[_0x1fb855[_0xa83ddf(0x209)]=0x5]='UNAUTHENTICATED',_0x1fb855[_0x1fb855[_0xa83ddf(0x20e)]=0x6]=_0xa83ddf(0x20e),_0x1fb855[_0x1fb855['INVALID_ARGUMENT']=0x7]=_0xa83ddf(0x36e),_0x1fb855[_0x1fb855[_0xa83ddf(0x2a9)]=0x8]=_0xa83ddf(0x2a9),_0x1fb855[_0x1fb855['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x1fb855[_0x1fb855['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa83ddf(0x2f6),_0x1fb855[_0x1fb855[_0xa83ddf(0x43f)]=0x1771]=_0xa83ddf(0x43f),_0x1fb855[_0x1fb855[_0xa83ddf(0x1cf)]=0x1772]=_0xa83ddf(0x1cf),_0x1fb855[_0x1fb855[_0xa83ddf(0x1df)]=0x1b59]=_0xa83ddf(0x1df),_0x1fb855[_0x1fb855[_0xa83ddf(0x3b6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1fb855[_0x1fb855[_0xa83ddf(0x24a)]=0x1b5b]=_0xa83ddf(0x24a),_0x1fb855[_0x1fb855[_0xa83ddf(0x14d)]=0x1b5c]=_0xa83ddf(0x14d),_0x1fb855[_0x1fb855[_0xa83ddf(0x3b1)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1fb855[_0x1fb855['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x2b9)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x39e)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x3de)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x23b)]=0x232d]=_0xa83ddf(0x23b),_0x1fb855[_0x1fb855[_0xa83ddf(0x25e)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1fb855[_0x1fb855[_0xa83ddf(0x34c)]=0x2712]=_0xa83ddf(0x34c),_0x1fb855[_0x1fb855['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1fb855[_0x1fb855[_0xa83ddf(0x3e2)]=0x2714]=_0xa83ddf(0x3e2),_0x1fb855[_0x1fb855[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x1fb855))(Ps||{}),H=(_0x18acf0=>(_0x18acf0[_0x18acf0[_0xa83ddf(0x282)]=0x0]='UNIVER_UNKNOWN',_0x18acf0[_0x18acf0[_0xa83ddf(0x1f2)]=0x1]=_0xa83ddf(0x1f2),_0x18acf0[_0x18acf0[_0xa83ddf(0x2ac)]=0x2]='UNIVER_SHEET',_0x18acf0[_0x18acf0[_0xa83ddf(0x459)]=0x3]=_0xa83ddf(0x459),_0x18acf0[_0x18acf0['UNIVER_PROJECT']=0x4]=_0xa83ddf(0x31e),_0x18acf0[_0x18acf0['UNRECOGNIZED']=-0x1]=_0xa83ddf(0x372),_0x18acf0))(H||{}),I=(_0x11cbd1=>(_0x11cbd1[_0x11cbd1[_0xa83ddf(0x34f)]=0x0]=_0xa83ddf(0x34f),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x25a)]=0x1]=_0xa83ddf(0x25a),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x1ec)]=0x2]=_0xa83ddf(0x1ec),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x256)]=0x3]=_0xa83ddf(0x256),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x3c9)]=0x4]=_0xa83ddf(0x3c9),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x342)]=0x5]=_0xa83ddf(0x342),_0x11cbd1[_0x11cbd1['RECV']=0x6]='RECV',_0x11cbd1[_0x11cbd1[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x11cbd1))(I||{}),jt=(_0x27f732=>(_0x27f732[_0x27f732[_0xa83ddf(0x277)]=0x0]=_0xa83ddf(0x277),_0x27f732[_0x27f732['OK']=0x1]='OK',_0x27f732[_0x27f732['FAIL']=0x2]=_0xa83ddf(0x30d),_0x27f732[_0x27f732[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x27f732))(jt||{}),ws=(_0x5d97ff=>(_0x5d97ff[_0x5d97ff[_0xa83ddf(0x185)]=0x0]=_0xa83ddf(0x185),_0x5d97ff[_0x5d97ff[_0xa83ddf(0x341)]=0x1]='HttpImport',_0x5d97ff[_0x5d97ff[_0xa83ddf(0x17b)]=0x2]=_0xa83ddf(0x17b),_0x5d97ff[_0x5d97ff[_0xa83ddf(0x460)]=0x3]=_0xa83ddf(0x460),_0x5d97ff[_0x5d97ff['UnitSnapshot']=0x4]='UnitSnapshot',_0x5d97ff[_0x5d97ff[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x5d97ff))(ws||{}),On=Object[_0xa83ddf(0x3b2)],Dn=Object[_0xa83ddf(0x190)],Pn=(_0x24d86f,_0x2cb9e5,_0x4c26a1,_0xba8d63)=>{const _0xcf837=_0xa83ddf;for(var _0x3eef18=_0xba8d63>0x1?void 0x0:_0xba8d63?Dn(_0x2cb9e5,_0x4c26a1):_0x2cb9e5,_0x602e48=_0x24d86f[_0xcf837(0x249)]-0x1,_0x58b436;_0x602e48>=0x0;_0x602e48--)(_0x58b436=_0x24d86f[_0x602e48])&&(_0x3eef18=(_0xba8d63?_0x58b436(_0x2cb9e5,_0x4c26a1,_0x3eef18):_0x58b436(_0x3eef18))||_0x3eef18);return _0xba8d63&&_0x3eef18&&On(_0x2cb9e5,_0x4c26a1,_0x3eef18),_0x3eef18;},Qt=(_0x4bf021,_0x16c56a)=>(_0x2ec4e7,_0x22ab2f)=>_0x16c56a(_0x2ec4e7,_0x22ab2f,_0x4bf021);let ne=class extends _0x54b342{constructor(_0x2d306e,_0x1a7acc){const _0x1d12a4=_0xa83ddf;super(),_(this,_0x1d12a4(0x207),new Map()),(this[_0x1d12a4(0x44a)]=_0x2d306e,this[_0x1d12a4(0x2bb)]=_0x1a7acc,this[_0x1d12a4(0x46f)](_0x5bf8dd(_0x19b764(this[_0x1d12a4(0x44a)]['getTypeOfUnitDisposed$'](_0x54437b[_0x1d12a4(0x2ac)])[_0x1d12a4(0x2e5)](_0x255c5b(_0x2f57bf=>_0x2f57bf[_0x1d12a4(0x27a)]())),this[_0x1d12a4(0x44a)][_0x1d12a4(0x331)](_0x54437b[_0x1d12a4(0x1f2)])[_0x1d12a4(0x2e5)](_0x255c5b(_0x5409b7=>_0x5409b7[_0x1d12a4(0x27a)]())),this[_0x1d12a4(0x44a)][_0x1d12a4(0x331)](_0x54437b[_0x1d12a4(0x459)])['pipe'](_0x255c5b(_0xef1436=>_0xef1436[_0x1d12a4(0x27a)]())))[_0x1d12a4(0x222)](_0x52ebe3=>this[_0x1d12a4(0x3cd)](_0x52ebe3)))));}[_0xa83ddf(0x3ec)](_0x30cab5){const _0x2bea83=_0xa83ddf;this[_0x2bea83(0x2bb)][_0x2bea83(0x3ec)](_0x30cab5);}[_0xa83ddf(0x27f)](){const _0x4746fa=_0xa83ddf;return this['_userManagerService'][_0x4746fa(0x27f)]();}['updateMember'](_0x2b4362,_0x384125){const _0x252303=_0xa83ddf;let _0x19a4bb=this['_roomMembers'][_0x252303(0x441)](_0x2b4362);_0x19a4bb||(_0x19a4bb=new wn(),this[_0x252303(0x207)][_0x252303(0x3fb)](_0x2b4362,_0x19a4bb)),_0x19a4bb[_0x252303(0x2a6)](_0x384125);}['removeMember'](_0x54eac4,_0x2a0017){const _0x49caad=_0xa83ddf,_0x1cb9e0=this[_0x49caad(0x207)][_0x49caad(0x441)](_0x54eac4);_0x1cb9e0&&_0x1cb9e0[_0x49caad(0x27b)](_0x2a0017);}[_0xa83ddf(0x3d3)](_0x533121){const _0x23079f=_0xa83ddf;return this[_0x23079f(0x207)][_0x23079f(0x441)](_0x533121);}['getMember'](_0x32bbe1,_0xc8afd7){const _0x91d70e=_0xa83ddf,_0xdac921=this[_0x91d70e(0x207)]['get'](_0x32bbe1);if(_0xdac921)return _0xdac921[_0x91d70e(0x2c2)](_0xc8afd7);}[_0xa83ddf(0x3cd)](_0x2da234){const _0x4800a3=_0xa83ddf,_0x4acc8c=this[_0x4800a3(0x207)][_0x4800a3(0x441)](_0x2da234);_0x4acc8c&&(_0x4acc8c['dispose'](),this['_roomMembers']['delete'](_0x2da234));}[_0xa83ddf(0x471)](){const _0x27afce=_0xa83ddf;this[_0x27afce(0x207)][_0x27afce(0x3e6)](_0x334d91=>_0x334d91[_0x27afce(0x471)]()),this[_0x27afce(0x207)][_0x27afce(0x365)]();}};ne=Pn([Qt(0x0,_0x1b1ada),Qt(0x1,_0x2854bc(_0xee8ebd))],ne);class wn extends _0x54b342{constructor(){const _0x36cb74=_0xa83ddf;super(...arguments),_(this,_0x36cb74(0x42d),new Map());}[_0xa83ddf(0x471)](){const _0x4d2386=_0xa83ddf;this['_members'][_0x4d2386(0x365)]();}[_0xa83ddf(0x2a6)](_0x43d4ee){const _0x3ade9d=_0xa83ddf;this[_0x3ade9d(0x42d)]['set'](_0x43d4ee[_0x3ade9d(0x469)],_0x43d4ee);}['removeMember'](_0xc998e5){const _0x30ab07=_0xa83ddf;this[_0x30ab07(0x42d)]['delete'](_0xc998e5);}[_0xa83ddf(0x2c2)](_0x55c574){const _0x2f6b03=_0xa83ddf;return this[_0x2f6b03(0x42d)]['get'](_0x55c574);}}function Nn(_0x297502){const _0x283312=_0xa83ddf;var _0x43954c,_0x47ff79,_0x4272c8,_0x4718f3;const _0x193b55=_0x297502[_0x283312(0x2cf)],_0x2eb549=JSON[_0x283312(0x2c8)](_0x193b55);switch(_0x2eb549[_0x283312(0x413)]){case I[_0x283312(0x342)]:case I[_0x283312(0x25a)]:{const _0x1c936b=_0x2eb549[_0x283312(0x1db)];return{..._0x2eb549,'data':_0x1c936b,'cmd':_0x2eb549[_0x283312(0x413)]};}case I['JOIN']:{const _0x75ecf6=_0x2eb549[_0x283312(0x415)];return{..._0x2eb549,'data':_0x75ecf6,'cmd':_0x2eb549[_0x283312(0x413)]};}case I[_0x283312(0x417)]:{const _0x85ac23=_0x2eb549[_0x283312(0x2da)];switch(_0x85ac23[_0x283312(0x217)]){case _0x4e62f0[_0x283312(0x3df)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x43954c=_0x85ac23[_0x283312(0x35d)])==null?void 0x0:_0x43954c['cs']},'cmd':_0x2eb549['cmd']};case _0x4e62f0[_0x283312(0x3ac)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x47ff79=_0x85ac23[_0x283312(0x18f)])==null?void 0x0:_0x47ff79['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['NEW_CHANGESETS']:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x4272c8=_0x85ac23[_0x283312(0x396)])==null?void 0x0:_0x4272c8['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x22d)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x4718f3=_0x85ac23['csRejEvent'])==null?void 0x0:_0x4718f3['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x15f)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x398)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x218)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x1fa)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['USERS_LEAVE']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['leaveEvent']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['LIVESHARE_NEW_HOST']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x353)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x378)]:case _0x4e62f0[_0x283312(0x30c)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x3ef)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x26c)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x353)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x25b)]:return{..._0x2eb549,'data':_0x85ac23,'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x3bc)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['commentUpdateEvent']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x223)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['updatePermissionObjEvent']},'cmd':_0x2eb549['cmd']};case _0x4e62f0['SHOULD_CLOSE_CONN']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['shouldCloseConn']},'cmd':_0x2eb549[_0x283312(0x413)]};default:return _0x2eb549;}}default:return _0x2eb549;}}function Mn(_0x50c07d){const _0x42fdc6=_0xa83ddf;switch(_0x50c07d[_0x42fdc6(0x413)]){case I['HEARTBEAT']:case I[_0x42fdc6(0x25a)]:return JSON[_0x42fdc6(0x284)]({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d['routeKey']});case I[_0x42fdc6(0x3c9)]:{let _0x3a9356;switch(_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x217)]){case _0x4e62f0[_0x42fdc6(0x15f)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x15f)],'updateCursorEvent':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x3f2)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x3f2)],'leaveEvent':_0x50c07d['data'][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0['USERS_ENTER']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x218)],'joinEvent':_0x50c07d[_0x42fdc6(0x2cf)]['data']};break;}case _0x4e62f0['LIVESHARE_NEW_HOST']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x2cd)],'liveShareNewHost':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x30c)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x30c)],'liveShareOperation':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x26c)]:{_0x3a9356={'eventID':_0x4e62f0['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x50c07d['data'][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x269)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x269)],'liveShareRequestHost':_0x50c07d[_0x42fdc6(0x2cf)]['data']};break;}case _0x4e62f0['LIVESHARE_FETCH_OPERATIONS']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x378)]};break;}default:_0x3a9356={'eventID':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x217)]};}return JSON[_0x42fdc6(0x284)]({'cmd':_0x50c07d['cmd'],'routeKey':_0x50c07d[_0x42fdc6(0x186)],'collaMsg':_0x3a9356});}case I[_0x42fdc6(0x1ec)]:return JSON['stringify']({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d['routeKey'],'joinReq':_0x50c07d['data']});case I[_0x42fdc6(0x256)]:return JSON['stringify']({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d[_0x42fdc6(0x186)],'leaveReq':_0x50c07d['data']});default:throw new Error(_0x42fdc6(0x182));}}var An=Object[_0xa83ddf(0x3b2)],Un=Object[_0xa83ddf(0x190)],yn=(_0x3637cf,_0x347038,_0xcc0c3b,_0x213d2c)=>{for(var _0x41d220=_0x213d2c>0x1?void 0x0:_0x213d2c?Un(_0x347038,_0xcc0c3b):_0x347038,_0x32d9b8=_0x3637cf['length']-0x1,_0xc3f03d;_0x32d9b8>=0x0;_0x32d9b8--)(_0xc3f03d=_0x3637cf[_0x32d9b8])&&(_0x41d220=(_0x213d2c?_0xc3f03d(_0x347038,_0xcc0c3b,_0x41d220):_0xc3f03d(_0x41d220))||_0x41d220);return _0x213d2c&&_0x41d220&&An(_0x347038,_0xcc0c3b,_0x41d220),_0x41d220;},Te=(_0x13683a,_0x1297b)=>(_0x3a73b2,_0x121c27)=>_0x1297b(_0x3a73b2,_0x121c27,_0x13683a);const Ns=_0x39166c(_0xa83ddf(0x45f));function Ln(_0x574eac,_0x1498f2,_0x219e16){const _0x54d4ed=_0xa83ddf;return _0x574eac+'/'+_0x1498f2+_0x54d4ed(0x247)+_0x219e16+_0x54d4ed(0x47a);}let vt=class{constructor(_0x42f14b,_0x2cabde,_0x23c75d,_0x353474,_0xe4b73f){const _0x5b2409=_0xa83ddf;this['_http']=_0x42f14b,this[_0x5b2409(0x203)]=_0x2cabde,this[_0x5b2409(0x442)]=_0x23c75d,this[_0x5b2409(0x33d)]=_0x353474,this[_0x5b2409(0x1bb)]=_0xe4b73f;}['createSocket'](_0x2363f4){const _0xcd43e9=_0xa83ddf,_0x1752de=this['_ws'][_0xcd43e9(0x3b8)](_0x2363f4);if(!_0x1752de)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x5515ab=new _0x207116(),_0x54c1a0=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x170)][_0xcd43e9(0x222)](_0x1baf2d=>_0x54c1a0[_0xcd43e9(0x311)](_0x1baf2d)))),_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(()=>_0x54c1a0['complete']()));const _0x58713=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x332)]['subscribe'](_0x57d7fd=>_0x58713[_0xcd43e9(0x311)](_0x57d7fd)))),_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(()=>_0x58713[_0xcd43e9(0x308)]()));const _0x45e438=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x414)]['subscribe'](_0x3eedae=>{const _0x479422=_0xcd43e9,_0x3e9dff=Nn(_0x3eedae);_0x45e438[_0x479422(0x311)](_0x3e9dff);}))),_0x5515ab['add'](_0x5bf8dd(()=>_0x45e438[_0xcd43e9(0x308)]()));const _0x37977a=()=>{const _0x4ebb04=_0xcd43e9;_0x58713[_0x4ebb04(0x311)](new Event(_0x4ebb04(0x18e))),_0x54c1a0['next'](new CloseEvent(_0x4ebb04(0x18e))),_0x1371c2[_0x4ebb04(0x2af)]();},_0x1371c2={'memberID':'','close$':_0x54c1a0[_0xcd43e9(0x473)](),'error$':_0x58713['asObservable'](),'open$':_0x1752de[_0xcd43e9(0x38f)],'message$':_0x45e438['asObservable'](),'send':_0x22824f=>{const _0x82be32=_0xcd43e9;if(_0x22824f[_0x82be32(0x413)]===I[_0x82be32(0x3c9)]){if(_0x22824f['data'][_0x82be32(0x217)]===_0x4e62f0[_0x82be32(0x2c7)]){this['_submitChangeset'](_0x1371c2,_0x22824f[_0x82be32(0x2cf)])[_0x82be32(0x3c3)](_0x21765a=>{const _0x1e7cae=_0x82be32;this['_logService'][_0x1e7cae(0x44e)](_0x21765a),_0x37977a();});return;}if(_0x22824f[_0x82be32(0x2cf)]['eventID']===_0x4e62f0[_0x82be32(0x316)]){const _0x3d2b5d=_0x22824f[_0x82be32(0x2cf)];this[_0x82be32(0x291)](_0x3d2b5d)[_0x82be32(0x450)](_0x1031d5=>{const _0x49469d=_0x82be32;_0x45e438['next']({'cmd':I[_0x49469d(0x417)],'code':jt['OK'],'routeKey':_0x3d2b5d[_0x49469d(0x2cf)][_0x49469d(0x452)],'routeType':'','data':{'eventID':_0x4e62f0[_0x49469d(0x1a7)],'data':{'changesets':_0x1031d5}}});})[_0x82be32(0x3c3)](_0x23bb7c=>{const _0x378930=_0x82be32;this[_0x378930(0x33d)][_0x378930(0x44e)](_0x23bb7c),_0x37977a();});return;}}_0x1752de[_0x82be32(0x14f)](Mn(_0x22824f));},'close':()=>{const _0x5f2f38=_0xcd43e9;_0x1752de['close'](),_0x5515ab[_0x5f2f38(0x471)]();}};return _0x1371c2;}async[_0xa83ddf(0x33f)](_0x17cbe0,_0x286307){const _0x3e0f43=_0xa83ddf;var _0x3a8db2;const {unitType:_0x540b6f,unitID:_0x4c2f8e,changeset:_0x5075fb}=_0x286307[_0x3e0f43(0x2cf)],_0x686977={'unitID':_0x4c2f8e,'memberID':_0x17cbe0[_0x3e0f43(0x469)],'type':_0x540b6f,'changeset':_0x5ab243(_0x5075fb)},_0x1ee61f=Ln((_0x3a8db2=this[_0x3e0f43(0x442)]['getConfig'](Cn))!=null?_0x3a8db2:bn,_0x540b6f,_0x4c2f8e);try{await this[_0x3e0f43(0x32b)]['post'](_0x1ee61f,{'body':_0x686977});}catch(_0x52eeac){throw this[_0x3e0f43(0x33d)]['error'](_0x3e0f43(0x2e7),_0x3e0f43(0x2eb)),_0x52eeac;}}async[_0xa83ddf(0x291)](_0x3bafae){const _0xe6d32e=_0xa83ddf,{unitID:_0x3cb5b0,from:_0x3ea0b0,to:_0xf6a81c,unitType:_0x34a739}=_0x3bafae[_0xe6d32e(0x2cf)];return(await this[_0xe6d32e(0x1bb)][_0xe6d32e(0x21e)]({'metadata':void 0x0},{'unitID':_0x3cb5b0,'type':_0x34a739,'from':_0x3ea0b0,'to':_0xf6a81c}))[_0xe6d32e(0x263)];}};vt=yn([Te(0x0,_0x2854bc(_0x3efcab)),Te(0x1,_0x2854bc(_0x4a0f72)),Te(0x2,_0x5e7a12),Te(0x3,_0x31880b),Te(0x4,_0x5c5b29)],vt);class Ms{constructor(){const _0x3d51d8=_0xa83ddf;_(this,'_commentUpdate$',new _0x27d684()),_(this,_0x3d51d8(0x3a7),this[_0x3d51d8(0x3d4)][_0x3d51d8(0x473)]());}[_0xa83ddf(0x23e)](_0x5bb6ec){const _0x5416f1=_0xa83ddf;this[_0x5416f1(0x3d4)][_0x5416f1(0x311)](_0x5bb6ec);}}var $n=Object[_0xa83ddf(0x3b2)],jn=Object[_0xa83ddf(0x190)],As=(_0x4d3fd7,_0xf9a89a,_0x2dc97a,_0x208ac7)=>{for(var _0x3d7220=_0x208ac7>0x1?void 0x0:_0x208ac7?jn(_0xf9a89a,_0x2dc97a):_0xf9a89a,_0x2be658=_0x4d3fd7['length']-0x1,_0x49c6bb;_0x2be658>=0x0;_0x2be658--)(_0x49c6bb=_0x4d3fd7[_0x2be658])&&(_0x3d7220=(_0x208ac7?_0x49c6bb(_0xf9a89a,_0x2dc97a,_0x3d7220):_0x49c6bb(_0x3d7220))||_0x3d7220);return _0x208ac7&&_0x3d7220&&$n(_0xf9a89a,_0x2dc97a,_0x3d7220),_0x3d7220;},A=(_0x19f217,_0x33529f)=>(_0x386e71,_0x3c0008)=>_0x33529f(_0x386e71,_0x3c0008,_0x19f217),fe=(_0x3188a9=>(_0x3188a9[_0x3188a9[_0xa83ddf(0x43d)]=0x0]=_0xa83ddf(0x43d),_0x3188a9[_0x3188a9[_0xa83ddf(0x34d)]=0x1]=_0xa83ddf(0x34d),_0x3188a9[_0x3188a9[_0xa83ddf(0x42e)]=0x2]='OFFLINE',_0x3188a9[_0x3188a9[_0xa83ddf(0x310)]=0x3]=_0xa83ddf(0x310),_0x3188a9))(fe||{});let It=class extends _0x26114b{constructor(_0x18f173,_0x296739,_0x7cd486,_0x321117,_0x4feca1,_0x4d40af,_0x3c3bb9,_0x4301a1,_0x29d78b){const _0x32e137=_0xa83ddf;super(),_(this,_0x32e137(0x146),new _0xbc7543(0x0)),_(this,_0x32e137(0x409),this[_0x32e137(0x146)][_0x32e137(0x473)]()),_(this,'_event$',new _0x27d684()),_(this,'event$',this[_0x32e137(0x408)][_0x32e137(0x473)]()),_(this,'_socket'),_(this,'_socketMessageSubscription'),_(this,_0x32e137(0x379)),(this['_unitID']=_0x18f173,this[_0x32e137(0x33d)]=_0x7cd486,this[_0x32e137(0x2e1)]=_0x321117,this[_0x32e137(0x19d)]=_0x4feca1,this['_configService']=_0x4d40af,this[_0x32e137(0x46b)]=_0x3c3bb9,this[_0x32e137(0x13e)]=_0x4301a1,this[_0x32e137(0x1b0)]=_0x29d78b,_0x296739[_0x32e137(0x2e5)](_0x15cb3a(this[_0x32e137(0x22b)]))[_0x32e137(0x222)](_0x4fb637=>{const _0xc87a96=_0x32e137;var _0x356494;typeof _0x4fb637>'u'||(this[_0xc87a96(0x39f)]=_0x4fb637,_0x4fb637?(this['_joinRoom'](_0x4fb637),this[_0xc87a96(0x1aa)]=this['_socket'][_0xc87a96(0x414)][_0xc87a96(0x222)](_0x32f15d=>{const _0x41c2b8=_0xc87a96;_0x32f15d['routeKey']===this['_unitID']&&this[_0x41c2b8(0x187)](_0x32f15d);})):(this['_sessionStatus$'][_0xc87a96(0x311)](0x2),(_0x356494=this[_0xc87a96(0x1aa)])==null||_0x356494[_0xc87a96(0x23d)](),this[_0xc87a96(0x1aa)]=null));}),this['disposeWithMe'](this[_0x32e137(0x2e1)]['registerOnClose'](()=>{const _0x5b1ca0=_0x32e137;var _0x3a25bf;(_0x3a25bf=this[_0x5b1ca0(0x39f)])==null||_0x3a25bf[_0x5b1ca0(0x14f)]({'cmd':I[_0x5b1ca0(0x256)],'data':{'roomID':this[_0x5b1ca0(0x44b)]}});})));}get[_0xa83ddf(0x250)](){const _0x1b875f=_0xa83ddf;return this[_0x1b875f(0x146)][_0x1b875f(0x1ac)]();}[_0xa83ddf(0x1fc)](){const _0x21a56e=_0xa83ddf;var _0x492570,_0x5c91f8;return(_0x5c91f8=(_0x492570=this['_socket'])==null?void 0x0:_0x492570[_0x21a56e(0x469)])!=null?_0x5c91f8:null;}[_0xa83ddf(0x471)](){const _0x3ec2ec=_0xa83ddf;super[_0x3ec2ec(0x471)](),this[_0x3ec2ec(0x22b)]['next'](),this[_0x3ec2ec(0x22b)][_0x3ec2ec(0x308)]();}[_0xa83ddf(0x2af)](){const _0x1f59a8=_0xa83ddf;var _0x482bd9,_0x529aba;(_0x482bd9=this[_0x1f59a8(0x39f)])==null||_0x482bd9[_0x1f59a8(0x14f)]({'cmd':I[_0x1f59a8(0x256)],'data':{'roomID':this[_0x1f59a8(0x44b)]}}),this[_0x1f59a8(0x408)][_0x1f59a8(0x308)](),this['_sessionStatus$'][_0x1f59a8(0x308)](),(_0x529aba=this[_0x1f59a8(0x39f)])==null||_0x529aba[_0x1f59a8(0x2af)](),this[_0x1f59a8(0x471)]();}['_onCombEvent'](_0x8db198){const _0x3d4df8=_0xa83ddf;_0x8db198['cmd']===I[_0x3d4df8(0x1ec)]?this[_0x3d4df8(0x40c)](_0x8db198):_0x8db198[_0x3d4df8(0x413)]===I[_0x3d4df8(0x417)]&&this['_onRecvEvent'](_0x8db198);}[_0xa83ddf(0x411)](_0x22bc2){const _0x58c2c4=_0xa83ddf;this[_0x58c2c4(0x146)][_0x58c2c4(0x311)](0x1),_0x22bc2[_0x58c2c4(0x14f)]({'cmd':I[_0x58c2c4(0x1ec)],'routeKey':this[_0x58c2c4(0x44b)],'routeType':'','data':{'rooms':[{'roomID':this[_0x58c2c4(0x44b)]}]}});}[_0xa83ddf(0x40c)](_0x55f0f1){const _0x1fd6a7=_0xa83ddf;var _0x516f23;if(_0x55f0f1[_0x1fd6a7(0x3ee)]===jt[_0x1fd6a7(0x30d)]){this['_messageService'][_0x1fd6a7(0x178)]({'type':_0x403ffc[_0x1fd6a7(0x407)],'content':this[_0x1fd6a7(0x46b)]['t'](_0x1fd6a7(0x1b3))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x1fd6a7(0x146)]['next'](0x3);const _0x35ed62=(_0x516f23=_0x55f0f1[_0x1fd6a7(0x2cf)][_0x1fd6a7(0x220)][this['_unitID']])==null?void 0x0:_0x516f23[_0x1fd6a7(0x3c5)];_0x35ed62&&_0x35ed62['forEach'](_0x39ebe7=>this[_0x1fd6a7(0x13e)][_0x1fd6a7(0x2a6)](this[_0x1fd6a7(0x44b)],_0x39ebe7));}[_0xa83ddf(0x2d5)](_0x17a90f){const _0x21ffb0=_0xa83ddf;try{const _0x154209=_0x17a90f['data'];switch(_0x154209[_0x21ffb0(0x217)]){case _0x4e62f0['USERS_ENTER']:this[_0x21ffb0(0x213)](_0x154209),this['_event$'][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3f2)]:this[_0x21ffb0(0x35a)](_0x154209),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3ac)]:this[_0x21ffb0(0x237)](),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0['MSG_FOR_ERROR']:this[_0x21ffb0(0x33d)]['error'](_0x21ffb0(0x1e6)+JSON['stringify'](_0x154209)),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3bc)]:this['_commentService']['onCommentUpdate'](_0x154209[_0x21ffb0(0x2cf)]),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;default:this[_0x21ffb0(0x408)]['next'](_0x154209);}}catch(_0x408bd9){this[_0x21ffb0(0x33d)][_0x21ffb0(0x44e)](_0x408bd9,_0x17a90f);}}[_0xa83ddf(0x213)](_0x2c9e74){const _0x45c09f=_0xa83ddf;this[_0x45c09f(0x13e)][_0x45c09f(0x2a6)](this[_0x45c09f(0x44b)],_0x2c9e74[_0x45c09f(0x2cf)]);}[_0xa83ddf(0x35a)](_0x3e39a8){const _0x32ed55=_0xa83ddf;this[_0x32ed55(0x13e)][_0x32ed55(0x27b)](this[_0x32ed55(0x44b)],_0x3e39a8['data'][_0x32ed55(0x469)]);}async[_0xa83ddf(0x14f)](_0x21448d,_0x1a099a){const _0x3c757b=_0xa83ddf;if(this[_0x3c757b(0x250)]!==0x3||!this[_0x3c757b(0x39f)])throw new Error(_0x3c757b(0x27d));try{_0x21448d[_0x3c757b(0x217)]===_0x4e62f0[_0x3c757b(0x468)]&&this[_0x3c757b(0x2f5)](),this['_socket'][_0x3c757b(0x14f)]({'cmd':I[_0x3c757b(0x3c9)],'routeKey':_0x1a099a,'routeType':'','data':_0x21448d});}catch(_0x1a6706){this['_logService'][_0x3c757b(0x44e)](_0x1a6706);}}[_0xa83ddf(0x2f5)](){const _0x5bdeec=_0xa83ddf;var _0x40961d;this[_0x5bdeec(0x379)]=window[_0x5bdeec(0x1f9)](()=>{const _0x332b34=_0x5bdeec;this[_0x332b34(0x379)]=null,this[_0x332b34(0x19d)][_0x332b34(0x178)]({'type':_0x403ffc[_0x332b34(0x1e5)],'content':this[_0x332b34(0x46b)]['t']('session.collaboration-timeout')});},(_0x40961d=this['_configService']['getConfig'](Os))!=null?_0x40961d:Ds);}[_0xa83ddf(0x237)](){const _0x3ac2a8=_0xa83ddf;this[_0x3ac2a8(0x379)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3ac2a8(0x379)]=null);}};It=As([A(0x2,_0x31880b),A(0x3,_0x498303),A(0x4,_0x192174),A(0x5,_0x5e7a12),A(0x6,_0x2854bc(_0x501416)),A(0x7,_0x2854bc(ne)),A(0x8,_0x2854bc(Ms))],It);let pe=class extends _0x54b342{constructor(_0x3449f3,_0x3d3801,_0x1afb60,_0x26e819,_0x21ab74,_0x293da1){const _0x241734=_0xa83ddf;super(),_(this,_0x241734(0x1de),new _0xbc7543(void 0x0)),_(this,'_sessions',new Map()),_(this,_0x241734(0x211),new _0xbc7543(0x0)),_(this,_0x241734(0x3c1),this[_0x241734(0x211)][_0x241734(0x473)]()),_(this,'_socketReady',!0x1),_(this,_0x241734(0x1c7)),_(this,_0x241734(0x2b0)),_(this,_0x241734(0x24b)),_(this,_0x241734(0x424),0x0),(this['_injector']=_0x3449f3,this[_0x241734(0x46b)]=_0x3d3801,this[_0x241734(0x19d)]=_0x1afb60,this['_logService']=_0x26e819,this[_0x241734(0x442)]=_0x21ab74,this[_0x241734(0x37f)]=_0x293da1);}get[_0xa83ddf(0x39f)](){const _0x215f4a=_0xa83ddf;return this[_0x215f4a(0x1de)][_0x215f4a(0x1ac)]();}[_0xa83ddf(0x471)](){const _0x2d694a=_0xa83ddf;super['dispose'](),this[_0x2d694a(0x297)]['forEach'](_0x3e0227=>_0x3e0227[_0x2d694a(0x471)]()),this[_0x2d694a(0x297)]['clear'](),this[_0x2d694a(0x211)]['complete']();}async['requireSession'](_0x3fd5f4){const _0x26f0c9=_0xa83ddf;if(this['_sessions'][_0x26f0c9(0x437)](_0x3fd5f4))return this[_0x26f0c9(0x297)]['get'](_0x3fd5f4);this[_0x26f0c9(0x29d)]();const _0x4b1f67=this['_injector'][_0x26f0c9(0x274)](It,_0x3fd5f4,this[_0x26f0c9(0x1de)][_0x26f0c9(0x473)]());return this[_0x26f0c9(0x297)][_0x26f0c9(0x3fb)](_0x3fd5f4,_0x4b1f67),_0x4b1f67;}[_0xa83ddf(0x1e9)](_0x5b0a3b){const _0x4b8b6e=_0xa83ddf;var _0x5a8103;const _0x295edc=this[_0x4b8b6e(0x297)]['get'](_0x5b0a3b);_0x295edc&&(this[_0x4b8b6e(0x297)][_0x4b8b6e(0x29c)](_0x5b0a3b),_0x295edc['close']()),this[_0x4b8b6e(0x297)][_0x4b8b6e(0x41b)]||(_0x5a8103=this[_0x4b8b6e(0x39f)])==null||_0x5a8103['close']();}[_0xa83ddf(0x19b)](){const _0x5bbc15=_0xa83ddf;var _0x129d41;const _0x38a20b=(_0x129d41=this[_0x5bbc15(0x442)][_0x5bbc15(0x436)](un))!=null?_0x129d41:dn;return this[_0x5bbc15(0x37f)][_0x5bbc15(0x3b8)](_0x38a20b);}['_tryEnsureSocket'](){const _0x211ab8=_0xa83ddf;try{const _0x3923f0=this[_0x211ab8(0x19b)]();if(_0x3923f0){const _0x4de91b=_0x3923f0['send'];_0x3923f0[_0x211ab8(0x14f)]=_0x55858f=>(this['_rescheduleHeartbeatEvent'](),_0x4de91b[_0x211ab8(0x451)](_0x3923f0,[_0x55858f])),_0x3923f0[_0x211ab8(0x414)][_0x211ab8(0x222)](_0x52a092=>this[_0x211ab8(0x276)](_0x3923f0,_0x52a092)),_0x3923f0[_0x211ab8(0x332)][_0x211ab8(0x2e5)](_0x4bc9cf(0x1))[_0x211ab8(0x222)](_0x2eab4e=>this[_0x211ab8(0x33d)][_0x211ab8(0x44e)](_0x211ab8(0x478),_0x2eab4e)),_0x3923f0[_0x211ab8(0x38f)]['pipe'](_0x4bc9cf(0x1))[_0x211ab8(0x222)](()=>{this['_onConnectionOpen'](_0x3923f0);}),_0x3923f0['close$'][_0x211ab8(0x2e5)](_0x4bc9cf(0x1))[_0x211ab8(0x222)](_0x5bcfe7=>{const _0x223f6a=_0x211ab8;this[_0x223f6a(0x33d)][_0x223f6a(0x427)](_0x223f6a(0x336),'socket\x20close',_0x5bcfe7),this[_0x223f6a(0x1a0)]();});}}catch(_0x22d634){this['_logService'][_0x211ab8(0x44e)](_0x22d634),this[_0x211ab8(0x1a0)]();}}[_0xa83ddf(0x454)](_0x972651){const _0x1fdaeb=_0xa83ddf;this['_logService'][_0x1fdaeb(0x427)](_0x1fdaeb(0x336),_0x1fdaeb(0x35f)),_0x972651[_0x1fdaeb(0x14f)]({'cmd':I[_0x1fdaeb(0x25a)]}),this['_rescheduleHeartbeatEvent']();}[_0xa83ddf(0x1a0)](){const _0x328825=_0xa83ddf;var _0x2c3472;this['_status$'][_0x328825(0x311)](0x2),this[_0x328825(0x1de)][_0x328825(0x311)](null),this[_0x328825(0x22c)](),this[_0x328825(0x339)](),this[_0x328825(0x1a5)]=!0x1,this['_retryCount']<((_0x2c3472=this[_0x328825(0x442)][_0x328825(0x436)](pn))!=null?_0x2c3472:vn)?(this[_0x328825(0x2f0)](this['_retryCount']),this[_0x328825(0x424)]+=0x1):this['_messageService'][_0x328825(0x178)]({'type':_0x403ffc[_0x328825(0x1e5)],'content':this[_0x328825(0x46b)]['t']('session.connection-failed')});}[_0xa83ddf(0x2f0)](_0x546d2f){const _0x58915f=_0xa83ddf;var _0x50b8a6;const _0x28bb71=((_0x50b8a6=this[_0x58915f(0x442)][_0x58915f(0x436)](gn))!=null?_0x50b8a6:Sn)*0x2**_0x546d2f;this[_0x58915f(0x19d)][_0x58915f(0x178)]({'type':_0x403ffc[_0x58915f(0x407)],'content':this['_localeService']['t'](_0x58915f(0x159))}),this[_0x58915f(0x24b)]=setTimeout(()=>{const _0x417ff5=_0x58915f;this[_0x417ff5(0x29d)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x28bb71);}['_rescheduleHeartbeatEvent'](){const _0x5e51cf=_0xa83ddf;var _0x565638;this[_0x5e51cf(0x339)](),this[_0x5e51cf(0x1c7)]=setTimeout(()=>this[_0x5e51cf(0x3f9)](),(_0x565638=this[_0x5e51cf(0x442)][_0x5e51cf(0x436)](mn))!=null?_0x565638:fn);}['_sendHeartbeat'](){const _0x36fb53=_0xa83ddf;this[_0x36fb53(0x39f)][_0x36fb53(0x14f)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0xa83ddf(0x266)](){const _0x214b4e=_0xa83ddf;var _0x4f63fe;this[_0x214b4e(0x2b0)]=setTimeout(()=>this[_0x214b4e(0x1a0)](),(_0x4f63fe=this['_configService'][_0x214b4e(0x436)](Os))!=null?_0x4f63fe:Ds);}[_0xa83ddf(0x276)](_0x35fe10,_0x4700a2){const _0x1efd9e=_0xa83ddf,{cmd:_0x383228}=_0x4700a2;_0x383228===I[_0x1efd9e(0x25a)]&&!this[_0x1efd9e(0x1a5)]&&(_0x35fe10['memberID']=_0x4700a2[_0x1efd9e(0x2cf)]['memberID'],this[_0x1efd9e(0x1de)][_0x1efd9e(0x311)](_0x35fe10),this[_0x1efd9e(0x211)][_0x1efd9e(0x311)](0x3),this[_0x1efd9e(0x1a5)]=!0x0),_0x383228===I[_0x1efd9e(0x342)]&&this[_0x1efd9e(0x22c)](),this[_0x1efd9e(0x20b)]();}[_0xa83ddf(0x339)](){const _0x41a54c=_0xa83ddf;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x41a54c(0x1c7)]),this[_0x41a54c(0x1c7)]=null);}[_0xa83ddf(0x22c)](){const _0x3518f2=_0xa83ddf;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3518f2(0x2b0)]=null);}};pe=As([A(0x0,_0x2854bc(_0x28aed1)),A(0x1,_0x2854bc(_0x501416)),A(0x2,_0x192174),A(0x3,_0x31880b),A(0x4,_0x5e7a12),A(0x5,Ns)],pe);var xn=Object[_0xa83ddf(0x3b2)],Hn=Object[_0xa83ddf(0x190)],kn=(_0x50317d,_0x491a8a,_0xdcdc95,_0x28c0fe)=>{const _0x15d4cf=_0xa83ddf;for(var _0x21183b=_0x28c0fe>0x1?void 0x0:_0x28c0fe?Hn(_0x491a8a,_0xdcdc95):_0x491a8a,_0x57ebc5=_0x50317d[_0x15d4cf(0x249)]-0x1,_0xe71370;_0x57ebc5>=0x0;_0x57ebc5--)(_0xe71370=_0x50317d[_0x57ebc5])&&(_0x21183b=(_0x28c0fe?_0xe71370(_0x491a8a,_0xdcdc95,_0x21183b):_0xe71370(_0x21183b))||_0x21183b);return _0x28c0fe&&_0x21183b&&xn(_0x491a8a,_0xdcdc95,_0x21183b),_0x21183b;},Oe=(_0x4e9b18,_0x4a87c4)=>(_0x194542,_0xb72873)=>_0x4a87c4(_0x194542,_0xb72873,_0x4e9b18);let D=class extends _0x54b342{constructor(_0x55d3ae,_0x1512dd,_0x5e7cf2,_0x1c6eaf,_0x442baa){const _0x564b83=_0xa83ddf;super(),_(this,_0x564b83(0x465),new Map()),_(this,_0x564b83(0x432),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x55d3ae,this[_0x564b83(0x418)]=_0x1512dd,this[_0x564b83(0x2e1)]=_0x5e7cf2,this[_0x564b83(0x46b)]=_0x1c6eaf,this[_0x564b83(0x2c6)]=_0x442baa,this[_0x564b83(0x22a)]());}[_0xa83ddf(0x301)](){this['_disabled']=!0x0;}[_0xa83ddf(0x2e0)](){const _0x1caf37=_0xa83ddf;this[_0x1caf37(0x39d)]=!0x1;}[_0xa83ddf(0x471)](){const _0x190e96=_0xa83ddf;this[_0x190e96(0x3ab)]()[_0x190e96(0x450)](()=>super['dispose']());}async[_0xa83ddf(0x392)](_0x2354bb){const _0x57bed5=_0xa83ddf;return this[_0x57bed5(0x39d)]?null:this[_0x57bed5(0x418)][_0x57bed5(0x325)](es(_0x2354bb));}async[_0xa83ddf(0x271)](_0x8a3a36,_0x35c0ec){const _0x30932d=_0xa83ddf;return!!this[_0x30932d(0x418)][_0x30932d(0x26f)](_0x8a3a36,_0x35c0ec);}['updateOfflineData'](_0x10405a,_0x50c830,_0x4ef593,_0x49060d){const _0x465161=_0xa83ddf,_0x38b764=this['_revisionService'][_0x465161(0x238)](_0x10405a);this['_cachedData'][_0x465161(0x3fb)](_0x10405a,{'unitID':_0x10405a,'type':_0x50c830,'awaitingChangeset':_0x4ef593,'mutations':_0x49060d,'rev':_0x38b764}),this[_0x465161(0x432)]['has'](_0x10405a)||this[_0x465161(0x319)](_0x10405a);}[_0xa83ddf(0x319)](_0x198b76){const _0x239efd=_0xa83ddf,_0x3f809e=this[_0x239efd(0x37c)]();_0x3f809e===0x0?this[_0x239efd(0x31f)](_0x198b76):this[_0x239efd(0x432)][_0x239efd(0x3fb)](_0x198b76,setTimeout(()=>this['_saveCache'](_0x198b76),_0x3f809e));}[_0xa83ddf(0x37c)](){const _0x5f5019=_0xa83ddf;var _0x1306a6;return(_0x1306a6=this[_0x5f5019(0x442)][_0x5f5019(0x436)](In))!=null?_0x1306a6:En;}['_saveCache'](_0x2d3deb){const _0x38e11=_0xa83ddf,_0x1bf4af=this[_0x38e11(0x432)]['get'](_0x2d3deb);return _0x1bf4af!==void 0x0&&window['clearTimeout'](_0x1bf4af),this[_0x38e11(0x418)][_0x38e11(0x26f)](es(_0x2d3deb),this[_0x38e11(0x465)][_0x38e11(0x441)](_0x2d3deb))[_0x38e11(0x450)](()=>this['_saveTaskMap'][_0x38e11(0x29c)](_0x2d3deb));}async[_0xa83ddf(0x3ab)](){const _0x2983cf=_0xa83ddf,_0x28146c=[];this[_0x2983cf(0x432)][_0x2983cf(0x3e6)]((_0xed8e0d,_0x41f9b4)=>{const _0x4ea271=_0x2983cf;window[_0x4ea271(0x3e7)](_0xed8e0d),_0x28146c[_0x4ea271(0x14e)](this[_0x4ea271(0x31f)](_0x41f9b4)[_0x4ea271(0x450)](()=>{const _0x371a5b=_0x4ea271;this['_saveTaskMap'][_0x371a5b(0x29c)](_0x41f9b4);}));}),await Promise[_0x2983cf(0x150)](_0x28146c);}[_0xa83ddf(0x22a)](){const _0x2a5c38=_0xa83ddf;this[_0x2a5c38(0x46f)](this[_0x2a5c38(0x2e1)][_0x2a5c38(0x2bc)](()=>{const _0x1109b9=_0x2a5c38;if(this['_saveTaskMap']['size'])return this[_0x1109b9(0x46b)]['t']('collaboration-client.offline-data-not-saved');}));}};D=kn([Oe(0x0,_0x5e7a12),Oe(0x1,_0x29e353),Oe(0x2,_0x498303),Oe(0x3,_0x2854bc(_0x501416)),Oe(0x4,_0x2854bc(_0x4bf679))],D);function es(_0x5bbe9){const _0xe74b6b=_0xa83ddf;return _0xe74b6b(0x2db)+_0x5bbe9;}const tt=_0x39166c(_0xa83ddf(0x36a));var Us=(_0x6696e9=>(_0x6696e9[_0x6696e9[_0xa83ddf(0x43c)]=0x0]=_0xa83ddf(0x43c),_0x6696e9[_0x6696e9[_0xa83ddf(0x3d8)]=0x1]=_0xa83ddf(0x3d8),_0x6696e9))(Us||{});const ts=0x7530,ss=_0xa83ddf(0x315);class Vn extends _0x54b342{constructor(){const _0x4618d5=_0xa83ddf;super(),_(this,_0x4618d5(0x32c),_0x146730['generateRandomId']()),_(this,_0x4618d5(0x2a7),new Set()),_(this,_0x4618d5(0x21a),new Map()),_(this,_0x4618d5(0x279),null),_(this,_0x4618d5(0x21b),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x14a732=_0xa83ddf;super[_0x14a732(0x471)](),this['_clearOtherTimers'][_0x14a732(0x3e6)]((_0x5e49b8,_0x486fb0)=>this[_0x14a732(0x1c8)](_0x486fb0)),this[_0x14a732(0x279)]&&window[_0x14a732(0x380)](this[_0x14a732(0x279)]);}[_0xa83ddf(0x2dd)](_0x3e4ef4){const _0x34007f=_0xa83ddf;return this[_0x34007f(0x1a8)](_0x3e4ef4)[_0x34007f(0x2e5)](_0x59f62b());}['editingUnit'](_0xd222b8){const _0x69e209=_0xa83ddf;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x69e209(0x2a7)][_0x69e209(0x2f8)](_0xd222b8),this[_0x69e209(0x3a2)]({'type':0x0,'memberID':this[_0x69e209(0x32c)],'unitIDs':[_0xd222b8],'isForwarded':!0x1});}['disposeUnit'](_0x4bcd0e){const _0x59441d=_0xa83ddf;this[_0x59441d(0x2a7)][_0x59441d(0x29c)](_0x4bcd0e),this[_0x59441d(0x2a7)][_0x59441d(0x41b)]===0x0&&this[_0x59441d(0x279)]&&window[_0x59441d(0x380)](this[_0x59441d(0x279)]);}[_0xa83ddf(0x267)](){const _0x4fb346=_0xa83ddf;this[_0x4fb346(0x46f)](_0x5bf8dd(_0x78aa37(window,_0x4fb346(0x2ad))[_0x4fb346(0x222)](_0x3aba2c=>{const _0x4bb2af=_0x4fb346;if(_0x3aba2c['key']!==ss||!_0x3aba2c[_0x4bb2af(0x3db)])return;const _0x566f5d=JSON[_0x4bb2af(0x2c8)](_0x3aba2c['newValue']);this[_0x4bb2af(0x2b6)](_0x566f5d);}))),window[_0x4fb346(0x239)](_0x4fb346(0x24d),()=>this[_0x4fb346(0x3a2)]({'type':0x1,'memberID':this[_0x4fb346(0x32c)],'unitIDs':Array[_0x4fb346(0x17d)](this[_0x4fb346(0x2a7)])}));}[_0xa83ddf(0x2b6)](_0x20f22d){const _0x2c0ffa=_0xa83ddf;switch(_0x20f22d[_0x2c0ffa(0x2f9)]){case 0x0:this[_0x2c0ffa(0x371)](_0x20f22d);break;case 0x1:this['_handleLeaveEvent'](_0x20f22d);break;case 0x2:this[_0x2c0ffa(0x15c)](_0x20f22d);break;}}[_0xa83ddf(0x371)](_0x156ef8){const _0x1046af=_0xa83ddf,{unitIDs:_0x47116d,memberID:_0x6c51ac,isForwarded:_0x3fb1f7}=_0x156ef8;_0x47116d[_0x1046af(0x3e6)](_0x4f8679=>{const _0x5d32d6=_0x1046af;if(!_0x3fb1f7&&this[_0x5d32d6(0x21a)][_0x5d32d6(0x437)](_0x4f8679)&&this[_0x5d32d6(0x1a8)](_0x4f8679)[_0x5d32d6(0x311)](0x1),!this[_0x5d32d6(0x21a)][_0x5d32d6(0x437)](_0x4f8679)||!this[_0x5d32d6(0x21a)][_0x5d32d6(0x441)](_0x4f8679)[_0x5d32d6(0x437)](_0x6c51ac)){const _0x487207=this['_unitOnClients'][_0x5d32d6(0x441)](_0x4f8679)||new Set();_0x487207['add'](_0x6c51ac),this['_unitOnClients']['set'](_0x4f8679,_0x487207),this[_0x5d32d6(0x3f3)](_0x6c51ac);}}),_0x3fb1f7||this[_0x1046af(0x3a2)]({'type':0x0,'memberID':this[_0x1046af(0x32c)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xa83ddf(0x3f3)](_0x2017b8){const _0x270b74=_0xa83ddf;this[_0x270b74(0x1c8)](_0x2017b8);const _0x55b09c=window[_0x270b74(0x1f9)](()=>{const _0x5a2049=_0x270b74;this[_0x5a2049(0x21a)]['forEach'](_0x13d583=>{_0x13d583['delete'](_0x2017b8);});},ts*0x2);this[_0x270b74(0x21b)][_0x270b74(0x3fb)](_0x2017b8,_0x55b09c);}[_0xa83ddf(0x1c8)](_0x498092){const _0xd3b1dd=_0xa83ddf;if(this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x437)](_0x498092)){const _0x4577dc=this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x441)](_0x498092);_0x4577dc&&window[_0xd3b1dd(0x3e7)](_0x4577dc),this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x3fb)](_0x498092,null);}}[_0xa83ddf(0x183)](_0xba9af2){const _0x21cc48=_0xa83ddf,{memberID:_0x75b3f4,unitIDs:_0x44ad9e}=_0xba9af2;_0x44ad9e['forEach'](_0x48ab39=>{const _0xd00060=_0xed79;var _0x2cc7dc;const _0x130c1f=this[_0xd00060(0x21a)][_0xd00060(0x441)](_0x48ab39);_0x130c1f&&(_0x130c1f[_0xd00060(0x29c)](_0x75b3f4),(_0x2cc7dc=this[_0xd00060(0x1a8)](_0x48ab39))==null||_0x2cc7dc[_0xd00060(0x311)](_0x130c1f[_0xd00060(0x41b)]===0x0?0x0:0x1));}),this[_0x21cc48(0x1c8)](_0x75b3f4);}['_handleHeartbeatEvent'](_0x5d5528){this['_scheduleClearOtherTimer'](_0x5d5528['memberID']);}[_0xa83ddf(0x3a2)](_0x5712ba){const _0x21ec3c=_0xa83ddf;localStorage[_0x21ec3c(0x26f)](ss,JSON[_0x21ec3c(0x284)](_0x5712ba));}['_scheduleHeartbeat'](){const _0x1bf3fe=_0xa83ddf;this['_heartbeatTimer']=window[_0x1bf3fe(0x1f5)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ts);}[_0xa83ddf(0x1a8)](_0x15f356){const _0x4ae764=_0xa83ddf;return this[_0x4ae764(0x1cd)]['has'](_0x15f356)||this[_0x4ae764(0x1cd)][_0x4ae764(0x3fb)](_0x15f356,new _0xbc7543(0x0)),this[_0x4ae764(0x1cd)][_0x4ae764(0x441)](_0x15f356);}}var Bn=Object[_0xa83ddf(0x3b2)],Fn=Object['getOwnPropertyDescriptor'],Wn=(_0x437ded,_0x46eccf,_0x4768f6,_0x16d1f4)=>{for(var _0x48c01e=_0x16d1f4>0x1?void 0x0:_0x16d1f4?Fn(_0x46eccf,_0x4768f6):_0x46eccf,_0x566168=_0x437ded['length']-0x1,_0x3e0548;_0x566168>=0x0;_0x566168--)(_0x3e0548=_0x437ded[_0x566168])&&(_0x48c01e=(_0x16d1f4?_0x3e0548(_0x46eccf,_0x4768f6,_0x48c01e):_0x3e0548(_0x48c01e))||_0x48c01e);return _0x16d1f4&&_0x48c01e&&Bn(_0x46eccf,_0x4768f6,_0x48c01e),_0x48c01e;},is=(_0x331bc6,_0x47d22d)=>(_0x2c6f9e,_0x5571fc)=>_0x47d22d(_0x2c6f9e,_0x5571fc,_0x331bc6);let Je=class{constructor(_0x3e904f,_0x1faa57){const _0x2ec112=_0xa83ddf;this[_0x2ec112(0x1ef)]=_0x3e904f,this[_0x2ec112(0x2ef)]=_0x1faa57;}['transformIMECache'](_0x3dfbb7){const _0x1eb7da=_0xa83ddf;this[_0x1eb7da(0x3e3)](_0x3dfbb7),this[_0x1eb7da(0x421)](_0x3dfbb7);}['transformRemoteChangeset'](_0x1b2655){const _0x3574af=_0xa83ddf,_0x63286a=this['_injector'][_0x3574af(0x441)](_0x55de7b),{redoCache:_0x16d789}=_0x63286a[_0x3574af(0x193)]();if(_0x16d789[_0x3574af(0x249)]===0x0)return _0x1b2655;let _0x4bd4cd=_0x146730['deepClone'](_0x1b2655[_0x3574af(0x43b)][0x0]);for(let _0x50c802=0x0;_0x50c802<_0x16d789[_0x3574af(0x249)];_0x50c802++){const _0x353ddc={'id':_0x3574af(0x14c),'params':{..._0x16d789[_0x50c802]}},_0x1b8faf=this[_0x3574af(0x2ef)][_0x3574af(0x2d6)](_0x4bd4cd,_0x353ddc,!0x1);if(_0x571c72(_0x1b8faf))throw _0x1b8faf['error'];_0x4bd4cd=_0x1b8faf['m1Prime'];}return{..._0x146730['deepClone'](_0x1b2655),'mutations':[_0x4bd4cd]};}[_0xa83ddf(0x3e3)](_0x4497b5){const _0x4ac93d=_0xa83ddf,_0x309124=this[_0x4ac93d(0x1ef)][_0x4ac93d(0x441)](_0x55de7b),{undoCache:_0x5f32f7,redoCache:_0xcad719}=_0x309124['getUndoRedoMutationParamsCache']();if(_0x5f32f7['length']===0x0||_0xcad719[_0x4ac93d(0x249)]===0x0)return;const _0x2dd098=[],_0x5ad0c0=[];let _0x54d5b6=_0x146730[_0x4ac93d(0x28b)](_0x4497b5[_0x4ac93d(0x43b)][0x0]),_0x24a005=_0x146730['deepClone'](_0x4497b5[_0x4ac93d(0x43b)][0x0]);for(let _0x28444b=_0x5f32f7['length']-0x1;_0x28444b>=0x0;_0x28444b--){const _0x5772f4={'id':'doc.mutation.rich-text-editing','params':{..._0x5f32f7[_0x28444b]}},_0x4355f7={'id':'doc.mutation.rich-text-editing','params':{..._0xcad719[_0x28444b]}},_0x1241c9=this['_transformService'][_0x4ac93d(0x2d6)](_0x54d5b6,_0x5772f4,!0x1),_0x4e8c0e=this[_0x4ac93d(0x2ef)][_0x4ac93d(0x2d6)](_0x24a005,_0x4355f7,!0x1);if(_0x571c72(_0x1241c9))throw _0x1241c9[_0x4ac93d(0x44e)];if(_0x571c72(_0x4e8c0e))throw _0x4e8c0e['error'];_0x2dd098[_0x4ac93d(0x2ce)](_0x1241c9['m2Prime'][_0x4ac93d(0x370)]),_0x5ad0c0[_0x4ac93d(0x2ce)](_0x4e8c0e[_0x4ac93d(0x145)]['params']),_0x54d5b6=_0x1241c9['m1Prime'],_0x24a005=_0x4e8c0e[_0x4ac93d(0x347)];}_0x309124[_0x4ac93d(0x244)]({'undoCache':_0x2dd098,'redoCache':_0x5ad0c0});}['_transformPreviousActiveRange'](_0x38d115){const _0x463505=_0xa83ddf,_0x1221da=this[_0x463505(0x1ef)]['get'](_0x55de7b),_0x127d5c=_0x1221da['getActiveRange']();if(_0x127d5c==null)return;const _0x3dff8c=[{'id':_0x463505(0x14c),'params':{'unitId':_0x38d115[_0x463505(0x452)],'actions':null,'textRanges':[_0x127d5c]}}],_0x44d3d2=this[_0x463505(0x2ef)][_0x463505(0x384)](_0x38d115,_0x3dff8c);if(!_0x5d016b(_0x44d3d2))throw _0x44d3d2[_0x463505(0x44e)];const _0x4fa74f=_0x44d3d2[_0x463505(0x145)][0x0][_0x463505(0x370)][_0x463505(0x3dc)];Array['isArray'](_0x4fa74f)&&_0x4fa74f['length']&&_0x1221da['setActiveRange'](_0x4fa74f[0x0]);}};Je=Wn([is(0x0,_0x2854bc(_0x28aed1)),is(0x1,_0x5b4b40)],Je);var Gn=Object[_0xa83ddf(0x3b2)],Yn=Object[_0xa83ddf(0x190)],Kn=(_0x30033e,_0x29af49,_0x20c93c,_0x4e4c4b)=>{for(var _0x345e3b=_0x4e4c4b>0x1?void 0x0:_0x4e4c4b?Yn(_0x29af49,_0x20c93c):_0x29af49,_0x214f9e=_0x30033e['length']-0x1,_0x53f8e3;_0x214f9e>=0x0;_0x214f9e--)(_0x53f8e3=_0x30033e[_0x214f9e])&&(_0x345e3b=(_0x4e4c4b?_0x53f8e3(_0x29af49,_0x20c93c,_0x345e3b):_0x53f8e3(_0x345e3b))||_0x345e3b);return _0x4e4c4b&&_0x345e3b&&Gn(_0x29af49,_0x20c93c,_0x345e3b),_0x345e3b;},ns=(_0x23edac,_0x19901c)=>(_0x1394ec,_0xa30217)=>_0x19901c(_0x1394ec,_0xa30217,_0x23edac);let ze=class{constructor(_0x34be8e,_0x3f2e34){const _0x1e1c5b=_0xa83ddf;this[_0x1e1c5b(0x1ef)]=_0x34be8e,this[_0x1e1c5b(0x2ef)]=_0x3f2e34;}[_0xa83ddf(0x34a)](_0x501874){const _0x5ee378=_0xa83ddf;var _0x1c646b;const _0xcad2b9=this[_0x5ee378(0x1ef)]['get'](_0x4857f4),_0x1015fe=(_0x1c646b=_0xcad2b9[_0x5ee378(0x3a8)]())!=null?_0x1c646b:[],_0x30e58b=_0x1015fe==null?void 0x0:_0x1015fe['map'](_0xfbe9ba);if(_0x30e58b[_0x5ee378(0x249)]===0x0)return;const _0x1ac070=[{'id':_0x5ee378(0x14c),'params':{'unitId':_0x501874[_0x5ee378(0x452)],'actions':null,'textRanges':_0x30e58b}}],_0x214051=this[_0x5ee378(0x2ef)][_0x5ee378(0x384)](_0x501874,_0x1ac070);if(!_0x5d016b(_0x214051))throw _0x214051[_0x5ee378(0x44e)];const _0x1b463e=_0x214051[_0x5ee378(0x145)][0x0][_0x5ee378(0x370)][_0x5ee378(0x3dc)];Array[_0x5ee378(0x210)](_0x1b463e)&&_0x1b463e['length']&&_0xcad2b9[_0x5ee378(0x2d7)](_0x1b463e,!0x1);}};ze=Kn([ns(0x0,_0x2854bc(_0x28aed1)),ns(0x1,_0x5b4b40)],ze);function ys(_0x2bdfc9){const _0x272309=_0xa83ddf;let _0x44e5e5='';for(const _0x505e1b of _0x2bdfc9){const {startOffset:_0x55c973,endOffset:_0x3dbb50,isActive:_0x35db79}=_0x505e1b;_0x44e5e5[_0x272309(0x249)]&&(_0x44e5e5+=','),_0x44e5e5+=_0x55c973+':'+_0x3dbb50+':'+(_0x35db79?'1':'0');}return _0x44e5e5;}function Xn(_0x1dc002){const _0x248e84=_0xa83ddf,_0x44ee74=_0x1dc002[_0x248e84(0x1cc)](','),_0x4477bb=[];for(const _0x1e1f7e of _0x44ee74){const [_0x4a2436,_0x8631e7,_0x3a9790]=_0x1e1f7e[_0x248e84(0x1cc)](':');_0x4477bb[_0x248e84(0x14e)]({'startOffset':Number(_0x4a2436),'endOffset':Number(_0x8631e7),'collapsed':_0x4a2436===_0x8631e7,'isActive':_0x3a9790==='1'});}return _0x4477bb['some'](_0x19d129=>_0x19d129[_0x248e84(0x148)])||(_0x4477bb[0x0][_0x248e84(0x148)]=!0x0),_0x4477bb;}class xt extends _0x26114b{constructor(){const _0x53a420=_0xa83ddf;super(...arguments),_(this,_0x53a420(0x286),new _0xbc7543(null)),_(this,_0x53a420(0x3e9),this[_0x53a420(0x286)][_0x53a420(0x473)]());}[_0xa83ddf(0x3d9)](_0x2e93c7){const _0x363413=_0xa83ddf,{unitID:_0x7e78f4,memberID:_0x19340b,textRanges:_0x1c4c9c}=_0x2e93c7,_0x76c533=ys(_0x1c4c9c),_0x15488b={'unitID':_0x7e78f4,'memberID':_0x19340b,'selection':_0x76c533};this[_0x363413(0x286)][_0x363413(0x311)](_0x15488b);}}var Jn=Object['defineProperty'],zn=Object[_0xa83ddf(0x190)],qn=(_0x5617ce,_0x5c1b57,_0x5b0db7,_0x297d19)=>{for(var _0x108b0e=_0x297d19>0x1?void 0x0:_0x297d19?zn(_0x5c1b57,_0x5b0db7):_0x5c1b57,_0x49f431=_0x5617ce['length']-0x1,_0x96dfd7;_0x49f431>=0x0;_0x49f431--)(_0x96dfd7=_0x5617ce[_0x49f431])&&(_0x108b0e=(_0x297d19?_0x96dfd7(_0x5c1b57,_0x5b0db7,_0x108b0e):_0x96dfd7(_0x108b0e))||_0x108b0e);return _0x297d19&&_0x108b0e&&Jn(_0x5c1b57,_0x5b0db7,_0x108b0e),_0x108b0e;},rs=(_0x131d84,_0x3445e6)=>(_0x1e7516,_0x27a2e5)=>_0x3445e6(_0x1e7516,_0x27a2e5,_0x131d84);function Zn(_0x5d2cd5){const _0x5d2316=_0xa83ddf,{unitID:_0x258f11,mutations:_0x2943e0}=_0x5d2cd5;return{'unitId':_0x258f11,'subUnitId':_0x2943e0[0x0][_0x5d2316(0x370)]['subUnitId']};}let qe=class{constructor(_0x18ed2b,_0x2b3a11){const _0x4ba05f=_0xa83ddf;this[_0x4ba05f(0x1ef)]=_0x18ed2b,this['_transformService']=_0x2b3a11;}[_0xa83ddf(0x34a)](_0x1b12bf){const _0x317435=_0xa83ddf;var _0x2ab905,_0x5e16b4,_0x18b489;const _0x1df973=this[_0x317435(0x1ef)][_0x317435(0x441)](_0x3bd81d),{unitId:_0x5dcb77,subUnitId:_0x183e2b}=Zn(_0x1b12bf),_0x27a272=_0x1df973[_0x317435(0x188)](_0x5dcb77)['getCurrentSelections']();if(_0x27a272[_0x317435(0x249)]===0x0||!_0x5dcb77||!_0x183e2b)return;const _0x2800ff=[{'id':_0x5fa864['id'],'params':{'unitId':_0x5dcb77,'subUnitId':_0x183e2b,'selections':_0x146730['deepClone'](_0x27a272)}}],_0x50b402=this[_0x317435(0x2ef)][_0x317435(0x384)](_0x1b12bf,_0x2800ff);if(!_0x5d016b(_0x50b402))throw _0x50b402['error'];const _0x393f4e=(_0x18b489=(_0x5e16b4=(_0x2ab905=_0x50b402[_0x317435(0x145)][0x0])==null?void 0x0:_0x2ab905[_0x317435(0x370)])==null?void 0x0:_0x5e16b4['selections'])!=null?_0x18b489:_0x27a272;Array[_0x317435(0x210)](_0x393f4e)&&_0x393f4e['length']&&this['_injector'][_0x317435(0x441)](_0x291fa9)['executeCommand'](_0x5fa864['id'],{'unitId':_0x5dcb77,'subUnitId':_0x183e2b,'selections':_0x393f4e});}};qe=qn([rs(0x0,_0x2854bc(_0x28aed1)),rs(0x1,_0x5b4b40)],qe);const Qn=new Set([_0x295e2d['id']]);function os(_0x14942f,_0x1a92a7,_0x8fa8cd,_0x4eb9f8,_0x1ccb57){const _0x2b2046=_0xa83ddf;var _0x538057,_0x22518d,_0x21e722,_0x3a8d7d;const _0x2b034e=[];for(const _0x594bdf of _0x14942f)if(Qn[_0x2b2046(0x437)](_0x594bdf['id'])){if(_0x2b034e[_0x2b2046(0x249)]>0x0)break;_0x2b034e['push'](_0x594bdf);break;}else _0x2b034e['push'](_0x594bdf);const _0x6c6cc0=(_0x22518d=(_0x538057=_0x1ccb57[_0x2b2046(0x27f)]())==null?void 0x0:_0x538057[_0x2b2046(0x463)])!=null?_0x22518d:'unknown',_0x2f43e3=(_0x3a8d7d=(_0x21e722=_0x1ccb57['getCurrentUser']())==null?void 0x0:_0x21e722[_0x2b2046(0x469)])!=null?_0x3a8d7d:_0x2b2046(0x1a2);return{'changeset':{'unitID':_0x1a92a7,'type':_0x286a05(_0x8fa8cd[_0x2b2046(0x44c)](_0x1a92a7)),'baseRev':_0x4eb9f8['getCurrentRevForDocument'](_0x1a92a7),'revision':0x0,'userID':_0x6c6cc0,'memberID':_0x2f43e3,'mutations':_0x2b034e},'pendingMutations':_0x14942f['slice'](_0x2b034e[_0x2b2046(0x249)])};}function er(_0x4f39ea,_0x327869,_0x2254ab,_0x473488,_0x1ed26a){const _0x3c3f4a=_0xa83ddf;var _0x351246,_0x2c38fa,_0x484c54,_0x2e4fae;const _0x4dd816=[_0x4f39ea['reduce']((_0xf2164d,_0x1818d6)=>{const _0x24d022=_0xed79;var _0xcece9d;const {id:_0x10bdc5}=_0xf2164d,{id:_0x5c10a8,type:_0x264520}=_0x1818d6,_0x2c818a=(_0xcece9d=_0xf2164d[_0x24d022(0x370)])!=null?_0xcece9d:{'actions':null},_0x1011cd=_0x1818d6[_0x24d022(0x370)];if(_0x10bdc5&&_0x10bdc5!==_0x5c10a8)throw new Error(_0x24d022(0x216)+_0x10bdc5+'\x20-\x20'+_0x5c10a8+'.');return{..._0xf2164d,'id':_0x5c10a8,'type':_0x264520,'params':{'unitId':_0x1011cd[_0x24d022(0x3dd)],'textRanges':_0x1011cd[_0x24d022(0x3dc)],'actions':_0x5f5d93[_0x24d022(0x3c7)](_0x2c818a[_0x24d022(0x23a)],_0x1011cd['actions'])}};},{})],_0x3715c3=(_0x2c38fa=(_0x351246=_0x1ed26a['getCurrentUser']())==null?void 0x0:_0x351246[_0x3c3f4a(0x463)])!=null?_0x2c38fa:_0x3c3f4a(0x1a2),_0x4045da=(_0x2e4fae=(_0x484c54=_0x1ed26a[_0x3c3f4a(0x27f)]())==null?void 0x0:_0x484c54['memberID'])!=null?_0x2e4fae:_0x3c3f4a(0x1a2);return{'changeset':{'unitID':_0x327869,'type':_0x286a05(_0x2254ab[_0x3c3f4a(0x44c)](_0x327869)),'baseRev':_0x473488[_0x3c3f4a(0x238)](_0x327869),'revision':0x0,'userID':_0x3715c3,'memberID':_0x4045da,'mutations':_0x4dd816},'pendingMutations':[]};}const tr={'id':_0x2006d3['id'],'type':_0x20ade7[_0xa83ddf(0x445)],'params':{}};var sr=Object['defineProperty'],ir=Object['getOwnPropertyDescriptor'],ce=(_0x31afd9,_0x391b62,_0x52aee9,_0x87281d)=>{const _0x346170=_0xa83ddf;for(var _0x4fbde0=_0x87281d>0x1?void 0x0:_0x87281d?ir(_0x391b62,_0x52aee9):_0x391b62,_0x5dea35=_0x31afd9[_0x346170(0x249)]-0x1,_0x2d37ee;_0x5dea35>=0x0;_0x5dea35--)(_0x2d37ee=_0x31afd9[_0x5dea35])&&(_0x4fbde0=(_0x87281d?_0x2d37ee(_0x391b62,_0x52aee9,_0x4fbde0):_0x2d37ee(_0x4fbde0))||_0x4fbde0);return _0x87281d&&_0x4fbde0&&sr(_0x391b62,_0x52aee9,_0x4fbde0),_0x4fbde0;},f=(_0x228aec,_0x9df532)=>(_0x5df876,_0x165f80)=>_0x9df532(_0x5df876,_0x165f80,_0x228aec),P=(_0x405f07=>(_0x405f07[_0xa83ddf(0x3f5)]=_0xa83ddf(0x175),_0x405f07[_0xa83ddf(0x30e)]=_0xa83ddf(0x375),_0x405f07[_0xa83ddf(0x45d)]=_0xa83ddf(0x397),_0x405f07['AWAITING']=_0xa83ddf(0x2fe),_0x405f07[_0xa83ddf(0x354)]='awaiting_with_pending',_0x405f07[_0xa83ddf(0x464)]=_0xa83ddf(0x3aa),_0x405f07[_0xa83ddf(0x25f)]=_0xa83ddf(0x1ea),_0x405f07[_0xa83ddf(0x42e)]='offline',_0x405f07))(P||{});class he{constructor(_0x5c338b,_0x75b1bb,_0x1fd510,_0x37eb45,_0x1c04df,_0x31298f,_0x47539c,_0x345139,_0x323cde){const _0x55dade=_0xa83ddf;_(this,'_awaitingChangeset',null),_(this,_0x55dade(0x43e),[]),(this[_0x55dade(0x452)]=_0x5c338b,this[_0x55dade(0x2f9)]=_0x75b1bb,this[_0x55dade(0x233)]=_0x1c04df,this['_commandService']=_0x31298f,this[_0x55dade(0x3a0)]=_0x47539c,this['_revisionService']=_0x345139,this[_0x55dade(0x158)]=_0x323cde,this[_0x55dade(0x374)]=_0x1fd510,this[_0x55dade(0x43e)]=_0x37eb45);}['_checkMissing'](_0xb21249){const _0x1adc1a=_0xa83ddf,_0x85022d=this[_0x1adc1a(0x2c6)]['getCurrentRevForDocument'](this[_0x1adc1a(0x452)]);return _0xb21249[_0x1adc1a(0x142)]>_0x85022d+0x1?(this[_0x1adc1a(0x233)][_0x1adc1a(0x16d)]({'from':_0x85022d,'to':_0xb21249['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x35070c){const _0x38c42e=_0xa83ddf;this[_0x38c42e(0x3a0)][_0x38c42e(0x20f)](this[_0x38c42e(0x452)],_0x35070c);}['_transformSelections'](_0x39b006){const _0x1c1519=_0xa83ddf;var _0x4d08dd,_0x1ea119;(_0x1ea119=(_0x4d08dd=this[_0x1c1519(0x233)])[_0x1c1519(0x3b7)])==null||_0x1ea119['call'](_0x4d08dd,_0x39b006);}[_0xa83ddf(0x151)](_0x1f1d3e){const _0x394578=_0xa83ddf;var _0x40126f,_0x4a01f8;return(_0x4a01f8=(_0x40126f=this[_0x394578(0x233)])[_0x394578(0x293)])==null?void 0x0:_0x4a01f8[_0x394578(0x3b3)](_0x40126f,_0x1f1d3e);}[_0xa83ddf(0x400)](_0x89a9f6){const _0x3182c1=_0xa83ddf;var _0x349f3c,_0x5c7cb2,_0x384a31;return(_0x384a31=(_0x5c7cb2=(_0x349f3c=this[_0x3182c1(0x233)])[_0x3182c1(0x47c)])==null?void 0x0:_0x5c7cb2['call'](_0x349f3c,_0x89a9f6))!=null?_0x384a31:_0x89a9f6;}[_0xa83ddf(0x1ab)](_0x31369d){const _0x5809a3=_0xa83ddf;var _0x267de6,_0x3fa307;if(this[_0x5809a3(0x2f9)]===H[_0x5809a3(0x1f2)]){const {unitID:_0x16e5fa,mutations:_0x57228e,memberID:_0x4e46a7}=_0x31369d,_0x3729a4=_0x57228e[0x0][_0x5809a3(0x370)][_0x5809a3(0x3dc)];Array[_0x5809a3(0x210)](_0x3729a4)&&_0x3729a4[_0x5809a3(0x249)]>0x0&&((_0x3fa307=(_0x267de6=this[_0x5809a3(0x233)])[_0x5809a3(0x27e)])==null||_0x3fa307[_0x5809a3(0x3b3)](_0x267de6,{'unitID':_0x16e5fa,'memberID':_0x4e46a7,'textRanges':_0x3729a4}));}}[_0xa83ddf(0x294)](){const _0x58a3fc=_0xa83ddf;this[_0x58a3fc(0x158)][_0x58a3fc(0x1e2)](this[_0x58a3fc(0x452)],this[_0x58a3fc(0x2f9)],this[_0x58a3fc(0x374)],this[_0x58a3fc(0x43e)]);}[_0xa83ddf(0x39b)](){const _0x43e003=_0xa83ddf;return this[_0x43e003(0x2c6)][_0x43e003(0x238)](this['unitID']);}[_0xa83ddf(0x156)](){const _0x37649e=_0xa83ddf;this['_revisionService']['incrementRevForDocument'](this[_0x37649e(0x452)]);}[_0xa83ddf(0x1da)](_0x34d552){const _0x570c56=_0xa83ddf;var _0x199393;const _0x401dad=this[_0x570c56(0x400)](_0x34d552),_0x28b614=_0x343a59(_0x401dad['mutations'],this[_0x570c56(0x153)],{'fromCollab':!0x0});if(!_0x28b614[_0x570c56(0x443)])throw _0x28b614['error']instanceof Error?_0x28b614[_0x570c56(0x44e)]:new Error((_0x199393=_0x28b614[_0x570c56(0x44e)])!=null?_0x199393:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x401dad),this['_transformUndoredo'](_0x34d552),this[_0x570c56(0x41f)](_0x401dad),this[_0x570c56(0x1ab)](_0x401dad),this['_incrementRevisionNumber']();}}let Ue=class extends he{constructor(_0x17151b,_0x1ecf12,_0x4ac844,_0x3a07d3,_0x31a2c8,_0x4b957b,_0xeae583,_0x2fd372,_0x5297fc,_0x5582ff){const _0x54b0b7=_0xa83ddf;super(_0x17151b,_0x1ecf12,null,[],_0x4ac844,_0x2fd372,_0xeae583,_0x3a07d3,_0x31a2c8),_(this,'status','synced'),(this[_0x54b0b7(0x1ef)]=_0x4b957b,this[_0x54b0b7(0x33d)]=_0x5297fc,this[_0x54b0b7(0x2ef)]=_0x5582ff);}[_0xa83ddf(0x258)](_0x2f1407){const _0x2c7e76=_0xa83ddf,_0x52abca=this[_0x2c7e76(0x1ef)][_0x2c7e76(0x274)](G,this['unitID'],this[_0x2c7e76(0x2f9)],[_0x2f1407],this[_0x2c7e76(0x233)]);return _0x52abca[_0x2c7e76(0x1d7)](),_0x52abca[_0x2c7e76(0x294)](),_0x52abca;}[_0xa83ddf(0x2c1)](_0x45b372){const _0x4327db=_0xa83ddf;if(this['_checkMissing'](_0x45b372))return this[_0x4327db(0x1ef)]['createInstance'](K,this[_0x4327db(0x452)],this[_0x4327db(0x2f9)],null,[],null,[_0x45b372],this[_0x4327db(0x233)]);try{const _0x41360a=this[_0x4327db(0x2ef)][_0x4327db(0x384)](_0x45b372,[tr]);if(_0x5d016b(_0x41360a)){const {c1Prime:_0x2244ee}=_0x41360a;return this[_0x4327db(0x1da)](_0x2244ee),this;}throw _0x41360a[_0x4327db(0x44e)];}catch(_0xdeb9d9){return this[_0x4327db(0x33d)][_0x4327db(0x44e)](_0xdeb9d9),this[_0x4327db(0x2c3)](!0x1);}}[_0xa83ddf(0x2c3)](_0x37510b){const _0x277551=_0xa83ddf;return this[_0x277551(0x1ef)][_0x277551(0x274)](Z,this[_0x277551(0x452)],this['type'],null,[],this[_0x277551(0x233)],_0x37510b);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xa83ddf(0x1fd)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x1f3156=_0xa83ddf;return this[_0x1f3156(0x1ef)]['createInstance'](Q,this[_0x1f3156(0x452)],this[_0x1f3156(0x2f9)],null,[],this[_0x1f3156(0x233)]);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x3e1)](){const _0x536e8d=_0xa83ddf;throw new Error(_0x536e8d(0x1e7));}};Ue=ce([f(0x3,_0x2854bc(_0x4bf679)),f(0x4,_0x2854bc(D)),f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x1e8ca5),f(0x7,_0x291fa9),f(0x8,_0x31880b),f(0x9,_0x5b4b40)],Ue);let G=class extends he{constructor(_0x3b3995,_0x39aa30,_0xc7b369,_0x484668,_0x431280,_0x46d940,_0x283bb7,_0x3951ba,_0x43f807,_0xa74048,_0x3dba34,_0x57def2,_0x58e38d,_0x572a76){const _0x38253e=_0xa83ddf;super(_0x3b3995,_0x39aa30,null,_0xc7b369,_0x484668,_0xa74048,_0x572a76,_0x46d940,_0x283bb7),_(this,_0x38253e(0x3e8),_0x38253e(0x397)),_(this,_0x38253e(0x2d9),null),_(this,'_sendingTimer',null),(this['_injector']=_0x431280,this[_0x38253e(0x13e)]=_0x3951ba,this[_0x38253e(0x33d)]=_0x43f807,this[_0x38253e(0x442)]=_0x3dba34,this[_0x38253e(0x2ef)]=_0x57def2,this[_0x38253e(0x44a)]=_0x58e38d);}['appendMutation'](_0x1583ad){const _0x237651=_0xa83ddf;return this[_0x237651(0x43e)][_0x237651(0x14e)](_0x1583ad),this[_0x237651(0x294)](),this;}[_0xa83ddf(0x2c1)](_0x371fe8){const _0x270523=_0xa83ddf;if(this[_0x270523(0x357)](_0x371fe8))return this[_0x270523(0x21f)](),this['_injector'][_0x270523(0x274)](K,this[_0x270523(0x452)],this[_0x270523(0x2f9)],null,this[_0x270523(0x43e)],null,[_0x371fe8],this['_handler']);try{const _0x301e6a=this['_transformService'][_0x270523(0x384)](_0x371fe8,this['_pendingMutations']);if(_0x5d016b(_0x301e6a)){const {c1Prime:_0x3b6041,m2Prime:_0x34cc27}=_0x301e6a;this[_0x270523(0x1da)](_0x3b6041);const _0x416394=this['_injector'][_0x270523(0x274)](G,this[_0x270523(0x452)],this['type'],_0x34cc27,this[_0x270523(0x233)]);return this[_0x270523(0x21f)](),_0x416394['_schedule'](this[_0x270523(0x2d9)]?Math[_0x270523(0x366)](0x0,new Date()[_0x270523(0x292)]()-this[_0x270523(0x2d9)]):this[_0x270523(0x28a)]()),_0x416394;}throw _0x301e6a[_0x270523(0x44e)];}catch(_0x56409b){return this[_0x270523(0x33d)][_0x270523(0x44e)](_0x56409b),this[_0x270523(0x2c3)](!0x1);}}[_0xa83ddf(0x39a)](){const _0xfa3d65=_0xa83ddf;throw new Error(_0xfa3d65(0x360));}[_0xa83ddf(0x1fd)](){const _0x4829f6=_0xa83ddf;throw new Error(_0x4829f6(0x475));}[_0xa83ddf(0x340)](){const _0x3abbd1=_0xa83ddf;return this[_0x3abbd1(0x21f)](),this[_0x3abbd1(0x1ef)][_0x3abbd1(0x274)](Q,this[_0x3abbd1(0x452)],this['type'],null,this[_0x3abbd1(0x43e)],this[_0x3abbd1(0x233)]);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x1d7)](_0xc17fdc){const _0x1e82bc=_0xa83ddf;_0xc17fdc=_0xc17fdc!=null?_0xc17fdc:this[_0x1e82bc(0x28a)](),this[_0x1e82bc(0x2d9)]=new Date()['getTime'](),this[_0x1e82bc(0x283)]=setTimeout(()=>{const _0x1917d2=_0x1e82bc;this['_clearScheduledTask']();let _0x1758bc=null;switch(this[_0x1917d2(0x2f9)]){case H[_0x1917d2(0x2ac)]:{_0x1758bc=os(this['_pendingMutations'],this[_0x1917d2(0x452)],this[_0x1917d2(0x44a)],this[_0x1917d2(0x2c6)],this[_0x1917d2(0x13e)]);break;}case H[_0x1917d2(0x1f2)]:{this['_pendingMutations'][_0x1917d2(0x19e)](_0x569690=>_0x569690['id']===_0x53c1cb['id'])?_0x1758bc=er(this[_0x1917d2(0x43e)],this[_0x1917d2(0x452)],this[_0x1917d2(0x44a)],this[_0x1917d2(0x2c6)],this[_0x1917d2(0x13e)]):_0x1758bc=os(this[_0x1917d2(0x43e)],this['unitID'],this[_0x1917d2(0x44a)],this['_revisionService'],this[_0x1917d2(0x13e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x1917d2(0x3a3));}const {changeset:_0x7904a1,pendingMutations:_0xc7795a}=_0x1758bc;this[_0x1917d2(0x233)]['onSendChangeset'](_0x7904a1);const _0x402f39=_0xc7795a['length']?this[_0x1917d2(0x1ef)][_0x1917d2(0x274)](Y,this['unitID'],this[_0x1917d2(0x2f9)],_0x7904a1,_0xc7795a,this[_0x1917d2(0x233)]):this[_0x1917d2(0x1ef)][_0x1917d2(0x274)](q,this['unitID'],this[_0x1917d2(0x2f9)],_0x7904a1,this[_0x1917d2(0x233)]);_0x402f39[_0x1917d2(0x294)](),this['_handler'][_0x1917d2(0x261)](this,_0x402f39);},_0xc17fdc);}[_0xa83ddf(0x28a)](){const _0x16434e=_0xa83ddf;var _0x30b3e4;return(_0x30b3e4=this[_0x16434e(0x442)][_0x16434e(0x436)](_n))!=null?_0x30b3e4:ln;}['resend'](){const _0x2b5956=_0xa83ddf;throw new Error(_0x2b5956(0x33a));}[_0xa83ddf(0x21f)](){this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0xa83ddf(0x2c3)](_0x337f31){const _0x36f2b0=_0xa83ddf;return this[_0x36f2b0(0x21f)](),this[_0x36f2b0(0x1ef)][_0x36f2b0(0x274)](Z,this[_0x36f2b0(0x452)],this[_0x36f2b0(0x2f9)],null,this['_pendingMutations'],this['_handler'],_0x337f31);}};G=ce([f(0x4,_0x2854bc(_0x28aed1)),f(0x5,_0x2854bc(_0x4bf679)),f(0x6,_0x2854bc(D)),f(0x7,_0x2854bc(ne)),f(0x8,_0x31880b),f(0x9,_0x291fa9),f(0xa,_0x5e7a12),f(0xb,_0x5b4b40),f(0xc,_0x1b1ada),f(0xd,_0x1e8ca5)],G);let q=class extends he{constructor(_0x19ed1e,_0x2ad1de,_0x3e3bf3,_0x43d660,_0x503cbd,_0x2ea701,_0x48f604,_0x104382,_0x409a29,_0x1fc6f4,_0x3a915a){const _0x3ee29a=_0xa83ddf;super(_0x19ed1e,_0x2ad1de,_0x3e3bf3,[],_0x43d660,_0x104382,_0x3a915a,_0x2ea701,_0x48f604),_(this,_0x3ee29a(0x3e8),'awaiting'),(this['_injector']=_0x503cbd,this[_0x3ee29a(0x33d)]=_0x409a29,this[_0x3ee29a(0x2ef)]=_0x1fc6f4);}[_0xa83ddf(0x258)](_0x5e7e78){const _0x18bd1d=_0xa83ddf,_0x200a52=this[_0x18bd1d(0x1ef)][_0x18bd1d(0x274)](Y,this['unitID'],this[_0x18bd1d(0x2f9)],this[_0x18bd1d(0x374)],[_0x5e7e78],this[_0x18bd1d(0x233)]);return _0x200a52['_updateLocalCache'](),_0x200a52;}[_0xa83ddf(0x2c1)](_0x3d612b){const _0x452d23=_0xa83ddf;if(this[_0x452d23(0x357)](_0x3d612b))return this[_0x452d23(0x1ef)][_0x452d23(0x274)](K,this[_0x452d23(0x452)],this['type'],this[_0x452d23(0x374)],[],null,[_0x3d612b],this[_0x452d23(0x233)]);try{const _0x248fcc=this[_0x452d23(0x2ef)]['transformChangesets']([_0x3d612b],[this['_awaitingChangeset']],!0x1);if(_0x110984(_0x248fcc)){const {c1Prime:_0x5a4ad2,c2Prime:_0xe45f25}=_0x248fcc;this[_0x452d23(0x1da)](_0x5a4ad2[0x0]),_0xe45f25[0x0][_0x452d23(0x2b2)]=this[_0x452d23(0x39b)]();const _0x2abe2f=this[_0x452d23(0x1ef)][_0x452d23(0x274)](q,this[_0x452d23(0x452)],this[_0x452d23(0x2f9)],_0xe45f25[0x0],this[_0x452d23(0x233)]);return _0x2abe2f[_0x452d23(0x294)](),_0x2abe2f;}return this[_0x452d23(0x2c3)](!0x1);}catch(_0x34e153){return this[_0x452d23(0x33d)][_0x452d23(0x44e)](_0x34e153),this[_0x452d23(0x2c3)](!0x1);}}[_0xa83ddf(0x39a)](_0x2a0334){const _0x3c315d=_0xa83ddf,_0x35086f=this[_0x3c315d(0x2c6)][_0x3c315d(0x238)](this[_0x3c315d(0x452)]);if(_0x2a0334[_0x3c315d(0x142)]<_0x35086f-0x1)return this;if(this[_0x3c315d(0x357)](_0x2a0334))return this[_0x3c315d(0x1ef)][_0x3c315d(0x274)](K,this[_0x3c315d(0x452)],this[_0x3c315d(0x2f9)],null,[],this[_0x3c315d(0x374)],[],this[_0x3c315d(0x233)]);this[_0x3c315d(0x156)]();const _0x599427=this[_0x3c315d(0x1ef)][_0x3c315d(0x274)](Ue,this['unitID'],this[_0x3c315d(0x2f9)],this[_0x3c315d(0x233)]);return _0x599427[_0x3c315d(0x294)](),_0x599427;}[_0xa83ddf(0x1fd)](_0x732e3e){const _0x419ba3=_0xa83ddf;return this[_0x419ba3(0x2c3)](!!(_0x732e3e!=null&&_0x732e3e['isPermissionRej']));}[_0xa83ddf(0x340)](){const _0x35c9e6=_0xa83ddf;return this[_0x35c9e6(0x1ef)][_0x35c9e6(0x274)](Q,this[_0x35c9e6(0x452)],this[_0x35c9e6(0x2f9)],this[_0x35c9e6(0x374)],[],this['_handler']);}['toggleOnline'](){return this;}[_0xa83ddf(0x3e1)](){const _0x20144c=_0xa83ddf;this['_handler'][_0x20144c(0x386)](this['_awaitingChangeset']);}[_0xa83ddf(0x2c3)](_0x1bbd87){const _0x45e20e=_0xa83ddf;return this[_0x45e20e(0x1ef)][_0x45e20e(0x274)](Z,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x45e20e(0x233)],_0x1bbd87);}};q=ce([f(0x4,_0x2854bc(_0x28aed1)),f(0x5,_0x2854bc(_0x4bf679)),f(0x6,_0x2854bc(D)),f(0x7,_0x291fa9),f(0x8,_0x31880b),f(0x9,_0x5b4b40),f(0xa,_0x1e8ca5)],q);let Y=class extends he{constructor(_0x5e8f8e,_0x54ac2e,_0x1eb2bd,_0x37ce88,_0x5c2522,_0x4d89ee,_0x2b821f,_0x190149,_0x52e4cd,_0x1c8355,_0x3b9187,_0x36613f){const _0x4081b4=_0xa83ddf;super(_0x5e8f8e,_0x54ac2e,_0x1eb2bd,_0x37ce88,_0x5c2522,_0x52e4cd,_0x36613f,_0x2b821f,_0x190149),_(this,_0x4081b4(0x3e8),'awaiting_with_pending'),(this[_0x4081b4(0x1ef)]=_0x4d89ee,this['_logService']=_0x1c8355,this[_0x4081b4(0x2ef)]=_0x3b9187);}[_0xa83ddf(0x258)](_0x130da3){const _0x431b87=_0xa83ddf;return this[_0x431b87(0x43e)]['push'](_0x130da3),this;}[_0xa83ddf(0x2c1)](_0x39b5fe){const _0x400eb0=_0xa83ddf;if(this['_checkMissing'](_0x39b5fe))return this[_0x400eb0(0x1ef)][_0x400eb0(0x274)](K,this['unitID'],this['type'],this[_0x400eb0(0x374)],this[_0x400eb0(0x43e)],null,[_0x39b5fe],this[_0x400eb0(0x233)]);try{const _0x3fc149=this[_0x400eb0(0x2ef)][_0x400eb0(0x2b1)]([_0x39b5fe],[this['_awaitingChangeset']],!0x1);if(_0x110984(_0x3fc149)){const {c1Prime:_0x3dd368,c2Prime:_0x1aeea6}=_0x3fc149,_0x3a76b2=this['_transformService']['transformMutationsWithChangeset'](_0x3dd368[0x0],this[_0x400eb0(0x43e)]);if(_0x5d016b(_0x3a76b2)){const {c1Prime:_0x1fc92e,m2Prime:_0xc11e92}=_0x3a76b2;return this[_0x400eb0(0x1da)](_0x1fc92e),_0x1aeea6[0x0][_0x400eb0(0x2b2)]=this[_0x400eb0(0x39b)](),this[_0x400eb0(0x1ef)]['createInstance'](Y,this[_0x400eb0(0x452)],this['type'],_0x1aeea6[0x0],_0xc11e92,this[_0x400eb0(0x233)]);}throw _0x3a76b2[_0x400eb0(0x44e)];}throw _0x3fc149[_0x400eb0(0x44e)];}catch(_0x240764){return this[_0x400eb0(0x33d)][_0x400eb0(0x44e)](_0x240764),this['_onConflict'](!0x1);}}[_0xa83ddf(0x39a)](_0x1e25ec){const _0x2c111e=_0xa83ddf;if(this['_checkMissing'](_0x1e25ec))return this[_0x2c111e(0x1ef)][_0x2c111e(0x274)](K,this[_0x2c111e(0x452)],this[_0x2c111e(0x2f9)],null,this[_0x2c111e(0x43e)],this['_awaitingChangeset'],[],this[_0x2c111e(0x233)]);this[_0x2c111e(0x156)]();const _0x2a4a27=this[_0x2c111e(0x1ef)]['createInstance'](G,this[_0x2c111e(0x452)],this[_0x2c111e(0x2f9)],this[_0x2c111e(0x43e)],this[_0x2c111e(0x233)]);return _0x2a4a27[_0x2c111e(0x1d7)](),_0x2a4a27['_updateLocalCache'](),_0x2a4a27;}[_0xa83ddf(0x1fd)](_0x4803e5){const _0x2d5f69=_0xa83ddf;return this[_0x2d5f69(0x2c3)](!!(_0x4803e5!=null&&_0x4803e5[_0x2d5f69(0x15a)]));}[_0xa83ddf(0x340)](){const _0x48f420=_0xa83ddf;return this[_0x48f420(0x1ef)][_0x48f420(0x274)](Q,this[_0x48f420(0x452)],this[_0x48f420(0x2f9)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0xa83ddf(0x262)](){return this;}['resend'](){const _0xd2f459=_0xa83ddf;this[_0xd2f459(0x233)][_0xd2f459(0x386)](this[_0xd2f459(0x374)]);}[_0xa83ddf(0x2c3)](_0x4389af){const _0x21f16c=_0xa83ddf;return this[_0x21f16c(0x1ef)]['createInstance'](Z,this['unitID'],this[_0x21f16c(0x2f9)],null,this['_pendingMutations'],this[_0x21f16c(0x233)],_0x4389af);}};Y=ce([f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x2854bc(_0x4bf679)),f(0x7,_0x2854bc(D)),f(0x8,_0x291fa9),f(0x9,_0x31880b),f(0xa,_0x5b4b40),f(0xb,_0x1e8ca5)],Y);let Z=class extends he{constructor(_0x31cc9,_0x4797fd,_0x3e4f7f,_0x578cd5,_0x3cd4fc,_0x24c3c7=!0x1,_0x11ec03,_0x258311,_0x3769a9,_0x16f31f,_0x488a9c,_0xc87fa9,_0x3c050c){const _0x13761a=_0xa83ddf;super(_0x31cc9,_0x4797fd,_0x3e4f7f,_0x578cd5,_0x3cd4fc,_0x258311,_0x3769a9,_0x488a9c,_0x16f31f),_(this,_0x13761a(0x3e8),_0x13761a(0x1ea)),(this[_0x13761a(0x16b)]=_0x24c3c7,this['_permissionService']=_0x11ec03,this[_0x13761a(0x46b)]=_0xc87fa9,this[_0x13761a(0x17f)]=_0x3c050c,this[_0x13761a(0x1e1)](),this[_0x13761a(0x449)](),this['_disableEditing']());}[_0xa83ddf(0x258)](){return this;}[_0xa83ddf(0x2c1)](){return this;}['onRemoteAck'](){return this;}[_0xa83ddf(0x1fd)](){return this;}[_0xa83ddf(0x340)](){return this;}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x3e1)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa83ddf(0x449)](){const _0x1a3b16=_0xa83ddf;this['_localCacheService']['updateOfflineData'](this[_0x1a3b16(0x452)],this[_0x1a3b16(0x2f9)],null,[]);}[_0xa83ddf(0x1e1)](){const _0x27b4d4=_0xa83ddf;this[_0x27b4d4(0x16b)]?this[_0x27b4d4(0x17f)][_0x27b4d4(0x178)]({'title':this['_localeService']['t'](_0x27b4d4(0x191)),'content':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x381)),'type':_0x27b4d4(0x44e),'duration':0x0}):this[_0x27b4d4(0x17f)][_0x27b4d4(0x178)]({'title':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x228)),'content':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x32d)),'type':_0x27b4d4(0x44e),'duration':0x0});}[_0xa83ddf(0x404)](){const _0x42fcb6=_0xa83ddf;this[_0x42fcb6(0x47d)][_0x42fcb6(0x2c4)](new _0x2efdca(this[_0x42fcb6(0x452)])['id'],!0x1);}};Z=ce([f(0x6,_0x2854bc(_0x524b2d)),f(0x7,_0x291fa9),f(0x8,_0x1e8ca5),f(0x9,_0x2854bc(D)),f(0xa,_0x2854bc(_0x4bf679)),f(0xb,_0x2854bc(_0x501416)),f(0xc,_0x55f36b)],Z);let Q=class extends he{constructor(_0x1514e8,_0x510724,_0x49caed,_0x491f90,_0x287697,_0x9f9493,_0x30d9e6,_0x4f3712,_0x5de98b,_0x45433f){const _0x15b073=_0xa83ddf;super(_0x1514e8,_0x510724,_0x49caed,_0x491f90,_0x287697,_0x5de98b,_0x45433f,_0x30d9e6,_0x4f3712),_(this,_0x15b073(0x3e8),_0x15b073(0x2a5)),this[_0x15b073(0x1ef)]=_0x9f9493;}[_0xa83ddf(0x258)](_0x6e43e5){const _0x27dfd4=_0xa83ddf;return this[_0x27dfd4(0x43e)][_0x27dfd4(0x14e)](_0x6e43e5),this[_0x27dfd4(0x294)](),this;}[_0xa83ddf(0x2c1)](_0x4edf06){const _0x3b4486=_0xa83ddf;throw new Error(_0x3b4486(0x3c4));}[_0xa83ddf(0x39a)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0xa83ddf(0x1fd)](){const _0x215f72=_0xa83ddf;throw new Error(_0x215f72(0x42b));}[_0xa83ddf(0x340)](){return this;}[_0xa83ddf(0x262)](){const _0x540597=_0xa83ddf,{_injector:_0x5cdf99,_pendingMutations:_0x1643c5,_awaitingChangeset:_0x58eeb5,unitID:_0x832e71,_handler:_0x5793d1,type:_0x3f2fc5}=this,_0x36e665=Ls(_0x5cdf99,_0x832e71,_0x3f2fc5,_0x58eeb5,_0x1643c5,_0x5793d1);return _0x36e665 instanceof G?_0x36e665[_0x540597(0x1d7)]():(_0x36e665 instanceof Y||_0x36e665 instanceof q)&&_0x36e665['resend'](),_0x36e665;}[_0xa83ddf(0x3e1)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Q=ce([f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x2854bc(_0x4bf679)),f(0x7,_0x2854bc(D)),f(0x8,_0x291fa9),f(0x9,_0x1e8ca5)],Q);let K=class extends he{constructor(_0x524411,_0x200045,_0x83f458,_0x4c55d7,_0x4bf65b,_0x204d04,_0x5aa872,_0x4a685c,_0x47e514,_0x36dfd0,_0x5e2c4f,_0x328e90,_0x3e88f0,_0x91db63){const _0x3c9280=_0xa83ddf;super(_0x524411,_0x200045,_0x83f458,_0x4c55d7,_0x5aa872,_0x328e90,_0x3e88f0,_0x47e514,_0x36dfd0),_(this,_0x3c9280(0x3e8),_0x3c9280(0x3aa)),(this[_0x3c9280(0x36f)]=_0x4bf65b,this['_queuedRemoteChangesets']=_0x204d04,this[_0x3c9280(0x1ef)]=_0x4a685c,this[_0x3c9280(0x33d)]=_0x5e2c4f,this[_0x3c9280(0x2ef)]=_0x91db63);}[_0xa83ddf(0x314)](_0x36159b){const _0x3d9cb6=_0xa83ddf;try{const _0x19e012=[..._0x36159b,...this[_0x3d9cb6(0x1f1)]],_0x21f584=[this[_0x3d9cb6(0x374)]||this[_0x3d9cb6(0x36f)]][_0x3d9cb6(0x19f)](_0xa3bf89=>!!_0xa3bf89);let _0x3a4d5f,_0x5a2185;if(_0x21f584['length']){const _0x26ce86=this[_0x3d9cb6(0x2ef)][_0x3d9cb6(0x2b1)](_0x19e012,_0x21f584,!0x1);if(!_0x110984(_0x26ce86))throw _0x26ce86[_0x3d9cb6(0x44e)];_0x3a4d5f=_0x26ce86['c1Prime'],_0x5a2185=_0x26ce86['c2Prime'];}else _0x3a4d5f=_0x19e012,_0x5a2185=[];let _0x550c31=this[_0x3d9cb6(0x43e)];_0x3a4d5f[_0x3d9cb6(0x3e6)](_0x135d43=>{const _0x2bb3fc=_0x3d9cb6;let _0x50d8dd;if(_0x550c31[_0x2bb3fc(0x249)]){const _0x16630c=this['_transformService'][_0x2bb3fc(0x384)](_0x135d43,_0x550c31);if(!_0x5d016b(_0x16630c))throw _0x16630c[_0x2bb3fc(0x44e)];_0x50d8dd=_0x16630c[_0x2bb3fc(0x227)],_0x550c31=_0x16630c[_0x2bb3fc(0x145)];}else _0x50d8dd=_0x135d43;this[_0x2bb3fc(0x1da)](_0x50d8dd);}),this[_0x3d9cb6(0x36f)]&&this[_0x3d9cb6(0x156)](),this[_0x3d9cb6(0x374)]&&_0x5a2185[_0x3d9cb6(0x249)]&&(_0x5a2185[0x0]['baseRev']=this[_0x3d9cb6(0x39b)]());let _0x5f3982;if(this[_0x3d9cb6(0x374)]&&_0x550c31['length']!==0x0)_0x5f3982=this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](Y,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],_0x5a2185[0x0],_0x550c31,this['_handler']);else{if(this['_awaitingChangeset']&&_0x550c31[_0x3d9cb6(0x249)]===0x0)_0x5a2185[0x0][_0x3d9cb6(0x2b2)]=this['_getCurrentRevision'](),_0x5f3982=this[_0x3d9cb6(0x1ef)]['createInstance'](q,this['unitID'],this['type'],_0x5a2185[0x0],this['_handler']);else{if(_0x550c31['length']!==0x0){const _0x1e27e5=this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](G,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],_0x550c31,this[_0x3d9cb6(0x233)]);_0x1e27e5[_0x3d9cb6(0x1d7)](),_0x5f3982=_0x1e27e5;}else _0x5f3982=this['_injector'][_0x3d9cb6(0x274)](Ue,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],this[_0x3d9cb6(0x233)]);}}return _0x5f3982['_updateLocalCache'](),_0x5f3982;}catch(_0x3a93a4){return this['_logService']['error'](_0x3d9cb6(0x252),'failed\x20to\x20apply\x20missed\x20changesets!',_0x3a93a4),this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](Z,this['unitID'],this[_0x3d9cb6(0x2f9)],this[_0x3d9cb6(0x374)],this[_0x3d9cb6(0x43e)],this[_0x3d9cb6(0x233)],!0x1);}}[_0xa83ddf(0x3e1)](){const _0x5f3d88=_0xa83ddf;throw new Error(_0x5f3d88(0x309));}[_0xa83ddf(0x258)](_0x40930f){const _0x5f21b7=_0xa83ddf;return this[_0x5f21b7(0x43e)][_0x5f21b7(0x14e)](_0x40930f),this;}['onRemoteChangeset'](_0x51ceb9){const _0x378ff4=_0xa83ddf;return this['_queuedRemoteChangesets'][_0x378ff4(0x14e)](_0x51ceb9),this;}['onRemoteAck'](_0x2ab9d0){const _0x2e39eb=_0xa83ddf;if(this[_0x2e39eb(0x374)])return this[_0x2e39eb(0x36f)]=this['_awaitingChangeset'],this[_0x2e39eb(0x374)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x13b804){const _0x3c20b9=_0xa83ddf;return this[_0x3c20b9(0x2c3)](!!(_0x13b804!=null&&_0x13b804['isPermissionRej']));}[_0xa83ddf(0x340)](){const _0x567a9d=_0xa83ddf;return this['_injector']['createInstance'](Q,this['unitID'],this[_0x567a9d(0x2f9)],this[_0x567a9d(0x374)],this[_0x567a9d(0x43e)],this['_handler']);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x2c3)](_0x11675d){const _0x3e08a7=_0xa83ddf;return this[_0x3e08a7(0x1ef)]['createInstance'](Z,this[_0x3e08a7(0x452)],this[_0x3e08a7(0x2f9)],this[_0x3e08a7(0x374)],this['_pendingMutations'],this[_0x3e08a7(0x233)],_0x11675d);}};K=ce([f(0x7,_0x2854bc(_0x28aed1)),f(0x8,_0x2854bc(_0x4bf679)),f(0x9,_0x2854bc(D)),f(0xa,_0x31880b),f(0xb,_0x291fa9),f(0xc,_0x1e8ca5),f(0xd,_0x5b4b40)],K);function Ls(_0x1de4d8,_0x31e199,_0x2790da,_0x53228b,_0x7bf40,_0x936f21){const _0x560204=_0xa83ddf;return _0x53228b&&_0x7bf40[_0x560204(0x249)]?_0x1de4d8['createInstance'](Y,_0x31e199,_0x2790da,_0x53228b,_0x7bf40,_0x936f21):_0x53228b?_0x1de4d8['createInstance'](q,_0x31e199,_0x2790da,_0x53228b,_0x936f21):_0x7bf40[_0x560204(0x249)]?_0x1de4d8[_0x560204(0x274)](G,_0x31e199,_0x2790da,_0x7bf40,_0x936f21):_0x1de4d8[_0x560204(0x274)](Ue,_0x31e199,_0x2790da,_0x936f21);}function _0x28da(){const _0x843fa1=['_createInitialState','m1Prime','headers','_config','transformSelections','idSuffix','YUUMI_URL_COL_OUT_OF_RANGE','JOINING','roomMembers$','UNKNOWN_CMD','getOwnPropertySymbols','objects','NOT_FOUND','liveShareNewHost','AWAITING_WITH_PENDING','SHOULD_CLOSE_CONN','setShapeProps','_checkMissing','_getSignURL','_snapshotService','_onUserLeave','62202aeLgSo','2024988otLFjR','permissionRejEvent','enableAuthServer','socket\x20open.','[PendingState]:\x20received\x20acknowledgement.','fillRule','_initMergeInterceptor','_getMergeRange','color','clear','max','onPointerEnter$','OnLineSingle','startRow','univer-pro.collaboration-client.single-active-unit-service','fetching\x20missing\x20changesets\x20from\x20','colorChannel1','searchParams','INVALID_ARGUMENT','_acknowledgedAwaitingChangeset','params','_handleJoinEvent','UNRECOGNIZED','_initStatusListener','_awaitingChangeset','synced','getSkeleton','_drawTextRange','LIVESHARE_FETCH_OPERATIONS','_collaborationTimeoutTimer','onTransformChange$','_unlockTransition','_getSaveTimeout','resourceIDs','RemoveRowCommandId','_socketService','clearInterval','permission.content','current','_initCommandExecutedListener','transformMutationsWithChangeset','_onRemoteChangeset','onSendChangeset','tag','getTypeOfUnitAdded$','rgba(255,\x20255,\x20255,\x200.01)','arc','getActiveSheet','{fileID}','getUnhiddenWorksheets','hovered','open$','use','put','loadOfflineData','_onRemoteACK','setAlpha','328fScGYK','newCsEvent','pending','updateCursorEvent','InsertRangeMoveDownCommandId','onRemoteAck','_getCurrentRevision','objectActions','_disabled','LICENSE_IMPORT_SIZE_EXCEEDED','_socket','_undoRedoService','registerHTTPInterceptor','_send','\x20in\x20_schedule.','_cursorShapes','_updateCollabCursors','_replaceFileID','commentUpdate$','getDocRanges','&assign=','fetch_missing','exhaustSavingTask','CHANGESET_ACK','image/jpeg','RemoveColCommandId','toString','title','CONNECTOR_DATA_TOO_LARGE','defineProperty','call','/universer-api/comb','src','APPLY_NON_SEQUENTIAL_REVISION','onTransformSelections','createSocket','_refreshCollabCursors','_getAPIPrefix','pluginName','COMMENT_UPDATE','_handleHover','&to=','history','_updateSubUnitFromURLParams','status$','Error\x20on\x20receiving\x20event','catch','[OfflineState]:\x20received\x20changeset.','members','responseType','compose','currentColor','INGEST','_clearUndo','json','initWorkbookPermissionChange','_removeRoom','patch','round','DeleteRangeMoveUpCommandId','1em','UNDEFINED','getRoom','_commentUpdate$','list','off-line-single','whenReady','OTHER_CLIENTS_EDITING','syncEditingCollabCursor','#fff','newValue','textRanges','unitId','LICENSE_EXPORT_SIZE_EXCEEDED','PERMISSION_REJ','_exhaustRemoteChangesetQueue','resend','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformUndoRedoStack','gold400','PERMISSION_DENIED','forEach','clearTimeout','status','collabCursorState$','fetchThroughInterceptors','INTERNAL_ERROR','setCurrentUser','href','code','liveShareOperation','_onLocalMutation','_loadDoc','USERS_LEAVE','_scheduleClearOtherTimer','39268MbXahf','NOT_COLLAB','COMPRESS_MUTATION_SEND','_initStatusComponent','_onFetchMissResult','_sendHeartbeat','currentSkeleton$','set','updateCollaborator','getFocusedUnit','collaboration.closeRoom','_context','_transformRemoteChangesetByIMECache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','subunit','onRendered','_disableEditing','resolve','?size=','Warning','_event$','sessionStatus$','FileId','_remoteChangesetQueue','_onJoinRoomEvent','getCollabEntity$','_decreaseWaiting','collaborators','online','_joinRoom','override','cmd','message$','joinRsp','rev','RECV','_localStorageService','getCurrentUnitForType','_transitionLocked','size','_initModules','_setupSubUnitSync','_updateState','_transformSelections','width','_transformPreviousActiveRange','_range','map','_retryCount','_state','Unknown\x20user','debug','_refRangeService','setParam','symbol','[OfflineState]:\x20received\x20rejection.','_collaborationPaused','_members','OFFLINE','prototype','COLLAB_SUBMIT_CHANGESET_URL','registerRefRange','_saveTaskMap','path','defs','_backgroundColor','getConfig','has','_renderManagerService','change$','_transformStack','mutations','NO_OTHER_CLIENTS_EDITING','IDLE','_pendingMutations','SNAPSHOT_INVALID_SNAPSHOT','_collabCursorController','get','_configService','result','image/gif','MUTATION','saveImage','generateRandomId','_substituteRedoStack','_clearLocalCache','_univerInstanceService','_unitID','getUnitType','indexOf','error','onPointerMove$','then','apply','unitID','HEARTBEAT_INTERVAL','_onConnectionOpen','listRoles','cursorInfo$','_getRedoStack','socketService','UNIVER_SLIDE','/object/','collabStatus.notCollab','assignAColorForMemberID','PENDING','_initCloseConn','univer-pro.collaboration-client-socket-service','UnitEmbedded','url(#off-line-single_clip0_910_343)','InsertRowCommandId','userID','FETCH_MISS','_cachedData','getSheetBySheetId','_getScale','NEW_CHANGESETS','memberID','_color','_localeService','findNodePositionByCharIndex','onlyLocal','selections','disposeWithMe','DeleteRangeMoveLeftCommandId','dispose','localeService','asObservable','range','[PendingState]:\x20received\x20rejection.','drawWith','function','[CollaborationSessionService]:\x20socket\x20error','/-/object/list','/new_changes','UniverIcon','onTransformRemoteChangesetByIMECache','_permissionService','getMergeData','_memberService','_removeCollabCursors','location','_httpService','revision','POST','InsertRangeMoveRightCommandId','m2Prime','_sessionStatus$','FromArray','isActive','off-line-single_clip0_910_343','_session','_entities','doc.mutation.rich-text-editing','APPLY_PERMISSION_DENIED','push','send','all','_transformIMECache','workbook','_commandService','_urlService','52940kEzRxv','_incrementRevisionNumber','svg','_localCacheService','session.will-retry','isPermissionRej','collab-rect-range-','_handleHeartbeatEvent','div','_initResize','UPDATE_CURSOR','min','focused$','_docSyncEditingCollabCursorService','_undoStacks','save','reverse','RETRY_CONNECTING_MAX_COUNT','substring','reject','getParam','_createInitialStateImpl','_isPermissionRej','onlineStatusTitle','onMissingChangesets','onlineStatus','_updateURLWithCurrentState','close$','SNAPSHOT_URL_KEY','values','includes','HEARTBEAT_TIMEOUT','not_collab','/rev/','_collaborationController','show','_getSnapshotAPIPrefix','collaboration.single-unit.warning','HttpExport','file','from','VIEW_MAIN','_notificationService','COMPRESS_MUTATION_APPLY','Starting','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_handleLeaveEvent','_imageSourceCache','Undefined','routeKey','_onCombEvent','getWorkbookSelections','createCollaborator','_anchor','_onCursorDelete','_startCollaboration','_textBubble','connection\x20error','csAckEvent','getOwnPropertyDescriptor','permission.title','uni.network.url-service','getUndoRedoMutationParamsCache','_singleActiveUnitService','post','hasOwnProperty','text','on-line-single_clip0_910_349','/universer-api/stream/file/upload','enableOfflineEditing','_createSocket','objectID','_messageService','every','filter','_onConnectionFailed','on-line-single','unknown','_shapes','_themeService','_socketReady','startColumn','PSEUDO_FETCH_MISSING_RESULT','_ensureSubject','getCurrentSelections','_socketMessageSubscription','_syncEditingCollabCursor','getValue','getCellPositionByOffset','xlink:href','_eventUnsubscribe','_commentService','refreshPermission','_docSkeletonManagerService','session.room-full','batchAllowed','_type','Steady','hide','transformIMECache','image/bmp','beginPath','_snapshotServerService','_hovered','makeDirty','registerRenderModule','transformStack\x20failed!','_updateLocalCursor','selection','_cursorInfo$','_lockTransition','_entityInit$','saveChangeset','event$','_sendHeartbeatTimer','_removeClearOtherTimer','_getSheetObject','univer-online-status-icon','_getCtorByUniverType','split','_unitStatus','image/png','SNAPSHOT_HAS_BEEN_REMOVED','_name','_anchorDot','allowed','onMouseMove','_onRefRangeChange','startsWith','_docTransformIMECacheService','_schedule','_collabSessionService','saveSnapshot','_executeRemoteChangeset','infoRsp','_hideTimer','name','_socket$','APPLY_REJECT','target','_showConflictNotification','updateOfflineData','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_getAPIPrefixPath','Error','save\x20fail\x20reason\x20is\x20','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_toggleOffline','closeSession','conflict','update','JOIN','_state$','loadDoc','_injector','_startSheetCollabCursor','_queuedRemoteChangesets','UNIVER_DOC','AUTHZ_URL_KEY','getCollabCursors$','setInterval','interceptor','\x0aAfter:\x20','loadSheet','setTimeout','joinEvent','_hover','getMemberID','onRemoteRej','_lastPointer','_clearRedo','_online','defIds','sheets','_ws','propertyIsEnumerable','getSheetId','_uiPartsService','_roomMembers','jiqing500','UNAUTHENTICATED','_drawAnchor','_rescheduleHeartbeatEvent','transform','/collaborator','ALREADY_EXISTS','transformUndoRedo','isArray','_status$','_onCursorUpdate','_onUserJoin','body','getResourcesRequest','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','eventID','USERS_ENTER','pushState','_unitOnClients','_clearOtherTimers','_getLoginPath','assign','fetchMissingChangesets','_clearScheduledTask','roomInfos','_onRemoteRejected','subscribe','UPDATE_PERMISSION_OBJ','/universer-api/oidc/authpage','_docTransformSelectionsService','[DataLoaderController]','c1Prime','conflict.title','_HTTPService','_setupBeforeClosingHandler','dispose$','_clearTimeoutTimer','CHANGESET_REJ','_initUnitPermissionChange','purple300','_startDocCollabCursor','_roomMembers$','originalMeta','_handler','encode','_waitCount','977652aWxQqH','_clearCollaborationTimeoutTimer','getCurrentRevForDocument','addEventListener','actions','LICENSE_DISTRO_REJECTED','fill','unsubscribe','onCommentUpdate','_syncEditingCollabCursorService','string','_applyRemoteChangeset','/-/object/-/batch_allowed','BASE64','setUndoRedoMutationParamsCache','getRelativeToViewportCoord','getInterceptPoints','/unit/','_getUndoStack','length','APPLY_REVISION_CONFILICT','_retryConnectingTimer','fillStyle','unload','COLLAB_WEB_SOCKET_URL','RETRY_CONNECTING_INTERVAL','sessionStatus','measureText','[FetchMissState]','312ggIOdw','addObjects','addImageSourceCache','LEAVE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','appendMutation','HEADER_MENU','HELLO','MSG_FOR_ERROR','closePath','\x20to\x20','YUUMI_UNABLE_LOAD_URL','CONFLICT','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','onStateChange','toggleOnline','changesets','labelPosition','_assignedColors','_waitForHeartbeatResponse','_init','/universer-api/file/{fileID}/sign-url','LIVESHARE_REQUEST_HOST','getImage','/object','LIVESHARE_TERMINATE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','displayName','setItem','removeParam','saveOfflineData','_change$','none','createInstance','replaceState','_onMessage','UNKNOWN_CODE','_render','_heartbeatTimer','getUnitId','removeMember','fillText','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','onSyncEditingCollabCursor','getCurrentUser','_sheetTransformSelectionsService','_draw','UNIVER_UNKNOWN','_sendingTimer','stringify','[UniverCollaborationClientPlugin]','_collabCursorState$','extend','_updateStatus','_cursors','_getSendChangesetTimeout','deepClone','_loadSheet','InsertColCommandId','ranges','concat','isEditing','_fetchMissChangesets','getTime','onTransformIME','_updateLocalCache','urlChange$','entries','_sessions','red300','font','_registerDependencies','SNAPSHOT_SERVER_URL_KEY','delete','_tryEnsureSocket','getUniverSheetInstance','pauseCollaboration','collabStatus.syncing','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','M0\x200H16V16H0z','fromCollab','addObject','offline','updateMember','_selfUnitIDs','getAncestorScale','TOO_MANY_REQUESTS','/fetchmissing?from=','_registerRenderDependencies','UNIVER_SHEET','storage','resize','close','_timeoutTimer','transformChangesets','baseRev','restore','3ZTwqOB','1657773JjrSjs','_handleEvent','collab-text-anchor-','getRangePointData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','attrs','_userManagerService','registerBeforeClose','_toggleOnline','_getUploadFileURL','getSheetBlock','onlineStatusIcon','onRemoteChangeset','getMember','_onConflict','updatePermissionPoint','awaitingChangeset','_revisionService','SUBMIT_CHANGESET','parse','_drawRectRange','_docStateChangeManagerService','_scene','ws://127.0.0.1:8000/universer-api/comb/connect','LIVESHARE_NEW_HOST','unshift','data','auth.needGotoLoginAlert','requireSession','?url=','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onRecvEvent','transformMutation','replaceTextRanges','collabStatus.fetchMiss','_scheduleTimestamp','collaMsg','unit-cache-','140xsvOyE','getUnitStatus$','[CollaborationEntity]','reduce','enableLocalCache','_beforeCloseService','_createHandler','toRgbString','_getAnchorBounding','pipe','#FFF','[CollaborationSession]','bottom','_compressMutationService','top','submit\x20changeset\x20error!','black','url(#$1','state','_transformService','_scheduleReconnection','collaboratorID','subscribeEvent','[CollaborationUndoRedoService]','_labelPosition','_scheduleCollaborationTimeoutTimer','CHANGESET_REVISION_CONFILICT','children','add','type','getImageSourceCache','...','icon','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','awaiting','createElement','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','disableLocalCache','random','sheetId','withCredentials','onload','collabStatus.offline','onPointerLeave$','complete','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','onCommandExecuted','_colorIndex','LIVESHARE_OPERATION','FAIL','SYNCED','_colorAssignService','ONLINE','next','objectType','verdancy600','onMissedChangesetFetched','ACTIVE_UNIT_EVENT_CHANNEL','FETCH_MISSING','backgroundColor','executeCommand','_scheduleSaving','clipPath','find','OffLineSingle','collab-text-range-','UNIVER_PROJECT','_saveCache','_sheetSkeletonManagerService','init','replace','0\x200\x2016\x2016','url(#on-line-single_clip0_910_349)','getItem','/allowed','ERROR_IMAGE','251053LFETTc','deleteCollaborator','encodeURIComponent','_http','_id','conflict.content','_collaborationSessionService','requestParams','[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.','getTypeOfUnitDisposed$','error$','ERROR_IMAGE_TYPE','trim','lineTo','[CollaborationSessionService]','cursorInfo','subUnitId','_clearHeartbeatTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','roomMembers','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_logService','currentTheme$','_submitChangeset','toggleOffline','HttpImport','HEARTBEAT','onStarting','transformRemoteChangeset','column'];_0x28da=function(){return _0x843fa1;};return _0x28da();}var nr=Object[_0xa83ddf(0x3b2)],rr=Object[_0xa83ddf(0x190)],st=(_0x5db3ad,_0x4ddebd,_0x506422,_0x2404c3)=>{const _0x1b0f97=_0xa83ddf;for(var _0x4d5fd8=_0x2404c3>0x1?void 0x0:_0x2404c3?rr(_0x4ddebd,_0x506422):_0x4ddebd,_0x1c509f=_0x5db3ad[_0x1b0f97(0x249)]-0x1,_0x382e3a;_0x1c509f>=0x0;_0x1c509f--)(_0x382e3a=_0x5db3ad[_0x1c509f])&&(_0x4d5fd8=(_0x2404c3?_0x382e3a(_0x4ddebd,_0x506422,_0x4d5fd8):_0x382e3a(_0x4d5fd8))||_0x4d5fd8);return _0x2404c3&&_0x4d5fd8&&nr(_0x4ddebd,_0x506422,_0x4d5fd8),_0x4d5fd8;},p=(_0x8fcb72,_0x5b6114)=>(_0x3f4243,_0x32f8c9)=>_0x5b6114(_0x3f4243,_0x32f8c9,_0x8fcb72);let Me=class extends _0x26114b{constructor(_0x29b6e6,_0xf60cf8,_0x3ba4d1){const _0x4f40fc=_0xa83ddf;super(),_(this,_0x4f40fc(0x14b),new Map()),_(this,_0x4f40fc(0x1c4),new _0x27d684()),(this[_0x4f40fc(0x1ef)]=_0x29b6e6,this[_0x4f40fc(0x1d8)]=_0xf60cf8,this[_0x4f40fc(0x44a)]=_0x3ba4d1,this[_0x4f40fc(0x267)]());}[_0xa83ddf(0x471)](){const _0x2bf1d5=_0xa83ddf;super[_0x2bf1d5(0x471)](),this[_0x2bf1d5(0x14b)][_0x2bf1d5(0x3e6)](_0x63624=>_0x63624[_0x2bf1d5(0x471)]()),this['_entities'][_0x2bf1d5(0x365)]();}['getCollabEntity'](_0xe0633f){const _0x1bec2e=_0xa83ddf;var _0x2c122a;return(_0x2c122a=this['_entities'][_0x1bec2e(0x441)](_0xe0633f))!=null?_0x2c122a:null;}['getCollabEntity$'](_0x77e4e1){const _0x5a29c6=_0xa83ddf,_0x598b1c=this['getCollabEntity'](_0x77e4e1);return _0x598b1c?_0x2e1ce7(_0x598b1c):this[_0x5a29c6(0x1c4)][_0x5a29c6(0x2e5)](_0x4393c3(_0x14488d=>_0x14488d[_0x5a29c6(0x452)]===_0x77e4e1));}[_0xa83ddf(0x267)](){const _0x1b8712=_0xa83ddf;this[_0x1b8712(0x44a)][_0x1b8712(0x388)](_0x54437b[_0x1b8712(0x2ac)])[_0x1b8712(0x2e5)](_0x4b5283(this[_0x1b8712(0x22b)]),_0x3db649(0x10))[_0x1b8712(0x222)](async _0x362b5c=>{const _0x2631ff=_0x1b8712,_0x247424=_0x362b5c[_0x2631ff(0x27a)](),_0x3a9845=await this[_0x2631ff(0x18c)](_0x247424,H[_0x2631ff(0x2ac)]);this[_0x2631ff(0x14b)][_0x2631ff(0x3fb)](_0x247424,_0x3a9845);}),this[_0x1b8712(0x44a)]['getTypeOfUnitAdded$'](_0x54437b['UNIVER_DOC'])[_0x1b8712(0x2e5)](_0x4b5283(this['dispose$']),_0x3db649(0x10))['pipe'](_0x4393c3(_0x44329a=>!_0x44329a['getUnitId']()[_0x1b8712(0x1d5)]('__')))[_0x1b8712(0x222)](async _0x2f1d9c=>{const _0x3713c3=_0x1b8712,_0x17e0ae=_0x2f1d9c[_0x3713c3(0x27a)](),_0x41ec79=await this[_0x3713c3(0x18c)](_0x17e0ae,H[_0x3713c3(0x1f2)]);this[_0x3713c3(0x14b)][_0x3713c3(0x3fb)](_0x17e0ae,_0x41ec79);}),_0x19b764(this[_0x1b8712(0x44a)][_0x1b8712(0x331)](_0x54437b[_0x1b8712(0x2ac)]),this['_univerInstanceService'][_0x1b8712(0x331)](_0x54437b[_0x1b8712(0x1f2)]))[_0x1b8712(0x2e5)](_0x4b5283(this[_0x1b8712(0x22b)]))[_0x1b8712(0x222)](_0x1e16e6=>{const _0x54a35c=_0x1b8712,_0x1cfde7=_0x1e16e6[_0x54a35c(0x27a)](),_0xc22d71=this[_0x54a35c(0x14b)]['get'](_0x1cfde7);_0xc22d71&&(_0xc22d71[_0x54a35c(0x471)](),this[_0x54a35c(0x14b)][_0x54a35c(0x29c)](_0x1cfde7));});}async[_0xa83ddf(0x18c)](_0x142cc0,_0x31acbd){const _0x65fb43=_0xa83ddf,_0x49c098=await this[_0x65fb43(0x1d8)]['requireSession'](_0x142cc0),_0xe84e59=this['_injector']['createInstance'](this[_0x65fb43(0x1cb)](_0x31acbd),_0x142cc0,_0x31acbd,_0x49c098);return await _0xe84e59[_0x65fb43(0x321)](),this[_0x65fb43(0x1c4)][_0x65fb43(0x311)](_0xe84e59),_0xe84e59;}[_0xa83ddf(0x1cb)](_0x1d6475){const _0xdc4fc0=_0xa83ddf;switch(_0x1d6475){case H[_0xdc4fc0(0x1f2)]:return Et;case H['UNIVER_SHEET']:return Ct;default:throw new Error(_0xdc4fc0(0x401)+_0x1d6475);}}};Me=st([_0x3b619c(_0x13d562['Starting'],Me),p(0x0,_0x2854bc(_0x28aed1)),p(0x1,_0x2854bc(pe)),p(0x2,_0x1b1ada)],Me);let Ze=class extends _0x26114b{constructor(_0x35da4c,_0x1c7c09,_0x55434e,_0x81db57,_0x163133,_0x3fc906,_0x19c2c9,_0x58a427,_0x1b27c1,_0x14ea8d,_0x4effe8,_0x5d402d,_0x4732c8){const _0x1e9435=_0xa83ddf;super(),_(this,_0x1e9435(0x1ed),new _0xbc7543(null)),_(this,'state$',this[_0x1e9435(0x1ed)][_0x1e9435(0x473)]()),_(this,_0x1e9435(0x425)),_(this,_0x1e9435(0x42c),!0x1),_(this,_0x1e9435(0x3c1),this['state$']['pipe'](_0x255c5b(_0x2f57a7=>_0x2f57a7?_0x2f57a7[_0x1e9435(0x3e8)]:P[_0x1e9435(0x42e)]),_0x28cb00(0x1))),_(this,_0x1e9435(0x41a),!0x1),_(this,_0x1e9435(0x40b),[]),(this[_0x1e9435(0x452)]=_0x35da4c,this[_0x1e9435(0x1b5)]=_0x1c7c09,this[_0x1e9435(0x14a)]=_0x55434e,this[_0x1e9435(0x1ef)]=_0x81db57,this[_0x1e9435(0x158)]=_0x163133,this[_0x1e9435(0x2e9)]=_0x3fc906,this['_localeService']=_0x19c2c9,this[_0x1e9435(0x2c6)]=_0x58a427,this['_logService']=_0x1b27c1,this[_0x1e9435(0x153)]=_0x14ea8d,this[_0x1e9435(0x19d)]=_0x4effe8,this['_permissionService']=_0x5d402d,this[_0x1e9435(0x194)]=_0x4732c8);}get['state'](){const _0x2b4b29=_0xa83ddf;return this[_0x2b4b29(0x425)];}async[_0xa83ddf(0x321)](){const _0x5b75a8=_0xa83ddf;if(this[_0x5b75a8(0x2ee)])throw new Error(_0x5b75a8(0x2d4));await this[_0x5b75a8(0x267)]();}[_0xa83ddf(0x29f)](){const _0x318ac7=_0xa83ddf;return this[_0x318ac7(0x42c)]=!0x0,_0x5bf8dd(()=>{const _0x2ad864=_0x318ac7;this['_collaborationPaused']=!0x1,this[_0x2ad864(0x3e0)]();});}['_updateState'](_0x458aca){const _0x5d5160=_0xa83ddf;this[_0x5d5160(0x425)]=_0x458aca,this[_0x5d5160(0x1ed)][_0x5d5160(0x311)](_0x458aca);}async[_0xa83ddf(0x267)](){const _0x3a58fb=_0xa83ddf;var _0x29340c;return this['_updateState'](await this['_createInitialState']()),this[_0x3a58fb(0x194)]&&((_0x29340c=this[_0x3a58fb(0x194)])==null||_0x29340c['editingUnit'](this[_0x3a58fb(0x452)]),this[_0x3a58fb(0x46f)](_0x5bf8dd(this['_singleActiveUnitService'][_0x3a58fb(0x2dd)](this[_0x3a58fb(0x452)])['subscribe'](_0x57be80=>{const _0xa3e268=_0x3a58fb;this[_0xa3e268(0x33d)]['debug'](_0xa3e268(0x2de),'editing\x20status\x20changed\x20to',_0x57be80),_0x57be80===Us[_0xa3e268(0x3d8)]?(this['_messageService']['show']({'content':this[_0xa3e268(0x46b)]['t'](_0xa3e268(0x17a)),'type':_0x403ffc['Warning']}),this[_0xa3e268(0x47d)]['updatePermissionPoint'](new _0x2efdca(this[_0xa3e268(0x452)])['id'],!0x1)):this[_0xa3e268(0x47d)][_0xa3e268(0x2c4)](new _0x2efdca(this[_0xa3e268(0x452)])['id'],!0x0);})))),this[_0x3a58fb(0x46f)](_0x5bf8dd(this[_0x3a58fb(0x14a)]['sessionStatus$'][_0x3a58fb(0x222)](_0x366e42=>{const _0x1a7a77=_0x3a58fb;_0x366e42===fe[_0x1a7a77(0x310)]?this[_0x1a7a77(0x2bd)]():_0x366e42===fe[_0x1a7a77(0x42e)]&&this['_toggleOffline']();}))),this[_0x3a58fb(0x46f)](_0x5bf8dd(this['_session']['event$'][_0x3a58fb(0x222)](_0x1529ad=>{const _0x1f069a=_0x3a58fb;try{switch(_0x1529ad[_0x1f069a(0x217)]){case _0x4e62f0[_0x1f069a(0x468)]:{this[_0x1f069a(0x385)](_0x2d3fa1(_0x1529ad['data']));break;}case _0x4e62f0[_0x1f069a(0x3ac)]:{this[_0x1f069a(0x393)](_0x1529ad['data']);break;}case _0x4e62f0[_0x1f069a(0x22d)]:{this[_0x1f069a(0x221)]();break;}case _0x4e62f0[_0x1f069a(0x1a7)]:{this[_0x1f069a(0x3f8)](_0x1529ad[_0x1f069a(0x2cf)][_0x1f069a(0x263)][_0x1f069a(0x423)](_0x57090d=>_0x2d3fa1(_0x57090d)));break;}case _0x4e62f0[_0x1f069a(0x3df)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x48670f){throw console[_0x1f069a(0x44e)](_0x1f069a(0x3c2),_0x48670f),_0x48670f;}}))),this[_0x3a58fb(0x425)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0xa83ddf(0x1c3)](){const _0x12a1d1=_0xa83ddf;if(this['_transitionLocked'])throw new Error(_0x12a1d1(0x330));this[_0x12a1d1(0x41a)]=!0x0;}[_0xa83ddf(0x3f0)](_0x18fbcb){const _0x39469f=_0xa83ddf;this['_lockTransition'](),this[_0x39469f(0x41e)](this[_0x39469f(0x425)][_0x39469f(0x258)](_0x18fbcb)),this['_unlockTransition']();}[_0xa83ddf(0x385)](_0x1c94b3){const _0x4d60de=_0xa83ddf;if(!(_0x1c94b3[_0x4d60de(0x142)]<=this['_revisionService'][_0x4d60de(0x238)](this[_0x4d60de(0x452)]))){if(this[_0x4d60de(0x42c)]){this['_remoteChangesetQueue'][_0x4d60de(0x14e)](_0x1c94b3);return;}this[_0x4d60de(0x241)](_0x1c94b3);}}['_exhaustRemoteChangesetQueue'](){const _0x246e97=_0xa83ddf;this[_0x246e97(0x40b)][_0x246e97(0x3e6)](_0x33258d=>this[_0x246e97(0x241)](_0x33258d)),this[_0x246e97(0x40b)]=[];}['_applyRemoteChangeset'](_0x3fcc93){const _0x165f76=_0xa83ddf,_0x139a58=this[_0x165f76(0x2e9)][_0x165f76(0x1f6)][_0x165f76(0x3ea)](this['_compressMutationService']['interceptor'][_0x165f76(0x246)]()[_0x165f76(0x180)])(_0x3fcc93[_0x165f76(0x43b)],null)||_0x3fcc93['mutations'],_0x1c523e={..._0x3fcc93,'mutations':_0x139a58};this['_lockTransition'](),this[_0x165f76(0x41e)](this[_0x165f76(0x425)][_0x165f76(0x2c1)](_0x1c523e)),this['_unlockTransition']();}['_onRemoteACK'](_0x1f9333){const _0x346007=_0xa83ddf;this[_0x346007(0x1c3)](),this[_0x346007(0x41e)](this['_state'][_0x346007(0x39a)](_0x1f9333)),this[_0x346007(0x37b)]();}['_onRemoteRejected'](_0x286cfc){const _0x400e5e=_0xa83ddf;this[_0x400e5e(0x1c3)](),this[_0x400e5e(0x41e)](this[_0x400e5e(0x425)][_0x400e5e(0x1fd)](_0x286cfc)),this[_0x400e5e(0x37b)]();}[_0xa83ddf(0x3f8)](_0x599417){const _0x3719a1=_0xa83ddf;if(!(this[_0x3719a1(0x425)]instanceof K))throw new TypeError(_0x3719a1(0x2fd));const _0x328339=_0x599417[_0x3719a1(0x423)](_0x533d10=>{const _0x15a3a6=_0x3719a1,_0x2d2ae9=this['_compressMutationService'][_0x15a3a6(0x1f6)][_0x15a3a6(0x3ea)](this[_0x15a3a6(0x2e9)][_0x15a3a6(0x1f6)][_0x15a3a6(0x246)]()[_0x15a3a6(0x180)])(_0x533d10[_0x15a3a6(0x43b)],null)||_0x533d10['mutations'];return{..._0x533d10,'mutations':_0x2d2ae9};});this[_0x3719a1(0x1c3)](),this['_updateState'](this[_0x3719a1(0x425)][_0x3719a1(0x314)](_0x328339)),this['_unlockTransition']();}['_toggleOffline'](){const _0x2a8d82=_0xa83ddf;this[_0x2a8d82(0x1c3)](),this[_0x2a8d82(0x41e)](this[_0x2a8d82(0x425)][_0x2a8d82(0x340)]()),this[_0x2a8d82(0x37b)]();}['_toggleOnline'](){const _0x1d9e0b=_0xa83ddf;this[_0x1d9e0b(0x1c3)](),this[_0x1d9e0b(0x41e)](this[_0x1d9e0b(0x425)][_0x1d9e0b(0x262)]()),this['_unlockTransition']();}async[_0xa83ddf(0x346)](){return new Promise(_0x3e7504=>{const _0x4ae1da=_0xed79;this[_0x4ae1da(0x14a)][_0x4ae1da(0x409)][_0x4ae1da(0x2e5)](_0x4bc9cf(0x1))[_0x4ae1da(0x222)](async _0xa0e690=>{_0x3e7504(await this['_createInitialStateImpl'](_0xa0e690===fe['ONLINE']));});});}[_0xa83ddf(0x2e2)](){const _0xca2c51=this['unitID'];return{'onStateChange':(_0x3c0334,_0x3f3807)=>{const _0x56f39d=_0xed79;if(_0x3c0334!==this[_0x56f39d(0x425)])throw new Error(_0x56f39d(0x2d3)+_0x3c0334[_0x56f39d(0x3e8)]+_0x56f39d(0x1f7)+_0x3f3807['status']+'\x0aCurrent:\x20'+this[_0x56f39d(0x425)][_0x56f39d(0x3e8)]);this[_0x56f39d(0x41e)](_0x3f3807);},'onSendChangeset':_0x1467d8=>{const _0x31db4a=_0xed79,_0xfdb6a3={'eventID':_0x4e62f0['SUBMIT_CHANGESET'],'data':{'unitID':_0x1467d8['unitID'],'unitType':this[_0x31db4a(0x1b5)],'changeset':_0x1467d8,'memberID':this['_session']['getMemberID']()}};this['_session']['send'](_0xfdb6a3,this[_0x31db4a(0x452)]);},'onMissingChangesets':({from:_0x741bbc,to:_0x109587})=>{const _0x37440c=_0xed79;this[_0x37440c(0x33d)][_0x37440c(0x427)](_0x37440c(0x2de),_0x37440c(0x36b)+_0x741bbc+_0x37440c(0x25d)+_0x109587);const _0x5ec47e={'eventID':_0x4e62f0['FETCH_MISSING'],'data':{'unitID':_0xca2c51,'unitType':this['_type'],'from':_0x741bbc,'to':_0x109587}};this[_0x37440c(0x14a)][_0x37440c(0x14f)](_0x5ec47e,this[_0x37440c(0x452)]);}};}async[_0xa83ddf(0x16a)](_0x106712){const _0x5b66bf=_0xa83ddf;var _0x2bdf5d,_0x522e6f;const _0x4e73ae=await this[_0x5b66bf(0x158)][_0x5b66bf(0x392)](this[_0x5b66bf(0x452)]),_0x1b717b=(_0x2bdf5d=_0x4e73ae==null?void 0x0:_0x4e73ae[_0x5b66bf(0x43b)])!=null?_0x2bdf5d:[],_0x2a5a80=(_0x522e6f=_0x4e73ae==null?void 0x0:_0x4e73ae[_0x5b66bf(0x2c5)])!=null?_0x522e6f:null,_0x30ddd6=this['unitID'];try{this['_replayCachedMutations'](_0x2a5a80,_0x1b717b);}catch(_0x33d80a){this[_0x5b66bf(0x33d)][_0x5b66bf(0x44e)](_0x33d80a);}const _0x4ee6ae=this[_0x5b66bf(0x2e2)]();if(_0x106712){const _0x2fbe21=Ls(this[_0x5b66bf(0x1ef)],_0x30ddd6,this['_type'],_0x2a5a80,_0x1b717b,_0x4ee6ae);return _0x2fbe21 instanceof G?_0x2fbe21[_0x5b66bf(0x1d7)]():(_0x2fbe21 instanceof Y||_0x2fbe21 instanceof q)&&_0x2fbe21[_0x5b66bf(0x3e1)](),_0x2fbe21;}return this[_0x5b66bf(0x1ef)][_0x5b66bf(0x274)](Q,_0x30ddd6,this[_0x5b66bf(0x1b5)],_0x2a5a80,_0x1b717b,_0x4ee6ae);}['_replayCachedMutations'](_0x421a3b,_0x4ee418){const _0x48fed5=_0xa83ddf;var _0x4922dd,_0x2f79dc;const _0x394aea=this[_0x48fed5(0x2e9)]['interceptor'][_0x48fed5(0x3ea)](this[_0x48fed5(0x2e9)]['interceptor']['getInterceptPoints']()[_0x48fed5(0x180)]);(_0x4922dd=_0x394aea((_0x421a3b==null?void 0x0:_0x421a3b[_0x48fed5(0x43b)])||[],null))==null||_0x4922dd[_0x48fed5(0x3e6)](_0x3d08fb=>this[_0x48fed5(0x153)][_0x48fed5(0x318)](_0x3d08fb['id'],_0x3d08fb[_0x48fed5(0x370)])),(_0x2f79dc=_0x394aea(_0x4ee418||[],null))==null||_0x2f79dc[_0x48fed5(0x3e6)](_0x88ad22=>this[_0x48fed5(0x153)][_0x48fed5(0x318)](_0x88ad22['id'],_0x88ad22['params']));}};Ze=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x31880b),p(0x9,_0x291fa9),p(0xa,_0x192174),p(0xb,_0x524b2d),p(0xc,_0x36b891(tt))],Ze);let Et=class extends Ze{constructor(_0x3e7004,_0x595843,_0x1517ee,_0x22ff92,_0x24fa9a,_0x4400dd,_0x16bcd7,_0x497850,_0x4865b9,_0x80c340,_0xfea0a7,_0x3c395f,_0x214458,_0x1388c6,_0x2d782d,_0x93f811,_0x399434){const _0x6c08e9=_0xa83ddf;super(_0x3e7004,_0x595843,_0x1517ee,_0x22ff92,_0x24fa9a,_0x4400dd,_0x16bcd7,_0x497850,_0x214458,_0x1388c6,_0x2d782d,_0x93f811,_0x399434),this[_0x6c08e9(0x452)]=_0x3e7004,this[_0x6c08e9(0x2f9)]=_0x595843,this['session']=_0x1517ee,this[_0x6c08e9(0x2ca)]=_0x4865b9,this[_0x6c08e9(0x1d6)]=_0x80c340,this[_0x6c08e9(0x225)]=_0xfea0a7,this['_docSyncEditingCollabCursorService']=_0x3c395f;}[_0xa83ddf(0x2e2)](){const _0x4633bd=_0xa83ddf,_0x10d7c7=super[_0x4633bd(0x2e2)]();return _0x10d7c7[_0x4633bd(0x293)]=_0x41f92a=>this['_docTransformIMECacheService'][_0x4633bd(0x1b8)](_0x41f92a),_0x10d7c7[_0x4633bd(0x3b7)]=_0x1ce1bc=>this[_0x4633bd(0x225)][_0x4633bd(0x34a)](_0x1ce1bc),_0x10d7c7['onSyncEditingCollabCursor']=_0x52aa22=>this[_0x4633bd(0x162)][_0x4633bd(0x3d9)](_0x52aa22),_0x10d7c7['onTransformRemoteChangesetByIMECache']=_0xcd975b=>this[_0x4633bd(0x1d6)][_0x4633bd(0x344)](_0xcd975b),_0x10d7c7;}async['_init'](){const _0x4a7cab=_0xa83ddf,_0x16701f=await super['_init']();return this['disposeWithMe'](this[_0x4a7cab(0x153)][_0x4a7cab(0x30a)]((_0x31ded7,_0x2a9eb2)=>{const _0x55c297=_0x4a7cab;if(_0x31ded7[_0x55c297(0x2f9)]!==_0x20ade7['MUTATION']||_0x2a9eb2!=null&&_0x2a9eb2[_0x55c297(0x2a3)]||_0x2a9eb2!=null&&_0x2a9eb2[_0x55c297(0x46d)])return;const _0x38c9e7=_0x31ded7[_0x55c297(0x370)];if((_0x38c9e7==null?void 0x0:_0x38c9e7[_0x55c297(0x3dd)])!==this['unitID'])return;let _0x4ea0ed=_0x31ded7;if(_0x4ea0ed['id']===_0x53c1cb['id']){const _0x368caa=_0x4ea0ed[_0x55c297(0x370)];_0x4ea0ed={'id':_0x53c1cb['id'],'type':_0x20ade7[_0x55c297(0x445)],'params':{'unitId':_0x368caa[_0x55c297(0x3dd)],'actions':_0x368caa[_0x55c297(0x23a)],'textRanges':null}};}const _0x5cf473=this[_0x55c297(0x2e9)]['interceptor'][_0x55c297(0x3ea)](this['_compressMutationService'][_0x55c297(0x1f6)][_0x55c297(0x246)]()[_0x55c297(0x3f6)])([_0x4ea0ed],null)||[_0x4ea0ed];this[_0x55c297(0x3f0)](_0x5cf473[0x0]);})),_0x16701f;}};Et=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x2854bc(_0x2f98ea)),p(0x9,_0x2854bc(Je)),p(0xa,_0x2854bc(ze)),p(0xb,_0x2854bc(xt)),p(0xc,_0x31880b),p(0xd,_0x291fa9),p(0xe,_0x192174),p(0xf,_0x524b2d),p(0x10,_0x36b891(tt))],Et);let Ct=class extends Ze{constructor(_0x172acd,_0x408828,_0x527df9,_0x551121,_0xef3545,_0x3a10d7,_0x4e44b3,_0x54e4cc,_0x1d321b,_0x1be2ab,_0x579a39,_0x203493,_0x44883f,_0x2d0acf){const _0x5a4ae9=_0xa83ddf;super(_0x172acd,_0x408828,_0x527df9,_0x551121,_0xef3545,_0x3a10d7,_0x4e44b3,_0x54e4cc,_0x1be2ab,_0x579a39,_0x203493,_0x44883f,_0x2d0acf),this[_0x5a4ae9(0x452)]=_0x172acd,this['type']=_0x408828,this['session']=_0x527df9,this[_0x5a4ae9(0x280)]=_0x1d321b;}[_0xa83ddf(0x2e2)](){const _0x14529c=_0xa83ddf,_0xef3ec3=super[_0x14529c(0x2e2)]();return _0xef3ec3['onTransformSelections']=_0x175091=>this[_0x14529c(0x280)][_0x14529c(0x34a)](_0x175091),_0xef3ec3;}async['_init'](){const _0x5537ba=_0xa83ddf,_0x22880b=await super[_0x5537ba(0x267)]();return this[_0x5537ba(0x46f)](this[_0x5537ba(0x153)][_0x5537ba(0x30a)]((_0x2c2bae,_0x14d7bb)=>{const _0x50f98a=_0x5537ba;if(_0x2c2bae[_0x50f98a(0x2f9)]!==_0x20ade7[_0x50f98a(0x445)]||_0x14d7bb!=null&&_0x14d7bb['fromCollab']||_0x14d7bb!=null&&_0x14d7bb['onlyLocal'])return;const _0x29f918=_0x2c2bae['params'];if((_0x29f918==null?void 0x0:_0x29f918[_0x50f98a(0x3dd)])!==this[_0x50f98a(0x452)])return;const _0x1b17b8=_0x2c2bae,_0x190cde=this[_0x50f98a(0x2e9)]['interceptor']['fetchThroughInterceptors'](this[_0x50f98a(0x2e9)][_0x50f98a(0x1f6)]['getInterceptPoints']()[_0x50f98a(0x3f6)])([_0x1b17b8],null)||[_0x1b17b8];this[_0x50f98a(0x3f0)](_0x190cde[0x0]);})),_0x22880b;}};Ct=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x2854bc(qe)),p(0x9,_0x31880b),p(0xa,_0x291fa9),p(0xb,_0x192174),p(0xc,_0x524b2d),p(0xd,_0x36b891(tt))],Ct);const as=[_0xa83ddf(0x22f),_0xa83ddf(0x208),_0xa83ddf(0x313),_0xa83ddf(0x298),'blue400',_0xa83ddf(0x3e4)];class Ht extends _0x54b342{constructor(){const _0x19c168=_0xa83ddf;super(...arguments),_(this,_0x19c168(0x265),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x5e3e2a){const _0x4d5790=_0xa83ddf;if(this[_0x4d5790(0x265)]['has'](_0x5e3e2a))return this[_0x4d5790(0x265)][_0x4d5790(0x441)](_0x5e3e2a);const _0xdffe50=as[this[_0x4d5790(0x30b)]];return this[_0x4d5790(0x30b)]=(this['_colorIndex']+0x1)%as[_0x4d5790(0x249)],this[_0x4d5790(0x265)][_0x4d5790(0x3fb)](_0x5e3e2a,_0xdffe50),_0xdffe50;}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x141d97,_0x23d12d,_0x124892,_0x45a684)=>{const _0x2784f3=_0xa83ddf;for(var _0x594a30=_0x45a684>0x1?void 0x0:_0x45a684?ar(_0x23d12d,_0x124892):_0x23d12d,_0x5119b4=_0x141d97[_0x2784f3(0x249)]-0x1,_0x3e0255;_0x5119b4>=0x0;_0x5119b4--)(_0x3e0255=_0x141d97[_0x5119b4])&&(_0x594a30=(_0x45a684?_0x3e0255(_0x23d12d,_0x124892,_0x594a30):_0x3e0255(_0x594a30))||_0x594a30);return _0x45a684&&_0x594a30&&or(_0x23d12d,_0x124892,_0x594a30),_0x594a30;},le=(_0x55c2fe,_0x2d8ee4)=>(_0x2ce03b,_0x93b48a)=>_0x2d8ee4(_0x2ce03b,_0x93b48a,_0x55c2fe);const hr=0x12c,_r=0x64,lr=()=>{let _0xe4a27b=[],_0x24a1f1=!0x1;return _0x3ef3a6=>{const _0x42dbcc=_0xed79;_0xe4a27b[_0x42dbcc(0x14e)](_0x3ef3a6),_0x24a1f1||(_0x24a1f1=!0x0,setTimeout(()=>{const _0x5de50b=_0x42dbcc;_0xe4a27b[_0x5de50b(0x3e6)](_0x466c0f=>_0x466c0f()),_0xe4a27b=[],_0x24a1f1=!0x1;}));};};let bt=class extends _0x26114b{constructor(_0x521b9d,_0x44387b,_0x2fd024,_0x1fa536,_0x55e221,_0x197aac,_0x489c70,_0x4feb1c){const _0x57f9fb=_0xa83ddf;super(),_(this,_0x57f9fb(0x200),!0x1),_(this,_0x57f9fb(0x267),!0x1),_(this,'_cursorInfo$',new _0xbc7543(new Map())),_(this,'cursorInfo$',this[_0x57f9fb(0x1c2)]['asObservable']()),_(this,_0x57f9fb(0x231),new _0xbc7543([])),_(this,_0x57f9fb(0x34e),this[_0x57f9fb(0x231)][_0x57f9fb(0x2e5)](_0x5d9837(hr))),_(this,_0x57f9fb(0x1c0),_0x238659((_0x5107ba,_0x5cd1fd)=>{const _0x9f56b8=_0x57f9fb,_0x27ebbb={'eventID':_0x4e62f0[_0x9f56b8(0x15f)],'data':{'unitID':this[_0x9f56b8(0x452)],'memberID':this[_0x9f56b8(0x14a)][_0x9f56b8(0x1fc)](),'selection':_0x2fa69e(_0x5107ba,_0x5cd1fd['range'])}};this['_session'][_0x9f56b8(0x14f)](_0x27ebbb,this['unitID']);},_r)),(this['unitID']=_0x521b9d,this['_session']=_0x44387b,this['_injector']=_0x2fd024,this['_colorAssignService']=_0x1fa536,this[_0x57f9fb(0x13e)]=_0x55e221,this[_0x57f9fb(0x44a)]=_0x197aac,this[_0x57f9fb(0x153)]=_0x489c70,this[_0x57f9fb(0x428)]=_0x4feb1c);}get[_0xa83ddf(0x337)](){const _0x5f35d3=_0xa83ddf;return this[_0x5f35d3(0x1c2)][_0x5f35d3(0x1ac)]();}get['roomMembers'](){const _0x331df2=_0xa83ddf;return this['_roomMembers$'][_0x331df2(0x1ac)]();}[_0xa83ddf(0x471)](){const _0x309443=_0xa83ddf;super['dispose'](),this[_0x309443(0x1c2)][_0x309443(0x311)](new Map()),this[_0x309443(0x1c2)][_0x309443(0x308)](),this['_roomMembers$'][_0x309443(0x311)]([]),this[_0x309443(0x231)]['complete']();}['init'](){const _0x442ee2=_0xa83ddf;this[_0x442ee2(0x267)]||(this[_0x442ee2(0x267)]=!0x0,this[_0x442ee2(0x14a)][_0x442ee2(0x409)][_0x442ee2(0x2e5)](_0x4b5283(this['dispose$']))[_0x442ee2(0x222)](_0x396284=>{const _0x109739=_0x442ee2;_0x396284===fe['ONLINE']?this[_0x109739(0x2bd)]():this['_toggleOffline']();}),this[_0x442ee2(0x14a)][_0x442ee2(0x1c6)][_0x442ee2(0x2e5)](_0x4b5283(this[_0x442ee2(0x22b)]))[_0x442ee2(0x222)](_0x558190=>{const _0xc75872=_0x442ee2,_0x927c6b=_0x558190[_0xc75872(0x217)];_0x927c6b===_0x4e62f0[_0xc75872(0x15f)]&&this[_0xc75872(0x212)](_0x558190),_0x927c6b===_0x4e62f0['USERS_LEAVE']&&this[_0xc75872(0x18b)](_0x558190);}),this['_onRefRangeChange'](),this[_0x442ee2(0x46f)](this[_0x442ee2(0x153)][_0x442ee2(0x30a)](_0x4a1ae2=>{const _0x3f91ab=_0x442ee2;if(this[_0x3f91ab(0x200)]&&_0x4a1ae2['id']===_0x5fa864['id']&&_0x4a1ae2[_0x3f91ab(0x370)][_0x3f91ab(0x3dd)]===this['unitID']){const _0x46f008=_0x4a1ae2[_0x3f91ab(0x370)];this[_0x3f91ab(0x1c0)](_0x46f008[_0x3f91ab(0x338)],_0x46f008[_0x3f91ab(0x46e)][0x0]);}})));}[_0xa83ddf(0x212)](_0x2238ad){const _0x2fc48b=_0xa83ddf;var _0x4611d3,_0x5272f8;const {memberID:_0x3ed41f,selection:_0x3dbfc3}=_0x2238ad[_0x2fc48b(0x2cf)],{sheetName:_0x54ff00,range:_0x4ddbd4}=_0x4c55b7(_0x3dbfc3),_0x55a5ed={'name':(_0x5272f8=(_0x4611d3=this['_memberService'][_0x2fc48b(0x2c2)](this[_0x2fc48b(0x452)],_0x3ed41f))==null?void 0x0:_0x4611d3[_0x2fc48b(0x1dd)])!=null?_0x5272f8:_0x2fc48b(0x426),'range':this[_0x2fc48b(0x363)](_0x54ff00,_0x4ddbd4),'sheetID':_0x54ff00,'color':this['_colorAssignService'][_0x2fc48b(0x45c)](_0x3ed41f),'selection':_0x3dbfc3},_0x3a557a=this['cursorInfo'];_0x3a557a[_0x2fc48b(0x3fb)](_0x3ed41f,_0x55a5ed),this[_0x2fc48b(0x1c2)][_0x2fc48b(0x311)](_0x3a557a);}[_0xa83ddf(0x18b)](_0x43387a){const _0x1f380b=_0xa83ddf,{memberID:_0x4c5027}=_0x43387a[_0x1f380b(0x2cf)],_0x4ff910=this[_0x1f380b(0x337)];_0x4ff910[_0x1f380b(0x29c)](_0x4c5027),this['_cursorInfo$'][_0x1f380b(0x311)](_0x4ff910);}[_0xa83ddf(0x363)](_0x28c99d,_0x50fbf0){const _0x217c21=_0xa83ddf;var _0x57f571,_0x3e92ea;const _0x5876a0=(_0x3e92ea=(_0x57f571=this[_0x217c21(0x44a)][_0x217c21(0x29e)](this[_0x217c21(0x452)]))==null?void 0x0:_0x57f571[_0x217c21(0x466)](_0x28c99d))==null?void 0x0:_0x3e92ea[_0x217c21(0x13d)]();return(_0x5876a0==null?void 0x0:_0x5876a0[_0x217c21(0x31b)](_0x5978cd=>_0x405e44['contains'](_0x5978cd,_0x50fbf0)))||_0x50fbf0;}[_0xa83ddf(0x1d4)](){const _0x7e7aac=_0xa83ddf,_0x2b9eba=new _0x207116(),_0x280cd5=lr(),_0x3bcbde=()=>{const _0x845f9c=_0xed79;_0x2b9eba[_0x845f9c(0x471)]();const _0x307376=(_0xf53449,_0x3e5e68,_0x3be24f,_0x256aec)=>{const _0xf09871=_0x845f9c;let _0x35ff7f=[];switch(_0xf53449['id']){case _0x23dfbc[_0xf09871(0x470)]:{_0x35ff7f=_0x59566e(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x3d0)]:{_0x35ff7f=_0x3fdc0a(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x28d)]:{_0x35ff7f=_0x5db54b(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x399)]:{_0x35ff7f=_0x5751e9(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x144)]:{_0x35ff7f=_0x4f72f8(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x462)]:{_0x35ff7f=_0x4f79a5(_0xf53449,_0x256aec);break;}case _0x23dfbc['MoveRangeCommandId']:{_0x35ff7f=_0x32cf1a(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x3ae)]:{_0x35ff7f=_0x3a1e0d(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x37e)]:{_0x35ff7f=_0x354afa(_0xf53449,_0x256aec);break;}}const _0x4b3c5e=_0x279243(_0x35ff7f,_0x256aec),_0x19557b=this[_0xf09871(0x337)][_0xf09871(0x441)](_0x3e5e68);if(_0x19557b&&_0x4b3c5e){const _0x1c005e={..._0x19557b,'range':_0x4b3c5e};this[_0xf09871(0x337)][_0xf09871(0x3fb)](_0x3e5e68,_0x1c005e),_0x280cd5(()=>{const _0x4ba198=_0xf09871,_0x3625bb=this[_0x4ba198(0x428)]['registerRefRange'](_0x4b3c5e,_0x4114f6=>(_0x3625bb[_0x4ba198(0x471)](),_0x307376(_0x4114f6,_0x3e5e68,_0x3be24f,_0x4b3c5e)));_0x2b9eba[_0x4ba198(0x2f8)](_0x3625bb);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x845f9c(0x3e6)]((_0x2a6a7f,_0x160d8e)=>{const _0x1b5fdf=_0x845f9c,{range:_0xaa3e8d,sheetID:_0xd0c1c0}=_0x2a6a7f,_0x38d8fa=this[_0x1b5fdf(0x428)][_0x1b5fdf(0x431)](_0xaa3e8d,_0x4ca127=>(_0x38d8fa['dispose'](),_0x307376(_0x4ca127,_0x160d8e,_0xd0c1c0,_0xaa3e8d)));_0x2b9eba[_0x1b5fdf(0x2f8)](_0x38d8fa);});};this[_0x7e7aac(0x46f)](_0x5bf8dd(this['_cursorInfo$'][_0x7e7aac(0x222)](()=>{_0x3bcbde();})));}[_0xa83ddf(0x2bd)](){const _0x36325e=_0xa83ddf;var _0x2b13c2,_0x3b29ef;if(this[_0x36325e(0x200)]=!0x0,((_0x2b13c2=this[_0x36325e(0x44a)][_0x36325e(0x3fd)]())==null?void 0x0:_0x2b13c2[_0x36325e(0x27a)]())!==this[_0x36325e(0x452)])return;const _0x1a9f9e=(_0x3b29ef=this[_0x36325e(0x1ef)]['get'](_0x3bd81d)[_0x36325e(0x1a9)]())==null?void 0x0:_0x3b29ef[0x0],_0x3d5a05=this[_0x36325e(0x44a)][_0x36325e(0x419)](_0x54437b['UNIVER_SHEET'])['getActiveSheet']();_0x1a9f9e&&_0x3d5a05&&this['_updateLocalCursor'](_0x3d5a05[_0x36325e(0x205)](),_0x1a9f9e);}[_0xa83ddf(0x1e8)](){this['_online']=!0x1;}};bt=cr([le(0x2,_0x2854bc(_0x28aed1)),le(0x3,_0x2854bc(Ht)),le(0x4,_0x2854bc(ne)),le(0x5,_0x1b1ada),le(0x6,_0x291fa9),le(0x7,_0x2854bc(_0x180f6f))],bt);var ur=Object[_0xa83ddf(0x3b2)],dr=Object[_0xa83ddf(0x190)],mr=(_0x100cee,_0x1a3450,_0xf6bbf,_0x30f0bb)=>{const _0x573ae5=_0xa83ddf;for(var _0x3e12f5=_0x30f0bb>0x1?void 0x0:_0x30f0bb?dr(_0x1a3450,_0xf6bbf):_0x1a3450,_0x13b4ff=_0x100cee[_0x573ae5(0x249)]-0x1,_0x4d662b;_0x13b4ff>=0x0;_0x13b4ff--)(_0x4d662b=_0x100cee[_0x13b4ff])&&(_0x3e12f5=(_0x30f0bb?_0x4d662b(_0x1a3450,_0xf6bbf,_0x3e12f5):_0x4d662b(_0x3e12f5))||_0x3e12f5);return _0x30f0bb&&_0x3e12f5&&ur(_0x1a3450,_0xf6bbf,_0x3e12f5),_0x3e12f5;},te=(_0x35714b,_0x18006b)=>(_0xc40c44,_0xe541bc)=>_0x18006b(_0xc40c44,_0xe541bc,_0x35714b);const fr=0x12c,gr=0x64;let Rt=class extends _0x26114b{constructor(_0x149f79,_0xca09b7,_0x22ec88,_0x30ca31,_0x4fb16f,_0xfac007,_0x389de9,_0xdff258,_0x4993ca){const _0x4b184c=_0xa83ddf;super(),_(this,_0x4b184c(0x200),!0x1),_(this,_0x4b184c(0x267),!0x1),_(this,'_cursorInfo$',new _0xbc7543(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x4b184c(0x473)]()),_(this,_0x4b184c(0x231),new _0xbc7543([])),_(this,_0x4b184c(0x34e),this['_roomMembers$'][_0x4b184c(0x2e5)](_0x5d9837(fr))),_(this,_0x4b184c(0x1c0),_0x238659(_0x306abc=>{const _0x287919=_0x4b184c,_0x3e9983={'eventID':_0x4e62f0[_0x287919(0x15f)],'data':{'unitID':this[_0x287919(0x452)],'memberID':this[_0x287919(0x14a)]['getMemberID'](),'selection':ys(_0x306abc)}};this[_0x287919(0x14a)][_0x287919(0x14f)](_0x3e9983,this[_0x287919(0x452)]);},gr)),(this['unitID']=_0x149f79,this[_0x4b184c(0x14a)]=_0xca09b7,this[_0x4b184c(0x1ef)]=_0x22ec88,this[_0x4b184c(0x30f)]=_0x30ca31,this[_0x4b184c(0x13e)]=_0x4fb16f,this['_syncEditingCollabCursorService']=_0xfac007,this[_0x4b184c(0x2ef)]=_0x389de9,this[_0x4b184c(0x44a)]=_0xdff258,this['_commandService']=_0x4993ca);}get[_0xa83ddf(0x337)](){const _0x5d6cb8=_0xa83ddf;return this[_0x5d6cb8(0x1c2)][_0x5d6cb8(0x1ac)]();}get[_0xa83ddf(0x33b)](){const _0x3f6257=_0xa83ddf;return this[_0x3f6257(0x231)]['getValue']();}[_0xa83ddf(0x471)](){const _0x2261fd=_0xa83ddf;super[_0x2261fd(0x471)](),this[_0x2261fd(0x1c2)][_0x2261fd(0x311)](new Map()),this[_0x2261fd(0x1c2)][_0x2261fd(0x308)](),this[_0x2261fd(0x231)]['next']([]),this[_0x2261fd(0x231)][_0x2261fd(0x308)]();}[_0xa83ddf(0x321)](){const _0x63a7a5=_0xa83ddf;this[_0x63a7a5(0x267)]||(this[_0x63a7a5(0x267)]=!0x0,this[_0x63a7a5(0x14a)][_0x63a7a5(0x409)][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))[_0x63a7a5(0x222)](_0x2f1dbd=>{const _0x45e40b=_0x63a7a5;_0x2f1dbd===fe[_0x45e40b(0x310)]?this[_0x45e40b(0x2bd)]():this[_0x45e40b(0x1e8)]();}),this[_0x63a7a5(0x14a)]['event$'][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))[_0x63a7a5(0x222)](_0x5a5a5e=>{const _0x3016cd=_0x63a7a5,_0x56f4e2=_0x5a5a5e[_0x3016cd(0x217)];_0x56f4e2===_0x4e62f0['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5a5a5e),_0x56f4e2===_0x4e62f0['USERS_LEAVE']&&this['_onCursorDelete'](_0x5a5a5e);}),this[_0x63a7a5(0x46f)](this[_0x63a7a5(0x153)][_0x63a7a5(0x30a)](_0x393899=>{const _0x42fda6=_0x63a7a5,_0x3b0ef6=_0x393899[_0x42fda6(0x370)];_0x3b0ef6!=null&&this[_0x42fda6(0x200)]&&_0x393899['id']===_0x49f40d['id']&&_0x3b0ef6[_0x42fda6(0x3dd)]===this['unitID']&&_0x3b0ef6[_0x42fda6(0x290)]===!0x1&&this[_0x42fda6(0x1c0)](_0x3b0ef6[_0x42fda6(0x28e)]);})),this[_0x63a7a5(0x23f)][_0x63a7a5(0x3e9)][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))['subscribe'](_0x58b1f3=>{const _0x34358a=_0x63a7a5;if((_0x58b1f3==null?void 0x0:_0x58b1f3[_0x34358a(0x452)])!==this['unitID'])return;const _0x41c928={'eventID':_0x4e62f0['UPDATE_CURSOR'],'data':_0x58b1f3};this['_onCursorUpdate'](_0x41c928);}),this[_0x63a7a5(0x46f)](this[_0x63a7a5(0x153)][_0x63a7a5(0x30a)](_0x653ab1=>{const _0x16d408=_0x63a7a5;if(_0x653ab1[_0x16d408(0x370)]==null)return;const _0x25342a=_0x653ab1[_0x16d408(0x370)];if(_0x653ab1['id']!==_0x53c1cb['id']||_0x25342a[_0x16d408(0x3dd)]!==this[_0x16d408(0x452)])return;const _0x28ba76={'id':_0x16d408(0x14c),'params':_0x25342a},_0x56b37c=this['cursorInfo'];for(const [_0x1c24d0,_0x1c6452]of _0x56b37c){const _0x129c94={'id':_0x16d408(0x14c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1c6452['ranges']}},_0x2611e4=this[_0x16d408(0x2ef)][_0x16d408(0x2d6)](_0x28ba76,_0x129c94,!0x1);if(_0x571c72(_0x2611e4))throw _0x2611e4[_0x16d408(0x44e)];_0x56b37c['set'](_0x1c24d0,{..._0x1c6452,'ranges':_0x2611e4[_0x16d408(0x145)]['params'][_0x16d408(0x3dc)]});}queueMicrotask(()=>{const _0x3fe0f8=_0x16d408;this[_0x3fe0f8(0x1c2)]['next'](_0x56b37c);});})));}[_0xa83ddf(0x212)](_0x4c8368){const _0x5a5cf9=_0xa83ddf;var _0x2de691,_0x4aab3f;const {memberID:_0x3a0fb4,selection:_0xf95939}=_0x4c8368['data'],_0x4003a5=Xn(_0xf95939),_0x5ed77f=(_0x4aab3f=(_0x2de691=this[_0x5a5cf9(0x13e)][_0x5a5cf9(0x2c2)](this['unitID'],_0x3a0fb4))==null?void 0x0:_0x2de691[_0x5a5cf9(0x1dd)])!=null?_0x4aab3f:'Unknown\x20user',_0x563e1b={'color':this['_colorAssignService'][_0x5a5cf9(0x45c)](_0x3a0fb4),'name':_0x5ed77f,'ranges':_0x4003a5},_0x413db8=this[_0x5a5cf9(0x337)];_0x413db8[_0x5a5cf9(0x3fb)](_0x3a0fb4,_0x563e1b),this[_0x5a5cf9(0x1c2)]['next'](_0x413db8);}[_0xa83ddf(0x18b)](_0x53bbd9){const _0x36d946=_0xa83ddf,{memberID:_0x5020bb}=_0x53bbd9[_0x36d946(0x2cf)],_0x1d8f76=this['cursorInfo'];_0x1d8f76[_0x36d946(0x29c)](_0x5020bb),this[_0x36d946(0x1c2)][_0x36d946(0x311)](_0x1d8f76);}['_toggleOnline'](){const _0x19f861=_0xa83ddf;var _0x255b6c;if(this[_0x19f861(0x200)]=!0x0,((_0x255b6c=this['_univerInstanceService'][_0x19f861(0x3fd)]())==null?void 0x0:_0x255b6c[_0x19f861(0x27a)]())!==this[_0x19f861(0x452)])return;const _0x33f767=this['_injector'][_0x19f861(0x441)](_0x4857f4)[_0x19f861(0x3a8)](),_0x4b0d41=_0x33f767==null?void 0x0:_0x33f767['map'](_0xfbe9ba);Array[_0x19f861(0x210)](_0x4b0d41)&&_0x4b0d41[_0x19f861(0x249)]>0x0&&this[_0x19f861(0x1c0)](_0x4b0d41);}[_0xa83ddf(0x1e8)](){const _0x41cfe8=_0xa83ddf;this[_0x41cfe8(0x200)]=!0x1;}};Rt=mr([te(0x2,_0x2854bc(_0x28aed1)),te(0x3,_0x2854bc(Ht)),te(0x4,_0x2854bc(ne)),te(0x5,_0x2854bc(xt)),te(0x6,_0x5b4b40),te(0x7,_0x1b1ada),te(0x8,_0x291fa9)],Rt);var Sr=Object[_0xa83ddf(0x3b2)],pr=Object[_0xa83ddf(0x190)],vr=(_0x4ba381,_0x55c5e4,_0x1879ee,_0x36d988)=>{const _0x37794e=_0xa83ddf;for(var _0x42e894=_0x36d988>0x1?void 0x0:_0x36d988?pr(_0x55c5e4,_0x1879ee):_0x55c5e4,_0x9da6e4=_0x4ba381[_0x37794e(0x249)]-0x1,_0x1410bc;_0x9da6e4>=0x0;_0x9da6e4--)(_0x1410bc=_0x4ba381[_0x9da6e4])&&(_0x42e894=(_0x36d988?_0x1410bc(_0x55c5e4,_0x1879ee,_0x42e894):_0x1410bc(_0x42e894))||_0x42e894);return _0x36d988&&_0x42e894&&Sr(_0x55c5e4,_0x1879ee,_0x42e894),_0x42e894;},ct=(_0xff3406,_0x475c58)=>(_0x1a39e2,_0x151b90)=>_0x475c58(_0x1a39e2,_0x151b90,_0xff3406);let ge=class extends _0x26114b{constructor(_0x3c9929,_0x39442c,_0x30f892){const _0xead0ab=_0xa83ddf;super(),_(this,_0xead0ab(0x14b),new Map()),_(this,_0xead0ab(0x1c4),new _0x27d684()),(this[_0xead0ab(0x44a)]=_0x3c9929,this[_0xead0ab(0x1ef)]=_0x39442c,this[_0xead0ab(0x1d8)]=_0x30f892,this[_0xead0ab(0x267)]());}['dispose'](){const _0x3629dd=_0xa83ddf;super['dispose'](),this[_0x3629dd(0x1c4)][_0x3629dd(0x308)](),this[_0x3629dd(0x14b)]['forEach'](_0x4371d5=>_0x4371d5['dispose']());}['getCollabCursors$'](_0x553099){const _0x4c07b4=_0xa83ddf;return this['_entities']['has'](_0x553099)?this[_0x4c07b4(0x14b)][_0x4c07b4(0x441)](_0x553099)[_0x4c07b4(0x456)]:this[_0x4c07b4(0x1c4)][_0x4c07b4(0x2e5)](_0x30916b(_0x252e6c=>_0x252e6c['unitID']===_0x553099),_0x284752(_0x3004bc=>_0x3004bc['cursorInfo$']));}[_0xa83ddf(0x267)](){const _0x1bca45=_0xa83ddf;this[_0x1bca45(0x44a)]['getTypeOfUnitAdded$'](_0x54437b['UNIVER_SHEET'])['pipe'](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x222)](async _0x5cc8b4=>{const _0x2d45ef=_0x1bca45,_0x57c98c=_0x5cc8b4[_0x2d45ef(0x27a)](),_0x16e69d=await this['_startSheetCollabCursor'](_0x57c98c);this[_0x2d45ef(0x1c4)][_0x2d45ef(0x311)](_0x16e69d),this[_0x2d45ef(0x14b)][_0x2d45ef(0x3fb)](_0x57c98c,_0x16e69d);}),this[_0x1bca45(0x44a)][_0x1bca45(0x388)](_0x54437b[_0x1bca45(0x1f2)])[_0x1bca45(0x2e5)](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x2e5)](_0x30916b(_0x41aa92=>!_0x41aa92['getUnitId']()['startsWith']('__')))[_0x1bca45(0x222)](async _0x50820d=>{const _0x2735ac=_0x1bca45,_0x417b6e=_0x50820d[_0x2735ac(0x27a)](),_0x2f6925=await this[_0x2735ac(0x230)](_0x417b6e);this['_entityInit$']['next'](_0x2f6925),this[_0x2735ac(0x14b)][_0x2735ac(0x3fb)](_0x417b6e,_0x2f6925);}),_0x19b764(this[_0x1bca45(0x44a)][_0x1bca45(0x331)](_0x54437b[_0x1bca45(0x1f2)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54437b[_0x1bca45(0x2ac)]))[_0x1bca45(0x2e5)](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x222)](_0x1475e2=>{const _0x5bb563=_0x1bca45,_0x18f491=_0x1475e2[_0x5bb563(0x27a)](),_0x28d8f6=this[_0x5bb563(0x14b)]['get'](_0x18f491);_0x28d8f6&&(_0x28d8f6[_0x5bb563(0x471)](),this[_0x5bb563(0x14b)][_0x5bb563(0x29c)](_0x18f491));});}async[_0xa83ddf(0x1f0)](_0x4b59b6){const _0x143045=_0xa83ddf,_0x5e122a=await this[_0x143045(0x1d8)][_0x143045(0x2d1)](_0x4b59b6),_0x40d757=this[_0x143045(0x1ef)][_0x143045(0x274)](bt,_0x4b59b6,_0x5e122a);return _0x40d757['init'](),_0x40d757;}async[_0xa83ddf(0x230)](_0x228ea8){const _0x18e62e=_0xa83ddf,_0x415850=await this[_0x18e62e(0x1d8)][_0x18e62e(0x2d1)](_0x228ea8),_0x302c8a=this[_0x18e62e(0x1ef)][_0x18e62e(0x274)](Rt,_0x228ea8,_0x415850);return _0x302c8a[_0x18e62e(0x321)](),_0x302c8a;}};ge=vr([_0x3b619c(_0x13d562['Starting'],ge),ct(0x0,_0x1b1ada),ct(0x1,_0x2854bc(_0x28aed1)),ct(0x2,_0x2854bc(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0x45cda8,_0x487857){const _0x2734c4=_0xa83ddf;let {radius:_0x56a09c,width:_0x1ef455,height:_0x23e53e}=_0x487857;_0x56a09c=_0x56a09c!=null?_0x56a09c:0x0,_0x1ef455=_0x1ef455!=null?_0x1ef455:0x1e,_0x23e53e=_0x23e53e!=null?_0x23e53e:0x1e;let _0x4e630a=0x0,_0x2955b6=0x0,_0x159480=0x0;_0x4e630a=_0x2955b6=_0x159480=Math[_0x2734c4(0x160)](_0x56a09c,_0x1ef455/0x2,_0x23e53e/0x2),_0x45cda8[_0x2734c4(0x1ba)](),_0x45cda8['moveTo'](_0x4e630a,0x0),_0x45cda8[_0x2734c4(0x335)](_0x1ef455-_0x2955b6,0x0),_0x45cda8[_0x2734c4(0x38a)](_0x1ef455-_0x2955b6,_0x2955b6,_0x2955b6,Math['PI']*0x3/0x2,0x0,!0x1),_0x45cda8['lineTo'](_0x1ef455,_0x23e53e-_0x159480),_0x45cda8[_0x2734c4(0x38a)](_0x1ef455-_0x159480,_0x23e53e-_0x159480,_0x159480,0x0,Math['PI']/0x2,!0x1),_0x45cda8[_0x2734c4(0x335)](0x0,_0x23e53e),_0x45cda8[_0x2734c4(0x335)](0x0,_0x4e630a),_0x45cda8[_0x2734c4(0x38a)](_0x4e630a,_0x4e630a,_0x4e630a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45cda8[_0x2734c4(0x25c)](),_0x487857[_0x2734c4(0x23c)]&&(_0x45cda8[_0x2734c4(0x164)](),_0x45cda8[_0x2734c4(0x24c)]=_0x487857['fill'],_0x487857[_0x2734c4(0x361)]==='evenodd'?_0x45cda8[_0x2734c4(0x23c)]('evenodd'):_0x45cda8[_0x2734c4(0x23c)](),_0x45cda8[_0x2734c4(0x2b3)]());}class it extends _0x497bf1{constructor(_0x550d9b,_0x2cedb8){const _0x5aeaef=_0xa83ddf;super(_0x550d9b,_0x2cedb8),_(this,_0x5aeaef(0x364)),_(this,_0x5aeaef(0x197)),(this[_0x5aeaef(0x364)]=_0x2cedb8==null?void 0x0:_0x2cedb8['color'],this[_0x5aeaef(0x197)]=_0x2cedb8==null?void 0x0:_0x2cedb8[_0x5aeaef(0x197)]);}static[_0xa83ddf(0x476)](_0x44e155,_0x1c5745){const _0x1c12ae=_0xa83ddf,{text:_0x27bb40,color:_0x5e77b5}=_0x1c5745;_0x44e155[_0x1c12ae(0x164)](),_0x44e155[_0x1c12ae(0x299)]=_0x1c12ae(0x26d);const _0x520a69=_0x44e155[_0x1c12ae(0x251)](_0x27bb40)[_0x1c12ae(0x420)],_0x1843e9=Math[_0x1c12ae(0x160)](_0x520a69+0x2*ht,cs);Er(_0x44e155,{'height':ye,'radius':0x4,'width':_0x1843e9,'fill':_0x5e77b5,'evented':!0x1}),_0x44e155[_0x1c12ae(0x24c)]=_0x1c12ae(0x2e6);const _0x56c470=ht,_0x18e271=ye-Ir,_0x327aa6=cs-0x2*ht;if(_0x520a69>_0x327aa6){let _0x49ea7d='',_0x33b1cb=0x0;for(const _0x46b42f of _0x27bb40){const _0xc96019=_0x44e155[_0x1c12ae(0x251)](_0x46b42f)[_0x1c12ae(0x420)];if(_0x33b1cb+_0xc96019<=_0x327aa6-_0x44e155['measureText'](_0x1c12ae(0x2fb))[_0x1c12ae(0x420)])_0x49ea7d+=_0x46b42f,_0x33b1cb+=_0xc96019;else{_0x49ea7d+=_0x1c12ae(0x2fb);break;}}_0x44e155[_0x1c12ae(0x27c)](_0x49ea7d,_0x56c470,_0x18e271);}else _0x44e155[_0x1c12ae(0x27c)](_0x27bb40,_0x56c470,_0x18e271);_0x44e155[_0x1c12ae(0x2b3)]();}[_0xa83ddf(0x281)](_0x5248fd){const _0x167ad3=_0xa83ddf;it[_0x167ad3(0x476)](_0x5248fd,this);}}const Cr=0x1,br=1.5;class Rr extends _0x497bf1{constructor(_0x5206e6,_0x51c6f7){const _0x4274c8=_0xa83ddf;super(_0x5206e6,_0x51c6f7),_(this,_0x4274c8(0x46a)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x4274c8(0x1d0),''),_(this,_0x4274c8(0x2f4),_0x4274c8(0x2ea)),_(this,_0x4274c8(0x435)),(_0x51c6f7&&this[_0x4274c8(0x356)](_0x51c6f7),this[_0x4274c8(0x367)][_0x4274c8(0x2f2)](()=>this[_0x4274c8(0x356)]({'hovered':!0x0})),this[_0x4274c8(0x307)]['subscribeEvent'](()=>this[_0x4274c8(0x356)]({'hovered':!0x1})));}[_0xa83ddf(0x356)](_0x4b809b){const _0x406c9f=_0xa83ddf;var _0x58bdf5,_0x2ed59a,_0x715b0c,_0x127b54,_0x1c3e9e,_0x274fb5;this[_0x406c9f(0x46a)]=(_0x58bdf5=_0x4b809b[_0x406c9f(0x364)])!=null?_0x58bdf5:this['_color'],this[_0x406c9f(0x1bc)]=(_0x2ed59a=_0x4b809b[_0x406c9f(0x38e)])!=null?_0x2ed59a:this[_0x406c9f(0x1bc)],this[_0x406c9f(0x422)]=(_0x715b0c=_0x4b809b[_0x406c9f(0x474)])!=null?_0x715b0c:this[_0x406c9f(0x422)],this[_0x406c9f(0x1d0)]=(_0x127b54=_0x4b809b[_0x406c9f(0x1dd)])!=null?_0x127b54:this[_0x406c9f(0x1d0)],this[_0x406c9f(0x2f4)]=(_0x1c3e9e=_0x4b809b[_0x406c9f(0x264)])!=null?_0x1c3e9e:this[_0x406c9f(0x2f4)],this['_backgroundColor']=(_0x274fb5=_0x4b809b[_0x406c9f(0x317)])!=null?_0x274fb5:this[_0x406c9f(0x435)],this['transformByState']({'width':_0x4b809b['width'],'height':_0x4b809b['height']});}['onMouseMove'](_0x59ea8c){const _0x157acf=_0xa83ddf,{row:_0x1f2265,column:_0x4f9f7e}=_0x59ea8c;if(_0x1f2265>=this[_0x157acf(0x422)][_0x157acf(0x369)]&&_0x1f2265<=this[_0x157acf(0x422)]['endRow']&&_0x4f9f7e>=this[_0x157acf(0x422)][_0x157acf(0x1a6)]&&_0x4f9f7e<=this['_range']['endColumn']){this[_0x157acf(0x356)]({'hovered':!0x0});return;}this[_0x157acf(0x356)]({'hovered':!0x1});}['triggerDblclick'](_0x5712e6){return!0x1;}[_0xa83ddf(0x281)](_0x599591){const _0x5d155c=_0xa83ddf;_0x97f8c4[_0x5d155c(0x476)](_0x599591,{'width':this[_0x5d155c(0x420)],'height':this['height'],'strokeWidth':br,'stroke':this[_0x5d155c(0x46a)],'evented':!0x1,'fill':this[_0x5d155c(0x435)]}),this[_0x5d155c(0x1bc)]&&(_0x599591['save'](),_0x599591[_0x5d155c(0x20c)](0x1,0x0,0x0,0x1,this[_0x5d155c(0x420)],this['_labelPosition']===_0x5d155c(0x2e8)?0x0:-ye),it['drawWith'](_0x599591,{'text':this[_0x5d155c(0x1d0)],'color':this[_0x5d155c(0x46a)]}),_0x599591[_0x5d155c(0x2b3)]());}}var Tr=Object[_0xa83ddf(0x3b2)],Or=Object[_0xa83ddf(0x190)],Dr=(_0x2eb3b3,_0x285091,_0x1a3c55,_0x3142fe)=>{const _0xa11381=_0xa83ddf;for(var _0x4a700d=_0x3142fe>0x1?void 0x0:_0x3142fe?Or(_0x285091,_0x1a3c55):_0x285091,_0x2959b7=_0x2eb3b3[_0xa11381(0x249)]-0x1,_0x10760b;_0x2959b7>=0x0;_0x2959b7--)(_0x10760b=_0x2eb3b3[_0x2959b7])&&(_0x4a700d=(_0x3142fe?_0x10760b(_0x285091,_0x1a3c55,_0x4a700d):_0x10760b(_0x4a700d))||_0x4a700d);return _0x3142fe&&_0x4a700d&&Tr(_0x285091,_0x1a3c55,_0x4a700d),_0x4a700d;},_t=(_0x405062,_0x3b3392)=>(_0x49033e,_0x4a6f82)=>_0x3b3392(_0x49033e,_0x4a6f82,_0x405062);const Pr=0x1389;let Tt=class extends _0x26114b{constructor(_0x5e749b,_0x4e70b4,_0xb63352,_0xf814b3){const _0xc1cb65=_0xa83ddf;super(),_(this,_0xc1cb65(0x289),new Set()),_(this,_0xc1cb65(0x1fe),null),(this[_0xc1cb65(0x3ff)]=_0x5e749b,this[_0xc1cb65(0x320)]=_0x4e70b4,this[_0xc1cb65(0x440)]=_0xb63352,this[_0xc1cb65(0x1a4)]=_0xf814b3,this[_0xc1cb65(0x267)]());}[_0xa83ddf(0x267)](){const _0x5b0548=_0xa83ddf;this[_0x5b0548(0x320)][_0x5b0548(0x3fa)]['pipe'](_0x15cb3a(this[_0x5b0548(0x22b)]),_0x1f02e9(_0x87ab52=>{const _0x2218a9=_0x5b0548;if(_0x87ab52){const _0x3c8979=_0x87ab52[_0x2218a9(0x303)];return _0x4ffd7b(this[_0x2218a9(0x440)]['getCollabCursors$'](this[_0x2218a9(0x3ff)][_0x2218a9(0x3dd)]),this[_0x2218a9(0x1a4)][_0x2218a9(0x33e)])['pipe'](_0x255c5b(([_0x3c1688,_0x5d5300])=>{const _0x3cb1f2=_0x2218a9,_0x44db21=new Map();return _0x3c1688[_0x3cb1f2(0x3e6)]((_0x1dbcce,_0x2bf8b3)=>{const _0x302cf6=_0x3cb1f2;if(_0x1dbcce['sheetID']===_0x3c8979){const _0x26495a={..._0x1dbcce};_0x26495a['color']=_0x5d5300[_0x1dbcce['color']],_0x44db21[_0x302cf6(0x3fb)](_0x2bf8b3,_0x26495a);}}),{'skeleton':_0x87ab52,'cursors':_0x44db21};}));}return _0x2e1ce7({'skeleton':null,'cursors':new Map()});}))[_0x5b0548(0x222)](({skeleton:_0x1e8e67,cursors:_0x38c1ba})=>{const _0x292869=_0x5b0548;this[_0x292869(0x13f)](),_0x1e8e67&&this[_0x292869(0x3a5)](_0x1e8e67,_0x38c1ba);}),this[_0x5b0548(0x320)][_0x5b0548(0x3fa)][_0x5b0548(0x222)](_0xd013d1=>{const _0x4ff92a=_0x5b0548;if(_0xd013d1==null)return;const {skeleton:_0x4125cb}=_0xd013d1,{scene:_0x24e6a1}=this[_0x4ff92a(0x3ff)];_0x24e6a1[_0x4ff92a(0x44f)]['subscribeEvent'](_0x238659(_0x1f1692=>{const _0xf025ee=_0x4ff92a;var _0x2aa66b,_0x85f201;const {offsetX:_0x439efb,offsetY:_0x2ba15a}=_0x1f1692,{x:_0x409cc8,y:_0x104142}=_0x24e6a1[_0xf025ee(0x245)](_0x32bb51[_0xf025ee(0x147)]([_0x439efb,_0x2ba15a])),{scaleX:_0x336b37,scaleY:_0x6d470f}=_0x24e6a1[_0xf025ee(0x2a8)](),_0x4285de=_0x24e6a1['getViewport'](_0x574d50[_0xf025ee(0x17e)]),_0x5e8928=_0x24e6a1['getVpScrollXYInfoByPosToVp'](_0x32bb51[_0xf025ee(0x147)]([_0x409cc8,_0x104142]),_0x4285de),_0x4d84d2=_0x4125cb[_0xf025ee(0x1ad)](_0x439efb,_0x2ba15a,_0x336b37,_0x6d470f,_0x5e8928);((_0x2aa66b=this[_0xf025ee(0x1fe)])==null?void 0x0:_0x2aa66b[_0xf025ee(0x345)])===_0x4d84d2[_0xf025ee(0x345)]&&((_0x85f201=this[_0xf025ee(0x1fe)])==null?void 0x0:_0x85f201['row'])===_0x4d84d2['row']||this[_0xf025ee(0x289)][_0xf025ee(0x3e6)](_0x3b4ae2=>{const _0x528071=_0xf025ee;_0x3b4ae2[_0x528071(0x1d3)](_0x4d84d2);});},0x64));});}[_0xa83ddf(0x3a5)](_0xe6551d,_0x5dd894){const _0x1b2626=_0xa83ddf;var _0x3ba46c;const _0x12f787=(_0x3ba46c=this[_0x1b2626(0x320)]['getCurrent']())==null?void 0x0:_0x3ba46c['skeleton'];if(!_0x12f787)return;const _0x250c73=this['_getSheetObject']();if(!_0x250c73)return;this[_0x1b2626(0x289)][_0x1b2626(0x3e6)](_0x2d5cd5=>{const _0x26f4f8=_0x1b2626;_0x2d5cd5[_0x26f4f8(0x1bd)]();});const {scene:_0x56599d}=_0x250c73,_0x32cc4e=wr(Array[_0x1b2626(0x17d)](_0x5dd894[_0x1b2626(0x172)]()))[_0x1b2626(0x423)](_0x22a63a=>{const _0xd6f434=_0x1b2626,{color:_0x59b6c2,range:_0x41c253,name:_0x3ef97f,selection:_0x5aaee2,sheetID:_0x3398b4}=_0x22a63a,{startColumn:_0x3baa61,startRow:_0x51b1b3,endColumn:_0x1d9307,endRow:_0x14d9b5}=_0x41c253,_0x3a1797=_0x487c58(_0x51b1b3,_0x3baa61,_0x56599d,_0x12f787),_0x34df39=_0x487c58(_0x14d9b5,_0x1d9307,_0x56599d,_0x12f787),{columnHeaderHeightAndMarginTop:_0x164aac}=_0x12f787,{startX:_0xc98839,startY:_0x1930e8}=_0x3a1797,{endX:_0x4abf61,endY:_0x57e013}=_0x34df39,_0x44bc39=_0x4abf61-_0xc98839,_0x2d7a78=_0x57e013-_0x1930e8,_0x337ffc={'labelPosition':_0x1930e8-_0x164aac>=ye?_0xd6f434(0x2ea):_0xd6f434(0x2e8),'sheetID':_0x3398b4,'range':_0x41c253,'color':_0x59b6c2,'name':_0x3ef97f,'selection':_0x5aaee2,'left':_0xc98839,'top':_0x1930e8,'width':_0x44bc39,'height':_0x2d7a78,'evented':!0x1,'zIndex':Pr};return new Rr(_0x3ef97f,_0x337ffc);});_0x56599d[_0x1b2626(0x254)](_0x32cc4e,Cr),this[_0x1b2626(0x289)]=new Set(_0x32cc4e);}['_removeCollabCursors'](){const _0x4041d5=_0xa83ddf;var _0x22263d;(_0x22263d=this['_cursors'])==null||_0x22263d['forEach'](_0x3c6739=>_0x3c6739[_0x4041d5(0x471)]());}[_0xa83ddf(0x1c9)](){const _0x360f4a=_0xa83ddf;return _0x5c1291(this['_context']['unit'],this[_0x360f4a(0x3ff)]);}};Tt=Dr([_t(0x1,_0x2854bc(_0x4ee093)),_t(0x2,_0x2854bc(ge)),_t(0x3,_0x2854bc(_0x356051))],Tt);function wr(_0x31b890){const _0x40e93a=_0xa83ddf,_0x2e75ea=new Map();return _0x31b890[_0x40e93a(0x3e6)](_0x732ee6=>{const _0x407bae=_0x40e93a;if(_0x2e75ea[_0x407bae(0x437)](_0x732ee6[_0x407bae(0x1c1)])){const _0xfdf4fc=_0x2e75ea['get'](_0x732ee6[_0x407bae(0x1c1)]);_0xfdf4fc[_0x407bae(0x1dd)]+=',\x20'+_0x732ee6['name'];}else _0x2e75ea[_0x407bae(0x3fb)](_0x732ee6[_0x407bae(0x1c1)],_0x732ee6);}),Array['from'](_0x2e75ea[_0x40e93a(0x172)]());}var U=function(){const _0x1ce53e=_0xa83ddf;return U=Object[_0x1ce53e(0x21d)]||function(_0x2fd1a2){const _0x5270d1=_0x1ce53e;for(var _0x38587d,_0x41e5b8=0x1,_0xb533f8=arguments['length'];_0x41e5b8<_0xb533f8;_0x41e5b8++){_0x38587d=arguments[_0x41e5b8];for(var _0x930d13 in _0x38587d)Object[_0x5270d1(0x42f)][_0x5270d1(0x196)]['call'](_0x38587d,_0x930d13)&&(_0x2fd1a2[_0x930d13]=_0x38587d[_0x930d13]);}return _0x2fd1a2;},U[_0x1ce53e(0x451)](this,arguments);},Nr=function(_0x1ffa38,_0x22e149){const _0x29e6a0=_0xa83ddf;var _0x3e81b2={};for(var _0x554f9e in _0x1ffa38)Object[_0x29e6a0(0x42f)][_0x29e6a0(0x196)][_0x29e6a0(0x3b3)](_0x1ffa38,_0x554f9e)&&_0x22e149[_0x29e6a0(0x44d)](_0x554f9e)<0x0&&(_0x3e81b2[_0x554f9e]=_0x1ffa38[_0x554f9e]);if(_0x1ffa38!=null&&typeof Object[_0x29e6a0(0x350)]==_0x29e6a0(0x477)){for(var _0x12694b=0x0,_0x554f9e=Object['getOwnPropertySymbols'](_0x1ffa38);_0x12694b<_0x554f9e[_0x29e6a0(0x249)];_0x12694b++)_0x22e149['indexOf'](_0x554f9e[_0x12694b])<0x0&&Object[_0x29e6a0(0x42f)][_0x29e6a0(0x204)]['call'](_0x1ffa38,_0x554f9e[_0x12694b])&&(_0x3e81b2[_0x554f9e[_0x12694b]]=_0x1ffa38[_0x554f9e[_0x12694b]]);}return _0x3e81b2;},kt=_0x1300f6(function(_0x41b1a1,_0x3008c4){const _0x1677b2=_0xa83ddf;var _0x58fb3d=_0x41b1a1[_0x1677b2(0x2fc)],_0x56be58=_0x41b1a1['id'],_0x56d1df=_0x41b1a1['className'],_0x9e5255=_0x41b1a1[_0x1677b2(0x287)],_0x332fa9=Nr(_0x41b1a1,[_0x1677b2(0x2fc),'id','className',_0x1677b2(0x287)]),_0x545fb2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56be58,'\x20')['concat'](_0x56d1df||'')[_0x1677b2(0x334)](),_0x5e86dd=_0x3deeb2('_'[_0x1677b2(0x28f)](Ur()));return $s(_0x58fb3d,''[_0x1677b2(0x28f)](_0x56be58),{'defIds':_0x58fb3d[_0x1677b2(0x201)],'idSuffix':_0x5e86dd[_0x1677b2(0x382)]},U({'ref':_0x3008c4,'className':_0x545fb2},_0x332fa9),_0x9e5255);});function $s(_0x478579,_0x4bcbc9,_0x595ff7,_0x29a7cb,_0x77b23b){const _0x238db6=_0xa83ddf;return _0xedc958(_0x478579[_0x238db6(0x387)],U(U({'key':_0x4bcbc9},Mr(_0x478579,_0x595ff7,_0x77b23b)),_0x29a7cb),(Ar(_0x478579,_0x595ff7)[_0x238db6(0x2f7)]||[])['map'](function(_0x3d7d0c,_0x5bfe0a){const _0x3badec=_0x238db6;return $s(_0x3d7d0c,''[_0x3badec(0x28f)](_0x4bcbc9,'-')[_0x3badec(0x28f)](_0x478579[_0x3badec(0x387)],'-')['concat'](_0x5bfe0a),_0x595ff7,void 0x0,_0x77b23b);}));}function Mr(_0x327eee,_0x5cfb20,_0x80833){const _0x2c0b02=_0xa83ddf;var _0x348a0e=U({},_0x327eee[_0x2c0b02(0x2ba)]);_0x80833!=null&&_0x80833[_0x2c0b02(0x36c)]&&_0x348a0e[_0x2c0b02(0x23c)]===_0x2c0b02(0x36c)&&(_0x348a0e[_0x2c0b02(0x23c)]=_0x80833['colorChannel1']);var _0x5773b2=_0x5cfb20[_0x2c0b02(0x201)];return!_0x5773b2||_0x5773b2['length']===0x0||(_0x327eee[_0x2c0b02(0x387)]===_0x2c0b02(0x390)&&_0x348a0e[_0x2c0b02(0x1ae)]&&(_0x348a0e[_0x2c0b02(0x1ae)]=_0x348a0e[_0x2c0b02(0x1ae)]+_0x5cfb20[_0x2c0b02(0x34b)]),Object[_0x2c0b02(0x296)](_0x348a0e)[_0x2c0b02(0x3e6)](function(_0x57bf56){const _0x3e0c0c=_0x2c0b02;var _0x9f254=_0x57bf56[0x0],_0x32b785=_0x57bf56[0x1];typeof _0x32b785==_0x3e0c0c(0x240)&&(_0x348a0e[_0x9f254]=_0x32b785[_0x3e0c0c(0x322)](/url\(#(.*)\)/,_0x3e0c0c(0x2ed)['concat'](_0x5cfb20[_0x3e0c0c(0x34b)],')')));})),_0x348a0e;}function Ar(_0x53f531,_0x2f2354){const _0x567a98=_0xa83ddf;var _0x2182ad,_0x34ec42=_0x2f2354[_0x567a98(0x201)];return!_0x34ec42||_0x34ec42['length']===0x0?_0x53f531:_0x53f531[_0x567a98(0x387)]==='defs'&&(!((_0x2182ad=_0x53f531['children'])===null||_0x2182ad===void 0x0)&&_0x2182ad[_0x567a98(0x249)])?U(U({},_0x53f531),{'children':_0x53f531[_0x567a98(0x2f7)][_0x567a98(0x423)](function(_0x740ab){const _0xe0f045=_0x567a98;return typeof _0x740ab['attrs']['id']==_0xe0f045(0x240)&&_0x34ec42&&_0x34ec42[_0xe0f045(0x44d)](_0x740ab[_0xe0f045(0x2ba)]['id'])>-0x1?U(U({},_0x740ab),{'attrs':U(U({},_0x740ab[_0xe0f045(0x2ba)]),{'id':_0x740ab[_0xe0f045(0x2ba)]['id']+_0x2f2354[_0xe0f045(0x34b)]})}):_0x740ab;})}):_0x53f531;}function Ur(){const _0x582e32=_0xa83ddf;return Math[_0x582e32(0x302)]()[_0x582e32(0x3af)](0x24)[_0x582e32(0x167)](0x2,0x8);}kt[_0xa83ddf(0x26e)]=_0xa83ddf(0x47b);var yr={'tag':_0xa83ddf(0x157),'attrs':{'fill':_0xa83ddf(0x273),'viewBox':_0xa83ddf(0x323),'width':_0xa83ddf(0x3d1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xa83ddf(0x461)},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'stroke':_0xa83ddf(0x3c8),'d':_0xa83ddf(0x300),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa83ddf(0x434),'attrs':{},'children':[{'tag':_0xa83ddf(0x31a),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'fill':_0xa83ddf(0x3da),'d':_0xa83ddf(0x2a2)}}]}]}],'defIds':[_0xa83ddf(0x149)]},js=_0x1300f6(function(_0x44f7e9,_0x522df6){const _0x7d6d0d=_0xa83ddf;return _0xedc958(kt,Object[_0x7d6d0d(0x21d)]({},_0x44f7e9,{'id':_0x7d6d0d(0x3d6),'ref':_0x522df6,'icon':yr}));});js[_0xa83ddf(0x26e)]=_0xa83ddf(0x31c);var Lr={'tag':_0xa83ddf(0x157),'attrs':{'fill':_0xa83ddf(0x273),'viewBox':'0\x200\x2017\x2016','width':_0xa83ddf(0x3d1),'height':_0xa83ddf(0x3d1)},'children':[{'tag':'g','attrs':{'clipPath':_0xa83ddf(0x324)},'children':[{'tag':'path','attrs':{'stroke':_0xa83ddf(0x3c8),'d':_0xa83ddf(0x260),'strokeLinecap':_0xa83ddf(0x3cf),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa83ddf(0x434),'attrs':{},'children':[{'tag':_0xa83ddf(0x31a),'attrs':{'id':_0xa83ddf(0x198)},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'fill':_0xa83ddf(0x3da),'d':_0xa83ddf(0x2a2),'transform':'translate(.97)'}}]}]}],'defIds':[_0xa83ddf(0x198)]},xs=_0x1300f6(function(_0x5a7079,_0x4c5bcd){const _0x4d9c9c=_0xa83ddf;return _0xedc958(kt,Object['assign']({},_0x5a7079,{'id':_0x4d9c9c(0x1a1),'ref':_0x4c5bcd,'icon':Lr}));});xs[_0xa83ddf(0x26e)]=_0xa83ddf(0x368);const $r=_0xa83ddf(0x1ca),jr='univer-online-status-title',xr='univer-online-status',Hr='univer-online',kr='univer-offline',De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x9e269){const _0xe8d0a1=_0xa83ddf;switch(_0x9e269){case P[_0xe8d0a1(0x42e)]:return _0xe8d0a1(0x306);case P[_0xe8d0a1(0x25f)]:return'collabStatus.conflict';case P[_0xe8d0a1(0x464)]:return _0xe8d0a1(0x2d8);case P[_0xe8d0a1(0x3f5)]:return _0xe8d0a1(0x45b);case P['PENDING']:case P['AWAITING']:case P['AWAITING_WITH_PENDING']:return _0xe8d0a1(0x2a0);case P['SYNCED']:return'collabStatus.synced';}}function Br(_0x27e7ae){const _0x1b07f2=_0xa83ddf,{status$:_0x37a7a0}=_0x27e7ae,_0x48cf04=_0x26cb93(_0x37a7a0,P[_0x1b07f2(0x3f5)]),_0x5b88f0=_0x535e2e(_0x501416),_0x27176d=_0x48cf04!==P[_0x1b07f2(0x42e)],_0x991319=_0x5b88f0['t'](Vr(_0x48cf04)),_0x3bd884=_0x46f863(De[_0x1b07f2(0x16e)],{[De[_0x1b07f2(0x410)]]:_0x27176d,[De[_0x1b07f2(0x2a5)]]:!_0x27176d}),_0x53b52f=_0x27176d?_0x58584e[_0x1b07f2(0x2ff)](xs,null):_0x58584e['createElement'](js,null);return _0x58584e[_0x1b07f2(0x2ff)](_0x1b07f2(0x15d),{'className':_0x3bd884},_0x58584e['createElement'](_0x1b07f2(0x15d),{'className':De[_0x1b07f2(0x2c0)]},_0x53b52f),_0x58584e[_0x1b07f2(0x2ff)]('div',{'className':De[_0x1b07f2(0x16c)]},_0x991319));}var Fr=Object[_0xa83ddf(0x3b2)],Wr=Object['getOwnPropertyDescriptor'],Gr=(_0x19bab9,_0x4afff1,_0x19a291,_0x316327)=>{const _0x47a21f=_0xa83ddf;for(var _0x41389a=_0x316327>0x1?void 0x0:_0x316327?Wr(_0x4afff1,_0x19a291):_0x4afff1,_0x40f3c3=_0x19bab9[_0x47a21f(0x249)]-0x1,_0x469413;_0x40f3c3>=0x0;_0x40f3c3--)(_0x469413=_0x19bab9[_0x40f3c3])&&(_0x41389a=(_0x316327?_0x469413(_0x4afff1,_0x19a291,_0x41389a):_0x469413(_0x41389a))||_0x41389a);return _0x316327&&_0x41389a&&Fr(_0x4afff1,_0x19a291,_0x41389a),_0x41389a;},$e=(_0x169fec,_0x36d57d)=>(_0x45af46,_0x144e8a)=>_0x36d57d(_0x45af46,_0x144e8a,_0x169fec);let ke=class extends _0x54b342{constructor(_0x2a034f,_0x4d757f,_0x41ca37,_0x165d29){const _0x21598c=_0xa83ddf;super(),_(this,'_status$',new _0xbc7543(P['NOT_COLLAB'])),(this[_0x21598c(0x44a)]=_0x2a034f,this[_0x21598c(0x206)]=_0x4d757f,this[_0x21598c(0x1ef)]=_0x41ca37,this[_0x21598c(0x177)]=_0x165d29,this[_0x21598c(0x3f7)](),this[_0x21598c(0x373)]());}[_0xa83ddf(0x3f7)](){const _0x1c214e=_0xa83ddf;this[_0x1c214e(0x46f)](this['_uiPartsService']['registerComponent'](_0x31b0de[_0x1c214e(0x259)],()=>_0x1c7a3c(Yr({'status$':this[_0x1c214e(0x211)][_0x1c214e(0x473)]()}),this[_0x1c214e(0x1ef)])));}['_initStatusListener'](){const _0x5f013e=_0xa83ddf;this[_0x5f013e(0x46f)](_0x5bf8dd(this[_0x5f013e(0x44a)][_0x5f013e(0x161)][_0x5f013e(0x2e5)](_0x284752(()=>{const _0x3df7d6=_0x5f013e,_0x5ced15=this[_0x3df7d6(0x44a)]['getFocusedUnit']();return _0x5ced15?this['_collaborationController'][_0x3df7d6(0x40d)](_0x5ced15[_0x3df7d6(0x27a)]()):_0x2e1ce7(null);}),_0x284752(_0x2fbaa7=>_0x2fbaa7?_0x2fbaa7[_0x5f013e(0x3c1)]:_0x2e1ce7(P[_0x5f013e(0x3f5)])))[_0x5f013e(0x222)](_0x1b5657=>{const _0x19316d=_0x5f013e;this[_0x19316d(0x211)][_0x19316d(0x311)](_0x1b5657);})));}};ke=Gr([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],ke),$e(0x0,_0x1b1ada),$e(0x1,_0x1588cc),$e(0x2,_0x2854bc(_0x28aed1)),$e(0x3,_0x2854bc(Me))],ke);function Yr(_0x1b76d2){const {status$:_0x36f3d1}=_0x1b76d2;return function(){const _0x40a2dc=_0xed79;return _0x58584e[_0x40a2dc(0x2ff)](Br,{'status$':_0x36f3d1});};}const Hs=_0x39166c(_0xa83ddf(0x192));var Kr=Object[_0xa83ddf(0x3b2)],Xr=Object[_0xa83ddf(0x190)],Jr=(_0x264d6f,_0x2b8c0a,_0x531fc3,_0x387505)=>{const _0x1688a3=_0xa83ddf;for(var _0x31c20b=_0x387505>0x1?void 0x0:_0x387505?Xr(_0x2b8c0a,_0x531fc3):_0x2b8c0a,_0x331163=_0x264d6f[_0x1688a3(0x249)]-0x1,_0x308a4f;_0x331163>=0x0;_0x331163--)(_0x308a4f=_0x264d6f[_0x331163])&&(_0x31c20b=(_0x387505?_0x308a4f(_0x2b8c0a,_0x531fc3,_0x31c20b):_0x308a4f(_0x31c20b))||_0x31c20b);return _0x387505&&_0x31c20b&&Kr(_0x2b8c0a,_0x531fc3,_0x31c20b),_0x31c20b;},ue=(_0x59ba90,_0x443146)=>(_0x4dff3e,_0x167f19)=>_0x443146(_0x4dff3e,_0x167f19,_0x59ba90);let Ve=class extends _0x26114b{constructor(_0x2b2cbb,_0x16b3aa,_0x18a5c7,_0xa1a187,_0x39458e,_0x37dbc8){const _0xbf49d=_0xa83ddf;super(),this[_0xbf49d(0x154)]=_0x2b2cbb,this[_0xbf49d(0x33d)]=_0x16b3aa,this['_commandService']=_0x18a5c7,this[_0xbf49d(0x158)]=_0xa1a187,this[_0xbf49d(0x359)]=_0x39458e,_0x37dbc8?_0x37dbc8==null||_0x37dbc8[_0xbf49d(0x3d7)]()[_0xbf49d(0x450)](()=>this[_0xbf49d(0x267)]()):(this[_0xbf49d(0x33d)][_0xbf49d(0x427)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xbf49d(0x267)]());}async['_init'](){const _0x354cad=_0xa83ddf,_0x26c201=this[_0x354cad(0x154)]['getParam']('unit'),_0x47f36d=this[_0x354cad(0x154)][_0x354cad(0x169)](_0x354cad(0x2f9));if(!_0x26c201||!_0x47f36d){this[_0x354cad(0x33d)][_0x354cad(0x427)](_0x354cad(0x226),_0x354cad(0x2a1));return;}switch(Number(_0x47f36d)){case H[_0x354cad(0x2ac)]:{const _0xca335d=await this[_0x354cad(0x28c)](_0x26c201);this['_setupSubUnitSync'](_0xca335d);break;}case H[_0x354cad(0x1f2)]:{await this['_loadDoc'](_0x26c201);break;}default:{this['_logService'][_0x354cad(0x44e)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0xa83ddf(0x41d)](_0x213c42){const _0x4a5e38=_0xa83ddf;await this[_0x4a5e38(0x3c0)](_0x213c42),_0x213c42['activeSheet$'][_0x4a5e38(0x2e5)](_0x4b5283(this['dispose$']))['subscribe'](_0x43f7ab=>{const _0xedbd8c=_0x4a5e38;_0x43f7ab&&this[_0xedbd8c(0x16f)](_0x43f7ab);}),this[_0x4a5e38(0x154)][_0x4a5e38(0x295)][_0x4a5e38(0x2e5)](_0x4b5283(this[_0x4a5e38(0x22b)]))[_0x4a5e38(0x222)](()=>this[_0x4a5e38(0x3c0)](_0x213c42));}[_0xa83ddf(0x16f)](_0x8d057b,_0x312fbe=!0x1){const _0x28187b=_0xa83ddf,_0x83fb2b=this[_0x28187b(0x154)][_0x28187b(0x169)](_0x28187b(0x402));_0x8d057b[_0x28187b(0x205)]()!==_0x83fb2b&&this[_0x28187b(0x154)][_0x28187b(0x429)](_0x28187b(0x402),_0x8d057b['getSheetId'](),_0x312fbe);}async['_updateSubUnitFromURLParams'](_0x2004ce){const _0x4c57e0=_0xa83ddf;var _0x3d1d8a;const _0x29ebed=this[_0x4c57e0(0x154)][_0x4c57e0(0x169)](_0x4c57e0(0x402));if(!_0x29ebed||!_0x2004ce[_0x4c57e0(0x466)](_0x29ebed)){const _0x192295=_0x2004ce[_0x4c57e0(0x38d)]()[0x0],_0x2fd201=_0x2004ce['getSheetBySheetId'](_0x192295);if(!_0x2fd201)return;this['_updateURLWithCurrentState'](_0x2fd201,!0x0),await this['_commandService'][_0x4c57e0(0x318)](_0x488c5e['id'],{'unitId':_0x2004ce['getUnitId'](),'subUnitId':_0x192295});return;}((_0x3d1d8a=_0x2004ce[_0x4c57e0(0x38b)]())==null?void 0x0:_0x3d1d8a[_0x4c57e0(0x205)]())!==_0x29ebed&&await this['_commandService'][_0x4c57e0(0x318)](_0x488c5e['id'],{'unitId':_0x2004ce[_0x4c57e0(0x27a)](),'subUnitId':_0x29ebed});}async['_loadSheet'](_0x53fad0){const _0x658344=_0xa83ddf;let _0x8944a6=0x0;const _0x4b93e9=await this[_0x658344(0x158)][_0x658344(0x392)](_0x53fad0);return _0x4b93e9&&(_0x4b93e9[_0x658344(0x2c5)]||_0x4b93e9[_0x658344(0x43b)][_0x658344(0x249)]!==0x0)&&(_0x8944a6=_0x4b93e9[_0x658344(0x416)]),_0x8944a6===0x0&&this[_0x658344(0x33d)]['debug'](_0x658344(0x226),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x658344(0x359)][_0x658344(0x1f8)](_0x53fad0,_0x8944a6);}async[_0xa83ddf(0x3f1)](_0xe1964){const _0x55aeae=_0xa83ddf;let _0x5efdb2=0x0;const _0x3de08e=await this[_0x55aeae(0x158)]['loadOfflineData'](_0xe1964);return _0x3de08e&&(_0x3de08e[_0x55aeae(0x2c5)]||_0x3de08e[_0x55aeae(0x43b)][_0x55aeae(0x249)]!==0x0)&&(_0x5efdb2=_0x3de08e['rev']),_0x5efdb2===0x0&&this[_0x55aeae(0x33d)][_0x55aeae(0x427)](_0x55aeae(0x226),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x55aeae(0x359)][_0x55aeae(0x1ee)](_0xe1964,_0x5efdb2);}};Ve=Jr([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],Ve),ue(0x0,Hs),ue(0x1,_0x31880b),ue(0x2,_0x291fa9),ue(0x3,_0x2854bc(D)),ue(0x4,_0x2854bc(_0x235fd7)),ue(0x5,_0x36b891(_0x467bd6))],Ve);var zr=Object[_0xa83ddf(0x3b2)],qr=Object[_0xa83ddf(0x190)],Zr=(_0x3253f4,_0x192b81,_0x4f99f,_0xadf492)=>{for(var _0x33aa4d=_0xadf492>0x1?void 0x0:_0xadf492?qr(_0x192b81,_0x4f99f):_0x192b81,_0x579341=_0x3253f4['length']-0x1,_0x2fb7f3;_0x579341>=0x0;_0x579341--)(_0x2fb7f3=_0x3253f4[_0x579341])&&(_0x33aa4d=(_0xadf492?_0x2fb7f3(_0x192b81,_0x4f99f,_0x33aa4d):_0x2fb7f3(_0x33aa4d))||_0x33aa4d);return _0xadf492&&_0x33aa4d&&zr(_0x192b81,_0x4f99f,_0x33aa4d),_0x33aa4d;},hs=(_0x4a4b1f,_0x4f2f26)=>(_0x2b315f,_0x3e5295)=>_0x4f2f26(_0x2b315f,_0x3e5295,_0x4a4b1f);const Qr='DEFAULT_FILE_NAME',eo='Univer';let Be=class extends _0x54b342{constructor(_0x54142e,_0x28b4ff){const _0x52d561=_0xa83ddf;super(),this[_0x52d561(0x44a)]=_0x54142e,this[_0x52d561(0x442)]=_0x28b4ff,this[_0x52d561(0x267)]();}['_init'](){const _0x38cf9e=_0xa83ddf;this[_0x38cf9e(0x46f)](_0x5bf8dd(this['_univerInstanceService'][_0x38cf9e(0x161)]['subscribe'](()=>{const _0x108bc8=_0x38cf9e;var _0x3d6877;const _0x139c0e=this['_univerInstanceService']['getFocusedUnit']();let _0x2a726a=(_0x3d6877=this['_configService'][_0x108bc8(0x436)](Qr))!=null?_0x3d6877:eo;_0x139c0e instanceof _0x5340aa&&(_0x2a726a=_0x139c0e[_0x108bc8(0x1dd)]),document[_0x108bc8(0x3b0)]=_0x2a726a;})));}};Be=Zr([_0x3b619c(_0x13d562['Ready'],Be),hs(0x0,_0x1b1ada),hs(0x1,_0x5e7a12)],Be);var to=Object['defineProperty'],so=Object['getOwnPropertyDescriptor'],io=(_0x3fb01b,_0x236546,_0x5cf9b5,_0x2f8278)=>{const _0x426d9b=_0xa83ddf;for(var _0x112644=_0x2f8278>0x1?void 0x0:_0x2f8278?so(_0x236546,_0x5cf9b5):_0x236546,_0x3f87cc=_0x3fb01b[_0x426d9b(0x249)]-0x1,_0x168f6d;_0x3f87cc>=0x0;_0x3f87cc--)(_0x168f6d=_0x3fb01b[_0x3f87cc])&&(_0x112644=(_0x2f8278?_0x168f6d(_0x236546,_0x5cf9b5,_0x112644):_0x168f6d(_0x112644))||_0x112644);return _0x2f8278&&_0x112644&&to(_0x236546,_0x5cf9b5,_0x112644),_0x112644;},_s=(_0x39ad59,_0x4bab3a)=>(_0x23f276,_0x436fae)=>_0x4bab3a(_0x23f276,_0x436fae,_0x39ad59);let Ot=class{constructor(_0x56e9d6,_0x136cf8){const _0x13cdf7=_0xa83ddf;this[_0x13cdf7(0x442)]=_0x56e9d6,this[_0x13cdf7(0x141)]=_0x136cf8;}async['getUnitOnRev'](_0x477bc7,_0x44cf3b){const _0x549871=_0xa83ddf;var _0x517e6f;const {unitID:_0x4b085d,type:_0x442df9,revision:_0x80ff70=0x0}=_0x44cf3b,_0x3be30b=this[_0x549871(0x179)]()+'/'+_0x442df9+'/unit/'+_0x4b085d+_0x549871(0x176)+_0x80ff70,_0x15e0a9=(await this[_0x549871(0x141)][_0x549871(0x441)](_0x3be30b))['body'],_0x1ae4f5=(_0x517e6f=_0x15e0a9['snapshot'])==null?void 0x0:_0x517e6f[_0x549871(0x152)];if(_0x1ae4f5){const _0x908f48=_0x1ae4f5==null?void 0x0:_0x1ae4f5[_0x549871(0x232)],_0x1de06c=_0x46e75c[_0x549871(0x234)](_0x2a1742(_0x908f48));_0x1ae4f5[_0x549871(0x232)]=_0x1de06c,Object[_0x549871(0x296)](_0x1ae4f5[_0x549871(0x202)])['forEach'](([,_0x22c850])=>{const _0x55419f=_0x549871,_0x587e9b=_0x22c850[_0x55419f(0x232)],_0x413040=_0x46e75c['encode'](_0x2a1742(_0x587e9b));_0x22c850[_0x55419f(0x232)]=_0x413040;});}return _0x15e0a9;}async[_0xa83ddf(0x2bf)](_0x5d973a,_0x51e610){const _0x2e784e=_0xa83ddf,{unitID:_0x55fc28,type:_0x2c07b2,blockID:_0x5fbce9}=_0x51e610,_0x1acad5=this[_0x2e784e(0x3ba)]()+'/'+_0x2c07b2+_0x2e784e(0x247)+_0x55fc28+'/block/'+_0x5fbce9;return(await this['_httpService'][_0x2e784e(0x441)](_0x1acad5))[_0x2e784e(0x214)];}async[_0xa83ddf(0x21e)](_0x1d691b,_0x3bba29){const _0x47eff1=_0xa83ddf,{unitID:_0x3266f3,type:_0x5b8fe0,from:_0x172084,to:_0x4d0fba}=_0x3bba29,_0x5f5d43=this['_getAPIPrefix']()+'/'+_0x5b8fe0+_0x47eff1(0x247)+_0x3266f3+_0x47eff1(0x2aa)+_0x172084+_0x47eff1(0x3be)+_0x4d0fba;return(await this[_0x47eff1(0x141)]['get'](_0x5f5d43))[_0x47eff1(0x214)];}[_0xa83ddf(0x179)](){const _0x3d8044=_0xa83ddf;var _0x13211b;return(_0x13211b=this['_configService'][_0x3d8044(0x436)](hn))!=null?_0x13211b:this[_0x3d8044(0x3ba)]();}[_0xa83ddf(0x3ba)](){const _0x10efe8=_0xa83ddf;var _0x3e0575;return(_0x3e0575=this['_configService'][_0x10efe8(0x436)](an))!=null?_0x3e0575:cn;}async[_0xa83ddf(0x215)](_0x423e55,_0x496a0d){const _0x3382c3=_0xa83ddf,_0x444228='/universer-api/snapshot/'+_0x496a0d[_0x3382c3(0x2f9)]+_0x3382c3(0x247)+_0x496a0d['unitID']+'/resources';return(await this[_0x3382c3(0x141)]['get'](_0x444228,{'params':{'resourceId':JSON['stringify'](_0x496a0d[_0x3382c3(0x37d)])}}))['body'];}[_0xa83ddf(0x1d9)](){const _0x2198d6=_0xa83ddf;throw new Error(_0x2198d6(0x257));}['saveSheetBlock'](){const _0x1bbe46=_0xa83ddf;throw new Error(_0x1bbe46(0x257));}[_0xa83ddf(0x1c5)](){const _0x4daac1=_0xa83ddf;throw new Error(_0x4daac1(0x257));}};Ot=io([_s(0x0,_0x5e7a12),_s(0x1,_0x2854bc(_0x3efcab))],Ot);var no=Object['defineProperty'],ro=Object[_0xa83ddf(0x190)],oo=(_0xcc385f,_0x486810,_0x5304c5,_0x2719c6)=>{const _0x5e2327=_0xa83ddf;for(var _0x5c87bc=_0x2719c6>0x1?void 0x0:_0x2719c6?ro(_0x486810,_0x5304c5):_0x486810,_0x2bff16=_0xcc385f[_0x5e2327(0x249)]-0x1,_0x54b42b;_0x2bff16>=0x0;_0x2bff16--)(_0x54b42b=_0xcc385f[_0x2bff16])&&(_0x5c87bc=(_0x2719c6?_0x54b42b(_0x486810,_0x5304c5,_0x5c87bc):_0x54b42b(_0x5c87bc))||_0x5c87bc);return _0x2719c6&&_0x5c87bc&&no(_0x486810,_0x5304c5,_0x5c87bc),_0x5c87bc;},Pe=(_0x3ee9b0,_0x2376f3)=>(_0x24a23a,_0x5b1932)=>_0x2376f3(_0x24a23a,_0x5b1932,_0x3ee9b0);let Dt=class extends _0x4430ad{constructor(_0x140c6d,_0x1aef43,_0x41b9a7,_0x1cd99e,_0x311769){const _0x2a401a=_0xa83ddf;super(_0x140c6d,_0x1aef43,_0x41b9a7),this[_0x2a401a(0x2ef)]=_0x1cd99e,this[_0x2a401a(0x33d)]=_0x311769;}['transformUndoRedo'](_0x46cddb,_0x14d6fd){const _0x595e28=_0xa83ddf,_0x1df7f9=this['_getUndoStack'](_0x46cddb);if(_0x1df7f9)try{const _0x7a8bb2=this[_0x595e28(0x43a)](_0x1df7f9,_0x14d6fd);this['_substituteUndoStack'](_0x46cddb,_0x7a8bb2);}catch(_0x28e026){this[_0x595e28(0x33d)][_0x595e28(0x44e)](_0x595e28(0x2f3),_0x28e026),this[_0x595e28(0x3ca)](_0x46cddb);}const _0x5ddd49=this['_getRedoStack'](_0x46cddb);if(_0x5ddd49)try{const _0x5f8846=this[_0x595e28(0x43a)](_0x5ddd49,_0x14d6fd);this[_0x595e28(0x448)](_0x46cddb,_0x5f8846);}catch(_0x1bd633){this[_0x595e28(0x33d)]['error'](_0x1bd633),this[_0x595e28(0x1ff)](_0x46cddb);}}[_0xa83ddf(0x3ca)](_0x215acf){const _0x8ade52=_0xa83ddf,_0x5a1b55=this[_0x8ade52(0x248)](_0x215acf);_0x5a1b55&&(_0x5a1b55[_0x8ade52(0x249)]=0x0,this[_0x8ade52(0x288)]());}['_clearRedo'](_0x1e9c81){const _0x29cb86=_0xa83ddf,_0x2f15e1=this[_0x29cb86(0x457)](_0x1e9c81);_0x2f15e1&&(_0x2f15e1[_0x29cb86(0x249)]=0x0,this[_0x29cb86(0x288)]());}['_substituteUndoStack'](_0x357a9b,_0x38210f){const _0x5aa7d6=_0xa83ddf;this[_0x5aa7d6(0x163)][_0x5aa7d6(0x3fb)](_0x357a9b,_0x38210f),this[_0x5aa7d6(0x288)]();}[_0xa83ddf(0x448)](_0x592298,_0x23e4f7){this['_redoStacks']['set'](_0x592298,_0x23e4f7),this['_updateStatus']();}[_0xa83ddf(0x43a)](_0x990136,_0x2f8bd0){const _0x13eb6a=_0xa83ddf,_0x1a1718=[];let _0x59a45a=_0x2f8bd0,_0x4f0110=_0x2f8bd0;for(let _0x285d63=_0x990136['length']-0x1;_0x285d63>=0x0;_0x285d63--){const {unitID:_0x3cc8b3,undoMutations:_0x182a39,redoMutations:_0x40bf66}=_0x990136[_0x285d63],_0x562261=this['_transformService'][_0x13eb6a(0x384)](_0x59a45a,_0x182a39),_0x16ad4f=this[_0x13eb6a(0x2ef)][_0x13eb6a(0x384)](_0x4f0110,_0x40bf66);if(_0x22b0cf(_0x562261)||_0x22b0cf(_0x16ad4f)){this[_0x13eb6a(0x33d)][_0x13eb6a(0x44e)](_0x13eb6a(0x2f3),_0x13eb6a(0x1bf),_0x562261,_0x16ad4f);break;}_0x59a45a=_0x562261[_0x13eb6a(0x227)],_0x4f0110=_0x16ad4f[_0x13eb6a(0x227)],_0x1a1718['push']({'unitID':_0x3cc8b3,'undoMutations':_0x562261[_0x13eb6a(0x145)],'redoMutations':_0x16ad4f['m2Prime']});}return _0x1a1718[_0x13eb6a(0x165)]();}};Dt=oo([Pe(0x0,_0x1b1ada),Pe(0x1,_0x291fa9),Pe(0x2,_0x330f45),Pe(0x3,_0x5b4b40),Pe(0x4,_0x31880b)],Dt);class ao extends _0x26114b{constructor(){const _0x404156=_0xa83ddf;super(),_(this,_0x404156(0x295)),this[_0x404156(0x295)]=_0x78aa37(window,'popstate')[_0x404156(0x2e5)](_0x4b5283(this[_0x404156(0x22b)]),_0x2fa1a3(0x1),_0x3080b0(void 0x0));}[_0xa83ddf(0x429)](_0x100b65,_0xc3a2ba,_0x1bdfb9=!0x1){const _0x38b57d=_0xa83ddf,_0x40fcaa=new URL(window[_0x38b57d(0x140)][_0x38b57d(0x3ed)]);_0x40fcaa[_0x38b57d(0x36d)]['set'](_0x100b65,_0xc3a2ba),_0x1bdfb9?window[_0x38b57d(0x3bf)][_0x38b57d(0x275)]('','',_0x40fcaa[_0x38b57d(0x3af)]()):window[_0x38b57d(0x3bf)]['pushState']('','',_0x40fcaa[_0x38b57d(0x3af)]());}[_0xa83ddf(0x270)](_0x4bce75,_0x50454d=!0x1){const _0xf3ad96=_0xa83ddf,_0x3c3192=new URL(window[_0xf3ad96(0x140)][_0xf3ad96(0x3ed)]);_0x3c3192[_0xf3ad96(0x36d)][_0xf3ad96(0x29c)](_0x4bce75),_0x50454d?window[_0xf3ad96(0x3bf)][_0xf3ad96(0x275)]('','',_0x3c3192[_0xf3ad96(0x3af)]()):window['history'][_0xf3ad96(0x219)]('','',_0x3c3192[_0xf3ad96(0x3af)]());}['getParam'](_0x3e571b){const _0x48def7=_0xa83ddf;var _0x1e8bd8;return(_0x1e8bd8=new URL(window['location']['href'])[_0x48def7(0x36d)][_0x48def7(0x441)](_0x3e571b))!=null?_0x1e8bd8:void 0x0;}}const lt=_0xa83ddf(0x2b7),co=_0xa83ddf(0x31d),ho=_0xa83ddf(0x15b),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0xa83ddf(0x389);class ls{constructor(_0x313eed,_0x4668d3,_0x54e2aa,_0x583694){const _0x13b440=_0xa83ddf;_(this,_0x13b440(0x1a3),[]),_(this,_0x13b440(0x18a),null),_(this,_0x13b440(0x18d),null),_(this,'_anchorDot',null),_(this,_0x13b440(0x1dc),null),_(this,_0x13b440(0x1af),null),(this['_cursor']=_0x313eed,this[_0x13b440(0x2cb)]=_0x4668d3,this['_docSkeleton']=_0x54e2aa,this['_document']=_0x583694,this['_render']());}set[_0xa83ddf(0x1fb)](_0x42c3d5){const _0x5115e5=_0xa83ddf;_0x42c3d5?(this['_anchorDot']&&this[_0x5115e5(0x1d1)]['hide'](),this[_0x5115e5(0x18d)]&&this[_0x5115e5(0x18d)]['show']()):(this[_0x5115e5(0x1d1)]&&this[_0x5115e5(0x1d1)][_0x5115e5(0x178)](),this[_0x5115e5(0x18d)]&&this[_0x5115e5(0x18d)][_0x5115e5(0x1b7)]());}['dispose'](){const _0x4bb6e9=_0xa83ddf;for(const _0x13f1ac of this[_0x4bb6e9(0x1a3)])_0x13f1ac[_0x4bb6e9(0x471)]();this[_0x4bb6e9(0x18d)]&&this[_0x4bb6e9(0x18d)]['dispose'](),this[_0x4bb6e9(0x1d1)]&&this['_anchorDot'][_0x4bb6e9(0x471)](),this[_0x4bb6e9(0x18a)]&&this[_0x4bb6e9(0x18a)][_0x4bb6e9(0x471)](),this[_0x4bb6e9(0x1af)]&&this['_eventUnsubscribe']();}[_0xa83ddf(0x278)](){const _0x523c5f=_0xa83ddf;var _0x180f4a;const {_docSkeleton:_0x4aebc3,_document:_0x27cc07}=this,{color:_0x374ae4,name:_0x2f819d,ranges:_0x5af5d0}=this['_cursor'],_0x6f0f5e=_0x27cc07['getOffsetConfig'](),{docsLeft:_0x16265a,docsTop:_0x2ee57c}=_0x6f0f5e,_0x594fd6=new _0x2ea5cc(_0x6f0f5e,_0x4aebc3);for(const {startOffset:_0x5b3dc8,endOffset:_0x9b6ee,collapsed:_0x43c47c,isActive:_0x1ec84a}of _0x5af5d0){const _0x166717=_0x4aebc3[_0x523c5f(0x46c)](_0x5b3dc8),_0x50b2cb=_0x4aebc3[_0x523c5f(0x46c)](_0x9b6ee);if(_0x1ec84a){const {contentBoxPointGroup:_0x24f9f4}=_0x594fd6['getRangePointData'](_0x50b2cb,_0x50b2cb);if(_0x24f9f4[_0x523c5f(0x249)]===0x0)continue;this[_0x523c5f(0x20a)](_0x374ae4,_0x24f9f4,_0x16265a,_0x2ee57c,_0x2f819d),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x43c47c&&_0x166717&&_0x50b2cb){if(_0x4b651b(_0x166717,_0x50b2cb)){const _0x421bc5=new _0x172ca8(_0x6f0f5e,_0x4aebc3),{pointGroup:_0x2b6244}=(_0x180f4a=_0x421bc5[_0x523c5f(0x2b8)](_0x166717,_0x50b2cb))!=null?_0x180f4a:{};if(_0x2b6244==null||_0x2b6244['length']===0x0)continue;this[_0x523c5f(0x2c9)](_0x374ae4,_0x2b6244,_0x16265a,_0x2ee57c);}else{const {contentBoxPointGroup:_0x47772b}=_0x594fd6[_0x523c5f(0x2b8)](_0x166717,_0x50b2cb);if(_0x47772b[_0x523c5f(0x249)]===0x0)continue;this[_0x523c5f(0x377)](_0x374ae4,_0x47772b,_0x16265a,_0x2ee57c);}}}}[_0xa83ddf(0x20a)](_0x171fe5,_0x4a9331,_0x2849f7,_0x27e79f,_0x5e9e8e){const _0x2ec721=_0xa83ddf,_0x42adec=this[_0x2ec721(0x2e4)](_0x4a9331),{left:_0xb2ce20,top:_0x5e7029,height:_0x4bc41b}=_0x42adec,_0x177a2a=this[_0x2ec721(0x467)](),_0x19db05=lo/_0x177a2a,_0x25673a=new _0x97f8c4(lt+_0x146730['generateRandomId'](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f,'height':_0x4bc41b,'width':_o,'fill':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'strokeWidth':_0x19db05,'stroke':uo,'evented':!0x0});this['_anchor']=_0x25673a,this[_0x2ec721(0x2cb)]['addObject'](_0x25673a,_0x480610);const _0x300364=new _0x97f8c4(lt+_0x146730[_0x2ec721(0x447)](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f-ut/0x2,'height':ut,'width':ut,'fill':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'strokeWidth':0x0,'stroke':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'evented':!0x1});this['_anchorDot']=_0x300364,this['_scene'][_0x2ec721(0x2a4)](_0x300364,_0x480610);const _0x4f5d15=new it(lt+_0x146730['generateRandomId'](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f-ye,'text':_0x5e9e8e,'color':_0x171fe5});this['_textBubble']=_0x4f5d15,this[_0x2ec721(0x2cb)][_0x2ec721(0x2a4)](_0x4f5d15,_0x480610),this[_0x2ec721(0x1fb)]=!0x1;}[_0xa83ddf(0x3bd)](){const _0x4a6644=_0xa83ddf,_0xca690a=this['_anchor'][_0x4a6644(0x367)]['subscribeEvent'](()=>{const _0xf20812=_0x4a6644;this[_0xf20812(0x1fb)]=!0x0;}),_0x3202b7=this['_anchor']['onPointerLeave$'][_0x4a6644(0x2f2)](()=>{const _0x169e93=_0x4a6644;this[_0x169e93(0x1dc)]&&clearTimeout(this[_0x169e93(0x1dc)]),this[_0x169e93(0x1dc)]=setTimeout(()=>{const _0x2b5b86=_0x169e93;this[_0x2b5b86(0x1fb)]=!0x1;},0x7d0);});return()=>{const _0x2d1719=_0x4a6644;_0xca690a[_0x2d1719(0x23d)](),_0x3202b7[_0x2d1719(0x23d)]();};}[_0xa83ddf(0x377)](_0x4c5b26,_0x3c25c0,_0x532e8f,_0x9c7f67){const _0x1faa49=_0xa83ddf,_0x241c49=new _0x57dab2(_0x4c5b26)[_0x1faa49(0x394)](0.2)[_0x1faa49(0x2e3)](),_0xbccf7a=new _0x37879a(co+_0x146730[_0x1faa49(0x447)](we),{'pointsGroup':_0x3c25c0,'fill':_0x241c49||_0x18174b(_0x2cb332[_0x1faa49(0x2ec)],0.2),'left':_0x532e8f,'top':_0x9c7f67,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1faa49(0x1a3)]['push'](_0xbccf7a),this[_0x1faa49(0x2cb)][_0x1faa49(0x2a4)](_0xbccf7a,_0x480610);}[_0xa83ddf(0x2c9)](_0x45b7c0,_0x363835,_0x540f1d,_0x5e8f6c){const _0x3f73bd=_0xa83ddf,_0x398900=new _0x57dab2(_0x45b7c0)[_0x3f73bd(0x394)](0.2)['toRgbString'](),_0x3adf1b=new _0x37879a(ho+_0x146730[_0x3f73bd(0x447)](we),{'pointsGroup':_0x363835,'fill':_0x398900||_0x18174b(_0x2cb332[_0x3f73bd(0x2ec)],0.2),'left':_0x540f1d,'top':_0x5e8f6c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f73bd(0x1a3)][_0x3f73bd(0x14e)](_0x3adf1b),this['_scene'][_0x3f73bd(0x2a4)](_0x3adf1b,_0x480610);}[_0xa83ddf(0x2e4)](_0x270310){const _0x66d9be=_0x270310[0x0],_0x157aae=_0x66d9be[0x0],_0x223e21=_0x66d9be[0x2],{x:_0x203ab2,y:_0x19ee96}=_0x157aae,{x:_0x246a74,y:_0x203e2a}=_0x223e21;return{'left':_0x203ab2,'top':_0x19ee96,'width':_0x246a74-_0x203ab2,'height':_0x203e2a-_0x19ee96};}[_0xa83ddf(0x467)](){const _0x4fb66b=_0xa83ddf,{scaleX:_0x2073b2,scaleY:_0x24eabf}=this[_0x4fb66b(0x2cb)]['getAncestorScale']();return Math[_0x4fb66b(0x366)](_0x2073b2,_0x24eabf);}}var mo=Object[_0xa83ddf(0x3b2)],fo=Object[_0xa83ddf(0x190)],go=(_0x4f2540,_0x1d791d,_0x235f81,_0x1025bc)=>{const _0x255b67=_0xa83ddf;for(var _0x15179b=_0x1025bc>0x1?void 0x0:_0x1025bc?fo(_0x1d791d,_0x235f81):_0x1d791d,_0x191f53=_0x4f2540[_0x255b67(0x249)]-0x1,_0x12ea38;_0x191f53>=0x0;_0x191f53--)(_0x12ea38=_0x4f2540[_0x191f53])&&(_0x15179b=(_0x1025bc?_0x12ea38(_0x1d791d,_0x235f81,_0x15179b):_0x12ea38(_0x15179b))||_0x15179b);return _0x1025bc&&_0x15179b&&mo(_0x1d791d,_0x235f81,_0x15179b),_0x15179b;},je=(_0xd6eb9b,_0x199b11)=>(_0x56b53f,_0x492153)=>_0x199b11(_0x56b53f,_0x492153,_0xd6eb9b);let Fe=class extends _0x26114b{constructor(_0x3ad775,_0x1046d1,_0x3bd4f3,_0x49e842,_0xa95d99){const _0x10d4fe=_0xa83ddf;super(),_(this,_0x10d4fe(0x3a4),[]),_(this,_0x10d4fe(0x289),[]),(this[_0x10d4fe(0x3ff)]=_0x3ad775,this[_0x10d4fe(0x1b2)]=_0x1046d1,this[_0x10d4fe(0x440)]=_0x3bd4f3,this[_0x10d4fe(0x153)]=_0x49e842,this[_0x10d4fe(0x1a4)]=_0xa95d99,this[_0x10d4fe(0x267)]());}[_0xa83ddf(0x267)](){const _0x2a02eb=_0xa83ddf,_0x2bd493=this[_0x2a02eb(0x3ff)][_0x2a02eb(0x3dd)],_0x2a86b5=this['_docSkeletonManagerService'];this[_0x2a02eb(0x46f)](_0x4ffd7b([this['_collabCursorController'][_0x2a02eb(0x1f4)](_0x2bd493),this[_0x2a02eb(0x1a4)][_0x2a02eb(0x33e)]])[_0x2a02eb(0x2e5)](_0x255c5b(([_0x53a82b,_0x38d5f9])=>({'skeleton':_0x2a86b5['getSkeleton'](),'cursors':[..._0x53a82b[_0x2a02eb(0x172)]()]['flatMap'](_0x35a792=>({..._0x35a792,'color':_0x38d5f9[_0x35a792[_0x2a02eb(0x364)]]}))})))[_0x2a02eb(0x222)](_0x4b05da=>{const _0x4ec6d8=_0x2a02eb;if(this[_0x4ec6d8(0x13f)](),_0x4b05da){const {skeleton:_0xfbef33,cursors:_0x5770a5}=_0x4b05da;this[_0x4ec6d8(0x3a5)](_0xfbef33,_0x5770a5);}})),this['_initResize'](),this[_0x2a02eb(0x383)]();}[_0xa83ddf(0x3a5)](_0xcfec6,_0x3d2921){const _0x2f8c9e=_0xa83ddf,{scene:_0x252a2d,mainComponent:_0x4bcdb6}=this[_0x2f8c9e(0x3ff)],_0x174031=_0x3d2921[_0x2f8c9e(0x423)](_0x26415b=>new ls(_0x26415b,_0x252a2d,_0xcfec6,_0x4bcdb6));this['_cursorShapes']=_0x174031,this[_0x2f8c9e(0x289)]=_0x3d2921;}['_refreshCollabCursors'](){const _0x1ed1df=_0xa83ddf;this[_0x1ed1df(0x13f)]();const {scene:_0x14dccb,mainComponent:_0x4a7d6a}=this[_0x1ed1df(0x3ff)],_0xfdd35c=this['_docSkeletonManagerService'][_0x1ed1df(0x376)](),_0x4e3c59=this[_0x1ed1df(0x289)][_0x1ed1df(0x423)](_0x5050c4=>new ls(_0x5050c4,_0x14dccb,_0xfdd35c,_0x4a7d6a));this[_0x1ed1df(0x3a4)]=_0x4e3c59;}['_removeCollabCursors'](){const _0x4da5da=_0xa83ddf;this[_0x4da5da(0x3a4)][_0x4da5da(0x3e6)](_0x5411a8=>_0x5411a8[_0x4da5da(0x471)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2113b0=_0xa83ddf,_0x193487=[_0x5d1a0c['id']];this['disposeWithMe'](this[_0x2113b0(0x153)][_0x2113b0(0x30a)](_0x4333ba=>{const _0x1cecc5=_0x2113b0;_0x193487[_0x1cecc5(0x173)](_0x4333ba['id'])&&_0x4333ba['params'][_0x1cecc5(0x3dd)]===this[_0x1cecc5(0x3ff)][_0x1cecc5(0x3dd)]&&this[_0x1cecc5(0x3b9)]();}));}[_0xa83ddf(0x15e)](){const _0x3dbfeb=_0xa83ddf;this[_0x3dbfeb(0x46f)](_0x4fb823(this[_0x3dbfeb(0x3ff)]['engine'][_0x3dbfeb(0x37a)])[_0x3dbfeb(0x2e5)](_0x4393c3(_0x526553=>_0x526553[_0x3dbfeb(0x2f9)]===_0x2257dd[_0x3dbfeb(0x2ae)]),_0x133efc(0x10))[_0x3dbfeb(0x222)](()=>{const _0x400ffd=_0x3dbfeb;this[_0x400ffd(0x3b9)]();}));}};Fe=go([_0x3b619c(_0x13d562[_0xa83ddf(0x1b6)],Fe),je(0x1,_0x2854bc(_0x4a13e2)),je(0x2,_0x2854bc(ge)),je(0x3,_0x291fa9),je(0x4,_0x2854bc(_0x356051))],Fe);var So=Object[_0xa83ddf(0x3b2)],po=Object[_0xa83ddf(0x190)],vo=(_0x5d35f4,_0x3b6e4e,_0x15c517,_0x3b775e)=>{for(var _0x2868b4=_0x3b775e>0x1?void 0x0:_0x3b775e?po(_0x3b6e4e,_0x15c517):_0x3b6e4e,_0x5d2b5f=_0x5d35f4['length']-0x1,_0x36fd0c;_0x5d2b5f>=0x0;_0x5d2b5f--)(_0x36fd0c=_0x5d35f4[_0x5d2b5f])&&(_0x2868b4=(_0x3b775e?_0x36fd0c(_0x3b6e4e,_0x15c517,_0x2868b4):_0x36fd0c(_0x2868b4))||_0x2868b4);return _0x3b775e&&_0x2868b4&&So(_0x3b6e4e,_0x15c517,_0x2868b4),_0x2868b4;},dt=(_0x2e18ce,_0x3e7d43)=>(_0x413361,_0xf6a2b9)=>_0x3e7d43(_0x413361,_0xf6a2b9,_0x2e18ce);let Qe=class{constructor(_0x9c1906,_0x3b9fd1,_0x208a61){const _0x319b4f=_0xa83ddf;this['_configService']=_0x9c1906,this[_0x319b4f(0x141)]=_0x3b9fd1,this[_0x319b4f(0x472)]=_0x208a61,this[_0x319b4f(0x321)]();}[_0xa83ddf(0x321)](){const _0x3f27a6=_0xa83ddf;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4c4b2d,_0x117f29)=>_0x117f29(_0x4c4b2d)[_0x3f27a6(0x2e5)](_0xf4bbfb(async _0x1d52d9=>{const _0xe5537=_0x3f27a6,_0x5d22aa=_0x1d52d9;if(_0x5d22aa['status']===0x191&&window['confirm'](this[_0xe5537(0x472)]['t'](_0xe5537(0x2d0)))){const _0x28b362=window[_0xe5537(0x32a)](window[_0xe5537(0x140)]['href']);window[_0xe5537(0x140)][_0xe5537(0x3ed)]=this[_0xe5537(0x21c)]()+_0xe5537(0x2d2)+_0x28b362;}return _0x5d22aa;}))});}[_0xa83ddf(0x21c)](){const _0x464bbe=_0xa83ddf;var _0x53abfc;return(_0x53abfc=this[_0x464bbe(0x442)][_0x464bbe(0x436)](Rn))!=null?_0x53abfc:Tn;}};Qe=vo([dt(0x0,_0x5e7a12),dt(0x1,_0x2854bc(_0x3efcab)),dt(0x2,_0x2854bc(_0x501416))],Qe);var Io=Object[_0xa83ddf(0x3b2)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x2c23cb,_0x1d671f,_0x98d216,_0x4c194c)=>{const _0xeadbf=_0xa83ddf;for(var _0x530cc5=_0x4c194c>0x1?void 0x0:_0x4c194c?Eo(_0x1d671f,_0x98d216):_0x1d671f,_0x38b548=_0x2c23cb[_0xeadbf(0x249)]-0x1,_0xea93de;_0x38b548>=0x0;_0x38b548--)(_0xea93de=_0x2c23cb[_0x38b548])&&(_0x530cc5=(_0x4c194c?_0xea93de(_0x1d671f,_0x98d216,_0x530cc5):_0xea93de(_0x530cc5))||_0x530cc5);return _0x4c194c&&_0x530cc5&&Io(_0x1d671f,_0x98d216,_0x530cc5),_0x530cc5;},us=(_0x89d0f6,_0x226e73)=>(_0x5f5564,_0x27e87f)=>_0x226e73(_0x5f5564,_0x27e87f,_0x89d0f6);const bo=_0xa83ddf(0x1f3),Ro='/universer-api/authz';let Pt=class extends _0x54b342{constructor(_0x5c7dd5,_0x48d76b){const _0x1370da=_0xa83ddf;super(),this['_HTTPService']=_0x5c7dd5,this[_0x1370da(0x442)]=_0x48d76b,this['_initMergeInterceptor']();}[_0xa83ddf(0x362)](){const _0x38ddc8=_0xa83ddf,_0x23e083=this;this[_0x38ddc8(0x46f)](this[_0x38ddc8(0x229)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x222d3b({'isMatch'(_0x2af3ca){const _0x54c4d6=_0x38ddc8;var _0x1398f5;if(_0x2af3ca['method']===_0x54c4d6(0x143)&&((_0x1398f5=_0x2af3ca[_0x54c4d6(0x32f)])!=null&&_0x1398f5[_0x54c4d6(0x214)])){const {objectID:_0x23ec9c,objectType:_0x4fb426}=_0x2af3ca[_0x54c4d6(0x32f)]['body']||{};if(!_0x23ec9c||_0x4fb426===void 0x0)return!0x1;const _0x15aa0c=_0x23e083[_0x54c4d6(0x1e4)]()+'/'+_0x4fb426+_0x54c4d6(0x45a)+_0x23ec9c+_0x54c4d6(0x326);if(_0x2af3ca['url']===_0x15aa0c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1d5b7e){var _0x592d3c;return(_0x592d3c=_0x1d5b7e['requestParams'])==null?void 0x0:_0x592d3c['body'];},'mergeParamsToRequest'(_0x2376cc,_0x414071){const _0x1a0bf2=_0x38ddc8,_0x356b9e=_0x23e083[_0x1a0bf2(0x1e4)]()+_0x1a0bf2(0x242),_0x588973=_0x2376cc[_0x1a0bf2(0x2df)]((_0x4037fa,_0x19b101)=>{const _0x42fbac=_0x1a0bf2,{unitID:_0x39d5d7,objectID:_0x566236,objectType:_0x15851a,actions:_0x12b8c2}=_0x19b101;return _0x4037fa[_0x39d5d7]||(_0x4037fa[_0x39d5d7]={}),_0x4037fa[_0x39d5d7][_0x566236]||(_0x4037fa[_0x39d5d7][_0x566236]={'objectID':_0x566236,'objectType':_0x15851a,'actions':[]}),_0x4037fa[_0x39d5d7][_0x566236][_0x42fbac(0x23a)][_0x42fbac(0x14e)](..._0x12b8c2),_0x4037fa;},{}),_0x3fe05e=[];for(const _0x3b86c9 in _0x588973)for(const _0x364216 in _0x588973[_0x3b86c9]){const {actions:_0x25e884,objectType:_0x373fcc}=_0x588973[_0x3b86c9][_0x364216],_0x54efe6=[...new Set(_0x25e884)];_0x3fe05e['push']({'unitID':_0x3b86c9,'objectID':_0x364216,'objectType':_0x373fcc,'actions':_0x54efe6});}return new _0x4f3fd2('POST',_0x356b9e,{'headers':_0x414071[_0x1a0bf2(0x348)],'withCredentials':_0x414071[_0x1a0bf2(0x304)],'responseType':_0x414071[_0x1a0bf2(0x3c6)],'body':{'requests':_0x3fe05e}});}},{'distributeResult'(_0x35202e,_0x53f799){const {objectActions:_0x201820}=_0x35202e;return _0x53f799['map'](_0x2c24bd=>{const _0xc22a88=_0xed79,{unitID:_0x39e649,objectID:_0xf2fa76,actions:_0xf153d2}=_0x2c24bd,_0x2701e2=_0x201820[_0xc22a88(0x31b)](_0x5c6b2d=>_0x5c6b2d[_0xc22a88(0x452)]===_0x39e649&&_0x5c6b2d[_0xc22a88(0x19c)]===_0xf2fa76),_0x302874=_0xf153d2[_0xc22a88(0x423)](_0x24edb8=>_0x2701e2==null?void 0x0:_0x2701e2['actions'][_0xc22a88(0x31b)](_0x2b8145=>_0x2b8145['action']===_0x24edb8))[_0xc22a88(0x19f)](_0x436df0=>!!_0x436df0);return{'config':_0x2c24bd,'result':{'actions':_0x302874,'error':_0x35202e[_0xc22a88(0x44e)]}};});}})}));}[_0xa83ddf(0x1e4)](){const _0x2b15f3=_0xa83ddf;var _0x55919d;return(_0x55919d=this['_configService'][_0x2b15f3(0x436)](bo))!=null?_0x55919d:Ro;}async['create'](_0x58c527){const _0x577dcf=_0xa83ddf,_0x4efe42=this[_0x577dcf(0x1e4)]()+'/'+_0x58c527[_0x577dcf(0x312)]+_0x577dcf(0x26b);return(await this[_0x577dcf(0x229)][_0x577dcf(0x195)](_0x4efe42,{'body':_0x58c527}))['body'][_0x577dcf(0x19c)]||'';}async[_0xa83ddf(0x3d5)](_0x5776c6){const _0x4b27a6=_0xa83ddf,_0x45ed4c=this[_0x4b27a6(0x1e4)]()+_0x4b27a6(0x479);return(await this[_0x4b27a6(0x229)][_0x4b27a6(0x195)](_0x45ed4c,{'body':_0x5776c6}))['body'][_0x4b27a6(0x351)];}async[_0xa83ddf(0x1eb)](_0x11ba76){const _0x1425dd=_0xa83ddf,_0x5e30e7=this[_0x1425dd(0x1e4)]()+'/'+_0x11ba76[_0x1425dd(0x312)]+_0x1425dd(0x45a)+_0x11ba76[_0x1425dd(0x19c)];await this[_0x1425dd(0x229)][_0x1425dd(0x391)](_0x5e30e7,{'body':_0x11ba76});}async[_0xa83ddf(0x1d2)](_0x474b1f){const _0x2b1cc5=_0xa83ddf,_0xe47c79=this['_getAPIPrefixPath']()+'/'+_0x474b1f[_0x2b1cc5(0x312)]+_0x2b1cc5(0x45a)+_0x474b1f[_0x2b1cc5(0x19c)]+_0x2b1cc5(0x326);return(await this[_0x2b1cc5(0x229)][_0x2b1cc5(0x195)](_0xe47c79,{'body':_0x474b1f}))[_0x2b1cc5(0x214)]['actions'];}async[_0xa83ddf(0x1b4)](_0x55e8ed){const _0x2d6ab2=_0xa83ddf,_0x17ab00=this[_0x2d6ab2(0x1e4)]()+'/-/object/-/batch_allowed';return(await this[_0x2d6ab2(0x229)][_0x2d6ab2(0x195)](_0x17ab00,{'body':{'requests':_0x55e8ed}}))[_0x2d6ab2(0x214)][_0x2d6ab2(0x39c)];}async[_0xa83ddf(0x455)](_0x45157f){const _0x158a47=_0xa83ddf,_0x43815e=this['_getAPIPrefixPath']()+'/'+_0x45157f[_0x158a47(0x312)]+'/role',_0x108beb=await this[_0x158a47(0x229)]['post'](_0x43815e,{'body':_0x45157f});return{'roles':_0x108beb[_0x158a47(0x214)]['roles'],'actions':_0x108beb[_0x158a47(0x214)][_0x158a47(0x23a)]};}async[_0xa83ddf(0x329)](_0x2672e2){const _0x575415=_0xa83ddf,_0x43e03a=this[_0x575415(0x1e4)]()+_0x575415(0x20d);await this['_HTTPService'][_0x575415(0x29c)](_0x43e03a,{'params':{'collaboratorID':_0x2672e2[_0x575415(0x2f1)],'objectID':_0x2672e2['objectID'],'unitID':_0x2672e2[_0x575415(0x452)]}});}async[_0xa83ddf(0x3fc)](_0x5892a4){const _0x56fb03=_0xa83ddf,_0x1a207b=this[_0x56fb03(0x1e4)]()+_0x56fb03(0x20d);await this['_HTTPService'][_0x56fb03(0x3ce)](_0x1a207b,{'body':_0x5892a4});}async[_0xa83ddf(0x189)](_0x1867dd){const _0x1d12bf=_0xa83ddf,_0x605e8c=this['_getAPIPrefixPath']()+_0x1d12bf(0x20d);await this['_HTTPService']['post'](_0x605e8c,{'body':_0x1867dd});}async['listCollaborators'](_0x3da8e2){const _0x394a67=_0xa83ddf,_0x3d9abe=this[_0x394a67(0x1e4)]()+_0x394a67(0x20d);return(await this[_0x394a67(0x229)][_0x394a67(0x441)](_0x3d9abe,{'params':{'objectID':_0x3da8e2[_0x394a67(0x19c)],'unitID':_0x3da8e2['unitID']}}))[_0x394a67(0x214)][_0x394a67(0x40f)];}async['putCollaborators'](_0x5a822c){const _0x2e704f=_0xa83ddf,_0x57daf6=this[_0x2e704f(0x1e4)]()+_0x2e704f(0x20d);await this[_0x2e704f(0x229)]['put'](_0x57daf6,{'body':_0x5a822c});}};Pt=Co([us(0x0,_0x2854bc(_0x3efcab)),us(0x1,_0x2854bc(_0x5e7a12))],Pt);var To=Object[_0xa83ddf(0x3b2)],Oo=Object[_0xa83ddf(0x190)],Do=(_0xd596a2,_0x26437c,_0x5175b3,_0xed8e39)=>{const _0x484775=_0xa83ddf;for(var _0x5067be=_0xed8e39>0x1?void 0x0:_0xed8e39?Oo(_0x26437c,_0x5175b3):_0x26437c,_0x4d11eb=_0xd596a2[_0x484775(0x249)]-0x1,_0x38c4cb;_0x4d11eb>=0x0;_0x4d11eb--)(_0x38c4cb=_0xd596a2[_0x4d11eb])&&(_0x5067be=(_0xed8e39?_0x38c4cb(_0x26437c,_0x5175b3,_0x5067be):_0x38c4cb(_0x5067be))||_0x5067be);return _0xed8e39&&_0x5067be&&To(_0x26437c,_0x5175b3,_0x5067be),_0x5067be;},mt=(_0xb6cc8d,_0x3b9b24)=>(_0x4fdeed,_0xd62d3e)=>_0x3b9b24(_0x4fdeed,_0xd62d3e,_0xb6cc8d);const Po=[_0xa83ddf(0x1ce),_0xa83ddf(0x3ad),'image/jpg',_0xa83ddf(0x444),_0xa83ddf(0x1b9)],wo=0x5*0x400*0x400,No=_0xa83ddf(0x33c),Mo=_0xa83ddf(0x199),Ao=_0xa83ddf(0x1e3),Uo=_0xa83ddf(0x268);let wt=class{constructor(_0x4691c0,_0x2319b6,_0x194fbf){const _0x3df184=_0xa83ddf;_(this,_0x3df184(0x235),0x0),_(this,_0x3df184(0x272),new _0x27d684()),_(this,_0x3df184(0x439),this[_0x3df184(0x272)]),_(this,_0x3df184(0x184),new Map()),(this[_0x3df184(0x141)]=_0x4691c0,this[_0x3df184(0x442)]=_0x2319b6,this[_0x3df184(0x44a)]=_0x194fbf);}['setWaitCount'](_0x384595){const _0x4fdff7=_0xa83ddf;this[_0x4fdff7(0x235)]=_0x384595,this['_change$'][_0x4fdff7(0x311)](_0x384595);}[_0xa83ddf(0x2fa)](_0x5e7c5e,_0x3efd7e){const _0x1abbfe=_0xa83ddf;if(_0x3efd7e===_0x10d13d[_0x1abbfe(0x243)]){const _0x5af7e9=new Image();return _0x5af7e9[_0x1abbfe(0x3b5)]=_0x5e7c5e,_0x5af7e9;}return this[_0x1abbfe(0x184)][_0x1abbfe(0x441)](_0x5e7c5e);}[_0xa83ddf(0x255)](_0x5911ba,_0x17950b,_0x5b6b9b){const _0xad980c=_0xa83ddf;_0x17950b===_0x10d13d[_0xad980c(0x243)]||_0x5b6b9b==null||this['_imageSourceCache'][_0xad980c(0x3fb)](_0x5911ba,_0x5b6b9b);}async[_0xa83ddf(0x26a)](_0x1716b5){const _0x3e2804=_0xa83ddf;try{const _0x4845eb=this['_replaceFileID'](this[_0x3e2804(0x358)](),''+_0x1716b5),_0x3f958c=(await this[_0x3e2804(0x141)][_0x3e2804(0x441)](_0x4845eb))[_0x3e2804(0x214)];return _0x3f958c[_0x3e2804(0x44e)]&&_0x3f958c[_0x3e2804(0x44e)][_0x3e2804(0x3ee)]===Ps['OK']?Promise[_0x3e2804(0x405)](_0x3f958c['url']):Promise[_0x3e2804(0x168)](_0x3f958c[_0x3e2804(0x44e)]);}catch(_0x3298bb){return Promise[_0x3e2804(0x168)](_0x3298bb);}}async[_0xa83ddf(0x446)](_0x58a87){const _0x6daf35=_0xa83ddf;let _0x1f76c6='';if(!Po[_0x6daf35(0x173)](_0x58a87[_0x6daf35(0x2f9)]))return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1[_0x6daf35(0x333)]));if(_0x58a87[_0x6daf35(0x41b)]>wo)return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1['ERROR_EXCEED_SIZE']));try{const _0xb4aa6a=new FormData();_0xb4aa6a['append'](_0x6daf35(0x17c),_0x58a87);const _0x243787=this['_univerInstanceService'][_0x6daf35(0x3fd)](),_0x34ca04=_0x243787==null?void 0x0:_0x243787[_0x6daf35(0x27a)]();if(!_0x34ca04)throw new Error('unitId\x20is\x20not\x20found');const _0x1c7e81=this[_0x6daf35(0x2be)]()+_0x6daf35(0x406)+_0x58a87[_0x6daf35(0x41b)][_0x6daf35(0x3af)]()+'&source='+ws[_0x6daf35(0x460)]+_0x6daf35(0x3a9)+encodeURIComponent(_0x34ca04),_0x4a7fff=await(await fetch(_0x1c7e81,{'method':_0x6daf35(0x143),'body':_0xb4aa6a}))[_0x6daf35(0x3cb)]();if(typeof _0x4a7fff[_0x6daf35(0x40a)]!=_0x6daf35(0x240))return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1[_0x6daf35(0x327)]));_0x1f76c6=_0x4a7fff[_0x6daf35(0x40a)];}catch{return this['_decreaseWaiting'](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1['ERROR_IMAGE']));}return new Promise((_0x53b69c,_0x39520d)=>{const _0x590ec7=_0x6daf35,_0xee3d7a=new FileReader();_0xee3d7a['readAsDataURL'](_0x58a87),_0xee3d7a[_0x590ec7(0x305)]=_0x481797=>{const _0xeca859=_0x590ec7;var _0xc4f955;const _0x577bc3=(_0xc4f955=_0x481797[_0xeca859(0x1e0)])==null?void 0x0:_0xc4f955['result'];if(_0x577bc3==null){this[_0xeca859(0x40e)](),_0x39520d(new Error(_0x1f46e1['ERROR_IMAGE']));return;}const _0x3199ec=_0x146730[_0xeca859(0x447)](0x6);_0x53b69c({'imageId':_0x3199ec,'imageSourceType':_0x10d13d['UUID'],'source':_0x1f76c6,'base64Cache':_0x577bc3,'status':_0x1f46e1['SUCCUSS']}),this[_0xeca859(0x40e)]();};});}[_0xa83ddf(0x2be)](){const _0x3eccd2=_0xa83ddf;var _0x47b780;return(_0x47b780=this[_0x3eccd2(0x442)]['getConfig'](No))!=null?_0x47b780:Mo;}[_0xa83ddf(0x358)](){const _0x2fedfc=_0xa83ddf;var _0x42d2c3;return(_0x42d2c3=this[_0x2fedfc(0x442)][_0x2fedfc(0x436)](Ao))!=null?_0x42d2c3:Uo;}[_0xa83ddf(0x3a6)](_0x4a1b90,_0xa61f80){const _0x2bf360=_0xa83ddf;return _0x4a1b90[_0x2bf360(0x322)](_0x2bf360(0x38c),_0xa61f80);}['_decreaseWaiting'](){const _0x57cb8f=_0xa83ddf;this[_0x57cb8f(0x235)]-=0x1,this[_0x57cb8f(0x272)][_0x57cb8f(0x311)](this[_0x57cb8f(0x235)]);}};wt=Do([mt(0x0,_0x2854bc(_0x3efcab)),mt(0x1,_0x5e7a12),mt(0x2,_0x2854bc(_0x1b1ada))],wt);var yo=Object[_0xa83ddf(0x3b2)],Lo=Object[_0xa83ddf(0x190)],$o=(_0x342955,_0x58b163,_0x30c31a,_0x1fdf95)=>{const _0x313fdb=_0xa83ddf;for(var _0xd88495=_0x1fdf95>0x1?void 0x0:_0x1fdf95?Lo(_0x58b163,_0x30c31a):_0x58b163,_0x39be45=_0x342955[_0x313fdb(0x249)]-0x1,_0xe051f1;_0x39be45>=0x0;_0x39be45--)(_0xe051f1=_0x342955[_0x39be45])&&(_0xd88495=(_0x1fdf95?_0xe051f1(_0x58b163,_0x30c31a,_0xd88495):_0xe051f1(_0xd88495))||_0xd88495);return _0x1fdf95&&_0xd88495&&yo(_0x58b163,_0x30c31a,_0xd88495),_0xd88495;},Ne=(_0x280e9d,_0x1b5443)=>(_0x44a151,_0x4fbc1f)=>_0x1b5443(_0x44a151,_0x4fbc1f,_0x280e9d);let We=class extends _0x26114b{constructor(_0x2bf137,_0x4a5bd6,_0xeed18e,_0x2a0375,_0x327d11){const _0xadf093=_0xa83ddf;super(),this[_0xadf093(0x1ef)]=_0x2bf137,this[_0xadf093(0x44a)]=_0x4a5bd6,this[_0xadf093(0x47d)]=_0xeed18e,this[_0xadf093(0x32e)]=_0x2a0375,this[_0xadf093(0x46b)]=_0x327d11,this[_0xadf093(0x22e)](),this[_0xadf093(0x45e)]();}['_initCloseConn'](){const _0x41fc9b=_0xa83ddf,_0x47ec24=async _0x3907a1=>{const _0x4a54d2=_0xed79;(await this[_0x4a54d2(0x32e)][_0x4a54d2(0x2d1)](_0x3907a1))[_0x4a54d2(0x1c6)][_0x4a54d2(0x2e5)](_0x4393c3(_0x5f55e7=>_0x5f55e7['eventID']===_0x4e62f0[_0x4a54d2(0x355)]),_0x15cb3a(this[_0x4a54d2(0x22b)]))[_0x4a54d2(0x222)](_0x2b92b8=>{const _0x37ec8b=_0x4a54d2,_0x28e151=_0x2b92b8,{reason:_0x10542e}=_0x28e151[_0x37ec8b(0x2cf)];this[_0x37ec8b(0x1ef)]['get'](_0x192174)['show']({'type':_0x403ffc[_0x37ec8b(0x1e5)],'content':this['_localeService']['t'](_0x37ec8b(0x3fe))+'('+_0x10542e+')'}),this[_0x37ec8b(0x47d)][_0x37ec8b(0x2c4)](new _0x2efdca(_0x3907a1)['id'],!0x1),this[_0x37ec8b(0x32e)][_0x37ec8b(0x1e9)](_0x3907a1);});};_0x19b764(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x54437b[_0x41fc9b(0x2ac)]),this[_0x41fc9b(0x44a)][_0x41fc9b(0x388)](_0x54437b['UNIVER_DOC']))[_0x41fc9b(0x2e5)](_0x255c5b(_0x14475e=>_0x14475e[_0x41fc9b(0x27a)]()),_0x4393c3(_0x305f83=>!_0xc1669d(_0x305f83)),_0x15cb3a(this['dispose$']))['subscribe'](_0x4802aa=>{_0x47ec24(_0x4802aa);});}['_initUnitPermissionChange'](){const _0x4c08a2=_0xa83ddf,_0x13ac3c=async _0x136435=>{const _0x16fac4=_0xed79;(await this[_0x16fac4(0x32e)][_0x16fac4(0x2d1)](_0x136435))['event$'][_0x16fac4(0x2e5)](_0x4393c3(_0x1322a4=>_0x1322a4[_0x16fac4(0x217)]===_0x4e62f0[_0x16fac4(0x223)]),_0x15cb3a(this[_0x16fac4(0x22b)]))[_0x16fac4(0x222)](_0x386359=>{const _0x206160=_0x16fac4,_0x31c21b=_0x386359,{objectId:_0x137466}=_0x31c21b['data'],_0x1a7417=this[_0x206160(0x1ef)]['get'](_0x174f49);_0x137466===_0x136435?_0x1a7417[_0x206160(0x3cc)](_0x136435):_0x1a7417[_0x206160(0x1b1)](_0x136435,_0x137466);});};_0x19b764(this[_0x4c08a2(0x44a)][_0x4c08a2(0x388)](_0x54437b[_0x4c08a2(0x2ac)]),this[_0x4c08a2(0x44a)]['getTypeOfUnitAdded$'](_0x54437b[_0x4c08a2(0x1f2)]))['pipe'](_0x255c5b(_0x3f0366=>_0x3f0366[_0x4c08a2(0x27a)]()),_0x4393c3(_0x51d9b0=>!_0xc1669d(_0x51d9b0)),_0x15cb3a(this[_0x4c08a2(0x22b)]))[_0x4c08a2(0x222)](_0x424b89=>{_0x13ac3c(_0x424b89);});}};We=$o([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],We),Ne(0x0,_0x2854bc(_0x28aed1)),Ne(0x1,_0x1b1ada),Ne(0x2,_0x524b2d),Ne(0x3,_0x2854bc(pe)),Ne(0x4,_0x2854bc(_0x501416))],We);var ks=Object[_0xa83ddf(0x3b2)],jo=Object['getOwnPropertyDescriptor'],xo=(_0x292b46,_0x45432d,_0x3d39bc)=>_0x45432d in _0x292b46?ks(_0x292b46,_0x45432d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d39bc}):_0x292b46[_0x45432d]=_0x3d39bc,Ho=(_0x101f15,_0x22691d,_0x50985a,_0x2efd0f)=>{const _0x284763=_0xa83ddf;for(var _0x31a66f=_0x2efd0f>0x1?void 0x0:_0x2efd0f?jo(_0x22691d,_0x50985a):_0x22691d,_0x5f0dda=_0x101f15[_0x284763(0x249)]-0x1,_0x3972c5;_0x5f0dda>=0x0;_0x5f0dda--)(_0x3972c5=_0x101f15[_0x5f0dda])&&(_0x31a66f=(_0x2efd0f?_0x3972c5(_0x22691d,_0x50985a,_0x31a66f):_0x3972c5(_0x31a66f))||_0x31a66f);return _0x2efd0f&&_0x31a66f&&ks(_0x22691d,_0x50985a,_0x31a66f),_0x31a66f;},ft=(_0xffbed9,_0xf37317)=>(_0x159138,_0x334764)=>_0xf37317(_0x159138,_0x334764,_0xffbed9),ko=(_0x5256da,_0x1398ec,_0x9c1983)=>xo(_0x5256da,_0x1398ec+'',_0x9c1983);const Vo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Nt=class extends _0x5791fb{constructor(_0x1ca118,_0x119428,_0x1f746a,_0x59e720){const _0xe7c9d1=_0xa83ddf;super(),this[_0xe7c9d1(0x349)]=_0x1ca118,this[_0xe7c9d1(0x33d)]=_0x119428,this[_0xe7c9d1(0x438)]=_0x1f746a,this[_0xe7c9d1(0x1ef)]=_0x59e720;}[_0xa83ddf(0x343)](){this['_registerDependencies']();}[_0xa83ddf(0x403)](){const _0x167e25=_0xa83ddf;this[_0x167e25(0x2ab)]();}[_0xa83ddf(0x29a)](){const _0xd08a46=_0xa83ddf;var _0x32b529,_0x58342b,_0x516779,_0x369786;this[_0xd08a46(0x1ef)][_0xd08a46(0x437)](_0x1e8ca5)&&this[_0xd08a46(0x33d)][_0xd08a46(0x44e)](_0xd08a46(0x285),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3ca1ee=[[_0x1e8ca5,{'useClass':Dt}],[pe],[Ht],[_0x3efcab],[Hs,{'useClass':ao}],[ne],[D],[_0x4a0f72],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0x58342b=(_0x32b529=this[_0xd08a46(0x349)])==null?void 0x0:_0x32b529[_0xd08a46(0x458)])!=null?_0x58342b:vt}],[_0x54f7a8,{'useClass':_0x50ec1f}],[_0x5c5b29,{'useClass':Ot}],[_0x382e20,{'useClass':Pt}],[_0x3a43a5,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x516779=this['_config'])!=null&&_0x516779['enableSingleActiveInstanceLock']&&_0x3ca1ee[_0xd08a46(0x14e)]([tt,{'useClass':Vn}]),_0x3ca1ee=_0x5c52e3(_0x3ca1ee,(_0x369786=this['_config'])==null?void 0x0:_0x369786[_0xd08a46(0x412)]),_0x3ca1ee['forEach'](_0x34a00c=>this[_0xd08a46(0x1ef)]['add'](_0x34a00c)),this[_0xd08a46(0x41c)]();}[_0xa83ddf(0x2ab)](){const _0x176201=_0xa83ddf;this[_0x176201(0x46f)](this[_0x176201(0x438)]['registerRenderModule'](_0x54437b['UNIVER_DOC'],[Fe])),this[_0x176201(0x46f)](this[_0x176201(0x438)][_0x176201(0x1be)](_0x54437b['UNIVER_SHEET'],[Tt]));}[_0xa83ddf(0x41c)](){const _0x460ce2=_0xa83ddf;var _0x51c9a6,_0x2d4e20;this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](_0x3efcab)[_0x460ce2(0x3a1)]({'priority':0x14,'interceptor':_0xcec304({'maxParallel':0x6})}),(_0x51c9a6=this[_0x460ce2(0x349)])!=null&&_0x51c9a6[_0x460ce2(0x19a)]||this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](D)[_0x460ce2(0x301)](),(_0x2d4e20=this[_0x460ce2(0x349)])!=null&&_0x2d4e20[_0x460ce2(0x35e)]&&this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](Qe);}};ko(Nt,_0xa83ddf(0x3bb),Vo),Nt=Ho([_0x3f4163(_0x1e27ff),ft(0x1,_0x31880b),ft(0x2,_0x12e84d),ft(0x3,_0x2854bc(_0x28aed1))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};
|