@univerjs-pro/collaboration-client 0.2.9 → 0.2.10
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 _0xa83ddf=_0xed79;(function(_0x16458c,_0x49daa5){const _0x3c29db=_0xed79,_0x36de65=_0x16458c();while(!![]){try{const _0x28c08b=-parseInt(_0x3c29db(0x2b4))/0x1*(parseInt(_0x3c29db(0x3f4))/0x2)+parseInt(_0x3c29db(0x35c))/0x3+-parseInt(_0x3c29db(0x395))/0x4*(parseInt(_0x3c29db(0x155))/0x5)+-parseInt(_0x3c29db(0x236))/0x6+parseInt(_0x3c29db(0x35b))/0x7*(parseInt(_0x3c29db(0x253))/0x8)+parseInt(_0x3c29db(0x2b5))/0x9+parseInt(_0x3c29db(0x2dc))/0xa*(parseInt(_0x3c29db(0x328))/0xb);if(_0x28c08b===_0x49daa5)break;else _0x36de65['push'](_0x36de65['shift']());}catch(_0xbe2c3b){_0x36de65['push'](_0x36de65['shift']());}}}(_0x28da,0x6a409));var Ys=Object[_0xa83ddf(0x3b2)],Ks=(_0x512695,_0x516e23,_0x4fd70f)=>_0x516e23 in _0x512695?Ys(_0x512695,_0x516e23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fd70f}):_0x512695[_0x516e23]=_0x4fd70f,_=(_0x329dd1,_0x139264,_0x36a716)=>Ks(_0x329dd1,typeof _0x139264!=_0xa83ddf(0x42a)?_0x139264+'':_0x139264,_0x36a716);import{Disposable as _0x54b342,toDisposable as _0x5bf8dd,UniverInstanceType as _0x54437b,Inject as _0x2854bc,UserManagerService as _0xee8ebd,IUniverInstanceService as _0x1b1ada,createIdentifier as _0x39166c,DisposableCollection as _0x207116,IConfigService as _0x5e7a12,ILogService as _0x31880b,ISnapshotServerService as _0x5c5b29,RxDisposable as _0x26114b,LocaleService as _0x501416,Injector as _0x28aed1,ILocalStorageService as _0x29e353,Tools as _0x146730,ICommandService as _0x291fa9,JSONX as _0x5f5d93,CommandType as _0x20ade7,IPermissionService as _0x524b2d,IUndoRedoService as _0x1e8ca5,sequenceExecute as _0x343a59,OnLifecycle as _0x3b619c,LifecycleStages as _0x13d562,Optional as _0x36b891,Rectangle as _0x405e44,ThemeService as _0x356051,useDependency as _0x535e2e,connectInjector as _0x1c7a3c,Workbook as _0x5340aa,textEncoder as _0x46e75c,b64DecodeUnicode as _0x2a1742,LocalUndoRedoService as _0x4430ad,IContextService as _0x330f45,COLORS as _0x2cb332,ColorKit as _0x57dab2,fromEventSubject as _0x4fb823,isInternalEditorID as _0xc1669d,Plugin as _0x5791fb,IAuthzIoService as _0x382e20,mergeOverrideWithDependencies as _0x5c52e3,DependentOn as _0x3f4163}from'@univerjs/core';import{SheetsSelectionsService as _0x3bd81d,SetSelectionsOperation as _0x5fa864,InsertSheetMutation as _0x295e2d,EmptyMutation as _0x2006d3,WorkbookEditablePermission as _0x2efdca,RefRangeService as _0x180f6f,EffectRefRangId as _0x23dfbc,handleIRemoveRow as _0x354afa,handleIRemoveCol as _0x3a1e0d,handleMoveRange as _0x32cf1a,handleInsertRow as _0x4f79a5,handleInsertRangeMoveRight as _0x4f72f8,handleInsertRangeMoveDown as _0x5751e9,handleInsertCol as _0x5db54b,handleDeleteRangeMoveUp as _0x3fdc0a,handleDeleteRangeMoveLeft as _0x59566e,runRefRangeMutations as _0x279243,SetWorksheetActivateCommand as _0x488c5e}from'@univerjs/sheets';import{MessageType as _0x403ffc}from'@univerjs/design';import{IBeforeCloseService as _0x498303,IMessageService as _0x192174,INotificationService as _0x55f36b,useObservable as _0x26cb93,BuiltInUIPart as _0x31b0de,IUIPartsService as _0x1588cc}from'@univerjs/ui';import{CollaborationEvent as _0x4e62f0,parseChangesetToProtocol as _0x5ab243,RevisionService as _0x4bf679,isTransformMutationFailure as _0x571c72,isTransformMutationsWithChangesetSuccess as _0x5d016b,ITransformService as _0x5b4b40,mapDocumentTypeToUniverType as _0x286a05,isTransformChangesetsSuccess as _0x110984,CompressMutationService as _0x1c9e18,parseProtocolChangeset as _0x2d3fa1,SnapshotService as _0x235fd7,isTransformMutationsWithChangesetFailure as _0x22b0cf,UniverCollaborationPlugin as _0x1e27ff}from'@univerjs-pro/collaboration';import{merge as _0x19b764,Subject as _0x27d684,BehaviorSubject as _0xbc7543,distinctUntilChanged as _0x59f62b,fromEvent as _0x78aa37,of as _0x2e1ce7,takeUntil as _0x4b5283,debounceTime as _0x5d9837,filter as _0x30916b,switchMap as _0x284752,combineLatest as _0x4ffd7b,shareReplay as _0x2fa1a3,mapTo as _0x3080b0,concatMap as _0xf4bbfb}from'rxjs';import{map as _0x255c5b,takeUntil as _0x15cb3a,take as _0x4bc9cf,filter as _0x4393c3,delay as _0x3db649,shareReplay as _0x28cb00,switchMap as _0x1f02e9,throttleTime as _0x133efc}from'rxjs/operators';import{IMEInputManagerService as _0x55de7b,TextSelectionManagerService as _0x4857f4,serializeDocRange as _0xfbe9ba,RichTextEditingMutation as _0x53c1cb,DocStateChangeManagerService as _0x2f98ea,SetTextSelectionsOperation as _0x49f40d,SetDocZoomRatioOperation as _0x5d1a0c,DocSkeletonManagerService as _0x4a13e2}from'@univerjs/docs';import{HTTPService as _0x3efcab,WebSocketService as _0x4a0f72,MergeInterceptorFactory as _0x222d3b,HTTPRequest as _0x4f3fd2,IHTTPImplementation as _0x54f7a8,XHRHTTPImplementation as _0x50ec1f,ThresholdInterceptorFactory as _0xcec304}from'@univerjs/network';import{ImageSourceType as _0x10d13d,ImageUploadStatusType as _0x1f46e1,IImageIoService as _0x3a43a5}from'@univerjs/drawing';import{Shape as _0x497bf1,Rect as _0x97f8c4,Vector2 as _0x32bb51,NodePositionConvertToCursor as _0x2ea5cc,isValidRectRange as _0x4b651b,NodePositionConvertToRectRange as _0x172ca8,getColor as _0x18174b,TEXT_RANGE_LAYER_INDEX as _0x480610,RegularPolygon as _0x37879a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2257dd,IRenderManagerService as _0x12e84d}from'@univerjs/engine-render';function _0xed79(_0x3dfcb2,_0x88c52d){const _0x28dab4=_0x28da();return _0xed79=function(_0xed79ec,_0x55d7ec){_0xed79ec=_0xed79ec-0x13d;let _0x5e51c2=_0x28dab4[_0xed79ec];return _0x5e51c2;},_0xed79(_0x3dfcb2,_0x88c52d);}import{deserializeRangeWithSheet as _0x4c55b7,serializeRangeWithSheet as _0x2fa69e}from'@univerjs/engine-formula';import _0x238659 from'lodash/debounce';import{VIEWPORT_KEY as _0x574d50,getCoordByCell as _0x487c58,getSheetObject as _0x5c1291,SheetSkeletonManagerService as _0x4ee093,SheetPermissionInitController as _0x174f49}from'@univerjs/sheets-ui';import _0x58584e,{forwardRef as _0x1300f6,useRef as _0x3deeb2,createElement as _0xedc958}from'react';import _0x46f863 from'clsx';import{IRemoteInstanceService as _0x467bd6}from'@univerjs/rpc';const an=_0xa83ddf(0x29b),cn='/universer-api/snapshot',hn=_0xa83ddf(0x171),_n='SEND_CHANGESET_TIMEOUT',ln=0x7d0,un=_0xa83ddf(0x24e),dn=_0xa83ddf(0x2cc),mn=_0xa83ddf(0x453),fn=0x7530,Os=_0xa83ddf(0x174),Ds=0x2710,gn=_0xa83ddf(0x24f),Sn=0x4e20,pn=_0xa83ddf(0x166),vn=0x3,In='LOCAL_CACHE_INTERVAL',En=0x3e8,Cn=_0xa83ddf(0x430),bn=_0xa83ddf(0x3b4),Rn='LOGIN_URL_KEY',Tn=_0xa83ddf(0x224);var Ps=(_0x1fb855=>(_0x1fb855[_0x1fb855['UNDEFINED']=0x0]=_0xa83ddf(0x3d2),_0x1fb855[_0x1fb855['OK']=0x1]='OK',_0x1fb855[_0x1fb855[_0xa83ddf(0x3eb)]=0x2]=_0xa83ddf(0x3eb),_0x1fb855[_0x1fb855[_0xa83ddf(0x3e5)]=0x3]=_0xa83ddf(0x3e5),_0x1fb855[_0x1fb855[_0xa83ddf(0x352)]=0x4]='NOT_FOUND',_0x1fb855[_0x1fb855[_0xa83ddf(0x209)]=0x5]='UNAUTHENTICATED',_0x1fb855[_0x1fb855[_0xa83ddf(0x20e)]=0x6]=_0xa83ddf(0x20e),_0x1fb855[_0x1fb855['INVALID_ARGUMENT']=0x7]=_0xa83ddf(0x36e),_0x1fb855[_0x1fb855[_0xa83ddf(0x2a9)]=0x8]=_0xa83ddf(0x2a9),_0x1fb855[_0x1fb855['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x1fb855[_0x1fb855['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa83ddf(0x2f6),_0x1fb855[_0x1fb855[_0xa83ddf(0x43f)]=0x1771]=_0xa83ddf(0x43f),_0x1fb855[_0x1fb855[_0xa83ddf(0x1cf)]=0x1772]=_0xa83ddf(0x1cf),_0x1fb855[_0x1fb855[_0xa83ddf(0x1df)]=0x1b59]=_0xa83ddf(0x1df),_0x1fb855[_0x1fb855[_0xa83ddf(0x3b6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1fb855[_0x1fb855[_0xa83ddf(0x24a)]=0x1b5b]=_0xa83ddf(0x24a),_0x1fb855[_0x1fb855[_0xa83ddf(0x14d)]=0x1b5c]=_0xa83ddf(0x14d),_0x1fb855[_0x1fb855[_0xa83ddf(0x3b1)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1fb855[_0x1fb855['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x2b9)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x39e)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x3de)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1fb855[_0x1fb855[_0xa83ddf(0x23b)]=0x232d]=_0xa83ddf(0x23b),_0x1fb855[_0x1fb855[_0xa83ddf(0x25e)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1fb855[_0x1fb855[_0xa83ddf(0x34c)]=0x2712]=_0xa83ddf(0x34c),_0x1fb855[_0x1fb855['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1fb855[_0x1fb855[_0xa83ddf(0x3e2)]=0x2714]=_0xa83ddf(0x3e2),_0x1fb855[_0x1fb855[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x1fb855))(Ps||{}),H=(_0x18acf0=>(_0x18acf0[_0x18acf0[_0xa83ddf(0x282)]=0x0]='UNIVER_UNKNOWN',_0x18acf0[_0x18acf0[_0xa83ddf(0x1f2)]=0x1]=_0xa83ddf(0x1f2),_0x18acf0[_0x18acf0[_0xa83ddf(0x2ac)]=0x2]='UNIVER_SHEET',_0x18acf0[_0x18acf0[_0xa83ddf(0x459)]=0x3]=_0xa83ddf(0x459),_0x18acf0[_0x18acf0['UNIVER_PROJECT']=0x4]=_0xa83ddf(0x31e),_0x18acf0[_0x18acf0['UNRECOGNIZED']=-0x1]=_0xa83ddf(0x372),_0x18acf0))(H||{}),I=(_0x11cbd1=>(_0x11cbd1[_0x11cbd1[_0xa83ddf(0x34f)]=0x0]=_0xa83ddf(0x34f),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x25a)]=0x1]=_0xa83ddf(0x25a),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x1ec)]=0x2]=_0xa83ddf(0x1ec),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x256)]=0x3]=_0xa83ddf(0x256),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x3c9)]=0x4]=_0xa83ddf(0x3c9),_0x11cbd1[_0x11cbd1[_0xa83ddf(0x342)]=0x5]=_0xa83ddf(0x342),_0x11cbd1[_0x11cbd1['RECV']=0x6]='RECV',_0x11cbd1[_0x11cbd1[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x11cbd1))(I||{}),jt=(_0x27f732=>(_0x27f732[_0x27f732[_0xa83ddf(0x277)]=0x0]=_0xa83ddf(0x277),_0x27f732[_0x27f732['OK']=0x1]='OK',_0x27f732[_0x27f732['FAIL']=0x2]=_0xa83ddf(0x30d),_0x27f732[_0x27f732[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x27f732))(jt||{}),ws=(_0x5d97ff=>(_0x5d97ff[_0x5d97ff[_0xa83ddf(0x185)]=0x0]=_0xa83ddf(0x185),_0x5d97ff[_0x5d97ff[_0xa83ddf(0x341)]=0x1]='HttpImport',_0x5d97ff[_0x5d97ff[_0xa83ddf(0x17b)]=0x2]=_0xa83ddf(0x17b),_0x5d97ff[_0x5d97ff[_0xa83ddf(0x460)]=0x3]=_0xa83ddf(0x460),_0x5d97ff[_0x5d97ff['UnitSnapshot']=0x4]='UnitSnapshot',_0x5d97ff[_0x5d97ff[_0xa83ddf(0x372)]=-0x1]=_0xa83ddf(0x372),_0x5d97ff))(ws||{}),On=Object[_0xa83ddf(0x3b2)],Dn=Object[_0xa83ddf(0x190)],Pn=(_0x24d86f,_0x2cb9e5,_0x4c26a1,_0xba8d63)=>{const _0xcf837=_0xa83ddf;for(var _0x3eef18=_0xba8d63>0x1?void 0x0:_0xba8d63?Dn(_0x2cb9e5,_0x4c26a1):_0x2cb9e5,_0x602e48=_0x24d86f[_0xcf837(0x249)]-0x1,_0x58b436;_0x602e48>=0x0;_0x602e48--)(_0x58b436=_0x24d86f[_0x602e48])&&(_0x3eef18=(_0xba8d63?_0x58b436(_0x2cb9e5,_0x4c26a1,_0x3eef18):_0x58b436(_0x3eef18))||_0x3eef18);return _0xba8d63&&_0x3eef18&&On(_0x2cb9e5,_0x4c26a1,_0x3eef18),_0x3eef18;},Qt=(_0x4bf021,_0x16c56a)=>(_0x2ec4e7,_0x22ab2f)=>_0x16c56a(_0x2ec4e7,_0x22ab2f,_0x4bf021);let ne=class extends _0x54b342{constructor(_0x2d306e,_0x1a7acc){const _0x1d12a4=_0xa83ddf;super(),_(this,_0x1d12a4(0x207),new Map()),(this[_0x1d12a4(0x44a)]=_0x2d306e,this[_0x1d12a4(0x2bb)]=_0x1a7acc,this[_0x1d12a4(0x46f)](_0x5bf8dd(_0x19b764(this[_0x1d12a4(0x44a)]['getTypeOfUnitDisposed$'](_0x54437b[_0x1d12a4(0x2ac)])[_0x1d12a4(0x2e5)](_0x255c5b(_0x2f57bf=>_0x2f57bf[_0x1d12a4(0x27a)]())),this[_0x1d12a4(0x44a)][_0x1d12a4(0x331)](_0x54437b[_0x1d12a4(0x1f2)])[_0x1d12a4(0x2e5)](_0x255c5b(_0x5409b7=>_0x5409b7[_0x1d12a4(0x27a)]())),this[_0x1d12a4(0x44a)][_0x1d12a4(0x331)](_0x54437b[_0x1d12a4(0x459)])['pipe'](_0x255c5b(_0xef1436=>_0xef1436[_0x1d12a4(0x27a)]())))[_0x1d12a4(0x222)](_0x52ebe3=>this[_0x1d12a4(0x3cd)](_0x52ebe3)))));}[_0xa83ddf(0x3ec)](_0x30cab5){const _0x2bea83=_0xa83ddf;this[_0x2bea83(0x2bb)][_0x2bea83(0x3ec)](_0x30cab5);}[_0xa83ddf(0x27f)](){const _0x4746fa=_0xa83ddf;return this['_userManagerService'][_0x4746fa(0x27f)]();}['updateMember'](_0x2b4362,_0x384125){const _0x252303=_0xa83ddf;let _0x19a4bb=this['_roomMembers'][_0x252303(0x441)](_0x2b4362);_0x19a4bb||(_0x19a4bb=new wn(),this[_0x252303(0x207)][_0x252303(0x3fb)](_0x2b4362,_0x19a4bb)),_0x19a4bb[_0x252303(0x2a6)](_0x384125);}['removeMember'](_0x54eac4,_0x2a0017){const _0x49caad=_0xa83ddf,_0x1cb9e0=this[_0x49caad(0x207)][_0x49caad(0x441)](_0x54eac4);_0x1cb9e0&&_0x1cb9e0[_0x49caad(0x27b)](_0x2a0017);}[_0xa83ddf(0x3d3)](_0x533121){const _0x23079f=_0xa83ddf;return this[_0x23079f(0x207)][_0x23079f(0x441)](_0x533121);}['getMember'](_0x32bbe1,_0xc8afd7){const _0x91d70e=_0xa83ddf,_0xdac921=this[_0x91d70e(0x207)]['get'](_0x32bbe1);if(_0xdac921)return _0xdac921[_0x91d70e(0x2c2)](_0xc8afd7);}[_0xa83ddf(0x3cd)](_0x2da234){const _0x4800a3=_0xa83ddf,_0x4acc8c=this[_0x4800a3(0x207)][_0x4800a3(0x441)](_0x2da234);_0x4acc8c&&(_0x4acc8c['dispose'](),this['_roomMembers']['delete'](_0x2da234));}[_0xa83ddf(0x471)](){const _0x27afce=_0xa83ddf;this[_0x27afce(0x207)][_0x27afce(0x3e6)](_0x334d91=>_0x334d91[_0x27afce(0x471)]()),this[_0x27afce(0x207)][_0x27afce(0x365)]();}};ne=Pn([Qt(0x0,_0x1b1ada),Qt(0x1,_0x2854bc(_0xee8ebd))],ne);class wn extends _0x54b342{constructor(){const _0x36cb74=_0xa83ddf;super(...arguments),_(this,_0x36cb74(0x42d),new Map());}[_0xa83ddf(0x471)](){const _0x4d2386=_0xa83ddf;this['_members'][_0x4d2386(0x365)]();}[_0xa83ddf(0x2a6)](_0x43d4ee){const _0x3ade9d=_0xa83ddf;this[_0x3ade9d(0x42d)]['set'](_0x43d4ee[_0x3ade9d(0x469)],_0x43d4ee);}['removeMember'](_0xc998e5){const _0x30ab07=_0xa83ddf;this[_0x30ab07(0x42d)]['delete'](_0xc998e5);}[_0xa83ddf(0x2c2)](_0x55c574){const _0x2f6b03=_0xa83ddf;return this[_0x2f6b03(0x42d)]['get'](_0x55c574);}}function Nn(_0x297502){const _0x283312=_0xa83ddf;var _0x43954c,_0x47ff79,_0x4272c8,_0x4718f3;const _0x193b55=_0x297502[_0x283312(0x2cf)],_0x2eb549=JSON[_0x283312(0x2c8)](_0x193b55);switch(_0x2eb549[_0x283312(0x413)]){case I[_0x283312(0x342)]:case I[_0x283312(0x25a)]:{const _0x1c936b=_0x2eb549[_0x283312(0x1db)];return{..._0x2eb549,'data':_0x1c936b,'cmd':_0x2eb549[_0x283312(0x413)]};}case I['JOIN']:{const _0x75ecf6=_0x2eb549[_0x283312(0x415)];return{..._0x2eb549,'data':_0x75ecf6,'cmd':_0x2eb549[_0x283312(0x413)]};}case I[_0x283312(0x417)]:{const _0x85ac23=_0x2eb549[_0x283312(0x2da)];switch(_0x85ac23[_0x283312(0x217)]){case _0x4e62f0[_0x283312(0x3df)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x43954c=_0x85ac23[_0x283312(0x35d)])==null?void 0x0:_0x43954c['cs']},'cmd':_0x2eb549['cmd']};case _0x4e62f0[_0x283312(0x3ac)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x47ff79=_0x85ac23[_0x283312(0x18f)])==null?void 0x0:_0x47ff79['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['NEW_CHANGESETS']:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x4272c8=_0x85ac23[_0x283312(0x396)])==null?void 0x0:_0x4272c8['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x22d)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':(_0x4718f3=_0x85ac23['csRejEvent'])==null?void 0x0:_0x4718f3['cs']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x15f)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x398)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x218)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x1fa)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['USERS_LEAVE']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['leaveEvent']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0['LIVESHARE_NEW_HOST']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x353)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x378)]:case _0x4e62f0[_0x283312(0x30c)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x3ef)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x26c)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23[_0x283312(0x353)]},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x25b)]:return{..._0x2eb549,'data':_0x85ac23,'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x3bc)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['commentUpdateEvent']},'cmd':_0x2eb549[_0x283312(0x413)]};case _0x4e62f0[_0x283312(0x223)]:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['updatePermissionObjEvent']},'cmd':_0x2eb549['cmd']};case _0x4e62f0['SHOULD_CLOSE_CONN']:return{..._0x2eb549,'data':{..._0x85ac23,'data':_0x85ac23['shouldCloseConn']},'cmd':_0x2eb549[_0x283312(0x413)]};default:return _0x2eb549;}}default:return _0x2eb549;}}function Mn(_0x50c07d){const _0x42fdc6=_0xa83ddf;switch(_0x50c07d[_0x42fdc6(0x413)]){case I['HEARTBEAT']:case I[_0x42fdc6(0x25a)]:return JSON[_0x42fdc6(0x284)]({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d['routeKey']});case I[_0x42fdc6(0x3c9)]:{let _0x3a9356;switch(_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x217)]){case _0x4e62f0[_0x42fdc6(0x15f)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x15f)],'updateCursorEvent':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x3f2)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x3f2)],'leaveEvent':_0x50c07d['data'][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0['USERS_ENTER']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x218)],'joinEvent':_0x50c07d[_0x42fdc6(0x2cf)]['data']};break;}case _0x4e62f0['LIVESHARE_NEW_HOST']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x2cd)],'liveShareNewHost':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x30c)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x30c)],'liveShareOperation':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x26c)]:{_0x3a9356={'eventID':_0x4e62f0['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x50c07d['data'][_0x42fdc6(0x2cf)]};break;}case _0x4e62f0[_0x42fdc6(0x269)]:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x269)],'liveShareRequestHost':_0x50c07d[_0x42fdc6(0x2cf)]['data']};break;}case _0x4e62f0['LIVESHARE_FETCH_OPERATIONS']:{_0x3a9356={'eventID':_0x4e62f0[_0x42fdc6(0x378)]};break;}default:_0x3a9356={'eventID':_0x50c07d[_0x42fdc6(0x2cf)][_0x42fdc6(0x217)]};}return JSON[_0x42fdc6(0x284)]({'cmd':_0x50c07d['cmd'],'routeKey':_0x50c07d[_0x42fdc6(0x186)],'collaMsg':_0x3a9356});}case I[_0x42fdc6(0x1ec)]:return JSON['stringify']({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d['routeKey'],'joinReq':_0x50c07d['data']});case I[_0x42fdc6(0x256)]:return JSON['stringify']({'cmd':_0x50c07d[_0x42fdc6(0x413)],'routeKey':_0x50c07d[_0x42fdc6(0x186)],'leaveReq':_0x50c07d['data']});default:throw new Error(_0x42fdc6(0x182));}}var An=Object[_0xa83ddf(0x3b2)],Un=Object[_0xa83ddf(0x190)],yn=(_0x3637cf,_0x347038,_0xcc0c3b,_0x213d2c)=>{for(var _0x41d220=_0x213d2c>0x1?void 0x0:_0x213d2c?Un(_0x347038,_0xcc0c3b):_0x347038,_0x32d9b8=_0x3637cf['length']-0x1,_0xc3f03d;_0x32d9b8>=0x0;_0x32d9b8--)(_0xc3f03d=_0x3637cf[_0x32d9b8])&&(_0x41d220=(_0x213d2c?_0xc3f03d(_0x347038,_0xcc0c3b,_0x41d220):_0xc3f03d(_0x41d220))||_0x41d220);return _0x213d2c&&_0x41d220&&An(_0x347038,_0xcc0c3b,_0x41d220),_0x41d220;},Te=(_0x13683a,_0x1297b)=>(_0x3a73b2,_0x121c27)=>_0x1297b(_0x3a73b2,_0x121c27,_0x13683a);const Ns=_0x39166c(_0xa83ddf(0x45f));function Ln(_0x574eac,_0x1498f2,_0x219e16){const _0x54d4ed=_0xa83ddf;return _0x574eac+'/'+_0x1498f2+_0x54d4ed(0x247)+_0x219e16+_0x54d4ed(0x47a);}let vt=class{constructor(_0x42f14b,_0x2cabde,_0x23c75d,_0x353474,_0xe4b73f){const _0x5b2409=_0xa83ddf;this['_http']=_0x42f14b,this[_0x5b2409(0x203)]=_0x2cabde,this[_0x5b2409(0x442)]=_0x23c75d,this[_0x5b2409(0x33d)]=_0x353474,this[_0x5b2409(0x1bb)]=_0xe4b73f;}['createSocket'](_0x2363f4){const _0xcd43e9=_0xa83ddf,_0x1752de=this['_ws'][_0xcd43e9(0x3b8)](_0x2363f4);if(!_0x1752de)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x5515ab=new _0x207116(),_0x54c1a0=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x170)][_0xcd43e9(0x222)](_0x1baf2d=>_0x54c1a0[_0xcd43e9(0x311)](_0x1baf2d)))),_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(()=>_0x54c1a0['complete']()));const _0x58713=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x332)]['subscribe'](_0x57d7fd=>_0x58713[_0xcd43e9(0x311)](_0x57d7fd)))),_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(()=>_0x58713[_0xcd43e9(0x308)]()));const _0x45e438=new _0x27d684();_0x5515ab[_0xcd43e9(0x2f8)](_0x5bf8dd(_0x1752de[_0xcd43e9(0x414)]['subscribe'](_0x3eedae=>{const _0x479422=_0xcd43e9,_0x3e9dff=Nn(_0x3eedae);_0x45e438[_0x479422(0x311)](_0x3e9dff);}))),_0x5515ab['add'](_0x5bf8dd(()=>_0x45e438[_0xcd43e9(0x308)]()));const _0x37977a=()=>{const _0x4ebb04=_0xcd43e9;_0x58713[_0x4ebb04(0x311)](new Event(_0x4ebb04(0x18e))),_0x54c1a0['next'](new CloseEvent(_0x4ebb04(0x18e))),_0x1371c2[_0x4ebb04(0x2af)]();},_0x1371c2={'memberID':'','close$':_0x54c1a0[_0xcd43e9(0x473)](),'error$':_0x58713['asObservable'](),'open$':_0x1752de[_0xcd43e9(0x38f)],'message$':_0x45e438['asObservable'](),'send':_0x22824f=>{const _0x82be32=_0xcd43e9;if(_0x22824f[_0x82be32(0x413)]===I[_0x82be32(0x3c9)]){if(_0x22824f['data'][_0x82be32(0x217)]===_0x4e62f0[_0x82be32(0x2c7)]){this['_submitChangeset'](_0x1371c2,_0x22824f[_0x82be32(0x2cf)])[_0x82be32(0x3c3)](_0x21765a=>{const _0x1e7cae=_0x82be32;this['_logService'][_0x1e7cae(0x44e)](_0x21765a),_0x37977a();});return;}if(_0x22824f[_0x82be32(0x2cf)]['eventID']===_0x4e62f0[_0x82be32(0x316)]){const _0x3d2b5d=_0x22824f[_0x82be32(0x2cf)];this[_0x82be32(0x291)](_0x3d2b5d)[_0x82be32(0x450)](_0x1031d5=>{const _0x49469d=_0x82be32;_0x45e438['next']({'cmd':I[_0x49469d(0x417)],'code':jt['OK'],'routeKey':_0x3d2b5d[_0x49469d(0x2cf)][_0x49469d(0x452)],'routeType':'','data':{'eventID':_0x4e62f0[_0x49469d(0x1a7)],'data':{'changesets':_0x1031d5}}});})[_0x82be32(0x3c3)](_0x23bb7c=>{const _0x378930=_0x82be32;this[_0x378930(0x33d)][_0x378930(0x44e)](_0x23bb7c),_0x37977a();});return;}}_0x1752de[_0x82be32(0x14f)](Mn(_0x22824f));},'close':()=>{const _0x5f2f38=_0xcd43e9;_0x1752de['close'](),_0x5515ab[_0x5f2f38(0x471)]();}};return _0x1371c2;}async[_0xa83ddf(0x33f)](_0x17cbe0,_0x286307){const _0x3e0f43=_0xa83ddf;var _0x3a8db2;const {unitType:_0x540b6f,unitID:_0x4c2f8e,changeset:_0x5075fb}=_0x286307[_0x3e0f43(0x2cf)],_0x686977={'unitID':_0x4c2f8e,'memberID':_0x17cbe0[_0x3e0f43(0x469)],'type':_0x540b6f,'changeset':_0x5ab243(_0x5075fb)},_0x1ee61f=Ln((_0x3a8db2=this[_0x3e0f43(0x442)]['getConfig'](Cn))!=null?_0x3a8db2:bn,_0x540b6f,_0x4c2f8e);try{await this[_0x3e0f43(0x32b)]['post'](_0x1ee61f,{'body':_0x686977});}catch(_0x52eeac){throw this[_0x3e0f43(0x33d)]['error'](_0x3e0f43(0x2e7),_0x3e0f43(0x2eb)),_0x52eeac;}}async[_0xa83ddf(0x291)](_0x3bafae){const _0xe6d32e=_0xa83ddf,{unitID:_0x3cb5b0,from:_0x3ea0b0,to:_0xf6a81c,unitType:_0x34a739}=_0x3bafae[_0xe6d32e(0x2cf)];return(await this[_0xe6d32e(0x1bb)][_0xe6d32e(0x21e)]({'metadata':void 0x0},{'unitID':_0x3cb5b0,'type':_0x34a739,'from':_0x3ea0b0,'to':_0xf6a81c}))[_0xe6d32e(0x263)];}};vt=yn([Te(0x0,_0x2854bc(_0x3efcab)),Te(0x1,_0x2854bc(_0x4a0f72)),Te(0x2,_0x5e7a12),Te(0x3,_0x31880b),Te(0x4,_0x5c5b29)],vt);class Ms{constructor(){const _0x3d51d8=_0xa83ddf;_(this,'_commentUpdate$',new _0x27d684()),_(this,_0x3d51d8(0x3a7),this[_0x3d51d8(0x3d4)][_0x3d51d8(0x473)]());}[_0xa83ddf(0x23e)](_0x5bb6ec){const _0x5416f1=_0xa83ddf;this[_0x5416f1(0x3d4)][_0x5416f1(0x311)](_0x5bb6ec);}}var $n=Object[_0xa83ddf(0x3b2)],jn=Object[_0xa83ddf(0x190)],As=(_0x4d3fd7,_0xf9a89a,_0x2dc97a,_0x208ac7)=>{for(var _0x3d7220=_0x208ac7>0x1?void 0x0:_0x208ac7?jn(_0xf9a89a,_0x2dc97a):_0xf9a89a,_0x2be658=_0x4d3fd7['length']-0x1,_0x49c6bb;_0x2be658>=0x0;_0x2be658--)(_0x49c6bb=_0x4d3fd7[_0x2be658])&&(_0x3d7220=(_0x208ac7?_0x49c6bb(_0xf9a89a,_0x2dc97a,_0x3d7220):_0x49c6bb(_0x3d7220))||_0x3d7220);return _0x208ac7&&_0x3d7220&&$n(_0xf9a89a,_0x2dc97a,_0x3d7220),_0x3d7220;},A=(_0x19f217,_0x33529f)=>(_0x386e71,_0x3c0008)=>_0x33529f(_0x386e71,_0x3c0008,_0x19f217),fe=(_0x3188a9=>(_0x3188a9[_0x3188a9[_0xa83ddf(0x43d)]=0x0]=_0xa83ddf(0x43d),_0x3188a9[_0x3188a9[_0xa83ddf(0x34d)]=0x1]=_0xa83ddf(0x34d),_0x3188a9[_0x3188a9[_0xa83ddf(0x42e)]=0x2]='OFFLINE',_0x3188a9[_0x3188a9[_0xa83ddf(0x310)]=0x3]=_0xa83ddf(0x310),_0x3188a9))(fe||{});let It=class extends _0x26114b{constructor(_0x18f173,_0x296739,_0x7cd486,_0x321117,_0x4feca1,_0x4d40af,_0x3c3bb9,_0x4301a1,_0x29d78b){const _0x32e137=_0xa83ddf;super(),_(this,_0x32e137(0x146),new _0xbc7543(0x0)),_(this,_0x32e137(0x409),this[_0x32e137(0x146)][_0x32e137(0x473)]()),_(this,'_event$',new _0x27d684()),_(this,'event$',this[_0x32e137(0x408)][_0x32e137(0x473)]()),_(this,'_socket'),_(this,'_socketMessageSubscription'),_(this,_0x32e137(0x379)),(this['_unitID']=_0x18f173,this[_0x32e137(0x33d)]=_0x7cd486,this[_0x32e137(0x2e1)]=_0x321117,this[_0x32e137(0x19d)]=_0x4feca1,this['_configService']=_0x4d40af,this[_0x32e137(0x46b)]=_0x3c3bb9,this[_0x32e137(0x13e)]=_0x4301a1,this[_0x32e137(0x1b0)]=_0x29d78b,_0x296739[_0x32e137(0x2e5)](_0x15cb3a(this[_0x32e137(0x22b)]))[_0x32e137(0x222)](_0x4fb637=>{const _0xc87a96=_0x32e137;var _0x356494;typeof _0x4fb637>'u'||(this[_0xc87a96(0x39f)]=_0x4fb637,_0x4fb637?(this['_joinRoom'](_0x4fb637),this[_0xc87a96(0x1aa)]=this['_socket'][_0xc87a96(0x414)][_0xc87a96(0x222)](_0x32f15d=>{const _0x41c2b8=_0xc87a96;_0x32f15d['routeKey']===this['_unitID']&&this[_0x41c2b8(0x187)](_0x32f15d);})):(this['_sessionStatus$'][_0xc87a96(0x311)](0x2),(_0x356494=this[_0xc87a96(0x1aa)])==null||_0x356494[_0xc87a96(0x23d)](),this[_0xc87a96(0x1aa)]=null));}),this['disposeWithMe'](this[_0x32e137(0x2e1)]['registerOnClose'](()=>{const _0x5b1ca0=_0x32e137;var _0x3a25bf;(_0x3a25bf=this[_0x5b1ca0(0x39f)])==null||_0x3a25bf[_0x5b1ca0(0x14f)]({'cmd':I[_0x5b1ca0(0x256)],'data':{'roomID':this[_0x5b1ca0(0x44b)]}});})));}get[_0xa83ddf(0x250)](){const _0x1b875f=_0xa83ddf;return this[_0x1b875f(0x146)][_0x1b875f(0x1ac)]();}[_0xa83ddf(0x1fc)](){const _0x21a56e=_0xa83ddf;var _0x492570,_0x5c91f8;return(_0x5c91f8=(_0x492570=this['_socket'])==null?void 0x0:_0x492570[_0x21a56e(0x469)])!=null?_0x5c91f8:null;}[_0xa83ddf(0x471)](){const _0x3ec2ec=_0xa83ddf;super[_0x3ec2ec(0x471)](),this[_0x3ec2ec(0x22b)]['next'](),this[_0x3ec2ec(0x22b)][_0x3ec2ec(0x308)]();}[_0xa83ddf(0x2af)](){const _0x1f59a8=_0xa83ddf;var _0x482bd9,_0x529aba;(_0x482bd9=this[_0x1f59a8(0x39f)])==null||_0x482bd9[_0x1f59a8(0x14f)]({'cmd':I[_0x1f59a8(0x256)],'data':{'roomID':this[_0x1f59a8(0x44b)]}}),this[_0x1f59a8(0x408)][_0x1f59a8(0x308)](),this['_sessionStatus$'][_0x1f59a8(0x308)](),(_0x529aba=this[_0x1f59a8(0x39f)])==null||_0x529aba[_0x1f59a8(0x2af)](),this[_0x1f59a8(0x471)]();}['_onCombEvent'](_0x8db198){const _0x3d4df8=_0xa83ddf;_0x8db198['cmd']===I[_0x3d4df8(0x1ec)]?this[_0x3d4df8(0x40c)](_0x8db198):_0x8db198[_0x3d4df8(0x413)]===I[_0x3d4df8(0x417)]&&this['_onRecvEvent'](_0x8db198);}[_0xa83ddf(0x411)](_0x22bc2){const _0x58c2c4=_0xa83ddf;this[_0x58c2c4(0x146)][_0x58c2c4(0x311)](0x1),_0x22bc2[_0x58c2c4(0x14f)]({'cmd':I[_0x58c2c4(0x1ec)],'routeKey':this[_0x58c2c4(0x44b)],'routeType':'','data':{'rooms':[{'roomID':this[_0x58c2c4(0x44b)]}]}});}[_0xa83ddf(0x40c)](_0x55f0f1){const _0x1fd6a7=_0xa83ddf;var _0x516f23;if(_0x55f0f1[_0x1fd6a7(0x3ee)]===jt[_0x1fd6a7(0x30d)]){this['_messageService'][_0x1fd6a7(0x178)]({'type':_0x403ffc[_0x1fd6a7(0x407)],'content':this[_0x1fd6a7(0x46b)]['t'](_0x1fd6a7(0x1b3))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x1fd6a7(0x146)]['next'](0x3);const _0x35ed62=(_0x516f23=_0x55f0f1[_0x1fd6a7(0x2cf)][_0x1fd6a7(0x220)][this['_unitID']])==null?void 0x0:_0x516f23[_0x1fd6a7(0x3c5)];_0x35ed62&&_0x35ed62['forEach'](_0x39ebe7=>this[_0x1fd6a7(0x13e)][_0x1fd6a7(0x2a6)](this[_0x1fd6a7(0x44b)],_0x39ebe7));}[_0xa83ddf(0x2d5)](_0x17a90f){const _0x21ffb0=_0xa83ddf;try{const _0x154209=_0x17a90f['data'];switch(_0x154209[_0x21ffb0(0x217)]){case _0x4e62f0['USERS_ENTER']:this[_0x21ffb0(0x213)](_0x154209),this['_event$'][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3f2)]:this[_0x21ffb0(0x35a)](_0x154209),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3ac)]:this[_0x21ffb0(0x237)](),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0['MSG_FOR_ERROR']:this[_0x21ffb0(0x33d)]['error'](_0x21ffb0(0x1e6)+JSON['stringify'](_0x154209)),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;case _0x4e62f0[_0x21ffb0(0x3bc)]:this['_commentService']['onCommentUpdate'](_0x154209[_0x21ffb0(0x2cf)]),this[_0x21ffb0(0x408)][_0x21ffb0(0x311)](_0x154209);break;default:this[_0x21ffb0(0x408)]['next'](_0x154209);}}catch(_0x408bd9){this[_0x21ffb0(0x33d)][_0x21ffb0(0x44e)](_0x408bd9,_0x17a90f);}}[_0xa83ddf(0x213)](_0x2c9e74){const _0x45c09f=_0xa83ddf;this[_0x45c09f(0x13e)][_0x45c09f(0x2a6)](this[_0x45c09f(0x44b)],_0x2c9e74[_0x45c09f(0x2cf)]);}[_0xa83ddf(0x35a)](_0x3e39a8){const _0x32ed55=_0xa83ddf;this[_0x32ed55(0x13e)][_0x32ed55(0x27b)](this[_0x32ed55(0x44b)],_0x3e39a8['data'][_0x32ed55(0x469)]);}async[_0xa83ddf(0x14f)](_0x21448d,_0x1a099a){const _0x3c757b=_0xa83ddf;if(this[_0x3c757b(0x250)]!==0x3||!this[_0x3c757b(0x39f)])throw new Error(_0x3c757b(0x27d));try{_0x21448d[_0x3c757b(0x217)]===_0x4e62f0[_0x3c757b(0x468)]&&this[_0x3c757b(0x2f5)](),this['_socket'][_0x3c757b(0x14f)]({'cmd':I[_0x3c757b(0x3c9)],'routeKey':_0x1a099a,'routeType':'','data':_0x21448d});}catch(_0x1a6706){this['_logService'][_0x3c757b(0x44e)](_0x1a6706);}}[_0xa83ddf(0x2f5)](){const _0x5bdeec=_0xa83ddf;var _0x40961d;this[_0x5bdeec(0x379)]=window[_0x5bdeec(0x1f9)](()=>{const _0x332b34=_0x5bdeec;this[_0x332b34(0x379)]=null,this[_0x332b34(0x19d)][_0x332b34(0x178)]({'type':_0x403ffc[_0x332b34(0x1e5)],'content':this[_0x332b34(0x46b)]['t']('session.collaboration-timeout')});},(_0x40961d=this['_configService']['getConfig'](Os))!=null?_0x40961d:Ds);}[_0xa83ddf(0x237)](){const _0x3ac2a8=_0xa83ddf;this[_0x3ac2a8(0x379)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3ac2a8(0x379)]=null);}};It=As([A(0x2,_0x31880b),A(0x3,_0x498303),A(0x4,_0x192174),A(0x5,_0x5e7a12),A(0x6,_0x2854bc(_0x501416)),A(0x7,_0x2854bc(ne)),A(0x8,_0x2854bc(Ms))],It);let pe=class extends _0x54b342{constructor(_0x3449f3,_0x3d3801,_0x1afb60,_0x26e819,_0x21ab74,_0x293da1){const _0x241734=_0xa83ddf;super(),_(this,_0x241734(0x1de),new _0xbc7543(void 0x0)),_(this,'_sessions',new Map()),_(this,_0x241734(0x211),new _0xbc7543(0x0)),_(this,_0x241734(0x3c1),this[_0x241734(0x211)][_0x241734(0x473)]()),_(this,'_socketReady',!0x1),_(this,_0x241734(0x1c7)),_(this,_0x241734(0x2b0)),_(this,_0x241734(0x24b)),_(this,_0x241734(0x424),0x0),(this['_injector']=_0x3449f3,this[_0x241734(0x46b)]=_0x3d3801,this[_0x241734(0x19d)]=_0x1afb60,this['_logService']=_0x26e819,this[_0x241734(0x442)]=_0x21ab74,this[_0x241734(0x37f)]=_0x293da1);}get[_0xa83ddf(0x39f)](){const _0x215f4a=_0xa83ddf;return this[_0x215f4a(0x1de)][_0x215f4a(0x1ac)]();}[_0xa83ddf(0x471)](){const _0x2d694a=_0xa83ddf;super['dispose'](),this[_0x2d694a(0x297)]['forEach'](_0x3e0227=>_0x3e0227[_0x2d694a(0x471)]()),this[_0x2d694a(0x297)]['clear'](),this[_0x2d694a(0x211)]['complete']();}async['requireSession'](_0x3fd5f4){const _0x26f0c9=_0xa83ddf;if(this['_sessions'][_0x26f0c9(0x437)](_0x3fd5f4))return this[_0x26f0c9(0x297)]['get'](_0x3fd5f4);this[_0x26f0c9(0x29d)]();const _0x4b1f67=this['_injector'][_0x26f0c9(0x274)](It,_0x3fd5f4,this[_0x26f0c9(0x1de)][_0x26f0c9(0x473)]());return this[_0x26f0c9(0x297)][_0x26f0c9(0x3fb)](_0x3fd5f4,_0x4b1f67),_0x4b1f67;}[_0xa83ddf(0x1e9)](_0x5b0a3b){const _0x4b8b6e=_0xa83ddf;var _0x5a8103;const _0x295edc=this[_0x4b8b6e(0x297)]['get'](_0x5b0a3b);_0x295edc&&(this[_0x4b8b6e(0x297)][_0x4b8b6e(0x29c)](_0x5b0a3b),_0x295edc['close']()),this[_0x4b8b6e(0x297)][_0x4b8b6e(0x41b)]||(_0x5a8103=this[_0x4b8b6e(0x39f)])==null||_0x5a8103['close']();}[_0xa83ddf(0x19b)](){const _0x5bbc15=_0xa83ddf;var _0x129d41;const _0x38a20b=(_0x129d41=this[_0x5bbc15(0x442)][_0x5bbc15(0x436)](un))!=null?_0x129d41:dn;return this[_0x5bbc15(0x37f)][_0x5bbc15(0x3b8)](_0x38a20b);}['_tryEnsureSocket'](){const _0x211ab8=_0xa83ddf;try{const _0x3923f0=this[_0x211ab8(0x19b)]();if(_0x3923f0){const _0x4de91b=_0x3923f0['send'];_0x3923f0[_0x211ab8(0x14f)]=_0x55858f=>(this['_rescheduleHeartbeatEvent'](),_0x4de91b[_0x211ab8(0x451)](_0x3923f0,[_0x55858f])),_0x3923f0[_0x211ab8(0x414)][_0x211ab8(0x222)](_0x52a092=>this[_0x211ab8(0x276)](_0x3923f0,_0x52a092)),_0x3923f0[_0x211ab8(0x332)][_0x211ab8(0x2e5)](_0x4bc9cf(0x1))[_0x211ab8(0x222)](_0x2eab4e=>this[_0x211ab8(0x33d)][_0x211ab8(0x44e)](_0x211ab8(0x478),_0x2eab4e)),_0x3923f0[_0x211ab8(0x38f)]['pipe'](_0x4bc9cf(0x1))[_0x211ab8(0x222)](()=>{this['_onConnectionOpen'](_0x3923f0);}),_0x3923f0['close$'][_0x211ab8(0x2e5)](_0x4bc9cf(0x1))[_0x211ab8(0x222)](_0x5bcfe7=>{const _0x223f6a=_0x211ab8;this[_0x223f6a(0x33d)][_0x223f6a(0x427)](_0x223f6a(0x336),'socket\x20close',_0x5bcfe7),this[_0x223f6a(0x1a0)]();});}}catch(_0x22d634){this['_logService'][_0x211ab8(0x44e)](_0x22d634),this[_0x211ab8(0x1a0)]();}}[_0xa83ddf(0x454)](_0x972651){const _0x1fdaeb=_0xa83ddf;this['_logService'][_0x1fdaeb(0x427)](_0x1fdaeb(0x336),_0x1fdaeb(0x35f)),_0x972651[_0x1fdaeb(0x14f)]({'cmd':I[_0x1fdaeb(0x25a)]}),this['_rescheduleHeartbeatEvent']();}[_0xa83ddf(0x1a0)](){const _0x328825=_0xa83ddf;var _0x2c3472;this['_status$'][_0x328825(0x311)](0x2),this[_0x328825(0x1de)][_0x328825(0x311)](null),this[_0x328825(0x22c)](),this[_0x328825(0x339)](),this[_0x328825(0x1a5)]=!0x1,this['_retryCount']<((_0x2c3472=this[_0x328825(0x442)][_0x328825(0x436)](pn))!=null?_0x2c3472:vn)?(this[_0x328825(0x2f0)](this['_retryCount']),this[_0x328825(0x424)]+=0x1):this['_messageService'][_0x328825(0x178)]({'type':_0x403ffc[_0x328825(0x1e5)],'content':this[_0x328825(0x46b)]['t']('session.connection-failed')});}[_0xa83ddf(0x2f0)](_0x546d2f){const _0x58915f=_0xa83ddf;var _0x50b8a6;const _0x28bb71=((_0x50b8a6=this[_0x58915f(0x442)][_0x58915f(0x436)](gn))!=null?_0x50b8a6:Sn)*0x2**_0x546d2f;this[_0x58915f(0x19d)][_0x58915f(0x178)]({'type':_0x403ffc[_0x58915f(0x407)],'content':this['_localeService']['t'](_0x58915f(0x159))}),this[_0x58915f(0x24b)]=setTimeout(()=>{const _0x417ff5=_0x58915f;this[_0x417ff5(0x29d)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x28bb71);}['_rescheduleHeartbeatEvent'](){const _0x5e51cf=_0xa83ddf;var _0x565638;this[_0x5e51cf(0x339)](),this[_0x5e51cf(0x1c7)]=setTimeout(()=>this[_0x5e51cf(0x3f9)](),(_0x565638=this[_0x5e51cf(0x442)][_0x5e51cf(0x436)](mn))!=null?_0x565638:fn);}['_sendHeartbeat'](){const _0x36fb53=_0xa83ddf;this[_0x36fb53(0x39f)][_0x36fb53(0x14f)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0xa83ddf(0x266)](){const _0x214b4e=_0xa83ddf;var _0x4f63fe;this[_0x214b4e(0x2b0)]=setTimeout(()=>this[_0x214b4e(0x1a0)](),(_0x4f63fe=this['_configService'][_0x214b4e(0x436)](Os))!=null?_0x4f63fe:Ds);}[_0xa83ddf(0x276)](_0x35fe10,_0x4700a2){const _0x1efd9e=_0xa83ddf,{cmd:_0x383228}=_0x4700a2;_0x383228===I[_0x1efd9e(0x25a)]&&!this[_0x1efd9e(0x1a5)]&&(_0x35fe10['memberID']=_0x4700a2[_0x1efd9e(0x2cf)]['memberID'],this[_0x1efd9e(0x1de)][_0x1efd9e(0x311)](_0x35fe10),this[_0x1efd9e(0x211)][_0x1efd9e(0x311)](0x3),this[_0x1efd9e(0x1a5)]=!0x0),_0x383228===I[_0x1efd9e(0x342)]&&this[_0x1efd9e(0x22c)](),this[_0x1efd9e(0x20b)]();}[_0xa83ddf(0x339)](){const _0x41a54c=_0xa83ddf;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x41a54c(0x1c7)]),this[_0x41a54c(0x1c7)]=null);}[_0xa83ddf(0x22c)](){const _0x3518f2=_0xa83ddf;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3518f2(0x2b0)]=null);}};pe=As([A(0x0,_0x2854bc(_0x28aed1)),A(0x1,_0x2854bc(_0x501416)),A(0x2,_0x192174),A(0x3,_0x31880b),A(0x4,_0x5e7a12),A(0x5,Ns)],pe);var xn=Object[_0xa83ddf(0x3b2)],Hn=Object[_0xa83ddf(0x190)],kn=(_0x50317d,_0x491a8a,_0xdcdc95,_0x28c0fe)=>{const _0x15d4cf=_0xa83ddf;for(var _0x21183b=_0x28c0fe>0x1?void 0x0:_0x28c0fe?Hn(_0x491a8a,_0xdcdc95):_0x491a8a,_0x57ebc5=_0x50317d[_0x15d4cf(0x249)]-0x1,_0xe71370;_0x57ebc5>=0x0;_0x57ebc5--)(_0xe71370=_0x50317d[_0x57ebc5])&&(_0x21183b=(_0x28c0fe?_0xe71370(_0x491a8a,_0xdcdc95,_0x21183b):_0xe71370(_0x21183b))||_0x21183b);return _0x28c0fe&&_0x21183b&&xn(_0x491a8a,_0xdcdc95,_0x21183b),_0x21183b;},Oe=(_0x4e9b18,_0x4a87c4)=>(_0x194542,_0xb72873)=>_0x4a87c4(_0x194542,_0xb72873,_0x4e9b18);let D=class extends _0x54b342{constructor(_0x55d3ae,_0x1512dd,_0x5e7cf2,_0x1c6eaf,_0x442baa){const _0x564b83=_0xa83ddf;super(),_(this,_0x564b83(0x465),new Map()),_(this,_0x564b83(0x432),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x55d3ae,this[_0x564b83(0x418)]=_0x1512dd,this[_0x564b83(0x2e1)]=_0x5e7cf2,this[_0x564b83(0x46b)]=_0x1c6eaf,this[_0x564b83(0x2c6)]=_0x442baa,this[_0x564b83(0x22a)]());}[_0xa83ddf(0x301)](){this['_disabled']=!0x0;}[_0xa83ddf(0x2e0)](){const _0x1caf37=_0xa83ddf;this[_0x1caf37(0x39d)]=!0x1;}[_0xa83ddf(0x471)](){const _0x190e96=_0xa83ddf;this[_0x190e96(0x3ab)]()[_0x190e96(0x450)](()=>super['dispose']());}async[_0xa83ddf(0x392)](_0x2354bb){const _0x57bed5=_0xa83ddf;return this[_0x57bed5(0x39d)]?null:this[_0x57bed5(0x418)][_0x57bed5(0x325)](es(_0x2354bb));}async[_0xa83ddf(0x271)](_0x8a3a36,_0x35c0ec){const _0x30932d=_0xa83ddf;return!!this[_0x30932d(0x418)][_0x30932d(0x26f)](_0x8a3a36,_0x35c0ec);}['updateOfflineData'](_0x10405a,_0x50c830,_0x4ef593,_0x49060d){const _0x465161=_0xa83ddf,_0x38b764=this['_revisionService'][_0x465161(0x238)](_0x10405a);this['_cachedData'][_0x465161(0x3fb)](_0x10405a,{'unitID':_0x10405a,'type':_0x50c830,'awaitingChangeset':_0x4ef593,'mutations':_0x49060d,'rev':_0x38b764}),this[_0x465161(0x432)]['has'](_0x10405a)||this[_0x465161(0x319)](_0x10405a);}[_0xa83ddf(0x319)](_0x198b76){const _0x239efd=_0xa83ddf,_0x3f809e=this[_0x239efd(0x37c)]();_0x3f809e===0x0?this[_0x239efd(0x31f)](_0x198b76):this[_0x239efd(0x432)][_0x239efd(0x3fb)](_0x198b76,setTimeout(()=>this['_saveCache'](_0x198b76),_0x3f809e));}[_0xa83ddf(0x37c)](){const _0x5f5019=_0xa83ddf;var _0x1306a6;return(_0x1306a6=this[_0x5f5019(0x442)][_0x5f5019(0x436)](In))!=null?_0x1306a6:En;}['_saveCache'](_0x2d3deb){const _0x38e11=_0xa83ddf,_0x1bf4af=this[_0x38e11(0x432)]['get'](_0x2d3deb);return _0x1bf4af!==void 0x0&&window['clearTimeout'](_0x1bf4af),this[_0x38e11(0x418)][_0x38e11(0x26f)](es(_0x2d3deb),this[_0x38e11(0x465)][_0x38e11(0x441)](_0x2d3deb))[_0x38e11(0x450)](()=>this['_saveTaskMap'][_0x38e11(0x29c)](_0x2d3deb));}async[_0xa83ddf(0x3ab)](){const _0x2983cf=_0xa83ddf,_0x28146c=[];this[_0x2983cf(0x432)][_0x2983cf(0x3e6)]((_0xed8e0d,_0x41f9b4)=>{const _0x4ea271=_0x2983cf;window[_0x4ea271(0x3e7)](_0xed8e0d),_0x28146c[_0x4ea271(0x14e)](this[_0x4ea271(0x31f)](_0x41f9b4)[_0x4ea271(0x450)](()=>{const _0x371a5b=_0x4ea271;this['_saveTaskMap'][_0x371a5b(0x29c)](_0x41f9b4);}));}),await Promise[_0x2983cf(0x150)](_0x28146c);}[_0xa83ddf(0x22a)](){const _0x2a5c38=_0xa83ddf;this[_0x2a5c38(0x46f)](this[_0x2a5c38(0x2e1)][_0x2a5c38(0x2bc)](()=>{const _0x1109b9=_0x2a5c38;if(this['_saveTaskMap']['size'])return this[_0x1109b9(0x46b)]['t']('collaboration-client.offline-data-not-saved');}));}};D=kn([Oe(0x0,_0x5e7a12),Oe(0x1,_0x29e353),Oe(0x2,_0x498303),Oe(0x3,_0x2854bc(_0x501416)),Oe(0x4,_0x2854bc(_0x4bf679))],D);function es(_0x5bbe9){const _0xe74b6b=_0xa83ddf;return _0xe74b6b(0x2db)+_0x5bbe9;}const tt=_0x39166c(_0xa83ddf(0x36a));var Us=(_0x6696e9=>(_0x6696e9[_0x6696e9[_0xa83ddf(0x43c)]=0x0]=_0xa83ddf(0x43c),_0x6696e9[_0x6696e9[_0xa83ddf(0x3d8)]=0x1]=_0xa83ddf(0x3d8),_0x6696e9))(Us||{});const ts=0x7530,ss=_0xa83ddf(0x315);class Vn extends _0x54b342{constructor(){const _0x4618d5=_0xa83ddf;super(),_(this,_0x4618d5(0x32c),_0x146730['generateRandomId']()),_(this,_0x4618d5(0x2a7),new Set()),_(this,_0x4618d5(0x21a),new Map()),_(this,_0x4618d5(0x279),null),_(this,_0x4618d5(0x21b),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x14a732=_0xa83ddf;super[_0x14a732(0x471)](),this['_clearOtherTimers'][_0x14a732(0x3e6)]((_0x5e49b8,_0x486fb0)=>this[_0x14a732(0x1c8)](_0x486fb0)),this[_0x14a732(0x279)]&&window[_0x14a732(0x380)](this[_0x14a732(0x279)]);}[_0xa83ddf(0x2dd)](_0x3e4ef4){const _0x34007f=_0xa83ddf;return this[_0x34007f(0x1a8)](_0x3e4ef4)[_0x34007f(0x2e5)](_0x59f62b());}['editingUnit'](_0xd222b8){const _0x69e209=_0xa83ddf;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x69e209(0x2a7)][_0x69e209(0x2f8)](_0xd222b8),this[_0x69e209(0x3a2)]({'type':0x0,'memberID':this[_0x69e209(0x32c)],'unitIDs':[_0xd222b8],'isForwarded':!0x1});}['disposeUnit'](_0x4bcd0e){const _0x59441d=_0xa83ddf;this[_0x59441d(0x2a7)][_0x59441d(0x29c)](_0x4bcd0e),this[_0x59441d(0x2a7)][_0x59441d(0x41b)]===0x0&&this[_0x59441d(0x279)]&&window[_0x59441d(0x380)](this[_0x59441d(0x279)]);}[_0xa83ddf(0x267)](){const _0x4fb346=_0xa83ddf;this[_0x4fb346(0x46f)](_0x5bf8dd(_0x78aa37(window,_0x4fb346(0x2ad))[_0x4fb346(0x222)](_0x3aba2c=>{const _0x4bb2af=_0x4fb346;if(_0x3aba2c['key']!==ss||!_0x3aba2c[_0x4bb2af(0x3db)])return;const _0x566f5d=JSON[_0x4bb2af(0x2c8)](_0x3aba2c['newValue']);this[_0x4bb2af(0x2b6)](_0x566f5d);}))),window[_0x4fb346(0x239)](_0x4fb346(0x24d),()=>this[_0x4fb346(0x3a2)]({'type':0x1,'memberID':this[_0x4fb346(0x32c)],'unitIDs':Array[_0x4fb346(0x17d)](this[_0x4fb346(0x2a7)])}));}[_0xa83ddf(0x2b6)](_0x20f22d){const _0x2c0ffa=_0xa83ddf;switch(_0x20f22d[_0x2c0ffa(0x2f9)]){case 0x0:this[_0x2c0ffa(0x371)](_0x20f22d);break;case 0x1:this['_handleLeaveEvent'](_0x20f22d);break;case 0x2:this[_0x2c0ffa(0x15c)](_0x20f22d);break;}}[_0xa83ddf(0x371)](_0x156ef8){const _0x1046af=_0xa83ddf,{unitIDs:_0x47116d,memberID:_0x6c51ac,isForwarded:_0x3fb1f7}=_0x156ef8;_0x47116d[_0x1046af(0x3e6)](_0x4f8679=>{const _0x5d32d6=_0x1046af;if(!_0x3fb1f7&&this[_0x5d32d6(0x21a)][_0x5d32d6(0x437)](_0x4f8679)&&this[_0x5d32d6(0x1a8)](_0x4f8679)[_0x5d32d6(0x311)](0x1),!this[_0x5d32d6(0x21a)][_0x5d32d6(0x437)](_0x4f8679)||!this[_0x5d32d6(0x21a)][_0x5d32d6(0x441)](_0x4f8679)[_0x5d32d6(0x437)](_0x6c51ac)){const _0x487207=this['_unitOnClients'][_0x5d32d6(0x441)](_0x4f8679)||new Set();_0x487207['add'](_0x6c51ac),this['_unitOnClients']['set'](_0x4f8679,_0x487207),this[_0x5d32d6(0x3f3)](_0x6c51ac);}}),_0x3fb1f7||this[_0x1046af(0x3a2)]({'type':0x0,'memberID':this[_0x1046af(0x32c)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xa83ddf(0x3f3)](_0x2017b8){const _0x270b74=_0xa83ddf;this[_0x270b74(0x1c8)](_0x2017b8);const _0x55b09c=window[_0x270b74(0x1f9)](()=>{const _0x5a2049=_0x270b74;this[_0x5a2049(0x21a)]['forEach'](_0x13d583=>{_0x13d583['delete'](_0x2017b8);});},ts*0x2);this[_0x270b74(0x21b)][_0x270b74(0x3fb)](_0x2017b8,_0x55b09c);}[_0xa83ddf(0x1c8)](_0x498092){const _0xd3b1dd=_0xa83ddf;if(this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x437)](_0x498092)){const _0x4577dc=this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x441)](_0x498092);_0x4577dc&&window[_0xd3b1dd(0x3e7)](_0x4577dc),this[_0xd3b1dd(0x21b)][_0xd3b1dd(0x3fb)](_0x498092,null);}}[_0xa83ddf(0x183)](_0xba9af2){const _0x21cc48=_0xa83ddf,{memberID:_0x75b3f4,unitIDs:_0x44ad9e}=_0xba9af2;_0x44ad9e['forEach'](_0x48ab39=>{const _0xd00060=_0xed79;var _0x2cc7dc;const _0x130c1f=this[_0xd00060(0x21a)][_0xd00060(0x441)](_0x48ab39);_0x130c1f&&(_0x130c1f[_0xd00060(0x29c)](_0x75b3f4),(_0x2cc7dc=this[_0xd00060(0x1a8)](_0x48ab39))==null||_0x2cc7dc[_0xd00060(0x311)](_0x130c1f[_0xd00060(0x41b)]===0x0?0x0:0x1));}),this[_0x21cc48(0x1c8)](_0x75b3f4);}['_handleHeartbeatEvent'](_0x5d5528){this['_scheduleClearOtherTimer'](_0x5d5528['memberID']);}[_0xa83ddf(0x3a2)](_0x5712ba){const _0x21ec3c=_0xa83ddf;localStorage[_0x21ec3c(0x26f)](ss,JSON[_0x21ec3c(0x284)](_0x5712ba));}['_scheduleHeartbeat'](){const _0x1bf3fe=_0xa83ddf;this['_heartbeatTimer']=window[_0x1bf3fe(0x1f5)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ts);}[_0xa83ddf(0x1a8)](_0x15f356){const _0x4ae764=_0xa83ddf;return this[_0x4ae764(0x1cd)]['has'](_0x15f356)||this[_0x4ae764(0x1cd)][_0x4ae764(0x3fb)](_0x15f356,new _0xbc7543(0x0)),this[_0x4ae764(0x1cd)][_0x4ae764(0x441)](_0x15f356);}}var Bn=Object[_0xa83ddf(0x3b2)],Fn=Object['getOwnPropertyDescriptor'],Wn=(_0x437ded,_0x46eccf,_0x4768f6,_0x16d1f4)=>{for(var _0x48c01e=_0x16d1f4>0x1?void 0x0:_0x16d1f4?Fn(_0x46eccf,_0x4768f6):_0x46eccf,_0x566168=_0x437ded['length']-0x1,_0x3e0548;_0x566168>=0x0;_0x566168--)(_0x3e0548=_0x437ded[_0x566168])&&(_0x48c01e=(_0x16d1f4?_0x3e0548(_0x46eccf,_0x4768f6,_0x48c01e):_0x3e0548(_0x48c01e))||_0x48c01e);return _0x16d1f4&&_0x48c01e&&Bn(_0x46eccf,_0x4768f6,_0x48c01e),_0x48c01e;},is=(_0x331bc6,_0x47d22d)=>(_0x2c6f9e,_0x5571fc)=>_0x47d22d(_0x2c6f9e,_0x5571fc,_0x331bc6);let Je=class{constructor(_0x3e904f,_0x1faa57){const _0x2ec112=_0xa83ddf;this[_0x2ec112(0x1ef)]=_0x3e904f,this[_0x2ec112(0x2ef)]=_0x1faa57;}['transformIMECache'](_0x3dfbb7){const _0x1eb7da=_0xa83ddf;this[_0x1eb7da(0x3e3)](_0x3dfbb7),this[_0x1eb7da(0x421)](_0x3dfbb7);}['transformRemoteChangeset'](_0x1b2655){const _0x3574af=_0xa83ddf,_0x63286a=this['_injector'][_0x3574af(0x441)](_0x55de7b),{redoCache:_0x16d789}=_0x63286a[_0x3574af(0x193)]();if(_0x16d789[_0x3574af(0x249)]===0x0)return _0x1b2655;let _0x4bd4cd=_0x146730['deepClone'](_0x1b2655[_0x3574af(0x43b)][0x0]);for(let _0x50c802=0x0;_0x50c802<_0x16d789[_0x3574af(0x249)];_0x50c802++){const _0x353ddc={'id':_0x3574af(0x14c),'params':{..._0x16d789[_0x50c802]}},_0x1b8faf=this[_0x3574af(0x2ef)][_0x3574af(0x2d6)](_0x4bd4cd,_0x353ddc,!0x1);if(_0x571c72(_0x1b8faf))throw _0x1b8faf['error'];_0x4bd4cd=_0x1b8faf['m1Prime'];}return{..._0x146730['deepClone'](_0x1b2655),'mutations':[_0x4bd4cd]};}[_0xa83ddf(0x3e3)](_0x4497b5){const _0x4ac93d=_0xa83ddf,_0x309124=this[_0x4ac93d(0x1ef)][_0x4ac93d(0x441)](_0x55de7b),{undoCache:_0x5f32f7,redoCache:_0xcad719}=_0x309124['getUndoRedoMutationParamsCache']();if(_0x5f32f7['length']===0x0||_0xcad719[_0x4ac93d(0x249)]===0x0)return;const _0x2dd098=[],_0x5ad0c0=[];let _0x54d5b6=_0x146730[_0x4ac93d(0x28b)](_0x4497b5[_0x4ac93d(0x43b)][0x0]),_0x24a005=_0x146730['deepClone'](_0x4497b5[_0x4ac93d(0x43b)][0x0]);for(let _0x28444b=_0x5f32f7['length']-0x1;_0x28444b>=0x0;_0x28444b--){const _0x5772f4={'id':'doc.mutation.rich-text-editing','params':{..._0x5f32f7[_0x28444b]}},_0x4355f7={'id':'doc.mutation.rich-text-editing','params':{..._0xcad719[_0x28444b]}},_0x1241c9=this['_transformService'][_0x4ac93d(0x2d6)](_0x54d5b6,_0x5772f4,!0x1),_0x4e8c0e=this[_0x4ac93d(0x2ef)][_0x4ac93d(0x2d6)](_0x24a005,_0x4355f7,!0x1);if(_0x571c72(_0x1241c9))throw _0x1241c9[_0x4ac93d(0x44e)];if(_0x571c72(_0x4e8c0e))throw _0x4e8c0e['error'];_0x2dd098[_0x4ac93d(0x2ce)](_0x1241c9['m2Prime'][_0x4ac93d(0x370)]),_0x5ad0c0[_0x4ac93d(0x2ce)](_0x4e8c0e[_0x4ac93d(0x145)]['params']),_0x54d5b6=_0x1241c9['m1Prime'],_0x24a005=_0x4e8c0e[_0x4ac93d(0x347)];}_0x309124[_0x4ac93d(0x244)]({'undoCache':_0x2dd098,'redoCache':_0x5ad0c0});}['_transformPreviousActiveRange'](_0x38d115){const _0x463505=_0xa83ddf,_0x1221da=this[_0x463505(0x1ef)]['get'](_0x55de7b),_0x127d5c=_0x1221da['getActiveRange']();if(_0x127d5c==null)return;const _0x3dff8c=[{'id':_0x463505(0x14c),'params':{'unitId':_0x38d115[_0x463505(0x452)],'actions':null,'textRanges':[_0x127d5c]}}],_0x44d3d2=this[_0x463505(0x2ef)][_0x463505(0x384)](_0x38d115,_0x3dff8c);if(!_0x5d016b(_0x44d3d2))throw _0x44d3d2[_0x463505(0x44e)];const _0x4fa74f=_0x44d3d2[_0x463505(0x145)][0x0][_0x463505(0x370)][_0x463505(0x3dc)];Array['isArray'](_0x4fa74f)&&_0x4fa74f['length']&&_0x1221da['setActiveRange'](_0x4fa74f[0x0]);}};Je=Wn([is(0x0,_0x2854bc(_0x28aed1)),is(0x1,_0x5b4b40)],Je);var Gn=Object[_0xa83ddf(0x3b2)],Yn=Object[_0xa83ddf(0x190)],Kn=(_0x30033e,_0x29af49,_0x20c93c,_0x4e4c4b)=>{for(var _0x345e3b=_0x4e4c4b>0x1?void 0x0:_0x4e4c4b?Yn(_0x29af49,_0x20c93c):_0x29af49,_0x214f9e=_0x30033e['length']-0x1,_0x53f8e3;_0x214f9e>=0x0;_0x214f9e--)(_0x53f8e3=_0x30033e[_0x214f9e])&&(_0x345e3b=(_0x4e4c4b?_0x53f8e3(_0x29af49,_0x20c93c,_0x345e3b):_0x53f8e3(_0x345e3b))||_0x345e3b);return _0x4e4c4b&&_0x345e3b&&Gn(_0x29af49,_0x20c93c,_0x345e3b),_0x345e3b;},ns=(_0x23edac,_0x19901c)=>(_0x1394ec,_0xa30217)=>_0x19901c(_0x1394ec,_0xa30217,_0x23edac);let ze=class{constructor(_0x34be8e,_0x3f2e34){const _0x1e1c5b=_0xa83ddf;this[_0x1e1c5b(0x1ef)]=_0x34be8e,this[_0x1e1c5b(0x2ef)]=_0x3f2e34;}[_0xa83ddf(0x34a)](_0x501874){const _0x5ee378=_0xa83ddf;var _0x1c646b;const _0xcad2b9=this[_0x5ee378(0x1ef)]['get'](_0x4857f4),_0x1015fe=(_0x1c646b=_0xcad2b9[_0x5ee378(0x3a8)]())!=null?_0x1c646b:[],_0x30e58b=_0x1015fe==null?void 0x0:_0x1015fe['map'](_0xfbe9ba);if(_0x30e58b[_0x5ee378(0x249)]===0x0)return;const _0x1ac070=[{'id':_0x5ee378(0x14c),'params':{'unitId':_0x501874[_0x5ee378(0x452)],'actions':null,'textRanges':_0x30e58b}}],_0x214051=this[_0x5ee378(0x2ef)][_0x5ee378(0x384)](_0x501874,_0x1ac070);if(!_0x5d016b(_0x214051))throw _0x214051[_0x5ee378(0x44e)];const _0x1b463e=_0x214051[_0x5ee378(0x145)][0x0][_0x5ee378(0x370)][_0x5ee378(0x3dc)];Array[_0x5ee378(0x210)](_0x1b463e)&&_0x1b463e['length']&&_0xcad2b9[_0x5ee378(0x2d7)](_0x1b463e,!0x1);}};ze=Kn([ns(0x0,_0x2854bc(_0x28aed1)),ns(0x1,_0x5b4b40)],ze);function ys(_0x2bdfc9){const _0x272309=_0xa83ddf;let _0x44e5e5='';for(const _0x505e1b of _0x2bdfc9){const {startOffset:_0x55c973,endOffset:_0x3dbb50,isActive:_0x35db79}=_0x505e1b;_0x44e5e5[_0x272309(0x249)]&&(_0x44e5e5+=','),_0x44e5e5+=_0x55c973+':'+_0x3dbb50+':'+(_0x35db79?'1':'0');}return _0x44e5e5;}function Xn(_0x1dc002){const _0x248e84=_0xa83ddf,_0x44ee74=_0x1dc002[_0x248e84(0x1cc)](','),_0x4477bb=[];for(const _0x1e1f7e of _0x44ee74){const [_0x4a2436,_0x8631e7,_0x3a9790]=_0x1e1f7e[_0x248e84(0x1cc)](':');_0x4477bb[_0x248e84(0x14e)]({'startOffset':Number(_0x4a2436),'endOffset':Number(_0x8631e7),'collapsed':_0x4a2436===_0x8631e7,'isActive':_0x3a9790==='1'});}return _0x4477bb['some'](_0x19d129=>_0x19d129[_0x248e84(0x148)])||(_0x4477bb[0x0][_0x248e84(0x148)]=!0x0),_0x4477bb;}class xt extends _0x26114b{constructor(){const _0x53a420=_0xa83ddf;super(...arguments),_(this,_0x53a420(0x286),new _0xbc7543(null)),_(this,_0x53a420(0x3e9),this[_0x53a420(0x286)][_0x53a420(0x473)]());}[_0xa83ddf(0x3d9)](_0x2e93c7){const _0x363413=_0xa83ddf,{unitID:_0x7e78f4,memberID:_0x19340b,textRanges:_0x1c4c9c}=_0x2e93c7,_0x76c533=ys(_0x1c4c9c),_0x15488b={'unitID':_0x7e78f4,'memberID':_0x19340b,'selection':_0x76c533};this[_0x363413(0x286)][_0x363413(0x311)](_0x15488b);}}var Jn=Object['defineProperty'],zn=Object[_0xa83ddf(0x190)],qn=(_0x5617ce,_0x5c1b57,_0x5b0db7,_0x297d19)=>{for(var _0x108b0e=_0x297d19>0x1?void 0x0:_0x297d19?zn(_0x5c1b57,_0x5b0db7):_0x5c1b57,_0x49f431=_0x5617ce['length']-0x1,_0x96dfd7;_0x49f431>=0x0;_0x49f431--)(_0x96dfd7=_0x5617ce[_0x49f431])&&(_0x108b0e=(_0x297d19?_0x96dfd7(_0x5c1b57,_0x5b0db7,_0x108b0e):_0x96dfd7(_0x108b0e))||_0x108b0e);return _0x297d19&&_0x108b0e&&Jn(_0x5c1b57,_0x5b0db7,_0x108b0e),_0x108b0e;},rs=(_0x131d84,_0x3445e6)=>(_0x1e7516,_0x27a2e5)=>_0x3445e6(_0x1e7516,_0x27a2e5,_0x131d84);function Zn(_0x5d2cd5){const _0x5d2316=_0xa83ddf,{unitID:_0x258f11,mutations:_0x2943e0}=_0x5d2cd5;return{'unitId':_0x258f11,'subUnitId':_0x2943e0[0x0][_0x5d2316(0x370)]['subUnitId']};}let qe=class{constructor(_0x18ed2b,_0x2b3a11){const _0x4ba05f=_0xa83ddf;this[_0x4ba05f(0x1ef)]=_0x18ed2b,this['_transformService']=_0x2b3a11;}[_0xa83ddf(0x34a)](_0x1b12bf){const _0x317435=_0xa83ddf;var _0x2ab905,_0x5e16b4,_0x18b489;const _0x1df973=this[_0x317435(0x1ef)][_0x317435(0x441)](_0x3bd81d),{unitId:_0x5dcb77,subUnitId:_0x183e2b}=Zn(_0x1b12bf),_0x27a272=_0x1df973[_0x317435(0x188)](_0x5dcb77)['getCurrentSelections']();if(_0x27a272[_0x317435(0x249)]===0x0||!_0x5dcb77||!_0x183e2b)return;const _0x2800ff=[{'id':_0x5fa864['id'],'params':{'unitId':_0x5dcb77,'subUnitId':_0x183e2b,'selections':_0x146730['deepClone'](_0x27a272)}}],_0x50b402=this[_0x317435(0x2ef)][_0x317435(0x384)](_0x1b12bf,_0x2800ff);if(!_0x5d016b(_0x50b402))throw _0x50b402['error'];const _0x393f4e=(_0x18b489=(_0x5e16b4=(_0x2ab905=_0x50b402[_0x317435(0x145)][0x0])==null?void 0x0:_0x2ab905[_0x317435(0x370)])==null?void 0x0:_0x5e16b4['selections'])!=null?_0x18b489:_0x27a272;Array[_0x317435(0x210)](_0x393f4e)&&_0x393f4e['length']&&this['_injector'][_0x317435(0x441)](_0x291fa9)['executeCommand'](_0x5fa864['id'],{'unitId':_0x5dcb77,'subUnitId':_0x183e2b,'selections':_0x393f4e});}};qe=qn([rs(0x0,_0x2854bc(_0x28aed1)),rs(0x1,_0x5b4b40)],qe);const Qn=new Set([_0x295e2d['id']]);function os(_0x14942f,_0x1a92a7,_0x8fa8cd,_0x4eb9f8,_0x1ccb57){const _0x2b2046=_0xa83ddf;var _0x538057,_0x22518d,_0x21e722,_0x3a8d7d;const _0x2b034e=[];for(const _0x594bdf of _0x14942f)if(Qn[_0x2b2046(0x437)](_0x594bdf['id'])){if(_0x2b034e[_0x2b2046(0x249)]>0x0)break;_0x2b034e['push'](_0x594bdf);break;}else _0x2b034e['push'](_0x594bdf);const _0x6c6cc0=(_0x22518d=(_0x538057=_0x1ccb57[_0x2b2046(0x27f)]())==null?void 0x0:_0x538057[_0x2b2046(0x463)])!=null?_0x22518d:'unknown',_0x2f43e3=(_0x3a8d7d=(_0x21e722=_0x1ccb57['getCurrentUser']())==null?void 0x0:_0x21e722[_0x2b2046(0x469)])!=null?_0x3a8d7d:_0x2b2046(0x1a2);return{'changeset':{'unitID':_0x1a92a7,'type':_0x286a05(_0x8fa8cd[_0x2b2046(0x44c)](_0x1a92a7)),'baseRev':_0x4eb9f8['getCurrentRevForDocument'](_0x1a92a7),'revision':0x0,'userID':_0x6c6cc0,'memberID':_0x2f43e3,'mutations':_0x2b034e},'pendingMutations':_0x14942f['slice'](_0x2b034e[_0x2b2046(0x249)])};}function er(_0x4f39ea,_0x327869,_0x2254ab,_0x473488,_0x1ed26a){const _0x3c3f4a=_0xa83ddf;var _0x351246,_0x2c38fa,_0x484c54,_0x2e4fae;const _0x4dd816=[_0x4f39ea['reduce']((_0xf2164d,_0x1818d6)=>{const _0x24d022=_0xed79;var _0xcece9d;const {id:_0x10bdc5}=_0xf2164d,{id:_0x5c10a8,type:_0x264520}=_0x1818d6,_0x2c818a=(_0xcece9d=_0xf2164d[_0x24d022(0x370)])!=null?_0xcece9d:{'actions':null},_0x1011cd=_0x1818d6[_0x24d022(0x370)];if(_0x10bdc5&&_0x10bdc5!==_0x5c10a8)throw new Error(_0x24d022(0x216)+_0x10bdc5+'\x20-\x20'+_0x5c10a8+'.');return{..._0xf2164d,'id':_0x5c10a8,'type':_0x264520,'params':{'unitId':_0x1011cd[_0x24d022(0x3dd)],'textRanges':_0x1011cd[_0x24d022(0x3dc)],'actions':_0x5f5d93[_0x24d022(0x3c7)](_0x2c818a[_0x24d022(0x23a)],_0x1011cd['actions'])}};},{})],_0x3715c3=(_0x2c38fa=(_0x351246=_0x1ed26a['getCurrentUser']())==null?void 0x0:_0x351246[_0x3c3f4a(0x463)])!=null?_0x2c38fa:_0x3c3f4a(0x1a2),_0x4045da=(_0x2e4fae=(_0x484c54=_0x1ed26a[_0x3c3f4a(0x27f)]())==null?void 0x0:_0x484c54['memberID'])!=null?_0x2e4fae:_0x3c3f4a(0x1a2);return{'changeset':{'unitID':_0x327869,'type':_0x286a05(_0x2254ab[_0x3c3f4a(0x44c)](_0x327869)),'baseRev':_0x473488[_0x3c3f4a(0x238)](_0x327869),'revision':0x0,'userID':_0x3715c3,'memberID':_0x4045da,'mutations':_0x4dd816},'pendingMutations':[]};}const tr={'id':_0x2006d3['id'],'type':_0x20ade7[_0xa83ddf(0x445)],'params':{}};var sr=Object['defineProperty'],ir=Object['getOwnPropertyDescriptor'],ce=(_0x31afd9,_0x391b62,_0x52aee9,_0x87281d)=>{const _0x346170=_0xa83ddf;for(var _0x4fbde0=_0x87281d>0x1?void 0x0:_0x87281d?ir(_0x391b62,_0x52aee9):_0x391b62,_0x5dea35=_0x31afd9[_0x346170(0x249)]-0x1,_0x2d37ee;_0x5dea35>=0x0;_0x5dea35--)(_0x2d37ee=_0x31afd9[_0x5dea35])&&(_0x4fbde0=(_0x87281d?_0x2d37ee(_0x391b62,_0x52aee9,_0x4fbde0):_0x2d37ee(_0x4fbde0))||_0x4fbde0);return _0x87281d&&_0x4fbde0&&sr(_0x391b62,_0x52aee9,_0x4fbde0),_0x4fbde0;},f=(_0x228aec,_0x9df532)=>(_0x5df876,_0x165f80)=>_0x9df532(_0x5df876,_0x165f80,_0x228aec),P=(_0x405f07=>(_0x405f07[_0xa83ddf(0x3f5)]=_0xa83ddf(0x175),_0x405f07[_0xa83ddf(0x30e)]=_0xa83ddf(0x375),_0x405f07[_0xa83ddf(0x45d)]=_0xa83ddf(0x397),_0x405f07['AWAITING']=_0xa83ddf(0x2fe),_0x405f07[_0xa83ddf(0x354)]='awaiting_with_pending',_0x405f07[_0xa83ddf(0x464)]=_0xa83ddf(0x3aa),_0x405f07[_0xa83ddf(0x25f)]=_0xa83ddf(0x1ea),_0x405f07[_0xa83ddf(0x42e)]='offline',_0x405f07))(P||{});class he{constructor(_0x5c338b,_0x75b1bb,_0x1fd510,_0x37eb45,_0x1c04df,_0x31298f,_0x47539c,_0x345139,_0x323cde){const _0x55dade=_0xa83ddf;_(this,'_awaitingChangeset',null),_(this,_0x55dade(0x43e),[]),(this[_0x55dade(0x452)]=_0x5c338b,this[_0x55dade(0x2f9)]=_0x75b1bb,this[_0x55dade(0x233)]=_0x1c04df,this['_commandService']=_0x31298f,this[_0x55dade(0x3a0)]=_0x47539c,this['_revisionService']=_0x345139,this[_0x55dade(0x158)]=_0x323cde,this[_0x55dade(0x374)]=_0x1fd510,this[_0x55dade(0x43e)]=_0x37eb45);}['_checkMissing'](_0xb21249){const _0x1adc1a=_0xa83ddf,_0x85022d=this[_0x1adc1a(0x2c6)]['getCurrentRevForDocument'](this[_0x1adc1a(0x452)]);return _0xb21249[_0x1adc1a(0x142)]>_0x85022d+0x1?(this[_0x1adc1a(0x233)][_0x1adc1a(0x16d)]({'from':_0x85022d,'to':_0xb21249['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x35070c){const _0x38c42e=_0xa83ddf;this[_0x38c42e(0x3a0)][_0x38c42e(0x20f)](this[_0x38c42e(0x452)],_0x35070c);}['_transformSelections'](_0x39b006){const _0x1c1519=_0xa83ddf;var _0x4d08dd,_0x1ea119;(_0x1ea119=(_0x4d08dd=this[_0x1c1519(0x233)])[_0x1c1519(0x3b7)])==null||_0x1ea119['call'](_0x4d08dd,_0x39b006);}[_0xa83ddf(0x151)](_0x1f1d3e){const _0x394578=_0xa83ddf;var _0x40126f,_0x4a01f8;return(_0x4a01f8=(_0x40126f=this[_0x394578(0x233)])[_0x394578(0x293)])==null?void 0x0:_0x4a01f8[_0x394578(0x3b3)](_0x40126f,_0x1f1d3e);}[_0xa83ddf(0x400)](_0x89a9f6){const _0x3182c1=_0xa83ddf;var _0x349f3c,_0x5c7cb2,_0x384a31;return(_0x384a31=(_0x5c7cb2=(_0x349f3c=this[_0x3182c1(0x233)])[_0x3182c1(0x47c)])==null?void 0x0:_0x5c7cb2['call'](_0x349f3c,_0x89a9f6))!=null?_0x384a31:_0x89a9f6;}[_0xa83ddf(0x1ab)](_0x31369d){const _0x5809a3=_0xa83ddf;var _0x267de6,_0x3fa307;if(this[_0x5809a3(0x2f9)]===H[_0x5809a3(0x1f2)]){const {unitID:_0x16e5fa,mutations:_0x57228e,memberID:_0x4e46a7}=_0x31369d,_0x3729a4=_0x57228e[0x0][_0x5809a3(0x370)][_0x5809a3(0x3dc)];Array[_0x5809a3(0x210)](_0x3729a4)&&_0x3729a4[_0x5809a3(0x249)]>0x0&&((_0x3fa307=(_0x267de6=this[_0x5809a3(0x233)])[_0x5809a3(0x27e)])==null||_0x3fa307[_0x5809a3(0x3b3)](_0x267de6,{'unitID':_0x16e5fa,'memberID':_0x4e46a7,'textRanges':_0x3729a4}));}}[_0xa83ddf(0x294)](){const _0x58a3fc=_0xa83ddf;this[_0x58a3fc(0x158)][_0x58a3fc(0x1e2)](this[_0x58a3fc(0x452)],this[_0x58a3fc(0x2f9)],this[_0x58a3fc(0x374)],this[_0x58a3fc(0x43e)]);}[_0xa83ddf(0x39b)](){const _0x43e003=_0xa83ddf;return this[_0x43e003(0x2c6)][_0x43e003(0x238)](this['unitID']);}[_0xa83ddf(0x156)](){const _0x37649e=_0xa83ddf;this['_revisionService']['incrementRevForDocument'](this[_0x37649e(0x452)]);}[_0xa83ddf(0x1da)](_0x34d552){const _0x570c56=_0xa83ddf;var _0x199393;const _0x401dad=this[_0x570c56(0x400)](_0x34d552),_0x28b614=_0x343a59(_0x401dad['mutations'],this[_0x570c56(0x153)],{'fromCollab':!0x0});if(!_0x28b614[_0x570c56(0x443)])throw _0x28b614['error']instanceof Error?_0x28b614[_0x570c56(0x44e)]:new Error((_0x199393=_0x28b614[_0x570c56(0x44e)])!=null?_0x199393:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x401dad),this['_transformUndoredo'](_0x34d552),this[_0x570c56(0x41f)](_0x401dad),this[_0x570c56(0x1ab)](_0x401dad),this['_incrementRevisionNumber']();}}let Ue=class extends he{constructor(_0x17151b,_0x1ecf12,_0x4ac844,_0x3a07d3,_0x31a2c8,_0x4b957b,_0xeae583,_0x2fd372,_0x5297fc,_0x5582ff){const _0x54b0b7=_0xa83ddf;super(_0x17151b,_0x1ecf12,null,[],_0x4ac844,_0x2fd372,_0xeae583,_0x3a07d3,_0x31a2c8),_(this,'status','synced'),(this[_0x54b0b7(0x1ef)]=_0x4b957b,this[_0x54b0b7(0x33d)]=_0x5297fc,this[_0x54b0b7(0x2ef)]=_0x5582ff);}[_0xa83ddf(0x258)](_0x2f1407){const _0x2c7e76=_0xa83ddf,_0x52abca=this[_0x2c7e76(0x1ef)][_0x2c7e76(0x274)](G,this['unitID'],this[_0x2c7e76(0x2f9)],[_0x2f1407],this[_0x2c7e76(0x233)]);return _0x52abca[_0x2c7e76(0x1d7)](),_0x52abca[_0x2c7e76(0x294)](),_0x52abca;}[_0xa83ddf(0x2c1)](_0x45b372){const _0x4327db=_0xa83ddf;if(this['_checkMissing'](_0x45b372))return this[_0x4327db(0x1ef)]['createInstance'](K,this[_0x4327db(0x452)],this[_0x4327db(0x2f9)],null,[],null,[_0x45b372],this[_0x4327db(0x233)]);try{const _0x41360a=this[_0x4327db(0x2ef)][_0x4327db(0x384)](_0x45b372,[tr]);if(_0x5d016b(_0x41360a)){const {c1Prime:_0x2244ee}=_0x41360a;return this[_0x4327db(0x1da)](_0x2244ee),this;}throw _0x41360a[_0x4327db(0x44e)];}catch(_0xdeb9d9){return this[_0x4327db(0x33d)][_0x4327db(0x44e)](_0xdeb9d9),this[_0x4327db(0x2c3)](!0x1);}}[_0xa83ddf(0x2c3)](_0x37510b){const _0x277551=_0xa83ddf;return this[_0x277551(0x1ef)][_0x277551(0x274)](Z,this[_0x277551(0x452)],this['type'],null,[],this[_0x277551(0x233)],_0x37510b);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xa83ddf(0x1fd)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x1f3156=_0xa83ddf;return this[_0x1f3156(0x1ef)]['createInstance'](Q,this[_0x1f3156(0x452)],this[_0x1f3156(0x2f9)],null,[],this[_0x1f3156(0x233)]);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x3e1)](){const _0x536e8d=_0xa83ddf;throw new Error(_0x536e8d(0x1e7));}};Ue=ce([f(0x3,_0x2854bc(_0x4bf679)),f(0x4,_0x2854bc(D)),f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x1e8ca5),f(0x7,_0x291fa9),f(0x8,_0x31880b),f(0x9,_0x5b4b40)],Ue);let G=class extends he{constructor(_0x3b3995,_0x39aa30,_0xc7b369,_0x484668,_0x431280,_0x46d940,_0x283bb7,_0x3951ba,_0x43f807,_0xa74048,_0x3dba34,_0x57def2,_0x58e38d,_0x572a76){const _0x38253e=_0xa83ddf;super(_0x3b3995,_0x39aa30,null,_0xc7b369,_0x484668,_0xa74048,_0x572a76,_0x46d940,_0x283bb7),_(this,_0x38253e(0x3e8),_0x38253e(0x397)),_(this,_0x38253e(0x2d9),null),_(this,'_sendingTimer',null),(this['_injector']=_0x431280,this[_0x38253e(0x13e)]=_0x3951ba,this[_0x38253e(0x33d)]=_0x43f807,this[_0x38253e(0x442)]=_0x3dba34,this[_0x38253e(0x2ef)]=_0x57def2,this[_0x38253e(0x44a)]=_0x58e38d);}['appendMutation'](_0x1583ad){const _0x237651=_0xa83ddf;return this[_0x237651(0x43e)][_0x237651(0x14e)](_0x1583ad),this[_0x237651(0x294)](),this;}[_0xa83ddf(0x2c1)](_0x371fe8){const _0x270523=_0xa83ddf;if(this[_0x270523(0x357)](_0x371fe8))return this[_0x270523(0x21f)](),this['_injector'][_0x270523(0x274)](K,this[_0x270523(0x452)],this[_0x270523(0x2f9)],null,this[_0x270523(0x43e)],null,[_0x371fe8],this['_handler']);try{const _0x301e6a=this['_transformService'][_0x270523(0x384)](_0x371fe8,this['_pendingMutations']);if(_0x5d016b(_0x301e6a)){const {c1Prime:_0x3b6041,m2Prime:_0x34cc27}=_0x301e6a;this[_0x270523(0x1da)](_0x3b6041);const _0x416394=this['_injector'][_0x270523(0x274)](G,this[_0x270523(0x452)],this['type'],_0x34cc27,this[_0x270523(0x233)]);return this[_0x270523(0x21f)](),_0x416394['_schedule'](this[_0x270523(0x2d9)]?Math[_0x270523(0x366)](0x0,new Date()[_0x270523(0x292)]()-this[_0x270523(0x2d9)]):this[_0x270523(0x28a)]()),_0x416394;}throw _0x301e6a[_0x270523(0x44e)];}catch(_0x56409b){return this[_0x270523(0x33d)][_0x270523(0x44e)](_0x56409b),this[_0x270523(0x2c3)](!0x1);}}[_0xa83ddf(0x39a)](){const _0xfa3d65=_0xa83ddf;throw new Error(_0xfa3d65(0x360));}[_0xa83ddf(0x1fd)](){const _0x4829f6=_0xa83ddf;throw new Error(_0x4829f6(0x475));}[_0xa83ddf(0x340)](){const _0x3abbd1=_0xa83ddf;return this[_0x3abbd1(0x21f)](),this[_0x3abbd1(0x1ef)][_0x3abbd1(0x274)](Q,this[_0x3abbd1(0x452)],this['type'],null,this[_0x3abbd1(0x43e)],this[_0x3abbd1(0x233)]);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x1d7)](_0xc17fdc){const _0x1e82bc=_0xa83ddf;_0xc17fdc=_0xc17fdc!=null?_0xc17fdc:this[_0x1e82bc(0x28a)](),this[_0x1e82bc(0x2d9)]=new Date()['getTime'](),this[_0x1e82bc(0x283)]=setTimeout(()=>{const _0x1917d2=_0x1e82bc;this['_clearScheduledTask']();let _0x1758bc=null;switch(this[_0x1917d2(0x2f9)]){case H[_0x1917d2(0x2ac)]:{_0x1758bc=os(this['_pendingMutations'],this[_0x1917d2(0x452)],this[_0x1917d2(0x44a)],this[_0x1917d2(0x2c6)],this[_0x1917d2(0x13e)]);break;}case H[_0x1917d2(0x1f2)]:{this['_pendingMutations'][_0x1917d2(0x19e)](_0x569690=>_0x569690['id']===_0x53c1cb['id'])?_0x1758bc=er(this[_0x1917d2(0x43e)],this[_0x1917d2(0x452)],this[_0x1917d2(0x44a)],this[_0x1917d2(0x2c6)],this[_0x1917d2(0x13e)]):_0x1758bc=os(this[_0x1917d2(0x43e)],this['unitID'],this[_0x1917d2(0x44a)],this['_revisionService'],this[_0x1917d2(0x13e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x1917d2(0x3a3));}const {changeset:_0x7904a1,pendingMutations:_0xc7795a}=_0x1758bc;this[_0x1917d2(0x233)]['onSendChangeset'](_0x7904a1);const _0x402f39=_0xc7795a['length']?this[_0x1917d2(0x1ef)][_0x1917d2(0x274)](Y,this['unitID'],this[_0x1917d2(0x2f9)],_0x7904a1,_0xc7795a,this[_0x1917d2(0x233)]):this[_0x1917d2(0x1ef)][_0x1917d2(0x274)](q,this['unitID'],this[_0x1917d2(0x2f9)],_0x7904a1,this[_0x1917d2(0x233)]);_0x402f39[_0x1917d2(0x294)](),this['_handler'][_0x1917d2(0x261)](this,_0x402f39);},_0xc17fdc);}[_0xa83ddf(0x28a)](){const _0x16434e=_0xa83ddf;var _0x30b3e4;return(_0x30b3e4=this[_0x16434e(0x442)][_0x16434e(0x436)](_n))!=null?_0x30b3e4:ln;}['resend'](){const _0x2b5956=_0xa83ddf;throw new Error(_0x2b5956(0x33a));}[_0xa83ddf(0x21f)](){this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0xa83ddf(0x2c3)](_0x337f31){const _0x36f2b0=_0xa83ddf;return this[_0x36f2b0(0x21f)](),this[_0x36f2b0(0x1ef)][_0x36f2b0(0x274)](Z,this[_0x36f2b0(0x452)],this[_0x36f2b0(0x2f9)],null,this['_pendingMutations'],this['_handler'],_0x337f31);}};G=ce([f(0x4,_0x2854bc(_0x28aed1)),f(0x5,_0x2854bc(_0x4bf679)),f(0x6,_0x2854bc(D)),f(0x7,_0x2854bc(ne)),f(0x8,_0x31880b),f(0x9,_0x291fa9),f(0xa,_0x5e7a12),f(0xb,_0x5b4b40),f(0xc,_0x1b1ada),f(0xd,_0x1e8ca5)],G);let q=class extends he{constructor(_0x19ed1e,_0x2ad1de,_0x3e3bf3,_0x43d660,_0x503cbd,_0x2ea701,_0x48f604,_0x104382,_0x409a29,_0x1fc6f4,_0x3a915a){const _0x3ee29a=_0xa83ddf;super(_0x19ed1e,_0x2ad1de,_0x3e3bf3,[],_0x43d660,_0x104382,_0x3a915a,_0x2ea701,_0x48f604),_(this,_0x3ee29a(0x3e8),'awaiting'),(this['_injector']=_0x503cbd,this[_0x3ee29a(0x33d)]=_0x409a29,this[_0x3ee29a(0x2ef)]=_0x1fc6f4);}[_0xa83ddf(0x258)](_0x5e7e78){const _0x18bd1d=_0xa83ddf,_0x200a52=this[_0x18bd1d(0x1ef)][_0x18bd1d(0x274)](Y,this['unitID'],this[_0x18bd1d(0x2f9)],this[_0x18bd1d(0x374)],[_0x5e7e78],this[_0x18bd1d(0x233)]);return _0x200a52['_updateLocalCache'](),_0x200a52;}[_0xa83ddf(0x2c1)](_0x3d612b){const _0x452d23=_0xa83ddf;if(this[_0x452d23(0x357)](_0x3d612b))return this[_0x452d23(0x1ef)][_0x452d23(0x274)](K,this[_0x452d23(0x452)],this['type'],this[_0x452d23(0x374)],[],null,[_0x3d612b],this[_0x452d23(0x233)]);try{const _0x248fcc=this[_0x452d23(0x2ef)]['transformChangesets']([_0x3d612b],[this['_awaitingChangeset']],!0x1);if(_0x110984(_0x248fcc)){const {c1Prime:_0x5a4ad2,c2Prime:_0xe45f25}=_0x248fcc;this[_0x452d23(0x1da)](_0x5a4ad2[0x0]),_0xe45f25[0x0][_0x452d23(0x2b2)]=this[_0x452d23(0x39b)]();const _0x2abe2f=this[_0x452d23(0x1ef)][_0x452d23(0x274)](q,this[_0x452d23(0x452)],this[_0x452d23(0x2f9)],_0xe45f25[0x0],this[_0x452d23(0x233)]);return _0x2abe2f[_0x452d23(0x294)](),_0x2abe2f;}return this[_0x452d23(0x2c3)](!0x1);}catch(_0x34e153){return this[_0x452d23(0x33d)][_0x452d23(0x44e)](_0x34e153),this[_0x452d23(0x2c3)](!0x1);}}[_0xa83ddf(0x39a)](_0x2a0334){const _0x3c315d=_0xa83ddf,_0x35086f=this[_0x3c315d(0x2c6)][_0x3c315d(0x238)](this[_0x3c315d(0x452)]);if(_0x2a0334[_0x3c315d(0x142)]<_0x35086f-0x1)return this;if(this[_0x3c315d(0x357)](_0x2a0334))return this[_0x3c315d(0x1ef)][_0x3c315d(0x274)](K,this[_0x3c315d(0x452)],this[_0x3c315d(0x2f9)],null,[],this[_0x3c315d(0x374)],[],this[_0x3c315d(0x233)]);this[_0x3c315d(0x156)]();const _0x599427=this[_0x3c315d(0x1ef)][_0x3c315d(0x274)](Ue,this['unitID'],this[_0x3c315d(0x2f9)],this[_0x3c315d(0x233)]);return _0x599427[_0x3c315d(0x294)](),_0x599427;}[_0xa83ddf(0x1fd)](_0x732e3e){const _0x419ba3=_0xa83ddf;return this[_0x419ba3(0x2c3)](!!(_0x732e3e!=null&&_0x732e3e['isPermissionRej']));}[_0xa83ddf(0x340)](){const _0x35c9e6=_0xa83ddf;return this[_0x35c9e6(0x1ef)][_0x35c9e6(0x274)](Q,this[_0x35c9e6(0x452)],this[_0x35c9e6(0x2f9)],this[_0x35c9e6(0x374)],[],this['_handler']);}['toggleOnline'](){return this;}[_0xa83ddf(0x3e1)](){const _0x20144c=_0xa83ddf;this['_handler'][_0x20144c(0x386)](this['_awaitingChangeset']);}[_0xa83ddf(0x2c3)](_0x1bbd87){const _0x45e20e=_0xa83ddf;return this[_0x45e20e(0x1ef)][_0x45e20e(0x274)](Z,this['unitID'],this['type'],this['_awaitingChangeset'],[],this[_0x45e20e(0x233)],_0x1bbd87);}};q=ce([f(0x4,_0x2854bc(_0x28aed1)),f(0x5,_0x2854bc(_0x4bf679)),f(0x6,_0x2854bc(D)),f(0x7,_0x291fa9),f(0x8,_0x31880b),f(0x9,_0x5b4b40),f(0xa,_0x1e8ca5)],q);let Y=class extends he{constructor(_0x5e8f8e,_0x54ac2e,_0x1eb2bd,_0x37ce88,_0x5c2522,_0x4d89ee,_0x2b821f,_0x190149,_0x52e4cd,_0x1c8355,_0x3b9187,_0x36613f){const _0x4081b4=_0xa83ddf;super(_0x5e8f8e,_0x54ac2e,_0x1eb2bd,_0x37ce88,_0x5c2522,_0x52e4cd,_0x36613f,_0x2b821f,_0x190149),_(this,_0x4081b4(0x3e8),'awaiting_with_pending'),(this[_0x4081b4(0x1ef)]=_0x4d89ee,this['_logService']=_0x1c8355,this[_0x4081b4(0x2ef)]=_0x3b9187);}[_0xa83ddf(0x258)](_0x130da3){const _0x431b87=_0xa83ddf;return this[_0x431b87(0x43e)]['push'](_0x130da3),this;}[_0xa83ddf(0x2c1)](_0x39b5fe){const _0x400eb0=_0xa83ddf;if(this['_checkMissing'](_0x39b5fe))return this[_0x400eb0(0x1ef)][_0x400eb0(0x274)](K,this['unitID'],this['type'],this[_0x400eb0(0x374)],this[_0x400eb0(0x43e)],null,[_0x39b5fe],this[_0x400eb0(0x233)]);try{const _0x3fc149=this[_0x400eb0(0x2ef)][_0x400eb0(0x2b1)]([_0x39b5fe],[this['_awaitingChangeset']],!0x1);if(_0x110984(_0x3fc149)){const {c1Prime:_0x3dd368,c2Prime:_0x1aeea6}=_0x3fc149,_0x3a76b2=this['_transformService']['transformMutationsWithChangeset'](_0x3dd368[0x0],this[_0x400eb0(0x43e)]);if(_0x5d016b(_0x3a76b2)){const {c1Prime:_0x1fc92e,m2Prime:_0xc11e92}=_0x3a76b2;return this[_0x400eb0(0x1da)](_0x1fc92e),_0x1aeea6[0x0][_0x400eb0(0x2b2)]=this[_0x400eb0(0x39b)](),this[_0x400eb0(0x1ef)]['createInstance'](Y,this[_0x400eb0(0x452)],this['type'],_0x1aeea6[0x0],_0xc11e92,this[_0x400eb0(0x233)]);}throw _0x3a76b2[_0x400eb0(0x44e)];}throw _0x3fc149[_0x400eb0(0x44e)];}catch(_0x240764){return this[_0x400eb0(0x33d)][_0x400eb0(0x44e)](_0x240764),this['_onConflict'](!0x1);}}[_0xa83ddf(0x39a)](_0x1e25ec){const _0x2c111e=_0xa83ddf;if(this['_checkMissing'](_0x1e25ec))return this[_0x2c111e(0x1ef)][_0x2c111e(0x274)](K,this[_0x2c111e(0x452)],this[_0x2c111e(0x2f9)],null,this[_0x2c111e(0x43e)],this['_awaitingChangeset'],[],this[_0x2c111e(0x233)]);this[_0x2c111e(0x156)]();const _0x2a4a27=this[_0x2c111e(0x1ef)]['createInstance'](G,this[_0x2c111e(0x452)],this[_0x2c111e(0x2f9)],this[_0x2c111e(0x43e)],this[_0x2c111e(0x233)]);return _0x2a4a27[_0x2c111e(0x1d7)](),_0x2a4a27['_updateLocalCache'](),_0x2a4a27;}[_0xa83ddf(0x1fd)](_0x4803e5){const _0x2d5f69=_0xa83ddf;return this[_0x2d5f69(0x2c3)](!!(_0x4803e5!=null&&_0x4803e5[_0x2d5f69(0x15a)]));}[_0xa83ddf(0x340)](){const _0x48f420=_0xa83ddf;return this[_0x48f420(0x1ef)][_0x48f420(0x274)](Q,this[_0x48f420(0x452)],this[_0x48f420(0x2f9)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0xa83ddf(0x262)](){return this;}['resend'](){const _0xd2f459=_0xa83ddf;this[_0xd2f459(0x233)][_0xd2f459(0x386)](this[_0xd2f459(0x374)]);}[_0xa83ddf(0x2c3)](_0x4389af){const _0x21f16c=_0xa83ddf;return this[_0x21f16c(0x1ef)]['createInstance'](Z,this['unitID'],this[_0x21f16c(0x2f9)],null,this['_pendingMutations'],this[_0x21f16c(0x233)],_0x4389af);}};Y=ce([f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x2854bc(_0x4bf679)),f(0x7,_0x2854bc(D)),f(0x8,_0x291fa9),f(0x9,_0x31880b),f(0xa,_0x5b4b40),f(0xb,_0x1e8ca5)],Y);let Z=class extends he{constructor(_0x31cc9,_0x4797fd,_0x3e4f7f,_0x578cd5,_0x3cd4fc,_0x24c3c7=!0x1,_0x11ec03,_0x258311,_0x3769a9,_0x16f31f,_0x488a9c,_0xc87fa9,_0x3c050c){const _0x13761a=_0xa83ddf;super(_0x31cc9,_0x4797fd,_0x3e4f7f,_0x578cd5,_0x3cd4fc,_0x258311,_0x3769a9,_0x488a9c,_0x16f31f),_(this,_0x13761a(0x3e8),_0x13761a(0x1ea)),(this[_0x13761a(0x16b)]=_0x24c3c7,this['_permissionService']=_0x11ec03,this[_0x13761a(0x46b)]=_0xc87fa9,this[_0x13761a(0x17f)]=_0x3c050c,this[_0x13761a(0x1e1)](),this[_0x13761a(0x449)](),this['_disableEditing']());}[_0xa83ddf(0x258)](){return this;}[_0xa83ddf(0x2c1)](){return this;}['onRemoteAck'](){return this;}[_0xa83ddf(0x1fd)](){return this;}[_0xa83ddf(0x340)](){return this;}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x3e1)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xa83ddf(0x449)](){const _0x1a3b16=_0xa83ddf;this['_localCacheService']['updateOfflineData'](this[_0x1a3b16(0x452)],this[_0x1a3b16(0x2f9)],null,[]);}[_0xa83ddf(0x1e1)](){const _0x27b4d4=_0xa83ddf;this[_0x27b4d4(0x16b)]?this[_0x27b4d4(0x17f)][_0x27b4d4(0x178)]({'title':this['_localeService']['t'](_0x27b4d4(0x191)),'content':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x381)),'type':_0x27b4d4(0x44e),'duration':0x0}):this[_0x27b4d4(0x17f)][_0x27b4d4(0x178)]({'title':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x228)),'content':this[_0x27b4d4(0x46b)]['t'](_0x27b4d4(0x32d)),'type':_0x27b4d4(0x44e),'duration':0x0});}[_0xa83ddf(0x404)](){const _0x42fcb6=_0xa83ddf;this[_0x42fcb6(0x47d)][_0x42fcb6(0x2c4)](new _0x2efdca(this[_0x42fcb6(0x452)])['id'],!0x1);}};Z=ce([f(0x6,_0x2854bc(_0x524b2d)),f(0x7,_0x291fa9),f(0x8,_0x1e8ca5),f(0x9,_0x2854bc(D)),f(0xa,_0x2854bc(_0x4bf679)),f(0xb,_0x2854bc(_0x501416)),f(0xc,_0x55f36b)],Z);let Q=class extends he{constructor(_0x1514e8,_0x510724,_0x49caed,_0x491f90,_0x287697,_0x9f9493,_0x30d9e6,_0x4f3712,_0x5de98b,_0x45433f){const _0x15b073=_0xa83ddf;super(_0x1514e8,_0x510724,_0x49caed,_0x491f90,_0x287697,_0x5de98b,_0x45433f,_0x30d9e6,_0x4f3712),_(this,_0x15b073(0x3e8),_0x15b073(0x2a5)),this[_0x15b073(0x1ef)]=_0x9f9493;}[_0xa83ddf(0x258)](_0x6e43e5){const _0x27dfd4=_0xa83ddf;return this[_0x27dfd4(0x43e)][_0x27dfd4(0x14e)](_0x6e43e5),this[_0x27dfd4(0x294)](),this;}[_0xa83ddf(0x2c1)](_0x4edf06){const _0x3b4486=_0xa83ddf;throw new Error(_0x3b4486(0x3c4));}[_0xa83ddf(0x39a)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0xa83ddf(0x1fd)](){const _0x215f72=_0xa83ddf;throw new Error(_0x215f72(0x42b));}[_0xa83ddf(0x340)](){return this;}[_0xa83ddf(0x262)](){const _0x540597=_0xa83ddf,{_injector:_0x5cdf99,_pendingMutations:_0x1643c5,_awaitingChangeset:_0x58eeb5,unitID:_0x832e71,_handler:_0x5793d1,type:_0x3f2fc5}=this,_0x36e665=Ls(_0x5cdf99,_0x832e71,_0x3f2fc5,_0x58eeb5,_0x1643c5,_0x5793d1);return _0x36e665 instanceof G?_0x36e665[_0x540597(0x1d7)]():(_0x36e665 instanceof Y||_0x36e665 instanceof q)&&_0x36e665['resend'](),_0x36e665;}[_0xa83ddf(0x3e1)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Q=ce([f(0x5,_0x2854bc(_0x28aed1)),f(0x6,_0x2854bc(_0x4bf679)),f(0x7,_0x2854bc(D)),f(0x8,_0x291fa9),f(0x9,_0x1e8ca5)],Q);let K=class extends he{constructor(_0x524411,_0x200045,_0x83f458,_0x4c55d7,_0x4bf65b,_0x204d04,_0x5aa872,_0x4a685c,_0x47e514,_0x36dfd0,_0x5e2c4f,_0x328e90,_0x3e88f0,_0x91db63){const _0x3c9280=_0xa83ddf;super(_0x524411,_0x200045,_0x83f458,_0x4c55d7,_0x5aa872,_0x328e90,_0x3e88f0,_0x47e514,_0x36dfd0),_(this,_0x3c9280(0x3e8),_0x3c9280(0x3aa)),(this[_0x3c9280(0x36f)]=_0x4bf65b,this['_queuedRemoteChangesets']=_0x204d04,this[_0x3c9280(0x1ef)]=_0x4a685c,this[_0x3c9280(0x33d)]=_0x5e2c4f,this[_0x3c9280(0x2ef)]=_0x91db63);}[_0xa83ddf(0x314)](_0x36159b){const _0x3d9cb6=_0xa83ddf;try{const _0x19e012=[..._0x36159b,...this[_0x3d9cb6(0x1f1)]],_0x21f584=[this[_0x3d9cb6(0x374)]||this[_0x3d9cb6(0x36f)]][_0x3d9cb6(0x19f)](_0xa3bf89=>!!_0xa3bf89);let _0x3a4d5f,_0x5a2185;if(_0x21f584['length']){const _0x26ce86=this[_0x3d9cb6(0x2ef)][_0x3d9cb6(0x2b1)](_0x19e012,_0x21f584,!0x1);if(!_0x110984(_0x26ce86))throw _0x26ce86[_0x3d9cb6(0x44e)];_0x3a4d5f=_0x26ce86['c1Prime'],_0x5a2185=_0x26ce86['c2Prime'];}else _0x3a4d5f=_0x19e012,_0x5a2185=[];let _0x550c31=this[_0x3d9cb6(0x43e)];_0x3a4d5f[_0x3d9cb6(0x3e6)](_0x135d43=>{const _0x2bb3fc=_0x3d9cb6;let _0x50d8dd;if(_0x550c31[_0x2bb3fc(0x249)]){const _0x16630c=this['_transformService'][_0x2bb3fc(0x384)](_0x135d43,_0x550c31);if(!_0x5d016b(_0x16630c))throw _0x16630c[_0x2bb3fc(0x44e)];_0x50d8dd=_0x16630c[_0x2bb3fc(0x227)],_0x550c31=_0x16630c[_0x2bb3fc(0x145)];}else _0x50d8dd=_0x135d43;this[_0x2bb3fc(0x1da)](_0x50d8dd);}),this[_0x3d9cb6(0x36f)]&&this[_0x3d9cb6(0x156)](),this[_0x3d9cb6(0x374)]&&_0x5a2185[_0x3d9cb6(0x249)]&&(_0x5a2185[0x0]['baseRev']=this[_0x3d9cb6(0x39b)]());let _0x5f3982;if(this[_0x3d9cb6(0x374)]&&_0x550c31['length']!==0x0)_0x5f3982=this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](Y,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],_0x5a2185[0x0],_0x550c31,this['_handler']);else{if(this['_awaitingChangeset']&&_0x550c31[_0x3d9cb6(0x249)]===0x0)_0x5a2185[0x0][_0x3d9cb6(0x2b2)]=this['_getCurrentRevision'](),_0x5f3982=this[_0x3d9cb6(0x1ef)]['createInstance'](q,this['unitID'],this['type'],_0x5a2185[0x0],this['_handler']);else{if(_0x550c31['length']!==0x0){const _0x1e27e5=this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](G,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],_0x550c31,this[_0x3d9cb6(0x233)]);_0x1e27e5[_0x3d9cb6(0x1d7)](),_0x5f3982=_0x1e27e5;}else _0x5f3982=this['_injector'][_0x3d9cb6(0x274)](Ue,this[_0x3d9cb6(0x452)],this[_0x3d9cb6(0x2f9)],this[_0x3d9cb6(0x233)]);}}return _0x5f3982['_updateLocalCache'](),_0x5f3982;}catch(_0x3a93a4){return this['_logService']['error'](_0x3d9cb6(0x252),'failed\x20to\x20apply\x20missed\x20changesets!',_0x3a93a4),this[_0x3d9cb6(0x1ef)][_0x3d9cb6(0x274)](Z,this['unitID'],this[_0x3d9cb6(0x2f9)],this[_0x3d9cb6(0x374)],this[_0x3d9cb6(0x43e)],this[_0x3d9cb6(0x233)],!0x1);}}[_0xa83ddf(0x3e1)](){const _0x5f3d88=_0xa83ddf;throw new Error(_0x5f3d88(0x309));}[_0xa83ddf(0x258)](_0x40930f){const _0x5f21b7=_0xa83ddf;return this[_0x5f21b7(0x43e)][_0x5f21b7(0x14e)](_0x40930f),this;}['onRemoteChangeset'](_0x51ceb9){const _0x378ff4=_0xa83ddf;return this['_queuedRemoteChangesets'][_0x378ff4(0x14e)](_0x51ceb9),this;}['onRemoteAck'](_0x2ab9d0){const _0x2e39eb=_0xa83ddf;if(this[_0x2e39eb(0x374)])return this[_0x2e39eb(0x36f)]=this['_awaitingChangeset'],this[_0x2e39eb(0x374)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x13b804){const _0x3c20b9=_0xa83ddf;return this[_0x3c20b9(0x2c3)](!!(_0x13b804!=null&&_0x13b804['isPermissionRej']));}[_0xa83ddf(0x340)](){const _0x567a9d=_0xa83ddf;return this['_injector']['createInstance'](Q,this['unitID'],this[_0x567a9d(0x2f9)],this[_0x567a9d(0x374)],this[_0x567a9d(0x43e)],this['_handler']);}[_0xa83ddf(0x262)](){return this;}[_0xa83ddf(0x2c3)](_0x11675d){const _0x3e08a7=_0xa83ddf;return this[_0x3e08a7(0x1ef)]['createInstance'](Z,this[_0x3e08a7(0x452)],this[_0x3e08a7(0x2f9)],this[_0x3e08a7(0x374)],this['_pendingMutations'],this[_0x3e08a7(0x233)],_0x11675d);}};K=ce([f(0x7,_0x2854bc(_0x28aed1)),f(0x8,_0x2854bc(_0x4bf679)),f(0x9,_0x2854bc(D)),f(0xa,_0x31880b),f(0xb,_0x291fa9),f(0xc,_0x1e8ca5),f(0xd,_0x5b4b40)],K);function Ls(_0x1de4d8,_0x31e199,_0x2790da,_0x53228b,_0x7bf40,_0x936f21){const _0x560204=_0xa83ddf;return _0x53228b&&_0x7bf40[_0x560204(0x249)]?_0x1de4d8['createInstance'](Y,_0x31e199,_0x2790da,_0x53228b,_0x7bf40,_0x936f21):_0x53228b?_0x1de4d8['createInstance'](q,_0x31e199,_0x2790da,_0x53228b,_0x936f21):_0x7bf40[_0x560204(0x249)]?_0x1de4d8[_0x560204(0x274)](G,_0x31e199,_0x2790da,_0x7bf40,_0x936f21):_0x1de4d8[_0x560204(0x274)](Ue,_0x31e199,_0x2790da,_0x936f21);}function _0x28da(){const _0x843fa1=['_createInitialState','m1Prime','headers','_config','transformSelections','idSuffix','YUUMI_URL_COL_OUT_OF_RANGE','JOINING','roomMembers$','UNKNOWN_CMD','getOwnPropertySymbols','objects','NOT_FOUND','liveShareNewHost','AWAITING_WITH_PENDING','SHOULD_CLOSE_CONN','setShapeProps','_checkMissing','_getSignURL','_snapshotService','_onUserLeave','62202aeLgSo','2024988otLFjR','permissionRejEvent','enableAuthServer','socket\x20open.','[PendingState]:\x20received\x20acknowledgement.','fillRule','_initMergeInterceptor','_getMergeRange','color','clear','max','onPointerEnter$','OnLineSingle','startRow','univer-pro.collaboration-client.single-active-unit-service','fetching\x20missing\x20changesets\x20from\x20','colorChannel1','searchParams','INVALID_ARGUMENT','_acknowledgedAwaitingChangeset','params','_handleJoinEvent','UNRECOGNIZED','_initStatusListener','_awaitingChangeset','synced','getSkeleton','_drawTextRange','LIVESHARE_FETCH_OPERATIONS','_collaborationTimeoutTimer','onTransformChange$','_unlockTransition','_getSaveTimeout','resourceIDs','RemoveRowCommandId','_socketService','clearInterval','permission.content','current','_initCommandExecutedListener','transformMutationsWithChangeset','_onRemoteChangeset','onSendChangeset','tag','getTypeOfUnitAdded$','rgba(255,\x20255,\x20255,\x200.01)','arc','getActiveSheet','{fileID}','getUnhiddenWorksheets','hovered','open$','use','put','loadOfflineData','_onRemoteACK','setAlpha','328fScGYK','newCsEvent','pending','updateCursorEvent','InsertRangeMoveDownCommandId','onRemoteAck','_getCurrentRevision','objectActions','_disabled','LICENSE_IMPORT_SIZE_EXCEEDED','_socket','_undoRedoService','registerHTTPInterceptor','_send','\x20in\x20_schedule.','_cursorShapes','_updateCollabCursors','_replaceFileID','commentUpdate$','getDocRanges','&assign=','fetch_missing','exhaustSavingTask','CHANGESET_ACK','image/jpeg','RemoveColCommandId','toString','title','CONNECTOR_DATA_TOO_LARGE','defineProperty','call','/universer-api/comb','src','APPLY_NON_SEQUENTIAL_REVISION','onTransformSelections','createSocket','_refreshCollabCursors','_getAPIPrefix','pluginName','COMMENT_UPDATE','_handleHover','&to=','history','_updateSubUnitFromURLParams','status$','Error\x20on\x20receiving\x20event','catch','[OfflineState]:\x20received\x20changeset.','members','responseType','compose','currentColor','INGEST','_clearUndo','json','initWorkbookPermissionChange','_removeRoom','patch','round','DeleteRangeMoveUpCommandId','1em','UNDEFINED','getRoom','_commentUpdate$','list','off-line-single','whenReady','OTHER_CLIENTS_EDITING','syncEditingCollabCursor','#fff','newValue','textRanges','unitId','LICENSE_EXPORT_SIZE_EXCEEDED','PERMISSION_REJ','_exhaustRemoteChangesetQueue','resend','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformUndoRedoStack','gold400','PERMISSION_DENIED','forEach','clearTimeout','status','collabCursorState$','fetchThroughInterceptors','INTERNAL_ERROR','setCurrentUser','href','code','liveShareOperation','_onLocalMutation','_loadDoc','USERS_LEAVE','_scheduleClearOtherTimer','39268MbXahf','NOT_COLLAB','COMPRESS_MUTATION_SEND','_initStatusComponent','_onFetchMissResult','_sendHeartbeat','currentSkeleton$','set','updateCollaborator','getFocusedUnit','collaboration.closeRoom','_context','_transformRemoteChangesetByIMECache','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','subunit','onRendered','_disableEditing','resolve','?size=','Warning','_event$','sessionStatus$','FileId','_remoteChangesetQueue','_onJoinRoomEvent','getCollabEntity$','_decreaseWaiting','collaborators','online','_joinRoom','override','cmd','message$','joinRsp','rev','RECV','_localStorageService','getCurrentUnitForType','_transitionLocked','size','_initModules','_setupSubUnitSync','_updateState','_transformSelections','width','_transformPreviousActiveRange','_range','map','_retryCount','_state','Unknown\x20user','debug','_refRangeService','setParam','symbol','[OfflineState]:\x20received\x20rejection.','_collaborationPaused','_members','OFFLINE','prototype','COLLAB_SUBMIT_CHANGESET_URL','registerRefRange','_saveTaskMap','path','defs','_backgroundColor','getConfig','has','_renderManagerService','change$','_transformStack','mutations','NO_OTHER_CLIENTS_EDITING','IDLE','_pendingMutations','SNAPSHOT_INVALID_SNAPSHOT','_collabCursorController','get','_configService','result','image/gif','MUTATION','saveImage','generateRandomId','_substituteRedoStack','_clearLocalCache','_univerInstanceService','_unitID','getUnitType','indexOf','error','onPointerMove$','then','apply','unitID','HEARTBEAT_INTERVAL','_onConnectionOpen','listRoles','cursorInfo$','_getRedoStack','socketService','UNIVER_SLIDE','/object/','collabStatus.notCollab','assignAColorForMemberID','PENDING','_initCloseConn','univer-pro.collaboration-client-socket-service','UnitEmbedded','url(#off-line-single_clip0_910_343)','InsertRowCommandId','userID','FETCH_MISS','_cachedData','getSheetBySheetId','_getScale','NEW_CHANGESETS','memberID','_color','_localeService','findNodePositionByCharIndex','onlyLocal','selections','disposeWithMe','DeleteRangeMoveLeftCommandId','dispose','localeService','asObservable','range','[PendingState]:\x20received\x20rejection.','drawWith','function','[CollaborationSessionService]:\x20socket\x20error','/-/object/list','/new_changes','UniverIcon','onTransformRemoteChangesetByIMECache','_permissionService','getMergeData','_memberService','_removeCollabCursors','location','_httpService','revision','POST','InsertRangeMoveRightCommandId','m2Prime','_sessionStatus$','FromArray','isActive','off-line-single_clip0_910_343','_session','_entities','doc.mutation.rich-text-editing','APPLY_PERMISSION_DENIED','push','send','all','_transformIMECache','workbook','_commandService','_urlService','52940kEzRxv','_incrementRevisionNumber','svg','_localCacheService','session.will-retry','isPermissionRej','collab-rect-range-','_handleHeartbeatEvent','div','_initResize','UPDATE_CURSOR','min','focused$','_docSyncEditingCollabCursorService','_undoStacks','save','reverse','RETRY_CONNECTING_MAX_COUNT','substring','reject','getParam','_createInitialStateImpl','_isPermissionRej','onlineStatusTitle','onMissingChangesets','onlineStatus','_updateURLWithCurrentState','close$','SNAPSHOT_URL_KEY','values','includes','HEARTBEAT_TIMEOUT','not_collab','/rev/','_collaborationController','show','_getSnapshotAPIPrefix','collaboration.single-unit.warning','HttpExport','file','from','VIEW_MAIN','_notificationService','COMPRESS_MUTATION_APPLY','Starting','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_handleLeaveEvent','_imageSourceCache','Undefined','routeKey','_onCombEvent','getWorkbookSelections','createCollaborator','_anchor','_onCursorDelete','_startCollaboration','_textBubble','connection\x20error','csAckEvent','getOwnPropertyDescriptor','permission.title','uni.network.url-service','getUndoRedoMutationParamsCache','_singleActiveUnitService','post','hasOwnProperty','text','on-line-single_clip0_910_349','/universer-api/stream/file/upload','enableOfflineEditing','_createSocket','objectID','_messageService','every','filter','_onConnectionFailed','on-line-single','unknown','_shapes','_themeService','_socketReady','startColumn','PSEUDO_FETCH_MISSING_RESULT','_ensureSubject','getCurrentSelections','_socketMessageSubscription','_syncEditingCollabCursor','getValue','getCellPositionByOffset','xlink:href','_eventUnsubscribe','_commentService','refreshPermission','_docSkeletonManagerService','session.room-full','batchAllowed','_type','Steady','hide','transformIMECache','image/bmp','beginPath','_snapshotServerService','_hovered','makeDirty','registerRenderModule','transformStack\x20failed!','_updateLocalCursor','selection','_cursorInfo$','_lockTransition','_entityInit$','saveChangeset','event$','_sendHeartbeatTimer','_removeClearOtherTimer','_getSheetObject','univer-online-status-icon','_getCtorByUniverType','split','_unitStatus','image/png','SNAPSHOT_HAS_BEEN_REMOVED','_name','_anchorDot','allowed','onMouseMove','_onRefRangeChange','startsWith','_docTransformIMECacheService','_schedule','_collabSessionService','saveSnapshot','_executeRemoteChangeset','infoRsp','_hideTimer','name','_socket$','APPLY_REJECT','target','_showConflictNotification','updateOfflineData','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_getAPIPrefixPath','Error','save\x20fail\x20reason\x20is\x20','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_toggleOffline','closeSession','conflict','update','JOIN','_state$','loadDoc','_injector','_startSheetCollabCursor','_queuedRemoteChangesets','UNIVER_DOC','AUTHZ_URL_KEY','getCollabCursors$','setInterval','interceptor','\x0aAfter:\x20','loadSheet','setTimeout','joinEvent','_hover','getMemberID','onRemoteRej','_lastPointer','_clearRedo','_online','defIds','sheets','_ws','propertyIsEnumerable','getSheetId','_uiPartsService','_roomMembers','jiqing500','UNAUTHENTICATED','_drawAnchor','_rescheduleHeartbeatEvent','transform','/collaborator','ALREADY_EXISTS','transformUndoRedo','isArray','_status$','_onCursorUpdate','_onUserJoin','body','getResourcesRequest','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','eventID','USERS_ENTER','pushState','_unitOnClients','_clearOtherTimers','_getLoginPath','assign','fetchMissingChangesets','_clearScheduledTask','roomInfos','_onRemoteRejected','subscribe','UPDATE_PERMISSION_OBJ','/universer-api/oidc/authpage','_docTransformSelectionsService','[DataLoaderController]','c1Prime','conflict.title','_HTTPService','_setupBeforeClosingHandler','dispose$','_clearTimeoutTimer','CHANGESET_REJ','_initUnitPermissionChange','purple300','_startDocCollabCursor','_roomMembers$','originalMeta','_handler','encode','_waitCount','977652aWxQqH','_clearCollaborationTimeoutTimer','getCurrentRevForDocument','addEventListener','actions','LICENSE_DISTRO_REJECTED','fill','unsubscribe','onCommentUpdate','_syncEditingCollabCursorService','string','_applyRemoteChangeset','/-/object/-/batch_allowed','BASE64','setUndoRedoMutationParamsCache','getRelativeToViewportCoord','getInterceptPoints','/unit/','_getUndoStack','length','APPLY_REVISION_CONFILICT','_retryConnectingTimer','fillStyle','unload','COLLAB_WEB_SOCKET_URL','RETRY_CONNECTING_INTERVAL','sessionStatus','measureText','[FetchMissState]','312ggIOdw','addObjects','addImageSourceCache','LEAVE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','appendMutation','HEADER_MENU','HELLO','MSG_FOR_ERROR','closePath','\x20to\x20','YUUMI_UNABLE_LOAD_URL','CONFLICT','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','onStateChange','toggleOnline','changesets','labelPosition','_assignedColors','_waitForHeartbeatResponse','_init','/universer-api/file/{fileID}/sign-url','LIVESHARE_REQUEST_HOST','getImage','/object','LIVESHARE_TERMINATE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','displayName','setItem','removeParam','saveOfflineData','_change$','none','createInstance','replaceState','_onMessage','UNKNOWN_CODE','_render','_heartbeatTimer','getUnitId','removeMember','fillText','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','onSyncEditingCollabCursor','getCurrentUser','_sheetTransformSelectionsService','_draw','UNIVER_UNKNOWN','_sendingTimer','stringify','[UniverCollaborationClientPlugin]','_collabCursorState$','extend','_updateStatus','_cursors','_getSendChangesetTimeout','deepClone','_loadSheet','InsertColCommandId','ranges','concat','isEditing','_fetchMissChangesets','getTime','onTransformIME','_updateLocalCache','urlChange$','entries','_sessions','red300','font','_registerDependencies','SNAPSHOT_SERVER_URL_KEY','delete','_tryEnsureSocket','getUniverSheetInstance','pauseCollaboration','collabStatus.syncing','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','M0\x200H16V16H0z','fromCollab','addObject','offline','updateMember','_selfUnitIDs','getAncestorScale','TOO_MANY_REQUESTS','/fetchmissing?from=','_registerRenderDependencies','UNIVER_SHEET','storage','resize','close','_timeoutTimer','transformChangesets','baseRev','restore','3ZTwqOB','1657773JjrSjs','_handleEvent','collab-text-anchor-','getRangePointData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','attrs','_userManagerService','registerBeforeClose','_toggleOnline','_getUploadFileURL','getSheetBlock','onlineStatusIcon','onRemoteChangeset','getMember','_onConflict','updatePermissionPoint','awaitingChangeset','_revisionService','SUBMIT_CHANGESET','parse','_drawRectRange','_docStateChangeManagerService','_scene','ws://127.0.0.1:8000/universer-api/comb/connect','LIVESHARE_NEW_HOST','unshift','data','auth.needGotoLoginAlert','requireSession','?url=','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onRecvEvent','transformMutation','replaceTextRanges','collabStatus.fetchMiss','_scheduleTimestamp','collaMsg','unit-cache-','140xsvOyE','getUnitStatus$','[CollaborationEntity]','reduce','enableLocalCache','_beforeCloseService','_createHandler','toRgbString','_getAnchorBounding','pipe','#FFF','[CollaborationSession]','bottom','_compressMutationService','top','submit\x20changeset\x20error!','black','url(#$1','state','_transformService','_scheduleReconnection','collaboratorID','subscribeEvent','[CollaborationUndoRedoService]','_labelPosition','_scheduleCollaborationTimeoutTimer','CHANGESET_REVISION_CONFILICT','children','add','type','getImageSourceCache','...','icon','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','awaiting','createElement','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','disableLocalCache','random','sheetId','withCredentials','onload','collabStatus.offline','onPointerLeave$','complete','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','onCommandExecuted','_colorIndex','LIVESHARE_OPERATION','FAIL','SYNCED','_colorAssignService','ONLINE','next','objectType','verdancy600','onMissedChangesetFetched','ACTIVE_UNIT_EVENT_CHANNEL','FETCH_MISSING','backgroundColor','executeCommand','_scheduleSaving','clipPath','find','OffLineSingle','collab-text-range-','UNIVER_PROJECT','_saveCache','_sheetSkeletonManagerService','init','replace','0\x200\x2016\x2016','url(#on-line-single_clip0_910_349)','getItem','/allowed','ERROR_IMAGE','251053LFETTc','deleteCollaborator','encodeURIComponent','_http','_id','conflict.content','_collaborationSessionService','requestParams','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','getTypeOfUnitDisposed$','error$','ERROR_IMAGE_TYPE','trim','lineTo','[CollaborationSessionService]','cursorInfo','subUnitId','_clearHeartbeatTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','roomMembers','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_logService','currentTheme$','_submitChangeset','toggleOffline','HttpImport','HEARTBEAT','onStarting','transformRemoteChangeset','column'];_0x28da=function(){return _0x843fa1;};return _0x28da();}var nr=Object[_0xa83ddf(0x3b2)],rr=Object[_0xa83ddf(0x190)],st=(_0x5db3ad,_0x4ddebd,_0x506422,_0x2404c3)=>{const _0x1b0f97=_0xa83ddf;for(var _0x4d5fd8=_0x2404c3>0x1?void 0x0:_0x2404c3?rr(_0x4ddebd,_0x506422):_0x4ddebd,_0x1c509f=_0x5db3ad[_0x1b0f97(0x249)]-0x1,_0x382e3a;_0x1c509f>=0x0;_0x1c509f--)(_0x382e3a=_0x5db3ad[_0x1c509f])&&(_0x4d5fd8=(_0x2404c3?_0x382e3a(_0x4ddebd,_0x506422,_0x4d5fd8):_0x382e3a(_0x4d5fd8))||_0x4d5fd8);return _0x2404c3&&_0x4d5fd8&&nr(_0x4ddebd,_0x506422,_0x4d5fd8),_0x4d5fd8;},p=(_0x8fcb72,_0x5b6114)=>(_0x3f4243,_0x32f8c9)=>_0x5b6114(_0x3f4243,_0x32f8c9,_0x8fcb72);let Me=class extends _0x26114b{constructor(_0x29b6e6,_0xf60cf8,_0x3ba4d1){const _0x4f40fc=_0xa83ddf;super(),_(this,_0x4f40fc(0x14b),new Map()),_(this,_0x4f40fc(0x1c4),new _0x27d684()),(this[_0x4f40fc(0x1ef)]=_0x29b6e6,this[_0x4f40fc(0x1d8)]=_0xf60cf8,this[_0x4f40fc(0x44a)]=_0x3ba4d1,this[_0x4f40fc(0x267)]());}[_0xa83ddf(0x471)](){const _0x2bf1d5=_0xa83ddf;super[_0x2bf1d5(0x471)](),this[_0x2bf1d5(0x14b)][_0x2bf1d5(0x3e6)](_0x63624=>_0x63624[_0x2bf1d5(0x471)]()),this['_entities'][_0x2bf1d5(0x365)]();}['getCollabEntity'](_0xe0633f){const _0x1bec2e=_0xa83ddf;var _0x2c122a;return(_0x2c122a=this['_entities'][_0x1bec2e(0x441)](_0xe0633f))!=null?_0x2c122a:null;}['getCollabEntity$'](_0x77e4e1){const _0x5a29c6=_0xa83ddf,_0x598b1c=this['getCollabEntity'](_0x77e4e1);return _0x598b1c?_0x2e1ce7(_0x598b1c):this[_0x5a29c6(0x1c4)][_0x5a29c6(0x2e5)](_0x4393c3(_0x14488d=>_0x14488d[_0x5a29c6(0x452)]===_0x77e4e1));}[_0xa83ddf(0x267)](){const _0x1b8712=_0xa83ddf;this[_0x1b8712(0x44a)][_0x1b8712(0x388)](_0x54437b[_0x1b8712(0x2ac)])[_0x1b8712(0x2e5)](_0x4b5283(this[_0x1b8712(0x22b)]),_0x3db649(0x10))[_0x1b8712(0x222)](async _0x362b5c=>{const _0x2631ff=_0x1b8712,_0x247424=_0x362b5c[_0x2631ff(0x27a)](),_0x3a9845=await this[_0x2631ff(0x18c)](_0x247424,H[_0x2631ff(0x2ac)]);this[_0x2631ff(0x14b)][_0x2631ff(0x3fb)](_0x247424,_0x3a9845);}),this[_0x1b8712(0x44a)]['getTypeOfUnitAdded$'](_0x54437b['UNIVER_DOC'])[_0x1b8712(0x2e5)](_0x4b5283(this['dispose$']),_0x3db649(0x10))['pipe'](_0x4393c3(_0x44329a=>!_0x44329a['getUnitId']()[_0x1b8712(0x1d5)]('__')))[_0x1b8712(0x222)](async _0x2f1d9c=>{const _0x3713c3=_0x1b8712,_0x17e0ae=_0x2f1d9c[_0x3713c3(0x27a)](),_0x41ec79=await this[_0x3713c3(0x18c)](_0x17e0ae,H[_0x3713c3(0x1f2)]);this[_0x3713c3(0x14b)][_0x3713c3(0x3fb)](_0x17e0ae,_0x41ec79);}),_0x19b764(this[_0x1b8712(0x44a)][_0x1b8712(0x331)](_0x54437b[_0x1b8712(0x2ac)]),this['_univerInstanceService'][_0x1b8712(0x331)](_0x54437b[_0x1b8712(0x1f2)]))[_0x1b8712(0x2e5)](_0x4b5283(this[_0x1b8712(0x22b)]))[_0x1b8712(0x222)](_0x1e16e6=>{const _0x54a35c=_0x1b8712,_0x1cfde7=_0x1e16e6[_0x54a35c(0x27a)](),_0xc22d71=this[_0x54a35c(0x14b)]['get'](_0x1cfde7);_0xc22d71&&(_0xc22d71[_0x54a35c(0x471)](),this[_0x54a35c(0x14b)][_0x54a35c(0x29c)](_0x1cfde7));});}async[_0xa83ddf(0x18c)](_0x142cc0,_0x31acbd){const _0x65fb43=_0xa83ddf,_0x49c098=await this[_0x65fb43(0x1d8)]['requireSession'](_0x142cc0),_0xe84e59=this['_injector']['createInstance'](this[_0x65fb43(0x1cb)](_0x31acbd),_0x142cc0,_0x31acbd,_0x49c098);return await _0xe84e59[_0x65fb43(0x321)](),this[_0x65fb43(0x1c4)][_0x65fb43(0x311)](_0xe84e59),_0xe84e59;}[_0xa83ddf(0x1cb)](_0x1d6475){const _0xdc4fc0=_0xa83ddf;switch(_0x1d6475){case H[_0xdc4fc0(0x1f2)]:return Et;case H['UNIVER_SHEET']:return Ct;default:throw new Error(_0xdc4fc0(0x401)+_0x1d6475);}}};Me=st([_0x3b619c(_0x13d562['Starting'],Me),p(0x0,_0x2854bc(_0x28aed1)),p(0x1,_0x2854bc(pe)),p(0x2,_0x1b1ada)],Me);let Ze=class extends _0x26114b{constructor(_0x35da4c,_0x1c7c09,_0x55434e,_0x81db57,_0x163133,_0x3fc906,_0x19c2c9,_0x58a427,_0x1b27c1,_0x14ea8d,_0x4effe8,_0x5d402d,_0x4732c8){const _0x1e9435=_0xa83ddf;super(),_(this,_0x1e9435(0x1ed),new _0xbc7543(null)),_(this,'state$',this[_0x1e9435(0x1ed)][_0x1e9435(0x473)]()),_(this,_0x1e9435(0x425)),_(this,_0x1e9435(0x42c),!0x1),_(this,_0x1e9435(0x3c1),this['state$']['pipe'](_0x255c5b(_0x2f57a7=>_0x2f57a7?_0x2f57a7[_0x1e9435(0x3e8)]:P[_0x1e9435(0x42e)]),_0x28cb00(0x1))),_(this,_0x1e9435(0x41a),!0x1),_(this,_0x1e9435(0x40b),[]),(this[_0x1e9435(0x452)]=_0x35da4c,this[_0x1e9435(0x1b5)]=_0x1c7c09,this[_0x1e9435(0x14a)]=_0x55434e,this[_0x1e9435(0x1ef)]=_0x81db57,this[_0x1e9435(0x158)]=_0x163133,this[_0x1e9435(0x2e9)]=_0x3fc906,this['_localeService']=_0x19c2c9,this[_0x1e9435(0x2c6)]=_0x58a427,this['_logService']=_0x1b27c1,this[_0x1e9435(0x153)]=_0x14ea8d,this[_0x1e9435(0x19d)]=_0x4effe8,this['_permissionService']=_0x5d402d,this[_0x1e9435(0x194)]=_0x4732c8);}get['state'](){const _0x2b4b29=_0xa83ddf;return this[_0x2b4b29(0x425)];}async[_0xa83ddf(0x321)](){const _0x5b75a8=_0xa83ddf;if(this[_0x5b75a8(0x2ee)])throw new Error(_0x5b75a8(0x2d4));await this[_0x5b75a8(0x267)]();}[_0xa83ddf(0x29f)](){const _0x318ac7=_0xa83ddf;return this[_0x318ac7(0x42c)]=!0x0,_0x5bf8dd(()=>{const _0x2ad864=_0x318ac7;this['_collaborationPaused']=!0x1,this[_0x2ad864(0x3e0)]();});}['_updateState'](_0x458aca){const _0x5d5160=_0xa83ddf;this[_0x5d5160(0x425)]=_0x458aca,this[_0x5d5160(0x1ed)][_0x5d5160(0x311)](_0x458aca);}async[_0xa83ddf(0x267)](){const _0x3a58fb=_0xa83ddf;var _0x29340c;return this['_updateState'](await this['_createInitialState']()),this[_0x3a58fb(0x194)]&&((_0x29340c=this[_0x3a58fb(0x194)])==null||_0x29340c['editingUnit'](this[_0x3a58fb(0x452)]),this[_0x3a58fb(0x46f)](_0x5bf8dd(this['_singleActiveUnitService'][_0x3a58fb(0x2dd)](this[_0x3a58fb(0x452)])['subscribe'](_0x57be80=>{const _0xa3e268=_0x3a58fb;this[_0xa3e268(0x33d)]['debug'](_0xa3e268(0x2de),'editing\x20status\x20changed\x20to',_0x57be80),_0x57be80===Us[_0xa3e268(0x3d8)]?(this['_messageService']['show']({'content':this[_0xa3e268(0x46b)]['t'](_0xa3e268(0x17a)),'type':_0x403ffc['Warning']}),this[_0xa3e268(0x47d)]['updatePermissionPoint'](new _0x2efdca(this[_0xa3e268(0x452)])['id'],!0x1)):this[_0xa3e268(0x47d)][_0xa3e268(0x2c4)](new _0x2efdca(this[_0xa3e268(0x452)])['id'],!0x0);})))),this[_0x3a58fb(0x46f)](_0x5bf8dd(this[_0x3a58fb(0x14a)]['sessionStatus$'][_0x3a58fb(0x222)](_0x366e42=>{const _0x1a7a77=_0x3a58fb;_0x366e42===fe[_0x1a7a77(0x310)]?this[_0x1a7a77(0x2bd)]():_0x366e42===fe[_0x1a7a77(0x42e)]&&this['_toggleOffline']();}))),this[_0x3a58fb(0x46f)](_0x5bf8dd(this['_session']['event$'][_0x3a58fb(0x222)](_0x1529ad=>{const _0x1f069a=_0x3a58fb;try{switch(_0x1529ad[_0x1f069a(0x217)]){case _0x4e62f0[_0x1f069a(0x468)]:{this[_0x1f069a(0x385)](_0x2d3fa1(_0x1529ad['data']));break;}case _0x4e62f0[_0x1f069a(0x3ac)]:{this[_0x1f069a(0x393)](_0x1529ad['data']);break;}case _0x4e62f0[_0x1f069a(0x22d)]:{this[_0x1f069a(0x221)]();break;}case _0x4e62f0[_0x1f069a(0x1a7)]:{this[_0x1f069a(0x3f8)](_0x1529ad[_0x1f069a(0x2cf)][_0x1f069a(0x263)][_0x1f069a(0x423)](_0x57090d=>_0x2d3fa1(_0x57090d)));break;}case _0x4e62f0[_0x1f069a(0x3df)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x48670f){throw console[_0x1f069a(0x44e)](_0x1f069a(0x3c2),_0x48670f),_0x48670f;}}))),this[_0x3a58fb(0x425)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0xa83ddf(0x1c3)](){const _0x12a1d1=_0xa83ddf;if(this['_transitionLocked'])throw new Error(_0x12a1d1(0x330));this[_0x12a1d1(0x41a)]=!0x0;}[_0xa83ddf(0x3f0)](_0x18fbcb){const _0x39469f=_0xa83ddf;this['_lockTransition'](),this[_0x39469f(0x41e)](this[_0x39469f(0x425)][_0x39469f(0x258)](_0x18fbcb)),this['_unlockTransition']();}[_0xa83ddf(0x385)](_0x1c94b3){const _0x4d60de=_0xa83ddf;if(!(_0x1c94b3[_0x4d60de(0x142)]<=this['_revisionService'][_0x4d60de(0x238)](this[_0x4d60de(0x452)]))){if(this[_0x4d60de(0x42c)]){this['_remoteChangesetQueue'][_0x4d60de(0x14e)](_0x1c94b3);return;}this[_0x4d60de(0x241)](_0x1c94b3);}}['_exhaustRemoteChangesetQueue'](){const _0x246e97=_0xa83ddf;this[_0x246e97(0x40b)][_0x246e97(0x3e6)](_0x33258d=>this[_0x246e97(0x241)](_0x33258d)),this[_0x246e97(0x40b)]=[];}['_applyRemoteChangeset'](_0x3fcc93){const _0x165f76=_0xa83ddf,_0x139a58=this[_0x165f76(0x2e9)][_0x165f76(0x1f6)][_0x165f76(0x3ea)](this['_compressMutationService']['interceptor'][_0x165f76(0x246)]()[_0x165f76(0x180)])(_0x3fcc93[_0x165f76(0x43b)],null)||_0x3fcc93['mutations'],_0x1c523e={..._0x3fcc93,'mutations':_0x139a58};this['_lockTransition'](),this[_0x165f76(0x41e)](this[_0x165f76(0x425)][_0x165f76(0x2c1)](_0x1c523e)),this['_unlockTransition']();}['_onRemoteACK'](_0x1f9333){const _0x346007=_0xa83ddf;this[_0x346007(0x1c3)](),this[_0x346007(0x41e)](this['_state'][_0x346007(0x39a)](_0x1f9333)),this[_0x346007(0x37b)]();}['_onRemoteRejected'](_0x286cfc){const _0x400e5e=_0xa83ddf;this[_0x400e5e(0x1c3)](),this[_0x400e5e(0x41e)](this[_0x400e5e(0x425)][_0x400e5e(0x1fd)](_0x286cfc)),this[_0x400e5e(0x37b)]();}[_0xa83ddf(0x3f8)](_0x599417){const _0x3719a1=_0xa83ddf;if(!(this[_0x3719a1(0x425)]instanceof K))throw new TypeError(_0x3719a1(0x2fd));const _0x328339=_0x599417[_0x3719a1(0x423)](_0x533d10=>{const _0x15a3a6=_0x3719a1,_0x2d2ae9=this['_compressMutationService'][_0x15a3a6(0x1f6)][_0x15a3a6(0x3ea)](this[_0x15a3a6(0x2e9)][_0x15a3a6(0x1f6)][_0x15a3a6(0x246)]()[_0x15a3a6(0x180)])(_0x533d10[_0x15a3a6(0x43b)],null)||_0x533d10['mutations'];return{..._0x533d10,'mutations':_0x2d2ae9};});this[_0x3719a1(0x1c3)](),this['_updateState'](this[_0x3719a1(0x425)][_0x3719a1(0x314)](_0x328339)),this['_unlockTransition']();}['_toggleOffline'](){const _0x2a8d82=_0xa83ddf;this[_0x2a8d82(0x1c3)](),this[_0x2a8d82(0x41e)](this[_0x2a8d82(0x425)][_0x2a8d82(0x340)]()),this[_0x2a8d82(0x37b)]();}['_toggleOnline'](){const _0x1d9e0b=_0xa83ddf;this[_0x1d9e0b(0x1c3)](),this[_0x1d9e0b(0x41e)](this[_0x1d9e0b(0x425)][_0x1d9e0b(0x262)]()),this['_unlockTransition']();}async[_0xa83ddf(0x346)](){return new Promise(_0x3e7504=>{const _0x4ae1da=_0xed79;this[_0x4ae1da(0x14a)][_0x4ae1da(0x409)][_0x4ae1da(0x2e5)](_0x4bc9cf(0x1))[_0x4ae1da(0x222)](async _0xa0e690=>{_0x3e7504(await this['_createInitialStateImpl'](_0xa0e690===fe['ONLINE']));});});}[_0xa83ddf(0x2e2)](){const _0xca2c51=this['unitID'];return{'onStateChange':(_0x3c0334,_0x3f3807)=>{const _0x56f39d=_0xed79;if(_0x3c0334!==this[_0x56f39d(0x425)])throw new Error(_0x56f39d(0x2d3)+_0x3c0334[_0x56f39d(0x3e8)]+_0x56f39d(0x1f7)+_0x3f3807['status']+'\x0aCurrent:\x20'+this[_0x56f39d(0x425)][_0x56f39d(0x3e8)]);this[_0x56f39d(0x41e)](_0x3f3807);},'onSendChangeset':_0x1467d8=>{const _0x31db4a=_0xed79,_0xfdb6a3={'eventID':_0x4e62f0['SUBMIT_CHANGESET'],'data':{'unitID':_0x1467d8['unitID'],'unitType':this[_0x31db4a(0x1b5)],'changeset':_0x1467d8,'memberID':this['_session']['getMemberID']()}};this['_session']['send'](_0xfdb6a3,this[_0x31db4a(0x452)]);},'onMissingChangesets':({from:_0x741bbc,to:_0x109587})=>{const _0x37440c=_0xed79;this[_0x37440c(0x33d)][_0x37440c(0x427)](_0x37440c(0x2de),_0x37440c(0x36b)+_0x741bbc+_0x37440c(0x25d)+_0x109587);const _0x5ec47e={'eventID':_0x4e62f0['FETCH_MISSING'],'data':{'unitID':_0xca2c51,'unitType':this['_type'],'from':_0x741bbc,'to':_0x109587}};this[_0x37440c(0x14a)][_0x37440c(0x14f)](_0x5ec47e,this[_0x37440c(0x452)]);}};}async[_0xa83ddf(0x16a)](_0x106712){const _0x5b66bf=_0xa83ddf;var _0x2bdf5d,_0x522e6f;const _0x4e73ae=await this[_0x5b66bf(0x158)][_0x5b66bf(0x392)](this[_0x5b66bf(0x452)]),_0x1b717b=(_0x2bdf5d=_0x4e73ae==null?void 0x0:_0x4e73ae[_0x5b66bf(0x43b)])!=null?_0x2bdf5d:[],_0x2a5a80=(_0x522e6f=_0x4e73ae==null?void 0x0:_0x4e73ae[_0x5b66bf(0x2c5)])!=null?_0x522e6f:null,_0x30ddd6=this['unitID'];try{this['_replayCachedMutations'](_0x2a5a80,_0x1b717b);}catch(_0x33d80a){this[_0x5b66bf(0x33d)][_0x5b66bf(0x44e)](_0x33d80a);}const _0x4ee6ae=this[_0x5b66bf(0x2e2)]();if(_0x106712){const _0x2fbe21=Ls(this[_0x5b66bf(0x1ef)],_0x30ddd6,this['_type'],_0x2a5a80,_0x1b717b,_0x4ee6ae);return _0x2fbe21 instanceof G?_0x2fbe21[_0x5b66bf(0x1d7)]():(_0x2fbe21 instanceof Y||_0x2fbe21 instanceof q)&&_0x2fbe21[_0x5b66bf(0x3e1)](),_0x2fbe21;}return this[_0x5b66bf(0x1ef)][_0x5b66bf(0x274)](Q,_0x30ddd6,this[_0x5b66bf(0x1b5)],_0x2a5a80,_0x1b717b,_0x4ee6ae);}['_replayCachedMutations'](_0x421a3b,_0x4ee418){const _0x48fed5=_0xa83ddf;var _0x4922dd,_0x2f79dc;const _0x394aea=this[_0x48fed5(0x2e9)]['interceptor'][_0x48fed5(0x3ea)](this[_0x48fed5(0x2e9)]['interceptor']['getInterceptPoints']()[_0x48fed5(0x180)]);(_0x4922dd=_0x394aea((_0x421a3b==null?void 0x0:_0x421a3b[_0x48fed5(0x43b)])||[],null))==null||_0x4922dd[_0x48fed5(0x3e6)](_0x3d08fb=>this[_0x48fed5(0x153)][_0x48fed5(0x318)](_0x3d08fb['id'],_0x3d08fb[_0x48fed5(0x370)])),(_0x2f79dc=_0x394aea(_0x4ee418||[],null))==null||_0x2f79dc[_0x48fed5(0x3e6)](_0x88ad22=>this[_0x48fed5(0x153)][_0x48fed5(0x318)](_0x88ad22['id'],_0x88ad22['params']));}};Ze=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x31880b),p(0x9,_0x291fa9),p(0xa,_0x192174),p(0xb,_0x524b2d),p(0xc,_0x36b891(tt))],Ze);let Et=class extends Ze{constructor(_0x3e7004,_0x595843,_0x1517ee,_0x22ff92,_0x24fa9a,_0x4400dd,_0x16bcd7,_0x497850,_0x4865b9,_0x80c340,_0xfea0a7,_0x3c395f,_0x214458,_0x1388c6,_0x2d782d,_0x93f811,_0x399434){const _0x6c08e9=_0xa83ddf;super(_0x3e7004,_0x595843,_0x1517ee,_0x22ff92,_0x24fa9a,_0x4400dd,_0x16bcd7,_0x497850,_0x214458,_0x1388c6,_0x2d782d,_0x93f811,_0x399434),this[_0x6c08e9(0x452)]=_0x3e7004,this[_0x6c08e9(0x2f9)]=_0x595843,this['session']=_0x1517ee,this[_0x6c08e9(0x2ca)]=_0x4865b9,this[_0x6c08e9(0x1d6)]=_0x80c340,this[_0x6c08e9(0x225)]=_0xfea0a7,this['_docSyncEditingCollabCursorService']=_0x3c395f;}[_0xa83ddf(0x2e2)](){const _0x4633bd=_0xa83ddf,_0x10d7c7=super[_0x4633bd(0x2e2)]();return _0x10d7c7[_0x4633bd(0x293)]=_0x41f92a=>this['_docTransformIMECacheService'][_0x4633bd(0x1b8)](_0x41f92a),_0x10d7c7[_0x4633bd(0x3b7)]=_0x1ce1bc=>this[_0x4633bd(0x225)][_0x4633bd(0x34a)](_0x1ce1bc),_0x10d7c7['onSyncEditingCollabCursor']=_0x52aa22=>this[_0x4633bd(0x162)][_0x4633bd(0x3d9)](_0x52aa22),_0x10d7c7['onTransformRemoteChangesetByIMECache']=_0xcd975b=>this[_0x4633bd(0x1d6)][_0x4633bd(0x344)](_0xcd975b),_0x10d7c7;}async['_init'](){const _0x4a7cab=_0xa83ddf,_0x16701f=await super['_init']();return this['disposeWithMe'](this[_0x4a7cab(0x153)][_0x4a7cab(0x30a)]((_0x31ded7,_0x2a9eb2)=>{const _0x55c297=_0x4a7cab;if(_0x31ded7[_0x55c297(0x2f9)]!==_0x20ade7['MUTATION']||_0x2a9eb2!=null&&_0x2a9eb2[_0x55c297(0x2a3)]||_0x2a9eb2!=null&&_0x2a9eb2[_0x55c297(0x46d)])return;const _0x38c9e7=_0x31ded7[_0x55c297(0x370)];if((_0x38c9e7==null?void 0x0:_0x38c9e7[_0x55c297(0x3dd)])!==this['unitID'])return;let _0x4ea0ed=_0x31ded7;if(_0x4ea0ed['id']===_0x53c1cb['id']){const _0x368caa=_0x4ea0ed[_0x55c297(0x370)];_0x4ea0ed={'id':_0x53c1cb['id'],'type':_0x20ade7[_0x55c297(0x445)],'params':{'unitId':_0x368caa[_0x55c297(0x3dd)],'actions':_0x368caa[_0x55c297(0x23a)],'textRanges':null}};}const _0x5cf473=this[_0x55c297(0x2e9)]['interceptor'][_0x55c297(0x3ea)](this['_compressMutationService'][_0x55c297(0x1f6)][_0x55c297(0x246)]()[_0x55c297(0x3f6)])([_0x4ea0ed],null)||[_0x4ea0ed];this[_0x55c297(0x3f0)](_0x5cf473[0x0]);})),_0x16701f;}};Et=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x2854bc(_0x2f98ea)),p(0x9,_0x2854bc(Je)),p(0xa,_0x2854bc(ze)),p(0xb,_0x2854bc(xt)),p(0xc,_0x31880b),p(0xd,_0x291fa9),p(0xe,_0x192174),p(0xf,_0x524b2d),p(0x10,_0x36b891(tt))],Et);let Ct=class extends Ze{constructor(_0x172acd,_0x408828,_0x527df9,_0x551121,_0xef3545,_0x3a10d7,_0x4e44b3,_0x54e4cc,_0x1d321b,_0x1be2ab,_0x579a39,_0x203493,_0x44883f,_0x2d0acf){const _0x5a4ae9=_0xa83ddf;super(_0x172acd,_0x408828,_0x527df9,_0x551121,_0xef3545,_0x3a10d7,_0x4e44b3,_0x54e4cc,_0x1be2ab,_0x579a39,_0x203493,_0x44883f,_0x2d0acf),this[_0x5a4ae9(0x452)]=_0x172acd,this['type']=_0x408828,this['session']=_0x527df9,this[_0x5a4ae9(0x280)]=_0x1d321b;}[_0xa83ddf(0x2e2)](){const _0x14529c=_0xa83ddf,_0xef3ec3=super[_0x14529c(0x2e2)]();return _0xef3ec3['onTransformSelections']=_0x175091=>this[_0x14529c(0x280)][_0x14529c(0x34a)](_0x175091),_0xef3ec3;}async['_init'](){const _0x5537ba=_0xa83ddf,_0x22880b=await super[_0x5537ba(0x267)]();return this[_0x5537ba(0x46f)](this[_0x5537ba(0x153)][_0x5537ba(0x30a)]((_0x2c2bae,_0x14d7bb)=>{const _0x50f98a=_0x5537ba;if(_0x2c2bae[_0x50f98a(0x2f9)]!==_0x20ade7[_0x50f98a(0x445)]||_0x14d7bb!=null&&_0x14d7bb['fromCollab']||_0x14d7bb!=null&&_0x14d7bb['onlyLocal'])return;const _0x29f918=_0x2c2bae['params'];if((_0x29f918==null?void 0x0:_0x29f918[_0x50f98a(0x3dd)])!==this[_0x50f98a(0x452)])return;const _0x1b17b8=_0x2c2bae,_0x190cde=this[_0x50f98a(0x2e9)]['interceptor']['fetchThroughInterceptors'](this[_0x50f98a(0x2e9)][_0x50f98a(0x1f6)]['getInterceptPoints']()[_0x50f98a(0x3f6)])([_0x1b17b8],null)||[_0x1b17b8];this[_0x50f98a(0x3f0)](_0x190cde[0x0]);})),_0x22880b;}};Ct=st([p(0x3,_0x2854bc(_0x28aed1)),p(0x4,_0x2854bc(D)),p(0x5,_0x2854bc(_0x1c9e18)),p(0x6,_0x2854bc(_0x501416)),p(0x7,_0x2854bc(_0x4bf679)),p(0x8,_0x2854bc(qe)),p(0x9,_0x31880b),p(0xa,_0x291fa9),p(0xb,_0x192174),p(0xc,_0x524b2d),p(0xd,_0x36b891(tt))],Ct);const as=[_0xa83ddf(0x22f),_0xa83ddf(0x208),_0xa83ddf(0x313),_0xa83ddf(0x298),'blue400',_0xa83ddf(0x3e4)];class Ht extends _0x54b342{constructor(){const _0x19c168=_0xa83ddf;super(...arguments),_(this,_0x19c168(0x265),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x5e3e2a){const _0x4d5790=_0xa83ddf;if(this[_0x4d5790(0x265)]['has'](_0x5e3e2a))return this[_0x4d5790(0x265)][_0x4d5790(0x441)](_0x5e3e2a);const _0xdffe50=as[this[_0x4d5790(0x30b)]];return this[_0x4d5790(0x30b)]=(this['_colorIndex']+0x1)%as[_0x4d5790(0x249)],this[_0x4d5790(0x265)][_0x4d5790(0x3fb)](_0x5e3e2a,_0xdffe50),_0xdffe50;}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x141d97,_0x23d12d,_0x124892,_0x45a684)=>{const _0x2784f3=_0xa83ddf;for(var _0x594a30=_0x45a684>0x1?void 0x0:_0x45a684?ar(_0x23d12d,_0x124892):_0x23d12d,_0x5119b4=_0x141d97[_0x2784f3(0x249)]-0x1,_0x3e0255;_0x5119b4>=0x0;_0x5119b4--)(_0x3e0255=_0x141d97[_0x5119b4])&&(_0x594a30=(_0x45a684?_0x3e0255(_0x23d12d,_0x124892,_0x594a30):_0x3e0255(_0x594a30))||_0x594a30);return _0x45a684&&_0x594a30&&or(_0x23d12d,_0x124892,_0x594a30),_0x594a30;},le=(_0x55c2fe,_0x2d8ee4)=>(_0x2ce03b,_0x93b48a)=>_0x2d8ee4(_0x2ce03b,_0x93b48a,_0x55c2fe);const hr=0x12c,_r=0x64,lr=()=>{let _0xe4a27b=[],_0x24a1f1=!0x1;return _0x3ef3a6=>{const _0x42dbcc=_0xed79;_0xe4a27b[_0x42dbcc(0x14e)](_0x3ef3a6),_0x24a1f1||(_0x24a1f1=!0x0,setTimeout(()=>{const _0x5de50b=_0x42dbcc;_0xe4a27b[_0x5de50b(0x3e6)](_0x466c0f=>_0x466c0f()),_0xe4a27b=[],_0x24a1f1=!0x1;}));};};let bt=class extends _0x26114b{constructor(_0x521b9d,_0x44387b,_0x2fd024,_0x1fa536,_0x55e221,_0x197aac,_0x489c70,_0x4feb1c){const _0x57f9fb=_0xa83ddf;super(),_(this,_0x57f9fb(0x200),!0x1),_(this,_0x57f9fb(0x267),!0x1),_(this,'_cursorInfo$',new _0xbc7543(new Map())),_(this,'cursorInfo$',this[_0x57f9fb(0x1c2)]['asObservable']()),_(this,_0x57f9fb(0x231),new _0xbc7543([])),_(this,_0x57f9fb(0x34e),this[_0x57f9fb(0x231)][_0x57f9fb(0x2e5)](_0x5d9837(hr))),_(this,_0x57f9fb(0x1c0),_0x238659((_0x5107ba,_0x5cd1fd)=>{const _0x9f56b8=_0x57f9fb,_0x27ebbb={'eventID':_0x4e62f0[_0x9f56b8(0x15f)],'data':{'unitID':this[_0x9f56b8(0x452)],'memberID':this[_0x9f56b8(0x14a)][_0x9f56b8(0x1fc)](),'selection':_0x2fa69e(_0x5107ba,_0x5cd1fd['range'])}};this['_session'][_0x9f56b8(0x14f)](_0x27ebbb,this['unitID']);},_r)),(this['unitID']=_0x521b9d,this['_session']=_0x44387b,this['_injector']=_0x2fd024,this['_colorAssignService']=_0x1fa536,this[_0x57f9fb(0x13e)]=_0x55e221,this[_0x57f9fb(0x44a)]=_0x197aac,this[_0x57f9fb(0x153)]=_0x489c70,this[_0x57f9fb(0x428)]=_0x4feb1c);}get[_0xa83ddf(0x337)](){const _0x5f35d3=_0xa83ddf;return this[_0x5f35d3(0x1c2)][_0x5f35d3(0x1ac)]();}get['roomMembers'](){const _0x331df2=_0xa83ddf;return this['_roomMembers$'][_0x331df2(0x1ac)]();}[_0xa83ddf(0x471)](){const _0x309443=_0xa83ddf;super['dispose'](),this[_0x309443(0x1c2)][_0x309443(0x311)](new Map()),this[_0x309443(0x1c2)][_0x309443(0x308)](),this['_roomMembers$'][_0x309443(0x311)]([]),this[_0x309443(0x231)]['complete']();}['init'](){const _0x442ee2=_0xa83ddf;this[_0x442ee2(0x267)]||(this[_0x442ee2(0x267)]=!0x0,this[_0x442ee2(0x14a)][_0x442ee2(0x409)][_0x442ee2(0x2e5)](_0x4b5283(this['dispose$']))[_0x442ee2(0x222)](_0x396284=>{const _0x109739=_0x442ee2;_0x396284===fe['ONLINE']?this[_0x109739(0x2bd)]():this['_toggleOffline']();}),this[_0x442ee2(0x14a)][_0x442ee2(0x1c6)][_0x442ee2(0x2e5)](_0x4b5283(this[_0x442ee2(0x22b)]))[_0x442ee2(0x222)](_0x558190=>{const _0xc75872=_0x442ee2,_0x927c6b=_0x558190[_0xc75872(0x217)];_0x927c6b===_0x4e62f0[_0xc75872(0x15f)]&&this[_0xc75872(0x212)](_0x558190),_0x927c6b===_0x4e62f0['USERS_LEAVE']&&this[_0xc75872(0x18b)](_0x558190);}),this['_onRefRangeChange'](),this[_0x442ee2(0x46f)](this[_0x442ee2(0x153)][_0x442ee2(0x30a)](_0x4a1ae2=>{const _0x3f91ab=_0x442ee2;if(this[_0x3f91ab(0x200)]&&_0x4a1ae2['id']===_0x5fa864['id']&&_0x4a1ae2[_0x3f91ab(0x370)][_0x3f91ab(0x3dd)]===this['unitID']){const _0x46f008=_0x4a1ae2[_0x3f91ab(0x370)];this[_0x3f91ab(0x1c0)](_0x46f008[_0x3f91ab(0x338)],_0x46f008[_0x3f91ab(0x46e)][0x0]);}})));}[_0xa83ddf(0x212)](_0x2238ad){const _0x2fc48b=_0xa83ddf;var _0x4611d3,_0x5272f8;const {memberID:_0x3ed41f,selection:_0x3dbfc3}=_0x2238ad[_0x2fc48b(0x2cf)],{sheetName:_0x54ff00,range:_0x4ddbd4}=_0x4c55b7(_0x3dbfc3),_0x55a5ed={'name':(_0x5272f8=(_0x4611d3=this['_memberService'][_0x2fc48b(0x2c2)](this[_0x2fc48b(0x452)],_0x3ed41f))==null?void 0x0:_0x4611d3[_0x2fc48b(0x1dd)])!=null?_0x5272f8:_0x2fc48b(0x426),'range':this[_0x2fc48b(0x363)](_0x54ff00,_0x4ddbd4),'sheetID':_0x54ff00,'color':this['_colorAssignService'][_0x2fc48b(0x45c)](_0x3ed41f),'selection':_0x3dbfc3},_0x3a557a=this['cursorInfo'];_0x3a557a[_0x2fc48b(0x3fb)](_0x3ed41f,_0x55a5ed),this[_0x2fc48b(0x1c2)][_0x2fc48b(0x311)](_0x3a557a);}[_0xa83ddf(0x18b)](_0x43387a){const _0x1f380b=_0xa83ddf,{memberID:_0x4c5027}=_0x43387a[_0x1f380b(0x2cf)],_0x4ff910=this[_0x1f380b(0x337)];_0x4ff910[_0x1f380b(0x29c)](_0x4c5027),this['_cursorInfo$'][_0x1f380b(0x311)](_0x4ff910);}[_0xa83ddf(0x363)](_0x28c99d,_0x50fbf0){const _0x217c21=_0xa83ddf;var _0x57f571,_0x3e92ea;const _0x5876a0=(_0x3e92ea=(_0x57f571=this[_0x217c21(0x44a)][_0x217c21(0x29e)](this[_0x217c21(0x452)]))==null?void 0x0:_0x57f571[_0x217c21(0x466)](_0x28c99d))==null?void 0x0:_0x3e92ea[_0x217c21(0x13d)]();return(_0x5876a0==null?void 0x0:_0x5876a0[_0x217c21(0x31b)](_0x5978cd=>_0x405e44['contains'](_0x5978cd,_0x50fbf0)))||_0x50fbf0;}[_0xa83ddf(0x1d4)](){const _0x7e7aac=_0xa83ddf,_0x2b9eba=new _0x207116(),_0x280cd5=lr(),_0x3bcbde=()=>{const _0x845f9c=_0xed79;_0x2b9eba[_0x845f9c(0x471)]();const _0x307376=(_0xf53449,_0x3e5e68,_0x3be24f,_0x256aec)=>{const _0xf09871=_0x845f9c;let _0x35ff7f=[];switch(_0xf53449['id']){case _0x23dfbc[_0xf09871(0x470)]:{_0x35ff7f=_0x59566e(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x3d0)]:{_0x35ff7f=_0x3fdc0a(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x28d)]:{_0x35ff7f=_0x5db54b(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x399)]:{_0x35ff7f=_0x5751e9(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x144)]:{_0x35ff7f=_0x4f72f8(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x462)]:{_0x35ff7f=_0x4f79a5(_0xf53449,_0x256aec);break;}case _0x23dfbc['MoveRangeCommandId']:{_0x35ff7f=_0x32cf1a(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x3ae)]:{_0x35ff7f=_0x3a1e0d(_0xf53449,_0x256aec);break;}case _0x23dfbc[_0xf09871(0x37e)]:{_0x35ff7f=_0x354afa(_0xf53449,_0x256aec);break;}}const _0x4b3c5e=_0x279243(_0x35ff7f,_0x256aec),_0x19557b=this[_0xf09871(0x337)][_0xf09871(0x441)](_0x3e5e68);if(_0x19557b&&_0x4b3c5e){const _0x1c005e={..._0x19557b,'range':_0x4b3c5e};this[_0xf09871(0x337)][_0xf09871(0x3fb)](_0x3e5e68,_0x1c005e),_0x280cd5(()=>{const _0x4ba198=_0xf09871,_0x3625bb=this[_0x4ba198(0x428)]['registerRefRange'](_0x4b3c5e,_0x4114f6=>(_0x3625bb[_0x4ba198(0x471)](),_0x307376(_0x4114f6,_0x3e5e68,_0x3be24f,_0x4b3c5e)));_0x2b9eba[_0x4ba198(0x2f8)](_0x3625bb);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x845f9c(0x3e6)]((_0x2a6a7f,_0x160d8e)=>{const _0x1b5fdf=_0x845f9c,{range:_0xaa3e8d,sheetID:_0xd0c1c0}=_0x2a6a7f,_0x38d8fa=this[_0x1b5fdf(0x428)][_0x1b5fdf(0x431)](_0xaa3e8d,_0x4ca127=>(_0x38d8fa['dispose'](),_0x307376(_0x4ca127,_0x160d8e,_0xd0c1c0,_0xaa3e8d)));_0x2b9eba[_0x1b5fdf(0x2f8)](_0x38d8fa);});};this[_0x7e7aac(0x46f)](_0x5bf8dd(this['_cursorInfo$'][_0x7e7aac(0x222)](()=>{_0x3bcbde();})));}[_0xa83ddf(0x2bd)](){const _0x36325e=_0xa83ddf;var _0x2b13c2,_0x3b29ef;if(this[_0x36325e(0x200)]=!0x0,((_0x2b13c2=this[_0x36325e(0x44a)][_0x36325e(0x3fd)]())==null?void 0x0:_0x2b13c2[_0x36325e(0x27a)]())!==this[_0x36325e(0x452)])return;const _0x1a9f9e=(_0x3b29ef=this[_0x36325e(0x1ef)]['get'](_0x3bd81d)[_0x36325e(0x1a9)]())==null?void 0x0:_0x3b29ef[0x0],_0x3d5a05=this[_0x36325e(0x44a)][_0x36325e(0x419)](_0x54437b['UNIVER_SHEET'])['getActiveSheet']();_0x1a9f9e&&_0x3d5a05&&this['_updateLocalCursor'](_0x3d5a05[_0x36325e(0x205)](),_0x1a9f9e);}[_0xa83ddf(0x1e8)](){this['_online']=!0x1;}};bt=cr([le(0x2,_0x2854bc(_0x28aed1)),le(0x3,_0x2854bc(Ht)),le(0x4,_0x2854bc(ne)),le(0x5,_0x1b1ada),le(0x6,_0x291fa9),le(0x7,_0x2854bc(_0x180f6f))],bt);var ur=Object[_0xa83ddf(0x3b2)],dr=Object[_0xa83ddf(0x190)],mr=(_0x100cee,_0x1a3450,_0xf6bbf,_0x30f0bb)=>{const _0x573ae5=_0xa83ddf;for(var _0x3e12f5=_0x30f0bb>0x1?void 0x0:_0x30f0bb?dr(_0x1a3450,_0xf6bbf):_0x1a3450,_0x13b4ff=_0x100cee[_0x573ae5(0x249)]-0x1,_0x4d662b;_0x13b4ff>=0x0;_0x13b4ff--)(_0x4d662b=_0x100cee[_0x13b4ff])&&(_0x3e12f5=(_0x30f0bb?_0x4d662b(_0x1a3450,_0xf6bbf,_0x3e12f5):_0x4d662b(_0x3e12f5))||_0x3e12f5);return _0x30f0bb&&_0x3e12f5&&ur(_0x1a3450,_0xf6bbf,_0x3e12f5),_0x3e12f5;},te=(_0x35714b,_0x18006b)=>(_0xc40c44,_0xe541bc)=>_0x18006b(_0xc40c44,_0xe541bc,_0x35714b);const fr=0x12c,gr=0x64;let Rt=class extends _0x26114b{constructor(_0x149f79,_0xca09b7,_0x22ec88,_0x30ca31,_0x4fb16f,_0xfac007,_0x389de9,_0xdff258,_0x4993ca){const _0x4b184c=_0xa83ddf;super(),_(this,_0x4b184c(0x200),!0x1),_(this,_0x4b184c(0x267),!0x1),_(this,'_cursorInfo$',new _0xbc7543(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x4b184c(0x473)]()),_(this,_0x4b184c(0x231),new _0xbc7543([])),_(this,_0x4b184c(0x34e),this['_roomMembers$'][_0x4b184c(0x2e5)](_0x5d9837(fr))),_(this,_0x4b184c(0x1c0),_0x238659(_0x306abc=>{const _0x287919=_0x4b184c,_0x3e9983={'eventID':_0x4e62f0[_0x287919(0x15f)],'data':{'unitID':this[_0x287919(0x452)],'memberID':this[_0x287919(0x14a)]['getMemberID'](),'selection':ys(_0x306abc)}};this[_0x287919(0x14a)][_0x287919(0x14f)](_0x3e9983,this[_0x287919(0x452)]);},gr)),(this['unitID']=_0x149f79,this[_0x4b184c(0x14a)]=_0xca09b7,this[_0x4b184c(0x1ef)]=_0x22ec88,this[_0x4b184c(0x30f)]=_0x30ca31,this[_0x4b184c(0x13e)]=_0x4fb16f,this['_syncEditingCollabCursorService']=_0xfac007,this[_0x4b184c(0x2ef)]=_0x389de9,this[_0x4b184c(0x44a)]=_0xdff258,this['_commandService']=_0x4993ca);}get[_0xa83ddf(0x337)](){const _0x5d6cb8=_0xa83ddf;return this[_0x5d6cb8(0x1c2)][_0x5d6cb8(0x1ac)]();}get[_0xa83ddf(0x33b)](){const _0x3f6257=_0xa83ddf;return this[_0x3f6257(0x231)]['getValue']();}[_0xa83ddf(0x471)](){const _0x2261fd=_0xa83ddf;super[_0x2261fd(0x471)](),this[_0x2261fd(0x1c2)][_0x2261fd(0x311)](new Map()),this[_0x2261fd(0x1c2)][_0x2261fd(0x308)](),this[_0x2261fd(0x231)]['next']([]),this[_0x2261fd(0x231)][_0x2261fd(0x308)]();}[_0xa83ddf(0x321)](){const _0x63a7a5=_0xa83ddf;this[_0x63a7a5(0x267)]||(this[_0x63a7a5(0x267)]=!0x0,this[_0x63a7a5(0x14a)][_0x63a7a5(0x409)][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))[_0x63a7a5(0x222)](_0x2f1dbd=>{const _0x45e40b=_0x63a7a5;_0x2f1dbd===fe[_0x45e40b(0x310)]?this[_0x45e40b(0x2bd)]():this[_0x45e40b(0x1e8)]();}),this[_0x63a7a5(0x14a)]['event$'][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))[_0x63a7a5(0x222)](_0x5a5a5e=>{const _0x3016cd=_0x63a7a5,_0x56f4e2=_0x5a5a5e[_0x3016cd(0x217)];_0x56f4e2===_0x4e62f0['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5a5a5e),_0x56f4e2===_0x4e62f0['USERS_LEAVE']&&this['_onCursorDelete'](_0x5a5a5e);}),this[_0x63a7a5(0x46f)](this[_0x63a7a5(0x153)][_0x63a7a5(0x30a)](_0x393899=>{const _0x42fda6=_0x63a7a5,_0x3b0ef6=_0x393899[_0x42fda6(0x370)];_0x3b0ef6!=null&&this[_0x42fda6(0x200)]&&_0x393899['id']===_0x49f40d['id']&&_0x3b0ef6[_0x42fda6(0x3dd)]===this['unitID']&&_0x3b0ef6[_0x42fda6(0x290)]===!0x1&&this[_0x42fda6(0x1c0)](_0x3b0ef6[_0x42fda6(0x28e)]);})),this[_0x63a7a5(0x23f)][_0x63a7a5(0x3e9)][_0x63a7a5(0x2e5)](_0x4b5283(this[_0x63a7a5(0x22b)]))['subscribe'](_0x58b1f3=>{const _0x34358a=_0x63a7a5;if((_0x58b1f3==null?void 0x0:_0x58b1f3[_0x34358a(0x452)])!==this['unitID'])return;const _0x41c928={'eventID':_0x4e62f0['UPDATE_CURSOR'],'data':_0x58b1f3};this['_onCursorUpdate'](_0x41c928);}),this[_0x63a7a5(0x46f)](this[_0x63a7a5(0x153)][_0x63a7a5(0x30a)](_0x653ab1=>{const _0x16d408=_0x63a7a5;if(_0x653ab1[_0x16d408(0x370)]==null)return;const _0x25342a=_0x653ab1[_0x16d408(0x370)];if(_0x653ab1['id']!==_0x53c1cb['id']||_0x25342a[_0x16d408(0x3dd)]!==this[_0x16d408(0x452)])return;const _0x28ba76={'id':_0x16d408(0x14c),'params':_0x25342a},_0x56b37c=this['cursorInfo'];for(const [_0x1c24d0,_0x1c6452]of _0x56b37c){const _0x129c94={'id':_0x16d408(0x14c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1c6452['ranges']}},_0x2611e4=this[_0x16d408(0x2ef)][_0x16d408(0x2d6)](_0x28ba76,_0x129c94,!0x1);if(_0x571c72(_0x2611e4))throw _0x2611e4[_0x16d408(0x44e)];_0x56b37c['set'](_0x1c24d0,{..._0x1c6452,'ranges':_0x2611e4[_0x16d408(0x145)]['params'][_0x16d408(0x3dc)]});}queueMicrotask(()=>{const _0x3fe0f8=_0x16d408;this[_0x3fe0f8(0x1c2)]['next'](_0x56b37c);});})));}[_0xa83ddf(0x212)](_0x4c8368){const _0x5a5cf9=_0xa83ddf;var _0x2de691,_0x4aab3f;const {memberID:_0x3a0fb4,selection:_0xf95939}=_0x4c8368['data'],_0x4003a5=Xn(_0xf95939),_0x5ed77f=(_0x4aab3f=(_0x2de691=this[_0x5a5cf9(0x13e)][_0x5a5cf9(0x2c2)](this['unitID'],_0x3a0fb4))==null?void 0x0:_0x2de691[_0x5a5cf9(0x1dd)])!=null?_0x4aab3f:'Unknown\x20user',_0x563e1b={'color':this['_colorAssignService'][_0x5a5cf9(0x45c)](_0x3a0fb4),'name':_0x5ed77f,'ranges':_0x4003a5},_0x413db8=this[_0x5a5cf9(0x337)];_0x413db8[_0x5a5cf9(0x3fb)](_0x3a0fb4,_0x563e1b),this[_0x5a5cf9(0x1c2)]['next'](_0x413db8);}[_0xa83ddf(0x18b)](_0x53bbd9){const _0x36d946=_0xa83ddf,{memberID:_0x5020bb}=_0x53bbd9[_0x36d946(0x2cf)],_0x1d8f76=this['cursorInfo'];_0x1d8f76[_0x36d946(0x29c)](_0x5020bb),this[_0x36d946(0x1c2)][_0x36d946(0x311)](_0x1d8f76);}['_toggleOnline'](){const _0x19f861=_0xa83ddf;var _0x255b6c;if(this[_0x19f861(0x200)]=!0x0,((_0x255b6c=this['_univerInstanceService'][_0x19f861(0x3fd)]())==null?void 0x0:_0x255b6c[_0x19f861(0x27a)]())!==this[_0x19f861(0x452)])return;const _0x33f767=this['_injector'][_0x19f861(0x441)](_0x4857f4)[_0x19f861(0x3a8)](),_0x4b0d41=_0x33f767==null?void 0x0:_0x33f767['map'](_0xfbe9ba);Array[_0x19f861(0x210)](_0x4b0d41)&&_0x4b0d41[_0x19f861(0x249)]>0x0&&this[_0x19f861(0x1c0)](_0x4b0d41);}[_0xa83ddf(0x1e8)](){const _0x41cfe8=_0xa83ddf;this[_0x41cfe8(0x200)]=!0x1;}};Rt=mr([te(0x2,_0x2854bc(_0x28aed1)),te(0x3,_0x2854bc(Ht)),te(0x4,_0x2854bc(ne)),te(0x5,_0x2854bc(xt)),te(0x6,_0x5b4b40),te(0x7,_0x1b1ada),te(0x8,_0x291fa9)],Rt);var Sr=Object[_0xa83ddf(0x3b2)],pr=Object[_0xa83ddf(0x190)],vr=(_0x4ba381,_0x55c5e4,_0x1879ee,_0x36d988)=>{const _0x37794e=_0xa83ddf;for(var _0x42e894=_0x36d988>0x1?void 0x0:_0x36d988?pr(_0x55c5e4,_0x1879ee):_0x55c5e4,_0x9da6e4=_0x4ba381[_0x37794e(0x249)]-0x1,_0x1410bc;_0x9da6e4>=0x0;_0x9da6e4--)(_0x1410bc=_0x4ba381[_0x9da6e4])&&(_0x42e894=(_0x36d988?_0x1410bc(_0x55c5e4,_0x1879ee,_0x42e894):_0x1410bc(_0x42e894))||_0x42e894);return _0x36d988&&_0x42e894&&Sr(_0x55c5e4,_0x1879ee,_0x42e894),_0x42e894;},ct=(_0xff3406,_0x475c58)=>(_0x1a39e2,_0x151b90)=>_0x475c58(_0x1a39e2,_0x151b90,_0xff3406);let ge=class extends _0x26114b{constructor(_0x3c9929,_0x39442c,_0x30f892){const _0xead0ab=_0xa83ddf;super(),_(this,_0xead0ab(0x14b),new Map()),_(this,_0xead0ab(0x1c4),new _0x27d684()),(this[_0xead0ab(0x44a)]=_0x3c9929,this[_0xead0ab(0x1ef)]=_0x39442c,this[_0xead0ab(0x1d8)]=_0x30f892,this[_0xead0ab(0x267)]());}['dispose'](){const _0x3629dd=_0xa83ddf;super['dispose'](),this[_0x3629dd(0x1c4)][_0x3629dd(0x308)](),this[_0x3629dd(0x14b)]['forEach'](_0x4371d5=>_0x4371d5['dispose']());}['getCollabCursors$'](_0x553099){const _0x4c07b4=_0xa83ddf;return this['_entities']['has'](_0x553099)?this[_0x4c07b4(0x14b)][_0x4c07b4(0x441)](_0x553099)[_0x4c07b4(0x456)]:this[_0x4c07b4(0x1c4)][_0x4c07b4(0x2e5)](_0x30916b(_0x252e6c=>_0x252e6c['unitID']===_0x553099),_0x284752(_0x3004bc=>_0x3004bc['cursorInfo$']));}[_0xa83ddf(0x267)](){const _0x1bca45=_0xa83ddf;this[_0x1bca45(0x44a)]['getTypeOfUnitAdded$'](_0x54437b['UNIVER_SHEET'])['pipe'](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x222)](async _0x5cc8b4=>{const _0x2d45ef=_0x1bca45,_0x57c98c=_0x5cc8b4[_0x2d45ef(0x27a)](),_0x16e69d=await this['_startSheetCollabCursor'](_0x57c98c);this[_0x2d45ef(0x1c4)][_0x2d45ef(0x311)](_0x16e69d),this[_0x2d45ef(0x14b)][_0x2d45ef(0x3fb)](_0x57c98c,_0x16e69d);}),this[_0x1bca45(0x44a)][_0x1bca45(0x388)](_0x54437b[_0x1bca45(0x1f2)])[_0x1bca45(0x2e5)](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x2e5)](_0x30916b(_0x41aa92=>!_0x41aa92['getUnitId']()['startsWith']('__')))[_0x1bca45(0x222)](async _0x50820d=>{const _0x2735ac=_0x1bca45,_0x417b6e=_0x50820d[_0x2735ac(0x27a)](),_0x2f6925=await this[_0x2735ac(0x230)](_0x417b6e);this['_entityInit$']['next'](_0x2f6925),this[_0x2735ac(0x14b)][_0x2735ac(0x3fb)](_0x417b6e,_0x2f6925);}),_0x19b764(this[_0x1bca45(0x44a)][_0x1bca45(0x331)](_0x54437b[_0x1bca45(0x1f2)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x54437b[_0x1bca45(0x2ac)]))[_0x1bca45(0x2e5)](_0x4b5283(this[_0x1bca45(0x22b)]))[_0x1bca45(0x222)](_0x1475e2=>{const _0x5bb563=_0x1bca45,_0x18f491=_0x1475e2[_0x5bb563(0x27a)](),_0x28d8f6=this[_0x5bb563(0x14b)]['get'](_0x18f491);_0x28d8f6&&(_0x28d8f6[_0x5bb563(0x471)](),this[_0x5bb563(0x14b)][_0x5bb563(0x29c)](_0x18f491));});}async[_0xa83ddf(0x1f0)](_0x4b59b6){const _0x143045=_0xa83ddf,_0x5e122a=await this[_0x143045(0x1d8)][_0x143045(0x2d1)](_0x4b59b6),_0x40d757=this[_0x143045(0x1ef)][_0x143045(0x274)](bt,_0x4b59b6,_0x5e122a);return _0x40d757['init'](),_0x40d757;}async[_0xa83ddf(0x230)](_0x228ea8){const _0x18e62e=_0xa83ddf,_0x415850=await this[_0x18e62e(0x1d8)][_0x18e62e(0x2d1)](_0x228ea8),_0x302c8a=this[_0x18e62e(0x1ef)][_0x18e62e(0x274)](Rt,_0x228ea8,_0x415850);return _0x302c8a[_0x18e62e(0x321)](),_0x302c8a;}};ge=vr([_0x3b619c(_0x13d562['Starting'],ge),ct(0x0,_0x1b1ada),ct(0x1,_0x2854bc(_0x28aed1)),ct(0x2,_0x2854bc(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0x45cda8,_0x487857){const _0x2734c4=_0xa83ddf;let {radius:_0x56a09c,width:_0x1ef455,height:_0x23e53e}=_0x487857;_0x56a09c=_0x56a09c!=null?_0x56a09c:0x0,_0x1ef455=_0x1ef455!=null?_0x1ef455:0x1e,_0x23e53e=_0x23e53e!=null?_0x23e53e:0x1e;let _0x4e630a=0x0,_0x2955b6=0x0,_0x159480=0x0;_0x4e630a=_0x2955b6=_0x159480=Math[_0x2734c4(0x160)](_0x56a09c,_0x1ef455/0x2,_0x23e53e/0x2),_0x45cda8[_0x2734c4(0x1ba)](),_0x45cda8['moveTo'](_0x4e630a,0x0),_0x45cda8[_0x2734c4(0x335)](_0x1ef455-_0x2955b6,0x0),_0x45cda8[_0x2734c4(0x38a)](_0x1ef455-_0x2955b6,_0x2955b6,_0x2955b6,Math['PI']*0x3/0x2,0x0,!0x1),_0x45cda8['lineTo'](_0x1ef455,_0x23e53e-_0x159480),_0x45cda8[_0x2734c4(0x38a)](_0x1ef455-_0x159480,_0x23e53e-_0x159480,_0x159480,0x0,Math['PI']/0x2,!0x1),_0x45cda8[_0x2734c4(0x335)](0x0,_0x23e53e),_0x45cda8[_0x2734c4(0x335)](0x0,_0x4e630a),_0x45cda8[_0x2734c4(0x38a)](_0x4e630a,_0x4e630a,_0x4e630a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x45cda8[_0x2734c4(0x25c)](),_0x487857[_0x2734c4(0x23c)]&&(_0x45cda8[_0x2734c4(0x164)](),_0x45cda8[_0x2734c4(0x24c)]=_0x487857['fill'],_0x487857[_0x2734c4(0x361)]==='evenodd'?_0x45cda8[_0x2734c4(0x23c)]('evenodd'):_0x45cda8[_0x2734c4(0x23c)](),_0x45cda8[_0x2734c4(0x2b3)]());}class it extends _0x497bf1{constructor(_0x550d9b,_0x2cedb8){const _0x5aeaef=_0xa83ddf;super(_0x550d9b,_0x2cedb8),_(this,_0x5aeaef(0x364)),_(this,_0x5aeaef(0x197)),(this[_0x5aeaef(0x364)]=_0x2cedb8==null?void 0x0:_0x2cedb8['color'],this[_0x5aeaef(0x197)]=_0x2cedb8==null?void 0x0:_0x2cedb8[_0x5aeaef(0x197)]);}static[_0xa83ddf(0x476)](_0x44e155,_0x1c5745){const _0x1c12ae=_0xa83ddf,{text:_0x27bb40,color:_0x5e77b5}=_0x1c5745;_0x44e155[_0x1c12ae(0x164)](),_0x44e155[_0x1c12ae(0x299)]=_0x1c12ae(0x26d);const _0x520a69=_0x44e155[_0x1c12ae(0x251)](_0x27bb40)[_0x1c12ae(0x420)],_0x1843e9=Math[_0x1c12ae(0x160)](_0x520a69+0x2*ht,cs);Er(_0x44e155,{'height':ye,'radius':0x4,'width':_0x1843e9,'fill':_0x5e77b5,'evented':!0x1}),_0x44e155[_0x1c12ae(0x24c)]=_0x1c12ae(0x2e6);const _0x56c470=ht,_0x18e271=ye-Ir,_0x327aa6=cs-0x2*ht;if(_0x520a69>_0x327aa6){let _0x49ea7d='',_0x33b1cb=0x0;for(const _0x46b42f of _0x27bb40){const _0xc96019=_0x44e155[_0x1c12ae(0x251)](_0x46b42f)[_0x1c12ae(0x420)];if(_0x33b1cb+_0xc96019<=_0x327aa6-_0x44e155['measureText'](_0x1c12ae(0x2fb))[_0x1c12ae(0x420)])_0x49ea7d+=_0x46b42f,_0x33b1cb+=_0xc96019;else{_0x49ea7d+=_0x1c12ae(0x2fb);break;}}_0x44e155[_0x1c12ae(0x27c)](_0x49ea7d,_0x56c470,_0x18e271);}else _0x44e155[_0x1c12ae(0x27c)](_0x27bb40,_0x56c470,_0x18e271);_0x44e155[_0x1c12ae(0x2b3)]();}[_0xa83ddf(0x281)](_0x5248fd){const _0x167ad3=_0xa83ddf;it[_0x167ad3(0x476)](_0x5248fd,this);}}const Cr=0x1,br=1.5;class Rr extends _0x497bf1{constructor(_0x5206e6,_0x51c6f7){const _0x4274c8=_0xa83ddf;super(_0x5206e6,_0x51c6f7),_(this,_0x4274c8(0x46a)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x4274c8(0x1d0),''),_(this,_0x4274c8(0x2f4),_0x4274c8(0x2ea)),_(this,_0x4274c8(0x435)),(_0x51c6f7&&this[_0x4274c8(0x356)](_0x51c6f7),this[_0x4274c8(0x367)][_0x4274c8(0x2f2)](()=>this[_0x4274c8(0x356)]({'hovered':!0x0})),this[_0x4274c8(0x307)]['subscribeEvent'](()=>this[_0x4274c8(0x356)]({'hovered':!0x1})));}[_0xa83ddf(0x356)](_0x4b809b){const _0x406c9f=_0xa83ddf;var _0x58bdf5,_0x2ed59a,_0x715b0c,_0x127b54,_0x1c3e9e,_0x274fb5;this[_0x406c9f(0x46a)]=(_0x58bdf5=_0x4b809b[_0x406c9f(0x364)])!=null?_0x58bdf5:this['_color'],this[_0x406c9f(0x1bc)]=(_0x2ed59a=_0x4b809b[_0x406c9f(0x38e)])!=null?_0x2ed59a:this[_0x406c9f(0x1bc)],this[_0x406c9f(0x422)]=(_0x715b0c=_0x4b809b[_0x406c9f(0x474)])!=null?_0x715b0c:this[_0x406c9f(0x422)],this[_0x406c9f(0x1d0)]=(_0x127b54=_0x4b809b[_0x406c9f(0x1dd)])!=null?_0x127b54:this[_0x406c9f(0x1d0)],this[_0x406c9f(0x2f4)]=(_0x1c3e9e=_0x4b809b[_0x406c9f(0x264)])!=null?_0x1c3e9e:this[_0x406c9f(0x2f4)],this['_backgroundColor']=(_0x274fb5=_0x4b809b[_0x406c9f(0x317)])!=null?_0x274fb5:this[_0x406c9f(0x435)],this['transformByState']({'width':_0x4b809b['width'],'height':_0x4b809b['height']});}['onMouseMove'](_0x59ea8c){const _0x157acf=_0xa83ddf,{row:_0x1f2265,column:_0x4f9f7e}=_0x59ea8c;if(_0x1f2265>=this[_0x157acf(0x422)][_0x157acf(0x369)]&&_0x1f2265<=this[_0x157acf(0x422)]['endRow']&&_0x4f9f7e>=this[_0x157acf(0x422)][_0x157acf(0x1a6)]&&_0x4f9f7e<=this['_range']['endColumn']){this[_0x157acf(0x356)]({'hovered':!0x0});return;}this[_0x157acf(0x356)]({'hovered':!0x1});}['triggerDblclick'](_0x5712e6){return!0x1;}[_0xa83ddf(0x281)](_0x599591){const _0x5d155c=_0xa83ddf;_0x97f8c4[_0x5d155c(0x476)](_0x599591,{'width':this[_0x5d155c(0x420)],'height':this['height'],'strokeWidth':br,'stroke':this[_0x5d155c(0x46a)],'evented':!0x1,'fill':this[_0x5d155c(0x435)]}),this[_0x5d155c(0x1bc)]&&(_0x599591['save'](),_0x599591[_0x5d155c(0x20c)](0x1,0x0,0x0,0x1,this[_0x5d155c(0x420)],this['_labelPosition']===_0x5d155c(0x2e8)?0x0:-ye),it['drawWith'](_0x599591,{'text':this[_0x5d155c(0x1d0)],'color':this[_0x5d155c(0x46a)]}),_0x599591[_0x5d155c(0x2b3)]());}}var Tr=Object[_0xa83ddf(0x3b2)],Or=Object[_0xa83ddf(0x190)],Dr=(_0x2eb3b3,_0x285091,_0x1a3c55,_0x3142fe)=>{const _0xa11381=_0xa83ddf;for(var _0x4a700d=_0x3142fe>0x1?void 0x0:_0x3142fe?Or(_0x285091,_0x1a3c55):_0x285091,_0x2959b7=_0x2eb3b3[_0xa11381(0x249)]-0x1,_0x10760b;_0x2959b7>=0x0;_0x2959b7--)(_0x10760b=_0x2eb3b3[_0x2959b7])&&(_0x4a700d=(_0x3142fe?_0x10760b(_0x285091,_0x1a3c55,_0x4a700d):_0x10760b(_0x4a700d))||_0x4a700d);return _0x3142fe&&_0x4a700d&&Tr(_0x285091,_0x1a3c55,_0x4a700d),_0x4a700d;},_t=(_0x405062,_0x3b3392)=>(_0x49033e,_0x4a6f82)=>_0x3b3392(_0x49033e,_0x4a6f82,_0x405062);const Pr=0x1389;let Tt=class extends _0x26114b{constructor(_0x5e749b,_0x4e70b4,_0xb63352,_0xf814b3){const _0xc1cb65=_0xa83ddf;super(),_(this,_0xc1cb65(0x289),new Set()),_(this,_0xc1cb65(0x1fe),null),(this[_0xc1cb65(0x3ff)]=_0x5e749b,this[_0xc1cb65(0x320)]=_0x4e70b4,this[_0xc1cb65(0x440)]=_0xb63352,this[_0xc1cb65(0x1a4)]=_0xf814b3,this[_0xc1cb65(0x267)]());}[_0xa83ddf(0x267)](){const _0x5b0548=_0xa83ddf;this[_0x5b0548(0x320)][_0x5b0548(0x3fa)]['pipe'](_0x15cb3a(this[_0x5b0548(0x22b)]),_0x1f02e9(_0x87ab52=>{const _0x2218a9=_0x5b0548;if(_0x87ab52){const _0x3c8979=_0x87ab52[_0x2218a9(0x303)];return _0x4ffd7b(this[_0x2218a9(0x440)]['getCollabCursors$'](this[_0x2218a9(0x3ff)][_0x2218a9(0x3dd)]),this[_0x2218a9(0x1a4)][_0x2218a9(0x33e)])['pipe'](_0x255c5b(([_0x3c1688,_0x5d5300])=>{const _0x3cb1f2=_0x2218a9,_0x44db21=new Map();return _0x3c1688[_0x3cb1f2(0x3e6)]((_0x1dbcce,_0x2bf8b3)=>{const _0x302cf6=_0x3cb1f2;if(_0x1dbcce['sheetID']===_0x3c8979){const _0x26495a={..._0x1dbcce};_0x26495a['color']=_0x5d5300[_0x1dbcce['color']],_0x44db21[_0x302cf6(0x3fb)](_0x2bf8b3,_0x26495a);}}),{'skeleton':_0x87ab52,'cursors':_0x44db21};}));}return _0x2e1ce7({'skeleton':null,'cursors':new Map()});}))[_0x5b0548(0x222)](({skeleton:_0x1e8e67,cursors:_0x38c1ba})=>{const _0x292869=_0x5b0548;this[_0x292869(0x13f)](),_0x1e8e67&&this[_0x292869(0x3a5)](_0x1e8e67,_0x38c1ba);}),this[_0x5b0548(0x320)][_0x5b0548(0x3fa)][_0x5b0548(0x222)](_0xd013d1=>{const _0x4ff92a=_0x5b0548;if(_0xd013d1==null)return;const {skeleton:_0x4125cb}=_0xd013d1,{scene:_0x24e6a1}=this[_0x4ff92a(0x3ff)];_0x24e6a1[_0x4ff92a(0x44f)]['subscribeEvent'](_0x238659(_0x1f1692=>{const _0xf025ee=_0x4ff92a;var _0x2aa66b,_0x85f201;const {offsetX:_0x439efb,offsetY:_0x2ba15a}=_0x1f1692,{x:_0x409cc8,y:_0x104142}=_0x24e6a1[_0xf025ee(0x245)](_0x32bb51[_0xf025ee(0x147)]([_0x439efb,_0x2ba15a])),{scaleX:_0x336b37,scaleY:_0x6d470f}=_0x24e6a1[_0xf025ee(0x2a8)](),_0x4285de=_0x24e6a1['getViewport'](_0x574d50[_0xf025ee(0x17e)]),_0x5e8928=_0x24e6a1['getVpScrollXYInfoByPosToVp'](_0x32bb51[_0xf025ee(0x147)]([_0x409cc8,_0x104142]),_0x4285de),_0x4d84d2=_0x4125cb[_0xf025ee(0x1ad)](_0x439efb,_0x2ba15a,_0x336b37,_0x6d470f,_0x5e8928);((_0x2aa66b=this[_0xf025ee(0x1fe)])==null?void 0x0:_0x2aa66b[_0xf025ee(0x345)])===_0x4d84d2[_0xf025ee(0x345)]&&((_0x85f201=this[_0xf025ee(0x1fe)])==null?void 0x0:_0x85f201['row'])===_0x4d84d2['row']||this[_0xf025ee(0x289)][_0xf025ee(0x3e6)](_0x3b4ae2=>{const _0x528071=_0xf025ee;_0x3b4ae2[_0x528071(0x1d3)](_0x4d84d2);});},0x64));});}[_0xa83ddf(0x3a5)](_0xe6551d,_0x5dd894){const _0x1b2626=_0xa83ddf;var _0x3ba46c;const _0x12f787=(_0x3ba46c=this[_0x1b2626(0x320)]['getCurrent']())==null?void 0x0:_0x3ba46c['skeleton'];if(!_0x12f787)return;const _0x250c73=this['_getSheetObject']();if(!_0x250c73)return;this[_0x1b2626(0x289)][_0x1b2626(0x3e6)](_0x2d5cd5=>{const _0x26f4f8=_0x1b2626;_0x2d5cd5[_0x26f4f8(0x1bd)]();});const {scene:_0x56599d}=_0x250c73,_0x32cc4e=wr(Array[_0x1b2626(0x17d)](_0x5dd894[_0x1b2626(0x172)]()))[_0x1b2626(0x423)](_0x22a63a=>{const _0xd6f434=_0x1b2626,{color:_0x59b6c2,range:_0x41c253,name:_0x3ef97f,selection:_0x5aaee2,sheetID:_0x3398b4}=_0x22a63a,{startColumn:_0x3baa61,startRow:_0x51b1b3,endColumn:_0x1d9307,endRow:_0x14d9b5}=_0x41c253,_0x3a1797=_0x487c58(_0x51b1b3,_0x3baa61,_0x56599d,_0x12f787),_0x34df39=_0x487c58(_0x14d9b5,_0x1d9307,_0x56599d,_0x12f787),{columnHeaderHeightAndMarginTop:_0x164aac}=_0x12f787,{startX:_0xc98839,startY:_0x1930e8}=_0x3a1797,{endX:_0x4abf61,endY:_0x57e013}=_0x34df39,_0x44bc39=_0x4abf61-_0xc98839,_0x2d7a78=_0x57e013-_0x1930e8,_0x337ffc={'labelPosition':_0x1930e8-_0x164aac>=ye?_0xd6f434(0x2ea):_0xd6f434(0x2e8),'sheetID':_0x3398b4,'range':_0x41c253,'color':_0x59b6c2,'name':_0x3ef97f,'selection':_0x5aaee2,'left':_0xc98839,'top':_0x1930e8,'width':_0x44bc39,'height':_0x2d7a78,'evented':!0x1,'zIndex':Pr};return new Rr(_0x3ef97f,_0x337ffc);});_0x56599d[_0x1b2626(0x254)](_0x32cc4e,Cr),this[_0x1b2626(0x289)]=new Set(_0x32cc4e);}['_removeCollabCursors'](){const _0x4041d5=_0xa83ddf;var _0x22263d;(_0x22263d=this['_cursors'])==null||_0x22263d['forEach'](_0x3c6739=>_0x3c6739[_0x4041d5(0x471)]());}[_0xa83ddf(0x1c9)](){const _0x360f4a=_0xa83ddf;return _0x5c1291(this['_context']['unit'],this[_0x360f4a(0x3ff)]);}};Tt=Dr([_t(0x1,_0x2854bc(_0x4ee093)),_t(0x2,_0x2854bc(ge)),_t(0x3,_0x2854bc(_0x356051))],Tt);function wr(_0x31b890){const _0x40e93a=_0xa83ddf,_0x2e75ea=new Map();return _0x31b890[_0x40e93a(0x3e6)](_0x732ee6=>{const _0x407bae=_0x40e93a;if(_0x2e75ea[_0x407bae(0x437)](_0x732ee6[_0x407bae(0x1c1)])){const _0xfdf4fc=_0x2e75ea['get'](_0x732ee6[_0x407bae(0x1c1)]);_0xfdf4fc[_0x407bae(0x1dd)]+=',\x20'+_0x732ee6['name'];}else _0x2e75ea[_0x407bae(0x3fb)](_0x732ee6[_0x407bae(0x1c1)],_0x732ee6);}),Array['from'](_0x2e75ea[_0x40e93a(0x172)]());}var U=function(){const _0x1ce53e=_0xa83ddf;return U=Object[_0x1ce53e(0x21d)]||function(_0x2fd1a2){const _0x5270d1=_0x1ce53e;for(var _0x38587d,_0x41e5b8=0x1,_0xb533f8=arguments['length'];_0x41e5b8<_0xb533f8;_0x41e5b8++){_0x38587d=arguments[_0x41e5b8];for(var _0x930d13 in _0x38587d)Object[_0x5270d1(0x42f)][_0x5270d1(0x196)]['call'](_0x38587d,_0x930d13)&&(_0x2fd1a2[_0x930d13]=_0x38587d[_0x930d13]);}return _0x2fd1a2;},U[_0x1ce53e(0x451)](this,arguments);},Nr=function(_0x1ffa38,_0x22e149){const _0x29e6a0=_0xa83ddf;var _0x3e81b2={};for(var _0x554f9e in _0x1ffa38)Object[_0x29e6a0(0x42f)][_0x29e6a0(0x196)][_0x29e6a0(0x3b3)](_0x1ffa38,_0x554f9e)&&_0x22e149[_0x29e6a0(0x44d)](_0x554f9e)<0x0&&(_0x3e81b2[_0x554f9e]=_0x1ffa38[_0x554f9e]);if(_0x1ffa38!=null&&typeof Object[_0x29e6a0(0x350)]==_0x29e6a0(0x477)){for(var _0x12694b=0x0,_0x554f9e=Object['getOwnPropertySymbols'](_0x1ffa38);_0x12694b<_0x554f9e[_0x29e6a0(0x249)];_0x12694b++)_0x22e149['indexOf'](_0x554f9e[_0x12694b])<0x0&&Object[_0x29e6a0(0x42f)][_0x29e6a0(0x204)]['call'](_0x1ffa38,_0x554f9e[_0x12694b])&&(_0x3e81b2[_0x554f9e[_0x12694b]]=_0x1ffa38[_0x554f9e[_0x12694b]]);}return _0x3e81b2;},kt=_0x1300f6(function(_0x41b1a1,_0x3008c4){const _0x1677b2=_0xa83ddf;var _0x58fb3d=_0x41b1a1[_0x1677b2(0x2fc)],_0x56be58=_0x41b1a1['id'],_0x56d1df=_0x41b1a1['className'],_0x9e5255=_0x41b1a1[_0x1677b2(0x287)],_0x332fa9=Nr(_0x41b1a1,[_0x1677b2(0x2fc),'id','className',_0x1677b2(0x287)]),_0x545fb2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56be58,'\x20')['concat'](_0x56d1df||'')[_0x1677b2(0x334)](),_0x5e86dd=_0x3deeb2('_'[_0x1677b2(0x28f)](Ur()));return $s(_0x58fb3d,''[_0x1677b2(0x28f)](_0x56be58),{'defIds':_0x58fb3d[_0x1677b2(0x201)],'idSuffix':_0x5e86dd[_0x1677b2(0x382)]},U({'ref':_0x3008c4,'className':_0x545fb2},_0x332fa9),_0x9e5255);});function $s(_0x478579,_0x4bcbc9,_0x595ff7,_0x29a7cb,_0x77b23b){const _0x238db6=_0xa83ddf;return _0xedc958(_0x478579[_0x238db6(0x387)],U(U({'key':_0x4bcbc9},Mr(_0x478579,_0x595ff7,_0x77b23b)),_0x29a7cb),(Ar(_0x478579,_0x595ff7)[_0x238db6(0x2f7)]||[])['map'](function(_0x3d7d0c,_0x5bfe0a){const _0x3badec=_0x238db6;return $s(_0x3d7d0c,''[_0x3badec(0x28f)](_0x4bcbc9,'-')[_0x3badec(0x28f)](_0x478579[_0x3badec(0x387)],'-')['concat'](_0x5bfe0a),_0x595ff7,void 0x0,_0x77b23b);}));}function Mr(_0x327eee,_0x5cfb20,_0x80833){const _0x2c0b02=_0xa83ddf;var _0x348a0e=U({},_0x327eee[_0x2c0b02(0x2ba)]);_0x80833!=null&&_0x80833[_0x2c0b02(0x36c)]&&_0x348a0e[_0x2c0b02(0x23c)]===_0x2c0b02(0x36c)&&(_0x348a0e[_0x2c0b02(0x23c)]=_0x80833['colorChannel1']);var _0x5773b2=_0x5cfb20[_0x2c0b02(0x201)];return!_0x5773b2||_0x5773b2['length']===0x0||(_0x327eee[_0x2c0b02(0x387)]===_0x2c0b02(0x390)&&_0x348a0e[_0x2c0b02(0x1ae)]&&(_0x348a0e[_0x2c0b02(0x1ae)]=_0x348a0e[_0x2c0b02(0x1ae)]+_0x5cfb20[_0x2c0b02(0x34b)]),Object[_0x2c0b02(0x296)](_0x348a0e)[_0x2c0b02(0x3e6)](function(_0x57bf56){const _0x3e0c0c=_0x2c0b02;var _0x9f254=_0x57bf56[0x0],_0x32b785=_0x57bf56[0x1];typeof _0x32b785==_0x3e0c0c(0x240)&&(_0x348a0e[_0x9f254]=_0x32b785[_0x3e0c0c(0x322)](/url\(#(.*)\)/,_0x3e0c0c(0x2ed)['concat'](_0x5cfb20[_0x3e0c0c(0x34b)],')')));})),_0x348a0e;}function Ar(_0x53f531,_0x2f2354){const _0x567a98=_0xa83ddf;var _0x2182ad,_0x34ec42=_0x2f2354[_0x567a98(0x201)];return!_0x34ec42||_0x34ec42['length']===0x0?_0x53f531:_0x53f531[_0x567a98(0x387)]==='defs'&&(!((_0x2182ad=_0x53f531['children'])===null||_0x2182ad===void 0x0)&&_0x2182ad[_0x567a98(0x249)])?U(U({},_0x53f531),{'children':_0x53f531[_0x567a98(0x2f7)][_0x567a98(0x423)](function(_0x740ab){const _0xe0f045=_0x567a98;return typeof _0x740ab['attrs']['id']==_0xe0f045(0x240)&&_0x34ec42&&_0x34ec42[_0xe0f045(0x44d)](_0x740ab[_0xe0f045(0x2ba)]['id'])>-0x1?U(U({},_0x740ab),{'attrs':U(U({},_0x740ab[_0xe0f045(0x2ba)]),{'id':_0x740ab[_0xe0f045(0x2ba)]['id']+_0x2f2354[_0xe0f045(0x34b)]})}):_0x740ab;})}):_0x53f531;}function Ur(){const _0x582e32=_0xa83ddf;return Math[_0x582e32(0x302)]()[_0x582e32(0x3af)](0x24)[_0x582e32(0x167)](0x2,0x8);}kt[_0xa83ddf(0x26e)]=_0xa83ddf(0x47b);var yr={'tag':_0xa83ddf(0x157),'attrs':{'fill':_0xa83ddf(0x273),'viewBox':_0xa83ddf(0x323),'width':_0xa83ddf(0x3d1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xa83ddf(0x461)},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'stroke':_0xa83ddf(0x3c8),'d':_0xa83ddf(0x300),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa83ddf(0x434),'attrs':{},'children':[{'tag':_0xa83ddf(0x31a),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'fill':_0xa83ddf(0x3da),'d':_0xa83ddf(0x2a2)}}]}]}],'defIds':[_0xa83ddf(0x149)]},js=_0x1300f6(function(_0x44f7e9,_0x522df6){const _0x7d6d0d=_0xa83ddf;return _0xedc958(kt,Object[_0x7d6d0d(0x21d)]({},_0x44f7e9,{'id':_0x7d6d0d(0x3d6),'ref':_0x522df6,'icon':yr}));});js[_0xa83ddf(0x26e)]=_0xa83ddf(0x31c);var Lr={'tag':_0xa83ddf(0x157),'attrs':{'fill':_0xa83ddf(0x273),'viewBox':'0\x200\x2017\x2016','width':_0xa83ddf(0x3d1),'height':_0xa83ddf(0x3d1)},'children':[{'tag':'g','attrs':{'clipPath':_0xa83ddf(0x324)},'children':[{'tag':'path','attrs':{'stroke':_0xa83ddf(0x3c8),'d':_0xa83ddf(0x260),'strokeLinecap':_0xa83ddf(0x3cf),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa83ddf(0x434),'attrs':{},'children':[{'tag':_0xa83ddf(0x31a),'attrs':{'id':_0xa83ddf(0x198)},'children':[{'tag':_0xa83ddf(0x433),'attrs':{'fill':_0xa83ddf(0x3da),'d':_0xa83ddf(0x2a2),'transform':'translate(.97)'}}]}]}],'defIds':[_0xa83ddf(0x198)]},xs=_0x1300f6(function(_0x5a7079,_0x4c5bcd){const _0x4d9c9c=_0xa83ddf;return _0xedc958(kt,Object['assign']({},_0x5a7079,{'id':_0x4d9c9c(0x1a1),'ref':_0x4c5bcd,'icon':Lr}));});xs[_0xa83ddf(0x26e)]=_0xa83ddf(0x368);const $r=_0xa83ddf(0x1ca),jr='univer-online-status-title',xr='univer-online-status',Hr='univer-online',kr='univer-offline',De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x9e269){const _0xe8d0a1=_0xa83ddf;switch(_0x9e269){case P[_0xe8d0a1(0x42e)]:return _0xe8d0a1(0x306);case P[_0xe8d0a1(0x25f)]:return'collabStatus.conflict';case P[_0xe8d0a1(0x464)]:return _0xe8d0a1(0x2d8);case P[_0xe8d0a1(0x3f5)]:return _0xe8d0a1(0x45b);case P['PENDING']:case P['AWAITING']:case P['AWAITING_WITH_PENDING']:return _0xe8d0a1(0x2a0);case P['SYNCED']:return'collabStatus.synced';}}function Br(_0x27e7ae){const _0x1b07f2=_0xa83ddf,{status$:_0x37a7a0}=_0x27e7ae,_0x48cf04=_0x26cb93(_0x37a7a0,P[_0x1b07f2(0x3f5)]),_0x5b88f0=_0x535e2e(_0x501416),_0x27176d=_0x48cf04!==P[_0x1b07f2(0x42e)],_0x991319=_0x5b88f0['t'](Vr(_0x48cf04)),_0x3bd884=_0x46f863(De[_0x1b07f2(0x16e)],{[De[_0x1b07f2(0x410)]]:_0x27176d,[De[_0x1b07f2(0x2a5)]]:!_0x27176d}),_0x53b52f=_0x27176d?_0x58584e[_0x1b07f2(0x2ff)](xs,null):_0x58584e['createElement'](js,null);return _0x58584e[_0x1b07f2(0x2ff)](_0x1b07f2(0x15d),{'className':_0x3bd884},_0x58584e['createElement'](_0x1b07f2(0x15d),{'className':De[_0x1b07f2(0x2c0)]},_0x53b52f),_0x58584e[_0x1b07f2(0x2ff)]('div',{'className':De[_0x1b07f2(0x16c)]},_0x991319));}var Fr=Object[_0xa83ddf(0x3b2)],Wr=Object['getOwnPropertyDescriptor'],Gr=(_0x19bab9,_0x4afff1,_0x19a291,_0x316327)=>{const _0x47a21f=_0xa83ddf;for(var _0x41389a=_0x316327>0x1?void 0x0:_0x316327?Wr(_0x4afff1,_0x19a291):_0x4afff1,_0x40f3c3=_0x19bab9[_0x47a21f(0x249)]-0x1,_0x469413;_0x40f3c3>=0x0;_0x40f3c3--)(_0x469413=_0x19bab9[_0x40f3c3])&&(_0x41389a=(_0x316327?_0x469413(_0x4afff1,_0x19a291,_0x41389a):_0x469413(_0x41389a))||_0x41389a);return _0x316327&&_0x41389a&&Fr(_0x4afff1,_0x19a291,_0x41389a),_0x41389a;},$e=(_0x169fec,_0x36d57d)=>(_0x45af46,_0x144e8a)=>_0x36d57d(_0x45af46,_0x144e8a,_0x169fec);let ke=class extends _0x54b342{constructor(_0x2a034f,_0x4d757f,_0x41ca37,_0x165d29){const _0x21598c=_0xa83ddf;super(),_(this,'_status$',new _0xbc7543(P['NOT_COLLAB'])),(this[_0x21598c(0x44a)]=_0x2a034f,this[_0x21598c(0x206)]=_0x4d757f,this[_0x21598c(0x1ef)]=_0x41ca37,this[_0x21598c(0x177)]=_0x165d29,this[_0x21598c(0x3f7)](),this[_0x21598c(0x373)]());}[_0xa83ddf(0x3f7)](){const _0x1c214e=_0xa83ddf;this[_0x1c214e(0x46f)](this['_uiPartsService']['registerComponent'](_0x31b0de[_0x1c214e(0x259)],()=>_0x1c7a3c(Yr({'status$':this[_0x1c214e(0x211)][_0x1c214e(0x473)]()}),this[_0x1c214e(0x1ef)])));}['_initStatusListener'](){const _0x5f013e=_0xa83ddf;this[_0x5f013e(0x46f)](_0x5bf8dd(this[_0x5f013e(0x44a)][_0x5f013e(0x161)][_0x5f013e(0x2e5)](_0x284752(()=>{const _0x3df7d6=_0x5f013e,_0x5ced15=this[_0x3df7d6(0x44a)]['getFocusedUnit']();return _0x5ced15?this['_collaborationController'][_0x3df7d6(0x40d)](_0x5ced15[_0x3df7d6(0x27a)]()):_0x2e1ce7(null);}),_0x284752(_0x2fbaa7=>_0x2fbaa7?_0x2fbaa7[_0x5f013e(0x3c1)]:_0x2e1ce7(P[_0x5f013e(0x3f5)])))[_0x5f013e(0x222)](_0x1b5657=>{const _0x19316d=_0x5f013e;this[_0x19316d(0x211)][_0x19316d(0x311)](_0x1b5657);})));}};ke=Gr([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],ke),$e(0x0,_0x1b1ada),$e(0x1,_0x1588cc),$e(0x2,_0x2854bc(_0x28aed1)),$e(0x3,_0x2854bc(Me))],ke);function Yr(_0x1b76d2){const {status$:_0x36f3d1}=_0x1b76d2;return function(){const _0x40a2dc=_0xed79;return _0x58584e[_0x40a2dc(0x2ff)](Br,{'status$':_0x36f3d1});};}const Hs=_0x39166c(_0xa83ddf(0x192));var Kr=Object[_0xa83ddf(0x3b2)],Xr=Object[_0xa83ddf(0x190)],Jr=(_0x264d6f,_0x2b8c0a,_0x531fc3,_0x387505)=>{const _0x1688a3=_0xa83ddf;for(var _0x31c20b=_0x387505>0x1?void 0x0:_0x387505?Xr(_0x2b8c0a,_0x531fc3):_0x2b8c0a,_0x331163=_0x264d6f[_0x1688a3(0x249)]-0x1,_0x308a4f;_0x331163>=0x0;_0x331163--)(_0x308a4f=_0x264d6f[_0x331163])&&(_0x31c20b=(_0x387505?_0x308a4f(_0x2b8c0a,_0x531fc3,_0x31c20b):_0x308a4f(_0x31c20b))||_0x31c20b);return _0x387505&&_0x31c20b&&Kr(_0x2b8c0a,_0x531fc3,_0x31c20b),_0x31c20b;},ue=(_0x59ba90,_0x443146)=>(_0x4dff3e,_0x167f19)=>_0x443146(_0x4dff3e,_0x167f19,_0x59ba90);let Ve=class extends _0x26114b{constructor(_0x2b2cbb,_0x16b3aa,_0x18a5c7,_0xa1a187,_0x39458e,_0x37dbc8){const _0xbf49d=_0xa83ddf;super(),this[_0xbf49d(0x154)]=_0x2b2cbb,this[_0xbf49d(0x33d)]=_0x16b3aa,this['_commandService']=_0x18a5c7,this[_0xbf49d(0x158)]=_0xa1a187,this[_0xbf49d(0x359)]=_0x39458e,_0x37dbc8?_0x37dbc8==null||_0x37dbc8[_0xbf49d(0x3d7)]()[_0xbf49d(0x450)](()=>this[_0xbf49d(0x267)]()):(this[_0xbf49d(0x33d)][_0xbf49d(0x427)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xbf49d(0x267)]());}async['_init'](){const _0x354cad=_0xa83ddf,_0x26c201=this[_0x354cad(0x154)]['getParam']('unit'),_0x47f36d=this[_0x354cad(0x154)][_0x354cad(0x169)](_0x354cad(0x2f9));if(!_0x26c201||!_0x47f36d){this[_0x354cad(0x33d)][_0x354cad(0x427)](_0x354cad(0x226),_0x354cad(0x2a1));return;}switch(Number(_0x47f36d)){case H[_0x354cad(0x2ac)]:{const _0xca335d=await this[_0x354cad(0x28c)](_0x26c201);this['_setupSubUnitSync'](_0xca335d);break;}case H[_0x354cad(0x1f2)]:{await this['_loadDoc'](_0x26c201);break;}default:{this['_logService'][_0x354cad(0x44e)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0xa83ddf(0x41d)](_0x213c42){const _0x4a5e38=_0xa83ddf;await this[_0x4a5e38(0x3c0)](_0x213c42),_0x213c42['activeSheet$'][_0x4a5e38(0x2e5)](_0x4b5283(this['dispose$']))['subscribe'](_0x43f7ab=>{const _0xedbd8c=_0x4a5e38;_0x43f7ab&&this[_0xedbd8c(0x16f)](_0x43f7ab);}),this[_0x4a5e38(0x154)][_0x4a5e38(0x295)][_0x4a5e38(0x2e5)](_0x4b5283(this[_0x4a5e38(0x22b)]))[_0x4a5e38(0x222)](()=>this[_0x4a5e38(0x3c0)](_0x213c42));}[_0xa83ddf(0x16f)](_0x8d057b,_0x312fbe=!0x1){const _0x28187b=_0xa83ddf,_0x83fb2b=this[_0x28187b(0x154)][_0x28187b(0x169)](_0x28187b(0x402));_0x8d057b[_0x28187b(0x205)]()!==_0x83fb2b&&this[_0x28187b(0x154)][_0x28187b(0x429)](_0x28187b(0x402),_0x8d057b['getSheetId'](),_0x312fbe);}async['_updateSubUnitFromURLParams'](_0x2004ce){const _0x4c57e0=_0xa83ddf;var _0x3d1d8a;const _0x29ebed=this[_0x4c57e0(0x154)][_0x4c57e0(0x169)](_0x4c57e0(0x402));if(!_0x29ebed||!_0x2004ce[_0x4c57e0(0x466)](_0x29ebed)){const _0x192295=_0x2004ce[_0x4c57e0(0x38d)]()[0x0],_0x2fd201=_0x2004ce['getSheetBySheetId'](_0x192295);if(!_0x2fd201)return;this['_updateURLWithCurrentState'](_0x2fd201,!0x0),await this['_commandService'][_0x4c57e0(0x318)](_0x488c5e['id'],{'unitId':_0x2004ce['getUnitId'](),'subUnitId':_0x192295});return;}((_0x3d1d8a=_0x2004ce[_0x4c57e0(0x38b)]())==null?void 0x0:_0x3d1d8a[_0x4c57e0(0x205)]())!==_0x29ebed&&await this['_commandService'][_0x4c57e0(0x318)](_0x488c5e['id'],{'unitId':_0x2004ce[_0x4c57e0(0x27a)](),'subUnitId':_0x29ebed});}async['_loadSheet'](_0x53fad0){const _0x658344=_0xa83ddf;let _0x8944a6=0x0;const _0x4b93e9=await this[_0x658344(0x158)][_0x658344(0x392)](_0x53fad0);return _0x4b93e9&&(_0x4b93e9[_0x658344(0x2c5)]||_0x4b93e9[_0x658344(0x43b)][_0x658344(0x249)]!==0x0)&&(_0x8944a6=_0x4b93e9[_0x658344(0x416)]),_0x8944a6===0x0&&this[_0x658344(0x33d)]['debug'](_0x658344(0x226),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x658344(0x359)][_0x658344(0x1f8)](_0x53fad0,_0x8944a6);}async[_0xa83ddf(0x3f1)](_0xe1964){const _0x55aeae=_0xa83ddf;let _0x5efdb2=0x0;const _0x3de08e=await this[_0x55aeae(0x158)]['loadOfflineData'](_0xe1964);return _0x3de08e&&(_0x3de08e[_0x55aeae(0x2c5)]||_0x3de08e[_0x55aeae(0x43b)][_0x55aeae(0x249)]!==0x0)&&(_0x5efdb2=_0x3de08e['rev']),_0x5efdb2===0x0&&this[_0x55aeae(0x33d)][_0x55aeae(0x427)](_0x55aeae(0x226),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x55aeae(0x359)][_0x55aeae(0x1ee)](_0xe1964,_0x5efdb2);}};Ve=Jr([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],Ve),ue(0x0,Hs),ue(0x1,_0x31880b),ue(0x2,_0x291fa9),ue(0x3,_0x2854bc(D)),ue(0x4,_0x2854bc(_0x235fd7)),ue(0x5,_0x36b891(_0x467bd6))],Ve);var zr=Object[_0xa83ddf(0x3b2)],qr=Object[_0xa83ddf(0x190)],Zr=(_0x3253f4,_0x192b81,_0x4f99f,_0xadf492)=>{for(var _0x33aa4d=_0xadf492>0x1?void 0x0:_0xadf492?qr(_0x192b81,_0x4f99f):_0x192b81,_0x579341=_0x3253f4['length']-0x1,_0x2fb7f3;_0x579341>=0x0;_0x579341--)(_0x2fb7f3=_0x3253f4[_0x579341])&&(_0x33aa4d=(_0xadf492?_0x2fb7f3(_0x192b81,_0x4f99f,_0x33aa4d):_0x2fb7f3(_0x33aa4d))||_0x33aa4d);return _0xadf492&&_0x33aa4d&&zr(_0x192b81,_0x4f99f,_0x33aa4d),_0x33aa4d;},hs=(_0x4a4b1f,_0x4f2f26)=>(_0x2b315f,_0x3e5295)=>_0x4f2f26(_0x2b315f,_0x3e5295,_0x4a4b1f);const Qr='DEFAULT_FILE_NAME',eo='Univer';let Be=class extends _0x54b342{constructor(_0x54142e,_0x28b4ff){const _0x52d561=_0xa83ddf;super(),this[_0x52d561(0x44a)]=_0x54142e,this[_0x52d561(0x442)]=_0x28b4ff,this[_0x52d561(0x267)]();}['_init'](){const _0x38cf9e=_0xa83ddf;this[_0x38cf9e(0x46f)](_0x5bf8dd(this['_univerInstanceService'][_0x38cf9e(0x161)]['subscribe'](()=>{const _0x108bc8=_0x38cf9e;var _0x3d6877;const _0x139c0e=this['_univerInstanceService']['getFocusedUnit']();let _0x2a726a=(_0x3d6877=this['_configService'][_0x108bc8(0x436)](Qr))!=null?_0x3d6877:eo;_0x139c0e instanceof _0x5340aa&&(_0x2a726a=_0x139c0e[_0x108bc8(0x1dd)]),document[_0x108bc8(0x3b0)]=_0x2a726a;})));}};Be=Zr([_0x3b619c(_0x13d562['Ready'],Be),hs(0x0,_0x1b1ada),hs(0x1,_0x5e7a12)],Be);var to=Object['defineProperty'],so=Object['getOwnPropertyDescriptor'],io=(_0x3fb01b,_0x236546,_0x5cf9b5,_0x2f8278)=>{const _0x426d9b=_0xa83ddf;for(var _0x112644=_0x2f8278>0x1?void 0x0:_0x2f8278?so(_0x236546,_0x5cf9b5):_0x236546,_0x3f87cc=_0x3fb01b[_0x426d9b(0x249)]-0x1,_0x168f6d;_0x3f87cc>=0x0;_0x3f87cc--)(_0x168f6d=_0x3fb01b[_0x3f87cc])&&(_0x112644=(_0x2f8278?_0x168f6d(_0x236546,_0x5cf9b5,_0x112644):_0x168f6d(_0x112644))||_0x112644);return _0x2f8278&&_0x112644&&to(_0x236546,_0x5cf9b5,_0x112644),_0x112644;},_s=(_0x39ad59,_0x4bab3a)=>(_0x23f276,_0x436fae)=>_0x4bab3a(_0x23f276,_0x436fae,_0x39ad59);let Ot=class{constructor(_0x56e9d6,_0x136cf8){const _0x13cdf7=_0xa83ddf;this[_0x13cdf7(0x442)]=_0x56e9d6,this[_0x13cdf7(0x141)]=_0x136cf8;}async['getUnitOnRev'](_0x477bc7,_0x44cf3b){const _0x549871=_0xa83ddf;var _0x517e6f;const {unitID:_0x4b085d,type:_0x442df9,revision:_0x80ff70=0x0}=_0x44cf3b,_0x3be30b=this[_0x549871(0x179)]()+'/'+_0x442df9+'/unit/'+_0x4b085d+_0x549871(0x176)+_0x80ff70,_0x15e0a9=(await this[_0x549871(0x141)][_0x549871(0x441)](_0x3be30b))['body'],_0x1ae4f5=(_0x517e6f=_0x15e0a9['snapshot'])==null?void 0x0:_0x517e6f[_0x549871(0x152)];if(_0x1ae4f5){const _0x908f48=_0x1ae4f5==null?void 0x0:_0x1ae4f5[_0x549871(0x232)],_0x1de06c=_0x46e75c[_0x549871(0x234)](_0x2a1742(_0x908f48));_0x1ae4f5[_0x549871(0x232)]=_0x1de06c,Object[_0x549871(0x296)](_0x1ae4f5[_0x549871(0x202)])['forEach'](([,_0x22c850])=>{const _0x55419f=_0x549871,_0x587e9b=_0x22c850[_0x55419f(0x232)],_0x413040=_0x46e75c['encode'](_0x2a1742(_0x587e9b));_0x22c850[_0x55419f(0x232)]=_0x413040;});}return _0x15e0a9;}async[_0xa83ddf(0x2bf)](_0x5d973a,_0x51e610){const _0x2e784e=_0xa83ddf,{unitID:_0x55fc28,type:_0x2c07b2,blockID:_0x5fbce9}=_0x51e610,_0x1acad5=this[_0x2e784e(0x3ba)]()+'/'+_0x2c07b2+_0x2e784e(0x247)+_0x55fc28+'/block/'+_0x5fbce9;return(await this['_httpService'][_0x2e784e(0x441)](_0x1acad5))[_0x2e784e(0x214)];}async[_0xa83ddf(0x21e)](_0x1d691b,_0x3bba29){const _0x47eff1=_0xa83ddf,{unitID:_0x3266f3,type:_0x5b8fe0,from:_0x172084,to:_0x4d0fba}=_0x3bba29,_0x5f5d43=this['_getAPIPrefix']()+'/'+_0x5b8fe0+_0x47eff1(0x247)+_0x3266f3+_0x47eff1(0x2aa)+_0x172084+_0x47eff1(0x3be)+_0x4d0fba;return(await this[_0x47eff1(0x141)]['get'](_0x5f5d43))[_0x47eff1(0x214)];}[_0xa83ddf(0x179)](){const _0x3d8044=_0xa83ddf;var _0x13211b;return(_0x13211b=this['_configService'][_0x3d8044(0x436)](hn))!=null?_0x13211b:this[_0x3d8044(0x3ba)]();}[_0xa83ddf(0x3ba)](){const _0x10efe8=_0xa83ddf;var _0x3e0575;return(_0x3e0575=this['_configService'][_0x10efe8(0x436)](an))!=null?_0x3e0575:cn;}async[_0xa83ddf(0x215)](_0x423e55,_0x496a0d){const _0x3382c3=_0xa83ddf,_0x444228='/universer-api/snapshot/'+_0x496a0d[_0x3382c3(0x2f9)]+_0x3382c3(0x247)+_0x496a0d['unitID']+'/resources';return(await this[_0x3382c3(0x141)]['get'](_0x444228,{'params':{'resourceId':JSON['stringify'](_0x496a0d[_0x3382c3(0x37d)])}}))['body'];}[_0xa83ddf(0x1d9)](){const _0x2198d6=_0xa83ddf;throw new Error(_0x2198d6(0x257));}['saveSheetBlock'](){const _0x1bbe46=_0xa83ddf;throw new Error(_0x1bbe46(0x257));}[_0xa83ddf(0x1c5)](){const _0x4daac1=_0xa83ddf;throw new Error(_0x4daac1(0x257));}};Ot=io([_s(0x0,_0x5e7a12),_s(0x1,_0x2854bc(_0x3efcab))],Ot);var no=Object['defineProperty'],ro=Object[_0xa83ddf(0x190)],oo=(_0xcc385f,_0x486810,_0x5304c5,_0x2719c6)=>{const _0x5e2327=_0xa83ddf;for(var _0x5c87bc=_0x2719c6>0x1?void 0x0:_0x2719c6?ro(_0x486810,_0x5304c5):_0x486810,_0x2bff16=_0xcc385f[_0x5e2327(0x249)]-0x1,_0x54b42b;_0x2bff16>=0x0;_0x2bff16--)(_0x54b42b=_0xcc385f[_0x2bff16])&&(_0x5c87bc=(_0x2719c6?_0x54b42b(_0x486810,_0x5304c5,_0x5c87bc):_0x54b42b(_0x5c87bc))||_0x5c87bc);return _0x2719c6&&_0x5c87bc&&no(_0x486810,_0x5304c5,_0x5c87bc),_0x5c87bc;},Pe=(_0x3ee9b0,_0x2376f3)=>(_0x24a23a,_0x5b1932)=>_0x2376f3(_0x24a23a,_0x5b1932,_0x3ee9b0);let Dt=class extends _0x4430ad{constructor(_0x140c6d,_0x1aef43,_0x41b9a7,_0x1cd99e,_0x311769){const _0x2a401a=_0xa83ddf;super(_0x140c6d,_0x1aef43,_0x41b9a7),this[_0x2a401a(0x2ef)]=_0x1cd99e,this[_0x2a401a(0x33d)]=_0x311769;}['transformUndoRedo'](_0x46cddb,_0x14d6fd){const _0x595e28=_0xa83ddf,_0x1df7f9=this['_getUndoStack'](_0x46cddb);if(_0x1df7f9)try{const _0x7a8bb2=this[_0x595e28(0x43a)](_0x1df7f9,_0x14d6fd);this['_substituteUndoStack'](_0x46cddb,_0x7a8bb2);}catch(_0x28e026){this[_0x595e28(0x33d)][_0x595e28(0x44e)](_0x595e28(0x2f3),_0x28e026),this[_0x595e28(0x3ca)](_0x46cddb);}const _0x5ddd49=this['_getRedoStack'](_0x46cddb);if(_0x5ddd49)try{const _0x5f8846=this[_0x595e28(0x43a)](_0x5ddd49,_0x14d6fd);this[_0x595e28(0x448)](_0x46cddb,_0x5f8846);}catch(_0x1bd633){this[_0x595e28(0x33d)]['error'](_0x1bd633),this[_0x595e28(0x1ff)](_0x46cddb);}}[_0xa83ddf(0x3ca)](_0x215acf){const _0x8ade52=_0xa83ddf,_0x5a1b55=this[_0x8ade52(0x248)](_0x215acf);_0x5a1b55&&(_0x5a1b55[_0x8ade52(0x249)]=0x0,this[_0x8ade52(0x288)]());}['_clearRedo'](_0x1e9c81){const _0x29cb86=_0xa83ddf,_0x2f15e1=this[_0x29cb86(0x457)](_0x1e9c81);_0x2f15e1&&(_0x2f15e1[_0x29cb86(0x249)]=0x0,this[_0x29cb86(0x288)]());}['_substituteUndoStack'](_0x357a9b,_0x38210f){const _0x5aa7d6=_0xa83ddf;this[_0x5aa7d6(0x163)][_0x5aa7d6(0x3fb)](_0x357a9b,_0x38210f),this[_0x5aa7d6(0x288)]();}[_0xa83ddf(0x448)](_0x592298,_0x23e4f7){this['_redoStacks']['set'](_0x592298,_0x23e4f7),this['_updateStatus']();}[_0xa83ddf(0x43a)](_0x990136,_0x2f8bd0){const _0x13eb6a=_0xa83ddf,_0x1a1718=[];let _0x59a45a=_0x2f8bd0,_0x4f0110=_0x2f8bd0;for(let _0x285d63=_0x990136['length']-0x1;_0x285d63>=0x0;_0x285d63--){const {unitID:_0x3cc8b3,undoMutations:_0x182a39,redoMutations:_0x40bf66}=_0x990136[_0x285d63],_0x562261=this['_transformService'][_0x13eb6a(0x384)](_0x59a45a,_0x182a39),_0x16ad4f=this[_0x13eb6a(0x2ef)][_0x13eb6a(0x384)](_0x4f0110,_0x40bf66);if(_0x22b0cf(_0x562261)||_0x22b0cf(_0x16ad4f)){this[_0x13eb6a(0x33d)][_0x13eb6a(0x44e)](_0x13eb6a(0x2f3),_0x13eb6a(0x1bf),_0x562261,_0x16ad4f);break;}_0x59a45a=_0x562261[_0x13eb6a(0x227)],_0x4f0110=_0x16ad4f[_0x13eb6a(0x227)],_0x1a1718['push']({'unitID':_0x3cc8b3,'undoMutations':_0x562261[_0x13eb6a(0x145)],'redoMutations':_0x16ad4f['m2Prime']});}return _0x1a1718[_0x13eb6a(0x165)]();}};Dt=oo([Pe(0x0,_0x1b1ada),Pe(0x1,_0x291fa9),Pe(0x2,_0x330f45),Pe(0x3,_0x5b4b40),Pe(0x4,_0x31880b)],Dt);class ao extends _0x26114b{constructor(){const _0x404156=_0xa83ddf;super(),_(this,_0x404156(0x295)),this[_0x404156(0x295)]=_0x78aa37(window,'popstate')[_0x404156(0x2e5)](_0x4b5283(this[_0x404156(0x22b)]),_0x2fa1a3(0x1),_0x3080b0(void 0x0));}[_0xa83ddf(0x429)](_0x100b65,_0xc3a2ba,_0x1bdfb9=!0x1){const _0x38b57d=_0xa83ddf,_0x40fcaa=new URL(window[_0x38b57d(0x140)][_0x38b57d(0x3ed)]);_0x40fcaa[_0x38b57d(0x36d)]['set'](_0x100b65,_0xc3a2ba),_0x1bdfb9?window[_0x38b57d(0x3bf)][_0x38b57d(0x275)]('','',_0x40fcaa[_0x38b57d(0x3af)]()):window[_0x38b57d(0x3bf)]['pushState']('','',_0x40fcaa[_0x38b57d(0x3af)]());}[_0xa83ddf(0x270)](_0x4bce75,_0x50454d=!0x1){const _0xf3ad96=_0xa83ddf,_0x3c3192=new URL(window[_0xf3ad96(0x140)][_0xf3ad96(0x3ed)]);_0x3c3192[_0xf3ad96(0x36d)][_0xf3ad96(0x29c)](_0x4bce75),_0x50454d?window[_0xf3ad96(0x3bf)][_0xf3ad96(0x275)]('','',_0x3c3192[_0xf3ad96(0x3af)]()):window['history'][_0xf3ad96(0x219)]('','',_0x3c3192[_0xf3ad96(0x3af)]());}['getParam'](_0x3e571b){const _0x48def7=_0xa83ddf;var _0x1e8bd8;return(_0x1e8bd8=new URL(window['location']['href'])[_0x48def7(0x36d)][_0x48def7(0x441)](_0x3e571b))!=null?_0x1e8bd8:void 0x0;}}const lt=_0xa83ddf(0x2b7),co=_0xa83ddf(0x31d),ho=_0xa83ddf(0x15b),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0xa83ddf(0x389);class ls{constructor(_0x313eed,_0x4668d3,_0x54e2aa,_0x583694){const _0x13b440=_0xa83ddf;_(this,_0x13b440(0x1a3),[]),_(this,_0x13b440(0x18a),null),_(this,_0x13b440(0x18d),null),_(this,'_anchorDot',null),_(this,_0x13b440(0x1dc),null),_(this,_0x13b440(0x1af),null),(this['_cursor']=_0x313eed,this[_0x13b440(0x2cb)]=_0x4668d3,this['_docSkeleton']=_0x54e2aa,this['_document']=_0x583694,this['_render']());}set[_0xa83ddf(0x1fb)](_0x42c3d5){const _0x5115e5=_0xa83ddf;_0x42c3d5?(this['_anchorDot']&&this[_0x5115e5(0x1d1)]['hide'](),this[_0x5115e5(0x18d)]&&this[_0x5115e5(0x18d)]['show']()):(this[_0x5115e5(0x1d1)]&&this[_0x5115e5(0x1d1)][_0x5115e5(0x178)](),this[_0x5115e5(0x18d)]&&this[_0x5115e5(0x18d)][_0x5115e5(0x1b7)]());}['dispose'](){const _0x4bb6e9=_0xa83ddf;for(const _0x13f1ac of this[_0x4bb6e9(0x1a3)])_0x13f1ac[_0x4bb6e9(0x471)]();this[_0x4bb6e9(0x18d)]&&this[_0x4bb6e9(0x18d)]['dispose'](),this[_0x4bb6e9(0x1d1)]&&this['_anchorDot'][_0x4bb6e9(0x471)](),this[_0x4bb6e9(0x18a)]&&this[_0x4bb6e9(0x18a)][_0x4bb6e9(0x471)](),this[_0x4bb6e9(0x1af)]&&this['_eventUnsubscribe']();}[_0xa83ddf(0x278)](){const _0x523c5f=_0xa83ddf;var _0x180f4a;const {_docSkeleton:_0x4aebc3,_document:_0x27cc07}=this,{color:_0x374ae4,name:_0x2f819d,ranges:_0x5af5d0}=this['_cursor'],_0x6f0f5e=_0x27cc07['getOffsetConfig'](),{docsLeft:_0x16265a,docsTop:_0x2ee57c}=_0x6f0f5e,_0x594fd6=new _0x2ea5cc(_0x6f0f5e,_0x4aebc3);for(const {startOffset:_0x5b3dc8,endOffset:_0x9b6ee,collapsed:_0x43c47c,isActive:_0x1ec84a}of _0x5af5d0){const _0x166717=_0x4aebc3[_0x523c5f(0x46c)](_0x5b3dc8),_0x50b2cb=_0x4aebc3[_0x523c5f(0x46c)](_0x9b6ee);if(_0x1ec84a){const {contentBoxPointGroup:_0x24f9f4}=_0x594fd6['getRangePointData'](_0x50b2cb,_0x50b2cb);if(_0x24f9f4[_0x523c5f(0x249)]===0x0)continue;this[_0x523c5f(0x20a)](_0x374ae4,_0x24f9f4,_0x16265a,_0x2ee57c,_0x2f819d),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x43c47c&&_0x166717&&_0x50b2cb){if(_0x4b651b(_0x166717,_0x50b2cb)){const _0x421bc5=new _0x172ca8(_0x6f0f5e,_0x4aebc3),{pointGroup:_0x2b6244}=(_0x180f4a=_0x421bc5[_0x523c5f(0x2b8)](_0x166717,_0x50b2cb))!=null?_0x180f4a:{};if(_0x2b6244==null||_0x2b6244['length']===0x0)continue;this[_0x523c5f(0x2c9)](_0x374ae4,_0x2b6244,_0x16265a,_0x2ee57c);}else{const {contentBoxPointGroup:_0x47772b}=_0x594fd6[_0x523c5f(0x2b8)](_0x166717,_0x50b2cb);if(_0x47772b[_0x523c5f(0x249)]===0x0)continue;this[_0x523c5f(0x377)](_0x374ae4,_0x47772b,_0x16265a,_0x2ee57c);}}}}[_0xa83ddf(0x20a)](_0x171fe5,_0x4a9331,_0x2849f7,_0x27e79f,_0x5e9e8e){const _0x2ec721=_0xa83ddf,_0x42adec=this[_0x2ec721(0x2e4)](_0x4a9331),{left:_0xb2ce20,top:_0x5e7029,height:_0x4bc41b}=_0x42adec,_0x177a2a=this[_0x2ec721(0x467)](),_0x19db05=lo/_0x177a2a,_0x25673a=new _0x97f8c4(lt+_0x146730['generateRandomId'](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f,'height':_0x4bc41b,'width':_o,'fill':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'strokeWidth':_0x19db05,'stroke':uo,'evented':!0x0});this['_anchor']=_0x25673a,this[_0x2ec721(0x2cb)]['addObject'](_0x25673a,_0x480610);const _0x300364=new _0x97f8c4(lt+_0x146730[_0x2ec721(0x447)](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f-ut/0x2,'height':ut,'width':ut,'fill':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'strokeWidth':0x0,'stroke':_0x171fe5||_0x18174b(_0x2cb332[_0x2ec721(0x2ec)],0x0),'evented':!0x1});this['_anchorDot']=_0x300364,this['_scene'][_0x2ec721(0x2a4)](_0x300364,_0x480610);const _0x4f5d15=new it(lt+_0x146730['generateRandomId'](we),{'left':_0xb2ce20+_0x2849f7-_0x19db05,'top':_0x5e7029+_0x27e79f-ye,'text':_0x5e9e8e,'color':_0x171fe5});this['_textBubble']=_0x4f5d15,this[_0x2ec721(0x2cb)][_0x2ec721(0x2a4)](_0x4f5d15,_0x480610),this[_0x2ec721(0x1fb)]=!0x1;}[_0xa83ddf(0x3bd)](){const _0x4a6644=_0xa83ddf,_0xca690a=this['_anchor'][_0x4a6644(0x367)]['subscribeEvent'](()=>{const _0xf20812=_0x4a6644;this[_0xf20812(0x1fb)]=!0x0;}),_0x3202b7=this['_anchor']['onPointerLeave$'][_0x4a6644(0x2f2)](()=>{const _0x169e93=_0x4a6644;this[_0x169e93(0x1dc)]&&clearTimeout(this[_0x169e93(0x1dc)]),this[_0x169e93(0x1dc)]=setTimeout(()=>{const _0x2b5b86=_0x169e93;this[_0x2b5b86(0x1fb)]=!0x1;},0x7d0);});return()=>{const _0x2d1719=_0x4a6644;_0xca690a[_0x2d1719(0x23d)](),_0x3202b7[_0x2d1719(0x23d)]();};}[_0xa83ddf(0x377)](_0x4c5b26,_0x3c25c0,_0x532e8f,_0x9c7f67){const _0x1faa49=_0xa83ddf,_0x241c49=new _0x57dab2(_0x4c5b26)[_0x1faa49(0x394)](0.2)[_0x1faa49(0x2e3)](),_0xbccf7a=new _0x37879a(co+_0x146730[_0x1faa49(0x447)](we),{'pointsGroup':_0x3c25c0,'fill':_0x241c49||_0x18174b(_0x2cb332[_0x1faa49(0x2ec)],0.2),'left':_0x532e8f,'top':_0x9c7f67,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1faa49(0x1a3)]['push'](_0xbccf7a),this[_0x1faa49(0x2cb)][_0x1faa49(0x2a4)](_0xbccf7a,_0x480610);}[_0xa83ddf(0x2c9)](_0x45b7c0,_0x363835,_0x540f1d,_0x5e8f6c){const _0x3f73bd=_0xa83ddf,_0x398900=new _0x57dab2(_0x45b7c0)[_0x3f73bd(0x394)](0.2)['toRgbString'](),_0x3adf1b=new _0x37879a(ho+_0x146730[_0x3f73bd(0x447)](we),{'pointsGroup':_0x363835,'fill':_0x398900||_0x18174b(_0x2cb332[_0x3f73bd(0x2ec)],0.2),'left':_0x540f1d,'top':_0x5e8f6c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f73bd(0x1a3)][_0x3f73bd(0x14e)](_0x3adf1b),this['_scene'][_0x3f73bd(0x2a4)](_0x3adf1b,_0x480610);}[_0xa83ddf(0x2e4)](_0x270310){const _0x66d9be=_0x270310[0x0],_0x157aae=_0x66d9be[0x0],_0x223e21=_0x66d9be[0x2],{x:_0x203ab2,y:_0x19ee96}=_0x157aae,{x:_0x246a74,y:_0x203e2a}=_0x223e21;return{'left':_0x203ab2,'top':_0x19ee96,'width':_0x246a74-_0x203ab2,'height':_0x203e2a-_0x19ee96};}[_0xa83ddf(0x467)](){const _0x4fb66b=_0xa83ddf,{scaleX:_0x2073b2,scaleY:_0x24eabf}=this[_0x4fb66b(0x2cb)]['getAncestorScale']();return Math[_0x4fb66b(0x366)](_0x2073b2,_0x24eabf);}}var mo=Object[_0xa83ddf(0x3b2)],fo=Object[_0xa83ddf(0x190)],go=(_0x4f2540,_0x1d791d,_0x235f81,_0x1025bc)=>{const _0x255b67=_0xa83ddf;for(var _0x15179b=_0x1025bc>0x1?void 0x0:_0x1025bc?fo(_0x1d791d,_0x235f81):_0x1d791d,_0x191f53=_0x4f2540[_0x255b67(0x249)]-0x1,_0x12ea38;_0x191f53>=0x0;_0x191f53--)(_0x12ea38=_0x4f2540[_0x191f53])&&(_0x15179b=(_0x1025bc?_0x12ea38(_0x1d791d,_0x235f81,_0x15179b):_0x12ea38(_0x15179b))||_0x15179b);return _0x1025bc&&_0x15179b&&mo(_0x1d791d,_0x235f81,_0x15179b),_0x15179b;},je=(_0xd6eb9b,_0x199b11)=>(_0x56b53f,_0x492153)=>_0x199b11(_0x56b53f,_0x492153,_0xd6eb9b);let Fe=class extends _0x26114b{constructor(_0x3ad775,_0x1046d1,_0x3bd4f3,_0x49e842,_0xa95d99){const _0x10d4fe=_0xa83ddf;super(),_(this,_0x10d4fe(0x3a4),[]),_(this,_0x10d4fe(0x289),[]),(this[_0x10d4fe(0x3ff)]=_0x3ad775,this[_0x10d4fe(0x1b2)]=_0x1046d1,this[_0x10d4fe(0x440)]=_0x3bd4f3,this[_0x10d4fe(0x153)]=_0x49e842,this[_0x10d4fe(0x1a4)]=_0xa95d99,this[_0x10d4fe(0x267)]());}[_0xa83ddf(0x267)](){const _0x2a02eb=_0xa83ddf,_0x2bd493=this[_0x2a02eb(0x3ff)][_0x2a02eb(0x3dd)],_0x2a86b5=this['_docSkeletonManagerService'];this[_0x2a02eb(0x46f)](_0x4ffd7b([this['_collabCursorController'][_0x2a02eb(0x1f4)](_0x2bd493),this[_0x2a02eb(0x1a4)][_0x2a02eb(0x33e)]])[_0x2a02eb(0x2e5)](_0x255c5b(([_0x53a82b,_0x38d5f9])=>({'skeleton':_0x2a86b5['getSkeleton'](),'cursors':[..._0x53a82b[_0x2a02eb(0x172)]()]['flatMap'](_0x35a792=>({..._0x35a792,'color':_0x38d5f9[_0x35a792[_0x2a02eb(0x364)]]}))})))[_0x2a02eb(0x222)](_0x4b05da=>{const _0x4ec6d8=_0x2a02eb;if(this[_0x4ec6d8(0x13f)](),_0x4b05da){const {skeleton:_0xfbef33,cursors:_0x5770a5}=_0x4b05da;this[_0x4ec6d8(0x3a5)](_0xfbef33,_0x5770a5);}})),this['_initResize'](),this[_0x2a02eb(0x383)]();}[_0xa83ddf(0x3a5)](_0xcfec6,_0x3d2921){const _0x2f8c9e=_0xa83ddf,{scene:_0x252a2d,mainComponent:_0x4bcdb6}=this[_0x2f8c9e(0x3ff)],_0x174031=_0x3d2921[_0x2f8c9e(0x423)](_0x26415b=>new ls(_0x26415b,_0x252a2d,_0xcfec6,_0x4bcdb6));this['_cursorShapes']=_0x174031,this[_0x2f8c9e(0x289)]=_0x3d2921;}['_refreshCollabCursors'](){const _0x1ed1df=_0xa83ddf;this[_0x1ed1df(0x13f)]();const {scene:_0x14dccb,mainComponent:_0x4a7d6a}=this[_0x1ed1df(0x3ff)],_0xfdd35c=this['_docSkeletonManagerService'][_0x1ed1df(0x376)](),_0x4e3c59=this[_0x1ed1df(0x289)][_0x1ed1df(0x423)](_0x5050c4=>new ls(_0x5050c4,_0x14dccb,_0xfdd35c,_0x4a7d6a));this[_0x1ed1df(0x3a4)]=_0x4e3c59;}['_removeCollabCursors'](){const _0x4da5da=_0xa83ddf;this[_0x4da5da(0x3a4)][_0x4da5da(0x3e6)](_0x5411a8=>_0x5411a8[_0x4da5da(0x471)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2113b0=_0xa83ddf,_0x193487=[_0x5d1a0c['id']];this['disposeWithMe'](this[_0x2113b0(0x153)][_0x2113b0(0x30a)](_0x4333ba=>{const _0x1cecc5=_0x2113b0;_0x193487[_0x1cecc5(0x173)](_0x4333ba['id'])&&_0x4333ba['params'][_0x1cecc5(0x3dd)]===this[_0x1cecc5(0x3ff)][_0x1cecc5(0x3dd)]&&this[_0x1cecc5(0x3b9)]();}));}[_0xa83ddf(0x15e)](){const _0x3dbfeb=_0xa83ddf;this[_0x3dbfeb(0x46f)](_0x4fb823(this[_0x3dbfeb(0x3ff)]['engine'][_0x3dbfeb(0x37a)])[_0x3dbfeb(0x2e5)](_0x4393c3(_0x526553=>_0x526553[_0x3dbfeb(0x2f9)]===_0x2257dd[_0x3dbfeb(0x2ae)]),_0x133efc(0x10))[_0x3dbfeb(0x222)](()=>{const _0x400ffd=_0x3dbfeb;this[_0x400ffd(0x3b9)]();}));}};Fe=go([_0x3b619c(_0x13d562[_0xa83ddf(0x1b6)],Fe),je(0x1,_0x2854bc(_0x4a13e2)),je(0x2,_0x2854bc(ge)),je(0x3,_0x291fa9),je(0x4,_0x2854bc(_0x356051))],Fe);var So=Object[_0xa83ddf(0x3b2)],po=Object[_0xa83ddf(0x190)],vo=(_0x5d35f4,_0x3b6e4e,_0x15c517,_0x3b775e)=>{for(var _0x2868b4=_0x3b775e>0x1?void 0x0:_0x3b775e?po(_0x3b6e4e,_0x15c517):_0x3b6e4e,_0x5d2b5f=_0x5d35f4['length']-0x1,_0x36fd0c;_0x5d2b5f>=0x0;_0x5d2b5f--)(_0x36fd0c=_0x5d35f4[_0x5d2b5f])&&(_0x2868b4=(_0x3b775e?_0x36fd0c(_0x3b6e4e,_0x15c517,_0x2868b4):_0x36fd0c(_0x2868b4))||_0x2868b4);return _0x3b775e&&_0x2868b4&&So(_0x3b6e4e,_0x15c517,_0x2868b4),_0x2868b4;},dt=(_0x2e18ce,_0x3e7d43)=>(_0x413361,_0xf6a2b9)=>_0x3e7d43(_0x413361,_0xf6a2b9,_0x2e18ce);let Qe=class{constructor(_0x9c1906,_0x3b9fd1,_0x208a61){const _0x319b4f=_0xa83ddf;this['_configService']=_0x9c1906,this[_0x319b4f(0x141)]=_0x3b9fd1,this[_0x319b4f(0x472)]=_0x208a61,this[_0x319b4f(0x321)]();}[_0xa83ddf(0x321)](){const _0x3f27a6=_0xa83ddf;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4c4b2d,_0x117f29)=>_0x117f29(_0x4c4b2d)[_0x3f27a6(0x2e5)](_0xf4bbfb(async _0x1d52d9=>{const _0xe5537=_0x3f27a6,_0x5d22aa=_0x1d52d9;if(_0x5d22aa['status']===0x191&&window['confirm'](this[_0xe5537(0x472)]['t'](_0xe5537(0x2d0)))){const _0x28b362=window[_0xe5537(0x32a)](window[_0xe5537(0x140)]['href']);window[_0xe5537(0x140)][_0xe5537(0x3ed)]=this[_0xe5537(0x21c)]()+_0xe5537(0x2d2)+_0x28b362;}return _0x5d22aa;}))});}[_0xa83ddf(0x21c)](){const _0x464bbe=_0xa83ddf;var _0x53abfc;return(_0x53abfc=this[_0x464bbe(0x442)][_0x464bbe(0x436)](Rn))!=null?_0x53abfc:Tn;}};Qe=vo([dt(0x0,_0x5e7a12),dt(0x1,_0x2854bc(_0x3efcab)),dt(0x2,_0x2854bc(_0x501416))],Qe);var Io=Object[_0xa83ddf(0x3b2)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x2c23cb,_0x1d671f,_0x98d216,_0x4c194c)=>{const _0xeadbf=_0xa83ddf;for(var _0x530cc5=_0x4c194c>0x1?void 0x0:_0x4c194c?Eo(_0x1d671f,_0x98d216):_0x1d671f,_0x38b548=_0x2c23cb[_0xeadbf(0x249)]-0x1,_0xea93de;_0x38b548>=0x0;_0x38b548--)(_0xea93de=_0x2c23cb[_0x38b548])&&(_0x530cc5=(_0x4c194c?_0xea93de(_0x1d671f,_0x98d216,_0x530cc5):_0xea93de(_0x530cc5))||_0x530cc5);return _0x4c194c&&_0x530cc5&&Io(_0x1d671f,_0x98d216,_0x530cc5),_0x530cc5;},us=(_0x89d0f6,_0x226e73)=>(_0x5f5564,_0x27e87f)=>_0x226e73(_0x5f5564,_0x27e87f,_0x89d0f6);const bo=_0xa83ddf(0x1f3),Ro='/universer-api/authz';let Pt=class extends _0x54b342{constructor(_0x5c7dd5,_0x48d76b){const _0x1370da=_0xa83ddf;super(),this['_HTTPService']=_0x5c7dd5,this[_0x1370da(0x442)]=_0x48d76b,this['_initMergeInterceptor']();}[_0xa83ddf(0x362)](){const _0x38ddc8=_0xa83ddf,_0x23e083=this;this[_0x38ddc8(0x46f)](this[_0x38ddc8(0x229)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x222d3b({'isMatch'(_0x2af3ca){const _0x54c4d6=_0x38ddc8;var _0x1398f5;if(_0x2af3ca['method']===_0x54c4d6(0x143)&&((_0x1398f5=_0x2af3ca[_0x54c4d6(0x32f)])!=null&&_0x1398f5[_0x54c4d6(0x214)])){const {objectID:_0x23ec9c,objectType:_0x4fb426}=_0x2af3ca[_0x54c4d6(0x32f)]['body']||{};if(!_0x23ec9c||_0x4fb426===void 0x0)return!0x1;const _0x15aa0c=_0x23e083[_0x54c4d6(0x1e4)]()+'/'+_0x4fb426+_0x54c4d6(0x45a)+_0x23ec9c+_0x54c4d6(0x326);if(_0x2af3ca['url']===_0x15aa0c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1d5b7e){var _0x592d3c;return(_0x592d3c=_0x1d5b7e['requestParams'])==null?void 0x0:_0x592d3c['body'];},'mergeParamsToRequest'(_0x2376cc,_0x414071){const _0x1a0bf2=_0x38ddc8,_0x356b9e=_0x23e083[_0x1a0bf2(0x1e4)]()+_0x1a0bf2(0x242),_0x588973=_0x2376cc[_0x1a0bf2(0x2df)]((_0x4037fa,_0x19b101)=>{const _0x42fbac=_0x1a0bf2,{unitID:_0x39d5d7,objectID:_0x566236,objectType:_0x15851a,actions:_0x12b8c2}=_0x19b101;return _0x4037fa[_0x39d5d7]||(_0x4037fa[_0x39d5d7]={}),_0x4037fa[_0x39d5d7][_0x566236]||(_0x4037fa[_0x39d5d7][_0x566236]={'objectID':_0x566236,'objectType':_0x15851a,'actions':[]}),_0x4037fa[_0x39d5d7][_0x566236][_0x42fbac(0x23a)][_0x42fbac(0x14e)](..._0x12b8c2),_0x4037fa;},{}),_0x3fe05e=[];for(const _0x3b86c9 in _0x588973)for(const _0x364216 in _0x588973[_0x3b86c9]){const {actions:_0x25e884,objectType:_0x373fcc}=_0x588973[_0x3b86c9][_0x364216],_0x54efe6=[...new Set(_0x25e884)];_0x3fe05e['push']({'unitID':_0x3b86c9,'objectID':_0x364216,'objectType':_0x373fcc,'actions':_0x54efe6});}return new _0x4f3fd2('POST',_0x356b9e,{'headers':_0x414071[_0x1a0bf2(0x348)],'withCredentials':_0x414071[_0x1a0bf2(0x304)],'responseType':_0x414071[_0x1a0bf2(0x3c6)],'body':{'requests':_0x3fe05e}});}},{'distributeResult'(_0x35202e,_0x53f799){const {objectActions:_0x201820}=_0x35202e;return _0x53f799['map'](_0x2c24bd=>{const _0xc22a88=_0xed79,{unitID:_0x39e649,objectID:_0xf2fa76,actions:_0xf153d2}=_0x2c24bd,_0x2701e2=_0x201820[_0xc22a88(0x31b)](_0x5c6b2d=>_0x5c6b2d[_0xc22a88(0x452)]===_0x39e649&&_0x5c6b2d[_0xc22a88(0x19c)]===_0xf2fa76),_0x302874=_0xf153d2[_0xc22a88(0x423)](_0x24edb8=>_0x2701e2==null?void 0x0:_0x2701e2['actions'][_0xc22a88(0x31b)](_0x2b8145=>_0x2b8145['action']===_0x24edb8))[_0xc22a88(0x19f)](_0x436df0=>!!_0x436df0);return{'config':_0x2c24bd,'result':{'actions':_0x302874,'error':_0x35202e[_0xc22a88(0x44e)]}};});}})}));}[_0xa83ddf(0x1e4)](){const _0x2b15f3=_0xa83ddf;var _0x55919d;return(_0x55919d=this['_configService'][_0x2b15f3(0x436)](bo))!=null?_0x55919d:Ro;}async['create'](_0x58c527){const _0x577dcf=_0xa83ddf,_0x4efe42=this[_0x577dcf(0x1e4)]()+'/'+_0x58c527[_0x577dcf(0x312)]+_0x577dcf(0x26b);return(await this[_0x577dcf(0x229)][_0x577dcf(0x195)](_0x4efe42,{'body':_0x58c527}))['body'][_0x577dcf(0x19c)]||'';}async[_0xa83ddf(0x3d5)](_0x5776c6){const _0x4b27a6=_0xa83ddf,_0x45ed4c=this[_0x4b27a6(0x1e4)]()+_0x4b27a6(0x479);return(await this[_0x4b27a6(0x229)][_0x4b27a6(0x195)](_0x45ed4c,{'body':_0x5776c6}))['body'][_0x4b27a6(0x351)];}async[_0xa83ddf(0x1eb)](_0x11ba76){const _0x1425dd=_0xa83ddf,_0x5e30e7=this[_0x1425dd(0x1e4)]()+'/'+_0x11ba76[_0x1425dd(0x312)]+_0x1425dd(0x45a)+_0x11ba76[_0x1425dd(0x19c)];await this[_0x1425dd(0x229)][_0x1425dd(0x391)](_0x5e30e7,{'body':_0x11ba76});}async[_0xa83ddf(0x1d2)](_0x474b1f){const _0x2b1cc5=_0xa83ddf,_0xe47c79=this['_getAPIPrefixPath']()+'/'+_0x474b1f[_0x2b1cc5(0x312)]+_0x2b1cc5(0x45a)+_0x474b1f[_0x2b1cc5(0x19c)]+_0x2b1cc5(0x326);return(await this[_0x2b1cc5(0x229)][_0x2b1cc5(0x195)](_0xe47c79,{'body':_0x474b1f}))[_0x2b1cc5(0x214)]['actions'];}async[_0xa83ddf(0x1b4)](_0x55e8ed){const _0x2d6ab2=_0xa83ddf,_0x17ab00=this[_0x2d6ab2(0x1e4)]()+'/-/object/-/batch_allowed';return(await this[_0x2d6ab2(0x229)][_0x2d6ab2(0x195)](_0x17ab00,{'body':{'requests':_0x55e8ed}}))[_0x2d6ab2(0x214)][_0x2d6ab2(0x39c)];}async[_0xa83ddf(0x455)](_0x45157f){const _0x158a47=_0xa83ddf,_0x43815e=this['_getAPIPrefixPath']()+'/'+_0x45157f[_0x158a47(0x312)]+'/role',_0x108beb=await this[_0x158a47(0x229)]['post'](_0x43815e,{'body':_0x45157f});return{'roles':_0x108beb[_0x158a47(0x214)]['roles'],'actions':_0x108beb[_0x158a47(0x214)][_0x158a47(0x23a)]};}async[_0xa83ddf(0x329)](_0x2672e2){const _0x575415=_0xa83ddf,_0x43e03a=this[_0x575415(0x1e4)]()+_0x575415(0x20d);await this['_HTTPService'][_0x575415(0x29c)](_0x43e03a,{'params':{'collaboratorID':_0x2672e2[_0x575415(0x2f1)],'objectID':_0x2672e2['objectID'],'unitID':_0x2672e2[_0x575415(0x452)]}});}async[_0xa83ddf(0x3fc)](_0x5892a4){const _0x56fb03=_0xa83ddf,_0x1a207b=this[_0x56fb03(0x1e4)]()+_0x56fb03(0x20d);await this['_HTTPService'][_0x56fb03(0x3ce)](_0x1a207b,{'body':_0x5892a4});}async[_0xa83ddf(0x189)](_0x1867dd){const _0x1d12bf=_0xa83ddf,_0x605e8c=this['_getAPIPrefixPath']()+_0x1d12bf(0x20d);await this['_HTTPService']['post'](_0x605e8c,{'body':_0x1867dd});}async['listCollaborators'](_0x3da8e2){const _0x394a67=_0xa83ddf,_0x3d9abe=this[_0x394a67(0x1e4)]()+_0x394a67(0x20d);return(await this[_0x394a67(0x229)][_0x394a67(0x441)](_0x3d9abe,{'params':{'objectID':_0x3da8e2[_0x394a67(0x19c)],'unitID':_0x3da8e2['unitID']}}))[_0x394a67(0x214)][_0x394a67(0x40f)];}async['putCollaborators'](_0x5a822c){const _0x2e704f=_0xa83ddf,_0x57daf6=this[_0x2e704f(0x1e4)]()+_0x2e704f(0x20d);await this[_0x2e704f(0x229)]['put'](_0x57daf6,{'body':_0x5a822c});}};Pt=Co([us(0x0,_0x2854bc(_0x3efcab)),us(0x1,_0x2854bc(_0x5e7a12))],Pt);var To=Object[_0xa83ddf(0x3b2)],Oo=Object[_0xa83ddf(0x190)],Do=(_0xd596a2,_0x26437c,_0x5175b3,_0xed8e39)=>{const _0x484775=_0xa83ddf;for(var _0x5067be=_0xed8e39>0x1?void 0x0:_0xed8e39?Oo(_0x26437c,_0x5175b3):_0x26437c,_0x4d11eb=_0xd596a2[_0x484775(0x249)]-0x1,_0x38c4cb;_0x4d11eb>=0x0;_0x4d11eb--)(_0x38c4cb=_0xd596a2[_0x4d11eb])&&(_0x5067be=(_0xed8e39?_0x38c4cb(_0x26437c,_0x5175b3,_0x5067be):_0x38c4cb(_0x5067be))||_0x5067be);return _0xed8e39&&_0x5067be&&To(_0x26437c,_0x5175b3,_0x5067be),_0x5067be;},mt=(_0xb6cc8d,_0x3b9b24)=>(_0x4fdeed,_0xd62d3e)=>_0x3b9b24(_0x4fdeed,_0xd62d3e,_0xb6cc8d);const Po=[_0xa83ddf(0x1ce),_0xa83ddf(0x3ad),'image/jpg',_0xa83ddf(0x444),_0xa83ddf(0x1b9)],wo=0x5*0x400*0x400,No=_0xa83ddf(0x33c),Mo=_0xa83ddf(0x199),Ao=_0xa83ddf(0x1e3),Uo=_0xa83ddf(0x268);let wt=class{constructor(_0x4691c0,_0x2319b6,_0x194fbf){const _0x3df184=_0xa83ddf;_(this,_0x3df184(0x235),0x0),_(this,_0x3df184(0x272),new _0x27d684()),_(this,_0x3df184(0x439),this[_0x3df184(0x272)]),_(this,_0x3df184(0x184),new Map()),(this[_0x3df184(0x141)]=_0x4691c0,this[_0x3df184(0x442)]=_0x2319b6,this[_0x3df184(0x44a)]=_0x194fbf);}['setWaitCount'](_0x384595){const _0x4fdff7=_0xa83ddf;this[_0x4fdff7(0x235)]=_0x384595,this['_change$'][_0x4fdff7(0x311)](_0x384595);}[_0xa83ddf(0x2fa)](_0x5e7c5e,_0x3efd7e){const _0x1abbfe=_0xa83ddf;if(_0x3efd7e===_0x10d13d[_0x1abbfe(0x243)]){const _0x5af7e9=new Image();return _0x5af7e9[_0x1abbfe(0x3b5)]=_0x5e7c5e,_0x5af7e9;}return this[_0x1abbfe(0x184)][_0x1abbfe(0x441)](_0x5e7c5e);}[_0xa83ddf(0x255)](_0x5911ba,_0x17950b,_0x5b6b9b){const _0xad980c=_0xa83ddf;_0x17950b===_0x10d13d[_0xad980c(0x243)]||_0x5b6b9b==null||this['_imageSourceCache'][_0xad980c(0x3fb)](_0x5911ba,_0x5b6b9b);}async[_0xa83ddf(0x26a)](_0x1716b5){const _0x3e2804=_0xa83ddf;try{const _0x4845eb=this['_replaceFileID'](this[_0x3e2804(0x358)](),''+_0x1716b5),_0x3f958c=(await this[_0x3e2804(0x141)][_0x3e2804(0x441)](_0x4845eb))[_0x3e2804(0x214)];return _0x3f958c[_0x3e2804(0x44e)]&&_0x3f958c[_0x3e2804(0x44e)][_0x3e2804(0x3ee)]===Ps['OK']?Promise[_0x3e2804(0x405)](_0x3f958c['url']):Promise[_0x3e2804(0x168)](_0x3f958c[_0x3e2804(0x44e)]);}catch(_0x3298bb){return Promise[_0x3e2804(0x168)](_0x3298bb);}}async[_0xa83ddf(0x446)](_0x58a87){const _0x6daf35=_0xa83ddf;let _0x1f76c6='';if(!Po[_0x6daf35(0x173)](_0x58a87[_0x6daf35(0x2f9)]))return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1[_0x6daf35(0x333)]));if(_0x58a87[_0x6daf35(0x41b)]>wo)return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1['ERROR_EXCEED_SIZE']));try{const _0xb4aa6a=new FormData();_0xb4aa6a['append'](_0x6daf35(0x17c),_0x58a87);const _0x243787=this['_univerInstanceService'][_0x6daf35(0x3fd)](),_0x34ca04=_0x243787==null?void 0x0:_0x243787[_0x6daf35(0x27a)]();if(!_0x34ca04)throw new Error('unitId\x20is\x20not\x20found');const _0x1c7e81=this[_0x6daf35(0x2be)]()+_0x6daf35(0x406)+_0x58a87[_0x6daf35(0x41b)][_0x6daf35(0x3af)]()+'&source='+ws[_0x6daf35(0x460)]+_0x6daf35(0x3a9)+encodeURIComponent(_0x34ca04),_0x4a7fff=await(await fetch(_0x1c7e81,{'method':_0x6daf35(0x143),'body':_0xb4aa6a}))[_0x6daf35(0x3cb)]();if(typeof _0x4a7fff[_0x6daf35(0x40a)]!=_0x6daf35(0x240))return this[_0x6daf35(0x40e)](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1[_0x6daf35(0x327)]));_0x1f76c6=_0x4a7fff[_0x6daf35(0x40a)];}catch{return this['_decreaseWaiting'](),Promise[_0x6daf35(0x168)](new Error(_0x1f46e1['ERROR_IMAGE']));}return new Promise((_0x53b69c,_0x39520d)=>{const _0x590ec7=_0x6daf35,_0xee3d7a=new FileReader();_0xee3d7a['readAsDataURL'](_0x58a87),_0xee3d7a[_0x590ec7(0x305)]=_0x481797=>{const _0xeca859=_0x590ec7;var _0xc4f955;const _0x577bc3=(_0xc4f955=_0x481797[_0xeca859(0x1e0)])==null?void 0x0:_0xc4f955['result'];if(_0x577bc3==null){this[_0xeca859(0x40e)](),_0x39520d(new Error(_0x1f46e1['ERROR_IMAGE']));return;}const _0x3199ec=_0x146730[_0xeca859(0x447)](0x6);_0x53b69c({'imageId':_0x3199ec,'imageSourceType':_0x10d13d['UUID'],'source':_0x1f76c6,'base64Cache':_0x577bc3,'status':_0x1f46e1['SUCCUSS']}),this[_0xeca859(0x40e)]();};});}[_0xa83ddf(0x2be)](){const _0x3eccd2=_0xa83ddf;var _0x47b780;return(_0x47b780=this[_0x3eccd2(0x442)]['getConfig'](No))!=null?_0x47b780:Mo;}[_0xa83ddf(0x358)](){const _0x2fedfc=_0xa83ddf;var _0x42d2c3;return(_0x42d2c3=this[_0x2fedfc(0x442)][_0x2fedfc(0x436)](Ao))!=null?_0x42d2c3:Uo;}[_0xa83ddf(0x3a6)](_0x4a1b90,_0xa61f80){const _0x2bf360=_0xa83ddf;return _0x4a1b90[_0x2bf360(0x322)](_0x2bf360(0x38c),_0xa61f80);}['_decreaseWaiting'](){const _0x57cb8f=_0xa83ddf;this[_0x57cb8f(0x235)]-=0x1,this[_0x57cb8f(0x272)][_0x57cb8f(0x311)](this[_0x57cb8f(0x235)]);}};wt=Do([mt(0x0,_0x2854bc(_0x3efcab)),mt(0x1,_0x5e7a12),mt(0x2,_0x2854bc(_0x1b1ada))],wt);var yo=Object[_0xa83ddf(0x3b2)],Lo=Object[_0xa83ddf(0x190)],$o=(_0x342955,_0x58b163,_0x30c31a,_0x1fdf95)=>{const _0x313fdb=_0xa83ddf;for(var _0xd88495=_0x1fdf95>0x1?void 0x0:_0x1fdf95?Lo(_0x58b163,_0x30c31a):_0x58b163,_0x39be45=_0x342955[_0x313fdb(0x249)]-0x1,_0xe051f1;_0x39be45>=0x0;_0x39be45--)(_0xe051f1=_0x342955[_0x39be45])&&(_0xd88495=(_0x1fdf95?_0xe051f1(_0x58b163,_0x30c31a,_0xd88495):_0xe051f1(_0xd88495))||_0xd88495);return _0x1fdf95&&_0xd88495&&yo(_0x58b163,_0x30c31a,_0xd88495),_0xd88495;},Ne=(_0x280e9d,_0x1b5443)=>(_0x44a151,_0x4fbc1f)=>_0x1b5443(_0x44a151,_0x4fbc1f,_0x280e9d);let We=class extends _0x26114b{constructor(_0x2bf137,_0x4a5bd6,_0xeed18e,_0x2a0375,_0x327d11){const _0xadf093=_0xa83ddf;super(),this[_0xadf093(0x1ef)]=_0x2bf137,this[_0xadf093(0x44a)]=_0x4a5bd6,this[_0xadf093(0x47d)]=_0xeed18e,this[_0xadf093(0x32e)]=_0x2a0375,this[_0xadf093(0x46b)]=_0x327d11,this[_0xadf093(0x22e)](),this[_0xadf093(0x45e)]();}['_initCloseConn'](){const _0x41fc9b=_0xa83ddf,_0x47ec24=async _0x3907a1=>{const _0x4a54d2=_0xed79;(await this[_0x4a54d2(0x32e)][_0x4a54d2(0x2d1)](_0x3907a1))[_0x4a54d2(0x1c6)][_0x4a54d2(0x2e5)](_0x4393c3(_0x5f55e7=>_0x5f55e7['eventID']===_0x4e62f0[_0x4a54d2(0x355)]),_0x15cb3a(this[_0x4a54d2(0x22b)]))[_0x4a54d2(0x222)](_0x2b92b8=>{const _0x37ec8b=_0x4a54d2,_0x28e151=_0x2b92b8,{reason:_0x10542e}=_0x28e151[_0x37ec8b(0x2cf)];this[_0x37ec8b(0x1ef)]['get'](_0x192174)['show']({'type':_0x403ffc[_0x37ec8b(0x1e5)],'content':this['_localeService']['t'](_0x37ec8b(0x3fe))+'('+_0x10542e+')'}),this[_0x37ec8b(0x47d)][_0x37ec8b(0x2c4)](new _0x2efdca(_0x3907a1)['id'],!0x1),this[_0x37ec8b(0x32e)][_0x37ec8b(0x1e9)](_0x3907a1);});};_0x19b764(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x54437b[_0x41fc9b(0x2ac)]),this[_0x41fc9b(0x44a)][_0x41fc9b(0x388)](_0x54437b['UNIVER_DOC']))[_0x41fc9b(0x2e5)](_0x255c5b(_0x14475e=>_0x14475e[_0x41fc9b(0x27a)]()),_0x4393c3(_0x305f83=>!_0xc1669d(_0x305f83)),_0x15cb3a(this['dispose$']))['subscribe'](_0x4802aa=>{_0x47ec24(_0x4802aa);});}['_initUnitPermissionChange'](){const _0x4c08a2=_0xa83ddf,_0x13ac3c=async _0x136435=>{const _0x16fac4=_0xed79;(await this[_0x16fac4(0x32e)][_0x16fac4(0x2d1)](_0x136435))['event$'][_0x16fac4(0x2e5)](_0x4393c3(_0x1322a4=>_0x1322a4[_0x16fac4(0x217)]===_0x4e62f0[_0x16fac4(0x223)]),_0x15cb3a(this[_0x16fac4(0x22b)]))[_0x16fac4(0x222)](_0x386359=>{const _0x206160=_0x16fac4,_0x31c21b=_0x386359,{objectId:_0x137466}=_0x31c21b['data'],_0x1a7417=this[_0x206160(0x1ef)]['get'](_0x174f49);_0x137466===_0x136435?_0x1a7417[_0x206160(0x3cc)](_0x136435):_0x1a7417[_0x206160(0x1b1)](_0x136435,_0x137466);});};_0x19b764(this[_0x4c08a2(0x44a)][_0x4c08a2(0x388)](_0x54437b[_0x4c08a2(0x2ac)]),this[_0x4c08a2(0x44a)]['getTypeOfUnitAdded$'](_0x54437b[_0x4c08a2(0x1f2)]))['pipe'](_0x255c5b(_0x3f0366=>_0x3f0366[_0x4c08a2(0x27a)]()),_0x4393c3(_0x51d9b0=>!_0xc1669d(_0x51d9b0)),_0x15cb3a(this[_0x4c08a2(0x22b)]))[_0x4c08a2(0x222)](_0x424b89=>{_0x13ac3c(_0x424b89);});}};We=$o([_0x3b619c(_0x13d562[_0xa83ddf(0x181)],We),Ne(0x0,_0x2854bc(_0x28aed1)),Ne(0x1,_0x1b1ada),Ne(0x2,_0x524b2d),Ne(0x3,_0x2854bc(pe)),Ne(0x4,_0x2854bc(_0x501416))],We);var ks=Object[_0xa83ddf(0x3b2)],jo=Object['getOwnPropertyDescriptor'],xo=(_0x292b46,_0x45432d,_0x3d39bc)=>_0x45432d in _0x292b46?ks(_0x292b46,_0x45432d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d39bc}):_0x292b46[_0x45432d]=_0x3d39bc,Ho=(_0x101f15,_0x22691d,_0x50985a,_0x2efd0f)=>{const _0x284763=_0xa83ddf;for(var _0x31a66f=_0x2efd0f>0x1?void 0x0:_0x2efd0f?jo(_0x22691d,_0x50985a):_0x22691d,_0x5f0dda=_0x101f15[_0x284763(0x249)]-0x1,_0x3972c5;_0x5f0dda>=0x0;_0x5f0dda--)(_0x3972c5=_0x101f15[_0x5f0dda])&&(_0x31a66f=(_0x2efd0f?_0x3972c5(_0x22691d,_0x50985a,_0x31a66f):_0x3972c5(_0x31a66f))||_0x31a66f);return _0x2efd0f&&_0x31a66f&&ks(_0x22691d,_0x50985a,_0x31a66f),_0x31a66f;},ft=(_0xffbed9,_0xf37317)=>(_0x159138,_0x334764)=>_0xf37317(_0x159138,_0x334764,_0xffbed9),ko=(_0x5256da,_0x1398ec,_0x9c1983)=>xo(_0x5256da,_0x1398ec+'',_0x9c1983);const Vo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Nt=class extends _0x5791fb{constructor(_0x1ca118,_0x119428,_0x1f746a,_0x59e720){const _0xe7c9d1=_0xa83ddf;super(),this[_0xe7c9d1(0x349)]=_0x1ca118,this[_0xe7c9d1(0x33d)]=_0x119428,this[_0xe7c9d1(0x438)]=_0x1f746a,this[_0xe7c9d1(0x1ef)]=_0x59e720;}[_0xa83ddf(0x343)](){this['_registerDependencies']();}[_0xa83ddf(0x403)](){const _0x167e25=_0xa83ddf;this[_0x167e25(0x2ab)]();}[_0xa83ddf(0x29a)](){const _0xd08a46=_0xa83ddf;var _0x32b529,_0x58342b,_0x516779,_0x369786;this[_0xd08a46(0x1ef)][_0xd08a46(0x437)](_0x1e8ca5)&&this[_0xd08a46(0x33d)][_0xd08a46(0x44e)](_0xd08a46(0x285),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3ca1ee=[[_0x1e8ca5,{'useClass':Dt}],[pe],[Ht],[_0x3efcab],[Hs,{'useClass':ao}],[ne],[D],[_0x4a0f72],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0x58342b=(_0x32b529=this[_0xd08a46(0x349)])==null?void 0x0:_0x32b529[_0xd08a46(0x458)])!=null?_0x58342b:vt}],[_0x54f7a8,{'useClass':_0x50ec1f}],[_0x5c5b29,{'useClass':Ot}],[_0x382e20,{'useClass':Pt}],[_0x3a43a5,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x516779=this['_config'])!=null&&_0x516779['enableSingleActiveInstanceLock']&&_0x3ca1ee[_0xd08a46(0x14e)]([tt,{'useClass':Vn}]),_0x3ca1ee=_0x5c52e3(_0x3ca1ee,(_0x369786=this['_config'])==null?void 0x0:_0x369786[_0xd08a46(0x412)]),_0x3ca1ee['forEach'](_0x34a00c=>this[_0xd08a46(0x1ef)]['add'](_0x34a00c)),this[_0xd08a46(0x41c)]();}[_0xa83ddf(0x2ab)](){const _0x176201=_0xa83ddf;this[_0x176201(0x46f)](this[_0x176201(0x438)]['registerRenderModule'](_0x54437b['UNIVER_DOC'],[Fe])),this[_0x176201(0x46f)](this[_0x176201(0x438)][_0x176201(0x1be)](_0x54437b['UNIVER_SHEET'],[Tt]));}[_0xa83ddf(0x41c)](){const _0x460ce2=_0xa83ddf;var _0x51c9a6,_0x2d4e20;this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](_0x3efcab)[_0x460ce2(0x3a1)]({'priority':0x14,'interceptor':_0xcec304({'maxParallel':0x6})}),(_0x51c9a6=this[_0x460ce2(0x349)])!=null&&_0x51c9a6[_0x460ce2(0x19a)]||this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](D)[_0x460ce2(0x301)](),(_0x2d4e20=this[_0x460ce2(0x349)])!=null&&_0x2d4e20[_0x460ce2(0x35e)]&&this[_0x460ce2(0x1ef)][_0x460ce2(0x441)](Qe);}};ko(Nt,_0xa83ddf(0x3bb),Vo),Nt=Ho([_0x3f4163(_0x1e27ff),ft(0x1,_0x31880b),ft(0x2,_0x12e84d),ft(0x3,_0x2854bc(_0x28aed1))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};
|
1
|
+
const _0x87081d=_0x1fa5;(function(_0x47026a,_0x2fa4e1){const _0x29188b=_0x1fa5,_0x58f3ab=_0x47026a();while(!![]){try{const _0xb09fe6=-parseInt(_0x29188b(0x29a))/0x1*(-parseInt(_0x29188b(0x336))/0x2)+parseInt(_0x29188b(0x34e))/0x3*(parseInt(_0x29188b(0x3a3))/0x4)+-parseInt(_0x29188b(0x467))/0x5*(parseInt(_0x29188b(0x287))/0x6)+parseInt(_0x29188b(0x413))/0x7*(-parseInt(_0x29188b(0x3d0))/0x8)+parseInt(_0x29188b(0x4d2))/0x9+-parseInt(_0x29188b(0x33d))/0xa+parseInt(_0x29188b(0x495))/0xb;if(_0xb09fe6===_0x2fa4e1)break;else _0x58f3ab['push'](_0x58f3ab['shift']());}catch(_0x427a9a){_0x58f3ab['push'](_0x58f3ab['shift']());}}}(_0x9ef4,0xc28e3));var Ys=Object['defineProperty'],Ks=(_0x1b3f2a,_0x1d18f6,_0x14c65b)=>_0x1d18f6 in _0x1b3f2a?Ys(_0x1b3f2a,_0x1d18f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c65b}):_0x1b3f2a[_0x1d18f6]=_0x14c65b,_=(_0x205f17,_0x37f84f,_0x414abf)=>Ks(_0x205f17,typeof _0x37f84f!=_0x87081d(0x38e)?_0x37f84f+'':_0x37f84f,_0x414abf);import{Disposable as _0x1ee863,toDisposable as _0x3b697b,UniverInstanceType as _0x5a714d,Inject as _0x1b956a,UserManagerService as _0x17e09a,IUniverInstanceService as _0x1d5396,createIdentifier as _0x1b08c0,DisposableCollection as _0x173e9c,IConfigService as _0x5d255f,ILogService as _0x82a609,RxDisposable as _0x53ce5a,LocaleService as _0x2db4b8,Injector as _0x4bf6fc,ILocalStorageService as _0x4b5ce8,Tools as _0x1540f0,ICommandService as _0x15992c,JSONX as _0x4266b8,CommandType as _0xc9d637,IPermissionService as _0x5543f8,IUndoRedoService as _0x22132f,sequenceExecute as _0x2a22c6,OnLifecycle as _0x76d0ae,LifecycleStages as _0x28e3b0,Optional as _0x4b698d,Rectangle as _0x1ec52a,ThemeService as _0x4a7906,useDependency as _0x178612,connectInjector as _0x5458e2,Workbook as _0x4ae2cc,LocalUndoRedoService as _0x54179a,IContextService as _0x492a6b,COLORS as _0x5212b1,ColorKit as _0x5c6173,fromEventSubject as _0x240261,isInternalEditorID as _0x387ac1,Plugin as _0x153d86,IAuthzIoService as _0x2d6512,mergeOverrideWithDependencies as _0x5a0091,DependentOn as _0x425aa7}from'@univerjs/core';import{SheetsSelectionsService as _0x5973ef,SetSelectionsOperation as _0x2ce045,InsertSheetMutation as _0x171b5c,EmptyMutation as _0x53ecf2,WorkbookEditablePermission as _0x372984,RefRangeService as _0x2d0dd9,EffectRefRangId as _0x5a0c0b,handleIRemoveRow as _0x39a961,handleIRemoveCol as _0xf02d80,handleMoveRange as _0x3504f5,handleInsertRow as _0x2d43e9,handleInsertRangeMoveRight as _0x320b17,handleInsertRangeMoveDown as _0x5e73fe,handleInsertCol as _0x1d6b1e,handleDeleteRangeMoveUp as _0x3ada4b,handleDeleteRangeMoveLeft as _0x35f3b3,runRefRangeMutations as _0x30e48b,SetWorksheetActivateCommand as _0x53a25c}from'@univerjs/sheets';import{MessageType as _0x4dda16}from'@univerjs/design';import{IBeforeCloseService as _0x276384,IMessageService as _0x14fd53,INotificationService as _0x11083e,useObservable as _0x1e1781,BuiltInUIPart as _0x41f3dc,IUIPartsService as _0x1ccd4c}from'@univerjs/ui';function _0x9ef4(){const _0x2468a3=['[SyncedState]:\x20received\x20acknowledgement.','ALREADY_EXISTS','subUnitId','_checkMissing','USERS_ENTER','/rev/','show','_transformPreviousActiveRange','hide','119OeAuFe','members','onRendered','NEW_CHANGESETS','evenodd','/unit/','pending','_updateCollabCursors','socketService','_updateState','children','mutations','SUCCUSS','currentSkeleton$','filter','submit\x20changeset\x20error!','_redoStacks','JOINING','_state','/allowed','createInstance','params','&assign=','enableAuthServer','collaboration-client.offline-data-not-saved','[CollaborationUndoRedoService]','[SyncedState]:\x20received\x20rejection.','[CollaborationEntity]','_collabCursorState$','_themeService','UNKNOWN_CODE','_removeRoom','onSyncEditingCollabCursor','removeMember','allowed','_color','_event$','_userManagerService','JOIN','_queuedRemoteChangesets','transformMutationsWithChangeset','getImage','HEARTBEAT_TIMEOUT','makeDirty','_renderManagerService','_injector','awaiting','[OfflineState]:\x20received\x20acknowledgement.','socket\x20open.','setWaitCount','_executeRemoteChangeset','M0\x200H16V16H0z','addImageSourceCache','_socketReady','m1Prime','icon','COLLAB_WEB_SOCKET_URL','pauseCollaboration','_urlService','pushState','_sendingTimer','close$','INGEST','LIVESHARE_FETCH_OPERATIONS','getDocRanges','toString','/-/object/-/batch_allowed','joinEvent','_hideTimer','_incrementRevisionNumber','getItem','_localeService','getTime','_shapes','getCellPositionByOffset','Unknown\x20user','location','_beforeCloseService','src','loadDoc','_getSendChangesetTimeout','rev','_scheduleHeartbeat','_onCursorDelete','30JcppEW','offline','_clearScheduledTask','length','_selfUnitIDs','red300','_undoRedoService','_createHandler','_sendHeartbeatTimer','_unitStatus','UNIVER_SHEET','OTHER_CLIENTS_EDITING','image/jpg','interceptor','catch','editing\x20status\x20changed\x20to','_onCombEvent','_onUserJoin','substring','[CollaborationSession]','onTransformChange$','type','_setupBeforeClosingHandler','RemoveRowCommandId','transformMutation','put','liveShareNewHost','csAckEvent','unitId\x20is\x20not\x20found','_textBubble','_context','height','Starting','assignAColorForMemberID','_state$','setInterval','awaitingChangeset','_cursorShapes','_getUndoStack','_notificationService','_cursorInfo$','_localStorageService','_roomMembers','getResourcesRequest','saveChangeset','_assignedColors','12327601ksGrbi','_snapshotServerService','withCredentials','setCurrentUser','headers','current','_getRedoStack','NOT_COLLAB','_anchor','ranges','_getAPIPrefix','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_registerDependencies','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','editingUnit','_getUploadFileURL','_http','_registerRenderDependencies','currentColor','cursorInfo','_lastPointer','_onCursorUpdate','startsWith','tag','/collaborator','CHANGESET_REJ','set','univer-pro.collaboration-client-socket-service','_onRecvEvent','closeSession','_socket$','black','_httpService','cmd','0\x200\x2017\x2016','_collabCursorController','prototype','Error\x20on\x20receiving\x20event','collab-rect-range-','_retryConnectingTimer','_onMessage','attrs','path','NO_OTHER_CLIENTS_EDITING','{fileID}','_docTransformSelectionsService','[UniverCollaborationClientPlugin]','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','idSuffix','[CollaborationSessionService]:\x20socket\x20error','gold400','synced','sheets','_getSaveTimeout','/resources','measureText','isPermissionRej','_hover','moveTo','top','onlyLocal','6566697tSVliI','_transformStack','UUID','debug','xlink:href','_labelPosition','LIVESHARE_TERMINATE','encode','/role','_schedule','toggleOffline','onStateChange','_startDocCollabCursor','_initMergeInterceptor','[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.','_onLocalMutation','_submitChangeset','_status$','SUBMIT_CHANGESET','body','getCurrentUnitForType','getFocusedUnit','roomMembers','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','MUTATION','_disableEditing','drawWith','focused$','_updateSubUnitFromURLParams','createSocket','actions','onMouseMove','csRejEvent','image/gif','on-line-single_clip0_910_349','history','_collaborationSessionService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onSendChangeset','_revisionService','_name','list','_init','next','[PendingState]:\x20received\x20rejection.','Error','onPointerEnter$','_initStatusListener','column','getCollabEntity$','onlineStatusTitle','APPLY_REVISION_CONFILICT','LICENSE_MAX_UNITS_EXCEEDED','onlineStatus','code','UnitSnapshot','_getAPIPrefixPath','split','push','random','_collabSessionService','getMember','_transformRemoteChangesetByIMECache','_localCacheService','transformSelections','initWorkbookPermissionChange','USERS_LEAVE','_members','getUnitId','clipPath','session','ACTIVE_UNIT_EVENT_CHANNEL','_waitCount','fillStyle','_createInitialState','url','POST','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','message$','_socketMessageSubscription','UNIVER_DOC','_document','createElement','getUniverSheetInstance','/universer-api/file/{fileID}/sign-url','CONNECTOR_DATA_TOO_LARGE','SEND_CHANGESET_TIMEOUT','forEach','_initCloseConn','setAlpha','_toggleOnline','width','setUndoRedoMutationParamsCache','userID','function','_showConflictNotification','_docStateChangeManagerService','UNIVER_SLIDE','_anchorDot','_permissionService','_commentService','saveSheetBlock','collab-text-anchor-','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','loadOfflineData','fillText','not_collab','triggerDblclick','updatePermissionPoint','COMMENT_UPDATE','commentUpdateEvent','text','_clearLocalCache','_retryCount','SYNCED','_substituteUndoStack','_collaborationController','TOO_MANY_REQUESTS','OffLineSingle','collaboration.single-unit.warning','get','responseType','_cursors','reduce','InsertRangeMoveRightCommandId','updateMember','_getScale','blue400','bottom','transformUndoRedo','resourceIDs','_transformSelections','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','getParam','_getSheetObject','_syncEditingCollabCursor','_sheetTransformSelectionsService','createCollaborator','_backgroundColor','from','onTransformRemoteChangesetByIMECache','_getSnapshotAPIPrefix','socket\x20close','collabStatus.offline','UNDEFINED','string','_docTransformIMECacheService','permission.title','Steady','colorChannel1','getActiveRange','_lockTransition','FAIL','_sessionStatus$','unitId','UPDATE_PERMISSION_OBJ','textRanges','dispose$','_sheetSkeletonManagerService','backgroundColor','setParam','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','MSG_FOR_ERROR','storage','HttpExport','requestParams','getVpScrollXYInfoByPosToVp','exhaustSavingTask','UniverIcon','saveImage','_updateLocalCache','IDLE','key','_sessions','json','_session','FETCH_MISSING','enableLocalCache','getTypeOfUnitDisposed$','executeCommand','asObservable','verdancy600','indexOf','purple300','listCollaborators','HELLO','collabStatus.synced','[OfflineState]:\x20received\x20changeset.','_getMergeRange','saveSnapshot','selections','_clearCollaborationTimeoutTimer','_onRefRangeChange','Univer','_docSyncEditingCollabCursorService','map','_exhaustRemoteChangesetQueue','AWAITING_WITH_PENDING','_handleEvent','addObject','whenReady','updateOfflineData','getCollabCursors$','dispose','NOT_FOUND','_clearOtherTimers','close','use','getMemberID','collabCursorState$','_messageService','UNKNOWN_CMD','isEditing','clearTimeout','values','_commandService','LICENSE_EXPORT_SIZE_EXCEEDED','unknown','&to=','skeleton','registerRefRange','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getSheetBlock','_initUnitPermissionChange','encodeURIComponent','_configService','send','max','fromCollab','onRemoteRej','getUnhiddenWorksheets','_colorAssignService','CHANGESET_ACK','hovered','FileId','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_eventUnsubscribe','size','DeleteRangeMoveUpCommandId','COMPLETION_FINISHED','conflict.content','_tryEnsureSocket','getMergeData','_colorIndex','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','PERMISSION_DENIED','save','_rescheduleHeartbeatEvent','update','_HTTPService','_initResize','_clearTimeoutTimer','_docSkeletonManagerService','complete','fetchMissingChangesets','YUUMI_RATE_OVER_LIMIT','_isPermissionRej','Undefined','collab-text-range-','engine','getValue','syncEditingCollabCursor','_uiPartsService','/universer-api/snapshot','onTransformSelections','_setupSubUnitSync','_change$','getCurrentRevForDocument','searchParams','getWorkbookSelections','open$','displayName','_compressMutationService','OnLineSingle','_scheduleClearOtherTimer','getCollabEntity','on-line-single','session.connection-failed','483108ZOhfOo','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','error','sheetId','collaboration.closeRoom','_socketService','/universer-api/comb','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ONLINE','_transformService','clear','_clearRedo','_scheduleReconnection','urlChange$','color','\x20to\x20','_getSignURL','fetchThroughInterceptors','_transformUndoRedoStack','1163649kqLdBA','_docSkeleton','fill','registerComponent','flatMap','replaceTextRanges','doc.mutation.rich-text-editing','SNAPSHOT_HAS_BEEN_REMOVED','_initCommandExecutedListener','error$','_initModules','_onUserLeave','url(#$1','listRoles','unsubscribe','_render','_applyRemoteChangeset','YUUMI_UNABLE_LOAD_URL','add','_unitID','_refreshCollabCursors','_scheduleSaving','_decreaseWaiting','generateRandomId','UNIVER_PROJECT','setActiveRange','_onJoinRoomEvent','baseRev','\x20in\x20_schedule.','getViewport','DeleteRangeMoveLeftCommandId','[DataLoaderController]','HEADER_MENU','_univerInstanceService','_handleJoinEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_cursor','memberID','_drawTextRange','LIVESHARE_OPERATION','session.will-retry','clearInterval','OFFLINE','save\x20fail\x20reason\x20is\x20','getTypeOfUnitAdded$','_config','_getCtorByUniverType','propertyIsEnumerable','_drawAnchor','getCurrent','_commentUpdate$','newCsEvent','call','deepClone','infoRsp','LIVESHARE_REQUEST_HOST','url(#off-line-single_clip0_910_343)','HttpImport','isArray','sessionStatus','getSkeleton','state$','patch','trim','state','onRemoteAck','_handleHover','toRgbString','contains','jiqing500','_saveTaskMap','deleteCollaborator','getOffsetConfig','cursorInfo$','stringify','_memberService','_transitionLocked','endRow','_range','labelPosition','selection','getUnitType','_acknowledgedAwaitingChangeset','addEventListener','_updateStatus','_initStatusComponent','range','transformChangesets','fillRule','restore','compose','sessionStatus$','sheetID','fetching\x20missing\x20changesets\x20from\x20','collabStatus.syncing','auth.needGotoLoginAlert','DEFAULT_FILE_NAME','getSheetId','defIds','assign','_onConflict','_loadDoc','_substituteRedoStack','UNAUTHENTICATED','_ensureSubject','_onRemoteACK','_socket','incrementRevForDocument','_joinRoom','registerOnClose','includes','_replayCachedMutations','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_syncEditingCollabCursorService','objectType','LIVESHARE_NEW_HOST','YUUMI_URL_COL_OUT_OF_RANGE','init','_drawRectRange','unit','disableLocalCache','getOwnPropertyDescriptor','conflict.title','requireSession','_disabled','defineProperty','UNIVER_UNKNOWN','div','getInterceptPoints','data','_unitOnClients','changesets','transformRemoteChangeset','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UNRECOGNIZED','transformByState','_startCollaboration','objects','RETRY_CONNECTING_INTERVAL','event$','?size=','getRoom','unit-cache-','disposeUnit','getCurrentSelections','setShapeProps','enableOfflineEditing','UnitEmbedded','...','[OfflineState]:\x20received\x20rejection.','_awaitingChangeset','COMPRESS_MUTATION_APPLY','_type','univer-online-status','getSheetBySheetId','2HBpnEP','rgba(255,\x20255,\x20255,\x200.01)','pluginName','HEARTBEAT','status$','_onFetchMissResult','name','9238930UDSLhr','_createInitialStateImpl','SNAPSHOT_INVALID_SNAPSHOT','_toggleOffline','leaveEvent','onMissedChangesetFetched','disposeWithMe','_collaborationPaused','getUnitOnRev','onCommentUpdate','subscribe','getOwnPropertySymbols','PENDING','updatePermissionObjEvent','apply','appendMutation','/-/object/list','9OULMde','/universer-api/snapshot/','resize','_online','_startSheetCollabCursor','_waitForHeartbeatResponse','_getLoginPath','objectID','_id','0\x200\x2016\x2016','_hovered','awaiting_with_pending','[CollaborationSessionService]','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','endColumn','translate(.97)','_cachedData','revision','startRow','_snapshotService','snapshot','resend','1em','CHANGESET_REVISION_CONFILICT','BASE64','getAncestorScale','getUndoRedoMutationParamsCache','hasOwnProperty','registerBeforeClose','_unlockTransition','APPLY_NON_SEQUENTIAL_REVISION','session.collaboration-timeout','replaceState','m2Prime','objectActions','replace','_collaborationTimeoutTimer','UPDATE_CURSOR','_getCurrentRevision','ERROR_IMAGE_TYPE','some','unshift','reject','activeSheet$','image/bmp','_clearUndo','target','INVALID_ARGUMENT','_replaceFileID','LOGIN_URL_KEY','&source=','AUTHZ_URL_KEY','has','currentTheme$','toggleOnline','_saveCache','isActive','append','_sendHeartbeat','roomMembers$','getConfig','round','joinRsp','defs','symbol','APPLY_REJECT','setItem','_draw','RECV','_createSocket','_fetchMissChangesets','registerHTTPInterceptor','closePath','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboratorID','image/png','then','min','_clearHeartbeatTimer','_ws','c1Prime','connection\x20error','registerRenderModule','font','/new_changes','452056WfidAq','failed\x20to\x20apply\x20missed\x20changesets!','fetch_missing','_updateURLWithCurrentState','setTimeout','unitID','status','ws://127.0.0.1:8000/universer-api/comb/connect','subunit','_scheduleTimestamp','getRangePointData','row','/universer-api/oidc/authpage','Warning','getCurrentUser','FromArray','INTERNAL_ERROR','localeService','_loadSheet','pipe','conflict','_removeClearOtherTimer','onCommandExecuted','eventID','/object/','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.conflict','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','_onRemoteRejected','_undoStacks','Ready','_pendingMutations','onload','getActiveSheet','SHOULD_CLOSE_CONN','_onConnectionFailed','delete','saveOfflineData','_onConnectionOpen','_getAnchorBounding','resolve','originalMeta','_heartbeatTimer','onPointerLeave$','result','540760IDycKS','slice','file','UNIVER_COLLABORATION_CLIENT_PLUGIN','APPLY_PERMISSION_DENIED','onRemoteChangeset','_timeoutTimer','onStarting','getUnitStatus$','_removeCollabCursors','_roomMembers$','univerjs-icon\x20univerjs-icon-','SNAPSHOT_SERVER_URL_KEY','url(#on-line-single_clip0_910_349)','[PendingState]:\x20received\x20acknowledgement.','_scene','MoveRangeCommandId','_transformIMECache','svg','href','findNodePositionByCharIndex','entries','_imageSourceCache','_logService','lineTo','off-line-single_clip0_910_343','every','find','startColumn','_entityInit$','AWAITING','_remoteChangesetQueue','_send','LEAVE','arc','LICENSE_DISTRO_REJECTED','PSEUDO_FETCH_MISSING_RESULT','_handler','post','_entities','onlineStatusIcon','?url=','parse','PERMISSION_REJ','onPointerMove$','subscribeEvent','_updateLocalCursor','loadSheet','newValue','concat','_transformUndoredo','extend','none','image/jpeg','_singleActiveUnitService','permission.content','collabStatus.notCollab','COMPRESS_MUTATION_SEND'];_0x9ef4=function(){return _0x2468a3;};return _0x9ef4();}import{CollaborationEvent as _0xd3c20c,parseChangesetToProtocol as _0x265bb6,ISnapshotServerService as _0x367e30,RevisionService as _0xa786bc,isTransformMutationFailure as _0x364f8f,isTransformMutationsWithChangesetSuccess as _0x522a4,ITransformService as _0x4e495a,mapDocumentTypeToUniverType as _0x4a77df,isTransformChangesetsSuccess as _0xcffb46,CompressMutationService as _0x1ac7ae,parseProtocolChangeset as _0x55bb16,SnapshotService as _0x5cfad0,textEncoder as _0x310092,b64DecodeUnicode as _0x59c020,isTransformMutationsWithChangesetFailure as _0x519c1a,UniverCollaborationPlugin as _0x361f11}from'@univerjs-pro/collaboration';import{merge as _0x1d3042,Subject as _0x1ace47,BehaviorSubject as _0x2561fc,distinctUntilChanged as _0x1980f0,fromEvent as _0x28ccd8,of as _0x274530,takeUntil as _0x3c23a9,debounceTime as _0x1412d5,filter as _0x4d0abc,switchMap as _0x21055f,combineLatest as _0x138d6c,shareReplay as _0x3b034a,mapTo as _0x310a6c,concatMap as _0x2ccf11}from'rxjs';import{map as _0x414fcf,takeUntil as _0x3e87c2,take as _0x56d486,filter as _0x381935,delay as _0xd2b55d,shareReplay as _0x1f7f7f,switchMap as _0x16e713,throttleTime as _0xcfa107}from'rxjs/operators';import{IMEInputManagerService as _0x34b802,TextSelectionManagerService as _0x188da2,serializeDocRange as _0x249015,RichTextEditingMutation as _0x40568f,DocStateChangeManagerService as _0x17dea7,SetTextSelectionsOperation as _0x28f206,SetDocZoomRatioOperation as _0x46d2fe,DocSkeletonManagerService as _0x26e3ab}from'@univerjs/docs';import{HTTPService as _0x3db34c,WebSocketService as _0x11ce39,MergeInterceptorFactory as _0x5c8e22,HTTPRequest as _0x3fce40,IHTTPImplementation as _0x3c9cbd,XHRHTTPImplementation as _0x39d04d,ThresholdInterceptorFactory as _0x3ef1b2}from'@univerjs/network';import{ImageSourceType as _0x434ac3,ImageUploadStatusType as _0x46d7f0,IImageIoService as _0x13659e}from'@univerjs/drawing';import{Shape as _0x2763bf,Rect as _0x31ca09,Vector2 as _0x5c324a,NodePositionConvertToCursor as _0x5e6c7c,isValidRectRange as _0x4c5cc1,NodePositionConvertToRectRange as _0x564309,getColor as _0x5664c9,TEXT_RANGE_LAYER_INDEX as _0x130379,RegularPolygon as _0x1ef824,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2cbd51,IRenderManagerService as _0x23fc25}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x262cf1,serializeRangeWithSheet as _0x448ab0}from'@univerjs/engine-formula';import _0x331994 from'lodash/debounce';import{VIEWPORT_KEY as _0x1e06ce,getCoordByCell as _0x13adfd,getSheetObject as _0x45ba,SheetSkeletonManagerService as _0x1818c9,SheetPermissionInitController as _0x45b80e}from'@univerjs/sheets-ui';import _0x27911f,{forwardRef as _0x2c1bb9,useRef as _0x36697b,createElement as _0x1618fc}from'react';import _0x2a1254 from'clsx';import{IRemoteInstanceService as _0x265857}from'@univerjs/rpc';const an=_0x87081d(0x3dc),cn=_0x87081d(0x278),hn='SNAPSHOT_URL_KEY',_n=_0x87081d(0x1c7),ln=0x7d0,un=_0x87081d(0x44b),dn=_0x87081d(0x3aa),mn='HEARTBEAT_INTERVAL',fn=0x7530,Os=_0x87081d(0x43d),Ds=0x2710,gn=_0x87081d(0x325),Sn=0x4e20,pn='RETRY_CONNECTING_MAX_COUNT',vn=0x3,In='LOCAL_CACHE_INTERVAL',En=0x3e8,Cn='COLLAB_SUBMIT_CHANGESET_URL',bn=_0x87081d(0x28d),Rn=_0x87081d(0x37f),Tn=_0x87081d(0x3af);var Ps=(_0x29a9da=>(_0x29a9da[_0x29a9da[_0x87081d(0x201)]=0x0]=_0x87081d(0x201),_0x29a9da[_0x29a9da['OK']=0x1]='OK',_0x29a9da[_0x29a9da[_0x87081d(0x3b3)]=0x2]=_0x87081d(0x3b3),_0x29a9da[_0x29a9da[_0x87081d(0x266)]=0x3]=_0x87081d(0x266),_0x29a9da[_0x29a9da[_0x87081d(0x23d)]=0x4]=_0x87081d(0x23d),_0x29a9da[_0x29a9da[_0x87081d(0x302)]=0x5]=_0x87081d(0x302),_0x29a9da[_0x29a9da[_0x87081d(0x40b)]=0x6]=_0x87081d(0x40b),_0x29a9da[_0x29a9da['INVALID_ARGUMENT']=0x7]=_0x87081d(0x37d),_0x29a9da[_0x29a9da[_0x87081d(0x1e6)]=0x8]=_0x87081d(0x1e6),_0x29a9da[_0x29a9da['COMPLETION_FINISHED']=0x9]=_0x87081d(0x260),_0x29a9da[_0x29a9da[_0x87081d(0x365)]=0x1389]=_0x87081d(0x365),_0x29a9da[_0x29a9da[_0x87081d(0x33f)]=0x1771]=_0x87081d(0x33f),_0x29a9da[_0x29a9da['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x87081d(0x2a1),_0x29a9da[_0x29a9da[_0x87081d(0x38f)]=0x1b59]=_0x87081d(0x38f),_0x29a9da[_0x29a9da['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x87081d(0x36c),_0x29a9da[_0x29a9da[_0x87081d(0x1a4)]=0x1b5b]=_0x87081d(0x1a4),_0x29a9da[_0x29a9da[_0x87081d(0x3d4)]=0x1b5c]=_0x87081d(0x3d4),_0x29a9da[_0x29a9da[_0x87081d(0x1c6)]=0x1f41]=_0x87081d(0x1c6),_0x29a9da[_0x29a9da[_0x87081d(0x1a5)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x29a9da[_0x29a9da[_0x87081d(0x320)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x29a9da[_0x29a9da['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x29a9da[_0x29a9da[_0x87081d(0x249)]=0x232c]=_0x87081d(0x249),_0x29a9da[_0x29a9da[_0x87081d(0x3f3)]=0x232d]=_0x87081d(0x3f3),_0x29a9da[_0x29a9da[_0x87081d(0x2ab)]=0x2711]=_0x87081d(0x2ab),_0x29a9da[_0x29a9da[_0x87081d(0x30f)]=0x2712]=_0x87081d(0x30f),_0x29a9da[_0x29a9da[_0x87081d(0x270)]=0x2713]=_0x87081d(0x270),_0x29a9da[_0x29a9da[_0x87081d(0x2bd)]=0x2714]=_0x87081d(0x2bd),_0x29a9da[_0x29a9da[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x29a9da))(Ps||{}),H=(_0x18054c=>(_0x18054c[_0x18054c[_0x87081d(0x319)]=0x0]=_0x87081d(0x319),_0x18054c[_0x18054c[_0x87081d(0x1c1)]=0x1]='UNIVER_DOC',_0x18054c[_0x18054c['UNIVER_SHEET']=0x2]=_0x87081d(0x471),_0x18054c[_0x18054c['UNIVER_SLIDE']=0x3]=_0x87081d(0x1d2),_0x18054c[_0x18054c[_0x87081d(0x2b2)]=0x4]='UNIVER_PROJECT',_0x18054c[_0x18054c[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x18054c))(H||{}),I=(_0x5309b7=>(_0x5309b7[_0x5309b7[_0x87081d(0x244)]=0x0]=_0x87081d(0x244),_0x5309b7[_0x5309b7['HELLO']=0x1]=_0x87081d(0x22a),_0x5309b7[_0x5309b7['JOIN']=0x2]=_0x87081d(0x439),_0x5309b7[_0x5309b7['LEAVE']=0x3]=_0x87081d(0x3f1),_0x5309b7[_0x5309b7['INGEST']=0x4]='INGEST',_0x5309b7[_0x5309b7[_0x87081d(0x339)]=0x5]=_0x87081d(0x339),_0x5309b7[_0x5309b7[_0x87081d(0x392)]=0x6]=_0x87081d(0x392),_0x5309b7[_0x5309b7[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x5309b7))(I||{}),jt=(_0x13810b=>(_0x13810b[_0x13810b[_0x87081d(0x431)]=0x0]=_0x87081d(0x431),_0x13810b[_0x13810b['OK']=0x1]='OK',_0x13810b[_0x13810b[_0x87081d(0x209)]=0x2]=_0x87081d(0x209),_0x13810b[_0x13810b['UNRECOGNIZED']=-0x1]=_0x87081d(0x321),_0x13810b))(jt||{}),ws=(_0x59a2c4=>(_0x59a2c4[_0x59a2c4['Undefined']=0x0]=_0x87081d(0x272),_0x59a2c4[_0x59a2c4[_0x87081d(0x2d4)]=0x1]='HttpImport',_0x59a2c4[_0x59a2c4[_0x87081d(0x215)]=0x2]=_0x87081d(0x215),_0x59a2c4[_0x59a2c4[_0x87081d(0x32e)]=0x3]=_0x87081d(0x32e),_0x59a2c4[_0x59a2c4[_0x87081d(0x1a8)]=0x4]=_0x87081d(0x1a8),_0x59a2c4[_0x59a2c4[_0x87081d(0x321)]=-0x1]='UNRECOGNIZED',_0x59a2c4))(ws||{}),On=Object['defineProperty'],Dn=Object[_0x87081d(0x314)],Pn=(_0x48226c,_0x54a2f5,_0x5b2f6a,_0x13a071)=>{for(var _0x18fd8a=_0x13a071>0x1?void 0x0:_0x13a071?Dn(_0x54a2f5,_0x5b2f6a):_0x54a2f5,_0x382b3b=_0x48226c['length']-0x1,_0x40cc99;_0x382b3b>=0x0;_0x382b3b--)(_0x40cc99=_0x48226c[_0x382b3b])&&(_0x18fd8a=(_0x13a071?_0x40cc99(_0x54a2f5,_0x5b2f6a,_0x18fd8a):_0x40cc99(_0x18fd8a))||_0x18fd8a);return _0x13a071&&_0x18fd8a&&On(_0x54a2f5,_0x5b2f6a,_0x18fd8a),_0x18fd8a;},Qt=(_0x4d34a6,_0x29e3f9)=>(_0x4371bd,_0x114203)=>_0x29e3f9(_0x4371bd,_0x114203,_0x4d34a6);let ne=class extends _0x1ee863{constructor(_0x24e8c7,_0x8a2c85){const _0x26a343=_0x87081d;super(),_(this,_0x26a343(0x491),new Map()),(this[_0x26a343(0x2bb)]=_0x24e8c7,this['_userManagerService']=_0x8a2c85,this['disposeWithMe'](_0x3b697b(_0x1d3042(this[_0x26a343(0x2bb)]['getTypeOfUnitDisposed$'](_0x5a714d[_0x26a343(0x471)])['pipe'](_0x414fcf(_0x35496d=>_0x35496d[_0x26a343(0x1b5)]())),this[_0x26a343(0x2bb)][_0x26a343(0x223)](_0x5a714d[_0x26a343(0x1c1)])[_0x26a343(0x3b6)](_0x414fcf(_0x45d8d5=>_0x45d8d5[_0x26a343(0x1b5)]())),this[_0x26a343(0x2bb)]['getTypeOfUnitDisposed$'](_0x5a714d[_0x26a343(0x1d2)])[_0x26a343(0x3b6)](_0x414fcf(_0x5862de=>_0x5862de['getUnitId']())))['subscribe'](_0x4d21d5=>this[_0x26a343(0x432)](_0x4d21d5)))));}[_0x87081d(0x498)](_0x26edf8){const _0x4fbd06=_0x87081d;this[_0x4fbd06(0x438)][_0x4fbd06(0x498)](_0x26edf8);}[_0x87081d(0x3b1)](){const _0x481e06=_0x87081d;return this[_0x481e06(0x438)][_0x481e06(0x3b1)]();}['updateMember'](_0x4bbbad,_0x3437df){const _0x424c41=_0x87081d;let _0x10f449=this['_roomMembers']['get'](_0x4bbbad);_0x10f449||(_0x10f449=new wn(),this[_0x424c41(0x491)][_0x424c41(0x4af)](_0x4bbbad,_0x10f449)),_0x10f449[_0x424c41(0x1ee)](_0x3437df);}[_0x87081d(0x434)](_0x542947,_0x3d1a77){const _0x105b37=_0x87081d,_0x246f78=this[_0x105b37(0x491)][_0x105b37(0x1e9)](_0x542947);_0x246f78&&_0x246f78[_0x105b37(0x434)](_0x3d1a77);}[_0x87081d(0x328)](_0x1d4bdc){const _0x563426=_0x87081d;return this[_0x563426(0x491)]['get'](_0x1d4bdc);}[_0x87081d(0x1ae)](_0x5d1541,_0x55bb58){const _0xdcc965=_0x87081d,_0x5c3c77=this[_0xdcc965(0x491)][_0xdcc965(0x1e9)](_0x5d1541);if(_0x5c3c77)return _0x5c3c77[_0xdcc965(0x1ae)](_0x55bb58);}[_0x87081d(0x432)](_0x54c75e){const _0x2272eb=_0x87081d,_0x43c54c=this['_roomMembers'][_0x2272eb(0x1e9)](_0x54c75e);_0x43c54c&&(_0x43c54c[_0x2272eb(0x23c)](),this[_0x2272eb(0x491)][_0x2272eb(0x3c7)](_0x54c75e));}['dispose'](){const _0x342ff5=_0x87081d;this[_0x342ff5(0x491)][_0x342ff5(0x1c8)](_0x35f56a=>_0x35f56a[_0x342ff5(0x23c)]()),this[_0x342ff5(0x491)]['clear']();}};ne=Pn([Qt(0x0,_0x1d5396),Qt(0x1,_0x1b956a(_0x17e09a))],ne);class wn extends _0x1ee863{constructor(){const _0x4c7495=_0x87081d;super(...arguments),_(this,_0x4c7495(0x1b4),new Map());}[_0x87081d(0x23c)](){const _0xf21503=_0x87081d;this[_0xf21503(0x1b4)][_0xf21503(0x291)]();}[_0x87081d(0x1ee)](_0x64d88f){const _0xcc6a6f=_0x87081d;this['_members'][_0xcc6a6f(0x4af)](_0x64d88f[_0xcc6a6f(0x2c0)],_0x64d88f);}[_0x87081d(0x434)](_0x5b5822){const _0x5afa3b=_0x87081d;this[_0x5afa3b(0x1b4)]['delete'](_0x5b5822);}['getMember'](_0x51433b){const _0x3159c8=_0x87081d;return this['_members'][_0x3159c8(0x1e9)](_0x51433b);}}function Nn(_0x519e00){const _0x3afea2=_0x87081d;var _0x25d090,_0x34921b,_0x37abb0,_0x19c761;const _0x5aff3c=_0x519e00['data'],_0xfdae38=JSON[_0x3afea2(0x3fa)](_0x5aff3c);switch(_0xfdae38[_0x3afea2(0x4b6)]){case I['HEARTBEAT']:case I['HELLO']:{const _0x2c19e7=_0xfdae38[_0x3afea2(0x2d1)];return{..._0xfdae38,'data':_0x2c19e7,'cmd':_0xfdae38['cmd']};}case I[_0x3afea2(0x439)]:{const _0x149000=_0xfdae38[_0x3afea2(0x38c)];return{..._0xfdae38,'data':_0x149000,'cmd':_0xfdae38[_0x3afea2(0x4b6)]};}case I[_0x3afea2(0x392)]:{const _0xc54fe1=_0xfdae38['collaMsg'];switch(_0xc54fe1[_0x3afea2(0x3ba)]){case _0xd3c20c[_0x3afea2(0x3fb)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x25d090=_0xc54fe1['permissionRejEvent'])==null?void 0x0:_0x25d090['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x259)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x34921b=_0xc54fe1[_0x3afea2(0x482)])==null?void 0x0:_0x34921b['cs']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x416)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x37abb0=_0xc54fe1[_0x3afea2(0x2ce)])==null?void 0x0:_0x37abb0['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x4ae)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x19c761=_0xc54fe1[_0x3afea2(0x4f3)])==null?void 0x0:_0x19c761['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x373)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['updateCursorEvent']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x40e)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x456)]},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x1b3)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x341)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x30e)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x481)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c['LIVESHARE_FETCH_OPERATIONS']:case _0xd3c20c[_0x3afea2(0x2c2)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['liveShareOperation']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x4d8)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['liveShareNewHost']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x213)]:return{..._0xfdae38,'data':_0xc54fe1,'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x1de)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x1df)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x20c)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x34a)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x3c5)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['shouldCloseConn']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};default:return _0xfdae38;}}default:return _0xfdae38;}}function Mn(_0xb7394e){const _0x3f2933=_0x87081d;switch(_0xb7394e[_0x3f2933(0x4b6)]){case I[_0x3f2933(0x339)]:case I[_0x3f2933(0x22a)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e['cmd'],'routeKey':_0xb7394e['routeKey']});case I[_0x3f2933(0x451)]:{let _0x304f88;switch(_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x3ba)]){case _0xd3c20c['UPDATE_CURSOR']:{_0x304f88={'eventID':_0xd3c20c['UPDATE_CURSOR'],'updateCursorEvent':_0xb7394e[_0x3f2933(0x31c)]['data']};break;}case _0xd3c20c[_0x3f2933(0x1b3)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x1b3)],'leaveEvent':_0xb7394e[_0x3f2933(0x31c)]['data']};break;}case _0xd3c20c[_0x3f2933(0x40e)]:{_0x304f88={'eventID':_0xd3c20c['USERS_ENTER'],'joinEvent':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x30e)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x30e)],'liveShareNewHost':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x2c2)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x2c2)],'liveShareOperation':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c['LIVESHARE_TERMINATE']:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x4d8)],'liveShareTerminate':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c['LIVESHARE_REQUEST_HOST']:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x2d2)],'liveShareRequestHost':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x452)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x452)]};break;}default:_0x304f88={'eventID':_0xb7394e[_0x3f2933(0x31c)]['eventID']};}return JSON['stringify']({'cmd':_0xb7394e[_0x3f2933(0x4b6)],'routeKey':_0xb7394e['routeKey'],'collaMsg':_0x304f88});}case I[_0x3f2933(0x439)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e[_0x3f2933(0x4b6)],'routeKey':_0xb7394e['routeKey'],'joinReq':_0xb7394e['data']});case I[_0x3f2933(0x3f1)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e['cmd'],'routeKey':_0xb7394e['routeKey'],'leaveReq':_0xb7394e[_0x3f2933(0x31c)]});default:throw new Error(_0x3f2933(0x2be));}}var An=Object[_0x87081d(0x318)],Un=Object[_0x87081d(0x314)],yn=(_0x5b8468,_0x3a6e55,_0x11cc0f,_0x34e6aa)=>{for(var _0x272167=_0x34e6aa>0x1?void 0x0:_0x34e6aa?Un(_0x3a6e55,_0x11cc0f):_0x3a6e55,_0x24fb44=_0x5b8468['length']-0x1,_0x3ac852;_0x24fb44>=0x0;_0x24fb44--)(_0x3ac852=_0x5b8468[_0x24fb44])&&(_0x272167=(_0x34e6aa?_0x3ac852(_0x3a6e55,_0x11cc0f,_0x272167):_0x3ac852(_0x272167))||_0x272167);return _0x34e6aa&&_0x272167&&An(_0x3a6e55,_0x11cc0f,_0x272167),_0x272167;},Te=(_0x27194b,_0xbbce4b)=>(_0x704b29,_0x40758b)=>_0xbbce4b(_0x704b29,_0x40758b,_0x27194b);const Ns=_0x1b08c0(_0x87081d(0x4b0));function Ln(_0x51cbde,_0xaeb4f9,_0xe4ac97){const _0x3466fb=_0x87081d;return _0x51cbde+'/'+_0xaeb4f9+_0x3466fb(0x418)+_0xe4ac97+_0x3466fb(0x3a2);}let vt=class{constructor(_0x5968c8,_0x582f40,_0x474dbe,_0x37a141,_0x5aaa1e){const _0x20be78=_0x87081d;this[_0x20be78(0x4a5)]=_0x5968c8,this[_0x20be78(0x39d)]=_0x582f40,this[_0x20be78(0x252)]=_0x474dbe,this[_0x20be78(0x3e7)]=_0x37a141,this[_0x20be78(0x496)]=_0x5aaa1e;}[_0x87081d(0x4f0)](_0x80edf6){const _0x508a7a=_0x87081d,_0xd99378=this['_ws'][_0x508a7a(0x4f0)](_0x80edf6);if(!_0xd99378)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x39e94d=new _0x173e9c(),_0xab5380=new _0x1ace47();_0x39e94d['add'](_0x3b697b(_0xd99378[_0x508a7a(0x450)][_0x508a7a(0x347)](_0x14ae86=>_0xab5380[_0x508a7a(0x4fe)](_0x14ae86)))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0xab5380[_0x508a7a(0x26e)]()));const _0x2eabc6=new _0x1ace47();_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(_0xd99378[_0x508a7a(0x2a3)][_0x508a7a(0x347)](_0x2f3f4a=>_0x2eabc6[_0x508a7a(0x4fe)](_0x2f3f4a)))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0x2eabc6['complete']()));const _0x37c1f9=new _0x1ace47();_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(_0xd99378['message$'][_0x508a7a(0x347)](_0x3942d6=>{const _0x4e80ac=_0x508a7a,_0x3fbedc=Nn(_0x3942d6);_0x37c1f9[_0x4e80ac(0x4fe)](_0x3fbedc);}))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0x37c1f9[_0x508a7a(0x26e)]()));const _0x36dfd8=()=>{const _0x558228=_0x508a7a;_0x2eabc6[_0x558228(0x4fe)](new Event('connection\x20error')),_0xab5380['next'](new CloseEvent(_0x558228(0x39f))),_0x32951d[_0x558228(0x23f)]();},_0x32951d={'memberID':'','close$':_0xab5380[_0x508a7a(0x225)](),'error$':_0x2eabc6[_0x508a7a(0x225)](),'open$':_0xd99378['open$'],'message$':_0x37c1f9['asObservable'](),'send':_0x1e3093=>{const _0x3758ca=_0x508a7a;if(_0x1e3093['cmd']===I[_0x3758ca(0x451)]){if(_0x1e3093[_0x3758ca(0x31c)][_0x3758ca(0x3ba)]===_0xd3c20c[_0x3758ca(0x4e4)]){this[_0x3758ca(0x4e2)](_0x32951d,_0x1e3093['data'])[_0x3758ca(0x475)](_0x2c7473=>{const _0x5bab3b=_0x3758ca;this[_0x5bab3b(0x3e7)][_0x5bab3b(0x289)](_0x2c7473),_0x36dfd8();});return;}if(_0x1e3093[_0x3758ca(0x31c)]['eventID']===_0xd3c20c['FETCH_MISSING']){const _0x1f91ca=_0x1e3093[_0x3758ca(0x31c)];this[_0x3758ca(0x394)](_0x1f91ca)[_0x3758ca(0x39a)](_0x4263fc=>{const _0x41e2db=_0x3758ca;_0x37c1f9[_0x41e2db(0x4fe)]({'cmd':I[_0x41e2db(0x392)],'code':jt['OK'],'routeKey':_0x1f91ca[_0x41e2db(0x31c)]['unitID'],'routeType':'','data':{'eventID':_0xd3c20c[_0x41e2db(0x3f4)],'data':{'changesets':_0x4263fc}}});})[_0x3758ca(0x475)](_0x1410c0=>{const _0x473adf=_0x3758ca;this['_logService'][_0x473adf(0x289)](_0x1410c0),_0x36dfd8();});return;}}_0xd99378['send'](Mn(_0x1e3093));},'close':()=>{const _0x38bffd=_0x508a7a;_0xd99378['close'](),_0x39e94d[_0x38bffd(0x23c)]();}};return _0x32951d;}async[_0x87081d(0x4e2)](_0x507260,_0x5f10e7){const _0x538148=_0x87081d;var _0xbfe1d4;const {unitType:_0x382dd9,unitID:_0x1f4f0c,changeset:_0x4d81f6}=_0x5f10e7[_0x538148(0x31c)],_0x11605b={'unitID':_0x1f4f0c,'memberID':_0x507260[_0x538148(0x2c0)],'type':_0x382dd9,'changeset':_0x265bb6(_0x4d81f6)},_0x8dca0b=Ln((_0xbfe1d4=this[_0x538148(0x252)]['getConfig'](Cn))!=null?_0xbfe1d4:bn,_0x382dd9,_0x1f4f0c);try{await this['_http']['post'](_0x8dca0b,{'body':_0x11605b});}catch(_0x2b4183){throw this['_logService'][_0x538148(0x289)](_0x538148(0x47a),_0x538148(0x422)),_0x2b4183;}}async[_0x87081d(0x394)](_0x3c429e){const _0x3c8f7a=_0x87081d,{unitID:_0x2e8f1d,from:_0x15b47c,to:_0x8bca30,unitType:_0x17c1c1}=_0x3c429e[_0x3c8f7a(0x31c)];return(await this[_0x3c8f7a(0x496)][_0x3c8f7a(0x26f)]({'metadata':void 0x0},{'unitID':_0x2e8f1d,'type':_0x17c1c1,'from':_0x15b47c,'to':_0x8bca30}))[_0x3c8f7a(0x31e)];}};vt=yn([Te(0x0,_0x1b956a(_0x3db34c)),Te(0x1,_0x1b956a(_0x11ce39)),Te(0x2,_0x5d255f),Te(0x3,_0x82a609),Te(0x4,_0x367e30)],vt);class Ms{constructor(){const _0x4628cd=_0x87081d;_(this,_0x4628cd(0x2cd),new _0x1ace47()),_(this,'commentUpdate$',this[_0x4628cd(0x2cd)]['asObservable']());}['onCommentUpdate'](_0x22ffeb){const _0x171b4c=_0x87081d;this['_commentUpdate$'][_0x171b4c(0x4fe)](_0x22ffeb);}}var $n=Object[_0x87081d(0x318)],jn=Object[_0x87081d(0x314)],As=(_0x43e4a7,_0xa0d789,_0x36cec2,_0x11a784)=>{for(var _0x5d0111=_0x11a784>0x1?void 0x0:_0x11a784?jn(_0xa0d789,_0x36cec2):_0xa0d789,_0x46686f=_0x43e4a7['length']-0x1,_0x584539;_0x46686f>=0x0;_0x46686f--)(_0x584539=_0x43e4a7[_0x46686f])&&(_0x5d0111=(_0x11a784?_0x584539(_0xa0d789,_0x36cec2,_0x5d0111):_0x584539(_0x5d0111))||_0x5d0111);return _0x11a784&&_0x5d0111&&$n(_0xa0d789,_0x36cec2,_0x5d0111),_0x5d0111;},A=(_0x3ece62,_0x4d40b4)=>(_0x54367e,_0x3c7439)=>_0x4d40b4(_0x54367e,_0x3c7439,_0x3ece62),fe=(_0x45e489=>(_0x45e489[_0x45e489['IDLE']=0x0]=_0x87081d(0x21c),_0x45e489[_0x45e489[_0x87081d(0x424)]=0x1]=_0x87081d(0x424),_0x45e489[_0x45e489[_0x87081d(0x2c5)]=0x2]=_0x87081d(0x2c5),_0x45e489[_0x45e489['ONLINE']=0x3]=_0x87081d(0x28f),_0x45e489))(fe||{});let It=class extends _0x53ce5a{constructor(_0x397439,_0x53540,_0x2d005d,_0x92351d,_0x1a172a,_0x405dc5,_0x199144,_0x3ef932,_0x43613e){const _0x453cd2=_0x87081d;super(),_(this,'_sessionStatus$',new _0x2561fc(0x0)),_(this,_0x453cd2(0x2f6),this[_0x453cd2(0x20a)][_0x453cd2(0x225)]()),_(this,_0x453cd2(0x437),new _0x1ace47()),_(this,'event$',this[_0x453cd2(0x437)][_0x453cd2(0x225)]()),_(this,'_socket'),_(this,_0x453cd2(0x1c0)),_(this,'_collaborationTimeoutTimer'),(this[_0x453cd2(0x2ad)]=_0x397439,this[_0x453cd2(0x3e7)]=_0x2d005d,this[_0x453cd2(0x460)]=_0x92351d,this['_messageService']=_0x1a172a,this['_configService']=_0x405dc5,this[_0x453cd2(0x45a)]=_0x199144,this[_0x453cd2(0x2e6)]=_0x3ef932,this[_0x453cd2(0x1d5)]=_0x43613e,_0x53540[_0x453cd2(0x3b6)](_0x3e87c2(this[_0x453cd2(0x20e)]))[_0x453cd2(0x347)](_0x1225f0=>{const _0x3e86f5=_0x453cd2;var _0xffb32;typeof _0x1225f0>'u'||(this['_socket']=_0x1225f0,_0x1225f0?(this[_0x3e86f5(0x307)](_0x1225f0),this[_0x3e86f5(0x1c0)]=this[_0x3e86f5(0x305)][_0x3e86f5(0x1bf)][_0x3e86f5(0x347)](_0x497903=>{_0x497903['routeKey']===this['_unitID']&&this['_onCombEvent'](_0x497903);})):(this[_0x3e86f5(0x20a)][_0x3e86f5(0x4fe)](0x2),(_0xffb32=this[_0x3e86f5(0x1c0)])==null||_0xffb32[_0x3e86f5(0x2a8)](),this[_0x3e86f5(0x1c0)]=null));}),this[_0x453cd2(0x343)](this[_0x453cd2(0x460)][_0x453cd2(0x308)](()=>{const _0x4b4c5a=_0x453cd2;var _0x247b87;(_0x247b87=this['_socket'])==null||_0x247b87[_0x4b4c5a(0x253)]({'cmd':I[_0x4b4c5a(0x3f1)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x362f90=_0x87081d;return this[_0x362f90(0x20a)][_0x362f90(0x275)]();}[_0x87081d(0x241)](){const _0x4087f5=_0x87081d;var _0x246192,_0x38bc0c;return(_0x38bc0c=(_0x246192=this[_0x4087f5(0x305)])==null?void 0x0:_0x246192['memberID'])!=null?_0x38bc0c:null;}[_0x87081d(0x23c)](){const _0x5ac9b3=_0x87081d;super['dispose'](),this[_0x5ac9b3(0x20e)][_0x5ac9b3(0x4fe)](),this[_0x5ac9b3(0x20e)][_0x5ac9b3(0x26e)]();}[_0x87081d(0x23f)](){const _0x5d795d=_0x87081d;var _0x5c7790,_0x5f4a5e;(_0x5c7790=this['_socket'])==null||_0x5c7790['send']({'cmd':I[_0x5d795d(0x3f1)],'data':{'roomID':this[_0x5d795d(0x2ad)]}}),this[_0x5d795d(0x437)][_0x5d795d(0x26e)](),this['_sessionStatus$'][_0x5d795d(0x26e)](),(_0x5f4a5e=this[_0x5d795d(0x305)])==null||_0x5f4a5e['close'](),this[_0x5d795d(0x23c)]();}[_0x87081d(0x477)](_0x5b2c3f){const _0x1d21da=_0x87081d;_0x5b2c3f[_0x1d21da(0x4b6)]===I[_0x1d21da(0x439)]?this[_0x1d21da(0x2b4)](_0x5b2c3f):_0x5b2c3f['cmd']===I[_0x1d21da(0x392)]&&this[_0x1d21da(0x4b1)](_0x5b2c3f);}[_0x87081d(0x307)](_0x3afa1e){const _0x509987=_0x87081d;this[_0x509987(0x20a)][_0x509987(0x4fe)](0x1),_0x3afa1e[_0x509987(0x253)]({'cmd':I[_0x509987(0x439)],'routeKey':this[_0x509987(0x2ad)],'routeType':'','data':{'rooms':[{'roomID':this[_0x509987(0x2ad)]}]}});}[_0x87081d(0x2b4)](_0x516f45){const _0x4b982f=_0x87081d;var _0x246e94;if(_0x516f45[_0x4b982f(0x1a7)]===jt['FAIL']){this[_0x4b982f(0x243)][_0x4b982f(0x410)]({'type':_0x4dda16[_0x4b982f(0x3b0)],'content':this[_0x4b982f(0x45a)]['t']('session.room-full')}),this[_0x4b982f(0x20a)][_0x4b982f(0x4fe)](0x2);return;}this[_0x4b982f(0x20a)][_0x4b982f(0x4fe)](0x3);const _0x54cec3=(_0x246e94=_0x516f45['data']['roomInfos'][this[_0x4b982f(0x2ad)]])==null?void 0x0:_0x246e94[_0x4b982f(0x414)];_0x54cec3&&_0x54cec3[_0x4b982f(0x1c8)](_0x31045f=>this['_memberService']['updateMember'](this['_unitID'],_0x31045f));}[_0x87081d(0x4b1)](_0x4f5308){const _0x2a062b=_0x87081d;try{const _0x545a4d=_0x4f5308[_0x2a062b(0x31c)];switch(_0x545a4d[_0x2a062b(0x3ba)]){case _0xd3c20c[_0x2a062b(0x40e)]:this[_0x2a062b(0x478)](_0x545a4d),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c['USERS_LEAVE']:this[_0x2a062b(0x2a5)](_0x545a4d),this[_0x2a062b(0x437)]['next'](_0x545a4d);break;case _0xd3c20c['CHANGESET_ACK']:this[_0x2a062b(0x230)](),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c[_0x2a062b(0x213)]:this[_0x2a062b(0x3e7)][_0x2a062b(0x289)](_0x2a062b(0x2c6)+JSON[_0x2a062b(0x2e5)](_0x545a4d)),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c[_0x2a062b(0x1de)]:this[_0x2a062b(0x1d5)][_0x2a062b(0x346)](_0x545a4d[_0x2a062b(0x31c)]),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;default:this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);}}catch(_0x1c21e9){this['_logService'][_0x2a062b(0x289)](_0x1c21e9,_0x4f5308);}}[_0x87081d(0x478)](_0x26c6ac){const _0x49836f=_0x87081d;this[_0x49836f(0x2e6)]['updateMember'](this[_0x49836f(0x2ad)],_0x26c6ac[_0x49836f(0x31c)]);}[_0x87081d(0x2a5)](_0x221093){const _0x4ec162=_0x87081d;this[_0x4ec162(0x2e6)][_0x4ec162(0x434)](this['_unitID'],_0x221093[_0x4ec162(0x31c)][_0x4ec162(0x2c0)]);}async['send'](_0xf607e8,_0x5258b6){const _0x14576b=_0x87081d;if(this[_0x14576b(0x2d6)]!==0x3||!this[_0x14576b(0x305)])throw new Error(_0x14576b(0x1d8));try{_0xf607e8[_0x14576b(0x3ba)]===_0xd3c20c[_0x14576b(0x416)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x14576b(0x305)]['send']({'cmd':I['INGEST'],'routeKey':_0x5258b6,'routeType':'','data':_0xf607e8});}catch(_0x4c505f){this[_0x14576b(0x3e7)][_0x14576b(0x289)](_0x4c505f);}}['_scheduleCollaborationTimeoutTimer'](){const _0x43af71=_0x87081d;var _0x1c7853;this[_0x43af71(0x372)]=window[_0x43af71(0x3a7)](()=>{const _0x2f8de5=_0x43af71;this[_0x2f8de5(0x372)]=null,this[_0x2f8de5(0x243)]['show']({'type':_0x4dda16[_0x2f8de5(0x500)],'content':this['_localeService']['t'](_0x2f8de5(0x36d))});},(_0x1c7853=this[_0x43af71(0x252)][_0x43af71(0x38a)](Os))!=null?_0x1c7853:Ds);}['_clearCollaborationTimeoutTimer'](){const _0x30fbca=_0x87081d;this[_0x30fbca(0x372)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x30fbca(0x372)]=null);}};It=As([A(0x2,_0x82a609),A(0x3,_0x276384),A(0x4,_0x14fd53),A(0x5,_0x5d255f),A(0x6,_0x1b956a(_0x2db4b8)),A(0x7,_0x1b956a(ne)),A(0x8,_0x1b956a(Ms))],It);let pe=class extends _0x1ee863{constructor(_0x239418,_0x501a1d,_0x1f20f1,_0x57aebd,_0x437d2e,_0x13657b){const _0x43ecb7=_0x87081d;super(),_(this,_0x43ecb7(0x4b3),new _0x2561fc(void 0x0)),_(this,_0x43ecb7(0x21e),new Map()),_(this,_0x43ecb7(0x4e3),new _0x2561fc(0x0)),_(this,_0x43ecb7(0x33a),this['_status$'][_0x43ecb7(0x225)]()),_(this,'_socketReady',!0x1),_(this,_0x43ecb7(0x46f)),_(this,_0x43ecb7(0x3d6)),_(this,_0x43ecb7(0x4bc)),_(this,_0x43ecb7(0x1e2),0x0),(this[_0x43ecb7(0x440)]=_0x239418,this[_0x43ecb7(0x45a)]=_0x501a1d,this[_0x43ecb7(0x243)]=_0x1f20f1,this[_0x43ecb7(0x3e7)]=_0x57aebd,this[_0x43ecb7(0x252)]=_0x437d2e,this[_0x43ecb7(0x28c)]=_0x13657b);}get[_0x87081d(0x305)](){const _0x5cbc15=_0x87081d;return this['_socket$'][_0x5cbc15(0x275)]();}[_0x87081d(0x23c)](){const _0x154dad=_0x87081d;super['dispose'](),this['_sessions']['forEach'](_0x576455=>_0x576455[_0x154dad(0x23c)]()),this[_0x154dad(0x21e)][_0x154dad(0x291)](),this[_0x154dad(0x4e3)][_0x154dad(0x26e)]();}async[_0x87081d(0x316)](_0x480211){const _0x5bffc2=_0x87081d;if(this['_sessions'][_0x5bffc2(0x382)](_0x480211))return this['_sessions']['get'](_0x480211);this[_0x5bffc2(0x262)]();const _0x821bcc=this[_0x5bffc2(0x440)][_0x5bffc2(0x427)](It,_0x480211,this[_0x5bffc2(0x4b3)][_0x5bffc2(0x225)]());return this[_0x5bffc2(0x21e)][_0x5bffc2(0x4af)](_0x480211,_0x821bcc),_0x821bcc;}[_0x87081d(0x4b2)](_0x56dbdb){const _0x224aa4=_0x87081d;var _0x5efeee;const _0x1ad966=this[_0x224aa4(0x21e)][_0x224aa4(0x1e9)](_0x56dbdb);_0x1ad966&&(this['_sessions']['delete'](_0x56dbdb),_0x1ad966[_0x224aa4(0x23f)]()),this['_sessions']['size']||(_0x5efeee=this[_0x224aa4(0x305)])==null||_0x5efeee['close']();}['_createSocket'](){const _0x31b450=_0x87081d;var _0x4f7876;const _0x1d8411=(_0x4f7876=this[_0x31b450(0x252)][_0x31b450(0x38a)](un))!=null?_0x4f7876:dn;return this[_0x31b450(0x28c)]['createSocket'](_0x1d8411);}[_0x87081d(0x262)](){const _0x12f0f8=_0x87081d;try{const _0x56588d=this[_0x12f0f8(0x393)]();if(_0x56588d){const _0x21138f=_0x56588d['send'];_0x56588d[_0x12f0f8(0x253)]=_0x37a9b3=>(this[_0x12f0f8(0x268)](),_0x21138f[_0x12f0f8(0x34b)](_0x56588d,[_0x37a9b3])),_0x56588d[_0x12f0f8(0x1bf)][_0x12f0f8(0x347)](_0x41f52d=>this[_0x12f0f8(0x4bd)](_0x56588d,_0x41f52d)),_0x56588d[_0x12f0f8(0x2a3)][_0x12f0f8(0x3b6)](_0x56d486(0x1))[_0x12f0f8(0x347)](_0x1043f8=>this['_logService'][_0x12f0f8(0x289)](_0x12f0f8(0x4c6),_0x1043f8)),_0x56588d[_0x12f0f8(0x27f)]['pipe'](_0x56d486(0x1))['subscribe'](()=>{const _0x1a6905=_0x12f0f8;this[_0x1a6905(0x3c9)](_0x56588d);}),_0x56588d[_0x12f0f8(0x450)]['pipe'](_0x56d486(0x1))[_0x12f0f8(0x347)](_0x2c0e94=>{const _0xc821a3=_0x12f0f8;this[_0xc821a3(0x3e7)][_0xc821a3(0x4d5)](_0xc821a3(0x35a),_0xc821a3(0x1ff),_0x2c0e94),this[_0xc821a3(0x3c6)]();});}}catch(_0x12bc10){this[_0x12f0f8(0x3e7)]['error'](_0x12bc10),this[_0x12f0f8(0x3c6)]();}}[_0x87081d(0x3c9)](_0x1d09b3){const _0x4c16e3=_0x87081d;this[_0x4c16e3(0x3e7)][_0x4c16e3(0x4d5)](_0x4c16e3(0x35a),_0x4c16e3(0x443)),_0x1d09b3[_0x4c16e3(0x253)]({'cmd':I[_0x4c16e3(0x22a)]}),this[_0x4c16e3(0x268)]();}[_0x87081d(0x3c6)](){const _0x24f345=_0x87081d;var _0x2ec8b9;this[_0x24f345(0x4e3)][_0x24f345(0x4fe)](0x2),this[_0x24f345(0x4b3)][_0x24f345(0x4fe)](null),this[_0x24f345(0x26c)](),this[_0x24f345(0x39c)](),this[_0x24f345(0x448)]=!0x1,this[_0x24f345(0x1e2)]<((_0x2ec8b9=this[_0x24f345(0x252)]['getConfig'](pn))!=null?_0x2ec8b9:vn)?(this['_scheduleReconnection'](this['_retryCount']),this[_0x24f345(0x1e2)]+=0x1):this['_messageService'][_0x24f345(0x410)]({'type':_0x4dda16[_0x24f345(0x500)],'content':this[_0x24f345(0x45a)]['t'](_0x24f345(0x286))});}[_0x87081d(0x293)](_0x112ab2){const _0x3e2aad=_0x87081d;var _0x15a1cb;const _0x1ef44d=((_0x15a1cb=this[_0x3e2aad(0x252)][_0x3e2aad(0x38a)](gn))!=null?_0x15a1cb:Sn)*0x2**_0x112ab2;this['_messageService'][_0x3e2aad(0x410)]({'type':_0x4dda16['Warning'],'content':this[_0x3e2aad(0x45a)]['t'](_0x3e2aad(0x2c3))}),this[_0x3e2aad(0x4bc)]=setTimeout(()=>{const _0xf7d7cf=_0x3e2aad;this[_0xf7d7cf(0x262)](),clearTimeout(this[_0xf7d7cf(0x4bc)]),this['_retryConnectingTimer']=null;},_0x1ef44d);}['_rescheduleHeartbeatEvent'](){const _0x35685c=_0x87081d;var _0x320afb;this[_0x35685c(0x39c)](),this[_0x35685c(0x46f)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x320afb=this['_configService'][_0x35685c(0x38a)](mn))!=null?_0x320afb:fn);}[_0x87081d(0x388)](){const _0x5ec673=_0x87081d;this[_0x5ec673(0x305)][_0x5ec673(0x253)]({'cmd':I[_0x5ec673(0x339)]}),this[_0x5ec673(0x353)]();}[_0x87081d(0x353)](){const _0x5b54e8=_0x87081d;var _0x35143;this[_0x5b54e8(0x3d6)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x35143=this[_0x5b54e8(0x252)]['getConfig'](Os))!=null?_0x35143:Ds);}['_onMessage'](_0x3ba68f,_0x4cafc2){const _0x2d2f76=_0x87081d,{cmd:_0x18f943}=_0x4cafc2;_0x18f943===I[_0x2d2f76(0x22a)]&&!this[_0x2d2f76(0x448)]&&(_0x3ba68f[_0x2d2f76(0x2c0)]=_0x4cafc2[_0x2d2f76(0x31c)][_0x2d2f76(0x2c0)],this[_0x2d2f76(0x4b3)][_0x2d2f76(0x4fe)](_0x3ba68f),this[_0x2d2f76(0x4e3)]['next'](0x3),this[_0x2d2f76(0x448)]=!0x0),_0x18f943===I['HEARTBEAT']&&this[_0x2d2f76(0x26c)](),this[_0x2d2f76(0x268)]();}[_0x87081d(0x39c)](){const _0x1c0536=_0x87081d;this[_0x1c0536(0x46f)]!=null&&(clearTimeout(this[_0x1c0536(0x46f)]),this[_0x1c0536(0x46f)]=null);}[_0x87081d(0x26c)](){const _0x6dc4a3=_0x87081d;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x6dc4a3(0x3d6)]),this[_0x6dc4a3(0x3d6)]=null);}};pe=As([A(0x0,_0x1b956a(_0x4bf6fc)),A(0x1,_0x1b956a(_0x2db4b8)),A(0x2,_0x14fd53),A(0x3,_0x82a609),A(0x4,_0x5d255f),A(0x5,Ns)],pe);var xn=Object['defineProperty'],Hn=Object['getOwnPropertyDescriptor'],kn=(_0x3907da,_0x36a9b6,_0x2b3dcb,_0x5cc111)=>{for(var _0x18f441=_0x5cc111>0x1?void 0x0:_0x5cc111?Hn(_0x36a9b6,_0x2b3dcb):_0x36a9b6,_0x3af6b7=_0x3907da['length']-0x1,_0x5b4aa7;_0x3af6b7>=0x0;_0x3af6b7--)(_0x5b4aa7=_0x3907da[_0x3af6b7])&&(_0x18f441=(_0x5cc111?_0x5b4aa7(_0x36a9b6,_0x2b3dcb,_0x18f441):_0x5b4aa7(_0x18f441))||_0x18f441);return _0x5cc111&&_0x18f441&&xn(_0x36a9b6,_0x2b3dcb,_0x18f441),_0x18f441;},Oe=(_0x5eb919,_0xb2bca0)=>(_0x5ac118,_0x311c7b)=>_0xb2bca0(_0x5ac118,_0x311c7b,_0x5eb919);let D=class extends _0x1ee863{constructor(_0x16631a,_0x2f19dc,_0x1424d0,_0x58e2aa,_0x486e3d){const _0xeb941b=_0x87081d;super(),_(this,_0xeb941b(0x35e),new Map()),_(this,_0xeb941b(0x2e1),new Map()),_(this,'_disabled',!0x1),(this[_0xeb941b(0x252)]=_0x16631a,this[_0xeb941b(0x490)]=_0x2f19dc,this[_0xeb941b(0x460)]=_0x1424d0,this[_0xeb941b(0x45a)]=_0x58e2aa,this['_revisionService']=_0x486e3d,this[_0xeb941b(0x47d)]());}['disableLocalCache'](){const _0x1a79f5=_0x87081d;this[_0x1a79f5(0x317)]=!0x0;}[_0x87081d(0x222)](){const _0x2d381f=_0x87081d;this[_0x2d381f(0x317)]=!0x1;}[_0x87081d(0x23c)](){const _0x524924=_0x87081d;this[_0x524924(0x218)]()[_0x524924(0x39a)](()=>super['dispose']());}async[_0x87081d(0x1d9)](_0x552a31){const _0xf2b3=_0x87081d;return this[_0xf2b3(0x317)]?null:this[_0xf2b3(0x490)][_0xf2b3(0x459)](es(_0x552a31));}async[_0x87081d(0x3c8)](_0x1e356d,_0x167ecb){const _0x496a9a=_0x87081d;return!!this[_0x496a9a(0x490)]['setItem'](_0x1e356d,_0x167ecb);}[_0x87081d(0x23a)](_0x35161b,_0x72ae2e,_0x73d3f,_0x3d8a6d){const _0x1a0e5c=_0x87081d,_0x259243=this[_0x1a0e5c(0x4fa)][_0x1a0e5c(0x27c)](_0x35161b);this[_0x1a0e5c(0x35e)]['set'](_0x35161b,{'unitID':_0x35161b,'type':_0x72ae2e,'awaitingChangeset':_0x73d3f,'mutations':_0x3d8a6d,'rev':_0x259243}),this[_0x1a0e5c(0x2e1)][_0x1a0e5c(0x382)](_0x35161b)||this[_0x1a0e5c(0x2af)](_0x35161b);}['_scheduleSaving'](_0x12b22d){const _0x3a9bf5=_0x87081d,_0x40ee85=this['_getSaveTimeout']();_0x40ee85===0x0?this['_saveCache'](_0x12b22d):this[_0x3a9bf5(0x2e1)][_0x3a9bf5(0x4af)](_0x12b22d,setTimeout(()=>this[_0x3a9bf5(0x385)](_0x12b22d),_0x40ee85));}[_0x87081d(0x4ca)](){var _0xe31efc;return(_0xe31efc=this['_configService']['getConfig'](In))!=null?_0xe31efc:En;}['_saveCache'](_0x23094c){const _0x4cfdef=_0x87081d,_0x4ed9aa=this[_0x4cfdef(0x2e1)][_0x4cfdef(0x1e9)](_0x23094c);return _0x4ed9aa!==void 0x0&&window[_0x4cfdef(0x246)](_0x4ed9aa),this[_0x4cfdef(0x490)][_0x4cfdef(0x390)](es(_0x23094c),this[_0x4cfdef(0x35e)][_0x4cfdef(0x1e9)](_0x23094c))[_0x4cfdef(0x39a)](()=>this['_saveTaskMap']['delete'](_0x23094c));}async['exhaustSavingTask'](){const _0x5234fe=_0x87081d,_0x2ea257=[];this[_0x5234fe(0x2e1)]['forEach']((_0x326ad6,_0x59b340)=>{const _0x35e17e=_0x5234fe;window[_0x35e17e(0x246)](_0x326ad6),_0x2ea257[_0x35e17e(0x1ab)](this['_saveCache'](_0x59b340)['then'](()=>{this['_saveTaskMap']['delete'](_0x59b340);}));}),await Promise['all'](_0x2ea257);}['_setupBeforeClosingHandler'](){const _0x33fb58=_0x87081d;this['disposeWithMe'](this[_0x33fb58(0x460)][_0x33fb58(0x36a)](()=>{const _0x1ec62b=_0x33fb58;if(this['_saveTaskMap'][_0x1ec62b(0x25e)])return this[_0x1ec62b(0x45a)]['t'](_0x1ec62b(0x42b));}));}};D=kn([Oe(0x0,_0x5d255f),Oe(0x1,_0x4b5ce8),Oe(0x2,_0x276384),Oe(0x3,_0x1b956a(_0x2db4b8)),Oe(0x4,_0x1b956a(_0xa786bc))],D);function es(_0x3de11b){const _0x552ef4=_0x87081d;return _0x552ef4(0x329)+_0x3de11b;}const tt=_0x1b08c0('univer-pro.collaboration-client.single-active-unit-service');var Us=(_0x1d2197=>(_0x1d2197[_0x1d2197[_0x87081d(0x4c0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1d2197[_0x1d2197[_0x87081d(0x472)]=0x1]='OTHER_CLIENTS_EDITING',_0x1d2197))(Us||{});const ts=0x7530,ss=_0x87081d(0x1b8);class Vn extends _0x1ee863{constructor(){const _0x5e483d=_0x87081d;super(),_(this,_0x5e483d(0x356),_0x1540f0[_0x5e483d(0x2b1)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x5e483d(0x31d),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x5e483d(0x23e),new Map()),_(this,_0x5e483d(0x470),new Map()),this[_0x5e483d(0x4fd)]();}[_0x87081d(0x23c)](){const _0x2d0735=_0x87081d;super['dispose'](),this[_0x2d0735(0x23e)]['forEach']((_0x5b1b61,_0x45134b)=>this['_removeClearOtherTimer'](_0x45134b)),this[_0x2d0735(0x3cd)]&&window[_0x2d0735(0x2c4)](this['_heartbeatTimer']);}[_0x87081d(0x3d8)](_0x35be89){const _0x107b6b=_0x87081d;return this[_0x107b6b(0x303)](_0x35be89)[_0x107b6b(0x3b6)](_0x1980f0());}[_0x87081d(0x4a3)](_0xc1ef1e){const _0x3978a1=_0x87081d;this[_0x3978a1(0x46b)][_0x3978a1(0x25e)]===0x0&&this[_0x3978a1(0x465)](),this[_0x3978a1(0x46b)][_0x3978a1(0x2ac)](_0xc1ef1e),this[_0x3978a1(0x3f0)]({'type':0x0,'memberID':this[_0x3978a1(0x356)],'unitIDs':[_0xc1ef1e],'isForwarded':!0x1});}[_0x87081d(0x32a)](_0x273ffe){const _0x18687f=_0x87081d;this[_0x18687f(0x46b)][_0x18687f(0x3c7)](_0x273ffe),this[_0x18687f(0x46b)][_0x18687f(0x25e)]===0x0&&this[_0x18687f(0x3cd)]&&window[_0x18687f(0x2c4)](this[_0x18687f(0x3cd)]);}[_0x87081d(0x4fd)](){const _0x1bf2a8=_0x87081d;this[_0x1bf2a8(0x343)](_0x3b697b(_0x28ccd8(window,_0x1bf2a8(0x214))[_0x1bf2a8(0x347)](_0x3c2a48=>{const _0x108c7f=_0x1bf2a8;if(_0x3c2a48[_0x108c7f(0x21d)]!==ss||!_0x3c2a48['newValue'])return;const _0x2d0ebe=JSON['parse'](_0x3c2a48[_0x108c7f(0x400)]);this[_0x108c7f(0x237)](_0x2d0ebe);}))),window[_0x1bf2a8(0x2ee)]('unload',()=>this[_0x1bf2a8(0x3f0)]({'type':0x1,'memberID':this[_0x1bf2a8(0x356)],'unitIDs':Array[_0x1bf2a8(0x1fc)](this[_0x1bf2a8(0x46b)])}));}[_0x87081d(0x237)](_0x580151){const _0x5568df=_0x87081d;switch(_0x580151[_0x5568df(0x47c)]){case 0x0:this[_0x5568df(0x2bc)](_0x580151);break;case 0x1:this[_0x5568df(0x4e9)](_0x580151);break;case 0x2:this['_handleHeartbeatEvent'](_0x580151);break;}}['_handleJoinEvent'](_0x1792d2){const _0x46406b=_0x87081d,{unitIDs:_0x400420,memberID:_0x142658,isForwarded:_0x13967d}=_0x1792d2;_0x400420[_0x46406b(0x1c8)](_0x28a7a8=>{const _0x2a58ee=_0x46406b;if(!_0x13967d&&this[_0x2a58ee(0x31d)]['has'](_0x28a7a8)&&this['_ensureSubject'](_0x28a7a8)[_0x2a58ee(0x4fe)](0x1),!this[_0x2a58ee(0x31d)][_0x2a58ee(0x382)](_0x28a7a8)||!this['_unitOnClients'][_0x2a58ee(0x1e9)](_0x28a7a8)[_0x2a58ee(0x382)](_0x142658)){const _0x45e3f6=this[_0x2a58ee(0x31d)][_0x2a58ee(0x1e9)](_0x28a7a8)||new Set();_0x45e3f6[_0x2a58ee(0x2ac)](_0x142658),this[_0x2a58ee(0x31d)][_0x2a58ee(0x4af)](_0x28a7a8,_0x45e3f6),this[_0x2a58ee(0x283)](_0x142658);}}),_0x13967d||this[_0x46406b(0x3f0)]({'type':0x0,'memberID':this[_0x46406b(0x356)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x87081d(0x283)](_0x14ebde){const _0x52fb4f=_0x87081d;this[_0x52fb4f(0x3b8)](_0x14ebde);const _0x2ebc37=window[_0x52fb4f(0x3a7)](()=>{const _0x6ec7d4=_0x52fb4f;this[_0x6ec7d4(0x31d)][_0x6ec7d4(0x1c8)](_0x2d723b=>{_0x2d723b['delete'](_0x14ebde);});},ts*0x2);this[_0x52fb4f(0x23e)][_0x52fb4f(0x4af)](_0x14ebde,_0x2ebc37);}[_0x87081d(0x3b8)](_0x4e50b4){const _0x4de5d8=_0x87081d;if(this[_0x4de5d8(0x23e)][_0x4de5d8(0x382)](_0x4e50b4)){const _0x438264=this[_0x4de5d8(0x23e)][_0x4de5d8(0x1e9)](_0x4e50b4);_0x438264&&window[_0x4de5d8(0x246)](_0x438264),this[_0x4de5d8(0x23e)][_0x4de5d8(0x4af)](_0x4e50b4,null);}}[_0x87081d(0x4e9)](_0x8c134d){const _0x466c62=_0x87081d,{memberID:_0x2a10d8,unitIDs:_0x53a815}=_0x8c134d;_0x53a815[_0x466c62(0x1c8)](_0xa5978=>{const _0x236dba=_0x466c62;var _0x2aca41;const _0x39ca97=this[_0x236dba(0x31d)][_0x236dba(0x1e9)](_0xa5978);_0x39ca97&&(_0x39ca97[_0x236dba(0x3c7)](_0x2a10d8),(_0x2aca41=this[_0x236dba(0x303)](_0xa5978))==null||_0x2aca41['next'](_0x39ca97[_0x236dba(0x25e)]===0x0?0x0:0x1));}),this[_0x466c62(0x3b8)](_0x2a10d8);}['_handleHeartbeatEvent'](_0x345828){const _0x30b940=_0x87081d;this[_0x30b940(0x283)](_0x345828[_0x30b940(0x2c0)]);}[_0x87081d(0x3f0)](_0x5b33f1){const _0x227f72=_0x87081d;localStorage[_0x227f72(0x390)](ss,JSON[_0x227f72(0x2e5)](_0x5b33f1));}[_0x87081d(0x465)](){const _0x118bb2=_0x87081d;this[_0x118bb2(0x3cd)]=window[_0x118bb2(0x48a)](()=>{const _0x5655db=_0x118bb2;this[_0x5655db(0x3f0)]({'type':0x2,'memberID':this['_id']});},ts);}[_0x87081d(0x303)](_0x6360fe){const _0x55c48e=_0x87081d;return this[_0x55c48e(0x470)][_0x55c48e(0x382)](_0x6360fe)||this[_0x55c48e(0x470)][_0x55c48e(0x4af)](_0x6360fe,new _0x2561fc(0x0)),this[_0x55c48e(0x470)][_0x55c48e(0x1e9)](_0x6360fe);}}var Bn=Object[_0x87081d(0x318)],Fn=Object['getOwnPropertyDescriptor'],Wn=(_0x351ac8,_0x23ac4a,_0x5c634e,_0x5a11e7)=>{const _0x11a528=_0x87081d;for(var _0x53f00c=_0x5a11e7>0x1?void 0x0:_0x5a11e7?Fn(_0x23ac4a,_0x5c634e):_0x23ac4a,_0x1ac95d=_0x351ac8[_0x11a528(0x46a)]-0x1,_0x4e103c;_0x1ac95d>=0x0;_0x1ac95d--)(_0x4e103c=_0x351ac8[_0x1ac95d])&&(_0x53f00c=(_0x5a11e7?_0x4e103c(_0x23ac4a,_0x5c634e,_0x53f00c):_0x4e103c(_0x53f00c))||_0x53f00c);return _0x5a11e7&&_0x53f00c&&Bn(_0x23ac4a,_0x5c634e,_0x53f00c),_0x53f00c;},is=(_0x83509e,_0x302cd8)=>(_0x339e5e,_0x1d6184)=>_0x302cd8(_0x339e5e,_0x1d6184,_0x83509e);let Je=class{constructor(_0x8e516b,_0x34b2de){const _0x3b1e4e=_0x87081d;this[_0x3b1e4e(0x440)]=_0x8e516b,this['_transformService']=_0x34b2de;}['transformIMECache'](_0x41e22){const _0x1e88f0=_0x87081d;this[_0x1e88f0(0x299)](_0x41e22),this[_0x1e88f0(0x411)](_0x41e22);}[_0x87081d(0x31f)](_0x329131){const _0x204bb2=_0x87081d,_0x27b560=this['_injector'][_0x204bb2(0x1e9)](_0x34b802),{redoCache:_0x908ce7}=_0x27b560[_0x204bb2(0x368)]();if(_0x908ce7[_0x204bb2(0x46a)]===0x0)return _0x329131;let _0x4ce157=_0x1540f0[_0x204bb2(0x2d0)](_0x329131['mutations'][0x0]);for(let _0x35d9a2=0x0;_0x35d9a2<_0x908ce7['length'];_0x35d9a2++){const _0x5118d9={'id':_0x204bb2(0x2a0),'params':{..._0x908ce7[_0x35d9a2]}},_0x45d17b=this[_0x204bb2(0x290)][_0x204bb2(0x47f)](_0x4ce157,_0x5118d9,!0x1);if(_0x364f8f(_0x45d17b))throw _0x45d17b['error'];_0x4ce157=_0x45d17b['m1Prime'];}return{..._0x1540f0['deepClone'](_0x329131),'mutations':[_0x4ce157]};}['_transformUndoRedoStack'](_0x1d7671){const _0x5e2fba=_0x87081d,_0x3d3ed1=this['_injector']['get'](_0x34b802),{undoCache:_0x3ea250,redoCache:_0x2e97eb}=_0x3d3ed1[_0x5e2fba(0x368)]();if(_0x3ea250[_0x5e2fba(0x46a)]===0x0||_0x2e97eb[_0x5e2fba(0x46a)]===0x0)return;const _0x591edd=[],_0x58cf0b=[];let _0x802142=_0x1540f0[_0x5e2fba(0x2d0)](_0x1d7671['mutations'][0x0]),_0x50d2ef=_0x1540f0[_0x5e2fba(0x2d0)](_0x1d7671[_0x5e2fba(0x41e)][0x0]);for(let _0x2ed8d2=_0x3ea250[_0x5e2fba(0x46a)]-0x1;_0x2ed8d2>=0x0;_0x2ed8d2--){const _0x1f18e5={'id':_0x5e2fba(0x2a0),'params':{..._0x3ea250[_0x2ed8d2]}},_0x1bd5e8={'id':'doc.mutation.rich-text-editing','params':{..._0x2e97eb[_0x2ed8d2]}},_0x18e37a=this[_0x5e2fba(0x290)][_0x5e2fba(0x47f)](_0x802142,_0x1f18e5,!0x1),_0x1fb1a7=this[_0x5e2fba(0x290)][_0x5e2fba(0x47f)](_0x50d2ef,_0x1bd5e8,!0x1);if(_0x364f8f(_0x18e37a))throw _0x18e37a[_0x5e2fba(0x289)];if(_0x364f8f(_0x1fb1a7))throw _0x1fb1a7[_0x5e2fba(0x289)];_0x591edd[_0x5e2fba(0x377)](_0x18e37a[_0x5e2fba(0x36f)][_0x5e2fba(0x428)]),_0x58cf0b[_0x5e2fba(0x377)](_0x1fb1a7['m2Prime'][_0x5e2fba(0x428)]),_0x802142=_0x18e37a[_0x5e2fba(0x449)],_0x50d2ef=_0x1fb1a7['m1Prime'];}_0x3d3ed1[_0x5e2fba(0x1cd)]({'undoCache':_0x591edd,'redoCache':_0x58cf0b});}[_0x87081d(0x411)](_0x25a86d){const _0x2c3131=_0x87081d,_0x5397c0=this['_injector']['get'](_0x34b802),_0x5bdc8b=_0x5397c0[_0x2c3131(0x207)]();if(_0x5bdc8b==null)return;const _0x2c8fd5=[{'id':_0x2c3131(0x2a0),'params':{'unitId':_0x25a86d[_0x2c3131(0x3a8)],'actions':null,'textRanges':[_0x5bdc8b]}}],_0x13f958=this[_0x2c3131(0x290)][_0x2c3131(0x43b)](_0x25a86d,_0x2c8fd5);if(!_0x522a4(_0x13f958))throw _0x13f958['error'];const _0x123707=_0x13f958[_0x2c3131(0x36f)][0x0][_0x2c3131(0x428)]['textRanges'];Array[_0x2c3131(0x2d5)](_0x123707)&&_0x123707[_0x2c3131(0x46a)]&&_0x5397c0[_0x2c3131(0x2b3)](_0x123707[0x0]);}};Je=Wn([is(0x0,_0x1b956a(_0x4bf6fc)),is(0x1,_0x4e495a)],Je);var Gn=Object['defineProperty'],Yn=Object[_0x87081d(0x314)],Kn=(_0x497b98,_0x2262f2,_0x4a722a,_0x4052a9)=>{const _0x5316b5=_0x87081d;for(var _0x20f6f6=_0x4052a9>0x1?void 0x0:_0x4052a9?Yn(_0x2262f2,_0x4a722a):_0x2262f2,_0x5ef130=_0x497b98[_0x5316b5(0x46a)]-0x1,_0x2316f2;_0x5ef130>=0x0;_0x5ef130--)(_0x2316f2=_0x497b98[_0x5ef130])&&(_0x20f6f6=(_0x4052a9?_0x2316f2(_0x2262f2,_0x4a722a,_0x20f6f6):_0x2316f2(_0x20f6f6))||_0x20f6f6);return _0x4052a9&&_0x20f6f6&&Gn(_0x2262f2,_0x4a722a,_0x20f6f6),_0x20f6f6;},ns=(_0x4567eb,_0xd31eb4)=>(_0x22ba32,_0x183f03)=>_0xd31eb4(_0x22ba32,_0x183f03,_0x4567eb);let ze=class{constructor(_0x3b2a66,_0x133702){const _0x4a0504=_0x87081d;this[_0x4a0504(0x440)]=_0x3b2a66,this[_0x4a0504(0x290)]=_0x133702;}[_0x87081d(0x1b1)](_0x1a39c2){const _0x192227=_0x87081d;var _0x5705e7;const _0xf95fa8=this[_0x192227(0x440)][_0x192227(0x1e9)](_0x188da2),_0x4f786f=(_0x5705e7=_0xf95fa8[_0x192227(0x453)]())!=null?_0x5705e7:[],_0x4d0e90=_0x4f786f==null?void 0x0:_0x4f786f[_0x192227(0x234)](_0x249015);if(_0x4d0e90[_0x192227(0x46a)]===0x0)return;const _0x101cbe=[{'id':_0x192227(0x2a0),'params':{'unitId':_0x1a39c2['unitID'],'actions':null,'textRanges':_0x4d0e90}}],_0x1849a0=this[_0x192227(0x290)][_0x192227(0x43b)](_0x1a39c2,_0x101cbe);if(!_0x522a4(_0x1849a0))throw _0x1849a0['error'];const _0x35e95f=_0x1849a0[_0x192227(0x36f)][0x0][_0x192227(0x428)][_0x192227(0x20d)];Array['isArray'](_0x35e95f)&&_0x35e95f[_0x192227(0x46a)]&&_0xf95fa8[_0x192227(0x29f)](_0x35e95f,!0x1);}};ze=Kn([ns(0x0,_0x1b956a(_0x4bf6fc)),ns(0x1,_0x4e495a)],ze);function ys(_0x4585d3){const _0x4fe9a1=_0x87081d;let _0x3b6f14='';for(const _0x33b2ce of _0x4585d3){const {startOffset:_0x3b6a41,endOffset:_0x1a904c,isActive:_0x125838}=_0x33b2ce;_0x3b6f14[_0x4fe9a1(0x46a)]&&(_0x3b6f14+=','),_0x3b6f14+=_0x3b6a41+':'+_0x1a904c+':'+(_0x125838?'1':'0');}return _0x3b6f14;}function Xn(_0x87e561){const _0x45380b=_0x87081d,_0x236194=_0x87e561['split'](','),_0x780964=[];for(const _0x32d99c of _0x236194){const [_0x29838a,_0x517fbf,_0x4bd2e5]=_0x32d99c[_0x45380b(0x1aa)](':');_0x780964[_0x45380b(0x1ab)]({'startOffset':Number(_0x29838a),'endOffset':Number(_0x517fbf),'collapsed':_0x29838a===_0x517fbf,'isActive':_0x4bd2e5==='1'});}return _0x780964[_0x45380b(0x376)](_0x418e8e=>_0x418e8e[_0x45380b(0x386)])||(_0x780964[0x0][_0x45380b(0x386)]=!0x0),_0x780964;}class xt extends _0x53ce5a{constructor(){const _0x5468f9=_0x87081d;super(...arguments),_(this,_0x5468f9(0x42f),new _0x2561fc(null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x5468f9(0x225)]());}[_0x87081d(0x276)](_0x2a9aba){const _0x4fda57=_0x87081d,{unitID:_0xa6240a,memberID:_0x5c3ecb,textRanges:_0x3dd3d0}=_0x2a9aba,_0x38fc47=ys(_0x3dd3d0),_0x2d72d6={'unitID':_0xa6240a,'memberID':_0x5c3ecb,'selection':_0x38fc47};this[_0x4fda57(0x42f)][_0x4fda57(0x4fe)](_0x2d72d6);}}var Jn=Object[_0x87081d(0x318)],zn=Object[_0x87081d(0x314)],qn=(_0x666e5a,_0x570ad2,_0x207775,_0x2a83b7)=>{const _0x155de1=_0x87081d;for(var _0x426e68=_0x2a83b7>0x1?void 0x0:_0x2a83b7?zn(_0x570ad2,_0x207775):_0x570ad2,_0x8aa2b2=_0x666e5a[_0x155de1(0x46a)]-0x1,_0x2faf6b;_0x8aa2b2>=0x0;_0x8aa2b2--)(_0x2faf6b=_0x666e5a[_0x8aa2b2])&&(_0x426e68=(_0x2a83b7?_0x2faf6b(_0x570ad2,_0x207775,_0x426e68):_0x2faf6b(_0x426e68))||_0x426e68);return _0x2a83b7&&_0x426e68&&Jn(_0x570ad2,_0x207775,_0x426e68),_0x426e68;},rs=(_0x5a8025,_0x18532a)=>(_0xebc922,_0x3da480)=>_0x18532a(_0xebc922,_0x3da480,_0x5a8025);function Zn(_0x154669){const _0x459c55=_0x87081d,{unitID:_0x542e91,mutations:_0xf34b05}=_0x154669;return{'unitId':_0x542e91,'subUnitId':_0xf34b05[0x0]['params'][_0x459c55(0x40c)]};}let qe=class{constructor(_0x42cbbd,_0x3e0929){const _0x6474b4=_0x87081d;this['_injector']=_0x42cbbd,this[_0x6474b4(0x290)]=_0x3e0929;}[_0x87081d(0x1b1)](_0x433b44){const _0x5b144b=_0x87081d;var _0x5f47e3,_0x3a9796,_0x3e23be;const _0x47ce4c=this[_0x5b144b(0x440)]['get'](_0x5973ef),{unitId:_0x1e7e9f,subUnitId:_0x3dd50e}=Zn(_0x433b44),_0x2bee27=_0x47ce4c[_0x5b144b(0x27e)](_0x1e7e9f)[_0x5b144b(0x32b)]();if(_0x2bee27[_0x5b144b(0x46a)]===0x0||!_0x1e7e9f||!_0x3dd50e)return;const _0x49a7c9=[{'id':_0x2ce045['id'],'params':{'unitId':_0x1e7e9f,'subUnitId':_0x3dd50e,'selections':_0x1540f0[_0x5b144b(0x2d0)](_0x2bee27)}}],_0x5c3448=this[_0x5b144b(0x290)][_0x5b144b(0x43b)](_0x433b44,_0x49a7c9);if(!_0x522a4(_0x5c3448))throw _0x5c3448[_0x5b144b(0x289)];const _0x575f27=(_0x3e23be=(_0x3a9796=(_0x5f47e3=_0x5c3448[_0x5b144b(0x36f)][0x0])==null?void 0x0:_0x5f47e3[_0x5b144b(0x428)])==null?void 0x0:_0x3a9796[_0x5b144b(0x22f)])!=null?_0x3e23be:_0x2bee27;Array[_0x5b144b(0x2d5)](_0x575f27)&&_0x575f27['length']&&this[_0x5b144b(0x440)][_0x5b144b(0x1e9)](_0x15992c)[_0x5b144b(0x224)](_0x2ce045['id'],{'unitId':_0x1e7e9f,'subUnitId':_0x3dd50e,'selections':_0x575f27});}};qe=qn([rs(0x0,_0x1b956a(_0x4bf6fc)),rs(0x1,_0x4e495a)],qe);const Qn=new Set([_0x171b5c['id']]);function os(_0x2d26d8,_0x32363d,_0x4b7b17,_0x1f79be,_0x285707){const _0x2d7dce=_0x87081d;var _0x37d912,_0xe1b76d,_0x18ae95,_0x57057c;const _0x420e81=[];for(const _0x414302 of _0x2d26d8)if(Qn[_0x2d7dce(0x382)](_0x414302['id'])){if(_0x420e81[_0x2d7dce(0x46a)]>0x0)break;_0x420e81[_0x2d7dce(0x1ab)](_0x414302);break;}else _0x420e81['push'](_0x414302);const _0x5774bd=(_0xe1b76d=(_0x37d912=_0x285707['getCurrentUser']())==null?void 0x0:_0x37d912[_0x2d7dce(0x1ce)])!=null?_0xe1b76d:'unknown',_0x4d0227=(_0x57057c=(_0x18ae95=_0x285707['getCurrentUser']())==null?void 0x0:_0x18ae95[_0x2d7dce(0x2c0)])!=null?_0x57057c:'unknown';return{'changeset':{'unitID':_0x32363d,'type':_0x4a77df(_0x4b7b17[_0x2d7dce(0x2ec)](_0x32363d)),'baseRev':_0x1f79be[_0x2d7dce(0x27c)](_0x32363d),'revision':0x0,'userID':_0x5774bd,'memberID':_0x4d0227,'mutations':_0x420e81},'pendingMutations':_0x2d26d8[_0x2d7dce(0x3d1)](_0x420e81[_0x2d7dce(0x46a)])};}function er(_0x359253,_0x1ff16f,_0x3011b5,_0x54e6cc,_0x41ad2c){const _0x544bc4=_0x87081d;var _0x48d667,_0x5b504d,_0x1dd241,_0x35d8fa;const _0x2ec51d=[_0x359253[_0x544bc4(0x1ec)]((_0x975b9e,_0x33319a)=>{const _0x2d4c6a=_0x544bc4;var _0x3ef0be;const {id:_0x4744d}=_0x975b9e,{id:_0x53e639,type:_0x4954b5}=_0x33319a,_0x577b94=(_0x3ef0be=_0x975b9e[_0x2d4c6a(0x428)])!=null?_0x3ef0be:{'actions':null},_0x473fb9=_0x33319a[_0x2d4c6a(0x428)];if(_0x4744d&&_0x4744d!==_0x53e639)throw new Error(_0x2d4c6a(0x4f8)+_0x4744d+'\x20-\x20'+_0x53e639+'.');return{..._0x975b9e,'id':_0x53e639,'type':_0x4954b5,'params':{'unitId':_0x473fb9[_0x2d4c6a(0x20b)],'textRanges':_0x473fb9[_0x2d4c6a(0x20d)],'actions':_0x4266b8[_0x2d4c6a(0x2f5)](_0x577b94[_0x2d4c6a(0x4f1)],_0x473fb9[_0x2d4c6a(0x4f1)])}};},{})],_0x5078db=(_0x5b504d=(_0x48d667=_0x41ad2c['getCurrentUser']())==null?void 0x0:_0x48d667['userID'])!=null?_0x5b504d:_0x544bc4(0x24a),_0x14235b=(_0x35d8fa=(_0x1dd241=_0x41ad2c[_0x544bc4(0x3b1)]())==null?void 0x0:_0x1dd241['memberID'])!=null?_0x35d8fa:_0x544bc4(0x24a);return{'changeset':{'unitID':_0x1ff16f,'type':_0x4a77df(_0x3011b5['getUnitType'](_0x1ff16f)),'baseRev':_0x54e6cc[_0x544bc4(0x27c)](_0x1ff16f),'revision':0x0,'userID':_0x5078db,'memberID':_0x14235b,'mutations':_0x2ec51d},'pendingMutations':[]};}const tr={'id':_0x53ecf2['id'],'type':_0xc9d637[_0x87081d(0x4eb)],'params':{}};var sr=Object[_0x87081d(0x318)],ir=Object['getOwnPropertyDescriptor'],ce=(_0x3a244b,_0x582295,_0x2a1d47,_0x2beeb0)=>{const _0x254f5e=_0x87081d;for(var _0x53465a=_0x2beeb0>0x1?void 0x0:_0x2beeb0?ir(_0x582295,_0x2a1d47):_0x582295,_0x567326=_0x3a244b[_0x254f5e(0x46a)]-0x1,_0x2d8cf4;_0x567326>=0x0;_0x567326--)(_0x2d8cf4=_0x3a244b[_0x567326])&&(_0x53465a=(_0x2beeb0?_0x2d8cf4(_0x582295,_0x2a1d47,_0x53465a):_0x2d8cf4(_0x53465a))||_0x53465a);return _0x2beeb0&&_0x53465a&&sr(_0x582295,_0x2a1d47,_0x53465a),_0x53465a;},f=(_0x4b5d60,_0x5f2bbc)=>(_0x319f33,_0x3c906b)=>_0x5f2bbc(_0x319f33,_0x3c906b,_0x4b5d60),P=(_0x3f2a25=>(_0x3f2a25['NOT_COLLAB']=_0x87081d(0x1db),_0x3f2a25[_0x87081d(0x1e3)]=_0x87081d(0x4c8),_0x3f2a25[_0x87081d(0x349)]=_0x87081d(0x419),_0x3f2a25[_0x87081d(0x3ee)]='awaiting',_0x3f2a25[_0x87081d(0x236)]=_0x87081d(0x359),_0x3f2a25['FETCH_MISS']=_0x87081d(0x3a5),_0x3f2a25['CONFLICT']=_0x87081d(0x3b7),_0x3f2a25[_0x87081d(0x2c5)]=_0x87081d(0x468),_0x3f2a25))(P||{});class he{constructor(_0x1eb8a9,_0x40beaa,_0x555100,_0x4b11ea,_0x51bd7f,_0x5475fa,_0x58baa2,_0x33d990,_0x586bd3){const _0x38076b=_0x87081d;_(this,'_awaitingChangeset',null),_(this,_0x38076b(0x3c2),[]),(this['unitID']=_0x1eb8a9,this[_0x38076b(0x47c)]=_0x40beaa,this['_handler']=_0x51bd7f,this['_commandService']=_0x5475fa,this[_0x38076b(0x46d)]=_0x58baa2,this[_0x38076b(0x4fa)]=_0x33d990,this[_0x38076b(0x1b0)]=_0x586bd3,this[_0x38076b(0x331)]=_0x555100,this[_0x38076b(0x3c2)]=_0x4b11ea);}[_0x87081d(0x40d)](_0xd098eb){const _0x29df99=_0x87081d,_0x5cc7a1=this['_revisionService'][_0x29df99(0x27c)](this[_0x29df99(0x3a8)]);return _0xd098eb['revision']>_0x5cc7a1+0x1?(this[_0x29df99(0x3f5)]['onMissingChangesets']({'from':_0x5cc7a1,'to':_0xd098eb['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1afcc5){const _0x146f57=_0x87081d;this[_0x146f57(0x46d)][_0x146f57(0x1f2)](this[_0x146f57(0x3a8)],_0x1afcc5);}[_0x87081d(0x1f4)](_0x44734d){const _0x386ed1=_0x87081d;var _0x3546b8,_0x3febd3;(_0x3febd3=(_0x3546b8=this['_handler'])[_0x386ed1(0x279)])==null||_0x3febd3[_0x386ed1(0x2cf)](_0x3546b8,_0x44734d);}[_0x87081d(0x3e1)](_0x52adb6){const _0x2d0262=_0x87081d;var _0x5fbe0a,_0x4d1aa0;return(_0x4d1aa0=(_0x5fbe0a=this[_0x2d0262(0x3f5)])['onTransformIME'])==null?void 0x0:_0x4d1aa0['call'](_0x5fbe0a,_0x52adb6);}['_transformRemoteChangesetByIMECache'](_0x2b7bc2){const _0x20597c=_0x87081d;var _0x28603d,_0xe62096,_0x21a66b;return(_0x21a66b=(_0xe62096=(_0x28603d=this['_handler'])[_0x20597c(0x1fd)])==null?void 0x0:_0xe62096[_0x20597c(0x2cf)](_0x28603d,_0x2b7bc2))!=null?_0x21a66b:_0x2b7bc2;}[_0x87081d(0x1f8)](_0x4e4783){const _0x4269bb=_0x87081d;var _0x3c7fc1,_0x38ad5a;if(this[_0x4269bb(0x47c)]===H[_0x4269bb(0x1c1)]){const {unitID:_0x2dea50,mutations:_0x2225b5,memberID:_0x206dba}=_0x4e4783,_0x1eb3c1=_0x2225b5[0x0][_0x4269bb(0x428)][_0x4269bb(0x20d)];Array[_0x4269bb(0x2d5)](_0x1eb3c1)&&_0x1eb3c1[_0x4269bb(0x46a)]>0x0&&((_0x38ad5a=(_0x3c7fc1=this[_0x4269bb(0x3f5)])[_0x4269bb(0x433)])==null||_0x38ad5a['call'](_0x3c7fc1,{'unitID':_0x2dea50,'memberID':_0x206dba,'textRanges':_0x1eb3c1}));}}[_0x87081d(0x21b)](){const _0x505222=_0x87081d;this[_0x505222(0x1b0)]['updateOfflineData'](this[_0x505222(0x3a8)],this[_0x505222(0x47c)],this['_awaitingChangeset'],this[_0x505222(0x3c2)]);}[_0x87081d(0x374)](){const _0x352fec=_0x87081d;return this[_0x352fec(0x4fa)]['getCurrentRevForDocument'](this[_0x352fec(0x3a8)]);}['_incrementRevisionNumber'](){const _0x11078a=_0x87081d;this[_0x11078a(0x4fa)][_0x11078a(0x306)](this[_0x11078a(0x3a8)]);}['_executeRemoteChangeset'](_0x4265ec){const _0x204da2=_0x87081d;var _0x398e11;const _0x301d50=this[_0x204da2(0x1af)](_0x4265ec),_0x57935a=_0x2a22c6(_0x301d50['mutations'],this[_0x204da2(0x248)],{'fromCollab':!0x0});if(!_0x57935a[_0x204da2(0x3cf)])throw _0x57935a[_0x204da2(0x289)]instanceof Error?_0x57935a[_0x204da2(0x289)]:new Error((_0x398e11=_0x57935a['error'])!=null?_0x398e11:'[CollaborationState]:\x20apply\x20error!');this[_0x204da2(0x3e1)](_0x301d50),this[_0x204da2(0x402)](_0x4265ec),this[_0x204da2(0x1f4)](_0x301d50),this[_0x204da2(0x1f8)](_0x301d50),this[_0x204da2(0x458)]();}}let Ue=class extends he{constructor(_0x23d3b8,_0x2a8269,_0x1d8483,_0x4d9870,_0x5223de,_0x447664,_0x219706,_0x4f757e,_0x2ade7f,_0x111db5){const _0xbdeee=_0x87081d;super(_0x23d3b8,_0x2a8269,null,[],_0x1d8483,_0x4f757e,_0x219706,_0x4d9870,_0x5223de),_(this,'status',_0xbdeee(0x4c8)),(this['_injector']=_0x447664,this[_0xbdeee(0x3e7)]=_0x2ade7f,this[_0xbdeee(0x290)]=_0x111db5);}[_0x87081d(0x34c)](_0x4039f2){const _0xcfd239=_0x87081d,_0x2ee85c=this[_0xcfd239(0x440)][_0xcfd239(0x427)](G,this['unitID'],this[_0xcfd239(0x47c)],[_0x4039f2],this[_0xcfd239(0x3f5)]);return _0x2ee85c[_0xcfd239(0x4db)](),_0x2ee85c[_0xcfd239(0x21b)](),_0x2ee85c;}[_0x87081d(0x3d5)](_0x2126dc){const _0x2e962e=_0x87081d;if(this['_checkMissing'](_0x2126dc))return this['_injector'][_0x2e962e(0x427)](K,this[_0x2e962e(0x3a8)],this['type'],null,[],null,[_0x2126dc],this[_0x2e962e(0x3f5)]);try{const _0x601016=this[_0x2e962e(0x290)][_0x2e962e(0x43b)](_0x2126dc,[tr]);if(_0x522a4(_0x601016)){const {c1Prime:_0x4e3513}=_0x601016;return this[_0x2e962e(0x445)](_0x4e3513),this;}throw _0x601016[_0x2e962e(0x289)];}catch(_0x20ae64){return this[_0x2e962e(0x3e7)][_0x2e962e(0x289)](_0x20ae64),this[_0x2e962e(0x2ff)](!0x1);}}['_onConflict'](_0x5981de){const _0x46b47d=_0x87081d;return this[_0x46b47d(0x440)]['createInstance'](Z,this['unitID'],this[_0x46b47d(0x47c)],null,[],this['_handler'],_0x5981de);}[_0x87081d(0x2dc)](){const _0x191053=_0x87081d;throw new Error(_0x191053(0x40a));}[_0x87081d(0x256)](){const _0x35bc3e=_0x87081d;throw new Error(_0x35bc3e(0x42d));}[_0x87081d(0x4dc)](){const _0x4856af=_0x87081d;return this[_0x4856af(0x440)][_0x4856af(0x427)](Q,this[_0x4856af(0x3a8)],this[_0x4856af(0x47c)],null,[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x4007c9=_0x87081d;throw new Error(_0x4007c9(0x35b));}};Ue=ce([f(0x3,_0x1b956a(_0xa786bc)),f(0x4,_0x1b956a(D)),f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x22132f),f(0x7,_0x15992c),f(0x8,_0x82a609),f(0x9,_0x4e495a)],Ue);let G=class extends he{constructor(_0x436ced,_0x3f4710,_0x5b0360,_0x398bc2,_0x14f29c,_0x3b4640,_0x1dab05,_0x590389,_0x37f6d8,_0x716c14,_0x26e204,_0x47a33e,_0x24d1cc,_0x2b2673){const _0x8cd88a=_0x87081d;super(_0x436ced,_0x3f4710,null,_0x5b0360,_0x398bc2,_0x716c14,_0x2b2673,_0x3b4640,_0x1dab05),_(this,'status',_0x8cd88a(0x419)),_(this,_0x8cd88a(0x3ac),null),_(this,_0x8cd88a(0x44f),null),(this[_0x8cd88a(0x440)]=_0x14f29c,this[_0x8cd88a(0x2e6)]=_0x590389,this[_0x8cd88a(0x3e7)]=_0x37f6d8,this['_configService']=_0x26e204,this[_0x8cd88a(0x290)]=_0x47a33e,this['_univerInstanceService']=_0x24d1cc);}[_0x87081d(0x34c)](_0x5993cc){const _0x269b1d=_0x87081d;return this[_0x269b1d(0x3c2)][_0x269b1d(0x1ab)](_0x5993cc),this[_0x269b1d(0x21b)](),this;}['onRemoteChangeset'](_0x363bc2){const _0x2075e1=_0x87081d;if(this['_checkMissing'](_0x363bc2))return this[_0x2075e1(0x469)](),this['_injector'][_0x2075e1(0x427)](K,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x363bc2],this['_handler']);try{const _0x2780be=this[_0x2075e1(0x290)][_0x2075e1(0x43b)](_0x363bc2,this[_0x2075e1(0x3c2)]);if(_0x522a4(_0x2780be)){const {c1Prime:_0x196134,m2Prime:_0x33d7d9}=_0x2780be;this[_0x2075e1(0x445)](_0x196134);const _0x2a498c=this[_0x2075e1(0x440)][_0x2075e1(0x427)](G,this[_0x2075e1(0x3a8)],this[_0x2075e1(0x47c)],_0x33d7d9,this[_0x2075e1(0x3f5)]);return this[_0x2075e1(0x469)](),_0x2a498c['_schedule'](this[_0x2075e1(0x3ac)]?Math[_0x2075e1(0x254)](0x0,new Date()['getTime']()-this[_0x2075e1(0x3ac)]):this[_0x2075e1(0x463)]()),_0x2a498c;}throw _0x2780be[_0x2075e1(0x289)];}catch(_0x14a664){return this['_logService'][_0x2075e1(0x289)](_0x14a664),this[_0x2075e1(0x2ff)](!0x1);}}[_0x87081d(0x2dc)](){const _0x1cfbbd=_0x87081d;throw new Error(_0x1cfbbd(0x3de));}['onRemoteRej'](){const _0x547f95=_0x87081d;throw new Error(_0x547f95(0x4ff));}['toggleOffline'](){const _0x25c737=_0x87081d;return this['_clearScheduledTask'](),this[_0x25c737(0x440)][_0x25c737(0x427)](Q,this['unitID'],this[_0x25c737(0x47c)],null,this[_0x25c737(0x3c2)],this['_handler']);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x4db)](_0x1e6859){const _0x562451=_0x87081d;_0x1e6859=_0x1e6859!=null?_0x1e6859:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()[_0x562451(0x45b)](),this[_0x562451(0x44f)]=setTimeout(()=>{const _0x525a71=_0x562451;this[_0x525a71(0x469)]();let _0x27e287=null;switch(this[_0x525a71(0x47c)]){case H[_0x525a71(0x471)]:{_0x27e287=os(this[_0x525a71(0x3c2)],this['unitID'],this['_univerInstanceService'],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]);break;}case H['UNIVER_DOC']:{this[_0x525a71(0x3c2)][_0x525a71(0x3ea)](_0x1a9a5d=>_0x1a9a5d['id']===_0x40568f['id'])?_0x27e287=er(this['_pendingMutations'],this[_0x525a71(0x3a8)],this['_univerInstanceService'],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]):_0x27e287=os(this[_0x525a71(0x3c2)],this['unitID'],this[_0x525a71(0x2bb)],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x525a71(0x47c)]+_0x525a71(0x2b6));}const {changeset:_0x7fd4f1,pendingMutations:_0xb131b4}=_0x27e287;this['_handler'][_0x525a71(0x4f9)](_0x7fd4f1);const _0xc401d6=_0xb131b4[_0x525a71(0x46a)]?this[_0x525a71(0x440)]['createInstance'](Y,this[_0x525a71(0x3a8)],this['type'],_0x7fd4f1,_0xb131b4,this[_0x525a71(0x3f5)]):this[_0x525a71(0x440)][_0x525a71(0x427)](q,this[_0x525a71(0x3a8)],this['type'],_0x7fd4f1,this['_handler']);_0xc401d6[_0x525a71(0x21b)](),this[_0x525a71(0x3f5)][_0x525a71(0x4dd)](this,_0xc401d6);},_0x1e6859);}[_0x87081d(0x463)](){const _0x22a0b2=_0x87081d;var _0x50f47f;return(_0x50f47f=this[_0x22a0b2(0x252)][_0x22a0b2(0x38a)](_n))!=null?_0x50f47f:ln;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x163fb5=_0x87081d;this[_0x163fb5(0x44f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x163fb5(0x44f)]=null);}[_0x87081d(0x2ff)](_0x5a53db){const _0x3e61ea=_0x87081d;return this[_0x3e61ea(0x469)](),this[_0x3e61ea(0x440)]['createInstance'](Z,this[_0x3e61ea(0x3a8)],this[_0x3e61ea(0x47c)],null,this[_0x3e61ea(0x3c2)],this[_0x3e61ea(0x3f5)],_0x5a53db);}};G=ce([f(0x4,_0x1b956a(_0x4bf6fc)),f(0x5,_0x1b956a(_0xa786bc)),f(0x6,_0x1b956a(D)),f(0x7,_0x1b956a(ne)),f(0x8,_0x82a609),f(0x9,_0x15992c),f(0xa,_0x5d255f),f(0xb,_0x4e495a),f(0xc,_0x1d5396),f(0xd,_0x22132f)],G);let q=class extends he{constructor(_0x2d2cd6,_0x236d10,_0x5e33b4,_0x1f8f13,_0xb51783,_0x2e51e1,_0x29837d,_0x3e5da4,_0x280873,_0x1c87c2,_0x3c8160){const _0xe9d540=_0x87081d;super(_0x2d2cd6,_0x236d10,_0x5e33b4,[],_0x1f8f13,_0x3e5da4,_0x3c8160,_0x2e51e1,_0x29837d),_(this,_0xe9d540(0x3a9),_0xe9d540(0x441)),(this[_0xe9d540(0x440)]=_0xb51783,this[_0xe9d540(0x3e7)]=_0x280873,this[_0xe9d540(0x290)]=_0x1c87c2);}[_0x87081d(0x34c)](_0x596c6d){const _0x3f5323=_0x87081d,_0x3aa43b=this[_0x3f5323(0x440)][_0x3f5323(0x427)](Y,this[_0x3f5323(0x3a8)],this[_0x3f5323(0x47c)],this['_awaitingChangeset'],[_0x596c6d],this['_handler']);return _0x3aa43b[_0x3f5323(0x21b)](),_0x3aa43b;}[_0x87081d(0x3d5)](_0x5c9d06){const _0x1c4eeb=_0x87081d;if(this[_0x1c4eeb(0x40d)](_0x5c9d06))return this[_0x1c4eeb(0x440)]['createInstance'](K,this['unitID'],this[_0x1c4eeb(0x47c)],this[_0x1c4eeb(0x331)],[],null,[_0x5c9d06],this[_0x1c4eeb(0x3f5)]);try{const _0x27aed9=this[_0x1c4eeb(0x290)][_0x1c4eeb(0x2f2)]([_0x5c9d06],[this[_0x1c4eeb(0x331)]],!0x1);if(_0xcffb46(_0x27aed9)){const {c1Prime:_0x11b99d,c2Prime:_0x9240dd}=_0x27aed9;this['_executeRemoteChangeset'](_0x11b99d[0x0]),_0x9240dd[0x0][_0x1c4eeb(0x2b5)]=this[_0x1c4eeb(0x374)]();const _0x57c35c=this[_0x1c4eeb(0x440)]['createInstance'](q,this[_0x1c4eeb(0x3a8)],this['type'],_0x9240dd[0x0],this['_handler']);return _0x57c35c[_0x1c4eeb(0x21b)](),_0x57c35c;}return this[_0x1c4eeb(0x2ff)](!0x1);}catch(_0x347b33){return this[_0x1c4eeb(0x3e7)][_0x1c4eeb(0x289)](_0x347b33),this[_0x1c4eeb(0x2ff)](!0x1);}}[_0x87081d(0x2dc)](_0x42b43a){const _0x564f5f=_0x87081d,_0x46c501=this['_revisionService'][_0x564f5f(0x27c)](this[_0x564f5f(0x3a8)]);if(_0x42b43a['revision']<_0x46c501-0x1)return this;if(this[_0x564f5f(0x40d)](_0x42b43a))return this[_0x564f5f(0x440)][_0x564f5f(0x427)](K,this[_0x564f5f(0x3a8)],this[_0x564f5f(0x47c)],null,[],this[_0x564f5f(0x331)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x25219c=this[_0x564f5f(0x440)][_0x564f5f(0x427)](Ue,this[_0x564f5f(0x3a8)],this[_0x564f5f(0x47c)],this[_0x564f5f(0x3f5)]);return _0x25219c[_0x564f5f(0x21b)](),_0x25219c;}[_0x87081d(0x256)](_0x1985c7){const _0x394327=_0x87081d;return this[_0x394327(0x2ff)](!!(_0x1985c7!=null&&_0x1985c7[_0x394327(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x3e6358=_0x87081d;return this['_injector'][_0x3e6358(0x427)](Q,this[_0x3e6358(0x3a8)],this['type'],this['_awaitingChangeset'],[],this[_0x3e6358(0x3f5)]);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x363)](){const _0x16d04d=_0x87081d;this[_0x16d04d(0x3f5)][_0x16d04d(0x4f9)](this[_0x16d04d(0x331)]);}['_onConflict'](_0x3fb85b){const _0x4be02e=_0x87081d;return this[_0x4be02e(0x440)]['createInstance'](Z,this['unitID'],this[_0x4be02e(0x47c)],this['_awaitingChangeset'],[],this[_0x4be02e(0x3f5)],_0x3fb85b);}};q=ce([f(0x4,_0x1b956a(_0x4bf6fc)),f(0x5,_0x1b956a(_0xa786bc)),f(0x6,_0x1b956a(D)),f(0x7,_0x15992c),f(0x8,_0x82a609),f(0x9,_0x4e495a),f(0xa,_0x22132f)],q);let Y=class extends he{constructor(_0x75190b,_0x5b23cb,_0x3d22b9,_0x3b668d,_0x335a28,_0x21d750,_0x3d1fb5,_0x3ecf3f,_0x101a2e,_0x4009a5,_0xa7d11b,_0x37a6fc){const _0x4d2091=_0x87081d;super(_0x75190b,_0x5b23cb,_0x3d22b9,_0x3b668d,_0x335a28,_0x101a2e,_0x37a6fc,_0x3d1fb5,_0x3ecf3f),_(this,'status',_0x4d2091(0x359)),(this[_0x4d2091(0x440)]=_0x21d750,this[_0x4d2091(0x3e7)]=_0x4009a5,this['_transformService']=_0xa7d11b);}[_0x87081d(0x34c)](_0x654047){const _0x429ce0=_0x87081d;return this[_0x429ce0(0x3c2)][_0x429ce0(0x1ab)](_0x654047),this;}[_0x87081d(0x3d5)](_0x2b1ed8){const _0x1b46d7=_0x87081d;if(this['_checkMissing'](_0x2b1ed8))return this[_0x1b46d7(0x440)][_0x1b46d7(0x427)](K,this[_0x1b46d7(0x3a8)],this[_0x1b46d7(0x47c)],this[_0x1b46d7(0x331)],this[_0x1b46d7(0x3c2)],null,[_0x2b1ed8],this['_handler']);try{const _0x4195fb=this[_0x1b46d7(0x290)][_0x1b46d7(0x2f2)]([_0x2b1ed8],[this[_0x1b46d7(0x331)]],!0x1);if(_0xcffb46(_0x4195fb)){const {c1Prime:_0x466955,c2Prime:_0xc2e402}=_0x4195fb,_0xc2eaff=this['_transformService']['transformMutationsWithChangeset'](_0x466955[0x0],this['_pendingMutations']);if(_0x522a4(_0xc2eaff)){const {c1Prime:_0x367164,m2Prime:_0x3b6165}=_0xc2eaff;return this[_0x1b46d7(0x445)](_0x367164),_0xc2e402[0x0][_0x1b46d7(0x2b5)]=this[_0x1b46d7(0x374)](),this[_0x1b46d7(0x440)]['createInstance'](Y,this[_0x1b46d7(0x3a8)],this[_0x1b46d7(0x47c)],_0xc2e402[0x0],_0x3b6165,this[_0x1b46d7(0x3f5)]);}throw _0xc2eaff[_0x1b46d7(0x289)];}throw _0x4195fb[_0x1b46d7(0x289)];}catch(_0x5954dc){return this[_0x1b46d7(0x3e7)][_0x1b46d7(0x289)](_0x5954dc),this['_onConflict'](!0x1);}}[_0x87081d(0x2dc)](_0x3c5057){const _0x5bb28a=_0x87081d;if(this['_checkMissing'](_0x3c5057))return this[_0x5bb28a(0x440)][_0x5bb28a(0x427)](K,this[_0x5bb28a(0x3a8)],this[_0x5bb28a(0x47c)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x5bb28a(0x3f5)]);this[_0x5bb28a(0x458)]();const _0x48865e=this[_0x5bb28a(0x440)][_0x5bb28a(0x427)](G,this[_0x5bb28a(0x3a8)],this[_0x5bb28a(0x47c)],this[_0x5bb28a(0x3c2)],this[_0x5bb28a(0x3f5)]);return _0x48865e['_schedule'](),_0x48865e[_0x5bb28a(0x21b)](),_0x48865e;}['onRemoteRej'](_0x25cbaf){const _0x39c204=_0x87081d;return this[_0x39c204(0x2ff)](!!(_0x25cbaf!=null&&_0x25cbaf[_0x39c204(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x13b3a4=_0x87081d;return this[_0x13b3a4(0x440)]['createInstance'](Q,this[_0x13b3a4(0x3a8)],this['type'],this[_0x13b3a4(0x331)],this[_0x13b3a4(0x3c2)],this[_0x13b3a4(0x3f5)]);}['toggleOnline'](){return this;}['resend'](){const _0x485ae7=_0x87081d;this[_0x485ae7(0x3f5)][_0x485ae7(0x4f9)](this[_0x485ae7(0x331)]);}['_onConflict'](_0x1c2da7){const _0x1f5229=_0x87081d;return this[_0x1f5229(0x440)]['createInstance'](Z,this[_0x1f5229(0x3a8)],this[_0x1f5229(0x47c)],null,this[_0x1f5229(0x3c2)],this[_0x1f5229(0x3f5)],_0x1c2da7);}};Y=ce([f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x1b956a(_0xa786bc)),f(0x7,_0x1b956a(D)),f(0x8,_0x15992c),f(0x9,_0x82a609),f(0xa,_0x4e495a),f(0xb,_0x22132f)],Y);let Z=class extends he{constructor(_0x2f147b,_0x5acbb8,_0x5c9547,_0x4bd872,_0x38be1b,_0x118e45=!0x1,_0x4714ba,_0xc15a3c,_0x3f68eb,_0x5a1ebc,_0x2c706c,_0x8c70c3,_0x476787){const _0x21c552=_0x87081d;super(_0x2f147b,_0x5acbb8,_0x5c9547,_0x4bd872,_0x38be1b,_0xc15a3c,_0x3f68eb,_0x2c706c,_0x5a1ebc),_(this,_0x21c552(0x3a9),_0x21c552(0x3b7)),(this[_0x21c552(0x271)]=_0x118e45,this[_0x21c552(0x1d4)]=_0x4714ba,this[_0x21c552(0x45a)]=_0x8c70c3,this[_0x21c552(0x48e)]=_0x476787,this[_0x21c552(0x1d0)](),this[_0x21c552(0x1e1)](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x87081d(0x2dc)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x87081d(0x384)](){return this;}[_0x87081d(0x363)](){const _0x596029=_0x87081d;throw new Error(_0x596029(0x28e));}['_clearLocalCache'](){const _0x5ae664=_0x87081d;this[_0x5ae664(0x1b0)][_0x5ae664(0x23a)](this[_0x5ae664(0x3a8)],this[_0x5ae664(0x47c)],null,[]);}[_0x87081d(0x1d0)](){const _0x28073f=_0x87081d;this['_isPermissionRej']?this[_0x28073f(0x48e)][_0x28073f(0x410)]({'title':this[_0x28073f(0x45a)]['t'](_0x28073f(0x204)),'content':this[_0x28073f(0x45a)]['t'](_0x28073f(0x407)),'type':'error','duration':0x0}):this[_0x28073f(0x48e)][_0x28073f(0x410)]({'title':this['_localeService']['t'](_0x28073f(0x315)),'content':this[_0x28073f(0x45a)]['t'](_0x28073f(0x261)),'type':'error','duration':0x0});}[_0x87081d(0x4ec)](){const _0x2b540a=_0x87081d;this['_permissionService'][_0x2b540a(0x1dd)](new _0x372984(this[_0x2b540a(0x3a8)])['id'],!0x1);}};Z=ce([f(0x6,_0x1b956a(_0x5543f8)),f(0x7,_0x15992c),f(0x8,_0x22132f),f(0x9,_0x1b956a(D)),f(0xa,_0x1b956a(_0xa786bc)),f(0xb,_0x1b956a(_0x2db4b8)),f(0xc,_0x11083e)],Z);let Q=class extends he{constructor(_0x51a5c0,_0x24167c,_0x5090b1,_0x425d64,_0x113f87,_0x2dc8f4,_0x2df86a,_0x50d6f0,_0x359ce8,_0x194b26){const _0x5b8099=_0x87081d;super(_0x51a5c0,_0x24167c,_0x5090b1,_0x425d64,_0x113f87,_0x359ce8,_0x194b26,_0x2df86a,_0x50d6f0),_(this,'status',_0x5b8099(0x468)),this[_0x5b8099(0x440)]=_0x2dc8f4;}[_0x87081d(0x34c)](_0x48b18a){const _0x30d41b=_0x87081d;return this[_0x30d41b(0x3c2)][_0x30d41b(0x1ab)](_0x48b18a),this[_0x30d41b(0x21b)](),this;}[_0x87081d(0x3d5)](_0x5b70fb){const _0x2d6a62=_0x87081d;throw new Error(_0x2d6a62(0x22c));}[_0x87081d(0x2dc)](){const _0x4c96a3=_0x87081d;throw new Error(_0x4c96a3(0x442));}[_0x87081d(0x256)](){const _0x392e23=_0x87081d;throw new Error(_0x392e23(0x330));}['toggleOffline'](){return this;}['toggleOnline'](){const _0x4137b5=_0x87081d,{_injector:_0x5182d6,_pendingMutations:_0x4f8ae7,_awaitingChangeset:_0x3baa97,unitID:_0x25e813,_handler:_0x27cdd8,type:_0x45b192}=this,_0xee8c85=Ls(_0x5182d6,_0x25e813,_0x45b192,_0x3baa97,_0x4f8ae7,_0x27cdd8);return _0xee8c85 instanceof G?_0xee8c85[_0x4137b5(0x4db)]():(_0xee8c85 instanceof Y||_0xee8c85 instanceof q)&&_0xee8c85[_0x4137b5(0x363)](),_0xee8c85;}[_0x87081d(0x363)](){const _0x3a9516=_0x87081d;throw new Error(_0x3a9516(0x4c4));}};Q=ce([f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x1b956a(_0xa786bc)),f(0x7,_0x1b956a(D)),f(0x8,_0x15992c),f(0x9,_0x22132f)],Q);let K=class extends he{constructor(_0x43d1ec,_0x588d01,_0x149e89,_0x56ccbb,_0x40269a,_0x122227,_0x2553b2,_0x15f37f,_0x53ee99,_0x3f624c,_0x230779,_0x2164e7,_0x5ecff1,_0x36fef5){const _0x5060c8=_0x87081d;super(_0x43d1ec,_0x588d01,_0x149e89,_0x56ccbb,_0x2553b2,_0x2164e7,_0x5ecff1,_0x53ee99,_0x3f624c),_(this,_0x5060c8(0x3a9),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x40269a,this['_queuedRemoteChangesets']=_0x122227,this[_0x5060c8(0x440)]=_0x15f37f,this[_0x5060c8(0x3e7)]=_0x230779,this['_transformService']=_0x36fef5);}['onMissedChangesetFetched'](_0x2ee453){const _0x40b96d=_0x87081d;try{const _0x1ed74c=[..._0x2ee453,...this[_0x40b96d(0x43a)]],_0x245584=[this[_0x40b96d(0x331)]||this['_acknowledgedAwaitingChangeset']][_0x40b96d(0x421)](_0x10996d=>!!_0x10996d);let _0x5ec2f8,_0x53165b;if(_0x245584[_0x40b96d(0x46a)]){const _0x8da321=this['_transformService'][_0x40b96d(0x2f2)](_0x1ed74c,_0x245584,!0x1);if(!_0xcffb46(_0x8da321))throw _0x8da321[_0x40b96d(0x289)];_0x5ec2f8=_0x8da321[_0x40b96d(0x39e)],_0x53165b=_0x8da321['c2Prime'];}else _0x5ec2f8=_0x1ed74c,_0x53165b=[];let _0x251fb4=this[_0x40b96d(0x3c2)];_0x5ec2f8[_0x40b96d(0x1c8)](_0x984f69=>{const _0x59c466=_0x40b96d;let _0x4f377b;if(_0x251fb4[_0x59c466(0x46a)]){const _0x2b567d=this[_0x59c466(0x290)][_0x59c466(0x43b)](_0x984f69,_0x251fb4);if(!_0x522a4(_0x2b567d))throw _0x2b567d['error'];_0x4f377b=_0x2b567d['c1Prime'],_0x251fb4=_0x2b567d[_0x59c466(0x36f)];}else _0x4f377b=_0x984f69;this['_executeRemoteChangeset'](_0x4f377b);}),this[_0x40b96d(0x2ed)]&&this[_0x40b96d(0x458)](),this['_awaitingChangeset']&&_0x53165b[_0x40b96d(0x46a)]&&(_0x53165b[0x0][_0x40b96d(0x2b5)]=this[_0x40b96d(0x374)]());let _0x3f41ad;if(this[_0x40b96d(0x331)]&&_0x251fb4[_0x40b96d(0x46a)]!==0x0)_0x3f41ad=this['_injector'][_0x40b96d(0x427)](Y,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],_0x53165b[0x0],_0x251fb4,this[_0x40b96d(0x3f5)]);else{if(this['_awaitingChangeset']&&_0x251fb4['length']===0x0)_0x53165b[0x0][_0x40b96d(0x2b5)]=this['_getCurrentRevision'](),_0x3f41ad=this[_0x40b96d(0x440)][_0x40b96d(0x427)](q,this['unitID'],this[_0x40b96d(0x47c)],_0x53165b[0x0],this[_0x40b96d(0x3f5)]);else{if(_0x251fb4[_0x40b96d(0x46a)]!==0x0){const _0x255804=this[_0x40b96d(0x440)]['createInstance'](G,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],_0x251fb4,this[_0x40b96d(0x3f5)]);_0x255804[_0x40b96d(0x4db)](),_0x3f41ad=_0x255804;}else _0x3f41ad=this[_0x40b96d(0x440)][_0x40b96d(0x427)](Ue,this['unitID'],this['type'],this[_0x40b96d(0x3f5)]);}}return _0x3f41ad[_0x40b96d(0x21b)](),_0x3f41ad;}catch(_0x11f2b3){return this[_0x40b96d(0x3e7)][_0x40b96d(0x289)]('[FetchMissState]',_0x40b96d(0x3a4),_0x11f2b3),this[_0x40b96d(0x440)][_0x40b96d(0x427)](Z,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],this[_0x40b96d(0x331)],this[_0x40b96d(0x3c2)],this[_0x40b96d(0x3f5)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x390bc7){const _0x306ffb=_0x87081d;return this[_0x306ffb(0x3c2)][_0x306ffb(0x1ab)](_0x390bc7),this;}[_0x87081d(0x3d5)](_0xd61ff){const _0xf43fae=_0x87081d;return this[_0xf43fae(0x43a)][_0xf43fae(0x1ab)](_0xd61ff),this;}[_0x87081d(0x2dc)](_0x89831){const _0x1f7c1e=_0x87081d;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x1f7c1e(0x331)],this[_0x1f7c1e(0x331)]=null,this;throw new Error(_0x1f7c1e(0x212));}[_0x87081d(0x256)](_0x378aeb){const _0x34f236=_0x87081d;return this['_onConflict'](!!(_0x378aeb!=null&&_0x378aeb[_0x34f236(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x165ef=_0x87081d;return this[_0x165ef(0x440)][_0x165ef(0x427)](Q,this['unitID'],this[_0x165ef(0x47c)],this[_0x165ef(0x331)],this[_0x165ef(0x3c2)],this[_0x165ef(0x3f5)]);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x2ff)](_0x3171ac){const _0x282626=_0x87081d;return this['_injector'][_0x282626(0x427)](Z,this[_0x282626(0x3a8)],this[_0x282626(0x47c)],this[_0x282626(0x331)],this[_0x282626(0x3c2)],this[_0x282626(0x3f5)],_0x3171ac);}};K=ce([f(0x7,_0x1b956a(_0x4bf6fc)),f(0x8,_0x1b956a(_0xa786bc)),f(0x9,_0x1b956a(D)),f(0xa,_0x82a609),f(0xb,_0x15992c),f(0xc,_0x22132f),f(0xd,_0x4e495a)],K);function Ls(_0x438bed,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x2dcb4b,_0x48c36e){const _0x7a86cc=_0x87081d;return _0x2bfa2b&&_0x2dcb4b[_0x7a86cc(0x46a)]?_0x438bed[_0x7a86cc(0x427)](Y,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x2dcb4b,_0x48c36e):_0x2bfa2b?_0x438bed['createInstance'](q,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x48c36e):_0x2dcb4b[_0x7a86cc(0x46a)]?_0x438bed[_0x7a86cc(0x427)](G,_0x36e32a,_0x50fcb9,_0x2dcb4b,_0x48c36e):_0x438bed[_0x7a86cc(0x427)](Ue,_0x36e32a,_0x50fcb9,_0x48c36e);}var nr=Object[_0x87081d(0x318)],rr=Object[_0x87081d(0x314)],st=(_0x25c7b6,_0xf415d7,_0x492bd8,_0x428af9)=>{const _0x54ec17=_0x87081d;for(var _0x72382a=_0x428af9>0x1?void 0x0:_0x428af9?rr(_0xf415d7,_0x492bd8):_0xf415d7,_0x41162e=_0x25c7b6[_0x54ec17(0x46a)]-0x1,_0x552c42;_0x41162e>=0x0;_0x41162e--)(_0x552c42=_0x25c7b6[_0x41162e])&&(_0x72382a=(_0x428af9?_0x552c42(_0xf415d7,_0x492bd8,_0x72382a):_0x552c42(_0x72382a))||_0x72382a);return _0x428af9&&_0x72382a&&nr(_0xf415d7,_0x492bd8,_0x72382a),_0x72382a;},p=(_0x4cd6d9,_0x50d227)=>(_0x54ddba,_0x45f70f)=>_0x50d227(_0x54ddba,_0x45f70f,_0x4cd6d9);let Me=class extends _0x53ce5a{constructor(_0x56a946,_0x9f84e8,_0x240e0c){const _0xb73cf0=_0x87081d;super(),_(this,_0xb73cf0(0x3f7),new Map()),_(this,_0xb73cf0(0x3ed),new _0x1ace47()),(this[_0xb73cf0(0x440)]=_0x56a946,this['_collabSessionService']=_0x9f84e8,this['_univerInstanceService']=_0x240e0c,this[_0xb73cf0(0x4fd)]());}[_0x87081d(0x23c)](){const _0x258cdf=_0x87081d;super['dispose'](),this[_0x258cdf(0x3f7)][_0x258cdf(0x1c8)](_0x4061d4=>_0x4061d4['dispose']()),this[_0x258cdf(0x3f7)][_0x258cdf(0x291)]();}[_0x87081d(0x284)](_0x2023a7){const _0x47631b=_0x87081d;var _0x1446b3;return(_0x1446b3=this[_0x47631b(0x3f7)]['get'](_0x2023a7))!=null?_0x1446b3:null;}[_0x87081d(0x1a2)](_0x2f1458){const _0x353b60=_0x87081d,_0x71c743=this[_0x353b60(0x284)](_0x2f1458);return _0x71c743?_0x274530(_0x71c743):this[_0x353b60(0x3ed)]['pipe'](_0x381935(_0xa2686a=>_0xa2686a[_0x353b60(0x3a8)]===_0x2f1458));}[_0x87081d(0x4fd)](){const _0x1f30e1=_0x87081d;this[_0x1f30e1(0x2bb)]['getTypeOfUnitAdded$'](_0x5a714d['UNIVER_SHEET'])['pipe'](_0x3c23a9(this['dispose$']),_0xd2b55d(0x10))[_0x1f30e1(0x347)](async _0x55fc70=>{const _0x19ed1a=_0x1f30e1,_0x4ed844=_0x55fc70[_0x19ed1a(0x1b5)](),_0x7173d8=await this[_0x19ed1a(0x323)](_0x4ed844,H[_0x19ed1a(0x471)]);this[_0x19ed1a(0x3f7)][_0x19ed1a(0x4af)](_0x4ed844,_0x7173d8);}),this['_univerInstanceService'][_0x1f30e1(0x2c7)](_0x5a714d['UNIVER_DOC'])[_0x1f30e1(0x3b6)](_0x3c23a9(this[_0x1f30e1(0x20e)]),_0xd2b55d(0x10))['pipe'](_0x381935(_0x21e73e=>!_0x21e73e[_0x1f30e1(0x1b5)]()[_0x1f30e1(0x4ab)]('__')))[_0x1f30e1(0x347)](async _0xdbbf6e=>{const _0x18afe6=_0x1f30e1,_0x5592b8=_0xdbbf6e[_0x18afe6(0x1b5)](),_0x3c0897=await this[_0x18afe6(0x323)](_0x5592b8,H[_0x18afe6(0x1c1)]);this[_0x18afe6(0x3f7)]['set'](_0x5592b8,_0x3c0897);}),_0x1d3042(this[_0x1f30e1(0x2bb)][_0x1f30e1(0x223)](_0x5a714d[_0x1f30e1(0x471)]),this[_0x1f30e1(0x2bb)][_0x1f30e1(0x223)](_0x5a714d[_0x1f30e1(0x1c1)]))[_0x1f30e1(0x3b6)](_0x3c23a9(this[_0x1f30e1(0x20e)]))['subscribe'](_0x38cca3=>{const _0xa7ced2=_0x1f30e1,_0x30b8c3=_0x38cca3[_0xa7ced2(0x1b5)](),_0x45a93a=this[_0xa7ced2(0x3f7)][_0xa7ced2(0x1e9)](_0x30b8c3);_0x45a93a&&(_0x45a93a[_0xa7ced2(0x23c)](),this[_0xa7ced2(0x3f7)][_0xa7ced2(0x3c7)](_0x30b8c3));});}async['_startCollaboration'](_0x527bc0,_0x50426c){const _0x5e7715=_0x87081d,_0x1bc0da=await this[_0x5e7715(0x1ad)][_0x5e7715(0x316)](_0x527bc0),_0x308de9=this[_0x5e7715(0x440)][_0x5e7715(0x427)](this['_getCtorByUniverType'](_0x50426c),_0x527bc0,_0x50426c,_0x1bc0da);return await _0x308de9[_0x5e7715(0x310)](),this[_0x5e7715(0x3ed)][_0x5e7715(0x4fe)](_0x308de9),_0x308de9;}[_0x87081d(0x2c9)](_0x34f925){const _0x409076=_0x87081d;switch(_0x34f925){case H[_0x409076(0x1c1)]:return Et;case H[_0x409076(0x471)]:return Ct;default:throw new Error(_0x409076(0x25c)+_0x34f925);}}};Me=st([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],Me),p(0x0,_0x1b956a(_0x4bf6fc)),p(0x1,_0x1b956a(pe)),p(0x2,_0x1d5396)],Me);let Ze=class extends _0x53ce5a{constructor(_0x2aca5c,_0x581b86,_0x2fab0a,_0x20ed2a,_0xa8f7b2,_0x214919,_0x31e142,_0x5e6a4a,_0x3cfd5b,_0x994559,_0x5ca70f,_0x568b83,_0x248e49){const _0x410e73=_0x87081d;super(),_(this,_0x410e73(0x489),new _0x2561fc(null)),_(this,_0x410e73(0x2d8),this['_state$'][_0x410e73(0x225)]()),_(this,_0x410e73(0x425)),_(this,'_collaborationPaused',!0x1),_(this,'status$',this[_0x410e73(0x2d8)]['pipe'](_0x414fcf(_0x35b392=>_0x35b392?_0x35b392[_0x410e73(0x3a9)]:P[_0x410e73(0x2c5)]),_0x1f7f7f(0x1))),_(this,_0x410e73(0x2e7),!0x1),_(this,_0x410e73(0x3ef),[]),(this['unitID']=_0x2aca5c,this[_0x410e73(0x333)]=_0x581b86,this[_0x410e73(0x220)]=_0x2fab0a,this[_0x410e73(0x440)]=_0x20ed2a,this[_0x410e73(0x1b0)]=_0xa8f7b2,this[_0x410e73(0x281)]=_0x214919,this['_localeService']=_0x31e142,this[_0x410e73(0x4fa)]=_0x5e6a4a,this[_0x410e73(0x3e7)]=_0x3cfd5b,this['_commandService']=_0x994559,this['_messageService']=_0x5ca70f,this[_0x410e73(0x1d4)]=_0x568b83,this[_0x410e73(0x406)]=_0x248e49);}get[_0x87081d(0x2db)](){const _0x24f874=_0x87081d;return this[_0x24f874(0x425)];}async[_0x87081d(0x310)](){const _0x204945=_0x87081d;if(this[_0x204945(0x2db)])throw new Error(_0x204945(0x30b));await this[_0x204945(0x4fd)]();}[_0x87081d(0x44c)](){const _0x3eee08=_0x87081d;return this[_0x3eee08(0x344)]=!0x0,_0x3b697b(()=>{const _0x2df44a=_0x3eee08;this['_collaborationPaused']=!0x1,this[_0x2df44a(0x235)]();});}['_updateState'](_0x276f75){const _0x5a664b=_0x87081d;this[_0x5a664b(0x425)]=_0x276f75,this['_state$'][_0x5a664b(0x4fe)](_0x276f75);}async['_init'](){const _0x7c87de=_0x87081d;var _0x59077c;return this['_updateState'](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x59077c=this[_0x7c87de(0x406)])==null||_0x59077c[_0x7c87de(0x4a3)](this[_0x7c87de(0x3a8)]),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x406)]['getUnitStatus$'](this[_0x7c87de(0x3a8)])[_0x7c87de(0x347)](_0x3994d8=>{const _0x491b45=_0x7c87de;this[_0x491b45(0x3e7)][_0x491b45(0x4d5)]('[CollaborationEntity]',_0x491b45(0x476),_0x3994d8),_0x3994d8===Us[_0x491b45(0x472)]?(this[_0x491b45(0x243)][_0x491b45(0x410)]({'content':this['_localeService']['t'](_0x491b45(0x1e8)),'type':_0x4dda16[_0x491b45(0x3b0)]}),this[_0x491b45(0x1d4)][_0x491b45(0x1dd)](new _0x372984(this[_0x491b45(0x3a8)])['id'],!0x1)):this[_0x491b45(0x1d4)][_0x491b45(0x1dd)](new _0x372984(this[_0x491b45(0x3a8)])['id'],!0x0);})))),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x220)][_0x7c87de(0x2f6)][_0x7c87de(0x347)](_0x571941=>{const _0x34f19c=_0x7c87de;_0x571941===fe['ONLINE']?this[_0x34f19c(0x1cb)]():_0x571941===fe[_0x34f19c(0x2c5)]&&this[_0x34f19c(0x340)]();}))),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x220)][_0x7c87de(0x326)]['subscribe'](_0x53c448=>{const _0x3338d6=_0x7c87de;try{switch(_0x53c448[_0x3338d6(0x3ba)]){case _0xd3c20c[_0x3338d6(0x416)]:{this['_onRemoteChangeset'](_0x55bb16(_0x53c448[_0x3338d6(0x31c)]));break;}case _0xd3c20c['CHANGESET_ACK']:{this['_onRemoteACK'](_0x53c448[_0x3338d6(0x31c)]);break;}case _0xd3c20c['CHANGESET_REJ']:{this[_0x3338d6(0x3bf)]();break;}case _0xd3c20c[_0x3338d6(0x3f4)]:{this[_0x3338d6(0x33b)](_0x53c448[_0x3338d6(0x31c)][_0x3338d6(0x31e)][_0x3338d6(0x234)](_0x30ffd4=>_0x55bb16(_0x30ffd4)));break;}case _0xd3c20c[_0x3338d6(0x3fb)]:this[_0x3338d6(0x3bf)]({'isPermissionRej':!0x0});}}catch(_0x41061b){throw console[_0x3338d6(0x289)](_0x3338d6(0x4ba),_0x41061b),_0x41061b;}}))),this[_0x7c87de(0x425)];}[_0x87081d(0x36b)](){const _0x1eac40=_0x87081d;this[_0x1eac40(0x2e7)]=!0x1;}[_0x87081d(0x208)](){const _0xbb545d=_0x87081d;if(this[_0xbb545d(0x2e7)])throw new Error(_0xbb545d(0x4e0));this[_0xbb545d(0x2e7)]=!0x0;}[_0x87081d(0x4e1)](_0x3410ab){const _0x2c855e=_0x87081d;this['_lockTransition'](),this['_updateState'](this[_0x2c855e(0x425)][_0x2c855e(0x34c)](_0x3410ab)),this[_0x2c855e(0x36b)]();}['_onRemoteChangeset'](_0x5e7bf1){const _0x177b71=_0x87081d;if(!(_0x5e7bf1[_0x177b71(0x35f)]<=this[_0x177b71(0x4fa)][_0x177b71(0x27c)](this[_0x177b71(0x3a8)]))){if(this[_0x177b71(0x344)]){this['_remoteChangesetQueue'][_0x177b71(0x1ab)](_0x5e7bf1);return;}this[_0x177b71(0x2aa)](_0x5e7bf1);}}[_0x87081d(0x235)](){const _0x54755e=_0x87081d;this['_remoteChangesetQueue']['forEach'](_0x545216=>this[_0x54755e(0x2aa)](_0x545216)),this[_0x54755e(0x3ef)]=[];}[_0x87081d(0x2aa)](_0x332b7a){const _0x35a264=_0x87081d,_0x225337=this[_0x35a264(0x281)][_0x35a264(0x474)][_0x35a264(0x298)](this['_compressMutationService'][_0x35a264(0x474)][_0x35a264(0x31b)]()['COMPRESS_MUTATION_APPLY'])(_0x332b7a['mutations'],null)||_0x332b7a[_0x35a264(0x41e)],_0x3e8845={..._0x332b7a,'mutations':_0x225337};this[_0x35a264(0x208)](),this[_0x35a264(0x41c)](this[_0x35a264(0x425)][_0x35a264(0x3d5)](_0x3e8845)),this[_0x35a264(0x36b)]();}[_0x87081d(0x304)](_0x4033ba){const _0x1f10a3=_0x87081d;this['_lockTransition'](),this['_updateState'](this[_0x1f10a3(0x425)]['onRemoteAck'](_0x4033ba)),this[_0x1f10a3(0x36b)]();}[_0x87081d(0x3bf)](_0x5a00ec){const _0x1562f2=_0x87081d;this[_0x1562f2(0x208)](),this[_0x1562f2(0x41c)](this[_0x1562f2(0x425)][_0x1562f2(0x256)](_0x5a00ec)),this['_unlockTransition']();}[_0x87081d(0x33b)](_0x2e660f){const _0x3f586e=_0x87081d;if(!(this['_state']instanceof K))throw new TypeError(_0x3f586e(0x4a2));const _0x2a9fe1=_0x2e660f[_0x3f586e(0x234)](_0x1c0b1c=>{const _0x13c494=_0x3f586e,_0x395793=this[_0x13c494(0x281)][_0x13c494(0x474)][_0x13c494(0x298)](this[_0x13c494(0x281)][_0x13c494(0x474)][_0x13c494(0x31b)]()[_0x13c494(0x332)])(_0x1c0b1c['mutations'],null)||_0x1c0b1c[_0x13c494(0x41e)];return{..._0x1c0b1c,'mutations':_0x395793};});this[_0x3f586e(0x208)](),this[_0x3f586e(0x41c)](this[_0x3f586e(0x425)][_0x3f586e(0x342)](_0x2a9fe1)),this[_0x3f586e(0x36b)]();}['_toggleOffline'](){const _0x10b5db=_0x87081d;this[_0x10b5db(0x208)](),this[_0x10b5db(0x41c)](this[_0x10b5db(0x425)][_0x10b5db(0x4dc)]()),this[_0x10b5db(0x36b)]();}[_0x87081d(0x1cb)](){const _0x4db9f8=_0x87081d;this[_0x4db9f8(0x208)](),this[_0x4db9f8(0x41c)](this['_state'][_0x4db9f8(0x384)]()),this['_unlockTransition']();}async[_0x87081d(0x1bb)](){return new Promise(_0x18736f=>{const _0x59e064=_0x1fa5;this[_0x59e064(0x220)][_0x59e064(0x2f6)]['pipe'](_0x56d486(0x1))[_0x59e064(0x347)](async _0x41a72f=>{const _0x307888=_0x59e064;_0x18736f(await this[_0x307888(0x33e)](_0x41a72f===fe[_0x307888(0x28f)]));});});}[_0x87081d(0x46e)](){const _0xc8bd44=_0x87081d,_0x2918c8=this[_0xc8bd44(0x3a8)];return{'onStateChange':(_0x1ffc0a,_0x2dfd08)=>{const _0x54cb45=_0xc8bd44;if(_0x1ffc0a!==this[_0x54cb45(0x425)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1ffc0a['status']+'\x0aAfter:\x20'+_0x2dfd08[_0x54cb45(0x3a9)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x54cb45(0x41c)](_0x2dfd08);},'onSendChangeset':_0x4cb593=>{const _0x4ab5c0=_0xc8bd44,_0x4dcfbd={'eventID':_0xd3c20c[_0x4ab5c0(0x4e4)],'data':{'unitID':_0x4cb593['unitID'],'unitType':this[_0x4ab5c0(0x333)],'changeset':_0x4cb593,'memberID':this['_session'][_0x4ab5c0(0x241)]()}};this[_0x4ab5c0(0x220)][_0x4ab5c0(0x253)](_0x4dcfbd,this[_0x4ab5c0(0x3a8)]);},'onMissingChangesets':({from:_0x14366f,to:_0x4269b8})=>{const _0x282286=_0xc8bd44;this[_0x282286(0x3e7)][_0x282286(0x4d5)](_0x282286(0x42e),_0x282286(0x2f8)+_0x14366f+_0x282286(0x296)+_0x4269b8);const _0x2ac3ce={'eventID':_0xd3c20c[_0x282286(0x221)],'data':{'unitID':_0x2918c8,'unitType':this[_0x282286(0x333)],'from':_0x14366f,'to':_0x4269b8}};this[_0x282286(0x220)][_0x282286(0x253)](_0x2ac3ce,this['unitID']);}};}async[_0x87081d(0x33e)](_0x406ca9){const _0x1c3660=_0x87081d;var _0x12b870,_0x2dd416;const _0x355b85=await this[_0x1c3660(0x1b0)][_0x1c3660(0x1d9)](this[_0x1c3660(0x3a8)]),_0x230184=(_0x12b870=_0x355b85==null?void 0x0:_0x355b85[_0x1c3660(0x41e)])!=null?_0x12b870:[],_0x54fe87=(_0x2dd416=_0x355b85==null?void 0x0:_0x355b85[_0x1c3660(0x48b)])!=null?_0x2dd416:null,_0x469bf4=this[_0x1c3660(0x3a8)];try{this[_0x1c3660(0x30a)](_0x54fe87,_0x230184);}catch(_0x536a6a){this[_0x1c3660(0x3e7)]['error'](_0x536a6a);}const _0x59fa9e=this[_0x1c3660(0x46e)]();if(_0x406ca9){const _0x46e0c9=Ls(this[_0x1c3660(0x440)],_0x469bf4,this[_0x1c3660(0x333)],_0x54fe87,_0x230184,_0x59fa9e);return _0x46e0c9 instanceof G?_0x46e0c9[_0x1c3660(0x4db)]():(_0x46e0c9 instanceof Y||_0x46e0c9 instanceof q)&&_0x46e0c9['resend'](),_0x46e0c9;}return this[_0x1c3660(0x440)][_0x1c3660(0x427)](Q,_0x469bf4,this[_0x1c3660(0x333)],_0x54fe87,_0x230184,_0x59fa9e);}[_0x87081d(0x30a)](_0x51dc73,_0x53de53){const _0x6391a1=_0x87081d;var _0x171866,_0x5c6feb;const _0x599449=this[_0x6391a1(0x281)][_0x6391a1(0x474)][_0x6391a1(0x298)](this['_compressMutationService'][_0x6391a1(0x474)][_0x6391a1(0x31b)]()[_0x6391a1(0x332)]);(_0x171866=_0x599449((_0x51dc73==null?void 0x0:_0x51dc73['mutations'])||[],null))==null||_0x171866[_0x6391a1(0x1c8)](_0x35f69b=>this[_0x6391a1(0x248)][_0x6391a1(0x224)](_0x35f69b['id'],_0x35f69b[_0x6391a1(0x428)])),(_0x5c6feb=_0x599449(_0x53de53||[],null))==null||_0x5c6feb[_0x6391a1(0x1c8)](_0x5ca6cf=>this[_0x6391a1(0x248)][_0x6391a1(0x224)](_0x5ca6cf['id'],_0x5ca6cf[_0x6391a1(0x428)]));}};Ze=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x82a609),p(0x9,_0x15992c),p(0xa,_0x14fd53),p(0xb,_0x5543f8),p(0xc,_0x4b698d(tt))],Ze);let Et=class extends Ze{constructor(_0x449050,_0x1802bd,_0x149b78,_0x4446a8,_0xa811a2,_0x32c2bb,_0x541982,_0x488b31,_0x22e71d,_0x7fd8e6,_0x19d6bb,_0x51bbe2,_0x14d34d,_0xfb3330,_0x58827a,_0x452ff9,_0x4367d9){const _0x14528e=_0x87081d;super(_0x449050,_0x1802bd,_0x149b78,_0x4446a8,_0xa811a2,_0x32c2bb,_0x541982,_0x488b31,_0x14d34d,_0xfb3330,_0x58827a,_0x452ff9,_0x4367d9),this[_0x14528e(0x3a8)]=_0x449050,this[_0x14528e(0x47c)]=_0x1802bd,this[_0x14528e(0x1b7)]=_0x149b78,this[_0x14528e(0x1d1)]=_0x22e71d,this['_docTransformIMECacheService']=_0x7fd8e6,this[_0x14528e(0x4c2)]=_0x19d6bb,this[_0x14528e(0x233)]=_0x51bbe2;}[_0x87081d(0x46e)](){const _0x2b889a=_0x87081d,_0xb98b06=super[_0x2b889a(0x46e)]();return _0xb98b06['onTransformIME']=_0x48156a=>this['_docTransformIMECacheService']['transformIMECache'](_0x48156a),_0xb98b06['onTransformSelections']=_0x3c04d5=>this['_docTransformSelectionsService'][_0x2b889a(0x1b1)](_0x3c04d5),_0xb98b06[_0x2b889a(0x433)]=_0x3d9f8f=>this[_0x2b889a(0x233)]['syncEditingCollabCursor'](_0x3d9f8f),_0xb98b06['onTransformRemoteChangesetByIMECache']=_0x3c5169=>this[_0x2b889a(0x203)][_0x2b889a(0x31f)](_0x3c5169),_0xb98b06;}async[_0x87081d(0x4fd)](){const _0x40e4b3=_0x87081d,_0x564495=await super[_0x40e4b3(0x4fd)]();return this['disposeWithMe'](this[_0x40e4b3(0x248)][_0x40e4b3(0x3b9)]((_0x17ff70,_0x558be0)=>{const _0x3fa54b=_0x40e4b3;if(_0x17ff70[_0x3fa54b(0x47c)]!==_0xc9d637[_0x3fa54b(0x4eb)]||_0x558be0!=null&&_0x558be0['fromCollab']||_0x558be0!=null&&_0x558be0['onlyLocal'])return;const _0x1e3592=_0x17ff70[_0x3fa54b(0x428)];if((_0x1e3592==null?void 0x0:_0x1e3592[_0x3fa54b(0x20b)])!==this[_0x3fa54b(0x3a8)])return;let _0x2c30eb=_0x17ff70;if(_0x2c30eb['id']===_0x40568f['id']){const _0x10d7c5=_0x2c30eb[_0x3fa54b(0x428)];_0x2c30eb={'id':_0x40568f['id'],'type':_0xc9d637['MUTATION'],'params':{'unitId':_0x10d7c5['unitId'],'actions':_0x10d7c5[_0x3fa54b(0x4f1)],'textRanges':null}};}const _0x113bd0=this[_0x3fa54b(0x281)]['interceptor']['fetchThroughInterceptors'](this[_0x3fa54b(0x281)][_0x3fa54b(0x474)][_0x3fa54b(0x31b)]()[_0x3fa54b(0x409)])([_0x2c30eb],null)||[_0x2c30eb];this[_0x3fa54b(0x4e1)](_0x113bd0[0x0]);})),_0x564495;}};Et=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x1b956a(_0x17dea7)),p(0x9,_0x1b956a(Je)),p(0xa,_0x1b956a(ze)),p(0xb,_0x1b956a(xt)),p(0xc,_0x82a609),p(0xd,_0x15992c),p(0xe,_0x14fd53),p(0xf,_0x5543f8),p(0x10,_0x4b698d(tt))],Et);let Ct=class extends Ze{constructor(_0x4464e9,_0x5a5207,_0x539eac,_0x1b3d26,_0x3487b8,_0x5a6e8f,_0x5c1fd7,_0x43ec71,_0x588d6a,_0x23208c,_0x33b584,_0x595d2b,_0x24a097,_0x4e94b4){const _0x3e5138=_0x87081d;super(_0x4464e9,_0x5a5207,_0x539eac,_0x1b3d26,_0x3487b8,_0x5a6e8f,_0x5c1fd7,_0x43ec71,_0x23208c,_0x33b584,_0x595d2b,_0x24a097,_0x4e94b4),this[_0x3e5138(0x3a8)]=_0x4464e9,this[_0x3e5138(0x47c)]=_0x5a5207,this[_0x3e5138(0x1b7)]=_0x539eac,this[_0x3e5138(0x1f9)]=_0x588d6a;}['_createHandler'](){const _0x51f8a7=_0x87081d,_0x176557=super['_createHandler']();return _0x176557[_0x51f8a7(0x279)]=_0x2272a5=>this[_0x51f8a7(0x1f9)][_0x51f8a7(0x1b1)](_0x2272a5),_0x176557;}async['_init'](){const _0x4729cd=_0x87081d,_0x59577b=await super[_0x4729cd(0x4fd)]();return this[_0x4729cd(0x343)](this[_0x4729cd(0x248)]['onCommandExecuted']((_0x13df78,_0xdb37d2)=>{const _0x3897fb=_0x4729cd;if(_0x13df78[_0x3897fb(0x47c)]!==_0xc9d637['MUTATION']||_0xdb37d2!=null&&_0xdb37d2[_0x3897fb(0x255)]||_0xdb37d2!=null&&_0xdb37d2[_0x3897fb(0x4d1)])return;const _0x59fe37=_0x13df78['params'];if((_0x59fe37==null?void 0x0:_0x59fe37[_0x3897fb(0x20b)])!==this[_0x3897fb(0x3a8)])return;const _0x453757=_0x13df78,_0xe164fd=this['_compressMutationService'][_0x3897fb(0x474)]['fetchThroughInterceptors'](this[_0x3897fb(0x281)][_0x3897fb(0x474)][_0x3897fb(0x31b)]()[_0x3897fb(0x409)])([_0x453757],null)||[_0x453757];this[_0x3897fb(0x4e1)](_0xe164fd[0x0]);})),_0x59577b;}};Ct=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x1b956a(qe)),p(0x9,_0x82a609),p(0xa,_0x15992c),p(0xb,_0x14fd53),p(0xc,_0x5543f8),p(0xd,_0x4b698d(tt))],Ct);const as=[_0x87081d(0x228),_0x87081d(0x2e0),_0x87081d(0x226),_0x87081d(0x46c),_0x87081d(0x1f0),_0x87081d(0x4c7)];class Ht extends _0x1ee863{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x87081d(0x488)](_0x4fc30a){const _0x402453=_0x87081d;if(this[_0x402453(0x494)][_0x402453(0x382)](_0x4fc30a))return this[_0x402453(0x494)][_0x402453(0x1e9)](_0x4fc30a);const _0x4eca28=as[this[_0x402453(0x264)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%as[_0x402453(0x46a)],this['_assignedColors'][_0x402453(0x4af)](_0x4fc30a,_0x4eca28),_0x4eca28;}}var or=Object[_0x87081d(0x318)],ar=Object['getOwnPropertyDescriptor'],cr=(_0x4ec4a7,_0x13ddb5,_0x249349,_0x3d8c16)=>{for(var _0x3004fc=_0x3d8c16>0x1?void 0x0:_0x3d8c16?ar(_0x13ddb5,_0x249349):_0x13ddb5,_0x1ccef9=_0x4ec4a7['length']-0x1,_0x4f8b65;_0x1ccef9>=0x0;_0x1ccef9--)(_0x4f8b65=_0x4ec4a7[_0x1ccef9])&&(_0x3004fc=(_0x3d8c16?_0x4f8b65(_0x13ddb5,_0x249349,_0x3004fc):_0x4f8b65(_0x3004fc))||_0x3004fc);return _0x3d8c16&&_0x3004fc&&or(_0x13ddb5,_0x249349,_0x3004fc),_0x3004fc;},le=(_0x15b8d2,_0x80be56)=>(_0x4ea46f,_0x5b90d9)=>_0x80be56(_0x4ea46f,_0x5b90d9,_0x15b8d2);const hr=0x12c,_r=0x64,lr=()=>{let _0x437254=[],_0x438989=!0x1;return _0x43ad85=>{_0x437254['push'](_0x43ad85),_0x438989||(_0x438989=!0x0,setTimeout(()=>{_0x437254['forEach'](_0x434fb1=>_0x434fb1()),_0x437254=[],_0x438989=!0x1;}));};};let bt=class extends _0x53ce5a{constructor(_0x40eed0,_0x1bc92f,_0x227bd1,_0x1310b0,_0x30d945,_0x530534,_0x26c1ff,_0x595116){const _0x5c572c=_0x87081d;super(),_(this,_0x5c572c(0x351),!0x1),_(this,'_init',!0x1),_(this,_0x5c572c(0x48f),new _0x2561fc(new Map())),_(this,_0x5c572c(0x2e4),this[_0x5c572c(0x48f)]['asObservable']()),_(this,_0x5c572c(0x3da),new _0x2561fc([])),_(this,_0x5c572c(0x389),this['_roomMembers$'][_0x5c572c(0x3b6)](_0x1412d5(hr))),_(this,_0x5c572c(0x3fe),_0x331994((_0x42eb5f,_0x469958)=>{const _0x21bfa8=_0x5c572c,_0xcbdbca={'eventID':_0xd3c20c['UPDATE_CURSOR'],'data':{'unitID':this[_0x21bfa8(0x3a8)],'memberID':this[_0x21bfa8(0x220)][_0x21bfa8(0x241)](),'selection':_0x448ab0(_0x42eb5f,_0x469958[_0x21bfa8(0x2f1)])}};this['_session']['send'](_0xcbdbca,this[_0x21bfa8(0x3a8)]);},_r)),(this[_0x5c572c(0x3a8)]=_0x40eed0,this[_0x5c572c(0x220)]=_0x1bc92f,this[_0x5c572c(0x440)]=_0x227bd1,this[_0x5c572c(0x258)]=_0x1310b0,this['_memberService']=_0x30d945,this[_0x5c572c(0x2bb)]=_0x530534,this[_0x5c572c(0x248)]=_0x26c1ff,this['_refRangeService']=_0x595116);}get[_0x87081d(0x4a8)](){const _0xeaca63=_0x87081d;return this[_0xeaca63(0x48f)][_0xeaca63(0x275)]();}get[_0x87081d(0x4e8)](){const _0x59adfc=_0x87081d;return this[_0x59adfc(0x3da)][_0x59adfc(0x275)]();}[_0x87081d(0x23c)](){const _0xa6545f=_0x87081d;super[_0xa6545f(0x23c)](),this[_0xa6545f(0x48f)][_0xa6545f(0x4fe)](new Map()),this[_0xa6545f(0x48f)]['complete'](),this[_0xa6545f(0x3da)][_0xa6545f(0x4fe)]([]),this['_roomMembers$'][_0xa6545f(0x26e)]();}[_0x87081d(0x310)](){const _0x2aa866=_0x87081d;this[_0x2aa866(0x4fd)]||(this[_0x2aa866(0x4fd)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x3c23a9(this[_0x2aa866(0x20e)]))[_0x2aa866(0x347)](_0x5394ce=>{const _0xf7af0b=_0x2aa866;_0x5394ce===fe[_0xf7af0b(0x28f)]?this[_0xf7af0b(0x1cb)]():this[_0xf7af0b(0x340)]();}),this['_session'][_0x2aa866(0x326)][_0x2aa866(0x3b6)](_0x3c23a9(this['dispose$']))[_0x2aa866(0x347)](_0x4fc768=>{const _0x11a2f5=_0x2aa866,_0x15a5fc=_0x4fc768[_0x11a2f5(0x3ba)];_0x15a5fc===_0xd3c20c[_0x11a2f5(0x373)]&&this[_0x11a2f5(0x4aa)](_0x4fc768),_0x15a5fc===_0xd3c20c[_0x11a2f5(0x1b3)]&&this[_0x11a2f5(0x466)](_0x4fc768);}),this[_0x2aa866(0x231)](),this[_0x2aa866(0x343)](this['_commandService'][_0x2aa866(0x3b9)](_0x460af0=>{const _0x26f89f=_0x2aa866;if(this[_0x26f89f(0x351)]&&_0x460af0['id']===_0x2ce045['id']&&_0x460af0[_0x26f89f(0x428)][_0x26f89f(0x20b)]===this['unitID']){const _0x471b12=_0x460af0['params'];this[_0x26f89f(0x3fe)](_0x471b12['subUnitId'],_0x471b12[_0x26f89f(0x22f)][0x0]);}})));}[_0x87081d(0x4aa)](_0xbcdee9){const _0x5e8e3d=_0x87081d;var _0x3e5168,_0x1bcfca;const {memberID:_0x477b2d,selection:_0x1afd84}=_0xbcdee9[_0x5e8e3d(0x31c)],{sheetName:_0x2faa7f,range:_0xd4ee9}=_0x262cf1(_0x1afd84),_0x3e0290={'name':(_0x1bcfca=(_0x3e5168=this[_0x5e8e3d(0x2e6)][_0x5e8e3d(0x1ae)](this['unitID'],_0x477b2d))==null?void 0x0:_0x3e5168[_0x5e8e3d(0x33c)])!=null?_0x1bcfca:_0x5e8e3d(0x45e),'range':this['_getMergeRange'](_0x2faa7f,_0xd4ee9),'sheetID':_0x2faa7f,'color':this[_0x5e8e3d(0x258)][_0x5e8e3d(0x488)](_0x477b2d),'selection':_0x1afd84},_0x29fd53=this[_0x5e8e3d(0x4a8)];_0x29fd53['set'](_0x477b2d,_0x3e0290),this[_0x5e8e3d(0x48f)]['next'](_0x29fd53);}[_0x87081d(0x466)](_0x214eba){const _0x63c44c=_0x87081d,{memberID:_0x2ce285}=_0x214eba['data'],_0x1e7cfb=this[_0x63c44c(0x4a8)];_0x1e7cfb[_0x63c44c(0x3c7)](_0x2ce285),this[_0x63c44c(0x48f)]['next'](_0x1e7cfb);}[_0x87081d(0x22d)](_0x1a9982,_0x310cc3){const _0x106fb5=_0x87081d;var _0x12f34a,_0x486d1a;const _0x57ef8c=(_0x486d1a=(_0x12f34a=this['_univerInstanceService'][_0x106fb5(0x1c4)](this[_0x106fb5(0x3a8)]))==null?void 0x0:_0x12f34a[_0x106fb5(0x335)](_0x1a9982))==null?void 0x0:_0x486d1a[_0x106fb5(0x263)]();return(_0x57ef8c==null?void 0x0:_0x57ef8c['find'](_0x2c7db0=>_0x1ec52a[_0x106fb5(0x2df)](_0x2c7db0,_0x310cc3)))||_0x310cc3;}[_0x87081d(0x231)](){const _0x44e429=_0x87081d,_0x2ca683=new _0x173e9c(),_0x493c39=lr(),_0xdf31bc=()=>{const _0x1ea89a=_0x1fa5;_0x2ca683[_0x1ea89a(0x23c)]();const _0x2daaed=(_0xe7d27c,_0x516c75,_0x318ee8,_0x31e8c1)=>{const _0x403d14=_0x1ea89a;let _0x2c6600=[];switch(_0xe7d27c['id']){case _0x5a0c0b[_0x403d14(0x2b8)]:{_0x2c6600=_0x35f3b3(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x25f)]:{_0x2c6600=_0x3ada4b(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertColCommandId']:{_0x2c6600=_0x1d6b1e(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertRangeMoveDownCommandId']:{_0x2c6600=_0x5e73fe(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x1ed)]:{_0x2c6600=_0x320b17(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertRowCommandId']:{_0x2c6600=_0x2d43e9(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x3e0)]:{_0x2c6600=_0x3504f5(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['RemoveColCommandId']:{_0x2c6600=_0xf02d80(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x47e)]:{_0x2c6600=_0x39a961(_0xe7d27c,_0x31e8c1);break;}}const _0x4bc020=_0x30e48b(_0x2c6600,_0x31e8c1),_0x533998=this[_0x403d14(0x4a8)][_0x403d14(0x1e9)](_0x516c75);if(_0x533998&&_0x4bc020){const _0x4a8809={..._0x533998,'range':_0x4bc020};this[_0x403d14(0x4a8)][_0x403d14(0x4af)](_0x516c75,_0x4a8809),_0x493c39(()=>{const _0x366060=_0x403d14,_0x3402a2=this['_refRangeService'][_0x366060(0x24d)](_0x4bc020,_0x17db64=>(_0x3402a2[_0x366060(0x23c)](),_0x2daaed(_0x17db64,_0x516c75,_0x318ee8,_0x4bc020)));_0x2ca683['add'](_0x3402a2);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1ea89a(0x1c8)]((_0x545882,_0x7dcfdb)=>{const _0x35f1da=_0x1ea89a,{range:_0x10933d,sheetID:_0x58d292}=_0x545882,_0x55aa7d=this['_refRangeService']['registerRefRange'](_0x10933d,_0x52462e=>(_0x55aa7d[_0x35f1da(0x23c)](),_0x2daaed(_0x52462e,_0x7dcfdb,_0x58d292,_0x10933d)));_0x2ca683['add'](_0x55aa7d);});};this['disposeWithMe'](_0x3b697b(this['_cursorInfo$'][_0x44e429(0x347)](()=>{_0xdf31bc();})));}[_0x87081d(0x1cb)](){const _0x4020a1=_0x87081d;var _0x5b5fba,_0x1995c4;if(this[_0x4020a1(0x351)]=!0x0,((_0x5b5fba=this['_univerInstanceService'][_0x4020a1(0x4e7)]())==null?void 0x0:_0x5b5fba['getUnitId']())!==this[_0x4020a1(0x3a8)])return;const _0x28839a=(_0x1995c4=this[_0x4020a1(0x440)][_0x4020a1(0x1e9)](_0x5973ef)['getCurrentSelections']())==null?void 0x0:_0x1995c4[0x0],_0x1f1b3a=this[_0x4020a1(0x2bb)][_0x4020a1(0x4e6)](_0x5a714d[_0x4020a1(0x471)])[_0x4020a1(0x3c4)]();_0x28839a&&_0x1f1b3a&&this[_0x4020a1(0x3fe)](_0x1f1b3a[_0x4020a1(0x2fc)](),_0x28839a);}['_toggleOffline'](){this['_online']=!0x1;}};bt=cr([le(0x2,_0x1b956a(_0x4bf6fc)),le(0x3,_0x1b956a(Ht)),le(0x4,_0x1b956a(ne)),le(0x5,_0x1d5396),le(0x6,_0x15992c),le(0x7,_0x1b956a(_0x2d0dd9))],bt);var ur=Object['defineProperty'],dr=Object[_0x87081d(0x314)],mr=(_0x44767c,_0x1a2bfc,_0x3d69f3,_0x332275)=>{const _0xfbe5c3=_0x87081d;for(var _0x5ee214=_0x332275>0x1?void 0x0:_0x332275?dr(_0x1a2bfc,_0x3d69f3):_0x1a2bfc,_0x2fc6af=_0x44767c[_0xfbe5c3(0x46a)]-0x1,_0x13db13;_0x2fc6af>=0x0;_0x2fc6af--)(_0x13db13=_0x44767c[_0x2fc6af])&&(_0x5ee214=(_0x332275?_0x13db13(_0x1a2bfc,_0x3d69f3,_0x5ee214):_0x13db13(_0x5ee214))||_0x5ee214);return _0x332275&&_0x5ee214&&ur(_0x1a2bfc,_0x3d69f3,_0x5ee214),_0x5ee214;},te=(_0x374ddf,_0x5269b9)=>(_0x591234,_0x15c34b)=>_0x5269b9(_0x591234,_0x15c34b,_0x374ddf);const fr=0x12c,gr=0x64;let Rt=class extends _0x53ce5a{constructor(_0x4823db,_0x5112c1,_0x4ce5e6,_0x14afb9,_0x8b7d81,_0x50b0d8,_0x288172,_0x1e6466,_0x46b899){const _0x203c54=_0x87081d;super(),_(this,_0x203c54(0x351),!0x1),_(this,_0x203c54(0x4fd),!0x1),_(this,_0x203c54(0x48f),new _0x2561fc(new Map())),_(this,_0x203c54(0x2e4),this[_0x203c54(0x48f)]['asObservable']()),_(this,_0x203c54(0x3da),new _0x2561fc([])),_(this,_0x203c54(0x389),this['_roomMembers$']['pipe'](_0x1412d5(fr))),_(this,_0x203c54(0x3fe),_0x331994(_0x314848=>{const _0x350e52=_0x203c54,_0x2942e6={'eventID':_0xd3c20c[_0x350e52(0x373)],'data':{'unitID':this[_0x350e52(0x3a8)],'memberID':this[_0x350e52(0x220)]['getMemberID'](),'selection':ys(_0x314848)}};this['_session']['send'](_0x2942e6,this['unitID']);},gr)),(this['unitID']=_0x4823db,this[_0x203c54(0x220)]=_0x5112c1,this[_0x203c54(0x440)]=_0x4ce5e6,this[_0x203c54(0x258)]=_0x14afb9,this['_memberService']=_0x8b7d81,this[_0x203c54(0x30c)]=_0x50b0d8,this[_0x203c54(0x290)]=_0x288172,this[_0x203c54(0x2bb)]=_0x1e6466,this[_0x203c54(0x248)]=_0x46b899);}get['cursorInfo'](){const _0x2f8a89=_0x87081d;return this[_0x2f8a89(0x48f)][_0x2f8a89(0x275)]();}get[_0x87081d(0x4e8)](){const _0x2be875=_0x87081d;return this[_0x2be875(0x3da)][_0x2be875(0x275)]();}['dispose'](){const _0x125dae=_0x87081d;super[_0x125dae(0x23c)](),this[_0x125dae(0x48f)][_0x125dae(0x4fe)](new Map()),this[_0x125dae(0x48f)]['complete'](),this[_0x125dae(0x3da)][_0x125dae(0x4fe)]([]),this[_0x125dae(0x3da)][_0x125dae(0x26e)]();}[_0x87081d(0x310)](){const _0x413ba7=_0x87081d;this[_0x413ba7(0x4fd)]||(this['_init']=!0x0,this['_session'][_0x413ba7(0x2f6)][_0x413ba7(0x3b6)](_0x3c23a9(this[_0x413ba7(0x20e)]))[_0x413ba7(0x347)](_0x4bd32c=>{const _0xe97d4f=_0x413ba7;_0x4bd32c===fe[_0xe97d4f(0x28f)]?this[_0xe97d4f(0x1cb)]():this['_toggleOffline']();}),this[_0x413ba7(0x220)][_0x413ba7(0x326)]['pipe'](_0x3c23a9(this[_0x413ba7(0x20e)]))[_0x413ba7(0x347)](_0x222cb6=>{const _0x9003fc=_0x413ba7,_0x3e45d1=_0x222cb6['eventID'];_0x3e45d1===_0xd3c20c[_0x9003fc(0x373)]&&this[_0x9003fc(0x4aa)](_0x222cb6),_0x3e45d1===_0xd3c20c[_0x9003fc(0x1b3)]&&this[_0x9003fc(0x466)](_0x222cb6);}),this[_0x413ba7(0x343)](this[_0x413ba7(0x248)][_0x413ba7(0x3b9)](_0xa52c23=>{const _0x58a73c=_0x413ba7,_0xfc6445=_0xa52c23[_0x58a73c(0x428)];_0xfc6445!=null&&this[_0x58a73c(0x351)]&&_0xa52c23['id']===_0x28f206['id']&&_0xfc6445[_0x58a73c(0x20b)]===this[_0x58a73c(0x3a8)]&&_0xfc6445[_0x58a73c(0x245)]===!0x1&&this[_0x58a73c(0x3fe)](_0xfc6445[_0x58a73c(0x49e)]);})),this[_0x413ba7(0x30c)][_0x413ba7(0x242)][_0x413ba7(0x3b6)](_0x3c23a9(this['dispose$']))[_0x413ba7(0x347)](_0x529fbc=>{const _0x2da5fc=_0x413ba7;if((_0x529fbc==null?void 0x0:_0x529fbc[_0x2da5fc(0x3a8)])!==this[_0x2da5fc(0x3a8)])return;const _0x39fe4e={'eventID':_0xd3c20c[_0x2da5fc(0x373)],'data':_0x529fbc};this[_0x2da5fc(0x4aa)](_0x39fe4e);}),this[_0x413ba7(0x343)](this[_0x413ba7(0x248)][_0x413ba7(0x3b9)](_0x2664df=>{const _0x445138=_0x413ba7;if(_0x2664df[_0x445138(0x428)]==null)return;const _0x550296=_0x2664df['params'];if(_0x2664df['id']!==_0x40568f['id']||_0x550296[_0x445138(0x20b)]!==this[_0x445138(0x3a8)])return;const _0x267124={'id':_0x445138(0x2a0),'params':_0x550296},_0x5b9dde=this['cursorInfo'];for(const [_0xeb725e,_0x5df496]of _0x5b9dde){const _0x5a0cd7={'id':_0x445138(0x2a0),'params':{'unitId':this[_0x445138(0x3a8)],'actions':null,'textRanges':_0x5df496['ranges']}},_0x455ca0=this['_transformService'][_0x445138(0x47f)](_0x267124,_0x5a0cd7,!0x1);if(_0x364f8f(_0x455ca0))throw _0x455ca0['error'];_0x5b9dde[_0x445138(0x4af)](_0xeb725e,{..._0x5df496,'ranges':_0x455ca0[_0x445138(0x36f)][_0x445138(0x428)][_0x445138(0x20d)]});}queueMicrotask(()=>{const _0x5d05e2=_0x445138;this[_0x5d05e2(0x48f)]['next'](_0x5b9dde);});})));}[_0x87081d(0x4aa)](_0x22eefb){const _0x2cc232=_0x87081d;var _0xd11398,_0xacddc5;const {memberID:_0x502ed0,selection:_0x441b03}=_0x22eefb[_0x2cc232(0x31c)],_0x394a9e=Xn(_0x441b03),_0x4f94a8=(_0xacddc5=(_0xd11398=this[_0x2cc232(0x2e6)][_0x2cc232(0x1ae)](this['unitID'],_0x502ed0))==null?void 0x0:_0xd11398[_0x2cc232(0x33c)])!=null?_0xacddc5:'Unknown\x20user',_0x5263c2={'color':this['_colorAssignService'][_0x2cc232(0x488)](_0x502ed0),'name':_0x4f94a8,'ranges':_0x394a9e},_0x14dd27=this[_0x2cc232(0x4a8)];_0x14dd27[_0x2cc232(0x4af)](_0x502ed0,_0x5263c2),this[_0x2cc232(0x48f)][_0x2cc232(0x4fe)](_0x14dd27);}['_onCursorDelete'](_0x2ba6b5){const _0xcf18e2=_0x87081d,{memberID:_0xddeaed}=_0x2ba6b5[_0xcf18e2(0x31c)],_0x470e59=this['cursorInfo'];_0x470e59['delete'](_0xddeaed),this[_0xcf18e2(0x48f)][_0xcf18e2(0x4fe)](_0x470e59);}[_0x87081d(0x1cb)](){const _0x3135f2=_0x87081d;var _0x133775;if(this[_0x3135f2(0x351)]=!0x0,((_0x133775=this[_0x3135f2(0x2bb)][_0x3135f2(0x4e7)]())==null?void 0x0:_0x133775[_0x3135f2(0x1b5)]())!==this[_0x3135f2(0x3a8)])return;const _0x3957f9=this['_injector']['get'](_0x188da2)[_0x3135f2(0x453)](),_0x5c218f=_0x3957f9==null?void 0x0:_0x3957f9[_0x3135f2(0x234)](_0x249015);Array['isArray'](_0x5c218f)&&_0x5c218f[_0x3135f2(0x46a)]>0x0&&this[_0x3135f2(0x3fe)](_0x5c218f);}[_0x87081d(0x340)](){const _0x53a68e=_0x87081d;this[_0x53a68e(0x351)]=!0x1;}};Rt=mr([te(0x2,_0x1b956a(_0x4bf6fc)),te(0x3,_0x1b956a(Ht)),te(0x4,_0x1b956a(ne)),te(0x5,_0x1b956a(xt)),te(0x6,_0x4e495a),te(0x7,_0x1d5396),te(0x8,_0x15992c)],Rt);var Sr=Object[_0x87081d(0x318)],pr=Object[_0x87081d(0x314)],vr=(_0x12307d,_0x3d6c62,_0x3da7c6,_0x2293dd)=>{const _0x20f14b=_0x87081d;for(var _0x1307a6=_0x2293dd>0x1?void 0x0:_0x2293dd?pr(_0x3d6c62,_0x3da7c6):_0x3d6c62,_0x369d4d=_0x12307d[_0x20f14b(0x46a)]-0x1,_0x24ecc9;_0x369d4d>=0x0;_0x369d4d--)(_0x24ecc9=_0x12307d[_0x369d4d])&&(_0x1307a6=(_0x2293dd?_0x24ecc9(_0x3d6c62,_0x3da7c6,_0x1307a6):_0x24ecc9(_0x1307a6))||_0x1307a6);return _0x2293dd&&_0x1307a6&&Sr(_0x3d6c62,_0x3da7c6,_0x1307a6),_0x1307a6;},ct=(_0x2a597d,_0x33efe0)=>(_0x334cb1,_0xfbf80d)=>_0x33efe0(_0x334cb1,_0xfbf80d,_0x2a597d);let ge=class extends _0x53ce5a{constructor(_0x151ccc,_0xabfc8,_0x513828){const _0x5cd131=_0x87081d;super(),_(this,_0x5cd131(0x3f7),new Map()),_(this,_0x5cd131(0x3ed),new _0x1ace47()),(this[_0x5cd131(0x2bb)]=_0x151ccc,this['_injector']=_0xabfc8,this[_0x5cd131(0x1ad)]=_0x513828,this['_init']());}[_0x87081d(0x23c)](){const _0x59e765=_0x87081d;super[_0x59e765(0x23c)](),this[_0x59e765(0x3ed)][_0x59e765(0x26e)](),this[_0x59e765(0x3f7)][_0x59e765(0x1c8)](_0x2fc24a=>_0x2fc24a[_0x59e765(0x23c)]());}[_0x87081d(0x23b)](_0x3dc2bd){const _0xcf909e=_0x87081d;return this['_entities'][_0xcf909e(0x382)](_0x3dc2bd)?this[_0xcf909e(0x3f7)]['get'](_0x3dc2bd)[_0xcf909e(0x2e4)]:this['_entityInit$'][_0xcf909e(0x3b6)](_0x4d0abc(_0x5cbdbf=>_0x5cbdbf[_0xcf909e(0x3a8)]===_0x3dc2bd),_0x21055f(_0x4b7e5e=>_0x4b7e5e[_0xcf909e(0x2e4)]));}[_0x87081d(0x4fd)](){const _0x1ef345=_0x87081d;this['_univerInstanceService'][_0x1ef345(0x2c7)](_0x5a714d['UNIVER_SHEET'])[_0x1ef345(0x3b6)](_0x3c23a9(this['dispose$']))[_0x1ef345(0x347)](async _0x540a29=>{const _0x22f03d=_0x1ef345,_0x487096=_0x540a29[_0x22f03d(0x1b5)](),_0x2b3994=await this[_0x22f03d(0x352)](_0x487096);this[_0x22f03d(0x3ed)][_0x22f03d(0x4fe)](_0x2b3994),this[_0x22f03d(0x3f7)]['set'](_0x487096,_0x2b3994);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5a714d[_0x1ef345(0x1c1)])[_0x1ef345(0x3b6)](_0x3c23a9(this[_0x1ef345(0x20e)]))[_0x1ef345(0x3b6)](_0x4d0abc(_0x330f14=>!_0x330f14[_0x1ef345(0x1b5)]()[_0x1ef345(0x4ab)]('__')))[_0x1ef345(0x347)](async _0xd8f53b=>{const _0x242a71=_0x1ef345,_0x1afc74=_0xd8f53b[_0x242a71(0x1b5)](),_0x42dc14=await this['_startDocCollabCursor'](_0x1afc74);this[_0x242a71(0x3ed)]['next'](_0x42dc14),this['_entities'][_0x242a71(0x4af)](_0x1afc74,_0x42dc14);}),_0x1d3042(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5a714d[_0x1ef345(0x1c1)]),this[_0x1ef345(0x2bb)][_0x1ef345(0x223)](_0x5a714d[_0x1ef345(0x471)]))['pipe'](_0x3c23a9(this['dispose$']))['subscribe'](_0x536d0e=>{const _0x25dc18=_0x1ef345,_0x17dc51=_0x536d0e[_0x25dc18(0x1b5)](),_0x56da42=this[_0x25dc18(0x3f7)][_0x25dc18(0x1e9)](_0x17dc51);_0x56da42&&(_0x56da42[_0x25dc18(0x23c)](),this[_0x25dc18(0x3f7)]['delete'](_0x17dc51));});}async[_0x87081d(0x352)](_0x2b80be){const _0x506ef1=_0x87081d,_0x55d9ea=await this['_collabSessionService']['requireSession'](_0x2b80be),_0x3900f8=this['_injector'][_0x506ef1(0x427)](bt,_0x2b80be,_0x55d9ea);return _0x3900f8[_0x506ef1(0x310)](),_0x3900f8;}async[_0x87081d(0x4de)](_0x3817ed){const _0x592dd7=_0x87081d,_0x26d5b0=await this['_collabSessionService']['requireSession'](_0x3817ed),_0x5f1949=this['_injector'][_0x592dd7(0x427)](Rt,_0x3817ed,_0x26d5b0);return _0x5f1949[_0x592dd7(0x310)](),_0x5f1949;}};ge=vr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],ge),ct(0x0,_0x1d5396),ct(0x1,_0x1b956a(_0x4bf6fc)),ct(0x2,_0x1b956a(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0xc546b5,_0x5d613a){const _0x38345a=_0x87081d;let {radius:_0x5aea23,width:_0xff0842,height:_0x46eab0}=_0x5d613a;_0x5aea23=_0x5aea23!=null?_0x5aea23:0x0,_0xff0842=_0xff0842!=null?_0xff0842:0x1e,_0x46eab0=_0x46eab0!=null?_0x46eab0:0x1e;let _0x229f5c=0x0,_0xc9e249=0x0,_0x289901=0x0;_0x229f5c=_0xc9e249=_0x289901=Math[_0x38345a(0x39b)](_0x5aea23,_0xff0842/0x2,_0x46eab0/0x2),_0xc546b5['beginPath'](),_0xc546b5[_0x38345a(0x4cf)](_0x229f5c,0x0),_0xc546b5['lineTo'](_0xff0842-_0xc9e249,0x0),_0xc546b5['arc'](_0xff0842-_0xc9e249,_0xc9e249,_0xc9e249,Math['PI']*0x3/0x2,0x0,!0x1),_0xc546b5['lineTo'](_0xff0842,_0x46eab0-_0x289901),_0xc546b5[_0x38345a(0x3f2)](_0xff0842-_0x289901,_0x46eab0-_0x289901,_0x289901,0x0,Math['PI']/0x2,!0x1),_0xc546b5[_0x38345a(0x3e8)](0x0,_0x46eab0),_0xc546b5['lineTo'](0x0,_0x229f5c),_0xc546b5[_0x38345a(0x3f2)](_0x229f5c,_0x229f5c,_0x229f5c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xc546b5[_0x38345a(0x396)](),_0x5d613a['fill']&&(_0xc546b5[_0x38345a(0x267)](),_0xc546b5[_0x38345a(0x1ba)]=_0x5d613a['fill'],_0x5d613a[_0x38345a(0x2f3)]===_0x38345a(0x417)?_0xc546b5[_0x38345a(0x29c)](_0x38345a(0x417)):_0xc546b5[_0x38345a(0x29c)](),_0xc546b5[_0x38345a(0x2f4)]());}class it extends _0x2763bf{constructor(_0x356faf,_0x4128a5){const _0x513536=_0x87081d;super(_0x356faf,_0x4128a5),_(this,_0x513536(0x295)),_(this,'text'),(this[_0x513536(0x295)]=_0x4128a5==null?void 0x0:_0x4128a5[_0x513536(0x295)],this[_0x513536(0x1e0)]=_0x4128a5==null?void 0x0:_0x4128a5[_0x513536(0x1e0)]);}static[_0x87081d(0x4ed)](_0x201e42,_0x13e948){const _0xd957f2=_0x87081d,{text:_0x3af2f3,color:_0x424313}=_0x13e948;_0x201e42[_0xd957f2(0x267)](),_0x201e42[_0xd957f2(0x3a1)]=_0xd957f2(0x4ea);const _0xd4b568=_0x201e42[_0xd957f2(0x4cc)](_0x3af2f3)[_0xd957f2(0x1cc)],_0x33492e=Math['min'](_0xd4b568+0x2*ht,cs);Er(_0x201e42,{'height':ye,'radius':0x4,'width':_0x33492e,'fill':_0x424313,'evented':!0x1}),_0x201e42[_0xd957f2(0x1ba)]='#FFF';const _0x11f874=ht,_0x195826=ye-Ir,_0xac8a47=cs-0x2*ht;if(_0xd4b568>_0xac8a47){let _0x2c6d76='',_0x2e73df=0x0;for(const _0xd47f19 of _0x3af2f3){const _0x460250=_0x201e42['measureText'](_0xd47f19)[_0xd957f2(0x1cc)];if(_0x2e73df+_0x460250<=_0xac8a47-_0x201e42[_0xd957f2(0x4cc)]('...')[_0xd957f2(0x1cc)])_0x2c6d76+=_0xd47f19,_0x2e73df+=_0x460250;else{_0x2c6d76+=_0xd957f2(0x32f);break;}}_0x201e42[_0xd957f2(0x1da)](_0x2c6d76,_0x11f874,_0x195826);}else _0x201e42[_0xd957f2(0x1da)](_0x3af2f3,_0x11f874,_0x195826);_0x201e42['restore']();}['_draw'](_0x23c4b1){const _0x1d83f2=_0x87081d;it[_0x1d83f2(0x4ed)](_0x23c4b1,this);}}const Cr=0x1,br=1.5;class Rr extends _0x2763bf{constructor(_0x45e5c5,_0x4b7708){const _0x6b051=_0x87081d;super(_0x45e5c5,_0x4b7708),_(this,'_color'),_(this,_0x6b051(0x358),!0x1),_(this,_0x6b051(0x2e9)),_(this,'_name',''),_(this,'_labelPosition',_0x6b051(0x4d0)),_(this,'_backgroundColor'),(_0x4b7708&&this[_0x6b051(0x32c)](_0x4b7708),this[_0x6b051(0x19f)][_0x6b051(0x3fd)](()=>this[_0x6b051(0x32c)]({'hovered':!0x0})),this['onPointerLeave$'][_0x6b051(0x3fd)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x2747f6){const _0x47995e=_0x87081d;var _0x66da7,_0x275b7d,_0x290fa8,_0x2015eb,_0x292d6d,_0x5215f8;this[_0x47995e(0x436)]=(_0x66da7=_0x2747f6[_0x47995e(0x295)])!=null?_0x66da7:this[_0x47995e(0x436)],this[_0x47995e(0x358)]=(_0x275b7d=_0x2747f6[_0x47995e(0x25a)])!=null?_0x275b7d:this['_hovered'],this[_0x47995e(0x2e9)]=(_0x290fa8=_0x2747f6[_0x47995e(0x2f1)])!=null?_0x290fa8:this['_range'],this['_name']=(_0x2015eb=_0x2747f6[_0x47995e(0x33c)])!=null?_0x2015eb:this[_0x47995e(0x4fb)],this[_0x47995e(0x4d7)]=(_0x292d6d=_0x2747f6[_0x47995e(0x2ea)])!=null?_0x292d6d:this['_labelPosition'],this[_0x47995e(0x1fb)]=(_0x5215f8=_0x2747f6[_0x47995e(0x210)])!=null?_0x5215f8:this[_0x47995e(0x1fb)],this[_0x47995e(0x322)]({'width':_0x2747f6[_0x47995e(0x1cc)],'height':_0x2747f6[_0x47995e(0x486)]});}['onMouseMove'](_0x24ca8c){const _0x3fa4d5=_0x87081d,{row:_0xcc90cc,column:_0x393097}=_0x24ca8c;if(_0xcc90cc>=this['_range'][_0x3fa4d5(0x360)]&&_0xcc90cc<=this[_0x3fa4d5(0x2e9)][_0x3fa4d5(0x2e8)]&&_0x393097>=this[_0x3fa4d5(0x2e9)][_0x3fa4d5(0x3ec)]&&_0x393097<=this['_range'][_0x3fa4d5(0x35c)]){this[_0x3fa4d5(0x32c)]({'hovered':!0x0});return;}this[_0x3fa4d5(0x32c)]({'hovered':!0x1});}[_0x87081d(0x1dc)](_0x1c7a43){return!0x1;}[_0x87081d(0x391)](_0x3c200b){const _0x10b244=_0x87081d;_0x31ca09[_0x10b244(0x4ed)](_0x3c200b,{'width':this[_0x10b244(0x1cc)],'height':this[_0x10b244(0x486)],'strokeWidth':br,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x10b244(0x1fb)]}),this[_0x10b244(0x358)]&&(_0x3c200b[_0x10b244(0x267)](),_0x3c200b['transform'](0x1,0x0,0x0,0x1,this[_0x10b244(0x1cc)],this[_0x10b244(0x4d7)]===_0x10b244(0x1f1)?0x0:-ye),it['drawWith'](_0x3c200b,{'text':this['_name'],'color':this[_0x10b244(0x436)]}),_0x3c200b['restore']());}}var Tr=Object[_0x87081d(0x318)],Or=Object[_0x87081d(0x314)],Dr=(_0x74a8fc,_0x304a5e,_0x45102f,_0x118e88)=>{const _0x6ae0ed=_0x87081d;for(var _0x38889b=_0x118e88>0x1?void 0x0:_0x118e88?Or(_0x304a5e,_0x45102f):_0x304a5e,_0x48c617=_0x74a8fc[_0x6ae0ed(0x46a)]-0x1,_0x37a106;_0x48c617>=0x0;_0x48c617--)(_0x37a106=_0x74a8fc[_0x48c617])&&(_0x38889b=(_0x118e88?_0x37a106(_0x304a5e,_0x45102f,_0x38889b):_0x37a106(_0x38889b))||_0x38889b);return _0x118e88&&_0x38889b&&Tr(_0x304a5e,_0x45102f,_0x38889b),_0x38889b;},_t=(_0x5966c2,_0x6b209f)=>(_0x436808,_0x29a732)=>_0x6b209f(_0x436808,_0x29a732,_0x5966c2);const Pr=0x1389;let Tt=class extends _0x53ce5a{constructor(_0x314745,_0x272dbd,_0x39661e,_0x1c496d){const _0x2914ae=_0x87081d;super(),_(this,'_cursors',new Set()),_(this,_0x2914ae(0x4a9),null),(this[_0x2914ae(0x485)]=_0x314745,this[_0x2914ae(0x20f)]=_0x272dbd,this[_0x2914ae(0x4b8)]=_0x39661e,this[_0x2914ae(0x430)]=_0x1c496d,this[_0x2914ae(0x4fd)]());}['_init'](){const _0x4d35fe=_0x87081d;this[_0x4d35fe(0x20f)][_0x4d35fe(0x420)][_0x4d35fe(0x3b6)](_0x3e87c2(this[_0x4d35fe(0x20e)]),_0x16e713(_0x46cdec=>{const _0x3ad573=_0x4d35fe;if(_0x46cdec){const _0x43f1ac=_0x46cdec[_0x3ad573(0x28a)];return _0x138d6c(this['_collabCursorController'][_0x3ad573(0x23b)](this[_0x3ad573(0x485)]['unitId']),this[_0x3ad573(0x430)][_0x3ad573(0x383)])[_0x3ad573(0x3b6)](_0x414fcf(([_0x1cdf7a,_0x526003])=>{const _0x487be7=_0x3ad573,_0x1bf89e=new Map();return _0x1cdf7a[_0x487be7(0x1c8)]((_0x2a4f21,_0x15808a)=>{const _0x2dfaa7=_0x487be7;if(_0x2a4f21[_0x2dfaa7(0x2f7)]===_0x43f1ac){const _0x4088c2={..._0x2a4f21};_0x4088c2[_0x2dfaa7(0x295)]=_0x526003[_0x2a4f21[_0x2dfaa7(0x295)]],_0x1bf89e['set'](_0x15808a,_0x4088c2);}}),{'skeleton':_0x46cdec,'cursors':_0x1bf89e};}));}return _0x274530({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d7f05,cursors:_0x2b5d30})=>{const _0x1c2b1d=_0x4d35fe;this['_removeCollabCursors'](),_0x1d7f05&&this[_0x1c2b1d(0x41a)](_0x1d7f05,_0x2b5d30);}),this[_0x4d35fe(0x20f)][_0x4d35fe(0x420)][_0x4d35fe(0x347)](_0x3d17aa=>{const _0x19a809=_0x4d35fe;if(_0x3d17aa==null)return;const {skeleton:_0xd0c20d}=_0x3d17aa,{scene:_0x5732f1}=this[_0x19a809(0x485)];_0x5732f1[_0x19a809(0x3fc)]['subscribeEvent'](_0x331994(_0x42e2d7=>{const _0x2f98d0=_0x19a809;var _0x33f1d5,_0x14ad50;const {offsetX:_0x2b14bc,offsetY:_0x960a5d}=_0x42e2d7,{x:_0x5e0d2f,y:_0x11e827}=_0x5732f1['getRelativeToViewportCoord'](_0x5c324a[_0x2f98d0(0x3b2)]([_0x2b14bc,_0x960a5d])),{scaleX:_0x1871d9,scaleY:_0x11d3b0}=_0x5732f1[_0x2f98d0(0x367)](),_0x4c0ad0=_0x5732f1[_0x2f98d0(0x2b7)](_0x1e06ce['VIEW_MAIN']),_0x1567f3=_0x5732f1[_0x2f98d0(0x217)](_0x5c324a[_0x2f98d0(0x3b2)]([_0x5e0d2f,_0x11e827]),_0x4c0ad0),_0x146f3f=_0xd0c20d[_0x2f98d0(0x45d)](_0x2b14bc,_0x960a5d,_0x1871d9,_0x11d3b0,_0x1567f3);((_0x33f1d5=this[_0x2f98d0(0x4a9)])==null?void 0x0:_0x33f1d5[_0x2f98d0(0x1a1)])===_0x146f3f[_0x2f98d0(0x1a1)]&&((_0x14ad50=this[_0x2f98d0(0x4a9)])==null?void 0x0:_0x14ad50[_0x2f98d0(0x3ae)])===_0x146f3f[_0x2f98d0(0x3ae)]||this[_0x2f98d0(0x1eb)]['forEach'](_0x5f0ce3=>{const _0x49b2da=_0x2f98d0;_0x5f0ce3[_0x49b2da(0x4f2)](_0x146f3f);});},0x64));});}[_0x87081d(0x41a)](_0x301cd4,_0x88ae62){const _0x4a8968=_0x87081d;var _0x423e47;const _0x27d1ae=(_0x423e47=this[_0x4a8968(0x20f)][_0x4a8968(0x2cc)]())==null?void 0x0:_0x423e47[_0x4a8968(0x24c)];if(!_0x27d1ae)return;const _0x426786=this[_0x4a8968(0x1f7)]();if(!_0x426786)return;this[_0x4a8968(0x1eb)][_0x4a8968(0x1c8)](_0x3fad29=>{const _0x3b80c5=_0x4a8968;_0x3fad29[_0x3b80c5(0x43e)]();});const {scene:_0xa78ce3}=_0x426786,_0x3f5a56=wr(Array[_0x4a8968(0x1fc)](_0x88ae62[_0x4a8968(0x247)]()))[_0x4a8968(0x234)](_0x54d3b8=>{const _0x1a03b3=_0x4a8968,{color:_0x5d654e,range:_0x24b765,name:_0x46182b,selection:_0x197856,sheetID:_0x2a5cbf}=_0x54d3b8,{startColumn:_0x57f826,startRow:_0x5ee401,endColumn:_0x4a1f03,endRow:_0x13b5ed}=_0x24b765,_0x2f579d=_0x13adfd(_0x5ee401,_0x57f826,_0xa78ce3,_0x27d1ae),_0x2805c1=_0x13adfd(_0x13b5ed,_0x4a1f03,_0xa78ce3,_0x27d1ae),{columnHeaderHeightAndMarginTop:_0x4a378b}=_0x27d1ae,{startX:_0x3b8781,startY:_0x399a72}=_0x2f579d,{endX:_0x1076f9,endY:_0x5eaf79}=_0x2805c1,_0x1cd51b=_0x1076f9-_0x3b8781,_0x518d7d=_0x5eaf79-_0x399a72,_0x4b6cfe={'labelPosition':_0x399a72-_0x4a378b>=ye?'top':_0x1a03b3(0x1f1),'sheetID':_0x2a5cbf,'range':_0x24b765,'color':_0x5d654e,'name':_0x46182b,'selection':_0x197856,'left':_0x3b8781,'top':_0x399a72,'width':_0x1cd51b,'height':_0x518d7d,'evented':!0x1,'zIndex':Pr};return new Rr(_0x46182b,_0x4b6cfe);});_0xa78ce3['addObjects'](_0x3f5a56,Cr),this[_0x4a8968(0x1eb)]=new Set(_0x3f5a56);}[_0x87081d(0x3d9)](){const _0x467e31=_0x87081d;var _0x12289a;(_0x12289a=this[_0x467e31(0x1eb)])==null||_0x12289a[_0x467e31(0x1c8)](_0x4ce149=>_0x4ce149[_0x467e31(0x23c)]());}[_0x87081d(0x1f7)](){const _0x4e8e7=_0x87081d;return _0x45ba(this[_0x4e8e7(0x485)][_0x4e8e7(0x312)],this[_0x4e8e7(0x485)]);}};Tt=Dr([_t(0x1,_0x1b956a(_0x1818c9)),_t(0x2,_0x1b956a(ge)),_t(0x3,_0x1b956a(_0x4a7906))],Tt);function wr(_0x270f5f){const _0x41374a=_0x87081d,_0x5711fc=new Map();return _0x270f5f[_0x41374a(0x1c8)](_0x2f5fa1=>{const _0x17d568=_0x41374a;if(_0x5711fc[_0x17d568(0x382)](_0x2f5fa1[_0x17d568(0x2eb)])){const _0x4415ce=_0x5711fc[_0x17d568(0x1e9)](_0x2f5fa1[_0x17d568(0x2eb)]);_0x4415ce[_0x17d568(0x33c)]+=',\x20'+_0x2f5fa1[_0x17d568(0x33c)];}else _0x5711fc[_0x17d568(0x4af)](_0x2f5fa1[_0x17d568(0x2eb)],_0x2f5fa1);}),Array[_0x41374a(0x1fc)](_0x5711fc[_0x41374a(0x247)]());}var U=function(){const _0x1980a2=_0x87081d;return U=Object['assign']||function(_0x2d0623){const _0xc65f5a=_0x1fa5;for(var _0xc2c94f,_0x1d229b=0x1,_0x11c82d=arguments[_0xc65f5a(0x46a)];_0x1d229b<_0x11c82d;_0x1d229b++){_0xc2c94f=arguments[_0x1d229b];for(var _0x454df4 in _0xc2c94f)Object['prototype'][_0xc65f5a(0x369)][_0xc65f5a(0x2cf)](_0xc2c94f,_0x454df4)&&(_0x2d0623[_0x454df4]=_0xc2c94f[_0x454df4]);}return _0x2d0623;},U[_0x1980a2(0x34b)](this,arguments);},Nr=function(_0x224327,_0x406ff4){const _0x8ec94f=_0x87081d;var _0x2fc67b={};for(var _0x41cadf in _0x224327)Object[_0x8ec94f(0x4b9)][_0x8ec94f(0x369)][_0x8ec94f(0x2cf)](_0x224327,_0x41cadf)&&_0x406ff4['indexOf'](_0x41cadf)<0x0&&(_0x2fc67b[_0x41cadf]=_0x224327[_0x41cadf]);if(_0x224327!=null&&typeof Object[_0x8ec94f(0x348)]==_0x8ec94f(0x1cf)){for(var _0x266a79=0x0,_0x41cadf=Object[_0x8ec94f(0x348)](_0x224327);_0x266a79<_0x41cadf[_0x8ec94f(0x46a)];_0x266a79++)_0x406ff4[_0x8ec94f(0x227)](_0x41cadf[_0x266a79])<0x0&&Object[_0x8ec94f(0x4b9)][_0x8ec94f(0x2ca)]['call'](_0x224327,_0x41cadf[_0x266a79])&&(_0x2fc67b[_0x41cadf[_0x266a79]]=_0x224327[_0x41cadf[_0x266a79]]);}return _0x2fc67b;},kt=_0x2c1bb9(function(_0x459e3b,_0x22f72c){const _0x54f993=_0x87081d;var _0x5ebf96=_0x459e3b['icon'],_0x295f06=_0x459e3b['id'],_0x3b3d67=_0x459e3b['className'],_0x289d4d=_0x459e3b[_0x54f993(0x403)],_0x230c95=Nr(_0x459e3b,[_0x54f993(0x44a),'id','className',_0x54f993(0x403)]),_0x5df58e=_0x54f993(0x3db)[_0x54f993(0x401)](_0x295f06,'\x20')[_0x54f993(0x401)](_0x3b3d67||'')[_0x54f993(0x2da)](),_0x55c383=_0x36697b('_'[_0x54f993(0x401)](Ur()));return $s(_0x5ebf96,''['concat'](_0x295f06),{'defIds':_0x5ebf96[_0x54f993(0x2fd)],'idSuffix':_0x55c383[_0x54f993(0x49a)]},U({'ref':_0x22f72c,'className':_0x5df58e},_0x230c95),_0x289d4d);});function $s(_0x2da75f,_0x1d9813,_0x1bc4f7,_0x2839e5,_0x23da81){const _0x43b935=_0x87081d;return _0x1618fc(_0x2da75f['tag'],U(U({'key':_0x1d9813},Mr(_0x2da75f,_0x1bc4f7,_0x23da81)),_0x2839e5),(Ar(_0x2da75f,_0x1bc4f7)['children']||[])[_0x43b935(0x234)](function(_0x43ffad,_0x559f46){const _0x92442c=_0x43b935;return $s(_0x43ffad,''[_0x92442c(0x401)](_0x1d9813,'-')[_0x92442c(0x401)](_0x2da75f[_0x92442c(0x4ac)],'-')[_0x92442c(0x401)](_0x559f46),_0x1bc4f7,void 0x0,_0x23da81);}));}function Mr(_0x2873a6,_0x1aa04a,_0x37c684){const _0x1d2375=_0x87081d;var _0x459cf0=U({},_0x2873a6[_0x1d2375(0x4be)]);_0x37c684!=null&&_0x37c684['colorChannel1']&&_0x459cf0[_0x1d2375(0x29c)]===_0x1d2375(0x206)&&(_0x459cf0['fill']=_0x37c684['colorChannel1']);var _0x4935f7=_0x1aa04a['defIds'];return!_0x4935f7||_0x4935f7[_0x1d2375(0x46a)]===0x0||(_0x2873a6['tag']===_0x1d2375(0x240)&&_0x459cf0[_0x1d2375(0x4d6)]&&(_0x459cf0['xlink:href']=_0x459cf0[_0x1d2375(0x4d6)]+_0x1aa04a[_0x1d2375(0x4c5)]),Object[_0x1d2375(0x3e5)](_0x459cf0)['forEach'](function(_0x2b293d){const _0x1c5b0a=_0x1d2375;var _0x1c0c5e=_0x2b293d[0x0],_0x3bc565=_0x2b293d[0x1];typeof _0x3bc565==_0x1c5b0a(0x202)&&(_0x459cf0[_0x1c0c5e]=_0x3bc565[_0x1c5b0a(0x371)](/url\(#(.*)\)/,_0x1c5b0a(0x2a6)['concat'](_0x1aa04a[_0x1c5b0a(0x4c5)],')')));})),_0x459cf0;}function Ar(_0x34159f,_0x4eb3eb){const _0x18855d=_0x87081d;var _0x2b4b0b,_0x58976c=_0x4eb3eb['defIds'];return!_0x58976c||_0x58976c['length']===0x0?_0x34159f:_0x34159f[_0x18855d(0x4ac)]===_0x18855d(0x38d)&&(!((_0x2b4b0b=_0x34159f['children'])===null||_0x2b4b0b===void 0x0)&&_0x2b4b0b[_0x18855d(0x46a)])?U(U({},_0x34159f),{'children':_0x34159f[_0x18855d(0x41d)][_0x18855d(0x234)](function(_0x273b0e){const _0x21ff85=_0x18855d;return typeof _0x273b0e[_0x21ff85(0x4be)]['id']==_0x21ff85(0x202)&&_0x58976c&&_0x58976c[_0x21ff85(0x227)](_0x273b0e[_0x21ff85(0x4be)]['id'])>-0x1?U(U({},_0x273b0e),{'attrs':U(U({},_0x273b0e[_0x21ff85(0x4be)]),{'id':_0x273b0e[_0x21ff85(0x4be)]['id']+_0x4eb3eb['idSuffix']})}):_0x273b0e;})}):_0x34159f;}function Ur(){const _0xe45a39=_0x87081d;return Math[_0xe45a39(0x1ac)]()[_0xe45a39(0x454)](0x24)[_0xe45a39(0x479)](0x2,0x8);}kt[_0x87081d(0x280)]=_0x87081d(0x219);var yr={'tag':_0x87081d(0x3e2),'attrs':{'fill':_0x87081d(0x404),'viewBox':_0x87081d(0x357),'width':'1em','height':_0x87081d(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x87081d(0x2d3)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'stroke':_0x87081d(0x4a7),'d':_0x87081d(0x3be),'strokeLinecap':_0x87081d(0x38b),'strokeLinejoin':_0x87081d(0x38b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x87081d(0x1b6),'attrs':{'id':_0x87081d(0x3e9)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'fill':'#fff','d':_0x87081d(0x446)}}]}]}],'defIds':[_0x87081d(0x3e9)]},js=_0x2c1bb9(function(_0x455bba,_0xddcb18){const _0x366ae7=_0x87081d;return _0x1618fc(kt,Object[_0x366ae7(0x2fe)]({},_0x455bba,{'id':'off-line-single','ref':_0xddcb18,'icon':yr}));});js['displayName']=_0x87081d(0x1e7);var Lr={'tag':_0x87081d(0x3e2),'attrs':{'fill':_0x87081d(0x404),'viewBox':_0x87081d(0x4b7),'width':_0x87081d(0x364),'height':_0x87081d(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x87081d(0x3dd)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'stroke':_0x87081d(0x4a7),'d':_0x87081d(0x1f5),'strokeLinecap':_0x87081d(0x38b),'strokeLinejoin':_0x87081d(0x38b),'strokeWidth':1.2}}]},{'tag':_0x87081d(0x38d),'attrs':{},'children':[{'tag':_0x87081d(0x1b6),'attrs':{'id':_0x87081d(0x4f5)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'fill':'#fff','d':_0x87081d(0x446),'transform':_0x87081d(0x35d)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xs=_0x2c1bb9(function(_0x32f22b,_0x4f46c3){const _0x254431=_0x87081d;return _0x1618fc(kt,Object['assign']({},_0x32f22b,{'id':_0x254431(0x285),'ref':_0x4f46c3,'icon':Lr}));});xs['displayName']=_0x87081d(0x282);const $r='univer-online-status-icon',jr='univer-online-status-title',xr=_0x87081d(0x334),Hr='univer-online',kr='univer-offline',De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x53f076){const _0x4aac9a=_0x87081d;switch(_0x53f076){case P[_0x4aac9a(0x2c5)]:return _0x4aac9a(0x200);case P['CONFLICT']:return _0x4aac9a(0x3bd);case P['FETCH_MISS']:return'collabStatus.fetchMiss';case P[_0x4aac9a(0x49c)]:return _0x4aac9a(0x408);case P[_0x4aac9a(0x349)]:case P['AWAITING']:case P['AWAITING_WITH_PENDING']:return _0x4aac9a(0x2f9);case P['SYNCED']:return _0x4aac9a(0x22b);}}function Br(_0x228670){const _0xcee7f2=_0x87081d,{status$:_0x1d4c22}=_0x228670,_0x410ced=_0x1e1781(_0x1d4c22,P[_0xcee7f2(0x49c)]),_0x23fab1=_0x178612(_0x2db4b8),_0x12d8e5=_0x410ced!==P[_0xcee7f2(0x2c5)],_0x50969e=_0x23fab1['t'](Vr(_0x410ced)),_0x1d65ba=_0x2a1254(De[_0xcee7f2(0x1a6)],{[De['online']]:_0x12d8e5,[De[_0xcee7f2(0x468)]]:!_0x12d8e5}),_0x27a1b8=_0x12d8e5?_0x27911f['createElement'](xs,null):_0x27911f[_0xcee7f2(0x1c3)](js,null);return _0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':_0x1d65ba},_0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':De[_0xcee7f2(0x3f8)]},_0x27a1b8),_0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':De[_0xcee7f2(0x1a3)]},_0x50969e));}var Fr=Object[_0x87081d(0x318)],Wr=Object[_0x87081d(0x314)],Gr=(_0x304105,_0x45a410,_0x535e91,_0x58ee7d)=>{for(var _0x1852b6=_0x58ee7d>0x1?void 0x0:_0x58ee7d?Wr(_0x45a410,_0x535e91):_0x45a410,_0x4bbf4b=_0x304105['length']-0x1,_0x2b39ef;_0x4bbf4b>=0x0;_0x4bbf4b--)(_0x2b39ef=_0x304105[_0x4bbf4b])&&(_0x1852b6=(_0x58ee7d?_0x2b39ef(_0x45a410,_0x535e91,_0x1852b6):_0x2b39ef(_0x1852b6))||_0x1852b6);return _0x58ee7d&&_0x1852b6&&Fr(_0x45a410,_0x535e91,_0x1852b6),_0x1852b6;},$e=(_0x3b584b,_0x4bae41)=>(_0x1661ec,_0x1ca8dd)=>_0x4bae41(_0x1661ec,_0x1ca8dd,_0x3b584b);let ke=class extends _0x1ee863{constructor(_0x549fff,_0xf5a042,_0x4ec098,_0x5e9c2d){const _0x24ccbc=_0x87081d;super(),_(this,_0x24ccbc(0x4e3),new _0x2561fc(P[_0x24ccbc(0x49c)])),(this['_univerInstanceService']=_0x549fff,this[_0x24ccbc(0x277)]=_0xf5a042,this[_0x24ccbc(0x440)]=_0x4ec098,this[_0x24ccbc(0x1e5)]=_0x5e9c2d,this['_initStatusComponent'](),this[_0x24ccbc(0x1a0)]());}[_0x87081d(0x2f0)](){const _0x45aae4=_0x87081d;this['disposeWithMe'](this[_0x45aae4(0x277)][_0x45aae4(0x29d)](_0x41f3dc[_0x45aae4(0x2ba)],()=>_0x5458e2(Yr({'status$':this[_0x45aae4(0x4e3)][_0x45aae4(0x225)]()}),this[_0x45aae4(0x440)])));}[_0x87081d(0x1a0)](){const _0x233163=_0x87081d;this[_0x233163(0x343)](_0x3b697b(this[_0x233163(0x2bb)]['focused$']['pipe'](_0x21055f(()=>{const _0x20943a=_0x233163,_0x505e5f=this[_0x20943a(0x2bb)][_0x20943a(0x4e7)]();return _0x505e5f?this[_0x20943a(0x1e5)][_0x20943a(0x1a2)](_0x505e5f[_0x20943a(0x1b5)]()):_0x274530(null);}),_0x21055f(_0x2a4956=>_0x2a4956?_0x2a4956[_0x233163(0x33a)]:_0x274530(P[_0x233163(0x49c)])))['subscribe'](_0x4be1df=>{const _0x4449de=_0x233163;this['_status$'][_0x4449de(0x4fe)](_0x4be1df);})));}};ke=Gr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],ke),$e(0x0,_0x1d5396),$e(0x1,_0x1ccd4c),$e(0x2,_0x1b956a(_0x4bf6fc)),$e(0x3,_0x1b956a(Me))],ke);function _0x1fa5(_0x24a410,_0x1bc15f){const _0x9ef47a=_0x9ef4();return _0x1fa5=function(_0x1fa52a,_0x4d83b4){_0x1fa52a=_0x1fa52a-0x19f;let _0x317d5a=_0x9ef47a[_0x1fa52a];return _0x317d5a;},_0x1fa5(_0x24a410,_0x1bc15f);}function Yr(_0x2a16ab){const {status$:_0x11e9d2}=_0x2a16ab;return function(){const _0x1f5066=_0x1fa5;return _0x27911f[_0x1f5066(0x1c3)](Br,{'status$':_0x11e9d2});};}const Hs=_0x1b08c0('uni.network.url-service');var Kr=Object[_0x87081d(0x318)],Xr=Object[_0x87081d(0x314)],Jr=(_0x1f52fe,_0x27fc73,_0x261597,_0x45f833)=>{const _0x1dcabd=_0x87081d;for(var _0x313bc5=_0x45f833>0x1?void 0x0:_0x45f833?Xr(_0x27fc73,_0x261597):_0x27fc73,_0x3d56e4=_0x1f52fe[_0x1dcabd(0x46a)]-0x1,_0x51fb7c;_0x3d56e4>=0x0;_0x3d56e4--)(_0x51fb7c=_0x1f52fe[_0x3d56e4])&&(_0x313bc5=(_0x45f833?_0x51fb7c(_0x27fc73,_0x261597,_0x313bc5):_0x51fb7c(_0x313bc5))||_0x313bc5);return _0x45f833&&_0x313bc5&&Kr(_0x27fc73,_0x261597,_0x313bc5),_0x313bc5;},ue=(_0x416d50,_0x4a629c)=>(_0x3c23a3,_0x9863d9)=>_0x4a629c(_0x3c23a3,_0x9863d9,_0x416d50);let Ve=class extends _0x53ce5a{constructor(_0x3ef442,_0x3cf00a,_0x5a15dd,_0x296130,_0x47099f,_0x281fc9){const _0x1f282b=_0x87081d;super(),this[_0x1f282b(0x44d)]=_0x3ef442,this[_0x1f282b(0x3e7)]=_0x3cf00a,this[_0x1f282b(0x248)]=_0x5a15dd,this[_0x1f282b(0x1b0)]=_0x296130,this[_0x1f282b(0x361)]=_0x47099f,_0x281fc9?_0x281fc9==null||_0x281fc9[_0x1f282b(0x239)]()[_0x1f282b(0x39a)](()=>this[_0x1f282b(0x4fd)]()):(this[_0x1f282b(0x3e7)][_0x1f282b(0x4d5)](_0x1f282b(0x2b9),_0x1f282b(0x3bc)),this[_0x1f282b(0x4fd)]());}async['_init'](){const _0x56afe8=_0x87081d,_0x426383=this[_0x56afe8(0x44d)][_0x56afe8(0x1f6)](_0x56afe8(0x312)),_0x4f95fd=this[_0x56afe8(0x44d)][_0x56afe8(0x1f6)](_0x56afe8(0x47c));if(!_0x426383||!_0x4f95fd){this[_0x56afe8(0x3e7)][_0x56afe8(0x4d5)](_0x56afe8(0x2b9),_0x56afe8(0x265));return;}switch(Number(_0x4f95fd)){case H[_0x56afe8(0x471)]:{const _0x1d3a88=await this[_0x56afe8(0x3b5)](_0x426383);this[_0x56afe8(0x27a)](_0x1d3a88);break;}case H[_0x56afe8(0x1c1)]:{await this[_0x56afe8(0x300)](_0x426383);break;}default:{this[_0x56afe8(0x3e7)][_0x56afe8(0x289)]('[DataLoaderController]',_0x56afe8(0x397));break;}}}async[_0x87081d(0x27a)](_0xb542d5){const _0x5c19b1=_0x87081d;await this[_0x5c19b1(0x4ef)](_0xb542d5),_0xb542d5[_0x5c19b1(0x379)]['pipe'](_0x3c23a9(this[_0x5c19b1(0x20e)]))['subscribe'](_0x554458=>{const _0x319d53=_0x5c19b1;_0x554458&&this[_0x319d53(0x3a6)](_0x554458);}),this[_0x5c19b1(0x44d)][_0x5c19b1(0x294)][_0x5c19b1(0x3b6)](_0x3c23a9(this[_0x5c19b1(0x20e)]))[_0x5c19b1(0x347)](()=>this[_0x5c19b1(0x4ef)](_0xb542d5));}['_updateURLWithCurrentState'](_0x4b4dc0,_0x11f3af=!0x1){const _0x317848=_0x87081d,_0x4c737c=this['_urlService'][_0x317848(0x1f6)](_0x317848(0x3ab));_0x4b4dc0[_0x317848(0x2fc)]()!==_0x4c737c&&this[_0x317848(0x44d)][_0x317848(0x211)]('subunit',_0x4b4dc0['getSheetId'](),_0x11f3af);}async[_0x87081d(0x4ef)](_0x3a2f28){const _0x36cb47=_0x87081d;var _0x3afb7d;const _0x7842b=this['_urlService']['getParam'](_0x36cb47(0x3ab));if(!_0x7842b||!_0x3a2f28['getSheetBySheetId'](_0x7842b)){const _0x53bdd5=_0x3a2f28[_0x36cb47(0x257)]()[0x0],_0x48a691=_0x3a2f28[_0x36cb47(0x335)](_0x53bdd5);if(!_0x48a691)return;this['_updateURLWithCurrentState'](_0x48a691,!0x0),await this[_0x36cb47(0x248)][_0x36cb47(0x224)](_0x53a25c['id'],{'unitId':_0x3a2f28[_0x36cb47(0x1b5)](),'subUnitId':_0x53bdd5});return;}((_0x3afb7d=_0x3a2f28[_0x36cb47(0x3c4)]())==null?void 0x0:_0x3afb7d[_0x36cb47(0x2fc)]())!==_0x7842b&&await this[_0x36cb47(0x248)][_0x36cb47(0x224)](_0x53a25c['id'],{'unitId':_0x3a2f28['getUnitId'](),'subUnitId':_0x7842b});}async[_0x87081d(0x3b5)](_0x3e2f55){const _0x457598=_0x87081d;let _0x9764d3=0x0;const _0x5561d6=await this[_0x457598(0x1b0)][_0x457598(0x1d9)](_0x3e2f55);return _0x5561d6&&(_0x5561d6[_0x457598(0x48b)]||_0x5561d6[_0x457598(0x41e)][_0x457598(0x46a)]!==0x0)&&(_0x9764d3=_0x5561d6[_0x457598(0x464)]),_0x9764d3===0x0&&this[_0x457598(0x3e7)]['debug'](_0x457598(0x2b9),_0x457598(0x24e)),this[_0x457598(0x361)][_0x457598(0x3ff)](_0x3e2f55,_0x9764d3);}async['_loadDoc'](_0x4353a7){const _0x11f2f1=_0x87081d;let _0x4b9fc7=0x0;const _0x59b8cb=await this[_0x11f2f1(0x1b0)][_0x11f2f1(0x1d9)](_0x4353a7);return _0x59b8cb&&(_0x59b8cb[_0x11f2f1(0x48b)]||_0x59b8cb['mutations']['length']!==0x0)&&(_0x4b9fc7=_0x59b8cb[_0x11f2f1(0x464)]),_0x4b9fc7===0x0&&this[_0x11f2f1(0x3e7)][_0x11f2f1(0x4d5)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x11f2f1(0x462)](_0x4353a7,_0x4b9fc7);}};Ve=Jr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],Ve),ue(0x0,Hs),ue(0x1,_0x82a609),ue(0x2,_0x15992c),ue(0x3,_0x1b956a(D)),ue(0x4,_0x1b956a(_0x5cfad0)),ue(0x5,_0x4b698d(_0x265857))],Ve);var zr=Object[_0x87081d(0x318)],qr=Object['getOwnPropertyDescriptor'],Zr=(_0x9f273d,_0x24bcb8,_0x57d548,_0x4106aa)=>{const _0x2ef0f8=_0x87081d;for(var _0x1f79f7=_0x4106aa>0x1?void 0x0:_0x4106aa?qr(_0x24bcb8,_0x57d548):_0x24bcb8,_0x2eefc0=_0x9f273d[_0x2ef0f8(0x46a)]-0x1,_0x1aae22;_0x2eefc0>=0x0;_0x2eefc0--)(_0x1aae22=_0x9f273d[_0x2eefc0])&&(_0x1f79f7=(_0x4106aa?_0x1aae22(_0x24bcb8,_0x57d548,_0x1f79f7):_0x1aae22(_0x1f79f7))||_0x1f79f7);return _0x4106aa&&_0x1f79f7&&zr(_0x24bcb8,_0x57d548,_0x1f79f7),_0x1f79f7;},hs=(_0xe890fa,_0x419ac3)=>(_0x1ff332,_0x16a3e8)=>_0x419ac3(_0x1ff332,_0x16a3e8,_0xe890fa);const Qr=_0x87081d(0x2fb),eo=_0x87081d(0x232);let Be=class extends _0x1ee863{constructor(_0x519b8d,_0x5105d8){const _0x6783f=_0x87081d;super(),this[_0x6783f(0x2bb)]=_0x519b8d,this['_configService']=_0x5105d8,this[_0x6783f(0x4fd)]();}[_0x87081d(0x4fd)](){const _0x10328f=_0x87081d;this['disposeWithMe'](_0x3b697b(this[_0x10328f(0x2bb)][_0x10328f(0x4ee)][_0x10328f(0x347)](()=>{const _0x23ee34=_0x10328f;var _0x35a66c;const _0x57eff6=this['_univerInstanceService']['getFocusedUnit']();let _0x8ef830=(_0x35a66c=this[_0x23ee34(0x252)][_0x23ee34(0x38a)](Qr))!=null?_0x35a66c:eo;_0x57eff6 instanceof _0x4ae2cc&&(_0x8ef830=_0x57eff6[_0x23ee34(0x33c)]),document['title']=_0x8ef830;})));}};Be=Zr([_0x76d0ae(_0x28e3b0[_0x87081d(0x3c1)],Be),hs(0x0,_0x1d5396),hs(0x1,_0x5d255f)],Be);var to=Object['defineProperty'],so=Object['getOwnPropertyDescriptor'],io=(_0xa2d5d5,_0x12f67d,_0x31f99d,_0x494878)=>{for(var _0x575540=_0x494878>0x1?void 0x0:_0x494878?so(_0x12f67d,_0x31f99d):_0x12f67d,_0x57899c=_0xa2d5d5['length']-0x1,_0x7e0ee;_0x57899c>=0x0;_0x57899c--)(_0x7e0ee=_0xa2d5d5[_0x57899c])&&(_0x575540=(_0x494878?_0x7e0ee(_0x12f67d,_0x31f99d,_0x575540):_0x7e0ee(_0x575540))||_0x575540);return _0x494878&&_0x575540&&to(_0x12f67d,_0x31f99d,_0x575540),_0x575540;},_s=(_0x1383bb,_0x406f6b)=>(_0x472e65,_0x3d7bd8)=>_0x406f6b(_0x472e65,_0x3d7bd8,_0x1383bb);let Ot=class{constructor(_0xb0ba14,_0x55c1e7){const _0xe1231b=_0x87081d;this[_0xe1231b(0x252)]=_0xb0ba14,this[_0xe1231b(0x4b5)]=_0x55c1e7;}async[_0x87081d(0x345)](_0x20d963,_0x9ac43e){const _0x24ff0f=_0x87081d;var _0x2d3c8f;const {unitID:_0x29d5f0,type:_0xdfae06,revision:_0x587e8e=0x0}=_0x9ac43e,_0x2a472d=this[_0x24ff0f(0x1fe)]()+'/'+_0xdfae06+_0x24ff0f(0x418)+_0x29d5f0+_0x24ff0f(0x40f)+_0x587e8e,_0x35d4fe=(await this[_0x24ff0f(0x4b5)]['get'](_0x2a472d))[_0x24ff0f(0x4e5)],_0x14d294=(_0x2d3c8f=_0x35d4fe[_0x24ff0f(0x362)])==null?void 0x0:_0x2d3c8f['workbook'];if(_0x14d294){const _0x499387=_0x14d294==null?void 0x0:_0x14d294[_0x24ff0f(0x3cc)],_0x21dd61=_0x310092['encode'](_0x59c020(_0x499387));_0x14d294[_0x24ff0f(0x3cc)]=_0x21dd61,Object['entries'](_0x14d294[_0x24ff0f(0x4c9)])[_0x24ff0f(0x1c8)](([,_0x5ca978])=>{const _0x47a43e=_0x24ff0f,_0x17203c=_0x5ca978[_0x47a43e(0x3cc)],_0x38ac07=_0x310092[_0x47a43e(0x4d9)](_0x59c020(_0x17203c));_0x5ca978[_0x47a43e(0x3cc)]=_0x38ac07;});}return _0x35d4fe;}async[_0x87081d(0x24f)](_0x1f9ad6,_0x164dc9){const _0x3f4ed1=_0x87081d,{unitID:_0x4d00f6,type:_0x5dd99b,blockID:_0xcc164a}=_0x164dc9,_0x438351=this[_0x3f4ed1(0x49f)]()+'/'+_0x5dd99b+_0x3f4ed1(0x418)+_0x4d00f6+'/block/'+_0xcc164a;return(await this[_0x3f4ed1(0x4b5)][_0x3f4ed1(0x1e9)](_0x438351))['body'];}async[_0x87081d(0x26f)](_0x4b3ba3,_0x101bdc){const _0x3f58e5=_0x87081d,{unitID:_0x21b7e3,type:_0xf31b21,from:_0x7f45bb,to:_0x13a0f4}=_0x101bdc,_0x49fa80=this[_0x3f58e5(0x49f)]()+'/'+_0xf31b21+_0x3f58e5(0x418)+_0x21b7e3+'/fetchmissing?from='+_0x7f45bb+_0x3f58e5(0x24b)+_0x13a0f4;return(await this['_httpService'][_0x3f58e5(0x1e9)](_0x49fa80))['body'];}[_0x87081d(0x1fe)](){const _0x50cd39=_0x87081d;var _0x2c6424;return(_0x2c6424=this['_configService'][_0x50cd39(0x38a)](hn))!=null?_0x2c6424:this[_0x50cd39(0x49f)]();}['_getAPIPrefix'](){const _0x5c644c=_0x87081d;var _0x278346;return(_0x278346=this['_configService'][_0x5c644c(0x38a)](an))!=null?_0x278346:cn;}async[_0x87081d(0x492)](_0x2dcb80,_0x359f08){const _0x1fc136=_0x87081d,_0xbd252e=_0x1fc136(0x34f)+_0x359f08[_0x1fc136(0x47c)]+'/unit/'+_0x359f08['unitID']+_0x1fc136(0x4cb);return(await this[_0x1fc136(0x4b5)][_0x1fc136(0x1e9)](_0xbd252e,{'params':{'resourceId':JSON[_0x1fc136(0x2e5)](_0x359f08[_0x1fc136(0x1f3)])}}))[_0x1fc136(0x4e5)];}[_0x87081d(0x22e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x87081d(0x1d6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x87081d(0x493)](){const _0x2cc682=_0x87081d;throw new Error(_0x2cc682(0x1be));}};Ot=io([_s(0x0,_0x5d255f),_s(0x1,_0x1b956a(_0x3db34c))],Ot);var no=Object[_0x87081d(0x318)],ro=Object['getOwnPropertyDescriptor'],oo=(_0x362120,_0x4d6a8e,_0x2c7c96,_0x51a1f1)=>{const _0xaddef2=_0x87081d;for(var _0x588337=_0x51a1f1>0x1?void 0x0:_0x51a1f1?ro(_0x4d6a8e,_0x2c7c96):_0x4d6a8e,_0x33fa30=_0x362120[_0xaddef2(0x46a)]-0x1,_0x532459;_0x33fa30>=0x0;_0x33fa30--)(_0x532459=_0x362120[_0x33fa30])&&(_0x588337=(_0x51a1f1?_0x532459(_0x4d6a8e,_0x2c7c96,_0x588337):_0x532459(_0x588337))||_0x588337);return _0x51a1f1&&_0x588337&&no(_0x4d6a8e,_0x2c7c96,_0x588337),_0x588337;},Pe=(_0x94d0b,_0x336930)=>(_0x16c36c,_0x52a98d)=>_0x336930(_0x16c36c,_0x52a98d,_0x94d0b);let Dt=class extends _0x54179a{constructor(_0xa769e3,_0x3ff0e4,_0x51e1c6,_0x12e179,_0x5cf3c2){const _0x3c46f8=_0x87081d;super(_0xa769e3,_0x3ff0e4,_0x51e1c6),this[_0x3c46f8(0x290)]=_0x12e179,this[_0x3c46f8(0x3e7)]=_0x5cf3c2;}['transformUndoRedo'](_0x1bf162,_0x3e23ba){const _0x339a5c=_0x87081d,_0x1f09e9=this['_getUndoStack'](_0x1bf162);if(_0x1f09e9)try{const _0x131b87=this[_0x339a5c(0x4d3)](_0x1f09e9,_0x3e23ba);this[_0x339a5c(0x1e4)](_0x1bf162,_0x131b87);}catch(_0x4ef936){this[_0x339a5c(0x3e7)][_0x339a5c(0x289)]('[CollaborationUndoRedoService]',_0x4ef936),this[_0x339a5c(0x37b)](_0x1bf162);}const _0x34b9d2=this[_0x339a5c(0x49b)](_0x1bf162);if(_0x34b9d2)try{const _0xbc79dc=this['_transformStack'](_0x34b9d2,_0x3e23ba);this['_substituteRedoStack'](_0x1bf162,_0xbc79dc);}catch(_0xa81953){this[_0x339a5c(0x3e7)][_0x339a5c(0x289)](_0xa81953),this[_0x339a5c(0x292)](_0x1bf162);}}[_0x87081d(0x37b)](_0x1a2b80){const _0x315643=_0x87081d,_0x4f7043=this[_0x315643(0x48d)](_0x1a2b80);_0x4f7043&&(_0x4f7043['length']=0x0,this[_0x315643(0x2ef)]());}[_0x87081d(0x292)](_0x5cbb9a){const _0x12a96f=_0x87081d,_0x598552=this[_0x12a96f(0x49b)](_0x5cbb9a);_0x598552&&(_0x598552[_0x12a96f(0x46a)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x33701a,_0x1cf17c){const _0x46d54d=_0x87081d;this[_0x46d54d(0x3c0)][_0x46d54d(0x4af)](_0x33701a,_0x1cf17c),this['_updateStatus']();}[_0x87081d(0x301)](_0x2309fa,_0x17a33b){const _0x403f07=_0x87081d;this[_0x403f07(0x423)][_0x403f07(0x4af)](_0x2309fa,_0x17a33b),this[_0x403f07(0x2ef)]();}[_0x87081d(0x4d3)](_0x1e79d1,_0x2f9cb3){const _0x3fd7a8=_0x87081d,_0x395c3b=[];let _0x2680d6=_0x2f9cb3,_0x29d7ce=_0x2f9cb3;for(let _0x3d1d8f=_0x1e79d1[_0x3fd7a8(0x46a)]-0x1;_0x3d1d8f>=0x0;_0x3d1d8f--){const {unitID:_0x3f340c,undoMutations:_0x5fdcba,redoMutations:_0x2900cd}=_0x1e79d1[_0x3d1d8f],_0x3b190d=this['_transformService'][_0x3fd7a8(0x43b)](_0x2680d6,_0x5fdcba),_0xa33ac8=this['_transformService'][_0x3fd7a8(0x43b)](_0x29d7ce,_0x2900cd);if(_0x519c1a(_0x3b190d)||_0x519c1a(_0xa33ac8)){this['_logService'][_0x3fd7a8(0x289)](_0x3fd7a8(0x42c),'transformStack\x20failed!',_0x3b190d,_0xa33ac8);break;}_0x2680d6=_0x3b190d[_0x3fd7a8(0x39e)],_0x29d7ce=_0xa33ac8[_0x3fd7a8(0x39e)],_0x395c3b[_0x3fd7a8(0x1ab)]({'unitID':_0x3f340c,'undoMutations':_0x3b190d[_0x3fd7a8(0x36f)],'redoMutations':_0xa33ac8[_0x3fd7a8(0x36f)]});}return _0x395c3b['reverse']();}};Dt=oo([Pe(0x0,_0x1d5396),Pe(0x1,_0x15992c),Pe(0x2,_0x492a6b),Pe(0x3,_0x4e495a),Pe(0x4,_0x82a609)],Dt);class ao extends _0x53ce5a{constructor(){const _0x457cbf=_0x87081d;super(),_(this,_0x457cbf(0x294)),this[_0x457cbf(0x294)]=_0x28ccd8(window,'popstate')[_0x457cbf(0x3b6)](_0x3c23a9(this[_0x457cbf(0x20e)]),_0x3b034a(0x1),_0x310a6c(void 0x0));}[_0x87081d(0x211)](_0x5c90c9,_0xd9463b,_0x13eae7=!0x1){const _0x53e5b9=_0x87081d,_0x424a22=new URL(window[_0x53e5b9(0x45f)]['href']);_0x424a22[_0x53e5b9(0x27d)][_0x53e5b9(0x4af)](_0x5c90c9,_0xd9463b),_0x13eae7?window[_0x53e5b9(0x4f6)]['replaceState']('','',_0x424a22['toString']()):window['history'][_0x53e5b9(0x44e)]('','',_0x424a22['toString']());}['removeParam'](_0x274447,_0x3e0380=!0x1){const _0x5cc368=_0x87081d,_0x5530f5=new URL(window[_0x5cc368(0x45f)][_0x5cc368(0x3e3)]);_0x5530f5[_0x5cc368(0x27d)]['delete'](_0x274447),_0x3e0380?window[_0x5cc368(0x4f6)][_0x5cc368(0x36e)]('','',_0x5530f5['toString']()):window[_0x5cc368(0x4f6)]['pushState']('','',_0x5530f5['toString']());}[_0x87081d(0x1f6)](_0x34f942){const _0x354f61=_0x87081d;var _0x21a437;return(_0x21a437=new URL(window[_0x354f61(0x45f)][_0x354f61(0x3e3)])[_0x354f61(0x27d)][_0x354f61(0x1e9)](_0x34f942))!=null?_0x21a437:void 0x0;}}const lt=_0x87081d(0x1d7),co=_0x87081d(0x273),ho=_0x87081d(0x4bb),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0x87081d(0x337);class ls{constructor(_0x39d7f3,_0x3d907f,_0x58b6c6,_0x1208ba){const _0x53e21=_0x87081d;_(this,_0x53e21(0x45c),[]),_(this,'_anchor',null),_(this,_0x53e21(0x484),null),_(this,_0x53e21(0x1d3),null),_(this,_0x53e21(0x457),null),_(this,'_eventUnsubscribe',null),(this[_0x53e21(0x2bf)]=_0x39d7f3,this['_scene']=_0x3d907f,this[_0x53e21(0x29b)]=_0x58b6c6,this[_0x53e21(0x1c2)]=_0x1208ba,this[_0x53e21(0x2a9)]());}set[_0x87081d(0x4ce)](_0x1d601a){const _0x2fec52=_0x87081d;_0x1d601a?(this[_0x2fec52(0x1d3)]&&this[_0x2fec52(0x1d3)][_0x2fec52(0x412)](),this['_textBubble']&&this[_0x2fec52(0x484)][_0x2fec52(0x410)]()):(this['_anchorDot']&&this[_0x2fec52(0x1d3)][_0x2fec52(0x410)](),this[_0x2fec52(0x484)]&&this[_0x2fec52(0x484)][_0x2fec52(0x412)]());}[_0x87081d(0x23c)](){const _0x53dc4f=_0x87081d;for(const _0x2584a5 of this[_0x53dc4f(0x45c)])_0x2584a5[_0x53dc4f(0x23c)]();this[_0x53dc4f(0x484)]&&this[_0x53dc4f(0x484)][_0x53dc4f(0x23c)](),this[_0x53dc4f(0x1d3)]&&this[_0x53dc4f(0x1d3)][_0x53dc4f(0x23c)](),this[_0x53dc4f(0x49d)]&&this[_0x53dc4f(0x49d)]['dispose'](),this['_eventUnsubscribe']&&this[_0x53dc4f(0x25d)]();}[_0x87081d(0x2a9)](){const _0x2401c4=_0x87081d;var _0x45d675;const {_docSkeleton:_0x2af747,_document:_0x5c8b25}=this,{color:_0x35202b,name:_0x13ab1d,ranges:_0x59932d}=this[_0x2401c4(0x2bf)],_0x4fc5cc=_0x5c8b25[_0x2401c4(0x2e3)](),{docsLeft:_0x2b2964,docsTop:_0x17a46d}=_0x4fc5cc,_0x1ee52f=new _0x5e6c7c(_0x4fc5cc,_0x2af747);for(const {startOffset:_0x455a33,endOffset:_0x3d42ad,collapsed:_0x3bdfb2,isActive:_0x111584}of _0x59932d){const _0x4003dc=_0x2af747[_0x2401c4(0x3e4)](_0x455a33),_0x46efa9=_0x2af747['findNodePositionByCharIndex'](_0x3d42ad);if(_0x111584){const {contentBoxPointGroup:_0x3dc789}=_0x1ee52f[_0x2401c4(0x3ad)](_0x46efa9,_0x46efa9);if(_0x3dc789['length']===0x0)continue;this['_drawAnchor'](_0x35202b,_0x3dc789,_0x2b2964,_0x17a46d,_0x13ab1d),this[_0x2401c4(0x25d)]=this[_0x2401c4(0x2dd)]();}if(!_0x3bdfb2&&_0x4003dc&&_0x46efa9){if(_0x4c5cc1(_0x4003dc,_0x46efa9)){const _0x1f73f8=new _0x564309(_0x4fc5cc,_0x2af747),{pointGroup:_0x3f6051}=(_0x45d675=_0x1f73f8[_0x2401c4(0x3ad)](_0x4003dc,_0x46efa9))!=null?_0x45d675:{};if(_0x3f6051==null||_0x3f6051['length']===0x0)continue;this[_0x2401c4(0x311)](_0x35202b,_0x3f6051,_0x2b2964,_0x17a46d);}else{const {contentBoxPointGroup:_0x9a0c78}=_0x1ee52f[_0x2401c4(0x3ad)](_0x4003dc,_0x46efa9);if(_0x9a0c78[_0x2401c4(0x46a)]===0x0)continue;this[_0x2401c4(0x2c1)](_0x35202b,_0x9a0c78,_0x2b2964,_0x17a46d);}}}}[_0x87081d(0x2cb)](_0x2b6bff,_0x5098f4,_0x5170f1,_0x4656cd,_0x298718){const _0x328f73=_0x87081d,_0x4417a5=this[_0x328f73(0x3ca)](_0x5098f4),{left:_0x376e36,top:_0x21d9e1,height:_0x298c9d}=_0x4417a5,_0x5dd731=this[_0x328f73(0x1ef)](),_0x2f688e=lo/_0x5dd731,_0x1d5a04=new _0x31ca09(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd,'height':_0x298c9d,'width':_o,'fill':_0x2b6bff||_0x5664c9(_0x5212b1[_0x328f73(0x4b4)],0x0),'strokeWidth':_0x2f688e,'stroke':uo,'evented':!0x0});this['_anchor']=_0x1d5a04,this['_scene'][_0x328f73(0x238)](_0x1d5a04,_0x130379);const _0x51215f=new _0x31ca09(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd-ut/0x2,'height':ut,'width':ut,'fill':_0x2b6bff||_0x5664c9(_0x5212b1[_0x328f73(0x4b4)],0x0),'strokeWidth':0x0,'stroke':_0x2b6bff||_0x5664c9(_0x5212b1['black'],0x0),'evented':!0x1});this[_0x328f73(0x1d3)]=_0x51215f,this[_0x328f73(0x3df)][_0x328f73(0x238)](_0x51215f,_0x130379);const _0x4d57e4=new it(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd-ye,'text':_0x298718,'color':_0x2b6bff});this[_0x328f73(0x484)]=_0x4d57e4,this['_scene']['addObject'](_0x4d57e4,_0x130379),this[_0x328f73(0x4ce)]=!0x1;}[_0x87081d(0x2dd)](){const _0x56e8f4=_0x87081d,_0x2b9710=this[_0x56e8f4(0x49d)][_0x56e8f4(0x19f)][_0x56e8f4(0x3fd)](()=>{const _0x5149df=_0x56e8f4;this[_0x5149df(0x4ce)]=!0x0;}),_0x55f824=this['_anchor'][_0x56e8f4(0x3ce)][_0x56e8f4(0x3fd)](()=>{const _0x3c08ab=_0x56e8f4;this[_0x3c08ab(0x457)]&&clearTimeout(this[_0x3c08ab(0x457)]),this['_hideTimer']=setTimeout(()=>{const _0xb4e265=_0x3c08ab;this[_0xb4e265(0x4ce)]=!0x1;},0x7d0);});return()=>{const _0x9b0155=_0x56e8f4;_0x2b9710[_0x9b0155(0x2a8)](),_0x55f824[_0x9b0155(0x2a8)]();};}[_0x87081d(0x2c1)](_0xfd8d4a,_0x477c94,_0x4326da,_0x1aad2f){const _0x1a64cc=_0x87081d,_0x4871b9=new _0x5c6173(_0xfd8d4a)[_0x1a64cc(0x1ca)](0.2)[_0x1a64cc(0x2de)](),_0x4cb855=new _0x1ef824(co+_0x1540f0['generateRandomId'](we),{'pointsGroup':_0x477c94,'fill':_0x4871b9||_0x5664c9(_0x5212b1[_0x1a64cc(0x4b4)],0.2),'left':_0x4326da,'top':_0x1aad2f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a64cc(0x45c)][_0x1a64cc(0x1ab)](_0x4cb855),this[_0x1a64cc(0x3df)][_0x1a64cc(0x238)](_0x4cb855,_0x130379);}['_drawRectRange'](_0x151fca,_0x57562a,_0x2eb4b5,_0x734f18){const _0x4aa825=_0x87081d,_0x45d1f3=new _0x5c6173(_0x151fca)[_0x4aa825(0x1ca)](0.2)[_0x4aa825(0x2de)](),_0x3943a4=new _0x1ef824(ho+_0x1540f0['generateRandomId'](we),{'pointsGroup':_0x57562a,'fill':_0x45d1f3||_0x5664c9(_0x5212b1[_0x4aa825(0x4b4)],0.2),'left':_0x2eb4b5,'top':_0x734f18,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4aa825(0x45c)][_0x4aa825(0x1ab)](_0x3943a4),this[_0x4aa825(0x3df)][_0x4aa825(0x238)](_0x3943a4,_0x130379);}[_0x87081d(0x3ca)](_0x53b961){const _0x3755a7=_0x53b961[0x0],_0x1f80f1=_0x3755a7[0x0],_0x5e7660=_0x3755a7[0x2],{x:_0x1a2c55,y:_0x6cc0a8}=_0x1f80f1,{x:_0x151e93,y:_0x2ac20c}=_0x5e7660;return{'left':_0x1a2c55,'top':_0x6cc0a8,'width':_0x151e93-_0x1a2c55,'height':_0x2ac20c-_0x6cc0a8};}[_0x87081d(0x1ef)](){const _0x5bbf09=_0x87081d,{scaleX:_0x49eb72,scaleY:_0x27cf74}=this[_0x5bbf09(0x3df)][_0x5bbf09(0x367)]();return Math['max'](_0x49eb72,_0x27cf74);}}var mo=Object[_0x87081d(0x318)],fo=Object['getOwnPropertyDescriptor'],go=(_0x54b10b,_0x59979c,_0x5267db,_0x1a2db1)=>{for(var _0xe8b28e=_0x1a2db1>0x1?void 0x0:_0x1a2db1?fo(_0x59979c,_0x5267db):_0x59979c,_0x2bebe2=_0x54b10b['length']-0x1,_0x29350b;_0x2bebe2>=0x0;_0x2bebe2--)(_0x29350b=_0x54b10b[_0x2bebe2])&&(_0xe8b28e=(_0x1a2db1?_0x29350b(_0x59979c,_0x5267db,_0xe8b28e):_0x29350b(_0xe8b28e))||_0xe8b28e);return _0x1a2db1&&_0xe8b28e&&mo(_0x59979c,_0x5267db,_0xe8b28e),_0xe8b28e;},je=(_0x59ff05,_0x2cc2c4)=>(_0x4ceb6e,_0xaecc7c)=>_0x2cc2c4(_0x4ceb6e,_0xaecc7c,_0x59ff05);let Fe=class extends _0x53ce5a{constructor(_0x81b978,_0x20bfc5,_0x103a29,_0x23c5a5,_0x8a094d){const _0xfe7ba=_0x87081d;super(),_(this,_0xfe7ba(0x48c),[]),_(this,_0xfe7ba(0x1eb),[]),(this[_0xfe7ba(0x485)]=_0x81b978,this['_docSkeletonManagerService']=_0x20bfc5,this[_0xfe7ba(0x4b8)]=_0x103a29,this[_0xfe7ba(0x248)]=_0x23c5a5,this[_0xfe7ba(0x430)]=_0x8a094d,this[_0xfe7ba(0x4fd)]());}[_0x87081d(0x4fd)](){const _0x1daa8e=_0x87081d,_0x33f980=this[_0x1daa8e(0x485)][_0x1daa8e(0x20b)],_0x39c622=this[_0x1daa8e(0x26d)];this[_0x1daa8e(0x343)](_0x138d6c([this[_0x1daa8e(0x4b8)][_0x1daa8e(0x23b)](_0x33f980),this[_0x1daa8e(0x430)][_0x1daa8e(0x383)]])[_0x1daa8e(0x3b6)](_0x414fcf(([_0x5861dd,_0x36edb0])=>({'skeleton':_0x39c622[_0x1daa8e(0x2d7)](),'cursors':[..._0x5861dd[_0x1daa8e(0x247)]()][_0x1daa8e(0x29e)](_0x35b84c=>({..._0x35b84c,'color':_0x36edb0[_0x35b84c[_0x1daa8e(0x295)]]}))})))[_0x1daa8e(0x347)](_0x119cf0=>{const _0x194a59=_0x1daa8e;if(this[_0x194a59(0x3d9)](),_0x119cf0){const {skeleton:_0x3c6aa5,cursors:_0x4e52b8}=_0x119cf0;this['_updateCollabCursors'](_0x3c6aa5,_0x4e52b8);}})),this['_initResize'](),this[_0x1daa8e(0x2a2)]();}['_updateCollabCursors'](_0x59f76f,_0xc2d20f){const _0x3eba84=_0x87081d,{scene:_0x53ae77,mainComponent:_0x27e9cf}=this[_0x3eba84(0x485)],_0xe2fd4f=_0xc2d20f[_0x3eba84(0x234)](_0x5c6722=>new ls(_0x5c6722,_0x53ae77,_0x59f76f,_0x27e9cf));this[_0x3eba84(0x48c)]=_0xe2fd4f,this[_0x3eba84(0x1eb)]=_0xc2d20f;}[_0x87081d(0x2ae)](){const _0x162d66=_0x87081d;this[_0x162d66(0x3d9)]();const {scene:_0x4e72d1,mainComponent:_0x1e12eb}=this[_0x162d66(0x485)],_0x5921f9=this['_docSkeletonManagerService'][_0x162d66(0x2d7)](),_0x186b85=this[_0x162d66(0x1eb)]['map'](_0x539be7=>new ls(_0x539be7,_0x4e72d1,_0x5921f9,_0x1e12eb));this[_0x162d66(0x48c)]=_0x186b85;}[_0x87081d(0x3d9)](){const _0x42bc7f=_0x87081d;this['_cursorShapes']['forEach'](_0x18c8ab=>_0x18c8ab['dispose']()),this[_0x42bc7f(0x48c)]=[];}['_initCommandExecutedListener'](){const _0x5e4e90=_0x87081d,_0x5ec101=[_0x46d2fe['id']];this[_0x5e4e90(0x343)](this[_0x5e4e90(0x248)][_0x5e4e90(0x3b9)](_0x7dbe2=>{const _0x3f3729=_0x5e4e90;_0x5ec101[_0x3f3729(0x309)](_0x7dbe2['id'])&&_0x7dbe2[_0x3f3729(0x428)][_0x3f3729(0x20b)]===this[_0x3f3729(0x485)][_0x3f3729(0x20b)]&&this[_0x3f3729(0x2ae)]();}));}[_0x87081d(0x26b)](){const _0x3694cf=_0x87081d;this[_0x3694cf(0x343)](_0x240261(this[_0x3694cf(0x485)][_0x3694cf(0x274)][_0x3694cf(0x47b)])['pipe'](_0x381935(_0x49d2b7=>_0x49d2b7[_0x3694cf(0x47c)]===_0x2cbd51[_0x3694cf(0x350)]),_0xcfa107(0x10))[_0x3694cf(0x347)](()=>{const _0x5ee2eb=_0x3694cf;this[_0x5ee2eb(0x2ae)]();}));}};Fe=go([_0x76d0ae(_0x28e3b0[_0x87081d(0x205)],Fe),je(0x1,_0x1b956a(_0x26e3ab)),je(0x2,_0x1b956a(ge)),je(0x3,_0x15992c),je(0x4,_0x1b956a(_0x4a7906))],Fe);var So=Object[_0x87081d(0x318)],po=Object[_0x87081d(0x314)],vo=(_0x2aacec,_0x346226,_0x8ed806,_0x2c70a1)=>{const _0x304379=_0x87081d;for(var _0x41d075=_0x2c70a1>0x1?void 0x0:_0x2c70a1?po(_0x346226,_0x8ed806):_0x346226,_0x5f42f1=_0x2aacec[_0x304379(0x46a)]-0x1,_0xee53f3;_0x5f42f1>=0x0;_0x5f42f1--)(_0xee53f3=_0x2aacec[_0x5f42f1])&&(_0x41d075=(_0x2c70a1?_0xee53f3(_0x346226,_0x8ed806,_0x41d075):_0xee53f3(_0x41d075))||_0x41d075);return _0x2c70a1&&_0x41d075&&So(_0x346226,_0x8ed806,_0x41d075),_0x41d075;},dt=(_0x339711,_0x11f644)=>(_0x45ad68,_0x199acb)=>_0x11f644(_0x45ad68,_0x199acb,_0x339711);let Qe=class{constructor(_0x95fbd9,_0xc90488,_0x4b26ef){const _0x3883e6=_0x87081d;this[_0x3883e6(0x252)]=_0x95fbd9,this['_httpService']=_0xc90488,this[_0x3883e6(0x3b4)]=_0x4b26ef,this['init']();}[_0x87081d(0x310)](){const _0x558963=_0x87081d;this['_httpService'][_0x558963(0x395)]({'priority':0x1,'interceptor':(_0x4fa7b5,_0x2485f1)=>_0x2485f1(_0x4fa7b5)[_0x558963(0x3b6)](_0x2ccf11(async _0x595f8d=>{const _0x526aee=_0x558963,_0x52b1e8=_0x595f8d;if(_0x52b1e8[_0x526aee(0x3a9)]===0x191&&window['confirm'](this[_0x526aee(0x3b4)]['t'](_0x526aee(0x2fa)))){const _0x22d163=window[_0x526aee(0x251)](window['location'][_0x526aee(0x3e3)]);window[_0x526aee(0x45f)][_0x526aee(0x3e3)]=this[_0x526aee(0x354)]()+_0x526aee(0x3f9)+_0x22d163;}return _0x52b1e8;}))});}[_0x87081d(0x354)](){const _0x10e661=_0x87081d;var _0x290166;return(_0x290166=this[_0x10e661(0x252)][_0x10e661(0x38a)](Rn))!=null?_0x290166:Tn;}};Qe=vo([dt(0x0,_0x5d255f),dt(0x1,_0x1b956a(_0x3db34c)),dt(0x2,_0x1b956a(_0x2db4b8))],Qe);var Io=Object[_0x87081d(0x318)],Eo=Object[_0x87081d(0x314)],Co=(_0x4e926d,_0x1ade63,_0x41aaee,_0x3cf3e8)=>{const _0x2e504b=_0x87081d;for(var _0x1f9dba=_0x3cf3e8>0x1?void 0x0:_0x3cf3e8?Eo(_0x1ade63,_0x41aaee):_0x1ade63,_0x43fa10=_0x4e926d[_0x2e504b(0x46a)]-0x1,_0x143f1f;_0x43fa10>=0x0;_0x43fa10--)(_0x143f1f=_0x4e926d[_0x43fa10])&&(_0x1f9dba=(_0x3cf3e8?_0x143f1f(_0x1ade63,_0x41aaee,_0x1f9dba):_0x143f1f(_0x1f9dba))||_0x1f9dba);return _0x3cf3e8&&_0x1f9dba&&Io(_0x1ade63,_0x41aaee,_0x1f9dba),_0x1f9dba;},us=(_0x4ef6d1,_0x4f59a3)=>(_0x1c4eb3,_0x561e95)=>_0x4f59a3(_0x1c4eb3,_0x561e95,_0x4ef6d1);const bo=_0x87081d(0x381),Ro='/universer-api/authz';let Pt=class extends _0x1ee863{constructor(_0x47dfaa,_0xf8cb22){const _0x458a85=_0x87081d;super(),this[_0x458a85(0x26a)]=_0x47dfaa,this['_configService']=_0xf8cb22,this['_initMergeInterceptor']();}[_0x87081d(0x4df)](){const _0x23e4d1=_0x87081d,_0x3e38ff=this;this[_0x23e4d1(0x343)](this['_HTTPService'][_0x23e4d1(0x395)]({'priority':0x3e7,'interceptor':_0x5c8e22({'isMatch'(_0x420f28){const _0x3818ec=_0x23e4d1;var _0xc9bc6e;if(_0x420f28['method']===_0x3818ec(0x1bd)&&((_0xc9bc6e=_0x420f28[_0x3818ec(0x216)])!=null&&_0xc9bc6e[_0x3818ec(0x4e5)])){const {objectID:_0x4d2ad7,objectType:_0x99f79e}=_0x420f28['requestParams']['body']||{};if(!_0x4d2ad7||_0x99f79e===void 0x0)return!0x1;const _0x3833ba=_0x3e38ff[_0x3818ec(0x1a9)]()+'/'+_0x99f79e+_0x3818ec(0x3bb)+_0x4d2ad7+_0x3818ec(0x426);if(_0x420f28[_0x3818ec(0x1bc)]===_0x3833ba)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x570c11){const _0x1aef98=_0x23e4d1;var _0x3cc1c1;return(_0x3cc1c1=_0x570c11[_0x1aef98(0x216)])==null?void 0x0:_0x3cc1c1[_0x1aef98(0x4e5)];},'mergeParamsToRequest'(_0x34af8d,_0x546094){const _0x2ff26e=_0x23e4d1,_0x2f3ddd=_0x3e38ff[_0x2ff26e(0x1a9)]()+_0x2ff26e(0x455),_0x2a724e=_0x34af8d[_0x2ff26e(0x1ec)]((_0x533bfc,_0x1c8dc3)=>{const _0xdcf547=_0x2ff26e,{unitID:_0xaf6f9e,objectID:_0x1f8529,objectType:_0x8e4b2e,actions:_0x5ec45b}=_0x1c8dc3;return _0x533bfc[_0xaf6f9e]||(_0x533bfc[_0xaf6f9e]={}),_0x533bfc[_0xaf6f9e][_0x1f8529]||(_0x533bfc[_0xaf6f9e][_0x1f8529]={'objectID':_0x1f8529,'objectType':_0x8e4b2e,'actions':[]}),_0x533bfc[_0xaf6f9e][_0x1f8529][_0xdcf547(0x4f1)][_0xdcf547(0x1ab)](..._0x5ec45b),_0x533bfc;},{}),_0x1768ce=[];for(const _0x457268 in _0x2a724e)for(const _0x213b7e in _0x2a724e[_0x457268]){const {actions:_0x580e4a,objectType:_0x4f5f16}=_0x2a724e[_0x457268][_0x213b7e],_0x562331=[...new Set(_0x580e4a)];_0x1768ce[_0x2ff26e(0x1ab)]({'unitID':_0x457268,'objectID':_0x213b7e,'objectType':_0x4f5f16,'actions':_0x562331});}return new _0x3fce40(_0x2ff26e(0x1bd),_0x2f3ddd,{'headers':_0x546094[_0x2ff26e(0x499)],'withCredentials':_0x546094[_0x2ff26e(0x497)],'responseType':_0x546094[_0x2ff26e(0x1ea)],'body':{'requests':_0x1768ce}});}},{'distributeResult'(_0x1f9d92,_0x381f40){const {objectActions:_0x1f9663}=_0x1f9d92;return _0x381f40['map'](_0x3a94f9=>{const _0x1234fc=_0x1fa5,{unitID:_0x2d72ef,objectID:_0x3d8d38,actions:_0x1bff16}=_0x3a94f9,_0x611090=_0x1f9663[_0x1234fc(0x3eb)](_0xaf7fe4=>_0xaf7fe4['unitID']===_0x2d72ef&&_0xaf7fe4['objectID']===_0x3d8d38),_0x44f061=_0x1bff16[_0x1234fc(0x234)](_0x42bdab=>_0x611090==null?void 0x0:_0x611090[_0x1234fc(0x4f1)][_0x1234fc(0x3eb)](_0x4ddfd6=>_0x4ddfd6['action']===_0x42bdab))[_0x1234fc(0x421)](_0x5a0a72=>!!_0x5a0a72);return{'config':_0x3a94f9,'result':{'actions':_0x44f061,'error':_0x1f9d92['error']}};});}})}));}[_0x87081d(0x1a9)](){const _0x558900=_0x87081d;var _0x460b86;return(_0x460b86=this[_0x558900(0x252)][_0x558900(0x38a)](bo))!=null?_0x460b86:Ro;}async['create'](_0x33cb7a){const _0x5d0946=_0x87081d,_0x40c007=this[_0x5d0946(0x1a9)]()+'/'+_0x33cb7a[_0x5d0946(0x30d)]+'/object';return(await this['_HTTPService'][_0x5d0946(0x3f6)](_0x40c007,{'body':_0x33cb7a}))['body'][_0x5d0946(0x355)]||'';}async[_0x87081d(0x4fc)](_0x219c39){const _0x23dfcb=_0x87081d,_0x2878ad=this[_0x23dfcb(0x1a9)]()+_0x23dfcb(0x34d);return(await this[_0x23dfcb(0x26a)][_0x23dfcb(0x3f6)](_0x2878ad,{'body':_0x219c39}))[_0x23dfcb(0x4e5)][_0x23dfcb(0x324)];}async[_0x87081d(0x269)](_0x427e8c){const _0x47c33e=_0x87081d,_0x6c142c=this[_0x47c33e(0x1a9)]()+'/'+_0x427e8c[_0x47c33e(0x30d)]+_0x47c33e(0x3bb)+_0x427e8c['objectID'];await this[_0x47c33e(0x26a)]['put'](_0x6c142c,{'body':_0x427e8c});}async[_0x87081d(0x435)](_0x25a863){const _0x2e50e2=_0x87081d,_0xe79aa3=this[_0x2e50e2(0x1a9)]()+'/'+_0x25a863['objectType']+_0x2e50e2(0x3bb)+_0x25a863[_0x2e50e2(0x355)]+_0x2e50e2(0x426);return(await this[_0x2e50e2(0x26a)]['post'](_0xe79aa3,{'body':_0x25a863}))['body'][_0x2e50e2(0x4f1)];}async['batchAllowed'](_0x27464b){const _0x4ee6ce=_0x87081d,_0x11ca4a=this['_getAPIPrefixPath']()+_0x4ee6ce(0x455);return(await this[_0x4ee6ce(0x26a)]['post'](_0x11ca4a,{'body':{'requests':_0x27464b}}))[_0x4ee6ce(0x4e5)][_0x4ee6ce(0x370)];}async[_0x87081d(0x2a7)](_0x2168ac){const _0x29e6f7=_0x87081d,_0x266186=this[_0x29e6f7(0x1a9)]()+'/'+_0x2168ac[_0x29e6f7(0x30d)]+_0x29e6f7(0x4da),_0x18a5ab=await this[_0x29e6f7(0x26a)][_0x29e6f7(0x3f6)](_0x266186,{'body':_0x2168ac});return{'roles':_0x18a5ab[_0x29e6f7(0x4e5)]['roles'],'actions':_0x18a5ab[_0x29e6f7(0x4e5)][_0x29e6f7(0x4f1)]};}async[_0x87081d(0x2e2)](_0x9ef6fa){const _0x44801b=_0x87081d,_0x390767=this['_getAPIPrefixPath']()+_0x44801b(0x4ad);await this[_0x44801b(0x26a)][_0x44801b(0x3c7)](_0x390767,{'params':{'collaboratorID':_0x9ef6fa[_0x44801b(0x398)],'objectID':_0x9ef6fa[_0x44801b(0x355)],'unitID':_0x9ef6fa[_0x44801b(0x3a8)]}});}async['updateCollaborator'](_0x4a9582){const _0x2f1666=_0x87081d,_0x3406ac=this[_0x2f1666(0x1a9)]()+_0x2f1666(0x4ad);await this[_0x2f1666(0x26a)][_0x2f1666(0x2d9)](_0x3406ac,{'body':_0x4a9582});}async[_0x87081d(0x1fa)](_0x3d3185){const _0xbf145a=_0x87081d,_0x3012ce=this[_0xbf145a(0x1a9)]()+_0xbf145a(0x4ad);await this['_HTTPService'][_0xbf145a(0x3f6)](_0x3012ce,{'body':_0x3d3185});}async[_0x87081d(0x229)](_0x10a948){const _0xc81142=_0x87081d,_0x464981=this['_getAPIPrefixPath']()+_0xc81142(0x4ad);return(await this['_HTTPService'][_0xc81142(0x1e9)](_0x464981,{'params':{'objectID':_0x10a948['objectID'],'unitID':_0x10a948[_0xc81142(0x3a8)]}}))[_0xc81142(0x4e5)]['collaborators'];}async['putCollaborators'](_0x182d74){const _0x36a0ff=_0x87081d,_0x4760c0=this[_0x36a0ff(0x1a9)]()+_0x36a0ff(0x4ad);await this[_0x36a0ff(0x26a)][_0x36a0ff(0x480)](_0x4760c0,{'body':_0x182d74});}};Pt=Co([us(0x0,_0x1b956a(_0x3db34c)),us(0x1,_0x1b956a(_0x5d255f))],Pt);var To=Object[_0x87081d(0x318)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x54c87e,_0x1ee92c,_0x18d196,_0x4fabf7)=>{const _0x6479c3=_0x87081d;for(var _0x48c974=_0x4fabf7>0x1?void 0x0:_0x4fabf7?Oo(_0x1ee92c,_0x18d196):_0x1ee92c,_0x205596=_0x54c87e[_0x6479c3(0x46a)]-0x1,_0x262a8c;_0x205596>=0x0;_0x205596--)(_0x262a8c=_0x54c87e[_0x205596])&&(_0x48c974=(_0x4fabf7?_0x262a8c(_0x1ee92c,_0x18d196,_0x48c974):_0x262a8c(_0x48c974))||_0x48c974);return _0x4fabf7&&_0x48c974&&To(_0x1ee92c,_0x18d196,_0x48c974),_0x48c974;},mt=(_0x51eefc,_0x39f9f5)=>(_0xa2083f,_0x10b52d)=>_0x39f9f5(_0xa2083f,_0x10b52d,_0x51eefc);const Po=[_0x87081d(0x399),_0x87081d(0x405),_0x87081d(0x473),_0x87081d(0x4f4),_0x87081d(0x37a)],wo=0x5*0x400*0x400,No=_0x87081d(0x288),Mo='/universer-api/stream/file/upload',Ao=_0x87081d(0x4a0),Uo=_0x87081d(0x1c5);let wt=class{constructor(_0x2ee05a,_0x2fdab8,_0x23a6a4){const _0x15df2c=_0x87081d;_(this,'_waitCount',0x0),_(this,_0x15df2c(0x27b),new _0x1ace47()),_(this,'change$',this['_change$']),_(this,'_imageSourceCache',new Map()),(this[_0x15df2c(0x4b5)]=_0x2ee05a,this['_configService']=_0x2fdab8,this[_0x15df2c(0x2bb)]=_0x23a6a4);}[_0x87081d(0x444)](_0x168486){const _0x395153=_0x87081d;this[_0x395153(0x1b9)]=_0x168486,this[_0x395153(0x27b)][_0x395153(0x4fe)](_0x168486);}['getImageSourceCache'](_0x56acc3,_0x321f73){const _0x5bba59=_0x87081d;if(_0x321f73===_0x434ac3[_0x5bba59(0x366)]){const _0x27431a=new Image();return _0x27431a[_0x5bba59(0x461)]=_0x56acc3,_0x27431a;}return this['_imageSourceCache'][_0x5bba59(0x1e9)](_0x56acc3);}[_0x87081d(0x447)](_0x334038,_0x3d4819,_0x109b1b){const _0x19ea01=_0x87081d;_0x3d4819===_0x434ac3[_0x19ea01(0x366)]||_0x109b1b==null||this[_0x19ea01(0x3e6)][_0x19ea01(0x4af)](_0x334038,_0x109b1b);}async[_0x87081d(0x43c)](_0x151dbc){const _0x48e284=_0x87081d;try{const _0x4c7b50=this['_replaceFileID'](this[_0x48e284(0x297)](),''+_0x151dbc),_0x4d0ed9=(await this[_0x48e284(0x4b5)][_0x48e284(0x1e9)](_0x4c7b50))[_0x48e284(0x4e5)];return _0x4d0ed9[_0x48e284(0x289)]&&_0x4d0ed9['error'][_0x48e284(0x1a7)]===Ps['OK']?Promise[_0x48e284(0x3cb)](_0x4d0ed9[_0x48e284(0x1bc)]):Promise[_0x48e284(0x378)](_0x4d0ed9[_0x48e284(0x289)]);}catch(_0x57ff1e){return Promise[_0x48e284(0x378)](_0x57ff1e);}}async[_0x87081d(0x21a)](_0x33eb3c){const _0x3c1d98=_0x87081d;let _0x2c71a1='';if(!Po['includes'](_0x33eb3c[_0x3c1d98(0x47c)]))return this[_0x3c1d98(0x2b0)](),Promise[_0x3c1d98(0x378)](new Error(_0x46d7f0[_0x3c1d98(0x375)]));if(_0x33eb3c[_0x3c1d98(0x25e)]>wo)return this[_0x3c1d98(0x2b0)](),Promise['reject'](new Error(_0x46d7f0['ERROR_EXCEED_SIZE']));try{const _0x34c4cf=new FormData();_0x34c4cf[_0x3c1d98(0x387)](_0x3c1d98(0x3d2),_0x33eb3c);const _0x650fc9=this['_univerInstanceService'][_0x3c1d98(0x4e7)](),_0x557545=_0x650fc9==null?void 0x0:_0x650fc9[_0x3c1d98(0x1b5)]();if(!_0x557545)throw new Error(_0x3c1d98(0x483));const _0x1fdaa5=this['_getUploadFileURL']()+_0x3c1d98(0x327)+_0x33eb3c['size'][_0x3c1d98(0x454)]()+_0x3c1d98(0x380)+ws['UnitEmbedded']+_0x3c1d98(0x429)+encodeURIComponent(_0x557545),_0x3f595e=await(await fetch(_0x1fdaa5,{'method':'POST','body':_0x34c4cf}))[_0x3c1d98(0x21f)]();if(typeof _0x3f595e[_0x3c1d98(0x25b)]!='string')return this[_0x3c1d98(0x2b0)](),Promise[_0x3c1d98(0x378)](new Error(_0x46d7f0['ERROR_IMAGE']));_0x2c71a1=_0x3f595e[_0x3c1d98(0x25b)];}catch{return this[_0x3c1d98(0x2b0)](),Promise['reject'](new Error(_0x46d7f0['ERROR_IMAGE']));}return new Promise((_0x328fb9,_0x1b3fd5)=>{const _0x318fdb=_0x3c1d98,_0x3f8e06=new FileReader();_0x3f8e06['readAsDataURL'](_0x33eb3c),_0x3f8e06[_0x318fdb(0x3c3)]=_0x2c00be=>{const _0x5a7bd3=_0x318fdb;var _0x1034f8;const _0x18ab8e=(_0x1034f8=_0x2c00be[_0x5a7bd3(0x37c)])==null?void 0x0:_0x1034f8['result'];if(_0x18ab8e==null){this[_0x5a7bd3(0x2b0)](),_0x1b3fd5(new Error(_0x46d7f0['ERROR_IMAGE']));return;}const _0x28cd2a=_0x1540f0['generateRandomId'](0x6);_0x328fb9({'imageId':_0x28cd2a,'imageSourceType':_0x434ac3[_0x5a7bd3(0x4d4)],'source':_0x2c71a1,'base64Cache':_0x18ab8e,'status':_0x46d7f0[_0x5a7bd3(0x41f)]}),this[_0x5a7bd3(0x2b0)]();};});}[_0x87081d(0x4a4)](){const _0x1cf62f=_0x87081d;var _0x708501;return(_0x708501=this[_0x1cf62f(0x252)][_0x1cf62f(0x38a)](No))!=null?_0x708501:Mo;}[_0x87081d(0x297)](){const _0x18654e=_0x87081d;var _0x23c875;return(_0x23c875=this[_0x18654e(0x252)][_0x18654e(0x38a)](Ao))!=null?_0x23c875:Uo;}[_0x87081d(0x37e)](_0xb4669,_0x477ffa){const _0x1c8489=_0x87081d;return _0xb4669[_0x1c8489(0x371)](_0x1c8489(0x4c1),_0x477ffa);}[_0x87081d(0x2b0)](){const _0x50c2fd=_0x87081d;this['_waitCount']-=0x1,this[_0x50c2fd(0x27b)][_0x50c2fd(0x4fe)](this['_waitCount']);}};wt=Do([mt(0x0,_0x1b956a(_0x3db34c)),mt(0x1,_0x5d255f),mt(0x2,_0x1b956a(_0x1d5396))],wt);var yo=Object[_0x87081d(0x318)],Lo=Object[_0x87081d(0x314)],$o=(_0x564292,_0x26d482,_0x2fdc20,_0x1dd823)=>{const _0x2b3611=_0x87081d;for(var _0x230f4a=_0x1dd823>0x1?void 0x0:_0x1dd823?Lo(_0x26d482,_0x2fdc20):_0x26d482,_0x17ad80=_0x564292[_0x2b3611(0x46a)]-0x1,_0x510f32;_0x17ad80>=0x0;_0x17ad80--)(_0x510f32=_0x564292[_0x17ad80])&&(_0x230f4a=(_0x1dd823?_0x510f32(_0x26d482,_0x2fdc20,_0x230f4a):_0x510f32(_0x230f4a))||_0x230f4a);return _0x1dd823&&_0x230f4a&&yo(_0x26d482,_0x2fdc20,_0x230f4a),_0x230f4a;},Ne=(_0x5803b9,_0x220ad8)=>(_0x429b22,_0x266aea)=>_0x220ad8(_0x429b22,_0x266aea,_0x5803b9);let We=class extends _0x53ce5a{constructor(_0x2b98ce,_0x5c261f,_0x4b2cb6,_0x55b62f,_0x79732b){const _0x3842f7=_0x87081d;super(),this[_0x3842f7(0x440)]=_0x2b98ce,this[_0x3842f7(0x2bb)]=_0x5c261f,this[_0x3842f7(0x1d4)]=_0x4b2cb6,this[_0x3842f7(0x4f7)]=_0x55b62f,this['_localeService']=_0x79732b,this[_0x3842f7(0x250)](),this['_initCloseConn']();}[_0x87081d(0x1c9)](){const _0x5e9216=_0x87081d,_0x3fc293=async _0x46a842=>{const _0x5605ed=_0x1fa5;(await this[_0x5605ed(0x4f7)][_0x5605ed(0x316)](_0x46a842))['event$']['pipe'](_0x381935(_0x3c84eb=>_0x3c84eb['eventID']===_0xd3c20c[_0x5605ed(0x3c5)]),_0x3e87c2(this[_0x5605ed(0x20e)]))[_0x5605ed(0x347)](_0x288ce9=>{const _0x416078=_0x5605ed,_0x259444=_0x288ce9,{reason:_0x39fca6}=_0x259444[_0x416078(0x31c)];this[_0x416078(0x440)][_0x416078(0x1e9)](_0x14fd53)[_0x416078(0x410)]({'type':_0x4dda16['Error'],'content':this[_0x416078(0x45a)]['t'](_0x416078(0x28b))+'('+_0x39fca6+')'}),this[_0x416078(0x1d4)][_0x416078(0x1dd)](new _0x372984(_0x46a842)['id'],!0x1),this['_collaborationSessionService'][_0x416078(0x4b2)](_0x46a842);});};_0x1d3042(this[_0x5e9216(0x2bb)]['getTypeOfUnitAdded$'](_0x5a714d[_0x5e9216(0x471)]),this[_0x5e9216(0x2bb)][_0x5e9216(0x2c7)](_0x5a714d[_0x5e9216(0x1c1)]))[_0x5e9216(0x3b6)](_0x414fcf(_0x239ce0=>_0x239ce0[_0x5e9216(0x1b5)]()),_0x381935(_0x5903ba=>!_0x387ac1(_0x5903ba)),_0x3e87c2(this[_0x5e9216(0x20e)]))[_0x5e9216(0x347)](_0x5345c8=>{_0x3fc293(_0x5345c8);});}['_initUnitPermissionChange'](){const _0x343d70=_0x87081d,_0x287aaa=async _0x2dad01=>{const _0x5821c9=_0x1fa5;(await this[_0x5821c9(0x4f7)]['requireSession'](_0x2dad01))['event$'][_0x5821c9(0x3b6)](_0x381935(_0xd45fe8=>_0xd45fe8['eventID']===_0xd3c20c[_0x5821c9(0x20c)]),_0x3e87c2(this[_0x5821c9(0x20e)]))['subscribe'](_0x30cb7d=>{const _0x725013=_0x5821c9,_0x85e936=_0x30cb7d,{objectId:_0x44b15a}=_0x85e936['data'],_0x25282c=this[_0x725013(0x440)][_0x725013(0x1e9)](_0x45b80e);_0x44b15a===_0x2dad01?_0x25282c[_0x725013(0x1b2)](_0x2dad01):_0x25282c['refreshPermission'](_0x2dad01,_0x44b15a);});};_0x1d3042(this['_univerInstanceService'][_0x343d70(0x2c7)](_0x5a714d['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5a714d[_0x343d70(0x1c1)]))['pipe'](_0x414fcf(_0x953b9e=>_0x953b9e[_0x343d70(0x1b5)]()),_0x381935(_0x2dceb9=>!_0x387ac1(_0x2dceb9)),_0x3e87c2(this[_0x343d70(0x20e)]))[_0x343d70(0x347)](_0x3874d2=>{_0x287aaa(_0x3874d2);});}};We=$o([_0x76d0ae(_0x28e3b0['Starting'],We),Ne(0x0,_0x1b956a(_0x4bf6fc)),Ne(0x1,_0x1d5396),Ne(0x2,_0x5543f8),Ne(0x3,_0x1b956a(pe)),Ne(0x4,_0x1b956a(_0x2db4b8))],We);var ks=Object[_0x87081d(0x318)],jo=Object[_0x87081d(0x314)],xo=(_0x368578,_0x5e9b81,_0x540645)=>_0x5e9b81 in _0x368578?ks(_0x368578,_0x5e9b81,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x540645}):_0x368578[_0x5e9b81]=_0x540645,Ho=(_0x4e2ff2,_0x40b139,_0x3dd5a0,_0x55c2aa)=>{const _0x2cedbe=_0x87081d;for(var _0x446841=_0x55c2aa>0x1?void 0x0:_0x55c2aa?jo(_0x40b139,_0x3dd5a0):_0x40b139,_0x2afa4b=_0x4e2ff2[_0x2cedbe(0x46a)]-0x1,_0x5a1246;_0x2afa4b>=0x0;_0x2afa4b--)(_0x5a1246=_0x4e2ff2[_0x2afa4b])&&(_0x446841=(_0x55c2aa?_0x5a1246(_0x40b139,_0x3dd5a0,_0x446841):_0x5a1246(_0x446841))||_0x446841);return _0x55c2aa&&_0x446841&&ks(_0x40b139,_0x3dd5a0,_0x446841),_0x446841;},ft=(_0x119928,_0x31a181)=>(_0x287a21,_0x2ed36d)=>_0x31a181(_0x287a21,_0x2ed36d,_0x119928),ko=(_0x568a90,_0x3137b0,_0x432ecf)=>xo(_0x568a90,_0x3137b0+'',_0x432ecf);const Vo=_0x87081d(0x3d3);let Nt=class extends _0x153d86{constructor(_0xcd3b6e,_0x963caf,_0xf51c69,_0x2b04cc){const _0x122921=_0x87081d;super(),this[_0x122921(0x2c8)]=_0xcd3b6e,this[_0x122921(0x3e7)]=_0x963caf,this[_0x122921(0x43f)]=_0xf51c69,this[_0x122921(0x440)]=_0x2b04cc;}[_0x87081d(0x3d7)](){const _0x1ac874=_0x87081d;this[_0x1ac874(0x4a1)]();}[_0x87081d(0x415)](){const _0x35feba=_0x87081d;this[_0x35feba(0x4a6)]();}[_0x87081d(0x4a1)](){const _0x45075f=_0x87081d;var _0x15baad,_0xdb4f44,_0x4afa59,_0x55827a;this[_0x45075f(0x440)][_0x45075f(0x382)](_0x22132f)&&this[_0x45075f(0x3e7)][_0x45075f(0x289)](_0x45075f(0x4c3),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x260f2e=[[_0x22132f,{'useClass':Dt}],[pe],[Ht],[_0x3db34c],[Hs,{'useClass':ao}],[ne],[D],[_0x11ce39],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0xdb4f44=(_0x15baad=this['_config'])==null?void 0x0:_0x15baad[_0x45075f(0x41b)])!=null?_0xdb4f44:vt}],[_0x3c9cbd,{'useClass':_0x39d04d}],[_0x367e30,{'useClass':Ot}],[_0x2d6512,{'useClass':Pt}],[_0x13659e,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x4afa59=this[_0x45075f(0x2c8)])!=null&&_0x4afa59['enableSingleActiveInstanceLock']&&_0x260f2e[_0x45075f(0x1ab)]([tt,{'useClass':Vn}]),_0x260f2e=_0x5a0091(_0x260f2e,(_0x55827a=this[_0x45075f(0x2c8)])==null?void 0x0:_0x55827a['override']),_0x260f2e[_0x45075f(0x1c8)](_0x3181db=>this[_0x45075f(0x440)][_0x45075f(0x2ac)](_0x3181db)),this[_0x45075f(0x2a4)]();}[_0x87081d(0x4a6)](){const _0x5e69ff=_0x87081d;this[_0x5e69ff(0x343)](this['_renderManagerService'][_0x5e69ff(0x3a0)](_0x5a714d[_0x5e69ff(0x1c1)],[Fe])),this[_0x5e69ff(0x343)](this[_0x5e69ff(0x43f)][_0x5e69ff(0x3a0)](_0x5a714d['UNIVER_SHEET'],[Tt]));}['_initModules'](){const _0x1e601f=_0x87081d;var _0x447abf,_0x31b01e;this[_0x1e601f(0x440)][_0x1e601f(0x1e9)](_0x3db34c)[_0x1e601f(0x395)]({'priority':0x14,'interceptor':_0x3ef1b2({'maxParallel':0x6})}),(_0x447abf=this[_0x1e601f(0x2c8)])!=null&&_0x447abf[_0x1e601f(0x32d)]||this[_0x1e601f(0x440)]['get'](D)[_0x1e601f(0x313)](),(_0x31b01e=this[_0x1e601f(0x2c8)])!=null&&_0x31b01e[_0x1e601f(0x42a)]&&this[_0x1e601f(0x440)][_0x1e601f(0x1e9)](Qe);}};ko(Nt,_0x87081d(0x338),Vo),Nt=Ho([_0x425aa7(_0x361f11),ft(0x1,_0x82a609),ft(0x2,_0x23fc25),ft(0x3,_0x1b956a(_0x4bf6fc))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};
|