@univerjs-pro/collaboration-client-ui 0.12.2-experimental.20251201-5b27b55 → 0.12.2-experimental.20251202-45172c6

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.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x381542=_0x563f;(function(_0x3eca09,_0x262db8){const _0x43d214=_0x563f,_0x59d4c3=_0x3eca09();while(!![]){try{const _0x4748ea=parseInt(_0x43d214(0x310))/0x1+parseInt(_0x43d214(0x2e3))/0x2*(parseInt(_0x43d214(0x171))/0x3)+-parseInt(_0x43d214(0x193))/0x4+-parseInt(_0x43d214(0x13f))/0x5*(-parseInt(_0x43d214(0x309))/0x6)+-parseInt(_0x43d214(0x222))/0x7+-parseInt(_0x43d214(0x22c))/0x8+-parseInt(_0x43d214(0xf7))/0x9;if(_0x4748ea===_0x262db8)break;else _0x59d4c3['push'](_0x59d4c3['shift']());}catch(_0x10594d){_0x59d4c3['push'](_0x59d4c3['shift']());}}}(_0x54dc,0xb492c));var Yt=Object[_0x381542(0x1c8)],Wt=(_0x4e4344,_0x3b96f2,_0x1598c7)=>_0x3b96f2 in _0x4e4344?Yt(_0x4e4344,_0x3b96f2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1598c7}):_0x4e4344[_0x3b96f2]=_0x1598c7,_=(_0x12f986,_0x482e4a,_0x467a28)=>Wt(_0x12f986,typeof _0x482e4a!=_0x381542(0x240)?_0x482e4a+'':_0x482e4a,_0x467a28);import{jsx as _0x10012c,jsxs as _0x2c9254}from'react/jsx-runtime';import{CollaborationStatus as _0x4fcf8b,CollaborationSessionService as _0x22b01b,CollaborationController as _0x3e297d,DataLoaderService as _0x359ab0,MemberService as _0x4bf3fb,SessionStatus as _0x5848c4,ILocalCacheService as _0x2f7e0d,CollaborationUIEventService as _0xe64e8f,CollaborationUIEventId as _0x2c037b,DocCollaborationEntity as _0x4dec7e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x361fc5,getLocalCacheKey as _0x4dd65c,LOCAL_CACHE_INTERVAL as _0xaf724e,LOCAL_CACHE_INTERVAL_KEY as _0x3713b6,UniverCollaborationClientPlugin as _0x17d717,CollaborationSocketService as _0x286cc4,DEFAULT_WS_SESSION_TICKET_URL as _0x59d416,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4c5efc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x122c4b,UnitStatus as _0x457f49}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x726278,IUniverInstanceService as _0x143643,Inject as _0x2ef654,Injector as _0x43877d,Disposable as _0x282063,createIdentifier as _0x540b04,ILogService as _0x4c5a8a,ICommandService as _0x478bd4,Optional as _0x2d8cc5,RxDisposable as _0x37d03e,Workbook as _0x45ced1,DOC_RANGE_TYPE as _0x481c6f,debounce as _0x575ddf,Rectangle as _0xf757cd,DisposableCollection as _0x24d8e5,toDisposable as _0xa06c05,UniverInstanceType as _0x11507d,generateRandomId as _0x5d1d29,COLORS as _0x47a336,ColorKit as _0x37be34,ThemeService as _0x487580,fromEventSubject as _0x123da2,Tools as _0x2c60fa,CommandType as _0x233bb2,IConfigService as _0x1fcde3,CanceledError as _0x1f0320,isFormulaString as _0x21774c,isFormulaId as _0x632ccc,ILocalStorageService as _0x4ea42f,DependentOn as _0x31b9fd,Plugin as _0x5e41ff,merge as _0x6f5636,registerDependencies as _0x3d200a,mergeOverrideWithDependencies as _0x27927b,touchDependencies as _0x563dfc}from'@univerjs/core';import{useObservable as _0x5a2e5e,useDependency as _0x1c7fe5,IUIPartsService as _0x22941a,BuiltInUIPart as _0x4d9737,connectInjector as _0x30ca85,IBeforeCloseService as _0x38d930,IMessageService as _0x37c01f,INotificationService as _0x557674}from'@univerjs/ui';import{BehaviorSubject as _0x2c6ac6,switchMap as _0x5c652d,of as _0x4e5ebf,takeUntil as _0xb33a09,debounceTime as _0x33aec4,Subject as _0x5dc0f4,filter as _0xa1c3e2,merge as _0x4c8ad4,combineLatest as _0x210567,fromEvent as _0x21cf88,shareReplay as _0x454f2f,mapTo as _0x445832,distinctUntilChanged as _0x339802}from'rxjs';import{Tooltip as _0x24f74e,clsx as _0xa638c0,MessageType as _0x3f469b}from'@univerjs/design';import{useRef as _0x9e4317,createElement as _0x107e6a,forwardRef as _0x1e224e,useCallback as _0x403bea}from'react';import{IRemoteInstanceService as _0x3634d1}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x49c370,RefRangeService as _0x313bef,SetSelectionsOperation as _0x10f466,SheetsSelectionsService as _0x51dd20,EffectRefRangId as _0x45eebc,handleIRemoveRow as _0x430829,handleIRemoveCol as _0x3c99aa,handleMoveRange as _0x87c3e8,handleInsertRow as _0x3092ed,handleInsertRangeMoveRight as _0xdd32ba,handleInsertRangeMoveDown as _0x486cc1,handleInsertCol as _0x4e1f6b,handleDeleteRangeMoveUp as _0x52a7dc,handleDeleteRangeMoveLeft as _0x1ebd4c,runRefRangeMutations as _0x1d37d8}from'@univerjs/sheets';import{Shape as _0x4f7b35,Rect as _0x4bafb1,getColor as _0x2caebb,RegularPolygon as _0x4c6616,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xc25102,Vector2 as _0x5e3011,SHEET_VIEWPORT_KEY as _0x1c3b91,IRenderManagerService as _0x4ca29f}from'@univerjs/engine-render';import{HTTPService as _0x57a0f4,ISocketService as _0x46dece,WebSocketService as _0x45c25e}from'@univerjs/network';import{IDocClipboardService as _0x588c5d,NodePositionConvertToCursor as _0x1e3027,NodePositionConvertToRectRange as _0x1bf9bd,TEXT_RANGE_LAYER_INDEX as _0x5b229d,SetDocZoomRatioOperation as _0x19b885,DocIMEInputManagerService as _0x415c90,DocStateChangeManagerService as _0x1d195a}from'@univerjs/docs-ui';import{IImageIoService as _0x6b5781}from'@univerjs/drawing';import{ITransformService as _0x471770,CollaborationEvent as _0x26506e,isTransformMutationFailure as _0x426e81,isTransformMutationsWithChangesetSuccess as _0x5707d8,RevisionService as _0x182c7e,ISnapshotServerService as _0x5f2a22}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5be305,RichTextEditingMutation as _0x1b5a8f,DocSelectionManagerService as _0x58bb40,DocSkeletonManagerService as _0x5551a0}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ff488,serializeRangeWithSheet as _0x2fec25,FormulaExecuteStageType as _0x2d7c4b,FormulaExecutedStateType as _0x2a85d3,SetFormulaCalculationStartMutation as _0x27d4aa,SetFormulaCalculationNotificationMutation as _0x2f800c}from'@univerjs/engine-formula';import{map as _0x15499d,filter as _0x181f05,throttleTime as _0x20d47b,takeUntil as _0x5cd275,switchMap as _0x279ad3}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1d5d49,getCoordByCell as _0x52458d,getSheetObject as _0x182cab}from'@univerjs/sheets-ui';function Ge({ref:_0x30a3b1,..._0xb1779e}){const _0x37882b=_0x381542,{icon:_0x2ac276,id:_0x4c8a4c,className:_0x12daae,extend:_0x5a01e3,..._0x565ad2}=_0xb1779e,_0x405a04=(_0x37882b(0x15d)+_0x4c8a4c+'\x20'+(_0x12daae||''))[_0x37882b(0xff)](),_0x5391e6=_0x9e4317('_'+Ei());return At(_0x2ac276,''+_0x4c8a4c,{'defIds':_0x2ac276['defIds'],'idSuffix':_0x5391e6[_0x37882b(0x1c9)]},{'ref':_0x30a3b1,'className':_0x405a04,..._0x565ad2},_0x5a01e3);}function At(_0x462d93,_0x50d2ff,_0x1cdf03,_0x5025c7,_0x51aef5){const _0x23ada2=_0x381542;return _0x107e6a(_0x462d93['tag'],{'key':_0x50d2ff,...gi(_0x462d93,_0x1cdf03,_0x51aef5),..._0x5025c7},(vi(_0x462d93,_0x1cdf03)[_0x23ada2(0x273)]||[])[_0x23ada2(0x325)]((_0x2ca1ba,_0x3c2e7d)=>At(_0x2ca1ba,_0x50d2ff+'-'+_0x462d93['tag']+'-'+_0x3c2e7d,_0x1cdf03,void 0x0,_0x51aef5)));}function gi(_0x17d104,_0x1fa7de,_0x5895e5){const _0x535720=_0x381542,_0x3bd893={..._0x17d104[_0x535720(0x139)]};_0x5895e5!=null&&_0x5895e5[_0x535720(0x261)]&&_0x3bd893[_0x535720(0x1c2)]===_0x535720(0x261)&&(_0x3bd893[_0x535720(0x1c2)]=_0x5895e5['colorChannel1']),_0x17d104['tag']==='mask'&&_0x3bd893['id']&&(_0x3bd893['id']=_0x3bd893['id']+_0x1fa7de['idSuffix']),Object[_0x535720(0x161)](_0x3bd893)[_0x535720(0x15f)](([_0x303ba2,_0x578036])=>{const _0x4d1238=_0x535720;_0x303ba2===_0x4d1238(0x27e)&&typeof _0x578036==_0x4d1238(0x264)&&(_0x3bd893[_0x303ba2]=_0x578036[_0x4d1238(0x1f4)](/url\(#(.*)\)/,_0x4d1238(0x202)+_0x1fa7de['idSuffix']+')'));});const {defIds:_0xa21df2}=_0x1fa7de;return!_0xa21df2||_0xa21df2[_0x535720(0x10b)]===0x0||(_0x17d104[_0x535720(0x23c)]===_0x535720(0x29b)&&_0x3bd893[_0x535720(0x1d2)]&&(_0x3bd893[_0x535720(0x1d2)]=_0x3bd893['xlink:href']+_0x1fa7de[_0x535720(0x1f9)]),Object[_0x535720(0x161)](_0x3bd893)[_0x535720(0x15f)](([_0x40dc19,_0x26ca0f])=>{const _0x3c09eb=_0x535720;typeof _0x26ca0f=='string'&&(_0x3bd893[_0x40dc19]=_0x26ca0f[_0x3c09eb(0x1f4)](/url\(#(.*)\)/,_0x3c09eb(0x202)+_0x1fa7de['idSuffix']+')'));})),_0x3bd893;}function vi(_0x1ee19b,_0x2cbfb3){const _0x14dd1e=_0x381542;var _0x21e472;const {defIds:_0x507960}=_0x2cbfb3;return!_0x507960||_0x507960['length']===0x0?_0x1ee19b:_0x1ee19b[_0x14dd1e(0x23c)]===_0x14dd1e(0x2b2)&&((_0x21e472=_0x1ee19b[_0x14dd1e(0x273)])!=null&&_0x21e472['length'])?{..._0x1ee19b,'children':_0x1ee19b[_0x14dd1e(0x273)][_0x14dd1e(0x325)](_0xc81313=>typeof _0xc81313[_0x14dd1e(0x139)]['id']=='string'&&_0x507960&&_0x507960[_0x14dd1e(0x210)](_0xc81313['attrs']['id'])?{..._0xc81313,'attrs':{..._0xc81313[_0x14dd1e(0x139)],'id':_0xc81313['attrs']['id']+_0x2cbfb3[_0x14dd1e(0x1f9)]}}:_0xc81313)}:_0x1ee19b;}function Ei(){const _0x375616=_0x381542;return Math[_0x375616(0x111)]()['toString'](0x24)[_0x375616(0x20e)](0x2,0x8);}Ge['displayName']=_0x381542(0x285);const pi={'tag':_0x381542(0x308),'attrs':{'xmlns':_0x381542(0x251),'fill':_0x381542(0x211),'viewBox':_0x381542(0x100),'width':'1em','height':_0x381542(0x148)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x381542(0x177),'d':_0x381542(0x10a),'strokeLinecap':_0x381542(0x2b8),'strokeLinejoin':_0x381542(0x2b8),'strokeWidth':1.2}}]},{'tag':_0x381542(0x2b2),'attrs':{},'children':[{'tag':_0x381542(0x15e),'attrs':{'id':_0x381542(0x29f)},'children':[{'tag':_0x381542(0x2f3),'attrs':{'fill':_0x381542(0x25f),'d':_0x381542(0x1f6)}}]}]}],'defIds':[_0x381542(0x29f)]},Pt=_0x1e224e(function(_0x2e517b,_0x4b9da8){return _0x107e6a(Ge,Object['assign']({},_0x2e517b,{'id':'off-line-icon','ref':_0x4b9da8,'icon':pi}));});Pt[_0x381542(0x32d)]='OffLineIcon';const Oi={'tag':_0x381542(0x308),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x381542(0x228),'width':_0x381542(0x148),'height':_0x381542(0x148)},'children':[{'tag':'g','attrs':{'clipPath':_0x381542(0x2ee)},'children':[{'tag':_0x381542(0x2f3),'attrs':{'stroke':_0x381542(0x177),'d':_0x381542(0x252),'strokeLinecap':_0x381542(0x2b8),'strokeLinejoin':_0x381542(0x2b8),'strokeWidth':1.2}}]},{'tag':_0x381542(0x2b2),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x381542(0x2ca)},'children':[{'tag':_0x381542(0x2f3),'attrs':{'fill':'white','d':_0x381542(0x1f6),'transform':_0x381542(0x221)}}]}]}],'defIds':[_0x381542(0x2ca)]},wt=_0x1e224e(function(_0x17b014,_0x6b6836){const _0x130580=_0x381542;return _0x107e6a(Ge,Object[_0x130580(0x1aa)]({},_0x17b014,{'id':'on-line-icon','ref':_0x6b6836,'icon':Oi}));});wt[_0x381542(0x32d)]=_0x381542(0x175);function _0x54dc(){const _0x218f6a=['_localStorageService','getDocRanges','registerRenderModule','stringify','_config','updateOfflineData','Warning','event$','_scene','beginPath','_saveCache','roomMembers','replaceDocRanges','UPDATE_CURSOR','requireSession','_lastPointer','currentSkeleton$','TEXT','_status$','getUnitStatus$','_drawTextRange','REDEMPTION_CODE_INACTIVE','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_shapes','currentTheme$','getTypeOfUnitAdded$','transformMutation','onPointerMove$','replace','resize','M0\x200H16V16H0z','_backgroundColor','LICENSE_EXPORT_SIZE_EXCEEDED','idSuffix','_memberID','_hideTimer','parse','triggerDblclick','values','PENDING','_collaborationSessionService','_urlService','url(#$1','drawWith','setTimeout','selection','_registerDependencies','_entities','onMouseMove','type','rgba(255,\x20255,\x20255,\x200.01)','save','getMember','location','substring','_color','includes','none','colno','collab-rect-range-','_initCommandExecutedListener','popstate','collabStatus.notCollab','transformRemoteChangeset','endColumn','undoState','error','_updateURLWithCurrentState','labelPosition','#FFF','FromArray','functionsExecutedState','redoState','translate(.97)','2028733JMcnCK','isArray','SYNCED','unload','CONFLICT','startFormulaLimitUrl','0\x200\x2017\x2016','div','NO_OTHER_CLIENTS_EDITING','clearInterval','2177856JAQfrK','getStateCache','join','ranges','_clearPolling','_getMergeRange','_scheduleClearOtherTimer','/universer-api/license/formula/limit/start','_id','memberID','onLocalMutation','_beforeCloseService','getSheetBySheetId','SUBMIT_CHANGESET_TIMEOUT','_transformService','permission.title','tag','totalFormulasToCalculate','textRanges','onCommandExecuted','symbol','getCurrentRevOfUnit','EMAIL_HAS_BEEN_BOUND','REDEMPTION_INVALID_CODE','_range','pushState','HEADER_MENU','SOCKET_FAILED_RETRY','exhaustSavingTask','show','backgroundColor','subUnitId','black','_initDependencies','collabStatus.conflict','_commandService','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','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','replaceState','CONNECTOR_DATA_TOO_LARGE','beforeCommandExecuted','range','INTERNAL_ERROR','getCellMatrix','getMemberID','_online','addObject','UNIVER_SHEET','complete','_toggleOffline','white','syncEditingCollabCursor','colorChannel1','createSocket','Success','string','_docClipboardService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','OTHER_CLIENT_EDITING','toString','_onRefRangeChange','collab-text-range-','lineTo','_transformPreviousActiveRange','doc.mutation.rich-text-editing','name','skeleton','USER_IS_ANONYMOUS','releaseFormulaLimitUrl','row','children','pipe','parseInt','getSheetId','getCollabCursors$','ENTITLE_INSUFFICIENT_QUOTA','_hover','YUUMI_CONNECTOR_URL_NOT_FOUND','_initUserListener','entityInit$','FETCH_MISS','mask','subscribeEvent','dirtyRanges','_heartbeatTimer','m2Prime','newValue','ONLINE','UniverIcon','post','createInstance','font','lineno','getUnitId','_releaseCalculationLimit','OFFLINE','_initResize','stageInfo','max','setInterval','_scheduleSaving','_docTransformIMECacheService','_startCalculationLimit','code','_cursorInfo$','Failed','getCurrent','setAlpha','shift','setStateCache','use','disposeUnit','_pollingInterval','editingUnit','off-line-icon_clip0_910_343','APPLY_REVISION_CONFILICT','searchParams','limitInfo','...','YUUMI_RATE_OVER_LIMIT','next','getValue','_logService','bind','/universer-api/license/formula/limit/status','bottom','getCurrentSelections','/universer-api/license/formula/limit/done','_saveTaskMap','_drawRectRange','JOIN_ROOM_FAILED','DeleteRangeMoveLeftCommandId','yellow.400','defs','_entityInit$','INVITE_CODE_HAS_BEEN_UES','_transformUndoRedoStack','min','_getSheetObject','round','MOBILE_VERIFY_CODE_MISMATCH','_unitOnClients','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setParam','getTypeOfUnitDisposed$','dispose$','width','UNIVER_DOC','loadUnit','LICENSE_MAX_UNITS_EXCEEDED','status$','_docTransformStateCacheService','UNDEFINED','_collabCursorState$','runId','[Window\x20Error]:\x20','_currentUsage','on-line-icon_clip0_910_349','[Unhandled\x20Rejection]:\x20','_refreshCollabCursors','arc','APPLY_REJECT','START_CALCULATION','_setFormulaLimitStatus','Unknown\x20user','collaboration.closeRoom','_scheduleHeartbeat','get','CHANGESET_REVISION_CONFILICT','has','cursorInfo$','_registerRenderDependencies','UNRECOGNIZED','CLOSE_ROOM','?taskId=','transformIMECache','collaboration.single-unit.warning','_handleLeaveEvent','hovered','unitId','message','isEditing','942HiWpwP','assignAColorForMemberID','push','executeCommand','urlChange$','Error','_drawAnchor','params','INVITE_CODE_ALREADY_BOUND','override','LICENSE_IMPORT_SIZE_EXCEEDED','url(#on-line-icon_clip0_910_349)','APPLY_PERMISSION_DENIED','_applyCommand','_injector','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','path','_checkCalculationAvailable','_collaborationUIEventService','_sheetSkeletonManagerService','UNAUTHENTICATED','ENTITLE_NEED_BILLING_ADDRESS','delete','_docTransformSelectionsService','_hovered','_initWindowErrorListener','deepClone','_onCursorDelete','_memberService','Loading','_univerInstanceService','USERS_LEAVE','PY_RUNTIME_SCRIPT_ERROR','unit','data','disposeWithMe','_notificationService','svg','33684jUljIh','_setupBeforeClosingHandler','_initStatusComponent','_startSheetCollabCursor','EMAIL_VERIFY_CODE_MISMATCH','_docSkeletonManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','1435927Jigrqx','getConfig','_refRangeService','collabCursorState$','_instanceService','onRendered','_send','WECHAT_HAS_BEEN_BOUND','getParam','_localeService','transformByState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_draw','_colorAssignService','saveTaskMap','univer-flex\x20univer-items-center','NOT_FOUND','origin','engine','filename','setShapeProps','map','color','collab-client.tooltip.reconnect','currentUsage','LOGIN_FAILED','_createSocketURL','_init','search','displayName','onPointerEnter$','_initEntityListener','_imageIoService','registerBeforeClose','_initEvent','activeSheet$','_onCursorUpdate','InsertRowCommandId','subunit','application/json','_taskIds','fillStyle','with','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_uiPartsService','_session','LOGIN_TOKEN_PROCESSING_FAILED','closePath','9276894gvopSb','getSkeleton','m1Prime','ENSURE_SNAPSHOT_EXECUTION','enableLocalCache','RECT','key','_cachedData','trim','0\x200\x2016\x2016','init','startColumn','addEventListener','MOBILE_HAS_BEEN_BOUND','YUUMI_NO_CUBOID_FOR_QUESTION','CURRENT_STATUS_CANNOT_OPERATE','_themeService','DeleteRangeMoveUpCommandId','INVITE_CODE_REQUIRED','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','length','body','eventID','set','_clearOtherTimers','socket$','random','_labelPosition','green.600','_maxFormulaLimit','session.connection-failed','unhandledrejection','_selfUnitIDs','_initCommandInterceptor','_docSyncEditingCollabCursorService','_anchorDot','then','transformSelections','getColorFromTheme','catch','session.will-retry','LICENSE_DISTRO_REJECTED','_localCacheService','dispose','now','AUTHORIZE_CODE_ILLEGAL','sessionStatus$','/universer-api/frontend/logs','getRangePointData','unshift','column','_lastResponseTimestamp','SNAPSHOT_HAS_BEEN_REMOVED','collabStatus.offline','USER_NOT_FOUND','evenodd','YUUMI_AI_RUN_FAILED','_assignedColors','_removeClearOtherTimer','all','REDEMPTION_USER_NOT_ELIGIBLE','_startDocCollabCursor','source','mutations','maxFormulaLimit','SNAPSHOT_INVALID_SNAPSHOT','attrs','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','split','_render','top','registerRefRange','830sAzqbg','getCurrentUnitForType','_docStateChangeManagerService','_collaborationController','contains','_handleEvent','href','transformMutationsWithChangeset','_textBubble','1em','ENTITLE_CAN_NOT_BUY_LOWER_OTP','subscribe','getAncestorScale','INVALID_INVITE_CODE','YUUMI_UNABLE_LOAD_URL','_disabled','loadOfflineData','red.300','_name','findNodePositionByCharIndex','YUUMI_ASYNCIO_CANCELLED','getformulaLimitStatusUrl','asObservable','measureText','VIEW_MAIN','startsWith','_showGuardMessage','unsubscribe','flatMap','_cursors','univerjs-icon\x20univerjs-icon-','clipPath','forEach','_handleJoinEvent','entries','send','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_roomMembers$','DATA_SOURCE_TOO_LARGE','wsSessionTicketUrl','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','YUUMI_URL_COL_OUT_OF_RANGE','getActiveSheet','selections','clearTimeout','_getScale','ENTITLE_DUP_SUBSCRIPTION','_eventUnsubscribe','getCellPositionByOffset','getFocusedUnit','8274yWdyCw','_updateLocalCursor','actions','history','OnLineIcon','getItem','currentColor','ALREADY_EXISTS','getUnhiddenWorksheets','_setupSubUnitSync','COMPLETION_FINISHED','hide','_getSaveTimeout','_cursor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','TOO_MANY_REQUESTS','getOffsetConfig','collabStatus.fetchMiss','jiqing.500','_syncEditingCollabCursorService','APPLY_NON_SEQUENTIAL_REVISION','sessionTicket','NOT_COLLAB','_collabCursorController','univer-mr-2\x20univer-flex\x20univer-text-xl','ENTITLE_REPORT_LIMIT_EXCEED','_docSkeleton','stack','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_anchor','getVpScrollXYInfoByPosToVp','_checkAndWaitForCalculationPermission','executionId','_getFormulaLimitStatus','5337696qyncEv','formula.calculation.unable','REDEMPTION_CODE_NOT_STARTED','PAYMENT_CHANNEL_NOT_SUPPORT','addClipboardHook','startRow','onPointerLeave$','_initStatusListener','_uploadLog','_document','transformStateCache','add','_cursorShapes','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateCollabCursors','APPLY_DUPLICATED','addObjects','roomMembers$','moveTo','size','_context','INVALID_ARGUMENT','_configService','assign','unitID','endRow','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','height','invokeId','collabStatus.synced','_updateSubUnitFromURLParams','toRgbString','_removeCollabCursors','_messageService','permission.content','getRelativeToViewportCoord','enableFrontendLog','storage','_initUnhandledRejectionListener','_revisionService','runOnServer','_unitStatus','_getSessionTicket','PERMISSION_DENIED','getUnit','getRenderById','setItem','fill','isActive','_httpService','_transformHistoryAndStateStack','_getAnchorBounding','cursorInfo','defineProperty','current','SOCKET_FAILED','getMergeData','_handleHeartbeatEvent','_toggleOnline','restore','ERROR_AGAIN','_ensureSubject','[CollaborationDataLoaderController]','xlink:href','_renderManagerService','_colorIndex','result','getUniverSheetInstance','text'];_0x54dc=function(){return _0x218f6a;};return _0x54dc();}function Ti(_0x557061){const _0x3824c0=_0x381542;switch(_0x557061){case _0x4fcf8b[_0x3824c0(0x28c)]:return _0x3824c0(0x12c);case _0x4fcf8b[_0x3824c0(0x226)]:return _0x3824c0(0x24e);case _0x4fcf8b[_0x3824c0(0x27d)]:return _0x3824c0(0x182);case _0x4fcf8b[_0x3824c0(0x187)]:return _0x3824c0(0x216);case _0x4fcf8b['AWAITING']:case _0x4fcf8b['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case _0x4fcf8b[_0x3824c0(0x224)]:case _0x4fcf8b[_0x3824c0(0x1ff)]:return _0x3824c0(0x1b0);}}function Ci(_0x10d5ef){const _0x19d48d=_0x381542,{status$:_0x54e7c2}=_0x10d5ef,_0x49ddc1=_0x5a2e5e(_0x54e7c2,_0x4fcf8b[_0x19d48d(0x187)]),_0xf99072=_0x1c7fe5(_0x726278),_0x34a945=_0x1c7fe5(_0x22b01b),_0x5142a7=_0x49ddc1!==_0x4fcf8b[_0x19d48d(0x28c)],_0x5dbf33=_0xf99072['t'](Ti(_0x49ddc1)),_0x431166=_0x5142a7?_0x10012c(wt,{}):_0x10012c(Pt,{}),_0x5553c0=_0x403bea(()=>{_0x5142a7||_0x34a945['reconnect']();},[_0x5142a7,_0x34a945]);function _0x156e6f(){const _0x2d7bce=_0x19d48d;return _0x2c9254(_0x2d7bce(0x229),{'className':_0x2d7bce(0x31f),'onClick':_0x5553c0,'children':[_0x10012c('div',{'className':_0xa638c0(_0x2d7bce(0x189),{'univer-text-green-500':_0x5142a7,'univer-text-red-500':!_0x5142a7}),'children':_0x431166}),_0x10012c(_0x2d7bce(0x229),{'className':_0x2d7bce(0x2bb),'children':_0x5dbf33})]});}return _0x5142a7?_0x156e6f():_0x10012c(_0x24f74e,{'title':_0xf99072['t'](_0x19d48d(0x327)),'children':_0x156e6f()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0xf955cd,_0x182421,_0x569da1,_0xdd083e)=>{const _0x1c0432=_0x381542;for(var _0x564cfa=_0xdd083e>0x1?void 0x0:_0xdd083e?Ri(_0x182421,_0x569da1):_0x182421,_0x35ff67=_0xf955cd[_0x1c0432(0x10b)]-0x1,_0x1a22c4;_0x35ff67>=0x0;_0x35ff67--)(_0x1a22c4=_0xf955cd[_0x35ff67])&&(_0x564cfa=_0x1a22c4(_0x564cfa)||_0x564cfa);return _0x564cfa;},se=(_0x41cc75,_0x152093)=>(_0x14d68f,_0x21e003)=>_0x152093(_0x14d68f,_0x21e003,_0x41cc75);let ae=class extends _0x282063{constructor(_0x40aac3,_0x7d6bc3,_0x5d1b87,_0x47593e){const _0x397cf5=_0x381542;super(),_(this,_0x397cf5(0x1ea),new _0x2c6ac6(_0x4fcf8b[_0x397cf5(0x187)])),(this[_0x397cf5(0x301)]=_0x40aac3,this[_0x397cf5(0x2f1)]=_0x7d6bc3,this[_0x397cf5(0x142)]=_0x5d1b87,this[_0x397cf5(0xf3)]=_0x47593e,this[_0x397cf5(0x30b)](),this[_0x397cf5(0x19a)]());}[_0x381542(0x19a)](){const _0x4e27db=_0x381542;this[_0x4e27db(0x306)](this['_univerInstanceService']['focused$']['pipe'](_0x5c652d(()=>{const _0x18dc62=_0x4e27db,_0x5829ea=this[_0x18dc62(0x301)][_0x18dc62(0x170)]();return _0x5829ea?this['_collaborationController']['getCollabEntity$'](_0x5829ea[_0x18dc62(0x28a)]()):_0x4e5ebf(null);}),_0x5c652d(_0xb380af=>_0xb380af?_0xb380af[_0x4e27db(0x2c3)]:_0x4e5ebf(_0x4fcf8b['NOT_COLLAB'])))['subscribe'](_0x58257f=>{const _0x2c6e9a=_0x4e27db;this[_0x2c6e9a(0x1ea)][_0x2c6e9a(0x2a5)](_0x58257f);}));}[_0x381542(0x30b)](){const _0x2f9bfe=_0x381542;this[_0x2f9bfe(0x306)](this[_0x2f9bfe(0xf3)]['registerComponent'](_0x4d9737[_0x2f9bfe(0x246)],()=>_0x30ca85(bi({'status$':this[_0x2f9bfe(0x1ea)][_0x2f9bfe(0x155)]()}),this[_0x2f9bfe(0x2f1)])));}};ae=Di([se(0x0,_0x143643),se(0x1,_0x2ef654(_0x43877d)),se(0x2,_0x2ef654(_0x3e297d)),se(0x3,_0x22941a)],ae);function bi(_0x4da8c9){const {status$:_0x5aa7c7}=_0x4da8c9;return function(){return _0x10012c(Ci,{'status$':_0x5aa7c7});};}const yt=_0x540b04('uni.network.url-service');var Ni=Object['getOwnPropertyDescriptor'],Li=(_0x2b0a93,_0x49d48a,_0x4eea38,_0x2c0eae)=>{const _0xf58305=_0x381542;for(var _0x497383=_0x2c0eae>0x1?void 0x0:_0x2c0eae?Ni(_0x49d48a,_0x4eea38):_0x49d48a,_0x114614=_0x2b0a93[_0xf58305(0x10b)]-0x1,_0x56a1ff;_0x114614>=0x0;_0x114614--)(_0x56a1ff=_0x2b0a93[_0x114614])&&(_0x497383=_0x56a1ff(_0x497383)||_0x497383);return _0x497383;},K=(_0x396ed2,_0x3404c4)=>(_0x8edef3,_0x276155)=>_0x3404c4(_0x8edef3,_0x276155,_0x396ed2);let ce=class extends _0x37d03e{constructor(_0xdc08ce,_0x1e1ab0,_0x45ba0f,_0x1ac2e5,_0x1d5c09){const _0x5e7c57=_0x381542;super(),this[_0x5e7c57(0x201)]=_0xdc08ce,this[_0x5e7c57(0x2a7)]=_0x1e1ab0,this[_0x5e7c57(0x24f)]=_0x45ba0f,this['_dataLoaderService']=_0x1ac2e5,_0x1d5c09?_0x1d5c09==null||_0x1d5c09['whenReady']()[_0x5e7c57(0x11b)](()=>this['_init']()):(this[_0x5e7c57(0x2a7)]['debug'](_0x5e7c57(0x1d1),_0x5e7c57(0x30f)),this[_0x5e7c57(0x32b)]());}async['_init'](){const _0x1fb800=_0x381542,_0x3e4299=this['_urlService']['getParam'](_0x1fb800(0x304)),_0x42b493=this[_0x1fb800(0x201)]['getParam'](_0x1fb800(0x209)),_0x39d714=this[_0x1fb800(0x201)][_0x1fb800(0x318)](_0x1fb800(0xed));if(!_0x3e4299||!_0x42b493){this[_0x1fb800(0x2a7)]['debug']('[CollaborationDataLoaderController]',_0x1fb800(0x163));return;}const _0x326ea6=await this['_dataLoaderService'][_0x1fb800(0x2c1)](_0x3e4299,Number(_0x42b493),_0x39d714);_0x326ea6&&_0x326ea6 instanceof _0x45ced1&&this[_0x1fb800(0x17a)](_0x326ea6);}async[_0x381542(0x17a)](_0x1591be){const _0x95c5a2=_0x381542;await this[_0x95c5a2(0x1b1)](_0x1591be),_0x1591be[_0x95c5a2(0xea)][_0x95c5a2(0x274)](_0xb33a09(this[_0x95c5a2(0x2be)]))['subscribe'](_0x3fd733=>{const _0xe1c7ed=_0x95c5a2;_0x3fd733&&this[_0xe1c7ed(0x21b)](_0x3fd733);}),this[_0x95c5a2(0x201)][_0x95c5a2(0x2e7)][_0x95c5a2(0x274)](_0xb33a09(this[_0x95c5a2(0x2be)]))[_0x95c5a2(0x14a)](()=>this[_0x95c5a2(0x1b1)](_0x1591be));}[_0x381542(0x21b)](_0x50f175,_0x5e4710=!0x1){const _0x2f282d=_0x381542,_0x3dd732=this[_0x2f282d(0x201)][_0x2f282d(0x318)](_0x2f282d(0xed));_0x50f175[_0x2f282d(0x276)]()!==_0x3dd732&&this[_0x2f282d(0x201)]['setParam'](_0x2f282d(0xed),_0x50f175[_0x2f282d(0x276)](),_0x5e4710);}async['_updateSubUnitFromURLParams'](_0xb073de){const _0x5dd517=_0x381542;var _0x23992c;const _0x3d816c=this['_urlService']['getParam'](_0x5dd517(0xed));if(!_0x3d816c||!_0xb073de[_0x5dd517(0x238)](_0x3d816c)){const _0x1f5bae=_0xb073de[_0x5dd517(0x179)]()[0x0],_0xd63806=_0xb073de[_0x5dd517(0x238)](_0x1f5bae);if(!_0xd63806)return;this[_0x5dd517(0x21b)](_0xd63806,!0x0),await this[_0x5dd517(0x24f)][_0x5dd517(0x2e6)](_0x49c370['id'],{'unitId':_0xb073de['getUnitId'](),'subUnitId':_0x1f5bae});return;}((_0x23992c=_0xb073de[_0x5dd517(0x169)]())==null?void 0x0:_0x23992c[_0x5dd517(0x276)]())!==_0x3d816c&&await this[_0x5dd517(0x24f)][_0x5dd517(0x2e6)](_0x49c370['id'],{'unitId':_0xb073de[_0x5dd517(0x28a)](),'subUnitId':_0x3d816c});}};ce=Li([K(0x0,yt),K(0x1,_0x4c5a8a),K(0x2,_0x478bd4),K(0x3,_0x2ef654(_0x359ab0)),K(0x4,_0x2d8cc5(_0x3634d1))],ce);var Ui=Object[_0x381542(0x250)],Mi=(_0x33f336,_0x1e546e,_0x224843,_0x16ee83)=>{for(var _0x5b9021=_0x16ee83>0x1?void 0x0:_0x16ee83?Ui(_0x1e546e,_0x224843):_0x1e546e,_0x32c469=_0x33f336['length']-0x1,_0x1b8316;_0x32c469>=0x0;_0x32c469--)(_0x1b8316=_0x33f336[_0x32c469])&&(_0x5b9021=_0x1b8316(_0x5b9021)||_0x5b9021);return _0x5b9021;},rt=(_0x57c705,_0x5162ee)=>(_0x599dd9,_0x258f95)=>_0x5162ee(_0x599dd9,_0x258f95,_0x57c705);let $e=class extends _0x37d03e{constructor(_0x29f073,_0x2fc3f3){const _0x1f0dc8=_0x381542;super(),this[_0x1f0dc8(0x265)]=_0x29f073,this[_0x1f0dc8(0xe7)]=_0x2fc3f3,this[_0x1f0dc8(0x32b)]();}[_0x381542(0x32b)](){const _0xd46cdb=_0x381542,_0x3a0d9c=this;this['disposeWithMe'](this[_0xd46cdb(0x265)][_0xd46cdb(0x197)]({'onBeforePasteImage':async _0x2d9151=>{const _0x5303ee=_0xd46cdb,_0x639246=await _0x3a0d9c[_0x5303ee(0xe7)]['saveImage'](_0x2d9151);return _0x639246?{'source':_0x639246[_0x5303ee(0x135)],'imageSourceType':_0x639246['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0x588c5d),rt(0x1,_0x6b5781)],$e);const ot=['purple.300',_0x381542(0x183),_0x381542(0x113),_0x381542(0x150),'blue.400',_0x381542(0x2b1)];class Ke extends _0x282063{constructor(){const _0x41db1c=_0x381542;super(...arguments),_(this,_0x41db1c(0x130),new Map()),_(this,'_colorIndex',0x0);}[_0x381542(0x2e4)](_0x156194){const _0x155f49=_0x381542;if(this[_0x155f49(0x130)][_0x155f49(0x2d6)](_0x156194))return this['_assignedColors'][_0x155f49(0x2d4)](_0x156194);const _0x14531d=ot[this[_0x155f49(0x1d4)]];return this[_0x155f49(0x1d4)]=(this[_0x155f49(0x1d4)]+0x1)%ot[_0x155f49(0x10b)],this['_assignedColors'][_0x155f49(0x10e)](_0x156194,_0x14531d),_0x14531d;}}function $t(_0x1a8a5b){const _0x3718e7=_0x381542;let _0x160318='';for(const _0x1238f3 of _0x1a8a5b){const {startOffset:_0x478321,endOffset:_0x49631b,isActive:_0x1c4e25,rangeType:_0x559e10,segmentId:_0x3d8903,segmentPage:_0x25a09f}=_0x1238f3;_0x160318[_0x3718e7(0x10b)]&&(_0x160318+=','),_0x160318+=_0x478321+':'+_0x49631b+':'+(_0x1c4e25?'1':'0')+':'+_0x559e10+':'+_0x3d8903+':'+_0x25a09f;}return _0x160318;}function Ai(_0x5dab96){const _0x1c4b4b=_0x381542,_0xc71d6d=_0x5dab96[_0x1c4b4b(0x13b)](','),_0x5a94ba=[];for(const _0x50bb12 of _0xc71d6d){const [_0xa0cbb4,_0x728571,_0x47f8cb,_0x1197d0,_0x913f0e,_0x1d0711]=_0x50bb12['split'](':');_0x5a94ba[_0x1c4b4b(0x2e5)]({'startOffset':Number(_0xa0cbb4),'endOffset':Number(_0x728571),'collapsed':_0xa0cbb4===_0x728571,'isActive':_0x47f8cb==='1','rangeType':_0x1197d0===_0x481c6f[_0x1c4b4b(0x1e9)]?_0x481c6f[_0x1c4b4b(0x1e9)]:_0x481c6f[_0x1c4b4b(0xfc)],'segmentId':typeof _0x913f0e==_0x1c4b4b(0x264)?String(_0x913f0e):'','segmentPage':Number(_0x1d0711!=null?_0x1d0711:-0x1)});}return _0x5a94ba['some'](_0x4fe3bd=>_0x4fe3bd['isActive'])||(_0x5a94ba[0x0][_0x1c4b4b(0x1c3)]=!0x0),_0x5a94ba;}class ze extends _0x37d03e{constructor(){const _0x11cefc=_0x381542;super(...arguments),_(this,_0x11cefc(0x2c6),new _0x2c6ac6(null)),_(this,_0x11cefc(0x313),this['_collabCursorState$'][_0x11cefc(0x155)]());}[_0x381542(0x260)](_0x2e3fd1){const _0x346ab3=_0x381542,{unitID:_0x23a649,memberID:_0x2fb890,textRanges:_0x10a487}=_0x2e3fd1,_0xe35308=$t(_0x10a487);if(_0xe35308==='')return;const _0x20a308={'unitID':_0x23a649,'memberID':_0x2fb890,'selection':_0xe35308};this[_0x346ab3(0x2c6)][_0x346ab3(0x2a5)](_0x20a308);}}var Pi=Object[_0x381542(0x250)],wi=(_0x2dabc7,_0x5a2e19,_0x440bf5,_0x42b2ef)=>{const _0xf83820=_0x381542;for(var _0x4cf12b=_0x42b2ef>0x1?void 0x0:_0x42b2ef?Pi(_0x5a2e19,_0x440bf5):_0x5a2e19,_0x20380c=_0x2dabc7[_0xf83820(0x10b)]-0x1,_0x37a0d4;_0x20380c>=0x0;_0x20380c--)(_0x37a0d4=_0x2dabc7[_0x20380c])&&(_0x4cf12b=_0x37a0d4(_0x4cf12b)||_0x4cf12b);return _0x4cf12b;},A=(_0x3c091f,_0x51d511)=>(_0x37a8ba,_0x4a1c3a)=>_0x51d511(_0x37a8ba,_0x4a1c3a,_0x3c091f);const yi=0x12c,$i=0x64;let xe=class extends _0x37d03e{constructor(_0x12150e,_0x501de9,_0x48384e,_0x1d6941,_0xf541bb,_0x1d9948,_0x2d88ee,_0xea7c96,_0x12efec){const _0x54e422=_0x381542;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x54e422(0x295),new _0x2c6ac6(new Map())),_(this,_0x54e422(0x2d7),this[_0x54e422(0x295)][_0x54e422(0x155)]()),_(this,'_roomMembers$',new _0x2c6ac6([])),_(this,_0x54e422(0x1a4),this['_roomMembers$'][_0x54e422(0x274)](_0x33aec4(yi))),_(this,'_updateLocalCursor',_0x575ddf(_0x4f4360=>{const _0x3a53af=_0x54e422,_0x59bcc4={'eventID':_0x26506e['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3a53af(0xf4)][_0x3a53af(0x259)](),'selection':$t(_0x4f4360)}};this[_0x3a53af(0xf4)][_0x3a53af(0x162)](_0x59bcc4,this[_0x3a53af(0x1ab)]);},$i)),(this[_0x54e422(0x1ab)]=_0x12150e,this[_0x54e422(0xf4)]=_0x501de9,this[_0x54e422(0x2f1)]=_0x48384e,this[_0x54e422(0x31d)]=_0x1d6941,this['_memberService']=_0xf541bb,this[_0x54e422(0x184)]=_0x1d9948,this['_transformService']=_0x2d88ee,this['_univerInstanceService']=_0xea7c96,this[_0x54e422(0x24f)]=_0x12efec);}get[_0x381542(0x1c7)](){const _0x44a68c=_0x381542;return this[_0x44a68c(0x295)][_0x44a68c(0x2a6)]();}get[_0x381542(0x1e3)](){const _0x3c471c=_0x381542;return this[_0x3c471c(0x164)][_0x3c471c(0x2a6)]();}[_0x381542(0x122)](){const _0x2c7af2=_0x381542;super[_0x2c7af2(0x122)](),this[_0x2c7af2(0x295)]['next'](new Map()),this[_0x2c7af2(0x295)][_0x2c7af2(0x25d)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x2c7af2(0x25d)]();}[_0x381542(0x101)](){const _0x34783a=_0x381542;this[_0x34783a(0x32b)]||(this[_0x34783a(0x32b)]=!0x0,this[_0x34783a(0xf4)][_0x34783a(0x125)]['pipe'](_0xb33a09(this['dispose$']))[_0x34783a(0x14a)](_0x95b5a6=>{const _0x5d4010=_0x34783a;_0x95b5a6===_0x5848c4[_0x5d4010(0x284)]?this['_toggleOnline']():this[_0x5d4010(0x25e)]();}),this[_0x34783a(0xf4)][_0x34783a(0x1df)][_0x34783a(0x274)](_0xb33a09(this[_0x34783a(0x2be)]))['subscribe'](_0x525205=>{const _0x3b5e8e=_0x34783a,_0x37f83c=_0x525205[_0x3b5e8e(0x10d)];_0x37f83c===_0x26506e['UPDATE_CURSOR']&&this[_0x3b5e8e(0xeb)](_0x525205),_0x37f83c===_0x26506e[_0x3b5e8e(0x302)]&&this[_0x3b5e8e(0x2fe)](_0x525205);}),this[_0x34783a(0x306)](this[_0x34783a(0x24f)][_0x34783a(0x23f)](_0x507b8e=>{const _0x3394d3=_0x34783a,_0x4e26d9=_0x507b8e[_0x3394d3(0x2ea)];_0x4e26d9!=null&&this[_0x3394d3(0x25a)]&&_0x507b8e['id']===_0x5be305['id']&&_0x4e26d9[_0x3394d3(0x2e0)]===this[_0x3394d3(0x1ab)]&&_0x4e26d9[_0x3394d3(0x2e2)]===!0x1&&_0x4e26d9[_0x3394d3(0x22f)]['length']>0x0&&this[_0x3394d3(0x172)](_0x4e26d9[_0x3394d3(0x22f)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x34783a(0x274)](_0xb33a09(this[_0x34783a(0x2be)]))['subscribe'](_0x4437f1=>{const _0x31c04a=_0x34783a;if((_0x4437f1==null?void 0x0:_0x4437f1['unitID'])!==this['unitID'])return;const _0x249447={'eventID':_0x26506e[_0x31c04a(0x1e5)],'data':_0x4437f1};this[_0x31c04a(0xeb)](_0x249447);}),this[_0x34783a(0x306)](this['_commandService'][_0x34783a(0x23f)](_0x4df6a1=>{const _0xe04d1d=_0x34783a;if(_0x4df6a1[_0xe04d1d(0x2ea)]==null)return;const _0xbc550=_0x4df6a1[_0xe04d1d(0x2ea)];if(_0x4df6a1['id']!==_0x1b5a8f['id']||_0xbc550[_0xe04d1d(0x2e0)]!==this['unitID'])return;const _0x4b80c8={'id':'doc.mutation.rich-text-editing','params':_0xbc550},_0x4545e7=this[_0xe04d1d(0x1c7)];for(const [_0x45b311,_0x3f8e9d]of _0x4545e7){const _0x2eb4d2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3f8e9d['ranges']}},_0x354e40=this[_0xe04d1d(0x23a)][_0xe04d1d(0x1f2)](_0x4b80c8,_0x2eb4d2,!0x1);if(_0x426e81(_0x354e40))throw _0x354e40['error'];_0x4545e7[_0xe04d1d(0x10e)](_0x45b311,{..._0x3f8e9d,'ranges':_0x354e40[_0xe04d1d(0x282)][_0xe04d1d(0x2ea)][_0xe04d1d(0x23e)]});}queueMicrotask(()=>{const _0x8e59ca=_0xe04d1d;this['_cursorInfo$'][_0x8e59ca(0x2a5)](_0x4545e7);});})));}[_0x381542(0xeb)](_0x587480){const _0x44133a=_0x381542;var _0x5f585b,_0x4b15d2;const {memberID:_0x12c4a2,selection:_0x553205}=_0x587480[_0x44133a(0x305)],_0x265ae1=Ai(_0x553205),_0x3ce7d7=(_0x4b15d2=(_0x5f585b=this[_0x44133a(0x2ff)][_0x44133a(0x20c)](this[_0x44133a(0x1ab)],_0x12c4a2))==null?void 0x0:_0x5f585b['name'])!=null?_0x4b15d2:_0x44133a(0x2d1),_0x541597={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x12c4a2),'name':_0x3ce7d7,'ranges':_0x265ae1},_0x204a74=this[_0x44133a(0x1c7)];_0x204a74['set'](_0x12c4a2,_0x541597),this[_0x44133a(0x295)][_0x44133a(0x2a5)](_0x204a74);}[_0x381542(0x2fe)](_0x128a89){const _0x139436=_0x381542,{memberID:_0x1505a6}=_0x128a89[_0x139436(0x305)],_0x3b6099=this[_0x139436(0x1c7)];_0x3b6099[_0x139436(0x2f9)](_0x1505a6),this[_0x139436(0x295)][_0x139436(0x2a5)](_0x3b6099);}[_0x381542(0x1cd)](){const _0x459080=_0x381542;var _0x5c46e7;if(this[_0x459080(0x25a)]=!0x0,((_0x5c46e7=this['_univerInstanceService'][_0x459080(0x170)]())==null?void 0x0:_0x5c46e7[_0x459080(0x28a)]())!==this['unitID'])return;const _0x1e2469=this[_0x459080(0x2f1)][_0x459080(0x2d4)](_0x58bb40)[_0x459080(0x1d9)]();Array[_0x459080(0x223)](_0x1e2469)&&_0x1e2469['length']>0x0&&this[_0x459080(0x172)](_0x1e2469);}['_toggleOffline'](){const _0x20aeac=_0x381542;this[_0x20aeac(0x25a)]=!0x1;}};xe=wi([A(0x2,_0x2ef654(_0x43877d)),A(0x3,_0x2ef654(Ke)),A(0x4,_0x2ef654(_0x4bf3fb)),A(0x5,_0x2ef654(ze)),A(0x6,_0x471770),A(0x7,_0x143643),A(0x8,_0x478bd4)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x1bc6a5,_0x379ab7,_0x4cfeea,_0x5e2c26)=>{const _0x934d6b=_0x381542;for(var _0x5bacc5=_0x5e2c26>0x1?void 0x0:_0x5e2c26?xi(_0x379ab7,_0x4cfeea):_0x379ab7,_0x1fee48=_0x1bc6a5[_0x934d6b(0x10b)]-0x1,_0x197179;_0x1fee48>=0x0;_0x1fee48--)(_0x197179=_0x1bc6a5[_0x1fee48])&&(_0x5bacc5=_0x197179(_0x5bacc5)||_0x5bacc5);return _0x5bacc5;},B=(_0x541bef,_0x536e6a)=>(_0x5efbb7,_0x54b2dd)=>_0x536e6a(_0x5efbb7,_0x54b2dd,_0x541bef);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x5d6327=[],_0x2fcf55=!0x1;return _0x3bc232=>{_0x5d6327['push'](_0x3bc232),_0x2fcf55||(_0x2fcf55=!0x0,setTimeout(()=>{const _0x112fae=_0x563f;_0x5d6327[_0x112fae(0x15f)](_0x587989=>_0x587989()),_0x5d6327=[],_0x2fcf55=!0x1;}));};};let Be=class extends _0x37d03e{constructor(_0x5b2841,_0x281dd8,_0x37f890,_0x1ac9e4,_0x4e8b71,_0xaddc21,_0x25a06f,_0x488130){const _0xde772c=_0x381542;super(),_(this,_0xde772c(0x25a),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x2c6ac6(new Map())),_(this,_0xde772c(0x2d7),this[_0xde772c(0x295)][_0xde772c(0x155)]()),_(this,_0xde772c(0x164),new _0x2c6ac6([])),_(this,_0xde772c(0x1a4),this[_0xde772c(0x164)][_0xde772c(0x274)](_0x33aec4(Fi))),_(this,_0xde772c(0x172),_0x575ddf((_0x33cd1c,_0x267398)=>{const _0xc11f1e=_0xde772c,_0x238ee5={'eventID':_0x26506e[_0xc11f1e(0x1e5)],'data':{'unitID':this[_0xc11f1e(0x1ab)],'memberID':this['_session'][_0xc11f1e(0x259)](),'selection':_0x2fec25(_0x33cd1c,_0x267398[_0xc11f1e(0x256)])}};this[_0xc11f1e(0xf4)][_0xc11f1e(0x162)](_0x238ee5,this[_0xc11f1e(0x1ab)]);},ki)),(this[_0xde772c(0x1ab)]=_0x5b2841,this['_session']=_0x281dd8,this[_0xde772c(0x2f1)]=_0x37f890,this[_0xde772c(0x31d)]=_0x1ac9e4,this[_0xde772c(0x2ff)]=_0x4e8b71,this['_univerInstanceService']=_0xaddc21,this[_0xde772c(0x24f)]=_0x25a06f,this[_0xde772c(0x312)]=_0x488130);}get[_0x381542(0x1c7)](){const _0x39fc62=_0x381542;return this['_cursorInfo$'][_0x39fc62(0x2a6)]();}get[_0x381542(0x1e3)](){const _0x1f15f1=_0x381542;return this[_0x1f15f1(0x164)][_0x1f15f1(0x2a6)]();}['dispose'](){const _0x38d4f1=_0x381542;super[_0x38d4f1(0x122)](),this[_0x38d4f1(0x295)][_0x38d4f1(0x2a5)](new Map()),this[_0x38d4f1(0x295)][_0x38d4f1(0x25d)](),this[_0x38d4f1(0x164)][_0x38d4f1(0x2a5)]([]),this[_0x38d4f1(0x164)][_0x38d4f1(0x25d)]();}[_0x381542(0x101)](){const _0x1cf5d6=_0x381542;this[_0x1cf5d6(0x32b)]||(this[_0x1cf5d6(0x32b)]=!0x0,this['_session'][_0x1cf5d6(0x125)][_0x1cf5d6(0x274)](_0xb33a09(this[_0x1cf5d6(0x2be)]))[_0x1cf5d6(0x14a)](_0x11f54d=>{const _0x259a5a=_0x1cf5d6;_0x11f54d===_0x5848c4[_0x259a5a(0x284)]?this[_0x259a5a(0x1cd)]():this[_0x259a5a(0x25e)]();}),this[_0x1cf5d6(0xf4)][_0x1cf5d6(0x1df)][_0x1cf5d6(0x274)](_0xb33a09(this[_0x1cf5d6(0x2be)]))[_0x1cf5d6(0x14a)](_0xc4ea9d=>{const _0xeb14cf=_0x1cf5d6,_0x20f0a5=_0xc4ea9d[_0xeb14cf(0x10d)];_0x20f0a5===_0x26506e[_0xeb14cf(0x1e5)]&&this[_0xeb14cf(0xeb)](_0xc4ea9d),_0x20f0a5===_0x26506e[_0xeb14cf(0x302)]&&this[_0xeb14cf(0x2fe)](_0xc4ea9d);}),this[_0x1cf5d6(0x269)](),this[_0x1cf5d6(0x306)](this[_0x1cf5d6(0x24f)]['onCommandExecuted'](_0x55ffea=>{const _0x21a787=_0x1cf5d6;if(this['_online']&&_0x55ffea['id']===_0x10f466['id']&&_0x55ffea[_0x21a787(0x2ea)][_0x21a787(0x2e0)]===this[_0x21a787(0x1ab)]){const _0x22fd69=_0x55ffea[_0x21a787(0x2ea)];this['_updateLocalCursor'](_0x22fd69[_0x21a787(0x24b)],_0x22fd69[_0x21a787(0x16a)][0x0]);}})));}[_0x381542(0xeb)](_0x42eaf1){const _0x2bedc5=_0x381542;var _0x3909df,_0x30ee03;const {memberID:_0x56b43,selection:_0x81a9ee}=_0x42eaf1['data'],{sheetName:_0x3d2c2c,range:_0x36b2e7}=_0x1ff488(_0x81a9ee),_0x6828c5={'name':(_0x30ee03=(_0x3909df=this[_0x2bedc5(0x2ff)][_0x2bedc5(0x20c)](this['unitID'],_0x56b43))==null?void 0x0:_0x3909df[_0x2bedc5(0x26e)])!=null?_0x30ee03:'Unknown\x20user','range':this[_0x2bedc5(0x231)](_0x3d2c2c,_0x36b2e7),'sheetID':_0x3d2c2c,'color':this[_0x2bedc5(0x31d)][_0x2bedc5(0x2e4)](_0x56b43),'selection':_0x81a9ee},_0x5d2788=this['cursorInfo'];_0x5d2788[_0x2bedc5(0x10e)](_0x56b43,_0x6828c5),this['_cursorInfo$'][_0x2bedc5(0x2a5)](_0x5d2788);}[_0x381542(0x2fe)](_0x4291e4){const _0x40c905=_0x381542,{memberID:_0x434a3f}=_0x4291e4[_0x40c905(0x305)],_0x4a5330=this[_0x40c905(0x1c7)];_0x4a5330[_0x40c905(0x2f9)](_0x434a3f),this['_cursorInfo$']['next'](_0x4a5330);}['_getMergeRange'](_0x27e6ce,_0x5e77e4){const _0x111d33=_0x381542;var _0x18394c,_0x4bd117;const _0xfe61fb=(_0x4bd117=(_0x18394c=this[_0x111d33(0x301)][_0x111d33(0x1d6)](this[_0x111d33(0x1ab)]))==null?void 0x0:_0x18394c[_0x111d33(0x238)](_0x27e6ce))==null?void 0x0:_0x4bd117[_0x111d33(0x1cb)]();return(_0xfe61fb==null?void 0x0:_0xfe61fb['find'](_0x4f157d=>_0xf757cd[_0x111d33(0x143)](_0x4f157d,_0x5e77e4)))||_0x5e77e4;}['_onRefRangeChange'](){const _0x3d9689=_0x381542,_0xc36f86=new _0x24d8e5(),_0x55a6a0=Hi(),_0x2da524=()=>{const _0x23d1ed=_0x563f;_0xc36f86['dispose']();const _0x1fda42=(_0x33ee4c,_0x5eb87e,_0x34f579,_0x2e6b63)=>{const _0x4d3d76=_0x563f;let _0x2b1002=[];switch(_0x33ee4c['id']){case _0x45eebc[_0x4d3d76(0x2b0)]:{_0x2b1002=_0x1ebd4c(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc[_0x4d3d76(0x108)]:{_0x2b1002=_0x52a7dc(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc['InsertColCommandId']:{_0x2b1002=_0x4e1f6b(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc['InsertRangeMoveDownCommandId']:{_0x2b1002=_0x486cc1(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc['InsertRangeMoveRightCommandId']:{_0x2b1002=_0xdd32ba(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc[_0x4d3d76(0xec)]:{_0x2b1002=_0x3092ed(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc['MoveRangeCommandId']:{_0x2b1002=_0x87c3e8(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc['RemoveColCommandId']:{_0x2b1002=_0x3c99aa(_0x33ee4c,_0x2e6b63);break;}case _0x45eebc['RemoveRowCommandId']:{_0x2b1002=_0x430829(_0x33ee4c,_0x2e6b63);break;}}const _0x585a1a=_0x1d37d8(_0x2b1002,_0x2e6b63),_0x34701b=this[_0x4d3d76(0x1c7)][_0x4d3d76(0x2d4)](_0x5eb87e);if(_0x34701b&&_0x585a1a){const _0x4130b9={..._0x34701b,'range':_0x585a1a};this['cursorInfo'][_0x4d3d76(0x10e)](_0x5eb87e,_0x4130b9),_0x55a6a0(()=>{const _0x5d949f=_0x4d3d76,_0x5a6e1e=this[_0x5d949f(0x312)][_0x5d949f(0x13e)](_0x585a1a,_0x2dd446=>(_0x5a6e1e[_0x5d949f(0x122)](),_0x1fda42(_0x2dd446,_0x5eb87e,_0x34f579,_0x585a1a)));_0xc36f86[_0x5d949f(0x19e)](_0x5a6e1e);});}return{'redos':[],'undos':[]};};this[_0x23d1ed(0x1c7)]['forEach']((_0x54d2dc,_0x127613)=>{const _0x3f1102=_0x23d1ed,{range:_0x4e8fff,sheetID:_0x2a118d}=_0x54d2dc,_0x2b5e56=this[_0x3f1102(0x312)][_0x3f1102(0x13e)](_0x4e8fff,_0x3dd878=>(_0x2b5e56[_0x3f1102(0x122)](),_0x1fda42(_0x3dd878,_0x127613,_0x2a118d,_0x4e8fff)));_0xc36f86[_0x3f1102(0x19e)](_0x2b5e56);});};this[_0x3d9689(0x306)](_0xa06c05(this[_0x3d9689(0x295)][_0x3d9689(0x14a)](()=>{_0x2da524();})));}[_0x381542(0x1cd)](){const _0x5cd940=_0x381542;var _0x4dcce4,_0x3a0dac;if(this[_0x5cd940(0x25a)]=!0x0,((_0x4dcce4=this[_0x5cd940(0x301)]['getFocusedUnit']())==null?void 0x0:_0x4dcce4['getUnitId']())!==this['unitID'])return;const _0xa803b1=(_0x3a0dac=this[_0x5cd940(0x2f1)][_0x5cd940(0x2d4)](_0x51dd20)[_0x5cd940(0x2ab)]())==null?void 0x0:_0x3a0dac[0x0],_0x3c13ea=this[_0x5cd940(0x301)][_0x5cd940(0x140)](_0x11507d[_0x5cd940(0x25c)])[_0x5cd940(0x169)]();_0xa803b1&&_0x3c13ea&&this[_0x5cd940(0x172)](_0x3c13ea[_0x5cd940(0x276)](),_0xa803b1);}[_0x381542(0x25e)](){const _0x376f0f=_0x381542;this[_0x376f0f(0x25a)]=!0x1;}};Be=Bi([B(0x2,_0x2ef654(_0x43877d)),B(0x3,_0x2ef654(Ke)),B(0x4,_0x2ef654(_0x4bf3fb)),B(0x5,_0x143643),B(0x6,_0x478bd4),B(0x7,_0x2ef654(_0x313bef))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x2fbb7e,_0x26c3ac,_0x50a80b,_0x479612)=>{const _0x90525a=_0x381542;for(var _0x16b373=_0x479612>0x1?void 0x0:_0x479612?Yi(_0x26c3ac,_0x50a80b):_0x26c3ac,_0x5211ca=_0x2fbb7e[_0x90525a(0x10b)]-0x1,_0x9a6b79;_0x5211ca>=0x0;_0x5211ca--)(_0x9a6b79=_0x2fbb7e[_0x5211ca])&&(_0x16b373=_0x9a6b79(_0x16b373)||_0x16b373);return _0x16b373;},Ce=(_0x2d064f,_0xec9740)=>(_0x2e2ddc,_0x5768fc)=>_0xec9740(_0x2e2ddc,_0x5768fc,_0x2d064f);let H=class extends _0x37d03e{constructor(_0x16c6d1,_0x37276c,_0xd4b60){const _0x29f55d=_0x381542;super(),_(this,_0x29f55d(0x207),new Map()),_(this,_0x29f55d(0x2b3),new _0x5dc0f4()),(this[_0x29f55d(0x301)]=_0x16c6d1,this[_0x29f55d(0x2f1)]=_0x37276c,this['_collabSessionService']=_0xd4b60,this['_init']());}[_0x381542(0x122)](){const _0x2882e2=_0x381542;super[_0x2882e2(0x122)](),this[_0x2882e2(0x2b3)]['complete'](),this[_0x2882e2(0x207)][_0x2882e2(0x15f)](_0x23e350=>_0x23e350[_0x2882e2(0x122)]());}['getCollabCursors$'](_0x184ab8){const _0x298e74=_0x381542;return this['_entities']['has'](_0x184ab8)?this[_0x298e74(0x207)][_0x298e74(0x2d4)](_0x184ab8)[_0x298e74(0x2d7)]:this['_entityInit$']['pipe'](_0xa1c3e2(_0x4b9fe6=>_0x4b9fe6[_0x298e74(0x1ab)]===_0x184ab8),_0x5c652d(_0x4b5c92=>_0x4b5c92['cursorInfo$']));}[_0x381542(0x32b)](){const _0x347992=_0x381542;this[_0x347992(0x301)]['getTypeOfUnitAdded$'](_0x11507d[_0x347992(0x25c)])[_0x347992(0x274)](_0xb33a09(this['dispose$']))['subscribe'](async _0x500806=>{const _0x25cd8c=_0x347992,_0x68f643=_0x500806[_0x25cd8c(0x28a)](),_0x53d1c4=await this[_0x25cd8c(0x30c)](_0x68f643);this[_0x25cd8c(0x2b3)][_0x25cd8c(0x2a5)](_0x53d1c4),this[_0x25cd8c(0x207)][_0x25cd8c(0x10e)](_0x68f643,_0x53d1c4);}),this['_univerInstanceService'][_0x347992(0x1f1)](_0x11507d['UNIVER_DOC'])[_0x347992(0x274)](_0xb33a09(this[_0x347992(0x2be)]))[_0x347992(0x274)](_0xa1c3e2(_0x4a405f=>!_0x4a405f['getUnitId']()[_0x347992(0x158)]('__')))['subscribe'](async _0x4cc1b4=>{const _0x3747ce=_0x347992,_0x4be90f=_0x4cc1b4[_0x3747ce(0x28a)](),_0x2dfe92=await this[_0x3747ce(0x134)](_0x4be90f);this[_0x3747ce(0x2b3)]['next'](_0x2dfe92),this['_entities'][_0x3747ce(0x10e)](_0x4be90f,_0x2dfe92);}),_0x4c8ad4(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x11507d[_0x347992(0x2c0)]),this[_0x347992(0x301)][_0x347992(0x2bd)](_0x11507d[_0x347992(0x25c)]))['pipe'](_0xb33a09(this[_0x347992(0x2be)]))[_0x347992(0x14a)](_0x1a8a46=>{const _0x4c3965=_0x347992,_0x5bf1dc=_0x1a8a46['getUnitId'](),_0x55a4aa=this['_entities']['get'](_0x5bf1dc);_0x55a4aa&&(_0x55a4aa['dispose'](),this[_0x4c3965(0x207)]['delete'](_0x5bf1dc));});}async[_0x381542(0x30c)](_0x3c34a4){const _0x419c4=_0x381542,_0x48ca21=await this['_collabSessionService']['requireSession'](_0x3c34a4),_0x4a37f7=this[_0x419c4(0x2f1)][_0x419c4(0x287)](Be,_0x3c34a4,_0x48ca21);return _0x4a37f7[_0x419c4(0x101)](),_0x4a37f7;}async[_0x381542(0x134)](_0x44f483){const _0x1fb111=_0x381542,_0x13f88b=await this['_collabSessionService'][_0x1fb111(0x1e6)](_0x44f483),_0x45d203=this['_injector'][_0x1fb111(0x287)](xe,_0x44f483,_0x13f88b);return _0x45d203[_0x1fb111(0x101)](),_0x45d203;}};H=Wi([Ce(0x0,_0x143643),Ce(0x1,_0x2ef654(_0x43877d)),Ce(0x2,_0x2ef654(_0x22b01b))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x117aca,_0x1eea00){const _0xc0a157=_0x381542;let {radius:_0x242451,width:_0x2be966,height:_0x15cea5}=_0x1eea00;_0x242451=_0x242451!=null?_0x242451:0x0,_0x2be966=_0x2be966!=null?_0x2be966:0x1e,_0x15cea5=_0x15cea5!=null?_0x15cea5:0x1e;let _0x4874ca=0x0,_0x2f5fe4=0x0,_0x5a4b4f=0x0;_0x4874ca=_0x2f5fe4=_0x5a4b4f=Math[_0xc0a157(0x2b6)](_0x242451,_0x2be966/0x2,_0x15cea5/0x2),_0x117aca[_0xc0a157(0x1e1)](),_0x117aca[_0xc0a157(0x1a5)](_0x4874ca,0x0),_0x117aca[_0xc0a157(0x26b)](_0x2be966-_0x2f5fe4,0x0),_0x117aca['arc'](_0x2be966-_0x2f5fe4,_0x2f5fe4,_0x2f5fe4,Math['PI']*0x3/0x2,0x0,!0x1),_0x117aca[_0xc0a157(0x26b)](_0x2be966,_0x15cea5-_0x5a4b4f),_0x117aca['arc'](_0x2be966-_0x5a4b4f,_0x15cea5-_0x5a4b4f,_0x5a4b4f,0x0,Math['PI']/0x2,!0x1),_0x117aca[_0xc0a157(0x26b)](0x0,_0x15cea5),_0x117aca[_0xc0a157(0x26b)](0x0,_0x4874ca),_0x117aca[_0xc0a157(0x2cd)](_0x4874ca,_0x4874ca,_0x4874ca,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x117aca[_0xc0a157(0xf6)](),_0x1eea00[_0xc0a157(0x1c2)]&&(_0x117aca[_0xc0a157(0x20b)](),_0x117aca['fillStyle']=_0x1eea00[_0xc0a157(0x1c2)],_0x1eea00['fillRule']===_0xc0a157(0x12e)?_0x117aca[_0xc0a157(0x1c2)]('evenodd'):_0x117aca[_0xc0a157(0x1c2)](),_0x117aca[_0xc0a157(0x1ce)]());}class Ee extends _0x4f7b35{constructor(_0x367029,_0x5ca848){const _0x24204c=_0x381542;super(_0x367029,_0x5ca848),_(this,'color'),_(this,'text'),(this[_0x24204c(0x326)]=_0x5ca848==null?void 0x0:_0x5ca848[_0x24204c(0x326)],this[_0x24204c(0x1d7)]=_0x5ca848==null?void 0x0:_0x5ca848['text']);}static[_0x381542(0x203)](_0x3c8add,_0x4648ca){const _0x38eb6d=_0x381542,{text:_0x1a48b3,color:_0x4c4d77}=_0x4648ca;_0x3c8add[_0x38eb6d(0x20b)](),_0x3c8add[_0x38eb6d(0x288)]=_0x38eb6d(0x31b);const _0x1a63c8=_0x3c8add[_0x38eb6d(0x156)](_0x1a48b3)[_0x38eb6d(0x2bf)],_0x682f20=Math[_0x38eb6d(0x2b6)](_0x1a63c8+0x2*Re,at);Vi(_0x3c8add,{'height':Q,'radius':0x4,'width':_0x682f20,'fill':_0x4c4d77}),_0x3c8add[_0x38eb6d(0xf0)]=_0x38eb6d(0x21d);const _0x4e9a26=Re,_0x1186a8=Q-ji,_0x38e00e=at-0x2*Re;if(_0x1a63c8>_0x38e00e){let _0x1242a9='',_0x3ea179=0x0;for(const _0x45c41e of _0x1a48b3){const _0x25375e=_0x3c8add['measureText'](_0x45c41e)[_0x38eb6d(0x2bf)];if(_0x3ea179+_0x25375e<=_0x38e00e-_0x3c8add[_0x38eb6d(0x156)](_0x38eb6d(0x2a3))[_0x38eb6d(0x2bf)])_0x1242a9+=_0x45c41e,_0x3ea179+=_0x25375e;else{_0x1242a9+=_0x38eb6d(0x2a3);break;}}_0x3c8add['fillText'](_0x1242a9,_0x4e9a26,_0x1186a8);}else _0x3c8add['fillText'](_0x1a48b3,_0x4e9a26,_0x1186a8);_0x3c8add[_0x38eb6d(0x1ce)]();}[_0x381542(0x31c)](_0x3ab4ec){const _0x1ac7c6=_0x381542;Ee[_0x1ac7c6(0x203)](_0x3ab4ec,this);}}const De='collab-text-anchor-',Xi=_0x381542(0x26a),Gi=_0x381542(0x213),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x381542(0x20a);function _0x563f(_0x318505,_0x107e33){const _0x54dcd6=_0x54dc();return _0x563f=function(_0x563f31,_0x4a81ff){_0x563f31=_0x563f31-0xe5;let _0x3b5ab7=_0x54dcd6[_0x563f31];return _0x3b5ab7;},_0x563f(_0x318505,_0x107e33);}class ct{constructor(_0x28527d,_0x4f91c6,_0x246c5e,_0x5d9156){const _0x533e6e=_0x381542;_(this,_0x533e6e(0x1ef),[]),_(this,_0x533e6e(0x18e),null),_(this,_0x533e6e(0x147),null),_(this,_0x533e6e(0x11a),null),_(this,_0x533e6e(0x1fb),null),_(this,_0x533e6e(0x16e),null),(this[_0x533e6e(0x17e)]=_0x28527d,this[_0x533e6e(0x1e0)]=_0x4f91c6,this[_0x533e6e(0x18b)]=_0x246c5e,this[_0x533e6e(0x19c)]=_0x5d9156,this[_0x533e6e(0x13c)]());}set[_0x381542(0x279)](_0x30b349){const _0xf9585b=_0x381542;_0x30b349?(this[_0xf9585b(0x11a)]&&this[_0xf9585b(0x11a)][_0xf9585b(0x17c)](),this[_0xf9585b(0x147)]&&this['_textBubble']['show']()):(this[_0xf9585b(0x11a)]&&this[_0xf9585b(0x11a)][_0xf9585b(0x249)](),this[_0xf9585b(0x147)]&&this[_0xf9585b(0x147)][_0xf9585b(0x17c)]());}[_0x381542(0x122)](){const _0x2e2453=_0x381542;for(const _0x3d257f of this[_0x2e2453(0x1ef)])_0x3d257f[_0x2e2453(0x122)]();this[_0x2e2453(0x147)]&&this[_0x2e2453(0x147)]['dispose'](),this[_0x2e2453(0x11a)]&&this[_0x2e2453(0x11a)]['dispose'](),this[_0x2e2453(0x18e)]&&this['_anchor'][_0x2e2453(0x122)](),this['_eventUnsubscribe']&&this[_0x2e2453(0x16e)]();}[_0x381542(0x13c)](){const _0x138ac9=_0x381542;var _0x51124b;const {_docSkeleton:_0x5c5ed5,_document:_0x17b53d}=this,{color:_0x21eb04,name:_0x10dd41,ranges:_0x30faa8}=this[_0x138ac9(0x17e)],_0x546b7a=_0x17b53d[_0x138ac9(0x181)](),{docsLeft:_0x4f85bd,docsTop:_0x14e24f}=_0x546b7a,_0x34d73a=new _0x1e3027(_0x546b7a,_0x5c5ed5);for(const {startOffset:_0x170f8e,endOffset:_0x3b4093,rangeType:_0x2a6697,segmentId:_0x4980a5,segmentPage:_0x4b6855,collapsed:_0x4c61b1,isActive:_0x4b7904}of _0x30faa8){const _0x191a32=_0x5c5ed5[_0x138ac9(0x152)](_0x170f8e,!0x0,_0x4980a5,_0x4b6855);let _0x33a21a=_0x5c5ed5[_0x138ac9(0x152)](_0x3b4093,!0x0,_0x4980a5,_0x4b6855);if(_0x33a21a==null&&(_0x33a21a=_0x5c5ed5[_0x138ac9(0x152)](_0x3b4093-0x1,!0x1,_0x4980a5,_0x4b6855)),_0x4b7904){const {contentBoxPointGroup:_0xb1b5db}=_0x34d73a[_0x138ac9(0x127)](_0x33a21a,_0x33a21a);if(_0xb1b5db[_0x138ac9(0x10b)]===0x0)continue;this[_0x138ac9(0x2e9)](_0x21eb04,_0xb1b5db,_0x4f85bd,_0x14e24f,_0x10dd41),this[_0x138ac9(0x16e)]=this['_handleHover']();}if(_0x191a32&&_0x33a21a){if(_0x2a6697===_0x481c6f['RECT']){const _0xbf936e=new _0x1bf9bd(_0x546b7a,_0x5c5ed5),{pointGroup:_0x357765}=(_0x51124b=_0xbf936e[_0x138ac9(0x127)](_0x191a32,_0x33a21a))!=null?_0x51124b:{};if(_0x357765==null||_0x357765['length']===0x0)continue;this['_drawRectRange'](_0x21eb04,_0x357765,_0x4f85bd,_0x14e24f);}else{if(!_0x4c61b1){const {borderBoxPointGroup:_0x4eb547}=_0x34d73a[_0x138ac9(0x127)](_0x191a32,_0x33a21a);if(_0x4eb547[_0x138ac9(0x10b)]===0x0)continue;this[_0x138ac9(0x1ec)](_0x21eb04,_0x4eb547,_0x4f85bd,_0x14e24f);}}}}}[_0x381542(0x2e9)](_0x198247,_0x4fdbd0,_0x11ae01,_0x5c20a3,_0x4c683f){const _0x5c1fc4=_0x381542,_0x45c253=this[_0x5c1fc4(0x1c6)](_0x4fdbd0),{left:_0x2c9c2d,top:_0xc6b5c,height:_0x52082c}=_0x45c253,_0x1bd2cb=this[_0x5c1fc4(0x16c)](),_0x2c02b8=zi/_0x1bd2cb,_0x14aa63=new _0x4bafb1(De+_0x5d1d29(z),{'left':_0x2c9c2d+_0x11ae01-_0x2c02b8,'top':_0xc6b5c+_0x5c20a3,'height':_0x52082c,'width':Ki,'fill':_0x198247||_0x2caebb(_0x47a336[_0x5c1fc4(0x24c)],0x0),'strokeWidth':_0x2c02b8,'stroke':Ji,'evented':!0x0});this[_0x5c1fc4(0x18e)]=_0x14aa63,this[_0x5c1fc4(0x1e0)][_0x5c1fc4(0x25b)](_0x14aa63,_0x5b229d);const _0xf9a24d=new _0x4bafb1(De+_0x5d1d29(z),{'left':_0x2c9c2d+_0x11ae01-_0x2c02b8,'top':_0xc6b5c+_0x5c20a3-be/0x2,'height':be,'width':be,'fill':_0x198247||_0x2caebb(_0x47a336[_0x5c1fc4(0x24c)],0x0),'strokeWidth':0x0,'stroke':_0x198247||_0x2caebb(_0x47a336[_0x5c1fc4(0x24c)],0x0),'evented':!0x1});this[_0x5c1fc4(0x11a)]=_0xf9a24d,this[_0x5c1fc4(0x1e0)][_0x5c1fc4(0x25b)](_0xf9a24d,_0x5b229d);const _0x57fd47=new Ee(De+_0x5d1d29(z),{'left':_0x2c9c2d+_0x11ae01-_0x2c02b8,'top':_0xc6b5c+_0x5c20a3-Q,'text':_0x4c683f,'color':_0x198247});this[_0x5c1fc4(0x147)]=_0x57fd47,this[_0x5c1fc4(0x1e0)]['addObject'](_0x57fd47,_0x5b229d),this[_0x5c1fc4(0x279)]=!0x1;}['_handleHover'](){const _0x260a45=_0x381542,_0x2e598d=this[_0x260a45(0x18e)][_0x260a45(0xe5)][_0x260a45(0x27f)](()=>{const _0x43650f=_0x260a45;this[_0x43650f(0x279)]=!0x0;}),_0x1848d6=this[_0x260a45(0x18e)][_0x260a45(0x199)][_0x260a45(0x27f)](()=>{const _0x1a7cc9=_0x260a45;this[_0x1a7cc9(0x1fb)]&&clearTimeout(this[_0x1a7cc9(0x1fb)]),this['_hideTimer']=setTimeout(()=>{const _0x1004c9=_0x1a7cc9;this[_0x1004c9(0x279)]=!0x1;},0x7d0);});return()=>{const _0x4a1fbe=_0x260a45;_0x2e598d[_0x4a1fbe(0x15a)](),_0x1848d6[_0x4a1fbe(0x15a)]();};}[_0x381542(0x1ec)](_0x59fce4,_0x255fed,_0x151af0,_0x55a764){const _0x4c3934=_0x381542,_0x43dbf7=new _0x37be34(_0x59fce4)[_0x4c3934(0x298)](0.2)[_0x4c3934(0x1b2)](),_0x56b48b=new _0x4c6616(Xi+_0x5d1d29(z),{'pointsGroup':_0x255fed,'fill':_0x43dbf7||_0x2caebb(_0x47a336[_0x4c3934(0x24c)],0.2),'left':_0x151af0,'top':_0x55a764,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4c3934(0x2e5)](_0x56b48b),this[_0x4c3934(0x1e0)][_0x4c3934(0x25b)](_0x56b48b,_0x5b229d);}[_0x381542(0x2ae)](_0x351ff2,_0x44cca4,_0xf9af0e,_0x325e7c){const _0x8bf305=_0x381542,_0x28fc9b=new _0x37be34(_0x351ff2)[_0x8bf305(0x298)](0.2)[_0x8bf305(0x1b2)](),_0x5e0527=new _0x4c6616(Gi+_0x5d1d29(z),{'pointsGroup':_0x44cca4,'fill':_0x28fc9b||_0x2caebb(_0x47a336['black'],0.2),'left':_0xf9af0e,'top':_0x325e7c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8bf305(0x1ef)][_0x8bf305(0x2e5)](_0x5e0527),this[_0x8bf305(0x1e0)][_0x8bf305(0x25b)](_0x5e0527,_0x5b229d);}[_0x381542(0x1c6)](_0x189d08){const _0x5abdda=_0x189d08[0x0],_0x2d008=_0x5abdda[0x0],_0x2fc5ed=_0x5abdda[0x2],{x:_0x31793c,y:_0x4d1139}=_0x2d008,{x:_0x481125,y:_0x326b08}=_0x2fc5ed;return{'left':_0x31793c,'top':_0x4d1139,'width':_0x481125-_0x31793c,'height':_0x326b08-_0x4d1139};}[_0x381542(0x16c)](){const _0x39fc87=_0x381542,{scaleX:_0x1bf554,scaleY:_0x522aac}=this[_0x39fc87(0x1e0)][_0x39fc87(0x14b)]();return Math[_0x39fc87(0x28f)](_0x1bf554,_0x522aac);}}var Zi=Object[_0x381542(0x250)],Qi=(_0x346625,_0x17b8ea,_0x420da5,_0x4dfe63)=>{const _0x21728e=_0x381542;for(var _0x87d0bc=_0x4dfe63>0x1?void 0x0:_0x4dfe63?Zi(_0x17b8ea,_0x420da5):_0x17b8ea,_0x300eb9=_0x346625[_0x21728e(0x10b)]-0x1,_0x15f4f3;_0x300eb9>=0x0;_0x300eb9--)(_0x15f4f3=_0x346625[_0x300eb9])&&(_0x87d0bc=_0x15f4f3(_0x87d0bc)||_0x87d0bc);return _0x87d0bc;},ie=(_0x5c14e2,_0x494dfd)=>(_0x1d433c,_0x473661)=>_0x494dfd(_0x1d433c,_0x473661,_0x5c14e2);let Fe=class extends _0x37d03e{constructor(_0x552828,_0x22ddff,_0x3250ae,_0x20272b,_0xef4308){const _0x118612=_0x381542;super(),_(this,_0x118612(0x19f),[]),_(this,_0x118612(0x15c),[]),(this[_0x118612(0x1a7)]=_0x552828,this[_0x118612(0x30e)]=_0x22ddff,this[_0x118612(0x188)]=_0x3250ae,this[_0x118612(0x24f)]=_0x20272b,this['_themeService']=_0xef4308,this[_0x118612(0x32b)]());}[_0x381542(0x32b)](){const _0x4098d6=_0x381542,_0x11abd5=this[_0x4098d6(0x1a7)][_0x4098d6(0x2e0)],_0x1c4cf9=this[_0x4098d6(0x30e)];this[_0x4098d6(0x306)](_0x210567([this[_0x4098d6(0x188)][_0x4098d6(0x277)](_0x11abd5),this[_0x4098d6(0x107)][_0x4098d6(0x1f0)]])[_0x4098d6(0x274)](_0x15499d(([_0x27c987,_0x5736d2])=>({'skeleton':_0x1c4cf9['getSkeleton'](),'cursors':[..._0x27c987[_0x4098d6(0x1fe)]()][_0x4098d6(0x15b)](_0x443e78=>({..._0x443e78,'color':this['_themeService'][_0x4098d6(0x11d)](_0x443e78['color'])}))})))[_0x4098d6(0x14a)](_0x57f764=>{const _0x36410b=_0x4098d6;if(this[_0x36410b(0x1b3)](),_0x57f764){const {skeleton:_0x57806e,cursors:_0x11049e}=_0x57f764;this[_0x36410b(0x1a1)](_0x57806e,_0x11049e);}})),this[_0x4098d6(0x28d)](),this[_0x4098d6(0x214)]();}[_0x381542(0x1a1)](_0x49148b,_0x5d5d6f){const _0x493429=_0x381542,{scene:_0x58e7b8,mainComponent:_0x23df49}=this['_context'],_0xd061a4=_0x5d5d6f[_0x493429(0x325)](_0x57d5a6=>new ct(_0x57d5a6,_0x58e7b8,_0x49148b,_0x23df49));this[_0x493429(0x19f)]=_0xd061a4,this[_0x493429(0x15c)]=_0x5d5d6f;}[_0x381542(0x2cc)](){const _0x324a0e=_0x381542;this['_removeCollabCursors']();const {scene:_0x1ece16,mainComponent:_0x31a2a3}=this[_0x324a0e(0x1a7)],_0x5bc74e=this[_0x324a0e(0x30e)][_0x324a0e(0xf8)](),_0x5be511=this['_cursors'][_0x324a0e(0x325)](_0x34f4d8=>new ct(_0x34f4d8,_0x1ece16,_0x5bc74e,_0x31a2a3));this[_0x324a0e(0x19f)]=_0x5be511;}[_0x381542(0x1b3)](){const _0x240916=_0x381542;this[_0x240916(0x19f)][_0x240916(0x15f)](_0x26081d=>_0x26081d[_0x240916(0x122)]()),this[_0x240916(0x19f)]=[];}[_0x381542(0x214)](){const _0x513e4c=_0x381542,_0x377232=[_0x19b885['id']];this[_0x513e4c(0x306)](this['_commandService'][_0x513e4c(0x23f)](_0x1c6250=>{const _0x4dab51=_0x513e4c;_0x377232['includes'](_0x1c6250['id'])&&_0x1c6250[_0x4dab51(0x2ea)][_0x4dab51(0x2e0)]===this[_0x4dab51(0x1a7)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x62cdb1=_0x381542;this[_0x62cdb1(0x306)](_0x123da2(this[_0x62cdb1(0x1a7)][_0x62cdb1(0x322)]['onTransformChange$'])['pipe'](_0x181f05(_0x446939=>_0x446939[_0x62cdb1(0x209)]===_0xc25102[_0x62cdb1(0x1f5)]),_0x20d47b(0x10))[_0x62cdb1(0x14a)](()=>{const _0x5c1a3f=_0x62cdb1;this[_0x5c1a3f(0x2cc)]();}));}};Fe=Qi([ie(0x1,_0x2ef654(_0x5551a0)),ie(0x2,_0x2ef654(H)),ie(0x3,_0x478bd4),ie(0x4,_0x2ef654(_0x487580))],Fe);const qi=0x1,en=1.5;class tn extends _0x4f7b35{constructor(_0x47e84c,_0x47ccad){const _0x23cd11=_0x381542;super(_0x47e84c,_0x47ccad),_(this,_0x23cd11(0x20f)),_(this,'_hovered',!0x1),_(this,_0x23cd11(0x244)),_(this,_0x23cd11(0x151),''),_(this,_0x23cd11(0x112),_0x23cd11(0x13d)),_(this,_0x23cd11(0x1f7)),(_0x47ccad&&this['setShapeProps'](_0x47ccad),this[_0x23cd11(0xe5)][_0x23cd11(0x27f)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x23cd11(0x199)][_0x23cd11(0x27f)](()=>this[_0x23cd11(0x324)]({'hovered':!0x1})));}['setShapeProps'](_0x4ff3ee){const _0x32f268=_0x381542;var _0x73f6c8,_0x40bda2,_0x51d979,_0x21c50f,_0x1ecc5d,_0x457521;this[_0x32f268(0x20f)]=(_0x73f6c8=_0x4ff3ee[_0x32f268(0x326)])!=null?_0x73f6c8:this[_0x32f268(0x20f)],this['_hovered']=(_0x40bda2=_0x4ff3ee[_0x32f268(0x2df)])!=null?_0x40bda2:this[_0x32f268(0x2fb)],this[_0x32f268(0x244)]=(_0x51d979=_0x4ff3ee[_0x32f268(0x256)])!=null?_0x51d979:this[_0x32f268(0x244)],this[_0x32f268(0x151)]=(_0x21c50f=_0x4ff3ee[_0x32f268(0x26e)])!=null?_0x21c50f:this[_0x32f268(0x151)],this[_0x32f268(0x112)]=(_0x1ecc5d=_0x4ff3ee[_0x32f268(0x21c)])!=null?_0x1ecc5d:this[_0x32f268(0x112)],this[_0x32f268(0x1f7)]=(_0x457521=_0x4ff3ee[_0x32f268(0x24a)])!=null?_0x457521:this[_0x32f268(0x1f7)],this[_0x32f268(0x31a)]({'width':_0x4ff3ee[_0x32f268(0x2bf)],'height':_0x4ff3ee[_0x32f268(0x1ae)]});}['onMouseMove'](_0x9d851f){const _0x2ab6ce=_0x381542,{row:_0x242416,column:_0x272c0b}=_0x9d851f;if(_0x242416>=this[_0x2ab6ce(0x244)][_0x2ab6ce(0x198)]&&_0x242416<=this[_0x2ab6ce(0x244)][_0x2ab6ce(0x1ac)]&&_0x272c0b>=this[_0x2ab6ce(0x244)][_0x2ab6ce(0x102)]&&_0x272c0b<=this[_0x2ab6ce(0x244)][_0x2ab6ce(0x218)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2ab6ce(0x324)]({'hovered':!0x1});}[_0x381542(0x1fd)](_0x2977cf){return!0x1;}[_0x381542(0x31c)](_0x224866){const _0x3fc337=_0x381542;_0x4bafb1['drawWith'](_0x224866,{'width':this[_0x3fc337(0x2bf)],'height':this['height'],'strokeWidth':en,'stroke':this[_0x3fc337(0x20f)],'evented':!0x1,'fill':this[_0x3fc337(0x1f7)]}),this[_0x3fc337(0x2fb)]&&(_0x224866[_0x3fc337(0x20b)](),_0x224866['transform'](0x1,0x0,0x0,0x1,this[_0x3fc337(0x2bf)],this[_0x3fc337(0x112)]===_0x3fc337(0x2aa)?0x0:-Q),Ee[_0x3fc337(0x203)](_0x224866,{'text':this[_0x3fc337(0x151)],'color':this['_color']}),_0x224866[_0x3fc337(0x1ce)]());}}var sn=Object[_0x381542(0x250)],nn=(_0x5e3ff4,_0x4af517,_0x3d94cd,_0x16e052)=>{const _0x4171e1=_0x381542;for(var _0x212275=_0x16e052>0x1?void 0x0:_0x16e052?sn(_0x4af517,_0x3d94cd):_0x4af517,_0x3b1526=_0x5e3ff4[_0x4171e1(0x10b)]-0x1,_0x548621;_0x3b1526>=0x0;_0x3b1526--)(_0x548621=_0x5e3ff4[_0x3b1526])&&(_0x212275=_0x548621(_0x212275)||_0x212275);return _0x212275;},Ne=(_0x4c91e6,_0x32b7ed)=>(_0x3c3396,_0x197b46)=>_0x32b7ed(_0x3c3396,_0x197b46,_0x4c91e6);const rn=0x1389;let ke=class extends _0x37d03e{constructor(_0x3c56b8,_0xea1302,_0x21e6d8,_0x8fa9b8){const _0x11a390=_0x381542;super(),_(this,_0x11a390(0x15c),new Set()),_(this,_0x11a390(0x1e7),null),(this[_0x11a390(0x1a7)]=_0x3c56b8,this[_0x11a390(0x2f6)]=_0xea1302,this[_0x11a390(0x188)]=_0x21e6d8,this[_0x11a390(0x107)]=_0x8fa9b8,this[_0x11a390(0x32b)]());}[_0x381542(0x32b)](){const _0x1f0119=_0x381542;this[_0x1f0119(0x2f6)][_0x1f0119(0x1e8)]['pipe'](_0x5cd275(this['dispose$']),_0x279ad3(_0x168130=>{const _0x1411b9=_0x1f0119;if(_0x168130){const _0x143e4f=_0x168130['sheetId'];return _0x210567(this[_0x1411b9(0x188)]['getCollabCursors$'](this[_0x1411b9(0x1a7)][_0x1411b9(0x2e0)]),this[_0x1411b9(0x107)]['currentTheme$'])[_0x1411b9(0x274)](_0x15499d(([_0x31881e,_0x94498d])=>{const _0x26c7e5=_0x1411b9,_0x29d251=new Map();return _0x31881e[_0x26c7e5(0x15f)]((_0x351980,_0x37aa2c)=>{const _0x1f72c8=_0x26c7e5;if(_0x351980['sheetID']===_0x143e4f){const _0x347796={..._0x351980};_0x347796['color']=this['_themeService'][_0x1f72c8(0x11d)](_0x351980[_0x1f72c8(0x326)]),_0x29d251['set'](_0x37aa2c,_0x347796);}}),{'skeleton':_0x168130,'cursors':_0x29d251};}));}return _0x4e5ebf({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1eb83a,cursors:_0x4c4314})=>{const _0x2d8768=_0x1f0119;this[_0x2d8768(0x1b3)](),_0x1eb83a&&this['_updateCollabCursors'](_0x1eb83a,_0x4c4314);}),this[_0x1f0119(0x2f6)]['currentSkeleton$'][_0x1f0119(0x14a)](_0x1d71ab=>{const _0x84b6eb=_0x1f0119;if(_0x1d71ab==null)return;const {skeleton:_0x23c7af}=_0x1d71ab,{scene:_0x504e98}=this[_0x84b6eb(0x1a7)];_0x504e98[_0x84b6eb(0x1f3)]['subscribeEvent'](_0x575ddf(_0x530688=>{const _0x29ae17=_0x84b6eb;var _0x492e72,_0x23b807;const {offsetX:_0xe5bb94,offsetY:_0x41831a}=_0x530688,{x:_0x152ad4,y:_0x3bb85f}=_0x504e98[_0x29ae17(0x1b6)](_0x5e3011[_0x29ae17(0x21e)]([_0xe5bb94,_0x41831a])),{scaleX:_0x3f372a,scaleY:_0x5acf31}=_0x504e98[_0x29ae17(0x14b)](),_0x52bb24=_0x504e98['getViewport'](_0x1c3b91[_0x29ae17(0x157)]),_0x562970=_0x504e98[_0x29ae17(0x18f)](_0x5e3011[_0x29ae17(0x21e)]([_0x152ad4,_0x3bb85f]),_0x52bb24),_0xc44325=_0x23c7af[_0x29ae17(0x16f)](_0xe5bb94,_0x41831a,_0x3f372a,_0x5acf31,_0x562970);((_0x492e72=this[_0x29ae17(0x1e7)])==null?void 0x0:_0x492e72['column'])===_0xc44325[_0x29ae17(0x129)]&&((_0x23b807=this[_0x29ae17(0x1e7)])==null?void 0x0:_0x23b807[_0x29ae17(0x272)])===_0xc44325['row']||this[_0x29ae17(0x15c)][_0x29ae17(0x15f)](_0x336380=>{const _0x265a62=_0x29ae17;_0x336380[_0x265a62(0x208)](_0xc44325);});},0x64));});}[_0x381542(0x1a1)](_0x56e608,_0x297e86){const _0x2f1596=_0x381542;var _0x1229b6;const _0x180185=(_0x1229b6=this[_0x2f1596(0x2f6)][_0x2f1596(0x297)]())==null?void 0x0:_0x1229b6[_0x2f1596(0x26f)];if(!_0x180185)return;const _0x585053=this[_0x2f1596(0x2b7)]();if(!_0x585053)return;this['_cursors'][_0x2f1596(0x15f)](_0x51625e=>{_0x51625e['makeDirty']();});const {scene:_0x4176cb}=_0x585053,_0x3cad6f=on(Array['from'](_0x297e86['values']()))[_0x2f1596(0x325)](_0x517647=>{const _0x3a2317=_0x2f1596,{color:_0xcc5f3d,range:_0x48329,name:_0x34fc2d,selection:_0x536f7a,sheetID:_0x5b4f5e}=_0x517647,{startColumn:_0x75d8ba,startRow:_0x33fa28,endColumn:_0x1ee92d,endRow:_0xb590d4}=_0x48329,_0x18ed0b=_0x52458d(_0x33fa28,_0x75d8ba,_0x4176cb,_0x180185),_0x2cc6d9=_0x52458d(_0xb590d4,_0x1ee92d,_0x4176cb,_0x180185),{columnHeaderHeightAndMarginTop:_0x5bbbd9}=_0x180185,{startX:_0x5bc421,startY:_0x353d41}=_0x18ed0b,{endX:_0x25edde,endY:_0x39016d}=_0x2cc6d9,_0x6096fc=_0x25edde-_0x5bc421,_0x5902b5=_0x39016d-_0x353d41,_0x1feadc={'labelPosition':_0x353d41-_0x5bbbd9>=Q?_0x3a2317(0x13d):'bottom','sheetID':_0x5b4f5e,'range':_0x48329,'color':_0xcc5f3d,'name':_0x34fc2d,'selection':_0x536f7a,'left':_0x5bc421,'top':_0x353d41,'width':_0x6096fc,'height':_0x5902b5,'evented':!0x1,'zIndex':rn};return new tn(_0x34fc2d,_0x1feadc);});_0x4176cb[_0x2f1596(0x1a3)](_0x3cad6f,qi),this['_cursors']=new Set(_0x3cad6f);}[_0x381542(0x1b3)](){const _0x3e40f4=_0x381542;var _0x2a0b84;(_0x2a0b84=this[_0x3e40f4(0x15c)])==null||_0x2a0b84[_0x3e40f4(0x15f)](_0x190f0c=>_0x190f0c[_0x3e40f4(0x122)]());}['_getSheetObject'](){const _0x112535=_0x381542;return _0x182cab(this['_context'][_0x112535(0x304)],this['_context']);}};ke=nn([Ne(0x1,_0x2ef654(_0x1d5d49)),Ne(0x2,_0x2ef654(H)),Ne(0x3,_0x2ef654(_0x487580))],ke);function on(_0x4a538b){const _0xdf7f66=_0x381542,_0x4959ba=new Map();return _0x4a538b['forEach'](_0x4619b4=>{const _0x4f2489=_0x563f;if(_0x4959ba[_0x4f2489(0x2d6)](_0x4619b4[_0x4f2489(0x205)])){const _0x1ddc43=_0x4959ba[_0x4f2489(0x2d4)](_0x4619b4[_0x4f2489(0x205)]);_0x1ddc43[_0x4f2489(0x26e)]+=',\x20'+_0x4619b4['name'];}else _0x4959ba[_0x4f2489(0x10e)](_0x4619b4[_0x4f2489(0x205)],_0x4619b4);}),Array['from'](_0x4959ba[_0xdf7f66(0x1fe)]());}var an=Object[_0x381542(0x250)],cn=(_0x4864ff,_0x20cee0,_0xf2effc,_0x471b2b)=>{const _0x55a73c=_0x381542;for(var _0x721495=_0x471b2b>0x1?void 0x0:_0x471b2b?an(_0x20cee0,_0xf2effc):_0x20cee0,_0x4acb2c=_0x4864ff[_0x55a73c(0x10b)]-0x1,_0x2105a3;_0x4acb2c>=0x0;_0x4acb2c--)(_0x2105a3=_0x4864ff[_0x4acb2c])&&(_0x721495=_0x2105a3(_0x721495)||_0x721495);return _0x721495;},F=(_0x539ac4,_0x157467)=>(_0x1c9244,_0x21714c)=>_0x157467(_0x1c9244,_0x21714c,_0x539ac4);let _e=class extends _0x282063{constructor(_0x77530f,_0x2b31aa,_0x1a902a,_0x4122b8,_0x55d10f,_0x2943aa){const _0x38a472=_0x381542;super(),this['_beforeCloseService']=_0x77530f,this[_0x38a472(0x121)]=_0x2b31aa,this[_0x38a472(0x2f5)]=_0x1a902a,this[_0x38a472(0x1b4)]=_0x4122b8,this[_0x38a472(0x307)]=_0x55d10f,this[_0x38a472(0x319)]=_0x2943aa,this[_0x38a472(0x30a)](),this[_0x38a472(0xe9)]();}[_0x381542(0x30a)](){const _0x50f877=_0x381542;this[_0x50f877(0x306)](this[_0x50f877(0x237)][_0x50f877(0xe8)](()=>{const _0x507a44=_0x50f877;if(this[_0x507a44(0x121)][_0x507a44(0x31e)][_0x507a44(0x1a6)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x381542(0xe9)](){const _0x2d62b5=_0x381542;this['disposeWithMe'](this[_0x2d62b5(0x2f5)][_0x2d62b5(0x1df)][_0x2d62b5(0x14a)](_0x4eb393=>{const _0x29b31b=_0x2d62b5;_0x4eb393['id']===_0x2c037b[_0x29b31b(0x267)]&&this[_0x29b31b(0x1b4)]['show']({'type':_0x3f469b[_0x29b31b(0x1de)],'content':this[_0x29b31b(0x319)]['t'](_0x29b31b(0x2dd))}),_0x4eb393['id']===_0x2c037b[_0x29b31b(0x2da)]&&this[_0x29b31b(0x1b4)][_0x29b31b(0x249)]({'type':_0x3f469b[_0x29b31b(0x1de)],'content':this[_0x29b31b(0x319)]['t'](_0x29b31b(0x2d2))}),_0x4eb393['id']===_0x2c037b['PERMISSION_DENIED']&&this[_0x29b31b(0x307)]['show']({'title':this[_0x29b31b(0x319)]['t'](_0x29b31b(0x23b)),'content':this['_localeService']['t'](_0x29b31b(0x1b5)),'type':_0x29b31b(0x21a),'duration':0x0}),_0x4eb393['id']===_0x2c037b['CONFLICT']&&this['_messageService']['show']({'type':_0x3f469b['Error'],'content':this['_localeService']['t'](_0x29b31b(0x2d2))+'('+_0x4eb393[_0x29b31b(0x305)]+')'}),_0x4eb393['id']===_0x2c037b[_0x29b31b(0x2af)]&&this[_0x29b31b(0x1b4)][_0x29b31b(0x249)]({'type':_0x3f469b['Warning'],'content':this[_0x29b31b(0x319)]['t'](_0x4eb393[_0x29b31b(0x305)]||'')}),_0x4eb393['id']===_0x2c037b[_0x29b31b(0x247)]&&this[_0x29b31b(0x1b4)][_0x29b31b(0x249)]({'type':_0x3f469b[_0x29b31b(0x1de)],'content':this[_0x29b31b(0x319)]['t'](_0x29b31b(0x11f))}),_0x4eb393['id']===_0x2c037b[_0x29b31b(0x1ca)]&&this['_messageService'][_0x29b31b(0x249)]({'type':_0x3f469b[_0x29b31b(0x2e8)],'content':this[_0x29b31b(0x319)]['t'](_0x29b31b(0x115))}),_0x4eb393['id']===_0x2c037b[_0x29b31b(0x239)]&&this[_0x29b31b(0x1b4)][_0x29b31b(0x249)]({'type':_0x3f469b[_0x29b31b(0x2e8)],'content':this[_0x29b31b(0x319)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x38d930),F(0x1,_0x2f7e0d),F(0x2,_0x2ef654(_0xe64e8f)),F(0x3,_0x37c01f),F(0x4,_0x557674),F(0x5,_0x2ef654(_0x726278))],_e);var _n=Object[_0x381542(0x250)],ln=(_0x2c6e0e,_0x1c88d6,_0x7cd064,_0x591856)=>{for(var _0x574007=_0x591856>0x1?void 0x0:_0x591856?_n(_0x1c88d6,_0x7cd064):_0x1c88d6,_0x1271e5=_0x2c6e0e['length']-0x1,_0x59c117;_0x1271e5>=0x0;_0x1271e5--)(_0x59c117=_0x2c6e0e[_0x1271e5])&&(_0x574007=_0x59c117(_0x574007)||_0x574007);return _0x574007;},ne=(_0x1581dd,_0x308346)=>(_0x55a33b,_0x2dcd56)=>_0x308346(_0x55a33b,_0x2dcd56,_0x1581dd);let le=class extends _0x282063{constructor(_0x47d711,_0x2c7cdf,_0x29b016,_0x460a35){const _0xd05627=_0x381542;super(),_(this,'_memberID'),(this[_0xd05627(0x2f1)]=_0x47d711,this[_0xd05627(0x1c4)]=_0x2c7cdf,this[_0xd05627(0x2a7)]=_0x29b016,this[_0xd05627(0x200)]=_0x460a35,this['_init']());}[_0x381542(0x32b)](){const _0x5c97df=_0x381542;this[_0x5c97df(0x2fc)](),this[_0x5c97df(0x1b9)](),this['_monkeyPatchLogService'](),this['_initUserListener']();}[_0x381542(0x27b)](){const _0x2a1ad0=_0x381542;this[_0x2a1ad0(0x306)](this[_0x2a1ad0(0x200)][_0x2a1ad0(0x110)][_0x2a1ad0(0x14a)](_0x2c7f55=>{const _0x1b7489=_0x2a1ad0;this['_memberID']=_0x2c7f55==null?void 0x0:_0x2c7f55[_0x1b7489(0x235)];}));}[_0x381542(0x2fc)](){const _0xb34f31=_0x381542,_0x20530d=_0x547cd5=>{const _0x439cdc=_0x563f;var _0x55b851;this[_0x439cdc(0x19b)](_0x439cdc(0x21a),_0x439cdc(0x2c8)+_0x547cd5['message']+'\x20at\x20'+_0x547cd5[_0x439cdc(0x323)]+':'+_0x547cd5[_0x439cdc(0x289)]+':'+_0x547cd5[_0x439cdc(0x212)]+'\x0a'+(((_0x55b851=_0x547cd5[_0x439cdc(0x21a)])==null?void 0x0:_0x55b851[_0x439cdc(0x18c)])||''));};window['addEventListener'](_0xb34f31(0x21a),_0x20530d),this[_0xb34f31(0x306)](()=>{window['removeEventListener']('error',_0x20530d);});}[_0x381542(0x1b9)](){const _0x51afae=_0x381542,_0x1468b7=_0xee60bc=>{const _0x2f64aa=_0x563f;this['_uploadLog'](_0x2f64aa(0x21a),_0x2f64aa(0x2cb)+_0xee60bc['reason']);};window[_0x51afae(0x103)]('unhandledrejection',_0x1468b7),this[_0x51afae(0x306)](()=>{const _0x21a999=_0x51afae;window['removeEventListener'](_0x21a999(0x116),_0x1468b7);});}['_monkeyPatchLogService'](){const _0x343fe5=_0x381542,_0x5ae871=this[_0x343fe5(0x2a7)][_0x343fe5(0x21a)][_0x343fe5(0x2a8)](this['_logService']);this[_0x343fe5(0x2a7)]['error']=(..._0x1bb26f)=>{const _0x5ae5ae=_0x343fe5,_0x4e1867=_0x1bb26f['map'](_0x1b53b6=>_0x1b53b6 instanceof Error?_0x1b53b6[_0x5ae5ae(0x2e1)]+'\x0a'+_0x1b53b6[_0x5ae5ae(0x18c)]:String(_0x1b53b6))[_0x5ae5ae(0x22e)]('\x20');this[_0x5ae5ae(0x19b)](_0x5ae5ae(0x21a),'[LogService\x20Error]:\x20'+_0x4e1867),_0x5ae871(..._0x1bb26f);},this[_0x343fe5(0x306)](()=>{const _0x102919=_0x343fe5;this[_0x102919(0x2a7)][_0x102919(0x21a)]=_0x5ae871;});}[_0x381542(0x19b)](_0x22ddc6,_0xb4f584){const _0x32b408=_0x381542;try{const _0x383599={'userId':this[_0x32b408(0x1fa)],'logLabel':_0x22ddc6,'content':_0xb4f584};this[_0x32b408(0x1c4)][_0x32b408(0x286)](_0x32b408(0x126),{'body':_0x383599})[_0x32b408(0x11e)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2ef654(_0x43877d)),ne(0x1,_0x2ef654(_0x57a0f4)),ne(0x2,_0x4c5a8a),ne(0x3,_0x2ef654(_0x22b01b))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x381542(0x250)],dn=(_0x3fbe98,_0xa8be85,_0x166e25,_0x93c7f3)=>{const _0x272630=_0x381542;for(var _0x820a18=_0x93c7f3>0x1?void 0x0:_0x93c7f3?un(_0xa8be85,_0x166e25):_0xa8be85,_0x2388fe=_0x3fbe98[_0x272630(0x10b)]-0x1,_0x4d1b7c;_0x2388fe>=0x0;_0x2388fe--)(_0x4d1b7c=_0x3fbe98[_0x2388fe])&&(_0x820a18=_0x4d1b7c(_0x820a18)||_0x820a18);return _0x820a18;},lt=(_0x454987,_0x1bdf96)=>(_0x2692f9,_0x138d37)=>_0x1bdf96(_0x2692f9,_0x138d37,_0x454987);let he=class{constructor(_0x30c148,_0x54f783){const _0x401676=_0x381542;this[_0x401676(0x23a)]=_0x30c148,this[_0x401676(0x1d3)]=_0x54f783;}[_0x381542(0x2dc)](_0xc44814){const _0x531b26=_0x381542;this[_0x531b26(0x2b5)](_0xc44814),this[_0x531b26(0x26c)](_0xc44814);}[_0x381542(0x217)](_0xa28e10){const _0x366ef8=_0x381542,{unitID:_0x502704}=_0xa28e10,_0x4c462d=this['_renderManagerService'][_0x366ef8(0x1c0)](_0x502704)[_0x366ef8(0xf1)](_0x415c90),{redoCache:_0x3a7583}=_0x4c462d['getUndoRedoMutationParamsCache']();if(_0x3a7583[_0x366ef8(0x10b)]===0x0)return _0xa28e10;let _0x197ff7=_0x2c60fa[_0x366ef8(0x2fd)](_0xa28e10['mutations'][0x0]);for(let _0x15d5c5=0x0;_0x15d5c5<_0x3a7583['length'];_0x15d5c5++){const _0x1214fa={'id':_0x366ef8(0x26d),'params':{..._0x3a7583[_0x15d5c5]}},_0x47c868=this['_transformService'][_0x366ef8(0x1f2)](_0x197ff7,_0x1214fa,!0x1);if(_0x426e81(_0x47c868))throw _0x47c868[_0x366ef8(0x21a)];_0x197ff7=_0x47c868['m1Prime'];}return{..._0x2c60fa[_0x366ef8(0x2fd)](_0xa28e10),'mutations':[_0x197ff7]};}[_0x381542(0x2b5)](_0x5254b7){const _0x295b4f=_0x381542,{unitID:_0x487a4e}=_0x5254b7,_0x3637f5=this['_renderManagerService'][_0x295b4f(0x1c0)](_0x487a4e)['with'](_0x415c90),{undoCache:_0x4371c7,redoCache:_0x30fbd0}=_0x3637f5['getUndoRedoMutationParamsCache']();if(_0x4371c7[_0x295b4f(0x10b)]===0x0||_0x30fbd0[_0x295b4f(0x10b)]===0x0)return;const _0x261986=[],_0x111e1d=[];let _0x43f3cd=_0x2c60fa[_0x295b4f(0x2fd)](_0x5254b7['mutations'][0x0]),_0xb0308b=_0x2c60fa[_0x295b4f(0x2fd)](_0x5254b7[_0x295b4f(0x136)][0x0]);for(let _0x3dc5ea=_0x4371c7['length']-0x1;_0x3dc5ea>=0x0;_0x3dc5ea--){const _0x298f54={'id':_0x295b4f(0x26d),'params':{..._0x4371c7[_0x3dc5ea]}},_0x1822d1={'id':_0x295b4f(0x26d),'params':{..._0x30fbd0[_0x3dc5ea]}},_0x1f8472=this[_0x295b4f(0x23a)][_0x295b4f(0x1f2)](_0x43f3cd,_0x298f54,!0x1),_0x385983=this[_0x295b4f(0x23a)][_0x295b4f(0x1f2)](_0xb0308b,_0x1822d1,!0x1);if(_0x426e81(_0x1f8472))throw _0x1f8472[_0x295b4f(0x21a)];if(_0x426e81(_0x385983))throw _0x385983[_0x295b4f(0x21a)];_0x261986[_0x295b4f(0x128)](_0x1f8472[_0x295b4f(0x282)]['params']),_0x111e1d[_0x295b4f(0x128)](_0x385983['m2Prime'][_0x295b4f(0x2ea)]),_0x43f3cd=_0x1f8472[_0x295b4f(0xf9)],_0xb0308b=_0x385983['m1Prime'];}_0x3637f5['setUndoRedoMutationParamsCache']({'undoCache':_0x261986,'redoCache':_0x111e1d});}[_0x381542(0x26c)](_0x35fcd7){const _0x20197a=_0x381542,{unitID:_0x3958e0}=_0x35fcd7,_0x3a84e7=this[_0x20197a(0x1d3)]['getRenderById'](_0x3958e0)[_0x20197a(0xf1)](_0x415c90),_0x4cd8f1=_0x3a84e7['getActiveRange']();if(_0x4cd8f1==null)return;const _0x4ab387=[{'id':_0x20197a(0x26d),'params':{'unitId':_0x35fcd7[_0x20197a(0x1ab)],'actions':null,'textRanges':[_0x4cd8f1]}}],_0x194d7c=this['_transformService'][_0x20197a(0x146)](_0x35fcd7,_0x4ab387);if(!_0x5707d8(_0x194d7c))throw _0x194d7c[_0x20197a(0x21a)];const _0xcab0c6=_0x194d7c[_0x20197a(0x282)][0x0][_0x20197a(0x2ea)]['textRanges'];Array[_0x20197a(0x223)](_0xcab0c6)&&_0xcab0c6[_0x20197a(0x10b)]&&_0x3a84e7['setActiveRange'](_0xcab0c6[0x0]);}};he=dn([lt(0x0,_0x471770),lt(0x1,_0x4ca29f)],he);var Sn=Object[_0x381542(0x250)],mn=(_0x1cfe9d,_0x54cb16,_0x57a6bf,_0x212a0f)=>{const _0x516829=_0x381542;for(var _0x35304d=_0x212a0f>0x1?void 0x0:_0x212a0f?Sn(_0x54cb16,_0x57a6bf):_0x54cb16,_0xb80919=_0x1cfe9d[_0x516829(0x10b)]-0x1,_0x2254de;_0xb80919>=0x0;_0xb80919--)(_0x2254de=_0x1cfe9d[_0xb80919])&&(_0x35304d=_0x2254de(_0x35304d)||_0x35304d);return _0x35304d;},Le=(_0x1613cd,_0x429b41)=>(_0x1de906,_0xeb91cf)=>_0x429b41(_0x1de906,_0xeb91cf,_0x1613cd);let ue=class{constructor(_0x2af271,_0x559c3a,_0x392b7a){const _0xe76fa5=_0x381542;this[_0xe76fa5(0x2f1)]=_0x2af271,this[_0xe76fa5(0x23a)]=_0x559c3a,this['_docStateChangeManagerService']=_0x392b7a;}[_0x381542(0x19d)](_0x4bf9d4){const _0x264eee=_0x381542;this[_0x264eee(0x1c5)](_0x4bf9d4);}[_0x381542(0x217)](_0x245fe2){const _0x1514df=_0x381542,{unitID:_0x569c98}=_0x245fe2,{collaboration:_0x4e8b0e}=this[_0x1514df(0x141)][_0x1514df(0x22d)](_0x569c98);if(_0x4e8b0e['length']===0x0)return _0x245fe2;let _0xe48a89=_0x2c60fa[_0x1514df(0x2fd)](_0x245fe2['mutations'][0x0]);for(let _0xb8b99d=0x0;_0xb8b99d<_0x4e8b0e[_0x1514df(0x10b)];_0xb8b99d++){const _0x126a78={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e8b0e[_0xb8b99d][_0x1514df(0x2e0)],..._0x4e8b0e[_0xb8b99d][_0x1514df(0x220)]}},_0x385dc5=this[_0x1514df(0x23a)][_0x1514df(0x1f2)](_0xe48a89,_0x126a78,!0x1);if(_0x426e81(_0x385dc5))throw _0x385dc5[_0x1514df(0x21a)];_0xe48a89=_0x385dc5[_0x1514df(0xf9)];}return{..._0x2c60fa[_0x1514df(0x2fd)](_0x245fe2),'mutations':[_0xe48a89]};}[_0x381542(0x1c5)](_0xf3bd6d){const _0x1f5b60=_0x381542,{unitID:_0x53e4b4}=_0xf3bd6d,{history:_0x5c8061,collaboration:_0x181bb0}=this['_docStateChangeManagerService'][_0x1f5b60(0x22d)](_0x53e4b4);if(_0x5c8061['length']===0x0&&_0x181bb0[_0x1f5b60(0x10b)]===0x0)return;const _0x2835ed=[],_0x53ecf0=[];let _0x12a326=_0x2c60fa[_0x1f5b60(0x2fd)](_0xf3bd6d['mutations'][0x0]),_0x14f905=_0x2c60fa[_0x1f5b60(0x2fd)](_0xf3bd6d['mutations'][0x0]);for(let _0x4b97b6=_0x5c8061[_0x1f5b60(0x10b)]-0x1;_0x4b97b6>=0x0;_0x4b97b6--){const _0x1f8739={'id':_0x1f5b60(0x26d),'params':{'unitId':_0x5c8061[_0x4b97b6][_0x1f5b60(0x2e0)],..._0x5c8061[_0x4b97b6][_0x1f5b60(0x219)]}},_0xd1fd6d={'id':_0x1f5b60(0x26d),'params':{'unitId':_0x5c8061[_0x4b97b6]['unitId'],..._0x5c8061[_0x4b97b6]['redoState']}},_0x52133b=this[_0x1f5b60(0x23a)][_0x1f5b60(0x1f2)](_0x12a326,_0x1f8739,!0x1),_0x4f2861=this['_transformService'][_0x1f5b60(0x1f2)](_0x14f905,_0xd1fd6d,!0x1);if(_0x426e81(_0x52133b))throw _0x52133b[_0x1f5b60(0x21a)];if(_0x426e81(_0x4f2861))throw _0x4f2861[_0x1f5b60(0x21a)];_0x2835ed[_0x1f5b60(0x128)]({..._0x5c8061[_0x4b97b6],'undoState':_0x52133b[_0x1f5b60(0x282)]['params'],'redoState':_0x4f2861[_0x1f5b60(0x282)]['params']}),_0x12a326=_0x52133b[_0x1f5b60(0xf9)],_0x14f905=_0x4f2861[_0x1f5b60(0xf9)];}_0x12a326=_0x2c60fa[_0x1f5b60(0x2fd)](_0xf3bd6d[_0x1f5b60(0x136)][0x0]),_0x14f905=_0x2c60fa[_0x1f5b60(0x2fd)](_0xf3bd6d[_0x1f5b60(0x136)][0x0]);for(let _0x2c61ec=_0x181bb0['length']-0x1;_0x2c61ec>=0x0;_0x2c61ec--){const _0x3141b2={'id':_0x1f5b60(0x26d),'params':{'unitId':_0x181bb0[_0x2c61ec][_0x1f5b60(0x2e0)],..._0x181bb0[_0x2c61ec][_0x1f5b60(0x219)]}},_0xa06a93={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x181bb0[_0x2c61ec][_0x1f5b60(0x2e0)],..._0x181bb0[_0x2c61ec][_0x1f5b60(0x220)]}},_0xd5822d=this[_0x1f5b60(0x23a)][_0x1f5b60(0x1f2)](_0x12a326,_0x3141b2,!0x1),_0xb26db4=this[_0x1f5b60(0x23a)]['transformMutation'](_0x14f905,_0xa06a93,!0x1);if(_0x426e81(_0xd5822d))throw _0xd5822d[_0x1f5b60(0x21a)];if(_0x426e81(_0xb26db4))throw _0xb26db4[_0x1f5b60(0x21a)];_0x53ecf0[_0x1f5b60(0x128)]({..._0x181bb0[_0x2c61ec],'undoState':_0xd5822d['m2Prime']['params'],'redoState':_0xb26db4[_0x1f5b60(0x282)]['params']}),_0x12a326=_0xd5822d[_0x1f5b60(0xf9)],_0x14f905=_0xb26db4['m1Prime'];}this[_0x1f5b60(0x141)][_0x1f5b60(0x29a)](_0x53e4b4,{'history':_0x2835ed,'collaboration':_0x53ecf0});}};ue=mn([Le(0x0,_0x2ef654(_0x43877d)),Le(0x1,_0x471770),Le(0x2,_0x2ef654(_0x1d195a))],ue);var In=Object[_0x381542(0x250)],fn=(_0x59adcb,_0x2f50e6,_0x33d64f,_0x46027c)=>{const _0x189f59=_0x381542;for(var _0x2e03be=_0x46027c>0x1?void 0x0:_0x46027c?In(_0x2f50e6,_0x33d64f):_0x2f50e6,_0x2f2c82=_0x59adcb[_0x189f59(0x10b)]-0x1,_0x2befca;_0x2f2c82>=0x0;_0x2f2c82--)(_0x2befca=_0x59adcb[_0x2f2c82])&&(_0x2e03be=_0x2befca(_0x2e03be)||_0x2e03be);return _0x2e03be;},ht=(_0x547aeb,_0x54d3c7)=>(_0x56f82a,_0x3bf139)=>_0x54d3c7(_0x56f82a,_0x3bf139,_0x547aeb);let de=class{constructor(_0x1adf65,_0xbdaeba){const _0x339e14=_0x381542;this[_0x339e14(0x2f1)]=_0x1adf65,this[_0x339e14(0x23a)]=_0xbdaeba;}[_0x381542(0x11c)](_0xb3472c){const _0x4d1f51=_0x381542;var _0x49f24c;const _0x15184c=this[_0x4d1f51(0x2f1)][_0x4d1f51(0x2d4)](_0x58bb40),_0x3c3266=(_0x49f24c=_0x15184c[_0x4d1f51(0x1d9)]())!=null?_0x49f24c:[];if(_0x3c3266['length']===0x0)return;const _0x53d62e=_0xb3472c[_0x4d1f51(0x1ab)],_0x2b16ec=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53d62e,'actions':null,'textRanges':_0x3c3266}}],_0x30720b=this[_0x4d1f51(0x23a)]['transformMutationsWithChangeset'](_0xb3472c,_0x2b16ec);if(!_0x5707d8(_0x30720b))throw _0x30720b[_0x4d1f51(0x21a)];const _0x5333c2=_0x30720b['m2Prime'][0x0][_0x4d1f51(0x2ea)][_0x4d1f51(0x23e)];Array[_0x4d1f51(0x223)](_0x5333c2)&&_0x5333c2[_0x4d1f51(0x10b)]&&_0x15184c[_0x4d1f51(0x1e4)](_0x5333c2,{'unitId':_0x53d62e,'subUnitId':_0x53d62e},!0x1);}};de=fn([ht(0x0,_0x2ef654(_0x43877d)),ht(0x1,_0x471770)],de);var gn=Object[_0x381542(0x250)],vn=(_0x299b27,_0xf43bed,_0x5eb7e7,_0x4d3493)=>{for(var _0x1cec99=_0x4d3493>0x1?void 0x0:_0x4d3493?gn(_0xf43bed,_0x5eb7e7):_0xf43bed,_0x2ac4e1=_0x299b27['length']-0x1,_0x3afd9d;_0x2ac4e1>=0x0;_0x2ac4e1--)(_0x3afd9d=_0x299b27[_0x2ac4e1])&&(_0x1cec99=_0x3afd9d(_0x1cec99)||_0x1cec99);return _0x1cec99;},U=(_0x1c8e21,_0x38f01c)=>(_0x3770ba,_0x5dd7bd)=>_0x38f01c(_0x3770ba,_0x5dd7bd,_0x1c8e21);let Se=class extends _0x282063{constructor(_0x18ea05,_0x275904,_0x245101,_0x379292,_0x516c23,_0x4500ce,_0x4c29cb,_0x3df703){const _0x146580=_0x381542;super(),_(this,_0x146580(0x1ea),new _0x2c6ac6(_0x4fcf8b[_0x146580(0x187)])),(this['_docStateChangeManagerService']=_0x18ea05,this[_0x146580(0x142)]=_0x275904,this['_docTransformIMECacheService']=_0x245101,this[_0x146580(0x2c4)]=_0x379292,this[_0x146580(0x2fa)]=_0x516c23,this['_docSyncEditingCollabCursorService']=_0x4500ce,this[_0x146580(0x1b4)]=_0x4c29cb,this[_0x146580(0x319)]=_0x3df703,this[_0x146580(0xe6)]());}[_0x381542(0xe6)](){const _0x3326d0=_0x381542;this['disposeWithMe'](this[_0x3326d0(0x142)][_0x3326d0(0x27c)][_0x3326d0(0x14a)](_0xd492a1=>{const _0x1f9c08=_0x3326d0,_0x239817=this[_0x1f9c08(0x141)]['docStateChange$']['subscribe'](_0x5f20f0=>{const _0x1ff675=_0x1f9c08;if(_0x5f20f0==null)return;const {unitId:_0x4ab194,redoState:_0x4c192d,commandId:_0x10075b}=_0x5f20f0;if(_0x4ab194!==_0xd492a1['unitID'])return;const _0x1dd83a={'id':_0x10075b,'type':_0x233bb2['MUTATION'],'params':{'unitId':_0x4ab194,'actions':_0x4c192d[_0x1ff675(0x173)],'textRanges':null}};_0xd492a1[_0x1ff675(0x236)](_0x1dd83a);});if(_0xd492a1[_0x1f9c08(0x306)](_0x239817),_0xd492a1 instanceof _0x4dec7e){const _0x1c62d5={'onTransformIME':_0x4977a0=>this[_0x1f9c08(0x292)][_0x1f9c08(0x2dc)](_0x4977a0),'onTransformState':_0x101b71=>this[_0x1f9c08(0x2c4)][_0x1f9c08(0x19d)](_0x101b71),'onTransformSelections':_0x152b7c=>this[_0x1f9c08(0x2fa)][_0x1f9c08(0x11c)](_0x152b7c),'onSyncEditingCollabCursor':_0x5c2c5b=>this[_0x1f9c08(0x119)]['syncEditingCollabCursor'](_0x5c2c5b),'onTransformRemoteChangesetByIMECache':_0x259b88=>this[_0x1f9c08(0x292)][_0x1f9c08(0x217)](_0x259b88),'onTransformRemoteChangesetByStateCache':_0x1041e3=>this[_0x1f9c08(0x2c4)][_0x1f9c08(0x217)](_0x1041e3)};_0xd492a1['addHandlerCallback'](_0x1c62d5);}}));}};Se=vn([U(0x0,_0x2ef654(_0x1d195a)),U(0x1,_0x2ef654(_0x3e297d)),U(0x2,_0x2ef654(he)),U(0x3,_0x2ef654(ue)),U(0x4,_0x2ef654(de)),U(0x5,_0x2ef654(ze)),U(0x6,_0x37c01f),U(0x7,_0x2ef654(_0x726278))],Se);var Z=(_0x401050=>(_0x401050[_0x401050[_0x381542(0x2c5)]=0x0]='UNDEFINED',_0x401050[_0x401050['OK']=0x1]='OK',_0x401050[_0x401050[_0x381542(0x257)]=0x2]=_0x381542(0x257),_0x401050[_0x401050[_0x381542(0x1be)]=0x3]=_0x381542(0x1be),_0x401050[_0x401050[_0x381542(0x320)]=0x4]=_0x381542(0x320),_0x401050[_0x401050['UNAUTHENTICATED']=0x5]=_0x381542(0x2f7),_0x401050[_0x401050[_0x381542(0x178)]=0x6]=_0x381542(0x178),_0x401050[_0x401050[_0x381542(0x1a8)]=0x7]=_0x381542(0x1a8),_0x401050[_0x401050[_0x381542(0x180)]=0x8]='TOO_MANY_REQUESTS',_0x401050[_0x401050[_0x381542(0x17b)]=0x9]=_0x381542(0x17b),_0x401050[_0x401050[_0x381542(0x329)]=0xa]=_0x381542(0x329),_0x401050[_0x401050[_0x381542(0x2b9)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x401050[_0x401050[_0x381542(0x1ee)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x401050[_0x401050[_0x381542(0x30d)]=0xd]=_0x381542(0x30d),_0x401050[_0x401050[_0x381542(0x2f2)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x401050[_0x401050[_0x381542(0x124)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x401050[_0x401050[_0x381542(0xf5)]=0x10]=_0x381542(0xf5),_0x401050[_0x401050[_0x381542(0x106)]=0x64]=_0x381542(0x106),_0x401050[_0x401050['ERROR_AGAIN']=0x65]=_0x381542(0x1cf),_0x401050[_0x401050['USER_NOT_FOUND']=0xc9]=_0x381542(0x12d),_0x401050[_0x401050[_0x381542(0x270)]=0xca]=_0x381542(0x270),_0x401050[_0x401050['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x381542(0x2d5),_0x401050[_0x401050['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x381542(0x138),_0x401050[_0x401050[_0x381542(0x12b)]=0x1772]=_0x381542(0x12b),_0x401050[_0x401050[_0x381542(0xfa)]=0x1773]=_0x381542(0xfa),_0x401050[_0x401050[_0x381542(0x2ce)]=0x1b59]=_0x381542(0x2ce),_0x401050[_0x401050[_0x381542(0x185)]=0x1b5a]=_0x381542(0x185),_0x401050[_0x401050[_0x381542(0x2a0)]=0x1b5b]=_0x381542(0x2a0),_0x401050[_0x401050[_0x381542(0x2ef)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x401050[_0x401050[_0x381542(0x1a2)]=0x1b5d]=_0x381542(0x1a2),_0x401050[_0x401050[_0x381542(0x254)]=0x1f41]=_0x381542(0x254),_0x401050[_0x401050['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x381542(0x2c2),_0x401050[_0x401050['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x381542(0x13a),_0x401050[_0x401050[_0x381542(0x2ed)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x401050[_0x401050[_0x381542(0x1f8)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x401050[_0x401050[_0x381542(0x120)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x401050[_0x401050[_0x381542(0x14d)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x401050[_0x401050[_0x381542(0x168)]=0x2712]=_0x381542(0x168),_0x401050[_0x401050[_0x381542(0x2a4)]=0x2713]=_0x381542(0x2a4),_0x401050[_0x401050[_0x381542(0x1a0)]=0x2714]=_0x381542(0x1a0),_0x401050[_0x401050[_0x381542(0x105)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x401050[_0x401050['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x381542(0x153),_0x401050[_0x401050[_0x381542(0x17f)]=0x271c]=_0x381542(0x17f),_0x401050[_0x401050['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x401050[_0x401050[_0x381542(0xf2)]=0x271e]=_0x381542(0xf2),_0x401050[_0x401050[_0x381542(0x12f)]=0x271f]=_0x381542(0x12f),_0x401050[_0x401050[_0x381542(0x27a)]=0x2720]=_0x381542(0x27a),_0x401050[_0x401050[_0x381542(0x303)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x401050[_0x401050[_0x381542(0x2b4)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x401050[_0x401050[_0x381542(0x14c)]=0x2ee2]=_0x381542(0x14c),_0x401050[_0x401050[_0x381542(0x109)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x401050[_0x401050['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x401050[_0x401050[_0x381542(0x2eb)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x401050[_0x401050[_0x381542(0x317)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x401050[_0x401050[_0x381542(0x104)]=0x32ca]=_0x381542(0x104),_0x401050[_0x401050[_0x381542(0x242)]=0x32cb]=_0x381542(0x242),_0x401050[_0x401050[_0x381542(0x149)]=0x36b1]=_0x381542(0x149),_0x401050[_0x401050[_0x381542(0x167)]=0x36b2]=_0x381542(0x167),_0x401050[_0x401050[_0x381542(0x16d)]=0x36b3]=_0x381542(0x16d),_0x401050[_0x401050[_0x381542(0x196)]=0x36b4]=_0x381542(0x196),_0x401050[_0x401050['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x401050[_0x401050['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x381542(0x18a),_0x401050[_0x401050[_0x381542(0x278)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x401050[_0x401050[_0x381542(0x2f8)]=0x37dd]=_0x381542(0x2f8),_0x401050[_0x401050[_0x381542(0x243)]=0x3a99]=_0x381542(0x243),_0x401050[_0x401050[_0x381542(0x1ed)]=0x3a9a]=_0x381542(0x1ed),_0x401050[_0x401050['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x401050[_0x401050[_0x381542(0x195)]=0x3a9c]=_0x381542(0x195),_0x401050[_0x401050[_0x381542(0x133)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x401050[_0x401050['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x381542(0x266),_0x401050[_0x401050['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x401050[_0x401050[_0x381542(0x165)]=0x3e81]=_0x381542(0x165),_0x401050[_0x401050[_0x381542(0x2d9)]=-0x1]=_0x381542(0x2d9),_0x401050))(Z||{});function En(_0x478bb2){const _0x56d754=_0x381542;var _0x48b303,_0x59f27d;const _0x212130=(_0x48b303=_0x478bb2[_0x56d754(0x28e)])==null?void 0x0:_0x48b303['stage'],_0x506894=((_0x59f27d=_0x478bb2[_0x56d754(0x28e)])==null?void 0x0:_0x59f27d[_0x56d754(0x23d)])||0x0;return _0x212130===_0x2d7c4b[_0x56d754(0x2cf)]&&_0x506894>0x0;}function pn(_0x29e882){const _0x30ca72=_0x381542;return _0x29e882[_0x30ca72(0x21f)]===_0x2a85d3['SUCCESS'];}var On=Object[_0x381542(0x250)],Tn=(_0x2c36ca,_0x1ddda8,_0x56a98c,_0x18057b)=>{const _0x555b08=_0x381542;for(var _0x286c61=_0x18057b>0x1?void 0x0:_0x18057b?On(_0x1ddda8,_0x56a98c):_0x1ddda8,_0x30c2f6=_0x2c36ca[_0x555b08(0x10b)]-0x1,_0xe7c8e;_0x30c2f6>=0x0;_0x30c2f6--)(_0xe7c8e=_0x2c36ca[_0x30c2f6])&&(_0x286c61=_0xe7c8e(_0x286c61)||_0x286c61);return _0x286c61;},P=(_0x476e35,_0x330b74)=>(_0x435efc,_0x543597)=>_0x330b74(_0x435efc,_0x543597,_0x476e35);const Cn=_0x381542(0x2a9),Rn=_0x381542(0x233),Dn=_0x381542(0x2ac);let me=class extends _0x282063{constructor(_0x28c6f7,_0x505a07,_0x2d4f67,_0xcc1b3f,_0x408cc4,_0x5e7c6b,_0x43943b){const _0x3eecac=_0x381542;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,'_currentUsage',0x0),_(this,_0x3eecac(0xef),[]),_(this,_0x3eecac(0x12a),0x0),(this[_0x3eecac(0x1b4)]=_0x28c6f7,this[_0x3eecac(0x24f)]=_0x505a07,this[_0x3eecac(0x1a9)]=_0x2d4f67,this[_0x3eecac(0x1c4)]=_0xcc1b3f,this[_0x3eecac(0x301)]=_0x408cc4,this['_logService']=_0x5e7c6b,this[_0x3eecac(0x319)]=_0x43943b,this[_0x3eecac(0x118)]());}['_initCommandInterceptor'](){const _0x493e7b=_0x381542;this['disposeWithMe'](this[_0x493e7b(0x24f)][_0x493e7b(0x255)]((_0x31df6a,_0x52547f)=>{const _0x5f305d=_0x493e7b;var _0x152897;if(_0x31df6a['id']!==_0x27d4aa['id'])return;const _0x4e1c67=_0x31df6a[_0x5f305d(0x2ea)];if(!this['_hasFormulaInDirtyRanges']((_0x152897=_0x4e1c67[_0x5f305d(0x280)])!=null?_0x152897:[]))return;if(!this[_0x5f305d(0x2f4)]())throw this[_0x5f305d(0x190)](_0x31df6a,_0x52547f),this[_0x5f305d(0x159)](),new _0x1f0320();})),this[_0x493e7b(0x306)](this[_0x493e7b(0x24f)][_0x493e7b(0x23f)]((_0x5b9f10,_0x26b1ef)=>{const _0x2f2b9a=_0x493e7b;if(_0x5b9f10['id']!==_0x2f800c['id'])return;const _0x31041d=_0x5b9f10[_0x2f2b9a(0x2ea)];if(En(_0x31041d)){const _0x105282=_0x5d1d29();this[_0x2f2b9a(0xef)]['push'](_0x105282),this[_0x2f2b9a(0x293)](_0x105282);}else{if(pn(_0x31041d)&&this[_0x2f2b9a(0xef)][_0x2f2b9a(0x10b)]>0x0){const _0x381366=this[_0x2f2b9a(0xef)][_0x2f2b9a(0x299)]();this[_0x2f2b9a(0x28b)](_0x381366);}}}));}[_0x381542(0x122)](){const _0x3e0aff=_0x381542;super[_0x3e0aff(0x122)](),this[_0x3e0aff(0x230)](),this[_0x3e0aff(0xef)]=[],this[_0x3e0aff(0x2c9)]=0x0,this[_0x3e0aff(0x114)]=0x0,this[_0x3e0aff(0x12a)]=0x0;}async[_0x381542(0x190)](_0x53a171,_0x220a27){const _0x107a2a=_0x381542;for(let _0x224d5e=0x0;_0x224d5e<0x1e;_0x224d5e++)try{if(await this[_0x107a2a(0x192)](),this[_0x107a2a(0x2f4)]()){this[_0x107a2a(0x2f0)](_0x53a171,_0x220a27),this[_0x107a2a(0x1b4)][_0x107a2a(0x249)]({'content':this[_0x107a2a(0x319)]['t']('formula.calculation.started'),'type':_0x3f469b[_0x107a2a(0x263)]});return;}await new Promise(_0x93386c=>{this['_pollingInterval']=window['setTimeout'](_0x93386c,0x3e8);});}catch(_0x2d969e){this['_logService'][_0x107a2a(0x21a)](_0x2d969e);}this[_0x107a2a(0x1b4)][_0x107a2a(0x249)]({'content':this[_0x107a2a(0x319)]['t'](_0x107a2a(0x194)),'type':_0x3f469b[_0x107a2a(0x2e8)]});}[_0x381542(0x2f0)](_0x39297c,_0x1249ff){const _0x1a1a23=_0x381542;try{this[_0x1a1a23(0x24f)][_0x1a1a23(0x2e6)](_0x39297c['id'],_0x39297c[_0x1a1a23(0x2ea)],_0x1249ff);}catch(_0x5d1c6f){this['_logService'][_0x1a1a23(0x21a)](_0x5d1c6f);}}[_0x381542(0x2d0)](_0x177159,_0x46c1e1){const _0x4904f2=_0x381542;_0x46c1e1<this['_lastResponseTimestamp']||(this[_0x4904f2(0x12a)]=_0x46c1e1,this[_0x4904f2(0x114)]=Number[_0x4904f2(0x275)](_0x177159[_0x4904f2(0x137)]),this[_0x4904f2(0x2c9)]=Number[_0x4904f2(0x275)](_0x177159[_0x4904f2(0x328)]));}async[_0x381542(0x293)](_0x5baea7){const _0x2d061e=_0x381542;var _0x364516,_0x360ec4;const _0x52987a=Date[_0x2d061e(0x123)]();try{const _0x70e8e1=((_0x364516=this[_0x2d061e(0x1a9)][_0x2d061e(0x311)](_0x361fc5))==null?void 0x0:_0x364516[_0x2d061e(0x227)])||Rn,_0x5c2d77=(await this[_0x2d061e(0x1c4)][_0x2d061e(0x286)](_0x70e8e1,{'body':JSON[_0x2d061e(0x1db)]({'taskId':_0x5baea7})}))['body'];if(((_0x360ec4=_0x5c2d77[_0x2d061e(0x21a)])==null?void 0x0:_0x360ec4['code'])!==Z['OK'])return;this[_0x2d061e(0x2d0)](_0x5c2d77[_0x2d061e(0x2a2)],_0x52987a);}catch(_0x381d84){this[_0x2d061e(0x2a7)][_0x2d061e(0x21a)](_0x381d84);}}async[_0x381542(0x192)](_0xc873dd){const _0xb14828=_0x381542;var _0x324824,_0x583295;const _0x1d2860=Date['now']();try{const _0x563dba=((_0x324824=this[_0xb14828(0x1a9)][_0xb14828(0x311)](_0x361fc5))==null?void 0x0:_0x324824[_0xb14828(0x154)])||Cn,_0x27b9de=_0xc873dd?_0x563dba+_0xb14828(0x2db)+encodeURIComponent(_0xc873dd):_0x563dba,_0x2d4e27=(await this['_httpService'][_0xb14828(0x2d4)](_0x27b9de))[_0xb14828(0x10c)];if(((_0x583295=_0x2d4e27['error'])==null?void 0x0:_0x583295[_0xb14828(0x294)])!==Z['OK'])return;this[_0xb14828(0x2d0)](_0x2d4e27['limitInfo'],_0x1d2860);}catch(_0x23f63f){this[_0xb14828(0x2a7)][_0xb14828(0x21a)](_0x23f63f);}}async[_0x381542(0x28b)](_0x2256fc){const _0xbcdd5c=_0x381542;var _0x5e0a1e,_0x26bde0;const _0x27e460=Date[_0xbcdd5c(0x123)]();try{const _0xff430e=((_0x5e0a1e=this[_0xbcdd5c(0x1a9)][_0xbcdd5c(0x311)](_0x361fc5))==null?void 0x0:_0x5e0a1e[_0xbcdd5c(0x271)])||Dn,_0x5d7bc8=(await this[_0xbcdd5c(0x1c4)][_0xbcdd5c(0x286)](_0xff430e,{'body':JSON[_0xbcdd5c(0x1db)]({'taskId':_0x2256fc})}))[_0xbcdd5c(0x10c)];if(((_0x26bde0=_0x5d7bc8[_0xbcdd5c(0x21a)])==null?void 0x0:_0x26bde0[_0xbcdd5c(0x294)])!==Z['OK'])return;this[_0xbcdd5c(0x2d0)](_0x5d7bc8[_0xbcdd5c(0x2a2)],_0x27e460);}catch(_0x304f97){this[_0xbcdd5c(0x2a7)][_0xbcdd5c(0x21a)](_0x304f97);}}[_0x381542(0x2f4)](){const _0x48e857=_0x381542;return this[_0x48e857(0x114)]===0x0?!0x0:this[_0x48e857(0x114)]-this[_0x48e857(0x2c9)]>0x0;}[_0x381542(0x230)](){const _0x44c681=_0x381542;this['_pollingInterval']&&(clearTimeout(this[_0x44c681(0x29d)]),this[_0x44c681(0x29d)]=null);}[_0x381542(0x159)](){const _0x477aa0=_0x381542;this['_messageService'][_0x477aa0(0x249)]({'content':this[_0x477aa0(0x319)]['t']('formula.calculation.waiting'),'type':_0x3f469b[_0x477aa0(0x300)]});}['_hasFormulaInDirtyRanges'](_0x145fca){const _0x31585d=_0x381542;for(const _0x1b99e5 of _0x145fca){const {unitId:_0x50a794,sheetId:_0x18c822,range:_0x4fcae4}=_0x1b99e5,_0xada3a3=this[_0x31585d(0x301)][_0x31585d(0x1bf)](_0x50a794);if(!_0xada3a3)continue;const _0x178b43=_0xada3a3['getSheetBySheetId'](_0x18c822);if(!_0x178b43)continue;const _0x50dce9=_0x178b43[_0x31585d(0x258)]();for(let _0x5d7240=_0x4fcae4[_0x31585d(0x198)];_0x5d7240<=_0x4fcae4[_0x31585d(0x1ac)];_0x5d7240++)for(let _0x4a2c64=_0x4fcae4['startColumn'];_0x4a2c64<=_0x4fcae4[_0x31585d(0x218)];_0x4a2c64++){const _0x3b346e=_0x50dce9['getValue'](_0x5d7240,_0x4a2c64);if(_0x3b346e&&(_0x21774c(_0x3b346e['f'])||_0x632ccc(_0x3b346e['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x2ef654(_0x37c01f)),P(0x1,_0x478bd4),P(0x2,_0x1fcde3),P(0x3,_0x2ef654(_0x57a0f4)),P(0x4,_0x143643),P(0x5,_0x4c5a8a),P(0x6,_0x2ef654(_0x726278))],me);var bn=Object[_0x381542(0x250)],Nn=(_0x633a96,_0x439fcf,_0x4f8af5,_0x24a305)=>{for(var _0x339237=_0x24a305>0x1?void 0x0:_0x24a305?bn(_0x439fcf,_0x4f8af5):_0x439fcf,_0x2a67a0=_0x633a96['length']-0x1,_0xa31f73;_0x2a67a0>=0x0;_0x2a67a0--)(_0xa31f73=_0x633a96[_0x2a67a0])&&(_0x339237=_0xa31f73(_0x339237)||_0x339237);return _0x339237;},Ue=(_0x1b0d74,_0x433dca)=>(_0x489748,_0x52411a)=>_0x433dca(_0x489748,_0x52411a,_0x1b0d74);let He=class extends _0x282063{constructor(_0x32af15,_0x523763,_0x2df3dd){const _0x2e3f18=_0x381542;super(),_(this,'_cachedData',new Map()),_(this,_0x2e3f18(0x2ad),new Map()),_(this,_0x2e3f18(0x14e),!0x1),(this[_0x2e3f18(0x1a9)]=_0x32af15,this[_0x2e3f18(0x1d8)]=_0x523763,this[_0x2e3f18(0x1ba)]=_0x2df3dd);}['disableLocalCache'](){const _0x440a31=_0x381542;this[_0x440a31(0x14e)]=!0x0;}[_0x381542(0xfb)](){this['_disabled']=!0x1;}get[_0x381542(0x31e)](){const _0x56a412=_0x381542;return this[_0x56a412(0x2ad)];}['dispose'](){const _0x51c05b=_0x381542;this[_0x51c05b(0x248)]()[_0x51c05b(0x11b)](()=>super['dispose']());}async[_0x381542(0x14f)](_0x748843){const _0xe1bf7d=_0x381542;return this[_0xe1bf7d(0x14e)]?null:this[_0xe1bf7d(0x1d8)][_0xe1bf7d(0x176)](_0x4dd65c(_0x748843));}async['saveOfflineData'](_0x3ff58f,_0x15d749){const _0x27db53=_0x381542;return!!this[_0x27db53(0x1d8)]['setItem'](_0x3ff58f,_0x15d749);}[_0x381542(0x1dd)](_0x1c3b56,_0x60e5c3,_0x2fedc9,_0x116546){const _0x4b1165=_0x381542,_0x65a89e=this['_revisionService'][_0x4b1165(0x241)](_0x1c3b56);this[_0x4b1165(0xfe)][_0x4b1165(0x10e)](_0x1c3b56,{'unitID':_0x1c3b56,'type':_0x60e5c3,'awaitingChangeset':_0x2fedc9,'mutations':_0x116546,'rev':_0x65a89e}),this[_0x4b1165(0x2ad)][_0x4b1165(0x2d6)](_0x1c3b56)||this[_0x4b1165(0x291)](_0x1c3b56);}['_scheduleSaving'](_0x1b09d4){const _0x522c32=_0x381542,_0x2d6ead=this[_0x522c32(0x17d)]();_0x2d6ead===0x0?this[_0x522c32(0x1e2)](_0x1b09d4):this[_0x522c32(0x2ad)]['set'](_0x1b09d4,setTimeout(()=>this[_0x522c32(0x1e2)](_0x1b09d4),_0x2d6ead));}[_0x381542(0x17d)](){const _0x2d7785=_0x381542;var _0x1a58e;return(_0x1a58e=this[_0x2d7785(0x1a9)][_0x2d7785(0x311)](_0x3713b6))!=null?_0x1a58e:_0xaf724e;}[_0x381542(0x1e2)](_0x2e2d52){const _0x197266=_0x381542,_0x3f6370=this['_saveTaskMap'][_0x197266(0x2d4)](_0x2e2d52);return _0x3f6370!==void 0x0&&window[_0x197266(0x16b)](_0x3f6370),this[_0x197266(0x1d8)][_0x197266(0x1c1)](_0x4dd65c(_0x2e2d52),this['_cachedData']['get'](_0x2e2d52))[_0x197266(0x11b)](()=>this['_saveTaskMap'][_0x197266(0x2f9)](_0x2e2d52));}async[_0x381542(0x248)](){const _0x29a617=_0x381542,_0x14e978=[];this[_0x29a617(0x2ad)]['forEach']((_0x2715e3,_0x2621b1)=>{const _0x318d8e=_0x29a617;window['clearTimeout'](_0x2715e3),_0x14e978[_0x318d8e(0x2e5)](this[_0x318d8e(0x1e2)](_0x2621b1)[_0x318d8e(0x11b)](()=>{this['_saveTaskMap']['delete'](_0x2621b1);}));}),await Promise[_0x29a617(0x132)](_0x14e978);}};He=Nn([Ue(0x0,_0x1fcde3),Ue(0x1,_0x4ea42f),Ue(0x2,_0x2ef654(_0x182c7e))],He);class Ln extends _0x37d03e{constructor(){const _0x107620=_0x381542;super(),_(this,_0x107620(0x2e7)),this[_0x107620(0x2e7)]=_0x21cf88(window,_0x107620(0x215))[_0x107620(0x274)](_0xb33a09(this[_0x107620(0x2be)]),_0x454f2f(0x1),_0x445832(void 0x0));}[_0x381542(0x2bc)](_0x3dbc63,_0x411aef,_0x199451=!0x1){const _0x2b1e82=_0x381542,_0x349bf2=new URL(window['location'][_0x2b1e82(0x145)]);_0x349bf2['searchParams'][_0x2b1e82(0x10e)](_0x3dbc63,_0x411aef),_0x199451?window['history'][_0x2b1e82(0x253)]('','',_0x349bf2['toString']()):window[_0x2b1e82(0x174)]['pushState']('','',_0x349bf2[_0x2b1e82(0x268)]());}['removeParam'](_0x30b503,_0x45c9fa=!0x1){const _0x3cd368=_0x381542,_0x50df67=new URL(window[_0x3cd368(0x20d)][_0x3cd368(0x145)]);_0x50df67[_0x3cd368(0x2a1)][_0x3cd368(0x2f9)](_0x30b503),_0x45c9fa?window[_0x3cd368(0x174)][_0x3cd368(0x253)]('','',_0x50df67[_0x3cd368(0x268)]()):window[_0x3cd368(0x174)][_0x3cd368(0x245)]('','',_0x50df67[_0x3cd368(0x268)]());}[_0x381542(0x318)](_0x54c59a){const _0x2ed2e9=_0x381542;var _0x57c52f;return(_0x57c52f=new URL(window['location'][_0x2ed2e9(0x145)])['searchParams'][_0x2ed2e9(0x2d4)](_0x54c59a))!=null?_0x57c52f:void 0x0;}}var Un=Object[_0x381542(0x1c8)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x34c029,_0x3337ec,_0x17f3bc)=>_0x3337ec in _0x34c029?Un(_0x34c029,_0x3337ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17f3bc}):_0x34c029[_0x3337ec]=_0x17f3bc,Pn=(_0x2af5f6,_0x2fc9e0,_0x5308ab,_0x1d5f4e)=>{const _0x378c14=_0x381542;for(var _0x3a6459=_0x1d5f4e>0x1?void 0x0:_0x1d5f4e?Mn(_0x2fc9e0,_0x5308ab):_0x2fc9e0,_0x307d84=_0x2af5f6[_0x378c14(0x10b)]-0x1,_0x9ef509;_0x307d84>=0x0;_0x307d84--)(_0x9ef509=_0x2af5f6[_0x307d84])&&(_0x3a6459=_0x9ef509(_0x3a6459)||_0x3a6459);return _0x3a6459;},Me=(_0x10130a,_0x540f8f)=>(_0x32888c,_0x302072)=>_0x540f8f(_0x32888c,_0x302072,_0x10130a),wn=(_0x44d157,_0x51bbae,_0x4feed6)=>An(_0x44d157,_0x51bbae+'',_0x4feed6);const yn=_0x381542(0x1ad);let Ye=class extends _0x5e41ff{constructor(_0x1076c2=_t,_0x582045,_0x278c29,_0x4e7724){const _0x5e6ffe=_0x381542;super(),this[_0x5e6ffe(0x1dc)]=_0x1076c2,this[_0x5e6ffe(0x1d3)]=_0x582045,this[_0x5e6ffe(0x2f1)]=_0x278c29,this[_0x5e6ffe(0x1a9)]=_0x4e7724;const {..._0x21ac09}=_0x6f5636({},_t,this[_0x5e6ffe(0x1dc)]);this[_0x5e6ffe(0x1a9)]['setConfig'](hn,_0x21ac09);}['onStarting'](){const _0x468479=_0x381542;this[_0x468479(0x206)](),this[_0x468479(0x24d)]();}[_0x381542(0x315)](){const _0x2f69ed=_0x381542;this[_0x2f69ed(0x2d8)]();}[_0x381542(0x206)](){const _0x3b8abc=_0x381542;var _0x780a26;const _0x3a1691=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x46dece,{'useClass':_0x45c25e}],[_0x2f7e0d,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3b8abc(0x1dc)][_0x3b8abc(0x1b7)]&&_0x3a1691[_0x3b8abc(0x2e5)]([le]),_0x3d200a(this['_injector'],_0x27927b(_0x3a1691,(_0x780a26=this[_0x3b8abc(0x1dc)])==null?void 0x0:_0x780a26[_0x3b8abc(0x2ec)]));}[_0x381542(0x2d8)](){const _0xbd53fb=_0x381542;this[_0xbd53fb(0x306)](this[_0xbd53fb(0x1d3)]['registerRenderModule'](_0x11507d[_0xbd53fb(0x2c0)],[Fe])),this['disposeWithMe'](this[_0xbd53fb(0x1d3)][_0xbd53fb(0x1da)](_0x11507d[_0xbd53fb(0x25c)],[ke]));}['_initDependencies'](){const _0x149365=_0x381542;_0x563dfc(this[_0x149365(0x2f1)],[[H],[ae],[Se],[_e],[ce],[me]]),this['_config'][_0x149365(0x1b7)]&&_0x563dfc(this[_0x149365(0x2f1)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x31b9fd(_0x17d717),Me(0x1,_0x4ca29f),Me(0x2,_0x2ef654(_0x43877d)),Me(0x3,_0x1fcde3)],Ye);var $n=Object[_0x381542(0x250)],xn=(_0x18e098,_0x2cfb8f,_0xfe21e1,_0x19e708)=>{for(var _0x4dd360=_0x19e708>0x1?void 0x0:_0x19e708?$n(_0x2cfb8f,_0xfe21e1):_0x2cfb8f,_0x1e4fbf=_0x18e098['length']-0x1,_0x4bf081;_0x1e4fbf>=0x0;_0x1e4fbf--)(_0x4bf081=_0x18e098[_0x1e4fbf])&&(_0x4dd360=_0x4bf081(_0x4dd360)||_0x4dd360);return _0x4dd360;},J=(_0x776da8,_0x872b67)=>(_0x27ec57,_0x151070)=>_0x872b67(_0x27ec57,_0x151070,_0x776da8);let ut=class extends _0x286cc4{constructor(_0x142a8a,_0xf8f382,_0x3d5a9c,_0x45afcd,_0x379b6e){super(_0x142a8a,_0xf8f382,_0x3d5a9c,_0x45afcd,_0x379b6e);}async[_0x381542(0x262)](_0x378957){const _0x4974c6=_0x381542,_0x1509f1=await this['_getSessionTicket'](),_0xef65a8=this[_0x4974c6(0x32a)](_0x378957,_0x1509f1);return this['_doCreateSocket'](_0xef65a8);}[_0x381542(0x32a)](_0x30760c,_0x3163c5){const _0x5469b3=_0x381542,_0x12efae=typeof window>'u'?new URL(_0x30760c):new URL(_0x30760c,window['location'][_0x5469b3(0x321)]);_0x12efae['searchParams'][_0x5469b3(0x10e)](_0x5469b3(0x186),_0x3163c5);const _0x3b1a68=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5469b3(0x20d)][_0x5469b3(0x32c)]);return _0x3b1a68[_0x5469b3(0x2d4)](_0x5469b3(0x2c7))&&_0x12efae[_0x5469b3(0x2a1)][_0x5469b3(0x10e)]('runId',_0x3b1a68[_0x5469b3(0x2d4)](_0x5469b3(0x2c7))),_0x12efae[_0x5469b3(0x268)]();}async[_0x381542(0x1bd)](){const _0x51914a=_0x381542;var _0xf5aa2c,_0x260ee3,_0x1c92b6;const _0x25d36a=this[_0x51914a(0x1a9)][_0x51914a(0x311)](_0x361fc5),_0x4e5eba=(_0xf5aa2c=_0x25d36a==null?void 0x0:_0x25d36a[_0x51914a(0x166)])!=null?_0xf5aa2c:_0x59d416;return(_0x1c92b6=(_0x260ee3=(await this[_0x51914a(0x1c4)][_0x51914a(0x2d4)](_0x4e5eba,{'headers':{'Content-Type':_0x51914a(0xee)}}))[_0x51914a(0x10c)])==null?void 0x0:_0x260ee3['ticket'])!=null?_0x1c92b6:'';}};ut=xn([J(0x0,_0x2ef654(_0x43877d)),J(0x1,_0x2ef654(_0x57a0f4)),J(0x2,_0x1fcde3),J(0x3,_0x4c5a8a),J(0x4,_0x5f2a22)],ut);var Bn=Object[_0x381542(0x250)],Fn=(_0x264785,_0x21501e,_0x736055,_0xbfcf29)=>{const _0x36fc6d=_0x381542;for(var _0x1d4102=_0xbfcf29>0x1?void 0x0:_0xbfcf29?Bn(_0x21501e,_0x736055):_0x21501e,_0x12401a=_0x264785[_0x36fc6d(0x10b)]-0x1,_0x1ef9ea;_0x12401a>=0x0;_0x12401a--)(_0x1ef9ea=_0x264785[_0x12401a])&&(_0x1d4102=_0x1ef9ea(_0x1d4102)||_0x1d4102);return _0x1d4102;},Ae=(_0xb6f4d1,_0x522870)=>(_0x28175e,_0x594b05)=>_0x522870(_0x28175e,_0x594b05,_0xb6f4d1);let dt=class extends _0x282063{constructor(_0x1d1cfe,_0x236d96,_0x55584f){const _0x251ded=_0x381542;super(),this[_0x251ded(0x314)]=_0x1d1cfe,this[_0x251ded(0x1c4)]=_0x236d96,this[_0x251ded(0x1a9)]=_0x55584f;}async[_0x381542(0x1bb)](_0x1aa0c3,_0x3fe261,_0x2ef6bd,..._0x46916c){const _0x260752=_0x381542;var _0x253217,_0x41dd2b,_0x56ccb6,_0x504ad5;const _0x2e3ec0=this[_0x260752(0x314)][_0x260752(0x170)]();if(!_0x2e3ec0)throw new Error(_0x260752(0x18d));const _0x3e6b2f=((_0x253217=this[_0x260752(0x1a9)]['getConfig'](_0x4c5efc))!=null?_0x253217:_0x122c4b)+'/'+_0x1aa0c3+'/run/'+_0x3fe261,_0x1d8b74=new URL(window[_0x260752(0x20d)][_0x260752(0x145)]),_0x27f6c4={'scriptId':_0x1aa0c3,'runId':(_0x41dd2b=_0x1d8b74['searchParams'][_0x260752(0x2d4)](_0x260752(0x2c7)))!=null?_0x41dd2b:'','function':_0x3fe261,'unitId':_0x2e3ec0[_0x260752(0x28a)](),'argsOfFunction':JSON[_0x260752(0x1db)](_0x46916c),'invokeId':(_0x56ccb6=_0x2ef6bd[_0x260752(0x1af)])!=null?_0x56ccb6:'','executionId':(_0x504ad5=_0x2ef6bd[_0x260752(0x191)])!=null?_0x504ad5:''};try{const _0x5f410a=await this['_httpService'][_0x260752(0x286)](_0x3e6b2f,{'body':_0x27f6c4});return _0x5f410a[_0x260752(0x10c)][_0x260752(0x21a)]&&_0x5f410a[_0x260752(0x10c)][_0x260752(0x21a)]['code']!==Z['OK']?_0x260752(0x296):_0x5f410a[_0x260752(0x10c)][_0x260752(0x1d5)];}catch{return _0x260752(0x296);}}};dt=Fn([Ae(0x0,_0x143643),Ae(0x1,_0x2ef654(_0x57a0f4)),Ae(0x2,_0x1fcde3)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x282063{constructor(){const _0x55ce01=_0x381542;super(),_(this,_0x55ce01(0x234),_0x5d1d29()),_(this,'_selfUnitIDs',new Set()),_(this,_0x55ce01(0x2ba),new Map()),_(this,_0x55ce01(0x281),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x55ce01(0x32b)]();}[_0x381542(0x122)](){const _0x28e579=_0x381542;super[_0x28e579(0x122)](),this['_clearOtherTimers']['forEach']((_0x8f4aa6,_0x5a6a92)=>this[_0x28e579(0x131)](_0x5a6a92)),this[_0x28e579(0x281)]&&window[_0x28e579(0x22b)](this['_heartbeatTimer']);}[_0x381542(0x1eb)](_0x1b2576){const _0x426c10=_0x381542;return this[_0x426c10(0x1d0)](_0x1b2576)[_0x426c10(0x274)](_0x339802());}[_0x381542(0x29e)](_0x57a286){const _0x5374b7=_0x381542;this[_0x5374b7(0x117)][_0x5374b7(0x1a6)]===0x0&&this[_0x5374b7(0x2d3)](),this['_selfUnitIDs'][_0x5374b7(0x19e)](_0x57a286),this[_0x5374b7(0x316)]({'type':0x0,'memberID':this[_0x5374b7(0x234)],'unitIDs':[_0x57a286],'isForwarded':!0x1});}[_0x381542(0x29c)](_0x2267d9){const _0x5878d4=_0x381542;this[_0x5878d4(0x117)][_0x5878d4(0x2f9)](_0x2267d9),this[_0x5878d4(0x117)][_0x5878d4(0x1a6)]===0x0&&this[_0x5878d4(0x281)]&&window['clearInterval'](this[_0x5878d4(0x281)]);}[_0x381542(0x32b)](){const _0x34155c=_0x381542;this[_0x34155c(0x306)](_0xa06c05(_0x21cf88(window,_0x34155c(0x1b8))[_0x34155c(0x14a)](_0x307343=>{const _0x3b31e1=_0x34155c;if(_0x307343[_0x3b31e1(0xfd)]!==mt||!_0x307343[_0x3b31e1(0x283)])return;const _0x2abd31=JSON[_0x3b31e1(0x1fc)](_0x307343[_0x3b31e1(0x283)]);this[_0x3b31e1(0x144)](_0x2abd31);}))),window[_0x34155c(0x103)](_0x34155c(0x225),()=>this['_send']({'type':0x1,'memberID':this[_0x34155c(0x234)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x3949a3){const _0x1607d1=_0x381542;switch(_0x3949a3['type']){case 0x0:this[_0x1607d1(0x160)](_0x3949a3);break;case 0x1:this[_0x1607d1(0x2de)](_0x3949a3);break;case 0x2:this[_0x1607d1(0x1cc)](_0x3949a3);break;}}[_0x381542(0x160)](_0x4fc8d3){const _0x516e34=_0x381542,{unitIDs:_0x9563b1,memberID:_0x50d94f,isForwarded:_0x50b0fc}=_0x4fc8d3;_0x9563b1[_0x516e34(0x15f)](_0x12910a=>{const _0x49f92f=_0x516e34;if(!_0x50b0fc&&this['_unitOnClients'][_0x49f92f(0x2d6)](_0x12910a)&&this[_0x49f92f(0x1d0)](_0x12910a)[_0x49f92f(0x2a5)](_0x457f49['OTHER_CLIENTS_EDITING']),!this[_0x49f92f(0x2ba)][_0x49f92f(0x2d6)](_0x12910a)||!this['_unitOnClients']['get'](_0x12910a)[_0x49f92f(0x2d6)](_0x50d94f)){const _0x238afa=this[_0x49f92f(0x2ba)]['get'](_0x12910a)||new Set();_0x238afa['add'](_0x50d94f),this[_0x49f92f(0x2ba)][_0x49f92f(0x10e)](_0x12910a,_0x238afa),this[_0x49f92f(0x232)](_0x50d94f);}}),_0x50b0fc||this[_0x516e34(0x316)]({'type':0x0,'memberID':this[_0x516e34(0x234)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xc27e5c){const _0x5c35fe=_0x381542;this[_0x5c35fe(0x131)](_0xc27e5c);const _0x37950b=window[_0x5c35fe(0x204)](()=>{const _0x149fd7=_0x5c35fe;this[_0x149fd7(0x2ba)]['forEach'](_0xd38d8f=>{const _0x589719=_0x149fd7;_0xd38d8f[_0x589719(0x2f9)](_0xc27e5c);});},St*0x2);this[_0x5c35fe(0x10f)][_0x5c35fe(0x10e)](_0xc27e5c,_0x37950b);}[_0x381542(0x131)](_0x1e6b25){const _0x29e6bc=_0x381542;if(this[_0x29e6bc(0x10f)][_0x29e6bc(0x2d6)](_0x1e6b25)){const _0x4bb34e=this[_0x29e6bc(0x10f)][_0x29e6bc(0x2d4)](_0x1e6b25);_0x4bb34e&&window['clearTimeout'](_0x4bb34e),this[_0x29e6bc(0x10f)][_0x29e6bc(0x10e)](_0x1e6b25,null);}}[_0x381542(0x2de)](_0xd131f5){const _0x3ebda6=_0x381542,{memberID:_0x56d8f3,unitIDs:_0x5de85d}=_0xd131f5;_0x5de85d[_0x3ebda6(0x15f)](_0xd77e71=>{const _0x29f018=_0x3ebda6;var _0x2d339;const _0x4f5200=this['_unitOnClients'][_0x29f018(0x2d4)](_0xd77e71);_0x4f5200&&(_0x4f5200[_0x29f018(0x2f9)](_0x56d8f3),(_0x2d339=this[_0x29f018(0x1d0)](_0xd77e71))==null||_0x2d339[_0x29f018(0x2a5)](_0x4f5200[_0x29f018(0x1a6)]===0x0?_0x457f49[_0x29f018(0x22a)]:_0x457f49['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x56d8f3);}[_0x381542(0x1cc)](_0x3fc8da){const _0x1835d2=_0x381542;this[_0x1835d2(0x232)](_0x3fc8da[_0x1835d2(0x235)]);}[_0x381542(0x316)](_0x25f565){const _0x381c54=_0x381542;localStorage[_0x381c54(0x1c1)](mt,JSON[_0x381c54(0x1db)](_0x25f565));}['_scheduleHeartbeat'](){const _0x5d396f=_0x381542;this['_heartbeatTimer']=window[_0x5d396f(0x290)](()=>{const _0x3aa026=_0x5d396f;this['_send']({'type':0x2,'memberID':this[_0x3aa026(0x234)]});},St);}[_0x381542(0x1d0)](_0x360e53){const _0x148d08=_0x381542;return this[_0x148d08(0x1bc)][_0x148d08(0x2d6)](_0x360e53)||this['_unitStatus'][_0x148d08(0x10e)](_0x360e53,new _0x2c6ac6(_0x457f49[_0x148d08(0x22a)])),this[_0x148d08(0x1bc)][_0x148d08(0x2d4)](_0x360e53);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x267084=_0x1936;(function(_0x4c33f2,_0x3c5448){const _0x4a54e5=_0x1936,_0x2a7533=_0x4c33f2();while(!![]){try{const _0x699d11=parseInt(_0x4a54e5(0xf8))/0x1+-parseInt(_0x4a54e5(0x19f))/0x2*(-parseInt(_0x4a54e5(0x19d))/0x3)+-parseInt(_0x4a54e5(0x195))/0x4*(-parseInt(_0x4a54e5(0x20f))/0x5)+parseInt(_0x4a54e5(0x2a1))/0x6*(-parseInt(_0x4a54e5(0x266))/0x7)+-parseInt(_0x4a54e5(0x126))/0x8+parseInt(_0x4a54e5(0xbc))/0x9*(parseInt(_0x4a54e5(0x79))/0xa)+-parseInt(_0x4a54e5(0xb0))/0xb;if(_0x699d11===_0x3c5448)break;else _0x2a7533['push'](_0x2a7533['shift']());}catch(_0x3299bc){_0x2a7533['push'](_0x2a7533['shift']());}}}(_0x3029,0x430d2));var Yt=Object[_0x267084(0x28e)],Wt=(_0x3463fc,_0x27ac20,_0x4fd150)=>_0x27ac20 in _0x3463fc?Yt(_0x3463fc,_0x27ac20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fd150}):_0x3463fc[_0x27ac20]=_0x4fd150,_=(_0x4e7798,_0x4fd5ce,_0x1e30d7)=>Wt(_0x4e7798,typeof _0x4fd5ce!=_0x267084(0x27c)?_0x4fd5ce+'':_0x4fd5ce,_0x1e30d7);import{jsx as _0x3c1405,jsxs as _0x2c67c9}from'react/jsx-runtime';import{CollaborationStatus as _0x393e49,CollaborationSessionService as _0x30d8be,CollaborationController as _0x20f9ac,DataLoaderService as _0x21f2b2,MemberService as _0x277671,SessionStatus as _0x2f3a8a,ILocalCacheService as _0x1d4097,CollaborationUIEventService as _0x463587,CollaborationUIEventId as _0x13accd,DocCollaborationEntity as _0xbad4e5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58fdc2,getLocalCacheKey as _0x3df3e5,LOCAL_CACHE_INTERVAL as _0x3119b9,LOCAL_CACHE_INTERVAL_KEY as _0x5a7b94,UniverCollaborationClientPlugin as _0x32160c,CollaborationSocketService as _0x120512,DEFAULT_WS_SESSION_TICKET_URL as _0x366c2b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4ce834,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x20cc7b,UnitStatus as _0x2d4d54}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x392a0b,IUniverInstanceService as _0x121c1a,Inject as _0x19d3ff,Injector as _0x4ab7f8,Disposable as _0x15b4c2,createIdentifier as _0xd018ef,ILogService as _0x35d33d,ICommandService as _0x1da808,Optional as _0x4cc534,RxDisposable as _0x2699b6,Workbook as _0x28d654,DOC_RANGE_TYPE as _0x324e87,debounce as _0x1dbae4,Rectangle as _0x24337c,DisposableCollection as _0x5466e2,toDisposable as _0x490c7d,UniverInstanceType as _0x24166e,generateRandomId as _0x3add1d,COLORS as _0x3d6b49,ColorKit as _0x51eb2d,ThemeService as _0x51cb02,fromEventSubject as _0x690a46,Tools as _0x23f5dc,CommandType as _0x3a3187,IConfigService as _0x5d7afb,CanceledError as _0x53987c,isFormulaString as _0x39dc69,isFormulaId as _0x3789a8,ILocalStorageService as _0x5e6485,DependentOn as _0x508d08,Plugin as _0x75b443,merge as _0x4bef96,registerDependencies as _0x52fbf5,mergeOverrideWithDependencies as _0x1b8195,touchDependencies as _0x1253a5}from'@univerjs/core';import{useObservable as _0x4194bc,useDependency as _0x5d77ed,IUIPartsService as _0x4fa1c4,BuiltInUIPart as _0x4d93d1,connectInjector as _0x4a2cb2,IBeforeCloseService as _0x53993a,IMessageService as _0x238f17,INotificationService as _0x2018e3}from'@univerjs/ui';import{BehaviorSubject as _0x1c42a0,switchMap as _0x481021,of as _0x243860,takeUntil as _0xae10c0,debounceTime as _0x1f60ae,Subject as _0x47c8c8,filter as _0x54fc49,merge as _0xe0d349,combineLatest as _0x5901e,fromEvent as _0x46507c,shareReplay as _0x546268,mapTo as _0x2ff921,distinctUntilChanged as _0x366b6a}from'rxjs';import{Tooltip as _0x3bf2de,clsx as _0xc7cc86,MessageType as _0x3d9040}from'@univerjs/design';import{useRef as _0xee1e17,createElement as _0x6f96fd,forwardRef as _0x487948,useCallback as _0x124f12}from'react';import{IRemoteInstanceService as _0x236c30}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3a9ae4,RefRangeService as _0x550286,SetSelectionsOperation as _0x471d36,SheetsSelectionsService as _0x308ea6,EffectRefRangId as _0x4f3975,handleIRemoveRow as _0x440e43,handleIRemoveCol as _0x2189b3,handleMoveRange as _0x4ff5db,handleInsertRow as _0x599989,handleInsertRangeMoveRight as _0x4156ba,handleInsertRangeMoveDown as _0x4c1240,handleInsertCol as _0x123e0e,handleDeleteRangeMoveUp as _0x471afe,handleDeleteRangeMoveLeft as _0x1876c5,runRefRangeMutations as _0x485055}from'@univerjs/sheets';import{Shape as _0x48592f,Rect as _0x3692f4,getColor as _0x16f499,RegularPolygon as _0x328f70,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x390bb6,Vector2 as _0x2f462d,SHEET_VIEWPORT_KEY as _0x37de76,IRenderManagerService as _0x16532d}from'@univerjs/engine-render';import{HTTPService as _0x3d2675,ISocketService as _0x516427,WebSocketService as _0x29fc86}from'@univerjs/network';import{IDocClipboardService as _0x22e109,NodePositionConvertToCursor as _0x49e5c6,NodePositionConvertToRectRange as _0x307f3d,TEXT_RANGE_LAYER_INDEX as _0x314e8b,SetDocZoomRatioOperation as _0x2d6594,DocIMEInputManagerService as _0x4f8e82,DocStateChangeManagerService as _0x52621e}from'@univerjs/docs-ui';import{IImageIoService as _0x5e00b7}from'@univerjs/drawing';import{ITransformService as _0xe0c62a,CollaborationEvent as _0x11a4ac,isTransformMutationFailure as _0x3d1fb0,isTransformMutationsWithChangesetSuccess as _0x10901e,RevisionService as _0x1e9c45,ISnapshotServerService as _0x5e2acb}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4e5c0b,RichTextEditingMutation as _0xd50203,DocSelectionManagerService as _0x22e39b,DocSkeletonManagerService as _0x437e0f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3813d3,serializeRangeWithSheet as _0x104646,FormulaExecuteStageType as _0x5d4131,FormulaExecutedStateType as _0x1d84bd,SetFormulaCalculationStartMutation as _0xce794f,SetFormulaCalculationNotificationMutation as _0x15b422}from'@univerjs/engine-formula';import{map as _0x53e19c,filter as _0x42660b,throttleTime as _0x1e846c,takeUntil as _0xf7d2a1,switchMap as _0x4c118e}from'rxjs/operators';import{SheetSkeletonManagerService as _0x42940b,getCoordByCell as _0x6cc202,getSheetObject as _0x1c44a6}from'@univerjs/sheets-ui';function Ge({ref:_0x1601aa,..._0x20948f}){const _0x2e62a8=_0x267084,{icon:_0x21b1b7,id:_0xe65bcf,className:_0x2569e8,extend:_0x2d5dc7,..._0x515962}=_0x20948f,_0x48f63f=('univerjs-icon\x20univerjs-icon-'+_0xe65bcf+'\x20'+(_0x2569e8||''))[_0x2e62a8(0x24d)](),_0x20853d=_0xee1e17('_'+Ei());return At(_0x21b1b7,''+_0xe65bcf,{'defIds':_0x21b1b7['defIds'],'idSuffix':_0x20853d['current']},{'ref':_0x1601aa,'className':_0x48f63f,..._0x515962},_0x2d5dc7);}function At(_0x597d6a,_0x137edd,_0x4ed2f8,_0x2d593a,_0xfa652b){const _0x3c0b33=_0x267084;return _0x6f96fd(_0x597d6a[_0x3c0b33(0x122)],{'key':_0x137edd,...gi(_0x597d6a,_0x4ed2f8,_0xfa652b),..._0x2d593a},(vi(_0x597d6a,_0x4ed2f8)['children']||[])[_0x3c0b33(0x21b)]((_0x3033de,_0x1f0e98)=>At(_0x3033de,_0x137edd+'-'+_0x597d6a[_0x3c0b33(0x122)]+'-'+_0x1f0e98,_0x4ed2f8,void 0x0,_0xfa652b)));}function gi(_0x2bfb83,_0x51d7e8,_0x436791){const _0x146b71=_0x267084,_0x4da206={..._0x2bfb83[_0x146b71(0x1ba)]};_0x436791!=null&&_0x436791['colorChannel1']&&_0x4da206[_0x146b71(0x1f8)]===_0x146b71(0x121)&&(_0x4da206[_0x146b71(0x1f8)]=_0x436791[_0x146b71(0x121)]),_0x2bfb83[_0x146b71(0x122)]==='mask'&&_0x4da206['id']&&(_0x4da206['id']=_0x4da206['id']+_0x51d7e8['idSuffix']),Object[_0x146b71(0x16e)](_0x4da206)[_0x146b71(0x236)](([_0x5b4f9a,_0x143967])=>{const _0x18a095=_0x146b71;_0x5b4f9a===_0x18a095(0x244)&&typeof _0x143967=='string'&&(_0x4da206[_0x5b4f9a]=_0x143967[_0x18a095(0x1b9)](/url\(#(.*)\)/,_0x18a095(0x119)+_0x51d7e8[_0x18a095(0x28d)]+')'));});const {defIds:_0x58d5bc}=_0x51d7e8;return!_0x58d5bc||_0x58d5bc[_0x146b71(0xb1)]===0x0||(_0x2bfb83[_0x146b71(0x122)]===_0x146b71(0x2ad)&&_0x4da206[_0x146b71(0x124)]&&(_0x4da206[_0x146b71(0x124)]=_0x4da206[_0x146b71(0x124)]+_0x51d7e8[_0x146b71(0x28d)]),Object[_0x146b71(0x16e)](_0x4da206)[_0x146b71(0x236)](([_0x28287d,_0x549239])=>{const _0x57eab5=_0x146b71;typeof _0x549239==_0x57eab5(0x1fc)&&(_0x4da206[_0x28287d]=_0x549239[_0x57eab5(0x1b9)](/url\(#(.*)\)/,_0x57eab5(0x119)+_0x51d7e8[_0x57eab5(0x28d)]+')'));})),_0x4da206;}function vi(_0x1cbc50,_0x4f03a2){const _0x4cc346=_0x267084;var _0x5c3b0d;const {defIds:_0x33c4f6}=_0x4f03a2;return!_0x33c4f6||_0x33c4f6[_0x4cc346(0xb1)]===0x0?_0x1cbc50:_0x1cbc50[_0x4cc346(0x122)]===_0x4cc346(0x297)&&((_0x5c3b0d=_0x1cbc50['children'])!=null&&_0x5c3b0d[_0x4cc346(0xb1)])?{..._0x1cbc50,'children':_0x1cbc50[_0x4cc346(0x1d3)]['map'](_0x189f59=>typeof _0x189f59[_0x4cc346(0x1ba)]['id']==_0x4cc346(0x1fc)&&_0x33c4f6&&_0x33c4f6[_0x4cc346(0x1f0)](_0x189f59[_0x4cc346(0x1ba)]['id'])?{..._0x189f59,'attrs':{..._0x189f59[_0x4cc346(0x1ba)],'id':_0x189f59['attrs']['id']+_0x4f03a2['idSuffix']}}:_0x189f59)}:_0x1cbc50;}function Ei(){const _0x16c2e8=_0x267084;return Math['random']()['toString'](0x24)[_0x16c2e8(0x13e)](0x2,0x8);}Ge[_0x267084(0x17c)]=_0x267084(0x282);const pi={'tag':_0x267084(0xe7),'attrs':{'xmlns':_0x267084(0x203),'fill':_0x267084(0x254),'viewBox':_0x267084(0x204),'width':_0x267084(0x292),'height':_0x267084(0x292)},'children':[{'tag':'g','attrs':{'clipPath':_0x267084(0x229)},'children':[{'tag':_0x267084(0xce),'attrs':{'stroke':_0x267084(0x205),'d':_0x267084(0x1dc),'strokeLinecap':_0x267084(0x14e),'strokeLinejoin':_0x267084(0x14e),'strokeWidth':1.2}}]},{'tag':_0x267084(0x297),'attrs':{},'children':[{'tag':_0x267084(0x12a),'attrs':{'id':_0x267084(0x29e)},'children':[{'tag':_0x267084(0xce),'attrs':{'fill':'white','d':_0x267084(0x136)}}]}]}],'defIds':[_0x267084(0x29e)]},Pt=_0x487948(function(_0x151518,_0x46be1f){const _0x394e34=_0x267084;return _0x6f96fd(Ge,Object[_0x394e34(0x173)]({},_0x151518,{'id':_0x394e34(0x1d0),'ref':_0x46be1f,'icon':pi}));});Pt[_0x267084(0x17c)]=_0x267084(0x1e2);const Oi={'tag':_0x267084(0xe7),'attrs':{'xmlns':_0x267084(0x203),'fill':_0x267084(0x254),'viewBox':_0x267084(0xdd),'width':'1em','height':_0x267084(0x292)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x267084(0xce),'attrs':{'stroke':_0x267084(0x205),'d':_0x267084(0xe2),'strokeLinecap':_0x267084(0x14e),'strokeLinejoin':_0x267084(0x14e),'strokeWidth':1.2}}]},{'tag':_0x267084(0x297),'attrs':{},'children':[{'tag':_0x267084(0x12a),'attrs':{'id':_0x267084(0x1b1)},'children':[{'tag':'path','attrs':{'fill':_0x267084(0x1a9),'d':_0x267084(0x136),'transform':_0x267084(0x114)}}]}]}],'defIds':[_0x267084(0x1b1)]},wt=_0x487948(function(_0x759f9d,_0x470d66){const _0x5c6264=_0x267084;return _0x6f96fd(Ge,Object[_0x5c6264(0x173)]({},_0x759f9d,{'id':_0x5c6264(0x10b),'ref':_0x470d66,'icon':Oi}));});wt['displayName']=_0x267084(0x1ad);function Ti(_0x1bd8ba){const _0x1879af=_0x267084;switch(_0x1bd8ba){case _0x393e49[_0x1879af(0x222)]:return _0x1879af(0x12f);case _0x393e49[_0x1879af(0xb6)]:return'collabStatus.conflict';case _0x393e49[_0x1879af(0x8a)]:return'collabStatus.fetchMiss';case _0x393e49[_0x1879af(0x29d)]:return _0x1879af(0x1de);case _0x393e49[_0x1879af(0x193)]:case _0x393e49['AWAITING_WITH_PENDING']:return _0x1879af(0xfc);case _0x393e49[_0x1879af(0xae)]:case _0x393e49[_0x1879af(0xa0)]:return _0x1879af(0xcc);}}function Ci(_0x1cf81a){const _0xe594f0=_0x267084,{status$:_0x292764}=_0x1cf81a,_0x26f4f6=_0x4194bc(_0x292764,_0x393e49[_0xe594f0(0x29d)]),_0x2fce5c=_0x5d77ed(_0x392a0b),_0x5eedd9=_0x5d77ed(_0x30d8be),_0x1b9cb8=_0x26f4f6!==_0x393e49[_0xe594f0(0x222)],_0x4d1238=_0x2fce5c['t'](Ti(_0x26f4f6)),_0x311656=_0x1b9cb8?_0x3c1405(wt,{}):_0x3c1405(Pt,{}),_0x12a15a=_0x124f12(()=>{const _0x4a4349=_0xe594f0;_0x1b9cb8||_0x5eedd9[_0x4a4349(0xfe)]();},[_0x1b9cb8,_0x5eedd9]);function _0x574cc6(){const _0x304cd2=_0xe594f0;return _0x2c67c9(_0x304cd2(0x170),{'className':_0x304cd2(0x25c),'onClick':_0x12a15a,'children':[_0x3c1405(_0x304cd2(0x170),{'className':_0xc7cc86(_0x304cd2(0x283),{'univer-text-green-500':_0x1b9cb8,'univer-text-red-500':!_0x1b9cb8}),'children':_0x311656}),_0x3c1405('div',{'className':_0x304cd2(0x225),'children':_0x4d1238})]});}return _0x1b9cb8?_0x574cc6():_0x3c1405(_0x3bf2de,{'title':_0x2fce5c['t'](_0xe594f0(0xc8)),'children':_0x574cc6()});}var Ri=Object[_0x267084(0x141)],Di=(_0x15b3c7,_0x499f09,_0x12715c,_0x4bb3f7)=>{for(var _0x27645e=_0x4bb3f7>0x1?void 0x0:_0x4bb3f7?Ri(_0x499f09,_0x12715c):_0x499f09,_0x3b288a=_0x15b3c7['length']-0x1,_0x175b91;_0x3b288a>=0x0;_0x3b288a--)(_0x175b91=_0x15b3c7[_0x3b288a])&&(_0x27645e=_0x175b91(_0x27645e)||_0x27645e);return _0x27645e;},se=(_0xbbfe73,_0x38572b)=>(_0x2ee6fc,_0x496f2d)=>_0x38572b(_0x2ee6fc,_0x496f2d,_0xbbfe73);function _0x3029(){const _0x4d26bc=['AWAITING','_applyCommand','4TYWNvw','_render','_monkeyPatchLogService','Error','params','InsertRangeMoveRightCommandId','_setupBeforeClosingHandler','arc','425331akyzke','_updateLocalCursor','2TjHCNd','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_initStatusComponent','jiqing.500','_cursorInfo$','sheetID','text','replaceDocRanges','setUndoRedoMutationParamsCache','collaboration-client-ui.config','white','_saveCache','disableLocalCache','getRangePointData','OnLineIcon','runId','_revisionService','[LogService\x20Error]:\x20','on-line-icon_clip0_910_349','ENTITLE_NEED_BILLING_ADDRESS','VIEW_MAIN','values','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UNIVER_SHEET','hide','_sheetSkeletonManagerService','replace','attrs','_clearOtherTimers','currentTheme$','unshift','whenReady','href','_createSocketURL','registerRenderModule','addEventListener','moveTo','_send','NOT_FOUND','wsSessionTicketUrl','getSheetBySheetId','socket$','fillRule','RECT','stack','getOffsetConfig','subunit','selection','transformIMECache','off-line-icon','REDEMPTION_CODE_FULLY_REDEEMED','toRgbString','children','WECHAT_HAS_BEEN_BOUND','_themeService','_getMergeRange','_clearPolling','getValue','_collabSessionService','_collaborationController','executeCommand','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','onStarting','collabStatus.notCollab','getUnit','eventID','_shapes','OffLineIcon','_roomMembers$','YUUMI_NO_CUBOID_FOR_QUESTION','doc.mutation.rich-text-editing','endColumn','APPLY_NON_SEQUENTIAL_REVISION','getCurrentUnitForType','_startCalculationLimit','transformByState','Warning','width','filename','LICENSE_IMPORT_SIZE_EXCEEDED','dispose$','includes','min','_docTransformIMECacheService','_colorAssignService','ENTITLE_CHAT_LIMIT_EXCEED','getMemberID','APPLY_DUPLICATED','engine','fill','_disabled','INTERNAL_ERROR','DATA_SOURCE_TOO_LARGE','string','JOIN_ROOM_FAILED','m2Prime','docStateChange$','_initEntityListener','TOO_MANY_REQUESTS','_assignedColors','http://www.w3.org/2000/svg','0\x200\x2016\x2016','currentColor','actions','cursorInfo','\x20at\x20','getActiveSheet','OTHER_CLIENT_EDITING','getMergeData','exhaustSavingTask','stringify','range','1831110oWRQOs','beginPath','roomMembers$','set','_docSkeletonManagerService','MUTATION','_hovered','getSkeleton','ERROR_AGAIN','SUCCESS','code','getItem','map','_startDocCollabCursor','deepClone','_localCacheService','setActiveRange','_localeService','clearTimeout','OFFLINE','asObservable','push','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','purple.300','override','isEditing','url(#off-line-icon_clip0_910_343)','enableFrontendLog','_online','UPDATE_CURSOR','evenodd','color','parseInt','_transformHistoryAndStateStack','transformMutationsWithChangeset','_initUnhandledRejectionListener','sheetId','MOBILE_VERIFY_CODE_MISMATCH','search','forEach','SNAPSHOT_INVALID_SNAPSHOT','_initCommandExecutedListener','with','session.connection-failed','getCollabEntity$','toString','YUUMI_RATE_OVER_LIMIT','getformulaLimitStatusUrl','shift','activeSheet$','getFocusedUnit','_name','_removeCollabCursors','mask','textRanges','/universer-api/license/formula/limit/start','syncEditingCollabCursor','lineTo','_saveTaskMap','unhandledrejection','parse','reason','trim','_docStateChangeManagerService','collab-rect-range-','_eventUnsubscribe','_collaborationSessionService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_uiPartsService','none','data','YUUMI_ALL_TABLES_IS_INVALID','APPLY_PERMISSION_DENIED','_onRefRangeChange','PERMISSION_DENIED','pushState','UNAUTHENTICATED','univer-flex\x20univer-items-center','application/json','size','_initDependencies','Failed','_color','findNodePositionByCharIndex','session.collaboration-timeout','complete','drawWith','7dCwrEy','_status$','_messageService','type','getUnhiddenWorksheets','_cachedData','_currentUsage','ONLINE','_drawAnchor','permission.content','_renderManagerService','getMember','origin','loadOfflineData','debug','OTHER_CLIENTS_EDITING','_docTransformStateCacheService','enableLocalCache','_drawTextRange','_getSessionTicket','limitInfo','isActive','symbol','_scheduleSaving','INVITE_CODE_HAS_BEEN_UES','ENTITLE_CAN_NOT_BUY_LOWER_OTP','FromArray','_hideTimer','UniverIcon','univer-mr-2\x20univer-flex\x20univer-text-xl','_checkAndWaitForCalculationPermission','_docSkeleton','from','ENSURE_SNAPSHOT_EXECUTION','mutations','_univerInstanceService','getCurrentRevOfUnit','setParam','START_CALCULATION','idSuffix','defineProperty','hovered','unsubscribe','currentUsage','1em','APPLY_REJECT','_docSyncEditingCollabCursorService','then','USERS_LEAVE','defs','_injector','getAncestorScale','_scene','_entities','_getScale','NOT_COLLAB','off-line-icon_clip0_910_343','[CollaborationDataLoaderController]','_init','701712frkEcF','TEXT','_setupSubUnitSync','onPointerEnter$','formula.calculation.started','formula.calculation.unable','history','_registerRenderDependencies','split','unitId','_collabCursorState$','APPLY_REVISION_CONFILICT','use','_collabCursorController','send','has','ENTITLE_DUP_SUBSCRIPTION','_startSheetCollabCursor','removeEventListener','_backgroundColor','onRendered','_memberService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_beforeCloseService','transformStateCache','setStateCache','delete','getConfig','_initCommandInterceptor','_cursors','_checkCalculationAvailable','60470eqnwyn','startRow','message','USER_NOT_FOUND','transformSelections','setShapeProps','loadUnit','registerRefRange','_selfUnitIDs','_handleLeaveEvent','Success','_logService','_context','onPointerLeave$','_localStorageService','REDEMPTION_CODE_HAS_BEEN_CREATED','?taskId=','FETCH_MISS','pluginName','newValue','_transformPreviousActiveRange','RemoveRowCommandId','INVITE_CODE_REQUIRED','init','_docTransformSelectionsService','REDEMPTION_CODE_NOT_STARTED','INVALID_INVITE_CODE','executionId','undoState','_urlService','bottom','getCellPositionByOffset','INVITE_CODE_ALREADY_BOUND','_cursorShapes','EMAIL_HAS_BEEN_BOUND','post','PAYMENT_CHANNEL_NOT_SUPPORT','lineno','cursorInfo$','PENDING','_initEvent','_refreshCollabCursors','_getAnchorBounding','m1Prime','_removeClearOtherTimer','catch','ALREADY_EXISTS','_handleJoinEvent','_initResize','_draw','memberID','event$','YUUMI_UNABLE_LOAD_URL','SYNCED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','10450275zdSSUO','length','updateOfflineData','top','ENTITLE_INSUFFICIENT_QUOTA','_configService','CONFLICT','_getSaveTimeout','totalFormulasToCalculate','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','redoState','getUndoRedoMutationParamsCache','711HYRDXS','imageSourceType','_transformService','height','_pollingInterval','isArray','getCollabCursors$','triggerDblclick','_memberID','_unitStatus','name','labelPosition','collab-client.tooltip.reconnect','startsWith','colno','key','collabStatus.synced','_handleEvent','path','fillText','popstate','/universer-api/license/formula/limit/status','getDocRanges','SNAPSHOT_HAS_BEEN_REMOVED','EMAIL_VERIFY_CODE_MISMATCH','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleClearOtherTimer','getColorFromTheme','dirtyRanges','_uploadLog','stageInfo','subUnitId','next','0\x200\x2017\x2016','onMouseMove','YUUMI_SUBSCRIPTION_NOT_FOUND','_setFormulaLimitStatus','_initUserListener','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','_updateURLWithCurrentState','addObject','saveOfflineData','collab-text-anchor-','svg','entityInit$','_registerDependencies','startColumn','all','_id','RemoveColCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','LOGIN_FAILED','onCommandExecuted','unitID','unit','_anchor','transformRemoteChangeset','LICENSE_DISTRO_REJECTED','collaboration.closeRoom','get','506101XbvkhZ','_hover','getRenderById','_onCursorUpdate','collabStatus.syncing','ranges','reconnect','ENTITLE_REPORT_LIMIT_EXCEED','some','YUUMI_AI_RUN_FAILED','_entityInit$','_unitOnClients','REDEMPTION_USER_NOT_ELIGIBLE','ticket','_commandService','backgroundColor','_cursor','_httpService','createInstance','on-line-icon','_maxFormulaLimit','_range','_ensureSubject','COMPLETION_FINISHED','setConfig','USER_IS_ANONYMOUS','InsertRangeMoveDownCommandId','status$','translate(.97)','unload','subscribe','_toggleOffline','getParam','url(#$1','_taskIds','fillStyle','currentSkeleton$','setAlpha','subscribeEvent','_textBubble','CONNECTOR_DATA_TOO_LARGE','colorChannel1','tag','location','xlink:href','_refRangeService','1201552ugSZpc','getSheetId','_lastResponseTimestamp','[RemoteUniscriptService]:\x20no\x20focused\x20unit','clipPath','YUUMI_TABLE_NOT_FOUND_IN_UNIT','closePath','roomMembers','getUnitId','collabStatus.offline','HEADER_MENU','sessionStatus$','_initWindowErrorListener','_notificationService','disposeWithMe','invokeId','M0\x200H16V16H0z','_instanceService','_getFormulaLimitStatus','/universer-api/license/formula/limit/done','CLOSE_ROOM','MOBILE_HAS_BEEN_BOUND','stage','_dataLoaderService','substring','_imageIoService','Unknown\x20user','getOwnPropertyDescriptor','...','_labelPosition','_scheduleHeartbeat','error','_onCursorDelete','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_INVALID_CODE','_showGuardMessage','formula.calculation.waiting','endRow','_heartbeatTimer','CHANGESET_REVISION_CONFILICT','round','sessionTicket','bind','makeDirty','urlChange$','yellow.400','InsertRowCommandId','UNRECOGNIZED','SUBMIT_CHANGESET_TIMEOUT','selections','NO_OTHER_CLIENTS_EDITING','DeleteRangeMoveUpCommandId','_getSheetObject','YUUMI_CONNECTOR_URL_NOT_FOUND','save','/universer-api/frontend/logs','_colorIndex','transformMutation','black','setItem','pipe','assignAColorForMemberID','measureText','body','LICENSE_MAX_UNITS_EXCEEDED','saveImage','releaseFormulaLimitUrl','row','show','searchParams','UNDEFINED','getUnitStatus$','entries','_initStatusListener','div','saveTaskMap','getStateCache','assign','requireSession','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_updateCollabCursors','runOnServer','_config','_toggleOnline','_anchorDot','UNIVER_DOC','displayName','_syncEditingCollabCursorService','_lastPointer','getTypeOfUnitAdded$','LOGIN_TOKEN_PROCESSING_FAILED','onTransformChange$','session.will-retry','setTimeout','_updateSubUnitFromURLParams','replaceState','add','_session','getUniverSheetInstance','clearInterval','dispose','LICENSE_EXPORT_SIZE_EXCEEDED','USER_NOT_INVITED_CODE','_drawRectRange','INVALID_ARGUMENT','now','restore','collabCursorState$','setInterval'];_0x3029=function(){return _0x4d26bc;};return _0x3029();}let ae=class extends _0x15b4c2{constructor(_0x35f3d8,_0x23f836,_0x3a42e7,_0x5179a5){const _0x1f99b0=_0x267084;super(),_(this,'_status$',new _0x1c42a0(_0x393e49[_0x1f99b0(0x29d)])),(this[_0x1f99b0(0x289)]=_0x35f3d8,this[_0x1f99b0(0x298)]=_0x23f836,this[_0x1f99b0(0x1da)]=_0x3a42e7,this['_uiPartsService']=_0x5179a5,this[_0x1f99b0(0x1a1)](),this[_0x1f99b0(0x16f)]());}[_0x267084(0x16f)](){const _0x5f4d47=_0x267084;this['disposeWithMe'](this[_0x5f4d47(0x289)]['focused$'][_0x5f4d47(0x162)](_0x481021(()=>{const _0x5a40ae=_0x5f4d47,_0x3ee807=this[_0x5a40ae(0x289)][_0x5a40ae(0x241)]();return _0x3ee807?this[_0x5a40ae(0x1da)][_0x5a40ae(0x23b)](_0x3ee807[_0x5a40ae(0x12e)]()):_0x243860(null);}),_0x481021(_0x37fb1a=>_0x37fb1a?_0x37fb1a[_0x5f4d47(0x113)]:_0x243860(_0x393e49['NOT_COLLAB'])))['subscribe'](_0x23c65a=>{const _0x424c9b=_0x5f4d47;this[_0x424c9b(0x267)][_0x424c9b(0xdc)](_0x23c65a);}));}[_0x267084(0x1a1)](){const _0x2e30c6=_0x267084;this[_0x2e30c6(0x134)](this[_0x2e30c6(0x253)]['registerComponent'](_0x4d93d1[_0x2e30c6(0x130)],()=>_0x4a2cb2(bi({'status$':this[_0x2e30c6(0x267)]['asObservable']()}),this[_0x2e30c6(0x298)])));}};ae=Di([se(0x0,_0x121c1a),se(0x1,_0x19d3ff(_0x4ab7f8)),se(0x2,_0x19d3ff(_0x20f9ac)),se(0x3,_0x4fa1c4)],ae);function bi(_0x321d27){const {status$:_0x1906f4}=_0x321d27;return function(){return _0x3c1405(Ci,{'status$':_0x1906f4});};}const yt=_0xd018ef('uni.network.url-service');var Ni=Object[_0x267084(0x141)],Li=(_0x32fc8f,_0x406a4f,_0x25b224,_0x17677c)=>{for(var _0x40100e=_0x17677c>0x1?void 0x0:_0x17677c?Ni(_0x406a4f,_0x25b224):_0x406a4f,_0x21d3e2=_0x32fc8f['length']-0x1,_0x12a52d;_0x21d3e2>=0x0;_0x21d3e2--)(_0x12a52d=_0x32fc8f[_0x21d3e2])&&(_0x40100e=_0x12a52d(_0x40100e)||_0x40100e);return _0x40100e;},K=(_0xca4601,_0xbd5de)=>(_0x9c3992,_0x3f49b4)=>_0xbd5de(_0x9c3992,_0x3f49b4,_0xca4601);let ce=class extends _0x2699b6{constructor(_0x5151be,_0xb6fa2a,_0x1c62a9,_0x5cae94,_0x51f278){const _0x2bc6eb=_0x267084;super(),this[_0x2bc6eb(0x96)]=_0x5151be,this[_0x2bc6eb(0x84)]=_0xb6fa2a,this['_commandService']=_0x1c62a9,this[_0x2bc6eb(0x13d)]=_0x5cae94,_0x51f278?_0x51f278==null||_0x51f278[_0x2bc6eb(0x1be)]()[_0x2bc6eb(0x295)](()=>this['_init']()):(this[_0x2bc6eb(0x84)][_0x2bc6eb(0x274)](_0x2bc6eb(0x29f),_0x2bc6eb(0x2b7)),this[_0x2bc6eb(0x2a0)]());}async[_0x267084(0x2a0)](){const _0x17c982=_0x267084,_0x5a86f5=this['_urlService']['getParam']('unit'),_0x2a2b6a=this[_0x17c982(0x96)][_0x17c982(0x118)](_0x17c982(0x269)),_0x216ec9=this[_0x17c982(0x96)][_0x17c982(0x118)](_0x17c982(0x1cd));if(!_0x5a86f5||!_0x2a2b6a){this[_0x17c982(0x84)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x210733=await this[_0x17c982(0x13d)][_0x17c982(0x7f)](_0x5a86f5,Number(_0x2a2b6a),_0x216ec9);_0x210733&&_0x210733 instanceof _0x28d654&&this[_0x17c982(0x2a3)](_0x210733);}async[_0x267084(0x2a3)](_0x2bc081){const _0x20b5c0=_0x267084;await this[_0x20b5c0(0x184)](_0x2bc081),_0x2bc081[_0x20b5c0(0x240)][_0x20b5c0(0x162)](_0xae10c0(this[_0x20b5c0(0x1ef)]))['subscribe'](_0x434758=>{const _0x1a9250=_0x20b5c0;_0x434758&&this[_0x1a9250(0xe3)](_0x434758);}),this['_urlService'][_0x20b5c0(0x152)][_0x20b5c0(0x162)](_0xae10c0(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x2bc081));}[_0x267084(0xe3)](_0x3cc3a9,_0x5a1322=!0x1){const _0x10cf53=_0x267084,_0x368484=this['_urlService'][_0x10cf53(0x118)]('subunit');_0x3cc3a9[_0x10cf53(0x127)]()!==_0x368484&&this[_0x10cf53(0x96)][_0x10cf53(0x28b)](_0x10cf53(0x1cd),_0x3cc3a9[_0x10cf53(0x127)](),_0x5a1322);}async[_0x267084(0x184)](_0x4fdbfe){const _0x631bf8=_0x267084;var _0x449541;const _0x2146de=this[_0x631bf8(0x96)][_0x631bf8(0x118)](_0x631bf8(0x1cd));if(!_0x2146de||!_0x4fdbfe[_0x631bf8(0x1c7)](_0x2146de)){const _0x14290e=_0x4fdbfe[_0x631bf8(0x26a)]()[0x0],_0x46b800=_0x4fdbfe[_0x631bf8(0x1c7)](_0x14290e);if(!_0x46b800)return;this[_0x631bf8(0xe3)](_0x46b800,!0x0),await this[_0x631bf8(0x106)][_0x631bf8(0x1db)](_0x3a9ae4['id'],{'unitId':_0x4fdbfe[_0x631bf8(0x12e)](),'subUnitId':_0x14290e});return;}((_0x449541=_0x4fdbfe[_0x631bf8(0x209)]())==null?void 0x0:_0x449541[_0x631bf8(0x127)]())!==_0x2146de&&await this[_0x631bf8(0x106)][_0x631bf8(0x1db)](_0x3a9ae4['id'],{'unitId':_0x4fdbfe[_0x631bf8(0x12e)](),'subUnitId':_0x2146de});}};ce=Li([K(0x0,yt),K(0x1,_0x35d33d),K(0x2,_0x1da808),K(0x3,_0x19d3ff(_0x21f2b2)),K(0x4,_0x4cc534(_0x236c30))],ce);var Ui=Object[_0x267084(0x141)],Mi=(_0x5c0c3f,_0x5697b,_0x1bed9c,_0x29ce6f)=>{for(var _0x399d7c=_0x29ce6f>0x1?void 0x0:_0x29ce6f?Ui(_0x5697b,_0x1bed9c):_0x5697b,_0x35b2f3=_0x5c0c3f['length']-0x1,_0x56ca1f;_0x35b2f3>=0x0;_0x35b2f3--)(_0x56ca1f=_0x5c0c3f[_0x35b2f3])&&(_0x399d7c=_0x56ca1f(_0x399d7c)||_0x399d7c);return _0x399d7c;},rt=(_0xc72b4a,_0x21d18e)=>(_0x5822d0,_0x251649)=>_0x21d18e(_0x5822d0,_0x251649,_0xc72b4a);function _0x1936(_0x5c3cb9,_0x4f4234){const _0x30296d=_0x3029();return _0x1936=function(_0x19366f,_0x57b570){_0x19366f=_0x19366f-0x71;let _0x441568=_0x30296d[_0x19366f];return _0x441568;},_0x1936(_0x5c3cb9,_0x4f4234);}let $e=class extends _0x2699b6{constructor(_0x158b65,_0x56f887){const _0x2a6273=_0x267084;super(),this['_docClipboardService']=_0x158b65,this[_0x2a6273(0x13f)]=_0x56f887,this[_0x2a6273(0x2a0)]();}[_0x267084(0x2a0)](){const _0x3c0fc3=this;this['disposeWithMe'](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x5bbd42=>{const _0x1caf7f=_0x1936,_0x4c3df8=await _0x3c0fc3[_0x1caf7f(0x13f)][_0x1caf7f(0x167)](_0x5bbd42);return _0x4c3df8?{'source':_0x4c3df8['source'],'imageSourceType':_0x4c3df8[_0x1caf7f(0xbd)]}:null;}}));}};$e=Mi([rt(0x0,_0x22e109),rt(0x1,_0x5e00b7)],$e);const ot=[_0x267084(0x226),_0x267084(0x1a2),'green.600','red.300','blue.400',_0x267084(0x153)];class Ke extends _0x15b4c2{constructor(){const _0x401366=_0x267084;super(...arguments),_(this,_0x401366(0x202),new Map()),_(this,_0x401366(0x15e),0x0);}['assignAColorForMemberID'](_0x3736e1){const _0x2176bd=_0x267084;if(this['_assignedColors'][_0x2176bd(0x2b0)](_0x3736e1))return this[_0x2176bd(0x202)][_0x2176bd(0xf7)](_0x3736e1);const _0x485cf1=ot[this[_0x2176bd(0x15e)]];return this[_0x2176bd(0x15e)]=(this[_0x2176bd(0x15e)]+0x1)%ot[_0x2176bd(0xb1)],this['_assignedColors'][_0x2176bd(0x212)](_0x3736e1,_0x485cf1),_0x485cf1;}}function $t(_0x1ec765){const _0x3723b5=_0x267084;let _0xb5002='';for(const _0x12393e of _0x1ec765){const {startOffset:_0x182ebd,endOffset:_0x58129a,isActive:_0x546974,rangeType:_0x393d35,segmentId:_0x242a5d,segmentPage:_0x3df8f5}=_0x12393e;_0xb5002[_0x3723b5(0xb1)]&&(_0xb5002+=','),_0xb5002+=_0x182ebd+':'+_0x58129a+':'+(_0x546974?'1':'0')+':'+_0x393d35+':'+_0x242a5d+':'+_0x3df8f5;}return _0xb5002;}function Ai(_0x52cf52){const _0x8936c=_0x267084,_0x230db5=_0x52cf52[_0x8936c(0x2a9)](','),_0x558d72=[];for(const _0x2338e0 of _0x230db5){const [_0x5444fb,_0xb8ea6d,_0x25fa30,_0x431614,_0x47db52,_0x1de475]=_0x2338e0[_0x8936c(0x2a9)](':');_0x558d72['push']({'startOffset':Number(_0x5444fb),'endOffset':Number(_0xb8ea6d),'collapsed':_0x5444fb===_0xb8ea6d,'isActive':_0x25fa30==='1','rangeType':_0x431614===_0x324e87[_0x8936c(0x2a2)]?_0x324e87[_0x8936c(0x2a2)]:_0x324e87[_0x8936c(0x1ca)],'segmentId':typeof _0x47db52=='string'?String(_0x47db52):'','segmentPage':Number(_0x1de475!=null?_0x1de475:-0x1)});}return _0x558d72[_0x8936c(0x100)](_0x477c39=>_0x477c39[_0x8936c(0x27b)])||(_0x558d72[0x0][_0x8936c(0x27b)]=!0x0),_0x558d72;}class ze extends _0x2699b6{constructor(){const _0x3c6e89=_0x267084;super(...arguments),_(this,_0x3c6e89(0x2ab),new _0x1c42a0(null)),_(this,_0x3c6e89(0x191),this[_0x3c6e89(0x2ab)][_0x3c6e89(0x223)]());}['syncEditingCollabCursor'](_0x41c126){const _0x42e66a=_0x267084,{unitID:_0xc0c1ae,memberID:_0x2bea24,textRanges:_0x4c80d4}=_0x41c126,_0x53bd74=$t(_0x4c80d4);if(_0x53bd74==='')return;const _0x1526e1={'unitID':_0xc0c1ae,'memberID':_0x2bea24,'selection':_0x53bd74};this[_0x42e66a(0x2ab)]['next'](_0x1526e1);}}var Pi=Object[_0x267084(0x141)],wi=(_0x69d828,_0x66d7f8,_0x4377fe,_0xb70fd0)=>{const _0x6cfad6=_0x267084;for(var _0x3b9fb1=_0xb70fd0>0x1?void 0x0:_0xb70fd0?Pi(_0x66d7f8,_0x4377fe):_0x66d7f8,_0x388245=_0x69d828[_0x6cfad6(0xb1)]-0x1,_0x33cc56;_0x388245>=0x0;_0x388245--)(_0x33cc56=_0x69d828[_0x388245])&&(_0x3b9fb1=_0x33cc56(_0x3b9fb1)||_0x3b9fb1);return _0x3b9fb1;},A=(_0x317f37,_0x442e3a)=>(_0x76075a,_0x19c15c)=>_0x442e3a(_0x76075a,_0x19c15c,_0x317f37);const yi=0x12c,$i=0x64;let xe=class extends _0x2699b6{constructor(_0x40e78b,_0x327384,_0x5b4845,_0x5d5b57,_0x2ac984,_0xafa1a7,_0x3b591b,_0x5e768e,_0x4b17f3){const _0x582073=_0x267084;super(),_(this,_0x582073(0x22b),!0x1),_(this,_0x582073(0x2a0),!0x1),_(this,'_cursorInfo$',new _0x1c42a0(new Map())),_(this,_0x582073(0x9f),this[_0x582073(0x1a3)][_0x582073(0x223)]()),_(this,_0x582073(0x1e3),new _0x1c42a0([])),_(this,_0x582073(0x211),this[_0x582073(0x1e3)][_0x582073(0x162)](_0x1f60ae(yi))),_(this,_0x582073(0x19e),_0x1dbae4(_0x216247=>{const _0x37a596=_0x582073,_0x1b8b77={'eventID':_0x11a4ac['UPDATE_CURSOR'],'data':{'unitID':this[_0x37a596(0xf1)],'memberID':this[_0x37a596(0x187)][_0x37a596(0x1f5)](),'selection':$t(_0x216247)}};this['_session'][_0x37a596(0x2af)](_0x1b8b77,this[_0x37a596(0xf1)]);},$i)),(this[_0x582073(0xf1)]=_0x40e78b,this[_0x582073(0x187)]=_0x327384,this['_injector']=_0x5b4845,this[_0x582073(0x1f3)]=_0x5d5b57,this[_0x582073(0x2b6)]=_0x2ac984,this[_0x582073(0x17d)]=_0xafa1a7,this['_transformService']=_0x3b591b,this[_0x582073(0x289)]=_0x5e768e,this[_0x582073(0x106)]=_0x4b17f3);}get[_0x267084(0x207)](){return this['_cursorInfo$']['getValue']();}get[_0x267084(0x12d)](){const _0x447872=_0x267084;return this[_0x447872(0x1e3)][_0x447872(0x1d8)]();}[_0x267084(0x18a)](){const _0x576266=_0x267084;super[_0x576266(0x18a)](),this[_0x576266(0x1a3)][_0x576266(0xdc)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this[_0x576266(0x1e3)][_0x576266(0x264)]();}[_0x267084(0x90)](){const _0x1eee4f=_0x267084;this[_0x1eee4f(0x2a0)]||(this[_0x1eee4f(0x2a0)]=!0x0,this[_0x1eee4f(0x187)]['sessionStatus$'][_0x1eee4f(0x162)](_0xae10c0(this['dispose$']))['subscribe'](_0x2ce2f1=>{const _0x38b123=_0x1eee4f;_0x2ce2f1===_0x2f3a8a['ONLINE']?this['_toggleOnline']():this[_0x38b123(0x117)]();}),this[_0x1eee4f(0x187)][_0x1eee4f(0xac)]['pipe'](_0xae10c0(this['dispose$']))[_0x1eee4f(0x116)](_0x1475ea=>{const _0x4bc500=_0x1eee4f,_0x59f9a3=_0x1475ea[_0x4bc500(0x1e0)];_0x59f9a3===_0x11a4ac[_0x4bc500(0x22c)]&&this[_0x4bc500(0xfb)](_0x1475ea),_0x59f9a3===_0x11a4ac[_0x4bc500(0x296)]&&this[_0x4bc500(0x146)](_0x1475ea);}),this['disposeWithMe'](this['_commandService'][_0x1eee4f(0xf0)](_0x50fc40=>{const _0x4e581e=_0x1eee4f,_0x3ce890=_0x50fc40['params'];_0x3ce890!=null&&this[_0x4e581e(0x22b)]&&_0x50fc40['id']===_0x4e5c0b['id']&&_0x3ce890[_0x4e581e(0x2aa)]===this[_0x4e581e(0xf1)]&&_0x3ce890[_0x4e581e(0x228)]===!0x1&&_0x3ce890[_0x4e581e(0xfd)][_0x4e581e(0xb1)]>0x0&&this['_updateLocalCursor'](_0x3ce890[_0x4e581e(0xfd)]);})),this[_0x1eee4f(0x17d)]['collabCursorState$'][_0x1eee4f(0x162)](_0xae10c0(this[_0x1eee4f(0x1ef)]))[_0x1eee4f(0x116)](_0x3d7741=>{const _0x5e3edd=_0x1eee4f;if((_0x3d7741==null?void 0x0:_0x3d7741[_0x5e3edd(0xf1)])!==this['unitID'])return;const _0x4df19c={'eventID':_0x11a4ac[_0x5e3edd(0x22c)],'data':_0x3d7741};this[_0x5e3edd(0xfb)](_0x4df19c);}),this['disposeWithMe'](this[_0x1eee4f(0x106)][_0x1eee4f(0xf0)](_0x62a2d9=>{const _0x5330b1=_0x1eee4f;if(_0x62a2d9[_0x5330b1(0x199)]==null)return;const _0x43b648=_0x62a2d9[_0x5330b1(0x199)];if(_0x62a2d9['id']!==_0xd50203['id']||_0x43b648['unitId']!==this[_0x5330b1(0xf1)])return;const _0x47749c={'id':_0x5330b1(0x1e5),'params':_0x43b648},_0xab0741=this[_0x5330b1(0x207)];for(const [_0x2705a3,_0x5b60f8]of _0xab0741){const _0xb7585={'id':_0x5330b1(0x1e5),'params':{'unitId':this[_0x5330b1(0xf1)],'actions':null,'textRanges':_0x5b60f8['ranges']}},_0x4d936c=this['_transformService'][_0x5330b1(0x15f)](_0x47749c,_0xb7585,!0x1);if(_0x3d1fb0(_0x4d936c))throw _0x4d936c[_0x5330b1(0x145)];_0xab0741[_0x5330b1(0x212)](_0x2705a3,{..._0x5b60f8,'ranges':_0x4d936c[_0x5330b1(0x1fe)][_0x5330b1(0x199)][_0x5330b1(0x245)]});}queueMicrotask(()=>{const _0x4311fe=_0x5330b1;this[_0x4311fe(0x1a3)][_0x4311fe(0xdc)](_0xab0741);});})));}[_0x267084(0xfb)](_0x21ae12){const _0x54a098=_0x267084;var _0x3edb74,_0x3cf6c5;const {memberID:_0x372255,selection:_0x25867a}=_0x21ae12['data'],_0x157dd6=Ai(_0x25867a),_0x542362=(_0x3cf6c5=(_0x3edb74=this[_0x54a098(0x2b6)][_0x54a098(0x271)](this['unitID'],_0x372255))==null?void 0x0:_0x3edb74['name'])!=null?_0x3cf6c5:_0x54a098(0x140),_0x1c208b={'color':this['_colorAssignService'][_0x54a098(0x163)](_0x372255),'name':_0x542362,'ranges':_0x157dd6},_0x164796=this[_0x54a098(0x207)];_0x164796[_0x54a098(0x212)](_0x372255,_0x1c208b),this[_0x54a098(0x1a3)]['next'](_0x164796);}[_0x267084(0x146)](_0x540d9e){const _0x8f6a48=_0x267084,{memberID:_0x470742}=_0x540d9e[_0x8f6a48(0x255)],_0x1b9d27=this['cursorInfo'];_0x1b9d27['delete'](_0x470742),this[_0x8f6a48(0x1a3)][_0x8f6a48(0xdc)](_0x1b9d27);}[_0x267084(0x179)](){const _0x3a92e9=_0x267084;var _0x277772;if(this[_0x3a92e9(0x22b)]=!0x0,((_0x277772=this[_0x3a92e9(0x289)]['getFocusedUnit']())==null?void 0x0:_0x277772[_0x3a92e9(0x12e)]())!==this[_0x3a92e9(0xf1)])return;const _0x58c847=this[_0x3a92e9(0x298)][_0x3a92e9(0xf7)](_0x22e39b)[_0x3a92e9(0xd2)]();Array[_0x3a92e9(0xc1)](_0x58c847)&&_0x58c847[_0x3a92e9(0xb1)]>0x0&&this[_0x3a92e9(0x19e)](_0x58c847);}[_0x267084(0x117)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x19d3ff(_0x4ab7f8)),A(0x3,_0x19d3ff(Ke)),A(0x4,_0x19d3ff(_0x277671)),A(0x5,_0x19d3ff(ze)),A(0x6,_0xe0c62a),A(0x7,_0x121c1a),A(0x8,_0x1da808)],xe);var xi=Object[_0x267084(0x141)],Bi=(_0xdf828c,_0x4cdd4c,_0x46ba61,_0x535361)=>{for(var _0x47abe2=_0x535361>0x1?void 0x0:_0x535361?xi(_0x4cdd4c,_0x46ba61):_0x4cdd4c,_0x483aaf=_0xdf828c['length']-0x1,_0x2e4344;_0x483aaf>=0x0;_0x483aaf--)(_0x2e4344=_0xdf828c[_0x483aaf])&&(_0x47abe2=_0x2e4344(_0x47abe2)||_0x47abe2);return _0x47abe2;},B=(_0x5e2ef8,_0x2988b4)=>(_0x48e1eb,_0x22b1f4)=>_0x2988b4(_0x48e1eb,_0x22b1f4,_0x5e2ef8);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x1c40b8=[],_0xe800ce=!0x1;return _0x362ad7=>{const _0x31cf94=_0x1936;_0x1c40b8[_0x31cf94(0x224)](_0x362ad7),_0xe800ce||(_0xe800ce=!0x0,setTimeout(()=>{const _0x3d0f66=_0x31cf94;_0x1c40b8[_0x3d0f66(0x236)](_0x5dafee=>_0x5dafee()),_0x1c40b8=[],_0xe800ce=!0x1;}));};};let Be=class extends _0x2699b6{constructor(_0x27b868,_0x1a353a,_0x3c24d4,_0x4d225e,_0x59da94,_0x1587fa,_0x198ada,_0x5facd8){const _0x348651=_0x267084;super(),_(this,_0x348651(0x22b),!0x1),_(this,_0x348651(0x2a0),!0x1),_(this,'_cursorInfo$',new _0x1c42a0(new Map())),_(this,_0x348651(0x9f),this[_0x348651(0x1a3)][_0x348651(0x223)]()),_(this,'_roomMembers$',new _0x1c42a0([])),_(this,_0x348651(0x211),this[_0x348651(0x1e3)][_0x348651(0x162)](_0x1f60ae(Fi))),_(this,'_updateLocalCursor',_0x1dbae4((_0x12782f,_0x199cca)=>{const _0x35ccb1=_0x348651,_0x471fd3={'eventID':_0x11a4ac[_0x35ccb1(0x22c)],'data':{'unitID':this[_0x35ccb1(0xf1)],'memberID':this[_0x35ccb1(0x187)]['getMemberID'](),'selection':_0x104646(_0x12782f,_0x199cca[_0x35ccb1(0x20e)])}};this[_0x35ccb1(0x187)][_0x35ccb1(0x2af)](_0x471fd3,this['unitID']);},ki)),(this['unitID']=_0x27b868,this[_0x348651(0x187)]=_0x1a353a,this['_injector']=_0x3c24d4,this[_0x348651(0x1f3)]=_0x4d225e,this[_0x348651(0x2b6)]=_0x59da94,this[_0x348651(0x289)]=_0x1587fa,this[_0x348651(0x106)]=_0x198ada,this['_refRangeService']=_0x5facd8);}get['cursorInfo'](){const _0x3b0399=_0x267084;return this['_cursorInfo$'][_0x3b0399(0x1d8)]();}get[_0x267084(0x12d)](){const _0x161cad=_0x267084;return this[_0x161cad(0x1e3)][_0x161cad(0x1d8)]();}['dispose'](){const _0x10bd0b=_0x267084;super[_0x10bd0b(0x18a)](),this[_0x10bd0b(0x1a3)][_0x10bd0b(0xdc)](new Map()),this['_cursorInfo$']['complete'](),this[_0x10bd0b(0x1e3)][_0x10bd0b(0xdc)]([]),this[_0x10bd0b(0x1e3)][_0x10bd0b(0x264)]();}['init'](){const _0x2caf03=_0x267084;this[_0x2caf03(0x2a0)]||(this['_init']=!0x0,this['_session'][_0x2caf03(0x131)][_0x2caf03(0x162)](_0xae10c0(this['dispose$']))[_0x2caf03(0x116)](_0x5f52fa=>{const _0x1bb4b2=_0x2caf03;_0x5f52fa===_0x2f3a8a[_0x1bb4b2(0x26d)]?this[_0x1bb4b2(0x179)]():this['_toggleOffline']();}),this[_0x2caf03(0x187)][_0x2caf03(0xac)][_0x2caf03(0x162)](_0xae10c0(this[_0x2caf03(0x1ef)]))[_0x2caf03(0x116)](_0x4d2939=>{const _0x19d1fe=_0x2caf03,_0x382a51=_0x4d2939[_0x19d1fe(0x1e0)];_0x382a51===_0x11a4ac[_0x19d1fe(0x22c)]&&this[_0x19d1fe(0xfb)](_0x4d2939),_0x382a51===_0x11a4ac[_0x19d1fe(0x296)]&&this[_0x19d1fe(0x146)](_0x4d2939);}),this['_onRefRangeChange'](),this[_0x2caf03(0x134)](this['_commandService']['onCommandExecuted'](_0x376b95=>{const _0x455276=_0x2caf03;if(this['_online']&&_0x376b95['id']===_0x471d36['id']&&_0x376b95[_0x455276(0x199)]['unitId']===this['unitID']){const _0x2735d4=_0x376b95[_0x455276(0x199)];this[_0x455276(0x19e)](_0x2735d4[_0x455276(0xdb)],_0x2735d4[_0x455276(0x157)][0x0]);}})));}['_onCursorUpdate'](_0xd21314){const _0x51f698=_0x267084;var _0x5e2471,_0x26ed8a;const {memberID:_0x3b68bf,selection:_0x1cceb2}=_0xd21314[_0x51f698(0x255)],{sheetName:_0x24b0e3,range:_0x25c61d}=_0x3813d3(_0x1cceb2),_0x5ef7c7={'name':(_0x26ed8a=(_0x5e2471=this['_memberService'][_0x51f698(0x271)](this[_0x51f698(0xf1)],_0x3b68bf))==null?void 0x0:_0x5e2471[_0x51f698(0xc6)])!=null?_0x26ed8a:'Unknown\x20user','range':this[_0x51f698(0x1d6)](_0x24b0e3,_0x25c61d),'sheetID':_0x24b0e3,'color':this[_0x51f698(0x1f3)][_0x51f698(0x163)](_0x3b68bf),'selection':_0x1cceb2},_0x1db8c1=this['cursorInfo'];_0x1db8c1['set'](_0x3b68bf,_0x5ef7c7),this[_0x51f698(0x1a3)][_0x51f698(0xdc)](_0x1db8c1);}[_0x267084(0x146)](_0x2e65e8){const _0x203d60=_0x267084,{memberID:_0x1ca141}=_0x2e65e8[_0x203d60(0x255)],_0x1ee969=this[_0x203d60(0x207)];_0x1ee969[_0x203d60(0x74)](_0x1ca141),this['_cursorInfo$'][_0x203d60(0xdc)](_0x1ee969);}[_0x267084(0x1d6)](_0x15188c,_0x48ff27){const _0x5dbab0=_0x267084;var _0x42cb4b,_0x2a63f6;const _0x103227=(_0x2a63f6=(_0x42cb4b=this[_0x5dbab0(0x289)][_0x5dbab0(0x188)](this['unitID']))==null?void 0x0:_0x42cb4b[_0x5dbab0(0x1c7)](_0x15188c))==null?void 0x0:_0x2a63f6[_0x5dbab0(0x20b)]();return(_0x103227==null?void 0x0:_0x103227['find'](_0x5cfc61=>_0x24337c['contains'](_0x5cfc61,_0x48ff27)))||_0x48ff27;}[_0x267084(0x258)](){const _0x3f6189=_0x267084,_0x381521=new _0x5466e2(),_0x39dd87=Hi(),_0x3c0c08=()=>{const _0x5d41e0=_0x1936;_0x381521['dispose']();const _0x47171e=(_0x11880b,_0x18d6a7,_0x17f6ee,_0x52f54d)=>{const _0x3f0af5=_0x1936;let _0x4eb1c1=[];switch(_0x11880b['id']){case _0x4f3975['DeleteRangeMoveLeftCommandId']:{_0x4eb1c1=_0x1876c5(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x159)]:{_0x4eb1c1=_0x471afe(_0x11880b,_0x52f54d);break;}case _0x4f3975['InsertColCommandId']:{_0x4eb1c1=_0x123e0e(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x112)]:{_0x4eb1c1=_0x4c1240(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x19a)]:{_0x4eb1c1=_0x4156ba(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x154)]:{_0x4eb1c1=_0x599989(_0x11880b,_0x52f54d);break;}case _0x4f3975['MoveRangeCommandId']:{_0x4eb1c1=_0x4ff5db(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0xed)]:{_0x4eb1c1=_0x2189b3(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x8e)]:{_0x4eb1c1=_0x440e43(_0x11880b,_0x52f54d);break;}}const _0x1e264e=_0x485055(_0x4eb1c1,_0x52f54d),_0x1b2367=this[_0x3f0af5(0x207)][_0x3f0af5(0xf7)](_0x18d6a7);if(_0x1b2367&&_0x1e264e){const _0x48cd17={..._0x1b2367,'range':_0x1e264e};this['cursorInfo']['set'](_0x18d6a7,_0x48cd17),_0x39dd87(()=>{const _0x474162=_0x3f0af5,_0x7bd18a=this[_0x474162(0x125)][_0x474162(0x80)](_0x1e264e,_0x9aa033=>(_0x7bd18a[_0x474162(0x18a)](),_0x47171e(_0x9aa033,_0x18d6a7,_0x17f6ee,_0x1e264e)));_0x381521[_0x474162(0x186)](_0x7bd18a);});}return{'redos':[],'undos':[]};};this[_0x5d41e0(0x207)][_0x5d41e0(0x236)]((_0x433447,_0x3e8791)=>{const _0x482d50=_0x5d41e0,{range:_0x32c74d,sheetID:_0x5706c9}=_0x433447,_0x3b2be0=this['_refRangeService'][_0x482d50(0x80)](_0x32c74d,_0x37d47c=>(_0x3b2be0['dispose'](),_0x47171e(_0x37d47c,_0x3e8791,_0x5706c9,_0x32c74d)));_0x381521[_0x482d50(0x186)](_0x3b2be0);});};this[_0x3f6189(0x134)](_0x490c7d(this['_cursorInfo$'][_0x3f6189(0x116)](()=>{_0x3c0c08();})));}['_toggleOnline'](){const _0x2ba0f9=_0x267084;var _0x11141b,_0x3220b5;if(this[_0x2ba0f9(0x22b)]=!0x0,((_0x11141b=this[_0x2ba0f9(0x289)][_0x2ba0f9(0x241)]())==null?void 0x0:_0x11141b[_0x2ba0f9(0x12e)]())!==this[_0x2ba0f9(0xf1)])return;const _0x4f17c7=(_0x3220b5=this[_0x2ba0f9(0x298)]['get'](_0x308ea6)['getCurrentSelections']())==null?void 0x0:_0x3220b5[0x0],_0x477380=this[_0x2ba0f9(0x289)][_0x2ba0f9(0x1e8)](_0x24166e[_0x2ba0f9(0x1b6)])[_0x2ba0f9(0x209)]();_0x4f17c7&&_0x477380&&this[_0x2ba0f9(0x19e)](_0x477380[_0x2ba0f9(0x127)](),_0x4f17c7);}[_0x267084(0x117)](){const _0x2d4cae=_0x267084;this[_0x2d4cae(0x22b)]=!0x1;}};Be=Bi([B(0x2,_0x19d3ff(_0x4ab7f8)),B(0x3,_0x19d3ff(Ke)),B(0x4,_0x19d3ff(_0x277671)),B(0x5,_0x121c1a),B(0x6,_0x1da808),B(0x7,_0x19d3ff(_0x550286))],Be);var Yi=Object[_0x267084(0x141)],Wi=(_0x5916a7,_0x15035b,_0x5cd033,_0x17e319)=>{const _0x26812f=_0x267084;for(var _0x196038=_0x17e319>0x1?void 0x0:_0x17e319?Yi(_0x15035b,_0x5cd033):_0x15035b,_0x1282a2=_0x5916a7[_0x26812f(0xb1)]-0x1,_0x814497;_0x1282a2>=0x0;_0x1282a2--)(_0x814497=_0x5916a7[_0x1282a2])&&(_0x196038=_0x814497(_0x196038)||_0x196038);return _0x196038;},Ce=(_0x80c51f,_0x335090)=>(_0x597d3e,_0x5c5c72)=>_0x335090(_0x597d3e,_0x5c5c72,_0x80c51f);let H=class extends _0x2699b6{constructor(_0x1eb740,_0x54b29f,_0x4dc46f){const _0x49de54=_0x267084;super(),_(this,_0x49de54(0x29b),new Map()),_(this,'_entityInit$',new _0x47c8c8()),(this[_0x49de54(0x289)]=_0x1eb740,this[_0x49de54(0x298)]=_0x54b29f,this['_collabSessionService']=_0x4dc46f,this['_init']());}[_0x267084(0x18a)](){const _0x3593d4=_0x267084;super['dispose'](),this[_0x3593d4(0x102)][_0x3593d4(0x264)](),this[_0x3593d4(0x29b)][_0x3593d4(0x236)](_0x2fe218=>_0x2fe218[_0x3593d4(0x18a)]());}[_0x267084(0xc2)](_0x54f275){const _0x258bee=_0x267084;return this[_0x258bee(0x29b)]['has'](_0x54f275)?this[_0x258bee(0x29b)]['get'](_0x54f275)['cursorInfo$']:this['_entityInit$'][_0x258bee(0x162)](_0x54fc49(_0x705e4f=>_0x705e4f[_0x258bee(0xf1)]===_0x54f275),_0x481021(_0x100e93=>_0x100e93[_0x258bee(0x9f)]));}['_init'](){const _0x56bd16=_0x267084;this['_univerInstanceService'][_0x56bd16(0x17f)](_0x24166e[_0x56bd16(0x1b6)])[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x116)](async _0x527beb=>{const _0x392391=_0x56bd16,_0x2641a4=_0x527beb[_0x392391(0x12e)](),_0x466fd3=await this[_0x392391(0x2b2)](_0x2641a4);this['_entityInit$'][_0x392391(0xdc)](_0x466fd3),this['_entities'][_0x392391(0x212)](_0x2641a4,_0x466fd3);}),this[_0x56bd16(0x289)][_0x56bd16(0x17f)](_0x24166e[_0x56bd16(0x17b)])[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x162)](_0x54fc49(_0xf87ebb=>!_0xf87ebb['getUnitId']()[_0x56bd16(0xc9)]('__')))[_0x56bd16(0x116)](async _0x5a2a8c=>{const _0x446624=_0x56bd16,_0x54a7b8=_0x5a2a8c[_0x446624(0x12e)](),_0x42f17d=await this['_startDocCollabCursor'](_0x54a7b8);this[_0x446624(0x102)]['next'](_0x42f17d),this[_0x446624(0x29b)]['set'](_0x54a7b8,_0x42f17d);}),_0xe0d349(this[_0x56bd16(0x289)]['getTypeOfUnitDisposed$'](_0x24166e[_0x56bd16(0x17b)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x24166e[_0x56bd16(0x1b6)]))[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x116)](_0x531652=>{const _0x4522ef=_0x56bd16,_0x402393=_0x531652[_0x4522ef(0x12e)](),_0x220ebb=this[_0x4522ef(0x29b)][_0x4522ef(0xf7)](_0x402393);_0x220ebb&&(_0x220ebb[_0x4522ef(0x18a)](),this[_0x4522ef(0x29b)][_0x4522ef(0x74)](_0x402393));});}async['_startSheetCollabCursor'](_0x3f702e){const _0x4315d8=_0x267084,_0x3a3954=await this[_0x4315d8(0x1d9)]['requireSession'](_0x3f702e),_0xc7ab35=this['_injector'][_0x4315d8(0x10a)](Be,_0x3f702e,_0x3a3954);return _0xc7ab35[_0x4315d8(0x90)](),_0xc7ab35;}async[_0x267084(0x21c)](_0x35f262){const _0x32aaf5=_0x267084,_0x2d643b=await this[_0x32aaf5(0x1d9)][_0x32aaf5(0x174)](_0x35f262),_0x96b79=this[_0x32aaf5(0x298)][_0x32aaf5(0x10a)](xe,_0x35f262,_0x2d643b);return _0x96b79[_0x32aaf5(0x90)](),_0x96b79;}};H=Wi([Ce(0x0,_0x121c1a),Ce(0x1,_0x19d3ff(_0x4ab7f8)),Ce(0x2,_0x19d3ff(_0x30d8be))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x292bf8,_0x2f1c35){const _0x4adfcb=_0x267084;let {radius:_0x3e5ff0,width:_0x4e6683,height:_0x2bfaf4}=_0x2f1c35;_0x3e5ff0=_0x3e5ff0!=null?_0x3e5ff0:0x0,_0x4e6683=_0x4e6683!=null?_0x4e6683:0x1e,_0x2bfaf4=_0x2bfaf4!=null?_0x2bfaf4:0x1e;let _0x5b8b07=0x0,_0x5d5b9a=0x0,_0x57d6e6=0x0;_0x5b8b07=_0x5d5b9a=_0x57d6e6=Math['min'](_0x3e5ff0,_0x4e6683/0x2,_0x2bfaf4/0x2),_0x292bf8[_0x4adfcb(0x210)](),_0x292bf8[_0x4adfcb(0x1c3)](_0x5b8b07,0x0),_0x292bf8[_0x4adfcb(0x248)](_0x4e6683-_0x5d5b9a,0x0),_0x292bf8['arc'](_0x4e6683-_0x5d5b9a,_0x5d5b9a,_0x5d5b9a,Math['PI']*0x3/0x2,0x0,!0x1),_0x292bf8['lineTo'](_0x4e6683,_0x2bfaf4-_0x57d6e6),_0x292bf8[_0x4adfcb(0x19c)](_0x4e6683-_0x57d6e6,_0x2bfaf4-_0x57d6e6,_0x57d6e6,0x0,Math['PI']/0x2,!0x1),_0x292bf8[_0x4adfcb(0x248)](0x0,_0x2bfaf4),_0x292bf8['lineTo'](0x0,_0x5b8b07),_0x292bf8[_0x4adfcb(0x19c)](_0x5b8b07,_0x5b8b07,_0x5b8b07,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x292bf8[_0x4adfcb(0x12c)](),_0x2f1c35[_0x4adfcb(0x1f8)]&&(_0x292bf8['save'](),_0x292bf8[_0x4adfcb(0x11b)]=_0x2f1c35[_0x4adfcb(0x1f8)],_0x2f1c35[_0x4adfcb(0x1c9)]===_0x4adfcb(0x22d)?_0x292bf8['fill'](_0x4adfcb(0x22d)):_0x292bf8[_0x4adfcb(0x1f8)](),_0x292bf8[_0x4adfcb(0x190)]());}class Ee extends _0x48592f{constructor(_0x359010,_0x1a1644){const _0x38760e=_0x267084;super(_0x359010,_0x1a1644),_(this,'color'),_(this,_0x38760e(0x1a5)),(this[_0x38760e(0x22e)]=_0x1a1644==null?void 0x0:_0x1a1644[_0x38760e(0x22e)],this['text']=_0x1a1644==null?void 0x0:_0x1a1644[_0x38760e(0x1a5)]);}static[_0x267084(0x265)](_0x3e2a7f,_0x5214d1){const _0x13f29c=_0x267084,{text:_0x5eb804,color:_0x1d8d1f}=_0x5214d1;_0x3e2a7f['save'](),_0x3e2a7f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2f82fc=_0x3e2a7f[_0x13f29c(0x164)](_0x5eb804)[_0x13f29c(0x1ec)],_0x5a3cb2=Math[_0x13f29c(0x1f1)](_0x2f82fc+0x2*Re,at);Vi(_0x3e2a7f,{'height':Q,'radius':0x4,'width':_0x5a3cb2,'fill':_0x1d8d1f}),_0x3e2a7f[_0x13f29c(0x11b)]='#FFF';const _0x403d0e=Re,_0xbbf2b4=Q-ji,_0x233787=at-0x2*Re;if(_0x2f82fc>_0x233787){let _0x3f92eb='',_0xf1f2e5=0x0;for(const _0x213ab7 of _0x5eb804){const _0x238215=_0x3e2a7f[_0x13f29c(0x164)](_0x213ab7)[_0x13f29c(0x1ec)];if(_0xf1f2e5+_0x238215<=_0x233787-_0x3e2a7f[_0x13f29c(0x164)](_0x13f29c(0x142))[_0x13f29c(0x1ec)])_0x3f92eb+=_0x213ab7,_0xf1f2e5+=_0x238215;else{_0x3f92eb+='...';break;}}_0x3e2a7f[_0x13f29c(0xcf)](_0x3f92eb,_0x403d0e,_0xbbf2b4);}else _0x3e2a7f[_0x13f29c(0xcf)](_0x5eb804,_0x403d0e,_0xbbf2b4);_0x3e2a7f[_0x13f29c(0x190)]();}[_0x267084(0xaa)](_0x3af75e){Ee['drawWith'](_0x3af75e,this);}}const De=_0x267084(0xe6),Xi='collab-text-range-',Gi=_0x267084(0x24f),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x502b85,_0x19154b,_0x158dfd,_0x2a5818){const _0x17719e=_0x267084;_(this,_0x17719e(0x1e1),[]),_(this,_0x17719e(0xf3),null),_(this,_0x17719e(0x11f),null),_(this,'_anchorDot',null),_(this,_0x17719e(0x281),null),_(this,_0x17719e(0x250),null),(this[_0x17719e(0x108)]=_0x502b85,this[_0x17719e(0x29a)]=_0x19154b,this[_0x17719e(0x285)]=_0x158dfd,this['_document']=_0x2a5818,this['_render']());}set['_hover'](_0x1d4228){const _0x213338=_0x267084;_0x1d4228?(this[_0x213338(0x17a)]&&this['_anchorDot'][_0x213338(0x1b7)](),this[_0x213338(0x11f)]&&this['_textBubble'][_0x213338(0x16a)]()):(this[_0x213338(0x17a)]&&this[_0x213338(0x17a)]['show'](),this[_0x213338(0x11f)]&&this[_0x213338(0x11f)][_0x213338(0x1b7)]());}[_0x267084(0x18a)](){const _0x3afba7=_0x267084;for(const _0x440d60 of this[_0x3afba7(0x1e1)])_0x440d60['dispose']();this[_0x3afba7(0x11f)]&&this['_textBubble']['dispose'](),this[_0x3afba7(0x17a)]&&this[_0x3afba7(0x17a)][_0x3afba7(0x18a)](),this[_0x3afba7(0xf3)]&&this[_0x3afba7(0xf3)][_0x3afba7(0x18a)](),this[_0x3afba7(0x250)]&&this[_0x3afba7(0x250)]();}[_0x267084(0x196)](){const _0x558aa1=_0x267084;var _0x456691;const {_docSkeleton:_0x3f6578,_document:_0x6d578a}=this,{color:_0x690d63,name:_0x40eaec,ranges:_0x506017}=this['_cursor'],_0x2fb572=_0x6d578a[_0x558aa1(0x1cc)](),{docsLeft:_0x2c088a,docsTop:_0x381b76}=_0x2fb572,_0xb8f0f3=new _0x49e5c6(_0x2fb572,_0x3f6578);for(const {startOffset:_0x9dd2e7,endOffset:_0x2c0fab,rangeType:_0x6da89c,segmentId:_0x1aad84,segmentPage:_0x513922,collapsed:_0x3e379b,isActive:_0x4df96d}of _0x506017){const _0x588cba=_0x3f6578[_0x558aa1(0x262)](_0x9dd2e7,!0x0,_0x1aad84,_0x513922);let _0x48edcc=_0x3f6578[_0x558aa1(0x262)](_0x2c0fab,!0x0,_0x1aad84,_0x513922);if(_0x48edcc==null&&(_0x48edcc=_0x3f6578['findNodePositionByCharIndex'](_0x2c0fab-0x1,!0x1,_0x1aad84,_0x513922)),_0x4df96d){const {contentBoxPointGroup:_0x575d20}=_0xb8f0f3[_0x558aa1(0x1ac)](_0x48edcc,_0x48edcc);if(_0x575d20['length']===0x0)continue;this[_0x558aa1(0x26e)](_0x690d63,_0x575d20,_0x2c088a,_0x381b76,_0x40eaec),this[_0x558aa1(0x250)]=this['_handleHover']();}if(_0x588cba&&_0x48edcc){if(_0x6da89c===_0x324e87['RECT']){const _0xaf9a38=new _0x307f3d(_0x2fb572,_0x3f6578),{pointGroup:_0x137c4a}=(_0x456691=_0xaf9a38[_0x558aa1(0x1ac)](_0x588cba,_0x48edcc))!=null?_0x456691:{};if(_0x137c4a==null||_0x137c4a[_0x558aa1(0xb1)]===0x0)continue;this[_0x558aa1(0x18d)](_0x690d63,_0x137c4a,_0x2c088a,_0x381b76);}else{if(!_0x3e379b){const {borderBoxPointGroup:_0x24ca21}=_0xb8f0f3['getRangePointData'](_0x588cba,_0x48edcc);if(_0x24ca21[_0x558aa1(0xb1)]===0x0)continue;this[_0x558aa1(0x278)](_0x690d63,_0x24ca21,_0x2c088a,_0x381b76);}}}}}[_0x267084(0x26e)](_0x52f927,_0xfd8b38,_0x102c65,_0x143613,_0x5619ed){const _0x344c26=_0x267084,_0x9c010d=this[_0x344c26(0xa3)](_0xfd8b38),{left:_0x2d98ab,top:_0x16c299,height:_0x210f19}=_0x9c010d,_0x5a7779=this[_0x344c26(0x29c)](),_0x1e58b4=zi/_0x5a7779,_0x162b22=new _0x3692f4(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613,'height':_0x210f19,'width':Ki,'fill':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'strokeWidth':_0x1e58b4,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x162b22,this[_0x344c26(0x29a)]['addObject'](_0x162b22,_0x314e8b);const _0x26e616=new _0x3692f4(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613-be/0x2,'height':be,'width':be,'fill':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'strokeWidth':0x0,'stroke':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'evented':!0x1});this[_0x344c26(0x17a)]=_0x26e616,this['_scene'][_0x344c26(0xe4)](_0x26e616,_0x314e8b);const _0xa0f762=new Ee(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613-Q,'text':_0x5619ed,'color':_0x52f927});this[_0x344c26(0x11f)]=_0xa0f762,this[_0x344c26(0x29a)][_0x344c26(0xe4)](_0xa0f762,_0x314e8b),this['_hover']=!0x1;}['_handleHover'](){const _0x7162c0=_0x267084,_0x1eac02=this[_0x7162c0(0xf3)][_0x7162c0(0x2a4)][_0x7162c0(0x11e)](()=>{const _0x7d88ca=_0x7162c0;this[_0x7d88ca(0xf9)]=!0x0;}),_0x421b02=this[_0x7162c0(0xf3)][_0x7162c0(0x86)][_0x7162c0(0x11e)](()=>{const _0x23d5a0=_0x7162c0;this[_0x23d5a0(0x281)]&&clearTimeout(this[_0x23d5a0(0x281)]),this[_0x23d5a0(0x281)]=setTimeout(()=>{const _0x5ef7ad=_0x23d5a0;this[_0x5ef7ad(0xf9)]=!0x1;},0x7d0);});return()=>{const _0x24a26e=_0x7162c0;_0x1eac02['unsubscribe'](),_0x421b02[_0x24a26e(0x290)]();};}['_drawTextRange'](_0x23564f,_0x62a168,_0x4a8965,_0x1ea100){const _0x1f4376=_0x267084,_0x3aaf02=new _0x51eb2d(_0x23564f)[_0x1f4376(0x11d)](0.2)[_0x1f4376(0x1d2)](),_0x107382=new _0x328f70(Xi+_0x3add1d(z),{'pointsGroup':_0x62a168,'fill':_0x3aaf02||_0x16f499(_0x3d6b49[_0x1f4376(0x160)],0.2),'left':_0x4a8965,'top':_0x1ea100,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1f4376(0x224)](_0x107382),this[_0x1f4376(0x29a)][_0x1f4376(0xe4)](_0x107382,_0x314e8b);}[_0x267084(0x18d)](_0x16641d,_0x4432a8,_0x4569e3,_0x4b59fd){const _0x43fa61=_0x267084,_0x299ca0=new _0x51eb2d(_0x16641d)[_0x43fa61(0x11d)](0.2)[_0x43fa61(0x1d2)](),_0x4a648a=new _0x328f70(Gi+_0x3add1d(z),{'pointsGroup':_0x4432a8,'fill':_0x299ca0||_0x16f499(_0x3d6b49[_0x43fa61(0x160)],0.2),'left':_0x4569e3,'top':_0x4b59fd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43fa61(0x1e1)][_0x43fa61(0x224)](_0x4a648a),this[_0x43fa61(0x29a)][_0x43fa61(0xe4)](_0x4a648a,_0x314e8b);}[_0x267084(0xa3)](_0x5b650c){const _0x5746ea=_0x5b650c[0x0],_0x4e7de5=_0x5746ea[0x0],_0x4f0374=_0x5746ea[0x2],{x:_0x2972c1,y:_0x114508}=_0x4e7de5,{x:_0x2cddc0,y:_0x364333}=_0x4f0374;return{'left':_0x2972c1,'top':_0x114508,'width':_0x2cddc0-_0x2972c1,'height':_0x364333-_0x114508};}[_0x267084(0x29c)](){const _0x5b8f5b=_0x267084,{scaleX:_0x36dcc2,scaleY:_0x30b148}=this[_0x5b8f5b(0x29a)][_0x5b8f5b(0x299)]();return Math['max'](_0x36dcc2,_0x30b148);}}var Zi=Object[_0x267084(0x141)],Qi=(_0x39971e,_0x1d6e56,_0x39e332,_0x3e463c)=>{for(var _0x18c98f=_0x3e463c>0x1?void 0x0:_0x3e463c?Zi(_0x1d6e56,_0x39e332):_0x1d6e56,_0x3c86cb=_0x39971e['length']-0x1,_0x14158e;_0x3c86cb>=0x0;_0x3c86cb--)(_0x14158e=_0x39971e[_0x3c86cb])&&(_0x18c98f=_0x14158e(_0x18c98f)||_0x18c98f);return _0x18c98f;},ie=(_0x40b140,_0x47d3fd)=>(_0x5e14f1,_0x43084e)=>_0x47d3fd(_0x5e14f1,_0x43084e,_0x40b140);let Fe=class extends _0x2699b6{constructor(_0x5cfdd9,_0x250d67,_0x23206b,_0x2a0848,_0x74b51e){const _0x3d5305=_0x267084;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x3d5305(0x85)]=_0x5cfdd9,this[_0x3d5305(0x213)]=_0x250d67,this['_collabCursorController']=_0x23206b,this[_0x3d5305(0x106)]=_0x2a0848,this[_0x3d5305(0x1d5)]=_0x74b51e,this[_0x3d5305(0x2a0)]());}[_0x267084(0x2a0)](){const _0x39f772=_0x267084,_0x3daca9=this[_0x39f772(0x85)]['unitId'],_0x13564b=this[_0x39f772(0x213)];this[_0x39f772(0x134)](_0x5901e([this['_collabCursorController']['getCollabCursors$'](_0x3daca9),this['_themeService']['currentTheme$']])['pipe'](_0x53e19c(([_0xd0e83d,_0x2a7a70])=>({'skeleton':_0x13564b['getSkeleton'](),'cursors':[..._0xd0e83d['values']()]['flatMap'](_0x17a754=>({..._0x17a754,'color':this[_0x39f772(0x1d5)][_0x39f772(0xd7)](_0x17a754[_0x39f772(0x22e)])}))})))[_0x39f772(0x116)](_0x3a586c=>{const _0x213084=_0x39f772;if(this[_0x213084(0x243)](),_0x3a586c){const {skeleton:_0x46de6f,cursors:_0x34c424}=_0x3a586c;this['_updateCollabCursors'](_0x46de6f,_0x34c424);}})),this[_0x39f772(0xa9)](),this[_0x39f772(0x238)]();}[_0x267084(0x176)](_0x4561da,_0x5aae22){const _0x5bb21f=_0x267084,{scene:_0x14179f,mainComponent:_0x5c0bb9}=this[_0x5bb21f(0x85)],_0x2ea809=_0x5aae22['map'](_0x3d0287=>new ct(_0x3d0287,_0x14179f,_0x4561da,_0x5c0bb9));this[_0x5bb21f(0x9a)]=_0x2ea809,this[_0x5bb21f(0x77)]=_0x5aae22;}[_0x267084(0xa2)](){const _0xa41f60=_0x267084;this[_0xa41f60(0x243)]();const {scene:_0x493b9e,mainComponent:_0x51468c}=this['_context'],_0x5b3b57=this['_docSkeletonManagerService'][_0xa41f60(0x216)](),_0x38d452=this[_0xa41f60(0x77)]['map'](_0x436ee5=>new ct(_0x436ee5,_0x493b9e,_0x5b3b57,_0x51468c));this[_0xa41f60(0x9a)]=_0x38d452;}[_0x267084(0x243)](){const _0x2d5e5d=_0x267084;this['_cursorShapes'][_0x2d5e5d(0x236)](_0x58ac32=>_0x58ac32['dispose']()),this[_0x2d5e5d(0x9a)]=[];}[_0x267084(0x238)](){const _0x43dbec=_0x267084,_0x5d7cfa=[_0x2d6594['id']];this[_0x43dbec(0x134)](this['_commandService']['onCommandExecuted'](_0x2391bc=>{const _0x24c57b=_0x43dbec;_0x5d7cfa[_0x24c57b(0x1f0)](_0x2391bc['id'])&&_0x2391bc[_0x24c57b(0x199)][_0x24c57b(0x2aa)]===this[_0x24c57b(0x85)][_0x24c57b(0x2aa)]&&this[_0x24c57b(0xa2)]();}));}[_0x267084(0xa9)](){const _0x275422=_0x267084;this[_0x275422(0x134)](_0x690a46(this[_0x275422(0x85)][_0x275422(0x1f7)][_0x275422(0x181)])['pipe'](_0x42660b(_0x2c74b1=>_0x2c74b1[_0x275422(0x269)]===_0x390bb6['resize']),_0x1e846c(0x10))[_0x275422(0x116)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x19d3ff(_0x437e0f)),ie(0x2,_0x19d3ff(H)),ie(0x3,_0x1da808),ie(0x4,_0x19d3ff(_0x51cb02))],Fe);const qi=0x1,en=1.5;class tn extends _0x48592f{constructor(_0x39d591,_0x429ed0){const _0x25486f=_0x267084;super(_0x39d591,_0x429ed0),_(this,_0x25486f(0x261)),_(this,_0x25486f(0x215),!0x1),_(this,_0x25486f(0x10d)),_(this,'_name',''),_(this,_0x25486f(0x143),_0x25486f(0xb3)),_(this,_0x25486f(0x2b4)),(_0x429ed0&&this[_0x25486f(0x7e)](_0x429ed0),this[_0x25486f(0x2a4)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x25486f(0x86)][_0x25486f(0x11e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x267084(0x7e)](_0x3fed3f){const _0x321690=_0x267084;var _0x150929,_0x12a6ac,_0x12c318,_0xe8e8a8,_0x1f8d00,_0x3f7ea2;this[_0x321690(0x261)]=(_0x150929=_0x3fed3f[_0x321690(0x22e)])!=null?_0x150929:this[_0x321690(0x261)],this['_hovered']=(_0x12a6ac=_0x3fed3f[_0x321690(0x28f)])!=null?_0x12a6ac:this[_0x321690(0x215)],this[_0x321690(0x10d)]=(_0x12c318=_0x3fed3f[_0x321690(0x20e)])!=null?_0x12c318:this[_0x321690(0x10d)],this[_0x321690(0x242)]=(_0xe8e8a8=_0x3fed3f[_0x321690(0xc6)])!=null?_0xe8e8a8:this[_0x321690(0x242)],this[_0x321690(0x143)]=(_0x1f8d00=_0x3fed3f[_0x321690(0xc7)])!=null?_0x1f8d00:this[_0x321690(0x143)],this['_backgroundColor']=(_0x3f7ea2=_0x3fed3f[_0x321690(0x107)])!=null?_0x3f7ea2:this[_0x321690(0x2b4)],this[_0x321690(0x1ea)]({'width':_0x3fed3f[_0x321690(0x1ec)],'height':_0x3fed3f[_0x321690(0xbf)]});}['onMouseMove'](_0xb17744){const _0x33759e=_0x267084,{row:_0x55e813,column:_0x4c9708}=_0xb17744;if(_0x55e813>=this[_0x33759e(0x10d)][_0x33759e(0x7a)]&&_0x55e813<=this[_0x33759e(0x10d)][_0x33759e(0x14b)]&&_0x4c9708>=this[_0x33759e(0x10d)][_0x33759e(0xea)]&&_0x4c9708<=this[_0x33759e(0x10d)][_0x33759e(0x1e6)]){this[_0x33759e(0x7e)]({'hovered':!0x0});return;}this[_0x33759e(0x7e)]({'hovered':!0x1});}[_0x267084(0xc3)](_0x3399d3){return!0x1;}['_draw'](_0x1ca675){const _0x47b2fc=_0x267084;_0x3692f4[_0x47b2fc(0x265)](_0x1ca675,{'width':this['width'],'height':this[_0x47b2fc(0xbf)],'strokeWidth':en,'stroke':this[_0x47b2fc(0x261)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x47b2fc(0x215)]&&(_0x1ca675[_0x47b2fc(0x15c)](),_0x1ca675['transform'](0x1,0x0,0x0,0x1,this[_0x47b2fc(0x1ec)],this[_0x47b2fc(0x143)]===_0x47b2fc(0x97)?0x0:-Q),Ee[_0x47b2fc(0x265)](_0x1ca675,{'text':this[_0x47b2fc(0x242)],'color':this[_0x47b2fc(0x261)]}),_0x1ca675[_0x47b2fc(0x190)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x1097eb,_0x56762f,_0x105a29,_0x21414b)=>{const _0x4a15ae=_0x267084;for(var _0x448a5a=_0x21414b>0x1?void 0x0:_0x21414b?sn(_0x56762f,_0x105a29):_0x56762f,_0x447f1a=_0x1097eb[_0x4a15ae(0xb1)]-0x1,_0x51b10f;_0x447f1a>=0x0;_0x447f1a--)(_0x51b10f=_0x1097eb[_0x447f1a])&&(_0x448a5a=_0x51b10f(_0x448a5a)||_0x448a5a);return _0x448a5a;},Ne=(_0x129892,_0x189ca5)=>(_0x334e4b,_0xe066df)=>_0x189ca5(_0x334e4b,_0xe066df,_0x129892);const rn=0x1389;let ke=class extends _0x2699b6{constructor(_0x188818,_0x4d5ffc,_0xeb2f96,_0x5adbcd){const _0x2d5211=_0x267084;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x188818,this[_0x2d5211(0x1b8)]=_0x4d5ffc,this['_collabCursorController']=_0xeb2f96,this[_0x2d5211(0x1d5)]=_0x5adbcd,this[_0x2d5211(0x2a0)]());}[_0x267084(0x2a0)](){const _0x3b1708=_0x267084;this[_0x3b1708(0x1b8)][_0x3b1708(0x11c)][_0x3b1708(0x162)](_0xf7d2a1(this['dispose$']),_0x4c118e(_0x111a3e=>{const _0x52ead9=_0x3b1708;if(_0x111a3e){const _0x292b79=_0x111a3e[_0x52ead9(0x233)];return _0x5901e(this[_0x52ead9(0x2ae)]['getCollabCursors$'](this[_0x52ead9(0x85)]['unitId']),this['_themeService'][_0x52ead9(0x1bc)])[_0x52ead9(0x162)](_0x53e19c(([_0x10ec1f,_0x4ebda8])=>{const _0x223d0a=new Map();return _0x10ec1f['forEach']((_0x5bd29f,_0xa57243)=>{const _0x14f137=_0x1936;if(_0x5bd29f[_0x14f137(0x1a4)]===_0x292b79){const _0x360d04={..._0x5bd29f};_0x360d04[_0x14f137(0x22e)]=this[_0x14f137(0x1d5)][_0x14f137(0xd7)](_0x5bd29f[_0x14f137(0x22e)]),_0x223d0a[_0x14f137(0x212)](_0xa57243,_0x360d04);}}),{'skeleton':_0x111a3e,'cursors':_0x223d0a};}));}return _0x243860({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xba8b38,cursors:_0x3e547e})=>{const _0x341fcd=_0x3b1708;this[_0x341fcd(0x243)](),_0xba8b38&&this[_0x341fcd(0x176)](_0xba8b38,_0x3e547e);}),this[_0x3b1708(0x1b8)][_0x3b1708(0x11c)][_0x3b1708(0x116)](_0x34b14a=>{const _0x102504=_0x3b1708;if(_0x34b14a==null)return;const {skeleton:_0x12f040}=_0x34b14a,{scene:_0x4aa252}=this['_context'];_0x4aa252['onPointerMove$'][_0x102504(0x11e)](_0x1dbae4(_0x3f3b8a=>{const _0x21d6e7=_0x102504;var _0x2f3e68,_0x1804f5;const {offsetX:_0x2df7eb,offsetY:_0x1676fd}=_0x3f3b8a,{x:_0x2e7efe,y:_0x116f07}=_0x4aa252['getRelativeToViewportCoord'](_0x2f462d['FromArray']([_0x2df7eb,_0x1676fd])),{scaleX:_0x40bb43,scaleY:_0x4c9db2}=_0x4aa252[_0x21d6e7(0x299)](),_0x383deb=_0x4aa252['getViewport'](_0x37de76[_0x21d6e7(0x1b3)]),_0x202a5b=_0x4aa252['getVpScrollXYInfoByPosToVp'](_0x2f462d[_0x21d6e7(0x280)]([_0x2e7efe,_0x116f07]),_0x383deb),_0x19f66c=_0x12f040[_0x21d6e7(0x98)](_0x2df7eb,_0x1676fd,_0x40bb43,_0x4c9db2,_0x202a5b);((_0x2f3e68=this[_0x21d6e7(0x17e)])==null?void 0x0:_0x2f3e68['column'])===_0x19f66c['column']&&((_0x1804f5=this[_0x21d6e7(0x17e)])==null?void 0x0:_0x1804f5['row'])===_0x19f66c[_0x21d6e7(0x169)]||this[_0x21d6e7(0x77)][_0x21d6e7(0x236)](_0x2ca39f=>{const _0x3995ad=_0x21d6e7;_0x2ca39f[_0x3995ad(0xde)](_0x19f66c);});},0x64));});}[_0x267084(0x176)](_0x98175a,_0x213d90){const _0x5609a6=_0x267084;var _0x3bd1ff;const _0x34fa19=(_0x3bd1ff=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3bd1ff['skeleton'];if(!_0x34fa19)return;const _0x2473ba=this[_0x5609a6(0x15a)]();if(!_0x2473ba)return;this[_0x5609a6(0x77)][_0x5609a6(0x236)](_0xab7b2d=>{const _0x3d5d8a=_0x5609a6;_0xab7b2d[_0x3d5d8a(0x151)]();});const {scene:_0x537ab5}=_0x2473ba,_0x476a35=on(Array[_0x5609a6(0x286)](_0x213d90[_0x5609a6(0x1b4)]()))['map'](_0x562623=>{const _0x2036d9=_0x5609a6,{color:_0x4d1745,range:_0x4279b0,name:_0x395f63,selection:_0xb171de,sheetID:_0x11be79}=_0x562623,{startColumn:_0x4d7a15,startRow:_0x347692,endColumn:_0x20b523,endRow:_0x177fa7}=_0x4279b0,_0x55a5cb=_0x6cc202(_0x347692,_0x4d7a15,_0x537ab5,_0x34fa19),_0x4c885a=_0x6cc202(_0x177fa7,_0x20b523,_0x537ab5,_0x34fa19),{columnHeaderHeightAndMarginTop:_0x5f4d7c}=_0x34fa19,{startX:_0x77578a,startY:_0x3bf2c8}=_0x55a5cb,{endX:_0x2700e8,endY:_0x184680}=_0x4c885a,_0x4e427f=_0x2700e8-_0x77578a,_0x3ef925=_0x184680-_0x3bf2c8,_0x91d96e={'labelPosition':_0x3bf2c8-_0x5f4d7c>=Q?_0x2036d9(0xb3):'bottom','sheetID':_0x11be79,'range':_0x4279b0,'color':_0x4d1745,'name':_0x395f63,'selection':_0xb171de,'left':_0x77578a,'top':_0x3bf2c8,'width':_0x4e427f,'height':_0x3ef925,'evented':!0x1,'zIndex':rn};return new tn(_0x395f63,_0x91d96e);});_0x537ab5['addObjects'](_0x476a35,qi),this[_0x5609a6(0x77)]=new Set(_0x476a35);}[_0x267084(0x243)](){const _0x806f8=_0x267084;var _0x5c84a2;(_0x5c84a2=this['_cursors'])==null||_0x5c84a2[_0x806f8(0x236)](_0x19bf0b=>_0x19bf0b[_0x806f8(0x18a)]());}[_0x267084(0x15a)](){const _0x53d39b=_0x267084;return _0x1c44a6(this['_context'][_0x53d39b(0xf2)],this['_context']);}};ke=nn([Ne(0x1,_0x19d3ff(_0x42940b)),Ne(0x2,_0x19d3ff(H)),Ne(0x3,_0x19d3ff(_0x51cb02))],ke);function on(_0x2cef67){const _0x3c60a9=_0x267084,_0x339a00=new Map();return _0x2cef67[_0x3c60a9(0x236)](_0x197539=>{const _0x4fa08a=_0x3c60a9;if(_0x339a00[_0x4fa08a(0x2b0)](_0x197539[_0x4fa08a(0x1ce)])){const _0x58dbd5=_0x339a00[_0x4fa08a(0xf7)](_0x197539[_0x4fa08a(0x1ce)]);_0x58dbd5[_0x4fa08a(0xc6)]+=',\x20'+_0x197539[_0x4fa08a(0xc6)];}else _0x339a00['set'](_0x197539[_0x4fa08a(0x1ce)],_0x197539);}),Array['from'](_0x339a00[_0x3c60a9(0x1b4)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1a29db,_0x2cf9f9,_0x508c43,_0x59c9d2)=>{for(var _0x5421c4=_0x59c9d2>0x1?void 0x0:_0x59c9d2?an(_0x2cf9f9,_0x508c43):_0x2cf9f9,_0x5cfe1d=_0x1a29db['length']-0x1,_0x4fffd3;_0x5cfe1d>=0x0;_0x5cfe1d--)(_0x4fffd3=_0x1a29db[_0x5cfe1d])&&(_0x5421c4=_0x4fffd3(_0x5421c4)||_0x5421c4);return _0x5421c4;},F=(_0x279eaa,_0x423595)=>(_0x1d712f,_0x17bf18)=>_0x423595(_0x1d712f,_0x17bf18,_0x279eaa);let _e=class extends _0x15b4c2{constructor(_0x23ac01,_0x1b09cf,_0x414f1f,_0x716c1a,_0x1f0cdf,_0x54617e){const _0x38f6f3=_0x267084;super(),this[_0x38f6f3(0x71)]=_0x23ac01,this['_localCacheService']=_0x1b09cf,this['_collaborationUIEventService']=_0x414f1f,this[_0x38f6f3(0x268)]=_0x716c1a,this[_0x38f6f3(0x133)]=_0x1f0cdf,this[_0x38f6f3(0x220)]=_0x54617e,this[_0x38f6f3(0x19b)](),this[_0x38f6f3(0xa1)]();}[_0x267084(0x19b)](){const _0x4af583=_0x267084;this[_0x4af583(0x134)](this[_0x4af583(0x71)]['registerBeforeClose'](()=>{const _0x4ff142=_0x4af583;if(this[_0x4ff142(0x21e)][_0x4ff142(0x171)][_0x4ff142(0x25e)])return this[_0x4ff142(0x220)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x267084(0xa1)](){const _0x132c6f=_0x267084;this[_0x132c6f(0x134)](this['_collaborationUIEventService'][_0x132c6f(0xac)][_0x132c6f(0x116)](_0x309bed=>{const _0x30fbf9=_0x132c6f;_0x309bed['id']===_0x13accd[_0x30fbf9(0x20a)]&&this['_messageService'][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t']('collaboration.single-unit.warning')}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x13a)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this['_localeService']['t'](_0x30fbf9(0xf6))}),_0x309bed['id']===_0x13accd['PERMISSION_DENIED']&&this[_0x30fbf9(0x133)][_0x30fbf9(0x16a)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x30fbf9(0x26f)),'type':_0x30fbf9(0x145),'duration':0x0}),_0x309bed['id']===_0x13accd['CONFLICT']&&this['_messageService'][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x309bed['data']+')'}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x1fd)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t'](_0x309bed[_0x30fbf9(0x255)]||'')}),_0x309bed['id']===_0x13accd['SOCKET_FAILED_RETRY']&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x182))}),_0x309bed['id']===_0x13accd['SOCKET_FAILED']&&this['_messageService']['show']({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x23a))}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x156)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x263))});}));}};_e=cn([F(0x0,_0x53993a),F(0x1,_0x1d4097),F(0x2,_0x19d3ff(_0x463587)),F(0x3,_0x238f17),F(0x4,_0x2018e3),F(0x5,_0x19d3ff(_0x392a0b))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x276bb2,_0x4710c9,_0x506166,_0x33f516)=>{const _0x4bd070=_0x267084;for(var _0x12a995=_0x33f516>0x1?void 0x0:_0x33f516?_n(_0x4710c9,_0x506166):_0x4710c9,_0x2bf810=_0x276bb2[_0x4bd070(0xb1)]-0x1,_0x45cdec;_0x2bf810>=0x0;_0x2bf810--)(_0x45cdec=_0x276bb2[_0x2bf810])&&(_0x12a995=_0x45cdec(_0x12a995)||_0x12a995);return _0x12a995;},ne=(_0x4ee54d,_0x2a56f0)=>(_0x168fc8,_0x17ae2b)=>_0x2a56f0(_0x168fc8,_0x17ae2b,_0x4ee54d);let le=class extends _0x15b4c2{constructor(_0x239ab5,_0x86b2f3,_0x5e0fb2,_0x5d3498){const _0x2cecb7=_0x267084;super(),_(this,_0x2cecb7(0xc4)),(this[_0x2cecb7(0x298)]=_0x239ab5,this[_0x2cecb7(0x109)]=_0x86b2f3,this[_0x2cecb7(0x84)]=_0x5e0fb2,this[_0x2cecb7(0x251)]=_0x5d3498,this[_0x2cecb7(0x2a0)]());}['_init'](){const _0x23ea6b=_0x267084;this[_0x23ea6b(0x132)](),this[_0x23ea6b(0x232)](),this[_0x23ea6b(0x197)](),this['_initUserListener']();}[_0x267084(0xe1)](){const _0x3fc44a=_0x267084;this[_0x3fc44a(0x134)](this[_0x3fc44a(0x251)][_0x3fc44a(0x1c8)]['subscribe'](_0x188fcf=>{const _0x5e1fa7=_0x3fc44a;this['_memberID']=_0x188fcf==null?void 0x0:_0x188fcf[_0x5e1fa7(0xab)];}));}['_initWindowErrorListener'](){const _0x30efa7=_0x267084,_0x78debb=_0x3ddaae=>{const _0x3cef8=_0x1936;var _0x4b2b51;this[_0x3cef8(0xd9)](_0x3cef8(0x145),'[Window\x20Error]:\x20'+_0x3ddaae[_0x3cef8(0x7b)]+_0x3cef8(0x208)+_0x3ddaae[_0x3cef8(0x1ed)]+':'+_0x3ddaae[_0x3cef8(0x9e)]+':'+_0x3ddaae[_0x3cef8(0xca)]+'\x0a'+(((_0x4b2b51=_0x3ddaae['error'])==null?void 0x0:_0x4b2b51[_0x3cef8(0x1cb)])||''));};window[_0x30efa7(0x1c2)](_0x30efa7(0x145),_0x78debb),this[_0x30efa7(0x134)](()=>{const _0x533fd6=_0x30efa7;window[_0x533fd6(0x2b3)]('error',_0x78debb);});}['_initUnhandledRejectionListener'](){const _0x257ce0=_0x267084,_0x4db052=_0x5f0f58=>{const _0x5a97ac=_0x1936;this[_0x5a97ac(0xd9)](_0x5a97ac(0x145),'[Unhandled\x20Rejection]:\x20'+_0x5f0f58[_0x5a97ac(0x24c)]);};window['addEventListener'](_0x257ce0(0x24a),_0x4db052),this['disposeWithMe'](()=>{const _0x4535de=_0x257ce0;window['removeEventListener'](_0x4535de(0x24a),_0x4db052);});}[_0x267084(0x197)](){const _0x146582=_0x267084,_0x58d62c=this[_0x146582(0x84)][_0x146582(0x145)][_0x146582(0x150)](this[_0x146582(0x84)]);this[_0x146582(0x84)][_0x146582(0x145)]=(..._0x5e0c0f)=>{const _0x345117=_0x146582,_0x5e0dd9=_0x5e0c0f[_0x345117(0x21b)](_0x35e0a3=>_0x35e0a3 instanceof Error?_0x35e0a3[_0x345117(0x7b)]+'\x0a'+_0x35e0a3['stack']:String(_0x35e0a3))['join']('\x20');this[_0x345117(0xd9)]('error',_0x345117(0x1b0)+_0x5e0dd9),_0x58d62c(..._0x5e0c0f);},this[_0x146582(0x134)](()=>{const _0x598c17=_0x146582;this[_0x598c17(0x84)]['error']=_0x58d62c;});}[_0x267084(0xd9)](_0x55bb7f,_0x7afafc){const _0x200d46=_0x267084;try{const _0x5c83dc={'userId':this[_0x200d46(0xc4)],'logLabel':_0x55bb7f,'content':_0x7afafc};this[_0x200d46(0x109)][_0x200d46(0x9c)](_0x200d46(0x15d),{'body':_0x5c83dc})[_0x200d46(0xa6)](()=>{});}catch{}}};le=ln([ne(0x0,_0x19d3ff(_0x4ab7f8)),ne(0x1,_0x19d3ff(_0x3d2675)),ne(0x2,_0x35d33d),ne(0x3,_0x19d3ff(_0x30d8be))],le);const hn=_0x267084(0x1a8),_t={};var un=Object[_0x267084(0x141)],dn=(_0x1f9e97,_0x364059,_0xdb1341,_0x8cc19c)=>{const _0x332e6d=_0x267084;for(var _0x45e8f8=_0x8cc19c>0x1?void 0x0:_0x8cc19c?un(_0x364059,_0xdb1341):_0x364059,_0xf63e0d=_0x1f9e97[_0x332e6d(0xb1)]-0x1,_0x3c8801;_0xf63e0d>=0x0;_0xf63e0d--)(_0x3c8801=_0x1f9e97[_0xf63e0d])&&(_0x45e8f8=_0x3c8801(_0x45e8f8)||_0x45e8f8);return _0x45e8f8;},lt=(_0xa54d15,_0x3bde57)=>(_0x2f1bb3,_0xa9ce8e)=>_0x3bde57(_0x2f1bb3,_0xa9ce8e,_0xa54d15);let he=class{constructor(_0x591635,_0x2a9ac5){const _0x51236d=_0x267084;this[_0x51236d(0xbe)]=_0x591635,this[_0x51236d(0x270)]=_0x2a9ac5;}[_0x267084(0x1cf)](_0x7f75a2){const _0x27fe75=_0x267084;this['_transformUndoRedoStack'](_0x7f75a2),this[_0x27fe75(0x8d)](_0x7f75a2);}[_0x267084(0xf4)](_0x4e6a96){const _0x24d9a7=_0x267084,{unitID:_0x544001}=_0x4e6a96,_0x5f1714=this['_renderManagerService'][_0x24d9a7(0xfa)](_0x544001)[_0x24d9a7(0x239)](_0x4f8e82),{redoCache:_0x3b1a90}=_0x5f1714[_0x24d9a7(0xbb)]();if(_0x3b1a90[_0x24d9a7(0xb1)]===0x0)return _0x4e6a96;let _0x289468=_0x23f5dc[_0x24d9a7(0x21d)](_0x4e6a96[_0x24d9a7(0x288)][0x0]);for(let _0x510ba7=0x0;_0x510ba7<_0x3b1a90[_0x24d9a7(0xb1)];_0x510ba7++){const _0x9c9428={'id':_0x24d9a7(0x1e5),'params':{..._0x3b1a90[_0x510ba7]}},_0x264705=this[_0x24d9a7(0xbe)][_0x24d9a7(0x15f)](_0x289468,_0x9c9428,!0x1);if(_0x3d1fb0(_0x264705))throw _0x264705[_0x24d9a7(0x145)];_0x289468=_0x264705['m1Prime'];}return{..._0x23f5dc['deepClone'](_0x4e6a96),'mutations':[_0x289468]};}['_transformUndoRedoStack'](_0x9fe53f){const _0x53e855=_0x267084,{unitID:_0x5ef880}=_0x9fe53f,_0xaf286e=this[_0x53e855(0x270)][_0x53e855(0xfa)](_0x5ef880)['with'](_0x4f8e82),{undoCache:_0x3c7854,redoCache:_0x3ac69d}=_0xaf286e[_0x53e855(0xbb)]();if(_0x3c7854[_0x53e855(0xb1)]===0x0||_0x3ac69d['length']===0x0)return;const _0x1c3d0c=[],_0x1f3ae1=[];let _0x2d1b53=_0x23f5dc[_0x53e855(0x21d)](_0x9fe53f[_0x53e855(0x288)][0x0]),_0x25e692=_0x23f5dc[_0x53e855(0x21d)](_0x9fe53f['mutations'][0x0]);for(let _0x442cf3=_0x3c7854[_0x53e855(0xb1)]-0x1;_0x442cf3>=0x0;_0x442cf3--){const _0xc2313c={'id':_0x53e855(0x1e5),'params':{..._0x3c7854[_0x442cf3]}},_0x6a3616={'id':_0x53e855(0x1e5),'params':{..._0x3ac69d[_0x442cf3]}},_0x422856=this[_0x53e855(0xbe)]['transformMutation'](_0x2d1b53,_0xc2313c,!0x1),_0x5d855e=this[_0x53e855(0xbe)]['transformMutation'](_0x25e692,_0x6a3616,!0x1);if(_0x3d1fb0(_0x422856))throw _0x422856[_0x53e855(0x145)];if(_0x3d1fb0(_0x5d855e))throw _0x5d855e[_0x53e855(0x145)];_0x1c3d0c[_0x53e855(0x1bd)](_0x422856['m2Prime']['params']),_0x1f3ae1[_0x53e855(0x1bd)](_0x5d855e[_0x53e855(0x1fe)][_0x53e855(0x199)]),_0x2d1b53=_0x422856['m1Prime'],_0x25e692=_0x5d855e['m1Prime'];}_0xaf286e[_0x53e855(0x1a7)]({'undoCache':_0x1c3d0c,'redoCache':_0x1f3ae1});}[_0x267084(0x8d)](_0x30a692){const _0x4fd93c=_0x267084,{unitID:_0x100cf5}=_0x30a692,_0x13127f=this[_0x4fd93c(0x270)]['getRenderById'](_0x100cf5)[_0x4fd93c(0x239)](_0x4f8e82),_0x38f20a=_0x13127f['getActiveRange']();if(_0x38f20a==null)return;const _0x176782=[{'id':_0x4fd93c(0x1e5),'params':{'unitId':_0x30a692['unitID'],'actions':null,'textRanges':[_0x38f20a]}}],_0xcdd1a0=this['_transformService'][_0x4fd93c(0x231)](_0x30a692,_0x176782);if(!_0x10901e(_0xcdd1a0))throw _0xcdd1a0[_0x4fd93c(0x145)];const _0x1e3d75=_0xcdd1a0[_0x4fd93c(0x1fe)][0x0][_0x4fd93c(0x199)][_0x4fd93c(0x245)];Array[_0x4fd93c(0xc1)](_0x1e3d75)&&_0x1e3d75[_0x4fd93c(0xb1)]&&_0x13127f[_0x4fd93c(0x21f)](_0x1e3d75[0x0]);}};he=dn([lt(0x0,_0xe0c62a),lt(0x1,_0x16532d)],he);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x4108c7,_0x22b32a,_0x500762,_0x8b372e)=>{const _0x163d8b=_0x267084;for(var _0x4727b7=_0x8b372e>0x1?void 0x0:_0x8b372e?Sn(_0x22b32a,_0x500762):_0x22b32a,_0x127ae9=_0x4108c7[_0x163d8b(0xb1)]-0x1,_0x1f71d4;_0x127ae9>=0x0;_0x127ae9--)(_0x1f71d4=_0x4108c7[_0x127ae9])&&(_0x4727b7=_0x1f71d4(_0x4727b7)||_0x4727b7);return _0x4727b7;},Le=(_0x43ec71,_0x2e66df)=>(_0x2c5f72,_0x23b080)=>_0x2e66df(_0x2c5f72,_0x23b080,_0x43ec71);let ue=class{constructor(_0x5a1e46,_0x4f1fd5,_0x57b2f8){const _0x5233cf=_0x267084;this[_0x5233cf(0x298)]=_0x5a1e46,this[_0x5233cf(0xbe)]=_0x4f1fd5,this[_0x5233cf(0x24e)]=_0x57b2f8;}[_0x267084(0x72)](_0x1aac05){this['_transformHistoryAndStateStack'](_0x1aac05);}[_0x267084(0xf4)](_0x5d0322){const _0x4d3e8c=_0x267084,{unitID:_0x2e9522}=_0x5d0322,{collaboration:_0x5e3555}=this['_docStateChangeManagerService'][_0x4d3e8c(0x172)](_0x2e9522);if(_0x5e3555['length']===0x0)return _0x5d0322;let _0x31ef93=_0x23f5dc[_0x4d3e8c(0x21d)](_0x5d0322['mutations'][0x0]);for(let _0x53b2a9=0x0;_0x53b2a9<_0x5e3555[_0x4d3e8c(0xb1)];_0x53b2a9++){const _0x4b6675={'id':_0x4d3e8c(0x1e5),'params':{'unitId':_0x5e3555[_0x53b2a9][_0x4d3e8c(0x2aa)],..._0x5e3555[_0x53b2a9][_0x4d3e8c(0xba)]}},_0x50e888=this[_0x4d3e8c(0xbe)][_0x4d3e8c(0x15f)](_0x31ef93,_0x4b6675,!0x1);if(_0x3d1fb0(_0x50e888))throw _0x50e888[_0x4d3e8c(0x145)];_0x31ef93=_0x50e888['m1Prime'];}return{..._0x23f5dc[_0x4d3e8c(0x21d)](_0x5d0322),'mutations':[_0x31ef93]};}[_0x267084(0x230)](_0x232fbd){const _0x48b075=_0x267084,{unitID:_0x3ebd65}=_0x232fbd,{history:_0x27020f,collaboration:_0x2b6e7b}=this[_0x48b075(0x24e)]['getStateCache'](_0x3ebd65);if(_0x27020f[_0x48b075(0xb1)]===0x0&&_0x2b6e7b[_0x48b075(0xb1)]===0x0)return;const _0x52c7c1=[],_0x2ffaeb=[];let _0x653713=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]),_0x2a2830=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]);for(let _0x577f7d=_0x27020f[_0x48b075(0xb1)]-0x1;_0x577f7d>=0x0;_0x577f7d--){const _0x16e1b5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x27020f[_0x577f7d]['unitId'],..._0x27020f[_0x577f7d][_0x48b075(0x95)]}},_0x23c52c={'id':_0x48b075(0x1e5),'params':{'unitId':_0x27020f[_0x577f7d][_0x48b075(0x2aa)],..._0x27020f[_0x577f7d][_0x48b075(0xba)]}},_0x6d5e1b=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x653713,_0x16e1b5,!0x1),_0x24ceb8=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x2a2830,_0x23c52c,!0x1);if(_0x3d1fb0(_0x6d5e1b))throw _0x6d5e1b[_0x48b075(0x145)];if(_0x3d1fb0(_0x24ceb8))throw _0x24ceb8[_0x48b075(0x145)];_0x52c7c1[_0x48b075(0x1bd)]({..._0x27020f[_0x577f7d],'undoState':_0x6d5e1b[_0x48b075(0x1fe)][_0x48b075(0x199)],'redoState':_0x24ceb8['m2Prime'][_0x48b075(0x199)]}),_0x653713=_0x6d5e1b[_0x48b075(0xa4)],_0x2a2830=_0x24ceb8[_0x48b075(0xa4)];}_0x653713=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]),_0x2a2830=_0x23f5dc['deepClone'](_0x232fbd['mutations'][0x0]);for(let _0x444454=_0x2b6e7b[_0x48b075(0xb1)]-0x1;_0x444454>=0x0;_0x444454--){const _0x173abb={'id':_0x48b075(0x1e5),'params':{'unitId':_0x2b6e7b[_0x444454][_0x48b075(0x2aa)],..._0x2b6e7b[_0x444454][_0x48b075(0x95)]}},_0x40fda0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b6e7b[_0x444454][_0x48b075(0x2aa)],..._0x2b6e7b[_0x444454][_0x48b075(0xba)]}},_0x4cccc2=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x653713,_0x173abb,!0x1),_0x190679=this[_0x48b075(0xbe)]['transformMutation'](_0x2a2830,_0x40fda0,!0x1);if(_0x3d1fb0(_0x4cccc2))throw _0x4cccc2[_0x48b075(0x145)];if(_0x3d1fb0(_0x190679))throw _0x190679[_0x48b075(0x145)];_0x2ffaeb[_0x48b075(0x1bd)]({..._0x2b6e7b[_0x444454],'undoState':_0x4cccc2[_0x48b075(0x1fe)]['params'],'redoState':_0x190679[_0x48b075(0x1fe)][_0x48b075(0x199)]}),_0x653713=_0x4cccc2['m1Prime'],_0x2a2830=_0x190679['m1Prime'];}this[_0x48b075(0x24e)][_0x48b075(0x73)](_0x3ebd65,{'history':_0x52c7c1,'collaboration':_0x2ffaeb});}};ue=mn([Le(0x0,_0x19d3ff(_0x4ab7f8)),Le(0x1,_0xe0c62a),Le(0x2,_0x19d3ff(_0x52621e))],ue);var In=Object[_0x267084(0x141)],fn=(_0x281ab6,_0x280f65,_0x31de4d,_0x553bbb)=>{const _0x30b8c6=_0x267084;for(var _0x21a524=_0x553bbb>0x1?void 0x0:_0x553bbb?In(_0x280f65,_0x31de4d):_0x280f65,_0x4fca47=_0x281ab6[_0x30b8c6(0xb1)]-0x1,_0x3e45dc;_0x4fca47>=0x0;_0x4fca47--)(_0x3e45dc=_0x281ab6[_0x4fca47])&&(_0x21a524=_0x3e45dc(_0x21a524)||_0x21a524);return _0x21a524;},ht=(_0x1275a3,_0x15b24b)=>(_0xf31a0a,_0xe655fd)=>_0x15b24b(_0xf31a0a,_0xe655fd,_0x1275a3);let de=class{constructor(_0x330aab,_0x33cfc9){const _0x417d38=_0x267084;this[_0x417d38(0x298)]=_0x330aab,this['_transformService']=_0x33cfc9;}['transformSelections'](_0x456795){const _0x4c40d0=_0x267084;var _0x8c6a6a;const _0x51de3d=this[_0x4c40d0(0x298)]['get'](_0x22e39b),_0x2982e2=(_0x8c6a6a=_0x51de3d[_0x4c40d0(0xd2)]())!=null?_0x8c6a6a:[];if(_0x2982e2['length']===0x0)return;const _0x7ec051=_0x456795[_0x4c40d0(0xf1)],_0x3ba17a=[{'id':_0x4c40d0(0x1e5),'params':{'unitId':_0x7ec051,'actions':null,'textRanges':_0x2982e2}}],_0x2c8244=this[_0x4c40d0(0xbe)]['transformMutationsWithChangeset'](_0x456795,_0x3ba17a);if(!_0x10901e(_0x2c8244))throw _0x2c8244[_0x4c40d0(0x145)];const _0x4663ba=_0x2c8244[_0x4c40d0(0x1fe)][0x0][_0x4c40d0(0x199)][_0x4c40d0(0x245)];Array[_0x4c40d0(0xc1)](_0x4663ba)&&_0x4663ba[_0x4c40d0(0xb1)]&&_0x51de3d[_0x4c40d0(0x1a6)](_0x4663ba,{'unitId':_0x7ec051,'subUnitId':_0x7ec051},!0x1);}};de=fn([ht(0x0,_0x19d3ff(_0x4ab7f8)),ht(0x1,_0xe0c62a)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x1844b4,_0x48d7d8,_0x8b91c,_0x5b059a)=>{for(var _0x521ce4=_0x5b059a>0x1?void 0x0:_0x5b059a?gn(_0x48d7d8,_0x8b91c):_0x48d7d8,_0x3c012=_0x1844b4['length']-0x1,_0x44be6e;_0x3c012>=0x0;_0x3c012--)(_0x44be6e=_0x1844b4[_0x3c012])&&(_0x521ce4=_0x44be6e(_0x521ce4)||_0x521ce4);return _0x521ce4;},U=(_0x41ef16,_0x1130ca)=>(_0x5d7da3,_0x32e702)=>_0x1130ca(_0x5d7da3,_0x32e702,_0x41ef16);let Se=class extends _0x15b4c2{constructor(_0x187c71,_0x3d35b0,_0x4cf69f,_0xf0241c,_0x2820ac,_0x2776c2,_0x4a0ee0,_0x406f61){const _0x3557d9=_0x267084;super(),_(this,_0x3557d9(0x267),new _0x1c42a0(_0x393e49['NOT_COLLAB'])),(this[_0x3557d9(0x24e)]=_0x187c71,this['_collaborationController']=_0x3d35b0,this[_0x3557d9(0x1f2)]=_0x4cf69f,this[_0x3557d9(0x276)]=_0xf0241c,this[_0x3557d9(0x91)]=_0x2820ac,this[_0x3557d9(0x294)]=_0x2776c2,this[_0x3557d9(0x268)]=_0x4a0ee0,this[_0x3557d9(0x220)]=_0x406f61,this[_0x3557d9(0x200)]());}['_initEntityListener'](){const _0x4dc1a3=_0x267084;this[_0x4dc1a3(0x134)](this[_0x4dc1a3(0x1da)][_0x4dc1a3(0xe8)][_0x4dc1a3(0x116)](_0x55a40d=>{const _0x5e475e=_0x4dc1a3,_0x1c0fa5=this[_0x5e475e(0x24e)][_0x5e475e(0x1ff)]['subscribe'](_0x17c137=>{const _0x4540bb=_0x5e475e;if(_0x17c137==null)return;const {unitId:_0x584d3f,redoState:_0x4a3ad4,commandId:_0x3b08ad}=_0x17c137;if(_0x584d3f!==_0x55a40d[_0x4540bb(0xf1)])return;const _0x496a19={'id':_0x3b08ad,'type':_0x3a3187[_0x4540bb(0x214)],'params':{'unitId':_0x584d3f,'actions':_0x4a3ad4[_0x4540bb(0x206)],'textRanges':null}};_0x55a40d['onLocalMutation'](_0x496a19);});if(_0x55a40d[_0x5e475e(0x134)](_0x1c0fa5),_0x55a40d instanceof _0xbad4e5){const _0x5702e0={'onTransformIME':_0x346249=>this[_0x5e475e(0x1f2)][_0x5e475e(0x1cf)](_0x346249),'onTransformState':_0x4dd410=>this[_0x5e475e(0x276)][_0x5e475e(0x72)](_0x4dd410),'onTransformSelections':_0x139034=>this[_0x5e475e(0x91)][_0x5e475e(0x7d)](_0x139034),'onSyncEditingCollabCursor':_0x55ed8b=>this[_0x5e475e(0x294)][_0x5e475e(0x247)](_0x55ed8b),'onTransformRemoteChangesetByIMECache':_0x243763=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x243763),'onTransformRemoteChangesetByStateCache':_0x2981c4=>this[_0x5e475e(0x276)][_0x5e475e(0xf4)](_0x2981c4)};_0x55a40d['addHandlerCallback'](_0x5702e0);}}));}};Se=vn([U(0x0,_0x19d3ff(_0x52621e)),U(0x1,_0x19d3ff(_0x20f9ac)),U(0x2,_0x19d3ff(he)),U(0x3,_0x19d3ff(ue)),U(0x4,_0x19d3ff(de)),U(0x5,_0x19d3ff(ze)),U(0x6,_0x238f17),U(0x7,_0x19d3ff(_0x392a0b))],Se);var Z=(_0x255dd1=>(_0x255dd1[_0x255dd1[_0x267084(0x16c)]=0x0]=_0x267084(0x16c),_0x255dd1[_0x255dd1['OK']=0x1]='OK',_0x255dd1[_0x255dd1[_0x267084(0x1fa)]=0x2]=_0x267084(0x1fa),_0x255dd1[_0x255dd1[_0x267084(0x259)]=0x3]=_0x267084(0x259),_0x255dd1[_0x255dd1[_0x267084(0x1c5)]=0x4]=_0x267084(0x1c5),_0x255dd1[_0x255dd1[_0x267084(0x25b)]=0x5]=_0x267084(0x25b),_0x255dd1[_0x255dd1[_0x267084(0xa7)]=0x6]=_0x267084(0xa7),_0x255dd1[_0x255dd1[_0x267084(0x18e)]=0x7]='INVALID_ARGUMENT',_0x255dd1[_0x255dd1[_0x267084(0x201)]=0x8]=_0x267084(0x201),_0x255dd1[_0x255dd1[_0x267084(0x10f)]=0x9]=_0x267084(0x10f),_0x255dd1[_0x255dd1[_0x267084(0xef)]=0xa]=_0x267084(0xef),_0x255dd1[_0x255dd1[_0x267084(0x234)]=0xb]=_0x267084(0x234),_0x255dd1[_0x255dd1[_0x267084(0x1b5)]=0xc]=_0x267084(0x1b5),_0x255dd1[_0x255dd1[_0x267084(0xd4)]=0xd]=_0x267084(0xd4),_0x255dd1[_0x255dd1[_0x267084(0xb9)]=0xe]=_0x267084(0xb9),_0x255dd1[_0x255dd1['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x255dd1[_0x255dd1[_0x267084(0x180)]=0x10]=_0x267084(0x180),_0x255dd1[_0x255dd1['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x255dd1[_0x255dd1[_0x267084(0x217)]=0x65]='ERROR_AGAIN',_0x255dd1[_0x255dd1[_0x267084(0x7c)]=0xc9]='USER_NOT_FOUND',_0x255dd1[_0x255dd1[_0x267084(0x111)]=0xca]=_0x267084(0x111),_0x255dd1[_0x255dd1['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x267084(0x14d),_0x255dd1[_0x255dd1[_0x267084(0x237)]=0x1771]=_0x267084(0x237),_0x255dd1[_0x255dd1[_0x267084(0xd3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x255dd1[_0x255dd1['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x267084(0x287),_0x255dd1[_0x255dd1[_0x267084(0x293)]=0x1b59]='APPLY_REJECT',_0x255dd1[_0x255dd1[_0x267084(0x1e7)]=0x1b5a]=_0x267084(0x1e7),_0x255dd1[_0x255dd1[_0x267084(0x2ac)]=0x1b5b]=_0x267084(0x2ac),_0x255dd1[_0x255dd1[_0x267084(0x257)]=0x1b5c]=_0x267084(0x257),_0x255dd1[_0x255dd1['APPLY_DUPLICATED']=0x1b5d]=_0x267084(0x1f6),_0x255dd1[_0x255dd1[_0x267084(0x120)]=0x1f41]=_0x267084(0x120),_0x255dd1[_0x255dd1[_0x267084(0x166)]=0x2329]=_0x267084(0x166),_0x255dd1[_0x255dd1['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x267084(0xaf),_0x255dd1[_0x255dd1[_0x267084(0x1ee)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x255dd1[_0x255dd1[_0x267084(0x18b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x255dd1[_0x255dd1[_0x267084(0xf5)]=0x232d]=_0x267084(0xf5),_0x255dd1[_0x255dd1[_0x267084(0xad)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x255dd1[_0x255dd1[_0x267084(0xd5)]=0x2712]=_0x267084(0xd5),_0x255dd1[_0x255dd1['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x267084(0x23d),_0x255dd1[_0x255dd1[_0x267084(0xdf)]=0x2714]=_0x267084(0xdf),_0x255dd1[_0x255dd1[_0x267084(0x1e4)]=0x271a]=_0x267084(0x1e4),_0x255dd1[_0x255dd1[_0x267084(0x147)]=0x271b]=_0x267084(0x147),_0x255dd1[_0x255dd1[_0x267084(0x12b)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x255dd1[_0x255dd1['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x267084(0x256),_0x255dd1[_0x255dd1['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x267084(0x175),_0x255dd1[_0x255dd1[_0x267084(0x101)]=0x271f]=_0x267084(0x101),_0x255dd1[_0x255dd1[_0x267084(0x15b)]=0x2720]=_0x267084(0x15b),_0x255dd1[_0x255dd1['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x255dd1[_0x255dd1['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x267084(0x27e),_0x255dd1[_0x255dd1[_0x267084(0x93)]=0x2ee2]=_0x267084(0x93),_0x255dd1[_0x255dd1[_0x267084(0x8f)]=0x2ee3]=_0x267084(0x8f),_0x255dd1[_0x255dd1[_0x267084(0x18c)]=0x2ee4]=_0x267084(0x18c),_0x255dd1[_0x255dd1[_0x267084(0x99)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x255dd1[_0x255dd1['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x267084(0x1d4),_0x255dd1[_0x255dd1[_0x267084(0x13b)]=0x32ca]=_0x267084(0x13b),_0x255dd1[_0x255dd1['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x267084(0x9b),_0x255dd1[_0x255dd1[_0x267084(0x27f)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x255dd1[_0x255dd1[_0x267084(0xee)]=0x36b2]=_0x267084(0xee),_0x255dd1[_0x255dd1[_0x267084(0x2b1)]=0x36b3]=_0x267084(0x2b1),_0x255dd1[_0x255dd1[_0x267084(0x9d)]=0x36b4]=_0x267084(0x9d),_0x255dd1[_0x255dd1[_0x267084(0x1f4)]=0x3715]=_0x267084(0x1f4),_0x255dd1[_0x255dd1[_0x267084(0xff)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x255dd1[_0x255dd1[_0x267084(0xb4)]=0x3717]=_0x267084(0xb4),_0x255dd1[_0x255dd1[_0x267084(0x1b2)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x255dd1[_0x255dd1[_0x267084(0x148)]=0x3a99]=_0x267084(0x148),_0x255dd1[_0x255dd1['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x255dd1[_0x255dd1[_0x267084(0x1d1)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x255dd1[_0x255dd1[_0x267084(0x92)]=0x3a9c]=_0x267084(0x92),_0x255dd1[_0x255dd1[_0x267084(0x104)]=0x3a9d]=_0x267084(0x104),_0x255dd1[_0x255dd1[_0x267084(0x252)]=0x3a9e]=_0x267084(0x252),_0x255dd1[_0x255dd1[_0x267084(0x88)]=0x3a9f]=_0x267084(0x88),_0x255dd1[_0x255dd1[_0x267084(0x1fb)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x255dd1[_0x255dd1[_0x267084(0x155)]=-0x1]='UNRECOGNIZED',_0x255dd1))(Z||{});function En(_0x5139fe){const _0x38e943=_0x267084;var _0x531ca7,_0x4e9f1c;const _0x18c78b=(_0x531ca7=_0x5139fe[_0x38e943(0xda)])==null?void 0x0:_0x531ca7[_0x38e943(0x13c)],_0x5d1514=((_0x4e9f1c=_0x5139fe[_0x38e943(0xda)])==null?void 0x0:_0x4e9f1c[_0x38e943(0xb8)])||0x0;return _0x18c78b===_0x5d4131[_0x38e943(0x28c)]&&_0x5d1514>0x0;}function pn(_0x34a91f){const _0x4fdb6a=_0x267084;return _0x34a91f['functionsExecutedState']===_0x1d84bd[_0x4fdb6a(0x218)];}var On=Object[_0x267084(0x141)],Tn=(_0x2b7050,_0x447dc3,_0x4bb580,_0x4f39d8)=>{const _0x710fb9=_0x267084;for(var _0x4620f2=_0x4f39d8>0x1?void 0x0:_0x4f39d8?On(_0x447dc3,_0x4bb580):_0x447dc3,_0x266ef9=_0x2b7050[_0x710fb9(0xb1)]-0x1,_0x271375;_0x266ef9>=0x0;_0x266ef9--)(_0x271375=_0x2b7050[_0x266ef9])&&(_0x4620f2=_0x271375(_0x4620f2)||_0x4620f2);return _0x4620f2;},P=(_0x3f3386,_0x2a3493)=>(_0x12724a,_0x57313f)=>_0x2a3493(_0x12724a,_0x57313f,_0x3f3386);const Cn=_0x267084(0xd1),Rn=_0x267084(0x246),Dn=_0x267084(0x139);let me=class extends _0x15b4c2{constructor(_0x10d67f,_0x4d4f88,_0x3186e7,_0x280f21,_0x2a1090,_0x588a66,_0xbd9835){const _0x21d4ca=_0x267084;super(),_(this,_0x21d4ca(0xc0),null),_(this,_0x21d4ca(0x10c),0x0),_(this,_0x21d4ca(0x26c),0x0),_(this,_0x21d4ca(0x11a),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x21d4ca(0x268)]=_0x10d67f,this[_0x21d4ca(0x106)]=_0x4d4f88,this[_0x21d4ca(0xb5)]=_0x3186e7,this[_0x21d4ca(0x109)]=_0x280f21,this['_univerInstanceService']=_0x2a1090,this['_logService']=_0x588a66,this[_0x21d4ca(0x220)]=_0xbd9835,this['_initCommandInterceptor']());}[_0x267084(0x76)](){const _0x16dac9=_0x267084;this[_0x16dac9(0x134)](this[_0x16dac9(0x106)]['beforeCommandExecuted']((_0x3f44ec,_0x2a5a90)=>{const _0x358a32=_0x16dac9;var _0x539a24;if(_0x3f44ec['id']!==_0xce794f['id'])return;const _0xfda5d=_0x3f44ec[_0x358a32(0x199)];if(!this['_hasFormulaInDirtyRanges']((_0x539a24=_0xfda5d[_0x358a32(0xd8)])!=null?_0x539a24:[]))return;if(!this[_0x358a32(0x78)]())throw this[_0x358a32(0x284)](_0x3f44ec,_0x2a5a90),this[_0x358a32(0x149)](),new _0x53987c();})),this[_0x16dac9(0x134)](this[_0x16dac9(0x106)][_0x16dac9(0xf0)]((_0x4bda64,_0x439c92)=>{const _0x421750=_0x16dac9;if(_0x4bda64['id']!==_0x15b422['id'])return;const _0x4e2b84=_0x4bda64[_0x421750(0x199)];if(En(_0x4e2b84)){const _0x5546e7=_0x3add1d();this['_taskIds']['push'](_0x5546e7),this[_0x421750(0x1e9)](_0x5546e7);}else{if(pn(_0x4e2b84)&&this['_taskIds'][_0x421750(0xb1)]>0x0){const _0x55602c=this[_0x421750(0x11a)][_0x421750(0x23f)]();this['_releaseCalculationLimit'](_0x55602c);}}}));}[_0x267084(0x18a)](){const _0x1fbb8c=_0x267084;super['dispose'](),this[_0x1fbb8c(0x1d7)](),this[_0x1fbb8c(0x11a)]=[],this[_0x1fbb8c(0x26c)]=0x0,this[_0x1fbb8c(0x10c)]=0x0,this[_0x1fbb8c(0x128)]=0x0;}async[_0x267084(0x284)](_0x348ccb,_0x386b74){const _0x339dec=_0x267084;for(let _0x1ede38=0x0;_0x1ede38<0x1e;_0x1ede38++)try{if(await this[_0x339dec(0x138)](),this['_checkCalculationAvailable']()){this[_0x339dec(0x194)](_0x348ccb,_0x386b74),this[_0x339dec(0x268)][_0x339dec(0x16a)]({'content':this[_0x339dec(0x220)]['t'](_0x339dec(0x2a5)),'type':_0x3d9040[_0x339dec(0x83)]});return;}await new Promise(_0x5b15da=>{const _0x10ff8d=_0x339dec;this[_0x10ff8d(0xc0)]=window[_0x10ff8d(0x183)](_0x5b15da,0x3e8);});}catch(_0x3f4ee5){this[_0x339dec(0x84)][_0x339dec(0x145)](_0x3f4ee5);}this['_messageService'][_0x339dec(0x16a)]({'content':this['_localeService']['t'](_0x339dec(0x2a6)),'type':_0x3d9040[_0x339dec(0x198)]});}['_applyCommand'](_0x4bd23e,_0x17068c){const _0x2bf613=_0x267084;try{this[_0x2bf613(0x106)][_0x2bf613(0x1db)](_0x4bd23e['id'],_0x4bd23e['params'],_0x17068c);}catch(_0x585455){this[_0x2bf613(0x84)][_0x2bf613(0x145)](_0x585455);}}[_0x267084(0xe0)](_0x169953,_0x24f730){const _0x4fc658=_0x267084;_0x24f730<this[_0x4fc658(0x128)]||(this[_0x4fc658(0x128)]=_0x24f730,this[_0x4fc658(0x10c)]=Number[_0x4fc658(0x22f)](_0x169953['maxFormulaLimit']),this[_0x4fc658(0x26c)]=Number[_0x4fc658(0x22f)](_0x169953[_0x4fc658(0x291)]));}async[_0x267084(0x1e9)](_0x4986a3){const _0x476952=_0x267084;var _0x33caef,_0x2223ad;const _0x2194ca=Date[_0x476952(0x18f)]();try{const _0x3968dc=((_0x33caef=this[_0x476952(0xb5)][_0x476952(0x75)](_0x58fdc2))==null?void 0x0:_0x33caef['startFormulaLimitUrl'])||Rn,_0x167f5d=(await this['_httpService'][_0x476952(0x9c)](_0x3968dc,{'body':JSON[_0x476952(0x20d)]({'taskId':_0x4986a3})}))[_0x476952(0x165)];if(((_0x2223ad=_0x167f5d[_0x476952(0x145)])==null?void 0x0:_0x2223ad[_0x476952(0x219)])!==Z['OK'])return;this[_0x476952(0xe0)](_0x167f5d['limitInfo'],_0x2194ca);}catch(_0x1bec0a){this[_0x476952(0x84)][_0x476952(0x145)](_0x1bec0a);}}async[_0x267084(0x138)](_0x5c9d89){const _0x4f1901=_0x267084;var _0x5bf9fc,_0x2190fb;const _0x28aadf=Date['now']();try{const _0x508418=((_0x5bf9fc=this['_configService']['getConfig'](_0x58fdc2))==null?void 0x0:_0x5bf9fc[_0x4f1901(0x23e)])||Cn,_0x712098=_0x5c9d89?_0x508418+_0x4f1901(0x89)+encodeURIComponent(_0x5c9d89):_0x508418,_0x298f1c=(await this[_0x4f1901(0x109)]['get'](_0x712098))[_0x4f1901(0x165)];if(((_0x2190fb=_0x298f1c['error'])==null?void 0x0:_0x2190fb[_0x4f1901(0x219)])!==Z['OK'])return;this[_0x4f1901(0xe0)](_0x298f1c['limitInfo'],_0x28aadf);}catch(_0x5b94e1){this[_0x4f1901(0x84)][_0x4f1901(0x145)](_0x5b94e1);}}async['_releaseCalculationLimit'](_0x1ba483){const _0x26f6a8=_0x267084;var _0xa41230,_0x389d02;const _0x2de188=Date[_0x26f6a8(0x18f)]();try{const _0x7c11e7=((_0xa41230=this[_0x26f6a8(0xb5)]['getConfig'](_0x58fdc2))==null?void 0x0:_0xa41230[_0x26f6a8(0x168)])||Dn,_0x4139cd=(await this['_httpService'][_0x26f6a8(0x9c)](_0x7c11e7,{'body':JSON[_0x26f6a8(0x20d)]({'taskId':_0x1ba483})}))[_0x26f6a8(0x165)];if(((_0x389d02=_0x4139cd[_0x26f6a8(0x145)])==null?void 0x0:_0x389d02['code'])!==Z['OK'])return;this[_0x26f6a8(0xe0)](_0x4139cd[_0x26f6a8(0x27a)],_0x2de188);}catch(_0x2ee36c){this[_0x26f6a8(0x84)]['error'](_0x2ee36c);}}[_0x267084(0x78)](){const _0x13e220=_0x267084;return this[_0x13e220(0x10c)]===0x0?!0x0:this[_0x13e220(0x10c)]-this['_currentUsage']>0x0;}[_0x267084(0x1d7)](){const _0x2cb845=_0x267084;this[_0x2cb845(0xc0)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x267084(0x149)](){const _0x295066=_0x267084;this[_0x295066(0x268)][_0x295066(0x16a)]({'content':this[_0x295066(0x220)]['t'](_0x295066(0x14a)),'type':_0x3d9040['Loading']});}['_hasFormulaInDirtyRanges'](_0x53cd57){const _0x2ae532=_0x267084;for(const _0x289b42 of _0x53cd57){const {unitId:_0x1b359d,sheetId:_0x4d3b33,range:_0x3db8a6}=_0x289b42,_0x3a8f9f=this[_0x2ae532(0x289)][_0x2ae532(0x1df)](_0x1b359d);if(!_0x3a8f9f)continue;const _0x3aaf20=_0x3a8f9f[_0x2ae532(0x1c7)](_0x4d3b33);if(!_0x3aaf20)continue;const _0x44d970=_0x3aaf20['getCellMatrix']();for(let _0x7aefb9=_0x3db8a6[_0x2ae532(0x7a)];_0x7aefb9<=_0x3db8a6['endRow'];_0x7aefb9++)for(let _0x2d2e85=_0x3db8a6[_0x2ae532(0xea)];_0x2d2e85<=_0x3db8a6[_0x2ae532(0x1e6)];_0x2d2e85++){const _0x4c2a83=_0x44d970[_0x2ae532(0x1d8)](_0x7aefb9,_0x2d2e85);if(_0x4c2a83&&(_0x39dc69(_0x4c2a83['f'])||_0x3789a8(_0x4c2a83['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x19d3ff(_0x238f17)),P(0x1,_0x1da808),P(0x2,_0x5d7afb),P(0x3,_0x19d3ff(_0x3d2675)),P(0x4,_0x121c1a),P(0x5,_0x35d33d),P(0x6,_0x19d3ff(_0x392a0b))],me);var bn=Object[_0x267084(0x141)],Nn=(_0x40d782,_0x330fca,_0x3b634b,_0x367a35)=>{const _0x3533d5=_0x267084;for(var _0x4d40fb=_0x367a35>0x1?void 0x0:_0x367a35?bn(_0x330fca,_0x3b634b):_0x330fca,_0x125b64=_0x40d782[_0x3533d5(0xb1)]-0x1,_0x59fd8f;_0x125b64>=0x0;_0x125b64--)(_0x59fd8f=_0x40d782[_0x125b64])&&(_0x4d40fb=_0x59fd8f(_0x4d40fb)||_0x4d40fb);return _0x4d40fb;},Ue=(_0x30ee86,_0x4f240c)=>(_0x46b97b,_0x3b684e)=>_0x4f240c(_0x46b97b,_0x3b684e,_0x30ee86);let He=class extends _0x15b4c2{constructor(_0x4f52ba,_0x5c792a,_0x5c32c1){const _0x18b7e4=_0x267084;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x18b7e4(0x1f9),!0x1),(this[_0x18b7e4(0xb5)]=_0x4f52ba,this[_0x18b7e4(0x87)]=_0x5c792a,this[_0x18b7e4(0x1af)]=_0x5c32c1);}[_0x267084(0x1ab)](){const _0x146748=_0x267084;this[_0x146748(0x1f9)]=!0x0;}[_0x267084(0x277)](){this['_disabled']=!0x1;}get[_0x267084(0x171)](){const _0x48580a=_0x267084;return this[_0x48580a(0x249)];}[_0x267084(0x18a)](){const _0x22ae06=_0x267084;this[_0x22ae06(0x20c)]()[_0x22ae06(0x295)](()=>super[_0x22ae06(0x18a)]());}async[_0x267084(0x273)](_0x36374a){const _0x5a2777=_0x267084;return this[_0x5a2777(0x1f9)]?null:this['_localStorageService'][_0x5a2777(0x21a)](_0x3df3e5(_0x36374a));}async[_0x267084(0xe5)](_0x340615,_0x185ea5){const _0x13fc40=_0x267084;return!!this[_0x13fc40(0x87)]['setItem'](_0x340615,_0x185ea5);}[_0x267084(0xb2)](_0x2cc243,_0x5ebe30,_0x36ca12,_0x3481e5){const _0x269258=_0x267084,_0x2eb710=this['_revisionService'][_0x269258(0x28a)](_0x2cc243);this[_0x269258(0x26b)][_0x269258(0x212)](_0x2cc243,{'unitID':_0x2cc243,'type':_0x5ebe30,'awaitingChangeset':_0x36ca12,'mutations':_0x3481e5,'rev':_0x2eb710}),this[_0x269258(0x249)][_0x269258(0x2b0)](_0x2cc243)||this['_scheduleSaving'](_0x2cc243);}[_0x267084(0x27d)](_0x28741f){const _0x2edd70=_0x267084,_0x3aba8e=this[_0x2edd70(0xb7)]();_0x3aba8e===0x0?this['_saveCache'](_0x28741f):this['_saveTaskMap'][_0x2edd70(0x212)](_0x28741f,setTimeout(()=>this[_0x2edd70(0x1aa)](_0x28741f),_0x3aba8e));}[_0x267084(0xb7)](){const _0x1e7049=_0x267084;var _0x1b95ba;return(_0x1b95ba=this[_0x1e7049(0xb5)][_0x1e7049(0x75)](_0x5a7b94))!=null?_0x1b95ba:_0x3119b9;}['_saveCache'](_0x1fb147){const _0x4816bd=_0x267084,_0x8dbd91=this[_0x4816bd(0x249)][_0x4816bd(0xf7)](_0x1fb147);return _0x8dbd91!==void 0x0&&window[_0x4816bd(0x221)](_0x8dbd91),this[_0x4816bd(0x87)][_0x4816bd(0x161)](_0x3df3e5(_0x1fb147),this[_0x4816bd(0x26b)][_0x4816bd(0xf7)](_0x1fb147))['then'](()=>this['_saveTaskMap'][_0x4816bd(0x74)](_0x1fb147));}async[_0x267084(0x20c)](){const _0x14e84b=_0x267084,_0x2a9e2e=[];this[_0x14e84b(0x249)]['forEach']((_0x5eaf8f,_0x280558)=>{const _0x1f1eb3=_0x14e84b;window[_0x1f1eb3(0x221)](_0x5eaf8f),_0x2a9e2e['push'](this[_0x1f1eb3(0x1aa)](_0x280558)['then'](()=>{const _0x3a9168=_0x1f1eb3;this[_0x3a9168(0x249)][_0x3a9168(0x74)](_0x280558);}));}),await Promise[_0x14e84b(0xeb)](_0x2a9e2e);}};He=Nn([Ue(0x0,_0x5d7afb),Ue(0x1,_0x5e6485),Ue(0x2,_0x19d3ff(_0x1e9c45))],He);class Ln extends _0x2699b6{constructor(){const _0x16518c=_0x267084;super(),_(this,'urlChange$'),this[_0x16518c(0x152)]=_0x46507c(window,_0x16518c(0xd0))[_0x16518c(0x162)](_0xae10c0(this[_0x16518c(0x1ef)]),_0x546268(0x1),_0x2ff921(void 0x0));}[_0x267084(0x28b)](_0x59799f,_0x1c3eab,_0x59376e=!0x1){const _0x26c508=_0x267084,_0x3c282f=new URL(window[_0x26c508(0x123)][_0x26c508(0x1bf)]);_0x3c282f['searchParams']['set'](_0x59799f,_0x1c3eab),_0x59376e?window[_0x26c508(0x2a7)][_0x26c508(0x185)]('','',_0x3c282f['toString']()):window['history'][_0x26c508(0x25a)]('','',_0x3c282f[_0x26c508(0x23c)]());}['removeParam'](_0x4da2be,_0x5cc3af=!0x1){const _0x2d7878=_0x267084,_0x1ed892=new URL(window[_0x2d7878(0x123)][_0x2d7878(0x1bf)]);_0x1ed892[_0x2d7878(0x16b)][_0x2d7878(0x74)](_0x4da2be),_0x5cc3af?window[_0x2d7878(0x2a7)][_0x2d7878(0x185)]('','',_0x1ed892[_0x2d7878(0x23c)]()):window[_0x2d7878(0x2a7)]['pushState']('','',_0x1ed892[_0x2d7878(0x23c)]());}[_0x267084(0x118)](_0x127478){const _0x132f49=_0x267084;var _0xdac0de;return(_0xdac0de=new URL(window[_0x132f49(0x123)][_0x132f49(0x1bf)])[_0x132f49(0x16b)][_0x132f49(0xf7)](_0x127478))!=null?_0xdac0de:void 0x0;}}var Un=Object[_0x267084(0x28e)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x596ec0,_0x28f231,_0x4c7af6)=>_0x28f231 in _0x596ec0?Un(_0x596ec0,_0x28f231,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c7af6}):_0x596ec0[_0x28f231]=_0x4c7af6,Pn=(_0x55caf4,_0x54ced,_0x51c024,_0x50d7cb)=>{const _0x5b994f=_0x267084;for(var _0x48449b=_0x50d7cb>0x1?void 0x0:_0x50d7cb?Mn(_0x54ced,_0x51c024):_0x54ced,_0x2a5ab2=_0x55caf4[_0x5b994f(0xb1)]-0x1,_0x2704b1;_0x2a5ab2>=0x0;_0x2a5ab2--)(_0x2704b1=_0x55caf4[_0x2a5ab2])&&(_0x48449b=_0x2704b1(_0x48449b)||_0x48449b);return _0x48449b;},Me=(_0x1b6bad,_0x56b453)=>(_0x33780e,_0x1be7c5)=>_0x56b453(_0x33780e,_0x1be7c5,_0x1b6bad),wn=(_0x24a577,_0x5c2682,_0x26aabc)=>An(_0x24a577,_0x5c2682+'',_0x26aabc);const yn=_0x267084(0x1a0);let Ye=class extends _0x75b443{constructor(_0xdde3dc=_t,_0x552611,_0x32bd92,_0x5eb31f){const _0x4f7ca9=_0x267084;super(),this[_0x4f7ca9(0x178)]=_0xdde3dc,this[_0x4f7ca9(0x270)]=_0x552611,this['_injector']=_0x32bd92,this[_0x4f7ca9(0xb5)]=_0x5eb31f;const {..._0x25c7d0}=_0x4bef96({},_t,this[_0x4f7ca9(0x178)]);this[_0x4f7ca9(0xb5)][_0x4f7ca9(0x110)](hn,_0x25c7d0);}[_0x267084(0x1dd)](){const _0x13de5a=_0x267084;this['_registerDependencies'](),this[_0x13de5a(0x25f)]();}[_0x267084(0x2b5)](){this['_registerRenderDependencies']();}[_0x267084(0xe9)](){const _0x3a669c=_0x267084;var _0x152379;const _0x31d814=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x516427,{'useClass':_0x29fc86}],[_0x1d4097,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3a669c(0x178)][_0x3a669c(0x22a)]&&_0x31d814[_0x3a669c(0x224)]([le]),_0x52fbf5(this[_0x3a669c(0x298)],_0x1b8195(_0x31d814,(_0x152379=this['_config'])==null?void 0x0:_0x152379[_0x3a669c(0x227)]));}[_0x267084(0x2a8)](){const _0x4c8465=_0x267084;this[_0x4c8465(0x134)](this[_0x4c8465(0x270)][_0x4c8465(0x1c1)](_0x24166e[_0x4c8465(0x17b)],[Fe])),this[_0x4c8465(0x134)](this[_0x4c8465(0x270)][_0x4c8465(0x1c1)](_0x24166e['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x31fb8f=_0x267084;_0x1253a5(this[_0x31fb8f(0x298)],[[H],[ae],[Se],[_e],[ce],[me]]),this['_config']['enableFrontendLog']&&_0x1253a5(this[_0x31fb8f(0x298)],[[le]]);}};wn(Ye,_0x267084(0x8b),yn),Ye=Pn([_0x508d08(_0x32160c),Me(0x1,_0x16532d),Me(0x2,_0x19d3ff(_0x4ab7f8)),Me(0x3,_0x5d7afb)],Ye);var $n=Object[_0x267084(0x141)],xn=(_0x21fc68,_0x258c24,_0x329845,_0x3e16e1)=>{const _0x3878f5=_0x267084;for(var _0x1b4af3=_0x3e16e1>0x1?void 0x0:_0x3e16e1?$n(_0x258c24,_0x329845):_0x258c24,_0x2ec3bf=_0x21fc68[_0x3878f5(0xb1)]-0x1,_0x509a89;_0x2ec3bf>=0x0;_0x2ec3bf--)(_0x509a89=_0x21fc68[_0x2ec3bf])&&(_0x1b4af3=_0x509a89(_0x1b4af3)||_0x1b4af3);return _0x1b4af3;},J=(_0x4b43a8,_0xa07a40)=>(_0xa7d930,_0x5e17b7)=>_0xa07a40(_0xa7d930,_0x5e17b7,_0x4b43a8);let ut=class extends _0x120512{constructor(_0x1908e4,_0x2212d7,_0x568ee7,_0x53113c,_0x35fcb8){super(_0x1908e4,_0x2212d7,_0x568ee7,_0x53113c,_0x35fcb8);}async['createSocket'](_0x39db82){const _0xe85f29=_0x267084,_0x3dbc54=await this[_0xe85f29(0x279)](),_0xcf2599=this[_0xe85f29(0x1c0)](_0x39db82,_0x3dbc54);return this['_doCreateSocket'](_0xcf2599);}[_0x267084(0x1c0)](_0x1bea57,_0x3fb7d7){const _0x8700f=_0x267084,_0x463cb4=typeof window>'u'?new URL(_0x1bea57):new URL(_0x1bea57,window['location'][_0x8700f(0x272)]);_0x463cb4[_0x8700f(0x16b)][_0x8700f(0x212)](_0x8700f(0x14f),_0x3fb7d7);const _0x27eb02=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8700f(0x123)][_0x8700f(0x235)]);return _0x27eb02[_0x8700f(0xf7)](_0x8700f(0x1ae))&&_0x463cb4[_0x8700f(0x16b)]['set'](_0x8700f(0x1ae),_0x27eb02[_0x8700f(0xf7)](_0x8700f(0x1ae))),_0x463cb4[_0x8700f(0x23c)]();}async[_0x267084(0x279)](){const _0x502eaf=_0x267084;var _0x1eeabc,_0xef155e,_0x24d67e;const _0x63cf1a=this[_0x502eaf(0xb5)][_0x502eaf(0x75)](_0x58fdc2),_0x3be159=(_0x1eeabc=_0x63cf1a==null?void 0x0:_0x63cf1a[_0x502eaf(0x1c6)])!=null?_0x1eeabc:_0x366c2b;return(_0x24d67e=(_0xef155e=(await this[_0x502eaf(0x109)][_0x502eaf(0xf7)](_0x3be159,{'headers':{'Content-Type':_0x502eaf(0x25d)}}))[_0x502eaf(0x165)])==null?void 0x0:_0xef155e[_0x502eaf(0x105)])!=null?_0x24d67e:'';}};ut=xn([J(0x0,_0x19d3ff(_0x4ab7f8)),J(0x1,_0x19d3ff(_0x3d2675)),J(0x2,_0x5d7afb),J(0x3,_0x35d33d),J(0x4,_0x5e2acb)],ut);var Bn=Object[_0x267084(0x141)],Fn=(_0x54ee36,_0x2a71b7,_0x29e43c,_0x187f03)=>{const _0x5299da=_0x267084;for(var _0x3056c7=_0x187f03>0x1?void 0x0:_0x187f03?Bn(_0x2a71b7,_0x29e43c):_0x2a71b7,_0x33f015=_0x54ee36[_0x5299da(0xb1)]-0x1,_0x42a5a9;_0x33f015>=0x0;_0x33f015--)(_0x42a5a9=_0x54ee36[_0x33f015])&&(_0x3056c7=_0x42a5a9(_0x3056c7)||_0x3056c7);return _0x3056c7;},Ae=(_0x247fcb,_0x1e979f)=>(_0x3dfd2a,_0x69794)=>_0x1e979f(_0x3dfd2a,_0x69794,_0x247fcb);let dt=class extends _0x15b4c2{constructor(_0xe50115,_0x3cc441,_0x7d9aa5){const _0x5932c7=_0x267084;super(),this[_0x5932c7(0x137)]=_0xe50115,this[_0x5932c7(0x109)]=_0x3cc441,this[_0x5932c7(0xb5)]=_0x7d9aa5;}async[_0x267084(0x177)](_0x3a2f68,_0x44d437,_0x698bf0,..._0x5a68a9){const _0x26142d=_0x267084;var _0x5845b0,_0x3a9624,_0x407bb2,_0x373278;const _0x18a410=this[_0x26142d(0x137)][_0x26142d(0x241)]();if(!_0x18a410)throw new Error(_0x26142d(0x129));const _0x20a88e=((_0x5845b0=this[_0x26142d(0xb5)][_0x26142d(0x75)](_0x4ce834))!=null?_0x5845b0:_0x20cc7b)+'/'+_0x3a2f68+'/run/'+_0x44d437,_0x216744=new URL(window['location'][_0x26142d(0x1bf)]),_0x25b2bc={'scriptId':_0x3a2f68,'runId':(_0x3a9624=_0x216744[_0x26142d(0x16b)][_0x26142d(0xf7)](_0x26142d(0x1ae)))!=null?_0x3a9624:'','function':_0x44d437,'unitId':_0x18a410[_0x26142d(0x12e)](),'argsOfFunction':JSON[_0x26142d(0x20d)](_0x5a68a9),'invokeId':(_0x407bb2=_0x698bf0[_0x26142d(0x135)])!=null?_0x407bb2:'','executionId':(_0x373278=_0x698bf0[_0x26142d(0x94)])!=null?_0x373278:''};try{const _0x39099b=await this[_0x26142d(0x109)][_0x26142d(0x9c)](_0x20a88e,{'body':_0x25b2bc});return _0x39099b[_0x26142d(0x165)][_0x26142d(0x145)]&&_0x39099b['body'][_0x26142d(0x145)][_0x26142d(0x219)]!==Z['OK']?_0x26142d(0x260):_0x39099b[_0x26142d(0x165)]['result'];}catch{return _0x26142d(0x260);}}};dt=Fn([Ae(0x0,_0x121c1a),Ae(0x1,_0x19d3ff(_0x3d2675)),Ae(0x2,_0x5d7afb)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x15b4c2{constructor(){const _0x39a861=_0x267084;super(),_(this,'_id',_0x3add1d()),_(this,_0x39a861(0x81),new Set()),_(this,_0x39a861(0x103),new Map()),_(this,_0x39a861(0x14c),null),_(this,_0x39a861(0x1bb),new Map()),_(this,_0x39a861(0xc5),new Map()),this[_0x39a861(0x2a0)]();}[_0x267084(0x18a)](){const _0x36d973=_0x267084;super['dispose'](),this[_0x36d973(0x1bb)][_0x36d973(0x236)]((_0x295251,_0x433ae2)=>this[_0x36d973(0xa5)](_0x433ae2)),this[_0x36d973(0x14c)]&&window[_0x36d973(0x189)](this[_0x36d973(0x14c)]);}[_0x267084(0x16d)](_0x468108){const _0x70aff7=_0x267084;return this[_0x70aff7(0x10e)](_0x468108)[_0x70aff7(0x162)](_0x366b6a());}['editingUnit'](_0x17ad6f){const _0x31068a=_0x267084;this[_0x31068a(0x81)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x31068a(0x81)][_0x31068a(0x186)](_0x17ad6f),this['_send']({'type':0x0,'memberID':this[_0x31068a(0xec)],'unitIDs':[_0x17ad6f],'isForwarded':!0x1});}['disposeUnit'](_0x4c40bb){const _0x2cc7d0=_0x267084;this['_selfUnitIDs']['delete'](_0x4c40bb),this['_selfUnitIDs']['size']===0x0&&this[_0x2cc7d0(0x14c)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x267084(0x2a0)](){const _0x1aef4c=_0x267084;this['disposeWithMe'](_0x490c7d(_0x46507c(window,'storage')['subscribe'](_0x42a1b8=>{const _0x4600ec=_0x1936;if(_0x42a1b8[_0x4600ec(0xcb)]!==mt||!_0x42a1b8[_0x4600ec(0x8c)])return;const _0xf14699=JSON[_0x4600ec(0x24b)](_0x42a1b8[_0x4600ec(0x8c)]);this['_handleEvent'](_0xf14699);}))),window['addEventListener'](_0x1aef4c(0x115),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1aef4c(0x81)])}));}[_0x267084(0xcd)](_0x3f0771){const _0x3c2f58=_0x267084;switch(_0x3f0771['type']){case 0x0:this[_0x3c2f58(0xa8)](_0x3f0771);break;case 0x1:this[_0x3c2f58(0x82)](_0x3f0771);break;case 0x2:this['_handleHeartbeatEvent'](_0x3f0771);break;}}[_0x267084(0xa8)](_0x51f1f7){const _0x3209d6=_0x267084,{unitIDs:_0x49e274,memberID:_0x106ac9,isForwarded:_0x54153c}=_0x51f1f7;_0x49e274['forEach'](_0x3dbc99=>{const _0x228a59=_0x1936;if(!_0x54153c&&this[_0x228a59(0x103)][_0x228a59(0x2b0)](_0x3dbc99)&&this[_0x228a59(0x10e)](_0x3dbc99)['next'](_0x2d4d54[_0x228a59(0x275)]),!this[_0x228a59(0x103)][_0x228a59(0x2b0)](_0x3dbc99)||!this[_0x228a59(0x103)][_0x228a59(0xf7)](_0x3dbc99)[_0x228a59(0x2b0)](_0x106ac9)){const _0x53e220=this[_0x228a59(0x103)][_0x228a59(0xf7)](_0x3dbc99)||new Set();_0x53e220[_0x228a59(0x186)](_0x106ac9),this[_0x228a59(0x103)]['set'](_0x3dbc99,_0x53e220),this[_0x228a59(0xd6)](_0x106ac9);}}),_0x54153c||this[_0x3209d6(0x1c4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3209d6(0x81)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4b4c26){const _0x247347=_0x267084;this[_0x247347(0xa5)](_0x4b4c26);const _0x5df167=window[_0x247347(0x183)](()=>{const _0x5470c1=_0x247347;this[_0x5470c1(0x103)][_0x5470c1(0x236)](_0x4150f6=>{const _0x10d950=_0x5470c1;_0x4150f6[_0x10d950(0x74)](_0x4b4c26);});},St*0x2);this[_0x247347(0x1bb)][_0x247347(0x212)](_0x4b4c26,_0x5df167);}[_0x267084(0xa5)](_0x2a1013){const _0x240933=_0x267084;if(this['_clearOtherTimers']['has'](_0x2a1013)){const _0x1dd5e1=this[_0x240933(0x1bb)][_0x240933(0xf7)](_0x2a1013);_0x1dd5e1&&window[_0x240933(0x221)](_0x1dd5e1),this['_clearOtherTimers'][_0x240933(0x212)](_0x2a1013,null);}}[_0x267084(0x82)](_0x5f3afa){const _0x13bb78=_0x267084,{memberID:_0x1db643,unitIDs:_0x31fe5d}=_0x5f3afa;_0x31fe5d[_0x13bb78(0x236)](_0x8f216f=>{const _0x2c3456=_0x13bb78;var _0x35466e;const _0x70a6fc=this[_0x2c3456(0x103)]['get'](_0x8f216f);_0x70a6fc&&(_0x70a6fc['delete'](_0x1db643),(_0x35466e=this[_0x2c3456(0x10e)](_0x8f216f))==null||_0x35466e[_0x2c3456(0xdc)](_0x70a6fc['size']===0x0?_0x2d4d54[_0x2c3456(0x158)]:_0x2d4d54[_0x2c3456(0x275)]));}),this[_0x13bb78(0xa5)](_0x1db643);}['_handleHeartbeatEvent'](_0x2c99e4){const _0x19d352=_0x267084;this['_scheduleClearOtherTimer'](_0x2c99e4[_0x19d352(0xab)]);}['_send'](_0x102e01){const _0x246aa9=_0x267084;localStorage[_0x246aa9(0x161)](mt,JSON[_0x246aa9(0x20d)](_0x102e01));}[_0x267084(0x144)](){const _0x2dd22b=_0x267084;this[_0x2dd22b(0x14c)]=window[_0x2dd22b(0x192)](()=>{const _0xf27954=_0x2dd22b;this[_0xf27954(0x1c4)]({'type':0x2,'memberID':this[_0xf27954(0xec)]});},St);}[_0x267084(0x10e)](_0x16a6c6){const _0x2f2434=_0x267084;return this['_unitStatus'][_0x2f2434(0x2b0)](_0x16a6c6)||this['_unitStatus'][_0x2f2434(0x212)](_0x16a6c6,new _0x1c42a0(_0x2d4d54[_0x2f2434(0x158)])),this[_0x2f2434(0xc5)][_0x2f2434(0xf7)](_0x16a6c6);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};