@univerjs-pro/collaboration-client 0.2.1 → 0.2.3

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 _0x51fc53=_0x5e69;(function(_0x30ab14,_0x2eb2b9){const _0x1f6736=_0x5e69,_0x1dbc37=_0x30ab14();while(!![]){try{const _0xfa9a67=parseInt(_0x1f6736(0x2df))/0x1+parseInt(_0x1f6736(0x88))/0x2*(-parseInt(_0x1f6736(0x12f))/0x3)+-parseInt(_0x1f6736(0xe8))/0x4+-parseInt(_0x1f6736(0x1f1))/0x5*(-parseInt(_0x1f6736(0x363))/0x6)+-parseInt(_0x1f6736(0x15b))/0x7*(parseInt(_0x1f6736(0x2d6))/0x8)+-parseInt(_0x1f6736(0x26d))/0x9*(parseInt(_0x1f6736(0xe1))/0xa)+-parseInt(_0x1f6736(0x389))/0xb*(-parseInt(_0x1f6736(0x1c2))/0xc);if(_0xfa9a67===_0x2eb2b9)break;else _0x1dbc37['push'](_0x1dbc37['shift']());}catch(_0x5020ab){_0x1dbc37['push'](_0x1dbc37['shift']());}}}(_0x18ca,0x42df1));var xs=Object[_0x51fc53(0x18f)],Fs=(_0xa1e703,_0x30b155,_0x469b1c)=>_0x30b155 in _0xa1e703?xs(_0xa1e703,_0x30b155,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x469b1c}):_0xa1e703[_0x30b155]=_0x469b1c,l=(_0x507786,_0x45adc2,_0x38a3fa)=>Fs(_0x507786,typeof _0x45adc2!='symbol'?_0x45adc2+'':_0x45adc2,_0x38a3fa);import{Disposable as _0x10a29c,toDisposable as _0x2f2f24,UniverInstanceType as _0x3504ec,UserManagerService as _0x1b79c3,IUniverInstanceService as _0x373907,DisposableCollection as _0x3ab8a8,IConfigService as _0x5977ca,ILogService as _0x3cb271,ISnapshotServerService as _0x3ad936,RxDisposable as _0x521c86,LocaleService as _0x201091,ILocalStorageService as _0x2cad44,Tools as _0x4cfbd7,ICommandService as _0x568418,JSONX as _0xe185f6,IPermissionService as _0x57bd86,IUndoRedoService as _0x5815e0,sequenceExecute as _0x4bf5fd,OnLifecycle as _0x47ad3a,LifecycleStages as _0x34068b,CommandType as _0x1b1270,Rectangle as _0x1fb77c,ThemeService as _0x522711,Workbook as _0x3b5c47,textEncoder as _0x56aec7,b64DecodeUnicode as _0x5ad4b1,LocalUndoRedoService as _0x31c064,IContextService as _0x187fc2,COLORS as _0x131343,ColorKit as _0x3dc381,Plugin as _0x5ab657,IAuthzIoService as _0x5c087b,mergeOverrideWithDependencies as _0xd86ae6,DependentOn as _0x2e4016}from'@univerjs/core';import{SelectionManagerService as _0x5c112f,SetSelectionsOperation as _0x2708b7,InsertSheetMutation as _0x75b52d,WorkbookEditablePermission as _0x4b6c4e,RefRangeService as _0x4cc8b2,EffectRefRangId as _0x4d5ced,handleIRemoveRow as _0x1d7ce0,handleIRemoveCol as _0x122c4c,handleMoveRange as _0x511a99,handleInsertRow as _0x254106,handleInsertRangeMoveRight as _0x4c1408,handleInsertRangeMoveDown as _0x268953,handleInsertCol as _0x3b1ac8,handleDeleteRangeMoveUp as _0x5c5378,handleDeleteRangeMoveLeft as _0x3ca06c,runRefRangeMutations as _0x3711ba,SetWorksheetActivateCommand as _0x1c5f90}from'@univerjs/sheets';import{MessageType as _0x1587ba}from'@univerjs/design';import{IBeforeCloseService as _0x5e3e8f,IMessageService as _0xf8e37a,INotificationService as _0x3c139b,useObservable as _0x282297,BuiltInUIPart as _0x4e424f,IUIPartsService as _0x117aca}from'@univerjs/ui';import{CollaborationEvent as _0x1b5c65,parseChangesetToProtocol as _0x57e4b9,RevisionService as _0x4d36b1,isTransformMutationFailure as _0xcc662a,isTransformMutationsWithChangesetSuccess as _0x5a8972,ITransformService as _0x425e9b,mapDocumentTypeToUniverType as _0x23bb45,isTransformChangesetsSuccess as _0x4b3216,CompressMutationService as _0x2c81ea,parseProtocolChangeset as _0x8dccd4,SnapshotService as _0x3cc45f,isTransformMutationsWithChangesetFailure as _0x4c2f5b,UniverCollaborationPlugin as _0x114daf}from'@univerjs-pro/collaboration';import{Inject as _0x4a7404,createIdentifier as _0xf73999,Injector as _0x44b6b8,Optional as _0x19d484}from'@wendellhu/redi';import{merge as _0x124107,Subject as _0x5da41e,BehaviorSubject as _0x5d7d96,distinctUntilChanged as _0xe50b30,fromEvent as _0x1860dc,of as _0xdadc8c,takeUntil as _0x1603a2,debounceTime as _0x4c0f1b,filter as _0x5f5348,switchMap as _0x8b3a32,combineLatest as _0x73b353,shareReplay as _0xcf2b53,mapTo as _0x154121,concatMap as _0x22cd34}from'rxjs';import{map as _0x1db2aa,takeUntil as _0x430c3c,take as _0x51a597,filter as _0x1b26e7,delay as _0x54f844,shareReplay as _0x4b3c1f,switchMap as _0xb49a6c}from'rxjs/operators';import{IMEInputManagerService as _0x57e020,TextSelectionManagerService as _0x58dacd,serializeTextRange as _0x2646e0,DocStateChangeManagerService as _0x47f8d9,SetTextSelectionsOperation as _0xf9fdf8,RichTextEditingMutation as _0x47707c,getDocObject as _0x3248cd,DocSkeletonManagerService as _0x46f5a8}from'@univerjs/docs';import{HTTPService as _0x142257,WebSocketService as _0x1e9f90,IHTTPImplementation as _0x38690b,XHRHTTPImplementation as _0x443f73,ThresholdInterceptorFactory as _0x5bab19}from'@univerjs/network';import{ImageSourceType as _0x3a239e,ImageUploadStatusType as _0x59dd1c,IImageIoService as _0x18bd4e}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x285859,serializeRangeWithSheet as _0x273a62}from'@univerjs/engine-formula';import _0x507539 from'lodash/debounce';import{Shape as _0xe13222,Rect as _0xbeb8e4,Vector2 as _0x44f5c0,IRenderManagerService as _0x39c4de,NodePositionConvertToCursor as _0x1dca35,getColor as _0x43e11f,TEXT_RANGE_LAYER_INDEX as _0x337814,RegularPolygon as _0x3c2aad}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x358cc7,VIEWPORT_KEY as _0x1940ad,getCoordByCell as _0x35114e,getSheetObject as _0x23f9f7}from'@univerjs/sheets-ui';import{useDependency as _0x1d48ce,connectInjector as _0x50255b}from'@wendellhu/redi/react-bindings';import _0x1c416c,{forwardRef as _0x4ddef2,useRef as _0x4ff318,createElement as _0x153699}from'react';import _0x1a2218 from'clsx';import{IRemoteInstanceService as _0x34d98a}from'@univerjs/rpc';const Gi=_0x51fc53(0x136),Yi=_0x51fc53(0x22a),Ki=_0x51fc53(0x110),Xi=_0x51fc53(0x339),Ji=0x7d0,zi=_0x51fc53(0xdf),Zi=_0x51fc53(0x3a0),qi=_0x51fc53(0x162),Qi=0x7530,Is='HEARTBEAT_TIMEOUT',Es=0x2710,en=_0x51fc53(0x93),tn=0x4e20,sn='RETRY_CONNECTING_MAX_COUNT',nn=0x3,rn=_0x51fc53(0xff),on=0x3e8,an='COLLAB_SUBMIT_CHANGESET_URL',cn=_0x51fc53(0x26a),hn=_0x51fc53(0x384),ln=_0x51fc53(0x258);var Cs=(_0x2bbe97=>(_0x2bbe97[_0x2bbe97['UNDEFINED']=0x0]=_0x51fc53(0x396),_0x2bbe97[_0x2bbe97['OK']=0x1]='OK',_0x2bbe97[_0x2bbe97[_0x51fc53(0x1df)]=0x2]=_0x51fc53(0x1df),_0x2bbe97[_0x2bbe97[_0x51fc53(0x14c)]=0x3]=_0x51fc53(0x14c),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2f9)]=0x4]='NOT_FOUND',_0x2bbe97[_0x2bbe97[_0x51fc53(0x86)]=0x5]=_0x51fc53(0x86),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2fc)]=0x6]=_0x51fc53(0x2fc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x366)]=0x7]=_0x51fc53(0x366),_0x2bbe97[_0x2bbe97['TOO_MANY_REQUESTS']=0x8]=_0x51fc53(0x2a2),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1fa)]=0x9]=_0x51fc53(0x1fa),_0x2bbe97[_0x2bbe97['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x51fc53(0x311),_0x2bbe97[_0x2bbe97['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x51fc53(0x208),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1cb)]=0x1772]=_0x51fc53(0x1cb),_0x2bbe97[_0x2bbe97[_0x51fc53(0x101)]=0x1b59]=_0x51fc53(0x101),_0x2bbe97[_0x2bbe97[_0x51fc53(0x163)]=0x1b5a]=_0x51fc53(0x163),_0x2bbe97[_0x2bbe97[_0x51fc53(0x30b)]=0x1b5b]=_0x51fc53(0x30b),_0x2bbe97[_0x2bbe97[_0x51fc53(0x1dc)]=0x1b5c]=_0x51fc53(0x1dc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x2e2)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2bbe97[_0x2bbe97[_0x51fc53(0x2c8)]=0x2329]=_0x51fc53(0x2c8),_0x2bbe97[_0x2bbe97[_0x51fc53(0xbc)]=0x232a]=_0x51fc53(0xbc),_0x2bbe97[_0x2bbe97[_0x51fc53(0x31b)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0xfb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x2bbe97[_0x2bbe97[_0x51fc53(0x156)]=0x232d]=_0x51fc53(0x156),_0x2bbe97[_0x2bbe97[_0x51fc53(0x305)]=0x2711]=_0x51fc53(0x305),_0x2bbe97[_0x2bbe97[_0x51fc53(0x215)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2bbe97[_0x2bbe97['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x2bbe97))(Cs||{}),H=(_0x5551e4=>(_0x5551e4[_0x5551e4[_0x51fc53(0xb7)]=0x0]=_0x51fc53(0xb7),_0x5551e4[_0x5551e4[_0x51fc53(0x32c)]=0x1]=_0x51fc53(0x32c),_0x5551e4[_0x5551e4['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0x5551e4[_0x5551e4[_0x51fc53(0x28c)]=0x3]=_0x51fc53(0x28c),_0x5551e4[_0x5551e4[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x5551e4))(H||{}),I=(_0x31342f=>(_0x31342f[_0x31342f[_0x51fc53(0x13d)]=0x0]=_0x51fc53(0x13d),_0x31342f[_0x31342f[_0x51fc53(0x2bd)]=0x1]=_0x51fc53(0x2bd),_0x31342f[_0x31342f[_0x51fc53(0x8f)]=0x2]=_0x51fc53(0x8f),_0x31342f[_0x31342f[_0x51fc53(0xd8)]=0x3]=_0x51fc53(0xd8),_0x31342f[_0x31342f[_0x51fc53(0x91)]=0x4]=_0x51fc53(0x91),_0x31342f[_0x31342f['HEARTBEAT']=0x5]=_0x51fc53(0x199),_0x31342f[_0x31342f[_0x51fc53(0x326)]=0x6]='RECV',_0x31342f[_0x31342f[_0x51fc53(0x1cc)]=-0x1]=_0x51fc53(0x1cc),_0x31342f))(I||{}),Nt=(_0x119e9e=>(_0x119e9e[_0x119e9e[_0x51fc53(0x29e)]=0x0]='UNKNOWN_CODE',_0x119e9e[_0x119e9e['OK']=0x1]='OK',_0x119e9e[_0x119e9e[_0x51fc53(0xe9)]=0x2]='FAIL',_0x119e9e[_0x119e9e['UNRECOGNIZED']=-0x1]=_0x51fc53(0x1cc),_0x119e9e))(Nt||{}),_n=Object[_0x51fc53(0x18f)],un=Object[_0x51fc53(0x340)],dn=(_0x12cfea,_0x4177df,_0x19c5b6,_0x2cbe38)=>{const _0x4c38bf=_0x51fc53;for(var _0x28a436=_0x2cbe38>0x1?void 0x0:_0x2cbe38?un(_0x4177df,_0x19c5b6):_0x4177df,_0x21ebc0=_0x12cfea[_0x4c38bf(0x2c6)]-0x1,_0x2ec73c;_0x21ebc0>=0x0;_0x21ebc0--)(_0x2ec73c=_0x12cfea[_0x21ebc0])&&(_0x28a436=(_0x2cbe38?_0x2ec73c(_0x4177df,_0x19c5b6,_0x28a436):_0x2ec73c(_0x28a436))||_0x28a436);return _0x2cbe38&&_0x28a436&&_n(_0x4177df,_0x19c5b6,_0x28a436),_0x28a436;},Wt=(_0x31bccb,_0x251bae)=>(_0x7c12c0,_0x564b5a)=>_0x251bae(_0x7c12c0,_0x564b5a,_0x31bccb);let ee=class extends _0x10a29c{constructor(_0x280fbf,_0x4c0b4a){const _0xa9a552=_0x51fc53;super(),l(this,_0xa9a552(0x18b),new Map()),(this[_0xa9a552(0xa0)]=_0x280fbf,this[_0xa9a552(0x2a7)]=_0x4c0b4a,this[_0xa9a552(0x294)](_0x2f2f24(_0x124107(this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec['UNIVER_SHEET'])['pipe'](_0x1db2aa(_0x139b88=>_0x139b88[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)][_0xa9a552(0x280)](_0x3504ec['UNIVER_DOC'])['pipe'](_0x1db2aa(_0x53dbe2=>_0x53dbe2[_0xa9a552(0x244)]())),this[_0xa9a552(0xa0)]['getTypeOfUnitDisposed$'](_0x3504ec[_0xa9a552(0x28c)])[_0xa9a552(0x2c3)](_0x1db2aa(_0x116d1f=>_0x116d1f[_0xa9a552(0x244)]())))['subscribe'](_0x1c61ee=>this['_removeRoom'](_0x1c61ee)))));}['setCurrentUser'](_0x466bdc){const _0x20f8de=_0x51fc53;this['_userManagerService'][_0x20f8de(0x20b)](_0x466bdc);}[_0x51fc53(0x328)](){const _0x32aaa7=_0x51fc53;return this[_0x32aaa7(0x2a7)]['getCurrentUser']();}[_0x51fc53(0x2e9)](_0x36920c,_0xc51979){const _0x1c9fa4=_0x51fc53;let _0x28bbcd=this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x151)](_0x36920c);_0x28bbcd||(_0x28bbcd=new fn(),this[_0x1c9fa4(0x18b)][_0x1c9fa4(0x38f)](_0x36920c,_0x28bbcd)),_0x28bbcd[_0x1c9fa4(0x2e9)](_0xc51979);}[_0x51fc53(0x3be)](_0x5b3f5a,_0x495601){const _0x5bc1e7=_0x51fc53,_0x252296=this[_0x5bc1e7(0x18b)]['get'](_0x5b3f5a);_0x252296&&_0x252296['removeMember'](_0x495601);}[_0x51fc53(0x9c)](_0x4dbc98){return this['_roomMembers']['get'](_0x4dbc98);}[_0x51fc53(0xb6)](_0x3740fd,_0x21d6cb){const _0x55f914=_0x51fc53,_0x330cd8=this['_roomMembers'][_0x55f914(0x151)](_0x3740fd);if(_0x330cd8)return _0x330cd8[_0x55f914(0xb6)](_0x21d6cb);}[_0x51fc53(0x1ce)](_0x63522c){const _0x158a03=_0x51fc53,_0x13770e=this[_0x158a03(0x18b)][_0x158a03(0x151)](_0x63522c);_0x13770e&&(_0x13770e[_0x158a03(0x232)](),this[_0x158a03(0x18b)][_0x158a03(0x209)](_0x63522c));}[_0x51fc53(0x232)](){const _0x4ad3c1=_0x51fc53;this['_roomMembers'][_0x4ad3c1(0x124)](_0x42205e=>_0x42205e[_0x4ad3c1(0x232)]()),this[_0x4ad3c1(0x18b)][_0x4ad3c1(0x362)]();}};ee=dn([Wt(0x0,_0x373907),Wt(0x1,_0x4a7404(_0x1b79c3))],ee);class fn extends _0x10a29c{constructor(){const _0x51f169=_0x51fc53;super(...arguments),l(this,_0x51f169(0x236),new Map());}[_0x51fc53(0x232)](){const _0x157fbb=_0x51fc53;this[_0x157fbb(0x236)][_0x157fbb(0x362)]();}[_0x51fc53(0x2e9)](_0x5c0d1c){const _0x2d9539=_0x51fc53;this[_0x2d9539(0x236)]['set'](_0x5c0d1c[_0x2d9539(0x2ae)],_0x5c0d1c);}['removeMember'](_0x58467e){const _0x20bd8d=_0x51fc53;this[_0x20bd8d(0x236)][_0x20bd8d(0x209)](_0x58467e);}['getMember'](_0x4d6c55){const _0x168702=_0x51fc53;return this[_0x168702(0x236)]['get'](_0x4d6c55);}}function gn(_0x625b64){const _0x36f53e=_0x51fc53;var _0x2ba538,_0x1ef87e,_0x56e9dc,_0x715033;const _0x21e83a=_0x625b64[_0x36f53e(0x94)],_0x33dad9=JSON[_0x36f53e(0x2dd)](_0x21e83a);switch(_0x33dad9['cmd']){case I[_0x36f53e(0x199)]:case I['HELLO']:{const _0x31b8b5=_0x33dad9[_0x36f53e(0x1fc)];return{..._0x33dad9,'data':_0x31b8b5,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x8f)]:{const _0x28ab81=_0x33dad9['joinRsp'];return{..._0x33dad9,'data':_0x28ab81,'cmd':_0x33dad9[_0x36f53e(0x39c)]};}case I[_0x36f53e(0x326)]:{const _0x46e464=_0x33dad9[_0x36f53e(0xc3)];switch(_0x46e464[_0x36f53e(0x1ec)]){case _0x1b5c65[_0x36f53e(0x274)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x2ba538=_0x46e464[_0x36f53e(0x2c2)])==null?void 0x0:_0x2ba538['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['CHANGESET_ACK']:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x1ef87e=_0x46e464['csAckEvent'])==null?void 0x0:_0x1ef87e['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x250)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x56e9dc=_0x46e464[_0x36f53e(0x276)])==null?void 0x0:_0x56e9dc['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x34a)]:return{..._0x33dad9,'data':{..._0x46e464,'data':(_0x715033=_0x46e464[_0x36f53e(0x1d2)])==null?void 0x0:_0x715033['cs']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x235)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x128)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2cf)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x81)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x312)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464['leaveEvent']},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x213)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x18e)]:case _0x1b5c65[_0x36f53e(0x2ff)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x98)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65[_0x36f53e(0x2e6)]:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x201)]},'cmd':_0x33dad9['cmd']};case _0x1b5c65[_0x36f53e(0x278)]:return{..._0x33dad9,'data':_0x46e464,'cmd':_0x33dad9[_0x36f53e(0x39c)]};case _0x1b5c65['COMMENT_UPDATE']:return{..._0x33dad9,'data':{..._0x46e464,'data':_0x46e464[_0x36f53e(0x1d6)]},'cmd':_0x33dad9[_0x36f53e(0x39c)]};default:return _0x33dad9;}}default:return _0x33dad9;}}function mn(_0x3d01d3){const _0xad44c4=_0x51fc53;switch(_0x3d01d3[_0xad44c4(0x39c)]){case I[_0xad44c4(0x199)]:case I[_0xad44c4(0x2bd)]:return JSON['stringify']({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey']});case I[_0xad44c4(0x91)]:{let _0x1ba6ef;switch(_0x3d01d3[_0xad44c4(0x94)]['eventID']){case _0x1b5c65[_0xad44c4(0x235)]:{_0x1ba6ef={'eventID':_0x1b5c65['UPDATE_CURSOR'],'updateCursorEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x312)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x312)],'leaveEvent':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65['USERS_ENTER']:{_0x1ba6ef={'eventID':_0x1b5c65['USERS_ENTER'],'joinEvent':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x213)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x213)],'liveShareNewHost':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0x2ff)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2ff)],'liveShareOperation':_0x3d01d3[_0xad44c4(0x94)][_0xad44c4(0x94)]};break;}case _0x1b5c65['LIVESHARE_TERMINATE']:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x2e6)],'liveShareTerminate':_0x3d01d3['data'][_0xad44c4(0x94)]};break;}case _0x1b5c65[_0xad44c4(0xdc)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0xdc)],'liveShareRequestHost':_0x3d01d3[_0xad44c4(0x94)]['data']};break;}case _0x1b5c65[_0xad44c4(0x18e)]:{_0x1ba6ef={'eventID':_0x1b5c65[_0xad44c4(0x18e)]};break;}default:_0x1ba6ef={'eventID':_0x3d01d3[_0xad44c4(0x94)]['eventID']};}return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'collaMsg':_0x1ba6ef});}case I[_0xad44c4(0x8f)]:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3[_0xad44c4(0x39c)],'routeKey':_0x3d01d3['routeKey'],'joinReq':_0x3d01d3[_0xad44c4(0x94)]});case I['LEAVE']:return JSON[_0xad44c4(0x2ea)]({'cmd':_0x3d01d3['cmd'],'routeKey':_0x3d01d3[_0xad44c4(0x16e)],'leaveReq':_0x3d01d3[_0xad44c4(0x94)]});default:throw new Error(_0xad44c4(0x1b8));}}var Sn=Object[_0x51fc53(0x18f)],vn=Object[_0x51fc53(0x340)],pn=(_0x307a4b,_0x2a2ec9,_0x144e69,_0x1290e5)=>{const _0x363349=_0x51fc53;for(var _0x52b4a7=_0x1290e5>0x1?void 0x0:_0x1290e5?vn(_0x2a2ec9,_0x144e69):_0x2a2ec9,_0x32295a=_0x307a4b[_0x363349(0x2c6)]-0x1,_0x385801;_0x32295a>=0x0;_0x32295a--)(_0x385801=_0x307a4b[_0x32295a])&&(_0x52b4a7=(_0x1290e5?_0x385801(_0x2a2ec9,_0x144e69,_0x52b4a7):_0x385801(_0x52b4a7))||_0x52b4a7);return _0x1290e5&&_0x52b4a7&&Sn(_0x2a2ec9,_0x144e69,_0x52b4a7),_0x52b4a7;},me=(_0xb5b8e4,_0x27fdc1)=>(_0x33dea8,_0x2aa7ae)=>_0x27fdc1(_0x33dea8,_0x2aa7ae,_0xb5b8e4);const bs=_0xf73999(_0x51fc53(0x1ab));function In(_0x2c27d4,_0x103280,_0x517779){const _0x57aa84=_0x51fc53;return _0x2c27d4+'/'+_0x103280+_0x57aa84(0xea)+_0x517779+_0x57aa84(0x34f);}let _t=class{constructor(_0x2dc970,_0x3c3530,_0x3d8209,_0x561a0c,_0x2d0e74){const _0x18e5d4=_0x51fc53;this[_0x18e5d4(0x36a)]=_0x2dc970,this[_0x18e5d4(0x3a1)]=_0x3c3530,this[_0x18e5d4(0x2c4)]=_0x3d8209,this[_0x18e5d4(0x37c)]=_0x561a0c,this[_0x18e5d4(0x240)]=_0x2d0e74;}[_0x51fc53(0xec)](_0x4b7237){const _0x332eb8=_0x51fc53,_0x359e4c=this[_0x332eb8(0x3a1)][_0x332eb8(0xec)](_0x4b7237);if(!_0x359e4c)throw new Error(_0x332eb8(0x2e7));const _0x213e23=new _0x3ab8a8(),_0x173e06=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xa2)][_0x332eb8(0x202)](_0x447a51=>_0x173e06[_0x332eb8(0x275)](_0x447a51)))),_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(()=>_0x173e06[_0x332eb8(0x349)]()));const _0x2bf0f5=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xed)][_0x332eb8(0x202)](_0x455877=>_0x2bf0f5[_0x332eb8(0x275)](_0x455877)))),_0x213e23['add'](_0x2f2f24(()=>_0x2bf0f5[_0x332eb8(0x349)]()));const _0xb502bd=new _0x5da41e();_0x213e23[_0x332eb8(0xe7)](_0x2f2f24(_0x359e4c[_0x332eb8(0xbe)][_0x332eb8(0x202)](_0x599af1=>{const _0x4054c7=_0x332eb8,_0x1fa8eb=gn(_0x599af1);_0xb502bd[_0x4054c7(0x275)](_0x1fa8eb);}))),_0x213e23['add'](_0x2f2f24(()=>_0xb502bd[_0x332eb8(0x349)]()));const _0x4caf5d=()=>{const _0x3aa63e=_0x332eb8;_0x2bf0f5[_0x3aa63e(0x275)](new Event(_0x3aa63e(0x217))),_0x173e06['next'](new CloseEvent('connection\x20error')),_0x3b6fb6[_0x3aa63e(0x3b2)]();},_0x3b6fb6={'memberID':'','close$':_0x173e06['asObservable'](),'error$':_0x2bf0f5['asObservable'](),'open$':_0x359e4c[_0x332eb8(0x34c)],'message$':_0xb502bd[_0x332eb8(0xc8)](),'send':_0x1ad2ff=>{const _0x21a41a=_0x332eb8;if(_0x1ad2ff[_0x21a41a(0x39c)]===I[_0x21a41a(0x91)]){if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x255)]){this['_submitChangeset'](_0x3b6fb6,_0x1ad2ff['data'])['catch'](_0x386c5e=>{const _0x16f7dc=_0x21a41a;this[_0x16f7dc(0x37c)][_0x16f7dc(0x24d)](_0x386c5e),_0x4caf5d();});return;}if(_0x1ad2ff[_0x21a41a(0x94)][_0x21a41a(0x1ec)]===_0x1b5c65[_0x21a41a(0x282)]){const _0xabc340=_0x1ad2ff[_0x21a41a(0x94)];this[_0x21a41a(0xe6)](_0xabc340)[_0x21a41a(0xf4)](_0x10d7ed=>{const _0x8b1cf=_0x21a41a;_0xb502bd['next']({'cmd':I['RECV'],'code':Nt['OK'],'routeKey':_0xabc340[_0x8b1cf(0x94)][_0x8b1cf(0x1b1)],'routeType':'','data':{'eventID':_0x1b5c65['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x10d7ed}}});})[_0x21a41a(0x12e)](_0x15c6df=>{this['_logService']['error'](_0x15c6df),_0x4caf5d();});return;}}_0x359e4c['send'](mn(_0x1ad2ff));},'close':()=>{const _0x4baab3=_0x332eb8;_0x359e4c[_0x4baab3(0x3b2)](),_0x213e23['dispose']();}};return _0x3b6fb6;}async[_0x51fc53(0x21d)](_0x9c9a33,_0x2e326b){const _0x1d325b=_0x51fc53;var _0x5b3d90;const {unitType:_0x7667f1,unitID:_0x55d40a,changeset:_0x5de31a}=_0x2e326b[_0x1d325b(0x94)],_0x1218e8={'unitID':_0x55d40a,'memberID':_0x9c9a33[_0x1d325b(0x2ae)],'type':_0x7667f1,'changeset':_0x57e4b9(_0x5de31a)},_0xc79cd2=In((_0x5b3d90=this[_0x1d325b(0x2c4)]['getConfig'](an))!=null?_0x5b3d90:cn,_0x7667f1,_0x55d40a);try{await this[_0x1d325b(0x36a)][_0x1d325b(0x13a)](_0xc79cd2,{'body':_0x1218e8});}catch(_0x13b27d){throw this[_0x1d325b(0x37c)][_0x1d325b(0x24d)](_0x1d325b(0x13c),'submit\x20changeset\x20error!'),_0x13b27d;}}async[_0x51fc53(0xe6)](_0x957d4){const _0x2d7a0f=_0x51fc53,{unitID:_0x5a5310,from:_0x3f240c,to:_0x2f5434,unitType:_0x465e43}=_0x957d4[_0x2d7a0f(0x94)];return(await this[_0x2d7a0f(0x240)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5a5310,'type':_0x465e43,'from':_0x3f240c,'to':_0x2f5434}))[_0x2d7a0f(0xa3)];}};_t=pn([me(0x0,_0x4a7404(_0x142257)),me(0x1,_0x4a7404(_0x1e9f90)),me(0x2,_0x5977ca),me(0x3,_0x3cb271),me(0x4,_0x3ad936)],_t);class Rs{constructor(){const _0x6d3833=_0x51fc53;l(this,_0x6d3833(0x17b),new _0x5da41e()),l(this,_0x6d3833(0x368),this[_0x6d3833(0x17b)][_0x6d3833(0xc8)]());}[_0x51fc53(0x2b7)](_0x3899c8){const _0x19c6fa=_0x51fc53;this[_0x19c6fa(0x17b)][_0x19c6fa(0x275)](_0x3899c8);}}var En=Object[_0x51fc53(0x18f)],Cn=Object[_0x51fc53(0x340)],Ts=(_0x142f6a,_0x5a5578,_0x2706e3,_0x5b1465)=>{const _0x32dbe9=_0x51fc53;for(var _0x4cd2bc=_0x5b1465>0x1?void 0x0:_0x5b1465?Cn(_0x5a5578,_0x2706e3):_0x5a5578,_0x95d271=_0x142f6a[_0x32dbe9(0x2c6)]-0x1,_0x2e83b6;_0x95d271>=0x0;_0x95d271--)(_0x2e83b6=_0x142f6a[_0x95d271])&&(_0x4cd2bc=(_0x5b1465?_0x2e83b6(_0x5a5578,_0x2706e3,_0x4cd2bc):_0x2e83b6(_0x4cd2bc))||_0x4cd2bc);return _0x5b1465&&_0x4cd2bc&&En(_0x5a5578,_0x2706e3,_0x4cd2bc),_0x4cd2bc;},M=(_0x2bafae,_0x495728)=>(_0x1e5ebf,_0x36922b)=>_0x495728(_0x1e5ebf,_0x36922b,_0x2bafae),_e=(_0x22e537=>(_0x22e537[_0x22e537[_0x51fc53(0x19e)]=0x0]=_0x51fc53(0x19e),_0x22e537[_0x22e537[_0x51fc53(0x1f0)]=0x1]=_0x51fc53(0x1f0),_0x22e537[_0x22e537['OFFLINE']=0x2]=_0x51fc53(0x319),_0x22e537[_0x22e537[_0x51fc53(0x31f)]=0x3]=_0x51fc53(0x31f),_0x22e537))(_e||{});let ut=class extends _0x521c86{constructor(_0x413e95,_0x3d2b71,_0x391204,_0x48e34e,_0x211f28,_0x48575c,_0x481ca0,_0x40760b,_0x7126c9){const _0x4f3a4b=_0x51fc53;super(),l(this,_0x4f3a4b(0x80),new _0x5d7d96(0x0)),l(this,_0x4f3a4b(0x334),this[_0x4f3a4b(0x80)][_0x4f3a4b(0xc8)]()),l(this,'_event$',new _0x5da41e()),l(this,_0x4f3a4b(0x374),this[_0x4f3a4b(0x108)][_0x4f3a4b(0xc8)]()),l(this,_0x4f3a4b(0x2d4)),l(this,_0x4f3a4b(0x3b5)),l(this,_0x4f3a4b(0xa8)),(this[_0x4f3a4b(0x247)]=_0x413e95,this[_0x4f3a4b(0x37c)]=_0x391204,this[_0x4f3a4b(0x32b)]=_0x48e34e,this['_messageService']=_0x211f28,this[_0x4f3a4b(0x2c4)]=_0x48575c,this[_0x4f3a4b(0x344)]=_0x481ca0,this['_memberService']=_0x40760b,this['_commentService']=_0x7126c9,_0x3d2b71['pipe'](_0x430c3c(this[_0x4f3a4b(0x200)]))[_0x4f3a4b(0x202)](_0x40d585=>{const _0x225d5e=_0x4f3a4b;var _0x2b562e;typeof _0x40d585>'u'||(this[_0x225d5e(0x2d4)]=_0x40d585,_0x40d585?(this['_joinRoom'](_0x40d585),this[_0x225d5e(0x3b5)]=this['_socket']['message$'][_0x225d5e(0x202)](_0x51ec99=>{const _0x53500f=_0x225d5e;_0x51ec99[_0x53500f(0x16e)]===this[_0x53500f(0x247)]&&this[_0x53500f(0x132)](_0x51ec99);})):(this['_sessionStatus$'][_0x225d5e(0x275)](0x2),(_0x2b562e=this[_0x225d5e(0x3b5)])==null||_0x2b562e[_0x225d5e(0x11a)](),this[_0x225d5e(0x3b5)]=null));}),this[_0x4f3a4b(0x294)](this[_0x4f3a4b(0x32b)]['registerOnClose'](()=>{const _0x1348b0=_0x4f3a4b;var _0x5ffc29;(_0x5ffc29=this['_socket'])==null||_0x5ffc29[_0x1348b0(0x39e)]({'cmd':I[_0x1348b0(0xd8)],'data':{'roomID':this['_unitID']}});})));}get[_0x51fc53(0x193)](){const _0x48ae59=_0x51fc53;return this[_0x48ae59(0x80)]['getValue']();}[_0x51fc53(0x2be)](){const _0x18d724=_0x51fc53;var _0x1e6566,_0x2649b6;return(_0x2649b6=(_0x1e6566=this[_0x18d724(0x2d4)])==null?void 0x0:_0x1e6566[_0x18d724(0x2ae)])!=null?_0x2649b6:null;}[_0x51fc53(0x232)](){const _0x23f27c=_0x51fc53;super[_0x23f27c(0x232)](),this[_0x23f27c(0x200)][_0x23f27c(0x275)](),this[_0x23f27c(0x200)][_0x23f27c(0x349)]();}[_0x51fc53(0x132)](_0x2d8a37){const _0x10b636=_0x51fc53;_0x2d8a37['cmd']===I[_0x10b636(0x8f)]?this['_onJoinRoomEvent'](_0x2d8a37):_0x2d8a37[_0x10b636(0x39c)]===I[_0x10b636(0x326)]&&this[_0x10b636(0x147)](_0x2d8a37);}[_0x51fc53(0x225)](_0x5e6d12){const _0x1d6044=_0x51fc53;this[_0x1d6044(0x80)][_0x1d6044(0x275)](0x1),_0x5e6d12[_0x1d6044(0x39e)]({'cmd':I[_0x1d6044(0x8f)],'routeKey':this[_0x1d6044(0x247)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1d6044(0x247)]}]}});}[_0x51fc53(0x167)](_0x3c97fa){const _0x35c135=_0x51fc53;var _0x5374c9;if(_0x3c97fa[_0x35c135(0x141)]===Nt[_0x35c135(0xe9)]){this[_0x35c135(0x383)][_0x35c135(0x25c)]({'type':_0x1587ba[_0x35c135(0x10e)],'content':this[_0x35c135(0x344)]['t'](_0x35c135(0x246))}),this[_0x35c135(0x80)][_0x35c135(0x275)](0x2);return;}this[_0x35c135(0x80)][_0x35c135(0x275)](0x3);const _0x10b106=(_0x5374c9=_0x3c97fa[_0x35c135(0x94)][_0x35c135(0x1ba)][this[_0x35c135(0x247)]])==null?void 0x0:_0x5374c9[_0x35c135(0x327)];_0x10b106&&_0x10b106[_0x35c135(0x124)](_0x4ee42a=>this[_0x35c135(0x12b)][_0x35c135(0x2e9)](this[_0x35c135(0x247)],_0x4ee42a));}[_0x51fc53(0x147)](_0x129f53){const _0xaba17d=_0x51fc53;try{const _0x332959=_0x129f53[_0xaba17d(0x94)];switch(_0x332959['eventID']){case _0x1b5c65[_0xaba17d(0x2cf)]:this[_0xaba17d(0x335)](_0x332959),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x312)]:this[_0xaba17d(0x2ba)](_0x332959),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0xf1)]:this[_0xaba17d(0x39b)](),this[_0xaba17d(0x108)]['next'](_0x332959);break;case _0x1b5c65[_0xaba17d(0x278)]:this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0xaba17d(0x286)+JSON[_0xaba17d(0x2ea)](_0x332959)),this['_event$'][_0xaba17d(0x275)](_0x332959);break;case _0x1b5c65[_0xaba17d(0x33c)]:this[_0xaba17d(0x27e)]['onCommentUpdate'](_0x332959[_0xaba17d(0x94)]),this[_0xaba17d(0x108)][_0xaba17d(0x275)](_0x332959);break;default:this[_0xaba17d(0x108)]['next'](_0x332959);}}catch(_0x14ae88){this[_0xaba17d(0x37c)][_0xaba17d(0x24d)](_0x14ae88,_0x129f53);}}[_0x51fc53(0x335)](_0x3bf62d){const _0x117a0c=_0x51fc53;this['_memberService']['updateMember'](this[_0x117a0c(0x247)],_0x3bf62d['data']);}['_onUserLeave'](_0x3c541f){const _0x1bbce7=_0x51fc53;this['_memberService'][_0x1bbce7(0x3be)](this[_0x1bbce7(0x247)],_0x3c541f[_0x1bbce7(0x94)]['memberID']);}async[_0x51fc53(0x39e)](_0x34c323,_0x505b51){const _0x26e5ea=_0x51fc53;if(this['sessionStatus']!==0x3||!this[_0x26e5ea(0x2d4)])throw new Error(_0x26e5ea(0xd0));try{_0x34c323[_0x26e5ea(0x1ec)]===_0x1b5c65[_0x26e5ea(0x250)]&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0x26e5ea(0x39e)]({'cmd':I['INGEST'],'routeKey':_0x505b51,'routeType':'','data':_0x34c323});}catch(_0x154e0e){this[_0x26e5ea(0x37c)][_0x26e5ea(0x24d)](_0x154e0e);}}[_0x51fc53(0x376)](){const _0x44066f=_0x51fc53;var _0x363057;this[_0x44066f(0xa8)]=window[_0x44066f(0x3a6)](()=>{const _0x4dcbfb=_0x44066f;this[_0x4dcbfb(0xa8)]=null,this[_0x4dcbfb(0x383)]['show']({'type':_0x1587ba[_0x4dcbfb(0x228)],'content':this[_0x4dcbfb(0x344)]['t'](_0x4dcbfb(0x2f7))});},(_0x363057=this['_configService'][_0x44066f(0xf0)](Is))!=null?_0x363057:Es);}['_clearCollaborationTimeoutTimer'](){const _0x3b3e29=_0x51fc53;this[_0x3b3e29(0xa8)]&&(clearTimeout(this[_0x3b3e29(0xa8)]),this[_0x3b3e29(0xa8)]=null);}};ut=Ts([M(0x2,_0x3cb271),M(0x3,_0x5e3e8f),M(0x4,_0xf8e37a),M(0x5,_0x5977ca),M(0x6,_0x4a7404(_0x201091)),M(0x7,_0x4a7404(ee)),M(0x8,_0x4a7404(Rs))],ut);let Re=class extends _0x10a29c{constructor(_0x19f937,_0x3c19bd,_0x24444a,_0x2534e9,_0x1e794f,_0x47e360){const _0xe3e856=_0x51fc53;super(),l(this,_0xe3e856(0x175),new _0x5d7d96(void 0x0)),l(this,_0xe3e856(0x154),new Map()),l(this,_0xe3e856(0x22f),new _0x5d7d96(0x0)),l(this,_0xe3e856(0x214),this[_0xe3e856(0x22f)][_0xe3e856(0xc8)]()),l(this,_0xe3e856(0x2a0),!0x1),l(this,_0xe3e856(0x1ac)),l(this,'_timeoutTimer'),l(this,_0xe3e856(0xfc)),l(this,_0xe3e856(0x10c),0x0),(this[_0xe3e856(0x342)]=_0x19f937,this[_0xe3e856(0x344)]=_0x3c19bd,this['_messageService']=_0x24444a,this[_0xe3e856(0x37c)]=_0x2534e9,this[_0xe3e856(0x2c4)]=_0x1e794f,this[_0xe3e856(0x137)]=_0x47e360);}get[_0x51fc53(0x2d4)](){const _0x1a8270=_0x51fc53;return this[_0x1a8270(0x175)]['getValue']();}['dispose'](){const _0x4cef4a=_0x51fc53;super[_0x4cef4a(0x232)](),this[_0x4cef4a(0x154)]['forEach'](_0x2531a4=>_0x2531a4['dispose']()),this[_0x4cef4a(0x154)]['clear'](),this[_0x4cef4a(0x22f)]['complete']();}async[_0x51fc53(0x1ad)](_0x347b88){const _0x18f65a=_0x51fc53;if(this['_sessions'][_0x18f65a(0x16c)](_0x347b88))return this[_0x18f65a(0x154)][_0x18f65a(0x151)](_0x347b88);this['_tryEnsureSocket']();const _0x5ba317=this[_0x18f65a(0x342)][_0x18f65a(0x3ba)](ut,_0x347b88,this[_0x18f65a(0x175)]['asObservable']());return this[_0x18f65a(0x154)][_0x18f65a(0x38f)](_0x347b88,_0x5ba317),_0x5ba317;}[_0x51fc53(0x35a)](){const _0x1b76fb=_0x51fc53;var _0x5859c4;const _0xee86b7=(_0x5859c4=this[_0x1b76fb(0x2c4)]['getConfig'](zi))!=null?_0x5859c4:Zi;return this[_0x1b76fb(0x137)]['createSocket'](_0xee86b7);}[_0x51fc53(0x2b1)](){const _0x7be8a7=_0x51fc53;try{const _0x1a8eb4=this[_0x7be8a7(0x35a)]();if(_0x1a8eb4){const _0x2a80ee=_0x1a8eb4[_0x7be8a7(0x39e)];_0x1a8eb4[_0x7be8a7(0x39e)]=_0x138009=>(this[_0x7be8a7(0x13b)](),_0x2a80ee[_0x7be8a7(0x89)](_0x1a8eb4,[_0x138009])),_0x1a8eb4[_0x7be8a7(0xbe)]['subscribe'](_0x34cc2f=>this[_0x7be8a7(0x135)](_0x1a8eb4,_0x34cc2f)),_0x1a8eb4[_0x7be8a7(0xed)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](_0x282a10=>this[_0x7be8a7(0x37c)]['error'](_0x7be8a7(0x1b0),_0x282a10)),_0x1a8eb4[_0x7be8a7(0x34c)][_0x7be8a7(0x2c3)](_0x51a597(0x1))[_0x7be8a7(0x202)](()=>{const _0x4f62fd=_0x7be8a7;this[_0x4f62fd(0x1e9)](_0x1a8eb4);}),_0x1a8eb4['close$']['pipe'](_0x51a597(0x1))['subscribe'](_0x2594a1=>{const _0x52249b=_0x7be8a7;this[_0x52249b(0x37c)][_0x52249b(0x35e)](_0x52249b(0x365),_0x52249b(0x35c),_0x2594a1),this[_0x52249b(0x386)]();});}}catch(_0x3375aa){this[_0x7be8a7(0x37c)][_0x7be8a7(0x24d)](_0x3375aa),this[_0x7be8a7(0x386)]();}}['_onConnectionOpen'](_0xfc0b9){const _0x32ce5e=_0x51fc53;this['_logService'][_0x32ce5e(0x35e)](_0x32ce5e(0x365),_0x32ce5e(0xd7)),_0xfc0b9[_0x32ce5e(0x39e)]({'cmd':I['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x51fc53(0x386)](){const _0x1c6a80=_0x51fc53;var _0x4bdcb4;this['_status$'][_0x1c6a80(0x275)](0x2),this['_socket$'][_0x1c6a80(0x275)](null),this[_0x1c6a80(0x2f6)](),this['_clearHeartbeatTimer'](),this[_0x1c6a80(0x2a0)]=!0x1,this[_0x1c6a80(0x10c)]<((_0x4bdcb4=this['_configService']['getConfig'](sn))!=null?_0x4bdcb4:nn)?(this[_0x1c6a80(0x164)](this[_0x1c6a80(0x10c)]),this['_retryCount']+=0x1):this[_0x1c6a80(0x383)][_0x1c6a80(0x25c)]({'type':_0x1587ba[_0x1c6a80(0x228)],'content':this[_0x1c6a80(0x344)]['t'](_0x1c6a80(0x273))});}[_0x51fc53(0x164)](_0x128694){const _0x353d51=_0x51fc53;var _0x1301ac;const _0x12e307=((_0x1301ac=this['_configService'][_0x353d51(0xf0)](en))!=null?_0x1301ac:tn)*0x2**_0x128694;this['_messageService']['show']({'type':_0x1587ba[_0x353d51(0x10e)],'content':this[_0x353d51(0x344)]['t']('session.will-retry')}),this[_0x353d51(0xfc)]=setTimeout(()=>{const _0x547c2f=_0x353d51;this[_0x547c2f(0x2b1)](),clearTimeout(this[_0x547c2f(0xfc)]),this[_0x547c2f(0xfc)]=null;},_0x12e307);}[_0x51fc53(0x13b)](){const _0x13ad1d=_0x51fc53;var _0x1e61df;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x13ad1d(0x144)](),(_0x1e61df=this['_configService']['getConfig'](qi))!=null?_0x1e61df:Qi);}[_0x51fc53(0x144)](){const _0x4329e4=_0x51fc53;this[_0x4329e4(0x2d4)][_0x4329e4(0x39e)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x51fc53(0x116)](){const _0x18a740=_0x51fc53;var _0x165bd6;this['_timeoutTimer']=setTimeout(()=>this[_0x18a740(0x386)](),(_0x165bd6=this[_0x18a740(0x2c4)][_0x18a740(0xf0)](Is))!=null?_0x165bd6:Es);}[_0x51fc53(0x135)](_0x4df3d9,_0x7e37ff){const _0x1c1b98=_0x51fc53,{cmd:_0x560cc9}=_0x7e37ff;_0x560cc9===I['HELLO']&&!this[_0x1c1b98(0x2a0)]&&(_0x4df3d9['memberID']=_0x7e37ff[_0x1c1b98(0x94)][_0x1c1b98(0x2ae)],this[_0x1c1b98(0x175)][_0x1c1b98(0x275)](_0x4df3d9),this[_0x1c1b98(0x22f)][_0x1c1b98(0x275)](0x3),this[_0x1c1b98(0x2a0)]=!0x0),_0x560cc9===I[_0x1c1b98(0x199)]&&this[_0x1c1b98(0x2f6)](),this[_0x1c1b98(0x13b)]();}[_0x51fc53(0x263)](){const _0x2fb33f=_0x51fc53;this[_0x2fb33f(0x1ac)]!=null&&(clearTimeout(this[_0x2fb33f(0x1ac)]),this[_0x2fb33f(0x1ac)]=null);}['_clearTimeoutTimer'](){const _0x4005a2=_0x51fc53;this[_0x4005a2(0x249)]!=null&&(clearTimeout(this[_0x4005a2(0x249)]),this[_0x4005a2(0x249)]=null);}};Re=Ts([M(0x0,_0x4a7404(_0x44b6b8)),M(0x1,_0x4a7404(_0x201091)),M(0x2,_0xf8e37a),M(0x3,_0x3cb271),M(0x4,_0x5977ca),M(0x5,bs)],Re);var bn=Object[_0x51fc53(0x18f)],Rn=Object[_0x51fc53(0x340)],Tn=(_0x567d13,_0x51e00e,_0x3ae3b7,_0x2c22f9)=>{const _0x336913=_0x51fc53;for(var _0x4b5261=_0x2c22f9>0x1?void 0x0:_0x2c22f9?Rn(_0x51e00e,_0x3ae3b7):_0x51e00e,_0x30ad2c=_0x567d13[_0x336913(0x2c6)]-0x1,_0x1d3cd9;_0x30ad2c>=0x0;_0x30ad2c--)(_0x1d3cd9=_0x567d13[_0x30ad2c])&&(_0x4b5261=(_0x2c22f9?_0x1d3cd9(_0x51e00e,_0x3ae3b7,_0x4b5261):_0x1d3cd9(_0x4b5261))||_0x4b5261);return _0x2c22f9&&_0x4b5261&&bn(_0x51e00e,_0x3ae3b7,_0x4b5261),_0x4b5261;},Se=(_0x1f0453,_0x2c89cc)=>(_0x15837b,_0x1fbf3a)=>_0x2c89cc(_0x15837b,_0x1fbf3a,_0x1f0453);let D=class extends _0x10a29c{constructor(_0x3bc7c1,_0x33a536,_0x439f48,_0x5dc724,_0x1cd876){const _0x1ee388=_0x51fc53;super(),l(this,_0x1ee388(0x271),new Map()),l(this,_0x1ee388(0x171),new Map()),l(this,_0x1ee388(0x231),!0x1),(this[_0x1ee388(0x2c4)]=_0x3bc7c1,this[_0x1ee388(0x1a6)]=_0x33a536,this['_beforeCloseService']=_0x439f48,this['_localeService']=_0x5dc724,this[_0x1ee388(0x2f2)]=_0x1cd876,this['_setupBeforeClosingHandler']());}[_0x51fc53(0x329)](){const _0x588f9a=_0x51fc53;this[_0x588f9a(0x231)]=!0x0;}[_0x51fc53(0x1a8)](){const _0x160a0d=_0x51fc53;this[_0x160a0d(0x231)]=!0x1;}['dispose'](){const _0x299d9e=_0x51fc53;this[_0x299d9e(0xc2)]()[_0x299d9e(0xf4)](()=>super[_0x299d9e(0x232)]());}async[_0x51fc53(0x2e5)](_0x18cbd0){const _0x4fc89c=_0x51fc53;return this[_0x4fc89c(0x231)]?null:this[_0x4fc89c(0x1a6)][_0x4fc89c(0xde)](Gt(_0x18cbd0));}async[_0x51fc53(0x16a)](_0x48dc6a,_0x507d95){const _0x479067=_0x51fc53;return!!this[_0x479067(0x1a6)]['setItem'](_0x48dc6a,_0x507d95);}[_0x51fc53(0x256)](_0x249895,_0x147b95,_0x349cc0,_0x383e79){const _0x419f21=_0x51fc53,_0x17cdd5=this[_0x419f21(0x2f2)]['getCurrentRevForDocument'](_0x249895);this[_0x419f21(0x271)][_0x419f21(0x38f)](_0x249895,{'unitID':_0x249895,'type':_0x147b95,'awaitingChangeset':_0x349cc0,'mutations':_0x383e79,'rev':_0x17cdd5}),this[_0x419f21(0x171)][_0x419f21(0x16c)](_0x249895)||this['_scheduleSaving'](_0x249895);}[_0x51fc53(0x1a9)](_0x58f04b){const _0x4de993=_0x51fc53,_0x6ef425=this[_0x4de993(0x226)]();_0x6ef425===0x0?this[_0x4de993(0x2d0)](_0x58f04b):this['_saveTaskMap'][_0x4de993(0x38f)](_0x58f04b,setTimeout(()=>this[_0x4de993(0x2d0)](_0x58f04b),_0x6ef425));}[_0x51fc53(0x226)](){const _0x277e5c=_0x51fc53;var _0x1cc550;return(_0x1cc550=this['_configService'][_0x277e5c(0xf0)](rn))!=null?_0x1cc550:on;}[_0x51fc53(0x2d0)](_0x3fbb24){const _0x2f3dd5=_0x51fc53,_0x364435=this['_saveTaskMap'][_0x2f3dd5(0x151)](_0x3fbb24);return _0x364435!==void 0x0&&window[_0x2f3dd5(0x20c)](_0x364435),this['_localStorageService'][_0x2f3dd5(0x2f0)](Gt(_0x3fbb24),this['_cachedData']['get'](_0x3fbb24))[_0x2f3dd5(0xf4)](()=>this[_0x2f3dd5(0x171)][_0x2f3dd5(0x209)](_0x3fbb24));}async[_0x51fc53(0xc2)](){const _0x1d72f8=_0x51fc53,_0x5645e8=[];this[_0x1d72f8(0x171)]['forEach']((_0x2f3708,_0xe0c2b3)=>{const _0x57dfb6=_0x1d72f8;window[_0x57dfb6(0x20c)](_0x2f3708),_0x5645e8[_0x57dfb6(0x19d)](this['_saveCache'](_0xe0c2b3)[_0x57dfb6(0xf4)](()=>{const _0x1c8d49=_0x57dfb6;this['_saveTaskMap'][_0x1c8d49(0x209)](_0xe0c2b3);}));}),await Promise[_0x1d72f8(0x97)](_0x5645e8);}[_0x51fc53(0x17a)](){const _0x37d21d=_0x51fc53;this[_0x37d21d(0x294)](this[_0x37d21d(0x32b)][_0x37d21d(0x125)](()=>{const _0x2c3598=_0x37d21d;if(this[_0x2c3598(0x171)][_0x2c3598(0x23a)])return this[_0x2c3598(0x344)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0x5977ca),Se(0x1,_0x2cad44),Se(0x2,_0x5e3e8f),Se(0x3,_0x4a7404(_0x201091)),Se(0x4,_0x4a7404(_0x4d36b1))],D);function _0x18ca(){const _0x5199ce=['/universer-api/comb','_syncEditingCollabCursorService','round','9RGpKre','getTypeOfUnitAdded$','getInterceptPoints','/collaborator','_cachedData','permission.content','session.connection-failed','PERMISSION_REJ','next','newCsEvent','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MSG_FOR_ERROR','_urlService','_unitOnClients','_name','onStarting','_renderManagerService','_commentService','_anchorDot','getTypeOfUnitDisposed$','_createInitialStateImpl','FETCH_MISSING','href','_localCacheService','fillText','save\x20fail\x20reason\x20is\x20','getSelections','string','labelPosition','fetchMissingChangesets','collaboratorID','UNIVER_SLIDE','_clearRedo','height','setParam','createElement','_onCursorUpdate','_updateState','_isPermissionRej','disposeWithMe','unshift','[CollaborationState]:\x20apply\x20error!','image/bmp','_getUploadFileURL','Error\x20on\x20receiving\x20event','Univer','_clearOtherTimers','_session','_loadSheet','UNKNOWN_CODE','fill','_socketReady','svg','TOO_MANY_REQUESTS','_entities','unload','_handleHeartbeatEvent','onRemoteAck','_userManagerService','tag','_docStateChangeManagerService','listCollaborators','_getUndoStack','_waitCount','random','memberID','unitId','originalMeta','_tryEnsureSocket','getImage','\x20-\x20','black','univer-online-status','attrs','onCommentUpdate','_createInitialState','idSuffix','_onUserLeave','removeParam','getCollabCursors$','HELLO','getMemberID','univer-offline','_getSendChangesetTimeout','[SyncedState]:\x20received\x20rejection.','permissionRejEvent','pipe','_configService','ERROR_IMAGE','length','localeService','LICENSE_MAX_UNITS_EXCEEDED','_scene','getUndoRedoMutationParamsCache','_selfUnitIDs','encode','type','[UniverCollaborationClientPlugin]','USERS_ENTER','_saveCache','Ready','addObjects','resourceIDs','_socket','isPermissionRej','8544XNwcKf','subscribeEvent','setShapeProps','roles','readAsDataURL','drawWith','_startSheetCollabCursor','parse','_getLoginPath','97296krqYso','objectActions','_notificationService','CONNECTOR_DATA_TOO_LARGE','_draw','conflict.title','loadOfflineData','LIVESHARE_TERMINATE','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_substituteUndoStack','updateMember','stringify','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','propertyIsEnumerable','getFocusedUnit','collaborators','onTransformSelections','setItem','getCurrentRevForDocument','_revisionService','/resources','_startDocCollabCursor','range','_clearTimeoutTimer','session.collaboration-timeout','_transformSelections','NOT_FOUND','selection','offline','ALREADY_EXISTS','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onRemoteChangeset','LIVESHARE_OPERATION','generateRandomId','uni.network.url-service','textRanges','_updateLocalCache','[CollaborationEntity]','YUUMI_UNABLE_LOAD_URL','baseRev','_getDocObject','getRenderById','_disableEditing','_send','APPLY_REVISION_CONFILICT','_onRefRangeChange','hasOwnProperty','startsWith','m2Prime','_handler','CHANGESET_REVISION_CONFILICT','USERS_LEAVE','toRgbString','onTransformRemoteChangesetByIMECache','_undoStacks','subunit','hide','collabCursorState$','OFFLINE','_decreaseWaiting','LICENSE_IMPORT_SIZE_EXCEEDED','_onConflict','/fetchmissing?from=','deleteCollaborator','ONLINE','getCurrent','MUTATION','_httpService','_document','setWaitCount','univer-online-status-title','RECV','members','getCurrentUser','disableLocalCache','pauseCollaboration','_beforeCloseService','UNIVER_DOC','flatMap','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','image/jpg','_HTTPService','_state$','objectID','loadDoc','sessionStatus$','_onUserJoin','fillStyle','failed\x20to\x20apply\x20missed\x20changesets!','toggleOnline','SEND_CHANGESET_TIMEOUT','univerjs-icon\x20univerjs-icon-','_getAPIPrefix','COMMENT_UPDATE','_docSkeletonManagerService','assignAColorForMemberID','_anchor','getOwnPropertyDescriptor','div','_injector','_toggleOnline','_localeService','_setupSubUnitSync','OTHER_CLIENTS_EDITING','appendMutation','_onRemoteRejected','complete','CHANGESET_REJ','off-line-single_clip0_910_343','open$','collabStatus.syncing','isArray','/new_changes','&to=','UNIVER_SHEET','_transformRemoteChangesetByIMECache','_createHandler','activeSheet$','_transformPreviousActiveRange','onStateChange','RemoveColCommandId','incrementRevForDocument','_refRangeService','_createSocket','_updateLocalCursor','socket\x20close','color','debug','_shapes','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','awaiting','clear','2651088ywRbwD','_scheduleHeartbeat','[CollaborationSessionService]','INVALID_ARGUMENT','findNodePositionByCharIndex','commentUpdate$','saveChangeset','_http','_entityInit$','onSendChangeset','_onCursorDelete','editing\x20status\x20changed\x20to','_roomMembers$','onTransformIME','_redoStacks','startColumn','_acknowledgedAwaitingChangeset','event$','setAlpha','_scheduleCollaborationTimeoutTimer','DeleteRangeMoveUpCommandId','displayName','onRemoteChangeset','path','_transitionLocked','_logService','getActiveRange','?url=','InsertRangeMoveDownCommandId','_init','_onFetchMissResult','[PendingState]:\x20received\x20acknowledgement.','_messageService','LOGIN_URL_KEY','min','_onConnectionFailed','unit','synced','6758257YqGhFL','/universer-api/snapshot/','getViewModel','_unitStatus','[FetchMissState]','_queuedRemoteChangesets','set','_cursorInfo$','currentSkeleton$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_awaitingChangeset','PENDING','_sheetSkeletonManagerService','UNDEFINED','ranges','red300','children','\x20to\x20','_clearCollaborationTimeoutTimer','cmd','slice','send','_docTransformSelectionsService','ws://127.0.0.1:8000/universer-api/comb/connect','_ws','/universer-api/stream/file/upload','indexOf','name','_incrementRevisionNumber','setTimeout','_labelPosition','defIds','getSheetBySheetId','Unknown\x20user','c1Prime','[DataLoaderController]','newValue','_docSkeleton','xlink:href','getCollabEntity$','onPointerLeave$','close','registerComponent','_ensureSubject','_socketMessageSubscription','getUnitType','isEditing','url(#off-line-single_clip0_910_343)','replace','createInstance','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.notCollab','transformMutationsWithChangeset','removeMember','collab-text-anchor-','_sessionStatus$','joinEvent','_id','_executeRemoteChangeset','_collabCursorController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNAUTHENTICATED','makeDirty','9326xNooEb','apply','_unitId','image/png','Steady','/block/','onMouseMove','JOIN','_sendingTimer','INGEST','substring','RETRY_CONNECTING_INTERVAL','data','_clearLocalCache','OffLineSingle','all','liveShareOperation','snapshot','[SyncedState]:\x20received\x20acknowledgement.','_substituteRedoStack','getRoom','COMPRESS_MUTATION_SEND','_collaborationController','_replaceFileID','_univerInstanceService','_textBubble','close$','changesets','function','_permissionService','collabStatus.conflict','_color','_collaborationTimeoutTimer','_replayCachedMutations','executeCommand','map','json','_type','use','revision','getViewport','/object','interceptor','_eventUnsubscribe','onCommandExecuted','awaiting_with_pending','getMember','UNIVER_UNKNOWN','/allowed','_removeCollabCursors','urlChange$','_getSnapshotAPIPrefix','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[CollaborationUndoRedoService]','message$','endRow','onload','off-line-single','_exhaustSavingTask','collaMsg','_updateCollabCursors','transformSelections','\x0aCurrent:\x20','mutations','asObservable','src','_scheduleTimestamp','conflict','_hover','getOwnPropertySymbols','getCellPositionByOffset','_config','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','fetchThroughInterceptors','fromCollab','_cursors','_uiPartsService','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_hovered','socket\x20open.','LEAVE','with','_getSheetObject','_toggleOffline','LIVESHARE_REQUEST_HOST','pending','getItem','COLLAB_WEB_SOCKET_URL','objectType','5342630naCUdn','replaceState','[PendingState]:\x20received\x20rejection.','SYNCED','icon','_fetchMissChangesets','add','2084656ThyvmU','FAIL','/unit/','NOT_COLLAB','createSocket','error$','jiqing500','setActiveRange','getConfig','CHANGESET_ACK','session','selections','then','translate(.97)','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20changeset.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','blue400','entries','LICENSE_EXPORT_SIZE_EXCEEDED','_retryConnectingTimer','_removeClearOtherTimer','moveTo','LOCAL_CACHE_INTERVAL','pushState','APPLY_REJECT','_transformService','split','addObject','FileId','setUndoRedoMutationParamsCache','collabStatus.synced','_event$','_singleActiveUnitService','confirm','sheetId','_retryCount','_updateStatus','Warning','_handleLeaveEvent','SNAPSHOT_URL_KEY','focused$','storage','_commandService','_applyRemoteChangeset','_clearUndo','_waitForHeartbeatResponse','file','_getMergeRange','_sheetTransformSelectionsService','unsubscribe','_handleEvent','_getSignURL','Starting','includes','clearInterval','/universer-api/authz','values','row','cursorInfo$','forEach','registerBeforeClose','onSyncEditingCollabCursor','font','updateCursorEvent','cursorInfo','current','_memberService','_updateSubUnitFromURLParams','onMissingChangesets','catch','30KvsGIM','ERROR_EXCEED_SIZE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onCombEvent','_exhaustRemoteChangesetQueue','[OfflineState]:\x20received\x20acknowledgement.','_onMessage','SNAPSHOT_SERVER_URL_KEY','_socketService','InsertRangeMoveRightCommandId','replaceTextRanges','post','_rescheduleHeartbeatEvent','[CollaborationSession]','UNKNOWN_CMD','_transformStack','_compressMutationService','url(#on-line-single_clip0_910_349)','code','some','fetch_missing','_sendHeartbeat','colorChannel1','1em','_onRecvEvent','_getCtorByUniverType','updateCollaborator','_handleHover','concat','PERMISSION_DENIED','ACTIVE_UNIT_EVENT_CHANNEL','_onRemoteACK','image/gif','hovered','get','doc.mutation.rich-text-editing','closePath','_sessions','addImageSourceCache','LICENSE_DISTRO_REJECTED','gold400','_schedule','arc','onlineStatusTitle','2569DFSqzp','_getScale','getTime','getValue','bottom','batchAllowed','_getCurrentRevision','HEARTBEAT_INTERVAL','APPLY_NON_SEQUENTIAL_REVISION','_scheduleReconnection','measureText','getMergeData','_onJoinRoomEvent','append','onPointerEnter$','saveOfflineData','_themeService','has','_syncEditingCollabCursor','routeKey','_clearScheduledTask','change$','_saveTaskMap','startRow','_state','_initStatusListener','_socket$','COMPRESS_MUTATION_APPLY','transformByState','toggleOffline','getCollabEntity','_setupBeforeClosingHandler','_commentUpdate$','from','width','FromArray','enableAuthServer','AWAITING','state','lineTo','deepClone','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','call','triggerDblclick','editingUnit','awaitingChangeset','_cursor','_render','_roomMembers','_transformUndoRedoStack','fillRule','LIVESHARE_FETCH_OPERATIONS','defineProperty','_imageSourceCache','init','url','sessionStatus','registerHTTPInterceptor','onlineStatusIcon','_handleJoinEvent','resend','_initModules','HEARTBEAT','put','encodeURIComponent','actions','push','IDLE','currentColor','univer-online','trim','AWAITING_WITH_PENDING','unit-cache-','_lastPointer','result','_localStorageService','currentTheme$','enableLocalCache','_scheduleSaving','[OfflineState]:\x20received\x20rejection.','univer-pro.collaboration-client-socket-service','_sendHeartbeatTimer','requireSession','saveImage','/object/','[CollaborationSessionService]:\x20socket\x20error','unitID','_collabSessionService','whenReady','purple300','_getAnchorBounding','sheets','syncEditingCollabCursor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','popstate','roomInfos','reject','_undoRedoService','toString','_transformIMECache','_docSyncEditingCollabCursorService','OnLineSingle','roomMembers$','24vlsADW','_hideTimer','getCurrentUnitForType','rgba(255,\x20255,\x20255,\x200.01)','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_onLocalMutation','params','socketService','onRemoteRej','SNAPSHOT_HAS_BEEN_REMOVED','UNRECOGNIZED','getRangePointData','_removeRoom','title','collab-text-range-','on-line-single_clip0_910_349','csRejEvent','update','column','extend','commentUpdateEvent','saveSnapshot','getDataModel','online','resolve','EXCHANGE_SIGN_URL_SERVER_URL_KEY','APPLY_PERMISSION_DENIED','_docTransformIMECacheService','_remoteChangesetQueue','INTERNAL_ERROR','_lockTransition','find','UUID','getActiveSheet','_pendingMutations','_snapshotService','ERROR_IMAGE_TYPE','_colorAssignService','_checkMissing','_onConnectionOpen','userID','rev','eventID','unknown','getUnitStatus$','getSheetId','JOINING','5kwoUmp','save','_range','onlyLocal','prototype','updatePermissionPoint','verdancy600','_unlockTransition','patch','COMPLETION_FINISHED','_getAPIPrefixPath','infoRsp','_colorIndex','createCollaborator','image/jpeg','dispose$','liveShareNewHost','subscribe','_loadDoc','reverse','filter','onPointerMove$','top','SNAPSHOT_INVALID_SNAPSHOT','delete','not_collab','setCurrentUser','clearTimeout','MoveRangeCommandId','/rev/','CONFLICT','collaboration.single-unit.warning','body','_getRedoStack','LIVESHARE_NEW_HOST','status$','YUUMI_URL_COL_OUT_OF_RANGE','max','connection\x20error','_collaborationPaused','assign','roomMembers','enableOfflineEditing','transformChangesets','_submitChangeset','location','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','history','className','onlineStatus','_startCollaboration','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_joinRoom','_getSaveTimeout','_change$','Error','...','/universer-api/snapshot','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','M0\x200H16V16H0z','getParam','_status$','saveSheetBlock','_disabled','dispose','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','#fff','UPDATE_CURSOR','_members','UNIVER_COLLABORATION_CLIENT_PLUGIN','univer-online-status-icon','_heartbeatTimer','size','workbook','_assignedColors','collaborationUniverTypes','collabStatus.offline','HEADER_MENU','_snapshotServerService','{fileID}','getAncestorScale','_transformUndoredo','getUnitId','state$','session.room-full','_unitID','text','_timeoutTimer','addEventListener','getUnhiddenWorksheets','auth.needGotoLoginAlert','error','target','searchParams','NEW_CHANGESETS','clipPath','FETCH_MISS','status','getResourcesRequest','SUBMIT_CHANGESET','updateOfflineData','conflict.content','/universer-api/oidc/authpage','transformMutation','evenodd','_updateURLWithCurrentState','show','m1Prime','_drawAnchor','beginPath','_scheduleClearOtherTimer','restore','_drawRange','_clearHeartbeatTimer','defs','_online','none','fetching\x20missing\x20changesets\x20from\x20','sheetID','PSEUDO_FETCH_MISSING_RESULT'];_0x18ca=function(){return _0x5199ce;};return _0x18ca();}function Gt(_0x3c0871){const _0x24e7d0=_0x51fc53;return _0x24e7d0(0x1a3)+_0x3c0871;}const Xe=_0xf73999(_0x51fc53(0x22b));var Os=(_0x14b6ec=>(_0x14b6ec[_0x14b6ec[_0x51fc53(0xf6)]=0x0]=_0x51fc53(0xf6),_0x14b6ec[_0x14b6ec['OTHER_CLIENTS_EDITING']=0x1]=_0x51fc53(0x346),_0x14b6ec))(Os||{});const Yt=0x7530,Kt=_0x51fc53(0x14d);class On extends _0x10a29c{constructor(){const _0x49237e=_0x51fc53;super(),l(this,_0x49237e(0x82),_0x4cfbd7['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x49237e(0x239),null),l(this,_0x49237e(0x29b),new Map()),l(this,_0x49237e(0x38c),new Map()),this['_init']();}[_0x51fc53(0x232)](){const _0x3859b4=_0x51fc53;super[_0x3859b4(0x232)](),this['_clearOtherTimers']['forEach']((_0x27c810,_0x439676)=>this[_0x3859b4(0xfd)](_0x439676)),this[_0x3859b4(0x239)]&&window[_0x3859b4(0x11f)](this[_0x3859b4(0x239)]);}['getUnitStatus$'](_0x4dfe60){const _0x4dedd9=_0x51fc53;return this[_0x4dedd9(0x3b4)](_0x4dfe60)['pipe'](_0xe50b30());}[_0x51fc53(0x187)](_0x5a27a2){const _0x256a06=_0x51fc53;this['_selfUnitIDs'][_0x256a06(0x23a)]===0x0&&this[_0x256a06(0x364)](),this[_0x256a06(0x2cb)][_0x256a06(0xe7)](_0x5a27a2),this[_0x256a06(0x30a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5a27a2],'isForwarded':!0x1});}['disposeUnit'](_0x3c14fc){const _0x4e764c=_0x51fc53;this[_0x4e764c(0x2cb)][_0x4e764c(0x209)](_0x3c14fc),this['_selfUnitIDs'][_0x4e764c(0x23a)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x4e764c(0x239)]);}['_init'](){const _0x1c3f3d=_0x51fc53;this['disposeWithMe'](_0x2f2f24(_0x1860dc(window,_0x1c3f3d(0x112))['subscribe'](_0x7d2cc7=>{const _0x1a3858=_0x1c3f3d;if(_0x7d2cc7['key']!==Kt||!_0x7d2cc7[_0x1a3858(0x3ad)])return;const _0x3e9850=JSON[_0x1a3858(0x2dd)](_0x7d2cc7[_0x1a3858(0x3ad)]);this['_handleEvent'](_0x3e9850);}))),window[_0x1c3f3d(0x24a)](_0x1c3f3d(0x2a4),()=>this[_0x1c3f3d(0x30a)]({'type':0x1,'memberID':this[_0x1c3f3d(0x82)],'unitIDs':Array[_0x1c3f3d(0x17c)](this[_0x1c3f3d(0x2cb)])}));}[_0x51fc53(0x11b)](_0x5b6daf){const _0x461a1f=_0x51fc53;switch(_0x5b6daf[_0x461a1f(0x2cd)]){case 0x0:this['_handleJoinEvent'](_0x5b6daf);break;case 0x1:this[_0x461a1f(0x10f)](_0x5b6daf);break;case 0x2:this[_0x461a1f(0x2a5)](_0x5b6daf);break;}}[_0x51fc53(0x196)](_0x40c84b){const _0x43ecce=_0x51fc53,{unitIDs:_0x34bfed,memberID:_0x4b8c4f,isForwarded:_0x1dd111}=_0x40c84b;_0x34bfed[_0x43ecce(0x124)](_0x2432f6=>{const _0x51f5fe=_0x43ecce;if(!_0x1dd111&&this[_0x51f5fe(0x27a)][_0x51f5fe(0x16c)](_0x2432f6)&&this[_0x51f5fe(0x3b4)](_0x2432f6)[_0x51f5fe(0x275)](0x1),!this['_unitOnClients'][_0x51f5fe(0x16c)](_0x2432f6)||!this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)[_0x51f5fe(0x16c)](_0x4b8c4f)){const _0x787785=this[_0x51f5fe(0x27a)][_0x51f5fe(0x151)](_0x2432f6)||new Set();_0x787785[_0x51f5fe(0xe7)](_0x4b8c4f),this[_0x51f5fe(0x27a)][_0x51f5fe(0x38f)](_0x2432f6,_0x787785),this[_0x51f5fe(0x260)](_0x4b8c4f);}}),_0x1dd111||this[_0x43ecce(0x30a)]({'type':0x0,'memberID':this[_0x43ecce(0x82)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x291848){const _0x5977ce=_0x51fc53;this[_0x5977ce(0xfd)](_0x291848);const _0x19d883=window[_0x5977ce(0x3a6)](()=>{this['_unitOnClients']['forEach'](_0x78235e=>{_0x78235e['delete'](_0x291848);});},Yt*0x2);this[_0x5977ce(0x29b)][_0x5977ce(0x38f)](_0x291848,_0x19d883);}[_0x51fc53(0xfd)](_0x3c7be8){const _0x2b7579=_0x51fc53;if(this[_0x2b7579(0x29b)]['has'](_0x3c7be8)){const _0x1d4b8c=this[_0x2b7579(0x29b)]['get'](_0x3c7be8);_0x1d4b8c&&window[_0x2b7579(0x20c)](_0x1d4b8c),this['_clearOtherTimers']['set'](_0x3c7be8,null);}}[_0x51fc53(0x10f)](_0x3c1122){const _0x1cc5cd=_0x51fc53,{memberID:_0x593a24,unitIDs:_0x2b8915}=_0x3c1122;_0x2b8915[_0x1cc5cd(0x124)](_0x5f090d=>{const _0x5b2608=_0x1cc5cd;var _0x38c161;const _0x2fdd01=this[_0x5b2608(0x27a)][_0x5b2608(0x151)](_0x5f090d);_0x2fdd01&&(_0x2fdd01[_0x5b2608(0x209)](_0x593a24),(_0x38c161=this[_0x5b2608(0x3b4)](_0x5f090d))==null||_0x38c161[_0x5b2608(0x275)](_0x2fdd01[_0x5b2608(0x23a)]===0x0?0x0:0x1));}),this[_0x1cc5cd(0xfd)](_0x593a24);}[_0x51fc53(0x2a5)](_0x3b0b2d){const _0x4796f8=_0x51fc53;this[_0x4796f8(0x260)](_0x3b0b2d['memberID']);}['_send'](_0x8e176){const _0x5dd6d1=_0x51fc53;localStorage[_0x5dd6d1(0x2f0)](Kt,JSON[_0x5dd6d1(0x2ea)](_0x8e176));}[_0x51fc53(0x364)](){const _0x19b02e=_0x51fc53;this[_0x19b02e(0x239)]=window['setInterval'](()=>{const _0x34e71b=_0x19b02e;this[_0x34e71b(0x30a)]({'type':0x2,'memberID':this['_id']});},Yt);}[_0x51fc53(0x3b4)](_0x3cc3df){const _0xcfe4fd=_0x51fc53;return this[_0xcfe4fd(0x38c)]['has'](_0x3cc3df)||this[_0xcfe4fd(0x38c)][_0xcfe4fd(0x38f)](_0x3cc3df,new _0x5d7d96(0x0)),this['_unitStatus']['get'](_0x3cc3df);}}var Dn=Object[_0x51fc53(0x18f)],wn=Object[_0x51fc53(0x340)],Pn=(_0x4e5240,_0x28b81d,_0xb8902e,_0x3612cf)=>{const _0x51711a=_0x51fc53;for(var _0x41a75a=_0x3612cf>0x1?void 0x0:_0x3612cf?wn(_0x28b81d,_0xb8902e):_0x28b81d,_0x1d8464=_0x4e5240[_0x51711a(0x2c6)]-0x1,_0x5637e6;_0x1d8464>=0x0;_0x1d8464--)(_0x5637e6=_0x4e5240[_0x1d8464])&&(_0x41a75a=(_0x3612cf?_0x5637e6(_0x28b81d,_0xb8902e,_0x41a75a):_0x5637e6(_0x41a75a))||_0x41a75a);return _0x3612cf&&_0x41a75a&&Dn(_0x28b81d,_0xb8902e,_0x41a75a),_0x41a75a;},Xt=(_0x58e8a0,_0x5a4309)=>(_0x3d8b53,_0x3e0243)=>_0x5a4309(_0x3d8b53,_0x3e0243,_0x58e8a0);let Be=class{constructor(_0xa87404,_0x16bc1b){const _0x3b4e86=_0x51fc53;this[_0x3b4e86(0x342)]=_0xa87404,this[_0x3b4e86(0x102)]=_0x16bc1b;}[_0x51fc53(0x22c)](_0x4dc2c3){const _0x9d7dba=_0x51fc53;this[_0x9d7dba(0x18c)](_0x4dc2c3),this[_0x9d7dba(0x355)](_0x4dc2c3);}['transformRemoteChangeset'](_0x434645){const _0x368178=_0x51fc53,_0x5d26a2=this[_0x368178(0x342)][_0x368178(0x151)](_0x57e020),{redoCache:_0x3a1135}=_0x5d26a2[_0x368178(0x2ca)]();if(_0x3a1135[_0x368178(0x2c6)]===0x0)return _0x434645;let _0x1647c0=_0x4cfbd7[_0x368178(0x183)](_0x434645['mutations'][0x0]);for(let _0x3f0c09=0x0;_0x3f0c09<_0x3a1135[_0x368178(0x2c6)];_0x3f0c09++){const _0x36e7d1={'id':_0x368178(0x152),'params':{..._0x3a1135[_0x3f0c09]}},_0x4623e8=this[_0x368178(0x102)][_0x368178(0x259)](_0x1647c0,_0x36e7d1,!0x1);if(_0xcc662a(_0x4623e8))throw _0x4623e8['error'];_0x1647c0=_0x4623e8[_0x368178(0x25d)];}return{..._0x4cfbd7[_0x368178(0x183)](_0x434645),'mutations':[_0x1647c0]};}[_0x51fc53(0x18c)](_0x5b0e0d){const _0x3ade08=_0x51fc53,_0x442ab2=this['_injector'][_0x3ade08(0x151)](_0x57e020),{undoCache:_0x2ec6cb,redoCache:_0x2a8beb}=_0x442ab2[_0x3ade08(0x2ca)]();if(_0x2ec6cb[_0x3ade08(0x2c6)]===0x0||_0x2a8beb[_0x3ade08(0x2c6)]===0x0)return;const _0x204a77=[],_0x2e4a7f=[];let _0x2d1d6c=_0x4cfbd7['deepClone'](_0x5b0e0d[_0x3ade08(0xc7)][0x0]),_0x24e2ef=_0x4cfbd7[_0x3ade08(0x183)](_0x5b0e0d[_0x3ade08(0xc7)][0x0]);for(let _0x357fc8=_0x2ec6cb[_0x3ade08(0x2c6)]-0x1;_0x357fc8>=0x0;_0x357fc8--){const _0x21c12b={'id':_0x3ade08(0x152),'params':{..._0x2ec6cb[_0x357fc8]}},_0x352d1c={'id':_0x3ade08(0x152),'params':{..._0x2a8beb[_0x357fc8]}},_0x275625=this['_transformService'][_0x3ade08(0x259)](_0x2d1d6c,_0x21c12b,!0x1),_0x4a3cb9=this[_0x3ade08(0x102)]['transformMutation'](_0x24e2ef,_0x352d1c,!0x1);if(_0xcc662a(_0x275625))throw _0x275625['error'];if(_0xcc662a(_0x4a3cb9))throw _0x4a3cb9[_0x3ade08(0x24d)];_0x204a77[_0x3ade08(0x295)](_0x275625[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2e4a7f[_0x3ade08(0x295)](_0x4a3cb9[_0x3ade08(0x30f)][_0x3ade08(0x1c8)]),_0x2d1d6c=_0x275625['m1Prime'],_0x24e2ef=_0x4a3cb9['m1Prime'];}_0x442ab2[_0x3ade08(0x106)]({'undoCache':_0x204a77,'redoCache':_0x2e4a7f});}[_0x51fc53(0x355)](_0x1d909d){const _0x29acee=_0x51fc53,_0x203f23=this['_injector']['get'](_0x57e020),_0x1b8b0f=_0x203f23[_0x29acee(0x37d)]();if(_0x1b8b0f==null)return;const _0xdaf90d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d909d['unitID'],'actions':null,'textRanges':[_0x1b8b0f]}}],_0x4d21e4=this[_0x29acee(0x102)][_0x29acee(0x3bd)](_0x1d909d,_0xdaf90d);if(!_0x5a8972(_0x4d21e4))throw _0x4d21e4[_0x29acee(0x24d)];const _0x3d0133=_0x4d21e4['m2Prime'][0x0][_0x29acee(0x1c8)]['textRanges'];Array[_0x29acee(0x34e)](_0x3d0133)&&_0x3d0133[_0x29acee(0x2c6)]&&_0x203f23[_0x29acee(0xef)](_0x3d0133[0x0]);}};Be=Pn([Xt(0x0,_0x4a7404(_0x44b6b8)),Xt(0x1,_0x425e9b)],Be);var Nn=Object[_0x51fc53(0x18f)],Mn=Object[_0x51fc53(0x340)],An=(_0x3033e3,_0x9fb173,_0x595868,_0x19eb0a)=>{const _0x5c4466=_0x51fc53;for(var _0x3aaf3f=_0x19eb0a>0x1?void 0x0:_0x19eb0a?Mn(_0x9fb173,_0x595868):_0x9fb173,_0x1c1261=_0x3033e3[_0x5c4466(0x2c6)]-0x1,_0x208511;_0x1c1261>=0x0;_0x1c1261--)(_0x208511=_0x3033e3[_0x1c1261])&&(_0x3aaf3f=(_0x19eb0a?_0x208511(_0x9fb173,_0x595868,_0x3aaf3f):_0x208511(_0x3aaf3f))||_0x3aaf3f);return _0x19eb0a&&_0x3aaf3f&&Nn(_0x9fb173,_0x595868,_0x3aaf3f),_0x3aaf3f;},Jt=(_0x2a144a,_0x51e388)=>(_0x48f78a,_0x2e66b7)=>_0x51e388(_0x48f78a,_0x2e66b7,_0x2a144a);let ke=class{constructor(_0x46c0b1,_0x26f919){const _0x563856=_0x51fc53;this[_0x563856(0x342)]=_0x46c0b1,this[_0x563856(0x102)]=_0x26f919;}[_0x51fc53(0xc5)](_0x3cd0a2){const _0x33ed89=_0x51fc53;var _0x5c1e20;const _0x342702=this['_injector'][_0x33ed89(0x151)](_0x58dacd),_0x49f6d4=(_0x5c1e20=_0x342702[_0x33ed89(0x287)]())!=null?_0x5c1e20:[],_0xaeb166=_0x49f6d4==null?void 0x0:_0x49f6d4['map'](_0x2646e0);if(_0xaeb166[_0x33ed89(0x2c6)]===0x0)return;const _0x37e9e6=[{'id':_0x33ed89(0x152),'params':{'unitId':_0x3cd0a2['unitID'],'actions':null,'textRanges':_0xaeb166}}],_0x12f21a=this['_transformService'][_0x33ed89(0x3bd)](_0x3cd0a2,_0x37e9e6);if(!_0x5a8972(_0x12f21a))throw _0x12f21a[_0x33ed89(0x24d)];const _0x1a4ca7=_0x12f21a['m2Prime'][0x0]['params'][_0x33ed89(0x302)];Array['isArray'](_0x1a4ca7)&&_0x1a4ca7[_0x33ed89(0x2c6)]&&_0x342702[_0x33ed89(0x139)](_0x1a4ca7,!0x1);}};ke=An([Jt(0x0,_0x4a7404(_0x44b6b8)),Jt(0x1,_0x425e9b)],ke);function Ds(_0x17017c){const _0x3ee394=_0x51fc53;let _0x229727='';for(const _0x36b906 of _0x17017c){const {startOffset:_0x3519d1,endOffset:_0x605cf3,isActive:_0x2d623d}=_0x36b906;_0x229727[_0x3ee394(0x2c6)]&&(_0x229727+=','),_0x229727+=_0x3519d1+':'+_0x605cf3+':'+(_0x2d623d?'1':'0');}return _0x229727;}function yn(_0x326d52){const _0xe03a6a=_0x51fc53,_0x58a7f9=_0x326d52['split'](','),_0x370780=[];for(const _0x1decca of _0x58a7f9){const [_0x1a3ad3,_0x3a33e0,_0x1fceec]=_0x1decca[_0xe03a6a(0x103)](':');_0x370780[_0xe03a6a(0x19d)]({'startOffset':Number(_0x1a3ad3),'endOffset':Number(_0x3a33e0),'collapsed':_0x1a3ad3===_0x3a33e0,'isActive':_0x1fceec==='1'});}return _0x370780[_0xe03a6a(0x142)](_0x1ad813=>_0x1ad813['isActive'])||(_0x370780[0x0]['isActive']=!0x0),_0x370780;}class Mt extends _0x521c86{constructor(){const _0x37c41e=_0x51fc53;super(...arguments),l(this,'_collabCursorState$',new _0x5d7d96(null)),l(this,_0x37c41e(0x318),this['_collabCursorState$']['asObservable']());}[_0x51fc53(0x1b7)](_0xc92d27){const _0x4cb7c2=_0x51fc53,{unitID:_0x4c5bbd,memberID:_0x5c0e5d,textRanges:_0x3f6bea}=_0xc92d27,_0x48a16e=Ds(_0x3f6bea),_0x33a97f={'unitID':_0x4c5bbd,'memberID':_0x5c0e5d,'selection':_0x48a16e};this['_collabCursorState$'][_0x4cb7c2(0x275)](_0x33a97f);}}var Un=Object['defineProperty'],Ln=Object[_0x51fc53(0x340)],$n=(_0x7a8adb,_0xcb8aae,_0x1d44f9,_0x5ad8b0)=>{for(var _0x4ef787=_0x5ad8b0>0x1?void 0x0:_0x5ad8b0?Ln(_0xcb8aae,_0x1d44f9):_0xcb8aae,_0xa23060=_0x7a8adb['length']-0x1,_0x2a1bf3;_0xa23060>=0x0;_0xa23060--)(_0x2a1bf3=_0x7a8adb[_0xa23060])&&(_0x4ef787=(_0x5ad8b0?_0x2a1bf3(_0xcb8aae,_0x1d44f9,_0x4ef787):_0x2a1bf3(_0x4ef787))||_0x4ef787);return _0x5ad8b0&&_0x4ef787&&Un(_0xcb8aae,_0x1d44f9,_0x4ef787),_0x4ef787;},zt=(_0x1a2c06,_0x40049e)=>(_0x21259b,_0x5715c6)=>_0x40049e(_0x21259b,_0x5715c6,_0x1a2c06);let Ve=class{constructor(_0x6f73d7,_0x31a3ec){const _0x393549=_0x51fc53;this[_0x393549(0x342)]=_0x6f73d7,this[_0x393549(0x102)]=_0x31a3ec;}['transformSelections'](_0x172c0a){const _0x5c4a95=_0x51fc53;var _0x1a8411,_0x4ce5e8,_0xaf891c,_0x226827;const _0x34f67d=this['_injector'][_0x5c4a95(0x151)](_0x5c112f),{pluginName:_0x1dd79c,unitId:_0x49526d,sheetId:_0x3c9017}=_0x34f67d[_0x5c4a95(0x320)]()||{},_0x21db35=(_0x1a8411=_0x34f67d[_0x5c4a95(0x287)]())!=null?_0x1a8411:[];if(_0x21db35[_0x5c4a95(0x2c6)]===0x0||!_0x1dd79c||!_0x49526d||!_0x3c9017)return;const _0x5d0210=[{'id':_0x2708b7['id'],'params':{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x4cfbd7[_0x5c4a95(0x183)](_0x21db35)}}],_0x58759b=this[_0x5c4a95(0x102)][_0x5c4a95(0x3bd)](_0x172c0a,_0x5d0210);if(!_0x5a8972(_0x58759b))throw _0x58759b['error'];const _0x29ce31=(_0x226827=(_0xaf891c=(_0x4ce5e8=_0x58759b['m2Prime'][0x0])==null?void 0x0:_0x4ce5e8[_0x5c4a95(0x1c8)])==null?void 0x0:_0xaf891c[_0x5c4a95(0xf3)])!=null?_0x226827:_0x21db35;Array[_0x5c4a95(0x34e)](_0x29ce31)&&_0x29ce31['length']&&this[_0x5c4a95(0x342)][_0x5c4a95(0x151)](_0x568418)[_0x5c4a95(0xaa)](_0x2708b7['id'],{'unitId':_0x49526d,'subUnitId':_0x3c9017,'pluginName':_0x1dd79c,'selections':_0x29ce31});}};Ve=$n([zt(0x0,_0x4a7404(_0x44b6b8)),zt(0x1,_0x425e9b)],Ve);const jn=new Set([_0x75b52d['id']]);function Hn(_0xee69da,_0x609f36,_0x276c32,_0x1ae9bb,_0x386944){const _0x48fff9=_0x51fc53;var _0xa2c052,_0x1491c0,_0x813fa1,_0x25d687;const _0x2f6267=[];for(const _0x27d4bb of _0xee69da)if(jn[_0x48fff9(0x16c)](_0x27d4bb['id'])){if(_0x2f6267[_0x48fff9(0x2c6)]>0x0)break;_0x2f6267['push'](_0x27d4bb);break;}else _0x2f6267[_0x48fff9(0x19d)](_0x27d4bb);const _0x265215=(_0x1491c0=(_0xa2c052=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0xa2c052[_0x48fff9(0x1ea)])!=null?_0x1491c0:_0x48fff9(0x1ed),_0x4ff4f4=(_0x25d687=(_0x813fa1=_0x386944[_0x48fff9(0x328)]())==null?void 0x0:_0x813fa1[_0x48fff9(0x2ae)])!=null?_0x25d687:_0x48fff9(0x1ed);return{'changeset':{'unitID':_0x609f36,'type':_0x23bb45(_0x276c32['getUnitType'](_0x609f36)),'baseRev':_0x1ae9bb[_0x48fff9(0x2f1)](_0x609f36),'revision':0x0,'userID':_0x265215,'memberID':_0x4ff4f4,'mutations':_0x2f6267},'pendingMutations':_0xee69da[_0x48fff9(0x39d)](_0x2f6267[_0x48fff9(0x2c6)])};}function xn(_0x16afcb,_0x2058c8,_0x2b750a,_0x537a1a,_0x59ba1d){const _0x230af8=_0x51fc53;var _0x266713,_0x2f2171,_0x464a27,_0x1a8523;const _0x28b895=[_0x16afcb['reduce']((_0x34db57,_0x3d6063)=>{const _0x6849f6=_0x5e69;var _0x1d84cc;const {id:_0xe47810}=_0x34db57,{id:_0x43bb00,type:_0x1437bf}=_0x3d6063,_0x56de3b=(_0x1d84cc=_0x34db57[_0x6849f6(0x1c8)])!=null?_0x1d84cc:{'actions':null},_0x6cb9b9=_0x3d6063[_0x6849f6(0x1c8)];if(_0xe47810&&_0xe47810!==_0x43bb00)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xe47810+_0x6849f6(0x2b3)+_0x43bb00+'.');return{..._0x34db57,'id':_0x43bb00,'type':_0x1437bf,'params':{'unitId':_0x6cb9b9['unitId'],'textRanges':_0x6cb9b9[_0x6849f6(0x302)],'actions':_0xe185f6['compose'](_0x56de3b[_0x6849f6(0x19c)],_0x6cb9b9[_0x6849f6(0x19c)])}};},{})],_0x4fefa4=(_0x2f2171=(_0x266713=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x266713[_0x230af8(0x1ea)])!=null?_0x2f2171:_0x230af8(0x1ed),_0x5af5b4=(_0x1a8523=(_0x464a27=_0x59ba1d[_0x230af8(0x328)]())==null?void 0x0:_0x464a27[_0x230af8(0x2ae)])!=null?_0x1a8523:'unknown';return{'changeset':{'unitID':_0x2058c8,'type':_0x23bb45(_0x2b750a[_0x230af8(0x3b6)](_0x2058c8)),'baseRev':_0x537a1a[_0x230af8(0x2f1)](_0x2058c8),'revision':0x0,'userID':_0x4fefa4,'memberID':_0x5af5b4,'mutations':_0x28b895},'pendingMutations':[]};}var Fn=Object[_0x51fc53(0x18f)],Bn=Object[_0x51fc53(0x340)],ne=(_0x409c80,_0x4ba946,_0x46bbc2,_0x393195)=>{for(var _0x13b711=_0x393195>0x1?void 0x0:_0x393195?Bn(_0x4ba946,_0x46bbc2):_0x4ba946,_0xdf54a3=_0x409c80['length']-0x1,_0x456d6f;_0xdf54a3>=0x0;_0xdf54a3--)(_0x456d6f=_0x409c80[_0xdf54a3])&&(_0x13b711=(_0x393195?_0x456d6f(_0x4ba946,_0x46bbc2,_0x13b711):_0x456d6f(_0x13b711))||_0x13b711);return _0x393195&&_0x13b711&&Fn(_0x4ba946,_0x46bbc2,_0x13b711),_0x13b711;},g=(_0x4c5a63,_0x260f70)=>(_0x4485f3,_0x382513)=>_0x260f70(_0x4485f3,_0x382513,_0x4c5a63),P=(_0x18d067=>(_0x18d067[_0x51fc53(0xeb)]=_0x51fc53(0x20a),_0x18d067[_0x51fc53(0xe4)]=_0x51fc53(0x388),_0x18d067['PENDING']=_0x51fc53(0xdd),_0x18d067[_0x51fc53(0x180)]=_0x51fc53(0x361),_0x18d067[_0x51fc53(0x1a2)]='awaiting_with_pending',_0x18d067['FETCH_MISS']=_0x51fc53(0x143),_0x18d067[_0x51fc53(0x20f)]=_0x51fc53(0xcb),_0x18d067[_0x51fc53(0x319)]='offline',_0x18d067))(P||{});class re{constructor(_0x766915,_0x1b62cd,_0x583917,_0x2b9efc,_0x29b4b6,_0x147355,_0x3e3169,_0x4b6189,_0x6fb4ab){const _0x3ad224=_0x51fc53;l(this,_0x3ad224(0x393),null),l(this,_0x3ad224(0x1e4),[]),(this[_0x3ad224(0x1b1)]=_0x766915,this[_0x3ad224(0x2cd)]=_0x1b62cd,this[_0x3ad224(0x310)]=_0x29b4b6,this[_0x3ad224(0x113)]=_0x147355,this[_0x3ad224(0x1bc)]=_0x3e3169,this[_0x3ad224(0x2f2)]=_0x4b6189,this[_0x3ad224(0x284)]=_0x6fb4ab,this[_0x3ad224(0x393)]=_0x583917,this[_0x3ad224(0x1e4)]=_0x2b9efc);}[_0x51fc53(0x1e8)](_0x53440a){const _0x254257=_0x51fc53,_0x204f8c=this[_0x254257(0x2f2)][_0x254257(0x2f1)](this['unitID']);return _0x53440a[_0x254257(0xaf)]>_0x204f8c+0x1?(this[_0x254257(0x310)][_0x254257(0x12d)]({'from':_0x204f8c,'to':_0x53440a[_0x254257(0xaf)]-0x1}),!0x0):!0x1;}[_0x51fc53(0x243)](_0x16ef5b){const _0x121481=_0x51fc53;this[_0x121481(0x1bc)]['transformUndoRedo'](this['unitID'],_0x16ef5b);}[_0x51fc53(0x2f8)](_0x785818){const _0x36107a=_0x51fc53;var _0x2ea8b8,_0x2b62e0;(_0x2b62e0=(_0x2ea8b8=this['_handler'])[_0x36107a(0x2ef)])==null||_0x2b62e0[_0x36107a(0x185)](_0x2ea8b8,_0x785818);}[_0x51fc53(0x1be)](_0xe0237b){const _0x1d1269=_0x51fc53;var _0xd9f6a3,_0x265bdc;return(_0x265bdc=(_0xd9f6a3=this[_0x1d1269(0x310)])[_0x1d1269(0x370)])==null?void 0x0:_0x265bdc[_0x1d1269(0x185)](_0xd9f6a3,_0xe0237b);}['_transformRemoteChangesetByIMECache'](_0xfe9400){const _0x12a99b=_0x51fc53;var _0x36a775,_0x2b5588,_0x39c9dd;return(_0x39c9dd=(_0x2b5588=(_0x36a775=this[_0x12a99b(0x310)])[_0x12a99b(0x314)])==null?void 0x0:_0x2b5588[_0x12a99b(0x185)](_0x36a775,_0xfe9400))!=null?_0x39c9dd:_0xfe9400;}[_0x51fc53(0x16d)](_0x54c5c4){const _0xb3eeee=_0x51fc53;var _0x1bdc49,_0xba77b0;if(this[_0xb3eeee(0x2cd)]===H[_0xb3eeee(0x32c)]){const {unitID:_0x3b9d97,mutations:_0x54aa5e,memberID:_0x30db9b}=_0x54c5c4,_0x26dffc=_0x54aa5e[0x0][_0xb3eeee(0x1c8)][_0xb3eeee(0x302)];Array['isArray'](_0x26dffc)&&_0x26dffc[_0xb3eeee(0x2c6)]>0x0&&((_0xba77b0=(_0x1bdc49=this['_handler'])[_0xb3eeee(0x126)])==null||_0xba77b0[_0xb3eeee(0x185)](_0x1bdc49,{'unitID':_0x3b9d97,'memberID':_0x30db9b,'textRanges':_0x26dffc}));}}[_0x51fc53(0x303)](){const _0x4716e2=_0x51fc53;this[_0x4716e2(0x284)][_0x4716e2(0x256)](this['unitID'],this[_0x4716e2(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x51fc53(0x161)](){const _0xf35fa8=_0x51fc53;return this[_0xf35fa8(0x2f2)]['getCurrentRevForDocument'](this[_0xf35fa8(0x1b1)]);}[_0x51fc53(0x3a5)](){const _0x154262=_0x51fc53;this[_0x154262(0x2f2)][_0x154262(0x358)](this[_0x154262(0x1b1)]);}['_executeRemoteChangeset'](_0x365ec3){const _0x14c38=_0x51fc53;var _0x446ce8;const _0xbb0777=this[_0x14c38(0x352)](_0x365ec3),_0x213e31=_0x4bf5fd(_0xbb0777[_0x14c38(0xc7)],this[_0x14c38(0x113)],{'fromCollab':!0x0});if(!_0x213e31['result'])throw _0x213e31[_0x14c38(0x24d)]instanceof Error?_0x213e31[_0x14c38(0x24d)]:new Error((_0x446ce8=_0x213e31[_0x14c38(0x24d)])!=null?_0x446ce8:_0x14c38(0x296));this[_0x14c38(0x1be)](_0xbb0777),this['_transformUndoredo'](_0x365ec3),this[_0x14c38(0x2f8)](_0xbb0777),this[_0x14c38(0x16d)](_0xbb0777),this[_0x14c38(0x3a5)]();}}let Te=class extends re{constructor(_0x42391d,_0x1cb562,_0x2abd49,_0x203f07,_0x4b67f0,_0x38b59b,_0x593d29,_0x12b8a5,_0x11bb7d){const _0x2c2323=_0x51fc53;super(_0x42391d,_0x1cb562,null,[],_0x2abd49,_0x12b8a5,_0x593d29,_0x203f07,_0x4b67f0),l(this,_0x2c2323(0x253),_0x2c2323(0x388)),(this[_0x2c2323(0x342)]=_0x38b59b,this[_0x2c2323(0x37c)]=_0x11bb7d);}['appendMutation'](_0x48c299){const _0x36d2c7=_0x51fc53,_0x39fdea=this[_0x36d2c7(0x342)][_0x36d2c7(0x3ba)](k,this['unitID'],this[_0x36d2c7(0x2cd)],[_0x48c299],this['_handler']);return _0x39fdea[_0x36d2c7(0x158)](),_0x39fdea[_0x36d2c7(0x303)](),_0x39fdea;}[_0x51fc53(0x379)](_0x5d0ebc){const _0x196053=_0x51fc53;if(this['_checkMissing'](_0x5d0ebc))return this[_0x196053(0x342)][_0x196053(0x3ba)](W,this[_0x196053(0x1b1)],this[_0x196053(0x2cd)],null,[],null,[_0x5d0ebc],this[_0x196053(0x310)]);try{return this['_executeRemoteChangeset'](_0x5d0ebc),this;}catch(_0x4db34e){return this[_0x196053(0x37c)]['error'](_0x196053(0x32e),_0x4db34e),this;}}[_0x51fc53(0x2a6)](){const _0x104c09=_0x51fc53;throw new Error(_0x104c09(0x9a));}[_0x51fc53(0x1ca)](){const _0x12f907=_0x51fc53;throw new Error(_0x12f907(0x2c1));}['toggleOffline'](){const _0xcb96b0=_0x51fc53;return this['_injector'][_0xcb96b0(0x3ba)](J,this[_0xcb96b0(0x1b1)],this[_0xcb96b0(0x2cd)],null,[],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x48711b=_0x51fc53;throw new Error(_0x48711b(0x3bb));}};Te=ne([g(0x3,_0x4a7404(_0x4d36b1)),g(0x4,_0x4a7404(D)),g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x5815e0),g(0x7,_0x568418),g(0x8,_0x3cb271)],Te);let k=class extends re{constructor(_0x17461f,_0x4eb8d0,_0x268498,_0x4baa6c,_0x5ecb8d,_0x3930bc,_0x4c3dfa,_0x215338,_0x4d1a2b,_0x3e5f2a,_0x10b2af,_0x347cd7,_0x37f11c,_0x1e36ea){const _0x1f76dc=_0x51fc53;super(_0x17461f,_0x4eb8d0,null,_0x268498,_0x4baa6c,_0x3e5f2a,_0x1e36ea,_0x3930bc,_0x4c3dfa),l(this,'status',_0x1f76dc(0xdd)),l(this,_0x1f76dc(0xca),null),l(this,_0x1f76dc(0x90),null),(this[_0x1f76dc(0x342)]=_0x5ecb8d,this['_memberService']=_0x215338,this['_logService']=_0x4d1a2b,this['_configService']=_0x10b2af,this[_0x1f76dc(0x102)]=_0x347cd7,this[_0x1f76dc(0xa0)]=_0x37f11c);}[_0x51fc53(0x347)](_0x392744){const _0x56620a=_0x51fc53;return this[_0x56620a(0x1e4)]['push'](_0x392744),this[_0x56620a(0x303)](),this;}[_0x51fc53(0x379)](_0x1aa55d){const _0x2cd8bb=_0x51fc53;if(this['_checkMissing'](_0x1aa55d))return this[_0x2cd8bb(0x16f)](),this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](W,this[_0x2cd8bb(0x1b1)],this[_0x2cd8bb(0x2cd)],null,this['_pendingMutations'],null,[_0x1aa55d],this[_0x2cd8bb(0x310)]);try{const _0x2fb56d=this['_transformService'][_0x2cd8bb(0x3bd)](_0x1aa55d,this['_pendingMutations']);if(_0x5a8972(_0x2fb56d)){const {c1Prime:_0x2c0285,m2Prime:_0xbc9b44}=_0x2fb56d;this[_0x2cd8bb(0x83)](_0x2c0285);const _0x19731f=this[_0x2cd8bb(0x342)][_0x2cd8bb(0x3ba)](k,this['unitID'],this[_0x2cd8bb(0x2cd)],_0xbc9b44,this['_handler']);return this[_0x2cd8bb(0x16f)](),_0x19731f[_0x2cd8bb(0x158)](this[_0x2cd8bb(0xca)]?Math[_0x2cd8bb(0x216)](0x0,new Date()[_0x2cd8bb(0x15d)]()-this[_0x2cd8bb(0xca)]):this[_0x2cd8bb(0x2c0)]()),_0x19731f;}throw _0x2fb56d[_0x2cd8bb(0x24d)];}catch(_0x458c51){return this[_0x2cd8bb(0x37c)][_0x2cd8bb(0x24d)](_0x458c51),this[_0x2cd8bb(0x31c)](!0x1);}}['onRemoteAck'](){const _0x333574=_0x51fc53;throw new Error(_0x333574(0x382));}['onRemoteRej'](){const _0x3058e1=_0x51fc53;throw new Error(_0x3058e1(0xe3));}[_0x51fc53(0x178)](){const _0x2b9f7a=_0x51fc53;return this[_0x2b9f7a(0x16f)](),this[_0x2b9f7a(0x342)][_0x2b9f7a(0x3ba)](J,this[_0x2b9f7a(0x1b1)],this[_0x2b9f7a(0x2cd)],null,this[_0x2b9f7a(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x158)](_0x3b95f9){const _0x58ae07=_0x51fc53;_0x3b95f9=_0x3b95f9!=null?_0x3b95f9:this['_getSendChangesetTimeout'](),this[_0x58ae07(0xca)]=new Date()[_0x58ae07(0x15d)](),this[_0x58ae07(0x90)]=setTimeout(()=>{const _0x15fc1b=_0x58ae07;this['_clearScheduledTask']();let _0x3d5bac=null;switch(this['type']){case H[_0x15fc1b(0x351)]:{_0x3d5bac=Hn(this[_0x15fc1b(0x1e4)],this['unitID'],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this[_0x15fc1b(0x12b)]);break;}case H[_0x15fc1b(0x32c)]:{_0x3d5bac=xn(this[_0x15fc1b(0x1e4)],this[_0x15fc1b(0x1b1)],this[_0x15fc1b(0xa0)],this[_0x15fc1b(0x2f2)],this['_memberService']);break;}default:throw new Error(_0x15fc1b(0x131)+this[_0x15fc1b(0x2cd)]+'\x20in\x20_schedule.');}const {changeset:_0x50ffe0,pendingMutations:_0x25c013}=_0x3d5bac;this[_0x15fc1b(0x310)][_0x15fc1b(0x36c)](_0x50ffe0);const _0x55a26d=_0x25c013[_0x15fc1b(0x2c6)]?this['_injector'][_0x15fc1b(0x3ba)](V,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,_0x25c013,this['_handler']):this['_injector'][_0x15fc1b(0x3ba)](X,this[_0x15fc1b(0x1b1)],this['type'],_0x50ffe0,this[_0x15fc1b(0x310)]);_0x55a26d[_0x15fc1b(0x303)](),this[_0x15fc1b(0x310)][_0x15fc1b(0x356)](this,_0x55a26d);},_0x3b95f9);}[_0x51fc53(0x2c0)](){const _0x5f4ff9=_0x51fc53;var _0x42de14;return(_0x42de14=this[_0x5f4ff9(0x2c4)][_0x5f4ff9(0xf0)](Xi))!=null?_0x42de14:Ji;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x51fc53(0x16f)](){const _0x3d9928=_0x51fc53;this[_0x3d9928(0x90)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x51fc53(0x31c)](_0x3bce27){const _0x5281db=_0x51fc53;return this[_0x5281db(0x16f)](),this[_0x5281db(0x342)]['createInstance'](te,this[_0x5281db(0x1b1)],this[_0x5281db(0x2cd)],null,this[_0x5281db(0x1e4)],this['_handler'],_0x3bce27);}};k=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x4a7404(ee)),g(0x8,_0x3cb271),g(0x9,_0x568418),g(0xa,_0x5977ca),g(0xb,_0x425e9b),g(0xc,_0x373907),g(0xd,_0x5815e0)],k);let X=class extends re{constructor(_0x43166f,_0x4e937d,_0x4a67cd,_0x38aaac,_0x45dd49,_0xaf4e62,_0x2cdb63,_0x126f63,_0x2df3db,_0x215e17,_0x25805b){const _0x4853c8=_0x51fc53;super(_0x43166f,_0x4e937d,_0x4a67cd,[],_0x38aaac,_0x126f63,_0x25805b,_0xaf4e62,_0x2cdb63),l(this,'status',_0x4853c8(0x361)),(this['_injector']=_0x45dd49,this[_0x4853c8(0x37c)]=_0x2df3db,this['_transformService']=_0x215e17);}['appendMutation'](_0x65515c){const _0x452c1c=_0x51fc53,_0x2b1ab7=this[_0x452c1c(0x342)][_0x452c1c(0x3ba)](V,this['unitID'],this['type'],this[_0x452c1c(0x393)],[_0x65515c],this[_0x452c1c(0x310)]);return _0x2b1ab7[_0x452c1c(0x303)](),_0x2b1ab7;}['onRemoteChangeset'](_0x1dfbf0){const _0x48355b=_0x51fc53;if(this[_0x48355b(0x1e8)](_0x1dfbf0))return this[_0x48355b(0x342)][_0x48355b(0x3ba)](W,this['unitID'],this[_0x48355b(0x2cd)],this[_0x48355b(0x393)],[],null,[_0x1dfbf0],this[_0x48355b(0x310)]);try{const _0x5c6b68=this[_0x48355b(0x102)]['transformChangesets']([_0x1dfbf0],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x5c6b68)){const {c1Prime:_0x427238,c2Prime:_0x3f66ef}=_0x5c6b68;this[_0x48355b(0x83)](_0x427238[0x0]),_0x3f66ef[0x0][_0x48355b(0x306)]=this[_0x48355b(0x161)]();const _0x184ed8=this[_0x48355b(0x342)][_0x48355b(0x3ba)](X,this['unitID'],this[_0x48355b(0x2cd)],_0x3f66ef[0x0],this[_0x48355b(0x310)]);return _0x184ed8[_0x48355b(0x303)](),_0x184ed8;}return this[_0x48355b(0x31c)](!0x1);}catch(_0x5645b7){return this[_0x48355b(0x37c)][_0x48355b(0x24d)](_0x5645b7),this[_0x48355b(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x180d91){const _0x152522=_0x51fc53,_0x25b94e=this[_0x152522(0x2f2)]['getCurrentRevForDocument'](this[_0x152522(0x1b1)]);if(_0x180d91[_0x152522(0xaf)]<_0x25b94e-0x1)return this;if(this[_0x152522(0x1e8)](_0x180d91))return this[_0x152522(0x342)][_0x152522(0x3ba)](W,this['unitID'],this[_0x152522(0x2cd)],null,[],this[_0x152522(0x393)],[],this[_0x152522(0x310)]);this[_0x152522(0x3a5)]();const _0x5ace1e=this['_injector'][_0x152522(0x3ba)](Te,this[_0x152522(0x1b1)],this['type'],this[_0x152522(0x310)]);return _0x5ace1e[_0x152522(0x303)](),_0x5ace1e;}[_0x51fc53(0x1ca)](_0x5aa84f){const _0xf9b54f=_0x51fc53;return this['_onConflict'](!!(_0x5aa84f!=null&&_0x5aa84f[_0xf9b54f(0x2d5)]));}[_0x51fc53(0x178)](){const _0x3de89e=_0x51fc53;return this[_0x3de89e(0x342)][_0x3de89e(0x3ba)](J,this[_0x3de89e(0x1b1)],this['type'],this[_0x3de89e(0x393)],[],this[_0x3de89e(0x310)]);}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x3cd03a=_0x51fc53;this[_0x3cd03a(0x310)][_0x3cd03a(0x36c)](this[_0x3cd03a(0x393)]);}['_onConflict'](_0x261c93){const _0x411518=_0x51fc53;return this[_0x411518(0x342)]['createInstance'](te,this['unitID'],this[_0x411518(0x2cd)],this['_awaitingChangeset'],[],this[_0x411518(0x310)],_0x261c93);}};X=ne([g(0x4,_0x4a7404(_0x44b6b8)),g(0x5,_0x4a7404(_0x4d36b1)),g(0x6,_0x4a7404(D)),g(0x7,_0x568418),g(0x8,_0x3cb271),g(0x9,_0x425e9b),g(0xa,_0x5815e0)],X);let V=class extends re{constructor(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x2ebab4,_0x498cdc,_0x395e61,_0x254117,_0xa54aa2,_0x4f6574,_0x3ebfc8){const _0x3eec32=_0x51fc53;super(_0x33b412,_0x5771d4,_0x579b7f,_0x1ed133,_0x2dc007,_0x254117,_0x3ebfc8,_0x498cdc,_0x395e61),l(this,_0x3eec32(0x253),_0x3eec32(0xb5)),(this[_0x3eec32(0x342)]=_0x2ebab4,this['_logService']=_0xa54aa2,this['_transformService']=_0x4f6574);}[_0x51fc53(0x347)](_0x2de94b){const _0x4603aa=_0x51fc53;return this[_0x4603aa(0x1e4)]['push'](_0x2de94b),this;}['onRemoteChangeset'](_0x491296){const _0x3da192=_0x51fc53;if(this[_0x3da192(0x1e8)](_0x491296))return this[_0x3da192(0x342)][_0x3da192(0x3ba)](W,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],this['_awaitingChangeset'],this[_0x3da192(0x1e4)],null,[_0x491296],this[_0x3da192(0x310)]);try{const _0x569b49=this[_0x3da192(0x102)][_0x3da192(0x21c)]([_0x491296],[this['_awaitingChangeset']],!0x1);if(_0x4b3216(_0x569b49)){const {c1Prime:_0x2d71ba,c2Prime:_0x20c268}=_0x569b49,_0x1772d9=this[_0x3da192(0x102)][_0x3da192(0x3bd)](_0x2d71ba[0x0],this[_0x3da192(0x1e4)]);if(_0x5a8972(_0x1772d9)){const {c1Prime:_0x494a5c,m2Prime:_0xd8e518}=_0x1772d9;return this[_0x3da192(0x83)](_0x494a5c),_0x20c268[0x0][_0x3da192(0x306)]=this[_0x3da192(0x161)](),this[_0x3da192(0x342)][_0x3da192(0x3ba)](V,this[_0x3da192(0x1b1)],this[_0x3da192(0x2cd)],_0x20c268[0x0],_0xd8e518,this[_0x3da192(0x310)]);}throw _0x1772d9[_0x3da192(0x24d)];}throw _0x569b49['error'];}catch(_0x3035b5){return this[_0x3da192(0x37c)][_0x3da192(0x24d)](_0x3035b5),this[_0x3da192(0x31c)](!0x1);}}[_0x51fc53(0x2a6)](_0x2ca0d1){const _0x1e878f=_0x51fc53;if(this[_0x1e878f(0x1e8)](_0x2ca0d1))return this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](W,this[_0x1e878f(0x1b1)],this[_0x1e878f(0x2cd)],null,this[_0x1e878f(0x1e4)],this[_0x1e878f(0x393)],[],this['_handler']);this[_0x1e878f(0x3a5)]();const _0x39845d=this[_0x1e878f(0x342)][_0x1e878f(0x3ba)](k,this[_0x1e878f(0x1b1)],this['type'],this[_0x1e878f(0x1e4)],this['_handler']);return _0x39845d[_0x1e878f(0x158)](),_0x39845d[_0x1e878f(0x303)](),_0x39845d;}[_0x51fc53(0x1ca)](_0x3a499c){const _0x22fa60=_0x51fc53;return this['_onConflict'](!!(_0x3a499c!=null&&_0x3a499c[_0x22fa60(0x2d5)]));}[_0x51fc53(0x178)](){const _0x425e3c=_0x51fc53;return this['_injector'][_0x425e3c(0x3ba)](J,this[_0x425e3c(0x1b1)],this[_0x425e3c(0x2cd)],this[_0x425e3c(0x393)],this[_0x425e3c(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x197)](){const _0x3075f3=_0x51fc53;this[_0x3075f3(0x310)][_0x3075f3(0x36c)](this[_0x3075f3(0x393)]);}[_0x51fc53(0x31c)](_0x3cd73e){const _0xe7b5a4=_0x51fc53;return this[_0xe7b5a4(0x342)][_0xe7b5a4(0x3ba)](te,this[_0xe7b5a4(0x1b1)],this[_0xe7b5a4(0x2cd)],null,this['_pendingMutations'],this[_0xe7b5a4(0x310)],_0x3cd73e);}};V=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x3cb271),g(0xa,_0x425e9b),g(0xb,_0x5815e0)],V);let te=class extends re{constructor(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x1a9594=!0x1,_0x3e27c5,_0x2eadc2,_0xd06a45,_0x422384,_0x40aaf2,_0x4e73a7,_0x40ecac){const _0x7fe423=_0x51fc53;super(_0x5b9f1e,_0x1b45eb,_0x37e8d7,_0x4c5b9d,_0x1c68f8,_0x2eadc2,_0xd06a45,_0x40aaf2,_0x422384),l(this,'status',_0x7fe423(0xcb)),(this[_0x7fe423(0x293)]=_0x1a9594,this[_0x7fe423(0xa5)]=_0x3e27c5,this[_0x7fe423(0x344)]=_0x4e73a7,this[_0x7fe423(0x2e1)]=_0x40ecac,this['_showConflictNotification'](),this[_0x7fe423(0x95)](),this[_0x7fe423(0x309)]());}[_0x51fc53(0x347)](){return this;}[_0x51fc53(0x379)](){return this;}[_0x51fc53(0x2a6)](){return this;}[_0x51fc53(0x1ca)](){return this;}[_0x51fc53(0x178)](){return this;}[_0x51fc53(0x338)](){return this;}['resend'](){const _0x545401=_0x51fc53;throw new Error(_0x545401(0xf8));}[_0x51fc53(0x95)](){const _0x5e14ef=_0x51fc53;this[_0x5e14ef(0x284)][_0x5e14ef(0x256)](this[_0x5e14ef(0x1b1)],this[_0x5e14ef(0x2cd)],null,[]);}['_showConflictNotification'](){const _0x35e70a=_0x51fc53;this[_0x35e70a(0x293)]?this[_0x35e70a(0x2e1)][_0x35e70a(0x25c)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x272)),'type':_0x35e70a(0x24d),'duration':0x0}):this['_notificationService'][_0x35e70a(0x25c)]({'title':this[_0x35e70a(0x344)]['t'](_0x35e70a(0x2e4)),'content':this['_localeService']['t'](_0x35e70a(0x257)),'type':_0x35e70a(0x24d),'duration':0x0});}[_0x51fc53(0x309)](){const _0x248c15=_0x51fc53;this[_0x248c15(0xa5)][_0x248c15(0x1f6)](new _0x4b6c4e(this['unitID'])['id'],!0x1);}};te=ne([g(0x6,_0x4a7404(_0x57bd86)),g(0x7,_0x568418),g(0x8,_0x5815e0),g(0x9,_0x4a7404(D)),g(0xa,_0x4a7404(_0x4d36b1)),g(0xb,_0x4a7404(_0x201091)),g(0xc,_0x3c139b)],te);let J=class extends re{constructor(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x1518bb,_0x4fb248,_0x554b18,_0x5a8840,_0x3759b0){const _0x29739c=_0x51fc53;super(_0xac715,_0x47b453,_0xd77c4,_0x1c581c,_0x221ccb,_0x5a8840,_0x3759b0,_0x4fb248,_0x554b18),l(this,'status',_0x29739c(0x2fb)),this[_0x29739c(0x342)]=_0x1518bb;}['appendMutation'](_0x244ca9){const _0x162fd1=_0x51fc53;return this[_0x162fd1(0x1e4)][_0x162fd1(0x19d)](_0x244ca9),this[_0x162fd1(0x303)](),this;}[_0x51fc53(0x379)](_0x47beee){const _0x1814be=_0x51fc53;throw new Error(_0x1814be(0xf7));}[_0x51fc53(0x2a6)](){const _0x1d3ac0=_0x51fc53;throw new Error(_0x1d3ac0(0x134));}[_0x51fc53(0x1ca)](){const _0x46fe7c=_0x51fc53;throw new Error(_0x46fe7c(0x1aa));}['toggleOffline'](){return this;}[_0x51fc53(0x338)](){const _0x390e97=_0x51fc53,{_injector:_0x52b0c4,_pendingMutations:_0x25072b,_awaitingChangeset:_0x20455e,unitID:_0x5e8d03,_handler:_0xbd0199,type:_0x5ad599}=this,_0x44c8cb=ws(_0x52b0c4,_0x5e8d03,_0x5ad599,_0x20455e,_0x25072b,_0xbd0199);return _0x44c8cb instanceof k?_0x44c8cb[_0x390e97(0x158)]():(_0x44c8cb instanceof V||_0x44c8cb instanceof X)&&_0x44c8cb[_0x390e97(0x197)](),_0x44c8cb;}[_0x51fc53(0x197)](){const _0x242e90=_0x51fc53;throw new Error(_0x242e90(0x224));}};J=ne([g(0x5,_0x4a7404(_0x44b6b8)),g(0x6,_0x4a7404(_0x4d36b1)),g(0x7,_0x4a7404(D)),g(0x8,_0x568418),g(0x9,_0x5815e0)],J);let W=class extends re{constructor(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0xd04850,_0x8299f6,_0x408a19,_0x31b5c3,_0x4b53de,_0x31531,_0x57d064,_0x26e2d8,_0x2d1b51,_0x2782a1){const _0x1561fe=_0x51fc53;super(_0x1712b8,_0x1b284e,_0x51cc49,_0x329fe8,_0x408a19,_0x26e2d8,_0x2d1b51,_0x4b53de,_0x31531),l(this,'status',_0x1561fe(0x143)),(this[_0x1561fe(0x373)]=_0xd04850,this[_0x1561fe(0x38e)]=_0x8299f6,this[_0x1561fe(0x342)]=_0x31b5c3,this['_logService']=_0x57d064,this[_0x1561fe(0x102)]=_0x2782a1);}['onMissedChangesetFetched'](_0x5bbeb1){const _0x22323b=_0x51fc53;try{const _0x3d10ec=[..._0x5bbeb1,...this[_0x22323b(0x38e)]],_0x1b4607=[this[_0x22323b(0x393)]||this['_acknowledgedAwaitingChangeset']][_0x22323b(0x205)](_0x527786=>!!_0x527786);let _0x3b29cf,_0x144527;if(_0x1b4607[_0x22323b(0x2c6)]){const _0x5089ce=this[_0x22323b(0x102)][_0x22323b(0x21c)](_0x3d10ec,_0x1b4607,!0x1);if(!_0x4b3216(_0x5089ce))throw _0x5089ce['error'];_0x3b29cf=_0x5089ce[_0x22323b(0x3ab)],_0x144527=_0x5089ce['c2Prime'];}else _0x3b29cf=_0x3d10ec,_0x144527=[];let _0x19631a=this['_pendingMutations'];_0x3b29cf[_0x22323b(0x124)](_0x434f8f=>{const _0x420857=_0x22323b;let _0x5a7696;if(_0x19631a[_0x420857(0x2c6)]){const _0x5d312c=this[_0x420857(0x102)][_0x420857(0x3bd)](_0x434f8f,_0x19631a);if(!_0x5a8972(_0x5d312c))throw _0x5d312c[_0x420857(0x24d)];_0x5a7696=_0x5d312c[_0x420857(0x3ab)],_0x19631a=_0x5d312c[_0x420857(0x30f)];}else _0x5a7696=_0x434f8f;this[_0x420857(0x83)](_0x5a7696);}),this[_0x22323b(0x373)]&&this[_0x22323b(0x3a5)](),this[_0x22323b(0x393)]&&_0x144527[_0x22323b(0x2c6)]&&(_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision']());let _0x34f724;if(this[_0x22323b(0x393)]&&_0x19631a['length']!==0x0)_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](V,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],_0x19631a,this[_0x22323b(0x310)]);else{if(this['_awaitingChangeset']&&_0x19631a[_0x22323b(0x2c6)]===0x0)_0x144527[0x0][_0x22323b(0x306)]=this['_getCurrentRevision'](),_0x34f724=this[_0x22323b(0x342)][_0x22323b(0x3ba)](X,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],_0x144527[0x0],this[_0x22323b(0x310)]);else{if(_0x19631a[_0x22323b(0x2c6)]!==0x0){const _0xe94e8=this[_0x22323b(0x342)][_0x22323b(0x3ba)](k,this[_0x22323b(0x1b1)],this['type'],_0x19631a,this['_handler']);_0xe94e8[_0x22323b(0x158)](),_0x34f724=_0xe94e8;}else _0x34f724=this[_0x22323b(0x342)]['createInstance'](Te,this[_0x22323b(0x1b1)],this[_0x22323b(0x2cd)],this[_0x22323b(0x310)]);}}return _0x34f724[_0x22323b(0x303)](),_0x34f724;}catch(_0x5626cd){return this[_0x22323b(0x37c)][_0x22323b(0x24d)](_0x22323b(0x38d),_0x22323b(0x337),_0x5626cd),this[_0x22323b(0x342)][_0x22323b(0x3ba)](te,this['unitID'],this[_0x22323b(0x2cd)],this[_0x22323b(0x393)],this[_0x22323b(0x1e4)],this[_0x22323b(0x310)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x395d60){const _0x460094=_0x51fc53;return this[_0x460094(0x1e4)][_0x460094(0x19d)](_0x395d60),this;}[_0x51fc53(0x379)](_0x51730d){const _0x1d5ace=_0x51fc53;return this['_queuedRemoteChangesets'][_0x1d5ace(0x19d)](_0x51730d),this;}[_0x51fc53(0x2a6)](_0x386fb5){const _0x11de99=_0x51fc53;if(this[_0x11de99(0x393)])return this[_0x11de99(0x373)]=this['_awaitingChangeset'],this[_0x11de99(0x393)]=null,this;throw new Error(_0x11de99(0x2eb));}[_0x51fc53(0x1ca)](_0x3e24c6){const _0x51d9f6=_0x51fc53;return this[_0x51d9f6(0x31c)](!!(_0x3e24c6!=null&&_0x3e24c6['isPermissionRej']));}[_0x51fc53(0x178)](){const _0x3064d5=_0x51fc53;return this[_0x3064d5(0x342)][_0x3064d5(0x3ba)](J,this[_0x3064d5(0x1b1)],this['type'],this[_0x3064d5(0x393)],this[_0x3064d5(0x1e4)],this['_handler']);}[_0x51fc53(0x338)](){return this;}[_0x51fc53(0x31c)](_0x3bc574){const _0x4e9827=_0x51fc53;return this[_0x4e9827(0x342)]['createInstance'](te,this[_0x4e9827(0x1b1)],this[_0x4e9827(0x2cd)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x3bc574);}};W=ne([g(0x7,_0x4a7404(_0x44b6b8)),g(0x8,_0x4a7404(_0x4d36b1)),g(0x9,_0x4a7404(D)),g(0xa,_0x3cb271),g(0xb,_0x568418),g(0xc,_0x5815e0),g(0xd,_0x425e9b)],W);function ws(_0x588fc4,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676){const _0x1d0814=_0x51fc53;return _0x1a292d&&_0x552759[_0x1d0814(0x2c6)]?_0x588fc4[_0x1d0814(0x3ba)](V,_0x1b8dae,_0x538561,_0x1a292d,_0x552759,_0x54d676):_0x1a292d?_0x588fc4[_0x1d0814(0x3ba)](X,_0x1b8dae,_0x538561,_0x1a292d,_0x54d676):_0x552759[_0x1d0814(0x2c6)]?_0x588fc4['createInstance'](k,_0x1b8dae,_0x538561,_0x552759,_0x54d676):_0x588fc4[_0x1d0814(0x3ba)](Te,_0x1b8dae,_0x538561,_0x54d676);}var kn=Object[_0x51fc53(0x18f)],Vn=Object[_0x51fc53(0x340)],Je=(_0xcf5d72,_0x5f10c7,_0x2a3600,_0xd59185)=>{const _0x362a0f=_0x51fc53;for(var _0x418415=_0xd59185>0x1?void 0x0:_0xd59185?Vn(_0x5f10c7,_0x2a3600):_0x5f10c7,_0x1e804e=_0xcf5d72[_0x362a0f(0x2c6)]-0x1,_0x3c60fe;_0x1e804e>=0x0;_0x1e804e--)(_0x3c60fe=_0xcf5d72[_0x1e804e])&&(_0x418415=(_0xd59185?_0x3c60fe(_0x5f10c7,_0x2a3600,_0x418415):_0x3c60fe(_0x418415))||_0x418415);return _0xd59185&&_0x418415&&kn(_0x5f10c7,_0x2a3600,_0x418415),_0x418415;},S=(_0x54158f,_0x1ea78c)=>(_0x3a5bbe,_0x1b06f0)=>_0x1ea78c(_0x3a5bbe,_0x1b06f0,_0x54158f);let Ee=class extends _0x521c86{constructor(_0x4858bb,_0x136d11,_0x2d2c03){const _0x1515b7=_0x51fc53;super(),l(this,'_entities',new Map()),l(this,_0x1515b7(0x36b),new _0x5da41e()),(this[_0x1515b7(0x342)]=_0x4858bb,this[_0x1515b7(0x1b2)]=_0x136d11,this[_0x1515b7(0xa0)]=_0x2d2c03,this[_0x1515b7(0x380)]());}[_0x51fc53(0x232)](){const _0x625a8c=_0x51fc53;super[_0x625a8c(0x232)](),this[_0x625a8c(0x2a3)]['forEach'](_0xc7c1cc=>_0xc7c1cc['dispose']()),this['_entities'][_0x625a8c(0x362)]();}[_0x51fc53(0x179)](_0x1f1f5b){const _0x1cb938=_0x51fc53;var _0x276cde;return(_0x276cde=this[_0x1cb938(0x2a3)][_0x1cb938(0x151)](_0x1f1f5b))!=null?_0x276cde:null;}[_0x51fc53(0x3b0)](_0x317eec){const _0x2d9566=_0x51fc53,_0x5093cc=this[_0x2d9566(0x179)](_0x317eec);return _0x5093cc?_0xdadc8c(_0x5093cc):this['_entityInit$'][_0x2d9566(0x2c3)](_0x1b26e7(_0x20e91a=>_0x20e91a['unitID']===_0x317eec));}['_init'](){const _0x550356=_0x51fc53;this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec[_0x550356(0x351)])[_0x550356(0x2c3)](_0x1603a2(this['dispose$']),_0x54f844(0x10))[_0x550356(0x202)](async _0x5ca819=>{const _0x2d0389=_0x550356,_0x3fe74e=_0x5ca819['getUnitId'](),_0x3e7586=await this[_0x2d0389(0x223)](_0x3fe74e,H[_0x2d0389(0x351)]);this[_0x2d0389(0x2a3)][_0x2d0389(0x38f)](_0x3fe74e,_0x3e7586);}),this[_0x550356(0xa0)][_0x550356(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x550356(0x2c3)](_0x1603a2(this[_0x550356(0x200)]),_0x54f844(0x10))[_0x550356(0x2c3)](_0x1b26e7(_0x1c26ff=>!_0x1c26ff[_0x550356(0x244)]()[_0x550356(0x30e)]('__')))[_0x550356(0x202)](async _0x4f0c16=>{const _0x3ea925=_0x550356,_0x3289bf=_0x4f0c16[_0x3ea925(0x244)](),_0x27b24c=await this[_0x3ea925(0x223)](_0x3289bf,H[_0x3ea925(0x32c)]);this[_0x3ea925(0x2a3)][_0x3ea925(0x38f)](_0x3289bf,_0x27b24c);}),_0x124107(this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x351)]),this[_0x550356(0xa0)][_0x550356(0x280)](_0x3504ec[_0x550356(0x32c)]))[_0x550356(0x2c3)](_0x1603a2(this['dispose$']))[_0x550356(0x202)](_0x436d46=>{const _0x29c6ea=_0x550356,_0x16eafd=_0x436d46[_0x29c6ea(0x244)](),_0x53d8f6=this[_0x29c6ea(0x2a3)]['get'](_0x16eafd);_0x53d8f6&&(_0x53d8f6[_0x29c6ea(0x232)](),this[_0x29c6ea(0x2a3)][_0x29c6ea(0x209)](_0x16eafd));});}async[_0x51fc53(0x223)](_0x4591bf,_0x2f97fe){const _0x44a542=_0x51fc53,_0x1a50f4=await this[_0x44a542(0x1b2)][_0x44a542(0x1ad)](_0x4591bf),_0x8aff8f=this[_0x44a542(0x342)][_0x44a542(0x3ba)](this[_0x44a542(0x148)](_0x2f97fe),_0x4591bf,_0x2f97fe,_0x1a50f4);return await _0x8aff8f['init'](),this[_0x44a542(0x36b)][_0x44a542(0x275)](_0x8aff8f),_0x8aff8f;}['_getCtorByUniverType'](_0x2723b6){const _0x43551e=_0x51fc53;switch(_0x2723b6){case H[_0x43551e(0x32c)]:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2723b6);}}};Ee=Je([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],Ee),S(0x0,_0x4a7404(_0x44b6b8)),S(0x1,_0x4a7404(Re)),S(0x2,_0x373907)],Ee);let We=class extends _0x521c86{constructor(_0x532bf4,_0x1c7be0,_0xea7505,_0x1b6bba,_0x46d0c1,_0x2dbdd7,_0x27152b,_0x529f52,_0x1089c5,_0x3f06b0,_0x5608a4,_0xf93f36,_0x166aa7){const _0xe23846=_0x51fc53;super(),l(this,'_state$',new _0x5d7d96(null)),l(this,_0xe23846(0x245),this[_0xe23846(0x331)]['asObservable']()),l(this,_0xe23846(0x173)),l(this,'_collaborationPaused',!0x1),l(this,_0xe23846(0x214),this[_0xe23846(0x245)][_0xe23846(0x2c3)](_0x1db2aa(_0x1b7339=>_0x1b7339?_0x1b7339[_0xe23846(0x253)]:P['OFFLINE']),_0x4b3c1f(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0xe23846(0x1de),[]),(this['unitID']=_0x532bf4,this['_type']=_0x1c7be0,this[_0xe23846(0x29c)]=_0xea7505,this[_0xe23846(0x342)]=_0x1b6bba,this[_0xe23846(0x284)]=_0x46d0c1,this[_0xe23846(0x13f)]=_0x2dbdd7,this[_0xe23846(0x344)]=_0x27152b,this[_0xe23846(0x2f2)]=_0x529f52,this[_0xe23846(0x37c)]=_0x1089c5,this[_0xe23846(0x113)]=_0x3f06b0,this[_0xe23846(0x383)]=_0x5608a4,this['_permissionService']=_0xf93f36,this[_0xe23846(0x109)]=_0x166aa7);}get[_0x51fc53(0x181)](){const _0x4b3df6=_0x51fc53;return this[_0x4b3df6(0x173)];}async[_0x51fc53(0x191)](){const _0x46ab6c=_0x51fc53;if(this['state'])throw new Error(_0x46ab6c(0x360));await this[_0x46ab6c(0x380)]();}[_0x51fc53(0x32a)](){return this['_collaborationPaused']=!0x0,_0x2f2f24(()=>{const _0x2b6eb2=_0x5e69;this[_0x2b6eb2(0x218)]=!0x1,this[_0x2b6eb2(0x133)]();});}[_0x51fc53(0x292)](_0x1bc89b){const _0x1ea275=_0x51fc53;this[_0x1ea275(0x173)]=_0x1bc89b,this['_state$'][_0x1ea275(0x275)](_0x1bc89b);}async['_init'](){const _0x3b9cb2=_0x51fc53;var _0x4dd910;return this[_0x3b9cb2(0x292)](await this[_0x3b9cb2(0x2b8)]()),this[_0x3b9cb2(0x109)]&&((_0x4dd910=this['_singleActiveUnitService'])==null||_0x4dd910[_0x3b9cb2(0x187)](this[_0x3b9cb2(0x1b1)]),this['disposeWithMe'](_0x2f2f24(this['_singleActiveUnitService'][_0x3b9cb2(0x1ee)](this['unitID'])['subscribe'](_0x5b00fa=>{const _0x39fb22=_0x3b9cb2;this[_0x39fb22(0x37c)][_0x39fb22(0x35e)](_0x39fb22(0x304),_0x39fb22(0x36e),_0x5b00fa),_0x5b00fa===Os[_0x39fb22(0x346)]?(this[_0x39fb22(0x383)][_0x39fb22(0x25c)]({'content':this['_localeService']['t'](_0x39fb22(0x210)),'type':_0x1587ba[_0x39fb22(0x10e)]}),this['_permissionService'][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x1)):this[_0x39fb22(0xa5)][_0x39fb22(0x1f6)](new _0x4b6c4e(this[_0x39fb22(0x1b1)])['id'],!0x0);})))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)][_0x3b9cb2(0x334)][_0x3b9cb2(0x202)](_0x2ed8f9=>{const _0x3b7be7=_0x3b9cb2;_0x2ed8f9===_e[_0x3b7be7(0x31f)]?this[_0x3b7be7(0x343)]():_0x2ed8f9===_e[_0x3b7be7(0x319)]&&this[_0x3b7be7(0xdb)]();}))),this[_0x3b9cb2(0x294)](_0x2f2f24(this[_0x3b9cb2(0x29c)]['event$'][_0x3b9cb2(0x202)](_0x10b7aa=>{const _0x1bd9e0=_0x3b9cb2;try{switch(_0x10b7aa[_0x1bd9e0(0x1ec)]){case _0x1b5c65[_0x1bd9e0(0x250)]:{this['_onRemoteChangeset'](_0x8dccd4(_0x10b7aa['data']));break;}case _0x1b5c65[_0x1bd9e0(0xf1)]:{this[_0x1bd9e0(0x14e)](_0x10b7aa[_0x1bd9e0(0x94)]);break;}case _0x1b5c65['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x1b5c65[_0x1bd9e0(0x269)]:{this[_0x1bd9e0(0x381)](_0x10b7aa[_0x1bd9e0(0x94)][_0x1bd9e0(0xa3)][_0x1bd9e0(0xab)](_0x3b46dd=>_0x8dccd4(_0x3b46dd)));break;}case _0x1b5c65[_0x1bd9e0(0x274)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x5d532c){throw console[_0x1bd9e0(0x24d)](_0x1bd9e0(0x299),_0x5d532c),_0x5d532c;}}))),this[_0x3b9cb2(0x173)];}['_unlockTransition'](){const _0x480a08=_0x51fc53;this[_0x480a08(0x37b)]=!0x1;}['_lockTransition'](){const _0x59d763=_0x51fc53;if(this[_0x59d763(0x37b)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x59d763(0x37b)]=!0x0;}[_0x51fc53(0x1c7)](_0x213c99){const _0x3d1d7d=_0x51fc53;this['_lockTransition'](),this[_0x3d1d7d(0x292)](this[_0x3d1d7d(0x173)]['appendMutation'](_0x213c99)),this[_0x3d1d7d(0x1f8)]();}[_0x51fc53(0x2fe)](_0x59b55b){const _0x312a42=_0x51fc53;if(!(_0x59b55b['revision']<=this['_revisionService'][_0x312a42(0x2f1)](this[_0x312a42(0x1b1)]))){if(this['_collaborationPaused']){this[_0x312a42(0x1de)]['push'](_0x59b55b);return;}this[_0x312a42(0x114)](_0x59b55b);}}[_0x51fc53(0x133)](){const _0x3fd6f8=_0x51fc53;this[_0x3fd6f8(0x1de)]['forEach'](_0x1a03ad=>this['_applyRemoteChangeset'](_0x1a03ad)),this['_remoteChangesetQueue']=[];}[_0x51fc53(0x114)](_0x5c3628){const _0x3c3cf9=_0x51fc53,_0x2dec41=this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['fetchThroughInterceptors'](this[_0x3c3cf9(0x13f)][_0x3c3cf9(0xb2)]['getInterceptPoints']()[_0x3c3cf9(0x176)])(_0x5c3628[_0x3c3cf9(0xc7)],null)||_0x5c3628[_0x3c3cf9(0xc7)],_0x65bb5e={..._0x5c3628,'mutations':_0x2dec41};this['_lockTransition'](),this['_updateState'](this[_0x3c3cf9(0x173)]['onRemoteChangeset'](_0x65bb5e)),this[_0x3c3cf9(0x1f8)]();}['_onRemoteACK'](_0x2643b4){const _0x1ecaf7=_0x51fc53;this['_lockTransition'](),this[_0x1ecaf7(0x292)](this['_state']['onRemoteAck'](_0x2643b4)),this[_0x1ecaf7(0x1f8)]();}[_0x51fc53(0x348)](_0xb08dc9){const _0x232985=_0x51fc53;this['_lockTransition'](),this['_updateState'](this[_0x232985(0x173)][_0x232985(0x1ca)](_0xb08dc9)),this[_0x232985(0x1f8)]();}[_0x51fc53(0x381)](_0x26fa7a){const _0x10eb42=_0x51fc53;if(!(this['_state']instanceof W))throw new TypeError(_0x10eb42(0x21f));const _0xd0b61c=_0x26fa7a[_0x10eb42(0xab)](_0x3b2b77=>{const _0x334297=_0x10eb42,_0x476365=this[_0x334297(0x13f)][_0x334297(0xb2)][_0x334297(0xd1)](this[_0x334297(0x13f)]['interceptor'][_0x334297(0x26f)]()[_0x334297(0x176)])(_0x3b2b77[_0x334297(0xc7)],null)||_0x3b2b77[_0x334297(0xc7)];return{..._0x3b2b77,'mutations':_0x476365};});this[_0x10eb42(0x1e0)](),this[_0x10eb42(0x292)](this[_0x10eb42(0x173)]['onMissedChangesetFetched'](_0xd0b61c)),this[_0x10eb42(0x1f8)]();}[_0x51fc53(0xdb)](){const _0x27f2bf=_0x51fc53;this[_0x27f2bf(0x1e0)](),this[_0x27f2bf(0x292)](this[_0x27f2bf(0x173)][_0x27f2bf(0x178)]()),this[_0x27f2bf(0x1f8)]();}['_toggleOnline'](){const _0x33ddb9=_0x51fc53;this[_0x33ddb9(0x1e0)](),this[_0x33ddb9(0x292)](this[_0x33ddb9(0x173)][_0x33ddb9(0x338)]()),this[_0x33ddb9(0x1f8)]();}async[_0x51fc53(0x2b8)](){return new Promise(_0x351c8b=>{const _0xccf4f8=_0x5e69;this[_0xccf4f8(0x29c)][_0xccf4f8(0x334)][_0xccf4f8(0x2c3)](_0x51a597(0x1))[_0xccf4f8(0x202)](async _0x80a9f9=>{const _0x1c8939=_0xccf4f8;_0x351c8b(await this[_0x1c8939(0x281)](_0x80a9f9===_e[_0x1c8939(0x31f)]));});});}[_0x51fc53(0x353)](){const _0x3335e9=_0x51fc53,_0x55a1d5=this[_0x3335e9(0x1b1)];return{'onStateChange':(_0x4bc620,_0x5abb10)=>{const _0xdc3f7d=_0x3335e9;if(_0x4bc620!==this['_state'])throw new Error(_0xdc3f7d(0xd5)+_0x4bc620[_0xdc3f7d(0x253)]+'\x0aAfter:\x20'+_0x5abb10['status']+_0xdc3f7d(0xc6)+this[_0xdc3f7d(0x173)][_0xdc3f7d(0x253)]);this['_updateState'](_0x5abb10);},'onSendChangeset':_0x2ff008=>{const _0x19e233=_0x3335e9,_0x4ce3da={'eventID':_0x1b5c65[_0x19e233(0x255)],'data':{'unitID':_0x2ff008[_0x19e233(0x1b1)],'unitType':this[_0x19e233(0xad)],'changeset':_0x2ff008,'memberID':this[_0x19e233(0x29c)]['getMemberID']()}};this[_0x19e233(0x29c)][_0x19e233(0x39e)](_0x4ce3da,this[_0x19e233(0x1b1)]);},'onMissingChangesets':({from:_0x26cc95,to:_0x5f0301})=>{const _0x5303c9=_0x3335e9;this[_0x5303c9(0x37c)]['debug'](_0x5303c9(0x304),_0x5303c9(0x267)+_0x26cc95+_0x5303c9(0x39a)+_0x5f0301);const _0x4c1895={'eventID':_0x1b5c65[_0x5303c9(0x282)],'data':{'unitID':_0x55a1d5,'unitType':this[_0x5303c9(0xad)],'from':_0x26cc95,'to':_0x5f0301}};this[_0x5303c9(0x29c)][_0x5303c9(0x39e)](_0x4c1895,this[_0x5303c9(0x1b1)]);}};}async[_0x51fc53(0x281)](_0x1eaf27){const _0x3a5b9a=_0x51fc53;var _0x46ddcc,_0x231b95;const _0xbc676a=await this[_0x3a5b9a(0x284)]['loadOfflineData'](this['unitID']),_0xb7926f=(_0x46ddcc=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0xc7)])!=null?_0x46ddcc:[],_0x4beb68=(_0x231b95=_0xbc676a==null?void 0x0:_0xbc676a[_0x3a5b9a(0x188)])!=null?_0x231b95:null,_0x2eb10d=this['unitID'];try{this[_0x3a5b9a(0xa9)](_0x4beb68,_0xb7926f);}catch(_0x274cb9){this[_0x3a5b9a(0x37c)][_0x3a5b9a(0x24d)](_0x274cb9);}const _0x451806=this['_createHandler']();if(_0x1eaf27){const _0x578a6f=ws(this['_injector'],_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);return _0x578a6f instanceof k?_0x578a6f[_0x3a5b9a(0x158)]():(_0x578a6f instanceof V||_0x578a6f instanceof X)&&_0x578a6f[_0x3a5b9a(0x197)](),_0x578a6f;}return this[_0x3a5b9a(0x342)][_0x3a5b9a(0x3ba)](J,_0x2eb10d,this['_type'],_0x4beb68,_0xb7926f,_0x451806);}[_0x51fc53(0xa9)](_0x238e13,_0x294021){const _0x29bf08=_0x51fc53;var _0x3da9f9,_0x46dcb9;const _0xc4b6c4=this[_0x29bf08(0x13f)]['interceptor'][_0x29bf08(0xd1)](this['_compressMutationService'][_0x29bf08(0xb2)][_0x29bf08(0x26f)]()['COMPRESS_MUTATION_APPLY']);(_0x3da9f9=_0xc4b6c4((_0x238e13==null?void 0x0:_0x238e13[_0x29bf08(0xc7)])||[],null))==null||_0x3da9f9['forEach'](_0x3df3df=>this['_commandService'][_0x29bf08(0xaa)](_0x3df3df['id'],_0x3df3df[_0x29bf08(0x1c8)])),(_0x46dcb9=_0xc4b6c4(_0x294021||[],null))==null||_0x46dcb9[_0x29bf08(0x124)](_0x3fddbf=>this[_0x29bf08(0x113)][_0x29bf08(0xaa)](_0x3fddbf['id'],_0x3fddbf[_0x29bf08(0x1c8)]));}};We=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x3cb271),S(0x9,_0x568418),S(0xa,_0xf8e37a),S(0xb,_0x57bd86),S(0xc,_0x19d484(Xe))],We);let dt=class extends We{constructor(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x183a2e,_0xc3c177,_0x2d4624,_0x15373c,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d){const _0x23e2b0=_0x51fc53;super(_0x239e45,_0x31f25c,_0x4958bd,_0x1be5c9,_0x4144e9,_0x9729df,_0x22eb3a,_0x576e58,_0x13c950,_0x44d744,_0x11c0d5,_0x363f57,_0xe2344d),this[_0x23e2b0(0x1b1)]=_0x239e45,this['type']=_0x31f25c,this[_0x23e2b0(0xf2)]=_0x4958bd,this[_0x23e2b0(0x2a9)]=_0x183a2e,this[_0x23e2b0(0x1dd)]=_0xc3c177,this[_0x23e2b0(0x39f)]=_0x2d4624,this[_0x23e2b0(0x1bf)]=_0x15373c;}[_0x51fc53(0x353)](){const _0x48c16a=_0x51fc53,_0x258bcd=super[_0x48c16a(0x353)]();return _0x258bcd['onTransformIME']=_0x5789eb=>this[_0x48c16a(0x1dd)][_0x48c16a(0x22c)](_0x5789eb),_0x258bcd[_0x48c16a(0x2ef)]=_0x4e928c=>this[_0x48c16a(0x39f)][_0x48c16a(0xc5)](_0x4e928c),_0x258bcd['onSyncEditingCollabCursor']=_0x36ceeb=>this[_0x48c16a(0x1bf)]['syncEditingCollabCursor'](_0x36ceeb),_0x258bcd[_0x48c16a(0x314)]=_0x590aef=>this[_0x48c16a(0x1dd)]['transformRemoteChangeset'](_0x590aef),_0x258bcd;}async['_init'](){const _0x10924b=_0x51fc53,_0x4b142b=await super[_0x10924b(0x380)]();return this[_0x10924b(0x2a9)]['docStateChange$'][_0x10924b(0x2c3)](_0x1603a2(this[_0x10924b(0x200)]))[_0x10924b(0x202)](_0x520386=>{const _0x329d56=_0x10924b;if(_0x520386==null)return;const {unitId:_0x69d44f,redoState:_0x488da1,commandId:_0x5a0485}=_0x520386;if(_0x69d44f!==this['unitID'])return;const _0x57cf4e={'id':_0x5a0485,'type':_0x1b1270['MUTATION'],'params':{'unitId':_0x69d44f,'actions':_0x488da1['actions'],'textRanges':null}};this[_0x329d56(0x1c7)](_0x57cf4e);}),_0x4b142b;}};dt=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(_0x47f8d9)),S(0x9,_0x4a7404(Be)),S(0xa,_0x4a7404(ke)),S(0xb,_0x4a7404(Mt)),S(0xc,_0x3cb271),S(0xd,_0x568418),S(0xe,_0xf8e37a),S(0xf,_0x57bd86),S(0x10,_0x19d484(Xe))],dt);let ft=class extends We{constructor(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x23ceb4,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb){const _0x2f954c=_0x51fc53;super(_0x5038e2,_0x44ef1a,_0x262956,_0x2b1775,_0x1242a8,_0x108ecd,_0x476ad3,_0x1bb191,_0x276e50,_0x236953,_0x75f7de,_0x429535,_0x44bebb),this[_0x2f954c(0x1b1)]=_0x5038e2,this[_0x2f954c(0x2cd)]=_0x44ef1a,this[_0x2f954c(0xf2)]=_0x262956,this[_0x2f954c(0x119)]=_0x23ceb4;}[_0x51fc53(0x353)](){const _0x9b3ba3=_0x51fc53,_0x6f5b46=super[_0x9b3ba3(0x353)]();return _0x6f5b46[_0x9b3ba3(0x2ef)]=_0x2605e8=>this['_sheetTransformSelectionsService'][_0x9b3ba3(0xc5)](_0x2605e8),_0x6f5b46;}async[_0x51fc53(0x380)](){const _0xb121fa=_0x51fc53,_0x31fa82=await super['_init']();return this[_0xb121fa(0x294)](this['_commandService'][_0xb121fa(0xb4)]((_0x5f0589,_0x22380a)=>{const _0x26f5c5=_0xb121fa;if(_0x5f0589[_0x26f5c5(0x2cd)]!==_0x1b1270[_0x26f5c5(0x321)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0xd2)]||_0x22380a!=null&&_0x22380a[_0x26f5c5(0x1f4)])return;const _0x5cfec5=_0x5f0589['params'];if((_0x5cfec5==null?void 0x0:_0x5cfec5[_0x26f5c5(0x2af)])!==this[_0x26f5c5(0x1b1)])return;const _0x285eba=_0x5f0589,_0x499d8d=this[_0x26f5c5(0x13f)]['interceptor'][_0x26f5c5(0xd1)](this[_0x26f5c5(0x13f)]['interceptor']['getInterceptPoints']()[_0x26f5c5(0x9d)])([_0x285eba],null)||[_0x285eba];this['_onLocalMutation'](_0x499d8d[0x0]);})),_0x31fa82;}};ft=Je([S(0x3,_0x4a7404(_0x44b6b8)),S(0x4,_0x4a7404(D)),S(0x5,_0x4a7404(_0x2c81ea)),S(0x6,_0x4a7404(_0x201091)),S(0x7,_0x4a7404(_0x4d36b1)),S(0x8,_0x4a7404(Ve)),S(0x9,_0x3cb271),S(0xa,_0x568418),S(0xb,_0xf8e37a),S(0xc,_0x57bd86),S(0xd,_0x19d484(Xe))],ft);const Zt=[_0x51fc53(0x1b4),_0x51fc53(0xee),_0x51fc53(0x1f7),_0x51fc53(0x398),_0x51fc53(0xf9),_0x51fc53(0x157)];class At extends _0x10a29c{constructor(){const _0x2f803a=_0x51fc53;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x2f803a(0x1fd),0x0);}[_0x51fc53(0x33e)](_0x349a9e){const _0x42d247=_0x51fc53;if(this[_0x42d247(0x23c)][_0x42d247(0x16c)](_0x349a9e))return this[_0x42d247(0x23c)]['get'](_0x349a9e);const _0x81c09f=Zt[this[_0x42d247(0x1fd)]];return this[_0x42d247(0x1fd)]=(this[_0x42d247(0x1fd)]+0x1)%Zt['length'],this['_assignedColors'][_0x42d247(0x38f)](_0x349a9e,_0x81c09f),_0x81c09f;}}var Wn=Object[_0x51fc53(0x18f)],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x42a44f,_0x344411,_0x35fce5,_0x1b1d21)=>{const _0x2ed7d9=_0x51fc53;for(var _0xb21d67=_0x1b1d21>0x1?void 0x0:_0x1b1d21?Gn(_0x344411,_0x35fce5):_0x344411,_0x151a36=_0x42a44f[_0x2ed7d9(0x2c6)]-0x1,_0x2fd955;_0x151a36>=0x0;_0x151a36--)(_0x2fd955=_0x42a44f[_0x151a36])&&(_0xb21d67=(_0x1b1d21?_0x2fd955(_0x344411,_0x35fce5,_0xb21d67):_0x2fd955(_0xb21d67))||_0xb21d67);return _0x1b1d21&&_0xb21d67&&Wn(_0x344411,_0x35fce5,_0xb21d67),_0xb21d67;},ae=(_0x17c992,_0x465f79)=>(_0xc61445,_0x4d00a9)=>_0x465f79(_0xc61445,_0x4d00a9,_0x17c992);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x2a308a=[],_0x58cd30=!0x1;return _0x2744b5=>{const _0x351a13=_0x5e69;_0x2a308a[_0x351a13(0x19d)](_0x2744b5),_0x58cd30||(_0x58cd30=!0x0,setTimeout(()=>{_0x2a308a['forEach'](_0x1b79b6=>_0x1b79b6()),_0x2a308a=[],_0x58cd30=!0x1;}));};};let gt=class extends _0x521c86{constructor(_0x16267d,_0x5e4917,_0x2c91a4,_0x1899bd,_0x57e804,_0x13c74a,_0x5be64b,_0x7e9100){const _0x41e6dd=_0x51fc53;super(),l(this,_0x41e6dd(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x41e6dd(0x390),new _0x5d7d96(new Map())),l(this,_0x41e6dd(0x123),this[_0x41e6dd(0x390)][_0x41e6dd(0xc8)]()),l(this,_0x41e6dd(0x36f),new _0x5d7d96([])),l(this,_0x41e6dd(0x1c1),this[_0x41e6dd(0x36f)][_0x41e6dd(0x2c3)](_0x4c0f1b(Kn))),l(this,'_updateLocalCursor',_0x507539((_0x5b7588,_0x1a5957)=>{const _0x377ff5=_0x41e6dd,_0x283005={'eventID':_0x1b5c65[_0x377ff5(0x235)],'data':{'unitID':this[_0x377ff5(0x1b1)],'memberID':this[_0x377ff5(0x29c)][_0x377ff5(0x2be)](),'selection':_0x273a62(_0x5b7588,_0x1a5957[_0x377ff5(0x2f5)])}};this[_0x377ff5(0x29c)]['send'](_0x283005,this['unitID']);},Xn)),(this[_0x41e6dd(0x1b1)]=_0x16267d,this['_session']=_0x5e4917,this[_0x41e6dd(0x342)]=_0x2c91a4,this[_0x41e6dd(0x1e7)]=_0x1899bd,this[_0x41e6dd(0x12b)]=_0x57e804,this['_univerInstanceService']=_0x13c74a,this[_0x41e6dd(0x113)]=_0x5be64b,this[_0x41e6dd(0x359)]=_0x7e9100);}get[_0x51fc53(0x129)](){const _0x13eef4=_0x51fc53;return this['_cursorInfo$'][_0x13eef4(0x15e)]();}get[_0x51fc53(0x21a)](){return this['_roomMembers$']['getValue']();}[_0x51fc53(0x232)](){const _0x764b94=_0x51fc53;super['dispose'](),this[_0x764b94(0x390)][_0x764b94(0x275)](new Map()),this['_cursorInfo$'][_0x764b94(0x349)](),this[_0x764b94(0x36f)][_0x764b94(0x275)]([]),this['_roomMembers$'][_0x764b94(0x349)]();}[_0x51fc53(0x191)](){const _0x190c6d=_0x51fc53;this[_0x190c6d(0x380)]||(this[_0x190c6d(0x380)]=!0x0,this['_session'][_0x190c6d(0x334)]['pipe'](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0xa5815=>{const _0x2f2f60=_0x190c6d;_0xa5815===_e[_0x2f2f60(0x31f)]?this[_0x2f2f60(0x343)]():this[_0x2f2f60(0xdb)]();}),this[_0x190c6d(0x29c)][_0x190c6d(0x374)][_0x190c6d(0x2c3)](_0x1603a2(this[_0x190c6d(0x200)]))[_0x190c6d(0x202)](_0x523cf3=>{const _0x16d229=_0x190c6d,_0x133b26=_0x523cf3[_0x16d229(0x1ec)];_0x133b26===_0x1b5c65[_0x16d229(0x235)]&&this[_0x16d229(0x291)](_0x523cf3),_0x133b26===_0x1b5c65[_0x16d229(0x312)]&&this[_0x16d229(0x36d)](_0x523cf3);}),this['_onRefRangeChange'](),this[_0x190c6d(0x294)](this[_0x190c6d(0x113)][_0x190c6d(0xb4)](_0x330dd9=>{const _0x50bbe3=_0x190c6d;if(this['_online']&&_0x330dd9['id']===_0x2708b7['id']&&_0x330dd9[_0x50bbe3(0x1c8)][_0x50bbe3(0x2af)]===this['unitID']){const _0x53f812=_0x330dd9[_0x50bbe3(0x1c8)];this[_0x50bbe3(0x35b)](_0x53f812['subUnitId'],_0x53f812[_0x50bbe3(0xf3)][0x0]);}})));}[_0x51fc53(0x291)](_0x493591){const _0x44d83d=_0x51fc53;var _0x40a451,_0x109c58;const {memberID:_0x4d5469,selection:_0x5aeb02}=_0x493591[_0x44d83d(0x94)],{sheetName:_0x4183db,range:_0x44a707}=_0x285859(_0x5aeb02),_0x50dc69={'name':(_0x109c58=(_0x40a451=this[_0x44d83d(0x12b)][_0x44d83d(0xb6)](this[_0x44d83d(0x1b1)],_0x4d5469))==null?void 0x0:_0x40a451[_0x44d83d(0x3a4)])!=null?_0x109c58:_0x44d83d(0x3aa),'range':this['_getMergeRange'](_0x4183db,_0x44a707),'sheetID':_0x4183db,'color':this['_colorAssignService'][_0x44d83d(0x33e)](_0x4d5469),'selection':_0x5aeb02},_0x48b6b4=this[_0x44d83d(0x129)];_0x48b6b4['set'](_0x4d5469,_0x50dc69),this[_0x44d83d(0x390)]['next'](_0x48b6b4);}[_0x51fc53(0x36d)](_0x47bb2e){const _0xaedcd7=_0x51fc53,{memberID:_0x2ddfe4}=_0x47bb2e[_0xaedcd7(0x94)],_0x2b0809=this[_0xaedcd7(0x129)];_0x2b0809['delete'](_0x2ddfe4),this['_cursorInfo$'][_0xaedcd7(0x275)](_0x2b0809);}[_0x51fc53(0x118)](_0x5f42f7,_0x5e0365){const _0x2129a6=_0x51fc53;var _0x386826,_0x5f3d3e;const _0x5435b4=(_0x5f3d3e=(_0x386826=this[_0x2129a6(0xa0)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x386826[_0x2129a6(0x3a9)](_0x5f42f7))==null?void 0x0:_0x5f3d3e[_0x2129a6(0x166)]();return(_0x5435b4==null?void 0x0:_0x5435b4[_0x2129a6(0x1e1)](_0x1bb7b1=>_0x1fb77c['contains'](_0x1bb7b1,_0x5e0365)))||_0x5e0365;}[_0x51fc53(0x30c)](){const _0x4b2589=_0x51fc53,_0x449b3f=new _0x3ab8a8(),_0x1ad303=Jn(),_0x4e123a=()=>{const _0x5f3655=_0x5e69;_0x449b3f['dispose']();const _0x6a4240=(_0x525892,_0x46c308,_0x55faac,_0xb0be62)=>{const _0x13c14c=_0x5e69;let _0x532400=[];switch(_0x525892['id']){case _0x4d5ced['DeleteRangeMoveLeftCommandId']:{_0x532400=_0x3ca06c(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x377)]:{_0x532400=_0x5c5378(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertColCommandId']:{_0x532400=_0x3b1ac8(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x37f)]:{_0x532400=_0x268953(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x138)]:{_0x532400=_0x4c1408(_0x525892,_0xb0be62);break;}case _0x4d5ced['InsertRowCommandId']:{_0x532400=_0x254106(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x20d)]:{_0x532400=_0x511a99(_0x525892,_0xb0be62);break;}case _0x4d5ced[_0x13c14c(0x357)]:{_0x532400=_0x122c4c(_0x525892,_0xb0be62);break;}case _0x4d5ced['RemoveRowCommandId']:{_0x532400=_0x1d7ce0(_0x525892,_0xb0be62);break;}}const _0x2f0e50=_0x3711ba(_0x532400,_0xb0be62),_0x1e8bc9=this['cursorInfo'][_0x13c14c(0x151)](_0x46c308);if(_0x1e8bc9&&_0x2f0e50){const _0x2522e8={..._0x1e8bc9,'range':_0x2f0e50};this[_0x13c14c(0x129)][_0x13c14c(0x38f)](_0x46c308,_0x2522e8),_0x1ad303(()=>{const _0x2aa25a=_0x13c14c,_0x5293f9=this[_0x2aa25a(0x359)]['registerRefRange'](_0x2f0e50,_0x56b6cb=>(_0x5293f9[_0x2aa25a(0x232)](),_0x6a4240(_0x56b6cb,_0x46c308,_0x55faac,_0x2f0e50)));_0x449b3f[_0x2aa25a(0xe7)](_0x5293f9);});}return{'redos':[],'undos':[]};};this[_0x5f3655(0x129)]['forEach']((_0x12ea26,_0x3738d5)=>{const _0x554688=_0x5f3655,{range:_0x32b9e6,sheetID:_0x43ba2a}=_0x12ea26,_0x5720fa=this[_0x554688(0x359)]['registerRefRange'](_0x32b9e6,_0x1a27ff=>(_0x5720fa[_0x554688(0x232)](),_0x6a4240(_0x1a27ff,_0x3738d5,_0x43ba2a,_0x32b9e6)));_0x449b3f['add'](_0x5720fa);});};this['disposeWithMe'](_0x2f2f24(this['_cursorInfo$'][_0x4b2589(0x202)](()=>{_0x4e123a();})));}['_toggleOnline'](){const _0x12b419=_0x51fc53;var _0x41d9e4,_0x50020e;if(this['_online']=!0x0,((_0x41d9e4=this['_univerInstanceService'][_0x12b419(0x2ed)]())==null?void 0x0:_0x41d9e4[_0x12b419(0x244)]())!==this[_0x12b419(0x1b1)])return;const _0x420067=(_0x50020e=this[_0x12b419(0x342)][_0x12b419(0x151)](_0x5c112f)['getSelections']())==null?void 0x0:_0x50020e[0x0],_0x4d0d62=this[_0x12b419(0xa0)][_0x12b419(0x1c4)](_0x3504ec[_0x12b419(0x351)])[_0x12b419(0x1e3)]();_0x420067&&_0x4d0d62&&this[_0x12b419(0x35b)](_0x4d0d62[_0x12b419(0x1ef)](),_0x420067);}['_toggleOffline'](){this['_online']=!0x1;}};gt=Yn([ae(0x2,_0x4a7404(_0x44b6b8)),ae(0x3,_0x4a7404(At)),ae(0x4,_0x4a7404(ee)),ae(0x5,_0x373907),ae(0x6,_0x568418),ae(0x7,_0x4a7404(_0x4cc8b2))],gt);var zn=Object[_0x51fc53(0x18f)],Zn=Object[_0x51fc53(0x340)],qn=(_0x2eda3c,_0x5beead,_0x42fed4,_0x904a0f)=>{for(var _0x1dc33b=_0x904a0f>0x1?void 0x0:_0x904a0f?Zn(_0x5beead,_0x42fed4):_0x5beead,_0x438064=_0x2eda3c['length']-0x1,_0x4553c0;_0x438064>=0x0;_0x438064--)(_0x4553c0=_0x2eda3c[_0x438064])&&(_0x1dc33b=(_0x904a0f?_0x4553c0(_0x5beead,_0x42fed4,_0x1dc33b):_0x4553c0(_0x1dc33b))||_0x1dc33b);return _0x904a0f&&_0x1dc33b&&zn(_0x5beead,_0x42fed4,_0x1dc33b),_0x1dc33b;},q=(_0x3718ed,_0x3ac559)=>(_0x19d97a,_0x46bb13)=>_0x3ac559(_0x19d97a,_0x46bb13,_0x3718ed);const Qn=0x12c,er=0x64;let mt=class extends _0x521c86{constructor(_0x4d4d77,_0x504630,_0x1bf532,_0x5e5237,_0x85fb5f,_0x25d8f4,_0xa3212,_0x12fe7f,_0x7c7fba){const _0x11856e=_0x51fc53;super(),l(this,_0x11856e(0x265),!0x1),l(this,'_init',!0x1),l(this,_0x11856e(0x390),new _0x5d7d96(new Map())),l(this,_0x11856e(0x123),this['_cursorInfo$'][_0x11856e(0xc8)]()),l(this,_0x11856e(0x36f),new _0x5d7d96([])),l(this,'roomMembers$',this[_0x11856e(0x36f)][_0x11856e(0x2c3)](_0x4c0f1b(Qn))),l(this,_0x11856e(0x35b),_0x507539(_0x116c0b=>{const _0x13f293=_0x11856e,_0x4d2825={'eventID':_0x1b5c65[_0x13f293(0x235)],'data':{'unitID':this[_0x13f293(0x1b1)],'memberID':this[_0x13f293(0x29c)][_0x13f293(0x2be)](),'selection':Ds(_0x116c0b)}};this[_0x13f293(0x29c)][_0x13f293(0x39e)](_0x4d2825,this[_0x13f293(0x1b1)]);},er)),(this['unitID']=_0x4d4d77,this[_0x11856e(0x29c)]=_0x504630,this[_0x11856e(0x342)]=_0x1bf532,this[_0x11856e(0x1e7)]=_0x5e5237,this['_memberService']=_0x85fb5f,this[_0x11856e(0x26b)]=_0x25d8f4,this[_0x11856e(0x102)]=_0xa3212,this[_0x11856e(0xa0)]=_0x12fe7f,this[_0x11856e(0x113)]=_0x7c7fba);}get[_0x51fc53(0x129)](){return this['_cursorInfo$']['getValue']();}get[_0x51fc53(0x21a)](){const _0x252811=_0x51fc53;return this['_roomMembers$'][_0x252811(0x15e)]();}[_0x51fc53(0x232)](){const _0x470fab=_0x51fc53;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x470fab(0x390)][_0x470fab(0x349)](),this[_0x470fab(0x36f)][_0x470fab(0x275)]([]),this[_0x470fab(0x36f)][_0x470fab(0x349)]();}[_0x51fc53(0x191)](){const _0x4ac27a=_0x51fc53;this['_init']||(this[_0x4ac27a(0x380)]=!0x0,this[_0x4ac27a(0x29c)][_0x4ac27a(0x334)]['pipe'](_0x1603a2(this['dispose$']))[_0x4ac27a(0x202)](_0x20bf77=>{const _0x59397e=_0x4ac27a;_0x20bf77===_e[_0x59397e(0x31f)]?this[_0x59397e(0x343)]():this[_0x59397e(0xdb)]();}),this[_0x4ac27a(0x29c)][_0x4ac27a(0x374)]['pipe'](_0x1603a2(this[_0x4ac27a(0x200)]))[_0x4ac27a(0x202)](_0x102487=>{const _0xae4603=_0x4ac27a,_0xef96f4=_0x102487[_0xae4603(0x1ec)];_0xef96f4===_0x1b5c65[_0xae4603(0x235)]&&this[_0xae4603(0x291)](_0x102487),_0xef96f4===_0x1b5c65[_0xae4603(0x312)]&&this['_onCursorDelete'](_0x102487);}),this[_0x4ac27a(0x294)](this['_commandService'][_0x4ac27a(0xb4)](_0x9fad96=>{const _0x10f041=_0x4ac27a,_0x15eea9=_0x9fad96[_0x10f041(0x1c8)];_0x15eea9!=null&&this[_0x10f041(0x265)]&&_0x9fad96['id']===_0xf9fdf8['id']&&_0x15eea9[_0x10f041(0x2af)]===this[_0x10f041(0x1b1)]&&_0x15eea9[_0x10f041(0x3b7)]===!0x1&&this[_0x10f041(0x35b)](_0x15eea9[_0x10f041(0x397)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x4ac27a(0x2c3)](_0x1603a2(this['dispose$']))['subscribe'](_0x38f165=>{const _0xa92e70=_0x4ac27a;if((_0x38f165==null?void 0x0:_0x38f165[_0xa92e70(0x1b1)])!==this['unitID'])return;const _0x48bb18={'eventID':_0x1b5c65[_0xa92e70(0x235)],'data':_0x38f165};this['_onCursorUpdate'](_0x48bb18);}),this[_0x4ac27a(0x294)](this[_0x4ac27a(0x113)]['onCommandExecuted'](_0x2c17ff=>{const _0x10a3ce=_0x4ac27a;if(_0x2c17ff[_0x10a3ce(0x1c8)]==null)return;const _0x28666f=_0x2c17ff[_0x10a3ce(0x1c8)];if(_0x2c17ff['id']!==_0x47707c['id']||_0x28666f[_0x10a3ce(0x2af)]!==this[_0x10a3ce(0x1b1)])return;const _0x5ccb40={'id':'doc.mutation.rich-text-editing','params':_0x28666f},_0x975ae6=this[_0x10a3ce(0x129)];for(const [_0xb58826,_0x502c2a]of _0x975ae6){const _0xd06274={'id':_0x10a3ce(0x152),'params':{'unitId':this[_0x10a3ce(0x1b1)],'actions':null,'textRanges':_0x502c2a['ranges']}},_0x4d3d95=this[_0x10a3ce(0x102)][_0x10a3ce(0x259)](_0x5ccb40,_0xd06274,!0x1);if(_0xcc662a(_0x4d3d95))throw _0x4d3d95[_0x10a3ce(0x24d)];_0x975ae6[_0x10a3ce(0x38f)](_0xb58826,{..._0x502c2a,'ranges':_0x4d3d95[_0x10a3ce(0x30f)][_0x10a3ce(0x1c8)]['textRanges']});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x975ae6);});})));}[_0x51fc53(0x291)](_0x449117){const _0x1ce48e=_0x51fc53;var _0x445fed,_0x1e45c5;const {memberID:_0xa5bd47,selection:_0x5e2fd4}=_0x449117[_0x1ce48e(0x94)],_0x2965b5=yn(_0x5e2fd4),_0x3dff43=(_0x1e45c5=(_0x445fed=this[_0x1ce48e(0x12b)][_0x1ce48e(0xb6)](this[_0x1ce48e(0x1b1)],_0xa5bd47))==null?void 0x0:_0x445fed[_0x1ce48e(0x3a4)])!=null?_0x1e45c5:_0x1ce48e(0x3aa),_0x408f91={'color':this[_0x1ce48e(0x1e7)][_0x1ce48e(0x33e)](_0xa5bd47),'name':_0x3dff43,'ranges':_0x2965b5},_0x3fc317=this[_0x1ce48e(0x129)];_0x3fc317[_0x1ce48e(0x38f)](_0xa5bd47,_0x408f91),this[_0x1ce48e(0x390)][_0x1ce48e(0x275)](_0x3fc317);}[_0x51fc53(0x36d)](_0x8ffa4a){const _0x1d09ec=_0x51fc53,{memberID:_0x17612f}=_0x8ffa4a[_0x1d09ec(0x94)],_0x5651fd=this[_0x1d09ec(0x129)];_0x5651fd[_0x1d09ec(0x209)](_0x17612f),this[_0x1d09ec(0x390)][_0x1d09ec(0x275)](_0x5651fd);}[_0x51fc53(0x343)](){const _0x257fc0=_0x51fc53;var _0x396b0c;if(this[_0x257fc0(0x265)]=!0x0,((_0x396b0c=this[_0x257fc0(0xa0)][_0x257fc0(0x2ed)]())==null?void 0x0:_0x396b0c[_0x257fc0(0x244)]())!==this[_0x257fc0(0x1b1)])return;const _0x7489c=this[_0x257fc0(0x342)][_0x257fc0(0x151)](_0x58dacd)[_0x257fc0(0x287)](),_0x19fa19=_0x7489c==null?void 0x0:_0x7489c[_0x257fc0(0xab)](_0x2646e0);Array[_0x257fc0(0x34e)](_0x19fa19)&&_0x19fa19[_0x257fc0(0x2c6)]>0x0&&this[_0x257fc0(0x35b)](_0x19fa19);}[_0x51fc53(0xdb)](){this['_online']=!0x1;}};mt=qn([q(0x2,_0x4a7404(_0x44b6b8)),q(0x3,_0x4a7404(At)),q(0x4,_0x4a7404(ee)),q(0x5,_0x4a7404(Mt)),q(0x6,_0x425e9b),q(0x7,_0x373907),q(0x8,_0x568418)],mt);var tr=Object[_0x51fc53(0x18f)],sr=Object[_0x51fc53(0x340)],ir=(_0x2174f9,_0x114a2f,_0x2cca36,_0x328a34)=>{const _0x22bae8=_0x51fc53;for(var _0x24ea18=_0x328a34>0x1?void 0x0:_0x328a34?sr(_0x114a2f,_0x2cca36):_0x114a2f,_0x41aaf8=_0x2174f9[_0x22bae8(0x2c6)]-0x1,_0x38e70e;_0x41aaf8>=0x0;_0x41aaf8--)(_0x38e70e=_0x2174f9[_0x41aaf8])&&(_0x24ea18=(_0x328a34?_0x38e70e(_0x114a2f,_0x2cca36,_0x24ea18):_0x38e70e(_0x24ea18))||_0x24ea18);return _0x328a34&&_0x24ea18&&tr(_0x114a2f,_0x2cca36,_0x24ea18),_0x24ea18;},st=(_0x49ac3c,_0xdd4983)=>(_0x1336a4,_0x20ad2a)=>_0xdd4983(_0x1336a4,_0x20ad2a,_0x49ac3c);let ue=class extends _0x521c86{constructor(_0x48ff91,_0xbffab7,_0x3769f3){const _0x396468=_0x51fc53;super(),l(this,_0x396468(0x2a3),new Map()),l(this,_0x396468(0x36b),new _0x5da41e()),(this[_0x396468(0xa0)]=_0x48ff91,this[_0x396468(0x342)]=_0xbffab7,this['_collabSessionService']=_0x3769f3,this[_0x396468(0x380)]());}[_0x51fc53(0x232)](){const _0x3399af=_0x51fc53;super[_0x3399af(0x232)](),this['_entityInit$'][_0x3399af(0x349)](),this[_0x3399af(0x2a3)][_0x3399af(0x124)](_0x29f176=>_0x29f176['dispose']());}[_0x51fc53(0x2bc)](_0x3456da){const _0x5e39eb=_0x51fc53;return this[_0x5e39eb(0x2a3)]['has'](_0x3456da)?this[_0x5e39eb(0x2a3)][_0x5e39eb(0x151)](_0x3456da)['cursorInfo$']:this['_entityInit$'][_0x5e39eb(0x2c3)](_0x5f5348(_0x4a906d=>_0x4a906d[_0x5e39eb(0x1b1)]===_0x3456da),_0x8b3a32(_0x35996a=>_0x35996a[_0x5e39eb(0x123)]));}['_init'](){const _0x3662cf=_0x51fc53;this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec[_0x3662cf(0x351)])[_0x3662cf(0x2c3)](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](async _0x522fad=>{const _0x81872f=_0x3662cf,_0xffac7e=_0x522fad[_0x81872f(0x244)](),_0x3a10df=await this[_0x81872f(0x2dc)](_0xffac7e);this[_0x81872f(0x36b)][_0x81872f(0x275)](_0x3a10df),this['_entities'][_0x81872f(0x38f)](_0xffac7e,_0x3a10df);}),this[_0x3662cf(0xa0)][_0x3662cf(0x26e)](_0x3504ec['UNIVER_DOC'])[_0x3662cf(0x2c3)](_0x1603a2(this['dispose$']))[_0x3662cf(0x2c3)](_0x5f5348(_0x36230e=>!_0x36230e['getUnitId']()[_0x3662cf(0x30e)]('__')))[_0x3662cf(0x202)](async _0x23d05a=>{const _0x5f3def=_0x3662cf,_0x1a4177=_0x23d05a['getUnitId'](),_0x2f73b1=await this[_0x5f3def(0x2f4)](_0x1a4177);this[_0x5f3def(0x36b)]['next'](_0x2f73b1),this[_0x5f3def(0x2a3)][_0x5f3def(0x38f)](_0x1a4177,_0x2f73b1);}),_0x124107(this[_0x3662cf(0xa0)][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x32c)]),this['_univerInstanceService'][_0x3662cf(0x280)](_0x3504ec[_0x3662cf(0x351)]))['pipe'](_0x1603a2(this[_0x3662cf(0x200)]))['subscribe'](_0x19fcc4=>{const _0x424b2b=_0x3662cf,_0x1de6b9=_0x19fcc4[_0x424b2b(0x244)](),_0xd23773=this[_0x424b2b(0x2a3)]['get'](_0x1de6b9);_0xd23773&&(_0xd23773['dispose'](),this['_entities']['delete'](_0x1de6b9));});}async[_0x51fc53(0x2dc)](_0x2d916f){const _0x1d3b00=_0x51fc53,_0x5d6148=await this[_0x1d3b00(0x1b2)][_0x1d3b00(0x1ad)](_0x2d916f),_0x230c34=this[_0x1d3b00(0x342)][_0x1d3b00(0x3ba)](gt,_0x2d916f,_0x5d6148);return _0x230c34[_0x1d3b00(0x191)](),_0x230c34;}async[_0x51fc53(0x2f4)](_0x132616){const _0x1c6fb5=_0x51fc53,_0x580c56=await this['_collabSessionService'][_0x1c6fb5(0x1ad)](_0x132616),_0x4bff1f=this['_injector'][_0x1c6fb5(0x3ba)](mt,_0x132616,_0x580c56);return _0x4bff1f[_0x1c6fb5(0x191)](),_0x4bff1f;}};ue=ir([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],ue),st(0x0,_0x373907),st(0x1,_0x4a7404(_0x44b6b8)),st(0x2,_0x4a7404(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0x535e5c,_0x7f9b40){const _0xbb9818=_0x51fc53;let {radius:_0x59ee42,width:_0x182805,height:_0x5840b4}=_0x7f9b40;_0x59ee42=_0x59ee42!=null?_0x59ee42:0x0,_0x182805=_0x182805!=null?_0x182805:0x1e,_0x5840b4=_0x5840b4!=null?_0x5840b4:0x1e;let _0xc9c179=0x0,_0x27d5e3=0x0,_0x1b4264=0x0;_0xc9c179=_0x27d5e3=_0x1b4264=Math[_0xbb9818(0x385)](_0x59ee42,_0x182805/0x2,_0x5840b4/0x2),_0x535e5c[_0xbb9818(0x25f)](),_0x535e5c[_0xbb9818(0xfe)](_0xc9c179,0x0),_0x535e5c[_0xbb9818(0x182)](_0x182805-_0x27d5e3,0x0),_0x535e5c[_0xbb9818(0x159)](_0x182805-_0x27d5e3,_0x27d5e3,_0x27d5e3,Math['PI']*0x3/0x2,0x0,!0x1),_0x535e5c[_0xbb9818(0x182)](_0x182805,_0x5840b4-_0x1b4264),_0x535e5c['arc'](_0x182805-_0x1b4264,_0x5840b4-_0x1b4264,_0x1b4264,0x0,Math['PI']/0x2,!0x1),_0x535e5c[_0xbb9818(0x182)](0x0,_0x5840b4),_0x535e5c[_0xbb9818(0x182)](0x0,_0xc9c179),_0x535e5c['arc'](_0xc9c179,_0xc9c179,_0xc9c179,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x535e5c[_0xbb9818(0x153)](),_0x7f9b40[_0xbb9818(0x29f)]&&(_0x535e5c[_0xbb9818(0x1f2)](),_0x535e5c[_0xbb9818(0x336)]=_0x7f9b40[_0xbb9818(0x29f)],_0x7f9b40[_0xbb9818(0x18d)]===_0xbb9818(0x25a)?_0x535e5c[_0xbb9818(0x29f)](_0xbb9818(0x25a)):_0x535e5c[_0xbb9818(0x29f)](),_0x535e5c[_0xbb9818(0x261)]());}class ze extends _0xe13222{constructor(_0x340efa,_0x4920dd){const _0x414ca2=_0x51fc53;super(_0x340efa,_0x4920dd),l(this,_0x414ca2(0x35d)),l(this,_0x414ca2(0x248)),(this[_0x414ca2(0x35d)]=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x35d)],this['text']=_0x4920dd==null?void 0x0:_0x4920dd[_0x414ca2(0x248)]);}static['drawWith'](_0x535c8b,_0x3f9887){const _0x3b3063=_0x51fc53,{text:_0x2d2828,color:_0x93ea6e}=_0x3f9887;_0x535c8b['save'](),_0x535c8b[_0x3b3063(0x127)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x354148=_0x535c8b[_0x3b3063(0x165)](_0x2d2828)[_0x3b3063(0x17d)],_0x12cbce=Math[_0x3b3063(0x385)](_0x354148+0x2*it,qt);rr(_0x535c8b,{'height':Oe,'radius':0x4,'width':_0x12cbce,'fill':_0x93ea6e,'evented':!0x1}),_0x535c8b[_0x3b3063(0x336)]='#FFF';const _0x30e33a=it,_0x168a59=Oe-nr,_0x43f098=qt-0x2*it;if(_0x354148>_0x43f098){let _0x35c391='',_0xfee248=0x0;for(const _0x125aaf of _0x2d2828){const _0xbeede7=_0x535c8b[_0x3b3063(0x165)](_0x125aaf)['width'];if(_0xfee248+_0xbeede7<=_0x43f098-_0x535c8b[_0x3b3063(0x165)]('...')[_0x3b3063(0x17d)])_0x35c391+=_0x125aaf,_0xfee248+=_0xbeede7;else{_0x35c391+=_0x3b3063(0x229);break;}}_0x535c8b['fillText'](_0x35c391,_0x30e33a,_0x168a59);}else _0x535c8b[_0x3b3063(0x285)](_0x2d2828,_0x30e33a,_0x168a59);_0x535c8b[_0x3b3063(0x261)]();}[_0x51fc53(0x2e3)](_0x1d08fc){ze['drawWith'](_0x1d08fc,this);}}const or=0x1,ar=1.5;class cr extends _0xe13222{constructor(_0x3353aa,_0x256d29){const _0x672f77=_0x51fc53;super(_0x3353aa,_0x256d29),l(this,_0x672f77(0xa7)),l(this,'_hovered',!0x1),l(this,_0x672f77(0x1f3)),l(this,_0x672f77(0x27b),''),l(this,_0x672f77(0x3a7),_0x672f77(0x207)),(_0x256d29&&this['setShapeProps'](_0x256d29),this['onPointerEnter$'][_0x672f77(0x2d7)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x672f77(0x2d8)]({'hovered':!0x1})));}[_0x51fc53(0x2d8)](_0x5c52f4){const _0xd40927=_0x51fc53;var _0x438ea9,_0x324dd8,_0xa989fc,_0x1e5d03,_0xdb1914;this[_0xd40927(0xa7)]=(_0x438ea9=_0x5c52f4['color'])!=null?_0x438ea9:this[_0xd40927(0xa7)],this[_0xd40927(0xd6)]=(_0x324dd8=_0x5c52f4[_0xd40927(0x150)])!=null?_0x324dd8:this['_hovered'],this[_0xd40927(0x1f3)]=(_0xa989fc=_0x5c52f4[_0xd40927(0x2f5)])!=null?_0xa989fc:this[_0xd40927(0x1f3)],this['_name']=(_0x1e5d03=_0x5c52f4[_0xd40927(0x3a4)])!=null?_0x1e5d03:this['_name'],this[_0xd40927(0x3a7)]=(_0xdb1914=_0x5c52f4[_0xd40927(0x289)])!=null?_0xdb1914:this[_0xd40927(0x3a7)],this[_0xd40927(0x177)]({'width':_0x5c52f4[_0xd40927(0x17d)],'height':_0x5c52f4[_0xd40927(0x28e)]});}[_0x51fc53(0x8e)](_0x31028a){const _0x55721=_0x51fc53,{row:_0x522b40,column:_0x57e37f}=_0x31028a;if(_0x522b40>=this[_0x55721(0x1f3)][_0x55721(0x172)]&&_0x522b40<=this[_0x55721(0x1f3)][_0x55721(0xbf)]&&_0x57e37f>=this[_0x55721(0x1f3)][_0x55721(0x372)]&&_0x57e37f<=this[_0x55721(0x1f3)]['endColumn']){this[_0x55721(0x2d8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x51fc53(0x186)](_0x291167){return!0x1;}[_0x51fc53(0x2e3)](_0x8cd591){const _0x2f7fe1=_0x51fc53;_0xbeb8e4[_0x2f7fe1(0x2db)](_0x8cd591,{'width':this['width'],'height':this[_0x2f7fe1(0x28e)],'strokeWidth':ar,'stroke':this[_0x2f7fe1(0xa7)],'evented':!0x1}),this[_0x2f7fe1(0xd6)]&&(_0x8cd591[_0x2f7fe1(0x1f2)](),_0x8cd591['transform'](0x1,0x0,0x0,0x1,this[_0x2f7fe1(0x17d)],this[_0x2f7fe1(0x3a7)]==='bottom'?0x0:-Oe),ze[_0x2f7fe1(0x2db)](_0x8cd591,{'text':this[_0x2f7fe1(0x27b)],'color':this['_color']}),_0x8cd591[_0x2f7fe1(0x261)]());}}var hr=Object[_0x51fc53(0x18f)],lr=Object['getOwnPropertyDescriptor'],_r=(_0x1fbf33,_0x5116ed,_0x223ae4,_0xc060fd)=>{for(var _0x4f2877=_0xc060fd>0x1?void 0x0:_0xc060fd?lr(_0x5116ed,_0x223ae4):_0x5116ed,_0x1139ae=_0x1fbf33['length']-0x1,_0x3068d1;_0x1139ae>=0x0;_0x1139ae--)(_0x3068d1=_0x1fbf33[_0x1139ae])&&(_0x4f2877=(_0xc060fd?_0x3068d1(_0x5116ed,_0x223ae4,_0x4f2877):_0x3068d1(_0x4f2877))||_0x4f2877);return _0xc060fd&&_0x4f2877&&hr(_0x5116ed,_0x223ae4,_0x4f2877),_0x4f2877;},Me=(_0x8da0eb,_0x1c16b9)=>(_0x3312c8,_0x2ea4ec)=>_0x1c16b9(_0x3312c8,_0x2ea4ec,_0x8da0eb);const ur=0x1389;let $e=class extends _0x521c86{constructor(_0x43d546,_0x57d2ff,_0x55fefa,_0x1e6a10){const _0xf4fce9=_0x51fc53;super(),l(this,'_cursors',new Set()),l(this,'_lastPointer',null),(this['_collabCursorController']=_0x43d546,this['_univerInstanceService']=_0x57d2ff,this[_0xf4fce9(0x27d)]=_0x55fefa,this[_0xf4fce9(0x16b)]=_0x1e6a10,this['_init']());}get['_sheetSkeletonManagerService'](){const _0x299fa8=_0x51fc53;return this[_0x299fa8(0x27d)][_0x299fa8(0x308)](this[_0x299fa8(0xa0)][_0x299fa8(0x1c4)](_0x3504ec[_0x299fa8(0x351)])['getUnitId']())[_0x299fa8(0xd9)](_0x358cc7);}get[_0x51fc53(0x8a)](){const _0x697036=_0x51fc53;return this['_univerInstanceService'][_0x697036(0x1c4)](_0x3504ec[_0x697036(0x351)])[_0x697036(0x244)]();}[_0x51fc53(0x380)](){const _0x339dc1=_0x51fc53;this[_0x339dc1(0x395)]['currentSkeleton$'][_0x339dc1(0x2c3)](_0x430c3c(this[_0x339dc1(0x200)]),_0xb49a6c(_0x26becb=>{const _0x28a310=_0x339dc1;if(_0x26becb){const _0x519ce9=_0x26becb[_0x28a310(0x10b)];return _0x73b353(this[_0x28a310(0x84)][_0x28a310(0x2bc)](this[_0x28a310(0x8a)]),this['_themeService'][_0x28a310(0x1a7)])[_0x28a310(0x2c3)](_0x1db2aa(([_0x15e3ad,_0x5c2de4])=>{const _0x1cf9f2=_0x28a310,_0x16c63b=new Map();return _0x15e3ad[_0x1cf9f2(0x124)]((_0x43ce0e,_0x342e24)=>{const _0x53c782=_0x1cf9f2;if(_0x43ce0e[_0x53c782(0x268)]===_0x519ce9){const _0x569709={..._0x43ce0e};_0x569709['color']=_0x5c2de4[_0x43ce0e[_0x53c782(0x35d)]],_0x16c63b[_0x53c782(0x38f)](_0x342e24,_0x569709);}}),{'skeleton':_0x26becb,'cursors':_0x16c63b};}));}return _0xdadc8c({'skeleton':null,'cursors':new Map()});}))[_0x339dc1(0x202)](({skeleton:_0x37d754,cursors:_0x5286eb})=>{const _0x401e8f=_0x339dc1;this[_0x401e8f(0xb9)](),_0x37d754&&this['_updateCollabCursors'](_0x37d754,_0x5286eb);}),this[_0x339dc1(0x395)][_0x339dc1(0x391)]['subscribe'](_0x308078=>{const _0x42689b=_0x339dc1;if(_0x308078==null)return;const {skeleton:_0x41ea67}=_0x308078,_0xe670e6=this[_0x42689b(0x27d)][_0x42689b(0x308)](this['_unitId']),{scene:_0x573c37}=_0xe670e6;_0x573c37[_0x42689b(0x206)][_0x42689b(0x2d7)](_0x507539(_0x4533b8=>{const _0x4a6fd7=_0x42689b;var _0x5d0432,_0x4d553b;const {offsetX:_0x5478a3,offsetY:_0x2db033}=_0x4533b8,{x:_0x17f3b7,y:_0x1f7907}=_0x573c37['getRelativeCoord'](_0x44f5c0['FromArray']([_0x5478a3,_0x2db033])),{scaleX:_0x17cc86,scaleY:_0x12b64d}=_0x573c37[_0x4a6fd7(0x242)](),_0x36fce9=_0x573c37[_0x4a6fd7(0xb0)](_0x1940ad['VIEW_MAIN']),_0x21fb64=_0x573c37['getScrollXYByRelativeCoords'](_0x44f5c0[_0x4a6fd7(0x17e)]([_0x17f3b7,_0x1f7907]),_0x36fce9),_0x53dbea=_0x41ea67[_0x4a6fd7(0xce)](_0x5478a3,_0x2db033,_0x17cc86,_0x12b64d,_0x21fb64);((_0x5d0432=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x5d0432['column'])===_0x53dbea[_0x4a6fd7(0x1d4)]&&((_0x4d553b=this[_0x4a6fd7(0x1a4)])==null?void 0x0:_0x4d553b[_0x4a6fd7(0x122)])===_0x53dbea[_0x4a6fd7(0x122)]||this[_0x4a6fd7(0xd3)]['forEach'](_0x4057c7=>{_0x4057c7['onMouseMove'](_0x53dbea);});},0x64));});}[_0x51fc53(0xc4)](_0x2fbfa7,_0xb11876){const _0x58da8e=_0x51fc53;var _0x3059d4;const _0x5349a6=(_0x3059d4=this[_0x58da8e(0x395)]['getCurrent']())==null?void 0x0:_0x3059d4['skeleton'];if(!_0x5349a6)return;const _0x40b704=this['_getSheetObject']();if(!_0x40b704)return;this[_0x58da8e(0xd3)][_0x58da8e(0x124)](_0x317dee=>{const _0x203073=_0x58da8e;_0x317dee[_0x203073(0x87)]();});const {scene:_0x219eb3}=_0x40b704,_0x27bc5f=dr(Array[_0x58da8e(0x17c)](_0xb11876[_0x58da8e(0x121)]()))['map'](_0x32bdd9=>{const _0x3b1a7d=_0x58da8e,{color:_0x231419,range:_0x4df615,name:_0x4a67bb,selection:_0x18dfde,sheetID:_0x30322f}=_0x32bdd9,{startColumn:_0x19e03b,startRow:_0x143db8,endColumn:_0x1fcb35,endRow:_0x263bf5}=_0x4df615,_0x1853f5=_0x35114e(_0x143db8,_0x19e03b,_0x219eb3,_0x5349a6),_0x5e7572=_0x35114e(_0x263bf5,_0x1fcb35,_0x219eb3,_0x5349a6),{columnHeaderHeightAndMarginTop:_0x27de2b}=_0x5349a6,{startX:_0x4c30df,startY:_0x3497a0}=_0x1853f5,{endX:_0x1ed194,endY:_0x343bd0}=_0x5e7572,_0x2e394a=_0x1ed194-_0x4c30df,_0x405997=_0x343bd0-_0x3497a0,_0x5e244a={'labelPosition':_0x3497a0-_0x27de2b>=Oe?_0x3b1a7d(0x207):_0x3b1a7d(0x15f),'sheetID':_0x30322f,'range':_0x4df615,'color':_0x231419,'name':_0x4a67bb,'selection':_0x18dfde,'left':_0x4c30df,'top':_0x3497a0,'width':_0x2e394a,'height':_0x405997,'evented':!0x1,'zIndex':ur};return new cr(_0x4a67bb,_0x5e244a);});_0x219eb3[_0x58da8e(0x2d2)](_0x27bc5f,or),this[_0x58da8e(0xd3)]=new Set(_0x27bc5f);}['_removeCollabCursors'](){const _0xfe6433=_0x51fc53;var _0x3f34eb;(_0x3f34eb=this[_0xfe6433(0xd3)])==null||_0x3f34eb[_0xfe6433(0x124)](_0x23c211=>_0x23c211[_0xfe6433(0x232)]());}[_0x51fc53(0xda)](){const _0x10e864=_0x51fc53;return _0x23f9f7(this[_0x10e864(0xa0)],this[_0x10e864(0x27d)]);}};$e=_r([_0x47ad3a(_0x34068b['Steady'],$e),Me(0x0,_0x4a7404(ue)),Me(0x1,_0x373907),Me(0x2,_0x39c4de),Me(0x3,_0x4a7404(_0x522711))],$e);function dr(_0x2c89bc){const _0x1d7afe=_0x51fc53,_0x4592c5=new Map();return _0x2c89bc[_0x1d7afe(0x124)](_0x43e3d2=>{const _0x34d619=_0x1d7afe;if(_0x4592c5['has'](_0x43e3d2[_0x34d619(0x2fa)])){const _0x29fc3d=_0x4592c5['get'](_0x43e3d2[_0x34d619(0x2fa)]);_0x29fc3d[_0x34d619(0x3a4)]+=',\x20'+_0x43e3d2[_0x34d619(0x3a4)];}else _0x4592c5[_0x34d619(0x38f)](_0x43e3d2[_0x34d619(0x2fa)],_0x43e3d2);}),Array[_0x1d7afe(0x17c)](_0x4592c5['values']());}var A=function(){const _0x79621e=_0x51fc53;return A=Object['assign']||function(_0x549077){const _0x3e2223=_0x5e69;for(var _0x26d046,_0x3a3589=0x1,_0x4adb0d=arguments[_0x3e2223(0x2c6)];_0x3a3589<_0x4adb0d;_0x3a3589++){_0x26d046=arguments[_0x3a3589];for(var _0x4941fc in _0x26d046)Object[_0x3e2223(0x1f5)][_0x3e2223(0x30d)][_0x3e2223(0x185)](_0x26d046,_0x4941fc)&&(_0x549077[_0x4941fc]=_0x26d046[_0x4941fc]);}return _0x549077;},A[_0x79621e(0x89)](this,arguments);},fr=function(_0x4b4096,_0xea3534){const _0x3e3353=_0x51fc53;var _0x13001b={};for(var _0x51f7fa in _0x4b4096)Object[_0x3e3353(0x1f5)][_0x3e3353(0x30d)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa)&&_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa)<0x0&&(_0x13001b[_0x51f7fa]=_0x4b4096[_0x51f7fa]);if(_0x4b4096!=null&&typeof Object[_0x3e3353(0xcd)]==_0x3e3353(0xa4)){for(var _0x4f7290=0x0,_0x51f7fa=Object['getOwnPropertySymbols'](_0x4b4096);_0x4f7290<_0x51f7fa[_0x3e3353(0x2c6)];_0x4f7290++)_0xea3534[_0x3e3353(0x3a3)](_0x51f7fa[_0x4f7290])<0x0&&Object['prototype'][_0x3e3353(0x2ec)][_0x3e3353(0x185)](_0x4b4096,_0x51f7fa[_0x4f7290])&&(_0x13001b[_0x51f7fa[_0x4f7290]]=_0x4b4096[_0x51f7fa[_0x4f7290]]);}return _0x13001b;},yt=_0x4ddef2(function(_0x4152db,_0x5b62cd){const _0x1c90e3=_0x51fc53;var _0x795ccf=_0x4152db[_0x1c90e3(0xe5)],_0x58eafc=_0x4152db['id'],_0x276460=_0x4152db['className'],_0x32335e=_0x4152db[_0x1c90e3(0x1d5)],_0x4c297f=fr(_0x4152db,[_0x1c90e3(0xe5),'id',_0x1c90e3(0x221),_0x1c90e3(0x1d5)]),_0x4367ba=_0x1c90e3(0x33a)['concat'](_0x58eafc,'\x20')[_0x1c90e3(0x14b)](_0x276460||'')[_0x1c90e3(0x1a1)](),_0x535ae3=_0x4ff318('_'[_0x1c90e3(0x14b)](Sr()));return Ps(_0x795ccf,''['concat'](_0x58eafc),{'defIds':_0x795ccf[_0x1c90e3(0x3a8)],'idSuffix':_0x535ae3[_0x1c90e3(0x12a)]},A({'ref':_0x5b62cd,'className':_0x4367ba},_0x4c297f),_0x32335e);});function Ps(_0x161100,_0x524be1,_0x61179f,_0x354ec7,_0x344b96){const _0x1202f7=_0x51fc53;return _0x153699(_0x161100['tag'],A(A({'key':_0x524be1},gr(_0x161100,_0x61179f,_0x344b96)),_0x354ec7),(mr(_0x161100,_0x61179f)[_0x1202f7(0x399)]||[])['map'](function(_0x5919b7,_0x5ec9cb){const _0x1cddc1=_0x1202f7;return Ps(_0x5919b7,''[_0x1cddc1(0x14b)](_0x524be1,'-')[_0x1cddc1(0x14b)](_0x161100[_0x1cddc1(0x2a8)],'-')[_0x1cddc1(0x14b)](_0x5ec9cb),_0x61179f,void 0x0,_0x344b96);}));}function gr(_0x2c4255,_0x41dc9a,_0x434256){const _0x3b4b96=_0x51fc53;var _0x3a661b=A({},_0x2c4255[_0x3b4b96(0x2b6)]);_0x434256!=null&&_0x434256[_0x3b4b96(0x145)]&&_0x3a661b[_0x3b4b96(0x29f)]===_0x3b4b96(0x145)&&(_0x3a661b['fill']=_0x434256[_0x3b4b96(0x145)]);var _0x3836a5=_0x41dc9a[_0x3b4b96(0x3a8)];return!_0x3836a5||_0x3836a5[_0x3b4b96(0x2c6)]===0x0||(_0x2c4255[_0x3b4b96(0x2a8)]===_0x3b4b96(0xae)&&_0x3a661b['xlink:href']&&(_0x3a661b['xlink:href']=_0x3a661b[_0x3b4b96(0x3af)]+_0x41dc9a['idSuffix']),Object[_0x3b4b96(0xfa)](_0x3a661b)[_0x3b4b96(0x124)](function(_0x16546e){const _0x1262e4=_0x3b4b96;var _0x542b83=_0x16546e[0x0],_0x2849e1=_0x16546e[0x1];typeof _0x2849e1=='string'&&(_0x3a661b[_0x542b83]=_0x2849e1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1262e4(0x14b)](_0x41dc9a[_0x1262e4(0x2b9)],')')));})),_0x3a661b;}function mr(_0x758884,_0x189473){const _0x2127ae=_0x51fc53;var _0x35dc68,_0x229f61=_0x189473[_0x2127ae(0x3a8)];return!_0x229f61||_0x229f61[_0x2127ae(0x2c6)]===0x0?_0x758884:_0x758884['tag']===_0x2127ae(0x264)&&(!((_0x35dc68=_0x758884[_0x2127ae(0x399)])===null||_0x35dc68===void 0x0)&&_0x35dc68[_0x2127ae(0x2c6)])?A(A({},_0x758884),{'children':_0x758884['children'][_0x2127ae(0xab)](function(_0x2e403f){const _0x289a73=_0x2127ae;return typeof _0x2e403f['attrs']['id']==_0x289a73(0x288)&&_0x229f61&&_0x229f61[_0x289a73(0x3a3)](_0x2e403f[_0x289a73(0x2b6)]['id'])>-0x1?A(A({},_0x2e403f),{'attrs':A(A({},_0x2e403f['attrs']),{'id':_0x2e403f['attrs']['id']+_0x189473[_0x289a73(0x2b9)]})}):_0x2e403f;})}):_0x758884;}function Sr(){const _0x3ae5ab=_0x51fc53;return Math[_0x3ae5ab(0x2ad)]()[_0x3ae5ab(0x1bd)](0x24)[_0x3ae5ab(0x92)](0x2,0x8);}yt[_0x51fc53(0x378)]='UniverIcon';function _0x5e69(_0x30d931,_0xefada2){const _0x18ca5f=_0x18ca();return _0x5e69=function(_0x5e69b9,_0x441c8c){_0x5e69b9=_0x5e69b9-0x80;let _0x458a81=_0x18ca5f[_0x5e69b9];return _0x458a81;},_0x5e69(_0x30d931,_0xefada2);}var vr={'tag':_0x51fc53(0x2a1),'attrs':{'fill':_0x51fc53(0x266),'viewBox':'0\x200\x2016\x2016','width':_0x51fc53(0x146),'height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x3b8)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':_0x51fc53(0x26c),'strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51fc53(0x34b)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d)}}]}]}],'defIds':[_0x51fc53(0x34b)]},Ns=_0x4ddef2(function(_0x109bf0,_0x4d8066){const _0xb6655c=_0x51fc53;return _0x153699(yt,Object[_0xb6655c(0x219)]({},_0x109bf0,{'id':_0xb6655c(0xc1),'ref':_0x4d8066,'icon':vr}));});Ns[_0x51fc53(0x378)]=_0x51fc53(0x96);var pr={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x51fc53(0x146)},'children':[{'tag':'g','attrs':{'clipPath':_0x51fc53(0x140)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'stroke':_0x51fc53(0x19f),'d':_0x51fc53(0x233),'strokeLinecap':_0x51fc53(0x26c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51fc53(0x264),'attrs':{},'children':[{'tag':_0x51fc53(0x251),'attrs':{'id':_0x51fc53(0x1d1)},'children':[{'tag':_0x51fc53(0x37a),'attrs':{'fill':_0x51fc53(0x234),'d':_0x51fc53(0x22d),'transform':_0x51fc53(0xf5)}}]}]}],'defIds':[_0x51fc53(0x1d1)]},Ms=_0x4ddef2(function(_0x4c081f,_0x288b96){const _0xca04e9=_0x51fc53;return _0x153699(yt,Object[_0xca04e9(0x219)]({},_0x4c081f,{'id':'on-line-single','ref':_0x288b96,'icon':pr}));});Ms[_0x51fc53(0x378)]=_0x51fc53(0x1c0);const Ir=_0x51fc53(0x238),Er=_0x51fc53(0x325),Cr=_0x51fc53(0x2b5),br=_0x51fc53(0x1a0),Rr=_0x51fc53(0x2bf),ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0xc36a94){const _0x573b10=_0x51fc53;switch(_0xc36a94){case P[_0x573b10(0x319)]:return _0x573b10(0x23e);case P[_0x573b10(0x20f)]:return _0x573b10(0xa6);case P[_0x573b10(0x252)]:return'collabStatus.fetchMiss';case P[_0x573b10(0xeb)]:return _0x573b10(0x3bc);case P[_0x573b10(0x394)]:case P[_0x573b10(0x180)]:case P['AWAITING_WITH_PENDING']:return _0x573b10(0x34d);case P['SYNCED']:return _0x573b10(0x107);}}function Or(_0x4f956d){const _0x5f5983=_0x51fc53,{status$:_0x230f30}=_0x4f956d,_0x331352=_0x282297(_0x230f30,P['NOT_COLLAB']),_0x33bfd0=_0x1d48ce(_0x201091),_0x38a066=_0x331352!==P[_0x5f5983(0x319)],_0x112ae7=_0x33bfd0['t'](Tr(_0x331352)),_0x4b19dd=_0x1a2218(ve[_0x5f5983(0x222)],{[ve[_0x5f5983(0x1d9)]]:_0x38a066,[ve[_0x5f5983(0x2fb)]]:!_0x38a066}),_0x4bac27=_0x38a066?_0x1c416c['createElement'](Ms,null):_0x1c416c[_0x5f5983(0x290)](Ns,null);return _0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':_0x4b19dd},_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x195)]},_0x4bac27),_0x1c416c[_0x5f5983(0x290)](_0x5f5983(0x341),{'className':ve[_0x5f5983(0x15a)]},_0x112ae7));}var Dr=Object[_0x51fc53(0x18f)],wr=Object[_0x51fc53(0x340)],Pr=(_0x2a247,_0x6d9707,_0x222b8e,_0x2b8ebe)=>{for(var _0x434790=_0x2b8ebe>0x1?void 0x0:_0x2b8ebe?wr(_0x6d9707,_0x222b8e):_0x6d9707,_0x146a4c=_0x2a247['length']-0x1,_0x4d9272;_0x146a4c>=0x0;_0x146a4c--)(_0x4d9272=_0x2a247[_0x146a4c])&&(_0x434790=(_0x2b8ebe?_0x4d9272(_0x6d9707,_0x222b8e,_0x434790):_0x4d9272(_0x434790))||_0x434790);return _0x2b8ebe&&_0x434790&&Dr(_0x6d9707,_0x222b8e,_0x434790),_0x434790;},Ae=(_0x18fc78,_0x83c89)=>(_0x39da67,_0x4f4f79)=>_0x83c89(_0x39da67,_0x4f4f79,_0x18fc78);let je=class extends _0x10a29c{constructor(_0x455b1f,_0x4c2f54,_0x25fb6c,_0x3ef996){const _0x5b5f8f=_0x51fc53;super(),l(this,_0x5b5f8f(0x22f),new _0x5d7d96(P['NOT_COLLAB'])),(this['_univerInstanceService']=_0x455b1f,this['_uiPartsService']=_0x4c2f54,this[_0x5b5f8f(0x342)]=_0x25fb6c,this[_0x5b5f8f(0x9e)]=_0x3ef996,this['_initStatusComponent'](),this[_0x5b5f8f(0x174)]());}['_initStatusComponent'](){const _0x490279=_0x51fc53;this[_0x490279(0x294)](this[_0x490279(0xd4)][_0x490279(0x3b3)](_0x4e424f[_0x490279(0x23f)],()=>_0x50255b(Nr({'status$':this[_0x490279(0x22f)][_0x490279(0xc8)]()}),this[_0x490279(0x342)])));}['_initStatusListener'](){const _0x12adb9=_0x51fc53;this[_0x12adb9(0x294)](_0x2f2f24(this['_univerInstanceService']['focused$']['pipe'](_0x8b3a32(()=>{const _0x3be649=_0x12adb9,_0x3d22f2=this[_0x3be649(0xa0)]['getFocusedUnit']();return _0x3d22f2?this[_0x3be649(0x9e)]['getCollabEntity$'](_0x3d22f2['getUnitId']()):_0xdadc8c(null);}),_0x8b3a32(_0x3670b1=>_0x3670b1?_0x3670b1[_0x12adb9(0x214)]:_0xdadc8c(P['NOT_COLLAB'])))[_0x12adb9(0x202)](_0x181662=>{const _0x5e5c1f=_0x12adb9;this[_0x5e5c1f(0x22f)][_0x5e5c1f(0x275)](_0x181662);})));}};je=Pr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],je),Ae(0x0,_0x373907),Ae(0x1,_0x117aca),Ae(0x2,_0x4a7404(_0x44b6b8)),Ae(0x3,_0x4a7404(Ee))],je);function Nr(_0x5a4154){const {status$:_0x2f96fb}=_0x5a4154;return function(){return _0x1c416c['createElement'](Or,{'status$':_0x2f96fb});};}const As=_0xf73999(_0x51fc53(0x301));var Mr=Object[_0x51fc53(0x18f)],Ar=Object[_0x51fc53(0x340)],yr=(_0x51e44c,_0x2b1ebf,_0x483dae,_0x5f03c3)=>{const _0x38020f=_0x51fc53;for(var _0x71929f=_0x5f03c3>0x1?void 0x0:_0x5f03c3?Ar(_0x2b1ebf,_0x483dae):_0x2b1ebf,_0x1bc5dc=_0x51e44c[_0x38020f(0x2c6)]-0x1,_0x1a6a17;_0x1bc5dc>=0x0;_0x1bc5dc--)(_0x1a6a17=_0x51e44c[_0x1bc5dc])&&(_0x71929f=(_0x5f03c3?_0x1a6a17(_0x2b1ebf,_0x483dae,_0x71929f):_0x1a6a17(_0x71929f))||_0x71929f);return _0x5f03c3&&_0x71929f&&Mr(_0x2b1ebf,_0x483dae,_0x71929f),_0x71929f;},ce=(_0x2ff182,_0x23b1cd)=>(_0x1bb43b,_0x2a54be)=>_0x23b1cd(_0x1bb43b,_0x2a54be,_0x2ff182);let He=class extends _0x521c86{constructor(_0x1f4552,_0x25ad50,_0x3b73f9,_0x415fa9,_0x35c61a,_0xddd937){const _0x34c295=_0x51fc53;super(),this[_0x34c295(0x279)]=_0x1f4552,this[_0x34c295(0x37c)]=_0x25ad50,this[_0x34c295(0x113)]=_0x3b73f9,this[_0x34c295(0x284)]=_0x415fa9,this[_0x34c295(0x1e5)]=_0x35c61a,_0xddd937?_0xddd937==null||_0xddd937[_0x34c295(0x1b3)]()[_0x34c295(0xf4)](()=>this[_0x34c295(0x380)]()):(this[_0x34c295(0x37c)][_0x34c295(0x35e)]('[DataLoaderController]',_0x34c295(0x85)),this[_0x34c295(0x380)]());}async[_0x51fc53(0x380)](){const _0x2ded31=_0x51fc53,_0x24f778=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x387)),_0x19c660=this[_0x2ded31(0x279)][_0x2ded31(0x22e)](_0x2ded31(0x2cd));if(!_0x24f778||!_0x19c660){this[_0x2ded31(0x37c)][_0x2ded31(0x35e)](_0x2ded31(0x3ac),_0x2ded31(0x184));return;}switch(Number(_0x19c660)){case H[_0x2ded31(0x351)]:{const _0x2064a4=await this['_loadSheet'](_0x24f778);this[_0x2ded31(0x345)](_0x2064a4);break;}case H[_0x2ded31(0x32c)]:{await this[_0x2ded31(0x203)](_0x24f778);break;}default:{this['_logService'][_0x2ded31(0x24d)]('[DataLoaderController]',_0x2ded31(0x277));break;}}}async[_0x51fc53(0x345)](_0x50a5e9){const _0x3e06ab=_0x51fc53;await this[_0x3e06ab(0x12c)](_0x50a5e9),_0x50a5e9[_0x3e06ab(0x354)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](_0x553bb4=>{const _0x574176=_0x3e06ab;_0x553bb4&&this[_0x574176(0x25b)](_0x553bb4);}),this[_0x3e06ab(0x279)][_0x3e06ab(0xba)][_0x3e06ab(0x2c3)](_0x1603a2(this[_0x3e06ab(0x200)]))[_0x3e06ab(0x202)](()=>this['_updateSubUnitFromURLParams'](_0x50a5e9));}[_0x51fc53(0x25b)](_0x506a2b,_0x3bdb78=!0x1){const _0x1b4205=_0x51fc53,_0x185655=this[_0x1b4205(0x279)][_0x1b4205(0x22e)]('subunit');_0x506a2b[_0x1b4205(0x1ef)]()!==_0x185655&&this[_0x1b4205(0x279)][_0x1b4205(0x28f)](_0x1b4205(0x316),_0x506a2b['getSheetId'](),_0x3bdb78);}async['_updateSubUnitFromURLParams'](_0x3f4eb2){const _0xb156e0=_0x51fc53;var _0x300e7b;const _0x5e6a73=this[_0xb156e0(0x279)][_0xb156e0(0x22e)](_0xb156e0(0x316));if(!_0x5e6a73||!_0x3f4eb2[_0xb156e0(0x3a9)](_0x5e6a73)){const _0x5aa068=_0x3f4eb2[_0xb156e0(0x24b)]()[0x0],_0x14efbf=_0x3f4eb2[_0xb156e0(0x3a9)](_0x5aa068);if(!_0x14efbf)return;this['_updateURLWithCurrentState'](_0x14efbf,!0x0),await this[_0xb156e0(0x113)][_0xb156e0(0xaa)](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5aa068});return;}((_0x300e7b=_0x3f4eb2['getActiveSheet']())==null?void 0x0:_0x300e7b[_0xb156e0(0x1ef)]())!==_0x5e6a73&&await this[_0xb156e0(0x113)]['executeCommand'](_0x1c5f90['id'],{'unitId':_0x3f4eb2['getUnitId'](),'subUnitId':_0x5e6a73});}async[_0x51fc53(0x29d)](_0x1ff1b8){const _0x48b6ce=_0x51fc53;let _0x50a719=0x0;const _0x40fc5f=await this[_0x48b6ce(0x284)]['loadOfflineData'](_0x1ff1b8);return _0x40fc5f&&(_0x40fc5f[_0x48b6ce(0x188)]||_0x40fc5f[_0x48b6ce(0xc7)][_0x48b6ce(0x2c6)]!==0x0)&&(_0x50a719=_0x40fc5f[_0x48b6ce(0x1eb)]),_0x50a719===0x0&&this[_0x48b6ce(0x37c)][_0x48b6ce(0x35e)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x1ff1b8,_0x50a719);}async[_0x51fc53(0x203)](_0x430c00){const _0x48f4fc=_0x51fc53;let _0x198595=0x0;const _0x44481b=await this['_localCacheService'][_0x48f4fc(0x2e5)](_0x430c00);return _0x44481b&&(_0x44481b[_0x48f4fc(0x188)]||_0x44481b['mutations'][_0x48f4fc(0x2c6)]!==0x0)&&(_0x198595=_0x44481b['rev']),_0x198595===0x0&&this[_0x48f4fc(0x37c)][_0x48f4fc(0x35e)](_0x48f4fc(0x3ac),_0x48f4fc(0x2fd)),this[_0x48f4fc(0x1e5)][_0x48f4fc(0x333)](_0x430c00,_0x198595);}};He=yr([_0x47ad3a(_0x34068b[_0x51fc53(0x11d)],He),ce(0x0,As),ce(0x1,_0x3cb271),ce(0x2,_0x568418),ce(0x3,_0x4a7404(D)),ce(0x4,_0x4a7404(_0x3cc45f)),ce(0x5,_0x19d484(_0x34d98a))],He);var Ur=Object['defineProperty'],Lr=Object[_0x51fc53(0x340)],$r=(_0x1ce377,_0x5d8daf,_0x4de595,_0x5ab057)=>{const _0x36d585=_0x51fc53;for(var _0x275d5c=_0x5ab057>0x1?void 0x0:_0x5ab057?Lr(_0x5d8daf,_0x4de595):_0x5d8daf,_0x496754=_0x1ce377[_0x36d585(0x2c6)]-0x1,_0x493bf2;_0x496754>=0x0;_0x496754--)(_0x493bf2=_0x1ce377[_0x496754])&&(_0x275d5c=(_0x5ab057?_0x493bf2(_0x5d8daf,_0x4de595,_0x275d5c):_0x493bf2(_0x275d5c))||_0x275d5c);return _0x5ab057&&_0x275d5c&&Ur(_0x5d8daf,_0x4de595,_0x275d5c),_0x275d5c;},Qt=(_0x37c3f1,_0x2b9945)=>(_0x3356e6,_0x384723)=>_0x2b9945(_0x3356e6,_0x384723,_0x37c3f1);const jr='DEFAULT_FILE_NAME',Hr=_0x51fc53(0x29a);let xe=class extends _0x10a29c{constructor(_0x37cdb1,_0x240c4a){const _0x1dd3f7=_0x51fc53;super(),this[_0x1dd3f7(0xa0)]=_0x37cdb1,this['_configService']=_0x240c4a,this['_init']();}[_0x51fc53(0x380)](){const _0xfe6601=_0x51fc53;this[_0xfe6601(0x294)](_0x2f2f24(this['_univerInstanceService'][_0xfe6601(0x111)][_0xfe6601(0x202)](()=>{const _0x31a84b=_0xfe6601;var _0x1292e7;const _0x533c53=this['_univerInstanceService'][_0x31a84b(0x2ed)]();let _0x3ed0c4=(_0x1292e7=this[_0x31a84b(0x2c4)][_0x31a84b(0xf0)](jr))!=null?_0x1292e7:Hr;_0x533c53 instanceof _0x3b5c47&&(_0x3ed0c4=_0x533c53[_0x31a84b(0x3a4)]),document[_0x31a84b(0x1cf)]=_0x3ed0c4;})));}};xe=$r([_0x47ad3a(_0x34068b[_0x51fc53(0x2d1)],xe),Qt(0x0,_0x373907),Qt(0x1,_0x5977ca)],xe);var xr=Object[_0x51fc53(0x18f)],Fr=Object[_0x51fc53(0x340)],Br=(_0x43b690,_0x2eb3d8,_0x33a336,_0x426f83)=>{const _0x534fd5=_0x51fc53;for(var _0x24b915=_0x426f83>0x1?void 0x0:_0x426f83?Fr(_0x2eb3d8,_0x33a336):_0x2eb3d8,_0x1255e5=_0x43b690[_0x534fd5(0x2c6)]-0x1,_0x16118e;_0x1255e5>=0x0;_0x1255e5--)(_0x16118e=_0x43b690[_0x1255e5])&&(_0x24b915=(_0x426f83?_0x16118e(_0x2eb3d8,_0x33a336,_0x24b915):_0x16118e(_0x24b915))||_0x24b915);return _0x426f83&&_0x24b915&&xr(_0x2eb3d8,_0x33a336,_0x24b915),_0x24b915;},es=(_0x244d66,_0x392929)=>(_0x3748d4,_0x44fe15)=>_0x392929(_0x3748d4,_0x44fe15,_0x244d66);let St=class{constructor(_0x795034,_0x2352e6){const _0x4e8660=_0x51fc53;this[_0x4e8660(0x2c4)]=_0x795034,this[_0x4e8660(0x322)]=_0x2352e6;}async['getUnitOnRev'](_0x3ab2de,_0xc9e530){const _0x4d3fa0=_0x51fc53;var _0x3e2fcd;const {unitID:_0x4e90a4,type:_0x1e485f,revision:_0x125bea=0x0}=_0xc9e530,_0x51bafb=this['_getSnapshotAPIPrefix']()+'/'+_0x1e485f+_0x4d3fa0(0xea)+_0x4e90a4+_0x4d3fa0(0x20e)+(_0x125bea===0x1?0x0:_0x125bea),_0x5b1371=(await this[_0x4d3fa0(0x322)][_0x4d3fa0(0x151)](_0x51bafb))['body'],_0x2be83f=(_0x3e2fcd=_0x5b1371[_0x4d3fa0(0x99)])==null?void 0x0:_0x3e2fcd[_0x4d3fa0(0x23b)];if(_0x2be83f){const _0x13647f=_0x2be83f==null?void 0x0:_0x2be83f[_0x4d3fa0(0x2b0)],_0x241104=_0x56aec7[_0x4d3fa0(0x2cc)](_0x5ad4b1(_0x13647f));_0x2be83f['originalMeta']=_0x241104,Object[_0x4d3fa0(0xfa)](_0x2be83f[_0x4d3fa0(0x1b6)])[_0x4d3fa0(0x124)](([,_0x488581])=>{const _0x571898=_0x4d3fa0,_0x989d14=_0x488581[_0x571898(0x2b0)],_0x2cec61=_0x56aec7[_0x571898(0x2cc)](_0x5ad4b1(_0x989d14));_0x488581[_0x571898(0x2b0)]=_0x2cec61;});}return _0x5b1371;}async['getSheetBlock'](_0x221d6e,_0x5c783e){const _0x34c514=_0x51fc53,{unitID:_0x20350f,type:_0x43208e,blockID:_0x38a3dc}=_0x5c783e,_0xb5c9f7=this[_0x34c514(0x33b)]()+'/'+_0x43208e+_0x34c514(0xea)+_0x20350f+_0x34c514(0x8d)+_0x38a3dc;return(await this['_httpService']['get'](_0xb5c9f7))[_0x34c514(0x211)];}async[_0x51fc53(0x28a)](_0x1d821a,_0x2bc082){const _0x7b4403=_0x51fc53,{unitID:_0x56673c,type:_0x4051c9,from:_0x128600,to:_0x12a5f8}=_0x2bc082,_0x290ee7=this[_0x7b4403(0x33b)]()+'/'+_0x4051c9+_0x7b4403(0xea)+_0x56673c+_0x7b4403(0x31d)+_0x128600+_0x7b4403(0x350)+_0x12a5f8;return(await this[_0x7b4403(0x322)]['get'](_0x290ee7))['body'];}[_0x51fc53(0xbb)](){const _0x4e9cbe=_0x51fc53;var _0x3d17f8;return(_0x3d17f8=this[_0x4e9cbe(0x2c4)][_0x4e9cbe(0xf0)](Ki))!=null?_0x3d17f8:this[_0x4e9cbe(0x33b)]();}[_0x51fc53(0x33b)](){const _0x4d2c34=_0x51fc53;var _0x6a4d0e;return(_0x6a4d0e=this['_configService'][_0x4d2c34(0xf0)](Gi))!=null?_0x6a4d0e:Yi;}async[_0x51fc53(0x254)](_0x5aab87,_0xffd7){const _0x508352=_0x51fc53,_0x19770a=_0x508352(0x38a)+_0xffd7[_0x508352(0x2cd)]+_0x508352(0xea)+_0xffd7[_0x508352(0x1b1)]+_0x508352(0x2f3);return(await this[_0x508352(0x322)][_0x508352(0x151)](_0x19770a,{'params':{'resourceId':JSON[_0x508352(0x2ea)](_0xffd7[_0x508352(0x2d3)])}}))['body'];}[_0x51fc53(0x1d7)](){const _0x1a18ca=_0x51fc53;throw new Error(_0x1a18ca(0x392));}[_0x51fc53(0x230)](){const _0x184597=_0x51fc53;throw new Error(_0x184597(0x392));}[_0x51fc53(0x369)](){const _0x1f601b=_0x51fc53;throw new Error(_0x1f601b(0x392));}};St=Br([es(0x0,_0x5977ca),es(0x1,_0x4a7404(_0x142257))],St);var kr=Object[_0x51fc53(0x18f)],Vr=Object[_0x51fc53(0x340)],Wr=(_0x2cf364,_0x1b30a4,_0x17ed22,_0x28bf95)=>{const _0x56421c=_0x51fc53;for(var _0x5158a1=_0x28bf95>0x1?void 0x0:_0x28bf95?Vr(_0x1b30a4,_0x17ed22):_0x1b30a4,_0x5a074b=_0x2cf364[_0x56421c(0x2c6)]-0x1,_0x2bc17b;_0x5a074b>=0x0;_0x5a074b--)(_0x2bc17b=_0x2cf364[_0x5a074b])&&(_0x5158a1=(_0x28bf95?_0x2bc17b(_0x1b30a4,_0x17ed22,_0x5158a1):_0x2bc17b(_0x5158a1))||_0x5158a1);return _0x28bf95&&_0x5158a1&&kr(_0x1b30a4,_0x17ed22,_0x5158a1),_0x5158a1;},pe=(_0x3b77c7,_0x5d4d44)=>(_0x529849,_0x2f263b)=>_0x5d4d44(_0x529849,_0x2f263b,_0x3b77c7);let vt=class extends _0x31c064{constructor(_0x3aa2d0,_0x45875b,_0x1a7b6f,_0x13716e,_0x169bd9){const _0x2d4c9a=_0x51fc53;super(_0x3aa2d0,_0x45875b,_0x1a7b6f),this[_0x2d4c9a(0x102)]=_0x13716e,this[_0x2d4c9a(0x37c)]=_0x169bd9;}['transformUndoRedo'](_0x5d4d3d,_0x420bf3){const _0x63f982=_0x51fc53,_0xb30bad=this['_getUndoStack'](_0x5d4d3d);if(_0xb30bad)try{const _0xb4686b=this[_0x63f982(0x13e)](_0xb30bad,_0x420bf3);this[_0x63f982(0x2e8)](_0x5d4d3d,_0xb4686b);}catch(_0x212bec){this[_0x63f982(0x37c)][_0x63f982(0x24d)]('[CollaborationUndoRedoService]',_0x212bec),this[_0x63f982(0x115)](_0x5d4d3d);}const _0x2c305c=this[_0x63f982(0x212)](_0x5d4d3d);if(_0x2c305c)try{const _0x25b781=this[_0x63f982(0x13e)](_0x2c305c,_0x420bf3);this[_0x63f982(0x9b)](_0x5d4d3d,_0x25b781);}catch(_0x6ff79f){this[_0x63f982(0x37c)][_0x63f982(0x24d)](_0x6ff79f),this['_clearRedo'](_0x5d4d3d);}}['_clearUndo'](_0x5dd228){const _0x8b4927=_0x51fc53,_0x5b413f=this[_0x8b4927(0x2ab)](_0x5dd228);_0x5b413f&&(_0x5b413f[_0x8b4927(0x2c6)]=0x0,this['_updateStatus']());}[_0x51fc53(0x28d)](_0x37adb9){const _0x30b986=_0x51fc53,_0x4c8b3a=this[_0x30b986(0x212)](_0x37adb9);_0x4c8b3a&&(_0x4c8b3a[_0x30b986(0x2c6)]=0x0,this[_0x30b986(0x10d)]());}[_0x51fc53(0x2e8)](_0x2ab625,_0x2adda5){const _0x2e7c85=_0x51fc53;this[_0x2e7c85(0x315)][_0x2e7c85(0x38f)](_0x2ab625,_0x2adda5),this[_0x2e7c85(0x10d)]();}['_substituteRedoStack'](_0x6f5f2d,_0x231683){const _0x318bfd=_0x51fc53;this[_0x318bfd(0x371)][_0x318bfd(0x38f)](_0x6f5f2d,_0x231683),this[_0x318bfd(0x10d)]();}['_transformStack'](_0x448282,_0x3c920d){const _0x45310d=_0x51fc53,_0x9391aa=[];let _0x489b8b=_0x3c920d,_0x275dfb=_0x3c920d;for(let _0xcda683=_0x448282['length']-0x1;_0xcda683>=0x0;_0xcda683--){const {unitID:_0x5db419,undoMutations:_0x2a10b0,redoMutations:_0x173387}=_0x448282[_0xcda683],_0x30349c=this[_0x45310d(0x102)][_0x45310d(0x3bd)](_0x489b8b,_0x2a10b0),_0x4749c2=this['_transformService'][_0x45310d(0x3bd)](_0x275dfb,_0x173387);if(_0x4c2f5b(_0x30349c)||_0x4c2f5b(_0x4749c2)){this['_logService'][_0x45310d(0x24d)](_0x45310d(0xbd),'transformStack\x20failed!',_0x30349c,_0x4749c2);break;}_0x489b8b=_0x30349c[_0x45310d(0x3ab)],_0x275dfb=_0x4749c2[_0x45310d(0x3ab)],_0x9391aa[_0x45310d(0x19d)]({'unitID':_0x5db419,'undoMutations':_0x30349c['m2Prime'],'redoMutations':_0x4749c2[_0x45310d(0x30f)]});}return _0x9391aa[_0x45310d(0x204)]();}};vt=Wr([pe(0x0,_0x373907),pe(0x1,_0x568418),pe(0x2,_0x187fc2),pe(0x3,_0x425e9b),pe(0x4,_0x3cb271)],vt);class Gr extends _0x521c86{constructor(){const _0xee9426=_0x51fc53;super(),l(this,_0xee9426(0xba)),this[_0xee9426(0xba)]=_0x1860dc(window,_0xee9426(0x1b9))[_0xee9426(0x2c3)](_0x1603a2(this[_0xee9426(0x200)]),_0xcf2b53(0x1),_0x154121(void 0x0));}[_0x51fc53(0x28f)](_0x4906b2,_0x11a59f,_0x596a9a=!0x1){const _0xbbedff=_0x51fc53,_0x328294=new URL(window[_0xbbedff(0x21e)][_0xbbedff(0x283)]);_0x328294[_0xbbedff(0x24f)]['set'](_0x4906b2,_0x11a59f),_0x596a9a?window[_0xbbedff(0x220)][_0xbbedff(0xe2)]('','',_0x328294[_0xbbedff(0x1bd)]()):window[_0xbbedff(0x220)][_0xbbedff(0x100)]('','',_0x328294[_0xbbedff(0x1bd)]());}[_0x51fc53(0x2bb)](_0x564215,_0x452a9c=!0x1){const _0x4b1fa5=_0x51fc53,_0x383b71=new URL(window[_0x4b1fa5(0x21e)][_0x4b1fa5(0x283)]);_0x383b71[_0x4b1fa5(0x24f)][_0x4b1fa5(0x209)](_0x564215),_0x452a9c?window[_0x4b1fa5(0x220)]['replaceState']('','',_0x383b71[_0x4b1fa5(0x1bd)]()):window[_0x4b1fa5(0x220)][_0x4b1fa5(0x100)]('','',_0x383b71[_0x4b1fa5(0x1bd)]());}[_0x51fc53(0x22e)](_0x4df53e){const _0x25b318=_0x51fc53;var _0x34bfe9;return(_0x34bfe9=new URL(window['location']['href'])[_0x25b318(0x24f)][_0x25b318(0x151)](_0x4df53e))!=null?_0x34bfe9:void 0x0;}}const nt=_0x51fc53(0x3bf),Yr=_0x51fc53(0x1d0),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr=_0x51fc53(0x1c5);class zr{constructor(_0x5b3b58,_0x44b679,_0x15d0f7,_0x3034a3){const _0x76bfed=_0x51fc53;l(this,_0x76bfed(0x35f),[]),l(this,_0x76bfed(0x33f),null),l(this,_0x76bfed(0xa1),null),l(this,_0x76bfed(0x27f),null),l(this,_0x76bfed(0x1c3),null),l(this,'_eventUnsubscribe',null),(this[_0x76bfed(0x189)]=_0x5b3b58,this[_0x76bfed(0x2c9)]=_0x44b679,this[_0x76bfed(0x3ae)]=_0x15d0f7,this[_0x76bfed(0x323)]=_0x3034a3,this[_0x76bfed(0x18a)]());}set['_hover'](_0x36f882){const _0x5a86ef=_0x51fc53;_0x36f882?(this[_0x5a86ef(0x27f)]&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x317)](),this['_textBubble']&&this[_0x5a86ef(0xa1)]['show']()):(this['_anchorDot']&&this[_0x5a86ef(0x27f)][_0x5a86ef(0x25c)](),this[_0x5a86ef(0xa1)]&&this[_0x5a86ef(0xa1)][_0x5a86ef(0x317)]());}[_0x51fc53(0x232)](){const _0x582a7f=_0x51fc53;for(const _0x22a518 of this[_0x582a7f(0x35f)])_0x22a518['dispose']();this[_0x582a7f(0xa1)]&&this[_0x582a7f(0xa1)]['dispose'](),this[_0x582a7f(0x27f)]&&this[_0x582a7f(0x27f)][_0x582a7f(0x232)](),this[_0x582a7f(0x33f)]&&this['_anchor'][_0x582a7f(0x232)](),this[_0x582a7f(0xb3)]&&this[_0x582a7f(0xb3)]();}['_render'](){const _0x2b3224=_0x51fc53,{_docSkeleton:_0x344251,_document:_0x5b9fbb}=this,{color:_0x16170b,name:_0x273f87,ranges:_0x2e431b}=this[_0x2b3224(0x189)],_0x4a42eb=_0x5b9fbb['getOffsetConfig'](),{docsLeft:_0x48cb86,docsTop:_0x5a33b6}=_0x4a42eb,_0x2a5417=new _0x1dca35(_0x4a42eb,_0x344251);for(const {startOffset:_0x1a81d3,endOffset:_0x2de3c7,collapsed:_0x5f0ec4,isActive:_0x22765c}of _0x2e431b){const _0x194e97=_0x344251[_0x2b3224(0x367)](_0x1a81d3),_0xe9f137=_0x344251[_0x2b3224(0x367)](_0x2de3c7);if(_0x22765c){const {contentBoxPointGroup:_0x3bf2d5}=_0x2a5417['getRangePointData'](_0xe9f137,_0xe9f137);if(_0x3bf2d5[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x25e)](_0x16170b,_0x3bf2d5,_0x48cb86,_0x5a33b6,_0x273f87),this['_eventUnsubscribe']=this[_0x2b3224(0x14a)]();}if(!_0x5f0ec4){const {contentBoxPointGroup:_0x26098f}=_0x2a5417[_0x2b3224(0x1cd)](_0x194e97,_0xe9f137);if(_0x26098f[_0x2b3224(0x2c6)]===0x0)continue;this[_0x2b3224(0x262)](_0x16170b,_0x26098f,_0x48cb86,_0x5a33b6);}}}[_0x51fc53(0x25e)](_0x285c9d,_0x58b1a8,_0x4bf05e,_0x16ef25,_0x351c4c){const _0x53dfc4=_0x51fc53,_0x4a180c=this[_0x53dfc4(0x1b5)](_0x58b1a8),{left:_0x3df936,top:_0x4f504d,height:_0x5af7f0}=_0x4a180c,_0x24ed40=this['_getScale'](),_0x14488d=Xr/_0x24ed40,_0x3b46d9=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25,'height':_0x5af7f0,'width':Kr,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':_0x14488d,'stroke':Jr,'evented':!0x0});this['_anchor']=_0x3b46d9,this['_scene'][_0x53dfc4(0x104)](_0x3b46d9,_0x337814);const _0x29f7e5=new _0xbeb8e4(nt+_0x4cfbd7['generateRandomId'](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-rt/0x2,'height':rt,'width':rt,'fill':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'strokeWidth':0x0,'stroke':_0x285c9d||_0x43e11f(_0x131343[_0x53dfc4(0x2b4)],0x0),'evented':!0x1});this[_0x53dfc4(0x27f)]=_0x29f7e5,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0x29f7e5,_0x337814);const _0xcab3c4=new ze(nt+_0x4cfbd7[_0x53dfc4(0x300)](ye),{'left':_0x3df936+_0x4bf05e-_0x14488d,'top':_0x4f504d+_0x16ef25-Oe,'text':_0x351c4c,'color':_0x285c9d});this[_0x53dfc4(0xa1)]=_0xcab3c4,this[_0x53dfc4(0x2c9)][_0x53dfc4(0x104)](_0xcab3c4,_0x337814),this[_0x53dfc4(0xcc)]=!0x1;}[_0x51fc53(0x14a)](){const _0x463eea=_0x51fc53,_0xe36abd=this[_0x463eea(0x33f)][_0x463eea(0x169)][_0x463eea(0x2d7)](()=>{this['_hover']=!0x0;}),_0x35ac9a=this['_anchor'][_0x463eea(0x3b1)]['subscribeEvent'](()=>{const _0x8d9d23=_0x463eea;this[_0x8d9d23(0x1c3)]&&clearTimeout(this[_0x8d9d23(0x1c3)]),this['_hideTimer']=setTimeout(()=>{const _0x2a6c33=_0x8d9d23;this[_0x2a6c33(0xcc)]=!0x1;},0x7d0);});return()=>{const _0x355fdd=_0x463eea;_0xe36abd[_0x355fdd(0x11a)](),_0x35ac9a[_0x355fdd(0x11a)]();};}[_0x51fc53(0x262)](_0x45c19e,_0x31005a,_0xe1c3f0,_0x208414){const _0x3a0318=_0x51fc53,_0xf823d=new _0x3dc381(_0x45c19e)[_0x3a0318(0x375)](0.2)[_0x3a0318(0x313)](),_0x5a3d3b=new _0x3c2aad(Yr+_0x4cfbd7[_0x3a0318(0x300)](ye),{'pointsGroup':_0x31005a,'fill':_0xf823d||_0x43e11f(_0x131343[_0x3a0318(0x2b4)],0.2),'left':_0xe1c3f0,'top':_0x208414,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a0318(0x35f)][_0x3a0318(0x19d)](_0x5a3d3b),this[_0x3a0318(0x2c9)][_0x3a0318(0x104)](_0x5a3d3b,_0x337814);}[_0x51fc53(0x1b5)](_0x4098da){const _0x31ae0b=_0x4098da[0x0],_0x491a82=_0x31ae0b[0x0],_0x40c974=_0x31ae0b[0x2],{x:_0x2d6929,y:_0x11a22e}=_0x491a82,{x:_0x2f0026,y:_0x1c04a6}=_0x40c974;return{'left':_0x2d6929,'top':_0x11a22e,'width':_0x2f0026-_0x2d6929,'height':_0x1c04a6-_0x11a22e};}[_0x51fc53(0x15c)](){const _0x60938d=_0x51fc53,{scaleX:_0x5e995c,scaleY:_0x333b77}=this['_scene'][_0x60938d(0x242)]();return Math[_0x60938d(0x216)](_0x5e995c,_0x333b77);}}var Zr=Object[_0x51fc53(0x18f)],qr=Object[_0x51fc53(0x340)],Qr=(_0x4dd2bf,_0x2d4317,_0x41fbed,_0x1f3d6d)=>{const _0x4d8756=_0x51fc53;for(var _0x2b95b1=_0x1f3d6d>0x1?void 0x0:_0x1f3d6d?qr(_0x2d4317,_0x41fbed):_0x2d4317,_0x45ace2=_0x4dd2bf[_0x4d8756(0x2c6)]-0x1,_0x5cfa7;_0x45ace2>=0x0;_0x45ace2--)(_0x5cfa7=_0x4dd2bf[_0x45ace2])&&(_0x2b95b1=(_0x1f3d6d?_0x5cfa7(_0x2d4317,_0x41fbed,_0x2b95b1):_0x5cfa7(_0x2b95b1))||_0x2b95b1);return _0x1f3d6d&&_0x2b95b1&&Zr(_0x2d4317,_0x41fbed,_0x2b95b1),_0x2b95b1;},Ie=(_0x17d987,_0x3d87d0)=>(_0x2c24b7,_0x22380c)=>_0x3d87d0(_0x2c24b7,_0x22380c,_0x17d987);let Fe=class extends _0x521c86{constructor(_0x34c42b,_0x2527df,_0x58cbde,_0x566d10,_0x1ebbea){const _0x2ecbb8=_0x51fc53;super(),l(this,_0x2ecbb8(0xd3),[]),(this[_0x2ecbb8(0x84)]=_0x34c42b,this[_0x2ecbb8(0xa0)]=_0x2527df,this[_0x2ecbb8(0x27d)]=_0x58cbde,this[_0x2ecbb8(0x33d)]=_0x566d10,this[_0x2ecbb8(0x16b)]=_0x1ebbea,this[_0x2ecbb8(0x380)]());}[_0x51fc53(0x380)](){const _0x17cf66=_0x51fc53;this['_docSkeletonManagerService'][_0x17cf66(0x391)][_0x17cf66(0x2c3)](_0x430c3c(this[_0x17cf66(0x200)]),_0xb49a6c(_0x479d67=>{const _0x540c3d=_0x17cf66;if(_0x479d67){const _0x4e9172=_0x479d67[_0x540c3d(0x38b)]()[_0x540c3d(0x1d8)]()['getUnitId']();return _0x73b353(this[_0x540c3d(0x84)]['getCollabCursors$'](_0x4e9172),this['_themeService'][_0x540c3d(0x1a7)])['pipe'](_0x1db2aa(([_0x5849ec,_0x3fa34e])=>({'skeleton':_0x479d67,'cursors':[..._0x5849ec['values']()][_0x540c3d(0x32d)](_0x3e94e9=>({..._0x3e94e9,'color':_0x3fa34e[_0x3e94e9['color']]}))})));}return _0xdadc8c({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x23c430,cursors:_0x18e555})=>{const _0x3769c0=_0x17cf66;this['_removeCollabCursors'](),_0x23c430&&this[_0x3769c0(0xc4)](_0x23c430,_0x18e555);});}['_updateCollabCursors'](_0xafc56f,_0x410077){const _0x310c98=_0x51fc53,_0x3db473=this['_getDocObject']();if(_0x3db473==null)return;const {scene:_0xebc0b4,document:_0x5bfcdd}=_0x3db473,_0x1c103e=_0x410077[_0x310c98(0xab)](_0x3b6563=>new zr(_0x3b6563,_0xebc0b4,_0xafc56f,_0x5bfcdd));this[_0x310c98(0xd3)]=_0x1c103e;}[_0x51fc53(0xb9)](){const _0x5ce5a1=_0x51fc53;this[_0x5ce5a1(0xd3)][_0x5ce5a1(0x124)](_0x2dc77b=>_0x2dc77b[_0x5ce5a1(0x232)]()),this[_0x5ce5a1(0xd3)]=[];}[_0x51fc53(0x307)](){return _0x3248cd(this['_univerInstanceService'],this['_renderManagerService']);}};Fe=Qr([_0x47ad3a(_0x34068b[_0x51fc53(0x8c)],Fe),Ie(0x0,_0x4a7404(ue)),Ie(0x1,_0x373907),Ie(0x2,_0x39c4de),Ie(0x3,_0x4a7404(_0x46f5a8)),Ie(0x4,_0x4a7404(_0x522711))],Fe);var eo=Object[_0x51fc53(0x18f)],to=Object[_0x51fc53(0x340)],so=(_0x5379dd,_0x8f940d,_0x676140,_0x10c8d3)=>{const _0x171903=_0x51fc53;for(var _0xcfa7d5=_0x10c8d3>0x1?void 0x0:_0x10c8d3?to(_0x8f940d,_0x676140):_0x8f940d,_0x494386=_0x5379dd[_0x171903(0x2c6)]-0x1,_0x5baf05;_0x494386>=0x0;_0x494386--)(_0x5baf05=_0x5379dd[_0x494386])&&(_0xcfa7d5=(_0x10c8d3?_0x5baf05(_0x8f940d,_0x676140,_0xcfa7d5):_0x5baf05(_0xcfa7d5))||_0xcfa7d5);return _0x10c8d3&&_0xcfa7d5&&eo(_0x8f940d,_0x676140,_0xcfa7d5),_0xcfa7d5;},ot=(_0xfa0cab,_0x275708)=>(_0x14fdaf,_0x4fe415)=>_0x275708(_0x14fdaf,_0x4fe415,_0xfa0cab);let Ge=class{constructor(_0x375a7c,_0x5a2bc1,_0x201ceb){const _0x2c7bee=_0x51fc53;this[_0x2c7bee(0x2c4)]=_0x375a7c,this[_0x2c7bee(0x322)]=_0x5a2bc1,this[_0x2c7bee(0x2c7)]=_0x201ceb,this[_0x2c7bee(0x191)]();}[_0x51fc53(0x191)](){const _0x553ec9=_0x51fc53;this[_0x553ec9(0x322)][_0x553ec9(0x194)]({'priority':0x1,'interceptor':(_0x4cbe47,_0x178f40)=>_0x178f40(_0x4cbe47)[_0x553ec9(0x2c3)](_0x22cd34(async _0x152be6=>{const _0x47dea4=_0x553ec9,_0x28d351=_0x152be6;if(_0x28d351['status']===0x191&&window[_0x47dea4(0x10a)](this[_0x47dea4(0x2c7)]['t'](_0x47dea4(0x24c)))){const _0xc573d2=window[_0x47dea4(0x19b)](window['location'][_0x47dea4(0x283)]);window[_0x47dea4(0x21e)][_0x47dea4(0x283)]=this[_0x47dea4(0x2de)]()+_0x47dea4(0x37e)+_0xc573d2;}return _0x28d351;}))});}[_0x51fc53(0x2de)](){const _0x2d1116=_0x51fc53;var _0x5d0f7e;return(_0x5d0f7e=this[_0x2d1116(0x2c4)][_0x2d1116(0xf0)](hn))!=null?_0x5d0f7e:ln;}};Ge=so([ot(0x0,_0x5977ca),ot(0x1,_0x4a7404(_0x142257)),ot(0x2,_0x4a7404(_0x201091))],Ge);var io=Object['defineProperty'],no=Object['getOwnPropertyDescriptor'],ro=(_0xf92792,_0x20849d,_0x50789d,_0x9f8557)=>{const _0x3744d4=_0x51fc53;for(var _0x1b8657=_0x9f8557>0x1?void 0x0:_0x9f8557?no(_0x20849d,_0x50789d):_0x20849d,_0x22207a=_0xf92792[_0x3744d4(0x2c6)]-0x1,_0x806c88;_0x22207a>=0x0;_0x22207a--)(_0x806c88=_0xf92792[_0x22207a])&&(_0x1b8657=(_0x9f8557?_0x806c88(_0x20849d,_0x50789d,_0x1b8657):_0x806c88(_0x1b8657))||_0x1b8657);return _0x9f8557&&_0x1b8657&&io(_0x20849d,_0x50789d,_0x1b8657),_0x1b8657;},ts=(_0x1da48b,_0x2596fc)=>(_0x3486db,_0x2c4f4b)=>_0x2596fc(_0x3486db,_0x2c4f4b,_0x1da48b);const oo='AUTHZ_URL_KEY',ao=_0x51fc53(0x120);let pt=class{constructor(_0x492a0d,_0xaf874f){const _0x3b94c5=_0x51fc53;this[_0x3b94c5(0x330)]=_0x492a0d,this[_0x3b94c5(0x2c4)]=_0xaf874f;}[_0x51fc53(0x1fb)](){const _0x1bd5d3=_0x51fc53;var _0xd7f3bf;return(_0xd7f3bf=this[_0x1bd5d3(0x2c4)][_0x1bd5d3(0xf0)](oo))!=null?_0xd7f3bf:ao;}async['create'](_0x18ebd9){const _0x4c2d47=_0x51fc53,_0x1d05f6=this[_0x4c2d47(0x1fb)]()+'/'+_0x18ebd9[_0x4c2d47(0xe0)]+_0x4c2d47(0xb1);return(await this[_0x4c2d47(0x330)][_0x4c2d47(0x13a)](_0x1d05f6,{'body':_0x18ebd9}))['body'][_0x4c2d47(0x332)]||'';}async['list'](_0xeb91d6){const _0x843e70=_0x51fc53,_0x4b1bf6=this[_0x843e70(0x1fb)]()+'/-/object/list';return(await this[_0x843e70(0x330)]['post'](_0x4b1bf6,{'body':_0xeb91d6}))[_0x843e70(0x211)]['objects'];}async[_0x51fc53(0x1d3)](_0x3f4715){const _0xc9fbc1=_0x51fc53,_0x383900=this[_0xc9fbc1(0x1fb)]()+'/'+_0x3f4715['objectType']+_0xc9fbc1(0x1af)+_0x3f4715['objectID'];await this['_HTTPService'][_0xc9fbc1(0x19a)](_0x383900,{'body':_0x3f4715});}async['allowed'](_0x341733){const _0x75c6ca=_0x51fc53,_0x8dec2f=this[_0x75c6ca(0x1fb)]()+'/'+_0x341733['objectType']+_0x75c6ca(0x1af)+_0x341733[_0x75c6ca(0x332)]+_0x75c6ca(0xb8);return(await this[_0x75c6ca(0x330)][_0x75c6ca(0x13a)](_0x8dec2f,{'body':_0x341733}))[_0x75c6ca(0x211)]['actions'];}async[_0x51fc53(0x160)](_0x469e93){const _0x30b7b9=_0x51fc53,_0x24be86=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x30b7b9(0x330)][_0x30b7b9(0x13a)](_0x24be86,{'body':{'requests':_0x469e93}}))['body'][_0x30b7b9(0x2e0)];}async['listRoles'](_0x489096){const _0x50c006=_0x51fc53,_0x20897e=this['_getAPIPrefixPath']()+'/'+_0x489096[_0x50c006(0xe0)]+'/role',_0x1c3586=await this['_HTTPService'][_0x50c006(0x13a)](_0x20897e,{'body':_0x489096});return{'roles':_0x1c3586[_0x50c006(0x211)][_0x50c006(0x2d9)],'actions':_0x1c3586[_0x50c006(0x211)]['actions']};}async[_0x51fc53(0x31e)](_0x60e51d){const _0x1c7dd6=_0x51fc53,_0x40ed25=this[_0x1c7dd6(0x1fb)]()+_0x1c7dd6(0x270);await this['_HTTPService']['delete'](_0x40ed25,{'params':{'collaboratorID':_0x60e51d[_0x1c7dd6(0x28b)],'objectID':_0x60e51d['objectID'],'unitID':_0x60e51d['unitID']}});}async[_0x51fc53(0x149)](_0x3b843b){const _0x1221fb=_0x51fc53,_0x57ec72=this[_0x1221fb(0x1fb)]()+_0x1221fb(0x270);await this[_0x1221fb(0x330)][_0x1221fb(0x1f9)](_0x57ec72,{'body':_0x3b843b});}async[_0x51fc53(0x1fe)](_0x368d2e){const _0x552394=_0x51fc53,_0xd14a09=this['_getAPIPrefixPath']()+_0x552394(0x270);await this[_0x552394(0x330)][_0x552394(0x13a)](_0xd14a09,{'body':_0x368d2e});}async[_0x51fc53(0x2aa)](_0x34f926){const _0x36bfb0=_0x51fc53,_0x985755=this[_0x36bfb0(0x1fb)]()+_0x36bfb0(0x270);return(await this[_0x36bfb0(0x330)]['get'](_0x985755,{'params':{'objectID':_0x34f926[_0x36bfb0(0x332)],'unitID':_0x34f926[_0x36bfb0(0x1b1)]}}))['body'][_0x36bfb0(0x2ee)];}async['putCollaborators'](_0x12f01f){const _0xc530bf=_0x51fc53,_0x36e10b=this[_0xc530bf(0x1fb)]()+_0xc530bf(0x270);await this['_HTTPService']['put'](_0x36e10b,{'body':_0x12f01f});}};pt=ro([ts(0x0,_0x4a7404(_0x142257)),ts(0x1,_0x4a7404(_0x5977ca))],pt);var co=Object[_0x51fc53(0x18f)],ho=Object[_0x51fc53(0x340)],lo=(_0x2f849a,_0x499b1c,_0x12042c,_0x2a2c3b)=>{const _0x593acc=_0x51fc53;for(var _0x39bdbc=_0x2a2c3b>0x1?void 0x0:_0x2a2c3b?ho(_0x499b1c,_0x12042c):_0x499b1c,_0x4fedfe=_0x2f849a[_0x593acc(0x2c6)]-0x1,_0x1e91f4;_0x4fedfe>=0x0;_0x4fedfe--)(_0x1e91f4=_0x2f849a[_0x4fedfe])&&(_0x39bdbc=(_0x2a2c3b?_0x1e91f4(_0x499b1c,_0x12042c,_0x39bdbc):_0x1e91f4(_0x39bdbc))||_0x39bdbc);return _0x2a2c3b&&_0x39bdbc&&co(_0x499b1c,_0x12042c,_0x39bdbc),_0x39bdbc;},ss=(_0x243cee,_0x20db51)=>(_0x5cb5c7,_0x3b0a79)=>_0x20db51(_0x5cb5c7,_0x3b0a79,_0x243cee);const _o=[_0x51fc53(0x8b),_0x51fc53(0x1ff),_0x51fc53(0x32f),_0x51fc53(0x14f),_0x51fc53(0x297)],uo=0x5*0x400*0x400,fo=_0x51fc53(0x1c6),go=_0x51fc53(0x3a2),mo=_0x51fc53(0x1db),So='/universer-api/file/{fileID}/sign-url';let It=class{constructor(_0x1cbb99,_0x285535){const _0x11a1d7=_0x51fc53;l(this,_0x11a1d7(0x2ac),0x0),l(this,_0x11a1d7(0x227),new _0x5da41e()),l(this,_0x11a1d7(0x170),this['_change$']),l(this,_0x11a1d7(0x190),new Map()),(this[_0x11a1d7(0x322)]=_0x1cbb99,this[_0x11a1d7(0x2c4)]=_0x285535);}[_0x51fc53(0x324)](_0x50f673){const _0x187174=_0x51fc53;this['_waitCount']=_0x50f673,this['_change$'][_0x187174(0x275)](_0x50f673);}['getImageSourceCache'](_0x18c9be,_0x27d119){const _0x3b8f57=_0x51fc53;if(_0x27d119===_0x3a239e['BASE64']){const _0x4abb59=new Image();return _0x4abb59[_0x3b8f57(0xc9)]=_0x18c9be,_0x4abb59;}return this[_0x3b8f57(0x190)][_0x3b8f57(0x151)](_0x18c9be);}[_0x51fc53(0x155)](_0x58b183,_0x36a4b1,_0x1db395){const _0x18e811=_0x51fc53;_0x36a4b1===_0x3a239e['BASE64']||_0x1db395==null||this[_0x18e811(0x190)][_0x18e811(0x38f)](_0x58b183,_0x1db395);}async[_0x51fc53(0x2b2)](_0x1962b1){const _0x37cf0e=_0x51fc53;try{const _0x4e3bae=this[_0x37cf0e(0x9f)](this[_0x37cf0e(0x11c)](),''+_0x1962b1),_0x3c3fcf=(await this[_0x37cf0e(0x322)]['get'](_0x4e3bae))[_0x37cf0e(0x211)];return _0x3c3fcf['error']&&_0x3c3fcf['error']['code']===Cs['OK']?Promise[_0x37cf0e(0x1da)](_0x3c3fcf[_0x37cf0e(0x192)]):Promise['reject'](_0x3c3fcf[_0x37cf0e(0x24d)]);}catch(_0x1fdd62){return Promise[_0x37cf0e(0x1bb)](_0x1fdd62);}}async[_0x51fc53(0x1ae)](_0xf607e){const _0x161f06=_0x51fc53;let _0x246a31='';if(!_o[_0x161f06(0x11e)](_0xf607e[_0x161f06(0x2cd)]))return this['_decreaseWaiting'](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x1e6)]));if(_0xf607e[_0x161f06(0x23a)]>uo)return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x130)]));try{const _0x8b046=new FormData();_0x8b046[_0x161f06(0x168)](_0x161f06(0x117),_0xf607e);const _0x2d4825=this[_0x161f06(0x298)]()+'?size='+_0xf607e[_0x161f06(0x23a)]['toString'](),_0x367de6=await(await fetch(_0x2d4825,{'method':'POST','body':_0x8b046}))[_0x161f06(0xac)]();if(typeof _0x367de6[_0x161f06(0x105)]!=_0x161f06(0x288))return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));_0x246a31=_0x367de6['FileId'];}catch{return this[_0x161f06(0x31a)](),Promise[_0x161f06(0x1bb)](new Error(_0x59dd1c[_0x161f06(0x2c5)]));}return new Promise((_0x583255,_0xd3083c)=>{const _0x49243f=_0x161f06,_0x2a9f48=new FileReader();_0x2a9f48[_0x49243f(0x2da)](_0xf607e),_0x2a9f48[_0x49243f(0xc0)]=_0x36d983=>{const _0x306cc7=_0x49243f;var _0x1c9cc8;const _0x22e939=(_0x1c9cc8=_0x36d983[_0x306cc7(0x24e)])==null?void 0x0:_0x1c9cc8[_0x306cc7(0x1a5)];if(_0x22e939==null){this[_0x306cc7(0x31a)](),_0xd3083c(new Error(_0x59dd1c[_0x306cc7(0x2c5)]));return;}const _0x42e3f6=_0x4cfbd7[_0x306cc7(0x300)](0x6);_0x583255({'imageId':_0x42e3f6,'imageSourceType':_0x3a239e[_0x306cc7(0x1e2)],'source':_0x246a31,'base64Cache':_0x22e939,'status':_0x59dd1c['SUCCUSS']}),this[_0x306cc7(0x31a)]();};});}['_getUploadFileURL'](){const _0x3cc03f=_0x51fc53;var _0x1768f9;return(_0x1768f9=this[_0x3cc03f(0x2c4)][_0x3cc03f(0xf0)](fo))!=null?_0x1768f9:go;}[_0x51fc53(0x11c)](){const _0x496d29=_0x51fc53;var _0x1622ce;return(_0x1622ce=this[_0x496d29(0x2c4)][_0x496d29(0xf0)](mo))!=null?_0x1622ce:So;}[_0x51fc53(0x9f)](_0x13c020,_0x374e5a){const _0x2eed41=_0x51fc53;return _0x13c020[_0x2eed41(0x3b9)](_0x2eed41(0x241),_0x374e5a);}[_0x51fc53(0x31a)](){const _0x71cd14=_0x51fc53;this['_waitCount']-=0x1,this['_change$'][_0x71cd14(0x275)](this[_0x71cd14(0x2ac)]);}};It=lo([ss(0x0,_0x4a7404(_0x142257)),ss(0x1,_0x5977ca)],It);var ys=Object['defineProperty'],vo=Object[_0x51fc53(0x340)],po=(_0x1787ee,_0x362944,_0xc67bd9)=>_0x362944 in _0x1787ee?ys(_0x1787ee,_0x362944,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc67bd9}):_0x1787ee[_0x362944]=_0xc67bd9,Io=(_0x40951d,_0x81f0a1,_0x146d1b,_0x2766b0)=>{for(var _0x13aad7=_0x2766b0>0x1?void 0x0:_0x2766b0?vo(_0x81f0a1,_0x146d1b):_0x81f0a1,_0xaebeda=_0x40951d['length']-0x1,_0x5796a6;_0xaebeda>=0x0;_0xaebeda--)(_0x5796a6=_0x40951d[_0xaebeda])&&(_0x13aad7=(_0x2766b0?_0x5796a6(_0x81f0a1,_0x146d1b,_0x13aad7):_0x5796a6(_0x13aad7))||_0x13aad7);return _0x2766b0&&_0x13aad7&&ys(_0x81f0a1,_0x146d1b,_0x13aad7),_0x13aad7;},is=(_0x263d84,_0x1ea656)=>(_0x5e0a41,_0x464093)=>_0x1ea656(_0x5e0a41,_0x464093,_0x263d84),Eo=(_0x499c99,_0x5e5aa0,_0x4083d8)=>po(_0x499c99,_0x5e5aa0+'',_0x4083d8);const Co=_0x51fc53(0x237);let Et=class extends _0x5ab657{constructor(_0x2e15c3,_0x446586,_0x3a3284){const _0x38ccae=_0x51fc53;super(),this[_0x38ccae(0xcf)]=_0x2e15c3,this[_0x38ccae(0x37c)]=_0x446586,this[_0x38ccae(0x342)]=_0x3a3284;}[_0x51fc53(0x27c)](_0xf66743){const _0x59234b=_0x51fc53;var _0x14a502,_0x523c99,_0x1fff93,_0x93e493,_0xec068e;_0xf66743[_0x59234b(0x16c)](_0x5815e0)&&this[_0x59234b(0x37c)][_0x59234b(0x24d)](_0x59234b(0x2ce),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x32c73e=[[_0x5815e0,{'useClass':vt}],[Re],[At],[_0x142257],[As,{'useClass':Gr}],[ee],[D],[_0x1e9f90],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0x523c99=(_0x14a502=this[_0x59234b(0xcf)])==null?void 0x0:_0x14a502[_0x59234b(0x1c9)])!=null?_0x523c99:_t}],[_0x38690b,{'useClass':_0x443f73}],[_0x3ad936,{'useClass':St}],[_0x5c087b,{'useClass':pt}],[_0x18bd4e,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x1fff93=this[_0x59234b(0xcf)])!=null&&_0x1fff93['enableSingleActiveInstanceLock']&&_0x32c73e['push']([Xe,{'useClass':On}]),((_0x93e493=this[_0x59234b(0xcf)])==null?void 0x0:_0x93e493[_0x59234b(0x23d)])==null||this[_0x59234b(0xcf)]['collaborationUniverTypes'][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x351)])?_0x32c73e[_0x59234b(0x19d)]([$e]):this[_0x59234b(0xcf)][_0x59234b(0x23d)][_0x59234b(0x11e)](_0x3504ec[_0x59234b(0x32c)])&&_0x32c73e[_0x59234b(0x19d)]([Fe]),_0x32c73e=_0xd86ae6(_0x32c73e,(_0xec068e=this[_0x59234b(0xcf)])==null?void 0x0:_0xec068e['override']),_0x32c73e[_0x59234b(0x124)](_0x47740e=>_0xf66743[_0x59234b(0xe7)](_0x47740e)),_0xf66743[_0x59234b(0x151)](_0x142257)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x5bab19({'maxParallel':0x6})}),this['_initModules']();}[_0x51fc53(0x198)](){const _0x126642=_0x51fc53;var _0x3ff55d,_0x3c95d0;(_0x3ff55d=this['_config'])!=null&&_0x3ff55d[_0x126642(0x21b)]||this[_0x126642(0x342)][_0x126642(0x151)](D)[_0x126642(0x329)](),(_0x3c95d0=this['_config'])!=null&&_0x3c95d0[_0x126642(0x17f)]&&this[_0x126642(0x342)][_0x126642(0x151)](Ge);}};Eo(Et,'pluginName',Co),Et=Io([_0x2e4016(_0x114daf),is(0x1,_0x3cb271),is(0x2,_0x4a7404(_0x44b6b8))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};
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};