@univerjs-pro/collaboration-client-ui 0.10.14-nightly.202511070628 → 0.10.14-nightly.202511070939

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 (49) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +15 -15
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5724cd=_0x4324;(function(_0x38b829,_0x44d48b){const _0x4e98e5=_0x4324,_0x44961d=_0x38b829();while(!![]){try{const _0x4af66a=-parseInt(_0x4e98e5(0x2af))/0x1+parseInt(_0x4e98e5(0xef))/0x2*(-parseInt(_0x4e98e5(0x2b6))/0x3)+parseInt(_0x4e98e5(0x251))/0x4*(parseInt(_0x4e98e5(0xdc))/0x5)+-parseInt(_0x4e98e5(0x254))/0x6+-parseInt(_0x4e98e5(0x2f4))/0x7+-parseInt(_0x4e98e5(0x261))/0x8+parseInt(_0x4e98e5(0x238))/0x9*(parseInt(_0x4e98e5(0x265))/0xa);if(_0x4af66a===_0x44d48b)break;else _0x44961d['push'](_0x44961d['shift']());}catch(_0x337eae){_0x44961d['push'](_0x44961d['shift']());}}}(_0xc813,0x64321));var Ft=Object[_0x5724cd(0x125)],kt=(_0x17d3fc,_0x9da338,_0x18f896)=>_0x9da338 in _0x17d3fc?Ft(_0x17d3fc,_0x9da338,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18f896}):_0x17d3fc[_0x9da338]=_0x18f896,l=(_0x2c2477,_0x43db81,_0x516c8a)=>kt(_0x2c2477,typeof _0x43db81!=_0x5724cd(0x16d)?_0x43db81+'':_0x43db81,_0x516c8a);import{jsx as _0x3ea50e,jsxs as _0x5fce33}from'react/jsx-runtime';import{CollaborationStatus as _0x50afaa,CollaborationSessionService as _0x2c15e3,CollaborationController as _0x18f9ba,DataLoaderService as _0x2c6881,MemberService as _0x1a6b56,SessionStatus as _0x452290,ILocalCacheService as _0x5b4070,CollaborationUIEventService as _0x5f0edf,CollaborationUIEventId as _0x1513c0,DocCollaborationEntity as _0x342039,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x32c484,getLocalCacheKey as _0xb1ea91,LOCAL_CACHE_INTERVAL as _0x283278,LOCAL_CACHE_INTERVAL_KEY as _0x23a142,UniverCollaborationClientPlugin as _0x21bbd3,CollaborationSocketService as _0x155bb6,DEFAULT_WS_SESSION_TICKET_URL as _0x392e41,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1f66b6,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4e25d6,UnitStatus as _0x509d02}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x234aab,IUniverInstanceService as _0x166a1e,Inject as _0x4db080,Injector as _0xca9a6f,Disposable as _0x2916da,createIdentifier as _0x5e1b6d,ILogService as _0x1edaba,ICommandService as _0x3d0367,Optional as _0x28a111,RxDisposable as _0x466553,Workbook as _0x2d40a7,DOC_RANGE_TYPE as _0x4bed57,debounce as _0x322732,Rectangle as _0x3fa0cb,DisposableCollection as _0x43401e,toDisposable as _0xc6be91,UniverInstanceType as _0x5483ba,generateRandomId as _0x46dcf5,COLORS as _0x675d83,ColorKit as _0x40a014,ThemeService as _0x571088,fromEventSubject as _0x57e071,Tools as _0x352d2a,CommandType as _0x393e92,IConfigService as _0xa43f31,CanceledError as _0x426e2a,isFormulaString as _0x444db3,isFormulaId as _0xaf5a34,ILocalStorageService as _0x5d62b5,DependentOn as _0x30d103,Plugin as _0x4c752d,merge as _0x21d242,registerDependencies as _0x4e8074,mergeOverrideWithDependencies as _0x6b7a83,touchDependencies as _0x19cfd9}from'@univerjs/core';import{useObservable as _0x4756b4,useDependency as _0x2bd7e4,IUIPartsService as _0x3ff3af,BuiltInUIPart as _0x1c67bd,connectInjector as _0x3aeb97,IBeforeCloseService as _0x578e72,IMessageService as _0x60d69d,INotificationService as _0x44eeb7}from'@univerjs/ui';import{BehaviorSubject as _0x29a5ca,switchMap as _0xa10b69,of as _0x2a30cc,takeUntil as _0x29d39,debounceTime as _0x19dce7,Subject as _0x303857,filter as _0x1d12b5,merge as _0x14f17d,combineLatest as _0x57e5ce,fromEvent as _0xba30,shareReplay as _0x44c2b3,mapTo as _0x3ab484,distinctUntilChanged as _0x5c79da}from'rxjs';import{Tooltip as _0x41ecc8,clsx as _0x386c2c,MessageType as _0x408d4f}from'@univerjs/design';import{useRef as _0x569e42,createElement as _0x3f82cd,forwardRef as _0x5dd539,useCallback as _0x73dded}from'react';import{IRemoteInstanceService as _0x30a3e3}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x49cac3,RefRangeService as _0x1006f2,SetSelectionsOperation as _0x38a87a,SheetsSelectionsService as _0x1edee4,EffectRefRangId as _0x5d6206,handleIRemoveRow as _0x46d1c8,handleIRemoveCol as _0xe874f5,handleMoveRange as _0x397e48,handleInsertRow as _0x2deae8,handleInsertRangeMoveRight as _0x45c5a6,handleInsertRangeMoveDown as _0x46e032,handleInsertCol as _0x167ad0,handleDeleteRangeMoveUp as _0x689337,handleDeleteRangeMoveLeft as _0x58c097,runRefRangeMutations as _0x2d0a41}from'@univerjs/sheets';import{Shape as _0x376f96,Rect as _0x5a4309,getColor as _0x4741e2,RegularPolygon as _0x11a369,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1aaa34,Vector2 as _0x3be4b3,SHEET_VIEWPORT_KEY as _0x1e6b43,IRenderManagerService as _0x21229d}from'@univerjs/engine-render';import{HTTPService as _0x367dbf,ISocketService as _0x3c3284,WebSocketService as _0x36b239}from'@univerjs/network';import{IDocClipboardService as _0xbfc833,NodePositionConvertToCursor as _0x2118c1,NodePositionConvertToRectRange as _0x57a528,TEXT_RANGE_LAYER_INDEX as _0x3dd04b,SetDocZoomRatioOperation as _0x28c097,DocIMEInputManagerService as _0x15fd68,DocStateChangeManagerService as _0xf2cfc0}from'@univerjs/docs-ui';import{IImageIoService as _0x3b68ae}from'@univerjs/drawing';import{ITransformService as _0x4603fd,CollaborationEvent as _0x1c5ec5,isTransformMutationFailure as _0x48ab2e,isTransformMutationsWithChangesetSuccess as _0x11903c,RevisionService as _0x294c44,ISnapshotServerService as _0x5030fd}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x38bad8,RichTextEditingMutation as _0x1cf356,DocSelectionManagerService as _0x5a5e71,DocSkeletonManagerService as _0x33170f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x428cf8,serializeRangeWithSheet as _0x25d8d1,FormulaExecuteStageType as _0x4cc043,FormulaExecutedStateType as _0x3cc8fe,SetFormulaCalculationStartMutation as _0x5f11a2,SetFormulaCalculationNotificationMutation as _0x3da7cf}from'@univerjs/engine-formula';import{map as _0x2ac750,filter as _0x23fe25,throttleTime as _0x51e9be,takeUntil as _0xd4923a,switchMap as _0x4b25bc}from'rxjs/operators';import{SheetSkeletonManagerService as _0x232217,getCoordByCell as _0x489060,getSheetObject as _0xcf58dc}from'@univerjs/sheets-ui';function Ve({ref:_0x1fe498,..._0x50f548}){const _0x36633a=_0x5724cd,{icon:_0x556d02,id:_0x5751c8,className:_0x390c61,extend:_0x2ba19f,..._0x3d6bf6}=_0x50f548,_0x46205c=(_0x36633a(0x1af)+_0x5751c8+'\x20'+(_0x390c61||''))[_0x36633a(0x2aa)](),_0x15d5e0=_0x569e42('_'+gi());return Ut(_0x556d02,''+_0x5751c8,{'defIds':_0x556d02[_0x36633a(0x1e0)],'idSuffix':_0x15d5e0[_0x36633a(0x131)]},{'ref':_0x1fe498,'className':_0x46205c,..._0x3d6bf6},_0x2ba19f);}function Ut(_0x5c58dd,_0x354688,_0x252197,_0x2f2e81,_0x173d22){const _0x103a6e=_0x5724cd;return _0x3f82cd(_0x5c58dd[_0x103a6e(0x14e)],{'key':_0x354688,...mi(_0x5c58dd,_0x252197,_0x173d22),..._0x2f2e81},(fi(_0x5c58dd,_0x252197)[_0x103a6e(0x1e6)]||[])[_0x103a6e(0x30d)]((_0x3e127a,_0x32be2d)=>Ut(_0x3e127a,_0x354688+'-'+_0x5c58dd[_0x103a6e(0x14e)]+'-'+_0x32be2d,_0x252197,void 0x0,_0x173d22)));}function mi(_0x54a6d5,_0x115e41,_0x5c1a6c){const _0x5d5d65=_0x5724cd,_0x1dbe88={..._0x54a6d5['attrs']};_0x5c1a6c!=null&&_0x5c1a6c['colorChannel1']&&_0x1dbe88['fill']==='colorChannel1'&&(_0x1dbe88['fill']=_0x5c1a6c[_0x5d5d65(0x101)]),_0x54a6d5[_0x5d5d65(0x14e)]===_0x5d5d65(0xe5)&&_0x1dbe88['id']&&(_0x1dbe88['id']=_0x1dbe88['id']+_0x115e41['idSuffix']),Object[_0x5d5d65(0x21d)](_0x1dbe88)[_0x5d5d65(0x1a5)](([_0x55f16f,_0x178120])=>{const _0x2631c9=_0x5d5d65;_0x55f16f===_0x2631c9(0xe5)&&typeof _0x178120==_0x2631c9(0x248)&&(_0x1dbe88[_0x55f16f]=_0x178120[_0x2631c9(0x1de)](/url\(#(.*)\)/,'url(#$1'+_0x115e41['idSuffix']+')'));});const {defIds:_0x2cae42}=_0x115e41;return!_0x2cae42||_0x2cae42['length']===0x0||(_0x54a6d5[_0x5d5d65(0x14e)]==='use'&&_0x1dbe88[_0x5d5d65(0x291)]&&(_0x1dbe88[_0x5d5d65(0x291)]=_0x1dbe88[_0x5d5d65(0x291)]+_0x115e41[_0x5d5d65(0x1f5)]),Object[_0x5d5d65(0x21d)](_0x1dbe88)[_0x5d5d65(0x1a5)](([_0xbb3173,_0x4ebc09])=>{const _0xb8e899=_0x5d5d65;typeof _0x4ebc09=='string'&&(_0x1dbe88[_0xbb3173]=_0x4ebc09['replace'](/url\(#(.*)\)/,_0xb8e899(0x1b5)+_0x115e41[_0xb8e899(0x1f5)]+')'));})),_0x1dbe88;}function fi(_0x289699,_0x38d34d){const _0x5331b5=_0x5724cd;var _0x21b831;const {defIds:_0x5074ef}=_0x38d34d;return!_0x5074ef||_0x5074ef[_0x5331b5(0x173)]===0x0?_0x289699:_0x289699[_0x5331b5(0x14e)]===_0x5331b5(0x302)&&((_0x21b831=_0x289699[_0x5331b5(0x1e6)])!=null&&_0x21b831[_0x5331b5(0x173)])?{..._0x289699,'children':_0x289699[_0x5331b5(0x1e6)][_0x5331b5(0x30d)](_0x1d5872=>typeof _0x1d5872[_0x5331b5(0xd4)]['id']==_0x5331b5(0x248)&&_0x5074ef&&_0x5074ef[_0x5331b5(0x1c1)](_0x1d5872['attrs']['id'])?{..._0x1d5872,'attrs':{..._0x1d5872[_0x5331b5(0xd4)],'id':_0x1d5872[_0x5331b5(0xd4)]['id']+_0x38d34d[_0x5331b5(0x1f5)]}}:_0x1d5872)}:_0x289699;}function gi(){const _0x1def8a=_0x5724cd;return Math[_0x1def8a(0x182)]()['toString'](0x24)[_0x1def8a(0x2e7)](0x2,0x8);}Ve[_0x5724cd(0x2b0)]=_0x5724cd(0x15e);const vi={'tag':_0x5724cd(0x247),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5724cd(0x134),'width':_0x5724cd(0xf8),'height':_0x5724cd(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':_0x5724cd(0x188)},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'stroke':_0x5724cd(0x146),'d':_0x5724cd(0x206),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5724cd(0x302),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'fill':_0x5724cd(0x304),'d':_0x5724cd(0x303)}}]}]}],'defIds':[_0x5724cd(0x259)]},Lt=_0x5dd539(function(_0x32c011,_0xde43f3){const _0x2c3337=_0x5724cd;return _0x3f82cd(Ve,Object['assign']({},_0x32c011,{'id':_0x2c3337(0x21c),'ref':_0xde43f3,'icon':vi}));});Lt['displayName']=_0x5724cd(0x1e7);const Ei={'tag':_0x5724cd(0x247),'attrs':{'xmlns':_0x5724cd(0xe7),'fill':_0x5724cd(0x242),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x5724cd(0xf8)},'children':[{'tag':'g','attrs':{'clipPath':_0x5724cd(0x282)},'children':[{'tag':_0x5724cd(0xfb),'attrs':{'stroke':_0x5724cd(0x146),'d':_0x5724cd(0x11d),'strokeLinecap':_0x5724cd(0x2f9),'strokeLinejoin':_0x5724cd(0x2f9),'strokeWidth':1.2}}]},{'tag':_0x5724cd(0x302),'attrs':{},'children':[{'tag':_0x5724cd(0x1fc),'attrs':{'id':_0x5724cd(0x103)},'children':[{'tag':'path','attrs':{'fill':_0x5724cd(0x304),'d':_0x5724cd(0x303),'transform':_0x5724cd(0x2fa)}}]}]}],'defIds':[_0x5724cd(0x103)]},Mt=_0x5dd539(function(_0x22619a,_0xc62a26){const _0x412965=_0x5724cd;return _0x3f82cd(Ve,Object['assign']({},_0x22619a,{'id':_0x412965(0x2cf),'ref':_0xc62a26,'icon':Ei}));});Mt['displayName']=_0x5724cd(0x14a);function pi(_0x1ac015){const _0x1184ae=_0x5724cd;switch(_0x1ac015){case _0x50afaa[_0x1184ae(0x171)]:return'collabStatus.offline';case _0x50afaa[_0x1184ae(0x1df)]:return _0x1184ae(0x1ed);case _0x50afaa[_0x1184ae(0x243)]:return _0x1184ae(0x305);case _0x50afaa['NOT_COLLAB']:return'collabStatus.notCollab';case _0x50afaa[_0x1184ae(0x1f6)]:case _0x50afaa[_0x1184ae(0x290)]:return _0x1184ae(0x1a6);case _0x50afaa[_0x1184ae(0x18c)]:case _0x50afaa['PENDING']:return'collabStatus.synced';}}function _0xc813(){const _0x2a9c23=['getTypeOfUnitAdded$','_localeService','CLOSE_ROOM','tag','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disableLocalCache','history','transformRemoteChangeset','_docSkeleton','isArray','_localStorageService','onPointerMove$','add','_scene','/run/','event$','_context','_hovered','redoState','UniverIcon','onPointerEnter$','ENTITLE_REPORT_LIMIT_EXCEED','getCurrent','_notificationService','_name','unitId','SNAPSHOT_HAS_BEEN_REMOVED','params','_session','COMPLETION_FINISHED','dispose$','now','_init','LICENSE_EXPORT_SIZE_EXCEEDED','symbol','[CollaborationDataLoaderController]','init','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','OFFLINE','getMemberID','length','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ENSURE_SNAPSHOT_EXECUTION','APPLY_REJECT','setTimeout','unit','invokeId','UNRECOGNIZED','addEventListener','_cachedData','_hasFormulaInDirtyRanges','_docTransformIMECacheService','row','USER_IS_ANONYMOUS','m2Prime','random','data','_configService','key','getCurrentSelections','exhaustSavingTask','url(#off-line-icon_clip0_910_343)','then','collaboration.closeRoom','LICENSE_IMPORT_SIZE_EXCEEDED','SYNCED','_initResize','rgba(255,\x20255,\x20255,\x200.01)','DeleteRangeMoveUpCommandId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','isActive','error','getSkeleton','NO_OTHER_CLIENTS_EDITING','_initCommandInterceptor','REDEMPTION_CODE_NOT_STARTED','_startDocCollabCursor','_applyCommand','_transformService','startFormulaLimitUrl','REDEMPTION_USER_NOT_ELIGIBLE','LOGIN_TOKEN_PROCESSING_FAILED','univer-mr-2\x20univer-flex\x20univer-text-xl','_eventUnsubscribe','href','_setFormulaLimitStatus','_getFormulaLimitStatus','_urlService','_lastPointer','_getScale','forEach','collabStatus.syncing','_saveCache','result','removeParam','_cursor','ranges','uni.network.url-service','engine','_docSkeletonManagerService','univerjs-icon\x20univerjs-icon-','_httpService','subscribeEvent','_transformUndoRedoStack','getMergeData','_onRefRangeChange','url(#$1','selection','currentTheme$','type','transformIMECache','toRgbString','height','onLocalMutation','delete','formula.calculation.unable','OTHER_CLIENTS_EDITING','transformByState','includes','YUUMI_NO_CUBOID_FOR_QUESTION','getParam','onMouseMove','eventID','getViewport','_showGuardMessage','_checkCalculationAvailable','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','/universer-api/license/formula/limit/start','_instanceService','_taskIds','Failed','subscribe','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','has','fillText','application/json','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initEvent','size','getRangePointData','setActiveRange','...','ENTITLE_DUP_SUBSCRIPTION','triggerDblclick','evenodd','fillRule','executeCommand','replace','CONFLICT','defIds','_shapes','disposeWithMe','runId','_setupSubUnitSync','_uiPartsService','children','OffLineIcon','selections','SNAPSHOT_INVALID_SNAPSHOT','MOBILE_HAS_BEEN_BOUND','makeDirty','onPointerLeave$','collabStatus.conflict','getCurrentUnitForType','unsubscribe','fillStyle','WECHAT_HAS_BEEN_BOUND','backgroundColor','subunit','YUUMI_AI_RUN_FAILED','idSuffix','AWAITING','getUniverSheetInstance','TOO_MANY_REQUESTS','_removeCollabCursors','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','actions','clipPath','AUTHORIZE_CODE_ILLEGAL','_scheduleSaving','_onCursorUpdate','collab-text-anchor-','origin','restore','some','FromArray','_dataLoaderService','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','dispose','lineTo','div','_assignedColors','arc','_collaborationController','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCurrentRevOfUnit','endRow','_unitStatus','permission.title','getStateCache','split','_heartbeatTimer','pluginName','getActiveSheet','CHANGESET_REVISION_CONFILICT','debug','_injector','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','createSocket','off-line-icon','entries','_doCreateSocket','UNAUTHENTICATED','_drawAnchor','_updateSubUnitFromURLParams','INTERNAL_ERROR','replaceDocRanges','formula.calculation.waiting','_updateCollabCursors','code','setShapeProps','_memberService','collaboration-client.offline-data-not-saved','YUUMI_TABLE_NOT_FOUND_IN_UNIT','name','_docStateChangeManagerService','ENTITLE_NEED_BILLING_ADDRESS','reconnect','_sheetSkeletonManagerService','m1Prime','getOwnPropertyDescriptor','_roomMembers$','getCollabEntity$','OTHER_CLIENT_EDITING','_refRangeService','saveTaskMap','limitInfo','29979VFHYDP','START_CALCULATION','_handleLeaveEvent','INVALID_ARGUMENT','drawWith','RemoveColCommandId','max','_status$','_createSocketURL','PY_RUNTIME_SCRIPT_ERROR','none','FETCH_MISS','green.600','post','_toggleOnline','svg','string','_setupBeforeClosingHandler','collab-client.tooltip.reconnect','transform','registerRenderModule','beginPath','Error','searchParams','functionsExecutedState','301060wuhwQE','mutations','unload','2061678PyTjLz','APPLY_NON_SEQUENTIAL_REVISION','_getMergeRange','getCollabCursors$','_unitOnClients','off-line-icon_clip0_910_343','getUnitId','_handleEvent','findNodePositionByCharIndex','REDEMPTION_CODE_INACTIVE','registerBeforeClose','hide','executionId','5814360UuplYo','_logService','loadUnit','black','7610bwUOEi','_drawRectRange','_collabSessionService','pushState','SUCCESS','enableLocalCache','Loading','collabCursorState$','syncEditingCollabCursor','wsSessionTicketUrl','_getSheetObject','_onCursorDelete','measureText','clearTimeout','flatMap','stringify','width','_syncEditingCollabCursorService','transformMutation','getItem','_initDependencies','override','_collabCursorController','_config','EMAIL_HAS_BEEN_BOUND','APPLY_REVISION_CONFILICT','SUBMIT_CHANGESET_TIMEOUT','YUUMI_RATE_OVER_LIMIT','collab-rect-range-','url(#on-line-icon_clip0_910_349)','getActiveRange','_textBubble','range','color','APPLY_DUPLICATED','labelPosition','newValue','clearInterval','UNIVER_DOC','textRanges','top','_maxFormulaLimit','PAYMENT_CHANNEL_NOT_SUPPORT','AWAITING_WITH_PENDING','xlink:href','USER_NOT_INVITED_CODE','setParam','session.collaboration-timeout','focused$','ticket','get','_hover','_renderManagerService','stageInfo','show','MOBILE_VERIFY_CODE_MISMATCH','startRow','InsertRowCommandId','LICENSE_MAX_UNITS_EXCEEDED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_CONNECTOR_URL_NOT_FOUND','endColumn','disposeUnit','HEADER_MENU','undoState','InsertRangeMoveRightCommandId','PERMISSION_DENIED','_draw','body','trim','getUndoRedoMutationParamsCache','sessionTicket','InsertColCommandId','getUnit','361565jQNxhs','displayName','INVITE_CODE_HAS_BEEN_UES','getformulaLimitStatusUrl','subUnitId','addHandlerCallback','blue.400','1241121pXerLm','startColumn','_checkAndWaitForCalculationPermission','_startSheetCollabCursor','cursorInfo','setAlpha','sessionStatus$','EMAIL_VERIFY_CODE_MISMATCH','_revisionService','unitID','getRelativeToViewportCoord','isEditing','unshift','INVALID_INVITE_CODE','saveOfflineData','_cursorShapes','_getSaveTimeout','getColorFromTheme','_lastResponseTimestamp','_labelPosition','getConfig','_imageIoService','ALREADY_EXISTS','maxFormulaLimit','_selfUnitIDs','on-line-icon','_clearOtherTimers','_disabled','roomMembers$','UNIVER_SHEET','Success','source','fill','_handleHeartbeatEvent','getFocusedUnit','univer-flex\x20univer-items-center','getDocRanges','LICENSE_DISTRO_REJECTED','_updateLocalCursor','MoveRangeCommandId','_cursors','_colorIndex','red.300','_range','with','YUUMI_ALL_TABLES_IS_INVALID','_registerDependencies','parse','parseInt','substring','_color','_anchor','_saveTaskMap','_cursorInfo$','push','REDEMPTION_CODE_HAS_BEEN_CREATED','_pollingInterval','_commandService','set','INVITE_CODE_REQUIRED','_drawTextRange','LOGIN_FAILED','3532235WAQsTj','addClipboardHook','assignAColorForMemberID','_registerRenderDependencies','_localCacheService','round','translate(.97)','beforeCommandExecuted','INVITE_CODE_ALREADY_BOUND','USER_NOT_FOUND','_online','min','_docTransformStateCacheService','VIEW_MAIN','defs','M0\x200H16V16H0z','white','collabStatus.fetchMiss','UNDEFINED','_colorAssignService','_document','ERROR_AGAIN','setItem','sheetId','CONNECTOR_DATA_TOO_LARGE','map','getSheetId','onStarting','_releaseCalculationLimit','_handleHover','attrs','_updateURLWithCurrentState','cursorInfo$','docStateChange$','_initCommandExecutedListener','session.connection-failed','_currentUsage','search','15GDZayW','urlChange$','ENTITLE_CHAT_LIMIT_EXCEED','getRenderById','resize','_univerInstanceService','ONLINE','createInstance','popstate','mask','_render','http://www.w3.org/2000/svg','CURRENT_STATUS_CANNOT_OPERATE','_id','status$','runOnServer','_initStatusListener','_hideTimer','Warning','2AxiDiy','YUUMI_UNABLE_LOAD_URL','_docSyncEditingCollabCursorService','_transformHistoryAndStateStack','TEXT','sheetID','asObservable','transformStateCache','_scheduleHeartbeat','1em','send','_anchorDot','path','getSheetBySheetId','getCellMatrix','REDEMPTION_INVALID_CODE','getMember','_refreshCollabCursors','colorChannel1','_collaborationUIEventService','on-line-icon_clip0_910_349','getUnitStatus$','_initStatusComponent','_backgroundColor','formula.calculation.started','complete','entityInit$','registerRefRange','collaboration-client-ui.config','_send','NOT_FOUND','REDEMPTION_CODE_FULLY_REDEEMED','_clearPolling','roomMembers','_beforeCloseService','JOIN_ROOM_FAILED','_ensureSubject','jiqing.500','text','getValue','currentSkeleton$','setStateCache','deepClone','onCommandExecuted','column','requireSession','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','_themeService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UPDATE_CURSOR','_removeClearOtherTimer','toString','closePath','_messageService','defineProperty','memberID','_entities','save','_collabCursorState$','_initEntityListener','hovered','YUUMI_SUBSCRIPTION_NOT_FOUND','ENTITLE_INSUFFICIENT_QUOTA','USERS_LEAVE','startsWith','next','current','NOT_COLLAB','storage','0\x200\x2016\x2016','addObject','_docTransformSelectionsService','onRendered','APPLY_PERMISSION_DENIED','getAncestorScale','_entityInit$','location','stage','transformMutationsWithChangeset','_docClipboardService','doc.mutation.rich-text-editing','DeleteRangeMoveLeftCommandId','editingUnit','REDEMPTION_USER_REDEEM_TIMES_EXCEED','YUUMI_ASYNCIO_CANCELLED','_toggleOffline','_scheduleClearOtherTimer','currentColor','replaceState','pipe','values','OnLineIcon'];_0xc813=function(){return _0x2a9c23;};return _0xc813();}function _0x4324(_0x16bf3,_0x1b3031){const _0xc81348=_0xc813();return _0x4324=function(_0x4324cf,_0x5b75d9){_0x4324cf=_0x4324cf-0xd0;let _0xa432ba=_0xc81348[_0x4324cf];return _0xa432ba;},_0x4324(_0x16bf3,_0x1b3031);}function Oi(_0x3a815d){const _0x45d3ca=_0x5724cd,{status$:_0x550236}=_0x3a815d,_0x2e41ef=_0x4756b4(_0x550236,_0x50afaa[_0x45d3ca(0x132)]),_0x3b30d0=_0x2bd7e4(_0x234aab),_0x269256=_0x2bd7e4(_0x2c15e3),_0x45dc2e=_0x2e41ef!==_0x50afaa[_0x45d3ca(0x171)],_0x1838ed=_0x3b30d0['t'](pi(_0x2e41ef)),_0xdfa4a0=_0x45dc2e?_0x3ea50e(Mt,{}):_0x3ea50e(Lt,{}),_0x52b798=_0x73dded(()=>{const _0x20027b=_0x45d3ca;_0x45dc2e||_0x269256[_0x20027b(0x22e)]();},[_0x45dc2e,_0x269256]);function _0x29167f(){const _0x2125e8=_0x45d3ca;return _0x5fce33(_0x2125e8(0x209),{'className':_0x2125e8(0x2d9),'onClick':_0x52b798,'children':[_0x3ea50e('div',{'className':_0x386c2c(_0x2125e8(0x19d),{'univer-text-green-500':_0x45dc2e,'univer-text-red-500':!_0x45dc2e}),'children':_0xdfa4a0}),_0x3ea50e(_0x2125e8(0x209),{'className':_0x2125e8(0x1c9),'children':_0x1838ed})]});}return _0x45dc2e?_0x29167f():_0x3ea50e(_0x41ecc8,{'title':_0x3b30d0['t'](_0x45d3ca(0x24a)),'children':_0x29167f()});}var Ti=Object[_0x5724cd(0x231)],Ci=(_0x125330,_0x4983e1,_0x4e7f0c,_0x3a8e15)=>{const _0x160b11=_0x5724cd;for(var _0x96e63a=_0x3a8e15>0x1?void 0x0:_0x3a8e15?Ti(_0x4983e1,_0x4e7f0c):_0x4983e1,_0x4c9711=_0x125330[_0x160b11(0x173)]-0x1,_0x1d5aa7;_0x4c9711>=0x0;_0x4c9711--)(_0x1d5aa7=_0x125330[_0x4c9711])&&(_0x96e63a=_0x1d5aa7(_0x96e63a)||_0x96e63a);return _0x96e63a;},se=(_0x3807f5,_0x4f6969)=>(_0x1d814f,_0x3dda3d)=>_0x4f6969(_0x1d814f,_0x3dda3d,_0x3807f5);let oe=class extends _0x2916da{constructor(_0x362c92,_0x2685c5,_0x441b42,_0x2cbe73){const _0xc3f18d=_0x5724cd;super(),l(this,_0xc3f18d(0x23f),new _0x29a5ca(_0x50afaa['NOT_COLLAB'])),(this[_0xc3f18d(0xe1)]=_0x362c92,this[_0xc3f18d(0x219)]=_0x2685c5,this['_collaborationController']=_0x441b42,this[_0xc3f18d(0x1e5)]=_0x2cbe73,this[_0xc3f18d(0x105)](),this['_initStatusListener']());}[_0x5724cd(0xec)](){const _0x2bc9a8=_0x5724cd;this[_0x2bc9a8(0x1e2)](this['_univerInstanceService'][_0x2bc9a8(0x295)][_0x2bc9a8(0x148)](_0xa10b69(()=>{const _0xd49107=_0x2bc9a8,_0x31f0d3=this[_0xd49107(0xe1)][_0xd49107(0x2d8)]();return _0x31f0d3?this[_0xd49107(0x20c)][_0xd49107(0x233)](_0x31f0d3[_0xd49107(0x25a)]()):_0x2a30cc(null);}),_0xa10b69(_0x1ae58a=>_0x1ae58a?_0x1ae58a[_0x2bc9a8(0xea)]:_0x2a30cc(_0x50afaa[_0x2bc9a8(0x132)])))['subscribe'](_0x5bdd65=>{const _0x4b63d8=_0x2bc9a8;this[_0x4b63d8(0x23f)][_0x4b63d8(0x130)](_0x5bdd65);}));}[_0x5724cd(0x105)](){const _0x2774c1=_0x5724cd;this['disposeWithMe'](this[_0x2774c1(0x1e5)]['registerComponent'](_0x1c67bd[_0x2774c1(0x2a4)],()=>_0x3aeb97(Ri({'status$':this[_0x2774c1(0x23f)][_0x2774c1(0xf5)]()}),this[_0x2774c1(0x219)])));}};oe=Ci([se(0x0,_0x166a1e),se(0x1,_0x4db080(_0xca9a6f)),se(0x2,_0x4db080(_0x18f9ba)),se(0x3,_0x3ff3af)],oe);function Ri(_0x4f98b1){const {status$:_0x483a76}=_0x4f98b1;return function(){return _0x3ea50e(Oi,{'status$':_0x483a76});};}const At=_0x5e1b6d(_0x5724cd(0x1ac));var Di=Object[_0x5724cd(0x231)],Ni=(_0x1eeee2,_0x27bbec,_0x1f1d67,_0x203b19)=>{for(var _0xef71c6=_0x203b19>0x1?void 0x0:_0x203b19?Di(_0x27bbec,_0x1f1d67):_0x27bbec,_0x228267=_0x1eeee2['length']-0x1,_0x12baa9;_0x228267>=0x0;_0x228267--)(_0x12baa9=_0x1eeee2[_0x228267])&&(_0xef71c6=_0x12baa9(_0xef71c6)||_0xef71c6);return _0xef71c6;},K=(_0x267b2c,_0x4fe574)=>(_0x3a8f6b,_0x17fe6f)=>_0x4fe574(_0x3a8f6b,_0x17fe6f,_0x267b2c);let ae=class extends _0x466553{constructor(_0x6a6752,_0x134a9d,_0x1d884d,_0x442dd8,_0x8e1f70){const _0x2551f3=_0x5724cd;super(),this[_0x2551f3(0x1a2)]=_0x6a6752,this['_logService']=_0x134a9d,this[_0x2551f3(0x2ef)]=_0x1d884d,this[_0x2551f3(0x205)]=_0x442dd8,_0x8e1f70?_0x8e1f70==null||_0x8e1f70['whenReady']()['then'](()=>this[_0x2551f3(0x16b)]()):(this[_0x2551f3(0x262)][_0x2551f3(0x218)](_0x2551f3(0x16e),_0x2551f3(0x1cf)),this['_init']());}async[_0x5724cd(0x16b)](){const _0x5edd33=_0x5724cd,_0x3ff3b7=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x178)),_0x39dbf2=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x1b8)),_0x5054c6=this[_0x5edd33(0x1a2)][_0x5edd33(0x1c3)](_0x5edd33(0x1f3));if(!_0x3ff3b7||!_0x39dbf2){this[_0x5edd33(0x262)][_0x5edd33(0x218)](_0x5edd33(0x16e),_0x5edd33(0x14f));return;}const _0x4e7ff5=await this[_0x5edd33(0x205)][_0x5edd33(0x263)](_0x3ff3b7,Number(_0x39dbf2),_0x5054c6);_0x4e7ff5&&_0x4e7ff5 instanceof _0x2d40a7&&this['_setupSubUnitSync'](_0x4e7ff5);}async[_0x5724cd(0x1e4)](_0x292ba4){const _0x5a1207=_0x5724cd;await this[_0x5a1207(0x221)](_0x292ba4),_0x292ba4['activeSheet$'][_0x5a1207(0x148)](_0x29d39(this['dispose$']))['subscribe'](_0x1220dd=>{_0x1220dd&&this['_updateURLWithCurrentState'](_0x1220dd);}),this[_0x5a1207(0x1a2)]['urlChange$']['pipe'](_0x29d39(this['dispose$']))[_0x5a1207(0x1ce)](()=>this[_0x5a1207(0x221)](_0x292ba4));}[_0x5724cd(0xd5)](_0x34860e,_0x54d8b7=!0x1){const _0x16d079=_0x5724cd,_0x104779=this[_0x16d079(0x1a2)][_0x16d079(0x1c3)](_0x16d079(0x1f3));_0x34860e[_0x16d079(0xd0)]()!==_0x104779&&this[_0x16d079(0x1a2)][_0x16d079(0x293)]('subunit',_0x34860e['getSheetId'](),_0x54d8b7);}async[_0x5724cd(0x221)](_0x182305){const _0x5a8919=_0x5724cd;var _0x2d173b;const _0x59599b=this[_0x5a8919(0x1a2)][_0x5a8919(0x1c3)](_0x5a8919(0x1f3));if(!_0x59599b||!_0x182305[_0x5a8919(0xfc)](_0x59599b)){const _0x5c4a82=_0x182305['getUnhiddenWorksheets']()[0x0],_0x4b11f8=_0x182305['getSheetBySheetId'](_0x5c4a82);if(!_0x4b11f8)return;this['_updateURLWithCurrentState'](_0x4b11f8,!0x0),await this[_0x5a8919(0x2ef)][_0x5a8919(0x1dd)](_0x49cac3['id'],{'unitId':_0x182305[_0x5a8919(0x25a)](),'subUnitId':_0x5c4a82});return;}((_0x2d173b=_0x182305[_0x5a8919(0x216)]())==null?void 0x0:_0x2d173b['getSheetId']())!==_0x59599b&&await this['_commandService'][_0x5a8919(0x1dd)](_0x49cac3['id'],{'unitId':_0x182305[_0x5a8919(0x25a)](),'subUnitId':_0x59599b});}};ae=Ni([K(0x0,At),K(0x1,_0x1edaba),K(0x2,_0x3d0367),K(0x3,_0x4db080(_0x2c6881)),K(0x4,_0x28a111(_0x30a3e3))],ae);var bi=Object[_0x5724cd(0x231)],Ui=(_0x249b59,_0x54390d,_0x3f314a,_0x412134)=>{for(var _0x4acaa3=_0x412134>0x1?void 0x0:_0x412134?bi(_0x54390d,_0x3f314a):_0x54390d,_0x4889ef=_0x249b59['length']-0x1,_0x53f2d9;_0x4889ef>=0x0;_0x4889ef--)(_0x53f2d9=_0x249b59[_0x4889ef])&&(_0x4acaa3=_0x53f2d9(_0x4acaa3)||_0x4acaa3);return _0x4acaa3;},tt=(_0x286e34,_0x5f52c4)=>(_0x1f10d6,_0x27b433)=>_0x5f52c4(_0x1f10d6,_0x27b433,_0x286e34);let Ae=class extends _0x466553{constructor(_0x4c9277,_0x1a812e){const _0x95bc1e=_0x5724cd;super(),this[_0x95bc1e(0x13e)]=_0x4c9277,this[_0x95bc1e(0x2cb)]=_0x1a812e,this['_init']();}[_0x5724cd(0x16b)](){const _0x2d8e70=_0x5724cd,_0x4643fe=this;this['disposeWithMe'](this[_0x2d8e70(0x13e)][_0x2d8e70(0x2f5)]({'onBeforePasteImage':async _0x35b8d1=>{const _0x4a86d8=_0x2d8e70,_0x3ba0be=await _0x4643fe[_0x4a86d8(0x2cb)]['saveImage'](_0x35b8d1);return _0x3ba0be?{'source':_0x3ba0be[_0x4a86d8(0x2d5)],'imageSourceType':_0x3ba0be['imageSourceType']}:null;}}));}};Ae=Ui([tt(0x0,_0xbfc833),tt(0x1,_0x3b68ae)],Ae);const st=['purple.300',_0x5724cd(0x114),_0x5724cd(0x244),_0x5724cd(0x2e0),_0x5724cd(0x2b5),'yellow.400'];class je extends _0x2916da{constructor(){const _0x5d3552=_0x5724cd;super(...arguments),l(this,_0x5d3552(0x20a),new Map()),l(this,_0x5d3552(0x2df),0x0);}['assignAColorForMemberID'](_0x1ec0b2){const _0xf24724=_0x5724cd;if(this[_0xf24724(0x20a)][_0xf24724(0x1d0)](_0x1ec0b2))return this[_0xf24724(0x20a)][_0xf24724(0x297)](_0x1ec0b2);const _0x16bd8f=st[this[_0xf24724(0x2df)]];return this['_colorIndex']=(this[_0xf24724(0x2df)]+0x1)%st['length'],this['_assignedColors'][_0xf24724(0x2f0)](_0x1ec0b2,_0x16bd8f),_0x16bd8f;}}function Pt(_0x2da524){let _0x115f52='';for(const _0xbee8f4 of _0x2da524){const {startOffset:_0x161bf8,endOffset:_0x2f63db,isActive:_0x5e4397,rangeType:_0x3b4fef,segmentId:_0x377477,segmentPage:_0x51524c}=_0xbee8f4;_0x115f52['length']&&(_0x115f52+=','),_0x115f52+=_0x161bf8+':'+_0x2f63db+':'+(_0x5e4397?'1':'0')+':'+_0x3b4fef+':'+_0x377477+':'+_0x51524c;}return _0x115f52;}function Li(_0x25ac83){const _0x16d536=_0x5724cd,_0x48ebe6=_0x25ac83['split'](','),_0x161436=[];for(const _0x48c1cb of _0x48ebe6){const [_0x2bcaba,_0x2f7c26,_0x26a19f,_0x2e4633,_0x16b19a,_0x36c016]=_0x48c1cb[_0x16d536(0x213)](':');_0x161436['push']({'startOffset':Number(_0x2bcaba),'endOffset':Number(_0x2f7c26),'collapsed':_0x2bcaba===_0x2f7c26,'isActive':_0x26a19f==='1','rangeType':_0x2e4633===_0x4bed57[_0x16d536(0xf3)]?_0x4bed57[_0x16d536(0xf3)]:_0x4bed57['RECT'],'segmentId':typeof _0x16b19a==_0x16d536(0x248)?String(_0x16b19a):'','segmentPage':Number(_0x36c016!=null?_0x36c016:-0x1)});}return _0x161436[_0x16d536(0x203)](_0x56caa4=>_0x56caa4[_0x16d536(0x191)])||(_0x161436[0x0]['isActive']=!0x0),_0x161436;}class Xe extends _0x466553{constructor(){const _0x42d2a8=_0x5724cd;super(...arguments),l(this,_0x42d2a8(0x129),new _0x29a5ca(null)),l(this,'collabCursorState$',this[_0x42d2a8(0x129)][_0x42d2a8(0xf5)]());}[_0x5724cd(0x26d)](_0x9bdcaf){const _0x4041fb=_0x5724cd,{unitID:_0x32ca03,memberID:_0x36dff5,textRanges:_0xb309b}=_0x9bdcaf,_0x37d2c6=Pt(_0xb309b);if(_0x37d2c6==='')return;const _0x3123e7={'unitID':_0x32ca03,'memberID':_0x36dff5,'selection':_0x37d2c6};this[_0x4041fb(0x129)]['next'](_0x3123e7);}}var Mi=Object[_0x5724cd(0x231)],Ai=(_0x517683,_0x33bc01,_0x5e9d40,_0x2f6f5b)=>{const _0x10acc8=_0x5724cd;for(var _0x497113=_0x2f6f5b>0x1?void 0x0:_0x2f6f5b?Mi(_0x33bc01,_0x5e9d40):_0x33bc01,_0x532fd9=_0x517683[_0x10acc8(0x173)]-0x1,_0x559d68;_0x532fd9>=0x0;_0x532fd9--)(_0x559d68=_0x517683[_0x532fd9])&&(_0x497113=_0x559d68(_0x497113)||_0x497113);return _0x497113;},A=(_0xd02617,_0x1acf41)=>(_0x4802c1,_0x2a017e)=>_0x1acf41(_0x4802c1,_0x2a017e,_0xd02617);const Pi=0x12c,wi=0x64;let Pe=class extends _0x466553{constructor(_0x37f900,_0x3eaa4e,_0x403a86,_0x50a6c7,_0x533e49,_0x436012,_0x3c7677,_0x3da655,_0x21a1c3){const _0x4842aa=_0x5724cd;super(),l(this,_0x4842aa(0x2fe),!0x1),l(this,_0x4842aa(0x16b),!0x1),l(this,_0x4842aa(0x2eb),new _0x29a5ca(new Map())),l(this,'cursorInfo$',this['_cursorInfo$'][_0x4842aa(0xf5)]()),l(this,_0x4842aa(0x232),new _0x29a5ca([])),l(this,'roomMembers$',this[_0x4842aa(0x232)][_0x4842aa(0x148)](_0x19dce7(Pi))),l(this,_0x4842aa(0x2dc),_0x322732(_0xfbc1a6=>{const _0x3baca7=_0x4842aa,_0x4ced91={'eventID':_0x1c5ec5['UPDATE_CURSOR'],'data':{'unitID':this[_0x3baca7(0x2bf)],'memberID':this['_session'][_0x3baca7(0x172)](),'selection':Pt(_0xfbc1a6)}};this[_0x3baca7(0x167)][_0x3baca7(0xf9)](_0x4ced91,this['unitID']);},wi)),(this['unitID']=_0x37f900,this[_0x4842aa(0x167)]=_0x3eaa4e,this[_0x4842aa(0x219)]=_0x403a86,this[_0x4842aa(0x307)]=_0x50a6c7,this[_0x4842aa(0x228)]=_0x533e49,this['_syncEditingCollabCursorService']=_0x436012,this[_0x4842aa(0x199)]=_0x3c7677,this[_0x4842aa(0xe1)]=_0x3da655,this[_0x4842aa(0x2ef)]=_0x21a1c3);}get[_0x5724cd(0x2ba)](){const _0x16ba5f=_0x5724cd;return this[_0x16ba5f(0x2eb)][_0x16ba5f(0x116)]();}get[_0x5724cd(0x110)](){const _0x220a1b=_0x5724cd;return this[_0x220a1b(0x232)][_0x220a1b(0x116)]();}[_0x5724cd(0x207)](){const _0x546edf=_0x5724cd;super['dispose'](),this[_0x546edf(0x2eb)][_0x546edf(0x130)](new Map()),this[_0x546edf(0x2eb)]['complete'](),this[_0x546edf(0x232)]['next']([]),this[_0x546edf(0x232)][_0x546edf(0x108)]();}[_0x5724cd(0x16f)](){const _0x282b44=_0x5724cd;this['_init']||(this[_0x282b44(0x16b)]=!0x0,this[_0x282b44(0x167)][_0x282b44(0x2bc)]['pipe'](_0x29d39(this[_0x282b44(0x169)]))[_0x282b44(0x1ce)](_0xbfd201=>{const _0x43791c=_0x282b44;_0xbfd201===_0x452290[_0x43791c(0xe2)]?this[_0x43791c(0x246)]():this[_0x43791c(0x144)]();}),this[_0x282b44(0x167)][_0x282b44(0x15a)][_0x282b44(0x148)](_0x29d39(this[_0x282b44(0x169)]))['subscribe'](_0x36af7c=>{const _0x45c2a2=_0x282b44,_0x298978=_0x36af7c[_0x45c2a2(0x1c5)];_0x298978===_0x1c5ec5[_0x45c2a2(0x120)]&&this[_0x45c2a2(0x1ff)](_0x36af7c),_0x298978===_0x1c5ec5[_0x45c2a2(0x12e)]&&this['_onCursorDelete'](_0x36af7c);}),this[_0x282b44(0x1e2)](this['_commandService'][_0x282b44(0x11a)](_0x58231b=>{const _0x21c97b=_0x282b44,_0x362061=_0x58231b['params'];_0x362061!=null&&this[_0x21c97b(0x2fe)]&&_0x58231b['id']===_0x38bad8['id']&&_0x362061['unitId']===this[_0x21c97b(0x2bf)]&&_0x362061[_0x21c97b(0x2c1)]===!0x1&&_0x362061[_0x21c97b(0x1ab)][_0x21c97b(0x173)]>0x0&&this[_0x21c97b(0x2dc)](_0x362061[_0x21c97b(0x1ab)]);})),this[_0x282b44(0x276)][_0x282b44(0x26c)][_0x282b44(0x148)](_0x29d39(this['dispose$']))[_0x282b44(0x1ce)](_0x44514=>{const _0x1bacde=_0x282b44;if((_0x44514==null?void 0x0:_0x44514[_0x1bacde(0x2bf)])!==this['unitID'])return;const _0xfe99={'eventID':_0x1c5ec5[_0x1bacde(0x120)],'data':_0x44514};this[_0x1bacde(0x1ff)](_0xfe99);}),this['disposeWithMe'](this[_0x282b44(0x2ef)][_0x282b44(0x11a)](_0x83a4dc=>{const _0x1c2190=_0x282b44;if(_0x83a4dc[_0x1c2190(0x166)]==null)return;const _0x37260f=_0x83a4dc['params'];if(_0x83a4dc['id']!==_0x1cf356['id']||_0x37260f[_0x1c2190(0x164)]!==this['unitID'])return;const _0x29552a={'id':_0x1c2190(0x13f),'params':_0x37260f},_0x41149f=this[_0x1c2190(0x2ba)];for(const [_0x357273,_0xae73e1]of _0x41149f){const _0x52b35b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1c2190(0x2bf)],'actions':null,'textRanges':_0xae73e1['ranges']}},_0x258006=this[_0x1c2190(0x199)]['transformMutation'](_0x29552a,_0x52b35b,!0x1);if(_0x48ab2e(_0x258006))throw _0x258006[_0x1c2190(0x192)];_0x41149f[_0x1c2190(0x2f0)](_0x357273,{..._0xae73e1,'ranges':_0x258006[_0x1c2190(0x181)]['params'][_0x1c2190(0x28c)]});}queueMicrotask(()=>{const _0xbca6c=_0x1c2190;this[_0xbca6c(0x2eb)]['next'](_0x41149f);});})));}[_0x5724cd(0x1ff)](_0x4a9fad){const _0x42a9bf=_0x5724cd;var _0x1e1f52,_0x560fb5;const {memberID:_0x31f7dd,selection:_0x2ac7e1}=_0x4a9fad[_0x42a9bf(0x183)],_0x221c39=Li(_0x2ac7e1),_0x35bcd4=(_0x560fb5=(_0x1e1f52=this['_memberService'][_0x42a9bf(0xff)](this['unitID'],_0x31f7dd))==null?void 0x0:_0x1e1f52['name'])!=null?_0x560fb5:'Unknown\x20user',_0x3cca14={'color':this[_0x42a9bf(0x307)][_0x42a9bf(0x2f6)](_0x31f7dd),'name':_0x35bcd4,'ranges':_0x221c39},_0x559ae0=this['cursorInfo'];_0x559ae0[_0x42a9bf(0x2f0)](_0x31f7dd,_0x3cca14),this[_0x42a9bf(0x2eb)][_0x42a9bf(0x130)](_0x559ae0);}[_0x5724cd(0x270)](_0x404c1f){const _0x4216de=_0x5724cd,{memberID:_0x17f1c4}=_0x404c1f['data'],_0x4a8f7c=this[_0x4216de(0x2ba)];_0x4a8f7c[_0x4216de(0x1bd)](_0x17f1c4),this[_0x4216de(0x2eb)][_0x4216de(0x130)](_0x4a8f7c);}[_0x5724cd(0x246)](){const _0x1d06ef=_0x5724cd;var _0x3e25d5;if(this['_online']=!0x0,((_0x3e25d5=this[_0x1d06ef(0xe1)][_0x1d06ef(0x2d8)]())==null?void 0x0:_0x3e25d5[_0x1d06ef(0x25a)]())!==this[_0x1d06ef(0x2bf)])return;const _0x11aac1=this[_0x1d06ef(0x219)][_0x1d06ef(0x297)](_0x5a5e71)[_0x1d06ef(0x2da)]();Array[_0x1d06ef(0x154)](_0x11aac1)&&_0x11aac1[_0x1d06ef(0x173)]>0x0&&this[_0x1d06ef(0x2dc)](_0x11aac1);}[_0x5724cd(0x144)](){const _0x5ba1be=_0x5724cd;this[_0x5ba1be(0x2fe)]=!0x1;}};Pe=Ai([A(0x2,_0x4db080(_0xca9a6f)),A(0x3,_0x4db080(je)),A(0x4,_0x4db080(_0x1a6b56)),A(0x5,_0x4db080(Xe)),A(0x6,_0x4603fd),A(0x7,_0x166a1e),A(0x8,_0x3d0367)],Pe);var yi=Object[_0x5724cd(0x231)],$i=(_0x1ad0c4,_0x211faf,_0x5a5eb0,_0x4366c8)=>{for(var _0xac3cfc=_0x4366c8>0x1?void 0x0:_0x4366c8?yi(_0x211faf,_0x5a5eb0):_0x211faf,_0x227829=_0x1ad0c4['length']-0x1,_0x3a3646;_0x227829>=0x0;_0x227829--)(_0x3a3646=_0x1ad0c4[_0x227829])&&(_0xac3cfc=_0x3a3646(_0xac3cfc)||_0xac3cfc);return _0xac3cfc;},B=(_0x3f580f,_0x4f3253)=>(_0x4c628f,_0x5c6bb5)=>_0x4f3253(_0x4c628f,_0x5c6bb5,_0x3f580f);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1742c3=[],_0xdfb94e=!0x1;return _0x18c832=>{const _0x39be30=_0x4324;_0x1742c3[_0x39be30(0x2ec)](_0x18c832),_0xdfb94e||(_0xdfb94e=!0x0,setTimeout(()=>{const _0x425092=_0x39be30;_0x1742c3[_0x425092(0x1a5)](_0x3ed76e=>_0x3ed76e()),_0x1742c3=[],_0xdfb94e=!0x1;}));};};let we=class extends _0x466553{constructor(_0x141bfc,_0x55e822,_0x3ff7e5,_0x5582bc,_0x20178d,_0x485c2a,_0xa2a2db,_0x4cbdcf){const _0x28a51f=_0x5724cd;super(),l(this,_0x28a51f(0x2fe),!0x1),l(this,_0x28a51f(0x16b),!0x1),l(this,_0x28a51f(0x2eb),new _0x29a5ca(new Map())),l(this,'cursorInfo$',this[_0x28a51f(0x2eb)][_0x28a51f(0xf5)]()),l(this,'_roomMembers$',new _0x29a5ca([])),l(this,_0x28a51f(0x2d2),this['_roomMembers$'][_0x28a51f(0x148)](_0x19dce7(xi))),l(this,_0x28a51f(0x2dc),_0x322732((_0xe4aed5,_0x5852ef)=>{const _0x4ea578=_0x28a51f,_0x38bb0d={'eventID':_0x1c5ec5[_0x4ea578(0x120)],'data':{'unitID':this[_0x4ea578(0x2bf)],'memberID':this[_0x4ea578(0x167)][_0x4ea578(0x172)](),'selection':_0x25d8d1(_0xe4aed5,_0x5852ef[_0x4ea578(0x285)])}};this['_session']['send'](_0x38bb0d,this[_0x4ea578(0x2bf)]);},Bi)),(this[_0x28a51f(0x2bf)]=_0x141bfc,this['_session']=_0x55e822,this[_0x28a51f(0x219)]=_0x3ff7e5,this['_colorAssignService']=_0x5582bc,this[_0x28a51f(0x228)]=_0x20178d,this['_univerInstanceService']=_0x485c2a,this['_commandService']=_0xa2a2db,this[_0x28a51f(0x235)]=_0x4cbdcf);}get[_0x5724cd(0x2ba)](){const _0x1f02fe=_0x5724cd;return this['_cursorInfo$'][_0x1f02fe(0x116)]();}get[_0x5724cd(0x110)](){const _0x2879f4=_0x5724cd;return this['_roomMembers$'][_0x2879f4(0x116)]();}[_0x5724cd(0x207)](){const _0x116fa5=_0x5724cd;super[_0x116fa5(0x207)](),this[_0x116fa5(0x2eb)][_0x116fa5(0x130)](new Map()),this[_0x116fa5(0x2eb)][_0x116fa5(0x108)](),this[_0x116fa5(0x232)][_0x116fa5(0x130)]([]),this[_0x116fa5(0x232)]['complete']();}[_0x5724cd(0x16f)](){const _0x5da973=_0x5724cd;this[_0x5da973(0x16b)]||(this[_0x5da973(0x16b)]=!0x0,this['_session'][_0x5da973(0x2bc)][_0x5da973(0x148)](_0x29d39(this[_0x5da973(0x169)]))[_0x5da973(0x1ce)](_0x5a56e3=>{const _0x396a6a=_0x5da973;_0x5a56e3===_0x452290[_0x396a6a(0xe2)]?this['_toggleOnline']():this[_0x396a6a(0x144)]();}),this[_0x5da973(0x167)][_0x5da973(0x15a)]['pipe'](_0x29d39(this[_0x5da973(0x169)]))['subscribe'](_0xf312d9=>{const _0x14baf9=_0x5da973,_0x813578=_0xf312d9[_0x14baf9(0x1c5)];_0x813578===_0x1c5ec5[_0x14baf9(0x120)]&&this[_0x14baf9(0x1ff)](_0xf312d9),_0x813578===_0x1c5ec5[_0x14baf9(0x12e)]&&this[_0x14baf9(0x270)](_0xf312d9);}),this['_onRefRangeChange'](),this[_0x5da973(0x1e2)](this[_0x5da973(0x2ef)][_0x5da973(0x11a)](_0x213171=>{const _0x318f5d=_0x5da973;if(this[_0x318f5d(0x2fe)]&&_0x213171['id']===_0x38a87a['id']&&_0x213171['params']['unitId']===this[_0x318f5d(0x2bf)]){const _0x5e6462=_0x213171[_0x318f5d(0x166)];this['_updateLocalCursor'](_0x5e6462[_0x318f5d(0x2b3)],_0x5e6462[_0x318f5d(0x1e8)][0x0]);}})));}[_0x5724cd(0x1ff)](_0x3a5a49){const _0x39805b=_0x5724cd;var _0x883ce,_0x3baacb;const {memberID:_0x3d48a0,selection:_0x22370e}=_0x3a5a49[_0x39805b(0x183)],{sheetName:_0x2cf259,range:_0x2f3ce2}=_0x428cf8(_0x22370e),_0x353453={'name':(_0x3baacb=(_0x883ce=this['_memberService'][_0x39805b(0xff)](this['unitID'],_0x3d48a0))==null?void 0x0:_0x883ce[_0x39805b(0x22b)])!=null?_0x3baacb:'Unknown\x20user','range':this[_0x39805b(0x256)](_0x2cf259,_0x2f3ce2),'sheetID':_0x2cf259,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3d48a0),'selection':_0x22370e},_0xc16437=this[_0x39805b(0x2ba)];_0xc16437[_0x39805b(0x2f0)](_0x3d48a0,_0x353453),this[_0x39805b(0x2eb)][_0x39805b(0x130)](_0xc16437);}[_0x5724cd(0x270)](_0x26ae58){const _0x4497a3=_0x5724cd,{memberID:_0x116bb5}=_0x26ae58[_0x4497a3(0x183)],_0x154ef1=this['cursorInfo'];_0x154ef1['delete'](_0x116bb5),this[_0x4497a3(0x2eb)]['next'](_0x154ef1);}['_getMergeRange'](_0x990983,_0x48cc52){const _0x403515=_0x5724cd;var _0x3a42c4,_0x542b8c;const _0x18540c=(_0x542b8c=(_0x3a42c4=this[_0x403515(0xe1)][_0x403515(0x1f7)](this[_0x403515(0x2bf)]))==null?void 0x0:_0x3a42c4['getSheetBySheetId'](_0x990983))==null?void 0x0:_0x542b8c[_0x403515(0x1b3)]();return(_0x18540c==null?void 0x0:_0x18540c['find'](_0x1f49e5=>_0x3fa0cb['contains'](_0x1f49e5,_0x48cc52)))||_0x48cc52;}[_0x5724cd(0x1b4)](){const _0x3c8d44=_0x5724cd,_0xb0e77c=new _0x43401e(),_0xf66e7b=Fi(),_0x339571=()=>{const _0xb3d27=_0x4324;_0xb0e77c[_0xb3d27(0x207)]();const _0x1ae452=(_0xe70dfc,_0x39050d,_0x11926b,_0x4b96d1)=>{const _0xb161d=_0xb3d27;let _0x3a7737=[];switch(_0xe70dfc['id']){case _0x5d6206[_0xb161d(0x140)]:{_0x3a7737=_0x58c097(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x18f)]:{_0x3a7737=_0x689337(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2ad)]:{_0x3a7737=_0x167ad0(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206['InsertRangeMoveDownCommandId']:{_0x3a7737=_0x46e032(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2a6)]:{_0x3a7737=_0x45c5a6(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x29e)]:{_0x3a7737=_0x2deae8(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x2dd)]:{_0x3a7737=_0x397e48(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206[_0xb161d(0x23d)]:{_0x3a7737=_0xe874f5(_0xe70dfc,_0x4b96d1);break;}case _0x5d6206['RemoveRowCommandId']:{_0x3a7737=_0x46d1c8(_0xe70dfc,_0x4b96d1);break;}}const _0x50f099=_0x2d0a41(_0x3a7737,_0x4b96d1),_0x569311=this[_0xb161d(0x2ba)][_0xb161d(0x297)](_0x39050d);if(_0x569311&&_0x50f099){const _0x567e29={..._0x569311,'range':_0x50f099};this['cursorInfo'][_0xb161d(0x2f0)](_0x39050d,_0x567e29),_0xf66e7b(()=>{const _0x1a305b=_0xb161d,_0x403248=this['_refRangeService'][_0x1a305b(0x10a)](_0x50f099,_0x30020b=>(_0x403248[_0x1a305b(0x207)](),_0x1ae452(_0x30020b,_0x39050d,_0x11926b,_0x50f099)));_0xb0e77c['add'](_0x403248);});}return{'redos':[],'undos':[]};};this[_0xb3d27(0x2ba)][_0xb3d27(0x1a5)]((_0x1790e7,_0x19419f)=>{const _0x20a408=_0xb3d27,{range:_0x97e89a,sheetID:_0x4ae153}=_0x1790e7,_0x55d2aa=this[_0x20a408(0x235)]['registerRefRange'](_0x97e89a,_0x148439=>(_0x55d2aa[_0x20a408(0x207)](),_0x1ae452(_0x148439,_0x19419f,_0x4ae153,_0x97e89a)));_0xb0e77c[_0x20a408(0x157)](_0x55d2aa);});};this[_0x3c8d44(0x1e2)](_0xc6be91(this[_0x3c8d44(0x2eb)][_0x3c8d44(0x1ce)](()=>{_0x339571();})));}[_0x5724cd(0x246)](){const _0xa6758c=_0x5724cd;var _0x3e9d40,_0x403a3c;if(this[_0xa6758c(0x2fe)]=!0x0,((_0x3e9d40=this[_0xa6758c(0xe1)][_0xa6758c(0x2d8)]())==null?void 0x0:_0x3e9d40['getUnitId']())!==this[_0xa6758c(0x2bf)])return;const _0x4fd34b=(_0x403a3c=this[_0xa6758c(0x219)]['get'](_0x1edee4)[_0xa6758c(0x186)]())==null?void 0x0:_0x403a3c[0x0],_0x16e620=this[_0xa6758c(0xe1)][_0xa6758c(0x1ee)](_0x5483ba[_0xa6758c(0x2d3)])[_0xa6758c(0x216)]();_0x4fd34b&&_0x16e620&&this[_0xa6758c(0x2dc)](_0x16e620['getSheetId'](),_0x4fd34b);}[_0x5724cd(0x144)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x4db080(_0xca9a6f)),B(0x3,_0x4db080(je)),B(0x4,_0x4db080(_0x1a6b56)),B(0x5,_0x166a1e),B(0x6,_0x3d0367),B(0x7,_0x4db080(_0x1006f2))],we);var ki=Object[_0x5724cd(0x231)],Hi=(_0x11104c,_0x7b036b,_0x51f083,_0x40724)=>{const _0x19d57f=_0x5724cd;for(var _0x59007a=_0x40724>0x1?void 0x0:_0x40724?ki(_0x7b036b,_0x51f083):_0x7b036b,_0x57f1f0=_0x11104c[_0x19d57f(0x173)]-0x1,_0x135c09;_0x57f1f0>=0x0;_0x57f1f0--)(_0x135c09=_0x11104c[_0x57f1f0])&&(_0x59007a=_0x135c09(_0x59007a)||_0x59007a);return _0x59007a;},Ee=(_0x5a27f6,_0x3b9dcf)=>(_0x38c106,_0x451dac)=>_0x3b9dcf(_0x38c106,_0x451dac,_0x5a27f6);let H=class extends _0x466553{constructor(_0x25cd9f,_0x5c22f8,_0x587f1a){const _0x30eda7=_0x5724cd;super(),l(this,'_entities',new Map()),l(this,_0x30eda7(0x13a),new _0x303857()),(this[_0x30eda7(0xe1)]=_0x25cd9f,this[_0x30eda7(0x219)]=_0x5c22f8,this['_collabSessionService']=_0x587f1a,this[_0x30eda7(0x16b)]());}[_0x5724cd(0x207)](){const _0x5347be=_0x5724cd;super[_0x5347be(0x207)](),this['_entityInit$']['complete'](),this[_0x5347be(0x127)][_0x5347be(0x1a5)](_0x24fa8a=>_0x24fa8a['dispose']());}[_0x5724cd(0x257)](_0x4d94a0){const _0x4668f0=_0x5724cd;return this['_entities'][_0x4668f0(0x1d0)](_0x4d94a0)?this['_entities'][_0x4668f0(0x297)](_0x4d94a0)[_0x4668f0(0xd6)]:this[_0x4668f0(0x13a)][_0x4668f0(0x148)](_0x1d12b5(_0x49cb96=>_0x49cb96[_0x4668f0(0x2bf)]===_0x4d94a0),_0xa10b69(_0x15be0c=>_0x15be0c[_0x4668f0(0xd6)]));}[_0x5724cd(0x16b)](){const _0x5b4735=_0x5724cd;this[_0x5b4735(0xe1)]['getTypeOfUnitAdded$'](_0x5483ba[_0x5b4735(0x2d3)])['pipe'](_0x29d39(this['dispose$']))['subscribe'](async _0x449247=>{const _0x5129be=_0x5b4735,_0x4c85f7=_0x449247['getUnitId'](),_0x8188c1=await this[_0x5129be(0x2b9)](_0x4c85f7);this[_0x5129be(0x13a)][_0x5129be(0x130)](_0x8188c1),this[_0x5129be(0x127)]['set'](_0x4c85f7,_0x8188c1);}),this[_0x5b4735(0xe1)][_0x5b4735(0x14b)](_0x5483ba[_0x5b4735(0x28b)])['pipe'](_0x29d39(this[_0x5b4735(0x169)]))[_0x5b4735(0x148)](_0x1d12b5(_0x490d7c=>!_0x490d7c[_0x5b4735(0x25a)]()[_0x5b4735(0x12f)]('__')))[_0x5b4735(0x1ce)](async _0x22fc3a=>{const _0x418c2f=_0x5b4735,_0x3a9ad9=_0x22fc3a[_0x418c2f(0x25a)](),_0x197b08=await this[_0x418c2f(0x197)](_0x3a9ad9);this[_0x418c2f(0x13a)][_0x418c2f(0x130)](_0x197b08),this['_entities'][_0x418c2f(0x2f0)](_0x3a9ad9,_0x197b08);}),_0x14f17d(this[_0x5b4735(0xe1)]['getTypeOfUnitDisposed$'](_0x5483ba[_0x5b4735(0x28b)]),this[_0x5b4735(0xe1)]['getTypeOfUnitDisposed$'](_0x5483ba[_0x5b4735(0x2d3)]))[_0x5b4735(0x148)](_0x29d39(this[_0x5b4735(0x169)]))[_0x5b4735(0x1ce)](_0x5e6492=>{const _0x4dd41f=_0x5b4735,_0x38c023=_0x5e6492[_0x4dd41f(0x25a)](),_0xc4dcd6=this[_0x4dd41f(0x127)][_0x4dd41f(0x297)](_0x38c023);_0xc4dcd6&&(_0xc4dcd6['dispose'](),this[_0x4dd41f(0x127)][_0x4dd41f(0x1bd)](_0x38c023));});}async[_0x5724cd(0x2b9)](_0xf1245b){const _0x2c643c=_0x5724cd,_0x4f4e38=await this[_0x2c643c(0x267)][_0x2c643c(0x11c)](_0xf1245b),_0x295f86=this[_0x2c643c(0x219)]['createInstance'](we,_0xf1245b,_0x4f4e38);return _0x295f86[_0x2c643c(0x16f)](),_0x295f86;}async[_0x5724cd(0x197)](_0x44b4cb){const _0x10c78d=_0x5724cd,_0xffe060=await this[_0x10c78d(0x267)][_0x10c78d(0x11c)](_0x44b4cb),_0x3bc314=this[_0x10c78d(0x219)][_0x10c78d(0xe3)](Pe,_0x44b4cb,_0xffe060);return _0x3bc314['init'](),_0x3bc314;}};H=Hi([Ee(0x0,_0x166a1e),Ee(0x1,_0x4db080(_0xca9a6f)),Ee(0x2,_0x4db080(_0x2c15e3))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x211327,_0x599a25){const _0x57d1e2=_0x5724cd;let {radius:_0x165093,width:_0xb7737f,height:_0x129ec3}=_0x599a25;_0x165093=_0x165093!=null?_0x165093:0x0,_0xb7737f=_0xb7737f!=null?_0xb7737f:0x1e,_0x129ec3=_0x129ec3!=null?_0x129ec3:0x1e;let _0x2ea776=0x0,_0x2aa584=0x0,_0x349b1a=0x0;_0x2ea776=_0x2aa584=_0x349b1a=Math[_0x57d1e2(0x2ff)](_0x165093,_0xb7737f/0x2,_0x129ec3/0x2),_0x211327[_0x57d1e2(0x24d)](),_0x211327['moveTo'](_0x2ea776,0x0),_0x211327['lineTo'](_0xb7737f-_0x2aa584,0x0),_0x211327[_0x57d1e2(0x20b)](_0xb7737f-_0x2aa584,_0x2aa584,_0x2aa584,Math['PI']*0x3/0x2,0x0,!0x1),_0x211327[_0x57d1e2(0x208)](_0xb7737f,_0x129ec3-_0x349b1a),_0x211327['arc'](_0xb7737f-_0x349b1a,_0x129ec3-_0x349b1a,_0x349b1a,0x0,Math['PI']/0x2,!0x1),_0x211327[_0x57d1e2(0x208)](0x0,_0x129ec3),_0x211327[_0x57d1e2(0x208)](0x0,_0x2ea776),_0x211327[_0x57d1e2(0x20b)](_0x2ea776,_0x2ea776,_0x2ea776,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x211327[_0x57d1e2(0x123)](),_0x599a25['fill']&&(_0x211327[_0x57d1e2(0x128)](),_0x211327[_0x57d1e2(0x1f0)]=_0x599a25[_0x57d1e2(0x2d6)],_0x599a25[_0x57d1e2(0x1dc)]==='evenodd'?_0x211327['fill'](_0x57d1e2(0x1db)):_0x211327['fill'](),_0x211327[_0x57d1e2(0x202)]());}class me extends _0x376f96{constructor(_0x112e7c,_0x36db21){const _0x301fa1=_0x5724cd;super(_0x112e7c,_0x36db21),l(this,_0x301fa1(0x286)),l(this,_0x301fa1(0x115)),(this['color']=_0x36db21==null?void 0x0:_0x36db21[_0x301fa1(0x286)],this['text']=_0x36db21==null?void 0x0:_0x36db21[_0x301fa1(0x115)]);}static[_0x5724cd(0x23c)](_0x37c5ef,_0x2df8f0){const _0x1ef9b7=_0x5724cd,{text:_0x1688a0,color:_0x372e80}=_0x2df8f0;_0x37c5ef[_0x1ef9b7(0x128)](),_0x37c5ef['font']=_0x1ef9b7(0x190);const _0x4c16be=_0x37c5ef['measureText'](_0x1688a0)[_0x1ef9b7(0x275)],_0x32a814=Math[_0x1ef9b7(0x2ff)](_0x4c16be+0x2*pe,it);Wi(_0x37c5ef,{'height':Q,'radius':0x4,'width':_0x32a814,'fill':_0x372e80}),_0x37c5ef[_0x1ef9b7(0x1f0)]='#FFF';const _0x3bf87b=pe,_0x48c912=Q-Yi,_0x5ba278=it-0x2*pe;if(_0x4c16be>_0x5ba278){let _0x268797='',_0x22f2db=0x0;for(const _0x14c8ca of _0x1688a0){const _0x372099=_0x37c5ef[_0x1ef9b7(0x271)](_0x14c8ca)[_0x1ef9b7(0x275)];if(_0x22f2db+_0x372099<=_0x5ba278-_0x37c5ef['measureText'](_0x1ef9b7(0x1d8))[_0x1ef9b7(0x275)])_0x268797+=_0x14c8ca,_0x22f2db+=_0x372099;else{_0x268797+=_0x1ef9b7(0x1d8);break;}}_0x37c5ef[_0x1ef9b7(0x1d1)](_0x268797,_0x3bf87b,_0x48c912);}else _0x37c5ef[_0x1ef9b7(0x1d1)](_0x1688a0,_0x3bf87b,_0x48c912);_0x37c5ef[_0x1ef9b7(0x202)]();}[_0x5724cd(0x2a8)](_0x537fc3){const _0x34bf1c=_0x5724cd;me[_0x34bf1c(0x23c)](_0x537fc3,this);}}const Oe=_0x5724cd(0x200),Vi='collab-text-range-',ji=_0x5724cd(0x281),z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x5724cd(0x18e);class nt{constructor(_0x44b270,_0x1ea8ba,_0x5182c8,_0x213845){const _0x1f7e04=_0x5724cd;l(this,_0x1f7e04(0x1e1),[]),l(this,_0x1f7e04(0x2e9),null),l(this,_0x1f7e04(0x284),null),l(this,_0x1f7e04(0xfa),null),l(this,_0x1f7e04(0xed),null),l(this,_0x1f7e04(0x19e),null),(this['_cursor']=_0x44b270,this[_0x1f7e04(0x158)]=_0x1ea8ba,this[_0x1f7e04(0x153)]=_0x5182c8,this[_0x1f7e04(0x308)]=_0x213845,this[_0x1f7e04(0xe6)]());}set[_0x5724cd(0x298)](_0x26a091){const _0x24016f=_0x5724cd;_0x26a091?(this[_0x24016f(0xfa)]&&this[_0x24016f(0xfa)][_0x24016f(0x25f)](),this[_0x24016f(0x284)]&&this[_0x24016f(0x284)][_0x24016f(0x29b)]()):(this[_0x24016f(0xfa)]&&this[_0x24016f(0xfa)][_0x24016f(0x29b)](),this[_0x24016f(0x284)]&&this[_0x24016f(0x284)][_0x24016f(0x25f)]());}['dispose'](){const _0x27f905=_0x5724cd;for(const _0x5b1694 of this[_0x27f905(0x1e1)])_0x5b1694[_0x27f905(0x207)]();this['_textBubble']&&this['_textBubble'][_0x27f905(0x207)](),this[_0x27f905(0xfa)]&&this[_0x27f905(0xfa)][_0x27f905(0x207)](),this[_0x27f905(0x2e9)]&&this[_0x27f905(0x2e9)][_0x27f905(0x207)](),this[_0x27f905(0x19e)]&&this['_eventUnsubscribe']();}['_render'](){const _0x5727a2=_0x5724cd;var _0xf87101;const {_docSkeleton:_0x46692a,_document:_0x1d9e67}=this,{color:_0x5da439,name:_0x897afa,ranges:_0xce3273}=this[_0x5727a2(0x1aa)],_0x830b3=_0x1d9e67['getOffsetConfig'](),{docsLeft:_0x5c7032,docsTop:_0x44de07}=_0x830b3,_0x5d8508=new _0x2118c1(_0x830b3,_0x46692a);for(const {startOffset:_0x3bad55,endOffset:_0x18f7a3,rangeType:_0x58ea8f,segmentId:_0x209854,segmentPage:_0x3634f1,collapsed:_0x22c575,isActive:_0x7a0f64}of _0xce3273){const _0x506f8a=_0x46692a['findNodePositionByCharIndex'](_0x3bad55,!0x0,_0x209854,_0x3634f1);let _0x312233=_0x46692a['findNodePositionByCharIndex'](_0x18f7a3,!0x0,_0x209854,_0x3634f1);if(_0x312233==null&&(_0x312233=_0x46692a[_0x5727a2(0x25c)](_0x18f7a3-0x1,!0x1,_0x209854,_0x3634f1)),_0x7a0f64){const {contentBoxPointGroup:_0x490784}=_0x5d8508[_0x5727a2(0x1d6)](_0x312233,_0x312233);if(_0x490784[_0x5727a2(0x173)]===0x0)continue;this['_drawAnchor'](_0x5da439,_0x490784,_0x5c7032,_0x44de07,_0x897afa),this[_0x5727a2(0x19e)]=this[_0x5727a2(0xd3)]();}if(_0x506f8a&&_0x312233){if(_0x58ea8f===_0x4bed57['RECT']){const _0x460cda=new _0x57a528(_0x830b3,_0x46692a),{pointGroup:_0x1a2721}=(_0xf87101=_0x460cda[_0x5727a2(0x1d6)](_0x506f8a,_0x312233))!=null?_0xf87101:{};if(_0x1a2721==null||_0x1a2721[_0x5727a2(0x173)]===0x0)continue;this[_0x5727a2(0x266)](_0x5da439,_0x1a2721,_0x5c7032,_0x44de07);}else{if(!_0x22c575){const {borderBoxPointGroup:_0x3b26bc}=_0x5d8508['getRangePointData'](_0x506f8a,_0x312233);if(_0x3b26bc['length']===0x0)continue;this[_0x5727a2(0x2f2)](_0x5da439,_0x3b26bc,_0x5c7032,_0x44de07);}}}}}[_0x5724cd(0x220)](_0x2fa50d,_0x1101ef,_0x4ae1fd,_0x136e5d,_0x2f5368){const _0x5b48a0=_0x5724cd,_0x1a1977=this['_getAnchorBounding'](_0x1101ef),{left:_0x2f60a1,top:_0x328549,height:_0x11b64c}=_0x1a1977,_0x4e7d10=this[_0x5b48a0(0x1a4)](),_0x594c5c=Gi/_0x4e7d10,_0x2c551b=new _0x5a4309(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d,'height':_0x11b64c,'width':Xi,'fill':_0x2fa50d||_0x4741e2(_0x675d83[_0x5b48a0(0x264)],0x0),'strokeWidth':_0x594c5c,'stroke':Ki,'evented':!0x0});this[_0x5b48a0(0x2e9)]=_0x2c551b,this['_scene'][_0x5b48a0(0x135)](_0x2c551b,_0x3dd04b);const _0x3f5cc7=new _0x5a4309(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d-Te/0x2,'height':Te,'width':Te,'fill':_0x2fa50d||_0x4741e2(_0x675d83['black'],0x0),'strokeWidth':0x0,'stroke':_0x2fa50d||_0x4741e2(_0x675d83[_0x5b48a0(0x264)],0x0),'evented':!0x1});this['_anchorDot']=_0x3f5cc7,this['_scene'][_0x5b48a0(0x135)](_0x3f5cc7,_0x3dd04b);const _0x3b9a60=new me(Oe+_0x46dcf5(z),{'left':_0x2f60a1+_0x4ae1fd-_0x594c5c,'top':_0x328549+_0x136e5d-Q,'text':_0x2f5368,'color':_0x2fa50d});this['_textBubble']=_0x3b9a60,this[_0x5b48a0(0x158)]['addObject'](_0x3b9a60,_0x3dd04b),this['_hover']=!0x1;}[_0x5724cd(0xd3)](){const _0x14a531=_0x5724cd,_0x2e8fc4=this[_0x14a531(0x2e9)][_0x14a531(0x15f)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x39a29a=this[_0x14a531(0x2e9)][_0x14a531(0x1ec)]['subscribeEvent'](()=>{const _0x406480=_0x14a531;this[_0x406480(0xed)]&&clearTimeout(this['_hideTimer']),this[_0x406480(0xed)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x9fd35a=_0x14a531;_0x2e8fc4[_0x9fd35a(0x1ef)](),_0x39a29a[_0x9fd35a(0x1ef)]();};}[_0x5724cd(0x2f2)](_0x2c81d4,_0x2f2924,_0x3021e1,_0x28a3c5){const _0x8eb6b8=_0x5724cd,_0x5c7dad=new _0x40a014(_0x2c81d4)[_0x8eb6b8(0x2bb)](0.2)[_0x8eb6b8(0x1ba)](),_0x326c23=new _0x11a369(Vi+_0x46dcf5(z),{'pointsGroup':_0x2f2924,'fill':_0x5c7dad||_0x4741e2(_0x675d83[_0x8eb6b8(0x264)],0.2),'left':_0x3021e1,'top':_0x28a3c5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x8eb6b8(0x1e1)][_0x8eb6b8(0x2ec)](_0x326c23),this['_scene'][_0x8eb6b8(0x135)](_0x326c23,_0x3dd04b);}['_drawRectRange'](_0xd2586,_0x568e1d,_0xd2422a,_0x103261){const _0x183e86=_0x5724cd,_0x1d967e=new _0x40a014(_0xd2586)['setAlpha'](0.2)[_0x183e86(0x1ba)](),_0x1de2f4=new _0x11a369(ji+_0x46dcf5(z),{'pointsGroup':_0x568e1d,'fill':_0x1d967e||_0x4741e2(_0x675d83['black'],0.2),'left':_0xd2422a,'top':_0x103261,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1de2f4),this[_0x183e86(0x158)]['addObject'](_0x1de2f4,_0x3dd04b);}['_getAnchorBounding'](_0xd0fce8){const _0x1d92cf=_0xd0fce8[0x0],_0x3ad9a1=_0x1d92cf[0x0],_0x599571=_0x1d92cf[0x2],{x:_0x454d50,y:_0x3b8a81}=_0x3ad9a1,{x:_0x4d000e,y:_0x56e7ec}=_0x599571;return{'left':_0x454d50,'top':_0x3b8a81,'width':_0x4d000e-_0x454d50,'height':_0x56e7ec-_0x3b8a81};}[_0x5724cd(0x1a4)](){const _0x23aae6=_0x5724cd,{scaleX:_0x39daf7,scaleY:_0x4fee9b}=this[_0x23aae6(0x158)][_0x23aae6(0x139)]();return Math[_0x23aae6(0x23e)](_0x39daf7,_0x4fee9b);}}var zi=Object[_0x5724cd(0x231)],Ji=(_0x397be3,_0x2b0c9f,_0x270a53,_0x42cb4c)=>{const _0x1b2931=_0x5724cd;for(var _0x57d2f1=_0x42cb4c>0x1?void 0x0:_0x42cb4c?zi(_0x2b0c9f,_0x270a53):_0x2b0c9f,_0x96fe48=_0x397be3[_0x1b2931(0x173)]-0x1,_0x25bd6f;_0x96fe48>=0x0;_0x96fe48--)(_0x25bd6f=_0x397be3[_0x96fe48])&&(_0x57d2f1=_0x25bd6f(_0x57d2f1)||_0x57d2f1);return _0x57d2f1;},ie=(_0x1ed7af,_0x472999)=>(_0x58123a,_0x53182a)=>_0x472999(_0x58123a,_0x53182a,_0x1ed7af);let ye=class extends _0x466553{constructor(_0x5a0399,_0x434008,_0x388dbe,_0xee386,_0x50f7dc){const _0x4c52d1=_0x5724cd;super(),l(this,_0x4c52d1(0x2c5),[]),l(this,_0x4c52d1(0x2de),[]),(this['_context']=_0x5a0399,this[_0x4c52d1(0x1ae)]=_0x434008,this[_0x4c52d1(0x27b)]=_0x388dbe,this[_0x4c52d1(0x2ef)]=_0xee386,this[_0x4c52d1(0x11e)]=_0x50f7dc,this[_0x4c52d1(0x16b)]());}[_0x5724cd(0x16b)](){const _0xd604e3=_0x5724cd,_0x64653=this['_context']['unitId'],_0x44e92=this[_0xd604e3(0x1ae)];this['disposeWithMe'](_0x57e5ce([this[_0xd604e3(0x27b)][_0xd604e3(0x257)](_0x64653),this['_themeService'][_0xd604e3(0x1b7)]])[_0xd604e3(0x148)](_0x2ac750(([_0x10e013,_0x521849])=>({'skeleton':_0x44e92['getSkeleton'](),'cursors':[..._0x10e013['values']()][_0xd604e3(0x273)](_0x5b889a=>({..._0x5b889a,'color':this[_0xd604e3(0x11e)][_0xd604e3(0x2c7)](_0x5b889a[_0xd604e3(0x286)])}))})))[_0xd604e3(0x1ce)](_0x323a93=>{const _0x347da7=_0xd604e3;if(this[_0x347da7(0x1f9)](),_0x323a93){const {skeleton:_0x48957c,cursors:_0x4efca7}=_0x323a93;this[_0x347da7(0x225)](_0x48957c,_0x4efca7);}})),this[_0xd604e3(0x18d)](),this['_initCommandExecutedListener']();}[_0x5724cd(0x225)](_0x41365a,_0x294bdd){const _0x2ee699=_0x5724cd,{scene:_0x4a19fc,mainComponent:_0x2f61a9}=this[_0x2ee699(0x15b)],_0x381fbc=_0x294bdd[_0x2ee699(0x30d)](_0x2a6d1c=>new nt(_0x2a6d1c,_0x4a19fc,_0x41365a,_0x2f61a9));this['_cursorShapes']=_0x381fbc,this[_0x2ee699(0x2de)]=_0x294bdd;}[_0x5724cd(0x100)](){const _0x31afb9=_0x5724cd;this[_0x31afb9(0x1f9)]();const {scene:_0x29dd3b,mainComponent:_0x5e70c7}=this[_0x31afb9(0x15b)],_0x20471a=this[_0x31afb9(0x1ae)][_0x31afb9(0x193)](),_0x1bfbbf=this[_0x31afb9(0x2de)][_0x31afb9(0x30d)](_0x3b279a=>new nt(_0x3b279a,_0x29dd3b,_0x20471a,_0x5e70c7));this['_cursorShapes']=_0x1bfbbf;}[_0x5724cd(0x1f9)](){const _0x385268=_0x5724cd;this['_cursorShapes']['forEach'](_0x105d63=>_0x105d63['dispose']()),this[_0x385268(0x2c5)]=[];}[_0x5724cd(0xd8)](){const _0x18e54b=_0x5724cd,_0x1cac7f=[_0x28c097['id']];this['disposeWithMe'](this[_0x18e54b(0x2ef)][_0x18e54b(0x11a)](_0x264617=>{const _0x54611f=_0x18e54b;_0x1cac7f['includes'](_0x264617['id'])&&_0x264617[_0x54611f(0x166)][_0x54611f(0x164)]===this['_context']['unitId']&&this[_0x54611f(0x100)]();}));}['_initResize'](){const _0x4068b3=_0x5724cd;this['disposeWithMe'](_0x57e071(this[_0x4068b3(0x15b)][_0x4068b3(0x1ad)]['onTransformChange$'])[_0x4068b3(0x148)](_0x23fe25(_0x4ce08c=>_0x4ce08c['type']===_0x1aaa34[_0x4068b3(0xe0)]),_0x51e9be(0x10))[_0x4068b3(0x1ce)](()=>{this['_refreshCollabCursors']();}));}};ye=Ji([ie(0x1,_0x4db080(_0x33170f)),ie(0x2,_0x4db080(H)),ie(0x3,_0x3d0367),ie(0x4,_0x4db080(_0x571088))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x376f96{constructor(_0x206c11,_0x5b545c){const _0x853620=_0x5724cd;super(_0x206c11,_0x5b545c),l(this,_0x853620(0x2e8)),l(this,_0x853620(0x15c),!0x1),l(this,_0x853620(0x2e1)),l(this,_0x853620(0x163),''),l(this,'_labelPosition',_0x853620(0x28d)),l(this,_0x853620(0x106)),(_0x5b545c&&this[_0x853620(0x227)](_0x5b545c),this[_0x853620(0x15f)][_0x853620(0x1b1)](()=>this[_0x853620(0x227)]({'hovered':!0x0})),this['onPointerLeave$'][_0x853620(0x1b1)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x40fa97){const _0x223763=_0x5724cd;var _0x579426,_0x392858,_0x3708d3,_0x20cb5c,_0x5ee322,_0x53269f;this[_0x223763(0x2e8)]=(_0x579426=_0x40fa97[_0x223763(0x286)])!=null?_0x579426:this[_0x223763(0x2e8)],this[_0x223763(0x15c)]=(_0x392858=_0x40fa97[_0x223763(0x12b)])!=null?_0x392858:this['_hovered'],this['_range']=(_0x3708d3=_0x40fa97['range'])!=null?_0x3708d3:this[_0x223763(0x2e1)],this[_0x223763(0x163)]=(_0x20cb5c=_0x40fa97['name'])!=null?_0x20cb5c:this[_0x223763(0x163)],this['_labelPosition']=(_0x5ee322=_0x40fa97[_0x223763(0x288)])!=null?_0x5ee322:this[_0x223763(0x2c9)],this[_0x223763(0x106)]=(_0x53269f=_0x40fa97[_0x223763(0x1f2)])!=null?_0x53269f:this[_0x223763(0x106)],this[_0x223763(0x1c0)]({'width':_0x40fa97[_0x223763(0x275)],'height':_0x40fa97[_0x223763(0x1bb)]});}[_0x5724cd(0x1c4)](_0x4cb1c2){const _0x20fdba=_0x5724cd,{row:_0x1e3503,column:_0x27ae9e}=_0x4cb1c2;if(_0x1e3503>=this['_range'][_0x20fdba(0x29d)]&&_0x1e3503<=this[_0x20fdba(0x2e1)][_0x20fdba(0x20f)]&&_0x27ae9e>=this[_0x20fdba(0x2e1)]['startColumn']&&_0x27ae9e<=this[_0x20fdba(0x2e1)][_0x20fdba(0x2a2)]){this[_0x20fdba(0x227)]({'hovered':!0x0});return;}this[_0x20fdba(0x227)]({'hovered':!0x1});}[_0x5724cd(0x1da)](_0x329f7f){return!0x1;}['_draw'](_0x144e69){const _0xa36876=_0x5724cd;_0x5a4309[_0xa36876(0x23c)](_0x144e69,{'width':this[_0xa36876(0x275)],'height':this[_0xa36876(0x1bb)],'strokeWidth':Qi,'stroke':this[_0xa36876(0x2e8)],'evented':!0x1,'fill':this[_0xa36876(0x106)]}),this[_0xa36876(0x15c)]&&(_0x144e69['save'](),_0x144e69[_0xa36876(0x24b)](0x1,0x0,0x0,0x1,this[_0xa36876(0x275)],this[_0xa36876(0x2c9)]==='bottom'?0x0:-Q),me[_0xa36876(0x23c)](_0x144e69,{'text':this[_0xa36876(0x163)],'color':this[_0xa36876(0x2e8)]}),_0x144e69[_0xa36876(0x202)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0x40030d,_0x33a978,_0x4e0b6f,_0x45ba12)=>{const _0x2a021c=_0x5724cd;for(var _0x2abb97=_0x45ba12>0x1?void 0x0:_0x45ba12?en(_0x33a978,_0x4e0b6f):_0x33a978,_0x17c2ee=_0x40030d[_0x2a021c(0x173)]-0x1,_0x28420a;_0x17c2ee>=0x0;_0x17c2ee--)(_0x28420a=_0x40030d[_0x17c2ee])&&(_0x2abb97=_0x28420a(_0x2abb97)||_0x2abb97);return _0x2abb97;},Ce=(_0x26e0ed,_0x3df0d5)=>(_0x19532a,_0x24957d)=>_0x3df0d5(_0x19532a,_0x24957d,_0x26e0ed);const sn=0x1389;let $e=class extends _0x466553{constructor(_0x57d874,_0x1f15bc,_0x433607,_0xf0ec5d){const _0x570729=_0x5724cd;super(),l(this,_0x570729(0x2de),new Set()),l(this,_0x570729(0x1a3),null),(this[_0x570729(0x15b)]=_0x57d874,this['_sheetSkeletonManagerService']=_0x1f15bc,this[_0x570729(0x27b)]=_0x433607,this[_0x570729(0x11e)]=_0xf0ec5d,this['_init']());}[_0x5724cd(0x16b)](){const _0x6349e7=_0x5724cd;this[_0x6349e7(0x22f)][_0x6349e7(0x117)][_0x6349e7(0x148)](_0xd4923a(this[_0x6349e7(0x169)]),_0x4b25bc(_0x3fb590=>{const _0x598a1c=_0x6349e7;if(_0x3fb590){const _0x434455=_0x3fb590[_0x598a1c(0x30b)];return _0x57e5ce(this[_0x598a1c(0x27b)][_0x598a1c(0x257)](this['_context']['unitId']),this[_0x598a1c(0x11e)][_0x598a1c(0x1b7)])[_0x598a1c(0x148)](_0x2ac750(([_0x450ab4,_0x301f01])=>{const _0x5a24c7=_0x598a1c,_0x2d2423=new Map();return _0x450ab4[_0x5a24c7(0x1a5)]((_0x1fd3fe,_0x417354)=>{const _0x45164e=_0x5a24c7;if(_0x1fd3fe[_0x45164e(0xf4)]===_0x434455){const _0x5a0f70={..._0x1fd3fe};_0x5a0f70[_0x45164e(0x286)]=this['_themeService'][_0x45164e(0x2c7)](_0x1fd3fe['color']),_0x2d2423[_0x45164e(0x2f0)](_0x417354,_0x5a0f70);}}),{'skeleton':_0x3fb590,'cursors':_0x2d2423};}));}return _0x2a30cc({'skeleton':null,'cursors':new Map()});}))[_0x6349e7(0x1ce)](({skeleton:_0xd9a19a,cursors:_0x238158})=>{const _0x27bf49=_0x6349e7;this[_0x27bf49(0x1f9)](),_0xd9a19a&&this[_0x27bf49(0x225)](_0xd9a19a,_0x238158);}),this[_0x6349e7(0x22f)][_0x6349e7(0x117)]['subscribe'](_0x4efd76=>{const _0x20e007=_0x6349e7;if(_0x4efd76==null)return;const {skeleton:_0xe3864b}=_0x4efd76,{scene:_0x14cf29}=this[_0x20e007(0x15b)];_0x14cf29[_0x20e007(0x156)][_0x20e007(0x1b1)](_0x322732(_0x1bd25c=>{const _0x4313c4=_0x20e007;var _0x1d370b,_0x22c190;const {offsetX:_0x781249,offsetY:_0x4130d2}=_0x1bd25c,{x:_0xba37c9,y:_0x28f7dd}=_0x14cf29[_0x4313c4(0x2c0)](_0x3be4b3[_0x4313c4(0x204)]([_0x781249,_0x4130d2])),{scaleX:_0xc222a9,scaleY:_0x11b871}=_0x14cf29[_0x4313c4(0x139)](),_0x55d844=_0x14cf29[_0x4313c4(0x1c6)](_0x1e6b43[_0x4313c4(0x301)]),_0x333b6d=_0x14cf29['getVpScrollXYInfoByPosToVp'](_0x3be4b3[_0x4313c4(0x204)]([_0xba37c9,_0x28f7dd]),_0x55d844),_0x2a0481=_0xe3864b['getCellPositionByOffset'](_0x781249,_0x4130d2,_0xc222a9,_0x11b871,_0x333b6d);((_0x1d370b=this[_0x4313c4(0x1a3)])==null?void 0x0:_0x1d370b[_0x4313c4(0x11b)])===_0x2a0481[_0x4313c4(0x11b)]&&((_0x22c190=this[_0x4313c4(0x1a3)])==null?void 0x0:_0x22c190['row'])===_0x2a0481[_0x4313c4(0x17f)]||this['_cursors'][_0x4313c4(0x1a5)](_0x4808b4=>{_0x4808b4['onMouseMove'](_0x2a0481);});},0x64));});}[_0x5724cd(0x225)](_0x2e8081,_0x5bb434){const _0x567618=_0x5724cd;var _0x1a48dd;const _0x269ba4=(_0x1a48dd=this[_0x567618(0x22f)][_0x567618(0x161)]())==null?void 0x0:_0x1a48dd['skeleton'];if(!_0x269ba4)return;const _0x5897f8=this[_0x567618(0x26f)]();if(!_0x5897f8)return;this[_0x567618(0x2de)][_0x567618(0x1a5)](_0x1cc418=>{const _0x2c5738=_0x567618;_0x1cc418[_0x2c5738(0x1eb)]();});const {scene:_0x511ac0}=_0x5897f8,_0x2afd3c=nn(Array['from'](_0x5bb434[_0x567618(0x149)]()))[_0x567618(0x30d)](_0xd0057=>{const _0x2cd057=_0x567618,{color:_0x21a910,range:_0x1bb4c1,name:_0x3973a9,selection:_0x588ef7,sheetID:_0x156761}=_0xd0057,{startColumn:_0xc0128b,startRow:_0xbb6232,endColumn:_0x2f7748,endRow:_0x82a339}=_0x1bb4c1,_0x3e8860=_0x489060(_0xbb6232,_0xc0128b,_0x511ac0,_0x269ba4),_0x1ee877=_0x489060(_0x82a339,_0x2f7748,_0x511ac0,_0x269ba4),{columnHeaderHeightAndMarginTop:_0x1f124b}=_0x269ba4,{startX:_0x6b6b00,startY:_0x3c976f}=_0x3e8860,{endX:_0x2b127b,endY:_0x2d8f5e}=_0x1ee877,_0x17d79c=_0x2b127b-_0x6b6b00,_0x389432=_0x2d8f5e-_0x3c976f,_0x299a09={'labelPosition':_0x3c976f-_0x1f124b>=Q?_0x2cd057(0x28d):'bottom','sheetID':_0x156761,'range':_0x1bb4c1,'color':_0x21a910,'name':_0x3973a9,'selection':_0x588ef7,'left':_0x6b6b00,'top':_0x3c976f,'width':_0x17d79c,'height':_0x389432,'evented':!0x1,'zIndex':sn};return new qi(_0x3973a9,_0x299a09);});_0x511ac0['addObjects'](_0x2afd3c,Zi),this['_cursors']=new Set(_0x2afd3c);}[_0x5724cd(0x1f9)](){const _0x1370f3=_0x5724cd;var _0x1931af;(_0x1931af=this[_0x1370f3(0x2de)])==null||_0x1931af['forEach'](_0x3d4b6b=>_0x3d4b6b[_0x1370f3(0x207)]());}[_0x5724cd(0x26f)](){const _0x4940e3=_0x5724cd;return _0xcf58dc(this[_0x4940e3(0x15b)][_0x4940e3(0x178)],this[_0x4940e3(0x15b)]);}};$e=tn([Ce(0x1,_0x4db080(_0x232217)),Ce(0x2,_0x4db080(H)),Ce(0x3,_0x4db080(_0x571088))],$e);function nn(_0x43d10f){const _0x2aeb9c=_0x5724cd,_0x1ba0e4=new Map();return _0x43d10f[_0x2aeb9c(0x1a5)](_0x2abef1=>{const _0x829f1=_0x2aeb9c;if(_0x1ba0e4[_0x829f1(0x1d0)](_0x2abef1['selection'])){const _0x271be3=_0x1ba0e4[_0x829f1(0x297)](_0x2abef1['selection']);_0x271be3['name']+=',\x20'+_0x2abef1[_0x829f1(0x22b)];}else _0x1ba0e4[_0x829f1(0x2f0)](_0x2abef1[_0x829f1(0x1b6)],_0x2abef1);}),Array['from'](_0x1ba0e4[_0x2aeb9c(0x149)]());}var rn=Object[_0x5724cd(0x231)],on=(_0x1fbccb,_0x3d6fb0,_0x5626a9,_0xd1c1df)=>{const _0x2aed97=_0x5724cd;for(var _0x560675=_0xd1c1df>0x1?void 0x0:_0xd1c1df?rn(_0x3d6fb0,_0x5626a9):_0x3d6fb0,_0x204ada=_0x1fbccb[_0x2aed97(0x173)]-0x1,_0x2a050b;_0x204ada>=0x0;_0x204ada--)(_0x2a050b=_0x1fbccb[_0x204ada])&&(_0x560675=_0x2a050b(_0x560675)||_0x560675);return _0x560675;},F=(_0x1375ea,_0x3b63a7)=>(_0x1e916b,_0x1bf7d7)=>_0x3b63a7(_0x1e916b,_0x1bf7d7,_0x1375ea);let ce=class extends _0x2916da{constructor(_0x4cc5f6,_0x548fe6,_0x3a3ce5,_0x457f95,_0x361b98,_0x26797e){const _0x5e4d0c=_0x5724cd;super(),this[_0x5e4d0c(0x111)]=_0x4cc5f6,this[_0x5e4d0c(0x2f8)]=_0x548fe6,this['_collaborationUIEventService']=_0x3a3ce5,this[_0x5e4d0c(0x124)]=_0x457f95,this[_0x5e4d0c(0x162)]=_0x361b98,this[_0x5e4d0c(0x14c)]=_0x26797e,this[_0x5e4d0c(0x249)](),this[_0x5e4d0c(0x1d4)]();}[_0x5724cd(0x249)](){const _0x4f77b4=_0x5724cd;this[_0x4f77b4(0x1e2)](this[_0x4f77b4(0x111)][_0x4f77b4(0x25e)](()=>{const _0xfb8a53=_0x4f77b4;if(this[_0xfb8a53(0x2f8)][_0xfb8a53(0x236)][_0xfb8a53(0x1d5)])return this[_0xfb8a53(0x14c)]['t'](_0xfb8a53(0x229));}));}[_0x5724cd(0x1d4)](){const _0x5147dc=_0x5724cd;this[_0x5147dc(0x1e2)](this[_0x5147dc(0x102)][_0x5147dc(0x15a)]['subscribe'](_0x30415e=>{const _0x32409f=_0x5147dc;_0x30415e['id']===_0x1513c0[_0x32409f(0x234)]&&this['_messageService'][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0xee)],'content':this[_0x32409f(0x14c)]['t']('collaboration.single-unit.warning')}),_0x30415e['id']===_0x1513c0[_0x32409f(0x14d)]&&this['_messageService'][_0x32409f(0x29b)]({'type':_0x408d4f['Warning'],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0x18a))}),_0x30415e['id']===_0x1513c0[_0x32409f(0x2a7)]&&this[_0x32409f(0x162)][_0x32409f(0x29b)]({'title':this[_0x32409f(0x14c)]['t'](_0x32409f(0x211)),'content':this['_localeService']['t']('permission.content'),'type':_0x32409f(0x192),'duration':0x0}),_0x30415e['id']===_0x1513c0[_0x32409f(0x1df)]&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0x24e)],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0x18a))+'('+_0x30415e['data']+')'}),_0x30415e['id']===_0x1513c0[_0x32409f(0x112)]&&this[_0x32409f(0x124)]['show']({'type':_0x408d4f[_0x32409f(0xee)],'content':this['_localeService']['t'](_0x30415e[_0x32409f(0x183)]||'')}),_0x30415e['id']===_0x1513c0['SOCKET_FAILED_RETRY']&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0xee)],'content':this[_0x32409f(0x14c)]['t']('session.will-retry')}),_0x30415e['id']===_0x1513c0['SOCKET_FAILED']&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f[_0x32409f(0x24e)],'content':this[_0x32409f(0x14c)]['t'](_0x32409f(0xd9))}),_0x30415e['id']===_0x1513c0[_0x32409f(0x27f)]&&this[_0x32409f(0x124)][_0x32409f(0x29b)]({'type':_0x408d4f['Error'],'content':this['_localeService']['t'](_0x32409f(0x294))});}));}};ce=on([F(0x0,_0x578e72),F(0x1,_0x5b4070),F(0x2,_0x4db080(_0x5f0edf)),F(0x3,_0x60d69d),F(0x4,_0x44eeb7),F(0x5,_0x4db080(_0x234aab))],ce);const an=_0x5724cd(0x10b),rt={};var cn=Object['getOwnPropertyDescriptor'],_n=(_0x2a8aa6,_0x5c6b6c,_0x3dbb96,_0xe634d5)=>{const _0x19b261=_0x5724cd;for(var _0x308924=_0xe634d5>0x1?void 0x0:_0xe634d5?cn(_0x5c6b6c,_0x3dbb96):_0x5c6b6c,_0x32f3d5=_0x2a8aa6[_0x19b261(0x173)]-0x1,_0x119838;_0x32f3d5>=0x0;_0x32f3d5--)(_0x119838=_0x2a8aa6[_0x32f3d5])&&(_0x308924=_0x119838(_0x308924)||_0x308924);return _0x308924;},ot=(_0x260b3c,_0x1d0bf3)=>(_0x2382eb,_0x1ab184)=>_0x1d0bf3(_0x2382eb,_0x1ab184,_0x260b3c);let _e=class{constructor(_0x578178,_0x88828b){const _0x424028=_0x5724cd;this['_transformService']=_0x578178,this[_0x424028(0x299)]=_0x88828b;}[_0x5724cd(0x1b9)](_0x5473d2){const _0x27cd04=_0x5724cd;this[_0x27cd04(0x1b2)](_0x5473d2),this['_transformPreviousActiveRange'](_0x5473d2);}[_0x5724cd(0x152)](_0x84720d){const _0xc1b96f=_0x5724cd,{unitID:_0x364cfa}=_0x84720d,_0x3140ce=this[_0xc1b96f(0x299)][_0xc1b96f(0xdf)](_0x364cfa)[_0xc1b96f(0x2e2)](_0x15fd68),{redoCache:_0x128bc4}=_0x3140ce[_0xc1b96f(0x2ab)]();if(_0x128bc4[_0xc1b96f(0x173)]===0x0)return _0x84720d;let _0x4897b9=_0x352d2a[_0xc1b96f(0x119)](_0x84720d[_0xc1b96f(0x252)][0x0]);for(let _0x535595=0x0;_0x535595<_0x128bc4['length'];_0x535595++){const _0x1688ed={'id':_0xc1b96f(0x13f),'params':{..._0x128bc4[_0x535595]}},_0x3c4e2e=this[_0xc1b96f(0x199)][_0xc1b96f(0x277)](_0x4897b9,_0x1688ed,!0x1);if(_0x48ab2e(_0x3c4e2e))throw _0x3c4e2e['error'];_0x4897b9=_0x3c4e2e[_0xc1b96f(0x230)];}return{..._0x352d2a[_0xc1b96f(0x119)](_0x84720d),'mutations':[_0x4897b9]};}[_0x5724cd(0x1b2)](_0x261cb2){const _0x6b4624=_0x5724cd,{unitID:_0x361649}=_0x261cb2,_0x49204a=this[_0x6b4624(0x299)][_0x6b4624(0xdf)](_0x361649)[_0x6b4624(0x2e2)](_0x15fd68),{undoCache:_0x47ce62,redoCache:_0xa1275a}=_0x49204a[_0x6b4624(0x2ab)]();if(_0x47ce62['length']===0x0||_0xa1275a[_0x6b4624(0x173)]===0x0)return;const _0x49750a=[],_0x58d5bf=[];let _0x1c34c6=_0x352d2a['deepClone'](_0x261cb2['mutations'][0x0]),_0x5b9673=_0x352d2a['deepClone'](_0x261cb2[_0x6b4624(0x252)][0x0]);for(let _0x1099f5=_0x47ce62[_0x6b4624(0x173)]-0x1;_0x1099f5>=0x0;_0x1099f5--){const _0x371457={'id':_0x6b4624(0x13f),'params':{..._0x47ce62[_0x1099f5]}},_0x15f0b2={'id':'doc.mutation.rich-text-editing','params':{..._0xa1275a[_0x1099f5]}},_0x1d21d1=this['_transformService'][_0x6b4624(0x277)](_0x1c34c6,_0x371457,!0x1),_0x40ceb1=this['_transformService']['transformMutation'](_0x5b9673,_0x15f0b2,!0x1);if(_0x48ab2e(_0x1d21d1))throw _0x1d21d1[_0x6b4624(0x192)];if(_0x48ab2e(_0x40ceb1))throw _0x40ceb1['error'];_0x49750a[_0x6b4624(0x2c2)](_0x1d21d1[_0x6b4624(0x181)]['params']),_0x58d5bf[_0x6b4624(0x2c2)](_0x40ceb1['m2Prime'][_0x6b4624(0x166)]),_0x1c34c6=_0x1d21d1[_0x6b4624(0x230)],_0x5b9673=_0x40ceb1[_0x6b4624(0x230)];}_0x49204a['setUndoRedoMutationParamsCache']({'undoCache':_0x49750a,'redoCache':_0x58d5bf});}['_transformPreviousActiveRange'](_0x2fc852){const _0x5b7b61=_0x5724cd,{unitID:_0x4989ba}=_0x2fc852,_0x4bfada=this[_0x5b7b61(0x299)][_0x5b7b61(0xdf)](_0x4989ba)['with'](_0x15fd68),_0xeee347=_0x4bfada[_0x5b7b61(0x283)]();if(_0xeee347==null)return;const _0x4b3e76=[{'id':_0x5b7b61(0x13f),'params':{'unitId':_0x2fc852[_0x5b7b61(0x2bf)],'actions':null,'textRanges':[_0xeee347]}}],_0x108e32=this[_0x5b7b61(0x199)]['transformMutationsWithChangeset'](_0x2fc852,_0x4b3e76);if(!_0x11903c(_0x108e32))throw _0x108e32['error'];const _0x95b6ce=_0x108e32['m2Prime'][0x0][_0x5b7b61(0x166)][_0x5b7b61(0x28c)];Array['isArray'](_0x95b6ce)&&_0x95b6ce[_0x5b7b61(0x173)]&&_0x4bfada[_0x5b7b61(0x1d7)](_0x95b6ce[0x0]);}};_e=_n([ot(0x0,_0x4603fd),ot(0x1,_0x21229d)],_e);var ln=Object[_0x5724cd(0x231)],hn=(_0x5ee56f,_0x434a04,_0x112a63,_0x286a53)=>{const _0x7128d9=_0x5724cd;for(var _0x55ca71=_0x286a53>0x1?void 0x0:_0x286a53?ln(_0x434a04,_0x112a63):_0x434a04,_0x8e0749=_0x5ee56f[_0x7128d9(0x173)]-0x1,_0x5c778e;_0x8e0749>=0x0;_0x8e0749--)(_0x5c778e=_0x5ee56f[_0x8e0749])&&(_0x55ca71=_0x5c778e(_0x55ca71)||_0x55ca71);return _0x55ca71;},Re=(_0x11b99b,_0x107d39)=>(_0x27a2a4,_0x1c4679)=>_0x107d39(_0x27a2a4,_0x1c4679,_0x11b99b);let le=class{constructor(_0x4764a9,_0x359e5f,_0x358fc1){const _0x1a5106=_0x5724cd;this[_0x1a5106(0x219)]=_0x4764a9,this[_0x1a5106(0x199)]=_0x359e5f,this[_0x1a5106(0x22c)]=_0x358fc1;}[_0x5724cd(0xf6)](_0x5398b1){const _0x1725c4=_0x5724cd;this[_0x1725c4(0xf2)](_0x5398b1);}[_0x5724cd(0x152)](_0x22a153){const _0x1a602b=_0x5724cd,{unitID:_0x420f80}=_0x22a153,{collaboration:_0x5015f1}=this[_0x1a602b(0x22c)]['getStateCache'](_0x420f80);if(_0x5015f1[_0x1a602b(0x173)]===0x0)return _0x22a153;let _0x5d8902=_0x352d2a['deepClone'](_0x22a153[_0x1a602b(0x252)][0x0]);for(let _0x216412=0x0;_0x216412<_0x5015f1['length'];_0x216412++){const _0x280004={'id':_0x1a602b(0x13f),'params':{'unitId':_0x5015f1[_0x216412]['unitId'],..._0x5015f1[_0x216412][_0x1a602b(0x15d)]}},_0x259ce8=this['_transformService'][_0x1a602b(0x277)](_0x5d8902,_0x280004,!0x1);if(_0x48ab2e(_0x259ce8))throw _0x259ce8['error'];_0x5d8902=_0x259ce8[_0x1a602b(0x230)];}return{..._0x352d2a[_0x1a602b(0x119)](_0x22a153),'mutations':[_0x5d8902]};}[_0x5724cd(0xf2)](_0x30dc0c){const _0x37537a=_0x5724cd,{unitID:_0xc9518f}=_0x30dc0c,{history:_0x28a495,collaboration:_0x48e0fc}=this[_0x37537a(0x22c)][_0x37537a(0x212)](_0xc9518f);if(_0x28a495['length']===0x0&&_0x48e0fc[_0x37537a(0x173)]===0x0)return;const _0x2ff94d=[],_0xda29ed=[];let _0x1f5194=_0x352d2a[_0x37537a(0x119)](_0x30dc0c[_0x37537a(0x252)][0x0]),_0x404404=_0x352d2a['deepClone'](_0x30dc0c['mutations'][0x0]);for(let _0x3dcdb2=_0x28a495[_0x37537a(0x173)]-0x1;_0x3dcdb2>=0x0;_0x3dcdb2--){const _0x27b414={'id':_0x37537a(0x13f),'params':{'unitId':_0x28a495[_0x3dcdb2][_0x37537a(0x164)],..._0x28a495[_0x3dcdb2][_0x37537a(0x2a5)]}},_0x4f5562={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28a495[_0x3dcdb2][_0x37537a(0x164)],..._0x28a495[_0x3dcdb2][_0x37537a(0x15d)]}},_0x1427c9=this[_0x37537a(0x199)][_0x37537a(0x277)](_0x1f5194,_0x27b414,!0x1),_0x4e127f=this[_0x37537a(0x199)]['transformMutation'](_0x404404,_0x4f5562,!0x1);if(_0x48ab2e(_0x1427c9))throw _0x1427c9['error'];if(_0x48ab2e(_0x4e127f))throw _0x4e127f['error'];_0x2ff94d[_0x37537a(0x2c2)]({..._0x28a495[_0x3dcdb2],'undoState':_0x1427c9[_0x37537a(0x181)][_0x37537a(0x166)],'redoState':_0x4e127f['m2Prime']['params']}),_0x1f5194=_0x1427c9[_0x37537a(0x230)],_0x404404=_0x4e127f[_0x37537a(0x230)];}_0x1f5194=_0x352d2a['deepClone'](_0x30dc0c['mutations'][0x0]),_0x404404=_0x352d2a[_0x37537a(0x119)](_0x30dc0c[_0x37537a(0x252)][0x0]);for(let _0x335075=_0x48e0fc['length']-0x1;_0x335075>=0x0;_0x335075--){const _0x38f297={'id':_0x37537a(0x13f),'params':{'unitId':_0x48e0fc[_0x335075][_0x37537a(0x164)],..._0x48e0fc[_0x335075][_0x37537a(0x2a5)]}},_0x2a739e={'id':_0x37537a(0x13f),'params':{'unitId':_0x48e0fc[_0x335075]['unitId'],..._0x48e0fc[_0x335075]['redoState']}},_0x1ab06d=this['_transformService'][_0x37537a(0x277)](_0x1f5194,_0x38f297,!0x1),_0x42e98f=this['_transformService'][_0x37537a(0x277)](_0x404404,_0x2a739e,!0x1);if(_0x48ab2e(_0x1ab06d))throw _0x1ab06d[_0x37537a(0x192)];if(_0x48ab2e(_0x42e98f))throw _0x42e98f[_0x37537a(0x192)];_0xda29ed[_0x37537a(0x2c2)]({..._0x48e0fc[_0x335075],'undoState':_0x1ab06d['m2Prime'][_0x37537a(0x166)],'redoState':_0x42e98f[_0x37537a(0x181)][_0x37537a(0x166)]}),_0x1f5194=_0x1ab06d['m1Prime'],_0x404404=_0x42e98f[_0x37537a(0x230)];}this[_0x37537a(0x22c)][_0x37537a(0x118)](_0xc9518f,{'history':_0x2ff94d,'collaboration':_0xda29ed});}};le=hn([Re(0x0,_0x4db080(_0xca9a6f)),Re(0x1,_0x4603fd),Re(0x2,_0x4db080(_0xf2cfc0))],le);var un=Object[_0x5724cd(0x231)],dn=(_0x5d2e73,_0xecceb6,_0x1577b5,_0x2e86c3)=>{const _0xe29b52=_0x5724cd;for(var _0x2f2bfd=_0x2e86c3>0x1?void 0x0:_0x2e86c3?un(_0xecceb6,_0x1577b5):_0xecceb6,_0x4b4a70=_0x5d2e73[_0xe29b52(0x173)]-0x1,_0x24ac21;_0x4b4a70>=0x0;_0x4b4a70--)(_0x24ac21=_0x5d2e73[_0x4b4a70])&&(_0x2f2bfd=_0x24ac21(_0x2f2bfd)||_0x2f2bfd);return _0x2f2bfd;},at=(_0x17b6c5,_0x272dc6)=>(_0x31cfe6,_0x516d1e)=>_0x272dc6(_0x31cfe6,_0x516d1e,_0x17b6c5);let he=class{constructor(_0x233627,_0x241f8e){const _0x55482c=_0x5724cd;this[_0x55482c(0x219)]=_0x233627,this[_0x55482c(0x199)]=_0x241f8e;}['transformSelections'](_0x5e6cfe){const _0x544beb=_0x5724cd;var _0x30bded;const _0x372f03=this[_0x544beb(0x219)]['get'](_0x5a5e71),_0x48950f=(_0x30bded=_0x372f03[_0x544beb(0x2da)]())!=null?_0x30bded:[];if(_0x48950f['length']===0x0)return;const _0x570a67=_0x5e6cfe[_0x544beb(0x2bf)],_0x541152=[{'id':_0x544beb(0x13f),'params':{'unitId':_0x570a67,'actions':null,'textRanges':_0x48950f}}],_0x4232ff=this[_0x544beb(0x199)][_0x544beb(0x13d)](_0x5e6cfe,_0x541152);if(!_0x11903c(_0x4232ff))throw _0x4232ff[_0x544beb(0x192)];const _0x129c7d=_0x4232ff['m2Prime'][0x0]['params']['textRanges'];Array[_0x544beb(0x154)](_0x129c7d)&&_0x129c7d['length']&&_0x372f03[_0x544beb(0x223)](_0x129c7d,{'unitId':_0x570a67,'subUnitId':_0x570a67},!0x1);}};he=dn([at(0x0,_0x4db080(_0xca9a6f)),at(0x1,_0x4603fd)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x4fceab,_0x428b62,_0x34f030,_0x1501c7)=>{for(var _0x31194e=_0x1501c7>0x1?void 0x0:_0x1501c7?Sn(_0x428b62,_0x34f030):_0x428b62,_0x529b3e=_0x4fceab['length']-0x1,_0x1292c3;_0x529b3e>=0x0;_0x529b3e--)(_0x1292c3=_0x4fceab[_0x529b3e])&&(_0x31194e=_0x1292c3(_0x31194e)||_0x31194e);return _0x31194e;},b=(_0x3853a8,_0x2dae81)=>(_0x3cfe62,_0xd8530b)=>_0x2dae81(_0x3cfe62,_0xd8530b,_0x3853a8);let ue=class extends _0x2916da{constructor(_0x46f4aa,_0x4848b0,_0x46766a,_0x36a371,_0x134799,_0x158a94,_0x4014d6,_0x16d140){const _0x47f1c7=_0x5724cd;super(),l(this,_0x47f1c7(0x23f),new _0x29a5ca(_0x50afaa[_0x47f1c7(0x132)])),(this[_0x47f1c7(0x22c)]=_0x46f4aa,this[_0x47f1c7(0x20c)]=_0x4848b0,this['_docTransformIMECacheService']=_0x46766a,this[_0x47f1c7(0x300)]=_0x36a371,this[_0x47f1c7(0x136)]=_0x134799,this[_0x47f1c7(0xf1)]=_0x158a94,this[_0x47f1c7(0x124)]=_0x4014d6,this['_localeService']=_0x16d140,this[_0x47f1c7(0x12a)]());}[_0x5724cd(0x12a)](){const _0x2d59db=_0x5724cd;this[_0x2d59db(0x1e2)](this[_0x2d59db(0x20c)][_0x2d59db(0x109)][_0x2d59db(0x1ce)](_0x5ebd9a=>{const _0x59df0e=_0x2d59db,_0x2ac0cb=this['_docStateChangeManagerService'][_0x59df0e(0xd7)][_0x59df0e(0x1ce)](_0x23cd7d=>{const _0xa5b81b=_0x59df0e;if(_0x23cd7d==null)return;const {unitId:_0x42b30e,redoState:_0x5c942b,commandId:_0x111926}=_0x23cd7d;if(_0x42b30e!==_0x5ebd9a[_0xa5b81b(0x2bf)])return;const _0x314c04={'id':_0x111926,'type':_0x393e92['MUTATION'],'params':{'unitId':_0x42b30e,'actions':_0x5c942b[_0xa5b81b(0x1fb)],'textRanges':null}};_0x5ebd9a[_0xa5b81b(0x1bc)](_0x314c04);});if(_0x5ebd9a[_0x59df0e(0x1e2)](_0x2ac0cb),_0x5ebd9a instanceof _0x342039){const _0x38daaa={'onTransformIME':_0xa84188=>this[_0x59df0e(0x17e)][_0x59df0e(0x1b9)](_0xa84188),'onTransformState':_0x43683e=>this[_0x59df0e(0x300)]['transformStateCache'](_0x43683e),'onTransformSelections':_0x593683=>this[_0x59df0e(0x136)]['transformSelections'](_0x593683),'onSyncEditingCollabCursor':_0x2e7950=>this[_0x59df0e(0xf1)]['syncEditingCollabCursor'](_0x2e7950),'onTransformRemoteChangesetByIMECache':_0x5003e1=>this[_0x59df0e(0x17e)][_0x59df0e(0x152)](_0x5003e1),'onTransformRemoteChangesetByStateCache':_0x31e406=>this[_0x59df0e(0x300)][_0x59df0e(0x152)](_0x31e406)};_0x5ebd9a[_0x59df0e(0x2b4)](_0x38daaa);}}));}};ue=In([b(0x0,_0x4db080(_0xf2cfc0)),b(0x1,_0x4db080(_0x18f9ba)),b(0x2,_0x4db080(_e)),b(0x3,_0x4db080(le)),b(0x4,_0x4db080(he)),b(0x5,_0x4db080(Xe)),b(0x6,_0x60d69d),b(0x7,_0x4db080(_0x234aab))],ue);var Z=(_0x15b9bd=>(_0x15b9bd[_0x15b9bd[_0x5724cd(0x306)]=0x0]='UNDEFINED',_0x15b9bd[_0x15b9bd['OK']=0x1]='OK',_0x15b9bd[_0x15b9bd['INTERNAL_ERROR']=0x2]=_0x5724cd(0x222),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2a7)]=0x3]=_0x5724cd(0x2a7),_0x15b9bd[_0x15b9bd[_0x5724cd(0x10d)]=0x4]=_0x5724cd(0x10d),_0x15b9bd[_0x15b9bd['UNAUTHENTICATED']=0x5]=_0x5724cd(0x21f),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2cc)]=0x6]='ALREADY_EXISTS',_0x15b9bd[_0x15b9bd['INVALID_ARGUMENT']=0x7]=_0x5724cd(0x23b),_0x15b9bd[_0x15b9bd['TOO_MANY_REQUESTS']=0x8]=_0x5724cd(0x1f8),_0x15b9bd[_0x15b9bd[_0x5724cd(0x168)]=0x9]=_0x5724cd(0x168),_0x15b9bd[_0x15b9bd['LOGIN_FAILED']=0xa]=_0x5724cd(0x2f3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x29c)]=0xb]=_0x5724cd(0x29c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1d3)]=0xc]=_0x5724cd(0x1d3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2bd)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x15b9bd[_0x15b9bd[_0x5724cd(0x21a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1fd)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x15b9bd[_0x15b9bd[_0x5724cd(0x19c)]=0x10]=_0x5724cd(0x19c),_0x15b9bd[_0x15b9bd[_0x5724cd(0xe8)]=0x64]=_0x5724cd(0xe8),_0x15b9bd[_0x15b9bd[_0x5724cd(0x309)]=0x65]=_0x5724cd(0x309),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2fd)]=0xc9]='USER_NOT_FOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x180)]=0xca]=_0x5724cd(0x180),_0x15b9bd[_0x15b9bd[_0x5724cd(0x217)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1e9)]=0x1771]=_0x5724cd(0x1e9),_0x15b9bd[_0x15b9bd[_0x5724cd(0x165)]=0x1772]=_0x5724cd(0x165),_0x15b9bd[_0x15b9bd[_0x5724cd(0x175)]=0x1773]=_0x5724cd(0x175),_0x15b9bd[_0x15b9bd[_0x5724cd(0x176)]=0x1b59]='APPLY_REJECT',_0x15b9bd[_0x15b9bd['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5724cd(0x255),_0x15b9bd[_0x15b9bd['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5724cd(0x27e),_0x15b9bd[_0x15b9bd[_0x5724cd(0x138)]=0x1b5c]=_0x5724cd(0x138),_0x15b9bd[_0x15b9bd[_0x5724cd(0x287)]=0x1b5d]=_0x5724cd(0x287),_0x15b9bd[_0x15b9bd[_0x5724cd(0x30c)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x15b9bd[_0x15b9bd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5724cd(0x29f),_0x15b9bd[_0x15b9bd['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5724cd(0x2a0),_0x15b9bd[_0x15b9bd[_0x5724cd(0x18b)]=0x232b]=_0x5724cd(0x18b),_0x15b9bd[_0x15b9bd['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x5724cd(0x16c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2db)]=0x232d]=_0x5724cd(0x2db),_0x15b9bd[_0x15b9bd[_0x5724cd(0xf0)]=0x2711]=_0x5724cd(0xf0),_0x15b9bd[_0x15b9bd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x280)]=0x2713]=_0x5724cd(0x280),_0x15b9bd[_0x15b9bd[_0x5724cd(0x12c)]=0x2714]=_0x5724cd(0x12c),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1c2)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x15b9bd[_0x15b9bd['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x5724cd(0x143),_0x15b9bd[_0x15b9bd['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5724cd(0x22a),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2e3)]=0x271d]=_0x5724cd(0x2e3),_0x15b9bd[_0x15b9bd[_0x5724cd(0x20d)]=0x271e]=_0x5724cd(0x20d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1f4)]=0x271f]=_0x5724cd(0x1f4),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2a1)]=0x2720]=_0x5724cd(0x2a1),_0x15b9bd[_0x15b9bd['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x5724cd(0x241),_0x15b9bd[_0x15b9bd['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x5724cd(0x2b1),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2c3)]=0x2ee2]='INVALID_INVITE_CODE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x2f1)]=0x2ee3]=_0x5724cd(0x2f1),_0x15b9bd[_0x15b9bd[_0x5724cd(0x292)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x15b9bd[_0x15b9bd['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5724cd(0x2fc),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1f1)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x1ea)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x15b9bd[_0x15b9bd[_0x5724cd(0x27d)]=0x32cb]=_0x5724cd(0x27d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x174)]=0x36b1]=_0x5724cd(0x174),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1fa)]=0x36b2]=_0x5724cd(0x1fa),_0x15b9bd[_0x15b9bd[_0x5724cd(0x1d9)]=0x36b3]=_0x5724cd(0x1d9),_0x15b9bd[_0x15b9bd[_0x5724cd(0x28f)]=0x36b4]=_0x5724cd(0x28f),_0x15b9bd[_0x15b9bd['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x5724cd(0xde),_0x15b9bd[_0x15b9bd[_0x5724cd(0x160)]=0x3716]=_0x5724cd(0x160),_0x15b9bd[_0x15b9bd[_0x5724cd(0x12d)]=0x3717]=_0x5724cd(0x12d),_0x15b9bd[_0x15b9bd[_0x5724cd(0x22d)]=0x37dd]=_0x5724cd(0x22d),_0x15b9bd[_0x15b9bd[_0x5724cd(0xfe)]=0x3a99]=_0x5724cd(0xfe),_0x15b9bd[_0x15b9bd[_0x5724cd(0x25d)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x10e)]=0x3a9b]=_0x5724cd(0x10e),_0x15b9bd[_0x15b9bd['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x5724cd(0x196),_0x15b9bd[_0x15b9bd[_0x5724cd(0x19b)]=0x3a9d]=_0x5724cd(0x19b),_0x15b9bd[_0x15b9bd['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x5724cd(0x142),_0x15b9bd[_0x15b9bd[_0x5724cd(0x2ed)]=0x3a9f]=_0x5724cd(0x2ed),_0x15b9bd[_0x15b9bd['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x15b9bd[_0x15b9bd[_0x5724cd(0x17a)]=-0x1]=_0x5724cd(0x17a),_0x15b9bd))(Z||{});function mn(_0x107abe){const _0x4e70dc=_0x5724cd;var _0x43dfb6,_0x3c58cc;const _0x4517d4=(_0x43dfb6=_0x107abe[_0x4e70dc(0x29a)])==null?void 0x0:_0x43dfb6[_0x4e70dc(0x13c)],_0x1afa93=((_0x3c58cc=_0x107abe['stageInfo'])==null?void 0x0:_0x3c58cc['totalFormulasToCalculate'])||0x0;return _0x4517d4===_0x4cc043[_0x4e70dc(0x239)]&&_0x1afa93>0x0;}function fn(_0x225c41){const _0x24e59c=_0x5724cd;return _0x225c41[_0x24e59c(0x250)]===_0x3cc8fe[_0x24e59c(0x269)];}var gn=Object[_0x5724cd(0x231)],vn=(_0x271461,_0x5ae16e,_0x2a5bb6,_0x4ba617)=>{for(var _0x3c2250=_0x4ba617>0x1?void 0x0:_0x4ba617?gn(_0x5ae16e,_0x2a5bb6):_0x5ae16e,_0x56020b=_0x271461['length']-0x1,_0x9a5930;_0x56020b>=0x0;_0x56020b--)(_0x9a5930=_0x271461[_0x56020b])&&(_0x3c2250=_0x9a5930(_0x3c2250)||_0x3c2250);return _0x3c2250;},P=(_0x1e9d70,_0x342a6f)=>(_0x10ca09,_0x484a0e)=>_0x342a6f(_0x10ca09,_0x484a0e,_0x1e9d70);const En='/universer-api/license/formula/limit/status',pn=_0x5724cd(0x1ca),On='/universer-api/license/formula/limit/done';let de=class extends _0x2916da{constructor(_0x5540db,_0x1399f2,_0x1f1ed1,_0x580e6e,_0x55d509,_0x523cf1,_0x37f8d7){const _0x1ed8b6=_0x5724cd;super(),l(this,_0x1ed8b6(0x2ee),null),l(this,_0x1ed8b6(0x28e),0x0),l(this,_0x1ed8b6(0xda),0x0),l(this,_0x1ed8b6(0x1cc),[]),l(this,_0x1ed8b6(0x2c8),0x0),(this['_messageService']=_0x5540db,this[_0x1ed8b6(0x2ef)]=_0x1399f2,this[_0x1ed8b6(0x184)]=_0x1f1ed1,this[_0x1ed8b6(0x1b0)]=_0x580e6e,this[_0x1ed8b6(0xe1)]=_0x55d509,this[_0x1ed8b6(0x262)]=_0x523cf1,this[_0x1ed8b6(0x14c)]=_0x37f8d7,this[_0x1ed8b6(0x195)]());}[_0x5724cd(0x195)](){const _0x4a2659=_0x5724cd;this['disposeWithMe'](this[_0x4a2659(0x2ef)][_0x4a2659(0x2fb)]((_0x407d01,_0xdf1947)=>{const _0x4c2cfc=_0x4a2659;var _0x7b2ec9;if(_0x407d01['id']!==_0x5f11a2['id'])return;const _0x473081=_0x407d01[_0x4c2cfc(0x166)];if(!this[_0x4c2cfc(0x17d)]((_0x7b2ec9=_0x473081['dirtyRanges'])!=null?_0x7b2ec9:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x4c2cfc(0x2b8)](_0x407d01,_0xdf1947),this[_0x4c2cfc(0x1c7)](),new _0x426e2a();})),this[_0x4a2659(0x1e2)](this[_0x4a2659(0x2ef)]['onCommandExecuted']((_0x171c6e,_0x52043d)=>{const _0x491225=_0x4a2659;if(_0x171c6e['id']!==_0x3da7cf['id'])return;const _0x23cce8=_0x171c6e[_0x491225(0x166)];if(mn(_0x23cce8)){const _0x58f384=_0x46dcf5();this['_taskIds'][_0x491225(0x2ec)](_0x58f384),this['_startCalculationLimit'](_0x58f384);}else{if(fn(_0x23cce8)&&this[_0x491225(0x1cc)][_0x491225(0x173)]>0x0){const _0x496fd9=this['_taskIds']['shift']();this[_0x491225(0xd2)](_0x496fd9);}}}));}[_0x5724cd(0x207)](){const _0x3ad6e3=_0x5724cd;super[_0x3ad6e3(0x207)](),this[_0x3ad6e3(0x10f)](),this[_0x3ad6e3(0x1cc)]=[],this['_currentUsage']=0x0,this[_0x3ad6e3(0x28e)]=0x0,this[_0x3ad6e3(0x2c8)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x5d6b8d,_0x2ef5eb){const _0x3e9539=_0x5724cd;for(let _0x432252=0x0;_0x432252<0x1e;_0x432252++)try{if(await this[_0x3e9539(0x1a1)](),this[_0x3e9539(0x1c8)]()){this[_0x3e9539(0x198)](_0x5d6b8d,_0x2ef5eb),this[_0x3e9539(0x124)][_0x3e9539(0x29b)]({'content':this['_localeService']['t'](_0x3e9539(0x107)),'type':_0x408d4f[_0x3e9539(0x2d4)]});return;}await new Promise(_0x2b0a6f=>{const _0x41b1f7=_0x3e9539;this[_0x41b1f7(0x2ee)]=window[_0x41b1f7(0x177)](_0x2b0a6f,0x3e8);});}catch(_0x3d5341){this[_0x3e9539(0x262)][_0x3e9539(0x192)](_0x3d5341);}this['_messageService']['show']({'content':this['_localeService']['t'](_0x3e9539(0x1be)),'type':_0x408d4f[_0x3e9539(0x24e)]});}[_0x5724cd(0x198)](_0x25701e,_0x12ce6d){const _0xe3a972=_0x5724cd;try{this['_commandService'][_0xe3a972(0x1dd)](_0x25701e['id'],_0x25701e['params'],_0x12ce6d);}catch(_0x1fbbc5){this[_0xe3a972(0x262)][_0xe3a972(0x192)](_0x1fbbc5);}}[_0x5724cd(0x1a0)](_0x4d2bfe,_0x4a7592){const _0x2ce059=_0x5724cd;_0x4a7592<this['_lastResponseTimestamp']||(this[_0x2ce059(0x2c8)]=_0x4a7592,this[_0x2ce059(0x28e)]=Number[_0x2ce059(0x2e6)](_0x4d2bfe[_0x2ce059(0x2cd)]),this[_0x2ce059(0xda)]=Number['parseInt'](_0x4d2bfe['currentUsage']));}async['_startCalculationLimit'](_0x24fde7){const _0x27cf2b=_0x5724cd;var _0x4cc6a2,_0x5db882;const _0x460592=Date[_0x27cf2b(0x16a)]();try{const _0x9a5396=((_0x4cc6a2=this['_configService']['getConfig'](_0x32c484))==null?void 0x0:_0x4cc6a2[_0x27cf2b(0x19a)])||pn,_0x302def=(await this['_httpService'][_0x27cf2b(0x245)](_0x9a5396,{'body':JSON['stringify']({'taskId':_0x24fde7})}))['body'];if(((_0x5db882=_0x302def[_0x27cf2b(0x192)])==null?void 0x0:_0x5db882[_0x27cf2b(0x226)])!==Z['OK'])return;this[_0x27cf2b(0x1a0)](_0x302def[_0x27cf2b(0x237)],_0x460592);}catch(_0x3ad74f){this[_0x27cf2b(0x262)][_0x27cf2b(0x192)](_0x3ad74f);}}async[_0x5724cd(0x1a1)](_0x45a44a){const _0x2f4c33=_0x5724cd;var _0x3f2e68,_0xf16e33;const _0x5d5880=Date[_0x2f4c33(0x16a)]();try{const _0x31919c=((_0x3f2e68=this[_0x2f4c33(0x184)][_0x2f4c33(0x2ca)](_0x32c484))==null?void 0x0:_0x3f2e68[_0x2f4c33(0x2b2)])||En,_0x1a63ba=_0x45a44a?_0x31919c+'?taskId='+encodeURIComponent(_0x45a44a):_0x31919c,_0x5175e0=(await this[_0x2f4c33(0x1b0)][_0x2f4c33(0x297)](_0x1a63ba))[_0x2f4c33(0x2a9)];if(((_0xf16e33=_0x5175e0[_0x2f4c33(0x192)])==null?void 0x0:_0xf16e33['code'])!==Z['OK'])return;this[_0x2f4c33(0x1a0)](_0x5175e0[_0x2f4c33(0x237)],_0x5d5880);}catch(_0xf1743f){this[_0x2f4c33(0x262)][_0x2f4c33(0x192)](_0xf1743f);}}async['_releaseCalculationLimit'](_0x5328be){const _0x2171ff=_0x5724cd;var _0x133923,_0xfad265;const _0x405c9d=Date[_0x2171ff(0x16a)]();try{const _0x1dace3=((_0x133923=this['_configService'][_0x2171ff(0x2ca)](_0x32c484))==null?void 0x0:_0x133923['releaseFormulaLimitUrl'])||On,_0x30f197=(await this[_0x2171ff(0x1b0)][_0x2171ff(0x245)](_0x1dace3,{'body':JSON[_0x2171ff(0x274)]({'taskId':_0x5328be})}))['body'];if(((_0xfad265=_0x30f197[_0x2171ff(0x192)])==null?void 0x0:_0xfad265[_0x2171ff(0x226)])!==Z['OK'])return;this[_0x2171ff(0x1a0)](_0x30f197['limitInfo'],_0x405c9d);}catch(_0x4d6e41){this[_0x2171ff(0x262)][_0x2171ff(0x192)](_0x4d6e41);}}['_checkCalculationAvailable'](){const _0x4e7847=_0x5724cd;return this[_0x4e7847(0x28e)]===0x0?!0x0:this[_0x4e7847(0x28e)]-this[_0x4e7847(0xda)]>0x0;}[_0x5724cd(0x10f)](){const _0x11fba1=_0x5724cd;this[_0x11fba1(0x2ee)]&&(clearTimeout(this[_0x11fba1(0x2ee)]),this[_0x11fba1(0x2ee)]=null);}[_0x5724cd(0x1c7)](){const _0x3526c5=_0x5724cd;this[_0x3526c5(0x124)][_0x3526c5(0x29b)]({'content':this[_0x3526c5(0x14c)]['t'](_0x3526c5(0x224)),'type':_0x408d4f[_0x3526c5(0x26b)]});}[_0x5724cd(0x17d)](_0x306c63){const _0x78e9d5=_0x5724cd;for(const _0x4d7c45 of _0x306c63){const {unitId:_0x2f43f4,sheetId:_0x25a200,range:_0x4693cb}=_0x4d7c45,_0x350495=this[_0x78e9d5(0xe1)][_0x78e9d5(0x2ae)](_0x2f43f4);if(!_0x350495)continue;const _0x3e5f13=_0x350495['getSheetBySheetId'](_0x25a200);if(!_0x3e5f13)continue;const _0x2174b3=_0x3e5f13[_0x78e9d5(0xfd)]();for(let _0x199d53=_0x4693cb[_0x78e9d5(0x29d)];_0x199d53<=_0x4693cb[_0x78e9d5(0x20f)];_0x199d53++)for(let _0x5e4496=_0x4693cb[_0x78e9d5(0x2b7)];_0x5e4496<=_0x4693cb['endColumn'];_0x5e4496++){const _0x4298ff=_0x2174b3[_0x78e9d5(0x116)](_0x199d53,_0x5e4496);if(_0x4298ff&&(_0x444db3(_0x4298ff['f'])||_0xaf5a34(_0x4298ff['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x4db080(_0x60d69d)),P(0x1,_0x3d0367),P(0x2,_0xa43f31),P(0x3,_0x4db080(_0x367dbf)),P(0x4,_0x166a1e),P(0x5,_0x1edaba),P(0x6,_0x4db080(_0x234aab))],de);var Tn=Object[_0x5724cd(0x231)],Cn=(_0x5bada5,_0x4d0fbf,_0x32f067,_0x1622f1)=>{const _0x362a7e=_0x5724cd;for(var _0x5d8a78=_0x1622f1>0x1?void 0x0:_0x1622f1?Tn(_0x4d0fbf,_0x32f067):_0x4d0fbf,_0x5551a3=_0x5bada5[_0x362a7e(0x173)]-0x1,_0x23fe5c;_0x5551a3>=0x0;_0x5551a3--)(_0x23fe5c=_0x5bada5[_0x5551a3])&&(_0x5d8a78=_0x23fe5c(_0x5d8a78)||_0x5d8a78);return _0x5d8a78;},De=(_0x4a7fee,_0x146d8e)=>(_0x58cd8e,_0x1513e6)=>_0x146d8e(_0x58cd8e,_0x1513e6,_0x4a7fee);let xe=class extends _0x2916da{constructor(_0x1dae13,_0x158476,_0x221ff0){const _0x2678b3=_0x5724cd;super(),l(this,_0x2678b3(0x17c),new Map()),l(this,_0x2678b3(0x2ea),new Map()),l(this,'_disabled',!0x1),(this['_configService']=_0x1dae13,this['_localStorageService']=_0x158476,this[_0x2678b3(0x2be)]=_0x221ff0);}[_0x5724cd(0x150)](){const _0x591e91=_0x5724cd;this[_0x591e91(0x2d1)]=!0x0;}[_0x5724cd(0x26a)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x5249e5=_0x5724cd;return this[_0x5249e5(0x2ea)];}[_0x5724cd(0x207)](){const _0x4ca847=_0x5724cd;this[_0x4ca847(0x187)]()[_0x4ca847(0x189)](()=>super[_0x4ca847(0x207)]());}async['loadOfflineData'](_0x57ae34){const _0x27d415=_0x5724cd;return this[_0x27d415(0x2d1)]?null:this[_0x27d415(0x155)][_0x27d415(0x278)](_0xb1ea91(_0x57ae34));}async[_0x5724cd(0x2c4)](_0x2301a2,_0x48dc42){const _0x57be4f=_0x5724cd;return!!this[_0x57be4f(0x155)][_0x57be4f(0x30a)](_0x2301a2,_0x48dc42);}['updateOfflineData'](_0x748e38,_0x46c941,_0x291e29,_0x5d405f){const _0x256d07=_0x5724cd,_0x36612a=this[_0x256d07(0x2be)][_0x256d07(0x20e)](_0x748e38);this[_0x256d07(0x17c)][_0x256d07(0x2f0)](_0x748e38,{'unitID':_0x748e38,'type':_0x46c941,'awaitingChangeset':_0x291e29,'mutations':_0x5d405f,'rev':_0x36612a}),this['_saveTaskMap']['has'](_0x748e38)||this[_0x256d07(0x1fe)](_0x748e38);}['_scheduleSaving'](_0x20909e){const _0x8df7f1=_0x5724cd,_0x2ce8d0=this['_getSaveTimeout']();_0x2ce8d0===0x0?this[_0x8df7f1(0x1a7)](_0x20909e):this[_0x8df7f1(0x2ea)][_0x8df7f1(0x2f0)](_0x20909e,setTimeout(()=>this[_0x8df7f1(0x1a7)](_0x20909e),_0x2ce8d0));}[_0x5724cd(0x2c6)](){const _0x380c97=_0x5724cd;var _0x1a5bb9;return(_0x1a5bb9=this[_0x380c97(0x184)]['getConfig'](_0x23a142))!=null?_0x1a5bb9:_0x283278;}[_0x5724cd(0x1a7)](_0xa9fdb1){const _0x5f0bbc=_0x5724cd,_0x2b33c9=this['_saveTaskMap'][_0x5f0bbc(0x297)](_0xa9fdb1);return _0x2b33c9!==void 0x0&&window[_0x5f0bbc(0x272)](_0x2b33c9),this['_localStorageService'][_0x5f0bbc(0x30a)](_0xb1ea91(_0xa9fdb1),this[_0x5f0bbc(0x17c)]['get'](_0xa9fdb1))[_0x5f0bbc(0x189)](()=>this['_saveTaskMap'][_0x5f0bbc(0x1bd)](_0xa9fdb1));}async[_0x5724cd(0x187)](){const _0xbfd702=_0x5724cd,_0xf4362=[];this[_0xbfd702(0x2ea)][_0xbfd702(0x1a5)]((_0x31f37f,_0x3b8176)=>{const _0x443864=_0xbfd702;window[_0x443864(0x272)](_0x31f37f),_0xf4362['push'](this[_0x443864(0x1a7)](_0x3b8176)[_0x443864(0x189)](()=>{const _0x5bd838=_0x443864;this[_0x5bd838(0x2ea)][_0x5bd838(0x1bd)](_0x3b8176);}));}),await Promise['all'](_0xf4362);}};xe=Cn([De(0x0,_0xa43f31),De(0x1,_0x5d62b5),De(0x2,_0x4db080(_0x294c44))],xe);class Rn extends _0x466553{constructor(){const _0x351d6f=_0x5724cd;super(),l(this,_0x351d6f(0xdd)),this[_0x351d6f(0xdd)]=_0xba30(window,_0x351d6f(0xe4))[_0x351d6f(0x148)](_0x29d39(this[_0x351d6f(0x169)]),_0x44c2b3(0x1),_0x3ab484(void 0x0));}['setParam'](_0x174185,_0x33ad19,_0x1142da=!0x1){const _0x1f226e=_0x5724cd,_0x2428d1=new URL(window[_0x1f226e(0x13b)][_0x1f226e(0x19f)]);_0x2428d1[_0x1f226e(0x24f)][_0x1f226e(0x2f0)](_0x174185,_0x33ad19),_0x1142da?window[_0x1f226e(0x151)]['replaceState']('','',_0x2428d1[_0x1f226e(0x122)]()):window[_0x1f226e(0x151)]['pushState']('','',_0x2428d1[_0x1f226e(0x122)]());}[_0x5724cd(0x1a9)](_0x335e07,_0x3312d9=!0x1){const _0x5ebcbb=_0x5724cd,_0xc1a19a=new URL(window[_0x5ebcbb(0x13b)]['href']);_0xc1a19a[_0x5ebcbb(0x24f)][_0x5ebcbb(0x1bd)](_0x335e07),_0x3312d9?window['history'][_0x5ebcbb(0x147)]('','',_0xc1a19a['toString']()):window['history'][_0x5ebcbb(0x268)]('','',_0xc1a19a[_0x5ebcbb(0x122)]());}['getParam'](_0x3f54d5){const _0x17c742=_0x5724cd;var _0xb9322b;return(_0xb9322b=new URL(window[_0x17c742(0x13b)][_0x17c742(0x19f)])[_0x17c742(0x24f)]['get'](_0x3f54d5))!=null?_0xb9322b:void 0x0;}}var Dn=Object['defineProperty'],Nn=Object[_0x5724cd(0x231)],bn=(_0x513988,_0x57c0c5,_0x4b72f7)=>_0x57c0c5 in _0x513988?Dn(_0x513988,_0x57c0c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b72f7}):_0x513988[_0x57c0c5]=_0x4b72f7,Un=(_0x14f375,_0x2be610,_0x4e667d,_0x242b5e)=>{for(var _0x3562c3=_0x242b5e>0x1?void 0x0:_0x242b5e?Nn(_0x2be610,_0x4e667d):_0x2be610,_0x386f9e=_0x14f375['length']-0x1,_0x5b7d1c;_0x386f9e>=0x0;_0x386f9e--)(_0x5b7d1c=_0x14f375[_0x386f9e])&&(_0x3562c3=_0x5b7d1c(_0x3562c3)||_0x3562c3);return _0x3562c3;},Ne=(_0xb765ab,_0x2b28bd)=>(_0x2cc9fc,_0x443ce8)=>_0x2b28bd(_0x2cc9fc,_0x443ce8,_0xb765ab),Ln=(_0x4fbe79,_0xe2ebbf,_0x436592)=>bn(_0x4fbe79,_0xe2ebbf+'',_0x436592);const Mn=_0x5724cd(0x170);let Be=class extends _0x4c752d{constructor(_0x789293=rt,_0x5b9cc2,_0x122697,_0x3adbc3){const _0x385020=_0x5724cd;super(),this[_0x385020(0x27c)]=_0x789293,this[_0x385020(0x299)]=_0x5b9cc2,this[_0x385020(0x219)]=_0x122697,this[_0x385020(0x184)]=_0x3adbc3;const {..._0x57d60f}=_0x21d242({},rt,this['_config']);this['_configService']['setConfig'](an,_0x57d60f);}[_0x5724cd(0xd1)](){const _0x27b395=_0x5724cd;this['_registerDependencies'](),this[_0x27b395(0x279)]();}[_0x5724cd(0x137)](){this['_registerRenderDependencies']();}[_0x5724cd(0x2e4)](){const _0x2044d3=_0x5724cd;var _0x2bb1e3;const _0x56cf05=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x3c3284,{'useClass':_0x36b239}],[_0x5b4070,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x4e8074(this[_0x2044d3(0x219)],_0x6b7a83(_0x56cf05,(_0x2bb1e3=this[_0x2044d3(0x27c)])==null?void 0x0:_0x2bb1e3[_0x2044d3(0x27a)]));}[_0x5724cd(0x2f7)](){const _0x4733e6=_0x5724cd;this['disposeWithMe'](this[_0x4733e6(0x299)]['registerRenderModule'](_0x5483ba[_0x4733e6(0x28b)],[ye])),this[_0x4733e6(0x1e2)](this[_0x4733e6(0x299)][_0x4733e6(0x24c)](_0x5483ba['UNIVER_SHEET'],[$e]));}[_0x5724cd(0x279)](){const _0x12ea98=_0x5724cd;_0x19cfd9(this[_0x12ea98(0x219)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x5724cd(0x215),Mn),Be=Un([_0x30d103(_0x21bbd3),Ne(0x1,_0x21229d),Ne(0x2,_0x4db080(_0xca9a6f)),Ne(0x3,_0xa43f31)],Be);var An=Object[_0x5724cd(0x231)],Pn=(_0x4506ef,_0x41d70f,_0x4412cc,_0x7cd144)=>{for(var _0x23485b=_0x7cd144>0x1?void 0x0:_0x7cd144?An(_0x41d70f,_0x4412cc):_0x41d70f,_0x3b3930=_0x4506ef['length']-0x1,_0x5cec36;_0x3b3930>=0x0;_0x3b3930--)(_0x5cec36=_0x4506ef[_0x3b3930])&&(_0x23485b=_0x5cec36(_0x23485b)||_0x23485b);return _0x23485b;},J=(_0x483e93,_0x24dff7)=>(_0x5a9d3a,_0x531e20)=>_0x24dff7(_0x5a9d3a,_0x531e20,_0x483e93);let ct=class extends _0x155bb6{constructor(_0x21eeaf,_0x4cb5c3,_0x2287ba,_0x1bf903,_0x34f7fc){super(_0x21eeaf,_0x4cb5c3,_0x2287ba,_0x1bf903,_0x34f7fc);}async[_0x5724cd(0x21b)](_0x382217){const _0x4fc0e9=_0x5724cd,_0x54f39d=await this['_getSessionTicket'](),_0x2b604c=this['_createSocketURL'](_0x382217,_0x54f39d);return this[_0x4fc0e9(0x21e)](_0x2b604c);}[_0x5724cd(0x240)](_0xc023f7,_0x48f323){const _0x8f0908=_0x5724cd,_0x177fa0=typeof window>'u'?new URL(_0xc023f7):new URL(_0xc023f7,window[_0x8f0908(0x13b)][_0x8f0908(0x201)]);_0x177fa0['searchParams'][_0x8f0908(0x2f0)](_0x8f0908(0x2ac),_0x48f323);const _0x3cc23c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8f0908(0x13b)][_0x8f0908(0xdb)]);return _0x3cc23c['get']('runId')&&_0x177fa0[_0x8f0908(0x24f)][_0x8f0908(0x2f0)]('runId',_0x3cc23c['get'](_0x8f0908(0x1e3))),_0x177fa0[_0x8f0908(0x122)]();}async['_getSessionTicket'](){const _0x7b8d3c=_0x5724cd;var _0x163b8d,_0xb26810,_0x28b3cc;const _0x3ea35e=this[_0x7b8d3c(0x184)]['getConfig'](_0x32c484),_0x4337a4=(_0x163b8d=_0x3ea35e==null?void 0x0:_0x3ea35e[_0x7b8d3c(0x26e)])!=null?_0x163b8d:_0x392e41;return(_0x28b3cc=(_0xb26810=(await this['_httpService'][_0x7b8d3c(0x297)](_0x4337a4,{'headers':{'Content-Type':_0x7b8d3c(0x1d2)}}))[_0x7b8d3c(0x2a9)])==null?void 0x0:_0xb26810[_0x7b8d3c(0x296)])!=null?_0x28b3cc:'';}};ct=Pn([J(0x0,_0x4db080(_0xca9a6f)),J(0x1,_0x4db080(_0x367dbf)),J(0x2,_0xa43f31),J(0x3,_0x1edaba),J(0x4,_0x5030fd)],ct);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x279b2c,_0x5acb2b,_0x2337ae,_0x5e7578)=>{const _0x2e06dc=_0x5724cd;for(var _0x31da64=_0x5e7578>0x1?void 0x0:_0x5e7578?wn(_0x5acb2b,_0x2337ae):_0x5acb2b,_0x275ad7=_0x279b2c[_0x2e06dc(0x173)]-0x1,_0x3951a2;_0x275ad7>=0x0;_0x275ad7--)(_0x3951a2=_0x279b2c[_0x275ad7])&&(_0x31da64=_0x3951a2(_0x31da64)||_0x31da64);return _0x31da64;},be=(_0x338d32,_0x156897)=>(_0x1b7ba1,_0x54bcc0)=>_0x156897(_0x1b7ba1,_0x54bcc0,_0x338d32);let _t=class extends _0x2916da{constructor(_0x47df24,_0x71ee8e,_0x3b338d){const _0x4b303b=_0x5724cd;super(),this[_0x4b303b(0x1cb)]=_0x47df24,this[_0x4b303b(0x1b0)]=_0x71ee8e,this[_0x4b303b(0x184)]=_0x3b338d;}async[_0x5724cd(0xeb)](_0x1486ba,_0x367c02,_0x45f24e,..._0x45b7f1){const _0x3a14a9=_0x5724cd;var _0x446daf,_0x479b87,_0x73f2fe,_0x446c01;const _0x48908e=this[_0x3a14a9(0x1cb)]['getFocusedUnit']();if(!_0x48908e)throw new Error(_0x3a14a9(0x11f));const _0x9f344a=((_0x446daf=this[_0x3a14a9(0x184)]['getConfig'](_0x1f66b6))!=null?_0x446daf:_0x4e25d6)+'/'+_0x1486ba+_0x3a14a9(0x159)+_0x367c02,_0x366769=new URL(window['location'][_0x3a14a9(0x19f)]),_0x22f327={'scriptId':_0x1486ba,'runId':(_0x479b87=_0x366769[_0x3a14a9(0x24f)][_0x3a14a9(0x297)](_0x3a14a9(0x1e3)))!=null?_0x479b87:'','function':_0x367c02,'unitId':_0x48908e[_0x3a14a9(0x25a)](),'argsOfFunction':JSON[_0x3a14a9(0x274)](_0x45b7f1),'invokeId':(_0x73f2fe=_0x45f24e[_0x3a14a9(0x179)])!=null?_0x73f2fe:'','executionId':(_0x446c01=_0x45f24e[_0x3a14a9(0x260)])!=null?_0x446c01:''};try{const _0x5cb743=await this[_0x3a14a9(0x1b0)][_0x3a14a9(0x245)](_0x9f344a,{'body':_0x22f327});return _0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x192)]&&_0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x192)][_0x3a14a9(0x226)]!==Z['OK']?_0x3a14a9(0x1cd):_0x5cb743[_0x3a14a9(0x2a9)][_0x3a14a9(0x1a8)];}catch{return _0x3a14a9(0x1cd);}}};_t=yn([be(0x0,_0x166a1e),be(0x1,_0x4db080(_0x367dbf)),be(0x2,_0xa43f31)],_t);const lt=0x7530,ht='ACTIVE_UNIT_EVENT_CHANNEL';class tr extends _0x2916da{constructor(){const _0x227f4e=_0x5724cd;super(),l(this,_0x227f4e(0xe9),_0x46dcf5()),l(this,_0x227f4e(0x2ce),new Set()),l(this,_0x227f4e(0x258),new Map()),l(this,_0x227f4e(0x214),null),l(this,_0x227f4e(0x2d0),new Map()),l(this,'_unitStatus',new Map()),this[_0x227f4e(0x16b)]();}[_0x5724cd(0x207)](){const _0x4c3145=_0x5724cd;super[_0x4c3145(0x207)](),this['_clearOtherTimers']['forEach']((_0x15d2af,_0x35fd45)=>this[_0x4c3145(0x121)](_0x35fd45)),this['_heartbeatTimer']&&window[_0x4c3145(0x28a)](this[_0x4c3145(0x214)]);}[_0x5724cd(0x104)](_0x1cb9d3){const _0x40903e=_0x5724cd;return this[_0x40903e(0x113)](_0x1cb9d3)[_0x40903e(0x148)](_0x5c79da());}[_0x5724cd(0x141)](_0x885e82){const _0x1fe591=_0x5724cd;this[_0x1fe591(0x2ce)][_0x1fe591(0x1d5)]===0x0&&this[_0x1fe591(0xf7)](),this[_0x1fe591(0x2ce)][_0x1fe591(0x157)](_0x885e82),this[_0x1fe591(0x10c)]({'type':0x0,'memberID':this[_0x1fe591(0xe9)],'unitIDs':[_0x885e82],'isForwarded':!0x1});}[_0x5724cd(0x2a3)](_0x24de32){const _0x448872=_0x5724cd;this[_0x448872(0x2ce)][_0x448872(0x1bd)](_0x24de32),this['_selfUnitIDs']['size']===0x0&&this[_0x448872(0x214)]&&window[_0x448872(0x28a)](this['_heartbeatTimer']);}['_init'](){const _0x74c883=_0x5724cd;this[_0x74c883(0x1e2)](_0xc6be91(_0xba30(window,_0x74c883(0x133))[_0x74c883(0x1ce)](_0x260bee=>{const _0x32fca5=_0x74c883;if(_0x260bee[_0x32fca5(0x185)]!==ht||!_0x260bee['newValue'])return;const _0x1c816c=JSON[_0x32fca5(0x2e5)](_0x260bee[_0x32fca5(0x289)]);this[_0x32fca5(0x25b)](_0x1c816c);}))),window[_0x74c883(0x17b)](_0x74c883(0x253),()=>this[_0x74c883(0x10c)]({'type':0x1,'memberID':this[_0x74c883(0xe9)],'unitIDs':Array['from'](this[_0x74c883(0x2ce)])}));}[_0x5724cd(0x25b)](_0x1a8613){const _0x4a33c3=_0x5724cd;switch(_0x1a8613[_0x4a33c3(0x1b8)]){case 0x0:this['_handleJoinEvent'](_0x1a8613);break;case 0x1:this[_0x4a33c3(0x23a)](_0x1a8613);break;case 0x2:this[_0x4a33c3(0x2d7)](_0x1a8613);break;}}['_handleJoinEvent'](_0x199a24){const _0x3ed0a0=_0x5724cd,{unitIDs:_0x52c6fc,memberID:_0x1b4728,isForwarded:_0x1c37eb}=_0x199a24;_0x52c6fc[_0x3ed0a0(0x1a5)](_0x40f89c=>{const _0x1c8705=_0x3ed0a0;if(!_0x1c37eb&&this['_unitOnClients'][_0x1c8705(0x1d0)](_0x40f89c)&&this[_0x1c8705(0x113)](_0x40f89c)['next'](_0x509d02[_0x1c8705(0x1bf)]),!this[_0x1c8705(0x258)][_0x1c8705(0x1d0)](_0x40f89c)||!this['_unitOnClients'][_0x1c8705(0x297)](_0x40f89c)[_0x1c8705(0x1d0)](_0x1b4728)){const _0x437aba=this[_0x1c8705(0x258)][_0x1c8705(0x297)](_0x40f89c)||new Set();_0x437aba[_0x1c8705(0x157)](_0x1b4728),this['_unitOnClients'][_0x1c8705(0x2f0)](_0x40f89c,_0x437aba),this[_0x1c8705(0x145)](_0x1b4728);}}),_0x1c37eb||this['_send']({'type':0x0,'memberID':this[_0x3ed0a0(0xe9)],'unitIDs':[...this[_0x3ed0a0(0x2ce)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58d729){const _0x29a2cb=_0x5724cd;this[_0x29a2cb(0x121)](_0x58d729);const _0x375fc6=window[_0x29a2cb(0x177)](()=>{const _0x508430=_0x29a2cb;this[_0x508430(0x258)][_0x508430(0x1a5)](_0xecee7=>{const _0xe9034a=_0x508430;_0xecee7[_0xe9034a(0x1bd)](_0x58d729);});},lt*0x2);this[_0x29a2cb(0x2d0)]['set'](_0x58d729,_0x375fc6);}[_0x5724cd(0x121)](_0x55d627){const _0x3b789a=_0x5724cd;if(this[_0x3b789a(0x2d0)][_0x3b789a(0x1d0)](_0x55d627)){const _0x57d72a=this[_0x3b789a(0x2d0)][_0x3b789a(0x297)](_0x55d627);_0x57d72a&&window[_0x3b789a(0x272)](_0x57d72a),this[_0x3b789a(0x2d0)][_0x3b789a(0x2f0)](_0x55d627,null);}}[_0x5724cd(0x23a)](_0x5b3ae4){const _0xbb7445=_0x5724cd,{memberID:_0x1b2117,unitIDs:_0x306426}=_0x5b3ae4;_0x306426[_0xbb7445(0x1a5)](_0x24187a=>{const _0x22e70f=_0xbb7445;var _0x43b901;const _0x4a72d3=this[_0x22e70f(0x258)][_0x22e70f(0x297)](_0x24187a);_0x4a72d3&&(_0x4a72d3[_0x22e70f(0x1bd)](_0x1b2117),(_0x43b901=this[_0x22e70f(0x113)](_0x24187a))==null||_0x43b901[_0x22e70f(0x130)](_0x4a72d3[_0x22e70f(0x1d5)]===0x0?_0x509d02[_0x22e70f(0x194)]:_0x509d02[_0x22e70f(0x1bf)]));}),this['_removeClearOtherTimer'](_0x1b2117);}['_handleHeartbeatEvent'](_0x32de85){const _0x594fc6=_0x5724cd;this[_0x594fc6(0x145)](_0x32de85[_0x594fc6(0x126)]);}[_0x5724cd(0x10c)](_0x127deb){const _0x520cf4=_0x5724cd;localStorage[_0x520cf4(0x30a)](ht,JSON['stringify'](_0x127deb));}[_0x5724cd(0xf7)](){const _0xf5ac7d=_0x5724cd;this[_0xf5ac7d(0x214)]=window['setInterval'](()=>{const _0x54b7d2=_0xf5ac7d;this['_send']({'type':0x2,'memberID':this[_0x54b7d2(0xe9)]});},lt);}[_0x5724cd(0x113)](_0x1c9d19){const _0x20b17b=_0x5724cd;return this[_0x20b17b(0x210)][_0x20b17b(0x1d0)](_0x1c9d19)||this[_0x20b17b(0x210)]['set'](_0x1c9d19,new _0x29a5ca(_0x509d02['NO_OTHER_CLIENTS_EDITING'])),this[_0x20b17b(0x210)][_0x20b17b(0x297)](_0x1c9d19);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};
1
+ const _0xb4aea2=_0x538f;(function(_0x245cbb,_0xd477ab){const _0x19664a=_0x538f,_0x2bc095=_0x245cbb();while(!![]){try{const _0x245e13=parseInt(_0x19664a(0x108))/0x1*(-parseInt(_0x19664a(0x104))/0x2)+-parseInt(_0x19664a(0x1d4))/0x3+-parseInt(_0x19664a(0x301))/0x4*(parseInt(_0x19664a(0x1df))/0x5)+parseInt(_0x19664a(0x2e3))/0x6*(parseInt(_0x19664a(0x193))/0x7)+-parseInt(_0x19664a(0x2fa))/0x8*(-parseInt(_0x19664a(0x101))/0x9)+parseInt(_0x19664a(0xfb))/0xa+-parseInt(_0x19664a(0x19f))/0xb;if(_0x245e13===_0xd477ab)break;else _0x2bc095['push'](_0x2bc095['shift']());}catch(_0x5ecf84){_0x2bc095['push'](_0x2bc095['shift']());}}}(_0x1339,0x8f240));var Ft=Object[_0xb4aea2(0x153)],kt=(_0x2d7d82,_0x730d78,_0x2bb359)=>_0x730d78 in _0x2d7d82?Ft(_0x2d7d82,_0x730d78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bb359}):_0x2d7d82[_0x730d78]=_0x2bb359,l=(_0x29ac08,_0x29380c,_0x509632)=>kt(_0x29ac08,typeof _0x29380c!=_0xb4aea2(0x240)?_0x29380c+'':_0x29380c,_0x509632);import{jsx as _0x481bda,jsxs as _0x2a3948}from'react/jsx-runtime';import{CollaborationStatus as _0x46264a,CollaborationSessionService as _0x40bfae,CollaborationController as _0x1ec04e,DataLoaderService as _0x4677ce,MemberService as _0x44df9e,SessionStatus as _0x3d604c,ILocalCacheService as _0x2a3e11,CollaborationUIEventService as _0x2feb4c,CollaborationUIEventId as _0x4cae62,DocCollaborationEntity as _0x5b682c,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x238e28,getLocalCacheKey as _0x18c8f2,LOCAL_CACHE_INTERVAL as _0x16be5a,LOCAL_CACHE_INTERVAL_KEY as _0x157f6a,UniverCollaborationClientPlugin as _0x5cdfaa,CollaborationSocketService as _0x48a1d0,DEFAULT_WS_SESSION_TICKET_URL as _0x38ef63,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x562fff,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5b3819,UnitStatus as _0x499425}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x379a8a,IUniverInstanceService as _0x503376,Inject as _0x230e5d,Injector as _0x3741a5,Disposable as _0x1171bd,createIdentifier as _0x2d7564,ILogService as _0x2a35a1,ICommandService as _0x4494ed,Optional as _0x24ad9f,RxDisposable as _0xcddefe,Workbook as _0x53a5b1,DOC_RANGE_TYPE as _0x16f6b9,debounce as _0x15b90a,Rectangle as _0x1800c7,DisposableCollection as _0x3dce1f,toDisposable as _0x495f2d,UniverInstanceType as _0x1737bf,generateRandomId as _0x37b68e,COLORS as _0x2778c0,ColorKit as _0x51d9c7,ThemeService as _0x56a377,fromEventSubject as _0x41555b,Tools as _0x23ac62,CommandType as _0x3f1653,IConfigService as _0xfa23ed,CanceledError as _0x36564c,isFormulaString as _0x220c4e,isFormulaId as _0x4dcf24,ILocalStorageService as _0x3b2d7e,DependentOn as _0x22da96,Plugin as _0xf8b878,merge as _0x398ff2,registerDependencies as _0x18558e,mergeOverrideWithDependencies as _0x4517fb,touchDependencies as _0x33baab}from'@univerjs/core';import{useObservable as _0x314095,useDependency as _0x34f18f,IUIPartsService as _0xfb993f,BuiltInUIPart as _0xc031e2,connectInjector as _0x19926e,IBeforeCloseService as _0x867653,IMessageService as _0x4edcbe,INotificationService as _0xf39ac2}from'@univerjs/ui';import{BehaviorSubject as _0x303f3b,switchMap as _0x11ab1d,of as _0x4e2fc3,takeUntil as _0x28b7e0,debounceTime as _0x4ddf9a,Subject as _0x857031,filter as _0x57afe5,merge as _0x4a95b8,combineLatest as _0x566cce,fromEvent as _0x4e9c50,shareReplay as _0x49e416,mapTo as _0x3b23e9,distinctUntilChanged as _0x77701e}from'rxjs';import{Tooltip as _0x6402ff,clsx as _0x27b0a8,MessageType as _0x4a4d92}from'@univerjs/design';import{useRef as _0x5d8e70,createElement as _0x306979,forwardRef as _0xa01a62,useCallback as _0x5348fe}from'react';import{IRemoteInstanceService as _0x5d4510}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x2d6015,RefRangeService as _0x227d86,SetSelectionsOperation as _0x5484bf,SheetsSelectionsService as _0x128983,EffectRefRangId as _0x3751f2,handleIRemoveRow as _0x51e249,handleIRemoveCol as _0x4a443a,handleMoveRange as _0x3eb2b7,handleInsertRow as _0x12ec09,handleInsertRangeMoveRight as _0x2752ca,handleInsertRangeMoveDown as _0x55dae1,handleInsertCol as _0x23b706,handleDeleteRangeMoveUp as _0x23d53d,handleDeleteRangeMoveLeft as _0x155d6f,runRefRangeMutations as _0x286e4f}from'@univerjs/sheets';import{Shape as _0x77342a,Rect as _0x3fc9b5,getColor as _0x302822,RegularPolygon as _0x4d7b30,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x27b111,Vector2 as _0x516980,SHEET_VIEWPORT_KEY as _0x2543b3,IRenderManagerService as _0x5ac659}from'@univerjs/engine-render';import{HTTPService as _0x2a5af9,ISocketService as _0x5627d8,WebSocketService as _0x17b987}from'@univerjs/network';import{IDocClipboardService as _0x225d84,NodePositionConvertToCursor as _0x1d0962,NodePositionConvertToRectRange as _0x1210ba,TEXT_RANGE_LAYER_INDEX as _0x17967a,SetDocZoomRatioOperation as _0x33b397,DocIMEInputManagerService as _0x342dcb,DocStateChangeManagerService as _0x17839e}from'@univerjs/docs-ui';import{IImageIoService as _0x105990}from'@univerjs/drawing';import{ITransformService as _0x224108,CollaborationEvent as _0x26920e,isTransformMutationFailure as _0x342d94,isTransformMutationsWithChangesetSuccess as _0x5c8e9a,RevisionService as _0x13db28,ISnapshotServerService as _0x455235}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x256246,RichTextEditingMutation as _0x459525,DocSelectionManagerService as _0x5510ec,DocSkeletonManagerService as _0x139487}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1d913a,serializeRangeWithSheet as _0x50296e,FormulaExecuteStageType as _0x10b0bd,FormulaExecutedStateType as _0x34e86b,SetFormulaCalculationStartMutation as _0x2929a4,SetFormulaCalculationNotificationMutation as _0x23d2c8}from'@univerjs/engine-formula';import{map as _0x1f3fb4,filter as _0x357d51,throttleTime as _0x9d77c6,takeUntil as _0x594f12,switchMap as _0x36561e}from'rxjs/operators';import{SheetSkeletonManagerService as _0x4a4276,getCoordByCell as _0x36095b,getSheetObject as _0x5e9c03}from'@univerjs/sheets-ui';function Ve({ref:_0x6127f9,..._0x1690b7}){const _0x24c32c=_0xb4aea2,{icon:_0x2b46bb,id:_0x1ca0e5,className:_0x47bf68,extend:_0x26e505,..._0x97cbe0}=_0x1690b7,_0x3c28ca=(_0x24c32c(0x139)+_0x1ca0e5+'\x20'+(_0x47bf68||''))['trim'](),_0x852e43=_0x5d8e70('_'+gi());return Ut(_0x2b46bb,''+_0x1ca0e5,{'defIds':_0x2b46bb[_0x24c32c(0x1e3)],'idSuffix':_0x852e43[_0x24c32c(0x250)]},{'ref':_0x6127f9,'className':_0x3c28ca,..._0x97cbe0},_0x26e505);}function Ut(_0x4747c6,_0x5b83e0,_0x485a26,_0x43bbf4,_0x17e38a){const _0xfc4fb9=_0xb4aea2;return _0x306979(_0x4747c6[_0xfc4fb9(0xf3)],{'key':_0x5b83e0,...mi(_0x4747c6,_0x485a26,_0x17e38a),..._0x43bbf4},(fi(_0x4747c6,_0x485a26)[_0xfc4fb9(0x21f)]||[])[_0xfc4fb9(0x187)]((_0x3e0b29,_0x448a6d)=>Ut(_0x3e0b29,_0x5b83e0+'-'+_0x4747c6[_0xfc4fb9(0xf3)]+'-'+_0x448a6d,_0x485a26,void 0x0,_0x17e38a)));}function mi(_0x1fdab2,_0x313748,_0x782f56){const _0x5c97ac=_0xb4aea2,_0x3e67c3={..._0x1fdab2['attrs']};_0x782f56!=null&&_0x782f56[_0x5c97ac(0x31a)]&&_0x3e67c3['fill']===_0x5c97ac(0x31a)&&(_0x3e67c3[_0x5c97ac(0x154)]=_0x782f56[_0x5c97ac(0x31a)]),_0x1fdab2['tag']===_0x5c97ac(0x202)&&_0x3e67c3['id']&&(_0x3e67c3['id']=_0x3e67c3['id']+_0x313748[_0x5c97ac(0xf9)]),Object[_0x5c97ac(0x1a0)](_0x3e67c3)[_0x5c97ac(0x10b)](([_0x3eaaf1,_0x57a7cc])=>{const _0x41e13d=_0x5c97ac;_0x3eaaf1===_0x41e13d(0x202)&&typeof _0x57a7cc==_0x41e13d(0x2e5)&&(_0x3e67c3[_0x3eaaf1]=_0x57a7cc[_0x41e13d(0x157)](/url\(#(.*)\)/,_0x41e13d(0x1e0)+_0x313748[_0x41e13d(0xf9)]+')'));});const {defIds:_0x32e71c}=_0x313748;return!_0x32e71c||_0x32e71c[_0x5c97ac(0x1f6)]===0x0||(_0x1fdab2[_0x5c97ac(0xf3)]===_0x5c97ac(0x2f8)&&_0x3e67c3['xlink:href']&&(_0x3e67c3['xlink:href']=_0x3e67c3[_0x5c97ac(0x137)]+_0x313748[_0x5c97ac(0xf9)]),Object[_0x5c97ac(0x1a0)](_0x3e67c3)[_0x5c97ac(0x10b)](([_0x362009,_0x1ed9e3])=>{const _0x34dea1=_0x5c97ac;typeof _0x1ed9e3=='string'&&(_0x3e67c3[_0x362009]=_0x1ed9e3[_0x34dea1(0x157)](/url\(#(.*)\)/,'url(#$1'+_0x313748['idSuffix']+')'));})),_0x3e67c3;}function fi(_0x2901a2,_0x1b8e7c){const _0x29831d=_0xb4aea2;var _0x4e873f;const {defIds:_0xea2550}=_0x1b8e7c;return!_0xea2550||_0xea2550[_0x29831d(0x1f6)]===0x0?_0x2901a2:_0x2901a2['tag']===_0x29831d(0x298)&&((_0x4e873f=_0x2901a2[_0x29831d(0x21f)])!=null&&_0x4e873f[_0x29831d(0x1f6)])?{..._0x2901a2,'children':_0x2901a2[_0x29831d(0x21f)]['map'](_0x527915=>typeof _0x527915[_0x29831d(0x23e)]['id']==_0x29831d(0x2e5)&&_0xea2550&&_0xea2550['includes'](_0x527915['attrs']['id'])?{..._0x527915,'attrs':{..._0x527915[_0x29831d(0x23e)],'id':_0x527915[_0x29831d(0x23e)]['id']+_0x1b8e7c['idSuffix']}}:_0x527915)}:_0x2901a2;}function gi(){const _0x3a21fd=_0xb4aea2;return Math[_0x3a21fd(0x260)]()[_0x3a21fd(0x10e)](0x24)[_0x3a21fd(0x1fc)](0x2,0x8);}Ve[_0xb4aea2(0x253)]=_0xb4aea2(0x23c);const vi={'tag':_0xb4aea2(0x2e9),'attrs':{'xmlns':_0xb4aea2(0x126),'fill':_0xb4aea2(0x1e5),'viewBox':_0xb4aea2(0x261),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0xb4aea2(0x2b9),'strokeLinecap':_0xb4aea2(0x16e),'strokeLinejoin':_0xb4aea2(0x16e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xb4aea2(0x1f9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xb4aea2(0x252),'attrs':{'fill':_0xb4aea2(0x11e),'d':_0xb4aea2(0x135)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Lt=_0xa01a62(function(_0x10aa3c,_0x26b30c){const _0x2fb7db=_0xb4aea2;return _0x306979(Ve,Object[_0x2fb7db(0x215)]({},_0x10aa3c,{'id':'off-line-icon','ref':_0x26b30c,'icon':vi}));});Lt['displayName']='OffLineIcon';const Ei={'tag':'svg','attrs':{'xmlns':_0xb4aea2(0x126),'fill':_0xb4aea2(0x1e5),'viewBox':_0xb4aea2(0x234),'width':'1em','height':_0xb4aea2(0x303)},'children':[{'tag':'g','attrs':{'clipPath':_0xb4aea2(0x2aa)},'children':[{'tag':_0xb4aea2(0x252),'attrs':{'stroke':'currentColor','d':_0xb4aea2(0x248),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xb4aea2(0x1f9),'attrs':{'id':_0xb4aea2(0x12b)},'children':[{'tag':_0xb4aea2(0x252),'attrs':{'fill':_0xb4aea2(0x11e),'d':_0xb4aea2(0x135),'transform':'translate(.97)'}}]}]}],'defIds':[_0xb4aea2(0x12b)]},Mt=_0xa01a62(function(_0x4f2b13,_0x30218c){const _0x46f23a=_0xb4aea2;return _0x306979(Ve,Object[_0x46f23a(0x215)]({},_0x4f2b13,{'id':_0x46f23a(0x189),'ref':_0x30218c,'icon':Ei}));});Mt[_0xb4aea2(0x253)]=_0xb4aea2(0x2f1);function pi(_0x229ed5){const _0x321bb4=_0xb4aea2;switch(_0x229ed5){case _0x46264a[_0x321bb4(0x2ef)]:return _0x321bb4(0x18a);case _0x46264a[_0x321bb4(0x1e1)]:return _0x321bb4(0x264);case _0x46264a[_0x321bb4(0x281)]:return'collabStatus.fetchMiss';case _0x46264a[_0x321bb4(0x2b7)]:return'collabStatus.notCollab';case _0x46264a[_0x321bb4(0x225)]:case _0x46264a[_0x321bb4(0x10f)]:return _0x321bb4(0x16a);case _0x46264a['SYNCED']:case _0x46264a['PENDING']:return'collabStatus.synced';}}function Oi(_0xa146d2){const _0x546faa=_0xb4aea2,{status$:_0x37f4fb}=_0xa146d2,_0x3a6ea1=_0x314095(_0x37f4fb,_0x46264a[_0x546faa(0x2b7)]),_0x2d772e=_0x34f18f(_0x379a8a),_0x168ed2=_0x34f18f(_0x40bfae),_0x1c0521=_0x3a6ea1!==_0x46264a[_0x546faa(0x2ef)],_0x2b3412=_0x2d772e['t'](pi(_0x3a6ea1)),_0x11e09a=_0x1c0521?_0x481bda(Mt,{}):_0x481bda(Lt,{}),_0x3278bd=_0x5348fe(()=>{const _0x3225c6=_0x546faa;_0x1c0521||_0x168ed2[_0x3225c6(0x1a5)]();},[_0x1c0521,_0x168ed2]);function _0x51e22b(){const _0x241498=_0x546faa;return _0x2a3948(_0x241498(0x2e0),{'className':'univer-flex\x20univer-items-center','onClick':_0x3278bd,'children':[_0x481bda(_0x241498(0x2e0),{'className':_0x27b0a8('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x1c0521,'univer-text-red-500':!_0x1c0521}),'children':_0x11e09a}),_0x481bda('div',{'className':_0x241498(0x19b),'children':_0x2b3412})]});}return _0x1c0521?_0x51e22b():_0x481bda(_0x6402ff,{'title':_0x2d772e['t'](_0x546faa(0x1fe)),'children':_0x51e22b()});}var Ti=Object[_0xb4aea2(0x1ff)],Ci=(_0x568d3b,_0x4aad8f,_0x39baf0,_0x1a778a)=>{const _0x1c90c6=_0xb4aea2;for(var _0x2e9b70=_0x1a778a>0x1?void 0x0:_0x1a778a?Ti(_0x4aad8f,_0x39baf0):_0x4aad8f,_0x121514=_0x568d3b[_0x1c90c6(0x1f6)]-0x1,_0x30b94a;_0x121514>=0x0;_0x121514--)(_0x30b94a=_0x568d3b[_0x121514])&&(_0x2e9b70=_0x30b94a(_0x2e9b70)||_0x2e9b70);return _0x2e9b70;},se=(_0x4794d3,_0x13e1bf)=>(_0x4d592f,_0x1b9129)=>_0x13e1bf(_0x4d592f,_0x1b9129,_0x4794d3);let oe=class extends _0x1171bd{constructor(_0x1b46f6,_0x2a2c9a,_0x5c99c0,_0x1b0cc4){const _0x72ecc9=_0xb4aea2;super(),l(this,_0x72ecc9(0x22a),new _0x303f3b(_0x46264a['NOT_COLLAB'])),(this['_univerInstanceService']=_0x1b46f6,this[_0x72ecc9(0x1d9)]=_0x2a2c9a,this[_0x72ecc9(0x142)]=_0x5c99c0,this[_0x72ecc9(0x265)]=_0x1b0cc4,this['_initStatusComponent'](),this['_initStatusListener']());}[_0xb4aea2(0xf4)](){const _0x4ead9b=_0xb4aea2;this[_0x4ead9b(0x2b4)](this['_univerInstanceService'][_0x4ead9b(0x200)][_0x4ead9b(0x10a)](_0x11ab1d(()=>{const _0x3b38e6=_0x4ead9b,_0x1d6f32=this[_0x3b38e6(0x2ad)][_0x3b38e6(0x290)]();return _0x1d6f32?this[_0x3b38e6(0x142)]['getCollabEntity$'](_0x1d6f32[_0x3b38e6(0x312)]()):_0x4e2fc3(null);}),_0x11ab1d(_0x11d798=>_0x11d798?_0x11d798[_0x4ead9b(0x2de)]:_0x4e2fc3(_0x46264a[_0x4ead9b(0x2b7)])))[_0x4ead9b(0x174)](_0x11e4ff=>{const _0x365852=_0x4ead9b;this[_0x365852(0x22a)][_0x365852(0x21b)](_0x11e4ff);}));}[_0xb4aea2(0x1c6)](){const _0x291c29=_0xb4aea2;this[_0x291c29(0x2b4)](this['_uiPartsService'][_0x291c29(0x285)](_0xc031e2[_0x291c29(0x269)],()=>_0x19926e(Ri({'status$':this[_0x291c29(0x22a)][_0x291c29(0x14a)]()}),this['_injector'])));}};oe=Ci([se(0x0,_0x503376),se(0x1,_0x230e5d(_0x3741a5)),se(0x2,_0x230e5d(_0x1ec04e)),se(0x3,_0xfb993f)],oe);function Ri(_0x199fc1){const {status$:_0x21b6a6}=_0x199fc1;return function(){return _0x481bda(Oi,{'status$':_0x21b6a6});};}const At=_0x2d7564(_0xb4aea2(0x166));var Di=Object[_0xb4aea2(0x1ff)],Ni=(_0x202690,_0x470e6b,_0x28596e,_0xe63822)=>{const _0x1a1cbe=_0xb4aea2;for(var _0x595d0f=_0xe63822>0x1?void 0x0:_0xe63822?Di(_0x470e6b,_0x28596e):_0x470e6b,_0x230971=_0x202690[_0x1a1cbe(0x1f6)]-0x1,_0x5218f7;_0x230971>=0x0;_0x230971--)(_0x5218f7=_0x202690[_0x230971])&&(_0x595d0f=_0x5218f7(_0x595d0f)||_0x595d0f);return _0x595d0f;},K=(_0x1c03af,_0x407f3c)=>(_0x5a463b,_0x120eac)=>_0x407f3c(_0x5a463b,_0x120eac,_0x1c03af);let ae=class extends _0xcddefe{constructor(_0xbdd246,_0x5082c5,_0x719223,_0x209e34,_0x4afaeb){const _0x219d5e=_0xb4aea2;super(),this[_0x219d5e(0x2ff)]=_0xbdd246,this['_logService']=_0x5082c5,this[_0x219d5e(0x102)]=_0x719223,this['_dataLoaderService']=_0x209e34,_0x4afaeb?_0x4afaeb==null||_0x4afaeb[_0x219d5e(0x1f4)]()[_0x219d5e(0x1a3)](()=>this[_0x219d5e(0x23a)]()):(this[_0x219d5e(0x15a)][_0x219d5e(0x235)](_0x219d5e(0x15f),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0xb4aea2(0x23a)](){const _0x5deb8d=_0xb4aea2,_0x4faf7d=this[_0x5deb8d(0x2ff)][_0x5deb8d(0x17c)](_0x5deb8d(0xf8)),_0x43c639=this[_0x5deb8d(0x2ff)][_0x5deb8d(0x17c)](_0x5deb8d(0x2ed)),_0x340457=this['_urlService'][_0x5deb8d(0x17c)](_0x5deb8d(0xfd));if(!_0x4faf7d||!_0x43c639){this['_logService']['debug']('[CollaborationDataLoaderController]',_0x5deb8d(0x114));return;}const _0x5d548b=await this[_0x5deb8d(0x16f)][_0x5deb8d(0x168)](_0x4faf7d,Number(_0x43c639),_0x340457);_0x5d548b&&_0x5d548b instanceof _0x53a5b1&&this[_0x5deb8d(0x2c0)](_0x5d548b);}async[_0xb4aea2(0x2c0)](_0x391b9f){const _0x3a6973=_0xb4aea2;await this[_0x3a6973(0x238)](_0x391b9f),_0x391b9f[_0x3a6973(0x185)][_0x3a6973(0x10a)](_0x28b7e0(this['dispose$']))[_0x3a6973(0x174)](_0x1d43da=>{const _0x1bd834=_0x3a6973;_0x1d43da&&this[_0x1bd834(0x127)](_0x1d43da);}),this['_urlService'][_0x3a6973(0x317)][_0x3a6973(0x10a)](_0x28b7e0(this[_0x3a6973(0xfe)]))[_0x3a6973(0x174)](()=>this[_0x3a6973(0x238)](_0x391b9f));}['_updateURLWithCurrentState'](_0x413bf3,_0x28c838=!0x1){const _0x51cf0e=_0xb4aea2,_0xbebcf2=this[_0x51cf0e(0x2ff)][_0x51cf0e(0x17c)](_0x51cf0e(0xfd));_0x413bf3[_0x51cf0e(0x14f)]()!==_0xbebcf2&&this[_0x51cf0e(0x2ff)]['setParam']('subunit',_0x413bf3[_0x51cf0e(0x14f)](),_0x28c838);}async[_0xb4aea2(0x238)](_0x32674c){const _0x455d1e=_0xb4aea2;var _0x46677a;const _0x51f124=this[_0x455d1e(0x2ff)][_0x455d1e(0x17c)](_0x455d1e(0xfd));if(!_0x51f124||!_0x32674c[_0x455d1e(0x239)](_0x51f124)){const _0x4d6096=_0x32674c[_0x455d1e(0x152)]()[0x0],_0x3a4a96=_0x32674c[_0x455d1e(0x239)](_0x4d6096);if(!_0x3a4a96)return;this[_0x455d1e(0x127)](_0x3a4a96,!0x0),await this[_0x455d1e(0x102)][_0x455d1e(0x2d6)](_0x2d6015['id'],{'unitId':_0x32674c['getUnitId'](),'subUnitId':_0x4d6096});return;}((_0x46677a=_0x32674c['getActiveSheet']())==null?void 0x0:_0x46677a[_0x455d1e(0x14f)]())!==_0x51f124&&await this[_0x455d1e(0x102)][_0x455d1e(0x2d6)](_0x2d6015['id'],{'unitId':_0x32674c[_0x455d1e(0x312)](),'subUnitId':_0x51f124});}};ae=Ni([K(0x0,At),K(0x1,_0x2a35a1),K(0x2,_0x4494ed),K(0x3,_0x230e5d(_0x4677ce)),K(0x4,_0x24ad9f(_0x5d4510))],ae);var bi=Object['getOwnPropertyDescriptor'],Ui=(_0x33e152,_0x530d2d,_0x9d99fe,_0x55089e)=>{const _0x5d64cb=_0xb4aea2;for(var _0x1043e3=_0x55089e>0x1?void 0x0:_0x55089e?bi(_0x530d2d,_0x9d99fe):_0x530d2d,_0x27962e=_0x33e152[_0x5d64cb(0x1f6)]-0x1,_0x3eb742;_0x27962e>=0x0;_0x27962e--)(_0x3eb742=_0x33e152[_0x27962e])&&(_0x1043e3=_0x3eb742(_0x1043e3)||_0x1043e3);return _0x1043e3;},tt=(_0x37ec8d,_0x382340)=>(_0x443f7f,_0x3c634e)=>_0x382340(_0x443f7f,_0x3c634e,_0x37ec8d);let Ae=class extends _0xcddefe{constructor(_0x4803a1,_0x317441){const _0x3a90e5=_0xb4aea2;super(),this[_0x3a90e5(0x279)]=_0x4803a1,this[_0x3a90e5(0x163)]=_0x317441,this['_init']();}[_0xb4aea2(0x23a)](){const _0x14c306=_0xb4aea2,_0x4977a1=this;this[_0x14c306(0x2b4)](this[_0x14c306(0x279)]['addClipboardHook']({'onBeforePasteImage':async _0x15cea9=>{const _0x257d02=_0x14c306,_0x2a434c=await _0x4977a1[_0x257d02(0x163)][_0x257d02(0x2d2)](_0x15cea9);return _0x2a434c?{'source':_0x2a434c[_0x257d02(0x20c)],'imageSourceType':_0x2a434c[_0x257d02(0x18b)]}:null;}}));}};Ae=Ui([tt(0x0,_0x225d84),tt(0x1,_0x105990)],Ae);const st=[_0xb4aea2(0x204),'jiqing.500',_0xb4aea2(0x1fd),_0xb4aea2(0xfa),_0xb4aea2(0x167),'yellow.400'];class je extends _0x1171bd{constructor(){const _0x2d5e96=_0xb4aea2;super(...arguments),l(this,_0x2d5e96(0x2b1),new Map()),l(this,_0x2d5e96(0x107),0x0);}['assignAColorForMemberID'](_0x50168f){const _0x253440=_0xb4aea2;if(this['_assignedColors'][_0x253440(0x198)](_0x50168f))return this['_assignedColors'][_0x253440(0x278)](_0x50168f);const _0x412d4f=st[this[_0x253440(0x107)]];return this[_0x253440(0x107)]=(this[_0x253440(0x107)]+0x1)%st[_0x253440(0x1f6)],this[_0x253440(0x2b1)][_0x253440(0x2c6)](_0x50168f,_0x412d4f),_0x412d4f;}}function Pt(_0x1feb99){const _0x4d1766=_0xb4aea2;let _0x4d4baa='';for(const _0x268bdc of _0x1feb99){const {startOffset:_0x21318b,endOffset:_0x455140,isActive:_0x841aff,rangeType:_0x10eb33,segmentId:_0x31d371,segmentPage:_0x55a784}=_0x268bdc;_0x4d4baa[_0x4d1766(0x1f6)]&&(_0x4d4baa+=','),_0x4d4baa+=_0x21318b+':'+_0x455140+':'+(_0x841aff?'1':'0')+':'+_0x10eb33+':'+_0x31d371+':'+_0x55a784;}return _0x4d4baa;}function Li(_0x187afe){const _0x3a03ec=_0xb4aea2,_0xb04de0=_0x187afe[_0x3a03ec(0x275)](','),_0x2375f6=[];for(const _0x4538cb of _0xb04de0){const [_0x3f194f,_0xcb57d2,_0x2196e8,_0x1255b4,_0x30339d,_0x375893]=_0x4538cb[_0x3a03ec(0x275)](':');_0x2375f6[_0x3a03ec(0x25f)]({'startOffset':Number(_0x3f194f),'endOffset':Number(_0xcb57d2),'collapsed':_0x3f194f===_0xcb57d2,'isActive':_0x2196e8==='1','rangeType':_0x1255b4===_0x16f6b9[_0x3a03ec(0x13e)]?_0x16f6b9[_0x3a03ec(0x13e)]:_0x16f6b9[_0x3a03ec(0x313)],'segmentId':typeof _0x30339d==_0x3a03ec(0x2e5)?String(_0x30339d):'','segmentPage':Number(_0x375893!=null?_0x375893:-0x1)});}return _0x2375f6['some'](_0x34e021=>_0x34e021[_0x3a03ec(0x2d4)])||(_0x2375f6[0x0]['isActive']=!0x0),_0x2375f6;}class Xe extends _0xcddefe{constructor(){const _0x5e8d5e=_0xb4aea2;super(...arguments),l(this,_0x5e8d5e(0x31c),new _0x303f3b(null)),l(this,_0x5e8d5e(0x266),this['_collabCursorState$'][_0x5e8d5e(0x14a)]());}[_0xb4aea2(0x209)](_0x41f2c2){const _0xeb50b0=_0xb4aea2,{unitID:_0x1467df,memberID:_0x42b154,textRanges:_0x1f5ca1}=_0x41f2c2,_0x40db75=Pt(_0x1f5ca1);if(_0x40db75==='')return;const _0x2a8dc3={'unitID':_0x1467df,'memberID':_0x42b154,'selection':_0x40db75};this['_collabCursorState$'][_0xeb50b0(0x21b)](_0x2a8dc3);}}var Mi=Object[_0xb4aea2(0x1ff)],Ai=(_0x38d008,_0x3deac4,_0x48752b,_0x5b7113)=>{const _0x5403e4=_0xb4aea2;for(var _0x3c6dee=_0x5b7113>0x1?void 0x0:_0x5b7113?Mi(_0x3deac4,_0x48752b):_0x3deac4,_0x3c7501=_0x38d008[_0x5403e4(0x1f6)]-0x1,_0x38d5ca;_0x3c7501>=0x0;_0x3c7501--)(_0x38d5ca=_0x38d008[_0x3c7501])&&(_0x3c6dee=_0x38d5ca(_0x3c6dee)||_0x3c6dee);return _0x3c6dee;},A=(_0x3a767a,_0x592845)=>(_0x57b1d7,_0x2f6350)=>_0x592845(_0x57b1d7,_0x2f6350,_0x3a767a);const Pi=0x12c,wi=0x64;let Pe=class extends _0xcddefe{constructor(_0x5461fc,_0x49e1b3,_0x5a2923,_0x1a751f,_0x5bed0e,_0xcb160e,_0x4196fc,_0x5cde5d,_0x3e4a03){const _0x58bdc2=_0xb4aea2;super(),l(this,_0x58bdc2(0x2f4),!0x1),l(this,_0x58bdc2(0x23a),!0x1),l(this,_0x58bdc2(0x2a0),new _0x303f3b(new Map())),l(this,_0x58bdc2(0x2a1),this[_0x58bdc2(0x2a0)]['asObservable']()),l(this,_0x58bdc2(0x244),new _0x303f3b([])),l(this,'roomMembers$',this[_0x58bdc2(0x244)][_0x58bdc2(0x10a)](_0x4ddf9a(Pi))),l(this,_0x58bdc2(0x2cd),_0x15b90a(_0x292b1c=>{const _0x2dd935=_0x58bdc2,_0x54db28={'eventID':_0x26920e[_0x2dd935(0x292)],'data':{'unitID':this['unitID'],'memberID':this[_0x2dd935(0x1a7)][_0x2dd935(0x1ce)](),'selection':Pt(_0x292b1c)}};this['_session'][_0x2dd935(0x1d5)](_0x54db28,this[_0x2dd935(0x2ec)]);},wi)),(this['unitID']=_0x5461fc,this[_0x58bdc2(0x1a7)]=_0x49e1b3,this[_0x58bdc2(0x1d9)]=_0x5a2923,this[_0x58bdc2(0x183)]=_0x1a751f,this[_0x58bdc2(0x177)]=_0x5bed0e,this[_0x58bdc2(0x195)]=_0xcb160e,this['_transformService']=_0x4196fc,this[_0x58bdc2(0x2ad)]=_0x5cde5d,this[_0x58bdc2(0x102)]=_0x3e4a03);}get[_0xb4aea2(0x257)](){const _0x23d852=_0xb4aea2;return this['_cursorInfo$'][_0x23d852(0x1da)]();}get[_0xb4aea2(0x2ee)](){return this['_roomMembers$']['getValue']();}[_0xb4aea2(0x2c2)](){const _0x2ea84e=_0xb4aea2;super[_0x2ea84e(0x2c2)](),this['_cursorInfo$'][_0x2ea84e(0x21b)](new Map()),this['_cursorInfo$'][_0x2ea84e(0x176)](),this[_0x2ea84e(0x244)][_0x2ea84e(0x21b)]([]),this[_0x2ea84e(0x244)][_0x2ea84e(0x176)]();}['init'](){const _0x520fa6=_0xb4aea2;this['_init']||(this[_0x520fa6(0x23a)]=!0x0,this['_session'][_0x520fa6(0x208)][_0x520fa6(0x10a)](_0x28b7e0(this[_0x520fa6(0xfe)]))[_0x520fa6(0x174)](_0x6db155=>{const _0x48dfbf=_0x520fa6;_0x6db155===_0x3d604c['ONLINE']?this[_0x48dfbf(0x267)]():this['_toggleOffline']();}),this[_0x520fa6(0x1a7)][_0x520fa6(0x143)]['pipe'](_0x28b7e0(this[_0x520fa6(0xfe)]))[_0x520fa6(0x174)](_0x8a5c98=>{const _0x3ae565=_0x520fa6,_0x41e780=_0x8a5c98['eventID'];_0x41e780===_0x26920e[_0x3ae565(0x292)]&&this['_onCursorUpdate'](_0x8a5c98),_0x41e780===_0x26920e['USERS_LEAVE']&&this['_onCursorDelete'](_0x8a5c98);}),this[_0x520fa6(0x2b4)](this['_commandService']['onCommandExecuted'](_0x4ba32a=>{const _0x2830f=_0x520fa6,_0x41c832=_0x4ba32a[_0x2830f(0x2b8)];_0x41c832!=null&&this['_online']&&_0x4ba32a['id']===_0x256246['id']&&_0x41c832[_0x2830f(0x1c7)]===this[_0x2830f(0x2ec)]&&_0x41c832['isEditing']===!0x1&&_0x41c832[_0x2830f(0x26b)][_0x2830f(0x1f6)]>0x0&&this[_0x2830f(0x2cd)](_0x41c832[_0x2830f(0x26b)]);})),this[_0x520fa6(0x195)]['collabCursorState$']['pipe'](_0x28b7e0(this[_0x520fa6(0xfe)]))['subscribe'](_0x13c6c8=>{const _0x23f3c1=_0x520fa6;if((_0x13c6c8==null?void 0x0:_0x13c6c8[_0x23f3c1(0x2ec)])!==this[_0x23f3c1(0x2ec)])return;const _0x4b4176={'eventID':_0x26920e[_0x23f3c1(0x292)],'data':_0x13c6c8};this[_0x23f3c1(0x25a)](_0x4b4176);}),this[_0x520fa6(0x2b4)](this[_0x520fa6(0x102)][_0x520fa6(0x259)](_0x3f8bfd=>{const _0x48f60f=_0x520fa6;if(_0x3f8bfd[_0x48f60f(0x2b8)]==null)return;const _0x7129aa=_0x3f8bfd[_0x48f60f(0x2b8)];if(_0x3f8bfd['id']!==_0x459525['id']||_0x7129aa[_0x48f60f(0x1c7)]!==this[_0x48f60f(0x2ec)])return;const _0x2beb87={'id':_0x48f60f(0x2bb),'params':_0x7129aa},_0x3f1426=this['cursorInfo'];for(const [_0x48da18,_0x3736dc]of _0x3f1426){const _0x3ac146={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x48f60f(0x2ec)],'actions':null,'textRanges':_0x3736dc['ranges']}},_0x23c306=this[_0x48f60f(0x2c4)][_0x48f60f(0x19e)](_0x2beb87,_0x3ac146,!0x1);if(_0x342d94(_0x23c306))throw _0x23c306['error'];_0x3f1426[_0x48f60f(0x2c6)](_0x48da18,{..._0x3736dc,'ranges':_0x23c306['m2Prime'][_0x48f60f(0x2b8)]['textRanges']});}queueMicrotask(()=>{const _0x15e438=_0x48f60f;this['_cursorInfo$'][_0x15e438(0x21b)](_0x3f1426);});})));}['_onCursorUpdate'](_0x2ec639){const _0x23b1c9=_0xb4aea2;var _0x5cdce5,_0x54c406;const {memberID:_0xaf6666,selection:_0x589395}=_0x2ec639[_0x23b1c9(0x17e)],_0x4b3a25=Li(_0x589395),_0x45272d=(_0x54c406=(_0x5cdce5=this[_0x23b1c9(0x177)]['getMember'](this[_0x23b1c9(0x2ec)],_0xaf6666))==null?void 0x0:_0x5cdce5['name'])!=null?_0x54c406:_0x23b1c9(0x2ac),_0x116c30={'color':this[_0x23b1c9(0x183)][_0x23b1c9(0x1fb)](_0xaf6666),'name':_0x45272d,'ranges':_0x4b3a25},_0x566038=this['cursorInfo'];_0x566038[_0x23b1c9(0x2c6)](_0xaf6666,_0x116c30),this[_0x23b1c9(0x2a0)][_0x23b1c9(0x21b)](_0x566038);}[_0xb4aea2(0x13c)](_0x555ffb){const _0x20d96a=_0xb4aea2,{memberID:_0x50709f}=_0x555ffb[_0x20d96a(0x17e)],_0x231e4d=this[_0x20d96a(0x257)];_0x231e4d['delete'](_0x50709f),this[_0x20d96a(0x2a0)][_0x20d96a(0x21b)](_0x231e4d);}[_0xb4aea2(0x267)](){const _0x430a2e=_0xb4aea2;var _0x2b3e20;if(this[_0x430a2e(0x2f4)]=!0x0,((_0x2b3e20=this[_0x430a2e(0x2ad)][_0x430a2e(0x290)]())==null?void 0x0:_0x2b3e20[_0x430a2e(0x312)]())!==this[_0x430a2e(0x2ec)])return;const _0x554183=this['_injector'][_0x430a2e(0x278)](_0x5510ec)['getDocRanges']();Array[_0x430a2e(0x192)](_0x554183)&&_0x554183[_0x430a2e(0x1f6)]>0x0&&this[_0x430a2e(0x2cd)](_0x554183);}[_0xb4aea2(0x179)](){const _0x145b55=_0xb4aea2;this[_0x145b55(0x2f4)]=!0x1;}};Pe=Ai([A(0x2,_0x230e5d(_0x3741a5)),A(0x3,_0x230e5d(je)),A(0x4,_0x230e5d(_0x44df9e)),A(0x5,_0x230e5d(Xe)),A(0x6,_0x224108),A(0x7,_0x503376),A(0x8,_0x4494ed)],Pe);var yi=Object[_0xb4aea2(0x1ff)],$i=(_0x4edd91,_0x32916e,_0xaf98be,_0x4fe7f5)=>{const _0x3f0428=_0xb4aea2;for(var _0x223e1c=_0x4fe7f5>0x1?void 0x0:_0x4fe7f5?yi(_0x32916e,_0xaf98be):_0x32916e,_0x1add49=_0x4edd91[_0x3f0428(0x1f6)]-0x1,_0xf0a963;_0x1add49>=0x0;_0x1add49--)(_0xf0a963=_0x4edd91[_0x1add49])&&(_0x223e1c=_0xf0a963(_0x223e1c)||_0x223e1c);return _0x223e1c;},B=(_0x578037,_0x106b10)=>(_0x51f764,_0x2897ce)=>_0x106b10(_0x51f764,_0x2897ce,_0x578037);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x17997b=[],_0x13e855=!0x1;return _0x49a060=>{_0x17997b['push'](_0x49a060),_0x13e855||(_0x13e855=!0x0,setTimeout(()=>{const _0x5adf00=_0x538f;_0x17997b[_0x5adf00(0x10b)](_0x58e298=>_0x58e298()),_0x17997b=[],_0x13e855=!0x1;}));};};let we=class extends _0xcddefe{constructor(_0x25acd8,_0x4fc4ad,_0x55f1cc,_0x584f0c,_0x30126f,_0x39d91a,_0x22cb4f,_0x41e704){const _0xb44e51=_0xb4aea2;super(),l(this,'_online',!0x1),l(this,_0xb44e51(0x23a),!0x1),l(this,_0xb44e51(0x2a0),new _0x303f3b(new Map())),l(this,_0xb44e51(0x2a1),this[_0xb44e51(0x2a0)][_0xb44e51(0x14a)]()),l(this,_0xb44e51(0x244),new _0x303f3b([])),l(this,_0xb44e51(0x170),this[_0xb44e51(0x244)][_0xb44e51(0x10a)](_0x4ddf9a(xi))),l(this,_0xb44e51(0x2cd),_0x15b90a((_0x46fc25,_0x1bcfdb)=>{const _0x512739=_0xb44e51,_0x359725={'eventID':_0x26920e[_0x512739(0x292)],'data':{'unitID':this[_0x512739(0x2ec)],'memberID':this[_0x512739(0x1a7)][_0x512739(0x1ce)](),'selection':_0x50296e(_0x46fc25,_0x1bcfdb[_0x512739(0x1ab)])}};this[_0x512739(0x1a7)]['send'](_0x359725,this[_0x512739(0x2ec)]);},Bi)),(this['unitID']=_0x25acd8,this[_0xb44e51(0x1a7)]=_0x4fc4ad,this[_0xb44e51(0x1d9)]=_0x55f1cc,this[_0xb44e51(0x183)]=_0x584f0c,this[_0xb44e51(0x177)]=_0x30126f,this[_0xb44e51(0x2ad)]=_0x39d91a,this[_0xb44e51(0x102)]=_0x22cb4f,this[_0xb44e51(0x1aa)]=_0x41e704);}get['cursorInfo'](){const _0x59b260=_0xb4aea2;return this[_0x59b260(0x2a0)][_0x59b260(0x1da)]();}get[_0xb4aea2(0x2ee)](){const _0x2d2430=_0xb4aea2;return this[_0x2d2430(0x244)]['getValue']();}[_0xb4aea2(0x2c2)](){const _0x2e70cc=_0xb4aea2;super[_0x2e70cc(0x2c2)](),this[_0x2e70cc(0x2a0)][_0x2e70cc(0x21b)](new Map()),this['_cursorInfo$'][_0x2e70cc(0x176)](),this[_0x2e70cc(0x244)][_0x2e70cc(0x21b)]([]),this[_0x2e70cc(0x244)]['complete']();}[_0xb4aea2(0x131)](){const _0x4c70f2=_0xb4aea2;this[_0x4c70f2(0x23a)]||(this[_0x4c70f2(0x23a)]=!0x0,this[_0x4c70f2(0x1a7)][_0x4c70f2(0x208)]['pipe'](_0x28b7e0(this[_0x4c70f2(0xfe)]))[_0x4c70f2(0x174)](_0x202ac6=>{const _0xda1c63=_0x4c70f2;_0x202ac6===_0x3d604c['ONLINE']?this[_0xda1c63(0x267)]():this[_0xda1c63(0x179)]();}),this[_0x4c70f2(0x1a7)][_0x4c70f2(0x143)][_0x4c70f2(0x10a)](_0x28b7e0(this[_0x4c70f2(0xfe)]))[_0x4c70f2(0x174)](_0x2dc282=>{const _0xb5954=_0x4c70f2,_0x359908=_0x2dc282['eventID'];_0x359908===_0x26920e['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x2dc282),_0x359908===_0x26920e[_0xb5954(0x1ed)]&&this[_0xb5954(0x13c)](_0x2dc282);}),this['_onRefRangeChange'](),this[_0x4c70f2(0x2b4)](this[_0x4c70f2(0x102)][_0x4c70f2(0x259)](_0x15edfc=>{const _0x5ddec4=_0x4c70f2;if(this[_0x5ddec4(0x2f4)]&&_0x15edfc['id']===_0x5484bf['id']&&_0x15edfc[_0x5ddec4(0x2b8)][_0x5ddec4(0x1c7)]===this['unitID']){const _0x44af05=_0x15edfc[_0x5ddec4(0x2b8)];this['_updateLocalCursor'](_0x44af05['subUnitId'],_0x44af05[_0x5ddec4(0x268)][0x0]);}})));}[_0xb4aea2(0x25a)](_0x19c68d){const _0x5006c2=_0xb4aea2;var _0x1ef1fd,_0xa36a73;const {memberID:_0x477562,selection:_0xd2c546}=_0x19c68d[_0x5006c2(0x17e)],{sheetName:_0x414738,range:_0x522726}=_0x1d913a(_0xd2c546),_0x3eaf02={'name':(_0xa36a73=(_0x1ef1fd=this['_memberService'][_0x5006c2(0x1c9)](this['unitID'],_0x477562))==null?void 0x0:_0x1ef1fd[_0x5006c2(0x1b1)])!=null?_0xa36a73:_0x5006c2(0x2ac),'range':this['_getMergeRange'](_0x414738,_0x522726),'sheetID':_0x414738,'color':this['_colorAssignService'][_0x5006c2(0x1fb)](_0x477562),'selection':_0xd2c546},_0xa15f5b=this[_0x5006c2(0x257)];_0xa15f5b[_0x5006c2(0x2c6)](_0x477562,_0x3eaf02),this['_cursorInfo$']['next'](_0xa15f5b);}[_0xb4aea2(0x13c)](_0x24fecd){const _0x1588d2=_0xb4aea2,{memberID:_0x485b70}=_0x24fecd[_0x1588d2(0x17e)],_0x514a0d=this[_0x1588d2(0x257)];_0x514a0d[_0x1588d2(0x2dc)](_0x485b70),this[_0x1588d2(0x2a0)][_0x1588d2(0x21b)](_0x514a0d);}[_0xb4aea2(0x30b)](_0x430071,_0x3e717d){const _0x16eb24=_0xb4aea2;var _0x2835ec,_0x5d838b;const _0x252ff6=(_0x5d838b=(_0x2835ec=this[_0x16eb24(0x2ad)][_0x16eb24(0x181)](this[_0x16eb24(0x2ec)]))==null?void 0x0:_0x2835ec[_0x16eb24(0x239)](_0x430071))==null?void 0x0:_0x5d838b['getMergeData']();return(_0x252ff6==null?void 0x0:_0x252ff6['find'](_0x1b3653=>_0x1800c7[_0x16eb24(0x304)](_0x1b3653,_0x3e717d)))||_0x3e717d;}['_onRefRangeChange'](){const _0x4d86eb=_0xb4aea2,_0x1e848a=new _0x3dce1f(),_0x22543f=Fi(),_0x1572c2=()=>{const _0x4b6430=_0x538f;_0x1e848a['dispose']();const _0x500774=(_0xb456bb,_0x578906,_0x2430ff,_0x59f84d)=>{const _0x3ff720=_0x538f;let _0x748728=[];switch(_0xb456bb['id']){case _0x3751f2[_0x3ff720(0x27e)]:{_0x748728=_0x155d6f(_0xb456bb,_0x59f84d);break;}case _0x3751f2[_0x3ff720(0x1f5)]:{_0x748728=_0x23d53d(_0xb456bb,_0x59f84d);break;}case _0x3751f2[_0x3ff720(0x23d)]:{_0x748728=_0x23b706(_0xb456bb,_0x59f84d);break;}case _0x3751f2['InsertRangeMoveDownCommandId']:{_0x748728=_0x55dae1(_0xb456bb,_0x59f84d);break;}case _0x3751f2['InsertRangeMoveRightCommandId']:{_0x748728=_0x2752ca(_0xb456bb,_0x59f84d);break;}case _0x3751f2[_0x3ff720(0x2f6)]:{_0x748728=_0x12ec09(_0xb456bb,_0x59f84d);break;}case _0x3751f2[_0x3ff720(0x2be)]:{_0x748728=_0x3eb2b7(_0xb456bb,_0x59f84d);break;}case _0x3751f2['RemoveColCommandId']:{_0x748728=_0x4a443a(_0xb456bb,_0x59f84d);break;}case _0x3751f2['RemoveRowCommandId']:{_0x748728=_0x51e249(_0xb456bb,_0x59f84d);break;}}const _0x3d787a=_0x286e4f(_0x748728,_0x59f84d),_0x4f9955=this[_0x3ff720(0x257)]['get'](_0x578906);if(_0x4f9955&&_0x3d787a){const _0x10c63a={..._0x4f9955,'range':_0x3d787a};this[_0x3ff720(0x257)][_0x3ff720(0x2c6)](_0x578906,_0x10c63a),_0x22543f(()=>{const _0x461a10=_0x3ff720,_0xfb20c=this[_0x461a10(0x1aa)]['registerRefRange'](_0x3d787a,_0x2fde04=>(_0xfb20c[_0x461a10(0x2c2)](),_0x500774(_0x2fde04,_0x578906,_0x2430ff,_0x3d787a)));_0x1e848a[_0x461a10(0x2a2)](_0xfb20c);});}return{'redos':[],'undos':[]};};this[_0x4b6430(0x257)][_0x4b6430(0x10b)]((_0xf795c2,_0xf1da4c)=>{const _0x3e0dd0=_0x4b6430,{range:_0x8a1809,sheetID:_0x4eb222}=_0xf795c2,_0x2adfdd=this[_0x3e0dd0(0x1aa)][_0x3e0dd0(0x2b0)](_0x8a1809,_0x57bd43=>(_0x2adfdd[_0x3e0dd0(0x2c2)](),_0x500774(_0x57bd43,_0xf1da4c,_0x4eb222,_0x8a1809)));_0x1e848a[_0x3e0dd0(0x2a2)](_0x2adfdd);});};this[_0x4d86eb(0x2b4)](_0x495f2d(this[_0x4d86eb(0x2a0)][_0x4d86eb(0x174)](()=>{_0x1572c2();})));}[_0xb4aea2(0x267)](){const _0x1f1158=_0xb4aea2;var _0xa96d5e,_0x48fe16;if(this[_0x1f1158(0x2f4)]=!0x0,((_0xa96d5e=this[_0x1f1158(0x2ad)][_0x1f1158(0x290)]())==null?void 0x0:_0xa96d5e['getUnitId']())!==this[_0x1f1158(0x2ec)])return;const _0x9f9d7b=(_0x48fe16=this[_0x1f1158(0x1d9)][_0x1f1158(0x278)](_0x128983)['getCurrentSelections']())==null?void 0x0:_0x48fe16[0x0],_0x2b8b02=this[_0x1f1158(0x2ad)][_0x1f1158(0x1d1)](_0x1737bf[_0x1f1158(0x12a)])[_0x1f1158(0x1a1)]();_0x9f9d7b&&_0x2b8b02&&this[_0x1f1158(0x2cd)](_0x2b8b02[_0x1f1158(0x14f)](),_0x9f9d7b);}[_0xb4aea2(0x179)](){this['_online']=!0x1;}};we=$i([B(0x2,_0x230e5d(_0x3741a5)),B(0x3,_0x230e5d(je)),B(0x4,_0x230e5d(_0x44df9e)),B(0x5,_0x503376),B(0x6,_0x4494ed),B(0x7,_0x230e5d(_0x227d86))],we);var ki=Object[_0xb4aea2(0x1ff)],Hi=(_0x18c143,_0xbd11d8,_0x1e28d5,_0x1d37a4)=>{const _0x56d58a=_0xb4aea2;for(var _0x5a0d0b=_0x1d37a4>0x1?void 0x0:_0x1d37a4?ki(_0xbd11d8,_0x1e28d5):_0xbd11d8,_0x59dcb9=_0x18c143[_0x56d58a(0x1f6)]-0x1,_0x283838;_0x59dcb9>=0x0;_0x59dcb9--)(_0x283838=_0x18c143[_0x59dcb9])&&(_0x5a0d0b=_0x283838(_0x5a0d0b)||_0x5a0d0b);return _0x5a0d0b;},Ee=(_0x1d62b5,_0x54044b)=>(_0x5492a5,_0x1069a0)=>_0x54044b(_0x5492a5,_0x1069a0,_0x1d62b5);let H=class extends _0xcddefe{constructor(_0x25804a,_0x4a9dec,_0x39f9e8){const _0x1cca71=_0xb4aea2;super(),l(this,_0x1cca71(0x19c),new Map()),l(this,_0x1cca71(0x27b),new _0x857031()),(this[_0x1cca71(0x2ad)]=_0x25804a,this[_0x1cca71(0x1d9)]=_0x4a9dec,this['_collabSessionService']=_0x39f9e8,this[_0x1cca71(0x23a)]());}[_0xb4aea2(0x2c2)](){const _0x40d442=_0xb4aea2;super['dispose'](),this[_0x40d442(0x27b)][_0x40d442(0x176)](),this[_0x40d442(0x19c)]['forEach'](_0x53b124=>_0x53b124[_0x40d442(0x2c2)]());}[_0xb4aea2(0x171)](_0x16eb0c){const _0x48a1c8=_0xb4aea2;return this[_0x48a1c8(0x19c)][_0x48a1c8(0x198)](_0x16eb0c)?this[_0x48a1c8(0x19c)][_0x48a1c8(0x278)](_0x16eb0c)[_0x48a1c8(0x2a1)]:this[_0x48a1c8(0x27b)][_0x48a1c8(0x10a)](_0x57afe5(_0x40f786=>_0x40f786[_0x48a1c8(0x2ec)]===_0x16eb0c),_0x11ab1d(_0x3ebf73=>_0x3ebf73[_0x48a1c8(0x2a1)]));}['_init'](){const _0x400d44=_0xb4aea2;this[_0x400d44(0x2ad)]['getTypeOfUnitAdded$'](_0x1737bf[_0x400d44(0x12a)])[_0x400d44(0x10a)](_0x28b7e0(this['dispose$']))[_0x400d44(0x174)](async _0x2c8c7e=>{const _0x4ed0be=_0x400d44,_0x504d86=_0x2c8c7e[_0x4ed0be(0x312)](),_0x5f4ecf=await this[_0x4ed0be(0x2b5)](_0x504d86);this['_entityInit$'][_0x4ed0be(0x21b)](_0x5f4ecf),this[_0x4ed0be(0x19c)]['set'](_0x504d86,_0x5f4ecf);}),this[_0x400d44(0x2ad)]['getTypeOfUnitAdded$'](_0x1737bf[_0x400d44(0x14e)])['pipe'](_0x28b7e0(this['dispose$']))['pipe'](_0x57afe5(_0x56c448=>!_0x56c448[_0x400d44(0x312)]()[_0x400d44(0x271)]('__')))[_0x400d44(0x174)](async _0xcedd7a=>{const _0x32ba67=_0x400d44,_0x1ebd2a=_0xcedd7a[_0x32ba67(0x312)](),_0x32af82=await this[_0x32ba67(0x12f)](_0x1ebd2a);this['_entityInit$'][_0x32ba67(0x21b)](_0x32af82),this['_entities'][_0x32ba67(0x2c6)](_0x1ebd2a,_0x32af82);}),_0x4a95b8(this['_univerInstanceService'][_0x400d44(0x289)](_0x1737bf[_0x400d44(0x14e)]),this[_0x400d44(0x2ad)][_0x400d44(0x289)](_0x1737bf[_0x400d44(0x12a)]))[_0x400d44(0x10a)](_0x28b7e0(this[_0x400d44(0xfe)]))['subscribe'](_0x5c56db=>{const _0x3ad6fe=_0x400d44,_0x2bf3b4=_0x5c56db[_0x3ad6fe(0x312)](),_0x507aa3=this[_0x3ad6fe(0x19c)][_0x3ad6fe(0x278)](_0x2bf3b4);_0x507aa3&&(_0x507aa3[_0x3ad6fe(0x2c2)](),this[_0x3ad6fe(0x19c)][_0x3ad6fe(0x2dc)](_0x2bf3b4));});}async[_0xb4aea2(0x2b5)](_0x7dcd77){const _0x5efc23=_0xb4aea2,_0x218287=await this[_0x5efc23(0x217)][_0x5efc23(0x249)](_0x7dcd77),_0x1e1205=this['_injector'][_0x5efc23(0x2e2)](we,_0x7dcd77,_0x218287);return _0x1e1205[_0x5efc23(0x131)](),_0x1e1205;}async[_0xb4aea2(0x12f)](_0x128724){const _0x38d1ea=_0xb4aea2,_0x5b7f41=await this[_0x38d1ea(0x217)]['requireSession'](_0x128724),_0x130101=this['_injector'][_0x38d1ea(0x2e2)](Pe,_0x128724,_0x5b7f41);return _0x130101[_0x38d1ea(0x131)](),_0x130101;}};H=Hi([Ee(0x0,_0x503376),Ee(0x1,_0x230e5d(_0x3741a5)),Ee(0x2,_0x230e5d(_0x40bfae))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x1ff200,_0xe0aeb){const _0x5680e1=_0xb4aea2;let {radius:_0x14815b,width:_0x10b4ac,height:_0x49e8df}=_0xe0aeb;_0x14815b=_0x14815b!=null?_0x14815b:0x0,_0x10b4ac=_0x10b4ac!=null?_0x10b4ac:0x1e,_0x49e8df=_0x49e8df!=null?_0x49e8df:0x1e;let _0x228c76=0x0,_0x16932b=0x0,_0x2fc8b6=0x0;_0x228c76=_0x16932b=_0x2fc8b6=Math[_0x5680e1(0x165)](_0x14815b,_0x10b4ac/0x2,_0x49e8df/0x2),_0x1ff200[_0x5680e1(0x226)](),_0x1ff200['moveTo'](_0x228c76,0x0),_0x1ff200[_0x5680e1(0x221)](_0x10b4ac-_0x16932b,0x0),_0x1ff200[_0x5680e1(0x237)](_0x10b4ac-_0x16932b,_0x16932b,_0x16932b,Math['PI']*0x3/0x2,0x0,!0x1),_0x1ff200[_0x5680e1(0x221)](_0x10b4ac,_0x49e8df-_0x2fc8b6),_0x1ff200[_0x5680e1(0x237)](_0x10b4ac-_0x2fc8b6,_0x49e8df-_0x2fc8b6,_0x2fc8b6,0x0,Math['PI']/0x2,!0x1),_0x1ff200[_0x5680e1(0x221)](0x0,_0x49e8df),_0x1ff200['lineTo'](0x0,_0x228c76),_0x1ff200[_0x5680e1(0x237)](_0x228c76,_0x228c76,_0x228c76,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1ff200[_0x5680e1(0x30e)](),_0xe0aeb[_0x5680e1(0x154)]&&(_0x1ff200['save'](),_0x1ff200[_0x5680e1(0x2df)]=_0xe0aeb[_0x5680e1(0x154)],_0xe0aeb[_0x5680e1(0x27a)]==='evenodd'?_0x1ff200[_0x5680e1(0x154)](_0x5680e1(0x1e8)):_0x1ff200[_0x5680e1(0x154)](),_0x1ff200[_0x5680e1(0x15e)]());}class me extends _0x77342a{constructor(_0x1f00e7,_0x4a661a){const _0x3a48d7=_0xb4aea2;super(_0x1f00e7,_0x4a661a),l(this,_0x3a48d7(0x2d1)),l(this,_0x3a48d7(0x242)),(this['color']=_0x4a661a==null?void 0x0:_0x4a661a['color'],this[_0x3a48d7(0x242)]=_0x4a661a==null?void 0x0:_0x4a661a['text']);}static[_0xb4aea2(0x28a)](_0x3d2d6c,_0x13f845){const _0x5d3912=_0xb4aea2,{text:_0x27f73e,color:_0x3e4f92}=_0x13f845;_0x3d2d6c[_0x5d3912(0x13b)](),_0x3d2d6c[_0x5d3912(0x24e)]=_0x5d3912(0x2f0);const _0xedf89b=_0x3d2d6c[_0x5d3912(0x27d)](_0x27f73e)[_0x5d3912(0x2f3)],_0x27fbc1=Math['min'](_0xedf89b+0x2*pe,it);Wi(_0x3d2d6c,{'height':Q,'radius':0x4,'width':_0x27fbc1,'fill':_0x3e4f92}),_0x3d2d6c[_0x5d3912(0x2df)]=_0x5d3912(0x297);const _0x1a3232=pe,_0x5b44cf=Q-Yi,_0x25e138=it-0x2*pe;if(_0xedf89b>_0x25e138){let _0x7a1721='',_0x498a57=0x0;for(const _0x38498f of _0x27f73e){const _0x347097=_0x3d2d6c['measureText'](_0x38498f)[_0x5d3912(0x2f3)];if(_0x498a57+_0x347097<=_0x25e138-_0x3d2d6c[_0x5d3912(0x27d)](_0x5d3912(0x2f2))[_0x5d3912(0x2f3)])_0x7a1721+=_0x38498f,_0x498a57+=_0x347097;else{_0x7a1721+='...';break;}}_0x3d2d6c[_0x5d3912(0x106)](_0x7a1721,_0x1a3232,_0x5b44cf);}else _0x3d2d6c['fillText'](_0x27f73e,_0x1a3232,_0x5b44cf);_0x3d2d6c[_0x5d3912(0x15e)]();}['_draw'](_0x55bff2){const _0xfaa8a7=_0xb4aea2;me[_0xfaa8a7(0x28a)](_0x55bff2,this);}}const Oe='collab-text-anchor-',Vi=_0xb4aea2(0x22f),ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0xb4aea2(0x19d);class nt{constructor(_0x168281,_0x3097eb,_0x5404cc,_0x1344bf){const _0x4b5360=_0xb4aea2;l(this,_0x4b5360(0x284),[]),l(this,_0x4b5360(0x115),null),l(this,_0x4b5360(0x26a),null),l(this,_0x4b5360(0x146),null),l(this,_0x4b5360(0x151),null),l(this,'_eventUnsubscribe',null),(this[_0x4b5360(0x318)]=_0x168281,this[_0x4b5360(0x247)]=_0x3097eb,this[_0x4b5360(0x1dd)]=_0x5404cc,this[_0x4b5360(0x29f)]=_0x1344bf,this[_0x4b5360(0x144)]());}set['_hover'](_0x3cfdc2){const _0x1698df=_0xb4aea2;_0x3cfdc2?(this[_0x1698df(0x146)]&&this[_0x1698df(0x146)][_0x1698df(0x1ba)](),this['_textBubble']&&this[_0x1698df(0x26a)][_0x1698df(0x212)]()):(this['_anchorDot']&&this[_0x1698df(0x146)]['show'](),this[_0x1698df(0x26a)]&&this[_0x1698df(0x26a)][_0x1698df(0x1ba)]());}['dispose'](){const _0x555cfa=_0xb4aea2;for(const _0x4999ce of this[_0x555cfa(0x284)])_0x4999ce[_0x555cfa(0x2c2)]();this['_textBubble']&&this[_0x555cfa(0x26a)][_0x555cfa(0x2c2)](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this['_anchor']&&this['_anchor']['dispose'](),this[_0x555cfa(0x31b)]&&this[_0x555cfa(0x31b)]();}[_0xb4aea2(0x144)](){const _0x179bac=_0xb4aea2;var _0x30bf90;const {_docSkeleton:_0x35646c,_document:_0x1ce3d2}=this,{color:_0x18dd6c,name:_0x1e492e,ranges:_0x3499ef}=this[_0x179bac(0x318)],_0x27d46a=_0x1ce3d2['getOffsetConfig'](),{docsLeft:_0x19f80c,docsTop:_0xa9a24b}=_0x27d46a,_0x3b1614=new _0x1d0962(_0x27d46a,_0x35646c);for(const {startOffset:_0x812df9,endOffset:_0x12ffb3,rangeType:_0x749749,segmentId:_0x23a317,segmentPage:_0x1f8ecc,collapsed:_0xf34865,isActive:_0x38da65}of _0x3499ef){const _0x4a2b95=_0x35646c[_0x179bac(0x1db)](_0x812df9,!0x0,_0x23a317,_0x1f8ecc);let _0x5c044e=_0x35646c[_0x179bac(0x1db)](_0x12ffb3,!0x0,_0x23a317,_0x1f8ecc);if(_0x5c044e==null&&(_0x5c044e=_0x35646c[_0x179bac(0x1db)](_0x12ffb3-0x1,!0x1,_0x23a317,_0x1f8ecc)),_0x38da65){const {contentBoxPointGroup:_0x1e3c64}=_0x3b1614[_0x179bac(0x294)](_0x5c044e,_0x5c044e);if(_0x1e3c64[_0x179bac(0x1f6)]===0x0)continue;this[_0x179bac(0x29a)](_0x18dd6c,_0x1e3c64,_0x19f80c,_0xa9a24b,_0x1e492e),this[_0x179bac(0x31b)]=this[_0x179bac(0x214)]();}if(_0x4a2b95&&_0x5c044e){if(_0x749749===_0x16f6b9[_0x179bac(0x313)]){const _0x2fe4d4=new _0x1210ba(_0x27d46a,_0x35646c),{pointGroup:_0x4b8550}=(_0x30bf90=_0x2fe4d4[_0x179bac(0x294)](_0x4a2b95,_0x5c044e))!=null?_0x30bf90:{};if(_0x4b8550==null||_0x4b8550[_0x179bac(0x1f6)]===0x0)continue;this[_0x179bac(0x103)](_0x18dd6c,_0x4b8550,_0x19f80c,_0xa9a24b);}else{if(!_0xf34865){const {borderBoxPointGroup:_0x39890d}=_0x3b1614['getRangePointData'](_0x4a2b95,_0x5c044e);if(_0x39890d['length']===0x0)continue;this[_0x179bac(0x1bb)](_0x18dd6c,_0x39890d,_0x19f80c,_0xa9a24b);}}}}}[_0xb4aea2(0x29a)](_0x2e6670,_0x5ba8b0,_0x31cff8,_0x397e66,_0x2e8e9){const _0x276ff3=_0xb4aea2,_0x4ce6c8=this['_getAnchorBounding'](_0x5ba8b0),{left:_0x438ca9,top:_0x5331b8,height:_0x767bf3}=_0x4ce6c8,_0x18576f=this[_0x276ff3(0x231)](),_0x1fa915=Gi/_0x18576f,_0x14ed4a=new _0x3fc9b5(Oe+_0x37b68e(z),{'left':_0x438ca9+_0x31cff8-_0x1fa915,'top':_0x5331b8+_0x397e66,'height':_0x767bf3,'width':Xi,'fill':_0x2e6670||_0x302822(_0x2778c0[_0x276ff3(0x1bf)],0x0),'strokeWidth':_0x1fa915,'stroke':Ki,'evented':!0x0});this[_0x276ff3(0x115)]=_0x14ed4a,this['_scene']['addObject'](_0x14ed4a,_0x17967a);const _0x113cf9=new _0x3fc9b5(Oe+_0x37b68e(z),{'left':_0x438ca9+_0x31cff8-_0x1fa915,'top':_0x5331b8+_0x397e66-Te/0x2,'height':Te,'width':Te,'fill':_0x2e6670||_0x302822(_0x2778c0['black'],0x0),'strokeWidth':0x0,'stroke':_0x2e6670||_0x302822(_0x2778c0[_0x276ff3(0x1bf)],0x0),'evented':!0x1});this[_0x276ff3(0x146)]=_0x113cf9,this[_0x276ff3(0x247)][_0x276ff3(0x1ea)](_0x113cf9,_0x17967a);const _0x977c9f=new me(Oe+_0x37b68e(z),{'left':_0x438ca9+_0x31cff8-_0x1fa915,'top':_0x5331b8+_0x397e66-Q,'text':_0x2e8e9,'color':_0x2e6670});this[_0x276ff3(0x26a)]=_0x977c9f,this[_0x276ff3(0x247)][_0x276ff3(0x1ea)](_0x977c9f,_0x17967a),this[_0x276ff3(0x182)]=!0x1;}[_0xb4aea2(0x214)](){const _0x2ae3f2=_0xb4aea2,_0x31fcda=this[_0x2ae3f2(0x115)][_0x2ae3f2(0x28e)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0xd1cab9=this[_0x2ae3f2(0x115)][_0x2ae3f2(0x1e4)][_0x2ae3f2(0x293)](()=>{const _0x4c2229=_0x2ae3f2;this[_0x4c2229(0x151)]&&clearTimeout(this[_0x4c2229(0x151)]),this['_hideTimer']=setTimeout(()=>{const _0x50ed77=_0x4c2229;this[_0x50ed77(0x182)]=!0x1;},0x7d0);});return()=>{const _0xa5cd07=_0x2ae3f2;_0x31fcda[_0xa5cd07(0x24a)](),_0xd1cab9['unsubscribe']();};}[_0xb4aea2(0x1bb)](_0x59f91b,_0x743ffe,_0x183867,_0x3ce38b){const _0xc817ef=_0xb4aea2,_0x4c84a5=new _0x51d9c7(_0x59f91b)[_0xc817ef(0x213)](0.2)[_0xc817ef(0x194)](),_0x500d36=new _0x4d7b30(Vi+_0x37b68e(z),{'pointsGroup':_0x743ffe,'fill':_0x4c84a5||_0x302822(_0x2778c0[_0xc817ef(0x1bf)],0.2),'left':_0x183867,'top':_0x3ce38b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc817ef(0x284)]['push'](_0x500d36),this[_0xc817ef(0x247)][_0xc817ef(0x1ea)](_0x500d36,_0x17967a);}['_drawRectRange'](_0x3a711e,_0x545538,_0x133f9b,_0x2bb4b5){const _0x8710ad=_0xb4aea2,_0x21bff0=new _0x51d9c7(_0x3a711e)[_0x8710ad(0x213)](0.2)[_0x8710ad(0x194)](),_0x4a0d5f=new _0x4d7b30(ji+_0x37b68e(z),{'pointsGroup':_0x545538,'fill':_0x21bff0||_0x302822(_0x2778c0['black'],0.2),'left':_0x133f9b,'top':_0x2bb4b5,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x8710ad(0x25f)](_0x4a0d5f),this[_0x8710ad(0x247)]['addObject'](_0x4a0d5f,_0x17967a);}[_0xb4aea2(0x2e4)](_0x4754c6){const _0x210186=_0x4754c6[0x0],_0x53adc6=_0x210186[0x0],_0x1ad1ec=_0x210186[0x2],{x:_0x59d694,y:_0x4490c7}=_0x53adc6,{x:_0x39f1aa,y:_0x56a49d}=_0x1ad1ec;return{'left':_0x59d694,'top':_0x4490c7,'width':_0x39f1aa-_0x59d694,'height':_0x56a49d-_0x4490c7};}[_0xb4aea2(0x231)](){const _0x1b9d96=_0xb4aea2,{scaleX:_0x3bdb61,scaleY:_0x422e4d}=this[_0x1b9d96(0x247)]['getAncestorScale']();return Math['max'](_0x3bdb61,_0x422e4d);}}var zi=Object[_0xb4aea2(0x1ff)],Ji=(_0x3909a2,_0x8431e4,_0x48027b,_0x58dbb3)=>{const _0x3642e3=_0xb4aea2;for(var _0x25057f=_0x58dbb3>0x1?void 0x0:_0x58dbb3?zi(_0x8431e4,_0x48027b):_0x8431e4,_0x2ed41f=_0x3909a2[_0x3642e3(0x1f6)]-0x1,_0x47bf60;_0x2ed41f>=0x0;_0x2ed41f--)(_0x47bf60=_0x3909a2[_0x2ed41f])&&(_0x25057f=_0x47bf60(_0x25057f)||_0x25057f);return _0x25057f;},ie=(_0x2b0691,_0x227a0d)=>(_0x2f096b,_0x224fee)=>_0x227a0d(_0x2f096b,_0x224fee,_0x2b0691);let ye=class extends _0xcddefe{constructor(_0x5265c6,_0x2f9e73,_0x157203,_0x27d77e,_0x473d84){const _0x4e0b26=_0xb4aea2;super(),l(this,_0x4e0b26(0x286),[]),l(this,_0x4e0b26(0x129),[]),(this[_0x4e0b26(0x130)]=_0x5265c6,this[_0x4e0b26(0x18d)]=_0x2f9e73,this[_0x4e0b26(0x2e1)]=_0x157203,this[_0x4e0b26(0x102)]=_0x27d77e,this[_0x4e0b26(0x1d2)]=_0x473d84,this['_init']());}[_0xb4aea2(0x23a)](){const _0x6ad43e=_0xb4aea2,_0x19aa19=this['_context'][_0x6ad43e(0x1c7)],_0x71c3c0=this[_0x6ad43e(0x18d)];this[_0x6ad43e(0x2b4)](_0x566cce([this['_collabCursorController'][_0x6ad43e(0x171)](_0x19aa19),this[_0x6ad43e(0x1d2)][_0x6ad43e(0x1f7)]])[_0x6ad43e(0x10a)](_0x1f3fb4(([_0x23bbe6,_0x4c9c02])=>({'skeleton':_0x71c3c0[_0x6ad43e(0x321)](),'cursors':[..._0x23bbe6[_0x6ad43e(0x117)]()]['flatMap'](_0x51a7a8=>({..._0x51a7a8,'color':this[_0x6ad43e(0x1d2)][_0x6ad43e(0x1de)](_0x51a7a8['color'])}))})))[_0x6ad43e(0x174)](_0x2276dc=>{const _0x18af91=_0x6ad43e;if(this['_removeCollabCursors'](),_0x2276dc){const {skeleton:_0x1b2238,cursors:_0x56d884}=_0x2276dc;this[_0x18af91(0x20b)](_0x1b2238,_0x56d884);}})),this[_0x6ad43e(0x17b)](),this[_0x6ad43e(0x1b2)]();}[_0xb4aea2(0x20b)](_0x1d4234,_0x2edbc6){const _0x3dbed3=_0xb4aea2,{scene:_0x1fe67c,mainComponent:_0x1af3dd}=this[_0x3dbed3(0x130)],_0x1f081b=_0x2edbc6[_0x3dbed3(0x187)](_0x3f8b71=>new nt(_0x3f8b71,_0x1fe67c,_0x1d4234,_0x1af3dd));this[_0x3dbed3(0x286)]=_0x1f081b,this[_0x3dbed3(0x129)]=_0x2edbc6;}[_0xb4aea2(0x191)](){const _0x437626=_0xb4aea2;this['_removeCollabCursors']();const {scene:_0x302ccd,mainComponent:_0x587875}=this[_0x437626(0x130)],_0x45da9c=this[_0x437626(0x18d)][_0x437626(0x321)](),_0x256bb7=this[_0x437626(0x129)][_0x437626(0x187)](_0x52650c=>new nt(_0x52650c,_0x302ccd,_0x45da9c,_0x587875));this[_0x437626(0x286)]=_0x256bb7;}[_0xb4aea2(0x1f2)](){const _0x309b56=_0xb4aea2;this['_cursorShapes'][_0x309b56(0x10b)](_0x158dcd=>_0x158dcd[_0x309b56(0x2c2)]()),this[_0x309b56(0x286)]=[];}[_0xb4aea2(0x1b2)](){const _0x288fed=_0xb4aea2,_0x120e2e=[_0x33b397['id']];this[_0x288fed(0x2b4)](this[_0x288fed(0x102)][_0x288fed(0x259)](_0x4dd7e3=>{const _0xc10fe6=_0x288fed;_0x120e2e[_0xc10fe6(0x23b)](_0x4dd7e3['id'])&&_0x4dd7e3['params'][_0xc10fe6(0x1c7)]===this[_0xc10fe6(0x130)][_0xc10fe6(0x1c7)]&&this[_0xc10fe6(0x191)]();}));}['_initResize'](){const _0x51fe4d=_0xb4aea2;this[_0x51fe4d(0x2b4)](_0x41555b(this[_0x51fe4d(0x130)][_0x51fe4d(0x11d)][_0x51fe4d(0x149)])[_0x51fe4d(0x10a)](_0x357d51(_0x6355c8=>_0x6355c8[_0x51fe4d(0x2ed)]===_0x27b111[_0x51fe4d(0x2a4)]),_0x9d77c6(0x10))['subscribe'](()=>{const _0x43c94d=_0x51fe4d;this[_0x43c94d(0x191)]();}));}};ye=Ji([ie(0x1,_0x230e5d(_0x139487)),ie(0x2,_0x230e5d(H)),ie(0x3,_0x4494ed),ie(0x4,_0x230e5d(_0x56a377))],ye);const Zi=0x1,Qi=1.5;class qi extends _0x77342a{constructor(_0x3152f8,_0x1fbd7f){const _0x28082c=_0xb4aea2;super(_0x3152f8,_0x1fbd7f),l(this,_0x28082c(0x10c)),l(this,_0x28082c(0x31d),!0x1),l(this,'_range'),l(this,_0x28082c(0x1d0),''),l(this,_0x28082c(0x24b),'top'),l(this,_0x28082c(0x1f8)),(_0x1fbd7f&&this['setShapeProps'](_0x1fbd7f),this[_0x28082c(0x28e)][_0x28082c(0x293)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x28082c(0x293)](()=>this[_0x28082c(0xfc)]({'hovered':!0x1})));}[_0xb4aea2(0xfc)](_0x444200){const _0xd7ab42=_0xb4aea2;var _0x5a63f6,_0xb8e9d5,_0xb2031f,_0x566e55,_0x480a03,_0x47d1e7;this[_0xd7ab42(0x10c)]=(_0x5a63f6=_0x444200['color'])!=null?_0x5a63f6:this[_0xd7ab42(0x10c)],this['_hovered']=(_0xb8e9d5=_0x444200['hovered'])!=null?_0xb8e9d5:this[_0xd7ab42(0x31d)],this['_range']=(_0xb2031f=_0x444200[_0xd7ab42(0x1ab)])!=null?_0xb2031f:this[_0xd7ab42(0x246)],this[_0xd7ab42(0x1d0)]=(_0x566e55=_0x444200[_0xd7ab42(0x1b1)])!=null?_0x566e55:this[_0xd7ab42(0x1d0)],this[_0xd7ab42(0x24b)]=(_0x480a03=_0x444200['labelPosition'])!=null?_0x480a03:this[_0xd7ab42(0x24b)],this[_0xd7ab42(0x1f8)]=(_0x47d1e7=_0x444200[_0xd7ab42(0x15c)])!=null?_0x47d1e7:this['_backgroundColor'],this[_0xd7ab42(0x30a)]({'width':_0x444200['width'],'height':_0x444200[_0xd7ab42(0x1ee)]});}[_0xb4aea2(0x2a3)](_0x4c9f06){const _0x2dfbc5=_0xb4aea2,{row:_0x563450,column:_0x1df10b}=_0x4c9f06;if(_0x563450>=this[_0x2dfbc5(0x246)][_0x2dfbc5(0x299)]&&_0x563450<=this[_0x2dfbc5(0x246)][_0x2dfbc5(0x26c)]&&_0x1df10b>=this[_0x2dfbc5(0x246)][_0x2dfbc5(0x1b6)]&&_0x1df10b<=this['_range'][_0x2dfbc5(0x1e9)]){this[_0x2dfbc5(0xfc)]({'hovered':!0x0});return;}this[_0x2dfbc5(0xfc)]({'hovered':!0x1});}['triggerDblclick'](_0x558d0c){return!0x1;}[_0xb4aea2(0x25e)](_0x1cf12d){const _0x8494af=_0xb4aea2;_0x3fc9b5[_0x8494af(0x28a)](_0x1cf12d,{'width':this[_0x8494af(0x2f3)],'height':this[_0x8494af(0x1ee)],'strokeWidth':Qi,'stroke':this[_0x8494af(0x10c)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x8494af(0x31d)]&&(_0x1cf12d[_0x8494af(0x13b)](),_0x1cf12d[_0x8494af(0x27f)](0x1,0x0,0x0,0x1,this[_0x8494af(0x2f3)],this['_labelPosition']===_0x8494af(0x280)?0x0:-Q),me[_0x8494af(0x28a)](_0x1cf12d,{'text':this[_0x8494af(0x1d0)],'color':this[_0x8494af(0x10c)]}),_0x1cf12d[_0x8494af(0x15e)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0x209f70,_0x56a491,_0x535cbc,_0x4612c9)=>{const _0x55a6b2=_0xb4aea2;for(var _0x4baeef=_0x4612c9>0x1?void 0x0:_0x4612c9?en(_0x56a491,_0x535cbc):_0x56a491,_0x43d7c6=_0x209f70[_0x55a6b2(0x1f6)]-0x1,_0x3b50b1;_0x43d7c6>=0x0;_0x43d7c6--)(_0x3b50b1=_0x209f70[_0x43d7c6])&&(_0x4baeef=_0x3b50b1(_0x4baeef)||_0x4baeef);return _0x4baeef;},Ce=(_0x28efe7,_0x16b27e)=>(_0x3aca3d,_0x117a01)=>_0x16b27e(_0x3aca3d,_0x117a01,_0x28efe7);const sn=0x1389;function _0x1339(){const _0x351b62=['substring','green.600','collab-client.tooltip.reconnect','getOwnPropertyDescriptor','focused$','makeDirty','mask','currentUsage','purple.300','CHANGESET_REVISION_CONFILICT','REDEMPTION_USER_REDEEM_TIMES_EXCEED','SUBMIT_CHANGESET_TIMEOUT','sessionStatus$','syncEditingCollabCursor','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_updateCollabCursors','source','redoState','_releaseCalculationLimit','stringify','YUUMI_ALL_TABLES_IS_INVALID','/run/','show','setAlpha','_handleHover','assign','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collabSessionService','_config','application/json','_selfUnitIDs','next','CURRENT_STATUS_CANNOT_OPERATE','invokeId','onStarting','children','getViewport','lineTo','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleSaving','replaceDocRanges','AWAITING','beginPath','_revisionService','parse','_initEntityListener','_status$','APPLY_PERMISSION_DENIED','releaseFormulaLimitUrl','permission.title','YUUMI_SUBSCRIPTION_NOT_FOUND','collab-text-range-','getDocRanges','_getScale','FromArray','parseInt','0\x200\x2017\x2016','debug','OTHER_CLIENTS_EDITING','arc','_updateSubUnitFromURLParams','getSheetBySheetId','_init','includes','UniverIcon','InsertColCommandId','attrs','INVITE_CODE_HAS_BEEN_UES','symbol','href','text','APPLY_DUPLICATED','_roomMembers$','collaboration-client-ui.config','_range','_scene','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','requireSession','unsubscribe','_labelPosition','setConfig','INVITE_CODE_REQUIRED','font','editingUnit','current','VIEW_MAIN','path','displayName','_beforeCloseService','disableLocalCache','_setFormulaLimitStatus','cursorInfo','_saveTaskMap','onCommandExecuted','_onCursorUpdate','shift','getVpScrollXYInfoByPosToVp','memberID','_draw','push','random','0\x200\x2016\x2016','UNRECOGNIZED','_registerRenderDependencies','collabStatus.conflict','_uiPartsService','collabCursorState$','_toggleOnline','selections','HEADER_MENU','_textBubble','ranges','endRow','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_NEED_BILLING_ADDRESS','_getSaveTimeout','USER_NOT_FOUND','startsWith','MUTATION','wsSessionTicketUrl','registerBeforeClose','split','_docTransformIMECacheService','Success','get','_docClipboardService','fillRule','_entityInit$','enableLocalCache','measureText','DeleteRangeMoveLeftCommandId','transform','bottom','FETCH_MISS','setParam','formula.calculation.waiting','_shapes','registerComponent','_cursorShapes','updateOfflineData','all','getTypeOfUnitDisposed$','drawWith','NOT_FOUND','_checkAndWaitForCalculationPermission','MOBILE_VERIFY_CODE_MISMATCH','onPointerEnter$','LICENSE_IMPORT_SIZE_EXCEEDED','getFocusedUnit','APPLY_REJECT','UPDATE_CURSOR','subscribeEvent','getRangePointData','search','storage','#FFF','defs','startRow','_drawAnchor','deepClone','EMAIL_VERIFY_CODE_MISMATCH','UNDEFINED','startFormulaLimitUrl','_document','_cursorInfo$','cursorInfo$','add','onMouseMove','resize','DATA_SOURCE_TOO_LARGE','key','setStateCache','loadOfflineData','_pollingInterval','url(#on-line-icon_clip0_910_349)','YUUMI_ASYNCIO_CANCELLED','Unknown\x20user','_univerInstanceService','_httpService','getUndoRedoMutationParamsCache','registerRefRange','_assignedColors','_getSheetObject','setUndoRedoMutationParamsCache','disposeWithMe','_startSheetCollabCursor','mutations','NOT_COLLAB','params','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','_clearPolling','doc.mutation.rich-text-editing','getCurrent','_hasFormulaInDirtyRanges','MoveRangeCommandId','onPointerMove$','_setupSubUnitSync','getConfig','dispose','INVALID_INVITE_CODE','_transformService','_configService','set','ALREADY_EXISTS','stage','session.will-retry','transformSelections','now','MOBILE_HAS_BEEN_BOUND','_updateLocalCursor','_heartbeatTimer','ENTITLE_INSUFFICIENT_QUOTA','INVALID_ARGUMENT','color','saveImage','_unitOnClients','isActive','[RemoteUniscriptService]:\x20no\x20focused\x20unit','executeCommand','_localStorageService','_lastPointer','clearInterval','saveOfflineData','REDEMPTION_USER_NOT_ELIGIBLE','delete','_cachedData','status$','fillStyle','div','_collabCursorController','createInstance','418680aoEclX','_getAnchorBounding','string','sheetID','_disabled','_docTransformStateCacheService','svg','location','ERROR_AGAIN','unitID','type','roomMembers','OFFLINE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','OnLineIcon','...','width','_online','transformRemoteChangeset','InsertRowCommandId','runId','use','_doCreateSocket','296LHqdsv','REDEMPTION_CODE_INACTIVE','_sheetSkeletonManagerService','APPLY_NON_SEQUENTIAL_REVISION','getStateCache','_urlService','YUUMI_RATE_OVER_LIMIT','203092pZYSkc','_handleEvent','1em','contains','unshift','LOGIN_TOKEN_PROCESSING_FAILED','_taskIds','setInterval','_handleHeartbeatEvent','transformByState','_getMergeRange','functionsExecutedState','_checkCalculationAvailable','closePath','UNAUTHENTICATED','session.collaboration-timeout','_getSessionTicket','getUnitId','RECT','_createSocketURL','setItem','transformStateCache','urlChange$','_cursor','replaceState','colorChannel1','_eventUnsubscribe','_collabCursorState$','_hovered','setActiveRange','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','createSocket','getSkeleton','pluginName','ticket','tag','_initStatusListener','getRelativeToViewportCoord','PAYMENT_CHANNEL_NOT_SUPPORT','column','unit','idSuffix','red.300','3841770AuvCjQ','setShapeProps','subunit','dispose$','PY_RUNTIME_SCRIPT_ERROR','pushState','39231fdVCSl','_commandService','_drawRectRange','61044RZnQZR','undoState','fillText','_colorIndex','11MUcIpD','popstate','pipe','forEach','_color','_localeService','toString','AWAITING_WITH_PENDING','YUUMI_UNABLE_LOAD_URL','_clearOtherTimers','_id','_setupBeforeClosingHandler','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_anchor','_getFormulaLimitStatus','values','_instanceService','REDEMPTION_CODE_HAS_BEEN_CREATED','addObjects','history','textRanges','engine','white','getUnitStatus$','Failed','origin','transformMutationsWithChangeset','_removeClearOtherTimer','LICENSE_MAX_UNITS_EXCEEDED','INVITE_CODE_ALREADY_BOUND','http://www.w3.org/2000/svg','_updateURLWithCurrentState','error','_cursors','UNIVER_SHEET','on-line-icon_clip0_910_349','_transformHistoryAndStateStack','_maxFormulaLimit','_initEvent','_startDocCollabCursor','_context','init','getformulaLimitStatusUrl','_transformUndoRedoStack','_scheduleHeartbeat','M0\x200H16V16H0z','_initDependencies','xlink:href','USER_IS_ANONYMOUS','univerjs-icon\x20univerjs-icon-','result','save','_onCursorDelete','transformIMECache','TEXT','START_CALCULATION','YUUMI_AI_RUN_FAILED','getRenderById','_collaborationController','event$','_render','sessionTicket','_anchorDot','disposeUnit','from','onTransformChange$','asObservable','_saveCache','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','size','UNIVER_DOC','getSheetId','CONNECTOR_DATA_TOO_LARGE','_hideTimer','getUnhiddenWorksheets','defineProperty','fill','saveTaskMap','_unitStatus','replace','body','REDEMPTION_CODE_NOT_STARTED','_logService','_lastResponseTimestamp','backgroundColor','NO_OTHER_CLIENTS_EDITING','restore','[CollaborationDataLoaderController]','selection','getItem','_registerDependencies','_imageIoService','SOCKET_FAILED_RETRY','min','uni.network.url-service','blue.400','loadUnit','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collabStatus.syncing','YUUMI_NO_CUBOID_FOR_QUESTION','permission.content','_docSyncEditingCollabCursorService','round','_dataLoaderService','roomMembers$','getCollabCursors$','_handleLeaveEvent','_showGuardMessage','subscribe','row','complete','_memberService','ENSURE_SNAPSHOT_EXECUTION','_toggleOffline','post','_initResize','getParam','TOO_MANY_REQUESTS','data','SNAPSHOT_HAS_BEEN_REMOVED','WECHAT_HAS_BEEN_BOUND','getUniverSheetInstance','_hover','_colorAssignService','LOGIN_FAILED','activeSheet$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','map','m1Prime','on-line-icon','collabStatus.offline','imageSourceType','USER_NOT_INVITED_CODE','_docSkeletonManagerService','_localCacheService','exhaustSavingTask','REDEMPTION_INVALID_CODE','_refreshCollabCursors','isArray','112IDEwwn','toRgbString','_syncEditingCollabCursorService','_renderManagerService','_send','has','_ensureSubject','APPLY_REVISION_CONFILICT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_entities','rgba(255,\x20255,\x20255,\x200.01)','transformMutation','937717oDqScS','entries','getActiveSheet','Warning','then','OTHER_CLIENT_EDITING','reconnect','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_session','_messageService','SNAPSHOT_INVALID_SNAPSHOT','_refRangeService','range','EMAIL_HAS_BEEN_BOUND','JOIN_ROOM_FAILED','YUUMI_CONNECTOR_URL_NOT_FOUND','docStateChange$','_transformPreviousActiveRange','name','_initCommandExecutedListener','COMPLETION_FINISHED','actions','_scheduleClearOtherTimer','startColumn','LICENSE_EXPORT_SIZE_EXCEEDED','formula.calculation.started','PERMISSION_DENIED','hide','_drawTextRange','_collaborationUIEventService','stageInfo','entityInit$','black','getCellPositionByOffset','INTERNAL_ERROR','ACTIVE_UNIT_EVENT_CHANNEL','_handleJoinEvent','collaboration.closeRoom','_docStateChangeManagerService','_initStatusComponent','unitId','code','getMember','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_notificationService','setTimeout','Error','getMemberID','getCellMatrix','_name','getCurrentUnitForType','_themeService','dirtyRanges','288432rpXUby','send','clearTimeout','?taskId=','limitInfo','_injector','getValue','findNodePositionByCharIndex','with','_docSkeleton','getColorFromTheme','55ojSfab','url(#$1','CONFLICT','_initCommandInterceptor','defIds','onPointerLeave$','none','sheetId','currentSkeleton$','evenodd','endColumn','addObject','getActiveRange','ENTITLE_REPORT_LIMIT_EXCEED','USERS_LEAVE','height','searchParams','_startCalculationLimit','newValue','_removeCollabCursors','_currentUsage','whenReady','DeleteRangeMoveUpCommandId','length','currentTheme$','_backgroundColor','clipPath','m2Prime','assignAColorForMemberID'];_0x1339=function(){return _0x351b62;};return _0x1339();}let $e=class extends _0xcddefe{constructor(_0x5ce413,_0xa068f4,_0x42865f,_0x190c82){const _0x180a45=_0xb4aea2;super(),l(this,_0x180a45(0x129),new Set()),l(this,_0x180a45(0x2d8),null),(this['_context']=_0x5ce413,this[_0x180a45(0x2fc)]=_0xa068f4,this['_collabCursorController']=_0x42865f,this[_0x180a45(0x1d2)]=_0x190c82,this['_init']());}[_0xb4aea2(0x23a)](){const _0x596b0e=_0xb4aea2;this[_0x596b0e(0x2fc)]['currentSkeleton$'][_0x596b0e(0x10a)](_0x594f12(this['dispose$']),_0x36561e(_0xfab821=>{const _0x19268a=_0x596b0e;if(_0xfab821){const _0x5312cd=_0xfab821[_0x19268a(0x1e6)];return _0x566cce(this[_0x19268a(0x2e1)]['getCollabCursors$'](this[_0x19268a(0x130)]['unitId']),this[_0x19268a(0x1d2)][_0x19268a(0x1f7)])[_0x19268a(0x10a)](_0x1f3fb4(([_0x304ea6,_0xda90ec])=>{const _0x26c4bb=_0x19268a,_0x2b5384=new Map();return _0x304ea6[_0x26c4bb(0x10b)]((_0x1aca1f,_0x11e01e)=>{const _0x385a43=_0x26c4bb;if(_0x1aca1f[_0x385a43(0x2e6)]===_0x5312cd){const _0x304a4e={..._0x1aca1f};_0x304a4e[_0x385a43(0x2d1)]=this[_0x385a43(0x1d2)][_0x385a43(0x1de)](_0x1aca1f[_0x385a43(0x2d1)]),_0x2b5384[_0x385a43(0x2c6)](_0x11e01e,_0x304a4e);}}),{'skeleton':_0xfab821,'cursors':_0x2b5384};}));}return _0x4e2fc3({'skeleton':null,'cursors':new Map()});}))[_0x596b0e(0x174)](({skeleton:_0xb6227d,cursors:_0x2a3d29})=>{const _0x2f3678=_0x596b0e;this[_0x2f3678(0x1f2)](),_0xb6227d&&this[_0x2f3678(0x20b)](_0xb6227d,_0x2a3d29);}),this[_0x596b0e(0x2fc)][_0x596b0e(0x1e7)]['subscribe'](_0x39899b=>{const _0x616037=_0x596b0e;if(_0x39899b==null)return;const {skeleton:_0x411ba3}=_0x39899b,{scene:_0x1ef32c}=this['_context'];_0x1ef32c[_0x616037(0x2bf)][_0x616037(0x293)](_0x15b90a(_0x1c5bb6=>{const _0x13d8a=_0x616037;var _0x10ab69,_0xd245a2;const {offsetX:_0xb638fd,offsetY:_0x411639}=_0x1c5bb6,{x:_0x42cb10,y:_0x4f10c8}=_0x1ef32c[_0x13d8a(0xf5)](_0x516980[_0x13d8a(0x232)]([_0xb638fd,_0x411639])),{scaleX:_0x7cf09e,scaleY:_0x133784}=_0x1ef32c['getAncestorScale'](),_0x46e1c3=_0x1ef32c[_0x13d8a(0x220)](_0x2543b3[_0x13d8a(0x251)]),_0x11de97=_0x1ef32c[_0x13d8a(0x25c)](_0x516980[_0x13d8a(0x232)]([_0x42cb10,_0x4f10c8]),_0x46e1c3),_0x493ac8=_0x411ba3[_0x13d8a(0x1c0)](_0xb638fd,_0x411639,_0x7cf09e,_0x133784,_0x11de97);((_0x10ab69=this[_0x13d8a(0x2d8)])==null?void 0x0:_0x10ab69[_0x13d8a(0xf7)])===_0x493ac8[_0x13d8a(0xf7)]&&((_0xd245a2=this['_lastPointer'])==null?void 0x0:_0xd245a2[_0x13d8a(0x175)])===_0x493ac8[_0x13d8a(0x175)]||this[_0x13d8a(0x129)][_0x13d8a(0x10b)](_0x20adec=>{const _0x27a271=_0x13d8a;_0x20adec[_0x27a271(0x2a3)](_0x493ac8);});},0x64));});}[_0xb4aea2(0x20b)](_0x54e545,_0x50aa99){const _0x9ec609=_0xb4aea2;var _0x74c4d5;const _0x30b6fe=(_0x74c4d5=this[_0x9ec609(0x2fc)][_0x9ec609(0x2bc)]())==null?void 0x0:_0x74c4d5['skeleton'];if(!_0x30b6fe)return;const _0x1e4bae=this[_0x9ec609(0x2b2)]();if(!_0x1e4bae)return;this[_0x9ec609(0x129)][_0x9ec609(0x10b)](_0x474a81=>{const _0x3f556d=_0x9ec609;_0x474a81[_0x3f556d(0x201)]();});const {scene:_0x10ea0c}=_0x1e4bae,_0x9e0267=nn(Array['from'](_0x50aa99[_0x9ec609(0x117)]()))[_0x9ec609(0x187)](_0x1f3ad5=>{const _0x53f330=_0x9ec609,{color:_0x26059e,range:_0x2c43a2,name:_0x39e4ba,selection:_0x298f71,sheetID:_0x20b829}=_0x1f3ad5,{startColumn:_0x40764b,startRow:_0x2be446,endColumn:_0x5d003a,endRow:_0xa345ab}=_0x2c43a2,_0x70cd1d=_0x36095b(_0x2be446,_0x40764b,_0x10ea0c,_0x30b6fe),_0x3481cf=_0x36095b(_0xa345ab,_0x5d003a,_0x10ea0c,_0x30b6fe),{columnHeaderHeightAndMarginTop:_0x599991}=_0x30b6fe,{startX:_0x43daf2,startY:_0x3dd40f}=_0x70cd1d,{endX:_0x48cba1,endY:_0x3ab996}=_0x3481cf,_0x3d392e=_0x48cba1-_0x43daf2,_0x456223=_0x3ab996-_0x3dd40f,_0x148f3b={'labelPosition':_0x3dd40f-_0x599991>=Q?'top':_0x53f330(0x280),'sheetID':_0x20b829,'range':_0x2c43a2,'color':_0x26059e,'name':_0x39e4ba,'selection':_0x298f71,'left':_0x43daf2,'top':_0x3dd40f,'width':_0x3d392e,'height':_0x456223,'evented':!0x1,'zIndex':sn};return new qi(_0x39e4ba,_0x148f3b);});_0x10ea0c[_0x9ec609(0x11a)](_0x9e0267,Zi),this[_0x9ec609(0x129)]=new Set(_0x9e0267);}[_0xb4aea2(0x1f2)](){const _0x371a9a=_0xb4aea2;var _0x13cbe3;(_0x13cbe3=this[_0x371a9a(0x129)])==null||_0x13cbe3[_0x371a9a(0x10b)](_0x514ac0=>_0x514ac0[_0x371a9a(0x2c2)]());}[_0xb4aea2(0x2b2)](){const _0x135024=_0xb4aea2;return _0x5e9c03(this[_0x135024(0x130)][_0x135024(0xf8)],this['_context']);}};$e=tn([Ce(0x1,_0x230e5d(_0x4a4276)),Ce(0x2,_0x230e5d(H)),Ce(0x3,_0x230e5d(_0x56a377))],$e);function nn(_0x2b85b2){const _0xe1c511=_0xb4aea2,_0x277a00=new Map();return _0x2b85b2[_0xe1c511(0x10b)](_0x2a1d2b=>{const _0x3f3473=_0xe1c511;if(_0x277a00[_0x3f3473(0x198)](_0x2a1d2b[_0x3f3473(0x160)])){const _0x4e5e8e=_0x277a00[_0x3f3473(0x278)](_0x2a1d2b['selection']);_0x4e5e8e['name']+=',\x20'+_0x2a1d2b['name'];}else _0x277a00[_0x3f3473(0x2c6)](_0x2a1d2b['selection'],_0x2a1d2b);}),Array[_0xe1c511(0x148)](_0x277a00['values']());}var rn=Object[_0xb4aea2(0x1ff)],on=(_0x117229,_0x3e8b84,_0x8c1a6d,_0xead3f4)=>{const _0x3388b6=_0xb4aea2;for(var _0x5d26ee=_0xead3f4>0x1?void 0x0:_0xead3f4?rn(_0x3e8b84,_0x8c1a6d):_0x3e8b84,_0x3f2ab7=_0x117229[_0x3388b6(0x1f6)]-0x1,_0x403390;_0x3f2ab7>=0x0;_0x3f2ab7--)(_0x403390=_0x117229[_0x3f2ab7])&&(_0x5d26ee=_0x403390(_0x5d26ee)||_0x5d26ee);return _0x5d26ee;},F=(_0x20e0cd,_0x1314ad)=>(_0x1e9fd8,_0x75282b)=>_0x1314ad(_0x1e9fd8,_0x75282b,_0x20e0cd);let ce=class extends _0x1171bd{constructor(_0x29d87d,_0xe87656,_0x10165a,_0x1b3c47,_0x39e597,_0x2bc979){const _0x26517f=_0xb4aea2;super(),this[_0x26517f(0x254)]=_0x29d87d,this[_0x26517f(0x18e)]=_0xe87656,this[_0x26517f(0x1bc)]=_0x10165a,this['_messageService']=_0x1b3c47,this[_0x26517f(0x1cb)]=_0x39e597,this['_localeService']=_0x2bc979,this[_0x26517f(0x113)](),this[_0x26517f(0x12e)]();}[_0xb4aea2(0x113)](){const _0x3c7de3=_0xb4aea2;this[_0x3c7de3(0x2b4)](this['_beforeCloseService'][_0x3c7de3(0x274)](()=>{const _0x4a3480=_0x3c7de3;if(this[_0x4a3480(0x18e)][_0x4a3480(0x155)]['size'])return this[_0x4a3480(0x10d)]['t']('collaboration-client.offline-data-not-saved');}));}[_0xb4aea2(0x12e)](){const _0x1c1d23=_0xb4aea2;this['disposeWithMe'](this[_0x1c1d23(0x1bc)][_0x1c1d23(0x143)][_0x1c1d23(0x174)](_0x198e00=>{const _0x377749=_0x1c1d23;_0x198e00['id']===_0x4cae62[_0x377749(0x1a4)]&&this[_0x377749(0x1a8)][_0x377749(0x212)]({'type':_0x4a4d92[_0x377749(0x1a2)],'content':this[_0x377749(0x10d)]['t']('collaboration.single-unit.warning')}),_0x198e00['id']===_0x4cae62['CLOSE_ROOM']&&this[_0x377749(0x1a8)]['show']({'type':_0x4a4d92['Warning'],'content':this['_localeService']['t'](_0x377749(0x1c4))}),_0x198e00['id']===_0x4cae62[_0x377749(0x1b9)]&&this['_notificationService'][_0x377749(0x212)]({'title':this[_0x377749(0x10d)]['t'](_0x377749(0x22d)),'content':this[_0x377749(0x10d)]['t'](_0x377749(0x16c)),'type':_0x377749(0x128),'duration':0x0}),_0x198e00['id']===_0x4cae62[_0x377749(0x1e1)]&&this[_0x377749(0x1a8)][_0x377749(0x212)]({'type':_0x4a4d92[_0x377749(0x1cd)],'content':this[_0x377749(0x10d)]['t']('collaboration.closeRoom')+'('+_0x198e00[_0x377749(0x17e)]+')'}),_0x198e00['id']===_0x4cae62[_0x377749(0x1ad)]&&this['_messageService'][_0x377749(0x212)]({'type':_0x4a4d92[_0x377749(0x1a2)],'content':this['_localeService']['t'](_0x198e00[_0x377749(0x17e)]||'')}),_0x198e00['id']===_0x4cae62[_0x377749(0x164)]&&this['_messageService']['show']({'type':_0x4a4d92[_0x377749(0x1a2)],'content':this['_localeService']['t'](_0x377749(0x2c9))}),_0x198e00['id']===_0x4cae62['SOCKET_FAILED']&&this[_0x377749(0x1a8)][_0x377749(0x212)]({'type':_0x4a4d92['Error'],'content':this['_localeService']['t']('session.connection-failed')}),_0x198e00['id']===_0x4cae62[_0x377749(0x207)]&&this[_0x377749(0x1a8)][_0x377749(0x212)]({'type':_0x4a4d92['Error'],'content':this[_0x377749(0x10d)]['t'](_0x377749(0x310))});}));}};ce=on([F(0x0,_0x867653),F(0x1,_0x2a3e11),F(0x2,_0x230e5d(_0x2feb4c)),F(0x3,_0x4edcbe),F(0x4,_0xf39ac2),F(0x5,_0x230e5d(_0x379a8a))],ce);const an=_0xb4aea2(0x245),rt={};var cn=Object['getOwnPropertyDescriptor'],_n=(_0x177c3a,_0x422689,_0x10833a,_0x1e12e7)=>{const _0x229b2b=_0xb4aea2;for(var _0x26db08=_0x1e12e7>0x1?void 0x0:_0x1e12e7?cn(_0x422689,_0x10833a):_0x422689,_0x267bf3=_0x177c3a[_0x229b2b(0x1f6)]-0x1,_0x49172a;_0x267bf3>=0x0;_0x267bf3--)(_0x49172a=_0x177c3a[_0x267bf3])&&(_0x26db08=_0x49172a(_0x26db08)||_0x26db08);return _0x26db08;},ot=(_0x5650cf,_0x546195)=>(_0x3b05c2,_0x3e3062)=>_0x546195(_0x3b05c2,_0x3e3062,_0x5650cf);let _e=class{constructor(_0x2360fd,_0x11306d){const _0x59f128=_0xb4aea2;this[_0x59f128(0x2c4)]=_0x2360fd,this['_renderManagerService']=_0x11306d;}[_0xb4aea2(0x13d)](_0x175fa3){const _0x4e7a1e=_0xb4aea2;this[_0x4e7a1e(0x133)](_0x175fa3),this[_0x4e7a1e(0x1b0)](_0x175fa3);}[_0xb4aea2(0x2f5)](_0x4bfe62){const _0x20dc35=_0xb4aea2,{unitID:_0x9bd1a9}=_0x4bfe62,_0x3cc2ef=this[_0x20dc35(0x196)][_0x20dc35(0x141)](_0x9bd1a9)['with'](_0x342dcb),{redoCache:_0x34898a}=_0x3cc2ef['getUndoRedoMutationParamsCache']();if(_0x34898a[_0x20dc35(0x1f6)]===0x0)return _0x4bfe62;let _0x1506f1=_0x23ac62[_0x20dc35(0x29b)](_0x4bfe62['mutations'][0x0]);for(let _0x4da095=0x0;_0x4da095<_0x34898a[_0x20dc35(0x1f6)];_0x4da095++){const _0xbe26b8={'id':_0x20dc35(0x2bb),'params':{..._0x34898a[_0x4da095]}},_0x520662=this[_0x20dc35(0x2c4)][_0x20dc35(0x19e)](_0x1506f1,_0xbe26b8,!0x1);if(_0x342d94(_0x520662))throw _0x520662[_0x20dc35(0x128)];_0x1506f1=_0x520662[_0x20dc35(0x188)];}return{..._0x23ac62[_0x20dc35(0x29b)](_0x4bfe62),'mutations':[_0x1506f1]};}[_0xb4aea2(0x133)](_0x5ce1a3){const _0x12af40=_0xb4aea2,{unitID:_0x987421}=_0x5ce1a3,_0x48225f=this[_0x12af40(0x196)][_0x12af40(0x141)](_0x987421)[_0x12af40(0x1dc)](_0x342dcb),{undoCache:_0x1e6eba,redoCache:_0x30e3d9}=_0x48225f[_0x12af40(0x2af)]();if(_0x1e6eba[_0x12af40(0x1f6)]===0x0||_0x30e3d9[_0x12af40(0x1f6)]===0x0)return;const _0xea13d4=[],_0x503621=[];let _0x5a552e=_0x23ac62['deepClone'](_0x5ce1a3[_0x12af40(0x2b6)][0x0]),_0x1a4568=_0x23ac62[_0x12af40(0x29b)](_0x5ce1a3[_0x12af40(0x2b6)][0x0]);for(let _0x46df9b=_0x1e6eba['length']-0x1;_0x46df9b>=0x0;_0x46df9b--){const _0x9a635b={'id':_0x12af40(0x2bb),'params':{..._0x1e6eba[_0x46df9b]}},_0x2b4895={'id':_0x12af40(0x2bb),'params':{..._0x30e3d9[_0x46df9b]}},_0x5af571=this['_transformService']['transformMutation'](_0x5a552e,_0x9a635b,!0x1),_0xca56e9=this[_0x12af40(0x2c4)][_0x12af40(0x19e)](_0x1a4568,_0x2b4895,!0x1);if(_0x342d94(_0x5af571))throw _0x5af571[_0x12af40(0x128)];if(_0x342d94(_0xca56e9))throw _0xca56e9[_0x12af40(0x128)];_0xea13d4[_0x12af40(0x305)](_0x5af571['m2Prime']['params']),_0x503621[_0x12af40(0x305)](_0xca56e9[_0x12af40(0x1fa)][_0x12af40(0x2b8)]),_0x5a552e=_0x5af571[_0x12af40(0x188)],_0x1a4568=_0xca56e9[_0x12af40(0x188)];}_0x48225f[_0x12af40(0x2b3)]({'undoCache':_0xea13d4,'redoCache':_0x503621});}[_0xb4aea2(0x1b0)](_0x5f328c){const _0x23d279=_0xb4aea2,{unitID:_0x19a745}=_0x5f328c,_0x1ddad0=this['_renderManagerService']['getRenderById'](_0x19a745)[_0x23d279(0x1dc)](_0x342dcb),_0x4ab251=_0x1ddad0[_0x23d279(0x1eb)]();if(_0x4ab251==null)return;const _0x53ad1c=[{'id':_0x23d279(0x2bb),'params':{'unitId':_0x5f328c['unitID'],'actions':null,'textRanges':[_0x4ab251]}}],_0x11ab6d=this['_transformService'][_0x23d279(0x122)](_0x5f328c,_0x53ad1c);if(!_0x5c8e9a(_0x11ab6d))throw _0x11ab6d[_0x23d279(0x128)];const _0x262b81=_0x11ab6d[_0x23d279(0x1fa)][0x0][_0x23d279(0x2b8)]['textRanges'];Array['isArray'](_0x262b81)&&_0x262b81[_0x23d279(0x1f6)]&&_0x1ddad0[_0x23d279(0x31e)](_0x262b81[0x0]);}};_e=_n([ot(0x0,_0x224108),ot(0x1,_0x5ac659)],_e);var ln=Object['getOwnPropertyDescriptor'],hn=(_0x3affd1,_0x40bab4,_0x4b862f,_0x107c5b)=>{const _0x6d275c=_0xb4aea2;for(var _0x24ab3c=_0x107c5b>0x1?void 0x0:_0x107c5b?ln(_0x40bab4,_0x4b862f):_0x40bab4,_0x5c64e0=_0x3affd1[_0x6d275c(0x1f6)]-0x1,_0x2362dd;_0x5c64e0>=0x0;_0x5c64e0--)(_0x2362dd=_0x3affd1[_0x5c64e0])&&(_0x24ab3c=_0x2362dd(_0x24ab3c)||_0x24ab3c);return _0x24ab3c;},Re=(_0x17d800,_0x1c49af)=>(_0x59263e,_0x3efff7)=>_0x1c49af(_0x59263e,_0x3efff7,_0x17d800);let le=class{constructor(_0x2cbac3,_0x283492,_0x2513b8){const _0x1ca679=_0xb4aea2;this['_injector']=_0x2cbac3,this[_0x1ca679(0x2c4)]=_0x283492,this[_0x1ca679(0x1c5)]=_0x2513b8;}['transformStateCache'](_0x51d92d){const _0x7ced56=_0xb4aea2;this[_0x7ced56(0x12c)](_0x51d92d);}[_0xb4aea2(0x2f5)](_0x217a29){const _0x1c64c2=_0xb4aea2,{unitID:_0x527b0f}=_0x217a29,{collaboration:_0xc5e3a2}=this[_0x1c64c2(0x1c5)][_0x1c64c2(0x2fe)](_0x527b0f);if(_0xc5e3a2[_0x1c64c2(0x1f6)]===0x0)return _0x217a29;let _0x2df55e=_0x23ac62[_0x1c64c2(0x29b)](_0x217a29[_0x1c64c2(0x2b6)][0x0]);for(let _0x1967a5=0x0;_0x1967a5<_0xc5e3a2[_0x1c64c2(0x1f6)];_0x1967a5++){const _0xa95229={'id':_0x1c64c2(0x2bb),'params':{'unitId':_0xc5e3a2[_0x1967a5][_0x1c64c2(0x1c7)],..._0xc5e3a2[_0x1967a5]['redoState']}},_0x2a6424=this[_0x1c64c2(0x2c4)]['transformMutation'](_0x2df55e,_0xa95229,!0x1);if(_0x342d94(_0x2a6424))throw _0x2a6424[_0x1c64c2(0x128)];_0x2df55e=_0x2a6424[_0x1c64c2(0x188)];}return{..._0x23ac62[_0x1c64c2(0x29b)](_0x217a29),'mutations':[_0x2df55e]};}[_0xb4aea2(0x12c)](_0x4eed7b){const _0x6c927=_0xb4aea2,{unitID:_0x5acd83}=_0x4eed7b,{history:_0x28d412,collaboration:_0x4353bf}=this[_0x6c927(0x1c5)]['getStateCache'](_0x5acd83);if(_0x28d412[_0x6c927(0x1f6)]===0x0&&_0x4353bf[_0x6c927(0x1f6)]===0x0)return;const _0x17980d=[],_0x489ed0=[];let _0x1b5f17=_0x23ac62[_0x6c927(0x29b)](_0x4eed7b['mutations'][0x0]),_0x17b5bd=_0x23ac62['deepClone'](_0x4eed7b[_0x6c927(0x2b6)][0x0]);for(let _0x535872=_0x28d412['length']-0x1;_0x535872>=0x0;_0x535872--){const _0x443c06={'id':_0x6c927(0x2bb),'params':{'unitId':_0x28d412[_0x535872][_0x6c927(0x1c7)],..._0x28d412[_0x535872]['undoState']}},_0x15523c={'id':_0x6c927(0x2bb),'params':{'unitId':_0x28d412[_0x535872][_0x6c927(0x1c7)],..._0x28d412[_0x535872][_0x6c927(0x20d)]}},_0x2d4f8d=this[_0x6c927(0x2c4)][_0x6c927(0x19e)](_0x1b5f17,_0x443c06,!0x1),_0x431002=this[_0x6c927(0x2c4)]['transformMutation'](_0x17b5bd,_0x15523c,!0x1);if(_0x342d94(_0x2d4f8d))throw _0x2d4f8d[_0x6c927(0x128)];if(_0x342d94(_0x431002))throw _0x431002[_0x6c927(0x128)];_0x17980d['unshift']({..._0x28d412[_0x535872],'undoState':_0x2d4f8d[_0x6c927(0x1fa)][_0x6c927(0x2b8)],'redoState':_0x431002['m2Prime'][_0x6c927(0x2b8)]}),_0x1b5f17=_0x2d4f8d[_0x6c927(0x188)],_0x17b5bd=_0x431002[_0x6c927(0x188)];}_0x1b5f17=_0x23ac62[_0x6c927(0x29b)](_0x4eed7b[_0x6c927(0x2b6)][0x0]),_0x17b5bd=_0x23ac62[_0x6c927(0x29b)](_0x4eed7b[_0x6c927(0x2b6)][0x0]);for(let _0x23d37e=_0x4353bf[_0x6c927(0x1f6)]-0x1;_0x23d37e>=0x0;_0x23d37e--){const _0x28056d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4353bf[_0x23d37e][_0x6c927(0x1c7)],..._0x4353bf[_0x23d37e][_0x6c927(0x105)]}},_0x17bde6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4353bf[_0x23d37e]['unitId'],..._0x4353bf[_0x23d37e][_0x6c927(0x20d)]}},_0x461204=this[_0x6c927(0x2c4)][_0x6c927(0x19e)](_0x1b5f17,_0x28056d,!0x1),_0x3aba47=this[_0x6c927(0x2c4)][_0x6c927(0x19e)](_0x17b5bd,_0x17bde6,!0x1);if(_0x342d94(_0x461204))throw _0x461204[_0x6c927(0x128)];if(_0x342d94(_0x3aba47))throw _0x3aba47[_0x6c927(0x128)];_0x489ed0['unshift']({..._0x4353bf[_0x23d37e],'undoState':_0x461204[_0x6c927(0x1fa)]['params'],'redoState':_0x3aba47['m2Prime']['params']}),_0x1b5f17=_0x461204['m1Prime'],_0x17b5bd=_0x3aba47[_0x6c927(0x188)];}this['_docStateChangeManagerService'][_0x6c927(0x2a7)](_0x5acd83,{'history':_0x17980d,'collaboration':_0x489ed0});}};le=hn([Re(0x0,_0x230e5d(_0x3741a5)),Re(0x1,_0x224108),Re(0x2,_0x230e5d(_0x17839e))],le);var un=Object[_0xb4aea2(0x1ff)],dn=(_0x466b45,_0x52d234,_0x27d3f4,_0x4049c3)=>{const _0x400e4c=_0xb4aea2;for(var _0x4d86e8=_0x4049c3>0x1?void 0x0:_0x4049c3?un(_0x52d234,_0x27d3f4):_0x52d234,_0x5ddb93=_0x466b45[_0x400e4c(0x1f6)]-0x1,_0x1d1c0c;_0x5ddb93>=0x0;_0x5ddb93--)(_0x1d1c0c=_0x466b45[_0x5ddb93])&&(_0x4d86e8=_0x1d1c0c(_0x4d86e8)||_0x4d86e8);return _0x4d86e8;},at=(_0x33b638,_0x3a2e47)=>(_0x2d49d5,_0x3001ad)=>_0x3a2e47(_0x2d49d5,_0x3001ad,_0x33b638);function _0x538f(_0x504707,_0x348a10){const _0x13393e=_0x1339();return _0x538f=function(_0x538f99,_0x42f379){_0x538f99=_0x538f99-0xf2;let _0x217845=_0x13393e[_0x538f99];return _0x217845;},_0x538f(_0x504707,_0x348a10);}let he=class{constructor(_0x3d1f68,_0x4454c2){const _0xbf1635=_0xb4aea2;this[_0xbf1635(0x1d9)]=_0x3d1f68,this[_0xbf1635(0x2c4)]=_0x4454c2;}['transformSelections'](_0x1da674){const _0x536c28=_0xb4aea2;var _0x504b73;const _0x54254b=this[_0x536c28(0x1d9)][_0x536c28(0x278)](_0x5510ec),_0x5d5c97=(_0x504b73=_0x54254b[_0x536c28(0x230)]())!=null?_0x504b73:[];if(_0x5d5c97['length']===0x0)return;const _0x167baa=_0x1da674[_0x536c28(0x2ec)],_0x25a638=[{'id':_0x536c28(0x2bb),'params':{'unitId':_0x167baa,'actions':null,'textRanges':_0x5d5c97}}],_0x459aa5=this[_0x536c28(0x2c4)]['transformMutationsWithChangeset'](_0x1da674,_0x25a638);if(!_0x5c8e9a(_0x459aa5))throw _0x459aa5[_0x536c28(0x128)];const _0x5e7e50=_0x459aa5[_0x536c28(0x1fa)][0x0][_0x536c28(0x2b8)][_0x536c28(0x11c)];Array['isArray'](_0x5e7e50)&&_0x5e7e50[_0x536c28(0x1f6)]&&_0x54254b[_0x536c28(0x224)](_0x5e7e50,{'unitId':_0x167baa,'subUnitId':_0x167baa},!0x1);}};he=dn([at(0x0,_0x230e5d(_0x3741a5)),at(0x1,_0x224108)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x6f6315,_0x29895b,_0x323157,_0x49e982)=>{const _0x2db9aa=_0xb4aea2;for(var _0x5cd339=_0x49e982>0x1?void 0x0:_0x49e982?Sn(_0x29895b,_0x323157):_0x29895b,_0x24d33a=_0x6f6315[_0x2db9aa(0x1f6)]-0x1,_0x28defa;_0x24d33a>=0x0;_0x24d33a--)(_0x28defa=_0x6f6315[_0x24d33a])&&(_0x5cd339=_0x28defa(_0x5cd339)||_0x5cd339);return _0x5cd339;},b=(_0x3ae34c,_0x1d186f)=>(_0x272d5c,_0x46a448)=>_0x1d186f(_0x272d5c,_0x46a448,_0x3ae34c);let ue=class extends _0x1171bd{constructor(_0x76eefe,_0x2730a1,_0x1aac54,_0x3f42c1,_0x21b37e,_0x4af9b9,_0x2735f9,_0x1f4270){const _0x1c3df2=_0xb4aea2;super(),l(this,_0x1c3df2(0x22a),new _0x303f3b(_0x46264a[_0x1c3df2(0x2b7)])),(this[_0x1c3df2(0x1c5)]=_0x76eefe,this[_0x1c3df2(0x142)]=_0x2730a1,this[_0x1c3df2(0x276)]=_0x1aac54,this[_0x1c3df2(0x2e8)]=_0x3f42c1,this['_docTransformSelectionsService']=_0x21b37e,this[_0x1c3df2(0x16d)]=_0x4af9b9,this[_0x1c3df2(0x1a8)]=_0x2735f9,this[_0x1c3df2(0x10d)]=_0x1f4270,this[_0x1c3df2(0x229)]());}[_0xb4aea2(0x229)](){const _0x52332d=_0xb4aea2;this[_0x52332d(0x2b4)](this[_0x52332d(0x142)][_0x52332d(0x1be)]['subscribe'](_0x4f319d=>{const _0x49a111=_0x52332d,_0x29ef7b=this[_0x49a111(0x1c5)][_0x49a111(0x1af)][_0x49a111(0x174)](_0x5d306a=>{const _0x4a359b=_0x49a111;if(_0x5d306a==null)return;const {unitId:_0x46b368,redoState:_0x2d4ce7,commandId:_0x1193fc}=_0x5d306a;if(_0x46b368!==_0x4f319d[_0x4a359b(0x2ec)])return;const _0x4c84c1={'id':_0x1193fc,'type':_0x3f1653[_0x4a359b(0x272)],'params':{'unitId':_0x46b368,'actions':_0x2d4ce7[_0x4a359b(0x1b4)],'textRanges':null}};_0x4f319d['onLocalMutation'](_0x4c84c1);});if(_0x4f319d[_0x49a111(0x2b4)](_0x29ef7b),_0x4f319d instanceof _0x5b682c){const _0x1a1252={'onTransformIME':_0x2527e0=>this[_0x49a111(0x276)][_0x49a111(0x13d)](_0x2527e0),'onTransformState':_0x28542f=>this[_0x49a111(0x2e8)][_0x49a111(0x316)](_0x28542f),'onTransformSelections':_0x7f5e75=>this['_docTransformSelectionsService'][_0x49a111(0x2ca)](_0x7f5e75),'onSyncEditingCollabCursor':_0x31f74e=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x31f74e),'onTransformRemoteChangesetByIMECache':_0xb84b13=>this[_0x49a111(0x276)][_0x49a111(0x2f5)](_0xb84b13),'onTransformRemoteChangesetByStateCache':_0x4a98ea=>this[_0x49a111(0x2e8)][_0x49a111(0x2f5)](_0x4a98ea)};_0x4f319d['addHandlerCallback'](_0x1a1252);}}));}};ue=In([b(0x0,_0x230e5d(_0x17839e)),b(0x1,_0x230e5d(_0x1ec04e)),b(0x2,_0x230e5d(_e)),b(0x3,_0x230e5d(le)),b(0x4,_0x230e5d(he)),b(0x5,_0x230e5d(Xe)),b(0x6,_0x4edcbe),b(0x7,_0x230e5d(_0x379a8a))],ue);var Z=(_0x472870=>(_0x472870[_0x472870[_0xb4aea2(0x29d)]=0x0]=_0xb4aea2(0x29d),_0x472870[_0x472870['OK']=0x1]='OK',_0x472870[_0x472870[_0xb4aea2(0x1c1)]=0x2]=_0xb4aea2(0x1c1),_0x472870[_0x472870[_0xb4aea2(0x1b9)]=0x3]=_0xb4aea2(0x1b9),_0x472870[_0x472870[_0xb4aea2(0x28b)]=0x4]='NOT_FOUND',_0x472870[_0x472870[_0xb4aea2(0x30f)]=0x5]=_0xb4aea2(0x30f),_0x472870[_0x472870[_0xb4aea2(0x2c7)]=0x6]=_0xb4aea2(0x2c7),_0x472870[_0x472870['INVALID_ARGUMENT']=0x7]=_0xb4aea2(0x2d0),_0x472870[_0x472870[_0xb4aea2(0x17d)]=0x8]=_0xb4aea2(0x17d),_0x472870[_0x472870[_0xb4aea2(0x1b3)]=0x9]=_0xb4aea2(0x1b3),_0x472870[_0x472870['LOGIN_FAILED']=0xa]=_0xb4aea2(0x184),_0x472870[_0x472870['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0xb4aea2(0x28d),_0x472870[_0x472870[_0xb4aea2(0x1ca)]=0xc]=_0xb4aea2(0x1ca),_0x472870[_0x472870[_0xb4aea2(0x29c)]=0xd]=_0xb4aea2(0x29c),_0x472870[_0x472870[_0xb4aea2(0x20a)]=0xe]=_0xb4aea2(0x20a),_0x472870[_0x472870['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x472870[_0x472870[_0xb4aea2(0x306)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x472870[_0x472870[_0xb4aea2(0x21c)]=0x64]=_0xb4aea2(0x21c),_0x472870[_0x472870['ERROR_AGAIN']=0x65]=_0xb4aea2(0x2eb),_0x472870[_0x472870[_0xb4aea2(0x270)]=0xc9]=_0xb4aea2(0x270),_0x472870[_0x472870['USER_IS_ANONYMOUS']=0xca]=_0xb4aea2(0x138),_0x472870[_0x472870[_0xb4aea2(0x205)]=0x1389]=_0xb4aea2(0x205),_0x472870[_0x472870[_0xb4aea2(0x1a9)]=0x1771]=_0xb4aea2(0x1a9),_0x472870[_0x472870[_0xb4aea2(0x17f)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x472870[_0x472870[_0xb4aea2(0x178)]=0x1773]=_0xb4aea2(0x178),_0x472870[_0x472870[_0xb4aea2(0x291)]=0x1b59]='APPLY_REJECT',_0x472870[_0x472870[_0xb4aea2(0x2fd)]=0x1b5a]=_0xb4aea2(0x2fd),_0x472870[_0x472870[_0xb4aea2(0x19a)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x472870[_0x472870[_0xb4aea2(0x22b)]=0x1b5c]=_0xb4aea2(0x22b),_0x472870[_0x472870[_0xb4aea2(0x243)]=0x1b5d]=_0xb4aea2(0x243),_0x472870[_0x472870[_0xb4aea2(0x150)]=0x1f41]=_0xb4aea2(0x150),_0x472870[_0x472870[_0xb4aea2(0x124)]=0x2329]=_0xb4aea2(0x124),_0x472870[_0x472870[_0xb4aea2(0x216)]=0x232a]=_0xb4aea2(0x216),_0x472870[_0x472870[_0xb4aea2(0x28f)]=0x232b]=_0xb4aea2(0x28f),_0x472870[_0x472870[_0xb4aea2(0x1b7)]=0x232c]=_0xb4aea2(0x1b7),_0x472870[_0x472870['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x472870[_0x472870['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0xb4aea2(0x110),_0x472870[_0x472870[_0xb4aea2(0x222)]=0x2712]=_0xb4aea2(0x222),_0x472870[_0x472870[_0xb4aea2(0x300)]=0x2713]=_0xb4aea2(0x300),_0x472870[_0x472870[_0xb4aea2(0x22e)]=0x2714]=_0xb4aea2(0x22e),_0x472870[_0x472870[_0xb4aea2(0x16b)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x472870[_0x472870[_0xb4aea2(0x2ab)]=0x271b]=_0xb4aea2(0x2ab),_0x472870[_0x472870[_0xb4aea2(0x186)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x472870[_0x472870[_0xb4aea2(0x210)]=0x271d]=_0xb4aea2(0x210),_0x472870[_0x472870[_0xb4aea2(0x14c)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x472870[_0x472870[_0xb4aea2(0x140)]=0x271f]=_0xb4aea2(0x140),_0x472870[_0x472870[_0xb4aea2(0x1ae)]=0x2720]=_0xb4aea2(0x1ae),_0x472870[_0x472870[_0xb4aea2(0xff)]=0x2af9]=_0xb4aea2(0xff),_0x472870[_0x472870['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xb4aea2(0x23f),_0x472870[_0x472870['INVALID_INVITE_CODE']=0x2ee2]=_0xb4aea2(0x2c3),_0x472870[_0x472870[_0xb4aea2(0x24d)]=0x2ee3]=_0xb4aea2(0x24d),_0x472870[_0x472870['USER_NOT_INVITED_CODE']=0x2ee4]=_0xb4aea2(0x18c),_0x472870[_0x472870['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xb4aea2(0x125),_0x472870[_0x472870[_0xb4aea2(0x180)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x472870[_0x472870[_0xb4aea2(0x2cc)]=0x32ca]=_0xb4aea2(0x2cc),_0x472870[_0x472870[_0xb4aea2(0x1ac)]=0x32cb]=_0xb4aea2(0x1ac),_0x472870[_0x472870[_0xb4aea2(0x1a6)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x472870[_0x472870[_0xb4aea2(0x31f)]=0x36b2]=_0xb4aea2(0x31f),_0x472870[_0x472870['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0xb4aea2(0x26d),_0x472870[_0x472870[_0xb4aea2(0xf6)]=0x36b4]=_0xb4aea2(0xf6),_0x472870[_0x472870['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x472870[_0x472870[_0xb4aea2(0x1ec)]=0x3716]=_0xb4aea2(0x1ec),_0x472870[_0x472870[_0xb4aea2(0x2cf)]=0x3717]=_0xb4aea2(0x2cf),_0x472870[_0x472870[_0xb4aea2(0x26e)]=0x37dd]=_0xb4aea2(0x26e),_0x472870[_0x472870[_0xb4aea2(0x190)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x472870[_0x472870[_0xb4aea2(0x2fb)]=0x3a9a]=_0xb4aea2(0x2fb),_0x472870[_0x472870['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x472870[_0x472870[_0xb4aea2(0x159)]=0x3a9c]=_0xb4aea2(0x159),_0x472870[_0x472870[_0xb4aea2(0x2db)]=0x3a9d]=_0xb4aea2(0x2db),_0x472870[_0x472870[_0xb4aea2(0x206)]=0x3a9e]=_0xb4aea2(0x206),_0x472870[_0x472870[_0xb4aea2(0x119)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x472870[_0x472870['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0xb4aea2(0x2a5),_0x472870[_0x472870[_0xb4aea2(0x262)]=-0x1]=_0xb4aea2(0x262),_0x472870))(Z||{});function mn(_0x51fe96){const _0x3266cf=_0xb4aea2;var _0x1a94fc,_0x48a203;const _0x4f1a4b=(_0x1a94fc=_0x51fe96[_0x3266cf(0x1bd)])==null?void 0x0:_0x1a94fc[_0x3266cf(0x2c8)],_0x16828d=((_0x48a203=_0x51fe96[_0x3266cf(0x1bd)])==null?void 0x0:_0x48a203['totalFormulasToCalculate'])||0x0;return _0x4f1a4b===_0x10b0bd[_0x3266cf(0x13f)]&&_0x16828d>0x0;}function fn(_0x3dc017){const _0x256cad=_0xb4aea2;return _0x3dc017[_0x256cad(0x30c)]===_0x34e86b['SUCCESS'];}var gn=Object['getOwnPropertyDescriptor'],vn=(_0x47d4f5,_0x4ba214,_0x916243,_0x31dd8e)=>{for(var _0x35b51d=_0x31dd8e>0x1?void 0x0:_0x31dd8e?gn(_0x4ba214,_0x916243):_0x4ba214,_0x2b4be2=_0x47d4f5['length']-0x1,_0x148c86;_0x2b4be2>=0x0;_0x2b4be2--)(_0x148c86=_0x47d4f5[_0x2b4be2])&&(_0x35b51d=_0x148c86(_0x35b51d)||_0x35b51d);return _0x35b51d;},P=(_0xbb0ca5,_0x3b82a8)=>(_0x5f1722,_0x569d42)=>_0x3b82a8(_0x5f1722,_0x569d42,_0xbb0ca5);const En='/universer-api/license/formula/limit/status',pn='/universer-api/license/formula/limit/start',On='/universer-api/license/formula/limit/done';let de=class extends _0x1171bd{constructor(_0x5c8ad8,_0x401f98,_0x12e0fa,_0x57a98d,_0x1316a7,_0x382c61,_0x307020){const _0x4302ff=_0xb4aea2;super(),l(this,_0x4302ff(0x2a9),null),l(this,_0x4302ff(0x12d),0x0),l(this,_0x4302ff(0x1f3),0x0),l(this,_0x4302ff(0x307),[]),l(this,'_lastResponseTimestamp',0x0),(this[_0x4302ff(0x1a8)]=_0x5c8ad8,this['_commandService']=_0x401f98,this[_0x4302ff(0x2c5)]=_0x12e0fa,this[_0x4302ff(0x2ae)]=_0x57a98d,this[_0x4302ff(0x2ad)]=_0x1316a7,this[_0x4302ff(0x15a)]=_0x382c61,this['_localeService']=_0x307020,this[_0x4302ff(0x1e2)]());}[_0xb4aea2(0x1e2)](){const _0x34bfa4=_0xb4aea2;this[_0x34bfa4(0x2b4)](this[_0x34bfa4(0x102)]['beforeCommandExecuted']((_0x505ee8,_0x1daa19)=>{const _0x5f1766=_0x34bfa4;var _0x540b8e;if(_0x505ee8['id']!==_0x2929a4['id'])return;const _0x3e42ac=_0x505ee8[_0x5f1766(0x2b8)];if(!this[_0x5f1766(0x2bd)]((_0x540b8e=_0x3e42ac[_0x5f1766(0x1d3)])!=null?_0x540b8e:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x5f1766(0x28c)](_0x505ee8,_0x1daa19),this[_0x5f1766(0x173)](),new _0x36564c();})),this[_0x34bfa4(0x2b4)](this[_0x34bfa4(0x102)][_0x34bfa4(0x259)]((_0x557d56,_0x4ce919)=>{const _0x19b0d5=_0x34bfa4;if(_0x557d56['id']!==_0x23d2c8['id'])return;const _0x14981c=_0x557d56[_0x19b0d5(0x2b8)];if(mn(_0x14981c)){const _0x4c4919=_0x37b68e();this[_0x19b0d5(0x307)][_0x19b0d5(0x25f)](_0x4c4919),this[_0x19b0d5(0x1f0)](_0x4c4919);}else{if(fn(_0x14981c)&&this[_0x19b0d5(0x307)][_0x19b0d5(0x1f6)]>0x0){const _0xcf398=this['_taskIds'][_0x19b0d5(0x25b)]();this[_0x19b0d5(0x20e)](_0xcf398);}}}));}[_0xb4aea2(0x2c2)](){const _0x58d8fa=_0xb4aea2;super[_0x58d8fa(0x2c2)](),this[_0x58d8fa(0x2ba)](),this[_0x58d8fa(0x307)]=[],this[_0x58d8fa(0x1f3)]=0x0,this[_0x58d8fa(0x12d)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xb4aea2(0x28c)](_0x25ccd6,_0xa26449){const _0x4fa7a9=_0xb4aea2;for(let _0x5d1aed=0x0;_0x5d1aed<0x1e;_0x5d1aed++)try{if(await this[_0x4fa7a9(0x116)](),this[_0x4fa7a9(0x30d)]()){this['_applyCommand'](_0x25ccd6,_0xa26449),this['_messageService'][_0x4fa7a9(0x212)]({'content':this[_0x4fa7a9(0x10d)]['t'](_0x4fa7a9(0x1b8)),'type':_0x4a4d92[_0x4fa7a9(0x277)]});return;}await new Promise(_0x531a61=>{const _0x14baf5=_0x4fa7a9;this[_0x14baf5(0x2a9)]=window[_0x14baf5(0x1cc)](_0x531a61,0x3e8);});}catch(_0x4160c4){this[_0x4fa7a9(0x15a)]['error'](_0x4160c4);}this['_messageService']['show']({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x4a4d92[_0x4fa7a9(0x1cd)]});}['_applyCommand'](_0x18df28,_0x52ceeb){const _0x33fb69=_0xb4aea2;try{this[_0x33fb69(0x102)][_0x33fb69(0x2d6)](_0x18df28['id'],_0x18df28[_0x33fb69(0x2b8)],_0x52ceeb);}catch(_0x787d6a){this[_0x33fb69(0x15a)][_0x33fb69(0x128)](_0x787d6a);}}['_setFormulaLimitStatus'](_0x47e9ca,_0x3267a1){const _0x9b33af=_0xb4aea2;_0x3267a1<this[_0x9b33af(0x15b)]||(this[_0x9b33af(0x15b)]=_0x3267a1,this[_0x9b33af(0x12d)]=Number[_0x9b33af(0x233)](_0x47e9ca['maxFormulaLimit']),this[_0x9b33af(0x1f3)]=Number[_0x9b33af(0x233)](_0x47e9ca[_0x9b33af(0x203)]));}async[_0xb4aea2(0x1f0)](_0x5cb717){const _0x23e761=_0xb4aea2;var _0x3e9239,_0x38bba2;const _0x349e52=Date[_0x23e761(0x2cb)]();try{const _0x2eb782=((_0x3e9239=this[_0x23e761(0x2c5)]['getConfig'](_0x238e28))==null?void 0x0:_0x3e9239[_0x23e761(0x29e)])||pn,_0x179879=(await this[_0x23e761(0x2ae)]['post'](_0x2eb782,{'body':JSON[_0x23e761(0x20f)]({'taskId':_0x5cb717})}))[_0x23e761(0x158)];if(((_0x38bba2=_0x179879[_0x23e761(0x128)])==null?void 0x0:_0x38bba2[_0x23e761(0x1c8)])!==Z['OK'])return;this[_0x23e761(0x256)](_0x179879['limitInfo'],_0x349e52);}catch(_0x87d890){this[_0x23e761(0x15a)][_0x23e761(0x128)](_0x87d890);}}async[_0xb4aea2(0x116)](_0x1c8ae6){const _0x19bf5c=_0xb4aea2;var _0x283e87,_0x5ece60;const _0x2fef14=Date['now']();try{const _0x4262c9=((_0x283e87=this['_configService']['getConfig'](_0x238e28))==null?void 0x0:_0x283e87[_0x19bf5c(0x132)])||En,_0x3bc56c=_0x1c8ae6?_0x4262c9+_0x19bf5c(0x1d7)+encodeURIComponent(_0x1c8ae6):_0x4262c9,_0x72ba5c=(await this[_0x19bf5c(0x2ae)][_0x19bf5c(0x278)](_0x3bc56c))['body'];if(((_0x5ece60=_0x72ba5c[_0x19bf5c(0x128)])==null?void 0x0:_0x5ece60['code'])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x72ba5c[_0x19bf5c(0x1d8)],_0x2fef14);}catch(_0x370ea1){this[_0x19bf5c(0x15a)]['error'](_0x370ea1);}}async[_0xb4aea2(0x20e)](_0x1a3b33){const _0x398995=_0xb4aea2;var _0x3177e3,_0xb1c078;const _0x540fe5=Date[_0x398995(0x2cb)]();try{const _0x5c221f=((_0x3177e3=this[_0x398995(0x2c5)][_0x398995(0x2c1)](_0x238e28))==null?void 0x0:_0x3177e3[_0x398995(0x22c)])||On,_0x297899=(await this['_httpService']['post'](_0x5c221f,{'body':JSON[_0x398995(0x20f)]({'taskId':_0x1a3b33})}))[_0x398995(0x158)];if(((_0xb1c078=_0x297899['error'])==null?void 0x0:_0xb1c078[_0x398995(0x1c8)])!==Z['OK'])return;this[_0x398995(0x256)](_0x297899[_0x398995(0x1d8)],_0x540fe5);}catch(_0x2bbec0){this[_0x398995(0x15a)][_0x398995(0x128)](_0x2bbec0);}}[_0xb4aea2(0x30d)](){const _0x2ac19f=_0xb4aea2;return this[_0x2ac19f(0x12d)]===0x0?!0x0:this[_0x2ac19f(0x12d)]-this[_0x2ac19f(0x1f3)]>0x0;}[_0xb4aea2(0x2ba)](){const _0x38625f=_0xb4aea2;this[_0x38625f(0x2a9)]&&(clearTimeout(this[_0x38625f(0x2a9)]),this[_0x38625f(0x2a9)]=null);}[_0xb4aea2(0x173)](){const _0x434737=_0xb4aea2;this['_messageService'][_0x434737(0x212)]({'content':this[_0x434737(0x10d)]['t'](_0x434737(0x283)),'type':_0x4a4d92['Loading']});}['_hasFormulaInDirtyRanges'](_0xd0402e){const _0x3e363c=_0xb4aea2;for(const _0x6e88b5 of _0xd0402e){const {unitId:_0x595572,sheetId:_0x1c8033,range:_0x25a462}=_0x6e88b5,_0x2686e5=this['_univerInstanceService']['getUnit'](_0x595572);if(!_0x2686e5)continue;const _0x49d9de=_0x2686e5[_0x3e363c(0x239)](_0x1c8033);if(!_0x49d9de)continue;const _0x156be6=_0x49d9de[_0x3e363c(0x1cf)]();for(let _0x5f5af5=_0x25a462['startRow'];_0x5f5af5<=_0x25a462[_0x3e363c(0x26c)];_0x5f5af5++)for(let _0x33c15c=_0x25a462[_0x3e363c(0x1b6)];_0x33c15c<=_0x25a462[_0x3e363c(0x1e9)];_0x33c15c++){const _0x99095=_0x156be6['getValue'](_0x5f5af5,_0x33c15c);if(_0x99095&&(_0x220c4e(_0x99095['f'])||_0x4dcf24(_0x99095['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x230e5d(_0x4edcbe)),P(0x1,_0x4494ed),P(0x2,_0xfa23ed),P(0x3,_0x230e5d(_0x2a5af9)),P(0x4,_0x503376),P(0x5,_0x2a35a1),P(0x6,_0x230e5d(_0x379a8a))],de);var Tn=Object[_0xb4aea2(0x1ff)],Cn=(_0x5b7b85,_0x1783fd,_0x2baeeb,_0xeaf6)=>{const _0x321f19=_0xb4aea2;for(var _0xfe3423=_0xeaf6>0x1?void 0x0:_0xeaf6?Tn(_0x1783fd,_0x2baeeb):_0x1783fd,_0x32fd1a=_0x5b7b85[_0x321f19(0x1f6)]-0x1,_0x4ca85e;_0x32fd1a>=0x0;_0x32fd1a--)(_0x4ca85e=_0x5b7b85[_0x32fd1a])&&(_0xfe3423=_0x4ca85e(_0xfe3423)||_0xfe3423);return _0xfe3423;},De=(_0x1b0e5a,_0x47619f)=>(_0x3c1c89,_0x425c3c)=>_0x47619f(_0x3c1c89,_0x425c3c,_0x1b0e5a);let xe=class extends _0x1171bd{constructor(_0x38d95c,_0x3ab1f0,_0x5aea6b){const _0x187d5b=_0xb4aea2;super(),l(this,_0x187d5b(0x2dd),new Map()),l(this,_0x187d5b(0x258),new Map()),l(this,_0x187d5b(0x2e7),!0x1),(this[_0x187d5b(0x2c5)]=_0x38d95c,this[_0x187d5b(0x2d7)]=_0x3ab1f0,this[_0x187d5b(0x227)]=_0x5aea6b);}[_0xb4aea2(0x255)](){const _0x3ff99f=_0xb4aea2;this[_0x3ff99f(0x2e7)]=!0x0;}[_0xb4aea2(0x27c)](){const _0x1bfe12=_0xb4aea2;this[_0x1bfe12(0x2e7)]=!0x1;}get[_0xb4aea2(0x155)](){const _0x32f3fa=_0xb4aea2;return this[_0x32f3fa(0x258)];}[_0xb4aea2(0x2c2)](){const _0x8fd5f6=_0xb4aea2;this[_0x8fd5f6(0x18f)]()['then'](()=>super[_0x8fd5f6(0x2c2)]());}async[_0xb4aea2(0x2a8)](_0x5e5787){const _0x234e5d=_0xb4aea2;return this[_0x234e5d(0x2e7)]?null:this[_0x234e5d(0x2d7)][_0x234e5d(0x161)](_0x18c8f2(_0x5e5787));}async[_0xb4aea2(0x2da)](_0x9e071b,_0x252998){const _0x3f30b8=_0xb4aea2;return!!this[_0x3f30b8(0x2d7)][_0x3f30b8(0x315)](_0x9e071b,_0x252998);}[_0xb4aea2(0x287)](_0x467ca1,_0x454548,_0x5a624f,_0x325f9d){const _0x4236ed=_0xb4aea2,_0x992af7=this[_0x4236ed(0x227)]['getCurrentRevOfUnit'](_0x467ca1);this[_0x4236ed(0x2dd)]['set'](_0x467ca1,{'unitID':_0x467ca1,'type':_0x454548,'awaitingChangeset':_0x5a624f,'mutations':_0x325f9d,'rev':_0x992af7}),this[_0x4236ed(0x258)]['has'](_0x467ca1)||this[_0x4236ed(0x223)](_0x467ca1);}['_scheduleSaving'](_0x297b85){const _0x201908=_0xb4aea2,_0x1d3a3a=this[_0x201908(0x26f)]();_0x1d3a3a===0x0?this[_0x201908(0x14b)](_0x297b85):this['_saveTaskMap'][_0x201908(0x2c6)](_0x297b85,setTimeout(()=>this['_saveCache'](_0x297b85),_0x1d3a3a));}[_0xb4aea2(0x26f)](){const _0x10c2ae=_0xb4aea2;var _0x64bae;return(_0x64bae=this[_0x10c2ae(0x2c5)][_0x10c2ae(0x2c1)](_0x157f6a))!=null?_0x64bae:_0x16be5a;}[_0xb4aea2(0x14b)](_0x2028b3){const _0x510409=_0xb4aea2,_0x1a61b1=this[_0x510409(0x258)]['get'](_0x2028b3);return _0x1a61b1!==void 0x0&&window[_0x510409(0x1d6)](_0x1a61b1),this[_0x510409(0x2d7)][_0x510409(0x315)](_0x18c8f2(_0x2028b3),this[_0x510409(0x2dd)][_0x510409(0x278)](_0x2028b3))['then'](()=>this[_0x510409(0x258)][_0x510409(0x2dc)](_0x2028b3));}async[_0xb4aea2(0x18f)](){const _0x32a90e=_0xb4aea2,_0x150b56=[];this[_0x32a90e(0x258)][_0x32a90e(0x10b)]((_0x353070,_0x5caee4)=>{const _0x444936=_0x32a90e;window['clearTimeout'](_0x353070),_0x150b56['push'](this[_0x444936(0x14b)](_0x5caee4)['then'](()=>{const _0x328075=_0x444936;this['_saveTaskMap'][_0x328075(0x2dc)](_0x5caee4);}));}),await Promise[_0x32a90e(0x288)](_0x150b56);}};xe=Cn([De(0x0,_0xfa23ed),De(0x1,_0x3b2d7e),De(0x2,_0x230e5d(_0x13db28))],xe);class Rn extends _0xcddefe{constructor(){const _0x521a78=_0xb4aea2;super(),l(this,_0x521a78(0x317)),this[_0x521a78(0x317)]=_0x4e9c50(window,_0x521a78(0x109))[_0x521a78(0x10a)](_0x28b7e0(this[_0x521a78(0xfe)]),_0x49e416(0x1),_0x3b23e9(void 0x0));}[_0xb4aea2(0x282)](_0x4d0ee2,_0x52eef9,_0x1618b4=!0x1){const _0x599ead=_0xb4aea2,_0x3a984e=new URL(window[_0x599ead(0x2ea)][_0x599ead(0x241)]);_0x3a984e['searchParams']['set'](_0x4d0ee2,_0x52eef9),_0x1618b4?window['history'][_0x599ead(0x319)]('','',_0x3a984e['toString']()):window[_0x599ead(0x11b)][_0x599ead(0x100)]('','',_0x3a984e['toString']());}['removeParam'](_0x5c9a7f,_0x3cf58e=!0x1){const _0x4e5ae7=_0xb4aea2,_0x5ec9ae=new URL(window['location'][_0x4e5ae7(0x241)]);_0x5ec9ae[_0x4e5ae7(0x1ef)][_0x4e5ae7(0x2dc)](_0x5c9a7f),_0x3cf58e?window[_0x4e5ae7(0x11b)][_0x4e5ae7(0x319)]('','',_0x5ec9ae['toString']()):window[_0x4e5ae7(0x11b)][_0x4e5ae7(0x100)]('','',_0x5ec9ae['toString']());}['getParam'](_0x36190f){const _0x34e0c0=_0xb4aea2;var _0x1465c7;return(_0x1465c7=new URL(window[_0x34e0c0(0x2ea)][_0x34e0c0(0x241)])[_0x34e0c0(0x1ef)]['get'](_0x36190f))!=null?_0x1465c7:void 0x0;}}var Dn=Object[_0xb4aea2(0x153)],Nn=Object['getOwnPropertyDescriptor'],bn=(_0x1d442e,_0x10c20e,_0x4f3b3c)=>_0x10c20e in _0x1d442e?Dn(_0x1d442e,_0x10c20e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f3b3c}):_0x1d442e[_0x10c20e]=_0x4f3b3c,Un=(_0x58a0f9,_0x5cc95e,_0x5f3129,_0x5bddee)=>{const _0x2adf78=_0xb4aea2;for(var _0xa46854=_0x5bddee>0x1?void 0x0:_0x5bddee?Nn(_0x5cc95e,_0x5f3129):_0x5cc95e,_0x48f249=_0x58a0f9[_0x2adf78(0x1f6)]-0x1,_0x16bba6;_0x48f249>=0x0;_0x48f249--)(_0x16bba6=_0x58a0f9[_0x48f249])&&(_0xa46854=_0x16bba6(_0xa46854)||_0xa46854);return _0xa46854;},Ne=(_0x532636,_0x502d64)=>(_0x53e6a0,_0x44cb93)=>_0x502d64(_0x53e6a0,_0x44cb93,_0x532636),Ln=(_0x1f9128,_0x588ad0,_0x5d3d18)=>bn(_0x1f9128,_0x588ad0+'',_0x5d3d18);const Mn=_0xb4aea2(0x169);let Be=class extends _0xf8b878{constructor(_0x4ae933=rt,_0x3778c2,_0x309bfc,_0x1c647b){const _0x530ae2=_0xb4aea2;super(),this['_config']=_0x4ae933,this[_0x530ae2(0x196)]=_0x3778c2,this[_0x530ae2(0x1d9)]=_0x309bfc,this[_0x530ae2(0x2c5)]=_0x1c647b;const {..._0x2ce960}=_0x398ff2({},rt,this[_0x530ae2(0x218)]);this[_0x530ae2(0x2c5)][_0x530ae2(0x24c)](an,_0x2ce960);}[_0xb4aea2(0x21e)](){const _0x2cae26=_0xb4aea2;this[_0x2cae26(0x162)](),this[_0x2cae26(0x136)]();}['onRendered'](){const _0x2913d4=_0xb4aea2;this[_0x2913d4(0x263)]();}['_registerDependencies'](){const _0x3b26c2=_0xb4aea2;var _0x1406ae;const _0x21222e=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5627d8,{'useClass':_0x17b987}],[_0x2a3e11,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x18558e(this['_injector'],_0x4517fb(_0x21222e,(_0x1406ae=this[_0x3b26c2(0x218)])==null?void 0x0:_0x1406ae['override']));}[_0xb4aea2(0x263)](){const _0x27a1b4=_0xb4aea2;this[_0x27a1b4(0x2b4)](this[_0x27a1b4(0x196)]['registerRenderModule'](_0x1737bf[_0x27a1b4(0x14e)],[ye])),this[_0x27a1b4(0x2b4)](this[_0x27a1b4(0x196)]['registerRenderModule'](_0x1737bf[_0x27a1b4(0x12a)],[$e]));}[_0xb4aea2(0x136)](){const _0x560f28=_0xb4aea2;_0x33baab(this[_0x560f28(0x1d9)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0xb4aea2(0x322),Mn),Be=Un([_0x22da96(_0x5cdfaa),Ne(0x1,_0x5ac659),Ne(0x2,_0x230e5d(_0x3741a5)),Ne(0x3,_0xfa23ed)],Be);var An=Object[_0xb4aea2(0x1ff)],Pn=(_0x517891,_0x3d0c36,_0x5b2141,_0x2e24ef)=>{const _0x40e10f=_0xb4aea2;for(var _0x36ad6a=_0x2e24ef>0x1?void 0x0:_0x2e24ef?An(_0x3d0c36,_0x5b2141):_0x3d0c36,_0x50055b=_0x517891[_0x40e10f(0x1f6)]-0x1,_0x8e7516;_0x50055b>=0x0;_0x50055b--)(_0x8e7516=_0x517891[_0x50055b])&&(_0x36ad6a=_0x8e7516(_0x36ad6a)||_0x36ad6a);return _0x36ad6a;},J=(_0x54fafc,_0x437de4)=>(_0x488d24,_0x27fba0)=>_0x437de4(_0x488d24,_0x27fba0,_0x54fafc);let ct=class extends _0x48a1d0{constructor(_0x5a291b,_0x358c9a,_0x2bdc52,_0x6ba465,_0x20203d){super(_0x5a291b,_0x358c9a,_0x2bdc52,_0x6ba465,_0x20203d);}async[_0xb4aea2(0x320)](_0x357449){const _0x515b2e=_0xb4aea2,_0x42f295=await this[_0x515b2e(0x311)](),_0x21ebe5=this[_0x515b2e(0x314)](_0x357449,_0x42f295);return this[_0x515b2e(0x2f9)](_0x21ebe5);}[_0xb4aea2(0x314)](_0x3c28b1,_0x4cc47b){const _0x1ab04a=_0xb4aea2,_0x38b67f=typeof window>'u'?new URL(_0x3c28b1):new URL(_0x3c28b1,window[_0x1ab04a(0x2ea)][_0x1ab04a(0x121)]);_0x38b67f[_0x1ab04a(0x1ef)][_0x1ab04a(0x2c6)](_0x1ab04a(0x145),_0x4cc47b);const _0xdaedbb=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1ab04a(0x2ea)][_0x1ab04a(0x295)]);return _0xdaedbb[_0x1ab04a(0x278)](_0x1ab04a(0x2f7))&&_0x38b67f[_0x1ab04a(0x1ef)][_0x1ab04a(0x2c6)](_0x1ab04a(0x2f7),_0xdaedbb['get']('runId')),_0x38b67f[_0x1ab04a(0x10e)]();}async[_0xb4aea2(0x311)](){const _0x3931b7=_0xb4aea2;var _0x404bd4,_0x55807d,_0x419ee8;const _0x237f96=this[_0x3931b7(0x2c5)]['getConfig'](_0x238e28),_0x176233=(_0x404bd4=_0x237f96==null?void 0x0:_0x237f96[_0x3931b7(0x273)])!=null?_0x404bd4:_0x38ef63;return(_0x419ee8=(_0x55807d=(await this[_0x3931b7(0x2ae)][_0x3931b7(0x278)](_0x176233,{'headers':{'Content-Type':_0x3931b7(0x219)}}))['body'])==null?void 0x0:_0x55807d[_0x3931b7(0xf2)])!=null?_0x419ee8:'';}};ct=Pn([J(0x0,_0x230e5d(_0x3741a5)),J(0x1,_0x230e5d(_0x2a5af9)),J(0x2,_0xfa23ed),J(0x3,_0x2a35a1),J(0x4,_0x455235)],ct);var wn=Object[_0xb4aea2(0x1ff)],yn=(_0x240a69,_0x48e64a,_0x12fe80,_0x51dfda)=>{const _0x422f28=_0xb4aea2;for(var _0x3092aa=_0x51dfda>0x1?void 0x0:_0x51dfda?wn(_0x48e64a,_0x12fe80):_0x48e64a,_0x4b4a34=_0x240a69[_0x422f28(0x1f6)]-0x1,_0x46356a;_0x4b4a34>=0x0;_0x4b4a34--)(_0x46356a=_0x240a69[_0x4b4a34])&&(_0x3092aa=_0x46356a(_0x3092aa)||_0x3092aa);return _0x3092aa;},be=(_0x2ab8c3,_0x105892)=>(_0x4b39bc,_0x11e6fe)=>_0x105892(_0x4b39bc,_0x11e6fe,_0x2ab8c3);let _t=class extends _0x1171bd{constructor(_0x114d77,_0xf5e2e9,_0x37c9aa){const _0x209045=_0xb4aea2;super(),this['_instanceService']=_0x114d77,this[_0x209045(0x2ae)]=_0xf5e2e9,this['_configService']=_0x37c9aa;}async['runOnServer'](_0x317ac3,_0x5b400e,_0x1f409c,..._0xd1a1cc){const _0x3969f8=_0xb4aea2;var _0x57878a,_0x5153f5,_0x45e9e7,_0x4421a3;const _0x3b583b=this[_0x3969f8(0x118)][_0x3969f8(0x290)]();if(!_0x3b583b)throw new Error(_0x3969f8(0x2d5));const _0x349302=((_0x57878a=this['_configService'][_0x3969f8(0x2c1)](_0x562fff))!=null?_0x57878a:_0x5b3819)+'/'+_0x317ac3+_0x3969f8(0x211)+_0x5b400e,_0xda7c59=new URL(window[_0x3969f8(0x2ea)][_0x3969f8(0x241)]),_0x1d3043={'scriptId':_0x317ac3,'runId':(_0x5153f5=_0xda7c59[_0x3969f8(0x1ef)][_0x3969f8(0x278)](_0x3969f8(0x2f7)))!=null?_0x5153f5:'','function':_0x5b400e,'unitId':_0x3b583b['getUnitId'](),'argsOfFunction':JSON[_0x3969f8(0x20f)](_0xd1a1cc),'invokeId':(_0x45e9e7=_0x1f409c[_0x3969f8(0x21d)])!=null?_0x45e9e7:'','executionId':(_0x4421a3=_0x1f409c['executionId'])!=null?_0x4421a3:''};try{const _0x448367=await this[_0x3969f8(0x2ae)][_0x3969f8(0x17a)](_0x349302,{'body':_0x1d3043});return _0x448367['body'][_0x3969f8(0x128)]&&_0x448367[_0x3969f8(0x158)][_0x3969f8(0x128)]['code']!==Z['OK']?_0x3969f8(0x120):_0x448367[_0x3969f8(0x158)][_0x3969f8(0x13a)];}catch{return _0x3969f8(0x120);}}};_t=yn([be(0x0,_0x503376),be(0x1,_0x230e5d(_0x2a5af9)),be(0x2,_0xfa23ed)],_t);const lt=0x7530,ht=_0xb4aea2(0x1c2);class tr extends _0x1171bd{constructor(){const _0x7e386f=_0xb4aea2;super(),l(this,'_id',_0x37b68e()),l(this,'_selfUnitIDs',new Set()),l(this,_0x7e386f(0x2d3),new Map()),l(this,_0x7e386f(0x2ce),null),l(this,_0x7e386f(0x111),new Map()),l(this,'_unitStatus',new Map()),this[_0x7e386f(0x23a)]();}['dispose'](){const _0x1650ac=_0xb4aea2;super['dispose'](),this[_0x1650ac(0x111)][_0x1650ac(0x10b)]((_0x142588,_0x33b7a2)=>this[_0x1650ac(0x123)](_0x33b7a2)),this[_0x1650ac(0x2ce)]&&window[_0x1650ac(0x2d9)](this[_0x1650ac(0x2ce)]);}[_0xb4aea2(0x11f)](_0x5f3bd0){const _0x384491=_0xb4aea2;return this['_ensureSubject'](_0x5f3bd0)[_0x384491(0x10a)](_0x77701e());}[_0xb4aea2(0x24f)](_0x14b7c4){const _0xf5bd7c=_0xb4aea2;this[_0xf5bd7c(0x21a)][_0xf5bd7c(0x14d)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0xf5bd7c(0x2a2)](_0x14b7c4),this[_0xf5bd7c(0x197)]({'type':0x0,'memberID':this[_0xf5bd7c(0x112)],'unitIDs':[_0x14b7c4],'isForwarded':!0x1});}[_0xb4aea2(0x147)](_0x48cf88){const _0x3f8b27=_0xb4aea2;this[_0x3f8b27(0x21a)]['delete'](_0x48cf88),this[_0x3f8b27(0x21a)][_0x3f8b27(0x14d)]===0x0&&this[_0x3f8b27(0x2ce)]&&window[_0x3f8b27(0x2d9)](this[_0x3f8b27(0x2ce)]);}[_0xb4aea2(0x23a)](){const _0x70435d=_0xb4aea2;this[_0x70435d(0x2b4)](_0x495f2d(_0x4e9c50(window,_0x70435d(0x296))[_0x70435d(0x174)](_0x470168=>{const _0x4eeb6c=_0x70435d;if(_0x470168[_0x4eeb6c(0x2a6)]!==ht||!_0x470168[_0x4eeb6c(0x1f1)])return;const _0x22c838=JSON[_0x4eeb6c(0x228)](_0x470168['newValue']);this[_0x4eeb6c(0x302)](_0x22c838);}))),window['addEventListener']('unload',()=>this[_0x70435d(0x197)]({'type':0x1,'memberID':this[_0x70435d(0x112)],'unitIDs':Array[_0x70435d(0x148)](this[_0x70435d(0x21a)])}));}[_0xb4aea2(0x302)](_0x9416ac){const _0x71fd1e=_0xb4aea2;switch(_0x9416ac[_0x71fd1e(0x2ed)]){case 0x0:this[_0x71fd1e(0x1c3)](_0x9416ac);break;case 0x1:this[_0x71fd1e(0x172)](_0x9416ac);break;case 0x2:this[_0x71fd1e(0x309)](_0x9416ac);break;}}['_handleJoinEvent'](_0x58cd78){const _0x2ace37=_0xb4aea2,{unitIDs:_0x19a51d,memberID:_0x44e785,isForwarded:_0x2e5352}=_0x58cd78;_0x19a51d[_0x2ace37(0x10b)](_0x427510=>{const _0x2eca5f=_0x2ace37;if(!_0x2e5352&&this['_unitOnClients'][_0x2eca5f(0x198)](_0x427510)&&this[_0x2eca5f(0x199)](_0x427510)[_0x2eca5f(0x21b)](_0x499425[_0x2eca5f(0x236)]),!this[_0x2eca5f(0x2d3)][_0x2eca5f(0x198)](_0x427510)||!this['_unitOnClients'][_0x2eca5f(0x278)](_0x427510)[_0x2eca5f(0x198)](_0x44e785)){const _0x138be=this[_0x2eca5f(0x2d3)][_0x2eca5f(0x278)](_0x427510)||new Set();_0x138be[_0x2eca5f(0x2a2)](_0x44e785),this['_unitOnClients'][_0x2eca5f(0x2c6)](_0x427510,_0x138be),this['_scheduleClearOtherTimer'](_0x44e785);}}),_0x2e5352||this['_send']({'type':0x0,'memberID':this[_0x2ace37(0x112)],'unitIDs':[...this[_0x2ace37(0x21a)]],'isForwarded':!0x0});}[_0xb4aea2(0x1b5)](_0x295080){const _0x15a1d1=_0xb4aea2;this['_removeClearOtherTimer'](_0x295080);const _0x4ede23=window[_0x15a1d1(0x1cc)](()=>{const _0x1e08b4=_0x15a1d1;this[_0x1e08b4(0x2d3)][_0x1e08b4(0x10b)](_0x162b57=>{_0x162b57['delete'](_0x295080);});},lt*0x2);this['_clearOtherTimers']['set'](_0x295080,_0x4ede23);}[_0xb4aea2(0x123)](_0x32a9ed){const _0x3e6ee5=_0xb4aea2;if(this[_0x3e6ee5(0x111)][_0x3e6ee5(0x198)](_0x32a9ed)){const _0x44af0a=this[_0x3e6ee5(0x111)][_0x3e6ee5(0x278)](_0x32a9ed);_0x44af0a&&window[_0x3e6ee5(0x1d6)](_0x44af0a),this[_0x3e6ee5(0x111)][_0x3e6ee5(0x2c6)](_0x32a9ed,null);}}[_0xb4aea2(0x172)](_0x2c8205){const _0x5d1e1f=_0xb4aea2,{memberID:_0x213e33,unitIDs:_0x404880}=_0x2c8205;_0x404880[_0x5d1e1f(0x10b)](_0x5b5ae3=>{const _0x46f5c1=_0x5d1e1f;var _0x3e1ceb;const _0x3a33c1=this[_0x46f5c1(0x2d3)][_0x46f5c1(0x278)](_0x5b5ae3);_0x3a33c1&&(_0x3a33c1[_0x46f5c1(0x2dc)](_0x213e33),(_0x3e1ceb=this['_ensureSubject'](_0x5b5ae3))==null||_0x3e1ceb[_0x46f5c1(0x21b)](_0x3a33c1[_0x46f5c1(0x14d)]===0x0?_0x499425[_0x46f5c1(0x15d)]:_0x499425['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x213e33);}[_0xb4aea2(0x309)](_0x481ba8){const _0x2b93c0=_0xb4aea2;this[_0x2b93c0(0x1b5)](_0x481ba8[_0x2b93c0(0x25d)]);}[_0xb4aea2(0x197)](_0x4d45b6){const _0x274d0c=_0xb4aea2;localStorage['setItem'](ht,JSON[_0x274d0c(0x20f)](_0x4d45b6));}[_0xb4aea2(0x134)](){const _0x589630=_0xb4aea2;this[_0x589630(0x2ce)]=window[_0x589630(0x308)](()=>{const _0x883f98=_0x589630;this['_send']({'type':0x2,'memberID':this[_0x883f98(0x112)]});},lt);}[_0xb4aea2(0x199)](_0x2920b8){const _0x1d41da=_0xb4aea2;return this['_unitStatus'][_0x1d41da(0x198)](_0x2920b8)||this[_0x1d41da(0x156)][_0x1d41da(0x2c6)](_0x2920b8,new _0x303f3b(_0x499425[_0x1d41da(0x15d)])),this[_0x1d41da(0x156)][_0x1d41da(0x278)](_0x2920b8);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};