@univerjs-pro/collaboration-client 0.1.13 → 0.1.16
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/config/config.d.ts +44 -0
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -4
- package/lib/types/index.d.ts +6 -8
- package/lib/types/plugin.d.ts +4 -4
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -7
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -5
- package/lib/types/services/member/member.service.d.ts +9 -3
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +49 -35
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x369344=_0xfefa;(function(_0x25d44c,_0x3a0a4b){const _0xe74c9d=_0xfefa,_0x3d3667=_0x25d44c();while(!![]){try{const _0x589736=parseInt(_0xe74c9d(0x2e6))/0x1+-parseInt(_0xe74c9d(0x379))/0x2+parseInt(_0xe74c9d(0x3b2))/0x3*(parseInt(_0xe74c9d(0x266))/0x4)+-parseInt(_0xe74c9d(0x426))/0x5*(-parseInt(_0xe74c9d(0x271))/0x6)+-parseInt(_0xe74c9d(0x1f0))/0x7*(parseInt(_0xe74c9d(0x1b1))/0x8)+parseInt(_0xe74c9d(0x1e5))/0x9+parseInt(_0xe74c9d(0x30b))/0xa*(-parseInt(_0xe74c9d(0x188))/0xb);if(_0x589736===_0x3a0a4b)break;else _0x3d3667['push'](_0x3d3667['shift']());}catch(_0xeaa507){_0x3d3667['push'](_0x3d3667['shift']());}}}(_0x22b6,0xc7867));var ks=Object[_0x369344(0x235)],$s=(_0x3385ae,_0x37f4ef,_0x5abb45)=>_0x37f4ef in _0x3385ae?ks(_0x3385ae,_0x37f4ef,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5abb45}):_0x3385ae[_0x37f4ef]=_0x5abb45,l=(_0x34db96,_0x1abafe,_0x319158)=>($s(_0x34db96,typeof _0x1abafe!=_0x369344(0x3a2)?_0x1abafe+'':_0x1abafe,_0x319158),_0x319158);import{Disposable as _0x1bbf2c,toDisposable as _0xd3a753,UniverInstanceType as _0x195e2d,IUniverInstanceService as _0x1e6754,DisposableCollection as _0x17acc5,IConfigService as _0xcb4dc7,ILogService as _0x5e199c,ISnapshotServerService as _0xb15e1d,RxDisposable as _0x1f6cf4,LocaleService as _0x122a5b,ILocalStorageService as _0x56feea,Tools as _0x16b7ed,ICommandService as _0x2e73f7,JSONX as _0x597d08,IPermissionService as _0x2657e7,IUndoRedoService as _0x34383f,sequenceExecute as _0x3b0c60,OnLifecycle as _0x3cfe98,LifecycleStages as _0x41440a,CommandType as _0x10679a,Rectangle as _0x2defa9,ThemeService as _0x1851c3,Workbook as _0x261fbb,textEncoder as _0x5a0fb1,b64DecodeUnicode as _0x15cbc3,LocalUndoRedoService as _0x26b2de,IContextService as _0x3daa7a,COLORS as _0x2a1b5f,ColorKit as _0x11cecc,Plugin as _0x1b07a0,IAuthzIoService as _0x3ee45a,mergeOverrideWithDependencies as _0x31fff2}from'@univerjs/core';import{SelectionManagerService as _0x12ef89,SetSelectionsOperation as _0x20fa8e,InsertSheetMutation as _0x4e0868,WorkbookEditablePermission as _0x690418,RefRangeService as _0x5658f4,EffectRefRangId as _0x43f5f2,handleIRemoveRow as _0x663d2b,handleIRemoveCol as _0x137d66,handleMoveRange as _0x318054,handleInsertRow as _0x51d70f,handleInsertRangeMoveRight as _0x3b6994,handleInsertRangeMoveDown as _0x224b57,handleInsertCol as _0x2fb529,handleDeleteRangeMoveUp as _0x18b750,handleDeleteRangeMoveLeft as _0x4aa26a,runRefRangeMutations as _0x45121f,SetWorksheetActivateCommand as _0x36e21d}from'@univerjs/sheets';import{MessageType as _0x1aba92}from'@univerjs/design';import{IBeforeCloseService as _0x29d50d,IMessageService as _0x45f7cf,INotificationService as _0x4eec4b,useObservable as _0x39b1aa,BuiltInUIPart as _0x319785,IUIPartsService as _0x482719}from'@univerjs/ui';import{CollaborationEvent as _0x217d29,parseChangesetToProtocol as _0x1ccc97,RevisionService as _0x4f9324,isTransformMutationFailure as _0xe12b02,isTransformMutationsWithChangesetSuccess as _0x1cf98b,ITransformService as _0x5cdc22,mapDocumentTypeToUniverType as _0x25caf3,isTransformChangesetsSuccess as _0x12c9d2,CompressMutationService as _0x528191,parseProtocolChangeset as _0xc8b712,SnapshotService as _0x557428,isTransformMutationsWithChangesetFailure as _0x5c914b}from'@univerjs-pro/collaboration';import{createIdentifier as _0x519219,Inject as _0x3bdb53,Injector as _0x29e329,Optional as _0x4447c0}from'@wendellhu/redi';import{merge as _0x4de0cc,Subject as _0x36360c,BehaviorSubject as _0x2a5f89,distinctUntilChanged as _0xc9666f,fromEvent as _0x190c51,of as _0x169b33,takeUntil as _0x5f2af8,debounceTime as _0x136cc0,filter as _0xb07331,switchMap as _0x1148ff,combineLatest as _0xf0253e,shareReplay as _0x2d5bca,mapTo as _0x41fdc8,concatMap as _0x1b553f}from'rxjs';import{map as _0x19010f,takeUntil as _0x46656a,take as _0x1cadbd,filter as _0x1aaaf4,delay as _0x33ce7d,shareReplay as _0x55c0ae,switchMap as _0x2b4de3}from'rxjs/operators';import{IMEInputManagerService as _0x2eb9bb,TextSelectionManagerService as _0x1c9a21,serializeTextRange as _0x38b333,DocStateChangeManagerService as _0x2ad533,SetTextSelectionsOperation as _0x130d67,RichTextEditingMutation as _0x398d0b,getDocObject as _0x35a139,DocSkeletonManagerService as _0x4ca2e9}from'@univerjs/docs';import{HTTPService as _0xe9c2a2,WebSocketService as _0x42c558,IHTTPImplementation as _0x1e7960,XHRHTTPImplementation as _0x5ca741,ThresholdInterceptorFactory as _0x437693}from'@univerjs/network';import{ImageSourceType as _0x51fc09,ImageUploadStatusType as _0x4ac7c3,IImageIoService as _0x443a0e}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5a55eb,serializeRangeWithSheet as _0x3b8151}from'@univerjs/engine-formula';import _0x507660 from'lodash/debounce';import{Shape as _0x1377ce,Rect as _0x8391c2,Vector2 as _0x2ce8cf,IRenderManagerService as _0x12e984,NodePositionConvertToCursor as _0x2a5751,getColor as _0x4d3636,TEXT_RANGE_LAYER_INDEX as _0x451223,RegularPolygon as _0x4d3b2d}from'@univerjs/engine-render';import{VIEWPORT_KEY as _0x4b02ee,getCoordByCell as _0x24e2be,getSheetObject as _0x1d153d,SheetSkeletonManagerService as _0xbbb3e5}from'@univerjs/sheets-ui';import{useDependency as _0x2732fc,connectInjector as _0x3f045f}from'@wendellhu/redi/react-bindings';import _0x11b04c,{forwardRef as _0x593069,useRef as _0x49d57c,createElement as _0x2a382f}from'react';import _0x65ec29 from'clsx';import{IRemoteInstanceService as _0x365c6e}from'@univerjs/rpc';var ps=(_0x29e4e9=>(_0x29e4e9[_0x29e4e9[_0x369344(0x27e)]=0x0]=_0x369344(0x27e),_0x29e4e9[_0x29e4e9['OK']=0x1]='OK',_0x29e4e9[_0x29e4e9[_0x369344(0x197)]=0x2]='INTERNAL_ERROR',_0x29e4e9[_0x29e4e9[_0x369344(0x1bd)]=0x3]=_0x369344(0x1bd),_0x29e4e9[_0x29e4e9[_0x369344(0x1e2)]=0x4]='NOT_FOUND',_0x29e4e9[_0x29e4e9[_0x369344(0x3f8)]=0x5]=_0x369344(0x3f8),_0x29e4e9[_0x29e4e9[_0x369344(0x2f4)]=0x6]='ALREADY_EXISTS',_0x29e4e9[_0x29e4e9[_0x369344(0x39f)]=0x7]=_0x369344(0x39f),_0x29e4e9[_0x29e4e9[_0x369344(0x278)]=0x8]='TOO_MANY_REQUESTS',_0x29e4e9[_0x29e4e9['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x369344(0x18a),_0x29e4e9[_0x29e4e9[_0x369344(0x158)]=0x1771]=_0x369344(0x158),_0x29e4e9[_0x29e4e9['APPLY_REJECT']=0x1b59]=_0x369344(0x166),_0x29e4e9[_0x29e4e9[_0x369344(0x33c)]=0x1b5a]=_0x369344(0x33c),_0x29e4e9[_0x29e4e9[_0x369344(0x2f6)]=0x1b5b]=_0x369344(0x2f6),_0x29e4e9[_0x29e4e9[_0x369344(0x33e)]=0x1b5c]=_0x369344(0x33e),_0x29e4e9[_0x29e4e9[_0x369344(0x28d)]=0x1f41]=_0x369344(0x28d),_0x29e4e9[_0x29e4e9[_0x369344(0x3d3)]=0x2329]=_0x369344(0x3d3),_0x29e4e9[_0x29e4e9[_0x369344(0x1d9)]=0x232a]=_0x369344(0x1d9),_0x29e4e9[_0x29e4e9[_0x369344(0x39d)]=0x232b]=_0x369344(0x39d),_0x29e4e9[_0x29e4e9[_0x369344(0x3d5)]=0x232c]=_0x369344(0x3d5),_0x29e4e9[_0x29e4e9[_0x369344(0x45a)]=0x232d]=_0x369344(0x45a),_0x29e4e9[_0x29e4e9['UNRECOGNIZED']=-0x1]=_0x369344(0x3fe),_0x29e4e9))(ps||{}),H=(_0x17f6ba=>(_0x17f6ba[_0x17f6ba[_0x369344(0x283)]=0x0]=_0x369344(0x283),_0x17f6ba[_0x17f6ba[_0x369344(0x3c6)]=0x1]='UNIVER_DOC',_0x17f6ba[_0x17f6ba[_0x369344(0x38c)]=0x2]=_0x369344(0x38c),_0x17f6ba[_0x17f6ba[_0x369344(0x2a9)]=0x3]=_0x369344(0x2a9),_0x17f6ba[_0x17f6ba[_0x369344(0x3fe)]=-0x1]=_0x369344(0x3fe),_0x17f6ba))(H||{}),I=(_0x45977a=>(_0x45977a[_0x45977a[_0x369344(0x44d)]=0x0]=_0x369344(0x44d),_0x45977a[_0x45977a[_0x369344(0x290)]=0x1]='HELLO',_0x45977a[_0x45977a[_0x369344(0x1f1)]=0x2]=_0x369344(0x1f1),_0x45977a[_0x45977a['LEAVE']=0x3]=_0x369344(0x25e),_0x45977a[_0x45977a[_0x369344(0x395)]=0x4]='INGEST',_0x45977a[_0x45977a[_0x369344(0x182)]=0x5]=_0x369344(0x182),_0x45977a[_0x45977a[_0x369344(0x28a)]=0x6]=_0x369344(0x28a),_0x45977a[_0x45977a[_0x369344(0x3fe)]=-0x1]=_0x369344(0x3fe),_0x45977a))(I||{}),wt=(_0x53a605=>(_0x53a605[_0x53a605['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x53a605[_0x53a605['OK']=0x1]='OK',_0x53a605[_0x53a605[_0x369344(0x23a)]=0x2]='FAIL',_0x53a605[_0x53a605[_0x369344(0x3fe)]=-0x1]=_0x369344(0x3fe),_0x53a605))(wt||{}),ji=(_0x2eb086,_0x5d112d,_0x34cbb0,_0x11ccb1)=>{const _0xdd51c1=_0x369344;for(var _0x236eb5=_0x5d112d,_0x23dd4a=_0x2eb086[_0xdd51c1(0x3b6)]-0x1,_0x3d9ac7;_0x23dd4a>=0x0;_0x23dd4a--)(_0x3d9ac7=_0x2eb086[_0x23dd4a])&&(_0x236eb5=_0x3d9ac7(_0x236eb5)||_0x236eb5);return _0x236eb5;},Fi=(_0x4c1962,_0x3a1a34)=>(_0x137985,_0x41748c)=>_0x3a1a34(_0x137985,_0x41748c,_0x4c1962);let ee=class extends _0x1bbf2c{constructor(_0x49f34c){const _0xbb6ac5=_0x369344;super(),l(this,_0xbb6ac5(0x466),new Map()),l(this,'_currentUser',null),(this[_0xbb6ac5(0x2dd)]=_0x49f34c,this[_0xbb6ac5(0x1f9)](_0xd3a753(_0x4de0cc(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x195e2d[_0xbb6ac5(0x38c)])['pipe'](_0x19010f(_0x3953c1=>_0x3953c1[_0xbb6ac5(0x2c0)]())),this[_0xbb6ac5(0x2dd)][_0xbb6ac5(0x3fb)](_0x195e2d['UNIVER_DOC'])[_0xbb6ac5(0x2be)](_0x19010f(_0x440058=>_0x440058[_0xbb6ac5(0x2c0)]())),this[_0xbb6ac5(0x2dd)][_0xbb6ac5(0x3fb)](_0x195e2d['UNIVER_SLIDE'])['pipe'](_0x19010f(_0x2789cc=>_0x2789cc[_0xbb6ac5(0x2c0)]())))[_0xbb6ac5(0x3c2)](_0x2b8f05=>this['_removeRoom'](_0x2b8f05)))));}[_0x369344(0x2a2)](_0x20b163){const _0xf809a5=_0x369344;this[_0xf809a5(0x2f0)]=_0x20b163;}[_0x369344(0x2b9)](){return this['_currentUser'];}[_0x369344(0x441)](_0xfd6057,_0x389b3d){const _0x1e116e=_0x369344;let _0x3241b0=this[_0x1e116e(0x466)][_0x1e116e(0x19d)](_0xfd6057);_0x3241b0||(_0x3241b0=new Vi(),this['_roomMembers']['set'](_0xfd6057,_0x3241b0)),_0x3241b0[_0x1e116e(0x441)](_0x389b3d);}[_0x369344(0x2cd)](_0x40d989,_0x40faf9){const _0x558f5a=_0x369344,_0x561d0a=this['_roomMembers'][_0x558f5a(0x19d)](_0x40d989);_0x561d0a&&_0x561d0a[_0x558f5a(0x2cd)](_0x40faf9);}[_0x369344(0x439)](_0x967d0e){const _0x503761=_0x369344;return this['_roomMembers'][_0x503761(0x19d)](_0x967d0e);}['getMember'](_0x1d7518,_0x5b626f){const _0x4e7e24=_0x369344,_0x3fa6e3=this[_0x4e7e24(0x466)][_0x4e7e24(0x19d)](_0x1d7518);if(_0x3fa6e3)return _0x3fa6e3[_0x4e7e24(0x3da)](_0x5b626f);}[_0x369344(0x2ac)](_0x3f004f){const _0x2460e3=_0x369344,_0x227a78=this[_0x2460e3(0x466)][_0x2460e3(0x19d)](_0x3f004f);_0x227a78&&(_0x227a78['dispose'](),this['_roomMembers'][_0x2460e3(0x358)](_0x3f004f));}[_0x369344(0x42d)](){const _0x449068=_0x369344;this[_0x449068(0x466)]['forEach'](_0x195c2f=>_0x195c2f[_0x449068(0x42d)]()),this[_0x449068(0x466)][_0x449068(0x1b6)]();}};ee=ji([Fi(0x0,_0x1e6754)],ee);class Vi extends _0x1bbf2c{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x1ffcdd=_0x369344;this[_0x1ffcdd(0x2e8)][_0x1ffcdd(0x1b6)]();}[_0x369344(0x441)](_0x392a9b){const _0x433e35=_0x369344;this['_members'][_0x433e35(0x24c)](_0x392a9b['memberID'],_0x392a9b);}[_0x369344(0x2cd)](_0x1c0e16){const _0x343585=_0x369344;this[_0x343585(0x2e8)][_0x343585(0x358)](_0x1c0e16);}[_0x369344(0x3da)](_0xa252fa){return this['_members']['get'](_0xa252fa);}}function Bi(_0x5c0a1e){const _0x1a66e7=_0x369344;var _0x265296,_0x1dd47f,_0x274d8a,_0x18f199;const _0x520a59=_0x5c0a1e[_0x1a66e7(0x336)],_0x4ee9c1=JSON['parse'](_0x520a59);switch(_0x4ee9c1[_0x1a66e7(0x3b9)]){case I['HEARTBEAT']:case I[_0x1a66e7(0x290)]:{const _0x59bc24=_0x4ee9c1['infoRsp'];return{..._0x4ee9c1,'data':_0x59bc24,'cmd':_0x4ee9c1['cmd']};}case I[_0x1a66e7(0x1f1)]:{const _0x5d6819=_0x4ee9c1['joinRsp'];return{..._0x4ee9c1,'data':_0x5d6819,'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};}case I[_0x1a66e7(0x28a)]:{const _0x195e4d=_0x4ee9c1[_0x1a66e7(0x3aa)];switch(_0x195e4d[_0x1a66e7(0x1c5)]){case _0x217d29[_0x1a66e7(0x2e7)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x265296=_0x195e4d[_0x1a66e7(0x37f)])==null?void 0x0:_0x265296['cs']},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x3f9)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x1dd47f=_0x195e4d[_0x1a66e7(0x2d1)])==null?void 0x0:_0x1dd47f['cs']},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x430)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x274d8a=_0x195e4d[_0x1a66e7(0x16f)])==null?void 0x0:_0x274d8a['cs']},'cmd':_0x4ee9c1['cmd']};case _0x217d29[_0x1a66e7(0x3c4)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':(_0x18f199=_0x195e4d[_0x1a66e7(0x1e6)])==null?void 0x0:_0x18f199['cs']},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x3d4)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x42c)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29['USERS_ENTER']:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x1e4)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x1ee)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x1cb)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x234)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d['liveShareNewHost']},'cmd':_0x4ee9c1['cmd']};case _0x217d29[_0x1a66e7(0x390)]:case _0x217d29[_0x1a66e7(0x414)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x1ad)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x36e)]:return{..._0x4ee9c1,'data':{..._0x195e4d,'data':_0x195e4d[_0x1a66e7(0x40a)]},'cmd':_0x4ee9c1[_0x1a66e7(0x3b9)]};case _0x217d29[_0x1a66e7(0x3b1)]:return{..._0x4ee9c1,'data':_0x195e4d,'cmd':_0x4ee9c1['cmd']};default:return _0x4ee9c1;}}default:return _0x4ee9c1;}}function Wi(_0x506044){const _0x2d87eb=_0x369344;switch(_0x506044[_0x2d87eb(0x3b9)]){case I['HEARTBEAT']:case I[_0x2d87eb(0x290)]:return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044['cmd'],'routeKey':_0x506044[_0x2d87eb(0x41d)]});case I[_0x2d87eb(0x395)]:{let _0x21301a;switch(_0x506044['data'][_0x2d87eb(0x1c5)]){case _0x217d29['UPDATE_CURSOR']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x3d4)],'updateCursorEvent':_0x506044['data']['data']};break;}case _0x217d29['USERS_LEAVE']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x1ee)],'leaveEvent':_0x506044[_0x2d87eb(0x336)]['data']};break;}case _0x217d29['USERS_ENTER']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x35f)],'joinEvent':_0x506044['data'][_0x2d87eb(0x336)]};break;}case _0x217d29[_0x2d87eb(0x234)]:{_0x21301a={'eventID':_0x217d29['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29[_0x2d87eb(0x414)]:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x414)],'liveShareOperation':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29[_0x2d87eb(0x36e)]:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x36e)],'liveShareTerminate':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29['LIVESHARE_REQUEST_HOST']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x3de)],'liveShareRequestHost':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x336)]};break;}case _0x217d29['LIVESHARE_FETCH_OPERATIONS']:{_0x21301a={'eventID':_0x217d29[_0x2d87eb(0x390)]};break;}default:_0x21301a={'eventID':_0x506044[_0x2d87eb(0x336)][_0x2d87eb(0x1c5)]};}return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044[_0x2d87eb(0x3b9)],'routeKey':_0x506044[_0x2d87eb(0x41d)],'collaMsg':_0x21301a});}case I['JOIN']:return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044[_0x2d87eb(0x3b9)],'routeKey':_0x506044[_0x2d87eb(0x41d)],'joinReq':_0x506044['data']});case I[_0x2d87eb(0x25e)]:return JSON[_0x2d87eb(0x183)]({'cmd':_0x506044[_0x2d87eb(0x3b9)],'routeKey':_0x506044['routeKey'],'leaveReq':_0x506044[_0x2d87eb(0x336)]});default:throw new Error(_0x2d87eb(0x20f));}}var Gi=(_0x52d935,_0x466b45,_0x2585e3,_0x4fbd9b)=>{const _0x24cb9=_0x369344;for(var _0x3dbc7c=_0x466b45,_0x30d9bd=_0x52d935[_0x24cb9(0x3b6)]-0x1,_0x1d9a54;_0x30d9bd>=0x0;_0x30d9bd--)(_0x1d9a54=_0x52d935[_0x30d9bd])&&(_0x3dbc7c=_0x1d9a54(_0x3dbc7c)||_0x3dbc7c);return _0x3dbc7c;},fe=(_0x280b7e,_0x52a036)=>(_0x14667e,_0x54d99e)=>_0x52a036(_0x14667e,_0x54d99e,_0x280b7e);const Is=_0x519219(_0x369344(0x3f7)),Yi=_0x369344(0x38a),Ki='/universer-api/comb';function Xi(_0x8f2b36,_0x2d6e10,_0x424c42){const _0x453c71=_0x369344;return _0x8f2b36+'/'+_0x2d6e10+_0x453c71(0x3c1)+_0x424c42+'/new_changes';}let ut=class{constructor(_0x2d6983,_0x462c0f,_0x2b3500,_0x15021d,_0xf090f6){const _0x402c97=_0x369344;this[_0x402c97(0x258)]=_0x2d6983,this[_0x402c97(0x40b)]=_0x462c0f,this[_0x402c97(0x3f1)]=_0x2b3500,this[_0x402c97(0x2d5)]=_0x15021d,this[_0x402c97(0x30a)]=_0xf090f6;}[_0x369344(0x19c)](_0x5c7d9c){const _0x1ebd6d=_0x369344,_0x40ea01=this[_0x1ebd6d(0x40b)][_0x1ebd6d(0x19c)](_0x5c7d9c);if(!_0x40ea01)throw new Error(_0x1ebd6d(0x18d));const _0x5a913e=new _0x17acc5(),_0x3d7357=new _0x36360c();_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(_0x40ea01['close$'][_0x1ebd6d(0x3c2)](_0x18a1da=>_0x3d7357[_0x1ebd6d(0x43d)](_0x18a1da)))),_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(()=>_0x3d7357[_0x1ebd6d(0x17c)]()));const _0x3e4794=new _0x36360c();_0x5a913e['add'](_0xd3a753(_0x40ea01[_0x1ebd6d(0x41c)][_0x1ebd6d(0x3c2)](_0xda3502=>_0x3e4794[_0x1ebd6d(0x43d)](_0xda3502)))),_0x5a913e['add'](_0xd3a753(()=>_0x3e4794['complete']()));const _0x5e769b=new _0x36360c();_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(_0x40ea01[_0x1ebd6d(0x1a5)][_0x1ebd6d(0x3c2)](_0x545a39=>{const _0x3e4d12=_0x1ebd6d,_0x53ad62=Bi(_0x545a39);_0x5e769b[_0x3e4d12(0x43d)](_0x53ad62);}))),_0x5a913e[_0x1ebd6d(0x1a0)](_0xd3a753(()=>_0x5e769b[_0x1ebd6d(0x17c)]()));const _0xe0c9a7=()=>{const _0x47cc72=_0x1ebd6d;_0x3e4794[_0x47cc72(0x43d)](new Event('connection\x20error')),_0x3d7357[_0x47cc72(0x43d)](new CloseEvent(_0x47cc72(0x286))),_0x573340['close']();},_0x573340={'memberID':'','close$':_0x3d7357[_0x1ebd6d(0x36b)](),'error$':_0x3e4794[_0x1ebd6d(0x36b)](),'open$':_0x40ea01[_0x1ebd6d(0x26c)],'message$':_0x5e769b[_0x1ebd6d(0x36b)](),'send':_0x2e32c2=>{const _0x4bc936=_0x1ebd6d;if(_0x2e32c2[_0x4bc936(0x3b9)]===I[_0x4bc936(0x395)]){if(_0x2e32c2[_0x4bc936(0x336)]['eventID']===_0x217d29[_0x4bc936(0x3d7)]){this[_0x4bc936(0x1da)](_0x573340,_0x2e32c2['data'])[_0x4bc936(0x15f)](_0x55fea3=>{const _0xcf4665=_0x4bc936;this[_0xcf4665(0x2d5)]['error'](_0x55fea3),_0xe0c9a7();});return;}if(_0x2e32c2[_0x4bc936(0x336)][_0x4bc936(0x1c5)]===_0x217d29['FETCH_MISSING']){const _0x214877=_0x2e32c2[_0x4bc936(0x336)];this[_0x4bc936(0x3cf)](_0x214877)['then'](_0x28e2d2=>{const _0x1d1cd9=_0x4bc936;_0x5e769b[_0x1d1cd9(0x43d)]({'cmd':I[_0x1d1cd9(0x28a)],'code':wt['OK'],'routeKey':_0x214877[_0x1d1cd9(0x336)][_0x1d1cd9(0x3cc)],'routeType':'','data':{'eventID':_0x217d29[_0x1d1cd9(0x264)],'data':{'changesets':_0x28e2d2}}});})[_0x4bc936(0x15f)](_0x46367e=>{const _0x1944c7=_0x4bc936;this['_logService'][_0x1944c7(0x284)](_0x46367e),_0xe0c9a7();});return;}}_0x40ea01[_0x4bc936(0x332)](Wi(_0x2e32c2));},'close':()=>{const _0x334ba2=_0x1ebd6d;_0x40ea01[_0x334ba2(0x323)](),_0x5a913e[_0x334ba2(0x42d)]();}};return _0x573340;}async['_submitChangeset'](_0x3f05ed,_0x5a85d4){const _0x5ccf90=_0x369344;var _0x3e5afa;const {unitType:_0x3e5521,unitID:_0x13c106,changeset:_0x5606ab}=_0x5a85d4['data'],_0x5ce21c={'unitID':_0x13c106,'memberID':_0x3f05ed[_0x5ccf90(0x1cf)],'type':_0x3e5521,'changeset':_0x1ccc97(_0x5606ab)},_0xa90bae=Xi((_0x3e5afa=this['_configService'][_0x5ccf90(0x306)](Yi))!=null?_0x3e5afa:Ki,_0x3e5521,_0x13c106);try{await this[_0x5ccf90(0x258)]['post'](_0xa90bae,{'body':_0x5ce21c});}catch(_0x49363e){throw this['_logService'][_0x5ccf90(0x284)]('[CollaborationSession]',_0x5ccf90(0x302)),_0x49363e;}}async[_0x369344(0x3cf)](_0x4be940){const _0x17461d=_0x369344,{unitID:_0x2991de,from:_0x14b6b5,to:_0x36c93b,unitType:_0x56834a}=_0x4be940[_0x17461d(0x336)];return(await this[_0x17461d(0x30a)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x2991de,'type':_0x56834a,'from':_0x14b6b5,'to':_0x36c93b}))[_0x17461d(0x1f4)];}};ut=Gi([fe(0x0,_0x3bdb53(_0xe9c2a2)),fe(0x1,_0x3bdb53(_0x42c558)),fe(0x2,_0xcb4dc7),fe(0x3,_0x5e199c),fe(0x4,_0xb15e1d)],ut);var Es=(_0x855b8,_0xfa9b5c,_0x18350a,_0x1e5d33)=>{const _0x2fc90d=_0x369344;for(var _0x55bcd9=_0xfa9b5c,_0x578dc6=_0x855b8[_0x2fc90d(0x3b6)]-0x1,_0xcf1d0e;_0x578dc6>=0x0;_0x578dc6--)(_0xcf1d0e=_0x855b8[_0x578dc6])&&(_0x55bcd9=_0xcf1d0e(_0x55bcd9)||_0x55bcd9);return _0x55bcd9;},M=(_0x1afcf7,_0x426f08)=>(_0xf2d7ca,_0xc0af85)=>_0x426f08(_0xf2d7ca,_0xc0af85,_0x1afcf7),_e=(_0x43b472=>(_0x43b472[_0x43b472[_0x369344(0x3eb)]=0x0]=_0x369344(0x3eb),_0x43b472[_0x43b472[_0x369344(0x16b)]=0x1]='JOINING',_0x43b472[_0x43b472[_0x369344(0x37b)]=0x2]=_0x369344(0x37b),_0x43b472[_0x43b472[_0x369344(0x3a5)]=0x3]='ONLINE',_0x43b472))(_e||{});const Ji='COLLAB_WEB_SOCKET_URL',zi='ws://127.0.0.1:8000/universer-api/comb/connect',qi=_0x369344(0x31d),Zi=0x7530,Cs=_0x369344(0x35c),bs=0x2710,Qi=_0x369344(0x331),en=0x4e20,tn=_0x369344(0x3ad),sn=0x3;let dt=class extends _0x1f6cf4{constructor(_0x4c1113,_0x1902ef,_0x51be64,_0x3f5649,_0x362ab6,_0x1bb4dd,_0x167922,_0x13ec73){const _0xe277ba=_0x369344;super(),l(this,_0xe277ba(0x3fd),new _0x2a5f89(0x0)),l(this,'sessionStatus$',this[_0xe277ba(0x3fd)][_0xe277ba(0x36b)]()),l(this,_0xe277ba(0x1f6),new _0x36360c()),l(this,_0xe277ba(0x326),this['_event$']['asObservable']()),l(this,_0xe277ba(0x178)),l(this,_0xe277ba(0x347)),l(this,_0xe277ba(0x19e)),(this[_0xe277ba(0x175)]=_0x4c1113,this[_0xe277ba(0x2d5)]=_0x51be64,this['_beforeCloseService']=_0x3f5649,this[_0xe277ba(0x41a)]=_0x362ab6,this[_0xe277ba(0x3f1)]=_0x1bb4dd,this[_0xe277ba(0x24a)]=_0x167922,this[_0xe277ba(0x2c2)]=_0x13ec73,_0x1902ef[_0xe277ba(0x2be)](_0x46656a(this[_0xe277ba(0x351)]))[_0xe277ba(0x3c2)](_0x47f0cd=>{const _0x3345fd=_0xe277ba;var _0xdc6376;typeof _0x47f0cd>'u'||(this['_socket']=_0x47f0cd,_0x47f0cd?(this['_joinRoom'](_0x47f0cd),this[_0x3345fd(0x347)]=this[_0x3345fd(0x178)][_0x3345fd(0x1a5)][_0x3345fd(0x3c2)](_0x22c02f=>{const _0x1fd420=_0x3345fd;_0x22c02f[_0x1fd420(0x41d)]===this[_0x1fd420(0x175)]&&this[_0x1fd420(0x446)](_0x22c02f);})):(this[_0x3345fd(0x3fd)][_0x3345fd(0x43d)](0x2),(_0xdc6376=this[_0x3345fd(0x347)])==null||_0xdc6376['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0xe277ba(0x1f9)](this[_0xe277ba(0x20e)][_0xe277ba(0x3dd)](()=>{const _0x57f241=_0xe277ba;var _0x3e1137;(_0x3e1137=this[_0x57f241(0x178)])==null||_0x3e1137[_0x57f241(0x332)]({'cmd':I[_0x57f241(0x25e)],'data':{'roomID':this[_0x57f241(0x175)]}});})));}get[_0x369344(0x1d4)](){const _0x32c04b=_0x369344;return this[_0x32c04b(0x3fd)][_0x32c04b(0x1ae)]();}[_0x369344(0x1c3)](){const _0x307d57=_0x369344;var _0x3cd445,_0x2ceb70;return(_0x2ceb70=(_0x3cd445=this[_0x307d57(0x178)])==null?void 0x0:_0x3cd445[_0x307d57(0x1cf)])!=null?_0x2ceb70:null;}[_0x369344(0x42d)](){const _0x51f9ec=_0x369344;super[_0x51f9ec(0x42d)](),this['dispose$'][_0x51f9ec(0x43d)](),this[_0x51f9ec(0x351)][_0x51f9ec(0x17c)]();}[_0x369344(0x446)](_0x16ca5d){const _0x5c0286=_0x369344;_0x16ca5d[_0x5c0286(0x3b9)]===I[_0x5c0286(0x1f1)]?this['_onJoinRoomEvent'](_0x16ca5d):_0x16ca5d['cmd']===I[_0x5c0286(0x28a)]&&this[_0x5c0286(0x383)](_0x16ca5d);}[_0x369344(0x25b)](_0x5c7bc4){const _0x5726c5=_0x369344;this['_sessionStatus$']['next'](0x1),_0x5c7bc4[_0x5726c5(0x332)]({'cmd':I[_0x5726c5(0x1f1)],'routeKey':this[_0x5726c5(0x175)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5726c5(0x175)]}]}});}['_onJoinRoomEvent'](_0x140dc5){const _0x459799=_0x369344;var _0x1b67e6;if(_0x140dc5['code']===wt['FAIL']){this['_messageService'][_0x459799(0x1d1)]({'type':_0x1aba92['Warning'],'content':this[_0x459799(0x24a)]['t'](_0x459799(0x1fd))}),this[_0x459799(0x3fd)]['next'](0x2);return;}this[_0x459799(0x3fd)][_0x459799(0x43d)](0x3);const _0xb4a3a7=(_0x1b67e6=_0x140dc5[_0x459799(0x336)][_0x459799(0x2c3)][this['_unitID']])==null?void 0x0:_0x1b67e6['members'];_0xb4a3a7&&_0xb4a3a7[_0x459799(0x33d)](_0x111f4a=>this['_memberService']['updateMember'](this[_0x459799(0x175)],_0x111f4a));}[_0x369344(0x383)](_0x47ea1b){const _0x13d27b=_0x369344;try{const _0x418fc4=_0x47ea1b[_0x13d27b(0x336)];switch(_0x418fc4['eventID']){case _0x217d29['USERS_ENTER']:this[_0x13d27b(0x30d)](_0x418fc4),this[_0x13d27b(0x1f6)]['next'](_0x418fc4);break;case _0x217d29[_0x13d27b(0x1ee)]:this[_0x13d27b(0x1d3)](_0x418fc4),this['_event$'][_0x13d27b(0x43d)](_0x418fc4);break;case _0x217d29[_0x13d27b(0x3f9)]:this[_0x13d27b(0x2cf)](),this[_0x13d27b(0x1f6)]['next'](_0x418fc4);break;case _0x217d29[_0x13d27b(0x3b1)]:this[_0x13d27b(0x2d5)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x13d27b(0x183)](_0x418fc4)),this[_0x13d27b(0x1f6)]['next'](_0x418fc4);break;default:this['_event$']['next'](_0x418fc4);}}catch(_0x57ce9f){this[_0x13d27b(0x2d5)][_0x13d27b(0x284)](_0x57ce9f,_0x47ea1b);}}[_0x369344(0x30d)](_0x1e2721){const _0x4be366=_0x369344;this['_memberService'][_0x4be366(0x441)](this['_unitID'],_0x1e2721[_0x4be366(0x336)]);}[_0x369344(0x1d3)](_0x11eeeb){const _0x216337=_0x369344;this[_0x216337(0x2c2)]['removeMember'](this[_0x216337(0x175)],_0x11eeeb['data']['memberID']);}async[_0x369344(0x332)](_0xb71dc1,_0x9d90ee){const _0x131a73=_0x369344;if(this[_0x131a73(0x1d4)]!==0x3||!this[_0x131a73(0x178)])throw new Error(_0x131a73(0x161));try{_0xb71dc1[_0x131a73(0x1c5)]===_0x217d29[_0x131a73(0x430)]&&this[_0x131a73(0x248)](),this['_socket']['send']({'cmd':I[_0x131a73(0x395)],'routeKey':_0x9d90ee,'routeType':'','data':_0xb71dc1});}catch(_0x28a3d2){this[_0x131a73(0x2d5)][_0x131a73(0x284)](_0x28a3d2);}}[_0x369344(0x248)](){const _0x3eb085=_0x369344;var _0x410a2d;this['_collaborationTimeoutTimer']=window[_0x3eb085(0x348)](()=>{const _0x2234d2=_0x3eb085;this[_0x2234d2(0x19e)]=null,this['_messageService'][_0x2234d2(0x1d1)]({'type':_0x1aba92[_0x2234d2(0x345)],'content':this[_0x2234d2(0x24a)]['t'](_0x2234d2(0x22b))});},(_0x410a2d=this[_0x3eb085(0x3f1)][_0x3eb085(0x306)](Cs))!=null?_0x410a2d:bs);}[_0x369344(0x2cf)](){const _0x231683=_0x369344;this[_0x231683(0x19e)]&&(clearTimeout(this[_0x231683(0x19e)]),this['_collaborationTimeoutTimer']=null);}};dt=Es([M(0x2,_0x5e199c),M(0x3,_0x29d50d),M(0x4,_0x45f7cf),M(0x5,_0xcb4dc7),M(0x6,_0x3bdb53(_0x122a5b)),M(0x7,_0x3bdb53(ee))],dt);let Oe=class extends _0x1bbf2c{constructor(_0x428ed3,_0x5d13d7,_0x44c208,_0x4be676,_0xa1d162,_0x123779){const _0x498385=_0x369344;super(),l(this,_0x498385(0x2ad),new _0x2a5f89(void 0x0)),l(this,_0x498385(0x1ab),new Map()),l(this,_0x498385(0x2f3),new _0x2a5f89(0x0)),l(this,_0x498385(0x29e),this[_0x498385(0x2f3)][_0x498385(0x36b)]()),l(this,_0x498385(0x2d4),!0x1),l(this,_0x498385(0x357)),l(this,_0x498385(0x1fa)),l(this,_0x498385(0x25f)),l(this,_0x498385(0x244),0x0),(this[_0x498385(0x2e0)]=_0x428ed3,this[_0x498385(0x24a)]=_0x5d13d7,this[_0x498385(0x41a)]=_0x44c208,this[_0x498385(0x2d5)]=_0x4be676,this[_0x498385(0x3f1)]=_0xa1d162,this[_0x498385(0x1fe)]=_0x123779);}get[_0x369344(0x178)](){const _0x152f19=_0x369344;return this[_0x152f19(0x2ad)][_0x152f19(0x1ae)]();}[_0x369344(0x42d)](){const _0x1bde6e=_0x369344;super['dispose'](),this[_0x1bde6e(0x1ab)][_0x1bde6e(0x33d)](_0x3249ec=>_0x3249ec[_0x1bde6e(0x42d)]()),this['_sessions']['clear'](),this[_0x1bde6e(0x2f3)]['complete']();}async[_0x369344(0x24d)](_0x47bf25){const _0x22618e=_0x369344;if(this['_sessions']['has'](_0x47bf25))return this[_0x22618e(0x1ab)][_0x22618e(0x19d)](_0x47bf25);this[_0x22618e(0x217)]();const _0x4ebfb1=this['_injector'][_0x22618e(0x191)](dt,_0x47bf25,this[_0x22618e(0x2ad)]['asObservable']());return this[_0x22618e(0x1ab)][_0x22618e(0x24c)](_0x47bf25,_0x4ebfb1),_0x4ebfb1;}[_0x369344(0x398)](){const _0x2be780=_0x369344;var _0x5deee0;const _0x432a93=(_0x5deee0=this[_0x2be780(0x3f1)]['getConfig'](Ji))!=null?_0x5deee0:zi;return this['_socketService'][_0x2be780(0x19c)](_0x432a93);}['_tryEnsureSocket'](){const _0x1142b8=_0x369344;try{const _0x2b4bd0=this['_createSocket']();if(_0x2b4bd0){const _0x199eb9=_0x2b4bd0['send'];_0x2b4bd0[_0x1142b8(0x332)]=_0x1754d7=>(this[_0x1142b8(0x1c9)](),_0x199eb9[_0x1142b8(0x190)](_0x2b4bd0,[_0x1754d7])),_0x2b4bd0['message$'][_0x1142b8(0x3c2)](_0x43ebf3=>this['_onMessage'](_0x2b4bd0,_0x43ebf3)),_0x2b4bd0['error$'][_0x1142b8(0x2be)](_0x1cadbd(0x1))[_0x1142b8(0x3c2)](_0x1a3629=>this[_0x1142b8(0x2d5)][_0x1142b8(0x284)](_0x1142b8(0x338),_0x1a3629)),_0x2b4bd0[_0x1142b8(0x26c)]['pipe'](_0x1cadbd(0x1))[_0x1142b8(0x3c2)](()=>{const _0x141776=_0x1142b8;this[_0x141776(0x156)](_0x2b4bd0);}),_0x2b4bd0[_0x1142b8(0x19a)][_0x1142b8(0x2be)](_0x1cadbd(0x1))[_0x1142b8(0x3c2)](_0x25c434=>{const _0x2a7c04=_0x1142b8;this[_0x2a7c04(0x2d5)]['debug'](_0x2a7c04(0x184),_0x2a7c04(0x305),_0x25c434),this[_0x2a7c04(0x1b9)]();});}}catch(_0x1b4aa8){this[_0x1142b8(0x2d5)][_0x1142b8(0x284)](_0x1b4aa8),this['_onConnectionFailed']();}}[_0x369344(0x156)](_0x567ce2){const _0xba0559=_0x369344;this[_0xba0559(0x2d5)][_0xba0559(0x215)](_0xba0559(0x184),_0xba0559(0x249)),_0x567ce2['send']({'cmd':I[_0xba0559(0x290)]}),this[_0xba0559(0x1c9)]();}[_0x369344(0x1b9)](){const _0x136c09=_0x369344;var _0x4fc738;this[_0x136c09(0x2f3)][_0x136c09(0x43d)](0x2),this[_0x136c09(0x2ad)]['next'](null),this['_clearTimeoutTimer'](),this[_0x136c09(0x209)](),this['_socketReady']=!0x1,this[_0x136c09(0x244)]<((_0x4fc738=this['_configService']['getConfig'](tn))!=null?_0x4fc738:sn)?(this[_0x136c09(0x454)](this[_0x136c09(0x244)]),this[_0x136c09(0x244)]+=0x1):this[_0x136c09(0x41a)][_0x136c09(0x1d1)]({'type':_0x1aba92[_0x136c09(0x345)],'content':this['_localeService']['t'](_0x136c09(0x21b))});}[_0x369344(0x454)](_0x4b1477){const _0x169559=_0x369344;var _0x3bd9ca;const _0x9d423a=((_0x3bd9ca=this[_0x169559(0x3f1)]['getConfig'](Qi))!=null?_0x3bd9ca:en)*0x2**_0x4b1477;this[_0x169559(0x41a)][_0x169559(0x1d1)]({'type':_0x1aba92[_0x169559(0x2bd)],'content':this['_localeService']['t'](_0x169559(0x44e))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x2e0a56=_0x169559;this[_0x2e0a56(0x217)](),clearTimeout(this[_0x2e0a56(0x25f)]),this[_0x2e0a56(0x25f)]=null;},_0x9d423a);}['_rescheduleHeartbeatEvent'](){const _0x2e57de=_0x369344;var _0x21cb06;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x2e57de(0x41f)](),(_0x21cb06=this[_0x2e57de(0x3f1)][_0x2e57de(0x306)](qi))!=null?_0x21cb06:Zi);}[_0x369344(0x41f)](){const _0x329b1b=_0x369344;this['_socket'][_0x329b1b(0x332)]({'cmd':I[_0x329b1b(0x182)]}),this[_0x329b1b(0x28e)]();}['_waitForHeartbeatResponse'](){const _0x30a687=_0x369344;var _0xd60320;this[_0x30a687(0x1fa)]=setTimeout(()=>this[_0x30a687(0x1b9)](),(_0xd60320=this['_configService']['getConfig'](Cs))!=null?_0xd60320:bs);}[_0x369344(0x246)](_0x2f2562,_0x8392ad){const _0x2f67cf=_0x369344,{cmd:_0x5347bd}=_0x8392ad;_0x5347bd===I[_0x2f67cf(0x290)]&&!this[_0x2f67cf(0x2d4)]&&(_0x2f2562[_0x2f67cf(0x1cf)]=_0x8392ad[_0x2f67cf(0x336)][_0x2f67cf(0x1cf)],this[_0x2f67cf(0x2ad)]['next'](_0x2f2562),this['_status$']['next'](0x3),this[_0x2f67cf(0x2d4)]=!0x0),_0x5347bd===I[_0x2f67cf(0x182)]&&this['_clearTimeoutTimer'](),this[_0x2f67cf(0x1c9)]();}['_clearHeartbeatTimer'](){const _0x11970a=_0x369344;this[_0x11970a(0x357)]!=null&&(clearTimeout(this[_0x11970a(0x357)]),this['_sendHeartbeatTimer']=null);}[_0x369344(0x415)](){const _0x3b8aaa=_0x369344;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3b8aaa(0x1fa)]),this[_0x3b8aaa(0x1fa)]=null);}};Oe=Es([M(0x0,_0x3bdb53(_0x29e329)),M(0x1,_0x3bdb53(_0x122a5b)),M(0x2,_0x45f7cf),M(0x3,_0x5e199c),M(0x4,_0xcb4dc7),M(0x5,Is)],Oe);var nn=(_0x48c4ad,_0x523858,_0x3e8aca,_0x371958)=>{for(var _0x201dc4=_0x523858,_0x4db982=_0x48c4ad['length']-0x1,_0x5c17b5;_0x4db982>=0x0;_0x4db982--)(_0x5c17b5=_0x48c4ad[_0x4db982])&&(_0x201dc4=_0x5c17b5(_0x201dc4)||_0x201dc4);return _0x201dc4;},ve=(_0x2f5be8,_0x20bd15)=>(_0x3cb8bc,_0x47f1cf)=>_0x20bd15(_0x3cb8bc,_0x47f1cf,_0x2f5be8);const rn='LOCAL_CACHE_INTERVAL',on=0x3e8;let O=class extends _0x1bbf2c{constructor(_0x55d90b,_0x5a293e,_0x12e5d8,_0xf695b0,_0x354a20){const _0x58e147=_0x369344;super(),l(this,_0x58e147(0x2ae),new Map()),l(this,_0x58e147(0x2d8),new Map()),l(this,_0x58e147(0x360),!0x1),(this['_configService']=_0x55d90b,this[_0x58e147(0x342)]=_0x5a293e,this[_0x58e147(0x20e)]=_0x12e5d8,this[_0x58e147(0x24a)]=_0xf695b0,this[_0x58e147(0x317)]=_0x354a20,this[_0x58e147(0x2a5)]());}[_0x369344(0x2da)](){const _0x372a5f=_0x369344;this[_0x372a5f(0x360)]=!0x0;}[_0x369344(0x1b4)](){const _0x38a166=_0x369344;this[_0x38a166(0x360)]=!0x1;}[_0x369344(0x42d)](){const _0x2046d6=_0x369344;this[_0x2046d6(0x229)]()['then'](()=>super['dispose']());}async[_0x369344(0x1dd)](_0x56fb22){const _0x2ee0e0=_0x369344;return this[_0x2ee0e0(0x360)]?null:this['_localStorageService'][_0x2ee0e0(0x2ba)](Bt(_0x56fb22));}async['saveOfflineData'](_0x37a2b6,_0x340641){const _0x1ce4e5=_0x369344;return!!this[_0x1ce4e5(0x342)][_0x1ce4e5(0x410)](_0x37a2b6,_0x340641);}[_0x369344(0x1f7)](_0x146fc7,_0x5d0bd9,_0xba2ff3,_0x1e161c){const _0x5bc5d2=_0x369344,_0x5933d4=this[_0x5bc5d2(0x317)][_0x5bc5d2(0x21c)](_0x146fc7);this['_cachedData']['set'](_0x146fc7,{'unitID':_0x146fc7,'type':_0x5d0bd9,'awaitingChangeset':_0xba2ff3,'mutations':_0x1e161c,'rev':_0x5933d4}),this[_0x5bc5d2(0x2d8)]['has'](_0x146fc7)||this['_scheduleSaving'](_0x146fc7);}[_0x369344(0x32a)](_0x168902){const _0x2f552e=_0x369344,_0x2d6d9a=this['_getSaveTimeout']();_0x2d6d9a===0x0?this[_0x2f552e(0x35e)](_0x168902):this[_0x2f552e(0x2d8)][_0x2f552e(0x24c)](_0x168902,setTimeout(()=>this[_0x2f552e(0x35e)](_0x168902),_0x2d6d9a));}[_0x369344(0x465)](){const _0x23517c=_0x369344;var _0x43a7af;return(_0x43a7af=this['_configService'][_0x23517c(0x306)](rn))!=null?_0x43a7af:on;}[_0x369344(0x35e)](_0x57e44b){const _0x119893=_0x369344,_0x44e244=this[_0x119893(0x2d8)][_0x119893(0x19d)](_0x57e44b);return _0x44e244!==void 0x0&&window[_0x119893(0x2ee)](_0x44e244),this[_0x119893(0x342)]['setItem'](Bt(_0x57e44b),this[_0x119893(0x2ae)]['get'](_0x57e44b))[_0x119893(0x267)](()=>this[_0x119893(0x2d8)][_0x119893(0x358)](_0x57e44b));}async[_0x369344(0x229)](){const _0x1ac9d6=_0x369344,_0x5ba579=[];this[_0x1ac9d6(0x2d8)][_0x1ac9d6(0x33d)]((_0x31b7bc,_0x14eedb)=>{const _0x3be521=_0x1ac9d6;window[_0x3be521(0x2ee)](_0x31b7bc),_0x5ba579['push'](this[_0x3be521(0x35e)](_0x14eedb)['then'](()=>{const _0x5a6a76=_0x3be521;this[_0x5a6a76(0x2d8)][_0x5a6a76(0x358)](_0x14eedb);}));}),await Promise[_0x1ac9d6(0x1fb)](_0x5ba579);}[_0x369344(0x2a5)](){const _0x288e20=_0x369344;this[_0x288e20(0x1f9)](this['_beforeCloseService'][_0x288e20(0x272)](()=>{const _0x3774fd=_0x288e20;if(this['_saveTaskMap']['size'])return this[_0x3774fd(0x24a)]['t'](_0x3774fd(0x2d2));}));}};O=nn([ve(0x0,_0xcb4dc7),ve(0x1,_0x56feea),ve(0x2,_0x29d50d),ve(0x3,_0x3bdb53(_0x122a5b)),ve(0x4,_0x3bdb53(_0x4f9324))],O);function Bt(_0x339e22){const _0x17417e=_0x369344;return _0x17417e(0x399)+_0x339e22;}const Je=_0x519219(_0x369344(0x1bb));var Rs=(_0xebe460=>(_0xebe460[_0xebe460['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0xebe460[_0xebe460['OTHER_CLIENTS_EDITING']=0x1]=_0x369344(0x26d),_0xebe460))(Rs||{});const Wt=0x7530,Gt=_0x369344(0x2b8);class an extends _0x1bbf2c{constructor(){const _0x5635be=_0x369344;super(),l(this,_0x5635be(0x3ea),_0x16b7ed[_0x5635be(0x3d2)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5635be(0x261),new Map()),l(this,'_heartbeatTimer',null),l(this,'_clearOtherTimers',new Map()),l(this,_0x5635be(0x3a9),new Map()),this['_init']();}[_0x369344(0x42d)](){const _0x3e1add=_0x369344;super[_0x3e1add(0x42d)](),this['_clearOtherTimers'][_0x3e1add(0x33d)]((_0x51fe97,_0xa2ad6f)=>this[_0x3e1add(0x292)](_0xa2ad6f)),this[_0x3e1add(0x25c)]&&window[_0x3e1add(0x381)](this[_0x3e1add(0x25c)]);}[_0x369344(0x42a)](_0x3c1ba9){const _0x408821=_0x369344;return this[_0x408821(0x3a0)](_0x3c1ba9)[_0x408821(0x2be)](_0xc9666f());}['editingUnit'](_0x5849a7){const _0x35db18=_0x369344;this['_selfUnitIDs'][_0x35db18(0x407)]===0x0&&this[_0x35db18(0x24b)](),this[_0x35db18(0x36f)][_0x35db18(0x1a0)](_0x5849a7),this[_0x35db18(0x29d)]({'type':0x0,'memberID':this[_0x35db18(0x3ea)],'unitID':_0x5849a7});}[_0x369344(0x24e)](_0x58c9cc){const _0x472dcb=_0x369344;this[_0x472dcb(0x36f)][_0x472dcb(0x358)](_0x58c9cc),this['_selfUnitIDs']['size']===0x0&&this[_0x472dcb(0x25c)]&&window[_0x472dcb(0x381)](this[_0x472dcb(0x25c)]);}[_0x369344(0x3e0)](){const _0x5bdddd=_0x369344;this[_0x5bdddd(0x1f9)](_0xd3a753(_0x190c51(window,_0x5bdddd(0x453))['subscribe'](_0x34c931=>{const _0x11c926=_0x5bdddd;if(_0x34c931[_0x11c926(0x299)]!==Gt||!_0x34c931['newValue'])return;const _0xa05f19=JSON[_0x11c926(0x2af)](_0x34c931['newValue']);this['_handleEvent'](_0xa05f19);}))),window['addEventListener'](_0x5bdddd(0x467),()=>this[_0x5bdddd(0x29d)]({'type':0x1,'memberID':this[_0x5bdddd(0x3ea)],'unitIDs':Array[_0x5bdddd(0x201)](this[_0x5bdddd(0x36f)])}));}[_0x369344(0x2bf)](_0x198fc5){const _0x5d7c7c=_0x369344;switch(_0x198fc5['type']){case 0x0:this[_0x5d7c7c(0x1c6)](_0x198fc5);break;case 0x1:this[_0x5d7c7c(0x22c)](_0x198fc5);break;case 0x2:this['_handleHeartbeatEvent'](_0x198fc5);break;}}[_0x369344(0x1c6)](_0x46affd){const _0x454ea9=_0x369344,{unitID:_0x2c0853,memberID:_0x21c1f7}=_0x46affd;if(!this[_0x454ea9(0x261)]['has'](_0x2c0853)||!this[_0x454ea9(0x261)][_0x454ea9(0x19d)](_0x2c0853)[_0x454ea9(0x282)](_0x21c1f7)){const _0x57cf9d=this['_unitOnClients'][_0x454ea9(0x19d)](_0x2c0853)||new Set();_0x57cf9d['add'](_0x21c1f7),this['_unitOnClients']['set'](_0x2c0853,_0x57cf9d),this[_0x454ea9(0x3e9)](_0x21c1f7),this[_0x454ea9(0x29d)]({'type':0x0,'memberID':this[_0x454ea9(0x3ea)],'unitID':_0x2c0853});}else this[_0x454ea9(0x3a0)](_0x2c0853)[_0x454ea9(0x43d)](0x1);}['_scheduleClearOtherTimer'](_0x258f9d){const _0x52c640=_0x369344;this['_removeClearOtherTimer'](_0x258f9d);const _0x29e8dd=window[_0x52c640(0x348)](()=>{const _0x15d6b5=_0x52c640;this['_unitOnClients'][_0x15d6b5(0x33d)](_0x2264e6=>{const _0xc53f39=_0x15d6b5;_0x2264e6[_0xc53f39(0x358)](_0x258f9d);});},Wt*0x2);this[_0x52c640(0x198)][_0x52c640(0x24c)](_0x258f9d,_0x29e8dd);}[_0x369344(0x292)](_0x9b0cd2){const _0x54367e=_0x369344;if(this[_0x54367e(0x198)][_0x54367e(0x282)](_0x9b0cd2)){const _0x38ec32=this['_clearOtherTimers'][_0x54367e(0x19d)](_0x9b0cd2);_0x38ec32&&window[_0x54367e(0x2ee)](_0x38ec32),this[_0x54367e(0x198)][_0x54367e(0x24c)](_0x9b0cd2,null);}}[_0x369344(0x22c)](_0x1c7b6e){const _0x3a2080=_0x369344,{memberID:_0x5dfff0,unitIDs:_0x45fea9}=_0x1c7b6e;_0x45fea9[_0x3a2080(0x33d)](_0x1388c8=>{const _0x117c54=_0x3a2080;var _0x3b98db;const _0x5658f8=this['_unitOnClients'][_0x117c54(0x19d)](_0x1388c8);_0x5658f8&&(_0x5658f8[_0x117c54(0x358)](_0x5dfff0),(_0x3b98db=this[_0x117c54(0x3a0)](_0x1388c8))==null||_0x3b98db['next'](_0x5658f8[_0x117c54(0x407)]===0x0?0x0:0x1));}),this[_0x3a2080(0x292)](_0x5dfff0);}[_0x369344(0x2d6)](_0x228329){const _0x1aeb9d=_0x369344;this[_0x1aeb9d(0x3e9)](_0x228329[_0x1aeb9d(0x1cf)]);}['_send'](_0x3fec10){const _0xad2665=_0x369344;localStorage[_0xad2665(0x410)](Gt,JSON[_0xad2665(0x183)](_0x3fec10));}[_0x369344(0x24b)](){const _0x13ee99=_0x369344;this[_0x13ee99(0x25c)]=window[_0x13ee99(0x254)](()=>{const _0x34bbef=_0x13ee99;this[_0x34bbef(0x29d)]({'type':0x2,'memberID':this['_id']});},Wt);}[_0x369344(0x3a0)](_0x50cc79){const _0x4d8374=_0x369344;return this[_0x4d8374(0x3a9)][_0x4d8374(0x282)](_0x50cc79)||this[_0x4d8374(0x3a9)]['set'](_0x50cc79,new _0x2a5f89(0x0)),this[_0x4d8374(0x3a9)]['get'](_0x50cc79);}}var cn=(_0x479989,_0x5e0e44,_0x255661,_0x44f03b)=>{const _0x4af494=_0x369344;for(var _0x3d5e32=_0x5e0e44,_0x2e6c12=_0x479989[_0x4af494(0x3b6)]-0x1,_0x444363;_0x2e6c12>=0x0;_0x2e6c12--)(_0x444363=_0x479989[_0x2e6c12])&&(_0x3d5e32=_0x444363(_0x3d5e32)||_0x3d5e32);return _0x3d5e32;},Yt=(_0x418921,_0x236e43)=>(_0x3a27f7,_0x231b5f)=>_0x236e43(_0x3a27f7,_0x231b5f,_0x418921);let Ve=class{constructor(_0xd0c5b6,_0x3dec14){const _0x44a152=_0x369344;this['_injector']=_0xd0c5b6,this[_0x44a152(0x27b)]=_0x3dec14;}[_0x369344(0x32f)](_0x14277f){const _0xc92b5c=_0x369344;this[_0xc92b5c(0x423)](_0x14277f),this[_0xc92b5c(0x268)](_0x14277f);}[_0x369344(0x257)](_0x49fa97){const _0x214403=_0x369344,_0x2ccb76=this['_injector']['get'](_0x2eb9bb),{redoCache:_0x42c924}=_0x2ccb76[_0x214403(0x437)]();if(_0x42c924[_0x214403(0x3b6)]===0x0)return _0x49fa97;let _0x15e267=_0x16b7ed[_0x214403(0x1aa)](_0x49fa97[_0x214403(0x2e9)][0x0]);for(let _0x3acd2d=0x0;_0x3acd2d<_0x42c924[_0x214403(0x3b6)];_0x3acd2d++){const _0x1c01b={'id':'doc.mutation.rich-text-editing','params':{..._0x42c924[_0x3acd2d]}},_0x25cd26=this['_transformService'][_0x214403(0x364)](_0x15e267,_0x1c01b,!0x1);if(_0xe12b02(_0x25cd26))throw _0x25cd26[_0x214403(0x284)];_0x15e267=_0x25cd26[_0x214403(0x40d)];}return{..._0x16b7ed[_0x214403(0x1aa)](_0x49fa97),'mutations':[_0x15e267]};}[_0x369344(0x423)](_0x1da390){const _0x2d368f=_0x369344,_0x5f4744=this['_injector']['get'](_0x2eb9bb),{undoCache:_0x2bafb9,redoCache:_0x366cae}=_0x5f4744[_0x2d368f(0x437)]();if(_0x2bafb9[_0x2d368f(0x3b6)]===0x0||_0x366cae[_0x2d368f(0x3b6)]===0x0)return;const _0x269593=[],_0x34f7cf=[];let _0x5c73b3=_0x16b7ed[_0x2d368f(0x1aa)](_0x1da390[_0x2d368f(0x2e9)][0x0]),_0x2b6bdc=_0x16b7ed[_0x2d368f(0x1aa)](_0x1da390['mutations'][0x0]);for(let _0x411e9d=_0x2bafb9['length']-0x1;_0x411e9d>=0x0;_0x411e9d--){const _0x51e8cd={'id':_0x2d368f(0x1b2),'params':{..._0x2bafb9[_0x411e9d]}},_0x1cca9d={'id':'doc.mutation.rich-text-editing','params':{..._0x366cae[_0x411e9d]}},_0x3e7934=this['_transformService'][_0x2d368f(0x364)](_0x5c73b3,_0x51e8cd,!0x1),_0x37543b=this[_0x2d368f(0x27b)][_0x2d368f(0x364)](_0x2b6bdc,_0x1cca9d,!0x1);if(_0xe12b02(_0x3e7934))throw _0x3e7934[_0x2d368f(0x284)];if(_0xe12b02(_0x37543b))throw _0x37543b[_0x2d368f(0x284)];_0x269593[_0x2d368f(0x380)](_0x3e7934[_0x2d368f(0x422)][_0x2d368f(0x3fc)]),_0x34f7cf['unshift'](_0x37543b[_0x2d368f(0x422)][_0x2d368f(0x3fc)]),_0x5c73b3=_0x3e7934[_0x2d368f(0x40d)],_0x2b6bdc=_0x37543b[_0x2d368f(0x40d)];}_0x5f4744['setUndoRedoMutationParamsCache']({'undoCache':_0x269593,'redoCache':_0x34f7cf});}[_0x369344(0x268)](_0x138131){const _0x439581=_0x369344,_0x15f3a7=this['_injector'][_0x439581(0x19d)](_0x2eb9bb),_0x410dd2=_0x15f3a7['getActiveRange']();if(_0x410dd2==null)return;const _0x4c2bd4=[{'id':_0x439581(0x1b2),'params':{'unitId':_0x138131[_0x439581(0x3cc)],'actions':null,'textRanges':[_0x410dd2]}}],_0x3a7400=this[_0x439581(0x27b)]['transformMutationsWithChangeset'](_0x138131,_0x4c2bd4);if(!_0x1cf98b(_0x3a7400))throw _0x3a7400[_0x439581(0x284)];const _0x41ce3a=_0x3a7400[_0x439581(0x422)][0x0][_0x439581(0x3fc)][_0x439581(0x369)];Array[_0x439581(0x15c)](_0x41ce3a)&&_0x41ce3a['length']&&_0x15f3a7['setActiveRange'](_0x41ce3a[0x0]);}};Ve=cn([Yt(0x0,_0x3bdb53(_0x29e329)),Yt(0x1,_0x5cdc22)],Ve);function _0x22b6(){const _0x4aa32a=['_sheetTransformSelectionsService','_imageSourceCache','cmd','_startCollaboration','/object','addObjects','_onRemoteACK','getCollabEntity$','min','MoveRangeCommandId','/unit/','subscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CHANGESET_REJ','_redoStacks','UNIVER_DOC','_sheetSkeletonManagerService','replaceState','_replayCachedMutations','transformByState','_textBubble','unitID','unitId','#fff','_fetchMissChangesets','InsertRowCommandId','_substituteRedoStack','generateRandomId','LICENSE_MAX_UNITS_EXCEEDED','UPDATE_CURSOR','LICENSE_EXPORT_SIZE_EXCEEDED','1em','SUBMIT_CHANGESET','Steady','incrementRevForDocument','getMember','_createInitialStateImpl','onPointerEnterObserver','registerOnClose','LIVESHARE_REQUEST_HOST','_change$','_init','toRgbString','_executeRemoteChangeset','AWAITING_WITH_PENDING','objectActions','onSendChangeset','filter','cursorInfo$','_themeService','_scheduleClearOtherTimer','_id','IDLE','removeParam','onlyLocal','_transformRemoteChangesetByIMECache','[CollaborationEntity]','invoke','_configService','_urlService','_getMergeRange','_exhaustRemoteChangesetQueue','_colorIndex','hovered','univer-pro.collaboration-client-socket-service','UNAUTHENTICATED','CHANGESET_ACK','getSelections','getTypeOfUnitDisposed$','params','_sessionStatus$','UNRECOGNIZED','permission.content','values','_roomMembers$','_updateCollabCursors','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getSheetBlock','_labelPosition','_cursorInfo$','size','_remoteChangesetQueue','fetching\x20missing\x20changesets\x20from\x20','liveShareNewHost','_ws','workbook','m1Prime','onSyncEditingCollabCursor','_startSheetCollabCursor','setItem','appendMutation','_getSheetObject','colorChannel1','LIVESHARE_OPERATION','_clearTimeoutTimer','onRemoteRej','_removeCollabCursors','_docStateChangeManagerService','location','_messageService','conflict','error$','routeKey','COMPRESS_MUTATION_SEND','_sendHeartbeat','image/jpeg','sheetId','m2Prime','_transformUndoRedoStack','arc','SNAPSHOT_SERVER_URL_KEY','830015LmphqY','_clearLocalCache','_onRemoteRejected','pauseCollaboration','getUnitStatus$','Unknown\x20user','updateCursorEvent','dispose','onlineStatus','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','NEW_CHANGESETS','url(#on-line-single_clip0_910_349)','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','docStateChange$','univer-online-status','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_drawRange','getUndoRedoMutationParamsCache','_docSyncEditingCollabCursorService','getRoom','confirm','\x0aAfter:\x20','userID','next','_updateStatus','selection','onTransformRemoteChangesetByIMECache','updateMember','ranges','[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.','concat','getRangePointData','_onCombEvent','_transitionLocked','loadSheet','_updateState','createCollaborator','pluginName','getImageSourceCache','UNKNOWN_CMD','session.will-retry','_render','idSuffix','interceptor','fetchMissingChangesets','storage','_scheduleReconnection','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_queuedRemoteChangesets','file','name','OffLineSingle','LICENSE_DISTRO_REJECTED','awaiting_with_pending','ERROR_IMAGE','getViewport','href','_transformUndoredo','_disableEditing','not_collab','unknown','onMissedChangesetFetched','collabStatus.offline','_getSaveTimeout','_roomMembers','unload','_getUploadFileURL','override','collabStatus.notCollab','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','deleteCollaborator','transformMutationsWithChangeset','pending','awaitingChangeset','_onConnectionOpen','_updateLocalCache','SNAPSHOT_INVALID_SNAPSHOT','fetchThroughInterceptors','_initStatusListener','DeleteRangeMoveLeftCommandId','isArray','_getUndoStack','BASE64','catch','_hover','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','icon','setShapeProps','getParam','getRelativeCoord','APPLY_REJECT','_hideTimer','_draw','beginPath','_onConflict','JOINING','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','makeDirty','online','newCsEvent','_refRangeService','univerjs-icon\x20univerjs-icon-','NOT_COLLAB','flatMap','translate(.97)','_unitID','_clearRedo','resourceIDs','_socket','_permissionService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/block/','complete','labelPosition','collab-text-range-','fillRule','skeleton','collaborationUniverTypes','HEARTBEAT','stringify','[CollaborationSessionService]','state','onMouseMove','_handler','11bikKBe','listRoles','CHANGESET_REVISION_CONFILICT','_snapshotService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_clearUndo','url(#$1','apply','createInstance','objectType','/collaborator','OnLineSingle','prototype','_lastPointer','INTERNAL_ERROR','_clearOtherTimers','bottom','close$','_substituteUndoStack','createSocket','get','_collaborationTimeoutTimer','selections','add','LOGIN_URL_KEY','result','verdancy600','_shapes','message$','currentTheme$','lineTo','_session','font','deepClone','_sessions','collaboratorID','liveShareOperation','getValue','collabStatus.syncing','subunit','858296yPpNwZ','doc.mutation.rich-text-editing','cursorInfo','enableLocalCache','xlink:href','clear','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','map','_onConnectionFailed','FETCH_MISSING','univer-pro.collaboration-client.single-active-unit-service','encodeURIComponent','PERMISSION_DENIED','saveSnapshot','/universer-api/oidc/authpage','triggerDblclick','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','0\x200\x2016\x2016','getMemberID','_waitCount','eventID','_handleJoinEvent','editing\x20status\x20changed\x20to','_awaitingChangeset','_rescheduleHeartbeatEvent','_docSkeletonManagerService','leaveEvent','_getAPIPrefixPath','_schedule','_range','memberID','fillText','show','top','_onUserLeave','sessionStatus','onTransformIME','compose','collaborators','some','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_submitChangeset','_applyRemoteChangeset','focused$','loadOfflineData','_getSignURL','_getAnchorBounding','_updateSubUnitFromURLParams','AUTHZ_URL_KEY','NOT_FOUND','batchAllowed','joinEvent','2479734ccJLnI','csRejEvent','_pendingMutations','jiqing500','assignAColorForMemberID','Univer','collabCursorState$','slice','PENDING','USERS_LEAVE','reject','105nusmdH','JOIN','univer-online-status-title','_singleActiveUnitService','changesets','auth.needGotoLoginAlert','_event$','updateOfflineData','roomMembers','disposeWithMe','_timeoutTimer','all','endRow','session.room-full','_socketService','?url=','currentSkeleton$','from','setParam','history','_collaborationPaused','defIds','isEditing','_getDocObject','round','_clearHeartbeatTimer','/rev/','registerHTTPInterceptor','replaceTextRanges','getOffsetConfig','_beforeCloseService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','body','height','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','startColumn','contains','debug','synced','_tryEnsureSocket','_loadDoc','currentColor','red300','session.connection-failed','getCurrentRevForDocument','conflict.title','getAncestorScale','onPointerMoveObserver','_undoRedoService','?size=','COMPRESS_MUTATION_APPLY','FromArray','_entities','offline','_getRedoStack','getTime','transformChangesets','_exhaustSavingTask','on-line-single','session.collaboration-timeout','_handleLeaveEvent','drawWith','code','_unlockTransition','_transformStack','UniverIcon','transformSelections','univer-offline','LIVESHARE_NEW_HOST','defineProperty','path','patch','_toggleOnline','fetch_missing','FAIL','CONFLICT','MUTATION','restore','_createHandler','conflict.content','_cursor','getRenderById','onTransformSelections','/resources','_retryCount','_decreaseWaiting','_onMessage','_acknowledgedAwaitingChangeset','_scheduleCollaborationTimeoutTimer','socket\x20open.','_localeService','_scheduleHeartbeat','set','requireSession','disposeUnit','addImageSourceCache','_lockTransition','[SyncedState]:\x20received\x20acknowledgement.','getUniverSheetInstance','popstate','setInterval','measureText','rgba(255,\x20255,\x20255,\x200.01)','transformRemoteChangeset','_http','text','socketService','_joinRoom','_heartbeatTimer','_clearScheduledTask','LEAVE','_retryConnectingTimer','onRemoteChangeset','_unitOnClients','substring','fill','PSEUDO_FETCH_MISSING_RESULT','_drawAnchor','4246700FPvwkc','then','_transformPreviousActiveRange','getUnitType','...','M0\x200H16V16H0z','open$','OTHER_CLIENTS_EDITING','EXCHANGE_SIGN_URL_SERVER_URL_KEY','ERROR_EXCEED_SIZE','AWAITING','48ncWnmu','registerBeforeClose','SYNCED','div','_collabCursorState$','createElement','#FFF','TOO_MANY_REQUESTS','black','status','_transformService','endColumn','_hovered','UNDEFINED','getCollabEntity','image/bmp','urlChange$','has','UNIVER_UNKNOWN','error','_notificationService','connection\x20error','_onCursorDelete','push','actions','RECV','getTypeOfUnitAdded$','getActiveSheet','CONNECTOR_DATA_TOO_LARGE','_waitForHeartbeatResponse','resend','HELLO','_transformSelections','_removeClearOtherTimer','_httpService','url(#off-line-single_clip0_910_343)','_getSendChangesetTimeout','_docTransformIMECacheService','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','roomMembers$','key','getResourcesRequest','Ready','_collaborationController','_send','status$','failed\x20to\x20apply\x20missed\x20changesets!','_anchor','tag','setCurrentUser','_scene','transformStack\x20failed!','_setupBeforeClosingHandler','localeService','uni.network.url-service','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_SLIDE','_scheduleTimestamp','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_removeRoom','_socket$','_cachedData','parse','onStateChange','addObject','_online','/-/object/-/batch_allowed','[DataLoaderController]','collabStatus.conflict','_compressMutationService','sessionStatus$','ACTIVE_UNIT_EVENT_CHANNEL','getCurrentUser','getItem','executeCommand','_getCtorByUniverType','Warning','pipe','_handleEvent','getUnitId','toggleOffline','_memberService','roomInfos','transform','onRemoteAck','_setupSubUnitSync','putCollaborators','findNodePositionByCharIndex','collabStatus.synced','_localCacheService','_renderManagerService','awaiting','removeMember','_onCursorUpdate','_clearCollaborationTimeoutTimer','_colorAssignService','csAckEvent','collaboration-client.offline-data-not-saved','_toggleOffline','_socketReady','_logService','_handleHeartbeatEvent','baseRev','_saveTaskMap','activeSheet$','disableLocalCache','split','_cursors','_univerInstanceService','indexOf','put','_injector','_HTTPService','_onRemoteChangeset','Error\x20on\x20receiving\x20event','svg','collabStatus.fetchMiss','349017nggxvB','PERMISSION_REJ','_members','mutations','remove','current','_sendingTimer','row','clearTimeout','getCollabCursors$','_currentUser','toggleOnline','_initStatusComponent','_status$','ALREADY_EXISTS','type','APPLY_REVISION_CONFILICT','isActive','assign','VIEW_MAIN','UUID','toString','collaboration-client','function','hasOwnProperty','_onRefRangeChange','DeleteRangeMoveUpCommandId','_initModules','submit\x20changeset\x20error!','blue400','max','socket\x20close','getConfig','allowed','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_onLocalMutation','_snapshotServerService','2126870bCVGbK','_eventUnsubscribe','_onUserJoin','getSheetId','_syncEditingCollabCursorService','_loadSheet','call','FETCH_MISS','_collabSessionService','/universer-api/snapshot','_collabCursorController','onPointerLeaveObserver','_revisionService','SUCCUSS','clipPath','originalMeta','_transformIMECache','/fetchmissing?from=','HEARTBEAT_INTERVAL','change$','fillStyle','listCollaborators','updatePermissionPoint','univer-online','close','_name','width','event$','/object/','searchParams','_onFetchMissResult','_scheduleSaving','ERROR_IMAGE_TYPE','_updateURLWithCurrentState','_assignedColors','c2Prime','transformIMECache','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','RETRY_CONNECTING_INTERVAL','send','collaboration.single-unit.warning','objectID','pushState','data','_config','[CollaborationSessionService]:\x20socket\x20error','getCurrent','_document','src','APPLY_NON_SEQUENTIAL_REVISION','forEach','APPLY_PERMISSION_DENIED','_createInitialState','_showConflictNotification','FileId','_localStorageService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_entityInit$','Error','InsertColCommandId','_socketMessageSubscription','setTimeout','Starting','/universer-api/stream/file/upload','isPermissionRej','none','[CollaborationUndoRedoService]','RemoveColCommandId','_startDocCollabCursor','propertyIsEnumerable','dispose$','attrs','state$','/role','off-line-single_clip0_910_343','_state$','_sendHeartbeatTimer','delete','setAlpha','revision','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','HEARTBEAT_TIMEOUT','_type','_saveCache','USERS_ENTER','_disabled','resolve','rev','objects','transformMutation','hide','displayName','_commandService','syncEditingCollabCursor','textRanges','getScrollXYByRelativeCoords','asObservable','includes','_isPermissionRej','LIVESHARE_TERMINATE','_selfUnitIDs','save','post','loadDoc','use','on-line-single_clip0_910_349','getSheetBySheetId','className','_undoStacks','purple300','749990rkYjus','fromCollab','OFFLINE','0\x200\x2017\x2016','readAsDataURL','c1Prime','permissionRejEvent','unshift','clearInterval','[PendingState]:\x20received\x20acknowledgement.','_onRecvEvent','_handleHover','enableOfflineEditing','session','url','registerRefRange','update','COLLAB_SUBMIT_CHANGESET_URL','startsWith','UNIVER_SHEET','_syncEditingCollabCursor','permission.title','_checkMissing','LIVESHARE_FETCH_OPERATIONS','encode','onCommandExecuted','DEFAULT_FILE_NAME','transformUndoRedo','INGEST','list','_updateLocalCursor','_createSocket','unit-cache-','_state','_incrementRevisionNumber','extend','LICENSE_IMPORT_SIZE_EXCEEDED','color','INVALID_ARGUMENT','_ensureSubject','getOwnPropertySymbols','symbol','json','defs','ONLINE','getFocusedUnit','_color','replace','_unitStatus','collaMsg','[OfflineState]:\x20received\x20rejection.','init','RETRY_CONNECTING_MAX_COUNT','string','_anchorDot','_uiPartsService','MSG_FOR_ERROR','3ProCCL','getImage','entries','_getLoginPath','length'];_0x22b6=function(){return _0x4aa32a;};return _0x22b6();}var hn=(_0x3c7750,_0x1fa968,_0x4a9df1,_0x1a0afd)=>{for(var _0x1578b9=_0x1fa968,_0x49614d=_0x3c7750['length']-0x1,_0x15301e;_0x49614d>=0x0;_0x49614d--)(_0x15301e=_0x3c7750[_0x49614d])&&(_0x1578b9=_0x15301e(_0x1578b9)||_0x1578b9);return _0x1578b9;},Kt=(_0x4c62c1,_0x3aa810)=>(_0x8e488,_0x5825f6)=>_0x3aa810(_0x8e488,_0x5825f6,_0x4c62c1);let Be=class{constructor(_0x725b2e,_0x5b4218){const _0x25f8e8=_0x369344;this[_0x25f8e8(0x2e0)]=_0x725b2e,this[_0x25f8e8(0x27b)]=_0x5b4218;}[_0x369344(0x232)](_0x29a449){const _0x48c4fa=_0x369344;var _0x32e4ee;const _0x5757b1=this[_0x48c4fa(0x2e0)][_0x48c4fa(0x19d)](_0x1c9a21),_0x512c13=(_0x32e4ee=_0x5757b1[_0x48c4fa(0x3fa)]())!=null?_0x32e4ee:[],_0xd1cda2=_0x512c13==null?void 0x0:_0x512c13[_0x48c4fa(0x1b8)](_0x38b333);if(_0xd1cda2['length']===0x0)return;const _0x17e474=[{'id':_0x48c4fa(0x1b2),'params':{'unitId':_0x29a449[_0x48c4fa(0x3cc)],'actions':null,'textRanges':_0xd1cda2}}],_0x515ad5=this['_transformService']['transformMutationsWithChangeset'](_0x29a449,_0x17e474);if(!_0x1cf98b(_0x515ad5))throw _0x515ad5['error'];const _0x5eb2a3=_0x515ad5[_0x48c4fa(0x422)][0x0][_0x48c4fa(0x3fc)][_0x48c4fa(0x369)];Array[_0x48c4fa(0x15c)](_0x5eb2a3)&&_0x5eb2a3[_0x48c4fa(0x3b6)]&&_0x5757b1[_0x48c4fa(0x20c)](_0x5eb2a3,!0x1);}};Be=hn([Kt(0x0,_0x3bdb53(_0x29e329)),Kt(0x1,_0x5cdc22)],Be);function Ts(_0x5037fd){let _0x3ee1e7='';for(const _0x24429b of _0x5037fd){const {startOffset:_0x202104,endOffset:_0x4503a9,isActive:_0x8fc2a3}=_0x24429b;_0x3ee1e7['length']&&(_0x3ee1e7+=','),_0x3ee1e7+=_0x202104+':'+_0x4503a9+':'+(_0x8fc2a3?'1':'0');}return _0x3ee1e7;}function ln(_0x5e0f49){const _0x49ab72=_0x369344,_0x56ef8e=_0x5e0f49['split'](','),_0x5a0b98=[];for(const _0x47cc62 of _0x56ef8e){const [_0x415b85,_0x335e5e,_0x5e1d09]=_0x47cc62[_0x49ab72(0x2db)](':');_0x5a0b98[_0x49ab72(0x288)]({'startOffset':Number(_0x415b85),'endOffset':Number(_0x335e5e),'collapsed':_0x415b85===_0x335e5e,'isActive':_0x5e1d09==='1'});}return _0x5a0b98[_0x49ab72(0x1d8)](_0x12578e=>_0x12578e[_0x49ab72(0x2f7)])||(_0x5a0b98[0x0]['isActive']=!0x0),_0x5a0b98;}class Mt extends _0x1f6cf4{constructor(){const _0x47ac7c=_0x369344;super(...arguments),l(this,_0x47ac7c(0x275),new _0x2a5f89(null)),l(this,_0x47ac7c(0x1eb),this[_0x47ac7c(0x275)][_0x47ac7c(0x36b)]());}[_0x369344(0x368)](_0x58ad3c){const _0x3a51f6=_0x369344,{unitID:_0x513dd1,memberID:_0x494dcf,textRanges:_0x125e37}=_0x58ad3c,_0x1fa3a3=Ts(_0x125e37),_0xa15cf7={'unitID':_0x513dd1,'memberID':_0x494dcf,'selection':_0x1fa3a3};this[_0x3a51f6(0x275)][_0x3a51f6(0x43d)](_0xa15cf7);}}var _n=(_0x6e124a,_0x5aa713,_0x576685,_0x34b815)=>{for(var _0xeb4223=_0x5aa713,_0x7d234=_0x6e124a['length']-0x1,_0x29a7e3;_0x7d234>=0x0;_0x7d234--)(_0x29a7e3=_0x6e124a[_0x7d234])&&(_0xeb4223=_0x29a7e3(_0xeb4223)||_0xeb4223);return _0xeb4223;},Xt=(_0x318041,_0xa6efb2)=>(_0x1ba9bf,_0x2629a6)=>_0xa6efb2(_0x1ba9bf,_0x2629a6,_0x318041);let We=class{constructor(_0x6c47c1,_0x23d4b5){const _0x95c53d=_0x369344;this[_0x95c53d(0x2e0)]=_0x6c47c1,this[_0x95c53d(0x27b)]=_0x23d4b5;}[_0x369344(0x232)](_0x491c9f){const _0x2d1e19=_0x369344;var _0x3c8502,_0x58c382,_0x19697e,_0x1d8f45;const _0x2a9a05=this[_0x2d1e19(0x2e0)][_0x2d1e19(0x19d)](_0x12ef89),{pluginName:_0x33217f,unitId:_0x44fbdf,sheetId:_0x4b4f99}=_0x2a9a05[_0x2d1e19(0x339)]()||{},_0x5a4bc7=(_0x3c8502=_0x2a9a05[_0x2d1e19(0x3fa)]())!=null?_0x3c8502:[];if(_0x5a4bc7[_0x2d1e19(0x3b6)]===0x0||!_0x33217f||!_0x44fbdf||!_0x4b4f99)return;const _0x19949a=[{'id':_0x20fa8e['id'],'params':{'unitId':_0x44fbdf,'subUnitId':_0x4b4f99,'pluginName':_0x33217f,'selections':_0x16b7ed['deepClone'](_0x5a4bc7)}}],_0x4ada82=this[_0x2d1e19(0x27b)][_0x2d1e19(0x46d)](_0x491c9f,_0x19949a);if(!_0x1cf98b(_0x4ada82))throw _0x4ada82[_0x2d1e19(0x284)];const _0x36e7dc=(_0x1d8f45=(_0x19697e=(_0x58c382=_0x4ada82[_0x2d1e19(0x422)][0x0])==null?void 0x0:_0x58c382[_0x2d1e19(0x3fc)])==null?void 0x0:_0x19697e[_0x2d1e19(0x19f)])!=null?_0x1d8f45:_0x5a4bc7;Array['isArray'](_0x36e7dc)&&_0x36e7dc[_0x2d1e19(0x3b6)]&&this[_0x2d1e19(0x2e0)][_0x2d1e19(0x19d)](_0x2e73f7)[_0x2d1e19(0x2bb)](_0x20fa8e['id'],{'unitId':_0x44fbdf,'subUnitId':_0x4b4f99,'pluginName':_0x33217f,'selections':_0x36e7dc});}};We=_n([Xt(0x0,_0x3bdb53(_0x29e329)),Xt(0x1,_0x5cdc22)],We);const un=new Set([_0x4e0868['id']]);function dn(_0xe8c75a,_0x8ebba1,_0x5e5835,_0x52044a,_0x558a21){const _0x376fe1=_0x369344;var _0x48d973,_0x9d34ec,_0x67cc36,_0x1e8be9;const _0xce904b=[];for(const _0x321413 of _0xe8c75a)if(un[_0x376fe1(0x282)](_0x321413['id'])){if(_0xce904b[_0x376fe1(0x3b6)]>0x0)break;_0xce904b[_0x376fe1(0x288)](_0x321413);break;}else _0xce904b[_0x376fe1(0x288)](_0x321413);const _0x36ca41=(_0x9d34ec=(_0x48d973=_0x558a21[_0x376fe1(0x2b9)]())==null?void 0x0:_0x48d973[_0x376fe1(0x43c)])!=null?_0x9d34ec:_0x376fe1(0x462),_0x25804d=(_0x1e8be9=(_0x67cc36=_0x558a21[_0x376fe1(0x2b9)]())==null?void 0x0:_0x67cc36[_0x376fe1(0x1cf)])!=null?_0x1e8be9:_0x376fe1(0x462);return{'changeset':{'unitID':_0x8ebba1,'type':_0x25caf3(_0x5e5835[_0x376fe1(0x269)](_0x8ebba1)),'baseRev':_0x52044a[_0x376fe1(0x21c)](_0x8ebba1),'revision':0x0,'userID':_0x36ca41,'memberID':_0x25804d,'mutations':_0xce904b},'pendingMutations':_0xe8c75a[_0x376fe1(0x1ec)](_0xce904b[_0x376fe1(0x3b6)])};}function gn(_0x5dce03,_0x50639b,_0x48fdd5,_0x4b0c92,_0x5a62bf){const _0x4b6b39=_0x369344;var _0x32b73a,_0x365c64,_0x2b42fa,_0x185fe4;const _0x5ecc96=[_0x5dce03['reduce']((_0x4ee789,_0x255ca5)=>{const _0x480e26=_0xfefa;var _0x34f783;const {id:_0xf0ea50}=_0x4ee789,{id:_0x339d32,type:_0x360c75}=_0x255ca5,_0x279df1=(_0x34f783=_0x4ee789[_0x480e26(0x3fc)])!=null?_0x34f783:{'actions':null},_0x28e79b=_0x255ca5[_0x480e26(0x3fc)];if(_0xf0ea50&&_0xf0ea50!==_0x339d32)throw new Error(_0x480e26(0x212)+_0xf0ea50+'\x20-\x20'+_0x339d32+'.');return{..._0x4ee789,'id':_0x339d32,'type':_0x360c75,'params':{'unitId':_0x28e79b[_0x480e26(0x3cd)],'textRanges':_0x28e79b['textRanges'],'actions':_0x597d08[_0x480e26(0x1d6)](_0x279df1['actions'],_0x28e79b['actions'])}};},{})],_0x32656a=(_0x365c64=(_0x32b73a=_0x5a62bf[_0x4b6b39(0x2b9)]())==null?void 0x0:_0x32b73a['userID'])!=null?_0x365c64:_0x4b6b39(0x462),_0x29c439=(_0x185fe4=(_0x2b42fa=_0x5a62bf[_0x4b6b39(0x2b9)]())==null?void 0x0:_0x2b42fa[_0x4b6b39(0x1cf)])!=null?_0x185fe4:_0x4b6b39(0x462);return{'changeset':{'unitID':_0x50639b,'type':_0x25caf3(_0x48fdd5[_0x4b6b39(0x269)](_0x50639b)),'baseRev':_0x4b0c92['getCurrentRevForDocument'](_0x50639b),'revision':0x0,'userID':_0x32656a,'memberID':_0x29c439,'mutations':_0x5ecc96},'pendingMutations':[]};}var ne=(_0x11378c,_0x33923c,_0x1ab5d8,_0x48b0e5)=>{const _0x26b2e5=_0x369344;for(var _0x32d75d=_0x33923c,_0x18d872=_0x11378c[_0x26b2e5(0x3b6)]-0x1,_0x1b2930;_0x18d872>=0x0;_0x18d872--)(_0x1b2930=_0x11378c[_0x18d872])&&(_0x32d75d=_0x1b2930(_0x32d75d)||_0x32d75d);return _0x32d75d;},m=(_0x81864c,_0x2a8a60)=>(_0x4c4278,_0x3bd356)=>_0x2a8a60(_0x4c4278,_0x3bd356,_0x81864c);const mn='SEND_CHANGESET_TIMEOUT',Sn=0x7d0;function _0xfefa(_0x5d6be6,_0x733214){const _0x22b68c=_0x22b6();return _0xfefa=function(_0xfefa42,_0x32a089){_0xfefa42=_0xfefa42-0x156;let _0x462b3e=_0x22b68c[_0xfefa42];return _0x462b3e;},_0xfefa(_0x5d6be6,_0x733214);}var y=(_0x50e069=>(_0x50e069[_0x369344(0x172)]=_0x369344(0x461),_0x50e069[_0x369344(0x273)]=_0x369344(0x216),_0x50e069[_0x369344(0x1ed)]=_0x369344(0x46e),_0x50e069[_0x369344(0x270)]='awaiting',_0x50e069['AWAITING_WITH_PENDING']=_0x369344(0x45b),_0x50e069[_0x369344(0x312)]=_0x369344(0x239),_0x50e069[_0x369344(0x23b)]=_0x369344(0x41b),_0x50e069[_0x369344(0x37b)]='offline',_0x50e069))(y||{});class re{constructor(_0x5ae41b,_0x3345c6,_0x1a4446,_0x2431f1,_0x26102a,_0x509e83,_0x3d340a,_0x2bb59e,_0x34526a){const _0x5485cd=_0x369344;l(this,_0x5485cd(0x1c8),null),l(this,_0x5485cd(0x1e7),[]),(this['unitID']=_0x5ae41b,this[_0x5485cd(0x2f5)]=_0x3345c6,this[_0x5485cd(0x187)]=_0x26102a,this[_0x5485cd(0x367)]=_0x509e83,this[_0x5485cd(0x220)]=_0x3d340a,this[_0x5485cd(0x317)]=_0x2bb59e,this[_0x5485cd(0x2ca)]=_0x34526a,this[_0x5485cd(0x1c8)]=_0x1a4446,this['_pendingMutations']=_0x2431f1);}[_0x369344(0x38f)](_0x18b8f5){const _0x17c1f8=_0x369344,_0x413ec6=this[_0x17c1f8(0x317)][_0x17c1f8(0x21c)](this[_0x17c1f8(0x3cc)]);return _0x18b8f5['revision']>_0x413ec6+0x1?(this['_handler']['onMissingChangesets']({'from':_0x413ec6,'to':_0x18b8f5[_0x17c1f8(0x35a)]-0x1}),!0x0):!0x1;}[_0x369344(0x45f)](_0x238ea0){const _0x5baa39=_0x369344;this['_undoRedoService'][_0x5baa39(0x394)](this[_0x5baa39(0x3cc)],_0x238ea0);}[_0x369344(0x291)](_0x3ef34d){const _0x18b34d=_0x369344;var _0x3ad790,_0x553097;(_0x553097=(_0x3ad790=this[_0x18b34d(0x187)])[_0x18b34d(0x242)])==null||_0x553097[_0x18b34d(0x311)](_0x3ad790,_0x3ef34d);}[_0x369344(0x31b)](_0x3e55b3){const _0x1af4a5=_0x369344;var _0x55e763,_0x4de19c;return(_0x4de19c=(_0x55e763=this[_0x1af4a5(0x187)])['onTransformIME'])==null?void 0x0:_0x4de19c['call'](_0x55e763,_0x3e55b3);}[_0x369344(0x3ee)](_0x5d7a16){const _0x410208=_0x369344;var _0x26536a,_0x27194d,_0x493dfc;return(_0x493dfc=(_0x27194d=(_0x26536a=this[_0x410208(0x187)])[_0x410208(0x440)])==null?void 0x0:_0x27194d[_0x410208(0x311)](_0x26536a,_0x5d7a16))!=null?_0x493dfc:_0x5d7a16;}[_0x369344(0x38d)](_0x4ec3bc){const _0x16353a=_0x369344;var _0x2b1cf9,_0x34fe94;if(this[_0x16353a(0x2f5)]===H['UNIVER_DOC']){const {unitID:_0x10a314,mutations:_0x1e34e3,memberID:_0x377d9d}=_0x4ec3bc,_0x4bc90d=_0x1e34e3[0x0][_0x16353a(0x3fc)][_0x16353a(0x369)];Array['isArray'](_0x4bc90d)&&_0x4bc90d['length']>0x0&&((_0x34fe94=(_0x2b1cf9=this[_0x16353a(0x187)])[_0x16353a(0x40e)])==null||_0x34fe94['call'](_0x2b1cf9,{'unitID':_0x10a314,'memberID':_0x377d9d,'textRanges':_0x4bc90d}));}}[_0x369344(0x157)](){const _0x2a17ab=_0x369344;this['_localCacheService']['updateOfflineData'](this[_0x2a17ab(0x3cc)],this['type'],this[_0x2a17ab(0x1c8)],this[_0x2a17ab(0x1e7)]);}['_getCurrentRevision'](){const _0x5c86dc=_0x369344;return this['_revisionService'][_0x5c86dc(0x21c)](this[_0x5c86dc(0x3cc)]);}[_0x369344(0x39b)](){const _0x44a9c6=_0x369344;this[_0x44a9c6(0x317)][_0x44a9c6(0x3d9)](this[_0x44a9c6(0x3cc)]);}[_0x369344(0x3e2)](_0x3e607a){const _0x436bff=_0x369344;var _0x24d523;const _0x4fbfae=this['_transformRemoteChangesetByIMECache'](_0x3e607a),_0x47049a=_0x3b0c60(_0x4fbfae[_0x436bff(0x2e9)],this['_commandService'],{'fromCollab':!0x0});if(!_0x47049a[_0x436bff(0x1a2)])throw _0x47049a[_0x436bff(0x284)]instanceof Error?_0x47049a[_0x436bff(0x284)]:new Error((_0x24d523=_0x47049a[_0x436bff(0x284)])!=null?_0x24d523:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x4fbfae),this[_0x436bff(0x45f)](_0x3e607a),this[_0x436bff(0x291)](_0x4fbfae),this['_syncEditingCollabCursor'](_0x4fbfae),this['_incrementRevisionNumber']();}}let De=class extends re{constructor(_0x2b1bd0,_0x441a95,_0x21b4fc,_0x306e88,_0x31796f,_0x377070,_0x34a6b9,_0x3a864c,_0x47fc67){const _0x259686=_0x369344;super(_0x2b1bd0,_0x441a95,null,[],_0x21b4fc,_0x3a864c,_0x34a6b9,_0x306e88,_0x31796f),l(this,_0x259686(0x27a),_0x259686(0x216)),(this[_0x259686(0x2e0)]=_0x377070,this['_logService']=_0x47fc67);}[_0x369344(0x411)](_0x416785){const _0x5f1ee0=_0x369344,_0x2e76ad=this[_0x5f1ee0(0x2e0)][_0x5f1ee0(0x191)](V,this['unitID'],this['type'],[_0x416785],this['_handler']);return _0x2e76ad[_0x5f1ee0(0x1cd)](),_0x2e76ad['_updateLocalCache'](),_0x2e76ad;}[_0x369344(0x260)](_0x4b6f0d){const _0x581fda=_0x369344;if(this[_0x581fda(0x38f)](_0x4b6f0d))return this['_injector']['createInstance'](W,this['unitID'],this[_0x581fda(0x2f5)],null,[],null,[_0x4b6f0d],this[_0x581fda(0x187)]);try{return this[_0x581fda(0x3e2)](_0x4b6f0d),this;}catch(_0x3bf6f9){return this[_0x581fda(0x2d5)]['error'](_0x581fda(0x432),_0x3bf6f9),this;}}[_0x369344(0x2c5)](){const _0x18917a=_0x369344;throw new Error(_0x18917a(0x251));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x369344(0x2c1)](){const _0x2ea884=_0x369344;return this[_0x2ea884(0x2e0)][_0x2ea884(0x191)](X,this['unitID'],this[_0x2ea884(0x2f5)],null,[],this[_0x2ea884(0x187)]);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x28f)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};De=ne([m(0x3,_0x3bdb53(_0x4f9324)),m(0x4,_0x3bdb53(O)),m(0x5,_0x3bdb53(_0x29e329)),m(0x6,_0x34383f),m(0x7,_0x2e73f7),m(0x8,_0x5e199c)],De);let V=class extends re{constructor(_0x5bf6c9,_0x108213,_0x3590c9,_0x365734,_0x327c30,_0x18fa35,_0x32e26c,_0x102ed9,_0xd9e66a,_0x129046,_0x45e6a6,_0xc7171,_0x1c9042,_0x10b6de){const _0x1ef05d=_0x369344;super(_0x5bf6c9,_0x108213,null,_0x3590c9,_0x365734,_0x129046,_0x10b6de,_0x18fa35,_0x32e26c),l(this,_0x1ef05d(0x27a),_0x1ef05d(0x46e)),l(this,'_scheduleTimestamp',null),l(this,_0x1ef05d(0x2ec),null),(this[_0x1ef05d(0x2e0)]=_0x327c30,this[_0x1ef05d(0x2c2)]=_0x102ed9,this[_0x1ef05d(0x2d5)]=_0xd9e66a,this[_0x1ef05d(0x3f1)]=_0x45e6a6,this[_0x1ef05d(0x27b)]=_0xc7171,this[_0x1ef05d(0x2dd)]=_0x1c9042);}[_0x369344(0x411)](_0x3c0b09){const _0x4d5a92=_0x369344;return this[_0x4d5a92(0x1e7)][_0x4d5a92(0x288)](_0x3c0b09),this[_0x4d5a92(0x157)](),this;}[_0x369344(0x260)](_0x5c2404){const _0x169adf=_0x369344;if(this[_0x169adf(0x38f)](_0x5c2404))return this['_clearScheduledTask'](),this['_injector']['createInstance'](W,this['unitID'],this[_0x169adf(0x2f5)],null,this[_0x169adf(0x1e7)],null,[_0x5c2404],this[_0x169adf(0x187)]);try{const _0x51b114=this[_0x169adf(0x27b)][_0x169adf(0x46d)](_0x5c2404,this[_0x169adf(0x1e7)]);if(_0x1cf98b(_0x51b114)){const {c1Prime:_0x313d57,m2Prime:_0x2d3b4b}=_0x51b114;this[_0x169adf(0x3e2)](_0x313d57);const _0x44cdf7=this[_0x169adf(0x2e0)][_0x169adf(0x191)](V,this[_0x169adf(0x3cc)],this[_0x169adf(0x2f5)],_0x2d3b4b,this[_0x169adf(0x187)]);return this[_0x169adf(0x25d)](),_0x44cdf7[_0x169adf(0x1cd)](this[_0x169adf(0x2aa)]?Math[_0x169adf(0x304)](0x0,new Date()[_0x169adf(0x227)]()-this['_scheduleTimestamp']):this[_0x169adf(0x295)]()),_0x44cdf7;}throw _0x51b114[_0x169adf(0x284)];}catch(_0x12bfb5){return this[_0x169adf(0x2d5)][_0x169adf(0x284)](_0x12bfb5),this[_0x169adf(0x16a)](!0x1);}}[_0x369344(0x2c5)](){const _0x26ca23=_0x369344;throw new Error(_0x26ca23(0x382));}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x51ffb4=_0x369344;return this['_clearScheduledTask'](),this[_0x51ffb4(0x2e0)][_0x51ffb4(0x191)](X,this[_0x51ffb4(0x3cc)],this[_0x51ffb4(0x2f5)],null,this[_0x51ffb4(0x1e7)],this[_0x51ffb4(0x187)]);}['toggleOnline'](){return this;}[_0x369344(0x1cd)](_0x2d1289){const _0x3ea66d=_0x369344;_0x2d1289=_0x2d1289!=null?_0x2d1289:this[_0x3ea66d(0x295)](),this[_0x3ea66d(0x2aa)]=new Date()[_0x3ea66d(0x227)](),this[_0x3ea66d(0x2ec)]=setTimeout(()=>{const _0x168d43=_0x3ea66d;this['_clearScheduledTask']();let _0x53f0ed=null;switch(this[_0x168d43(0x2f5)]){case H[_0x168d43(0x38c)]:{_0x53f0ed=dn(this['_pendingMutations'],this[_0x168d43(0x3cc)],this[_0x168d43(0x2dd)],this[_0x168d43(0x317)],this[_0x168d43(0x2c2)]);break;}case H[_0x168d43(0x3c6)]:{_0x53f0ed=gn(this[_0x168d43(0x1e7)],this[_0x168d43(0x3cc)],this[_0x168d43(0x2dd)],this[_0x168d43(0x317)],this[_0x168d43(0x2c2)]);break;}default:throw new Error(_0x168d43(0x17a)+this[_0x168d43(0x2f5)]+'\x20in\x20_schedule.');}const {changeset:_0x505fb5,pendingMutations:_0x11a1c6}=_0x53f0ed;this[_0x168d43(0x187)][_0x168d43(0x3e5)](_0x505fb5);const _0x450398=_0x11a1c6['length']?this['_injector'][_0x168d43(0x191)](B,this[_0x168d43(0x3cc)],this['type'],_0x505fb5,_0x11a1c6,this[_0x168d43(0x187)]):this['_injector']['createInstance'](K,this['unitID'],this['type'],_0x505fb5,this[_0x168d43(0x187)]);_0x450398['_updateLocalCache'](),this[_0x168d43(0x187)][_0x168d43(0x2b0)](this,_0x450398);},_0x2d1289);}[_0x369344(0x295)](){const _0x2af608=_0x369344;var _0x241620;return(_0x241620=this[_0x2af608(0x3f1)][_0x2af608(0x306)](mn))!=null?_0x241620:Sn;}[_0x369344(0x28f)](){const _0x56e86e=_0x369344;throw new Error(_0x56e86e(0x1c1));}[_0x369344(0x25d)](){const _0x142a31=_0x369344;this[_0x142a31(0x2ec)]!=null&&(clearTimeout(this[_0x142a31(0x2ec)]),this[_0x142a31(0x2ec)]=null);}['_onConflict'](_0x499056){const _0x56a4c4=_0x369344;return this[_0x56a4c4(0x25d)](),this[_0x56a4c4(0x2e0)][_0x56a4c4(0x191)](te,this[_0x56a4c4(0x3cc)],this[_0x56a4c4(0x2f5)],null,this[_0x56a4c4(0x1e7)],this[_0x56a4c4(0x187)],_0x499056);}};V=ne([m(0x4,_0x3bdb53(_0x29e329)),m(0x5,_0x3bdb53(_0x4f9324)),m(0x6,_0x3bdb53(O)),m(0x7,_0x3bdb53(ee)),m(0x8,_0x5e199c),m(0x9,_0x2e73f7),m(0xa,_0xcb4dc7),m(0xb,_0x5cdc22),m(0xc,_0x1e6754),m(0xd,_0x34383f)],V);let K=class extends re{constructor(_0x2a8cba,_0x51fa49,_0x343d1f,_0x486f61,_0x44d3e8,_0x3667f9,_0x14e9b2,_0x18fec2,_0x233ce3,_0x2dae07,_0x2aee89){const _0x3d5ed0=_0x369344;super(_0x2a8cba,_0x51fa49,_0x343d1f,[],_0x486f61,_0x18fec2,_0x2aee89,_0x3667f9,_0x14e9b2),l(this,_0x3d5ed0(0x27a),_0x3d5ed0(0x2cc)),(this[_0x3d5ed0(0x2e0)]=_0x44d3e8,this[_0x3d5ed0(0x2d5)]=_0x233ce3,this[_0x3d5ed0(0x27b)]=_0x2dae07);}[_0x369344(0x411)](_0x9807e5){const _0x323726=_0x369344,_0x2d0b19=this[_0x323726(0x2e0)][_0x323726(0x191)](B,this[_0x323726(0x3cc)],this['type'],this[_0x323726(0x1c8)],[_0x9807e5],this[_0x323726(0x187)]);return _0x2d0b19['_updateLocalCache'](),_0x2d0b19;}['onRemoteChangeset'](_0x1f1123){const _0x3b49d5=_0x369344;if(this['_checkMissing'](_0x1f1123))return this[_0x3b49d5(0x2e0)]['createInstance'](W,this[_0x3b49d5(0x3cc)],this[_0x3b49d5(0x2f5)],this[_0x3b49d5(0x1c8)],[],null,[_0x1f1123],this[_0x3b49d5(0x187)]);try{const _0x455077=this[_0x3b49d5(0x27b)]['transformChangesets']([_0x1f1123],[this[_0x3b49d5(0x1c8)]],!0x1);if(_0x12c9d2(_0x455077)){const {c1Prime:_0x1792fa,c2Prime:_0x563349}=_0x455077;this['_executeRemoteChangeset'](_0x1792fa[0x0]),_0x563349[0x0][_0x3b49d5(0x2d7)]=this['_getCurrentRevision']();const _0x2a9755=this[_0x3b49d5(0x2e0)][_0x3b49d5(0x191)](K,this[_0x3b49d5(0x3cc)],this[_0x3b49d5(0x2f5)],_0x563349[0x0],this[_0x3b49d5(0x187)]);return _0x2a9755[_0x3b49d5(0x157)](),_0x2a9755;}return this['_onConflict'](!0x1);}catch(_0x1d42ba){return this[_0x3b49d5(0x2d5)]['error'](_0x1d42ba),this[_0x3b49d5(0x16a)](!0x1);}}[_0x369344(0x2c5)](_0x298266){const _0x839891=_0x369344,_0x162652=this['_revisionService'][_0x839891(0x21c)](this[_0x839891(0x3cc)]);if(_0x298266['revision']<_0x162652-0x1)return this;if(this[_0x839891(0x38f)](_0x298266))return this[_0x839891(0x2e0)]['createInstance'](W,this[_0x839891(0x3cc)],this[_0x839891(0x2f5)],null,[],this[_0x839891(0x1c8)],[],this[_0x839891(0x187)]);this[_0x839891(0x39b)]();const _0x36b035=this[_0x839891(0x2e0)][_0x839891(0x191)](De,this[_0x839891(0x3cc)],this[_0x839891(0x2f5)],this[_0x839891(0x187)]);return _0x36b035[_0x839891(0x157)](),_0x36b035;}[_0x369344(0x416)](_0x43abbe){const _0x1ced77=_0x369344;return this[_0x1ced77(0x16a)](!!(_0x43abbe!=null&&_0x43abbe['isPermissionRej']));}[_0x369344(0x2c1)](){const _0xf24935=_0x369344;return this[_0xf24935(0x2e0)][_0xf24935(0x191)](X,this[_0xf24935(0x3cc)],this['type'],this[_0xf24935(0x1c8)],[],this['_handler']);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x28f)](){const _0x23004f=_0x369344;this['_handler'][_0x23004f(0x3e5)](this['_awaitingChangeset']);}[_0x369344(0x16a)](_0x42cffe){const _0x4d68a5=_0x369344;return this[_0x4d68a5(0x2e0)][_0x4d68a5(0x191)](te,this[_0x4d68a5(0x3cc)],this[_0x4d68a5(0x2f5)],this[_0x4d68a5(0x1c8)],[],this[_0x4d68a5(0x187)],_0x42cffe);}};K=ne([m(0x4,_0x3bdb53(_0x29e329)),m(0x5,_0x3bdb53(_0x4f9324)),m(0x6,_0x3bdb53(O)),m(0x7,_0x2e73f7),m(0x8,_0x5e199c),m(0x9,_0x5cdc22),m(0xa,_0x34383f)],K);let B=class extends re{constructor(_0x2f5be1,_0x4b1d05,_0x55b1db,_0xf868e1,_0x145a2b,_0x45851e,_0x3a9d1a,_0x3bc6c9,_0x3d7876,_0x18ce40,_0x1be400,_0x5af8c2){const _0x2dd2d1=_0x369344;super(_0x2f5be1,_0x4b1d05,_0x55b1db,_0xf868e1,_0x145a2b,_0x3d7876,_0x5af8c2,_0x3a9d1a,_0x3bc6c9),l(this,_0x2dd2d1(0x27a),_0x2dd2d1(0x45b)),(this[_0x2dd2d1(0x2e0)]=_0x45851e,this['_logService']=_0x18ce40,this[_0x2dd2d1(0x27b)]=_0x1be400);}[_0x369344(0x411)](_0x36ac2d){const _0x358d96=_0x369344;return this[_0x358d96(0x1e7)][_0x358d96(0x288)](_0x36ac2d),this;}['onRemoteChangeset'](_0x120e83){const _0x2305a0=_0x369344;if(this['_checkMissing'](_0x120e83))return this['_injector'][_0x2305a0(0x191)](W,this[_0x2305a0(0x3cc)],this[_0x2305a0(0x2f5)],this[_0x2305a0(0x1c8)],this['_pendingMutations'],null,[_0x120e83],this[_0x2305a0(0x187)]);try{const _0x14c6c4=this[_0x2305a0(0x27b)][_0x2305a0(0x228)]([_0x120e83],[this['_awaitingChangeset']],!0x1);if(_0x12c9d2(_0x14c6c4)){const {c1Prime:_0x4bbc00,c2Prime:_0x135b96}=_0x14c6c4,_0x3f4d3b=this[_0x2305a0(0x27b)][_0x2305a0(0x46d)](_0x4bbc00[0x0],this[_0x2305a0(0x1e7)]);if(_0x1cf98b(_0x3f4d3b)){const {c1Prime:_0x1b5aa2,m2Prime:_0x266c67}=_0x3f4d3b;return this[_0x2305a0(0x3e2)](_0x1b5aa2),_0x135b96[0x0][_0x2305a0(0x2d7)]=this['_getCurrentRevision'](),this[_0x2305a0(0x2e0)][_0x2305a0(0x191)](B,this['unitID'],this['type'],_0x135b96[0x0],_0x266c67,this[_0x2305a0(0x187)]);}throw _0x3f4d3b[_0x2305a0(0x284)];}throw _0x14c6c4['error'];}catch(_0x4b8bef){return this[_0x2305a0(0x2d5)]['error'](_0x4b8bef),this[_0x2305a0(0x16a)](!0x1);}}['onRemoteAck'](_0x2da382){const _0x48f0ca=_0x369344;if(this['_checkMissing'](_0x2da382))return this[_0x48f0ca(0x2e0)][_0x48f0ca(0x191)](W,this[_0x48f0ca(0x3cc)],this['type'],null,this[_0x48f0ca(0x1e7)],this['_awaitingChangeset'],[],this[_0x48f0ca(0x187)]);this[_0x48f0ca(0x39b)]();const _0x527019=this[_0x48f0ca(0x2e0)][_0x48f0ca(0x191)](V,this['unitID'],this['type'],this[_0x48f0ca(0x1e7)],this[_0x48f0ca(0x187)]);return _0x527019[_0x48f0ca(0x1cd)](),_0x527019[_0x48f0ca(0x157)](),_0x527019;}[_0x369344(0x416)](_0x2a9bb9){const _0x24e627=_0x369344;return this['_onConflict'](!!(_0x2a9bb9!=null&&_0x2a9bb9[_0x24e627(0x34b)]));}[_0x369344(0x2c1)](){const _0x34a705=_0x369344;return this[_0x34a705(0x2e0)][_0x34a705(0x191)](X,this[_0x34a705(0x3cc)],this[_0x34a705(0x2f5)],this[_0x34a705(0x1c8)],this[_0x34a705(0x1e7)],this[_0x34a705(0x187)]);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x28f)](){const _0x1c3d3c=_0x369344;this['_handler']['onSendChangeset'](this[_0x1c3d3c(0x1c8)]);}[_0x369344(0x16a)](_0x86a511){const _0x5e446d=_0x369344;return this[_0x5e446d(0x2e0)][_0x5e446d(0x191)](te,this[_0x5e446d(0x3cc)],this[_0x5e446d(0x2f5)],null,this['_pendingMutations'],this[_0x5e446d(0x187)],_0x86a511);}};B=ne([m(0x5,_0x3bdb53(_0x29e329)),m(0x6,_0x3bdb53(_0x4f9324)),m(0x7,_0x3bdb53(O)),m(0x8,_0x2e73f7),m(0x9,_0x5e199c),m(0xa,_0x5cdc22),m(0xb,_0x34383f)],B);let te=class extends re{constructor(_0xb8e6b,_0x325c8a,_0x192d33,_0x415977,_0x3449e8,_0x58fdd5=!0x1,_0x4a826c,_0x53b387,_0x574c89,_0x4edffc,_0x146906,_0x1b0c6a,_0x8d3247){const _0x2cd130=_0x369344;super(_0xb8e6b,_0x325c8a,_0x192d33,_0x415977,_0x3449e8,_0x53b387,_0x574c89,_0x146906,_0x4edffc),l(this,_0x2cd130(0x27a),_0x2cd130(0x41b)),(this[_0x2cd130(0x36d)]=_0x58fdd5,this[_0x2cd130(0x179)]=_0x4a826c,this['_localeService']=_0x1b0c6a,this[_0x2cd130(0x285)]=_0x8d3247,this[_0x2cd130(0x340)](),this[_0x2cd130(0x427)](),this[_0x2cd130(0x460)]());}[_0x369344(0x411)](){return this;}[_0x369344(0x260)](){return this;}[_0x369344(0x2c5)](){return this;}[_0x369344(0x416)](){return this;}[_0x369344(0x2c1)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x1295a6=_0x369344;throw new Error(_0x1295a6(0x2a8));}[_0x369344(0x427)](){const _0x5306b0=_0x369344;this['_localCacheService'][_0x5306b0(0x1f7)](this[_0x5306b0(0x3cc)],this[_0x5306b0(0x2f5)],null,[]);}[_0x369344(0x340)](){const _0x32a936=_0x369344;this[_0x32a936(0x36d)]?this[_0x32a936(0x285)]['show']({'title':this[_0x32a936(0x24a)]['t'](_0x32a936(0x38e)),'content':this[_0x32a936(0x24a)]['t'](_0x32a936(0x3ff)),'type':_0x32a936(0x284),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x32a936(0x24a)]['t'](_0x32a936(0x21d)),'content':this[_0x32a936(0x24a)]['t'](_0x32a936(0x23f)),'type':_0x32a936(0x284),'duration':0x0});}[_0x369344(0x460)](){const _0x412cbe=_0x369344;this['_permissionService'][_0x412cbe(0x321)](new _0x690418(this[_0x412cbe(0x3cc)])['id'],!0x1);}};te=ne([m(0x6,_0x3bdb53(_0x2657e7)),m(0x7,_0x2e73f7),m(0x8,_0x34383f),m(0x9,_0x3bdb53(O)),m(0xa,_0x3bdb53(_0x4f9324)),m(0xb,_0x3bdb53(_0x122a5b)),m(0xc,_0x4eec4b)],te);let X=class extends re{constructor(_0x1edaa7,_0x407ee7,_0x26e017,_0x338067,_0x2fd43c,_0x470bd3,_0x271d23,_0x21c7e2,_0x261110,_0x5eac4c){const _0x5185ee=_0x369344;super(_0x1edaa7,_0x407ee7,_0x26e017,_0x338067,_0x2fd43c,_0x261110,_0x5eac4c,_0x271d23,_0x21c7e2),l(this,'status',_0x5185ee(0x225)),this['_injector']=_0x470bd3;}[_0x369344(0x411)](_0x2e3275){const _0x3bff68=_0x369344;return this['_pendingMutations'][_0x3bff68(0x288)](_0x2e3275),this[_0x3bff68(0x157)](),this;}['onRemoteChangeset'](_0x4511ed){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x369344(0x2c5)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x369344(0x416)](){const _0x85362b=_0x369344;throw new Error(_0x85362b(0x3ab));}[_0x369344(0x2c1)](){return this;}[_0x369344(0x2f1)](){const _0xd981b3=_0x369344,{_injector:_0x32fe82,_pendingMutations:_0x14cb31,_awaitingChangeset:_0xad561b,unitID:_0x574dd4,_handler:_0x5d13e9,type:_0x4ee6f9}=this,_0x95f3f6=Os(_0x32fe82,_0x574dd4,_0x4ee6f9,_0xad561b,_0x14cb31,_0x5d13e9);return _0x95f3f6 instanceof V?_0x95f3f6[_0xd981b3(0x1cd)]():(_0x95f3f6 instanceof B||_0x95f3f6 instanceof K)&&_0x95f3f6[_0xd981b3(0x28f)](),_0x95f3f6;}['resend'](){const _0x582357=_0x369344;throw new Error(_0x582357(0x35b));}};X=ne([m(0x5,_0x3bdb53(_0x29e329)),m(0x6,_0x3bdb53(_0x4f9324)),m(0x7,_0x3bdb53(O)),m(0x8,_0x2e73f7),m(0x9,_0x34383f)],X);let W=class extends re{constructor(_0x3cea31,_0x5383bc,_0x4b99da,_0xe8eac6,_0x1df6b9,_0x15e354,_0x3a1f05,_0x43d5d0,_0x3ba1b0,_0x549875,_0x3f0c5d,_0x3818e3,_0x55d821,_0x40c5e1){const _0x5a9064=_0x369344;super(_0x3cea31,_0x5383bc,_0x4b99da,_0xe8eac6,_0x3a1f05,_0x3818e3,_0x55d821,_0x3ba1b0,_0x549875),l(this,_0x5a9064(0x27a),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x1df6b9,this[_0x5a9064(0x456)]=_0x15e354,this[_0x5a9064(0x2e0)]=_0x43d5d0,this[_0x5a9064(0x2d5)]=_0x3f0c5d,this[_0x5a9064(0x27b)]=_0x40c5e1);}[_0x369344(0x463)](_0x5f1d68){const _0x57b956=_0x369344;try{const _0x48fadd=[..._0x5f1d68,...this[_0x57b956(0x456)]],_0x3850b8=[this[_0x57b956(0x1c8)]||this[_0x57b956(0x247)]][_0x57b956(0x3e6)](_0x1306ae=>!!_0x1306ae);let _0x57ff26,_0x2246ec;if(_0x3850b8[_0x57b956(0x3b6)]){const _0x5c7299=this['_transformService']['transformChangesets'](_0x48fadd,_0x3850b8,!0x1);if(!_0x12c9d2(_0x5c7299))throw _0x5c7299[_0x57b956(0x284)];_0x57ff26=_0x5c7299[_0x57b956(0x37e)],_0x2246ec=_0x5c7299[_0x57b956(0x32e)];}else _0x57ff26=_0x48fadd,_0x2246ec=[];let _0x3d0760=this[_0x57b956(0x1e7)];_0x57ff26[_0x57b956(0x33d)](_0x3b0c2c=>{const _0x56eb79=_0x57b956;let _0x5cc4d1;if(_0x3d0760[_0x56eb79(0x3b6)]){const _0xfbe1c1=this['_transformService'][_0x56eb79(0x46d)](_0x3b0c2c,_0x3d0760);if(!_0x1cf98b(_0xfbe1c1))throw _0xfbe1c1['error'];_0x5cc4d1=_0xfbe1c1['c1Prime'],_0x3d0760=_0xfbe1c1[_0x56eb79(0x422)];}else _0x5cc4d1=_0x3b0c2c;this[_0x56eb79(0x3e2)](_0x5cc4d1);}),this[_0x57b956(0x247)]&&this[_0x57b956(0x39b)](),this['_awaitingChangeset']&&_0x2246ec[_0x57b956(0x3b6)]&&(_0x2246ec[0x0][_0x57b956(0x2d7)]=this['_getCurrentRevision']());let _0xc70bcc;if(this[_0x57b956(0x1c8)]&&_0x3d0760[_0x57b956(0x3b6)]!==0x0)_0xc70bcc=this[_0x57b956(0x2e0)][_0x57b956(0x191)](B,this[_0x57b956(0x3cc)],this[_0x57b956(0x2f5)],_0x2246ec[0x0],_0x3d0760,this[_0x57b956(0x187)]);else{if(this[_0x57b956(0x1c8)]&&_0x3d0760[_0x57b956(0x3b6)]===0x0)_0x2246ec[0x0][_0x57b956(0x2d7)]=this['_getCurrentRevision'](),_0xc70bcc=this[_0x57b956(0x2e0)][_0x57b956(0x191)](K,this['unitID'],this[_0x57b956(0x2f5)],_0x2246ec[0x0],this[_0x57b956(0x187)]);else{if(_0x3d0760[_0x57b956(0x3b6)]!==0x0){const _0x2b5002=this[_0x57b956(0x2e0)]['createInstance'](V,this[_0x57b956(0x3cc)],this[_0x57b956(0x2f5)],_0x3d0760,this[_0x57b956(0x187)]);_0x2b5002['_schedule'](),_0xc70bcc=_0x2b5002;}else _0xc70bcc=this['_injector'][_0x57b956(0x191)](De,this[_0x57b956(0x3cc)],this[_0x57b956(0x2f5)],this[_0x57b956(0x187)]);}}return _0xc70bcc[_0x57b956(0x157)](),_0xc70bcc;}catch(_0x4b3246){return this[_0x57b956(0x2d5)][_0x57b956(0x284)]('[FetchMissState]',_0x57b956(0x29f),_0x4b3246),this[_0x57b956(0x2e0)][_0x57b956(0x191)](te,this[_0x57b956(0x3cc)],this['type'],this[_0x57b956(0x1c8)],this[_0x57b956(0x1e7)],this[_0x57b956(0x187)],!0x1);}}[_0x369344(0x28f)](){const _0x753c55=_0x369344;throw new Error(_0x753c55(0x330));}[_0x369344(0x411)](_0xceb98d){const _0x1dc50d=_0x369344;return this[_0x1dc50d(0x1e7)][_0x1dc50d(0x288)](_0xceb98d),this;}['onRemoteChangeset'](_0x189e8d){const _0x282a0a=_0x369344;return this[_0x282a0a(0x456)]['push'](_0x189e8d),this;}[_0x369344(0x2c5)](_0x5bf6b0){const _0xf089fa=_0x369344;if(this[_0xf089fa(0x1c8)])return this['_acknowledgedAwaitingChangeset']=this[_0xf089fa(0x1c8)],this[_0xf089fa(0x1c8)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x369344(0x416)](_0x3c030e){const _0x3b9c84=_0x369344;return this['_onConflict'](!!(_0x3c030e!=null&&_0x3c030e[_0x3b9c84(0x34b)]));}[_0x369344(0x2c1)](){const _0x2875a6=_0x369344;return this[_0x2875a6(0x2e0)][_0x2875a6(0x191)](X,this[_0x2875a6(0x3cc)],this[_0x2875a6(0x2f5)],this[_0x2875a6(0x1c8)],this[_0x2875a6(0x1e7)],this['_handler']);}[_0x369344(0x2f1)](){return this;}[_0x369344(0x16a)](_0x429e40){const _0x19458a=_0x369344;return this[_0x19458a(0x2e0)][_0x19458a(0x191)](te,this[_0x19458a(0x3cc)],this[_0x19458a(0x2f5)],this[_0x19458a(0x1c8)],this[_0x19458a(0x1e7)],this['_handler'],_0x429e40);}};W=ne([m(0x7,_0x3bdb53(_0x29e329)),m(0x8,_0x3bdb53(_0x4f9324)),m(0x9,_0x3bdb53(O)),m(0xa,_0x5e199c),m(0xb,_0x2e73f7),m(0xc,_0x34383f),m(0xd,_0x5cdc22)],W);function Os(_0x293172,_0x2b96b3,_0x4592e2,_0x1808f6,_0x1fa1fe,_0x83b789){const _0x1acc61=_0x369344;return _0x1808f6&&_0x1fa1fe[_0x1acc61(0x3b6)]?_0x293172['createInstance'](B,_0x2b96b3,_0x4592e2,_0x1808f6,_0x1fa1fe,_0x83b789):_0x1808f6?_0x293172[_0x1acc61(0x191)](K,_0x2b96b3,_0x4592e2,_0x1808f6,_0x83b789):_0x1fa1fe[_0x1acc61(0x3b6)]?_0x293172[_0x1acc61(0x191)](V,_0x2b96b3,_0x4592e2,_0x1fa1fe,_0x83b789):_0x293172[_0x1acc61(0x191)](De,_0x2b96b3,_0x4592e2,_0x83b789);}var ze=(_0x4a168b,_0x4affd9,_0x4b79fc,_0x558d8a)=>{const _0x485e66=_0x369344;for(var _0x3d70c1=_0x4affd9,_0x2fe4aa=_0x4a168b[_0x485e66(0x3b6)]-0x1,_0x1ffc89;_0x2fe4aa>=0x0;_0x2fe4aa--)(_0x1ffc89=_0x4a168b[_0x2fe4aa])&&(_0x3d70c1=_0x1ffc89(_0x3d70c1)||_0x3d70c1);return _0x3d70c1;},f=(_0x2f30f4,_0x431006)=>(_0x45dbe0,_0x61fdf8)=>_0x431006(_0x45dbe0,_0x61fdf8,_0x2f30f4);let be=class extends _0x1f6cf4{constructor(_0x267aa3,_0x58dbc0,_0x16cbb7){const _0x163eb9=_0x369344;super(),l(this,_0x163eb9(0x224),new Map()),l(this,_0x163eb9(0x344),new _0x36360c()),(this[_0x163eb9(0x2e0)]=_0x267aa3,this[_0x163eb9(0x313)]=_0x58dbc0,this[_0x163eb9(0x2dd)]=_0x16cbb7,this[_0x163eb9(0x3e0)]());}[_0x369344(0x42d)](){const _0x2ab171=_0x369344;super[_0x2ab171(0x42d)](),this[_0x2ab171(0x224)][_0x2ab171(0x33d)](_0x2125aa=>_0x2125aa['dispose']()),this[_0x2ab171(0x224)][_0x2ab171(0x1b6)]();}['getCollabEntity'](_0x3faa29){const _0x4a8c88=_0x369344;var _0x44f418;return(_0x44f418=this[_0x4a8c88(0x224)][_0x4a8c88(0x19d)](_0x3faa29))!=null?_0x44f418:null;}[_0x369344(0x3be)](_0x3be4d0){const _0x2c94db=_0x369344,_0x1c4bae=this[_0x2c94db(0x27f)](_0x3be4d0);return _0x1c4bae?_0x169b33(_0x1c4bae):this[_0x2c94db(0x344)][_0x2c94db(0x2be)](_0x1aaaf4(_0x4df90a=>_0x4df90a[_0x2c94db(0x3cc)]===_0x3be4d0));}[_0x369344(0x3e0)](){const _0x338eb0=_0x369344;this['_univerInstanceService'][_0x338eb0(0x28b)](_0x195e2d['UNIVER_SHEET'])[_0x338eb0(0x2be)](_0x5f2af8(this[_0x338eb0(0x351)]),_0x33ce7d(0x10))[_0x338eb0(0x3c2)](async _0x17dda5=>{const _0x3e3fcd=_0x338eb0,_0x10e71d=_0x17dda5['getUnitId'](),_0x1fca48=await this['_startCollaboration'](_0x10e71d,H[_0x3e3fcd(0x38c)]);this['_entities'][_0x3e3fcd(0x24c)](_0x10e71d,_0x1fca48);}),this['_univerInstanceService'][_0x338eb0(0x28b)](_0x195e2d[_0x338eb0(0x3c6)])['pipe'](_0x5f2af8(this['dispose$']),_0x33ce7d(0x10))['pipe'](_0x1aaaf4(_0x49ace8=>!_0x49ace8[_0x338eb0(0x2c0)]()[_0x338eb0(0x38b)]('__')))[_0x338eb0(0x3c2)](async _0x5f5103=>{const _0x447e20=_0x338eb0,_0x431854=_0x5f5103[_0x447e20(0x2c0)](),_0x34effd=await this[_0x447e20(0x3ba)](_0x431854,H[_0x447e20(0x3c6)]);this[_0x447e20(0x224)][_0x447e20(0x24c)](_0x431854,_0x34effd);}),_0x4de0cc(this['_univerInstanceService'][_0x338eb0(0x3fb)](_0x195e2d[_0x338eb0(0x38c)]),this[_0x338eb0(0x2dd)][_0x338eb0(0x3fb)](_0x195e2d['UNIVER_DOC']))[_0x338eb0(0x2be)](_0x5f2af8(this[_0x338eb0(0x351)]))[_0x338eb0(0x3c2)](_0x49d9ba=>{const _0x48d813=_0x338eb0,_0x1dc995=_0x49d9ba[_0x48d813(0x2c0)](),_0x51c5a4=this[_0x48d813(0x224)][_0x48d813(0x19d)](_0x1dc995);_0x51c5a4&&(_0x51c5a4[_0x48d813(0x42d)](),this[_0x48d813(0x224)][_0x48d813(0x358)](_0x1dc995));});}async['_startCollaboration'](_0x9f608b,_0x4b8bc6){const _0x1bf324=_0x369344,_0x14cd6f=await this['_collabSessionService'][_0x1bf324(0x24d)](_0x9f608b),_0x3e0089=this[_0x1bf324(0x2e0)][_0x1bf324(0x191)](this['_getCtorByUniverType'](_0x4b8bc6),_0x9f608b,_0x4b8bc6,_0x14cd6f);return await _0x3e0089['init'](),this['_entityInit$'][_0x1bf324(0x43d)](_0x3e0089),_0x3e0089;}[_0x369344(0x2bc)](_0x55f0a4){const _0x5532f5=_0x369344;switch(_0x55f0a4){case H[_0x5532f5(0x3c6)]:return gt;case H[_0x5532f5(0x38c)]:return mt;default:throw new Error(_0x5532f5(0x343)+_0x55f0a4);}}};be=ze([_0x3cfe98(_0x41440a[_0x369344(0x349)],be),f(0x0,_0x3bdb53(_0x29e329)),f(0x1,_0x3bdb53(Oe)),f(0x2,_0x1e6754)],be);let Ge=class extends _0x1f6cf4{constructor(_0x18fc87,_0x2e0553,_0x23a8bc,_0x44b866,_0x37cec0,_0x4d1cc3,_0x409701,_0x23d37b,_0x3a3a0e,_0x418e57,_0xf3fd40,_0x677459,_0x3d5c15){const _0x173d7a=_0x369344;super(),l(this,_0x173d7a(0x356),new _0x2a5f89(null)),l(this,_0x173d7a(0x353),this[_0x173d7a(0x356)][_0x173d7a(0x36b)]()),l(this,_0x173d7a(0x39a)),l(this,_0x173d7a(0x204),!0x1),l(this,_0x173d7a(0x29e),this[_0x173d7a(0x353)][_0x173d7a(0x2be)](_0x19010f(_0xe895de=>_0xe895de?_0xe895de[_0x173d7a(0x27a)]:y[_0x173d7a(0x37b)]),_0x55c0ae(0x1))),l(this,_0x173d7a(0x447),!0x1),l(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x18fc87,this[_0x173d7a(0x35d)]=_0x2e0553,this[_0x173d7a(0x1a8)]=_0x23a8bc,this[_0x173d7a(0x2e0)]=_0x44b866,this[_0x173d7a(0x2ca)]=_0x37cec0,this['_compressMutationService']=_0x4d1cc3,this[_0x173d7a(0x24a)]=_0x409701,this[_0x173d7a(0x317)]=_0x23d37b,this[_0x173d7a(0x2d5)]=_0x3a3a0e,this['_commandService']=_0x418e57,this[_0x173d7a(0x41a)]=_0xf3fd40,this[_0x173d7a(0x179)]=_0x677459,this[_0x173d7a(0x1f3)]=_0x3d5c15);}get[_0x369344(0x185)](){const _0x1909a4=_0x369344;return this[_0x1909a4(0x39a)];}async['init'](){const _0x11e608=_0x369344;if(this['state'])throw new Error(_0x11e608(0x16c));await this[_0x11e608(0x3e0)]();}[_0x369344(0x429)](){const _0x57dbd0=_0x369344;return this[_0x57dbd0(0x204)]=!0x0,_0xd3a753(()=>{const _0x4444e1=_0x57dbd0;this[_0x4444e1(0x204)]=!0x1,this[_0x4444e1(0x3f4)]();});}[_0x369344(0x449)](_0x293923){const _0x4a8d1e=_0x369344;this[_0x4a8d1e(0x39a)]=_0x293923,this[_0x4a8d1e(0x356)][_0x4a8d1e(0x43d)](_0x293923);}async[_0x369344(0x3e0)](){const _0x1bc332=_0x369344;var _0x45333a;return this[_0x1bc332(0x449)](await this[_0x1bc332(0x33f)]()),this[_0x1bc332(0x1f3)]&&((_0x45333a=this['_singleActiveUnitService'])==null||_0x45333a['editingUnit'](this['unitID']),this[_0x1bc332(0x1f9)](_0xd3a753(this['_singleActiveUnitService'][_0x1bc332(0x42a)](this['unitID'])[_0x1bc332(0x3c2)](_0x3405ed=>{const _0x4c362c=_0x1bc332;this[_0x4c362c(0x2d5)]['debug'](_0x4c362c(0x3ef),_0x4c362c(0x1c7),_0x3405ed),_0x3405ed===Rs[_0x4c362c(0x26d)]?(this[_0x4c362c(0x41a)][_0x4c362c(0x1d1)]({'content':this['_localeService']['t'](_0x4c362c(0x333)),'type':_0x1aba92['Warning']}),this[_0x4c362c(0x179)]['updatePermissionPoint'](new _0x690418(this['unitID'])['id'],!0x1)):this[_0x4c362c(0x179)][_0x4c362c(0x321)](new _0x690418(this['unitID'])['id'],!0x0);})))),this[_0x1bc332(0x1f9)](_0xd3a753(this[_0x1bc332(0x1a8)][_0x1bc332(0x2b7)][_0x1bc332(0x3c2)](_0x22e2b2=>{const _0x2edb2f=_0x1bc332;_0x22e2b2===_e['ONLINE']?this[_0x2edb2f(0x238)]():_0x22e2b2===_e[_0x2edb2f(0x37b)]&&this[_0x2edb2f(0x2d3)]();}))),this[_0x1bc332(0x1f9)](_0xd3a753(this[_0x1bc332(0x1a8)][_0x1bc332(0x326)][_0x1bc332(0x3c2)](_0x169ee2=>{const _0x2db309=_0x1bc332;try{switch(_0x169ee2[_0x2db309(0x1c5)]){case _0x217d29['NEW_CHANGESETS']:{this[_0x2db309(0x2e2)](_0xc8b712(_0x169ee2[_0x2db309(0x336)]));break;}case _0x217d29['CHANGESET_ACK']:{this['_onRemoteACK'](_0x169ee2[_0x2db309(0x336)]);break;}case _0x217d29[_0x2db309(0x3c4)]:{this[_0x2db309(0x428)]();break;}case _0x217d29[_0x2db309(0x264)]:{this[_0x2db309(0x329)](_0x169ee2[_0x2db309(0x336)][_0x2db309(0x1f4)]['map'](_0x35d576=>_0xc8b712(_0x35d576)));break;}case _0x217d29[_0x2db309(0x2e7)]:this[_0x2db309(0x428)]({'isPermissionRej':!0x0});}}catch(_0x3bf044){throw console[_0x2db309(0x284)](_0x2db309(0x2e3),_0x3bf044),_0x3bf044;}}))),this[_0x1bc332(0x39a)];}[_0x369344(0x22f)](){const _0xeb1fb=_0x369344;this[_0xeb1fb(0x447)]=!0x1;}[_0x369344(0x250)](){const _0x46b2a4=_0x369344;if(this[_0x46b2a4(0x447)])throw new Error(_0x46b2a4(0x443));this[_0x46b2a4(0x447)]=!0x0;}[_0x369344(0x309)](_0x2a8fd8){const _0x432794=_0x369344;this[_0x432794(0x250)](),this['_updateState'](this[_0x432794(0x39a)][_0x432794(0x411)](_0x2a8fd8)),this[_0x432794(0x22f)]();}[_0x369344(0x2e2)](_0x3122c7){const _0x56bf9c=_0x369344;if(!(_0x3122c7[_0x56bf9c(0x35a)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0x56bf9c(0x3cc)]))){if(this['_collaborationPaused']){this[_0x56bf9c(0x408)][_0x56bf9c(0x288)](_0x3122c7);return;}this[_0x56bf9c(0x1db)](_0x3122c7);}}[_0x369344(0x3f4)](){const _0x58d5e8=_0x369344;this[_0x58d5e8(0x408)][_0x58d5e8(0x33d)](_0xbd0b08=>this[_0x58d5e8(0x1db)](_0xbd0b08)),this[_0x58d5e8(0x408)]=[];}['_applyRemoteChangeset'](_0x4a46c7){const _0x1a7da3=_0x369344,_0x5910ea=this[_0x1a7da3(0x2b6)][_0x1a7da3(0x451)][_0x1a7da3(0x159)](this[_0x1a7da3(0x2b6)][_0x1a7da3(0x451)]['getInterceptPoints']()[_0x1a7da3(0x222)])(_0x4a46c7[_0x1a7da3(0x2e9)],null)||_0x4a46c7[_0x1a7da3(0x2e9)],_0x128e49={..._0x4a46c7,'mutations':_0x5910ea};this['_lockTransition'](),this[_0x1a7da3(0x449)](this[_0x1a7da3(0x39a)][_0x1a7da3(0x260)](_0x128e49)),this[_0x1a7da3(0x22f)]();}[_0x369344(0x3bd)](_0x4d7ed7){const _0x420704=_0x369344;this[_0x420704(0x250)](),this[_0x420704(0x449)](this[_0x420704(0x39a)]['onRemoteAck'](_0x4d7ed7)),this[_0x420704(0x22f)]();}[_0x369344(0x428)](_0x4dfcc1){const _0x58ade4=_0x369344;this[_0x58ade4(0x250)](),this[_0x58ade4(0x449)](this[_0x58ade4(0x39a)][_0x58ade4(0x416)](_0x4dfcc1)),this[_0x58ade4(0x22f)]();}[_0x369344(0x329)](_0x49dab8){const _0x419cf6=_0x369344;if(!(this[_0x419cf6(0x39a)]instanceof W))throw new TypeError(_0x419cf6(0x18c));const _0xeb6b65=_0x49dab8[_0x419cf6(0x1b8)](_0x54c260=>{const _0x5b14ec=_0x419cf6,_0x53304a=this[_0x5b14ec(0x2b6)][_0x5b14ec(0x451)][_0x5b14ec(0x159)](this[_0x5b14ec(0x2b6)][_0x5b14ec(0x451)]['getInterceptPoints']()[_0x5b14ec(0x222)])(_0x54c260['mutations'],null)||_0x54c260[_0x5b14ec(0x2e9)];return{..._0x54c260,'mutations':_0x53304a};});this['_lockTransition'](),this[_0x419cf6(0x449)](this[_0x419cf6(0x39a)]['onMissedChangesetFetched'](_0xeb6b65)),this['_unlockTransition']();}[_0x369344(0x2d3)](){const _0x238a7a=_0x369344;this[_0x238a7a(0x250)](),this[_0x238a7a(0x449)](this[_0x238a7a(0x39a)]['toggleOffline']()),this[_0x238a7a(0x22f)]();}['_toggleOnline'](){const _0xe1c2e1=_0x369344;this[_0xe1c2e1(0x250)](),this[_0xe1c2e1(0x449)](this[_0xe1c2e1(0x39a)][_0xe1c2e1(0x2f1)]()),this['_unlockTransition']();}async[_0x369344(0x33f)](){return new Promise(_0x2a8f31=>{const _0x4acb21=_0xfefa;this[_0x4acb21(0x1a8)][_0x4acb21(0x2b7)][_0x4acb21(0x2be)](_0x1cadbd(0x1))[_0x4acb21(0x3c2)](async _0x217c8f=>{const _0xcc0056=_0x4acb21;_0x2a8f31(await this[_0xcc0056(0x3db)](_0x217c8f===_e[_0xcc0056(0x3a5)]));});});}['_createHandler'](){const _0x15944c=_0x369344,_0x3a9b5e=this[_0x15944c(0x3cc)];return{'onStateChange':(_0x52bb30,_0x3b132f)=>{const _0x324059=_0x15944c;if(_0x52bb30!==this[_0x324059(0x39a)])throw new Error(_0x324059(0x308)+_0x52bb30['status']+_0x324059(0x43b)+_0x3b132f[_0x324059(0x27a)]+'\x0aCurrent:\x20'+this['_state'][_0x324059(0x27a)]);this['_updateState'](_0x3b132f);},'onSendChangeset':_0x42181f=>{const _0x5db289=_0x15944c,_0x42fa17={'eventID':_0x217d29[_0x5db289(0x3d7)],'data':{'unitID':_0x42181f[_0x5db289(0x3cc)],'unitType':this['_type'],'changeset':_0x42181f,'memberID':this[_0x5db289(0x1a8)][_0x5db289(0x1c3)]()}};this[_0x5db289(0x1a8)]['send'](_0x42fa17,this['unitID']);},'onMissingChangesets':({from:_0x59e40a,to:_0x48d9d0})=>{const _0x4c01f1=_0x15944c;this[_0x4c01f1(0x2d5)][_0x4c01f1(0x215)]('[CollaborationEntity]',_0x4c01f1(0x409)+_0x59e40a+'\x20to\x20'+_0x48d9d0);const _0x28db93={'eventID':_0x217d29[_0x4c01f1(0x1ba)],'data':{'unitID':_0x3a9b5e,'unitType':this['_type'],'from':_0x59e40a,'to':_0x48d9d0}};this['_session'][_0x4c01f1(0x332)](_0x28db93,this[_0x4c01f1(0x3cc)]);}};}async[_0x369344(0x3db)](_0x2ea155){const _0x337499=_0x369344;var _0x291d05,_0x500f4f;const _0x3ea586=await this[_0x337499(0x2ca)][_0x337499(0x1dd)](this[_0x337499(0x3cc)]),_0x861bba=(_0x291d05=_0x3ea586==null?void 0x0:_0x3ea586[_0x337499(0x2e9)])!=null?_0x291d05:[],_0x48a8e9=(_0x500f4f=_0x3ea586==null?void 0x0:_0x3ea586[_0x337499(0x46f)])!=null?_0x500f4f:null,_0x1b0f04=this['unitID'];try{this[_0x337499(0x3c9)](_0x48a8e9,_0x861bba);}catch(_0x3ac47e){this[_0x337499(0x2d5)][_0x337499(0x284)](_0x3ac47e);}const _0x4fa66c=this['_createHandler']();if(_0x2ea155){const _0x26ea1b=Os(this[_0x337499(0x2e0)],_0x1b0f04,this[_0x337499(0x35d)],_0x48a8e9,_0x861bba,_0x4fa66c);return _0x26ea1b instanceof V?_0x26ea1b[_0x337499(0x1cd)]():(_0x26ea1b instanceof B||_0x26ea1b instanceof K)&&_0x26ea1b[_0x337499(0x28f)](),_0x26ea1b;}return this['_injector'][_0x337499(0x191)](X,_0x1b0f04,this[_0x337499(0x35d)],_0x48a8e9,_0x861bba,_0x4fa66c);}[_0x369344(0x3c9)](_0x568db9,_0x54ec63){const _0x30969c=_0x369344;var _0x48db50,_0x322863;const _0x271cd4=this[_0x30969c(0x2b6)][_0x30969c(0x451)][_0x30969c(0x159)](this[_0x30969c(0x2b6)][_0x30969c(0x451)]['getInterceptPoints']()[_0x30969c(0x222)]);(_0x48db50=_0x271cd4((_0x568db9==null?void 0x0:_0x568db9[_0x30969c(0x2e9)])||[],null))==null||_0x48db50[_0x30969c(0x33d)](_0x55f06c=>this[_0x30969c(0x367)]['executeCommand'](_0x55f06c['id'],_0x55f06c[_0x30969c(0x3fc)])),(_0x322863=_0x271cd4(_0x54ec63||[],null))==null||_0x322863[_0x30969c(0x33d)](_0x3eacf3=>this[_0x30969c(0x367)]['executeCommand'](_0x3eacf3['id'],_0x3eacf3[_0x30969c(0x3fc)]));}};Ge=ze([f(0x3,_0x3bdb53(_0x29e329)),f(0x4,_0x3bdb53(O)),f(0x5,_0x3bdb53(_0x528191)),f(0x6,_0x3bdb53(_0x122a5b)),f(0x7,_0x3bdb53(_0x4f9324)),f(0x8,_0x5e199c),f(0x9,_0x2e73f7),f(0xa,_0x45f7cf),f(0xb,_0x2657e7),f(0xc,_0x4447c0(Je))],Ge);let gt=class extends Ge{constructor(_0x6b7bb9,_0xb05d55,_0x5f3ea7,_0x1ecfeb,_0x56dd93,_0xf225e2,_0x87a92e,_0x53a5d0,_0x153fde,_0x1b3384,_0x286c51,_0x34f117,_0x5d40aa,_0x47ac12,_0x12f7cc,_0x1c1538,_0x4bf057){const _0x4ee190=_0x369344;super(_0x6b7bb9,_0xb05d55,_0x5f3ea7,_0x1ecfeb,_0x56dd93,_0xf225e2,_0x87a92e,_0x53a5d0,_0x5d40aa,_0x47ac12,_0x12f7cc,_0x1c1538,_0x4bf057),this[_0x4ee190(0x3cc)]=_0x6b7bb9,this['type']=_0xb05d55,this[_0x4ee190(0x386)]=_0x5f3ea7,this['_docStateChangeManagerService']=_0x153fde,this[_0x4ee190(0x296)]=_0x1b3384,this['_docTransformSelectionsService']=_0x286c51,this[_0x4ee190(0x438)]=_0x34f117;}[_0x369344(0x23e)](){const _0x453a49=_0x369344,_0x4f3f8d=super[_0x453a49(0x23e)]();return _0x4f3f8d[_0x453a49(0x1d5)]=_0x1d8ab5=>this[_0x453a49(0x296)]['transformIMECache'](_0x1d8ab5),_0x4f3f8d[_0x453a49(0x242)]=_0x57ca5a=>this['_docTransformSelectionsService'][_0x453a49(0x232)](_0x57ca5a),_0x4f3f8d[_0x453a49(0x40e)]=_0x4997d4=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x4997d4),_0x4f3f8d[_0x453a49(0x440)]=_0x3e436b=>this[_0x453a49(0x296)][_0x453a49(0x257)](_0x3e436b),_0x4f3f8d;}async[_0x369344(0x3e0)](){const _0x219e1b=_0x369344,_0xa0d419=await super['_init']();return this[_0x219e1b(0x418)][_0x219e1b(0x433)][_0x219e1b(0x2be)](_0x5f2af8(this[_0x219e1b(0x351)]))['subscribe'](_0x5b87b8=>{const _0x37655e=_0x219e1b;if(_0x5b87b8==null)return;const {unitId:_0x269672,redoState:_0x2e1fc6,commandId:_0x4703f7}=_0x5b87b8;if(_0x269672!==this[_0x37655e(0x3cc)])return;const _0x299341={'id':_0x4703f7,'type':_0x10679a[_0x37655e(0x23c)],'params':{'unitId':_0x269672,'actions':_0x2e1fc6[_0x37655e(0x289)],'textRanges':null}};this[_0x37655e(0x309)](_0x299341);}),_0xa0d419;}};gt=ze([f(0x3,_0x3bdb53(_0x29e329)),f(0x4,_0x3bdb53(O)),f(0x5,_0x3bdb53(_0x528191)),f(0x6,_0x3bdb53(_0x122a5b)),f(0x7,_0x3bdb53(_0x4f9324)),f(0x8,_0x3bdb53(_0x2ad533)),f(0x9,_0x3bdb53(Ve)),f(0xa,_0x3bdb53(Be)),f(0xb,_0x3bdb53(Mt)),f(0xc,_0x5e199c),f(0xd,_0x2e73f7),f(0xe,_0x45f7cf),f(0xf,_0x2657e7),f(0x10,_0x4447c0(Je))],gt);let mt=class extends Ge{constructor(_0x54e18b,_0x3582fc,_0x28ec12,_0x420365,_0x2dd8df,_0x2dd285,_0x144629,_0x3220ea,_0x45becc,_0x3bb5f3,_0x32d773,_0x247373,_0xff734d,_0x5aade0){const _0x16af26=_0x369344;super(_0x54e18b,_0x3582fc,_0x28ec12,_0x420365,_0x2dd8df,_0x2dd285,_0x144629,_0x3220ea,_0x3bb5f3,_0x32d773,_0x247373,_0xff734d,_0x5aade0),this[_0x16af26(0x3cc)]=_0x54e18b,this['type']=_0x3582fc,this[_0x16af26(0x386)]=_0x28ec12,this[_0x16af26(0x3b7)]=_0x45becc;}[_0x369344(0x23e)](){const _0x328403=_0x369344,_0x29c828=super['_createHandler']();return _0x29c828[_0x328403(0x242)]=_0x53caff=>this[_0x328403(0x3b7)][_0x328403(0x232)](_0x53caff),_0x29c828;}async[_0x369344(0x3e0)](){const _0x37e93e=_0x369344,_0x45a26e=await super['_init']();return this[_0x37e93e(0x1f9)](this[_0x37e93e(0x367)]['onCommandExecuted']((_0x17c95,_0x1d432e)=>{const _0xb1fbd1=_0x37e93e;if(_0x17c95[_0xb1fbd1(0x2f5)]!==_0x10679a[_0xb1fbd1(0x23c)]||_0x1d432e!=null&&_0x1d432e[_0xb1fbd1(0x37a)]||_0x1d432e!=null&&_0x1d432e[_0xb1fbd1(0x3ed)])return;const _0x353867=_0x17c95[_0xb1fbd1(0x3fc)];if((_0x353867==null?void 0x0:_0x353867[_0xb1fbd1(0x3cd)])!==this[_0xb1fbd1(0x3cc)])return;const _0x42380a=_0x17c95,_0x596c86=this[_0xb1fbd1(0x2b6)]['interceptor']['fetchThroughInterceptors'](this[_0xb1fbd1(0x2b6)][_0xb1fbd1(0x451)]['getInterceptPoints']()[_0xb1fbd1(0x41e)])([_0x42380a],null)||[_0x42380a];this[_0xb1fbd1(0x309)](_0x596c86[0x0]);})),_0x45a26e;}};mt=ze([f(0x3,_0x3bdb53(_0x29e329)),f(0x4,_0x3bdb53(O)),f(0x5,_0x3bdb53(_0x528191)),f(0x6,_0x3bdb53(_0x122a5b)),f(0x7,_0x3bdb53(_0x4f9324)),f(0x8,_0x3bdb53(We)),f(0x9,_0x5e199c),f(0xa,_0x2e73f7),f(0xb,_0x45f7cf),f(0xc,_0x2657e7),f(0xd,_0x4447c0(Je))],mt);const Jt=[_0x369344(0x378),_0x369344(0x1e8),_0x369344(0x1a3),_0x369344(0x21a),_0x369344(0x303),'gold400'];class At extends _0x1bbf2c{constructor(){const _0x35717f=_0x369344;super(...arguments),l(this,_0x35717f(0x32d),new Map()),l(this,_0x35717f(0x3f5),0x0);}['assignAColorForMemberID'](_0x24d721){const _0x2c52f1=_0x369344;if(this['_assignedColors'][_0x2c52f1(0x282)](_0x24d721))return this[_0x2c52f1(0x32d)]['get'](_0x24d721);const _0x188158=Jt[this['_colorIndex']];return this[_0x2c52f1(0x3f5)]=(this[_0x2c52f1(0x3f5)]+0x1)%Jt['length'],this[_0x2c52f1(0x32d)][_0x2c52f1(0x24c)](_0x24d721,_0x188158),_0x188158;}}var fn=(_0x5ef02a,_0x7cabf9,_0x5cbcd8,_0x47772a)=>{for(var _0x4810c2=_0x7cabf9,_0x123796=_0x5ef02a['length']-0x1,_0x1abc38;_0x123796>=0x0;_0x123796--)(_0x1abc38=_0x5ef02a[_0x123796])&&(_0x4810c2=_0x1abc38(_0x4810c2)||_0x4810c2);return _0x4810c2;},ae=(_0x16714f,_0x4f7bc1)=>(_0x266576,_0x52ad19)=>_0x4f7bc1(_0x266576,_0x52ad19,_0x16714f);const vn=0x12c,pn=0x64,In=()=>{let _0x553abb=[],_0x183b1c=!0x1;return _0x49ce6c=>{_0x553abb['push'](_0x49ce6c),_0x183b1c||(_0x183b1c=!0x0,setTimeout(()=>{_0x553abb['forEach'](_0xefcd6c=>_0xefcd6c()),_0x553abb=[],_0x183b1c=!0x1;}));};};let St=class extends _0x1f6cf4{constructor(_0x4550ec,_0x3dee33,_0x254052,_0xc113f6,_0xace1e8,_0x14ceb0,_0x7c8348,_0x4b5b80){const _0x2eb142=_0x369344;super(),l(this,'_online',!0x1),l(this,_0x2eb142(0x3e0),!0x1),l(this,_0x2eb142(0x406),new _0x2a5f89(new Map())),l(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),l(this,_0x2eb142(0x401),new _0x2a5f89([])),l(this,_0x2eb142(0x298),this[_0x2eb142(0x401)][_0x2eb142(0x2be)](_0x136cc0(vn))),l(this,_0x2eb142(0x397),_0x507660((_0x429d7c,_0x3cbb2c)=>{const _0x49393a=_0x2eb142,_0x20f532={'eventID':_0x217d29[_0x49393a(0x3d4)],'data':{'unitID':this[_0x49393a(0x3cc)],'memberID':this[_0x49393a(0x1a8)][_0x49393a(0x1c3)](),'selection':_0x3b8151(_0x429d7c,_0x3cbb2c['range'])}};this[_0x49393a(0x1a8)][_0x49393a(0x332)](_0x20f532,this['unitID']);},pn)),(this[_0x2eb142(0x3cc)]=_0x4550ec,this['_session']=_0x3dee33,this[_0x2eb142(0x2e0)]=_0x254052,this[_0x2eb142(0x2d0)]=_0xc113f6,this[_0x2eb142(0x2c2)]=_0xace1e8,this[_0x2eb142(0x2dd)]=_0x14ceb0,this[_0x2eb142(0x367)]=_0x7c8348,this[_0x2eb142(0x170)]=_0x4b5b80);}get['cursorInfo'](){const _0x231794=_0x369344;return this[_0x231794(0x406)]['getValue']();}get[_0x369344(0x1f8)](){const _0x5c230c=_0x369344;return this[_0x5c230c(0x401)]['getValue']();}[_0x369344(0x42d)](){const _0x4297ef=_0x369344;super[_0x4297ef(0x42d)](),this[_0x4297ef(0x406)][_0x4297ef(0x43d)](new Map()),this[_0x4297ef(0x406)][_0x4297ef(0x17c)](),this[_0x4297ef(0x401)][_0x4297ef(0x43d)]([]),this['_roomMembers$'][_0x4297ef(0x17c)]();}['init'](){const _0x270296=_0x369344;this[_0x270296(0x3e0)]||(this[_0x270296(0x3e0)]=!0x0,this['_session'][_0x270296(0x2b7)][_0x270296(0x2be)](_0x5f2af8(this[_0x270296(0x351)]))[_0x270296(0x3c2)](_0x2af34c=>{const _0x12840f=_0x270296;_0x2af34c===_e[_0x12840f(0x3a5)]?this['_toggleOnline']():this[_0x12840f(0x2d3)]();}),this[_0x270296(0x1a8)][_0x270296(0x326)][_0x270296(0x2be)](_0x5f2af8(this['dispose$']))[_0x270296(0x3c2)](_0xaa0232=>{const _0x483cd1=_0x270296,_0x257503=_0xaa0232[_0x483cd1(0x1c5)];_0x257503===_0x217d29[_0x483cd1(0x3d4)]&&this[_0x483cd1(0x2ce)](_0xaa0232),_0x257503===_0x217d29[_0x483cd1(0x1ee)]&&this[_0x483cd1(0x287)](_0xaa0232);}),this['_onRefRangeChange'](),this[_0x270296(0x1f9)](this[_0x270296(0x367)]['onCommandExecuted'](_0x47ac6e=>{const _0x228cee=_0x270296;if(this[_0x228cee(0x2b2)]&&_0x47ac6e['id']===_0x20fa8e['id']&&_0x47ac6e[_0x228cee(0x3fc)][_0x228cee(0x3cd)]===this['unitID']){const _0x42f0c8=_0x47ac6e[_0x228cee(0x3fc)];this[_0x228cee(0x397)](_0x42f0c8['subUnitId'],_0x42f0c8[_0x228cee(0x19f)][0x0]);}})));}[_0x369344(0x2ce)](_0x15f461){const _0x5bbc71=_0x369344;var _0x9f1e82,_0x4fdee4;const {memberID:_0x3107ba,selection:_0x1dddfd}=_0x15f461['data'],{sheetName:_0x1e9ff1,range:_0x224de4}=_0x5a55eb(_0x1dddfd),_0x403f8a={'name':(_0x4fdee4=(_0x9f1e82=this[_0x5bbc71(0x2c2)][_0x5bbc71(0x3da)](this[_0x5bbc71(0x3cc)],_0x3107ba))==null?void 0x0:_0x9f1e82['name'])!=null?_0x4fdee4:_0x5bbc71(0x42b),'range':this[_0x5bbc71(0x3f3)](_0x1e9ff1,_0x224de4),'sheetID':_0x1e9ff1,'color':this['_colorAssignService'][_0x5bbc71(0x1e9)](_0x3107ba),'selection':_0x1dddfd},_0x1fde1d=this[_0x5bbc71(0x1b3)];_0x1fde1d[_0x5bbc71(0x24c)](_0x3107ba,_0x403f8a),this['_cursorInfo$']['next'](_0x1fde1d);}[_0x369344(0x287)](_0x3084f8){const _0x431597=_0x369344,{memberID:_0x51c937}=_0x3084f8[_0x431597(0x336)],_0x1384c3=this['cursorInfo'];_0x1384c3[_0x431597(0x358)](_0x51c937),this[_0x431597(0x406)][_0x431597(0x43d)](_0x1384c3);}[_0x369344(0x3f3)](_0x466d66,_0x127814){const _0x1f412e=_0x369344;var _0xb505a,_0x14acbb;const _0x5a1252=(_0x14acbb=(_0xb505a=this[_0x1f412e(0x2dd)][_0x1f412e(0x252)](this[_0x1f412e(0x3cc)]))==null?void 0x0:_0xb505a[_0x1f412e(0x375)](_0x466d66))==null?void 0x0:_0x14acbb['getMergeData']();return(_0x5a1252==null?void 0x0:_0x5a1252['find'](_0x58c69e=>_0x2defa9[_0x1f412e(0x214)](_0x58c69e,_0x127814)))||_0x127814;}[_0x369344(0x2ff)](){const _0x432a08=_0x369344,_0x37517f=new _0x17acc5(),_0x4ce642=In(),_0x59e2d0=()=>{const _0x38f15f=_0xfefa;_0x37517f[_0x38f15f(0x42d)]();const _0x18e20e=(_0x26a8b7,_0xfb4d7e,_0x831996,_0xa63238)=>{const _0x5a2f50=_0x38f15f;let _0x1d2a07=[];switch(_0x26a8b7['id']){case _0x43f5f2[_0x5a2f50(0x15b)]:{_0x1d2a07=_0x4aa26a(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x300)]:{_0x1d2a07=_0x18b750(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x346)]:{_0x1d2a07=_0x2fb529(_0x26a8b7,_0xa63238);break;}case _0x43f5f2['InsertRangeMoveDownCommandId']:{_0x1d2a07=_0x224b57(_0x26a8b7,_0xa63238);break;}case _0x43f5f2['InsertRangeMoveRightCommandId']:{_0x1d2a07=_0x3b6994(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x3d0)]:{_0x1d2a07=_0x51d70f(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x3c0)]:{_0x1d2a07=_0x318054(_0x26a8b7,_0xa63238);break;}case _0x43f5f2[_0x5a2f50(0x34e)]:{_0x1d2a07=_0x137d66(_0x26a8b7,_0xa63238);break;}case _0x43f5f2['RemoveRowCommandId']:{_0x1d2a07=_0x663d2b(_0x26a8b7,_0xa63238);break;}}const _0x28cbb1=_0x45121f(_0x1d2a07,_0xa63238),_0x51c5c7=this[_0x5a2f50(0x1b3)][_0x5a2f50(0x19d)](_0xfb4d7e);if(_0x51c5c7&&_0x28cbb1){const _0x351976={..._0x51c5c7,'range':_0x28cbb1};this[_0x5a2f50(0x1b3)]['set'](_0xfb4d7e,_0x351976),_0x4ce642(()=>{const _0x2a3c3a=_0x5a2f50,_0x3e5dca=this[_0x2a3c3a(0x170)]['registerRefRange'](_0x28cbb1,_0x25c2d0=>(_0x3e5dca[_0x2a3c3a(0x42d)](),_0x18e20e(_0x25c2d0,_0xfb4d7e,_0x831996,_0x28cbb1)));_0x37517f[_0x2a3c3a(0x1a0)](_0x3e5dca);});}return{'redos':[],'undos':[]};};this[_0x38f15f(0x1b3)][_0x38f15f(0x33d)]((_0x5aa76c,_0x3f8da7)=>{const _0x1c2694=_0x38f15f,{range:_0x354643,sheetID:_0x395055}=_0x5aa76c,_0x57a2a2=this[_0x1c2694(0x170)][_0x1c2694(0x388)](_0x354643,_0x3c49a6=>(_0x57a2a2[_0x1c2694(0x42d)](),_0x18e20e(_0x3c49a6,_0x3f8da7,_0x395055,_0x354643)));_0x37517f[_0x1c2694(0x1a0)](_0x57a2a2);});};this['disposeWithMe'](_0xd3a753(this[_0x432a08(0x406)]['subscribe'](()=>{_0x59e2d0();})));}[_0x369344(0x238)](){const _0x4960e7=_0x369344;var _0xa7b854,_0xca2adf;if(this[_0x4960e7(0x2b2)]=!0x0,((_0xa7b854=this[_0x4960e7(0x2dd)][_0x4960e7(0x3a6)]())==null?void 0x0:_0xa7b854[_0x4960e7(0x2c0)]())!==this[_0x4960e7(0x3cc)])return;const _0x5c5ea4=(_0xca2adf=this['_injector'][_0x4960e7(0x19d)](_0x12ef89)['getSelections']())==null?void 0x0:_0xca2adf[0x0];_0x5c5ea4&&this[_0x4960e7(0x397)](this[_0x4960e7(0x2dd)]['getCurrentUnitForType'](_0x195e2d['UNIVER_SHEET'])['getActiveSheet']()[_0x4960e7(0x30e)](),_0x5c5ea4);}['_toggleOffline'](){const _0x1f7b61=_0x369344;this[_0x1f7b61(0x2b2)]=!0x1;}};St=fn([ae(0x2,_0x3bdb53(_0x29e329)),ae(0x3,_0x3bdb53(At)),ae(0x4,_0x3bdb53(ee)),ae(0x5,_0x1e6754),ae(0x6,_0x2e73f7),ae(0x7,_0x3bdb53(_0x5658f4))],St);var En=(_0x5a6af1,_0x414a63,_0x247529,_0x92db42)=>{const _0x44db48=_0x369344;for(var _0x2994ce=_0x414a63,_0x21ae93=_0x5a6af1[_0x44db48(0x3b6)]-0x1,_0x18f815;_0x21ae93>=0x0;_0x21ae93--)(_0x18f815=_0x5a6af1[_0x21ae93])&&(_0x2994ce=_0x18f815(_0x2994ce)||_0x2994ce);return _0x2994ce;},q=(_0xdbf41f,_0x50e5e2)=>(_0x18183a,_0x4d0321)=>_0x50e5e2(_0x18183a,_0x4d0321,_0xdbf41f);const Cn=0x12c,bn=0x64;let ft=class extends _0x1f6cf4{constructor(_0x61b67d,_0x5f1607,_0x5aa103,_0x216bb3,_0x1ed691,_0x1da44f,_0x3b51b4,_0x45e28b,_0x476a65){const _0x11f6d2=_0x369344;super(),l(this,_0x11f6d2(0x2b2),!0x1),l(this,_0x11f6d2(0x3e0),!0x1),l(this,_0x11f6d2(0x406),new _0x2a5f89(new Map())),l(this,_0x11f6d2(0x3e7),this['_cursorInfo$'][_0x11f6d2(0x36b)]()),l(this,_0x11f6d2(0x401),new _0x2a5f89([])),l(this,'roomMembers$',this[_0x11f6d2(0x401)][_0x11f6d2(0x2be)](_0x136cc0(Cn))),l(this,_0x11f6d2(0x397),_0x507660(_0x1d3c47=>{const _0x32ac9f=_0x11f6d2,_0xc205ba={'eventID':_0x217d29['UPDATE_CURSOR'],'data':{'unitID':this[_0x32ac9f(0x3cc)],'memberID':this[_0x32ac9f(0x1a8)][_0x32ac9f(0x1c3)](),'selection':Ts(_0x1d3c47)}};this['_session'][_0x32ac9f(0x332)](_0xc205ba,this[_0x32ac9f(0x3cc)]);},bn)),(this[_0x11f6d2(0x3cc)]=_0x61b67d,this[_0x11f6d2(0x1a8)]=_0x5f1607,this[_0x11f6d2(0x2e0)]=_0x5aa103,this[_0x11f6d2(0x2d0)]=_0x216bb3,this['_memberService']=_0x1ed691,this[_0x11f6d2(0x30f)]=_0x1da44f,this[_0x11f6d2(0x27b)]=_0x3b51b4,this[_0x11f6d2(0x2dd)]=_0x45e28b,this[_0x11f6d2(0x367)]=_0x476a65);}get[_0x369344(0x1b3)](){const _0x21ee96=_0x369344;return this['_cursorInfo$'][_0x21ee96(0x1ae)]();}get[_0x369344(0x1f8)](){const _0x26458f=_0x369344;return this['_roomMembers$'][_0x26458f(0x1ae)]();}['dispose'](){const _0x249e9b=_0x369344;super[_0x249e9b(0x42d)](),this[_0x249e9b(0x406)][_0x249e9b(0x43d)](new Map()),this[_0x249e9b(0x406)][_0x249e9b(0x17c)](),this[_0x249e9b(0x401)][_0x249e9b(0x43d)]([]),this[_0x249e9b(0x401)][_0x249e9b(0x17c)]();}[_0x369344(0x3ac)](){const _0x1639a8=_0x369344;this[_0x1639a8(0x3e0)]||(this[_0x1639a8(0x3e0)]=!0x0,this[_0x1639a8(0x1a8)]['sessionStatus$'][_0x1639a8(0x2be)](_0x5f2af8(this['dispose$']))['subscribe'](_0x56d5ae=>{const _0x3b41e6=_0x1639a8;_0x56d5ae===_e[_0x3b41e6(0x3a5)]?this[_0x3b41e6(0x238)]():this[_0x3b41e6(0x2d3)]();}),this[_0x1639a8(0x1a8)]['event$'][_0x1639a8(0x2be)](_0x5f2af8(this[_0x1639a8(0x351)]))[_0x1639a8(0x3c2)](_0x51ca9c=>{const _0x32dbc7=_0x1639a8,_0x2a5e1e=_0x51ca9c[_0x32dbc7(0x1c5)];_0x2a5e1e===_0x217d29['UPDATE_CURSOR']&&this[_0x32dbc7(0x2ce)](_0x51ca9c),_0x2a5e1e===_0x217d29[_0x32dbc7(0x1ee)]&&this[_0x32dbc7(0x287)](_0x51ca9c);}),this[_0x1639a8(0x1f9)](this[_0x1639a8(0x367)][_0x1639a8(0x392)](_0x2a7eb9=>{const _0xc33dba=_0x1639a8,_0x2b0876=_0x2a7eb9['params'];_0x2b0876!=null&&this['_online']&&_0x2a7eb9['id']===_0x130d67['id']&&_0x2b0876[_0xc33dba(0x3cd)]===this[_0xc33dba(0x3cc)]&&_0x2b0876[_0xc33dba(0x206)]===!0x1&&this[_0xc33dba(0x397)](_0x2b0876[_0xc33dba(0x442)]);})),this[_0x1639a8(0x30f)]['collabCursorState$'][_0x1639a8(0x2be)](_0x5f2af8(this[_0x1639a8(0x351)]))[_0x1639a8(0x3c2)](_0x17a02f=>{const _0x401e6=_0x1639a8;if((_0x17a02f==null?void 0x0:_0x17a02f['unitID'])!==this[_0x401e6(0x3cc)])return;const _0x5e842e={'eventID':_0x217d29['UPDATE_CURSOR'],'data':_0x17a02f};this[_0x401e6(0x2ce)](_0x5e842e);}),this[_0x1639a8(0x1f9)](this[_0x1639a8(0x367)]['onCommandExecuted'](_0x1ddd21=>{const _0x51dcf5=_0x1639a8;if(_0x1ddd21[_0x51dcf5(0x3fc)]==null)return;const _0x1b51a4=_0x1ddd21[_0x51dcf5(0x3fc)];if(_0x1ddd21['id']!==_0x398d0b['id']||_0x1b51a4[_0x51dcf5(0x3cd)]!==this[_0x51dcf5(0x3cc)])return;const _0x3cc999={'id':_0x51dcf5(0x1b2),'params':_0x1b51a4},_0x5de49c=this[_0x51dcf5(0x1b3)];for(const [_0x73a68a,_0x7a0a86]of _0x5de49c){const _0x5ce861={'id':_0x51dcf5(0x1b2),'params':{'unitId':this[_0x51dcf5(0x3cc)],'actions':null,'textRanges':_0x7a0a86[_0x51dcf5(0x442)]}},_0x41e8ef=this[_0x51dcf5(0x27b)]['transformMutation'](_0x3cc999,_0x5ce861,!0x1);if(_0xe12b02(_0x41e8ef))throw _0x41e8ef[_0x51dcf5(0x284)];_0x5de49c[_0x51dcf5(0x24c)](_0x73a68a,{..._0x7a0a86,'ranges':_0x41e8ef[_0x51dcf5(0x422)][_0x51dcf5(0x3fc)][_0x51dcf5(0x369)]});}queueMicrotask(()=>{const _0x46aae3=_0x51dcf5;this[_0x46aae3(0x406)]['next'](_0x5de49c);});})));}['_onCursorUpdate'](_0x40621b){const _0x50cd72=_0x369344;var _0x556bc2,_0x351a8c;const {memberID:_0x1ad03c,selection:_0x213f30}=_0x40621b[_0x50cd72(0x336)],_0x52a4af=ln(_0x213f30),_0x74dbe9=(_0x351a8c=(_0x556bc2=this[_0x50cd72(0x2c2)][_0x50cd72(0x3da)](this['unitID'],_0x1ad03c))==null?void 0x0:_0x556bc2['name'])!=null?_0x351a8c:_0x50cd72(0x42b),_0x3b0064={'color':this[_0x50cd72(0x2d0)][_0x50cd72(0x1e9)](_0x1ad03c),'name':_0x74dbe9,'ranges':_0x52a4af},_0x11b045=this[_0x50cd72(0x1b3)];_0x11b045[_0x50cd72(0x24c)](_0x1ad03c,_0x3b0064),this[_0x50cd72(0x406)][_0x50cd72(0x43d)](_0x11b045);}[_0x369344(0x287)](_0x79def7){const _0x10fe60=_0x369344,{memberID:_0x386bb7}=_0x79def7[_0x10fe60(0x336)],_0x4c1bad=this['cursorInfo'];_0x4c1bad[_0x10fe60(0x358)](_0x386bb7),this[_0x10fe60(0x406)][_0x10fe60(0x43d)](_0x4c1bad);}[_0x369344(0x238)](){const _0x157d8c=_0x369344;var _0x13371b;if(this[_0x157d8c(0x2b2)]=!0x0,((_0x13371b=this[_0x157d8c(0x2dd)][_0x157d8c(0x3a6)]())==null?void 0x0:_0x13371b['getUnitId']())!==this[_0x157d8c(0x3cc)])return;const _0x253da7=this['_injector']['get'](_0x1c9a21)['getSelections'](),_0x8333c5=_0x253da7==null?void 0x0:_0x253da7[_0x157d8c(0x1b8)](_0x38b333);Array[_0x157d8c(0x15c)](_0x8333c5)&&_0x8333c5[_0x157d8c(0x3b6)]>0x0&&this[_0x157d8c(0x397)](_0x8333c5);}['_toggleOffline'](){const _0x457685=_0x369344;this[_0x457685(0x2b2)]=!0x1;}};ft=En([q(0x2,_0x3bdb53(_0x29e329)),q(0x3,_0x3bdb53(At)),q(0x4,_0x3bdb53(ee)),q(0x5,_0x3bdb53(Mt)),q(0x6,_0x5cdc22),q(0x7,_0x1e6754),q(0x8,_0x2e73f7)],ft);var Rn=(_0x192eec,_0x26c11f,_0x31bf08,_0x39fd7c)=>{const _0x439f72=_0x369344;for(var _0x2c9e5d=_0x26c11f,_0x4d3bb8=_0x192eec[_0x439f72(0x3b6)]-0x1,_0x5519de;_0x4d3bb8>=0x0;_0x4d3bb8--)(_0x5519de=_0x192eec[_0x4d3bb8])&&(_0x2c9e5d=_0x5519de(_0x2c9e5d)||_0x2c9e5d);return _0x2c9e5d;},st=(_0x317c8a,_0x1dbce4)=>(_0x42e36e,_0x456130)=>_0x1dbce4(_0x42e36e,_0x456130,_0x317c8a);let ue=class extends _0x1f6cf4{constructor(_0x1b1674,_0x28e790,_0x2d1590){const _0x6b0b9f=_0x369344;super(),l(this,_0x6b0b9f(0x224),new Map()),l(this,_0x6b0b9f(0x344),new _0x36360c()),(this[_0x6b0b9f(0x2dd)]=_0x1b1674,this['_injector']=_0x28e790,this[_0x6b0b9f(0x313)]=_0x2d1590,this[_0x6b0b9f(0x3e0)]());}[_0x369344(0x42d)](){const _0x468dc0=_0x369344;super[_0x468dc0(0x42d)](),this[_0x468dc0(0x344)]['complete'](),this[_0x468dc0(0x224)][_0x468dc0(0x33d)](_0x22daf1=>_0x22daf1[_0x468dc0(0x42d)]());}[_0x369344(0x2ef)](_0x49c5a3){const _0x3cb69d=_0x369344;return this[_0x3cb69d(0x224)][_0x3cb69d(0x282)](_0x49c5a3)?this[_0x3cb69d(0x224)][_0x3cb69d(0x19d)](_0x49c5a3)[_0x3cb69d(0x3e7)]:this[_0x3cb69d(0x344)][_0x3cb69d(0x2be)](_0xb07331(_0x564a13=>_0x564a13[_0x3cb69d(0x3cc)]===_0x49c5a3),_0x1148ff(_0x33e68e=>_0x33e68e[_0x3cb69d(0x3e7)]));}[_0x369344(0x3e0)](){const _0x4251ae=_0x369344;this[_0x4251ae(0x2dd)]['getTypeOfUnitAdded$'](_0x195e2d['UNIVER_SHEET'])['pipe'](_0x5f2af8(this[_0x4251ae(0x351)]))['subscribe'](async _0x4b416c=>{const _0x52edaa=_0x4251ae,_0x204112=_0x4b416c[_0x52edaa(0x2c0)](),_0x2e46cc=await this['_startSheetCollabCursor'](_0x204112);this[_0x52edaa(0x344)][_0x52edaa(0x43d)](_0x2e46cc),this[_0x52edaa(0x224)][_0x52edaa(0x24c)](_0x204112,_0x2e46cc);}),this['_univerInstanceService'][_0x4251ae(0x28b)](_0x195e2d['UNIVER_DOC'])[_0x4251ae(0x2be)](_0x5f2af8(this[_0x4251ae(0x351)]))[_0x4251ae(0x2be)](_0xb07331(_0x3a2f49=>!_0x3a2f49[_0x4251ae(0x2c0)]()[_0x4251ae(0x38b)]('__')))[_0x4251ae(0x3c2)](async _0x3b5f1b=>{const _0x59f4d2=_0x4251ae,_0x4fc55d=_0x3b5f1b[_0x59f4d2(0x2c0)](),_0x21c22a=await this[_0x59f4d2(0x34f)](_0x4fc55d);this['_entityInit$']['next'](_0x21c22a),this[_0x59f4d2(0x224)][_0x59f4d2(0x24c)](_0x4fc55d,_0x21c22a);}),_0x4de0cc(this['_univerInstanceService'][_0x4251ae(0x3fb)](_0x195e2d[_0x4251ae(0x3c6)]),this[_0x4251ae(0x2dd)][_0x4251ae(0x3fb)](_0x195e2d['UNIVER_SHEET']))[_0x4251ae(0x2be)](_0x5f2af8(this[_0x4251ae(0x351)]))[_0x4251ae(0x3c2)](_0x5eff81=>{const _0x2738e3=_0x4251ae,_0x3903ad=_0x5eff81['getUnitId'](),_0x54bb28=this[_0x2738e3(0x224)][_0x2738e3(0x19d)](_0x3903ad);_0x54bb28&&(_0x54bb28[_0x2738e3(0x42d)](),this[_0x2738e3(0x224)][_0x2738e3(0x358)](_0x3903ad));});}async[_0x369344(0x40f)](_0x3d0a51){const _0x56cf63=_0x369344,_0x4f9b69=await this[_0x56cf63(0x313)][_0x56cf63(0x24d)](_0x3d0a51),_0xe610ba=this['_injector'][_0x56cf63(0x191)](St,_0x3d0a51,_0x4f9b69);return _0xe610ba[_0x56cf63(0x3ac)](),_0xe610ba;}async[_0x369344(0x34f)](_0x436205){const _0x4fa800=_0x369344,_0x219e86=await this['_collabSessionService'][_0x4fa800(0x24d)](_0x436205),_0x2dfad3=this[_0x4fa800(0x2e0)][_0x4fa800(0x191)](ft,_0x436205,_0x219e86);return _0x2dfad3[_0x4fa800(0x3ac)](),_0x2dfad3;}};ue=Rn([_0x3cfe98(_0x41440a[_0x369344(0x349)],ue),st(0x0,_0x1e6754),st(0x1,_0x3bdb53(_0x29e329)),st(0x2,_0x3bdb53(Oe))],ue);const ye=0x14,zt=0xc8,it=0x4,Tn=0x5;function On(_0x2f6903,_0x10ca30){const _0x42e845=_0x369344;let {radius:_0x173398,width:_0x47e054,height:_0x1fbc33}=_0x10ca30;_0x173398=_0x173398!=null?_0x173398:0x0,_0x47e054=_0x47e054!=null?_0x47e054:0x1e,_0x1fbc33=_0x1fbc33!=null?_0x1fbc33:0x1e;let _0x33b5fd=0x0,_0x6176cc=0x0,_0x3ae1ab=0x0;_0x33b5fd=_0x6176cc=_0x3ae1ab=Math[_0x42e845(0x3bf)](_0x173398,_0x47e054/0x2,_0x1fbc33/0x2),_0x2f6903[_0x42e845(0x169)](),_0x2f6903['moveTo'](_0x33b5fd,0x0),_0x2f6903[_0x42e845(0x1a7)](_0x47e054-_0x6176cc,0x0),_0x2f6903[_0x42e845(0x424)](_0x47e054-_0x6176cc,_0x6176cc,_0x6176cc,Math['PI']*0x3/0x2,0x0,!0x1),_0x2f6903[_0x42e845(0x1a7)](_0x47e054,_0x1fbc33-_0x3ae1ab),_0x2f6903[_0x42e845(0x424)](_0x47e054-_0x3ae1ab,_0x1fbc33-_0x3ae1ab,_0x3ae1ab,0x0,Math['PI']/0x2,!0x1),_0x2f6903[_0x42e845(0x1a7)](0x0,_0x1fbc33),_0x2f6903[_0x42e845(0x1a7)](0x0,_0x33b5fd),_0x2f6903[_0x42e845(0x424)](_0x33b5fd,_0x33b5fd,_0x33b5fd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2f6903['closePath'](),_0x10ca30[_0x42e845(0x263)]&&(_0x2f6903[_0x42e845(0x370)](),_0x2f6903[_0x42e845(0x31f)]=_0x10ca30[_0x42e845(0x263)],_0x10ca30[_0x42e845(0x17f)]==='evenodd'?_0x2f6903[_0x42e845(0x263)]('evenodd'):_0x2f6903[_0x42e845(0x263)](),_0x2f6903[_0x42e845(0x23d)]());}class qe extends _0x1377ce{constructor(_0xe4cb0a,_0x2a79ec){const _0x453503=_0x369344;super(_0xe4cb0a,_0x2a79ec),l(this,_0x453503(0x39e)),l(this,_0x453503(0x259)),(this[_0x453503(0x39e)]=_0x2a79ec==null?void 0x0:_0x2a79ec[_0x453503(0x39e)],this[_0x453503(0x259)]=_0x2a79ec==null?void 0x0:_0x2a79ec[_0x453503(0x259)]);}static[_0x369344(0x22d)](_0x580082,_0x4ad5f7){const _0x450abe=_0x369344,{text:_0x593375,color:_0x2f5454}=_0x4ad5f7;_0x580082[_0x450abe(0x370)](),_0x580082[_0x450abe(0x1a9)]=_0x450abe(0x3c3);const _0xfe7df6=_0x580082[_0x450abe(0x255)](_0x593375)['width'],_0x40dc20=Math[_0x450abe(0x3bf)](_0xfe7df6+0x2*it,zt);On(_0x580082,{'height':ye,'radius':0x4,'width':_0x40dc20,'fill':_0x2f5454,'evented':!0x1}),_0x580082[_0x450abe(0x31f)]=_0x450abe(0x277);const _0x1a0c82=it,_0x31a2cb=ye-Tn,_0x5d6ad2=zt-0x2*it;if(_0xfe7df6>_0x5d6ad2){let _0x1187b1='',_0x28bc8d=0x0;for(const _0x209caf of _0x593375){const _0x15d3f8=_0x580082[_0x450abe(0x255)](_0x209caf)[_0x450abe(0x325)];if(_0x28bc8d+_0x15d3f8<=_0x5d6ad2-_0x580082['measureText']('...')['width'])_0x1187b1+=_0x209caf,_0x28bc8d+=_0x15d3f8;else{_0x1187b1+=_0x450abe(0x26a);break;}}_0x580082[_0x450abe(0x1d0)](_0x1187b1,_0x1a0c82,_0x31a2cb);}else _0x580082[_0x450abe(0x1d0)](_0x593375,_0x1a0c82,_0x31a2cb);_0x580082[_0x450abe(0x23d)]();}['_draw'](_0x2c0fc2){const _0x21aa60=_0x369344;qe[_0x21aa60(0x22d)](_0x2c0fc2,this);}}const Dn=0x1,yn=1.5;class Nn extends _0x1377ce{constructor(_0x5e3a87,_0x1608b4){const _0x272060=_0x369344;super(_0x5e3a87,_0x1608b4),l(this,_0x272060(0x3a7)),l(this,_0x272060(0x27d),!0x1),l(this,_0x272060(0x1ce)),l(this,_0x272060(0x324),''),l(this,_0x272060(0x405),_0x272060(0x1d2)),(_0x1608b4&&this['setShapeProps'](_0x1608b4),this[_0x272060(0x3dc)][_0x272060(0x1a0)](()=>this[_0x272060(0x163)]({'hovered':!0x0})),this[_0x272060(0x316)][_0x272060(0x1a0)](()=>this[_0x272060(0x163)]({'hovered':!0x1})));}[_0x369344(0x163)](_0x502299){const _0x3d3c92=_0x369344;var _0x133422,_0x6ba783,_0x2253f5,_0xc48eb6,_0x17ae72;this[_0x3d3c92(0x3a7)]=(_0x133422=_0x502299[_0x3d3c92(0x39e)])!=null?_0x133422:this[_0x3d3c92(0x3a7)],this[_0x3d3c92(0x27d)]=(_0x6ba783=_0x502299[_0x3d3c92(0x3f6)])!=null?_0x6ba783:this[_0x3d3c92(0x27d)],this[_0x3d3c92(0x1ce)]=(_0x2253f5=_0x502299['range'])!=null?_0x2253f5:this['_range'],this['_name']=(_0xc48eb6=_0x502299['name'])!=null?_0xc48eb6:this[_0x3d3c92(0x324)],this[_0x3d3c92(0x405)]=(_0x17ae72=_0x502299[_0x3d3c92(0x17d)])!=null?_0x17ae72:this[_0x3d3c92(0x405)],this[_0x3d3c92(0x3ca)]({'width':_0x502299['width'],'height':_0x502299[_0x3d3c92(0x211)]});}[_0x369344(0x186)](_0x4eca3a){const _0x1105f2=_0x369344,{row:_0x2564e1,column:_0x4ee300}=_0x4eca3a;if(_0x2564e1>=this[_0x1105f2(0x1ce)]['startRow']&&_0x2564e1<=this['_range'][_0x1105f2(0x1fc)]&&_0x4ee300>=this[_0x1105f2(0x1ce)][_0x1105f2(0x213)]&&_0x4ee300<=this[_0x1105f2(0x1ce)][_0x1105f2(0x27c)]){this[_0x1105f2(0x163)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x369344(0x1c0)](_0xf00480){return!0x1;}[_0x369344(0x168)](_0x2821ec){const _0x3bb695=_0x369344;_0x8391c2['drawWith'](_0x2821ec,{'width':this[_0x3bb695(0x325)],'height':this['height'],'strokeWidth':yn,'stroke':this[_0x3bb695(0x3a7)],'evented':!0x1}),this[_0x3bb695(0x27d)]&&(_0x2821ec[_0x3bb695(0x370)](),_0x2821ec[_0x3bb695(0x2c4)](0x1,0x0,0x0,0x1,this[_0x3bb695(0x325)],this[_0x3bb695(0x405)]===_0x3bb695(0x199)?0x0:-ye),qe[_0x3bb695(0x22d)](_0x2821ec,{'text':this[_0x3bb695(0x324)],'color':this[_0x3bb695(0x3a7)]}),_0x2821ec[_0x3bb695(0x23d)]());}}var wn=(_0x37a99a,_0x559044,_0x2a5cf5,_0x3375e5)=>{for(var _0x23e05c=_0x559044,_0x4056d6=_0x37a99a['length']-0x1,_0x47a015;_0x4056d6>=0x0;_0x4056d6--)(_0x47a015=_0x37a99a[_0x4056d6])&&(_0x23e05c=_0x47a015(_0x23e05c)||_0x23e05c);return _0x23e05c;},pe=(_0x35e415,_0x1d1e39)=>(_0x1e51db,_0x1099fa)=>_0x1d1e39(_0x1e51db,_0x1099fa,_0x35e415);let $e=class extends _0x1f6cf4{constructor(_0x5b09e0,_0x455db5,_0x2b31cf,_0x508c39,_0x230be0){const _0x38c4b3=_0x369344;super(),l(this,_0x38c4b3(0x2dc),new Set()),l(this,_0x38c4b3(0x196),null),(this[_0x38c4b3(0x315)]=_0x5b09e0,this[_0x38c4b3(0x2dd)]=_0x455db5,this[_0x38c4b3(0x2cb)]=_0x2b31cf,this[_0x38c4b3(0x3c7)]=_0x508c39,this[_0x38c4b3(0x3e8)]=_0x230be0,this[_0x38c4b3(0x3e0)]());}['_init'](){const _0x231a08=_0x369344;this[_0x231a08(0x3c7)][_0x231a08(0x200)][_0x231a08(0x2be)](_0x46656a(this[_0x231a08(0x351)]),_0x2b4de3(_0x514f17=>{const _0x39785f=_0x231a08;if(_0x514f17){const _0x5433ec=_0x514f17[_0x39785f(0x421)];return _0xf0253e(this[_0x39785f(0x315)][_0x39785f(0x2ef)](_0x514f17[_0x39785f(0x3cd)]),this[_0x39785f(0x3e8)][_0x39785f(0x1a6)])[_0x39785f(0x2be)](_0x19010f(([_0x5b65ff,_0x4d5849])=>{const _0x49d51a=_0x39785f,_0x3e2aac=new Map();return _0x5b65ff[_0x49d51a(0x33d)]((_0x977884,_0x1f9ba7)=>{const _0x36bbe0=_0x49d51a;if(_0x977884['sheetID']===_0x5433ec){const _0x579cc3={..._0x977884};_0x579cc3[_0x36bbe0(0x39e)]=_0x4d5849[_0x977884[_0x36bbe0(0x39e)]],_0x3e2aac[_0x36bbe0(0x24c)](_0x1f9ba7,_0x579cc3);}}),{'skeleton':_0x514f17,'cursors':_0x3e2aac};}));}return _0x169b33({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x49c3f8,cursors:_0x299eb0})=>{const _0x1092d6=_0x231a08;this[_0x1092d6(0x417)](),_0x49c3f8&&this[_0x1092d6(0x402)](_0x49c3f8,_0x299eb0);}),this[_0x231a08(0x3c7)][_0x231a08(0x200)][_0x231a08(0x3c2)](_0xaeb709=>{const _0x16eb70=_0x231a08;if(_0xaeb709==null)return;const {unitId:_0x9d87d4,skeleton:_0xe2881f}=_0xaeb709,_0x405a4e=this[_0x16eb70(0x2cb)][_0x16eb70(0x241)](_0x9d87d4);if(_0x405a4e==null)return;const {scene:_0x1dba74}=_0x405a4e;_0x1dba74[_0x16eb70(0x21f)][_0x16eb70(0x1a0)](_0x507660(_0x47f5cf=>{const _0x256559=_0x16eb70;var _0x34ddfd,_0xa14a93;const {offsetX:_0x6f0d77,offsetY:_0x2b911d}=_0x47f5cf,{x:_0x5e1d71,y:_0x35cdb6}=_0x1dba74[_0x256559(0x165)](_0x2ce8cf[_0x256559(0x223)]([_0x6f0d77,_0x2b911d])),{scaleX:_0x302e4f,scaleY:_0x5eb007}=_0x1dba74[_0x256559(0x21e)](),_0x2682af=_0x1dba74[_0x256559(0x45d)](_0x4b02ee[_0x256559(0x2f9)]),_0x44ee09=_0x1dba74[_0x256559(0x36a)](_0x2ce8cf['FromArray']([_0x5e1d71,_0x35cdb6]),_0x2682af),_0x3ae8e3=_0xe2881f['getCellPositionByOffset'](_0x6f0d77,_0x2b911d,_0x302e4f,_0x5eb007,_0x44ee09);((_0x34ddfd=this[_0x256559(0x196)])==null?void 0x0:_0x34ddfd['column'])===_0x3ae8e3['column']&&((_0xa14a93=this['_lastPointer'])==null?void 0x0:_0xa14a93[_0x256559(0x2ed)])===_0x3ae8e3[_0x256559(0x2ed)]||this[_0x256559(0x2dc)]['forEach'](_0xcfa16d=>{const _0x5840a7=_0x256559;_0xcfa16d[_0x5840a7(0x186)](_0x3ae8e3);});},0x64));});}['_updateCollabCursors'](_0x3e74fc,_0x3d9c79){const _0x57b5ca=_0x369344;var _0x2237d5;const _0x47404a=(_0x2237d5=this[_0x57b5ca(0x3c7)][_0x57b5ca(0x339)]())==null?void 0x0:_0x2237d5[_0x57b5ca(0x180)];if(!_0x47404a)return;const _0x51cee0=this[_0x57b5ca(0x412)]();if(!_0x51cee0)return;this[_0x57b5ca(0x2dc)][_0x57b5ca(0x33d)](_0x2e89d4=>{const _0x3578c0=_0x57b5ca;_0x2e89d4[_0x3578c0(0x16d)]();});const {scene:_0x4e6adf}=_0x51cee0,_0x9e16f4=Mn(Array[_0x57b5ca(0x201)](_0x3d9c79[_0x57b5ca(0x400)]()))[_0x57b5ca(0x1b8)](_0x364e69=>{const _0x55d652=_0x57b5ca,{color:_0x4d0f87,range:_0x3d509c,name:_0x240dce,selection:_0x41d47d,sheetID:_0x303d70}=_0x364e69,{startColumn:_0x21a9ee,startRow:_0x2c7d79,endColumn:_0x127ed9,endRow:_0x2025d1}=_0x3d509c,_0x474a84=_0x24e2be(_0x2c7d79,_0x21a9ee,_0x4e6adf,_0x47404a),_0x15642d=_0x24e2be(_0x2025d1,_0x127ed9,_0x4e6adf,_0x47404a),{columnHeaderHeightAndMarginTop:_0x5c7e0e}=_0x47404a,{startX:_0x159da2,startY:_0x45b2fa}=_0x474a84,{endX:_0x37d42b,endY:_0x1b9d60}=_0x15642d,_0x517293=_0x37d42b-_0x159da2,_0x291172=_0x1b9d60-_0x45b2fa,_0x2aafb9={'labelPosition':_0x45b2fa-_0x5c7e0e>=ye?_0x55d652(0x1d2):_0x55d652(0x199),'sheetID':_0x303d70,'range':_0x3d509c,'color':_0x4d0f87,'name':_0x240dce,'selection':_0x41d47d,'left':_0x159da2,'top':_0x45b2fa,'width':_0x517293,'height':_0x291172,'evented':!0x1};return new Nn(_0x240dce,_0x2aafb9);});_0x4e6adf[_0x57b5ca(0x3bc)](_0x9e16f4,Dn),this[_0x57b5ca(0x2dc)]=new Set(_0x9e16f4);}[_0x369344(0x417)](){const _0x2799fc=_0x369344;var _0x1b7be5;(_0x1b7be5=this[_0x2799fc(0x2dc)])==null||_0x1b7be5[_0x2799fc(0x33d)](_0x584a19=>_0x584a19[_0x2799fc(0x42d)]());}[_0x369344(0x412)](){const _0x3f26dd=_0x369344;return _0x1d153d(this[_0x3f26dd(0x2dd)],this[_0x3f26dd(0x2cb)]);}};$e=wn([_0x3cfe98(_0x41440a[_0x369344(0x3d8)],$e),pe(0x0,_0x3bdb53(ue)),pe(0x1,_0x1e6754),pe(0x2,_0x12e984),pe(0x3,_0x3bdb53(_0xbbb3e5)),pe(0x4,_0x3bdb53(_0x1851c3))],$e);function Mn(_0x38bd03){const _0x45d1d9=_0x369344,_0x123f7c=new Map();return _0x38bd03[_0x45d1d9(0x33d)](_0x3a1c01=>{const _0x19f8a2=_0x45d1d9;if(_0x123f7c[_0x19f8a2(0x282)](_0x3a1c01[_0x19f8a2(0x43f)])){const _0xb64899=_0x123f7c[_0x19f8a2(0x19d)](_0x3a1c01[_0x19f8a2(0x43f)]);_0xb64899[_0x19f8a2(0x458)]+=',\x20'+_0x3a1c01[_0x19f8a2(0x458)];}else _0x123f7c['set'](_0x3a1c01[_0x19f8a2(0x43f)],_0x3a1c01);}),Array[_0x45d1d9(0x201)](_0x123f7c[_0x45d1d9(0x400)]());}var A=function(){const _0x211386=_0x369344;return A=Object[_0x211386(0x2f8)]||function(_0x7ed76a){const _0xaadf6a=_0x211386;for(var _0x2cd1b3,_0x1e4568=0x1,_0x4a6996=arguments[_0xaadf6a(0x3b6)];_0x1e4568<_0x4a6996;_0x1e4568++){_0x2cd1b3=arguments[_0x1e4568];for(var _0x243a53 in _0x2cd1b3)Object[_0xaadf6a(0x195)][_0xaadf6a(0x2fe)][_0xaadf6a(0x311)](_0x2cd1b3,_0x243a53)&&(_0x7ed76a[_0x243a53]=_0x2cd1b3[_0x243a53]);}return _0x7ed76a;},A['apply'](this,arguments);},An=function(_0x3c2110,_0x2e372a){const _0x5c9846=_0x369344;var _0x4e37c1={};for(var _0x1fe0a9 in _0x3c2110)Object['prototype'][_0x5c9846(0x2fe)][_0x5c9846(0x311)](_0x3c2110,_0x1fe0a9)&&_0x2e372a[_0x5c9846(0x2de)](_0x1fe0a9)<0x0&&(_0x4e37c1[_0x1fe0a9]=_0x3c2110[_0x1fe0a9]);if(_0x3c2110!=null&&typeof Object[_0x5c9846(0x3a1)]==_0x5c9846(0x2fd)){for(var _0x1ef71a=0x0,_0x1fe0a9=Object['getOwnPropertySymbols'](_0x3c2110);_0x1ef71a<_0x1fe0a9[_0x5c9846(0x3b6)];_0x1ef71a++)_0x2e372a[_0x5c9846(0x2de)](_0x1fe0a9[_0x1ef71a])<0x0&&Object[_0x5c9846(0x195)][_0x5c9846(0x350)][_0x5c9846(0x311)](_0x3c2110,_0x1fe0a9[_0x1ef71a])&&(_0x4e37c1[_0x1fe0a9[_0x1ef71a]]=_0x3c2110[_0x1fe0a9[_0x1ef71a]]);}return _0x4e37c1;},Lt=_0x593069(function(_0x4703fa,_0x5dd841){const _0x7f834d=_0x369344;var _0x2eb4aa=_0x4703fa[_0x7f834d(0x162)],_0x4c48ce=_0x4703fa['id'],_0xf1c8e=_0x4703fa[_0x7f834d(0x376)],_0x56764d=_0x4703fa[_0x7f834d(0x39c)],_0x913148=An(_0x4703fa,[_0x7f834d(0x162),'id',_0x7f834d(0x376),_0x7f834d(0x39c)]),_0x49ba17=_0x7f834d(0x171)[_0x7f834d(0x444)](_0x4c48ce,'\x20')[_0x7f834d(0x444)](_0xf1c8e||'')['trim'](),_0x2cedb3=_0x49d57c('_'[_0x7f834d(0x444)](Pn()));return Ds(_0x2eb4aa,''['concat'](_0x4c48ce),{'defIds':_0x2eb4aa[_0x7f834d(0x205)],'idSuffix':_0x2cedb3[_0x7f834d(0x2eb)]},A({'ref':_0x5dd841,'className':_0x49ba17},_0x913148),_0x56764d);});function Ds(_0x45f009,_0x4149e6,_0x4bcc46,_0x2d96e4,_0x226906){const _0x721dd3=_0x369344;return _0x2a382f(_0x45f009[_0x721dd3(0x2a1)],A(A({'key':_0x4149e6},Ln(_0x45f009,_0x4bcc46,_0x226906)),_0x2d96e4),(Un(_0x45f009,_0x4bcc46)['children']||[])[_0x721dd3(0x1b8)](function(_0x5636bc,_0x1adda9){const _0x3152b9=_0x721dd3;return Ds(_0x5636bc,''[_0x3152b9(0x444)](_0x4149e6,'-')[_0x3152b9(0x444)](_0x45f009[_0x3152b9(0x2a1)],'-')[_0x3152b9(0x444)](_0x1adda9),_0x4bcc46,void 0x0,_0x226906);}));}function Ln(_0xd139b7,_0x35dd99,_0x5b3df0){const _0x5abfa5=_0x369344;var _0x3dd9d5=A({},_0xd139b7[_0x5abfa5(0x352)]);_0x5b3df0!=null&&_0x5b3df0[_0x5abfa5(0x413)]&&_0x3dd9d5[_0x5abfa5(0x263)]===_0x5abfa5(0x413)&&(_0x3dd9d5[_0x5abfa5(0x263)]=_0x5b3df0['colorChannel1']);var _0x369a6c=_0x35dd99[_0x5abfa5(0x205)];return!_0x369a6c||_0x369a6c[_0x5abfa5(0x3b6)]===0x0||(_0xd139b7[_0x5abfa5(0x2a1)]===_0x5abfa5(0x373)&&_0x3dd9d5[_0x5abfa5(0x1b5)]&&(_0x3dd9d5[_0x5abfa5(0x1b5)]=_0x3dd9d5['xlink:href']+_0x35dd99[_0x5abfa5(0x450)]),Object[_0x5abfa5(0x3b4)](_0x3dd9d5)[_0x5abfa5(0x33d)](function(_0x270040){const _0x370c14=_0x5abfa5;var _0x332b10=_0x270040[0x0],_0x504116=_0x270040[0x1];typeof _0x504116==_0x370c14(0x3ae)&&(_0x3dd9d5[_0x332b10]=_0x504116[_0x370c14(0x3a8)](/url\(#(.*)\)/,_0x370c14(0x18f)[_0x370c14(0x444)](_0x35dd99[_0x370c14(0x450)],')')));})),_0x3dd9d5;}function Un(_0x42f0cb,_0x38583a){const _0x36ad66=_0x369344;var _0x1abcfc,_0x1c6d78=_0x38583a[_0x36ad66(0x205)];return!_0x1c6d78||_0x1c6d78[_0x36ad66(0x3b6)]===0x0?_0x42f0cb:_0x42f0cb[_0x36ad66(0x2a1)]===_0x36ad66(0x3a4)&&(!((_0x1abcfc=_0x42f0cb['children'])===null||_0x1abcfc===void 0x0)&&_0x1abcfc[_0x36ad66(0x3b6)])?A(A({},_0x42f0cb),{'children':_0x42f0cb['children'][_0x36ad66(0x1b8)](function(_0x58f3eb){const _0x3bf194=_0x36ad66;return typeof _0x58f3eb['attrs']['id']==_0x3bf194(0x3ae)&&_0x1c6d78&&_0x1c6d78[_0x3bf194(0x2de)](_0x58f3eb[_0x3bf194(0x352)]['id'])>-0x1?A(A({},_0x58f3eb),{'attrs':A(A({},_0x58f3eb['attrs']),{'id':_0x58f3eb[_0x3bf194(0x352)]['id']+_0x38583a[_0x3bf194(0x450)]})}):_0x58f3eb;})}):_0x42f0cb;}function Pn(){const _0x258a04=_0x369344;return Math['random']()[_0x258a04(0x2fb)](0x24)[_0x258a04(0x262)](0x2,0x8);}Lt['displayName']=_0x369344(0x231);var kn={'tag':_0x369344(0x2e4),'attrs':{'fill':_0x369344(0x34c),'viewBox':_0x369344(0x1c2),'width':_0x369344(0x3d6),'height':_0x369344(0x3d6)},'children':[{'tag':'g','attrs':{'clipPath':_0x369344(0x294)},'children':[{'tag':_0x369344(0x236),'attrs':{'stroke':_0x369344(0x219),'d':_0x369344(0x42f),'strokeLinecap':_0x369344(0x208),'strokeLinejoin':_0x369344(0x208),'strokeWidth':1.2}}]},{'tag':_0x369344(0x3a4),'attrs':{},'children':[{'tag':_0x369344(0x319),'attrs':{'id':_0x369344(0x355)},'children':[{'tag':_0x369344(0x236),'attrs':{'fill':'#fff','d':_0x369344(0x26b)}}]}]}],'defIds':[_0x369344(0x355)]},ys=_0x593069(function(_0x34962b,_0x282fe5){const _0x3d0a1e=_0x369344;return _0x2a382f(Lt,Object[_0x3d0a1e(0x2f8)]({},_0x34962b,{'id':'off-line-single','ref':_0x282fe5,'icon':kn}));});ys[_0x369344(0x366)]=_0x369344(0x459);var $n={'tag':_0x369344(0x2e4),'attrs':{'fill':_0x369344(0x34c),'viewBox':_0x369344(0x37c),'width':_0x369344(0x3d6),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x369344(0x431)},'children':[{'tag':_0x369344(0x236),'attrs':{'stroke':_0x369344(0x219),'d':_0x369344(0x297),'strokeLinecap':_0x369344(0x208),'strokeLinejoin':_0x369344(0x208),'strokeWidth':1.2}}]},{'tag':_0x369344(0x3a4),'attrs':{},'children':[{'tag':_0x369344(0x319),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x369344(0x236),'attrs':{'fill':_0x369344(0x3ce),'d':'M0\x200H16V16H0z','transform':_0x369344(0x174)}}]}]}],'defIds':[_0x369344(0x374)]},Ns=_0x593069(function(_0x5c1220,_0x594d05){const _0x1c7cd8=_0x369344;return _0x2a382f(Lt,Object[_0x1c7cd8(0x2f8)]({},_0x5c1220,{'id':_0x1c7cd8(0x22a),'ref':_0x594d05,'icon':$n}));});Ns[_0x369344(0x366)]=_0x369344(0x194);const Hn='univer-online-status-icon',xn=_0x369344(0x1f2),jn=_0x369344(0x434),Fn=_0x369344(0x322),Vn=_0x369344(0x233),Ie={'onlineStatusIcon':Hn,'onlineStatusTitle':xn,'onlineStatus':jn,'online':Fn,'offline':Vn};function Bn(_0x44bd26){const _0x361688=_0x369344;switch(_0x44bd26){case y[_0x361688(0x37b)]:return _0x361688(0x464);case y['CONFLICT']:return _0x361688(0x2b5);case y[_0x361688(0x312)]:return _0x361688(0x2e5);case y[_0x361688(0x172)]:return _0x361688(0x46a);case y['PENDING']:case y[_0x361688(0x270)]:case y[_0x361688(0x3e3)]:return _0x361688(0x1af);case y[_0x361688(0x273)]:return _0x361688(0x2c9);}}function Wn(_0xa7afc6){const _0x1c0a54=_0x369344,{status$:_0x13ce16}=_0xa7afc6,_0x2f55e2=_0x39b1aa(_0x13ce16,y[_0x1c0a54(0x172)]),_0x401f9f=_0x2732fc(_0x122a5b),_0x4a404e=_0x2f55e2!==y['OFFLINE'],_0x18d2ff=_0x401f9f['t'](Bn(_0x2f55e2)),_0x436c0b=_0x65ec29(Ie[_0x1c0a54(0x42e)],{[Ie[_0x1c0a54(0x16e)]]:_0x4a404e,[Ie[_0x1c0a54(0x225)]]:!_0x4a404e}),_0x5d06ed=_0x4a404e?_0x11b04c['createElement'](Ns,null):_0x11b04c[_0x1c0a54(0x276)](ys,null);return _0x11b04c[_0x1c0a54(0x276)](_0x1c0a54(0x274),{'className':_0x436c0b},_0x11b04c[_0x1c0a54(0x276)](_0x1c0a54(0x274),{'className':Ie['onlineStatusIcon']},_0x5d06ed),_0x11b04c[_0x1c0a54(0x276)](_0x1c0a54(0x274),{'className':Ie['onlineStatusTitle']},_0x18d2ff));}var Gn=(_0x338b77,_0x3ea92a,_0x207875,_0x4fd8f2)=>{const _0x20ddf1=_0x369344;for(var _0x29e561=_0x3ea92a,_0x41af36=_0x338b77[_0x20ddf1(0x3b6)]-0x1,_0x14e499;_0x41af36>=0x0;_0x41af36--)(_0x14e499=_0x338b77[_0x41af36])&&(_0x29e561=_0x14e499(_0x29e561)||_0x29e561);return _0x29e561;},Le=(_0x584a6e,_0x501f3e)=>(_0x15b72a,_0x54c73a)=>_0x501f3e(_0x15b72a,_0x54c73a,_0x584a6e);let He=class extends _0x1bbf2c{constructor(_0x2fb394,_0x2f2321,_0x351eb4,_0x4a7268){const _0x35e8d4=_0x369344;super(),l(this,_0x35e8d4(0x2f3),new _0x2a5f89(y['NOT_COLLAB'])),(this['_univerInstanceService']=_0x2fb394,this[_0x35e8d4(0x3b0)]=_0x2f2321,this[_0x35e8d4(0x2e0)]=_0x351eb4,this['_collaborationController']=_0x4a7268,this[_0x35e8d4(0x2f2)](),this[_0x35e8d4(0x15a)]());}['_initStatusComponent'](){const _0x148576=_0x369344;this[_0x148576(0x1f9)](this[_0x148576(0x3b0)]['registerComponent'](_0x319785['HEADER_MENU'],()=>_0x3f045f(Yn({'status$':this[_0x148576(0x2f3)][_0x148576(0x36b)]()}),this[_0x148576(0x2e0)])));}['_initStatusListener'](){const _0x13c2cf=_0x369344;this['disposeWithMe'](_0xd3a753(this['_univerInstanceService']['focused$'][_0x13c2cf(0x2be)](_0x1148ff(()=>{const _0x3c7737=_0x13c2cf,_0x50c664=this[_0x3c7737(0x2dd)][_0x3c7737(0x3a6)]();return _0x50c664?this[_0x3c7737(0x29c)][_0x3c7737(0x3be)](_0x50c664[_0x3c7737(0x2c0)]()):_0x169b33(null);}),_0x1148ff(_0x1ab5d7=>_0x1ab5d7?_0x1ab5d7[_0x13c2cf(0x29e)]:_0x169b33(y[_0x13c2cf(0x172)])))['subscribe'](_0x20e576=>{const _0x1f731b=_0x13c2cf;this[_0x1f731b(0x2f3)][_0x1f731b(0x43d)](_0x20e576);})));}};He=Gn([_0x3cfe98(_0x41440a[_0x369344(0x349)],He),Le(0x0,_0x1e6754),Le(0x1,_0x482719),Le(0x2,_0x3bdb53(_0x29e329)),Le(0x3,_0x3bdb53(be))],He);function Yn(_0x32f350){const {status$:_0x42a260}=_0x32f350;return function(){const _0x54c351=_0xfefa;return _0x11b04c[_0x54c351(0x276)](Wn,{'status$':_0x42a260});};}const ws=_0x519219(_0x369344(0x2a7));var Kn=(_0x4529e5,_0x1b50d5,_0x301eef,_0x235202)=>{const _0x55112d=_0x369344;for(var _0x452111=_0x1b50d5,_0x4b7d06=_0x4529e5[_0x55112d(0x3b6)]-0x1,_0x536223;_0x4b7d06>=0x0;_0x4b7d06--)(_0x536223=_0x4529e5[_0x4b7d06])&&(_0x452111=_0x536223(_0x452111)||_0x452111);return _0x452111;},ce=(_0x4dd91b,_0x4a407e)=>(_0x39b6f3,_0x4e2e0b)=>_0x4a407e(_0x39b6f3,_0x4e2e0b,_0x4dd91b);let xe=class extends _0x1f6cf4{constructor(_0x3de08b,_0x5b7462,_0x260b29,_0x56b509,_0x156a75,_0xe0ef4c){const _0x5f4d75=_0x369344;super(),this[_0x5f4d75(0x3f2)]=_0x3de08b,this['_logService']=_0x5b7462,this[_0x5f4d75(0x367)]=_0x260b29,this[_0x5f4d75(0x2ca)]=_0x56b509,this[_0x5f4d75(0x18b)]=_0x156a75,_0xe0ef4c?_0xe0ef4c==null||_0xe0ef4c['whenReady']()[_0x5f4d75(0x267)](()=>this['_init']()):(this[_0x5f4d75(0x2d5)][_0x5f4d75(0x215)]('[DataLoaderController]',_0x5f4d75(0x435)),this['_init']());}async[_0x369344(0x3e0)](){const _0x535511=_0x369344,_0x5770bb=this[_0x535511(0x3f2)][_0x535511(0x164)]('unit'),_0x4274e5=this[_0x535511(0x3f2)][_0x535511(0x164)]('type');if(!_0x5770bb||!_0x4274e5){this[_0x535511(0x2d5)]['debug'](_0x535511(0x2b4),_0x535511(0x1b7));return;}switch(Number(_0x4274e5)){case H[_0x535511(0x38c)]:{const _0x1764c0=await this[_0x535511(0x310)](_0x5770bb);this[_0x535511(0x2c6)](_0x1764c0);break;}case H[_0x535511(0x3c6)]:{await this[_0x535511(0x218)](_0x5770bb);break;}default:{this[_0x535511(0x2d5)][_0x535511(0x284)](_0x535511(0x2b4),_0x535511(0x455));break;}}}async[_0x369344(0x2c6)](_0x2d11ea){const _0x1ae264=_0x369344;await this[_0x1ae264(0x1e0)](_0x2d11ea),_0x2d11ea[_0x1ae264(0x2d9)][_0x1ae264(0x2be)](_0x5f2af8(this[_0x1ae264(0x351)]))[_0x1ae264(0x3c2)](_0x1f20be=>{const _0x3b91c5=_0x1ae264;_0x1f20be&&this[_0x3b91c5(0x32c)](_0x1f20be);}),this[_0x1ae264(0x3f2)]['urlChange$'][_0x1ae264(0x2be)](_0x5f2af8(this['dispose$']))[_0x1ae264(0x3c2)](()=>this[_0x1ae264(0x1e0)](_0x2d11ea));}['_updateURLWithCurrentState'](_0x237bc4,_0x53234f=!0x1){const _0x1d4970=_0x369344,_0x3209ed=this[_0x1d4970(0x3f2)][_0x1d4970(0x164)](_0x1d4970(0x1b0));_0x237bc4['getSheetId']()!==_0x3209ed&&this['_urlService']['setParam'](_0x1d4970(0x1b0),_0x237bc4['getSheetId'](),_0x53234f);}async[_0x369344(0x1e0)](_0x20cc27){const _0x1e0416=_0x369344,_0x3c1111=this['_urlService'][_0x1e0416(0x164)](_0x1e0416(0x1b0));if(!_0x3c1111||!_0x20cc27['getSheetBySheetId'](_0x3c1111)){this[_0x1e0416(0x32c)](_0x20cc27[_0x1e0416(0x28c)](),!0x0);return;}_0x20cc27[_0x1e0416(0x28c)]()[_0x1e0416(0x30e)]()!==_0x3c1111&&await this['_commandService'][_0x1e0416(0x2bb)](_0x36e21d['id'],{'unitId':_0x20cc27[_0x1e0416(0x2c0)](),'subUnitId':_0x3c1111});}async[_0x369344(0x310)](_0x42829a){const _0x5092ce=_0x369344;let _0x520a89=0x0;const _0x4291f3=await this[_0x5092ce(0x2ca)][_0x5092ce(0x1dd)](_0x42829a);return _0x4291f3&&(_0x4291f3['awaitingChangeset']||_0x4291f3[_0x5092ce(0x2e9)][_0x5092ce(0x3b6)]!==0x0)&&(_0x520a89=_0x4291f3[_0x5092ce(0x362)]),_0x520a89===0x0&&this[_0x5092ce(0x2d5)][_0x5092ce(0x215)](_0x5092ce(0x2b4),_0x5092ce(0x46b)),this[_0x5092ce(0x18b)][_0x5092ce(0x448)](_0x42829a,_0x520a89);}async[_0x369344(0x218)](_0x37065c){const _0x3e9c27=_0x369344;let _0x487b3d=0x0;const _0x486a40=await this[_0x3e9c27(0x2ca)][_0x3e9c27(0x1dd)](_0x37065c);return _0x486a40&&(_0x486a40['awaitingChangeset']||_0x486a40[_0x3e9c27(0x2e9)]['length']!==0x0)&&(_0x487b3d=_0x486a40['rev']),_0x487b3d===0x0&&this[_0x3e9c27(0x2d5)][_0x3e9c27(0x215)](_0x3e9c27(0x2b4),_0x3e9c27(0x46b)),this[_0x3e9c27(0x18b)][_0x3e9c27(0x372)](_0x37065c,_0x487b3d);}};xe=Kn([_0x3cfe98(_0x41440a[_0x369344(0x349)],xe),ce(0x0,ws),ce(0x1,_0x5e199c),ce(0x2,_0x2e73f7),ce(0x3,_0x3bdb53(O)),ce(0x4,_0x3bdb53(_0x557428)),ce(0x5,_0x4447c0(_0x365c6e))],xe);var Xn=(_0x1379a2,_0x20787e,_0x347de9,_0x9a22e6)=>{const _0x64d37a=_0x369344;for(var _0x597b39=_0x20787e,_0x3a4ac0=_0x1379a2[_0x64d37a(0x3b6)]-0x1,_0xc866d5;_0x3a4ac0>=0x0;_0x3a4ac0--)(_0xc866d5=_0x1379a2[_0x3a4ac0])&&(_0x597b39=_0xc866d5(_0x597b39)||_0x597b39);return _0x597b39;},qt=(_0x11eaee,_0x5945a7)=>(_0x582790,_0x469ff2)=>_0x5945a7(_0x582790,_0x469ff2,_0x11eaee);const Jn=_0x369344(0x393),zn=_0x369344(0x1ea);let je=class extends _0x1bbf2c{constructor(_0x2dee64,_0x49dba5){const _0x4fd6fe=_0x369344;super(),this[_0x4fd6fe(0x2dd)]=_0x2dee64,this['_configService']=_0x49dba5,this['_init']();}[_0x369344(0x3e0)](){const _0x33f956=_0x369344;this[_0x33f956(0x1f9)](_0xd3a753(this['_univerInstanceService'][_0x33f956(0x1dc)][_0x33f956(0x3c2)](()=>{const _0xd6832d=_0x33f956;var _0x4ea106;const _0x460b4=this['_univerInstanceService'][_0xd6832d(0x3a6)]();let _0x515a57=(_0x4ea106=this[_0xd6832d(0x3f1)][_0xd6832d(0x306)](Jn))!=null?_0x4ea106:zn;_0x460b4 instanceof _0x261fbb&&(_0x515a57=_0x460b4['name']),document['title']=_0x515a57;})));}};je=Xn([_0x3cfe98(_0x41440a[_0x369344(0x29b)],je),qt(0x0,_0x1e6754),qt(0x1,_0xcb4dc7)],je);var qn=(_0x2447fe,_0x4a0dc1,_0x298cc4,_0x396a2a)=>{const _0x31c50e=_0x369344;for(var _0x247dfa=_0x4a0dc1,_0x1c3c33=_0x2447fe[_0x31c50e(0x3b6)]-0x1,_0x32ed77;_0x1c3c33>=0x0;_0x1c3c33--)(_0x32ed77=_0x2447fe[_0x1c3c33])&&(_0x247dfa=_0x32ed77(_0x247dfa)||_0x247dfa);return _0x247dfa;},Zt=(_0x32f7b0,_0x5449f9)=>(_0x324581,_0x3df20c)=>_0x5449f9(_0x324581,_0x3df20c,_0x32f7b0);const Zn=_0x369344(0x425),Qn=_0x369344(0x314);let vt=class{constructor(_0xdf1e52,_0x77ae4f){const _0x479ce4=_0x369344;this[_0x479ce4(0x3f1)]=_0xdf1e52,this[_0x479ce4(0x293)]=_0x77ae4f;}async['getUnitOnRev'](_0x29510b,_0x5c80ae){const _0xab904f=_0x369344;var _0x28ff9e;const {unitID:_0x38cc78,type:_0x679a28,revision:_0x320010=0x0}=_0x5c80ae,_0x22d487=this[_0xab904f(0x1cc)]()+'/'+_0x679a28+_0xab904f(0x3c1)+_0x38cc78+_0xab904f(0x20a)+(_0x320010===0x1?0x0:_0x320010),_0x2ec6e1=(await this[_0xab904f(0x293)][_0xab904f(0x19d)](_0x22d487))[_0xab904f(0x210)],_0x49c40a=(_0x28ff9e=_0x2ec6e1['snapshot'])==null?void 0x0:_0x28ff9e[_0xab904f(0x40c)];if(_0x49c40a){const _0x1ae774=_0x49c40a==null?void 0x0:_0x49c40a[_0xab904f(0x31a)],_0x2a23d5=_0x5a0fb1[_0xab904f(0x391)](_0x15cbc3(_0x1ae774));_0x49c40a[_0xab904f(0x31a)]=_0x2a23d5,Object[_0xab904f(0x3b4)](_0x49c40a['sheets'])[_0xab904f(0x33d)](([,_0x18b2ba])=>{const _0x36c66a=_0xab904f,_0x107a3a=_0x18b2ba[_0x36c66a(0x31a)],_0x598944=_0x5a0fb1[_0x36c66a(0x391)](_0x15cbc3(_0x107a3a));_0x18b2ba[_0x36c66a(0x31a)]=_0x598944;});}return _0x2ec6e1;}async[_0x369344(0x404)](_0x798110,_0xdb7a8b){const _0x20f156=_0x369344,{unitID:_0xdbca20,type:_0x5625a0,blockID:_0x49f3bf}=_0xdb7a8b,_0x107a27=this['_getAPIPrefixPath']()+'/'+_0x5625a0+_0x20f156(0x3c1)+_0xdbca20+_0x20f156(0x17b)+_0x49f3bf;return(await this[_0x20f156(0x293)][_0x20f156(0x19d)](_0x107a27))['body'];}async[_0x369344(0x452)](_0x4bdf9b,_0x3ce202){const _0x5884c1=_0x369344,{unitID:_0x3bcc76,type:_0x2900ae,from:_0x36860e,to:_0x4ff86e}=_0x3ce202,_0x4ef8c1=this[_0x5884c1(0x1cc)]()+'/'+_0x2900ae+_0x5884c1(0x3c1)+_0x3bcc76+_0x5884c1(0x31c)+_0x36860e+'&to='+_0x4ff86e;return(await this[_0x5884c1(0x293)][_0x5884c1(0x19d)](_0x4ef8c1))[_0x5884c1(0x210)];}[_0x369344(0x1cc)](){const _0x2c5d01=_0x369344;var _0x37706b;return(_0x37706b=this['_configService'][_0x2c5d01(0x306)](Zn))!=null?_0x37706b:Qn;}async[_0x369344(0x29a)](_0x8dd882,_0x12a53c){const _0x14e4fe=_0x369344,_0xa30b73='/universer-api/snapshot/'+_0x12a53c[_0x14e4fe(0x2f5)]+_0x14e4fe(0x3c1)+_0x12a53c[_0x14e4fe(0x3cc)]+_0x14e4fe(0x243);return(await this[_0x14e4fe(0x293)][_0x14e4fe(0x19d)](_0xa30b73,{'params':{'resourceId':JSON[_0x14e4fe(0x183)](_0x12a53c[_0x14e4fe(0x177)])}}))[_0x14e4fe(0x210)];}[_0x369344(0x1be)](){const _0x549dd5=_0x369344;throw new Error(_0x549dd5(0x403));}['saveSheetBlock'](){const _0x3fdd98=_0x369344;throw new Error(_0x3fdd98(0x403));}['saveChangeset'](){const _0x5f5b44=_0x369344;throw new Error(_0x5f5b44(0x403));}};vt=qn([Zt(0x0,_0xcb4dc7),Zt(0x1,_0x3bdb53(_0xe9c2a2))],vt);var er=(_0x10de0f,_0x163f43,_0x1b56ac,_0x29a852)=>{const _0x1060fe=_0x369344;for(var _0x2552f2=_0x163f43,_0x361da3=_0x10de0f[_0x1060fe(0x3b6)]-0x1,_0x1517aa;_0x361da3>=0x0;_0x361da3--)(_0x1517aa=_0x10de0f[_0x361da3])&&(_0x2552f2=_0x1517aa(_0x2552f2)||_0x2552f2);return _0x2552f2;},Ee=(_0x37af9d,_0x64890)=>(_0x221c69,_0x53ee76)=>_0x64890(_0x221c69,_0x53ee76,_0x37af9d);let pt=class extends _0x26b2de{constructor(_0x2c2310,_0x2000c4,_0x4c1fe7,_0x195109,_0x42ff9c){const _0x1ea004=_0x369344;super(_0x2c2310,_0x2000c4,_0x4c1fe7),this[_0x1ea004(0x27b)]=_0x195109,this[_0x1ea004(0x2d5)]=_0x42ff9c;}[_0x369344(0x394)](_0x62436a,_0x888855){const _0x3078f1=_0x369344,_0x5e5cf9=this['_getUndoStack'](_0x62436a);if(_0x5e5cf9)try{const _0x30d128=this['_transformStack'](_0x5e5cf9,_0x888855);this[_0x3078f1(0x19b)](_0x62436a,_0x30d128);}catch(_0x6db8e7){this[_0x3078f1(0x2d5)][_0x3078f1(0x284)](_0x3078f1(0x34d),_0x6db8e7),this['_clearUndo'](_0x62436a);}const _0x4f57ab=this[_0x3078f1(0x226)](_0x62436a);if(_0x4f57ab)try{const _0x467725=this['_transformStack'](_0x4f57ab,_0x888855);this['_substituteRedoStack'](_0x62436a,_0x467725);}catch(_0x5c0a68){this[_0x3078f1(0x2d5)][_0x3078f1(0x284)](_0x5c0a68),this[_0x3078f1(0x176)](_0x62436a);}}[_0x369344(0x18e)](_0xd547da){const _0x203151=_0x369344,_0x367e75=this[_0x203151(0x15d)](_0xd547da);_0x367e75&&(_0x367e75['length']=0x0,this[_0x203151(0x43e)]());}[_0x369344(0x176)](_0x5dbb88){const _0x2efe92=_0x369344,_0x176738=this['_getRedoStack'](_0x5dbb88);_0x176738&&(_0x176738[_0x2efe92(0x3b6)]=0x0,this[_0x2efe92(0x43e)]());}['_substituteUndoStack'](_0x280fbc,_0x4c495a){const _0x1c5802=_0x369344;this[_0x1c5802(0x377)][_0x1c5802(0x24c)](_0x280fbc,_0x4c495a),this[_0x1c5802(0x43e)]();}[_0x369344(0x3d1)](_0x1e72f8,_0x599921){const _0x41b32f=_0x369344;this[_0x41b32f(0x3c5)]['set'](_0x1e72f8,_0x599921),this[_0x41b32f(0x43e)]();}[_0x369344(0x230)](_0xcb02ca,_0x2a94f9){const _0x22772a=_0x369344,_0x3e6f15=[];let _0x403772=_0x2a94f9,_0x190653=_0x2a94f9;for(let _0x2471a3=_0xcb02ca['length']-0x1;_0x2471a3>=0x0;_0x2471a3--){const {unitID:_0x3eadbc,undoMutations:_0x596d87,redoMutations:_0x143266}=_0xcb02ca[_0x2471a3],_0x3cb12b=this[_0x22772a(0x27b)][_0x22772a(0x46d)](_0x403772,_0x596d87),_0xe02718=this['_transformService']['transformMutationsWithChangeset'](_0x190653,_0x143266);if(_0x5c914b(_0x3cb12b)||_0x5c914b(_0xe02718)){this[_0x22772a(0x2d5)][_0x22772a(0x284)](_0x22772a(0x34d),_0x22772a(0x2a4),_0x3cb12b,_0xe02718);break;}_0x403772=_0x3cb12b[_0x22772a(0x37e)],_0x190653=_0xe02718['c1Prime'],_0x3e6f15[_0x22772a(0x288)]({'unitID':_0x3eadbc,'undoMutations':_0x3cb12b[_0x22772a(0x422)],'redoMutations':_0xe02718[_0x22772a(0x422)]});}return _0x3e6f15['reverse']();}};pt=er([Ee(0x0,_0x1e6754),Ee(0x1,_0x2e73f7),Ee(0x2,_0x3daa7a),Ee(0x3,_0x5cdc22),Ee(0x4,_0x5e199c)],pt);class tr extends _0x1f6cf4{constructor(){const _0x320a26=_0x369344;super(),l(this,_0x320a26(0x281)),this['urlChange$']=_0x190c51(window,_0x320a26(0x253))[_0x320a26(0x2be)](_0x5f2af8(this['dispose$']),_0x2d5bca(0x1),_0x41fdc8(void 0x0));}[_0x369344(0x202)](_0x53bd8c,_0x1a557c,_0x2609d6=!0x1){const _0xc38a2d=_0x369344,_0x3d07e5=new URL(window[_0xc38a2d(0x419)][_0xc38a2d(0x45e)]);_0x3d07e5[_0xc38a2d(0x328)][_0xc38a2d(0x24c)](_0x53bd8c,_0x1a557c),_0x2609d6?window['history'][_0xc38a2d(0x3c8)]('','',_0x3d07e5['toString']()):window[_0xc38a2d(0x203)][_0xc38a2d(0x335)]('','',_0x3d07e5['toString']());}[_0x369344(0x3ec)](_0x21f603,_0xe02b3c=!0x1){const _0x1feccb=_0x369344,_0x7d99a7=new URL(window['location'][_0x1feccb(0x45e)]);_0x7d99a7[_0x1feccb(0x328)]['delete'](_0x21f603),_0xe02b3c?window[_0x1feccb(0x203)][_0x1feccb(0x3c8)]('','',_0x7d99a7[_0x1feccb(0x2fb)]()):window[_0x1feccb(0x203)][_0x1feccb(0x335)]('','',_0x7d99a7[_0x1feccb(0x2fb)]());}[_0x369344(0x164)](_0x48bf41){const _0x3bf5a1=_0x369344;var _0x13f994;return(_0x13f994=new URL(window[_0x3bf5a1(0x419)]['href'])[_0x3bf5a1(0x328)]['get'](_0x48bf41))!=null?_0x13f994:void 0x0;}}const nt='collab-text-anchor-',sr=_0x369344(0x17e),Ue=0x6,ir=1.5,rt=0x4,nr=1.5,rr=_0x369344(0x256);class or{constructor(_0x3b635f,_0x146534,_0x4caeb8,_0x6a03ce){const _0xa727d8=_0x369344;l(this,_0xa727d8(0x1a4),[]),l(this,_0xa727d8(0x2a0),null),l(this,_0xa727d8(0x3cb),null),l(this,_0xa727d8(0x3af),null),l(this,_0xa727d8(0x167),null),l(this,_0xa727d8(0x30c),null),(this['_cursor']=_0x3b635f,this[_0xa727d8(0x2a3)]=_0x146534,this['_docSkeleton']=_0x4caeb8,this[_0xa727d8(0x33a)]=_0x6a03ce,this[_0xa727d8(0x44f)]());}set[_0x369344(0x160)](_0x5422d7){const _0x4f53bf=_0x369344;_0x5422d7?(this[_0x4f53bf(0x3af)]&&this[_0x4f53bf(0x3af)][_0x4f53bf(0x365)](),this[_0x4f53bf(0x3cb)]&&this[_0x4f53bf(0x3cb)][_0x4f53bf(0x1d1)]()):(this[_0x4f53bf(0x3af)]&&this[_0x4f53bf(0x3af)]['show'](),this[_0x4f53bf(0x3cb)]&&this[_0x4f53bf(0x3cb)][_0x4f53bf(0x365)]());}[_0x369344(0x42d)](){const _0x396aee=_0x369344;for(const _0x5c9b67 of this['_shapes'])_0x5c9b67[_0x396aee(0x42d)]();this[_0x396aee(0x3cb)]&&this[_0x396aee(0x3cb)]['dispose'](),this[_0x396aee(0x3af)]&&this[_0x396aee(0x3af)]['dispose'](),this[_0x396aee(0x2a0)]&&this[_0x396aee(0x2a0)][_0x396aee(0x42d)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x369344(0x44f)](){const _0x59d459=_0x369344,{_docSkeleton:_0x2d6eb1,_document:_0x436bdd}=this,{color:_0xb3adbd,name:_0x1011b1,ranges:_0x378e7f}=this[_0x59d459(0x240)],_0x24f6d9=_0x436bdd[_0x59d459(0x20d)](),{docsLeft:_0x528eac,docsTop:_0x588964}=_0x24f6d9,_0x440824=new _0x2a5751(_0x24f6d9,_0x2d6eb1);for(const {startOffset:_0x4e433d,endOffset:_0x393a34,collapsed:_0x4e1800,isActive:_0x46af75}of _0x378e7f){const _0x36180c=_0x2d6eb1[_0x59d459(0x2c8)](_0x4e433d),_0x12faf4=_0x2d6eb1[_0x59d459(0x2c8)](_0x393a34);if(_0x46af75){const {contentBoxPointGroup:_0xf29db}=_0x440824[_0x59d459(0x445)](_0x12faf4,_0x12faf4);if(_0xf29db[_0x59d459(0x3b6)]===0x0)continue;this[_0x59d459(0x265)](_0xb3adbd,_0xf29db,_0x528eac,_0x588964,_0x1011b1),this['_eventUnsubscribe']=this[_0x59d459(0x384)]();}if(!_0x4e1800){const {contentBoxPointGroup:_0x511807}=_0x440824[_0x59d459(0x445)](_0x36180c,_0x12faf4);if(_0x511807[_0x59d459(0x3b6)]===0x0)continue;this[_0x59d459(0x436)](_0xb3adbd,_0x511807,_0x528eac,_0x588964);}}}[_0x369344(0x265)](_0xef6c8d,_0x527e83,_0x546fe4,_0x382000,_0x318817){const _0x5c033b=_0x369344,_0x5742dd=this['_getAnchorBounding'](_0x527e83),{left:_0x48b3d6,top:_0x2ab991,height:_0x47c236}=_0x5742dd,_0x26a233=this['_getScale'](),_0x185098=nr/_0x26a233,_0x45490e=new _0x8391c2(nt+_0x16b7ed[_0x5c033b(0x3d2)](Ue),{'left':_0x48b3d6+_0x546fe4-_0x185098,'top':_0x2ab991+_0x382000,'height':_0x47c236,'width':ir,'fill':_0xef6c8d||_0x4d3636(_0x2a1b5f[_0x5c033b(0x279)],0x0),'strokeWidth':_0x185098,'stroke':rr,'evented':!0x0});this[_0x5c033b(0x2a0)]=_0x45490e,this['_scene'][_0x5c033b(0x2b1)](_0x45490e,_0x451223);const _0x10c263=new _0x8391c2(nt+_0x16b7ed[_0x5c033b(0x3d2)](Ue),{'left':_0x48b3d6+_0x546fe4-_0x185098,'top':_0x2ab991+_0x382000-rt/0x2,'height':rt,'width':rt,'fill':_0xef6c8d||_0x4d3636(_0x2a1b5f[_0x5c033b(0x279)],0x0),'strokeWidth':0x0,'stroke':_0xef6c8d||_0x4d3636(_0x2a1b5f[_0x5c033b(0x279)],0x0),'evented':!0x1});this[_0x5c033b(0x3af)]=_0x10c263,this[_0x5c033b(0x2a3)][_0x5c033b(0x2b1)](_0x10c263,_0x451223);const _0x52c0b9=new qe(nt+_0x16b7ed['generateRandomId'](Ue),{'left':_0x48b3d6+_0x546fe4-_0x185098,'top':_0x2ab991+_0x382000-ye,'text':_0x318817,'color':_0xef6c8d});this['_textBubble']=_0x52c0b9,this[_0x5c033b(0x2a3)][_0x5c033b(0x2b1)](_0x52c0b9,_0x451223),this[_0x5c033b(0x160)]=!0x1;}[_0x369344(0x384)](){const _0x3610e2=_0x369344,_0x4f2bc4=this['_anchor'][_0x3610e2(0x3dc)][_0x3610e2(0x1a0)](()=>{const _0x319aba=_0x3610e2;this[_0x319aba(0x160)]=!0x0;}),_0x4be642=this[_0x3610e2(0x2a0)]['onPointerLeaveObserver'][_0x3610e2(0x1a0)](()=>{const _0x4340fa=_0x3610e2;this['_hideTimer']&&clearTimeout(this[_0x4340fa(0x167)]),this[_0x4340fa(0x167)]=setTimeout(()=>{const _0x5c4ec8=_0x4340fa;this[_0x5c4ec8(0x160)]=!0x1;},0x7d0);});return()=>{const _0x48cf53=_0x3610e2;var _0x2219d7,_0x137347;(_0x2219d7=this[_0x48cf53(0x2a0)])==null||_0x2219d7[_0x48cf53(0x3dc)][_0x48cf53(0x2ea)](_0x4f2bc4),(_0x137347=this[_0x48cf53(0x2a0)])==null||_0x137347[_0x48cf53(0x316)][_0x48cf53(0x2ea)](_0x4be642);};}['_drawRange'](_0x1ffc59,_0x2bbcf1,_0x16c280,_0x3e6808){const _0x5671fe=_0x369344,_0x26d11e=new _0x11cecc(_0x1ffc59)[_0x5671fe(0x359)](0.2)[_0x5671fe(0x3e1)](),_0x22970e=new _0x4d3b2d(sr+_0x16b7ed[_0x5671fe(0x3d2)](Ue),{'pointsGroup':_0x2bbcf1,'fill':_0x26d11e||_0x4d3636(_0x2a1b5f[_0x5671fe(0x279)],0.2),'left':_0x16c280,'top':_0x3e6808,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5671fe(0x1a4)][_0x5671fe(0x288)](_0x22970e),this['_scene'][_0x5671fe(0x2b1)](_0x22970e,_0x451223);}[_0x369344(0x1df)](_0x251221){const _0x144f14=_0x251221[0x0],_0x3a4ddb=_0x144f14[0x0],_0x2f54a8=_0x144f14[0x2],{x:_0x176149,y:_0x53faaf}=_0x3a4ddb,{x:_0x2d9cfc,y:_0x79946d}=_0x2f54a8;return{'left':_0x176149,'top':_0x53faaf,'width':_0x2d9cfc-_0x176149,'height':_0x79946d-_0x53faaf};}['_getScale'](){const _0x3f3bbb=_0x369344,{scaleX:_0x5b9c8e,scaleY:_0x163d02}=this[_0x3f3bbb(0x2a3)][_0x3f3bbb(0x21e)]();return Math[_0x3f3bbb(0x304)](_0x5b9c8e,_0x163d02);}}var ar=(_0x58ef2e,_0x380dc1,_0x160fbe,_0x42b0a7)=>{const _0xdb5b1f=_0x369344;for(var _0x21c9ec=_0x380dc1,_0x27236d=_0x58ef2e[_0xdb5b1f(0x3b6)]-0x1,_0x5dee45;_0x27236d>=0x0;_0x27236d--)(_0x5dee45=_0x58ef2e[_0x27236d])&&(_0x21c9ec=_0x5dee45(_0x21c9ec)||_0x21c9ec);return _0x21c9ec;},Ce=(_0x448e6e,_0xb82aa)=>(_0x174c8d,_0x2ce328)=>_0xb82aa(_0x174c8d,_0x2ce328,_0x448e6e);let Fe=class extends _0x1f6cf4{constructor(_0x5be615,_0x57dcb1,_0x39c0b4,_0x1c2498,_0x147bef){const _0x554332=_0x369344;super(),l(this,_0x554332(0x2dc),[]),(this['_collabCursorController']=_0x5be615,this[_0x554332(0x2dd)]=_0x57dcb1,this[_0x554332(0x2cb)]=_0x39c0b4,this[_0x554332(0x1ca)]=_0x1c2498,this[_0x554332(0x3e8)]=_0x147bef,this[_0x554332(0x3e0)]());}['_init'](){const _0x30bd8b=_0x369344;this[_0x30bd8b(0x1ca)]['currentSkeleton$']['pipe'](_0x46656a(this[_0x30bd8b(0x351)]),_0x2b4de3(_0x54575a=>{const _0x214b96=_0x30bd8b;if(_0x54575a){const {unitId:_0x49d2fd}=_0x54575a;return _0xf0253e(this['_collabCursorController'][_0x214b96(0x2ef)](_0x49d2fd),this[_0x214b96(0x3e8)][_0x214b96(0x1a6)])[_0x214b96(0x2be)](_0x19010f(([_0x471520,_0x242137])=>({'skeleton':_0x54575a,'cursors':[..._0x471520[_0x214b96(0x400)]()][_0x214b96(0x173)](_0x45fb85=>({..._0x45fb85,'color':_0x242137[_0x45fb85[_0x214b96(0x39e)]]}))})));}return _0x169b33({'skeleton':null,'cursors':[]});}))[_0x30bd8b(0x3c2)](({skeleton:_0x9f80d,cursors:_0x32810a})=>{const _0x5723ea=_0x30bd8b;this[_0x5723ea(0x417)](),_0x9f80d&&this[_0x5723ea(0x402)](_0x9f80d[_0x5723ea(0x180)],_0x32810a);});}['_updateCollabCursors'](_0x6aa8fa,_0x145060){const _0xa9e0ae=_0x369344,_0x59f0db=this[_0xa9e0ae(0x207)]();if(_0x59f0db==null)return;const {scene:_0x3075bb,document:_0x902e97}=_0x59f0db,_0x3486e4=_0x145060['map'](_0x6d40e4=>new or(_0x6d40e4,_0x3075bb,_0x6aa8fa,_0x902e97));this[_0xa9e0ae(0x2dc)]=_0x3486e4;}[_0x369344(0x417)](){const _0x463e06=_0x369344;this[_0x463e06(0x2dc)]['forEach'](_0x5e1f8b=>_0x5e1f8b[_0x463e06(0x42d)]()),this['_cursors']=[];}['_getDocObject'](){const _0x4985f9=_0x369344;return _0x35a139(this[_0x4985f9(0x2dd)],this[_0x4985f9(0x2cb)]);}};Fe=ar([_0x3cfe98(_0x41440a[_0x369344(0x3d8)],Fe),Ce(0x0,_0x3bdb53(ue)),Ce(0x1,_0x1e6754),Ce(0x2,_0x12e984),Ce(0x3,_0x3bdb53(_0x4ca2e9)),Ce(0x4,_0x3bdb53(_0x1851c3))],Fe);var cr=(_0x453940,_0x4ee8ad,_0x5707a6,_0x87176a)=>{const _0x1604e9=_0x369344;for(var _0x14a448=_0x4ee8ad,_0x3af883=_0x453940[_0x1604e9(0x3b6)]-0x1,_0x30298f;_0x3af883>=0x0;_0x3af883--)(_0x30298f=_0x453940[_0x3af883])&&(_0x14a448=_0x30298f(_0x14a448)||_0x14a448);return _0x14a448;},ot=(_0x12ba16,_0x5d38e9)=>(_0x34f408,_0xbf8738)=>_0x5d38e9(_0x34f408,_0xbf8738,_0x12ba16);const hr=_0x369344(0x1a1),lr=_0x369344(0x1bf);let Ye=class{constructor(_0x590d3b,_0x33952c,_0x31fb45){const _0x378cc8=_0x369344;this[_0x378cc8(0x3f1)]=_0x590d3b,this[_0x378cc8(0x293)]=_0x33952c,this[_0x378cc8(0x2a6)]=_0x31fb45,this[_0x378cc8(0x3ac)]();}[_0x369344(0x3ac)](){const _0x116505=_0x369344;this[_0x116505(0x293)][_0x116505(0x20b)]({'priority':0x1,'interceptor':(_0x49adb1,_0x59ac97)=>_0x59ac97(_0x49adb1)[_0x116505(0x2be)](_0x1b553f(async _0x5e5c7c=>{const _0x575b06=_0x116505;if(_0x5e5c7c['status']===0x191&&window[_0x575b06(0x43a)](this[_0x575b06(0x2a6)]['t'](_0x575b06(0x1f5)))){const _0x214c19=window[_0x575b06(0x1bc)](window[_0x575b06(0x419)]['href']);window[_0x575b06(0x419)][_0x575b06(0x45e)]=this[_0x575b06(0x3b5)]()+_0x575b06(0x1ff)+_0x214c19;}return _0x5e5c7c;}))});}[_0x369344(0x3b5)](){const _0x178a00=_0x369344;var _0x5a56bb;return(_0x5a56bb=this[_0x178a00(0x3f1)]['getConfig'](hr))!=null?_0x5a56bb:lr;}};Ye=cr([ot(0x0,_0xcb4dc7),ot(0x1,_0x3bdb53(_0xe9c2a2)),ot(0x2,_0x3bdb53(_0x122a5b))],Ye);var _r=(_0x4a98f2,_0x57faa2,_0x2dd717,_0x277d28)=>{const _0x19f5dd=_0x369344;for(var _0x1fb8b1=_0x57faa2,_0x4bac51=_0x4a98f2[_0x19f5dd(0x3b6)]-0x1,_0x5cc8b9;_0x4bac51>=0x0;_0x4bac51--)(_0x5cc8b9=_0x4a98f2[_0x4bac51])&&(_0x1fb8b1=_0x5cc8b9(_0x1fb8b1)||_0x1fb8b1);return _0x1fb8b1;},Qt=(_0x9758a8,_0xf22522)=>(_0x1b97c7,_0x51d41f)=>_0xf22522(_0x1b97c7,_0x51d41f,_0x9758a8);const ur=_0x369344(0x1e1),dr='/universer-api/authz';let It=class{constructor(_0x25c991,_0x17bd1b){const _0x38994b=_0x369344;this['_HTTPService']=_0x25c991,this[_0x38994b(0x3f1)]=_0x17bd1b;}['_getAPIPrefixPath'](){const _0x379dfd=_0x369344;var _0x531fe7;return(_0x531fe7=this['_configService'][_0x379dfd(0x306)](ur))!=null?_0x531fe7:dr;}async['create'](_0x2b8d97){const _0x3362b9=_0x369344,_0x3ae589=this[_0x3362b9(0x1cc)]()+'/'+_0x2b8d97[_0x3362b9(0x192)]+_0x3362b9(0x3bb);return(await this['_HTTPService'][_0x3362b9(0x371)](_0x3ae589,{'body':_0x2b8d97}))[_0x3362b9(0x210)][_0x3362b9(0x334)]||'';}async[_0x369344(0x396)](_0x4f2147){const _0x3ee56e=_0x369344,_0x1bd97d=this[_0x3ee56e(0x1cc)]()+'/-/object/list';return(await this['_HTTPService'][_0x3ee56e(0x371)](_0x1bd97d,{'body':_0x4f2147}))[_0x3ee56e(0x210)][_0x3ee56e(0x363)];}async[_0x369344(0x389)](_0xb0df9a){const _0x1dcbd1=_0x369344,_0x221785=this[_0x1dcbd1(0x1cc)]()+'/'+_0xb0df9a['objectType']+_0x1dcbd1(0x327)+_0xb0df9a[_0x1dcbd1(0x334)];await this[_0x1dcbd1(0x2e1)][_0x1dcbd1(0x2df)](_0x221785,{'body':_0xb0df9a});}async[_0x369344(0x307)](_0xec080a){const _0x5d236c=_0x369344,_0x2075a0=this[_0x5d236c(0x1cc)]()+'/'+_0xec080a[_0x5d236c(0x192)]+_0x5d236c(0x327)+_0xec080a[_0x5d236c(0x334)]+'/allowed';return(await this[_0x5d236c(0x2e1)][_0x5d236c(0x371)](_0x2075a0,{'body':_0xec080a}))['body'][_0x5d236c(0x289)];}async[_0x369344(0x1e3)](_0x144989){const _0x10ee3b=_0x369344,_0x805425=this[_0x10ee3b(0x1cc)]()+_0x10ee3b(0x2b3);return(await this[_0x10ee3b(0x2e1)][_0x10ee3b(0x371)](_0x805425,{'body':{'requests':_0x144989}}))[_0x10ee3b(0x210)][_0x10ee3b(0x3e4)];}async[_0x369344(0x189)](_0x21ab5c){const _0x2e37e1=_0x369344,_0x103ed4=this[_0x2e37e1(0x1cc)]()+'/'+_0x21ab5c['objectType']+_0x2e37e1(0x354),_0x222183=(await this['_HTTPService'][_0x2e37e1(0x371)](_0x103ed4,{'body':_0x21ab5c}))[_0x2e37e1(0x210)];return{'roles':_0x222183['roles'],'actions':_0x222183[_0x2e37e1(0x289)]};}async[_0x369344(0x46c)](_0xae759b){const _0x4422dd=_0x369344,_0xa27113=this[_0x4422dd(0x1cc)]()+_0x4422dd(0x193);await this[_0x4422dd(0x2e1)][_0x4422dd(0x358)](_0xa27113,{'params':{'collaboratorID':_0xae759b[_0x4422dd(0x1ac)],'objectID':_0xae759b['objectID'],'unitID':_0xae759b[_0x4422dd(0x3cc)]}});}async['updateCollaborator'](_0x3fd9be){const _0x5bcdce=_0x369344,_0x395012=this[_0x5bcdce(0x1cc)]()+_0x5bcdce(0x193);await this[_0x5bcdce(0x2e1)][_0x5bcdce(0x237)](_0x395012,{'body':_0x3fd9be});}async[_0x369344(0x44a)](_0x54019e){const _0x26597b=_0x369344,_0x5786d3=this['_getAPIPrefixPath']()+_0x26597b(0x193);await this['_HTTPService']['post'](_0x5786d3,{'body':_0x54019e});}async[_0x369344(0x320)](_0x533db9){const _0x409342=_0x369344,_0x28c22e=this[_0x409342(0x1cc)]()+_0x409342(0x193);return(await this['_HTTPService'][_0x409342(0x19d)](_0x28c22e,{'params':{'objectID':_0x533db9[_0x409342(0x334)],'unitID':_0x533db9['unitID']}}))[_0x409342(0x210)][_0x409342(0x1d7)];}async[_0x369344(0x2c7)](_0x321b04){const _0x9f373e=_0x369344,_0x264635=this[_0x9f373e(0x1cc)]()+'/collaborator';await this[_0x9f373e(0x2e1)][_0x9f373e(0x2df)](_0x264635,{'body':_0x321b04});}};It=_r([Qt(0x0,_0x3bdb53(_0xe9c2a2)),Qt(0x1,_0x3bdb53(_0xcb4dc7))],It);var gr=(_0x334b88,_0xea936d,_0x2a3f03,_0x28db29)=>{const _0x44e693=_0x369344;for(var _0x5714bc=_0xea936d,_0x1316be=_0x334b88[_0x44e693(0x3b6)]-0x1,_0xc6955f;_0x1316be>=0x0;_0x1316be--)(_0xc6955f=_0x334b88[_0x1316be])&&(_0x5714bc=_0xc6955f(_0x5714bc)||_0x5714bc);return _0x5714bc;},es=(_0x5d6b2e,_0x48a5ee)=>(_0xc2ce1e,_0xdf968d)=>_0x48a5ee(_0xc2ce1e,_0xdf968d,_0x5d6b2e);const mr=['image/png',_0x369344(0x420),'image/jpg','image/gif',_0x369344(0x280)],Sr=0x5*0x400*0x400,fr=_0x369344(0x2ab),vr=_0x369344(0x34a),pr=_0x369344(0x26e),Ir='/universer-api/file/{fileID}/sign-url';let Et=class{constructor(_0x3c4f93,_0x138500){const _0x85c31a=_0x369344;l(this,_0x85c31a(0x1c4),0x0),l(this,'_change$',new _0x36360c()),l(this,_0x85c31a(0x31e),this[_0x85c31a(0x3df)]),l(this,'_imageSourceCache',new Map()),(this[_0x85c31a(0x293)]=_0x3c4f93,this[_0x85c31a(0x3f1)]=_0x138500);}['setWaitCount'](_0x3e709b){const _0x498080=_0x369344;this[_0x498080(0x1c4)]=_0x3e709b,this[_0x498080(0x3df)][_0x498080(0x43d)](_0x3e709b);}[_0x369344(0x44c)](_0x3e893f,_0x5e5f98){const _0x37f4b4=_0x369344;if(_0x5e5f98===_0x51fc09[_0x37f4b4(0x15e)]){const _0xd12f05=new Image();return _0xd12f05[_0x37f4b4(0x33b)]=_0x3e893f,_0xd12f05;}return this[_0x37f4b4(0x3b8)][_0x37f4b4(0x19d)](_0x3e893f);}[_0x369344(0x24f)](_0x4d30ea,_0x17b79e,_0x12d3c2){const _0x432124=_0x369344;_0x17b79e===_0x51fc09[_0x432124(0x15e)]||_0x12d3c2==null||this['_imageSourceCache'][_0x432124(0x24c)](_0x4d30ea,_0x12d3c2);}async[_0x369344(0x3b3)](_0x30ac77){const _0x16e092=_0x369344;try{const _0x6365c0=this['_replaceFileID'](this[_0x16e092(0x1de)](),''+_0x30ac77),_0x410ec9=(await this['_httpService'][_0x16e092(0x19d)](_0x6365c0))['body'];return _0x410ec9[_0x16e092(0x284)]&&_0x410ec9[_0x16e092(0x284)][_0x16e092(0x22e)]===ps['OK']?Promise[_0x16e092(0x361)](_0x410ec9[_0x16e092(0x387)]):Promise[_0x16e092(0x1ef)](_0x410ec9['error']);}catch(_0x594b2d){return Promise[_0x16e092(0x1ef)](_0x594b2d);}}async['saveImage'](_0xfba53f){const _0x290e34=_0x369344;let _0x4b439c='';if(!mr[_0x290e34(0x36c)](_0xfba53f[_0x290e34(0x2f5)]))return this[_0x290e34(0x245)](),Promise['reject'](new Error(_0x4ac7c3[_0x290e34(0x32b)]));if(_0xfba53f['size']>Sr)return this[_0x290e34(0x245)](),Promise[_0x290e34(0x1ef)](new Error(_0x4ac7c3[_0x290e34(0x26f)]));try{const _0x25a7c0=new FormData();_0x25a7c0['append'](_0x290e34(0x457),_0xfba53f);const _0x2bdef1=this[_0x290e34(0x468)]()+_0x290e34(0x221)+_0xfba53f[_0x290e34(0x407)]['toString'](),_0x1230c2=await(await fetch(_0x2bdef1,{'method':'POST','body':_0x25a7c0}))[_0x290e34(0x3a3)]();if(typeof _0x1230c2[_0x290e34(0x341)]!=_0x290e34(0x3ae))return this['_decreaseWaiting'](),Promise[_0x290e34(0x1ef)](new Error(_0x4ac7c3[_0x290e34(0x45c)]));_0x4b439c=_0x1230c2[_0x290e34(0x341)];}catch{return this[_0x290e34(0x245)](),Promise[_0x290e34(0x1ef)](new Error(_0x4ac7c3['ERROR_IMAGE']));}return new Promise((_0x1316e2,_0x2965db)=>{const _0x480b55=_0x290e34,_0x4396a6=new FileReader();_0x4396a6[_0x480b55(0x37d)](_0xfba53f),_0x4396a6['onload']=_0x322344=>{const _0x14170d=_0x480b55;var _0x5661c4;const _0x27e895=(_0x5661c4=_0x322344['target'])==null?void 0x0:_0x5661c4[_0x14170d(0x1a2)];if(_0x27e895==null){this['_decreaseWaiting'](),_0x2965db(new Error(_0x4ac7c3[_0x14170d(0x45c)]));return;}const _0x3daf04=_0x16b7ed[_0x14170d(0x3d2)](0x6);_0x1316e2({'imageId':_0x3daf04,'imageSourceType':_0x51fc09[_0x14170d(0x2fa)],'source':_0x4b439c,'base64Cache':_0x27e895,'status':_0x4ac7c3[_0x14170d(0x318)]}),this[_0x14170d(0x245)]();};});}[_0x369344(0x468)](){const _0x5aca73=_0x369344;var _0xde6dc7;return(_0xde6dc7=this[_0x5aca73(0x3f1)][_0x5aca73(0x306)](fr))!=null?_0xde6dc7:vr;}[_0x369344(0x1de)](){const _0x4d038f=_0x369344;var _0x37c71e;return(_0x37c71e=this[_0x4d038f(0x3f1)][_0x4d038f(0x306)](pr))!=null?_0x37c71e:Ir;}['_replaceFileID'](_0x27f8aa,_0x54911d){const _0x4b8713=_0x369344;return _0x27f8aa[_0x4b8713(0x3a8)]('{fileID}',_0x54911d);}[_0x369344(0x245)](){const _0x5b1c48=_0x369344;this['_waitCount']-=0x1,this['_change$'][_0x5b1c48(0x43d)](this[_0x5b1c48(0x1c4)]);}};Et=gr([es(0x0,_0x3bdb53(_0xe9c2a2)),es(0x1,_0xcb4dc7)],Et);var Er=(_0x2d49c6,_0x5d59e2,_0x2c0788,_0x36e1df)=>{const _0x700e0e=_0x369344;for(var _0x30b349=_0x5d59e2,_0x11388f=_0x2d49c6[_0x700e0e(0x3b6)]-0x1,_0x184ad7;_0x11388f>=0x0;_0x11388f--)(_0x184ad7=_0x2d49c6[_0x11388f])&&(_0x30b349=_0x184ad7(_0x30b349)||_0x30b349);return _0x30b349;},ts=(_0x13a355,_0x3d9c01)=>(_0x288296,_0x72fdbe)=>_0x3d9c01(_0x288296,_0x72fdbe,_0x13a355);const Cr=_0x369344(0x2fc);var at;let ss=(at=class extends _0x1b07a0{constructor(_0x15e941,_0x4af0d2,_0x30d251){const _0x5ee422=_0x369344;super(),this[_0x5ee422(0x337)]=_0x15e941,this[_0x5ee422(0x2e0)]=_0x4af0d2,this[_0x5ee422(0x24a)]=_0x30d251;}['onStarting'](_0x1db049){const _0xf6a18f=_0x369344;var _0x571bdb,_0x539985,_0x4121c5,_0xe64afd,_0x3e2fcb;_0x1db049[_0xf6a18f(0x3a8)]([_0x34383f,{'useClass':pt}]);let _0x15f774=[[Oe],[At],[_0xe9c2a2],[ws,{'useClass':tr}],[ee],[O],[_0x42c558],[We],[Be],[Ve],[Mt],[Ye],[Is,{'useClass':(_0x539985=(_0x571bdb=this[_0xf6a18f(0x337)])==null?void 0x0:_0x571bdb[_0xf6a18f(0x25a)])!=null?_0x539985:ut}],[_0x1e7960,{'useClass':_0x5ca741}],[_0xb15e1d,{'useClass':vt}],[_0x3ee45a,{'useClass':It}],[_0x443a0e,{'useClass':Et}],[be],[xe],[He],[je],[ue]];(_0x4121c5=this[_0xf6a18f(0x337)])!=null&&_0x4121c5['enableSingleActiveInstanceLock']&&_0x15f774[_0xf6a18f(0x288)]([Je,{'useClass':an}]),((_0xe64afd=this[_0xf6a18f(0x337)])==null?void 0x0:_0xe64afd[_0xf6a18f(0x181)])==null||this[_0xf6a18f(0x337)][_0xf6a18f(0x181)][_0xf6a18f(0x36c)](_0x195e2d[_0xf6a18f(0x38c)])?_0x15f774['push']([$e]):this[_0xf6a18f(0x337)][_0xf6a18f(0x181)]['includes'](_0x195e2d[_0xf6a18f(0x3c6)])&&_0x15f774[_0xf6a18f(0x288)]([Fe]),_0x15f774=_0x31fff2(_0x15f774,(_0x3e2fcb=this[_0xf6a18f(0x337)])==null?void 0x0:_0x3e2fcb[_0xf6a18f(0x469)]),_0x15f774[_0xf6a18f(0x33d)](_0x1f8222=>_0x1db049['add'](_0x1f8222)),_0x1db049['get'](_0xe9c2a2)[_0xf6a18f(0x20b)]({'priority':0x14,'interceptor':_0x1db049[_0xf6a18f(0x3f0)](_0x437693,{'maxParallel':0x6})}),this[_0xf6a18f(0x301)]();}[_0x369344(0x301)](){const _0x309ecb=_0x369344;var _0x41ebe6,_0x3703cc;(_0x41ebe6=this['_config'])!=null&&_0x41ebe6[_0x309ecb(0x385)]||this['_injector']['get'](O)[_0x309ecb(0x2da)](),(_0x3703cc=this['_config'])!=null&&_0x3703cc['enableAuthServer']&&this[_0x309ecb(0x2e0)][_0x309ecb(0x19d)](Ye);}},l(at,_0x369344(0x44b),Cr),at);ss=Er([ts(0x1,_0x3bdb53(_0x29e329)),ts(0x2,_0x3bdb53(_0x122a5b))],ss);export{It as AuthzIoHttpService,Yi as COLLAB_SUBMIT_CHANGESET_URL_KEY,Ji as COLLAB_WEB_SOCKET_URL_KEY,ss as CollaborationClientPlugin,be as CollaborationController,dt as CollaborationSession,Oe as CollaborationSessionService,ut as CollaborationSocketService,y as CollaborationStatus,Wn as CollaborationStatusDisplay,xe as DataLoaderController,He as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Cs as HEARTBEAT_TIMEOUT_KEY,Is as ICollaborationSocketService,ws as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hr as LOGIN_URL_KEY,O as LocalCacheService,mn as SEND_CHANGESET_TIMEOUT_KEY,Zn as SNAPSHOT_SERVER_URL_KEY,_e as SessionStatus,tr as WebURLService,Bi as deserializeToCombResponse,Wi as serializeCombRequest};
|
1
|
+
const _0x3bdab3=_0x92e7;(function(_0x5395a6,_0x16e90e){const _0x3083ee=_0x92e7,_0x136503=_0x5395a6();while(!![]){try{const _0x1a9216=-parseInt(_0x3083ee(0x28a))/0x1+parseInt(_0x3083ee(0x326))/0x2+-parseInt(_0x3083ee(0x3b4))/0x3*(parseInt(_0x3083ee(0x293))/0x4)+-parseInt(_0x3083ee(0x1ee))/0x5*(parseInt(_0x3083ee(0x38d))/0x6)+parseInt(_0x3083ee(0x109))/0x7+parseInt(_0x3083ee(0x290))/0x8*(parseInt(_0x3083ee(0x278))/0x9)+parseInt(_0x3083ee(0x3a2))/0xa;if(_0x1a9216===_0x16e90e)break;else _0x136503['push'](_0x136503['shift']());}catch(_0x41bb75){_0x136503['push'](_0x136503['shift']());}}}(_0x25d0,0xefed5));var js=Object[_0x3bdab3(0x162)],Hs=(_0x3069d9,_0x55f9f4,_0x132ea8)=>_0x55f9f4 in _0x3069d9?js(_0x3069d9,_0x55f9f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132ea8}):_0x3069d9[_0x55f9f4]=_0x132ea8,l=(_0x6b344c,_0x40aeb7,_0x50bcb4)=>Hs(_0x6b344c,typeof _0x40aeb7!=_0x3bdab3(0x1f4)?_0x40aeb7+'':_0x40aeb7,_0x50bcb4);import{Disposable as _0x292c4b,toDisposable as _0x439c9a,UniverInstanceType as _0x3ba52b,UserManagerService as _0x1f7d66,IUniverInstanceService as _0x173bd8,DisposableCollection as _0x308b9c,IConfigService as _0x37d874,ILogService as _0x2cecb4,ISnapshotServerService as _0x4d41e7,RxDisposable as _0x300f85,LocaleService as _0x25e6c6,ILocalStorageService as _0x5b24bc,Tools as _0x572ff7,ICommandService as _0x5ba974,JSONX as _0x526e13,IPermissionService as _0x4ac7e0,IUndoRedoService as _0x1de145,sequenceExecute as _0x35931d,OnLifecycle as _0x516125,LifecycleStages as _0x3c792f,CommandType as _0x4ea69f,Rectangle as _0x262b85,ThemeService as _0x588548,Workbook as _0x40c937,textEncoder as _0x218b7d,b64DecodeUnicode as _0x14b7ab,LocalUndoRedoService as _0x3147c1,IContextService as _0x5b7487,COLORS as _0x1d3c6f,ColorKit as _0x2b14c0,Plugin as _0x454bd9,IAuthzIoService as _0x26ad23,mergeOverrideWithDependencies as _0xfb808f,DependentOn as _0x11cd6}from'@univerjs/core';import{SelectionManagerService as _0x24c085,SetSelectionsOperation as _0x2a3a91,InsertSheetMutation as _0x21601c,WorkbookEditablePermission as _0x2a2a3d,RefRangeService as _0x4bc4de,EffectRefRangId as _0x1cd245,handleIRemoveRow as _0x3c04cd,handleIRemoveCol as _0x321d78,handleMoveRange as _0xda0b52,handleInsertRow as _0x152d72,handleInsertRangeMoveRight as _0xa36c52,handleInsertRangeMoveDown as _0x343dcb,handleInsertCol as _0x291d27,handleDeleteRangeMoveUp as _0x2a22df,handleDeleteRangeMoveLeft as _0x4b07cd,runRefRangeMutations as _0x4c1838,SetWorksheetActivateCommand as _0x40335c}from'@univerjs/sheets';import{MessageType as _0x32f68a}from'@univerjs/design';import{IBeforeCloseService as _0xb59960,IMessageService as _0x2ac335,INotificationService as _0x39c5e1,useObservable as _0x52c0a4,BuiltInUIPart as _0x403b57,IUIPartsService as _0x8b992a}from'@univerjs/ui';import{CollaborationEvent as _0x19dc79,parseChangesetToProtocol as _0x155865,RevisionService as _0x54c94d,isTransformMutationFailure as _0x3295bd,isTransformMutationsWithChangesetSuccess as _0x155e17,ITransformService as _0x539a09,mapDocumentTypeToUniverType as _0x4c5ba5,isTransformChangesetsSuccess as _0x36d671,CompressMutationService as _0x130ad1,parseProtocolChangeset as _0x17d674,SnapshotService as _0x4471bc,isTransformMutationsWithChangesetFailure as _0x39e768,UniverCollaborationPlugin as _0x40a55a}from'@univerjs-pro/collaboration';import{Inject as _0x279e5b,createIdentifier as _0x3ce7c5,Injector as _0x5df577,Optional as _0x4100a2}from'@wendellhu/redi';import{merge as _0x1ddc59,Subject as _0x4a8f66,BehaviorSubject as _0x2fb415,distinctUntilChanged as _0x24f1b5,fromEvent as _0xb88582,of as _0x442f94,takeUntil as _0x352c23,debounceTime as _0x2e32ca,filter as _0x1402ad,switchMap as _0x659f37,combineLatest as _0x499f91,shareReplay as _0x260592,mapTo as _0x57165d,concatMap as _0x3298d9}from'rxjs';import{map as _0x5de95e,takeUntil as _0xdf0e3e,take as _0x319274,filter as _0x748e3b,delay as _0x251b05,shareReplay as _0x1a58cf,switchMap as _0x40ba52}from'rxjs/operators';import{IMEInputManagerService as _0x4a03ac,TextSelectionManagerService as _0x23f9d5,serializeTextRange as _0x53dc05,DocStateChangeManagerService as _0x520590,SetTextSelectionsOperation as _0x3c0d3c,RichTextEditingMutation as _0xe7b6e2,getDocObject as _0x3089e4,DocSkeletonManagerService as _0x27e0a0}from'@univerjs/docs';import{HTTPService as _0x24b00a,WebSocketService as _0x2a4381,IHTTPImplementation as _0x3ebb40,XHRHTTPImplementation as _0x5cf0a1,ThresholdInterceptorFactory as _0x344db4}from'@univerjs/network';import{ImageSourceType as _0xd025b9,ImageUploadStatusType as _0x34894f,IImageIoService as _0x401699}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0xa7c92b,serializeRangeWithSheet as _0x329641}from'@univerjs/engine-formula';import _0x2ebe29 from'lodash/debounce';import{Shape as _0x1c658f,Rect as _0x11ad62,Vector2 as _0x4fff35,IRenderManagerService as _0x4c72a4,NodePositionConvertToCursor as _0x7f1a71,getColor as _0x40bb34,TEXT_RANGE_LAYER_INDEX as _0x2c9f4c,RegularPolygon as _0x566c8a}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x516270,VIEWPORT_KEY as _0x6dbc23,getCoordByCell as _0x334eac,getSheetObject as _0x9bd77f}from'@univerjs/sheets-ui';import{useDependency as _0x35026c,connectInjector as _0x266534}from'@wendellhu/redi/react-bindings';import _0x3f5d4a,{forwardRef as _0x1c2ff9,useRef as _0xbd3c86,createElement as _0x58bacf}from'react';import _0x52a9a7 from'clsx';import{IRemoteInstanceService as _0x126341}from'@univerjs/rpc';const Wi=_0x3bdab3(0x20e),Gi=_0x3bdab3(0x357),Yi=_0x3bdab3(0x153),Ki=_0x3bdab3(0xf7),Xi=0x7d0,Ji=_0x3bdab3(0x294),zi=_0x3bdab3(0x1bf),Zi=_0x3bdab3(0x396),qi=0x7530,ps=_0x3bdab3(0x1ff),Is=0x2710,Qi='RETRY_CONNECTING_INTERVAL',en=0x4e20,tn='RETRY_CONNECTING_MAX_COUNT',sn=0x3,nn=_0x3bdab3(0x1fb),rn=0x3e8,on='COLLAB_SUBMIT_CHANGESET_URL',an=_0x3bdab3(0x375),cn='LOGIN_URL_KEY',hn='/universer-api/oidc/authpage';var Es=(_0x27d767=>(_0x27d767[_0x27d767[_0x3bdab3(0x33b)]=0x0]=_0x3bdab3(0x33b),_0x27d767[_0x27d767['OK']=0x1]='OK',_0x27d767[_0x27d767[_0x3bdab3(0x256)]=0x2]=_0x3bdab3(0x256),_0x27d767[_0x27d767[_0x3bdab3(0x2b2)]=0x3]=_0x3bdab3(0x2b2),_0x27d767[_0x27d767[_0x3bdab3(0xc3)]=0x4]=_0x3bdab3(0xc3),_0x27d767[_0x27d767[_0x3bdab3(0x338)]=0x5]=_0x3bdab3(0x338),_0x27d767[_0x27d767['ALREADY_EXISTS']=0x6]=_0x3bdab3(0x1c4),_0x27d767[_0x27d767[_0x3bdab3(0x3a6)]=0x7]=_0x3bdab3(0x3a6),_0x27d767[_0x27d767['TOO_MANY_REQUESTS']=0x8]=_0x3bdab3(0x170),_0x27d767[_0x27d767[_0x3bdab3(0x360)]=0x9]='COMPLETION_FINISHED',_0x27d767[_0x27d767[_0x3bdab3(0x2d3)]=0x1389]=_0x3bdab3(0x2d3),_0x27d767[_0x27d767['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3bdab3(0x2c3),_0x27d767[_0x27d767[_0x3bdab3(0x208)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x27d767[_0x27d767['APPLY_REJECT']=0x1b59]=_0x3bdab3(0x2e7),_0x27d767[_0x27d767['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3bdab3(0x364),_0x27d767[_0x27d767[_0x3bdab3(0x3b2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x27d767[_0x27d767[_0x3bdab3(0x266)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x27d767[_0x27d767['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3bdab3(0x222),_0x27d767[_0x27d767[_0x3bdab3(0x2a4)]=0x2329]=_0x3bdab3(0x2a4),_0x27d767[_0x27d767[_0x3bdab3(0x129)]=0x232a]=_0x3bdab3(0x129),_0x27d767[_0x27d767[_0x3bdab3(0x12f)]=0x232b]=_0x3bdab3(0x12f),_0x27d767[_0x27d767[_0x3bdab3(0x35f)]=0x232c]=_0x3bdab3(0x35f),_0x27d767[_0x27d767[_0x3bdab3(0x219)]=0x232d]=_0x3bdab3(0x219),_0x27d767[_0x27d767[_0x3bdab3(0x20b)]=0x2711]=_0x3bdab3(0x20b),_0x27d767[_0x27d767[_0x3bdab3(0x211)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x27d767[_0x27d767[_0x3bdab3(0x2fd)]=-0x1]='UNRECOGNIZED',_0x27d767))(Es||{}),H=(_0x364520=>(_0x364520[_0x364520[_0x3bdab3(0x9a)]=0x0]=_0x3bdab3(0x9a),_0x364520[_0x364520[_0x3bdab3(0x1a4)]=0x1]='UNIVER_DOC',_0x364520[_0x364520['UNIVER_SHEET']=0x2]=_0x3bdab3(0x38c),_0x364520[_0x364520['UNIVER_SLIDE']=0x3]=_0x3bdab3(0x372),_0x364520[_0x364520['UNRECOGNIZED']=-0x1]=_0x3bdab3(0x2fd),_0x364520))(H||{}),I=(_0x402a7a=>(_0x402a7a[_0x402a7a[_0x3bdab3(0x2d4)]=0x0]=_0x3bdab3(0x2d4),_0x402a7a[_0x402a7a[_0x3bdab3(0x190)]=0x1]=_0x3bdab3(0x190),_0x402a7a[_0x402a7a[_0x3bdab3(0x2d6)]=0x2]=_0x3bdab3(0x2d6),_0x402a7a[_0x402a7a[_0x3bdab3(0x243)]=0x3]=_0x3bdab3(0x243),_0x402a7a[_0x402a7a[_0x3bdab3(0x23e)]=0x4]='INGEST',_0x402a7a[_0x402a7a[_0x3bdab3(0x325)]=0x5]=_0x3bdab3(0x325),_0x402a7a[_0x402a7a[_0x3bdab3(0x144)]=0x6]=_0x3bdab3(0x144),_0x402a7a[_0x402a7a[_0x3bdab3(0x2fd)]=-0x1]=_0x3bdab3(0x2fd),_0x402a7a))(I||{}),Nt=(_0x7744b2=>(_0x7744b2[_0x7744b2[_0x3bdab3(0xbf)]=0x0]=_0x3bdab3(0xbf),_0x7744b2[_0x7744b2['OK']=0x1]='OK',_0x7744b2[_0x7744b2[_0x3bdab3(0x165)]=0x2]=_0x3bdab3(0x165),_0x7744b2[_0x7744b2[_0x3bdab3(0x2fd)]=-0x1]='UNRECOGNIZED',_0x7744b2))(Nt||{}),ln=Object[_0x3bdab3(0x162)],_n=Object[_0x3bdab3(0x123)],un=(_0x3a9af2,_0x1dbbb9,_0x16dde1,_0x520b7d)=>{for(var _0x514c10=_0x520b7d>0x1?void 0x0:_0x520b7d?_n(_0x1dbbb9,_0x16dde1):_0x1dbbb9,_0x59c707=_0x3a9af2['length']-0x1,_0x3e74de;_0x59c707>=0x0;_0x59c707--)(_0x3e74de=_0x3a9af2[_0x59c707])&&(_0x514c10=(_0x520b7d?_0x3e74de(_0x1dbbb9,_0x16dde1,_0x514c10):_0x3e74de(_0x514c10))||_0x514c10);return _0x520b7d&&_0x514c10&&ln(_0x1dbbb9,_0x16dde1,_0x514c10),_0x514c10;},Vt=(_0x4d033a,_0x2e905f)=>(_0x2c0487,_0x295d4a)=>_0x2e905f(_0x2c0487,_0x295d4a,_0x4d033a);let ee=class extends _0x292c4b{constructor(_0x245310,_0x209c2a){const _0x1fbcad=_0x3bdab3;super(),l(this,_0x1fbcad(0x398),new Map()),(this[_0x1fbcad(0xa4)]=_0x245310,this[_0x1fbcad(0x13b)]=_0x209c2a,this['disposeWithMe'](_0x439c9a(_0x1ddc59(this[_0x1fbcad(0xa4)]['getTypeOfUnitDisposed$'](_0x3ba52b[_0x1fbcad(0x38c)])['pipe'](_0x5de95e(_0x187c74=>_0x187c74[_0x1fbcad(0x100)]())),this[_0x1fbcad(0xa4)][_0x1fbcad(0x236)](_0x3ba52b[_0x1fbcad(0x1a4)])[_0x1fbcad(0x19c)](_0x5de95e(_0xbbdb3c=>_0xbbdb3c[_0x1fbcad(0x100)]())),this[_0x1fbcad(0xa4)][_0x1fbcad(0x236)](_0x3ba52b[_0x1fbcad(0x372)])[_0x1fbcad(0x19c)](_0x5de95e(_0x4aa6f5=>_0x4aa6f5['getUnitId']())))[_0x1fbcad(0x2b5)](_0xf9a0af=>this[_0x1fbcad(0x159)](_0xf9a0af)))));}[_0x3bdab3(0x383)](_0x590ab2){const _0x4cf5a1=_0x3bdab3;this[_0x4cf5a1(0x13b)][_0x4cf5a1(0x383)](_0x590ab2);}['getCurrentUser'](){const _0xd6da8c=_0x3bdab3;return this[_0xd6da8c(0x13b)][_0xd6da8c(0x246)]();}[_0x3bdab3(0x1ac)](_0x542c45,_0x1e8135){const _0x1cb97d=_0x3bdab3;let _0x542676=this[_0x1cb97d(0x398)][_0x1cb97d(0x132)](_0x542c45);_0x542676||(_0x542676=new dn(),this[_0x1cb97d(0x398)][_0x1cb97d(0x156)](_0x542c45,_0x542676)),_0x542676[_0x1cb97d(0x1ac)](_0x1e8135);}['removeMember'](_0x26dc86,_0xac2901){const _0x3f0194=_0x3bdab3,_0x258372=this[_0x3f0194(0x398)][_0x3f0194(0x132)](_0x26dc86);_0x258372&&_0x258372[_0x3f0194(0xe0)](_0xac2901);}[_0x3bdab3(0x297)](_0x7d0d9f){const _0x23a828=_0x3bdab3;return this[_0x23a828(0x398)][_0x23a828(0x132)](_0x7d0d9f);}['getMember'](_0x5cb501,_0x771b70){const _0x8a95bc=_0x3bdab3,_0x1c8755=this['_roomMembers'][_0x8a95bc(0x132)](_0x5cb501);if(_0x1c8755)return _0x1c8755[_0x8a95bc(0x195)](_0x771b70);}['_removeRoom'](_0x15acb9){const _0x1b06fb=_0x3bdab3,_0x356585=this[_0x1b06fb(0x398)][_0x1b06fb(0x132)](_0x15acb9);_0x356585&&(_0x356585[_0x1b06fb(0x328)](),this[_0x1b06fb(0x398)]['delete'](_0x15acb9));}[_0x3bdab3(0x328)](){const _0x5563f5=_0x3bdab3;this[_0x5563f5(0x398)][_0x5563f5(0x2fa)](_0x4774dc=>_0x4774dc[_0x5563f5(0x328)]()),this[_0x5563f5(0x398)][_0x5563f5(0x2f8)]();}};ee=un([Vt(0x0,_0x173bd8),Vt(0x1,_0x279e5b(_0x1f7d66))],ee);class dn extends _0x292c4b{constructor(){const _0x435458=_0x3bdab3;super(...arguments),l(this,_0x435458(0x198),new Map());}[_0x3bdab3(0x328)](){const _0x5e5617=_0x3bdab3;this[_0x5e5617(0x198)][_0x5e5617(0x2f8)]();}[_0x3bdab3(0x1ac)](_0x14a970){const _0x3586ff=_0x3bdab3;this[_0x3586ff(0x198)]['set'](_0x14a970['memberID'],_0x14a970);}[_0x3bdab3(0xe0)](_0x1298da){const _0x57516f=_0x3bdab3;this['_members'][_0x57516f(0xfc)](_0x1298da);}['getMember'](_0x4fbda6){const _0x43ee56=_0x3bdab3;return this[_0x43ee56(0x198)]['get'](_0x4fbda6);}}function fn(_0x5cc33b){const _0x5c54dd=_0x3bdab3;var _0x4105e6,_0x36b138,_0x408594,_0x4b6f7b;const _0x34b1f0=_0x5cc33b[_0x5c54dd(0x3ac)],_0x2a244f=JSON[_0x5c54dd(0x332)](_0x34b1f0);switch(_0x2a244f[_0x5c54dd(0x225)]){case I[_0x5c54dd(0x325)]:case I[_0x5c54dd(0x190)]:{const _0x2b18d1=_0x2a244f[_0x5c54dd(0x30a)];return{..._0x2a244f,'data':_0x2b18d1,'cmd':_0x2a244f['cmd']};}case I[_0x5c54dd(0x2d6)]:{const _0x436090=_0x2a244f['joinRsp'];return{..._0x2a244f,'data':_0x436090,'cmd':_0x2a244f[_0x5c54dd(0x225)]};}case I['RECV']:{const _0x45ffce=_0x2a244f[_0x5c54dd(0x105)];switch(_0x45ffce['eventID']){case _0x19dc79[_0x5c54dd(0x3a5)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x4105e6=_0x45ffce[_0x5c54dd(0x1dc)])==null?void 0x0:_0x4105e6['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79['CHANGESET_ACK']:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x36b138=_0x45ffce[_0x5c54dd(0x24a)])==null?void 0x0:_0x36b138['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x2fc)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x408594=_0x45ffce[_0x5c54dd(0xc0)])==null?void 0x0:_0x408594['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0xca)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':(_0x4b6f7b=_0x45ffce[_0x5c54dd(0x19a)])==null?void 0x0:_0x4b6f7b['cs']},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x38e)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x2c2)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0xc5)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x13e)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0xcd)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x2b9)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x30c)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x15a)]},'cmd':_0x2a244f[_0x5c54dd(0x225)]};case _0x19dc79[_0x5c54dd(0x2a3)]:case _0x19dc79[_0x5c54dd(0xd9)]:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce[_0x5c54dd(0x2a2)]},'cmd':_0x2a244f['cmd']};case _0x19dc79['LIVESHARE_TERMINATE']:return{..._0x2a244f,'data':{..._0x45ffce,'data':_0x45ffce['liveShareNewHost']},'cmd':_0x2a244f['cmd']};case _0x19dc79['MSG_FOR_ERROR']:return{..._0x2a244f,'data':_0x45ffce,'cmd':_0x2a244f[_0x5c54dd(0x225)]};default:return _0x2a244f;}}default:return _0x2a244f;}}function gn(_0x1adfb5){const _0xeb8b69=_0x3bdab3;switch(_0x1adfb5[_0xeb8b69(0x225)]){case I[_0xeb8b69(0x325)]:case I['HELLO']:return JSON[_0xeb8b69(0xc8)]({'cmd':_0x1adfb5[_0xeb8b69(0x225)],'routeKey':_0x1adfb5['routeKey']});case I[_0xeb8b69(0x23e)]:{let _0xc1fee0;switch(_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0xd4)]){case _0x19dc79[_0xeb8b69(0x38e)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x38e)],'updateCursorEvent':_0x1adfb5[_0xeb8b69(0x3ac)]['data']};break;}case _0x19dc79[_0xeb8b69(0xcd)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0xcd)],'leaveEvent':_0x1adfb5['data']['data']};break;}case _0x19dc79['USERS_ENTER']:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0xc5)],'joinEvent':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79[_0xeb8b69(0x30c)]:{_0xc1fee0={'eventID':_0x19dc79['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79[_0xeb8b69(0xd9)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0xd9)],'liveShareOperation':_0x1adfb5['data']['data']};break;}case _0x19dc79[_0xeb8b69(0x17b)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x17b)],'liveShareTerminate':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79[_0xeb8b69(0x11e)]:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x11e)],'liveShareRequestHost':_0x1adfb5[_0xeb8b69(0x3ac)][_0xeb8b69(0x3ac)]};break;}case _0x19dc79['LIVESHARE_FETCH_OPERATIONS']:{_0xc1fee0={'eventID':_0x19dc79[_0xeb8b69(0x2a3)]};break;}default:_0xc1fee0={'eventID':_0x1adfb5['data'][_0xeb8b69(0xd4)]};}return JSON['stringify']({'cmd':_0x1adfb5['cmd'],'routeKey':_0x1adfb5['routeKey'],'collaMsg':_0xc1fee0});}case I[_0xeb8b69(0x2d6)]:return JSON[_0xeb8b69(0xc8)]({'cmd':_0x1adfb5[_0xeb8b69(0x225)],'routeKey':_0x1adfb5['routeKey'],'joinReq':_0x1adfb5[_0xeb8b69(0x3ac)]});case I[_0xeb8b69(0x243)]:return JSON[_0xeb8b69(0xc8)]({'cmd':_0x1adfb5['cmd'],'routeKey':_0x1adfb5[_0xeb8b69(0x3b0)],'leaveReq':_0x1adfb5[_0xeb8b69(0x3ac)]});default:throw new Error(_0xeb8b69(0x1a6));}}var mn=Object[_0x3bdab3(0x162)],Sn=Object[_0x3bdab3(0x123)],vn=(_0x340b64,_0x2f2b8a,_0x1c68bd,_0x2d60e7)=>{const _0x56c64e=_0x3bdab3;for(var _0x23869a=_0x2d60e7>0x1?void 0x0:_0x2d60e7?Sn(_0x2f2b8a,_0x1c68bd):_0x2f2b8a,_0x10c062=_0x340b64[_0x56c64e(0x2d9)]-0x1,_0x507c9c;_0x10c062>=0x0;_0x10c062--)(_0x507c9c=_0x340b64[_0x10c062])&&(_0x23869a=(_0x2d60e7?_0x507c9c(_0x2f2b8a,_0x1c68bd,_0x23869a):_0x507c9c(_0x23869a))||_0x23869a);return _0x2d60e7&&_0x23869a&&mn(_0x2f2b8a,_0x1c68bd,_0x23869a),_0x23869a;},me=(_0x221ce7,_0x1fb7b6)=>(_0xf198d,_0x294ce2)=>_0x1fb7b6(_0xf198d,_0x294ce2,_0x221ce7);const Cs=_0x3ce7c5(_0x3bdab3(0x353));function pn(_0x44b83d,_0x2f53f9,_0x45ac74){const _0x53b58d=_0x3bdab3;return _0x44b83d+'/'+_0x2f53f9+'/unit/'+_0x45ac74+_0x53b58d(0x27e);}let _t=class{constructor(_0x3abf98,_0x104898,_0x42429e,_0x11e31f,_0x26554a){const _0x24f324=_0x3bdab3;this[_0x24f324(0x104)]=_0x3abf98,this['_ws']=_0x104898,this[_0x24f324(0x1bd)]=_0x42429e,this['_logService']=_0x11e31f,this[_0x24f324(0x28e)]=_0x26554a;}['createSocket'](_0x334843){const _0x4f591a=_0x3bdab3,_0x23ad16=this[_0x4f591a(0x21e)][_0x4f591a(0x28c)](_0x334843);if(!_0x23ad16)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x54bd38=new _0x308b9c(),_0x2f2569=new _0x4a8f66();_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(_0x23ad16[_0x4f591a(0x23d)]['subscribe'](_0x3b7062=>_0x2f2569['next'](_0x3b7062)))),_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(()=>_0x2f2569['complete']()));const _0x5be500=new _0x4a8f66();_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(_0x23ad16[_0x4f591a(0x3ad)][_0x4f591a(0x2b5)](_0x31748e=>_0x5be500[_0x4f591a(0x1c7)](_0x31748e)))),_0x54bd38['add'](_0x439c9a(()=>_0x5be500[_0x4f591a(0x1fc)]()));const _0x3f9e68=new _0x4a8f66();_0x54bd38['add'](_0x439c9a(_0x23ad16[_0x4f591a(0x2f5)][_0x4f591a(0x2b5)](_0x196b67=>{const _0x4dc142=_0x4f591a,_0x2bf4b2=fn(_0x196b67);_0x3f9e68[_0x4dc142(0x1c7)](_0x2bf4b2);}))),_0x54bd38[_0x4f591a(0x20d)](_0x439c9a(()=>_0x3f9e68[_0x4f591a(0x1fc)]()));const _0x22d805=()=>{const _0x1ba7e6=_0x4f591a;_0x5be500[_0x1ba7e6(0x1c7)](new Event(_0x1ba7e6(0x309))),_0x2f2569[_0x1ba7e6(0x1c7)](new CloseEvent(_0x1ba7e6(0x309))),_0x13bd40[_0x1ba7e6(0x34a)]();},_0x13bd40={'memberID':'','close$':_0x2f2569['asObservable'](),'error$':_0x5be500[_0x4f591a(0x267)](),'open$':_0x23ad16[_0x4f591a(0x17c)],'message$':_0x3f9e68[_0x4f591a(0x267)](),'send':_0x31f463=>{const _0x1cc316=_0x4f591a;if(_0x31f463[_0x1cc316(0x225)]===I[_0x1cc316(0x23e)]){if(_0x31f463[_0x1cc316(0x3ac)][_0x1cc316(0xd4)]===_0x19dc79[_0x1cc316(0x395)]){this[_0x1cc316(0x1df)](_0x13bd40,_0x31f463['data'])[_0x1cc316(0x141)](_0x1ca83d=>{const _0x393aaa=_0x1cc316;this[_0x393aaa(0x140)]['error'](_0x1ca83d),_0x22d805();});return;}if(_0x31f463[_0x1cc316(0x3ac)]['eventID']===_0x19dc79[_0x1cc316(0xd8)]){const _0x1891e3=_0x31f463[_0x1cc316(0x3ac)];this['_fetchMissChangesets'](_0x1891e3)[_0x1cc316(0xcc)](_0x1a85df=>{const _0x30df9b=_0x1cc316;_0x3f9e68[_0x30df9b(0x1c7)]({'cmd':I[_0x30df9b(0x144)],'code':Nt['OK'],'routeKey':_0x1891e3[_0x30df9b(0x3ac)][_0x30df9b(0x227)],'routeType':'','data':{'eventID':_0x19dc79[_0x30df9b(0xa5)],'data':{'changesets':_0x1a85df}}});})[_0x1cc316(0x141)](_0x4024bf=>{const _0xc2d05=_0x1cc316;this[_0xc2d05(0x140)]['error'](_0x4024bf),_0x22d805();});return;}}_0x23ad16[_0x1cc316(0x204)](gn(_0x31f463));},'close':()=>{const _0x47b5e5=_0x4f591a;_0x23ad16[_0x47b5e5(0x34a)](),_0x54bd38['dispose']();}};return _0x13bd40;}async[_0x3bdab3(0x1df)](_0x354ee0,_0xac9186){const _0x68b62d=_0x3bdab3;var _0x518ddc;const {unitType:_0x3a4241,unitID:_0x20e771,changeset:_0x42792a}=_0xac9186[_0x68b62d(0x3ac)],_0x435025={'unitID':_0x20e771,'memberID':_0x354ee0['memberID'],'type':_0x3a4241,'changeset':_0x155865(_0x42792a)},_0x1ded83=pn((_0x518ddc=this[_0x68b62d(0x1bd)][_0x68b62d(0x384)](on))!=null?_0x518ddc:an,_0x3a4241,_0x20e771);try{await this['_http'][_0x68b62d(0xc7)](_0x1ded83,{'body':_0x435025});}catch(_0x40b614){throw this['_logService'][_0x68b62d(0x127)](_0x68b62d(0x26a),_0x68b62d(0x280)),_0x40b614;}}async[_0x3bdab3(0x18c)](_0x2196ac){const _0xce64c=_0x3bdab3,{unitID:_0x19d564,from:_0x951434,to:_0x4d2b21,unitType:_0x5b1d1d}=_0x2196ac[_0xce64c(0x3ac)];return(await this[_0xce64c(0x28e)][_0xce64c(0x111)]({'metadata':void 0x0},{'unitID':_0x19d564,'type':_0x5b1d1d,'from':_0x951434,'to':_0x4d2b21}))[_0xce64c(0x97)];}};_t=vn([me(0x0,_0x279e5b(_0x24b00a)),me(0x1,_0x279e5b(_0x2a4381)),me(0x2,_0x37d874),me(0x3,_0x2cecb4),me(0x4,_0x4d41e7)],_t);var In=Object['defineProperty'],En=Object['getOwnPropertyDescriptor'],bs=(_0x2f5107,_0x29db15,_0x3a04ef,_0x141d5b)=>{const _0x55ec8e=_0x3bdab3;for(var _0xcd641b=_0x141d5b>0x1?void 0x0:_0x141d5b?En(_0x29db15,_0x3a04ef):_0x29db15,_0x2507cd=_0x2f5107[_0x55ec8e(0x2d9)]-0x1,_0x208d44;_0x2507cd>=0x0;_0x2507cd--)(_0x208d44=_0x2f5107[_0x2507cd])&&(_0xcd641b=(_0x141d5b?_0x208d44(_0x29db15,_0x3a04ef,_0xcd641b):_0x208d44(_0xcd641b))||_0xcd641b);return _0x141d5b&&_0xcd641b&&In(_0x29db15,_0x3a04ef,_0xcd641b),_0xcd641b;},M=(_0x579d0d,_0x2fd766)=>(_0xcfe768,_0x2992da)=>_0x2fd766(_0xcfe768,_0x2992da,_0x579d0d),_e=(_0x170f28=>(_0x170f28[_0x170f28[_0x3bdab3(0x1c8)]=0x0]='IDLE',_0x170f28[_0x170f28['JOINING']=0x1]=_0x3bdab3(0x284),_0x170f28[_0x170f28[_0x3bdab3(0x37a)]=0x2]='OFFLINE',_0x170f28[_0x170f28[_0x3bdab3(0x121)]=0x3]=_0x3bdab3(0x121),_0x170f28))(_e||{});let ut=class extends _0x300f85{constructor(_0x147724,_0x33558f,_0x559bcc,_0x3294d0,_0xdb394,_0x370f3f,_0x3d15a8,_0x9d152a){const _0x1975c8=_0x3bdab3;super(),l(this,_0x1975c8(0x27f),new _0x2fb415(0x0)),l(this,_0x1975c8(0x14a),this[_0x1975c8(0x27f)][_0x1975c8(0x267)]()),l(this,'_event$',new _0x4a8f66()),l(this,_0x1975c8(0x126),this[_0x1975c8(0x1c2)][_0x1975c8(0x267)]()),l(this,_0x1975c8(0x3be)),l(this,_0x1975c8(0x10f)),l(this,_0x1975c8(0x18f)),(this[_0x1975c8(0x202)]=_0x147724,this['_logService']=_0x559bcc,this['_beforeCloseService']=_0x3294d0,this[_0x1975c8(0x2c7)]=_0xdb394,this[_0x1975c8(0x1bd)]=_0x370f3f,this[_0x1975c8(0x26d)]=_0x3d15a8,this[_0x1975c8(0x2b0)]=_0x9d152a,_0x33558f[_0x1975c8(0x19c)](_0xdf0e3e(this[_0x1975c8(0x99)]))[_0x1975c8(0x2b5)](_0x2257c0=>{const _0x4a6972=_0x1975c8;var _0x59ab5b;typeof _0x2257c0>'u'||(this[_0x4a6972(0x3be)]=_0x2257c0,_0x2257c0?(this[_0x4a6972(0x106)](_0x2257c0),this['_socketMessageSubscription']=this[_0x4a6972(0x3be)][_0x4a6972(0x2f5)][_0x4a6972(0x2b5)](_0x3df569=>{const _0xc36351=_0x4a6972;_0x3df569[_0xc36351(0x3b0)]===this[_0xc36351(0x202)]&&this[_0xc36351(0x281)](_0x3df569);})):(this['_sessionStatus$']['next'](0x2),(_0x59ab5b=this['_socketMessageSubscription'])==null||_0x59ab5b[_0x4a6972(0x39a)](),this[_0x4a6972(0x10f)]=null));}),this[_0x1975c8(0x18d)](this[_0x1975c8(0x1e0)][_0x1975c8(0x2cb)](()=>{const _0x34fade=_0x1975c8;var _0x2a12f5;(_0x2a12f5=this[_0x34fade(0x3be)])==null||_0x2a12f5['send']({'cmd':I[_0x34fade(0x243)],'data':{'roomID':this['_unitID']}});})));}get[_0x3bdab3(0x317)](){const _0xe54b2d=_0x3bdab3;return this['_sessionStatus$'][_0xe54b2d(0x298)]();}['getMemberID'](){const _0x8d139=_0x3bdab3;var _0x1a452a,_0x22abf7;return(_0x22abf7=(_0x1a452a=this['_socket'])==null?void 0x0:_0x1a452a[_0x8d139(0x230)])!=null?_0x22abf7:null;}[_0x3bdab3(0x328)](){const _0x4f99a2=_0x3bdab3;super[_0x4f99a2(0x328)](),this[_0x4f99a2(0x99)][_0x4f99a2(0x1c7)](),this[_0x4f99a2(0x99)][_0x4f99a2(0x1fc)]();}[_0x3bdab3(0x281)](_0x242c41){const _0x27c766=_0x3bdab3;_0x242c41[_0x27c766(0x225)]===I[_0x27c766(0x2d6)]?this[_0x27c766(0xe9)](_0x242c41):_0x242c41[_0x27c766(0x225)]===I[_0x27c766(0x144)]&&this[_0x27c766(0xd7)](_0x242c41);}[_0x3bdab3(0x106)](_0x409f18){const _0x4f42ac=_0x3bdab3;this[_0x4f42ac(0x27f)][_0x4f42ac(0x1c7)](0x1),_0x409f18[_0x4f42ac(0x204)]({'cmd':I[_0x4f42ac(0x2d6)],'routeKey':this[_0x4f42ac(0x202)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4f42ac(0x202)]}]}});}['_onJoinRoomEvent'](_0x38db1b){const _0x1836cb=_0x3bdab3;var _0x5228d0;if(_0x38db1b['code']===Nt[_0x1836cb(0x165)]){this['_messageService'][_0x1836cb(0x270)]({'type':_0x32f68a['Warning'],'content':this[_0x1836cb(0x26d)]['t'](_0x1836cb(0xdc))}),this[_0x1836cb(0x27f)]['next'](0x2);return;}this[_0x1836cb(0x27f)][_0x1836cb(0x1c7)](0x3);const _0xafc5ee=(_0x5228d0=_0x38db1b['data']['roomInfos'][this[_0x1836cb(0x202)]])==null?void 0x0:_0x5228d0[_0x1836cb(0x2ba)];_0xafc5ee&&_0xafc5ee[_0x1836cb(0x2fa)](_0x5d4b8e=>this[_0x1836cb(0x2b0)][_0x1836cb(0x1ac)](this[_0x1836cb(0x202)],_0x5d4b8e));}[_0x3bdab3(0xd7)](_0x21128f){const _0x33fa31=_0x3bdab3;try{const _0x211fd4=_0x21128f[_0x33fa31(0x3ac)];switch(_0x211fd4[_0x33fa31(0xd4)]){case _0x19dc79[_0x33fa31(0xc5)]:this['_onUserJoin'](_0x211fd4),this[_0x33fa31(0x1c2)][_0x33fa31(0x1c7)](_0x211fd4);break;case _0x19dc79[_0x33fa31(0xcd)]:this['_onUserLeave'](_0x211fd4),this['_event$'][_0x33fa31(0x1c7)](_0x211fd4);break;case _0x19dc79[_0x33fa31(0x2b3)]:this['_clearCollaborationTimeoutTimer'](),this[_0x33fa31(0x1c2)][_0x33fa31(0x1c7)](_0x211fd4);break;case _0x19dc79[_0x33fa31(0x3b5)]:this[_0x33fa31(0x140)]['error'](_0x33fa31(0x12b)+JSON[_0x33fa31(0xc8)](_0x211fd4)),this['_event$'][_0x33fa31(0x1c7)](_0x211fd4);break;default:this[_0x33fa31(0x1c2)][_0x33fa31(0x1c7)](_0x211fd4);}}catch(_0x39b2b3){this[_0x33fa31(0x140)]['error'](_0x39b2b3,_0x21128f);}}[_0x3bdab3(0x16b)](_0x3aca3c){const _0x12976a=_0x3bdab3;this[_0x12976a(0x2b0)][_0x12976a(0x1ac)](this[_0x12976a(0x202)],_0x3aca3c[_0x12976a(0x3ac)]);}[_0x3bdab3(0x361)](_0x13aead){const _0x56db27=_0x3bdab3;this[_0x56db27(0x2b0)][_0x56db27(0xe0)](this[_0x56db27(0x202)],_0x13aead[_0x56db27(0x3ac)]['memberID']);}async[_0x3bdab3(0x204)](_0x38f2f2,_0xf4fc91){const _0x5d878b=_0x3bdab3;if(this[_0x5d878b(0x317)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x38f2f2[_0x5d878b(0xd4)]===_0x19dc79['NEW_CHANGESETS']&&this[_0x5d878b(0x382)](),this[_0x5d878b(0x3be)]['send']({'cmd':I[_0x5d878b(0x23e)],'routeKey':_0xf4fc91,'routeType':'','data':_0x38f2f2});}catch(_0x330976){this[_0x5d878b(0x140)][_0x5d878b(0x127)](_0x330976);}}[_0x3bdab3(0x382)](){const _0x2ce1c6=_0x3bdab3;var _0x34320c;this[_0x2ce1c6(0x18f)]=window[_0x2ce1c6(0x1b1)](()=>{const _0x1168b4=_0x2ce1c6;this[_0x1168b4(0x18f)]=null,this[_0x1168b4(0x2c7)][_0x1168b4(0x270)]({'type':_0x32f68a[_0x1168b4(0x1cb)],'content':this[_0x1168b4(0x26d)]['t']('session.collaboration-timeout')});},(_0x34320c=this[_0x2ce1c6(0x1bd)][_0x2ce1c6(0x384)](ps))!=null?_0x34320c:Is);}[_0x3bdab3(0x26f)](){const _0x4c1d80=_0x3bdab3;this[_0x4c1d80(0x18f)]&&(clearTimeout(this[_0x4c1d80(0x18f)]),this['_collaborationTimeoutTimer']=null);}};ut=bs([M(0x2,_0x2cecb4),M(0x3,_0xb59960),M(0x4,_0x2ac335),M(0x5,_0x37d874),M(0x6,_0x279e5b(_0x25e6c6)),M(0x7,_0x279e5b(ee))],ut);let Re=class extends _0x292c4b{constructor(_0x1e1e10,_0x490f3d,_0xf460df,_0x18bf6f,_0x28f0c3,_0x393c8b){const _0x270de6=_0x3bdab3;super(),l(this,_0x270de6(0x1ca),new _0x2fb415(void 0x0)),l(this,_0x270de6(0x177),new Map()),l(this,_0x270de6(0x3c1),new _0x2fb415(0x0)),l(this,_0x270de6(0x21b),this[_0x270de6(0x3c1)]['asObservable']()),l(this,_0x270de6(0x25e),!0x1),l(this,'_sendHeartbeatTimer'),l(this,_0x270de6(0x15e)),l(this,_0x270de6(0x207)),l(this,_0x270de6(0x38b),0x0),(this['_injector']=_0x1e1e10,this[_0x270de6(0x26d)]=_0x490f3d,this[_0x270de6(0x2c7)]=_0xf460df,this[_0x270de6(0x140)]=_0x18bf6f,this[_0x270de6(0x1bd)]=_0x28f0c3,this[_0x270de6(0x242)]=_0x393c8b);}get[_0x3bdab3(0x3be)](){const _0x1b99be=_0x3bdab3;return this[_0x1b99be(0x1ca)][_0x1b99be(0x298)]();}['dispose'](){const _0x313cb7=_0x3bdab3;super[_0x313cb7(0x328)](),this[_0x313cb7(0x177)][_0x313cb7(0x2fa)](_0x14e61a=>_0x14e61a['dispose']()),this[_0x313cb7(0x177)][_0x313cb7(0x2f8)](),this['_status$'][_0x313cb7(0x1fc)]();}async[_0x3bdab3(0x276)](_0x49a69a){const _0xc5b9a4=_0x3bdab3;if(this[_0xc5b9a4(0x177)][_0xc5b9a4(0x27c)](_0x49a69a))return this['_sessions'][_0xc5b9a4(0x132)](_0x49a69a);this[_0xc5b9a4(0x24b)]();const _0xbe35a6=this[_0xc5b9a4(0x191)]['createInstance'](ut,_0x49a69a,this['_socket$'][_0xc5b9a4(0x267)]());return this['_sessions'][_0xc5b9a4(0x156)](_0x49a69a,_0xbe35a6),_0xbe35a6;}[_0x3bdab3(0x1e6)](){const _0x55652c=_0x3bdab3;var _0x145859;const _0x458e9f=(_0x145859=this[_0x55652c(0x1bd)][_0x55652c(0x384)](Ji))!=null?_0x145859:zi;return this[_0x55652c(0x242)]['createSocket'](_0x458e9f);}['_tryEnsureSocket'](){const _0x2d2fde=_0x3bdab3;try{const _0x38b686=this[_0x2d2fde(0x1e6)]();if(_0x38b686){const _0x14038=_0x38b686[_0x2d2fde(0x204)];_0x38b686[_0x2d2fde(0x204)]=_0x126fef=>(this[_0x2d2fde(0x192)](),_0x14038['apply'](_0x38b686,[_0x126fef])),_0x38b686['message$']['subscribe'](_0x540535=>this['_onMessage'](_0x38b686,_0x540535)),_0x38b686[_0x2d2fde(0x3ad)][_0x2d2fde(0x19c)](_0x319274(0x1))[_0x2d2fde(0x2b5)](_0x5355fe=>this[_0x2d2fde(0x140)]['error'](_0x2d2fde(0x2a7),_0x5355fe)),_0x38b686[_0x2d2fde(0x17c)][_0x2d2fde(0x19c)](_0x319274(0x1))[_0x2d2fde(0x2b5)](()=>{this['_onConnectionOpen'](_0x38b686);}),_0x38b686[_0x2d2fde(0x23d)][_0x2d2fde(0x19c)](_0x319274(0x1))['subscribe'](_0x1e139e=>{const _0x2b5f15=_0x2d2fde;this[_0x2b5f15(0x140)][_0x2b5f15(0x23b)]('[CollaborationSessionService]','socket\x20close',_0x1e139e),this['_onConnectionFailed']();});}}catch(_0x58ce5f){this[_0x2d2fde(0x140)][_0x2d2fde(0x127)](_0x58ce5f),this[_0x2d2fde(0x168)]();}}[_0x3bdab3(0xee)](_0x2d0132){const _0x3bf175=_0x3bdab3;this[_0x3bf175(0x140)][_0x3bf175(0x23b)](_0x3bf175(0xb4),_0x3bf175(0x3a8)),_0x2d0132['send']({'cmd':I[_0x3bf175(0x190)]}),this[_0x3bf175(0x192)]();}[_0x3bdab3(0x168)](){const _0x48e760=_0x3bdab3;var _0x17fd9a;this[_0x48e760(0x3c1)]['next'](0x2),this['_socket$']['next'](null),this['_clearTimeoutTimer'](),this[_0x48e760(0x251)](),this[_0x48e760(0x25e)]=!0x1,this[_0x48e760(0x38b)]<((_0x17fd9a=this[_0x48e760(0x1bd)][_0x48e760(0x384)](tn))!=null?_0x17fd9a:sn)?(this[_0x48e760(0x2af)](this[_0x48e760(0x38b)]),this[_0x48e760(0x38b)]+=0x1):this[_0x48e760(0x2c7)][_0x48e760(0x270)]({'type':_0x32f68a[_0x48e760(0x1cb)],'content':this[_0x48e760(0x26d)]['t'](_0x48e760(0x151))});}[_0x3bdab3(0x2af)](_0x4dc1e4){const _0x1a5138=_0x3bdab3;var _0x27eda5;const _0x33f267=((_0x27eda5=this[_0x1a5138(0x1bd)][_0x1a5138(0x384)](Qi))!=null?_0x27eda5:en)*0x2**_0x4dc1e4;this[_0x1a5138(0x2c7)]['show']({'type':_0x32f68a[_0x1a5138(0x13d)],'content':this[_0x1a5138(0x26d)]['t'](_0x1a5138(0x241))}),this[_0x1a5138(0x207)]=setTimeout(()=>{const _0x122113=_0x1a5138;this['_tryEnsureSocket'](),clearTimeout(this[_0x122113(0x207)]),this[_0x122113(0x207)]=null;},_0x33f267);}[_0x3bdab3(0x192)](){const _0x2c701f=_0x3bdab3;var _0x15cf28;this[_0x2c701f(0x251)](),this[_0x2c701f(0x250)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x15cf28=this[_0x2c701f(0x1bd)][_0x2c701f(0x384)](Zi))!=null?_0x15cf28:qi);}[_0x3bdab3(0x21d)](){const _0x30eaa9=_0x3bdab3;this[_0x30eaa9(0x3be)][_0x30eaa9(0x204)]({'cmd':I[_0x30eaa9(0x325)]}),this['_waitForHeartbeatResponse']();}[_0x3bdab3(0xfb)](){const _0x49054f=_0x3bdab3;var _0x180bf1;this[_0x49054f(0x15e)]=setTimeout(()=>this[_0x49054f(0x168)](),(_0x180bf1=this['_configService'][_0x49054f(0x384)](ps))!=null?_0x180bf1:Is);}[_0x3bdab3(0x130)](_0x273ee6,_0x2ed61f){const _0x40e04d=_0x3bdab3,{cmd:_0x85c96e}=_0x2ed61f;_0x85c96e===I['HELLO']&&!this[_0x40e04d(0x25e)]&&(_0x273ee6['memberID']=_0x2ed61f[_0x40e04d(0x3ac)][_0x40e04d(0x230)],this[_0x40e04d(0x1ca)][_0x40e04d(0x1c7)](_0x273ee6),this[_0x40e04d(0x3c1)]['next'](0x3),this['_socketReady']=!0x0),_0x85c96e===I['HEARTBEAT']&&this[_0x40e04d(0x378)](),this[_0x40e04d(0x192)]();}[_0x3bdab3(0x251)](){const _0x5df82d=_0x3bdab3;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x5df82d(0x250)]),this[_0x5df82d(0x250)]=null);}[_0x3bdab3(0x378)](){const _0x1740c3=_0x3bdab3;this[_0x1740c3(0x15e)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x1740c3(0x15e)]=null);}};Re=bs([M(0x0,_0x279e5b(_0x5df577)),M(0x1,_0x279e5b(_0x25e6c6)),M(0x2,_0x2ac335),M(0x3,_0x2cecb4),M(0x4,_0x37d874),M(0x5,Cs)],Re);var Cn=Object[_0x3bdab3(0x162)],bn=Object[_0x3bdab3(0x123)],Rn=(_0xd1e38b,_0x27efd1,_0x46c007,_0x181dfe)=>{for(var _0x2276d5=_0x181dfe>0x1?void 0x0:_0x181dfe?bn(_0x27efd1,_0x46c007):_0x27efd1,_0x56043f=_0xd1e38b['length']-0x1,_0x13516f;_0x56043f>=0x0;_0x56043f--)(_0x13516f=_0xd1e38b[_0x56043f])&&(_0x2276d5=(_0x181dfe?_0x13516f(_0x27efd1,_0x46c007,_0x2276d5):_0x13516f(_0x2276d5))||_0x2276d5);return _0x181dfe&&_0x2276d5&&Cn(_0x27efd1,_0x46c007,_0x2276d5),_0x2276d5;},Se=(_0x1f3786,_0x29da9e)=>(_0x34d396,_0x5a9383)=>_0x29da9e(_0x34d396,_0x5a9383,_0x1f3786);let D=class extends _0x292c4b{constructor(_0x5e7af6,_0x59e6eb,_0xc673e5,_0x2cdce9,_0x2ad7d9){const _0x2101ef=_0x3bdab3;super(),l(this,_0x2101ef(0x1b0),new Map()),l(this,_0x2101ef(0x28f),new Map()),l(this,_0x2101ef(0x3b1),!0x1),(this[_0x2101ef(0x1bd)]=_0x5e7af6,this[_0x2101ef(0x32d)]=_0x59e6eb,this[_0x2101ef(0x1e0)]=_0xc673e5,this[_0x2101ef(0x26d)]=_0x2cdce9,this[_0x2101ef(0x118)]=_0x2ad7d9,this[_0x2101ef(0x147)]());}[_0x3bdab3(0x2e6)](){const _0x4c1100=_0x3bdab3;this[_0x4c1100(0x3b1)]=!0x0;}[_0x3bdab3(0x264)](){const _0x4534d5=_0x3bdab3;this[_0x4534d5(0x3b1)]=!0x1;}[_0x3bdab3(0x328)](){const _0x4140fa=_0x3bdab3;this[_0x4140fa(0x210)]()[_0x4140fa(0xcc)](()=>super[_0x4140fa(0x328)]());}async[_0x3bdab3(0x2a5)](_0x5b3ea6){const _0x76ecc=_0x3bdab3;return this[_0x76ecc(0x3b1)]?null:this[_0x76ecc(0x32d)]['getItem'](Wt(_0x5b3ea6));}async[_0x3bdab3(0x107)](_0x356f39,_0x557e53){const _0x3e43ec=_0x3bdab3;return!!this[_0x3e43ec(0x32d)][_0x3e43ec(0x172)](_0x356f39,_0x557e53);}[_0x3bdab3(0x124)](_0x487617,_0x34b5f1,_0x4ab194,_0x349df6){const _0x3927a6=_0x3bdab3,_0x429eba=this['_revisionService']['getCurrentRevForDocument'](_0x487617);this[_0x3927a6(0x1b0)][_0x3927a6(0x156)](_0x487617,{'unitID':_0x487617,'type':_0x34b5f1,'awaitingChangeset':_0x4ab194,'mutations':_0x349df6,'rev':_0x429eba}),this[_0x3927a6(0x28f)][_0x3927a6(0x27c)](_0x487617)||this[_0x3927a6(0xc2)](_0x487617);}[_0x3bdab3(0xc2)](_0x3a95e4){const _0x2913aa=_0x3bdab3,_0x57f089=this[_0x2913aa(0x2ca)]();_0x57f089===0x0?this[_0x2913aa(0xec)](_0x3a95e4):this['_saveTaskMap']['set'](_0x3a95e4,setTimeout(()=>this['_saveCache'](_0x3a95e4),_0x57f089));}[_0x3bdab3(0x2ca)](){const _0x4b3153=_0x3bdab3;var _0x30503e;return(_0x30503e=this[_0x4b3153(0x1bd)][_0x4b3153(0x384)](nn))!=null?_0x30503e:rn;}[_0x3bdab3(0xec)](_0x1fcfe1){const _0x268742=_0x3bdab3,_0x1e26fe=this[_0x268742(0x28f)][_0x268742(0x132)](_0x1fcfe1);return _0x1e26fe!==void 0x0&&window[_0x268742(0x1b3)](_0x1e26fe),this[_0x268742(0x32d)][_0x268742(0x172)](Wt(_0x1fcfe1),this[_0x268742(0x1b0)]['get'](_0x1fcfe1))[_0x268742(0xcc)](()=>this[_0x268742(0x28f)]['delete'](_0x1fcfe1));}async[_0x3bdab3(0x210)](){const _0x22b54=_0x3bdab3,_0x83019d=[];this['_saveTaskMap'][_0x22b54(0x2fa)]((_0x2c4791,_0x2a7d8d)=>{const _0x58fbbb=_0x22b54;window[_0x58fbbb(0x1b3)](_0x2c4791),_0x83019d[_0x58fbbb(0x37d)](this[_0x58fbbb(0xec)](_0x2a7d8d)[_0x58fbbb(0xcc)](()=>{const _0x556034=_0x58fbbb;this[_0x556034(0x28f)][_0x556034(0xfc)](_0x2a7d8d);}));}),await Promise['all'](_0x83019d);}[_0x3bdab3(0x147)](){const _0x81393=_0x3bdab3;this[_0x81393(0x18d)](this[_0x81393(0x1e0)][_0x81393(0x39d)](()=>{const _0x2c15b1=_0x81393;if(this[_0x2c15b1(0x28f)][_0x2c15b1(0x316)])return this['_localeService']['t'](_0x2c15b1(0x1a7));}));}};D=Rn([Se(0x0,_0x37d874),Se(0x1,_0x5b24bc),Se(0x2,_0xb59960),Se(0x3,_0x279e5b(_0x25e6c6)),Se(0x4,_0x279e5b(_0x54c94d))],D);function Wt(_0x1c3d70){const _0x47454e=_0x3bdab3;return _0x47454e(0x282)+_0x1c3d70;}const Xe=_0x3ce7c5(_0x3bdab3(0x217));function _0x92e7(_0x1de3e4,_0x61b3d5){const _0x25d07a=_0x25d0();return _0x92e7=function(_0x92e77f,_0x5e83dd){_0x92e77f=_0x92e77f-0x95;let _0x92513d=_0x25d07a[_0x92e77f];return _0x92513d;},_0x92e7(_0x1de3e4,_0x61b3d5);}var Rs=(_0x6627c8=>(_0x6627c8[_0x6627c8[_0x3bdab3(0x214)]=0x0]=_0x3bdab3(0x214),_0x6627c8[_0x6627c8[_0x3bdab3(0x2c5)]=0x1]=_0x3bdab3(0x2c5),_0x6627c8))(Rs||{});const Gt=0x7530,Yt=_0x3bdab3(0x347);class Tn extends _0x292c4b{constructor(){const _0x311aeb=_0x3bdab3;super(),l(this,_0x311aeb(0x260),_0x572ff7[_0x311aeb(0x206)]()),l(this,_0x311aeb(0x36a),new Set()),l(this,_0x311aeb(0x2fb),new Map()),l(this,_0x311aeb(0x12e),null),l(this,_0x311aeb(0x226),new Map()),l(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x38d70f=_0x3bdab3;super[_0x38d70f(0x328)](),this['_clearOtherTimers'][_0x38d70f(0x2fa)]((_0x45d04c,_0x31c32c)=>this[_0x38d70f(0x10e)](_0x31c32c)),this[_0x38d70f(0x12e)]&&window[_0x38d70f(0x197)](this[_0x38d70f(0x12e)]);}['getUnitStatus$'](_0x586fc4){const _0x4378b=_0x3bdab3;return this[_0x4378b(0x221)](_0x586fc4)[_0x4378b(0x19c)](_0x24f1b5());}[_0x3bdab3(0x234)](_0x180d62){const _0x456f4b=_0x3bdab3;this['_selfUnitIDs'][_0x456f4b(0x316)]===0x0&&this['_scheduleHeartbeat'](),this[_0x456f4b(0x36a)][_0x456f4b(0x20d)](_0x180d62),this[_0x456f4b(0x188)]({'type':0x0,'memberID':this[_0x456f4b(0x260)],'unitIDs':[_0x180d62],'isForwarded':!0x1});}[_0x3bdab3(0x16a)](_0x5b7656){const _0x39575a=_0x3bdab3;this[_0x39575a(0x36a)][_0x39575a(0xfc)](_0x5b7656),this[_0x39575a(0x36a)][_0x39575a(0x316)]===0x0&&this[_0x39575a(0x12e)]&&window[_0x39575a(0x197)](this[_0x39575a(0x12e)]);}[_0x3bdab3(0x10d)](){const _0x37035a=_0x3bdab3;this[_0x37035a(0x18d)](_0x439c9a(_0xb88582(window,_0x37035a(0x108))['subscribe'](_0x3ad70f=>{const _0x7dbc95=_0x37035a;if(_0x3ad70f[_0x7dbc95(0xf3)]!==Yt||!_0x3ad70f['newValue'])return;const _0x172cef=JSON[_0x7dbc95(0x332)](_0x3ad70f[_0x7dbc95(0x1aa)]);this[_0x7dbc95(0x380)](_0x172cef);}))),window[_0x37035a(0x345)]('unload',()=>this[_0x37035a(0x188)]({'type':0x1,'memberID':this[_0x37035a(0x260)],'unitIDs':Array[_0x37035a(0x2c8)](this['_selfUnitIDs'])}));}[_0x3bdab3(0x380)](_0x41f72b){const _0x5195c7=_0x3bdab3;switch(_0x41f72b[_0x5195c7(0x2ec)]){case 0x0:this[_0x5195c7(0xdb)](_0x41f72b);break;case 0x1:this[_0x5195c7(0x22e)](_0x41f72b);break;case 0x2:this[_0x5195c7(0x2be)](_0x41f72b);break;}}[_0x3bdab3(0xdb)](_0x2774cf){const _0x477765=_0x3bdab3,{unitIDs:_0x541d78,memberID:_0x49ac0a,isForwarded:_0x1196de}=_0x2774cf;_0x541d78['forEach'](_0x11016d=>{const _0x35e2b9=_0x92e7;if(!_0x1196de&&this[_0x35e2b9(0x2fb)][_0x35e2b9(0x27c)](_0x11016d)&&this[_0x35e2b9(0x221)](_0x11016d)[_0x35e2b9(0x1c7)](0x1),!this[_0x35e2b9(0x2fb)][_0x35e2b9(0x27c)](_0x11016d)||!this[_0x35e2b9(0x2fb)][_0x35e2b9(0x132)](_0x11016d)[_0x35e2b9(0x27c)](_0x49ac0a)){const _0x3f6115=this[_0x35e2b9(0x2fb)]['get'](_0x11016d)||new Set();_0x3f6115[_0x35e2b9(0x20d)](_0x49ac0a),this[_0x35e2b9(0x2fb)][_0x35e2b9(0x156)](_0x11016d,_0x3f6115),this[_0x35e2b9(0xeb)](_0x49ac0a);}}),_0x1196de||this[_0x477765(0x188)]({'type':0x0,'memberID':this[_0x477765(0x260)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3bdab3(0xeb)](_0x30545e){const _0xd0c299=_0x3bdab3;this['_removeClearOtherTimer'](_0x30545e);const _0x597352=window[_0xd0c299(0x1b1)](()=>{const _0x4868d5=_0xd0c299;this['_unitOnClients'][_0x4868d5(0x2fa)](_0x53dbf9=>{const _0xa87be7=_0x4868d5;_0x53dbf9[_0xa87be7(0xfc)](_0x30545e);});},Gt*0x2);this[_0xd0c299(0x226)][_0xd0c299(0x156)](_0x30545e,_0x597352);}['_removeClearOtherTimer'](_0x53adf8){const _0x5b00a8=_0x3bdab3;if(this[_0x5b00a8(0x226)][_0x5b00a8(0x27c)](_0x53adf8)){const _0x55362a=this[_0x5b00a8(0x226)][_0x5b00a8(0x132)](_0x53adf8);_0x55362a&&window['clearTimeout'](_0x55362a),this[_0x5b00a8(0x226)][_0x5b00a8(0x156)](_0x53adf8,null);}}[_0x3bdab3(0x22e)](_0x4c1bf9){const _0x35bf0e=_0x3bdab3,{memberID:_0x55aa1f,unitIDs:_0x4167af}=_0x4c1bf9;_0x4167af['forEach'](_0x1b7a1f=>{const _0xdab2e5=_0x92e7;var _0x4b0da5;const _0x48c199=this[_0xdab2e5(0x2fb)]['get'](_0x1b7a1f);_0x48c199&&(_0x48c199[_0xdab2e5(0xfc)](_0x55aa1f),(_0x4b0da5=this[_0xdab2e5(0x221)](_0x1b7a1f))==null||_0x4b0da5[_0xdab2e5(0x1c7)](_0x48c199[_0xdab2e5(0x316)]===0x0?0x0:0x1));}),this[_0x35bf0e(0x10e)](_0x55aa1f);}['_handleHeartbeatEvent'](_0x360804){const _0x3e35d0=_0x3bdab3;this[_0x3e35d0(0xeb)](_0x360804['memberID']);}[_0x3bdab3(0x188)](_0x5cb861){const _0x22c5c2=_0x3bdab3;localStorage['setItem'](Yt,JSON[_0x22c5c2(0xc8)](_0x5cb861));}[_0x3bdab3(0x389)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x197e4f=_0x92e7;this[_0x197e4f(0x188)]({'type':0x2,'memberID':this[_0x197e4f(0x260)]});},Gt);}[_0x3bdab3(0x221)](_0x3152d6){const _0x149765=_0x3bdab3;return this[_0x149765(0xa8)][_0x149765(0x27c)](_0x3152d6)||this[_0x149765(0xa8)][_0x149765(0x156)](_0x3152d6,new _0x2fb415(0x0)),this[_0x149765(0xa8)][_0x149765(0x132)](_0x3152d6);}}var On=Object['defineProperty'],Dn=Object[_0x3bdab3(0x123)],wn=(_0x20f457,_0x290eec,_0x3178c7,_0x1af188)=>{const _0x33e9c2=_0x3bdab3;for(var _0x5e0853=_0x1af188>0x1?void 0x0:_0x1af188?Dn(_0x290eec,_0x3178c7):_0x290eec,_0x4f17e1=_0x20f457[_0x33e9c2(0x2d9)]-0x1,_0x31f35d;_0x4f17e1>=0x0;_0x4f17e1--)(_0x31f35d=_0x20f457[_0x4f17e1])&&(_0x5e0853=(_0x1af188?_0x31f35d(_0x290eec,_0x3178c7,_0x5e0853):_0x31f35d(_0x5e0853))||_0x5e0853);return _0x1af188&&_0x5e0853&&On(_0x290eec,_0x3178c7,_0x5e0853),_0x5e0853;},Kt=(_0x2adcd7,_0x46707e)=>(_0x3c0f87,_0x1e8399)=>_0x46707e(_0x3c0f87,_0x1e8399,_0x2adcd7);let ke=class{constructor(_0x495cd6,_0x75e17){const _0x40b019=_0x3bdab3;this[_0x40b019(0x191)]=_0x495cd6,this[_0x40b019(0x2ef)]=_0x75e17;}[_0x3bdab3(0x1fa)](_0xfc9a95){const _0x5a12c7=_0x3bdab3;this[_0x5a12c7(0x3a9)](_0xfc9a95),this['_transformPreviousActiveRange'](_0xfc9a95);}['transformRemoteChangeset'](_0x5cba6a){const _0x48fe79=_0x3bdab3,_0x2aab35=this[_0x48fe79(0x191)][_0x48fe79(0x132)](_0x4a03ac),{redoCache:_0x3a92a6}=_0x2aab35[_0x48fe79(0x3c0)]();if(_0x3a92a6[_0x48fe79(0x2d9)]===0x0)return _0x5cba6a;let _0x490019=_0x572ff7[_0x48fe79(0x1ad)](_0x5cba6a[_0x48fe79(0x295)][0x0]);for(let _0x53cd00=0x0;_0x53cd00<_0x3a92a6['length'];_0x53cd00++){const _0x31aaf4={'id':_0x48fe79(0x22b),'params':{..._0x3a92a6[_0x53cd00]}},_0xb8616d=this[_0x48fe79(0x2ef)][_0x48fe79(0x18e)](_0x490019,_0x31aaf4,!0x1);if(_0x3295bd(_0xb8616d))throw _0xb8616d[_0x48fe79(0x127)];_0x490019=_0xb8616d[_0x48fe79(0x2de)];}return{..._0x572ff7[_0x48fe79(0x1ad)](_0x5cba6a),'mutations':[_0x490019]};}[_0x3bdab3(0x3a9)](_0x3b3e63){const _0x3cee68=_0x3bdab3,_0x311c62=this['_injector'][_0x3cee68(0x132)](_0x4a03ac),{undoCache:_0x475f31,redoCache:_0x449107}=_0x311c62['getUndoRedoMutationParamsCache']();if(_0x475f31[_0x3cee68(0x2d9)]===0x0||_0x449107[_0x3cee68(0x2d9)]===0x0)return;const _0x48e747=[],_0x1a48f4=[];let _0x20fa42=_0x572ff7[_0x3cee68(0x1ad)](_0x3b3e63[_0x3cee68(0x295)][0x0]),_0x3017cc=_0x572ff7[_0x3cee68(0x1ad)](_0x3b3e63[_0x3cee68(0x295)][0x0]);for(let _0x56512f=_0x475f31[_0x3cee68(0x2d9)]-0x1;_0x56512f>=0x0;_0x56512f--){const _0x4506c3={'id':_0x3cee68(0x22b),'params':{..._0x475f31[_0x56512f]}},_0x26c3c2={'id':_0x3cee68(0x22b),'params':{..._0x449107[_0x56512f]}},_0x4ff385=this[_0x3cee68(0x2ef)][_0x3cee68(0x18e)](_0x20fa42,_0x4506c3,!0x1),_0x10aa11=this[_0x3cee68(0x2ef)][_0x3cee68(0x18e)](_0x3017cc,_0x26c3c2,!0x1);if(_0x3295bd(_0x4ff385))throw _0x4ff385[_0x3cee68(0x127)];if(_0x3295bd(_0x10aa11))throw _0x10aa11[_0x3cee68(0x127)];_0x48e747['unshift'](_0x4ff385[_0x3cee68(0x32f)][_0x3cee68(0x3bd)]),_0x1a48f4[_0x3cee68(0x240)](_0x10aa11['m2Prime']['params']),_0x20fa42=_0x4ff385[_0x3cee68(0x2de)],_0x3017cc=_0x10aa11[_0x3cee68(0x2de)];}_0x311c62['setUndoRedoMutationParamsCache']({'undoCache':_0x48e747,'redoCache':_0x1a48f4});}[_0x3bdab3(0x114)](_0x25255a){const _0x25abb2=_0x3bdab3,_0x246bf9=this[_0x25abb2(0x191)][_0x25abb2(0x132)](_0x4a03ac),_0x4a5bfc=_0x246bf9[_0x25abb2(0x258)]();if(_0x4a5bfc==null)return;const _0x552754=[{'id':_0x25abb2(0x22b),'params':{'unitId':_0x25255a[_0x25abb2(0x227)],'actions':null,'textRanges':[_0x4a5bfc]}}],_0xbd39a5=this[_0x25abb2(0x2ef)][_0x25abb2(0x2cd)](_0x25255a,_0x552754);if(!_0x155e17(_0xbd39a5))throw _0xbd39a5[_0x25abb2(0x127)];const _0x3404b5=_0xbd39a5[_0x25abb2(0x32f)][0x0][_0x25abb2(0x3bd)][_0x25abb2(0x254)];Array[_0x25abb2(0x2c1)](_0x3404b5)&&_0x3404b5[_0x25abb2(0x2d9)]&&_0x246bf9[_0x25abb2(0xc1)](_0x3404b5[0x0]);}};ke=wn([Kt(0x0,_0x279e5b(_0x5df577)),Kt(0x1,_0x539a09)],ke);var Pn=Object[_0x3bdab3(0x162)],Nn=Object[_0x3bdab3(0x123)],Mn=(_0x3edd54,_0x35b619,_0x4ab0e3,_0x1a72af)=>{const _0x5b2426=_0x3bdab3;for(var _0x2fb985=_0x1a72af>0x1?void 0x0:_0x1a72af?Nn(_0x35b619,_0x4ab0e3):_0x35b619,_0x506ff2=_0x3edd54[_0x5b2426(0x2d9)]-0x1,_0x39a829;_0x506ff2>=0x0;_0x506ff2--)(_0x39a829=_0x3edd54[_0x506ff2])&&(_0x2fb985=(_0x1a72af?_0x39a829(_0x35b619,_0x4ab0e3,_0x2fb985):_0x39a829(_0x2fb985))||_0x2fb985);return _0x1a72af&&_0x2fb985&&Pn(_0x35b619,_0x4ab0e3,_0x2fb985),_0x2fb985;},Xt=(_0x2b18f3,_0x11e53a)=>(_0x514e80,_0x336039)=>_0x11e53a(_0x514e80,_0x336039,_0x2b18f3);let Be=class{constructor(_0x5cdfdd,_0x50808e){const _0x48818a=_0x3bdab3;this[_0x48818a(0x191)]=_0x5cdfdd,this[_0x48818a(0x2ef)]=_0x50808e;}[_0x3bdab3(0xb8)](_0x5c7fc0){const _0x85a493=_0x3bdab3;var _0x51610f;const _0x233757=this[_0x85a493(0x191)][_0x85a493(0x132)](_0x23f9d5),_0x206395=(_0x51610f=_0x233757['getSelections']())!=null?_0x51610f:[],_0x4083ac=_0x206395==null?void 0x0:_0x206395[_0x85a493(0x3bc)](_0x53dc05);if(_0x4083ac['length']===0x0)return;const _0x36994b=[{'id':_0x85a493(0x22b),'params':{'unitId':_0x5c7fc0[_0x85a493(0x227)],'actions':null,'textRanges':_0x4083ac}}],_0x4bf2a4=this[_0x85a493(0x2ef)][_0x85a493(0x2cd)](_0x5c7fc0,_0x36994b);if(!_0x155e17(_0x4bf2a4))throw _0x4bf2a4[_0x85a493(0x127)];const _0x48e123=_0x4bf2a4[_0x85a493(0x32f)][0x0][_0x85a493(0x3bd)][_0x85a493(0x254)];Array[_0x85a493(0x2c1)](_0x48e123)&&_0x48e123[_0x85a493(0x2d9)]&&_0x233757[_0x85a493(0x32e)](_0x48e123,!0x1);}};Be=Mn([Xt(0x0,_0x279e5b(_0x5df577)),Xt(0x1,_0x539a09)],Be);function Ts(_0x33e1ae){const _0x506862=_0x3bdab3;let _0x279882='';for(const _0x18e218 of _0x33e1ae){const {startOffset:_0x5ba2ef,endOffset:_0x311cfb,isActive:_0x1ccb74}=_0x18e218;_0x279882[_0x506862(0x2d9)]&&(_0x279882+=','),_0x279882+=_0x5ba2ef+':'+_0x311cfb+':'+(_0x1ccb74?'1':'0');}return _0x279882;}function An(_0x593583){const _0x4a184b=_0x3bdab3,_0xbd048a=_0x593583[_0x4a184b(0x10b)](','),_0x1d2bc2=[];for(const _0x59c82d of _0xbd048a){const [_0x480385,_0x9a040c,_0x3511f2]=_0x59c82d[_0x4a184b(0x10b)](':');_0x1d2bc2['push']({'startOffset':Number(_0x480385),'endOffset':Number(_0x9a040c),'collapsed':_0x480385===_0x9a040c,'isActive':_0x3511f2==='1'});}return _0x1d2bc2['some'](_0x23991b=>_0x23991b['isActive'])||(_0x1d2bc2[0x0][_0x4a184b(0x1f5)]=!0x0),_0x1d2bc2;}class Mt extends _0x300f85{constructor(){const _0x184d3e=_0x3bdab3;super(...arguments),l(this,_0x184d3e(0x215),new _0x2fb415(null)),l(this,_0x184d3e(0x2a0),this[_0x184d3e(0x215)][_0x184d3e(0x267)]());}[_0x3bdab3(0x31c)](_0x303a26){const _0x25854f=_0x3bdab3,{unitID:_0x15faba,memberID:_0x4d0da3,textRanges:_0x39516c}=_0x303a26,_0x3c310e=Ts(_0x39516c),_0x1f2f98={'unitID':_0x15faba,'memberID':_0x4d0da3,'selection':_0x3c310e};this[_0x25854f(0x215)][_0x25854f(0x1c7)](_0x1f2f98);}}var yn=Object[_0x3bdab3(0x162)],Un=Object['getOwnPropertyDescriptor'],Ln=(_0x40b91e,_0x5422a4,_0x52cede,_0x38258f)=>{const _0x1fd0ad=_0x3bdab3;for(var _0xbe7c4b=_0x38258f>0x1?void 0x0:_0x38258f?Un(_0x5422a4,_0x52cede):_0x5422a4,_0x3e4a97=_0x40b91e[_0x1fd0ad(0x2d9)]-0x1,_0x2ab23c;_0x3e4a97>=0x0;_0x3e4a97--)(_0x2ab23c=_0x40b91e[_0x3e4a97])&&(_0xbe7c4b=(_0x38258f?_0x2ab23c(_0x5422a4,_0x52cede,_0xbe7c4b):_0x2ab23c(_0xbe7c4b))||_0xbe7c4b);return _0x38258f&&_0xbe7c4b&&yn(_0x5422a4,_0x52cede,_0xbe7c4b),_0xbe7c4b;},Jt=(_0x271000,_0x309849)=>(_0x5728ce,_0xb9e011)=>_0x309849(_0x5728ce,_0xb9e011,_0x271000);let Ve=class{constructor(_0x28eaea,_0x3621e0){const _0x4f2c7f=_0x3bdab3;this['_injector']=_0x28eaea,this[_0x4f2c7f(0x2ef)]=_0x3621e0;}[_0x3bdab3(0xb8)](_0x1e3bad){const _0x53747e=_0x3bdab3;var _0x5e5024,_0x1a3616,_0x1a1f60,_0x1af1ac;const _0x4c02df=this[_0x53747e(0x191)]['get'](_0x24c085),{pluginName:_0x406f98,unitId:_0x36fdf6,sheetId:_0x428d18}=_0x4c02df[_0x53747e(0xfe)]()||{},_0x557381=(_0x5e5024=_0x4c02df[_0x53747e(0x3a1)]())!=null?_0x5e5024:[];if(_0x557381[_0x53747e(0x2d9)]===0x0||!_0x406f98||!_0x36fdf6||!_0x428d18)return;const _0x1c88a9=[{'id':_0x2a3a91['id'],'params':{'unitId':_0x36fdf6,'subUnitId':_0x428d18,'pluginName':_0x406f98,'selections':_0x572ff7[_0x53747e(0x1ad)](_0x557381)}}],_0x34e6fc=this[_0x53747e(0x2ef)][_0x53747e(0x2cd)](_0x1e3bad,_0x1c88a9);if(!_0x155e17(_0x34e6fc))throw _0x34e6fc['error'];const _0x39aeef=(_0x1af1ac=(_0x1a1f60=(_0x1a3616=_0x34e6fc[_0x53747e(0x32f)][0x0])==null?void 0x0:_0x1a3616[_0x53747e(0x3bd)])==null?void 0x0:_0x1a1f60[_0x53747e(0x218)])!=null?_0x1af1ac:_0x557381;Array[_0x53747e(0x2c1)](_0x39aeef)&&_0x39aeef['length']&&this[_0x53747e(0x191)][_0x53747e(0x132)](_0x5ba974)['executeCommand'](_0x2a3a91['id'],{'unitId':_0x36fdf6,'subUnitId':_0x428d18,'pluginName':_0x406f98,'selections':_0x39aeef});}};Ve=Ln([Jt(0x0,_0x279e5b(_0x5df577)),Jt(0x1,_0x539a09)],Ve);const $n=new Set([_0x21601c['id']]);function jn(_0x5c2834,_0x507d52,_0x50fb1a,_0x3b22d3,_0x17a51a){const _0x42bb39=_0x3bdab3;var _0x11e2a2,_0x299c30,_0x5e3b04,_0x226064;const _0x1ece3d=[];for(const _0x5eaec of _0x5c2834)if($n[_0x42bb39(0x27c)](_0x5eaec['id'])){if(_0x1ece3d['length']>0x0)break;_0x1ece3d[_0x42bb39(0x37d)](_0x5eaec);break;}else _0x1ece3d[_0x42bb39(0x37d)](_0x5eaec);const _0x312e3b=(_0x299c30=(_0x11e2a2=_0x17a51a[_0x42bb39(0x246)]())==null?void 0x0:_0x11e2a2[_0x42bb39(0x223)])!=null?_0x299c30:_0x42bb39(0x2f0),_0x55f7dd=(_0x226064=(_0x5e3b04=_0x17a51a[_0x42bb39(0x246)]())==null?void 0x0:_0x5e3b04['memberID'])!=null?_0x226064:_0x42bb39(0x2f0);return{'changeset':{'unitID':_0x507d52,'type':_0x4c5ba5(_0x50fb1a['getUnitType'](_0x507d52)),'baseRev':_0x3b22d3[_0x42bb39(0x3b3)](_0x507d52),'revision':0x0,'userID':_0x312e3b,'memberID':_0x55f7dd,'mutations':_0x1ece3d},'pendingMutations':_0x5c2834[_0x42bb39(0x245)](_0x1ece3d[_0x42bb39(0x2d9)])};}function Hn(_0x530388,_0x4e3d0a,_0x280e6e,_0x27e383,_0x39b089){const _0x540d30=_0x3bdab3;var _0x22de2b,_0x50f0f8,_0x414591,_0xeb80a9;const _0xede70b=[_0x530388[_0x540d30(0x1bc)]((_0x221c34,_0x167c2a)=>{const _0x2fb16a=_0x540d30;var _0x2dcf81;const {id:_0x399b43}=_0x221c34,{id:_0x3d0d93,type:_0x5226d1}=_0x167c2a,_0xb63a0=(_0x2dcf81=_0x221c34[_0x2fb16a(0x3bd)])!=null?_0x2dcf81:{'actions':null},_0x3ba6e4=_0x167c2a[_0x2fb16a(0x3bd)];if(_0x399b43&&_0x399b43!==_0x3d0d93)throw new Error(_0x2fb16a(0x39b)+_0x399b43+_0x2fb16a(0x1a9)+_0x3d0d93+'.');return{..._0x221c34,'id':_0x3d0d93,'type':_0x5226d1,'params':{'unitId':_0x3ba6e4[_0x2fb16a(0x13f)],'textRanges':_0x3ba6e4[_0x2fb16a(0x254)],'actions':_0x526e13[_0x2fb16a(0x1c5)](_0xb63a0['actions'],_0x3ba6e4[_0x2fb16a(0x303)])}};},{})],_0x45d6db=(_0x50f0f8=(_0x22de2b=_0x39b089['getCurrentUser']())==null?void 0x0:_0x22de2b['userID'])!=null?_0x50f0f8:_0x540d30(0x2f0),_0x54686b=(_0xeb80a9=(_0x414591=_0x39b089[_0x540d30(0x246)]())==null?void 0x0:_0x414591[_0x540d30(0x230)])!=null?_0xeb80a9:_0x540d30(0x2f0);return{'changeset':{'unitID':_0x4e3d0a,'type':_0x4c5ba5(_0x280e6e[_0x540d30(0x203)](_0x4e3d0a)),'baseRev':_0x27e383['getCurrentRevForDocument'](_0x4e3d0a),'revision':0x0,'userID':_0x45d6db,'memberID':_0x54686b,'mutations':_0xede70b},'pendingMutations':[]};}var xn=Object[_0x3bdab3(0x162)],Fn=Object['getOwnPropertyDescriptor'],ne=(_0x325bf0,_0x587005,_0x48f402,_0xfbb8f8)=>{const _0x172f33=_0x3bdab3;for(var _0x31b20e=_0xfbb8f8>0x1?void 0x0:_0xfbb8f8?Fn(_0x587005,_0x48f402):_0x587005,_0x2c5dad=_0x325bf0[_0x172f33(0x2d9)]-0x1,_0x4ccdd6;_0x2c5dad>=0x0;_0x2c5dad--)(_0x4ccdd6=_0x325bf0[_0x2c5dad])&&(_0x31b20e=(_0xfbb8f8?_0x4ccdd6(_0x587005,_0x48f402,_0x31b20e):_0x4ccdd6(_0x31b20e))||_0x31b20e);return _0xfbb8f8&&_0x31b20e&&xn(_0x587005,_0x48f402,_0x31b20e),_0x31b20e;},g=(_0xfd1b0c,_0x253d09)=>(_0x5858b3,_0xb01f7c)=>_0x253d09(_0x5858b3,_0xb01f7c,_0xfd1b0c),P=(_0x553c69=>(_0x553c69[_0x3bdab3(0x15c)]=_0x3bdab3(0x1cc),_0x553c69[_0x3bdab3(0x29c)]=_0x3bdab3(0x288),_0x553c69['PENDING']=_0x3bdab3(0xd3),_0x553c69[_0x3bdab3(0x263)]=_0x3bdab3(0x32c),_0x553c69[_0x3bdab3(0x1a2)]='awaiting_with_pending',_0x553c69[_0x3bdab3(0x11f)]=_0x3bdab3(0x2f9),_0x553c69[_0x3bdab3(0x19e)]=_0x3bdab3(0x1e1),_0x553c69[_0x3bdab3(0x37a)]=_0x3bdab3(0x29e),_0x553c69))(P||{});class re{constructor(_0x9683a1,_0x5ce43c,_0x2c1000,_0x4fbbd0,_0x185c1d,_0x218d11,_0x3b72b8,_0x44bba7,_0x18278b){const _0x552416=_0x3bdab3;l(this,_0x552416(0x2a8),null),l(this,_0x552416(0x14d),[]),(this['unitID']=_0x9683a1,this[_0x552416(0x2ec)]=_0x5ce43c,this[_0x552416(0x37e)]=_0x185c1d,this[_0x552416(0x200)]=_0x218d11,this[_0x552416(0x381)]=_0x3b72b8,this[_0x552416(0x118)]=_0x44bba7,this[_0x552416(0x334)]=_0x18278b,this[_0x552416(0x2a8)]=_0x2c1000,this[_0x552416(0x14d)]=_0x4fbbd0);}['_checkMissing'](_0x529a72){const _0xba6748=_0x3bdab3,_0x297c84=this[_0xba6748(0x118)][_0xba6748(0x3b3)](this[_0xba6748(0x227)]);return _0x529a72[_0xba6748(0x1a0)]>_0x297c84+0x1?(this[_0xba6748(0x37e)]['onMissingChangesets']({'from':_0x297c84,'to':_0x529a72[_0xba6748(0x1a0)]-0x1}),!0x0):!0x1;}[_0x3bdab3(0x38a)](_0x2341da){const _0x2f349a=_0x3bdab3;this[_0x2f349a(0x381)][_0x2f349a(0x30f)](this[_0x2f349a(0x227)],_0x2341da);}[_0x3bdab3(0x283)](_0x57fcd0){const _0x1d29c9=_0x3bdab3;var _0x17e6f5,_0x496dc8;(_0x496dc8=(_0x17e6f5=this[_0x1d29c9(0x37e)])['onTransformSelections'])==null||_0x496dc8['call'](_0x17e6f5,_0x57fcd0);}[_0x3bdab3(0x2b4)](_0x2e360f){const _0x45bb53=_0x3bdab3;var _0x52a24c,_0x506fae;return(_0x506fae=(_0x52a24c=this['_handler'])['onTransformIME'])==null?void 0x0:_0x506fae[_0x45bb53(0x1e2)](_0x52a24c,_0x2e360f);}[_0x3bdab3(0xe8)](_0x2ea1cb){const _0x474f0b=_0x3bdab3;var _0x1767ac,_0x2f9c25,_0x2e2040;return(_0x2e2040=(_0x2f9c25=(_0x1767ac=this[_0x474f0b(0x37e)])[_0x474f0b(0x2bf)])==null?void 0x0:_0x2f9c25['call'](_0x1767ac,_0x2ea1cb))!=null?_0x2e2040:_0x2ea1cb;}[_0x3bdab3(0xa1)](_0x10dd0b){const _0x1d87d1=_0x3bdab3;var _0x23239a,_0x1a7bf6;if(this[_0x1d87d1(0x2ec)]===H[_0x1d87d1(0x1a4)]){const {unitID:_0x217c63,mutations:_0xc3051d,memberID:_0x5843c0}=_0x10dd0b,_0x1fd7ab=_0xc3051d[0x0][_0x1d87d1(0x3bd)][_0x1d87d1(0x254)];Array[_0x1d87d1(0x2c1)](_0x1fd7ab)&&_0x1fd7ab[_0x1d87d1(0x2d9)]>0x0&&((_0x1a7bf6=(_0x23239a=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x1a7bf6[_0x1d87d1(0x1e2)](_0x23239a,{'unitID':_0x217c63,'memberID':_0x5843c0,'textRanges':_0x1fd7ab}));}}['_updateLocalCache'](){const _0x35f5ae=_0x3bdab3;this[_0x35f5ae(0x334)][_0x35f5ae(0x124)](this[_0x35f5ae(0x227)],this[_0x35f5ae(0x2ec)],this['_awaitingChangeset'],this[_0x35f5ae(0x14d)]);}[_0x3bdab3(0x2d0)](){const _0x3b4924=_0x3bdab3;return this[_0x3b4924(0x118)][_0x3b4924(0x3b3)](this['unitID']);}[_0x3bdab3(0xa3)](){const _0x14a2a8=_0x3bdab3;this['_revisionService'][_0x14a2a8(0x161)](this[_0x14a2a8(0x227)]);}[_0x3bdab3(0x2e3)](_0x3c8960){const _0x90b60b=_0x3bdab3;var _0x20f910;const _0x496c29=this[_0x90b60b(0xe8)](_0x3c8960),_0x28c630=_0x35931d(_0x496c29['mutations'],this[_0x90b60b(0x200)],{'fromCollab':!0x0});if(!_0x28c630[_0x90b60b(0x20c)])throw _0x28c630['error']instanceof Error?_0x28c630['error']:new Error((_0x20f910=_0x28c630[_0x90b60b(0x127)])!=null?_0x20f910:_0x90b60b(0xe4));this[_0x90b60b(0x2b4)](_0x496c29),this[_0x90b60b(0x38a)](_0x3c8960),this['_transformSelections'](_0x496c29),this['_syncEditingCollabCursor'](_0x496c29),this[_0x90b60b(0xa3)]();}}let Te=class extends re{constructor(_0x496aea,_0x56e1e1,_0x5309ad,_0x417c27,_0x54f74a,_0x4327c2,_0x4f23a3,_0x4ffbb5,_0x3eb983){const _0x5dcaa6=_0x3bdab3;super(_0x496aea,_0x56e1e1,null,[],_0x5309ad,_0x4ffbb5,_0x4f23a3,_0x417c27,_0x54f74a),l(this,_0x5dcaa6(0x186),_0x5dcaa6(0x288)),(this[_0x5dcaa6(0x191)]=_0x4327c2,this[_0x5dcaa6(0x140)]=_0x3eb983);}[_0x3bdab3(0x17f)](_0x21ad6e){const _0x216438=_0x3bdab3,_0x27700e=this[_0x216438(0x191)][_0x216438(0x2c9)](B,this[_0x216438(0x227)],this[_0x216438(0x2ec)],[_0x21ad6e],this['_handler']);return _0x27700e[_0x216438(0x1da)](),_0x27700e[_0x216438(0xed)](),_0x27700e;}['onRemoteChangeset'](_0x2a3824){const _0x285f46=_0x3bdab3;if(this[_0x285f46(0x1af)](_0x2a3824))return this[_0x285f46(0x191)][_0x285f46(0x2c9)](W,this['unitID'],this[_0x285f46(0x2ec)],null,[],null,[_0x2a3824],this['_handler']);try{return this['_executeRemoteChangeset'](_0x2a3824),this;}catch(_0x38c36e){return this[_0x285f46(0x140)]['error'](_0x285f46(0xcf),_0x38c36e),this;}}[_0x3bdab3(0xc6)](){const _0x1943c8=_0x3bdab3;throw new Error(_0x1943c8(0x2a1));}[_0x3bdab3(0x179)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x3bdab3(0x11b)](){const _0xdcf10d=_0x3bdab3;return this[_0xdcf10d(0x191)][_0xdcf10d(0x2c9)](X,this[_0xdcf10d(0x227)],this['type'],null,[],this[_0xdcf10d(0x37e)]);}[_0x3bdab3(0x189)](){return this;}[_0x3bdab3(0x29d)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Te=ne([g(0x3,_0x279e5b(_0x54c94d)),g(0x4,_0x279e5b(D)),g(0x5,_0x279e5b(_0x5df577)),g(0x6,_0x1de145),g(0x7,_0x5ba974),g(0x8,_0x2cecb4)],Te);let B=class extends re{constructor(_0x42bf38,_0x2b8fd0,_0x48de19,_0x4a71fc,_0xab2486,_0x5cf7de,_0x5f146d,_0x2d4077,_0xa17f65,_0x3fb346,_0x12b5c7,_0xd5a5f4,_0x2530af,_0x45b2d0){const _0xa91b43=_0x3bdab3;super(_0x42bf38,_0x2b8fd0,null,_0x48de19,_0x4a71fc,_0x3fb346,_0x45b2d0,_0x5cf7de,_0x5f146d),l(this,_0xa91b43(0x186),_0xa91b43(0xd3)),l(this,_0xa91b43(0x14f),null),l(this,_0xa91b43(0x136),null),(this[_0xa91b43(0x191)]=_0xab2486,this['_memberService']=_0x2d4077,this[_0xa91b43(0x140)]=_0xa17f65,this['_configService']=_0x12b5c7,this[_0xa91b43(0x2ef)]=_0xd5a5f4,this[_0xa91b43(0xa4)]=_0x2530af);}[_0x3bdab3(0x17f)](_0xd6e08b){const _0x51d8b8=_0x3bdab3;return this[_0x51d8b8(0x14d)]['push'](_0xd6e08b),this[_0x51d8b8(0xed)](),this;}[_0x3bdab3(0x327)](_0x346268){const _0x4ecba5=_0x3bdab3;if(this[_0x4ecba5(0x1af)](_0x346268))return this[_0x4ecba5(0xda)](),this[_0x4ecba5(0x191)]['createInstance'](W,this['unitID'],this[_0x4ecba5(0x2ec)],null,this['_pendingMutations'],null,[_0x346268],this[_0x4ecba5(0x37e)]);try{const _0x54d198=this[_0x4ecba5(0x2ef)]['transformMutationsWithChangeset'](_0x346268,this[_0x4ecba5(0x14d)]);if(_0x155e17(_0x54d198)){const {c1Prime:_0x7a79ef,m2Prime:_0x1ef69a}=_0x54d198;this['_executeRemoteChangeset'](_0x7a79ef);const _0x1926eb=this[_0x4ecba5(0x191)][_0x4ecba5(0x2c9)](B,this[_0x4ecba5(0x227)],this[_0x4ecba5(0x2ec)],_0x1ef69a,this['_handler']);return this[_0x4ecba5(0xda)](),_0x1926eb[_0x4ecba5(0x1da)](this[_0x4ecba5(0x14f)]?Math['max'](0x0,new Date()['getTime']()-this[_0x4ecba5(0x14f)]):this['_getSendChangesetTimeout']()),_0x1926eb;}throw _0x54d198[_0x4ecba5(0x127)];}catch(_0x315a87){return this[_0x4ecba5(0x140)][_0x4ecba5(0x127)](_0x315a87),this['_onConflict'](!0x1);}}[_0x3bdab3(0xc6)](){const _0x55b167=_0x3bdab3;throw new Error(_0x55b167(0x252));}[_0x3bdab3(0x179)](){const _0x449073=_0x3bdab3;throw new Error(_0x449073(0x33f));}['toggleOffline'](){const _0x1cf5e1=_0x3bdab3;return this[_0x1cf5e1(0xda)](),this[_0x1cf5e1(0x191)][_0x1cf5e1(0x2c9)](X,this[_0x1cf5e1(0x227)],this[_0x1cf5e1(0x2ec)],null,this[_0x1cf5e1(0x14d)],this[_0x1cf5e1(0x37e)]);}['toggleOnline'](){return this;}[_0x3bdab3(0x1da)](_0x119030){const _0x5dd7f0=_0x3bdab3;_0x119030=_0x119030!=null?_0x119030:this['_getSendChangesetTimeout'](),this[_0x5dd7f0(0x14f)]=new Date()[_0x5dd7f0(0x24c)](),this[_0x5dd7f0(0x136)]=setTimeout(()=>{const _0x4c7523=_0x5dd7f0;this[_0x4c7523(0xda)]();let _0x4a55f6=null;switch(this[_0x4c7523(0x2ec)]){case H[_0x4c7523(0x38c)]:{_0x4a55f6=jn(this[_0x4c7523(0x14d)],this[_0x4c7523(0x227)],this[_0x4c7523(0xa4)],this[_0x4c7523(0x118)],this['_memberService']);break;}case H['UNIVER_DOC']:{_0x4a55f6=Hn(this['_pendingMutations'],this[_0x4c7523(0x227)],this['_univerInstanceService'],this[_0x4c7523(0x118)],this[_0x4c7523(0x2b0)]);break;}default:throw new Error(_0x4c7523(0xe3)+this[_0x4c7523(0x2ec)]+_0x4c7523(0x2b8));}const {changeset:_0x9c08f7,pendingMutations:_0x2c3b57}=_0x4a55f6;this[_0x4c7523(0x37e)]['onSendChangeset'](_0x9c08f7);const _0x5ee6d2=_0x2c3b57['length']?this[_0x4c7523(0x191)][_0x4c7523(0x2c9)](V,this[_0x4c7523(0x227)],this[_0x4c7523(0x2ec)],_0x9c08f7,_0x2c3b57,this[_0x4c7523(0x37e)]):this[_0x4c7523(0x191)][_0x4c7523(0x2c9)](K,this[_0x4c7523(0x227)],this[_0x4c7523(0x2ec)],_0x9c08f7,this[_0x4c7523(0x37e)]);_0x5ee6d2['_updateLocalCache'](),this[_0x4c7523(0x37e)]['onStateChange'](this,_0x5ee6d2);},_0x119030);}[_0x3bdab3(0xba)](){const _0x1cbc8d=_0x3bdab3;var _0x3df25e;return(_0x3df25e=this[_0x1cbc8d(0x1bd)][_0x1cbc8d(0x384)](Ki))!=null?_0x3df25e:Xi;}[_0x3bdab3(0x29d)](){const _0x4f6146=_0x3bdab3;throw new Error(_0x4f6146(0x13a));}[_0x3bdab3(0xda)](){const _0x368d59=_0x3bdab3;this[_0x368d59(0x136)]!=null&&(clearTimeout(this[_0x368d59(0x136)]),this['_sendingTimer']=null);}['_onConflict'](_0x33637b){const _0x25739c=_0x3bdab3;return this[_0x25739c(0xda)](),this['_injector'][_0x25739c(0x2c9)](te,this[_0x25739c(0x227)],this[_0x25739c(0x2ec)],null,this['_pendingMutations'],this[_0x25739c(0x37e)],_0x33637b);}};B=ne([g(0x4,_0x279e5b(_0x5df577)),g(0x5,_0x279e5b(_0x54c94d)),g(0x6,_0x279e5b(D)),g(0x7,_0x279e5b(ee)),g(0x8,_0x2cecb4),g(0x9,_0x5ba974),g(0xa,_0x37d874),g(0xb,_0x539a09),g(0xc,_0x173bd8),g(0xd,_0x1de145)],B);let K=class extends re{constructor(_0xd2cf22,_0x3393f4,_0x55279a,_0x41c40c,_0x8ca448,_0x512a88,_0x3264cf,_0x1548f3,_0x265da4,_0x3f27ee,_0x54dce4){const _0x25a3d3=_0x3bdab3;super(_0xd2cf22,_0x3393f4,_0x55279a,[],_0x41c40c,_0x1548f3,_0x54dce4,_0x512a88,_0x3264cf),l(this,'status',_0x25a3d3(0x32c)),(this['_injector']=_0x8ca448,this[_0x25a3d3(0x140)]=_0x265da4,this[_0x25a3d3(0x2ef)]=_0x3f27ee);}[_0x3bdab3(0x17f)](_0x59743f){const _0x12ab3e=_0x3bdab3,_0x5604ea=this['_injector'][_0x12ab3e(0x2c9)](V,this[_0x12ab3e(0x227)],this[_0x12ab3e(0x2ec)],this['_awaitingChangeset'],[_0x59743f],this[_0x12ab3e(0x37e)]);return _0x5604ea[_0x12ab3e(0xed)](),_0x5604ea;}[_0x3bdab3(0x327)](_0x13e139){const _0x48cd4a=_0x3bdab3;if(this[_0x48cd4a(0x1af)](_0x13e139))return this[_0x48cd4a(0x191)][_0x48cd4a(0x2c9)](W,this['unitID'],this[_0x48cd4a(0x2ec)],this[_0x48cd4a(0x2a8)],[],null,[_0x13e139],this[_0x48cd4a(0x37e)]);try{const _0x5ceac5=this[_0x48cd4a(0x2ef)][_0x48cd4a(0x1c0)]([_0x13e139],[this[_0x48cd4a(0x2a8)]],!0x1);if(_0x36d671(_0x5ceac5)){const {c1Prime:_0xc0adac,c2Prime:_0x115d0b}=_0x5ceac5;this[_0x48cd4a(0x2e3)](_0xc0adac[0x0]),_0x115d0b[0x0]['baseRev']=this[_0x48cd4a(0x2d0)]();const _0x1746f9=this[_0x48cd4a(0x191)]['createInstance'](K,this[_0x48cd4a(0x227)],this[_0x48cd4a(0x2ec)],_0x115d0b[0x0],this['_handler']);return _0x1746f9[_0x48cd4a(0xed)](),_0x1746f9;}return this['_onConflict'](!0x1);}catch(_0x260763){return this[_0x48cd4a(0x140)][_0x48cd4a(0x127)](_0x260763),this[_0x48cd4a(0x113)](!0x1);}}[_0x3bdab3(0xc6)](_0x32d007){const _0x526f6e=_0x3bdab3,_0x2bccb7=this['_revisionService'][_0x526f6e(0x3b3)](this['unitID']);if(_0x32d007[_0x526f6e(0x1a0)]<_0x2bccb7-0x1)return this;if(this[_0x526f6e(0x1af)](_0x32d007))return this[_0x526f6e(0x191)][_0x526f6e(0x2c9)](W,this[_0x526f6e(0x227)],this[_0x526f6e(0x2ec)],null,[],this[_0x526f6e(0x2a8)],[],this[_0x526f6e(0x37e)]);this[_0x526f6e(0xa3)]();const _0xf6883d=this[_0x526f6e(0x191)][_0x526f6e(0x2c9)](Te,this[_0x526f6e(0x227)],this[_0x526f6e(0x2ec)],this[_0x526f6e(0x37e)]);return _0xf6883d['_updateLocalCache'](),_0xf6883d;}[_0x3bdab3(0x179)](_0x1c42c1){const _0x2b9b44=_0x3bdab3;return this[_0x2b9b44(0x113)](!!(_0x1c42c1!=null&&_0x1c42c1['isPermissionRej']));}[_0x3bdab3(0x11b)](){const _0x4b4a45=_0x3bdab3;return this[_0x4b4a45(0x191)]['createInstance'](X,this[_0x4b4a45(0x227)],this[_0x4b4a45(0x2ec)],this[_0x4b4a45(0x2a8)],[],this['_handler']);}[_0x3bdab3(0x189)](){return this;}[_0x3bdab3(0x29d)](){const _0x365989=_0x3bdab3;this[_0x365989(0x37e)]['onSendChangeset'](this[_0x365989(0x2a8)]);}[_0x3bdab3(0x113)](_0x4d211e){const _0x560772=_0x3bdab3;return this['_injector'][_0x560772(0x2c9)](te,this[_0x560772(0x227)],this[_0x560772(0x2ec)],this['_awaitingChangeset'],[],this[_0x560772(0x37e)],_0x4d211e);}};K=ne([g(0x4,_0x279e5b(_0x5df577)),g(0x5,_0x279e5b(_0x54c94d)),g(0x6,_0x279e5b(D)),g(0x7,_0x5ba974),g(0x8,_0x2cecb4),g(0x9,_0x539a09),g(0xa,_0x1de145)],K);let V=class extends re{constructor(_0x47f35e,_0x57b089,_0x1758c2,_0x525ae9,_0x2be62d,_0x327c83,_0x41bb83,_0x2e175a,_0x45f7f8,_0x217139,_0x535124,_0x327e7b){const _0x8482d1=_0x3bdab3;super(_0x47f35e,_0x57b089,_0x1758c2,_0x525ae9,_0x2be62d,_0x45f7f8,_0x327e7b,_0x41bb83,_0x2e175a),l(this,_0x8482d1(0x186),'awaiting_with_pending'),(this['_injector']=_0x327c83,this['_logService']=_0x217139,this[_0x8482d1(0x2ef)]=_0x535124);}['appendMutation'](_0x21fcd6){const _0x117b62=_0x3bdab3;return this[_0x117b62(0x14d)][_0x117b62(0x37d)](_0x21fcd6),this;}[_0x3bdab3(0x327)](_0x42c8c7){const _0x536e55=_0x3bdab3;if(this[_0x536e55(0x1af)](_0x42c8c7))return this[_0x536e55(0x191)][_0x536e55(0x2c9)](W,this[_0x536e55(0x227)],this[_0x536e55(0x2ec)],this[_0x536e55(0x2a8)],this[_0x536e55(0x14d)],null,[_0x42c8c7],this[_0x536e55(0x37e)]);try{const _0x382339=this['_transformService']['transformChangesets']([_0x42c8c7],[this[_0x536e55(0x2a8)]],!0x1);if(_0x36d671(_0x382339)){const {c1Prime:_0x835289,c2Prime:_0x25b37a}=_0x382339,_0x3b601e=this[_0x536e55(0x2ef)]['transformMutationsWithChangeset'](_0x835289[0x0],this[_0x536e55(0x14d)]);if(_0x155e17(_0x3b601e)){const {c1Prime:_0x2446de,m2Prime:_0x3d22c0}=_0x3b601e;return this[_0x536e55(0x2e3)](_0x2446de),_0x25b37a[0x0][_0x536e55(0x397)]=this[_0x536e55(0x2d0)](),this['_injector'][_0x536e55(0x2c9)](V,this[_0x536e55(0x227)],this[_0x536e55(0x2ec)],_0x25b37a[0x0],_0x3d22c0,this[_0x536e55(0x37e)]);}throw _0x3b601e[_0x536e55(0x127)];}throw _0x382339[_0x536e55(0x127)];}catch(_0x1d9e13){return this[_0x536e55(0x140)]['error'](_0x1d9e13),this[_0x536e55(0x113)](!0x1);}}[_0x3bdab3(0xc6)](_0x1822ee){const _0x1b7b30=_0x3bdab3;if(this[_0x1b7b30(0x1af)](_0x1822ee))return this[_0x1b7b30(0x191)][_0x1b7b30(0x2c9)](W,this[_0x1b7b30(0x227)],this['type'],null,this[_0x1b7b30(0x14d)],this[_0x1b7b30(0x2a8)],[],this[_0x1b7b30(0x37e)]);this[_0x1b7b30(0xa3)]();const _0x5bdc38=this[_0x1b7b30(0x191)][_0x1b7b30(0x2c9)](B,this[_0x1b7b30(0x227)],this[_0x1b7b30(0x2ec)],this[_0x1b7b30(0x14d)],this['_handler']);return _0x5bdc38['_schedule'](),_0x5bdc38[_0x1b7b30(0xed)](),_0x5bdc38;}[_0x3bdab3(0x179)](_0x39cf53){const _0x488af0=_0x3bdab3;return this[_0x488af0(0x113)](!!(_0x39cf53!=null&&_0x39cf53['isPermissionRej']));}['toggleOffline'](){const _0x5a3358=_0x3bdab3;return this['_injector'][_0x5a3358(0x2c9)](X,this[_0x5a3358(0x227)],this[_0x5a3358(0x2ec)],this[_0x5a3358(0x2a8)],this[_0x5a3358(0x14d)],this[_0x5a3358(0x37e)]);}['toggleOnline'](){return this;}[_0x3bdab3(0x29d)](){const _0x5bf767=_0x3bdab3;this[_0x5bf767(0x37e)][_0x5bf767(0x259)](this[_0x5bf767(0x2a8)]);}[_0x3bdab3(0x113)](_0x5e5ef1){const _0xe7f8bc=_0x3bdab3;return this[_0xe7f8bc(0x191)]['createInstance'](te,this[_0xe7f8bc(0x227)],this[_0xe7f8bc(0x2ec)],null,this['_pendingMutations'],this[_0xe7f8bc(0x37e)],_0x5e5ef1);}};V=ne([g(0x5,_0x279e5b(_0x5df577)),g(0x6,_0x279e5b(_0x54c94d)),g(0x7,_0x279e5b(D)),g(0x8,_0x5ba974),g(0x9,_0x2cecb4),g(0xa,_0x539a09),g(0xb,_0x1de145)],V);let te=class extends re{constructor(_0x169fac,_0x5ab5c6,_0x5794e9,_0x5294e2,_0x281096,_0x2a69ff=!0x1,_0x181106,_0x3fdb1d,_0x172e78,_0x47080c,_0x2da9ea,_0x5cc7b1,_0x13500e){const _0xf86f6=_0x3bdab3;super(_0x169fac,_0x5ab5c6,_0x5794e9,_0x5294e2,_0x281096,_0x3fdb1d,_0x172e78,_0x2da9ea,_0x47080c),l(this,_0xf86f6(0x186),_0xf86f6(0x1e1)),(this[_0xf86f6(0xbe)]=_0x2a69ff,this[_0xf86f6(0x9d)]=_0x181106,this[_0xf86f6(0x26d)]=_0x5cc7b1,this[_0xf86f6(0xf6)]=_0x13500e,this[_0xf86f6(0x1ba)](),this[_0xf86f6(0x163)](),this['_disableEditing']());}[_0x3bdab3(0x17f)](){return this;}['onRemoteChangeset'](){return this;}[_0x3bdab3(0xc6)](){return this;}[_0x3bdab3(0x179)](){return this;}['toggleOffline'](){return this;}[_0x3bdab3(0x189)](){return this;}[_0x3bdab3(0x29d)](){const _0x24c0a6=_0x3bdab3;throw new Error(_0x24c0a6(0x349));}[_0x3bdab3(0x163)](){const _0x297214=_0x3bdab3;this[_0x297214(0x334)][_0x297214(0x124)](this[_0x297214(0x227)],this[_0x297214(0x2ec)],null,[]);}[_0x3bdab3(0x1ba)](){const _0x79fa3c=_0x3bdab3;this[_0x79fa3c(0xbe)]?this[_0x79fa3c(0xf6)][_0x79fa3c(0x270)]({'title':this[_0x79fa3c(0x26d)]['t']('permission.title'),'content':this[_0x79fa3c(0x26d)]['t'](_0x79fa3c(0x1a8)),'type':_0x79fa3c(0x127),'duration':0x0}):this[_0x79fa3c(0xf6)][_0x79fa3c(0x270)]({'title':this[_0x79fa3c(0x26d)]['t'](_0x79fa3c(0xbc)),'content':this['_localeService']['t'](_0x79fa3c(0xea)),'type':'error','duration':0x0});}[_0x3bdab3(0x2cf)](){const _0x259a2c=_0x3bdab3;this[_0x259a2c(0x9d)][_0x259a2c(0xb3)](new _0x2a2a3d(this[_0x259a2c(0x227)])['id'],!0x1);}};te=ne([g(0x6,_0x279e5b(_0x4ac7e0)),g(0x7,_0x5ba974),g(0x8,_0x1de145),g(0x9,_0x279e5b(D)),g(0xa,_0x279e5b(_0x54c94d)),g(0xb,_0x279e5b(_0x25e6c6)),g(0xc,_0x39c5e1)],te);let X=class extends re{constructor(_0x2e4f86,_0x27344e,_0x14d73d,_0x1d70e1,_0xd8f531,_0xcc250d,_0x8d9022,_0xb53583,_0x5027ce,_0x382126){const _0x5e093d=_0x3bdab3;super(_0x2e4f86,_0x27344e,_0x14d73d,_0x1d70e1,_0xd8f531,_0x5027ce,_0x382126,_0x8d9022,_0xb53583),l(this,_0x5e093d(0x186),_0x5e093d(0x29e)),this[_0x5e093d(0x191)]=_0xcc250d;}[_0x3bdab3(0x17f)](_0x135099){const _0x1f84c2=_0x3bdab3;return this['_pendingMutations'][_0x1f84c2(0x37d)](_0x135099),this[_0x1f84c2(0xed)](),this;}[_0x3bdab3(0x327)](_0x58f0fb){const _0x5ef5ae=_0x3bdab3;throw new Error(_0x5ef5ae(0xa6));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x519dd6=_0x3bdab3;throw new Error(_0x519dd6(0x14e));}[_0x3bdab3(0x11b)](){return this;}[_0x3bdab3(0x189)](){const _0x1de3c9=_0x3bdab3,{_injector:_0x3a1194,_pendingMutations:_0x325c98,_awaitingChangeset:_0x210a17,unitID:_0x56a7e5,_handler:_0x193b89,type:_0xa1c395}=this,_0xfb1c97=Os(_0x3a1194,_0x56a7e5,_0xa1c395,_0x210a17,_0x325c98,_0x193b89);return _0xfb1c97 instanceof B?_0xfb1c97[_0x1de3c9(0x1da)]():(_0xfb1c97 instanceof V||_0xfb1c97 instanceof K)&&_0xfb1c97[_0x1de3c9(0x29d)](),_0xfb1c97;}['resend'](){const _0x3b3606=_0x3bdab3;throw new Error(_0x3b3606(0x35c));}};X=ne([g(0x5,_0x279e5b(_0x5df577)),g(0x6,_0x279e5b(_0x54c94d)),g(0x7,_0x279e5b(D)),g(0x8,_0x5ba974),g(0x9,_0x1de145)],X);let W=class extends re{constructor(_0x3f6a3d,_0xd0d56a,_0x2cd6fa,_0x6d2c3d,_0x4d66d5,_0x2ba6a8,_0x562016,_0x441371,_0x1fb54c,_0x28d51a,_0x4e3fe3,_0x3d95b1,_0x189672,_0x569e83){const _0x41a712=_0x3bdab3;super(_0x3f6a3d,_0xd0d56a,_0x2cd6fa,_0x6d2c3d,_0x562016,_0x3d95b1,_0x189672,_0x1fb54c,_0x28d51a),l(this,_0x41a712(0x186),'fetch_missing'),(this[_0x41a712(0x2ae)]=_0x4d66d5,this[_0x41a712(0x115)]=_0x2ba6a8,this[_0x41a712(0x191)]=_0x441371,this[_0x41a712(0x140)]=_0x4e3fe3,this['_transformService']=_0x569e83);}[_0x3bdab3(0x31a)](_0x481310){const _0x4c9bef=_0x3bdab3;try{const _0x16d6cf=[..._0x481310,...this[_0x4c9bef(0x115)]],_0x3f9452=[this['_awaitingChangeset']||this[_0x4c9bef(0x2ae)]]['filter'](_0x2898fc=>!!_0x2898fc);let _0x48e326,_0x15baba;if(_0x3f9452[_0x4c9bef(0x2d9)]){const _0x14a916=this[_0x4c9bef(0x2ef)][_0x4c9bef(0x1c0)](_0x16d6cf,_0x3f9452,!0x1);if(!_0x36d671(_0x14a916))throw _0x14a916[_0x4c9bef(0x127)];_0x48e326=_0x14a916['c1Prime'],_0x15baba=_0x14a916[_0x4c9bef(0x3a4)];}else _0x48e326=_0x16d6cf,_0x15baba=[];let _0x4e1220=this[_0x4c9bef(0x14d)];_0x48e326['forEach'](_0x1709f8=>{const _0x131fe1=_0x4c9bef;let _0x43264d;if(_0x4e1220[_0x131fe1(0x2d9)]){const _0x37c352=this[_0x131fe1(0x2ef)]['transformMutationsWithChangeset'](_0x1709f8,_0x4e1220);if(!_0x155e17(_0x37c352))throw _0x37c352[_0x131fe1(0x127)];_0x43264d=_0x37c352['c1Prime'],_0x4e1220=_0x37c352[_0x131fe1(0x32f)];}else _0x43264d=_0x1709f8;this[_0x131fe1(0x2e3)](_0x43264d);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4c9bef(0xa3)](),this[_0x4c9bef(0x2a8)]&&_0x15baba[_0x4c9bef(0x2d9)]&&(_0x15baba[0x0]['baseRev']=this[_0x4c9bef(0x2d0)]());let _0x2f30db;if(this[_0x4c9bef(0x2a8)]&&_0x4e1220[_0x4c9bef(0x2d9)]!==0x0)_0x2f30db=this['_injector'][_0x4c9bef(0x2c9)](V,this[_0x4c9bef(0x227)],this['type'],_0x15baba[0x0],_0x4e1220,this[_0x4c9bef(0x37e)]);else{if(this[_0x4c9bef(0x2a8)]&&_0x4e1220[_0x4c9bef(0x2d9)]===0x0)_0x15baba[0x0][_0x4c9bef(0x397)]=this['_getCurrentRevision'](),_0x2f30db=this['_injector'][_0x4c9bef(0x2c9)](K,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],_0x15baba[0x0],this[_0x4c9bef(0x37e)]);else{if(_0x4e1220[_0x4c9bef(0x2d9)]!==0x0){const _0x4601d2=this['_injector'][_0x4c9bef(0x2c9)](B,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],_0x4e1220,this[_0x4c9bef(0x37e)]);_0x4601d2[_0x4c9bef(0x1da)](),_0x2f30db=_0x4601d2;}else _0x2f30db=this[_0x4c9bef(0x191)][_0x4c9bef(0x2c9)](Te,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],this[_0x4c9bef(0x37e)]);}}return _0x2f30db['_updateLocalCache'](),_0x2f30db;}catch(_0x296108){return this['_logService'][_0x4c9bef(0x127)](_0x4c9bef(0x306),_0x4c9bef(0x358),_0x296108),this[_0x4c9bef(0x191)][_0x4c9bef(0x2c9)](te,this[_0x4c9bef(0x227)],this[_0x4c9bef(0x2ec)],this[_0x4c9bef(0x2a8)],this[_0x4c9bef(0x14d)],this[_0x4c9bef(0x37e)],!0x1);}}['resend'](){const _0x12961e=_0x3bdab3;throw new Error(_0x12961e(0x224));}[_0x3bdab3(0x17f)](_0x5e2961){const _0x4f0cc0=_0x3bdab3;return this[_0x4f0cc0(0x14d)][_0x4f0cc0(0x37d)](_0x5e2961),this;}[_0x3bdab3(0x327)](_0x2b11b1){const _0xffafcb=_0x3bdab3;return this[_0xffafcb(0x115)][_0xffafcb(0x37d)](_0x2b11b1),this;}[_0x3bdab3(0xc6)](_0x39bfea){const _0x5a9fa9=_0x3bdab3;if(this[_0x5a9fa9(0x2a8)])return this[_0x5a9fa9(0x2ae)]=this[_0x5a9fa9(0x2a8)],this[_0x5a9fa9(0x2a8)]=null,this;throw new Error(_0x5a9fa9(0xb9));}[_0x3bdab3(0x179)](_0x485d40){const _0x537d99=_0x3bdab3;return this[_0x537d99(0x113)](!!(_0x485d40!=null&&_0x485d40[_0x537d99(0x337)]));}[_0x3bdab3(0x11b)](){const _0x3d0835=_0x3bdab3;return this[_0x3d0835(0x191)][_0x3d0835(0x2c9)](X,this['unitID'],this[_0x3d0835(0x2ec)],this[_0x3d0835(0x2a8)],this['_pendingMutations'],this[_0x3d0835(0x37e)]);}[_0x3bdab3(0x189)](){return this;}['_onConflict'](_0x2a2f61){const _0xad77b2=_0x3bdab3;return this['_injector'][_0xad77b2(0x2c9)](te,this[_0xad77b2(0x227)],this[_0xad77b2(0x2ec)],this[_0xad77b2(0x2a8)],this[_0xad77b2(0x14d)],this['_handler'],_0x2a2f61);}};W=ne([g(0x7,_0x279e5b(_0x5df577)),g(0x8,_0x279e5b(_0x54c94d)),g(0x9,_0x279e5b(D)),g(0xa,_0x2cecb4),g(0xb,_0x5ba974),g(0xc,_0x1de145),g(0xd,_0x539a09)],W);function Os(_0x143b76,_0x377c50,_0x478f89,_0x14804b,_0x141bac,_0x281af5){const _0x85594d=_0x3bdab3;return _0x14804b&&_0x141bac[_0x85594d(0x2d9)]?_0x143b76[_0x85594d(0x2c9)](V,_0x377c50,_0x478f89,_0x14804b,_0x141bac,_0x281af5):_0x14804b?_0x143b76['createInstance'](K,_0x377c50,_0x478f89,_0x14804b,_0x281af5):_0x141bac[_0x85594d(0x2d9)]?_0x143b76[_0x85594d(0x2c9)](B,_0x377c50,_0x478f89,_0x141bac,_0x281af5):_0x143b76[_0x85594d(0x2c9)](Te,_0x377c50,_0x478f89,_0x281af5);}var kn=Object[_0x3bdab3(0x162)],Bn=Object[_0x3bdab3(0x123)],Je=(_0xa60043,_0x2c269b,_0x189b14,_0x11cb99)=>{const _0x82c645=_0x3bdab3;for(var _0x44af81=_0x11cb99>0x1?void 0x0:_0x11cb99?Bn(_0x2c269b,_0x189b14):_0x2c269b,_0xe299ee=_0xa60043[_0x82c645(0x2d9)]-0x1,_0x3262d7;_0xe299ee>=0x0;_0xe299ee--)(_0x3262d7=_0xa60043[_0xe299ee])&&(_0x44af81=(_0x11cb99?_0x3262d7(_0x2c269b,_0x189b14,_0x44af81):_0x3262d7(_0x44af81))||_0x44af81);return _0x11cb99&&_0x44af81&&kn(_0x2c269b,_0x189b14,_0x44af81),_0x44af81;},S=(_0x43bbf6,_0x36ee54)=>(_0x5453fa,_0x4573c5)=>_0x36ee54(_0x5453fa,_0x4573c5,_0x43bbf6);let Ee=class extends _0x300f85{constructor(_0x3ced5a,_0x38b9a7,_0x20687f){const _0xe2e02b=_0x3bdab3;super(),l(this,_0xe2e02b(0x255),new Map()),l(this,'_entityInit$',new _0x4a8f66()),(this[_0xe2e02b(0x191)]=_0x3ced5a,this['_collabSessionService']=_0x38b9a7,this[_0xe2e02b(0xa4)]=_0x20687f,this[_0xe2e02b(0x10d)]());}[_0x3bdab3(0x328)](){const _0x8b20fe=_0x3bdab3;super[_0x8b20fe(0x328)](),this['_entities']['forEach'](_0x436e3e=>_0x436e3e[_0x8b20fe(0x328)]()),this[_0x8b20fe(0x255)]['clear']();}[_0x3bdab3(0x22f)](_0x1157d0){const _0x489352=_0x3bdab3;var _0x34560f;return(_0x34560f=this[_0x489352(0x255)][_0x489352(0x132)](_0x1157d0))!=null?_0x34560f:null;}[_0x3bdab3(0x149)](_0x2934a3){const _0x4eb38b=_0x3bdab3,_0x49cd67=this[_0x4eb38b(0x22f)](_0x2934a3);return _0x49cd67?_0x442f94(_0x49cd67):this[_0x4eb38b(0x390)]['pipe'](_0x748e3b(_0x2db6af=>_0x2db6af[_0x4eb38b(0x227)]===_0x2934a3));}['_init'](){const _0x30f2e6=_0x3bdab3;this[_0x30f2e6(0xa4)][_0x30f2e6(0x322)](_0x3ba52b[_0x30f2e6(0x38c)])[_0x30f2e6(0x19c)](_0x352c23(this[_0x30f2e6(0x99)]),_0x251b05(0x10))['subscribe'](async _0x93087d=>{const _0x36cda8=_0x30f2e6,_0x5c7d30=_0x93087d[_0x36cda8(0x100)](),_0x25df4e=await this[_0x36cda8(0x28d)](_0x5c7d30,H[_0x36cda8(0x38c)]);this['_entities'][_0x36cda8(0x156)](_0x5c7d30,_0x25df4e);}),this[_0x30f2e6(0xa4)]['getTypeOfUnitAdded$'](_0x3ba52b[_0x30f2e6(0x1a4)])[_0x30f2e6(0x19c)](_0x352c23(this[_0x30f2e6(0x99)]),_0x251b05(0x10))['pipe'](_0x748e3b(_0x129554=>!_0x129554['getUnitId']()[_0x30f2e6(0x1ea)]('__')))[_0x30f2e6(0x2b5)](async _0x13377d=>{const _0x1dd3ab=_0x30f2e6,_0x3a3ee0=_0x13377d[_0x1dd3ab(0x100)](),_0x6a844f=await this[_0x1dd3ab(0x28d)](_0x3a3ee0,H['UNIVER_DOC']);this[_0x1dd3ab(0x255)][_0x1dd3ab(0x156)](_0x3a3ee0,_0x6a844f);}),_0x1ddc59(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3ba52b[_0x30f2e6(0x38c)]),this[_0x30f2e6(0xa4)][_0x30f2e6(0x236)](_0x3ba52b[_0x30f2e6(0x1a4)]))[_0x30f2e6(0x19c)](_0x352c23(this[_0x30f2e6(0x99)]))[_0x30f2e6(0x2b5)](_0x314de4=>{const _0xbae8c0=_0x30f2e6,_0x3e9fc2=_0x314de4[_0xbae8c0(0x100)](),_0x36aa38=this[_0xbae8c0(0x255)]['get'](_0x3e9fc2);_0x36aa38&&(_0x36aa38[_0xbae8c0(0x328)](),this[_0xbae8c0(0x255)][_0xbae8c0(0xfc)](_0x3e9fc2));});}async[_0x3bdab3(0x28d)](_0x4b1b5a,_0x25f554){const _0x33b5d7=_0x3bdab3,_0x130171=await this[_0x33b5d7(0x33a)]['requireSession'](_0x4b1b5a),_0x280af8=this['_injector'][_0x33b5d7(0x2c9)](this[_0x33b5d7(0x158)](_0x25f554),_0x4b1b5a,_0x25f554,_0x130171);return await _0x280af8[_0x33b5d7(0x220)](),this[_0x33b5d7(0x390)][_0x33b5d7(0x1c7)](_0x280af8),_0x280af8;}[_0x3bdab3(0x158)](_0x2ffb43){const _0x27850a=_0x3bdab3;switch(_0x2ffb43){case H['UNIVER_DOC']:return dt;case H[_0x27850a(0x38c)]:return ft;default:throw new Error(_0x27850a(0x1e4)+_0x2ffb43);}}};Ee=Je([_0x516125(_0x3c792f[_0x3bdab3(0x335)],Ee),S(0x0,_0x279e5b(_0x5df577)),S(0x1,_0x279e5b(Re)),S(0x2,_0x173bd8)],Ee);let We=class extends _0x300f85{constructor(_0x253018,_0x51a34f,_0x4751c6,_0xbca7e2,_0x118e16,_0x3de4f8,_0x55fede,_0x388e51,_0x50963a,_0x37935e,_0x51f3b4,_0x5941ac,_0x1f6a7c){const _0x3b56c9=_0x3bdab3;super(),l(this,_0x3b56c9(0x366),new _0x2fb415(null)),l(this,'state$',this[_0x3b56c9(0x366)][_0x3b56c9(0x267)]()),l(this,_0x3b56c9(0x312)),l(this,_0x3b56c9(0xff),!0x1),l(this,_0x3b56c9(0x21b),this[_0x3b56c9(0x248)][_0x3b56c9(0x19c)](_0x5de95e(_0x553aed=>_0x553aed?_0x553aed['status']:P[_0x3b56c9(0x37a)]),_0x1a58cf(0x1))),l(this,_0x3b56c9(0xde),!0x1),l(this,_0x3b56c9(0x29a),[]),(this['unitID']=_0x253018,this[_0x3b56c9(0x37c)]=_0x51a34f,this['_session']=_0x4751c6,this[_0x3b56c9(0x191)]=_0xbca7e2,this[_0x3b56c9(0x334)]=_0x118e16,this[_0x3b56c9(0x355)]=_0x3de4f8,this[_0x3b56c9(0x26d)]=_0x55fede,this[_0x3b56c9(0x118)]=_0x388e51,this[_0x3b56c9(0x140)]=_0x50963a,this['_commandService']=_0x37935e,this[_0x3b56c9(0x2c7)]=_0x51f3b4,this[_0x3b56c9(0x9d)]=_0x5941ac,this[_0x3b56c9(0x35a)]=_0x1f6a7c);}get[_0x3bdab3(0x36d)](){const _0x91af8d=_0x3bdab3;return this[_0x91af8d(0x312)];}async[_0x3bdab3(0x220)](){const _0x3ea500=_0x3bdab3;if(this[_0x3ea500(0x36d)])throw new Error(_0x3ea500(0x11c));await this[_0x3ea500(0x10d)]();}[_0x3bdab3(0xb7)](){const _0x828c76=_0x3bdab3;return this[_0x828c76(0xff)]=!0x0,_0x439c9a(()=>{const _0x33f513=_0x828c76;this[_0x33f513(0xff)]=!0x1,this[_0x33f513(0x1a3)]();});}['_updateState'](_0x58916f){const _0x16d8f5=_0x3bdab3;this['_state']=_0x58916f,this[_0x16d8f5(0x366)][_0x16d8f5(0x1c7)](_0x58916f);}async[_0x3bdab3(0x10d)](){const _0x2e14c6=_0x3bdab3;var _0x3cc725;return this[_0x2e14c6(0x2db)](await this[_0x2e14c6(0x2eb)]()),this[_0x2e14c6(0x35a)]&&((_0x3cc725=this['_singleActiveUnitService'])==null||_0x3cc725[_0x2e14c6(0x234)](this[_0x2e14c6(0x227)]),this['disposeWithMe'](_0x439c9a(this[_0x2e14c6(0x35a)][_0x2e14c6(0x169)](this[_0x2e14c6(0x227)])[_0x2e14c6(0x2b5)](_0x53972f=>{const _0x157fe3=_0x2e14c6;this['_logService'][_0x157fe3(0x23b)](_0x157fe3(0x38f),'editing\x20status\x20changed\x20to',_0x53972f),_0x53972f===Rs[_0x157fe3(0x2c5)]?(this[_0x157fe3(0x2c7)][_0x157fe3(0x270)]({'content':this[_0x157fe3(0x26d)]['t'](_0x157fe3(0x1f9)),'type':_0x32f68a[_0x157fe3(0x13d)]}),this[_0x157fe3(0x9d)][_0x157fe3(0xb3)](new _0x2a2a3d(this[_0x157fe3(0x227)])['id'],!0x1)):this[_0x157fe3(0x9d)][_0x157fe3(0xb3)](new _0x2a2a3d(this[_0x157fe3(0x227)])['id'],!0x0);})))),this['disposeWithMe'](_0x439c9a(this[_0x2e14c6(0x232)]['sessionStatus$'][_0x2e14c6(0x2b5)](_0x12b059=>{const _0x173ef5=_0x2e14c6;_0x12b059===_e[_0x173ef5(0x121)]?this['_toggleOnline']():_0x12b059===_e[_0x173ef5(0x37a)]&&this[_0x173ef5(0xd0)]();}))),this['disposeWithMe'](_0x439c9a(this[_0x2e14c6(0x232)][_0x2e14c6(0x126)]['subscribe'](_0x4c2919=>{const _0x149cea=_0x2e14c6;try{switch(_0x4c2919[_0x149cea(0xd4)]){case _0x19dc79[_0x149cea(0x2fc)]:{this[_0x149cea(0x1d8)](_0x17d674(_0x4c2919[_0x149cea(0x3ac)]));break;}case _0x19dc79[_0x149cea(0x2b3)]:{this['_onRemoteACK'](_0x4c2919['data']);break;}case _0x19dc79[_0x149cea(0xca)]:{this['_onRemoteRejected']();break;}case _0x19dc79[_0x149cea(0xa5)]:{this[_0x149cea(0x101)](_0x4c2919[_0x149cea(0x3ac)]['changesets']['map'](_0x5c4e79=>_0x17d674(_0x5c4e79)));break;}case _0x19dc79[_0x149cea(0x3a5)]:this[_0x149cea(0x157)]({'isPermissionRej':!0x0});}}catch(_0x18c0e7){throw console['error']('Error\x20on\x20receiving\x20event',_0x18c0e7),_0x18c0e7;}}))),this[_0x2e14c6(0x312)];}[_0x3bdab3(0x117)](){const _0x17cf00=_0x3bdab3;this[_0x17cf00(0xde)]=!0x1;}[_0x3bdab3(0x362)](){const _0x19dc5f=_0x3bdab3;if(this[_0x19dc5f(0xde)])throw new Error(_0x19dc5f(0xc9));this[_0x19dc5f(0xde)]=!0x0;}[_0x3bdab3(0x1ec)](_0x49a1fe){const _0x531a98=_0x3bdab3;this[_0x531a98(0x362)](),this[_0x531a98(0x2db)](this[_0x531a98(0x312)][_0x531a98(0x17f)](_0x49a1fe)),this['_unlockTransition']();}[_0x3bdab3(0x1d8)](_0x28e07c){const _0x1ba8eb=_0x3bdab3;if(!(_0x28e07c[_0x1ba8eb(0x1a0)]<=this[_0x1ba8eb(0x118)][_0x1ba8eb(0x3b3)](this['unitID']))){if(this[_0x1ba8eb(0xff)]){this['_remoteChangesetQueue']['push'](_0x28e07c);return;}this[_0x1ba8eb(0x1f0)](_0x28e07c);}}[_0x3bdab3(0x1a3)](){const _0x5d07d4=_0x3bdab3;this['_remoteChangesetQueue'][_0x5d07d4(0x2fa)](_0x276041=>this[_0x5d07d4(0x1f0)](_0x276041)),this[_0x5d07d4(0x29a)]=[];}['_applyRemoteChangeset'](_0x5cbd4b){const _0x526d52=_0x3bdab3,_0x41493e=this['_compressMutationService'][_0x526d52(0x1ef)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x526d52(0x1ef)][_0x526d52(0x26e)]()[_0x526d52(0x196)])(_0x5cbd4b[_0x526d52(0x295)],null)||_0x5cbd4b['mutations'],_0x2e03fb={..._0x5cbd4b,'mutations':_0x41493e};this[_0x526d52(0x362)](),this[_0x526d52(0x2db)](this[_0x526d52(0x312)][_0x526d52(0x327)](_0x2e03fb)),this[_0x526d52(0x117)]();}['_onRemoteACK'](_0x31249c){const _0x4a20a2=_0x3bdab3;this['_lockTransition'](),this[_0x4a20a2(0x2db)](this['_state']['onRemoteAck'](_0x31249c)),this[_0x4a20a2(0x117)]();}[_0x3bdab3(0x157)](_0x15def0){const _0x3b01a3=_0x3bdab3;this[_0x3b01a3(0x362)](),this['_updateState'](this[_0x3b01a3(0x312)][_0x3b01a3(0x179)](_0x15def0)),this[_0x3b01a3(0x117)]();}[_0x3bdab3(0x101)](_0x570018){const _0x591522=_0x3bdab3;if(!(this[_0x591522(0x312)]instanceof W))throw new TypeError(_0x591522(0x167));const _0x2d00ed=_0x570018['map'](_0x3a015f=>{const _0x4f7aea=_0x591522,_0x3a5676=this[_0x4f7aea(0x355)]['interceptor'][_0x4f7aea(0x344)](this[_0x4f7aea(0x355)][_0x4f7aea(0x1ef)][_0x4f7aea(0x26e)]()[_0x4f7aea(0x196)])(_0x3a015f['mutations'],null)||_0x3a015f[_0x4f7aea(0x295)];return{..._0x3a015f,'mutations':_0x3a5676};});this[_0x591522(0x362)](),this[_0x591522(0x2db)](this[_0x591522(0x312)]['onMissedChangesetFetched'](_0x2d00ed)),this[_0x591522(0x117)]();}[_0x3bdab3(0xd0)](){const _0xd45ee1=_0x3bdab3;this['_lockTransition'](),this[_0xd45ee1(0x2db)](this[_0xd45ee1(0x312)][_0xd45ee1(0x11b)]()),this[_0xd45ee1(0x117)]();}['_toggleOnline'](){const _0x53bfa5=_0x3bdab3;this[_0x53bfa5(0x362)](),this[_0x53bfa5(0x2db)](this[_0x53bfa5(0x312)][_0x53bfa5(0x189)]()),this[_0x53bfa5(0x117)]();}async['_createInitialState'](){return new Promise(_0x2df48a=>{const _0x4fd516=_0x92e7;this['_session']['sessionStatus$'][_0x4fd516(0x19c)](_0x319274(0x1))[_0x4fd516(0x2b5)](async _0x5d6358=>{const _0xd5789a=_0x4fd516;_0x2df48a(await this[_0xd5789a(0x1c6)](_0x5d6358===_e[_0xd5789a(0x121)]));});});}[_0x3bdab3(0x1d0)](){const _0x5e0007=this['unitID'];return{'onStateChange':(_0x5be172,_0x39424f)=>{const _0xd59f6a=_0x92e7;if(_0x5be172!==this['_state'])throw new Error(_0xd59f6a(0x296)+_0x5be172[_0xd59f6a(0x186)]+_0xd59f6a(0x2dc)+_0x39424f['status']+'\x0aCurrent:\x20'+this[_0xd59f6a(0x312)][_0xd59f6a(0x186)]);this['_updateState'](_0x39424f);},'onSendChangeset':_0x201413=>{const _0x1aba8d=_0x92e7,_0x478d74={'eventID':_0x19dc79[_0x1aba8d(0x395)],'data':{'unitID':_0x201413[_0x1aba8d(0x227)],'unitType':this['_type'],'changeset':_0x201413,'memberID':this['_session'][_0x1aba8d(0x14c)]()}};this[_0x1aba8d(0x232)][_0x1aba8d(0x204)](_0x478d74,this[_0x1aba8d(0x227)]);},'onMissingChangesets':({from:_0x1fce68,to:_0x551f11})=>{const _0x49495a=_0x92e7;this[_0x49495a(0x140)]['debug'](_0x49495a(0x38f),_0x49495a(0x2df)+_0x1fce68+_0x49495a(0x96)+_0x551f11);const _0x2df5e1={'eventID':_0x19dc79['FETCH_MISSING'],'data':{'unitID':_0x5e0007,'unitType':this[_0x49495a(0x37c)],'from':_0x1fce68,'to':_0x551f11}};this['_session'][_0x49495a(0x204)](_0x2df5e1,this[_0x49495a(0x227)]);}};}async['_createInitialStateImpl'](_0x2f9086){const _0x57ca3a=_0x3bdab3;var _0x8a0bce,_0x4a6540;const _0x16a6ad=await this[_0x57ca3a(0x334)][_0x57ca3a(0x2a5)](this[_0x57ca3a(0x227)]),_0x58fb82=(_0x8a0bce=_0x16a6ad==null?void 0x0:_0x16a6ad[_0x57ca3a(0x295)])!=null?_0x8a0bce:[],_0x10e0ca=(_0x4a6540=_0x16a6ad==null?void 0x0:_0x16a6ad['awaitingChangeset'])!=null?_0x4a6540:null,_0x3aedb1=this[_0x57ca3a(0x227)];try{this[_0x57ca3a(0x237)](_0x10e0ca,_0x58fb82);}catch(_0x2d66a6){this[_0x57ca3a(0x140)][_0x57ca3a(0x127)](_0x2d66a6);}const _0x1162d5=this[_0x57ca3a(0x1d0)]();if(_0x2f9086){const _0x4bf1bf=Os(this[_0x57ca3a(0x191)],_0x3aedb1,this[_0x57ca3a(0x37c)],_0x10e0ca,_0x58fb82,_0x1162d5);return _0x4bf1bf instanceof B?_0x4bf1bf['_schedule']():(_0x4bf1bf instanceof V||_0x4bf1bf instanceof K)&&_0x4bf1bf[_0x57ca3a(0x29d)](),_0x4bf1bf;}return this['_injector'][_0x57ca3a(0x2c9)](X,_0x3aedb1,this[_0x57ca3a(0x37c)],_0x10e0ca,_0x58fb82,_0x1162d5);}['_replayCachedMutations'](_0x8d762a,_0x46e6e5){const _0x423db2=_0x3bdab3;var _0x29e2ee,_0x47e9cf;const _0x39d06c=this[_0x423db2(0x355)][_0x423db2(0x1ef)][_0x423db2(0x344)](this[_0x423db2(0x355)][_0x423db2(0x1ef)][_0x423db2(0x26e)]()[_0x423db2(0x196)]);(_0x29e2ee=_0x39d06c((_0x8d762a==null?void 0x0:_0x8d762a[_0x423db2(0x295)])||[],null))==null||_0x29e2ee[_0x423db2(0x2fa)](_0x26ea4e=>this[_0x423db2(0x200)][_0x423db2(0x24e)](_0x26ea4e['id'],_0x26ea4e[_0x423db2(0x3bd)])),(_0x47e9cf=_0x39d06c(_0x46e6e5||[],null))==null||_0x47e9cf['forEach'](_0x5b7b08=>this['_commandService'][_0x423db2(0x24e)](_0x5b7b08['id'],_0x5b7b08[_0x423db2(0x3bd)]));}};We=Je([S(0x3,_0x279e5b(_0x5df577)),S(0x4,_0x279e5b(D)),S(0x5,_0x279e5b(_0x130ad1)),S(0x6,_0x279e5b(_0x25e6c6)),S(0x7,_0x279e5b(_0x54c94d)),S(0x8,_0x2cecb4),S(0x9,_0x5ba974),S(0xa,_0x2ac335),S(0xb,_0x4ac7e0),S(0xc,_0x4100a2(Xe))],We);let dt=class extends We{constructor(_0x3cee47,_0x70104c,_0x45d4e9,_0x2ca119,_0xf63f98,_0x2be705,_0x5d08b2,_0x56af60,_0x3d466b,_0x591b89,_0x30fe20,_0x2f4837,_0xb47b22,_0x34cd4a,_0x41906e,_0x33355e,_0x31bd3a){const _0x5c5110=_0x3bdab3;super(_0x3cee47,_0x70104c,_0x45d4e9,_0x2ca119,_0xf63f98,_0x2be705,_0x5d08b2,_0x56af60,_0xb47b22,_0x34cd4a,_0x41906e,_0x33355e,_0x31bd3a),this[_0x5c5110(0x227)]=_0x3cee47,this[_0x5c5110(0x2ec)]=_0x70104c,this[_0x5c5110(0x273)]=_0x45d4e9,this[_0x5c5110(0x2c0)]=_0x3d466b,this['_docTransformIMECacheService']=_0x591b89,this[_0x5c5110(0xac)]=_0x30fe20,this[_0x5c5110(0x261)]=_0x2f4837;}[_0x3bdab3(0x1d0)](){const _0x417c1d=_0x3bdab3,_0xcd28d9=super['_createHandler']();return _0xcd28d9[_0x417c1d(0x1db)]=_0x2c6271=>this['_docTransformIMECacheService'][_0x417c1d(0x1fa)](_0x2c6271),_0xcd28d9[_0x417c1d(0x1b8)]=_0x3d81ef=>this[_0x417c1d(0xac)][_0x417c1d(0xb8)](_0x3d81ef),_0xcd28d9[_0x417c1d(0xaa)]=_0x1d6588=>this['_docSyncEditingCollabCursorService'][_0x417c1d(0x31c)](_0x1d6588),_0xcd28d9[_0x417c1d(0x2bf)]=_0x32e1bd=>this[_0x417c1d(0x323)][_0x417c1d(0xd5)](_0x32e1bd),_0xcd28d9;}async[_0x3bdab3(0x10d)](){const _0x585c2d=_0x3bdab3,_0x56fd51=await super[_0x585c2d(0x10d)]();return this[_0x585c2d(0x2c0)][_0x585c2d(0x19b)][_0x585c2d(0x19c)](_0x352c23(this[_0x585c2d(0x99)]))[_0x585c2d(0x2b5)](_0x4d8b84=>{const _0xe5a1bd=_0x585c2d;if(_0x4d8b84==null)return;const {unitId:_0x36bc30,redoState:_0x3dc693,commandId:_0xaa6752}=_0x4d8b84;if(_0x36bc30!==this[_0xe5a1bd(0x227)])return;const _0x55e485={'id':_0xaa6752,'type':_0x4ea69f[_0xe5a1bd(0x350)],'params':{'unitId':_0x36bc30,'actions':_0x3dc693['actions'],'textRanges':null}};this[_0xe5a1bd(0x1ec)](_0x55e485);}),_0x56fd51;}};dt=Je([S(0x3,_0x279e5b(_0x5df577)),S(0x4,_0x279e5b(D)),S(0x5,_0x279e5b(_0x130ad1)),S(0x6,_0x279e5b(_0x25e6c6)),S(0x7,_0x279e5b(_0x54c94d)),S(0x8,_0x279e5b(_0x520590)),S(0x9,_0x279e5b(ke)),S(0xa,_0x279e5b(Be)),S(0xb,_0x279e5b(Mt)),S(0xc,_0x2cecb4),S(0xd,_0x5ba974),S(0xe,_0x2ac335),S(0xf,_0x4ac7e0),S(0x10,_0x4100a2(Xe))],dt);let ft=class extends We{constructor(_0x211d17,_0x25277b,_0x544a49,_0x30a71b,_0x5a6521,_0x5a2539,_0x586d54,_0x5b7bb1,_0x536146,_0x1c8c60,_0x255879,_0x3f4571,_0x17e607,_0x6eddb0){const _0x28110a=_0x3bdab3;super(_0x211d17,_0x25277b,_0x544a49,_0x30a71b,_0x5a6521,_0x5a2539,_0x586d54,_0x5b7bb1,_0x1c8c60,_0x255879,_0x3f4571,_0x17e607,_0x6eddb0),this[_0x28110a(0x227)]=_0x211d17,this['type']=_0x25277b,this['session']=_0x544a49,this[_0x28110a(0x34e)]=_0x536146;}['_createHandler'](){const _0x414e5b=_0x3bdab3,_0x4e7590=super['_createHandler']();return _0x4e7590[_0x414e5b(0x1b8)]=_0xd9e45=>this[_0x414e5b(0x34e)][_0x414e5b(0xb8)](_0xd9e45),_0x4e7590;}async['_init'](){const _0x1ea437=_0x3bdab3,_0x4d8343=await super[_0x1ea437(0x10d)]();return this[_0x1ea437(0x18d)](this[_0x1ea437(0x200)][_0x1ea437(0x386)]((_0x4b75d7,_0x482d28)=>{const _0x2d48a4=_0x1ea437;if(_0x4b75d7['type']!==_0x4ea69f[_0x2d48a4(0x350)]||_0x482d28!=null&&_0x482d28['fromCollab']||_0x482d28!=null&&_0x482d28['onlyLocal'])return;const _0x171a9e=_0x4b75d7[_0x2d48a4(0x3bd)];if((_0x171a9e==null?void 0x0:_0x171a9e[_0x2d48a4(0x13f)])!==this['unitID'])return;const _0x542d57=_0x4b75d7,_0x970f01=this[_0x2d48a4(0x355)][_0x2d48a4(0x1ef)][_0x2d48a4(0x344)](this['_compressMutationService']['interceptor'][_0x2d48a4(0x26e)]()['COMPRESS_MUTATION_SEND'])([_0x542d57],null)||[_0x542d57];this[_0x2d48a4(0x1ec)](_0x970f01[0x0]);})),_0x4d8343;}};ft=Je([S(0x3,_0x279e5b(_0x5df577)),S(0x4,_0x279e5b(D)),S(0x5,_0x279e5b(_0x130ad1)),S(0x6,_0x279e5b(_0x25e6c6)),S(0x7,_0x279e5b(_0x54c94d)),S(0x8,_0x279e5b(Ve)),S(0x9,_0x2cecb4),S(0xa,_0x5ba974),S(0xb,_0x2ac335),S(0xc,_0x4ac7e0),S(0xd,_0x4100a2(Xe))],ft);const zt=[_0x3bdab3(0x128),_0x3bdab3(0x164),_0x3bdab3(0x182),_0x3bdab3(0x301),_0x3bdab3(0x16e),_0x3bdab3(0x310)];class At extends _0x292c4b{constructor(){const _0x11a5ee=_0x3bdab3;super(...arguments),l(this,_0x11a5ee(0x160),new Map()),l(this,_0x11a5ee(0x387),0x0);}[_0x3bdab3(0x2f3)](_0x52d64b){const _0x1f3a41=_0x3bdab3;if(this[_0x1f3a41(0x160)][_0x1f3a41(0x27c)](_0x52d64b))return this[_0x1f3a41(0x160)][_0x1f3a41(0x132)](_0x52d64b);const _0x7af692=zt[this['_colorIndex']];return this[_0x1f3a41(0x387)]=(this['_colorIndex']+0x1)%zt[_0x1f3a41(0x2d9)],this[_0x1f3a41(0x160)][_0x1f3a41(0x156)](_0x52d64b,_0x7af692),_0x7af692;}}var Vn=Object[_0x3bdab3(0x162)],Wn=Object[_0x3bdab3(0x123)],Gn=(_0x4c437b,_0x373acd,_0x2e1207,_0x32801d)=>{const _0x149802=_0x3bdab3;for(var _0x19133d=_0x32801d>0x1?void 0x0:_0x32801d?Wn(_0x373acd,_0x2e1207):_0x373acd,_0x373a99=_0x4c437b[_0x149802(0x2d9)]-0x1,_0x4e59ea;_0x373a99>=0x0;_0x373a99--)(_0x4e59ea=_0x4c437b[_0x373a99])&&(_0x19133d=(_0x32801d?_0x4e59ea(_0x373acd,_0x2e1207,_0x19133d):_0x4e59ea(_0x19133d))||_0x19133d);return _0x32801d&&_0x19133d&&Vn(_0x373acd,_0x2e1207,_0x19133d),_0x19133d;},ae=(_0x4ca1ef,_0x59bd9d)=>(_0x3229cc,_0x42848a)=>_0x59bd9d(_0x3229cc,_0x42848a,_0x4ca1ef);const Yn=0x12c,Kn=0x64,Xn=()=>{let _0x239317=[],_0x1c05d2=!0x1;return _0x409b59=>{const _0x5d6895=_0x92e7;_0x239317[_0x5d6895(0x37d)](_0x409b59),_0x1c05d2||(_0x1c05d2=!0x0,setTimeout(()=>{_0x239317['forEach'](_0x344fc9=>_0x344fc9()),_0x239317=[],_0x1c05d2=!0x1;}));};};let gt=class extends _0x300f85{constructor(_0x5ca32c,_0x95a0fd,_0x525152,_0x48f1e6,_0xa74770,_0x317725,_0x115cef,_0x1806fe){const _0x5799bf=_0x3bdab3;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0x5799bf(0x12d),new _0x2fb415(new Map())),l(this,_0x5799bf(0x17d),this[_0x5799bf(0x12d)][_0x5799bf(0x267)]()),l(this,_0x5799bf(0x36e),new _0x2fb415([])),l(this,_0x5799bf(0x30d),this[_0x5799bf(0x36e)][_0x5799bf(0x19c)](_0x2e32ca(Yn))),l(this,_0x5799bf(0x173),_0x2ebe29((_0x502d00,_0x51760d)=>{const _0x5b42aa=_0x5799bf,_0x3a9b21={'eventID':_0x19dc79[_0x5b42aa(0x38e)],'data':{'unitID':this[_0x5b42aa(0x227)],'memberID':this[_0x5b42aa(0x232)][_0x5b42aa(0x14c)](),'selection':_0x329641(_0x502d00,_0x51760d[_0x5b42aa(0x34d)])}};this[_0x5b42aa(0x232)][_0x5b42aa(0x204)](_0x3a9b21,this['unitID']);},Kn)),(this[_0x5799bf(0x227)]=_0x5ca32c,this['_session']=_0x95a0fd,this[_0x5799bf(0x191)]=_0x525152,this['_colorAssignService']=_0x48f1e6,this[_0x5799bf(0x2b0)]=_0xa74770,this[_0x5799bf(0xa4)]=_0x317725,this['_commandService']=_0x115cef,this[_0x5799bf(0x22c)]=_0x1806fe);}get[_0x3bdab3(0x1b2)](){const _0x5df2ae=_0x3bdab3;return this[_0x5df2ae(0x12d)][_0x5df2ae(0x298)]();}get['roomMembers'](){const _0x2b6310=_0x3bdab3;return this[_0x2b6310(0x36e)][_0x2b6310(0x298)]();}['dispose'](){const _0x44b95e=_0x3bdab3;super[_0x44b95e(0x328)](),this[_0x44b95e(0x12d)][_0x44b95e(0x1c7)](new Map()),this[_0x44b95e(0x12d)][_0x44b95e(0x1fc)](),this[_0x44b95e(0x36e)][_0x44b95e(0x1c7)]([]),this['_roomMembers$'][_0x44b95e(0x1fc)]();}[_0x3bdab3(0x220)](){const _0x2aa18e=_0x3bdab3;this[_0x2aa18e(0x10d)]||(this[_0x2aa18e(0x10d)]=!0x0,this[_0x2aa18e(0x232)][_0x2aa18e(0x14a)][_0x2aa18e(0x19c)](_0x352c23(this['dispose$']))[_0x2aa18e(0x2b5)](_0x302f3d=>{const _0xc77e72=_0x2aa18e;_0x302f3d===_e[_0xc77e72(0x121)]?this[_0xc77e72(0xd2)]():this[_0xc77e72(0xd0)]();}),this[_0x2aa18e(0x232)][_0x2aa18e(0x126)][_0x2aa18e(0x19c)](_0x352c23(this[_0x2aa18e(0x99)]))[_0x2aa18e(0x2b5)](_0x441e57=>{const _0x2c2cc3=_0x2aa18e,_0x5a22e8=_0x441e57['eventID'];_0x5a22e8===_0x19dc79[_0x2c2cc3(0x38e)]&&this[_0x2c2cc3(0x137)](_0x441e57),_0x5a22e8===_0x19dc79['USERS_LEAVE']&&this['_onCursorDelete'](_0x441e57);}),this[_0x2aa18e(0x148)](),this[_0x2aa18e(0x18d)](this['_commandService'][_0x2aa18e(0x386)](_0x36cdba=>{const _0x136a1b=_0x2aa18e;if(this[_0x136a1b(0x314)]&&_0x36cdba['id']===_0x2a3a91['id']&&_0x36cdba[_0x136a1b(0x3bd)][_0x136a1b(0x13f)]===this[_0x136a1b(0x227)]){const _0x4fab9d=_0x36cdba[_0x136a1b(0x3bd)];this[_0x136a1b(0x173)](_0x4fab9d[_0x136a1b(0xe2)],_0x4fab9d['selections'][0x0]);}})));}[_0x3bdab3(0x137)](_0x64cbf){const _0x4f5670=_0x3bdab3;var _0x5d3594,_0x5df887;const {memberID:_0x397119,selection:_0x202cd0}=_0x64cbf[_0x4f5670(0x3ac)],{sheetName:_0x4851a2,range:_0x46555a}=_0xa7c92b(_0x202cd0),_0x35b11c={'name':(_0x5df887=(_0x5d3594=this['_memberService'][_0x4f5670(0x195)](this[_0x4f5670(0x227)],_0x397119))==null?void 0x0:_0x5d3594['name'])!=null?_0x5df887:'Unknown\x20user','range':this['_getMergeRange'](_0x4851a2,_0x46555a),'sheetID':_0x4851a2,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x397119),'selection':_0x202cd0},_0x591094=this[_0x4f5670(0x1b2)];_0x591094[_0x4f5670(0x156)](_0x397119,_0x35b11c),this[_0x4f5670(0x12d)][_0x4f5670(0x1c7)](_0x591094);}['_onCursorDelete'](_0x1f111c){const _0x5befd1=_0x3bdab3,{memberID:_0x496878}=_0x1f111c[_0x5befd1(0x3ac)],_0x460c60=this[_0x5befd1(0x1b2)];_0x460c60[_0x5befd1(0xfc)](_0x496878),this[_0x5befd1(0x12d)][_0x5befd1(0x1c7)](_0x460c60);}['_getMergeRange'](_0xc327f4,_0x4ffdf1){const _0x73f03c=_0x3bdab3;var _0x1153d8,_0x4357be;const _0x17388b=(_0x4357be=(_0x1153d8=this['_univerInstanceService'][_0x73f03c(0x3b9)](this['unitID']))==null?void 0x0:_0x1153d8[_0x73f03c(0x2e2)](_0xc327f4))==null?void 0x0:_0x4357be[_0x73f03c(0x1f3)]();return(_0x17388b==null?void 0x0:_0x17388b[_0x73f03c(0x3a0)](_0x669a79=>_0x262b85[_0x73f03c(0x257)](_0x669a79,_0x4ffdf1)))||_0x4ffdf1;}[_0x3bdab3(0x148)](){const _0x521e05=_0x3bdab3,_0x37c4f7=new _0x308b9c(),_0x4d8cde=Xn(),_0x54d3ae=()=>{const _0x341dec=_0x92e7;_0x37c4f7['dispose']();const _0x2b301d=(_0x18236b,_0x49bc2b,_0x45b05f,_0x52d673)=>{const _0x446c9c=_0x92e7;let _0x2516de=[];switch(_0x18236b['id']){case _0x1cd245[_0x446c9c(0xf5)]:{_0x2516de=_0x4b07cd(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x36f)]:{_0x2516de=_0x2a22df(_0x18236b,_0x52d673);break;}case _0x1cd245['InsertColCommandId']:{_0x2516de=_0x291d27(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x25c)]:{_0x2516de=_0x343dcb(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x2ac)]:{_0x2516de=_0xa36c52(_0x18236b,_0x52d673);break;}case _0x1cd245['InsertRowCommandId']:{_0x2516de=_0x152d72(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x133)]:{_0x2516de=_0xda0b52(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0x1e3)]:{_0x2516de=_0x321d78(_0x18236b,_0x52d673);break;}case _0x1cd245[_0x446c9c(0xdd)]:{_0x2516de=_0x3c04cd(_0x18236b,_0x52d673);break;}}const _0x473ffa=_0x4c1838(_0x2516de,_0x52d673),_0x484d49=this[_0x446c9c(0x1b2)][_0x446c9c(0x132)](_0x49bc2b);if(_0x484d49&&_0x473ffa){const _0x17b52f={..._0x484d49,'range':_0x473ffa};this[_0x446c9c(0x1b2)][_0x446c9c(0x156)](_0x49bc2b,_0x17b52f),_0x4d8cde(()=>{const _0x2960ea=_0x446c9c,_0x57518f=this['_refRangeService']['registerRefRange'](_0x473ffa,_0x394559=>(_0x57518f[_0x2960ea(0x328)](),_0x2b301d(_0x394559,_0x49bc2b,_0x45b05f,_0x473ffa)));_0x37c4f7['add'](_0x57518f);});}return{'redos':[],'undos':[]};};this[_0x341dec(0x1b2)][_0x341dec(0x2fa)]((_0x300f30,_0x4f52f6)=>{const {range:_0x474827,sheetID:_0x2a694f}=_0x300f30,_0x4354d0=this['_refRangeService']['registerRefRange'](_0x474827,_0x353c9a=>(_0x4354d0['dispose'](),_0x2b301d(_0x353c9a,_0x4f52f6,_0x2a694f,_0x474827)));_0x37c4f7['add'](_0x4354d0);});};this[_0x521e05(0x18d)](_0x439c9a(this[_0x521e05(0x12d)]['subscribe'](()=>{_0x54d3ae();})));}[_0x3bdab3(0xd2)](){const _0x19b644=_0x3bdab3;var _0x5b4ef2,_0x419221;if(this[_0x19b644(0x314)]=!0x0,((_0x5b4ef2=this[_0x19b644(0xa4)]['getFocusedUnit']())==null?void 0x0:_0x5b4ef2[_0x19b644(0x100)]())!==this[_0x19b644(0x227)])return;const _0x16ad8f=(_0x419221=this[_0x19b644(0x191)]['get'](_0x24c085)[_0x19b644(0x3a1)]())==null?void 0x0:_0x419221[0x0],_0x43151b=this[_0x19b644(0xa4)]['getCurrentUnitForType'](_0x3ba52b[_0x19b644(0x38c)])[_0x19b644(0x308)]();_0x16ad8f&&_0x43151b&&this[_0x19b644(0x173)](_0x43151b[_0x19b644(0x13c)](),_0x16ad8f);}['_toggleOffline'](){this['_online']=!0x1;}};gt=Gn([ae(0x2,_0x279e5b(_0x5df577)),ae(0x3,_0x279e5b(At)),ae(0x4,_0x279e5b(ee)),ae(0x5,_0x173bd8),ae(0x6,_0x5ba974),ae(0x7,_0x279e5b(_0x4bc4de))],gt);var Jn=Object[_0x3bdab3(0x162)],zn=Object[_0x3bdab3(0x123)],Zn=(_0x55eeb8,_0x6404f6,_0x924f62,_0x5ab018)=>{const _0xd8bbe8=_0x3bdab3;for(var _0x55d794=_0x5ab018>0x1?void 0x0:_0x5ab018?zn(_0x6404f6,_0x924f62):_0x6404f6,_0x140cb4=_0x55eeb8[_0xd8bbe8(0x2d9)]-0x1,_0xc501b8;_0x140cb4>=0x0;_0x140cb4--)(_0xc501b8=_0x55eeb8[_0x140cb4])&&(_0x55d794=(_0x5ab018?_0xc501b8(_0x6404f6,_0x924f62,_0x55d794):_0xc501b8(_0x55d794))||_0x55d794);return _0x5ab018&&_0x55d794&&Jn(_0x6404f6,_0x924f62,_0x55d794),_0x55d794;},Z=(_0x1c85f9,_0x4c06f7)=>(_0xb625d8,_0x5f0180)=>_0x4c06f7(_0xb625d8,_0x5f0180,_0x1c85f9);const qn=0x12c,Qn=0x64;let mt=class extends _0x300f85{constructor(_0x508d77,_0x396703,_0x14bb80,_0x250aa6,_0x545936,_0x473783,_0x4b5eca,_0xec841,_0x4c43b5){const _0x3ecc84=_0x3bdab3;super(),l(this,_0x3ecc84(0x314),!0x1),l(this,_0x3ecc84(0x10d),!0x1),l(this,_0x3ecc84(0x12d),new _0x2fb415(new Map())),l(this,_0x3ecc84(0x17d),this[_0x3ecc84(0x12d)][_0x3ecc84(0x267)]()),l(this,_0x3ecc84(0x36e),new _0x2fb415([])),l(this,'roomMembers$',this[_0x3ecc84(0x36e)][_0x3ecc84(0x19c)](_0x2e32ca(qn))),l(this,_0x3ecc84(0x173),_0x2ebe29(_0x1be18b=>{const _0x50d496=_0x3ecc84,_0x560223={'eventID':_0x19dc79[_0x50d496(0x38e)],'data':{'unitID':this[_0x50d496(0x227)],'memberID':this['_session'][_0x50d496(0x14c)](),'selection':Ts(_0x1be18b)}};this[_0x50d496(0x232)]['send'](_0x560223,this[_0x50d496(0x227)]);},Qn)),(this[_0x3ecc84(0x227)]=_0x508d77,this[_0x3ecc84(0x232)]=_0x396703,this[_0x3ecc84(0x191)]=_0x14bb80,this[_0x3ecc84(0xf9)]=_0x250aa6,this[_0x3ecc84(0x2b0)]=_0x545936,this[_0x3ecc84(0x213)]=_0x473783,this[_0x3ecc84(0x2ef)]=_0x4b5eca,this[_0x3ecc84(0xa4)]=_0xec841,this[_0x3ecc84(0x200)]=_0x4c43b5);}get[_0x3bdab3(0x1b2)](){const _0x5c5946=_0x3bdab3;return this[_0x5c5946(0x12d)][_0x5c5946(0x298)]();}get['roomMembers'](){const _0x34a8ac=_0x3bdab3;return this[_0x34a8ac(0x36e)]['getValue']();}[_0x3bdab3(0x328)](){const _0x479afa=_0x3bdab3;super[_0x479afa(0x328)](),this[_0x479afa(0x12d)][_0x479afa(0x1c7)](new Map()),this[_0x479afa(0x12d)]['complete'](),this[_0x479afa(0x36e)][_0x479afa(0x1c7)]([]),this[_0x479afa(0x36e)][_0x479afa(0x1fc)]();}[_0x3bdab3(0x220)](){const _0x41e3c2=_0x3bdab3;this[_0x41e3c2(0x10d)]||(this[_0x41e3c2(0x10d)]=!0x0,this[_0x41e3c2(0x232)][_0x41e3c2(0x14a)][_0x41e3c2(0x19c)](_0x352c23(this[_0x41e3c2(0x99)]))[_0x41e3c2(0x2b5)](_0xd34c4d=>{const _0x4e1773=_0x41e3c2;_0xd34c4d===_e[_0x4e1773(0x121)]?this[_0x4e1773(0xd2)]():this[_0x4e1773(0xd0)]();}),this['_session'][_0x41e3c2(0x126)]['pipe'](_0x352c23(this[_0x41e3c2(0x99)]))[_0x41e3c2(0x2b5)](_0x3057cd=>{const _0x1d7ba5=_0x41e3c2,_0x6ad486=_0x3057cd['eventID'];_0x6ad486===_0x19dc79[_0x1d7ba5(0x38e)]&&this[_0x1d7ba5(0x137)](_0x3057cd),_0x6ad486===_0x19dc79['USERS_LEAVE']&&this[_0x1d7ba5(0x1f7)](_0x3057cd);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2a7ea5=>{const _0x9c9ac9=_0x41e3c2,_0x3f4f2e=_0x2a7ea5[_0x9c9ac9(0x3bd)];_0x3f4f2e!=null&&this[_0x9c9ac9(0x314)]&&_0x2a7ea5['id']===_0x3c0d3c['id']&&_0x3f4f2e[_0x9c9ac9(0x13f)]===this[_0x9c9ac9(0x227)]&&_0x3f4f2e['isEditing']===!0x1&&this[_0x9c9ac9(0x173)](_0x3f4f2e['ranges']);})),this['_syncEditingCollabCursorService'][_0x41e3c2(0x2a0)][_0x41e3c2(0x19c)](_0x352c23(this[_0x41e3c2(0x99)]))[_0x41e3c2(0x2b5)](_0x168e00=>{const _0x5b6994=_0x41e3c2;if((_0x168e00==null?void 0x0:_0x168e00[_0x5b6994(0x227)])!==this[_0x5b6994(0x227)])return;const _0x30b6e7={'eventID':_0x19dc79[_0x5b6994(0x38e)],'data':_0x168e00};this[_0x5b6994(0x137)](_0x30b6e7);}),this[_0x41e3c2(0x18d)](this[_0x41e3c2(0x200)]['onCommandExecuted'](_0x5ee84b=>{const _0x2aa525=_0x41e3c2;if(_0x5ee84b[_0x2aa525(0x3bd)]==null)return;const _0x19b665=_0x5ee84b[_0x2aa525(0x3bd)];if(_0x5ee84b['id']!==_0xe7b6e2['id']||_0x19b665[_0x2aa525(0x13f)]!==this[_0x2aa525(0x227)])return;const _0x3100d8={'id':_0x2aa525(0x22b),'params':_0x19b665},_0x329bde=this['cursorInfo'];for(const [_0x433e87,_0x3c6e06]of _0x329bde){const _0x3eac33={'id':_0x2aa525(0x22b),'params':{'unitId':this[_0x2aa525(0x227)],'actions':null,'textRanges':_0x3c6e06['ranges']}},_0xb9190d=this[_0x2aa525(0x2ef)][_0x2aa525(0x18e)](_0x3100d8,_0x3eac33,!0x1);if(_0x3295bd(_0xb9190d))throw _0xb9190d[_0x2aa525(0x127)];_0x329bde[_0x2aa525(0x156)](_0x433e87,{..._0x3c6e06,'ranges':_0xb9190d[_0x2aa525(0x32f)][_0x2aa525(0x3bd)][_0x2aa525(0x254)]});}queueMicrotask(()=>{const _0x2374de=_0x2aa525;this['_cursorInfo$'][_0x2374de(0x1c7)](_0x329bde);});})));}['_onCursorUpdate'](_0x5ae41d){const _0x405954=_0x3bdab3;var _0x10087e,_0x5aef0c;const {memberID:_0x1ff6bc,selection:_0x5df1b8}=_0x5ae41d[_0x405954(0x3ac)],_0x242194=An(_0x5df1b8),_0x51aa9c=(_0x5aef0c=(_0x10087e=this[_0x405954(0x2b0)]['getMember'](this['unitID'],_0x1ff6bc))==null?void 0x0:_0x10087e[_0x405954(0x394)])!=null?_0x5aef0c:_0x405954(0x32a),_0x168567={'color':this[_0x405954(0xf9)][_0x405954(0x2f3)](_0x1ff6bc),'name':_0x51aa9c,'ranges':_0x242194},_0x4cf57e=this[_0x405954(0x1b2)];_0x4cf57e[_0x405954(0x156)](_0x1ff6bc,_0x168567),this[_0x405954(0x12d)][_0x405954(0x1c7)](_0x4cf57e);}[_0x3bdab3(0x1f7)](_0x1d1d94){const _0x707235=_0x3bdab3,{memberID:_0x2c9ae9}=_0x1d1d94[_0x707235(0x3ac)],_0x1bf7d5=this[_0x707235(0x1b2)];_0x1bf7d5[_0x707235(0xfc)](_0x2c9ae9),this[_0x707235(0x12d)][_0x707235(0x1c7)](_0x1bf7d5);}[_0x3bdab3(0xd2)](){const _0x38959b=_0x3bdab3;var _0x423e25;if(this['_online']=!0x0,((_0x423e25=this[_0x38959b(0xa4)][_0x38959b(0x289)]())==null?void 0x0:_0x423e25[_0x38959b(0x100)]())!==this[_0x38959b(0x227)])return;const _0x445ec9=this['_injector'][_0x38959b(0x132)](_0x23f9d5)[_0x38959b(0x3a1)](),_0x3543bc=_0x445ec9==null?void 0x0:_0x445ec9['map'](_0x53dc05);Array[_0x38959b(0x2c1)](_0x3543bc)&&_0x3543bc[_0x38959b(0x2d9)]>0x0&&this[_0x38959b(0x173)](_0x3543bc);}[_0x3bdab3(0xd0)](){const _0x5f3fb4=_0x3bdab3;this[_0x5f3fb4(0x314)]=!0x1;}};mt=Zn([Z(0x2,_0x279e5b(_0x5df577)),Z(0x3,_0x279e5b(At)),Z(0x4,_0x279e5b(ee)),Z(0x5,_0x279e5b(Mt)),Z(0x6,_0x539a09),Z(0x7,_0x173bd8),Z(0x8,_0x5ba974)],mt);var er=Object[_0x3bdab3(0x162)],tr=Object['getOwnPropertyDescriptor'],sr=(_0xff6ef7,_0xfa4137,_0x1872bd,_0x395967)=>{const _0x584101=_0x3bdab3;for(var _0x316d17=_0x395967>0x1?void 0x0:_0x395967?tr(_0xfa4137,_0x1872bd):_0xfa4137,_0x3a893d=_0xff6ef7[_0x584101(0x2d9)]-0x1,_0x4e6f3c;_0x3a893d>=0x0;_0x3a893d--)(_0x4e6f3c=_0xff6ef7[_0x3a893d])&&(_0x316d17=(_0x395967?_0x4e6f3c(_0xfa4137,_0x1872bd,_0x316d17):_0x4e6f3c(_0x316d17))||_0x316d17);return _0x395967&&_0x316d17&&er(_0xfa4137,_0x1872bd,_0x316d17),_0x316d17;},st=(_0x1c3d6a,_0x220179)=>(_0x4d0dc5,_0x3d9fd9)=>_0x220179(_0x4d0dc5,_0x3d9fd9,_0x1c3d6a);let ue=class extends _0x300f85{constructor(_0x313390,_0x481518,_0x2ad179){const _0x524842=_0x3bdab3;super(),l(this,_0x524842(0x255),new Map()),l(this,_0x524842(0x390),new _0x4a8f66()),(this[_0x524842(0xa4)]=_0x313390,this[_0x524842(0x191)]=_0x481518,this['_collabSessionService']=_0x2ad179,this[_0x524842(0x10d)]());}['dispose'](){const _0x30ec10=_0x3bdab3;super[_0x30ec10(0x328)](),this[_0x30ec10(0x390)][_0x30ec10(0x1fc)](),this[_0x30ec10(0x255)][_0x30ec10(0x2fa)](_0xadc954=>_0xadc954[_0x30ec10(0x328)]());}[_0x3bdab3(0x299)](_0x357466){const _0x5005c4=_0x3bdab3;return this[_0x5005c4(0x255)][_0x5005c4(0x27c)](_0x357466)?this[_0x5005c4(0x255)]['get'](_0x357466)[_0x5005c4(0x17d)]:this[_0x5005c4(0x390)][_0x5005c4(0x19c)](_0x1402ad(_0x5411c9=>_0x5411c9['unitID']===_0x357466),_0x659f37(_0x427217=>_0x427217[_0x5005c4(0x17d)]));}['_init'](){const _0x27e4d3=_0x3bdab3;this[_0x27e4d3(0xa4)]['getTypeOfUnitAdded$'](_0x3ba52b[_0x27e4d3(0x38c)])[_0x27e4d3(0x19c)](_0x352c23(this[_0x27e4d3(0x99)]))[_0x27e4d3(0x2b5)](async _0x4cc720=>{const _0x198e7f=_0x27e4d3,_0x39a2fe=_0x4cc720['getUnitId'](),_0x4feed2=await this['_startSheetCollabCursor'](_0x39a2fe);this[_0x198e7f(0x390)]['next'](_0x4feed2),this[_0x198e7f(0x255)][_0x198e7f(0x156)](_0x39a2fe,_0x4feed2);}),this[_0x27e4d3(0xa4)][_0x27e4d3(0x322)](_0x3ba52b[_0x27e4d3(0x1a4)])[_0x27e4d3(0x19c)](_0x352c23(this[_0x27e4d3(0x99)]))['pipe'](_0x1402ad(_0x278dac=>!_0x278dac[_0x27e4d3(0x100)]()[_0x27e4d3(0x1ea)]('__')))[_0x27e4d3(0x2b5)](async _0x6ff4f2=>{const _0x21ea74=_0x27e4d3,_0x33e82d=_0x6ff4f2[_0x21ea74(0x100)](),_0x2f0ff2=await this[_0x21ea74(0x142)](_0x33e82d);this[_0x21ea74(0x390)][_0x21ea74(0x1c7)](_0x2f0ff2),this[_0x21ea74(0x255)]['set'](_0x33e82d,_0x2f0ff2);}),_0x1ddc59(this[_0x27e4d3(0xa4)]['getTypeOfUnitDisposed$'](_0x3ba52b[_0x27e4d3(0x1a4)]),this[_0x27e4d3(0xa4)][_0x27e4d3(0x236)](_0x3ba52b[_0x27e4d3(0x38c)]))[_0x27e4d3(0x19c)](_0x352c23(this[_0x27e4d3(0x99)]))[_0x27e4d3(0x2b5)](_0x21b184=>{const _0x5c7009=_0x27e4d3,_0x5d1692=_0x21b184['getUnitId'](),_0x123ea9=this[_0x5c7009(0x255)]['get'](_0x5d1692);_0x123ea9&&(_0x123ea9[_0x5c7009(0x328)](),this['_entities'][_0x5c7009(0xfc)](_0x5d1692));});}async[_0x3bdab3(0x10c)](_0x2c28f0){const _0x20d4a2=_0x3bdab3,_0x2fc84a=await this['_collabSessionService']['requireSession'](_0x2c28f0),_0x5b43b7=this['_injector'][_0x20d4a2(0x2c9)](gt,_0x2c28f0,_0x2fc84a);return _0x5b43b7[_0x20d4a2(0x220)](),_0x5b43b7;}async[_0x3bdab3(0x142)](_0x285eb3){const _0x55447c=_0x3bdab3,_0x2fb440=await this[_0x55447c(0x33a)][_0x55447c(0x276)](_0x285eb3),_0xaa257f=this[_0x55447c(0x191)][_0x55447c(0x2c9)](mt,_0x285eb3,_0x2fb440);return _0xaa257f[_0x55447c(0x220)](),_0xaa257f;}};ue=sr([_0x516125(_0x3c792f[_0x3bdab3(0x335)],ue),st(0x0,_0x173bd8),st(0x1,_0x279e5b(_0x5df577)),st(0x2,_0x279e5b(Re))],ue);const Oe=0x14,Zt=0xc8,it=0x4,ir=0x5;function nr(_0x4321b5,_0x18f17d){const _0x4b3fc7=_0x3bdab3;let {radius:_0x494b7b,width:_0x269b50,height:_0x1d1701}=_0x18f17d;_0x494b7b=_0x494b7b!=null?_0x494b7b:0x0,_0x269b50=_0x269b50!=null?_0x269b50:0x1e,_0x1d1701=_0x1d1701!=null?_0x1d1701:0x1e;let _0x55af7e=0x0,_0x148e94=0x0,_0x1222ea=0x0;_0x55af7e=_0x148e94=_0x1222ea=Math[_0x4b3fc7(0x2b7)](_0x494b7b,_0x269b50/0x2,_0x1d1701/0x2),_0x4321b5[_0x4b3fc7(0x9b)](),_0x4321b5[_0x4b3fc7(0x1b9)](_0x55af7e,0x0),_0x4321b5[_0x4b3fc7(0x34c)](_0x269b50-_0x148e94,0x0),_0x4321b5[_0x4b3fc7(0xcb)](_0x269b50-_0x148e94,_0x148e94,_0x148e94,Math['PI']*0x3/0x2,0x0,!0x1),_0x4321b5[_0x4b3fc7(0x34c)](_0x269b50,_0x1d1701-_0x1222ea),_0x4321b5[_0x4b3fc7(0xcb)](_0x269b50-_0x1222ea,_0x1d1701-_0x1222ea,_0x1222ea,0x0,Math['PI']/0x2,!0x1),_0x4321b5[_0x4b3fc7(0x34c)](0x0,_0x1d1701),_0x4321b5[_0x4b3fc7(0x34c)](0x0,_0x55af7e),_0x4321b5[_0x4b3fc7(0xcb)](_0x55af7e,_0x55af7e,_0x55af7e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4321b5['closePath'](),_0x18f17d[_0x4b3fc7(0x110)]&&(_0x4321b5[_0x4b3fc7(0x143)](),_0x4321b5[_0x4b3fc7(0x16c)]=_0x18f17d[_0x4b3fc7(0x110)],_0x18f17d['fillRule']===_0x4b3fc7(0x286)?_0x4321b5[_0x4b3fc7(0x110)](_0x4b3fc7(0x286)):_0x4321b5[_0x4b3fc7(0x110)](),_0x4321b5['restore']());}function _0x25d0(){const _0xd343da=['unitID','getScrollXYByRelativeCoords','ensureActiveSheet','values','doc.mutation.rich-text-editing','_refRangeService','rev','_handleLeaveEvent','getCollabEntity','memberID','_updateCollabCursors','_session','/block/','editingUnit','localeService','getTypeOfUnitDisposed$','_replayCachedMutations','[UniverCollaborationClientPlugin]','_waitCount','awaitingChangeset','debug','...','close$','INGEST','onlineStatusTitle','unshift','session.will-retry','_socketService','LEAVE','_drawAnchor','slice','getCurrentUser','restore','state$','VIEW_MAIN','csAckEvent','_tryEnsureSocket','getTime','univerjs-icon\x20univerjs-icon-','executeCommand','currentTheme$','_sendHeartbeatTimer','_clearHeartbeatTimer','[PendingState]:\x20received\x20acknowledgement.','urlChange$','textRanges','_entities','INTERNAL_ERROR','contains','getActiveRange','onSendChangeset','_name','/fetchmissing?from=','InsertRangeMoveDownCommandId','objectActions','_socketReady','translate(.97)','_id','_docSyncEditingCollabCursorService','ERROR_EXCEED_SIZE','AWAITING','enableLocalCache','enableOfflineEditing','APPLY_PERMISSION_DENIED','asObservable','random','listRoles','[CollaborationSession]','UUID','univer-online-status-title','_localeService','getInterceptPoints','_clearCollaborationTimeoutTimer','show','onlineStatusIcon','substring','session','loadSheet','univer-online-status-icon','requireSession','collabStatus.fetchMiss','252zshipC','displayName','currentColor','skeleton','has','image/jpeg','/new_changes','_sessionStatus$','submit\x20changeset\x20error!','_onCombEvent','unit-cache-','_transformSelections','JOINING','width','evenodd','_getSheetObject','synced','getFocusedUnit','1313228jbmVDJ','_getRedoStack','createSocket','_startCollaboration','_snapshotServerService','_saveTaskMap','303864AfaZQi','/role','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','1739436piNeMT','COLLAB_WEB_SOCKET_URL','mutations','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getRoom','getValue','getCollabCursors$','_remoteChangesetQueue','measureText','SYNCED','resend','offline','collabStatus.offline','collabCursorState$','[SyncedState]:\x20received\x20acknowledgement.','liveShareOperation','LIVESHARE_FETCH_OPERATIONS','LICENSE_MAX_UNITS_EXCEEDED','loadOfflineData','children','[CollaborationSessionService]:\x20socket\x20error','_awaitingChangeset','transformByState','_hideTimer','sheetID','InsertRangeMoveRightCommandId','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','_acknowledgedAwaitingChangeset','_scheduleReconnection','_memberService','collabStatus.synced','PERMISSION_DENIED','CHANGESET_ACK','_transformIMECache','subscribe','collaboratorID','min','\x20in\x20_schedule.','leaveEvent','members','colorChannel1','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearUndo','_handleHeartbeatEvent','onTransformRemoteChangesetByIMECache','_docStateChangeManagerService','isArray','updateCursorEvent','SNAPSHOT_INVALID_SNAPSHOT','makeDirty','OTHER_CLIENTS_EDITING','_eventUnsubscribe','_messageService','from','createInstance','_getSaveTimeout','registerOnClose','_hovered','transformMutationsWithChangeset','_docSkeleton','_disableEditing','_getCurrentRevision','image/gif','sheetId','CHANGESET_REVISION_CONFILICT','UNKNOWN_CMD','_initStatusListener','JOIN','_uiPartsService','_getScale','length','focused$','_updateState','\x0aAfter:\x20','_sheetSkeletonManagerService','m1Prime','fetching\x20missing\x20changesets\x20from\x20','/-/object/list','getImage','getSheetBySheetId','_executeRemoteChangeset','loadDoc','_collabCursorController','disableLocalCache','APPLY_REJECT','_shapes','_getAPIPrefixPath','toString','_createInitialState','type','drawWith','&to=','_transformService','unknown','use','ERROR_IMAGE','assignAColorForMemberID','fillText','message$','_renderManagerService','/resources','clear','fetch_missing','forEach','_unitOnClients','NEW_CHANGESETS','UNRECOGNIZED','FileId','_setupSubUnitSync','top','red300','title','actions','string','text','[FetchMissState]','c1Prime','getActiveSheet','connection\x20error','infoRsp','collaborationUniverTypes','LIVESHARE_NEW_HOST','roomMembers$','/universer-api/stream/file/upload','transformUndoRedo','gold400','_initModules','_state','reject','_online','addImageSourceCache','size','sessionStatus','image/png','OffLineSingle','onMissedChangesetFetched','getImageSourceCache','syncEditingCollabCursor','[DataLoaderController]','_draw','_HTTPService','_getDocObject','Univer','getTypeOfUnitAdded$','_docTransformIMECacheService','0\x200\x2016\x2016','HEARTBEAT','1359866QOoUcY','onRemoteChangeset','dispose','replace','Unknown\x20user','{fileID}','awaiting','_localStorageService','replaceTextRanges','m2Prime','0\x200\x2017\x2016','findNodePositionByCharIndex','parse','getParam','_localCacheService','Starting','UniverIcon','isPermissionRej','UNAUTHENTICATED','startRow','_collabSessionService','UNDEFINED','off-line-single_clip0_910_343','_range','href','[PendingState]:\x20received\x20rejection.','_getAnchorBounding','selection','snapshot','popstate','fetchThroughInterceptors','addEventListener','socketService','ACTIVE_UNIT_EVENT_CHANNEL','endColumn','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','close','subunit','lineTo','range','_sheetTransformSelectionsService','M0\x200H16V16H0z','MUTATION','currentSkeleton$','sheets','univer-pro.collaboration-client-socket-service','rgba(255,\x20255,\x20255,\x200.01)','_compressMutationService','Ready','/universer-api/snapshot','failed\x20to\x20apply\x20missed\x20changesets!','_change$','_singleActiveUnitService','_imageSourceCache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','getViewport','#fff','LICENSE_EXPORT_SIZE_EXCEEDED','COMPLETION_FINISHED','_onUserLeave','_lockTransition','_loadDoc','APPLY_NON_SEQUENTIAL_REVISION','activeSheet$','_state$','_initStatusComponent','saveSnapshot','div','_selfUnitIDs','clipPath','idSuffix','state','_roomMembers$','DeleteRangeMoveUpCommandId','setShapeProps','createElement','UNIVER_SLIDE','url(#on-line-single_clip0_910_349)','_color','/universer-api/comb','?size=','collabStatus.syncing','_clearTimeoutTimer','registerHTTPInterceptor','OFFLINE','_getUploadFileURL','_type','push','_handler','transformStack\x20failed!','_handleEvent','_undoRedoService','_scheduleCollaborationTimeoutTimer','setCurrentUser','getConfig','patch','onCommandExecuted','_colorIndex','objects','_scheduleHeartbeat','_transformUndoredo','_retryCount','UNIVER_SHEET','11558622ccGiMi','UPDATE_CURSOR','[CollaborationEntity]','_entityInit$','/unit/','path','hovered','name','SUBMIT_CHANGESET','HEARTBEAT_INTERVAL','baseRev','_roomMembers','tag','unsubscribe','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','extend','registerBeforeClose','onPointerEnterObserver','black','find','getSelections','17180420fypTtt','_decreaseWaiting','c2Prime','PERMISSION_REJ','INVALID_ARGUMENT','create','socket\x20open.','_transformUndoRedoStack','_getUndoStack','1em','data','error$','hasOwnProperty','encode','routeKey','_disabled','APPLY_REVISION_CONFILICT','getCurrentRevForDocument','3qCmapA','MSG_FOR_ERROR','Steady','/object/','color','getUniverSheetInstance','/universer-api/file/{fileID}/sign-url','getOwnPropertySymbols','map','params','_socket','searchParams','getUndoRedoMutationParamsCache','_status$','triggerDblclick','\x20to\x20','changesets','univer-online-status','dispose$','UNIVER_UNKNOWN','beginPath','setParam','_permissionService','?url=','indexOf','_collaborationController','_syncEditingCollabCursor','/collaborator','_incrementRevisionNumber','_univerInstanceService','PSEUDO_FETCH_MISSING_RESULT','[OfflineState]:\x20received\x20changeset.','_anchorDot','_unitStatus','_transformStack','onSyncEditingCollabCursor','/rev/','_docTransformSelectionsService','endRow','_removeCollabCursors','SUCCUSS','_textBubble','_updateURLWithCurrentState','_redoStacks','updatePermissionPoint','[CollaborationSessionService]','addObject','json','pauseCollaboration','transformSelections','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_getSendChangesetTimeout','onPointerMoveObserver','conflict.title','_getLoginPath','_isPermissionRej','UNKNOWN_CODE','newCsEvent','setActiveRange','_scheduleSaving','NOT_FOUND','_unitId','USERS_ENTER','onRemoteAck','post','stringify','[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.','CHANGESET_REJ','arc','then','USERS_LEAVE','collaborators','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_toggleOffline','enableAuthServer','_toggleOnline','pending','eventID','transformRemoteChangeset','_substituteRedoStack','_onRecvEvent','FETCH_MISSING','LIVESHARE_OPERATION','_clearScheduledTask','_handleJoinEvent','session.room-full','RemoveRowCommandId','_transitionLocked','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','removeMember','_updateStatus','subUnitId','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationState]:\x20apply\x20error!','defs','_getAPIPrefix','[CollaborationUndoRedoService]','_transformRemoteChangesetByIMECache','_onJoinRoomEvent','conflict.content','_scheduleClearOtherTimer','_saveCache','_updateLocalCache','_onConnectionOpen','FromArray','body','_lastPointer','saveImage','key','_cursors','DeleteRangeMoveLeftCommandId','_notificationService','SEND_CHANGESET_TIMEOUT','unit','_colorAssignService','url','_waitForHeartbeatResponse','delete','row','getCurrent','_collaborationPaused','getUnitId','_onFetchMissResult','onload','HEADER_MENU','_http','collaMsg','_joinRoom','saveOfflineData','storage','8370362jjphzI','collab-text-anchor-','split','_startSheetCollabCursor','_init','_removeClearOtherTimer','_socketMessageSubscription','fill','fetchMissingChangesets','flatMap','_onConflict','_transformPreviousActiveRange','_queuedRemoteChangesets','assign','_unlockTransition','_revisionService','none','collabStatus.notCollab','toggleOffline','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','src','LIVESHARE_REQUEST_HOST','FETCH_MISS','originalMeta','ONLINE','entries','getOwnPropertyDescriptor','updateOfflineData','apply','event$','error','purple300','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','prototype','save\x20fail\x20reason\x20is\x20','icon','_cursorInfo$','_heartbeatTimer','LICENSE_IMPORT_SIZE_EXCEEDED','_onMessage','_clearRedo','get','MoveRangeCommandId','PENDING','/universer-api/snapshot/','_sendingTimer','_onCursorUpdate','url(#off-line-single_clip0_910_343)','_urlService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_userManagerService','getSheetId','Warning','joinEvent','unitId','_logService','catch','_startDocCollabCursor','save','RECV','column','transform','_setupBeforeClosingHandler','_onRefRangeChange','getCollabEntity$','sessionStatus$','_cursor','getMemberID','_pendingMutations','[OfflineState]:\x20received\x20rejection.','_scheduleTimestamp','_substituteUndoStack','session.connection-failed','onPointerLeaveObserver','SNAPSHOT_URL_KEY','off-line-single','_httpService','set','_onRemoteRejected','_getCtorByUniverType','_removeRoom','liveShareNewHost','onMouseMove','NOT_COLLAB','encodeURIComponent','_timeoutTimer','collabStatus.conflict','_assignedColors','incrementRevForDocument','defineProperty','_clearLocalCache','jiqing500','FAIL','getUnitOnRev','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onConnectionFailed','getUnitStatus$','disposeUnit','_onUserJoin','fillStyle','getRangePointData','blue400','EXCHANGE_SIGN_URL_SERVER_URL_KEY','TOO_MANY_REQUESTS','workbook','setItem','_updateLocalCursor','with','getSheetBlock','_loadSheet','_sessions','_anchor','onRemoteRej','deleteCollaborator','LIVESHARE_TERMINATE','open$','cursorInfo$','onlineStatus','appendMutation','objectType','resolve','verdancy600','removeParam','xlink:href','#FFF','status','objectID','_send','toggleOnline','getCellPositionByOffset','allowed','_fetchMissChangesets','disposeWithMe','transformMutation','_collaborationTimeoutTimer','HELLO','_injector','_rescheduleHeartbeatEvent','pushState','_snapshotService','getMember','COMPRESS_MUTATION_APPLY','clearInterval','_members','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','csRejEvent','docStateChange$','pipe','history','CONFLICT','BASE64','revision','getCurrentUnitForType','AWAITING_WITH_PENDING','_exhaustRemoteChangesetQueue','UNIVER_DOC','location','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','collaboration-client.offline-data-not-saved','permission.content','\x20-\x20','newValue','concat','updateMember','deepClone','_replaceFileID','_checkMissing','_cachedData','setTimeout','cursorInfo','clearTimeout','propertyIsEnumerable','/universer-api/authz','round','roles','onTransformSelections','moveTo','_showConflictNotification','includes','reduce','_configService','getOffsetConfig','ws://127.0.0.1:8000/universer-api/comb/connect','transformChangesets','resourceIDs','_event$','hide','ALREADY_EXISTS','compose','_createInitialStateImpl','next','IDLE','addObjects','_socket$','Error','not_collab','putCollaborators','_docSkeletonManagerService','function','_createHandler','image/jpg','confirm','_render','svg','_themeService','_config','_getSnapshotAPIPrefix','_onRemoteChangeset','batchAllowed','_schedule','onTransformIME','permissionRejEvent','override','replaceState','_submitChangeset','_beforeCloseService','conflict','call','RemoveColCommandId','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','defIds','_createSocket','image/bmp','getRenderById','saveChangeset','startsWith','_labelPosition','_onLocalMutation','auth.needGotoLoginAlert','5ijbLJv','interceptor','_applyRemoteChangeset','onStarting','_scene','getMergeData','symbol','isActive','/-/object/-/batch_allowed','_onCursorDelete','listCollaborators','collaboration.single-unit.warning','transformIMECache','LOCAL_CACHE_INTERVAL','complete','_updateSubUnitFromURLParams','_drawRange','HEARTBEAT_TIMEOUT','_commandService','append','_unitID','getUnitType','send','bottom','generateRandomId','_retryConnectingTimer','SNAPSHOT_HAS_BEEN_REMOVED','attrs','updateCollaborator','YUUMI_UNABLE_LOAD_URL','result','add','SNAPSHOT_SERVER_URL_KEY','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_exhaustSavingTask','YUUMI_URL_COL_OUT_OF_RANGE','on-line-single_clip0_910_349','_syncEditingCollabCursorService','NO_OTHER_CLIENTS_EDITING','_collabCursorState$','height','univer-pro.collaboration-client.single-active-unit-service','selections','LICENSE_DISTRO_REJECTED','getAncestorScale','status$','_hover','_sendHeartbeat','_ws','/object','init','_ensureSubject','CONNECTOR_DATA_TOO_LARGE','userID','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','cmd','_clearOtherTimers'];_0x25d0=function(){return _0xd343da;};return _0x25d0();}class ze extends _0x1c658f{constructor(_0xfcf870,_0x53a6f4){const _0x251259=_0x3bdab3;super(_0xfcf870,_0x53a6f4),l(this,_0x251259(0x3b8)),l(this,_0x251259(0x305)),(this['color']=_0x53a6f4==null?void 0x0:_0x53a6f4['color'],this[_0x251259(0x305)]=_0x53a6f4==null?void 0x0:_0x53a6f4[_0x251259(0x305)]);}static[_0x3bdab3(0x2ed)](_0x446f7f,_0x13795f){const _0x1f533a=_0x3bdab3,{text:_0x4b9cdd,color:_0x51289c}=_0x13795f;_0x446f7f[_0x1f533a(0x143)](),_0x446f7f['font']=_0x1f533a(0x199);const _0x5d8e95=_0x446f7f[_0x1f533a(0x29b)](_0x4b9cdd)[_0x1f533a(0x285)],_0x554029=Math['min'](_0x5d8e95+0x2*it,Zt);nr(_0x446f7f,{'height':Oe,'radius':0x4,'width':_0x554029,'fill':_0x51289c,'evented':!0x1}),_0x446f7f[_0x1f533a(0x16c)]=_0x1f533a(0x185);const _0x1aa069=it,_0x2b9db6=Oe-ir,_0x33e152=Zt-0x2*it;if(_0x5d8e95>_0x33e152){let _0x31cfa4='',_0x44a954=0x0;for(const _0x29e764 of _0x4b9cdd){const _0x4a3941=_0x446f7f[_0x1f533a(0x29b)](_0x29e764)[_0x1f533a(0x285)];if(_0x44a954+_0x4a3941<=_0x33e152-_0x446f7f['measureText'](_0x1f533a(0x23c))[_0x1f533a(0x285)])_0x31cfa4+=_0x29e764,_0x44a954+=_0x4a3941;else{_0x31cfa4+=_0x1f533a(0x23c);break;}}_0x446f7f['fillText'](_0x31cfa4,_0x1aa069,_0x2b9db6);}else _0x446f7f[_0x1f533a(0x2f4)](_0x4b9cdd,_0x1aa069,_0x2b9db6);_0x446f7f[_0x1f533a(0x247)]();}[_0x3bdab3(0x31e)](_0x53b478){const _0x52cc3d=_0x3bdab3;ze[_0x52cc3d(0x2ed)](_0x53b478,this);}}const rr=0x1,or=1.5;class ar extends _0x1c658f{constructor(_0x5c172a,_0x4fa0d1){const _0x10be39=_0x3bdab3;super(_0x5c172a,_0x4fa0d1),l(this,_0x10be39(0x374)),l(this,_0x10be39(0x2cc),!0x1),l(this,_0x10be39(0x33d)),l(this,_0x10be39(0x25a),''),l(this,_0x10be39(0x1eb),_0x10be39(0x300)),(_0x4fa0d1&&this[_0x10be39(0x370)](_0x4fa0d1),this['onPointerEnterObserver'][_0x10be39(0x20d)](()=>this[_0x10be39(0x370)]({'hovered':!0x0})),this[_0x10be39(0x152)][_0x10be39(0x20d)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3bdab3(0x370)](_0x3aff1d){const _0x59c659=_0x3bdab3;var _0x2cd15f,_0xaa2993,_0x37d0e7,_0xa4a7f4,_0x195feb;this[_0x59c659(0x374)]=(_0x2cd15f=_0x3aff1d[_0x59c659(0x3b8)])!=null?_0x2cd15f:this['_color'],this[_0x59c659(0x2cc)]=(_0xaa2993=_0x3aff1d[_0x59c659(0x393)])!=null?_0xaa2993:this[_0x59c659(0x2cc)],this[_0x59c659(0x33d)]=(_0x37d0e7=_0x3aff1d[_0x59c659(0x34d)])!=null?_0x37d0e7:this[_0x59c659(0x33d)],this[_0x59c659(0x25a)]=(_0xa4a7f4=_0x3aff1d[_0x59c659(0x394)])!=null?_0xa4a7f4:this[_0x59c659(0x25a)],this[_0x59c659(0x1eb)]=(_0x195feb=_0x3aff1d['labelPosition'])!=null?_0x195feb:this['_labelPosition'],this[_0x59c659(0x2a9)]({'width':_0x3aff1d[_0x59c659(0x285)],'height':_0x3aff1d['height']});}['onMouseMove'](_0x399302){const _0x587e83=_0x3bdab3,{row:_0x2a32e7,column:_0x3bd8f0}=_0x399302;if(_0x2a32e7>=this[_0x587e83(0x33d)][_0x587e83(0x339)]&&_0x2a32e7<=this[_0x587e83(0x33d)][_0x587e83(0xad)]&&_0x3bd8f0>=this['_range']['startColumn']&&_0x3bd8f0<=this['_range'][_0x587e83(0x348)]){this[_0x587e83(0x370)]({'hovered':!0x0});return;}this[_0x587e83(0x370)]({'hovered':!0x1});}[_0x3bdab3(0x95)](_0x2eaf12){return!0x1;}[_0x3bdab3(0x31e)](_0x3cb1b1){const _0x1d597e=_0x3bdab3;_0x11ad62[_0x1d597e(0x2ed)](_0x3cb1b1,{'width':this['width'],'height':this[_0x1d597e(0x216)],'strokeWidth':or,'stroke':this[_0x1d597e(0x374)],'evented':!0x1}),this['_hovered']&&(_0x3cb1b1['save'](),_0x3cb1b1[_0x1d597e(0x146)](0x1,0x0,0x0,0x1,this[_0x1d597e(0x285)],this[_0x1d597e(0x1eb)]===_0x1d597e(0x205)?0x0:-Oe),ze[_0x1d597e(0x2ed)](_0x3cb1b1,{'text':this[_0x1d597e(0x25a)],'color':this[_0x1d597e(0x374)]}),_0x3cb1b1[_0x1d597e(0x247)]());}}var cr=Object[_0x3bdab3(0x162)],hr=Object[_0x3bdab3(0x123)],lr=(_0x30f689,_0x5acad6,_0x2e9fb1,_0x2decff)=>{const _0x52d229=_0x3bdab3;for(var _0x2a2948=_0x2decff>0x1?void 0x0:_0x2decff?hr(_0x5acad6,_0x2e9fb1):_0x5acad6,_0x561e97=_0x30f689[_0x52d229(0x2d9)]-0x1,_0x240971;_0x561e97>=0x0;_0x561e97--)(_0x240971=_0x30f689[_0x561e97])&&(_0x2a2948=(_0x2decff?_0x240971(_0x5acad6,_0x2e9fb1,_0x2a2948):_0x240971(_0x2a2948))||_0x2a2948);return _0x2decff&&_0x2a2948&&cr(_0x5acad6,_0x2e9fb1,_0x2a2948),_0x2a2948;},Me=(_0x38f2a6,_0x547f33)=>(_0x4ea7c8,_0x173592)=>_0x547f33(_0x4ea7c8,_0x173592,_0x38f2a6);const _r=0x1389;let $e=class extends _0x300f85{constructor(_0x37f79d,_0x48f62c,_0x4382fe,_0x8fb25e){const _0xac9491=_0x3bdab3;super(),l(this,_0xac9491(0xf4),new Set()),l(this,_0xac9491(0xf1),null),(this[_0xac9491(0x2e5)]=_0x37f79d,this[_0xac9491(0xa4)]=_0x48f62c,this[_0xac9491(0x2f6)]=_0x4382fe,this['_themeService']=_0x8fb25e,this[_0xac9491(0x10d)]());}get['_sheetSkeletonManagerService'](){const _0xd7c524=_0x3bdab3;return this['_renderManagerService']['getRenderById'](this['_univerInstanceService'][_0xd7c524(0x1a1)](_0x3ba52b[_0xd7c524(0x38c)])[_0xd7c524(0x100)]())[_0xd7c524(0x174)](_0x516270);}get[_0x3bdab3(0xc4)](){const _0x58a939=_0x3bdab3;return this['_univerInstanceService'][_0x58a939(0x1a1)](_0x3ba52b[_0x58a939(0x38c)])[_0x58a939(0x100)]();}[_0x3bdab3(0x10d)](){const _0x4b9b24=_0x3bdab3;this['_sheetSkeletonManagerService'][_0x4b9b24(0x351)][_0x4b9b24(0x19c)](_0xdf0e3e(this[_0x4b9b24(0x99)]),_0x40ba52(_0x1dfb23=>{const _0x21188c=_0x4b9b24;if(_0x1dfb23){const _0x42e729=_0x1dfb23[_0x21188c(0x2d2)];return _0x499f91(this['_collabCursorController']['getCollabCursors$'](this[_0x21188c(0xc4)]),this[_0x21188c(0x1d5)]['currentTheme$'])[_0x21188c(0x19c)](_0x5de95e(([_0x5b7724,_0x367050])=>{const _0x421016=_0x21188c,_0xa043ba=new Map();return _0x5b7724[_0x421016(0x2fa)]((_0x1c468d,_0x50db83)=>{const _0x35a83a=_0x421016;if(_0x1c468d[_0x35a83a(0x2ab)]===_0x42e729){const _0xa104fd={..._0x1c468d};_0xa104fd[_0x35a83a(0x3b8)]=_0x367050[_0x1c468d['color']],_0xa043ba['set'](_0x50db83,_0xa104fd);}}),{'skeleton':_0x1dfb23,'cursors':_0xa043ba};}));}return _0x442f94({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x528da5,cursors:_0x2c0cbf})=>{const _0x21ce2e=_0x4b9b24;this['_removeCollabCursors'](),_0x528da5&&this[_0x21ce2e(0x231)](_0x528da5,_0x2c0cbf);}),this[_0x4b9b24(0x2dd)][_0x4b9b24(0x351)][_0x4b9b24(0x2b5)](_0x52a191=>{const _0x3c7b27=_0x4b9b24;if(_0x52a191==null)return;const {skeleton:_0x176107}=_0x52a191,_0x2de9dc=this[_0x3c7b27(0x2f6)][_0x3c7b27(0x1e8)](this[_0x3c7b27(0xc4)]),{scene:_0x2978e2}=_0x2de9dc;_0x2978e2[_0x3c7b27(0xbb)][_0x3c7b27(0x20d)](_0x2ebe29(_0x47b41e=>{const _0x493e75=_0x3c7b27;var _0x5d2edb,_0x14455c;const {offsetX:_0x1b6a61,offsetY:_0x28d222}=_0x47b41e,{x:_0x4cc8ee,y:_0x5adfcd}=_0x2978e2['getRelativeCoord'](_0x4fff35[_0x493e75(0xef)]([_0x1b6a61,_0x28d222])),{scaleX:_0x175fd5,scaleY:_0x185dea}=_0x2978e2[_0x493e75(0x21a)](),_0x52cae1=_0x2978e2[_0x493e75(0x35d)](_0x6dbc23[_0x493e75(0x249)]),_0x4fd9a4=_0x2978e2[_0x493e75(0x228)](_0x4fff35['FromArray']([_0x4cc8ee,_0x5adfcd]),_0x52cae1),_0x4e0596=_0x176107[_0x493e75(0x18a)](_0x1b6a61,_0x28d222,_0x175fd5,_0x185dea,_0x4fd9a4);((_0x5d2edb=this[_0x493e75(0xf1)])==null?void 0x0:_0x5d2edb['column'])===_0x4e0596[_0x493e75(0x145)]&&((_0x14455c=this[_0x493e75(0xf1)])==null?void 0x0:_0x14455c[_0x493e75(0xfd)])===_0x4e0596[_0x493e75(0xfd)]||this[_0x493e75(0xf4)][_0x493e75(0x2fa)](_0x511ec1=>{const _0x149520=_0x493e75;_0x511ec1[_0x149520(0x15b)](_0x4e0596);});},0x64));});}[_0x3bdab3(0x231)](_0x2d1cbb,_0x269083){const _0x27f8a8=_0x3bdab3;var _0x1192e6;const _0x556d27=(_0x1192e6=this[_0x27f8a8(0x2dd)][_0x27f8a8(0xfe)]())==null?void 0x0:_0x1192e6[_0x27f8a8(0x27b)];if(!_0x556d27)return;const _0x24df20=this[_0x27f8a8(0x287)]();if(!_0x24df20)return;this[_0x27f8a8(0xf4)][_0x27f8a8(0x2fa)](_0x1d683f=>{const _0x5ea8d3=_0x27f8a8;_0x1d683f[_0x5ea8d3(0x2c4)]();});const {scene:_0x3f1b29}=_0x24df20,_0x168c95=ur(Array[_0x27f8a8(0x2c8)](_0x269083['values']()))[_0x27f8a8(0x3bc)](_0x5ce35d=>{const _0x36d5c3=_0x27f8a8,{color:_0x1306f1,range:_0x13c0ad,name:_0xa0fc4c,selection:_0x342b1e,sheetID:_0x50c50c}=_0x5ce35d,{startColumn:_0x4708d0,startRow:_0x158aca,endColumn:_0x5babeb,endRow:_0xbf424c}=_0x13c0ad,_0x337eeb=_0x334eac(_0x158aca,_0x4708d0,_0x3f1b29,_0x556d27),_0x212081=_0x334eac(_0xbf424c,_0x5babeb,_0x3f1b29,_0x556d27),{columnHeaderHeightAndMarginTop:_0x51d08a}=_0x556d27,{startX:_0x5641d6,startY:_0x4917ed}=_0x337eeb,{endX:_0x461d38,endY:_0xd6bf65}=_0x212081,_0x28c7b4=_0x461d38-_0x5641d6,_0xe0e736=_0xd6bf65-_0x4917ed,_0x45f6bd={'labelPosition':_0x4917ed-_0x51d08a>=Oe?_0x36d5c3(0x300):_0x36d5c3(0x205),'sheetID':_0x50c50c,'range':_0x13c0ad,'color':_0x1306f1,'name':_0xa0fc4c,'selection':_0x342b1e,'left':_0x5641d6,'top':_0x4917ed,'width':_0x28c7b4,'height':_0xe0e736,'evented':!0x1,'zIndex':_r};return new ar(_0xa0fc4c,_0x45f6bd);});_0x3f1b29[_0x27f8a8(0x1c9)](_0x168c95,rr),this[_0x27f8a8(0xf4)]=new Set(_0x168c95);}[_0x3bdab3(0xae)](){const _0x2dfa6d=_0x3bdab3;var _0x320c05;(_0x320c05=this[_0x2dfa6d(0xf4)])==null||_0x320c05[_0x2dfa6d(0x2fa)](_0x29367c=>_0x29367c[_0x2dfa6d(0x328)]());}[_0x3bdab3(0x287)](){const _0x3be113=_0x3bdab3;return _0x9bd77f(this[_0x3be113(0xa4)],this[_0x3be113(0x2f6)]);}};$e=lr([_0x516125(_0x3c792f[_0x3bdab3(0x3b6)],$e),Me(0x0,_0x279e5b(ue)),Me(0x1,_0x173bd8),Me(0x2,_0x4c72a4),Me(0x3,_0x279e5b(_0x588548))],$e);function ur(_0x3643e5){const _0x4efd26=_0x3bdab3,_0x339cfb=new Map();return _0x3643e5[_0x4efd26(0x2fa)](_0x351194=>{const _0x4e3007=_0x4efd26;if(_0x339cfb[_0x4e3007(0x27c)](_0x351194[_0x4e3007(0x341)])){const _0x56ac24=_0x339cfb['get'](_0x351194[_0x4e3007(0x341)]);_0x56ac24[_0x4e3007(0x394)]+=',\x20'+_0x351194[_0x4e3007(0x394)];}else _0x339cfb[_0x4e3007(0x156)](_0x351194[_0x4e3007(0x341)],_0x351194);}),Array[_0x4efd26(0x2c8)](_0x339cfb[_0x4efd26(0x22a)]());}var A=function(){const _0x868400=_0x3bdab3;return A=Object[_0x868400(0x116)]||function(_0x378f48){const _0x50f591=_0x868400;for(var _0x9a5e5b,_0x26ba2c=0x1,_0x41650f=arguments[_0x50f591(0x2d9)];_0x26ba2c<_0x41650f;_0x26ba2c++){_0x9a5e5b=arguments[_0x26ba2c];for(var _0x522a34 in _0x9a5e5b)Object[_0x50f591(0x12a)]['hasOwnProperty']['call'](_0x9a5e5b,_0x522a34)&&(_0x378f48[_0x522a34]=_0x9a5e5b[_0x522a34]);}return _0x378f48;},A[_0x868400(0x125)](this,arguments);},dr=function(_0x5e70ac,_0x48f8a9){const _0x11ac06=_0x3bdab3;var _0x37dd9b={};for(var _0x18993b in _0x5e70ac)Object['prototype'][_0x11ac06(0x3ae)][_0x11ac06(0x1e2)](_0x5e70ac,_0x18993b)&&_0x48f8a9[_0x11ac06(0x9f)](_0x18993b)<0x0&&(_0x37dd9b[_0x18993b]=_0x5e70ac[_0x18993b]);if(_0x5e70ac!=null&&typeof Object['getOwnPropertySymbols']==_0x11ac06(0x1cf)){for(var _0x4c5529=0x0,_0x18993b=Object[_0x11ac06(0x3bb)](_0x5e70ac);_0x4c5529<_0x18993b[_0x11ac06(0x2d9)];_0x4c5529++)_0x48f8a9[_0x11ac06(0x9f)](_0x18993b[_0x4c5529])<0x0&&Object['prototype'][_0x11ac06(0x1b4)][_0x11ac06(0x1e2)](_0x5e70ac,_0x18993b[_0x4c5529])&&(_0x37dd9b[_0x18993b[_0x4c5529]]=_0x5e70ac[_0x18993b[_0x4c5529]]);}return _0x37dd9b;},yt=_0x1c2ff9(function(_0x5ce6d9,_0x426ea1){const _0x58b786=_0x3bdab3;var _0x7cdde2=_0x5ce6d9[_0x58b786(0x12c)],_0x206225=_0x5ce6d9['id'],_0x1f5b79=_0x5ce6d9['className'],_0x294ab0=_0x5ce6d9[_0x58b786(0x39c)],_0x3b8964=dr(_0x5ce6d9,[_0x58b786(0x12c),'id','className','extend']),_0x4af0b2=_0x58b786(0x24d)[_0x58b786(0x1ab)](_0x206225,'\x20')[_0x58b786(0x1ab)](_0x1f5b79||'')['trim'](),_0x40b8a7=_0xbd3c86('_'[_0x58b786(0x1ab)](mr()));return Ds(_0x7cdde2,''[_0x58b786(0x1ab)](_0x206225),{'defIds':_0x7cdde2[_0x58b786(0x1e5)],'idSuffix':_0x40b8a7['current']},A({'ref':_0x426ea1,'className':_0x4af0b2},_0x3b8964),_0x294ab0);});function Ds(_0x5ac99f,_0x170dc4,_0x509860,_0x27fc57,_0x11fe0b){const _0x13cc37=_0x3bdab3;return _0x58bacf(_0x5ac99f[_0x13cc37(0x399)],A(A({'key':_0x170dc4},fr(_0x5ac99f,_0x509860,_0x11fe0b)),_0x27fc57),(gr(_0x5ac99f,_0x509860)[_0x13cc37(0x2a6)]||[])[_0x13cc37(0x3bc)](function(_0x2f8c4f,_0xf7646a){const _0xe42183=_0x13cc37;return Ds(_0x2f8c4f,''[_0xe42183(0x1ab)](_0x170dc4,'-')['concat'](_0x5ac99f['tag'],'-')[_0xe42183(0x1ab)](_0xf7646a),_0x509860,void 0x0,_0x11fe0b);}));}function fr(_0x481cdc,_0x1c7559,_0x497d03){const _0x242b82=_0x3bdab3;var _0x15d581=A({},_0x481cdc[_0x242b82(0x209)]);_0x497d03!=null&&_0x497d03['colorChannel1']&&_0x15d581[_0x242b82(0x110)]==='colorChannel1'&&(_0x15d581[_0x242b82(0x110)]=_0x497d03[_0x242b82(0x2bb)]);var _0x3330c8=_0x1c7559[_0x242b82(0x1e5)];return!_0x3330c8||_0x3330c8['length']===0x0||(_0x481cdc[_0x242b82(0x399)]===_0x242b82(0x2f1)&&_0x15d581[_0x242b82(0x184)]&&(_0x15d581['xlink:href']=_0x15d581[_0x242b82(0x184)]+_0x1c7559['idSuffix']),Object[_0x242b82(0x122)](_0x15d581)[_0x242b82(0x2fa)](function(_0xf0efef){const _0x36a48e=_0x242b82;var _0x7837cc=_0xf0efef[0x0],_0x4966b8=_0xf0efef[0x1];typeof _0x4966b8==_0x36a48e(0x304)&&(_0x15d581[_0x7837cc]=_0x4966b8[_0x36a48e(0x329)](/url\(#(.*)\)/,'url(#$1'[_0x36a48e(0x1ab)](_0x1c7559[_0x36a48e(0x36c)],')')));})),_0x15d581;}function gr(_0x16856f,_0xdf78ab){const _0x30ae91=_0x3bdab3;var _0x59a4db,_0x122a9f=_0xdf78ab['defIds'];return!_0x122a9f||_0x122a9f['length']===0x0?_0x16856f:_0x16856f[_0x30ae91(0x399)]==='defs'&&(!((_0x59a4db=_0x16856f[_0x30ae91(0x2a6)])===null||_0x59a4db===void 0x0)&&_0x59a4db[_0x30ae91(0x2d9)])?A(A({},_0x16856f),{'children':_0x16856f[_0x30ae91(0x2a6)][_0x30ae91(0x3bc)](function(_0x4dfa5f){const _0x3bd713=_0x30ae91;return typeof _0x4dfa5f['attrs']['id']=='string'&&_0x122a9f&&_0x122a9f[_0x3bd713(0x9f)](_0x4dfa5f[_0x3bd713(0x209)]['id'])>-0x1?A(A({},_0x4dfa5f),{'attrs':A(A({},_0x4dfa5f[_0x3bd713(0x209)]),{'id':_0x4dfa5f[_0x3bd713(0x209)]['id']+_0xdf78ab[_0x3bd713(0x36c)]})}):_0x4dfa5f;})}):_0x16856f;}function mr(){const _0x5420cb=_0x3bdab3;return Math[_0x5420cb(0x268)]()[_0x5420cb(0x2ea)](0x24)[_0x5420cb(0x272)](0x2,0x8);}yt[_0x3bdab3(0x279)]=_0x3bdab3(0x336);var Sr={'tag':'svg','attrs':{'fill':_0x3bdab3(0x119),'viewBox':_0x3bdab3(0x324),'width':_0x3bdab3(0x3ab),'height':_0x3bdab3(0x3ab)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bdab3(0x138)},'children':[{'tag':'path','attrs':{'stroke':_0x3bdab3(0x27a),'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':_0x3bdab3(0x1b6),'strokeLinejoin':_0x3bdab3(0x1b6),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3bdab3(0x36b),'attrs':{'id':_0x3bdab3(0x33c)},'children':[{'tag':_0x3bdab3(0x392),'attrs':{'fill':_0x3bdab3(0x35e),'d':_0x3bdab3(0x34f)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ws=_0x1c2ff9(function(_0x2deeb0,_0x39c815){const _0x34125e=_0x3bdab3;return _0x58bacf(yt,Object['assign']({},_0x2deeb0,{'id':_0x34125e(0x154),'ref':_0x39c815,'icon':Sr}));});ws['displayName']=_0x3bdab3(0x319);var vr={'tag':_0x3bdab3(0x1d4),'attrs':{'fill':_0x3bdab3(0x119),'viewBox':_0x3bdab3(0x330),'width':_0x3bdab3(0x3ab),'height':_0x3bdab3(0x3ab)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bdab3(0x373)},'children':[{'tag':_0x3bdab3(0x392),'attrs':{'stroke':_0x3bdab3(0x27a),'d':_0x3bdab3(0x2ad),'strokeLinecap':_0x3bdab3(0x1b6),'strokeLinejoin':_0x3bdab3(0x1b6),'strokeWidth':1.2}}]},{'tag':_0x3bdab3(0xe5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3bdab3(0x212)},'children':[{'tag':_0x3bdab3(0x392),'attrs':{'fill':_0x3bdab3(0x35e),'d':_0x3bdab3(0x34f),'transform':_0x3bdab3(0x25f)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ps=_0x1c2ff9(function(_0x2ad6e4,_0x2fbf51){const _0x33e3b5=_0x3bdab3;return _0x58bacf(yt,Object[_0x33e3b5(0x116)]({},_0x2ad6e4,{'id':'on-line-single','ref':_0x2fbf51,'icon':vr}));});Ps[_0x3bdab3(0x279)]='OnLineSingle';const pr=_0x3bdab3(0x275),Ir=_0x3bdab3(0x26c),Er=_0x3bdab3(0x98),Cr='univer-online',br='univer-offline',ve={'onlineStatusIcon':pr,'onlineStatusTitle':Ir,'onlineStatus':Er,'online':Cr,'offline':br};function Rr(_0x23b8cc){const _0x394e76=_0x3bdab3;switch(_0x23b8cc){case P[_0x394e76(0x37a)]:return _0x394e76(0x29f);case P[_0x394e76(0x19e)]:return _0x394e76(0x15f);case P['FETCH_MISS']:return _0x394e76(0x277);case P[_0x394e76(0x15c)]:return _0x394e76(0x11a);case P[_0x394e76(0x134)]:case P[_0x394e76(0x263)]:case P[_0x394e76(0x1a2)]:return _0x394e76(0x377);case P[_0x394e76(0x29c)]:return _0x394e76(0x2b1);}}function Tr(_0x3ce188){const _0x308f45=_0x3bdab3,{status$:_0x46440d}=_0x3ce188,_0x4c6059=_0x52c0a4(_0x46440d,P[_0x308f45(0x15c)]),_0x134474=_0x35026c(_0x25e6c6),_0x1d2142=_0x4c6059!==P[_0x308f45(0x37a)],_0x175367=_0x134474['t'](Rr(_0x4c6059)),_0x473f2d=_0x52a9a7(ve[_0x308f45(0x17e)],{[ve['online']]:_0x1d2142,[ve[_0x308f45(0x29e)]]:!_0x1d2142}),_0x4eebdd=_0x1d2142?_0x3f5d4a[_0x308f45(0x371)](Ps,null):_0x3f5d4a['createElement'](ws,null);return _0x3f5d4a[_0x308f45(0x371)](_0x308f45(0x369),{'className':_0x473f2d},_0x3f5d4a[_0x308f45(0x371)](_0x308f45(0x369),{'className':ve[_0x308f45(0x271)]},_0x4eebdd),_0x3f5d4a[_0x308f45(0x371)]('div',{'className':ve[_0x308f45(0x23f)]},_0x175367));}var Or=Object[_0x3bdab3(0x162)],Dr=Object[_0x3bdab3(0x123)],wr=(_0x2b3e77,_0x2c23f2,_0xa3eedb,_0x1c976b)=>{for(var _0x19ce3d=_0x1c976b>0x1?void 0x0:_0x1c976b?Dr(_0x2c23f2,_0xa3eedb):_0x2c23f2,_0x5cf8e6=_0x2b3e77['length']-0x1,_0x566a7d;_0x5cf8e6>=0x0;_0x5cf8e6--)(_0x566a7d=_0x2b3e77[_0x5cf8e6])&&(_0x19ce3d=(_0x1c976b?_0x566a7d(_0x2c23f2,_0xa3eedb,_0x19ce3d):_0x566a7d(_0x19ce3d))||_0x19ce3d);return _0x1c976b&&_0x19ce3d&&Or(_0x2c23f2,_0xa3eedb,_0x19ce3d),_0x19ce3d;},Ae=(_0x7a6746,_0x3b29dc)=>(_0x28ec69,_0x11b5f5)=>_0x3b29dc(_0x28ec69,_0x11b5f5,_0x7a6746);let je=class extends _0x292c4b{constructor(_0x306d62,_0x2c1b5c,_0x58e517,_0x5dd7a0){const _0x3f8cd6=_0x3bdab3;super(),l(this,_0x3f8cd6(0x3c1),new _0x2fb415(P['NOT_COLLAB'])),(this[_0x3f8cd6(0xa4)]=_0x306d62,this['_uiPartsService']=_0x2c1b5c,this[_0x3f8cd6(0x191)]=_0x58e517,this[_0x3f8cd6(0xa0)]=_0x5dd7a0,this[_0x3f8cd6(0x367)](),this[_0x3f8cd6(0x2d5)]());}[_0x3bdab3(0x367)](){const _0x4fefd3=_0x3bdab3;this[_0x4fefd3(0x18d)](this[_0x4fefd3(0x2d7)]['registerComponent'](_0x403b57[_0x4fefd3(0x103)],()=>_0x266534(Pr({'status$':this[_0x4fefd3(0x3c1)][_0x4fefd3(0x267)]()}),this[_0x4fefd3(0x191)])));}[_0x3bdab3(0x2d5)](){const _0x171580=_0x3bdab3;this['disposeWithMe'](_0x439c9a(this['_univerInstanceService']['focused$'][_0x171580(0x19c)](_0x659f37(()=>{const _0x470687=_0x171580,_0x304a7f=this[_0x470687(0xa4)][_0x470687(0x289)]();return _0x304a7f?this[_0x470687(0xa0)][_0x470687(0x149)](_0x304a7f[_0x470687(0x100)]()):_0x442f94(null);}),_0x659f37(_0x33c674=>_0x33c674?_0x33c674[_0x171580(0x21b)]:_0x442f94(P[_0x171580(0x15c)])))[_0x171580(0x2b5)](_0x5b6e56=>{const _0x577842=_0x171580;this[_0x577842(0x3c1)][_0x577842(0x1c7)](_0x5b6e56);})));}};je=wr([_0x516125(_0x3c792f[_0x3bdab3(0x335)],je),Ae(0x0,_0x173bd8),Ae(0x1,_0x8b992a),Ae(0x2,_0x279e5b(_0x5df577)),Ae(0x3,_0x279e5b(Ee))],je);function Pr(_0x280925){const {status$:_0x176643}=_0x280925;return function(){const _0x4ec816=_0x92e7;return _0x3f5d4a[_0x4ec816(0x371)](Tr,{'status$':_0x176643});};}const Ns=_0x3ce7c5('uni.network.url-service');var Nr=Object[_0x3bdab3(0x162)],Mr=Object[_0x3bdab3(0x123)],Ar=(_0xdc6cd6,_0x1201c6,_0x25d8a9,_0x596528)=>{const _0x1ee190=_0x3bdab3;for(var _0x251a06=_0x596528>0x1?void 0x0:_0x596528?Mr(_0x1201c6,_0x25d8a9):_0x1201c6,_0x1ddfd3=_0xdc6cd6[_0x1ee190(0x2d9)]-0x1,_0xe4914b;_0x1ddfd3>=0x0;_0x1ddfd3--)(_0xe4914b=_0xdc6cd6[_0x1ddfd3])&&(_0x251a06=(_0x596528?_0xe4914b(_0x1201c6,_0x25d8a9,_0x251a06):_0xe4914b(_0x251a06))||_0x251a06);return _0x596528&&_0x251a06&&Nr(_0x1201c6,_0x25d8a9,_0x251a06),_0x251a06;},ce=(_0x24bdcb,_0xf7621d)=>(_0x5b30fd,_0x5fca10)=>_0xf7621d(_0x5b30fd,_0x5fca10,_0x24bdcb);let He=class extends _0x300f85{constructor(_0x30b866,_0x4f1547,_0x5a2613,_0x5aaa3d,_0x448cb2,_0x12b2d6){const _0x125b24=_0x3bdab3;super(),this[_0x125b24(0x139)]=_0x30b866,this[_0x125b24(0x140)]=_0x4f1547,this[_0x125b24(0x200)]=_0x5a2613,this[_0x125b24(0x334)]=_0x5aaa3d,this['_snapshotService']=_0x448cb2,_0x12b2d6?_0x12b2d6==null||_0x12b2d6['whenReady']()[_0x125b24(0xcc)](()=>this[_0x125b24(0x10d)]()):(this[_0x125b24(0x140)][_0x125b24(0x23b)](_0x125b24(0x31d),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x125b24(0x10d)]());}async['_init'](){const _0x38d4d6=_0x3bdab3,_0x26516d=this['_urlService'][_0x38d4d6(0x333)](_0x38d4d6(0xf8)),_0xa20818=this[_0x38d4d6(0x139)][_0x38d4d6(0x333)](_0x38d4d6(0x2ec));if(!_0x26516d||!_0xa20818){this[_0x38d4d6(0x140)][_0x38d4d6(0x23b)](_0x38d4d6(0x31d),_0x38d4d6(0xdf));return;}switch(Number(_0xa20818)){case H['UNIVER_SHEET']:{const _0x1389f7=await this[_0x38d4d6(0x176)](_0x26516d);this[_0x38d4d6(0x2ff)](_0x1389f7);break;}case H[_0x38d4d6(0x1a4)]:{await this[_0x38d4d6(0x363)](_0x26516d);break;}default:{this['_logService']['error'](_0x38d4d6(0x31d),_0x38d4d6(0x2bc));break;}}}async[_0x3bdab3(0x2ff)](_0x5780be){const _0x28a99a=_0x3bdab3;await this[_0x28a99a(0x1fd)](_0x5780be),_0x5780be[_0x28a99a(0x365)]['pipe'](_0x352c23(this[_0x28a99a(0x99)]))[_0x28a99a(0x2b5)](_0x1217c1=>{_0x1217c1&&this['_updateURLWithCurrentState'](_0x1217c1);}),this[_0x28a99a(0x139)][_0x28a99a(0x253)][_0x28a99a(0x19c)](_0x352c23(this[_0x28a99a(0x99)]))[_0x28a99a(0x2b5)](()=>this['_updateSubUnitFromURLParams'](_0x5780be));}[_0x3bdab3(0xb1)](_0x357468,_0x498930=!0x1){const _0x3ed005=_0x3bdab3,_0x19825a=this[_0x3ed005(0x139)][_0x3ed005(0x333)]('subunit');_0x357468[_0x3ed005(0x13c)]()!==_0x19825a&&this[_0x3ed005(0x139)][_0x3ed005(0x9c)](_0x3ed005(0x34b),_0x357468['getSheetId'](),_0x498930);}async[_0x3bdab3(0x1fd)](_0x3b3cad){const _0x259ae1=_0x3bdab3;var _0x4fcbcd;const _0x9ca1a2=this[_0x259ae1(0x139)]['getParam'](_0x259ae1(0x34b));if(!_0x9ca1a2||!_0x3b3cad['getSheetBySheetId'](_0x9ca1a2)){this['_updateURLWithCurrentState'](_0x3b3cad[_0x259ae1(0x229)](),!0x0);return;}((_0x4fcbcd=_0x3b3cad[_0x259ae1(0x308)]())==null?void 0x0:_0x4fcbcd[_0x259ae1(0x13c)]())!==_0x9ca1a2&&await this[_0x259ae1(0x200)]['executeCommand'](_0x40335c['id'],{'unitId':_0x3b3cad[_0x259ae1(0x100)](),'subUnitId':_0x9ca1a2});}async['_loadSheet'](_0x1c3e1d){const _0x453ef3=_0x3bdab3;let _0x32dd52=0x0;const _0x4ca4b7=await this['_localCacheService']['loadOfflineData'](_0x1c3e1d);return _0x4ca4b7&&(_0x4ca4b7[_0x453ef3(0x23a)]||_0x4ca4b7[_0x453ef3(0x295)][_0x453ef3(0x2d9)]!==0x0)&&(_0x32dd52=_0x4ca4b7['rev']),_0x32dd52===0x0&&this[_0x453ef3(0x140)][_0x453ef3(0x23b)]('[DataLoaderController]',_0x453ef3(0x20f)),this[_0x453ef3(0x194)][_0x453ef3(0x274)](_0x1c3e1d,_0x32dd52);}async[_0x3bdab3(0x363)](_0x211d92){const _0x345dc3=_0x3bdab3;let _0x55e5b1=0x0;const _0x2507fe=await this[_0x345dc3(0x334)]['loadOfflineData'](_0x211d92);return _0x2507fe&&(_0x2507fe[_0x345dc3(0x23a)]||_0x2507fe['mutations'][_0x345dc3(0x2d9)]!==0x0)&&(_0x55e5b1=_0x2507fe[_0x345dc3(0x22d)]),_0x55e5b1===0x0&&this[_0x345dc3(0x140)][_0x345dc3(0x23b)](_0x345dc3(0x31d),_0x345dc3(0x20f)),this[_0x345dc3(0x194)][_0x345dc3(0x2e4)](_0x211d92,_0x55e5b1);}};He=Ar([_0x516125(_0x3c792f['Starting'],He),ce(0x0,Ns),ce(0x1,_0x2cecb4),ce(0x2,_0x5ba974),ce(0x3,_0x279e5b(D)),ce(0x4,_0x279e5b(_0x4471bc)),ce(0x5,_0x4100a2(_0x126341))],He);var yr=Object['defineProperty'],Ur=Object['getOwnPropertyDescriptor'],Lr=(_0x19d8e2,_0x3039e4,_0x5937af,_0x50c650)=>{for(var _0x16b8f2=_0x50c650>0x1?void 0x0:_0x50c650?Ur(_0x3039e4,_0x5937af):_0x3039e4,_0xdfba47=_0x19d8e2['length']-0x1,_0x3dc225;_0xdfba47>=0x0;_0xdfba47--)(_0x3dc225=_0x19d8e2[_0xdfba47])&&(_0x16b8f2=(_0x50c650?_0x3dc225(_0x3039e4,_0x5937af,_0x16b8f2):_0x3dc225(_0x16b8f2))||_0x16b8f2);return _0x50c650&&_0x16b8f2&&yr(_0x3039e4,_0x5937af,_0x16b8f2),_0x16b8f2;},qt=(_0xabe853,_0x319ec0)=>(_0x3fcdcc,_0x367d13)=>_0x319ec0(_0x3fcdcc,_0x367d13,_0xabe853);const $r='DEFAULT_FILE_NAME',jr=_0x3bdab3(0x321);let xe=class extends _0x292c4b{constructor(_0x2f2aa8,_0x26600d){const _0x42c8f3=_0x3bdab3;super(),this['_univerInstanceService']=_0x2f2aa8,this['_configService']=_0x26600d,this[_0x42c8f3(0x10d)]();}[_0x3bdab3(0x10d)](){const _0x5e9273=_0x3bdab3;this['disposeWithMe'](_0x439c9a(this[_0x5e9273(0xa4)][_0x5e9273(0x2da)][_0x5e9273(0x2b5)](()=>{const _0x216862=_0x5e9273;var _0xfd44a9;const _0x8a7ab9=this[_0x216862(0xa4)]['getFocusedUnit']();let _0x2cfed6=(_0xfd44a9=this[_0x216862(0x1bd)][_0x216862(0x384)]($r))!=null?_0xfd44a9:jr;_0x8a7ab9 instanceof _0x40c937&&(_0x2cfed6=_0x8a7ab9[_0x216862(0x394)]),document[_0x216862(0x302)]=_0x2cfed6;})));}};xe=Lr([_0x516125(_0x3c792f[_0x3bdab3(0x356)],xe),qt(0x0,_0x173bd8),qt(0x1,_0x37d874)],xe);var Hr=Object[_0x3bdab3(0x162)],xr=Object[_0x3bdab3(0x123)],Fr=(_0x2dfc88,_0x493c96,_0x4b7a8a,_0x1e3c53)=>{const _0x2f8a91=_0x3bdab3;for(var _0x4577a3=_0x1e3c53>0x1?void 0x0:_0x1e3c53?xr(_0x493c96,_0x4b7a8a):_0x493c96,_0x4ff376=_0x2dfc88[_0x2f8a91(0x2d9)]-0x1,_0x49c26e;_0x4ff376>=0x0;_0x4ff376--)(_0x49c26e=_0x2dfc88[_0x4ff376])&&(_0x4577a3=(_0x1e3c53?_0x49c26e(_0x493c96,_0x4b7a8a,_0x4577a3):_0x49c26e(_0x4577a3))||_0x4577a3);return _0x1e3c53&&_0x4577a3&&Hr(_0x493c96,_0x4b7a8a,_0x4577a3),_0x4577a3;},Qt=(_0x302def,_0x2f50ef)=>(_0x5c3ce8,_0x305e67)=>_0x2f50ef(_0x5c3ce8,_0x305e67,_0x302def);let St=class{constructor(_0x45b33b,_0x3ba7da){const _0x204e31=_0x3bdab3;this[_0x204e31(0x1bd)]=_0x45b33b,this['_httpService']=_0x3ba7da;}async[_0x3bdab3(0x166)](_0x51c871,_0xbac08f){const _0x2dfcfd=_0x3bdab3;var _0xcd34ac;const {unitID:_0x15f8ba,type:_0x2aa52f,revision:_0x285547=0x0}=_0xbac08f,_0x2154bc=this[_0x2dfcfd(0x1d7)]()+'/'+_0x2aa52f+_0x2dfcfd(0x391)+_0x15f8ba+_0x2dfcfd(0xab)+(_0x285547===0x1?0x0:_0x285547),_0x7eb9c1=(await this[_0x2dfcfd(0x155)]['get'](_0x2154bc))[_0x2dfcfd(0xf0)],_0x2c23d7=(_0xcd34ac=_0x7eb9c1[_0x2dfcfd(0x342)])==null?void 0x0:_0xcd34ac[_0x2dfcfd(0x171)];if(_0x2c23d7){const _0x5cf326=_0x2c23d7==null?void 0x0:_0x2c23d7[_0x2dfcfd(0x120)],_0x45bf99=_0x218b7d[_0x2dfcfd(0x3af)](_0x14b7ab(_0x5cf326));_0x2c23d7['originalMeta']=_0x45bf99,Object[_0x2dfcfd(0x122)](_0x2c23d7[_0x2dfcfd(0x352)])[_0x2dfcfd(0x2fa)](([,_0x31baa0])=>{const _0x1ad73e=_0x2dfcfd,_0x59e3bc=_0x31baa0[_0x1ad73e(0x120)],_0xc967b9=_0x218b7d[_0x1ad73e(0x3af)](_0x14b7ab(_0x59e3bc));_0x31baa0[_0x1ad73e(0x120)]=_0xc967b9;});}return _0x7eb9c1;}async[_0x3bdab3(0x175)](_0x37027c,_0x3d8446){const _0x241d9f=_0x3bdab3,{unitID:_0x3e92ba,type:_0x309637,blockID:_0x7bfc39}=_0x3d8446,_0xbfcbf4=this[_0x241d9f(0xe6)]()+'/'+_0x309637+_0x241d9f(0x391)+_0x3e92ba+_0x241d9f(0x233)+_0x7bfc39;return(await this[_0x241d9f(0x155)][_0x241d9f(0x132)](_0xbfcbf4))['body'];}async[_0x3bdab3(0x111)](_0x5cef9d,_0x18b9d6){const _0x33ea73=_0x3bdab3,{unitID:_0x30fcbe,type:_0x545ab5,from:_0x5c2a6d,to:_0x374c65}=_0x18b9d6,_0x5bd3ed=this['_getAPIPrefix']()+'/'+_0x545ab5+_0x33ea73(0x391)+_0x30fcbe+_0x33ea73(0x25b)+_0x5c2a6d+_0x33ea73(0x2ee)+_0x374c65;return(await this[_0x33ea73(0x155)][_0x33ea73(0x132)](_0x5bd3ed))[_0x33ea73(0xf0)];}['_getSnapshotAPIPrefix'](){const _0x30662a=_0x3bdab3;var _0x353d53;return(_0x353d53=this[_0x30662a(0x1bd)][_0x30662a(0x384)](Yi))!=null?_0x353d53:this['_getAPIPrefix']();}[_0x3bdab3(0xe6)](){const _0x149f03=_0x3bdab3;var _0x298c0d;return(_0x298c0d=this[_0x149f03(0x1bd)][_0x149f03(0x384)](Wi))!=null?_0x298c0d:Gi;}async['getResourcesRequest'](_0x122411,_0x192bb7){const _0x5ec987=_0x3bdab3,_0xfe92d5=_0x5ec987(0x135)+_0x192bb7['type']+_0x5ec987(0x391)+_0x192bb7['unitID']+_0x5ec987(0x2f7);return(await this[_0x5ec987(0x155)][_0x5ec987(0x132)](_0xfe92d5,{'params':{'resourceId':JSON['stringify'](_0x192bb7[_0x5ec987(0x1c1)])}}))[_0x5ec987(0xf0)];}[_0x3bdab3(0x368)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x4471d3=_0x3bdab3;throw new Error(_0x4471d3(0x292));}[_0x3bdab3(0x1e9)](){const _0x8d6e8d=_0x3bdab3;throw new Error(_0x8d6e8d(0x292));}};St=Fr([Qt(0x0,_0x37d874),Qt(0x1,_0x279e5b(_0x24b00a))],St);var kr=Object[_0x3bdab3(0x162)],Br=Object[_0x3bdab3(0x123)],Vr=(_0x542840,_0x1173c3,_0x2913f9,_0x2c1f9c)=>{const _0xd834c7=_0x3bdab3;for(var _0x3aa000=_0x2c1f9c>0x1?void 0x0:_0x2c1f9c?Br(_0x1173c3,_0x2913f9):_0x1173c3,_0x127441=_0x542840[_0xd834c7(0x2d9)]-0x1,_0x47d424;_0x127441>=0x0;_0x127441--)(_0x47d424=_0x542840[_0x127441])&&(_0x3aa000=(_0x2c1f9c?_0x47d424(_0x1173c3,_0x2913f9,_0x3aa000):_0x47d424(_0x3aa000))||_0x3aa000);return _0x2c1f9c&&_0x3aa000&&kr(_0x1173c3,_0x2913f9,_0x3aa000),_0x3aa000;},pe=(_0x1c0fbf,_0x90976c)=>(_0x4d00ce,_0x4e0b87)=>_0x90976c(_0x4d00ce,_0x4e0b87,_0x1c0fbf);let vt=class extends _0x3147c1{constructor(_0x2a3cef,_0x52917d,_0x265346,_0x4acfd1,_0x576a0b){const _0x38209e=_0x3bdab3;super(_0x2a3cef,_0x52917d,_0x265346),this[_0x38209e(0x2ef)]=_0x4acfd1,this[_0x38209e(0x140)]=_0x576a0b;}[_0x3bdab3(0x30f)](_0x55ead4,_0x1591e1){const _0x5c42f4=_0x3bdab3,_0x404c7d=this[_0x5c42f4(0x3aa)](_0x55ead4);if(_0x404c7d)try{const _0x35b7d4=this['_transformStack'](_0x404c7d,_0x1591e1);this[_0x5c42f4(0x150)](_0x55ead4,_0x35b7d4);}catch(_0x5291fc){this[_0x5c42f4(0x140)][_0x5c42f4(0x127)]('[CollaborationUndoRedoService]',_0x5291fc),this['_clearUndo'](_0x55ead4);}const _0x1c3566=this[_0x5c42f4(0x28b)](_0x55ead4);if(_0x1c3566)try{const _0x4ead61=this[_0x5c42f4(0xa9)](_0x1c3566,_0x1591e1);this['_substituteRedoStack'](_0x55ead4,_0x4ead61);}catch(_0x19e4cd){this['_logService']['error'](_0x19e4cd),this[_0x5c42f4(0x131)](_0x55ead4);}}[_0x3bdab3(0x2bd)](_0x196b78){const _0x7ae6be=_0x3bdab3,_0x205a56=this[_0x7ae6be(0x3aa)](_0x196b78);_0x205a56&&(_0x205a56[_0x7ae6be(0x2d9)]=0x0,this[_0x7ae6be(0xe1)]());}[_0x3bdab3(0x131)](_0x38f01c){const _0x5a14ff=_0x3bdab3,_0x19d08f=this[_0x5a14ff(0x28b)](_0x38f01c);_0x19d08f&&(_0x19d08f[_0x5a14ff(0x2d9)]=0x0,this[_0x5a14ff(0xe1)]());}[_0x3bdab3(0x150)](_0x9c3602,_0x13575b){const _0x22aa01=_0x3bdab3;this['_undoStacks'][_0x22aa01(0x156)](_0x9c3602,_0x13575b),this[_0x22aa01(0xe1)]();}[_0x3bdab3(0xd6)](_0x5a8534,_0x5cf82c){const _0x2de04f=_0x3bdab3;this[_0x2de04f(0xb2)][_0x2de04f(0x156)](_0x5a8534,_0x5cf82c),this[_0x2de04f(0xe1)]();}['_transformStack'](_0xcb156,_0x538dab){const _0x32e297=_0x3bdab3,_0x3aa757=[];let _0x562481=_0x538dab,_0x748c11=_0x538dab;for(let _0x7164a2=_0xcb156['length']-0x1;_0x7164a2>=0x0;_0x7164a2--){const {unitID:_0x2b8b0e,undoMutations:_0x4b3f93,redoMutations:_0x3ce05a}=_0xcb156[_0x7164a2],_0x1da3ef=this[_0x32e297(0x2ef)][_0x32e297(0x2cd)](_0x562481,_0x4b3f93),_0x1f1611=this[_0x32e297(0x2ef)]['transformMutationsWithChangeset'](_0x748c11,_0x3ce05a);if(_0x39e768(_0x1da3ef)||_0x39e768(_0x1f1611)){this[_0x32e297(0x140)]['error'](_0x32e297(0xe7),_0x32e297(0x37f),_0x1da3ef,_0x1f1611);break;}_0x562481=_0x1da3ef[_0x32e297(0x307)],_0x748c11=_0x1f1611[_0x32e297(0x307)],_0x3aa757[_0x32e297(0x37d)]({'unitID':_0x2b8b0e,'undoMutations':_0x1da3ef['m2Prime'],'redoMutations':_0x1f1611[_0x32e297(0x32f)]});}return _0x3aa757['reverse']();}};vt=Vr([pe(0x0,_0x173bd8),pe(0x1,_0x5ba974),pe(0x2,_0x5b7487),pe(0x3,_0x539a09),pe(0x4,_0x2cecb4)],vt);class Wr extends _0x300f85{constructor(){const _0x59fec0=_0x3bdab3;super(),l(this,'urlChange$'),this[_0x59fec0(0x253)]=_0xb88582(window,_0x59fec0(0x343))[_0x59fec0(0x19c)](_0x352c23(this[_0x59fec0(0x99)]),_0x260592(0x1),_0x57165d(void 0x0));}['setParam'](_0x25176e,_0x20993f,_0x1ee20a=!0x1){const _0x4fa4df=_0x3bdab3,_0x2b9e4a=new URL(window[_0x4fa4df(0x1a5)][_0x4fa4df(0x33e)]);_0x2b9e4a['searchParams'][_0x4fa4df(0x156)](_0x25176e,_0x20993f),_0x1ee20a?window[_0x4fa4df(0x19d)][_0x4fa4df(0x1de)]('','',_0x2b9e4a[_0x4fa4df(0x2ea)]()):window['history'][_0x4fa4df(0x193)]('','',_0x2b9e4a[_0x4fa4df(0x2ea)]());}[_0x3bdab3(0x183)](_0x30245b,_0x21efc6=!0x1){const _0x2585e5=_0x3bdab3,_0x4d23d9=new URL(window[_0x2585e5(0x1a5)][_0x2585e5(0x33e)]);_0x4d23d9[_0x2585e5(0x3bf)][_0x2585e5(0xfc)](_0x30245b),_0x21efc6?window['history']['replaceState']('','',_0x4d23d9['toString']()):window[_0x2585e5(0x19d)]['pushState']('','',_0x4d23d9[_0x2585e5(0x2ea)]());}['getParam'](_0x1bec23){const _0x29d3cc=_0x3bdab3;var _0x432d49;return(_0x432d49=new URL(window[_0x29d3cc(0x1a5)]['href'])[_0x29d3cc(0x3bf)][_0x29d3cc(0x132)](_0x1bec23))!=null?_0x432d49:void 0x0;}}const nt=_0x3bdab3(0x10a),Gr='collab-text-range-',ye=0x6,Yr=1.5,rt=0x4,Kr=1.5,Xr=_0x3bdab3(0x354);class Jr{constructor(_0x5992e2,_0x525e56,_0x21054f,_0x13cd9b){const _0x5c0b6f=_0x3bdab3;l(this,_0x5c0b6f(0x2e8),[]),l(this,_0x5c0b6f(0x178),null),l(this,'_textBubble',null),l(this,_0x5c0b6f(0xa7),null),l(this,_0x5c0b6f(0x2aa),null),l(this,_0x5c0b6f(0x2c6),null),(this[_0x5c0b6f(0x14b)]=_0x5992e2,this[_0x5c0b6f(0x1f2)]=_0x525e56,this[_0x5c0b6f(0x2ce)]=_0x21054f,this['_document']=_0x13cd9b,this[_0x5c0b6f(0x1d3)]());}set[_0x3bdab3(0x21c)](_0x4867c0){const _0x45cd13=_0x3bdab3;_0x4867c0?(this['_anchorDot']&&this[_0x45cd13(0xa7)][_0x45cd13(0x1c3)](),this['_textBubble']&&this[_0x45cd13(0xb0)][_0x45cd13(0x270)]()):(this['_anchorDot']&&this['_anchorDot']['show'](),this['_textBubble']&&this['_textBubble'][_0x45cd13(0x1c3)]());}['dispose'](){const _0x148ce7=_0x3bdab3;for(const _0x11ac2f of this[_0x148ce7(0x2e8)])_0x11ac2f[_0x148ce7(0x328)]();this['_textBubble']&&this['_textBubble'][_0x148ce7(0x328)](),this[_0x148ce7(0xa7)]&&this[_0x148ce7(0xa7)][_0x148ce7(0x328)](),this[_0x148ce7(0x178)]&&this[_0x148ce7(0x178)][_0x148ce7(0x328)](),this[_0x148ce7(0x2c6)]&&this[_0x148ce7(0x2c6)]();}[_0x3bdab3(0x1d3)](){const _0x36ac19=_0x3bdab3,{_docSkeleton:_0x42843a,_document:_0x40e051}=this,{color:_0x1ba968,name:_0x5100e5,ranges:_0xdadae6}=this[_0x36ac19(0x14b)],_0x25bd02=_0x40e051[_0x36ac19(0x1be)](),{docsLeft:_0x569092,docsTop:_0x36b213}=_0x25bd02,_0x3b3d55=new _0x7f1a71(_0x25bd02,_0x42843a);for(const {startOffset:_0x27d195,endOffset:_0x1ed8ad,collapsed:_0x42d57b,isActive:_0xf7a8a0}of _0xdadae6){const _0x1f860e=_0x42843a['findNodePositionByCharIndex'](_0x27d195),_0x109457=_0x42843a[_0x36ac19(0x331)](_0x1ed8ad);if(_0xf7a8a0){const {contentBoxPointGroup:_0x1293ce}=_0x3b3d55[_0x36ac19(0x16d)](_0x109457,_0x109457);if(_0x1293ce[_0x36ac19(0x2d9)]===0x0)continue;this['_drawAnchor'](_0x1ba968,_0x1293ce,_0x569092,_0x36b213,_0x5100e5),this[_0x36ac19(0x2c6)]=this['_handleHover']();}if(!_0x42d57b){const {contentBoxPointGroup:_0xa2f393}=_0x3b3d55[_0x36ac19(0x16d)](_0x1f860e,_0x109457);if(_0xa2f393[_0x36ac19(0x2d9)]===0x0)continue;this[_0x36ac19(0x1fe)](_0x1ba968,_0xa2f393,_0x569092,_0x36b213);}}}[_0x3bdab3(0x244)](_0x44c557,_0x261b0b,_0x137bf7,_0x25ee56,_0x52a59e){const _0x26f0dd=_0x3bdab3,_0x2eca0b=this[_0x26f0dd(0x340)](_0x261b0b),{left:_0x20e47c,top:_0x21c513,height:_0x4aae74}=_0x2eca0b,_0x764569=this[_0x26f0dd(0x2d8)](),_0x4c1b30=Kr/_0x764569,_0x2297e9=new _0x11ad62(nt+_0x572ff7[_0x26f0dd(0x206)](ye),{'left':_0x20e47c+_0x137bf7-_0x4c1b30,'top':_0x21c513+_0x25ee56,'height':_0x4aae74,'width':Yr,'fill':_0x44c557||_0x40bb34(_0x1d3c6f[_0x26f0dd(0x39f)],0x0),'strokeWidth':_0x4c1b30,'stroke':Xr,'evented':!0x0});this[_0x26f0dd(0x178)]=_0x2297e9,this['_scene'][_0x26f0dd(0xb5)](_0x2297e9,_0x2c9f4c);const _0x39c3ce=new _0x11ad62(nt+_0x572ff7['generateRandomId'](ye),{'left':_0x20e47c+_0x137bf7-_0x4c1b30,'top':_0x21c513+_0x25ee56-rt/0x2,'height':rt,'width':rt,'fill':_0x44c557||_0x40bb34(_0x1d3c6f['black'],0x0),'strokeWidth':0x0,'stroke':_0x44c557||_0x40bb34(_0x1d3c6f[_0x26f0dd(0x39f)],0x0),'evented':!0x1});this[_0x26f0dd(0xa7)]=_0x39c3ce,this['_scene']['addObject'](_0x39c3ce,_0x2c9f4c);const _0x3af038=new ze(nt+_0x572ff7['generateRandomId'](ye),{'left':_0x20e47c+_0x137bf7-_0x4c1b30,'top':_0x21c513+_0x25ee56-Oe,'text':_0x52a59e,'color':_0x44c557});this['_textBubble']=_0x3af038,this['_scene'][_0x26f0dd(0xb5)](_0x3af038,_0x2c9f4c),this[_0x26f0dd(0x21c)]=!0x1;}['_handleHover'](){const _0x202930=_0x3bdab3,_0x34448e=this['_anchor'][_0x202930(0x39e)][_0x202930(0x20d)](()=>{const _0x5628e9=_0x202930;this[_0x5628e9(0x21c)]=!0x0;}),_0x312ad0=this[_0x202930(0x178)]['onPointerLeaveObserver']['add'](()=>{const _0x2bfbe9=_0x202930;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x2bfbe9(0x2aa)]=setTimeout(()=>{const _0x57e09c=_0x2bfbe9;this[_0x57e09c(0x21c)]=!0x1;},0x7d0);});return()=>{const _0x1a232b=_0x202930;var _0x50625b,_0x214294;(_0x50625b=this[_0x1a232b(0x178)])==null||_0x50625b[_0x1a232b(0x39e)]['remove'](_0x34448e),(_0x214294=this['_anchor'])==null||_0x214294['onPointerLeaveObserver']['remove'](_0x312ad0);};}[_0x3bdab3(0x1fe)](_0x48993e,_0x3baae5,_0x44c78d,_0x5ed90f){const _0x3dda06=_0x3bdab3,_0x1ccf4b=new _0x2b14c0(_0x48993e)['setAlpha'](0.2)['toRgbString'](),_0x59206b=new _0x566c8a(Gr+_0x572ff7[_0x3dda06(0x206)](ye),{'pointsGroup':_0x3baae5,'fill':_0x1ccf4b||_0x40bb34(_0x1d3c6f[_0x3dda06(0x39f)],0.2),'left':_0x44c78d,'top':_0x5ed90f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3dda06(0x2e8)][_0x3dda06(0x37d)](_0x59206b),this['_scene'][_0x3dda06(0xb5)](_0x59206b,_0x2c9f4c);}[_0x3bdab3(0x340)](_0x54a251){const _0x2df4ed=_0x54a251[0x0],_0x7aaf24=_0x2df4ed[0x0],_0x5ade68=_0x2df4ed[0x2],{x:_0xbe71e6,y:_0x2bbcbc}=_0x7aaf24,{x:_0x329196,y:_0x46c027}=_0x5ade68;return{'left':_0xbe71e6,'top':_0x2bbcbc,'width':_0x329196-_0xbe71e6,'height':_0x46c027-_0x2bbcbc};}['_getScale'](){const _0x198957=_0x3bdab3,{scaleX:_0x2c9c3e,scaleY:_0x18fe99}=this[_0x198957(0x1f2)][_0x198957(0x21a)]();return Math['max'](_0x2c9c3e,_0x18fe99);}}var zr=Object['defineProperty'],Zr=Object['getOwnPropertyDescriptor'],qr=(_0x46778d,_0xf33646,_0x5dbb2b,_0x208b30)=>{const _0x17a85c=_0x3bdab3;for(var _0x5d20da=_0x208b30>0x1?void 0x0:_0x208b30?Zr(_0xf33646,_0x5dbb2b):_0xf33646,_0x529458=_0x46778d[_0x17a85c(0x2d9)]-0x1,_0x273374;_0x529458>=0x0;_0x529458--)(_0x273374=_0x46778d[_0x529458])&&(_0x5d20da=(_0x208b30?_0x273374(_0xf33646,_0x5dbb2b,_0x5d20da):_0x273374(_0x5d20da))||_0x5d20da);return _0x208b30&&_0x5d20da&&zr(_0xf33646,_0x5dbb2b,_0x5d20da),_0x5d20da;},Ie=(_0x11e327,_0xf09492)=>(_0x4e8e42,_0x428823)=>_0xf09492(_0x4e8e42,_0x428823,_0x11e327);let Fe=class extends _0x300f85{constructor(_0x4ba065,_0x553a73,_0x154538,_0x38428d,_0x1d1759){const _0x40582c=_0x3bdab3;super(),l(this,_0x40582c(0xf4),[]),(this['_collabCursorController']=_0x4ba065,this[_0x40582c(0xa4)]=_0x553a73,this[_0x40582c(0x2f6)]=_0x154538,this[_0x40582c(0x1ce)]=_0x38428d,this[_0x40582c(0x1d5)]=_0x1d1759,this[_0x40582c(0x10d)]());}[_0x3bdab3(0x10d)](){const _0x4dc9f3=_0x3bdab3;this[_0x4dc9f3(0x1ce)][_0x4dc9f3(0x351)]['pipe'](_0xdf0e3e(this['dispose$']),_0x40ba52(_0x2e62db=>{const _0x1b6c72=_0x4dc9f3;if(_0x2e62db){const {unitId:_0x691bd9}=_0x2e62db;return _0x499f91(this[_0x1b6c72(0x2e5)][_0x1b6c72(0x299)](_0x691bd9),this[_0x1b6c72(0x1d5)][_0x1b6c72(0x24f)])[_0x1b6c72(0x19c)](_0x5de95e(([_0x5537f8,_0x151f66])=>({'skeleton':_0x2e62db,'cursors':[..._0x5537f8['values']()][_0x1b6c72(0x112)](_0x1d1a3d=>({..._0x1d1a3d,'color':_0x151f66[_0x1d1a3d[_0x1b6c72(0x3b8)]]}))})));}return _0x442f94({'skeleton':null,'cursors':[]});}))[_0x4dc9f3(0x2b5)](({skeleton:_0x4a79ba,cursors:_0x55d6b1})=>{const _0x2a67d1=_0x4dc9f3;this['_removeCollabCursors'](),_0x4a79ba&&this[_0x2a67d1(0x231)](_0x4a79ba[_0x2a67d1(0x27b)],_0x55d6b1);});}[_0x3bdab3(0x231)](_0x21183d,_0x5a5923){const _0x2a2166=_0x3bdab3,_0x489ceb=this[_0x2a2166(0x320)]();if(_0x489ceb==null)return;const {scene:_0xfb8f80,document:_0x20f91b}=_0x489ceb,_0x1a2dfc=_0x5a5923[_0x2a2166(0x3bc)](_0x48f5d1=>new Jr(_0x48f5d1,_0xfb8f80,_0x21183d,_0x20f91b));this[_0x2a2166(0xf4)]=_0x1a2dfc;}[_0x3bdab3(0xae)](){const _0x4e4441=_0x3bdab3;this[_0x4e4441(0xf4)][_0x4e4441(0x2fa)](_0x306233=>_0x306233[_0x4e4441(0x328)]()),this['_cursors']=[];}[_0x3bdab3(0x320)](){const _0x58a40c=_0x3bdab3;return _0x3089e4(this[_0x58a40c(0xa4)],this[_0x58a40c(0x2f6)]);}};Fe=qr([_0x516125(_0x3c792f['Steady'],Fe),Ie(0x0,_0x279e5b(ue)),Ie(0x1,_0x173bd8),Ie(0x2,_0x4c72a4),Ie(0x3,_0x279e5b(_0x27e0a0)),Ie(0x4,_0x279e5b(_0x588548))],Fe);var Qr=Object[_0x3bdab3(0x162)],eo=Object[_0x3bdab3(0x123)],to=(_0x503343,_0xa8678c,_0x7b8978,_0x1ce810)=>{const _0x355756=_0x3bdab3;for(var _0x1b0b5a=_0x1ce810>0x1?void 0x0:_0x1ce810?eo(_0xa8678c,_0x7b8978):_0xa8678c,_0x8a8642=_0x503343[_0x355756(0x2d9)]-0x1,_0x50a0b0;_0x8a8642>=0x0;_0x8a8642--)(_0x50a0b0=_0x503343[_0x8a8642])&&(_0x1b0b5a=(_0x1ce810?_0x50a0b0(_0xa8678c,_0x7b8978,_0x1b0b5a):_0x50a0b0(_0x1b0b5a))||_0x1b0b5a);return _0x1ce810&&_0x1b0b5a&&Qr(_0xa8678c,_0x7b8978,_0x1b0b5a),_0x1b0b5a;},ot=(_0x2b560f,_0x2bc018)=>(_0x2de406,_0x135d1c)=>_0x2bc018(_0x2de406,_0x135d1c,_0x2b560f);let Ge=class{constructor(_0x9016e5,_0x3bc5ed,_0x490a76){const _0x45be07=_0x3bdab3;this[_0x45be07(0x1bd)]=_0x9016e5,this[_0x45be07(0x155)]=_0x3bc5ed,this[_0x45be07(0x235)]=_0x490a76,this['init']();}[_0x3bdab3(0x220)](){const _0xb273ff=_0x3bdab3;this[_0xb273ff(0x155)][_0xb273ff(0x379)]({'priority':0x1,'interceptor':(_0x4d17f9,_0x275dfc)=>_0x275dfc(_0x4d17f9)[_0xb273ff(0x19c)](_0x3298d9(async _0x406936=>{const _0x4fab63=_0xb273ff,_0x520cea=_0x406936;if(_0x520cea[_0x4fab63(0x186)]===0x191&&window[_0x4fab63(0x1d2)](this[_0x4fab63(0x235)]['t'](_0x4fab63(0x1ed)))){const _0x329f71=window[_0x4fab63(0x15d)](window['location']['href']);window[_0x4fab63(0x1a5)][_0x4fab63(0x33e)]=this['_getLoginPath']()+_0x4fab63(0x9e)+_0x329f71;}return _0x520cea;}))});}[_0x3bdab3(0xbd)](){const _0x28b238=_0x3bdab3;var _0x2e8b67;return(_0x2e8b67=this[_0x28b238(0x1bd)]['getConfig'](cn))!=null?_0x2e8b67:hn;}};Ge=to([ot(0x0,_0x37d874),ot(0x1,_0x279e5b(_0x24b00a)),ot(0x2,_0x279e5b(_0x25e6c6))],Ge);var so=Object[_0x3bdab3(0x162)],io=Object[_0x3bdab3(0x123)],no=(_0x339a3d,_0x2530d1,_0x5f501c,_0x57741a)=>{const _0x6ecb3f=_0x3bdab3;for(var _0x1230b7=_0x57741a>0x1?void 0x0:_0x57741a?io(_0x2530d1,_0x5f501c):_0x2530d1,_0x4172d6=_0x339a3d[_0x6ecb3f(0x2d9)]-0x1,_0x36b2d7;_0x4172d6>=0x0;_0x4172d6--)(_0x36b2d7=_0x339a3d[_0x4172d6])&&(_0x1230b7=(_0x57741a?_0x36b2d7(_0x2530d1,_0x5f501c,_0x1230b7):_0x36b2d7(_0x1230b7))||_0x1230b7);return _0x57741a&&_0x1230b7&&so(_0x2530d1,_0x5f501c,_0x1230b7),_0x1230b7;},es=(_0x38b965,_0x548387)=>(_0x6f7d69,_0x7ec24e)=>_0x548387(_0x6f7d69,_0x7ec24e,_0x38b965);const ro='AUTHZ_URL_KEY',oo=_0x3bdab3(0x1b5);let pt=class{constructor(_0x522a22,_0x409fe5){const _0x3fa0df=_0x3bdab3;this[_0x3fa0df(0x31f)]=_0x522a22,this[_0x3fa0df(0x1bd)]=_0x409fe5;}[_0x3bdab3(0x2e9)](){const _0x3b61c6=_0x3bdab3;var _0x2be8c7;return(_0x2be8c7=this[_0x3b61c6(0x1bd)]['getConfig'](ro))!=null?_0x2be8c7:oo;}async[_0x3bdab3(0x3a7)](_0x533204){const _0x356724=_0x3bdab3,_0x3b6d6e=this[_0x356724(0x2e9)]()+'/'+_0x533204['objectType']+_0x356724(0x21f);return(await this[_0x356724(0x31f)]['post'](_0x3b6d6e,{'body':_0x533204}))[_0x356724(0xf0)][_0x356724(0x187)]||'';}async['list'](_0x3af812){const _0x669341=_0x3bdab3,_0x15c7c6=this[_0x669341(0x2e9)]()+_0x669341(0x2e0);return(await this['_HTTPService']['post'](_0x15c7c6,{'body':_0x3af812}))['body'][_0x669341(0x388)];}async['update'](_0x7c2612){const _0xf514fa=_0x3bdab3,_0xc29f22=this['_getAPIPrefixPath']()+'/'+_0x7c2612['objectType']+_0xf514fa(0x3b7)+_0x7c2612[_0xf514fa(0x187)];await this[_0xf514fa(0x31f)]['put'](_0xc29f22,{'body':_0x7c2612});}async[_0x3bdab3(0x18b)](_0x47954a){const _0x1cb7d8=_0x3bdab3,_0x340fc3=this[_0x1cb7d8(0x2e9)]()+'/'+_0x47954a[_0x1cb7d8(0x180)]+_0x1cb7d8(0x3b7)+_0x47954a[_0x1cb7d8(0x187)]+'/allowed';return(await this[_0x1cb7d8(0x31f)][_0x1cb7d8(0xc7)](_0x340fc3,{'body':_0x47954a}))['body'][_0x1cb7d8(0x303)];}async[_0x3bdab3(0x1d9)](_0x3fdf7a){const _0x431228=_0x3bdab3,_0x7e9719=this['_getAPIPrefixPath']()+_0x431228(0x1f6);return(await this[_0x431228(0x31f)][_0x431228(0xc7)](_0x7e9719,{'body':{'requests':_0x3fdf7a}}))[_0x431228(0xf0)][_0x431228(0x25d)];}async[_0x3bdab3(0x269)](_0x2a7ad7){const _0x1a4662=_0x3bdab3,_0x4e35b8=this[_0x1a4662(0x2e9)]()+'/'+_0x2a7ad7['objectType']+_0x1a4662(0x291),_0x399fe2=await this['_HTTPService'][_0x1a4662(0xc7)](_0x4e35b8,{'body':_0x2a7ad7});return{'roles':_0x399fe2[_0x1a4662(0xf0)][_0x1a4662(0x1b7)],'actions':_0x399fe2[_0x1a4662(0xf0)]['actions']};}async[_0x3bdab3(0x17a)](_0x2371ef){const _0x240ef2=_0x3bdab3,_0x23636d=this[_0x240ef2(0x2e9)]()+_0x240ef2(0xa2);await this['_HTTPService'][_0x240ef2(0xfc)](_0x23636d,{'params':{'collaboratorID':_0x2371ef[_0x240ef2(0x2b6)],'objectID':_0x2371ef[_0x240ef2(0x187)],'unitID':_0x2371ef[_0x240ef2(0x227)]}});}async[_0x3bdab3(0x20a)](_0x1e1f52){const _0x4fa762=_0x3bdab3,_0x2ba686=this[_0x4fa762(0x2e9)]()+_0x4fa762(0xa2);await this[_0x4fa762(0x31f)][_0x4fa762(0x385)](_0x2ba686,{'body':_0x1e1f52});}async['createCollaborator'](_0x5d5e30){const _0x44a461=_0x3bdab3,_0x2c0641=this[_0x44a461(0x2e9)]()+_0x44a461(0xa2);await this[_0x44a461(0x31f)][_0x44a461(0xc7)](_0x2c0641,{'body':_0x5d5e30});}async[_0x3bdab3(0x1f8)](_0x16a140){const _0x4ee5fa=_0x3bdab3,_0x415545=this[_0x4ee5fa(0x2e9)]()+_0x4ee5fa(0xa2);return(await this[_0x4ee5fa(0x31f)][_0x4ee5fa(0x132)](_0x415545,{'params':{'objectID':_0x16a140[_0x4ee5fa(0x187)],'unitID':_0x16a140[_0x4ee5fa(0x227)]}}))[_0x4ee5fa(0xf0)][_0x4ee5fa(0xce)];}async[_0x3bdab3(0x1cd)](_0x305d70){const _0x21c861=_0x3bdab3,_0x4528d0=this[_0x21c861(0x2e9)]()+_0x21c861(0xa2);await this[_0x21c861(0x31f)]['put'](_0x4528d0,{'body':_0x305d70});}};pt=no([es(0x0,_0x279e5b(_0x24b00a)),es(0x1,_0x279e5b(_0x37d874))],pt);var ao=Object[_0x3bdab3(0x162)],co=Object[_0x3bdab3(0x123)],ho=(_0x2e5d8e,_0x55ac98,_0x20bc82,_0x9eb0a1)=>{for(var _0x1f1e1a=_0x9eb0a1>0x1?void 0x0:_0x9eb0a1?co(_0x55ac98,_0x20bc82):_0x55ac98,_0x2c9e3f=_0x2e5d8e['length']-0x1,_0x17a2cf;_0x2c9e3f>=0x0;_0x2c9e3f--)(_0x17a2cf=_0x2e5d8e[_0x2c9e3f])&&(_0x1f1e1a=(_0x9eb0a1?_0x17a2cf(_0x55ac98,_0x20bc82,_0x1f1e1a):_0x17a2cf(_0x1f1e1a))||_0x1f1e1a);return _0x9eb0a1&&_0x1f1e1a&&ao(_0x55ac98,_0x20bc82,_0x1f1e1a),_0x1f1e1a;},ts=(_0x2b1011,_0x2acdbb)=>(_0x1825d8,_0x35ce8a)=>_0x2acdbb(_0x1825d8,_0x35ce8a,_0x2b1011);const lo=[_0x3bdab3(0x318),_0x3bdab3(0x27d),_0x3bdab3(0x1d1),_0x3bdab3(0x2d1),_0x3bdab3(0x1e7)],_o=0x5*0x400*0x400,uo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',fo=_0x3bdab3(0x30e),go=_0x3bdab3(0x16f),mo=_0x3bdab3(0x3ba);let It=class{constructor(_0x34b4f7,_0x5d2be2){const _0x516033=_0x3bdab3;l(this,_0x516033(0x239),0x0),l(this,_0x516033(0x359),new _0x4a8f66()),l(this,'change$',this[_0x516033(0x359)]),l(this,_0x516033(0x35b),new Map()),(this[_0x516033(0x155)]=_0x34b4f7,this[_0x516033(0x1bd)]=_0x5d2be2);}['setWaitCount'](_0x44cdc9){const _0x43a589=_0x3bdab3;this[_0x43a589(0x239)]=_0x44cdc9,this[_0x43a589(0x359)][_0x43a589(0x1c7)](_0x44cdc9);}[_0x3bdab3(0x31b)](_0x4328b6,_0x38a4e0){const _0x7734d5=_0x3bdab3;if(_0x38a4e0===_0xd025b9[_0x7734d5(0x19f)]){const _0x10aee9=new Image();return _0x10aee9[_0x7734d5(0x11d)]=_0x4328b6,_0x10aee9;}return this[_0x7734d5(0x35b)][_0x7734d5(0x132)](_0x4328b6);}[_0x3bdab3(0x315)](_0x173b95,_0x135ab2,_0x2f4d53){const _0x50590c=_0x3bdab3;_0x135ab2===_0xd025b9[_0x50590c(0x19f)]||_0x2f4d53==null||this['_imageSourceCache']['set'](_0x173b95,_0x2f4d53);}async[_0x3bdab3(0x2e1)](_0x48a3e7){const _0x235155=_0x3bdab3;try{const _0x3b1761=this[_0x235155(0x1ae)](this['_getSignURL'](),''+_0x48a3e7),_0x4cd1f1=(await this['_httpService'][_0x235155(0x132)](_0x3b1761))[_0x235155(0xf0)];return _0x4cd1f1[_0x235155(0x127)]&&_0x4cd1f1[_0x235155(0x127)]['code']===Es['OK']?Promise[_0x235155(0x181)](_0x4cd1f1[_0x235155(0xfa)]):Promise['reject'](_0x4cd1f1['error']);}catch(_0x23dd84){return Promise[_0x235155(0x313)](_0x23dd84);}}async[_0x3bdab3(0xf2)](_0x45f882){const _0x3a602b=_0x3bdab3;let _0x54301a='';if(!lo[_0x3a602b(0x1bb)](_0x45f882[_0x3a602b(0x2ec)]))return this['_decreaseWaiting'](),Promise[_0x3a602b(0x313)](new Error(_0x34894f['ERROR_IMAGE_TYPE']));if(_0x45f882[_0x3a602b(0x316)]>_o)return this['_decreaseWaiting'](),Promise[_0x3a602b(0x313)](new Error(_0x34894f[_0x3a602b(0x262)]));try{const _0x1c235d=new FormData();_0x1c235d[_0x3a602b(0x201)]('file',_0x45f882);const _0x31dcb4=this[_0x3a602b(0x37b)]()+_0x3a602b(0x376)+_0x45f882[_0x3a602b(0x316)]['toString'](),_0x183b5c=await(await fetch(_0x31dcb4,{'method':'POST','body':_0x1c235d}))[_0x3a602b(0xb6)]();if(typeof _0x183b5c['FileId']!=_0x3a602b(0x304))return this[_0x3a602b(0x3a3)](),Promise[_0x3a602b(0x313)](new Error(_0x34894f['ERROR_IMAGE']));_0x54301a=_0x183b5c[_0x3a602b(0x2fe)];}catch{return this[_0x3a602b(0x3a3)](),Promise[_0x3a602b(0x313)](new Error(_0x34894f['ERROR_IMAGE']));}return new Promise((_0x2e835f,_0x1e95c0)=>{const _0x37173f=_0x3a602b,_0x345a78=new FileReader();_0x345a78['readAsDataURL'](_0x45f882),_0x345a78[_0x37173f(0x102)]=_0x7090d5=>{const _0x2140ca=_0x37173f;var _0x61709e;const _0x2abbc1=(_0x61709e=_0x7090d5['target'])==null?void 0x0:_0x61709e[_0x2140ca(0x20c)];if(_0x2abbc1==null){this[_0x2140ca(0x3a3)](),_0x1e95c0(new Error(_0x34894f[_0x2140ca(0x2f2)]));return;}const _0x287ac6=_0x572ff7[_0x2140ca(0x206)](0x6);_0x2e835f({'imageId':_0x287ac6,'imageSourceType':_0xd025b9[_0x2140ca(0x26b)],'source':_0x54301a,'base64Cache':_0x2abbc1,'status':_0x34894f[_0x2140ca(0xaf)]}),this[_0x2140ca(0x3a3)]();};});}[_0x3bdab3(0x37b)](){const _0x13ac52=_0x3bdab3;var _0x3fd8d0;return(_0x3fd8d0=this[_0x13ac52(0x1bd)][_0x13ac52(0x384)](uo))!=null?_0x3fd8d0:fo;}['_getSignURL'](){const _0x443698=_0x3bdab3;var _0x10f05e;return(_0x10f05e=this['_configService'][_0x443698(0x384)](go))!=null?_0x10f05e:mo;}[_0x3bdab3(0x1ae)](_0x378ad5,_0x4e376a){const _0x4f529b=_0x3bdab3;return _0x378ad5[_0x4f529b(0x329)](_0x4f529b(0x32b),_0x4e376a);}['_decreaseWaiting'](){const _0x5eae37=_0x3bdab3;this['_waitCount']-=0x1,this[_0x5eae37(0x359)][_0x5eae37(0x1c7)](this[_0x5eae37(0x239)]);}};It=ho([ts(0x0,_0x279e5b(_0x24b00a)),ts(0x1,_0x37d874)],It);var Ms=Object[_0x3bdab3(0x162)],So=Object[_0x3bdab3(0x123)],vo=(_0x57f6e0,_0x14942e,_0x26b31c)=>_0x14942e in _0x57f6e0?Ms(_0x57f6e0,_0x14942e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26b31c}):_0x57f6e0[_0x14942e]=_0x26b31c,po=(_0x3e1028,_0x2a1d78,_0x4c579f,_0x5ca8fb)=>{const _0x3ff3f2=_0x3bdab3;for(var _0x1c107c=_0x5ca8fb>0x1?void 0x0:_0x5ca8fb?So(_0x2a1d78,_0x4c579f):_0x2a1d78,_0x42961f=_0x3e1028[_0x3ff3f2(0x2d9)]-0x1,_0x13bb0b;_0x42961f>=0x0;_0x42961f--)(_0x13bb0b=_0x3e1028[_0x42961f])&&(_0x1c107c=(_0x5ca8fb?_0x13bb0b(_0x2a1d78,_0x4c579f,_0x1c107c):_0x13bb0b(_0x1c107c))||_0x1c107c);return _0x5ca8fb&&_0x1c107c&&Ms(_0x2a1d78,_0x4c579f,_0x1c107c),_0x1c107c;},ss=(_0x4d2df8,_0x5ba593)=>(_0x343e92,_0x43c30f)=>_0x5ba593(_0x343e92,_0x43c30f,_0x4d2df8),Io=(_0x41490d,_0x4772e0,_0x39d4d5)=>vo(_0x41490d,_0x4772e0+'',_0x39d4d5);const Eo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Et=class extends _0x454bd9{constructor(_0x50f370,_0x5e2bc3,_0x4fe1d0){const _0x299922=_0x3bdab3;super(),this[_0x299922(0x1d6)]=_0x50f370,this['_logService']=_0x5e2bc3,this[_0x299922(0x191)]=_0x4fe1d0;}[_0x3bdab3(0x1f1)](_0x1cd171){const _0x6fdb6b=_0x3bdab3;var _0x4307da,_0x2d0d3c,_0x49da95,_0x20ffeb,_0x38c5ac;_0x1cd171[_0x6fdb6b(0x27c)](_0x1de145)&&this['_logService'][_0x6fdb6b(0x127)](_0x6fdb6b(0x238),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3fb711=[[_0x1de145,{'useClass':vt}],[Re],[At],[_0x24b00a],[Ns,{'useClass':Wr}],[ee],[D],[_0x2a4381],[Ve],[Be],[ke],[Mt],[Ge],[Cs,{'useClass':(_0x2d0d3c=(_0x4307da=this[_0x6fdb6b(0x1d6)])==null?void 0x0:_0x4307da[_0x6fdb6b(0x346)])!=null?_0x2d0d3c:_t}],[_0x3ebb40,{'useClass':_0x5cf0a1}],[_0x4d41e7,{'useClass':St}],[_0x26ad23,{'useClass':pt}],[_0x401699,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x49da95=this[_0x6fdb6b(0x1d6)])!=null&&_0x49da95['enableSingleActiveInstanceLock']&&_0x3fb711['push']([Xe,{'useClass':Tn}]),((_0x20ffeb=this[_0x6fdb6b(0x1d6)])==null?void 0x0:_0x20ffeb[_0x6fdb6b(0x30b)])==null||this[_0x6fdb6b(0x1d6)]['collaborationUniverTypes'][_0x6fdb6b(0x1bb)](_0x3ba52b[_0x6fdb6b(0x38c)])?_0x3fb711['push']([$e]):this[_0x6fdb6b(0x1d6)][_0x6fdb6b(0x30b)][_0x6fdb6b(0x1bb)](_0x3ba52b[_0x6fdb6b(0x1a4)])&&_0x3fb711[_0x6fdb6b(0x37d)]([Fe]),_0x3fb711=_0xfb808f(_0x3fb711,(_0x38c5ac=this[_0x6fdb6b(0x1d6)])==null?void 0x0:_0x38c5ac[_0x6fdb6b(0x1dd)]),_0x3fb711[_0x6fdb6b(0x2fa)](_0x52ef60=>_0x1cd171[_0x6fdb6b(0x20d)](_0x52ef60)),_0x1cd171[_0x6fdb6b(0x132)](_0x24b00a)[_0x6fdb6b(0x379)]({'priority':0x14,'interceptor':_0x344db4({'maxParallel':0x6})}),this[_0x6fdb6b(0x311)]();}[_0x3bdab3(0x311)](){const _0x44b14b=_0x3bdab3;var _0x4ee39f,_0x4af391;(_0x4ee39f=this[_0x44b14b(0x1d6)])!=null&&_0x4ee39f[_0x44b14b(0x265)]||this[_0x44b14b(0x191)][_0x44b14b(0x132)](D)[_0x44b14b(0x2e6)](),(_0x4af391=this[_0x44b14b(0x1d6)])!=null&&_0x4af391[_0x44b14b(0xd1)]&&this[_0x44b14b(0x191)][_0x44b14b(0x132)](Ge);}};Io(Et,'pluginName',Eo),Et=po([_0x11cd6(_0x40a55a),ss(0x1,_0x2cecb4),ss(0x2,_0x279e5b(_0x5df577))],Et);export{ro as AUTHZ_URL_KEY,pt as AuthzIoHttpService,on as COLLAB_SUBMIT_CHANGESET_URL_KEY,Ji as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Tr as CollaborationStatusDisplay,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,Zi as HEARTBEAT_INTERVAL_KEY,ps as HEARTBEAT_TIMEOUT_KEY,Cs as ICollaborationSocketService,Ns as IURLService,nn as LOCAL_CACHE_INTERVAL_KEY,cn as LOGIN_URL_KEY,D as LocalCacheService,Ki as SEND_CHANGESET_TIMEOUT_KEY,Wi as SNAPSHOT_SERVER_URL_KEY,Yi as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Wr as WebURLService,fn as deserializeToCombResponse,gn as serializeCombRequest};
|