@univerjs-pro/collaboration-client-ui 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4fce49=_0x2954;(function(_0x1f08be,_0x4f7172){const _0x1ff221=_0x2954,_0x65282e=_0x1f08be();while(!![]){try{const _0x554d27=parseInt(_0x1ff221(0x2b6))/0x1+parseInt(_0x1ff221(0x1ff))/0x2+parseInt(_0x1ff221(0x145))/0x3*(-parseInt(_0x1ff221(0x1cd))/0x4)+parseInt(_0x1ff221(0x23c))/0x5+parseInt(_0x1ff221(0x1f9))/0x6*(parseInt(_0x1ff221(0x225))/0x7)+parseInt(_0x1ff221(0x226))/0x8+parseInt(_0x1ff221(0xfc))/0x9*(-parseInt(_0x1ff221(0x138))/0xa);if(_0x554d27===_0x4f7172)break;else _0x65282e['push'](_0x65282e['shift']());}catch(_0xf80208){_0x65282e['push'](_0x65282e['shift']());}}}(_0x3b21,0x2a389));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x444960,CollaborationController as _0x7bdb56,CollaborationSessionService as _0x1f6015,CollaborationSocketService as _0x3b89cd,CollaborationStatus as _0x47e920,CollaborationUIEventId as _0x10468e,CollaborationUIEventService as _0xe59bf2,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x38aa17,DEFAULT_WS_SESSION_TICKET_URL as _0x28d880,DataLoaderService as _0x44aa7a,DocCollaborationEntity as _0x500196,ILocalCacheService as _0x223121,LOCAL_CACHE_INTERVAL as _0xb5c7a6,LOCAL_CACHE_INTERVAL_KEY as _0x531d40,MemberService as _0x4baa64,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x47a206,SessionStatus as _0x9424b9,UnitStatus as _0x3191c3,UniverCollaborationClientPlugin as _0x54299c,getLocalCacheKey as _0x32c6e5}from'@univerjs-pro/collaboration-client';import{COLORS as _0x3b0241,CanceledError as _0x21b9c7,ColorKit as _0x4ad359,DOC_RANGE_TYPE as _0x3ab031,DependentOn as _0x471b5a,Disposable as _0x3b1408,DisposableCollection as _0x2e2922,ICommandService as _0x3d1e31,IConfigService as _0x4745e9,ILocalStorageService as _0x485df1,ILogService as _0x821e06,IUniverInstanceService as _0x512649,Inject as _0x5e7f17,Injector as _0x396982,LocaleService as _0x2f08d4,Optional as _0xce12c1,Plugin as _0x5449b2,Rectangle as _0x357f70,RxDisposable as _0x3ba365,ThemeService as _0x3ba539,Tools as _0x4453b6,UniverInstanceType as _0x991a39,Workbook as _0x2a7d79,createIdentifier as _0x5310e2,debounce as _0x58951d,fromEventSubject as _0x4e813d,generateRandomId as _0x1321c7,isFormulaId as _0x3fbf1e,isFormulaString as _0x74776e,isInternalEditorID as _0xc2e873,merge as _0x5e0eaa,mergeOverrideWithDependencies as _0x572182,registerDependencies as _0x375ff6,toDisposable as _0xf76a73,touchDependencies as _0x4afc34}from'@univerjs/core';import{BuiltInUIPart as _0x3d8486,IBeforeCloseService as _0x1ad179,IMessageService as _0x5f57d5,INotificationService as _0x46bdef,IUIPartsService as _0x1b99ce,connectInjector as _0x394512,useDependency as _0x5e4cdb,useObservable as _0x490604}from'@univerjs/ui';import{BehaviorSubject as _0x12f80d,Subject as _0x12ea0c,combineLatest as _0xeb1450,debounceTime as _0x23d81c,distinctUntilChanged as _0x5203c4,filter as _0x393b4e,fromEvent as _0x3cf39d,mapTo as _0x896674,merge as _0x2deeef,of as _0x349657,shareReplay as _0x3784af,switchMap as _0x2ffe1d,takeUntil as _0x340706}from'rxjs';import{distinctUntilChanged as _0x4411d8,filter as _0x39cf12,map as _0x2cc7a2,switchMap as _0x4ecc19,takeUntil as _0x53e7b7,throttleTime as _0x1b75d1}from'rxjs/operators';import{MessageType as _0x5d4565,Tooltip as _0x187211,clsx as _0x290b16}from'@univerjs/design';import{LoadingMultiIcon as _0xfba207,OffLineIcon as _0xa03e15,OnLineIcon as _0x37d270}from'@univerjs/icons';import{useCallback as _0x2d91be,useMemo as _0x113765}from'react';import{jsx as _0xbaa0cf}from'react/jsx-runtime';import{IRemoteInstanceService as _0x3c41a0}from'@univerjs/rpc';import{EffectRefRangId as _0x43c900,RefRangeService as _0x432654,SetSelectionsOperation as _0x2c4cb0,SetWorksheetActivateCommand as _0x49b308,SheetsSelectionsService as _0x4b2ff9,handleDeleteRangeMoveLeft as _0x43b111,handleDeleteRangeMoveUp as _0x58a433,handleIRemoveCol as _0x597f88,handleIRemoveRow as _0x36085e,handleInsertCol as _0x2dd4cb,handleInsertRangeMoveDown as _0x53d2fe,handleInsertRangeMoveRight as _0x18b63c,handleInsertRow as _0x40f9e7,handleMoveRange as _0x245987,runRefRangeMutations as _0x5dc49d}from'@univerjs/sheets';import{IRenderManagerService as _0x5de006,Rect as _0x2aadca,RegularPolygon as _0x541921,SHEET_VIEWPORT_KEY as _0x27e8ed,Shape as _0x1f2d3f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x48c482,Vector2 as _0x343cd2,getColor as _0x530790}from'@univerjs/engine-render';function _0x2954(_0x1d60f6,_0xed1871){_0x1d60f6=_0x1d60f6-0xa7;const _0x3b21c4=_0x3b21();let _0x295490=_0x3b21c4[_0x1d60f6];return _0x295490;}import{HTTPService as _0x3c0cc7,ISocketService as _0x2390f3,WebSocketService as _0x311ee6}from'@univerjs/network';import{DocIMEInputManagerService as _0x10a1c7,IDocClipboardService as _0x1ac5b9,NodePositionConvertToCursor as _0x5e5781,NodePositionConvertToRectRange as _0x337625,SetDocZoomRatioOperation as _0x38eb92,TEXT_RANGE_LAYER_INDEX as _0x316337}from'@univerjs/docs-ui';import{IImageIoService as _0x29c8af}from'@univerjs/drawing';import{CollaborationEvent as _0x548cc2,ISnapshotServerService as _0x40f7a1,ITransformService as _0x8dea2,RevisionService as _0x4a2529,isTransformMutationFailure as _0x20ccdb,isTransformMutationsWithChangesetSuccess as _0x1c0730}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x27e270,DocSkeletonManagerService as _0x2b9af4,DocStateChangeManagerService as _0x274af1,RichTextEditingMutation as _0x267473,SetTextSelectionsOperation as _0x3e0925}from'@univerjs/docs';import{FormulaExecuteStageType as _0x1fcf5c,FormulaExecutedStateType as _0x39cb1e,SetFormulaCalculationNotificationMutation as _0x303f99,SetFormulaCalculationStartMutation as _0x5de206,deserializeRangeWithSheet as _0x29280a,serializeRangeWithSheet as _0x4a216b}from'@univerjs/engine-formula';import{ISlideDrawingStateService as _0x450161,buildDrawingOKey as _0xd51333}from'@univerjs-pro/slides-ui';import{SheetSkeletonManagerService as _0x3ba684,getCoordByCell as _0x42e801,getSheetObject as _0x2ff902}from'@univerjs/sheets-ui';import{ErrorCode as _0x1cfe9f}from'@univerjs/protocol';function Xt(_0x1cfc2a){const _0x5c05a4=_0x2954;switch(_0x1cfc2a){case _0x47e920[_0x5c05a4(0x1bd)]:return{'icon':_0xbaa0cf(_0xa03e15,{}),'colorClass':_0x5c05a4(0xac),'i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x5c05a4(0x28f)};case _0x47e920[_0x5c05a4(0x195)]:return{'icon':_0xbaa0cf(_0xa03e15,{}),'colorClass':'univer-text-orange-500','i18nKey':_0x5c05a4(0xc0),'clickable':!0x1,'indicator':_0x5c05a4(0x28f)};case _0x47e920[_0x5c05a4(0x273)]:return{'icon':_0xbaa0cf(_0xfba207,{}),'colorClass':_0x5c05a4(0xef),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x5c05a4(0x223)};case _0x47e920[_0x5c05a4(0xff)]:return{'icon':_0xbaa0cf(_0x37d270,{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x5c05a4(0x28f)};case _0x47e920[_0x5c05a4(0x13b)]:case _0x47e920[_0x5c05a4(0x250)]:return{'icon':_0xbaa0cf(_0xfba207,{}),'colorClass':_0x5c05a4(0xef),'i18nKey':_0x5c05a4(0xf2),'clickable':!0x1,'indicator':_0x5c05a4(0x223)};case _0x47e920['PENDING']:return{'icon':_0xbaa0cf(_0xfba207,{}),'colorClass':_0x5c05a4(0xef),'i18nKey':_0x5c05a4(0xf2),'clickable':!0x1,'indicator':_0x5c05a4(0x223)};case _0x47e920[_0x5c05a4(0x27c)]:return{'icon':_0xbaa0cf(_0x37d270,{}),'colorClass':'univer-text-green-500','i18nKey':_0x5c05a4(0xf4),'clickable':!0x1,'indicator':_0x5c05a4(0x28f)};}}function Zt(_0x4afaa5){const _0x50a40e=_0x2954;let {status$:_0x11cdb3}=_0x4afaa5,_0x51b854=_0x490604(_0x11cdb3,_0x47e920['NOT_COLLAB']),_0x37ec7e=_0x5e4cdb(_0x2f08d4),_0x3bdc65=_0x5e4cdb(_0x1f6015),_0x5c4dc3=_0x113765(()=>Xt(_0x51b854),[_0x51b854]),_0x3c23f4=_0x51b854!==_0x47e920[_0x50a40e(0x1bd)],_0x3c732b=_0x37ec7e['t'](_0x5c4dc3[_0x50a40e(0x16c)]),_0x2ff5e1=_0x5c4dc3[_0x50a40e(0x28d)]?_0x37ec7e['t'](_0x5c4dc3['tooltipKey']):_0x3c732b,_0x4d3140=_0x2d91be(()=>{const _0x3f22d0=_0x50a40e;_0x3c23f4||_0x3bdc65[_0x3f22d0(0x1ef)]();},[_0x3c23f4,_0x3bdc65]),_0x4f524d=_0x2d91be(_0x28a53a=>{const _0x212a7d=_0x50a40e;!_0x3c23f4&&(_0x28a53a['key']===_0x212a7d(0x146)||_0x28a53a[_0x212a7d(0x2d4)]==='\x20')&&(_0x28a53a[_0x212a7d(0x1d1)](),_0x3bdc65[_0x212a7d(0x1ef)]());},[_0x3c23f4,_0x3bdc65]),_0x4a3581=_0xbaa0cf('span',{'className':_0x290b16(_0x50a40e(0x221),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x5c4dc3[_0x50a40e(0x1a9)],{'univer-animate-spin':_0x5c4dc3['indicator']==='spin','univer-animate-pulse':_0x5c4dc3[_0x50a40e(0x24f)]===_0x50a40e(0x291)}),'aria-hidden':_0x50a40e(0x1f7),'children':_0x5c4dc3[_0x50a40e(0x2d7)]}),_0x9f6161=_0xbaa0cf(_0x50a40e(0x10c),{'className':_0x290b16(_0x50a40e(0x221),_0x50a40e(0x17b),_0x50a40e(0x265),_0x50a40e(0x1fb),_0x50a40e(0x28e),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5c4dc3[_0x50a40e(0x2dc)],'univer-cursor-default':!_0x5c4dc3[_0x50a40e(0x2dc)]}),'children':_0x4a3581});return _0x5c4dc3[_0x50a40e(0x2dc)]?_0xbaa0cf(_0x187211,{'title':_0x2ff5e1,'placement':'bottom','children':_0xbaa0cf(_0x50a40e(0x25b),{'type':_0x50a40e(0x25b),'onClick':_0x4d3140,'onKeyDown':_0x4f524d,'className':_0x290b16(_0x50a40e(0x12e),'univer-border-none\x20univer-bg-transparent',_0x50a40e(0xb6),_0x50a40e(0xf1)),'aria-label':_0x3c732b+_0x50a40e(0x2f0)+_0x2ff5e1,'role':_0x50a40e(0xec),'aria-live':'polite','aria-atomic':'true','children':_0x9f6161})}):_0xbaa0cf(_0x187211,{'title':_0x2ff5e1,'placement':_0x50a40e(0x242),'children':_0xbaa0cf('div',{'className':_0x290b16(_0x50a40e(0x12e),_0x50a40e(0x139),'univer-m-0\x20univer-p-0'),'aria-label':_0x3c732b,'role':_0x50a40e(0xec),'aria-live':_0x50a40e(0x2ed),'aria-atomic':'true','children':_0x9f6161})});}function W(_0x1e324e){'@babel/helpers - typeof';const _0x20f33f=_0x2954;return W=typeof Symbol==_0x20f33f(0x228)&&typeof Symbol[_0x20f33f(0x1e1)]=='symbol'?function(_0x26e0ae){return typeof _0x26e0ae;}:function(_0x22a270){const _0xc257c4=_0x20f33f;return _0x22a270&&typeof Symbol==_0xc257c4(0x228)&&_0x22a270[_0xc257c4(0x25e)]===Symbol&&_0x22a270!==Symbol[_0xc257c4(0x182)]?_0xc257c4(0x2c9):typeof _0x22a270;},W(_0x1e324e);}function Qt(_0x139d59,_0x5f1593){const _0x5a128e=_0x2954;if(W(_0x139d59)!='object'||!_0x139d59)return _0x139d59;var _0x334034=_0x139d59[Symbol[_0x5a128e(0x108)]];if(_0x334034!==void 0x0){var _0x568668=_0x334034[_0x5a128e(0x2e8)](_0x139d59,_0x5f1593||_0x5a128e(0x29a));if(W(_0x568668)!=_0x5a128e(0x11a))return _0x568668;throw TypeError(_0x5a128e(0x243));}return(_0x5f1593===_0x5a128e(0x1a0)?String:Number)(_0x139d59);}function $t(_0x168aee){const _0x293723=_0x2954;var _0x3a9b16=Qt(_0x168aee,_0x293723(0x1a0));return W(_0x3a9b16)==_0x293723(0x2c9)?_0x3a9b16:_0x3a9b16+'';}function G(_0x5ddaed,_0x40fc7e,_0x25c2ec){const _0x305383=_0x2954;return(_0x40fc7e=$t(_0x40fc7e))in _0x5ddaed?Object[_0x305383(0x22d)](_0x5ddaed,_0x40fc7e,{'value':_0x25c2ec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ddaed[_0x40fc7e]=_0x25c2ec,_0x5ddaed;}function K(_0x30bb07,_0x4fcc3b){return function(_0x18aaa3,_0x2a13d8){_0x4fcc3b(_0x18aaa3,_0x2a13d8,_0x30bb07);};}function q(_0x3274db,_0x40d06a,_0x42b97b,_0x2ab0a9){const _0x2d12ee=_0x2954;var _0x448a20=arguments[_0x2d12ee(0x26a)],_0x3eef50=_0x448a20<0x3?_0x40d06a:_0x2ab0a9===null?_0x2ab0a9=Object[_0x2d12ee(0x14d)](_0x40d06a,_0x42b97b):_0x2ab0a9,_0x1277d6;if(typeof Reflect==_0x2d12ee(0x11a)&&typeof Reflect['decorate']==_0x2d12ee(0x228))_0x3eef50=Reflect[_0x2d12ee(0x156)](_0x3274db,_0x40d06a,_0x42b97b,_0x2ab0a9);else{for(var _0x1eaeb8=_0x3274db[_0x2d12ee(0x26a)]-0x1;_0x1eaeb8>=0x0;_0x1eaeb8--)(_0x1277d6=_0x3274db[_0x1eaeb8])&&(_0x3eef50=(_0x448a20<0x3?_0x1277d6(_0x3eef50):_0x448a20>0x3?_0x1277d6(_0x40d06a,_0x42b97b,_0x3eef50):_0x1277d6(_0x40d06a,_0x42b97b))||_0x3eef50);}return _0x448a20>0x3&&_0x3eef50&&Object['defineProperty'](_0x40d06a,_0x42b97b,_0x3eef50),_0x3eef50;}let J=class extends _0x3b1408{constructor(_0x5edff3,_0x88eed,_0x1cd54e,_0x3f7862){const _0x39741e=_0x2954;super(),this[_0x39741e(0x2cd)]=_0x5edff3,this[_0x39741e(0x1ee)]=_0x88eed,this[_0x39741e(0xb3)]=_0x1cd54e,this[_0x39741e(0xd5)]=_0x3f7862,G(this,_0x39741e(0x101),new _0x12f80d(_0x47e920['NOT_COLLAB'])),this['_initStatusComponent'](),this[_0x39741e(0x18c)]();}[_0x4fce49(0x18c)](){const _0x16f1b2=_0x4fce49;this['disposeWithMe'](_0x2deeef(this[_0x16f1b2(0x2cd)][_0x16f1b2(0x203)],this[_0x16f1b2(0x2cd)]['getCurrentTypeOfUnit$'](_0x991a39[_0x16f1b2(0x202)]),this[_0x16f1b2(0x2cd)][_0x16f1b2(0x154)](_0x991a39[_0x16f1b2(0xc3)]))[_0x16f1b2(0x1fd)](_0x2cc7a2(()=>en(this[_0x16f1b2(0x2cd)])),_0x4411d8(),_0x2ffe1d(_0x2e5aaf=>_0x2e5aaf?this[_0x16f1b2(0xb3)][_0x16f1b2(0x133)](_0x2e5aaf):_0x349657(null)),_0x2ffe1d(_0x5bd9d4=>_0x5bd9d4?_0x5bd9d4[_0x16f1b2(0x194)]:_0x349657(_0x47e920[_0x16f1b2(0xff)])))[_0x16f1b2(0x14c)](_0x23897f=>{this['_status$']['next'](_0x23897f);}));}[_0x4fce49(0x191)](){const _0x2941c2=_0x4fce49;this[_0x2941c2(0x20b)](this[_0x2941c2(0xd5)]['registerComponent'](_0x3d8486[_0x2941c2(0x293)],()=>_0x394512(tn({'status$':this[_0x2941c2(0x101)]['asObservable']()}),this[_0x2941c2(0x1ee)])));}};J=q([K(0x0,_0x512649),K(0x1,_0x5e7f17(_0x396982)),K(0x2,_0x5e7f17(_0x7bdb56)),K(0x3,_0x1b99ce)],J);function en(_0x36face){const _0x46645a=_0x4fce49;let _0x4a3117=_0x36face[_0x46645a(0x187)](),_0x3ab195=_0x4a3117==null?void 0x0:_0x4a3117['getUnitId']();if(_0x3ab195&&!_0xc2e873(_0x3ab195))return _0x3ab195;let _0x32ec6e=_0x36face[_0x46645a(0x237)](_0x991a39[_0x46645a(0x202)]),_0x7dbc9a=_0x32ec6e==null?void 0x0:_0x32ec6e[_0x46645a(0x2b0)]();if(_0x7dbc9a&&!_0xc2e873(_0x7dbc9a))return _0x7dbc9a;let _0xd5ec86=_0x36face[_0x46645a(0x237)](_0x991a39[_0x46645a(0xc3)]);if(_0xd5ec86)return _0xd5ec86[_0x46645a(0x2b0)]();let _0x2bc4e8=_0x36face['getAllUnitsForType'](_0x991a39['UNIVER_DOC'])[_0x46645a(0x2b9)](_0x4e5489=>!_0xc2e873(_0x4e5489[_0x46645a(0x2b0)]()));return _0x2bc4e8?_0x2bc4e8['getUnitId']():null;}function tn(_0x10b6ab){let {status$:_0x2d0757}=_0x10b6ab;return function(){return _0xbaa0cf(Zt,{'status$':_0x2d0757});};}const nn=_0x5310e2(_0x4fce49(0xbf));let Y=class extends _0x3ba365{constructor(_0x3893d2,_0x57b356,_0x5e5cbe,_0x1ff4a8,_0x5cda35){const _0x2aaf9e=_0x4fce49;super(),this[_0x2aaf9e(0x252)]=_0x3893d2,this[_0x2aaf9e(0x2c5)]=_0x57b356,this[_0x2aaf9e(0x21c)]=_0x5e5cbe,this['_dataLoaderService']=_0x1ff4a8,_0x5cda35?_0x5cda35==null||_0x5cda35['whenReady']()[_0x2aaf9e(0x238)](()=>this['_init']()):(this[_0x2aaf9e(0x2c5)][_0x2aaf9e(0x162)](_0x2aaf9e(0x105),_0x2aaf9e(0x2bc)),this['_init']());}async[_0x4fce49(0x2ad)](){const _0xc09159=_0x4fce49;let _0x51fd89=this[_0xc09159(0x252)]['getParam']('unit'),_0x5ed38a=this[_0xc09159(0x252)][_0xc09159(0xd0)](_0xc09159(0x20a)),_0x364ca7=this[_0xc09159(0x252)][_0xc09159(0xd0)]('subunit');if(!_0x51fd89||!_0x5ed38a){this[_0xc09159(0x2c5)]['debug'](_0xc09159(0x105),_0xc09159(0xd7));return;}let _0x58fb9d=await this[_0xc09159(0x2cc)][_0xc09159(0x22e)](_0x51fd89,Number(_0x5ed38a),_0x364ca7);_0x58fb9d&&_0x58fb9d instanceof _0x2a7d79&&this['_setupSubUnitSync'](_0x58fb9d);}async[_0x4fce49(0x1e0)](_0x2692b8){const _0x339ded=_0x4fce49;await this[_0x339ded(0x254)](_0x2692b8),_0x2692b8[_0x339ded(0x1a7)][_0x339ded(0x1fd)](_0x340706(this[_0x339ded(0x1ce)]))[_0x339ded(0x14c)](_0x1bf677=>{_0x1bf677&&this['_updateURLWithCurrentState'](_0x1bf677);}),this[_0x339ded(0x252)][_0x339ded(0x1b9)][_0x339ded(0x1fd)](_0x340706(this['dispose$']))['subscribe'](()=>this[_0x339ded(0x254)](_0x2692b8));}['_updateURLWithCurrentState'](_0x163fa3,_0x102a34=!0x1){const _0x4ad7de=_0x4fce49;let _0x4e3894=this['_urlService']['getParam'](_0x4ad7de(0x2a8));_0x163fa3[_0x4ad7de(0x104)]()!==_0x4e3894&&this[_0x4ad7de(0x252)][_0x4ad7de(0x1b0)](_0x4ad7de(0x2a8),_0x163fa3[_0x4ad7de(0x104)](),_0x102a34);}async[_0x4fce49(0x254)](_0x171a72){const _0x5cd2d6=_0x4fce49;var _0x385664;let _0xde665c=this[_0x5cd2d6(0x252)][_0x5cd2d6(0xd0)]('subunit');if(!_0xde665c||!_0x171a72[_0x5cd2d6(0x1f3)](_0xde665c)){let _0x51c761=_0x171a72[_0x5cd2d6(0x177)]()[0x0],_0x41de18=_0x171a72[_0x5cd2d6(0x1f3)](_0x51c761);if(!_0x41de18)return;this[_0x5cd2d6(0x144)](_0x41de18,!0x0),await this[_0x5cd2d6(0x21c)]['executeCommand'](_0x49b308['id'],{'unitId':_0x171a72['getUnitId'](),'subUnitId':_0x51c761});return;}((_0x385664=_0x171a72[_0x5cd2d6(0x1e7)]())==null?void 0x0:_0x385664[_0x5cd2d6(0x104)]())!==_0xde665c&&await this['_commandService'][_0x5cd2d6(0x295)](_0x49b308['id'],{'unitId':_0x171a72[_0x5cd2d6(0x2b0)](),'subUnitId':_0xde665c});}};Y=q([K(0x0,nn),K(0x1,_0x821e06),K(0x2,_0x3d1e31),K(0x3,_0x5e7f17(_0x44aa7a)),K(0x4,_0xce12c1(_0x3c41a0))],Y);var rn=_0x4fce49(0x2d3),an=_0x4fce49(0x19d);const on={};let sn=class extends _0x3ba365{constructor(_0x230c7d,_0x7d8748){const _0x4b1db3=_0x4fce49;super(),this[_0x4b1db3(0x263)]=_0x230c7d,this[_0x4b1db3(0xb8)]=_0x7d8748,this['_init']();}[_0x4fce49(0x2ad)](){const _0x2ae6f7=_0x4fce49;let _0x4db7d3=this;this[_0x2ae6f7(0x20b)](this[_0x2ae6f7(0x263)][_0x2ae6f7(0x2bb)]({'onBeforePasteImage':async _0x541b2c=>{const _0x3817d5=_0x2ae6f7;let _0x1f71ce=await _0x4db7d3[_0x3817d5(0xb8)][_0x3817d5(0x1aa)](_0x541b2c);return _0x1f71ce?{'source':_0x1f71ce[_0x3817d5(0x2e1)],'imageSourceType':_0x1f71ce[_0x3817d5(0xb2)]}:null;}}));}};sn=q([K(0x0,_0x1ac5b9),K(0x1,_0x29c8af)],sn);const cn=[_0x4fce49(0x166),_0x4fce49(0x257),_0x4fce49(0x1f0),_0x4fce49(0x2aa),'blue.400',_0x4fce49(0x10f)];var ln=class extends _0x3b1408{constructor(..._0x14f1c6){const _0x277438=_0x4fce49;super(..._0x14f1c6),G(this,_0x277438(0x271),new Map()),G(this,_0x277438(0x1be),0x0);}[_0x4fce49(0x124)](_0xb30276){const _0x2d7d3c=_0x4fce49;if(this[_0x2d7d3c(0x271)][_0x2d7d3c(0x140)](_0xb30276))return this['_assignedColors'][_0x2d7d3c(0x1c2)](_0xb30276);let _0x38cccc=cn[this['_colorIndex']];return this[_0x2d7d3c(0x1be)]=(this[_0x2d7d3c(0x1be)]+0x1)%cn['length'],this[_0x2d7d3c(0x271)]['set'](_0xb30276,_0x38cccc),_0x38cccc;}};function un(_0x4e878e){const _0x15d391=_0x4fce49;let _0x57392d='';for(let _0x9ff5e7 of _0x4e878e){let {startOffset:_0x4659af,endOffset:_0x3e7690,isActive:_0x4faf55,rangeType:_0x1456fc,segmentId:_0x83c483,segmentPage:_0x37998b}=_0x9ff5e7;_0x57392d[_0x15d391(0x26a)]&&(_0x57392d+=','),_0x57392d+=_0x4659af+':'+_0x3e7690+':'+(_0x4faf55?'1':'0')+':'+_0x1456fc+':'+_0x83c483+':'+_0x37998b;}return _0x57392d;}function dn(_0xbfe546){const _0x1e7050=_0x4fce49;let _0x160287=_0xbfe546[_0x1e7050(0xf9)](','),_0x13e66e=[];for(let _0x5360eb of _0x160287){let [_0x52ca8a,_0x137a86,_0x1d437c,_0x53048a,_0x4c4a91,_0x36bda4]=_0x5360eb[_0x1e7050(0xf9)](':');_0x13e66e['push']({'startOffset':Number(_0x52ca8a),'endOffset':Number(_0x137a86),'collapsed':_0x52ca8a===_0x137a86,'isActive':_0x1d437c==='1','rangeType':_0x53048a===_0x3ab031[_0x1e7050(0x220)]?_0x3ab031[_0x1e7050(0x220)]:_0x3ab031['RECT'],'segmentId':typeof _0x4c4a91==_0x1e7050(0x1a0)?String(_0x4c4a91):'','segmentPage':Number(_0x36bda4==null?-0x1:_0x36bda4)});}return _0x13e66e[_0x1e7050(0x174)](_0x490a82=>_0x490a82[_0x1e7050(0x25d)])||(_0x13e66e[0x0][_0x1e7050(0x25d)]=!0x0),_0x13e66e;}var fn=class extends _0x3ba365{constructor(..._0x4c0a1d){const _0x41e527=_0x4fce49;super(..._0x4c0a1d),G(this,_0x41e527(0x17c),new _0x12f80d(null)),G(this,_0x41e527(0x2e0),this[_0x41e527(0x17c)][_0x41e527(0xeb)]());}[_0x4fce49(0x227)](_0x579e4f){const _0x3b62c1=_0x4fce49;let {unitID:_0xde35b1,memberID:_0x351650,textRanges:_0x41c187}=_0x579e4f,_0x356a02=un(_0x41c187);if(_0x356a02==='')return;let _0x7e662c={'unitID':_0xde35b1,'memberID':_0x351650,'selection':_0x356a02};this[_0x3b62c1(0x17c)][_0x3b62c1(0x2ba)](_0x7e662c);}};let pn=class extends _0x3ba365{get[_0x4fce49(0x1dc)](){const _0x23161b=_0x4fce49;return this[_0x23161b(0x2a0)][_0x23161b(0x179)]();}get['roomMembers'](){const _0xc76382=_0x4fce49;return this[_0xc76382(0x186)][_0xc76382(0x179)]();}constructor(_0x3c6798,_0x3c2230,_0x519510,_0x5cd4fa,_0x73fbc5,_0x3a1f37,_0x3d406a,_0x450ac8,_0x368102){const _0x22b751=_0x4fce49;super(),this[_0x22b751(0x19b)]=_0x3c6798,this[_0x22b751(0x2c8)]=_0x3c2230,this['_injector']=_0x519510,this[_0x22b751(0x2cb)]=_0x5cd4fa,this[_0x22b751(0xb0)]=_0x73fbc5,this['_syncEditingCollabCursorService']=_0x3a1f37,this[_0x22b751(0xb4)]=_0x3d406a,this[_0x22b751(0x2cd)]=_0x450ac8,this[_0x22b751(0x21c)]=_0x368102,G(this,_0x22b751(0x17a),!0x1),G(this,'_init',!0x1),G(this,_0x22b751(0x2a0),new _0x12f80d(new Map())),G(this,_0x22b751(0x234),this['_cursorInfo$']['asObservable']()),G(this,_0x22b751(0x186),new _0x12f80d([])),G(this,_0x22b751(0x19f),this[_0x22b751(0x186)]['pipe'](_0x23d81c(0x12c))),G(this,_0x22b751(0xc6),_0x58951d(_0xe2f8aa=>{const _0x175d6d=_0x22b751;let _0xd7c9cd={'eventID':_0x548cc2[_0x175d6d(0xb9)],'data':{'unitID':this[_0x175d6d(0x19b)],'memberID':this[_0x175d6d(0x2c8)][_0x175d6d(0x1bf)](),'selection':un(_0xe2f8aa)}};this[_0x175d6d(0x2c8)][_0x175d6d(0x260)](_0xd7c9cd,this['unitID']);},0x64));}[_0x4fce49(0x2a9)](){const _0x2f5643=_0x4fce49;super[_0x2f5643(0x2a9)](),this['_cursorInfo$'][_0x2f5643(0x2ba)](new Map()),this[_0x2f5643(0x2a0)][_0x2f5643(0x2e6)](),this[_0x2f5643(0x186)][_0x2f5643(0x2ba)]([]),this[_0x2f5643(0x186)][_0x2f5643(0x2e6)]();}[_0x4fce49(0x1db)](){const _0x24cd1c=_0x4fce49;this[_0x24cd1c(0x2ad)]||(this[_0x24cd1c(0x2ad)]=!0x0,this[_0x24cd1c(0x2c8)][_0x24cd1c(0x1fe)][_0x24cd1c(0x1fd)](_0x340706(this[_0x24cd1c(0x1ce)]))[_0x24cd1c(0x14c)](_0x4fe08c=>{const _0x4648b4=_0x24cd1c;_0x4fe08c===_0x9424b9[_0x4648b4(0xbc)]?this[_0x4648b4(0x169)]():this['_toggleOffline']();}),this['_session'][_0x24cd1c(0x197)]['pipe'](_0x340706(this[_0x24cd1c(0x1ce)]))[_0x24cd1c(0x14c)](_0x4e6b6a=>{const _0x4727af=_0x24cd1c;let _0x21725b=_0x4e6b6a[_0x4727af(0xed)];_0x21725b===_0x548cc2[_0x4727af(0xb9)]&&this[_0x4727af(0x121)](_0x4e6b6a),_0x21725b===_0x548cc2[_0x4727af(0x1d7)]&&this[_0x4727af(0x21b)](_0x4e6b6a);}),this[_0x24cd1c(0x20b)](this['_commandService'][_0x24cd1c(0x1a8)](_0x26eead=>{const _0xd84c50=_0x24cd1c;let _0x3f3741=_0x26eead[_0xd84c50(0x1dd)];_0x3f3741!=null&&this[_0xd84c50(0x17a)]&&_0x26eead['id']===_0x3e0925['id']&&_0x3f3741[_0xd84c50(0x246)]===this[_0xd84c50(0x19b)]&&_0x3f3741[_0xd84c50(0x15b)]===!0x1&&_0x3f3741[_0xd84c50(0xdc)][_0xd84c50(0x26a)]>0x0&&this[_0xd84c50(0xc6)](_0x3f3741['ranges']);})),this[_0x24cd1c(0x16a)][_0x24cd1c(0x2e0)]['pipe'](_0x340706(this[_0x24cd1c(0x1ce)]))[_0x24cd1c(0x14c)](_0x21a217=>{const _0x3d2365=_0x24cd1c;if((_0x21a217==null?void 0x0:_0x21a217[_0x3d2365(0x19b)])!==this[_0x3d2365(0x19b)])return;let _0x4e3552={'eventID':_0x548cc2[_0x3d2365(0xb9)],'data':_0x21a217};this[_0x3d2365(0x121)](_0x4e3552);}),this[_0x24cd1c(0x20b)](this['_commandService'][_0x24cd1c(0x1a8)](_0x4721b2=>{const _0x180b4b=_0x24cd1c;if(_0x4721b2[_0x180b4b(0x1dd)]==null)return;let _0x464c8c=_0x4721b2['params'];if(_0x4721b2['id']!==_0x267473['id']||_0x464c8c['unitId']!==this[_0x180b4b(0x19b)])return;let _0x3fa41c={'id':_0x180b4b(0xab),'params':_0x464c8c},_0x1c6cd7=this['cursorInfo'];for(let [_0x56314e,_0x4674cd]of _0x1c6cd7){let _0xafcde2={'id':_0x180b4b(0xab),'params':{'unitId':this[_0x180b4b(0x19b)],'actions':null,'textRanges':_0x4674cd[_0x180b4b(0xdc)]}},_0x5b71c9=this[_0x180b4b(0xb4)][_0x180b4b(0x150)](_0x3fa41c,_0xafcde2,!0x1);if(_0x20ccdb(_0x5b71c9))throw _0x5b71c9[_0x180b4b(0xf8)];_0x1c6cd7[_0x180b4b(0x170)](_0x56314e,{..._0x4674cd,'ranges':_0x5b71c9[_0x180b4b(0x2ac)][_0x180b4b(0x1dd)][_0x180b4b(0xc2)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x1c6cd7);});})));}[_0x4fce49(0x121)](_0x4d392a){const _0x34934f=_0x4fce49;var _0x5d43f6,_0x1b6e69;let {memberID:_0x4daf02,selection:_0x5afd80}=_0x4d392a['data'],_0x1432ce=dn(_0x5afd80),_0x25818b=(_0x5d43f6=(_0x1b6e69=this[_0x34934f(0xb0)][_0x34934f(0x219)](this['unitID'],_0x4daf02))==null?void 0x0:_0x1b6e69[_0x34934f(0x2d8)])==null?_0x34934f(0xa7):_0x5d43f6,_0x66f9ba={'color':this[_0x34934f(0x2cb)]['assignAColorForMemberID'](_0x4daf02),'name':_0x25818b,'ranges':_0x1432ce},_0x25c00c=this[_0x34934f(0x1dc)];_0x25c00c['set'](_0x4daf02,_0x66f9ba),this[_0x34934f(0x2a0)]['next'](_0x25c00c);}['_onCursorDelete'](_0x14e3d7){const _0x3d966b=_0x4fce49;let {memberID:_0x39c78a}=_0x14e3d7[_0x3d966b(0x288)],_0x2fbfcc=this[_0x3d966b(0x1dc)];_0x2fbfcc['delete'](_0x39c78a),this[_0x3d966b(0x2a0)][_0x3d966b(0x2ba)](_0x2fbfcc);}[_0x4fce49(0x169)](){const _0x49746c=_0x4fce49;var _0x45eb0c;if(this[_0x49746c(0x17a)]=!0x0,((_0x45eb0c=this[_0x49746c(0x2cd)][_0x49746c(0x187)]())==null?void 0x0:_0x45eb0c[_0x49746c(0x2b0)]())!==this[_0x49746c(0x19b)])return;let _0x206fd1=this[_0x49746c(0x1ee)]['get'](_0x27e270)[_0x49746c(0x27e)]();Array[_0x49746c(0xfb)](_0x206fd1)&&_0x206fd1[_0x49746c(0x26a)]>0x0&&this['_updateLocalCursor'](_0x206fd1);}[_0x4fce49(0x213)](){const _0x4558dc=_0x4fce49;this[_0x4558dc(0x17a)]=!0x1;}};pn=q([K(0x2,_0x5e7f17(_0x396982)),K(0x3,_0x5e7f17(ln)),K(0x4,_0x5e7f17(_0x4baa64)),K(0x5,_0x5e7f17(fn)),K(0x6,_0x8dea2),K(0x7,_0x512649),K(0x8,_0x3d1e31)],pn);const mn=()=>{let _0x6b6b1e=[],_0x33cb15=!0x1;return _0x277a90=>{const _0x10866d=_0x2954;_0x6b6b1e[_0x10866d(0xe9)](_0x277a90),_0x33cb15||(_0x33cb15=!0x0,setTimeout(()=>{_0x6b6b1e['forEach'](_0x1e1ee9=>_0x1e1ee9()),_0x6b6b1e=[],_0x33cb15=!0x1;}));};};let hn=class extends _0x3ba365{get[_0x4fce49(0x1dc)](){const _0x5e3037=_0x4fce49;return this[_0x5e3037(0x2a0)][_0x5e3037(0x179)]();}get[_0x4fce49(0x11e)](){const _0x5c5b79=_0x4fce49;return this[_0x5c5b79(0x186)][_0x5c5b79(0x179)]();}constructor(_0x2780c1,_0x223f5f,_0x59a644,_0x2a1514,_0x2a79c0,_0x4035a8,_0x2a323e,_0x3b88a5){const _0x18c41c=_0x4fce49;super(),this[_0x18c41c(0x19b)]=_0x2780c1,this[_0x18c41c(0x2c8)]=_0x223f5f,this[_0x18c41c(0x1ee)]=_0x59a644,this[_0x18c41c(0x2cb)]=_0x2a1514,this[_0x18c41c(0xb0)]=_0x2a79c0,this[_0x18c41c(0x2cd)]=_0x4035a8,this[_0x18c41c(0x21c)]=_0x2a323e,this[_0x18c41c(0x17d)]=_0x3b88a5,G(this,_0x18c41c(0x17a),!0x1),G(this,'_init',!0x1),G(this,_0x18c41c(0x2a0),new _0x12f80d(new Map())),G(this,_0x18c41c(0x234),this[_0x18c41c(0x2a0)][_0x18c41c(0xeb)]()),G(this,_0x18c41c(0x186),new _0x12f80d([])),G(this,_0x18c41c(0x19f),this[_0x18c41c(0x186)][_0x18c41c(0x1fd)](_0x23d81c(0x12c))),G(this,'_updateLocalCursor',_0x58951d((_0x10ae18,_0x4d1bb3)=>{const _0xeba372=_0x18c41c;let _0x841834={'eventID':_0x548cc2[_0xeba372(0xb9)],'data':{'unitID':this[_0xeba372(0x19b)],'memberID':this[_0xeba372(0x2c8)][_0xeba372(0x1bf)](),'selection':_0x4a216b(_0x10ae18,_0x4d1bb3['range'])}};this['_session'][_0xeba372(0x260)](_0x841834,this[_0xeba372(0x19b)]);},0x64));}[_0x4fce49(0x2a9)](){const _0x5ccbfa=_0x4fce49;super[_0x5ccbfa(0x2a9)](),this['_cursorInfo$'][_0x5ccbfa(0x2ba)](new Map()),this[_0x5ccbfa(0x2a0)][_0x5ccbfa(0x2e6)](),this[_0x5ccbfa(0x186)][_0x5ccbfa(0x2ba)]([]),this[_0x5ccbfa(0x186)][_0x5ccbfa(0x2e6)]();}[_0x4fce49(0x1db)](){const _0x4e4967=_0x4fce49;this[_0x4e4967(0x2ad)]||(this['_init']=!0x0,this[_0x4e4967(0x2c8)][_0x4e4967(0x1fe)][_0x4e4967(0x1fd)](_0x340706(this[_0x4e4967(0x1ce)]))[_0x4e4967(0x14c)](_0x4ecad6=>{const _0x19d115=_0x4e4967;_0x4ecad6===_0x9424b9[_0x19d115(0xbc)]?this[_0x19d115(0x169)]():this[_0x19d115(0x213)]();}),this[_0x4e4967(0x2c8)][_0x4e4967(0x197)]['pipe'](_0x340706(this[_0x4e4967(0x1ce)]))[_0x4e4967(0x14c)](_0x49c27d=>{const _0x3ee228=_0x4e4967;let _0x4f11ff=_0x49c27d[_0x3ee228(0xed)];_0x4f11ff===_0x548cc2[_0x3ee228(0xb9)]&&this[_0x3ee228(0x121)](_0x49c27d),_0x4f11ff===_0x548cc2[_0x3ee228(0x1d7)]&&this[_0x3ee228(0x21b)](_0x49c27d);}),this['_onRefRangeChange'](),this[_0x4e4967(0x20b)](this['_commandService'][_0x4e4967(0x1a8)](_0x3b0a06=>{const _0x1491fa=_0x4e4967;if(this[_0x1491fa(0x17a)]&&_0x3b0a06['id']===_0x2c4cb0['id']&&_0x3b0a06['params']['unitId']===this[_0x1491fa(0x19b)]){let _0x688482=_0x3b0a06['params'];this[_0x1491fa(0xc6)](_0x688482[_0x1491fa(0xea)],_0x688482['selections'][0x0]);}})));}[_0x4fce49(0x121)](_0xf46ee0){const _0x2906b0=_0x4fce49;var _0x2dd849,_0x284d0d;let {memberID:_0x355b75,selection:_0x509920}=_0xf46ee0['data'],{sheetName:_0xd27ffb,range:_0x90f17}=_0x29280a(_0x509920),_0x2b932d={'name':(_0x2dd849=(_0x284d0d=this[_0x2906b0(0xb0)][_0x2906b0(0x219)](this['unitID'],_0x355b75))==null?void 0x0:_0x284d0d[_0x2906b0(0x2d8)])==null?_0x2906b0(0xa7):_0x2dd849,'range':this['_getMergeRange'](_0xd27ffb,_0x90f17),'sheetID':_0xd27ffb,'color':this[_0x2906b0(0x2cb)][_0x2906b0(0x124)](_0x355b75),'selection':_0x509920},_0x5d42fd=this[_0x2906b0(0x1dc)];_0x5d42fd[_0x2906b0(0x170)](_0x355b75,_0x2b932d),this[_0x2906b0(0x2a0)]['next'](_0x5d42fd);}[_0x4fce49(0x21b)](_0x4e12bc){const _0x13ad1a=_0x4fce49;let {memberID:_0x1f4817}=_0x4e12bc[_0x13ad1a(0x288)],_0x1a340e=this[_0x13ad1a(0x1dc)];_0x1a340e[_0x13ad1a(0x1b8)](_0x1f4817),this[_0x13ad1a(0x2a0)][_0x13ad1a(0x2ba)](_0x1a340e);}[_0x4fce49(0x268)](_0x4b1b87,_0x568990){const _0x320c7b=_0x4fce49;var _0x55a39c;let _0x453812=(_0x55a39c=this[_0x320c7b(0x2cd)]['getUniverSheetInstance'](this['unitID']))==null||(_0x55a39c=_0x55a39c['getSheetBySheetId'](_0x4b1b87))==null?void 0x0:_0x55a39c['getMergeData']();return(_0x453812==null?void 0x0:_0x453812[_0x320c7b(0x2b9)](_0x1b58f8=>_0x357f70['contains'](_0x1b58f8,_0x568990)))||_0x568990;}[_0x4fce49(0x255)](){const _0x154bad=_0x4fce49;let _0x18c84f=new _0x2e2922(),_0x15094e=mn(),_0x38ba55=()=>{const _0x21a2b7=_0x2954;_0x18c84f['dispose']();let _0x304dba=(_0x1e9d6d,_0x53b38a,_0x5392d0,_0x43ad0e)=>{const _0x1f57b5=_0x2954;let _0x236ec2=[];switch(_0x1e9d6d['id']){case _0x43c900['DeleteRangeMoveLeftCommandId']:_0x236ec2=_0x43b111(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x276)]:_0x236ec2=_0x58a433(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x280)]:_0x236ec2=_0x2dd4cb(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0xaa)]:_0x236ec2=_0x53d2fe(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0xe0)]:_0x236ec2=_0x18b63c(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x148)]:_0x236ec2=_0x40f9e7(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x132)]:_0x236ec2=_0x245987(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x114)]:_0x236ec2=_0x597f88(_0x1e9d6d,_0x43ad0e);break;case _0x43c900[_0x1f57b5(0x2d6)]:_0x236ec2=_0x36085e(_0x1e9d6d,_0x43ad0e);break;}let _0x37a28d=_0x5dc49d(_0x236ec2,_0x43ad0e),_0x362682=this[_0x1f57b5(0x1dc)][_0x1f57b5(0x1c2)](_0x53b38a);if(_0x362682&&_0x37a28d){let _0x51494d={..._0x362682,'range':_0x37a28d};this[_0x1f57b5(0x1dc)][_0x1f57b5(0x170)](_0x53b38a,_0x51494d),_0x15094e(()=>{const _0xa93b5c=_0x1f57b5;let _0x369835=this[_0xa93b5c(0x17d)][_0xa93b5c(0x1a4)](_0x37a28d,_0x55b998=>(_0x369835[_0xa93b5c(0x2a9)](),_0x304dba(_0x55b998,_0x53b38a,_0x5392d0,_0x37a28d)));_0x18c84f[_0xa93b5c(0x208)](_0x369835);});}return{'redos':[],'undos':[]};};this[_0x21a2b7(0x1dc)]['forEach']((_0xf8f1e6,_0x2f490e)=>{const _0x2b94b5=_0x21a2b7;let {range:_0x284b5b,sheetID:_0x56932d}=_0xf8f1e6,_0x369c81=this[_0x2b94b5(0x17d)][_0x2b94b5(0x1a4)](_0x284b5b,_0x40f127=>(_0x369c81[_0x2b94b5(0x2a9)](),_0x304dba(_0x40f127,_0x2f490e,_0x56932d,_0x284b5b)));_0x18c84f[_0x2b94b5(0x208)](_0x369c81);});};this['disposeWithMe'](_0xf76a73(this['_cursorInfo$'][_0x154bad(0x14c)](()=>{_0x38ba55();})));}[_0x4fce49(0x169)](){const _0x248524=_0x4fce49;var _0x23e64c,_0x14c159;if(this[_0x248524(0x17a)]=!0x0,((_0x23e64c=this[_0x248524(0x2cd)][_0x248524(0x187)]())==null?void 0x0:_0x23e64c['getUnitId']())!==this[_0x248524(0x19b)])return;let _0x12945f=(_0x14c159=this['_injector'][_0x248524(0x1c2)](_0x4b2ff9)[_0x248524(0x27d)]())==null?void 0x0:_0x14c159[0x0],_0x3f57e3=this['_univerInstanceService']['getCurrentUnitOfType'](_0x991a39['UNIVER_SHEET'])[_0x248524(0x1e7)]();_0x12945f&&_0x3f57e3&&this[_0x248524(0xc6)](_0x3f57e3['getSheetId'](),_0x12945f);}[_0x4fce49(0x213)](){this['_online']=!0x1;}};hn=q([K(0x2,_0x5e7f17(_0x396982)),K(0x3,_0x5e7f17(ln)),K(0x4,_0x5e7f17(_0x4baa64)),K(0x5,_0x512649),K(0x6,_0x3d1e31),K(0x7,_0x5e7f17(_0x432654))],hn);function gn(_0x1073eb){const _0x441b6b=_0x4fce49;let _0x362f0a;try{_0x362f0a=JSON[_0x441b6b(0x24e)](_0x1073eb);}catch{return null;}if(typeof _0x362f0a!='object'||!_0x362f0a)return null;let _0x4d313a=_0x362f0a;if(_0x4d313a[_0x441b6b(0x1c1)]!==_0x441b6b(0x2de)||typeof _0x4d313a['unitId']!=_0x441b6b(0x1a0)||typeof _0x4d313a['subUnitId']!='string')return null;let _0x2ebcd9=Array[_0x441b6b(0xfb)](_0x4d313a[_0x441b6b(0x152)])?_0x4d313a['selectedIds'][_0x441b6b(0x178)](_0x50c713=>typeof _0x50c713==_0x441b6b(0x1a0)):[],_0x40591e=typeof _0x4d313a[_0x441b6b(0x173)]==_0x441b6b(0x1a0)?_0x4d313a['focusedId']:null;return{'kind':_0x441b6b(0x2de),'unitId':_0x4d313a[_0x441b6b(0x246)],'subUnitId':_0x4d313a[_0x441b6b(0xea)],'selectedIds':_0x2ebcd9,'focusedId':_0x40591e};}let _n=class extends _0x3ba365{get['cursorInfo'](){const _0x3d7735=_0x4fce49;return this[_0x3d7735(0x2a0)][_0x3d7735(0x179)]();}get['roomMembers'](){const _0x231b1b=_0x4fce49;return this[_0x231b1b(0x186)][_0x231b1b(0x179)]();}constructor(_0x5f57f6,_0xdbc7b6,_0x46d339,_0x13136d,_0x4382bf){const _0x492db5=_0x4fce49;super(),this[_0x492db5(0x19b)]=_0x5f57f6,this['_session']=_0xdbc7b6,this[_0x492db5(0x2cb)]=_0x46d339,this[_0x492db5(0xb0)]=_0x13136d,this[_0x492db5(0x183)]=_0x4382bf,G(this,_0x492db5(0x17a),!0x1),G(this,_0x492db5(0x2ad),!0x1),G(this,_0x492db5(0x2a0),new _0x12f80d(new Map())),G(this,_0x492db5(0x234),this[_0x492db5(0x2a0)][_0x492db5(0xeb)]()),G(this,'_roomMembers$',new _0x12f80d([])),G(this,'roomMembers$',this[_0x492db5(0x186)][_0x492db5(0x1fd)](_0x23d81c(0x12c))),G(this,'_updateLocalCursor',_0x58951d(_0x4e9496=>{const _0x131c88=_0x492db5;let _0x1a73c9=_0x4e9496[_0x131c88(0x1c8)];if(!_0x1a73c9||_0x1a73c9[_0x131c88(0x246)]!==this[_0x131c88(0x19b)])return;let _0x2a49f3={'kind':_0x131c88(0x2de),'unitId':_0x1a73c9[_0x131c88(0x246)],'subUnitId':_0x1a73c9[_0x131c88(0xea)],'selectedIds':_0x4e9496[_0x131c88(0x152)][_0x131c88(0x178)](_0x274bfc=>typeof _0x274bfc==_0x131c88(0x1a0)),'focusedId':_0x4e9496[_0x131c88(0x173)]},_0x253ad9={'eventID':_0x548cc2['UPDATE_CURSOR'],'data':{'unitID':this[_0x131c88(0x19b)],'memberID':this[_0x131c88(0x2c8)]['getMemberID'](),'selection':JSON['stringify'](_0x2a49f3)}};this[_0x131c88(0x2c8)][_0x131c88(0x260)](_0x253ad9,this[_0x131c88(0x19b)]);},0x64));}[_0x4fce49(0x2a9)](){const _0xa7f67b=_0x4fce49;super[_0xa7f67b(0x2a9)](),this[_0xa7f67b(0x2a0)][_0xa7f67b(0x2ba)](new Map()),this[_0xa7f67b(0x2a0)]['complete'](),this[_0xa7f67b(0x186)][_0xa7f67b(0x2ba)]([]),this[_0xa7f67b(0x186)][_0xa7f67b(0x2e6)]();}[_0x4fce49(0x1db)](){const _0xafc683=_0x4fce49;this[_0xafc683(0x2ad)]||(this['_init']=!0x0,this[_0xafc683(0x2c8)][_0xafc683(0x1fe)]['pipe'](_0x340706(this[_0xafc683(0x1ce)]))['subscribe'](_0x26c7f1=>{const _0x2174e5=_0xafc683;_0x26c7f1===_0x9424b9[_0x2174e5(0xbc)]?this[_0x2174e5(0x169)]():this[_0x2174e5(0x213)]();}),this[_0xafc683(0x2c8)][_0xafc683(0x197)][_0xafc683(0x1fd)](_0x340706(this[_0xafc683(0x1ce)]))[_0xafc683(0x14c)](_0x25c2b7=>{const _0x592618=_0xafc683;let _0x5d9016=_0x25c2b7[_0x592618(0xed)];_0x5d9016===_0x548cc2[_0x592618(0xb9)]&&this[_0x592618(0x121)](_0x25c2b7),_0x5d9016===_0x548cc2['USERS_LEAVE']&&this[_0x592618(0x21b)](_0x25c2b7);}),this[_0xafc683(0x183)]['state$'][_0xafc683(0x1fd)](_0x340706(this[_0xafc683(0x1ce)]))[_0xafc683(0x14c)](_0x6e05df=>{const _0x6d870d=_0xafc683;this[_0x6d870d(0x17a)]&&this[_0x6d870d(0xc6)](_0x6e05df);}));}[_0x4fce49(0x121)](_0x2d3436){const _0x54efed=_0x4fce49;var _0x101601,_0x34d659,_0x1bb01e,_0x3e9a5c;let {memberID:_0x519f49,selection:_0x3f384c}=_0x2d3436[_0x54efed(0x288)];if(_0x519f49===((_0x101601=(_0x34d659=this[_0x54efed(0x2c8)])['getMemberID'])==null?void 0x0:_0x101601['call'](_0x34d659)))return;let _0x5e778a=gn(_0x3f384c);if(!_0x5e778a||_0x5e778a[_0x54efed(0x246)]!==this[_0x54efed(0x19b)])return;let _0x3a3383=(_0x1bb01e=(_0x3e9a5c=this[_0x54efed(0xb0)]['getMember'](this['unitID'],_0x519f49))==null?void 0x0:_0x3e9a5c[_0x54efed(0x2d8)])==null?_0x54efed(0xa7):_0x1bb01e,_0xa15408={'color':this[_0x54efed(0x2cb)][_0x54efed(0x124)](_0x519f49),'name':_0x3a3383,'unitId':_0x5e778a[_0x54efed(0x246)],'subUnitId':_0x5e778a['subUnitId'],'selectedIds':_0x5e778a['selectedIds'],'focusedId':_0x5e778a[_0x54efed(0x173)],'selection':_0x3f384c},_0x7beef1=new Map(this[_0x54efed(0x1dc)]);_0x7beef1['set'](_0x519f49,_0xa15408),this[_0x54efed(0x2a0)][_0x54efed(0x2ba)](_0x7beef1);}[_0x4fce49(0x21b)](_0x55e3d1){const _0xcbd59b=_0x4fce49;let {memberID:_0x30cd0f}=_0x55e3d1[_0xcbd59b(0x288)],_0x262186=new Map(this[_0xcbd59b(0x1dc)]);_0x262186[_0xcbd59b(0x1b8)](_0x30cd0f),this['_cursorInfo$'][_0xcbd59b(0x2ba)](_0x262186);}[_0x4fce49(0x169)](){const _0x5715a6=_0x4fce49;this['_online']=!0x0,this[_0x5715a6(0xc6)](this[_0x5715a6(0x183)]['getSnapshot']());}[_0x4fce49(0x213)](){const _0x37dfd4=_0x4fce49;this[_0x37dfd4(0x17a)]=!0x1;}};_n=q([K(0x2,_0x5e7f17(ln)),K(0x3,_0x5e7f17(_0x4baa64)),K(0x4,_0x5e7f17(_0x450161))],_n);let X=class extends _0x3ba365{constructor(_0x54b75f,_0x47d97d,_0x3209ee){const _0x1d3cc9=_0x4fce49;super(),this[_0x1d3cc9(0x2cd)]=_0x54b75f,this['_injector']=_0x47d97d,this[_0x1d3cc9(0x1ad)]=_0x3209ee,G(this,_0x1d3cc9(0x2df),new Map()),G(this,_0x1d3cc9(0x15c),new _0x12ea0c()),this[_0x1d3cc9(0x2ad)]();}[_0x4fce49(0x2a9)](){const _0x584b4f=_0x4fce49;super['dispose'](),this[_0x584b4f(0x15c)][_0x584b4f(0x2e6)](),this[_0x584b4f(0x2df)][_0x584b4f(0x2ca)](_0x462b2f=>_0x462b2f['dispose']());}[_0x4fce49(0x1d6)](_0x262914){const _0x46e02e=_0x4fce49;return this['_entities'][_0x46e02e(0x140)](_0x262914)?this[_0x46e02e(0x2df)][_0x46e02e(0x1c2)](_0x262914)['cursorInfo$']:this[_0x46e02e(0x15c)][_0x46e02e(0x1fd)](_0x393b4e(_0x2e1808=>_0x2e1808[_0x46e02e(0x19b)]===_0x262914),_0x2ffe1d(_0x6891cb=>_0x6891cb['cursorInfo$']));}[_0x4fce49(0x2ad)](){const _0x4f8343=_0x4fce49;this[_0x4f8343(0x2cd)][_0x4f8343(0x11b)](_0x991a39[_0x4f8343(0xc3)])[_0x4f8343(0x1fd)](_0x340706(this[_0x4f8343(0x1ce)]))[_0x4f8343(0x14c)](async _0x54ff4e=>{const _0x1a013e=_0x4f8343;let _0xa13e91=_0x54ff4e[_0x1a013e(0x248)][_0x1a013e(0x2b0)](),_0x46b172=await this[_0x1a013e(0x1b5)](_0xa13e91);this[_0x1a013e(0x15c)]['next'](_0x46b172),this[_0x1a013e(0x2df)][_0x1a013e(0x170)](_0xa13e91,_0x46b172);}),this[_0x4f8343(0x2cd)]['getTypeOfUnitAdded$'](_0x991a39[_0x4f8343(0x202)])[_0x4f8343(0x1fd)](_0x340706(this['dispose$']))[_0x4f8343(0x1fd)](_0x393b4e(_0x378878=>!_0x378878[_0x4f8343(0x248)][_0x4f8343(0x2b0)]()[_0x4f8343(0x245)]('__')))[_0x4f8343(0x14c)](async _0x1fdd56=>{const _0x2ce0b1=_0x4f8343;let {unit:_0x290416}=_0x1fdd56,_0xffd6e0=_0x290416['getUnitId'](),_0x5369f7=await this[_0x2ce0b1(0x247)](_0xffd6e0);this[_0x2ce0b1(0x15c)][_0x2ce0b1(0x2ba)](_0x5369f7),this[_0x2ce0b1(0x2df)][_0x2ce0b1(0x170)](_0xffd6e0,_0x5369f7);}),this[_0x4f8343(0x2cd)][_0x4f8343(0x11b)](_0x991a39[_0x4f8343(0x161)])[_0x4f8343(0x1fd)](_0x340706(this[_0x4f8343(0x1ce)]))[_0x4f8343(0x14c)](async _0x3938bb=>{const _0x4f63e6=_0x4f8343;let _0x565ac2=_0x3938bb[_0x4f63e6(0x248)]['getUnitId'](),_0x65a5c8=await this[_0x4f63e6(0xe6)](_0x565ac2);this[_0x4f63e6(0x15c)][_0x4f63e6(0x2ba)](_0x65a5c8),this[_0x4f63e6(0x2df)][_0x4f63e6(0x170)](_0x565ac2,_0x65a5c8);}),_0x2deeef(this[_0x4f8343(0x2cd)][_0x4f8343(0x274)](_0x991a39[_0x4f8343(0x202)]),this[_0x4f8343(0x2cd)][_0x4f8343(0x274)](_0x991a39[_0x4f8343(0xc3)]),this[_0x4f8343(0x2cd)][_0x4f8343(0x274)](_0x991a39[_0x4f8343(0x161)]))[_0x4f8343(0x1fd)](_0x340706(this[_0x4f8343(0x1ce)]))[_0x4f8343(0x14c)](_0x310a0a=>{const _0x38face=_0x4f8343;let _0x48871f=_0x310a0a[_0x38face(0x2b0)](),_0x2d2bca=this['_entities'][_0x38face(0x1c2)](_0x48871f);_0x2d2bca&&(_0x2d2bca[_0x38face(0x2a9)](),this[_0x38face(0x2df)][_0x38face(0x1b8)](_0x48871f));});}async[_0x4fce49(0x1b5)](_0x5178c4){const _0xc5adee=_0x4fce49;let _0xaf8c48=await this['_collabSessionService'][_0xc5adee(0xd3)](_0x5178c4),_0x292bf2=this[_0xc5adee(0x1ee)]['createInstance'](hn,_0x5178c4,_0xaf8c48);return _0x292bf2[_0xc5adee(0x1db)](),_0x292bf2;}async[_0x4fce49(0x247)](_0x13be23){const _0x2699e1=_0x4fce49;let _0x2db2a6=await this[_0x2699e1(0x1ad)][_0x2699e1(0xd3)](_0x13be23),_0xcb3ea3=this['_injector'][_0x2699e1(0x1d9)](pn,_0x13be23,_0x2db2a6);return _0xcb3ea3[_0x2699e1(0x1db)](),_0xcb3ea3;}async[_0x4fce49(0xe6)](_0x50291a){const _0x1ba0ac=_0x4fce49;let _0x5a3df6=await this[_0x1ba0ac(0x1ad)][_0x1ba0ac(0xd3)](_0x50291a),_0xcf46c5=this['_injector'][_0x1ba0ac(0x1d9)](_n,_0x50291a,_0x5a3df6);return _0xcf46c5[_0x1ba0ac(0x1db)](),_0xcf46c5;}};X=q([K(0x0,_0x512649),K(0x1,_0x5e7f17(_0x396982)),K(0x2,_0x5e7f17(_0x1f6015))],X);function vn(_0x2c50a3,_0x476132){const _0x31b260=_0x4fce49;var _0x5b7370,_0x2d38b2,_0x48cbac;let {radius:_0x43ad01,width:_0x4d98e1,height:_0x167171}=_0x476132;_0x43ad01=(_0x5b7370=_0x43ad01)==null?0x0:_0x5b7370,_0x4d98e1=(_0x2d38b2=_0x4d98e1)==null?0x1e:_0x2d38b2,_0x167171=(_0x48cbac=_0x167171)==null?0x1e:_0x48cbac;let _0x3286b2=0x0,_0x519b45=0x0,_0x1563e3=0x0;_0x3286b2=_0x519b45=_0x1563e3=Math[_0x31b260(0xca)](_0x43ad01,_0x4d98e1/0x2,_0x167171/0x2),_0x2c50a3[_0x31b260(0x172)](),_0x2c50a3[_0x31b260(0x130)](_0x3286b2,0x0),_0x2c50a3[_0x31b260(0x2b5)](_0x4d98e1-_0x519b45,0x0),_0x2c50a3[_0x31b260(0x129)](_0x4d98e1-_0x519b45,_0x519b45,_0x519b45,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c50a3[_0x31b260(0x2b5)](_0x4d98e1,_0x167171-_0x1563e3),_0x2c50a3[_0x31b260(0x129)](_0x4d98e1-_0x1563e3,_0x167171-_0x1563e3,_0x1563e3,0x0,Math['PI']/0x2,!0x1),_0x2c50a3[_0x31b260(0x2b5)](0x0,_0x167171),_0x2c50a3[_0x31b260(0x2b5)](0x0,_0x3286b2),_0x2c50a3[_0x31b260(0x129)](_0x3286b2,_0x3286b2,_0x3286b2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c50a3[_0x31b260(0xb1)](),_0x476132[_0x31b260(0x180)]&&(_0x2c50a3[_0x31b260(0x2d0)](),_0x2c50a3[_0x31b260(0x1ba)]=_0x476132[_0x31b260(0x180)],_0x476132['fillRule']===_0x31b260(0x244)?_0x2c50a3[_0x31b260(0x180)](_0x31b260(0x244)):_0x2c50a3[_0x31b260(0x180)](),_0x2c50a3[_0x31b260(0xdb)]());}var yn=class e extends _0x1f2d3f{constructor(_0x52dbaf,_0xe4b8e7){const _0x5b6fa1=_0x4fce49;super(_0x52dbaf,_0xe4b8e7),G(this,_0x5b6fa1(0x184),void 0x0),G(this,'text',void 0x0),this[_0x5b6fa1(0x184)]=_0xe4b8e7==null?void 0x0:_0xe4b8e7['color'],this['text']=_0xe4b8e7==null?void 0x0:_0xe4b8e7[_0x5b6fa1(0xe3)];}static['drawWith'](_0x3f5d0a,_0x4ce034){const _0x240462=_0x4fce49;let {text:_0x57c756,color:_0x49a559}=_0x4ce034;_0x3f5d0a[_0x240462(0x2d0)](),_0x3f5d0a[_0x240462(0xf6)]=_0x240462(0x1c6);let _0x264dc7=_0x3f5d0a[_0x240462(0x231)](_0x57c756)[_0x240462(0x19a)];if(vn(_0x3f5d0a,{'height':0x14,'radius':0x4,'width':Math[_0x240462(0xca)](_0x264dc7+0x8,0xc8),'fill':_0x49a559,'evented':!0x1}),_0x3f5d0a[_0x240462(0x1ba)]=_0x240462(0xc5),_0x264dc7>0xc0){let _0x3e3e55='',_0x2700b=0x0;for(let _0x4cf10b of _0x57c756){let _0x3062e2=_0x3f5d0a[_0x240462(0x231)](_0x4cf10b)[_0x240462(0x19a)];if(_0x2700b+_0x3062e2<=0xc0-_0x3f5d0a[_0x240462(0x231)](_0x240462(0x21e))[_0x240462(0x19a)])_0x3e3e55+=_0x4cf10b,_0x2700b+=_0x3062e2;else{_0x3e3e55+=_0x240462(0x21e);break;}}_0x3f5d0a['fillText'](_0x3e3e55,0x4,0xf);}else _0x3f5d0a[_0x240462(0x1c0)](_0x57c756,0x4,0xf);_0x3f5d0a[_0x240462(0xdb)]();}[_0x4fce49(0x122)](_0x1bb0eb){const _0x95b8d9=_0x4fce49;e[_0x95b8d9(0x275)](_0x1bb0eb,this);}};const bn=_0x4fce49(0x12b);var xn=class{constructor(_0x4ab6ce,_0x2b5957,_0x1a15e1,_0x5ad0ae){const _0xefc12d=_0x4fce49;this[_0xefc12d(0x1f6)]=_0x4ab6ce,this[_0xefc12d(0x266)]=_0x2b5957,this[_0xefc12d(0x2db)]=_0x1a15e1,this[_0xefc12d(0x13f)]=_0x5ad0ae,G(this,_0xefc12d(0x259),[]),G(this,_0xefc12d(0x2b2),null),G(this,_0xefc12d(0x2eb),null),G(this,'_anchorDot',null),G(this,'_hideTimer',null),G(this,'_eventUnsubscribe',null),this[_0xefc12d(0x2c1)]();}set[_0x4fce49(0x2a1)](_0x2669ec){const _0x1684cd=_0x4fce49;_0x2669ec?(this['_anchorDot']&&this[_0x1684cd(0x1df)][_0x1684cd(0x125)](),this[_0x1684cd(0x2eb)]&&this[_0x1684cd(0x2eb)][_0x1684cd(0x229)]()):(this[_0x1684cd(0x1df)]&&this[_0x1684cd(0x1df)][_0x1684cd(0x229)](),this[_0x1684cd(0x2eb)]&&this[_0x1684cd(0x2eb)]['hide']());}[_0x4fce49(0x2a9)](){const _0xb3c5e3=_0x4fce49;for(let _0x30e740 of this[_0xb3c5e3(0x259)])_0x30e740[_0xb3c5e3(0x2a9)]();this[_0xb3c5e3(0x2eb)]&&this[_0xb3c5e3(0x2eb)]['dispose'](),this[_0xb3c5e3(0x1df)]&&this[_0xb3c5e3(0x1df)][_0xb3c5e3(0x2a9)](),this[_0xb3c5e3(0x2b2)]&&this[_0xb3c5e3(0x2b2)]['dispose'](),this[_0xb3c5e3(0x1a6)]&&this[_0xb3c5e3(0x1a6)]();}[_0x4fce49(0x2c1)](){const _0x4eaa0b=_0x4fce49;let {_docSkeleton:_0x201da,_document:_0x1652eb}=this,{color:_0x389d99,name:_0x549ce0,ranges:_0x8dff56}=this[_0x4eaa0b(0x1f6)],_0x2dcd9f=_0x1652eb['getOffsetConfig'](),{docsLeft:_0x4ff92e,docsTop:_0x36c13b}=_0x2dcd9f,_0x19b95f=new _0x5e5781(_0x2dcd9f,_0x201da);for(let {startOffset:_0x3eca5d,endOffset:_0x3f81a0,rangeType:_0x1d8396,segmentId:_0x17cb93,segmentPage:_0x5938e8,collapsed:_0x522608,isActive:_0x142aed}of _0x8dff56){let _0x4b280d=_0x201da[_0x4eaa0b(0x1af)](_0x3eca5d,!0x0,_0x17cb93,_0x5938e8),_0x27533f=_0x201da['findNodePositionByCharIndex'](_0x3f81a0,!0x0,_0x17cb93,_0x5938e8);if(_0x27533f==null&&(_0x27533f=_0x201da[_0x4eaa0b(0x1af)](_0x3f81a0-0x1,!0x1,_0x17cb93,_0x5938e8)),_0x142aed){let {contentBoxPointGroup:_0x4dcc85}=_0x19b95f[_0x4eaa0b(0x2f2)](_0x27533f,_0x27533f);if(_0x4dcc85[_0x4eaa0b(0x26a)]===0x0)continue;this[_0x4eaa0b(0x26d)](_0x389d99,_0x4dcc85,_0x4ff92e,_0x36c13b,_0x549ce0),this['_eventUnsubscribe']=this[_0x4eaa0b(0x1b1)]();}if(_0x4b280d&&_0x27533f){if(_0x1d8396===_0x3ab031[_0x4eaa0b(0x1de)]){var _0x58101e;let {pointGroup:_0x254772}=(_0x58101e=new _0x337625(_0x2dcd9f,_0x201da)['getRangePointData'](_0x4b280d,_0x27533f))==null?{}:_0x58101e;if(_0x254772==null||_0x254772[_0x4eaa0b(0x26a)]===0x0)continue;this[_0x4eaa0b(0x126)](_0x389d99,_0x254772,_0x4ff92e,_0x36c13b);}else{if(!_0x522608){let {borderBoxPointGroup:_0x5f2d78}=_0x19b95f[_0x4eaa0b(0x2f2)](_0x4b280d,_0x27533f);if(_0x5f2d78[_0x4eaa0b(0x26a)]===0x0)continue;this[_0x4eaa0b(0x2c3)](_0x389d99,_0x5f2d78,_0x4ff92e,_0x36c13b);}}}}}[_0x4fce49(0x26d)](_0xc3c0bf,_0x4be809,_0x870bd9,_0x2d89b0,_0x30c488){const _0x5c37aa=_0x4fce49;let {left:_0x38ec70,top:_0x534294,height:_0x3366f1}=this[_0x5c37aa(0x2b4)](_0x4be809),_0x2dc919=1.5/this[_0x5c37aa(0x25f)](),_0x1fecae=new _0x2aadca(bn+_0x1321c7(0x6),{'left':_0x38ec70+_0x870bd9-_0x2dc919,'top':_0x534294+_0x2d89b0,'height':_0x3366f1,'width':1.5,'fill':_0xc3c0bf||_0x530790(_0x3b0241[_0x5c37aa(0x2dd)],0x0),'strokeWidth':_0x2dc919,'stroke':_0x5c37aa(0x15e),'evented':!0x0});this[_0x5c37aa(0x2b2)]=_0x1fecae,this[_0x5c37aa(0x266)][_0x5c37aa(0x2ce)](_0x1fecae,_0x316337);let _0x3f3dda=new _0x2aadca(bn+_0x1321c7(0x6),{'left':_0x38ec70+_0x870bd9-_0x2dc919,'top':_0x534294+_0x2d89b0-0x4/0x2,'height':0x4,'width':0x4,'fill':_0xc3c0bf||_0x530790(_0x3b0241[_0x5c37aa(0x2dd)],0x0),'strokeWidth':0x0,'stroke':_0xc3c0bf||_0x530790(_0x3b0241[_0x5c37aa(0x2dd)],0x0),'evented':!0x1});this[_0x5c37aa(0x1df)]=_0x3f3dda,this[_0x5c37aa(0x266)][_0x5c37aa(0x2ce)](_0x3f3dda,_0x316337);let _0xb3a785=new yn(bn+_0x1321c7(0x6),{'left':_0x38ec70+_0x870bd9-_0x2dc919,'top':_0x534294+_0x2d89b0-0x14,'text':_0x30c488,'color':_0xc3c0bf});this[_0x5c37aa(0x2eb)]=_0xb3a785,this[_0x5c37aa(0x266)][_0x5c37aa(0x2ce)](_0xb3a785,_0x316337),this['_hover']=!0x1;}[_0x4fce49(0x1b1)](){const _0x20f852=_0x4fce49;let _0x5e7d31=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{const _0x4ba9d0=_0x2954;this[_0x4ba9d0(0x2a1)]=!0x0;}),_0x4b35f8=this[_0x20f852(0x2b2)][_0x20f852(0x210)][_0x20f852(0x136)](()=>{const _0x5da5f8=_0x20f852;this[_0x5da5f8(0x16b)]&&clearTimeout(this[_0x5da5f8(0x16b)]),this[_0x5da5f8(0x16b)]=setTimeout(()=>{const _0x40521d=_0x5da5f8;this[_0x40521d(0x2a1)]=!0x1;},0x7d0);});return()=>{const _0x2bcecc=_0x20f852;_0x5e7d31[_0x2bcecc(0x21d)](),_0x4b35f8['unsubscribe']();};}['_drawTextRange'](_0x154007,_0x2b332b,_0x1ea690,_0x58a6b8){const _0x498c6c=_0x4fce49;let _0x4da217=0.2,_0x3a4823=new _0x4ad359(_0x154007)[_0x498c6c(0x188)](_0x4da217)['toRgbString'](),_0x222967=new _0x541921('collab-text-range-'+_0x1321c7(0x6),{'pointsGroup':_0x2b332b,'fill':_0x3a4823||_0x530790(_0x3b0241['black'],_0x4da217),'left':_0x1ea690,'top':_0x58a6b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x498c6c(0x259)][_0x498c6c(0xe9)](_0x222967),this[_0x498c6c(0x266)][_0x498c6c(0x2ce)](_0x222967,_0x316337);}[_0x4fce49(0x126)](_0x5db178,_0x510104,_0x223ef1,_0x2cbf70){const _0x3ddbb7=_0x4fce49;let _0xd8c9b=0.2,_0xe40474=new _0x4ad359(_0x5db178)[_0x3ddbb7(0x188)](_0xd8c9b)['toRgbString'](),_0x595bf2=new _0x541921('collab-rect-range-'+_0x1321c7(0x6),{'pointsGroup':_0x510104,'fill':_0xe40474||_0x530790(_0x3b0241[_0x3ddbb7(0x2dd)],_0xd8c9b),'left':_0x223ef1,'top':_0x2cbf70,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ddbb7(0x259)][_0x3ddbb7(0xe9)](_0x595bf2),this[_0x3ddbb7(0x266)][_0x3ddbb7(0x2ce)](_0x595bf2,_0x316337);}[_0x4fce49(0x2b4)](_0x54545e){let _0x31af32=_0x54545e[0x0],_0x1a0086=_0x31af32[0x0],_0x175f6d=_0x31af32[0x2],{x:_0x318f64,y:_0x2227da}=_0x1a0086,{x:_0x20e359,y:_0xdadbb8}=_0x175f6d;return{'left':_0x318f64,'top':_0x2227da,'width':_0x20e359-_0x318f64,'height':_0xdadbb8-_0x2227da};}['_getScale'](){const _0x4f84cd=_0x4fce49;let {scaleX:_0x4e9c02,scaleY:_0x151a54}=this[_0x4f84cd(0x266)][_0x4f84cd(0xb7)]();return Math[_0x4f84cd(0x171)](_0x4e9c02,_0x151a54);}};let Sn=class extends _0x3ba365{constructor(_0x1edb74,_0x30738b,_0x268708,_0x577ff9,_0x596be6){const _0x13174b=_0x4fce49;super(),this[_0x13174b(0x1e5)]=_0x1edb74,this['_docSkeletonManagerService']=_0x30738b,this[_0x13174b(0x1a1)]=_0x268708,this['_commandService']=_0x577ff9,this[_0x13174b(0xd1)]=_0x596be6,G(this,'_cursorShapes',[]),G(this,_0x13174b(0x120),[]),this[_0x13174b(0x2ad)]();}[_0x4fce49(0x2ad)](){const _0x35146f=_0x4fce49;let _0x20dc0c=this[_0x35146f(0x1e5)]['unitId'],_0x524ee4=this[_0x35146f(0xf0)];this['disposeWithMe'](_0xeb1450([this[_0x35146f(0x1a1)][_0x35146f(0x1d6)](_0x20dc0c),this['_themeService'][_0x35146f(0x290)]])[_0x35146f(0x1fd)](_0x2cc7a2(([_0x881d9a,_0x4bba2f])=>({'skeleton':_0x524ee4[_0x35146f(0x262)](),'cursors':[..._0x881d9a[_0x35146f(0x1c7)]()]['flatMap'](_0x2d1018=>({..._0x2d1018,'color':this[_0x35146f(0xd1)][_0x35146f(0x131)](_0x2d1018[_0x35146f(0x184)])}))})))[_0x35146f(0x14c)](_0x5f3528=>{const _0x1fa2fc=_0x35146f;if(this[_0x1fa2fc(0xe4)](),_0x5f3528){let {skeleton:_0x5e4c56,cursors:_0x55f5d3}=_0x5f3528;this[_0x1fa2fc(0x16f)](_0x5e4c56,_0x55f5d3);}})),this[_0x35146f(0xf3)](),this['_initCommandExecutedListener']();}[_0x4fce49(0x16f)](_0x202cf8,_0x237744){const _0x34808f=_0x4fce49;let {scene:_0x1e29e8,mainComponent:_0x14cec9}=this[_0x34808f(0x1e5)],_0x3bb1a1=_0x237744[_0x34808f(0x117)](_0x550003=>new xn(_0x550003,_0x1e29e8,_0x202cf8,_0x14cec9));this[_0x34808f(0x292)]=_0x3bb1a1,this['_cursors']=_0x237744;}[_0x4fce49(0x2e5)](){const _0xa8c45=_0x4fce49;this[_0xa8c45(0xe4)]();let {scene:_0x7d777,mainComponent:_0x855dd6}=this[_0xa8c45(0x1e5)],_0x3217eb=this[_0xa8c45(0xf0)][_0xa8c45(0x262)](),_0x4dc9ca=this[_0xa8c45(0x120)][_0xa8c45(0x117)](_0x21e134=>new xn(_0x21e134,_0x7d777,_0x3217eb,_0x855dd6));this[_0xa8c45(0x292)]=_0x4dc9ca;}[_0x4fce49(0xe4)](){const _0xee2a98=_0x4fce49;this[_0xee2a98(0x292)][_0xee2a98(0x2ca)](_0x1c8590=>_0x1c8590[_0xee2a98(0x2a9)]()),this['_cursorShapes']=[];}[_0x4fce49(0x13a)](){const _0x466f8f=_0x4fce49;let _0x179545=[_0x38eb92['id']];this[_0x466f8f(0x20b)](this['_commandService'][_0x466f8f(0x1a8)](_0x16dfe7=>{const _0x59ce42=_0x466f8f;_0x179545[_0x59ce42(0x1fc)](_0x16dfe7['id'])&&_0x16dfe7[_0x59ce42(0x1dd)][_0x59ce42(0x246)]===this['_context'][_0x59ce42(0x246)]&&this[_0x59ce42(0x2e5)]();}));}[_0x4fce49(0xf3)](){const _0x1c13f1=_0x4fce49;this[_0x1c13f1(0x20b)](_0x4e813d(this[_0x1c13f1(0x1e5)]['engine'][_0x1c13f1(0x25c)])[_0x1c13f1(0x1fd)](_0x39cf12(_0x159d14=>_0x159d14[_0x1c13f1(0x20a)]===_0x48c482[_0x1c13f1(0xaf)]),_0x1b75d1(0x10))[_0x1c13f1(0x14c)](()=>{const _0x200352=_0x1c13f1;this[_0x200352(0x2e5)]();}));}};Sn=q([K(0x1,_0x5e7f17(_0x2b9af4)),K(0x2,_0x5e7f17(X)),K(0x3,_0x3d1e31),K(0x4,_0x5e7f17(_0x3ba539))],Sn);var Cn=class extends _0x1f2d3f{constructor(_0x5a8ee4,_0x887db2){const _0x287d06=_0x4fce49;if(super(_0x5a8ee4,_0x887db2),G(this,'_color',void 0x0),G(this,_0x287d06(0x217),!0x1),G(this,_0x287d06(0x1c5),void 0x0),G(this,_0x287d06(0x10d),''),G(this,_0x287d06(0x2ee),_0x287d06(0x158)),G(this,_0x287d06(0xc9),void 0x0),G(this,_0x287d06(0xba),void 0x0),G(this,_0x287d06(0xd8),void 0x0),G(this,'_highlightSecond',0x4),G(this,_0x287d06(0x27f),void 0x0),G(this,_0x287d06(0x218),void 0x0),G(this,_0x287d06(0x26b),!0x0),G(this,'_offsetY',0x0),_0x887db2){var _0x23e4d0;if(this[_0x287d06(0x235)](_0x887db2),_0x887db2[_0x287d06(0xe7)]&&((_0x23e4d0=_0x887db2[_0x287d06(0x10b)])==null?this['_highlightSecond']:_0x23e4d0)){var _0x3824ee;this['_startBlinking']((_0x3824ee=_0x887db2['highlightSecond'])==null?this['_highlightSecond']:_0x3824ee);}}this[_0x287d06(0xde)][_0x287d06(0x136)](()=>this[_0x287d06(0x235)]({'hovered':!0x0})),this[_0x287d06(0x210)][_0x287d06(0x136)](()=>this[_0x287d06(0x235)]({'hovered':!0x1}));}['setOffsetY'](_0x2d3564){const _0x2fc3bd=_0x4fce49;this[_0x2fc3bd(0x278)]=_0x2d3564;}['setShapeProps'](_0x5b3b3e){const _0x32566f=_0x4fce49;var _0x30751e,_0x20d2d9,_0x55a43b,_0xf6179f,_0x1e4946,_0x1f4ac1,_0x4aae57;this[_0x32566f(0x298)]=(_0x30751e=_0x5b3b3e[_0x32566f(0x184)])==null?this[_0x32566f(0x298)]:_0x30751e,this[_0x32566f(0x217)]=(_0x20d2d9=_0x5b3b3e[_0x32566f(0x2bd)])==null?this[_0x32566f(0x217)]:_0x20d2d9,this['_range']=(_0x55a43b=_0x5b3b3e[_0x32566f(0x2cf)])==null?this[_0x32566f(0x1c5)]:_0x55a43b,this[_0x32566f(0x10d)]=(_0xf6179f=_0x5b3b3e[_0x32566f(0x2d8)])==null?this['_name']:_0xf6179f,this[_0x32566f(0x2ee)]=(_0x1e4946=_0x5b3b3e[_0x32566f(0x190)])==null?this['_labelPosition']:_0x1e4946,this[_0x32566f(0xc9)]=(_0x1f4ac1=_0x5b3b3e[_0x32566f(0x267)])==null?this[_0x32566f(0xc9)]:_0x1f4ac1,this[_0x32566f(0xba)]=(_0x4aae57=_0x5b3b3e['showText'])==null?this[_0x32566f(0xba)]:_0x4aae57,_0x5b3b3e[_0x32566f(0x10b)]!==void 0x0&&(this[_0x32566f(0x222)]=_0x5b3b3e['highlightSecond']),_0x5b3b3e[_0x32566f(0xe7)]!==void 0x0&&(this[_0x32566f(0xd8)]=_0x5b3b3e[_0x32566f(0xe7)]),_0x5b3b3e[_0x32566f(0x27a)]!==void 0x0&&(this['_offsetY']=_0x5b3b3e[_0x32566f(0x27a)]),this[_0x32566f(0xc1)]({'width':_0x5b3b3e['width'],'height':_0x5b3b3e['height']});}[_0x4fce49(0x149)](_0x61577){const _0x57b133=_0x4fce49;let {row:_0x547dff,column:_0x39d703}=_0x61577;if(_0x547dff>=this['_range']['startRow']&&_0x547dff<=this[_0x57b133(0x1c5)]['endRow']&&_0x39d703>=this[_0x57b133(0x1c5)][_0x57b133(0x11d)]&&_0x39d703<=this[_0x57b133(0x1c5)]['endColumn']){this[_0x57b133(0x235)]({'hovered':!0x0});return;}this[_0x57b133(0x235)]({'hovered':!0x1});}['_startBlinking'](_0x79ba38){const _0x18dcfa=_0x4fce49;this[_0x18dcfa(0x13e)](),this[_0x18dcfa(0x26b)]=!0x0,this[_0x18dcfa(0x218)]=window['setInterval'](()=>{const _0x293949=_0x18dcfa;this['_isBlinkVisible']=!this[_0x293949(0x26b)],this[_0x293949(0x11c)](!0x0);},0x1f4),this[_0x18dcfa(0x27f)]=window['setTimeout'](()=>{const _0x16ef2c=_0x18dcfa;this['_stopBlinking'](),this[_0x16ef2c(0x26b)]=!0x0,this['makeDirty'](!0x0);},_0x79ba38*0x3e8);}[_0x4fce49(0x13e)](){const _0x1b4b00=_0x4fce49;this[_0x1b4b00(0x218)]&&(window['clearInterval'](this[_0x1b4b00(0x218)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x1b4b00(0x175)](this[_0x1b4b00(0x27f)]),this[_0x1b4b00(0x27f)]=void 0x0);}[_0x4fce49(0x1e6)](_0x44046d){return!0x1;}[_0x4fce49(0x2a9)](){this['_stopBlinking'](),super['dispose']();}[_0x4fce49(0x122)](_0x3068d4){const _0x2739d2=_0x4fce49;let _0x2b7395=this[_0x2739d2(0x298)],_0x310b41=this[_0x2739d2(0xc9)];if(this['_highlight']&&!this[_0x2739d2(0x26b)]&&(_0x2b7395=this[_0x2739d2(0x1b6)](this[_0x2739d2(0x298)]),_0x310b41=this['_backgroundColor']?this['_getLighterColor'](this[_0x2739d2(0xc9)]):void 0x0),_0x2aadca[_0x2739d2(0x275)](_0x3068d4,{'width':this[_0x2739d2(0x19a)],'height':this[_0x2739d2(0xbd)],'strokeWidth':this[_0x2739d2(0x1b4)]||1.5,'stroke':_0x2b7395,'evented':!0x1,'fill':_0x310b41}),this[_0x2739d2(0x217)]||this['_showText']){var _0x367590;_0x3068d4[_0x2739d2(0x2d0)](),_0x3068d4[_0x2739d2(0x107)](0x1,0x0,0x0,0x1,this[_0x2739d2(0x19a)],(this[_0x2739d2(0x2ee)]===_0x2739d2(0x242)?0x0:-0x14)+((_0x367590=this[_0x2739d2(0x278)])==null?0x0:_0x367590)),yn[_0x2739d2(0x275)](_0x3068d4,{'text':this['_name'],'color':_0x2b7395}),_0x3068d4[_0x2739d2(0xdb)]();}}[_0x4fce49(0x1b6)](_0x2b469a){const _0xc8061c=_0x4fce49;return _0x2b469a[_0xc8061c(0x245)]('#')?_0xc8061c(0xfd)+Number['parseInt'](_0x2b469a[_0xc8061c(0x11f)](0x1,0x3),0x10)+',\x20'+Number[_0xc8061c(0x16e)](_0x2b469a[_0xc8061c(0x11f)](0x3,0x5),0x10)+',\x20'+Number[_0xc8061c(0x16e)](_0x2b469a[_0xc8061c(0x11f)](0x5,0x7),0x10)+_0xc8061c(0x230):_0x2b469a[_0xc8061c(0x245)]('rgba')?_0x2b469a[_0xc8061c(0x14f)](/[\d.]+\)$/g,_0xc8061c(0x1ca)):_0x2b469a[_0xc8061c(0x245)](_0xc8061c(0xe5))?_0x2b469a[_0xc8061c(0x14f)](_0xc8061c(0xe5),_0xc8061c(0x198))[_0xc8061c(0x14f)](')',_0xc8061c(0x230)):_0x2b469a;}};let wn=class extends _0x3ba365{constructor(_0x32506c,_0x3f57b2,_0x56ba23,_0x55ec6a){const _0x12a577=_0x4fce49;super(),this[_0x12a577(0x1e5)]=_0x32506c,this[_0x12a577(0x181)]=_0x3f57b2,this[_0x12a577(0x1a1)]=_0x56ba23,this[_0x12a577(0xd1)]=_0x55ec6a,G(this,_0x12a577(0x120),new Set()),G(this,'_lastPointer',null),G(this,_0x12a577(0x1ac),null),this['_init']();}['_init'](){const _0x3c02d9=_0x4fce49;this[_0x3c02d9(0x181)][_0x3c02d9(0xc8)][_0x3c02d9(0x1fd)](_0x53e7b7(this['dispose$']),_0x4ecc19(_0xcd0967=>{const _0x27b217=_0x3c02d9;if(_0xcd0967){let _0x274cb0=_0xcd0967[_0x27b217(0x258)];return _0xeb1450(this['_collabCursorController'][_0x27b217(0x1d6)](this['_context'][_0x27b217(0x246)]),this[_0x27b217(0xd1)][_0x27b217(0x290)])[_0x27b217(0x1fd)](_0x2cc7a2(([_0x4ec3e9,_0x73939])=>{const _0x1bb193=_0x27b217;let _0x3483ad=new Map();return _0x4ec3e9[_0x1bb193(0x2ca)]((_0x448056,_0x1f6416)=>{const _0x497ee8=_0x1bb193;if(_0x448056[_0x497ee8(0x281)]===_0x274cb0){let _0x3de86e={..._0x448056};_0x3de86e[_0x497ee8(0x184)]=this['_themeService'][_0x497ee8(0x131)](_0x448056[_0x497ee8(0x184)]),_0x3483ad[_0x497ee8(0x170)](_0x1f6416,_0x3de86e);}}),{'skeleton':_0xcd0967,'cursors':_0x3483ad};}));}return _0x349657({'skeleton':null,'cursors':new Map()});}))[_0x3c02d9(0x14c)](({skeleton:_0x3338d7,cursors:_0x29ba84})=>{const _0x39db5a=_0x3c02d9;this[_0x39db5a(0xe4)](),_0x3338d7&&this[_0x39db5a(0x16f)](_0x3338d7,_0x29ba84);}),this[_0x3c02d9(0x20b)](this['_sheetSkeletonManagerService'][_0x3c02d9(0xc8)][_0x3c02d9(0x1fd)](_0x53e7b7(this[_0x3c02d9(0x1ce)]))[_0x3c02d9(0x14c)](_0x33d7dd=>{const _0x58cf3c=_0x3c02d9;var _0x36363d;if(_0x33d7dd==null)return;(_0x36363d=this[_0x58cf3c(0x1ac)])==null||_0x36363d['unsubscribe'](),this[_0x58cf3c(0x1ac)]=null;let {skeleton:_0x3f8f71}=_0x33d7dd,{scene:_0xcec31f}=this[_0x58cf3c(0x1e5)];this[_0x58cf3c(0x1ac)]=_0xcec31f[_0x58cf3c(0x155)][_0x58cf3c(0x136)](_0x58951d(_0x2b1eda=>{const _0x4e21b3=_0x58cf3c;var _0x5ef715,_0x41f949;let {offsetX:_0x4d31a2,offsetY:_0x1eddc3}=_0x2b1eda,{x:_0x5195b9,y:_0x10cc71}=_0xcec31f[_0x4e21b3(0x287)](_0x343cd2[_0x4e21b3(0x1da)]([_0x4d31a2,_0x1eddc3])),{scaleX:_0x390208,scaleY:_0x49fb54}=_0xcec31f[_0x4e21b3(0xb7)](),_0x1362ed=_0xcec31f['getViewport'](_0x27e8ed[_0x4e21b3(0x23d)]),_0x260e0b=_0xcec31f['getVpScrollXYInfoByPosToVp'](_0x343cd2['FromArray']([_0x5195b9,_0x10cc71]),_0x1362ed),_0x29a157=_0x3f8f71[_0x4e21b3(0x20f)](_0x4d31a2,_0x1eddc3,_0x390208,_0x49fb54,_0x260e0b);((_0x5ef715=this[_0x4e21b3(0x1a3)])==null?void 0x0:_0x5ef715['column'])===_0x29a157[_0x4e21b3(0x10a)]&&((_0x41f949=this['_lastPointer'])==null?void 0x0:_0x41f949['row'])===_0x29a157[_0x4e21b3(0xd2)]||this[_0x4e21b3(0x120)][_0x4e21b3(0x2ca)](_0x42dc65=>{const _0x1c7b99=_0x4e21b3;_0x42dc65[_0x1c7b99(0x149)](_0x29a157);});},0x64));})),this[_0x3c02d9(0x20b)](_0xf76a73(()=>{const _0x1dce72=_0x3c02d9;var _0x191031;(_0x191031=this[_0x1dce72(0x1ac)])==null||_0x191031[_0x1dce72(0x21d)](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x5dba6d,_0x219c87){const _0x417b7b=_0x4fce49;let _0x1b3522=this[_0x417b7b(0x181)][_0x417b7b(0x212)]();if(!_0x1b3522)return;let _0x46306b=this['_getSheetObject']();if(!_0x46306b)return;this[_0x417b7b(0x120)][_0x417b7b(0x2ca)](_0x2c5eae=>{const _0x326eae=_0x417b7b;_0x2c5eae[_0x326eae(0x11c)]();});let {scene:_0x518636}=_0x46306b,_0x28600a=Tn(Array[_0x417b7b(0x2b7)](_0x219c87[_0x417b7b(0x1c7)]()))[_0x417b7b(0x117)](_0x52fb5d=>{const _0x189528=_0x417b7b;let {color:_0x734d0a,range:_0x2c4be6,name:_0x30fb54,selection:_0x556a98,sheetID:_0x4468b4}=_0x52fb5d,{startColumn:_0x40e44d,startRow:_0x5f4a6b,endColumn:_0x12e20f,endRow:_0x1fdb75}=_0x2c4be6,_0x3eb971=_0x42e801(_0x5f4a6b,_0x40e44d,_0x518636,_0x1b3522),_0x75c4aa=_0x42e801(_0x1fdb75,_0x12e20f,_0x518636,_0x1b3522),{columnHeaderHeightAndMarginTop:_0x444dcd}=_0x1b3522,{startX:_0x5c31b0,startY:_0x501215}=_0x3eb971,{endX:_0x4b2b64,endY:_0x5f0596}=_0x75c4aa,_0x1c5a08=_0x4b2b64-_0x5c31b0,_0x2d665f=_0x5f0596-_0x501215;return new Cn(_0x30fb54,{'labelPosition':_0x501215-_0x444dcd>=0x14?_0x189528(0x158):_0x189528(0x242),'sheetID':_0x4468b4,'range':_0x2c4be6,'color':_0x734d0a,'name':_0x30fb54,'selection':_0x556a98,'left':_0x5c31b0,'top':_0x501215,'width':_0x1c5a08,'height':_0x2d665f,'evented':!0x1,'zIndex':0x1389});});_0x518636[_0x417b7b(0x2c2)](_0x28600a,0x1),this[_0x417b7b(0x120)]=new Set(_0x28600a);}[_0x4fce49(0xe4)](){const _0x3c55c5=_0x4fce49;var _0x270ab7;(_0x270ab7=this[_0x3c55c5(0x120)])==null||_0x270ab7[_0x3c55c5(0x2ca)](_0x568d7a=>_0x568d7a[_0x3c55c5(0x2a9)]());}[_0x4fce49(0x109)](){const _0x44fe5d=_0x4fce49;return _0x2ff902(this[_0x44fe5d(0x1e5)][_0x44fe5d(0x248)],this['_context']);}};wn=q([K(0x1,_0x5e7f17(_0x3ba684)),K(0x2,_0x5e7f17(X)),K(0x3,_0x5e7f17(_0x3ba539))],wn);function Tn(_0x4636f4){const _0xe44888=_0x4fce49;let _0x38ccdc=new Map();return _0x4636f4[_0xe44888(0x2ca)](_0x38d5e7=>{const _0x7c59ff=_0xe44888;if(_0x38ccdc[_0x7c59ff(0x140)](_0x38d5e7[_0x7c59ff(0x23a)])){let _0x566708=_0x38ccdc[_0x7c59ff(0x1c2)](_0x38d5e7['selection']);_0x566708[_0x7c59ff(0x2d8)]+=',\x20'+_0x38d5e7[_0x7c59ff(0x2d8)];}else _0x38ccdc[_0x7c59ff(0x170)](_0x38d5e7['selection'],_0x38d5e7);}),Array['from'](_0x38ccdc[_0xe44888(0x1c7)]());}const En=0x138a;var Dn=class extends _0x1f2d3f{constructor(_0x16551b,_0x14c98e){const _0x46b614=_0x4fce49;super(_0x16551b,{..._0x14c98e,'evented':!0x1}),G(this,_0x46b614(0x298),'#4f46e5'),G(this,_0x46b614(0x10d),''),G(this,_0x46b614(0xba),!0x0),_0x14c98e&&this['setShapeProps'](_0x14c98e);}[_0x4fce49(0x235)](_0x54a6f3){const _0x5c204f=_0x4fce49;var _0x579eb5,_0x246073,_0x545796,_0x2c5dd8,_0x2feb85,_0x593a40,_0x1d7ea3,_0x3563ba;this[_0x5c204f(0x298)]=(_0x579eb5=_0x54a6f3[_0x5c204f(0x184)])==null?this['_color']:_0x579eb5,this[_0x5c204f(0x10d)]=(_0x246073=_0x54a6f3[_0x5c204f(0x2d8)])==null?this[_0x5c204f(0x10d)]:_0x246073,this['_showText']=(_0x545796=_0x54a6f3[_0x5c204f(0x12c)])==null?this[_0x5c204f(0xba)]:_0x545796,this[_0x5c204f(0x2d5)]=!0x1,this[_0x5c204f(0xc1)]({'left':(_0x2c5dd8=_0x54a6f3[_0x5c204f(0x2e2)])==null?this[_0x5c204f(0x2e2)]:_0x2c5dd8,'top':(_0x2feb85=_0x54a6f3['top'])==null?this[_0x5c204f(0x158)]:_0x2feb85,'width':(_0x593a40=_0x54a6f3['width'])==null?this['width']:_0x593a40,'height':(_0x1d7ea3=_0x54a6f3[_0x5c204f(0xbd)])==null?this['height']:_0x1d7ea3,'angle':(_0x3563ba=_0x54a6f3[_0x5c204f(0x285)])==null?this[_0x5c204f(0x285)]:_0x3563ba});}[_0x4fce49(0x122)](_0xe4acbc){const _0x5f456b=_0x4fce49;_0xe4acbc['save'](),_0xe4acbc[_0x5f456b(0x299)]=this[_0x5f456b(0x298)],_0xe4acbc['lineWidth']=this[_0x5f456b(0x1b4)]||1.5,_0xe4acbc['setLineDash']([0x6,0x4]),_0xe4acbc[_0x5f456b(0x189)](0x0,0x0,this[_0x5f456b(0x19a)],this[_0x5f456b(0xbd)]),_0xe4acbc['restore'](),this[_0x5f456b(0xba)]&&(_0xe4acbc[_0x5f456b(0x2d0)](),_0xe4acbc['transform'](0x1,0x0,0x0,0x1,this[_0x5f456b(0x19a)],-0x14),yn[_0x5f456b(0x275)](_0xe4acbc,{'text':this[_0x5f456b(0x10d)],'color':this[_0x5f456b(0x298)]}),_0xe4acbc[_0x5f456b(0xdb)]());}};let On=class extends _0x3ba365{constructor(_0x3e92d8,_0x54f5b1,_0x5c7b17){const _0x389ec3=_0x4fce49;super(),this[_0x389ec3(0x1e5)]=_0x3e92d8,this[_0x389ec3(0x1a1)]=_0x54f5b1,this[_0x389ec3(0xd1)]=_0x5c7b17,G(this,'_cursors',new Set()),G(this,_0x389ec3(0x253),!0x1),G(this,'_isApplyingOverlays',!0x1),G(this,_0x389ec3(0x2d2),new Map()),this['_init']();}['dispose'](){const _0x5b7981=_0x4fce49;this[_0x5b7981(0xe4)](),super['dispose']();}[_0x4fce49(0x2ad)](){const _0x14f6cc=_0x4fce49;let _0x308d8d=this['_context'][_0x14f6cc(0x248)][_0x14f6cc(0x1cf)][_0x14f6cc(0xe2)],_0x3dae86=this[_0x14f6cc(0x1a1)][_0x14f6cc(0x1d6)](this[_0x14f6cc(0x1e5)][_0x14f6cc(0x246)]);this[_0x14f6cc(0x20b)](_0xf76a73(_0xeb1450([_0x3dae86,_0x308d8d,this['_themeService']['currentTheme$']])[_0x14f6cc(0x1fd)](_0x340706(this['dispose$']))['subscribe'](([_0x244a68,_0xe5be18])=>{const _0x20b7c6=_0x14f6cc;let _0x14251e=new Map();_0x244a68[_0x20b7c6(0x2ca)]((_0x477e63,_0x4dfdd5)=>{const _0x1e9791=_0x20b7c6;_0x477e63['subUnitId']===_0xe5be18&&_0x14251e[_0x1e9791(0x170)](_0x4dfdd5,{..._0x477e63,'color':this[_0x1e9791(0xd1)][_0x1e9791(0x131)](_0x477e63[_0x1e9791(0x184)])});}),this['_latestCursors']=_0x14251e,this[_0x20b7c6(0x18b)]();})));let _0x11796d=this[_0x14f6cc(0x1e5)][_0x14f6cc(0x2b8)];this[_0x14f6cc(0x20b)](_0xf76a73(_0x11796d[_0x14f6cc(0x1d0)]['pipe'](_0x340706(this['dispose$']))['subscribe'](()=>{const _0x4decf3=_0x14f6cc;this[_0x4decf3(0x27b)]||this[_0x4decf3(0x18b)]();})));}[_0x4fce49(0x18b)](){const _0xd2cc63=_0x4fce49;this[_0xd2cc63(0x253)]||(this['_renderScheduled']=!0x0,Promise['resolve']()[_0xd2cc63(0x238)](()=>{const _0x1821fe=_0xd2cc63;this[_0x1821fe(0x253)]=!0x1,this[_0x1821fe(0x2c1)]();}));}['_render'](){const _0x40c763=_0x4fce49;var _0x591661;this[_0x40c763(0xe4)]();let _0x39a862=(_0x591661=this[_0x40c763(0x1e5)]['unit'][_0x40c763(0x1cf)][_0x40c763(0x2ab)]())==null?void 0x0:_0x591661['getId']();if(!_0x39a862)return;let _0x29c1c9=[];if(this['_latestCursors'][_0x40c763(0x2ca)]((_0x58d56d,_0x274a2c)=>{const _0x4a953f=_0x40c763;_0x58d56d[_0x4a953f(0xea)]===_0x39a862&&_0x58d56d[_0x4a953f(0x152)][_0x4a953f(0x2ca)](_0x120902=>{const _0x62ae32=_0x4a953f;let _0x571525=_0xd51333(_0x58d56d['unitId'],_0x58d56d[_0x62ae32(0xea)],_0x120902),_0xab062e=this[_0x62ae32(0xf5)](_0x571525);if(!_0xab062e)return;let _0x3173f9=this[_0x62ae32(0x272)](_0xab062e);_0x29c1c9['push'](new Dn(_0x62ae32(0x13c)+_0x274a2c+'-'+_0x120902,{..._0x58d56d,'left':_0x3173f9[_0x62ae32(0x2e2)],'top':_0x3173f9[_0x62ae32(0x158)],'width':_0x3173f9[_0x62ae32(0x19a)],'height':_0x3173f9[_0x62ae32(0xbd)],'angle':_0xab062e[_0x62ae32(0x285)],'evented':!0x1,'zIndex':En}));});}),_0x29c1c9[_0x40c763(0x26a)]===0x0){this[_0x40c763(0x1e5)][_0x40c763(0x2b8)][_0x40c763(0x11c)](!0x0);return;}this[_0x40c763(0x27b)]=!0x0,this[_0x40c763(0x1e5)][_0x40c763(0x2b8)][_0x40c763(0x2c2)](_0x29c1c9,En),this[_0x40c763(0x27b)]=!0x1,this[_0x40c763(0x120)]=new Set(_0x29c1c9),this[_0x40c763(0x1e5)][_0x40c763(0x2b8)]['makeDirty'](!0x0);}[_0x4fce49(0xe4)](){const _0x1a0bb6=_0x4fce49;let _0x2908d9=Array[_0x1a0bb6(0x2b7)](this[_0x1a0bb6(0x120)]);if(_0x2908d9['length']===0x0)return;let _0x10799a=this[_0x1a0bb6(0x1e5)][_0x1a0bb6(0x2b8)];_0x1a0bb6(0x1f4)in _0x10799a&&typeof _0x10799a[_0x1a0bb6(0x1f4)]==_0x1a0bb6(0x228)?_0x10799a[_0x1a0bb6(0x1f4)](_0x2908d9):_0x2908d9[_0x1a0bb6(0x2ca)](_0xeefbdd=>{const _0x53482f=_0x1a0bb6;_0x53482f(0x2f1)in _0x10799a&&typeof _0x10799a[_0x53482f(0x2f1)]=='function'?_0x10799a['removeObject'](_0xeefbdd):_0xeefbdd[_0x53482f(0x2a9)]();}),this[_0x1a0bb6(0x120)]['clear'](),_0x10799a[_0x1a0bb6(0x11c)](!0x0);}[_0x4fce49(0xf5)](_0x320c31){const _0x220f86=_0x4fce49;var _0x885607,_0x3edec8,_0xa6e79a;let _0x38debc=this[_0x220f86(0x1e5)][_0x220f86(0x2b8)];return(_0x885607=(_0x3edec8=(_0xa6e79a=_0x38debc[_0x220f86(0x1fa)])==null?void 0x0:_0xa6e79a[_0x220f86(0x2e8)](_0x38debc,_0x320c31))==null?_0x38debc[_0x220f86(0x167)](_0x320c31):_0x3edec8)==null?null:_0x885607;}['_getObjectBounds'](_0x25b6fa){const _0x52f449=_0x4fce49;var _0x891fc4,_0x552bfb;let _0x15584f=_0x25b6fa;return(_0x891fc4=(_0x552bfb=_0x15584f[_0x52f449(0x2a2)])==null?void 0x0:_0x552bfb[_0x52f449(0x2e8)](_0x15584f))==null?{'left':_0x25b6fa['left'],'top':_0x25b6fa[_0x52f449(0x158)],'width':_0x25b6fa[_0x52f449(0x19a)],'height':_0x25b6fa['height']}:_0x891fc4;}};On=q([K(0x1,_0x5e7f17(X)),K(0x2,_0x5e7f17(_0x3ba539))],On);let Z=class extends _0x3b1408{constructor(_0x322ec9,_0x4289c1,_0x2281b8,_0x397fff,_0x25e7a8,_0x51a7dd){const _0x34da28=_0x4fce49;super(),this['_beforeCloseService']=_0x322ec9,this[_0x34da28(0x1b3)]=_0x4289c1,this['_collaborationUIEventService']=_0x2281b8,this['_messageService']=_0x397fff,this[_0x34da28(0x1ec)]=_0x25e7a8,this[_0x34da28(0x241)]=_0x51a7dd,this[_0x34da28(0x29d)](),this['_initEvent']();}[_0x4fce49(0x29d)](){const _0x21a9a4=_0x4fce49;this[_0x21a9a4(0x20b)](this[_0x21a9a4(0x16d)][_0x21a9a4(0xce)](()=>{const _0x4ebbe9=_0x21a9a4;if(this[_0x4ebbe9(0x1b3)][_0x4ebbe9(0x1cb)][_0x4ebbe9(0x2e4)])return this[_0x4ebbe9(0x241)]['t'](_0x4ebbe9(0x240));}));}[_0x4fce49(0x118)](){const _0x43f4d6=_0x4fce49;this[_0x43f4d6(0x20b)](this[_0x43f4d6(0x1e8)][_0x43f4d6(0x197)][_0x43f4d6(0x14c)](_0x4beb44=>{const _0x1023df=_0x43f4d6;_0x4beb44['id']===_0x10468e[_0x1023df(0x1d2)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565[_0x1023df(0x196)],'content':this[_0x1023df(0x241)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x4beb44['id']===_0x10468e[_0x1023df(0x164)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565['Warning'],'content':this['_localeService']['t'](_0x1023df(0x123))}),_0x4beb44['id']===_0x10468e[_0x1023df(0xbb)]&&this[_0x1023df(0x1ec)][_0x1023df(0x229)]({'title':this[_0x1023df(0x241)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x1023df(0x241)]['t'](_0x1023df(0x157)),'type':_0x1023df(0xf8),'duration':0x0}),_0x4beb44['id']===_0x10468e[_0x1023df(0x195)]&&this['_notificationService']['show']({'title':this[_0x1023df(0x241)]['t'](_0x1023df(0x1f8)),'content':this['_localeService']['t'](_0x1023df(0x216)),'type':_0x1023df(0xf8),'duration':0x0}),_0x4beb44['id']===_0x10468e[_0x1023df(0xcf)]&&this[_0x1023df(0x270)]['show']({'type':_0x5d4565[_0x1023df(0x196)],'content':this[_0x1023df(0x241)]['t'](_0x4beb44[_0x1023df(0x288)]||'')}),_0x4beb44['id']===_0x10468e['SOCKET_FAILED_RETRY']&&this[_0x1023df(0x270)]['show']({'type':_0x5d4565['Warning'],'content':this[_0x1023df(0x241)]['t'](_0x1023df(0x224))}),_0x4beb44['id']===_0x10468e[_0x1023df(0x20c)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565[_0x1023df(0x165)],'content':this['_localeService']['t'](_0x1023df(0x28c))}),_0x4beb44['id']===_0x10468e[_0x1023df(0xcd)]&&this[_0x1023df(0x270)][_0x1023df(0x229)]({'type':_0x5d4565[_0x1023df(0x165)],'content':this[_0x1023df(0x241)]['t'](_0x1023df(0xdf))});}));}};Z=q([K(0x0,_0x1ad179),K(0x1,_0x223121),K(0x2,_0x5e7f17(_0xe59bf2)),K(0x3,_0x5f57d5),K(0x4,_0x46bdef),K(0x5,_0x5e7f17(_0x2f08d4))],Z);let kn=class{constructor(_0x444536,_0x220c32){const _0x46d350=_0x4fce49;this[_0x46d350(0xb4)]=_0x444536,this[_0x46d350(0x296)]=_0x220c32;}['transformIMECache'](_0xcde99c){const _0x2d37a5=_0x4fce49;this[_0x2d37a5(0x14e)](_0xcde99c),this[_0x2d37a5(0x264)](_0xcde99c);}[_0x4fce49(0x289)](_0x901ef3){const _0x50b70b=_0x4fce49;let {unitID:_0x38bc14}=_0x901ef3,{redoCache:_0x291fef}=this[_0x50b70b(0x296)][_0x50b70b(0x2a7)](_0x38bc14)[_0x50b70b(0x192)](_0x10a1c7)['getUndoRedoMutationParamsCache']();if(_0x291fef[_0x50b70b(0x26a)]===0x0)return _0x901ef3;let _0x381f47=_0x4453b6[_0x50b70b(0x22a)](_0x901ef3[_0x50b70b(0x239)][0x0]);for(let _0x5b2129=0x0;_0x5b2129<_0x291fef['length'];_0x5b2129++){let _0x2e399e={'id':_0x50b70b(0xab),'params':{..._0x291fef[_0x5b2129]}},_0x433e99=this[_0x50b70b(0xb4)][_0x50b70b(0x150)](_0x381f47,_0x2e399e,!0x1);if(_0x20ccdb(_0x433e99))throw _0x433e99[_0x50b70b(0xf8)];_0x381f47=_0x433e99[_0x50b70b(0x24d)];}return{..._0x4453b6[_0x50b70b(0x22a)](_0x901ef3),'mutations':[_0x381f47]};}[_0x4fce49(0x14e)](_0x2f0330){const _0x28c891=_0x4fce49;let {unitID:_0x38378d}=_0x2f0330,_0x547875=this[_0x28c891(0x296)][_0x28c891(0x2a7)](_0x38378d)[_0x28c891(0x192)](_0x10a1c7),{undoCache:_0x4a17c0,redoCache:_0x4f3521}=_0x547875[_0x28c891(0x2e7)]();if(_0x4a17c0[_0x28c891(0x26a)]===0x0||_0x4f3521[_0x28c891(0x26a)]===0x0)return;let _0x11cf5e=[],_0x4620ba=[],_0x2ffdda=_0x4453b6['deepClone'](_0x2f0330[_0x28c891(0x239)][0x0]),_0x5ed558=_0x4453b6[_0x28c891(0x22a)](_0x2f0330['mutations'][0x0]);for(let _0x4c386b=_0x4a17c0[_0x28c891(0x26a)]-0x1;_0x4c386b>=0x0;_0x4c386b--){let _0x140dc7={'id':_0x28c891(0xab),'params':{..._0x4a17c0[_0x4c386b]}},_0x517a99={'id':_0x28c891(0xab),'params':{..._0x4f3521[_0x4c386b]}},_0x34ac82=this[_0x28c891(0xb4)][_0x28c891(0x150)](_0x2ffdda,_0x140dc7,!0x1),_0x3a1d01=this[_0x28c891(0xb4)][_0x28c891(0x150)](_0x5ed558,_0x517a99,!0x1);if(_0x20ccdb(_0x34ac82))throw _0x34ac82[_0x28c891(0xf8)];if(_0x20ccdb(_0x3a1d01))throw _0x3a1d01[_0x28c891(0xf8)];_0x11cf5e[_0x28c891(0x19e)](_0x34ac82[_0x28c891(0x2ac)][_0x28c891(0x1dd)]),_0x4620ba[_0x28c891(0x19e)](_0x3a1d01[_0x28c891(0x2ac)][_0x28c891(0x1dd)]),_0x2ffdda=_0x34ac82[_0x28c891(0x24d)],_0x5ed558=_0x3a1d01[_0x28c891(0x24d)];}_0x547875[_0x28c891(0x2a6)]({'undoCache':_0x11cf5e,'redoCache':_0x4620ba});}['_transformPreviousActiveRange'](_0x2e892e){const _0x406731=_0x4fce49;let {unitID:_0x28d529}=_0x2e892e,_0x1d4d95=this['_renderManagerService'][_0x406731(0x2a7)](_0x28d529)[_0x406731(0x192)](_0x10a1c7),_0x4027c5=_0x1d4d95[_0x406731(0x1ae)]();if(_0x4027c5==null)return;let _0x35039a=[{'id':_0x406731(0xab),'params':{'unitId':_0x2e892e[_0x406731(0x19b)],'actions':null,'textRanges':[_0x4027c5]}}],_0x19f006=this['_transformService'][_0x406731(0x23f)](_0x2e892e,_0x35039a);if(!_0x1c0730(_0x19f006))throw _0x19f006[_0x406731(0xf8)];let _0x5b7cc6=_0x19f006[_0x406731(0x2ac)][0x0][_0x406731(0x1dd)]['textRanges'];Array[_0x406731(0xfb)](_0x5b7cc6)&&_0x5b7cc6[_0x406731(0x26a)]&&_0x1d4d95[_0x406731(0x1b2)](_0x5b7cc6[0x0]);}};kn=q([K(0x0,_0x8dea2),K(0x1,_0x5de006)],kn);let An=class{constructor(_0x15c845,_0x46d620,_0x3eeb2f){const _0x1e1063=_0x4fce49;this[_0x1e1063(0x1ee)]=_0x15c845,this[_0x1e1063(0xb4)]=_0x46d620,this[_0x1e1063(0xe1)]=_0x3eeb2f;}[_0x4fce49(0x251)](_0x4bcb80){const _0xd1387=_0x4fce49;this[_0xd1387(0x25a)](_0x4bcb80);}[_0x4fce49(0x289)](_0x2ebcd6){const _0xb7ec1d=_0x4fce49;let {unitID:_0x11179b}=_0x2ebcd6,{collaboration:_0xd97aef}=this['_docStateChangeManagerService'][_0xb7ec1d(0x207)](_0x11179b);if(_0xd97aef['length']===0x0)return _0x2ebcd6;let _0x31589c=_0x4453b6[_0xb7ec1d(0x22a)](_0x2ebcd6[_0xb7ec1d(0x239)][0x0]);for(let _0x3b7e2c=0x0;_0x3b7e2c<_0xd97aef['length'];_0x3b7e2c++){let _0x3c9dc8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xd97aef[_0x3b7e2c][_0xb7ec1d(0x246)],..._0xd97aef[_0x3b7e2c]['redoState']}},_0x4d40f2=this[_0xb7ec1d(0xb4)]['transformMutation'](_0x31589c,_0x3c9dc8,!0x1);if(_0x20ccdb(_0x4d40f2))throw _0x4d40f2[_0xb7ec1d(0xf8)];_0x31589c=_0x4d40f2[_0xb7ec1d(0x24d)];}return{..._0x4453b6[_0xb7ec1d(0x22a)](_0x2ebcd6),'mutations':[_0x31589c]};}[_0x4fce49(0x25a)](_0x23be74){const _0x5771b1=_0x4fce49;let {unitID:_0x408cb3}=_0x23be74,{history:_0x1fb4e7,collaboration:_0x1df0f8}=this[_0x5771b1(0xe1)]['getStateCache'](_0x408cb3);if(_0x1fb4e7[_0x5771b1(0x26a)]===0x0&&_0x1df0f8['length']===0x0)return;let _0xedb32b=[],_0x2036ab=[],_0x4527bb=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]),_0x1e572c=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]);for(let _0x403276=_0x1fb4e7['length']-0x1;_0x403276>=0x0;_0x403276--){let _0x2a6ab9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fb4e7[_0x403276][_0x5771b1(0x246)],..._0x1fb4e7[_0x403276][_0x5771b1(0x2ae)]}},_0x2ec484={'id':_0x5771b1(0xab),'params':{'unitId':_0x1fb4e7[_0x403276][_0x5771b1(0x246)],..._0x1fb4e7[_0x403276][_0x5771b1(0x294)]}},_0x58a5fc=this[_0x5771b1(0xb4)][_0x5771b1(0x150)](_0x4527bb,_0x2a6ab9,!0x1),_0x53d42f=this[_0x5771b1(0xb4)][_0x5771b1(0x150)](_0x1e572c,_0x2ec484,!0x1);if(_0x20ccdb(_0x58a5fc))throw _0x58a5fc[_0x5771b1(0xf8)];if(_0x20ccdb(_0x53d42f))throw _0x53d42f[_0x5771b1(0xf8)];_0xedb32b[_0x5771b1(0x19e)]({..._0x1fb4e7[_0x403276],'undoState':_0x58a5fc[_0x5771b1(0x2ac)][_0x5771b1(0x1dd)],'redoState':_0x53d42f[_0x5771b1(0x2ac)]['params']}),_0x4527bb=_0x58a5fc['m1Prime'],_0x1e572c=_0x53d42f['m1Prime'];}_0x4527bb=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]),_0x1e572c=_0x4453b6[_0x5771b1(0x22a)](_0x23be74[_0x5771b1(0x239)][0x0]);for(let _0x42d77a=_0x1df0f8[_0x5771b1(0x26a)]-0x1;_0x42d77a>=0x0;_0x42d77a--){let _0xfa5862={'id':_0x5771b1(0xab),'params':{'unitId':_0x1df0f8[_0x42d77a][_0x5771b1(0x246)],..._0x1df0f8[_0x42d77a][_0x5771b1(0x2ae)]}},_0xd9976f={'id':_0x5771b1(0xab),'params':{'unitId':_0x1df0f8[_0x42d77a][_0x5771b1(0x246)],..._0x1df0f8[_0x42d77a][_0x5771b1(0x294)]}},_0x4f2a36=this[_0x5771b1(0xb4)][_0x5771b1(0x150)](_0x4527bb,_0xfa5862,!0x1),_0x4f1a04=this['_transformService']['transformMutation'](_0x1e572c,_0xd9976f,!0x1);if(_0x20ccdb(_0x4f2a36))throw _0x4f2a36[_0x5771b1(0xf8)];if(_0x20ccdb(_0x4f1a04))throw _0x4f1a04[_0x5771b1(0xf8)];_0x2036ab[_0x5771b1(0x19e)]({..._0x1df0f8[_0x42d77a],'undoState':_0x4f2a36['m2Prime'][_0x5771b1(0x1dd)],'redoState':_0x4f1a04[_0x5771b1(0x2ac)]['params']}),_0x4527bb=_0x4f2a36[_0x5771b1(0x24d)],_0x1e572c=_0x4f1a04[_0x5771b1(0x24d)];}this[_0x5771b1(0xe1)][_0x5771b1(0x2bf)](_0x408cb3,{'history':_0xedb32b,'collaboration':_0x2036ab});}};An=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x8dea2),K(0x2,_0x5e7f17(_0x274af1))],An);let jn=class{constructor(_0x34f5fa,_0xf5c376){const _0xcd498d=_0x4fce49;this['_injector']=_0x34f5fa,this[_0xcd498d(0xb4)]=_0xf5c376;}[_0x4fce49(0xd6)](_0xd47e9c){const _0x3e3d4d=_0x4fce49;var _0x2d5b2a;let _0x43d159=this[_0x3e3d4d(0x1ee)][_0x3e3d4d(0x1c2)](_0x27e270),_0x5b314d=(_0x2d5b2a=_0x43d159[_0x3e3d4d(0x27e)]())==null?[]:_0x2d5b2a;if(_0x5b314d['length']===0x0)return;let _0x702b35=_0xd47e9c['unitID'],_0x484be9=[{'id':_0x3e3d4d(0xab),'params':{'unitId':_0x702b35,'actions':null,'textRanges':_0x5b314d}}],_0x915d6f=this[_0x3e3d4d(0xb4)][_0x3e3d4d(0x23f)](_0xd47e9c,_0x484be9);if(!_0x1c0730(_0x915d6f))throw _0x915d6f[_0x3e3d4d(0xf8)];let _0x183de1=_0x915d6f[_0x3e3d4d(0x2ac)][0x0][_0x3e3d4d(0x1dd)][_0x3e3d4d(0xc2)];Array[_0x3e3d4d(0xfb)](_0x183de1)&&_0x183de1['length']&&_0x43d159[_0x3e3d4d(0x26f)](_0x183de1,{'unitId':_0x702b35,'subUnitId':_0x702b35},!0x1);}};jn=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x8dea2)],jn);let Mn=class extends _0x3b1408{constructor(_0x5aa350,_0x3af044,_0x50b8e6,_0x187070,_0x265902,_0x2bfae0,_0x480628){const _0x5fba95=_0x4fce49;super(),this[_0x5fba95(0xb3)]=_0x5aa350,this[_0x5fba95(0x2d1)]=_0x3af044,this[_0x5fba95(0x18a)]=_0x50b8e6,this[_0x5fba95(0x282)]=_0x187070,this[_0x5fba95(0x113)]=_0x265902,this[_0x5fba95(0x270)]=_0x2bfae0,this['_localeService']=_0x480628,G(this,_0x5fba95(0x101),new _0x12f80d(_0x47e920['NOT_COLLAB'])),this[_0x5fba95(0x236)]();}['_initEntityListener'](){const _0x116ecb=_0x4fce49;this[_0x116ecb(0x20b)](this[_0x116ecb(0xb3)][_0x116ecb(0x29e)]['subscribe'](_0x3b2f2b=>{const _0x506367=_0x116ecb;_0x3b2f2b instanceof _0x500196&&_0x3b2f2b[_0x506367(0x2c6)]({'onTransformIME':_0x3e69fd=>this[_0x506367(0x2d1)][_0x506367(0x22b)](_0x3e69fd),'onTransformState':_0x549a2e=>this['_docTransformStateCacheService'][_0x506367(0x251)](_0x549a2e),'onTransformSelections':_0x4b1f20=>this[_0x506367(0x282)][_0x506367(0xd6)](_0x4b1f20),'onSyncEditingCollabCursor':_0x48544f=>this['_docSyncEditingCollabCursorService'][_0x506367(0x227)](_0x48544f),'onTransformRemoteChangesetByIMECache':_0x4560be=>this[_0x506367(0x2d1)][_0x506367(0x289)](_0x4560be),'onTransformRemoteChangesetByStateCache':_0x2e319e=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x2e319e)});}));}};Mn=q([K(0x0,_0x5e7f17(_0x7bdb56)),K(0x1,_0x5e7f17(kn)),K(0x2,_0x5e7f17(An)),K(0x3,_0x5e7f17(jn)),K(0x4,_0x5e7f17(fn)),K(0x5,_0x5f57d5),K(0x6,_0x5e7f17(_0x2f08d4))],Mn);let Nn=class extends _0x3b1408{constructor(_0x39cae1,_0x102211,_0x89d49b,_0x3bbb8c){const _0x4f4cba=_0x4fce49;super(),this[_0x4f4cba(0x1ee)]=_0x39cae1,this['_httpService']=_0x102211,this[_0x4f4cba(0x2c5)]=_0x89d49b,this[_0x4f4cba(0xfa)]=_0x3bbb8c,G(this,_0x4f4cba(0x277),void 0x0),this['_init']();}['_init'](){const _0x26dfc1=_0x4fce49;this[_0x26dfc1(0x269)](),this[_0x26dfc1(0x2c4)](),this[_0x26dfc1(0xf7)](),this[_0x26dfc1(0x17e)]();}['_initUserListener'](){const _0x43a2b4=_0x4fce49;this[_0x43a2b4(0x20b)](this['_collaborationSessionService'][_0x43a2b4(0x106)][_0x43a2b4(0x14c)](_0x2cbc97=>{this['_memberID']=_0x2cbc97==null?void 0x0:_0x2cbc97['memberID'];}));}[_0x4fce49(0x269)](){let _0x39cd82=_0xc7609b=>{const _0x31649a=_0x2954;var _0x28bea5;this[_0x31649a(0x193)](_0x31649a(0xf8),_0x31649a(0x1f5)+_0xc7609b[_0x31649a(0x18e)]+'\x20at\x20'+_0xc7609b[_0x31649a(0xa9)]+':'+_0xc7609b['lineno']+':'+_0xc7609b['colno']+'\x0a'+(((_0x28bea5=_0xc7609b[_0x31649a(0xf8)])==null?void 0x0:_0x28bea5[_0x31649a(0x100)])||''));};window['addEventListener']('error',_0x39cd82),this['disposeWithMe'](()=>{const _0x407d62=_0x2954;window[_0x407d62(0x2c0)](_0x407d62(0xf8),_0x39cd82);});}[_0x4fce49(0x2c4)](){const _0x38a6d1=_0x4fce49;let _0x34fd3e=_0x2b2382=>{const _0x1b0d2e=_0x2954;this[_0x1b0d2e(0x193)]('error',_0x1b0d2e(0x261)+_0x2b2382[_0x1b0d2e(0x28a)]);};window[_0x38a6d1(0x137)](_0x38a6d1(0x2e9),_0x34fd3e),this['disposeWithMe'](()=>{const _0x1ae888=_0x38a6d1;window[_0x1ae888(0x2c0)](_0x1ae888(0x2e9),_0x34fd3e);});}[_0x4fce49(0xf7)](){const _0x548c0c=_0x4fce49;let _0x23681b=this[_0x548c0c(0x2c5)]['error'][_0x548c0c(0xbe)](this['_logService']);this[_0x548c0c(0x2c5)][_0x548c0c(0xf8)]=(..._0x24cbc6)=>{const _0x37a679=_0x548c0c;let _0x2a965b=_0x24cbc6[_0x37a679(0x117)](_0x464d1d=>_0x464d1d instanceof Error?_0x464d1d['message']+'\x0a'+_0x464d1d[_0x37a679(0x100)]:String(_0x464d1d))['join']('\x20');this['_uploadLog'](_0x37a679(0xf8),_0x37a679(0x1ea)+_0x2a965b),_0x23681b(..._0x24cbc6);},this[_0x548c0c(0x20b)](()=>{const _0x20199f=_0x548c0c;this['_logService'][_0x20199f(0xf8)]=_0x23681b;});}[_0x4fce49(0x193)](_0x13f443,_0x265139){const _0x5985bb=_0x4fce49;try{let _0x1f480a={'userId':this['_memberID'],'logLabel':_0x13f443,'content':_0x265139};this[_0x5985bb(0x1e3)]['post'](_0x5985bb(0x23b),{'body':_0x1f480a})[_0x5985bb(0xb5)](()=>{});}catch{}}};Nn=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x5e7f17(_0x3c0cc7)),K(0x2,_0x821e06),K(0x3,_0x5e7f17(_0x1f6015))],Nn);function Pn(_0x4d59d0){const _0x17d9bf=_0x4fce49;var _0x432b83,_0xc06c56;let _0x4e3f9f=(_0x432b83=_0x4d59d0[_0x17d9bf(0x1d8)])==null?void 0x0:_0x432b83[_0x17d9bf(0x141)],_0x583c0c=((_0xc06c56=_0x4d59d0['stageInfo'])==null?void 0x0:_0xc06c56['totalFormulasToCalculate'])||0x0;return _0x4e3f9f===_0x1fcf5c['START_CALCULATION']&&_0x583c0c>0x0;}function Fn(_0x5415da){const _0x355596=_0x4fce49;return _0x5415da['functionsExecutedState']===_0x39cb1e[_0x355596(0x176)];}let Q=class extends _0x3b1408{constructor(_0x2de71d,_0x2b12da,_0x4e0543,_0x4663c4,_0x45e5ae,_0x635040,_0x26db7e){const _0x410f0f=_0x4fce49;super(),this['_messageService']=_0x2de71d,this[_0x410f0f(0x21c)]=_0x2b12da,this[_0x410f0f(0x26c)]=_0x4e0543,this[_0x410f0f(0x1e3)]=_0x4663c4,this[_0x410f0f(0x2cd)]=_0x45e5ae,this[_0x410f0f(0x2c5)]=_0x635040,this[_0x410f0f(0x241)]=_0x26db7e,G(this,_0x410f0f(0x206),null),G(this,_0x410f0f(0x209),0x0),G(this,_0x410f0f(0x143),0x0),G(this,_0x410f0f(0x1e9),[]),G(this,_0x410f0f(0x23e),0x0),this['_initCommandInterceptor']();}[_0x4fce49(0x15a)](){const _0x2e9e28=_0x4fce49;this[_0x2e9e28(0x20b)](this[_0x2e9e28(0x21c)]['beforeCommandExecuted']((_0x5d7eca,_0x4572c4)=>{const _0x2b4773=_0x2e9e28;var _0x5ce2fa;if(_0x5d7eca['id']!==_0x5de206['id'])return;let _0x1b3e05=_0x5d7eca[_0x2b4773(0x1dd)];if(this[_0x2b4773(0xd4)]((_0x5ce2fa=_0x1b3e05[_0x2b4773(0xa8)])==null?[]:_0x5ce2fa)&&!this[_0x2b4773(0x112)]())throw this[_0x2b4773(0x283)](_0x5d7eca,_0x4572c4),this['_showGuardMessage'](),new _0x21b9c7();})),this['disposeWithMe'](this[_0x2e9e28(0x21c)][_0x2e9e28(0x1a8)]((_0x3d861c,_0x5c283a)=>{const _0x3585af=_0x2e9e28;if(_0x3d861c['id']!==_0x303f99['id'])return;let _0x185090=_0x3d861c[_0x3585af(0x1dd)];if(Pn(_0x185090)){let _0x22bbaa=_0x1321c7();this[_0x3585af(0x1e9)][_0x3585af(0xe9)](_0x22bbaa),this[_0x3585af(0xee)](_0x22bbaa);}else{if(Fn(_0x185090)&&this[_0x3585af(0x1e9)][_0x3585af(0x26a)]>0x0){let _0xf012c2=this['_taskIds'][_0x3585af(0x24b)]();this['_releaseCalculationLimit'](_0xf012c2);}}}));}[_0x4fce49(0x2a9)](){const _0x1f3489=_0x4fce49;super[_0x1f3489(0x2a9)](),this[_0x1f3489(0x111)](),this['_taskIds']=[],this[_0x1f3489(0x143)]=0x0,this[_0x1f3489(0x209)]=0x0,this[_0x1f3489(0x23e)]=0x0;}async[_0x4fce49(0x283)](_0x14c0be,_0x4dea90){const _0x7b7163=_0x4fce49;for(let _0x41913f=0x0;_0x41913f<0x1e;_0x41913f++)try{if(await this[_0x7b7163(0x160)](),this[_0x7b7163(0x112)]()){this['_applyCommand'](_0x14c0be,_0x4dea90),this[_0x7b7163(0x270)][_0x7b7163(0x229)]({'content':this[_0x7b7163(0x241)]['t'](_0x7b7163(0x279)),'type':_0x5d4565['Success']});return;}await new Promise(_0x45e537=>{const _0x32f63a=_0x7b7163;this[_0x32f63a(0x206)]=window['setTimeout'](_0x45e537,0x3e8);});}catch(_0x1c80ed){this[_0x7b7163(0x2c5)]['error'](_0x1c80ed);}this[_0x7b7163(0x270)][_0x7b7163(0x229)]({'content':this[_0x7b7163(0x241)]['t']('collaboration-client-ui.formula.calculation.unable'),'type':_0x5d4565[_0x7b7163(0x165)]});}[_0x4fce49(0x2a4)](_0x4ec924,_0x5f0015){const _0x6ea5e=_0x4fce49;try{this[_0x6ea5e(0x21c)][_0x6ea5e(0x295)](_0x4ec924['id'],_0x4ec924['params'],_0x5f0015);}catch(_0x17603f){this[_0x6ea5e(0x2c5)][_0x6ea5e(0xf8)](_0x17603f);}}[_0x4fce49(0x1bb)](_0xeab1c1,_0x57fc11){const _0x24a6ea=_0x4fce49;_0x57fc11<this['_lastResponseTimestamp']||(this[_0x24a6ea(0x23e)]=_0x57fc11,this[_0x24a6ea(0x209)]=Number[_0x24a6ea(0x16e)](_0xeab1c1[_0x24a6ea(0x28b)]),this['_currentUsage']=Number[_0x24a6ea(0x16e)](_0xeab1c1[_0x24a6ea(0x21f)]));}async[_0x4fce49(0xee)](_0x34422a){const _0x21e4b1=_0x4fce49;let _0x28a6e5=Date[_0x21e4b1(0x1e4)]();try{var _0xa2b0d5,_0x19d377;let _0x4dd6b1=((_0xa2b0d5=this[_0x21e4b1(0x26c)][_0x21e4b1(0x103)](_0x444960))==null?void 0x0:_0xa2b0d5[_0x21e4b1(0x147)])||_0x21e4b1(0x20d),_0x504711=(await this[_0x21e4b1(0x1e3)][_0x21e4b1(0x20e)](_0x4dd6b1,{'body':JSON[_0x21e4b1(0x1d3)]({'taskId':_0x34422a})}))[_0x21e4b1(0x284)];if(((_0x19d377=_0x504711[_0x21e4b1(0xf8)])==null?void 0x0:_0x19d377[_0x21e4b1(0x232)])!==_0x1cfe9f['OK'])return;this[_0x21e4b1(0x1bb)](_0x504711[_0x21e4b1(0x215)],_0x28a6e5);}catch(_0x3fdba0){this[_0x21e4b1(0x2c5)][_0x21e4b1(0xf8)](_0x3fdba0);}}async[_0x4fce49(0x160)](_0x1766de){const _0x113896=_0x4fce49;let _0x2b2015=Date[_0x113896(0x1e4)]();try{var _0x3e2e47,_0x2f5c69;let _0x1d065b=((_0x3e2e47=this[_0x113896(0x26c)][_0x113896(0x103)](_0x444960))==null?void 0x0:_0x3e2e47[_0x113896(0x18f)])||_0x113896(0x17f),_0x429df5=_0x1766de?_0x1d065b+_0x113896(0x22f)+encodeURIComponent(_0x1766de):_0x1d065b,_0x438a7c=(await this[_0x113896(0x1e3)][_0x113896(0x1c2)](_0x429df5))['body'];if(((_0x2f5c69=_0x438a7c[_0x113896(0xf8)])==null?void 0x0:_0x2f5c69['code'])!==_0x1cfe9f['OK'])return;this[_0x113896(0x1bb)](_0x438a7c[_0x113896(0x215)],_0x2b2015);}catch(_0x37d104){this['_logService'][_0x113896(0xf8)](_0x37d104);}}async[_0x4fce49(0x142)](_0x175e7f){const _0x40bac2=_0x4fce49;let _0xdbc42c=Date[_0x40bac2(0x1e4)]();try{var _0x12368c,_0x19a956;let _0x4d22a6=((_0x12368c=this[_0x40bac2(0x26c)][_0x40bac2(0x103)](_0x444960))==null?void 0x0:_0x12368c[_0x40bac2(0x102)])||'/universer-api/license/formula/limit/done',_0x2a7c2b=(await this[_0x40bac2(0x1e3)][_0x40bac2(0x20e)](_0x4d22a6,{'body':JSON[_0x40bac2(0x1d3)]({'taskId':_0x175e7f})}))['body'];if(((_0x19a956=_0x2a7c2b[_0x40bac2(0xf8)])==null?void 0x0:_0x19a956[_0x40bac2(0x232)])!==_0x1cfe9f['OK'])return;this[_0x40bac2(0x1bb)](_0x2a7c2b[_0x40bac2(0x215)],_0xdbc42c);}catch(_0x2a943b){this[_0x40bac2(0x2c5)]['error'](_0x2a943b);}}[_0x4fce49(0x112)](){const _0x5b77a6=_0x4fce49;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x5b77a6(0x143)]>0x0;}[_0x4fce49(0x111)](){const _0x354ba9=_0x4fce49;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x354ba9(0x206)]=null);}[_0x4fce49(0x233)](){const _0x2d52da=_0x4fce49;this[_0x2d52da(0x270)][_0x2d52da(0x229)]({'content':this[_0x2d52da(0x241)]['t'](_0x2d52da(0x15d)),'type':_0x5d4565['Loading']});}[_0x4fce49(0xd4)](_0x36cb2a){const _0xfb1d0f=_0x4fce49;for(let _0x3a899f of _0x36cb2a){let {unitId:_0x53d2e3,sheetId:_0x1b2e45,range:_0x2ed713}=_0x3a899f,_0x2b49de=this[_0xfb1d0f(0x2cd)][_0xfb1d0f(0x2ec)](_0x53d2e3);if(!_0x2b49de)continue;let _0x569661=_0x2b49de[_0xfb1d0f(0x1f3)](_0x1b2e45);if(!_0x569661)continue;let _0x22a9c9=_0x569661[_0xfb1d0f(0x14b)]();for(let _0x1d93ae=_0x2ed713[_0xfb1d0f(0x1a5)];_0x1d93ae<=_0x2ed713['endRow'];_0x1d93ae++)for(let _0x56a147=_0x2ed713['startColumn'];_0x56a147<=_0x2ed713[_0xfb1d0f(0x26e)];_0x56a147++){let _0x470a2e=_0x22a9c9['getValue'](_0x1d93ae,_0x56a147);if(_0x470a2e&&(_0x74776e(_0x470a2e['f'])||_0x3fbf1e(_0x470a2e['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x5e7f17(_0x5f57d5)),K(0x1,_0x3d1e31),K(0x2,_0x4745e9),K(0x3,_0x5e7f17(_0x3c0cc7)),K(0x4,_0x512649),K(0x5,_0x821e06),K(0x6,_0x5e7f17(_0x2f08d4))],Q);let In=class extends _0x3b1408{constructor(_0x815aab,_0x3623a1,_0x4d62c0){const _0x37aff0=_0x4fce49;super(),this[_0x37aff0(0x26c)]=_0x815aab,this[_0x37aff0(0x22c)]=_0x3623a1,this[_0x37aff0(0xad)]=_0x4d62c0,G(this,_0x37aff0(0x2ef),new Map()),G(this,'_saveTaskMap',new Map()),G(this,_0x37aff0(0x24a),!0x1);}[_0x4fce49(0x2d9)](){const _0x1f5fd7=_0x4fce49;this[_0x1f5fd7(0x24a)]=!0x0;}[_0x4fce49(0x286)](){const _0x2d51cf=_0x4fce49;this[_0x2d51cf(0x24a)]=!0x1;}get[_0x4fce49(0x1cb)](){const _0x1b419d=_0x4fce49;return this[_0x1b419d(0x19c)];}['dispose'](){const _0x328e18=_0x4fce49;this[_0x328e18(0x18d)]()[_0x328e18(0x238)](()=>super[_0x328e18(0x2a9)]());}async['loadOfflineData'](_0x19bc05){const _0x15009b=_0x4fce49;return this['_disabled']?null:this[_0x15009b(0x22c)]['getItem'](_0x32c6e5(_0x19bc05));}async['saveOfflineData'](_0x527fe8,_0x1abedf){const _0x3c6db5=_0x4fce49;return!!this[_0x3c6db5(0x22c)][_0x3c6db5(0xc4)](_0x32c6e5(_0x527fe8),_0x1abedf);}async[_0x4fce49(0x211)](_0x486963,_0x4ac7f6){const _0x30f0fe=_0x4fce49;var _0x426284;let _0x171ddc=(_0x426284=this[_0x30f0fe(0x2ef)][_0x30f0fe(0x1c2)](_0x486963))==null?await this[_0x30f0fe(0x22c)][_0x30f0fe(0x205)](_0x32c6e5(_0x486963)):_0x426284;if(!_0x171ddc)return;let _0x4f4c8e=Date[_0x30f0fe(0x1e4)](),_0x334a98=new Date(_0x4f4c8e)['toISOString']();await this[_0x30f0fe(0x22c)]['setItem'](_0x32c6e5(_0x486963)+_0x30f0fe(0x29f)+_0x4f4c8e,{'reason':_0x4ac7f6,'createdAt':_0x334a98,'data':_0x171ddc});}[_0x4fce49(0xc7)](_0x590804,_0x34de74,_0x3295b6,_0x49cec5){const _0x393740=_0x4fce49;let _0x301985=this[_0x393740(0xad)][_0x393740(0x29c)](_0x590804);this['_cachedData'][_0x393740(0x170)](_0x590804,{'unitID':_0x590804,'type':_0x34de74,'awaitingChangeset':_0x3295b6,'mutations':_0x49cec5,'rev':_0x301985}),this['_saveTaskMap']['has'](_0x590804)||this[_0x393740(0x110)](_0x590804);}[_0x4fce49(0x110)](_0x203c9d){const _0x4b6e7c=_0x4fce49;let _0x56d558=this['_getSaveTimeout']();_0x56d558===0x0?this[_0x4b6e7c(0x1b7)](_0x203c9d):this[_0x4b6e7c(0x19c)][_0x4b6e7c(0x170)](_0x203c9d,setTimeout(()=>this['_saveCache'](_0x203c9d),_0x56d558));}['_getSaveTimeout'](){const _0x227796=_0x4fce49;var _0x8e3407;return(_0x8e3407=this[_0x227796(0x26c)][_0x227796(0x103)](_0x531d40))==null?_0xb5c7a6:_0x8e3407;}[_0x4fce49(0x1b7)](_0x3f6d6d){const _0x5a100f=_0x4fce49;let _0x434c81=this['_saveTaskMap'][_0x5a100f(0x1c2)](_0x3f6d6d);return _0x434c81!==void 0x0&&window['clearTimeout'](_0x434c81),this[_0x5a100f(0x22c)][_0x5a100f(0xc4)](_0x32c6e5(_0x3f6d6d),this[_0x5a100f(0x2ef)][_0x5a100f(0x1c2)](_0x3f6d6d))[_0x5a100f(0x238)](()=>this['_saveTaskMap'][_0x5a100f(0x1b8)](_0x3f6d6d));}async[_0x4fce49(0x18d)](){const _0x3811c3=_0x4fce49;let _0x497fa8=[];this[_0x3811c3(0x19c)][_0x3811c3(0x2ca)]((_0x50ea3f,_0x49b759)=>{const _0x4153e0=_0x3811c3;window[_0x4153e0(0x175)](_0x50ea3f),_0x497fa8[_0x4153e0(0xe9)](this[_0x4153e0(0x1b7)](_0x49b759)[_0x4153e0(0x238)](()=>{const _0x358a3a=_0x4153e0;this[_0x358a3a(0x19c)][_0x358a3a(0x1b8)](_0x49b759);}));}),await Promise['all'](_0x497fa8);}};In=q([K(0x0,_0x4745e9),K(0x1,_0x485df1),K(0x2,_0x5e7f17(_0x4a2529))],In);var Ln=class extends _0x3ba365{constructor(){const _0x1587e9=_0x4fce49;super(),G(this,_0x1587e9(0x1b9),void 0x0),this[_0x1587e9(0x1b9)]=_0x3cf39d(window,_0x1587e9(0xcb))['pipe'](_0x340706(this[_0x1587e9(0x1ce)]),_0x3784af({'bufferSize':0x1,'refCount':!0x0}),_0x896674(void 0x0));}[_0x4fce49(0x1b0)](_0x2a115c,_0x1c0b37,_0x3bc568=!0x1){const _0x8bd64a=_0x4fce49;let _0x14c7b2=new URL(window[_0x8bd64a(0x128)][_0x8bd64a(0xd9)]);_0x14c7b2[_0x8bd64a(0x204)]['set'](_0x2a115c,_0x1c0b37),_0x3bc568?window[_0x8bd64a(0x119)][_0x8bd64a(0x2af)]('','',_0x14c7b2[_0x8bd64a(0x127)]()):window[_0x8bd64a(0x119)][_0x8bd64a(0x1cc)]('','',_0x14c7b2[_0x8bd64a(0x127)]());}[_0x4fce49(0x163)](_0x5db0ae,_0x2139b5=!0x1){const _0x39ea19=_0x4fce49;let _0x365d59=new URL(window[_0x39ea19(0x128)][_0x39ea19(0xd9)]);_0x365d59[_0x39ea19(0x204)][_0x39ea19(0x1b8)](_0x5db0ae),_0x2139b5?window[_0x39ea19(0x119)][_0x39ea19(0x2af)]('','',_0x365d59[_0x39ea19(0x127)]()):window['history'][_0x39ea19(0x1cc)]('','',_0x365d59['toString']());}['getParam'](_0x2eb9d8){const _0x529ef2=_0x4fce49;var _0x5741eb;return(_0x5741eb=new URL(window[_0x529ef2(0x128)]['href'])[_0x529ef2(0x204)][_0x529ef2(0x1c2)](_0x2eb9d8))==null?void 0x0:_0x5741eb;}};let $=class extends _0x5449b2{constructor(_0x5b81f5=on,_0x4529fe,_0x5641b4,_0x2aa39e){const _0x225241=_0x4fce49;super(),this['_config']=_0x5b81f5,this[_0x225241(0x296)]=_0x4529fe,this[_0x225241(0x1ee)]=_0x5641b4,this[_0x225241(0x26c)]=_0x2aa39e;let {..._0x4a84b4}=_0x5e0eaa({},on,this[_0x225241(0xae)]);this[_0x225241(0x26c)][_0x225241(0x12d)]('collaboration-client-ui.config',_0x4a84b4);}[_0x4fce49(0x134)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x4fce49(0xda)](){const _0x436ed8=_0x4fce49;this[_0x436ed8(0x1f1)]();}[_0x4fce49(0x12a)](){const _0x1db67c=_0x4fce49;var _0x596b5f;let _0x1f77d0=[[ln],[Q],[nn,{'useClass':Ln}],[_0x2390f3,{'useClass':_0x311ee6}],[_0x223121,{'useClass':In}],[J],[Z],[X],[Y]];this[_0x1db67c(0xae)][_0x1db67c(0x29b)]!==!0x1&&_0x1f77d0[_0x1db67c(0xe9)]([jn],[kn],[An],[fn],[Mn],[sn]),this['_config'][_0x1db67c(0x135)]&&_0x1f77d0['push']([Nn]),_0x375ff6(this[_0x1db67c(0x1ee)],_0x572182(_0x1f77d0,(_0x596b5f=this[_0x1db67c(0xae)])==null?void 0x0:_0x596b5f[_0x1db67c(0x168)]));}['_registerRenderDependencies'](){const _0x17c352=_0x4fce49;this[_0x17c352(0xae)][_0x17c352(0x29b)]!==!0x1&&this[_0x17c352(0x20b)](this[_0x17c352(0x296)][_0x17c352(0xcc)](_0x991a39[_0x17c352(0x202)],[Sn])),this[_0x17c352(0x20b)](this['_renderManagerService'][_0x17c352(0xcc)](_0x991a39[_0x17c352(0xc3)],[wn])),this[_0x17c352(0x20b)](this[_0x17c352(0x296)][_0x17c352(0xcc)](_0x991a39[_0x17c352(0x161)],[On]));}[_0x4fce49(0x201)](){const _0x298444=_0x4fce49;_0x4afc34(this[_0x298444(0x1ee)],[[X],[J],[Z],[Y],[Q]]),this[_0x298444(0xae)][_0x298444(0x29b)]!==!0x1&&_0x4afc34(this['_injector'],[[Mn],[sn]]),this[_0x298444(0xae)][_0x298444(0x135)]&&_0x4afc34(this['_injector'],[[Nn]]);}};G($,_0x4fce49(0x1d5),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),G($,_0x4fce49(0x21a),rn),G($,_0x4fce49(0x200),an),$=q([_0x471b5a(_0x54299c),K(0x1,_0x5de006),K(0x2,_0x5e7f17(_0x396982)),K(0x3,_0x4745e9)],$);let Rn=class extends _0x3b89cd{constructor(_0x3554a0,_0x3a3eec,_0x17b40f,_0x14499e,_0x6a13c3){super(_0x3554a0,_0x3a3eec,_0x17b40f,_0x14499e,_0x6a13c3);}async['createSocket'](_0x21d76b){const _0x21499e=_0x4fce49;let _0x4e014f=await this['_getSessionTicket'](),_0x28de6f=this['_createSocketURL'](_0x21d76b,_0x4e014f);return this[_0x21499e(0x2b1)](_0x28de6f);}[_0x4fce49(0x214)](_0x249c5d,_0x4f68e0){const _0x32f888=_0x4fce49;let _0x4aba1f=typeof window>'u'?new URL(_0x249c5d):new URL(_0x249c5d,window[_0x32f888(0x128)][_0x32f888(0x2c7)]);_0x4aba1f[_0x32f888(0x204)][_0x32f888(0x170)](_0x32f888(0x1a2),_0x4f68e0);let _0xbbb18f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x32f888(0x128)][_0x32f888(0x2a5)]);return _0xbbb18f[_0x32f888(0x1c2)](_0x32f888(0x1ed))&&_0x4aba1f[_0x32f888(0x204)]['set'](_0x32f888(0x1ed),_0xbbb18f[_0x32f888(0x1c2)](_0x32f888(0x1ed))),_0x4aba1f['toString']();}async[_0x4fce49(0x1e2)](){const _0x15f830=_0x4fce49;var _0x3893ae,_0x3741c3,_0x4dc2c7;let _0x33d7ba=this[_0x15f830(0x26c)][_0x15f830(0x103)](_0x444960),_0x63724=(_0x3893ae=_0x33d7ba==null?void 0x0:_0x33d7ba[_0x15f830(0x256)])==null?_0x28d880:_0x3893ae;return(_0x3741c3=(_0x4dc2c7=(await this[_0x15f830(0x1e3)][_0x15f830(0x1c2)](_0x63724,{'headers':{'Content-Type':_0x15f830(0x1c4)}}))[_0x15f830(0x284)])==null?void 0x0:_0x4dc2c7[_0x15f830(0x297)])==null?'':_0x3741c3;}};function _0x3b21(){const _0x27b904=['collaboration-client-ui.collaboration.offline-data-not-saved','_localeService','bottom','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','evenodd','startsWith','unitId','_startDocCollabCursor','unit','NO_OTHER_CLIENTS_EDITING','_disabled','shift','_clearOtherTimers','m1Prime','parse','indicator','AWAITING_WITH_PENDING','transformStateCache','_urlService','_renderScheduled','_updateSubUnitFromURLParams','_onRefRangeChange','wsSessionTicketUrl','jiqing.500','sheetId','_shapes','_transformHistoryAndStateStack','button','onTransformChange$','isActive','constructor','_getScale','send','[Unhandled\x20Rejection]:\x20','getSkeleton','_docClipboardService','_transformPreviousActiveRange','univer-transition-all\x20univer-duration-200','_scene','backgroundColor','_getMergeRange','_initWindowErrorListener','length','_isBlinkVisible','_configService','_drawAnchor','endColumn','replaceDocRanges','_messageService','_assignedColors','_getObjectBounds','FETCH_MISS','getTypeOfUnitDisposed$','drawWith','DeleteRangeMoveUpCommandId','_memberID','_offsetY','collaboration-client-ui.formula.calculation.started','offsetY','_isApplyingOverlays','SYNCED','getCurrentSelections','getDocRanges','_blinkTimer','InsertColCommandId','sheetID','_docTransformSelectionsService','_checkAndWaitForCalculationPermission','body','angle','enableLocalCache','getRelativeToViewportCoord','data','transformRemoteChangeset','reason','maxFormulaLimit','collaboration-client-ui.session.connection-failed','tooltipKey','dark:focus:!univer-ring-offset-gray-800','static','currentTheme$','pulse','_cursorShapes','HEADER_MENU','redoState','executeCommand','_renderManagerService','ticket','_color','strokeStyle','default','enableDocumentCollaborationUI','getCurrentRevOfUnit','_setupBeforeClosingHandler','entityInit$',':backup:','_cursorInfo$','_hover','getRealBound','_scheduleHeartbeat','_applyCommand','search','setUndoRedoMutationParamsCache','getRenderById','subunit','dispose','red.300','getActiveSlide','m2Prime','_init','undoState','replaceState','getUnitId','_doCreateSocket','_anchor','_heartbeatTimer','_getAnchorBounding','lineTo','261203ToDHaJ','from','scene','find','next','addClipboardHook','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','hovered','disposeUnit','setStateCache','removeEventListener','_render','addObjects','_drawTextRange','_initUnhandledRejectionListener','_logService','addHandlerCallback','origin','_session','symbol','forEach','_colorAssignService','_dataLoaderService','_univerInstanceService','addObject','range','save','_docTransformIMECacheService','_latestCursors','@univerjs-pro/collaboration-client-ui','key','evented','RemoveRowCommandId','icon','name','disableLocalCache','_handleJoinEvent','_docSkeleton','clickable','black','slide-element-selection','_entities','collabCursorState$','source','left','ACTIVE_UNIT_EVENT_CHANNEL','size','_refreshCollabCursors','complete','getUndoRedoMutationParamsCache','call','unhandledrejection','_handleEvent','_textBubble','getUnit','polite','_labelPosition','_cachedData','\x20-\x20','removeObject','getRangePointData','_instanceService','Unknown\x20user','dirtyRanges','filename','InsertRangeMoveDownCommandId','doc.mutation.rich-text-editing','univer-text-red-500','_revisionService','_config','resize','_memberService','closePath','imageSourceType','_collaborationController','_transformService','catch','univer-m-0\x20univer-p-0','getAncestorScale','_imageIoService','UPDATE_CURSOR','_showText','PERMISSION_DENIED','ONLINE','height','bind','uni.network.url-service','collaboration-client-ui.collabStatus.conflict','transformByState','textRanges','UNIVER_SHEET','setItem','#FFF','_updateLocalCursor','updateOfflineData','currentSkeleton$','_backgroundColor','min','popstate','registerRenderModule','SUBMIT_CHANGESET_TIMEOUT','registerBeforeClose','JOIN_ROOM_FAILED','getParam','_themeService','row','requireSession','_hasFormulaInDirtyRanges','_uiPartsService','transformSelections','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_highlight','href','onRendered','restore','ranges','Failed','onPointerEnter$','collaboration-client-ui.session.collaboration-timeout','InsertRangeMoveRightCommandId','_docStateChangeManagerService','activeSlideId$','text','_removeCollabCursors','rgb','_startSlideCollabCursor','highlight','_scheduleClearOtherTimer','push','subUnitId','asObservable','status','eventID','_startCalculationLimit','univer-text-blue-500','_docSkeletonManagerService','univer-appearance-none','collaboration-client-ui.collabStatus.syncing','_initResize','collaboration-client-ui.collabStatus.synced','_getSceneObjectByKey','font','_monkeyPatchLogService','error','split','_collaborationSessionService','isArray','3861TXHuiS','rgba(','_selfUnitIDs','NOT_COLLAB','stack','_status$','releaseFormulaLimitUrl','getConfig','getSheetId','[CollaborationDataLoaderController]','socket$','transform','toPrimitive','_getSheetObject','column','highlightSecond','span','_name','OTHER_CLIENTS_EDITING','yellow.400','_scheduleSaving','_clearPolling','_checkCalculationAvailable','_docSyncEditingCollabCursorService','RemoveColCommandId','_removeClearOtherTimer','newValue','map','_initEvent','history','object','getTypeOfUnitAdded$','makeDirty','startColumn','roomMembers','slice','_cursors','_onCursorUpdate','_draw','collaboration-client-ui.collaboration.closeRoom','assignAColorForMemberID','hide','_drawRectRange','toString','location','arc','_registerDependencies','collab-text-anchor-','showText','setConfig','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_send','moveTo','getColorFromTheme','MoveRangeCommandId','getCollabEntity$','onStarting','enableFrontendLog','subscribeEvent','addEventListener','17150nIEWHw','univer-border-none\x20univer-bg-transparent','_initCommandExecutedListener','AWAITING','slide-collab-cursor-','_handleHeartbeatEvent','_stopBlinking','_document','has','stage','_releaseCalculationLimit','_currentUsage','_updateURLWithCurrentState','15693sczkjq','Enter','startFormulaLimitUrl','InsertRowCommandId','onMouseMove','getUnitStatus$','getCellMatrix','subscribe','getOwnPropertyDescriptor','_transformUndoRedoStack','replace','transformMutation','setInterval','selectedIds','_handleLeaveEvent','getCurrentTypeOfUnit$','onPointerMove$','decorate','collaboration-client-ui.permission.content','top','runOnServer','_initCommandInterceptor','isEditing','_entityInit$','collaboration-client-ui.formula.calculation.waiting','rgba(255,\x20255,\x20255,\x200.01)','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_getFormulaLimitStatus','UNIVER_SLIDE','debug','removeParam','CLOSE_ROOM','Error','purple.300','getObject','override','_toggleOnline','_syncEditingCollabCursorService','_hideTimer','i18nKey','_beforeCloseService','parseInt','_updateCollabCursors','set','max','beginPath','focusedId','some','clearTimeout','SUCCESS','getUnhiddenWorksheets','filter','getValue','_online','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_collabCursorState$','_refRangeService','_initUserListener','/universer-api/license/formula/limit/status','fill','_sheetSkeletonManagerService','prototype','_slideDrawingStateService','color','clearInterval','_roomMembers$','getFocusedUnit','setAlpha','strokeRect','_docTransformStateCacheService','_scheduleRender','_initStatusListener','exhaustSavingTask','message','getFormulaLimitStatusUrl','labelPosition','_initStatusComponent','with','_uploadLog','status$','CONFLICT','Warning','event$','rgba','unload','width','unitID','_saveTaskMap','1.0.0-alpha.1','unshift','roomMembers$','string','_collabCursorController','sessionTicket','_lastPointer','registerRefRange','startRow','_eventUnsubscribe','activeSheet$','onCommandExecuted','colorClass','saveImage','_id','_pointerMoveDisposable','_collabSessionService','getActiveRange','findNodePositionByCharIndex','setParam','_handleHover','setActiveRange','_localCacheService','strokeWidth','_startSheetCollabCursor','_getLighterColor','_saveCache','delete','urlChange$','fillStyle','_setFormulaLimitStatus','invokeId','OFFLINE','_colorIndex','getMemberID','fillText','kind','get','/run/','application/json','_range','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','values','context','_unitOnClients','0.2)','saveTaskMap','pushState','80fbLKAz','dispose$','pageManager','addObject$','preventDefault','OTHER_CLIENT_EDITING','stringify','_ensureSubject','pluginName','getCollabCursors$','USERS_LEAVE','stageInfo','createInstance','FromArray','init','cursorInfo','params','RECT','_anchorDot','_setupSubUnitSync','iterator','_getSessionTicket','_httpService','now','_context','triggerDblclick','getActiveSheet','_collaborationUIEventService','_taskIds','[LogService\x20Error]:\x20','memberID','_notificationService','runId','_injector','reconnect','green.600','_registerRenderDependencies','_unitStatus','getSheetBySheetId','removeObjects','[Window\x20Error]:\x20','_cursor','true','collaboration-client-ui.conflict.title','34278hhFAgY','getObjectIncludeInGroup','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','includes','pipe','sessionStatus$','294098ELEJUu','version','_initDependencies','UNIVER_DOC','focused$','searchParams','getItem','_pollingInterval','getStateCache','add','_maxFormulaLimit','type','disposeWithMe','SOCKET_FAILED','/universer-api/license/formula/limit/start','post','getCellPositionByOffset','onPointerLeave$','backupOfflineData','getCurrentSkeleton','_toggleOffline','_createSocketURL','limitInfo','collaboration-client-ui.conflict.content','_hovered','_blinkIntervalTimer','getMember','packageName','_onCursorDelete','_commandService','unsubscribe','...','currentUsage','TEXT','univer-flex\x20univer-items-center\x20univer-justify-center','_highlightSecond','spin','collaboration-client-ui.session.will-retry','357PvpJES','785800kuwkIk','syncEditingCollabCursor','function','show','deepClone','transformIMECache','_localStorageService','defineProperty','loadUnit','?taskId=',',\x200.2)','measureText','code','_showGuardMessage','cursorInfo$','setShapeProps','_initEntityListener','getCurrentUnitOfType','then','mutations','selection','/universer-api/frontend/logs','1077260dzIvaB','VIEW_MAIN','_lastResponseTimestamp','transformMutationsWithChangeset'];_0x3b21=function(){return _0x27b904;};return _0x3b21();}Rn=q([K(0x0,_0x5e7f17(_0x396982)),K(0x1,_0x5e7f17(_0x3c0cc7)),K(0x2,_0x4745e9),K(0x3,_0x821e06),K(0x4,_0x40f7a1)],Rn);let zn=class extends _0x3b1408{constructor(_0xfedb5,_0x319430,_0x2ffcba){const _0x5e0f04=_0x4fce49;super(),this[_0x5e0f04(0x2f3)]=_0xfedb5,this[_0x5e0f04(0x1e3)]=_0x319430,this['_configService']=_0x2ffcba;}async[_0x4fce49(0x159)](_0x5bd561,_0xff4bc6,_0x46e866,..._0x4f1847){const _0x18c8b7=_0x4fce49;var _0x1b4f25,_0x53fa61,_0xa83477,_0x37a488;let _0x3368cf=this[_0x18c8b7(0x2f3)][_0x18c8b7(0x187)]();if(!_0x3368cf)throw Error(_0x18c8b7(0x15f));let _0x35a3f9=((_0x1b4f25=this['_configService'][_0x18c8b7(0x103)](_0x47a206))==null?_0x38aa17:_0x1b4f25)+'/'+_0x5bd561+_0x18c8b7(0x1c3)+_0xff4bc6,_0x40482e={'scriptId':_0x5bd561,'runId':(_0x53fa61=new URL(window[_0x18c8b7(0x128)][_0x18c8b7(0xd9)])[_0x18c8b7(0x204)]['get'](_0x18c8b7(0x1ed)))==null?'':_0x53fa61,'function':_0xff4bc6,'unitId':_0x3368cf[_0x18c8b7(0x2b0)](),'argsOfFunction':JSON[_0x18c8b7(0x1d3)](_0x4f1847),'invokeId':(_0xa83477=_0x46e866[_0x18c8b7(0x1bc)])==null?'':_0xa83477,'executionId':(_0x37a488=_0x46e866['executionId'])==null?'':_0x37a488};try{let _0x168497=await this[_0x18c8b7(0x1e3)]['post'](_0x35a3f9,{'body':_0x40482e});return _0x168497['body'][_0x18c8b7(0xf8)]&&_0x168497['body'][_0x18c8b7(0xf8)][_0x18c8b7(0x232)]!==_0x1cfe9f['OK']?_0x18c8b7(0xdd):_0x168497[_0x18c8b7(0x284)]['result'];}catch{return _0x18c8b7(0xdd);}}};zn=q([K(0x0,_0x512649),K(0x1,_0x5e7f17(_0x3c0cc7)),K(0x2,_0x4745e9)],zn);const Bn=0x7530,Vn=_0x4fce49(0x2e3);var Hn=class extends _0x3b1408{constructor(){const _0x2e8872=_0x4fce49;super(),G(this,_0x2e8872(0x1ab),_0x1321c7()),G(this,_0x2e8872(0xfe),new Set()),G(this,_0x2e8872(0x1c9),new Map()),G(this,'_heartbeatTimer',null),G(this,_0x2e8872(0x24c),new Map()),G(this,_0x2e8872(0x1f2),new Map()),this[_0x2e8872(0x2ad)]();}['dispose'](){const _0xb551ad=_0x4fce49;super[_0xb551ad(0x2a9)](),this['_clearOtherTimers']['forEach']((_0x32421c,_0x2846b2)=>this[_0xb551ad(0x115)](_0x2846b2)),this['_heartbeatTimer']&&window[_0xb551ad(0x185)](this[_0xb551ad(0x2b3)]);}[_0x4fce49(0x14a)](_0x4e4491){const _0x100321=_0x4fce49;return this[_0x100321(0x1d4)](_0x4e4491)[_0x100321(0x1fd)](_0x5203c4());}['editingUnit'](_0xe2e06){const _0x1a4642=_0x4fce49;this['_selfUnitIDs']['size']===0x0&&this[_0x1a4642(0x2a3)](),this[_0x1a4642(0xfe)][_0x1a4642(0x208)](_0xe2e06),this[_0x1a4642(0x12f)]({'type':0x0,'memberID':this[_0x1a4642(0x1ab)],'unitIDs':[_0xe2e06],'isForwarded':!0x1});}[_0x4fce49(0x2be)](_0x28e8bb){const _0x5971b0=_0x4fce49;this['_selfUnitIDs'][_0x5971b0(0x1b8)](_0x28e8bb),this[_0x5971b0(0xfe)][_0x5971b0(0x2e4)]===0x0&&this[_0x5971b0(0x2b3)]&&window[_0x5971b0(0x185)](this[_0x5971b0(0x2b3)]);}[_0x4fce49(0x2ad)](){const _0x569e85=_0x4fce49;this[_0x569e85(0x20b)](_0xf76a73(_0x3cf39d(window,'storage')[_0x569e85(0x14c)](_0x4398e8=>{const _0x43a6eb=_0x569e85;if(_0x4398e8[_0x43a6eb(0x2d4)]!==Vn||!_0x4398e8[_0x43a6eb(0x116)])return;let _0x475498=JSON[_0x43a6eb(0x24e)](_0x4398e8[_0x43a6eb(0x116)]);this[_0x43a6eb(0x2ea)](_0x475498);}))),window['addEventListener'](_0x569e85(0x199),()=>this[_0x569e85(0x12f)]({'type':0x1,'memberID':this[_0x569e85(0x1ab)],'unitIDs':Array[_0x569e85(0x2b7)](this[_0x569e85(0xfe)])}));}['_handleEvent'](_0x134545){const _0x412598=_0x4fce49;switch(_0x134545[_0x412598(0x20a)]){case 0x0:this[_0x412598(0x2da)](_0x134545);break;case 0x1:this[_0x412598(0x153)](_0x134545);break;case 0x2:this[_0x412598(0x13d)](_0x134545);break;}}[_0x4fce49(0x2da)](_0x4f95b2){const _0x423d60=_0x4fce49;let {unitIDs:_0x43f51b,memberID:_0x181d3a,isForwarded:_0x11c853}=_0x4f95b2;_0x43f51b[_0x423d60(0x2ca)](_0x20d1aa=>{const _0x1fbbf9=_0x423d60;if(!_0x11c853&&this[_0x1fbbf9(0x1c9)][_0x1fbbf9(0x140)](_0x20d1aa)&&this[_0x1fbbf9(0x1d4)](_0x20d1aa)['next'](_0x3191c3['OTHER_CLIENTS_EDITING']),!this[_0x1fbbf9(0x1c9)][_0x1fbbf9(0x140)](_0x20d1aa)||!this['_unitOnClients'][_0x1fbbf9(0x1c2)](_0x20d1aa)[_0x1fbbf9(0x140)](_0x181d3a)){let _0x306a7c=this[_0x1fbbf9(0x1c9)]['get'](_0x20d1aa)||new Set();_0x306a7c[_0x1fbbf9(0x208)](_0x181d3a),this['_unitOnClients']['set'](_0x20d1aa,_0x306a7c),this[_0x1fbbf9(0xe8)](_0x181d3a);}}),_0x11c853||this[_0x423d60(0x12f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x423d60(0xfe)]],'isForwarded':!0x0});}[_0x4fce49(0xe8)](_0x1f6b51){const _0x33d6a6=_0x4fce49;this[_0x33d6a6(0x115)](_0x1f6b51);let _0x250158=window['setTimeout'](()=>{const _0x401b44=_0x33d6a6;this['_unitOnClients'][_0x401b44(0x2ca)](_0x5409fa=>{_0x5409fa['delete'](_0x1f6b51);});},Bn*0x2);this['_clearOtherTimers'][_0x33d6a6(0x170)](_0x1f6b51,_0x250158);}['_removeClearOtherTimer'](_0x6045a9){const _0x555a6d=_0x4fce49;if(this['_clearOtherTimers'][_0x555a6d(0x140)](_0x6045a9)){let _0x521e9d=this[_0x555a6d(0x24c)][_0x555a6d(0x1c2)](_0x6045a9);_0x521e9d&&window[_0x555a6d(0x175)](_0x521e9d),this[_0x555a6d(0x24c)][_0x555a6d(0x170)](_0x6045a9,null);}}['_handleLeaveEvent'](_0x46909c){const _0x127ef9=_0x4fce49;let {memberID:_0x32e1ac,unitIDs:_0x542c83}=_0x46909c;_0x542c83[_0x127ef9(0x2ca)](_0x2fc3d1=>{const _0x18bf7f=_0x127ef9;var _0x584eaa;let _0x56eefc=this[_0x18bf7f(0x1c9)][_0x18bf7f(0x1c2)](_0x2fc3d1);_0x56eefc&&(_0x56eefc[_0x18bf7f(0x1b8)](_0x32e1ac),(_0x584eaa=this[_0x18bf7f(0x1d4)](_0x2fc3d1))==null||_0x584eaa[_0x18bf7f(0x2ba)](_0x56eefc[_0x18bf7f(0x2e4)]===0x0?_0x3191c3[_0x18bf7f(0x249)]:_0x3191c3[_0x18bf7f(0x10e)]));}),this[_0x127ef9(0x115)](_0x32e1ac);}[_0x4fce49(0x13d)](_0xd3c01){const _0x300cf3=_0x4fce49;this['_scheduleClearOtherTimer'](_0xd3c01[_0x300cf3(0x1eb)]);}[_0x4fce49(0x12f)](_0x2f5ba3){const _0x541d8a=_0x4fce49;localStorage[_0x541d8a(0xc4)](Vn,JSON[_0x541d8a(0x1d3)](_0x2f5ba3));}['_scheduleHeartbeat'](){const _0x21a131=_0x4fce49;this[_0x21a131(0x2b3)]=window[_0x21a131(0x151)](()=>{const _0xbdc02f=_0x21a131;this[_0xbdc02f(0x12f)]({'type':0x2,'memberID':this[_0xbdc02f(0x1ab)]});},Bn);}[_0x4fce49(0x1d4)](_0x230f4d){const _0x4c7377=_0x4fce49;return this[_0x4c7377(0x1f2)][_0x4c7377(0x140)](_0x230f4d)||this[_0x4c7377(0x1f2)][_0x4c7377(0x170)](_0x230f4d,new _0x12f80d(_0x3191c3[_0x4c7377(0x249)])),this['_unitStatus'][_0x4c7377(0x1c2)](_0x230f4d);}};export{Rn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,nn as IURLService,zn as RemoteUniscriptService,Cn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,Hn as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0x392a75=_0x449b;(function(_0x39660b,_0x167dbf){const _0x3e9a5b=_0x449b,_0x28859d=_0x39660b();while(!![]){try{const _0x3e9d55=-parseInt(_0x3e9a5b(0x2fd))/0x1+-parseInt(_0x3e9a5b(0x2db))/0x2*(parseInt(_0x3e9a5b(0x2eb))/0x3)+-parseInt(_0x3e9a5b(0x375))/0x4*(-parseInt(_0x3e9a5b(0x251))/0x5)+-parseInt(_0x3e9a5b(0x221))/0x6+-parseInt(_0x3e9a5b(0x26d))/0x7+-parseInt(_0x3e9a5b(0x308))/0x8*(-parseInt(_0x3e9a5b(0x207))/0x9)+parseInt(_0x3e9a5b(0x267))/0xa*(parseInt(_0x3e9a5b(0x20a))/0xb);if(_0x3e9d55===_0x167dbf)break;else _0x28859d['push'](_0x28859d['shift']());}catch(_0x543b7f){_0x28859d['push'](_0x28859d['shift']());}}}(_0x1252,0x3d946));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x10c7b2,CollaborationController as _0x57a70b,CollaborationSessionService as _0x95c018,CollaborationSocketService as _0xd45fa9,CollaborationStatus as _0x21b797,CollaborationUIEventId as _0x4cc781,CollaborationUIEventService as _0x1cd30c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5ed597,DEFAULT_WS_SESSION_TICKET_URL as _0x5c4165,DataLoaderService as _0x4c4321,DocCollaborationEntity as _0x25f7c1,ILocalCacheService as _0x368670,LOCAL_CACHE_INTERVAL as _0x23e32b,LOCAL_CACHE_INTERVAL_KEY as _0x108427,MemberService as _0x58b5b3,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x597d03,SessionStatus as _0x11dd82,UnitStatus as _0x710c4d,UniverCollaborationClientPlugin as _0x537e55,getLocalCacheKey as _0x41e692}from'@univerjs-pro/collaboration-client';import{COLORS as _0x3a03e2,CanceledError as _0x5f439f,ColorKit as _0x7737fd,DOC_RANGE_TYPE as _0x109cc1,DependentOn as _0x38329d,Disposable as _0x20ff58,DisposableCollection as _0x432b9a,ICommandService as _0x338dbd,IConfigService as _0x3b56ca,ILocalStorageService as _0x2a3285,ILogService as _0x4cd0b8,IUniverInstanceService as _0x5c7755,Inject as _0x13edf9,Injector as _0x4decc3,LocaleService as _0x2cad47,Optional as _0x3593b5,Plugin as _0x5f4a3f,Rectangle as _0x48cd52,RxDisposable as _0x47ffee,ThemeService as _0x50ff2f,Tools as _0x25962f,UniverInstanceType as _0x12ddec,Workbook as _0x43f811,createIdentifier as _0x2e2bac,debounce as _0x4ef1e1,fromEventSubject as _0x22027b,generateRandomId as _0x35c403,isFormulaId as _0x2c094f,isFormulaString as _0x1b0724,isInternalEditorID as _0x5eb0f9,merge as _0x1c04c4,mergeOverrideWithDependencies as _0x131c21,registerDependencies as _0x11d37d,toDisposable as _0x245507,touchDependencies as _0x21d03b}from'@univerjs/core';import{BuiltInUIPart as _0x7793c,IBeforeCloseService as _0x3e9f71,IMessageService as _0xe2975f,INotificationService as _0x5630e4,IUIPartsService as _0x5d36ed,connectInjector as _0x5df3f2,useDependency as _0x1df8bc,useObservable as _0x416d0d}from'@univerjs/ui';import{BehaviorSubject as _0xd9ac59,Subject as _0x4039fa,combineLatest as _0x578aed,debounceTime as _0x401206,distinctUntilChanged as _0x439347,filter as _0x3a2fbb,fromEvent as _0x4fc3aa,mapTo as _0x16d043,merge as _0x47d3c5,of as _0xa8b45b,shareReplay as _0x46e2a6,switchMap as _0x765746,takeUntil as _0x5f111a}from'rxjs';import{distinctUntilChanged as _0x172dd3,filter as _0x522941,map as _0x604f04,switchMap as _0x253e4b,takeUntil as _0x24f2c5,throttleTime as _0x4a810f}from'rxjs/operators';import{MessageType as _0x2cde3b,Tooltip as _0x8c830b,clsx as _0x54133e}from'@univerjs/design';import{LoadingMultiIcon as _0x216548,OffLineIcon as _0xf80b95,OnLineIcon as _0x2484f6}from'@univerjs/icons';import{useCallback as _0x1f9b6c,useMemo as _0x434cef}from'react';import{jsx as _0x9caa67}from'react/jsx-runtime';function _0x1252(){const _0x47e1bc=['evented','moveTo','removeEventListener','_cachedData','imageSourceType','_scheduleSaving','dispose','setStateCache','univer-text-green-500','symbol','_hover','transformStateCache','_render','subscribeEvent','executeCommand','_anchorDot','OFFLINE','m1Prime','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSheetBySheetId','transformMutation','override','registerRenderModule','asObservable','_hideTimer','send','_messageService','_dataLoaderService','show','getUnitStatus$','_initWindowErrorListener','enableLocalCache','length','_updateCollabCursors','_initUserListener','invokeId','saveTaskMap','_handleLeaveEvent','polite','InsertRangeMoveRightCommandId','getCollabCursors$','getOffsetConfig','_getSheetObject','getUniverSheetInstance','black','_setFormulaLimitStatus','button','_transformService','getSheetId','_collabCursorState$','_offsetY','sheetId','getSnapshot','univer-border-none\x20univer-bg-transparent','getAncestorScale','/run/','_hasFormulaInDirtyRanges','selection','_collabCursorController','origin','defineProperty','findNodePositionByCharIndex',',\x200.2)','column','createInstance','_getLighterColor','height','_showGuardMessage','_monkeyPatchLogService','doc.mutation.rich-text-editing','endColumn','socket$','_notificationService','requireSession','_id','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','pushState','_highlightSecond','_initStatusListener','#FFF','addObjects','onPointerMove$','univer-flex\x20univer-items-center\x20univer-justify-center','collaboration-client-ui.collabStatus.syncing','with','NO_OTHER_CLIENTS_EDITING','1764tTbyBD','functionsExecutedState','status$','transformRemoteChangeset','unitID','univer-appearance-none','_send','collaboration-client-ui.config','collaboration-client-ui.collaboration.closeRoom','div','_color','_uploadLog','CONFLICT','resolve','getFormulaLimitStatusUrl','collaboration-client-ui.session.will-retry','1563cUIaHd','assignAColorForMemberID','sheetID','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_name','setShapeProps','_assignedColors','_disabled','function','push','_status$','_docSkeletonManagerService','next','getRenderById','_blinkIntervalTimer','getCollabEntity$','setTimeout','offsetY','433333iwfYQB','getRelativeToViewportCoord','call','post','addObject$','[LogService\x20Error]:\x20','stageInfo','showText','transformMutationsWithChangeset','row','_setupSubUnitSync','8HdkLgS','setInterval','_docSkeleton','bind','collaboration-client-ui.formula.calculation.unable','blue.400','wsSessionTicketUrl','_getSessionTicket','removeObjects','sessionStatus$','maxFormulaLimit','currentUsage','clearInterval','_clearPolling','_labelPosition','transform','complete','memberID','HEADER_MENU','highlightSecond','collaboration-client-ui.session.connection-failed','univer-text-blue-500','collaboration-client-ui.collaboration.single-unit.warning','pluginName','ONLINE','replace','_docTransformStateCacheService','object','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','textRanges','getFocusedUnit','beforeCommandExecuted','isActive','_getScale','getActiveRange','_collabSessionService','_currentUsage','_heartbeatTimer','fill','_revisionService','uni.network.url-service','UNIVER_DOC','_startBlinking','disposeUnit','tooltipKey','fillRule','collaboration-client-ui.collabStatus.synced','strokeWidth','catch','mutations','_showText','find','_isApplyingOverlays','Loading','_scheduleClearOtherTimer','onPointerEnter$','focusedId','limitInfo','getMergeData','rgba','setItem','_toggleOnline','getTypeOfUnitDisposed$','transformIMECache','_onCursorUpdate','_scheduleRender','decorate','getActiveSlide','Unknown\x20user','toPrimitive','USERS_LEAVE','getUndoRedoMutationParamsCache','_getObjectBounds','_highlight','SOCKET_FAILED_RETRY','contains','_online','_configService','min','getVpScrollXYInfoByPosToVp','unitId','executionId','loadUnit','_localeService','collaboration-client-ui.formula.calculation.waiting','kind','addClipboardHook','DeleteRangeMoveLeftCommandId','bottom','_collaborationController','_urlService','UNIVER_SLIDE','_backgroundColor','forEach','storage','collaboration-client-ui.collabStatus.notCollab','undoState','color','enableFrontendLog','_refreshCollabCursors','_range','getSkeleton','has','_checkAndWaitForCalculationPermission','RemoveColCommandId','RECT','AWAITING','_selfUnitIDs','_registerDependencies','801252KLfBUG','totalFormulasToCalculate','enableDocumentCollaborationUI','rgb','TEXT','/universer-api/license/formula/limit/start','stack','lineWidth','_removeCollabCursors','univer-h-8\x20univer-w-8\x20univer-rounded-lg','dark:focus:!univer-ring-offset-gray-800','reason','_cursors','restore','ticket','startRow','InsertRangeMoveDownCommandId','source','@univerjs-pro/collaboration-client-ui','_syncEditingCollabCursorService','collab-text-anchor-','currentTheme$','Failed','collaboration-client-ui.conflict.title','_colorIndex','lineTo','newValue','version','_isBlinkVisible','getCurrentUnitOfType','collaboration-client-ui.session.collaboration-timeout','_beforeCloseService','getMemberID','getDocRanges','_collaborationSessionService','resize','cursorInfo$','getCurrentRevOfUnit','NOT_COLLAB','?taskId=','Success','_getSaveTimeout','disposeWithMe','flatMap','Error','_sheetSkeletonManagerService','_localStorageService','stage','reconnect','getUnitId','_cursorInfo$','isArray','selectedIds','_handleHover','_cursor','_taskIds','collab-text-range-','addEventListener','startsWith','_getFormulaLimitStatus','error','searchParams','collaboration-client-ui.collabStatus.fetchMiss','urlChange$','_httpService','_scene','whenReady','saveOfflineData','set','_getSceneObjectByKey','getId','VIEW_MAIN','toISOString','span','setLineDash','_initUnhandledRejectionListener','angle','code','_memberService','_roomMembers$','registerRefRange','setOffsetY','_unitStatus','true','hovered','location','collaboration-client-ui.collabStatus.conflict','getValue','_transformHistoryAndStateStack','replaceState','/universer-api/license/formula/limit/done','onStarting','setConfig','getItem','onCommandExecuted','_onRefRangeChange','_drawRectRange','currentSkeleton$','univer-text-red-500','univer-text-orange-500','_pollingInterval','_scheduleHeartbeat','selections','measureText','_docClipboardService','body','_localCacheService','_maxFormulaLimit','slice','slide-collab-cursor-','collabCursorState$','_handleHeartbeatEvent','now','_lastResponseTimestamp','runId','_colorAssignService','triggerDblclick','name','unsubscribe','top','SYNCED','subunit','[RemoteUniscriptService]:\x20no\x20focused\x20unit','ranges','arc','_stopBlinking','drawWith','setActiveRange','size','_pointerMoveDisposable','collaboration-client-ui.formula.calculation.started','_init','_docTransformSelectionsService','_releaseCalculationLimit','editingUnit','_onCursorDelete','CLOSE_ROOM','collaboration-client-ui.collabStatus.offline','_slideDrawingStateService','UPDATE_CURSOR','_doCreateSocket','prototype','_docTransformIMECacheService','_saveTaskMap','/universer-api/license/formula/limit/status','_drawTextRange','pageManager','_docSyncEditingCollabCursorService','_drawAnchor','colno','add','roomMembers$','clear','range','scene','spin','_initCommandExecutedListener','SOCKET_FAILED','_shapes','PERMISSION_DENIED','_renderScheduled','values','getColorFromTheme','_anchor','yellow.400','SUCCESS','_clearOtherTimers','_entityInit$','context','setAlpha','iterator','getParam','cursorInfo','[CollaborationDataLoaderController]','parse','collaboration-client-ui.collaboration.offline-data-not-saved','transformByState','_startCalculationLimit','_hovered','_renderManagerService','red.300','clickable','deepClone','i18nKey','_handleJoinEvent','getConfig','_toggleOffline','default','makeDirty','_lastPointer','status','_imageIoService','data','pipe','m2Prime','application/json','_textBubble','type','_initDependencies','onPointerLeave$','disableLocalCache','onRendered','key','fillStyle','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','exhaustSavingTask','_collaborationUIEventService','roomMembers','split','PENDING','1159398UzWXmI','_draw','_getMergeRange','8864009dxSuSJ','startColumn','history','subscribe','_entities','stringify','/universer-api/frontend/logs','getCellPositionByOffset','START_CALCULATION','colorClass','lineno','message','debug','eventID','dispose$','_updateLocalCursor','[Window\x20Error]:\x20','_document','transformSelections','map','constructor','toString','green.600','2420586ZAlpPm','getObject','_setupBeforeClosingHandler','_univerInstanceService','packageName','_transformUndoRedoStack','_updateSubUnitFromURLParams','OTHER_CLIENT_EDITING','_ensureSubject','_docStateChangeManagerService','_eventUnsubscribe','RemoveRowCommandId','_checkCalculationAvailable','...','_saveCache','redoState','_removeClearOtherTimer','indicator','from','_initEvent','fillText','_config','SUBMIT_CHANGESET_TIMEOUT','_memberID','_logService','string','getActiveSheet','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','JOIN_ROOM_FAILED','clearTimeout','_themeService','then','\x20-\x20','_initEntityListener','_applyCommand','init','onMouseMove','pulse','preventDefault','_injector','_instanceService','UNIVER_SHEET','addObject','_context','_updateURLWithCurrentState','_initCommandInterceptor','getStateCache','delete','5viVFhY','removeObject','left','static','_session','evenodd','Warning','activeSheet$','all','slide-element-selection','InsertColCommandId','params','highlight','endRow','beginPath','_blinkTimer','_startDocCollabCursor','getTypeOfUnitAdded$','getRangePointData','_getAnchorBounding','event$','strokeRect','20DaPHkO','_cursorShapes',':backup:','unshift','getMember','_uiPartsService','2745799mICEpW','hide','_commandService','get','width','setUndoRedoMutationParamsCache','univer-m-0\x20univer-p-0','collab-rect-range-','collaboration-client-ui.collabClient.tooltip.reconnect','shift','save','OTHER_CLIENTS_EDITING','subUnitId','_latestCursors','getViewport','parseInt','syncEditingCollabCursor','text','href','getCurrentSelections','unit','filter','rgba(','_unitOnClients'];_0x1252=function(){return _0x47e1bc;};return _0x1252();}import{IRemoteInstanceService as _0x51ce34}from'@univerjs/rpc';import{EffectRefRangId as _0x56a66c,RefRangeService as _0x9e6999,SetSelectionsOperation as _0x3bdd76,SetWorksheetActivateCommand as _0x5071be,SheetsSelectionsService as _0x540af8,handleDeleteRangeMoveLeft as _0x2b098e,handleDeleteRangeMoveUp as _0x4d40d6,handleIRemoveCol as _0x3388d5,handleIRemoveRow as _0x57f509,handleInsertCol as _0x5bca1f,handleInsertRangeMoveDown as _0x5ba2f4,handleInsertRangeMoveRight as _0x5900e8,handleInsertRow as _0x519390,handleMoveRange as _0x1de67b,runRefRangeMutations as _0xb2c88a}from'@univerjs/sheets';import{IRenderManagerService as _0x17c2eb,Rect as _0x1408dc,RegularPolygon as _0x1d7fed,SHEET_VIEWPORT_KEY as _0x293e2f,Shape as _0x4e52b0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x178e3d,Vector2 as _0x375a03,getColor as _0x37a6ef}from'@univerjs/engine-render';import{HTTPService as _0x2fee98,ISocketService as _0x21a141,WebSocketService as _0x4c2e99}from'@univerjs/network';import{DocIMEInputManagerService as _0x4470e8,IDocClipboardService as _0x440c03,NodePositionConvertToCursor as _0xc7012,NodePositionConvertToRectRange as _0xd13fd0,SetDocZoomRatioOperation as _0x3a1fed,TEXT_RANGE_LAYER_INDEX as _0x4f1dc6}from'@univerjs/docs-ui';import{IImageIoService as _0x1a25d5}from'@univerjs/drawing';import{CollaborationEvent as _0x36e91d,ISnapshotServerService as _0x36b03a,ITransformService as _0x2e0827,RevisionService as _0x18ade7,isTransformMutationFailure as _0x5a337f,isTransformMutationsWithChangesetSuccess as _0x286f9e}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x391601,DocSkeletonManagerService as _0x15639d,DocStateChangeManagerService as _0x556b00,RichTextEditingMutation as _0x239684,SetTextSelectionsOperation as _0x2d0d07}from'@univerjs/docs';import{FormulaExecuteStageType as _0x42dd59,FormulaExecutedStateType as _0x368132,SetFormulaCalculationNotificationMutation as _0x325e4e,SetFormulaCalculationStartMutation as _0x41430f,deserializeRangeWithSheet as _0x3afaa7,serializeRangeWithSheet as _0x3cd9f7}from'@univerjs/engine-formula';import{ISlideDrawingStateService as _0x397568,buildDrawingOKey as _0x378493}from'@univerjs-pro/slides-ui';import{SheetSkeletonManagerService as _0x2bafef,getCoordByCell as _0x2dcc48,getSheetObject as _0x4b75dc}from'@univerjs/sheets-ui';import{ErrorCode as _0x30ce4e}from'@univerjs/protocol';function Xt(_0xa7f01f){const _0x30298d=_0x449b;switch(_0xa7f01f){case _0x21b797['OFFLINE']:return{'icon':_0x9caa67(_0xf80b95,{}),'colorClass':_0x30298d(0x3d7),'i18nKey':_0x30298d(0x1be),'tooltipKey':_0x30298d(0x275),'clickable':!0x0,'indicator':'static'};case _0x21b797[_0x30298d(0x2e7)]:return{'icon':_0x9caa67(_0xf80b95,{}),'colorClass':_0x30298d(0x3d8),'i18nKey':_0x30298d(0x3cb),'clickable':!0x1,'indicator':'static'};case _0x21b797['FETCH_MISS']:return{'icon':_0x9caa67(_0x216548,{}),'colorClass':_0x30298d(0x31d),'i18nKey':_0x30298d(0x3b3),'clickable':!0x1,'indicator':'spin'};case _0x21b797['NOT_COLLAB']:return{'icon':_0x9caa67(_0x2484f6,{}),'colorClass':'univer-text-gray-400','i18nKey':_0x30298d(0x367),'clickable':!0x1,'indicator':_0x30298d(0x254)};case _0x21b797[_0x30298d(0x372)]:case _0x21b797['AWAITING_WITH_PENDING']:return{'icon':_0x9caa67(_0x216548,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x30298d(0x2d8),'clickable':!0x1,'indicator':_0x30298d(0x1d0)};case _0x21b797[_0x30298d(0x206)]:return{'icon':_0x9caa67(_0x216548,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case _0x21b797[_0x30298d(0x1ad)]:return{'icon':_0x9caa67(_0x2484f6,{}),'colorClass':_0x30298d(0x28d),'i18nKey':_0x30298d(0x336),'clickable':!0x1,'indicator':_0x30298d(0x254)};}}function Zt(_0x343225){const _0x127666=_0x449b;let {status$:_0x430a7f}=_0x343225,_0x4c2a08=_0x416d0d(_0x430a7f,_0x21b797[_0x127666(0x39b)]),_0x2532f5=_0x1df8bc(_0x2cad47),_0x51c9a3=_0x1df8bc(_0x95c018),_0x3d0690=_0x434cef(()=>Xt(_0x4c2a08),[_0x4c2a08]),_0x41f700=_0x4c2a08!==_0x21b797[_0x127666(0x295)],_0x5e62f0=_0x2532f5['t'](_0x3d0690[_0x127666(0x1ec)]),_0x3ac54c=_0x3d0690[_0x127666(0x334)]?_0x2532f5['t'](_0x3d0690['tooltipKey']):_0x5e62f0,_0x41a80f=_0x1f9b6c(()=>{const _0x8ee3fe=_0x127666;_0x41f700||_0x51c9a3[_0x8ee3fe(0x3a5)]();},[_0x41f700,_0x51c9a3]),_0x1a10f2=_0x1f9b6c(_0x5630f3=>{const _0x4df1b2=_0x127666;!_0x41f700&&(_0x5630f3[_0x4df1b2(0x1ff)]==='Enter'||_0x5630f3[_0x4df1b2(0x1ff)]==='\x20')&&(_0x5630f3[_0x4df1b2(0x247)](),_0x51c9a3['reconnect']());},[_0x41f700,_0x51c9a3]),_0xad8046=_0x9caa67(_0x127666(0x3be),{'className':_0x54133e('univer-flex\x20univer-items-center\x20univer-justify-center',_0x127666(0x201),_0x3d0690[_0x127666(0x213)],{'univer-animate-spin':_0x3d0690[_0x127666(0x232)]===_0x127666(0x1d0),'univer-animate-pulse':_0x3d0690[_0x127666(0x232)]===_0x127666(0x246)}),'aria-hidden':_0x127666(0x3c8),'children':_0x3d0690['icon']}),_0xaadf20=_0x9caa67(_0x127666(0x3be),{'className':_0x54133e(_0x127666(0x2d7),_0x127666(0x37e),'univer-transition-all\x20univer-duration-200',_0x127666(0x324),_0x127666(0x37f),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x3d0690[_0x127666(0x1ea)],'univer-cursor-default':!_0x3d0690[_0x127666(0x1ea)]}),'children':_0xad8046});return _0x3d0690['clickable']?_0x9caa67(_0x8c830b,{'title':_0x3ac54c,'placement':'bottom','children':_0x9caa67('button',{'type':_0x127666(0x2b3),'onClick':_0x41a80f,'onKeyDown':_0x1a10f2,'className':_0x54133e(_0x127666(0x2ee),_0x127666(0x2ba),_0x127666(0x273),_0x127666(0x2e0)),'aria-label':_0x5e62f0+_0x127666(0x241)+_0x3ac54c,'role':'status','aria-live':_0x127666(0x2ab),'aria-atomic':'true','children':_0xaadf20})}):_0x9caa67(_0x8c830b,{'title':_0x3ac54c,'placement':_0x127666(0x360),'children':_0x9caa67(_0x127666(0x2e4),{'className':_0x54133e(_0x127666(0x2ee),'univer-border-none\x20univer-bg-transparent',_0x127666(0x273)),'aria-label':_0x5e62f0,'role':_0x127666(0x1f3),'aria-live':'polite','aria-atomic':_0x127666(0x3c8),'children':_0xaadf20})});}function W(_0x4efd65){'@babel/helpers - typeof';const _0x1b74b4=_0x449b;return W=typeof Symbol==_0x1b74b4(0x2f3)&&typeof Symbol[_0x1b74b4(0x1df)]==_0x1b74b4(0x28e)?function(_0x1355b1){return typeof _0x1355b1;}:function(_0x61f627){const _0xb1c412=_0x1b74b4;return _0x61f627&&typeof Symbol==_0xb1c412(0x2f3)&&_0x61f627[_0xb1c412(0x21e)]===Symbol&&_0x61f627!==Symbol[_0xb1c412(0x1c2)]?_0xb1c412(0x28e):typeof _0x61f627;},W(_0x4efd65);}function Qt(_0x16fc79,_0x23e729){const _0xa14e65=_0x449b;if(W(_0x16fc79)!='object'||!_0x16fc79)return _0x16fc79;var _0x475d36=_0x16fc79[Symbol[_0xa14e65(0x34d)]];if(_0x475d36!==void 0x0){var _0x391e62=_0x475d36[_0xa14e65(0x2ff)](_0x16fc79,_0x23e729||_0xa14e65(0x1f0));if(W(_0x391e62)!=_0xa14e65(0x323))return _0x391e62;throw TypeError(_0xa14e65(0x297));}return(_0x23e729===_0xa14e65(0x23a)?String:Number)(_0x16fc79);}function $t(_0x1f281f){const _0xfd333e=_0x449b;var _0x47963a=Qt(_0x1f281f,_0xfd333e(0x23a));return W(_0x47963a)==_0xfd333e(0x28e)?_0x47963a:_0x47963a+'';}function G(_0x36acac,_0x30ccf7,_0xbe30e){return(_0x30ccf7=$t(_0x30ccf7))in _0x36acac?Object['defineProperty'](_0x36acac,_0x30ccf7,{'value':_0xbe30e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36acac[_0x30ccf7]=_0xbe30e,_0x36acac;}function K(_0x8c89d3,_0x5fe119){return function(_0x2fef32,_0x3f44b3){_0x5fe119(_0x2fef32,_0x3f44b3,_0x8c89d3);};}function q(_0x16bdf7,_0x26fab4,_0x38aaed,_0x43ba8a){const _0x362a5d=_0x449b;var _0x383f20=arguments[_0x362a5d(0x2a5)],_0x196c01=_0x383f20<0x3?_0x26fab4:_0x43ba8a===null?_0x43ba8a=Object['getOwnPropertyDescriptor'](_0x26fab4,_0x38aaed):_0x43ba8a,_0x171732;if(typeof Reflect==_0x362a5d(0x323)&&typeof Reflect[_0x362a5d(0x34a)]=='function')_0x196c01=Reflect[_0x362a5d(0x34a)](_0x16bdf7,_0x26fab4,_0x38aaed,_0x43ba8a);else{for(var _0x416165=_0x16bdf7['length']-0x1;_0x416165>=0x0;_0x416165--)(_0x171732=_0x16bdf7[_0x416165])&&(_0x196c01=(_0x383f20<0x3?_0x171732(_0x196c01):_0x383f20>0x3?_0x171732(_0x26fab4,_0x38aaed,_0x196c01):_0x171732(_0x26fab4,_0x38aaed))||_0x196c01);}return _0x383f20>0x3&&_0x196c01&&Object[_0x362a5d(0x2c1)](_0x26fab4,_0x38aaed,_0x196c01),_0x196c01;}let J=class extends _0x20ff58{constructor(_0x56cde4,_0xd8d7c3,_0x1bee7f,_0x1e967a){const _0x3056a4=_0x449b;super(),this[_0x3056a4(0x224)]=_0x56cde4,this[_0x3056a4(0x248)]=_0xd8d7c3,this[_0x3056a4(0x361)]=_0x1bee7f,this[_0x3056a4(0x26c)]=_0x1e967a,G(this,_0x3056a4(0x2f5),new _0xd9ac59(_0x21b797[_0x3056a4(0x39b)])),this['_initStatusComponent'](),this['_initStatusListener']();}[_0x392a75(0x2d3)](){const _0x5186b0=_0x392a75;this[_0x5186b0(0x39f)](_0x47d3c5(this[_0x5186b0(0x224)]['focused$'],this[_0x5186b0(0x224)]['getCurrentTypeOfUnit$'](_0x12ddec[_0x5186b0(0x331)]),this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x12ddec[_0x5186b0(0x24a)]))[_0x5186b0(0x1f6)](_0x604f04(()=>en(this[_0x5186b0(0x224)])),_0x172dd3(),_0x765746(_0x27786c=>_0x27786c?this['_collaborationController'][_0x5186b0(0x2fa)](_0x27786c):_0xa8b45b(null)),_0x765746(_0x75a98b=>_0x75a98b?_0x75a98b[_0x5186b0(0x2dd)]:_0xa8b45b(_0x21b797[_0x5186b0(0x39b)])))[_0x5186b0(0x20d)](_0x2f5ac4=>{const _0x222c35=_0x5186b0;this[_0x222c35(0x2f5)][_0x222c35(0x2f7)](_0x2f5ac4);}));}['_initStatusComponent'](){const _0x471b2=_0x392a75;this['disposeWithMe'](this[_0x471b2(0x26c)]['registerComponent'](_0x7793c[_0x471b2(0x31a)],()=>_0x5df3f2(tn({'status$':this[_0x471b2(0x2f5)][_0x471b2(0x29c)]()}),this[_0x471b2(0x248)])));}};J=q([K(0x0,_0x5c7755),K(0x1,_0x13edf9(_0x4decc3)),K(0x2,_0x13edf9(_0x57a70b)),K(0x3,_0x5d36ed)],J);function en(_0x43b992){const _0x4034e5=_0x392a75;let _0x563efd=_0x43b992['getFocusedUnit'](),_0x15db33=_0x563efd==null?void 0x0:_0x563efd[_0x4034e5(0x3a6)]();if(_0x15db33&&!_0x5eb0f9(_0x15db33))return _0x15db33;let _0x58fc34=_0x43b992[_0x4034e5(0x392)](_0x12ddec[_0x4034e5(0x331)]),_0x43856b=_0x58fc34==null?void 0x0:_0x58fc34[_0x4034e5(0x3a6)]();if(_0x43856b&&!_0x5eb0f9(_0x43856b))return _0x43856b;let _0x4e05be=_0x43b992[_0x4034e5(0x392)](_0x12ddec['UNIVER_SHEET']);if(_0x4e05be)return _0x4e05be[_0x4034e5(0x3a6)]();let _0x423cbd=_0x43b992['getAllUnitsForType'](_0x12ddec[_0x4034e5(0x331)])[_0x4034e5(0x33b)](_0x232ca9=>!_0x5eb0f9(_0x232ca9[_0x4034e5(0x3a6)]()));return _0x423cbd?_0x423cbd[_0x4034e5(0x3a6)]():null;}function tn(_0x280a88){let {status$:_0x36abac}=_0x280a88;return function(){return _0x9caa67(Zt,{'status$':_0x36abac});};}const nn=_0x2e2bac(_0x392a75(0x330));let Y=class extends _0x47ffee{constructor(_0x21129b,_0xf457b2,_0x18018a,_0x512c86,_0x2df28e){const _0x10e725=_0x392a75;super(),this[_0x10e725(0x362)]=_0x21129b,this[_0x10e725(0x239)]=_0xf457b2,this[_0x10e725(0x26f)]=_0x18018a,this['_dataLoaderService']=_0x512c86,_0x2df28e?_0x2df28e==null||_0x2df28e[_0x10e725(0x3b7)]()[_0x10e725(0x240)](()=>this[_0x10e725(0x1b8)]()):(this['_logService']['debug'](_0x10e725(0x1e2),_0x10e725(0x2d0)),this[_0x10e725(0x1b8)]());}async[_0x392a75(0x1b8)](){const _0x2640f0=_0x392a75;let _0x4e58c0=this[_0x2640f0(0x362)]['getParam'](_0x2640f0(0x281)),_0x2f2f69=this[_0x2640f0(0x362)][_0x2640f0(0x1e0)](_0x2640f0(0x1fa)),_0x177e20=this[_0x2640f0(0x362)][_0x2640f0(0x1e0)](_0x2640f0(0x1ae));if(!_0x4e58c0||!_0x2f2f69){this[_0x2640f0(0x239)][_0x2640f0(0x216)](_0x2640f0(0x1e2),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x460f53=await this[_0x2640f0(0x2a0)][_0x2640f0(0x35a)](_0x4e58c0,Number(_0x2f2f69),_0x177e20);_0x460f53&&_0x460f53 instanceof _0x43f811&&this['_setupSubUnitSync'](_0x460f53);}async[_0x392a75(0x307)](_0x294b28){const _0x59ad8c=_0x392a75;await this['_updateSubUnitFromURLParams'](_0x294b28),_0x294b28[_0x59ad8c(0x258)][_0x59ad8c(0x1f6)](_0x5f111a(this['dispose$']))['subscribe'](_0x169e02=>{const _0x454132=_0x59ad8c;_0x169e02&&this[_0x454132(0x24d)](_0x169e02);}),this[_0x59ad8c(0x362)][_0x59ad8c(0x3b4)]['pipe'](_0x5f111a(this[_0x59ad8c(0x218)]))['subscribe'](()=>this[_0x59ad8c(0x227)](_0x294b28));}[_0x392a75(0x24d)](_0x226375,_0x3e1ef6=!0x1){const _0x311384=_0x392a75;let _0x5000bc=this[_0x311384(0x362)]['getParam'](_0x311384(0x1ae));_0x226375[_0x311384(0x2b5)]()!==_0x5000bc&&this[_0x311384(0x362)]['setParam'](_0x311384(0x1ae),_0x226375['getSheetId'](),_0x3e1ef6);}async[_0x392a75(0x227)](_0x30106a){const _0x32d504=_0x392a75;var _0xc18c29;let _0x1ca030=this[_0x32d504(0x362)][_0x32d504(0x1e0)](_0x32d504(0x1ae));if(!_0x1ca030||!_0x30106a[_0x32d504(0x298)](_0x1ca030)){let _0x403e5b=_0x30106a['getUnhiddenWorksheets']()[0x0],_0x4b5077=_0x30106a['getSheetBySheetId'](_0x403e5b);if(!_0x4b5077)return;this[_0x32d504(0x24d)](_0x4b5077,!0x0),await this[_0x32d504(0x26f)][_0x32d504(0x293)](_0x5071be['id'],{'unitId':_0x30106a['getUnitId'](),'subUnitId':_0x403e5b});return;}((_0xc18c29=_0x30106a['getActiveSheet']())==null?void 0x0:_0xc18c29[_0x32d504(0x2b5)]())!==_0x1ca030&&await this[_0x32d504(0x26f)][_0x32d504(0x293)](_0x5071be['id'],{'unitId':_0x30106a[_0x32d504(0x3a6)](),'subUnitId':_0x1ca030});}};Y=q([K(0x0,nn),K(0x1,_0x4cd0b8),K(0x2,_0x338dbd),K(0x3,_0x13edf9(_0x4c4321)),K(0x4,_0x3593b5(_0x51ce34))],Y);var rn=_0x392a75(0x387),an='1.0.0-alpha.2';const on={};let sn=class extends _0x47ffee{constructor(_0x179f1e,_0x1bc1e7){const _0x47a93e=_0x392a75;super(),this[_0x47a93e(0x3dd)]=_0x179f1e,this[_0x47a93e(0x1f4)]=_0x1bc1e7,this[_0x47a93e(0x1b8)]();}[_0x392a75(0x1b8)](){const _0x1f7b70=_0x392a75;let _0x1bd041=this;this[_0x1f7b70(0x39f)](this[_0x1f7b70(0x3dd)][_0x1f7b70(0x35e)]({'onBeforePasteImage':async _0x4fbf0e=>{const _0x12df1f=_0x1f7b70;let _0x944054=await _0x1bd041[_0x12df1f(0x1f4)]['saveImage'](_0x4fbf0e);return _0x944054?{'source':_0x944054[_0x12df1f(0x386)],'imageSourceType':_0x944054[_0x12df1f(0x289)]}:null;}}));}};sn=q([K(0x0,_0x440c03),K(0x1,_0x1a25d5)],sn);const cn=['purple.300','jiqing.500',_0x392a75(0x220),_0x392a75(0x1e9),_0x392a75(0x30d),_0x392a75(0x1d9)];var ln=class extends _0x20ff58{constructor(..._0x3074d2){const _0xcf7c85=_0x392a75;super(..._0x3074d2),G(this,_0xcf7c85(0x2f1),new Map()),G(this,'_colorIndex',0x0);}[_0x392a75(0x2ec)](_0x2ac69d){const _0x261ba1=_0x392a75;if(this['_assignedColors'][_0x261ba1(0x36e)](_0x2ac69d))return this[_0x261ba1(0x2f1)][_0x261ba1(0x270)](_0x2ac69d);let _0x5dac6b=cn[this[_0x261ba1(0x38d)]];return this[_0x261ba1(0x38d)]=(this[_0x261ba1(0x38d)]+0x1)%cn['length'],this['_assignedColors'][_0x261ba1(0x3b9)](_0x2ac69d,_0x5dac6b),_0x5dac6b;}};function un(_0x3b9e12){const _0x184fd6=_0x392a75;let _0x522017='';for(let _0x46b327 of _0x3b9e12){let {startOffset:_0x259f3d,endOffset:_0x131fe0,isActive:_0x39aa44,rangeType:_0x7ed07,segmentId:_0x438b14,segmentPage:_0x525686}=_0x46b327;_0x522017[_0x184fd6(0x2a5)]&&(_0x522017+=','),_0x522017+=_0x259f3d+':'+_0x131fe0+':'+(_0x39aa44?'1':'0')+':'+_0x7ed07+':'+_0x438b14+':'+_0x525686;}return _0x522017;}function dn(_0x53c4bd){const _0x511e56=_0x392a75;let _0x12cea4=_0x53c4bd[_0x511e56(0x205)](','),_0x1cbbb2=[];for(let _0x90a5d7 of _0x12cea4){let [_0x224815,_0x2706c0,_0x247596,_0x26b440,_0x2ac780,_0x23bff4]=_0x90a5d7[_0x511e56(0x205)](':');_0x1cbbb2[_0x511e56(0x2f4)]({'startOffset':Number(_0x224815),'endOffset':Number(_0x2706c0),'collapsed':_0x224815===_0x2706c0,'isActive':_0x247596==='1','rangeType':_0x26b440===_0x109cc1['TEXT']?_0x109cc1[_0x511e56(0x379)]:_0x109cc1['RECT'],'segmentId':typeof _0x2ac780==_0x511e56(0x23a)?String(_0x2ac780):'','segmentPage':Number(_0x23bff4==null?-0x1:_0x23bff4)});}return _0x1cbbb2['some'](_0x32f4b0=>_0x32f4b0['isActive'])||(_0x1cbbb2[0x0][_0x511e56(0x328)]=!0x0),_0x1cbbb2;}var fn=class extends _0x47ffee{constructor(..._0x48457c){const _0xd0ff70=_0x392a75;super(..._0x48457c),G(this,'_collabCursorState$',new _0xd9ac59(null)),G(this,_0xd0ff70(0x1a3),this[_0xd0ff70(0x2b6)][_0xd0ff70(0x29c)]());}[_0x392a75(0x27d)](_0x1345e3){let {unitID:_0x3e64c6,memberID:_0x564991,textRanges:_0x3cf76f}=_0x1345e3,_0x1bb4ae=un(_0x3cf76f);if(_0x1bb4ae==='')return;let _0x4a14f2={'unitID':_0x3e64c6,'memberID':_0x564991,'selection':_0x1bb4ae};this['_collabCursorState$']['next'](_0x4a14f2);}};let pn=class extends _0x47ffee{get[_0x392a75(0x1e1)](){const _0x53855e=_0x392a75;return this[_0x53855e(0x3a7)][_0x53855e(0x3cc)]();}get['roomMembers'](){const _0x451107=_0x392a75;return this['_roomMembers$'][_0x451107(0x3cc)]();}constructor(_0x48f3f1,_0x2e37b1,_0xb097cc,_0x5a6567,_0x2d3fe2,_0x5b22d9,_0x415442,_0x103959,_0x95f195){const _0x42235f=_0x392a75;super(),this[_0x42235f(0x2df)]=_0x48f3f1,this[_0x42235f(0x255)]=_0x2e37b1,this['_injector']=_0xb097cc,this['_colorAssignService']=_0x5a6567,this[_0x42235f(0x3c3)]=_0x2d3fe2,this[_0x42235f(0x388)]=_0x5b22d9,this[_0x42235f(0x2b4)]=_0x415442,this['_univerInstanceService']=_0x103959,this[_0x42235f(0x26f)]=_0x95f195,G(this,_0x42235f(0x354),!0x1),G(this,'_init',!0x1),G(this,_0x42235f(0x3a7),new _0xd9ac59(new Map())),G(this,_0x42235f(0x399),this[_0x42235f(0x3a7)][_0x42235f(0x29c)]()),G(this,_0x42235f(0x3c4),new _0xd9ac59([])),G(this,_0x42235f(0x1cc),this[_0x42235f(0x3c4)][_0x42235f(0x1f6)](_0x401206(0x12c))),G(this,_0x42235f(0x219),_0x4ef1e1(_0x453e57=>{const _0x1c624b=_0x42235f;let _0x405991={'eventID':_0x36e91d['UPDATE_CURSOR'],'data':{'unitID':this[_0x1c624b(0x2df)],'memberID':this[_0x1c624b(0x255)][_0x1c624b(0x395)](),'selection':un(_0x453e57)}};this['_session'][_0x1c624b(0x29e)](_0x405991,this[_0x1c624b(0x2df)]);},0x64));}['dispose'](){const _0x4e9f26=_0x392a75;super['dispose'](),this[_0x4e9f26(0x3a7)][_0x4e9f26(0x2f7)](new Map()),this[_0x4e9f26(0x3a7)][_0x4e9f26(0x318)](),this['_roomMembers$'][_0x4e9f26(0x2f7)]([]),this[_0x4e9f26(0x3c4)][_0x4e9f26(0x318)]();}['init'](){const _0x31b5ae=_0x392a75;this[_0x31b5ae(0x1b8)]||(this[_0x31b5ae(0x1b8)]=!0x0,this['_session'][_0x31b5ae(0x311)][_0x31b5ae(0x1f6)](_0x5f111a(this[_0x31b5ae(0x218)]))[_0x31b5ae(0x20d)](_0x479003=>{const _0x2bc705=_0x31b5ae;_0x479003===_0x11dd82[_0x2bc705(0x320)]?this[_0x2bc705(0x345)]():this[_0x2bc705(0x1ef)]();}),this['_session'][_0x31b5ae(0x265)][_0x31b5ae(0x1f6)](_0x5f111a(this[_0x31b5ae(0x218)]))[_0x31b5ae(0x20d)](_0x17d65b=>{const _0x24f0fb=_0x31b5ae;let _0x18fde1=_0x17d65b[_0x24f0fb(0x217)];_0x18fde1===_0x36e91d[_0x24f0fb(0x1c0)]&&this[_0x24f0fb(0x348)](_0x17d65b),_0x18fde1===_0x36e91d[_0x24f0fb(0x34e)]&&this[_0x24f0fb(0x1bc)](_0x17d65b);}),this['disposeWithMe'](this[_0x31b5ae(0x26f)][_0x31b5ae(0x3d3)](_0x1a9aff=>{const _0x2dcfc9=_0x31b5ae;let _0x2ec8ed=_0x1a9aff[_0x2dcfc9(0x25c)];_0x2ec8ed!=null&&this[_0x2dcfc9(0x354)]&&_0x1a9aff['id']===_0x2d0d07['id']&&_0x2ec8ed[_0x2dcfc9(0x358)]===this[_0x2dcfc9(0x2df)]&&_0x2ec8ed['isEditing']===!0x1&&_0x2ec8ed[_0x2dcfc9(0x1b0)][_0x2dcfc9(0x2a5)]>0x0&&this[_0x2dcfc9(0x219)](_0x2ec8ed[_0x2dcfc9(0x1b0)]);})),this[_0x31b5ae(0x388)]['collabCursorState$'][_0x31b5ae(0x1f6)](_0x5f111a(this['dispose$']))[_0x31b5ae(0x20d)](_0x4418dc=>{const _0x26d76c=_0x31b5ae;if((_0x4418dc==null?void 0x0:_0x4418dc[_0x26d76c(0x2df)])!==this[_0x26d76c(0x2df)])return;let _0x1b85aa={'eventID':_0x36e91d[_0x26d76c(0x1c0)],'data':_0x4418dc};this[_0x26d76c(0x348)](_0x1b85aa);}),this['disposeWithMe'](this['_commandService'][_0x31b5ae(0x3d3)](_0x4505e8=>{const _0x37e5c7=_0x31b5ae;if(_0x4505e8[_0x37e5c7(0x25c)]==null)return;let _0x584a4e=_0x4505e8['params'];if(_0x4505e8['id']!==_0x239684['id']||_0x584a4e[_0x37e5c7(0x358)]!==this['unitID'])return;let _0x1be36c={'id':_0x37e5c7(0x2ca),'params':_0x584a4e},_0x16bcf4=this['cursorInfo'];for(let [_0x4f1d3c,_0x2be5a8]of _0x16bcf4){let _0x2b3712={'id':_0x37e5c7(0x2ca),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2be5a8[_0x37e5c7(0x1b0)]}},_0x19f6ee=this[_0x37e5c7(0x2b4)][_0x37e5c7(0x299)](_0x1be36c,_0x2b3712,!0x1);if(_0x5a337f(_0x19f6ee))throw _0x19f6ee[_0x37e5c7(0x3b1)];_0x16bcf4['set'](_0x4f1d3c,{..._0x2be5a8,'ranges':_0x19f6ee[_0x37e5c7(0x1f7)][_0x37e5c7(0x25c)][_0x37e5c7(0x325)]});}queueMicrotask(()=>{const _0x4c3581=_0x37e5c7;this[_0x4c3581(0x3a7)][_0x4c3581(0x2f7)](_0x16bcf4);});})));}['_onCursorUpdate'](_0x2ee585){const _0x1dc9a3=_0x392a75;var _0xf3410d,_0x16ed5d;let {memberID:_0x297cc9,selection:_0x33d258}=_0x2ee585[_0x1dc9a3(0x1f5)],_0x2457b8=dn(_0x33d258),_0x1996a9=(_0xf3410d=(_0x16ed5d=this['_memberService'][_0x1dc9a3(0x26b)](this[_0x1dc9a3(0x2df)],_0x297cc9))==null?void 0x0:_0x16ed5d[_0x1dc9a3(0x1aa)])==null?_0x1dc9a3(0x34c):_0xf3410d,_0x513407={'color':this[_0x1dc9a3(0x1a8)][_0x1dc9a3(0x2ec)](_0x297cc9),'name':_0x1996a9,'ranges':_0x2457b8},_0x480740=this['cursorInfo'];_0x480740[_0x1dc9a3(0x3b9)](_0x297cc9,_0x513407),this['_cursorInfo$'][_0x1dc9a3(0x2f7)](_0x480740);}[_0x392a75(0x1bc)](_0x13a5e5){const _0x5c3fcf=_0x392a75;let {memberID:_0x14a67d}=_0x13a5e5['data'],_0x51d909=this[_0x5c3fcf(0x1e1)];_0x51d909[_0x5c3fcf(0x250)](_0x14a67d),this[_0x5c3fcf(0x3a7)][_0x5c3fcf(0x2f7)](_0x51d909);}[_0x392a75(0x345)](){const _0x4f3ffd=_0x392a75;var _0x31c5a3;if(this[_0x4f3ffd(0x354)]=!0x0,((_0x31c5a3=this[_0x4f3ffd(0x224)][_0x4f3ffd(0x326)]())==null?void 0x0:_0x31c5a3[_0x4f3ffd(0x3a6)]())!==this[_0x4f3ffd(0x2df)])return;let _0x41ef64=this['_injector'][_0x4f3ffd(0x270)](_0x391601)[_0x4f3ffd(0x396)]();Array[_0x4f3ffd(0x3a8)](_0x41ef64)&&_0x41ef64[_0x4f3ffd(0x2a5)]>0x0&&this[_0x4f3ffd(0x219)](_0x41ef64);}[_0x392a75(0x1ef)](){this['_online']=!0x1;}};pn=q([K(0x2,_0x13edf9(_0x4decc3)),K(0x3,_0x13edf9(ln)),K(0x4,_0x13edf9(_0x58b5b3)),K(0x5,_0x13edf9(fn)),K(0x6,_0x2e0827),K(0x7,_0x5c7755),K(0x8,_0x338dbd)],pn);const mn=()=>{let _0x106594=[],_0x3d07bc=!0x1;return _0x2cb8eb=>{const _0x22648c=_0x449b;_0x106594[_0x22648c(0x2f4)](_0x2cb8eb),_0x3d07bc||(_0x3d07bc=!0x0,setTimeout(()=>{const _0x39baaa=_0x22648c;_0x106594[_0x39baaa(0x365)](_0x5d465e=>_0x5d465e()),_0x106594=[],_0x3d07bc=!0x1;}));};};let hn=class extends _0x47ffee{get['cursorInfo'](){const _0x490f85=_0x392a75;return this[_0x490f85(0x3a7)][_0x490f85(0x3cc)]();}get[_0x392a75(0x204)](){const _0x2b9708=_0x392a75;return this[_0x2b9708(0x3c4)][_0x2b9708(0x3cc)]();}constructor(_0x2b41b3,_0x515143,_0x4be77c,_0x2d0d1d,_0x26ca42,_0x27df9a,_0x36ca25,_0x506107){const _0x1a5b66=_0x392a75;super(),this[_0x1a5b66(0x2df)]=_0x2b41b3,this['_session']=_0x515143,this[_0x1a5b66(0x248)]=_0x4be77c,this['_colorAssignService']=_0x2d0d1d,this[_0x1a5b66(0x3c3)]=_0x26ca42,this['_univerInstanceService']=_0x27df9a,this[_0x1a5b66(0x26f)]=_0x36ca25,this['_refRangeService']=_0x506107,G(this,_0x1a5b66(0x354),!0x1),G(this,'_init',!0x1),G(this,_0x1a5b66(0x3a7),new _0xd9ac59(new Map())),G(this,_0x1a5b66(0x399),this[_0x1a5b66(0x3a7)][_0x1a5b66(0x29c)]()),G(this,_0x1a5b66(0x3c4),new _0xd9ac59([])),G(this,_0x1a5b66(0x1cc),this[_0x1a5b66(0x3c4)][_0x1a5b66(0x1f6)](_0x401206(0x12c))),G(this,_0x1a5b66(0x219),_0x4ef1e1((_0xb320fb,_0x3dc1ba)=>{const _0x2c7889=_0x1a5b66;let _0x504a5a={'eventID':_0x36e91d['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c7889(0x2df)],'memberID':this[_0x2c7889(0x255)][_0x2c7889(0x395)](),'selection':_0x3cd9f7(_0xb320fb,_0x3dc1ba[_0x2c7889(0x1ce)])}};this[_0x2c7889(0x255)][_0x2c7889(0x29e)](_0x504a5a,this[_0x2c7889(0x2df)]);},0x64));}[_0x392a75(0x28b)](){const _0x3dbf93=_0x392a75;super[_0x3dbf93(0x28b)](),this['_cursorInfo$'][_0x3dbf93(0x2f7)](new Map()),this[_0x3dbf93(0x3a7)][_0x3dbf93(0x318)](),this['_roomMembers$']['next']([]),this[_0x3dbf93(0x3c4)][_0x3dbf93(0x318)]();}[_0x392a75(0x244)](){const _0x5859e3=_0x392a75;this[_0x5859e3(0x1b8)]||(this[_0x5859e3(0x1b8)]=!0x0,this[_0x5859e3(0x255)][_0x5859e3(0x311)][_0x5859e3(0x1f6)](_0x5f111a(this[_0x5859e3(0x218)]))[_0x5859e3(0x20d)](_0x3d4d99=>{const _0x213495=_0x5859e3;_0x3d4d99===_0x11dd82[_0x213495(0x320)]?this[_0x213495(0x345)]():this[_0x213495(0x1ef)]();}),this['_session'][_0x5859e3(0x265)][_0x5859e3(0x1f6)](_0x5f111a(this[_0x5859e3(0x218)]))[_0x5859e3(0x20d)](_0x33b1bf=>{const _0x55302f=_0x5859e3;let _0x3e22a8=_0x33b1bf[_0x55302f(0x217)];_0x3e22a8===_0x36e91d[_0x55302f(0x1c0)]&&this[_0x55302f(0x348)](_0x33b1bf),_0x3e22a8===_0x36e91d['USERS_LEAVE']&&this[_0x55302f(0x1bc)](_0x33b1bf);}),this[_0x5859e3(0x3d4)](),this[_0x5859e3(0x39f)](this['_commandService'][_0x5859e3(0x3d3)](_0x126914=>{const _0x4ee80c=_0x5859e3;if(this['_online']&&_0x126914['id']===_0x3bdd76['id']&&_0x126914['params'][_0x4ee80c(0x358)]===this[_0x4ee80c(0x2df)]){let _0x305ac6=_0x126914[_0x4ee80c(0x25c)];this[_0x4ee80c(0x219)](_0x305ac6[_0x4ee80c(0x279)],_0x305ac6[_0x4ee80c(0x3db)][0x0]);}})));}[_0x392a75(0x348)](_0x77b39b){const _0x5e8d62=_0x392a75;var _0x2e6c22,_0x3a547d;let {memberID:_0x2f6d75,selection:_0x248964}=_0x77b39b[_0x5e8d62(0x1f5)],{sheetName:_0x4b894e,range:_0x2f3138}=_0x3afaa7(_0x248964),_0xdf8f8={'name':(_0x2e6c22=(_0x3a547d=this['_memberService'][_0x5e8d62(0x26b)](this[_0x5e8d62(0x2df)],_0x2f6d75))==null?void 0x0:_0x3a547d['name'])==null?_0x5e8d62(0x34c):_0x2e6c22,'range':this[_0x5e8d62(0x209)](_0x4b894e,_0x2f3138),'sheetID':_0x4b894e,'color':this['_colorAssignService'][_0x5e8d62(0x2ec)](_0x2f6d75),'selection':_0x248964},_0x32e982=this[_0x5e8d62(0x1e1)];_0x32e982[_0x5e8d62(0x3b9)](_0x2f6d75,_0xdf8f8),this[_0x5e8d62(0x3a7)][_0x5e8d62(0x2f7)](_0x32e982);}[_0x392a75(0x1bc)](_0x19cb1c){const _0x4e8dce=_0x392a75;let {memberID:_0x3c7db3}=_0x19cb1c[_0x4e8dce(0x1f5)],_0x1244ae=this[_0x4e8dce(0x1e1)];_0x1244ae['delete'](_0x3c7db3),this['_cursorInfo$'][_0x4e8dce(0x2f7)](_0x1244ae);}[_0x392a75(0x209)](_0x14b127,_0x3ddfea){const _0x22e930=_0x392a75;var _0x4251cd;let _0x7a9423=(_0x4251cd=this['_univerInstanceService'][_0x22e930(0x2b0)](this['unitID']))==null||(_0x4251cd=_0x4251cd[_0x22e930(0x298)](_0x14b127))==null?void 0x0:_0x4251cd[_0x22e930(0x342)]();return(_0x7a9423==null?void 0x0:_0x7a9423[_0x22e930(0x33b)](_0x229cdf=>_0x48cd52[_0x22e930(0x353)](_0x229cdf,_0x3ddfea)))||_0x3ddfea;}['_onRefRangeChange'](){const _0x159454=_0x392a75;let _0x17ad62=new _0x432b9a(),_0x3912e3=mn(),_0xfa6f80=()=>{const _0x558904=_0x449b;_0x17ad62[_0x558904(0x28b)]();let _0x5891d6=(_0x2448f1,_0x440520,_0x366451,_0x43f8ed)=>{const _0x1c56c2=_0x558904;let _0x5a12b0=[];switch(_0x2448f1['id']){case _0x56a66c[_0x1c56c2(0x35f)]:_0x5a12b0=_0x2b098e(_0x2448f1,_0x43f8ed);break;case _0x56a66c['DeleteRangeMoveUpCommandId']:_0x5a12b0=_0x4d40d6(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x25b)]:_0x5a12b0=_0x5bca1f(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x385)]:_0x5a12b0=_0x5ba2f4(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x2ac)]:_0x5a12b0=_0x5900e8(_0x2448f1,_0x43f8ed);break;case _0x56a66c['InsertRowCommandId']:_0x5a12b0=_0x519390(_0x2448f1,_0x43f8ed);break;case _0x56a66c['MoveRangeCommandId']:_0x5a12b0=_0x1de67b(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x370)]:_0x5a12b0=_0x3388d5(_0x2448f1,_0x43f8ed);break;case _0x56a66c[_0x1c56c2(0x22c)]:_0x5a12b0=_0x57f509(_0x2448f1,_0x43f8ed);break;}let _0x2207b0=_0xb2c88a(_0x5a12b0,_0x43f8ed),_0x424d16=this[_0x1c56c2(0x1e1)][_0x1c56c2(0x270)](_0x440520);if(_0x424d16&&_0x2207b0){let _0x54f1b0={..._0x424d16,'range':_0x2207b0};this[_0x1c56c2(0x1e1)][_0x1c56c2(0x3b9)](_0x440520,_0x54f1b0),_0x3912e3(()=>{const _0x323c97=_0x1c56c2;let _0x14a7c1=this['_refRangeService'][_0x323c97(0x3c5)](_0x2207b0,_0x110dd2=>(_0x14a7c1[_0x323c97(0x28b)](),_0x5891d6(_0x110dd2,_0x440520,_0x366451,_0x2207b0)));_0x17ad62[_0x323c97(0x1cb)](_0x14a7c1);});}return{'redos':[],'undos':[]};};this[_0x558904(0x1e1)]['forEach']((_0x2307c6,_0x155f24)=>{const _0x2c6aa3=_0x558904;let {range:_0x68fb4e,sheetID:_0x53f81e}=_0x2307c6,_0x3d1094=this['_refRangeService'][_0x2c6aa3(0x3c5)](_0x68fb4e,_0x1d206d=>(_0x3d1094[_0x2c6aa3(0x28b)](),_0x5891d6(_0x1d206d,_0x155f24,_0x53f81e,_0x68fb4e)));_0x17ad62[_0x2c6aa3(0x1cb)](_0x3d1094);});};this['disposeWithMe'](_0x245507(this[_0x159454(0x3a7)][_0x159454(0x20d)](()=>{_0xfa6f80();})));}[_0x392a75(0x345)](){const _0x1ba870=_0x392a75;var _0x218992,_0x55250d;if(this[_0x1ba870(0x354)]=!0x0,((_0x218992=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x218992[_0x1ba870(0x3a6)]())!==this['unitID'])return;let _0x540bcd=(_0x55250d=this[_0x1ba870(0x248)][_0x1ba870(0x270)](_0x540af8)[_0x1ba870(0x280)]())==null?void 0x0:_0x55250d[0x0],_0x29306b=this[_0x1ba870(0x224)][_0x1ba870(0x392)](_0x12ddec[_0x1ba870(0x24a)])[_0x1ba870(0x23b)]();_0x540bcd&&_0x29306b&&this[_0x1ba870(0x219)](_0x29306b[_0x1ba870(0x2b5)](),_0x540bcd);}['_toggleOffline'](){this['_online']=!0x1;}};hn=q([K(0x2,_0x13edf9(_0x4decc3)),K(0x3,_0x13edf9(ln)),K(0x4,_0x13edf9(_0x58b5b3)),K(0x5,_0x5c7755),K(0x6,_0x338dbd),K(0x7,_0x13edf9(_0x9e6999))],hn);function gn(_0x4407a9){const _0x3511d7=_0x392a75;let _0x227e00;try{_0x227e00=JSON[_0x3511d7(0x1e3)](_0x4407a9);}catch{return null;}if(typeof _0x227e00!=_0x3511d7(0x323)||!_0x227e00)return null;let _0x23f8a4=_0x227e00;if(_0x23f8a4[_0x3511d7(0x35d)]!==_0x3511d7(0x25a)||typeof _0x23f8a4['unitId']!=_0x3511d7(0x23a)||typeof _0x23f8a4[_0x3511d7(0x279)]!='string')return null;let _0x4f3995=Array[_0x3511d7(0x3a8)](_0x23f8a4[_0x3511d7(0x3a9)])?_0x23f8a4[_0x3511d7(0x3a9)]['filter'](_0x37f29a=>typeof _0x37f29a=='string'):[],_0x60128c=typeof _0x23f8a4[_0x3511d7(0x340)]==_0x3511d7(0x23a)?_0x23f8a4[_0x3511d7(0x340)]:null;return{'kind':_0x3511d7(0x25a),'unitId':_0x23f8a4[_0x3511d7(0x358)],'subUnitId':_0x23f8a4[_0x3511d7(0x279)],'selectedIds':_0x4f3995,'focusedId':_0x60128c};}let _n=class extends _0x47ffee{get[_0x392a75(0x1e1)](){const _0x4441f4=_0x392a75;return this[_0x4441f4(0x3a7)]['getValue']();}get[_0x392a75(0x204)](){const _0x11a9d6=_0x392a75;return this['_roomMembers$'][_0x11a9d6(0x3cc)]();}constructor(_0x4ea54d,_0x44fda4,_0x436739,_0x4d3cc1,_0x2c60b2){const _0x502463=_0x392a75;super(),this[_0x502463(0x2df)]=_0x4ea54d,this['_session']=_0x44fda4,this[_0x502463(0x1a8)]=_0x436739,this[_0x502463(0x3c3)]=_0x4d3cc1,this[_0x502463(0x1bf)]=_0x2c60b2,G(this,_0x502463(0x354),!0x1),G(this,_0x502463(0x1b8),!0x1),G(this,'_cursorInfo$',new _0xd9ac59(new Map())),G(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),G(this,_0x502463(0x3c4),new _0xd9ac59([])),G(this,_0x502463(0x1cc),this[_0x502463(0x3c4)][_0x502463(0x1f6)](_0x401206(0x12c))),G(this,'_updateLocalCursor',_0x4ef1e1(_0x13a877=>{const _0x333bd6=_0x502463;let _0x98bbbc=_0x13a877[_0x333bd6(0x1dd)];if(!_0x98bbbc||_0x98bbbc[_0x333bd6(0x358)]!==this['unitID'])return;let _0x5bca8f={'kind':_0x333bd6(0x25a),'unitId':_0x98bbbc[_0x333bd6(0x358)],'subUnitId':_0x98bbbc[_0x333bd6(0x279)],'selectedIds':_0x13a877['selectedIds'][_0x333bd6(0x282)](_0x2544f9=>typeof _0x2544f9=='string'),'focusedId':_0x13a877[_0x333bd6(0x340)]},_0x595cc5={'eventID':_0x36e91d['UPDATE_CURSOR'],'data':{'unitID':this[_0x333bd6(0x2df)],'memberID':this[_0x333bd6(0x255)]['getMemberID'](),'selection':JSON[_0x333bd6(0x20f)](_0x5bca8f)}};this[_0x333bd6(0x255)][_0x333bd6(0x29e)](_0x595cc5,this[_0x333bd6(0x2df)]);},0x64));}['dispose'](){const _0x5b4f83=_0x392a75;super[_0x5b4f83(0x28b)](),this[_0x5b4f83(0x3a7)][_0x5b4f83(0x2f7)](new Map()),this[_0x5b4f83(0x3a7)][_0x5b4f83(0x318)](),this[_0x5b4f83(0x3c4)][_0x5b4f83(0x2f7)]([]),this[_0x5b4f83(0x3c4)][_0x5b4f83(0x318)]();}['init'](){const _0xa5b0ef=_0x392a75;this[_0xa5b0ef(0x1b8)]||(this['_init']=!0x0,this[_0xa5b0ef(0x255)][_0xa5b0ef(0x311)][_0xa5b0ef(0x1f6)](_0x5f111a(this[_0xa5b0ef(0x218)]))[_0xa5b0ef(0x20d)](_0x103f07=>{const _0x36d686=_0xa5b0ef;_0x103f07===_0x11dd82[_0x36d686(0x320)]?this[_0x36d686(0x345)]():this[_0x36d686(0x1ef)]();}),this[_0xa5b0ef(0x255)][_0xa5b0ef(0x265)][_0xa5b0ef(0x1f6)](_0x5f111a(this[_0xa5b0ef(0x218)]))[_0xa5b0ef(0x20d)](_0x4f67b0=>{const _0x4e672a=_0xa5b0ef;let _0x199ddb=_0x4f67b0[_0x4e672a(0x217)];_0x199ddb===_0x36e91d[_0x4e672a(0x1c0)]&&this[_0x4e672a(0x348)](_0x4f67b0),_0x199ddb===_0x36e91d[_0x4e672a(0x34e)]&&this[_0x4e672a(0x1bc)](_0x4f67b0);}),this[_0xa5b0ef(0x1bf)]['state$']['pipe'](_0x5f111a(this[_0xa5b0ef(0x218)]))[_0xa5b0ef(0x20d)](_0x57244b=>{const _0x15444c=_0xa5b0ef;this[_0x15444c(0x354)]&&this[_0x15444c(0x219)](_0x57244b);}));}[_0x392a75(0x348)](_0x43b4d4){const _0x2b2d59=_0x392a75;var _0x438735,_0x4e3a77,_0x474145,_0x8223a9;let {memberID:_0x3c4c25,selection:_0x43f308}=_0x43b4d4['data'];if(_0x3c4c25===((_0x438735=(_0x4e3a77=this[_0x2b2d59(0x255)])[_0x2b2d59(0x395)])==null?void 0x0:_0x438735[_0x2b2d59(0x2ff)](_0x4e3a77)))return;let _0x525bc4=gn(_0x43f308);if(!_0x525bc4||_0x525bc4['unitId']!==this[_0x2b2d59(0x2df)])return;let _0x1454df=(_0x474145=(_0x8223a9=this[_0x2b2d59(0x3c3)][_0x2b2d59(0x26b)](this[_0x2b2d59(0x2df)],_0x3c4c25))==null?void 0x0:_0x8223a9[_0x2b2d59(0x1aa)])==null?_0x2b2d59(0x34c):_0x474145,_0x1dad21={'color':this[_0x2b2d59(0x1a8)][_0x2b2d59(0x2ec)](_0x3c4c25),'name':_0x1454df,'unitId':_0x525bc4[_0x2b2d59(0x358)],'subUnitId':_0x525bc4[_0x2b2d59(0x279)],'selectedIds':_0x525bc4[_0x2b2d59(0x3a9)],'focusedId':_0x525bc4[_0x2b2d59(0x340)],'selection':_0x43f308},_0x14f8f1=new Map(this[_0x2b2d59(0x1e1)]);_0x14f8f1['set'](_0x3c4c25,_0x1dad21),this[_0x2b2d59(0x3a7)][_0x2b2d59(0x2f7)](_0x14f8f1);}[_0x392a75(0x1bc)](_0x19fd7b){const _0x3d8d14=_0x392a75;let {memberID:_0x4ab143}=_0x19fd7b[_0x3d8d14(0x1f5)],_0x497a89=new Map(this[_0x3d8d14(0x1e1)]);_0x497a89['delete'](_0x4ab143),this[_0x3d8d14(0x3a7)]['next'](_0x497a89);}[_0x392a75(0x345)](){const _0xb71315=_0x392a75;this[_0xb71315(0x354)]=!0x0,this['_updateLocalCursor'](this[_0xb71315(0x1bf)][_0xb71315(0x2b9)]());}[_0x392a75(0x1ef)](){this['_online']=!0x1;}};_n=q([K(0x2,_0x13edf9(ln)),K(0x3,_0x13edf9(_0x58b5b3)),K(0x4,_0x13edf9(_0x397568))],_n);let X=class extends _0x47ffee{constructor(_0x525dea,_0x23cbe3,_0x4af119){const _0x115d3d=_0x392a75;super(),this[_0x115d3d(0x224)]=_0x525dea,this[_0x115d3d(0x248)]=_0x23cbe3,this[_0x115d3d(0x32b)]=_0x4af119,G(this,_0x115d3d(0x20e),new Map()),G(this,_0x115d3d(0x1dc),new _0x4039fa()),this[_0x115d3d(0x1b8)]();}[_0x392a75(0x28b)](){const _0x1615e6=_0x392a75;super[_0x1615e6(0x28b)](),this[_0x1615e6(0x1dc)][_0x1615e6(0x318)](),this[_0x1615e6(0x20e)][_0x1615e6(0x365)](_0x55cf7f=>_0x55cf7f['dispose']());}[_0x392a75(0x2ad)](_0x3b703b){const _0x3973de=_0x392a75;return this['_entities'][_0x3973de(0x36e)](_0x3b703b)?this['_entities'][_0x3973de(0x270)](_0x3b703b)[_0x3973de(0x399)]:this[_0x3973de(0x1dc)][_0x3973de(0x1f6)](_0x3a2fbb(_0x3718fe=>_0x3718fe[_0x3973de(0x2df)]===_0x3b703b),_0x765746(_0x226599=>_0x226599[_0x3973de(0x399)]));}[_0x392a75(0x1b8)](){const _0x528781=_0x392a75;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x12ddec[_0x528781(0x24a)])[_0x528781(0x1f6)](_0x5f111a(this[_0x528781(0x218)]))[_0x528781(0x20d)](async _0x261475=>{const _0x156ec9=_0x528781;let _0x4a772c=_0x261475[_0x156ec9(0x281)]['getUnitId'](),_0x53c301=await this['_startSheetCollabCursor'](_0x4a772c);this[_0x156ec9(0x1dc)][_0x156ec9(0x2f7)](_0x53c301),this[_0x156ec9(0x20e)][_0x156ec9(0x3b9)](_0x4a772c,_0x53c301);}),this[_0x528781(0x224)][_0x528781(0x262)](_0x12ddec[_0x528781(0x331)])['pipe'](_0x5f111a(this['dispose$']))[_0x528781(0x1f6)](_0x3a2fbb(_0x2e730a=>!_0x2e730a['unit'][_0x528781(0x3a6)]()['startsWith']('__')))[_0x528781(0x20d)](async _0x366444=>{const _0x29da62=_0x528781;let {unit:_0x2fd5e8}=_0x366444,_0x299dd6=_0x2fd5e8[_0x29da62(0x3a6)](),_0x43b086=await this[_0x29da62(0x261)](_0x299dd6);this[_0x29da62(0x1dc)][_0x29da62(0x2f7)](_0x43b086),this[_0x29da62(0x20e)][_0x29da62(0x3b9)](_0x299dd6,_0x43b086);}),this[_0x528781(0x224)][_0x528781(0x262)](_0x12ddec['UNIVER_SLIDE'])['pipe'](_0x5f111a(this['dispose$']))[_0x528781(0x20d)](async _0x3d034d=>{const _0xdc300b=_0x528781;let _0x57e638=_0x3d034d[_0xdc300b(0x281)][_0xdc300b(0x3a6)](),_0x3fb810=await this['_startSlideCollabCursor'](_0x57e638);this[_0xdc300b(0x1dc)]['next'](_0x3fb810),this['_entities'][_0xdc300b(0x3b9)](_0x57e638,_0x3fb810);}),_0x47d3c5(this['_univerInstanceService'][_0x528781(0x346)](_0x12ddec['UNIVER_DOC']),this['_univerInstanceService'][_0x528781(0x346)](_0x12ddec[_0x528781(0x24a)]),this[_0x528781(0x224)][_0x528781(0x346)](_0x12ddec[_0x528781(0x363)]))['pipe'](_0x5f111a(this[_0x528781(0x218)]))[_0x528781(0x20d)](_0x71ca14=>{const _0x3c642a=_0x528781;let _0x32c96d=_0x71ca14['getUnitId'](),_0x471957=this[_0x3c642a(0x20e)]['get'](_0x32c96d);_0x471957&&(_0x471957[_0x3c642a(0x28b)](),this[_0x3c642a(0x20e)]['delete'](_0x32c96d));});}async['_startSheetCollabCursor'](_0x5a0e17){const _0x2c7e74=_0x392a75;let _0x36e0fa=await this[_0x2c7e74(0x32b)]['requireSession'](_0x5a0e17),_0x4fa4ed=this[_0x2c7e74(0x248)]['createInstance'](hn,_0x5a0e17,_0x36e0fa);return _0x4fa4ed[_0x2c7e74(0x244)](),_0x4fa4ed;}async[_0x392a75(0x261)](_0x532a68){const _0x4488c4=_0x392a75;let _0x5adc5c=await this[_0x4488c4(0x32b)]['requireSession'](_0x532a68),_0x2891e2=this[_0x4488c4(0x248)][_0x4488c4(0x2c5)](pn,_0x532a68,_0x5adc5c);return _0x2891e2[_0x4488c4(0x244)](),_0x2891e2;}async['_startSlideCollabCursor'](_0x180fb8){const _0x409868=_0x392a75;let _0x50f539=await this[_0x409868(0x32b)][_0x409868(0x2ce)](_0x180fb8),_0x62aa7f=this[_0x409868(0x248)][_0x409868(0x2c5)](_n,_0x180fb8,_0x50f539);return _0x62aa7f[_0x409868(0x244)](),_0x62aa7f;}};X=q([K(0x0,_0x5c7755),K(0x1,_0x13edf9(_0x4decc3)),K(0x2,_0x13edf9(_0x95c018))],X);function vn(_0x2686b7,_0x4cf72f){const _0x13a606=_0x392a75;var _0xd94707,_0x1512aa,_0x39754b;let {radius:_0x3b83a1,width:_0x3d9b77,height:_0x47a7ae}=_0x4cf72f;_0x3b83a1=(_0xd94707=_0x3b83a1)==null?0x0:_0xd94707,_0x3d9b77=(_0x1512aa=_0x3d9b77)==null?0x1e:_0x1512aa,_0x47a7ae=(_0x39754b=_0x47a7ae)==null?0x1e:_0x39754b;let _0x2dc1dd=0x0,_0x4d35ef=0x0,_0xa1ddc5=0x0;_0x2dc1dd=_0x4d35ef=_0xa1ddc5=Math['min'](_0x3b83a1,_0x3d9b77/0x2,_0x47a7ae/0x2),_0x2686b7[_0x13a606(0x25f)](),_0x2686b7[_0x13a606(0x286)](_0x2dc1dd,0x0),_0x2686b7[_0x13a606(0x38e)](_0x3d9b77-_0x4d35ef,0x0),_0x2686b7['arc'](_0x3d9b77-_0x4d35ef,_0x4d35ef,_0x4d35ef,Math['PI']*0x3/0x2,0x0,!0x1),_0x2686b7[_0x13a606(0x38e)](_0x3d9b77,_0x47a7ae-_0xa1ddc5),_0x2686b7[_0x13a606(0x1b1)](_0x3d9b77-_0xa1ddc5,_0x47a7ae-_0xa1ddc5,_0xa1ddc5,0x0,Math['PI']/0x2,!0x1),_0x2686b7[_0x13a606(0x38e)](0x0,_0x47a7ae),_0x2686b7['lineTo'](0x0,_0x2dc1dd),_0x2686b7[_0x13a606(0x1b1)](_0x2dc1dd,_0x2dc1dd,_0x2dc1dd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2686b7['closePath'](),_0x4cf72f[_0x13a606(0x32e)]&&(_0x2686b7[_0x13a606(0x277)](),_0x2686b7[_0x13a606(0x200)]=_0x4cf72f[_0x13a606(0x32e)],_0x4cf72f[_0x13a606(0x335)]===_0x13a606(0x256)?_0x2686b7['fill'](_0x13a606(0x256)):_0x2686b7[_0x13a606(0x32e)](),_0x2686b7[_0x13a606(0x382)]());}var yn=class e extends _0x4e52b0{constructor(_0x36e213,_0x4ad433){const _0x2c4346=_0x392a75;super(_0x36e213,_0x4ad433),G(this,'color',void 0x0),G(this,_0x2c4346(0x27e),void 0x0),this[_0x2c4346(0x369)]=_0x4ad433==null?void 0x0:_0x4ad433['color'],this[_0x2c4346(0x27e)]=_0x4ad433==null?void 0x0:_0x4ad433[_0x2c4346(0x27e)];}static[_0x392a75(0x1b3)](_0xfed965,_0x3bfb76){const _0x3b7914=_0x392a75;let {text:_0x34512f,color:_0x3e5ed7}=_0x3bfb76;_0xfed965[_0x3b7914(0x277)](),_0xfed965['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x4e396f=_0xfed965[_0x3b7914(0x3dc)](_0x34512f)[_0x3b7914(0x271)];if(vn(_0xfed965,{'height':0x14,'radius':0x4,'width':Math[_0x3b7914(0x356)](_0x4e396f+0x8,0xc8),'fill':_0x3e5ed7,'evented':!0x1}),_0xfed965[_0x3b7914(0x200)]=_0x3b7914(0x2d4),_0x4e396f>0xc0){let _0x200c43='',_0x5cb656=0x0;for(let _0x540ac5 of _0x34512f){let _0x5ee41b=_0xfed965['measureText'](_0x540ac5)[_0x3b7914(0x271)];if(_0x5cb656+_0x5ee41b<=0xc0-_0xfed965[_0x3b7914(0x3dc)](_0x3b7914(0x22e))[_0x3b7914(0x271)])_0x200c43+=_0x540ac5,_0x5cb656+=_0x5ee41b;else{_0x200c43+=_0x3b7914(0x22e);break;}}_0xfed965[_0x3b7914(0x235)](_0x200c43,0x4,0xf);}else _0xfed965['fillText'](_0x34512f,0x4,0xf);_0xfed965[_0x3b7914(0x382)]();}['_draw'](_0x46b78d){const _0x14eec2=_0x392a75;e[_0x14eec2(0x1b3)](_0x46b78d,this);}};const bn=_0x392a75(0x389);var xn=class{constructor(_0xa0512b,_0x372172,_0xc51d57,_0x204523){const _0x51415=_0x392a75;this['_cursor']=_0xa0512b,this[_0x51415(0x3b6)]=_0x372172,this[_0x51415(0x30a)]=_0xc51d57,this[_0x51415(0x21b)]=_0x204523,G(this,_0x51415(0x1d3),[]),G(this,'_anchor',null),G(this,_0x51415(0x1f9),null),G(this,_0x51415(0x294),null),G(this,_0x51415(0x29d),null),G(this,_0x51415(0x22b),null),this['_render']();}set[_0x392a75(0x28f)](_0x16cd11){const _0x261718=_0x392a75;_0x16cd11?(this[_0x261718(0x294)]&&this[_0x261718(0x294)][_0x261718(0x26e)](),this['_textBubble']&&this[_0x261718(0x1f9)][_0x261718(0x2a1)]()):(this['_anchorDot']&&this[_0x261718(0x294)]['show'](),this['_textBubble']&&this[_0x261718(0x1f9)]['hide']());}[_0x392a75(0x28b)](){const _0x45ae9c=_0x392a75;for(let _0x34cbe1 of this[_0x45ae9c(0x1d3)])_0x34cbe1[_0x45ae9c(0x28b)]();this[_0x45ae9c(0x1f9)]&&this['_textBubble']['dispose'](),this[_0x45ae9c(0x294)]&&this[_0x45ae9c(0x294)][_0x45ae9c(0x28b)](),this[_0x45ae9c(0x1d8)]&&this[_0x45ae9c(0x1d8)][_0x45ae9c(0x28b)](),this[_0x45ae9c(0x22b)]&&this[_0x45ae9c(0x22b)]();}[_0x392a75(0x291)](){const _0x6395bd=_0x392a75;let {_docSkeleton:_0x551e70,_document:_0x4eeba8}=this,{color:_0x5f1aac,name:_0x19db8e,ranges:_0xcc52c1}=this[_0x6395bd(0x3ab)],_0x1576d4=_0x4eeba8[_0x6395bd(0x2ae)](),{docsLeft:_0xfa662d,docsTop:_0xf30177}=_0x1576d4,_0x3c6dd0=new _0xc7012(_0x1576d4,_0x551e70);for(let {startOffset:_0x3382e9,endOffset:_0x5d7887,rangeType:_0x5b9d58,segmentId:_0x2bdf43,segmentPage:_0x5bd0e6,collapsed:_0x19e74c,isActive:_0x32b173}of _0xcc52c1){let _0x4a24a=_0x551e70['findNodePositionByCharIndex'](_0x3382e9,!0x0,_0x2bdf43,_0x5bd0e6),_0x3e63fb=_0x551e70[_0x6395bd(0x2c2)](_0x5d7887,!0x0,_0x2bdf43,_0x5bd0e6);if(_0x3e63fb==null&&(_0x3e63fb=_0x551e70[_0x6395bd(0x2c2)](_0x5d7887-0x1,!0x1,_0x2bdf43,_0x5bd0e6)),_0x32b173){let {contentBoxPointGroup:_0x4a9fb8}=_0x3c6dd0[_0x6395bd(0x263)](_0x3e63fb,_0x3e63fb);if(_0x4a9fb8[_0x6395bd(0x2a5)]===0x0)continue;this[_0x6395bd(0x1c9)](_0x5f1aac,_0x4a9fb8,_0xfa662d,_0xf30177,_0x19db8e),this[_0x6395bd(0x22b)]=this[_0x6395bd(0x3aa)]();}if(_0x4a24a&&_0x3e63fb){if(_0x5b9d58===_0x109cc1[_0x6395bd(0x371)]){var _0x1ebf4b;let {pointGroup:_0x2ece41}=(_0x1ebf4b=new _0xd13fd0(_0x1576d4,_0x551e70)['getRangePointData'](_0x4a24a,_0x3e63fb))==null?{}:_0x1ebf4b;if(_0x2ece41==null||_0x2ece41['length']===0x0)continue;this['_drawRectRange'](_0x5f1aac,_0x2ece41,_0xfa662d,_0xf30177);}else{if(!_0x19e74c){let {borderBoxPointGroup:_0x23b1db}=_0x3c6dd0[_0x6395bd(0x263)](_0x4a24a,_0x3e63fb);if(_0x23b1db[_0x6395bd(0x2a5)]===0x0)continue;this[_0x6395bd(0x1c6)](_0x5f1aac,_0x23b1db,_0xfa662d,_0xf30177);}}}}}[_0x392a75(0x1c9)](_0x33b234,_0x5cf550,_0x2c511c,_0x3a8818,_0x59d0cf){const _0x5f3df4=_0x392a75;let {left:_0x340d75,top:_0x4a1c93,height:_0x63cfa3}=this[_0x5f3df4(0x264)](_0x5cf550),_0x44f351=1.5/this[_0x5f3df4(0x329)](),_0x5b9673=new _0x1408dc(bn+_0x35c403(0x6),{'left':_0x340d75+_0x2c511c-_0x44f351,'top':_0x4a1c93+_0x3a8818,'height':_0x63cfa3,'width':1.5,'fill':_0x33b234||_0x37a6ef(_0x3a03e2[_0x5f3df4(0x2b1)],0x0),'strokeWidth':_0x44f351,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x5f3df4(0x1d8)]=_0x5b9673,this['_scene'][_0x5f3df4(0x24b)](_0x5b9673,_0x4f1dc6);let _0x4f0364=new _0x1408dc(bn+_0x35c403(0x6),{'left':_0x340d75+_0x2c511c-_0x44f351,'top':_0x4a1c93+_0x3a8818-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x33b234||_0x37a6ef(_0x3a03e2['black'],0x0),'strokeWidth':0x0,'stroke':_0x33b234||_0x37a6ef(_0x3a03e2['black'],0x0),'evented':!0x1});this[_0x5f3df4(0x294)]=_0x4f0364,this[_0x5f3df4(0x3b6)][_0x5f3df4(0x24b)](_0x4f0364,_0x4f1dc6);let _0x20022d=new yn(bn+_0x35c403(0x6),{'left':_0x340d75+_0x2c511c-_0x44f351,'top':_0x4a1c93+_0x3a8818-0x14,'text':_0x59d0cf,'color':_0x33b234});this[_0x5f3df4(0x1f9)]=_0x20022d,this[_0x5f3df4(0x3b6)][_0x5f3df4(0x24b)](_0x20022d,_0x4f1dc6),this[_0x5f3df4(0x28f)]=!0x1;}[_0x392a75(0x3aa)](){const _0x555b87=_0x392a75;let _0x2dc3ee=this[_0x555b87(0x1d8)][_0x555b87(0x33f)][_0x555b87(0x292)](()=>{const _0x27ad42=_0x555b87;this[_0x27ad42(0x28f)]=!0x0;}),_0xd84fa=this[_0x555b87(0x1d8)][_0x555b87(0x1fc)]['subscribeEvent'](()=>{const _0x396689=_0x555b87;this['_hideTimer']&&clearTimeout(this[_0x396689(0x29d)]),this[_0x396689(0x29d)]=setTimeout(()=>{const _0x2cd848=_0x396689;this[_0x2cd848(0x28f)]=!0x1;},0x7d0);});return()=>{const _0x296f18=_0x555b87;_0x2dc3ee[_0x296f18(0x1ab)](),_0xd84fa[_0x296f18(0x1ab)]();};}[_0x392a75(0x1c6)](_0x50f4eb,_0x49f62d,_0x1f73f5,_0x52dc1f){const _0xcebf=_0x392a75;let _0x3a1156=0.2,_0x3fe8fd=new _0x7737fd(_0x50f4eb)['setAlpha'](_0x3a1156)['toRgbString'](),_0x47bbb5=new _0x1d7fed(_0xcebf(0x3ad)+_0x35c403(0x6),{'pointsGroup':_0x49f62d,'fill':_0x3fe8fd||_0x37a6ef(_0x3a03e2['black'],_0x3a1156),'left':_0x1f73f5,'top':_0x52dc1f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xcebf(0x1d3)][_0xcebf(0x2f4)](_0x47bbb5),this[_0xcebf(0x3b6)][_0xcebf(0x24b)](_0x47bbb5,_0x4f1dc6);}[_0x392a75(0x3d5)](_0x1a300b,_0x1203e9,_0x5af8df,_0x15b606){const _0x52781e=_0x392a75;let _0xe3efb=0.2,_0x32b25a=new _0x7737fd(_0x1a300b)[_0x52781e(0x1de)](_0xe3efb)['toRgbString'](),_0x134a11=new _0x1d7fed(_0x52781e(0x274)+_0x35c403(0x6),{'pointsGroup':_0x1203e9,'fill':_0x32b25a||_0x37a6ef(_0x3a03e2[_0x52781e(0x2b1)],_0xe3efb),'left':_0x5af8df,'top':_0x15b606,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52781e(0x1d3)][_0x52781e(0x2f4)](_0x134a11),this[_0x52781e(0x3b6)][_0x52781e(0x24b)](_0x134a11,_0x4f1dc6);}['_getAnchorBounding'](_0x1f99f5){let _0x5b777c=_0x1f99f5[0x0],_0xbd7036=_0x5b777c[0x0],_0x47eee8=_0x5b777c[0x2],{x:_0x1472be,y:_0x16c99e}=_0xbd7036,{x:_0x3dad6d,y:_0x5c500e}=_0x47eee8;return{'left':_0x1472be,'top':_0x16c99e,'width':_0x3dad6d-_0x1472be,'height':_0x5c500e-_0x16c99e};}[_0x392a75(0x329)](){const _0x5c97bf=_0x392a75;let {scaleX:_0x3140c7,scaleY:_0x5cb589}=this['_scene'][_0x5c97bf(0x2bb)]();return Math['max'](_0x3140c7,_0x5cb589);}};let Sn=class extends _0x47ffee{constructor(_0xae629d,_0x39a0f1,_0x80d833,_0x4d787d,_0x23a391){const _0x4e17a0=_0x392a75;super(),this[_0x4e17a0(0x24c)]=_0xae629d,this['_docSkeletonManagerService']=_0x39a0f1,this[_0x4e17a0(0x2bf)]=_0x80d833,this[_0x4e17a0(0x26f)]=_0x4d787d,this['_themeService']=_0x23a391,G(this,_0x4e17a0(0x268),[]),G(this,_0x4e17a0(0x381),[]),this[_0x4e17a0(0x1b8)]();}['_init'](){const _0xa8c3d5=_0x392a75;let _0xf3455e=this[_0xa8c3d5(0x24c)]['unitId'],_0x547a91=this[_0xa8c3d5(0x2f6)];this[_0xa8c3d5(0x39f)](_0x578aed([this[_0xa8c3d5(0x2bf)]['getCollabCursors$'](_0xf3455e),this['_themeService'][_0xa8c3d5(0x38a)]])[_0xa8c3d5(0x1f6)](_0x604f04(([_0x21aef0,_0x5c9f0b])=>({'skeleton':_0x547a91[_0xa8c3d5(0x36d)](),'cursors':[..._0x21aef0[_0xa8c3d5(0x1d6)]()][_0xa8c3d5(0x3a0)](_0xc3b7a3=>({..._0xc3b7a3,'color':this[_0xa8c3d5(0x23f)]['getColorFromTheme'](_0xc3b7a3[_0xa8c3d5(0x369)])}))})))['subscribe'](_0xee4d10=>{const _0x1d0c2d=_0xa8c3d5;if(this['_removeCollabCursors'](),_0xee4d10){let {skeleton:_0x4aae31,cursors:_0x2ed51d}=_0xee4d10;this[_0x1d0c2d(0x2a6)](_0x4aae31,_0x2ed51d);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x392a75(0x2a6)](_0x2b1141,_0x30c2ef){const _0x4466af=_0x392a75;let {scene:_0x1bd01d,mainComponent:_0xc2119a}=this['_context'],_0x446f92=_0x30c2ef['map'](_0x754ea1=>new xn(_0x754ea1,_0x1bd01d,_0x2b1141,_0xc2119a));this[_0x4466af(0x268)]=_0x446f92,this[_0x4466af(0x381)]=_0x30c2ef;}[_0x392a75(0x36b)](){const _0x17960c=_0x392a75;this['_removeCollabCursors']();let {scene:_0x2565bb,mainComponent:_0x27d291}=this[_0x17960c(0x24c)],_0x44ade8=this[_0x17960c(0x2f6)][_0x17960c(0x36d)](),_0x5205fc=this['_cursors'][_0x17960c(0x21d)](_0x34d7d1=>new xn(_0x34d7d1,_0x2565bb,_0x44ade8,_0x27d291));this[_0x17960c(0x268)]=_0x5205fc;}['_removeCollabCursors'](){const _0x28e2d2=_0x392a75;this[_0x28e2d2(0x268)][_0x28e2d2(0x365)](_0x22b43c=>_0x22b43c[_0x28e2d2(0x28b)]()),this[_0x28e2d2(0x268)]=[];}[_0x392a75(0x1d1)](){const _0x5b71d4=_0x392a75;let _0x4d2472=[_0x3a1fed['id']];this[_0x5b71d4(0x39f)](this[_0x5b71d4(0x26f)][_0x5b71d4(0x3d3)](_0x2a9366=>{const _0x1f9235=_0x5b71d4;_0x4d2472['includes'](_0x2a9366['id'])&&_0x2a9366[_0x1f9235(0x25c)][_0x1f9235(0x358)]===this[_0x1f9235(0x24c)][_0x1f9235(0x358)]&&this[_0x1f9235(0x36b)]();}));}['_initResize'](){const _0x258e57=_0x392a75;this['disposeWithMe'](_0x22027b(this[_0x258e57(0x24c)]['engine']['onTransformChange$'])['pipe'](_0x522941(_0x3f0210=>_0x3f0210[_0x258e57(0x1fa)]===_0x178e3d[_0x258e57(0x398)]),_0x4a810f(0x10))[_0x258e57(0x20d)](()=>{this['_refreshCollabCursors']();}));}};Sn=q([K(0x1,_0x13edf9(_0x15639d)),K(0x2,_0x13edf9(X)),K(0x3,_0x338dbd),K(0x4,_0x13edf9(_0x50ff2f))],Sn);var Cn=class extends _0x4e52b0{constructor(_0x3377ff,_0x2dea89){const _0x12bc81=_0x392a75;if(super(_0x3377ff,_0x2dea89),G(this,_0x12bc81(0x2e5),void 0x0),G(this,_0x12bc81(0x1e7),!0x1),G(this,_0x12bc81(0x36c),void 0x0),G(this,_0x12bc81(0x2ef),''),G(this,_0x12bc81(0x316),_0x12bc81(0x1ac)),G(this,_0x12bc81(0x364),void 0x0),G(this,_0x12bc81(0x33a),void 0x0),G(this,_0x12bc81(0x351),void 0x0),G(this,_0x12bc81(0x2d2),0x4),G(this,_0x12bc81(0x260),void 0x0),G(this,_0x12bc81(0x2f9),void 0x0),G(this,_0x12bc81(0x391),!0x0),G(this,'_offsetY',0x0),_0x2dea89){var _0xf0ebaa;if(this['setShapeProps'](_0x2dea89),_0x2dea89[_0x12bc81(0x25d)]&&((_0xf0ebaa=_0x2dea89[_0x12bc81(0x31b)])==null?this['_highlightSecond']:_0xf0ebaa)){var _0x5c3347;this['_startBlinking']((_0x5c3347=_0x2dea89[_0x12bc81(0x31b)])==null?this['_highlightSecond']:_0x5c3347);}}this[_0x12bc81(0x33f)][_0x12bc81(0x292)](()=>this[_0x12bc81(0x2f0)]({'hovered':!0x0})),this[_0x12bc81(0x1fc)][_0x12bc81(0x292)](()=>this[_0x12bc81(0x2f0)]({'hovered':!0x1}));}[_0x392a75(0x3c6)](_0x467e2e){const _0x408354=_0x392a75;this[_0x408354(0x2b7)]=_0x467e2e;}[_0x392a75(0x2f0)](_0x3a1a75){const _0x378dff=_0x392a75;var _0x2dcbc1,_0x5cb870,_0x12ff73,_0x19b41f,_0x3dc0bd,_0x34339d,_0x5ba6d1;this[_0x378dff(0x2e5)]=(_0x2dcbc1=_0x3a1a75['color'])==null?this[_0x378dff(0x2e5)]:_0x2dcbc1,this[_0x378dff(0x1e7)]=(_0x5cb870=_0x3a1a75[_0x378dff(0x3c9)])==null?this['_hovered']:_0x5cb870,this[_0x378dff(0x36c)]=(_0x12ff73=_0x3a1a75[_0x378dff(0x1ce)])==null?this[_0x378dff(0x36c)]:_0x12ff73,this['_name']=(_0x19b41f=_0x3a1a75[_0x378dff(0x1aa)])==null?this[_0x378dff(0x2ef)]:_0x19b41f,this[_0x378dff(0x316)]=(_0x3dc0bd=_0x3a1a75['labelPosition'])==null?this[_0x378dff(0x316)]:_0x3dc0bd,this[_0x378dff(0x364)]=(_0x34339d=_0x3a1a75['backgroundColor'])==null?this[_0x378dff(0x364)]:_0x34339d,this[_0x378dff(0x33a)]=(_0x5ba6d1=_0x3a1a75[_0x378dff(0x304)])==null?this['_showText']:_0x5ba6d1,_0x3a1a75[_0x378dff(0x31b)]!==void 0x0&&(this['_highlightSecond']=_0x3a1a75[_0x378dff(0x31b)]),_0x3a1a75[_0x378dff(0x25d)]!==void 0x0&&(this[_0x378dff(0x351)]=_0x3a1a75['highlight']),_0x3a1a75[_0x378dff(0x2fc)]!==void 0x0&&(this[_0x378dff(0x2b7)]=_0x3a1a75['offsetY']),this['transformByState']({'width':_0x3a1a75[_0x378dff(0x271)],'height':_0x3a1a75[_0x378dff(0x2c7)]});}[_0x392a75(0x245)](_0xb47630){const _0x212c69=_0x392a75;let {row:_0x8b49e6,column:_0xfb00cb}=_0xb47630;if(_0x8b49e6>=this[_0x212c69(0x36c)]['startRow']&&_0x8b49e6<=this[_0x212c69(0x36c)][_0x212c69(0x25e)]&&_0xfb00cb>=this['_range'][_0x212c69(0x20b)]&&_0xfb00cb<=this[_0x212c69(0x36c)][_0x212c69(0x2cb)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x212c69(0x2f0)]({'hovered':!0x1});}[_0x392a75(0x332)](_0x1b2de2){const _0x29d6ac=_0x392a75;this[_0x29d6ac(0x1b2)](),this[_0x29d6ac(0x391)]=!0x0,this['_blinkIntervalTimer']=window[_0x29d6ac(0x309)](()=>{const _0x3aeb7f=_0x29d6ac;this[_0x3aeb7f(0x391)]=!this['_isBlinkVisible'],this[_0x3aeb7f(0x1f1)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x29d6ac(0x2fb)](()=>{const _0x53bf46=_0x29d6ac;this[_0x53bf46(0x1b2)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x1b2de2*0x3e8);}[_0x392a75(0x1b2)](){const _0x117f5a=_0x392a75;this['_blinkIntervalTimer']&&(window[_0x117f5a(0x314)](this[_0x117f5a(0x2f9)]),this[_0x117f5a(0x2f9)]=void 0x0),this['_blinkTimer']&&(window[_0x117f5a(0x23e)](this[_0x117f5a(0x260)]),this[_0x117f5a(0x260)]=void 0x0);}[_0x392a75(0x1a9)](_0x260bc3){return!0x1;}['dispose'](){const _0x18d141=_0x392a75;this['_stopBlinking'](),super[_0x18d141(0x28b)]();}[_0x392a75(0x208)](_0xe1d0a3){const _0x235715=_0x392a75;let _0x28b76c=this[_0x235715(0x2e5)],_0x42b9dc=this[_0x235715(0x364)];if(this[_0x235715(0x351)]&&!this[_0x235715(0x391)]&&(_0x28b76c=this[_0x235715(0x2c6)](this[_0x235715(0x2e5)]),_0x42b9dc=this[_0x235715(0x364)]?this[_0x235715(0x2c6)](this[_0x235715(0x364)]):void 0x0),_0x1408dc[_0x235715(0x1b3)](_0xe1d0a3,{'width':this[_0x235715(0x271)],'height':this[_0x235715(0x2c7)],'strokeWidth':this[_0x235715(0x337)]||1.5,'stroke':_0x28b76c,'evented':!0x1,'fill':_0x42b9dc}),this['_hovered']||this[_0x235715(0x33a)]){var _0x2ccdeb;_0xe1d0a3['save'](),_0xe1d0a3[_0x235715(0x317)](0x1,0x0,0x0,0x1,this['width'],(this[_0x235715(0x316)]===_0x235715(0x360)?0x0:-0x14)+((_0x2ccdeb=this[_0x235715(0x2b7)])==null?0x0:_0x2ccdeb)),yn[_0x235715(0x1b3)](_0xe1d0a3,{'text':this[_0x235715(0x2ef)],'color':_0x28b76c}),_0xe1d0a3[_0x235715(0x382)]();}}[_0x392a75(0x2c6)](_0x5f1a4c){const _0x20d06c=_0x392a75;return _0x5f1a4c['startsWith']('#')?_0x20d06c(0x283)+Number[_0x20d06c(0x27c)](_0x5f1a4c['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x20d06c(0x27c)](_0x5f1a4c[_0x20d06c(0x3e1)](0x3,0x5),0x10)+',\x20'+Number[_0x20d06c(0x27c)](_0x5f1a4c[_0x20d06c(0x3e1)](0x5,0x7),0x10)+_0x20d06c(0x2c3):_0x5f1a4c[_0x20d06c(0x3af)](_0x20d06c(0x343))?_0x5f1a4c['replace'](/[\d.]+\)$/g,'0.2)'):_0x5f1a4c[_0x20d06c(0x3af)]('rgb')?_0x5f1a4c[_0x20d06c(0x321)](_0x20d06c(0x378),_0x20d06c(0x343))[_0x20d06c(0x321)](')',_0x20d06c(0x2c3)):_0x5f1a4c;}};let wn=class extends _0x47ffee{constructor(_0x59ade1,_0x46a45a,_0x274385,_0x5653a1){const _0x18bce1=_0x392a75;super(),this[_0x18bce1(0x24c)]=_0x59ade1,this['_sheetSkeletonManagerService']=_0x46a45a,this[_0x18bce1(0x2bf)]=_0x274385,this['_themeService']=_0x5653a1,G(this,_0x18bce1(0x381),new Set()),G(this,'_lastPointer',null),G(this,_0x18bce1(0x1b6),null),this['_init']();}[_0x392a75(0x1b8)](){const _0x8da6a9=_0x392a75;this[_0x8da6a9(0x3a2)][_0x8da6a9(0x3d6)][_0x8da6a9(0x1f6)](_0x24f2c5(this[_0x8da6a9(0x218)]),_0x253e4b(_0x4d04d7=>{const _0x78d02c=_0x8da6a9;if(_0x4d04d7){let _0x165e05=_0x4d04d7[_0x78d02c(0x2b8)];return _0x578aed(this[_0x78d02c(0x2bf)]['getCollabCursors$'](this['_context'][_0x78d02c(0x358)]),this['_themeService']['currentTheme$'])[_0x78d02c(0x1f6)](_0x604f04(([_0x4e86c1,_0x359971])=>{const _0x4e4331=_0x78d02c;let _0x5686c7=new Map();return _0x4e86c1[_0x4e4331(0x365)]((_0x2a1ec6,_0x4d891d)=>{const _0x504627=_0x4e4331;if(_0x2a1ec6[_0x504627(0x2ed)]===_0x165e05){let _0x394179={..._0x2a1ec6};_0x394179[_0x504627(0x369)]=this[_0x504627(0x23f)][_0x504627(0x1d7)](_0x2a1ec6[_0x504627(0x369)]),_0x5686c7[_0x504627(0x3b9)](_0x4d891d,_0x394179);}}),{'skeleton':_0x4d04d7,'cursors':_0x5686c7};}));}return _0xa8b45b({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xc82e7a,cursors:_0x376f0e})=>{const _0x20e67f=_0x8da6a9;this['_removeCollabCursors'](),_0xc82e7a&&this[_0x20e67f(0x2a6)](_0xc82e7a,_0x376f0e);}),this['disposeWithMe'](this[_0x8da6a9(0x3a2)][_0x8da6a9(0x3d6)][_0x8da6a9(0x1f6)](_0x24f2c5(this[_0x8da6a9(0x218)]))['subscribe'](_0xc7be1c=>{const _0x28a15a=_0x8da6a9;var _0x475ec9;if(_0xc7be1c==null)return;(_0x475ec9=this[_0x28a15a(0x1b6)])==null||_0x475ec9[_0x28a15a(0x1ab)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x22a4f6}=_0xc7be1c,{scene:_0xf32e3e}=this[_0x28a15a(0x24c)];this[_0x28a15a(0x1b6)]=_0xf32e3e[_0x28a15a(0x2d6)][_0x28a15a(0x292)](_0x4ef1e1(_0x383364=>{const _0xc21a34=_0x28a15a;var _0x62af81,_0x34fbbf;let {offsetX:_0x239768,offsetY:_0x3e1486}=_0x383364,{x:_0x546233,y:_0x370c00}=_0xf32e3e[_0xc21a34(0x2fe)](_0x375a03['FromArray']([_0x239768,_0x3e1486])),{scaleX:_0x12e5ca,scaleY:_0x3891e8}=_0xf32e3e[_0xc21a34(0x2bb)](),_0x1199f5=_0xf32e3e[_0xc21a34(0x27b)](_0x293e2f[_0xc21a34(0x3bc)]),_0x55c953=_0xf32e3e[_0xc21a34(0x357)](_0x375a03['FromArray']([_0x546233,_0x370c00]),_0x1199f5),_0x56512a=_0x22a4f6[_0xc21a34(0x211)](_0x239768,_0x3e1486,_0x12e5ca,_0x3891e8,_0x55c953);((_0x62af81=this[_0xc21a34(0x1f2)])==null?void 0x0:_0x62af81[_0xc21a34(0x2c4)])===_0x56512a['column']&&((_0x34fbbf=this['_lastPointer'])==null?void 0x0:_0x34fbbf[_0xc21a34(0x306)])===_0x56512a[_0xc21a34(0x306)]||this[_0xc21a34(0x381)][_0xc21a34(0x365)](_0x1a85d0=>{_0x1a85d0['onMouseMove'](_0x56512a);});},0x64));})),this[_0x8da6a9(0x39f)](_0x245507(()=>{const _0x339e53=_0x8da6a9;var _0x5b9eeb;(_0x5b9eeb=this['_pointerMoveDisposable'])==null||_0x5b9eeb[_0x339e53(0x1ab)](),this[_0x339e53(0x1b6)]=null;}));}['_updateCollabCursors'](_0x5c11e2,_0x2e79f8){const _0x9c963f=_0x392a75;let _0x2b80d3=this[_0x9c963f(0x3a2)]['getCurrentSkeleton']();if(!_0x2b80d3)return;let _0x1c20f0=this[_0x9c963f(0x2af)]();if(!_0x1c20f0)return;this[_0x9c963f(0x381)][_0x9c963f(0x365)](_0x299d50=>{const _0x11b862=_0x9c963f;_0x299d50[_0x11b862(0x1f1)]();});let {scene:_0x17cd09}=_0x1c20f0,_0x297fbf=Tn(Array['from'](_0x2e79f8['values']()))['map'](_0x3da118=>{const _0x296c54=_0x9c963f;let {color:_0x3b578c,range:_0x4c9985,name:_0x53542f,selection:_0x1df440,sheetID:_0x25ff61}=_0x3da118,{startColumn:_0x53ee26,startRow:_0x277d26,endColumn:_0x58ede8,endRow:_0x18598a}=_0x4c9985,_0x1781c3=_0x2dcc48(_0x277d26,_0x53ee26,_0x17cd09,_0x2b80d3),_0x4a27aa=_0x2dcc48(_0x18598a,_0x58ede8,_0x17cd09,_0x2b80d3),{columnHeaderHeightAndMarginTop:_0x17d686}=_0x2b80d3,{startX:_0x3dcbbb,startY:_0x460b88}=_0x1781c3,{endX:_0x1356dc,endY:_0x43d768}=_0x4a27aa,_0x1e6ddd=_0x1356dc-_0x3dcbbb,_0x44460b=_0x43d768-_0x460b88;return new Cn(_0x53542f,{'labelPosition':_0x460b88-_0x17d686>=0x14?_0x296c54(0x1ac):_0x296c54(0x360),'sheetID':_0x25ff61,'range':_0x4c9985,'color':_0x3b578c,'name':_0x53542f,'selection':_0x1df440,'left':_0x3dcbbb,'top':_0x460b88,'width':_0x1e6ddd,'height':_0x44460b,'evented':!0x1,'zIndex':0x1389});});_0x17cd09[_0x9c963f(0x2d5)](_0x297fbf,0x1),this[_0x9c963f(0x381)]=new Set(_0x297fbf);}[_0x392a75(0x37d)](){const _0x3c927c=_0x392a75;var _0x13adc2;(_0x13adc2=this['_cursors'])==null||_0x13adc2[_0x3c927c(0x365)](_0x3ff2bf=>_0x3ff2bf[_0x3c927c(0x28b)]());}['_getSheetObject'](){const _0x5cecd7=_0x392a75;return _0x4b75dc(this[_0x5cecd7(0x24c)]['unit'],this['_context']);}};wn=q([K(0x1,_0x13edf9(_0x2bafef)),K(0x2,_0x13edf9(X)),K(0x3,_0x13edf9(_0x50ff2f))],wn);function Tn(_0x4c7fe5){const _0x45b523=_0x392a75;let _0x2466e6=new Map();return _0x4c7fe5[_0x45b523(0x365)](_0x1d6aab=>{const _0x5c6ec7=_0x45b523;if(_0x2466e6[_0x5c6ec7(0x36e)](_0x1d6aab[_0x5c6ec7(0x2be)])){let _0x5ca70d=_0x2466e6['get'](_0x1d6aab[_0x5c6ec7(0x2be)]);_0x5ca70d[_0x5c6ec7(0x1aa)]+=',\x20'+_0x1d6aab[_0x5c6ec7(0x1aa)];}else _0x2466e6[_0x5c6ec7(0x3b9)](_0x1d6aab[_0x5c6ec7(0x2be)],_0x1d6aab);}),Array['from'](_0x2466e6[_0x45b523(0x1d6)]());}const En=0x138a;var Dn=class extends _0x4e52b0{constructor(_0x510da5,_0x3d1e49){const _0x5ae018=_0x392a75;super(_0x510da5,{..._0x3d1e49,'evented':!0x1}),G(this,_0x5ae018(0x2e5),'#4f46e5'),G(this,'_name',''),G(this,_0x5ae018(0x33a),!0x0),_0x3d1e49&&this[_0x5ae018(0x2f0)](_0x3d1e49);}[_0x392a75(0x2f0)](_0x22fe3b){const _0x21ffb3=_0x392a75;var _0x28146e,_0x4f9823,_0x4e5047,_0x19b105,_0x1c59d8,_0x30debb,_0x52fbcd,_0x3e9891;this[_0x21ffb3(0x2e5)]=(_0x28146e=_0x22fe3b[_0x21ffb3(0x369)])==null?this[_0x21ffb3(0x2e5)]:_0x28146e,this[_0x21ffb3(0x2ef)]=(_0x4f9823=_0x22fe3b['name'])==null?this[_0x21ffb3(0x2ef)]:_0x4f9823,this[_0x21ffb3(0x33a)]=(_0x4e5047=_0x22fe3b[_0x21ffb3(0x304)])==null?this[_0x21ffb3(0x33a)]:_0x4e5047,this[_0x21ffb3(0x285)]=!0x1,this[_0x21ffb3(0x1e5)]({'left':(_0x19b105=_0x22fe3b[_0x21ffb3(0x253)])==null?this[_0x21ffb3(0x253)]:_0x19b105,'top':(_0x1c59d8=_0x22fe3b[_0x21ffb3(0x1ac)])==null?this[_0x21ffb3(0x1ac)]:_0x1c59d8,'width':(_0x30debb=_0x22fe3b[_0x21ffb3(0x271)])==null?this['width']:_0x30debb,'height':(_0x52fbcd=_0x22fe3b['height'])==null?this[_0x21ffb3(0x2c7)]:_0x52fbcd,'angle':(_0x3e9891=_0x22fe3b['angle'])==null?this[_0x21ffb3(0x3c1)]:_0x3e9891});}[_0x392a75(0x208)](_0x532942){const _0x56d9af=_0x392a75;_0x532942[_0x56d9af(0x277)](),_0x532942['strokeStyle']=this[_0x56d9af(0x2e5)],_0x532942[_0x56d9af(0x37c)]=this[_0x56d9af(0x337)]||1.5,_0x532942[_0x56d9af(0x3bf)]([0x6,0x4]),_0x532942[_0x56d9af(0x266)](0x0,0x0,this['width'],this['height']),_0x532942[_0x56d9af(0x382)](),this[_0x56d9af(0x33a)]&&(_0x532942[_0x56d9af(0x277)](),_0x532942[_0x56d9af(0x317)](0x1,0x0,0x0,0x1,this[_0x56d9af(0x271)],-0x14),yn['drawWith'](_0x532942,{'text':this[_0x56d9af(0x2ef)],'color':this[_0x56d9af(0x2e5)]}),_0x532942['restore']());}};let On=class extends _0x47ffee{constructor(_0x514305,_0x1ae92d,_0x14b3d5){const _0x13dd2c=_0x392a75;super(),this[_0x13dd2c(0x24c)]=_0x514305,this[_0x13dd2c(0x2bf)]=_0x1ae92d,this[_0x13dd2c(0x23f)]=_0x14b3d5,G(this,_0x13dd2c(0x381),new Set()),G(this,_0x13dd2c(0x1d5),!0x1),G(this,_0x13dd2c(0x33c),!0x1),G(this,_0x13dd2c(0x27a),new Map()),this[_0x13dd2c(0x1b8)]();}[_0x392a75(0x28b)](){const _0x36a759=_0x392a75;this[_0x36a759(0x37d)](),super[_0x36a759(0x28b)]();}[_0x392a75(0x1b8)](){const _0x3798b3=_0x392a75;let _0x10d7fd=this[_0x3798b3(0x24c)][_0x3798b3(0x281)][_0x3798b3(0x1c7)]['activeSlideId$'],_0x1ee739=this[_0x3798b3(0x2bf)]['getCollabCursors$'](this[_0x3798b3(0x24c)][_0x3798b3(0x358)]);this['disposeWithMe'](_0x245507(_0x578aed([_0x1ee739,_0x10d7fd,this[_0x3798b3(0x23f)][_0x3798b3(0x38a)]])[_0x3798b3(0x1f6)](_0x5f111a(this[_0x3798b3(0x218)]))[_0x3798b3(0x20d)](([_0x49df67,_0x23629e])=>{const _0x5b8a8f=_0x3798b3;let _0x3af909=new Map();_0x49df67[_0x5b8a8f(0x365)]((_0x5f3e26,_0x34b773)=>{const _0x2740e4=_0x5b8a8f;_0x5f3e26['subUnitId']===_0x23629e&&_0x3af909[_0x2740e4(0x3b9)](_0x34b773,{..._0x5f3e26,'color':this['_themeService']['getColorFromTheme'](_0x5f3e26['color'])});}),this[_0x5b8a8f(0x27a)]=_0x3af909,this[_0x5b8a8f(0x349)]();})));let _0x1c1271=this[_0x3798b3(0x24c)][_0x3798b3(0x1cf)];this[_0x3798b3(0x39f)](_0x245507(_0x1c1271[_0x3798b3(0x301)][_0x3798b3(0x1f6)](_0x5f111a(this[_0x3798b3(0x218)]))[_0x3798b3(0x20d)](()=>{const _0x10e7c3=_0x3798b3;this['_isApplyingOverlays']||this[_0x10e7c3(0x349)]();})));}[_0x392a75(0x349)](){const _0x47a2c6=_0x392a75;this[_0x47a2c6(0x1d5)]||(this[_0x47a2c6(0x1d5)]=!0x0,Promise[_0x47a2c6(0x2e8)]()[_0x47a2c6(0x240)](()=>{this['_renderScheduled']=!0x1,this['_render']();}));}['_render'](){const _0x211d98=_0x392a75;var _0xdeb190;this[_0x211d98(0x37d)]();let _0x29226c=(_0xdeb190=this['_context']['unit']['pageManager'][_0x211d98(0x34b)]())==null?void 0x0:_0xdeb190[_0x211d98(0x3bb)]();if(!_0x29226c)return;let _0x79dee7=[];if(this[_0x211d98(0x27a)][_0x211d98(0x365)]((_0x4401eb,_0x34a534)=>{const _0x39532d=_0x211d98;_0x4401eb['subUnitId']===_0x29226c&&_0x4401eb[_0x39532d(0x3a9)][_0x39532d(0x365)](_0x5420fc=>{const _0x2071c3=_0x39532d;let _0x542a1e=_0x378493(_0x4401eb[_0x2071c3(0x358)],_0x4401eb['subUnitId'],_0x5420fc),_0x514214=this[_0x2071c3(0x3ba)](_0x542a1e);if(!_0x514214)return;let _0x9dba3e=this[_0x2071c3(0x350)](_0x514214);_0x79dee7['push'](new Dn(_0x2071c3(0x3e2)+_0x34a534+'-'+_0x5420fc,{..._0x4401eb,'left':_0x9dba3e[_0x2071c3(0x253)],'top':_0x9dba3e[_0x2071c3(0x1ac)],'width':_0x9dba3e[_0x2071c3(0x271)],'height':_0x9dba3e[_0x2071c3(0x2c7)],'angle':_0x514214['angle'],'evented':!0x1,'zIndex':En}));});}),_0x79dee7[_0x211d98(0x2a5)]===0x0){this[_0x211d98(0x24c)][_0x211d98(0x1cf)][_0x211d98(0x1f1)](!0x0);return;}this[_0x211d98(0x33c)]=!0x0,this['_context'][_0x211d98(0x1cf)][_0x211d98(0x2d5)](_0x79dee7,En),this[_0x211d98(0x33c)]=!0x1,this[_0x211d98(0x381)]=new Set(_0x79dee7),this[_0x211d98(0x24c)][_0x211d98(0x1cf)][_0x211d98(0x1f1)](!0x0);}['_removeCollabCursors'](){const _0x50d24a=_0x392a75;let _0x26cc5d=Array[_0x50d24a(0x233)](this[_0x50d24a(0x381)]);if(_0x26cc5d[_0x50d24a(0x2a5)]===0x0)return;let _0x4043d0=this['_context'][_0x50d24a(0x1cf)];'removeObjects'in _0x4043d0&&typeof _0x4043d0[_0x50d24a(0x310)]==_0x50d24a(0x2f3)?_0x4043d0[_0x50d24a(0x310)](_0x26cc5d):_0x26cc5d['forEach'](_0x2e60ad=>{const _0x30d507=_0x50d24a;_0x30d507(0x252)in _0x4043d0&&typeof _0x4043d0[_0x30d507(0x252)]==_0x30d507(0x2f3)?_0x4043d0[_0x30d507(0x252)](_0x2e60ad):_0x2e60ad[_0x30d507(0x28b)]();}),this[_0x50d24a(0x381)][_0x50d24a(0x1cd)](),_0x4043d0[_0x50d24a(0x1f1)](!0x0);}[_0x392a75(0x3ba)](_0x56c222){const _0x5643dc=_0x392a75;var _0x4a8b59,_0x46f2aa,_0x23f349;let _0x5c05ad=this[_0x5643dc(0x24c)][_0x5643dc(0x1cf)];return(_0x4a8b59=(_0x46f2aa=(_0x23f349=_0x5c05ad['getObjectIncludeInGroup'])==null?void 0x0:_0x23f349['call'](_0x5c05ad,_0x56c222))==null?_0x5c05ad[_0x5643dc(0x222)](_0x56c222):_0x46f2aa)==null?null:_0x4a8b59;}['_getObjectBounds'](_0xf81de7){const _0x25f510=_0x392a75;var _0x493e96,_0x28aa86;let _0x4d4f7d=_0xf81de7;return(_0x493e96=(_0x28aa86=_0x4d4f7d['getRealBound'])==null?void 0x0:_0x28aa86['call'](_0x4d4f7d))==null?{'left':_0xf81de7['left'],'top':_0xf81de7[_0x25f510(0x1ac)],'width':_0xf81de7[_0x25f510(0x271)],'height':_0xf81de7[_0x25f510(0x2c7)]}:_0x493e96;}};On=q([K(0x1,_0x13edf9(X)),K(0x2,_0x13edf9(_0x50ff2f))],On);let Z=class extends _0x20ff58{constructor(_0x54f1ea,_0x2768be,_0x412d2b,_0x297d1f,_0x500d3b,_0x3b1592){const _0x31c1f7=_0x392a75;super(),this[_0x31c1f7(0x394)]=_0x54f1ea,this[_0x31c1f7(0x3df)]=_0x2768be,this['_collaborationUIEventService']=_0x412d2b,this[_0x31c1f7(0x29f)]=_0x297d1f,this['_notificationService']=_0x500d3b,this['_localeService']=_0x3b1592,this[_0x31c1f7(0x223)](),this[_0x31c1f7(0x234)]();}[_0x392a75(0x223)](){const _0x2c568f=_0x392a75;this[_0x2c568f(0x39f)](this[_0x2c568f(0x394)]['registerBeforeClose'](()=>{const _0x51cd2b=_0x2c568f;if(this[_0x51cd2b(0x3df)][_0x51cd2b(0x2a9)][_0x51cd2b(0x1b5)])return this[_0x51cd2b(0x35b)]['t'](_0x51cd2b(0x1e4));}));}[_0x392a75(0x234)](){const _0x4df98b=_0x392a75;this['disposeWithMe'](this[_0x4df98b(0x203)][_0x4df98b(0x265)][_0x4df98b(0x20d)](_0x4701c5=>{const _0x519075=_0x4df98b;_0x4701c5['id']===_0x4cc781[_0x519075(0x228)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x31e))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x1bd)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x2e3))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x1d4)]&&this[_0x519075(0x2cd)][_0x519075(0x2a1)]({'title':this['_localeService']['t']('collaboration-client-ui.permission.title'),'content':this[_0x519075(0x35b)]['t']('collaboration-client-ui.permission.content'),'type':'error','duration':0x0}),_0x4701c5['id']===_0x4cc781[_0x519075(0x2e7)]&&this[_0x519075(0x2cd)][_0x519075(0x2a1)]({'title':this[_0x519075(0x35b)]['t'](_0x519075(0x38c)),'content':this[_0x519075(0x35b)]['t']('collaboration-client-ui.conflict.content'),'type':'error','duration':0x0}),_0x4701c5['id']===_0x4cc781[_0x519075(0x23d)]&&this['_messageService'][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x4701c5[_0x519075(0x1f5)]||'')}),_0x4701c5['id']===_0x4cc781[_0x519075(0x352)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x257)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x2ea))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x1d2)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b['Error'],'content':this['_localeService']['t'](_0x519075(0x31c))}),_0x4701c5['id']===_0x4cc781[_0x519075(0x237)]&&this[_0x519075(0x29f)][_0x519075(0x2a1)]({'type':_0x2cde3b[_0x519075(0x3a1)],'content':this[_0x519075(0x35b)]['t'](_0x519075(0x393))});}));}};Z=q([K(0x0,_0x3e9f71),K(0x1,_0x368670),K(0x2,_0x13edf9(_0x1cd30c)),K(0x3,_0xe2975f),K(0x4,_0x5630e4),K(0x5,_0x13edf9(_0x2cad47))],Z);let kn=class{constructor(_0x2a17ba,_0x2ae299){const _0x5d1fda=_0x392a75;this['_transformService']=_0x2a17ba,this[_0x5d1fda(0x1e8)]=_0x2ae299;}['transformIMECache'](_0x19fb48){const _0x20e6cc=_0x392a75;this[_0x20e6cc(0x226)](_0x19fb48),this['_transformPreviousActiveRange'](_0x19fb48);}['transformRemoteChangeset'](_0x2a8603){const _0x3c6997=_0x392a75;let {unitID:_0x454b89}=_0x2a8603,{redoCache:_0x385331}=this[_0x3c6997(0x1e8)][_0x3c6997(0x2f8)](_0x454b89)[_0x3c6997(0x2d9)](_0x4470e8)[_0x3c6997(0x34f)]();if(_0x385331[_0x3c6997(0x2a5)]===0x0)return _0x2a8603;let _0x343a7a=_0x25962f[_0x3c6997(0x1eb)](_0x2a8603[_0x3c6997(0x339)][0x0]);for(let _0x92c292=0x0;_0x92c292<_0x385331['length'];_0x92c292++){let _0x115f93={'id':_0x3c6997(0x2ca),'params':{..._0x385331[_0x92c292]}},_0x185834=this[_0x3c6997(0x2b4)]['transformMutation'](_0x343a7a,_0x115f93,!0x1);if(_0x5a337f(_0x185834))throw _0x185834['error'];_0x343a7a=_0x185834[_0x3c6997(0x296)];}return{..._0x25962f['deepClone'](_0x2a8603),'mutations':[_0x343a7a]};}['_transformUndoRedoStack'](_0x1d1f77){const _0x53ee1e=_0x392a75;let {unitID:_0xd0be0c}=_0x1d1f77,_0x224372=this[_0x53ee1e(0x1e8)]['getRenderById'](_0xd0be0c)[_0x53ee1e(0x2d9)](_0x4470e8),{undoCache:_0x27fc2e,redoCache:_0x2cf870}=_0x224372[_0x53ee1e(0x34f)]();if(_0x27fc2e[_0x53ee1e(0x2a5)]===0x0||_0x2cf870[_0x53ee1e(0x2a5)]===0x0)return;let _0x40279f=[],_0x605db9=[],_0x5d99df=_0x25962f[_0x53ee1e(0x1eb)](_0x1d1f77[_0x53ee1e(0x339)][0x0]),_0x16c9e0=_0x25962f[_0x53ee1e(0x1eb)](_0x1d1f77['mutations'][0x0]);for(let _0x23fc6a=_0x27fc2e['length']-0x1;_0x23fc6a>=0x0;_0x23fc6a--){let _0x3a039e={'id':'doc.mutation.rich-text-editing','params':{..._0x27fc2e[_0x23fc6a]}},_0x353d54={'id':_0x53ee1e(0x2ca),'params':{..._0x2cf870[_0x23fc6a]}},_0x38e5ed=this['_transformService'][_0x53ee1e(0x299)](_0x5d99df,_0x3a039e,!0x1),_0x12261f=this[_0x53ee1e(0x2b4)][_0x53ee1e(0x299)](_0x16c9e0,_0x353d54,!0x1);if(_0x5a337f(_0x38e5ed))throw _0x38e5ed[_0x53ee1e(0x3b1)];if(_0x5a337f(_0x12261f))throw _0x12261f[_0x53ee1e(0x3b1)];_0x40279f['unshift'](_0x38e5ed[_0x53ee1e(0x1f7)][_0x53ee1e(0x25c)]),_0x605db9[_0x53ee1e(0x26a)](_0x12261f[_0x53ee1e(0x1f7)][_0x53ee1e(0x25c)]),_0x5d99df=_0x38e5ed[_0x53ee1e(0x296)],_0x16c9e0=_0x12261f[_0x53ee1e(0x296)];}_0x224372[_0x53ee1e(0x272)]({'undoCache':_0x40279f,'redoCache':_0x605db9});}['_transformPreviousActiveRange'](_0x23f460){const _0x2d8dea=_0x392a75;let {unitID:_0x50d8fe}=_0x23f460,_0x23fb0b=this[_0x2d8dea(0x1e8)][_0x2d8dea(0x2f8)](_0x50d8fe)[_0x2d8dea(0x2d9)](_0x4470e8),_0xba6f39=_0x23fb0b[_0x2d8dea(0x32a)]();if(_0xba6f39==null)return;let _0x25323f=[{'id':_0x2d8dea(0x2ca),'params':{'unitId':_0x23f460[_0x2d8dea(0x2df)],'actions':null,'textRanges':[_0xba6f39]}}],_0x1a67e8=this[_0x2d8dea(0x2b4)][_0x2d8dea(0x305)](_0x23f460,_0x25323f);if(!_0x286f9e(_0x1a67e8))throw _0x1a67e8[_0x2d8dea(0x3b1)];let _0x27194b=_0x1a67e8['m2Prime'][0x0]['params'][_0x2d8dea(0x325)];Array[_0x2d8dea(0x3a8)](_0x27194b)&&_0x27194b[_0x2d8dea(0x2a5)]&&_0x23fb0b[_0x2d8dea(0x1b4)](_0x27194b[0x0]);}};kn=q([K(0x0,_0x2e0827),K(0x1,_0x17c2eb)],kn);let An=class{constructor(_0x4f82bd,_0x402d54,_0x55c995){const _0x2e3d36=_0x392a75;this[_0x2e3d36(0x248)]=_0x4f82bd,this[_0x2e3d36(0x2b4)]=_0x402d54,this[_0x2e3d36(0x22a)]=_0x55c995;}[_0x392a75(0x290)](_0x42618b){this['_transformHistoryAndStateStack'](_0x42618b);}[_0x392a75(0x2de)](_0x1d344b){const _0xd739af=_0x392a75;let {unitID:_0x10bff6}=_0x1d344b,{collaboration:_0xb43c1b}=this[_0xd739af(0x22a)][_0xd739af(0x24f)](_0x10bff6);if(_0xb43c1b[_0xd739af(0x2a5)]===0x0)return _0x1d344b;let _0x22d958=_0x25962f[_0xd739af(0x1eb)](_0x1d344b[_0xd739af(0x339)][0x0]);for(let _0x508e50=0x0;_0x508e50<_0xb43c1b[_0xd739af(0x2a5)];_0x508e50++){let _0x4325a6={'id':_0xd739af(0x2ca),'params':{'unitId':_0xb43c1b[_0x508e50][_0xd739af(0x358)],..._0xb43c1b[_0x508e50][_0xd739af(0x230)]}},_0x3f80ee=this[_0xd739af(0x2b4)][_0xd739af(0x299)](_0x22d958,_0x4325a6,!0x1);if(_0x5a337f(_0x3f80ee))throw _0x3f80ee[_0xd739af(0x3b1)];_0x22d958=_0x3f80ee[_0xd739af(0x296)];}return{..._0x25962f['deepClone'](_0x1d344b),'mutations':[_0x22d958]};}[_0x392a75(0x3cd)](_0x4412a1){const _0x49cc3c=_0x392a75;let {unitID:_0x505d63}=_0x4412a1,{history:_0x2791ca,collaboration:_0x425dd7}=this[_0x49cc3c(0x22a)][_0x49cc3c(0x24f)](_0x505d63);if(_0x2791ca['length']===0x0&&_0x425dd7[_0x49cc3c(0x2a5)]===0x0)return;let _0x5b4e53=[],_0xd84acc=[],_0x214aaa=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]),_0x1852ee=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]);for(let _0x8fa208=_0x2791ca[_0x49cc3c(0x2a5)]-0x1;_0x8fa208>=0x0;_0x8fa208--){let _0x119a93={'id':_0x49cc3c(0x2ca),'params':{'unitId':_0x2791ca[_0x8fa208][_0x49cc3c(0x358)],..._0x2791ca[_0x8fa208]['undoState']}},_0x84dba9={'id':_0x49cc3c(0x2ca),'params':{'unitId':_0x2791ca[_0x8fa208][_0x49cc3c(0x358)],..._0x2791ca[_0x8fa208][_0x49cc3c(0x230)]}},_0x5c3542=this[_0x49cc3c(0x2b4)][_0x49cc3c(0x299)](_0x214aaa,_0x119a93,!0x1),_0x2e9672=this['_transformService']['transformMutation'](_0x1852ee,_0x84dba9,!0x1);if(_0x5a337f(_0x5c3542))throw _0x5c3542[_0x49cc3c(0x3b1)];if(_0x5a337f(_0x2e9672))throw _0x2e9672[_0x49cc3c(0x3b1)];_0x5b4e53['unshift']({..._0x2791ca[_0x8fa208],'undoState':_0x5c3542[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)],'redoState':_0x2e9672[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)]}),_0x214aaa=_0x5c3542[_0x49cc3c(0x296)],_0x1852ee=_0x2e9672[_0x49cc3c(0x296)];}_0x214aaa=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]),_0x1852ee=_0x25962f[_0x49cc3c(0x1eb)](_0x4412a1[_0x49cc3c(0x339)][0x0]);for(let _0x5f4ff4=_0x425dd7[_0x49cc3c(0x2a5)]-0x1;_0x5f4ff4>=0x0;_0x5f4ff4--){let _0x64ad5c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x425dd7[_0x5f4ff4]['unitId'],..._0x425dd7[_0x5f4ff4][_0x49cc3c(0x368)]}},_0x4bc6bd={'id':_0x49cc3c(0x2ca),'params':{'unitId':_0x425dd7[_0x5f4ff4][_0x49cc3c(0x358)],..._0x425dd7[_0x5f4ff4][_0x49cc3c(0x230)]}},_0x5c1483=this['_transformService'][_0x49cc3c(0x299)](_0x214aaa,_0x64ad5c,!0x1),_0x8a3cf3=this[_0x49cc3c(0x2b4)][_0x49cc3c(0x299)](_0x1852ee,_0x4bc6bd,!0x1);if(_0x5a337f(_0x5c1483))throw _0x5c1483[_0x49cc3c(0x3b1)];if(_0x5a337f(_0x8a3cf3))throw _0x8a3cf3[_0x49cc3c(0x3b1)];_0xd84acc[_0x49cc3c(0x26a)]({..._0x425dd7[_0x5f4ff4],'undoState':_0x5c1483[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)],'redoState':_0x8a3cf3[_0x49cc3c(0x1f7)][_0x49cc3c(0x25c)]}),_0x214aaa=_0x5c1483['m1Prime'],_0x1852ee=_0x8a3cf3[_0x49cc3c(0x296)];}this['_docStateChangeManagerService'][_0x49cc3c(0x28c)](_0x505d63,{'history':_0x5b4e53,'collaboration':_0xd84acc});}};function _0x449b(_0x4ee1eb,_0x2787b2){_0x4ee1eb=_0x4ee1eb-0x1a3;const _0x12521a=_0x1252();let _0x449bcf=_0x12521a[_0x4ee1eb];return _0x449bcf;}An=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x2e0827),K(0x2,_0x13edf9(_0x556b00))],An);let jn=class{constructor(_0x31474c,_0x12fd93){const _0x45f6e8=_0x392a75;this[_0x45f6e8(0x248)]=_0x31474c,this[_0x45f6e8(0x2b4)]=_0x12fd93;}[_0x392a75(0x21c)](_0x3ec77a){const _0x150609=_0x392a75;var _0x267f41;let _0x1a81d2=this[_0x150609(0x248)][_0x150609(0x270)](_0x391601),_0x37874b=(_0x267f41=_0x1a81d2[_0x150609(0x396)]())==null?[]:_0x267f41;if(_0x37874b['length']===0x0)return;let _0x58c181=_0x3ec77a[_0x150609(0x2df)],_0x518559=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58c181,'actions':null,'textRanges':_0x37874b}}],_0x3357f5=this[_0x150609(0x2b4)][_0x150609(0x305)](_0x3ec77a,_0x518559);if(!_0x286f9e(_0x3357f5))throw _0x3357f5['error'];let _0xac0295=_0x3357f5[_0x150609(0x1f7)][0x0]['params'][_0x150609(0x325)];Array[_0x150609(0x3a8)](_0xac0295)&&_0xac0295[_0x150609(0x2a5)]&&_0x1a81d2['replaceDocRanges'](_0xac0295,{'unitId':_0x58c181,'subUnitId':_0x58c181},!0x1);}};jn=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x2e0827)],jn);let Mn=class extends _0x20ff58{constructor(_0x2153e1,_0x27589b,_0x5cece4,_0x30f503,_0x24c56c,_0x42f538,_0x3f06a6){const _0x41e868=_0x392a75;super(),this[_0x41e868(0x361)]=_0x2153e1,this['_docTransformIMECacheService']=_0x27589b,this['_docTransformStateCacheService']=_0x5cece4,this['_docTransformSelectionsService']=_0x30f503,this['_docSyncEditingCollabCursorService']=_0x24c56c,this[_0x41e868(0x29f)]=_0x42f538,this['_localeService']=_0x3f06a6,G(this,_0x41e868(0x2f5),new _0xd9ac59(_0x21b797[_0x41e868(0x39b)])),this[_0x41e868(0x242)]();}[_0x392a75(0x242)](){this['disposeWithMe'](this['_collaborationController']['entityInit$']['subscribe'](_0x5d72e4=>{const _0x59ef5b=_0x449b;_0x5d72e4 instanceof _0x25f7c1&&_0x5d72e4['addHandlerCallback']({'onTransformIME':_0x46b311=>this[_0x59ef5b(0x1c3)][_0x59ef5b(0x347)](_0x46b311),'onTransformState':_0x1a383c=>this[_0x59ef5b(0x322)][_0x59ef5b(0x290)](_0x1a383c),'onTransformSelections':_0x6665e8=>this[_0x59ef5b(0x1b9)][_0x59ef5b(0x21c)](_0x6665e8),'onSyncEditingCollabCursor':_0x360f24=>this[_0x59ef5b(0x1c8)]['syncEditingCollabCursor'](_0x360f24),'onTransformRemoteChangesetByIMECache':_0x49bd38=>this['_docTransformIMECacheService'][_0x59ef5b(0x2de)](_0x49bd38),'onTransformRemoteChangesetByStateCache':_0x2ed63d=>this[_0x59ef5b(0x322)]['transformRemoteChangeset'](_0x2ed63d)});}));}};Mn=q([K(0x0,_0x13edf9(_0x57a70b)),K(0x1,_0x13edf9(kn)),K(0x2,_0x13edf9(An)),K(0x3,_0x13edf9(jn)),K(0x4,_0x13edf9(fn)),K(0x5,_0xe2975f),K(0x6,_0x13edf9(_0x2cad47))],Mn);let Nn=class extends _0x20ff58{constructor(_0x5e07c6,_0x14ce14,_0x24e6ee,_0x3a15c5){const _0x3a520b=_0x392a75;super(),this[_0x3a520b(0x248)]=_0x5e07c6,this[_0x3a520b(0x3b5)]=_0x14ce14,this[_0x3a520b(0x239)]=_0x24e6ee,this[_0x3a520b(0x397)]=_0x3a15c5,G(this,'_memberID',void 0x0),this['_init']();}[_0x392a75(0x1b8)](){const _0x4e8879=_0x392a75;this[_0x4e8879(0x2a3)](),this[_0x4e8879(0x3c0)](),this[_0x4e8879(0x2c9)](),this['_initUserListener']();}[_0x392a75(0x2a7)](){const _0xb149ff=_0x392a75;this[_0xb149ff(0x39f)](this[_0xb149ff(0x397)][_0xb149ff(0x2cc)]['subscribe'](_0x13872b=>{const _0x102af2=_0xb149ff;this['_memberID']=_0x13872b==null?void 0x0:_0x13872b[_0x102af2(0x319)];}));}[_0x392a75(0x2a3)](){const _0x39ac01=_0x392a75;let _0x2410b=_0x1f2636=>{const _0x2a1fc5=_0x449b;var _0x2cd8ed;this['_uploadLog'](_0x2a1fc5(0x3b1),_0x2a1fc5(0x21a)+_0x1f2636['message']+'\x20at\x20'+_0x1f2636['filename']+':'+_0x1f2636[_0x2a1fc5(0x214)]+':'+_0x1f2636[_0x2a1fc5(0x1ca)]+'\x0a'+(((_0x2cd8ed=_0x1f2636[_0x2a1fc5(0x3b1)])==null?void 0x0:_0x2cd8ed[_0x2a1fc5(0x37b)])||''));};window['addEventListener']('error',_0x2410b),this[_0x39ac01(0x39f)](()=>{const _0x110011=_0x39ac01;window[_0x110011(0x287)]('error',_0x2410b);});}[_0x392a75(0x3c0)](){const _0x347992=_0x392a75;let _0x3a5d28=_0x38fa5e=>{const _0x4b7b35=_0x449b;this['_uploadLog']('error','[Unhandled\x20Rejection]:\x20'+_0x38fa5e[_0x4b7b35(0x380)]);};window[_0x347992(0x3ae)]('unhandledrejection',_0x3a5d28),this[_0x347992(0x39f)](()=>{window['removeEventListener']('unhandledrejection',_0x3a5d28);});}[_0x392a75(0x2c9)](){const _0x29790c=_0x392a75;let _0x850836=this[_0x29790c(0x239)][_0x29790c(0x3b1)][_0x29790c(0x30b)](this[_0x29790c(0x239)]);this['_logService'][_0x29790c(0x3b1)]=(..._0xa9c171)=>{const _0x48d78b=_0x29790c;let _0x191f30=_0xa9c171[_0x48d78b(0x21d)](_0x16817f=>_0x16817f instanceof Error?_0x16817f[_0x48d78b(0x215)]+'\x0a'+_0x16817f['stack']:String(_0x16817f))['join']('\x20');this[_0x48d78b(0x2e6)]('error',_0x48d78b(0x302)+_0x191f30),_0x850836(..._0xa9c171);},this[_0x29790c(0x39f)](()=>{const _0x19dcd4=_0x29790c;this[_0x19dcd4(0x239)][_0x19dcd4(0x3b1)]=_0x850836;});}[_0x392a75(0x2e6)](_0xde8569,_0x200a99){const _0x2da6a6=_0x392a75;try{let _0x1a67be={'userId':this[_0x2da6a6(0x238)],'logLabel':_0xde8569,'content':_0x200a99};this['_httpService'][_0x2da6a6(0x300)](_0x2da6a6(0x210),{'body':_0x1a67be})[_0x2da6a6(0x338)](()=>{});}catch{}}};Nn=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x13edf9(_0x2fee98)),K(0x2,_0x4cd0b8),K(0x3,_0x13edf9(_0x95c018))],Nn);function Pn(_0x1862df){const _0xf97e71=_0x392a75;var _0x23d472,_0x25b2e8;let _0x121ee0=(_0x23d472=_0x1862df[_0xf97e71(0x303)])==null?void 0x0:_0x23d472[_0xf97e71(0x3a4)],_0x45d5c3=((_0x25b2e8=_0x1862df[_0xf97e71(0x303)])==null?void 0x0:_0x25b2e8[_0xf97e71(0x376)])||0x0;return _0x121ee0===_0x42dd59[_0xf97e71(0x212)]&&_0x45d5c3>0x0;}function Fn(_0xf8c531){const _0x1b343b=_0x392a75;return _0xf8c531[_0x1b343b(0x2dc)]===_0x368132[_0x1b343b(0x1da)];}let Q=class extends _0x20ff58{constructor(_0x422735,_0x5ae29c,_0x42e114,_0x188f57,_0x393722,_0x3332c6,_0x36b7b2){const _0x48ac66=_0x392a75;super(),this[_0x48ac66(0x29f)]=_0x422735,this['_commandService']=_0x5ae29c,this[_0x48ac66(0x355)]=_0x42e114,this[_0x48ac66(0x3b5)]=_0x188f57,this['_univerInstanceService']=_0x393722,this[_0x48ac66(0x239)]=_0x3332c6,this[_0x48ac66(0x35b)]=_0x36b7b2,G(this,_0x48ac66(0x3d9),null),G(this,_0x48ac66(0x3e0),0x0),G(this,_0x48ac66(0x32c),0x0),G(this,'_taskIds',[]),G(this,_0x48ac66(0x1a6),0x0),this[_0x48ac66(0x24e)]();}['_initCommandInterceptor'](){const _0x419a6b=_0x392a75;this[_0x419a6b(0x39f)](this[_0x419a6b(0x26f)][_0x419a6b(0x327)]((_0x3cd3d2,_0x36a3e9)=>{const _0x1c0f91=_0x419a6b;var _0x288cb4;if(_0x3cd3d2['id']!==_0x41430f['id'])return;let _0x3a3bd5=_0x3cd3d2[_0x1c0f91(0x25c)];if(this[_0x1c0f91(0x2bd)]((_0x288cb4=_0x3a3bd5['dirtyRanges'])==null?[]:_0x288cb4)&&!this[_0x1c0f91(0x22d)]())throw this[_0x1c0f91(0x36f)](_0x3cd3d2,_0x36a3e9),this[_0x1c0f91(0x2c8)](),new _0x5f439f();})),this[_0x419a6b(0x39f)](this[_0x419a6b(0x26f)]['onCommandExecuted']((_0x47b8a8,_0x2d3be8)=>{const _0x196ae3=_0x419a6b;if(_0x47b8a8['id']!==_0x325e4e['id'])return;let _0x531fcb=_0x47b8a8[_0x196ae3(0x25c)];if(Pn(_0x531fcb)){let _0x418475=_0x35c403();this[_0x196ae3(0x3ac)][_0x196ae3(0x2f4)](_0x418475),this[_0x196ae3(0x1e6)](_0x418475);}else{if(Fn(_0x531fcb)&&this[_0x196ae3(0x3ac)][_0x196ae3(0x2a5)]>0x0){let _0x2c9044=this[_0x196ae3(0x3ac)][_0x196ae3(0x276)]();this[_0x196ae3(0x1ba)](_0x2c9044);}}}));}[_0x392a75(0x28b)](){const _0x5262e2=_0x392a75;super[_0x5262e2(0x28b)](),this[_0x5262e2(0x315)](),this[_0x5262e2(0x3ac)]=[],this[_0x5262e2(0x32c)]=0x0,this[_0x5262e2(0x3e0)]=0x0,this[_0x5262e2(0x1a6)]=0x0;}async[_0x392a75(0x36f)](_0x10ecd7,_0x3a5679){const _0x39c950=_0x392a75;for(let _0x142818=0x0;_0x142818<0x1e;_0x142818++)try{if(await this[_0x39c950(0x3b0)](),this[_0x39c950(0x22d)]()){this[_0x39c950(0x243)](_0x10ecd7,_0x3a5679),this[_0x39c950(0x29f)][_0x39c950(0x2a1)]({'content':this[_0x39c950(0x35b)]['t'](_0x39c950(0x1b7)),'type':_0x2cde3b[_0x39c950(0x39d)]});return;}await new Promise(_0x5d7298=>{const _0x32a87f=_0x39c950;this[_0x32a87f(0x3d9)]=window[_0x32a87f(0x2fb)](_0x5d7298,0x3e8);});}catch(_0xfc532e){this[_0x39c950(0x239)][_0x39c950(0x3b1)](_0xfc532e);}this[_0x39c950(0x29f)][_0x39c950(0x2a1)]({'content':this[_0x39c950(0x35b)]['t'](_0x39c950(0x30c)),'type':_0x2cde3b['Error']});}['_applyCommand'](_0x528776,_0x31c4b6){const _0x9ceca=_0x392a75;try{this[_0x9ceca(0x26f)][_0x9ceca(0x293)](_0x528776['id'],_0x528776['params'],_0x31c4b6);}catch(_0x1e4a55){this[_0x9ceca(0x239)][_0x9ceca(0x3b1)](_0x1e4a55);}}[_0x392a75(0x2b2)](_0x36bdb0,_0x1334be){const _0x4d51db=_0x392a75;_0x1334be<this[_0x4d51db(0x1a6)]||(this['_lastResponseTimestamp']=_0x1334be,this[_0x4d51db(0x3e0)]=Number[_0x4d51db(0x27c)](_0x36bdb0[_0x4d51db(0x312)]),this[_0x4d51db(0x32c)]=Number['parseInt'](_0x36bdb0[_0x4d51db(0x313)]));}async[_0x392a75(0x1e6)](_0x3b952c){const _0x1b7630=_0x392a75;let _0x3c0509=Date['now']();try{var _0x501517,_0x175383;let _0xec9616=((_0x501517=this[_0x1b7630(0x355)][_0x1b7630(0x1ee)](_0x10c7b2))==null?void 0x0:_0x501517['startFormulaLimitUrl'])||_0x1b7630(0x37a),_0x268daf=(await this[_0x1b7630(0x3b5)]['post'](_0xec9616,{'body':JSON[_0x1b7630(0x20f)]({'taskId':_0x3b952c})}))[_0x1b7630(0x3de)];if(((_0x175383=_0x268daf[_0x1b7630(0x3b1)])==null?void 0x0:_0x175383['code'])!==_0x30ce4e['OK'])return;this[_0x1b7630(0x2b2)](_0x268daf[_0x1b7630(0x341)],_0x3c0509);}catch(_0x493c10){this[_0x1b7630(0x239)][_0x1b7630(0x3b1)](_0x493c10);}}async[_0x392a75(0x3b0)](_0x78719){const _0x2fd971=_0x392a75;let _0x16772f=Date[_0x2fd971(0x1a5)]();try{var _0x344fab,_0x30e086;let _0x2f5ee6=((_0x344fab=this[_0x2fd971(0x355)][_0x2fd971(0x1ee)](_0x10c7b2))==null?void 0x0:_0x344fab[_0x2fd971(0x2e9)])||_0x2fd971(0x1c5),_0x5c962e=_0x78719?_0x2f5ee6+_0x2fd971(0x39c)+encodeURIComponent(_0x78719):_0x2f5ee6,_0x5b5598=(await this['_httpService']['get'](_0x5c962e))[_0x2fd971(0x3de)];if(((_0x30e086=_0x5b5598[_0x2fd971(0x3b1)])==null?void 0x0:_0x30e086[_0x2fd971(0x3c2)])!==_0x30ce4e['OK'])return;this[_0x2fd971(0x2b2)](_0x5b5598['limitInfo'],_0x16772f);}catch(_0x1ab73f){this['_logService'][_0x2fd971(0x3b1)](_0x1ab73f);}}async[_0x392a75(0x1ba)](_0x138d99){const _0x1393a3=_0x392a75;let _0x5cb51d=Date['now']();try{var _0x4192ae,_0x4cffe8;let _0x42971c=((_0x4192ae=this[_0x1393a3(0x355)][_0x1393a3(0x1ee)](_0x10c7b2))==null?void 0x0:_0x4192ae['releaseFormulaLimitUrl'])||_0x1393a3(0x3cf),_0x19cd8d=(await this['_httpService'][_0x1393a3(0x300)](_0x42971c,{'body':JSON[_0x1393a3(0x20f)]({'taskId':_0x138d99})}))[_0x1393a3(0x3de)];if(((_0x4cffe8=_0x19cd8d[_0x1393a3(0x3b1)])==null?void 0x0:_0x4cffe8[_0x1393a3(0x3c2)])!==_0x30ce4e['OK'])return;this[_0x1393a3(0x2b2)](_0x19cd8d[_0x1393a3(0x341)],_0x5cb51d);}catch(_0x557523){this[_0x1393a3(0x239)][_0x1393a3(0x3b1)](_0x557523);}}[_0x392a75(0x22d)](){const _0x305c1d=_0x392a75;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x305c1d(0x3e0)]-this[_0x305c1d(0x32c)]>0x0;}[_0x392a75(0x315)](){const _0x16eabb=_0x392a75;this[_0x16eabb(0x3d9)]&&(clearTimeout(this[_0x16eabb(0x3d9)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x1f78e8=_0x392a75;this[_0x1f78e8(0x29f)]['show']({'content':this[_0x1f78e8(0x35b)]['t'](_0x1f78e8(0x35c)),'type':_0x2cde3b[_0x1f78e8(0x33d)]});}[_0x392a75(0x2bd)](_0x4949c2){const _0x2ca715=_0x392a75;for(let _0x12f957 of _0x4949c2){let {unitId:_0x6205cd,sheetId:_0xef9943,range:_0x2057d7}=_0x12f957,_0x469595=this[_0x2ca715(0x224)]['getUnit'](_0x6205cd);if(!_0x469595)continue;let _0x481005=_0x469595[_0x2ca715(0x298)](_0xef9943);if(!_0x481005)continue;let _0x304822=_0x481005['getCellMatrix']();for(let _0x81156d=_0x2057d7[_0x2ca715(0x384)];_0x81156d<=_0x2057d7[_0x2ca715(0x25e)];_0x81156d++)for(let _0x4e306c=_0x2057d7['startColumn'];_0x4e306c<=_0x2057d7[_0x2ca715(0x2cb)];_0x4e306c++){let _0x2e7f82=_0x304822[_0x2ca715(0x3cc)](_0x81156d,_0x4e306c);if(_0x2e7f82&&(_0x1b0724(_0x2e7f82['f'])||_0x2c094f(_0x2e7f82['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x13edf9(_0xe2975f)),K(0x1,_0x338dbd),K(0x2,_0x3b56ca),K(0x3,_0x13edf9(_0x2fee98)),K(0x4,_0x5c7755),K(0x5,_0x4cd0b8),K(0x6,_0x13edf9(_0x2cad47))],Q);let In=class extends _0x20ff58{constructor(_0x3ec221,_0x22df7c,_0x42504a){const _0x283219=_0x392a75;super(),this[_0x283219(0x355)]=_0x3ec221,this[_0x283219(0x3a3)]=_0x22df7c,this[_0x283219(0x32f)]=_0x42504a,G(this,_0x283219(0x288),new Map()),G(this,_0x283219(0x1c4),new Map()),G(this,_0x283219(0x2f2),!0x1);}[_0x392a75(0x1fd)](){const _0x3f2e34=_0x392a75;this[_0x3f2e34(0x2f2)]=!0x0;}[_0x392a75(0x2a4)](){const _0x1c5085=_0x392a75;this[_0x1c5085(0x2f2)]=!0x1;}get[_0x392a75(0x2a9)](){const _0x3332a0=_0x392a75;return this[_0x3332a0(0x1c4)];}[_0x392a75(0x28b)](){const _0x2902ad=_0x392a75;this['exhaustSavingTask']()['then'](()=>super[_0x2902ad(0x28b)]());}async['loadOfflineData'](_0x475517){const _0x349af1=_0x392a75;return this[_0x349af1(0x2f2)]?null:this[_0x349af1(0x3a3)]['getItem'](_0x41e692(_0x475517));}async[_0x392a75(0x3b8)](_0x3cd045,_0x30cd6f){const _0x10b148=_0x392a75;return!!this[_0x10b148(0x3a3)][_0x10b148(0x344)](_0x41e692(_0x3cd045),_0x30cd6f);}async['backupOfflineData'](_0x3dff64,_0x2dac7a){const _0x112412=_0x392a75;var _0x5be620;let _0x37f845=(_0x5be620=this[_0x112412(0x288)][_0x112412(0x270)](_0x3dff64))==null?await this[_0x112412(0x3a3)][_0x112412(0x3d2)](_0x41e692(_0x3dff64)):_0x5be620;if(!_0x37f845)return;let _0x525801=Date[_0x112412(0x1a5)](),_0x28c3b=new Date(_0x525801)[_0x112412(0x3bd)]();await this[_0x112412(0x3a3)]['setItem'](_0x41e692(_0x3dff64)+_0x112412(0x269)+_0x525801,{'reason':_0x2dac7a,'createdAt':_0x28c3b,'data':_0x37f845});}['updateOfflineData'](_0x2e1eae,_0x343a3e,_0x575e68,_0x25159b){const _0x815c37=_0x392a75;let _0x220963=this['_revisionService'][_0x815c37(0x39a)](_0x2e1eae);this[_0x815c37(0x288)]['set'](_0x2e1eae,{'unitID':_0x2e1eae,'type':_0x343a3e,'awaitingChangeset':_0x575e68,'mutations':_0x25159b,'rev':_0x220963}),this[_0x815c37(0x1c4)][_0x815c37(0x36e)](_0x2e1eae)||this['_scheduleSaving'](_0x2e1eae);}[_0x392a75(0x28a)](_0x2303b0){const _0x377b97=_0x392a75;let _0x37297e=this[_0x377b97(0x39e)]();_0x37297e===0x0?this['_saveCache'](_0x2303b0):this[_0x377b97(0x1c4)][_0x377b97(0x3b9)](_0x2303b0,setTimeout(()=>this['_saveCache'](_0x2303b0),_0x37297e));}[_0x392a75(0x39e)](){const _0x3e46bf=_0x392a75;var _0x182f91;return(_0x182f91=this['_configService'][_0x3e46bf(0x1ee)](_0x108427))==null?_0x23e32b:_0x182f91;}[_0x392a75(0x22f)](_0xbf1e2b){const _0x556ad1=_0x392a75;let _0x53e291=this[_0x556ad1(0x1c4)][_0x556ad1(0x270)](_0xbf1e2b);return _0x53e291!==void 0x0&&window[_0x556ad1(0x23e)](_0x53e291),this[_0x556ad1(0x3a3)][_0x556ad1(0x344)](_0x41e692(_0xbf1e2b),this[_0x556ad1(0x288)][_0x556ad1(0x270)](_0xbf1e2b))[_0x556ad1(0x240)](()=>this[_0x556ad1(0x1c4)]['delete'](_0xbf1e2b));}async[_0x392a75(0x202)](){const _0x1604a5=_0x392a75;let _0x131818=[];this['_saveTaskMap'][_0x1604a5(0x365)]((_0x150097,_0x1624af)=>{const _0x2456ae=_0x1604a5;window[_0x2456ae(0x23e)](_0x150097),_0x131818[_0x2456ae(0x2f4)](this[_0x2456ae(0x22f)](_0x1624af)[_0x2456ae(0x240)](()=>{const _0xe258ba=_0x2456ae;this[_0xe258ba(0x1c4)][_0xe258ba(0x250)](_0x1624af);}));}),await Promise[_0x1604a5(0x259)](_0x131818);}};In=q([K(0x0,_0x3b56ca),K(0x1,_0x2a3285),K(0x2,_0x13edf9(_0x18ade7))],In);var Ln=class extends _0x47ffee{constructor(){const _0x399d68=_0x392a75;super(),G(this,_0x399d68(0x3b4),void 0x0),this[_0x399d68(0x3b4)]=_0x4fc3aa(window,'popstate')[_0x399d68(0x1f6)](_0x5f111a(this[_0x399d68(0x218)]),_0x46e2a6({'bufferSize':0x1,'refCount':!0x0}),_0x16d043(void 0x0));}['setParam'](_0x353706,_0x1997c1,_0x28405d=!0x1){const _0x126b15=_0x392a75;let _0x3f719f=new URL(window['location']['href']);_0x3f719f[_0x126b15(0x3b2)][_0x126b15(0x3b9)](_0x353706,_0x1997c1),_0x28405d?window[_0x126b15(0x20c)][_0x126b15(0x3ce)]('','',_0x3f719f['toString']()):window['history']['pushState']('','',_0x3f719f[_0x126b15(0x21f)]());}['removeParam'](_0x136ef9,_0x44e9ab=!0x1){const _0x1ef97a=_0x392a75;let _0x3a0bea=new URL(window['location']['href']);_0x3a0bea[_0x1ef97a(0x3b2)][_0x1ef97a(0x250)](_0x136ef9),_0x44e9ab?window[_0x1ef97a(0x20c)]['replaceState']('','',_0x3a0bea[_0x1ef97a(0x21f)]()):window['history'][_0x1ef97a(0x2d1)]('','',_0x3a0bea[_0x1ef97a(0x21f)]());}[_0x392a75(0x1e0)](_0xbe8b19){const _0x56412a=_0x392a75;var _0xb66192;return(_0xb66192=new URL(window[_0x56412a(0x3ca)][_0x56412a(0x27f)])[_0x56412a(0x3b2)][_0x56412a(0x270)](_0xbe8b19))==null?void 0x0:_0xb66192;}};let $=class extends _0x5f4a3f{constructor(_0xb60052=on,_0x500356,_0x58de1b,_0xa08815){const _0x11087b=_0x392a75;super(),this[_0x11087b(0x236)]=_0xb60052,this[_0x11087b(0x1e8)]=_0x500356,this[_0x11087b(0x248)]=_0x58de1b,this['_configService']=_0xa08815;let {..._0x19d09c}=_0x1c04c4({},on,this[_0x11087b(0x236)]);this[_0x11087b(0x355)][_0x11087b(0x3d1)](_0x11087b(0x2e2),_0x19d09c);}[_0x392a75(0x3d0)](){const _0x5ec3c5=_0x392a75;this[_0x5ec3c5(0x374)](),this[_0x5ec3c5(0x1fb)]();}[_0x392a75(0x1fe)](){this['_registerRenderDependencies']();}[_0x392a75(0x374)](){const _0x1c4906=_0x392a75;var _0xdd5f6b;let _0x5d558d=[[ln],[Q],[nn,{'useClass':Ln}],[_0x21a141,{'useClass':_0x4c2e99}],[_0x368670,{'useClass':In}],[J],[Z],[X],[Y]];this[_0x1c4906(0x236)][_0x1c4906(0x377)]!==!0x1&&_0x5d558d[_0x1c4906(0x2f4)]([jn],[kn],[An],[fn],[Mn],[sn]),this['_config'][_0x1c4906(0x36a)]&&_0x5d558d[_0x1c4906(0x2f4)]([Nn]),_0x11d37d(this['_injector'],_0x131c21(_0x5d558d,(_0xdd5f6b=this[_0x1c4906(0x236)])==null?void 0x0:_0xdd5f6b[_0x1c4906(0x29a)]));}['_registerRenderDependencies'](){const _0x51a63f=_0x392a75;this['_config'][_0x51a63f(0x377)]!==!0x1&&this[_0x51a63f(0x39f)](this[_0x51a63f(0x1e8)]['registerRenderModule'](_0x12ddec[_0x51a63f(0x331)],[Sn])),this[_0x51a63f(0x39f)](this['_renderManagerService'][_0x51a63f(0x29b)](_0x12ddec['UNIVER_SHEET'],[wn])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](_0x12ddec[_0x51a63f(0x363)],[On]));}['_initDependencies'](){const _0xd574ab=_0x392a75;_0x21d03b(this[_0xd574ab(0x248)],[[X],[J],[Z],[Y],[Q]]),this[_0xd574ab(0x236)]['enableDocumentCollaborationUI']!==!0x1&&_0x21d03b(this[_0xd574ab(0x248)],[[Mn],[sn]]),this['_config'][_0xd574ab(0x36a)]&&_0x21d03b(this[_0xd574ab(0x248)],[[Nn]]);}};G($,_0x392a75(0x31f),_0x392a75(0x23c)),G($,_0x392a75(0x225),rn),G($,_0x392a75(0x390),an),$=q([_0x38329d(_0x537e55),K(0x1,_0x17c2eb),K(0x2,_0x13edf9(_0x4decc3)),K(0x3,_0x3b56ca)],$);let Rn=class extends _0xd45fa9{constructor(_0x292f40,_0x2a1253,_0x5ef0cc,_0x4228c7,_0x45702a){super(_0x292f40,_0x2a1253,_0x5ef0cc,_0x4228c7,_0x45702a);}async['createSocket'](_0x352eb4){const _0x5df4bc=_0x392a75;let _0x2777b9=await this[_0x5df4bc(0x30f)](),_0x4ba355=this['_createSocketURL'](_0x352eb4,_0x2777b9);return this[_0x5df4bc(0x1c1)](_0x4ba355);}['_createSocketURL'](_0x1255f9,_0x20d496){const _0x5ab7f5=_0x392a75;let _0x15e4f3=typeof window>'u'?new URL(_0x1255f9):new URL(_0x1255f9,window[_0x5ab7f5(0x3ca)][_0x5ab7f5(0x2c0)]);_0x15e4f3[_0x5ab7f5(0x3b2)][_0x5ab7f5(0x3b9)]('sessionTicket',_0x20d496);let _0x53d040=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5ab7f5(0x3ca)]['search']);return _0x53d040[_0x5ab7f5(0x270)](_0x5ab7f5(0x1a7))&&_0x15e4f3[_0x5ab7f5(0x3b2)][_0x5ab7f5(0x3b9)]('runId',_0x53d040[_0x5ab7f5(0x270)](_0x5ab7f5(0x1a7))),_0x15e4f3[_0x5ab7f5(0x21f)]();}async['_getSessionTicket'](){const _0x45bae4=_0x392a75;var _0x31db2b,_0x530316,_0x42306a;let _0xae7466=this[_0x45bae4(0x355)][_0x45bae4(0x1ee)](_0x10c7b2),_0x21fe6a=(_0x31db2b=_0xae7466==null?void 0x0:_0xae7466[_0x45bae4(0x30e)])==null?_0x5c4165:_0x31db2b;return(_0x530316=(_0x42306a=(await this[_0x45bae4(0x3b5)]['get'](_0x21fe6a,{'headers':{'Content-Type':_0x45bae4(0x1f8)}}))['body'])==null?void 0x0:_0x42306a[_0x45bae4(0x383)])==null?'':_0x530316;}};Rn=q([K(0x0,_0x13edf9(_0x4decc3)),K(0x1,_0x13edf9(_0x2fee98)),K(0x2,_0x3b56ca),K(0x3,_0x4cd0b8),K(0x4,_0x36b03a)],Rn);let zn=class extends _0x20ff58{constructor(_0x211cd7,_0x1998d7,_0x496e35){const _0x1b23df=_0x392a75;super(),this[_0x1b23df(0x249)]=_0x211cd7,this['_httpService']=_0x1998d7,this['_configService']=_0x496e35;}async['runOnServer'](_0x48a01f,_0x231ac7,_0x232d6d,..._0x3916c9){const _0x4bc660=_0x392a75;var _0x403e99,_0x50a646,_0x13badc,_0x51bde9;let _0x298dba=this[_0x4bc660(0x249)][_0x4bc660(0x326)]();if(!_0x298dba)throw Error(_0x4bc660(0x1af));let _0x346923=((_0x403e99=this['_configService'][_0x4bc660(0x1ee)](_0x597d03))==null?_0x5ed597:_0x403e99)+'/'+_0x48a01f+_0x4bc660(0x2bc)+_0x231ac7,_0x3af8fa={'scriptId':_0x48a01f,'runId':(_0x50a646=new URL(window[_0x4bc660(0x3ca)][_0x4bc660(0x27f)])[_0x4bc660(0x3b2)][_0x4bc660(0x270)]('runId'))==null?'':_0x50a646,'function':_0x231ac7,'unitId':_0x298dba[_0x4bc660(0x3a6)](),'argsOfFunction':JSON[_0x4bc660(0x20f)](_0x3916c9),'invokeId':(_0x13badc=_0x232d6d[_0x4bc660(0x2a8)])==null?'':_0x13badc,'executionId':(_0x51bde9=_0x232d6d[_0x4bc660(0x359)])==null?'':_0x51bde9};try{let _0x89792b=await this[_0x4bc660(0x3b5)][_0x4bc660(0x300)](_0x346923,{'body':_0x3af8fa});return _0x89792b[_0x4bc660(0x3de)][_0x4bc660(0x3b1)]&&_0x89792b[_0x4bc660(0x3de)][_0x4bc660(0x3b1)]['code']!==_0x30ce4e['OK']?_0x4bc660(0x38b):_0x89792b[_0x4bc660(0x3de)]['result'];}catch{return _0x4bc660(0x38b);}}};zn=q([K(0x0,_0x5c7755),K(0x1,_0x13edf9(_0x2fee98)),K(0x2,_0x3b56ca)],zn);const Bn=0x7530,Vn='ACTIVE_UNIT_EVENT_CHANNEL';var Hn=class extends _0x20ff58{constructor(){const _0x3f3b07=_0x392a75;super(),G(this,_0x3f3b07(0x2cf),_0x35c403()),G(this,_0x3f3b07(0x373),new Set()),G(this,_0x3f3b07(0x284),new Map()),G(this,'_heartbeatTimer',null),G(this,'_clearOtherTimers',new Map()),G(this,_0x3f3b07(0x3c7),new Map()),this[_0x3f3b07(0x1b8)]();}['dispose'](){const _0x4f3b26=_0x392a75;super['dispose'](),this['_clearOtherTimers'][_0x4f3b26(0x365)]((_0x12b601,_0x47ec84)=>this['_removeClearOtherTimer'](_0x47ec84)),this[_0x4f3b26(0x32d)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x392a75(0x2a2)](_0x2cb6fc){const _0x659cc3=_0x392a75;return this[_0x659cc3(0x229)](_0x2cb6fc)[_0x659cc3(0x1f6)](_0x439347());}[_0x392a75(0x1bb)](_0x2df2fc){const _0x56c830=_0x392a75;this[_0x56c830(0x373)][_0x56c830(0x1b5)]===0x0&&this[_0x56c830(0x3da)](),this[_0x56c830(0x373)][_0x56c830(0x1cb)](_0x2df2fc),this[_0x56c830(0x2e1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2df2fc],'isForwarded':!0x1});}[_0x392a75(0x333)](_0x4ec7a7){const _0x59d27e=_0x392a75;this[_0x59d27e(0x373)][_0x59d27e(0x250)](_0x4ec7a7),this[_0x59d27e(0x373)][_0x59d27e(0x1b5)]===0x0&&this[_0x59d27e(0x32d)]&&window[_0x59d27e(0x314)](this[_0x59d27e(0x32d)]);}['_init'](){const _0x8d0c08=_0x392a75;this[_0x8d0c08(0x39f)](_0x245507(_0x4fc3aa(window,_0x8d0c08(0x366))['subscribe'](_0x5da872=>{const _0x4eed6b=_0x8d0c08;if(_0x5da872['key']!==Vn||!_0x5da872[_0x4eed6b(0x38f)])return;let _0x590504=JSON['parse'](_0x5da872[_0x4eed6b(0x38f)]);this['_handleEvent'](_0x590504);}))),window[_0x8d0c08(0x3ae)]('unload',()=>this[_0x8d0c08(0x2e1)]({'type':0x1,'memberID':this[_0x8d0c08(0x2cf)],'unitIDs':Array[_0x8d0c08(0x233)](this[_0x8d0c08(0x373)])}));}['_handleEvent'](_0x5c705e){const _0x27fff2=_0x392a75;switch(_0x5c705e[_0x27fff2(0x1fa)]){case 0x0:this[_0x27fff2(0x1ed)](_0x5c705e);break;case 0x1:this[_0x27fff2(0x2aa)](_0x5c705e);break;case 0x2:this[_0x27fff2(0x1a4)](_0x5c705e);break;}}['_handleJoinEvent'](_0x4d87be){const _0x3cf9ad=_0x392a75;let {unitIDs:_0x55201e,memberID:_0xa408b8,isForwarded:_0x2f9b4c}=_0x4d87be;_0x55201e['forEach'](_0x14b97e=>{const _0xd254e8=_0x449b;if(!_0x2f9b4c&&this[_0xd254e8(0x284)][_0xd254e8(0x36e)](_0x14b97e)&&this[_0xd254e8(0x229)](_0x14b97e)[_0xd254e8(0x2f7)](_0x710c4d[_0xd254e8(0x278)]),!this['_unitOnClients']['has'](_0x14b97e)||!this[_0xd254e8(0x284)][_0xd254e8(0x270)](_0x14b97e)[_0xd254e8(0x36e)](_0xa408b8)){let _0x3cac9f=this[_0xd254e8(0x284)]['get'](_0x14b97e)||new Set();_0x3cac9f[_0xd254e8(0x1cb)](_0xa408b8),this['_unitOnClients'][_0xd254e8(0x3b9)](_0x14b97e,_0x3cac9f),this[_0xd254e8(0x33e)](_0xa408b8);}}),_0x2f9b4c||this[_0x3cf9ad(0x2e1)]({'type':0x0,'memberID':this[_0x3cf9ad(0x2cf)],'unitIDs':[...this[_0x3cf9ad(0x373)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3afedc){const _0x22861b=_0x392a75;this[_0x22861b(0x231)](_0x3afedc);let _0x1dd830=window[_0x22861b(0x2fb)](()=>{const _0xc72ac6=_0x22861b;this[_0xc72ac6(0x284)][_0xc72ac6(0x365)](_0x1aa70c=>{const _0x326e15=_0xc72ac6;_0x1aa70c[_0x326e15(0x250)](_0x3afedc);});},Bn*0x2);this[_0x22861b(0x1db)]['set'](_0x3afedc,_0x1dd830);}[_0x392a75(0x231)](_0x25e0d3){const _0xe32ab5=_0x392a75;if(this[_0xe32ab5(0x1db)][_0xe32ab5(0x36e)](_0x25e0d3)){let _0x54ecfc=this['_clearOtherTimers'][_0xe32ab5(0x270)](_0x25e0d3);_0x54ecfc&&window[_0xe32ab5(0x23e)](_0x54ecfc),this['_clearOtherTimers'][_0xe32ab5(0x3b9)](_0x25e0d3,null);}}['_handleLeaveEvent'](_0x56fb09){const _0x49e9a0=_0x392a75;let {memberID:_0x238b15,unitIDs:_0x12c3fd}=_0x56fb09;_0x12c3fd[_0x49e9a0(0x365)](_0x4151fd=>{const _0x28a660=_0x49e9a0;var _0x5b7c39;let _0x4efb00=this['_unitOnClients'][_0x28a660(0x270)](_0x4151fd);_0x4efb00&&(_0x4efb00[_0x28a660(0x250)](_0x238b15),(_0x5b7c39=this[_0x28a660(0x229)](_0x4151fd))==null||_0x5b7c39['next'](_0x4efb00['size']===0x0?_0x710c4d[_0x28a660(0x2da)]:_0x710c4d[_0x28a660(0x278)]));}),this[_0x49e9a0(0x231)](_0x238b15);}['_handleHeartbeatEvent'](_0x2612c0){const _0x131e64=_0x392a75;this[_0x131e64(0x33e)](_0x2612c0[_0x131e64(0x319)]);}['_send'](_0x4336df){const _0x12677c=_0x392a75;localStorage[_0x12677c(0x344)](Vn,JSON[_0x12677c(0x20f)](_0x4336df));}[_0x392a75(0x3da)](){const _0x411a5f=_0x392a75;this['_heartbeatTimer']=window[_0x411a5f(0x309)](()=>{const _0x29bf98=_0x411a5f;this[_0x29bf98(0x2e1)]({'type':0x2,'memberID':this[_0x29bf98(0x2cf)]});},Bn);}[_0x392a75(0x229)](_0x5cbf9e){const _0x25786e=_0x392a75;return this['_unitStatus']['has'](_0x5cbf9e)||this[_0x25786e(0x3c7)][_0x25786e(0x3b9)](_0x5cbf9e,new _0xd9ac59(_0x710c4d[_0x25786e(0x2da)])),this[_0x25786e(0x3c7)][_0x25786e(0x270)](_0x5cbf9e);}};export{Rn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,nn as IURLService,zn as RemoteUniscriptService,Cn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,Hn as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|