@univerjs-pro/collaboration-client 0.2.3 → 0.2.4

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3e92f2=_0x4256;(function(_0x13a191,_0x24fce6){const _0x43acda=_0x4256,_0x445299=_0x13a191();while(!![]){try{const _0x2e3a8c=-parseInt(_0x43acda(0x479))/0x1*(parseInt(_0x43acda(0x2a1))/0x2)+-parseInt(_0x43acda(0x435))/0x3*(-parseInt(_0x43acda(0x22d))/0x4)+-parseInt(_0x43acda(0x359))/0x5+parseInt(_0x43acda(0x2d8))/0x6*(parseInt(_0x43acda(0x40f))/0x7)+parseInt(_0x43acda(0x34d))/0x8*(parseInt(_0x43acda(0x1cf))/0x9)+parseInt(_0x43acda(0x3ef))/0xa*(-parseInt(_0x43acda(0x2d1))/0xb)+parseInt(_0x43acda(0x277))/0xc*(parseInt(_0x43acda(0x490))/0xd);if(_0x2e3a8c===_0x24fce6)break;else _0x445299['push'](_0x445299['shift']());}catch(_0x29a30c){_0x445299['push'](_0x445299['shift']());}}}(_0x2c8c,0xd7d6b));var Bs=Object['defineProperty'],ks=(_0x4961ee,_0x1ad393,_0x441496)=>_0x1ad393 in _0x4961ee?Bs(_0x4961ee,_0x1ad393,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x441496}):_0x4961ee[_0x1ad393]=_0x441496,l=(_0xc67931,_0x4d29b5,_0x38bb2e)=>ks(_0xc67931,typeof _0x4d29b5!=_0x3e92f2(0x399)?_0x4d29b5+'':_0x4d29b5,_0x38bb2e);import{Disposable as _0x1f0611,toDisposable as _0x38ac23,UniverInstanceType as _0x41ddf6,UserManagerService as _0x3614dc,IUniverInstanceService as _0x5f1ae0,DisposableCollection as _0x10ad9e,IConfigService as _0x523c70,ILogService as _0x46d807,ISnapshotServerService as _0x4e0f91,RxDisposable as _0x4c153b,LocaleService as _0x6789ab,ILocalStorageService as _0x1dfb89,Tools as _0x545ca3,ICommandService as _0x109aa8,JSONX as _0x578d98,IPermissionService as _0x4acf08,IUndoRedoService as _0x1e106e,sequenceExecute as _0x32c463,OnLifecycle as _0x405ab3,LifecycleStages as _0x57f2ea,CommandType as _0x1a41da,Rectangle as _0x301c8d,ThemeService as _0x441ca9,Workbook as _0x15b410,textEncoder as _0x518061,b64DecodeUnicode as _0x2439d9,LocalUndoRedoService as _0x13c2f6,IContextService as _0x114c9b,COLORS as _0x45d551,ColorKit as _0xbc8d5d,isInternalEditorID as _0x3ee33a,Plugin as _0x5e7441,IAuthzIoService as _0x309336,mergeOverrideWithDependencies as _0x2625cc,DependentOn as _0x35cc39}from'@univerjs/core';import{SheetsSelectionsService as _0xebd730,SetSelectionsOperation as _0x594d48,InsertSheetMutation as _0x37a75d,WorkbookEditablePermission as _0xd881f1,RefRangeService as _0x4071b4,EffectRefRangId as _0x1d561a,handleIRemoveRow as _0x58d14e,handleIRemoveCol as _0x46dbc2,handleMoveRange as _0x342dcd,handleInsertRow as _0xf69406,handleInsertRangeMoveRight as _0x41ab06,handleInsertRangeMoveDown as _0x324941,handleInsertCol as _0x392388,handleDeleteRangeMoveUp as _0x2558df,handleDeleteRangeMoveLeft as _0x374c46,runRefRangeMutations as _0x4b852b,SetWorksheetActivateCommand as _0x19d32b}from'@univerjs/sheets';import{MessageType as _0x4f4f06}from'@univerjs/design';import{IBeforeCloseService as _0x17e6fa,IMessageService as _0x5cfd22,INotificationService as _0x47f284,useObservable as _0x26ca96,BuiltInUIPart as _0x4f2b7f,IUIPartsService as _0x49a90c}from'@univerjs/ui';import{CollaborationEvent as _0x34e231,parseChangesetToProtocol as _0x24de41,RevisionService as _0xee930,isTransformMutationFailure as _0x3d6701,isTransformMutationsWithChangesetSuccess as _0x496a31,ITransformService as _0x1b279b,mapDocumentTypeToUniverType as _0x50ce5b,isTransformChangesetsSuccess as _0x27db11,CompressMutationService as _0x59ec89,parseProtocolChangeset as _0x3d7418,SnapshotService as _0x4d5681,isTransformMutationsWithChangesetFailure as _0x27cfca,UniverCollaborationPlugin as _0x5d8040}from'@univerjs-pro/collaboration';import{Inject as _0xbbf94a,createIdentifier as _0x3195f2,Injector as _0xa8f435,Optional as _0x3668b1}from'@wendellhu/redi';import{merge as _0x2b9a75,Subject as _0x440796,BehaviorSubject as _0x4d79d8,distinctUntilChanged as _0x569a4b,fromEvent as _0x236f67,of as _0x53ae42,takeUntil as _0x254c9c,debounceTime as _0x445532,filter as _0x56fcf7,switchMap as _0x10f218,combineLatest as _0x1d32ee,shareReplay as _0x839af7,mapTo as _0x582e14,concatMap as _0x4df13e}from'rxjs';import{map as _0x4ed52e,takeUntil as _0x8dafd9,take as _0x401b81,filter as _0x5e91b7,delay as _0x392c2d,shareReplay as _0x5d4314,switchMap as _0x3bc552}from'rxjs/operators';import{IMEInputManagerService as _0x3a8219,TextSelectionManagerService as _0x3781de,serializeTextRange as _0x167840,DocStateChangeManagerService as _0x250a10,SetTextSelectionsOperation as _0x13752b,RichTextEditingMutation as _0x403372,getDocObject as _0x14e6b6,DocSkeletonManagerService as _0x1e7be0}from'@univerjs/docs';import{HTTPService as _0x50f6b0,WebSocketService as _0x412516,IHTTPImplementation as _0x41641e,XHRHTTPImplementation as _0x4fc2a5,ThresholdInterceptorFactory as _0x43aece}from'@univerjs/network';import{ImageSourceType as _0x1f9734,ImageUploadStatusType as _0x1df9e0,IImageIoService as _0xb0775}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2565bd,serializeRangeWithSheet as _0x4aaaf4}from'@univerjs/engine-formula';import _0x561342 from'lodash/debounce';import{Shape as _0x28d65b,Rect as _0x1385ec,Vector2 as _0x20338b,IRenderManagerService as _0x5bdf6a,NodePositionConvertToCursor as _0xc0d7bf,getColor as _0x5afff8,TEXT_RANGE_LAYER_INDEX as _0x563281,RegularPolygon as _0x49179d}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x171d84,VIEWPORT_KEY as _0x30f673,getCoordByCell as _0x387ce0,getSheetObject as _0xa91384,SheetPermissionInitController as _0x368f1a}from'@univerjs/sheets-ui';import{useDependency as _0x1e1af6,connectInjector as _0x5396b8}from'@wendellhu/redi/react-bindings';import _0x12e564,{forwardRef as _0xa872f9,useRef as _0x562615,createElement as _0x405505}from'react';import _0x3f0cf9 from'clsx';import{IRemoteInstanceService as _0x2066c7}from'@univerjs/rpc';const Ji='SNAPSHOT_SERVER_URL_KEY',zi='/universer-api/snapshot',qi='SNAPSHOT_URL_KEY',Zi=_0x3e92f2(0x25c),Qi=0x7d0,en=_0x3e92f2(0x454),tn=_0x3e92f2(0x3fa),sn=_0x3e92f2(0x1e0),nn=0x7530,bs=_0x3e92f2(0x334),Ts=0x2710,rn=_0x3e92f2(0x2ff),on=0x4e20,an=_0x3e92f2(0x3ec),cn=0x3,hn=_0x3e92f2(0x23a),ln=0x3e8,_n=_0x3e92f2(0x44b),un='/universer-api/comb',dn='LOGIN_URL_KEY',fn=_0x3e92f2(0x2ea);var Rs=(_0x4292e7=>(_0x4292e7[_0x4292e7[_0x3e92f2(0x3c8)]=0x0]=_0x3e92f2(0x3c8),_0x4292e7[_0x4292e7['OK']=0x1]='OK',_0x4292e7[_0x4292e7[_0x3e92f2(0x4a6)]=0x2]=_0x3e92f2(0x4a6),_0x4292e7[_0x4292e7[_0x3e92f2(0x224)]=0x3]=_0x3e92f2(0x224),_0x4292e7[_0x4292e7[_0x3e92f2(0x426)]=0x4]=_0x3e92f2(0x426),_0x4292e7[_0x4292e7[_0x3e92f2(0x234)]=0x5]=_0x3e92f2(0x234),_0x4292e7[_0x4292e7['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x4292e7[_0x4292e7['INVALID_ARGUMENT']=0x7]=_0x3e92f2(0x46a),_0x4292e7[_0x4292e7[_0x3e92f2(0x381)]=0x8]=_0x3e92f2(0x381),_0x4292e7[_0x4292e7['COMPLETION_FINISHED']=0x9]=_0x3e92f2(0x429),_0x4292e7[_0x4292e7[_0x3e92f2(0x320)]=0x1389]=_0x3e92f2(0x320),_0x4292e7[_0x4292e7[_0x3e92f2(0x3f3)]=0x1771]=_0x3e92f2(0x3f3),_0x4292e7[_0x4292e7['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3e92f2(0x363),_0x4292e7[_0x4292e7[_0x3e92f2(0x24f)]=0x1b59]=_0x3e92f2(0x24f),_0x4292e7[_0x4292e7[_0x3e92f2(0x31b)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4292e7[_0x4292e7[_0x3e92f2(0x281)]=0x1b5b]=_0x3e92f2(0x281),_0x4292e7[_0x4292e7['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3e92f2(0x247),_0x4292e7[_0x4292e7[_0x3e92f2(0x228)]=0x1f41]=_0x3e92f2(0x228),_0x4292e7[_0x4292e7['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3e92f2(0x2ae),_0x4292e7[_0x4292e7[_0x3e92f2(0x1c8)]=0x232a]=_0x3e92f2(0x1c8),_0x4292e7[_0x4292e7[_0x3e92f2(0x27a)]=0x232b]=_0x3e92f2(0x27a),_0x4292e7[_0x4292e7['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3e92f2(0x254),_0x4292e7[_0x4292e7[_0x3e92f2(0x39d)]=0x232d]=_0x3e92f2(0x39d),_0x4292e7[_0x4292e7[_0x3e92f2(0x23d)]=0x2711]=_0x3e92f2(0x23d),_0x4292e7[_0x4292e7[_0x3e92f2(0x47c)]=0x2712]=_0x3e92f2(0x47c),_0x4292e7[_0x4292e7[_0x3e92f2(0x4ad)]=-0x1]=_0x3e92f2(0x4ad),_0x4292e7))(Rs||{}),H=(_0x110c19=>(_0x110c19[_0x110c19[_0x3e92f2(0x1b6)]=0x0]=_0x3e92f2(0x1b6),_0x110c19[_0x110c19['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x110c19[_0x110c19[_0x3e92f2(0x241)]=0x2]='UNIVER_SHEET',_0x110c19[_0x110c19[_0x3e92f2(0x1c3)]=0x3]=_0x3e92f2(0x1c3),_0x110c19[_0x110c19[_0x3e92f2(0x4ad)]=-0x1]='UNRECOGNIZED',_0x110c19))(H||{}),I=(_0xf4b10e=>(_0xf4b10e[_0xf4b10e[_0x3e92f2(0x22c)]=0x0]='UNKNOWN_CMD',_0xf4b10e[_0xf4b10e['HELLO']=0x1]=_0x3e92f2(0x425),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x481)]=0x2]=_0x3e92f2(0x481),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x393)]=0x3]=_0x3e92f2(0x393),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x32f)]=0x4]=_0x3e92f2(0x32f),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x29a)]=0x5]=_0x3e92f2(0x29a),_0xf4b10e[_0xf4b10e[_0x3e92f2(0x3fd)]=0x6]='RECV',_0xf4b10e[_0xf4b10e[_0x3e92f2(0x4ad)]=-0x1]='UNRECOGNIZED',_0xf4b10e))(I||{}),Ut=(_0x14f64f=>(_0x14f64f[_0x14f64f[_0x3e92f2(0x2c8)]=0x0]=_0x3e92f2(0x2c8),_0x14f64f[_0x14f64f['OK']=0x1]='OK',_0x14f64f[_0x14f64f[_0x3e92f2(0x3a4)]=0x2]=_0x3e92f2(0x3a4),_0x14f64f[_0x14f64f['UNRECOGNIZED']=-0x1]=_0x3e92f2(0x4ad),_0x14f64f))(Ut||{}),mn=Object[_0x3e92f2(0x340)],gn=Object[_0x3e92f2(0x2d2)],Sn=(_0x10e421,_0x47da6d,_0x26fcc3,_0x3d1347)=>{for(var _0x3533ee=_0x3d1347>0x1?void 0x0:_0x3d1347?gn(_0x47da6d,_0x26fcc3):_0x47da6d,_0x538221=_0x10e421['length']-0x1,_0x3f26e5;_0x538221>=0x0;_0x538221--)(_0x3f26e5=_0x10e421[_0x538221])&&(_0x3533ee=(_0x3d1347?_0x3f26e5(_0x47da6d,_0x26fcc3,_0x3533ee):_0x3f26e5(_0x3533ee))||_0x3533ee);return _0x3d1347&&_0x3533ee&&mn(_0x47da6d,_0x26fcc3,_0x3533ee),_0x3533ee;},Kt=(_0x5ceb11,_0x2df306)=>(_0x180c23,_0x23ce03)=>_0x2df306(_0x180c23,_0x23ce03,_0x5ceb11);let ne=class extends _0x1f0611{constructor(_0x547e7a,_0x5312e1){const _0x11dcaf=_0x3e92f2;super(),l(this,_0x11dcaf(0x398),new Map()),(this[_0x11dcaf(0x1ef)]=_0x547e7a,this[_0x11dcaf(0x2f3)]=_0x5312e1,this[_0x11dcaf(0x280)](_0x38ac23(_0x2b9a75(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x41ddf6[_0x11dcaf(0x241)])[_0x11dcaf(0x407)](_0x4ed52e(_0x49abd0=>_0x49abd0[_0x11dcaf(0x47a)]())),this[_0x11dcaf(0x1ef)][_0x11dcaf(0x319)](_0x41ddf6[_0x11dcaf(0x2e1)])[_0x11dcaf(0x407)](_0x4ed52e(_0x131abf=>_0x131abf[_0x11dcaf(0x47a)]())),this[_0x11dcaf(0x1ef)][_0x11dcaf(0x319)](_0x41ddf6['UNIVER_SLIDE'])[_0x11dcaf(0x407)](_0x4ed52e(_0x5e48d3=>_0x5e48d3[_0x11dcaf(0x47a)]())))[_0x11dcaf(0x4be)](_0x2ec825=>this[_0x11dcaf(0x4a7)](_0x2ec825)))));}[_0x3e92f2(0x27c)](_0x32e28a){const _0x5688=_0x3e92f2;this[_0x5688(0x2f3)][_0x5688(0x27c)](_0x32e28a);}['getCurrentUser'](){return this['_userManagerService']['getCurrentUser']();}['updateMember'](_0x289eda,_0x28f3e3){const _0x4f52fe=_0x3e92f2;let _0xf94eb8=this[_0x4f52fe(0x398)]['get'](_0x289eda);_0xf94eb8||(_0xf94eb8=new vn(),this[_0x4f52fe(0x398)][_0x4f52fe(0x2bc)](_0x289eda,_0xf94eb8)),_0xf94eb8['updateMember'](_0x28f3e3);}[_0x3e92f2(0x1a2)](_0x198b39,_0x1b5dd5){const _0x1512e0=_0x3e92f2,_0x4eaf85=this[_0x1512e0(0x398)][_0x1512e0(0x2d5)](_0x198b39);_0x4eaf85&&_0x4eaf85[_0x1512e0(0x1a2)](_0x1b5dd5);}[_0x3e92f2(0x44f)](_0xd49c01){const _0x3b49a5=_0x3e92f2;return this[_0x3b49a5(0x398)]['get'](_0xd49c01);}['getMember'](_0x33b9ce,_0x386386){const _0x225119=_0x3e92f2,_0x30d507=this[_0x225119(0x398)][_0x225119(0x2d5)](_0x33b9ce);if(_0x30d507)return _0x30d507[_0x225119(0x311)](_0x386386);}[_0x3e92f2(0x4a7)](_0x2fa812){const _0x3345f4=_0x3e92f2,_0x1ba948=this['_roomMembers'][_0x3345f4(0x2d5)](_0x2fa812);_0x1ba948&&(_0x1ba948[_0x3345f4(0x25d)](),this['_roomMembers'][_0x3345f4(0x36f)](_0x2fa812));}[_0x3e92f2(0x25d)](){this['_roomMembers']['forEach'](_0x23cf59=>_0x23cf59['dispose']()),this['_roomMembers']['clear']();}};ne=Sn([Kt(0x0,_0x5f1ae0),Kt(0x1,_0xbbf94a(_0x3614dc))],ne);function _0x4256(_0x589c55,_0x4c59d7){const _0x2c8c67=_0x2c8c();return _0x4256=function(_0x425665,_0x342c70){_0x425665=_0x425665-0x193;let _0x3b801f=_0x2c8c67[_0x425665];return _0x3b801f;},_0x4256(_0x589c55,_0x4c59d7);}class vn extends _0x1f0611{constructor(){const _0x458eb9=_0x3e92f2;super(...arguments),l(this,_0x458eb9(0x477),new Map());}[_0x3e92f2(0x25d)](){const _0x941e0e=_0x3e92f2;this[_0x941e0e(0x477)]['clear']();}['updateMember'](_0x2ae875){const _0x145483=_0x3e92f2;this[_0x145483(0x477)][_0x145483(0x2bc)](_0x2ae875[_0x145483(0x35a)],_0x2ae875);}[_0x3e92f2(0x1a2)](_0x4dba5b){const _0x47806f=_0x3e92f2;this['_members'][_0x47806f(0x36f)](_0x4dba5b);}['getMember'](_0x376cff){const _0x5ee0b3=_0x3e92f2;return this['_members'][_0x5ee0b3(0x2d5)](_0x376cff);}}function pn(_0x6ced89){const _0x18ae27=_0x3e92f2;var _0x296853,_0x3e3344,_0x40d5ff,_0x70bb29;const _0x5dbe79=_0x6ced89[_0x18ae27(0x208)],_0x1d00f8=JSON[_0x18ae27(0x47f)](_0x5dbe79);switch(_0x1d00f8['cmd']){case I[_0x18ae27(0x29a)]:case I[_0x18ae27(0x425)]:{const _0x1caf85=_0x1d00f8[_0x18ae27(0x297)];return{..._0x1d00f8,'data':_0x1caf85,'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};}case I[_0x18ae27(0x481)]:{const _0x348ec0=_0x1d00f8['joinRsp'];return{..._0x1d00f8,'data':_0x348ec0,'cmd':_0x1d00f8['cmd']};}case I[_0x18ae27(0x3fd)]:{const _0x19a65a=_0x1d00f8[_0x18ae27(0x255)];switch(_0x19a65a[_0x18ae27(0x1af)]){case _0x34e231[_0x18ae27(0x1c1)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x296853=_0x19a65a[_0x18ae27(0x3bb)])==null?void 0x0:_0x296853['cs']},'cmd':_0x1d00f8['cmd']};case _0x34e231['CHANGESET_ACK']:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x3e3344=_0x19a65a[_0x18ae27(0x21c)])==null?void 0x0:_0x3e3344['cs']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231['NEW_CHANGESETS']:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x40d5ff=_0x19a65a['newCsEvent'])==null?void 0x0:_0x40d5ff['cs']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x201)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':(_0x70bb29=_0x19a65a[_0x18ae27(0x445)])==null?void 0x0:_0x70bb29['cs']},'cmd':_0x1d00f8['cmd']};case _0x34e231[_0x18ae27(0x226)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x1e1)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3e0)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x309)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231['USERS_LEAVE']:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x225)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3b4)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a['liveShareNewHost']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3d3)]:case _0x34e231[_0x18ae27(0x2d6)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x1eb)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x1cb)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x304)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231['MSG_FOR_ERROR']:return{..._0x1d00f8,'data':_0x19a65a,'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x1c4)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a['commentUpdateEvent']},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x3be)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a[_0x18ae27(0x3d9)]},'cmd':_0x1d00f8[_0x18ae27(0x1a1)]};case _0x34e231[_0x18ae27(0x45e)]:return{..._0x1d00f8,'data':{..._0x19a65a,'data':_0x19a65a['shouldCloseConn']},'cmd':_0x1d00f8['cmd']};default:return _0x1d00f8;}}default:return _0x1d00f8;}}function In(_0x2373b0){const _0x462d19=_0x3e92f2;switch(_0x2373b0[_0x462d19(0x1a1)]){case I['HEARTBEAT']:case I[_0x462d19(0x425)]:return JSON['stringify']({'cmd':_0x2373b0[_0x462d19(0x1a1)],'routeKey':_0x2373b0['routeKey']});case I[_0x462d19(0x32f)]:{let _0xdde9cb;switch(_0x2373b0[_0x462d19(0x208)][_0x462d19(0x1af)]){case _0x34e231[_0x462d19(0x226)]:{_0xdde9cb={'eventID':_0x34e231['UPDATE_CURSOR'],'updateCursorEvent':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x462)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x462)],'leaveEvent':_0x2373b0[_0x462d19(0x208)]['data']};break;}case _0x34e231['USERS_ENTER']:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x3e0)],'joinEvent':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x3b4)]:{_0xdde9cb={'eventID':_0x34e231['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x2d6)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x2d6)],'liveShareOperation':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x1cb)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x1cb)],'liveShareTerminate':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x335)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x335)],'liveShareRequestHost':_0x2373b0['data'][_0x462d19(0x208)]};break;}case _0x34e231[_0x462d19(0x3d3)]:{_0xdde9cb={'eventID':_0x34e231[_0x462d19(0x3d3)]};break;}default:_0xdde9cb={'eventID':_0x2373b0[_0x462d19(0x208)][_0x462d19(0x1af)]};}return JSON[_0x462d19(0x20d)]({'cmd':_0x2373b0['cmd'],'routeKey':_0x2373b0['routeKey'],'collaMsg':_0xdde9cb});}case I[_0x462d19(0x481)]:return JSON[_0x462d19(0x20d)]({'cmd':_0x2373b0[_0x462d19(0x1a1)],'routeKey':_0x2373b0[_0x462d19(0x3d8)],'joinReq':_0x2373b0[_0x462d19(0x208)]});case I[_0x462d19(0x393)]:return JSON[_0x462d19(0x20d)]({'cmd':_0x2373b0[_0x462d19(0x1a1)],'routeKey':_0x2373b0['routeKey'],'leaveReq':_0x2373b0[_0x462d19(0x208)]});default:throw new Error(_0x462d19(0x2f6));}}var En=Object[_0x3e92f2(0x340)],Cn=Object[_0x3e92f2(0x2d2)],bn=(_0x2774df,_0x5802ca,_0x56d7f8,_0x5d687b)=>{const _0x5bcb95=_0x3e92f2;for(var _0x53af55=_0x5d687b>0x1?void 0x0:_0x5d687b?Cn(_0x5802ca,_0x56d7f8):_0x5802ca,_0x34132b=_0x2774df[_0x5bcb95(0x1a4)]-0x1,_0x30f43a;_0x34132b>=0x0;_0x34132b--)(_0x30f43a=_0x2774df[_0x34132b])&&(_0x53af55=(_0x5d687b?_0x30f43a(_0x5802ca,_0x56d7f8,_0x53af55):_0x30f43a(_0x53af55))||_0x53af55);return _0x5d687b&&_0x53af55&&En(_0x5802ca,_0x56d7f8,_0x53af55),_0x53af55;},Ee=(_0x1f84bd,_0x65849d)=>(_0x1ba686,_0x2fc3cf)=>_0x65849d(_0x1ba686,_0x2fc3cf,_0x1f84bd);const Os=_0x3195f2(_0x3e92f2(0x2cd));function Tn(_0x4d277c,_0x35daff,_0x5cb55f){const _0x4ef394=_0x3e92f2;return _0x4d277c+'/'+_0x35daff+_0x4ef394(0x1e7)+_0x5cb55f+'/new_changes';}let gt=class{constructor(_0x5e6f47,_0x386380,_0x50c2b9,_0x4deaef,_0x478926){const _0x398bb2=_0x3e92f2;this[_0x398bb2(0x1a5)]=_0x5e6f47,this[_0x398bb2(0x25b)]=_0x386380,this['_configService']=_0x50c2b9,this[_0x398bb2(0x27b)]=_0x4deaef,this[_0x398bb2(0x21f)]=_0x478926;}[_0x3e92f2(0x37d)](_0xe1f381){const _0x1538b8=_0x3e92f2,_0xe53dc6=this[_0x1538b8(0x25b)]['createSocket'](_0xe1f381);if(!_0xe53dc6)throw new Error(_0x1538b8(0x2f5));const _0x58dfba=new _0x10ad9e(),_0x3b1f37=new _0x440796();_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(_0xe53dc6[_0x1538b8(0x326)][_0x1538b8(0x4be)](_0x42e916=>_0x3b1f37[_0x1538b8(0x3ea)](_0x42e916)))),_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(()=>_0x3b1f37[_0x1538b8(0x2e4)]()));const _0x592ec6=new _0x440796();_0x58dfba['add'](_0x38ac23(_0xe53dc6['error$'][_0x1538b8(0x4be)](_0x2b6003=>_0x592ec6[_0x1538b8(0x3ea)](_0x2b6003)))),_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(()=>_0x592ec6[_0x1538b8(0x2e4)]()));const _0x38fe7a=new _0x440796();_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(_0xe53dc6[_0x1538b8(0x40c)][_0x1538b8(0x4be)](_0x2b7d64=>{const _0x24c721=_0x1538b8,_0x456738=pn(_0x2b7d64);_0x38fe7a[_0x24c721(0x3ea)](_0x456738);}))),_0x58dfba[_0x1538b8(0x35d)](_0x38ac23(()=>_0x38fe7a[_0x1538b8(0x2e4)]()));const _0x1fbba3=()=>{const _0x4c7ab8=_0x1538b8;_0x592ec6[_0x4c7ab8(0x3ea)](new Event('connection\x20error')),_0x3b1f37[_0x4c7ab8(0x3ea)](new CloseEvent(_0x4c7ab8(0x2ab))),_0x3d49df[_0x4c7ab8(0x1ad)]();},_0x3d49df={'memberID':'','close$':_0x3b1f37[_0x1538b8(0x423)](),'error$':_0x592ec6['asObservable'](),'open$':_0xe53dc6[_0x1538b8(0x484)],'message$':_0x38fe7a[_0x1538b8(0x423)](),'send':_0x32225f=>{const _0x479a89=_0x1538b8;if(_0x32225f[_0x479a89(0x1a1)]===I[_0x479a89(0x32f)]){if(_0x32225f[_0x479a89(0x208)][_0x479a89(0x1af)]===_0x34e231[_0x479a89(0x44d)]){this['_submitChangeset'](_0x3d49df,_0x32225f[_0x479a89(0x208)])['catch'](_0x574256=>{const _0x16ec64=_0x479a89;this[_0x16ec64(0x27b)][_0x16ec64(0x23c)](_0x574256),_0x1fbba3();});return;}if(_0x32225f[_0x479a89(0x208)][_0x479a89(0x1af)]===_0x34e231[_0x479a89(0x2c4)]){const _0x5f8592=_0x32225f[_0x479a89(0x208)];this['_fetchMissChangesets'](_0x5f8592)['then'](_0xf3c5bf=>{const _0x53c845=_0x479a89;_0x38fe7a['next']({'cmd':I['RECV'],'code':Ut['OK'],'routeKey':_0x5f8592[_0x53c845(0x208)][_0x53c845(0x3ca)],'routeType':'','data':{'eventID':_0x34e231[_0x53c845(0x374)],'data':{'changesets':_0xf3c5bf}}});})[_0x479a89(0x466)](_0x58ebf7=>{const _0x3f87d1=_0x479a89;this[_0x3f87d1(0x27b)][_0x3f87d1(0x23c)](_0x58ebf7),_0x1fbba3();});return;}}_0xe53dc6['send'](In(_0x32225f));},'close':()=>{const _0x4f008c=_0x1538b8;_0xe53dc6[_0x4f008c(0x1ad)](),_0x58dfba[_0x4f008c(0x25d)]();}};return _0x3d49df;}async[_0x3e92f2(0x24b)](_0x4e84e0,_0x2e13cf){const _0x3d9089=_0x3e92f2;var _0x974fd9;const {unitType:_0x29ea58,unitID:_0x790483,changeset:_0x271ebf}=_0x2e13cf[_0x3d9089(0x208)],_0x2a54f8={'unitID':_0x790483,'memberID':_0x4e84e0['memberID'],'type':_0x29ea58,'changeset':_0x24de41(_0x271ebf)},_0x4ff43e=Tn((_0x974fd9=this[_0x3d9089(0x292)][_0x3d9089(0x361)](_n))!=null?_0x974fd9:un,_0x29ea58,_0x790483);try{await this[_0x3d9089(0x1a5)][_0x3d9089(0x2f9)](_0x4ff43e,{'body':_0x2a54f8});}catch(_0x27574f){throw this['_logService'][_0x3d9089(0x23c)](_0x3d9089(0x256),_0x3d9089(0x467)),_0x27574f;}}async[_0x3e92f2(0x4c4)](_0x255e74){const _0x35b204=_0x3e92f2,{unitID:_0x5860ed,from:_0x394b4b,to:_0x582892,unitType:_0x5da5e4}=_0x255e74[_0x35b204(0x208)];return(await this[_0x35b204(0x21f)][_0x35b204(0x39e)]({'metadata':void 0x0},{'unitID':_0x5860ed,'type':_0x5da5e4,'from':_0x394b4b,'to':_0x582892}))[_0x35b204(0x4c2)];}};gt=bn([Ee(0x0,_0xbbf94a(_0x50f6b0)),Ee(0x1,_0xbbf94a(_0x412516)),Ee(0x2,_0x523c70),Ee(0x3,_0x46d807),Ee(0x4,_0x4e0f91)],gt);class Ds{constructor(){const _0x12e1bf=_0x3e92f2;l(this,'_commentUpdate$',new _0x440796()),l(this,_0x12e1bf(0x1d2),this[_0x12e1bf(0x437)]['asObservable']());}[_0x3e92f2(0x3b5)](_0x36242c){const _0x29b878=_0x3e92f2;this[_0x29b878(0x437)][_0x29b878(0x3ea)](_0x36242c);}}var Rn=Object[_0x3e92f2(0x340)],On=Object[_0x3e92f2(0x2d2)],ws=(_0x595b55,_0x1f0c7a,_0x513d1c,_0x443ba5)=>{const _0xb2a3a3=_0x3e92f2;for(var _0x4c6cf3=_0x443ba5>0x1?void 0x0:_0x443ba5?On(_0x1f0c7a,_0x513d1c):_0x1f0c7a,_0x3c39d3=_0x595b55[_0xb2a3a3(0x1a4)]-0x1,_0x220a8f;_0x3c39d3>=0x0;_0x3c39d3--)(_0x220a8f=_0x595b55[_0x3c39d3])&&(_0x4c6cf3=(_0x443ba5?_0x220a8f(_0x1f0c7a,_0x513d1c,_0x4c6cf3):_0x220a8f(_0x4c6cf3))||_0x4c6cf3);return _0x443ba5&&_0x4c6cf3&&Rn(_0x1f0c7a,_0x513d1c,_0x4c6cf3),_0x4c6cf3;},M=(_0x846bac,_0x18e51b)=>(_0x3132bf,_0x227dba)=>_0x18e51b(_0x3132bf,_0x227dba,_0x846bac),de=(_0x34868a=>(_0x34868a[_0x34868a['IDLE']=0x0]=_0x3e92f2(0x46b),_0x34868a[_0x34868a[_0x3e92f2(0x2b5)]=0x1]='JOINING',_0x34868a[_0x34868a[_0x3e92f2(0x461)]=0x2]=_0x3e92f2(0x461),_0x34868a[_0x34868a[_0x3e92f2(0x405)]=0x3]=_0x3e92f2(0x405),_0x34868a))(de||{});let St=class extends _0x4c153b{constructor(_0xc9c2d3,_0x58923f,_0x44dff6,_0x49e8ad,_0x5d415a,_0x74d53a,_0x432edf,_0x5a8b47,_0x49a198){const _0x38faf5=_0x3e92f2;super(),l(this,_0x38faf5(0x377),new _0x4d79d8(0x0)),l(this,_0x38faf5(0x397),this[_0x38faf5(0x377)][_0x38faf5(0x423)]()),l(this,_0x38faf5(0x3a0),new _0x440796()),l(this,_0x38faf5(0x2c7),this[_0x38faf5(0x3a0)]['asObservable']()),l(this,_0x38faf5(0x32e)),l(this,_0x38faf5(0x28e)),l(this,_0x38faf5(0x1c9)),(this[_0x38faf5(0x2b1)]=_0xc9c2d3,this[_0x38faf5(0x27b)]=_0x44dff6,this[_0x38faf5(0x1ee)]=_0x49e8ad,this[_0x38faf5(0x458)]=_0x5d415a,this['_configService']=_0x74d53a,this[_0x38faf5(0x4b3)]=_0x432edf,this['_memberService']=_0x5a8b47,this[_0x38faf5(0x307)]=_0x49a198,_0x58923f[_0x38faf5(0x407)](_0x8dafd9(this[_0x38faf5(0x4b2)]))[_0x38faf5(0x4be)](_0x4c5572=>{const _0x3d9b42=_0x38faf5;var _0x30cf6d;typeof _0x4c5572>'u'||(this['_socket']=_0x4c5572,_0x4c5572?(this[_0x3d9b42(0x48d)](_0x4c5572),this[_0x3d9b42(0x28e)]=this[_0x3d9b42(0x32e)]['message$']['subscribe'](_0xe6326d=>{const _0x1f246f=_0x3d9b42;_0xe6326d[_0x1f246f(0x3d8)]===this[_0x1f246f(0x2b1)]&&this[_0x1f246f(0x26b)](_0xe6326d);})):(this['_sessionStatus$'][_0x3d9b42(0x3ea)](0x2),(_0x30cf6d=this[_0x3d9b42(0x28e)])==null||_0x30cf6d[_0x3d9b42(0x3b0)](),this[_0x3d9b42(0x28e)]=null));}),this[_0x38faf5(0x280)](this[_0x38faf5(0x1ee)]['registerOnClose'](()=>{const _0x39c975=_0x38faf5;var _0x2945cf;(_0x2945cf=this['_socket'])==null||_0x2945cf[_0x39c975(0x229)]({'cmd':I[_0x39c975(0x393)],'data':{'roomID':this[_0x39c975(0x2b1)]}});})));}get['sessionStatus'](){const _0x5319d0=_0x3e92f2;return this['_sessionStatus$'][_0x5319d0(0x43c)]();}['getMemberID'](){const _0x2cb276=_0x3e92f2;var _0x47c00e,_0x341c6b;return(_0x341c6b=(_0x47c00e=this[_0x2cb276(0x32e)])==null?void 0x0:_0x47c00e[_0x2cb276(0x35a)])!=null?_0x341c6b:null;}[_0x3e92f2(0x25d)](){const _0x484f36=_0x3e92f2;super[_0x484f36(0x25d)](),this['dispose$'][_0x484f36(0x3ea)](),this['dispose$'][_0x484f36(0x2e4)]();}[_0x3e92f2(0x26b)](_0x5727ff){const _0x3122aa=_0x3e92f2;_0x5727ff[_0x3122aa(0x1a1)]===I['JOIN']?this[_0x3122aa(0x1e9)](_0x5727ff):_0x5727ff[_0x3122aa(0x1a1)]===I[_0x3122aa(0x3fd)]&&this[_0x3122aa(0x4c9)](_0x5727ff);}[_0x3e92f2(0x48d)](_0xcab2f8){const _0x42772e=_0x3e92f2;this['_sessionStatus$']['next'](0x1),_0xcab2f8[_0x42772e(0x229)]({'cmd':I[_0x42772e(0x481)],'routeKey':this[_0x42772e(0x2b1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x42772e(0x2b1)]}]}});}[_0x3e92f2(0x1e9)](_0x4dd490){const _0x133835=_0x3e92f2;var _0xa69ad7;if(_0x4dd490[_0x133835(0x193)]===Ut[_0x133835(0x3a4)]){this[_0x133835(0x458)]['show']({'type':_0x4f4f06[_0x133835(0x1b1)],'content':this[_0x133835(0x4b3)]['t'](_0x133835(0x40a))}),this[_0x133835(0x377)][_0x133835(0x3ea)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x26bc88=(_0xa69ad7=_0x4dd490['data'][_0x133835(0x298)][this[_0x133835(0x2b1)]])==null?void 0x0:_0xa69ad7['members'];_0x26bc88&&_0x26bc88[_0x133835(0x1b8)](_0x4884c2=>this[_0x133835(0x29e)][_0x133835(0x244)](this[_0x133835(0x2b1)],_0x4884c2));}[_0x3e92f2(0x4c9)](_0xf2f175){const _0x3f90be=_0x3e92f2;try{const _0x31ef53=_0xf2f175['data'];switch(_0x31ef53[_0x3f90be(0x1af)]){case _0x34e231[_0x3f90be(0x3e0)]:this[_0x3f90be(0x36a)](_0x31ef53),this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231[_0x3f90be(0x462)]:this[_0x3f90be(0x2aa)](_0x31ef53),this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231[_0x3f90be(0x45b)]:this[_0x3f90be(0x413)](),this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231[_0x3f90be(0x4c3)]:this[_0x3f90be(0x27b)]['error'](_0x3f90be(0x376)+JSON['stringify'](_0x31ef53)),this['_event$'][_0x3f90be(0x3ea)](_0x31ef53);break;case _0x34e231['COMMENT_UPDATE']:this[_0x3f90be(0x307)][_0x3f90be(0x3b5)](_0x31ef53['data']),this['_event$']['next'](_0x31ef53);break;default:this[_0x3f90be(0x3a0)][_0x3f90be(0x3ea)](_0x31ef53);}}catch(_0x53545e){this[_0x3f90be(0x27b)][_0x3f90be(0x23c)](_0x53545e,_0xf2f175);}}[_0x3e92f2(0x36a)](_0x4921db){const _0xb271cf=_0x3e92f2;this[_0xb271cf(0x29e)]['updateMember'](this[_0xb271cf(0x2b1)],_0x4921db[_0xb271cf(0x208)]);}[_0x3e92f2(0x2aa)](_0x238911){const _0x5b141a=_0x3e92f2;this['_memberService']['removeMember'](this[_0x5b141a(0x2b1)],_0x238911['data'][_0x5b141a(0x35a)]);}async[_0x3e92f2(0x229)](_0x2f0ace,_0x28256f){const _0x188f40=_0x3e92f2;if(this[_0x188f40(0x411)]!==0x3||!this[_0x188f40(0x32e)])throw new Error(_0x188f40(0x19c));try{_0x2f0ace[_0x188f40(0x1af)]===_0x34e231[_0x188f40(0x1ce)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x188f40(0x32e)][_0x188f40(0x229)]({'cmd':I[_0x188f40(0x32f)],'routeKey':_0x28256f,'routeType':'','data':_0x2f0ace});}catch(_0x5b5204){this['_logService'][_0x188f40(0x23c)](_0x5b5204);}}['_scheduleCollaborationTimeoutTimer'](){const _0x70971=_0x3e92f2;var _0x32876a;this['_collaborationTimeoutTimer']=window[_0x70971(0x33f)](()=>{const _0x220c24=_0x70971;this[_0x220c24(0x1c9)]=null,this['_messageService'][_0x220c24(0x3a7)]({'type':_0x4f4f06[_0x220c24(0x19f)],'content':this[_0x220c24(0x4b3)]['t'](_0x220c24(0x366))});},(_0x32876a=this[_0x70971(0x292)][_0x70971(0x361)](bs))!=null?_0x32876a:Ts);}[_0x3e92f2(0x413)](){const _0x1f706f=_0x3e92f2;this[_0x1f706f(0x1c9)]&&(clearTimeout(this[_0x1f706f(0x1c9)]),this[_0x1f706f(0x1c9)]=null);}};St=ws([M(0x2,_0x46d807),M(0x3,_0x17e6fa),M(0x4,_0x5cfd22),M(0x5,_0x523c70),M(0x6,_0xbbf94a(_0x6789ab)),M(0x7,_0xbbf94a(ne)),M(0x8,_0xbbf94a(Ds))],St);let ge=class extends _0x1f0611{constructor(_0xbf4629,_0x502c91,_0x568772,_0x3b0556,_0x3a345d,_0x4a8cd6){const _0x28311e=_0x3e92f2;super(),l(this,_0x28311e(0x1d7),new _0x4d79d8(void 0x0)),l(this,_0x28311e(0x38e),new Map()),l(this,_0x28311e(0x489),new _0x4d79d8(0x0)),l(this,_0x28311e(0x4a1),this[_0x28311e(0x489)][_0x28311e(0x423)]()),l(this,_0x28311e(0x26e),!0x1),l(this,_0x28311e(0x37a)),l(this,_0x28311e(0x23e)),l(this,_0x28311e(0x3e7)),l(this,_0x28311e(0x337),0x0),(this[_0x28311e(0x443)]=_0xbf4629,this[_0x28311e(0x4b3)]=_0x502c91,this[_0x28311e(0x458)]=_0x568772,this['_logService']=_0x3b0556,this[_0x28311e(0x292)]=_0x3a345d,this[_0x28311e(0x2af)]=_0x4a8cd6);}get['_socket'](){const _0x465501=_0x3e92f2;return this[_0x465501(0x1d7)][_0x465501(0x43c)]();}[_0x3e92f2(0x25d)](){const _0x22e1ac=_0x3e92f2;super['dispose'](),this[_0x22e1ac(0x38e)][_0x22e1ac(0x1b8)](_0x1f71a9=>_0x1f71a9[_0x22e1ac(0x25d)]()),this['_sessions'][_0x22e1ac(0x494)](),this[_0x22e1ac(0x489)][_0x22e1ac(0x2e4)]();}async[_0x3e92f2(0x3cc)](_0x1836d3){const _0x1fcfac=_0x3e92f2;if(this[_0x1fcfac(0x38e)]['has'](_0x1836d3))return this[_0x1fcfac(0x38e)][_0x1fcfac(0x2d5)](_0x1836d3);this['_tryEnsureSocket']();const _0x1deac6=this[_0x1fcfac(0x443)][_0x1fcfac(0x1df)](St,_0x1836d3,this[_0x1fcfac(0x1d7)]['asObservable']());return this[_0x1fcfac(0x38e)]['set'](_0x1836d3,_0x1deac6),_0x1deac6;}['_createSocket'](){const _0x27d385=_0x3e92f2;var _0x3ddcf0;const _0x2a2650=(_0x3ddcf0=this['_configService']['getConfig'](en))!=null?_0x3ddcf0:tn;return this[_0x27d385(0x2af)][_0x27d385(0x37d)](_0x2a2650);}[_0x3e92f2(0x1f9)](){const _0x413b4c=_0x3e92f2;try{const _0x2146c5=this[_0x413b4c(0x2e6)]();if(_0x2146c5){const _0x3baee6=_0x2146c5[_0x413b4c(0x229)];_0x2146c5[_0x413b4c(0x229)]=_0x57454d=>(this[_0x413b4c(0x19a)](),_0x3baee6[_0x413b4c(0x3ee)](_0x2146c5,[_0x57454d])),_0x2146c5['message$'][_0x413b4c(0x4be)](_0x43d684=>this[_0x413b4c(0x21a)](_0x2146c5,_0x43d684)),_0x2146c5[_0x413b4c(0x288)][_0x413b4c(0x407)](_0x401b81(0x1))[_0x413b4c(0x4be)](_0x50957c=>this[_0x413b4c(0x27b)][_0x413b4c(0x23c)](_0x413b4c(0x216),_0x50957c)),_0x2146c5[_0x413b4c(0x484)][_0x413b4c(0x407)](_0x401b81(0x1))[_0x413b4c(0x4be)](()=>{const _0x1df202=_0x413b4c;this[_0x1df202(0x456)](_0x2146c5);}),_0x2146c5['close$'][_0x413b4c(0x407)](_0x401b81(0x1))['subscribe'](_0x595bb0=>{const _0x42ec78=_0x413b4c;this[_0x42ec78(0x27b)][_0x42ec78(0x2f1)]('[CollaborationSessionService]',_0x42ec78(0x2ac),_0x595bb0),this[_0x42ec78(0x492)]();});}}catch(_0x1874e7){this[_0x413b4c(0x27b)]['error'](_0x1874e7),this['_onConnectionFailed']();}}[_0x3e92f2(0x456)](_0x6170c7){const _0x5f14af=_0x3e92f2;this[_0x5f14af(0x27b)]['debug'](_0x5f14af(0x48c),_0x5f14af(0x395)),_0x6170c7['send']({'cmd':I['HELLO']}),this[_0x5f14af(0x19a)]();}['_onConnectionFailed'](){const _0x2087ed=_0x3e92f2;var _0x4ef2e3;this[_0x2087ed(0x489)][_0x2087ed(0x3ea)](0x2),this[_0x2087ed(0x1d7)][_0x2087ed(0x3ea)](null),this[_0x2087ed(0x1bd)](),this[_0x2087ed(0x299)](),this[_0x2087ed(0x26e)]=!0x1,this[_0x2087ed(0x337)]<((_0x4ef2e3=this[_0x2087ed(0x292)]['getConfig'](an))!=null?_0x4ef2e3:cn)?(this[_0x2087ed(0x20c)](this[_0x2087ed(0x337)]),this[_0x2087ed(0x337)]+=0x1):this['_messageService']['show']({'type':_0x4f4f06[_0x2087ed(0x19f)],'content':this['_localeService']['t'](_0x2087ed(0x452))});}['_scheduleReconnection'](_0x246718){const _0x32186f=_0x3e92f2;var _0x5b6158;const _0x15b349=((_0x5b6158=this[_0x32186f(0x292)]['getConfig'](rn))!=null?_0x5b6158:on)*0x2**_0x246718;this[_0x32186f(0x458)][_0x32186f(0x3a7)]({'type':_0x4f4f06['Warning'],'content':this[_0x32186f(0x4b3)]['t'](_0x32186f(0x347))}),this[_0x32186f(0x3e7)]=setTimeout(()=>{const _0x97279b=_0x32186f;this[_0x97279b(0x1f9)](),clearTimeout(this[_0x97279b(0x3e7)]),this[_0x97279b(0x3e7)]=null;},_0x15b349);}[_0x3e92f2(0x19a)](){const _0x127f4d=_0x3e92f2;var _0x467ece;this[_0x127f4d(0x299)](),this[_0x127f4d(0x37a)]=setTimeout(()=>this[_0x127f4d(0x202)](),(_0x467ece=this[_0x127f4d(0x292)][_0x127f4d(0x361)](sn))!=null?_0x467ece:nn);}[_0x3e92f2(0x202)](){const _0x5198e8=_0x3e92f2;this['_socket'][_0x5198e8(0x229)]({'cmd':I[_0x5198e8(0x29a)]}),this[_0x5198e8(0x2e0)]();}[_0x3e92f2(0x2e0)](){const _0x396fac=_0x3e92f2;var _0x1ddd4b;this[_0x396fac(0x23e)]=setTimeout(()=>this[_0x396fac(0x492)](),(_0x1ddd4b=this[_0x396fac(0x292)]['getConfig'](bs))!=null?_0x1ddd4b:Ts);}[_0x3e92f2(0x21a)](_0x5672a7,_0x69408c){const _0x13d424=_0x3e92f2,{cmd:_0x471453}=_0x69408c;_0x471453===I[_0x13d424(0x425)]&&!this[_0x13d424(0x26e)]&&(_0x5672a7[_0x13d424(0x35a)]=_0x69408c['data']['memberID'],this[_0x13d424(0x1d7)][_0x13d424(0x3ea)](_0x5672a7),this[_0x13d424(0x489)][_0x13d424(0x3ea)](0x3),this[_0x13d424(0x26e)]=!0x0),_0x471453===I['HEARTBEAT']&&this[_0x13d424(0x1bd)](),this['_rescheduleHeartbeatEvent']();}['_clearHeartbeatTimer'](){const _0x3d9a59=_0x3e92f2;this[_0x3d9a59(0x37a)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x3d9a59(0x37a)]=null);}[_0x3e92f2(0x1bd)](){const _0x11320a=_0x3e92f2;this[_0x11320a(0x23e)]!=null&&(clearTimeout(this[_0x11320a(0x23e)]),this[_0x11320a(0x23e)]=null);}};ge=ws([M(0x0,_0xbbf94a(_0xa8f435)),M(0x1,_0xbbf94a(_0x6789ab)),M(0x2,_0x5cfd22),M(0x3,_0x46d807),M(0x4,_0x523c70),M(0x5,Os)],ge);var Dn=Object[_0x3e92f2(0x340)],wn=Object['getOwnPropertyDescriptor'],Pn=(_0x141400,_0x3bcbc9,_0x4b3474,_0x3d56b3)=>{const _0x12127b=_0x3e92f2;for(var _0xe80e94=_0x3d56b3>0x1?void 0x0:_0x3d56b3?wn(_0x3bcbc9,_0x4b3474):_0x3bcbc9,_0x3ab0a5=_0x141400[_0x12127b(0x1a4)]-0x1,_0x4cbefa;_0x3ab0a5>=0x0;_0x3ab0a5--)(_0x4cbefa=_0x141400[_0x3ab0a5])&&(_0xe80e94=(_0x3d56b3?_0x4cbefa(_0x3bcbc9,_0x4b3474,_0xe80e94):_0x4cbefa(_0xe80e94))||_0xe80e94);return _0x3d56b3&&_0xe80e94&&Dn(_0x3bcbc9,_0x4b3474,_0xe80e94),_0xe80e94;},Ce=(_0x404057,_0x8e900f)=>(_0x3b7cfe,_0x292d63)=>_0x8e900f(_0x3b7cfe,_0x292d63,_0x404057);let D=class extends _0x1f0611{constructor(_0x35bca6,_0x45d856,_0x7623b5,_0x6d86bf,_0x16f46b){const _0x32512a=_0x3e92f2;super(),l(this,'_cachedData',new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x32512a(0x1d3),!0x1),(this['_configService']=_0x35bca6,this['_localStorageService']=_0x45d856,this[_0x32512a(0x1ee)]=_0x7623b5,this[_0x32512a(0x4b3)]=_0x6d86bf,this[_0x32512a(0x49e)]=_0x16f46b,this[_0x32512a(0x453)]());}[_0x3e92f2(0x2b6)](){this['_disabled']=!0x0;}[_0x3e92f2(0x2cc)](){const _0x25da38=_0x3e92f2;this[_0x25da38(0x1d3)]=!0x1;}[_0x3e92f2(0x25d)](){const _0x2570d5=_0x3e92f2;this[_0x2570d5(0x47d)]()[_0x2570d5(0x31d)](()=>super['dispose']());}async['loadOfflineData'](_0x2a5284){const _0x4440b2=_0x3e92f2;return this['_disabled']?null:this[_0x4440b2(0x43b)][_0x4440b2(0x346)](Xt(_0x2a5284));}async['saveOfflineData'](_0x4ddec4,_0x315a8a){return!!this['_localStorageService']['setItem'](_0x4ddec4,_0x315a8a);}[_0x3e92f2(0x271)](_0x288a44,_0x5961c1,_0xc0f548,_0x26d631){const _0x50202a=_0x3e92f2,_0x4b8854=this['_revisionService']['getCurrentRevForDocument'](_0x288a44);this['_cachedData'][_0x50202a(0x2bc)](_0x288a44,{'unitID':_0x288a44,'type':_0x5961c1,'awaitingChangeset':_0xc0f548,'mutations':_0x26d631,'rev':_0x4b8854}),this[_0x50202a(0x4bb)][_0x50202a(0x31c)](_0x288a44)||this[_0x50202a(0x3a5)](_0x288a44);}[_0x3e92f2(0x3a5)](_0x1fc3f0){const _0x373a6a=_0x3e92f2,_0x2845b6=this['_getSaveTimeout']();_0x2845b6===0x0?this[_0x373a6a(0x349)](_0x1fc3f0):this[_0x373a6a(0x4bb)][_0x373a6a(0x2bc)](_0x1fc3f0,setTimeout(()=>this[_0x373a6a(0x349)](_0x1fc3f0),_0x2845b6));}[_0x3e92f2(0x291)](){const _0x11fcab=_0x3e92f2;var _0x4ddd58;return(_0x4ddd58=this[_0x11fcab(0x292)]['getConfig'](hn))!=null?_0x4ddd58:ln;}[_0x3e92f2(0x349)](_0x3c2962){const _0x3b76f5=_0x3e92f2,_0x1d7eea=this[_0x3b76f5(0x4bb)][_0x3b76f5(0x2d5)](_0x3c2962);return _0x1d7eea!==void 0x0&&window[_0x3b76f5(0x4b7)](_0x1d7eea),this[_0x3b76f5(0x43b)]['setItem'](Xt(_0x3c2962),this[_0x3b76f5(0x419)][_0x3b76f5(0x2d5)](_0x3c2962))[_0x3b76f5(0x31d)](()=>this[_0x3b76f5(0x4bb)]['delete'](_0x3c2962));}async[_0x3e92f2(0x47d)](){const _0x5d7c73=_0x3e92f2,_0x5ed523=[];this[_0x5d7c73(0x4bb)]['forEach']((_0x40e310,_0x4e0a22)=>{const _0x613d6=_0x5d7c73;window[_0x613d6(0x4b7)](_0x40e310),_0x5ed523[_0x613d6(0x2cb)](this[_0x613d6(0x349)](_0x4e0a22)[_0x613d6(0x31d)](()=>{const _0x1ddf52=_0x613d6;this[_0x1ddf52(0x4bb)][_0x1ddf52(0x36f)](_0x4e0a22);}));}),await Promise[_0x5d7c73(0x1a3)](_0x5ed523);}[_0x3e92f2(0x453)](){const _0x3baeea=_0x3e92f2;this[_0x3baeea(0x280)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x49c119=_0x3baeea;if(this['_saveTaskMap'][_0x49c119(0x457)])return this[_0x49c119(0x4b3)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Pn([Ce(0x0,_0x523c70),Ce(0x1,_0x1dfb89),Ce(0x2,_0x17e6fa),Ce(0x3,_0xbbf94a(_0x6789ab)),Ce(0x4,_0xbbf94a(_0xee930))],D);function Xt(_0x4eda5b){return'unit-cache-'+_0x4eda5b;}const et=_0x3195f2(_0x3e92f2(0x3f8));var Ps=(_0x34a3a5=>(_0x34a3a5[_0x34a3a5['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3e92f2(0x2dd),_0x34a3a5[_0x34a3a5[_0x3e92f2(0x480)]=0x1]='OTHER_CLIENTS_EDITING',_0x34a3a5))(Ps||{});const Jt=0x7530,zt=_0x3e92f2(0x1da);class Nn extends _0x1f0611{constructor(){const _0x582eac=_0x3e92f2;super(),l(this,_0x582eac(0x329),_0x545ca3['generateRandomId']()),l(this,_0x582eac(0x243),new Set()),l(this,_0x582eac(0x3db),new Map()),l(this,_0x582eac(0x416),null),l(this,_0x582eac(0x27d),new Map()),l(this,_0x582eac(0x3e4),new Map()),this[_0x582eac(0x35e)]();}[_0x3e92f2(0x25d)](){const _0x77f347=_0x3e92f2;super[_0x77f347(0x25d)](),this[_0x77f347(0x27d)][_0x77f347(0x1b8)]((_0x55eef1,_0xa1babe)=>this[_0x77f347(0x296)](_0xa1babe)),this[_0x77f347(0x416)]&&window[_0x77f347(0x1dd)](this['_heartbeatTimer']);}[_0x3e92f2(0x4c1)](_0x3a7f0e){const _0x204cc0=_0x3e92f2;return this[_0x204cc0(0x3c7)](_0x3a7f0e)['pipe'](_0x569a4b());}[_0x3e92f2(0x345)](_0x4da67e){const _0x174927=_0x3e92f2;this['_selfUnitIDs'][_0x174927(0x457)]===0x0&&this[_0x174927(0x32b)](),this['_selfUnitIDs'][_0x174927(0x35d)](_0x4da67e),this[_0x174927(0x1f4)]({'type':0x0,'memberID':this[_0x174927(0x329)],'unitIDs':[_0x4da67e],'isForwarded':!0x1});}[_0x3e92f2(0x46f)](_0x49daf0){const _0x5dfe38=_0x3e92f2;this[_0x5dfe38(0x243)][_0x5dfe38(0x36f)](_0x49daf0),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window[_0x5dfe38(0x1dd)](this[_0x5dfe38(0x416)]);}['_init'](){const _0x13ddcf=_0x3e92f2;this[_0x13ddcf(0x280)](_0x38ac23(_0x236f67(window,_0x13ddcf(0x2f2))['subscribe'](_0x2e3ddc=>{const _0x500456=_0x13ddcf;if(_0x2e3ddc['key']!==zt||!_0x2e3ddc[_0x500456(0x1c5)])return;const _0x1d5579=JSON[_0x500456(0x47f)](_0x2e3ddc[_0x500456(0x1c5)]);this[_0x500456(0x3c9)](_0x1d5579);}))),window[_0x13ddcf(0x33b)](_0x13ddcf(0x3d5),()=>this['_send']({'type':0x1,'memberID':this[_0x13ddcf(0x329)],'unitIDs':Array[_0x13ddcf(0x473)](this[_0x13ddcf(0x243)])}));}[_0x3e92f2(0x3c9)](_0x3ce087){const _0x3d7b7e=_0x3e92f2;switch(_0x3ce087[_0x3d7b7e(0x342)]){case 0x0:this[_0x3d7b7e(0x465)](_0x3ce087);break;case 0x1:this[_0x3d7b7e(0x45c)](_0x3ce087);break;case 0x2:this['_handleHeartbeatEvent'](_0x3ce087);break;}}[_0x3e92f2(0x465)](_0x545c28){const _0x2931ad=_0x3e92f2,{unitIDs:_0x1cb0af,memberID:_0xa711d9,isForwarded:_0x471a99}=_0x545c28;_0x1cb0af[_0x2931ad(0x1b8)](_0x26362d=>{const _0x365406=_0x2931ad;if(!_0x471a99&&this[_0x365406(0x3db)][_0x365406(0x31c)](_0x26362d)&&this[_0x365406(0x3c7)](_0x26362d)[_0x365406(0x3ea)](0x1),!this[_0x365406(0x3db)][_0x365406(0x31c)](_0x26362d)||!this[_0x365406(0x3db)][_0x365406(0x2d5)](_0x26362d)[_0x365406(0x31c)](_0xa711d9)){const _0x574245=this['_unitOnClients'][_0x365406(0x2d5)](_0x26362d)||new Set();_0x574245[_0x365406(0x35d)](_0xa711d9),this[_0x365406(0x3db)]['set'](_0x26362d,_0x574245),this['_scheduleClearOtherTimer'](_0xa711d9);}}),_0x471a99||this[_0x2931ad(0x1f4)]({'type':0x0,'memberID':this[_0x2931ad(0x329)],'unitIDs':[...this[_0x2931ad(0x243)]],'isForwarded':!0x0});}[_0x3e92f2(0x378)](_0x1a0259){const _0x410734=_0x3e92f2;this[_0x410734(0x296)](_0x1a0259);const _0x4c77dd=window[_0x410734(0x33f)](()=>{const _0x1cd227=_0x410734;this[_0x1cd227(0x3db)][_0x1cd227(0x1b8)](_0x54de1b=>{const _0x3f559a=_0x1cd227;_0x54de1b[_0x3f559a(0x36f)](_0x1a0259);});},Jt*0x2);this[_0x410734(0x27d)][_0x410734(0x2bc)](_0x1a0259,_0x4c77dd);}['_removeClearOtherTimer'](_0x32fa92){const _0x39ee11=_0x3e92f2;if(this[_0x39ee11(0x27d)]['has'](_0x32fa92)){const _0x33d0df=this['_clearOtherTimers']['get'](_0x32fa92);_0x33d0df&&window[_0x39ee11(0x4b7)](_0x33d0df),this[_0x39ee11(0x27d)][_0x39ee11(0x2bc)](_0x32fa92,null);}}[_0x3e92f2(0x45c)](_0x5908e4){const _0x5d5f04=_0x3e92f2,{memberID:_0x5c0ffd,unitIDs:_0x27e875}=_0x5908e4;_0x27e875[_0x5d5f04(0x1b8)](_0x43df0d=>{const _0x48ad30=_0x5d5f04;var _0x3febe5;const _0x3fc444=this[_0x48ad30(0x3db)][_0x48ad30(0x2d5)](_0x43df0d);_0x3fc444&&(_0x3fc444[_0x48ad30(0x36f)](_0x5c0ffd),(_0x3febe5=this[_0x48ad30(0x3c7)](_0x43df0d))==null||_0x3febe5[_0x48ad30(0x3ea)](_0x3fc444[_0x48ad30(0x457)]===0x0?0x0:0x1));}),this[_0x5d5f04(0x296)](_0x5c0ffd);}[_0x3e92f2(0x354)](_0x1e2564){const _0x1ed4b8=_0x3e92f2;this['_scheduleClearOtherTimer'](_0x1e2564[_0x1ed4b8(0x35a)]);}['_send'](_0x23da12){const _0x587ac7=_0x3e92f2;localStorage[_0x587ac7(0x3fc)](zt,JSON['stringify'](_0x23da12));}['_scheduleHeartbeat'](){const _0x4bf90d=_0x3e92f2;this['_heartbeatTimer']=window[_0x4bf90d(0x3bc)](()=>{const _0x41e45c=_0x4bf90d;this[_0x41e45c(0x1f4)]({'type':0x2,'memberID':this['_id']});},Jt);}[_0x3e92f2(0x3c7)](_0x4a2c15){const _0x13c52f=_0x3e92f2;return this[_0x13c52f(0x3e4)][_0x13c52f(0x31c)](_0x4a2c15)||this[_0x13c52f(0x3e4)][_0x13c52f(0x2bc)](_0x4a2c15,new _0x4d79d8(0x0)),this[_0x13c52f(0x3e4)][_0x13c52f(0x2d5)](_0x4a2c15);}}var Mn=Object['defineProperty'],An=Object[_0x3e92f2(0x2d2)],Un=(_0x4dd9cf,_0x35a244,_0x1f49f2,_0xcbdf11)=>{for(var _0x1bd486=_0xcbdf11>0x1?void 0x0:_0xcbdf11?An(_0x35a244,_0x1f49f2):_0x35a244,_0x20aca1=_0x4dd9cf['length']-0x1,_0x5e9538;_0x20aca1>=0x0;_0x20aca1--)(_0x5e9538=_0x4dd9cf[_0x20aca1])&&(_0x1bd486=(_0xcbdf11?_0x5e9538(_0x35a244,_0x1f49f2,_0x1bd486):_0x5e9538(_0x1bd486))||_0x1bd486);return _0xcbdf11&&_0x1bd486&&Mn(_0x35a244,_0x1f49f2,_0x1bd486),_0x1bd486;},qt=(_0x1d759e,_0x3a211a)=>(_0x142557,_0x3c972d)=>_0x3a211a(_0x142557,_0x3c972d,_0x1d759e);let Xe=class{constructor(_0x154e36,_0x17687c){const _0x346fa1=_0x3e92f2;this['_injector']=_0x154e36,this[_0x346fa1(0x22e)]=_0x17687c;}[_0x3e92f2(0x1f0)](_0x258664){const _0x979c18=_0x3e92f2;this[_0x979c18(0x468)](_0x258664),this[_0x979c18(0x246)](_0x258664);}['transformRemoteChangeset'](_0x88371d){const _0x1c3261=_0x3e92f2,_0x14f879=this[_0x1c3261(0x443)][_0x1c3261(0x2d5)](_0x3a8219),{redoCache:_0x44aaf0}=_0x14f879[_0x1c3261(0x24e)]();if(_0x44aaf0[_0x1c3261(0x1a4)]===0x0)return _0x88371d;let _0x1970e3=_0x545ca3[_0x1c3261(0x265)](_0x88371d[_0x1c3261(0x1d5)][0x0]);for(let _0x3cf133=0x0;_0x3cf133<_0x44aaf0['length'];_0x3cf133++){const _0x3b6fc6={'id':'doc.mutation.rich-text-editing','params':{..._0x44aaf0[_0x3cf133]}},_0x17a786=this['_transformService'][_0x1c3261(0x433)](_0x1970e3,_0x3b6fc6,!0x1);if(_0x3d6701(_0x17a786))throw _0x17a786['error'];_0x1970e3=_0x17a786[_0x1c3261(0x391)];}return{..._0x545ca3[_0x1c3261(0x265)](_0x88371d),'mutations':[_0x1970e3]};}['_transformUndoRedoStack'](_0x4c36b9){const _0x5e0cae=_0x3e92f2,_0x29e733=this['_injector'][_0x5e0cae(0x2d5)](_0x3a8219),{undoCache:_0x366abc,redoCache:_0x3b8f2d}=_0x29e733[_0x5e0cae(0x24e)]();if(_0x366abc[_0x5e0cae(0x1a4)]===0x0||_0x3b8f2d[_0x5e0cae(0x1a4)]===0x0)return;const _0x428305=[],_0x59f8c3=[];let _0x3b9826=_0x545ca3[_0x5e0cae(0x265)](_0x4c36b9[_0x5e0cae(0x1d5)][0x0]),_0x3f9255=_0x545ca3['deepClone'](_0x4c36b9[_0x5e0cae(0x1d5)][0x0]);for(let _0xf89428=_0x366abc[_0x5e0cae(0x1a4)]-0x1;_0xf89428>=0x0;_0xf89428--){const _0x22ae74={'id':'doc.mutation.rich-text-editing','params':{..._0x366abc[_0xf89428]}},_0x38e4da={'id':_0x5e0cae(0x215),'params':{..._0x3b8f2d[_0xf89428]}},_0xe8f069=this[_0x5e0cae(0x22e)][_0x5e0cae(0x433)](_0x3b9826,_0x22ae74,!0x1),_0x11ecc2=this[_0x5e0cae(0x22e)][_0x5e0cae(0x433)](_0x3f9255,_0x38e4da,!0x1);if(_0x3d6701(_0xe8f069))throw _0xe8f069[_0x5e0cae(0x23c)];if(_0x3d6701(_0x11ecc2))throw _0x11ecc2[_0x5e0cae(0x23c)];_0x428305[_0x5e0cae(0x213)](_0xe8f069[_0x5e0cae(0x2fb)][_0x5e0cae(0x394)]),_0x59f8c3[_0x5e0cae(0x213)](_0x11ecc2[_0x5e0cae(0x2fb)]['params']),_0x3b9826=_0xe8f069[_0x5e0cae(0x391)],_0x3f9255=_0x11ecc2[_0x5e0cae(0x391)];}_0x29e733[_0x5e0cae(0x210)]({'undoCache':_0x428305,'redoCache':_0x59f8c3});}[_0x3e92f2(0x246)](_0xd9ad92){const _0x3bcc54=_0x3e92f2,_0x2026f5=this['_injector'][_0x3bcc54(0x2d5)](_0x3a8219),_0x297b74=_0x2026f5['getActiveRange']();if(_0x297b74==null)return;const _0x55185b=[{'id':_0x3bcc54(0x215),'params':{'unitId':_0xd9ad92[_0x3bcc54(0x3ca)],'actions':null,'textRanges':[_0x297b74]}}],_0xc71137=this[_0x3bcc54(0x22e)][_0x3bcc54(0x242)](_0xd9ad92,_0x55185b);if(!_0x496a31(_0xc71137))throw _0xc71137[_0x3bcc54(0x23c)];const _0x3c28f1=_0xc71137[_0x3bcc54(0x2fb)][0x0][_0x3bcc54(0x394)]['textRanges'];Array[_0x3bcc54(0x48f)](_0x3c28f1)&&_0x3c28f1['length']&&_0x2026f5['setActiveRange'](_0x3c28f1[0x0]);}};Xe=Un([qt(0x0,_0xbbf94a(_0xa8f435)),qt(0x1,_0x1b279b)],Xe);var yn=Object[_0x3e92f2(0x340)],Ln=Object[_0x3e92f2(0x2d2)],$n=(_0x2644f5,_0xb77df6,_0x2b6c02,_0x483750)=>{const _0x50d5ee=_0x3e92f2;for(var _0x10b837=_0x483750>0x1?void 0x0:_0x483750?Ln(_0xb77df6,_0x2b6c02):_0xb77df6,_0x5276d9=_0x2644f5[_0x50d5ee(0x1a4)]-0x1,_0x5be296;_0x5276d9>=0x0;_0x5276d9--)(_0x5be296=_0x2644f5[_0x5276d9])&&(_0x10b837=(_0x483750?_0x5be296(_0xb77df6,_0x2b6c02,_0x10b837):_0x5be296(_0x10b837))||_0x10b837);return _0x483750&&_0x10b837&&yn(_0xb77df6,_0x2b6c02,_0x10b837),_0x10b837;},Zt=(_0x1470b7,_0x452e2d)=>(_0xfbc625,_0x3440ce)=>_0x452e2d(_0xfbc625,_0x3440ce,_0x1470b7);let Je=class{constructor(_0x20275d,_0x5623f3){const _0x2b5df0=_0x3e92f2;this[_0x2b5df0(0x443)]=_0x20275d,this[_0x2b5df0(0x22e)]=_0x5623f3;}[_0x3e92f2(0x2a3)](_0x4442e3){const _0x46e67e=_0x3e92f2;var _0x45bdca;const _0x11281f=this[_0x46e67e(0x443)][_0x46e67e(0x2d5)](_0x3781de),_0x39e8f2=(_0x45bdca=_0x11281f[_0x46e67e(0x344)]())!=null?_0x45bdca:[],_0x2d86c9=_0x39e8f2==null?void 0x0:_0x39e8f2[_0x46e67e(0x1be)](_0x167840);if(_0x2d86c9[_0x46e67e(0x1a4)]===0x0)return;const _0x3984eb=[{'id':_0x46e67e(0x215),'params':{'unitId':_0x4442e3[_0x46e67e(0x3ca)],'actions':null,'textRanges':_0x2d86c9}}],_0x4725ee=this[_0x46e67e(0x22e)][_0x46e67e(0x242)](_0x4442e3,_0x3984eb);if(!_0x496a31(_0x4725ee))throw _0x4725ee[_0x46e67e(0x23c)];const _0x1d560b=_0x4725ee[_0x46e67e(0x2fb)][0x0][_0x46e67e(0x394)][_0x46e67e(0x371)];Array[_0x46e67e(0x48f)](_0x1d560b)&&_0x1d560b[_0x46e67e(0x1a4)]&&_0x11281f[_0x46e67e(0x39f)](_0x1d560b,!0x1);}};Je=$n([Zt(0x0,_0xbbf94a(_0xa8f435)),Zt(0x1,_0x1b279b)],Je);function Ns(_0x4ae7bc){const _0x21ead4=_0x3e92f2;let _0x1e4efd='';for(const _0x2a00a9 of _0x4ae7bc){const {startOffset:_0x4a7b43,endOffset:_0x244ce8,isActive:_0x3f6109}=_0x2a00a9;_0x1e4efd[_0x21ead4(0x1a4)]&&(_0x1e4efd+=','),_0x1e4efd+=_0x4a7b43+':'+_0x244ce8+':'+(_0x3f6109?'1':'0');}return _0x1e4efd;}function jn(_0x42d76c){const _0x5e4ff8=_0x3e92f2,_0x450840=_0x42d76c[_0x5e4ff8(0x4bd)](','),_0x191d37=[];for(const _0x3be88c of _0x450840){const [_0x569df4,_0x548082,_0x10d8a3]=_0x3be88c['split'](':');_0x191d37['push']({'startOffset':Number(_0x569df4),'endOffset':Number(_0x548082),'collapsed':_0x569df4===_0x548082,'isActive':_0x10d8a3==='1'});}return _0x191d37[_0x5e4ff8(0x2db)](_0x4a758e=>_0x4a758e[_0x5e4ff8(0x488)])||(_0x191d37[0x0]['isActive']=!0x0),_0x191d37;}class yt extends _0x4c153b{constructor(){const _0x6a0361=_0x3e92f2;super(...arguments),l(this,_0x6a0361(0x408),new _0x4d79d8(null)),l(this,'collabCursorState$',this[_0x6a0361(0x408)]['asObservable']());}[_0x3e92f2(0x448)](_0x156ced){const _0x31c0f9=_0x3e92f2,{unitID:_0x141ae0,memberID:_0x31f3ce,textRanges:_0x3bbe25}=_0x156ced,_0x599bb6=Ns(_0x3bbe25),_0x146e57={'unitID':_0x141ae0,'memberID':_0x31f3ce,'selection':_0x599bb6};this['_collabCursorState$'][_0x31c0f9(0x3ea)](_0x146e57);}}var Hn=Object[_0x3e92f2(0x340)],xn=Object['getOwnPropertyDescriptor'],Fn=(_0x2965b1,_0x479425,_0x3dace0,_0x442c50)=>{for(var _0xa2d940=_0x442c50>0x1?void 0x0:_0x442c50?xn(_0x479425,_0x3dace0):_0x479425,_0x1b70ef=_0x2965b1['length']-0x1,_0x59fd2e;_0x1b70ef>=0x0;_0x1b70ef--)(_0x59fd2e=_0x2965b1[_0x1b70ef])&&(_0xa2d940=(_0x442c50?_0x59fd2e(_0x479425,_0x3dace0,_0xa2d940):_0x59fd2e(_0xa2d940))||_0xa2d940);return _0x442c50&&_0xa2d940&&Hn(_0x479425,_0x3dace0,_0xa2d940),_0xa2d940;},Qt=(_0xfa5439,_0x832892)=>(_0xe74e5,_0x18eca2)=>_0x832892(_0xe74e5,_0x18eca2,_0xfa5439);function Vn(_0x3f265e){const _0x362471=_0x3e92f2,{unitID:_0x10b25e,mutations:_0x24b9eb}=_0x3f265e;return{'unitId':_0x10b25e,'subUnitId':_0x24b9eb[0x0][_0x362471(0x394)][_0x362471(0x31a)]};}let ze=class{constructor(_0x4f018a,_0x36859e){const _0x27f85b=_0x3e92f2;this[_0x27f85b(0x443)]=_0x4f018a,this[_0x27f85b(0x22e)]=_0x36859e;}['transformSelections'](_0x2ad37a){const _0x388fe3=_0x3e92f2;var _0x5c5f2f,_0x2f6375,_0x2005f6;const _0x5f5463=this[_0x388fe3(0x443)][_0x388fe3(0x2d5)](_0xebd730),{unitId:_0x1c9b05,subUnitId:_0x496575}=Vn(_0x2ad37a),_0x5dc8d6=_0x5f5463[_0x388fe3(0x4b9)](_0x1c9b05)[_0x388fe3(0x344)]();if(_0x5dc8d6['length']===0x0||!_0x1c9b05||!_0x496575)return;const _0x2b048a=[{'id':_0x594d48['id'],'params':{'unitId':_0x1c9b05,'subUnitId':_0x496575,'selections':_0x545ca3['deepClone'](_0x5dc8d6)}}],_0xe2a208=this[_0x388fe3(0x22e)]['transformMutationsWithChangeset'](_0x2ad37a,_0x2b048a);if(!_0x496a31(_0xe2a208))throw _0xe2a208[_0x388fe3(0x23c)];const _0x2361bf=(_0x2005f6=(_0x2f6375=(_0x5c5f2f=_0xe2a208[_0x388fe3(0x2fb)][0x0])==null?void 0x0:_0x5c5f2f[_0x388fe3(0x394)])==null?void 0x0:_0x2f6375[_0x388fe3(0x4c0)])!=null?_0x2005f6:_0x5dc8d6;Array['isArray'](_0x2361bf)&&_0x2361bf[_0x388fe3(0x1a4)]&&this[_0x388fe3(0x443)][_0x388fe3(0x2d5)](_0x109aa8)['executeCommand'](_0x594d48['id'],{'unitId':_0x1c9b05,'subUnitId':_0x496575,'selections':_0x2361bf});}};ze=Fn([Qt(0x0,_0xbbf94a(_0xa8f435)),Qt(0x1,_0x1b279b)],ze);const Bn=new Set([_0x37a75d['id']]);function kn(_0x2eb567,_0x16b179,_0x5b2567,_0x39c46b,_0x106e1a){const _0x523141=_0x3e92f2;var _0x41a8d4,_0x547d78,_0x33d53c,_0x13d018;const _0x447eb4=[];for(const _0x294c78 of _0x2eb567)if(Bn[_0x523141(0x31c)](_0x294c78['id'])){if(_0x447eb4['length']>0x0)break;_0x447eb4['push'](_0x294c78);break;}else _0x447eb4['push'](_0x294c78);const _0xf77aef=(_0x547d78=(_0x41a8d4=_0x106e1a[_0x523141(0x3df)]())==null?void 0x0:_0x41a8d4[_0x523141(0x485)])!=null?_0x547d78:_0x523141(0x36e),_0x1600df=(_0x13d018=(_0x33d53c=_0x106e1a['getCurrentUser']())==null?void 0x0:_0x33d53c[_0x523141(0x35a)])!=null?_0x13d018:_0x523141(0x36e);return{'changeset':{'unitID':_0x16b179,'type':_0x50ce5b(_0x5b2567[_0x523141(0x2b7)](_0x16b179)),'baseRev':_0x39c46b['getCurrentRevForDocument'](_0x16b179),'revision':0x0,'userID':_0xf77aef,'memberID':_0x1600df,'mutations':_0x447eb4},'pendingMutations':_0x2eb567['slice'](_0x447eb4[_0x523141(0x1a4)])};}function Wn(_0xa0fd41,_0x2e17b8,_0x4c7d7e,_0x68da28,_0x2ece65){const _0x324532=_0x3e92f2;var _0x4ed7f0,_0x30c98a,_0x22e14a,_0x4c216b;const _0x3bafe1=[_0xa0fd41[_0x324532(0x379)]((_0x3086e3,_0x1fea06)=>{const _0x2b2740=_0x324532;var _0x3a5077;const {id:_0x3844a3}=_0x3086e3,{id:_0x21aa81,type:_0x355683}=_0x1fea06,_0x49d111=(_0x3a5077=_0x3086e3[_0x2b2740(0x394)])!=null?_0x3a5077:{'actions':null},_0x139d60=_0x1fea06[_0x2b2740(0x394)];if(_0x3844a3&&_0x3844a3!==_0x21aa81)throw new Error(_0x2b2740(0x4ae)+_0x3844a3+_0x2b2740(0x430)+_0x21aa81+'.');return{..._0x3086e3,'id':_0x21aa81,'type':_0x355683,'params':{'unitId':_0x139d60[_0x2b2740(0x3ae)],'textRanges':_0x139d60[_0x2b2740(0x371)],'actions':_0x578d98[_0x2b2740(0x3c2)](_0x49d111[_0x2b2740(0x4b5)],_0x139d60[_0x2b2740(0x4b5)])}};},{})],_0x46fb84=(_0x30c98a=(_0x4ed7f0=_0x2ece65[_0x324532(0x3df)]())==null?void 0x0:_0x4ed7f0[_0x324532(0x485)])!=null?_0x30c98a:_0x324532(0x36e),_0x52e3b8=(_0x4c216b=(_0x22e14a=_0x2ece65[_0x324532(0x3df)]())==null?void 0x0:_0x22e14a['memberID'])!=null?_0x4c216b:_0x324532(0x36e);return{'changeset':{'unitID':_0x2e17b8,'type':_0x50ce5b(_0x4c7d7e['getUnitType'](_0x2e17b8)),'baseRev':_0x68da28[_0x324532(0x232)](_0x2e17b8),'revision':0x0,'userID':_0x46fb84,'memberID':_0x52e3b8,'mutations':_0x3bafe1},'pendingMutations':[]};}var Gn=Object['defineProperty'],Yn=Object['getOwnPropertyDescriptor'],oe=(_0xea223e,_0x379bae,_0x554b13,_0x321df7)=>{const _0x323bb9=_0x3e92f2;for(var _0x47b7ab=_0x321df7>0x1?void 0x0:_0x321df7?Yn(_0x379bae,_0x554b13):_0x379bae,_0x114aab=_0xea223e[_0x323bb9(0x1a4)]-0x1,_0x25098b;_0x114aab>=0x0;_0x114aab--)(_0x25098b=_0xea223e[_0x114aab])&&(_0x47b7ab=(_0x321df7?_0x25098b(_0x379bae,_0x554b13,_0x47b7ab):_0x25098b(_0x47b7ab))||_0x47b7ab);return _0x321df7&&_0x47b7ab&&Gn(_0x379bae,_0x554b13,_0x47b7ab),_0x47b7ab;},m=(_0x5db5a7,_0x3dc9f9)=>(_0x1397b1,_0x3c975a)=>_0x3dc9f9(_0x1397b1,_0x3c975a,_0x5db5a7),P=(_0x3e4720=>(_0x3e4720[_0x3e92f2(0x41b)]=_0x3e92f2(0x495),_0x3e4720[_0x3e92f2(0x3dd)]='synced',_0x3e4720[_0x3e92f2(0x475)]='pending',_0x3e4720[_0x3e92f2(0x441)]='awaiting',_0x3e4720[_0x3e92f2(0x2ce)]=_0x3e92f2(0x301),_0x3e4720[_0x3e92f2(0x455)]=_0x3e92f2(0x40b),_0x3e4720['CONFLICT']='conflict',_0x3e4720[_0x3e92f2(0x461)]='offline',_0x3e4720))(P||{});class ae{constructor(_0x4f848e,_0x3dcbc9,_0x2b6db,_0x54eb3a,_0x5510e6,_0x15dfb4,_0x2fd74,_0x29c52d,_0x473eaf){const _0xcf1d6a=_0x3e92f2;l(this,'_awaitingChangeset',null),l(this,_0xcf1d6a(0x439),[]),(this[_0xcf1d6a(0x3ca)]=_0x4f848e,this[_0xcf1d6a(0x342)]=_0x3dcbc9,this['_handler']=_0x5510e6,this[_0xcf1d6a(0x1f2)]=_0x15dfb4,this[_0xcf1d6a(0x305)]=_0x2fd74,this[_0xcf1d6a(0x49e)]=_0x29c52d,this['_localCacheService']=_0x473eaf,this['_awaitingChangeset']=_0x2b6db,this[_0xcf1d6a(0x439)]=_0x54eb3a);}['_checkMissing'](_0x59849b){const _0x434773=_0x3e92f2,_0x4a40e7=this[_0x434773(0x49e)][_0x434773(0x232)](this[_0x434773(0x3ca)]);return _0x59849b['revision']>_0x4a40e7+0x1?(this[_0x434773(0x30d)][_0x434773(0x4c7)]({'from':_0x4a40e7,'to':_0x59849b['revision']-0x1}),!0x0):!0x1;}[_0x3e92f2(0x3c5)](_0x30eff9){const _0x138b45=_0x3e92f2;this[_0x138b45(0x305)][_0x138b45(0x250)](this[_0x138b45(0x3ca)],_0x30eff9);}[_0x3e92f2(0x2f0)](_0x152514){const _0x1a01ac=_0x3e92f2;var _0x2fe784,_0x4ca171;(_0x4ca171=(_0x2fe784=this[_0x1a01ac(0x30d)])[_0x1a01ac(0x313)])==null||_0x4ca171[_0x1a01ac(0x49a)](_0x2fe784,_0x152514);}[_0x3e92f2(0x3a1)](_0x4549af){const _0xb5ea1a=_0x3e92f2;var _0x1d963d,_0x55ca4e;return(_0x55ca4e=(_0x1d963d=this[_0xb5ea1a(0x30d)])[_0xb5ea1a(0x41f)])==null?void 0x0:_0x55ca4e[_0xb5ea1a(0x49a)](_0x1d963d,_0x4549af);}['_transformRemoteChangesetByIMECache'](_0x1877eb){const _0x5a3071=_0x3e92f2;var _0x64eba,_0x42deed,_0x294cd3;return(_0x294cd3=(_0x42deed=(_0x64eba=this[_0x5a3071(0x30d)])[_0x5a3071(0x3dc)])==null?void 0x0:_0x42deed[_0x5a3071(0x49a)](_0x64eba,_0x1877eb))!=null?_0x294cd3:_0x1877eb;}[_0x3e92f2(0x203)](_0x4c6e90){const _0xafa549=_0x3e92f2;var _0x48bf57,_0x4e6342;if(this[_0xafa549(0x342)]===H[_0xafa549(0x2e1)]){const {unitID:_0x5117b6,mutations:_0x53e0f3,memberID:_0x203f05}=_0x4c6e90,_0x1eaf29=_0x53e0f3[0x0]['params'][_0xafa549(0x371)];Array[_0xafa549(0x48f)](_0x1eaf29)&&_0x1eaf29['length']>0x0&&((_0x4e6342=(_0x48bf57=this['_handler'])[_0xafa549(0x369)])==null||_0x4e6342[_0xafa549(0x49a)](_0x48bf57,{'unitID':_0x5117b6,'memberID':_0x203f05,'textRanges':_0x1eaf29}));}}[_0x3e92f2(0x434)](){const _0x2dacc4=_0x3e92f2;this['_localCacheService']['updateOfflineData'](this[_0x2dacc4(0x3ca)],this[_0x2dacc4(0x342)],this[_0x2dacc4(0x4ca)],this[_0x2dacc4(0x439)]);}[_0x3e92f2(0x1fe)](){const _0x382921=_0x3e92f2;return this['_revisionService']['getCurrentRevForDocument'](this[_0x382921(0x3ca)]);}[_0x3e92f2(0x498)](){const _0x25c7a7=_0x3e92f2;this[_0x25c7a7(0x49e)][_0x25c7a7(0x282)](this['unitID']);}[_0x3e92f2(0x223)](_0x49f579){const _0x29adb4=_0x3e92f2;var _0x459a2a;const _0x1aeb7d=this[_0x29adb4(0x290)](_0x49f579),_0x23cbd2=_0x32c463(_0x1aeb7d[_0x29adb4(0x1d5)],this[_0x29adb4(0x1f2)],{'fromCollab':!0x0});if(!_0x23cbd2['result'])throw _0x23cbd2[_0x29adb4(0x23c)]instanceof Error?_0x23cbd2['error']:new Error((_0x459a2a=_0x23cbd2[_0x29adb4(0x23c)])!=null?_0x459a2a:_0x29adb4(0x4ab));this[_0x29adb4(0x3a1)](_0x1aeb7d),this[_0x29adb4(0x3c5)](_0x49f579),this[_0x29adb4(0x2f0)](_0x1aeb7d),this['_syncEditingCollabCursor'](_0x1aeb7d),this[_0x29adb4(0x498)]();}}let Ne=class extends ae{constructor(_0x3de755,_0x506b5e,_0x1b53d3,_0x2c55f3,_0x1292d1,_0x11e3c7,_0x54045c,_0x51a5c9,_0xd1ba63){const _0x39ec6c=_0x3e92f2;super(_0x3de755,_0x506b5e,null,[],_0x1b53d3,_0x51a5c9,_0x54045c,_0x2c55f3,_0x1292d1),l(this,_0x39ec6c(0x306),'synced'),(this['_injector']=_0x11e3c7,this[_0x39ec6c(0x27b)]=_0xd1ba63);}[_0x3e92f2(0x336)](_0x5a90e6){const _0x25d88c=_0x3e92f2,_0xa4977f=this[_0x25d88c(0x443)][_0x25d88c(0x1df)](k,this['unitID'],this['type'],[_0x5a90e6],this[_0x25d88c(0x30d)]);return _0xa4977f[_0x25d88c(0x1b5)](),_0xa4977f['_updateLocalCache'](),_0xa4977f;}['onRemoteChangeset'](_0x47ed41){const _0x1d1d78=_0x3e92f2;if(this[_0x1d1d78(0x219)](_0x47ed41))return this['_injector'][_0x1d1d78(0x1df)](G,this['unitID'],this[_0x1d1d78(0x342)],null,[],null,[_0x47ed41],this[_0x1d1d78(0x30d)]);try{return this[_0x1d1d78(0x223)](_0x47ed41),this;}catch(_0xcf14fa){return this[_0x1d1d78(0x27b)][_0x1d1d78(0x23c)](_0x1d1d78(0x23b),_0xcf14fa),this;}}['onRemoteAck'](){const _0x15f537=_0x3e92f2;throw new Error(_0x15f537(0x404));}[_0x3e92f2(0x257)](){const _0x2ff9b8=_0x3e92f2;throw new Error(_0x2ff9b8(0x263));}['toggleOffline'](){const _0x12597d=_0x3e92f2;return this[_0x12597d(0x443)][_0x12597d(0x1df)](z,this['unitID'],this[_0x12597d(0x342)],null,[],this[_0x12597d(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1c0)](){const _0x196721=_0x3e92f2;throw new Error(_0x196721(0x284));}};Ne=oe([m(0x3,_0xbbf94a(_0xee930)),m(0x4,_0xbbf94a(D)),m(0x5,_0xbbf94a(_0xa8f435)),m(0x6,_0x1e106e),m(0x7,_0x109aa8),m(0x8,_0x46d807)],Ne);let k=class extends ae{constructor(_0x3832ce,_0x3bf1a7,_0x32fedf,_0x3f82fc,_0x2ef567,_0xe083b9,_0x5e0f8d,_0x5f1403,_0xd9fd13,_0x445def,_0x25f224,_0x4af88a,_0x5e2542,_0x57d656){const _0x481e29=_0x3e92f2;super(_0x3832ce,_0x3bf1a7,null,_0x32fedf,_0x3f82fc,_0x445def,_0x57d656,_0xe083b9,_0x5e0f8d),l(this,_0x481e29(0x306),_0x481e29(0x1b3)),l(this,_0x481e29(0x1a8),null),l(this,'_sendingTimer',null),(this['_injector']=_0x2ef567,this[_0x481e29(0x29e)]=_0x5f1403,this[_0x481e29(0x27b)]=_0xd9fd13,this[_0x481e29(0x292)]=_0x25f224,this['_transformService']=_0x4af88a,this[_0x481e29(0x1ef)]=_0x5e2542);}[_0x3e92f2(0x336)](_0x316160){const _0x2dcd89=_0x3e92f2;return this[_0x2dcd89(0x439)][_0x2dcd89(0x2cb)](_0x316160),this['_updateLocalCache'](),this;}[_0x3e92f2(0x3b9)](_0x248f14){const _0x547550=_0x3e92f2;if(this[_0x547550(0x219)](_0x248f14))return this[_0x547550(0x3ad)](),this[_0x547550(0x443)][_0x547550(0x1df)](G,this[_0x547550(0x3ca)],this['type'],null,this['_pendingMutations'],null,[_0x248f14],this[_0x547550(0x30d)]);try{const _0x1a5f17=this[_0x547550(0x22e)][_0x547550(0x242)](_0x248f14,this['_pendingMutations']);if(_0x496a31(_0x1a5f17)){const {c1Prime:_0xc2c89d,m2Prime:_0x4ec05c}=_0x1a5f17;this['_executeRemoteChangeset'](_0xc2c89d);const _0x4c9bb4=this[_0x547550(0x443)][_0x547550(0x1df)](k,this[_0x547550(0x3ca)],this[_0x547550(0x342)],_0x4ec05c,this[_0x547550(0x30d)]);return this['_clearScheduledTask'](),_0x4c9bb4['_schedule'](this[_0x547550(0x1a8)]?Math['max'](0x0,new Date()[_0x547550(0x302)]()-this[_0x547550(0x1a8)]):this[_0x547550(0x303)]()),_0x4c9bb4;}throw _0x1a5f17[_0x547550(0x23c)];}catch(_0x3352f7){return this['_logService'][_0x547550(0x23c)](_0x3352f7),this[_0x547550(0x236)](!0x1);}}[_0x3e92f2(0x2b4)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x3e92f2(0x257)](){const _0x15e154=_0x3e92f2;throw new Error(_0x15e154(0x418));}['toggleOffline'](){const _0x4e53b2=_0x3e92f2;return this[_0x4e53b2(0x3ad)](),this[_0x4e53b2(0x443)][_0x4e53b2(0x1df)](z,this['unitID'],this[_0x4e53b2(0x342)],null,this[_0x4e53b2(0x439)],this[_0x4e53b2(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1b5)](_0x1774c6){const _0x41519d=_0x3e92f2;_0x1774c6=_0x1774c6!=null?_0x1774c6:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()[_0x41519d(0x302)](),this[_0x41519d(0x42c)]=setTimeout(()=>{const _0x32596=_0x41519d;this[_0x32596(0x3ad)]();let _0x128fa4=null;switch(this[_0x32596(0x342)]){case H[_0x32596(0x241)]:{_0x128fa4=kn(this[_0x32596(0x439)],this[_0x32596(0x3ca)],this[_0x32596(0x1ef)],this[_0x32596(0x49e)],this['_memberService']);break;}case H[_0x32596(0x2e1)]:{_0x128fa4=Wn(this[_0x32596(0x439)],this[_0x32596(0x3ca)],this[_0x32596(0x1ef)],this['_revisionService'],this[_0x32596(0x29e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x32596(0x342)]+_0x32596(0x2df));}const {changeset:_0x144ba4,pendingMutations:_0x4e976e}=_0x128fa4;this[_0x32596(0x30d)]['onSendChangeset'](_0x144ba4);const _0x3c10df=_0x4e976e[_0x32596(0x1a4)]?this[_0x32596(0x443)]['createInstance'](W,this[_0x32596(0x3ca)],this[_0x32596(0x342)],_0x144ba4,_0x4e976e,this[_0x32596(0x30d)]):this[_0x32596(0x443)][_0x32596(0x1df)](J,this[_0x32596(0x3ca)],this[_0x32596(0x342)],_0x144ba4,this[_0x32596(0x30d)]);_0x3c10df[_0x32596(0x434)](),this['_handler'][_0x32596(0x2c1)](this,_0x3c10df);},_0x1774c6);}[_0x3e92f2(0x303)](){const _0x18bc29=_0x3e92f2;var _0x1d5b78;return(_0x1d5b78=this[_0x18bc29(0x292)][_0x18bc29(0x361)](Zi))!=null?_0x1d5b78:Qi;}[_0x3e92f2(0x1c0)](){const _0x241022=_0x3e92f2;throw new Error(_0x241022(0x207));}[_0x3e92f2(0x3ad)](){const _0x59a75f=_0x3e92f2;this[_0x59a75f(0x42c)]!=null&&(clearTimeout(this[_0x59a75f(0x42c)]),this[_0x59a75f(0x42c)]=null);}[_0x3e92f2(0x236)](_0x1826f2){const _0x42fb3b=_0x3e92f2;return this[_0x42fb3b(0x3ad)](),this[_0x42fb3b(0x443)][_0x42fb3b(0x1df)](re,this[_0x42fb3b(0x3ca)],this['type'],null,this[_0x42fb3b(0x439)],this[_0x42fb3b(0x30d)],_0x1826f2);}};k=oe([m(0x4,_0xbbf94a(_0xa8f435)),m(0x5,_0xbbf94a(_0xee930)),m(0x6,_0xbbf94a(D)),m(0x7,_0xbbf94a(ne)),m(0x8,_0x46d807),m(0x9,_0x109aa8),m(0xa,_0x523c70),m(0xb,_0x1b279b),m(0xc,_0x5f1ae0),m(0xd,_0x1e106e)],k);let J=class extends ae{constructor(_0x197cd8,_0x4d993d,_0x7ef141,_0x128f97,_0x452bac,_0x5544ab,_0x52884d,_0x3a1f75,_0x4e6d53,_0x190c02,_0x1bbd6c){const _0x26af63=_0x3e92f2;super(_0x197cd8,_0x4d993d,_0x7ef141,[],_0x128f97,_0x3a1f75,_0x1bbd6c,_0x5544ab,_0x52884d),l(this,'status',_0x26af63(0x3b2)),(this[_0x26af63(0x443)]=_0x452bac,this[_0x26af63(0x27b)]=_0x4e6d53,this[_0x26af63(0x22e)]=_0x190c02);}[_0x3e92f2(0x336)](_0x5e476e){const _0x213c0d=_0x3e92f2,_0x29b4a1=this[_0x213c0d(0x443)]['createInstance'](W,this[_0x213c0d(0x3ca)],this[_0x213c0d(0x342)],this['_awaitingChangeset'],[_0x5e476e],this[_0x213c0d(0x30d)]);return _0x29b4a1[_0x213c0d(0x434)](),_0x29b4a1;}[_0x3e92f2(0x3b9)](_0x214b53){const _0x5dfd54=_0x3e92f2;if(this[_0x5dfd54(0x219)](_0x214b53))return this[_0x5dfd54(0x443)][_0x5dfd54(0x1df)](G,this['unitID'],this[_0x5dfd54(0x342)],this[_0x5dfd54(0x4ca)],[],null,[_0x214b53],this['_handler']);try{const _0x5d5761=this[_0x5dfd54(0x22e)][_0x5dfd54(0x2c3)]([_0x214b53],[this[_0x5dfd54(0x4ca)]],!0x1);if(_0x27db11(_0x5d5761)){const {c1Prime:_0x43c06b,c2Prime:_0x49b466}=_0x5d5761;this[_0x5dfd54(0x223)](_0x43c06b[0x0]),_0x49b466[0x0]['baseRev']=this['_getCurrentRevision']();const _0x50ef95=this['_injector'][_0x5dfd54(0x1df)](J,this['unitID'],this['type'],_0x49b466[0x0],this[_0x5dfd54(0x30d)]);return _0x50ef95[_0x5dfd54(0x434)](),_0x50ef95;}return this['_onConflict'](!0x1);}catch(_0x2b2cd3){return this[_0x5dfd54(0x27b)]['error'](_0x2b2cd3),this[_0x5dfd54(0x236)](!0x1);}}[_0x3e92f2(0x2b4)](_0x282726){const _0x1cb292=_0x3e92f2,_0x5607f9=this[_0x1cb292(0x49e)]['getCurrentRevForDocument'](this[_0x1cb292(0x3ca)]);if(_0x282726['revision']<_0x5607f9-0x1)return this;if(this[_0x1cb292(0x219)](_0x282726))return this['_injector'][_0x1cb292(0x1df)](G,this[_0x1cb292(0x3ca)],this[_0x1cb292(0x342)],null,[],this[_0x1cb292(0x4ca)],[],this[_0x1cb292(0x30d)]);this[_0x1cb292(0x498)]();const _0x44a95c=this[_0x1cb292(0x443)][_0x1cb292(0x1df)](Ne,this['unitID'],this[_0x1cb292(0x342)],this['_handler']);return _0x44a95c[_0x1cb292(0x434)](),_0x44a95c;}['onRemoteRej'](_0x10e19b){const _0x4adfc5=_0x3e92f2;return this[_0x4adfc5(0x236)](!!(_0x10e19b!=null&&_0x10e19b[_0x4adfc5(0x30e)]));}['toggleOffline'](){const _0x52253b=_0x3e92f2;return this[_0x52253b(0x443)]['createInstance'](z,this[_0x52253b(0x3ca)],this[_0x52253b(0x342)],this[_0x52253b(0x4ca)],[],this[_0x52253b(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1c0)](){const _0x282f66=_0x3e92f2;this[_0x282f66(0x30d)][_0x282f66(0x43a)](this[_0x282f66(0x4ca)]);}[_0x3e92f2(0x236)](_0x41e0e8){const _0x21ecf3=_0x3e92f2;return this['_injector']['createInstance'](re,this[_0x21ecf3(0x3ca)],this[_0x21ecf3(0x342)],this[_0x21ecf3(0x4ca)],[],this[_0x21ecf3(0x30d)],_0x41e0e8);}};J=oe([m(0x4,_0xbbf94a(_0xa8f435)),m(0x5,_0xbbf94a(_0xee930)),m(0x6,_0xbbf94a(D)),m(0x7,_0x109aa8),m(0x8,_0x46d807),m(0x9,_0x1b279b),m(0xa,_0x1e106e)],J);let W=class extends ae{constructor(_0x106ec1,_0x554ddd,_0x4074f3,_0x2c439b,_0x3280d7,_0x2ca8bb,_0x3d0ea7,_0x4c7496,_0x25e5b6,_0x3fc7d8,_0x3faa52,_0x2c9da2){const _0x3f900c=_0x3e92f2;super(_0x106ec1,_0x554ddd,_0x4074f3,_0x2c439b,_0x3280d7,_0x25e5b6,_0x2c9da2,_0x3d0ea7,_0x4c7496),l(this,_0x3f900c(0x306),_0x3f900c(0x301)),(this['_injector']=_0x2ca8bb,this['_logService']=_0x3fc7d8,this[_0x3f900c(0x22e)]=_0x3faa52);}['appendMutation'](_0x1350cc){const _0x97b7d1=_0x3e92f2;return this['_pendingMutations'][_0x97b7d1(0x2cb)](_0x1350cc),this;}[_0x3e92f2(0x3b9)](_0x5b3746){const _0xf86c05=_0x3e92f2;if(this[_0xf86c05(0x219)](_0x5b3746))return this[_0xf86c05(0x443)][_0xf86c05(0x1df)](G,this[_0xf86c05(0x3ca)],this[_0xf86c05(0x342)],this['_awaitingChangeset'],this[_0xf86c05(0x439)],null,[_0x5b3746],this[_0xf86c05(0x30d)]);try{const _0x406c0b=this[_0xf86c05(0x22e)]['transformChangesets']([_0x5b3746],[this[_0xf86c05(0x4ca)]],!0x1);if(_0x27db11(_0x406c0b)){const {c1Prime:_0x4e940e,c2Prime:_0x1ba4dd}=_0x406c0b,_0x18a80b=this[_0xf86c05(0x22e)][_0xf86c05(0x242)](_0x4e940e[0x0],this[_0xf86c05(0x439)]);if(_0x496a31(_0x18a80b)){const {c1Prime:_0x1ddb0d,m2Prime:_0x270c0b}=_0x18a80b;return this[_0xf86c05(0x223)](_0x1ddb0d),_0x1ba4dd[0x0][_0xf86c05(0x206)]=this['_getCurrentRevision'](),this['_injector']['createInstance'](W,this[_0xf86c05(0x3ca)],this[_0xf86c05(0x342)],_0x1ba4dd[0x0],_0x270c0b,this['_handler']);}throw _0x18a80b['error'];}throw _0x406c0b[_0xf86c05(0x23c)];}catch(_0xc3d2c8){return this[_0xf86c05(0x27b)][_0xf86c05(0x23c)](_0xc3d2c8),this[_0xf86c05(0x236)](!0x1);}}[_0x3e92f2(0x2b4)](_0x39492b){const _0xa23e9e=_0x3e92f2;if(this[_0xa23e9e(0x219)](_0x39492b))return this['_injector'][_0xa23e9e(0x1df)](G,this[_0xa23e9e(0x3ca)],this['type'],null,this[_0xa23e9e(0x439)],this[_0xa23e9e(0x4ca)],[],this[_0xa23e9e(0x30d)]);this[_0xa23e9e(0x498)]();const _0x526918=this[_0xa23e9e(0x443)]['createInstance'](k,this[_0xa23e9e(0x3ca)],this[_0xa23e9e(0x342)],this[_0xa23e9e(0x439)],this[_0xa23e9e(0x30d)]);return _0x526918[_0xa23e9e(0x1b5)](),_0x526918[_0xa23e9e(0x434)](),_0x526918;}[_0x3e92f2(0x257)](_0x5cc35f){const _0x26e6a8=_0x3e92f2;return this[_0x26e6a8(0x236)](!!(_0x5cc35f!=null&&_0x5cc35f[_0x26e6a8(0x30e)]));}[_0x3e92f2(0x373)](){const _0x169c91=_0x3e92f2;return this['_injector'][_0x169c91(0x1df)](z,this[_0x169c91(0x3ca)],this[_0x169c91(0x342)],this[_0x169c91(0x4ca)],this[_0x169c91(0x439)],this[_0x169c91(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x1c0)](){const _0x553c7a=_0x3e92f2;this[_0x553c7a(0x30d)][_0x553c7a(0x43a)](this[_0x553c7a(0x4ca)]);}[_0x3e92f2(0x236)](_0x4a6e5f){const _0x1b3ddd=_0x3e92f2;return this['_injector'][_0x1b3ddd(0x1df)](re,this[_0x1b3ddd(0x3ca)],this[_0x1b3ddd(0x342)],null,this[_0x1b3ddd(0x439)],this['_handler'],_0x4a6e5f);}};W=oe([m(0x5,_0xbbf94a(_0xa8f435)),m(0x6,_0xbbf94a(_0xee930)),m(0x7,_0xbbf94a(D)),m(0x8,_0x109aa8),m(0x9,_0x46d807),m(0xa,_0x1b279b),m(0xb,_0x1e106e)],W);let re=class extends ae{constructor(_0x44aad0,_0x2acd27,_0x193589,_0x2426e7,_0x469cdc,_0x8a3eee=!0x1,_0x4d3a3e,_0x3d3f34,_0x4480a7,_0x2170f0,_0x181d9d,_0x45b084,_0x39ba83){const _0x55ad0c=_0x3e92f2;super(_0x44aad0,_0x2acd27,_0x193589,_0x2426e7,_0x469cdc,_0x3d3f34,_0x4480a7,_0x181d9d,_0x2170f0),l(this,'status',_0x55ad0c(0x29d)),(this['_isPermissionRej']=_0x8a3eee,this['_permissionService']=_0x4d3a3e,this[_0x55ad0c(0x4b3)]=_0x45b084,this[_0x55ad0c(0x2bb)]=_0x39ba83,this[_0x55ad0c(0x222)](),this[_0x55ad0c(0x274)](),this[_0x55ad0c(0x3f5)]());}[_0x3e92f2(0x336)](){return this;}['onRemoteChangeset'](){return this;}[_0x3e92f2(0x2b4)](){return this;}['onRemoteRej'](){return this;}[_0x3e92f2(0x373)](){return this;}['toggleOnline'](){return this;}[_0x3e92f2(0x1c0)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3e92f2(0x274)](){const _0xbb9a25=_0x3e92f2;this['_localCacheService'][_0xbb9a25(0x271)](this['unitID'],this['type'],null,[]);}[_0x3e92f2(0x222)](){const _0x33bab7=_0x3e92f2;this[_0x33bab7(0x4a5)]?this['_notificationService'][_0x33bab7(0x3a7)]({'title':this[_0x33bab7(0x4b3)]['t'](_0x33bab7(0x37e)),'content':this[_0x33bab7(0x4b3)]['t'](_0x33bab7(0x3ed)),'type':_0x33bab7(0x23c),'duration':0x0}):this['_notificationService']['show']({'title':this['_localeService']['t'](_0x33bab7(0x32c)),'content':this['_localeService']['t'](_0x33bab7(0x2a5)),'type':_0x33bab7(0x23c),'duration':0x0});}[_0x3e92f2(0x3f5)](){const _0x3ac4b2=_0x3e92f2;this[_0x3ac4b2(0x3b3)][_0x3ac4b2(0x4a9)](new _0xd881f1(this['unitID'])['id'],!0x1);}};re=oe([m(0x6,_0xbbf94a(_0x4acf08)),m(0x7,_0x109aa8),m(0x8,_0x1e106e),m(0x9,_0xbbf94a(D)),m(0xa,_0xbbf94a(_0xee930)),m(0xb,_0xbbf94a(_0x6789ab)),m(0xc,_0x47f284)],re);let z=class extends ae{constructor(_0x15f927,_0x261d6a,_0x3bbf11,_0x1319f3,_0x4f19be,_0x5ab455,_0x544eb8,_0x5f3001,_0x758ed9,_0x16e298){const _0x3d0bf2=_0x3e92f2;super(_0x15f927,_0x261d6a,_0x3bbf11,_0x1319f3,_0x4f19be,_0x758ed9,_0x16e298,_0x544eb8,_0x5f3001),l(this,'status',_0x3d0bf2(0x258)),this[_0x3d0bf2(0x443)]=_0x5ab455;}['appendMutation'](_0x2e155e){const _0x269c0d=_0x3e92f2;return this[_0x269c0d(0x439)][_0x269c0d(0x2cb)](_0x2e155e),this[_0x269c0d(0x434)](),this;}[_0x3e92f2(0x3b9)](_0x4bf65f){const _0x5deff5=_0x3e92f2;throw new Error(_0x5deff5(0x1aa));}['onRemoteAck'](){const _0x21ed46=_0x3e92f2;throw new Error(_0x21ed46(0x37f));}[_0x3e92f2(0x257)](){const _0x33093a=_0x3e92f2;throw new Error(_0x33093a(0x34c));}[_0x3e92f2(0x373)](){return this;}[_0x3e92f2(0x239)](){const _0x3e3a73=_0x3e92f2,{_injector:_0x84f40,_pendingMutations:_0x57bb15,_awaitingChangeset:_0x56bf21,unitID:_0x421340,_handler:_0x3767fe,type:_0x386369}=this,_0x679725=Ms(_0x84f40,_0x421340,_0x386369,_0x56bf21,_0x57bb15,_0x3767fe);return _0x679725 instanceof k?_0x679725[_0x3e3a73(0x1b5)]():(_0x679725 instanceof W||_0x679725 instanceof J)&&_0x679725[_0x3e3a73(0x1c0)](),_0x679725;}[_0x3e92f2(0x1c0)](){const _0x5750df=_0x3e92f2;throw new Error(_0x5750df(0x25e));}};z=oe([m(0x5,_0xbbf94a(_0xa8f435)),m(0x6,_0xbbf94a(_0xee930)),m(0x7,_0xbbf94a(D)),m(0x8,_0x109aa8),m(0x9,_0x1e106e)],z);let G=class extends ae{constructor(_0x11db1c,_0x22bdef,_0x4091bf,_0x433bdf,_0x56cd4a,_0xd3cb2f,_0x7dcea4,_0x177bc1,_0x4d3d36,_0x3d2129,_0x22cdf0,_0x11f9a9,_0x284d18,_0x3f2772){const _0x968ea2=_0x3e92f2;super(_0x11db1c,_0x22bdef,_0x4091bf,_0x433bdf,_0x7dcea4,_0x11f9a9,_0x284d18,_0x4d3d36,_0x3d2129),l(this,_0x968ea2(0x306),_0x968ea2(0x40b)),(this[_0x968ea2(0x1bc)]=_0x56cd4a,this[_0x968ea2(0x460)]=_0xd3cb2f,this['_injector']=_0x177bc1,this[_0x968ea2(0x27b)]=_0x22cdf0,this[_0x968ea2(0x22e)]=_0x3f2772);}['onMissedChangesetFetched'](_0x264d1d){const _0x430ef1=_0x3e92f2;try{const _0x35d1c9=[..._0x264d1d,...this[_0x430ef1(0x460)]],_0x4eaf44=[this[_0x430ef1(0x4ca)]||this[_0x430ef1(0x1bc)]][_0x430ef1(0x2c5)](_0xf98727=>!!_0xf98727);let _0x40496a,_0x26c99d;if(_0x4eaf44[_0x430ef1(0x1a4)]){const _0x5c3cf8=this[_0x430ef1(0x22e)]['transformChangesets'](_0x35d1c9,_0x4eaf44,!0x1);if(!_0x27db11(_0x5c3cf8))throw _0x5c3cf8['error'];_0x40496a=_0x5c3cf8[_0x430ef1(0x2e7)],_0x26c99d=_0x5c3cf8[_0x430ef1(0x2e9)];}else _0x40496a=_0x35d1c9,_0x26c99d=[];let _0x562ad3=this[_0x430ef1(0x439)];_0x40496a['forEach'](_0x402da1=>{const _0x20d0ea=_0x430ef1;let _0x4fa775;if(_0x562ad3[_0x20d0ea(0x1a4)]){const _0x31ca7f=this[_0x20d0ea(0x22e)]['transformMutationsWithChangeset'](_0x402da1,_0x562ad3);if(!_0x496a31(_0x31ca7f))throw _0x31ca7f[_0x20d0ea(0x23c)];_0x4fa775=_0x31ca7f[_0x20d0ea(0x2e7)],_0x562ad3=_0x31ca7f[_0x20d0ea(0x2fb)];}else _0x4fa775=_0x402da1;this['_executeRemoteChangeset'](_0x4fa775);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x430ef1(0x4ca)]&&_0x26c99d[_0x430ef1(0x1a4)]&&(_0x26c99d[0x0][_0x430ef1(0x206)]=this[_0x430ef1(0x1fe)]());let _0x59b480;if(this[_0x430ef1(0x4ca)]&&_0x562ad3['length']!==0x0)_0x59b480=this[_0x430ef1(0x443)]['createInstance'](W,this[_0x430ef1(0x3ca)],this[_0x430ef1(0x342)],_0x26c99d[0x0],_0x562ad3,this[_0x430ef1(0x30d)]);else{if(this['_awaitingChangeset']&&_0x562ad3[_0x430ef1(0x1a4)]===0x0)_0x26c99d[0x0][_0x430ef1(0x206)]=this[_0x430ef1(0x1fe)](),_0x59b480=this[_0x430ef1(0x443)][_0x430ef1(0x1df)](J,this['unitID'],this[_0x430ef1(0x342)],_0x26c99d[0x0],this[_0x430ef1(0x30d)]);else{if(_0x562ad3[_0x430ef1(0x1a4)]!==0x0){const _0x24503d=this['_injector']['createInstance'](k,this[_0x430ef1(0x3ca)],this[_0x430ef1(0x342)],_0x562ad3,this[_0x430ef1(0x30d)]);_0x24503d[_0x430ef1(0x1b5)](),_0x59b480=_0x24503d;}else _0x59b480=this[_0x430ef1(0x443)]['createInstance'](Ne,this[_0x430ef1(0x3ca)],this['type'],this['_handler']);}}return _0x59b480[_0x430ef1(0x434)](),_0x59b480;}catch(_0x1540bf){return this[_0x430ef1(0x27b)][_0x430ef1(0x23c)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x1540bf),this[_0x430ef1(0x443)][_0x430ef1(0x1df)](re,this['unitID'],this[_0x430ef1(0x342)],this[_0x430ef1(0x4ca)],this[_0x430ef1(0x439)],this[_0x430ef1(0x30d)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3e92f2(0x336)](_0x3ea335){const _0x49395f=_0x3e92f2;return this[_0x49395f(0x439)][_0x49395f(0x2cb)](_0x3ea335),this;}['onRemoteChangeset'](_0x2e87c8){const _0x5e9866=_0x3e92f2;return this[_0x5e9866(0x460)][_0x5e9866(0x2cb)](_0x2e87c8),this;}[_0x3e92f2(0x2b4)](_0x3b5aca){const _0x5d22b9=_0x3e92f2;if(this[_0x5d22b9(0x4ca)])return this['_acknowledgedAwaitingChangeset']=this[_0x5d22b9(0x4ca)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x3cca9a){const _0x132884=_0x3e92f2;return this[_0x132884(0x236)](!!(_0x3cca9a!=null&&_0x3cca9a['isPermissionRej']));}[_0x3e92f2(0x373)](){const _0x1961eb=_0x3e92f2;return this[_0x1961eb(0x443)]['createInstance'](z,this['unitID'],this[_0x1961eb(0x342)],this[_0x1961eb(0x4ca)],this[_0x1961eb(0x439)],this[_0x1961eb(0x30d)]);}[_0x3e92f2(0x239)](){return this;}[_0x3e92f2(0x236)](_0x40b58d){const _0x158d77=_0x3e92f2;return this[_0x158d77(0x443)]['createInstance'](re,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x158d77(0x439)],this[_0x158d77(0x30d)],_0x40b58d);}};G=oe([m(0x7,_0xbbf94a(_0xa8f435)),m(0x8,_0xbbf94a(_0xee930)),m(0x9,_0xbbf94a(D)),m(0xa,_0x46d807),m(0xb,_0x109aa8),m(0xc,_0x1e106e),m(0xd,_0x1b279b)],G);function Ms(_0x327022,_0x55f5a2,_0x2a0fc9,_0x25658b,_0x28df7b,_0x13fd6b){const _0x3f48ae=_0x3e92f2;return _0x25658b&&_0x28df7b[_0x3f48ae(0x1a4)]?_0x327022[_0x3f48ae(0x1df)](W,_0x55f5a2,_0x2a0fc9,_0x25658b,_0x28df7b,_0x13fd6b):_0x25658b?_0x327022[_0x3f48ae(0x1df)](J,_0x55f5a2,_0x2a0fc9,_0x25658b,_0x13fd6b):_0x28df7b[_0x3f48ae(0x1a4)]?_0x327022[_0x3f48ae(0x1df)](k,_0x55f5a2,_0x2a0fc9,_0x28df7b,_0x13fd6b):_0x327022['createInstance'](Ne,_0x55f5a2,_0x2a0fc9,_0x13fd6b);}var Kn=Object['defineProperty'],Xn=Object['getOwnPropertyDescriptor'],tt=(_0x45296e,_0x435450,_0x2abadd,_0x37ba71)=>{for(var _0x566698=_0x37ba71>0x1?void 0x0:_0x37ba71?Xn(_0x435450,_0x2abadd):_0x435450,_0x4f6c42=_0x45296e['length']-0x1,_0x555a8f;_0x4f6c42>=0x0;_0x4f6c42--)(_0x555a8f=_0x45296e[_0x4f6c42])&&(_0x566698=(_0x37ba71?_0x555a8f(_0x435450,_0x2abadd,_0x566698):_0x555a8f(_0x566698))||_0x566698);return _0x37ba71&&_0x566698&&Kn(_0x435450,_0x2abadd,_0x566698),_0x566698;},S=(_0x1ce859,_0x253080)=>(_0x575309,_0x2a7057)=>_0x253080(_0x575309,_0x2a7057,_0x1ce859);let De=class extends _0x4c153b{constructor(_0x4ddd23,_0x36f9f9,_0x2f9497){const _0x38f73a=_0x3e92f2;super(),l(this,_0x38f73a(0x412),new Map()),l(this,_0x38f73a(0x1a6),new _0x440796()),(this[_0x38f73a(0x443)]=_0x4ddd23,this[_0x38f73a(0x1f8)]=_0x36f9f9,this[_0x38f73a(0x1ef)]=_0x2f9497,this[_0x38f73a(0x35e)]());}[_0x3e92f2(0x25d)](){const _0x25b78e=_0x3e92f2;super['dispose'](),this[_0x25b78e(0x412)]['forEach'](_0x349f53=>_0x349f53[_0x25b78e(0x25d)]()),this[_0x25b78e(0x412)][_0x25b78e(0x494)]();}[_0x3e92f2(0x3d6)](_0x10c3fd){const _0x30d1f6=_0x3e92f2;var _0x22bf87;return(_0x22bf87=this[_0x30d1f6(0x412)][_0x30d1f6(0x2d5)](_0x10c3fd))!=null?_0x22bf87:null;}['getCollabEntity$'](_0x348c97){const _0x12da36=_0x3e92f2,_0x57139e=this['getCollabEntity'](_0x348c97);return _0x57139e?_0x53ae42(_0x57139e):this['_entityInit$']['pipe'](_0x5e91b7(_0x3bcb30=>_0x3bcb30[_0x12da36(0x3ca)]===_0x348c97));}['_init'](){const _0x2a105e=_0x3e92f2;this[_0x2a105e(0x1ef)][_0x2a105e(0x2c9)](_0x41ddf6['UNIVER_SHEET'])['pipe'](_0x254c9c(this['dispose$']),_0x392c2d(0x10))[_0x2a105e(0x4be)](async _0x12edd9=>{const _0x5e965e=_0x2a105e,_0x357d88=_0x12edd9['getUnitId'](),_0x2e416f=await this[_0x5e965e(0x2f8)](_0x357d88,H[_0x5e965e(0x241)]);this[_0x5e965e(0x412)][_0x5e965e(0x2bc)](_0x357d88,_0x2e416f);}),this[_0x2a105e(0x1ef)][_0x2a105e(0x2c9)](_0x41ddf6['UNIVER_DOC'])[_0x2a105e(0x407)](_0x254c9c(this[_0x2a105e(0x4b2)]),_0x392c2d(0x10))['pipe'](_0x5e91b7(_0x5dd757=>!_0x5dd757[_0x2a105e(0x47a)]()[_0x2a105e(0x3f9)]('__')))[_0x2a105e(0x4be)](async _0x353adf=>{const _0xc4ccc1=_0x2a105e,_0x4208c7=_0x353adf[_0xc4ccc1(0x47a)](),_0x125646=await this[_0xc4ccc1(0x2f8)](_0x4208c7,H['UNIVER_DOC']);this[_0xc4ccc1(0x412)][_0xc4ccc1(0x2bc)](_0x4208c7,_0x125646);}),_0x2b9a75(this['_univerInstanceService'][_0x2a105e(0x319)](_0x41ddf6['UNIVER_SHEET']),this['_univerInstanceService'][_0x2a105e(0x319)](_0x41ddf6['UNIVER_DOC']))['pipe'](_0x254c9c(this[_0x2a105e(0x4b2)]))[_0x2a105e(0x4be)](_0x26614b=>{const _0x59b534=_0x2a105e,_0x556c0c=_0x26614b[_0x59b534(0x47a)](),_0x4bce6c=this[_0x59b534(0x412)][_0x59b534(0x2d5)](_0x556c0c);_0x4bce6c&&(_0x4bce6c['dispose'](),this[_0x59b534(0x412)][_0x59b534(0x36f)](_0x556c0c));});}async[_0x3e92f2(0x2f8)](_0x4f410b,_0x5577a8){const _0x192eaa=_0x3e92f2,_0x115e89=await this[_0x192eaa(0x1f8)][_0x192eaa(0x3cc)](_0x4f410b),_0x1bc04a=this[_0x192eaa(0x443)][_0x192eaa(0x1df)](this[_0x192eaa(0x286)](_0x5577a8),_0x4f410b,_0x5577a8,_0x115e89);return await _0x1bc04a['init'](),this[_0x192eaa(0x1a6)][_0x192eaa(0x3ea)](_0x1bc04a),_0x1bc04a;}[_0x3e92f2(0x286)](_0x5af4f6){const _0x3177b1=_0x3e92f2;switch(_0x5af4f6){case H[_0x3177b1(0x2e1)]:return vt;case H[_0x3177b1(0x241)]:return pt;default:throw new Error(_0x3177b1(0x36d)+_0x5af4f6);}}};De=tt([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],De),S(0x0,_0xbbf94a(_0xa8f435)),S(0x1,_0xbbf94a(ge)),S(0x2,_0x5f1ae0)],De);let qe=class extends _0x4c153b{constructor(_0x5f5df2,_0x31d1bc,_0x542d42,_0xbf5d58,_0x17c99c,_0x55613a,_0x320712,_0x3ce628,_0x25e79b,_0x22b273,_0x19b654,_0x322d2b,_0x7778e7){const _0x19723b=_0x3e92f2;super(),l(this,'_state$',new _0x4d79d8(null)),l(this,'state$',this[_0x19723b(0x196)][_0x19723b(0x423)]()),l(this,'_state'),l(this,_0x19723b(0x34e),!0x1),l(this,_0x19723b(0x4a1),this[_0x19723b(0x321)]['pipe'](_0x4ed52e(_0x971e6c=>_0x971e6c?_0x971e6c['status']:P[_0x19723b(0x461)]),_0x5d4314(0x1))),l(this,_0x19723b(0x2cf),!0x1),l(this,_0x19723b(0x3cf),[]),(this[_0x19723b(0x3ca)]=_0x5f5df2,this['_type']=_0x31d1bc,this[_0x19723b(0x1ab)]=_0x542d42,this[_0x19723b(0x443)]=_0xbf5d58,this[_0x19723b(0x2d9)]=_0x17c99c,this[_0x19723b(0x331)]=_0x55613a,this[_0x19723b(0x4b3)]=_0x320712,this[_0x19723b(0x49e)]=_0x3ce628,this[_0x19723b(0x27b)]=_0x25e79b,this[_0x19723b(0x1f2)]=_0x22b273,this[_0x19723b(0x458)]=_0x19b654,this[_0x19723b(0x3b3)]=_0x322d2b,this[_0x19723b(0x32a)]=_0x7778e7);}get['state'](){const _0x3e39af=_0x3e92f2;return this[_0x3e39af(0x3a6)];}async[_0x3e92f2(0x3bd)](){const _0x2d36c1=_0x3e92f2;if(this[_0x2d36c1(0x450)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x2d36c1(0x35e)]();}[_0x3e92f2(0x440)](){const _0x2e7d9a=_0x3e92f2;return this[_0x2e7d9a(0x34e)]=!0x0,_0x38ac23(()=>{const _0x4a0201=_0x2e7d9a;this[_0x4a0201(0x34e)]=!0x1,this[_0x4a0201(0x384)]();});}[_0x3e92f2(0x499)](_0x12dadd){const _0x3d3fd8=_0x3e92f2;this[_0x3d3fd8(0x3a6)]=_0x12dadd,this[_0x3d3fd8(0x196)][_0x3d3fd8(0x3ea)](_0x12dadd);}async[_0x3e92f2(0x35e)](){const _0x94f476=_0x3e92f2;var _0x45c5ba;return this[_0x94f476(0x499)](await this[_0x94f476(0x355)]()),this[_0x94f476(0x32a)]&&((_0x45c5ba=this[_0x94f476(0x32a)])==null||_0x45c5ba[_0x94f476(0x345)](this[_0x94f476(0x3ca)]),this[_0x94f476(0x280)](_0x38ac23(this[_0x94f476(0x32a)]['getUnitStatus$'](this[_0x94f476(0x3ca)])[_0x94f476(0x4be)](_0x3122f9=>{const _0x1170a4=_0x94f476;this[_0x1170a4(0x27b)][_0x1170a4(0x2f1)](_0x1170a4(0x20e),_0x1170a4(0x493),_0x3122f9),_0x3122f9===Ps['OTHER_CLIENTS_EDITING']?(this[_0x1170a4(0x458)][_0x1170a4(0x3a7)]({'content':this[_0x1170a4(0x4b3)]['t'](_0x1170a4(0x44a)),'type':_0x4f4f06[_0x1170a4(0x1b1)]}),this['_permissionService'][_0x1170a4(0x4a9)](new _0xd881f1(this[_0x1170a4(0x3ca)])['id'],!0x1)):this[_0x1170a4(0x3b3)]['updatePermissionPoint'](new _0xd881f1(this[_0x1170a4(0x3ca)])['id'],!0x0);})))),this[_0x94f476(0x280)](_0x38ac23(this[_0x94f476(0x1ab)][_0x94f476(0x397)][_0x94f476(0x4be)](_0x5d3756=>{const _0x1e3eff=_0x94f476;_0x5d3756===de[_0x1e3eff(0x405)]?this['_toggleOnline']():_0x5d3756===de[_0x1e3eff(0x461)]&&this[_0x1e3eff(0x276)]();}))),this['disposeWithMe'](_0x38ac23(this['_session'][_0x94f476(0x2c7)][_0x94f476(0x4be)](_0x117a48=>{const _0x54750c=_0x94f476;try{switch(_0x117a48[_0x54750c(0x1af)]){case _0x34e231['NEW_CHANGESETS']:{this[_0x54750c(0x293)](_0x3d7418(_0x117a48[_0x54750c(0x208)]));break;}case _0x34e231[_0x54750c(0x45b)]:{this[_0x54750c(0x316)](_0x117a48[_0x54750c(0x208)]);break;}case _0x34e231['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x34e231[_0x54750c(0x374)]:{this[_0x54750c(0x238)](_0x117a48[_0x54750c(0x208)]['changesets']['map'](_0x1d9dea=>_0x3d7418(_0x1d9dea)));break;}case _0x34e231[_0x54750c(0x1c1)]:this[_0x54750c(0x262)]({'isPermissionRej':!0x0});}}catch(_0x3fb3ba){throw console[_0x54750c(0x23c)](_0x54750c(0x3ac),_0x3fb3ba),_0x3fb3ba;}}))),this[_0x94f476(0x3a6)];}[_0x3e92f2(0x389)](){const _0x274db2=_0x3e92f2;this[_0x274db2(0x2cf)]=!0x1;}[_0x3e92f2(0x38a)](){const _0x351885=_0x3e92f2;if(this[_0x351885(0x2cf)])throw new Error(_0x351885(0x35c));this['_transitionLocked']=!0x0;}[_0x3e92f2(0x45a)](_0x1fe8e5){const _0x36b01d=_0x3e92f2;this[_0x36b01d(0x38a)](),this['_updateState'](this['_state'][_0x36b01d(0x336)](_0x1fe8e5)),this['_unlockTransition']();}[_0x3e92f2(0x293)](_0xf05d7b){const _0x5e16e6=_0x3e92f2;if(!(_0xf05d7b['revision']<=this[_0x5e16e6(0x49e)][_0x5e16e6(0x232)](this[_0x5e16e6(0x3ca)]))){if(this[_0x5e16e6(0x34e)]){this[_0x5e16e6(0x3cf)]['push'](_0xf05d7b);return;}this['_applyRemoteChangeset'](_0xf05d7b);}}[_0x3e92f2(0x384)](){const _0x44064b=_0x3e92f2;this['_remoteChangesetQueue'][_0x44064b(0x1b8)](_0x2744f7=>this[_0x44064b(0x4bf)](_0x2744f7)),this[_0x44064b(0x3cf)]=[];}[_0x3e92f2(0x4bf)](_0x1b4d4b){const _0x54e5f7=_0x3e92f2,_0x2cfc71=this[_0x54e5f7(0x331)][_0x54e5f7(0x310)]['fetchThroughInterceptors'](this[_0x54e5f7(0x331)][_0x54e5f7(0x310)][_0x54e5f7(0x424)]()[_0x54e5f7(0x4c5)])(_0x1b4d4b[_0x54e5f7(0x1d5)],null)||_0x1b4d4b[_0x54e5f7(0x1d5)],_0x3ad5c8={..._0x1b4d4b,'mutations':_0x2cfc71};this['_lockTransition'](),this[_0x54e5f7(0x499)](this['_state'][_0x54e5f7(0x3b9)](_0x3ad5c8)),this[_0x54e5f7(0x389)]();}[_0x3e92f2(0x316)](_0x77b148){const _0x215d0e=_0x3e92f2;this[_0x215d0e(0x38a)](),this['_updateState'](this[_0x215d0e(0x3a6)][_0x215d0e(0x2b4)](_0x77b148)),this['_unlockTransition']();}['_onRemoteRejected'](_0x324653){const _0x2a8407=_0x3e92f2;this[_0x2a8407(0x38a)](),this[_0x2a8407(0x499)](this[_0x2a8407(0x3a6)][_0x2a8407(0x257)](_0x324653)),this[_0x2a8407(0x389)]();}[_0x3e92f2(0x238)](_0x38a90e){const _0x40f9ef=_0x3e92f2;if(!(this[_0x40f9ef(0x3a6)]instanceof G))throw new TypeError(_0x40f9ef(0x1c2));const _0x36b426=_0x38a90e['map'](_0x236a3c=>{const _0x495d79=_0x40f9ef,_0x8c037=this['_compressMutationService'][_0x495d79(0x310)]['fetchThroughInterceptors'](this[_0x495d79(0x331)][_0x495d79(0x310)][_0x495d79(0x424)]()[_0x495d79(0x4c5)])(_0x236a3c[_0x495d79(0x1d5)],null)||_0x236a3c[_0x495d79(0x1d5)];return{..._0x236a3c,'mutations':_0x8c037};});this[_0x40f9ef(0x38a)](),this[_0x40f9ef(0x499)](this['_state']['onMissedChangesetFetched'](_0x36b426)),this[_0x40f9ef(0x389)]();}['_toggleOffline'](){const _0x75b8d4=_0x3e92f2;this[_0x75b8d4(0x38a)](),this[_0x75b8d4(0x499)](this['_state'][_0x75b8d4(0x373)]()),this[_0x75b8d4(0x389)]();}[_0x3e92f2(0x1c7)](){const _0x17d391=_0x3e92f2;this[_0x17d391(0x38a)](),this['_updateState'](this[_0x17d391(0x3a6)][_0x17d391(0x239)]()),this[_0x17d391(0x389)]();}async[_0x3e92f2(0x355)](){return new Promise(_0x29d0c8=>{const _0x5c4e99=_0x4256;this['_session'][_0x5c4e99(0x397)]['pipe'](_0x401b81(0x1))[_0x5c4e99(0x4be)](async _0x5cdd13=>{const _0x4cae45=_0x5c4e99;_0x29d0c8(await this[_0x4cae45(0x24c)](_0x5cdd13===de[_0x4cae45(0x405)]));});});}[_0x3e92f2(0x3e2)](){const _0x445470=this['unitID'];return{'onStateChange':(_0x1ce1b4,_0x81c162)=>{const _0x40468a=_0x4256;if(_0x1ce1b4!==this[_0x40468a(0x3a6)])throw new Error(_0x40468a(0x47e)+_0x1ce1b4[_0x40468a(0x306)]+_0x40468a(0x2b0)+_0x81c162['status']+'\x0aCurrent:\x20'+this['_state'][_0x40468a(0x306)]);this[_0x40468a(0x499)](_0x81c162);},'onSendChangeset':_0x466bbc=>{const _0x76e027=_0x4256,_0x194420={'eventID':_0x34e231[_0x76e027(0x44d)],'data':{'unitID':_0x466bbc[_0x76e027(0x3ca)],'unitType':this[_0x76e027(0x1a9)],'changeset':_0x466bbc,'memberID':this[_0x76e027(0x1ab)]['getMemberID']()}};this[_0x76e027(0x1ab)][_0x76e027(0x229)](_0x194420,this[_0x76e027(0x3ca)]);},'onMissingChangesets':({from:_0x4cc422,to:_0x5b20b3})=>{const _0x303e9f=_0x4256;this['_logService'][_0x303e9f(0x2f1)](_0x303e9f(0x20e),_0x303e9f(0x4b0)+_0x4cc422+_0x303e9f(0x28d)+_0x5b20b3);const _0x26e19b={'eventID':_0x34e231[_0x303e9f(0x2c4)],'data':{'unitID':_0x445470,'unitType':this[_0x303e9f(0x1a9)],'from':_0x4cc422,'to':_0x5b20b3}};this[_0x303e9f(0x1ab)][_0x303e9f(0x229)](_0x26e19b,this[_0x303e9f(0x3ca)]);}};}async[_0x3e92f2(0x24c)](_0x55129b){const _0x101aa0=_0x3e92f2;var _0x18d9c0,_0x20694c;const _0x327f17=await this[_0x101aa0(0x2d9)][_0x101aa0(0x4bc)](this[_0x101aa0(0x3ca)]),_0x288a2b=(_0x18d9c0=_0x327f17==null?void 0x0:_0x327f17['mutations'])!=null?_0x18d9c0:[],_0x3b7eb9=(_0x20694c=_0x327f17==null?void 0x0:_0x327f17[_0x101aa0(0x2b2)])!=null?_0x20694c:null,_0x378caa=this[_0x101aa0(0x3ca)];try{this[_0x101aa0(0x42d)](_0x3b7eb9,_0x288a2b);}catch(_0x3bee80){this[_0x101aa0(0x27b)][_0x101aa0(0x23c)](_0x3bee80);}const _0x144a6f=this[_0x101aa0(0x3e2)]();if(_0x55129b){const _0xa64035=Ms(this[_0x101aa0(0x443)],_0x378caa,this[_0x101aa0(0x1a9)],_0x3b7eb9,_0x288a2b,_0x144a6f);return _0xa64035 instanceof k?_0xa64035[_0x101aa0(0x1b5)]():(_0xa64035 instanceof W||_0xa64035 instanceof J)&&_0xa64035[_0x101aa0(0x1c0)](),_0xa64035;}return this[_0x101aa0(0x443)][_0x101aa0(0x1df)](z,_0x378caa,this[_0x101aa0(0x1a9)],_0x3b7eb9,_0x288a2b,_0x144a6f);}[_0x3e92f2(0x42d)](_0x2f5f93,_0x57752){const _0x370a88=_0x3e92f2;var _0x13966c,_0x3a54b3;const _0x265743=this[_0x370a88(0x331)]['interceptor'][_0x370a88(0x3aa)](this[_0x370a88(0x331)][_0x370a88(0x310)][_0x370a88(0x424)]()['COMPRESS_MUTATION_APPLY']);(_0x13966c=_0x265743((_0x2f5f93==null?void 0x0:_0x2f5f93[_0x370a88(0x1d5)])||[],null))==null||_0x13966c['forEach'](_0x5cf18e=>this['_commandService'][_0x370a88(0x230)](_0x5cf18e['id'],_0x5cf18e[_0x370a88(0x394)])),(_0x3a54b3=_0x265743(_0x57752||[],null))==null||_0x3a54b3['forEach'](_0x1d7c75=>this[_0x370a88(0x1f2)]['executeCommand'](_0x1d7c75['id'],_0x1d7c75['params']));}};qe=tt([S(0x3,_0xbbf94a(_0xa8f435)),S(0x4,_0xbbf94a(D)),S(0x5,_0xbbf94a(_0x59ec89)),S(0x6,_0xbbf94a(_0x6789ab)),S(0x7,_0xbbf94a(_0xee930)),S(0x8,_0x46d807),S(0x9,_0x109aa8),S(0xa,_0x5cfd22),S(0xb,_0x4acf08),S(0xc,_0x3668b1(et))],qe);let vt=class extends qe{constructor(_0xf5fbfc,_0x467db8,_0x8aee47,_0x11cd01,_0x74fe2b,_0x3e574c,_0x133a4a,_0x153d98,_0x5cea1e,_0x50a9c2,_0x5d8ccc,_0x2f6951,_0x3a7786,_0x2f3ab1,_0x39b0dc,_0x264952,_0x4a8439){const _0x59a2f0=_0x3e92f2;super(_0xf5fbfc,_0x467db8,_0x8aee47,_0x11cd01,_0x74fe2b,_0x3e574c,_0x133a4a,_0x153d98,_0x3a7786,_0x2f3ab1,_0x39b0dc,_0x264952,_0x4a8439),this[_0x59a2f0(0x3ca)]=_0xf5fbfc,this[_0x59a2f0(0x342)]=_0x467db8,this[_0x59a2f0(0x29f)]=_0x8aee47,this[_0x59a2f0(0x432)]=_0x5cea1e,this[_0x59a2f0(0x368)]=_0x50a9c2,this[_0x59a2f0(0x2a7)]=_0x5d8ccc,this['_docSyncEditingCollabCursorService']=_0x2f6951;}['_createHandler'](){const _0x41d4a3=_0x3e92f2,_0x8eba39=super[_0x41d4a3(0x3e2)]();return _0x8eba39[_0x41d4a3(0x41f)]=_0x38d549=>this[_0x41d4a3(0x368)][_0x41d4a3(0x1f0)](_0x38d549),_0x8eba39[_0x41d4a3(0x313)]=_0x309f87=>this[_0x41d4a3(0x2a7)][_0x41d4a3(0x2a3)](_0x309f87),_0x8eba39[_0x41d4a3(0x369)]=_0x28c78e=>this['_docSyncEditingCollabCursorService'][_0x41d4a3(0x448)](_0x28c78e),_0x8eba39[_0x41d4a3(0x3dc)]=_0x2f9fda=>this[_0x41d4a3(0x368)][_0x41d4a3(0x322)](_0x2f9fda),_0x8eba39;}async[_0x3e92f2(0x35e)](){const _0x2d400a=_0x3e92f2,_0x186cb2=await super[_0x2d400a(0x35e)]();return this['_docStateChangeManagerService'][_0x2d400a(0x471)][_0x2d400a(0x407)](_0x254c9c(this[_0x2d400a(0x4b2)]))[_0x2d400a(0x4be)](_0x1993ab=>{const _0x45f3b7=_0x2d400a;if(_0x1993ab==null)return;const {unitId:_0x409209,redoState:_0x29242f,commandId:_0x4626d9}=_0x1993ab;if(_0x409209!==this['unitID'])return;const _0xeab98={'id':_0x4626d9,'type':_0x1a41da[_0x45f3b7(0x25a)],'params':{'unitId':_0x409209,'actions':_0x29242f['actions'],'textRanges':null}};this[_0x45f3b7(0x45a)](_0xeab98);}),_0x186cb2;}};vt=tt([S(0x3,_0xbbf94a(_0xa8f435)),S(0x4,_0xbbf94a(D)),S(0x5,_0xbbf94a(_0x59ec89)),S(0x6,_0xbbf94a(_0x6789ab)),S(0x7,_0xbbf94a(_0xee930)),S(0x8,_0xbbf94a(_0x250a10)),S(0x9,_0xbbf94a(Xe)),S(0xa,_0xbbf94a(Je)),S(0xb,_0xbbf94a(yt)),S(0xc,_0x46d807),S(0xd,_0x109aa8),S(0xe,_0x5cfd22),S(0xf,_0x4acf08),S(0x10,_0x3668b1(et))],vt);let pt=class extends qe{constructor(_0x1743c3,_0x4b3211,_0x3bbbb7,_0x19bb54,_0x11c30a,_0x17bcd0,_0x4586e9,_0x3d339c,_0x442a1a,_0x5cee88,_0x242d2f,_0x5d5699,_0x1d61ca,_0x50cdc3){const _0x3d8caf=_0x3e92f2;super(_0x1743c3,_0x4b3211,_0x3bbbb7,_0x19bb54,_0x11c30a,_0x17bcd0,_0x4586e9,_0x3d339c,_0x5cee88,_0x242d2f,_0x5d5699,_0x1d61ca,_0x50cdc3),this['unitID']=_0x1743c3,this['type']=_0x4b3211,this[_0x3d8caf(0x29f)]=_0x3bbbb7,this[_0x3d8caf(0x30c)]=_0x442a1a;}[_0x3e92f2(0x3e2)](){const _0x52c538=_0x3e92f2,_0x5dfafa=super[_0x52c538(0x3e2)]();return _0x5dfafa[_0x52c538(0x313)]=_0x114e97=>this[_0x52c538(0x30c)][_0x52c538(0x2a3)](_0x114e97),_0x5dfafa;}async[_0x3e92f2(0x35e)](){const _0x47a40b=_0x3e92f2,_0xc53850=await super[_0x47a40b(0x35e)]();return this[_0x47a40b(0x280)](this[_0x47a40b(0x1f2)][_0x47a40b(0x49c)]((_0x588aba,_0x20b90a)=>{const _0x30ab64=_0x47a40b;if(_0x588aba[_0x30ab64(0x342)]!==_0x1a41da['MUTATION']||_0x20b90a!=null&&_0x20b90a['fromCollab']||_0x20b90a!=null&&_0x20b90a[_0x30ab64(0x2da)])return;const _0x3fb58e=_0x588aba[_0x30ab64(0x394)];if((_0x3fb58e==null?void 0x0:_0x3fb58e[_0x30ab64(0x3ae)])!==this[_0x30ab64(0x3ca)])return;const _0x44526e=_0x588aba,_0x5a95c2=this[_0x30ab64(0x331)][_0x30ab64(0x310)][_0x30ab64(0x3aa)](this[_0x30ab64(0x331)][_0x30ab64(0x310)][_0x30ab64(0x424)]()[_0x30ab64(0x295)])([_0x44526e],null)||[_0x44526e];this[_0x30ab64(0x45a)](_0x5a95c2[0x0]);})),_0xc53850;}};pt=tt([S(0x3,_0xbbf94a(_0xa8f435)),S(0x4,_0xbbf94a(D)),S(0x5,_0xbbf94a(_0x59ec89)),S(0x6,_0xbbf94a(_0x6789ab)),S(0x7,_0xbbf94a(_0xee930)),S(0x8,_0xbbf94a(ze)),S(0x9,_0x46d807),S(0xa,_0x109aa8),S(0xb,_0x5cfd22),S(0xc,_0x4acf08),S(0xd,_0x3668b1(et))],pt);const es=['purple300',_0x3e92f2(0x414),_0x3e92f2(0x409),'red300',_0x3e92f2(0x390),'gold400'];class Lt extends _0x1f0611{constructor(){const _0x308eab=_0x3e92f2;super(...arguments),l(this,_0x308eab(0x2ba),new Map()),l(this,_0x308eab(0x449),0x0);}[_0x3e92f2(0x21d)](_0x21a3a2){const _0x4eb788=_0x3e92f2;if(this[_0x4eb788(0x2ba)]['has'](_0x21a3a2))return this[_0x4eb788(0x2ba)][_0x4eb788(0x2d5)](_0x21a3a2);const _0x2968a6=es[this[_0x4eb788(0x449)]];return this['_colorIndex']=(this[_0x4eb788(0x449)]+0x1)%es[_0x4eb788(0x1a4)],this['_assignedColors'][_0x4eb788(0x2bc)](_0x21a3a2,_0x2968a6),_0x2968a6;}}var Jn=Object[_0x3e92f2(0x340)],zn=Object['getOwnPropertyDescriptor'],qn=(_0x3c354f,_0x3b50b7,_0x222b30,_0x5d0ec5)=>{const _0x3329be=_0x3e92f2;for(var _0x5998ed=_0x5d0ec5>0x1?void 0x0:_0x5d0ec5?zn(_0x3b50b7,_0x222b30):_0x3b50b7,_0x13d9f5=_0x3c354f[_0x3329be(0x1a4)]-0x1,_0x2d54d7;_0x13d9f5>=0x0;_0x13d9f5--)(_0x2d54d7=_0x3c354f[_0x13d9f5])&&(_0x5998ed=(_0x5d0ec5?_0x2d54d7(_0x3b50b7,_0x222b30,_0x5998ed):_0x2d54d7(_0x5998ed))||_0x5998ed);return _0x5d0ec5&&_0x5998ed&&Jn(_0x3b50b7,_0x222b30,_0x5998ed),_0x5998ed;},he=(_0x107a90,_0x2c4493)=>(_0x414b11,_0x10c018)=>_0x2c4493(_0x414b11,_0x10c018,_0x107a90);const Zn=0x12c,Qn=0x64,er=()=>{let _0x56c3cc=[],_0x3d2b0c=!0x1;return _0x111ff1=>{_0x56c3cc['push'](_0x111ff1),_0x3d2b0c||(_0x3d2b0c=!0x0,setTimeout(()=>{const _0x91a87e=_0x4256;_0x56c3cc[_0x91a87e(0x1b8)](_0x2391e6=>_0x2391e6()),_0x56c3cc=[],_0x3d2b0c=!0x1;}));};};let It=class extends _0x4c153b{constructor(_0x184a34,_0x39ee52,_0x134563,_0x5402a2,_0x289ae2,_0x4376d4,_0x4619d9,_0x405cf3){const _0x27bc9f=_0x3e92f2;super(),l(this,_0x27bc9f(0x28a),!0x1),l(this,_0x27bc9f(0x35e),!0x1),l(this,_0x27bc9f(0x200),new _0x4d79d8(new Map())),l(this,_0x27bc9f(0x2ef),this['_cursorInfo$']['asObservable']()),l(this,_0x27bc9f(0x2b9),new _0x4d79d8([])),l(this,_0x27bc9f(0x436),this[_0x27bc9f(0x2b9)]['pipe'](_0x445532(Zn))),l(this,'_updateLocalCursor',_0x561342((_0x46e449,_0x277151)=>{const _0xfe17cb=_0x27bc9f,_0x278d83={'eventID':_0x34e231[_0xfe17cb(0x226)],'data':{'unitID':this[_0xfe17cb(0x3ca)],'memberID':this[_0xfe17cb(0x1ab)][_0xfe17cb(0x421)](),'selection':_0x4aaaf4(_0x46e449,_0x277151[_0xfe17cb(0x2b8)])}};this[_0xfe17cb(0x1ab)][_0xfe17cb(0x229)](_0x278d83,this['unitID']);},Qn)),(this[_0x27bc9f(0x3ca)]=_0x184a34,this['_session']=_0x39ee52,this['_injector']=_0x134563,this[_0x27bc9f(0x2ad)]=_0x5402a2,this[_0x27bc9f(0x29e)]=_0x289ae2,this['_univerInstanceService']=_0x4376d4,this[_0x27bc9f(0x1f2)]=_0x4619d9,this['_refRangeService']=_0x405cf3);}get[_0x3e92f2(0x253)](){const _0x1ec45f=_0x3e92f2;return this[_0x1ec45f(0x200)]['getValue']();}get[_0x3e92f2(0x1d6)](){const _0x187a84=_0x3e92f2;return this[_0x187a84(0x2b9)]['getValue']();}[_0x3e92f2(0x25d)](){const _0x4cc384=_0x3e92f2;super[_0x4cc384(0x25d)](),this['_cursorInfo$'][_0x4cc384(0x3ea)](new Map()),this[_0x4cc384(0x200)][_0x4cc384(0x2e4)](),this[_0x4cc384(0x2b9)][_0x4cc384(0x3ea)]([]),this['_roomMembers$']['complete']();}[_0x3e92f2(0x3bd)](){const _0x50f3de=_0x3e92f2;this[_0x50f3de(0x35e)]||(this[_0x50f3de(0x35e)]=!0x0,this[_0x50f3de(0x1ab)][_0x50f3de(0x397)]['pipe'](_0x254c9c(this['dispose$']))[_0x50f3de(0x4be)](_0x8516fe=>{const _0x2f5608=_0x50f3de;_0x8516fe===de[_0x2f5608(0x405)]?this[_0x2f5608(0x1c7)]():this[_0x2f5608(0x276)]();}),this[_0x50f3de(0x1ab)]['event$'][_0x50f3de(0x407)](_0x254c9c(this[_0x50f3de(0x4b2)]))[_0x50f3de(0x4be)](_0x3164c8=>{const _0x1a19b5=_0x50f3de,_0x2a40c4=_0x3164c8['eventID'];_0x2a40c4===_0x34e231['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3164c8),_0x2a40c4===_0x34e231[_0x1a19b5(0x462)]&&this[_0x1a19b5(0x261)](_0x3164c8);}),this['_onRefRangeChange'](),this[_0x50f3de(0x280)](this[_0x50f3de(0x1f2)][_0x50f3de(0x49c)](_0x473819=>{const _0x352b49=_0x50f3de;if(this[_0x352b49(0x28a)]&&_0x473819['id']===_0x594d48['id']&&_0x473819[_0x352b49(0x394)][_0x352b49(0x3ae)]===this[_0x352b49(0x3ca)]){const _0x375577=_0x473819[_0x352b49(0x394)];this[_0x352b49(0x332)](_0x375577[_0x352b49(0x31a)],_0x375577[_0x352b49(0x4c0)][0x0]);}})));}[_0x3e92f2(0x33a)](_0x501e30){const _0x4b3409=_0x3e92f2;var _0x1677f8,_0x19bdc9;const {memberID:_0x1bdeb8,selection:_0x4dd1fb}=_0x501e30[_0x4b3409(0x208)],{sheetName:_0x45f0a2,range:_0x18f479}=_0x2565bd(_0x4dd1fb),_0x1d306a={'name':(_0x19bdc9=(_0x1677f8=this['_memberService']['getMember'](this['unitID'],_0x1bdeb8))==null?void 0x0:_0x1677f8[_0x4b3409(0x2c2)])!=null?_0x19bdc9:_0x4b3409(0x2c0),'range':this[_0x4b3409(0x3de)](_0x45f0a2,_0x18f479),'sheetID':_0x45f0a2,'color':this[_0x4b3409(0x2ad)]['assignAColorForMemberID'](_0x1bdeb8),'selection':_0x4dd1fb},_0x2e4c16=this[_0x4b3409(0x253)];_0x2e4c16[_0x4b3409(0x2bc)](_0x1bdeb8,_0x1d306a),this[_0x4b3409(0x200)]['next'](_0x2e4c16);}[_0x3e92f2(0x261)](_0x34e14b){const _0x1c7d1e=_0x3e92f2,{memberID:_0x2dae0d}=_0x34e14b[_0x1c7d1e(0x208)],_0x46499d=this[_0x1c7d1e(0x253)];_0x46499d[_0x1c7d1e(0x36f)](_0x2dae0d),this[_0x1c7d1e(0x200)][_0x1c7d1e(0x3ea)](_0x46499d);}[_0x3e92f2(0x3de)](_0x15284a,_0x56657a){const _0x5951a4=_0x3e92f2;var _0x2ad4b8,_0x2f65b4;const _0x48d9e5=(_0x2f65b4=(_0x2ad4b8=this[_0x5951a4(0x1ef)]['getUniverSheetInstance'](this[_0x5951a4(0x3ca)]))==null?void 0x0:_0x2ad4b8[_0x5951a4(0x42f)](_0x15284a))==null?void 0x0:_0x2f65b4[_0x5951a4(0x294)]();return(_0x48d9e5==null?void 0x0:_0x48d9e5[_0x5951a4(0x491)](_0x5625b7=>_0x301c8d[_0x5951a4(0x2fe)](_0x5625b7,_0x56657a)))||_0x56657a;}[_0x3e92f2(0x1ae)](){const _0x254500=_0x3e92f2,_0x4e7de4=new _0x10ad9e(),_0x38c862=er(),_0x385b3e=()=>{const _0x2798a5=_0x4256;_0x4e7de4[_0x2798a5(0x25d)]();const _0x365fc7=(_0x14e5d4,_0x125bf0,_0x1fe261,_0x196054)=>{const _0x2a99e0=_0x2798a5;let _0x2cf84f=[];switch(_0x14e5d4['id']){case _0x1d561a[_0x2a99e0(0x37b)]:{_0x2cf84f=_0x374c46(_0x14e5d4,_0x196054);break;}case _0x1d561a['DeleteRangeMoveUpCommandId']:{_0x2cf84f=_0x2558df(_0x14e5d4,_0x196054);break;}case _0x1d561a['InsertColCommandId']:{_0x2cf84f=_0x392388(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x41d)]:{_0x2cf84f=_0x324941(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x351)]:{_0x2cf84f=_0x41ab06(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x49d)]:{_0x2cf84f=_0xf69406(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x33e)]:{_0x2cf84f=_0x342dcd(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x341)]:{_0x2cf84f=_0x46dbc2(_0x14e5d4,_0x196054);break;}case _0x1d561a[_0x2a99e0(0x3e5)]:{_0x2cf84f=_0x58d14e(_0x14e5d4,_0x196054);break;}}const _0xfaacd0=_0x4b852b(_0x2cf84f,_0x196054),_0x4b3bd5=this[_0x2a99e0(0x253)][_0x2a99e0(0x2d5)](_0x125bf0);if(_0x4b3bd5&&_0xfaacd0){const _0x13bc63={..._0x4b3bd5,'range':_0xfaacd0};this[_0x2a99e0(0x253)][_0x2a99e0(0x2bc)](_0x125bf0,_0x13bc63),_0x38c862(()=>{const _0x467dcc=_0x2a99e0,_0xd3ce70=this['_refRangeService']['registerRefRange'](_0xfaacd0,_0x5cfebb=>(_0xd3ce70[_0x467dcc(0x25d)](),_0x365fc7(_0x5cfebb,_0x125bf0,_0x1fe261,_0xfaacd0)));_0x4e7de4[_0x467dcc(0x35d)](_0xd3ce70);});}return{'redos':[],'undos':[]};};this[_0x2798a5(0x253)][_0x2798a5(0x1b8)]((_0x1a50b0,_0x16ba80)=>{const _0x2c267e=_0x2798a5,{range:_0x230cf7,sheetID:_0x9d384}=_0x1a50b0,_0x18c276=this[_0x2c267e(0x20b)][_0x2c267e(0x4cb)](_0x230cf7,_0x2c2d5b=>(_0x18c276[_0x2c267e(0x25d)](),_0x365fc7(_0x2c2d5b,_0x16ba80,_0x9d384,_0x230cf7)));_0x4e7de4[_0x2c267e(0x35d)](_0x18c276);});};this['disposeWithMe'](_0x38ac23(this['_cursorInfo$'][_0x254500(0x4be)](()=>{_0x385b3e();})));}[_0x3e92f2(0x1c7)](){const _0x3f86fd=_0x3e92f2;var _0x2972b9,_0x5ee5a7;if(this[_0x3f86fd(0x28a)]=!0x0,((_0x2972b9=this[_0x3f86fd(0x1ef)][_0x3f86fd(0x380)]())==null?void 0x0:_0x2972b9[_0x3f86fd(0x47a)]())!==this[_0x3f86fd(0x3ca)])return;const _0x20e8c4=(_0x5ee5a7=this['_injector'][_0x3f86fd(0x2d5)](_0xebd730)[_0x3f86fd(0x344)]())==null?void 0x0:_0x5ee5a7[0x0],_0x3cdd86=this[_0x3f86fd(0x1ef)]['getCurrentUnitForType'](_0x41ddf6[_0x3f86fd(0x241)])['getActiveSheet']();_0x20e8c4&&_0x3cdd86&&this[_0x3f86fd(0x332)](_0x3cdd86['getSheetId'](),_0x20e8c4);}[_0x3e92f2(0x276)](){this['_online']=!0x1;}};It=qn([he(0x2,_0xbbf94a(_0xa8f435)),he(0x3,_0xbbf94a(Lt)),he(0x4,_0xbbf94a(ne)),he(0x5,_0x5f1ae0),he(0x6,_0x109aa8),he(0x7,_0xbbf94a(_0x4071b4))],It);var tr=Object[_0x3e92f2(0x340)],sr=Object[_0x3e92f2(0x2d2)],ir=(_0x4a4c39,_0x36819f,_0x1f0ca6,_0x51af24)=>{const _0x4dac88=_0x3e92f2;for(var _0x24181a=_0x51af24>0x1?void 0x0:_0x51af24?sr(_0x36819f,_0x1f0ca6):_0x36819f,_0x227b7e=_0x4a4c39[_0x4dac88(0x1a4)]-0x1,_0xc9d765;_0x227b7e>=0x0;_0x227b7e--)(_0xc9d765=_0x4a4c39[_0x227b7e])&&(_0x24181a=(_0x51af24?_0xc9d765(_0x36819f,_0x1f0ca6,_0x24181a):_0xc9d765(_0x24181a))||_0x24181a);return _0x51af24&&_0x24181a&&tr(_0x36819f,_0x1f0ca6,_0x24181a),_0x24181a;},te=(_0x27daf0,_0x4baa95)=>(_0x265592,_0x4b32f3)=>_0x4baa95(_0x265592,_0x4b32f3,_0x27daf0);const nr=0x12c,rr=0x64;let Et=class extends _0x4c153b{constructor(_0x2395d6,_0x470a10,_0x3d32b5,_0x441137,_0xbdb8eb,_0xa67dfa,_0x3805eb,_0x3f478b,_0xfc2ca8){const _0x4424e1=_0x3e92f2;super(),l(this,_0x4424e1(0x28a),!0x1),l(this,'_init',!0x1),l(this,_0x4424e1(0x200),new _0x4d79d8(new Map())),l(this,_0x4424e1(0x2ef),this[_0x4424e1(0x200)][_0x4424e1(0x423)]()),l(this,'_roomMembers$',new _0x4d79d8([])),l(this,_0x4424e1(0x436),this[_0x4424e1(0x2b9)][_0x4424e1(0x407)](_0x445532(nr))),l(this,'_updateLocalCursor',_0x561342(_0x2c4dad=>{const _0x3d1399=_0x4424e1,_0x120b8e={'eventID':_0x34e231[_0x3d1399(0x226)],'data':{'unitID':this[_0x3d1399(0x3ca)],'memberID':this[_0x3d1399(0x1ab)][_0x3d1399(0x421)](),'selection':Ns(_0x2c4dad)}};this[_0x3d1399(0x1ab)][_0x3d1399(0x229)](_0x120b8e,this[_0x3d1399(0x3ca)]);},rr)),(this[_0x4424e1(0x3ca)]=_0x2395d6,this[_0x4424e1(0x1ab)]=_0x470a10,this[_0x4424e1(0x443)]=_0x3d32b5,this[_0x4424e1(0x2ad)]=_0x441137,this[_0x4424e1(0x29e)]=_0xbdb8eb,this[_0x4424e1(0x308)]=_0xa67dfa,this[_0x4424e1(0x22e)]=_0x3805eb,this[_0x4424e1(0x1ef)]=_0x3f478b,this[_0x4424e1(0x1f2)]=_0xfc2ca8);}get[_0x3e92f2(0x253)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x5cf1b0=_0x3e92f2;return this[_0x5cf1b0(0x2b9)][_0x5cf1b0(0x43c)]();}[_0x3e92f2(0x25d)](){const _0x3aea2d=_0x3e92f2;super[_0x3aea2d(0x25d)](),this[_0x3aea2d(0x200)][_0x3aea2d(0x3ea)](new Map()),this['_cursorInfo$'][_0x3aea2d(0x2e4)](),this[_0x3aea2d(0x2b9)]['next']([]),this[_0x3aea2d(0x2b9)][_0x3aea2d(0x2e4)]();}[_0x3e92f2(0x3bd)](){const _0x5e11f4=_0x3e92f2;this[_0x5e11f4(0x35e)]||(this[_0x5e11f4(0x35e)]=!0x0,this['_session'][_0x5e11f4(0x397)][_0x5e11f4(0x407)](_0x254c9c(this['dispose$']))[_0x5e11f4(0x4be)](_0x25ca80=>{const _0x2b9e36=_0x5e11f4;_0x25ca80===de['ONLINE']?this[_0x2b9e36(0x1c7)]():this[_0x2b9e36(0x276)]();}),this[_0x5e11f4(0x1ab)][_0x5e11f4(0x2c7)][_0x5e11f4(0x407)](_0x254c9c(this[_0x5e11f4(0x4b2)]))['subscribe'](_0x35b056=>{const _0x516894=_0x5e11f4,_0x595bed=_0x35b056[_0x516894(0x1af)];_0x595bed===_0x34e231['UPDATE_CURSOR']&&this[_0x516894(0x33a)](_0x35b056),_0x595bed===_0x34e231['USERS_LEAVE']&&this[_0x516894(0x261)](_0x35b056);}),this[_0x5e11f4(0x280)](this['_commandService'][_0x5e11f4(0x49c)](_0x121434=>{const _0x275184=_0x5e11f4,_0x57fa99=_0x121434[_0x275184(0x394)];_0x57fa99!=null&&this['_online']&&_0x121434['id']===_0x13752b['id']&&_0x57fa99[_0x275184(0x3ae)]===this[_0x275184(0x3ca)]&&_0x57fa99['isEditing']===!0x1&&this[_0x275184(0x332)](_0x57fa99['ranges']);})),this[_0x5e11f4(0x308)][_0x5e11f4(0x362)][_0x5e11f4(0x407)](_0x254c9c(this[_0x5e11f4(0x4b2)]))[_0x5e11f4(0x4be)](_0x3e02b7=>{const _0x5ba221=_0x5e11f4;if((_0x3e02b7==null?void 0x0:_0x3e02b7[_0x5ba221(0x3ca)])!==this[_0x5ba221(0x3ca)])return;const _0x176f4a={'eventID':_0x34e231['UPDATE_CURSOR'],'data':_0x3e02b7};this['_onCursorUpdate'](_0x176f4a);}),this['disposeWithMe'](this[_0x5e11f4(0x1f2)][_0x5e11f4(0x49c)](_0x41cc82=>{const _0x3fb8b0=_0x5e11f4;if(_0x41cc82[_0x3fb8b0(0x394)]==null)return;const _0xa6cf2b=_0x41cc82[_0x3fb8b0(0x394)];if(_0x41cc82['id']!==_0x403372['id']||_0xa6cf2b['unitId']!==this[_0x3fb8b0(0x3ca)])return;const _0x4451ab={'id':'doc.mutation.rich-text-editing','params':_0xa6cf2b},_0x368099=this[_0x3fb8b0(0x253)];for(const [_0x46d710,_0x3f9e20]of _0x368099){const _0x843fd4={'id':_0x3fb8b0(0x215),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3f9e20[_0x3fb8b0(0x4b1)]}},_0x422c72=this[_0x3fb8b0(0x22e)][_0x3fb8b0(0x433)](_0x4451ab,_0x843fd4,!0x1);if(_0x3d6701(_0x422c72))throw _0x422c72[_0x3fb8b0(0x23c)];_0x368099[_0x3fb8b0(0x2bc)](_0x46d710,{..._0x3f9e20,'ranges':_0x422c72[_0x3fb8b0(0x2fb)][_0x3fb8b0(0x394)][_0x3fb8b0(0x371)]});}queueMicrotask(()=>{const _0x2878a8=_0x3fb8b0;this[_0x2878a8(0x200)]['next'](_0x368099);});})));}[_0x3e92f2(0x33a)](_0x4847ca){const _0x30cc12=_0x3e92f2;var _0x32006b,_0x43ed69;const {memberID:_0x13d55e,selection:_0x3e7219}=_0x4847ca['data'],_0x317d1e=jn(_0x3e7219),_0x2d1008=(_0x43ed69=(_0x32006b=this[_0x30cc12(0x29e)][_0x30cc12(0x311)](this[_0x30cc12(0x3ca)],_0x13d55e))==null?void 0x0:_0x32006b[_0x30cc12(0x2c2)])!=null?_0x43ed69:_0x30cc12(0x2c0),_0x5565d1={'color':this['_colorAssignService'][_0x30cc12(0x21d)](_0x13d55e),'name':_0x2d1008,'ranges':_0x317d1e},_0x22c1ce=this[_0x30cc12(0x253)];_0x22c1ce['set'](_0x13d55e,_0x5565d1),this['_cursorInfo$'][_0x30cc12(0x3ea)](_0x22c1ce);}[_0x3e92f2(0x261)](_0x5556b6){const _0x2e296d=_0x3e92f2,{memberID:_0x1171c5}=_0x5556b6[_0x2e296d(0x208)],_0x1ba6ab=this[_0x2e296d(0x253)];_0x1ba6ab[_0x2e296d(0x36f)](_0x1171c5),this[_0x2e296d(0x200)]['next'](_0x1ba6ab);}[_0x3e92f2(0x1c7)](){const _0x19b044=_0x3e92f2;var _0x5dc15a;if(this[_0x19b044(0x28a)]=!0x0,((_0x5dc15a=this[_0x19b044(0x1ef)][_0x19b044(0x380)]())==null?void 0x0:_0x5dc15a[_0x19b044(0x47a)]())!==this['unitID'])return;const _0x332a17=this[_0x19b044(0x443)][_0x19b044(0x2d5)](_0x3781de)['getCurrentSelections'](),_0x4d7946=_0x332a17==null?void 0x0:_0x332a17[_0x19b044(0x1be)](_0x167840);Array[_0x19b044(0x48f)](_0x4d7946)&&_0x4d7946[_0x19b044(0x1a4)]>0x0&&this['_updateLocalCursor'](_0x4d7946);}['_toggleOffline'](){const _0x5b270a=_0x3e92f2;this[_0x5b270a(0x28a)]=!0x1;}};Et=ir([te(0x2,_0xbbf94a(_0xa8f435)),te(0x3,_0xbbf94a(Lt)),te(0x4,_0xbbf94a(ne)),te(0x5,_0xbbf94a(yt)),te(0x6,_0x1b279b),te(0x7,_0x5f1ae0),te(0x8,_0x109aa8)],Et);var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x50c7a4,_0x3b08b6,_0x5e189e,_0x48f39f)=>{for(var _0x5959d9=_0x48f39f>0x1?void 0x0:_0x48f39f?ar(_0x3b08b6,_0x5e189e):_0x3b08b6,_0x9750fc=_0x50c7a4['length']-0x1,_0x116a95;_0x9750fc>=0x0;_0x9750fc--)(_0x116a95=_0x50c7a4[_0x9750fc])&&(_0x5959d9=(_0x48f39f?_0x116a95(_0x3b08b6,_0x5e189e,_0x5959d9):_0x116a95(_0x5959d9))||_0x5959d9);return _0x48f39f&&_0x5959d9&&or(_0x3b08b6,_0x5e189e,_0x5959d9),_0x5959d9;},ct=(_0x340274,_0x2520bf)=>(_0x31b80c,_0x5d9661)=>_0x2520bf(_0x31b80c,_0x5d9661,_0x340274);let fe=class extends _0x4c153b{constructor(_0x44e3ea,_0x29631c,_0x532f4d){const _0x4d41d4=_0x3e92f2;super(),l(this,_0x4d41d4(0x412),new Map()),l(this,_0x4d41d4(0x1a6),new _0x440796()),(this['_univerInstanceService']=_0x44e3ea,this['_injector']=_0x29631c,this[_0x4d41d4(0x1f8)]=_0x532f4d,this[_0x4d41d4(0x35e)]());}[_0x3e92f2(0x25d)](){const _0x47eacd=_0x3e92f2;super[_0x47eacd(0x25d)](),this['_entityInit$'][_0x47eacd(0x2e4)](),this[_0x47eacd(0x412)]['forEach'](_0x34311d=>_0x34311d[_0x47eacd(0x25d)]());}[_0x3e92f2(0x235)](_0xbe6ef6){const _0xe3aee9=_0x3e92f2;return this['_entities'][_0xe3aee9(0x31c)](_0xbe6ef6)?this['_entities'][_0xe3aee9(0x2d5)](_0xbe6ef6)[_0xe3aee9(0x2ef)]:this['_entityInit$'][_0xe3aee9(0x407)](_0x56fcf7(_0x199507=>_0x199507[_0xe3aee9(0x3ca)]===_0xbe6ef6),_0x10f218(_0x3bd094=>_0x3bd094[_0xe3aee9(0x2ef)]));}['_init'](){const _0x5d9715=_0x3e92f2;this[_0x5d9715(0x1ef)][_0x5d9715(0x2c9)](_0x41ddf6['UNIVER_SHEET'])[_0x5d9715(0x407)](_0x254c9c(this[_0x5d9715(0x4b2)]))['subscribe'](async _0x103b68=>{const _0x5c0068=_0x5d9715,_0x5a47fa=_0x103b68['getUnitId'](),_0x32146c=await this[_0x5c0068(0x26d)](_0x5a47fa);this[_0x5c0068(0x1a6)][_0x5c0068(0x3ea)](_0x32146c),this['_entities']['set'](_0x5a47fa,_0x32146c);}),this['_univerInstanceService'][_0x5d9715(0x2c9)](_0x41ddf6[_0x5d9715(0x2e1)])[_0x5d9715(0x407)](_0x254c9c(this[_0x5d9715(0x4b2)]))[_0x5d9715(0x407)](_0x56fcf7(_0x2ba71e=>!_0x2ba71e[_0x5d9715(0x47a)]()[_0x5d9715(0x3f9)]('__')))[_0x5d9715(0x4be)](async _0xe4f9b4=>{const _0x2dc64b=_0x5d9715,_0x3eb874=_0xe4f9b4[_0x2dc64b(0x47a)](),_0x10ba37=await this[_0x2dc64b(0x24a)](_0x3eb874);this[_0x2dc64b(0x1a6)][_0x2dc64b(0x3ea)](_0x10ba37),this[_0x2dc64b(0x412)]['set'](_0x3eb874,_0x10ba37);}),_0x2b9a75(this[_0x5d9715(0x1ef)]['getTypeOfUnitDisposed$'](_0x41ddf6[_0x5d9715(0x2e1)]),this[_0x5d9715(0x1ef)][_0x5d9715(0x319)](_0x41ddf6[_0x5d9715(0x241)]))[_0x5d9715(0x407)](_0x254c9c(this[_0x5d9715(0x4b2)]))[_0x5d9715(0x4be)](_0x5765d5=>{const _0x3e3d5a=_0x5d9715,_0x3603c8=_0x5765d5[_0x3e3d5a(0x47a)](),_0x3b2339=this['_entities'][_0x3e3d5a(0x2d5)](_0x3603c8);_0x3b2339&&(_0x3b2339[_0x3e3d5a(0x25d)](),this[_0x3e3d5a(0x412)][_0x3e3d5a(0x36f)](_0x3603c8));});}async[_0x3e92f2(0x26d)](_0x508c0a){const _0x551ee1=_0x3e92f2,_0x280918=await this[_0x551ee1(0x1f8)][_0x551ee1(0x3cc)](_0x508c0a),_0x5eb18a=this[_0x551ee1(0x443)][_0x551ee1(0x1df)](It,_0x508c0a,_0x280918);return _0x5eb18a[_0x551ee1(0x3bd)](),_0x5eb18a;}async[_0x3e92f2(0x24a)](_0x2a2f70){const _0x495d18=_0x3e92f2,_0x38af12=await this['_collabSessionService'][_0x495d18(0x3cc)](_0x2a2f70),_0x3edee2=this[_0x495d18(0x443)]['createInstance'](Et,_0x2a2f70,_0x38af12);return _0x3edee2[_0x495d18(0x3bd)](),_0x3edee2;}};fe=cr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],fe),ct(0x0,_0x5f1ae0),ct(0x1,_0xbbf94a(_0xa8f435)),ct(0x2,_0xbbf94a(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,hr=0x5;function lr(_0x34d13f,_0x331dff){const _0x49227d=_0x3e92f2;let {radius:_0x496375,width:_0x4b9071,height:_0x273949}=_0x331dff;_0x496375=_0x496375!=null?_0x496375:0x0,_0x4b9071=_0x4b9071!=null?_0x4b9071:0x1e,_0x273949=_0x273949!=null?_0x273949:0x1e;let _0x3b5c2f=0x0,_0x17050c=0x0,_0xc9b14=0x0;_0x3b5c2f=_0x17050c=_0xc9b14=Math[_0x49227d(0x1cd)](_0x496375,_0x4b9071/0x2,_0x273949/0x2),_0x34d13f['beginPath'](),_0x34d13f['moveTo'](_0x3b5c2f,0x0),_0x34d13f[_0x49227d(0x4b6)](_0x4b9071-_0x17050c,0x0),_0x34d13f[_0x49227d(0x267)](_0x4b9071-_0x17050c,_0x17050c,_0x17050c,Math['PI']*0x3/0x2,0x0,!0x1),_0x34d13f[_0x49227d(0x4b6)](_0x4b9071,_0x273949-_0xc9b14),_0x34d13f[_0x49227d(0x267)](_0x4b9071-_0xc9b14,_0x273949-_0xc9b14,_0xc9b14,0x0,Math['PI']/0x2,!0x1),_0x34d13f['lineTo'](0x0,_0x273949),_0x34d13f[_0x49227d(0x4b6)](0x0,_0x3b5c2f),_0x34d13f[_0x49227d(0x267)](_0x3b5c2f,_0x3b5c2f,_0x3b5c2f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34d13f['closePath'](),_0x331dff['fill']&&(_0x34d13f[_0x49227d(0x2c6)](),_0x34d13f['fillStyle']=_0x331dff[_0x49227d(0x364)],_0x331dff[_0x49227d(0x3ce)]==='evenodd'?_0x34d13f['fill'](_0x49227d(0x333)):_0x34d13f[_0x49227d(0x364)](),_0x34d13f[_0x49227d(0x4c6)]());}class st extends _0x28d65b{constructor(_0x2b1337,_0x34cfd3){const _0x53b6ce=_0x3e92f2;super(_0x2b1337,_0x34cfd3),l(this,_0x53b6ce(0x26f)),l(this,_0x53b6ce(0x367)),(this['color']=_0x34cfd3==null?void 0x0:_0x34cfd3['color'],this[_0x53b6ce(0x367)]=_0x34cfd3==null?void 0x0:_0x34cfd3['text']);}static[_0x3e92f2(0x42e)](_0x11fe8f,_0x51b0e8){const _0x3add17=_0x3e92f2,{text:_0x4f3ee6,color:_0x89d47c}=_0x51b0e8;_0x11fe8f[_0x3add17(0x2c6)](),_0x11fe8f[_0x3add17(0x2fa)]=_0x3add17(0x275);const _0x2e80a0=_0x11fe8f[_0x3add17(0x278)](_0x4f3ee6)[_0x3add17(0x43e)],_0x127376=Math['min'](_0x2e80a0+0x2*ht,ts);lr(_0x11fe8f,{'height':Me,'radius':0x4,'width':_0x127376,'fill':_0x89d47c,'evented':!0x1}),_0x11fe8f[_0x3add17(0x3e8)]=_0x3add17(0x2a0);const _0x4f895e=ht,_0x4d06fb=Me-hr,_0x538248=ts-0x2*ht;if(_0x2e80a0>_0x538248){let _0x149090='',_0x1f9d76=0x0;for(const _0x117e2d of _0x4f3ee6){const _0x4bf0bc=_0x11fe8f[_0x3add17(0x278)](_0x117e2d)[_0x3add17(0x43e)];if(_0x1f9d76+_0x4bf0bc<=_0x538248-_0x11fe8f['measureText'](_0x3add17(0x469))['width'])_0x149090+=_0x117e2d,_0x1f9d76+=_0x4bf0bc;else{_0x149090+=_0x3add17(0x469);break;}}_0x11fe8f[_0x3add17(0x1ff)](_0x149090,_0x4f895e,_0x4d06fb);}else _0x11fe8f[_0x3add17(0x1ff)](_0x4f3ee6,_0x4f895e,_0x4d06fb);_0x11fe8f['restore']();}[_0x3e92f2(0x2ed)](_0x5f4d58){st['drawWith'](_0x5f4d58,this);}}const _r=0x1,ur=1.5;class dr extends _0x28d65b{constructor(_0x550a03,_0x2a90b4){const _0x118e62=_0x3e92f2;super(_0x550a03,_0x2a90b4),l(this,'_color'),l(this,'_hovered',!0x1),l(this,_0x118e62(0x1b7)),l(this,_0x118e62(0x27e),''),l(this,_0x118e62(0x289),_0x118e62(0x41a)),(_0x2a90b4&&this[_0x118e62(0x2d0)](_0x2a90b4),this[_0x118e62(0x1fd)][_0x118e62(0x3d0)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x118e62(0x3d0)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3e92f2(0x2d0)](_0x51bb8c){const _0x18ed24=_0x3e92f2;var _0x5a6592,_0xbd8d97,_0x211c90,_0x25cb43,_0x459466;this[_0x18ed24(0x422)]=(_0x5a6592=_0x51bb8c[_0x18ed24(0x26f)])!=null?_0x5a6592:this[_0x18ed24(0x422)],this['_hovered']=(_0xbd8d97=_0x51bb8c[_0x18ed24(0x266)])!=null?_0xbd8d97:this[_0x18ed24(0x1b4)],this[_0x18ed24(0x1b7)]=(_0x211c90=_0x51bb8c[_0x18ed24(0x2b8)])!=null?_0x211c90:this[_0x18ed24(0x1b7)],this[_0x18ed24(0x27e)]=(_0x25cb43=_0x51bb8c[_0x18ed24(0x2c2)])!=null?_0x25cb43:this[_0x18ed24(0x27e)],this[_0x18ed24(0x289)]=(_0x459466=_0x51bb8c[_0x18ed24(0x272)])!=null?_0x459466:this['_labelPosition'],this['transformByState']({'width':_0x51bb8c['width'],'height':_0x51bb8c[_0x18ed24(0x44c)]});}['onMouseMove'](_0x21a441){const _0x26190f=_0x3e92f2,{row:_0x2d355f,column:_0x5a680e}=_0x21a441;if(_0x2d355f>=this[_0x26190f(0x1b7)][_0x26190f(0x1a0)]&&_0x2d355f<=this[_0x26190f(0x1b7)]['endRow']&&_0x5a680e>=this['_range'][_0x26190f(0x24d)]&&_0x5a680e<=this['_range'][_0x26190f(0x20a)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x26190f(0x2d0)]({'hovered':!0x1});}['triggerDblclick'](_0x485f15){return!0x1;}[_0x3e92f2(0x2ed)](_0x307a66){const _0x454df6=_0x3e92f2;_0x1385ec[_0x454df6(0x42e)](_0x307a66,{'width':this[_0x454df6(0x43e)],'height':this[_0x454df6(0x44c)],'strokeWidth':ur,'stroke':this[_0x454df6(0x422)],'evented':!0x1}),this[_0x454df6(0x1b4)]&&(_0x307a66[_0x454df6(0x2c6)](),_0x307a66[_0x454df6(0x251)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x454df6(0x33d)?0x0:-Me),st[_0x454df6(0x42e)](_0x307a66,{'text':this[_0x454df6(0x27e)],'color':this['_color']}),_0x307a66[_0x454df6(0x4c6)]());}}var fr=Object[_0x3e92f2(0x340)],mr=Object['getOwnPropertyDescriptor'],gr=(_0x16ff91,_0x471d00,_0x43f741,_0x3887e2)=>{const _0xddcaea=_0x3e92f2;for(var _0x5e7d76=_0x3887e2>0x1?void 0x0:_0x3887e2?mr(_0x471d00,_0x43f741):_0x471d00,_0x1c76a5=_0x16ff91[_0xddcaea(0x1a4)]-0x1,_0x476d60;_0x1c76a5>=0x0;_0x1c76a5--)(_0x476d60=_0x16ff91[_0x1c76a5])&&(_0x5e7d76=(_0x3887e2?_0x476d60(_0x471d00,_0x43f741,_0x5e7d76):_0x476d60(_0x5e7d76))||_0x5e7d76);return _0x3887e2&&_0x5e7d76&&fr(_0x471d00,_0x43f741,_0x5e7d76),_0x5e7d76;},$e=(_0x23d1fc,_0x76549)=>(_0x26d044,_0x1c8bc3)=>_0x76549(_0x26d044,_0x1c8bc3,_0x23d1fc);const Sr=0x1389;let Ve=class extends _0x4c153b{constructor(_0x2d889e,_0x5ad382,_0x4af750,_0x38ceb8){const _0x2ff2ed=_0x3e92f2;super(),l(this,_0x2ff2ed(0x463),new Set()),l(this,_0x2ff2ed(0x37c),null),(this[_0x2ff2ed(0x487)]=_0x2d889e,this[_0x2ff2ed(0x1ef)]=_0x5ad382,this['_renderManagerService']=_0x4af750,this[_0x2ff2ed(0x1bb)]=_0x38ceb8,this[_0x2ff2ed(0x35e)]());}get['_sheetSkeletonManagerService'](){const _0x40ee62=_0x3e92f2;return this['_renderManagerService'][_0x40ee62(0x46c)](this['_univerInstanceService'][_0x40ee62(0x1cc)](_0x41ddf6[_0x40ee62(0x241)])[_0x40ee62(0x47a)]())[_0x40ee62(0x2b3)](_0x171d84);}get['_unitId'](){const _0x118237=_0x3e92f2;return this[_0x118237(0x1ef)][_0x118237(0x1cc)](_0x41ddf6[_0x118237(0x241)])['getUnitId']();}[_0x3e92f2(0x35e)](){const _0x3d9b03=_0x3e92f2;this[_0x3d9b03(0x30f)][_0x3d9b03(0x28b)]['pipe'](_0x8dafd9(this[_0x3d9b03(0x4b2)]),_0x3bc552(_0x2dfb0b=>{const _0x4437f6=_0x3d9b03;if(_0x2dfb0b){const _0x466ddd=_0x2dfb0b[_0x4437f6(0x233)];return _0x1d32ee(this['_collabCursorController']['getCollabCursors$'](this[_0x4437f6(0x402)]),this[_0x4437f6(0x1bb)][_0x4437f6(0x29c)])[_0x4437f6(0x407)](_0x4ed52e(([_0x51fdaf,_0x5da7ca])=>{const _0x1f0ec9=_0x4437f6,_0x4721fc=new Map();return _0x51fdaf[_0x1f0ec9(0x1b8)]((_0xa5569d,_0x5a028f)=>{const _0x4d25de=_0x1f0ec9;if(_0xa5569d[_0x4d25de(0x4cd)]===_0x466ddd){const _0x4c9a45={..._0xa5569d};_0x4c9a45[_0x4d25de(0x26f)]=_0x5da7ca[_0xa5569d['color']],_0x4721fc[_0x4d25de(0x2bc)](_0x5a028f,_0x4c9a45);}}),{'skeleton':_0x2dfb0b,'cursors':_0x4721fc};}));}return _0x53ae42({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x33113e,cursors:_0x2bd95c})=>{const _0x31e474=_0x3d9b03;this[_0x31e474(0x22a)](),_0x33113e&&this[_0x31e474(0x312)](_0x33113e,_0x2bd95c);}),this[_0x3d9b03(0x30f)][_0x3d9b03(0x28b)][_0x3d9b03(0x4be)](_0x47b26c=>{const _0x2e4492=_0x3d9b03;if(_0x47b26c==null)return;const {skeleton:_0x21ad26}=_0x47b26c,_0x1c464b=this[_0x2e4492(0x4cc)][_0x2e4492(0x46c)](this['_unitId']),{scene:_0x4d3c84}=_0x1c464b;_0x4d3c84[_0x2e4492(0x357)][_0x2e4492(0x3d0)](_0x561342(_0x4a3d9a=>{const _0x2ea32a=_0x2e4492;var _0x4ccf80,_0x5877f4;const {offsetX:_0x2881b3,offsetY:_0x2e6823}=_0x4a3d9a,{x:_0x1f6b14,y:_0x2b059b}=_0x4d3c84['getRelativeToViewportCoord'](_0x20338b['FromArray']([_0x2881b3,_0x2e6823])),{scaleX:_0x3448a3,scaleY:_0x312143}=_0x4d3c84[_0x2ea32a(0x3e6)](),_0x83293e=_0x4d3c84[_0x2ea32a(0x283)](_0x30f673[_0x2ea32a(0x431)]),_0x44afee=_0x4d3c84[_0x2ea32a(0x314)](_0x20338b[_0x2ea32a(0x3f1)]([_0x1f6b14,_0x2b059b]),_0x83293e),_0x9362b=_0x21ad26[_0x2ea32a(0x31e)](_0x2881b3,_0x2e6823,_0x3448a3,_0x312143,_0x44afee);((_0x4ccf80=this[_0x2ea32a(0x37c)])==null?void 0x0:_0x4ccf80[_0x2ea32a(0x1f5)])===_0x9362b[_0x2ea32a(0x1f5)]&&((_0x5877f4=this[_0x2ea32a(0x37c)])==null?void 0x0:_0x5877f4[_0x2ea32a(0x197)])===_0x9362b[_0x2ea32a(0x197)]||this[_0x2ea32a(0x463)][_0x2ea32a(0x1b8)](_0x2fba89=>{const _0x2281c5=_0x2ea32a;_0x2fba89[_0x2281c5(0x42a)](_0x9362b);});},0x64));});}[_0x3e92f2(0x312)](_0x2ee0da,_0x2d77a5){const _0x2fb4c2=_0x3e92f2;var _0x1af1b4;const _0x4edc2b=(_0x1af1b4=this['_sheetSkeletonManagerService'][_0x2fb4c2(0x4ba)]())==null?void 0x0:_0x1af1b4[_0x2fb4c2(0x205)];if(!_0x4edc2b)return;const _0x45b373=this[_0x2fb4c2(0x1ba)]();if(!_0x45b373)return;this[_0x2fb4c2(0x463)][_0x2fb4c2(0x1b8)](_0x38900d=>{const _0x499cff=_0x2fb4c2;_0x38900d[_0x499cff(0x417)]();});const {scene:_0x1cabff}=_0x45b373,_0xf9b3d1=vr(Array[_0x2fb4c2(0x473)](_0x2d77a5['values']()))[_0x2fb4c2(0x1be)](_0x3195eb=>{const _0x4c9ca6=_0x2fb4c2,{color:_0x1c0231,range:_0x581a3e,name:_0x9751b9,selection:_0x1fb9f6,sheetID:_0xc3576}=_0x3195eb,{startColumn:_0x491e82,startRow:_0x58261f,endColumn:_0x41b781,endRow:_0x206747}=_0x581a3e,_0x2033d5=_0x387ce0(_0x58261f,_0x491e82,_0x1cabff,_0x4edc2b),_0x2c94ea=_0x387ce0(_0x206747,_0x41b781,_0x1cabff,_0x4edc2b),{columnHeaderHeightAndMarginTop:_0x681b3}=_0x4edc2b,{startX:_0x2f95e9,startY:_0x61acf6}=_0x2033d5,{endX:_0xf66445,endY:_0x19270b}=_0x2c94ea,_0x15d85c=_0xf66445-_0x2f95e9,_0x45f4bc=_0x19270b-_0x61acf6,_0x5aad84={'labelPosition':_0x61acf6-_0x681b3>=Me?_0x4c9ca6(0x41a):'bottom','sheetID':_0xc3576,'range':_0x581a3e,'color':_0x1c0231,'name':_0x9751b9,'selection':_0x1fb9f6,'left':_0x2f95e9,'top':_0x61acf6,'width':_0x15d85c,'height':_0x45f4bc,'evented':!0x1,'zIndex':Sr};return new dr(_0x9751b9,_0x5aad84);});_0x1cabff[_0x2fb4c2(0x350)](_0xf9b3d1,_r),this[_0x2fb4c2(0x463)]=new Set(_0xf9b3d1);}[_0x3e92f2(0x22a)](){const _0x137294=_0x3e92f2;var _0x32c773;(_0x32c773=this[_0x137294(0x463)])==null||_0x32c773[_0x137294(0x1b8)](_0x4a66ac=>_0x4a66ac[_0x137294(0x25d)]());}[_0x3e92f2(0x1ba)](){const _0xd5468d=_0x3e92f2;return _0xa91384(this['_univerInstanceService'],this[_0xd5468d(0x4cc)]);}};Ve=gr([_0x405ab3(_0x57f2ea['Steady'],Ve),$e(0x0,_0xbbf94a(fe)),$e(0x1,_0x5f1ae0),$e(0x2,_0x5bdf6a),$e(0x3,_0xbbf94a(_0x441ca9))],Ve);function vr(_0x19b4f9){const _0x40b2a5=_0x3e92f2,_0x42649b=new Map();return _0x19b4f9[_0x40b2a5(0x1b8)](_0x3fadf0=>{const _0x4e0cc5=_0x40b2a5;if(_0x42649b[_0x4e0cc5(0x31c)](_0x3fadf0[_0x4e0cc5(0x240)])){const _0x56081b=_0x42649b['get'](_0x3fadf0[_0x4e0cc5(0x240)]);_0x56081b[_0x4e0cc5(0x2c2)]+=',\x20'+_0x3fadf0['name'];}else _0x42649b['set'](_0x3fadf0['selection'],_0x3fadf0);}),Array[_0x40b2a5(0x473)](_0x42649b['values']());}var A=function(){const _0x3efe9b=_0x3e92f2;return A=Object[_0x3efe9b(0x3ab)]||function(_0x302725){const _0x5b42e6=_0x3efe9b;for(var _0x50b036,_0x11508f=0x1,_0x56602e=arguments[_0x5b42e6(0x1a4)];_0x11508f<_0x56602e;_0x11508f++){_0x50b036=arguments[_0x11508f];for(var _0x4829b2 in _0x50b036)Object[_0x5b42e6(0x42b)][_0x5b42e6(0x3b8)][_0x5b42e6(0x49a)](_0x50b036,_0x4829b2)&&(_0x302725[_0x4829b2]=_0x50b036[_0x4829b2]);}return _0x302725;},A[_0x3efe9b(0x3ee)](this,arguments);},pr=function(_0x54e37e,_0x3b99d3){const _0x46c65c=_0x3e92f2;var _0x2977cb={};for(var _0x401f7c in _0x54e37e)Object[_0x46c65c(0x42b)][_0x46c65c(0x3b8)][_0x46c65c(0x49a)](_0x54e37e,_0x401f7c)&&_0x3b99d3[_0x46c65c(0x328)](_0x401f7c)<0x0&&(_0x2977cb[_0x401f7c]=_0x54e37e[_0x401f7c]);if(_0x54e37e!=null&&typeof Object[_0x46c65c(0x2e2)]=='function'){for(var _0x55e694=0x0,_0x401f7c=Object['getOwnPropertySymbols'](_0x54e37e);_0x55e694<_0x401f7c[_0x46c65c(0x1a4)];_0x55e694++)_0x3b99d3[_0x46c65c(0x328)](_0x401f7c[_0x55e694])<0x0&&Object[_0x46c65c(0x42b)][_0x46c65c(0x2d4)][_0x46c65c(0x49a)](_0x54e37e,_0x401f7c[_0x55e694])&&(_0x2977cb[_0x401f7c[_0x55e694]]=_0x54e37e[_0x401f7c[_0x55e694]]);}return _0x2977cb;},$t=_0xa872f9(function(_0x209221,_0x5c74ca){const _0x3169bc=_0x3e92f2;var _0x431d36=_0x209221['icon'],_0x4d6e56=_0x209221['id'],_0x29118c=_0x209221[_0x3169bc(0x3fb)],_0x18f95b=_0x209221[_0x3169bc(0x324)],_0x495327=pr(_0x209221,[_0x3169bc(0x260),'id',_0x3169bc(0x3fb),_0x3169bc(0x324)]),_0x583364=_0x3169bc(0x38d)[_0x3169bc(0x2f7)](_0x4d6e56,'\x20')[_0x3169bc(0x2f7)](_0x29118c||'')['trim'](),_0x191a30=_0x562615('_'[_0x3169bc(0x2f7)](Cr()));return As(_0x431d36,''['concat'](_0x4d6e56),{'defIds':_0x431d36[_0x3169bc(0x231)],'idSuffix':_0x191a30[_0x3169bc(0x1d1)]},A({'ref':_0x5c74ca,'className':_0x583364},_0x495327),_0x18f95b);});function As(_0x37dade,_0x334e16,_0x24211f,_0x4d707d,_0x23c098){const _0x28c2ad=_0x3e92f2;return _0x405505(_0x37dade[_0x28c2ad(0x1ec)],A(A({'key':_0x334e16},Ir(_0x37dade,_0x24211f,_0x23c098)),_0x4d707d),(Er(_0x37dade,_0x24211f)[_0x28c2ad(0x396)]||[])[_0x28c2ad(0x1be)](function(_0x1a091,_0x56d659){const _0xe80b1b=_0x28c2ad;return As(_0x1a091,''[_0xe80b1b(0x2f7)](_0x334e16,'-')['concat'](_0x37dade[_0xe80b1b(0x1ec)],'-')[_0xe80b1b(0x2f7)](_0x56d659),_0x24211f,void 0x0,_0x23c098);}));}function Ir(_0xd65aa3,_0x5b4897,_0x9ae7bc){const _0x1a579d=_0x3e92f2;var _0xe60071=A({},_0xd65aa3[_0x1a579d(0x3c1)]);_0x9ae7bc!=null&&_0x9ae7bc[_0x1a579d(0x48e)]&&_0xe60071[_0x1a579d(0x364)]===_0x1a579d(0x48e)&&(_0xe60071[_0x1a579d(0x364)]=_0x9ae7bc[_0x1a579d(0x48e)]);var _0x50572b=_0x5b4897['defIds'];return!_0x50572b||_0x50572b[_0x1a579d(0x1a4)]===0x0||(_0xd65aa3[_0x1a579d(0x1ec)]==='use'&&_0xe60071[_0x1a579d(0x1ac)]&&(_0xe60071['xlink:href']=_0xe60071[_0x1a579d(0x1ac)]+_0x5b4897[_0x1a579d(0x470)]),Object[_0x1a579d(0x41c)](_0xe60071)[_0x1a579d(0x1b8)](function(_0x351bfd){const _0x194be8=_0x1a579d;var _0x47ae38=_0x351bfd[0x0],_0x38b1af=_0x351bfd[0x1];typeof _0x38b1af==_0x194be8(0x3f4)&&(_0xe60071[_0x47ae38]=_0x38b1af['replace'](/url\(#(.*)\)/,'url(#$1'[_0x194be8(0x2f7)](_0x5b4897[_0x194be8(0x470)],')')));})),_0xe60071;}function Er(_0x470b02,_0x33ad03){const _0x4c4814=_0x3e92f2;var _0x31ed6c,_0xff2750=_0x33ad03[_0x4c4814(0x231)];return!_0xff2750||_0xff2750[_0x4c4814(0x1a4)]===0x0?_0x470b02:_0x470b02[_0x4c4814(0x1ec)]===_0x4c4814(0x3d7)&&(!((_0x31ed6c=_0x470b02[_0x4c4814(0x396)])===null||_0x31ed6c===void 0x0)&&_0x31ed6c[_0x4c4814(0x1a4)])?A(A({},_0x470b02),{'children':_0x470b02[_0x4c4814(0x396)]['map'](function(_0x52ff09){const _0x53b2df=_0x4c4814;return typeof _0x52ff09[_0x53b2df(0x3c1)]['id']=='string'&&_0xff2750&&_0xff2750['indexOf'](_0x52ff09[_0x53b2df(0x3c1)]['id'])>-0x1?A(A({},_0x52ff09),{'attrs':A(A({},_0x52ff09['attrs']),{'id':_0x52ff09[_0x53b2df(0x3c1)]['id']+_0x33ad03[_0x53b2df(0x470)]})}):_0x52ff09;})}):_0x470b02;}function Cr(){const _0x3ba6c2=_0x3e92f2;return Math[_0x3ba6c2(0x1d0)]()[_0x3ba6c2(0x264)](0x24)[_0x3ba6c2(0x30a)](0x2,0x8);}$t[_0x3e92f2(0x2ee)]=_0x3e92f2(0x259);var br={'tag':_0x3e92f2(0x28c),'attrs':{'fill':_0x3e92f2(0x444),'viewBox':_0x3e92f2(0x427),'width':_0x3e92f2(0x483),'height':_0x3e92f2(0x483)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e92f2(0x212)},'children':[{'tag':_0x3e92f2(0x199),'attrs':{'stroke':_0x3e92f2(0x19e),'d':_0x3e92f2(0x3c0),'strokeLinecap':'round','strokeLinejoin':_0x3e92f2(0x209),'strokeWidth':1.2}}]},{'tag':_0x3e92f2(0x3d7),'attrs':{},'children':[{'tag':_0x3e92f2(0x227),'attrs':{'id':_0x3e92f2(0x27f)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x3e92f2(0x46d)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Us=_0xa872f9(function(_0x44bc6c,_0x4233fe){const _0x1126fa=_0x3e92f2;return _0x405505($t,Object[_0x1126fa(0x3ab)]({},_0x44bc6c,{'id':'off-line-single','ref':_0x4233fe,'icon':br}));});Us[_0x3e92f2(0x2ee)]=_0x3e92f2(0x39c);var Tr={'tag':_0x3e92f2(0x28c),'attrs':{'fill':_0x3e92f2(0x444),'viewBox':_0x3e92f2(0x2f4),'width':_0x3e92f2(0x483),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3e92f2(0x31f)},'children':[{'tag':_0x3e92f2(0x199),'attrs':{'stroke':_0x3e92f2(0x19e),'d':_0x3e92f2(0x382),'strokeLinecap':_0x3e92f2(0x209),'strokeLinejoin':_0x3e92f2(0x209),'strokeWidth':1.2}}]},{'tag':_0x3e92f2(0x3d7),'attrs':{},'children':[{'tag':_0x3e92f2(0x227),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3e92f2(0x199),'attrs':{'fill':'#fff','d':_0x3e92f2(0x46d),'transform':_0x3e92f2(0x3d1)}}]}]}],'defIds':['on-line-single_clip0_910_349']},ys=_0xa872f9(function(_0x47a61e,_0xe8352){return _0x405505($t,Object['assign']({},_0x47a61e,{'id':'on-line-single','ref':_0xe8352,'icon':Tr}));});ys[_0x3e92f2(0x2ee)]='OnLineSingle';const Rr=_0x3e92f2(0x3af),Or=_0x3e92f2(0x2e3),Dr=_0x3e92f2(0x1b2),wr=_0x3e92f2(0x40e),Pr='univer-offline',be={'onlineStatusIcon':Rr,'onlineStatusTitle':Or,'onlineStatus':Dr,'online':wr,'offline':Pr};function Nr(_0x2fb5b9){const _0x296bd7=_0x3e92f2;switch(_0x2fb5b9){case P[_0x296bd7(0x461)]:return _0x296bd7(0x406);case P[_0x296bd7(0x2ec)]:return'collabStatus.conflict';case P[_0x296bd7(0x455)]:return _0x296bd7(0x2fd);case P['NOT_COLLAB']:return _0x296bd7(0x392);case P[_0x296bd7(0x475)]:case P['AWAITING']:case P[_0x296bd7(0x2ce)]:return'collabStatus.syncing';case P[_0x296bd7(0x3dd)]:return _0x296bd7(0x330);}}function Mr(_0x3d4172){const _0x88f9f9=_0x3e92f2,{status$:_0x2b9ad3}=_0x3d4172,_0x2d529e=_0x26ca96(_0x2b9ad3,P['NOT_COLLAB']),_0x359d9d=_0x1e1af6(_0x6789ab),_0x2d13e4=_0x2d529e!==P['OFFLINE'],_0x39d108=_0x359d9d['t'](Nr(_0x2d529e)),_0x54823f=_0x3f0cf9(be['onlineStatus'],{[be[_0x88f9f9(0x34a)]]:_0x2d13e4,[be[_0x88f9f9(0x258)]]:!_0x2d13e4}),_0x4bdbd6=_0x2d13e4?_0x12e564[_0x88f9f9(0x1de)](ys,null):_0x12e564['createElement'](Us,null);return _0x12e564[_0x88f9f9(0x1de)](_0x88f9f9(0x315),{'className':_0x54823f},_0x12e564[_0x88f9f9(0x1de)]('div',{'className':be[_0x88f9f9(0x420)]},_0x4bdbd6),_0x12e564[_0x88f9f9(0x1de)]('div',{'className':be[_0x88f9f9(0x3d2)]},_0x39d108));}var Ar=Object[_0x3e92f2(0x340)],Ur=Object['getOwnPropertyDescriptor'],yr=(_0x474a6b,_0x662c98,_0x22ae9a,_0x1924f9)=>{for(var _0x2df893=_0x1924f9>0x1?void 0x0:_0x1924f9?Ur(_0x662c98,_0x22ae9a):_0x662c98,_0x4ffbb6=_0x474a6b['length']-0x1,_0x4b192c;_0x4ffbb6>=0x0;_0x4ffbb6--)(_0x4b192c=_0x474a6b[_0x4ffbb6])&&(_0x2df893=(_0x1924f9?_0x4b192c(_0x662c98,_0x22ae9a,_0x2df893):_0x4b192c(_0x2df893))||_0x2df893);return _0x1924f9&&_0x2df893&&Ar(_0x662c98,_0x22ae9a,_0x2df893),_0x2df893;},je=(_0x14632a,_0x385127)=>(_0x528be3,_0x1530e0)=>_0x385127(_0x528be3,_0x1530e0,_0x14632a);let Be=class extends _0x1f0611{constructor(_0x38ed25,_0x3ed8fd,_0x4de8e7,_0x12edd8){const _0x31bf28=_0x3e92f2;super(),l(this,_0x31bf28(0x489),new _0x4d79d8(P['NOT_COLLAB'])),(this[_0x31bf28(0x1ef)]=_0x38ed25,this[_0x31bf28(0x3bf)]=_0x3ed8fd,this['_injector']=_0x4de8e7,this[_0x31bf28(0x464)]=_0x12edd8,this[_0x31bf28(0x459)](),this[_0x31bf28(0x268)]());}[_0x3e92f2(0x459)](){const _0x23170f=_0x3e92f2;this[_0x23170f(0x280)](this[_0x23170f(0x3bf)][_0x23170f(0x2bf)](_0x4f2b7f[_0x23170f(0x4af)],()=>_0x5396b8(Lr({'status$':this[_0x23170f(0x489)][_0x23170f(0x423)]()}),this['_injector'])));}[_0x3e92f2(0x268)](){const _0x5c25ce=_0x3e92f2;this[_0x5c25ce(0x280)](_0x38ac23(this[_0x5c25ce(0x1ef)][_0x5c25ce(0x21b)][_0x5c25ce(0x407)](_0x10f218(()=>{const _0x4bc2b1=_0x5c25ce,_0x167d1d=this[_0x4bc2b1(0x1ef)][_0x4bc2b1(0x380)]();return _0x167d1d?this[_0x4bc2b1(0x464)]['getCollabEntity$'](_0x167d1d[_0x4bc2b1(0x47a)]()):_0x53ae42(null);}),_0x10f218(_0x54c32d=>_0x54c32d?_0x54c32d[_0x5c25ce(0x4a1)]:_0x53ae42(P[_0x5c25ce(0x41b)])))[_0x5c25ce(0x4be)](_0x2347f7=>{const _0x5ccb95=_0x5c25ce;this['_status$'][_0x5ccb95(0x3ea)](_0x2347f7);})));}};Be=yr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],Be),je(0x0,_0x5f1ae0),je(0x1,_0x49a90c),je(0x2,_0xbbf94a(_0xa8f435)),je(0x3,_0xbbf94a(De))],Be);function Lr(_0x725896){const {status$:_0x44f6af}=_0x725896;return function(){const _0x2cf805=_0x4256;return _0x12e564[_0x2cf805(0x1de)](Mr,{'status$':_0x44f6af});};}const Ls=_0x3195f2(_0x3e92f2(0x3e3));var $r=Object[_0x3e92f2(0x340)],jr=Object[_0x3e92f2(0x2d2)],Hr=(_0x12b299,_0x56d496,_0x3c993c,_0x59a2b8)=>{const _0x41e90a=_0x3e92f2;for(var _0x3ef090=_0x59a2b8>0x1?void 0x0:_0x59a2b8?jr(_0x56d496,_0x3c993c):_0x56d496,_0x4ee151=_0x12b299[_0x41e90a(0x1a4)]-0x1,_0x348f93;_0x4ee151>=0x0;_0x4ee151--)(_0x348f93=_0x12b299[_0x4ee151])&&(_0x3ef090=(_0x59a2b8?_0x348f93(_0x56d496,_0x3c993c,_0x3ef090):_0x348f93(_0x3ef090))||_0x3ef090);return _0x59a2b8&&_0x3ef090&&$r(_0x56d496,_0x3c993c,_0x3ef090),_0x3ef090;},le=(_0x40604e,_0x376b37)=>(_0x299cb7,_0x4447db)=>_0x376b37(_0x299cb7,_0x4447db,_0x40604e);let ke=class extends _0x4c153b{constructor(_0x36403d,_0x36aa1c,_0x2bd49a,_0xc660c2,_0x2b21cf,_0x46846e){const _0x5c0a73=_0x3e92f2;super(),this[_0x5c0a73(0x4a2)]=_0x36403d,this[_0x5c0a73(0x27b)]=_0x36aa1c,this[_0x5c0a73(0x1f2)]=_0x2bd49a,this['_localCacheService']=_0xc660c2,this[_0x5c0a73(0x249)]=_0x2b21cf,_0x46846e?_0x46846e==null||_0x46846e['whenReady']()[_0x5c0a73(0x31d)](()=>this[_0x5c0a73(0x35e)]()):(this[_0x5c0a73(0x27b)][_0x5c0a73(0x2f1)](_0x5c0a73(0x1b0),_0x5c0a73(0x48b)),this[_0x5c0a73(0x35e)]());}async[_0x3e92f2(0x35e)](){const _0x1d88fe=_0x3e92f2,_0x31d6af=this[_0x1d88fe(0x4a2)][_0x1d88fe(0x2eb)](_0x1d88fe(0x4b4)),_0x4b9f18=this['_urlService'][_0x1d88fe(0x2eb)]('type');if(!_0x31d6af||!_0x4b9f18){this['_logService'][_0x1d88fe(0x2f1)]('[DataLoaderController]',_0x1d88fe(0x1d9));return;}switch(Number(_0x4b9f18)){case H[_0x1d88fe(0x241)]:{const _0xcb74d8=await this['_loadSheet'](_0x31d6af);this[_0x1d88fe(0x1db)](_0xcb74d8);break;}case H[_0x1d88fe(0x2e1)]:{await this['_loadDoc'](_0x31d6af);break;}default:{this[_0x1d88fe(0x27b)]['error'](_0x1d88fe(0x1b0),_0x1d88fe(0x43d));break;}}}async['_setupSubUnitSync'](_0x104000){const _0xe0713a=_0x3e92f2;await this[_0xe0713a(0x387)](_0x104000),_0x104000[_0xe0713a(0x3b6)]['pipe'](_0x254c9c(this[_0xe0713a(0x4b2)]))['subscribe'](_0x4f06df=>{const _0x57f3f3=_0xe0713a;_0x4f06df&&this[_0x57f3f3(0x403)](_0x4f06df);}),this['_urlService'][_0xe0713a(0x36c)]['pipe'](_0x254c9c(this[_0xe0713a(0x4b2)]))[_0xe0713a(0x4be)](()=>this[_0xe0713a(0x387)](_0x104000));}[_0x3e92f2(0x403)](_0x2046d0,_0x2355c9=!0x1){const _0xb0a1b9=_0x3e92f2,_0x55cabb=this[_0xb0a1b9(0x4a2)][_0xb0a1b9(0x2eb)]('subunit');_0x2046d0[_0xb0a1b9(0x1fb)]()!==_0x55cabb&&this[_0xb0a1b9(0x4a2)][_0xb0a1b9(0x385)](_0xb0a1b9(0x3e9),_0x2046d0[_0xb0a1b9(0x1fb)](),_0x2355c9);}async[_0x3e92f2(0x387)](_0x2bc142){const _0x2ac303=_0x3e92f2;var _0x233935;const _0x8b9390=this[_0x2ac303(0x4a2)]['getParam'](_0x2ac303(0x3e9));if(!_0x8b9390||!_0x2bc142[_0x2ac303(0x42f)](_0x8b9390)){const _0x7d0fee=_0x2bc142[_0x2ac303(0x2a6)]()[0x0],_0x32e119=_0x2bc142['getSheetBySheetId'](_0x7d0fee);if(!_0x32e119)return;this[_0x2ac303(0x403)](_0x32e119,!0x0),await this['_commandService'][_0x2ac303(0x230)](_0x19d32b['id'],{'unitId':_0x2bc142[_0x2ac303(0x47a)](),'subUnitId':_0x7d0fee});return;}((_0x233935=_0x2bc142[_0x2ac303(0x2d7)]())==null?void 0x0:_0x233935['getSheetId']())!==_0x8b9390&&await this[_0x2ac303(0x1f2)]['executeCommand'](_0x19d32b['id'],{'unitId':_0x2bc142[_0x2ac303(0x47a)](),'subUnitId':_0x8b9390});}async[_0x3e92f2(0x1d4)](_0x20ff51){const _0x4250fb=_0x3e92f2;let _0xfa2acd=0x0;const _0x65425d=await this['_localCacheService'][_0x4250fb(0x4bc)](_0x20ff51);return _0x65425d&&(_0x65425d[_0x4250fb(0x2b2)]||_0x65425d[_0x4250fb(0x1d5)][_0x4250fb(0x1a4)]!==0x0)&&(_0xfa2acd=_0x65425d[_0x4250fb(0x438)]),_0xfa2acd===0x0&&this[_0x4250fb(0x27b)][_0x4250fb(0x2f1)](_0x4250fb(0x1b0),_0x4250fb(0x2d3)),this[_0x4250fb(0x249)][_0x4250fb(0x339)](_0x20ff51,_0xfa2acd);}async[_0x3e92f2(0x237)](_0x18e064){const _0x43df67=_0x3e92f2;let _0x3e66f9=0x0;const _0x325de1=await this[_0x43df67(0x2d9)]['loadOfflineData'](_0x18e064);return _0x325de1&&(_0x325de1[_0x43df67(0x2b2)]||_0x325de1[_0x43df67(0x1d5)][_0x43df67(0x1a4)]!==0x0)&&(_0x3e66f9=_0x325de1['rev']),_0x3e66f9===0x0&&this[_0x43df67(0x27b)][_0x43df67(0x2f1)]('[DataLoaderController]',_0x43df67(0x2d3)),this['_snapshotService'][_0x43df67(0x1f7)](_0x18e064,_0x3e66f9);}};ke=Hr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],ke),le(0x0,Ls),le(0x1,_0x46d807),le(0x2,_0x109aa8),le(0x3,_0xbbf94a(D)),le(0x4,_0xbbf94a(_0x4d5681)),le(0x5,_0x3668b1(_0x2066c7))],ke);var xr=Object['defineProperty'],Fr=Object[_0x3e92f2(0x2d2)],Vr=(_0x7e162e,_0x3c3523,_0xdf078b,_0x522fb9)=>{const _0x26702e=_0x3e92f2;for(var _0x6ced67=_0x522fb9>0x1?void 0x0:_0x522fb9?Fr(_0x3c3523,_0xdf078b):_0x3c3523,_0x38c9ac=_0x7e162e[_0x26702e(0x1a4)]-0x1,_0x17e346;_0x38c9ac>=0x0;_0x38c9ac--)(_0x17e346=_0x7e162e[_0x38c9ac])&&(_0x6ced67=(_0x522fb9?_0x17e346(_0x3c3523,_0xdf078b,_0x6ced67):_0x17e346(_0x6ced67))||_0x6ced67);return _0x522fb9&&_0x6ced67&&xr(_0x3c3523,_0xdf078b,_0x6ced67),_0x6ced67;},ss=(_0x3cae2d,_0x1e8a94)=>(_0x25152a,_0x420645)=>_0x1e8a94(_0x25152a,_0x420645,_0x3cae2d);const Br=_0x3e92f2(0x26c),kr=_0x3e92f2(0x447);let We=class extends _0x1f0611{constructor(_0x337a18,_0x21461b){const _0x2bab03=_0x3e92f2;super(),this[_0x2bab03(0x1ef)]=_0x337a18,this[_0x2bab03(0x292)]=_0x21461b,this['_init']();}[_0x3e92f2(0x35e)](){const _0x233140=_0x3e92f2;this[_0x233140(0x280)](_0x38ac23(this['_univerInstanceService'][_0x233140(0x21b)]['subscribe'](()=>{const _0x231b63=_0x233140;var _0x27760a;const _0x5518c8=this[_0x231b63(0x1ef)][_0x231b63(0x380)]();let _0x2a4cbd=(_0x27760a=this[_0x231b63(0x292)][_0x231b63(0x361)](Br))!=null?_0x27760a:kr;_0x5518c8 instanceof _0x15b410&&(_0x2a4cbd=_0x5518c8['name']),document['title']=_0x2a4cbd;})));}};We=Vr([_0x405ab3(_0x57f2ea[_0x3e92f2(0x20f)],We),ss(0x0,_0x5f1ae0),ss(0x1,_0x523c70)],We);var Wr=Object['defineProperty'],Gr=Object[_0x3e92f2(0x2d2)],Yr=(_0x2025d2,_0x33702e,_0x1eac24,_0x46d895)=>{const _0x508ccd=_0x3e92f2;for(var _0x501942=_0x46d895>0x1?void 0x0:_0x46d895?Gr(_0x33702e,_0x1eac24):_0x33702e,_0x5b7636=_0x2025d2[_0x508ccd(0x1a4)]-0x1,_0x1a1d0f;_0x5b7636>=0x0;_0x5b7636--)(_0x1a1d0f=_0x2025d2[_0x5b7636])&&(_0x501942=(_0x46d895?_0x1a1d0f(_0x33702e,_0x1eac24,_0x501942):_0x1a1d0f(_0x501942))||_0x501942);return _0x46d895&&_0x501942&&Wr(_0x33702e,_0x1eac24,_0x501942),_0x501942;},is=(_0x4fb32f,_0x453534)=>(_0x3da238,_0x3e398a)=>_0x453534(_0x3da238,_0x3e398a,_0x4fb32f);let Ct=class{constructor(_0x5b2de8,_0x59d17d){const _0x5ede65=_0x3e92f2;this[_0x5ede65(0x292)]=_0x5b2de8,this[_0x5ede65(0x35f)]=_0x59d17d;}async['getUnitOnRev'](_0x51afb7,_0x1b6e32){const _0x4ff5c2=_0x3e92f2;var _0x56e1ee;const {unitID:_0x27d37f,type:_0x29019e,revision:_0x4475f6=0x0}=_0x1b6e32,_0x47bed0=this[_0x4ff5c2(0x318)]()+'/'+_0x29019e+_0x4ff5c2(0x1e7)+_0x27d37f+_0x4ff5c2(0x22b)+(_0x4475f6===0x1?0x0:_0x4475f6),_0xef166f=(await this[_0x4ff5c2(0x35f)][_0x4ff5c2(0x2d5)](_0x47bed0))[_0x4ff5c2(0x46e)],_0x26a6c8=(_0x56e1ee=_0xef166f[_0x4ff5c2(0x446)])==null?void 0x0:_0x56e1ee[_0x4ff5c2(0x348)];if(_0x26a6c8){const _0x5f21ed=_0x26a6c8==null?void 0x0:_0x26a6c8['originalMeta'],_0x1a9e72=_0x518061['encode'](_0x2439d9(_0x5f21ed));_0x26a6c8[_0x4ff5c2(0x29b)]=_0x1a9e72,Object[_0x4ff5c2(0x41c)](_0x26a6c8[_0x4ff5c2(0x1a7)])[_0x4ff5c2(0x1b8)](([,_0x5b8678])=>{const _0x1d9f24=_0x4ff5c2,_0xbbe425=_0x5b8678[_0x1d9f24(0x29b)],_0x1041c1=_0x518061['encode'](_0x2439d9(_0xbbe425));_0x5b8678['originalMeta']=_0x1041c1;});}return _0xef166f;}async[_0x3e92f2(0x30b)](_0x1a4812,_0x4e6883){const _0x4ffb20=_0x3e92f2,{unitID:_0x4ceda3,type:_0x4fb9d7,blockID:_0x3bf547}=_0x4e6883,_0x41eae0=this[_0x4ffb20(0x2fc)]()+'/'+_0x4fb9d7+_0x4ffb20(0x1e7)+_0x4ceda3+'/block/'+_0x3bf547;return(await this[_0x4ffb20(0x35f)][_0x4ffb20(0x2d5)](_0x41eae0))[_0x4ffb20(0x46e)];}async[_0x3e92f2(0x39e)](_0xca4f37,_0x549247){const _0x153c8c=_0x3e92f2,{unitID:_0x9ae6ab,type:_0x51a1a1,from:_0x424ddb,to:_0xd53516}=_0x549247,_0x5786d6=this[_0x153c8c(0x2fc)]()+'/'+_0x51a1a1+_0x153c8c(0x1e7)+_0x9ae6ab+_0x153c8c(0x365)+_0x424ddb+'&to='+_0xd53516;return(await this['_httpService'][_0x153c8c(0x2d5)](_0x5786d6))['body'];}[_0x3e92f2(0x318)](){const _0x4ae67c=_0x3e92f2;var _0x5a7c99;return(_0x5a7c99=this[_0x4ae67c(0x292)][_0x4ae67c(0x361)](qi))!=null?_0x5a7c99:this[_0x4ae67c(0x2fc)]();}[_0x3e92f2(0x2fc)](){const _0x4f4c41=_0x3e92f2;var _0x1ff68c;return(_0x1ff68c=this[_0x4f4c41(0x292)][_0x4f4c41(0x361)](Ji))!=null?_0x1ff68c:zi;}async[_0x3e92f2(0x19d)](_0x3ec5f0,_0x2b7940){const _0x4d9f48=_0x3e92f2,_0x131735=_0x4d9f48(0x1f1)+_0x2b7940[_0x4d9f48(0x342)]+_0x4d9f48(0x1e7)+_0x2b7940['unitID']+_0x4d9f48(0x2de);return(await this[_0x4d9f48(0x35f)][_0x4d9f48(0x2d5)](_0x131735,{'params':{'resourceId':JSON[_0x4d9f48(0x20d)](_0x2b7940[_0x4d9f48(0x269)])}}))['body'];}[_0x3e92f2(0x3b7)](){const _0x5ab4e4=_0x3e92f2;throw new Error(_0x5ab4e4(0x41e));}[_0x3e92f2(0x32d)](){const _0x52d187=_0x3e92f2;throw new Error(_0x52d187(0x41e));}[_0x3e92f2(0x23f)](){const _0x116862=_0x3e92f2;throw new Error(_0x116862(0x41e));}};Ct=Yr([is(0x0,_0x523c70),is(0x1,_0xbbf94a(_0x50f6b0))],Ct);var Kr=Object[_0x3e92f2(0x340)],Xr=Object[_0x3e92f2(0x2d2)],Jr=(_0x5ec31e,_0x5bcec4,_0x1c6970,_0x39ba59)=>{const _0xde4d70=_0x3e92f2;for(var _0x57c9a0=_0x39ba59>0x1?void 0x0:_0x39ba59?Xr(_0x5bcec4,_0x1c6970):_0x5bcec4,_0x2719e5=_0x5ec31e[_0xde4d70(0x1a4)]-0x1,_0x3bcf1e;_0x2719e5>=0x0;_0x2719e5--)(_0x3bcf1e=_0x5ec31e[_0x2719e5])&&(_0x57c9a0=(_0x39ba59?_0x3bcf1e(_0x5bcec4,_0x1c6970,_0x57c9a0):_0x3bcf1e(_0x57c9a0))||_0x57c9a0);return _0x39ba59&&_0x57c9a0&&Kr(_0x5bcec4,_0x1c6970,_0x57c9a0),_0x57c9a0;},Te=(_0x17a2c8,_0x2c4999)=>(_0xe22495,_0x223698)=>_0x2c4999(_0xe22495,_0x223698,_0x17a2c8);let bt=class extends _0x13c2f6{constructor(_0x3fe203,_0xaa9d71,_0x1fe3f5,_0x1c89d0,_0x37487d){super(_0x3fe203,_0xaa9d71,_0x1fe3f5),this['_transformService']=_0x1c89d0,this['_logService']=_0x37487d;}[_0x3e92f2(0x250)](_0x111760,_0x521a28){const _0x3b2810=_0x3e92f2,_0x3ebaca=this[_0x3b2810(0x3a9)](_0x111760);if(_0x3ebaca)try{const _0x4f11f2=this[_0x3b2810(0x323)](_0x3ebaca,_0x521a28);this[_0x3b2810(0x34b)](_0x111760,_0x4f11f2);}catch(_0x5e8bf9){this['_logService'][_0x3b2810(0x23c)]('[CollaborationUndoRedoService]',_0x5e8bf9),this[_0x3b2810(0x2ca)](_0x111760);}const _0xac13eb=this['_getRedoStack'](_0x111760);if(_0xac13eb)try{const _0x31bb8e=this[_0x3b2810(0x323)](_0xac13eb,_0x521a28);this['_substituteRedoStack'](_0x111760,_0x31bb8e);}catch(_0x5a954b){this[_0x3b2810(0x27b)][_0x3b2810(0x23c)](_0x5a954b),this[_0x3b2810(0x40d)](_0x111760);}}['_clearUndo'](_0x11ecbb){const _0x7fd591=_0x3e92f2,_0x5c8861=this[_0x7fd591(0x3a9)](_0x11ecbb);_0x5c8861&&(_0x5c8861[_0x7fd591(0x1a4)]=0x0,this[_0x7fd591(0x28f)]());}[_0x3e92f2(0x40d)](_0x3a9000){const _0x5bb971=_0x3e92f2,_0x45a238=this[_0x5bb971(0x45d)](_0x3a9000);_0x45a238&&(_0x45a238[_0x5bb971(0x1a4)]=0x0,this['_updateStatus']());}[_0x3e92f2(0x34b)](_0x4e75a0,_0x88047b){const _0x5f3a3e=_0x3e92f2;this['_undoStacks'][_0x5f3a3e(0x2bc)](_0x4e75a0,_0x88047b),this[_0x5f3a3e(0x28f)]();}[_0x3e92f2(0x386)](_0x6777c,_0x8197ec){const _0x464d2c=_0x3e92f2;this['_redoStacks'][_0x464d2c(0x2bc)](_0x6777c,_0x8197ec),this['_updateStatus']();}[_0x3e92f2(0x323)](_0x5e9227,_0x375a6e){const _0x5f5646=_0x3e92f2,_0x5cb246=[];let _0x20ec61=_0x375a6e,_0x3e8dd2=_0x375a6e;for(let _0x25da05=_0x5e9227['length']-0x1;_0x25da05>=0x0;_0x25da05--){const {unitID:_0x3e8dc0,undoMutations:_0x5c9d4e,redoMutations:_0x4c536b}=_0x5e9227[_0x25da05],_0x360f9e=this[_0x5f5646(0x22e)]['transformMutationsWithChangeset'](_0x20ec61,_0x5c9d4e),_0x510fc3=this[_0x5f5646(0x22e)][_0x5f5646(0x242)](_0x3e8dd2,_0x4c536b);if(_0x27cfca(_0x360f9e)||_0x27cfca(_0x510fc3)){this[_0x5f5646(0x27b)][_0x5f5646(0x23c)](_0x5f5646(0x38c),_0x5f5646(0x21e),_0x360f9e,_0x510fc3);break;}_0x20ec61=_0x360f9e['c1Prime'],_0x3e8dd2=_0x510fc3[_0x5f5646(0x2e7)],_0x5cb246[_0x5f5646(0x2cb)]({'unitID':_0x3e8dc0,'undoMutations':_0x360f9e[_0x5f5646(0x2fb)],'redoMutations':_0x510fc3[_0x5f5646(0x2fb)]});}return _0x5cb246[_0x5f5646(0x343)]();}};bt=Jr([Te(0x0,_0x5f1ae0),Te(0x1,_0x109aa8),Te(0x2,_0x114c9b),Te(0x3,_0x1b279b),Te(0x4,_0x46d807)],bt);class zr extends _0x4c153b{constructor(){const _0x1eaae1=_0x3e92f2;super(),l(this,_0x1eaae1(0x36c)),this[_0x1eaae1(0x36c)]=_0x236f67(window,_0x1eaae1(0x474))[_0x1eaae1(0x407)](_0x254c9c(this['dispose$']),_0x839af7(0x1),_0x582e14(void 0x0));}[_0x3e92f2(0x385)](_0x45790a,_0x2e9ecd,_0x135bca=!0x1){const _0x29693b=_0x3e92f2,_0x2a6c16=new URL(window[_0x29693b(0x252)][_0x29693b(0x270)]);_0x2a6c16['searchParams'][_0x29693b(0x2bc)](_0x45790a,_0x2e9ecd),_0x135bca?window[_0x29693b(0x1fc)][_0x29693b(0x1e2)]('','',_0x2a6c16[_0x29693b(0x264)]()):window[_0x29693b(0x1fc)]['pushState']('','',_0x2a6c16[_0x29693b(0x264)]());}[_0x3e92f2(0x4b8)](_0x51fa83,_0x2ec1e5=!0x1){const _0x22c83c=_0x3e92f2,_0x5eb55f=new URL(window[_0x22c83c(0x252)][_0x22c83c(0x270)]);_0x5eb55f[_0x22c83c(0x415)][_0x22c83c(0x36f)](_0x51fa83),_0x2ec1e5?window[_0x22c83c(0x1fc)][_0x22c83c(0x1e2)]('','',_0x5eb55f[_0x22c83c(0x264)]()):window[_0x22c83c(0x1fc)]['pushState']('','',_0x5eb55f[_0x22c83c(0x264)]());}['getParam'](_0x3d9255){const _0x56dc48=_0x3e92f2;var _0x441308;return(_0x441308=new URL(window[_0x56dc48(0x252)]['href'])[_0x56dc48(0x415)][_0x56dc48(0x2d5)](_0x3d9255))!=null?_0x441308:void 0x0;}}const lt=_0x3e92f2(0x3ba),qr=_0x3e92f2(0x451),He=0x6,Zr=1.5,_t=0x4,Qr=1.5,eo=_0x3e92f2(0x248);class to{constructor(_0x586dda,_0x2af316,_0xb82e82,_0xcd0c48){const _0x2aaa7a=_0x3e92f2;l(this,_0x2aaa7a(0x1dc),[]),l(this,_0x2aaa7a(0x3eb),null),l(this,_0x2aaa7a(0x3f7),null),l(this,_0x2aaa7a(0x3ff),null),l(this,_0x2aaa7a(0x43f),null),l(this,'_eventUnsubscribe',null),(this[_0x2aaa7a(0x3c3)]=_0x586dda,this[_0x2aaa7a(0x279)]=_0x2af316,this[_0x2aaa7a(0x2bd)]=_0xb82e82,this[_0x2aaa7a(0x478)]=_0xcd0c48,this[_0x2aaa7a(0x3da)]());}set[_0x3e92f2(0x1f3)](_0x481679){const _0x359f77=_0x3e92f2;_0x481679?(this[_0x359f77(0x3ff)]&&this['_anchorDot'][_0x359f77(0x33c)](),this[_0x359f77(0x3f7)]&&this[_0x359f77(0x3f7)][_0x359f77(0x3a7)]()):(this[_0x359f77(0x3ff)]&&this[_0x359f77(0x3ff)][_0x359f77(0x3a7)](),this[_0x359f77(0x3f7)]&&this[_0x359f77(0x3f7)][_0x359f77(0x33c)]());}[_0x3e92f2(0x25d)](){const _0x6a7e3e=_0x3e92f2;for(const _0xc90695 of this[_0x6a7e3e(0x1dc)])_0xc90695['dispose']();this['_textBubble']&&this[_0x6a7e3e(0x3f7)][_0x6a7e3e(0x25d)](),this[_0x6a7e3e(0x3ff)]&&this[_0x6a7e3e(0x3ff)][_0x6a7e3e(0x25d)](),this[_0x6a7e3e(0x3eb)]&&this[_0x6a7e3e(0x3eb)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x3e92f2(0x3da)](){const _0x59cc10=_0x3e92f2,{_docSkeleton:_0x21f7f8,_document:_0x5e5c75}=this,{color:_0x3c38fc,name:_0x29e9e5,ranges:_0x1c6a32}=this[_0x59cc10(0x3c3)],_0x5bc562=_0x5e5c75[_0x59cc10(0x1e6)](),{docsLeft:_0x48f25f,docsTop:_0xe6ac5f}=_0x5bc562,_0x336252=new _0xc0d7bf(_0x5bc562,_0x21f7f8);for(const {startOffset:_0x14a3d6,endOffset:_0x5a4e20,collapsed:_0x6b01aa,isActive:_0x962df3}of _0x1c6a32){const _0x5a5ef9=_0x21f7f8['findNodePositionByCharIndex'](_0x14a3d6),_0x37601e=_0x21f7f8[_0x59cc10(0x327)](_0x5a4e20);if(_0x962df3){const {contentBoxPointGroup:_0x238e46}=_0x336252[_0x59cc10(0x195)](_0x37601e,_0x37601e);if(_0x238e46['length']===0x0)continue;this[_0x59cc10(0x4ac)](_0x3c38fc,_0x238e46,_0x48f25f,_0xe6ac5f,_0x29e9e5),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x6b01aa){const {contentBoxPointGroup:_0x2cb6a9}=_0x336252[_0x59cc10(0x195)](_0x5a5ef9,_0x37601e);if(_0x2cb6a9['length']===0x0)continue;this[_0x59cc10(0x198)](_0x3c38fc,_0x2cb6a9,_0x48f25f,_0xe6ac5f);}}}[_0x3e92f2(0x4ac)](_0x21af6b,_0x5b94d6,_0x2391f7,_0x24967a,_0x287386){const _0x3f540b=_0x3e92f2,_0x5133e1=this[_0x3f540b(0x1bf)](_0x5b94d6),{left:_0x3f675b,top:_0x3b4bf1,height:_0x34cb29}=_0x5133e1,_0x433c03=this['_getScale'](),_0x5713f1=Qr/_0x433c03,_0x4ebf2c=new _0x1385ec(lt+_0x545ca3['generateRandomId'](He),{'left':_0x3f675b+_0x2391f7-_0x5713f1,'top':_0x3b4bf1+_0x24967a,'height':_0x34cb29,'width':Zr,'fill':_0x21af6b||_0x5afff8(_0x45d551[_0x3f540b(0x39a)],0x0),'strokeWidth':_0x5713f1,'stroke':eo,'evented':!0x0});this[_0x3f540b(0x3eb)]=_0x4ebf2c,this[_0x3f540b(0x279)][_0x3f540b(0x287)](_0x4ebf2c,_0x563281);const _0x319f85=new _0x1385ec(lt+_0x545ca3[_0x3f540b(0x3c4)](He),{'left':_0x3f675b+_0x2391f7-_0x5713f1,'top':_0x3b4bf1+_0x24967a-_t/0x2,'height':_t,'width':_t,'fill':_0x21af6b||_0x5afff8(_0x45d551[_0x3f540b(0x39a)],0x0),'strokeWidth':0x0,'stroke':_0x21af6b||_0x5afff8(_0x45d551['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x319f85,this[_0x3f540b(0x279)][_0x3f540b(0x287)](_0x319f85,_0x563281);const _0x3ec1eb=new st(lt+_0x545ca3[_0x3f540b(0x3c4)](He),{'left':_0x3f675b+_0x2391f7-_0x5713f1,'top':_0x3b4bf1+_0x24967a-Me,'text':_0x287386,'color':_0x21af6b});this['_textBubble']=_0x3ec1eb,this[_0x3f540b(0x279)][_0x3f540b(0x287)](_0x3ec1eb,_0x563281),this[_0x3f540b(0x1f3)]=!0x1;}['_handleHover'](){const _0x4d6856=_0x3e92f2,_0x43b5fb=this[_0x4d6856(0x3eb)][_0x4d6856(0x1fd)][_0x4d6856(0x3d0)](()=>{const _0x4828c8=_0x4d6856;this[_0x4828c8(0x1f3)]=!0x0;}),_0x261e48=this[_0x4d6856(0x3eb)][_0x4d6856(0x3e1)][_0x4d6856(0x3d0)](()=>{const _0x1f1729=_0x4d6856;this[_0x1f1729(0x43f)]&&clearTimeout(this['_hideTimer']),this[_0x1f1729(0x43f)]=setTimeout(()=>{const _0x331576=_0x1f1729;this[_0x331576(0x1f3)]=!0x1;},0x7d0);});return()=>{const _0x4abff6=_0x4d6856;_0x43b5fb[_0x4abff6(0x3b0)](),_0x261e48['unsubscribe']();};}[_0x3e92f2(0x198)](_0x4dca5f,_0x57dde3,_0x16e484,_0x1c9f82){const _0x5ca913=_0x3e92f2,_0x3a40fe=new _0xbc8d5d(_0x4dca5f)['setAlpha'](0.2)[_0x5ca913(0x245)](),_0x509bf3=new _0x49179d(qr+_0x545ca3[_0x5ca913(0x3c4)](He),{'pointsGroup':_0x57dde3,'fill':_0x3a40fe||_0x5afff8(_0x45d551[_0x5ca913(0x39a)],0.2),'left':_0x16e484,'top':_0x1c9f82,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5ca913(0x2cb)](_0x509bf3),this[_0x5ca913(0x279)][_0x5ca913(0x287)](_0x509bf3,_0x563281);}[_0x3e92f2(0x1bf)](_0x47a326){const _0x6f258c=_0x47a326[0x0],_0x25694d=_0x6f258c[0x0],_0x5089bd=_0x6f258c[0x2],{x:_0x3d41d5,y:_0x52768f}=_0x25694d,{x:_0x22b12b,y:_0x3d7898}=_0x5089bd;return{'left':_0x3d41d5,'top':_0x52768f,'width':_0x22b12b-_0x3d41d5,'height':_0x3d7898-_0x52768f};}[_0x3e92f2(0x3c6)](){const _0x3c13d6=_0x3e92f2,{scaleX:_0x57bb90,scaleY:_0x5de461}=this['_scene'][_0x3c13d6(0x3e6)]();return Math[_0x3c13d6(0x218)](_0x57bb90,_0x5de461);}}var so=Object[_0x3e92f2(0x340)],io=Object[_0x3e92f2(0x2d2)],no=(_0x352d74,_0x23314e,_0x3024c4,_0x314461)=>{const _0x22eb1f=_0x3e92f2;for(var _0x5eb649=_0x314461>0x1?void 0x0:_0x314461?io(_0x23314e,_0x3024c4):_0x23314e,_0x34b1ce=_0x352d74[_0x22eb1f(0x1a4)]-0x1,_0x3f5ea9;_0x34b1ce>=0x0;_0x34b1ce--)(_0x3f5ea9=_0x352d74[_0x34b1ce])&&(_0x5eb649=(_0x314461?_0x3f5ea9(_0x23314e,_0x3024c4,_0x5eb649):_0x3f5ea9(_0x5eb649))||_0x5eb649);return _0x314461&&_0x5eb649&&so(_0x23314e,_0x3024c4,_0x5eb649),_0x5eb649;},Re=(_0x48948c,_0xe59926)=>(_0x42be90,_0xde2211)=>_0xe59926(_0x42be90,_0xde2211,_0x48948c);let Ge=class extends _0x4c153b{constructor(_0x25fea9,_0x2df67c,_0x3847e5,_0xc63cc0,_0x1ea835){const _0x31e770=_0x3e92f2;super(),l(this,_0x31e770(0x463),[]),(this[_0x31e770(0x487)]=_0x25fea9,this[_0x31e770(0x1ef)]=_0x2df67c,this[_0x31e770(0x4cc)]=_0x3847e5,this[_0x31e770(0x221)]=_0xc63cc0,this[_0x31e770(0x1bb)]=_0x1ea835,this['_init']());}['_init'](){const _0x292424=_0x3e92f2;this[_0x292424(0x221)][_0x292424(0x28b)][_0x292424(0x407)](_0x8dafd9(this['dispose$']),_0x3bc552(_0x37b78e=>{const _0x15bdd9=_0x292424;if(_0x37b78e){const _0x1a2a54=_0x37b78e[_0x15bdd9(0x352)]()[_0x15bdd9(0x410)]()[_0x15bdd9(0x47a)]();return _0x1d32ee(this['_collabCursorController'][_0x15bdd9(0x235)](_0x1a2a54),this[_0x15bdd9(0x1bb)][_0x15bdd9(0x29c)])[_0x15bdd9(0x407)](_0x4ed52e(([_0x598fc4,_0x121082])=>({'skeleton':_0x37b78e,'cursors':[..._0x598fc4[_0x15bdd9(0x400)]()]['flatMap'](_0x4ca0bb=>({..._0x4ca0bb,'color':_0x121082[_0x4ca0bb[_0x15bdd9(0x26f)]]}))})));}return _0x53ae42({'skeleton':null,'cursors':[]});}))[_0x292424(0x4be)](({skeleton:_0x3b2d06,cursors:_0x547122})=>{const _0x1fede8=_0x292424;this[_0x1fede8(0x22a)](),_0x3b2d06&&this[_0x1fede8(0x312)](_0x3b2d06,_0x547122);});}['_updateCollabCursors'](_0x285f0b,_0x124f6a){const _0x40c384=_0x3e92f2,_0x435fed=this['_getDocObject']();if(_0x435fed==null)return;const {scene:_0x1a1f8b,document:_0x49e0bc}=_0x435fed,_0x54d27e=_0x124f6a[_0x40c384(0x1be)](_0x40ab7a=>new to(_0x40ab7a,_0x1a1f8b,_0x285f0b,_0x49e0bc));this[_0x40c384(0x463)]=_0x54d27e;}[_0x3e92f2(0x22a)](){const _0x1ba823=_0x3e92f2;this[_0x1ba823(0x463)][_0x1ba823(0x1b8)](_0x4a3f08=>_0x4a3f08[_0x1ba823(0x25d)]()),this[_0x1ba823(0x463)]=[];}[_0x3e92f2(0x285)](){const _0x3c9231=_0x3e92f2;return _0x14e6b6(this[_0x3c9231(0x1ef)],this[_0x3c9231(0x4cc)]);}};Ge=no([_0x405ab3(_0x57f2ea[_0x3e92f2(0x325)],Ge),Re(0x0,_0xbbf94a(fe)),Re(0x1,_0x5f1ae0),Re(0x2,_0x5bdf6a),Re(0x3,_0xbbf94a(_0x1e7be0)),Re(0x4,_0xbbf94a(_0x441ca9))],Ge);var ro=Object[_0x3e92f2(0x340)],oo=Object[_0x3e92f2(0x2d2)],ao=(_0x2eee88,_0x57d0d6,_0x3df2c9,_0x228a1e)=>{const _0x39ef11=_0x3e92f2;for(var _0x153564=_0x228a1e>0x1?void 0x0:_0x228a1e?oo(_0x57d0d6,_0x3df2c9):_0x57d0d6,_0x4a3037=_0x2eee88[_0x39ef11(0x1a4)]-0x1,_0x43ffbb;_0x4a3037>=0x0;_0x4a3037--)(_0x43ffbb=_0x2eee88[_0x4a3037])&&(_0x153564=(_0x228a1e?_0x43ffbb(_0x57d0d6,_0x3df2c9,_0x153564):_0x43ffbb(_0x153564))||_0x153564);return _0x228a1e&&_0x153564&&ro(_0x57d0d6,_0x3df2c9,_0x153564),_0x153564;},ut=(_0x5ae973,_0x41922c)=>(_0x37a8f7,_0x4def1f)=>_0x41922c(_0x37a8f7,_0x4def1f,_0x5ae973);let Ze=class{constructor(_0x100fca,_0x462866,_0x42ee03){const _0x11611c=_0x3e92f2;this[_0x11611c(0x292)]=_0x100fca,this[_0x11611c(0x35f)]=_0x462866,this[_0x11611c(0x375)]=_0x42ee03,this[_0x11611c(0x3bd)]();}[_0x3e92f2(0x3bd)](){const _0x2a0a4c=_0x3e92f2;this['_httpService'][_0x2a0a4c(0x4a8)]({'priority':0x1,'interceptor':(_0x1e7ac0,_0x5887b3)=>_0x5887b3(_0x1e7ac0)[_0x2a0a4c(0x407)](_0x4df13e(async _0x10c9ba=>{const _0x14767e=_0x2a0a4c,_0xd76187=_0x10c9ba;if(_0xd76187[_0x14767e(0x306)]===0x191&&window['confirm'](this[_0x14767e(0x375)]['t']('auth.needGotoLoginAlert'))){const _0x23b39c=window[_0x14767e(0x358)](window['location'][_0x14767e(0x270)]);window['location'][_0x14767e(0x270)]=this['_getLoginPath']()+_0x14767e(0x1e4)+_0x23b39c;}return _0xd76187;}))});}[_0x3e92f2(0x1ea)](){const _0x820d18=_0x3e92f2;var _0x35b3fe;return(_0x35b3fe=this[_0x820d18(0x292)][_0x820d18(0x361)](dn))!=null?_0x35b3fe:fn;}};function _0x2c8c(){const _0x80f7c2=['unitID','_getAPIPrefixPath','requireSession','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','fillRule','_remoteChangesetQueue','subscribeEvent','translate(.97)','onlineStatusTitle','LIVESHARE_FETCH_OPERATIONS','_initUnitPermissionChange','unload','getCollabEntity','defs','routeKey','updatePermissionObjEvent','_render','_unitOnClients','onTransformRemoteChangesetByIMECache','SYNCED','_getMergeRange','getCurrentUser','USERS_ENTER','onPointerLeave$','_createHandler','uni.network.url-service','_unitStatus','RemoveRowCommandId','getAncestorScale','_retryConnectingTimer','fillStyle','subunit','next','_anchor','RETRY_CONNECTING_MAX_COUNT','permission.content','apply','424360Fxwirp','_HTTPService','FromArray','ERROR_IMAGE_TYPE','SNAPSHOT_INVALID_SNAPSHOT','string','_disableEditing','enableAuthServer','_textBubble','univer-pro.collaboration-client.single-active-unit-service','startsWith','ws://127.0.0.1:8000/universer-api/comb/connect','className','setItem','RECV','socketService','_anchorDot','values','includes','_unitId','_updateURLWithCurrentState','[SyncedState]:\x20received\x20acknowledgement.','ONLINE','collabStatus.offline','pipe','_collabCursorState$','verdancy600','session.room-full','fetch_missing','message$','_clearRedo','univer-online','2611tgpVoa','getDataModel','sessionStatus','_entities','_clearCollaborationTimeoutTimer','jiqing500','searchParams','_heartbeatTimer','makeDirty','[PendingState]:\x20received\x20rejection.','_cachedData','top','NOT_COLLAB','entries','InsertRangeMoveDownCommandId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onTransformIME','onlineStatusIcon','getMemberID','_color','asObservable','getInterceptPoints','HELLO','NOT_FOUND','0\x200\x2016\x2016','batchAllowed','COMPLETION_FINISHED','onMouseMove','prototype','_sendingTimer','_replayCachedMutations','drawWith','getSheetBySheetId','\x20-\x20','VIEW_MAIN','_docStateChangeManagerService','transformMutation','_updateLocalCache','51VmyfCs','roomMembers$','_commentUpdate$','rev','_pendingMutations','onSendChangeset','_localStorageService','getValue','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','width','_hideTimer','pauseCollaboration','AWAITING','append','_injector','none','csRejEvent','snapshot','Univer','syncEditingCollabCursor','_colorIndex','collaboration.single-unit.warning','COLLAB_SUBMIT_CHANGESET_URL','height','SUBMIT_CHANGESET','onload','getRoom','state','collab-text-range-','session.connection-failed','_setupBeforeClosingHandler','COLLAB_WEB_SOCKET_URL','FETCH_MISS','_onConnectionOpen','size','_messageService','_initStatusComponent','_onLocalMutation','CHANGESET_ACK','_handleLeaveEvent','_getRedoStack','SHOULD_CLOSE_CONN','collaboratorID','_queuedRemoteChangesets','OFFLINE','USERS_LEAVE','_cursors','_collaborationController','_handleJoinEvent','catch','submit\x20changeset\x20error!','_transformUndoRedoStack','...','INVALID_ARGUMENT','IDLE','getRenderById','M0\x200H16V16H0z','body','disposeUnit','idSuffix','docStateChange$','override','from','popstate','PENDING','/object/','_members','_document','118cYDYEk','getUnitId','updateCollaborator','YUUMI_URL_COL_OUT_OF_RANGE','_exhaustSavingTask','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','parse','OTHER_CLIENTS_EDITING','JOIN','createCollaborator','1em','open$','userID','FileId','_collabCursorController','isActive','_status$','put','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','[CollaborationSessionService]','_joinRoom','colorChannel1','isArray','1275794pYDfHf','find','_onConnectionFailed','editing\x20status\x20changed\x20to','clear','not_collab','collaborators','roles','_incrementRevisionNumber','_updateState','call','_getUploadFileURL','onCommandExecuted','InsertRowCommandId','_revisionService','_config','update','status$','_urlService','/-/object/list','_decreaseWaiting','_isPermissionRej','INTERNAL_ERROR','_removeRoom','registerHTTPInterceptor','updatePermissionPoint','ERROR_IMAGE','[CollaborationState]:\x20apply\x20error!','_drawAnchor','UNRECOGNIZED','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','HEADER_MENU','fetching\x20missing\x20changesets\x20from\x20','ranges','dispose$','_localeService','unit','actions','lineTo','clearTimeout','removeParam','getWorkbookSelections','getCurrent','_saveTaskMap','loadOfflineData','split','subscribe','_applyRemoteChangeset','selections','getUnitStatus$','changesets','MSG_FOR_ERROR','_fetchMissChangesets','COMPRESS_MUTATION_APPLY','restore','onMissingChangesets','BASE64','_onRecvEvent','_awaitingChangeset','registerRefRange','_renderManagerService','sheetID','code','_initCloseConn','getRangePointData','_state$','row','_drawRange','path','_rescheduleHeartbeatEvent','create','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getResourcesRequest','currentColor','Error','startRow','cmd','removeMember','all','length','_http','_entityInit$','sheets','_scheduleTimestamp','_type','[OfflineState]:\x20received\x20changeset.','_session','xlink:href','close','_onRefRangeChange','eventID','[DataLoaderController]','Warning','univer-online-status','pending','_hovered','_schedule','UNIVER_UNKNOWN','_range','forEach','addImageSourceCache','_getSheetObject','_themeService','_acknowledgedAwaitingChangeset','_clearTimeoutTimer','map','_getAnchorBounding','resend','PERMISSION_REJ','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','UNIVER_SLIDE','COMMENT_UPDATE','newValue','_getSignURL','_toggleOnline','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collaborationTimeoutTimer','/-/object/-/batch_allowed','LIVESHARE_TERMINATE','getCurrentUnitForType','min','NEW_CHANGESETS','58257AcoIqh','random','current','commentUpdate$','_disabled','_loadSheet','mutations','roomMembers','_socket$','objectID','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ACTIVE_UNIT_EVENT_CHANNEL','_setupSubUnitSync','_shapes','clearInterval','createElement','createInstance','HEARTBEAT_INTERVAL','updateCursorEvent','replaceState','_collaborationSessionService','?url=','ERROR_EXCEED_SIZE','getOffsetConfig','/unit/','Starting','_onJoinRoomEvent','_getLoginPath','liveShareOperation','tag','_replaceFileID','_beforeCloseService','_univerInstanceService','transformIMECache','/universer-api/snapshot/','_commandService','_hover','_send','column','UUID','loadDoc','_collabSessionService','_tryEnsureSocket','SUCCUSS','getSheetId','history','onPointerEnter$','_getCurrentRevision','fillText','_cursorInfo$','CHANGESET_REJ','_sendHeartbeat','_syncEditingCollabCursor','{fileID}','skeleton','baseRev','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','data','round','endColumn','_refRangeService','_scheduleReconnection','stringify','[CollaborationEntity]','Ready','setUndoRedoMutationParamsCache','pluginName','url(#off-line-single_clip0_910_343)','unshift','resolve','doc.mutation.rich-text-editing','[CollaborationSessionService]:\x20socket\x20error','_waitCount','max','_checkMissing','_onMessage','focused$','csAckEvent','assignAColorForMemberID','transformStack\x20failed!','_snapshotServerService','objectActions','_docSkeletonManagerService','_showConflictNotification','_executeRemoteChangeset','PERMISSION_DENIED','leaveEvent','UPDATE_CURSOR','clipPath','CONNECTOR_DATA_TOO_LARGE','send','_removeCollabCursors','/rev/','UNKNOWN_CMD','11656OrCWOV','_transformService','objectType','executeCommand','defIds','getCurrentRevForDocument','sheetId','UNAUTHENTICATED','getCollabCursors$','_onConflict','_loadDoc','_onFetchMissResult','toggleOnline','LOCAL_CACHE_INTERVAL','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','error','YUUMI_UNABLE_LOAD_URL','_timeoutTimer','saveChangeset','selection','UNIVER_SHEET','transformMutationsWithChangeset','_selfUnitIDs','updateMember','toRgbString','_transformPreviousActiveRange','APPLY_PERMISSION_DENIED','rgba(255,\x20255,\x20255,\x200.01)','_snapshotService','_startDocCollabCursor','_submitChangeset','_createInitialStateImpl','startColumn','getUndoRedoMutationParamsCache','APPLY_REJECT','transformUndoRedo','transform','location','cursorInfo','LICENSE_EXPORT_SIZE_EXCEEDED','collaMsg','[CollaborationSession]','onRemoteRej','offline','UniverIcon','MUTATION','_ws','SEND_CHANGESET_TIMEOUT','dispose','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','objects','icon','_onCursorDelete','_onRemoteRejected','[SyncedState]:\x20received\x20rejection.','toString','deepClone','hovered','arc','_initStatusListener','resourceIDs','image/png','_onCombEvent','DEFAULT_FILE_NAME','_startSheetCollabCursor','_socketReady','color','href','updateOfflineData','labelPosition','_imageSourceCache','_clearLocalCache','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOffline','336tYqJeK','measureText','_scene','LICENSE_IMPORT_SIZE_EXCEEDED','_logService','setCurrentUser','_clearOtherTimers','_name','off-line-single_clip0_910_343','disposeWithMe','APPLY_REVISION_CONFILICT','incrementRevForDocument','getViewport','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_getDocObject','_getCtorByUniverType','addObject','error$','_labelPosition','_online','currentSkeleton$','svg','\x20to\x20','_socketMessageSubscription','_updateStatus','_transformRemoteChangesetByIMECache','_getSaveTimeout','_configService','_onRemoteChangeset','getMergeData','COMPRESS_MUTATION_SEND','_removeClearOtherTimer','infoRsp','roomInfos','_clearHeartbeatTimer','HEARTBEAT','originalMeta','currentTheme$','conflict','_memberService','session','#FFF','15808FYSrSv','UNIVER_COLLABORATION_CLIENT_PLUGIN','transformSelections','collaborationUniverTypes','conflict.content','getUnhiddenWorksheets','_docTransformSelectionsService','/universer-api/authz','saveImage','_onUserLeave','connection\x20error','socket\x20close','_colorAssignService','LICENSE_MAX_UNITS_EXCEEDED','_socketService','\x0aAfter:\x20','_unitID','awaitingChangeset','with','onRemoteAck','JOINING','disableLocalCache','getUnitType','range','_roomMembers$','_assignedColors','_notificationService','set','_docSkeleton','file','registerComponent','Unknown\x20user','onStateChange','name','transformChangesets','FETCH_MISSING','filter','save','event$','UNKNOWN_CODE','getTypeOfUnitAdded$','_clearUndo','push','enableLocalCache','univer-pro.collaboration-client-socket-service','AWAITING_WITH_PENDING','_transitionLocked','setShapeProps','99TQhWzz','getOwnPropertyDescriptor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','propertyIsEnumerable','get','LIVESHARE_OPERATION','getActiveSheet','4476gEPaSb','_localCacheService','onlyLocal','some','_change$','NO_OTHER_CLIENTS_EDITING','/resources','\x20in\x20_schedule.','_waitForHeartbeatResponse','UNIVER_DOC','getOwnPropertySymbols','univer-online-status-title','complete','reject','_createSocket','c1Prime','image/bmp','c2Prime','/universer-api/oidc/authpage','getParam','CONFLICT','_draw','displayName','cursorInfo$','_transformSelections','debug','storage','_userManagerService','0\x200\x2017\x2016','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','concat','_startCollaboration','post','font','m2Prime','_getAPIPrefix','collabStatus.fetchMiss','contains','RETRY_CONNECTING_INTERVAL','/allowed','awaiting_with_pending','getTime','_getSendChangesetTimeout','liveShareNewHost','_undoRedoService','status','_commentService','_syncEditingCollabCursorService','joinEvent','substring','getSheetBlock','_sheetTransformSelectionsService','_handler','isPermissionRej','_sheetSkeletonManagerService','interceptor','getMember','_updateCollabCursors','onTransformSelections','getVpScrollXYInfoByPosToVp','div','_onRemoteACK','setWaitCount','_getSnapshotAPIPrefix','getTypeOfUnitDisposed$','subUnitId','APPLY_NON_SEQUENTIAL_REVISION','has','then','getCellPositionByOffset','url(#on-line-single_clip0_910_349)','CHANGESET_REVISION_CONFILICT','state$','transformRemoteChangeset','_transformStack','extend','Steady','close$','findNodePositionByCharIndex','indexOf','_id','_singleActiveUnitService','_scheduleHeartbeat','conflict.title','saveSheetBlock','_socket','INGEST','collabStatus.synced','_compressMutationService','_updateLocalCursor','evenodd','HEARTBEAT_TIMEOUT','LIVESHARE_REQUEST_HOST','appendMutation','_retryCount','target','loadSheet','_onCursorUpdate','addEventListener','hide','bottom','MoveRangeCommandId','setTimeout','defineProperty','RemoveColCommandId','type','reverse','getCurrentSelections','editingUnit','getItem','session.will-retry','workbook','_saveCache','online','_substituteUndoStack','[OfflineState]:\x20received\x20rejection.','552RbuWMp','_collaborationPaused','initWorkbookPermissionChange','addObjects','InsertRangeMoveRightCommandId','getViewModel','allowed','_handleHeartbeatEvent','_createInitialState','json','onPointerMove$','encodeURIComponent','6618130VKuQWI','memberID','/role','[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.','add','_init','_httpService','collaboration.closeRoom','getConfig','collabCursorState$','SNAPSHOT_HAS_BEEN_REMOVED','fill','/fetchmissing?from=','session.collaboration-timeout','text','_docTransformIMECacheService','onSyncEditingCollabCursor','_onUserJoin','EXCHANGE_SIGN_URL_SERVER_URL_KEY','urlChange$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','unknown','delete','list','textRanges','_initModules','toggleOffline','PSEUDO_FETCH_MISSING_RESULT','localeService','save\x20fail\x20reason\x20is\x20','_sessionStatus$','_scheduleClearOtherTimer','reduce','_sendHeartbeatTimer','DeleteRangeMoveLeftCommandId','_lastPointer','createSocket','permission.title','[OfflineState]:\x20received\x20acknowledgement.','getFocusedUnit','TOO_MANY_REQUESTS','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','result','_exhaustRemoteChangesetQueue','setParam','_substituteRedoStack','_updateSubUnitFromURLParams','change$','_unlockTransition','_lockTransition','patch','[CollaborationUndoRedoService]','univerjs-icon\x20univerjs-icon-','_sessions','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','blue400','m1Prime','collabStatus.notCollab','LEAVE','params','socket\x20open.','children','sessionStatus$','_roomMembers','symbol','black','/object','OffLineSingle','LICENSE_DISTRO_REJECTED','fetchMissingChangesets','replaceTextRanges','_event$','_transformIMECache','getImage','/collaborator','FAIL','_scheduleSaving','_state','show','url','_getUndoStack','fetchThroughInterceptors','assign','Error\x20on\x20receiving\x20event','_clearScheduledTask','unitId','univer-online-status-icon','unsubscribe','getImageSourceCache','awaiting','_permissionService','LIVESHARE_NEW_HOST','onCommentUpdate','activeSheet$','saveSnapshot','hasOwnProperty','onRemoteChangeset','collab-text-anchor-','permissionRejEvent','setInterval','init','UPDATE_PERMISSION_OBJ','_uiPartsService','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','attrs','compose','_cursor','generateRandomId','_transformUndoredo','_getScale','_ensureSubject','UNDEFINED','_handleEvent'];_0x2c8c=function(){return _0x80f7c2;};return _0x2c8c();}Ze=ao([ut(0x0,_0x523c70),ut(0x1,_0xbbf94a(_0x50f6b0)),ut(0x2,_0xbbf94a(_0x6789ab))],Ze);var co=Object[_0x3e92f2(0x340)],ho=Object[_0x3e92f2(0x2d2)],lo=(_0x570d7a,_0x483366,_0x44cb9b,_0x50105d)=>{for(var _0x387138=_0x50105d>0x1?void 0x0:_0x50105d?ho(_0x483366,_0x44cb9b):_0x483366,_0x241482=_0x570d7a['length']-0x1,_0x455cde;_0x241482>=0x0;_0x241482--)(_0x455cde=_0x570d7a[_0x241482])&&(_0x387138=(_0x50105d?_0x455cde(_0x483366,_0x44cb9b,_0x387138):_0x455cde(_0x387138))||_0x387138);return _0x50105d&&_0x387138&&co(_0x483366,_0x44cb9b,_0x387138),_0x387138;},ns=(_0x341b36,_0x5bb30d)=>(_0xcee6d0,_0x366aa2)=>_0x5bb30d(_0xcee6d0,_0x366aa2,_0x341b36);const _o='AUTHZ_URL_KEY',uo=_0x3e92f2(0x2a8);let Tt=class{constructor(_0x5e95af,_0x25663f){const _0x18facd=_0x3e92f2;this[_0x18facd(0x3f0)]=_0x5e95af,this[_0x18facd(0x292)]=_0x25663f;}[_0x3e92f2(0x3cb)](){const _0x14f268=_0x3e92f2;var _0x114b6e;return(_0x114b6e=this[_0x14f268(0x292)][_0x14f268(0x361)](_o))!=null?_0x114b6e:uo;}async[_0x3e92f2(0x19b)](_0x20623e){const _0x5cc4e8=_0x3e92f2,_0x26de4b=this[_0x5cc4e8(0x3cb)]()+'/'+_0x20623e[_0x5cc4e8(0x22f)]+_0x5cc4e8(0x39b);return(await this[_0x5cc4e8(0x3f0)][_0x5cc4e8(0x2f9)](_0x26de4b,{'body':_0x20623e}))[_0x5cc4e8(0x46e)][_0x5cc4e8(0x1d8)]||'';}async[_0x3e92f2(0x370)](_0x3fcb16){const _0x34b8d7=_0x3e92f2,_0x243304=this[_0x34b8d7(0x3cb)]()+_0x34b8d7(0x4a3);return(await this['_HTTPService'][_0x34b8d7(0x2f9)](_0x243304,{'body':_0x3fcb16}))[_0x34b8d7(0x46e)][_0x34b8d7(0x25f)];}async[_0x3e92f2(0x4a0)](_0x131a2d){const _0xc717b=_0x3e92f2,_0x4ed60c=this[_0xc717b(0x3cb)]()+'/'+_0x131a2d['objectType']+_0xc717b(0x476)+_0x131a2d[_0xc717b(0x1d8)];await this['_HTTPService'][_0xc717b(0x48a)](_0x4ed60c,{'body':_0x131a2d});}async[_0x3e92f2(0x353)](_0xbc0e83){const _0x8ec753=_0x3e92f2,_0x6c812d=this[_0x8ec753(0x3cb)]()+'/'+_0xbc0e83[_0x8ec753(0x22f)]+_0x8ec753(0x476)+_0xbc0e83[_0x8ec753(0x1d8)]+_0x8ec753(0x300);return(await this[_0x8ec753(0x3f0)][_0x8ec753(0x2f9)](_0x6c812d,{'body':_0xbc0e83}))[_0x8ec753(0x46e)][_0x8ec753(0x4b5)];}async[_0x3e92f2(0x428)](_0x2889de){const _0x315608=_0x3e92f2,_0x1043a7=this[_0x315608(0x3cb)]()+_0x315608(0x1ca);return(await this[_0x315608(0x3f0)][_0x315608(0x2f9)](_0x1043a7,{'body':{'requests':_0x2889de}}))[_0x315608(0x46e)][_0x315608(0x220)];}async['listRoles'](_0x59a2e1){const _0x4ba7a1=_0x3e92f2,_0x45f5e6=this['_getAPIPrefixPath']()+'/'+_0x59a2e1[_0x4ba7a1(0x22f)]+_0x4ba7a1(0x35b),_0x4847d3=await this[_0x4ba7a1(0x3f0)][_0x4ba7a1(0x2f9)](_0x45f5e6,{'body':_0x59a2e1});return{'roles':_0x4847d3[_0x4ba7a1(0x46e)][_0x4ba7a1(0x497)],'actions':_0x4847d3['body'][_0x4ba7a1(0x4b5)]};}async['deleteCollaborator'](_0x5385e7){const _0x5400ad=_0x3e92f2,_0x19abc1=this[_0x5400ad(0x3cb)]()+_0x5400ad(0x3a3);await this[_0x5400ad(0x3f0)]['delete'](_0x19abc1,{'params':{'collaboratorID':_0x5385e7[_0x5400ad(0x45f)],'objectID':_0x5385e7[_0x5400ad(0x1d8)],'unitID':_0x5385e7[_0x5400ad(0x3ca)]}});}async[_0x3e92f2(0x47b)](_0x14d295){const _0x17ca38=_0x3e92f2,_0xf68cd5=this[_0x17ca38(0x3cb)]()+_0x17ca38(0x3a3);await this[_0x17ca38(0x3f0)][_0x17ca38(0x38b)](_0xf68cd5,{'body':_0x14d295});}async[_0x3e92f2(0x482)](_0x441f16){const _0x5eda20=_0x3e92f2,_0x54fdd7=this['_getAPIPrefixPath']()+_0x5eda20(0x3a3);await this[_0x5eda20(0x3f0)]['post'](_0x54fdd7,{'body':_0x441f16});}async['listCollaborators'](_0x1dc883){const _0x865b1c=_0x3e92f2,_0x2dacd1=this[_0x865b1c(0x3cb)]()+_0x865b1c(0x3a3);return(await this['_HTTPService'][_0x865b1c(0x2d5)](_0x2dacd1,{'params':{'objectID':_0x1dc883['objectID'],'unitID':_0x1dc883[_0x865b1c(0x3ca)]}}))[_0x865b1c(0x46e)][_0x865b1c(0x496)];}async['putCollaborators'](_0x30ac0c){const _0x205b63=_0x3e92f2,_0x5cd67b=this[_0x205b63(0x3cb)]()+_0x205b63(0x3a3);await this[_0x205b63(0x3f0)][_0x205b63(0x48a)](_0x5cd67b,{'body':_0x30ac0c});}};Tt=lo([ns(0x0,_0xbbf94a(_0x50f6b0)),ns(0x1,_0xbbf94a(_0x523c70))],Tt);var fo=Object['defineProperty'],mo=Object[_0x3e92f2(0x2d2)],go=(_0x51ea18,_0x4d2544,_0x1f08a4,_0x33f4b3)=>{const _0x11a415=_0x3e92f2;for(var _0x4b766c=_0x33f4b3>0x1?void 0x0:_0x33f4b3?mo(_0x4d2544,_0x1f08a4):_0x4d2544,_0x2b61f2=_0x51ea18[_0x11a415(0x1a4)]-0x1,_0x2b167b;_0x2b61f2>=0x0;_0x2b61f2--)(_0x2b167b=_0x51ea18[_0x2b61f2])&&(_0x4b766c=(_0x33f4b3?_0x2b167b(_0x4d2544,_0x1f08a4,_0x4b766c):_0x2b167b(_0x4b766c))||_0x4b766c);return _0x33f4b3&&_0x4b766c&&fo(_0x4d2544,_0x1f08a4,_0x4b766c),_0x4b766c;},rs=(_0xd7dd6a,_0x1c63d4)=>(_0x18d1e0,_0x27700e)=>_0x1c63d4(_0x18d1e0,_0x27700e,_0xd7dd6a);const So=[_0x3e92f2(0x26a),'image/jpeg','image/jpg','image/gif',_0x3e92f2(0x2e8)],vo=0x5*0x400*0x400,po=_0x3e92f2(0x3cd),Io='/universer-api/stream/file/upload',Eo=_0x3e92f2(0x36b),Co='/universer-api/file/{fileID}/sign-url';let Rt=class{constructor(_0x4037e6,_0x5da858){const _0x557dcf=_0x3e92f2;l(this,'_waitCount',0x0),l(this,_0x557dcf(0x2dc),new _0x440796()),l(this,_0x557dcf(0x388),this[_0x557dcf(0x2dc)]),l(this,_0x557dcf(0x273),new Map()),(this['_httpService']=_0x4037e6,this[_0x557dcf(0x292)]=_0x5da858);}[_0x3e92f2(0x317)](_0x2527fb){this['_waitCount']=_0x2527fb,this['_change$']['next'](_0x2527fb);}[_0x3e92f2(0x3b1)](_0x640b29,_0x3758be){const _0x4903e0=_0x3e92f2;if(_0x3758be===_0x1f9734[_0x4903e0(0x4c8)]){const _0x48841d=new Image();return _0x48841d['src']=_0x640b29,_0x48841d;}return this[_0x4903e0(0x273)][_0x4903e0(0x2d5)](_0x640b29);}[_0x3e92f2(0x1b9)](_0x161e67,_0x446f94,_0x2d98dd){const _0x11b53f=_0x3e92f2;_0x446f94===_0x1f9734[_0x11b53f(0x4c8)]||_0x2d98dd==null||this['_imageSourceCache'][_0x11b53f(0x2bc)](_0x161e67,_0x2d98dd);}async[_0x3e92f2(0x3a2)](_0x35653b){const _0x4c348f=_0x3e92f2;try{const _0xf8a9ae=this['_replaceFileID'](this[_0x4c348f(0x1c6)](),''+_0x35653b),_0xdd709=(await this[_0x4c348f(0x35f)][_0x4c348f(0x2d5)](_0xf8a9ae))[_0x4c348f(0x46e)];return _0xdd709[_0x4c348f(0x23c)]&&_0xdd709[_0x4c348f(0x23c)][_0x4c348f(0x193)]===Rs['OK']?Promise[_0x4c348f(0x214)](_0xdd709[_0x4c348f(0x3a8)]):Promise[_0x4c348f(0x2e5)](_0xdd709[_0x4c348f(0x23c)]);}catch(_0xc9943f){return Promise[_0x4c348f(0x2e5)](_0xc9943f);}}async[_0x3e92f2(0x2a9)](_0x47ce27){const _0x2413ca=_0x3e92f2;let _0x2885c3='';if(!So[_0x2413ca(0x401)](_0x47ce27[_0x2413ca(0x342)]))return this[_0x2413ca(0x4a4)](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x3f2)]));if(_0x47ce27[_0x2413ca(0x457)]>vo)return this[_0x2413ca(0x4a4)](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x1e5)]));try{const _0x4c7bbd=new FormData();_0x4c7bbd[_0x2413ca(0x442)](_0x2413ca(0x2be),_0x47ce27);const _0x3ae363=this[_0x2413ca(0x49b)]()+'?size='+_0x47ce27['size'][_0x2413ca(0x264)](),_0x262b94=await(await fetch(_0x3ae363,{'method':'POST','body':_0x4c7bbd}))[_0x2413ca(0x356)]();if(typeof _0x262b94['FileId']!=_0x2413ca(0x3f4))return this[_0x2413ca(0x4a4)](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x4aa)]));_0x2885c3=_0x262b94[_0x2413ca(0x486)];}catch{return this['_decreaseWaiting'](),Promise[_0x2413ca(0x2e5)](new Error(_0x1df9e0[_0x2413ca(0x4aa)]));}return new Promise((_0x1a1c3d,_0x44b5a9)=>{const _0x10ae56=_0x2413ca,_0x2726d1=new FileReader();_0x2726d1['readAsDataURL'](_0x47ce27),_0x2726d1[_0x10ae56(0x44e)]=_0x5b6f69=>{const _0x263b2b=_0x10ae56;var _0x50be0f;const _0x1941cd=(_0x50be0f=_0x5b6f69[_0x263b2b(0x338)])==null?void 0x0:_0x50be0f[_0x263b2b(0x383)];if(_0x1941cd==null){this[_0x263b2b(0x4a4)](),_0x44b5a9(new Error(_0x1df9e0['ERROR_IMAGE']));return;}const _0x29daca=_0x545ca3[_0x263b2b(0x3c4)](0x6);_0x1a1c3d({'imageId':_0x29daca,'imageSourceType':_0x1f9734[_0x263b2b(0x1f6)],'source':_0x2885c3,'base64Cache':_0x1941cd,'status':_0x1df9e0[_0x263b2b(0x1fa)]}),this[_0x263b2b(0x4a4)]();};});}[_0x3e92f2(0x49b)](){const _0x276353=_0x3e92f2;var _0x1ee034;return(_0x1ee034=this[_0x276353(0x292)][_0x276353(0x361)](po))!=null?_0x1ee034:Io;}[_0x3e92f2(0x1c6)](){const _0x2ee27b=_0x3e92f2;var _0x4ed926;return(_0x4ed926=this[_0x2ee27b(0x292)][_0x2ee27b(0x361)](Eo))!=null?_0x4ed926:Co;}[_0x3e92f2(0x1ed)](_0x21c3ad,_0x304e41){const _0x1c26c3=_0x3e92f2;return _0x21c3ad['replace'](_0x1c26c3(0x204),_0x304e41);}['_decreaseWaiting'](){const _0x4dd78b=_0x3e92f2;this[_0x4dd78b(0x217)]-=0x1,this[_0x4dd78b(0x2dc)][_0x4dd78b(0x3ea)](this[_0x4dd78b(0x217)]);}};Rt=go([rs(0x0,_0xbbf94a(_0x50f6b0)),rs(0x1,_0x523c70)],Rt);var bo=Object[_0x3e92f2(0x340)],To=Object[_0x3e92f2(0x2d2)],Ro=(_0x416b0d,_0x38f4f0,_0x256132,_0x3edab1)=>{const _0x1dcb8a=_0x3e92f2;for(var _0x3b5531=_0x3edab1>0x1?void 0x0:_0x3edab1?To(_0x38f4f0,_0x256132):_0x38f4f0,_0x6b6fe4=_0x416b0d[_0x1dcb8a(0x1a4)]-0x1,_0x16b0b3;_0x6b6fe4>=0x0;_0x6b6fe4--)(_0x16b0b3=_0x416b0d[_0x6b6fe4])&&(_0x3b5531=(_0x3edab1?_0x16b0b3(_0x38f4f0,_0x256132,_0x3b5531):_0x16b0b3(_0x3b5531))||_0x3b5531);return _0x3edab1&&_0x3b5531&&bo(_0x38f4f0,_0x256132,_0x3b5531),_0x3b5531;},Oe=(_0x29499a,_0x36a137)=>(_0x26d4ee,_0x1334bc)=>_0x36a137(_0x26d4ee,_0x1334bc,_0x29499a);let Ye=class extends _0x4c153b{constructor(_0x2a7991,_0x5a00d6,_0x5de316,_0x5ae8c4,_0x1d037f){const _0x1f33df=_0x3e92f2;super(),this['_injector']=_0x2a7991,this[_0x1f33df(0x1ef)]=_0x5a00d6,this[_0x1f33df(0x3b3)]=_0x5de316,this[_0x1f33df(0x1e3)]=_0x5ae8c4,this['_localeService']=_0x1d037f,this[_0x1f33df(0x3d4)](),this[_0x1f33df(0x194)]();}[_0x3e92f2(0x194)](){const _0x209bd1=_0x3e92f2,_0x4eacc0=async _0x452238=>{const _0x62ef46=_0x4256;(await this[_0x62ef46(0x1e3)][_0x62ef46(0x3cc)](_0x452238))[_0x62ef46(0x2c7)][_0x62ef46(0x407)](_0x5e91b7(_0x1d0024=>_0x1d0024['eventID']===_0x34e231[_0x62ef46(0x45e)]),_0x8dafd9(this[_0x62ef46(0x4b2)]))[_0x62ef46(0x4be)](_0x23b8c5=>{const _0x23344a=_0x62ef46,_0x4c967d=_0x23b8c5,{reason:_0x5c7fda}=_0x4c967d[_0x23344a(0x208)];this[_0x23344a(0x443)][_0x23344a(0x2d5)](_0x5cfd22)[_0x23344a(0x3a7)]({'type':_0x4f4f06[_0x23344a(0x19f)],'content':this[_0x23344a(0x4b3)]['t'](_0x23344a(0x360))+'('+_0x5c7fda+')'}),this[_0x23344a(0x3b3)][_0x23344a(0x4a9)](new _0xd881f1(_0x452238)['id'],!0x1);});};_0x2b9a75(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x41ddf6[_0x209bd1(0x241)]),this[_0x209bd1(0x1ef)][_0x209bd1(0x2c9)](_0x41ddf6[_0x209bd1(0x2e1)]))[_0x209bd1(0x407)](_0x4ed52e(_0x3af44e=>_0x3af44e[_0x209bd1(0x47a)]()),_0x5e91b7(_0x3a3a26=>!_0x3ee33a(_0x3a3a26)),_0x8dafd9(this[_0x209bd1(0x4b2)]))[_0x209bd1(0x4be)](_0x4ce865=>{_0x4eacc0(_0x4ce865);});}[_0x3e92f2(0x3d4)](){const _0xa3a753=_0x3e92f2,_0x2a83c9=async _0x26c08d=>{const _0x581daa=_0x4256;(await this[_0x581daa(0x1e3)]['requireSession'](_0x26c08d))[_0x581daa(0x2c7)][_0x581daa(0x407)](_0x5e91b7(_0x3ce281=>_0x3ce281[_0x581daa(0x1af)]===_0x34e231['UPDATE_PERMISSION_OBJ']),_0x8dafd9(this['dispose$']))[_0x581daa(0x4be)](_0x59fa80=>{const _0xdd0cca=_0x581daa,_0x27aecf=_0x59fa80,{objectId:_0x463716}=_0x27aecf['data'];_0x463716===_0x26c08d&&this[_0xdd0cca(0x443)][_0xdd0cca(0x2d5)](_0x368f1a)[_0xdd0cca(0x34f)](_0x26c08d);});};_0x2b9a75(this[_0xa3a753(0x1ef)][_0xa3a753(0x2c9)](_0x41ddf6[_0xa3a753(0x241)]),this['_univerInstanceService'][_0xa3a753(0x2c9)](_0x41ddf6[_0xa3a753(0x2e1)]))['pipe'](_0x4ed52e(_0x4cb038=>_0x4cb038[_0xa3a753(0x47a)]()),_0x5e91b7(_0x343201=>!_0x3ee33a(_0x343201)),_0x8dafd9(this['dispose$']))[_0xa3a753(0x4be)](_0xf637d=>{_0x2a83c9(_0xf637d);});}};Ye=Ro([_0x405ab3(_0x57f2ea[_0x3e92f2(0x1e8)],Ye),Oe(0x0,_0xbbf94a(_0xa8f435)),Oe(0x1,_0x5f1ae0),Oe(0x2,_0x4acf08),Oe(0x3,_0xbbf94a(ge)),Oe(0x4,_0xbbf94a(_0x6789ab))],Ye);var $s=Object[_0x3e92f2(0x340)],Oo=Object[_0x3e92f2(0x2d2)],Do=(_0x4f4d01,_0x5b5a44,_0x346177)=>_0x5b5a44 in _0x4f4d01?$s(_0x4f4d01,_0x5b5a44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x346177}):_0x4f4d01[_0x5b5a44]=_0x346177,wo=(_0xc5b2bc,_0x2d30f3,_0x2b7c2f,_0x3ba505)=>{const _0x2df571=_0x3e92f2;for(var _0x33a626=_0x3ba505>0x1?void 0x0:_0x3ba505?Oo(_0x2d30f3,_0x2b7c2f):_0x2d30f3,_0x455946=_0xc5b2bc[_0x2df571(0x1a4)]-0x1,_0x29cffd;_0x455946>=0x0;_0x455946--)(_0x29cffd=_0xc5b2bc[_0x455946])&&(_0x33a626=(_0x3ba505?_0x29cffd(_0x2d30f3,_0x2b7c2f,_0x33a626):_0x29cffd(_0x33a626))||_0x33a626);return _0x3ba505&&_0x33a626&&$s(_0x2d30f3,_0x2b7c2f,_0x33a626),_0x33a626;},os=(_0xa5f16e,_0x3cdad1)=>(_0x3e53ce,_0x382649)=>_0x3cdad1(_0x3e53ce,_0x382649,_0xa5f16e),Po=(_0x574cfb,_0x57c5dd,_0x34f541)=>Do(_0x574cfb,_0x57c5dd+'',_0x34f541);const No=_0x3e92f2(0x2a2);let Ot=class extends _0x5e7441{constructor(_0x4f9ad8,_0x2124a7,_0x2c1364){const _0x365e50=_0x3e92f2;super(),this['_config']=_0x4f9ad8,this[_0x365e50(0x27b)]=_0x2124a7,this[_0x365e50(0x443)]=_0x2c1364;}['onStarting'](_0x4a7332){const _0x350a97=_0x3e92f2;var _0x310ecd,_0x3e056f,_0x52ec86,_0x48f0ef,_0x4b3b21;_0x4a7332['has'](_0x1e106e)&&this[_0x350a97(0x27b)][_0x350a97(0x23c)]('[UniverCollaborationClientPlugin]',_0x350a97(0x38f));let _0x576644=[[_0x1e106e,{'useClass':bt}],[ge],[Lt],[_0x50f6b0],[Ls,{'useClass':zr}],[ne],[D],[_0x412516],[ze],[Je],[Xe],[yt],[Ze],[Ds],[Ye],[Os,{'useClass':(_0x3e056f=(_0x310ecd=this[_0x350a97(0x49f)])==null?void 0x0:_0x310ecd[_0x350a97(0x3fe)])!=null?_0x3e056f:gt}],[_0x41641e,{'useClass':_0x4fc2a5}],[_0x4e0f91,{'useClass':Ct}],[_0x309336,{'useClass':Tt}],[_0xb0775,{'useClass':Rt}],[De],[ke],[Be],[We],[fe]];(_0x52ec86=this['_config'])!=null&&_0x52ec86['enableSingleActiveInstanceLock']&&_0x576644['push']([et,{'useClass':Nn}]),((_0x48f0ef=this['_config'])==null?void 0x0:_0x48f0ef[_0x350a97(0x2a4)])==null||this['_config'][_0x350a97(0x2a4)][_0x350a97(0x401)](_0x41ddf6[_0x350a97(0x241)])?_0x576644['push']([Ve]):this[_0x350a97(0x49f)]['collaborationUniverTypes'][_0x350a97(0x401)](_0x41ddf6[_0x350a97(0x2e1)])&&_0x576644[_0x350a97(0x2cb)]([Ge]),_0x576644=_0x2625cc(_0x576644,(_0x4b3b21=this[_0x350a97(0x49f)])==null?void 0x0:_0x4b3b21[_0x350a97(0x472)]),_0x576644[_0x350a97(0x1b8)](_0x1a56a1=>_0x4a7332[_0x350a97(0x35d)](_0x1a56a1)),_0x4a7332[_0x350a97(0x2d5)](_0x50f6b0)[_0x350a97(0x4a8)]({'priority':0x14,'interceptor':_0x43aece({'maxParallel':0x6})}),this[_0x350a97(0x372)]();}[_0x3e92f2(0x372)](){const _0x38b355=_0x3e92f2;var _0x1379de,_0x319bcf;(_0x1379de=this[_0x38b355(0x49f)])!=null&&_0x1379de['enableOfflineEditing']||this[_0x38b355(0x443)][_0x38b355(0x2d5)](D)['disableLocalCache'](),(_0x319bcf=this['_config'])!=null&&_0x319bcf[_0x38b355(0x3f6)]&&this[_0x38b355(0x443)][_0x38b355(0x2d5)](Ze);}};Po(Ot,_0x3e92f2(0x211),No),Ot=wo([_0x35cc39(_0x5d8040),os(0x1,_0x46d807),os(0x2,_0xbbf94a(_0xa8f435))],Ot);export{_o as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,_n as COLLAB_SUBMIT_CHANGESET_URL_KEY,en as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,P as CollaborationStatus,Mr as CollaborationStatusDisplay,Ds as CommentService,ke as DataLoaderController,Be as DesktopCollaborationStatusDisplayController,sn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,hn as LOCAL_CACHE_INTERVAL_KEY,dn as LOGIN_URL_KEY,D as LocalCacheService,Zi as SEND_CHANGESET_TIMEOUT_KEY,Ji as SNAPSHOT_SERVER_URL_KEY,qi as SNAPSHOT_URL_KEY,de as SessionStatus,Ot as UniverCollaborationClientPlugin,zr as WebURLService,pn as deserializeToCombResponse,In as serializeCombRequest};
1
+ const _0x1f5a54=_0x2f7f;(function(_0x21ef17,_0x119474){const _0x1dac4f=_0x2f7f,_0x57b404=_0x21ef17();while(!![]){try{const _0x51cb61=-parseInt(_0x1dac4f(0x1dd))/0x1*(parseInt(_0x1dac4f(0x297))/0x2)+-parseInt(_0x1dac4f(0x1f2))/0x3*(-parseInt(_0x1dac4f(0x2f1))/0x4)+-parseInt(_0x1dac4f(0x20f))/0x5*(parseInt(_0x1dac4f(0x3c9))/0x6)+parseInt(_0x1dac4f(0x3bc))/0x7*(-parseInt(_0x1dac4f(0x3b7))/0x8)+parseInt(_0x1dac4f(0x1ce))/0x9*(parseInt(_0x1dac4f(0x2f9))/0xa)+-parseInt(_0x1dac4f(0x377))/0xb+-parseInt(_0x1dac4f(0x2de))/0xc*(-parseInt(_0x1dac4f(0x229))/0xd);if(_0x51cb61===_0x119474)break;else _0x57b404['push'](_0x57b404['shift']());}catch(_0x3c8866){_0x57b404['push'](_0x57b404['shift']());}}}(_0x2454,0xd056a));var ks=Object[_0x1f5a54(0x29f)],Bs=(_0x1a10e6,_0x3485f1,_0x47f4b2)=>_0x3485f1 in _0x1a10e6?ks(_0x1a10e6,_0x3485f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47f4b2}):_0x1a10e6[_0x3485f1]=_0x47f4b2,l=(_0x96d766,_0x29f11d,_0x35ea80)=>Bs(_0x96d766,typeof _0x29f11d!=_0x1f5a54(0x200)?_0x29f11d+'':_0x29f11d,_0x35ea80);import{Disposable as _0x462626,toDisposable as _0x5d3cf2,UniverInstanceType as _0x5cab0b,UserManagerService as _0x49718f,IUniverInstanceService as _0x55bd21,DisposableCollection as _0x1382fe,IConfigService as _0x43c997,ILogService as _0x3e33de,ISnapshotServerService as _0x49d5c1,RxDisposable as _0x5915f1,LocaleService as _0x4eec6f,ILocalStorageService as _0x38f292,Tools as _0x4b796f,ICommandService as _0x257ce4,JSONX as _0x13a804,IPermissionService as _0x1721b0,IUndoRedoService as _0x4e4a39,sequenceExecute as _0x337b1e,OnLifecycle as _0x182a37,LifecycleStages as _0x46c7aa,CommandType as _0x4d2326,Rectangle as _0x708e4b,ThemeService as _0x5a1d7c,Workbook as _0x40f416,textEncoder as _0x4823f1,b64DecodeUnicode as _0x5dde85,LocalUndoRedoService as _0x10db64,IContextService as _0x1da175,COLORS as _0x411a85,ColorKit as _0x41c257,isInternalEditorID as _0xe275c4,Plugin as _0x2b09f1,IAuthzIoService as _0x29e930,mergeOverrideWithDependencies as _0x4e0679,DependentOn as _0x476f81}from'@univerjs/core';import{SheetsSelectionsService as _0x5914fd,SetSelectionsOperation as _0x109738,InsertSheetMutation as _0x54cc2b,WorkbookEditablePermission as _0x278a53,RefRangeService as _0x351ccc,EffectRefRangId as _0x349867,handleIRemoveRow as _0x2ff430,handleIRemoveCol as _0x2db791,handleMoveRange as _0x544ab2,handleInsertRow as _0x56aa1d,handleInsertRangeMoveRight as _0x515386,handleInsertRangeMoveDown as _0x13c601,handleInsertCol as _0x185ab7,handleDeleteRangeMoveUp as _0xad81ef,handleDeleteRangeMoveLeft as _0x3e36a2,runRefRangeMutations as _0x16303f,SetWorksheetActivateCommand as _0x436c7c}from'@univerjs/sheets';import{MessageType as _0x454b23}from'@univerjs/design';import{IBeforeCloseService as _0x28b08e,IMessageService as _0x58c973,INotificationService as _0x1d0f07,useObservable as _0x34ebf9,BuiltInUIPart as _0x184510,IUIPartsService as _0x16c51a}from'@univerjs/ui';import{CollaborationEvent as _0x505428,parseChangesetToProtocol as _0x29a67f,RevisionService as _0x2fc807,isTransformMutationFailure as _0x2bbef6,isTransformMutationsWithChangesetSuccess as _0x5abc17,ITransformService as _0x1215ee,mapDocumentTypeToUniverType as _0x2c9cce,isTransformChangesetsSuccess as _0x29a147,CompressMutationService as _0xb14cef,parseProtocolChangeset as _0x13fead,SnapshotService as _0x13134a,isTransformMutationsWithChangesetFailure as _0x2aee01,UniverCollaborationPlugin as _0x460423}from'@univerjs-pro/collaboration';import{Inject as _0x61a763,createIdentifier as _0x2b1b05,Injector as _0x2e9f94,Optional as _0x455db1}from'@wendellhu/redi';import{merge as _0x2e3217,Subject as _0x295019,BehaviorSubject as _0x24a55e,distinctUntilChanged as _0x4dffca,fromEvent as _0x45523d,of as _0x110ce6,takeUntil as _0x57fb4a,debounceTime as _0x49f759,filter as _0x21a70c,switchMap as _0x44b0e5,combineLatest as _0x5732cb,shareReplay as _0x956324,mapTo as _0x43ae84,concatMap as _0x12334d}from'rxjs';import{map as _0x28f321,takeUntil as _0x31e4a6,take as _0x4747bd,filter as _0x3d131e,delay as _0x29d1e4,shareReplay as _0x4a0e36,switchMap as _0x4c3023}from'rxjs/operators';import{IMEInputManagerService as _0x3f2d0c,TextSelectionManagerService as _0x233706,serializeTextRange as _0x4605fa,DocStateChangeManagerService as _0x3a189c,SetTextSelectionsOperation as _0x477910,RichTextEditingMutation as _0x52bb0d,getDocObject as _0x5ef147,DocSkeletonManagerService as _0x3824ed}from'@univerjs/docs';import{HTTPService as _0x11da14,WebSocketService as _0x2067e4,MergeInterceptorFactory as _0x10f37e,HTTPRequest as _0x5b1605,IHTTPImplementation as _0x449c33,XHRHTTPImplementation as _0x13770f,ThresholdInterceptorFactory as _0x50e197}from'@univerjs/network';import{ImageSourceType as _0x2a1a1d,ImageUploadStatusType as _0x190b89,IImageIoService as _0x32dd32}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x13b7f9,serializeRangeWithSheet as _0x24fc6d}from'@univerjs/engine-formula';import _0x21574d from'lodash/debounce';import{Shape as _0x520a18,Rect as _0x5d7c63,Vector2 as _0x1a7ec4,IRenderManagerService as _0x8604c3,NodePositionConvertToCursor as _0x229c8a,getColor as _0x3b289f,TEXT_RANGE_LAYER_INDEX as _0x293d74,RegularPolygon as _0x2b0581}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x5f534a,VIEWPORT_KEY as _0x34fb7d,getCoordByCell as _0x1a9d48,getSheetObject as _0x54e459,SheetPermissionInitController as _0x302c8b}from'@univerjs/sheets-ui';import{useDependency as _0x32bad8,connectInjector as _0x2bdedc}from'@wendellhu/redi/react-bindings';function _0x2f7f(_0xb4ea9,_0x47e323){const _0x2454a0=_0x2454();return _0x2f7f=function(_0x2f7f0c,_0x5d6929){_0x2f7f0c=_0x2f7f0c-0x140;let _0x4b087d=_0x2454a0[_0x2f7f0c];return _0x4b087d;},_0x2f7f(_0xb4ea9,_0x47e323);}import _0x25f2cb,{forwardRef as _0x3c9976,useRef as _0x446d4f,createElement as _0x41bd2c}from'react';import _0x2d6edb from'clsx';import{IRemoteInstanceService as _0x49344d}from'@univerjs/rpc';const zi=_0x1f5a54(0x147),Zi=_0x1f5a54(0x179),Qi='SNAPSHOT_URL_KEY',en='SEND_CHANGESET_TIMEOUT',tn=0x7d0,sn=_0x1f5a54(0x1ac),nn=_0x1f5a54(0x3c3),rn=_0x1f5a54(0x163),on=0x7530,bs=_0x1f5a54(0x448),Ts=0x2710,an=_0x1f5a54(0x1c8),cn=0x4e20,hn=_0x1f5a54(0x25b),ln=0x3,_n=_0x1f5a54(0x14b),un=0x3e8,dn=_0x1f5a54(0x40d),fn=_0x1f5a54(0x14f),mn=_0x1f5a54(0x2f3),gn=_0x1f5a54(0x2e6);var Rs=(_0x1777da=>(_0x1777da[_0x1777da[_0x1f5a54(0x425)]=0x0]=_0x1f5a54(0x425),_0x1777da[_0x1777da['OK']=0x1]='OK',_0x1777da[_0x1777da[_0x1f5a54(0x37e)]=0x2]=_0x1f5a54(0x37e),_0x1777da[_0x1777da[_0x1f5a54(0x2b4)]=0x3]=_0x1f5a54(0x2b4),_0x1777da[_0x1777da[_0x1f5a54(0x239)]=0x4]=_0x1f5a54(0x239),_0x1777da[_0x1777da['UNAUTHENTICATED']=0x5]=_0x1f5a54(0x2ad),_0x1777da[_0x1777da[_0x1f5a54(0x298)]=0x6]=_0x1f5a54(0x298),_0x1777da[_0x1777da['INVALID_ARGUMENT']=0x7]=_0x1f5a54(0x271),_0x1777da[_0x1777da['TOO_MANY_REQUESTS']=0x8]=_0x1f5a54(0x1fe),_0x1777da[_0x1777da['COMPLETION_FINISHED']=0x9]=_0x1f5a54(0x34f),_0x1777da[_0x1777da[_0x1f5a54(0x278)]=0x1389]=_0x1f5a54(0x278),_0x1777da[_0x1777da[_0x1f5a54(0x3ee)]=0x1771]=_0x1f5a54(0x3ee),_0x1777da[_0x1777da[_0x1f5a54(0x285)]=0x1772]=_0x1f5a54(0x285),_0x1777da[_0x1777da[_0x1f5a54(0x3d6)]=0x1b59]=_0x1f5a54(0x3d6),_0x1777da[_0x1777da['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1f5a54(0x352),_0x1777da[_0x1777da[_0x1f5a54(0x214)]=0x1b5b]=_0x1f5a54(0x214),_0x1777da[_0x1777da[_0x1f5a54(0x382)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1777da[_0x1777da[_0x1f5a54(0x476)]=0x1f41]=_0x1f5a54(0x476),_0x1777da[_0x1777da[_0x1f5a54(0x302)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1777da[_0x1777da[_0x1f5a54(0x374)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1777da[_0x1777da['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x1f5a54(0x2ac),_0x1777da[_0x1777da[_0x1f5a54(0x1b2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1777da[_0x1777da['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1f5a54(0x1bc),_0x1777da[_0x1777da[_0x1f5a54(0x166)]=0x2711]=_0x1f5a54(0x166),_0x1777da[_0x1777da[_0x1f5a54(0x35a)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1777da[_0x1777da[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x1777da))(Rs||{}),H=(_0x223f5e=>(_0x223f5e[_0x223f5e[_0x1f5a54(0x471)]=0x0]=_0x1f5a54(0x471),_0x223f5e[_0x223f5e[_0x1f5a54(0x315)]=0x1]=_0x1f5a54(0x315),_0x223f5e[_0x223f5e[_0x1f5a54(0x320)]=0x2]=_0x1f5a54(0x320),_0x223f5e[_0x223f5e['UNIVER_SLIDE']=0x3]=_0x1f5a54(0x1f0),_0x223f5e[_0x223f5e[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x223f5e))(H||{}),I=(_0x75d92f=>(_0x75d92f[_0x75d92f[_0x1f5a54(0x14d)]=0x0]=_0x1f5a54(0x14d),_0x75d92f[_0x75d92f[_0x1f5a54(0x230)]=0x1]=_0x1f5a54(0x230),_0x75d92f[_0x75d92f['JOIN']=0x2]=_0x1f5a54(0x1cc),_0x75d92f[_0x75d92f[_0x1f5a54(0x422)]=0x3]=_0x1f5a54(0x422),_0x75d92f[_0x75d92f[_0x1f5a54(0x358)]=0x4]='INGEST',_0x75d92f[_0x75d92f[_0x1f5a54(0x34b)]=0x5]=_0x1f5a54(0x34b),_0x75d92f[_0x75d92f[_0x1f5a54(0x46a)]=0x6]=_0x1f5a54(0x46a),_0x75d92f[_0x75d92f[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x75d92f))(I||{}),yt=(_0x575536=>(_0x575536[_0x575536[_0x1f5a54(0x38d)]=0x0]=_0x1f5a54(0x38d),_0x575536[_0x575536['OK']=0x1]='OK',_0x575536[_0x575536[_0x1f5a54(0x378)]=0x2]=_0x1f5a54(0x378),_0x575536[_0x575536['UNRECOGNIZED']=-0x1]=_0x1f5a54(0x1cd),_0x575536))(yt||{}),Sn=Object['defineProperty'],vn=Object['getOwnPropertyDescriptor'],pn=(_0x299dd,_0x583e06,_0x4a0bd9,_0x1dd411)=>{const _0x288a03=_0x1f5a54;for(var _0x32dcfd=_0x1dd411>0x1?void 0x0:_0x1dd411?vn(_0x583e06,_0x4a0bd9):_0x583e06,_0x2e83ff=_0x299dd[_0x288a03(0x2d6)]-0x1,_0x45e844;_0x2e83ff>=0x0;_0x2e83ff--)(_0x45e844=_0x299dd[_0x2e83ff])&&(_0x32dcfd=(_0x1dd411?_0x45e844(_0x583e06,_0x4a0bd9,_0x32dcfd):_0x45e844(_0x32dcfd))||_0x32dcfd);return _0x1dd411&&_0x32dcfd&&Sn(_0x583e06,_0x4a0bd9,_0x32dcfd),_0x32dcfd;},Kt=(_0x261b19,_0x36759d)=>(_0x13a70c,_0x273a06)=>_0x36759d(_0x13a70c,_0x273a06,_0x261b19);let ne=class extends _0x462626{constructor(_0x12b3dd,_0x171d3d){const _0x10ed0a=_0x1f5a54;super(),l(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x12b3dd,this[_0x10ed0a(0x411)]=_0x171d3d,this[_0x10ed0a(0x194)](_0x5d3cf2(_0x2e3217(this[_0x10ed0a(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x10ed0a(0x320)])[_0x10ed0a(0x180)](_0x28f321(_0x1f5651=>_0x1f5651[_0x10ed0a(0x2a2)]())),this[_0x10ed0a(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x10ed0a(0x315)])[_0x10ed0a(0x180)](_0x28f321(_0x3fc80e=>_0x3fc80e[_0x10ed0a(0x2a2)]())),this[_0x10ed0a(0x357)][_0x10ed0a(0x303)](_0x5cab0b['UNIVER_SLIDE'])['pipe'](_0x28f321(_0x334c0f=>_0x334c0f[_0x10ed0a(0x2a2)]())))[_0x10ed0a(0x2d9)](_0x1efe02=>this['_removeRoom'](_0x1efe02)))));}['setCurrentUser'](_0x3e1113){const _0x279ce1=_0x1f5a54;this[_0x279ce1(0x411)]['setCurrentUser'](_0x3e1113);}[_0x1f5a54(0x1c4)](){const _0x5481cf=_0x1f5a54;return this[_0x5481cf(0x411)]['getCurrentUser']();}[_0x1f5a54(0x30f)](_0x103dad,_0x44a420){const _0x12ce4f=_0x1f5a54;let _0x8d1351=this[_0x12ce4f(0x210)][_0x12ce4f(0x393)](_0x103dad);_0x8d1351||(_0x8d1351=new In(),this[_0x12ce4f(0x210)]['set'](_0x103dad,_0x8d1351)),_0x8d1351['updateMember'](_0x44a420);}[_0x1f5a54(0x437)](_0x141d98,_0x1e9078){const _0x3f2607=_0x1f5a54,_0x5376b6=this[_0x3f2607(0x210)][_0x3f2607(0x393)](_0x141d98);_0x5376b6&&_0x5376b6[_0x3f2607(0x437)](_0x1e9078);}['getRoom'](_0x326057){const _0x4bc543=_0x1f5a54;return this['_roomMembers'][_0x4bc543(0x393)](_0x326057);}['getMember'](_0x3cb698,_0x455ed3){const _0x30518f=_0x1f5a54,_0x6f43b=this[_0x30518f(0x210)][_0x30518f(0x393)](_0x3cb698);if(_0x6f43b)return _0x6f43b['getMember'](_0x455ed3);}[_0x1f5a54(0x420)](_0x2387d5){const _0x4f17d3=_0x1f5a54,_0x489c7c=this[_0x4f17d3(0x210)][_0x4f17d3(0x393)](_0x2387d5);_0x489c7c&&(_0x489c7c['dispose'](),this[_0x4f17d3(0x210)][_0x4f17d3(0x3a5)](_0x2387d5));}['dispose'](){const _0x2dfd01=_0x1f5a54;this[_0x2dfd01(0x210)]['forEach'](_0x5de16e=>_0x5de16e[_0x2dfd01(0x26e)]()),this[_0x2dfd01(0x210)]['clear']();}};ne=pn([Kt(0x0,_0x55bd21),Kt(0x1,_0x61a763(_0x49718f))],ne);class In extends _0x462626{constructor(){const _0x36ec65=_0x1f5a54;super(...arguments),l(this,_0x36ec65(0x18e),new Map());}[_0x1f5a54(0x26e)](){const _0x1fc5d8=_0x1f5a54;this[_0x1fc5d8(0x18e)][_0x1fc5d8(0x2f2)]();}[_0x1f5a54(0x30f)](_0xe590fd){const _0x122578=_0x1f5a54;this[_0x122578(0x18e)][_0x122578(0x22e)](_0xe590fd[_0x122578(0x2f0)],_0xe590fd);}[_0x1f5a54(0x437)](_0x14bc2f){this['_members']['delete'](_0x14bc2f);}[_0x1f5a54(0x29d)](_0x4261de){const _0x317bcd=_0x1f5a54;return this[_0x317bcd(0x18e)]['get'](_0x4261de);}}function En(_0x4fc726){const _0x3332a5=_0x1f5a54;var _0x50c162,_0x4700da,_0x213773,_0x2efe72;const _0x35380e=_0x4fc726[_0x3332a5(0x2a5)],_0x335417=JSON['parse'](_0x35380e);switch(_0x335417[_0x3332a5(0x3a8)]){case I[_0x3332a5(0x34b)]:case I['HELLO']:{const _0x239f61=_0x335417[_0x3332a5(0x1a4)];return{..._0x335417,'data':_0x239f61,'cmd':_0x335417['cmd']};}case I[_0x3332a5(0x1cc)]:{const _0x3957df=_0x335417[_0x3332a5(0x206)];return{..._0x335417,'data':_0x3957df,'cmd':_0x335417[_0x3332a5(0x3a8)]};}case I[_0x3332a5(0x46a)]:{const _0x5bb4c2=_0x335417[_0x3332a5(0x2dd)];switch(_0x5bb4c2['eventID']){case _0x505428[_0x3332a5(0x28a)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x50c162=_0x5bb4c2['permissionRejEvent'])==null?void 0x0:_0x50c162['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x27e)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x4700da=_0x5bb4c2[_0x3332a5(0x398)])==null?void 0x0:_0x4700da['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['NEW_CHANGESETS']:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x213773=_0x5bb4c2['newCsEvent'])==null?void 0x0:_0x213773['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x389)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x2efe72=_0x5bb4c2[_0x3332a5(0x27b)])==null?void 0x0:_0x2efe72['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['UPDATE_CURSOR']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x3a1)]},'cmd':_0x335417['cmd']};case _0x505428[_0x3332a5(0x346)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['joinEvent']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['USERS_LEAVE']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x221)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x1b9)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['liveShareNewHost']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x1df)]:case _0x505428[_0x3332a5(0x3e6)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['liveShareOperation']},'cmd':_0x335417['cmd']};case _0x505428[_0x3332a5(0x259)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x350)]},'cmd':_0x335417['cmd']};case _0x505428['MSG_FOR_ERROR']:return{..._0x335417,'data':_0x5bb4c2,'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x43c)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x45e)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['UPDATE_PERMISSION_OBJ']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x333)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['SHOULD_CLOSE_CONN']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['shouldCloseConn']},'cmd':_0x335417[_0x3332a5(0x3a8)]};default:return _0x335417;}}default:return _0x335417;}}function Cn(_0x27df3b){const _0x3a4bc8=_0x1f5a54;switch(_0x27df3b[_0x3a4bc8(0x3a8)]){case I[_0x3a4bc8(0x34b)]:case I['HELLO']:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)]});case I['INGEST']:{let _0x362335;switch(_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2cf)]){case _0x505428[_0x3a4bc8(0x412)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x412)],'updateCursorEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x42b)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x42b)],'leaveEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x346)]:{_0x362335={'eventID':_0x505428['USERS_ENTER'],'joinEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428['LIVESHARE_NEW_HOST']:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x1b9)],'liveShareNewHost':_0x27df3b['data'][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x3e6)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x3e6)],'liveShareOperation':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x259)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x259)],'liveShareTerminate':_0x27df3b['data'][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x20b)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x20b)],'liveShareRequestHost':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428['LIVESHARE_FETCH_OPERATIONS']:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x1df)]};break;}default:_0x362335={'eventID':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2cf)]};}return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)],'collaMsg':_0x362335});}case I[_0x3a4bc8(0x1cc)]:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b['cmd'],'routeKey':_0x27df3b['routeKey'],'joinReq':_0x27df3b[_0x3a4bc8(0x2a5)]});case I[_0x3a4bc8(0x422)]:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)],'leaveReq':_0x27df3b[_0x3a4bc8(0x2a5)]});default:throw new Error(_0x3a4bc8(0x3b5));}}var bn=Object['defineProperty'],Tn=Object[_0x1f5a54(0x3cc)],Rn=(_0x5f1e05,_0x1d7661,_0x5643c8,_0x50c3b4)=>{const _0x3bfa2a=_0x1f5a54;for(var _0x451673=_0x50c3b4>0x1?void 0x0:_0x50c3b4?Tn(_0x1d7661,_0x5643c8):_0x1d7661,_0x353b30=_0x5f1e05[_0x3bfa2a(0x2d6)]-0x1,_0x399abd;_0x353b30>=0x0;_0x353b30--)(_0x399abd=_0x5f1e05[_0x353b30])&&(_0x451673=(_0x50c3b4?_0x399abd(_0x1d7661,_0x5643c8,_0x451673):_0x399abd(_0x451673))||_0x451673);return _0x50c3b4&&_0x451673&&bn(_0x1d7661,_0x5643c8,_0x451673),_0x451673;},Ee=(_0xe8b9e0,_0x1ffe14)=>(_0x49946e,_0x2034ca)=>_0x1ffe14(_0x49946e,_0x2034ca,_0xe8b9e0);const Os=_0x2b1b05(_0x1f5a54(0x281));function On(_0x2d876a,_0x425d14,_0x40e745){const _0x498f94=_0x1f5a54;return _0x2d876a+'/'+_0x425d14+_0x498f94(0x35e)+_0x40e745+_0x498f94(0x342);}let gt=class{constructor(_0x49207e,_0x3f94a7,_0x5a46e7,_0x48c5bb,_0x11f464){const _0xdd7ded=_0x1f5a54;this[_0xdd7ded(0x36c)]=_0x49207e,this['_ws']=_0x3f94a7,this[_0xdd7ded(0x20c)]=_0x5a46e7,this[_0xdd7ded(0x308)]=_0x48c5bb,this[_0xdd7ded(0x156)]=_0x11f464;}[_0x1f5a54(0x198)](_0x265085){const _0x1d3a68=_0x1f5a54,_0x2fe162=this[_0x1d3a68(0x195)]['createSocket'](_0x265085);if(!_0x2fe162)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0xcb56d4=new _0x1382fe(),_0x13532e=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162['close$'][_0x1d3a68(0x2d9)](_0x4abc97=>_0x13532e[_0x1d3a68(0x39b)](_0x4abc97)))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x13532e[_0x1d3a68(0x424)]()));const _0x1f10d8=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162[_0x1d3a68(0x288)]['subscribe'](_0x394c39=>_0x1f10d8[_0x1d3a68(0x39b)](_0x394c39)))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x1f10d8[_0x1d3a68(0x424)]()));const _0x5cd29c=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162[_0x1d3a68(0x3bd)][_0x1d3a68(0x2d9)](_0x23d4f3=>{const _0x118666=_0x1d3a68,_0x7239e5=En(_0x23d4f3);_0x5cd29c[_0x118666(0x39b)](_0x7239e5);}))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x5cd29c[_0x1d3a68(0x424)]()));const _0x59e8bf=()=>{const _0x4c245d=_0x1d3a68;_0x1f10d8[_0x4c245d(0x39b)](new Event(_0x4c245d(0x33c))),_0x13532e['next'](new CloseEvent(_0x4c245d(0x33c))),_0x3bdd78[_0x4c245d(0x1d2)]();},_0x3bdd78={'memberID':'','close$':_0x13532e[_0x1d3a68(0x26b)](),'error$':_0x1f10d8['asObservable'](),'open$':_0x2fe162['open$'],'message$':_0x5cd29c['asObservable'](),'send':_0x4c973f=>{const _0x52837a=_0x1d3a68;if(_0x4c973f[_0x52837a(0x3a8)]===I[_0x52837a(0x358)]){if(_0x4c973f[_0x52837a(0x2a5)][_0x52837a(0x2cf)]===_0x505428[_0x52837a(0x2d8)]){this[_0x52837a(0x359)](_0x3bdd78,_0x4c973f['data'])[_0x52837a(0x3c4)](_0x8291d3=>{const _0x3e0d99=_0x52837a;this[_0x3e0d99(0x308)][_0x3e0d99(0x419)](_0x8291d3),_0x59e8bf();});return;}if(_0x4c973f[_0x52837a(0x2a5)][_0x52837a(0x2cf)]===_0x505428[_0x52837a(0x1da)]){const _0x449840=_0x4c973f['data'];this[_0x52837a(0x289)](_0x449840)[_0x52837a(0x2e0)](_0x2ca38e=>{const _0x35e143=_0x52837a;_0x5cd29c['next']({'cmd':I[_0x35e143(0x46a)],'code':yt['OK'],'routeKey':_0x449840[_0x35e143(0x2a5)]['unitID'],'routeType':'','data':{'eventID':_0x505428[_0x35e143(0x421)],'data':{'changesets':_0x2ca38e}}});})[_0x52837a(0x3c4)](_0x384206=>{const _0x3d3e50=_0x52837a;this[_0x3d3e50(0x308)][_0x3d3e50(0x419)](_0x384206),_0x59e8bf();});return;}}_0x2fe162['send'](Cn(_0x4c973f));},'close':()=>{const _0x18aa92=_0x1d3a68;_0x2fe162[_0x18aa92(0x1d2)](),_0xcb56d4[_0x18aa92(0x26e)]();}};return _0x3bdd78;}async[_0x1f5a54(0x359)](_0x12f6b3,_0x507dc7){const _0xbfb616=_0x1f5a54;var _0x173a41;const {unitType:_0x41ae9d,unitID:_0x4ddf15,changeset:_0xb75bef}=_0x507dc7[_0xbfb616(0x2a5)],_0x4fedb1={'unitID':_0x4ddf15,'memberID':_0x12f6b3[_0xbfb616(0x2f0)],'type':_0x41ae9d,'changeset':_0x29a67f(_0xb75bef)},_0x52b715=On((_0x173a41=this['_configService'][_0xbfb616(0x19e)](dn))!=null?_0x173a41:fn,_0x41ae9d,_0x4ddf15);try{await this[_0xbfb616(0x36c)][_0xbfb616(0x1bf)](_0x52b715,{'body':_0x4fedb1});}catch(_0x19ca7f){throw this['_logService']['error'](_0xbfb616(0x41f),_0xbfb616(0x160)),_0x19ca7f;}}async['_fetchMissChangesets'](_0x1c9fae){const _0x2e1946=_0x1f5a54,{unitID:_0x5bf083,from:_0x23c2ac,to:_0x6f43b0,unitType:_0xa0884c}=_0x1c9fae[_0x2e1946(0x2a5)];return(await this[_0x2e1946(0x156)][_0x2e1946(0x355)]({'metadata':void 0x0},{'unitID':_0x5bf083,'type':_0xa0884c,'from':_0x23c2ac,'to':_0x6f43b0}))[_0x2e1946(0x262)];}};gt=Rn([Ee(0x0,_0x61a763(_0x11da14)),Ee(0x1,_0x61a763(_0x2067e4)),Ee(0x2,_0x43c997),Ee(0x3,_0x3e33de),Ee(0x4,_0x49d5c1)],gt);class Ds{constructor(){const _0x5724f1=_0x1f5a54;l(this,_0x5724f1(0x394),new _0x295019()),l(this,_0x5724f1(0x39f),this[_0x5724f1(0x394)][_0x5724f1(0x26b)]());}['onCommentUpdate'](_0x10ff21){const _0x3e00b0=_0x1f5a54;this[_0x3e00b0(0x394)][_0x3e00b0(0x39b)](_0x10ff21);}}var Dn=Object['defineProperty'],Pn=Object['getOwnPropertyDescriptor'],Ps=(_0xc2a8c0,_0x527787,_0x20561f,_0x342e6f)=>{for(var _0x467745=_0x342e6f>0x1?void 0x0:_0x342e6f?Pn(_0x527787,_0x20561f):_0x527787,_0x520482=_0xc2a8c0['length']-0x1,_0x11752f;_0x520482>=0x0;_0x520482--)(_0x11752f=_0xc2a8c0[_0x520482])&&(_0x467745=(_0x342e6f?_0x11752f(_0x527787,_0x20561f,_0x467745):_0x11752f(_0x467745))||_0x467745);return _0x342e6f&&_0x467745&&Dn(_0x527787,_0x20561f,_0x467745),_0x467745;},M=(_0x38b4f0,_0x3ff971)=>(_0x1a439d,_0x529bf5)=>_0x3ff971(_0x1a439d,_0x529bf5,_0x38b4f0),de=(_0x1087e8=>(_0x1087e8[_0x1087e8[_0x1f5a54(0x429)]=0x0]='IDLE',_0x1087e8[_0x1087e8[_0x1f5a54(0x171)]=0x1]=_0x1f5a54(0x171),_0x1087e8[_0x1087e8[_0x1f5a54(0x243)]=0x2]='OFFLINE',_0x1087e8[_0x1087e8[_0x1f5a54(0x405)]=0x3]='ONLINE',_0x1087e8))(de||{});let St=class extends _0x5915f1{constructor(_0x47e5d4,_0x4f24cc,_0x34157d,_0x167df3,_0x31104a,_0x32c346,_0x4a08c0,_0x1da6be,_0x4358fa){const _0x523b47=_0x1f5a54;super(),l(this,_0x523b47(0x427),new _0x24a55e(0x0)),l(this,'sessionStatus$',this[_0x523b47(0x427)][_0x523b47(0x26b)]()),l(this,_0x523b47(0x1f8),new _0x295019()),l(this,_0x523b47(0x403),this[_0x523b47(0x1f8)][_0x523b47(0x26b)]()),l(this,_0x523b47(0x2a4)),l(this,_0x523b47(0x2a1)),l(this,_0x523b47(0x268)),(this[_0x523b47(0x373)]=_0x47e5d4,this[_0x523b47(0x308)]=_0x34157d,this[_0x523b47(0x2c0)]=_0x167df3,this[_0x523b47(0x44b)]=_0x31104a,this[_0x523b47(0x20c)]=_0x32c346,this[_0x523b47(0x3a6)]=_0x4a08c0,this['_memberService']=_0x1da6be,this[_0x523b47(0x28d)]=_0x4358fa,_0x4f24cc['pipe'](_0x31e4a6(this[_0x523b47(0x3cd)]))[_0x523b47(0x2d9)](_0x26be35=>{const _0x2cafdc=_0x523b47;var _0x1ee821;typeof _0x26be35>'u'||(this['_socket']=_0x26be35,_0x26be35?(this[_0x2cafdc(0x408)](_0x26be35),this[_0x2cafdc(0x2a1)]=this[_0x2cafdc(0x2a4)][_0x2cafdc(0x3bd)]['subscribe'](_0x24cb35=>{const _0x11f6a1=_0x2cafdc;_0x24cb35['routeKey']===this[_0x11f6a1(0x373)]&&this[_0x11f6a1(0x1a2)](_0x24cb35);})):(this[_0x2cafdc(0x427)][_0x2cafdc(0x39b)](0x2),(_0x1ee821=this[_0x2cafdc(0x2a1)])==null||_0x1ee821[_0x2cafdc(0x3d0)](),this[_0x2cafdc(0x2a1)]=null));}),this[_0x523b47(0x194)](this[_0x523b47(0x2c0)]['registerOnClose'](()=>{const _0x296f9b=_0x523b47;var _0x3e2c7e;(_0x3e2c7e=this[_0x296f9b(0x2a4)])==null||_0x3e2c7e[_0x296f9b(0x1b5)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0xb8900a=_0x1f5a54;return this['_sessionStatus$'][_0xb8900a(0x321)]();}['getMemberID'](){const _0x5ee9e0=_0x1f5a54;var _0x1867be,_0x22f1ca;return(_0x22f1ca=(_0x1867be=this[_0x5ee9e0(0x2a4)])==null?void 0x0:_0x1867be[_0x5ee9e0(0x2f0)])!=null?_0x22f1ca:null;}[_0x1f5a54(0x26e)](){const _0x43ef01=_0x1f5a54;super[_0x43ef01(0x26e)](),this[_0x43ef01(0x3cd)][_0x43ef01(0x39b)](),this[_0x43ef01(0x3cd)][_0x43ef01(0x424)]();}['close'](){const _0x25cc1b=_0x1f5a54;var _0x5e437a,_0x469e0c;(_0x5e437a=this[_0x25cc1b(0x2a4)])==null||_0x5e437a[_0x25cc1b(0x1b5)]({'cmd':I[_0x25cc1b(0x422)],'data':{'roomID':this['_unitID']}}),this['_event$'][_0x25cc1b(0x424)](),this[_0x25cc1b(0x427)]['complete'](),(_0x469e0c=this[_0x25cc1b(0x2a4)])==null||_0x469e0c[_0x25cc1b(0x1d2)](),this[_0x25cc1b(0x26e)]();}[_0x1f5a54(0x1a2)](_0x3f53cc){const _0xba41fc=_0x1f5a54;_0x3f53cc[_0xba41fc(0x3a8)]===I['JOIN']?this[_0xba41fc(0x3b1)](_0x3f53cc):_0x3f53cc[_0xba41fc(0x3a8)]===I['RECV']&&this[_0xba41fc(0x1af)](_0x3f53cc);}['_joinRoom'](_0x14881b){const _0x1ce8d0=_0x1f5a54;this[_0x1ce8d0(0x427)][_0x1ce8d0(0x39b)](0x1),_0x14881b['send']({'cmd':I['JOIN'],'routeKey':this[_0x1ce8d0(0x373)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1ce8d0(0x373)]}]}});}[_0x1f5a54(0x3b1)](_0x192474){const _0x2eda4a=_0x1f5a54;var _0x5eb537;if(_0x192474[_0x2eda4a(0x275)]===yt[_0x2eda4a(0x378)]){this[_0x2eda4a(0x44b)][_0x2eda4a(0x43a)]({'type':_0x454b23[_0x2eda4a(0x17f)],'content':this[_0x2eda4a(0x3a6)]['t'](_0x2eda4a(0x182))}),this[_0x2eda4a(0x427)][_0x2eda4a(0x39b)](0x2);return;}this['_sessionStatus$'][_0x2eda4a(0x39b)](0x3);const _0x48cf70=(_0x5eb537=_0x192474[_0x2eda4a(0x2a5)][_0x2eda4a(0x220)][this[_0x2eda4a(0x373)]])==null?void 0x0:_0x5eb537[_0x2eda4a(0x3da)];_0x48cf70&&_0x48cf70[_0x2eda4a(0x37a)](_0x5b1948=>this[_0x2eda4a(0x2a0)][_0x2eda4a(0x30f)](this['_unitID'],_0x5b1948));}[_0x1f5a54(0x1af)](_0x2fe770){const _0x2cd16d=_0x1f5a54;try{const _0x22d949=_0x2fe770[_0x2cd16d(0x2a5)];switch(_0x22d949[_0x2cd16d(0x2cf)]){case _0x505428['USERS_ENTER']:this[_0x2cd16d(0x46d)](_0x22d949),this[_0x2cd16d(0x1f8)][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428['USERS_LEAVE']:this[_0x2cd16d(0x47b)](_0x22d949),this['_event$']['next'](_0x22d949);break;case _0x505428[_0x2cd16d(0x27e)]:this[_0x2cd16d(0x3ac)](),this['_event$'][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428[_0x2cd16d(0x237)]:this['_logService']['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x2cd16d(0x41c)](_0x22d949)),this['_event$'][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428[_0x2cd16d(0x43c)]:this[_0x2cd16d(0x28d)][_0x2cd16d(0x435)](_0x22d949[_0x2cd16d(0x2a5)]),this[_0x2cd16d(0x1f8)][_0x2cd16d(0x39b)](_0x22d949);break;default:this[_0x2cd16d(0x1f8)]['next'](_0x22d949);}}catch(_0xff87a3){this[_0x2cd16d(0x308)]['error'](_0xff87a3,_0x2fe770);}}[_0x1f5a54(0x46d)](_0x359ced){const _0x230c3f=_0x1f5a54;this[_0x230c3f(0x2a0)][_0x230c3f(0x30f)](this[_0x230c3f(0x373)],_0x359ced['data']);}[_0x1f5a54(0x47b)](_0x540050){const _0x9a7b77=_0x1f5a54;this[_0x9a7b77(0x2a0)][_0x9a7b77(0x437)](this['_unitID'],_0x540050[_0x9a7b77(0x2a5)][_0x9a7b77(0x2f0)]);}async['send'](_0x31ec56,_0x28eced){const _0xa09546=_0x1f5a54;if(this[_0xa09546(0x2a3)]!==0x3||!this[_0xa09546(0x2a4)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x31ec56[_0xa09546(0x2cf)]===_0x505428[_0xa09546(0x2f5)]&&this[_0xa09546(0x1cf)](),this[_0xa09546(0x2a4)][_0xa09546(0x1b5)]({'cmd':I['INGEST'],'routeKey':_0x28eced,'routeType':'','data':_0x31ec56});}catch(_0xc467ad){this[_0xa09546(0x308)][_0xa09546(0x419)](_0xc467ad);}}[_0x1f5a54(0x1cf)](){const _0x2f64f3=_0x1f5a54;var _0x33db2f;this['_collaborationTimeoutTimer']=window[_0x2f64f3(0x363)](()=>{const _0x1d32f0=_0x2f64f3;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x1d32f0(0x43a)]({'type':_0x454b23[_0x1d32f0(0x286)],'content':this[_0x1d32f0(0x3a6)]['t'](_0x1d32f0(0x2b7))});},(_0x33db2f=this[_0x2f64f3(0x20c)][_0x2f64f3(0x19e)](bs))!=null?_0x33db2f:Ts);}[_0x1f5a54(0x3ac)](){const _0x2b732f=_0x1f5a54;this[_0x2b732f(0x268)]&&(clearTimeout(this[_0x2b732f(0x268)]),this[_0x2b732f(0x268)]=null);}};St=Ps([M(0x2,_0x3e33de),M(0x3,_0x28b08e),M(0x4,_0x58c973),M(0x5,_0x43c997),M(0x6,_0x61a763(_0x4eec6f)),M(0x7,_0x61a763(ne)),M(0x8,_0x61a763(Ds))],St);let ge=class extends _0x462626{constructor(_0x12114e,_0x10527a,_0x42bc92,_0x56f000,_0x4cd76b,_0x45e95b){const _0x5c2eb3=_0x1f5a54;super(),l(this,_0x5c2eb3(0x24d),new _0x24a55e(void 0x0)),l(this,'_sessions',new Map()),l(this,_0x5c2eb3(0x465),new _0x24a55e(0x0)),l(this,_0x5c2eb3(0x41a),this[_0x5c2eb3(0x465)][_0x5c2eb3(0x26b)]()),l(this,_0x5c2eb3(0x1d9),!0x1),l(this,'_sendHeartbeatTimer'),l(this,_0x5c2eb3(0x3c7)),l(this,_0x5c2eb3(0x45a)),l(this,_0x5c2eb3(0x301),0x0),(this[_0x5c2eb3(0x3db)]=_0x12114e,this[_0x5c2eb3(0x3a6)]=_0x10527a,this['_messageService']=_0x42bc92,this[_0x5c2eb3(0x308)]=_0x56f000,this[_0x5c2eb3(0x20c)]=_0x4cd76b,this['_socketService']=_0x45e95b);}get['_socket'](){const _0x315f9e=_0x1f5a54;return this[_0x315f9e(0x24d)][_0x315f9e(0x321)]();}[_0x1f5a54(0x26e)](){const _0x351cdd=_0x1f5a54;super[_0x351cdd(0x26e)](),this[_0x351cdd(0x3cb)][_0x351cdd(0x37a)](_0x425257=>_0x425257[_0x351cdd(0x26e)]()),this[_0x351cdd(0x3cb)][_0x351cdd(0x2f2)](),this['_status$']['complete']();}async['requireSession'](_0x1746f7){const _0x300701=_0x1f5a54;if(this[_0x300701(0x3cb)][_0x300701(0x1d8)](_0x1746f7))return this['_sessions'][_0x300701(0x393)](_0x1746f7);this['_tryEnsureSocket']();const _0x293062=this[_0x300701(0x3db)][_0x300701(0x145)](St,_0x1746f7,this[_0x300701(0x24d)]['asObservable']());return this[_0x300701(0x3cb)][_0x300701(0x22e)](_0x1746f7,_0x293062),_0x293062;}[_0x1f5a54(0x257)](_0x1606f1){const _0xea1dcb=_0x1f5a54;var _0x23b917;const _0x3f7972=this[_0xea1dcb(0x3cb)][_0xea1dcb(0x393)](_0x1606f1);_0x3f7972&&(this[_0xea1dcb(0x3cb)]['delete'](_0x1606f1),_0x3f7972[_0xea1dcb(0x1d2)]()),this[_0xea1dcb(0x3cb)][_0xea1dcb(0x3d8)]||(_0x23b917=this['_socket'])==null||_0x23b917[_0xea1dcb(0x1d2)]();}[_0x1f5a54(0x3aa)](){const _0x2874ea=_0x1f5a54;var _0x55ee12;const _0x19bc13=(_0x55ee12=this[_0x2874ea(0x20c)][_0x2874ea(0x19e)](sn))!=null?_0x55ee12:nn;return this[_0x2874ea(0x33a)][_0x2874ea(0x198)](_0x19bc13);}[_0x1f5a54(0x217)](){const _0x3009cf=_0x1f5a54;try{const _0x4857ef=this[_0x3009cf(0x3aa)]();if(_0x4857ef){const _0x44fb55=_0x4857ef[_0x3009cf(0x1b5)];_0x4857ef[_0x3009cf(0x1b5)]=_0x33b651=>(this[_0x3009cf(0x222)](),_0x44fb55[_0x3009cf(0x1bb)](_0x4857ef,[_0x33b651])),_0x4857ef[_0x3009cf(0x3bd)][_0x3009cf(0x2d9)](_0x5e3cc3=>this[_0x3009cf(0x21e)](_0x4857ef,_0x5e3cc3)),_0x4857ef[_0x3009cf(0x288)]['pipe'](_0x4747bd(0x1))[_0x3009cf(0x2d9)](_0x2abeda=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x2abeda)),_0x4857ef['open$'][_0x3009cf(0x180)](_0x4747bd(0x1))[_0x3009cf(0x2d9)](()=>{const _0x843f62=_0x3009cf;this[_0x843f62(0x2fc)](_0x4857ef);}),_0x4857ef[_0x3009cf(0x167)][_0x3009cf(0x180)](_0x4747bd(0x1))[_0x3009cf(0x2d9)](_0x5b621e=>{const _0xaa0b72=_0x3009cf;this['_logService'][_0xaa0b72(0x319)](_0xaa0b72(0x364),'socket\x20close',_0x5b621e),this[_0xaa0b72(0x379)]();});}}catch(_0x2c3960){this['_logService']['error'](_0x2c3960),this[_0x3009cf(0x379)]();}}['_onConnectionOpen'](_0xf5eaa5){const _0x175dfa=_0x1f5a54;this[_0x175dfa(0x308)][_0x175dfa(0x319)](_0x175dfa(0x364),_0x175dfa(0x460)),_0xf5eaa5['send']({'cmd':I[_0x175dfa(0x230)]}),this[_0x175dfa(0x222)]();}[_0x1f5a54(0x379)](){const _0x2f3849=_0x1f5a54;var _0xf64025;this[_0x2f3849(0x465)][_0x2f3849(0x39b)](0x2),this[_0x2f3849(0x24d)][_0x2f3849(0x39b)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x2f3849(0x301)]<((_0xf64025=this[_0x2f3849(0x20c)][_0x2f3849(0x19e)](hn))!=null?_0xf64025:ln)?(this[_0x2f3849(0x3ce)](this[_0x2f3849(0x301)]),this[_0x2f3849(0x301)]+=0x1):this[_0x2f3849(0x44b)]['show']({'type':_0x454b23[_0x2f3849(0x286)],'content':this['_localeService']['t']('session.connection-failed')});}[_0x1f5a54(0x3ce)](_0x52f182){const _0x14b17e=_0x1f5a54;var _0x477612;const _0x249c61=((_0x477612=this[_0x14b17e(0x20c)][_0x14b17e(0x19e)](an))!=null?_0x477612:cn)*0x2**_0x52f182;this[_0x14b17e(0x44b)]['show']({'type':_0x454b23[_0x14b17e(0x17f)],'content':this[_0x14b17e(0x3a6)]['t'](_0x14b17e(0x274))}),this[_0x14b17e(0x45a)]=setTimeout(()=>{const _0x3516ed=_0x14b17e;this['_tryEnsureSocket'](),clearTimeout(this[_0x3516ed(0x45a)]),this[_0x3516ed(0x45a)]=null;},_0x249c61);}['_rescheduleHeartbeatEvent'](){const _0x29c65d=_0x1f5a54;var _0x549150;this[_0x29c65d(0x44c)](),this[_0x29c65d(0x238)]=setTimeout(()=>this[_0x29c65d(0x250)](),(_0x549150=this[_0x29c65d(0x20c)]['getConfig'](rn))!=null?_0x549150:on);}[_0x1f5a54(0x250)](){const _0x495b2d=_0x1f5a54;this[_0x495b2d(0x2a4)][_0x495b2d(0x1b5)]({'cmd':I[_0x495b2d(0x34b)]}),this['_waitForHeartbeatResponse']();}[_0x1f5a54(0x24b)](){const _0x196c59=_0x1f5a54;var _0x4a5c24;this[_0x196c59(0x3c7)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x4a5c24=this[_0x196c59(0x20c)][_0x196c59(0x19e)](bs))!=null?_0x4a5c24:Ts);}[_0x1f5a54(0x21e)](_0x35fee2,_0x3d692d){const _0x123e59=_0x1f5a54,{cmd:_0x46082c}=_0x3d692d;_0x46082c===I[_0x123e59(0x230)]&&!this['_socketReady']&&(_0x35fee2[_0x123e59(0x2f0)]=_0x3d692d[_0x123e59(0x2a5)][_0x123e59(0x2f0)],this[_0x123e59(0x24d)][_0x123e59(0x39b)](_0x35fee2),this[_0x123e59(0x465)]['next'](0x3),this[_0x123e59(0x1d9)]=!0x0),_0x46082c===I['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x123e59(0x222)]();}['_clearHeartbeatTimer'](){const _0x1aa2fb=_0x1f5a54;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1aa2fb(0x238)]),this[_0x1aa2fb(0x238)]=null);}[_0x1f5a54(0x2cb)](){const _0x20f5e7=_0x1f5a54;this[_0x20f5e7(0x3c7)]!=null&&(clearTimeout(this[_0x20f5e7(0x3c7)]),this[_0x20f5e7(0x3c7)]=null);}};ge=Ps([M(0x0,_0x61a763(_0x2e9f94)),M(0x1,_0x61a763(_0x4eec6f)),M(0x2,_0x58c973),M(0x3,_0x3e33de),M(0x4,_0x43c997),M(0x5,Os)],ge);var wn=Object[_0x1f5a54(0x29f)],Nn=Object[_0x1f5a54(0x3cc)],Mn=(_0xbfb199,_0x34b6f1,_0x2f7445,_0x2f0f3d)=>{const _0x21e0a3=_0x1f5a54;for(var _0x24f703=_0x2f0f3d>0x1?void 0x0:_0x2f0f3d?Nn(_0x34b6f1,_0x2f7445):_0x34b6f1,_0xce08f2=_0xbfb199[_0x21e0a3(0x2d6)]-0x1,_0x135fdd;_0xce08f2>=0x0;_0xce08f2--)(_0x135fdd=_0xbfb199[_0xce08f2])&&(_0x24f703=(_0x2f0f3d?_0x135fdd(_0x34b6f1,_0x2f7445,_0x24f703):_0x135fdd(_0x24f703))||_0x24f703);return _0x2f0f3d&&_0x24f703&&wn(_0x34b6f1,_0x2f7445,_0x24f703),_0x24f703;},Ce=(_0x5b1f73,_0x152375)=>(_0x56a3e7,_0x561c62)=>_0x152375(_0x56a3e7,_0x561c62,_0x5b1f73);let D=class extends _0x462626{constructor(_0x28cbee,_0x5d30b8,_0x2bb526,_0x221fd7,_0x2699db){const _0x2f6d87=_0x1f5a54;super(),l(this,_0x2f6d87(0x291),new Map()),l(this,_0x2f6d87(0x2f7),new Map()),l(this,'_disabled',!0x1),(this[_0x2f6d87(0x20c)]=_0x28cbee,this['_localStorageService']=_0x5d30b8,this[_0x2f6d87(0x2c0)]=_0x2bb526,this[_0x2f6d87(0x3a6)]=_0x221fd7,this[_0x2f6d87(0x459)]=_0x2699db,this[_0x2f6d87(0x202)]());}[_0x1f5a54(0x3fa)](){const _0x346008=_0x1f5a54;this[_0x346008(0x31d)]=!0x0;}['enableLocalCache'](){const _0x40882c=_0x1f5a54;this[_0x40882c(0x31d)]=!0x1;}[_0x1f5a54(0x26e)](){const _0x324062=_0x1f5a54;this['exhaustSavingTask']()['then'](()=>super[_0x324062(0x26e)]());}async[_0x1f5a54(0x473)](_0x52fe2d){const _0x5f2432=_0x1f5a54;return this['_disabled']?null:this[_0x5f2432(0x47a)][_0x5f2432(0x1fd)](Xt(_0x52fe2d));}async[_0x1f5a54(0x1d0)](_0x12abec,_0xdb06b1){const _0x5b36fe=_0x1f5a54;return!!this['_localStorageService'][_0x5b36fe(0x14e)](_0x12abec,_0xdb06b1);}[_0x1f5a54(0x16f)](_0x3fd7e5,_0x37f784,_0x1d6ecc,_0x54c41d){const _0x2fc33b=_0x1f5a54,_0x3713f9=this[_0x2fc33b(0x459)][_0x2fc33b(0x236)](_0x3fd7e5);this[_0x2fc33b(0x291)][_0x2fc33b(0x22e)](_0x3fd7e5,{'unitID':_0x3fd7e5,'type':_0x37f784,'awaitingChangeset':_0x1d6ecc,'mutations':_0x54c41d,'rev':_0x3713f9}),this[_0x2fc33b(0x2f7)][_0x2fc33b(0x1d8)](_0x3fd7e5)||this[_0x2fc33b(0x255)](_0x3fd7e5);}[_0x1f5a54(0x255)](_0x7096bb){const _0x2a3fcb=_0x1f5a54,_0x28954b=this[_0x2a3fcb(0x152)]();_0x28954b===0x0?this['_saveCache'](_0x7096bb):this[_0x2a3fcb(0x2f7)][_0x2a3fcb(0x22e)](_0x7096bb,setTimeout(()=>this[_0x2a3fcb(0x32e)](_0x7096bb),_0x28954b));}[_0x1f5a54(0x152)](){const _0x50011b=_0x1f5a54;var _0x4291c9;return(_0x4291c9=this[_0x50011b(0x20c)][_0x50011b(0x19e)](_n))!=null?_0x4291c9:un;}[_0x1f5a54(0x32e)](_0x1a2b5a){const _0x1f811c=_0x1f5a54,_0x2e76cf=this[_0x1f811c(0x2f7)][_0x1f811c(0x393)](_0x1a2b5a);return _0x2e76cf!==void 0x0&&window[_0x1f811c(0x354)](_0x2e76cf),this['_localStorageService'][_0x1f811c(0x14e)](Xt(_0x1a2b5a),this['_cachedData'][_0x1f811c(0x393)](_0x1a2b5a))['then'](()=>this[_0x1f811c(0x2f7)][_0x1f811c(0x3a5)](_0x1a2b5a));}async[_0x1f5a54(0x270)](){const _0xc1148b=_0x1f5a54,_0x183c20=[];this[_0xc1148b(0x2f7)][_0xc1148b(0x37a)]((_0x2bf21a,_0x5bba2f)=>{const _0xec6d0d=_0xc1148b;window['clearTimeout'](_0x2bf21a),_0x183c20[_0xec6d0d(0x310)](this[_0xec6d0d(0x32e)](_0x5bba2f)[_0xec6d0d(0x2e0)](()=>{const _0x8526b1=_0xec6d0d;this[_0x8526b1(0x2f7)][_0x8526b1(0x3a5)](_0x5bba2f);}));}),await Promise[_0xc1148b(0x30c)](_0x183c20);}['_setupBeforeClosingHandler'](){const _0x146ded=_0x1f5a54;this[_0x146ded(0x194)](this[_0x146ded(0x2c0)][_0x146ded(0x353)](()=>{const _0x34a521=_0x146ded;if(this[_0x34a521(0x2f7)][_0x34a521(0x3d8)])return this[_0x34a521(0x3a6)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Mn([Ce(0x0,_0x43c997),Ce(0x1,_0x38f292),Ce(0x2,_0x28b08e),Ce(0x3,_0x61a763(_0x4eec6f)),Ce(0x4,_0x61a763(_0x2fc807))],D);function Xt(_0x5de334){const _0x44c601=_0x1f5a54;return _0x44c601(0x19d)+_0x5de334;}const et=_0x2b1b05(_0x1f5a54(0x254));var ws=(_0x42a66d=>(_0x42a66d[_0x42a66d[_0x1f5a54(0x228)]=0x0]=_0x1f5a54(0x228),_0x42a66d[_0x42a66d['OTHER_CLIENTS_EDITING']=0x1]=_0x1f5a54(0x2ef),_0x42a66d))(ws||{});const Jt=0x7530,qt=_0x1f5a54(0x258);class An extends _0x462626{constructor(){const _0x19b7d3=_0x1f5a54;super(),l(this,'_id',_0x4b796f['generateRandomId']()),l(this,_0x19b7d3(0x16c),new Set()),l(this,_0x19b7d3(0x36d),new Map()),l(this,_0x19b7d3(0x3fc),null),l(this,'_clearOtherTimers',new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x1f5a54(0x26e)](){const _0x32c07c=_0x1f5a54;super[_0x32c07c(0x26e)](),this[_0x32c07c(0x384)][_0x32c07c(0x37a)]((_0x3f4576,_0x328406)=>this[_0x32c07c(0x2b9)](_0x328406)),this[_0x32c07c(0x3fc)]&&window[_0x32c07c(0x162)](this[_0x32c07c(0x3fc)]);}['getUnitStatus$'](_0x53a69b){const _0x2bed72=_0x1f5a54;return this['_ensureSubject'](_0x53a69b)[_0x2bed72(0x180)](_0x4dffca());}[_0x1f5a54(0x35d)](_0x5dfb19){const _0x314501=_0x1f5a54;this[_0x314501(0x16c)][_0x314501(0x3d8)]===0x0&&this[_0x314501(0x326)](),this[_0x314501(0x16c)][_0x314501(0x3c0)](_0x5dfb19),this['_send']({'type':0x0,'memberID':this[_0x314501(0x318)],'unitIDs':[_0x5dfb19],'isForwarded':!0x1});}['disposeUnit'](_0x27e755){const _0x2813ce=_0x1f5a54;this['_selfUnitIDs']['delete'](_0x27e755),this[_0x2813ce(0x16c)]['size']===0x0&&this[_0x2813ce(0x3fc)]&&window['clearInterval'](this[_0x2813ce(0x3fc)]);}[_0x1f5a54(0x3b6)](){const _0x58bd13=_0x1f5a54;this[_0x58bd13(0x194)](_0x5d3cf2(_0x45523d(window,_0x58bd13(0x1d4))[_0x58bd13(0x2d9)](_0x8cf5f8=>{const _0x37f1bb=_0x58bd13;if(_0x8cf5f8[_0x37f1bb(0x3f4)]!==qt||!_0x8cf5f8['newValue'])return;const _0x4f1d45=JSON['parse'](_0x8cf5f8[_0x37f1bb(0x146)]);this[_0x37f1bb(0x402)](_0x4f1d45);}))),window['addEventListener'](_0x58bd13(0x276),()=>this[_0x58bd13(0x27f)]({'type':0x1,'memberID':this[_0x58bd13(0x318)],'unitIDs':Array['from'](this[_0x58bd13(0x16c)])}));}[_0x1f5a54(0x402)](_0x5161f8){const _0x3cdc5f=_0x1f5a54;switch(_0x5161f8['type']){case 0x0:this[_0x3cdc5f(0x1f7)](_0x5161f8);break;case 0x1:this[_0x3cdc5f(0x1c9)](_0x5161f8);break;case 0x2:this[_0x3cdc5f(0x17d)](_0x5161f8);break;}}['_handleJoinEvent'](_0x26eefb){const _0x390f6d=_0x1f5a54,{unitIDs:_0x35d409,memberID:_0xc1912a,isForwarded:_0x319d50}=_0x26eefb;_0x35d409[_0x390f6d(0x37a)](_0x2bbe3a=>{const _0x57e1c8=_0x390f6d;if(!_0x319d50&&this['_unitOnClients'][_0x57e1c8(0x1d8)](_0x2bbe3a)&&this[_0x57e1c8(0x1a9)](_0x2bbe3a)[_0x57e1c8(0x39b)](0x1),!this['_unitOnClients'][_0x57e1c8(0x1d8)](_0x2bbe3a)||!this[_0x57e1c8(0x36d)][_0x57e1c8(0x393)](_0x2bbe3a)[_0x57e1c8(0x1d8)](_0xc1912a)){const _0x364d68=this[_0x57e1c8(0x36d)][_0x57e1c8(0x393)](_0x2bbe3a)||new Set();_0x364d68['add'](_0xc1912a),this['_unitOnClients']['set'](_0x2bbe3a,_0x364d68),this[_0x57e1c8(0x469)](_0xc1912a);}}),_0x319d50||this['_send']({'type':0x0,'memberID':this[_0x390f6d(0x318)],'unitIDs':[...this[_0x390f6d(0x16c)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30fb29){const _0x359969=_0x1f5a54;this[_0x359969(0x2b9)](_0x30fb29);const _0xf3a00a=window[_0x359969(0x363)](()=>{const _0x33a9b1=_0x359969;this[_0x33a9b1(0x36d)][_0x33a9b1(0x37a)](_0x2a1fc6=>{const _0x492192=_0x33a9b1;_0x2a1fc6[_0x492192(0x3a5)](_0x30fb29);});},Jt*0x2);this[_0x359969(0x384)][_0x359969(0x22e)](_0x30fb29,_0xf3a00a);}['_removeClearOtherTimer'](_0x45ca5c){const _0x5494ea=_0x1f5a54;if(this[_0x5494ea(0x384)]['has'](_0x45ca5c)){const _0x4dcfe8=this[_0x5494ea(0x384)][_0x5494ea(0x393)](_0x45ca5c);_0x4dcfe8&&window[_0x5494ea(0x354)](_0x4dcfe8),this['_clearOtherTimers'][_0x5494ea(0x22e)](_0x45ca5c,null);}}[_0x1f5a54(0x1c9)](_0x2a2e80){const {memberID:_0x4e6bd5,unitIDs:_0x386c87}=_0x2a2e80;_0x386c87['forEach'](_0x26d8ad=>{const _0x4d2145=_0x2f7f;var _0x21b19d;const _0x36a086=this['_unitOnClients']['get'](_0x26d8ad);_0x36a086&&(_0x36a086['delete'](_0x4e6bd5),(_0x21b19d=this['_ensureSubject'](_0x26d8ad))==null||_0x21b19d[_0x4d2145(0x39b)](_0x36a086[_0x4d2145(0x3d8)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4e6bd5);}[_0x1f5a54(0x17d)](_0x1f710d){const _0x591a70=_0x1f5a54;this[_0x591a70(0x469)](_0x1f710d[_0x591a70(0x2f0)]);}[_0x1f5a54(0x27f)](_0x1df72e){const _0x17b20c=_0x1f5a54;localStorage[_0x17b20c(0x14e)](qt,JSON[_0x17b20c(0x41c)](_0x1df72e));}[_0x1f5a54(0x326)](){const _0x470606=_0x1f5a54;this[_0x470606(0x3fc)]=window['setInterval'](()=>{const _0x211e3f=_0x470606;this[_0x211e3f(0x27f)]({'type':0x2,'memberID':this[_0x211e3f(0x318)]});},Jt);}['_ensureSubject'](_0xa1f34d){const _0x498e5a=_0x1f5a54;return this['_unitStatus'][_0x498e5a(0x1d8)](_0xa1f34d)||this[_0x498e5a(0x1ea)][_0x498e5a(0x22e)](_0xa1f34d,new _0x24a55e(0x0)),this[_0x498e5a(0x1ea)][_0x498e5a(0x393)](_0xa1f34d);}}var yn=Object['defineProperty'],Un=Object[_0x1f5a54(0x3cc)],Ln=(_0x3fb07b,_0x440b2e,_0x1f9af4,_0x11351d)=>{const _0x3dd7ed=_0x1f5a54;for(var _0x404d47=_0x11351d>0x1?void 0x0:_0x11351d?Un(_0x440b2e,_0x1f9af4):_0x440b2e,_0x20e365=_0x3fb07b[_0x3dd7ed(0x2d6)]-0x1,_0x3e4f9b;_0x20e365>=0x0;_0x20e365--)(_0x3e4f9b=_0x3fb07b[_0x20e365])&&(_0x404d47=(_0x11351d?_0x3e4f9b(_0x440b2e,_0x1f9af4,_0x404d47):_0x3e4f9b(_0x404d47))||_0x404d47);return _0x11351d&&_0x404d47&&yn(_0x440b2e,_0x1f9af4,_0x404d47),_0x404d47;},zt=(_0x30be36,_0x2327b1)=>(_0x3193b1,_0x1f73a7)=>_0x2327b1(_0x3193b1,_0x1f73a7,_0x30be36);let Xe=class{constructor(_0x33f831,_0x5baebc){const _0x1dfb5c=_0x1f5a54;this[_0x1dfb5c(0x3db)]=_0x33f831,this[_0x1dfb5c(0x327)]=_0x5baebc;}[_0x1f5a54(0x300)](_0x1e4c27){const _0x58d00b=_0x1f5a54;this[_0x58d00b(0x43f)](_0x1e4c27),this[_0x58d00b(0x1fa)](_0x1e4c27);}[_0x1f5a54(0x348)](_0x40d834){const _0x3cb9ac=_0x1f5a54,_0x11ba7b=this['_injector'][_0x3cb9ac(0x393)](_0x3f2d0c),{redoCache:_0x164b82}=_0x11ba7b[_0x3cb9ac(0x190)]();if(_0x164b82['length']===0x0)return _0x40d834;let _0x516713=_0x4b796f['deepClone'](_0x40d834[_0x3cb9ac(0x466)][0x0]);for(let _0xe739f1=0x0;_0xe739f1<_0x164b82[_0x3cb9ac(0x2d6)];_0xe739f1++){const _0x2b04af={'id':'doc.mutation.rich-text-editing','params':{..._0x164b82[_0xe739f1]}},_0x2139bd=this[_0x3cb9ac(0x327)][_0x3cb9ac(0x34d)](_0x516713,_0x2b04af,!0x1);if(_0x2bbef6(_0x2139bd))throw _0x2139bd[_0x3cb9ac(0x419)];_0x516713=_0x2139bd[_0x3cb9ac(0x1fc)];}return{..._0x4b796f[_0x3cb9ac(0x1e6)](_0x40d834),'mutations':[_0x516713]};}[_0x1f5a54(0x43f)](_0x2b9df2){const _0xd62259=_0x1f5a54,_0x3e6e6c=this[_0xd62259(0x3db)][_0xd62259(0x393)](_0x3f2d0c),{undoCache:_0x282bef,redoCache:_0x474ac2}=_0x3e6e6c[_0xd62259(0x190)]();if(_0x282bef['length']===0x0||_0x474ac2['length']===0x0)return;const _0x1cfcba=[],_0x2b1356=[];let _0x515d39=_0x4b796f[_0xd62259(0x1e6)](_0x2b9df2[_0xd62259(0x466)][0x0]),_0x8bd1c0=_0x4b796f[_0xd62259(0x1e6)](_0x2b9df2[_0xd62259(0x466)][0x0]);for(let _0x93b88a=_0x282bef[_0xd62259(0x2d6)]-0x1;_0x93b88a>=0x0;_0x93b88a--){const _0xef66d={'id':'doc.mutation.rich-text-editing','params':{..._0x282bef[_0x93b88a]}},_0x10a9f7={'id':'doc.mutation.rich-text-editing','params':{..._0x474ac2[_0x93b88a]}},_0x45b88d=this[_0xd62259(0x327)]['transformMutation'](_0x515d39,_0xef66d,!0x1),_0x226658=this['_transformService'][_0xd62259(0x34d)](_0x8bd1c0,_0x10a9f7,!0x1);if(_0x2bbef6(_0x45b88d))throw _0x45b88d[_0xd62259(0x419)];if(_0x2bbef6(_0x226658))throw _0x226658['error'];_0x1cfcba['unshift'](_0x45b88d[_0xd62259(0x349)][_0xd62259(0x3ef)]),_0x2b1356[_0xd62259(0x283)](_0x226658[_0xd62259(0x349)][_0xd62259(0x3ef)]),_0x515d39=_0x45b88d[_0xd62259(0x1fc)],_0x8bd1c0=_0x226658['m1Prime'];}_0x3e6e6c[_0xd62259(0x37c)]({'undoCache':_0x1cfcba,'redoCache':_0x2b1356});}[_0x1f5a54(0x1fa)](_0x516f4f){const _0x16b212=_0x1f5a54,_0x298891=this['_injector']['get'](_0x3f2d0c),_0x16018e=_0x298891[_0x16b212(0x3f3)]();if(_0x16018e==null)return;const _0x43a33c=[{'id':_0x16b212(0x14c),'params':{'unitId':_0x516f4f['unitID'],'actions':null,'textRanges':[_0x16018e]}}],_0x1e9696=this[_0x16b212(0x327)][_0x16b212(0x461)](_0x516f4f,_0x43a33c);if(!_0x5abc17(_0x1e9696))throw _0x1e9696[_0x16b212(0x419)];const _0x96c7be=_0x1e9696[_0x16b212(0x349)][0x0][_0x16b212(0x3ef)][_0x16b212(0x279)];Array[_0x16b212(0x150)](_0x96c7be)&&_0x96c7be[_0x16b212(0x2d6)]&&_0x298891[_0x16b212(0x3be)](_0x96c7be[0x0]);}};Xe=Ln([zt(0x0,_0x61a763(_0x2e9f94)),zt(0x1,_0x1215ee)],Xe);var $n=Object[_0x1f5a54(0x29f)],jn=Object[_0x1f5a54(0x3cc)],Hn=(_0x447407,_0x32967c,_0x1cdb67,_0x4b5397)=>{for(var _0x2adbaf=_0x4b5397>0x1?void 0x0:_0x4b5397?jn(_0x32967c,_0x1cdb67):_0x32967c,_0x55c99a=_0x447407['length']-0x1,_0x5dd50d;_0x55c99a>=0x0;_0x55c99a--)(_0x5dd50d=_0x447407[_0x55c99a])&&(_0x2adbaf=(_0x4b5397?_0x5dd50d(_0x32967c,_0x1cdb67,_0x2adbaf):_0x5dd50d(_0x2adbaf))||_0x2adbaf);return _0x4b5397&&_0x2adbaf&&$n(_0x32967c,_0x1cdb67,_0x2adbaf),_0x2adbaf;},Zt=(_0x27c392,_0x4d236b)=>(_0x4cd439,_0x5127ee)=>_0x4d236b(_0x4cd439,_0x5127ee,_0x27c392);let Je=class{constructor(_0x2b1a66,_0x4ec42c){const _0x283d6d=_0x1f5a54;this[_0x283d6d(0x3db)]=_0x2b1a66,this[_0x283d6d(0x327)]=_0x4ec42c;}[_0x1f5a54(0x234)](_0x52dd1e){const _0x271dcc=_0x1f5a54;var _0x4066a0;const _0x91a058=this[_0x271dcc(0x3db)][_0x271dcc(0x393)](_0x233706),_0x396122=(_0x4066a0=_0x91a058[_0x271dcc(0x208)]())!=null?_0x4066a0:[],_0x41be01=_0x396122==null?void 0x0:_0x396122[_0x271dcc(0x1a7)](_0x4605fa);if(_0x41be01[_0x271dcc(0x2d6)]===0x0)return;const _0x53a0a8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x52dd1e['unitID'],'actions':null,'textRanges':_0x41be01}}],_0x29feb3=this[_0x271dcc(0x327)][_0x271dcc(0x461)](_0x52dd1e,_0x53a0a8);if(!_0x5abc17(_0x29feb3))throw _0x29feb3[_0x271dcc(0x419)];const _0x386482=_0x29feb3[_0x271dcc(0x349)][0x0][_0x271dcc(0x3ef)][_0x271dcc(0x279)];Array[_0x271dcc(0x150)](_0x386482)&&_0x386482[_0x271dcc(0x2d6)]&&_0x91a058['replaceTextRanges'](_0x386482,!0x1);}};Je=Hn([Zt(0x0,_0x61a763(_0x2e9f94)),Zt(0x1,_0x1215ee)],Je);function Ns(_0x202aee){const _0x39f7d1=_0x1f5a54;let _0x350a44='';for(const _0x3e8357 of _0x202aee){const {startOffset:_0x23ca6f,endOffset:_0x5e61d2,isActive:_0x3f6281}=_0x3e8357;_0x350a44[_0x39f7d1(0x2d6)]&&(_0x350a44+=','),_0x350a44+=_0x23ca6f+':'+_0x5e61d2+':'+(_0x3f6281?'1':'0');}return _0x350a44;}function xn(_0x490d2e){const _0x3c5062=_0x1f5a54,_0x4ccd08=_0x490d2e[_0x3c5062(0x335)](','),_0x30eeff=[];for(const _0x2cb035 of _0x4ccd08){const [_0x5b3b17,_0x37c8e0,_0x2a7314]=_0x2cb035[_0x3c5062(0x335)](':');_0x30eeff[_0x3c5062(0x310)]({'startOffset':Number(_0x5b3b17),'endOffset':Number(_0x37c8e0),'collapsed':_0x5b3b17===_0x37c8e0,'isActive':_0x2a7314==='1'});}return _0x30eeff[_0x3c5062(0x41b)](_0x30e03c=>_0x30e03c[_0x3c5062(0x1a5)])||(_0x30eeff[0x0]['isActive']=!0x0),_0x30eeff;}class Ut extends _0x5915f1{constructor(){const _0x26be49=_0x1f5a54;super(...arguments),l(this,_0x26be49(0x2c1),new _0x24a55e(null)),l(this,_0x26be49(0x155),this[_0x26be49(0x2c1)][_0x26be49(0x26b)]());}['syncEditingCollabCursor'](_0x44bc3d){const _0x39c604=_0x1f5a54,{unitID:_0x862d55,memberID:_0x58f24e,textRanges:_0x393036}=_0x44bc3d,_0x188bf1=Ns(_0x393036),_0x221fa2={'unitID':_0x862d55,'memberID':_0x58f24e,'selection':_0x188bf1};this[_0x39c604(0x2c1)][_0x39c604(0x39b)](_0x221fa2);}}var Fn=Object[_0x1f5a54(0x29f)],Vn=Object[_0x1f5a54(0x3cc)],kn=(_0x39604c,_0x4008d6,_0x2e9ecc,_0x63b972)=>{const _0x23ddf5=_0x1f5a54;for(var _0x5b0a42=_0x63b972>0x1?void 0x0:_0x63b972?Vn(_0x4008d6,_0x2e9ecc):_0x4008d6,_0x4f2348=_0x39604c[_0x23ddf5(0x2d6)]-0x1,_0x5cf17f;_0x4f2348>=0x0;_0x4f2348--)(_0x5cf17f=_0x39604c[_0x4f2348])&&(_0x5b0a42=(_0x63b972?_0x5cf17f(_0x4008d6,_0x2e9ecc,_0x5b0a42):_0x5cf17f(_0x5b0a42))||_0x5b0a42);return _0x63b972&&_0x5b0a42&&Fn(_0x4008d6,_0x2e9ecc,_0x5b0a42),_0x5b0a42;},Qt=(_0x58535e,_0xa5a342)=>(_0x151146,_0x412d50)=>_0xa5a342(_0x151146,_0x412d50,_0x58535e);function Bn(_0x1da9bc){const _0xd3581=_0x1f5a54,{unitID:_0x350ea3,mutations:_0x4975dd}=_0x1da9bc;return{'unitId':_0x350ea3,'subUnitId':_0x4975dd[0x0][_0xd3581(0x3ef)][_0xd3581(0x199)]};}let qe=class{constructor(_0x2a1441,_0x6a8353){const _0x910728=_0x1f5a54;this[_0x910728(0x3db)]=_0x2a1441,this[_0x910728(0x327)]=_0x6a8353;}[_0x1f5a54(0x234)](_0x433b8e){const _0x55f8f2=_0x1f5a54;var _0xfb446,_0x4c614a,_0x59bce2;const _0x51be90=this[_0x55f8f2(0x3db)]['get'](_0x5914fd),{unitId:_0xa620f,subUnitId:_0x13b917}=Bn(_0x433b8e),_0x5e04e4=_0x51be90[_0x55f8f2(0x2df)](_0xa620f)[_0x55f8f2(0x208)]();if(_0x5e04e4[_0x55f8f2(0x2d6)]===0x0||!_0xa620f||!_0x13b917)return;const _0x2c41bd=[{'id':_0x109738['id'],'params':{'unitId':_0xa620f,'subUnitId':_0x13b917,'selections':_0x4b796f[_0x55f8f2(0x1e6)](_0x5e04e4)}}],_0x474b09=this[_0x55f8f2(0x327)][_0x55f8f2(0x461)](_0x433b8e,_0x2c41bd);if(!_0x5abc17(_0x474b09))throw _0x474b09[_0x55f8f2(0x419)];const _0x20bbba=(_0x59bce2=(_0x4c614a=(_0xfb446=_0x474b09[_0x55f8f2(0x349)][0x0])==null?void 0x0:_0xfb446[_0x55f8f2(0x3ef)])==null?void 0x0:_0x4c614a[_0x55f8f2(0x2ab)])!=null?_0x59bce2:_0x5e04e4;Array[_0x55f8f2(0x150)](_0x20bbba)&&_0x20bbba['length']&&this['_injector'][_0x55f8f2(0x393)](_0x257ce4)[_0x55f8f2(0x2b2)](_0x109738['id'],{'unitId':_0xa620f,'subUnitId':_0x13b917,'selections':_0x20bbba});}};qe=kn([Qt(0x0,_0x61a763(_0x2e9f94)),Qt(0x1,_0x1215ee)],qe);const Wn=new Set([_0x54cc2b['id']]);function Gn(_0x15544c,_0xd398bc,_0x5d872c,_0x12ff5b,_0x5243d8){const _0x436cc9=_0x1f5a54;var _0x4449db,_0x37803b,_0x2d0250,_0x240877;const _0x2c3162=[];for(const _0x229160 of _0x15544c)if(Wn[_0x436cc9(0x1d8)](_0x229160['id'])){if(_0x2c3162[_0x436cc9(0x2d6)]>0x0)break;_0x2c3162[_0x436cc9(0x310)](_0x229160);break;}else _0x2c3162[_0x436cc9(0x310)](_0x229160);const _0x1ad832=(_0x37803b=(_0x4449db=_0x5243d8['getCurrentUser']())==null?void 0x0:_0x4449db[_0x436cc9(0x3a4)])!=null?_0x37803b:'unknown',_0x3aa332=(_0x240877=(_0x2d0250=_0x5243d8[_0x436cc9(0x1c4)]())==null?void 0x0:_0x2d0250[_0x436cc9(0x2f0)])!=null?_0x240877:_0x436cc9(0x169);return{'changeset':{'unitID':_0xd398bc,'type':_0x2c9cce(_0x5d872c['getUnitType'](_0xd398bc)),'baseRev':_0x12ff5b[_0x436cc9(0x236)](_0xd398bc),'revision':0x0,'userID':_0x1ad832,'memberID':_0x3aa332,'mutations':_0x2c3162},'pendingMutations':_0x15544c[_0x436cc9(0x19c)](_0x2c3162[_0x436cc9(0x2d6)])};}function Yn(_0x2bb260,_0x609f9e,_0x3a3b30,_0x2e7ccb,_0x552775){const _0x542d1e=_0x1f5a54;var _0x38237d,_0x1a877a,_0x242fba,_0x5a0f41;const _0x92ea01=[_0x2bb260['reduce']((_0x594bb9,_0x3a2f33)=>{const _0x576015=_0x2f7f;var _0x25594b;const {id:_0x2f4ead}=_0x594bb9,{id:_0x1aa3f3,type:_0x7af5a7}=_0x3a2f33,_0x7f2c61=(_0x25594b=_0x594bb9[_0x576015(0x3ef)])!=null?_0x25594b:{'actions':null},_0x39afa7=_0x3a2f33['params'];if(_0x2f4ead&&_0x2f4ead!==_0x1aa3f3)throw new Error(_0x576015(0x3c6)+_0x2f4ead+_0x576015(0x3cf)+_0x1aa3f3+'.');return{..._0x594bb9,'id':_0x1aa3f3,'type':_0x7af5a7,'params':{'unitId':_0x39afa7[_0x576015(0x3f8)],'textRanges':_0x39afa7[_0x576015(0x279)],'actions':_0x13a804[_0x576015(0x365)](_0x7f2c61[_0x576015(0x1b1)],_0x39afa7['actions'])}};},{})],_0x4dfabc=(_0x1a877a=(_0x38237d=_0x552775[_0x542d1e(0x1c4)]())==null?void 0x0:_0x38237d[_0x542d1e(0x3a4)])!=null?_0x1a877a:'unknown',_0x132be7=(_0x5a0f41=(_0x242fba=_0x552775[_0x542d1e(0x1c4)]())==null?void 0x0:_0x242fba[_0x542d1e(0x2f0)])!=null?_0x5a0f41:_0x542d1e(0x169);return{'changeset':{'unitID':_0x609f9e,'type':_0x2c9cce(_0x3a3b30[_0x542d1e(0x456)](_0x609f9e)),'baseRev':_0x2e7ccb[_0x542d1e(0x236)](_0x609f9e),'revision':0x0,'userID':_0x4dfabc,'memberID':_0x132be7,'mutations':_0x92ea01},'pendingMutations':[]};}var Kn=Object[_0x1f5a54(0x29f)],Xn=Object[_0x1f5a54(0x3cc)],oe=(_0x1b2670,_0x2beb2a,_0x546e96,_0xd5207c)=>{const _0x1d221f=_0x1f5a54;for(var _0x1f9805=_0xd5207c>0x1?void 0x0:_0xd5207c?Xn(_0x2beb2a,_0x546e96):_0x2beb2a,_0x16a8cc=_0x1b2670[_0x1d221f(0x2d6)]-0x1,_0x112405;_0x16a8cc>=0x0;_0x16a8cc--)(_0x112405=_0x1b2670[_0x16a8cc])&&(_0x1f9805=(_0xd5207c?_0x112405(_0x2beb2a,_0x546e96,_0x1f9805):_0x112405(_0x1f9805))||_0x1f9805);return _0xd5207c&&_0x1f9805&&Kn(_0x2beb2a,_0x546e96,_0x1f9805),_0x1f9805;},m=(_0x59c208,_0x1e4a1b)=>(_0x237ac8,_0x501cec)=>_0x1e4a1b(_0x237ac8,_0x501cec,_0x59c208),w=(_0x19f15=>(_0x19f15['NOT_COLLAB']='not_collab',_0x19f15['SYNCED']=_0x1f5a54(0x3c5),_0x19f15[_0x1f5a54(0x3e3)]=_0x1f5a54(0x2e7),_0x19f15[_0x1f5a54(0x45b)]=_0x1f5a54(0x240),_0x19f15[_0x1f5a54(0x224)]=_0x1f5a54(0x3e9),_0x19f15['FETCH_MISS']='fetch_missing',_0x19f15['CONFLICT']=_0x1f5a54(0x338),_0x19f15[_0x1f5a54(0x243)]='offline',_0x19f15))(w||{});class ae{constructor(_0x4f05f4,_0x2709e6,_0x193e3c,_0x589ee0,_0x8e3be5,_0x57a177,_0x378727,_0x5f533f,_0x2ac44e){const _0x45d8ec=_0x1f5a54;l(this,_0x45d8ec(0x177),null),l(this,_0x45d8ec(0x3b3),[]),(this[_0x45d8ec(0x213)]=_0x4f05f4,this[_0x45d8ec(0x400)]=_0x2709e6,this['_handler']=_0x8e3be5,this[_0x45d8ec(0x299)]=_0x57a177,this[_0x45d8ec(0x2c4)]=_0x378727,this[_0x45d8ec(0x459)]=_0x5f533f,this['_localCacheService']=_0x2ac44e,this[_0x45d8ec(0x177)]=_0x193e3c,this['_pendingMutations']=_0x589ee0);}[_0x1f5a54(0x372)](_0x3c0b3b){const _0x3a884a=_0x1f5a54,_0x3d3df3=this[_0x3a884a(0x459)]['getCurrentRevForDocument'](this['unitID']);return _0x3c0b3b['revision']>_0x3d3df3+0x1?(this['_handler']['onMissingChangesets']({'from':_0x3d3df3,'to':_0x3c0b3b[_0x3a884a(0x35c)]-0x1}),!0x0):!0x1;}[_0x1f5a54(0x260)](_0x3db330){const _0x2b6298=_0x1f5a54;this[_0x2b6298(0x2c4)][_0x2b6298(0x25f)](this[_0x2b6298(0x213)],_0x3db330);}[_0x1f5a54(0x191)](_0x34706f){const _0x3cfbc2=_0x1f5a54;var _0x16774f,_0x4df8ea;(_0x4df8ea=(_0x16774f=this[_0x3cfbc2(0x1d7)])[_0x3cfbc2(0x143)])==null||_0x4df8ea[_0x3cfbc2(0x25e)](_0x16774f,_0x34706f);}[_0x1f5a54(0x3ab)](_0xa7996f){const _0x5c2dbc=_0x1f5a54;var _0x33ebf0,_0x34513c;return(_0x34513c=(_0x33ebf0=this['_handler'])['onTransformIME'])==null?void 0x0:_0x34513c[_0x5c2dbc(0x25e)](_0x33ebf0,_0xa7996f);}[_0x1f5a54(0x2b5)](_0x20b6ee){const _0x185967=_0x1f5a54;var _0x4c6516,_0x4b40a4,_0x585f8c;return(_0x585f8c=(_0x4b40a4=(_0x4c6516=this['_handler'])[_0x185967(0x19f)])==null?void 0x0:_0x4b40a4[_0x185967(0x25e)](_0x4c6516,_0x20b6ee))!=null?_0x585f8c:_0x20b6ee;}[_0x1f5a54(0x17e)](_0x12412c){const _0x4c45be=_0x1f5a54;var _0x4ab8b7,_0x556c75;if(this['type']===H['UNIVER_DOC']){const {unitID:_0x10973a,mutations:_0x41f009,memberID:_0x321b10}=_0x12412c,_0x33f051=_0x41f009[0x0][_0x4c45be(0x3ef)][_0x4c45be(0x279)];Array[_0x4c45be(0x150)](_0x33f051)&&_0x33f051[_0x4c45be(0x2d6)]>0x0&&((_0x556c75=(_0x4ab8b7=this[_0x4c45be(0x1d7)])[_0x4c45be(0x32c)])==null||_0x556c75[_0x4c45be(0x25e)](_0x4ab8b7,{'unitID':_0x10973a,'memberID':_0x321b10,'textRanges':_0x33f051}));}}['_updateLocalCache'](){const _0x1375fb=_0x1f5a54;this[_0x1375fb(0x24c)][_0x1375fb(0x16f)](this[_0x1375fb(0x213)],this[_0x1375fb(0x400)],this[_0x1375fb(0x177)],this[_0x1375fb(0x3b3)]);}['_getCurrentRevision'](){const _0x3cc161=_0x1f5a54;return this[_0x3cc161(0x459)][_0x3cc161(0x236)](this[_0x3cc161(0x213)]);}[_0x1f5a54(0x3f5)](){const _0x47a26e=_0x1f5a54;this[_0x47a26e(0x459)]['incrementRevForDocument'](this[_0x47a26e(0x213)]);}[_0x1f5a54(0x3d3)](_0x5ad52d){const _0x33e388=_0x1f5a54;var _0x2aa02d;const _0x1ea081=this['_transformRemoteChangesetByIMECache'](_0x5ad52d),_0x23a4f3=_0x337b1e(_0x1ea081[_0x33e388(0x466)],this['_commandService'],{'fromCollab':!0x0});if(!_0x23a4f3[_0x33e388(0x2b3)])throw _0x23a4f3[_0x33e388(0x419)]instanceof Error?_0x23a4f3[_0x33e388(0x419)]:new Error((_0x2aa02d=_0x23a4f3['error'])!=null?_0x2aa02d:_0x33e388(0x451));this[_0x33e388(0x3ab)](_0x1ea081),this['_transformUndoredo'](_0x5ad52d),this[_0x33e388(0x191)](_0x1ea081),this[_0x33e388(0x17e)](_0x1ea081),this[_0x33e388(0x3f5)]();}}let Ne=class extends ae{constructor(_0x4873bf,_0x8417e0,_0x4658d0,_0xe10f5b,_0x58b0c4,_0x1039bd,_0x41bf27,_0x5a357b,_0x343e5a){const _0x400a51=_0x1f5a54;super(_0x4873bf,_0x8417e0,null,[],_0x4658d0,_0x5a357b,_0x41bf27,_0xe10f5b,_0x58b0c4),l(this,_0x400a51(0x453),_0x400a51(0x3c5)),(this[_0x400a51(0x3db)]=_0x1039bd,this[_0x400a51(0x308)]=_0x343e5a);}[_0x1f5a54(0x2c9)](_0x1bc4b0){const _0x1f30f3=_0x1f5a54,_0x13c91c=this['_injector'][_0x1f30f3(0x145)](B,this['unitID'],this['type'],[_0x1bc4b0],this[_0x1f30f3(0x1d7)]);return _0x13c91c[_0x1f30f3(0x467)](),_0x13c91c['_updateLocalCache'](),_0x13c91c;}['onRemoteChangeset'](_0x2047d3){const _0x61f0f9=_0x1f5a54;if(this['_checkMissing'](_0x2047d3))return this[_0x61f0f9(0x3db)][_0x61f0f9(0x145)](G,this[_0x61f0f9(0x213)],this[_0x61f0f9(0x400)],null,[],null,[_0x2047d3],this['_handler']);try{return this[_0x61f0f9(0x3d3)](_0x2047d3),this;}catch(_0x454ca9){return this[_0x61f0f9(0x308)][_0x61f0f9(0x419)](_0x61f0f9(0x1f4),_0x454ca9),this;}}[_0x1f5a54(0x23f)](){const _0x29ca02=_0x1f5a54;throw new Error(_0x29ca02(0x40b));}[_0x1f5a54(0x18a)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x1f5a54(0x43d)](){const _0x34b3ed=_0x1f5a54;return this[_0x34b3ed(0x3db)][_0x34b3ed(0x145)](z,this['unitID'],this['type'],null,[],this[_0x34b3ed(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}['resend'](){const _0x47af39=_0x1f5a54;throw new Error(_0x47af39(0x383));}};Ne=oe([m(0x3,_0x61a763(_0x2fc807)),m(0x4,_0x61a763(D)),m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x4e4a39),m(0x7,_0x257ce4),m(0x8,_0x3e33de)],Ne);let B=class extends ae{constructor(_0x16f8ef,_0x165d6e,_0x52b2cb,_0x49e0e5,_0x445d50,_0x32608e,_0x59b45f,_0x564a25,_0x459e90,_0x2305ff,_0x412a6b,_0x3005c3,_0x58657a,_0x4b9b3f){const _0x4eaa56=_0x1f5a54;super(_0x16f8ef,_0x165d6e,null,_0x52b2cb,_0x49e0e5,_0x2305ff,_0x4b9b3f,_0x32608e,_0x59b45f),l(this,_0x4eaa56(0x453),_0x4eaa56(0x2e7)),l(this,_0x4eaa56(0x430),null),l(this,_0x4eaa56(0x2fe),null),(this[_0x4eaa56(0x3db)]=_0x445d50,this[_0x4eaa56(0x2a0)]=_0x564a25,this[_0x4eaa56(0x308)]=_0x459e90,this[_0x4eaa56(0x20c)]=_0x412a6b,this[_0x4eaa56(0x327)]=_0x3005c3,this[_0x4eaa56(0x357)]=_0x58657a);}[_0x1f5a54(0x2c9)](_0x24cc60){const _0x4126d8=_0x1f5a54;return this[_0x4126d8(0x3b3)][_0x4126d8(0x310)](_0x24cc60),this[_0x4126d8(0x2a7)](),this;}[_0x1f5a54(0x201)](_0x18a1f3){const _0x5e7df7=_0x1f5a54;if(this[_0x5e7df7(0x372)](_0x18a1f3))return this['_clearScheduledTask'](),this['_injector'][_0x5e7df7(0x145)](G,this['unitID'],this[_0x5e7df7(0x400)],null,this[_0x5e7df7(0x3b3)],null,[_0x18a1f3],this[_0x5e7df7(0x1d7)]);try{const _0x3b5adb=this[_0x5e7df7(0x327)][_0x5e7df7(0x461)](_0x18a1f3,this[_0x5e7df7(0x3b3)]);if(_0x5abc17(_0x3b5adb)){const {c1Prime:_0x45fd05,m2Prime:_0x3a8741}=_0x3b5adb;this['_executeRemoteChangeset'](_0x45fd05);const _0x16732f=this[_0x5e7df7(0x3db)]['createInstance'](B,this[_0x5e7df7(0x213)],this[_0x5e7df7(0x400)],_0x3a8741,this[_0x5e7df7(0x1d7)]);return this['_clearScheduledTask'](),_0x16732f[_0x5e7df7(0x467)](this[_0x5e7df7(0x430)]?Math[_0x5e7df7(0x44a)](0x0,new Date()[_0x5e7df7(0x3a2)]()-this['_scheduleTimestamp']):this[_0x5e7df7(0x3fe)]()),_0x16732f;}throw _0x3b5adb['error'];}catch(_0xcd9758){return this['_logService'][_0x5e7df7(0x419)](_0xcd9758),this['_onConflict'](!0x1);}}[_0x1f5a54(0x23f)](){const _0x180a9c=_0x1f5a54;throw new Error(_0x180a9c(0x23a));}[_0x1f5a54(0x18a)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x1f5a54(0x43d)](){const _0x2de995=_0x1f5a54;return this[_0x2de995(0x22b)](),this[_0x2de995(0x3db)][_0x2de995(0x145)](z,this[_0x2de995(0x213)],this['type'],null,this[_0x2de995(0x3b3)],this[_0x2de995(0x1d7)]);}['toggleOnline'](){return this;}[_0x1f5a54(0x467)](_0x55a225){const _0x5daabd=_0x1f5a54;_0x55a225=_0x55a225!=null?_0x55a225:this['_getSendChangesetTimeout'](),this[_0x5daabd(0x430)]=new Date()[_0x5daabd(0x3a2)](),this[_0x5daabd(0x2fe)]=setTimeout(()=>{const _0x7ffea5=_0x5daabd;this[_0x7ffea5(0x22b)]();let _0x3977cb=null;switch(this[_0x7ffea5(0x400)]){case H[_0x7ffea5(0x320)]:{_0x3977cb=Gn(this[_0x7ffea5(0x3b3)],this[_0x7ffea5(0x213)],this[_0x7ffea5(0x357)],this[_0x7ffea5(0x459)],this['_memberService']);break;}case H[_0x7ffea5(0x315)]:{_0x3977cb=Yn(this[_0x7ffea5(0x3b3)],this[_0x7ffea5(0x213)],this[_0x7ffea5(0x357)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x7ffea5(0x3bf)+this[_0x7ffea5(0x400)]+'\x20in\x20_schedule.');}const {changeset:_0x310f95,pendingMutations:_0x16fa69}=_0x3977cb;this['_handler'][_0x7ffea5(0x1eb)](_0x310f95);const _0x5b8e88=_0x16fa69[_0x7ffea5(0x2d6)]?this[_0x7ffea5(0x3db)]['createInstance'](W,this[_0x7ffea5(0x213)],this['type'],_0x310f95,_0x16fa69,this['_handler']):this['_injector'][_0x7ffea5(0x145)](q,this[_0x7ffea5(0x213)],this[_0x7ffea5(0x400)],_0x310f95,this['_handler']);_0x5b8e88[_0x7ffea5(0x2a7)](),this[_0x7ffea5(0x1d7)][_0x7ffea5(0x218)](this,_0x5b8e88);},_0x55a225);}[_0x1f5a54(0x3fe)](){const _0x3c83e0=_0x1f5a54;var _0x3a394b;return(_0x3a394b=this[_0x3c83e0(0x20c)][_0x3c83e0(0x19e)](en))!=null?_0x3a394b:tn;}[_0x1f5a54(0x392)](){const _0x5513f2=_0x1f5a54;throw new Error(_0x5513f2(0x323));}[_0x1f5a54(0x22b)](){const _0x2953a6=_0x1f5a54;this[_0x2953a6(0x2fe)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2953a6(0x2fe)]=null);}[_0x1f5a54(0x2aa)](_0x2fa35d){const _0x23d5c8=_0x1f5a54;return this['_clearScheduledTask'](),this[_0x23d5c8(0x3db)]['createInstance'](re,this[_0x23d5c8(0x213)],this[_0x23d5c8(0x400)],null,this[_0x23d5c8(0x3b3)],this['_handler'],_0x2fa35d);}};B=oe([m(0x4,_0x61a763(_0x2e9f94)),m(0x5,_0x61a763(_0x2fc807)),m(0x6,_0x61a763(D)),m(0x7,_0x61a763(ne)),m(0x8,_0x3e33de),m(0x9,_0x257ce4),m(0xa,_0x43c997),m(0xb,_0x1215ee),m(0xc,_0x55bd21),m(0xd,_0x4e4a39)],B);let q=class extends ae{constructor(_0x1cfbfd,_0x1ecc2b,_0xc98fe,_0x4dfd1f,_0x2b2334,_0x28a80f,_0x5c4b1d,_0x279936,_0x304e7f,_0x3c6c09,_0x5626d2){const _0x1a449b=_0x1f5a54;super(_0x1cfbfd,_0x1ecc2b,_0xc98fe,[],_0x4dfd1f,_0x279936,_0x5626d2,_0x28a80f,_0x5c4b1d),l(this,_0x1a449b(0x453),'awaiting'),(this[_0x1a449b(0x3db)]=_0x2b2334,this[_0x1a449b(0x308)]=_0x304e7f,this[_0x1a449b(0x327)]=_0x3c6c09);}['appendMutation'](_0xa4a829){const _0x15f6d0=_0x1f5a54,_0x4a9ac0=this[_0x15f6d0(0x3db)]['createInstance'](W,this[_0x15f6d0(0x213)],this[_0x15f6d0(0x400)],this[_0x15f6d0(0x177)],[_0xa4a829],this[_0x15f6d0(0x1d7)]);return _0x4a9ac0[_0x15f6d0(0x2a7)](),_0x4a9ac0;}[_0x1f5a54(0x201)](_0x3555e0){const _0x53c728=_0x1f5a54;if(this[_0x53c728(0x372)](_0x3555e0))return this[_0x53c728(0x3db)]['createInstance'](G,this[_0x53c728(0x213)],this[_0x53c728(0x400)],this[_0x53c728(0x177)],[],null,[_0x3555e0],this[_0x53c728(0x1d7)]);try{const _0x53a1e8=this['_transformService'][_0x53c728(0x3d4)]([_0x3555e0],[this[_0x53c728(0x177)]],!0x1);if(_0x29a147(_0x53a1e8)){const {c1Prime:_0x92845e,c2Prime:_0x54f8f9}=_0x53a1e8;this['_executeRemoteChangeset'](_0x92845e[0x0]),_0x54f8f9[0x0][_0x53c728(0x3eb)]=this[_0x53c728(0x462)]();const _0x268878=this[_0x53c728(0x3db)]['createInstance'](q,this[_0x53c728(0x213)],this[_0x53c728(0x400)],_0x54f8f9[0x0],this[_0x53c728(0x1d7)]);return _0x268878['_updateLocalCache'](),_0x268878;}return this[_0x53c728(0x2aa)](!0x1);}catch(_0x5aa5b3){return this[_0x53c728(0x308)][_0x53c728(0x419)](_0x5aa5b3),this[_0x53c728(0x2aa)](!0x1);}}['onRemoteAck'](_0x4209de){const _0x225342=_0x1f5a54,_0x173eed=this[_0x225342(0x459)]['getCurrentRevForDocument'](this[_0x225342(0x213)]);if(_0x4209de['revision']<_0x173eed-0x1)return this;if(this['_checkMissing'](_0x4209de))return this['_injector'][_0x225342(0x145)](G,this[_0x225342(0x213)],this['type'],null,[],this[_0x225342(0x177)],[],this[_0x225342(0x1d7)]);this[_0x225342(0x3f5)]();const _0x51878d=this[_0x225342(0x3db)][_0x225342(0x145)](Ne,this['unitID'],this[_0x225342(0x400)],this[_0x225342(0x1d7)]);return _0x51878d[_0x225342(0x2a7)](),_0x51878d;}['onRemoteRej'](_0x252952){const _0x1a562f=_0x1f5a54;return this[_0x1a562f(0x2aa)](!!(_0x252952!=null&&_0x252952[_0x1a562f(0x362)]));}[_0x1f5a54(0x43d)](){const _0x52b459=_0x1f5a54;return this['_injector'][_0x52b459(0x145)](z,this[_0x52b459(0x213)],this[_0x52b459(0x400)],this['_awaitingChangeset'],[],this[_0x52b459(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x4edb0c=_0x1f5a54;this[_0x4edb0c(0x1d7)][_0x4edb0c(0x1eb)](this[_0x4edb0c(0x177)]);}['_onConflict'](_0x3c55e3){const _0xc6fece=_0x1f5a54;return this[_0xc6fece(0x3db)]['createInstance'](re,this[_0xc6fece(0x213)],this[_0xc6fece(0x400)],this[_0xc6fece(0x177)],[],this['_handler'],_0x3c55e3);}};q=oe([m(0x4,_0x61a763(_0x2e9f94)),m(0x5,_0x61a763(_0x2fc807)),m(0x6,_0x61a763(D)),m(0x7,_0x257ce4),m(0x8,_0x3e33de),m(0x9,_0x1215ee),m(0xa,_0x4e4a39)],q);let W=class extends ae{constructor(_0xe39aa9,_0x10393e,_0xe4590e,_0x1f6a42,_0x261a1e,_0x4945b9,_0x18d19b,_0x156829,_0x5c9a68,_0x4f5ca6,_0x1e8104,_0x30c227){const _0x53d3f8=_0x1f5a54;super(_0xe39aa9,_0x10393e,_0xe4590e,_0x1f6a42,_0x261a1e,_0x5c9a68,_0x30c227,_0x18d19b,_0x156829),l(this,'status',_0x53d3f8(0x3e9)),(this[_0x53d3f8(0x3db)]=_0x4945b9,this[_0x53d3f8(0x308)]=_0x4f5ca6,this[_0x53d3f8(0x327)]=_0x1e8104);}[_0x1f5a54(0x2c9)](_0x1e6d7f){const _0x1f46a1=_0x1f5a54;return this['_pendingMutations'][_0x1f46a1(0x310)](_0x1e6d7f),this;}[_0x1f5a54(0x201)](_0x5a2f5c){const _0x1a8915=_0x1f5a54;if(this[_0x1a8915(0x372)](_0x5a2f5c))return this[_0x1a8915(0x3db)][_0x1a8915(0x145)](G,this[_0x1a8915(0x213)],this[_0x1a8915(0x400)],this[_0x1a8915(0x177)],this[_0x1a8915(0x3b3)],null,[_0x5a2f5c],this[_0x1a8915(0x1d7)]);try{const _0x5ea763=this[_0x1a8915(0x327)]['transformChangesets']([_0x5a2f5c],[this['_awaitingChangeset']],!0x1);if(_0x29a147(_0x5ea763)){const {c1Prime:_0x51d405,c2Prime:_0x5d9a69}=_0x5ea763,_0x506b6b=this[_0x1a8915(0x327)][_0x1a8915(0x461)](_0x51d405[0x0],this[_0x1a8915(0x3b3)]);if(_0x5abc17(_0x506b6b)){const {c1Prime:_0x55506b,m2Prime:_0x555eb8}=_0x506b6b;return this['_executeRemoteChangeset'](_0x55506b),_0x5d9a69[0x0][_0x1a8915(0x3eb)]=this['_getCurrentRevision'](),this[_0x1a8915(0x3db)][_0x1a8915(0x145)](W,this['unitID'],this[_0x1a8915(0x400)],_0x5d9a69[0x0],_0x555eb8,this[_0x1a8915(0x1d7)]);}throw _0x506b6b[_0x1a8915(0x419)];}throw _0x5ea763[_0x1a8915(0x419)];}catch(_0x3ef417){return this[_0x1a8915(0x308)]['error'](_0x3ef417),this[_0x1a8915(0x2aa)](!0x1);}}[_0x1f5a54(0x23f)](_0x38c656){const _0x36b4d3=_0x1f5a54;if(this[_0x36b4d3(0x372)](_0x38c656))return this['_injector'][_0x36b4d3(0x145)](G,this[_0x36b4d3(0x213)],this[_0x36b4d3(0x400)],null,this[_0x36b4d3(0x3b3)],this[_0x36b4d3(0x177)],[],this[_0x36b4d3(0x1d7)]);this['_incrementRevisionNumber']();const _0x349ec5=this[_0x36b4d3(0x3db)][_0x36b4d3(0x145)](B,this['unitID'],this[_0x36b4d3(0x400)],this['_pendingMutations'],this[_0x36b4d3(0x1d7)]);return _0x349ec5[_0x36b4d3(0x467)](),_0x349ec5[_0x36b4d3(0x2a7)](),_0x349ec5;}[_0x1f5a54(0x18a)](_0x23862b){const _0x4222f6=_0x1f5a54;return this[_0x4222f6(0x2aa)](!!(_0x23862b!=null&&_0x23862b[_0x4222f6(0x362)]));}[_0x1f5a54(0x43d)](){const _0x31df21=_0x1f5a54;return this[_0x31df21(0x3db)][_0x31df21(0x145)](z,this['unitID'],this[_0x31df21(0x400)],this[_0x31df21(0x177)],this['_pendingMutations'],this[_0x31df21(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x4c5d89=_0x1f5a54;this[_0x4c5d89(0x1d7)][_0x4c5d89(0x1eb)](this[_0x4c5d89(0x177)]);}[_0x1f5a54(0x2aa)](_0x403251){const _0x4f3e4c=_0x1f5a54;return this[_0x4f3e4c(0x3db)][_0x4f3e4c(0x145)](re,this[_0x4f3e4c(0x213)],this[_0x4f3e4c(0x400)],null,this['_pendingMutations'],this[_0x4f3e4c(0x1d7)],_0x403251);}};W=oe([m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x61a763(_0x2fc807)),m(0x7,_0x61a763(D)),m(0x8,_0x257ce4),m(0x9,_0x3e33de),m(0xa,_0x1215ee),m(0xb,_0x4e4a39)],W);let re=class extends ae{constructor(_0x2da707,_0x3d109b,_0x53f1b9,_0x3508bf,_0x5bb67b,_0xfbb11=!0x1,_0x3d0a7c,_0x14116f,_0x24c0ac,_0x5d0ee5,_0x2bcb5a,_0x574621,_0x1fed9f){const _0x53459a=_0x1f5a54;super(_0x2da707,_0x3d109b,_0x53f1b9,_0x3508bf,_0x5bb67b,_0x14116f,_0x24c0ac,_0x2bcb5a,_0x5d0ee5),l(this,_0x53459a(0x453),'conflict'),(this[_0x53459a(0x1a0)]=_0xfbb11,this['_permissionService']=_0x3d0a7c,this['_localeService']=_0x574621,this[_0x53459a(0x2e8)]=_0x1fed9f,this[_0x53459a(0x329)](),this['_clearLocalCache'](),this[_0x53459a(0x375)]());}[_0x1f5a54(0x2c9)](){return this;}[_0x1f5a54(0x201)](){return this;}['onRemoteAck'](){return this;}[_0x1f5a54(0x18a)](){return this;}[_0x1f5a54(0x43d)](){return this;}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x398d5f=_0x1f5a54;throw new Error(_0x398d5f(0x28c));}[_0x1f5a54(0x3d7)](){const _0x43015e=_0x1f5a54;this['_localCacheService'][_0x43015e(0x16f)](this['unitID'],this[_0x43015e(0x400)],null,[]);}[_0x1f5a54(0x329)](){const _0x396793=_0x1f5a54;this[_0x396793(0x1a0)]?this[_0x396793(0x2e8)][_0x396793(0x43a)]({'title':this['_localeService']['t'](_0x396793(0x231)),'content':this[_0x396793(0x3a6)]['t']('permission.content'),'type':_0x396793(0x419),'duration':0x0}):this['_notificationService'][_0x396793(0x43a)]({'title':this[_0x396793(0x3a6)]['t'](_0x396793(0x181)),'content':this[_0x396793(0x3a6)]['t'](_0x396793(0x2e3)),'type':_0x396793(0x419),'duration':0x0});}[_0x1f5a54(0x375)](){const _0x500eee=_0x1f5a54;this[_0x500eee(0x1ba)]['updatePermissionPoint'](new _0x278a53(this[_0x500eee(0x213)])['id'],!0x1);}};re=oe([m(0x6,_0x61a763(_0x1721b0)),m(0x7,_0x257ce4),m(0x8,_0x4e4a39),m(0x9,_0x61a763(D)),m(0xa,_0x61a763(_0x2fc807)),m(0xb,_0x61a763(_0x4eec6f)),m(0xc,_0x1d0f07)],re);let z=class extends ae{constructor(_0x2c01e4,_0x5db69d,_0x2c558c,_0x31b641,_0x4f0613,_0xa22eb1,_0x204cab,_0x5de8bb,_0x254a6c,_0x165c83){const _0x53f591=_0x1f5a54;super(_0x2c01e4,_0x5db69d,_0x2c558c,_0x31b641,_0x4f0613,_0x254a6c,_0x165c83,_0x204cab,_0x5de8bb),l(this,_0x53f591(0x453),_0x53f591(0x2c8)),this[_0x53f591(0x3db)]=_0xa22eb1;}[_0x1f5a54(0x2c9)](_0x32169a){const _0x33cc6b=_0x1f5a54;return this[_0x33cc6b(0x3b3)][_0x33cc6b(0x310)](_0x32169a),this[_0x33cc6b(0x2a7)](),this;}[_0x1f5a54(0x201)](_0x40b61a){const _0x2ba2c4=_0x1f5a54;throw new Error(_0x2ba2c4(0x27d));}['onRemoteAck'](){const _0x23c38b=_0x1f5a54;throw new Error(_0x23c38b(0x19a));}['onRemoteRej'](){const _0x280a42=_0x1f5a54;throw new Error(_0x280a42(0x2d1));}['toggleOffline'](){return this;}[_0x1f5a54(0x21f)](){const _0x1c77d1=_0x1f5a54,{_injector:_0x59f4c5,_pendingMutations:_0x5338f7,_awaitingChangeset:_0x5a0216,unitID:_0x3ca979,_handler:_0x20c1a2,type:_0x177ea0}=this,_0x579c2d=Ms(_0x59f4c5,_0x3ca979,_0x177ea0,_0x5a0216,_0x5338f7,_0x20c1a2);return _0x579c2d instanceof B?_0x579c2d[_0x1c77d1(0x467)]():(_0x579c2d instanceof W||_0x579c2d instanceof q)&&_0x579c2d[_0x1c77d1(0x392)](),_0x579c2d;}[_0x1f5a54(0x392)](){const _0x1e20c7=_0x1f5a54;throw new Error(_0x1e20c7(0x282));}};z=oe([m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x61a763(_0x2fc807)),m(0x7,_0x61a763(D)),m(0x8,_0x257ce4),m(0x9,_0x4e4a39)],z);let G=class extends ae{constructor(_0x3ef4a4,_0x5ee2f5,_0xb94c68,_0x4c6191,_0x355080,_0x4a6797,_0x39de29,_0x1f9dca,_0x6c7312,_0x2cc9f3,_0x1187b3,_0x31d929,_0x25628e,_0x1c189b){const _0xdb6c79=_0x1f5a54;super(_0x3ef4a4,_0x5ee2f5,_0xb94c68,_0x4c6191,_0x39de29,_0x31d929,_0x25628e,_0x6c7312,_0x2cc9f3),l(this,_0xdb6c79(0x453),_0xdb6c79(0x1b8)),(this[_0xdb6c79(0x322)]=_0x355080,this[_0xdb6c79(0x1d1)]=_0x4a6797,this[_0xdb6c79(0x3db)]=_0x1f9dca,this[_0xdb6c79(0x308)]=_0x1187b3,this[_0xdb6c79(0x327)]=_0x1c189b);}[_0x1f5a54(0x223)](_0x443310){const _0xdb0d55=_0x1f5a54;try{const _0x48a8f9=[..._0x443310,...this[_0xdb0d55(0x1d1)]],_0x37a856=[this[_0xdb0d55(0x177)]||this[_0xdb0d55(0x322)]][_0xdb0d55(0x434)](_0x29ddad=>!!_0x29ddad);let _0x367c2f,_0x5b0d6d;if(_0x37a856[_0xdb0d55(0x2d6)]){const _0x181d04=this['_transformService']['transformChangesets'](_0x48a8f9,_0x37a856,!0x1);if(!_0x29a147(_0x181d04))throw _0x181d04[_0xdb0d55(0x419)];_0x367c2f=_0x181d04[_0xdb0d55(0x454)],_0x5b0d6d=_0x181d04['c2Prime'];}else _0x367c2f=_0x48a8f9,_0x5b0d6d=[];let _0x219260=this[_0xdb0d55(0x3b3)];_0x367c2f['forEach'](_0x23adc8=>{const _0x8a13c0=_0xdb0d55;let _0x11b063;if(_0x219260[_0x8a13c0(0x2d6)]){const _0x805923=this['_transformService'][_0x8a13c0(0x461)](_0x23adc8,_0x219260);if(!_0x5abc17(_0x805923))throw _0x805923[_0x8a13c0(0x419)];_0x11b063=_0x805923[_0x8a13c0(0x454)],_0x219260=_0x805923[_0x8a13c0(0x349)];}else _0x11b063=_0x23adc8;this[_0x8a13c0(0x3d3)](_0x11b063);}),this[_0xdb0d55(0x322)]&&this[_0xdb0d55(0x3f5)](),this[_0xdb0d55(0x177)]&&_0x5b0d6d['length']&&(_0x5b0d6d[0x0][_0xdb0d55(0x3eb)]=this[_0xdb0d55(0x462)]());let _0x5d38f9;if(this[_0xdb0d55(0x177)]&&_0x219260[_0xdb0d55(0x2d6)]!==0x0)_0x5d38f9=this[_0xdb0d55(0x3db)][_0xdb0d55(0x145)](W,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],_0x5b0d6d[0x0],_0x219260,this[_0xdb0d55(0x1d7)]);else{if(this[_0xdb0d55(0x177)]&&_0x219260[_0xdb0d55(0x2d6)]===0x0)_0x5b0d6d[0x0]['baseRev']=this['_getCurrentRevision'](),_0x5d38f9=this[_0xdb0d55(0x3db)]['createInstance'](q,this[_0xdb0d55(0x213)],this['type'],_0x5b0d6d[0x0],this[_0xdb0d55(0x1d7)]);else{if(_0x219260[_0xdb0d55(0x2d6)]!==0x0){const _0x2cb958=this['_injector'][_0xdb0d55(0x145)](B,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],_0x219260,this[_0xdb0d55(0x1d7)]);_0x2cb958['_schedule'](),_0x5d38f9=_0x2cb958;}else _0x5d38f9=this['_injector']['createInstance'](Ne,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],this[_0xdb0d55(0x1d7)]);}}return _0x5d38f9['_updateLocalCache'](),_0x5d38f9;}catch(_0x3acfb0){return this[_0xdb0d55(0x308)]['error'](_0xdb0d55(0x447),_0xdb0d55(0x2fb),_0x3acfb0),this[_0xdb0d55(0x3db)][_0xdb0d55(0x145)](re,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],this[_0xdb0d55(0x177)],this[_0xdb0d55(0x3b3)],this[_0xdb0d55(0x1d7)],!0x1);}}[_0x1f5a54(0x392)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f5a54(0x2c9)](_0xe55fcd){const _0x4ec695=_0x1f5a54;return this[_0x4ec695(0x3b3)][_0x4ec695(0x310)](_0xe55fcd),this;}['onRemoteChangeset'](_0x350ace){const _0x52e11a=_0x1f5a54;return this[_0x52e11a(0x1d1)]['push'](_0x350ace),this;}[_0x1f5a54(0x23f)](_0x13c200){const _0x1e0e09=_0x1f5a54;if(this[_0x1e0e09(0x177)])return this['_acknowledgedAwaitingChangeset']=this[_0x1e0e09(0x177)],this[_0x1e0e09(0x177)]=null,this;throw new Error(_0x1e0e09(0x176));}[_0x1f5a54(0x18a)](_0x2bad31){const _0x2230d5=_0x1f5a54;return this[_0x2230d5(0x2aa)](!!(_0x2bad31!=null&&_0x2bad31['isPermissionRej']));}[_0x1f5a54(0x43d)](){const _0x2c6538=_0x1f5a54;return this['_injector'][_0x2c6538(0x145)](z,this[_0x2c6538(0x213)],this[_0x2c6538(0x400)],this[_0x2c6538(0x177)],this[_0x2c6538(0x3b3)],this[_0x2c6538(0x1d7)]);}['toggleOnline'](){return this;}['_onConflict'](_0x9172f4){const _0x5b8435=_0x1f5a54;return this[_0x5b8435(0x3db)][_0x5b8435(0x145)](re,this['unitID'],this[_0x5b8435(0x400)],this[_0x5b8435(0x177)],this[_0x5b8435(0x3b3)],this[_0x5b8435(0x1d7)],_0x9172f4);}};G=oe([m(0x7,_0x61a763(_0x2e9f94)),m(0x8,_0x61a763(_0x2fc807)),m(0x9,_0x61a763(D)),m(0xa,_0x3e33de),m(0xb,_0x257ce4),m(0xc,_0x4e4a39),m(0xd,_0x1215ee)],G);function Ms(_0x3c967f,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x57481f,_0x292914){const _0x32420d=_0x1f5a54;return _0x5d35b1&&_0x57481f[_0x32420d(0x2d6)]?_0x3c967f[_0x32420d(0x145)](W,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x57481f,_0x292914):_0x5d35b1?_0x3c967f[_0x32420d(0x145)](q,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x292914):_0x57481f[_0x32420d(0x2d6)]?_0x3c967f[_0x32420d(0x145)](B,_0x3e4b13,_0xe2acbf,_0x57481f,_0x292914):_0x3c967f[_0x32420d(0x145)](Ne,_0x3e4b13,_0xe2acbf,_0x292914);}var Jn=Object[_0x1f5a54(0x29f)],qn=Object[_0x1f5a54(0x3cc)],tt=(_0x288e80,_0x30f6a8,_0x8976ee,_0x4ccc31)=>{for(var _0x4e18fd=_0x4ccc31>0x1?void 0x0:_0x4ccc31?qn(_0x30f6a8,_0x8976ee):_0x30f6a8,_0x158e0c=_0x288e80['length']-0x1,_0xc83620;_0x158e0c>=0x0;_0x158e0c--)(_0xc83620=_0x288e80[_0x158e0c])&&(_0x4e18fd=(_0x4ccc31?_0xc83620(_0x30f6a8,_0x8976ee,_0x4e18fd):_0xc83620(_0x4e18fd))||_0x4e18fd);return _0x4ccc31&&_0x4e18fd&&Jn(_0x30f6a8,_0x8976ee,_0x4e18fd),_0x4e18fd;},S=(_0x3cdfc1,_0x3d33d1)=>(_0xeffe21,_0x19a995)=>_0x3d33d1(_0xeffe21,_0x19a995,_0x3cdfc1);let De=class extends _0x5915f1{constructor(_0x2cfa7c,_0x53b50a,_0x5cfcd9){const _0x2cc26c=_0x1f5a54;super(),l(this,_0x2cc26c(0x457),new Map()),l(this,_0x2cc26c(0x157),new _0x295019()),(this[_0x2cc26c(0x3db)]=_0x2cfa7c,this['_collabSessionService']=_0x53b50a,this[_0x2cc26c(0x357)]=_0x5cfcd9,this[_0x2cc26c(0x3b6)]());}[_0x1f5a54(0x26e)](){const _0xec9625=_0x1f5a54;super[_0xec9625(0x26e)](),this[_0xec9625(0x457)][_0xec9625(0x37a)](_0x45af75=>_0x45af75[_0xec9625(0x26e)]()),this[_0xec9625(0x457)][_0xec9625(0x2f2)]();}[_0x1f5a54(0x2c5)](_0x4173c2){const _0x2ba28b=_0x1f5a54;var _0x22e1c2;return(_0x22e1c2=this[_0x2ba28b(0x457)]['get'](_0x4173c2))!=null?_0x22e1c2:null;}[_0x1f5a54(0x431)](_0x4439b5){const _0x3ca7d2=_0x1f5a54,_0x362449=this[_0x3ca7d2(0x2c5)](_0x4439b5);return _0x362449?_0x110ce6(_0x362449):this['_entityInit$'][_0x3ca7d2(0x180)](_0x3d131e(_0x4f69a7=>_0x4f69a7['unitID']===_0x4439b5));}[_0x1f5a54(0x3b6)](){const _0x137800=_0x1f5a54;this[_0x137800(0x357)][_0x137800(0x1fb)](_0x5cab0b[_0x137800(0x320)])[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]),_0x29d1e4(0x10))[_0x137800(0x2d9)](async _0x23aeab=>{const _0xf219c=_0x137800,_0x449175=_0x23aeab[_0xf219c(0x2a2)](),_0x1561b1=await this[_0xf219c(0x1b0)](_0x449175,H[_0xf219c(0x320)]);this[_0xf219c(0x457)][_0xf219c(0x22e)](_0x449175,_0x1561b1);}),this[_0x137800(0x357)][_0x137800(0x1fb)](_0x5cab0b['UNIVER_DOC'])[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]),_0x29d1e4(0x10))['pipe'](_0x3d131e(_0x5f327b=>!_0x5f327b[_0x137800(0x2a2)]()[_0x137800(0x41d)]('__')))[_0x137800(0x2d9)](async _0x88e06e=>{const _0x4067c3=_0x137800,_0x3e2c7c=_0x88e06e[_0x4067c3(0x2a2)](),_0x4b8bbb=await this[_0x4067c3(0x1b0)](_0x3e2c7c,H['UNIVER_DOC']);this[_0x4067c3(0x457)][_0x4067c3(0x22e)](_0x3e2c7c,_0x4b8bbb);}),_0x2e3217(this[_0x137800(0x357)][_0x137800(0x303)](_0x5cab0b[_0x137800(0x320)]),this[_0x137800(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x137800(0x315)]))[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]))[_0x137800(0x2d9)](_0x2707a3=>{const _0x5175c0=_0x137800,_0x2285ab=_0x2707a3[_0x5175c0(0x2a2)](),_0x19a9a4=this[_0x5175c0(0x457)][_0x5175c0(0x393)](_0x2285ab);_0x19a9a4&&(_0x19a9a4[_0x5175c0(0x26e)](),this[_0x5175c0(0x457)][_0x5175c0(0x3a5)](_0x2285ab));});}async[_0x1f5a54(0x1b0)](_0x162419,_0x4dbcdd){const _0x41cbc6=_0x1f5a54,_0x32899e=await this['_collabSessionService']['requireSession'](_0x162419),_0x2c0feb=this[_0x41cbc6(0x3db)]['createInstance'](this[_0x41cbc6(0x3c8)](_0x4dbcdd),_0x162419,_0x4dbcdd,_0x32899e);return await _0x2c0feb[_0x41cbc6(0x33e)](),this[_0x41cbc6(0x157)][_0x41cbc6(0x39b)](_0x2c0feb),_0x2c0feb;}[_0x1f5a54(0x3c8)](_0x46adb3){const _0xad3dc8=_0x1f5a54;switch(_0x46adb3){case H[_0xad3dc8(0x315)]:return vt;case H['UNIVER_SHEET']:return pt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x46adb3);}}};De=tt([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],De),S(0x0,_0x61a763(_0x2e9f94)),S(0x1,_0x61a763(ge)),S(0x2,_0x55bd21)],De);let ze=class extends _0x5915f1{constructor(_0x3079f3,_0x39544b,_0x6011ba,_0x134f77,_0x4b5cab,_0x24c9f4,_0x534b86,_0x2607c7,_0x5d1a21,_0x36ef95,_0x2ce6b1,_0x3d2c43,_0x364307){const _0x7d12a8=_0x1f5a54;super(),l(this,_0x7d12a8(0x20a),new _0x24a55e(null)),l(this,_0x7d12a8(0x3f0),this[_0x7d12a8(0x20a)][_0x7d12a8(0x26b)]()),l(this,'_state'),l(this,_0x7d12a8(0x32a),!0x1),l(this,_0x7d12a8(0x41a),this[_0x7d12a8(0x3f0)]['pipe'](_0x28f321(_0x134b3c=>_0x134b3c?_0x134b3c['status']:w[_0x7d12a8(0x243)]),_0x4a0e36(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x7d12a8(0x3ba),[]),(this[_0x7d12a8(0x213)]=_0x3079f3,this[_0x7d12a8(0x14a)]=_0x39544b,this[_0x7d12a8(0x159)]=_0x6011ba,this[_0x7d12a8(0x3db)]=_0x134f77,this[_0x7d12a8(0x24c)]=_0x4b5cab,this['_compressMutationService']=_0x24c9f4,this[_0x7d12a8(0x3a6)]=_0x534b86,this['_revisionService']=_0x2607c7,this[_0x7d12a8(0x308)]=_0x5d1a21,this['_commandService']=_0x36ef95,this[_0x7d12a8(0x44b)]=_0x2ce6b1,this[_0x7d12a8(0x1ba)]=_0x3d2c43,this[_0x7d12a8(0x244)]=_0x364307);}get[_0x1f5a54(0x173)](){const _0x470ab2=_0x1f5a54;return this[_0x470ab2(0x31f)];}async[_0x1f5a54(0x33e)](){const _0x11c851=_0x1f5a54;if(this[_0x11c851(0x173)])throw new Error(_0x11c851(0x21c));await this[_0x11c851(0x3b6)]();}[_0x1f5a54(0x1b6)](){return this['_collaborationPaused']=!0x0,_0x5d3cf2(()=>{const _0x100132=_0x2f7f;this[_0x100132(0x32a)]=!0x1,this[_0x100132(0x2b0)]();});}[_0x1f5a54(0x3ae)](_0x55584d){const _0x1923e7=_0x1f5a54;this[_0x1923e7(0x31f)]=_0x55584d,this['_state$']['next'](_0x55584d);}async[_0x1f5a54(0x3b6)](){const _0x4a3ee9=_0x1f5a54;var _0x118d23;return this[_0x4a3ee9(0x3ae)](await this[_0x4a3ee9(0x306)]()),this['_singleActiveUnitService']&&((_0x118d23=this[_0x4a3ee9(0x244)])==null||_0x118d23[_0x4a3ee9(0x35d)](this[_0x4a3ee9(0x213)]),this[_0x4a3ee9(0x194)](_0x5d3cf2(this[_0x4a3ee9(0x244)][_0x4a3ee9(0x253)](this['unitID'])[_0x4a3ee9(0x2d9)](_0x57822e=>{const _0x28b564=_0x4a3ee9;this[_0x28b564(0x308)][_0x28b564(0x319)]('[CollaborationEntity]',_0x28b564(0x29c),_0x57822e),_0x57822e===ws[_0x28b564(0x2ef)]?(this[_0x28b564(0x44b)][_0x28b564(0x43a)]({'content':this[_0x28b564(0x3a6)]['t']('collaboration.single-unit.warning'),'type':_0x454b23[_0x28b564(0x17f)]}),this[_0x28b564(0x1ba)]['updatePermissionPoint'](new _0x278a53(this['unitID'])['id'],!0x1)):this[_0x28b564(0x1ba)][_0x28b564(0x2bb)](new _0x278a53(this[_0x28b564(0x213)])['id'],!0x0);})))),this[_0x4a3ee9(0x194)](_0x5d3cf2(this[_0x4a3ee9(0x159)][_0x4a3ee9(0x376)][_0x4a3ee9(0x2d9)](_0x2985c4=>{const _0x55e2cf=_0x4a3ee9;_0x2985c4===de[_0x55e2cf(0x405)]?this['_toggleOnline']():_0x2985c4===de[_0x55e2cf(0x243)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x5d3cf2(this[_0x4a3ee9(0x159)][_0x4a3ee9(0x403)]['subscribe'](_0x18194e=>{const _0x1c75a9=_0x4a3ee9;try{switch(_0x18194e[_0x1c75a9(0x2cf)]){case _0x505428[_0x1c75a9(0x2f5)]:{this[_0x1c75a9(0x26c)](_0x13fead(_0x18194e[_0x1c75a9(0x2a5)]));break;}case _0x505428[_0x1c75a9(0x27e)]:{this[_0x1c75a9(0x38f)](_0x18194e[_0x1c75a9(0x2a5)]);break;}case _0x505428['CHANGESET_REJ']:{this[_0x1c75a9(0x3fb)]();break;}case _0x505428[_0x1c75a9(0x421)]:{this[_0x1c75a9(0x226)](_0x18194e[_0x1c75a9(0x2a5)][_0x1c75a9(0x262)][_0x1c75a9(0x1a7)](_0x3352a5=>_0x13fead(_0x3352a5)));break;}case _0x505428['PERMISSION_REJ']:this[_0x1c75a9(0x3fb)]({'isPermissionRej':!0x0});}}catch(_0x1159c3){throw console['error'](_0x1c75a9(0x2d3),_0x1159c3),_0x1159c3;}}))),this[_0x4a3ee9(0x31f)];}[_0x1f5a54(0x2ce)](){const _0x1b7725=_0x1f5a54;this[_0x1b7725(0x21b)]=!0x1;}[_0x1f5a54(0x30d)](){const _0x1951ad=_0x1f5a54;if(this[_0x1951ad(0x21b)])throw new Error(_0x1951ad(0x37f));this[_0x1951ad(0x21b)]=!0x0;}['_onLocalMutation'](_0x339edd){const _0x447a31=_0x1f5a54;this[_0x447a31(0x30d)](),this[_0x447a31(0x3ae)](this[_0x447a31(0x31f)]['appendMutation'](_0x339edd)),this[_0x447a31(0x2ce)]();}[_0x1f5a54(0x26c)](_0x1922ea){const _0xe32fa4=_0x1f5a54;if(!(_0x1922ea[_0xe32fa4(0x35c)]<=this[_0xe32fa4(0x459)][_0xe32fa4(0x236)](this[_0xe32fa4(0x213)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x1922ea);return;}this['_applyRemoteChangeset'](_0x1922ea);}}[_0x1f5a54(0x2b0)](){const _0x4e70ed=_0x1f5a54;this[_0x4e70ed(0x3ba)][_0x4e70ed(0x37a)](_0x16511c=>this[_0x4e70ed(0x3b8)](_0x16511c)),this[_0x4e70ed(0x3ba)]=[];}[_0x1f5a54(0x3b8)](_0x4a1024){const _0xdb10e=_0x1f5a54,_0x3f5ecf=this[_0xdb10e(0x386)][_0xdb10e(0x396)][_0xdb10e(0x474)](this[_0xdb10e(0x386)][_0xdb10e(0x396)][_0xdb10e(0x3f6)]()[_0xdb10e(0x371)])(_0x4a1024[_0xdb10e(0x466)],null)||_0x4a1024[_0xdb10e(0x466)],_0x4b09b6={..._0x4a1024,'mutations':_0x3f5ecf};this['_lockTransition'](),this['_updateState'](this[_0xdb10e(0x31f)][_0xdb10e(0x201)](_0x4b09b6)),this[_0xdb10e(0x2ce)]();}[_0x1f5a54(0x38f)](_0x1a6d66){const _0x42b3b8=_0x1f5a54;this[_0x42b3b8(0x30d)](),this[_0x42b3b8(0x3ae)](this[_0x42b3b8(0x31f)]['onRemoteAck'](_0x1a6d66)),this[_0x42b3b8(0x2ce)]();}[_0x1f5a54(0x3fb)](_0x1d95ad){const _0x3dd1a1=_0x1f5a54;this['_lockTransition'](),this[_0x3dd1a1(0x3ae)](this[_0x3dd1a1(0x31f)]['onRemoteRej'](_0x1d95ad)),this[_0x3dd1a1(0x2ce)]();}[_0x1f5a54(0x226)](_0x212388){const _0x28e7e2=_0x1f5a54;if(!(this['_state']instanceof G))throw new TypeError(_0x28e7e2(0x1e4));const _0x2dd04e=_0x212388[_0x28e7e2(0x1a7)](_0x1ec60c=>{const _0x9e2526=_0x28e7e2,_0x5f1808=this[_0x9e2526(0x386)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x9e2526(0x396)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x1ec60c[_0x9e2526(0x466)],null)||_0x1ec60c[_0x9e2526(0x466)];return{..._0x1ec60c,'mutations':_0x5f1808};});this[_0x28e7e2(0x30d)](),this[_0x28e7e2(0x3ae)](this['_state']['onMissedChangesetFetched'](_0x2dd04e)),this['_unlockTransition']();}[_0x1f5a54(0x29a)](){const _0xb789d8=_0x1f5a54;this['_lockTransition'](),this['_updateState'](this[_0xb789d8(0x31f)][_0xb789d8(0x43d)]()),this[_0xb789d8(0x2ce)]();}[_0x1f5a54(0x22c)](){const _0x534587=_0x1f5a54;this[_0x534587(0x30d)](),this['_updateState'](this[_0x534587(0x31f)][_0x534587(0x21f)]()),this['_unlockTransition']();}async[_0x1f5a54(0x306)](){return new Promise(_0x3e61cd=>{const _0x3e4f02=_0x2f7f;this['_session']['sessionStatus$'][_0x3e4f02(0x180)](_0x4747bd(0x1))[_0x3e4f02(0x2d9)](async _0x3b799f=>{const _0x4015b5=_0x3e4f02;_0x3e61cd(await this[_0x4015b5(0x46f)](_0x3b799f===de[_0x4015b5(0x405)]));});});}[_0x1f5a54(0x1f6)](){const _0x31e639=_0x1f5a54,_0x17b19d=this[_0x31e639(0x213)];return{'onStateChange':(_0x4e02b3,_0x47a2d0)=>{const _0xa5ee17=_0x31e639;if(_0x4e02b3!==this[_0xa5ee17(0x31f)])throw new Error(_0xa5ee17(0x22f)+_0x4e02b3[_0xa5ee17(0x453)]+'\x0aAfter:\x20'+_0x47a2d0['status']+_0xa5ee17(0x24a)+this[_0xa5ee17(0x31f)][_0xa5ee17(0x453)]);this[_0xa5ee17(0x3ae)](_0x47a2d0);},'onSendChangeset':_0x1f7ebb=>{const _0x1a4b4d=_0x31e639,_0x86d475={'eventID':_0x505428[_0x1a4b4d(0x2d8)],'data':{'unitID':_0x1f7ebb['unitID'],'unitType':this[_0x1a4b4d(0x14a)],'changeset':_0x1f7ebb,'memberID':this[_0x1a4b4d(0x159)]['getMemberID']()}};this[_0x1a4b4d(0x159)]['send'](_0x86d475,this[_0x1a4b4d(0x213)]);},'onMissingChangesets':({from:_0x4fdced,to:_0x209961})=>{const _0x5ccbbc=_0x31e639;this[_0x5ccbbc(0x308)][_0x5ccbbc(0x319)](_0x5ccbbc(0x3e5),'fetching\x20missing\x20changesets\x20from\x20'+_0x4fdced+_0x5ccbbc(0x2d2)+_0x209961);const _0x48e6d7={'eventID':_0x505428[_0x5ccbbc(0x1da)],'data':{'unitID':_0x17b19d,'unitType':this[_0x5ccbbc(0x14a)],'from':_0x4fdced,'to':_0x209961}};this[_0x5ccbbc(0x159)][_0x5ccbbc(0x1b5)](_0x48e6d7,this[_0x5ccbbc(0x213)]);}};}async[_0x1f5a54(0x46f)](_0x99ef5c){const _0x34fa62=_0x1f5a54;var _0x30cac5,_0x51c0f8;const _0x57bb16=await this['_localCacheService'][_0x34fa62(0x473)](this[_0x34fa62(0x213)]),_0x291ad4=(_0x30cac5=_0x57bb16==null?void 0x0:_0x57bb16[_0x34fa62(0x466)])!=null?_0x30cac5:[],_0x1d83ae=(_0x51c0f8=_0x57bb16==null?void 0x0:_0x57bb16[_0x34fa62(0x266)])!=null?_0x51c0f8:null,_0x1a7f68=this[_0x34fa62(0x213)];try{this[_0x34fa62(0x2cd)](_0x1d83ae,_0x291ad4);}catch(_0x14918e){this[_0x34fa62(0x308)][_0x34fa62(0x419)](_0x14918e);}const _0x383625=this[_0x34fa62(0x1f6)]();if(_0x99ef5c){const _0x4ba679=Ms(this[_0x34fa62(0x3db)],_0x1a7f68,this[_0x34fa62(0x14a)],_0x1d83ae,_0x291ad4,_0x383625);return _0x4ba679 instanceof B?_0x4ba679[_0x34fa62(0x467)]():(_0x4ba679 instanceof W||_0x4ba679 instanceof q)&&_0x4ba679[_0x34fa62(0x392)](),_0x4ba679;}return this[_0x34fa62(0x3db)][_0x34fa62(0x145)](z,_0x1a7f68,this[_0x34fa62(0x14a)],_0x1d83ae,_0x291ad4,_0x383625);}[_0x1f5a54(0x2cd)](_0xff6f9b,_0x52f8db){const _0x530e62=_0x1f5a54;var _0x465799,_0x409d79;const _0x4f9fec=this[_0x530e62(0x386)][_0x530e62(0x396)][_0x530e62(0x474)](this[_0x530e62(0x386)][_0x530e62(0x396)][_0x530e62(0x3f6)]()[_0x530e62(0x371)]);(_0x465799=_0x4f9fec((_0xff6f9b==null?void 0x0:_0xff6f9b['mutations'])||[],null))==null||_0x465799['forEach'](_0x2a2c0a=>this['_commandService'][_0x530e62(0x2b2)](_0x2a2c0a['id'],_0x2a2c0a[_0x530e62(0x3ef)])),(_0x409d79=_0x4f9fec(_0x52f8db||[],null))==null||_0x409d79[_0x530e62(0x37a)](_0x2dfbbb=>this['_commandService']['executeCommand'](_0x2dfbbb['id'],_0x2dfbbb[_0x530e62(0x3ef)]));}};ze=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x3e33de),S(0x9,_0x257ce4),S(0xa,_0x58c973),S(0xb,_0x1721b0),S(0xc,_0x455db1(et))],ze);let vt=class extends ze{constructor(_0x4ac2b4,_0xc702cd,_0x2c4bc5,_0x3ed80b,_0x3ca47f,_0x3efb4f,_0x21edfb,_0x1e1193,_0x460600,_0x3444a2,_0x11c485,_0x3b2340,_0x4eb87f,_0x46f819,_0x4858cb,_0x348bb4,_0x5ec338){const _0x1c0f7e=_0x1f5a54;super(_0x4ac2b4,_0xc702cd,_0x2c4bc5,_0x3ed80b,_0x3ca47f,_0x3efb4f,_0x21edfb,_0x1e1193,_0x4eb87f,_0x46f819,_0x4858cb,_0x348bb4,_0x5ec338),this[_0x1c0f7e(0x213)]=_0x4ac2b4,this[_0x1c0f7e(0x400)]=_0xc702cd,this[_0x1c0f7e(0x452)]=_0x2c4bc5,this[_0x1c0f7e(0x2eb)]=_0x460600,this[_0x1c0f7e(0x20d)]=_0x3444a2,this[_0x1c0f7e(0x1b4)]=_0x11c485,this[_0x1c0f7e(0x3f1)]=_0x3b2340;}[_0x1f5a54(0x1f6)](){const _0x134b8c=_0x1f5a54,_0x39c03a=super[_0x134b8c(0x1f6)]();return _0x39c03a[_0x134b8c(0x39c)]=_0xb76f22=>this['_docTransformIMECacheService']['transformIMECache'](_0xb76f22),_0x39c03a['onTransformSelections']=_0x5d964a=>this[_0x134b8c(0x1b4)][_0x134b8c(0x234)](_0x5d964a),_0x39c03a['onSyncEditingCollabCursor']=_0x1a903f=>this[_0x134b8c(0x3f1)][_0x134b8c(0x15f)](_0x1a903f),_0x39c03a['onTransformRemoteChangesetByIMECache']=_0xc8e9a8=>this[_0x134b8c(0x20d)][_0x134b8c(0x348)](_0xc8e9a8),_0x39c03a;}async[_0x1f5a54(0x3b6)](){const _0x4891b7=_0x1f5a54,_0x11ab12=await super[_0x4891b7(0x3b6)]();return this[_0x4891b7(0x2eb)][_0x4891b7(0x1c2)][_0x4891b7(0x180)](_0x57fb4a(this[_0x4891b7(0x3cd)]))['subscribe'](_0x39e562=>{const _0x2ea652=_0x4891b7;if(_0x39e562==null)return;const {unitId:_0x598f1a,redoState:_0x3b4884,commandId:_0x9bc7ae}=_0x39e562;if(_0x598f1a!==this[_0x2ea652(0x213)])return;const _0xe89bd6={'id':_0x9bc7ae,'type':_0x4d2326[_0x2ea652(0x28e)],'params':{'unitId':_0x598f1a,'actions':_0x3b4884[_0x2ea652(0x1b1)],'textRanges':null}};this['_onLocalMutation'](_0xe89bd6);}),_0x11ab12;}};vt=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x61a763(_0x3a189c)),S(0x9,_0x61a763(Xe)),S(0xa,_0x61a763(Je)),S(0xb,_0x61a763(Ut)),S(0xc,_0x3e33de),S(0xd,_0x257ce4),S(0xe,_0x58c973),S(0xf,_0x1721b0),S(0x10,_0x455db1(et))],vt);let pt=class extends ze{constructor(_0x582abc,_0x3691cf,_0x3847d3,_0xd409cf,_0x125e1e,_0x1a093a,_0x4f5650,_0xc5ba64,_0x45b996,_0x31efa1,_0x63f8dc,_0x37da95,_0x498ae2,_0x3a9f36){const _0x4cea9d=_0x1f5a54;super(_0x582abc,_0x3691cf,_0x3847d3,_0xd409cf,_0x125e1e,_0x1a093a,_0x4f5650,_0xc5ba64,_0x31efa1,_0x63f8dc,_0x37da95,_0x498ae2,_0x3a9f36),this[_0x4cea9d(0x213)]=_0x582abc,this[_0x4cea9d(0x400)]=_0x3691cf,this[_0x4cea9d(0x452)]=_0x3847d3,this[_0x4cea9d(0x313)]=_0x45b996;}[_0x1f5a54(0x1f6)](){const _0x1bc1dc=_0x1f5a54,_0x328301=super[_0x1bc1dc(0x1f6)]();return _0x328301['onTransformSelections']=_0x3fcf65=>this[_0x1bc1dc(0x313)][_0x1bc1dc(0x234)](_0x3fcf65),_0x328301;}async[_0x1f5a54(0x3b6)](){const _0x3bef5e=_0x1f5a54,_0x408df3=await super[_0x3bef5e(0x3b6)]();return this['disposeWithMe'](this[_0x3bef5e(0x299)][_0x3bef5e(0x39e)]((_0x269dc6,_0x122e24)=>{const _0xcf1666=_0x3bef5e;if(_0x269dc6[_0xcf1666(0x400)]!==_0x4d2326['MUTATION']||_0x122e24!=null&&_0x122e24['fromCollab']||_0x122e24!=null&&_0x122e24[_0xcf1666(0x42c)])return;const _0x532a94=_0x269dc6['params'];if((_0x532a94==null?void 0x0:_0x532a94[_0xcf1666(0x3f8)])!==this['unitID'])return;const _0x17dac6=_0x269dc6,_0x939fa5=this[_0xcf1666(0x386)][_0xcf1666(0x396)][_0xcf1666(0x474)](this[_0xcf1666(0x386)][_0xcf1666(0x396)][_0xcf1666(0x3f6)]()[_0xcf1666(0x344)])([_0x17dac6],null)||[_0x17dac6];this[_0xcf1666(0x472)](_0x939fa5[0x0]);})),_0x408df3;}};pt=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x61a763(qe)),S(0x9,_0x3e33de),S(0xa,_0x257ce4),S(0xb,_0x58c973),S(0xc,_0x1721b0),S(0xd,_0x455db1(et))],pt);const es=['purple300',_0x1f5a54(0x246),'verdancy600',_0x1f5a54(0x2ae),_0x1f5a54(0x189),_0x1f5a54(0x2c7)];class Lt extends _0x462626{constructor(){const _0x354bc0=_0x1f5a54;super(...arguments),l(this,_0x354bc0(0x340),new Map()),l(this,_0x354bc0(0x207),0x0);}[_0x1f5a54(0x2ee)](_0x363fda){const _0x3d083c=_0x1f5a54;if(this[_0x3d083c(0x340)][_0x3d083c(0x1d8)](_0x363fda))return this['_assignedColors']['get'](_0x363fda);const _0x20cb41=es[this[_0x3d083c(0x207)]];return this[_0x3d083c(0x207)]=(this[_0x3d083c(0x207)]+0x1)%es[_0x3d083c(0x2d6)],this[_0x3d083c(0x340)][_0x3d083c(0x22e)](_0x363fda,_0x20cb41),_0x20cb41;}}var zn=Object[_0x1f5a54(0x29f)],Zn=Object[_0x1f5a54(0x3cc)],Qn=(_0x41034c,_0x41e6f3,_0x49e7e9,_0x4558b7)=>{const _0x2fad77=_0x1f5a54;for(var _0x257533=_0x4558b7>0x1?void 0x0:_0x4558b7?Zn(_0x41e6f3,_0x49e7e9):_0x41e6f3,_0x420e97=_0x41034c[_0x2fad77(0x2d6)]-0x1,_0x3067dc;_0x420e97>=0x0;_0x420e97--)(_0x3067dc=_0x41034c[_0x420e97])&&(_0x257533=(_0x4558b7?_0x3067dc(_0x41e6f3,_0x49e7e9,_0x257533):_0x3067dc(_0x257533))||_0x257533);return _0x4558b7&&_0x257533&&zn(_0x41e6f3,_0x49e7e9,_0x257533),_0x257533;},he=(_0x27e748,_0x4743d8)=>(_0x609922,_0x23899c)=>_0x4743d8(_0x609922,_0x23899c,_0x27e748);const er=0x12c,tr=0x64,sr=()=>{let _0x169fc4=[],_0x3031e4=!0x1;return _0x176d59=>{const _0x1e430d=_0x2f7f;_0x169fc4[_0x1e430d(0x310)](_0x176d59),_0x3031e4||(_0x3031e4=!0x0,setTimeout(()=>{const _0x32b75c=_0x1e430d;_0x169fc4[_0x32b75c(0x37a)](_0x44d1b9=>_0x44d1b9()),_0x169fc4=[],_0x3031e4=!0x1;}));};};let It=class extends _0x5915f1{constructor(_0xb95516,_0x41bffe,_0x3ca3f1,_0x172e8b,_0x20ebdd,_0x1285b2,_0x2bb0f2,_0x4a69fa){const _0x3e8dda=_0x1f5a54;super(),l(this,_0x3e8dda(0x144),!0x1),l(this,_0x3e8dda(0x3b6),!0x1),l(this,_0x3e8dda(0x172),new _0x24a55e(new Map())),l(this,_0x3e8dda(0x296),this[_0x3e8dda(0x172)][_0x3e8dda(0x26b)]()),l(this,_0x3e8dda(0x192),new _0x24a55e([])),l(this,_0x3e8dda(0x3c1),this[_0x3e8dda(0x192)]['pipe'](_0x49f759(er))),l(this,_0x3e8dda(0x2bf),_0x21574d((_0x3a0122,_0x5c999f)=>{const _0x5df923=_0x3e8dda,_0x4a39b4={'eventID':_0x505428['UPDATE_CURSOR'],'data':{'unitID':this[_0x5df923(0x213)],'memberID':this[_0x5df923(0x159)][_0x5df923(0x385)](),'selection':_0x24fc6d(_0x3a0122,_0x5c999f['range'])}};this[_0x5df923(0x159)]['send'](_0x4a39b4,this[_0x5df923(0x213)]);},tr)),(this[_0x3e8dda(0x213)]=_0xb95516,this[_0x3e8dda(0x159)]=_0x41bffe,this[_0x3e8dda(0x3db)]=_0x3ca3f1,this['_colorAssignService']=_0x172e8b,this[_0x3e8dda(0x2a0)]=_0x20ebdd,this[_0x3e8dda(0x357)]=_0x1285b2,this[_0x3e8dda(0x299)]=_0x2bb0f2,this[_0x3e8dda(0x2fa)]=_0x4a69fa);}get[_0x1f5a54(0x31e)](){const _0x5769ff=_0x1f5a54;return this[_0x5769ff(0x172)][_0x5769ff(0x321)]();}get[_0x1f5a54(0x38a)](){const _0x204364=_0x1f5a54;return this[_0x204364(0x192)]['getValue']();}[_0x1f5a54(0x26e)](){const _0x26d1bc=_0x1f5a54;super[_0x26d1bc(0x26e)](),this['_cursorInfo$']['next'](new Map()),this[_0x26d1bc(0x172)][_0x26d1bc(0x424)](),this[_0x26d1bc(0x192)][_0x26d1bc(0x39b)]([]),this['_roomMembers$'][_0x26d1bc(0x424)]();}[_0x1f5a54(0x33e)](){const _0x489da9=_0x1f5a54;this['_init']||(this[_0x489da9(0x3b6)]=!0x0,this[_0x489da9(0x159)]['sessionStatus$'][_0x489da9(0x180)](_0x57fb4a(this[_0x489da9(0x3cd)]))[_0x489da9(0x2d9)](_0x3ed328=>{const _0x380112=_0x489da9;_0x3ed328===de[_0x380112(0x405)]?this[_0x380112(0x22c)]():this['_toggleOffline']();}),this[_0x489da9(0x159)][_0x489da9(0x403)][_0x489da9(0x180)](_0x57fb4a(this['dispose$']))['subscribe'](_0x25a34c=>{const _0x35a310=_0x489da9,_0xc8b6d1=_0x25a34c['eventID'];_0xc8b6d1===_0x505428[_0x35a310(0x412)]&&this['_onCursorUpdate'](_0x25a34c),_0xc8b6d1===_0x505428[_0x35a310(0x42b)]&&this['_onCursorDelete'](_0x25a34c);}),this[_0x489da9(0x2d7)](),this[_0x489da9(0x194)](this[_0x489da9(0x299)]['onCommandExecuted'](_0xc1f4a1=>{const _0x5e2d07=_0x489da9;if(this[_0x5e2d07(0x144)]&&_0xc1f4a1['id']===_0x109738['id']&&_0xc1f4a1[_0x5e2d07(0x3ef)]['unitId']===this[_0x5e2d07(0x213)]){const _0x4cea45=_0xc1f4a1['params'];this[_0x5e2d07(0x2bf)](_0x4cea45['subUnitId'],_0x4cea45[_0x5e2d07(0x2ab)][0x0]);}})));}[_0x1f5a54(0x316)](_0x35d48e){const _0x865112=_0x1f5a54;var _0x587a15,_0x168ee3;const {memberID:_0xd5ed4d,selection:_0x629c96}=_0x35d48e[_0x865112(0x2a5)],{sheetName:_0x1943e8,range:_0x16945b}=_0x13b7f9(_0x629c96),_0x433647={'name':(_0x168ee3=(_0x587a15=this['_memberService']['getMember'](this[_0x865112(0x213)],_0xd5ed4d))==null?void 0x0:_0x587a15[_0x865112(0x40c)])!=null?_0x168ee3:_0x865112(0x23e),'range':this[_0x865112(0x406)](_0x1943e8,_0x16945b),'sheetID':_0x1943e8,'color':this[_0x865112(0x311)][_0x865112(0x2ee)](_0xd5ed4d),'selection':_0x629c96},_0x78eb61=this[_0x865112(0x31e)];_0x78eb61[_0x865112(0x22e)](_0xd5ed4d,_0x433647),this['_cursorInfo$']['next'](_0x78eb61);}[_0x1f5a54(0x1be)](_0x1bfbe5){const _0x1117d3=_0x1f5a54,{memberID:_0x5d6d67}=_0x1bfbe5[_0x1117d3(0x2a5)],_0x8cae25=this[_0x1117d3(0x31e)];_0x8cae25['delete'](_0x5d6d67),this[_0x1117d3(0x172)][_0x1117d3(0x39b)](_0x8cae25);}[_0x1f5a54(0x406)](_0x1b05dc,_0x404ea6){const _0x84f05c=_0x1f5a54;var _0x130b11,_0x50cb00;const _0x576d97=(_0x50cb00=(_0x130b11=this[_0x84f05c(0x357)][_0x84f05c(0x46c)](this['unitID']))==null?void 0x0:_0x130b11[_0x84f05c(0x232)](_0x1b05dc))==null?void 0x0:_0x50cb00[_0x84f05c(0x330)]();return(_0x576d97==null?void 0x0:_0x576d97[_0x84f05c(0x17c)](_0x294c32=>_0x708e4b[_0x84f05c(0x463)](_0x294c32,_0x404ea6)))||_0x404ea6;}[_0x1f5a54(0x2d7)](){const _0x3747f9=_0x1f5a54,_0x2c8035=new _0x1382fe(),_0x2d5cf7=sr(),_0x50d41c=()=>{const _0x57e7d4=_0x2f7f;_0x2c8035[_0x57e7d4(0x26e)]();const _0x2010d4=(_0x4bc4e5,_0x48ef4c,_0x36dcaf,_0x1fcce7)=>{const _0x462805=_0x57e7d4;let _0x357d35=[];switch(_0x4bc4e5['id']){case _0x349867[_0x462805(0x161)]:{_0x357d35=_0x3e36a2(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x1db)]:{_0x357d35=_0xad81ef(_0x4bc4e5,_0x1fcce7);break;}case _0x349867['InsertColCommandId']:{_0x357d35=_0x185ab7(_0x4bc4e5,_0x1fcce7);break;}case _0x349867['InsertRangeMoveDownCommandId']:{_0x357d35=_0x13c601(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x197)]:{_0x357d35=_0x515386(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x170)]:{_0x357d35=_0x56aa1d(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x37d)]:{_0x357d35=_0x544ab2(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x247)]:{_0x357d35=_0x2db791(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x26d)]:{_0x357d35=_0x2ff430(_0x4bc4e5,_0x1fcce7);break;}}const _0x11ccc3=_0x16303f(_0x357d35,_0x1fcce7),_0x1473bb=this[_0x462805(0x31e)]['get'](_0x48ef4c);if(_0x1473bb&&_0x11ccc3){const _0x3f6b43={..._0x1473bb,'range':_0x11ccc3};this['cursorInfo'][_0x462805(0x22e)](_0x48ef4c,_0x3f6b43),_0x2d5cf7(()=>{const _0x83311c=_0x462805,_0x1100b8=this[_0x83311c(0x2fa)][_0x83311c(0x27a)](_0x11ccc3,_0x4c1c8f=>(_0x1100b8['dispose'](),_0x2010d4(_0x4c1c8f,_0x48ef4c,_0x36dcaf,_0x11ccc3)));_0x2c8035[_0x83311c(0x3c0)](_0x1100b8);});}return{'redos':[],'undos':[]};};this[_0x57e7d4(0x31e)][_0x57e7d4(0x37a)]((_0x2dbb82,_0x78b5d1)=>{const _0x5cc323=_0x57e7d4,{range:_0x55bfbe,sheetID:_0x142119}=_0x2dbb82,_0x59dae3=this['_refRangeService'][_0x5cc323(0x27a)](_0x55bfbe,_0x230d84=>(_0x59dae3['dispose'](),_0x2010d4(_0x230d84,_0x78b5d1,_0x142119,_0x55bfbe)));_0x2c8035[_0x5cc323(0x3c0)](_0x59dae3);});};this[_0x3747f9(0x194)](_0x5d3cf2(this['_cursorInfo$'][_0x3747f9(0x2d9)](()=>{_0x50d41c();})));}[_0x1f5a54(0x22c)](){const _0x26aced=_0x1f5a54;var _0x5cd6f7,_0x3fe489;if(this[_0x26aced(0x144)]=!0x0,((_0x5cd6f7=this[_0x26aced(0x357)][_0x26aced(0x3ed)]())==null?void 0x0:_0x5cd6f7[_0x26aced(0x2a2)]())!==this['unitID'])return;const _0x196f28=(_0x3fe489=this['_injector'][_0x26aced(0x393)](_0x5914fd)[_0x26aced(0x208)]())==null?void 0x0:_0x3fe489[0x0],_0x430c43=this['_univerInstanceService'][_0x26aced(0x440)](_0x5cab0b[_0x26aced(0x320)])['getActiveSheet']();_0x196f28&&_0x430c43&&this['_updateLocalCursor'](_0x430c43[_0x26aced(0x31a)](),_0x196f28);}['_toggleOffline'](){const _0x8fc27=_0x1f5a54;this[_0x8fc27(0x144)]=!0x1;}};It=Qn([he(0x2,_0x61a763(_0x2e9f94)),he(0x3,_0x61a763(Lt)),he(0x4,_0x61a763(ne)),he(0x5,_0x55bd21),he(0x6,_0x257ce4),he(0x7,_0x61a763(_0x351ccc))],It);var ir=Object[_0x1f5a54(0x29f)],nr=Object[_0x1f5a54(0x3cc)],rr=(_0x14024e,_0x4842b8,_0x254590,_0x2640c4)=>{const _0x87c145=_0x1f5a54;for(var _0x242925=_0x2640c4>0x1?void 0x0:_0x2640c4?nr(_0x4842b8,_0x254590):_0x4842b8,_0x324d03=_0x14024e[_0x87c145(0x2d6)]-0x1,_0x3dee07;_0x324d03>=0x0;_0x324d03--)(_0x3dee07=_0x14024e[_0x324d03])&&(_0x242925=(_0x2640c4?_0x3dee07(_0x4842b8,_0x254590,_0x242925):_0x3dee07(_0x242925))||_0x242925);return _0x2640c4&&_0x242925&&ir(_0x4842b8,_0x254590,_0x242925),_0x242925;},te=(_0x51b198,_0x5afaa5)=>(_0x2a3caf,_0x3534d8)=>_0x5afaa5(_0x2a3caf,_0x3534d8,_0x51b198);const or=0x12c,ar=0x64;let Et=class extends _0x5915f1{constructor(_0x2129c9,_0x4bff47,_0x20ee4b,_0x39d31a,_0x3ecf68,_0x144707,_0x2d24b0,_0x73ba2e,_0x2ff943){const _0x39f835=_0x1f5a54;super(),l(this,_0x39f835(0x144),!0x1),l(this,_0x39f835(0x3b6),!0x1),l(this,'_cursorInfo$',new _0x24a55e(new Map())),l(this,_0x39f835(0x296),this[_0x39f835(0x172)][_0x39f835(0x26b)]()),l(this,_0x39f835(0x192),new _0x24a55e([])),l(this,'roomMembers$',this[_0x39f835(0x192)][_0x39f835(0x180)](_0x49f759(or))),l(this,_0x39f835(0x2bf),_0x21574d(_0x58c3c6=>{const _0x5bcacd=_0x39f835,_0x3dc158={'eventID':_0x505428[_0x5bcacd(0x412)],'data':{'unitID':this[_0x5bcacd(0x213)],'memberID':this[_0x5bcacd(0x159)][_0x5bcacd(0x385)](),'selection':Ns(_0x58c3c6)}};this[_0x5bcacd(0x159)][_0x5bcacd(0x1b5)](_0x3dc158,this['unitID']);},ar)),(this[_0x39f835(0x213)]=_0x2129c9,this['_session']=_0x4bff47,this['_injector']=_0x20ee4b,this[_0x39f835(0x311)]=_0x39d31a,this[_0x39f835(0x2a0)]=_0x3ecf68,this[_0x39f835(0x2ba)]=_0x144707,this[_0x39f835(0x327)]=_0x2d24b0,this[_0x39f835(0x357)]=_0x73ba2e,this[_0x39f835(0x299)]=_0x2ff943);}get[_0x1f5a54(0x31e)](){const _0x3e05cf=_0x1f5a54;return this['_cursorInfo$'][_0x3e05cf(0x321)]();}get['roomMembers'](){const _0x55883c=_0x1f5a54;return this[_0x55883c(0x192)][_0x55883c(0x321)]();}[_0x1f5a54(0x26e)](){const _0x2b81d7=_0x1f5a54;super[_0x2b81d7(0x26e)](),this[_0x2b81d7(0x172)][_0x2b81d7(0x39b)](new Map()),this[_0x2b81d7(0x172)][_0x2b81d7(0x424)](),this['_roomMembers$'][_0x2b81d7(0x39b)]([]),this[_0x2b81d7(0x192)][_0x2b81d7(0x424)]();}[_0x1f5a54(0x33e)](){const _0x54885a=_0x1f5a54;this[_0x54885a(0x3b6)]||(this['_init']=!0x0,this[_0x54885a(0x159)]['sessionStatus$'][_0x54885a(0x180)](_0x57fb4a(this['dispose$']))[_0x54885a(0x2d9)](_0x3a7d13=>{const _0x8f025b=_0x54885a;_0x3a7d13===de[_0x8f025b(0x405)]?this[_0x8f025b(0x22c)]():this[_0x8f025b(0x29a)]();}),this[_0x54885a(0x159)][_0x54885a(0x403)][_0x54885a(0x180)](_0x57fb4a(this[_0x54885a(0x3cd)]))[_0x54885a(0x2d9)](_0x3ad4cd=>{const _0x1f6fd9=_0x54885a,_0x3a09cd=_0x3ad4cd[_0x1f6fd9(0x2cf)];_0x3a09cd===_0x505428['UPDATE_CURSOR']&&this[_0x1f6fd9(0x316)](_0x3ad4cd),_0x3a09cd===_0x505428[_0x1f6fd9(0x42b)]&&this[_0x1f6fd9(0x1be)](_0x3ad4cd);}),this[_0x54885a(0x194)](this[_0x54885a(0x299)][_0x54885a(0x39e)](_0x2d1963=>{const _0x39bfa6=_0x54885a,_0x3432c8=_0x2d1963[_0x39bfa6(0x3ef)];_0x3432c8!=null&&this[_0x39bfa6(0x144)]&&_0x2d1963['id']===_0x477910['id']&&_0x3432c8[_0x39bfa6(0x3f8)]===this[_0x39bfa6(0x213)]&&_0x3432c8[_0x39bfa6(0x3e0)]===!0x1&&this[_0x39bfa6(0x2bf)](_0x3432c8[_0x39bfa6(0x3af)]);})),this['_syncEditingCollabCursorService'][_0x54885a(0x155)]['pipe'](_0x57fb4a(this['dispose$']))[_0x54885a(0x2d9)](_0x4b911e=>{const _0xae52a1=_0x54885a;if((_0x4b911e==null?void 0x0:_0x4b911e['unitID'])!==this[_0xae52a1(0x213)])return;const _0x11f08a={'eventID':_0x505428[_0xae52a1(0x412)],'data':_0x4b911e};this['_onCursorUpdate'](_0x11f08a);}),this['disposeWithMe'](this[_0x54885a(0x299)][_0x54885a(0x39e)](_0x82e18=>{const _0x127d99=_0x54885a;if(_0x82e18[_0x127d99(0x3ef)]==null)return;const _0x4745db=_0x82e18[_0x127d99(0x3ef)];if(_0x82e18['id']!==_0x52bb0d['id']||_0x4745db[_0x127d99(0x3f8)]!==this[_0x127d99(0x213)])return;const _0x292074={'id':'doc.mutation.rich-text-editing','params':_0x4745db},_0x3f1100=this[_0x127d99(0x31e)];for(const [_0x286f9d,_0x331740]of _0x3f1100){const _0xb0dcd7={'id':_0x127d99(0x14c),'params':{'unitId':this[_0x127d99(0x213)],'actions':null,'textRanges':_0x331740['ranges']}},_0x1cea3b=this[_0x127d99(0x327)][_0x127d99(0x34d)](_0x292074,_0xb0dcd7,!0x1);if(_0x2bbef6(_0x1cea3b))throw _0x1cea3b[_0x127d99(0x419)];_0x3f1100[_0x127d99(0x22e)](_0x286f9d,{..._0x331740,'ranges':_0x1cea3b[_0x127d99(0x349)][_0x127d99(0x3ef)][_0x127d99(0x279)]});}queueMicrotask(()=>{const _0x1d63cd=_0x127d99;this[_0x1d63cd(0x172)][_0x1d63cd(0x39b)](_0x3f1100);});})));}[_0x1f5a54(0x316)](_0x39f286){const _0x5e3a20=_0x1f5a54;var _0x7b8de7,_0x40a96e;const {memberID:_0x2aac8c,selection:_0x4d4435}=_0x39f286[_0x5e3a20(0x2a5)],_0x39d5fa=xn(_0x4d4435),_0x17d48e=(_0x40a96e=(_0x7b8de7=this[_0x5e3a20(0x2a0)]['getMember'](this[_0x5e3a20(0x213)],_0x2aac8c))==null?void 0x0:_0x7b8de7['name'])!=null?_0x40a96e:_0x5e3a20(0x23e),_0x5cef9e={'color':this[_0x5e3a20(0x311)][_0x5e3a20(0x2ee)](_0x2aac8c),'name':_0x17d48e,'ranges':_0x39d5fa},_0x2ddfd8=this[_0x5e3a20(0x31e)];_0x2ddfd8[_0x5e3a20(0x22e)](_0x2aac8c,_0x5cef9e),this[_0x5e3a20(0x172)]['next'](_0x2ddfd8);}[_0x1f5a54(0x1be)](_0x3ff088){const _0xee2011=_0x1f5a54,{memberID:_0x2c0ba0}=_0x3ff088['data'],_0xa927ae=this[_0xee2011(0x31e)];_0xa927ae[_0xee2011(0x3a5)](_0x2c0ba0),this[_0xee2011(0x172)][_0xee2011(0x39b)](_0xa927ae);}[_0x1f5a54(0x22c)](){const _0xc5f218=_0x1f5a54;var _0x2c9916;if(this['_online']=!0x0,((_0x2c9916=this[_0xc5f218(0x357)]['getFocusedUnit']())==null?void 0x0:_0x2c9916[_0xc5f218(0x2a2)]())!==this[_0xc5f218(0x213)])return;const _0x1aa725=this[_0xc5f218(0x3db)][_0xc5f218(0x393)](_0x233706)['getCurrentSelections'](),_0x17fd6a=_0x1aa725==null?void 0x0:_0x1aa725['map'](_0x4605fa);Array[_0xc5f218(0x150)](_0x17fd6a)&&_0x17fd6a[_0xc5f218(0x2d6)]>0x0&&this[_0xc5f218(0x2bf)](_0x17fd6a);}['_toggleOffline'](){const _0x6b58ba=_0x1f5a54;this[_0x6b58ba(0x144)]=!0x1;}};Et=rr([te(0x2,_0x61a763(_0x2e9f94)),te(0x3,_0x61a763(Lt)),te(0x4,_0x61a763(ne)),te(0x5,_0x61a763(Ut)),te(0x6,_0x1215ee),te(0x7,_0x55bd21),te(0x8,_0x257ce4)],Et);var cr=Object[_0x1f5a54(0x29f)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x3c1f0f,_0x1f7f56,_0x163fef,_0x34b36a)=>{for(var _0x2b7dfe=_0x34b36a>0x1?void 0x0:_0x34b36a?hr(_0x1f7f56,_0x163fef):_0x1f7f56,_0x33bae1=_0x3c1f0f['length']-0x1,_0x42233b;_0x33bae1>=0x0;_0x33bae1--)(_0x42233b=_0x3c1f0f[_0x33bae1])&&(_0x2b7dfe=(_0x34b36a?_0x42233b(_0x1f7f56,_0x163fef,_0x2b7dfe):_0x42233b(_0x2b7dfe))||_0x2b7dfe);return _0x34b36a&&_0x2b7dfe&&cr(_0x1f7f56,_0x163fef,_0x2b7dfe),_0x2b7dfe;},ct=(_0x4c5b08,_0x41af1c)=>(_0x56b7df,_0x595f01)=>_0x41af1c(_0x56b7df,_0x595f01,_0x4c5b08);let fe=class extends _0x5915f1{constructor(_0x21522a,_0x322ef0,_0x1e76ff){const _0x2db3f3=_0x1f5a54;super(),l(this,_0x2db3f3(0x457),new Map()),l(this,_0x2db3f3(0x157),new _0x295019()),(this[_0x2db3f3(0x357)]=_0x21522a,this[_0x2db3f3(0x3db)]=_0x322ef0,this[_0x2db3f3(0x3dc)]=_0x1e76ff,this[_0x2db3f3(0x3b6)]());}[_0x1f5a54(0x26e)](){const _0x1b44e5=_0x1f5a54;super[_0x1b44e5(0x26e)](),this['_entityInit$'][_0x1b44e5(0x424)](),this[_0x1b44e5(0x457)]['forEach'](_0x212510=>_0x212510['dispose']());}[_0x1f5a54(0x25c)](_0x3a909b){const _0x4232dc=_0x1f5a54;return this[_0x4232dc(0x457)][_0x4232dc(0x1d8)](_0x3a909b)?this[_0x4232dc(0x457)][_0x4232dc(0x393)](_0x3a909b)[_0x4232dc(0x296)]:this[_0x4232dc(0x157)][_0x4232dc(0x180)](_0x21a70c(_0x297c09=>_0x297c09[_0x4232dc(0x213)]===_0x3a909b),_0x44b0e5(_0x4e4197=>_0x4e4197['cursorInfo$']));}[_0x1f5a54(0x3b6)](){const _0x1ddfe0=_0x1f5a54;this[_0x1ddfe0(0x357)]['getTypeOfUnitAdded$'](_0x5cab0b[_0x1ddfe0(0x320)])[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))[_0x1ddfe0(0x2d9)](async _0x55540b=>{const _0x113593=_0x1ddfe0,_0x4be07f=_0x55540b[_0x113593(0x2a2)](),_0x3bd7ca=await this[_0x113593(0x2b6)](_0x4be07f);this[_0x113593(0x157)][_0x113593(0x39b)](_0x3bd7ca),this['_entities'][_0x113593(0x22e)](_0x4be07f,_0x3bd7ca);}),this[_0x1ddfe0(0x357)][_0x1ddfe0(0x1fb)](_0x5cab0b[_0x1ddfe0(0x315)])[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))['pipe'](_0x21a70c(_0x27fcc2=>!_0x27fcc2[_0x1ddfe0(0x2a2)]()[_0x1ddfe0(0x41d)]('__')))[_0x1ddfe0(0x2d9)](async _0x3ece30=>{const _0x40184c=_0x1ddfe0,_0x2ad90b=_0x3ece30[_0x40184c(0x2a2)](),_0x49b273=await this[_0x40184c(0x356)](_0x2ad90b);this[_0x40184c(0x157)][_0x40184c(0x39b)](_0x49b273),this[_0x40184c(0x457)]['set'](_0x2ad90b,_0x49b273);}),_0x2e3217(this[_0x1ddfe0(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x1ddfe0(0x315)]),this[_0x1ddfe0(0x357)][_0x1ddfe0(0x303)](_0x5cab0b[_0x1ddfe0(0x320)]))[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))['subscribe'](_0x4ecfe8=>{const _0x270d2a=_0x1ddfe0,_0xd4afd8=_0x4ecfe8[_0x270d2a(0x2a2)](),_0x61c5bd=this[_0x270d2a(0x457)][_0x270d2a(0x393)](_0xd4afd8);_0x61c5bd&&(_0x61c5bd[_0x270d2a(0x26e)](),this[_0x270d2a(0x457)][_0x270d2a(0x3a5)](_0xd4afd8));});}async['_startSheetCollabCursor'](_0x154c24){const _0x424683=_0x1f5a54,_0x24cf43=await this[_0x424683(0x3dc)][_0x424683(0x46e)](_0x154c24),_0x3be973=this[_0x424683(0x3db)]['createInstance'](It,_0x154c24,_0x24cf43);return _0x3be973['init'](),_0x3be973;}async['_startDocCollabCursor'](_0x3f31fd){const _0x372fc9=_0x1f5a54,_0x3871c8=await this[_0x372fc9(0x3dc)][_0x372fc9(0x46e)](_0x3f31fd),_0x21fc1c=this['_injector'][_0x372fc9(0x145)](Et,_0x3f31fd,_0x3871c8);return _0x21fc1c['init'](),_0x21fc1c;}};fe=lr([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],fe),ct(0x0,_0x55bd21),ct(0x1,_0x61a763(_0x2e9f94)),ct(0x2,_0x61a763(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,_r=0x5;function ur(_0x4d5f38,_0x34cfaa){const _0x4629c8=_0x1f5a54;let {radius:_0x123213,width:_0x24d5a8,height:_0xa40cfe}=_0x34cfaa;_0x123213=_0x123213!=null?_0x123213:0x0,_0x24d5a8=_0x24d5a8!=null?_0x24d5a8:0x1e,_0xa40cfe=_0xa40cfe!=null?_0xa40cfe:0x1e;let _0x5f10a6=0x0,_0x17e538=0x0,_0x3830f7=0x0;_0x5f10a6=_0x17e538=_0x3830f7=Math[_0x4629c8(0x3dd)](_0x123213,_0x24d5a8/0x2,_0xa40cfe/0x2),_0x4d5f38[_0x4629c8(0x45c)](),_0x4d5f38[_0x4629c8(0x28b)](_0x5f10a6,0x0),_0x4d5f38[_0x4629c8(0x439)](_0x24d5a8-_0x17e538,0x0),_0x4d5f38[_0x4629c8(0x45d)](_0x24d5a8-_0x17e538,_0x17e538,_0x17e538,Math['PI']*0x3/0x2,0x0,!0x1),_0x4d5f38[_0x4629c8(0x439)](_0x24d5a8,_0xa40cfe-_0x3830f7),_0x4d5f38['arc'](_0x24d5a8-_0x3830f7,_0xa40cfe-_0x3830f7,_0x3830f7,0x0,Math['PI']/0x2,!0x1),_0x4d5f38['lineTo'](0x0,_0xa40cfe),_0x4d5f38[_0x4629c8(0x439)](0x0,_0x5f10a6),_0x4d5f38[_0x4629c8(0x45d)](_0x5f10a6,_0x5f10a6,_0x5f10a6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4d5f38['closePath'](),_0x34cfaa[_0x4629c8(0x332)]&&(_0x4d5f38[_0x4629c8(0x269)](),_0x4d5f38[_0x4629c8(0x3b0)]=_0x34cfaa['fill'],_0x34cfaa[_0x4629c8(0x3e2)]===_0x4629c8(0x1ad)?_0x4d5f38[_0x4629c8(0x332)](_0x4629c8(0x1ad)):_0x4d5f38[_0x4629c8(0x332)](),_0x4d5f38[_0x4629c8(0x3d5)]());}class st extends _0x520a18{constructor(_0x53d5d7,_0x1228ae){const _0x3bc9d8=_0x1f5a54;super(_0x53d5d7,_0x1228ae),l(this,_0x3bc9d8(0x428)),l(this,'text'),(this['color']=_0x1228ae==null?void 0x0:_0x1228ae[_0x3bc9d8(0x428)],this[_0x3bc9d8(0x3a9)]=_0x1228ae==null?void 0x0:_0x1228ae[_0x3bc9d8(0x3a9)]);}static['drawWith'](_0x19bfba,_0x59f71c){const _0x38b81d=_0x1f5a54,{text:_0x4da30d,color:_0x5c22bc}=_0x59f71c;_0x19bfba['save'](),_0x19bfba[_0x38b81d(0x273)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1036cc=_0x19bfba[_0x38b81d(0x3e1)](_0x4da30d)[_0x38b81d(0x343)],_0x5bf305=Math[_0x38b81d(0x3dd)](_0x1036cc+0x2*ht,ts);ur(_0x19bfba,{'height':Me,'radius':0x4,'width':_0x5bf305,'fill':_0x5c22bc,'evented':!0x1}),_0x19bfba[_0x38b81d(0x3b0)]='#FFF';const _0x283c84=ht,_0x114c84=Me-_r,_0x1c7bc9=ts-0x2*ht;if(_0x1036cc>_0x1c7bc9){let _0x1d629e='',_0x3633c6=0x0;for(const _0x5de517 of _0x4da30d){const _0x579559=_0x19bfba['measureText'](_0x5de517)[_0x38b81d(0x343)];if(_0x3633c6+_0x579559<=_0x1c7bc9-_0x19bfba[_0x38b81d(0x3e1)](_0x38b81d(0x3ad))[_0x38b81d(0x343)])_0x1d629e+=_0x5de517,_0x3633c6+=_0x579559;else{_0x1d629e+=_0x38b81d(0x3ad);break;}}_0x19bfba['fillText'](_0x1d629e,_0x283c84,_0x114c84);}else _0x19bfba[_0x38b81d(0x18f)](_0x4da30d,_0x283c84,_0x114c84);_0x19bfba[_0x38b81d(0x3d5)]();}[_0x1f5a54(0x444)](_0x36b6a9){const _0x30fa35=_0x1f5a54;st[_0x30fa35(0x30b)](_0x36b6a9,this);}}const dr=0x1,fr=1.5;class mr extends _0x520a18{constructor(_0x2eb91a,_0x19341b){const _0x10e048=_0x1f5a54;super(_0x2eb91a,_0x19341b),l(this,_0x10e048(0x413)),l(this,'_hovered',!0x1),l(this,_0x10e048(0x334)),l(this,_0x10e048(0x433),''),l(this,_0x10e048(0x370),'top'),l(this,'_backgroundColor'),(_0x19341b&&this[_0x10e048(0x36b)](_0x19341b),this[_0x10e048(0x2cc)][_0x10e048(0x341)](()=>this[_0x10e048(0x36b)]({'hovered':!0x0})),this[_0x10e048(0x242)][_0x10e048(0x341)](()=>this[_0x10e048(0x36b)]({'hovered':!0x1})));}[_0x1f5a54(0x36b)](_0x5df3ae){const _0x530aec=_0x1f5a54;var _0x529125,_0x580446,_0x4fcd1f,_0x132257,_0x265906,_0x33b11a;this['_color']=(_0x529125=_0x5df3ae['color'])!=null?_0x529125:this[_0x530aec(0x413)],this[_0x530aec(0x317)]=(_0x580446=_0x5df3ae['hovered'])!=null?_0x580446:this[_0x530aec(0x317)],this['_range']=(_0x4fcd1f=_0x5df3ae[_0x530aec(0x1c7)])!=null?_0x4fcd1f:this[_0x530aec(0x334)],this[_0x530aec(0x433)]=(_0x132257=_0x5df3ae['name'])!=null?_0x132257:this[_0x530aec(0x433)],this[_0x530aec(0x370)]=(_0x265906=_0x5df3ae[_0x530aec(0x18c)])!=null?_0x265906:this[_0x530aec(0x370)],this[_0x530aec(0x40f)]=(_0x33b11a=_0x5df3ae[_0x530aec(0x2c3)])!=null?_0x33b11a:this[_0x530aec(0x40f)],this[_0x530aec(0x264)]({'width':_0x5df3ae[_0x530aec(0x343)],'height':_0x5df3ae[_0x530aec(0x158)]});}[_0x1f5a54(0x23b)](_0xc0f392){const _0x3980a7=_0x1f5a54,{row:_0x5c3278,column:_0x3ca6c7}=_0xc0f392;if(_0x5c3278>=this['_range'][_0x3980a7(0x438)]&&_0x5c3278<=this[_0x3980a7(0x334)]['endRow']&&_0x3ca6c7>=this['_range'][_0x3980a7(0x436)]&&_0x3ca6c7<=this[_0x3980a7(0x334)][_0x3980a7(0x272)]){this[_0x3980a7(0x36b)]({'hovered':!0x0});return;}this[_0x3980a7(0x36b)]({'hovered':!0x1});}[_0x1f5a54(0x347)](_0x358596){return!0x1;}[_0x1f5a54(0x444)](_0x84e62d){const _0x1944a4=_0x1f5a54;_0x5d7c63[_0x1944a4(0x30b)](_0x84e62d,{'width':this[_0x1944a4(0x343)],'height':this[_0x1944a4(0x158)],'strokeWidth':fr,'stroke':this[_0x1944a4(0x413)],'evented':!0x1,'fill':this[_0x1944a4(0x40f)]}),this[_0x1944a4(0x317)]&&(_0x84e62d[_0x1944a4(0x269)](),_0x84e62d['transform'](0x1,0x0,0x0,0x1,this[_0x1944a4(0x343)],this[_0x1944a4(0x370)]==='bottom'?0x0:-Me),st[_0x1944a4(0x30b)](_0x84e62d,{'text':this[_0x1944a4(0x433)],'color':this[_0x1944a4(0x413)]}),_0x84e62d['restore']());}}var gr=Object[_0x1f5a54(0x29f)],Sr=Object['getOwnPropertyDescriptor'],vr=(_0x5cb0dd,_0x5647f4,_0x40f81f,_0xf0f368)=>{const _0x172549=_0x1f5a54;for(var _0x37cd40=_0xf0f368>0x1?void 0x0:_0xf0f368?Sr(_0x5647f4,_0x40f81f):_0x5647f4,_0x3bd8a2=_0x5cb0dd[_0x172549(0x2d6)]-0x1,_0x4dbf0c;_0x3bd8a2>=0x0;_0x3bd8a2--)(_0x4dbf0c=_0x5cb0dd[_0x3bd8a2])&&(_0x37cd40=(_0xf0f368?_0x4dbf0c(_0x5647f4,_0x40f81f,_0x37cd40):_0x4dbf0c(_0x37cd40))||_0x37cd40);return _0xf0f368&&_0x37cd40&&gr(_0x5647f4,_0x40f81f,_0x37cd40),_0x37cd40;},$e=(_0x8022cf,_0x3f1dcd)=>(_0x2af62a,_0x20a509)=>_0x3f1dcd(_0x2af62a,_0x20a509,_0x8022cf);const pr=0x1389;let Ve=class extends _0x5915f1{constructor(_0xb9f6fa,_0x2bf6d2,_0x206c7f,_0x582048){const _0x5b63b=_0x1f5a54;super(),l(this,_0x5b63b(0x2bc),new Set()),l(this,'_lastPointer',null),(this[_0x5b63b(0x3f9)]=_0xb9f6fa,this['_univerInstanceService']=_0x2bf6d2,this[_0x5b63b(0x168)]=_0x206c7f,this[_0x5b63b(0x165)]=_0x582048,this[_0x5b63b(0x3b6)]());}get[_0x1f5a54(0x305)](){const _0x5750bf=_0x1f5a54;return this['_renderManagerService']['getRenderById'](this[_0x5750bf(0x357)][_0x5750bf(0x440)](_0x5cab0b['UNIVER_SHEET'])[_0x5750bf(0x2a2)]())[_0x5750bf(0x3ec)](_0x5f534a);}get[_0x1f5a54(0x292)](){const _0x20c00e=_0x1f5a54;return this[_0x20c00e(0x357)][_0x20c00e(0x440)](_0x5cab0b[_0x20c00e(0x320)])[_0x20c00e(0x2a2)]();}[_0x1f5a54(0x3b6)](){const _0x4931a8=_0x1f5a54;this['_sheetSkeletonManagerService'][_0x4931a8(0x2a9)][_0x4931a8(0x180)](_0x31e4a6(this['dispose$']),_0x4c3023(_0x5c75c3=>{const _0x3e612d=_0x4931a8;if(_0x5c75c3){const _0x459eed=_0x5c75c3[_0x3e612d(0x249)];return _0x5732cb(this['_collabCursorController'][_0x3e612d(0x25c)](this[_0x3e612d(0x292)]),this[_0x3e612d(0x165)][_0x3e612d(0x287)])[_0x3e612d(0x180)](_0x28f321(([_0x1bc8c7,_0x18c2b0])=>{const _0x2cda49=new Map();return _0x1bc8c7['forEach']((_0x3de325,_0x41066a)=>{const _0x3ad9fa=_0x2f7f;if(_0x3de325['sheetID']===_0x459eed){const _0x43844e={..._0x3de325};_0x43844e[_0x3ad9fa(0x428)]=_0x18c2b0[_0x3de325['color']],_0x2cda49[_0x3ad9fa(0x22e)](_0x41066a,_0x43844e);}}),{'skeleton':_0x5c75c3,'cursors':_0x2cda49};}));}return _0x110ce6({'skeleton':null,'cursors':new Map()});}))[_0x4931a8(0x2d9)](({skeleton:_0x485e61,cursors:_0x4d0187})=>{const _0x1d9ea3=_0x4931a8;this[_0x1d9ea3(0x34e)](),_0x485e61&&this[_0x1d9ea3(0x304)](_0x485e61,_0x4d0187);}),this[_0x4931a8(0x305)][_0x4931a8(0x2a9)]['subscribe'](_0x119a3d=>{const _0x14281a=_0x4931a8;if(_0x119a3d==null)return;const {skeleton:_0x37e767}=_0x119a3d,_0x5965d0=this[_0x14281a(0x168)][_0x14281a(0x1a1)](this[_0x14281a(0x292)]),{scene:_0x5df640}=_0x5965d0;_0x5df640[_0x14281a(0x33b)]['subscribeEvent'](_0x21574d(_0x540176=>{const _0x50cc96=_0x14281a;var _0x564c0,_0x51862b;const {offsetX:_0x3460e8,offsetY:_0xbe1c5a}=_0x540176,{x:_0x45f321,y:_0xe16e39}=_0x5df640[_0x50cc96(0x251)](_0x1a7ec4['FromArray']([_0x3460e8,_0xbe1c5a])),{scaleX:_0xe1f707,scaleY:_0x407d6a}=_0x5df640['getAncestorScale'](),_0x1ee84d=_0x5df640[_0x50cc96(0x3c2)](_0x34fb7d[_0x50cc96(0x443)]),_0x15e05d=_0x5df640[_0x50cc96(0x380)](_0x1a7ec4[_0x50cc96(0x1e1)]([_0x45f321,_0xe16e39]),_0x1ee84d),_0x567b96=_0x37e767[_0x50cc96(0x3b4)](_0x3460e8,_0xbe1c5a,_0xe1f707,_0x407d6a,_0x15e05d);((_0x564c0=this['_lastPointer'])==null?void 0x0:_0x564c0[_0x50cc96(0x2a6)])===_0x567b96[_0x50cc96(0x2a6)]&&((_0x51862b=this[_0x50cc96(0x263)])==null?void 0x0:_0x51862b[_0x50cc96(0x2c2)])===_0x567b96[_0x50cc96(0x2c2)]||this['_cursors'][_0x50cc96(0x37a)](_0x3106fa=>{const _0x174658=_0x50cc96;_0x3106fa[_0x174658(0x23b)](_0x567b96);});},0x64));});}[_0x1f5a54(0x304)](_0x424e76,_0x1e5ca0){const _0x2811c9=_0x1f5a54;var _0x2dc582;const _0x5d9636=(_0x2dc582=this[_0x2811c9(0x305)][_0x2811c9(0x1f5)]())==null?void 0x0:_0x2dc582[_0x2811c9(0x477)];if(!_0x5d9636)return;const _0x164cb3=this[_0x2811c9(0x148)]();if(!_0x164cb3)return;this[_0x2811c9(0x2bc)][_0x2811c9(0x37a)](_0x2e5563=>{const _0x353ecd=_0x2811c9;_0x2e5563[_0x353ecd(0x23c)]();});const {scene:_0x386a2c}=_0x164cb3,_0x37eefa=Ir(Array[_0x2811c9(0x25a)](_0x1e5ca0['values']()))[_0x2811c9(0x1a7)](_0x14ea0a=>{const _0x4b28c0=_0x2811c9,{color:_0x21ba85,range:_0x11136e,name:_0x10e757,selection:_0x3153e2,sheetID:_0x13e866}=_0x14ea0a,{startColumn:_0x24cb7f,startRow:_0x4a4b41,endColumn:_0x178e43,endRow:_0xc7b40f}=_0x11136e,_0x14b5a7=_0x1a9d48(_0x4a4b41,_0x24cb7f,_0x386a2c,_0x5d9636),_0x1e57bf=_0x1a9d48(_0xc7b40f,_0x178e43,_0x386a2c,_0x5d9636),{columnHeaderHeightAndMarginTop:_0xd043a4}=_0x5d9636,{startX:_0x190d16,startY:_0x298ca0}=_0x14b5a7,{endX:_0xd1b73,endY:_0x36974d}=_0x1e57bf,_0x2c18c6=_0xd1b73-_0x190d16,_0x1183d9=_0x36974d-_0x298ca0,_0x4a4556={'labelPosition':_0x298ca0-_0xd043a4>=Me?_0x4b28c0(0x1d5):'bottom','sheetID':_0x13e866,'range':_0x11136e,'color':_0x21ba85,'name':_0x10e757,'selection':_0x3153e2,'left':_0x190d16,'top':_0x298ca0,'width':_0x2c18c6,'height':_0x1183d9,'evented':!0x1,'zIndex':pr};return new mr(_0x10e757,_0x4a4556);});_0x386a2c[_0x2811c9(0x1ed)](_0x37eefa,dr),this[_0x2811c9(0x2bc)]=new Set(_0x37eefa);}[_0x1f5a54(0x34e)](){const _0x319ccc=_0x1f5a54;var _0x4f5e7a;(_0x4f5e7a=this[_0x319ccc(0x2bc)])==null||_0x4f5e7a[_0x319ccc(0x37a)](_0x4b8df8=>_0x4b8df8[_0x319ccc(0x26e)]());}[_0x1f5a54(0x148)](){const _0x4b6a98=_0x1f5a54;return _0x54e459(this[_0x4b6a98(0x357)],this[_0x4b6a98(0x168)]);}};Ve=vr([_0x182a37(_0x46c7aa[_0x1f5a54(0x3a3)],Ve),$e(0x0,_0x61a763(fe)),$e(0x1,_0x55bd21),$e(0x2,_0x8604c3),$e(0x3,_0x61a763(_0x5a1d7c))],Ve);function Ir(_0x1d9945){const _0x219c1d=_0x1f5a54,_0x48b286=new Map();return _0x1d9945[_0x219c1d(0x37a)](_0x3adf8d=>{const _0x22b725=_0x219c1d;if(_0x48b286['has'](_0x3adf8d[_0x22b725(0x324)])){const _0x5e3f2b=_0x48b286[_0x22b725(0x393)](_0x3adf8d[_0x22b725(0x324)]);_0x5e3f2b['name']+=',\x20'+_0x3adf8d[_0x22b725(0x40c)];}else _0x48b286[_0x22b725(0x22e)](_0x3adf8d[_0x22b725(0x324)],_0x3adf8d);}),Array[_0x219c1d(0x25a)](_0x48b286[_0x219c1d(0x410)]());}var A=function(){const _0x3d36c0=_0x1f5a54;return A=Object['assign']||function(_0x1c17e5){const _0x24e050=_0x2f7f;for(var _0x295e61,_0x3aa552=0x1,_0x4ab660=arguments[_0x24e050(0x2d6)];_0x3aa552<_0x4ab660;_0x3aa552++){_0x295e61=arguments[_0x3aa552];for(var _0x22420a in _0x295e61)Object[_0x24e050(0x2bd)][_0x24e050(0x35f)]['call'](_0x295e61,_0x22420a)&&(_0x1c17e5[_0x22420a]=_0x295e61[_0x22420a]);}return _0x1c17e5;},A[_0x3d36c0(0x1bb)](this,arguments);},Er=function(_0x24d8cb,_0x54445b){const _0x2ccdec=_0x1f5a54;var _0x36d776={};for(var _0x5db432 in _0x24d8cb)Object[_0x2ccdec(0x2bd)][_0x2ccdec(0x35f)][_0x2ccdec(0x25e)](_0x24d8cb,_0x5db432)&&_0x54445b[_0x2ccdec(0x295)](_0x5db432)<0x0&&(_0x36d776[_0x5db432]=_0x24d8cb[_0x5db432]);if(_0x24d8cb!=null&&typeof Object[_0x2ccdec(0x1d6)]=='function'){for(var _0x1aac50=0x0,_0x5db432=Object[_0x2ccdec(0x1d6)](_0x24d8cb);_0x1aac50<_0x5db432[_0x2ccdec(0x2d6)];_0x1aac50++)_0x54445b['indexOf'](_0x5db432[_0x1aac50])<0x0&&Object[_0x2ccdec(0x2bd)]['propertyIsEnumerable'][_0x2ccdec(0x25e)](_0x24d8cb,_0x5db432[_0x1aac50])&&(_0x36d776[_0x5db432[_0x1aac50]]=_0x24d8cb[_0x5db432[_0x1aac50]]);}return _0x36d776;},$t=_0x3c9976(function(_0x54624d,_0x908b7){const _0x4f4e8b=_0x1f5a54;var _0x475a3b=_0x54624d['icon'],_0x5d1726=_0x54624d['id'],_0x37b6e6=_0x54624d[_0x4f4e8b(0x37b)],_0x3c2d61=_0x54624d[_0x4f4e8b(0x22a)],_0x1319b3=Er(_0x54624d,[_0x4f4e8b(0x34a),'id',_0x4f4e8b(0x37b),_0x4f4e8b(0x22a)]),_0x55dcd8='univerjs-icon\x20univerjs-icon-'[_0x4f4e8b(0x2d0)](_0x5d1726,'\x20')[_0x4f4e8b(0x2d0)](_0x37b6e6||'')[_0x4f4e8b(0x397)](),_0x43eb7b=_0x446d4f('_'[_0x4f4e8b(0x2d0)](Tr()));return As(_0x475a3b,''[_0x4f4e8b(0x2d0)](_0x5d1726),{'defIds':_0x475a3b[_0x4f4e8b(0x450)],'idSuffix':_0x43eb7b[_0x4f4e8b(0x164)]},A({'ref':_0x908b7,'className':_0x55dcd8},_0x1319b3),_0x3c2d61);});function As(_0x155fce,_0x2ac97a,_0x162efb,_0x569eed,_0x1ae604){const _0x46d3a5=_0x1f5a54;return _0x41bd2c(_0x155fce[_0x46d3a5(0x33d)],A(A({'key':_0x2ac97a},Cr(_0x155fce,_0x162efb,_0x1ae604)),_0x569eed),(br(_0x155fce,_0x162efb)['children']||[])[_0x46d3a5(0x1a7)](function(_0x394cc1,_0x44486){const _0x520ab9=_0x46d3a5;return As(_0x394cc1,''[_0x520ab9(0x2d0)](_0x2ac97a,'-')[_0x520ab9(0x2d0)](_0x155fce[_0x520ab9(0x33d)],'-')[_0x520ab9(0x2d0)](_0x44486),_0x162efb,void 0x0,_0x1ae604);}));}function Cr(_0x4c1d7e,_0x146011,_0x3ed1f4){const _0x1c8dcf=_0x1f5a54;var _0x30c1e8=A({},_0x4c1d7e[_0x1c8dcf(0x277)]);_0x3ed1f4!=null&&_0x3ed1f4[_0x1c8dcf(0x280)]&&_0x30c1e8[_0x1c8dcf(0x332)]===_0x1c8dcf(0x280)&&(_0x30c1e8[_0x1c8dcf(0x332)]=_0x3ed1f4[_0x1c8dcf(0x280)]);var _0x15adda=_0x146011[_0x1c8dcf(0x450)];return!_0x15adda||_0x15adda[_0x1c8dcf(0x2d6)]===0x0||(_0x4c1d7e[_0x1c8dcf(0x33d)]===_0x1c8dcf(0x1ef)&&_0x30c1e8[_0x1c8dcf(0x216)]&&(_0x30c1e8[_0x1c8dcf(0x216)]=_0x30c1e8[_0x1c8dcf(0x216)]+_0x146011['idSuffix']),Object[_0x1c8dcf(0x1dc)](_0x30c1e8)['forEach'](function(_0x40f230){const _0x13c2c5=_0x1c8dcf;var _0x591f8d=_0x40f230[0x0],_0x5927ce=_0x40f230[0x1];typeof _0x5927ce==_0x13c2c5(0x3f2)&&(_0x30c1e8[_0x591f8d]=_0x5927ce['replace'](/url\(#(.*)\)/,_0x13c2c5(0x149)[_0x13c2c5(0x2d0)](_0x146011['idSuffix'],')')));})),_0x30c1e8;}function br(_0x3f75e5,_0x434afd){const _0xad3426=_0x1f5a54;var _0x369772,_0x17a335=_0x434afd[_0xad3426(0x450)];return!_0x17a335||_0x17a335[_0xad3426(0x2d6)]===0x0?_0x3f75e5:_0x3f75e5[_0xad3426(0x33d)]===_0xad3426(0x1e3)&&(!((_0x369772=_0x3f75e5[_0xad3426(0x3f7)])===null||_0x369772===void 0x0)&&_0x369772[_0xad3426(0x2d6)])?A(A({},_0x3f75e5),{'children':_0x3f75e5[_0xad3426(0x3f7)][_0xad3426(0x1a7)](function(_0x23265a){const _0x2f4f5a=_0xad3426;return typeof _0x23265a[_0x2f4f5a(0x277)]['id']==_0x2f4f5a(0x3f2)&&_0x17a335&&_0x17a335['indexOf'](_0x23265a[_0x2f4f5a(0x277)]['id'])>-0x1?A(A({},_0x23265a),{'attrs':A(A({},_0x23265a[_0x2f4f5a(0x277)]),{'id':_0x23265a['attrs']['id']+_0x434afd[_0x2f4f5a(0x470)]})}):_0x23265a;})}):_0x3f75e5;}function Tr(){const _0x529de4=_0x1f5a54;return Math[_0x529de4(0x339)]()[_0x529de4(0x196)](0x24)[_0x529de4(0x1b3)](0x2,0x8);}$t['displayName']=_0x1f5a54(0x1b7);var Rr={'tag':_0x1f5a54(0x1e8),'attrs':{'fill':_0x1f5a54(0x3df),'viewBox':'0\x200\x2016\x2016','width':_0x1f5a54(0x1a3),'height':_0x1f5a54(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f5a54(0x3ea)},'children':[{'tag':_0x1f5a54(0x38b),'attrs':{'stroke':_0x1f5a54(0x215),'d':_0x1f5a54(0x2be),'strokeLinecap':_0x1f5a54(0x1c3),'strokeLinejoin':_0x1f5a54(0x1c3),'strokeWidth':1.2}}]},{'tag':_0x1f5a54(0x1e3),'attrs':{},'children':[{'tag':_0x1f5a54(0x227),'attrs':{'id':_0x1f5a54(0x446)},'children':[{'tag':_0x1f5a54(0x38b),'attrs':{'fill':_0x1f5a54(0x21d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1f5a54(0x446)]},ys=_0x3c9976(function(_0x1fcaf4,_0x4e4316){return _0x41bd2c($t,Object['assign']({},_0x1fcaf4,{'id':'off-line-single','ref':_0x4e4316,'icon':Rr}));});ys[_0x1f5a54(0x307)]=_0x1f5a54(0x309);var Or={'tag':_0x1f5a54(0x1e8),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x1f5a54(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f5a54(0x1c0)},'children':[{'tag':'path','attrs':{'stroke':_0x1f5a54(0x215),'d':_0x1f5a54(0x1c6),'strokeLinecap':_0x1f5a54(0x1c3),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1f5a54(0x1e3),'attrs':{},'children':[{'tag':_0x1f5a54(0x227),'attrs':{'id':_0x1f5a54(0x47c)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x1f5a54(0x186)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Us=_0x3c9976(function(_0x57014b,_0x2278bb){const _0x211041=_0x1f5a54;return _0x41bd2c($t,Object[_0x211041(0x3fd)]({},_0x57014b,{'id':_0x211041(0x1e2),'ref':_0x2278bb,'icon':Or}));});Us['displayName']=_0x1f5a54(0x44f);const Dr='univer-online-status-icon',Pr=_0x1f5a54(0x140),wr=_0x1f5a54(0x3e4),Nr='univer-online',Mr=_0x1f5a54(0x2ec),be={'onlineStatusIcon':Dr,'onlineStatusTitle':Pr,'onlineStatus':wr,'online':Nr,'offline':Mr};function Ar(_0x26660a){const _0x5c9d7c=_0x1f5a54;switch(_0x26660a){case w[_0x5c9d7c(0x243)]:return'collabStatus.offline';case w['CONFLICT']:return'collabStatus.conflict';case w[_0x5c9d7c(0x468)]:return _0x5c9d7c(0x1a6);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x5c9d7c(0x3e3)]:case w[_0x5c9d7c(0x45b)]:case w['AWAITING_WITH_PENDING']:return _0x5c9d7c(0x2d4);case w[_0x5c9d7c(0x3a7)]:return _0x5c9d7c(0x2e9);}}function yr(_0x31d324){const _0x3eefad=_0x1f5a54,{status$:_0x1e3912}=_0x31d324,_0x2a5d01=_0x34ebf9(_0x1e3912,w['NOT_COLLAB']),_0x2e6d22=_0x32bad8(_0x4eec6f),_0x33a8cf=_0x2a5d01!==w[_0x3eefad(0x243)],_0xc89b0e=_0x2e6d22['t'](Ar(_0x2a5d01)),_0xe52ad4=_0x2d6edb(be['onlineStatus'],{[be['online']]:_0x33a8cf,[be[_0x3eefad(0x2c8)]]:!_0x33a8cf}),_0x4ff76e=_0x33a8cf?_0x25f2cb[_0x3eefad(0x153)](Us,null):_0x25f2cb[_0x3eefad(0x153)](ys,null);return _0x25f2cb[_0x3eefad(0x153)](_0x3eefad(0x2af),{'className':_0xe52ad4},_0x25f2cb['createElement'](_0x3eefad(0x2af),{'className':be[_0x3eefad(0x2dc)]},_0x4ff76e),_0x25f2cb[_0x3eefad(0x153)](_0x3eefad(0x2af),{'className':be[_0x3eefad(0x361)]},_0xc89b0e));}var Ur=Object[_0x1f5a54(0x29f)],Lr=Object['getOwnPropertyDescriptor'],$r=(_0x40b122,_0x1a5669,_0x1aa82b,_0x29894d)=>{for(var _0x5e80e0=_0x29894d>0x1?void 0x0:_0x29894d?Lr(_0x1a5669,_0x1aa82b):_0x1a5669,_0x3c00f8=_0x40b122['length']-0x1,_0x33d900;_0x3c00f8>=0x0;_0x3c00f8--)(_0x33d900=_0x40b122[_0x3c00f8])&&(_0x5e80e0=(_0x29894d?_0x33d900(_0x1a5669,_0x1aa82b,_0x5e80e0):_0x33d900(_0x5e80e0))||_0x5e80e0);return _0x29894d&&_0x5e80e0&&Ur(_0x1a5669,_0x1aa82b,_0x5e80e0),_0x5e80e0;},je=(_0x2233a2,_0x4bacf3)=>(_0x220bca,_0x53a9e0)=>_0x4bacf3(_0x220bca,_0x53a9e0,_0x2233a2);function _0x2454(){const _0x2f5e1a=['data','column','_updateLocalCache','hide','currentSkeleton$','_onConflict','selections','LICENSE_IMPORT_SIZE_EXCEEDED','UNAUTHENTICATED','red300','div','_exhaustRemoteChangesetQueue','socketService','executeCommand','result','PERMISSION_DENIED','_transformRemoteChangesetByIMECache','_startSheetCollabCursor','session.collaboration-timeout','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_removeClearOtherTimer','_syncEditingCollabCursorService','updatePermissionPoint','_cursors','prototype','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','_updateLocalCursor','_beforeCloseService','_collabCursorState$','row','backgroundColor','_undoRedoService','getCollabEntity','updateCollaborator','gold400','offline','appendMutation','_getSnapshotAPIPrefix','_clearTimeoutTimer','onPointerEnter$','_replayCachedMutations','_unlockTransition','eventID','concat','[OfflineState]:\x20received\x20rejection.','\x20to\x20','Error\x20on\x20receiving\x20event','collabStatus.syncing','_shapes','length','_onRefRangeChange','SUBMIT_CHANGESET','subscribe','_httpService','routeKey','onlineStatusIcon','collaMsg','30324ydADwI','getWorkbookSelections','then','whenReady','_getSignURL','conflict.content','_HTTPService','addObject','/universer-api/oidc/authpage','pending','_notificationService','collabStatus.synced','focused$','_docStateChangeManagerService','univer-offline','_urlService','assignAColorForMemberID','OTHER_CLIENTS_EDITING','memberID','903764KoTQgK','clear','LOGIN_URL_KEY','objects','NEW_CHANGESETS','_updateURLWithCurrentState','_saveTaskMap','/object','10cwNoBA','_refRangeService','failed\x20to\x20apply\x20missed\x20changesets!','_onConnectionOpen','ERROR_EXCEED_SIZE','_sendingTimer','_handleHover','transformIMECache','_retryCount','LICENSE_MAX_UNITS_EXCEEDED','getTypeOfUnitDisposed$','_updateCollabCursors','_sheetSkeletonManagerService','_createInitialState','displayName','_logService','OffLineSingle','?size=','drawWith','all','_lockTransition','reject','updateMember','push','_colorAssignService','_cursor','_sheetTransformSelectionsService','objectType','UNIVER_DOC','_onCursorUpdate','_hovered','_id','debug','getSheetId','setParam','_waitCount','_disabled','cursorInfo','_state','UNIVER_SHEET','getValue','_acknowledgedAwaitingChangeset','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','selection','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_scheduleHeartbeat','_transformService','generateRandomId','_showConflictNotification','_collaborationPaused','getAncestorScale','onSyncEditingCollabCursor','history','_saveCache','unit','getMergeData','findNodePositionByCharIndex','fill','updatePermissionObjEvent','_range','split','resolve','pushState','conflict','random','_socketService','onPointerMove$','connection\x20error','tag','init','patch','_assignedColors','subscribeEvent','/new_changes','width','COMPRESS_MUTATION_SEND','_snapshotService','USERS_ENTER','triggerDblclick','transformRemoteChangeset','m2Prime','icon','HEARTBEAT','_getAnchorBounding','transformMutation','_removeCollabCursors','COMPLETION_FINISHED','liveShareNewHost','rgba(255,\x20255,\x20255,\x200.01)','APPLY_NON_SEQUENTIAL_REVISION','registerBeforeClose','clearTimeout','fetchMissingChangesets','_startDocCollabCursor','_univerInstanceService','INGEST','_submitChangeset','YUUMI_URL_COL_OUT_OF_RANGE','getDataModel','revision','editingUnit','/unit/','hasOwnProperty','SUCCUSS','onlineStatusTitle','isPermissionRej','setTimeout','[CollaborationSessionService]','compose','Starting','_getScale','_undoStacks','getUnitOnRev','_getAPIPrefixPath','setShapeProps','_http','_unitOnClients','_getDocObject','file','_labelPosition','COMPRESS_MUTATION_APPLY','_checkMissing','_unitID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_disableEditing','sessionStatus$','10927356oCXvSt','FAIL','_onConnectionFailed','forEach','className','setUndoRedoMutationParamsCache','MoveRangeCommandId','INTERNAL_ERROR','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','getVpScrollXYInfoByPosToVp','_hideTimer','APPLY_PERMISSION_DENIED','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearOtherTimers','getMemberID','_compressMutationService','_drawRange','createCollaborator','CHANGESET_REJ','roomMembers','path','action','UNKNOWN_CODE','toRgbString','_onRemoteACK','readAsDataURL','_initMergeInterceptor','resend','get','_commentUpdate$','/-/object/-/batch_allowed','interceptor','trim','csAckEvent','_docSkeletonManagerService','body','next','onTransformIME','listRoles','onCommandExecuted','commentUpdate$','registerComponent','updateCursorEvent','getTime','Steady','userID','delete','_localeService','SYNCED','cmd','text','_createSocket','_transformIMECache','_clearCollaborationTimeoutTimer','...','_updateState','ranges','fillStyle','_onJoinRoomEvent','FileId','_pendingMutations','getCellPositionByOffset','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_init','13544JvcXMb','_applyRemoteChangeset','_initUnitPermissionChange','_remoteChangesetQueue','originalMeta','5271kFlBVj','message$','setActiveRange','[PendingState]:\x20unhandled\x20univer\x20type:\x20','add','roomMembers$','getViewport','ws://127.0.0.1:8000/universer-api/comb/connect','catch','synced','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_timeoutTimer','_getCtorByUniverType','901338hNVsgw','includes','_sessions','getOwnPropertyDescriptor','dispose$','_scheduleReconnection','\x20-\x20','unsubscribe','image/jpg','method','_executeRemoteChangeset','transformChangesets','restore','APPLY_REJECT','_clearLocalCache','size','batchAllowed','members','_injector','_collabSessionService','min','_imageSourceCache','none','isEditing','measureText','fillRule','PENDING','univer-online-status','[CollaborationEntity]','LIVESHARE_OPERATION','UNIVER_COLLABORATION_CLIENT_PLUGIN','popstate','awaiting_with_pending','url(#off-line-single_clip0_910_343)','baseRev','with','getFocusedUnit','SNAPSHOT_INVALID_SNAPSHOT','params','state$','_docSyncEditingCollabCursorService','string','getActiveRange','key','_incrementRevisionNumber','getInterceptPoints','children','unitId','_collabCursorController','disableLocalCache','_onRemoteRejected','_heartbeatTimer','assign','_getSendChangesetTimeout','_substituteRedoStack','type','_anchor','_handleEvent','event$','pluginName','ONLINE','_getMergeRange','POST','_joinRoom','image/png','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[SyncedState]:\x20received\x20acknowledgement.','name','COLLAB_SUBMIT_CHANGESET_URL','url','_backgroundColor','values','_userManagerService','UPDATE_CURSOR','_color','_collaborationController','allowed','_collaborationSessionService','saveSnapshot','_textBubble','error','status$','some','stringify','startsWith','encode','[CollaborationSession]','_removeRoom','PSEUDO_FETCH_MISSING_RESULT','LEAVE','enableOfflineEditing','complete','UNDEFINED','UUID','_sessionStatus$','color','IDLE','enableAuthServer','USERS_LEAVE','onlyLocal','UPDATE_PERMISSION_OBJ','getImageSourceCache','change$','_scheduleTimestamp','getCollabEntity$','getImage','_name','filter','onCommentUpdate','startColumn','removeMember','startRow','lineTo','show','/universer-api/snapshot/','COMMENT_UPDATE','toggleOffline','_initStatusListener','_transformUndoRedoStack','getCurrentUnitForType','_getUndoStack','/collaborator','VIEW_MAIN','_draw','_updateSubUnitFromURLParams','off-line-single_clip0_910_343','[FetchMissState]','HEARTBEAT_TIMEOUT','image/jpeg','max','_messageService','_clearHeartbeatTimer','HEADER_MENU','_redoStacks','OnLineSingle','defIds','[CollaborationState]:\x20apply\x20error!','session','status','c1Prime','loadSheet','getUnitType','_entities','registerHTTPInterceptor','_revisionService','_retryConnectingTimer','AWAITING','beginPath','arc','commentUpdateEvent','_loadDoc','socket\x20open.','transformMutationsWithChangeset','_getCurrentRevision','contains','_uiPartsService','_status$','mutations','_schedule','FETCH_MISS','_scheduleClearOtherTimer','RECV','responseType','getUniverSheetInstance','_onUserJoin','requireSession','_createInitialStateImpl','idSuffix','UNIVER_UNKNOWN','_onLocalMutation','loadOfflineData','fetchThroughInterceptors','[CollaborationUndoRedoService]','CONNECTOR_DATA_TOO_LARGE','skeleton','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sheets','_localStorageService','_onUserLeave','on-line-single_clip0_910_349','univer-online-status-title','/universer-api/stream/file/upload','enableSingleActiveInstanceLock','onTransformSelections','_online','createInstance','newValue','SNAPSHOT_SERVER_URL_KEY','_getSheetObject','url(#$1','_type','LOCAL_CACHE_INTERVAL','doc.mutation.rich-text-editing','UNKNOWN_CMD','setItem','/universer-api/comb','isArray','_getLoginPath','_getSaveTimeout','createElement','image/gif','collabCursorState$','_snapshotServerService','_entityInit$','height','_session','location','put','subunit','target','_setupSubUnitSync','syncEditingCollabCursor','submit\x20changeset\x20error!','DeleteRangeMoveLeftCommandId','clearInterval','HEARTBEAT_INTERVAL','current','_themeService','YUUMI_UNABLE_LOAD_URL','close$','_renderManagerService','unknown','_initStatusComponent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_selfUnitIDs','_initModules','getRangePointData','updateOfflineData','InsertRowCommandId','JOINING','_cursorInfo$','state','ERROR_IMAGE','_docSkeleton','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_awaitingChangeset','_scene','/universer-api/snapshot','activeSheet$','NOT_COLLAB','find','_handleHeartbeatEvent','_syncEditingCollabCursor','Warning','pipe','conflict.title','session.room-full','requestParams','/-/object/list','/universer-api/file/{fileID}/sign-url','translate(.97)','_render','title','blue400','onRemoteRej','/object/','labelPosition','[UniverCollaborationClientPlugin]','_members','fillText','getUndoRedoMutationParamsCache','_transformSelections','_roomMembers$','src','disposeWithMe','_ws','toString','InsertRangeMoveRightCommandId','createSocket','subUnitId','[OfflineState]:\x20received\x20acknowledgement.','_transformStack','slice','unit-cache-','getConfig','onTransformRemoteChangesetByIMECache','_isPermissionRej','getRenderById','_onCombEvent','1em','infoRsp','isActive','collabStatus.fetchMiss','map','localeService','_ensureSubject','searchParams','setWaitCount','COLLAB_WEB_SOCKET_URL','evenodd','_hover','_onRecvEvent','_startCollaboration','actions','LICENSE_EXPORT_SIZE_EXCEEDED','substring','_docTransformSelectionsService','send','pauseCollaboration','UniverIcon','fetch_missing','LIVESHARE_NEW_HOST','_permissionService','apply','LICENSE_DISTRO_REJECTED','objectID','_onCursorDelete','post','url(#on-line-single_clip0_910_349)','_substituteUndoStack','docStateChange$','round','getCurrentUser','_replaceFileID','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','range','RETRY_CONNECTING_INTERVAL','_handleLeaveEvent','_getAPIPrefix','_updateStatus','JOIN','UNRECOGNIZED','3328839kkodfd','_scheduleCollaborationTimeoutTimer','saveOfflineData','_queuedRemoteChangesets','close','json','storage','top','getOwnPropertySymbols','_handler','has','_socketReady','FETCH_MISSING','DeleteRangeMoveUpCommandId','entries','1439499xDOTrP','collaborationUniverTypes','LIVESHARE_FETCH_OPERATIONS','_clearUndo','FromArray','on-line-single','defs','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','href','deepClone','[DataLoaderController]','svg','rev','_unitStatus','onSendChangeset','_getUploadFileURL','addObjects','create','use','UNIVER_SLIDE','saveChangeset','18kqJYdO','_drawAnchor','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','getCurrent','_createHandler','_handleJoinEvent','_event$','getParam','_transformPreviousActiveRange','getTypeOfUnitAdded$','m1Prime','getItem','TOO_MANY_REQUESTS','getUnhiddenWorksheets','symbol','onRemoteChangeset','_setupBeforeClosingHandler','roles','getViewModel','_getRedoStack','joinRsp','_colorIndex','getCurrentSelections','_initCloseConn','_state$','LIVESHARE_REQUEST_HOST','_configService','_docTransformIMECacheService','replaceState','10dZWhaW','_roomMembers','withCredentials','objectActions','unitID','APPLY_REVISION_CONFILICT','currentColor','xlink:href','_tryEnsureSocket','onStateChange','_eventUnsubscribe','flatMap','_transitionLocked','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','#fff','_onMessage','toggleOnline','roomInfos','leaveEvent','_rescheduleHeartbeatEvent','onMissedChangesetFetched','AWAITING_WITH_PENDING','AUTHZ_URL_KEY','_onFetchMissResult','clipPath','NO_OTHER_CLIENTS_EDITING','16133nVWVLK','extend','_clearScheduledTask','_toggleOnline','_clearRedo','set','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','HELLO','permission.title','getSheetBySheetId','listCollaborators','transformSelections','replace','getCurrentRevForDocument','MSG_FOR_ERROR','_sendHeartbeatTimer','NOT_FOUND','[PendingState]:\x20received\x20acknowledgement.','onMouseMove','makeDirty','onStarting','Unknown\x20user','onRemoteAck','awaiting','_loadSheet','onPointerLeave$','OFFLINE','_singleActiveUnitService','DEFAULT_FILE_NAME','jiqing500','RemoveColCommandId','collaboratorID','sheetId','\x0aCurrent:\x20','_waitForHeartbeatResponse','_localCacheService','_socket$','&to=','addImageSourceCache','_sendHeartbeat','getRelativeToViewportCoord','/universer-api/authz','getUnitStatus$','univer-pro.collaboration-client.single-active-unit-service','_scheduleSaving','collaborators','closeSession','ACTIVE_UNIT_EVENT_CHANNEL','LIVESHARE_TERMINATE','from','RETRY_CONNECTING_MAX_COUNT','getCollabCursors$','_anchorDot','call','transformUndoRedo','_transformUndoredo','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','changesets','_lastPointer','transformByState','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaitingChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_collaborationTimeoutTimer','save','Univer','asObservable','_onRemoteChangeset','RemoveRowCommandId','dispose','_config','exhaustSavingTask','INVALID_ARGUMENT','endColumn','font','session.will-retry','code','unload','attrs','CHANGESET_REVISION_CONFILICT','textRanges','registerRefRange','csRejEvent','black','[OfflineState]:\x20received\x20changeset.','CHANGESET_ACK','_send','colorChannel1','univer-pro.collaboration-client-socket-service','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','unshift','BASE64','SNAPSHOT_HAS_BEEN_REMOVED','Error','currentTheme$','error$','_fetchMissChangesets','PERMISSION_REJ','moveTo','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_commentService','MUTATION','headers','urlChange$','_cachedData','_unitId','_change$','deleteCollaborator','indexOf','cursorInfo$','2SMhvkz','ALREADY_EXISTS','_commandService','_toggleOffline','_decreaseWaiting','editing\x20status\x20changed\x20to','getMember','/rev/','defineProperty','_memberService','_socketMessageSubscription','getUnitId','sessionStatus','_socket'];_0x2454=function(){return _0x2f5e1a;};return _0x2454();}let ke=class extends _0x462626{constructor(_0x11713b,_0x1e7c5e,_0x6a53c9,_0x2a6b6e){const _0x5c7db6=_0x1f5a54;super(),l(this,_0x5c7db6(0x465),new _0x24a55e(w['NOT_COLLAB'])),(this[_0x5c7db6(0x357)]=_0x11713b,this[_0x5c7db6(0x464)]=_0x1e7c5e,this['_injector']=_0x6a53c9,this['_collaborationController']=_0x2a6b6e,this[_0x5c7db6(0x16a)](),this[_0x5c7db6(0x43e)]());}[_0x1f5a54(0x16a)](){const _0x193793=_0x1f5a54;this[_0x193793(0x194)](this[_0x193793(0x464)][_0x193793(0x3a0)](_0x184510[_0x193793(0x44d)],()=>_0x2bdedc(jr({'status$':this[_0x193793(0x465)][_0x193793(0x26b)]()}),this[_0x193793(0x3db)])));}[_0x1f5a54(0x43e)](){const _0x12aa05=_0x1f5a54;this[_0x12aa05(0x194)](_0x5d3cf2(this[_0x12aa05(0x357)][_0x12aa05(0x2ea)]['pipe'](_0x44b0e5(()=>{const _0xbe1551=_0x12aa05,_0x24140a=this[_0xbe1551(0x357)][_0xbe1551(0x3ed)]();return _0x24140a?this[_0xbe1551(0x414)][_0xbe1551(0x431)](_0x24140a[_0xbe1551(0x2a2)]()):_0x110ce6(null);}),_0x44b0e5(_0x2b2053=>_0x2b2053?_0x2b2053[_0x12aa05(0x41a)]:_0x110ce6(w[_0x12aa05(0x17b)])))[_0x12aa05(0x2d9)](_0x371c17=>{const _0x15ba6c=_0x12aa05;this[_0x15ba6c(0x465)][_0x15ba6c(0x39b)](_0x371c17);})));}};ke=$r([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],ke),je(0x0,_0x55bd21),je(0x1,_0x16c51a),je(0x2,_0x61a763(_0x2e9f94)),je(0x3,_0x61a763(De))],ke);function jr(_0x598512){const {status$:_0x2b13d8}=_0x598512;return function(){return _0x25f2cb['createElement'](yr,{'status$':_0x2b13d8});};}const Ls=_0x2b1b05('uni.network.url-service');var Hr=Object[_0x1f5a54(0x29f)],xr=Object[_0x1f5a54(0x3cc)],Fr=(_0x3e1d1a,_0x424c9e,_0x77c23c,_0x29c568)=>{for(var _0x400fae=_0x29c568>0x1?void 0x0:_0x29c568?xr(_0x424c9e,_0x77c23c):_0x424c9e,_0x31dcf5=_0x3e1d1a['length']-0x1,_0x5d2f35;_0x31dcf5>=0x0;_0x31dcf5--)(_0x5d2f35=_0x3e1d1a[_0x31dcf5])&&(_0x400fae=(_0x29c568?_0x5d2f35(_0x424c9e,_0x77c23c,_0x400fae):_0x5d2f35(_0x400fae))||_0x400fae);return _0x29c568&&_0x400fae&&Hr(_0x424c9e,_0x77c23c,_0x400fae),_0x400fae;},le=(_0x504da7,_0x43b6ab)=>(_0x16d08b,_0x5558b2)=>_0x43b6ab(_0x16d08b,_0x5558b2,_0x504da7);let Be=class extends _0x5915f1{constructor(_0x41b174,_0x41ab2c,_0x58aca8,_0x235454,_0x19ab29,_0x2b01e9){const _0x45781c=_0x1f5a54;super(),this[_0x45781c(0x2ed)]=_0x41b174,this[_0x45781c(0x308)]=_0x41ab2c,this[_0x45781c(0x299)]=_0x58aca8,this[_0x45781c(0x24c)]=_0x235454,this['_snapshotService']=_0x19ab29,_0x2b01e9?_0x2b01e9==null||_0x2b01e9[_0x45781c(0x2e1)]()[_0x45781c(0x2e0)](()=>this['_init']()):(this[_0x45781c(0x308)][_0x45781c(0x319)](_0x45781c(0x1e7),_0x45781c(0x265)),this[_0x45781c(0x3b6)]());}async['_init'](){const _0x200853=_0x1f5a54,_0x2b8aec=this[_0x200853(0x2ed)][_0x200853(0x1f9)](_0x200853(0x32f)),_0x8fdc30=this[_0x200853(0x2ed)][_0x200853(0x1f9)](_0x200853(0x400));if(!_0x2b8aec||!_0x8fdc30){this[_0x200853(0x308)][_0x200853(0x319)](_0x200853(0x1e7),_0x200853(0x16b));return;}switch(Number(_0x8fdc30)){case H[_0x200853(0x320)]:{const _0x1ff33a=await this[_0x200853(0x241)](_0x2b8aec);this['_setupSubUnitSync'](_0x1ff33a);break;}case H[_0x200853(0x315)]:{await this[_0x200853(0x45f)](_0x2b8aec);break;}default:{this[_0x200853(0x308)][_0x200853(0x419)](_0x200853(0x1e7),_0x200853(0x40a));break;}}}async[_0x1f5a54(0x15e)](_0x26914f){const _0x47aa4b=_0x1f5a54;await this['_updateSubUnitFromURLParams'](_0x26914f),_0x26914f[_0x47aa4b(0x17a)][_0x47aa4b(0x180)](_0x57fb4a(this['dispose$']))['subscribe'](_0xaad1c9=>{const _0x4f25dc=_0x47aa4b;_0xaad1c9&&this[_0x4f25dc(0x2f6)](_0xaad1c9);}),this[_0x47aa4b(0x2ed)][_0x47aa4b(0x290)][_0x47aa4b(0x180)](_0x57fb4a(this[_0x47aa4b(0x3cd)]))[_0x47aa4b(0x2d9)](()=>this[_0x47aa4b(0x445)](_0x26914f));}[_0x1f5a54(0x2f6)](_0x289152,_0x296291=!0x1){const _0x3c792e=_0x1f5a54,_0x4a68db=this[_0x3c792e(0x2ed)]['getParam'](_0x3c792e(0x15c));_0x289152[_0x3c792e(0x31a)]()!==_0x4a68db&&this[_0x3c792e(0x2ed)][_0x3c792e(0x31b)](_0x3c792e(0x15c),_0x289152[_0x3c792e(0x31a)](),_0x296291);}async['_updateSubUnitFromURLParams'](_0x4ea859){const _0x1d2663=_0x1f5a54;var _0x5c9aa6;const _0x44c566=this[_0x1d2663(0x2ed)]['getParam'](_0x1d2663(0x15c));if(!_0x44c566||!_0x4ea859[_0x1d2663(0x232)](_0x44c566)){const _0x3b5f33=_0x4ea859[_0x1d2663(0x1ff)]()[0x0],_0x1d81c7=_0x4ea859[_0x1d2663(0x232)](_0x3b5f33);if(!_0x1d81c7)return;this['_updateURLWithCurrentState'](_0x1d81c7,!0x0),await this['_commandService']['executeCommand'](_0x436c7c['id'],{'unitId':_0x4ea859[_0x1d2663(0x2a2)](),'subUnitId':_0x3b5f33});return;}((_0x5c9aa6=_0x4ea859['getActiveSheet']())==null?void 0x0:_0x5c9aa6[_0x1d2663(0x31a)]())!==_0x44c566&&await this['_commandService'][_0x1d2663(0x2b2)](_0x436c7c['id'],{'unitId':_0x4ea859[_0x1d2663(0x2a2)](),'subUnitId':_0x44c566});}async[_0x1f5a54(0x241)](_0x3a1b68){const _0x2e1850=_0x1f5a54;let _0x51e41a=0x0;const _0x9f4b31=await this[_0x2e1850(0x24c)][_0x2e1850(0x473)](_0x3a1b68);return _0x9f4b31&&(_0x9f4b31[_0x2e1850(0x266)]||_0x9f4b31[_0x2e1850(0x466)][_0x2e1850(0x2d6)]!==0x0)&&(_0x51e41a=_0x9f4b31[_0x2e1850(0x1e9)]),_0x51e41a===0x0&&this['_logService'][_0x2e1850(0x319)](_0x2e1850(0x1e7),_0x2e1850(0x2b8)),this[_0x2e1850(0x345)][_0x2e1850(0x455)](_0x3a1b68,_0x51e41a);}async[_0x1f5a54(0x45f)](_0x279686){const _0xb00588=_0x1f5a54;let _0x4a5752=0x0;const _0x3f45b2=await this['_localCacheService']['loadOfflineData'](_0x279686);return _0x3f45b2&&(_0x3f45b2[_0xb00588(0x266)]||_0x3f45b2[_0xb00588(0x466)][_0xb00588(0x2d6)]!==0x0)&&(_0x4a5752=_0x3f45b2['rev']),_0x4a5752===0x0&&this[_0xb00588(0x308)][_0xb00588(0x319)](_0xb00588(0x1e7),_0xb00588(0x2b8)),this[_0xb00588(0x345)]['loadDoc'](_0x279686,_0x4a5752);}};Be=Fr([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],Be),le(0x0,Ls),le(0x1,_0x3e33de),le(0x2,_0x257ce4),le(0x3,_0x61a763(D)),le(0x4,_0x61a763(_0x13134a)),le(0x5,_0x455db1(_0x49344d))],Be);var Vr=Object[_0x1f5a54(0x29f)],kr=Object['getOwnPropertyDescriptor'],Br=(_0x343482,_0x511f68,_0x12a823,_0x540670)=>{const _0x3d9958=_0x1f5a54;for(var _0x15ba45=_0x540670>0x1?void 0x0:_0x540670?kr(_0x511f68,_0x12a823):_0x511f68,_0x1bd12b=_0x343482[_0x3d9958(0x2d6)]-0x1,_0x48c02f;_0x1bd12b>=0x0;_0x1bd12b--)(_0x48c02f=_0x343482[_0x1bd12b])&&(_0x15ba45=(_0x540670?_0x48c02f(_0x511f68,_0x12a823,_0x15ba45):_0x48c02f(_0x15ba45))||_0x15ba45);return _0x540670&&_0x15ba45&&Vr(_0x511f68,_0x12a823,_0x15ba45),_0x15ba45;},ss=(_0x22ab45,_0x40ac70)=>(_0x54a8df,_0x3ef2d7)=>_0x40ac70(_0x54a8df,_0x3ef2d7,_0x22ab45);const Wr=_0x1f5a54(0x245),Gr=_0x1f5a54(0x26a);let We=class extends _0x462626{constructor(_0x29e431,_0x51ebaa){const _0x135d26=_0x1f5a54;super(),this[_0x135d26(0x357)]=_0x29e431,this[_0x135d26(0x20c)]=_0x51ebaa,this['_init']();}[_0x1f5a54(0x3b6)](){const _0x401697=_0x1f5a54;this[_0x401697(0x194)](_0x5d3cf2(this['_univerInstanceService'][_0x401697(0x2ea)][_0x401697(0x2d9)](()=>{const _0x387461=_0x401697;var _0x24e003;const _0x507c1c=this[_0x387461(0x357)][_0x387461(0x3ed)]();let _0x21008f=(_0x24e003=this[_0x387461(0x20c)][_0x387461(0x19e)](Wr))!=null?_0x24e003:Gr;_0x507c1c instanceof _0x40f416&&(_0x21008f=_0x507c1c['name']),document[_0x387461(0x188)]=_0x21008f;})));}};We=Br([_0x182a37(_0x46c7aa['Ready'],We),ss(0x0,_0x55bd21),ss(0x1,_0x43c997)],We);var Yr=Object[_0x1f5a54(0x29f)],Kr=Object[_0x1f5a54(0x3cc)],Xr=(_0x15c1d4,_0x22d6c0,_0x4f1de7,_0xa5642b)=>{const _0x117c7f=_0x1f5a54;for(var _0x28bc81=_0xa5642b>0x1?void 0x0:_0xa5642b?Kr(_0x22d6c0,_0x4f1de7):_0x22d6c0,_0x242a6a=_0x15c1d4[_0x117c7f(0x2d6)]-0x1,_0x1606f6;_0x242a6a>=0x0;_0x242a6a--)(_0x1606f6=_0x15c1d4[_0x242a6a])&&(_0x28bc81=(_0xa5642b?_0x1606f6(_0x22d6c0,_0x4f1de7,_0x28bc81):_0x1606f6(_0x28bc81))||_0x28bc81);return _0xa5642b&&_0x28bc81&&Yr(_0x22d6c0,_0x4f1de7,_0x28bc81),_0x28bc81;},is=(_0x5235a0,_0x1319ec)=>(_0x2be2c1,_0x2d9f89)=>_0x1319ec(_0x2be2c1,_0x2d9f89,_0x5235a0);let Ct=class{constructor(_0x1c7561,_0x736387){this['_configService']=_0x1c7561,this['_httpService']=_0x736387;}async[_0x1f5a54(0x369)](_0x13280f,_0xdd62d){const _0x682d2f=_0x1f5a54;var _0x2d1095;const {unitID:_0x22339e,type:_0x450357,revision:_0x39f1f0=0x0}=_0xdd62d,_0x65ec33=this[_0x682d2f(0x2ca)]()+'/'+_0x450357+_0x682d2f(0x35e)+_0x22339e+_0x682d2f(0x29e)+_0x39f1f0,_0x4135f2=(await this[_0x682d2f(0x2da)][_0x682d2f(0x393)](_0x65ec33))[_0x682d2f(0x39a)],_0x172e85=(_0x2d1095=_0x4135f2['snapshot'])==null?void 0x0:_0x2d1095['workbook'];if(_0x172e85){const _0x55bfcb=_0x172e85==null?void 0x0:_0x172e85['originalMeta'],_0x425471=_0x4823f1[_0x682d2f(0x41e)](_0x5dde85(_0x55bfcb));_0x172e85[_0x682d2f(0x3bb)]=_0x425471,Object['entries'](_0x172e85[_0x682d2f(0x479)])[_0x682d2f(0x37a)](([,_0x5670e7])=>{const _0x1861c5=_0x682d2f,_0x1c6bf4=_0x5670e7[_0x1861c5(0x3bb)],_0x5edfb2=_0x4823f1[_0x1861c5(0x41e)](_0x5dde85(_0x1c6bf4));_0x5670e7['originalMeta']=_0x5edfb2;});}return _0x4135f2;}async['getSheetBlock'](_0x160ac5,_0x42115b){const _0x430bb9=_0x1f5a54,{unitID:_0x4695b5,type:_0x2a0f8c,blockID:_0x4efebe}=_0x42115b,_0x44a6ef=this[_0x430bb9(0x1ca)]()+'/'+_0x2a0f8c+_0x430bb9(0x35e)+_0x4695b5+'/block/'+_0x4efebe;return(await this['_httpService']['get'](_0x44a6ef))[_0x430bb9(0x39a)];}async[_0x1f5a54(0x355)](_0x586f34,_0x448587){const _0x52576a=_0x1f5a54,{unitID:_0x1e87a4,type:_0x12353b,from:_0xd2d297,to:_0x20be7f}=_0x448587,_0xabaf8e=this[_0x52576a(0x1ca)]()+'/'+_0x12353b+_0x52576a(0x35e)+_0x1e87a4+'/fetchmissing?from='+_0xd2d297+_0x52576a(0x24e)+_0x20be7f;return(await this[_0x52576a(0x2da)][_0x52576a(0x393)](_0xabaf8e))[_0x52576a(0x39a)];}[_0x1f5a54(0x2ca)](){const _0x23368d=_0x1f5a54;var _0x5cbcf7;return(_0x5cbcf7=this[_0x23368d(0x20c)][_0x23368d(0x19e)](Qi))!=null?_0x5cbcf7:this['_getAPIPrefix']();}[_0x1f5a54(0x1ca)](){const _0x3a203c=_0x1f5a54;var _0x384481;return(_0x384481=this[_0x3a203c(0x20c)][_0x3a203c(0x19e)](zi))!=null?_0x384481:Zi;}async['getResourcesRequest'](_0x39fb41,_0x2a6d24){const _0x305cca=_0x1f5a54,_0xf2d801=_0x305cca(0x43b)+_0x2a6d24[_0x305cca(0x400)]+_0x305cca(0x35e)+_0x2a6d24[_0x305cca(0x213)]+'/resources';return(await this[_0x305cca(0x2da)][_0x305cca(0x393)](_0xf2d801,{'params':{'resourceId':JSON[_0x305cca(0x41c)](_0x2a6d24['resourceIDs'])}}))['body'];}[_0x1f5a54(0x417)](){const _0x5b78ba=_0x1f5a54;throw new Error(_0x5b78ba(0x478));}['saveSheetBlock'](){const _0x20b94c=_0x1f5a54;throw new Error(_0x20b94c(0x478));}[_0x1f5a54(0x1f1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ct=Xr([is(0x0,_0x43c997),is(0x1,_0x61a763(_0x11da14))],Ct);var Jr=Object['defineProperty'],qr=Object[_0x1f5a54(0x3cc)],zr=(_0x57691b,_0x28f4e6,_0x1642ac,_0x36b639)=>{for(var _0x4d64eb=_0x36b639>0x1?void 0x0:_0x36b639?qr(_0x28f4e6,_0x1642ac):_0x28f4e6,_0x2ce704=_0x57691b['length']-0x1,_0x49e099;_0x2ce704>=0x0;_0x2ce704--)(_0x49e099=_0x57691b[_0x2ce704])&&(_0x4d64eb=(_0x36b639?_0x49e099(_0x28f4e6,_0x1642ac,_0x4d64eb):_0x49e099(_0x4d64eb))||_0x4d64eb);return _0x36b639&&_0x4d64eb&&Jr(_0x28f4e6,_0x1642ac,_0x4d64eb),_0x4d64eb;},Te=(_0xc1a7fb,_0x3dc8e1)=>(_0x308399,_0x3910ac)=>_0x3dc8e1(_0x308399,_0x3910ac,_0xc1a7fb);let bt=class extends _0x10db64{constructor(_0x24498c,_0x568368,_0x96c516,_0x13327b,_0x18eaab){const _0xd7e612=_0x1f5a54;super(_0x24498c,_0x568368,_0x96c516),this[_0xd7e612(0x327)]=_0x13327b,this[_0xd7e612(0x308)]=_0x18eaab;}[_0x1f5a54(0x25f)](_0x1bb85b,_0x73b700){const _0x17cb60=_0x1f5a54,_0x4b869b=this[_0x17cb60(0x441)](_0x1bb85b);if(_0x4b869b)try{const _0xa235de=this[_0x17cb60(0x19b)](_0x4b869b,_0x73b700);this[_0x17cb60(0x1c1)](_0x1bb85b,_0xa235de);}catch(_0x445a2f){this[_0x17cb60(0x308)][_0x17cb60(0x419)]('[CollaborationUndoRedoService]',_0x445a2f),this['_clearUndo'](_0x1bb85b);}const _0x5a9974=this['_getRedoStack'](_0x1bb85b);if(_0x5a9974)try{const _0x1923c4=this[_0x17cb60(0x19b)](_0x5a9974,_0x73b700);this['_substituteRedoStack'](_0x1bb85b,_0x1923c4);}catch(_0x18fbfc){this[_0x17cb60(0x308)]['error'](_0x18fbfc),this[_0x17cb60(0x22d)](_0x1bb85b);}}[_0x1f5a54(0x1e0)](_0x1fe7d8){const _0x591814=_0x1f5a54,_0x459196=this[_0x591814(0x441)](_0x1fe7d8);_0x459196&&(_0x459196[_0x591814(0x2d6)]=0x0,this[_0x591814(0x1cb)]());}['_clearRedo'](_0x50293f){const _0x2bb3b9=_0x1f5a54,_0x47a314=this[_0x2bb3b9(0x205)](_0x50293f);_0x47a314&&(_0x47a314[_0x2bb3b9(0x2d6)]=0x0,this[_0x2bb3b9(0x1cb)]());}[_0x1f5a54(0x1c1)](_0x20dbfe,_0x593f57){const _0x2c5e8e=_0x1f5a54;this[_0x2c5e8e(0x368)][_0x2c5e8e(0x22e)](_0x20dbfe,_0x593f57),this[_0x2c5e8e(0x1cb)]();}[_0x1f5a54(0x3ff)](_0x4ee8b6,_0xb1eb6b){const _0x2e0b33=_0x1f5a54;this[_0x2e0b33(0x44e)][_0x2e0b33(0x22e)](_0x4ee8b6,_0xb1eb6b),this[_0x2e0b33(0x1cb)]();}[_0x1f5a54(0x19b)](_0x3b3a44,_0x33a473){const _0x3c4eae=_0x1f5a54,_0x5547d9=[];let _0x2ea057=_0x33a473,_0x43f032=_0x33a473;for(let _0x1c2c19=_0x3b3a44[_0x3c4eae(0x2d6)]-0x1;_0x1c2c19>=0x0;_0x1c2c19--){const {unitID:_0x2fc5f2,undoMutations:_0x19cca2,redoMutations:_0x2f4cc9}=_0x3b3a44[_0x1c2c19],_0x40c350=this[_0x3c4eae(0x327)][_0x3c4eae(0x461)](_0x2ea057,_0x19cca2),_0x44276b=this[_0x3c4eae(0x327)][_0x3c4eae(0x461)](_0x43f032,_0x2f4cc9);if(_0x2aee01(_0x40c350)||_0x2aee01(_0x44276b)){this[_0x3c4eae(0x308)]['error'](_0x3c4eae(0x475),'transformStack\x20failed!',_0x40c350,_0x44276b);break;}_0x2ea057=_0x40c350['c1Prime'],_0x43f032=_0x44276b['c1Prime'],_0x5547d9[_0x3c4eae(0x310)]({'unitID':_0x2fc5f2,'undoMutations':_0x40c350[_0x3c4eae(0x349)],'redoMutations':_0x44276b[_0x3c4eae(0x349)]});}return _0x5547d9['reverse']();}};bt=zr([Te(0x0,_0x55bd21),Te(0x1,_0x257ce4),Te(0x2,_0x1da175),Te(0x3,_0x1215ee),Te(0x4,_0x3e33de)],bt);class Zr extends _0x5915f1{constructor(){const _0xf24d29=_0x1f5a54;super(),l(this,_0xf24d29(0x290)),this[_0xf24d29(0x290)]=_0x45523d(window,_0xf24d29(0x3e8))[_0xf24d29(0x180)](_0x57fb4a(this['dispose$']),_0x956324(0x1),_0x43ae84(void 0x0));}['setParam'](_0x5c377c,_0x6328c5,_0x600aa1=!0x1){const _0x1b393c=_0x1f5a54,_0x5e4a18=new URL(window['location'][_0x1b393c(0x1e5)]);_0x5e4a18[_0x1b393c(0x1aa)][_0x1b393c(0x22e)](_0x5c377c,_0x6328c5),_0x600aa1?window[_0x1b393c(0x32d)][_0x1b393c(0x20e)]('','',_0x5e4a18[_0x1b393c(0x196)]()):window[_0x1b393c(0x32d)]['pushState']('','',_0x5e4a18[_0x1b393c(0x196)]());}['removeParam'](_0x418fbd,_0x5bfddd=!0x1){const _0x2770e5=_0x1f5a54,_0xcc5a54=new URL(window[_0x2770e5(0x15a)]['href']);_0xcc5a54[_0x2770e5(0x1aa)][_0x2770e5(0x3a5)](_0x418fbd),_0x5bfddd?window['history'][_0x2770e5(0x20e)]('','',_0xcc5a54[_0x2770e5(0x196)]()):window['history'][_0x2770e5(0x337)]('','',_0xcc5a54[_0x2770e5(0x196)]());}[_0x1f5a54(0x1f9)](_0x43874e){const _0x517184=_0x1f5a54;var _0x30c9b1;return(_0x30c9b1=new URL(window[_0x517184(0x15a)][_0x517184(0x1e5)])[_0x517184(0x1aa)][_0x517184(0x393)](_0x43874e))!=null?_0x30c9b1:void 0x0;}}const lt='collab-text-anchor-',Qr='collab-text-range-',He=0x6,eo=1.5,_t=0x4,to=1.5,so=_0x1f5a54(0x351);class io{constructor(_0x5e34a3,_0x14bcf7,_0x462622,_0x3cfd94){const _0x33087f=_0x1f5a54;l(this,_0x33087f(0x2d5),[]),l(this,_0x33087f(0x401),null),l(this,_0x33087f(0x418),null),l(this,'_anchorDot',null),l(this,'_hideTimer',null),l(this,_0x33087f(0x219),null),(this[_0x33087f(0x312)]=_0x5e34a3,this['_scene']=_0x14bcf7,this[_0x33087f(0x175)]=_0x462622,this['_document']=_0x3cfd94,this[_0x33087f(0x187)]());}set[_0x1f5a54(0x1ae)](_0x43d4ad){const _0x235f1f=_0x1f5a54;_0x43d4ad?(this[_0x235f1f(0x25d)]&&this[_0x235f1f(0x25d)][_0x235f1f(0x2a8)](),this[_0x235f1f(0x418)]&&this[_0x235f1f(0x418)][_0x235f1f(0x43a)]()):(this['_anchorDot']&&this[_0x235f1f(0x25d)][_0x235f1f(0x43a)](),this[_0x235f1f(0x418)]&&this[_0x235f1f(0x418)]['hide']());}[_0x1f5a54(0x26e)](){const _0x3bfb7f=_0x1f5a54;for(const _0x11065d of this['_shapes'])_0x11065d[_0x3bfb7f(0x26e)]();this[_0x3bfb7f(0x418)]&&this[_0x3bfb7f(0x418)][_0x3bfb7f(0x26e)](),this['_anchorDot']&&this[_0x3bfb7f(0x25d)][_0x3bfb7f(0x26e)](),this['_anchor']&&this[_0x3bfb7f(0x401)][_0x3bfb7f(0x26e)](),this[_0x3bfb7f(0x219)]&&this['_eventUnsubscribe']();}[_0x1f5a54(0x187)](){const _0x2afcf8=_0x1f5a54,{_docSkeleton:_0x47df2e,_document:_0x2e09e8}=this,{color:_0x477e76,name:_0x392df5,ranges:_0x38c469}=this['_cursor'],_0x5e890c=_0x2e09e8['getOffsetConfig'](),{docsLeft:_0x47fbb9,docsTop:_0x48bc5e}=_0x5e890c,_0x4ae7d7=new _0x229c8a(_0x5e890c,_0x47df2e);for(const {startOffset:_0x3be36a,endOffset:_0x4e9268,collapsed:_0x227e40,isActive:_0x3f2287}of _0x38c469){const _0x1466cd=_0x47df2e[_0x2afcf8(0x331)](_0x3be36a),_0xb5ef24=_0x47df2e[_0x2afcf8(0x331)](_0x4e9268);if(_0x3f2287){const {contentBoxPointGroup:_0x3a5550}=_0x4ae7d7['getRangePointData'](_0xb5ef24,_0xb5ef24);if(_0x3a5550[_0x2afcf8(0x2d6)]===0x0)continue;this[_0x2afcf8(0x1f3)](_0x477e76,_0x3a5550,_0x47fbb9,_0x48bc5e,_0x392df5),this[_0x2afcf8(0x219)]=this[_0x2afcf8(0x2ff)]();}if(!_0x227e40){const {contentBoxPointGroup:_0x308f50}=_0x4ae7d7[_0x2afcf8(0x16e)](_0x1466cd,_0xb5ef24);if(_0x308f50[_0x2afcf8(0x2d6)]===0x0)continue;this[_0x2afcf8(0x387)](_0x477e76,_0x308f50,_0x47fbb9,_0x48bc5e);}}}['_drawAnchor'](_0x1e119d,_0x4949fd,_0x1765ef,_0x3ad932,_0x184025){const _0x1f37c7=_0x1f5a54,_0x3c5a93=this['_getAnchorBounding'](_0x4949fd),{left:_0x305d88,top:_0x11e663,height:_0x4ebcc8}=_0x3c5a93,_0x75bdb7=this[_0x1f37c7(0x367)](),_0x4c8b20=to/_0x75bdb7,_0xd06bb=new _0x5d7c63(lt+_0x4b796f[_0x1f37c7(0x328)](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932,'height':_0x4ebcc8,'width':eo,'fill':_0x1e119d||_0x3b289f(_0x411a85['black'],0x0),'strokeWidth':_0x4c8b20,'stroke':so,'evented':!0x0});this[_0x1f37c7(0x401)]=_0xd06bb,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0xd06bb,_0x293d74);const _0x3a5eed=new _0x5d7c63(lt+_0x4b796f['generateRandomId'](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932-_t/0x2,'height':_t,'width':_t,'fill':_0x1e119d||_0x3b289f(_0x411a85[_0x1f37c7(0x27c)],0x0),'strokeWidth':0x0,'stroke':_0x1e119d||_0x3b289f(_0x411a85[_0x1f37c7(0x27c)],0x0),'evented':!0x1});this[_0x1f37c7(0x25d)]=_0x3a5eed,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0x3a5eed,_0x293d74);const _0x4baede=new st(lt+_0x4b796f[_0x1f37c7(0x328)](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932-Me,'text':_0x184025,'color':_0x1e119d});this[_0x1f37c7(0x418)]=_0x4baede,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0x4baede,_0x293d74),this[_0x1f37c7(0x1ae)]=!0x1;}[_0x1f5a54(0x2ff)](){const _0x62e225=_0x1f5a54,_0x2fc20a=this['_anchor']['onPointerEnter$'][_0x62e225(0x341)](()=>{this['_hover']=!0x0;}),_0x5eb797=this[_0x62e225(0x401)][_0x62e225(0x242)][_0x62e225(0x341)](()=>{const _0x1c4a31=_0x62e225;this[_0x1c4a31(0x381)]&&clearTimeout(this['_hideTimer']),this[_0x1c4a31(0x381)]=setTimeout(()=>{const _0x48b0cb=_0x1c4a31;this[_0x48b0cb(0x1ae)]=!0x1;},0x7d0);});return()=>{const _0x34fd06=_0x62e225;_0x2fc20a['unsubscribe'](),_0x5eb797[_0x34fd06(0x3d0)]();};}['_drawRange'](_0x530bfd,_0x3a3b8c,_0x78fc4f,_0x33afc7){const _0x9073ed=_0x1f5a54,_0x576dba=new _0x41c257(_0x530bfd)['setAlpha'](0.2)[_0x9073ed(0x38e)](),_0x3f9fdb=new _0x2b0581(Qr+_0x4b796f[_0x9073ed(0x328)](He),{'pointsGroup':_0x3a3b8c,'fill':_0x576dba||_0x3b289f(_0x411a85[_0x9073ed(0x27c)],0.2),'left':_0x78fc4f,'top':_0x33afc7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9073ed(0x2d5)]['push'](_0x3f9fdb),this[_0x9073ed(0x178)][_0x9073ed(0x2e5)](_0x3f9fdb,_0x293d74);}[_0x1f5a54(0x34c)](_0x530a26){const _0x5daabf=_0x530a26[0x0],_0x20b905=_0x5daabf[0x0],_0x3455b9=_0x5daabf[0x2],{x:_0x2f8639,y:_0xef3d8d}=_0x20b905,{x:_0x2adb5d,y:_0x178f78}=_0x3455b9;return{'left':_0x2f8639,'top':_0xef3d8d,'width':_0x2adb5d-_0x2f8639,'height':_0x178f78-_0xef3d8d};}[_0x1f5a54(0x367)](){const _0x341e02=_0x1f5a54,{scaleX:_0x7b25a4,scaleY:_0x910a16}=this[_0x341e02(0x178)][_0x341e02(0x32b)]();return Math[_0x341e02(0x44a)](_0x7b25a4,_0x910a16);}}var no=Object[_0x1f5a54(0x29f)],ro=Object[_0x1f5a54(0x3cc)],oo=(_0xb24f8,_0x23d493,_0x3e7609,_0x2bf5b2)=>{const _0x52e9b6=_0x1f5a54;for(var _0x38e477=_0x2bf5b2>0x1?void 0x0:_0x2bf5b2?ro(_0x23d493,_0x3e7609):_0x23d493,_0x326044=_0xb24f8[_0x52e9b6(0x2d6)]-0x1,_0x54fe4f;_0x326044>=0x0;_0x326044--)(_0x54fe4f=_0xb24f8[_0x326044])&&(_0x38e477=(_0x2bf5b2?_0x54fe4f(_0x23d493,_0x3e7609,_0x38e477):_0x54fe4f(_0x38e477))||_0x38e477);return _0x2bf5b2&&_0x38e477&&no(_0x23d493,_0x3e7609,_0x38e477),_0x38e477;},Re=(_0x3b45cc,_0x4fd870)=>(_0x6bdb5,_0x1ad6b0)=>_0x4fd870(_0x6bdb5,_0x1ad6b0,_0x3b45cc);let Ge=class extends _0x5915f1{constructor(_0x1ef5e0,_0x398bdb,_0x4b00db,_0x42bfef,_0x15f0a0){const _0x51017c=_0x1f5a54;super(),l(this,_0x51017c(0x2bc),[]),(this['_collabCursorController']=_0x1ef5e0,this['_univerInstanceService']=_0x398bdb,this[_0x51017c(0x168)]=_0x4b00db,this[_0x51017c(0x399)]=_0x42bfef,this['_themeService']=_0x15f0a0,this[_0x51017c(0x3b6)]());}['_init'](){const _0x5037c4=_0x1f5a54;this[_0x5037c4(0x399)][_0x5037c4(0x2a9)][_0x5037c4(0x180)](_0x31e4a6(this[_0x5037c4(0x3cd)]),_0x4c3023(_0x28b9be=>{const _0xcf4ada=_0x5037c4;if(_0x28b9be){const _0x5f5666=_0x28b9be[_0xcf4ada(0x204)]()[_0xcf4ada(0x35b)]()[_0xcf4ada(0x2a2)]();return _0x5732cb(this[_0xcf4ada(0x3f9)][_0xcf4ada(0x25c)](_0x5f5666),this[_0xcf4ada(0x165)]['currentTheme$'])['pipe'](_0x28f321(([_0x2f657b,_0x1817b1])=>({'skeleton':_0x28b9be,'cursors':[..._0x2f657b[_0xcf4ada(0x410)]()][_0xcf4ada(0x21a)](_0x1003b1=>({..._0x1003b1,'color':_0x1817b1[_0x1003b1[_0xcf4ada(0x428)]]}))})));}return _0x110ce6({'skeleton':null,'cursors':[]});}))[_0x5037c4(0x2d9)](({skeleton:_0x834e45,cursors:_0x4625af})=>{const _0x9f1723=_0x5037c4;this[_0x9f1723(0x34e)](),_0x834e45&&this['_updateCollabCursors'](_0x834e45,_0x4625af);});}[_0x1f5a54(0x304)](_0x283696,_0x2ae031){const _0x56dac6=_0x1f5a54,_0x4ce7d0=this['_getDocObject']();if(_0x4ce7d0==null)return;const {scene:_0x3c4965,document:_0xae72b8}=_0x4ce7d0,_0x46ef6a=_0x2ae031['map'](_0x11260a=>new io(_0x11260a,_0x3c4965,_0x283696,_0xae72b8));this[_0x56dac6(0x2bc)]=_0x46ef6a;}['_removeCollabCursors'](){const _0x12c3c1=_0x1f5a54;this[_0x12c3c1(0x2bc)][_0x12c3c1(0x37a)](_0x4f61c5=>_0x4f61c5['dispose']()),this['_cursors']=[];}[_0x1f5a54(0x36e)](){const _0x351eea=_0x1f5a54;return _0x5ef147(this[_0x351eea(0x357)],this[_0x351eea(0x168)]);}};Ge=oo([_0x182a37(_0x46c7aa[_0x1f5a54(0x3a3)],Ge),Re(0x0,_0x61a763(fe)),Re(0x1,_0x55bd21),Re(0x2,_0x8604c3),Re(0x3,_0x61a763(_0x3824ed)),Re(0x4,_0x61a763(_0x5a1d7c))],Ge);var ao=Object[_0x1f5a54(0x29f)],co=Object[_0x1f5a54(0x3cc)],ho=(_0x2e9f26,_0x117706,_0xaae140,_0x5435d3)=>{for(var _0x5bfa25=_0x5435d3>0x1?void 0x0:_0x5435d3?co(_0x117706,_0xaae140):_0x117706,_0x538633=_0x2e9f26['length']-0x1,_0x4e160f;_0x538633>=0x0;_0x538633--)(_0x4e160f=_0x2e9f26[_0x538633])&&(_0x5bfa25=(_0x5435d3?_0x4e160f(_0x117706,_0xaae140,_0x5bfa25):_0x4e160f(_0x5bfa25))||_0x5bfa25);return _0x5435d3&&_0x5bfa25&&ao(_0x117706,_0xaae140,_0x5bfa25),_0x5bfa25;},ut=(_0x1b3e87,_0x87095f)=>(_0x424698,_0x1cd2e6)=>_0x87095f(_0x424698,_0x1cd2e6,_0x1b3e87);let Ze=class{constructor(_0x2c1678,_0x3a623e,_0x448b8f){const _0x530a03=_0x1f5a54;this[_0x530a03(0x20c)]=_0x2c1678,this[_0x530a03(0x2da)]=_0x3a623e,this[_0x530a03(0x1a8)]=_0x448b8f,this['init']();}[_0x1f5a54(0x33e)](){const _0x4478e3=_0x1f5a54;this[_0x4478e3(0x2da)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x38a7aa,_0x36bada)=>_0x36bada(_0x38a7aa)[_0x4478e3(0x180)](_0x12334d(async _0x1e7d97=>{const _0x3abf93=_0x4478e3,_0x43621a=_0x1e7d97;if(_0x43621a['status']===0x191&&window['confirm'](this[_0x3abf93(0x1a8)]['t']('auth.needGotoLoginAlert'))){const _0x474b3c=window['encodeURIComponent'](window[_0x3abf93(0x15a)][_0x3abf93(0x1e5)]);window['location'][_0x3abf93(0x1e5)]=this[_0x3abf93(0x151)]()+'?url='+_0x474b3c;}return _0x43621a;}))});}['_getLoginPath'](){const _0x2613c5=_0x1f5a54;var _0x3476e2;return(_0x3476e2=this[_0x2613c5(0x20c)][_0x2613c5(0x19e)](mn))!=null?_0x3476e2:gn;}};Ze=ho([ut(0x0,_0x43c997),ut(0x1,_0x61a763(_0x11da14)),ut(0x2,_0x61a763(_0x4eec6f))],Ze);var lo=Object[_0x1f5a54(0x29f)],_o=Object[_0x1f5a54(0x3cc)],uo=(_0x52526c,_0x158eee,_0x3fd2a0,_0x56195b)=>{const _0xb40409=_0x1f5a54;for(var _0x4f14b3=_0x56195b>0x1?void 0x0:_0x56195b?_o(_0x158eee,_0x3fd2a0):_0x158eee,_0x193f94=_0x52526c[_0xb40409(0x2d6)]-0x1,_0x2b9a4a;_0x193f94>=0x0;_0x193f94--)(_0x2b9a4a=_0x52526c[_0x193f94])&&(_0x4f14b3=(_0x56195b?_0x2b9a4a(_0x158eee,_0x3fd2a0,_0x4f14b3):_0x2b9a4a(_0x4f14b3))||_0x4f14b3);return _0x56195b&&_0x4f14b3&&lo(_0x158eee,_0x3fd2a0,_0x4f14b3),_0x4f14b3;},ns=(_0x3e8802,_0xabeaa3)=>(_0x19784d,_0x1bc127)=>_0xabeaa3(_0x19784d,_0x1bc127,_0x3e8802);const fo=_0x1f5a54(0x225),mo=_0x1f5a54(0x252);let Tt=class extends _0x462626{constructor(_0x222cf1,_0x27b8ad){const _0x476674=_0x1f5a54;super(),this[_0x476674(0x2e4)]=_0x222cf1,this[_0x476674(0x20c)]=_0x27b8ad,this[_0x476674(0x391)]();}[_0x1f5a54(0x391)](){const _0xdd6f10=_0x1f5a54,_0x5d1300=this;this[_0xdd6f10(0x194)](this[_0xdd6f10(0x2e4)][_0xdd6f10(0x458)]({'priority':0x3e7,'interceptor':_0x10f37e({'isMatch'(_0xb7665b){const _0x312aad=_0xdd6f10;var _0x40e7e8;if(_0xb7665b[_0x312aad(0x3d2)]==='POST'&&((_0x40e7e8=_0xb7665b[_0x312aad(0x183)])!=null&&_0x40e7e8[_0x312aad(0x39a)])){const {objectID:_0x1a2c1e,objectType:_0x231edb}=_0xb7665b[_0x312aad(0x183)]['body']||{};if(!_0x1a2c1e||_0x231edb===void 0x0)return!0x1;const _0x3ad162=_0x5d1300[_0x312aad(0x36a)]()+'/'+_0x231edb+_0x312aad(0x18b)+_0x1a2c1e+'/allowed';if(_0xb7665b[_0x312aad(0x40e)]===_0x3ad162)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x529e13){const _0x253ed7=_0xdd6f10;var _0x5249b2;return(_0x5249b2=_0x529e13[_0x253ed7(0x183)])==null?void 0x0:_0x5249b2['body'];},'mergeParamsToRequest'(_0x278b05,_0x2bb808){const _0x4d6360=_0xdd6f10,_0xd3b92a=_0x5d1300[_0x4d6360(0x36a)]()+_0x4d6360(0x395),_0x1a7ed5=_0x278b05['reduce']((_0x26c7d8,_0x314d6a)=>{const _0x539477=_0x4d6360,{unitID:_0x189297,objectID:_0xed0f34,objectType:_0x4a7685,actions:_0x4db90c}=_0x314d6a;return _0x26c7d8[_0x189297]||(_0x26c7d8[_0x189297]={}),_0x26c7d8[_0x189297][_0xed0f34]||(_0x26c7d8[_0x189297][_0xed0f34]={'objectID':_0xed0f34,'objectType':_0x4a7685,'actions':[]}),_0x26c7d8[_0x189297][_0xed0f34][_0x539477(0x1b1)][_0x539477(0x310)](..._0x4db90c),_0x26c7d8;},{}),_0x2f03c0=[];for(const _0x240f71 in _0x1a7ed5)for(const _0xf929e1 in _0x1a7ed5[_0x240f71]){const {actions:_0x59e9ca,objectType:_0x20aee4}=_0x1a7ed5[_0x240f71][_0xf929e1],_0x5ef8fc=[...new Set(_0x59e9ca)];_0x2f03c0[_0x4d6360(0x310)]({'unitID':_0x240f71,'objectID':_0xf929e1,'objectType':_0x20aee4,'actions':_0x5ef8fc});}return new _0x5b1605(_0x4d6360(0x407),_0xd3b92a,{'headers':_0x2bb808[_0x4d6360(0x28f)],'withCredentials':_0x2bb808[_0x4d6360(0x211)],'responseType':_0x2bb808[_0x4d6360(0x46b)],'body':{'requests':_0x2f03c0}});}},{'distributeResult'(_0x468f51,_0x3c6045){const _0x26af80=_0xdd6f10,{objectActions:_0xf26587}=_0x468f51;return _0x3c6045[_0x26af80(0x1a7)](_0x440883=>{const _0x194484=_0x26af80,{unitID:_0xffcfa0,objectID:_0x58397e,actions:_0x7847a4}=_0x440883,_0x20dbaf=_0xf26587[_0x194484(0x17c)](_0x342c82=>_0x342c82[_0x194484(0x213)]===_0xffcfa0&&_0x342c82['objectID']===_0x58397e),_0x46ac82=_0x7847a4[_0x194484(0x1a7)](_0x1824d8=>_0x20dbaf==null?void 0x0:_0x20dbaf['actions'][_0x194484(0x17c)](_0x4d10d7=>_0x4d10d7[_0x194484(0x38c)]===_0x1824d8))[_0x194484(0x434)](_0x33b8bd=>!!_0x33b8bd);return{'config':_0x440883,'result':{'actions':_0x46ac82,'error':_0x468f51['error']}};});}})}));}[_0x1f5a54(0x36a)](){const _0x37274a=_0x1f5a54;var _0x5e18fb;return(_0x5e18fb=this[_0x37274a(0x20c)]['getConfig'](fo))!=null?_0x5e18fb:mo;}async[_0x1f5a54(0x1ee)](_0x1a0024){const _0x2c179c=_0x1f5a54,_0x3fa88f=this[_0x2c179c(0x36a)]()+'/'+_0x1a0024[_0x2c179c(0x314)]+_0x2c179c(0x2f8);return(await this[_0x2c179c(0x2e4)][_0x2c179c(0x1bf)](_0x3fa88f,{'body':_0x1a0024}))[_0x2c179c(0x39a)]['objectID']||'';}async['list'](_0x394860){const _0x219112=_0x1f5a54,_0x3f6b01=this[_0x219112(0x36a)]()+_0x219112(0x184);return(await this[_0x219112(0x2e4)][_0x219112(0x1bf)](_0x3f6b01,{'body':_0x394860}))[_0x219112(0x39a)][_0x219112(0x2f4)];}async['update'](_0x4451f0){const _0x2dd54f=_0x1f5a54,_0x1c653c=this['_getAPIPrefixPath']()+'/'+_0x4451f0[_0x2dd54f(0x314)]+'/object/'+_0x4451f0['objectID'];await this['_HTTPService']['put'](_0x1c653c,{'body':_0x4451f0});}async[_0x1f5a54(0x415)](_0x1c7dc0){const _0x4ece96=_0x1f5a54,_0x52943f=this['_getAPIPrefixPath']()+'/'+_0x1c7dc0['objectType']+_0x4ece96(0x18b)+_0x1c7dc0[_0x4ece96(0x1bd)]+'/allowed';return(await this['_HTTPService'][_0x4ece96(0x1bf)](_0x52943f,{'body':_0x1c7dc0}))[_0x4ece96(0x39a)][_0x4ece96(0x1b1)];}async[_0x1f5a54(0x3d9)](_0xd9c3ab){const _0xd8c204=_0x1f5a54,_0x93084a=this[_0xd8c204(0x36a)]()+'/-/object/-/batch_allowed';return(await this[_0xd8c204(0x2e4)]['post'](_0x93084a,{'body':{'requests':_0xd9c3ab}}))['body'][_0xd8c204(0x212)];}async[_0x1f5a54(0x39d)](_0x5333da){const _0x120831=_0x1f5a54,_0x5296a0=this['_getAPIPrefixPath']()+'/'+_0x5333da[_0x120831(0x314)]+'/role',_0x28aac=await this[_0x120831(0x2e4)][_0x120831(0x1bf)](_0x5296a0,{'body':_0x5333da});return{'roles':_0x28aac[_0x120831(0x39a)][_0x120831(0x203)],'actions':_0x28aac[_0x120831(0x39a)][_0x120831(0x1b1)]};}async[_0x1f5a54(0x294)](_0x423f66){const _0x15b489=_0x1f5a54,_0x4598aa=this[_0x15b489(0x36a)]()+'/collaborator';await this[_0x15b489(0x2e4)][_0x15b489(0x3a5)](_0x4598aa,{'params':{'collaboratorID':_0x423f66[_0x15b489(0x248)],'objectID':_0x423f66['objectID'],'unitID':_0x423f66[_0x15b489(0x213)]}});}async[_0x1f5a54(0x2c6)](_0x4b5c81){const _0x1a6d55=_0x1f5a54,_0x5160db=this[_0x1a6d55(0x36a)]()+_0x1a6d55(0x442);await this[_0x1a6d55(0x2e4)][_0x1a6d55(0x33f)](_0x5160db,{'body':_0x4b5c81});}async[_0x1f5a54(0x388)](_0x127e11){const _0x2fb4df=_0x1f5a54,_0x1caf81=this[_0x2fb4df(0x36a)]()+_0x2fb4df(0x442);await this[_0x2fb4df(0x2e4)][_0x2fb4df(0x1bf)](_0x1caf81,{'body':_0x127e11});}async[_0x1f5a54(0x233)](_0x25c603){const _0x164608=_0x1f5a54,_0x1d0192=this[_0x164608(0x36a)]()+_0x164608(0x442);return(await this[_0x164608(0x2e4)][_0x164608(0x393)](_0x1d0192,{'params':{'objectID':_0x25c603[_0x164608(0x1bd)],'unitID':_0x25c603[_0x164608(0x213)]}}))[_0x164608(0x39a)][_0x164608(0x256)];}async['putCollaborators'](_0x3cb786){const _0x3e5394=_0x1f5a54,_0xb3d04c=this[_0x3e5394(0x36a)]()+_0x3e5394(0x442);await this['_HTTPService'][_0x3e5394(0x15b)](_0xb3d04c,{'body':_0x3cb786});}};Tt=uo([ns(0x0,_0x61a763(_0x11da14)),ns(0x1,_0x61a763(_0x43c997))],Tt);var go=Object['defineProperty'],So=Object[_0x1f5a54(0x3cc)],vo=(_0xd7e909,_0x5e9d7e,_0x47f8bd,_0xb9287b)=>{const _0x18ccee=_0x1f5a54;for(var _0xa137d2=_0xb9287b>0x1?void 0x0:_0xb9287b?So(_0x5e9d7e,_0x47f8bd):_0x5e9d7e,_0x32f607=_0xd7e909[_0x18ccee(0x2d6)]-0x1,_0x48b50e;_0x32f607>=0x0;_0x32f607--)(_0x48b50e=_0xd7e909[_0x32f607])&&(_0xa137d2=(_0xb9287b?_0x48b50e(_0x5e9d7e,_0x47f8bd,_0xa137d2):_0x48b50e(_0xa137d2))||_0xa137d2);return _0xb9287b&&_0xa137d2&&go(_0x5e9d7e,_0x47f8bd,_0xa137d2),_0xa137d2;},rs=(_0xc3da7d,_0x274abb)=>(_0xe2f00b,_0x1fe15e)=>_0x274abb(_0xe2f00b,_0x1fe15e,_0xc3da7d);const po=[_0x1f5a54(0x409),_0x1f5a54(0x449),_0x1f5a54(0x3d1),_0x1f5a54(0x154),'image/bmp'],Io=0x5*0x400*0x400,Eo=_0x1f5a54(0x267),Co=_0x1f5a54(0x141),bo=_0x1f5a54(0x325),To=_0x1f5a54(0x185);let Rt=class{constructor(_0x10499c,_0x266e4e){const _0x584b78=_0x1f5a54;l(this,_0x584b78(0x31c),0x0),l(this,'_change$',new _0x295019()),l(this,_0x584b78(0x42f),this[_0x584b78(0x293)]),l(this,_0x584b78(0x3de),new Map()),(this['_httpService']=_0x10499c,this[_0x584b78(0x20c)]=_0x266e4e);}[_0x1f5a54(0x1ab)](_0x1d7ee){const _0xe90539=_0x1f5a54;this[_0xe90539(0x31c)]=_0x1d7ee,this['_change$']['next'](_0x1d7ee);}[_0x1f5a54(0x42e)](_0x2f18e1,_0x2c6e45){const _0x37b02c=_0x1f5a54;if(_0x2c6e45===_0x2a1a1d[_0x37b02c(0x284)]){const _0x33836e=new Image();return _0x33836e[_0x37b02c(0x193)]=_0x2f18e1,_0x33836e;}return this[_0x37b02c(0x3de)]['get'](_0x2f18e1);}[_0x1f5a54(0x24f)](_0x5cd07b,_0x387d6b,_0x106fec){const _0xf9ca79=_0x1f5a54;_0x387d6b===_0x2a1a1d[_0xf9ca79(0x284)]||_0x106fec==null||this[_0xf9ca79(0x3de)]['set'](_0x5cd07b,_0x106fec);}async[_0x1f5a54(0x432)](_0x100118){const _0xca4770=_0x1f5a54;try{const _0xe92b62=this[_0xca4770(0x1c5)](this[_0xca4770(0x2e2)](),''+_0x100118),_0x3daf8b=(await this['_httpService'][_0xca4770(0x393)](_0xe92b62))['body'];return _0x3daf8b[_0xca4770(0x419)]&&_0x3daf8b[_0xca4770(0x419)][_0xca4770(0x275)]===Rs['OK']?Promise[_0xca4770(0x336)](_0x3daf8b[_0xca4770(0x40e)]):Promise[_0xca4770(0x30e)](_0x3daf8b[_0xca4770(0x419)]);}catch(_0x5e383f){return Promise[_0xca4770(0x30e)](_0x5e383f);}}async['saveImage'](_0x3cff6c){const _0x39f87f=_0x1f5a54;let _0xac4a41='';if(!po[_0x39f87f(0x3ca)](_0x3cff6c['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x190b89['ERROR_IMAGE_TYPE']));if(_0x3cff6c[_0x39f87f(0x3d8)]>Io)return this[_0x39f87f(0x29b)](),Promise[_0x39f87f(0x30e)](new Error(_0x190b89[_0x39f87f(0x2fd)]));try{const _0x3e4bdd=new FormData();_0x3e4bdd['append'](_0x39f87f(0x36f),_0x3cff6c);const _0x4947f6=this[_0x39f87f(0x1ec)]()+_0x39f87f(0x30a)+_0x3cff6c[_0x39f87f(0x3d8)][_0x39f87f(0x196)](),_0x102585=await(await fetch(_0x4947f6,{'method':_0x39f87f(0x407),'body':_0x3e4bdd}))[_0x39f87f(0x1d3)]();if(typeof _0x102585[_0x39f87f(0x3b2)]!=_0x39f87f(0x3f2))return this[_0x39f87f(0x29b)](),Promise['reject'](new Error(_0x190b89[_0x39f87f(0x174)]));_0xac4a41=_0x102585[_0x39f87f(0x3b2)];}catch{return this['_decreaseWaiting'](),Promise[_0x39f87f(0x30e)](new Error(_0x190b89[_0x39f87f(0x174)]));}return new Promise((_0x12a851,_0x2d7dec)=>{const _0x54d48d=_0x39f87f,_0x1354c4=new FileReader();_0x1354c4[_0x54d48d(0x390)](_0x3cff6c),_0x1354c4['onload']=_0x579656=>{const _0x10a676=_0x54d48d;var _0x56f284;const _0x2233bf=(_0x56f284=_0x579656[_0x10a676(0x15d)])==null?void 0x0:_0x56f284[_0x10a676(0x2b3)];if(_0x2233bf==null){this[_0x10a676(0x29b)](),_0x2d7dec(new Error(_0x190b89['ERROR_IMAGE']));return;}const _0x2d2d2b=_0x4b796f['generateRandomId'](0x6);_0x12a851({'imageId':_0x2d2d2b,'imageSourceType':_0x2a1a1d[_0x10a676(0x426)],'source':_0xac4a41,'base64Cache':_0x2233bf,'status':_0x190b89[_0x10a676(0x360)]}),this[_0x10a676(0x29b)]();};});}[_0x1f5a54(0x1ec)](){const _0xb2bed1=_0x1f5a54;var _0x1cc128;return(_0x1cc128=this[_0xb2bed1(0x20c)][_0xb2bed1(0x19e)](Eo))!=null?_0x1cc128:Co;}['_getSignURL'](){const _0x1dbc83=_0x1f5a54;var _0x58d0b3;return(_0x58d0b3=this[_0x1dbc83(0x20c)][_0x1dbc83(0x19e)](bo))!=null?_0x58d0b3:To;}[_0x1f5a54(0x1c5)](_0x4b36c8,_0x5f4573){const _0x53ff50=_0x1f5a54;return _0x4b36c8[_0x53ff50(0x235)]('{fileID}',_0x5f4573);}[_0x1f5a54(0x29b)](){const _0x428d15=_0x1f5a54;this[_0x428d15(0x31c)]-=0x1,this[_0x428d15(0x293)][_0x428d15(0x39b)](this[_0x428d15(0x31c)]);}};Rt=vo([rs(0x0,_0x61a763(_0x11da14)),rs(0x1,_0x43c997)],Rt);var Ro=Object[_0x1f5a54(0x29f)],Oo=Object[_0x1f5a54(0x3cc)],Do=(_0x1b7bc4,_0x3e801a,_0x5a694d,_0x5ac6f1)=>{const _0x7f98ad=_0x1f5a54;for(var _0x4e6230=_0x5ac6f1>0x1?void 0x0:_0x5ac6f1?Oo(_0x3e801a,_0x5a694d):_0x3e801a,_0x3d27ce=_0x1b7bc4[_0x7f98ad(0x2d6)]-0x1,_0x2712a7;_0x3d27ce>=0x0;_0x3d27ce--)(_0x2712a7=_0x1b7bc4[_0x3d27ce])&&(_0x4e6230=(_0x5ac6f1?_0x2712a7(_0x3e801a,_0x5a694d,_0x4e6230):_0x2712a7(_0x4e6230))||_0x4e6230);return _0x5ac6f1&&_0x4e6230&&Ro(_0x3e801a,_0x5a694d,_0x4e6230),_0x4e6230;},Oe=(_0x1f7e6b,_0x47f4a8)=>(_0x237c9b,_0x52719d)=>_0x47f4a8(_0x237c9b,_0x52719d,_0x1f7e6b);let Ye=class extends _0x5915f1{constructor(_0x18d40e,_0x44ef2c,_0x48183f,_0x2c69d5,_0x252e6a){const _0x1579d2=_0x1f5a54;super(),this[_0x1579d2(0x3db)]=_0x18d40e,this['_univerInstanceService']=_0x44ef2c,this[_0x1579d2(0x1ba)]=_0x48183f,this['_collaborationSessionService']=_0x2c69d5,this[_0x1579d2(0x3a6)]=_0x252e6a,this['_initUnitPermissionChange'](),this[_0x1579d2(0x209)]();}[_0x1f5a54(0x209)](){const _0x3e0c25=_0x1f5a54,_0x22e067=async _0x4f06f8=>{const _0x24f93b=_0x2f7f;(await this[_0x24f93b(0x416)][_0x24f93b(0x46e)](_0x4f06f8))[_0x24f93b(0x403)]['pipe'](_0x3d131e(_0x47b391=>_0x47b391[_0x24f93b(0x2cf)]===_0x505428['SHOULD_CLOSE_CONN']),_0x31e4a6(this['dispose$']))[_0x24f93b(0x2d9)](_0xfc900e=>{const _0x154e37=_0x24f93b,_0x312869=_0xfc900e,{reason:_0x365c43}=_0x312869[_0x154e37(0x2a5)];this[_0x154e37(0x3db)][_0x154e37(0x393)](_0x58c973)[_0x154e37(0x43a)]({'type':_0x454b23['Error'],'content':this[_0x154e37(0x3a6)]['t']('collaboration.closeRoom')+'('+_0x365c43+')'}),this[_0x154e37(0x1ba)][_0x154e37(0x2bb)](new _0x278a53(_0x4f06f8)['id'],!0x1),this[_0x154e37(0x416)][_0x154e37(0x257)](_0x4f06f8);});};_0x2e3217(this[_0x3e0c25(0x357)][_0x3e0c25(0x1fb)](_0x5cab0b[_0x3e0c25(0x320)]),this[_0x3e0c25(0x357)][_0x3e0c25(0x1fb)](_0x5cab0b[_0x3e0c25(0x315)]))['pipe'](_0x28f321(_0x57bb98=>_0x57bb98[_0x3e0c25(0x2a2)]()),_0x3d131e(_0x3b18a1=>!_0xe275c4(_0x3b18a1)),_0x31e4a6(this[_0x3e0c25(0x3cd)]))[_0x3e0c25(0x2d9)](_0x248800=>{_0x22e067(_0x248800);});}[_0x1f5a54(0x3b9)](){const _0xa55b5a=_0x1f5a54,_0x4cf900=async _0x8aabf7=>{const _0x4c3e87=_0x2f7f;(await this[_0x4c3e87(0x416)]['requireSession'](_0x8aabf7))[_0x4c3e87(0x403)]['pipe'](_0x3d131e(_0x5809cf=>_0x5809cf[_0x4c3e87(0x2cf)]===_0x505428[_0x4c3e87(0x42d)]),_0x31e4a6(this['dispose$']))['subscribe'](_0x31745f=>{const _0x59e063=_0x4c3e87,_0x3e8682=_0x31745f,{objectId:_0x4d916d}=_0x3e8682[_0x59e063(0x2a5)];_0x4d916d===_0x8aabf7&&this[_0x59e063(0x3db)][_0x59e063(0x393)](_0x302c8b)['initWorkbookPermissionChange'](_0x8aabf7);});};_0x2e3217(this[_0xa55b5a(0x357)][_0xa55b5a(0x1fb)](_0x5cab0b[_0xa55b5a(0x320)]),this[_0xa55b5a(0x357)][_0xa55b5a(0x1fb)](_0x5cab0b[_0xa55b5a(0x315)]))['pipe'](_0x28f321(_0x3aea16=>_0x3aea16[_0xa55b5a(0x2a2)]()),_0x3d131e(_0x310585=>!_0xe275c4(_0x310585)),_0x31e4a6(this[_0xa55b5a(0x3cd)]))[_0xa55b5a(0x2d9)](_0x58b7ea=>{_0x4cf900(_0x58b7ea);});}};Ye=Do([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],Ye),Oe(0x0,_0x61a763(_0x2e9f94)),Oe(0x1,_0x55bd21),Oe(0x2,_0x1721b0),Oe(0x3,_0x61a763(ge)),Oe(0x4,_0x61a763(_0x4eec6f))],Ye);var $s=Object[_0x1f5a54(0x29f)],Po=Object[_0x1f5a54(0x3cc)],wo=(_0x358ecf,_0x5951cf,_0x164954)=>_0x5951cf in _0x358ecf?$s(_0x358ecf,_0x5951cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164954}):_0x358ecf[_0x5951cf]=_0x164954,No=(_0x229845,_0x482352,_0x244c75,_0x359285)=>{const _0x587408=_0x1f5a54;for(var _0x419081=_0x359285>0x1?void 0x0:_0x359285?Po(_0x482352,_0x244c75):_0x482352,_0x8e42e8=_0x229845[_0x587408(0x2d6)]-0x1,_0x238a9e;_0x8e42e8>=0x0;_0x8e42e8--)(_0x238a9e=_0x229845[_0x8e42e8])&&(_0x419081=(_0x359285?_0x238a9e(_0x482352,_0x244c75,_0x419081):_0x238a9e(_0x419081))||_0x419081);return _0x359285&&_0x419081&&$s(_0x482352,_0x244c75,_0x419081),_0x419081;},os=(_0x2d3527,_0x3e911a)=>(_0x48d6d3,_0x3c9709)=>_0x3e911a(_0x48d6d3,_0x3c9709,_0x2d3527),Mo=(_0x57cfac,_0x518779,_0x1e63b2)=>wo(_0x57cfac,_0x518779+'',_0x1e63b2);const Ao=_0x1f5a54(0x3e7);let Ot=class extends _0x2b09f1{constructor(_0x2f62a9,_0x3e22e7,_0x1ed6d7){const _0x151f4f=_0x1f5a54;super(),this[_0x151f4f(0x26f)]=_0x2f62a9,this[_0x151f4f(0x308)]=_0x3e22e7,this[_0x151f4f(0x3db)]=_0x1ed6d7;}[_0x1f5a54(0x23d)](_0x5621c6){const _0x37b977=_0x1f5a54;var _0x4a9d5b,_0xe8e709,_0x258414,_0x2ceca0,_0x1c9b6b;_0x5621c6[_0x37b977(0x1d8)](_0x4e4a39)&&this[_0x37b977(0x308)]['error'](_0x37b977(0x18d),_0x37b977(0x261));let _0xf23a14=[[_0x4e4a39,{'useClass':bt}],[ge],[Lt],[_0x11da14],[Ls,{'useClass':Zr}],[ne],[D],[_0x2067e4],[qe],[Je],[Xe],[Ut],[Ze],[Ds],[Ye],[Os,{'useClass':(_0xe8e709=(_0x4a9d5b=this['_config'])==null?void 0x0:_0x4a9d5b[_0x37b977(0x2b1)])!=null?_0xe8e709:gt}],[_0x449c33,{'useClass':_0x13770f}],[_0x49d5c1,{'useClass':Ct}],[_0x29e930,{'useClass':Tt}],[_0x32dd32,{'useClass':Rt}],[De],[Be],[ke],[We],[fe]];(_0x258414=this[_0x37b977(0x26f)])!=null&&_0x258414[_0x37b977(0x142)]&&_0xf23a14[_0x37b977(0x310)]([et,{'useClass':An}]),((_0x2ceca0=this['_config'])==null?void 0x0:_0x2ceca0['collaborationUniverTypes'])==null||this[_0x37b977(0x26f)][_0x37b977(0x1de)]['includes'](_0x5cab0b[_0x37b977(0x320)])?_0xf23a14[_0x37b977(0x310)]([Ve]):this[_0x37b977(0x26f)][_0x37b977(0x1de)][_0x37b977(0x3ca)](_0x5cab0b[_0x37b977(0x315)])&&_0xf23a14[_0x37b977(0x310)]([Ge]),_0xf23a14=_0x4e0679(_0xf23a14,(_0x1c9b6b=this[_0x37b977(0x26f)])==null?void 0x0:_0x1c9b6b['override']),_0xf23a14[_0x37b977(0x37a)](_0x2e8ae5=>_0x5621c6['add'](_0x2e8ae5)),_0x5621c6['get'](_0x11da14)[_0x37b977(0x458)]({'priority':0x14,'interceptor':_0x50e197({'maxParallel':0x6})}),this[_0x37b977(0x16d)]();}[_0x1f5a54(0x16d)](){const _0x846236=_0x1f5a54;var _0xc44211,_0x742958;(_0xc44211=this[_0x846236(0x26f)])!=null&&_0xc44211[_0x846236(0x423)]||this[_0x846236(0x3db)][_0x846236(0x393)](D)[_0x846236(0x3fa)](),(_0x742958=this[_0x846236(0x26f)])!=null&&_0x742958[_0x846236(0x42a)]&&this['_injector'][_0x846236(0x393)](Ze);}};Mo(Ot,_0x1f5a54(0x404),Ao),Ot=No([_0x476f81(_0x460423),os(0x1,_0x3e33de),os(0x2,_0x61a763(_0x2e9f94))],Ot);export{fo as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,sn as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,w as CollaborationStatus,yr as CollaborationStatusDisplay,Ds as CommentService,Be as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,rn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,Rt as ImageIoService,_n as LOCAL_CACHE_INTERVAL_KEY,mn as LOGIN_URL_KEY,D as LocalCacheService,en as SEND_CHANGESET_TIMEOUT_KEY,zi as SNAPSHOT_SERVER_URL_KEY,Qi as SNAPSHOT_URL_KEY,de as SessionStatus,mr as SheetCollabCursorShape,pt as SheetCollaborationEntity,Ct as SnapshotServerOverHTTPService,Ot as UniverCollaborationClientPlugin,Zr as WebURLService,En as deserializeToCombResponse,Cn as serializeCombRequest};