@univerjs-pro/collaboration-client-ui 1.3.1 → 1.5.0
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/README.md +7 -7
- 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 +22 -22
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x52f5fd=_0x1ddb;(function(_0x5ceb59,_0x53e705){const _0x42127c=_0x1ddb,_0x425e5e=_0x5ceb59();while(!![]){try{const _0x2bb55e=-parseInt(_0x42127c(0x366))/0x1*(-parseInt(_0x42127c(0x271))/0x2)+parseInt(_0x42127c(0x409))/0x3+-parseInt(_0x42127c(0x298))/0x4+-parseInt(_0x42127c(0x393))/0x5*(parseInt(_0x42127c(0x2db))/0x6)+parseInt(_0x42127c(0x1f0))/0x7+-parseInt(_0x42127c(0x369))/0x8+-parseInt(_0x42127c(0x425))/0x9*(-parseInt(_0x42127c(0x1de))/0xa);if(_0x2bb55e===_0x53e705)break;else _0x425e5e['push'](_0x425e5e['shift']());}catch(_0x399e1e){_0x425e5e['push'](_0x425e5e['shift']());}}}(_0x1027,0x4f91f));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x292787,CollaborationController as _0x1696b1,CollaborationSessionService as _0x27b258,CollaborationSocketService as _0x593d68,CollaborationStatus as _0x342e1d,CollaborationUIEventId as _0x4b3e00,CollaborationUIEventService as _0x183cb9,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4effa4,DEFAULT_WS_SESSION_TICKET_URL as _0x24f5d5,DocCollaborationEntity as _0x29bec0,ILocalCacheService as _0x18d32c,INetworkConditionService as _0x3bf55d,LOCAL_CACHE_INTERVAL as _0x7aeb24,LOCAL_CACHE_INTERVAL_KEY as _0x52de38,MemberService as _0xbf8ec6,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x13cc63,SessionStatus as _0x12d017,UnitStatus as _0x989173,UniverCollaborationClientPlugin as _0x16153d,getLocalCacheKey as _0x4f6aa4}from'@univerjs-pro/collaboration-client';import{COLORS as _0x1c08dd,ColorKit as _0x371d86,CommandType as _0x57513d,DOC_RANGE_TYPE as _0xa92b7c,DependentOn as _0x3e57be,Disposable as _0x200dbf,DisposableCollection as _0x350b2a,ICommandService as _0x146f3e,IConfigService as _0x5e768c,IImageIoService as _0xf6fd93,ILocalStorageService as _0x24982b,ILogService as _0xb342d0,IUniverInstanceService as _0x18bd8e,Inject as _0x1123ef,Injector as _0x1f50b7,LocaleService as _0x6a51f2,Plugin as _0x19da3b,Rectangle as _0x54f2dd,RxDisposable as _0xcabcc5,ThemeService as _0x3fe52f,Tools as _0x3b08db,UniverInstanceType as _0x1b1692,UserManagerService as _0x207233,debounce as _0x396a39,fromEventSubject as _0x193585,generateRandomId as _0x301971,isInternalEditorID as _0x2e5d4b,merge as _0x113c29,mergeOverrideWithDependencies as _0x503733,registerDependencies as _0x49f879,toDisposable as _0x1a9326,touchDependencies as _0x33fdb2}from'@univerjs/core';import{BuiltInUIPart as _0x14210c,IBeforeCloseService as _0x486ae7,IMessageService as _0x288aef,INotificationService as _0x218887,IUIPartsService as _0x2d3d02,IUnitPresenceUIAdapterRegistry as _0x5e4692,connectInjector as _0x1b4da3,useDependency as _0x584949,useObservable as _0x10a260}from'@univerjs/ui';import{BehaviorSubject as _0x22e98f,Subject as _0x2f5c0b,combineLatest as _0x281fe6,debounceTime as _0x231af4,distinctUntilChanged as _0x127065,filter as _0x45db35,firstValueFrom as _0x528618,fromEvent as _0x110dcb,map as _0x157206,merge as _0x12f427,of as _0x2b4131,switchMap as _0x2318c1,takeUntil as _0x2acb3a,throttle as _0x434f04,timeout as _0x182c43,timer as _0x4dc17e}from'rxjs';import{distinctUntilChanged as _0x14d010,filter as _0x393a84,map as _0x328c1b,switchMap as _0x5437c2,takeUntil as _0x243b11,throttleTime as _0x1dd86f}from'rxjs/operators';import{Button as _0x558f08,MessageType as _0x120f45,Tooltip as _0x50fecd,clsx as _0x2fc4ee}from'@univerjs/design';import{LoadingMultiIcon as _0x12dd0a,OffLineIcon as _0x10d19d,OnLineIcon as _0x328c59,WarningIcon as _0x2c0566}from'@univerjs/icons';import{createElement as _0x313d6d,useCallback as _0x48c458,useMemo as _0x33d7a8}from'react';import{jsx as _0x45e08e,jsxs as _0x4cbcd0}from'react/jsx-runtime';import{CollaborationEvent as _0x1aebdc,ISnapshotServerService as _0x430845,ITransformService as _0x41fd3c,RevisionService as _0x5d5320,SnapshotLoadStage as _0x2f72cc,SnapshotLoadingService as _0x59eb48,UniverCollaborationPlugin as _0x1293ec,isTransformMutationFailure as _0x36dbeb,isTransformMutationsWithChangesetSuccess as _0x53f4fc}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x23107e}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x10c16a,DocSkeletonManagerService as _0x3861e7,DocStateChangeManagerService as _0x2a967c,RichTextEditingMutation as _0x290fd3,SetTextSelectionsOperation as _0x489094,UniverDocsPlugin as _0x6603c8}from'@univerjs/docs';import{DocIMEInputManagerService as _0x4968df,IDocClipboardService as _0x315686,NodePositionConvertToCursor as _0x3444dd,NodePositionConvertToRectRange as _0x5b31e0,SetDocZoomRatioOperation as _0x265ad5,TEXT_RANGE_LAYER_INDEX as _0x2ac892,UniverDocsUIPlugin as _0x3f3a27}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2257e8,IRenderManagerService as _0xb5f914,Rect as _0x39eaf7,RegularPolygon as _0x49d03d,SHEET_VIEWPORT_KEY as _0x4af0ff,Shape as _0x2566c0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x42cab0,UniverRenderEnginePlugin as _0x22fbec,Vector2 as _0xbe1e87,getColor as _0xb76c99,getDocumentSkeletonColumnPagePathInfo as _0x3be25e}from'@univerjs/engine-render';import{HTTPEventType as _0x1e3f11,HTTPService as _0xcdb063,ISocketService as _0x2d015b,UniverNetworkPlugin as _0x557134,WebSocketService as _0x38b8b3}from'@univerjs/network';import{deserializeRangeWithSheet as _0x4d4c31,serializeRangeWithSheet as _0x1ffec9}from'@univerjs/engine-formula';import{EffectRefRangId as _0x5bd0ef,RefRangeService as _0x24a194,SetSelectionsOperation as _0x1c2272,SheetsSelectionsService as _0x146fb2,handleDeleteRangeMoveLeft as _0x22f4e8,handleDeleteRangeMoveUp as _0xd9bc0b,handleIRemoveCol as _0x425dd8,handleIRemoveRow as _0x1961b2,handleInsertCol as _0x2ae8e3,handleInsertRangeMoveDown as _0x58ade1,handleInsertRangeMoveRight as _0xfd5af3,handleInsertRow as _0x20e45a,handleMoveRange as _0x21c388,runRefRangeMutations as _0x500f5b}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x58c55a,getCoordByCell as _0x21da18,getSheetObject as _0xc47c9d}from'@univerjs/sheets-ui';import{ErrorCode as _0x111e08}from'@univerjs/protocol';function tn(_0x53f3b1){const _0x1a5aaa=_0x1ddb;switch(_0x53f3b1){case _0x342e1d[_0x1a5aaa(0x253)]:return{'icon':_0x45e08e(_0x10d19d,{}),'colorClass':_0x1a5aaa(0x456),'i18nKey':_0x1a5aaa(0x2ba),'tooltipKey':_0x1a5aaa(0x358),'clickable':!0x0,'indicator':_0x1a5aaa(0x320)};case _0x342e1d['CONFLICT']:return{'icon':_0x45e08e(_0x10d19d,{}),'colorClass':_0x1a5aaa(0x32f),'i18nKey':_0x1a5aaa(0x35e),'clickable':!0x1,'indicator':_0x1a5aaa(0x320)};case _0x342e1d[_0x1a5aaa(0x3fa)]:return{'icon':_0x45e08e(_0x12dd0a,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x1a5aaa(0x388),'clickable':!0x1,'indicator':_0x1a5aaa(0x3dd)};case _0x342e1d['NOT_COLLAB']:return{'icon':_0x45e08e(_0x328c59,{}),'colorClass':_0x1a5aaa(0x30c),'i18nKey':_0x1a5aaa(0x20a),'clickable':!0x1,'indicator':'static'};case _0x342e1d[_0x1a5aaa(0x2cb)]:case _0x342e1d[_0x1a5aaa(0x3cc)]:return{'icon':_0x45e08e(_0x12dd0a,{}),'colorClass':_0x1a5aaa(0x2ae),'i18nKey':_0x1a5aaa(0x3ab),'clickable':!0x1,'indicator':_0x1a5aaa(0x3dd)};case _0x342e1d[_0x1a5aaa(0x330)]:return{'icon':_0x45e08e(_0x12dd0a,{}),'colorClass':_0x1a5aaa(0x2ae),'i18nKey':_0x1a5aaa(0x3ab),'clickable':!0x1,'indicator':_0x1a5aaa(0x3dd)};case _0x342e1d[_0x1a5aaa(0x279)]:return{'icon':_0x45e08e(_0x328c59,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':'static'};}}function nn(_0x5cccd3){const _0x1835e1=_0x1ddb;let {status$:_0x4ef110}=_0x5cccd3,_0x4800dd=_0x10a260(_0x4ef110,_0x342e1d[_0x1835e1(0x40c)]),_0x39e67d=_0x584949(_0x6a51f2),_0x3df380=_0x584949(_0x27b258),_0x471929=_0x33d7a8(()=>tn(_0x4800dd),[_0x4800dd]),_0x13dcbc=_0x4800dd!==_0x342e1d[_0x1835e1(0x253)],_0x2960b9=_0x39e67d['t'](_0x471929[_0x1835e1(0x2b1)]),_0x594c8e=_0x471929['tooltipKey']?_0x39e67d['t'](_0x471929[_0x1835e1(0x28f)]):_0x2960b9,_0x43efd5=_0x48c458(()=>{const _0x28635d=_0x1835e1;_0x13dcbc||_0x3df380[_0x28635d(0x25d)]();},[_0x13dcbc,_0x3df380]),_0x49e4c8=_0x48c458(_0x155e5c=>{const _0x38b0b2=_0x1835e1;!_0x13dcbc&&(_0x155e5c[_0x38b0b2(0x288)]===_0x38b0b2(0x29f)||_0x155e5c['key']==='\x20')&&(_0x155e5c[_0x38b0b2(0x2e6)](),_0x3df380['reconnect']());},[_0x13dcbc,_0x3df380]),_0x3198f2=_0x45e08e('span',{'className':_0x2fc4ee(_0x1835e1(0x2b3),_0x1835e1(0x284),_0x471929['colorClass'],{'univer-animate-spin':_0x471929[_0x1835e1(0x45a)]===_0x1835e1(0x3dd),'univer-animate-pulse':_0x471929['indicator']===_0x1835e1(0x2b9)}),'aria-hidden':'true','children':_0x471929['icon']}),_0x52a1da=_0x45e08e(_0x1835e1(0x226),{'className':_0x2fc4ee(_0x1835e1(0x2b3),_0x1835e1(0x24c),_0x1835e1(0x367),_0x1835e1(0x3dc),'dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x471929[_0x1835e1(0x1fb)],'univer-cursor-default':!_0x471929[_0x1835e1(0x1fb)]}),'children':_0x3198f2});return _0x471929[_0x1835e1(0x1fb)]?_0x45e08e(_0x50fecd,{'title':_0x594c8e,'placement':_0x1835e1(0x1f5),'children':_0x45e08e(_0x1835e1(0x238),{'type':'button','onClick':_0x43efd5,'onKeyDown':_0x49e4c8,'className':_0x2fc4ee(_0x1835e1(0x22e),_0x1835e1(0x3c0),_0x1835e1(0x3d0),'univer-appearance-none'),'aria-label':_0x2960b9+'\x20-\x20'+_0x594c8e,'role':_0x1835e1(0x3c4),'aria-live':_0x1835e1(0x2b0),'aria-atomic':'true','children':_0x52a1da})}):_0x45e08e(_0x50fecd,{'title':_0x594c8e,'placement':_0x1835e1(0x1f5),'children':_0x45e08e('div',{'className':_0x2fc4ee(_0x1835e1(0x22e),_0x1835e1(0x3c0),'univer-m-0\x20univer-p-0'),'aria-label':_0x2960b9,'role':'status','aria-live':'polite','aria-atomic':_0x1835e1(0x20b),'children':_0x52a1da})});}function K(_0x56e9b9){'@babel/helpers - typeof';const _0x582447=_0x1ddb;return K=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x582447(0x1fe)?function(_0x316586){return typeof _0x316586;}:function(_0x288f33){const _0x53891e=_0x582447;return _0x288f33&&typeof Symbol==_0x53891e(0x446)&&_0x288f33[_0x53891e(0x385)]===Symbol&&_0x288f33!==Symbol[_0x53891e(0x34b)]?_0x53891e(0x1fe):typeof _0x288f33;},K(_0x56e9b9);}function rn(_0x2ec0e4,_0x1f9fc6){const _0x4066f7=_0x1ddb;if(K(_0x2ec0e4)!=_0x4066f7(0x2e4)||!_0x2ec0e4)return _0x2ec0e4;var _0x154a23=_0x2ec0e4[Symbol[_0x4066f7(0x3f5)]];if(_0x154a23!==void 0x0){var _0x1d095d=_0x154a23[_0x4066f7(0x2c2)](_0x2ec0e4,_0x1f9fc6||_0x4066f7(0x3b3));if(K(_0x1d095d)!='object')return _0x1d095d;throw TypeError(_0x4066f7(0x2d8));}return(_0x1f9fc6===_0x4066f7(0x45b)?String:Number)(_0x2ec0e4);}function an(_0x5f3b99){const _0x1f4477=_0x1ddb;var _0x599b96=rn(_0x5f3b99,_0x1f4477(0x45b));return K(_0x599b96)==_0x1f4477(0x1fe)?_0x599b96:_0x599b96+'';}function q(_0x53a4ce,_0x13e3ab,_0x33e701){const _0xbd6674=_0x1ddb;return(_0x13e3ab=an(_0x13e3ab))in _0x53a4ce?Object[_0xbd6674(0x43c)](_0x53a4ce,_0x13e3ab,{'value':_0x33e701,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53a4ce[_0x13e3ab]=_0x33e701,_0x53a4ce;}function J(_0x449472,_0x4fda7c){return function(_0x53fd5e,_0x5043b0){_0x4fda7c(_0x53fd5e,_0x5043b0,_0x449472);};}function Y(_0x2c58fa,_0x3b142d,_0x3fb165,_0x5a7382){const _0x30f8dc=_0x1ddb;var _0x17466f=arguments['length'],_0x42c00f=_0x17466f<0x3?_0x3b142d:_0x5a7382===null?_0x5a7382=Object[_0x30f8dc(0x390)](_0x3b142d,_0x3fb165):_0x5a7382,_0x2d5b57;if(typeof Reflect==_0x30f8dc(0x2e4)&&typeof Reflect['decorate']==_0x30f8dc(0x446))_0x42c00f=Reflect[_0x30f8dc(0x2c4)](_0x2c58fa,_0x3b142d,_0x3fb165,_0x5a7382);else{for(var _0x108835=_0x2c58fa[_0x30f8dc(0x26b)]-0x1;_0x108835>=0x0;_0x108835--)(_0x2d5b57=_0x2c58fa[_0x108835])&&(_0x42c00f=(_0x17466f<0x3?_0x2d5b57(_0x42c00f):_0x17466f>0x3?_0x2d5b57(_0x3b142d,_0x3fb165,_0x42c00f):_0x2d5b57(_0x3b142d,_0x3fb165))||_0x42c00f);}return _0x17466f>0x3&&_0x42c00f&&Object[_0x30f8dc(0x43c)](_0x3b142d,_0x3fb165,_0x42c00f),_0x42c00f;}let X=class extends _0x200dbf{constructor(_0x4708f6,_0x4010e7,_0x125673,_0x7e7fa8,_0x4db10e){const _0x21a658=_0x1ddb;super(),this[_0x21a658(0x2e5)]=_0x4708f6,this[_0x21a658(0x412)]=_0x4010e7,this['_collaborationController']=_0x125673,this[_0x21a658(0x2af)]=_0x7e7fa8,this[_0x21a658(0x1db)]=_0x4db10e,q(this,'_status$',new _0x22e98f(_0x342e1d['NOT_COLLAB'])),q(this,_0x21a658(0x441),new Map()),this[_0x21a658(0x32d)](),this['_initStatusListener'](),this[_0x21a658(0x332)]();}[_0x52f5fd(0x3c5)](){const _0x5d8690=_0x52f5fd;this[_0x5d8690(0x441)][_0x5d8690(0x304)](_0x2a0620=>_0x2a0620[_0x5d8690(0x3c5)]()),this['_presenceStatusRegistrations'][_0x5d8690(0x2df)](),this['_status$']['complete'](),super['dispose']();}[_0x52f5fd(0x447)](){const _0x56e34a=_0x52f5fd;this[_0x56e34a(0x3e0)](_0x12f427(this[_0x56e34a(0x2e5)]['focused$'],this[_0x56e34a(0x2e5)][_0x56e34a(0x3a1)](_0x1b1692['UNIVER_DOC']),this[_0x56e34a(0x2e5)][_0x56e34a(0x3a1)](_0x1b1692[_0x56e34a(0x43d)]))[_0x56e34a(0x3c3)](_0x328c1b(()=>on(this[_0x56e34a(0x2e5)])),_0x14d010(),_0x2318c1(_0x40cb3a=>_0x40cb3a?this[_0x56e34a(0x40e)]['getCollabEntity$'](_0x40cb3a):_0x2b4131(null)),_0x2318c1(_0x99b00c=>_0x99b00c?_0x99b00c[_0x56e34a(0x1d8)]:_0x2b4131(_0x342e1d[_0x56e34a(0x40c)])))[_0x56e34a(0x2ea)](_0x26dd9d=>{const _0x35f2e8=_0x56e34a;this['_status$'][_0x35f2e8(0x293)](_0x26dd9d);}));}[_0x52f5fd(0x32d)](){const _0x2e9467=_0x52f5fd;this['disposeWithMe'](this[_0x2e9467(0x2af)][_0x2e9467(0x270)](_0x14210c[_0x2e9467(0x2a1)],()=>_0x1b4da3(sn({'status$':this[_0x2e9467(0x2c6)][_0x2e9467(0x365)]()}),this[_0x2e9467(0x412)])));}[_0x52f5fd(0x332)](){const _0x55ef41=_0x52f5fd;let _0x237940=this[_0x55ef41(0x1db)]['adapters$'][_0x55ef41(0x2ea)](_0x43ef72=>{const _0xc6f868=_0x55ef41;this[_0xc6f868(0x1f1)](_0x43ef72);});this[_0x55ef41(0x3e0)](_0x1a9326(()=>_0x237940['unsubscribe']()));}[_0x52f5fd(0x1f1)](_0x39fe31){const _0x3fce92=_0x52f5fd;let _0x364c01=new Map(_0x39fe31[_0x3fce92(0x22c)](_0x2c0251=>_0x2c0251[_0x3fce92(0x1ef)]!=null)[_0x3fce92(0x306)](_0x47bd32=>[_0x47bd32[_0x3fce92(0x2fc)],_0x47bd32]));this[_0x3fce92(0x441)][_0x3fce92(0x304)]((_0x3688d2,_0xa6a850)=>{const _0x3ddf41=_0x3fce92;_0x364c01[_0x3ddf41(0x2cf)](_0xa6a850)||(_0x3688d2[_0x3ddf41(0x3c5)](),this['_presenceStatusRegistrations'][_0x3ddf41(0x44e)](_0xa6a850));}),_0x364c01[_0x3fce92(0x304)]((_0x3265b3,_0x305658)=>{const _0x2fc0a1=_0x3fce92;this[_0x2fc0a1(0x441)][_0x2fc0a1(0x2cf)](_0x305658)||this[_0x2fc0a1(0x3ff)](_0x3265b3);});}['_registerPresenceStatusComponent'](_0x3a8738){const _0x5ac228=_0x52f5fd;let _0x1a5ca4=_0x3a8738[_0x5ac228(0x1ef)];if(!_0x1a5ca4)return;let _0x3d9961=new _0x350b2a(),_0x307fcf=new _0x22e98f(_0x342e1d[_0x5ac228(0x40c)]);_0x3d9961[_0x5ac228(0x38e)](_0x1a9326(()=>_0x307fcf['complete']())),_0x3d9961[_0x5ac228(0x38e)](this[_0x5ac228(0x2af)][_0x5ac228(0x270)](_0x1a5ca4,()=>_0x1b4da3(sn({'status$':_0x307fcf[_0x5ac228(0x365)]()}),this[_0x5ac228(0x412)])));let _0x36e280=this[_0x5ac228(0x2e5)][_0x5ac228(0x3a1)](_0x3a8738[_0x5ac228(0x2fc)])[_0x5ac228(0x3c3)](_0x328c1b(_0x1a0f2c=>(_0x1a0f2c==null?void 0x0:_0x1a0f2c[_0x5ac228(0x37b)]())??null),_0x14d010(),_0x2318c1(_0x287b23=>_0x287b23?this[_0x5ac228(0x40e)][_0x5ac228(0x268)](_0x287b23):_0x2b4131(null)),_0x2318c1(_0x5bd0ea=>(_0x5bd0ea==null?void 0x0:_0x5bd0ea[_0x5ac228(0x1d8)])??_0x2b4131(_0x342e1d[_0x5ac228(0x40c)])))[_0x5ac228(0x2ea)](_0x177809=>_0x307fcf['next'](_0x177809));_0x3d9961['add'](_0x1a9326(()=>_0x36e280[_0x5ac228(0x220)]())),this[_0x5ac228(0x441)][_0x5ac228(0x2e3)](_0x3a8738[_0x5ac228(0x2fc)],_0x3d9961);}};X=Y([J(0x0,_0x18bd8e),J(0x1,_0x1123ef(_0x1f50b7)),J(0x2,_0x1123ef(_0x1696b1)),J(0x3,_0x2d3d02),J(0x4,_0x1123ef(_0x5e4692))],X);function on(_0x4b1272){const _0x21aa13=_0x52f5fd;let _0x54815c=_0x4b1272[_0x21aa13(0x211)](),_0x78f458=_0x54815c==null?void 0x0:_0x54815c['getUnitId']();if(_0x78f458&&!_0x2e5d4b(_0x78f458))return _0x78f458;let _0x46701f=_0x4b1272[_0x21aa13(0x239)](_0x1b1692['UNIVER_DOC']),_0x3d0b28=_0x46701f==null?void 0x0:_0x46701f[_0x21aa13(0x37b)]();if(_0x3d0b28&&!_0x2e5d4b(_0x3d0b28))return _0x3d0b28;let _0x7c7e80=_0x4b1272[_0x21aa13(0x239)](_0x1b1692[_0x21aa13(0x43d)]);if(_0x7c7e80)return _0x7c7e80[_0x21aa13(0x37b)]();let _0x394d7b=_0x4b1272[_0x21aa13(0x3e9)](_0x1b1692[_0x21aa13(0x40a)])[_0x21aa13(0x36b)](_0x8e1977=>!_0x2e5d4b(_0x8e1977['getUnitId']()));return _0x394d7b?_0x394d7b[_0x21aa13(0x37b)]():null;}function sn(_0x14b010){let {status$:_0x183043}=_0x14b010;return function(){return _0x45e08e(nn,{'status$':_0x183043});};}var cn=_0x52f5fd(0x3fe),ln='1.3.1';const un={'id':_0x52f5fd(0x434),'type':_0x57513d['OPERATION'],'handler':(_0x21185c,_0x287454)=>{const _0x1e59c0=_0x52f5fd;let _0x5e0439=_0x21185c[_0x1e59c0(0x200)](_0x5e4692)[_0x1e59c0(0x200)](_0x287454[_0x1e59c0(0x2fc)]);if(!_0x5e0439)return!0x1;switch(_0x287454[_0x1e59c0(0x221)][_0x1e59c0(0x243)]){case _0x1e59c0(0x2e3):return _0x5e0439[_0x1e59c0(0x381)](_0x287454[_0x1e59c0(0x221)][_0x1e59c0(0x297)]),!0x0;case _0x1e59c0(0x319):return _0x5e0439[_0x1e59c0(0x376)](_0x287454['update'][_0x1e59c0(0x25e)],_0x287454[_0x1e59c0(0x221)][_0x1e59c0(0x2bc)]),!0x0;case _0x1e59c0(0x2df):return _0x5e0439[_0x1e59c0(0x397)](_0x287454[_0x1e59c0(0x221)]['unitId']),!0x0;default:return!0x1;}}},dn={};let fn=class extends _0xcabcc5{constructor(_0x38a6e5,_0x2547ea){const _0x290a99=_0x52f5fd;super(),this[_0x290a99(0x454)]=_0x38a6e5,this[_0x290a99(0x1ff)]=_0x2547ea,this[_0x290a99(0x432)]();}[_0x52f5fd(0x432)](){const _0x75454=_0x52f5fd;let _0x273a60=this;this[_0x75454(0x3e0)](this[_0x75454(0x454)][_0x75454(0x27a)]({'onBeforePasteImage':async _0x6b5540=>{const _0x2f588c=_0x75454;let _0x546d78=await _0x273a60[_0x2f588c(0x1ff)][_0x2f588c(0x364)](_0x6b5540);return _0x546d78?{'source':_0x546d78['source'],'imageSourceType':_0x546d78[_0x2f588c(0x225)]}:null;}}));}};fn=Y([J(0x0,_0x315686),J(0x1,_0xf6fd93)],fn);const pn=[_0x52f5fd(0x313),_0x52f5fd(0x218),_0x52f5fd(0x1fd),_0x52f5fd(0x3fd),_0x52f5fd(0x3ce),_0x52f5fd(0x33e)];var mn=class extends _0x200dbf{constructor(..._0xb16a2e){const _0x38feb9=_0x52f5fd;super(..._0xb16a2e),q(this,_0x38feb9(0x3a3),new Map()),q(this,_0x38feb9(0x1fc),0x0);}['assignAColorForMemberID'](_0x1928a9){const _0x437d72=_0x52f5fd;if(this['_assignedColors'][_0x437d72(0x2cf)](_0x1928a9))return this[_0x437d72(0x3a3)]['get'](_0x1928a9);let _0x27abd4=pn[this[_0x437d72(0x1fc)]];return this[_0x437d72(0x1fc)]=(this['_colorIndex']+0x1)%pn['length'],this[_0x437d72(0x3a3)]['set'](_0x1928a9,_0x27abd4),_0x27abd4;}};function hn(_0x437c19){let _0x289e8e='';for(let _0x5ba2f2 of _0x437c19){let {startOffset:_0x5decf1,endOffset:_0x5cd621,isActive:_0x22e93e,rangeType:_0x2ca659,segmentId:_0x29e504,segmentPage:_0x22edb4}=_0x5ba2f2;_0x289e8e['length']&&(_0x289e8e+=','),_0x289e8e+=_0x5decf1+':'+_0x5cd621+':'+(_0x22e93e?'1':'0')+':'+_0x2ca659+':'+_0x29e504+':'+_0x22edb4;}return _0x289e8e;}function gn(_0x3829ee){const _0x22c3ef=_0x52f5fd;let _0x5be2b6=_0x3829ee[_0x22c3ef(0x24b)](','),_0x598c13=[];for(let _0x441da5 of _0x5be2b6){let [_0x4f2132,_0x267ac8,_0x153525,_0x17eeff,_0x317357,_0x235dfe]=_0x441da5['split'](':');_0x598c13[_0x22c3ef(0x44a)]({'startOffset':Number(_0x4f2132),'endOffset':Number(_0x267ac8),'collapsed':_0x4f2132===_0x267ac8,'isActive':_0x153525==='1','rangeType':_0x17eeff===_0xa92b7c['TEXT']?_0xa92b7c[_0x22c3ef(0x3d7)]:_0xa92b7c[_0x22c3ef(0x36f)],'segmentId':typeof _0x317357=='string'?String(_0x317357):'','segmentPage':Number(_0x235dfe??-0x1)});}return _0x598c13[_0x22c3ef(0x44c)](_0x411b18=>_0x411b18[_0x22c3ef(0x246)])||(_0x598c13[0x0]['isActive']=!0x0),_0x598c13;}var _n=class extends _0xcabcc5{constructor(..._0x2b0a6c){const _0x733b2=_0x52f5fd;super(..._0x2b0a6c),q(this,_0x733b2(0x3fb),new _0x22e98f(null)),q(this,'collabCursorState$',this[_0x733b2(0x3fb)][_0x733b2(0x365)]());}[_0x52f5fd(0x2fd)](_0x45e4c3){const _0x1e6505=_0x52f5fd;let {unitID:_0x2b83dc,memberID:_0x2b96bc,textRanges:_0x4db6cb}=_0x45e4c3,_0x4bc446=hn(_0x4db6cb);if(_0x4bc446==='')return;let _0x4b1f22={'unitID':_0x2b83dc,'memberID':_0x2b96bc,'selection':_0x4bc446};this[_0x1e6505(0x3fb)][_0x1e6505(0x293)](_0x4b1f22);}};let vn=class extends _0xcabcc5{get[_0x52f5fd(0x3ac)](){const _0x4fd201=_0x52f5fd;return this['_cursorInfo$'][_0x4fd201(0x294)]();}get[_0x52f5fd(0x317)](){const _0x370b99=_0x52f5fd;return this[_0x370b99(0x42f)][_0x370b99(0x294)]();}constructor(_0x33c7df,_0x170f96,_0x3f95f0,_0x17345d,_0x2619d1,_0x398829,_0x547376,_0x1d4af5,_0x151192){const _0x5664fa=_0x52f5fd;super(),this[_0x5664fa(0x237)]=_0x33c7df,this['_session']=_0x170f96,this[_0x5664fa(0x412)]=_0x3f95f0,this['_colorAssignService']=_0x17345d,this['_memberService']=_0x2619d1,this[_0x5664fa(0x387)]=_0x398829,this[_0x5664fa(0x2e7)]=_0x547376,this['_univerInstanceService']=_0x1d4af5,this[_0x5664fa(0x38b)]=_0x151192,q(this,_0x5664fa(0x2ee),!0x1),q(this,_0x5664fa(0x432),!0x1),q(this,_0x5664fa(0x1f6),new _0x22e98f(new Map())),q(this,_0x5664fa(0x301),this[_0x5664fa(0x1f6)]['asObservable']()),q(this,_0x5664fa(0x42f),new _0x22e98f([])),q(this,_0x5664fa(0x3df),this['_roomMembers$'][_0x5664fa(0x3c3)](_0x231af4(0x12c))),q(this,_0x5664fa(0x1dd),_0x396a39(_0x2f0ca9=>{const _0x524f74=_0x5664fa;let _0x5c3dae={'eventID':_0x1aebdc['UPDATE_CURSOR'],'data':{'unitID':this[_0x524f74(0x237)],'memberID':this[_0x524f74(0x236)][_0x524f74(0x378)](),'selection':hn(_0x2f0ca9)}};this[_0x524f74(0x236)][_0x524f74(0x377)](_0x5c3dae,this['unitID']);},0x64));}['dispose'](){const _0x1fb956=_0x52f5fd;super['dispose'](),this[_0x1fb956(0x1f6)][_0x1fb956(0x293)](new Map()),this[_0x1fb956(0x1f6)][_0x1fb956(0x384)](),this[_0x1fb956(0x42f)][_0x1fb956(0x293)]([]),this[_0x1fb956(0x42f)]['complete']();}[_0x52f5fd(0x38c)](){const _0x169d68=_0x52f5fd;this[_0x169d68(0x432)]||(this[_0x169d68(0x432)]=!0x0,this[_0x169d68(0x236)]['sessionStatus$']['pipe'](_0x2acb3a(this[_0x169d68(0x3a4)]))[_0x169d68(0x2ea)](_0xede2d0=>{const _0x47ec40=_0x169d68;_0xede2d0===_0x12d017['ONLINE']?this['_toggleOnline']():this[_0x47ec40(0x3c1)]();}),this[_0x169d68(0x236)][_0x169d68(0x23e)]['pipe'](_0x2acb3a(this[_0x169d68(0x3a4)]))[_0x169d68(0x2ea)](_0x88c877=>{const _0x499bf8=_0x169d68;let _0x3c17b8=_0x88c877[_0x499bf8(0x31b)];_0x3c17b8===_0x1aebdc[_0x499bf8(0x28e)]&&this['_onCursorUpdate'](_0x88c877),_0x3c17b8===_0x1aebdc[_0x499bf8(0x1e8)]&&this[_0x499bf8(0x3a9)](_0x88c877);}),this[_0x169d68(0x3e0)](this[_0x169d68(0x38b)]['onCommandExecuted'](_0x579213=>{const _0x47be96=_0x169d68;let _0x3dc37c=_0x579213[_0x47be96(0x1d3)];_0x3dc37c!=null&&this['_online']&&_0x579213['id']===_0x489094['id']&&_0x3dc37c[_0x47be96(0x25e)]===this[_0x47be96(0x237)]&&_0x3dc37c['isEditing']===!0x1&&_0x3dc37c[_0x47be96(0x309)][_0x47be96(0x26b)]>0x0&&this[_0x47be96(0x1dd)](_0x3dc37c[_0x47be96(0x309)]);})),this[_0x169d68(0x387)]['collabCursorState$'][_0x169d68(0x3c3)](_0x2acb3a(this['dispose$']))[_0x169d68(0x2ea)](_0x38ca87=>{const _0x2a51af=_0x169d68;if((_0x38ca87==null?void 0x0:_0x38ca87[_0x2a51af(0x237)])!==this[_0x2a51af(0x237)])return;let _0x155197={'eventID':_0x1aebdc[_0x2a51af(0x28e)],'data':_0x38ca87};this[_0x2a51af(0x2ac)](_0x155197);}),this[_0x169d68(0x3e0)](this[_0x169d68(0x38b)][_0x169d68(0x2aa)](_0x181241=>{const _0xf7398f=_0x169d68;if(_0x181241[_0xf7398f(0x1d3)]==null)return;let _0x17b419=_0x181241[_0xf7398f(0x1d3)];if(_0x181241['id']!==_0x290fd3['id']||_0x17b419[_0xf7398f(0x25e)]!==this[_0xf7398f(0x237)])return;let _0x15b4dd={'id':_0xf7398f(0x26d),'params':_0x17b419},_0x42ef56=this['cursorInfo'];for(let [_0x38b666,_0x3bc84b]of _0x42ef56){let _0x373cf0={'id':_0xf7398f(0x26d),'params':{'unitId':this[_0xf7398f(0x237)],'actions':null,'textRanges':_0x3bc84b['ranges']}},_0x4315c3=this[_0xf7398f(0x2e7)][_0xf7398f(0x2a9)](_0x15b4dd,_0x373cf0,!0x1);if(_0x36dbeb(_0x4315c3))throw _0x4315c3[_0xf7398f(0x37f)];_0x42ef56['set'](_0x38b666,{..._0x3bc84b,'ranges':_0x4315c3['m2Prime']['params'][_0xf7398f(0x323)]});}queueMicrotask(()=>{const _0x1feb58=_0xf7398f;this[_0x1feb58(0x1f6)]['next'](_0x42ef56);});})));}['_onCursorUpdate'](_0x34f57a){const _0x1c65dc=_0x52f5fd;var _0x44667d;let {memberID:_0x287b2c,selection:_0x316f1a}=_0x34f57a[_0x1c65dc(0x338)],_0x5e4450=gn(_0x316f1a),_0x4aca83=((_0x44667d=this[_0x1c65dc(0x2b6)]['getMember'](this[_0x1c65dc(0x237)],_0x287b2c))==null?void 0x0:_0x44667d[_0x1c65dc(0x20f)])??_0x1c65dc(0x3f0),_0x15c159={'color':this[_0x1c65dc(0x37a)]['assignAColorForMemberID'](_0x287b2c),'name':_0x4aca83,'ranges':_0x5e4450},_0x2a04ad=this['cursorInfo'];_0x2a04ad['set'](_0x287b2c,_0x15c159),this['_cursorInfo$'][_0x1c65dc(0x293)](_0x2a04ad);}[_0x52f5fd(0x3a9)](_0x3496d2){const _0x1eb7d1=_0x52f5fd;let {memberID:_0x285d7f}=_0x3496d2[_0x1eb7d1(0x338)],_0x510072=this[_0x1eb7d1(0x3ac)];_0x510072[_0x1eb7d1(0x44e)](_0x285d7f),this[_0x1eb7d1(0x1f6)]['next'](_0x510072);}[_0x52f5fd(0x36a)](){const _0x187ce0=_0x52f5fd;var _0x37d65f;if(this[_0x187ce0(0x2ee)]=!0x0,((_0x37d65f=this[_0x187ce0(0x2e5)][_0x187ce0(0x211)]())==null?void 0x0:_0x37d65f[_0x187ce0(0x37b)]())!==this['unitID'])return;let _0x27f78f=this[_0x187ce0(0x412)][_0x187ce0(0x200)](_0x10c16a)[_0x187ce0(0x335)]();Array[_0x187ce0(0x3e8)](_0x27f78f)&&_0x27f78f[_0x187ce0(0x26b)]>0x0&&this[_0x187ce0(0x1dd)](_0x27f78f);}[_0x52f5fd(0x3c1)](){const _0x5156d6=_0x52f5fd;this[_0x5156d6(0x2ee)]=!0x1;}};vn=Y([J(0x2,_0x1123ef(_0x1f50b7)),J(0x3,_0x1123ef(mn)),J(0x4,_0x1123ef(_0xbf8ec6)),J(0x5,_0x1123ef(_n)),J(0x6,_0x41fd3c),J(0x7,_0x18bd8e),J(0x8,_0x146f3e)],vn);const yn=()=>{let _0x354b68=[],_0x3bbc60=!0x1;return _0x5cd78a=>{const _0x18e697=_0x1ddb;_0x354b68[_0x18e697(0x44a)](_0x5cd78a),_0x3bbc60||(_0x3bbc60=!0x0,setTimeout(()=>{const _0x317ed0=_0x18e697;_0x354b68[_0x317ed0(0x304)](_0x124d41=>_0x124d41()),_0x354b68=[],_0x3bbc60=!0x1;}));};};let bn=class extends _0xcabcc5{get['cursorInfo'](){const _0x401d6d=_0x52f5fd;return this[_0x401d6d(0x1f6)][_0x401d6d(0x294)]();}get[_0x52f5fd(0x317)](){const _0x5a1a79=_0x52f5fd;return this[_0x5a1a79(0x42f)][_0x5a1a79(0x294)]();}constructor(_0x1790dd,_0x2db982,_0x4e5bc6,_0x131d36,_0x2131ec,_0x12d578,_0x211827,_0x16f8a0){const _0x27f9f1=_0x52f5fd;super(),this[_0x27f9f1(0x237)]=_0x1790dd,this[_0x27f9f1(0x236)]=_0x2db982,this['_injector']=_0x4e5bc6,this[_0x27f9f1(0x37a)]=_0x131d36,this[_0x27f9f1(0x2b6)]=_0x2131ec,this[_0x27f9f1(0x2e5)]=_0x12d578,this['_commandService']=_0x211827,this[_0x27f9f1(0x400)]=_0x16f8a0,q(this,_0x27f9f1(0x2ee),!0x1),q(this,_0x27f9f1(0x432),!0x1),q(this,'_cursorInfo$',new _0x22e98f(new Map())),q(this,'cursorInfo$',this[_0x27f9f1(0x1f6)][_0x27f9f1(0x365)]()),q(this,_0x27f9f1(0x42f),new _0x22e98f([])),q(this,_0x27f9f1(0x3df),this[_0x27f9f1(0x42f)][_0x27f9f1(0x3c3)](_0x231af4(0x12c))),q(this,_0x27f9f1(0x1dd),_0x396a39((_0x2233b2,_0x503d6f)=>{const _0x5b3ca9=_0x27f9f1;let _0x1cd56e={'eventID':_0x1aebdc[_0x5b3ca9(0x28e)],'data':{'unitID':this['unitID'],'memberID':this[_0x5b3ca9(0x236)][_0x5b3ca9(0x378)](),'selection':_0x1ffec9(_0x2233b2,_0x503d6f[_0x5b3ca9(0x3b4)])}};this[_0x5b3ca9(0x236)][_0x5b3ca9(0x377)](_0x1cd56e,this[_0x5b3ca9(0x237)]);},0x64));}[_0x52f5fd(0x3c5)](){const _0x4b6d4b=_0x52f5fd;super[_0x4b6d4b(0x3c5)](),this[_0x4b6d4b(0x1f6)][_0x4b6d4b(0x293)](new Map()),this[_0x4b6d4b(0x1f6)][_0x4b6d4b(0x384)](),this['_roomMembers$'][_0x4b6d4b(0x293)]([]),this[_0x4b6d4b(0x42f)][_0x4b6d4b(0x384)]();}[_0x52f5fd(0x38c)](){const _0x1d9de5=_0x52f5fd;this[_0x1d9de5(0x432)]||(this[_0x1d9de5(0x432)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x2acb3a(this[_0x1d9de5(0x3a4)]))[_0x1d9de5(0x2ea)](_0x59f60e=>{const _0x3ee58d=_0x1d9de5;_0x59f60e===_0x12d017['ONLINE']?this[_0x3ee58d(0x36a)]():this[_0x3ee58d(0x3c1)]();}),this[_0x1d9de5(0x236)][_0x1d9de5(0x23e)]['pipe'](_0x2acb3a(this[_0x1d9de5(0x3a4)]))[_0x1d9de5(0x2ea)](_0x3ce2ab=>{const _0x3b176f=_0x1d9de5;let _0x4e1c9e=_0x3ce2ab[_0x3b176f(0x31b)];_0x4e1c9e===_0x1aebdc[_0x3b176f(0x28e)]&&this[_0x3b176f(0x2ac)](_0x3ce2ab),_0x4e1c9e===_0x1aebdc[_0x3b176f(0x1e8)]&&this[_0x3b176f(0x3a9)](_0x3ce2ab);}),this['_onRefRangeChange'](),this[_0x1d9de5(0x3e0)](this[_0x1d9de5(0x38b)]['onCommandExecuted'](_0x1a381e=>{const _0x210fbb=_0x1d9de5;if(this[_0x210fbb(0x2ee)]&&_0x1a381e['id']===_0x1c2272['id']&&_0x1a381e['params'][_0x210fbb(0x25e)]===this[_0x210fbb(0x237)]){let _0x356934=_0x1a381e[_0x210fbb(0x1d3)];this[_0x210fbb(0x1dd)](_0x356934['subUnitId'],_0x356934[_0x210fbb(0x43a)][0x0]);}})));}[_0x52f5fd(0x2ac)](_0x3a3718){const _0x413bb4=_0x52f5fd;var _0x11f4d6;let {memberID:_0x39a3bf,selection:_0xc25477}=_0x3a3718[_0x413bb4(0x338)],{sheetName:_0x4471f9,range:_0x5d090e}=_0x4d4c31(_0xc25477),_0xe3e114={'name':((_0x11f4d6=this[_0x413bb4(0x2b6)][_0x413bb4(0x265)](this[_0x413bb4(0x237)],_0x39a3bf))==null?void 0x0:_0x11f4d6['name'])??_0x413bb4(0x3f0),'range':this[_0x413bb4(0x3b5)](_0x4471f9,_0x5d090e),'sheetID':_0x4471f9,'color':this[_0x413bb4(0x37a)]['assignAColorForMemberID'](_0x39a3bf),'selection':_0xc25477},_0x38a7c5=this[_0x413bb4(0x3ac)];_0x38a7c5[_0x413bb4(0x2e3)](_0x39a3bf,_0xe3e114),this[_0x413bb4(0x1f6)][_0x413bb4(0x293)](_0x38a7c5);}[_0x52f5fd(0x3a9)](_0xb0e696){const _0x3bf644=_0x52f5fd;let {memberID:_0x433869}=_0xb0e696['data'],_0x41939b=this[_0x3bf644(0x3ac)];_0x41939b[_0x3bf644(0x44e)](_0x433869),this[_0x3bf644(0x1f6)][_0x3bf644(0x293)](_0x41939b);}[_0x52f5fd(0x3b5)](_0x513bca,_0x103fc6){const _0x2358d5=_0x52f5fd;var _0x56ec8e;let _0x3ad175=(_0x56ec8e=this['_univerInstanceService'][_0x2358d5(0x3e1)](this[_0x2358d5(0x237)],_0x1b1692[_0x2358d5(0x43d)]))==null||(_0x56ec8e=_0x56ec8e[_0x2358d5(0x40b)](_0x513bca))==null?void 0x0:_0x56ec8e[_0x2358d5(0x2d4)]();return(_0x3ad175==null?void 0x0:_0x3ad175[_0x2358d5(0x36b)](_0x35feca=>_0x54f2dd[_0x2358d5(0x23b)](_0x35feca,_0x103fc6)))||_0x103fc6;}[_0x52f5fd(0x287)](){const _0x19f3ab=_0x52f5fd;let _0x266302=new _0x350b2a(),_0x52cf38=yn(),_0x5d34e1=()=>{const _0x4c4b43=_0x1ddb;_0x266302['dispose']();let _0x40b746=(_0x25b222,_0x28b7ed,_0x33c010,_0x269dfd)=>{const _0x5d7884=_0x1ddb;let _0x12700c=[];switch(_0x25b222['id']){case _0x5bd0ef[_0x5d7884(0x2e2)]:_0x12700c=_0x22f4e8(_0x25b222,_0x269dfd);break;case _0x5bd0ef[_0x5d7884(0x20c)]:_0x12700c=_0xd9bc0b(_0x25b222,_0x269dfd);break;case _0x5bd0ef[_0x5d7884(0x2a7)]:_0x12700c=_0x2ae8e3(_0x25b222,_0x269dfd);break;case _0x5bd0ef[_0x5d7884(0x267)]:_0x12700c=_0x58ade1(_0x25b222,_0x269dfd);break;case _0x5bd0ef[_0x5d7884(0x23d)]:_0x12700c=_0xfd5af3(_0x25b222,_0x269dfd);break;case _0x5bd0ef[_0x5d7884(0x1e5)]:_0x12700c=_0x20e45a(_0x25b222,_0x269dfd);break;case _0x5bd0ef[_0x5d7884(0x401)]:_0x12700c=_0x21c388(_0x25b222,_0x269dfd);break;case _0x5bd0ef[_0x5d7884(0x3c6)]:_0x12700c=_0x425dd8(_0x25b222,_0x269dfd);break;case _0x5bd0ef['RemoveRowCommandId']:_0x12700c=_0x1961b2(_0x25b222,_0x269dfd);}let _0x2b83fd=_0x500f5b(_0x12700c,_0x269dfd),_0x56a2b0=this['cursorInfo'][_0x5d7884(0x200)](_0x28b7ed);if(_0x56a2b0&&_0x2b83fd){let _0x2ea171={..._0x56a2b0,'range':_0x2b83fd};this[_0x5d7884(0x3ac)][_0x5d7884(0x2e3)](_0x28b7ed,_0x2ea171),_0x52cf38(()=>{const _0x1705a8=_0x5d7884;let _0x1ea588=this[_0x1705a8(0x400)]['registerRefRange'](_0x2b83fd,_0x5de84c=>(_0x1ea588[_0x1705a8(0x3c5)](),_0x40b746(_0x5de84c,_0x28b7ed,_0x33c010,_0x2b83fd)));_0x266302[_0x1705a8(0x38e)](_0x1ea588);});}return{'redos':[],'undos':[]};};this[_0x4c4b43(0x3ac)][_0x4c4b43(0x304)]((_0x303e5d,_0x4a61ea)=>{const _0x17358e=_0x4c4b43;let {range:_0x59d3d7,sheetID:_0x10d093}=_0x303e5d,_0x1f4d5c=this['_refRangeService'][_0x17358e(0x43b)](_0x59d3d7,_0x27d12a=>(_0x1f4d5c[_0x17358e(0x3c5)](),_0x40b746(_0x27d12a,_0x4a61ea,_0x10d093,_0x59d3d7)));_0x266302[_0x17358e(0x38e)](_0x1f4d5c);});};this[_0x19f3ab(0x3e0)](_0x1a9326(this[_0x19f3ab(0x1f6)]['subscribe'](()=>{_0x5d34e1();})));}[_0x52f5fd(0x36a)](){const _0x73e31d=_0x52f5fd;var _0x357f50,_0x195bb8;if(this[_0x73e31d(0x2ee)]=!0x0,((_0x357f50=this[_0x73e31d(0x2e5)][_0x73e31d(0x211)]())==null?void 0x0:_0x357f50[_0x73e31d(0x37b)]())!==this[_0x73e31d(0x237)])return;let _0x3c85ae=(_0x195bb8=this[_0x73e31d(0x412)]['get'](_0x146fb2)['getCurrentSelections']())==null?void 0x0:_0x195bb8[0x0],_0x2b94c5=this[_0x73e31d(0x2e5)][_0x73e31d(0x239)](_0x1b1692[_0x73e31d(0x43d)])[_0x73e31d(0x3e5)]();_0x3c85ae&&_0x2b94c5&&this[_0x73e31d(0x1dd)](_0x2b94c5[_0x73e31d(0x2d0)](),_0x3c85ae);}['_toggleOffline'](){const _0x56da33=_0x52f5fd;this[_0x56da33(0x2ee)]=!0x1;}};bn=Y([J(0x2,_0x1123ef(_0x1f50b7)),J(0x3,_0x1123ef(mn)),J(0x4,_0x1123ef(_0xbf8ec6)),J(0x5,_0x18bd8e),J(0x6,_0x146f3e),J(0x7,_0x1123ef(_0x24a194))],bn);let Z=class extends _0xcabcc5{constructor(_0x157635,_0x981539,_0x23df68){const _0xc9b0ac=_0x52f5fd;super(),this[_0xc9b0ac(0x2e5)]=_0x157635,this[_0xc9b0ac(0x412)]=_0x981539,this[_0xc9b0ac(0x20d)]=_0x23df68,q(this,_0xc9b0ac(0x342),new Map()),q(this,_0xc9b0ac(0x38a),new _0x2f5c0b()),this[_0xc9b0ac(0x432)]();}[_0x52f5fd(0x3c5)](){const _0x246a3e=_0x52f5fd;super[_0x246a3e(0x3c5)](),this[_0x246a3e(0x38a)]['complete'](),this[_0x246a3e(0x342)][_0x246a3e(0x304)](_0x4fd4f2=>_0x4fd4f2[_0x246a3e(0x3c5)]());}[_0x52f5fd(0x219)](_0x1292e3){const _0x4a9f4c=_0x52f5fd;let _0x2751a4=this[_0x4a9f4c(0x342)][_0x4a9f4c(0x200)](_0x1292e3);return _0x2751a4?_0x2751a4[_0x4a9f4c(0x301)]:this[_0x4a9f4c(0x38a)][_0x4a9f4c(0x3c3)](_0x45db35(_0x4e63e0=>_0x4e63e0[_0x4a9f4c(0x237)]===_0x1292e3),_0x2318c1(_0x197cd4=>_0x197cd4[_0x4a9f4c(0x301)]));}[_0x52f5fd(0x432)](){const _0x3f3ef2=_0x52f5fd;this[_0x3f3ef2(0x2e5)][_0x3f3ef2(0x44f)](_0x1b1692['UNIVER_SHEET'])[_0x3f3ef2(0x3c3)](_0x2acb3a(this[_0x3f3ef2(0x3a4)]))['subscribe'](async _0x92a3f6=>{const _0x13772a=_0x3f3ef2;let _0x47d5c4=_0x92a3f6[_0x13772a(0x3f6)][_0x13772a(0x37b)](),_0x46007f=await this[_0x13772a(0x3e4)](_0x47d5c4);this[_0x13772a(0x38a)][_0x13772a(0x293)](_0x46007f),this[_0x13772a(0x342)][_0x13772a(0x2e3)](_0x47d5c4,_0x46007f);}),this[_0x3f3ef2(0x2e5)][_0x3f3ef2(0x44f)](_0x1b1692[_0x3f3ef2(0x40a)])[_0x3f3ef2(0x3c3)](_0x2acb3a(this['dispose$']))['pipe'](_0x45db35(_0x1935c1=>!_0x1935c1[_0x3f3ef2(0x3f6)][_0x3f3ef2(0x37b)]()['startsWith']('__')))['subscribe'](async _0x28be19=>{const _0x69bf01=_0x3f3ef2;let {unit:_0x523504}=_0x28be19,_0x12a016=_0x523504['getUnitId'](),_0x20257e=await this['_startDocCollabCursor'](_0x12a016);this['_entityInit$']['next'](_0x20257e),this[_0x69bf01(0x342)][_0x69bf01(0x2e3)](_0x12a016,_0x20257e);}),_0x12f427(this[_0x3f3ef2(0x2e5)][_0x3f3ef2(0x442)](_0x1b1692[_0x3f3ef2(0x40a)]),this['_univerInstanceService'][_0x3f3ef2(0x442)](_0x1b1692['UNIVER_SHEET']))[_0x3f3ef2(0x3c3)](_0x2acb3a(this[_0x3f3ef2(0x3a4)]))[_0x3f3ef2(0x2ea)](_0x1341fc=>{const _0x8ac30b=_0x3f3ef2;let _0x25985a=_0x1341fc[_0x8ac30b(0x37b)](),_0x567247=this['_entities']['get'](_0x25985a);_0x567247&&(_0x567247[_0x8ac30b(0x3c5)](),this[_0x8ac30b(0x342)][_0x8ac30b(0x44e)](_0x25985a));});}async['_startSheetCollabCursor'](_0x209ec9){const _0x44e75e=_0x52f5fd;let _0xe68a6e=await this[_0x44e75e(0x20d)]['requireSession'](_0x209ec9),_0x45b21c=this[_0x44e75e(0x412)][_0x44e75e(0x408)](bn,_0x209ec9,_0xe68a6e);return _0x45b21c[_0x44e75e(0x38c)](),_0x45b21c;}async['_startDocCollabCursor'](_0x18a49a){const _0x2af4f3=_0x52f5fd;let _0xc43ce6=await this['_collabSessionService'][_0x2af4f3(0x3a6)](_0x18a49a),_0x493296=this['_injector'][_0x2af4f3(0x408)](vn,_0x18a49a,_0xc43ce6);return _0x493296[_0x2af4f3(0x38c)](),_0x493296;}};Z=Y([J(0x0,_0x18bd8e),J(0x1,_0x1123ef(_0x1f50b7)),J(0x2,_0x1123ef(_0x27b258))],Z);function xn(_0x2ea2ef,_0x426e4b){const _0x504978=_0x52f5fd;_0x2ea2ef[_0x504978(0x322)](),_0x2ea2ef['font']=_0x504978(0x35d);let _0x8281c=_0x2ea2ef[_0x504978(0x357)](_0x426e4b)[_0x504978(0x1e7)];return _0x2ea2ef[_0x504978(0x3bf)](),Math[_0x504978(0x20e)](_0x8281c+0x8,0xc8);}function Sn(_0x235f13,_0xa22576){const _0x1b0aa6=_0x52f5fd;let {radius:_0x53a711,width:_0x1c3c07,height:_0x9ac5f3}=_0xa22576;_0x53a711??=0x0,_0x1c3c07??=0x1e,_0x9ac5f3??=0x1e;let _0x5cb5aa=0x0,_0x569de0=0x0,_0x5d4233=0x0;_0x5cb5aa=_0x569de0=_0x5d4233=Math[_0x1b0aa6(0x20e)](_0x53a711,_0x1c3c07/0x2,_0x9ac5f3/0x2),_0x235f13['beginPath'](),_0x235f13[_0x1b0aa6(0x1f3)](_0x5cb5aa,0x0),_0x235f13['lineTo'](_0x1c3c07-_0x569de0,0x0),_0x235f13[_0x1b0aa6(0x266)](_0x1c3c07-_0x569de0,_0x569de0,_0x569de0,Math['PI']*0x3/0x2,0x0,!0x1),_0x235f13[_0x1b0aa6(0x21d)](_0x1c3c07,_0x9ac5f3-_0x5d4233),_0x235f13[_0x1b0aa6(0x266)](_0x1c3c07-_0x5d4233,_0x9ac5f3-_0x5d4233,_0x5d4233,0x0,Math['PI']/0x2,!0x1),_0x235f13['lineTo'](0x0,_0x9ac5f3),_0x235f13[_0x1b0aa6(0x21d)](0x0,_0x5cb5aa),_0x235f13[_0x1b0aa6(0x266)](_0x5cb5aa,_0x5cb5aa,_0x5cb5aa,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x235f13['closePath'](),_0xa22576[_0x1b0aa6(0x352)]&&(_0x235f13[_0x1b0aa6(0x322)](),_0x235f13[_0x1b0aa6(0x3cf)]=_0xa22576[_0x1b0aa6(0x352)],_0xa22576[_0x1b0aa6(0x1d4)]===_0x1b0aa6(0x2ad)?_0x235f13['fill']('evenodd'):_0x235f13[_0x1b0aa6(0x352)](),_0x235f13[_0x1b0aa6(0x3bf)]());}var Cn=class e extends _0x2566c0{constructor(_0x41b88b,_0x3f5739){const _0x13a8cb=_0x52f5fd;super(_0x41b88b,_0x3f5739),q(this,_0x13a8cb(0x31a),void 0x0),q(this,_0x13a8cb(0x3b0),void 0x0),this[_0x13a8cb(0x31a)]=_0x3f5739==null?void 0x0:_0x3f5739['color'],this[_0x13a8cb(0x3b0)]=_0x3f5739==null?void 0x0:_0x3f5739[_0x13a8cb(0x3b0)];}static[_0x52f5fd(0x1ec)](_0x405e1f,_0x1eb214){const _0x89a592=_0x52f5fd;let {text:_0x539131,color:_0xacb396}=_0x1eb214;_0x405e1f[_0x89a592(0x322)](),_0x405e1f['font']=_0x89a592(0x3b7);let _0x560e87=_0x405e1f[_0x89a592(0x357)](_0x539131)[_0x89a592(0x1e7)];if(Sn(_0x405e1f,{'height':0x14,'radius':0x4,'width':xn(_0x405e1f,_0x539131),'fill':_0xacb396,'evented':!0x1}),_0x405e1f[_0x89a592(0x3cf)]=_0x89a592(0x23a),_0x560e87>0xc0){let _0x47d03e='',_0x11d794=0x0;for(let _0xd799c3 of _0x539131){let _0x22c12d=_0x405e1f['measureText'](_0xd799c3)[_0x89a592(0x1e7)];if(_0x11d794+_0x22c12d<=0xc0-_0x405e1f[_0x89a592(0x357)]('...')[_0x89a592(0x1e7)])_0x47d03e+=_0xd799c3,_0x11d794+=_0x22c12d;else{_0x47d03e+=_0x89a592(0x258);break;}}_0x405e1f[_0x89a592(0x3aa)](_0x47d03e,0x4,0xf);}else _0x405e1f[_0x89a592(0x3aa)](_0x539131,0x4,0xf);_0x405e1f[_0x89a592(0x3bf)]();}[_0x52f5fd(0x457)](_0xbcba57){const _0x1d1f82=_0x52f5fd;e[_0x1d1f82(0x1ec)](_0xbcba57,this);}};const wn=_0x52f5fd(0x2ff);var Tn=class{constructor(_0x5d0445,_0x6ffe5a,_0x1138f7,_0x47f9cc){const _0x4b3447=_0x52f5fd;this[_0x4b3447(0x281)]=_0x5d0445,this[_0x4b3447(0x371)]=_0x6ffe5a,this[_0x4b3447(0x340)]=_0x1138f7,this[_0x4b3447(0x326)]=_0x47f9cc,q(this,'_shapes',[]),q(this,_0x4b3447(0x450),null),q(this,_0x4b3447(0x41e),null),q(this,'_anchorDot',null),q(this,_0x4b3447(0x2fe),null),q(this,'_eventUnsubscribe',null),this['_render']();}set[_0x52f5fd(0x347)](_0x12dc4d){const _0x63e79e=_0x52f5fd;_0x12dc4d?(this['_anchorDot']&&this[_0x63e79e(0x312)][_0x63e79e(0x35f)](),this[_0x63e79e(0x41e)]&&this[_0x63e79e(0x41e)][_0x63e79e(0x2f4)]()):(this[_0x63e79e(0x312)]&&this['_anchorDot']['show'](),this[_0x63e79e(0x41e)]&&this[_0x63e79e(0x41e)][_0x63e79e(0x35f)]());}[_0x52f5fd(0x3c5)](){const _0xe481b6=_0x52f5fd;for(let _0x4acc07 of this['_shapes'])_0x4acc07['dispose']();this[_0xe481b6(0x41e)]&&this[_0xe481b6(0x41e)][_0xe481b6(0x3c5)](),this['_anchorDot']&&this[_0xe481b6(0x312)][_0xe481b6(0x3c5)](),this['_anchor']&&this[_0xe481b6(0x450)][_0xe481b6(0x3c5)](),this[_0xe481b6(0x29d)]&&this[_0xe481b6(0x29d)]();}[_0x52f5fd(0x2d5)](){const _0x27103b=_0x52f5fd;let {_docSkeleton:_0x4aa0fd,_document:_0x3735fa}=this,{color:_0x1dd9ac,name:_0x4d78c3,ranges:_0x46f092}=this[_0x27103b(0x281)],_0x35565f=_0x3735fa[_0x27103b(0x43f)](),{docsLeft:_0x415504,docsTop:_0x3007eb}=_0x35565f,_0x32b26f=new _0x3444dd(_0x35565f,_0x4aa0fd);for(let {startOffset:_0x947401,endOffset:_0x21480f,rangeType:_0x3e6818,segmentId:_0x48b42a,segmentPage:_0x352cca,collapsed:_0x5a983a,isActive:_0x17aaa8}of _0x46f092){let _0x1b5c36=_0x4aa0fd[_0x27103b(0x3c8)](_0x947401,!0x0,_0x48b42a,_0x352cca),_0xcb07e6=_0x4aa0fd[_0x27103b(0x3c8)](_0x21480f,!0x0,_0x48b42a,_0x352cca);_0xcb07e6??=_0x4aa0fd[_0x27103b(0x3c8)](_0x21480f-0x1,!0x1,_0x48b42a,_0x352cca);let _0x2df382=En(_0x1b5c36,_0xcb07e6);if(_0x17aaa8&&_0x2df382['canRenderAnchor']){let {contentBoxPointGroup:_0x177dcf}=_0x32b26f[_0x27103b(0x21a)](_0xcb07e6,_0xcb07e6);if(_0x177dcf[_0x27103b(0x26b)]===0x0)continue;this['_drawAnchor'](_0x1dd9ac,_0x177dcf,_0x415504,_0x3007eb,_0x4d78c3),this[_0x27103b(0x29d)]=this['_handleHover']();}if(_0x1b5c36&&_0xcb07e6){if(_0x3e6818===_0xa92b7c[_0x27103b(0x36f)]){let {pointGroup:_0x4ff948}=new _0x5b31e0(_0x35565f,_0x4aa0fd)['getRangePointData'](_0x1b5c36,_0xcb07e6)??{};if(_0x4ff948==null||_0x4ff948[_0x27103b(0x26b)]===0x0)continue;this['_drawRectRange'](_0x1dd9ac,_0x4ff948,_0x415504,_0x3007eb);}else{if(!_0x5a983a&&_0x2df382[_0x27103b(0x1ee)]){let {borderBoxPointGroup:_0x5784f6}=_0x32b26f[_0x27103b(0x21a)](_0x1b5c36,_0xcb07e6);if(_0x5784f6[_0x27103b(0x26b)]===0x0)continue;this['_drawTextRange'](_0x1dd9ac,_0x5784f6,_0x415504,_0x3007eb);}}}}}[_0x52f5fd(0x334)](_0x1e517a,_0x5582c4,_0x347f12,_0x16f52a,_0x2092a3){const _0x2380f7=_0x52f5fd;let {left:_0x216c77,top:_0x5984f7,height:_0x47f67a}=this[_0x2380f7(0x440)](_0x5582c4),_0x182b3a=1.5/this['_getScale'](),_0x2e2e60=new _0x39eaf7(wn+_0x301971(0x6),{'left':_0x216c77+_0x347f12-_0x182b3a,'top':_0x5984f7+_0x16f52a,'height':_0x47f67a,'width':1.5,'fill':_0x1e517a||_0xb76c99(_0x1c08dd['black'],0x0),'strokeWidth':_0x182b3a,'stroke':_0x2380f7(0x348),'evented':!0x0});this[_0x2380f7(0x450)]=_0x2e2e60,this[_0x2380f7(0x371)][_0x2380f7(0x431)](_0x2e2e60,_0x2ac892);let _0x1ed8ff=new _0x39eaf7(wn+_0x301971(0x6),{'left':_0x216c77+_0x347f12-_0x182b3a,'top':_0x5984f7+_0x16f52a-0x2,'height':0x4,'width':0x4,'fill':_0x1e517a||_0xb76c99(_0x1c08dd[_0x2380f7(0x3f8)],0x0),'strokeWidth':0x0,'stroke':_0x1e517a||_0xb76c99(_0x1c08dd[_0x2380f7(0x3f8)],0x0),'evented':!0x1});this[_0x2380f7(0x312)]=_0x1ed8ff,this[_0x2380f7(0x371)][_0x2380f7(0x431)](_0x1ed8ff,_0x2ac892);let _0x40851b=new Cn(wn+_0x301971(0x6),{'left':_0x216c77+_0x347f12-_0x182b3a,'top':_0x5984f7+_0x16f52a-0x14,'text':_0x2092a3,'color':_0x1e517a});this[_0x2380f7(0x41e)]=_0x40851b,this[_0x2380f7(0x371)][_0x2380f7(0x431)](_0x40851b,_0x2ac892),this[_0x2380f7(0x347)]=!0x1;}[_0x52f5fd(0x337)](){const _0x542e13=_0x52f5fd;let _0x4bd957=this[_0x542e13(0x450)][_0x542e13(0x453)][_0x542e13(0x42e)](()=>{const _0xf2142a=_0x542e13;this[_0xf2142a(0x347)]=!0x0;}),_0x346865=this['_anchor']['onPointerLeave$'][_0x542e13(0x42e)](()=>{const _0x5cb87f=_0x542e13;this[_0x5cb87f(0x2fe)]&&clearTimeout(this[_0x5cb87f(0x2fe)]),this[_0x5cb87f(0x2fe)]=setTimeout(()=>{const _0x55c3b6=_0x5cb87f;this[_0x55c3b6(0x347)]=!0x1;},0x7d0);});return()=>{_0x4bd957['unsubscribe'](),_0x346865['unsubscribe']();};}[_0x52f5fd(0x2c5)](_0x4f63de,_0x429fd2,_0x197a2d,_0x2bc62c){const _0x26c782=_0x52f5fd;let _0x107c6b=0.2,_0x5030ad=new _0x371d86(_0x4f63de)[_0x26c782(0x27f)](_0x107c6b)[_0x26c782(0x290)](),_0x1838af=new _0x49d03d(_0x26c782(0x2fa)+_0x301971(0x6),{'pointsGroup':_0x429fd2,'fill':_0x5030ad||_0xb76c99(_0x1c08dd[_0x26c782(0x3f8)],_0x107c6b),'left':_0x197a2d,'top':_0x2bc62c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26c782(0x24d)][_0x26c782(0x44a)](_0x1838af),this['_scene'][_0x26c782(0x431)](_0x1838af,_0x2ac892);}[_0x52f5fd(0x207)](_0x2fef75,_0x513842,_0x5abb7c,_0xb653a0){const _0x42d949=_0x52f5fd;let _0x5ae7a3=0.2,_0x7f742=new _0x371d86(_0x2fef75)[_0x42d949(0x27f)](_0x5ae7a3)[_0x42d949(0x290)](),_0x40c39f=new _0x49d03d(_0x42d949(0x372)+_0x301971(0x6),{'pointsGroup':_0x513842,'fill':_0x7f742||_0xb76c99(_0x1c08dd[_0x42d949(0x3f8)],_0x5ae7a3),'left':_0x5abb7c,'top':_0xb653a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x42d949(0x24d)][_0x42d949(0x44a)](_0x40c39f),this['_scene'][_0x42d949(0x431)](_0x40c39f,_0x2ac892);}[_0x52f5fd(0x440)](_0xf56f8f){let _0x18bdf0=_0xf56f8f[0x0],_0x375f2e=_0x18bdf0[0x0],_0x2ac583=_0x18bdf0[0x2],{x:_0x1d5aba,y:_0xcc6181}=_0x375f2e,{x:_0x5c59fe,y:_0x340b02}=_0x2ac583;return{'left':_0x1d5aba,'top':_0xcc6181,'width':_0x5c59fe-_0x1d5aba,'height':_0x340b02-_0xcc6181};}[_0x52f5fd(0x29c)](){const _0x39b9d2=_0x52f5fd;let {scaleX:_0x5ce02f,scaleY:_0x38792b}=this[_0x39b9d2(0x371)][_0x39b9d2(0x3bc)]();return Math[_0x39b9d2(0x233)](_0x5ce02f,_0x38792b);}};function En(_0xc99fe8,_0x2e1bcb){const _0x588fbb=_0x52f5fd;if(!_0x2e1bcb)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0xc99fe8||_0xc99fe8['pageType']!==_0x2e1bcb[_0x588fbb(0x424)]||(_0xc99fe8[_0x588fbb(0x424)]===_0x2257e8[_0x588fbb(0x405)]||_0xc99fe8[_0x588fbb(0x424)]===_0x2257e8[_0x588fbb(0x39e)])&&_0xc99fe8[_0x588fbb(0x240)]!==_0x2e1bcb[_0x588fbb(0x240)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x165dc3=_0x3be25e(_0xc99fe8),_0x72e555=_0x3be25e(_0x2e1bcb);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x165dc3==null||_0x72e555==null?_0x165dc3==null&&_0x72e555==null:_0x165dc3[_0x588fbb(0x232)]===_0x72e555[_0x588fbb(0x232)]&&_0x165dc3['columnGroupId']===_0x72e555['columnGroupId']&&_0x165dc3['columnIndex']===_0x72e555['columnIndex']};}let Dn=class extends _0xcabcc5{constructor(_0x6db218,_0xaa72e4,_0x3e6ac9,_0x249794,_0xaa1a37){const _0x328c4f=_0x52f5fd;super(),this[_0x328c4f(0x38d)]=_0x6db218,this['_docSkeletonManagerService']=_0xaa72e4,this['_collabCursorController']=_0x3e6ac9,this[_0x328c4f(0x38b)]=_0x249794,this[_0x328c4f(0x1e1)]=_0xaa1a37,q(this,_0x328c4f(0x38f),[]),q(this,_0x328c4f(0x25f),[]),this['_init']();}['_init'](){const _0x138d9b=_0x52f5fd;let _0x2176b5=this['_context'][_0x138d9b(0x25e)],_0x162739=this['_docSkeletonManagerService'];this[_0x138d9b(0x3e0)](_0x281fe6([this[_0x138d9b(0x2e1)]['getCollabCursors$'](_0x2176b5),this[_0x138d9b(0x1e1)][_0x138d9b(0x449)]])[_0x138d9b(0x3c3)](_0x328c1b(([_0xf8bf2c,_0x5cba35])=>({'skeleton':_0x162739[_0x138d9b(0x355)](),'cursors':[..._0xf8bf2c['values']()][_0x138d9b(0x3fc)](_0x219f15=>({..._0x219f15,'color':this[_0x138d9b(0x1e1)][_0x138d9b(0x41a)](_0x219f15['color'])}))})))[_0x138d9b(0x2ea)](_0x56ed6d=>{const _0x4d9b7a=_0x138d9b;if(this['_removeCollabCursors'](),_0x56ed6d){let {skeleton:_0xc8d7c2,cursors:_0x5d35f6}=_0x56ed6d;this[_0x4d9b7a(0x1d7)](_0xc8d7c2,_0x5d35f6);}})),this[_0x138d9b(0x1d2)](),this[_0x138d9b(0x2c8)]();}['_updateCollabCursors'](_0xd6e9df,_0x23cd84){const _0x13f24f=_0x52f5fd;let {scene:_0x6e02b6,mainComponent:_0x3a0e7f}=this[_0x13f24f(0x38d)],_0x423bed=_0x23cd84[_0x13f24f(0x306)](_0x2de446=>new Tn(_0x2de446,_0x6e02b6,_0xd6e9df,_0x3a0e7f));this[_0x13f24f(0x38f)]=_0x423bed,this[_0x13f24f(0x25f)]=_0x23cd84;}[_0x52f5fd(0x217)](){const _0x49c74b=_0x52f5fd;this[_0x49c74b(0x351)]();let {scene:_0x68b81,mainComponent:_0x3b38fd}=this[_0x49c74b(0x38d)],_0x50a89d=this[_0x49c74b(0x2a8)][_0x49c74b(0x355)](),_0x1c6900=this[_0x49c74b(0x25f)]['map'](_0x3875d7=>new Tn(_0x3875d7,_0x68b81,_0x50a89d,_0x3b38fd));this['_cursorShapes']=_0x1c6900;}[_0x52f5fd(0x351)](){const _0x51efd0=_0x52f5fd;this['_cursorShapes'][_0x51efd0(0x304)](_0x7d9f77=>_0x7d9f77[_0x51efd0(0x3c5)]()),this[_0x51efd0(0x38f)]=[];}[_0x52f5fd(0x2c8)](){let _0x3f18d5=[_0x265ad5['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x475a1b=>{const _0x29228b=_0x1ddb;_0x3f18d5[_0x29228b(0x307)](_0x475a1b['id'])&&_0x475a1b['params'][_0x29228b(0x25e)]===this[_0x29228b(0x38d)]['unitId']&&this[_0x29228b(0x217)]();}));}[_0x52f5fd(0x1d2)](){const _0x2fcf16=_0x52f5fd;this[_0x2fcf16(0x3e0)](_0x193585(this['_context'][_0x2fcf16(0x259)][_0x2fcf16(0x426)])[_0x2fcf16(0x3c3)](_0x393a84(_0x4a1ed5=>_0x4a1ed5[_0x2fcf16(0x243)]===_0x42cab0['resize']),_0x1dd86f(0x10))[_0x2fcf16(0x2ea)](()=>{const _0x3016a8=_0x2fcf16;this[_0x3016a8(0x217)]();}));}};Dn=Y([J(0x1,_0x1123ef(_0x3861e7)),J(0x2,_0x1123ef(Z)),J(0x3,_0x146f3e),J(0x4,_0x1123ef(_0x3fe52f))],Dn);var On=class extends _0x2566c0{constructor(_0x4c1ac2,_0x31f563){const _0xef43ee=_0x52f5fd;super(_0x4c1ac2,_0x31f563),q(this,_0xef43ee(0x2ef),void 0x0),q(this,_0xef43ee(0x33c),!0x1),q(this,_0xef43ee(0x22d),void 0x0),q(this,'_name',''),q(this,_0xef43ee(0x2dd),_0xef43ee(0x213)),q(this,_0xef43ee(0x40d),void 0x0),q(this,_0xef43ee(0x3d4),void 0x0),q(this,'_highlight',void 0x0),q(this,'_highlightSecond',0x4),q(this,_0xef43ee(0x36e),void 0x0),q(this,_0xef43ee(0x3f2),void 0x0),q(this,_0xef43ee(0x3d1),!0x0),q(this,_0xef43ee(0x362),0x0),q(this,'_labelHorizontalPosition','right'),_0x31f563&&(this[_0xef43ee(0x25a)](_0x31f563),_0x31f563[_0xef43ee(0x1f4)]&&(_0x31f563[_0xef43ee(0x328)]??this[_0xef43ee(0x285)])&&this[_0xef43ee(0x3cb)](_0x31f563['highlightSecond']??this[_0xef43ee(0x285)])),this['onPointerEnter$'][_0xef43ee(0x42e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xef43ee(0x2d2)][_0xef43ee(0x42e)](()=>this[_0xef43ee(0x25a)]({'hovered':!0x1}));}[_0x52f5fd(0x248)](_0x3b2da0){const _0x41390d=_0x52f5fd;this[_0x41390d(0x362)]=_0x3b2da0;}[_0x52f5fd(0x25a)](_0x1c2f04){const _0x4d92ac=_0x52f5fd;this[_0x4d92ac(0x2ef)]=_0x1c2f04[_0x4d92ac(0x31a)]??this['_color'],this[_0x4d92ac(0x33c)]=_0x1c2f04[_0x4d92ac(0x321)]??this[_0x4d92ac(0x33c)],this[_0x4d92ac(0x22d)]=_0x1c2f04['range']??this[_0x4d92ac(0x22d)],this[_0x4d92ac(0x3ba)]=_0x1c2f04[_0x4d92ac(0x20f)]??this[_0x4d92ac(0x3ba)],this['_labelPosition']=_0x1c2f04[_0x4d92ac(0x208)]??this[_0x4d92ac(0x2dd)],this['_backgroundColor']=_0x1c2f04[_0x4d92ac(0x421)]??this['_backgroundColor'],this[_0x4d92ac(0x3d4)]=_0x1c2f04[_0x4d92ac(0x32a)]??this['_showText'],this['_labelHorizontalPosition']=_0x1c2f04[_0x4d92ac(0x1e9)]??this[_0x4d92ac(0x3ef)],_0x1c2f04[_0x4d92ac(0x328)]!==void 0x0&&(this[_0x4d92ac(0x285)]=_0x1c2f04['highlightSecond']),_0x1c2f04[_0x4d92ac(0x1f4)]!==void 0x0&&(this[_0x4d92ac(0x2d3)]=_0x1c2f04[_0x4d92ac(0x1f4)]),_0x1c2f04[_0x4d92ac(0x2cc)]!==void 0x0&&(this[_0x4d92ac(0x362)]=_0x1c2f04[_0x4d92ac(0x2cc)]),this[_0x4d92ac(0x391)]({'width':_0x1c2f04[_0x4d92ac(0x1e7)],'height':_0x1c2f04['height']});}[_0x52f5fd(0x42d)](_0x469833){const _0xf2d3ec=_0x52f5fd;let {row:_0x5509ba,column:_0x4420b1}=_0x469833;_0x5509ba>=this[_0xf2d3ec(0x22d)][_0xf2d3ec(0x21b)]&&_0x5509ba<=this[_0xf2d3ec(0x22d)][_0xf2d3ec(0x252)]&&_0x4420b1>=this[_0xf2d3ec(0x22d)][_0xf2d3ec(0x2cd)]&&_0x4420b1<=this[_0xf2d3ec(0x22d)][_0xf2d3ec(0x32e)]?this[_0xf2d3ec(0x25a)]({'hovered':!0x0}):this[_0xf2d3ec(0x25a)]({'hovered':!0x1});}['_startBlinking'](_0x26384a){const _0x40942f=_0x52f5fd;this[_0x40942f(0x314)](),this[_0x40942f(0x3d1)]=!0x0,this[_0x40942f(0x3f2)]=window[_0x40942f(0x2f0)](()=>{const _0x3542b2=_0x40942f;this['_isBlinkVisible']=!this[_0x3542b2(0x3d1)],this[_0x3542b2(0x417)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x40942f(0x41d)](()=>{const _0x269ac7=_0x40942f;this[_0x269ac7(0x314)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x26384a*0x3e8);}['_stopBlinking'](){const _0xae87f5=_0x52f5fd;this['_blinkIntervalTimer']&&=(window[_0xae87f5(0x359)](this[_0xae87f5(0x3f2)]),void 0x0),this[_0xae87f5(0x36e)]&&=(window['clearTimeout'](this['_blinkTimer']),void 0x0);}[_0x52f5fd(0x2ec)](_0x4bb08d){return!0x1;}['dispose'](){const _0x53f624=_0x52f5fd;this[_0x53f624(0x314)](),super[_0x53f624(0x3c5)]();}[_0x52f5fd(0x457)](_0x68ca01){const _0x101e75=_0x52f5fd;let _0x37e79d=this[_0x101e75(0x2ef)],_0x5d8f44=this[_0x101e75(0x40d)];if(this[_0x101e75(0x2d3)]&&!this[_0x101e75(0x3d1)]&&(_0x37e79d=this['_getLighterColor'](this[_0x101e75(0x2ef)]),_0x5d8f44=this[_0x101e75(0x40d)]?this[_0x101e75(0x2c3)](this['_backgroundColor']):void 0x0),_0x39eaf7[_0x101e75(0x1ec)](_0x68ca01,{'width':this['width'],'height':this[_0x101e75(0x318)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x37e79d,'evented':!0x1,'fill':_0x5d8f44}),this['_hovered']||this['_showText']){_0x68ca01[_0x101e75(0x322)]();let _0x29a4f4=this[_0x101e75(0x3ef)]===_0x101e75(0x375)?-xn(_0x68ca01,this[_0x101e75(0x3ba)]):this[_0x101e75(0x1e7)];_0x68ca01[_0x101e75(0x286)](0x1,0x0,0x0,0x1,_0x29a4f4,(this[_0x101e75(0x2dd)]===_0x101e75(0x1f5)?0x0:-0x14)+(this[_0x101e75(0x362)]??0x0)),Cn[_0x101e75(0x1ec)](_0x68ca01,{'text':this[_0x101e75(0x3ba)],'color':_0x37e79d}),_0x68ca01[_0x101e75(0x3bf)]();}}[_0x52f5fd(0x2c3)](_0x219c18){const _0x4cd4c3=_0x52f5fd;return _0x219c18['startsWith']('#')?_0x4cd4c3(0x26c)+Number[_0x4cd4c3(0x1f9)](_0x219c18[_0x4cd4c3(0x428)](0x1,0x3),0x10)+',\x20'+Number[_0x4cd4c3(0x1f9)](_0x219c18[_0x4cd4c3(0x428)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x219c18[_0x4cd4c3(0x428)](0x5,0x7),0x10)+_0x4cd4c3(0x41b):_0x219c18[_0x4cd4c3(0x413)](_0x4cd4c3(0x2e0))?_0x219c18[_0x4cd4c3(0x202)](/[\d.]+\)$/g,_0x4cd4c3(0x349)):_0x219c18[_0x4cd4c3(0x413)](_0x4cd4c3(0x27d))?_0x219c18[_0x4cd4c3(0x202)](_0x4cd4c3(0x27d),'rgba')['replace'](')',_0x4cd4c3(0x41b)):_0x219c18;}};let kn=class extends _0xcabcc5{constructor(_0x369f70,_0x51b763,_0x2668a4,_0x17fb97){const _0x4f5fb2=_0x52f5fd;super(),this[_0x4f5fb2(0x38d)]=_0x369f70,this[_0x4f5fb2(0x1f7)]=_0x51b763,this['_collabCursorController']=_0x2668a4,this[_0x4f5fb2(0x1e1)]=_0x17fb97,q(this,'_cursors',new Set()),q(this,_0x4f5fb2(0x264),null),q(this,_0x4f5fb2(0x429),null),this[_0x4f5fb2(0x432)]();}[_0x52f5fd(0x432)](){const _0x5cfd21=_0x52f5fd;this[_0x5cfd21(0x1f7)]['currentSkeleton$'][_0x5cfd21(0x3c3)](_0x243b11(this['dispose$']),_0x5437c2(_0x40ed1b=>{const _0x21d142=_0x5cfd21;if(_0x40ed1b){let _0x574297=_0x40ed1b[_0x21d142(0x228)];return _0x281fe6(this[_0x21d142(0x2e1)][_0x21d142(0x219)](this[_0x21d142(0x38d)][_0x21d142(0x25e)]),this[_0x21d142(0x1e1)]['currentTheme$'])['pipe'](_0x328c1b(([_0xabfe52,_0xa540fa])=>{const _0x2f6b3c=_0x21d142;let _0x1973e6=new Map();return _0xabfe52[_0x2f6b3c(0x304)]((_0x5135f4,_0x3b2e01)=>{const _0x373196=_0x2f6b3c;if(_0x5135f4['sheetID']===_0x574297){let _0x3c127d={..._0x5135f4};_0x3c127d['color']=this['_themeService'][_0x373196(0x41a)](_0x5135f4[_0x373196(0x31a)]),_0x1973e6['set'](_0x3b2e01,_0x3c127d);}}),{'skeleton':_0x40ed1b,'cursors':_0x1973e6};}));}return _0x2b4131({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2ea1f5,cursors:_0x49c167})=>{const _0x1ca362=_0x5cfd21;this['_removeCollabCursors'](),_0x2ea1f5&&this[_0x1ca362(0x1d7)](_0x2ea1f5,_0x49c167);}),this['disposeWithMe'](this[_0x5cfd21(0x1f7)]['currentSkeleton$'][_0x5cfd21(0x3c3)](_0x243b11(this[_0x5cfd21(0x3a4)]))[_0x5cfd21(0x2ea)](_0x1399f5=>{const _0x1c7d29=_0x5cfd21;var _0x48f8fd;if(_0x1399f5==null)return;(_0x48f8fd=this['_pointerMoveDisposable'])==null||_0x48f8fd[_0x1c7d29(0x220)](),this[_0x1c7d29(0x429)]=null;let {skeleton:_0x19e4d4}=_0x1399f5,{scene:_0xfcc94c}=this['_context'];this[_0x1c7d29(0x429)]=_0xfcc94c[_0x1c7d29(0x2da)]['subscribeEvent'](_0x396a39(_0x18f75b=>{const _0xf506c6=_0x1c7d29;var _0x5b175d,_0x2da032;let {offsetX:_0x510e26,offsetY:_0x435dea}=_0x18f75b,{x:_0x55b129,y:_0x5b8273}=_0xfcc94c[_0xf506c6(0x2a0)](_0xbe1e87[_0xf506c6(0x1d9)]([_0x510e26,_0x435dea])),{scaleX:_0xfb4154,scaleY:_0xd347ac}=_0xfcc94c[_0xf506c6(0x3bc)](),_0x54f465=_0xfcc94c['getViewport'](_0x4af0ff[_0xf506c6(0x2bb)]),_0x125057=_0xfcc94c[_0xf506c6(0x203)](_0xbe1e87[_0xf506c6(0x1d9)]([_0x55b129,_0x5b8273]),_0x54f465),_0x5ee8a9=_0x19e4d4[_0xf506c6(0x2a5)](_0x510e26,_0x435dea,_0xfb4154,_0xd347ac,_0x125057);(((_0x5b175d=this[_0xf506c6(0x264)])==null?void 0x0:_0x5b175d['column'])!==_0x5ee8a9[_0xf506c6(0x3ae)]||((_0x2da032=this['_lastPointer'])==null?void 0x0:_0x2da032['row'])!==_0x5ee8a9['row'])&&this[_0xf506c6(0x25f)][_0xf506c6(0x304)](_0x119cc7=>{const _0x1d7bcf=_0xf506c6;_0x119cc7[_0x1d7bcf(0x42d)](_0x5ee8a9);});},0x64));})),this[_0x5cfd21(0x3e0)](_0x1a9326(()=>{const _0x107c31=_0x5cfd21;var _0x178574;(_0x178574=this[_0x107c31(0x429)])==null||_0x178574[_0x107c31(0x220)](),this[_0x107c31(0x429)]=null;}));}[_0x52f5fd(0x1d7)](_0x4d8a35,_0x35e7b3){const _0x5a966f=_0x52f5fd;let _0x1f5a59=this[_0x5a966f(0x1f7)][_0x5a966f(0x28b)]();if(!_0x1f5a59)return;let _0x431d69=this['_getSheetObject']();if(!_0x431d69)return;this[_0x5a966f(0x25f)][_0x5a966f(0x304)](_0x5ecf47=>{const _0xeb76dc=_0x5a966f;_0x5ecf47[_0xeb76dc(0x417)]();});let {scene:_0x9f8aa7}=_0x431d69,_0x28e658=An(Array['from'](_0x35e7b3['values']()))[_0x5a966f(0x306)](_0x207cbd=>{const _0x31bcf8=_0x5a966f;let {color:_0x34c670,range:_0x48e97c,name:_0x342461,selection:_0x4d0ecf,sheetID:_0x2db20a}=_0x207cbd,{startColumn:_0x42a60d,startRow:_0xcca967,endColumn:_0x5c540b,endRow:_0x3fadd4}=_0x48e97c,_0x4067fd=_0x21da18(_0xcca967,_0x42a60d,_0x9f8aa7,_0x1f5a59),_0x434760=_0x21da18(_0x3fadd4,_0x5c540b,_0x9f8aa7,_0x1f5a59),{columnHeaderHeightAndMarginTop:_0x3b4271}=_0x1f5a59,{startX:_0x2648c1,startY:_0x322ed9}=_0x4067fd,{endX:_0x54f16b,endY:_0x14f143}=_0x434760,_0x40ded=_0x54f16b-_0x2648c1,_0x3edeae=_0x14f143-_0x322ed9;return new On(_0x342461,{'labelPosition':_0x322ed9-_0x3b4271>=0x14?_0x31bcf8(0x213):_0x31bcf8(0x1f5),'sheetID':_0x2db20a,'range':_0x48e97c,'color':_0x34c670,'name':_0x342461,'selection':_0x4d0ecf,'left':_0x2648c1,'top':_0x322ed9,'width':_0x40ded,'height':_0x3edeae,'evented':!0x1,'zIndex':0x1389});});_0x9f8aa7[_0x5a966f(0x33b)](_0x28e658,0x1),this['_cursors']=new Set(_0x28e658);}[_0x52f5fd(0x351)](){const _0x418822=_0x52f5fd;var _0x264c68;(_0x264c68=this['_cursors'])==null||_0x264c68[_0x418822(0x304)](_0x28176f=>_0x28176f['dispose']());}[_0x52f5fd(0x21e)](){const _0x503462=_0x52f5fd;return _0xc47c9d(this[_0x503462(0x38d)][_0x503462(0x3f6)],this[_0x503462(0x38d)]);}};kn=Y([J(0x1,_0x1123ef(_0x58c55a)),J(0x2,_0x1123ef(Z)),J(0x3,_0x1123ef(_0x3fe52f))],kn);function An(_0x2f700f){const _0x1ab73e=_0x52f5fd;let _0x2646b3=new Map();return _0x2f700f[_0x1ab73e(0x304)](_0x20bc26=>{const _0x441c20=_0x1ab73e;if(_0x2646b3['has'](_0x20bc26['selection'])){let _0x11fbd6=_0x2646b3[_0x441c20(0x200)](_0x20bc26[_0x441c20(0x2a3)]);_0x11fbd6['name']+=',\x20'+_0x20bc26[_0x441c20(0x20f)];}else _0x2646b3[_0x441c20(0x2e3)](_0x20bc26['selection'],_0x20bc26);}),Array[_0x1ab73e(0x341)](_0x2646b3[_0x1ab73e(0x2b5)]());}function jn(_0x15cc01){const _0x51d58d=_0x52f5fd;return typeof _0x15cc01==_0x51d58d(0x2e4)&&!!_0x15cc01;}function Mn(_0xf2a134){const _0x226392=_0x52f5fd;return _0xf2a134['eventID']===_0x1aebdc[_0x226392(0x28e)]&&_0x226392(0x338)in _0xf2a134&&jn(_0xf2a134['data'])&&typeof _0xf2a134['data']['memberID']==_0x226392(0x45b)&&typeof _0xf2a134[_0x226392(0x338)][_0x226392(0x2a3)]==_0x226392(0x45b);}function Nn(_0x17e4aa){const _0x575fe5=_0x52f5fd;return _0x17e4aa[_0x575fe5(0x31b)]===_0x1aebdc[_0x575fe5(0x1e8)]&&_0x575fe5(0x338)in _0x17e4aa&&jn(_0x17e4aa[_0x575fe5(0x338)])&&typeof _0x17e4aa['data'][_0x575fe5(0x3ca)]=='string';}function Pn(_0x2b0ca1,_0xa97c8){const _0x20f88b=_0x52f5fd;let _0x41a31d;try{_0x41a31d=JSON['parse'](_0x2b0ca1);}catch{return null;}if(!jn(_0x41a31d)||typeof _0x41a31d[_0x20f88b(0x1f8)]!=_0x20f88b(0x45b)||typeof _0x41a31d[_0x20f88b(0x25e)]!=_0x20f88b(0x45b)||typeof _0x41a31d['subUnitId']!=_0x20f88b(0x45b))return null;let _0x36670e=typeof _0x41a31d['unitType']=='number'?_0x41a31d['unitType']:_0xa97c8;if(_0x36670e==null)return null;let _0x55c65c=jn(_0x41a31d[_0x20f88b(0x296)])&&typeof _0x41a31d['pointer']['x']=='number'&&Number['isFinite'](_0x41a31d[_0x20f88b(0x296)]['x'])&&typeof _0x41a31d['pointer']['y']==_0x20f88b(0x214)&&Number[_0x20f88b(0x445)](_0x41a31d[_0x20f88b(0x296)]['y'])?{'x':_0x41a31d[_0x20f88b(0x296)]['x'],'y':_0x41a31d[_0x20f88b(0x296)]['y']}:null;return{'kind':_0x41a31d[_0x20f88b(0x1f8)],'unitType':_0x36670e,'unitId':_0x41a31d[_0x20f88b(0x25e)],'subUnitId':_0x41a31d['subUnitId'],'selectedIds':Array['isArray'](_0x41a31d[_0x20f88b(0x2c7)])?_0x41a31d[_0x20f88b(0x2c7)]['filter'](_0x62dc82=>typeof _0x62dc82==_0x20f88b(0x45b)):[],'focusedId':typeof _0x41a31d[_0x20f88b(0x23c)]==_0x20f88b(0x45b)?_0x41a31d[_0x20f88b(0x23c)]:null,'pointer':_0x55c65c};}function Fn(_0x9cb386,_0x3a93a0,_0x8ec68){const _0x3452bc=_0x52f5fd;return{'kind':_0x3a93a0,'unitType':_0x9cb386,'unitId':_0x8ec68['unitId'],'subUnitId':_0x8ec68[_0x3452bc(0x324)],'selectedIds':Array[_0x3452bc(0x341)](_0x8ec68[_0x3452bc(0x2c7)]),'focusedId':_0x8ec68[_0x3452bc(0x23c)],'pointer':_0x8ec68[_0x3452bc(0x296)]?{..._0x8ec68[_0x3452bc(0x296)]}:null};}let In=class extends _0xcabcc5{constructor(_0x13d9ce,_0x49162a,_0x22a5c6,_0x52958b,_0x260bc7,_0xb0a618){const _0x36f05a=_0x52f5fd;super(),this[_0x36f05a(0x25e)]=_0x13d9ce,this['_session']=_0x49162a,this[_0x36f05a(0x396)]=_0x22a5c6,this[_0x36f05a(0x37a)]=_0x52958b,this[_0x36f05a(0x2b6)]=_0x260bc7,this[_0x36f05a(0x38b)]=_0xb0a618,q(this,_0x36f05a(0x2ee),!0x1),q(this,_0x36f05a(0x31f),!0x1);}get[_0x52f5fd(0x2fc)](){const _0x5362f6=_0x52f5fd;return this['_adapter'][_0x5362f6(0x2fc)];}[_0x52f5fd(0x3c5)](){const _0x5b6661=_0x52f5fd;this[_0x5b6661(0x394)](),super[_0x5b6661(0x3c5)]();}[_0x52f5fd(0x38c)](){const _0x459984=_0x52f5fd;this[_0x459984(0x31f)]||(this[_0x459984(0x31f)]=!0x0,this[_0x459984(0x236)][_0x459984(0x272)][_0x459984(0x3c3)](_0x2acb3a(this[_0x459984(0x3a4)]))['subscribe'](_0x517296=>{const _0x470d50=_0x459984;if(_0x517296===_0x12d017['ONLINE']){this[_0x470d50(0x2ee)]=!0x0;let _0xb5a142=this[_0x470d50(0x396)][_0x470d50(0x373)](this[_0x470d50(0x25e)]);_0xb5a142&&this[_0x470d50(0x3a8)](_0xb5a142);}else this[_0x470d50(0x2ee)]=!0x1,this[_0x470d50(0x394)]();}),this[_0x459984(0x236)][_0x459984(0x23e)][_0x459984(0x3c3)](_0x2acb3a(this['dispose$']))['subscribe'](_0x488c23=>{const _0x160dd9=_0x459984;Mn(_0x488c23)?this[_0x160dd9(0x3da)](_0x488c23):Nn(_0x488c23)&&this['_removeRemotePresence'](_0x488c23[_0x160dd9(0x338)][_0x160dd9(0x3ca)]);}),this[_0x459984(0x396)][_0x459984(0x256)]['pipe'](_0x45db35(_0x161632=>this['_online']&&_0x161632[_0x459984(0x25e)]===this[_0x459984(0x25e)]),_0x434f04(_0x49a7e2=>_0x4dc17e(_0x49a7e2[_0x459984(0x363)]),{'leading':!0x0,'trailing':!0x0}),_0x2acb3a(this[_0x459984(0x3a4)]))[_0x459984(0x2ea)](_0x1372fe=>this[_0x459984(0x3a8)](_0x1372fe)));}['_sendLocalPresence'](_0x438449){const _0x126bc9=_0x52f5fd;let _0x3ed404=this[_0x126bc9(0x236)][_0x126bc9(0x378)]();if(!_0x3ed404||!this['_online'])return;let _0x22a01d={'eventID':_0x1aebdc[_0x126bc9(0x28e)],'data':{'unitID':this['unitId'],'memberID':_0x3ed404,'selection':JSON[_0x126bc9(0x2b7)](Fn(this[_0x126bc9(0x2fc)],this[_0x126bc9(0x396)][_0x126bc9(0x223)],_0x438449))}};this[_0x126bc9(0x236)][_0x126bc9(0x377)](_0x22a01d,this[_0x126bc9(0x25e)])[_0x126bc9(0x1e2)](()=>void 0x0);}['_handleCursorUpdate'](_0x39ee6a){const _0x5b5701=_0x52f5fd;let {memberID:_0xbeec9a,selection:_0x222895}=_0x39ee6a['data'];if(_0xbeec9a===this[_0x5b5701(0x236)][_0x5b5701(0x378)]())return;let _0x38d2f8=Pn(_0x222895,this[_0x5b5701(0x2fc)]);if(!_0x38d2f8||_0x38d2f8['kind']!==this[_0x5b5701(0x396)]['presenceKind']||_0x38d2f8[_0x5b5701(0x2fc)]!==this[_0x5b5701(0x2fc)]||_0x38d2f8[_0x5b5701(0x25e)]!==this['unitId'])return;let _0x120ed1=this[_0x5b5701(0x2b6)][_0x5b5701(0x265)](this['unitId'],_0xbeec9a),_0x138e79={'unitId':_0x38d2f8[_0x5b5701(0x25e)],'subUnitId':_0x38d2f8[_0x5b5701(0x324)],'selectedIds':_0x38d2f8[_0x5b5701(0x2c7)],'focusedId':_0x38d2f8[_0x5b5701(0x23c)],'pointer':_0x38d2f8[_0x5b5701(0x296)],'memberId':_0xbeec9a,'color':this[_0x5b5701(0x37a)][_0x5b5701(0x1ed)](_0xbeec9a),'name':(_0x120ed1==null?void 0x0:_0x120ed1[_0x5b5701(0x20f)])??_0xbeec9a};this[_0x5b5701(0x38b)][_0x5b5701(0x414)](un['id'],{'unitType':this[_0x5b5701(0x2fc)],'update':{'type':_0x5b5701(0x2e3),'state':_0x138e79}})['catch'](()=>void 0x0);}['_removeRemotePresence'](_0x47d2dd){const _0x57b55e=_0x52f5fd;this[_0x57b55e(0x38b)][_0x57b55e(0x414)](un['id'],{'unitType':this['unitType'],'update':{'type':'remove','unitId':this[_0x57b55e(0x25e)],'memberId':_0x47d2dd}})[_0x57b55e(0x1e2)](()=>void 0x0);}[_0x52f5fd(0x394)](){const _0x43f730=_0x52f5fd;this['_commandService'][_0x43f730(0x414)](un['id'],{'unitType':this[_0x43f730(0x2fc)],'update':{'type':_0x43f730(0x2df),'unitId':this[_0x43f730(0x25e)]}})['catch'](()=>void 0x0);}};In=Y([J(0x3,_0x1123ef(mn)),J(0x4,_0x1123ef(_0xbf8ec6)),J(0x5,_0x1123ef(_0x146f3e))],In);let Ln=class extends _0xcabcc5{constructor(_0x3bf9b2,_0x1b43c8,_0x5cd932,_0x1ecbc9){const _0x230c98=_0x52f5fd;super(),this[_0x230c98(0x2e5)]=_0x3bf9b2,this[_0x230c98(0x412)]=_0x1b43c8,this[_0x230c98(0x20d)]=_0x5cd932,this[_0x230c98(0x3c7)]=_0x1ecbc9,q(this,_0x230c98(0x1e3),!0x1),q(this,_0x230c98(0x342),new Map()),q(this,_0x230c98(0x205),new Map()),q(this,_0x230c98(0x261),new Map()),this[_0x230c98(0x432)]();}[_0x52f5fd(0x3c5)](){const _0xbb105c=_0x52f5fd;this[_0xbb105c(0x1e3)]=!0x0,this[_0xbb105c(0x261)][_0xbb105c(0x304)](_0x4ffd7e=>_0x4ffd7e[_0xbb105c(0x3c5)]()),this[_0xbb105c(0x261)]['clear'](),this[_0xbb105c(0x342)][_0xbb105c(0x304)](_0x503b6b=>_0x503b6b['dispose']()),this[_0xbb105c(0x342)][_0xbb105c(0x2df)](),this[_0xbb105c(0x205)][_0xbb105c(0x2df)](),super['dispose']();}[_0x52f5fd(0x432)](){const _0x16dcd1=_0x52f5fd;this[_0x16dcd1(0x3c7)][_0x16dcd1(0x3af)]['pipe'](_0x2acb3a(this['dispose$']))[_0x16dcd1(0x2ea)](_0x2b8398=>this[_0x16dcd1(0x2e9)](_0x2b8398));}[_0x52f5fd(0x2e9)](_0x28c5b3){const _0x3503b5=_0x52f5fd;let _0x2e9329=new Set(_0x28c5b3[_0x3503b5(0x306)](_0x4cac6a=>_0x4cac6a[_0x3503b5(0x2fc)]));this['_adapterDisposables'][_0x3503b5(0x304)]((_0x34c6c4,_0x27bc3f)=>{const _0x42c4f8=_0x3503b5;_0x2e9329[_0x42c4f8(0x2cf)](_0x27bc3f)||(_0x34c6c4[_0x42c4f8(0x3c5)](),this[_0x42c4f8(0x261)][_0x42c4f8(0x44e)](_0x27bc3f),this[_0x42c4f8(0x3e3)](_0x27bc3f));}),_0x28c5b3[_0x3503b5(0x304)](_0x55e384=>{const _0x5d5511=_0x3503b5;this[_0x5d5511(0x261)][_0x5d5511(0x2cf)](_0x55e384[_0x5d5511(0x2fc)])||this[_0x5d5511(0x3b6)](_0x55e384);});}[_0x52f5fd(0x3b6)](_0x35b197){const _0x5a0dbe=_0x52f5fd;let _0x5a84ea=new _0x350b2a();this[_0x5a0dbe(0x261)][_0x5a0dbe(0x2e3)](_0x35b197[_0x5a0dbe(0x2fc)],_0x5a84ea),_0x5a84ea[_0x5a0dbe(0x38e)](_0x35b197['activate']()),this[_0x5a0dbe(0x2e5)]['getAllUnitsForType'](_0x35b197[_0x5a0dbe(0x2fc)])[_0x5a0dbe(0x304)](_0x21dbee=>this[_0x5a0dbe(0x283)](_0x21dbee[_0x5a0dbe(0x37b)](),_0x35b197)[_0x5a0dbe(0x1e2)](()=>void 0x0));let _0x4b8db0=this['_univerInstanceService'][_0x5a0dbe(0x44f)](_0x35b197[_0x5a0dbe(0x2fc)])['subscribe'](({unit:_0x251b35})=>this['_startEntity'](_0x251b35[_0x5a0dbe(0x37b)](),_0x35b197)[_0x5a0dbe(0x1e2)](()=>void 0x0));_0x5a84ea['add'](_0x1a9326(()=>_0x4b8db0[_0x5a0dbe(0x220)]()));let _0x305cf9=this[_0x5a0dbe(0x2e5)][_0x5a0dbe(0x442)](_0x35b197['unitType'])['subscribe'](_0x2e4a8f=>this['_disposeEntity'](_0x2e4a8f[_0x5a0dbe(0x37b)]()));_0x5a84ea[_0x5a0dbe(0x38e)](_0x1a9326(()=>_0x305cf9[_0x5a0dbe(0x220)]()));}async[_0x52f5fd(0x283)](_0x420e9d,_0x4c00f6){const _0x1e6a48=_0x52f5fd;if(this[_0x1e6a48(0x342)][_0x1e6a48(0x2cf)](_0x420e9d)||this[_0x1e6a48(0x205)][_0x1e6a48(0x2cf)](_0x420e9d))return;let _0x4ff184={};this[_0x1e6a48(0x205)][_0x1e6a48(0x2e3)](_0x420e9d,_0x4ff184);let _0x3079ab=await this['_collabSessionService'][_0x1e6a48(0x3a6)](_0x420e9d)['catch'](_0x167b56=>{const _0x266cc0=_0x1e6a48;throw this['_pendingEntities'][_0x266cc0(0x200)](_0x420e9d)===_0x4ff184&&this['_pendingEntities'][_0x266cc0(0x44e)](_0x420e9d),_0x167b56;});if(this[_0x1e6a48(0x1e3)]||this['_pendingEntities'][_0x1e6a48(0x200)](_0x420e9d)!==_0x4ff184||this['_adapterRegistry']['get'](_0x4c00f6[_0x1e6a48(0x2fc)])!==_0x4c00f6){this[_0x1e6a48(0x205)][_0x1e6a48(0x200)](_0x420e9d)===_0x4ff184&&this['_pendingEntities']['delete'](_0x420e9d);return;}let _0xf07aae=this[_0x1e6a48(0x412)][_0x1e6a48(0x408)](In,_0x420e9d,_0x3079ab,_0x4c00f6);_0xf07aae['init'](),this[_0x1e6a48(0x205)]['delete'](_0x420e9d),this['_entities']['set'](_0x420e9d,_0xf07aae);}['_disposeEntity'](_0x24f3bf){const _0x5890ce=_0x52f5fd;this[_0x5890ce(0x205)][_0x5890ce(0x44e)](_0x24f3bf);let _0x1400be=this[_0x5890ce(0x342)][_0x5890ce(0x200)](_0x24f3bf);_0x1400be&&(_0x1400be[_0x5890ce(0x3c5)](),this['_entities'][_0x5890ce(0x44e)](_0x24f3bf));}['_disposeEntitiesForType'](_0x1c33c8){const _0x3dacfa=_0x52f5fd;this[_0x3dacfa(0x2e5)]['getAllUnitsForType'](_0x1c33c8)[_0x3dacfa(0x304)](_0x37df3c=>this[_0x3dacfa(0x205)][_0x3dacfa(0x44e)](_0x37df3c[_0x3dacfa(0x37b)]())),Array[_0x3dacfa(0x341)](this[_0x3dacfa(0x342)][_0x3dacfa(0x2f6)]())['forEach'](([_0x29eb16,_0x1e5b97])=>{const _0x3ba8a0=_0x3dacfa;_0x1e5b97[_0x3ba8a0(0x2fc)]===_0x1c33c8&&this[_0x3ba8a0(0x386)](_0x29eb16);});}};Ln=Y([J(0x0,_0x18bd8e),J(0x1,_0x1123ef(_0x1f50b7)),J(0x2,_0x1123ef(_0x27b258)),J(0x3,_0x1123ef(_0x5e4692))],Ln);const Rn={'toast':_0x52f5fd(0x2b8),'actionButton':'!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end'},zn={'title':_0x52f5fd(0x25b),'content':_0x52f5fd(0x1d5),'type':_0x52f5fd(0x37f)},Bn={'permission_rejected':{'title':'collaboration-client-ui.permission.title','content':_0x52f5fd(0x3f3),'type':_0x52f5fd(0x37f)},'license_unit_type_rejected':{'title':_0x52f5fd(0x404),'content':'collaboration-client-ui.license.unit-type-rejected','type':'error'},'remote_revert':{'title':'collaboration-client-ui.remoteRevert.title','content':_0x52f5fd(0x360),'type':_0x52f5fd(0x43e)}};let Vn=class extends _0x200dbf{constructor(_0x4638d5,_0xd4a576,_0x460e1a,_0x3c2c6c,_0x2b0414,_0x5ae86a,_0x1d0d10,_0x17644a){const _0x4e9de5=_0x52f5fd;var _0x205239;super(),this[_0x4e9de5(0x2be)]=_0x4638d5,this[_0x4e9de5(0x1e0)]=_0xd4a576,this[_0x4e9de5(0x415)]=_0x460e1a,this[_0x4e9de5(0x31d)]=_0x3c2c6c,this[_0x4e9de5(0x42b)]=_0x2b0414,this[_0x4e9de5(0x37d)]=_0x5ae86a,this[_0x4e9de5(0x40e)]=_0x1d0d10,this['_configService']=_0x17644a,q(this,_0x4e9de5(0x36c),null),q(this,_0x4e9de5(0x458),new Set()),q(this,_0x4e9de5(0x30b),new Map()),q(this,_0x4e9de5(0x370),new Map()),this[_0x4e9de5(0x1e4)](),this[_0x4e9de5(0x435)](),this[_0x4e9de5(0x2dc)](),((_0x205239=this[_0x4e9de5(0x244)][_0x4e9de5(0x42c)](_0x4e9de5(0x222)))==null?void 0x0:_0x205239[_0x4e9de5(0x3ea)])!==!0x1&&this[_0x4e9de5(0x275)]();}[_0x52f5fd(0x3c5)](){const _0x198aac=_0x52f5fd;var _0x2ac452;(_0x2ac452=this[_0x198aac(0x36c)])==null||_0x2ac452[_0x198aac(0x3c5)](),this[_0x198aac(0x36c)]=null;for(let _0x33f049 of[this[_0x198aac(0x30b)],this['_editingConnectionsExceededNotices']])_0x33f049[_0x198aac(0x304)](_0x59dd02=>_0x59dd02[_0x198aac(0x3c5)]()),_0x33f049['clear']();super[_0x198aac(0x3c5)]();}[_0x52f5fd(0x2dc)](){const _0x25d951=_0x52f5fd;let _0x5d1794=_0x1fa0c2=>{const _0x1dc203=_0x1ddb;let _0xabea2=new _0x350b2a();_0xabea2[_0x1dc203(0x38e)](_0x1a9326(_0x1fa0c2[_0x1dc203(0x210)][_0x1dc203(0x2ea)]({'next':_0x4799d9=>{const _0x275886=_0x1dc203;_0x4799d9[_0x275886(0x42a)]>=0x4e20&&this[_0x275886(0x315)](this[_0x275886(0x30b)],_0x1fa0c2[_0x275886(0x237)],_0x275886(0x3e6)),_0x4799d9[_0x275886(0x3a7)]===_0x275886(0x1e6)&&this['_showAwaitingNotice'](this['_editingConnectionsExceededNotices'],_0x1fa0c2['unitID'],_0x275886(0x3d5));},'complete':()=>{const _0x25fc1a=_0x1dc203;this[_0x25fc1a(0x30d)](_0x1fa0c2[_0x25fc1a(0x237)]),_0xabea2[_0x25fc1a(0x3c5)]();}}))),_0xabea2[_0x1dc203(0x38e)](_0x1a9326(_0x1fa0c2['status$'][_0x1dc203(0x2ea)](_0x5b03e1=>{const _0x741566=_0x1dc203;_0x5b03e1!==_0x342e1d[_0x741566(0x2cb)]&&_0x5b03e1!==_0x342e1d[_0x741566(0x3cc)]&&this['_removeAwaitingNotices'](_0x1fa0c2[_0x741566(0x237)]);}))),this[_0x1dc203(0x3e0)](_0xabea2);};this[_0x25d951(0x40e)][_0x25d951(0x1eb)]()[_0x25d951(0x304)](_0x5d1794),this[_0x25d951(0x3e0)](_0x1a9326(this['_collaborationController'][_0x25d951(0x2f9)][_0x25d951(0x2ea)](_0x5d1794)));}[_0x52f5fd(0x315)](_0x3f49c2,_0x92a468,_0x422907){const _0x575c6a=_0x52f5fd;_0x3f49c2['has'](_0x92a468)||_0x3f49c2['set'](_0x92a468,this[_0x575c6a(0x42b)][_0x575c6a(0x2f4)]({'title':this[_0x575c6a(0x37d)]['t'](_0x422907),'type':_0x575c6a(0x43e),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}[_0x52f5fd(0x30d)](_0xd1e5a3){const _0x3a4239=_0x52f5fd;for(let _0x12bf03 of[this[_0x3a4239(0x30b)],this[_0x3a4239(0x370)]]){var _0x1c3477;(_0x1c3477=_0x12bf03[_0x3a4239(0x200)](_0xd1e5a3))==null||_0x1c3477[_0x3a4239(0x3c5)](),_0x12bf03['delete'](_0xd1e5a3);}}[_0x52f5fd(0x1e4)](){const _0x29f504=_0x52f5fd;this[_0x29f504(0x3e0)](this[_0x29f504(0x2be)]['registerBeforeClose'](()=>{const _0x141203=_0x29f504;if(this[_0x141203(0x1e0)][_0x141203(0x299)][_0x141203(0x3f1)])return this[_0x141203(0x37d)]['t'](_0x141203(0x204));}));}[_0x52f5fd(0x275)](){const _0x4de0e9=_0x52f5fd;let _0x3b1134=_0x443188=>{const _0x93ae3d=_0x1ddb;this[_0x93ae3d(0x3e0)](_0x1a9326(_0x443188['conflict$'][_0x93ae3d(0x2ea)](_0x203ec1=>this[_0x93ae3d(0x3b2)](_0x203ec1))));};this[_0x4de0e9(0x40e)][_0x4de0e9(0x1eb)]()[_0x4de0e9(0x304)](_0x3b1134),this[_0x4de0e9(0x3e0)](_0x1a9326(this[_0x4de0e9(0x40e)][_0x4de0e9(0x2f9)][_0x4de0e9(0x2ea)](_0x3b1134)));}[_0x52f5fd(0x3b2)](_0x3b660c){const _0x172664=_0x52f5fd;if(!_0x3b660c['cacheCleared'])return;let _0x14ed6a=Bn[_0x3b660c[_0x172664(0x3a7)]]??zn;this['_replaceConflictNotification']({'title':this[_0x172664(0x37d)]['t'](_0x14ed6a[_0x172664(0x24a)]),'content':this[_0x172664(0x37d)]['t'](_0x14ed6a[_0x172664(0x437)]),'type':_0x14ed6a[_0x172664(0x243)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x36b08f=>{_0x36b08f['preventDefault'](),this['_reloadPage']();}}});}['_reloadPage'](){window['location']['reload']();}[_0x52f5fd(0x435)](){const _0x578e8c=_0x52f5fd;this[_0x578e8c(0x3e0)](this[_0x578e8c(0x415)]['event$']['subscribe'](_0x1d74b5=>{const _0x91eb55=_0x578e8c;_0x1d74b5['id']===_0x4b3e00[_0x91eb55(0x262)]&&this[_0x91eb55(0x31d)][_0x91eb55(0x2f4)]({'type':_0x120f45[_0x91eb55(0x389)],'content':this[_0x91eb55(0x37d)]['t'](_0x91eb55(0x2c9))}),_0x1d74b5['id']===_0x4b3e00[_0x91eb55(0x443)]&&this['_messageService'][_0x91eb55(0x2f4)]({'type':_0x120f45[_0x91eb55(0x389)],'content':this[_0x91eb55(0x37d)]['t'](_0x91eb55(0x39f))}),_0x1d74b5['id']===_0x4b3e00['CONFLICT_PROCESSING']&&this[_0x91eb55(0x28c)](),_0x1d74b5['id']===_0x4b3e00['CONFLICT_CACHE_CLEAR_FAILED']&&_0x1d74b5['unitID']&&this[_0x91eb55(0x303)](_0x1d74b5[_0x91eb55(0x237)],_0x1d74b5['userId']??''),_0x1d74b5['id']===_0x4b3e00['JOIN_ROOM_FAILED']&&this[_0x91eb55(0x31d)]['show']({'type':_0x120f45[_0x91eb55(0x389)],'content':this[_0x91eb55(0x37d)]['t'](_0x1d74b5[_0x91eb55(0x338)]||'')}),_0x1d74b5['id']===_0x4b3e00['SOCKET_FAILED_RETRY']&&this[_0x91eb55(0x31d)][_0x91eb55(0x2f4)]({'type':_0x120f45[_0x91eb55(0x389)],'content':this[_0x91eb55(0x37d)]['t'](_0x91eb55(0x3ed))}),_0x1d74b5['id']===_0x4b3e00[_0x91eb55(0x2de)]&&this[_0x91eb55(0x31d)]['show']({'type':_0x120f45['Error'],'content':this[_0x91eb55(0x37d)]['t']('collaboration-client-ui.session.connection-failed')}),_0x1d74b5['id']===_0x4b3e00[_0x91eb55(0x459)]&&this['_messageService'][_0x91eb55(0x2f4)]({'type':_0x120f45[_0x91eb55(0x374)],'content':this[_0x91eb55(0x37d)]['t'](_0x91eb55(0x29a))});}));}[_0x52f5fd(0x28c)](){const _0x468d4c=_0x52f5fd;this[_0x468d4c(0x249)]({'title':this['_localeService']['t'](_0x468d4c(0x25b)),'content':this[_0x468d4c(0x37d)]['t']('collaboration-client-ui.conflict.processing'),'type':_0x468d4c(0x398),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x52f5fd(0x303)](_0x498e15,_0x393115){const _0x51aea7=_0x52f5fd;this[_0x51aea7(0x249)]({'title':this[_0x51aea7(0x37d)]['t'](_0x51aea7(0x25b)),'content':this['_localeService']['t'](_0x51aea7(0x33d)),'type':_0x51aea7(0x37f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t'](_0x51aea7(0x45c)),'onClick':_0x47b2ac=>{const _0x5f52d5=_0x51aea7;_0x47b2ac['preventDefault'](),this[_0x5f52d5(0x245)](_0x498e15,_0x393115);}}});}[_0x52f5fd(0x245)](_0x106a7a,_0x90d93f){const _0x27fd10=_0x52f5fd;let _0xd09cd3=_0x106a7a+':'+(_0x90d93f??'');this[_0x27fd10(0x458)][_0x27fd10(0x2cf)](_0xd09cd3)||(this[_0x27fd10(0x458)]['add'](_0xd09cd3),this[_0x27fd10(0x28c)](),this[_0x27fd10(0x1e0)][_0x27fd10(0x3a0)](_0x106a7a,_0x90d93f)[_0x27fd10(0x379)](()=>this['_reloadPage']())['catch'](()=>this[_0x27fd10(0x303)](_0x106a7a,_0x90d93f))[_0x27fd10(0x3f7)](()=>this[_0x27fd10(0x458)]['delete'](_0xd09cd3)));}[_0x52f5fd(0x249)](_0x442a2e){const _0x7b189e=_0x52f5fd;var _0x230adb;(_0x230adb=this[_0x7b189e(0x36c)])==null||_0x230adb[_0x7b189e(0x3c5)](),this[_0x7b189e(0x36c)]=this[_0x7b189e(0x42b)][_0x7b189e(0x2f4)](_0x442a2e);}};Vn=Y([J(0x0,_0x486ae7),J(0x1,_0x18d32c),J(0x2,_0x1123ef(_0x183cb9)),J(0x3,_0x288aef),J(0x4,_0x218887),J(0x5,_0x1123ef(_0x6a51f2)),J(0x6,_0x1123ef(_0x1696b1)),J(0x7,_0x5e768c)],Vn);let Hn=class{constructor(_0x543b0d,_0x38c49c){const _0x22c388=_0x52f5fd;this[_0x22c388(0x2e7)]=_0x543b0d,this['_renderManagerService']=_0x38c49c;}[_0x52f5fd(0x3d8)](_0x269419){const _0x152413=_0x52f5fd;this[_0x152413(0x274)](_0x269419),this[_0x152413(0x37e)](_0x269419);}[_0x52f5fd(0x439)](_0x2389c4){const _0x2a1c6d=_0x52f5fd;let {unitID:_0x32cc3f}=_0x2389c4,{redoCache:_0x43b7f3}=this[_0x2a1c6d(0x3eb)][_0x2a1c6d(0x3ee)](_0x32cc3f)['with'](_0x4968df)[_0x2a1c6d(0x403)]();if(_0x43b7f3[_0x2a1c6d(0x26b)]===0x0)return _0x2389c4;let _0x232bb4=_0x3b08db[_0x2a1c6d(0x201)](_0x2389c4[_0x2a1c6d(0x1ea)][0x0]);for(let _0x273b0f=0x0;_0x273b0f<_0x43b7f3[_0x2a1c6d(0x26b)];_0x273b0f++){let _0x1f96bc={'id':'doc.mutation.rich-text-editing','params':{..._0x43b7f3[_0x273b0f]}},_0x158ed1=this[_0x2a1c6d(0x2e7)]['transformMutation'](_0x232bb4,_0x1f96bc,!0x1);if(_0x36dbeb(_0x158ed1))throw _0x158ed1[_0x2a1c6d(0x37f)];_0x232bb4=_0x158ed1[_0x2a1c6d(0x30f)];}return{..._0x3b08db[_0x2a1c6d(0x201)](_0x2389c4),'mutations':[_0x232bb4]};}[_0x52f5fd(0x274)](_0x7b85d1){const _0x339a5a=_0x52f5fd;let {unitID:_0x50c260}=_0x7b85d1,_0x12ed67=this['_renderManagerService'][_0x339a5a(0x3ee)](_0x50c260)[_0x339a5a(0x2a6)](_0x4968df),{undoCache:_0x262894,redoCache:_0x33a509}=_0x12ed67[_0x339a5a(0x403)]();if(_0x262894[_0x339a5a(0x26b)]===0x0||_0x33a509[_0x339a5a(0x26b)]===0x0)return;let _0x18ce26=[],_0x25b27a=[],_0x4a4073=_0x3b08db[_0x339a5a(0x201)](_0x7b85d1[_0x339a5a(0x1ea)][0x0]),_0x6d38b0=_0x3b08db[_0x339a5a(0x201)](_0x7b85d1['mutations'][0x0]);for(let _0x5baf7a=_0x262894[_0x339a5a(0x26b)]-0x1;_0x5baf7a>=0x0;_0x5baf7a--){let _0xade8ce={'id':'doc.mutation.rich-text-editing','params':{..._0x262894[_0x5baf7a]}},_0xb57ee5={'id':_0x339a5a(0x26d),'params':{..._0x33a509[_0x5baf7a]}},_0x11ca9f=this[_0x339a5a(0x2e7)][_0x339a5a(0x2a9)](_0x4a4073,_0xade8ce,!0x1),_0x4f6771=this['_transformService'][_0x339a5a(0x2a9)](_0x6d38b0,_0xb57ee5,!0x1);if(_0x36dbeb(_0x11ca9f))throw _0x11ca9f[_0x339a5a(0x37f)];if(_0x36dbeb(_0x4f6771))throw _0x4f6771['error'];_0x18ce26[_0x339a5a(0x34e)](_0x11ca9f['m2Prime'][_0x339a5a(0x1d3)]),_0x25b27a[_0x339a5a(0x34e)](_0x4f6771['m2Prime'][_0x339a5a(0x1d3)]),_0x4a4073=_0x11ca9f[_0x339a5a(0x30f)],_0x6d38b0=_0x4f6771['m1Prime'];}_0x12ed67[_0x339a5a(0x343)]({'undoCache':_0x18ce26,'redoCache':_0x25b27a});}[_0x52f5fd(0x37e)](_0x516894){const _0x9c77a5=_0x52f5fd;let {unitID:_0x550b07}=_0x516894,_0x390a31=this[_0x9c77a5(0x3eb)]['getRenderUnitById'](_0x550b07)[_0x9c77a5(0x2a6)](_0x4968df),_0x3e76be=_0x390a31['getActiveRange']();if(_0x3e76be==null)return;let _0x58cf8a=[{'id':_0x9c77a5(0x26d),'params':{'unitId':_0x516894[_0x9c77a5(0x237)],'actions':null,'textRanges':[_0x3e76be]}}],_0x2db2fc=this[_0x9c77a5(0x2e7)][_0x9c77a5(0x28a)](_0x516894,_0x58cf8a);if(!_0x53f4fc(_0x2db2fc))throw _0x2db2fc[_0x9c77a5(0x37f)];let _0x5e36b8=_0x2db2fc['m2Prime'][0x0][_0x9c77a5(0x1d3)][_0x9c77a5(0x323)];Array[_0x9c77a5(0x3e8)](_0x5e36b8)&&_0x5e36b8[_0x9c77a5(0x26b)]&&_0x390a31[_0x9c77a5(0x231)](_0x5e36b8[0x0]);}};function _0x1ddb(_0x1538ec,_0x5835c5){_0x1538ec=_0x1538ec-0x1d2;const _0x102710=_0x1027();let _0x1ddbaa=_0x102710[_0x1538ec];return _0x1ddbaa;}function _0x1027(){const _0x182f6e=['clearRemotePresences','loading','parse','_instanceService','redoState','_saveCache','_watchBlockProgress','FOOTER','collaboration-client-ui.collaboration.closeRoom','clearOfflineData','getCurrentTypeOfUnit$','loadedBlocks','_assignedColors','dispose$','_getUserId','requireSession','reason','_sendLocalPresence','_onCursorDelete','fillText','collaboration-client-ui.collabStatus.syncing','cursorInfo','_scheduleSaving','column','adapters$','text','_initWindowErrorListener','_onConflict','default','range','_getMergeRange','_bindAdapter','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[RemoteUniscriptService]:\x20no\x20focused\x20unit','keys','_name','addEventListener','getAncestorScale','_blockProgressWatches','Failed','restore','univer-border-none\x20univer-bg-transparent','_toggleOffline','Loading','pipe','status','dispose','RemoveColCommandId','_adapterRegistry','findNodePositionByCharIndex','_config','memberID','_startBlinking','AWAITING_WITH_PENDING','_docSelectionManagerService','blue.400','fillStyle','univer-m-0\x20univer-p-0','_isBlinkVisible',':backup:','_docTransformIMECacheService','_showText','collaboration-client-ui.license.editing-connections-exceeded','location','TEXT','transformIMECache','onRendered','_handleCursorUpdate','snapshot-loading-','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','spin','toISOString','roomMembers$','disposeWithMe','getUnit','storage','_disposeEntitiesForType','_startSheetCollabCursor','getActiveSheet','collaboration-client-ui.session.collaboration-timeout','wsSessionTicketUrl','isArray','getAllUnitsForType','enableDefaultConflictUI','_renderManagerService','replaceSelectionInfoWithoutRefresh','collaboration-client-ui.session.will-retry','getRenderUnitById','_labelHorizontalPosition','Unknown\x20user','size','_blinkIntervalTimer','collaboration-client-ui.permission.content','origin','toPrimitive','unit','finally','black','registerRenderModule','FETCH_MISS','_collabCursorState$','flatMap','red.300','@univerjs-pro/collaboration-client-ui','_registerPresenceStatusComponent','_refRangeService','MoveRangeCommandId','timeoutState$','getUndoRedoMutationParamsCache','collaboration-client-ui.license.title','HEADER','/universer-api/frontend/logs','_selfUnitIDs','createInstance','1465059QdNlkX','UNIVER_DOC','getSheetBySheetId','NOT_COLLAB','_backgroundColor','_collaborationController','setItem','_online$','div','_injector','startsWith','executeCommand','_collaborationUIEventService','_initDependencies','makeDirty','lineno','_monkeyPatchLogService','getColorFromTheme',',\x200.2)','\x20at\x20','setTimeout','_textBubble','stream','ACTIVE_UNIT_EVENT_CHANNEL','backgroundColor','href','_id','pageType','691191SXpLBt','onTransformChange$','_clearBlockProgressWatch','slice','_pointerMoveDisposable','elapsedMs','_notificationService','getConfig','onMouseMove','subscribeEvent','_roomMembers$','_scheduleClearOtherTimer','addObject','_init','sessionTicket','collaboration-client-ui.operation.update-remote-unit-presence','_initEvent','_clearTimeoutState','content','timedOut','transformRemoteChangeset','selections','registerRefRange','defineProperty','UNIVER_SHEET','warning','getOffsetConfig','_getAnchorBounding','_presenceStatusRegistrations','getTypeOfUnitDisposed$','CLOSE_ROOM','_snapshotLoadingService','isFinite','function','_initStatusListener','_userManagerService','currentTheme$','push','_httpService','some','m2Prime','delete','getTypeOfUnitAdded$','_anchor','_logService','Response','onPointerEnter$','_docClipboardService','ticket','univer-text-red-500','_draw','_retryingConflictCacheUnitIDs','LICENSE_DOMAIN_REJECTED','indicator','string','collaboration-client-ui.conflict.retry','_initResize','params','fillRule','collaboration-client-ui.conflict.content','_heartbeatTimer','_updateCollabCursors','status$','FromArray','enableLocalCache','_presenceAdapterRegistry','search','_updateLocalCursor','20NjvdBp','result','_localCacheService','_themeService','catch','_isDisposed','_setupBeforeClosingHandler','InsertRowCommandId','license_editing_connections_exceeded','width','USERS_LEAVE','labelHorizontalPosition','mutations','getCollabEntities','drawWith','assignAColorForMemberID','canRenderSelection','statusUIPart','899241elYQob','_syncPresenceStatusComponents','enableFrontendLog','moveTo','highlight','bottom','_cursorInfo$','_sheetSkeletonManagerService','kind','parseInt','_collaborationSessionService','clickable','_colorIndex','green.600','symbol','_imageIoService','get','deepClone','replace','getScrollXYInfoByViewport','collaboration-client-ui.collaboration.offline-data-not-saved','_pendingEntities','_normalizeUserId','_drawRectRange','labelPosition','_getSaveTimeout','collaboration-client-ui.collabStatus.notCollab','true','DeleteRangeMoveUpCommandId','_collabSessionService','min','name','changesetResend$','getFocusedUnit','setConfig','top','number','ERROR','runOnServer','_refreshCollabCursors','jiqing.500','getCollabCursors$','getRangePointData','startRow','state$','lineTo','_getSheetObject','_trackActiveSaveTask','unsubscribe','update','collaboration-client-ui.config','presenceKind','collaboration-client-ui.snapshotLoading.timeout','imageSourceType','span','_unitOnClients','sheetId','_registerDependencies','runId','saveOfflineData','filter','_range','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_activeSaveTaskMap','clearTimeout','setActiveRange','pageIndex','max','_removeClearOtherTimer','exhaustSavingTask','_session','unitID','button','getCurrentUnitOfType','#FFF','contains','focusedId','InsertRangeMoveRightCommandId','event$','_listenToOfflineEvent','segmentPage','all','small','type','_configService','_retryConflictCacheClear','isActive','_memberID','setOffsetY','_replaceConflictNotification','title','split','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_shapes','toString','onLine','transformStateCache','[Unhandled\x20Rejection]:\x20','endRow','OFFLINE','_transformHistoryAndStateStack','message','localPresence$','_docStateChangeManagerService','...','engine','setShapeProps','collaboration-client-ui.conflict.title','_handleEvent','reconnect','unitId','_cursors','unload','_adapterDisposables','OTHER_CLIENT_EDITING','now','_lastPointer','getMember','arc','InsertRangeMoveDownCommandId','getCollabEntity$','[LogService\x20Error]:\x20','_updateMessage','length','rgba(','doc.mutation.rich-text-editing','visible','startOffset','registerComponent','1082RYoetu','sessionStatus$','online$','_transformUndoRedoStack','_initConflictHandling','override','_initUserListener','COMPLETE','SYNCED','addClipboardHook','GET','_initEntityListener','rgb','reload','setAlpha','visibilityState','_cursor','LOADING_BLOCKS','_startEntity','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_highlightSecond','transform','_onRefRangeChange','key','colno','transformMutationsWithChangeset','getCurrentSkeleton','_showConflictProcessingNotification','enableOfflineEditing','UPDATE_CURSOR','tooltipKey','toRgbString','newValue','_unitStatus','next','getValue','socket$','pointer','state','184708vCGgcU','saveTaskMap','collaboration-client-ui.license.domain-rejected','_docSyncEditingCollabCursorService','_getScale','_eventUnsubscribe','_uploadLog','Enter','getCoordRelativeToViewport','HEADER_MENU','value','selection','pluginName','getCellIndexByOffset','with','InsertColCommandId','_docSkeletonManagerService','transformMutation','onCommandExecuted','removeItem','_onCursorUpdate','evenodd','univer-text-blue-500','_uiPartsService','polite','i18nKey','_docTransformSelectionsService','univer-flex\x20univer-items-center\x20univer-justify-center','application/json','values','_memberService','stringify','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','pulse','collaboration-client-ui.collabStatus.offline','VIEW_MAIN','memberId','OTHER_CLIENTS_EDITING','_beforeCloseService','options','_handleLeaveEvent','_handleJoinEvent','call','_getLighterColor','decorate','_drawTextRange','_status$','selectedIds','_initCommandExecutedListener','collaboration-client-ui.collaboration.single-unit.warning','userId','AWAITING','offsetY','startColumn','_clearOtherTimers','has','getSheetId','stack','onPointerLeave$','_highlight','getMergeData','_render','getCurrentUser','getCurrentRevOfUnit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_ensureSubject','onPointerMove$','7044wCqIFr','_initAwaitingNotices','_labelPosition','SOCKET_FAILED','clear','rgba','_collabCursorController','DeleteRangeMoveLeftCommandId','set','object','_univerInstanceService','preventDefault','_transformService','_disabled','_syncAdapters','subscribe','_listenToOnlineEvent','triggerDblclick','_messageIds','_online','_color','setInterval','code','_localStorageService','version','show','_registerRenderDependencies','entries','_revisionService','_docTransformStateCacheService','entityInit$','collab-text-range-','getSelectionInfo','unitType','syncEditingCollabCursor','_hideTimer','collab-text-anchor-','online','cursorInfo$','alert','_showConflictCacheClearFailedNotification','forEach','removeEventListener','map','includes','timeoutId','ranges','resolve','_saveTimedOutNotices','univer-text-gray-400','_removeAwaitingNotices','executionId','m1Prime','tableId','refreshLabel','_anchorDot','purple.300','_stopBlinking','_showAwaitingNotice','editingUnit','roomMembers','height','remove','color','eventID','[Window\x20Error]:\x20','_messageService','_timeoutState$','_initialized','static','hovered','save','textRanges','subUnitId','body','_document','getItem','highlightSecond','unhandledrejection','showText','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','searchParams','_initStatusComponent','endColumn','univer-text-orange-500','PENDING','getStateCache','_initPresenceStatusComponents','post','_drawAnchor','getDocRanges','_disposed','_handleHover','data','_createSocketURL','_initUnhandledRejectionListener','addObjects','_hovered','collaboration-client-ui.conflict.clearFailed','yellow.400','_cachedData','_docSkeleton','from','_entities','setUndoRedoMutationParamsCache','_saveTaskMap','registerCommand','NO_OTHER_CLIENTS_EDITING','_hover','rgba(255,\x20255,\x20255,\x200.01)','0.2)','stage','prototype','snapshot-loading-timeout','enableDocumentCollaborationUI','unshift','_dispose$','collaboration-client-ui.session.connection-failed','_removeCollabCursors','fill','allSettled','_handleHeartbeatEvent','getSkeleton','_doCreateSocket','measureText','collaboration-client-ui.collabClient.tooltip.reconnect','clearInterval','disposeUnit','setStateCache','_getSessionTicket','bold\x2013px\x20Arial,\x20sans-serif','collaboration-client-ui.collabStatus.conflict','hide','collaboration-client-ui.remoteRevert.content','addHandlerCallback','_offsetY','shareInterval','saveImage','asObservable','1145fXttWj','univer-transition-all\x20univer-duration-200','every','4629496xZcefX','_toggleOnline','find','_conflictNotification','totalBlocks','_blinkTimer','RECT','_editingConnectionsExceededNotices','_scene','collab-rect-range-','getLocalPresence','Error','left','removeRemotePresence','send','getMemberID','then','_colorAssignService','getUnitId','invokeId','_localeService','_transformPreviousActiveRange','error','undoState','setRemotePresence','createSocket','visibilitychange','complete','constructor','_disposeEntity','_syncEditingCollabCursorService','collaboration-client-ui.collabStatus.fetchMiss','Warning','_entityInit$','_commandService','init','_context','add','_cursorShapes','getOwnPropertyDescriptor','transformByState','_send','1870wClEhe','_clearRemotePresences','loadOfflineData','_adapter'];_0x1027=function(){return _0x182f6e;};return _0x1027();}Hn=Y([J(0x0,_0x41fd3c),J(0x1,_0xb5f914)],Hn);let Un=class{constructor(_0x4dd2d1,_0x3b7f06,_0x55e65d){const _0x3e821e=_0x52f5fd;this[_0x3e821e(0x412)]=_0x4dd2d1,this[_0x3e821e(0x2e7)]=_0x3b7f06,this[_0x3e821e(0x257)]=_0x55e65d;}[_0x52f5fd(0x250)](_0x4719f1){const _0x89902f=_0x52f5fd;this[_0x89902f(0x254)](_0x4719f1);}[_0x52f5fd(0x439)](_0x51a852){const _0x1f750a=_0x52f5fd;let {unitID:_0x18e172}=_0x51a852,{collaboration:_0x278255}=this[_0x1f750a(0x257)][_0x1f750a(0x331)](_0x18e172);if(_0x278255[_0x1f750a(0x26b)]===0x0)return _0x51a852;let _0x5b2aba=_0x3b08db[_0x1f750a(0x201)](_0x51a852[_0x1f750a(0x1ea)][0x0]);for(let _0x5208b6=0x0;_0x5208b6<_0x278255[_0x1f750a(0x26b)];_0x5208b6++){let _0x30c9bf={'id':_0x1f750a(0x26d),'params':{'unitId':_0x278255[_0x5208b6]['unitId'],..._0x278255[_0x5208b6][_0x1f750a(0x39b)]}},_0x1d46fd=this[_0x1f750a(0x2e7)][_0x1f750a(0x2a9)](_0x5b2aba,_0x30c9bf,!0x1);if(_0x36dbeb(_0x1d46fd))throw _0x1d46fd[_0x1f750a(0x37f)];_0x5b2aba=_0x1d46fd[_0x1f750a(0x30f)];}return{..._0x3b08db[_0x1f750a(0x201)](_0x51a852),'mutations':[_0x5b2aba]};}[_0x52f5fd(0x254)](_0x4924a5){const _0x29a7c3=_0x52f5fd;let {unitID:_0x42eb7a}=_0x4924a5,{history:_0x3be5fb,collaboration:_0x159f8b}=this[_0x29a7c3(0x257)]['getStateCache'](_0x42eb7a);if(_0x3be5fb[_0x29a7c3(0x26b)]===0x0&&_0x159f8b[_0x29a7c3(0x26b)]===0x0)return;let _0x516c3a=[],_0x29a84f=[],_0x269ff3=_0x3b08db[_0x29a7c3(0x201)](_0x4924a5[_0x29a7c3(0x1ea)][0x0]),_0x47c23a=_0x3b08db[_0x29a7c3(0x201)](_0x4924a5[_0x29a7c3(0x1ea)][0x0]);for(let _0x5cf6e8=_0x3be5fb[_0x29a7c3(0x26b)]-0x1;_0x5cf6e8>=0x0;_0x5cf6e8--){let _0x4e0a1e={'id':_0x29a7c3(0x26d),'params':{'unitId':_0x3be5fb[_0x5cf6e8][_0x29a7c3(0x25e)],..._0x3be5fb[_0x5cf6e8][_0x29a7c3(0x380)]}},_0x3316b9={'id':_0x29a7c3(0x26d),'params':{'unitId':_0x3be5fb[_0x5cf6e8][_0x29a7c3(0x25e)],..._0x3be5fb[_0x5cf6e8][_0x29a7c3(0x39b)]}},_0x4ed9a5=this['_transformService'][_0x29a7c3(0x2a9)](_0x269ff3,_0x4e0a1e,!0x1),_0x2f991c=this[_0x29a7c3(0x2e7)]['transformMutation'](_0x47c23a,_0x3316b9,!0x1);if(_0x36dbeb(_0x4ed9a5))throw _0x4ed9a5['error'];if(_0x36dbeb(_0x2f991c))throw _0x2f991c['error'];_0x516c3a[_0x29a7c3(0x34e)]({..._0x3be5fb[_0x5cf6e8],'undoState':_0x4ed9a5[_0x29a7c3(0x44d)][_0x29a7c3(0x1d3)],'redoState':_0x2f991c['m2Prime'][_0x29a7c3(0x1d3)]}),_0x269ff3=_0x4ed9a5[_0x29a7c3(0x30f)],_0x47c23a=_0x2f991c['m1Prime'];}_0x269ff3=_0x3b08db[_0x29a7c3(0x201)](_0x4924a5['mutations'][0x0]),_0x47c23a=_0x3b08db[_0x29a7c3(0x201)](_0x4924a5[_0x29a7c3(0x1ea)][0x0]);for(let _0x96f960=_0x159f8b['length']-0x1;_0x96f960>=0x0;_0x96f960--){let _0x13cfd1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x159f8b[_0x96f960][_0x29a7c3(0x25e)],..._0x159f8b[_0x96f960]['undoState']}},_0x144f56={'id':_0x29a7c3(0x26d),'params':{'unitId':_0x159f8b[_0x96f960][_0x29a7c3(0x25e)],..._0x159f8b[_0x96f960]['redoState']}},_0x233b8a=this[_0x29a7c3(0x2e7)][_0x29a7c3(0x2a9)](_0x269ff3,_0x13cfd1,!0x1),_0x6067d4=this['_transformService'][_0x29a7c3(0x2a9)](_0x47c23a,_0x144f56,!0x1);if(_0x36dbeb(_0x233b8a))throw _0x233b8a['error'];if(_0x36dbeb(_0x6067d4))throw _0x6067d4[_0x29a7c3(0x37f)];_0x29a84f[_0x29a7c3(0x34e)]({..._0x159f8b[_0x96f960],'undoState':_0x233b8a[_0x29a7c3(0x44d)][_0x29a7c3(0x1d3)],'redoState':_0x6067d4[_0x29a7c3(0x44d)]['params']}),_0x269ff3=_0x233b8a[_0x29a7c3(0x30f)],_0x47c23a=_0x6067d4[_0x29a7c3(0x30f)];}this[_0x29a7c3(0x257)][_0x29a7c3(0x35b)](_0x42eb7a,{'history':_0x516c3a,'collaboration':_0x29a84f});}};Un=Y([J(0x0,_0x1123ef(_0x1f50b7)),J(0x1,_0x41fd3c),J(0x2,_0x1123ef(_0x2a967c))],Un);let Q=class{constructor(_0x6f9c35,_0x23d09a){const _0x578aee=_0x52f5fd;this[_0x578aee(0x3cd)]=_0x6f9c35,this['_transformService']=_0x23d09a;}['prepareTransformSelections'](_0x40e889){const _0x37fd6e=_0x52f5fd;var _0x3cc4e8;let _0xfd6ce5=this[_0x37fd6e(0x3cd)][_0x37fd6e(0x335)]()??[],_0x23e127=this[_0x37fd6e(0x3cd)][_0x37fd6e(0x2fb)]();if(_0xfd6ce5[_0x37fd6e(0x26b)]===0x0||_0x23e127==null)return null;let _0x25414b=_0x40e889[_0x37fd6e(0x237)],_0x496fa2=[{'id':_0x37fd6e(0x26d),'params':{'unitId':_0x25414b,'actions':null,'textRanges':_0xfd6ce5}}],_0x25ca8a=this[_0x37fd6e(0x2e7)][_0x37fd6e(0x28a)](_0x40e889,_0x496fa2);if(!_0x53f4fc(_0x25ca8a))throw _0x25ca8a[_0x37fd6e(0x37f)];let _0x38227d=(_0x3cc4e8=_0x25ca8a[_0x37fd6e(0x44d)][0x0])==null?void 0x0:_0x3cc4e8['params'],_0x300fb8=_0x38227d&&typeof _0x38227d=='object'&&'textRanges'in _0x38227d?_0x38227d[_0x37fd6e(0x323)]:null;if(!Kn(_0x300fb8))return null;let _0x1c4777=Wn(_0x40e889[_0x37fd6e(0x1ea)]['some'](_0x287806=>qn(_0x287806[_0x37fd6e(0x1d3)]))?_0x300fb8[_0x37fd6e(0x22c)](_0x2153a6=>!(_0x37fd6e(0x310)in _0x2153a6)):_0x300fb8,{..._0x23e127,'options':_0x23e127[_0x37fd6e(0x2bf)]?{..._0x23e127['options'],'wholeDocument':!0x1}:void 0x0}),_0x148537={'unitId':_0x25414b,'subUnitId':_0x25414b};this[_0x37fd6e(0x3cd)]['replaceSelectionInfoWithoutRefresh'](_0x1c4777,_0x148537);let _0x4e36fa=!0x0;return{'commit':()=>{_0x4e36fa=!0x1;},'rollback':()=>{const _0x45a3b9=_0x37fd6e;_0x4e36fa&&(_0x4e36fa=!0x1,this[_0x45a3b9(0x3cd)][_0x45a3b9(0x3ec)](_0x23e127,_0x148537));}};}};Q=Y([J(0x0,_0x1123ef(_0x10c16a)),J(0x1,_0x41fd3c)],Q);function Wn(_0x266a9a,_0x450725){const _0x58fdc1=_0x52f5fd;let _0x271ebf=[],_0x5bbad1=[];for(let _0x4ef5e3 of _0x266a9a)Gn(_0x4ef5e3)?_0x5bbad1[_0x58fdc1(0x44a)](_0x4ef5e3):_0x271ebf['push'](_0x4ef5e3);return{..._0x450725,'textRanges':_0x271ebf,'rectRanges':_0x5bbad1};}function Gn(_0x1b2b2f){const _0x31ee86=_0x52f5fd;return _0x31ee86(0x310)in _0x1b2b2f;}function Kn(_0x421faa){const _0x56812a=_0x52f5fd;return Array['isArray'](_0x421faa)&&_0x421faa[_0x56812a(0x368)](_0x5820b4=>typeof _0x5820b4==_0x56812a(0x2e4)&&!!_0x5820b4&&_0x56812a(0x26f)in _0x5820b4&&'endOffset'in _0x5820b4);}function qn(_0x3ac7c9){const _0x1f36dc=_0x52f5fd;return _0x3ac7c9==='tableSource'?!0x0:Array[_0x1f36dc(0x3e8)](_0x3ac7c9)?_0x3ac7c9['some'](_0x109f53=>qn(_0x109f53)):!_0x3ac7c9||typeof _0x3ac7c9!=_0x1f36dc(0x2e4)?!0x1:Object[_0x1f36dc(0x2b5)](_0x3ac7c9)[_0x1f36dc(0x44c)](_0x10631b=>qn(_0x10631b));}let Jn=class extends _0x200dbf{constructor(_0x3eb370,_0x5914dc,_0x4cd14c,_0x412c80,_0xc0d238,_0x253503,_0x27787f){const _0x478842=_0x52f5fd;super(),this[_0x478842(0x40e)]=_0x3eb370,this[_0x478842(0x3d3)]=_0x5914dc,this[_0x478842(0x2f8)]=_0x4cd14c,this[_0x478842(0x2b2)]=_0x412c80,this[_0x478842(0x29b)]=_0xc0d238,this[_0x478842(0x31d)]=_0x253503,this[_0x478842(0x37d)]=_0x27787f,q(this,_0x478842(0x2c6),new _0x22e98f(_0x342e1d[_0x478842(0x40c)])),this[_0x478842(0x27c)]();}[_0x52f5fd(0x27c)](){const _0x2c8761=_0x52f5fd;this['disposeWithMe'](this[_0x2c8761(0x40e)][_0x2c8761(0x2f9)][_0x2c8761(0x2ea)](_0x234d65=>{const _0x1e22fc=_0x2c8761;_0x234d65 instanceof _0x29bec0&&_0x234d65[_0x1e22fc(0x361)]({'onTransformIME':_0x201d34=>this[_0x1e22fc(0x3d3)]['transformIMECache'](_0x201d34),'onTransformState':_0x44b181=>this[_0x1e22fc(0x2f8)]['transformStateCache'](_0x44b181),'onPrepareTransformSelections':_0x1bd063=>this[_0x1e22fc(0x2b2)]['prepareTransformSelections'](_0x1bd063),'onSyncEditingCollabCursor':_0x27fcf6=>this[_0x1e22fc(0x29b)][_0x1e22fc(0x2fd)](_0x27fcf6),'onTransformRemoteChangesetByIMECache':_0x28bc1a=>this[_0x1e22fc(0x3d3)][_0x1e22fc(0x439)](_0x28bc1a),'onTransformRemoteChangesetByStateCache':_0x582544=>this[_0x1e22fc(0x2f8)][_0x1e22fc(0x439)](_0x582544)});}));}};Jn=Y([J(0x0,_0x1123ef(_0x1696b1)),J(0x1,_0x1123ef(Hn)),J(0x2,_0x1123ef(Un)),J(0x3,_0x1123ef(Q)),J(0x4,_0x1123ef(_n)),J(0x5,_0x288aef),J(0x6,_0x1123ef(_0x6a51f2))],Jn);let Yn=class extends _0x200dbf{constructor(_0x1293f4,_0x57cc7b,_0xc311f,_0x4a59f5){const _0x21ab4b=_0x52f5fd;super(),this[_0x21ab4b(0x412)]=_0x1293f4,this[_0x21ab4b(0x44b)]=_0x57cc7b,this[_0x21ab4b(0x451)]=_0xc311f,this['_collaborationSessionService']=_0x4a59f5,q(this,_0x21ab4b(0x247),void 0x0),this['_init']();}[_0x52f5fd(0x432)](){const _0x1dc7a9=_0x52f5fd;this[_0x1dc7a9(0x3b1)](),this[_0x1dc7a9(0x33a)](),this[_0x1dc7a9(0x419)](),this[_0x1dc7a9(0x277)]();}[_0x52f5fd(0x277)](){const _0x14aa81=_0x52f5fd;this[_0x14aa81(0x3e0)](this[_0x14aa81(0x1fa)][_0x14aa81(0x295)][_0x14aa81(0x2ea)](_0x484349=>{const _0x3ea6b9=_0x14aa81;this['_memberID']=_0x484349==null?void 0x0:_0x484349[_0x3ea6b9(0x3ca)];}));}['_initWindowErrorListener'](){const _0x362467=_0x52f5fd;let _0x1bf839=_0x3a8039=>{const _0x1bee90=_0x1ddb;var _0x10ae48;this[_0x1bee90(0x29e)](_0x1bee90(0x37f),_0x1bee90(0x31c)+_0x3a8039[_0x1bee90(0x255)]+_0x1bee90(0x41c)+_0x3a8039['filename']+':'+_0x3a8039[_0x1bee90(0x418)]+':'+_0x3a8039[_0x1bee90(0x289)]+'\x0a'+(((_0x10ae48=_0x3a8039[_0x1bee90(0x37f)])==null?void 0x0:_0x10ae48['stack'])||''));};window[_0x362467(0x3bb)](_0x362467(0x37f),_0x1bf839),this[_0x362467(0x3e0)](()=>{window['removeEventListener']('error',_0x1bf839);});}['_initUnhandledRejectionListener'](){const _0x18d1e8=_0x52f5fd;let _0x5167ba=_0x5ac864=>{const _0x4902f5=_0x1ddb;this[_0x4902f5(0x29e)](_0x4902f5(0x37f),_0x4902f5(0x251)+_0x5ac864[_0x4902f5(0x3a7)]);};window[_0x18d1e8(0x3bb)](_0x18d1e8(0x329),_0x5167ba),this[_0x18d1e8(0x3e0)](()=>{const _0x3ff19b=_0x18d1e8;window[_0x3ff19b(0x305)](_0x3ff19b(0x329),_0x5167ba);});}['_monkeyPatchLogService'](){const _0x309866=_0x52f5fd;let _0x450ad8=this[_0x309866(0x451)][_0x309866(0x37f)]['bind'](this['_logService']);this['_logService'][_0x309866(0x37f)]=(..._0x290d5c)=>{const _0x21a6b0=_0x309866;let _0x3692d3=_0x290d5c[_0x21a6b0(0x306)](_0x573c01=>_0x573c01 instanceof Error?_0x573c01[_0x21a6b0(0x255)]+'\x0a'+_0x573c01[_0x21a6b0(0x2d1)]:String(_0x573c01))['join']('\x20');this['_uploadLog'](_0x21a6b0(0x37f),_0x21a6b0(0x269)+_0x3692d3),_0x450ad8(..._0x290d5c);},this[_0x309866(0x3e0)](()=>{const _0x1cd3c3=_0x309866;this[_0x1cd3c3(0x451)][_0x1cd3c3(0x37f)]=_0x450ad8;});}[_0x52f5fd(0x29e)](_0x401d36,_0x571a1e){const _0x2cbcb7=_0x52f5fd;try{let _0x1769ab={'userId':this[_0x2cbcb7(0x247)],'logLabel':_0x401d36,'content':_0x571a1e};this['_httpService']['post'](_0x2cbcb7(0x406),{'body':_0x1769ab})[_0x2cbcb7(0x1e2)](()=>{});}catch{}}};Yn=Y([J(0x0,_0x1123ef(_0x1f50b7)),J(0x1,_0x1123ef(_0xcdb063)),J(0x2,_0xb342d0),J(0x3,_0x1123ef(_0x27b258))],Yn);function Xn({state$:_0x7ae797}){const _0x23b69c=_0x52f5fd;let _0x5a344d=_0x10a260(_0x7ae797,null,!0x0);return _0x5a344d?_0x4cbcd0(_0x23b69c(0x411),{'data-u-comp':_0x23b69c(0x34c),'role':_0x23b69c(0x302),'className':_0x23b69c(0x32b),'children':[_0x45e08e(_0x2c0566,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x45e08e(_0x23b69c(0x226),{'children':_0x5a344d[_0x23b69c(0x437)]}),_0x45e08e(_0x558f08,{'size':_0x23b69c(0x242),'variant':'primary','onClick':()=>window['location'][_0x23b69c(0x27e)](),'children':_0x5a344d[_0x23b69c(0x311)]})]}):null;}const Zn=_0x52f5fd(0x3db);let Qn=class extends _0x200dbf{constructor(_0x439578,_0x27a856,_0x4f280f,_0x44c056,_0x2e6ca1){const _0x2ffef2=_0x52f5fd;super(),this[_0x2ffef2(0x444)]=_0x439578,this['_messageService']=_0x27a856,this[_0x2ffef2(0x37d)]=_0x4f280f,this[_0x2ffef2(0x412)]=_0x44c056,q(this,_0x2ffef2(0x31e),new _0x22e98f(null)),q(this,_0x2ffef2(0x2ed),new Set()),q(this,_0x2ffef2(0x3bd),new Map()),q(this,_0x2ffef2(0x402),this[_0x2ffef2(0x31e)][_0x2ffef2(0x365)]());let _0x336e3c=()=>_0x313d6d(Xn,{'state$':this['timeoutState$']});this['disposeWithMe'](_0x2e6ca1[_0x2ffef2(0x270)](_0x14210c['GLOBAL'],()=>_0x1b4da3(_0x336e3c,this[_0x2ffef2(0x412)]))),this[_0x2ffef2(0x3e0)](this[_0x2ffef2(0x444)][_0x2ffef2(0x21c)][_0x2ffef2(0x2ea)](_0x149b08=>{const _0x4fd5a1=_0x2ffef2;_0x149b08[_0x4fd5a1(0x304)](_0x56b695=>this[_0x4fd5a1(0x26a)](_0x56b695));}));}[_0x52f5fd(0x3c5)](){const _0x4294e8=_0x52f5fd;this[_0x4294e8(0x2ed)][_0x4294e8(0x304)](_0x4d749e=>this[_0x4294e8(0x31d)][_0x4294e8(0x319)](_0x4d749e)),this[_0x4294e8(0x2ed)][_0x4294e8(0x2df)](),this[_0x4294e8(0x3bd)][_0x4294e8(0x304)](({timeoutId:_0x361379})=>clearTimeout(_0x361379)),this[_0x4294e8(0x3bd)][_0x4294e8(0x2df)](),this[_0x4294e8(0x31e)]['complete'](),super[_0x4294e8(0x3c5)]();}[_0x52f5fd(0x26a)](_0x554ba6){const _0x2fe750=_0x52f5fd;let _0x21244a=''+Zn+_0x554ba6['unitId'];_0x554ba6['stage']===_0x2f72cc[_0x2fe750(0x278)]?(this[_0x2fe750(0x427)](_0x554ba6[_0x2fe750(0x25e)]),this[_0x2fe750(0x436)](_0x554ba6['unitId']),this[_0x2fe750(0x31d)][_0x2fe750(0x319)](_0x21244a),this[_0x2fe750(0x2ed)][_0x2fe750(0x44e)](_0x21244a)):_0x554ba6[_0x2fe750(0x34a)]===_0x2f72cc[_0x2fe750(0x215)]?(this[_0x2fe750(0x427)](_0x554ba6[_0x2fe750(0x25e)]),this[_0x2fe750(0x436)](_0x554ba6[_0x2fe750(0x25e)]),this[_0x2fe750(0x31d)][_0x2fe750(0x2f4)]({'id':_0x21244a,'type':_0x120f45[_0x2fe750(0x374)],'content':this[_0x2fe750(0x37d)]['t'](_0x2fe750(0x350))}),this[_0x2fe750(0x2ed)][_0x2fe750(0x44e)](_0x21244a)):_0x554ba6['stage']!==_0x2f72cc[_0x2fe750(0x282)]||_0x554ba6[_0x2fe750(0x36d)]<=0xa?(this[_0x2fe750(0x427)](_0x554ba6[_0x2fe750(0x25e)]),this[_0x2fe750(0x31d)]['remove'](_0x21244a),this[_0x2fe750(0x2ed)]['delete'](_0x21244a)):this['_watchBlockProgress'](_0x554ba6)||(this[_0x2fe750(0x31d)][_0x2fe750(0x2f4)]({'id':_0x21244a,'type':_0x120f45[_0x2fe750(0x3c2)],'duration':0x1/0x0,'content':this[_0x2fe750(0x37d)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x554ba6['loadedBlocks']+'/'+_0x554ba6[_0x2fe750(0x36d)]}),this[_0x2fe750(0x2ed)]['add'](_0x21244a));}[_0x52f5fd(0x39d)](_0x64c2c7){const _0x4ade32=_0x52f5fd;let _0x899bee=this[_0x4ade32(0x3bd)][_0x4ade32(0x200)](_0x64c2c7[_0x4ade32(0x25e)]);if((_0x899bee==null?void 0x0:_0x899bee[_0x4ade32(0x3a2)])===_0x64c2c7[_0x4ade32(0x3a2)])return _0x899bee[_0x4ade32(0x438)];this[_0x4ade32(0x427)](_0x64c2c7[_0x4ade32(0x25e)]);let _0x218eb2=setTimeout(()=>{const _0x1d4ede=_0x4ade32;let _0x2470dd=this[_0x1d4ede(0x3bd)][_0x1d4ede(0x200)](_0x64c2c7[_0x1d4ede(0x25e)]);if(!_0x2470dd||_0x2470dd[_0x1d4ede(0x308)]!==_0x218eb2)return;_0x2470dd[_0x1d4ede(0x438)]=!0x0;let _0x42286f=''+Zn+_0x64c2c7[_0x1d4ede(0x25e)];this[_0x1d4ede(0x31d)][_0x1d4ede(0x319)](_0x42286f),this[_0x1d4ede(0x2ed)]['delete'](_0x42286f),this['_timeoutState$']['next']({'unitId':_0x64c2c7[_0x1d4ede(0x25e)],'content':this[_0x1d4ede(0x37d)]['t'](_0x1d4ede(0x224),String(_0x64c2c7[_0x1d4ede(0x3a2)]),String(_0x64c2c7['totalBlocks'])),'refreshLabel':this[_0x1d4ede(0x37d)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0x4ade32(0x3bd)][_0x4ade32(0x2e3)](_0x64c2c7[_0x4ade32(0x25e)],{'loadedBlocks':_0x64c2c7[_0x4ade32(0x3a2)],'timedOut':!0x1,'timeoutId':_0x218eb2}),!0x1;}[_0x52f5fd(0x427)](_0x8735b7){const _0x5c8b4b=_0x52f5fd;let _0x3814b4=this[_0x5c8b4b(0x3bd)][_0x5c8b4b(0x200)](_0x8735b7);_0x3814b4&&(clearTimeout(_0x3814b4['timeoutId']),this['_blockProgressWatches']['delete'](_0x8735b7),this[_0x5c8b4b(0x436)](_0x8735b7));}[_0x52f5fd(0x436)](_0x21bb33){const _0x4961eb=_0x52f5fd;var _0x54794a;((_0x54794a=this[_0x4961eb(0x31e)][_0x4961eb(0x2a2)])==null?void 0x0:_0x54794a[_0x4961eb(0x25e)])===_0x21bb33&&this[_0x4961eb(0x31e)][_0x4961eb(0x293)](null);}};Qn=Y([J(0x0,_0x1123ef(_0x59eb48)),J(0x1,_0x288aef),J(0x2,_0x1123ef(_0x6a51f2)),J(0x3,_0x1123ef(_0x1f50b7)),J(0x4,_0x2d3d02)],Qn);let $n=class extends _0x200dbf{constructor(_0x2fd6fd,_0x15a9d3,_0x35a52b,_0x296d0d,_0x4546c8){const _0x2d7c23=_0x52f5fd;var _0x2ecee1;super(),this[_0x2d7c23(0x244)]=_0x2fd6fd,this[_0x2d7c23(0x2f2)]=_0x15a9d3,this[_0x2d7c23(0x2f7)]=_0x35a52b,this['_logService']=_0x296d0d,this[_0x2d7c23(0x448)]=_0x4546c8,q(this,_0x2d7c23(0x33f),new Map()),q(this,_0x2d7c23(0x344),new Map()),q(this,'_activeSaveTaskMap',new Map()),q(this,_0x2d7c23(0x2e8),!0x1),this['_disabled']=!((_0x2ecee1=this['_configService'][_0x2d7c23(0x42c)](_0x292787))!=null&&_0x2ecee1[_0x2d7c23(0x28d)]);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x52f5fd(0x1da)](){const _0x155f5b=_0x52f5fd;this[_0x155f5b(0x2e8)]=!0x1;}get[_0x52f5fd(0x299)](){const _0x4334b7=_0x52f5fd;let _0x27fe0e=new Map(this[_0x4334b7(0x344)]);return this[_0x4334b7(0x22f)]['forEach']((_0x554ae2,_0x3357e4)=>{const _0x70d23b=_0x4334b7;_0x27fe0e[_0x70d23b(0x2cf)](_0x3357e4)||_0x27fe0e[_0x70d23b(0x2e3)](_0x3357e4,0x0);}),_0x27fe0e;}[_0x52f5fd(0x3c5)](){const _0x10ebd1=_0x52f5fd;this['_disposed']||(super[_0x10ebd1(0x3c5)](),this[_0x10ebd1(0x2e8)]=!0x0,this[_0x10ebd1(0x235)]()[_0x10ebd1(0x1e2)](_0x301b86=>this[_0x10ebd1(0x451)][_0x10ebd1(0x37f)](_0x301b86)));}async[_0x52f5fd(0x395)](_0x3d6387,_0x39db22){const _0x120eb8=_0x52f5fd;if(this['_disabled'])return null;let _0x386aa0=this['_getUserId'](_0x39db22),_0x28632f=await this[_0x120eb8(0x2f2)][_0x120eb8(0x327)](_0x4f6aa4(_0x3d6387,_0x386aa0));return(_0x28632f==null?void 0x0:_0x28632f[_0x120eb8(0x237)])===_0x3d6387&&this['_normalizeUserId'](_0x28632f[_0x120eb8(0x2ca)])===_0x386aa0?_0x28632f:null;}async[_0x52f5fd(0x22b)](_0x132146,_0xf2db,_0x4a3155){const _0x45cb96=_0x52f5fd;let _0x2810b3=this['_getUserId'](_0x4a3155),_0x22eec5=_0x4f6aa4(_0x132146,_0x2810b3),_0x555a73=this[_0x45cb96(0x2f2)][_0x45cb96(0x40f)](_0x22eec5,{..._0xf2db,'unitID':_0x132146,'userId':_0x2810b3});return this[_0x45cb96(0x21f)](_0x22eec5,_0x555a73),!!await _0x555a73;}async['backupOfflineData'](_0x554cf8,_0x433d20,_0x51fe51){const _0x5d8ce3=_0x52f5fd;let _0x2470a1=this[_0x5d8ce3(0x3a5)](_0x51fe51),_0x49b5cb=_0x4f6aa4(_0x554cf8,_0x2470a1),_0x30a4c3=this['_cachedData'][_0x5d8ce3(0x200)](_0x49b5cb)??await this[_0x5d8ce3(0x2f2)]['getItem'](_0x49b5cb);if(!_0x30a4c3||this[_0x5d8ce3(0x206)](_0x30a4c3[_0x5d8ce3(0x2ca)])!==_0x2470a1||_0x30a4c3[_0x5d8ce3(0x237)]!==_0x554cf8)return;let _0x1086c1=Date[_0x5d8ce3(0x263)](),_0x847b6d=new Date(_0x1086c1)[_0x5d8ce3(0x3de)]();await this[_0x5d8ce3(0x2f2)]['setItem'](_0x49b5cb+_0x5d8ce3(0x3d2)+_0x1086c1,{'reason':_0x433d20,'createdAt':_0x847b6d,'data':_0x30a4c3});}async['clearOfflineData'](_0x11f5e3,_0x3381be){const _0x295261=_0x52f5fd;let _0xb78f02=this['_getUserId'](_0x3381be),_0x183704=_0x4f6aa4(_0x11f5e3,_0xb78f02),_0x4d386d=this[_0x295261(0x344)][_0x295261(0x200)](_0x183704);_0x4d386d!==void 0x0&&(window['clearTimeout'](_0x4d386d),this['_saveTaskMap'][_0x295261(0x44e)](_0x183704));let _0x4d8047=this[_0x295261(0x22f)]['get'](_0x183704);_0x4d8047&&await Promise['allSettled'](_0x4d8047),this['_cachedData']['delete'](_0x183704),await this[_0x295261(0x2f2)][_0x295261(0x2ab)](_0x183704);}['updateOfflineData'](_0x556155,_0x299b90,_0x32a92d,_0x2e6376,_0x3bb813){const _0x9d1e58=_0x52f5fd;if(this['_disposed'])return;let _0x4c9dc8=this[_0x9d1e58(0x3a5)](_0x3bb813),_0x28f0d9=_0x4f6aa4(_0x556155,_0x4c9dc8),_0x138834=this['_revisionService'][_0x9d1e58(0x2d7)](_0x556155);this[_0x9d1e58(0x33f)][_0x9d1e58(0x2e3)](_0x28f0d9,{'unitID':_0x556155,'userId':_0x4c9dc8,'type':_0x299b90,'awaitingChangeset':_0x32a92d,'mutations':_0x2e6376,'rev':_0x138834}),this[_0x9d1e58(0x344)][_0x9d1e58(0x2cf)](_0x28f0d9)||this[_0x9d1e58(0x3ad)](_0x28f0d9);}[_0x52f5fd(0x3a5)](_0x39ef6f=((()=>{const _0x39e4e8=_0x52f5fd;var _0xa322fa;return(_0xa322fa=this[_0x39e4e8(0x448)][_0x39e4e8(0x2d6)]())==null?void 0x0:_0xa322fa['userID'];})())){return this['_normalizeUserId'](_0x39ef6f);}[_0x52f5fd(0x206)](_0x14bba3){return _0x14bba3===''||_0x14bba3==null?void 0x0:_0x14bba3;}['_scheduleSaving'](_0x1ed7f8){const _0x6a3935=_0x52f5fd;let _0x3e9c67=this['_getSaveTimeout']();_0x3e9c67===0x0?this[_0x6a3935(0x39c)](_0x1ed7f8)[_0x6a3935(0x1e2)](_0x87227a=>this[_0x6a3935(0x451)][_0x6a3935(0x37f)](_0x87227a)):this[_0x6a3935(0x344)][_0x6a3935(0x2e3)](_0x1ed7f8,window['setTimeout'](()=>{const _0x231807=_0x6a3935;this['_saveCache'](_0x1ed7f8)['catch'](_0x475e84=>this[_0x231807(0x451)]['error'](_0x475e84));},_0x3e9c67));}[_0x52f5fd(0x209)](){const _0x2f9501=_0x52f5fd;return this[_0x2f9501(0x244)]['getConfig'](_0x52de38)??_0x7aeb24;}['_saveCache'](_0x16cc7f){const _0x50e7a8=_0x52f5fd;let _0x21a771=this[_0x50e7a8(0x344)]['get'](_0x16cc7f);_0x21a771!==void 0x0&&window[_0x50e7a8(0x230)](_0x21a771);let _0x30d1f0=this[_0x50e7a8(0x33f)][_0x50e7a8(0x200)](_0x16cc7f);if(!_0x30d1f0)return Promise[_0x50e7a8(0x30a)]();let _0x23b71b=this['_activeSaveTaskMap'][_0x50e7a8(0x200)](_0x16cc7f),_0x456ee7=Promise[_0x50e7a8(0x353)](_0x23b71b?[..._0x23b71b]:[])['then'](()=>this['_localStorageService'][_0x50e7a8(0x40f)](_0x16cc7f,_0x30d1f0))['then'](()=>{const _0x1e61ac=_0x50e7a8;_0x21a771!==void 0x0&&this[_0x1e61ac(0x344)][_0x1e61ac(0x200)](_0x16cc7f)===_0x21a771&&(this[_0x1e61ac(0x344)][_0x1e61ac(0x44e)](_0x16cc7f),!this[_0x1e61ac(0x336)]&&this[_0x1e61ac(0x33f)][_0x1e61ac(0x200)](_0x16cc7f)!==_0x30d1f0&&this[_0x1e61ac(0x3ad)](_0x16cc7f));});return this[_0x50e7a8(0x21f)](_0x16cc7f,_0x456ee7),_0x456ee7;}[_0x52f5fd(0x21f)](_0x30b9e5,_0x28964){const _0x1d6d1f=_0x52f5fd;let _0x22a09f=this[_0x1d6d1f(0x22f)][_0x1d6d1f(0x200)](_0x30b9e5);_0x22a09f||(_0x22a09f=new Set(),this[_0x1d6d1f(0x22f)][_0x1d6d1f(0x2e3)](_0x30b9e5,_0x22a09f)),_0x22a09f[_0x1d6d1f(0x38e)](_0x28964);let _0x4dee06=()=>{const _0x50088f=_0x1d6d1f;_0x22a09f['delete'](_0x28964),_0x22a09f[_0x50088f(0x3f1)]===0x0&&this[_0x50088f(0x22f)]['delete'](_0x30b9e5);};_0x28964[_0x1d6d1f(0x379)](_0x4dee06,_0x4dee06);}async['exhaustSavingTask'](){const _0x249855=_0x52f5fd;let _0x59b12d=[...this[_0x249855(0x344)][_0x249855(0x3b9)]()][_0x249855(0x306)](_0x251f4c=>this['_saveCache'](_0x251f4c));for(let _0x2f90e5 of this['_activeSaveTaskMap']['values']())_0x59b12d[_0x249855(0x44a)](...[..._0x2f90e5][_0x249855(0x306)](_0x4b792b=>_0x4b792b['then'](()=>void 0x0)));await Promise[_0x249855(0x241)](_0x59b12d);}};$n=Y([J(0x0,_0x5e768c),J(0x1,_0x24982b),J(0x2,_0x1123ef(_0x5d5320)),J(0x3,_0xb342d0),J(0x4,_0x1123ef(_0x207233))],$n);var er=class extends _0x200dbf{get['online'](){const _0x162110=_0x52f5fd;return this[_0x162110(0x410)][_0x162110(0x294)]();}constructor(){const _0xba039b=_0x52f5fd;super(),q(this,_0xba039b(0x410),new _0x22e98f(navigator['onLine'])),q(this,_0xba039b(0x273),this[_0xba039b(0x410)]['asObservable']()),this[_0xba039b(0x23f)](),this[_0xba039b(0x2eb)]();}[_0x52f5fd(0x3c5)](){const _0x43ae63=_0x52f5fd;super[_0x43ae63(0x3c5)](),this['_online$']['complete']();}[_0x52f5fd(0x2eb)](){const _0x307607=_0x52f5fd;this[_0x307607(0x3e0)](_0x12f427(_0x110dcb(window,_0x307607(0x300)),_0x110dcb(window,'focus'),_0x110dcb(document,_0x307607(0x383))[_0x307607(0x3c3)](_0x157206(()=>document[_0x307607(0x280)]===_0x307607(0x26e)),_0x45db35(_0x4ec59d=>_0x4ec59d)))[_0x307607(0x3c3)](_0x45db35(()=>navigator[_0x307607(0x24f)]))['subscribe'](()=>this[_0x307607(0x410)]['next'](!0x0)));}[_0x52f5fd(0x23f)](){const _0x378ce7=_0x52f5fd;this[_0x378ce7(0x3e0)](_0x110dcb(window,'offline')['subscribe'](()=>this['_online$'][_0x378ce7(0x293)](!0x1)));}};let $=class extends _0x19da3b{constructor(_0x102264=dn,_0x5e4d06,_0x36d005,_0x23518a,_0x18f0a5){const _0x35cd7c=_0x52f5fd;super(),this['_config']=_0x102264,this[_0x35cd7c(0x3eb)]=_0x5e4d06,this[_0x35cd7c(0x412)]=_0x36d005,this[_0x35cd7c(0x244)]=_0x23518a,this['_commandService']=_0x18f0a5;let {..._0x4f799f}=_0x113c29({},dn,this[_0x35cd7c(0x3c9)]);this[_0x35cd7c(0x244)][_0x35cd7c(0x212)](_0x35cd7c(0x222),_0x4f799f);}['onStarting'](){const _0x5ed9cb=_0x52f5fd;this[_0x5ed9cb(0x229)](),this[_0x5ed9cb(0x3e0)](this[_0x5ed9cb(0x38b)][_0x5ed9cb(0x345)](un)),this[_0x5ed9cb(0x416)]();}[_0x52f5fd(0x3d9)](){const _0x1ad01c=_0x52f5fd;this[_0x1ad01c(0x2f5)]();}[_0x52f5fd(0x229)](){const _0x5095a1=_0x52f5fd;var _0x1c7c33;let _0x11f8d6=[[mn],[_0x2d015b,{'useClass':_0x38b8b3}],[_0x18d32c,{'useClass':$n}],[_0x3bf55d,{'useClass':er}],[X],[Vn],[Z],[Ln],[Qn]];this[_0x5095a1(0x3c9)][_0x5095a1(0x34d)]!==!0x1&&_0x11f8d6[_0x5095a1(0x44a)]([Q],[Hn],[Un],[_n],[Jn],[fn]),this[_0x5095a1(0x3c9)][_0x5095a1(0x1f2)]&&_0x11f8d6['push']([Yn]),_0x49f879(this[_0x5095a1(0x412)],_0x503733(_0x11f8d6,(_0x1c7c33=this[_0x5095a1(0x3c9)])==null?void 0x0:_0x1c7c33[_0x5095a1(0x276)]));}[_0x52f5fd(0x2f5)](){const _0xc7d8b5=_0x52f5fd;this[_0xc7d8b5(0x3c9)][_0xc7d8b5(0x34d)]!==!0x1&&this[_0xc7d8b5(0x3e0)](this[_0xc7d8b5(0x3eb)][_0xc7d8b5(0x3f9)](_0x1b1692[_0xc7d8b5(0x40a)],[Dn])),this['disposeWithMe'](this[_0xc7d8b5(0x3eb)][_0xc7d8b5(0x3f9)](_0x1b1692[_0xc7d8b5(0x43d)],[kn]));}[_0x52f5fd(0x416)](){const _0x11221f=_0x52f5fd;_0x33fdb2(this['_injector'],[[Z],[Ln],[X],[Vn],[Qn]]),this[_0x11221f(0x3c9)][_0x11221f(0x34d)]!==!0x1&&_0x33fdb2(this['_injector'],[[Jn],[fn]]),this['_config'][_0x11221f(0x1f2)]&&_0x33fdb2(this[_0x11221f(0x412)],[[Yn]]);}};q($,_0x52f5fd(0x2a4),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),q($,'packageName',cn),q($,_0x52f5fd(0x2f3),ln),$=Y([_0x3e57be(_0x23107e,_0x6603c8,_0x22fbec,_0x557134,_0x1293ec,_0x3f3a27,_0x16153d),J(0x1,_0xb5f914),J(0x2,_0x1123ef(_0x1f50b7)),J(0x3,_0x5e768c),J(0x4,_0x146f3e)],$);let tr=class extends _0x593d68{constructor(_0x8ad596,_0x5d02f6,_0x146a44,_0x4d3bdc,_0x577f9b){const _0x3caf1a=_0x52f5fd;super(_0x8ad596,_0x5d02f6,_0x146a44,_0x4d3bdc,_0x577f9b),q(this,_0x3caf1a(0x34f),new _0x2f5c0b()),this['disposeWithMe'](()=>{const _0x26951f=_0x3caf1a;this[_0x26951f(0x34f)][_0x26951f(0x293)](),this[_0x26951f(0x34f)]['complete']();});}async[_0x52f5fd(0x382)](_0x341ede){const _0x3e5d21=_0x52f5fd;let _0x580cbd=await this[_0x3e5d21(0x35c)](),_0x52e6d7=this[_0x3e5d21(0x339)](_0x341ede,_0x580cbd);return this[_0x3e5d21(0x356)](_0x52e6d7);}['_createSocketURL'](_0x51d3d3,_0x59991b){const _0x208f4f=_0x52f5fd;let _0x326511=typeof window>'u'?new URL(_0x51d3d3):new URL(_0x51d3d3,window['location'][_0x208f4f(0x3f4)]);_0x326511[_0x208f4f(0x32c)][_0x208f4f(0x2e3)](_0x208f4f(0x433),_0x59991b);let _0x28b056=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x208f4f(0x3d6)][_0x208f4f(0x1dc)]);return _0x28b056['get'](_0x208f4f(0x22a))&&_0x326511['searchParams'][_0x208f4f(0x2e3)](_0x208f4f(0x22a),_0x28b056[_0x208f4f(0x200)](_0x208f4f(0x22a))),_0x326511[_0x208f4f(0x24e)]();}async[_0x52f5fd(0x35c)](){const _0x476850=_0x52f5fd;var _0x531831;let _0x329508=this[_0x476850(0x244)]['getConfig'](_0x292787),_0x21ec97=(_0x329508==null?void 0x0:_0x329508[_0x476850(0x3e7)])??_0x24f5d5;return((_0x531831=(await _0x528618(this['_httpService'][_0x476850(0x41f)](_0x476850(0x27b),_0x21ec97,{'headers':{'Content-Type':_0x476850(0x2b4)}})[_0x476850(0x3c3)](_0x45db35(_0x199b7f=>_0x199b7f[_0x476850(0x243)]===_0x1e3f11[_0x476850(0x452)]),_0x182c43(0x4e20),_0x2acb3a(this[_0x476850(0x34f)]))))[_0x476850(0x325)])==null?void 0x0:_0x531831[_0x476850(0x455)])??'';}};tr=Y([J(0x0,_0x1123ef(_0x1f50b7)),J(0x1,_0x1123ef(_0xcdb063)),J(0x2,_0x5e768c),J(0x3,_0xb342d0),J(0x4,_0x430845)],tr);let nr=class extends _0x200dbf{constructor(_0x23a1da,_0x127eb8,_0x5e1da5){const _0x15f34c=_0x52f5fd;super(),this[_0x15f34c(0x39a)]=_0x23a1da,this['_httpService']=_0x127eb8,this[_0x15f34c(0x244)]=_0x5e1da5;}async[_0x52f5fd(0x216)](_0x2b1bb4,_0x2db464,_0xd75679,..._0x2f5062){const _0x2a39c5=_0x52f5fd;let _0x252aba=this[_0x2a39c5(0x39a)][_0x2a39c5(0x211)]();if(!_0x252aba)throw Error(_0x2a39c5(0x3b8));let _0x4a4e89=(this[_0x2a39c5(0x244)][_0x2a39c5(0x42c)](_0x13cc63)??_0x4effa4)+'/'+_0x2b1bb4+'/run/'+_0x2db464,_0x4513eb={'scriptId':_0x2b1bb4,'runId':new URL(window[_0x2a39c5(0x3d6)][_0x2a39c5(0x422)])[_0x2a39c5(0x32c)][_0x2a39c5(0x200)](_0x2a39c5(0x22a))??'','function':_0x2db464,'unitId':_0x252aba[_0x2a39c5(0x37b)](),'argsOfFunction':JSON[_0x2a39c5(0x2b7)](_0x2f5062),'invokeId':_0xd75679[_0x2a39c5(0x37c)]??'','executionId':_0xd75679[_0x2a39c5(0x30e)]??''};try{let _0x449dfa=await this[_0x2a39c5(0x44b)][_0x2a39c5(0x333)](_0x4a4e89,{'body':_0x4513eb});return _0x449dfa[_0x2a39c5(0x325)][_0x2a39c5(0x37f)]&&_0x449dfa[_0x2a39c5(0x325)]['error'][_0x2a39c5(0x2f1)]!==_0x111e08['OK']?_0x2a39c5(0x3be):_0x449dfa['body'][_0x2a39c5(0x1df)];}catch{return _0x2a39c5(0x3be);}}};nr=Y([J(0x0,_0x18bd8e),J(0x1,_0x1123ef(_0xcdb063)),J(0x2,_0x5e768c)],nr);const rr=0x7530,ir=_0x52f5fd(0x420);var ar=class extends _0x200dbf{constructor(){const _0x246461=_0x52f5fd;super(),q(this,_0x246461(0x423),_0x301971()),q(this,_0x246461(0x407),new Set()),q(this,'_unitOnClients',new Map()),q(this,'_heartbeatTimer',null),q(this,'_clearOtherTimers',new Map()),q(this,_0x246461(0x292),new Map()),this[_0x246461(0x432)]();}[_0x52f5fd(0x3c5)](){const _0x32bcf3=_0x52f5fd;super[_0x32bcf3(0x3c5)](),this[_0x32bcf3(0x2ce)][_0x32bcf3(0x304)]((_0x1afdb9,_0x461e79)=>this['_removeClearOtherTimer'](_0x461e79)),this[_0x32bcf3(0x1d6)]&&window['clearInterval'](this[_0x32bcf3(0x1d6)]);}['getUnitStatus$'](_0x48de9d){const _0x27e634=_0x52f5fd;return this['_ensureSubject'](_0x48de9d)[_0x27e634(0x3c3)](_0x127065());}[_0x52f5fd(0x316)](_0x15536f){const _0x1242ea=_0x52f5fd;this[_0x1242ea(0x407)][_0x1242ea(0x3f1)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1242ea(0x407)]['add'](_0x15536f),this[_0x1242ea(0x392)]({'type':0x0,'memberID':this[_0x1242ea(0x423)],'unitIDs':[_0x15536f],'isForwarded':!0x1});}[_0x52f5fd(0x35a)](_0x129d27){const _0x28a2e7=_0x52f5fd;this[_0x28a2e7(0x407)][_0x28a2e7(0x44e)](_0x129d27),this[_0x28a2e7(0x407)]['size']===0x0&&this[_0x28a2e7(0x1d6)]&&window[_0x28a2e7(0x359)](this['_heartbeatTimer']);}[_0x52f5fd(0x432)](){const _0x370b86=_0x52f5fd;this['disposeWithMe'](_0x1a9326(_0x110dcb(window,_0x370b86(0x3e2))[_0x370b86(0x2ea)](_0x5b32b4=>{const _0x4be8cb=_0x370b86;if(_0x5b32b4[_0x4be8cb(0x288)]!==ir||!_0x5b32b4[_0x4be8cb(0x291)])return;let _0x27f35a=JSON[_0x4be8cb(0x399)](_0x5b32b4[_0x4be8cb(0x291)]);this[_0x4be8cb(0x25c)](_0x27f35a);}))),window[_0x370b86(0x3bb)](_0x370b86(0x260),()=>this[_0x370b86(0x392)]({'type':0x1,'memberID':this[_0x370b86(0x423)],'unitIDs':Array[_0x370b86(0x341)](this[_0x370b86(0x407)])}));}[_0x52f5fd(0x25c)](_0x41529c){const _0x13403c=_0x52f5fd;switch(_0x41529c[_0x13403c(0x243)]){case 0x0:this[_0x13403c(0x2c1)](_0x41529c);break;case 0x1:this['_handleLeaveEvent'](_0x41529c);break;case 0x2:this[_0x13403c(0x354)](_0x41529c);}}['_handleJoinEvent'](_0x213c6e){const _0x345c6e=_0x52f5fd;let {unitIDs:_0x4147a0,memberID:_0xb3940e,isForwarded:_0x208ce8}=_0x213c6e;_0x4147a0[_0x345c6e(0x304)](_0x4fdf34=>{const _0x17cbe8=_0x345c6e;if(!_0x208ce8&&this[_0x17cbe8(0x227)][_0x17cbe8(0x2cf)](_0x4fdf34)&&this[_0x17cbe8(0x2d9)](_0x4fdf34)[_0x17cbe8(0x293)](_0x989173[_0x17cbe8(0x2bd)]),!this[_0x17cbe8(0x227)][_0x17cbe8(0x2cf)](_0x4fdf34)||!this['_unitOnClients'][_0x17cbe8(0x200)](_0x4fdf34)[_0x17cbe8(0x2cf)](_0xb3940e)){let _0x337958=this[_0x17cbe8(0x227)][_0x17cbe8(0x200)](_0x4fdf34)||new Set();_0x337958[_0x17cbe8(0x38e)](_0xb3940e),this[_0x17cbe8(0x227)][_0x17cbe8(0x2e3)](_0x4fdf34,_0x337958),this[_0x17cbe8(0x430)](_0xb3940e);}}),_0x208ce8||this['_send']({'type':0x0,'memberID':this[_0x345c6e(0x423)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x52f5fd(0x430)](_0xb737b6){const _0x412e0e=_0x52f5fd;this[_0x412e0e(0x234)](_0xb737b6);let _0x1d0306=window[_0x412e0e(0x41d)](()=>{const _0x1bf711=_0x412e0e;this[_0x1bf711(0x227)]['forEach'](_0x5d05e0=>{const _0x153e6a=_0x1bf711;_0x5d05e0[_0x153e6a(0x44e)](_0xb737b6);});},rr*0x2);this['_clearOtherTimers'][_0x412e0e(0x2e3)](_0xb737b6,_0x1d0306);}[_0x52f5fd(0x234)](_0x1d8767){const _0x4d6979=_0x52f5fd;if(this[_0x4d6979(0x2ce)]['has'](_0x1d8767)){let _0x3590ef=this[_0x4d6979(0x2ce)][_0x4d6979(0x200)](_0x1d8767);_0x3590ef&&window[_0x4d6979(0x230)](_0x3590ef),this[_0x4d6979(0x2ce)][_0x4d6979(0x2e3)](_0x1d8767,null);}}[_0x52f5fd(0x2c0)](_0x453fee){const _0x866dbe=_0x52f5fd;let {memberID:_0x4be0f4,unitIDs:_0x494416}=_0x453fee;_0x494416[_0x866dbe(0x304)](_0x3f400e=>{const _0x33f083=_0x866dbe;var _0x1d74ad;let _0x1d3847=this['_unitOnClients'][_0x33f083(0x200)](_0x3f400e);_0x1d3847&&(_0x1d3847[_0x33f083(0x44e)](_0x4be0f4),(_0x1d74ad=this[_0x33f083(0x2d9)](_0x3f400e))==null||_0x1d74ad[_0x33f083(0x293)](_0x1d3847[_0x33f083(0x3f1)]===0x0?_0x989173['NO_OTHER_CLIENTS_EDITING']:_0x989173['OTHER_CLIENTS_EDITING']));}),this[_0x866dbe(0x234)](_0x4be0f4);}['_handleHeartbeatEvent'](_0x598323){const _0x55cbe1=_0x52f5fd;this[_0x55cbe1(0x430)](_0x598323[_0x55cbe1(0x3ca)]);}[_0x52f5fd(0x392)](_0x2ccb23){const _0x110d01=_0x52f5fd;localStorage[_0x110d01(0x40f)](ir,JSON['stringify'](_0x2ccb23));}['_scheduleHeartbeat'](){const _0x40ac6a=_0x52f5fd;this['_heartbeatTimer']=window[_0x40ac6a(0x2f0)](()=>{const _0x33346f=_0x40ac6a;this[_0x33346f(0x392)]({'type':0x2,'memberID':this[_0x33346f(0x423)]});},rr);}[_0x52f5fd(0x2d9)](_0x285ef2){const _0x3e8e20=_0x52f5fd;return this[_0x3e8e20(0x292)][_0x3e8e20(0x2cf)](_0x285ef2)||this[_0x3e8e20(0x292)]['set'](_0x285ef2,new _0x22e98f(_0x989173[_0x3e8e20(0x346)])),this[_0x3e8e20(0x292)][_0x3e8e20(0x200)](_0x285ef2);}};export{tr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,nr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x7ea594=_0x1c2b;(function(_0x20af86,_0x623484){const _0x26b7fc=_0x1c2b,_0x2257c7=_0x20af86();while(!![]){try{const _0x52d67f=parseInt(_0x26b7fc(0x162))/0x1+-parseInt(_0x26b7fc(0x356))/0x2*(-parseInt(_0x26b7fc(0xdb))/0x3)+parseInt(_0x26b7fc(0x23f))/0x4+-parseInt(_0x26b7fc(0x17f))/0x5+parseInt(_0x26b7fc(0x16a))/0x6+parseInt(_0x26b7fc(0x160))/0x7+-parseInt(_0x26b7fc(0x1b3))/0x8;if(_0x52d67f===_0x623484)break;else _0x2257c7['push'](_0x2257c7['shift']());}catch(_0x1d0e02){_0x2257c7['push'](_0x2257c7['shift']());}}}(_0x5834,0x48880));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x14ffae,CollaborationController as _0x2279ca,CollaborationSessionService as _0x25de4e,CollaborationSocketService as _0x325a9e,CollaborationStatus as _0x65ab9a,CollaborationUIEventId as _0x1d65e1,CollaborationUIEventService as _0x603f72,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x39f491,DEFAULT_WS_SESSION_TICKET_URL as _0x4c01fe,DocCollaborationEntity as _0x1f1988,ILocalCacheService as _0x471d6f,INetworkConditionService as _0x2ae2cd,LOCAL_CACHE_INTERVAL as _0x4cb928,LOCAL_CACHE_INTERVAL_KEY as _0x78a9c6,MemberService as _0x268c3a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5ccd97,SessionStatus as _0xa8ada1,UnitStatus as _0x24c6b1,UniverCollaborationClientPlugin as _0x512565,getLocalCacheKey as _0x156238}from'@univerjs-pro/collaboration-client';import{COLORS as _0x48f4c1,ColorKit as _0x4d3a61,CommandType as _0x4d64aa,DOC_RANGE_TYPE as _0x1b3059,DependentOn as _0x1bc7be,Disposable as _0x2c43e7,DisposableCollection as _0x200b02,ICommandService as _0x15fe51,IConfigService as _0x16ce58,IImageIoService as _0x4c0ca6,ILocalStorageService as _0x16f020,ILogService as _0x1984c9,IUniverInstanceService as _0x28a580,Inject as _0x5c888d,Injector as _0x451f97,LocaleService as _0x292d2f,Plugin as _0x36cdce,Rectangle as _0xdb208c,RxDisposable as _0x28ff85,ThemeService as _0x16edca,Tools as _0x40f052,UniverInstanceType as _0x51081c,UserManagerService as _0x3c2aea,debounce as _0xf32b8d,fromEventSubject as _0x370585,generateRandomId as _0x415285,isInternalEditorID as _0x489a17,merge as _0x54b9e6,mergeOverrideWithDependencies as _0x9b1a78,registerDependencies as _0x1d9129,toDisposable as _0x42bb3c,touchDependencies as _0x58d44e}from'@univerjs/core';import{BuiltInUIPart as _0x44eea7,IBeforeCloseService as _0x3eb2d8,IMessageService as _0x4953bc,INotificationService as _0x5b6302,IUIPartsService as _0x8a5b3a,IUnitPresenceUIAdapterRegistry as _0x14c253,connectInjector as _0x1ca99d,useDependency as _0xd60b37,useObservable as _0x6ada4b}from'@univerjs/ui';import{BehaviorSubject as _0x5a8e6e,Subject as _0x83a48d,combineLatest as _0x41dcbc,debounceTime as _0x40cc80,distinctUntilChanged as _0x3b143a,filter as _0x399a72,firstValueFrom as _0x4b2eab,fromEvent as _0x53faeb,map as _0x31e6a5,merge as _0x28759e,of as _0x13f646,switchMap as _0x4957ed,takeUntil as _0x2a3afc,throttle as _0x3dbcf7,timeout as _0x10c310,timer as _0x46c7e6}from'rxjs';import{distinctUntilChanged as _0xf1eb50,filter as _0x39dc50,map as _0x3cbcba,switchMap as _0x1da258,takeUntil as _0x4eff35,throttleTime as _0x51921d}from'rxjs/operators';import{Button as _0x301aac,MessageType as _0x3a5015,Tooltip as _0x1abd88,clsx as _0x6fa4d7}from'@univerjs/design';import{LoadingMultiIcon as _0x4dbfe2,OffLineIcon as _0x614430,OnLineIcon as _0x5a86c7,WarningIcon as _0x240f13}from'@univerjs/icons';import{createElement as _0x2317a2,useCallback as _0x328693,useMemo as _0x4813a0}from'react';import{jsx as _0x57ef67,jsxs as _0x3c0327}from'react/jsx-runtime';import{CollaborationEvent as _0x865df6,ISnapshotServerService as _0x165792,ITransformService as _0x31acf5,RevisionService as _0x19bbc1,SnapshotLoadStage as _0x2f9ccc,SnapshotLoadingService as _0x18f5c1,UniverCollaborationPlugin as _0x24cbc8,isTransformMutationFailure as _0x13597e,isTransformMutationsWithChangesetSuccess as _0x1db856}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x333558}from'@univerjs-pro/license';function _0x5834(){const _0x2c9c80=['replace','/universer-api/frontend/logs','flatMap','top','collaboration-client-ui.config','getCurrentTypeOfUnit$','_httpService','icon','collaboration-client-ui.remoteRevert.title','replaceSelectionInfoWithoutRefresh','transformStateCache','clearTimeout','_syncAdapters','labelHorizontalPosition','subUnitId','_session','@univerjs-pro/collaboration-client-ui','onCommandExecuted','reload','_collabSessionService','collaboration-client-ui.conflict.retry','getRangePointData','clearInterval','_lastPointer','exhaustSavingTask','max','ACTIVE_UNIT_EVENT_CHANNEL','_handleCursorUpdate','m2Prime','finally','_normalizeUserId','rgba','imageSourceType','searchParams','removeEventListener','registerCommand','getCurrentUnitOfType','_initStatusComponent','setTimeout','_getSaveTimeout','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUndoRedoMutationParamsCache','_uploadLog','_initWindowErrorListener','subscribeEvent','_conflictNotification','_localCacheService','forEach','_initUserListener','preventDefault','_onConflict','min','has','width','_render','_unitStatus','small','getTypeOfUnitDisposed$','_uiPartsService','collabCursorState$','unitType','unitId','selections','save','toRgbString','beginPath','decorate','stack','getCollabEntities','name','object','getMember','_retryConflictCacheClear','push','_docTransformStateCacheService','_blockProgressWatches','collaboration-client-ui.collabStatus.conflict','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','colno','Error','stream','_cursorShapes','search','transformMutation','application/json','pageType','true','setConfig','number','collaboration-client-ui.collabStatus.fetchMiss','_refreshCollabCursors','1.5.0','_assignedColors','getCellIndexByOffset','deepClone','_heartbeatTimer','dispose','invokeId','\x20-\x20','collaboration-client-ui.remoteRevert.content','_onCursorUpdate','cursorInfo$','symbol','some','MoveRangeCommandId','onTransformChange$','columnGroupId','kind','freeze','setRemotePresence','endOffset','OTHER_CLIENT_EDITING','JOIN_ROOM_FAILED','getCurrentSkeleton','tableId','wsSessionTicketUrl','_scheduleClearOtherTimer','cacheCleared','_docStateChangeManagerService','_drawAnchor','FromArray','executionId','getRenderUnitById','_startEntity','bold\x2013px\x20Arial,\x20sans-serif','[Unhandled\x20Rejection]:\x20','override','isFinite','canRenderAnchor','isArray','univer-transition-all\x20univer-duration-200','i18nKey','getAllUnitsForType','updateOfflineData','_initUnhandledRejectionListener','collaboration-client-ui.collaboration.single-unit.warning','Unknown\x20user','onRendered','_syncEditingCollabCursorService','ERROR','OTHER_CLIENTS_EDITING','univer-appearance-none','registerComponent','_disabled','_labelHorizontalPosition','_beforeCloseService','_roomMembers$','yellow.400','_unitOnClients','timeoutState$','_removeCollabCursors','join','_doCreateSocket','runId','focused$','getMergeData','span','canRenderSelection','_dispose$','_scheduleHeartbeat','filter','_pointerMoveDisposable','selection','unload','getColorFromTheme','offsetY','_univerInstanceService','indicator','[Window\x20Error]:\x20','_getSessionTicket','labelPosition','_entities','transformMutationsWithChangeset','_startDocCollabCursor','univer-text-blue-500','_retryingConflictCacheUnitIDs','storage','_colorIndex','_showConflictProcessingNotification','_memberService','version','_ensureSubject','remove','requireSession','memberId','stringify','update','univer-m-0\x20univer-p-0','_memberID','button','type','makeDirty','_handleHeartbeatEvent','state','includes','_drawTextRange','...','2wcCGAY','value','fill','GET','memberID','then','_createSocketURL','all','_timeoutState$','1750503YfhOrQ','send','activate','_notificationService','_transformService','getActiveSheet','key','AWAITING_WITH_PENDING','univer-text-gray-400','asObservable','row','_clearTimeoutState','setAlpha','online','collaboration-client-ui.collabClient.tooltip.reconnect','\x20at\x20','_initialized','_logService','backgroundColor','fillRule','_name','_showConflictCacheClearFailedNotification','Enter','localPresence$','slice','getItem','getTypeOfUnitAdded$','_backgroundColor','collaboration-client-ui.conflict.title','disposeWithMe','_disposeEntitiesForType','_anchorDot','_removeRemotePresence','string','_docTransformSelectionsService','clearRemotePresences','_registerPresenceStatusComponent','TEXT','syncEditingCollabCursor','_collaborationUIEventService','div','_saveCache','userID','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','assignAColorForMemberID','message','mutations','createInstance','data','cursorInfo','fillText','options','license_editing_connections_exceeded','origin','_registerRenderDependencies','toString','_configService','_drawRectRange','_handleHover','getFocusedUnit','contains','location','_status$','enableOfflineEditing','getAncestorScale','_initEntityListener','endRow','_highlight','collab-text-range-','_initEvent','length','UNIVER_SHEET','getViewport','snapshot-loading-timeout','_getAnchorBounding','RemoveColCommandId','_reloadPage','addHandlerCallback','_instanceService','startColumn','_themeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getCollabCursors$','reason','triggerDblclick','backupOfflineData','params','_cursorInfo$','_localeService','0.2)','primary','next','stage','_refRangeService','highlight','getValue','getMemberID','univer-flex\x20univer-items-center\x20univer-justify-center','_bindAdapter','post','PENDING','_injector','snapshot-loading-','startsWith','collaboration-client-ui.permission.title','_transformUndoRedoStack','_collabCursorController','pluginName','_getScale','#FFF','_cachedData','collaboration-client-ui.conflict.clearFailed','isActive','_draw','unit','redoState','_hovered','_initDependencies','getSheetBySheetId','timedOut','_stopBlinking','_scheduleSaving','_userManagerService','_anchor','_cursors','getDocRanges','_presenceAdapterRegistry','_initPresenceStatusComponents','userId','_collaborationSessionService','_isDisposed','_config','_transformPreviousActiveRange','3787490xYuuOe','get','571462zIWgxO','values','set',',\x200.2)','_getMergeRange','Failed','transformRemoteChangeset','_disposed','244428Pcnbda','_transformHistoryAndStateStack','_scene','_selfUnitIDs','code','removeItem','constructor','map','Response','_docSkeletonManagerService','unshift','executeCommand','RECT','_messageService','_eventUnsubscribe','spin','reconnect','iterator','result','onLine','univer-text-orange-500','1604985UvttTQ','_adapter','function','delete','_editingConnectionsExceededNotices','startRow','statusUIPart','_getSheetObject','setInterval','parse','_blinkIntervalTimer','_hideTimer','strokeWidth','collaboration-client-ui.permission.content','getCurrentRevOfUnit','size','status','dispose$','_init','_docTransformIMECacheService','catch','_cursor','unitID','_removeClearOtherTimer','colorClass','loading','_saveTimedOutNotices','_hover','visible','_isBlinkVisible','error','_labelPosition','DeleteRangeMoveUpCommandId','_collabCursorState$','collaboration-client-ui.snapshotLoading.timeout','removeRemotePresence','sheetId','setShapeProps','ranges','_sendLocalPresence','sheetID','_removeAwaitingNotices','saveTaskMap','univer-text-red-500','_startBlinking','_localStorageService','roomMembers','default','text','onPointerEnter$','_getUserId','LICENSE_DOMAIN_REJECTED','12067952zqmkHs','InsertColCommandId','pulse','segmentPage','_onRefRangeChange','_getLighterColor','getOffsetConfig','undoState','color','unsubscribe','find','Loading','getActiveRange','SOCKET_FAILED_RETRY','_commandService','restore','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_shapes','_onCursorDelete','_updateCollabCursors','COMPLETE','red.300','onStarting','ticket','collaboration-client-ui.collabStatus.offline','onPointerMove$','_blinkTimer','add','textRanges','_initResize','_id','addEventListener','onPointerLeave$','event$','pipe','content','registerRenderModule','toISOString','_offsetY','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_watchBlockProgress','refreshLabel','collaboration-client-ui.operation.update-remote-unit-presence','subscribe','_adapterRegistry','highlightSecond','addObject','endColumn','loadedBlocks','lineno','enableLocalCache','getSkeleton','_imageIoService','runOnServer','sessionStatus$','right','from','_disposeEntity','setItem','init','closePath','show','getCurrentSelections','static','entityInit$','setOffsetY','roomMembers$','_saveTaskMap','setStateCache','filename','collaboration-client-ui.session.collaboration-timeout','_renderManagerService','_clearRemotePresences','collaboration-client-ui.collaboration.closeRoom','allSettled','_collaborationController','_showAwaitingNotice','_handleEvent','title','_initConflictHandling','CONFLICT_PROCESSING','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collaboration-client-ui.license.title','getUnit','UPDATE_CURSOR','DeleteRangeMoveLeftCommandId','clickable','AWAITING','_listenToOnlineEvent','_colorAssignService','_docClipboardService','transformIMECache','_initStatusListener','getLocalPresence','getSelectionInfo','sessionTicket','socket$','lineTo','_docSyncEditingCollabCursorService','_context','toPrimitive','_revisionService','_initCommandExecutedListener','getSheetId','pageIndex','focusedId','collaboration-client-ui.session.will-retry','_adapterDisposables','hovered','polite','clear','_range','bottom','createSocket','body','getScrollXYInfoByViewport','collaboration-client-ui.conflict.processing','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_clearBlockProgressWatch','black','onMouseMove','_snapshotLoadingService','_online','_docSelectionManagerService','getStateCache','unhandledrejection','warning','totalBlocks','isEditing','purple.300','_presenceStatusRegistrations','_replaceConflictNotification','_sheetSkeletonManagerService','_toggleOnline','_toggleOffline','selectedIds','enableDocumentCollaborationUI','_messageIds','column','_highlightSecond','1559232YlHjBr','_syncPresenceStatusComponents','collaboration-client-ui.license.domain-rejected','_monkeyPatchLogService','call','enableFrontendLog','findNodePositionByCharIndex','resize','saveImage','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','Warning','adapters$',':backup:','packageName','arc','USERS_LEAVE','eventID','_updateLocalCursor','UNIVER_DOC','_setupBeforeClosingHandler','blue.400','currentTheme$','_online$','moveTo','measureText','resolve','newValue','getConfig','collaboration-client-ui.snapshotLoading.refresh','height','_listenToOfflineEvent','pointer','showText','evenodd','[LogService\x20Error]:\x20','_activeSaveTaskMap','with','CLOSE_ROOM','green.600','defineProperty','_pendingEntities','collaboration-client-ui.session.connection-failed','addClipboardHook','hide','_clearOtherTimers','_color','registerRefRange','timeoutId','columnIndex','getUnitId','status$','doc.mutation.rich-text-editing','tooltipKey','rgba(','_handleJoinEvent','split','univer-border-none\x20univer-bg-transparent','complete','_entityInit$','range','_initAwaitingNotices','m1Prime','focus','_textBubble','_trackActiveSaveTask','OFFLINE','resume','setUndoRedoMutationParamsCache','InsertRangeMoveRightCommandId','prepareTransformSelections','collab-text-anchor-','drawWith','ONLINE','/run/','NOT_COLLAB','_registerDependencies','rgb','dark:focus:!univer-ring-offset-gray-800','bind','saveOfflineData','parseInt','_send'];_0x5834=function(){return _0x2c9c80;};return _0x5834();}import{DocSelectionManagerService as _0x291a40,DocSkeletonManagerService as _0x12f6b5,DocStateChangeManagerService as _0x2f70c8,RichTextEditingMutation as _0x4db170,SetTextSelectionsOperation as _0x3e3d2c,UniverDocsPlugin as _0x52e451}from'@univerjs/docs';import{DocIMEInputManagerService as _0x4434b8,IDocClipboardService as _0x37f83b,NodePositionConvertToCursor as _0x3213e1,NodePositionConvertToRectRange as _0x3655aa,SetDocZoomRatioOperation as _0x43d3b6,TEXT_RANGE_LAYER_INDEX as _0x22778c,UniverDocsUIPlugin as _0x1d9f35}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x304f0a,IRenderManagerService as _0x23794e,Rect as _0x3a3ee5,RegularPolygon as _0x1a0717,SHEET_VIEWPORT_KEY as _0x1822ce,Shape as _0x41d5b2,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2dc7e5,UniverRenderEnginePlugin as _0x4540ab,Vector2 as _0x9573fe,getColor as _0x1e82d5,getDocumentSkeletonColumnPagePathInfo as _0x1b7c2a}from'@univerjs/engine-render';import{HTTPEventType as _0x42c157,HTTPService as _0x36cdaa,ISocketService as _0x1ae3e2,UniverNetworkPlugin as _0x176c33,WebSocketService as _0x29894e}from'@univerjs/network';import{deserializeRangeWithSheet as _0x3b9903,serializeRangeWithSheet as _0x2b799d}from'@univerjs/engine-formula';import{EffectRefRangId as _0x5d5430,RefRangeService as _0x3e2e64,SetSelectionsOperation as _0x5a7a11,SheetsSelectionsService as _0x3c2429,handleDeleteRangeMoveLeft as _0x33b6d7,handleDeleteRangeMoveUp as _0x1d6acb,handleIRemoveCol as _0x5e4f50,handleIRemoveRow as _0x12e3bf,handleInsertCol as _0x57c4d6,handleInsertRangeMoveDown as _0xd032ba,handleInsertRangeMoveRight as _0x2eb875,handleInsertRow as _0x29910d,handleMoveRange as _0x294967,runRefRangeMutations as _0x1ff6e1}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x2e722a,getCoordByCell as _0x17a4e6,getSheetObject as _0x27e85c}from'@univerjs/sheets-ui';import{ErrorCode as _0x34e0a6}from'@univerjs/protocol';function en(_0x2c3fec){const _0x265614=_0x1c2b;switch(_0x2c3fec){case _0x65ab9a[_0x265614(0x280)]:return{'icon':_0x57ef67(_0x614430,{}),'colorClass':_0x265614(0x1aa),'i18nKey':_0x265614(0x1cb),'tooltipKey':_0x265614(0xe9),'clickable':!0x0,'indicator':_0x265614(0x1f2)};case _0x65ab9a['CONFLICT']:return{'icon':_0x57ef67(_0x614430,{}),'colorClass':_0x265614(0x17e),'i18nKey':_0x265614(0x2dd),'clickable':!0x1,'indicator':'static'};case _0x65ab9a['FETCH_MISS']:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':_0x265614(0x33f),'i18nKey':_0x265614(0x2ea),'clickable':!0x1,'indicator':'spin'};case _0x65ab9a[_0x265614(0x289)]:return{'icon':_0x57ef67(_0x5a86c7,{}),'colorClass':_0x265614(0xe3),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x265614(0x1f2)};case _0x65ab9a[_0x265614(0x20a)]:case _0x65ab9a['AWAITING_WITH_PENDING']:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x265614(0x179)};case _0x65ab9a[_0x265614(0x13f)]:return{'icon':_0x57ef67(_0x4dbfe2,{}),'colorClass':_0x265614(0x33f),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x265614(0x179)};case _0x65ab9a['SYNCED']:return{'icon':_0x57ef67(_0x5a86c7,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x265614(0x1f2)};}}function tn(_0x36102d){const _0x3037bd=_0x1c2b;let {status$:_0x232395}=_0x36102d,_0x847496=_0x6ada4b(_0x232395,_0x65ab9a['NOT_COLLAB']),_0x5a34d3=_0xd60b37(_0x292d2f),_0x3d5beb=_0xd60b37(_0x25de4e),_0x35a3ee=_0x4813a0(()=>en(_0x847496),[_0x847496]),_0x332f82=_0x847496!==_0x65ab9a[_0x3037bd(0x280)],_0x4aa4d2=_0x5a34d3['t'](_0x35a3ee[_0x3037bd(0x314)]),_0x3a5b97=_0x35a3ee[_0x3037bd(0x273)]?_0x5a34d3['t'](_0x35a3ee[_0x3037bd(0x273)]):_0x4aa4d2,_0x529755=_0x328693(()=>{const _0x5c0a60=_0x3037bd;_0x332f82||_0x3d5beb[_0x5c0a60(0x17a)]();},[_0x332f82,_0x3d5beb]),_0x24913a=_0x328693(_0x460ceb=>{const _0x5a5b78=_0x3037bd;_0x332f82||_0x460ceb[_0x5a5b78(0xe1)]!==_0x5a5b78(0xf1)&&_0x460ceb[_0x5a5b78(0xe1)]!=='\x20'||(_0x460ceb[_0x5a5b78(0x2c2)](),_0x3d5beb['reconnect']());},[_0x332f82,_0x3d5beb]),_0x4f911a=_0x57ef67(_0x3037bd(0x32d),{'className':_0x6fa4d7(_0x3037bd(0x13c),_0x3037bd(0x228),_0x35a3ee[_0x3037bd(0x197)],{'univer-animate-spin':_0x35a3ee[_0x3037bd(0x338)]===_0x3037bd(0x179),'univer-animate-pulse':_0x35a3ee[_0x3037bd(0x338)]===_0x3037bd(0x1b5)}),'aria-hidden':_0x3037bd(0x2e7),'children':_0x35a3ee[_0x3037bd(0x298)]}),_0x5e6953=_0x57ef67(_0x3037bd(0x32d),{'className':_0x6fa4d7(_0x3037bd(0x13c),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3037bd(0x313),_0x3037bd(0x1da),_0x3037bd(0x28c),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x35a3ee[_0x3037bd(0x209)],'univer-cursor-default':!_0x35a3ee[_0x3037bd(0x209)]}),'children':_0x4f911a});return _0x35a3ee[_0x3037bd(0x209)]?_0x57ef67(_0x1abd88,{'title':_0x3a5b97,'placement':_0x3037bd(0x223),'children':_0x57ef67(_0x3037bd(0x34e),{'type':'button','onClick':_0x529755,'onKeyDown':_0x24913a,'className':_0x6fa4d7(_0x3037bd(0x1c3),'univer-border-none\x20univer-bg-transparent',_0x3037bd(0x34c),_0x3037bd(0x31e)),'aria-label':_0x4aa4d2+_0x3037bd(0x2f3)+_0x3a5b97,'role':_0x3037bd(0x18f),'aria-live':_0x3037bd(0x220),'aria-atomic':_0x3037bd(0x2e7),'children':_0x5e6953})}):_0x57ef67(_0x1abd88,{'title':_0x3a5b97,'placement':'bottom','children':_0x57ef67('div',{'className':_0x6fa4d7(_0x3037bd(0x1c3),_0x3037bd(0x277),_0x3037bd(0x34c)),'aria-label':_0x4aa4d2,'role':'status','aria-live':_0x3037bd(0x220),'aria-atomic':_0x3037bd(0x2e7),'children':_0x5e6953})});}function q(_0x12652a){'@babel/helpers - typeof';const _0x14576c=_0x1c2b;return q=typeof Symbol==_0x14576c(0x181)&&typeof Symbol[_0x14576c(0x17b)]==_0x14576c(0x2f7)?function(_0x268ab1){return typeof _0x268ab1;}:function(_0x503e00){const _0x3fecfb=_0x14576c;return _0x503e00&&typeof Symbol=='function'&&_0x503e00[_0x3fecfb(0x170)]===Symbol&&_0x503e00!==Symbol['prototype']?'symbol':typeof _0x503e00;},q(_0x12652a);}function nn(_0x514bdb,_0x51b419){const _0x44f928=_0x1c2b;if(q(_0x514bdb)!=_0x44f928(0x2d7)||!_0x514bdb)return _0x514bdb;var _0x5a647b;if(typeof Symbol<'u'&&(_0x5a647b=_0x514bdb[Symbol[_0x44f928(0x217)]])!==void 0x0){var _0x30a2f5=_0x5a647b[_0x44f928(0x243)](_0x514bdb,_0x51b419||_0x44f928(0x1ae));if(q(_0x30a2f5)!='object')return _0x30a2f5;throw TypeError(_0x44f928(0x2b9));}return(_0x51b419===_0x44f928(0xfc)?String:Number)(_0x514bdb);}function rn(_0x23c99b){const _0xe3bd70=_0x1c2b;var _0x1ba195=nn(_0x23c99b,_0xe3bd70(0xfc));return q(_0x1ba195)==_0xe3bd70(0x2f7)?_0x1ba195:_0x1ba195+'';}function J(_0x700b3f,_0x23694f,_0x9cf47f){const _0x3dbc06=_0x1c2b;return(_0x23694f=rn(_0x23694f))in _0x700b3f?Object[_0x3dbc06(0x266)](_0x700b3f,_0x23694f,{'value':_0x9cf47f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x700b3f[_0x23694f]=_0x9cf47f,_0x700b3f;}function Y(_0x24324c,_0x1e6733){return function(_0x391541,_0x1bf390){_0x1e6733(_0x391541,_0x1bf390,_0x24324c);};}function X(_0x52a1c8,_0x50a7ce,_0x5370b7,_0x13b527){const _0x584d9f=_0x1c2b;var _0x14399b=arguments[_0x584d9f(0x121)],_0x51305b=_0x14399b<0x3?_0x50a7ce:_0x13b527===null?_0x13b527=Object['getOwnPropertyDescriptor'](_0x50a7ce,_0x5370b7):_0x13b527,_0x289e16;if(typeof Reflect==_0x584d9f(0x2d7)&&typeof Reflect[_0x584d9f(0x2d3)]==_0x584d9f(0x181))_0x51305b=Reflect['decorate'](_0x52a1c8,_0x50a7ce,_0x5370b7,_0x13b527);else{for(var _0xd9bdb1=_0x52a1c8[_0x584d9f(0x121)]-0x1;_0xd9bdb1>=0x0;_0xd9bdb1--)(_0x289e16=_0x52a1c8[_0xd9bdb1])&&(_0x51305b=(_0x14399b<0x3?_0x289e16(_0x51305b):_0x14399b>0x3?_0x289e16(_0x50a7ce,_0x5370b7,_0x51305b):_0x289e16(_0x50a7ce,_0x5370b7))||_0x51305b);}return _0x14399b>0x3&&_0x51305b&&Object[_0x584d9f(0x266)](_0x50a7ce,_0x5370b7,_0x51305b),_0x51305b;}let Z=class extends _0x2c43e7{constructor(_0x5d92b5,_0x3754b3,_0x36538f,_0x11d1dc,_0x3c7257){const _0x3ba493=_0x1c2b;super(),this[_0x3ba493(0x337)]=_0x5d92b5,this['_injector']=_0x3754b3,this[_0x3ba493(0x1fe)]=_0x36538f,this[_0x3ba493(0x2cb)]=_0x11d1dc,this['_presenceAdapterRegistry']=_0x3c7257,J(this,_0x3ba493(0x119),new _0x5a8e6e(_0x65ab9a[_0x3ba493(0x289)])),J(this,_0x3ba493(0x235),new Map()),this[_0x3ba493(0x2b6)](),this[_0x3ba493(0x20f)](),this[_0x3ba493(0x15a)]();}[_0x7ea594(0x2f1)](){const _0x23d7c9=_0x7ea594;this['_presenceStatusRegistrations']['forEach'](_0x42967f=>_0x42967f[_0x23d7c9(0x2f1)]()),this[_0x23d7c9(0x235)][_0x23d7c9(0x221)](),this[_0x23d7c9(0x119)][_0x23d7c9(0x278)](),super[_0x23d7c9(0x2f1)]();}[_0x7ea594(0x20f)](){const _0x1d1182=_0x7ea594;this[_0x1d1182(0xf8)](_0x28759e(this[_0x1d1182(0x337)][_0x1d1182(0x32b)],this[_0x1d1182(0x337)][_0x1d1182(0x296)](_0x51081c[_0x1d1182(0x251)]),this['_univerInstanceService'][_0x1d1182(0x296)](_0x51081c[_0x1d1182(0x122)]))['pipe'](_0x3cbcba(()=>an(this[_0x1d1182(0x337)])),_0xf1eb50(),_0x4957ed(_0x7df46a=>_0x7df46a?this[_0x1d1182(0x1fe)]['getCollabEntity$'](_0x7df46a):_0x13f646(null)),_0x4957ed(_0x3ae914=>_0x3ae914?_0x3ae914[_0x1d1182(0x271)]:_0x13f646(_0x65ab9a[_0x1d1182(0x289)])))[_0x1d1182(0x1de)](_0x3aa552=>{const _0x1920e8=_0x1d1182;this['_status$'][_0x1920e8(0x136)](_0x3aa552);}));}['_initStatusComponent'](){const _0x307aa0=_0x7ea594;this[_0x307aa0(0xf8)](this[_0x307aa0(0x2cb)]['registerComponent'](_0x44eea7['HEADER_MENU'],()=>_0x1ca99d(on({'status$':this[_0x307aa0(0x119)][_0x307aa0(0xe4)]()}),this['_injector'])));}[_0x7ea594(0x15a)](){const _0x359886=_0x7ea594;let _0x32d945=this[_0x359886(0x159)][_0x359886(0x24a)][_0x359886(0x1de)](_0x26ee19=>{const _0x189d1c=_0x359886;this[_0x189d1c(0x240)](_0x26ee19);});this[_0x359886(0xf8)](_0x42bb3c(()=>_0x32d945[_0x359886(0x1bc)]()));}[_0x7ea594(0x240)](_0x75179c){const _0x1959ee=_0x7ea594;let _0x3e0d45=new Map(_0x75179c[_0x1959ee(0x331)](_0x4beb3d=>_0x4beb3d[_0x1959ee(0x185)]!=null)['map'](_0x481647=>[_0x481647[_0x1959ee(0x2cd)],_0x481647]));this[_0x1959ee(0x235)][_0x1959ee(0x2c0)]((_0xb6d82d,_0x2bb700)=>{const _0x1ede26=_0x1959ee;_0x3e0d45[_0x1ede26(0x2c5)](_0x2bb700)||(_0xb6d82d[_0x1ede26(0x2f1)](),this[_0x1ede26(0x235)][_0x1ede26(0x182)](_0x2bb700));}),_0x3e0d45[_0x1959ee(0x2c0)]((_0x2df2f1,_0x47dcc3)=>{const _0x30a436=_0x1959ee;this[_0x30a436(0x235)][_0x30a436(0x2c5)](_0x47dcc3)||this[_0x30a436(0xff)](_0x2df2f1);});}[_0x7ea594(0xff)](_0x5f18c7){const _0x2feb11=_0x7ea594;let _0x56f82e=_0x5f18c7[_0x2feb11(0x185)];if(!_0x56f82e)return;let _0x340900=new _0x200b02(),_0xa0c1e6=new _0x5a8e6e(_0x65ab9a['NOT_COLLAB']);_0x340900['add'](_0x42bb3c(()=>_0xa0c1e6[_0x2feb11(0x278)]())),_0x340900['add'](this[_0x2feb11(0x2cb)][_0x2feb11(0x31f)](_0x56f82e,()=>_0x1ca99d(on({'status$':_0xa0c1e6[_0x2feb11(0xe4)]()}),this['_injector'])));let _0x573e4d=this[_0x2feb11(0x337)][_0x2feb11(0x296)](_0x5f18c7[_0x2feb11(0x2cd)])[_0x2feb11(0x1d5)](_0x3cbcba(_0x28f8f6=>(_0x28f8f6==null?void 0x0:_0x28f8f6['getUnitId']())??null),_0xf1eb50(),_0x4957ed(_0x25b37e=>_0x25b37e?this[_0x2feb11(0x1fe)]['getCollabEntity$'](_0x25b37e):_0x13f646(null)),_0x4957ed(_0x40bee6=>(_0x40bee6==null?void 0x0:_0x40bee6[_0x2feb11(0x271)])??_0x13f646(_0x65ab9a[_0x2feb11(0x289)])))[_0x2feb11(0x1de)](_0x3086d3=>_0xa0c1e6['next'](_0x3086d3));_0x340900['add'](_0x42bb3c(()=>_0x573e4d[_0x2feb11(0x1bc)]())),this[_0x2feb11(0x235)]['set'](_0x5f18c7[_0x2feb11(0x2cd)],_0x340900);}};Z=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x2279ca)),Y(0x3,_0x8a5b3a),Y(0x4,_0x5c888d(_0x14c253))],Z);function an(_0x5b4e0a){const _0x1cc55d=_0x7ea594;let _0x5465d4=_0x5b4e0a[_0x1cc55d(0x116)](),_0x20b207=_0x5465d4==null?void 0x0:_0x5465d4[_0x1cc55d(0x270)]();if(_0x20b207&&!_0x489a17(_0x20b207))return _0x20b207;let _0x347aac=_0x5b4e0a[_0x1cc55d(0x2b5)](_0x51081c[_0x1cc55d(0x251)]),_0x28e997=_0x347aac==null?void 0x0:_0x347aac[_0x1cc55d(0x270)]();if(_0x28e997&&!_0x489a17(_0x28e997))return _0x28e997;let _0x32356a=_0x5b4e0a[_0x1cc55d(0x2b5)](_0x51081c[_0x1cc55d(0x122)]);if(_0x32356a)return _0x32356a['getUnitId']();let _0x3cad6e=_0x5b4e0a[_0x1cc55d(0x315)](_0x51081c[_0x1cc55d(0x251)])[_0x1cc55d(0x1bd)](_0x369b84=>!_0x489a17(_0x369b84[_0x1cc55d(0x270)]()));return _0x3cad6e?_0x3cad6e[_0x1cc55d(0x270)]():null;}function on(_0x4c20f8){let {status$:_0x28c8de}=_0x4c20f8;return function(){return _0x57ef67(tn,{'status$':_0x28c8de});};}var sn=_0x7ea594(0x2a1),cn=_0x7ea594(0x2ec);const ln={'id':_0x7ea594(0x1dd),'type':_0x4d64aa['OPERATION'],'handler':(_0xfcedd7,_0x86ffca)=>{const _0x4e519d=_0x7ea594;let _0x38fd08=_0xfcedd7[_0x4e519d(0x161)](_0x14c253)[_0x4e519d(0x161)](_0x86ffca[_0x4e519d(0x2cd)]);if(!_0x38fd08)return!0x1;switch(_0x86ffca['update'][_0x4e519d(0x34f)]){case _0x4e519d(0x164):return _0x38fd08[_0x4e519d(0x2fe)](_0x86ffca['update'][_0x4e519d(0x352)]),!0x0;case _0x4e519d(0x347):return _0x38fd08[_0x4e519d(0x1a2)](_0x86ffca[_0x4e519d(0x34b)][_0x4e519d(0x2ce)],_0x86ffca['update'][_0x4e519d(0x349)]),!0x0;case _0x4e519d(0x221):return _0x38fd08[_0x4e519d(0xfe)](_0x86ffca[_0x4e519d(0x34b)]['unitId']),!0x0;default:return!0x1;}}},un={};let dn=class extends _0x28ff85{constructor(_0x445143,_0x38156f){const _0x2905ef=_0x7ea594;super(),this['_docClipboardService']=_0x445143,this[_0x2905ef(0x1e7)]=_0x38156f,this[_0x2905ef(0x191)]();}[_0x7ea594(0x191)](){const _0x7ac97c=_0x7ea594;let _0x2c761c=this;this[_0x7ac97c(0xf8)](this[_0x7ac97c(0x20d)][_0x7ac97c(0x269)]({'onBeforePasteImage':async _0x2cf512=>{const _0x458f2a=_0x7ac97c;let _0x20aca=await _0x2c761c[_0x458f2a(0x1e7)][_0x458f2a(0x247)](_0x2cf512);return _0x20aca?{'source':_0x20aca['source'],'imageSourceType':_0x20aca[_0x458f2a(0x2b1)]}:null;}}));}};dn=X([Y(0x0,_0x37f83b),Y(0x1,_0x4c0ca6)],dn);const fn=[_0x7ea594(0x234),'jiqing.500',_0x7ea594(0x265),_0x7ea594(0x1c8),_0x7ea594(0x253),_0x7ea594(0x324)];var pn=class extends _0x2c43e7{constructor(..._0x2b08e3){const _0x1913a8=_0x7ea594;super(..._0x2b08e3),J(this,_0x1913a8(0x2ed),new Map()),J(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xafc253){const _0x32e6ff=_0x7ea594;if(this[_0x32e6ff(0x2ed)]['has'](_0xafc253))return this[_0x32e6ff(0x2ed)][_0x32e6ff(0x161)](_0xafc253);let _0x296193=fn[this[_0x32e6ff(0x342)]];return this[_0x32e6ff(0x342)]=(this[_0x32e6ff(0x342)]+0x1)%fn[_0x32e6ff(0x121)],this['_assignedColors'][_0x32e6ff(0x164)](_0xafc253,_0x296193),_0x296193;}};function mn(_0x2823df){const _0x1e1a41=_0x7ea594;let _0x2936fc='';for(let _0x3f56c4 of _0x2823df){let {startOffset:_0x6f8105,endOffset:_0x4f3326,isActive:_0x37e437,rangeType:_0x30b043,segmentId:_0x4ea1a2,segmentPage:_0x27cedf}=_0x3f56c4;_0x2936fc[_0x1e1a41(0x121)]&&(_0x2936fc+=','),_0x2936fc+=_0x6f8105+':'+_0x4f3326+':'+(_0x37e437?'1':'0')+':'+_0x30b043+':'+_0x4ea1a2+':'+_0x27cedf;}return _0x2936fc;}function hn(_0x2dd14e){const _0x25b84f=_0x7ea594;let _0x1aa50a=_0x2dd14e[_0x25b84f(0x276)](','),_0x1a8693=[];for(let _0xd69a24 of _0x1aa50a){let [_0x5aa341,_0x2b3dbf,_0x55622d,_0x327dc5,_0x5d9198,_0x3f2d55]=_0xd69a24[_0x25b84f(0x276)](':');_0x1a8693[_0x25b84f(0x2da)]({'startOffset':Number(_0x5aa341),'endOffset':Number(_0x2b3dbf),'collapsed':_0x5aa341===_0x2b3dbf,'isActive':_0x55622d==='1','rangeType':_0x327dc5===_0x1b3059[_0x25b84f(0x100)]?_0x1b3059[_0x25b84f(0x100)]:_0x1b3059['RECT'],'segmentId':typeof _0x5d9198==_0x25b84f(0xfc)?String(_0x5d9198):'','segmentPage':Number(_0x3f2d55??-0x1)});}return _0x1a8693['some'](_0x39957b=>_0x39957b[_0x25b84f(0x14b)])||(_0x1a8693[0x0][_0x25b84f(0x14b)]=!0x0),_0x1a8693;}var gn=class extends _0x28ff85{constructor(..._0x59f2f2){const _0xd5b94c=_0x7ea594;super(..._0x59f2f2),J(this,_0xd5b94c(0x1a0),new _0x5a8e6e(null)),J(this,_0xd5b94c(0x2cc),this[_0xd5b94c(0x1a0)]['asObservable']());}[_0x7ea594(0x101)](_0x11febd){const _0x29f29f=_0x7ea594;let {unitID:_0x5f1065,memberID:_0x4dbc3f,textRanges:_0x1525b5}=_0x11febd,_0x541200=mn(_0x1525b5);if(_0x541200==='')return;let _0x5567b4={'unitID':_0x5f1065,'memberID':_0x4dbc3f,'selection':_0x541200};this[_0x29f29f(0x1a0)][_0x29f29f(0x136)](_0x5567b4);}};let _n=class extends _0x28ff85{get['cursorInfo'](){const _0x2f15ee=_0x7ea594;return this[_0x2f15ee(0x132)]['getValue']();}get['roomMembers'](){const _0x2e983f=_0x7ea594;return this['_roomMembers$'][_0x2e983f(0x13a)]();}constructor(_0x3383ac,_0x513776,_0x107e2f,_0x1be66e,_0x20454d,_0x4ee1d8,_0x22828d,_0x25d356,_0xbec85c){const _0x53d79e=_0x7ea594;super(),this[_0x53d79e(0x195)]=_0x3383ac,this[_0x53d79e(0x2a0)]=_0x513776,this['_injector']=_0x107e2f,this[_0x53d79e(0x20c)]=_0x1be66e,this[_0x53d79e(0x344)]=_0x20454d,this[_0x53d79e(0x31b)]=_0x4ee1d8,this[_0x53d79e(0xdf)]=_0x22828d,this['_univerInstanceService']=_0x25d356,this[_0x53d79e(0x1c1)]=_0xbec85c,J(this,_0x53d79e(0x22d),!0x1),J(this,_0x53d79e(0x191),!0x1),J(this,_0x53d79e(0x132),new _0x5a8e6e(new Map())),J(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),J(this,'_roomMembers$',new _0x5a8e6e([])),J(this,_0x53d79e(0x1f5),this[_0x53d79e(0x323)]['pipe'](_0x40cc80(0x12c))),J(this,_0x53d79e(0x250),_0xf32b8d(_0x1e0441=>{const _0x5d50bc=_0x53d79e;let _0x1e8eda={'eventID':_0x865df6[_0x5d50bc(0x207)],'data':{'unitID':this[_0x5d50bc(0x195)],'memberID':this['_session'][_0x5d50bc(0x13b)](),'selection':mn(_0x1e0441)}};this[_0x5d50bc(0x2a0)]['send'](_0x1e8eda,this[_0x5d50bc(0x195)]);},0x64));}[_0x7ea594(0x2f1)](){const _0x231313=_0x7ea594;super[_0x231313(0x2f1)](),this[_0x231313(0x132)][_0x231313(0x136)](new Map()),this['_cursorInfo$'][_0x231313(0x278)](),this[_0x231313(0x323)][_0x231313(0x136)]([]),this[_0x231313(0x323)][_0x231313(0x278)]();}[_0x7ea594(0x1ee)](){const _0x109a0f=_0x7ea594;this[_0x109a0f(0x191)]||(this[_0x109a0f(0x191)]=!0x0,this[_0x109a0f(0x2a0)]['sessionStatus$'][_0x109a0f(0x1d5)](_0x2a3afc(this[_0x109a0f(0x190)]))[_0x109a0f(0x1de)](_0x4e703a=>{const _0x435850=_0x109a0f;_0x4e703a===_0xa8ada1[_0x435850(0x287)]?this[_0x435850(0x238)]():this['_toggleOffline']();}),this[_0x109a0f(0x2a0)][_0x109a0f(0x1d4)]['pipe'](_0x2a3afc(this['dispose$']))[_0x109a0f(0x1de)](_0x393c2d=>{const _0x4481e=_0x109a0f;let _0x42661d=_0x393c2d[_0x4481e(0x24f)];_0x42661d===_0x865df6[_0x4481e(0x207)]&&this['_onCursorUpdate'](_0x393c2d),_0x42661d===_0x865df6['USERS_LEAVE']&&this[_0x4481e(0x1c5)](_0x393c2d);}),this['disposeWithMe'](this[_0x109a0f(0x1c1)][_0x109a0f(0x2a2)](_0x2a41cb=>{const _0x2da19a=_0x109a0f;let _0x3fb878=_0x2a41cb['params'];_0x3fb878!=null&&this[_0x2da19a(0x22d)]&&_0x2a41cb['id']===_0x3e3d2c['id']&&_0x3fb878['unitId']===this[_0x2da19a(0x195)]&&_0x3fb878[_0x2da19a(0x233)]===!0x1&&_0x3fb878[_0x2da19a(0x1a5)][_0x2da19a(0x121)]>0x0&&this['_updateLocalCursor'](_0x3fb878[_0x2da19a(0x1a5)]);})),this[_0x109a0f(0x31b)]['collabCursorState$'][_0x109a0f(0x1d5)](_0x2a3afc(this[_0x109a0f(0x190)]))[_0x109a0f(0x1de)](_0xa5ebe7=>{const _0x56baf5=_0x109a0f;if((_0xa5ebe7==null?void 0x0:_0xa5ebe7[_0x56baf5(0x195)])!==this[_0x56baf5(0x195)])return;let _0x34293a={'eventID':_0x865df6[_0x56baf5(0x207)],'data':_0xa5ebe7};this[_0x56baf5(0x2f5)](_0x34293a);}),this['disposeWithMe'](this['_commandService'][_0x109a0f(0x2a2)](_0xd34417=>{const _0x1c695e=_0x109a0f;if(_0xd34417[_0x1c695e(0x131)]==null)return;let _0x15a8c5=_0xd34417[_0x1c695e(0x131)];if(_0xd34417['id']!==_0x4db170['id']||_0x15a8c5['unitId']!==this[_0x1c695e(0x195)])return;let _0x51007b={'id':'doc.mutation.rich-text-editing','params':_0x15a8c5},_0x1876db=this[_0x1c695e(0x10c)];for(let [_0x57a931,_0x187a2c]of _0x1876db){let _0x4fcb71={'id':_0x1c695e(0x272),'params':{'unitId':this[_0x1c695e(0x195)],'actions':null,'textRanges':_0x187a2c[_0x1c695e(0x1a5)]}},_0x57ee37=this[_0x1c695e(0xdf)][_0x1c695e(0x2e4)](_0x51007b,_0x4fcb71,!0x1);if(_0x13597e(_0x57ee37))throw _0x57ee37[_0x1c695e(0x19d)];_0x1876db['set'](_0x57a931,{..._0x187a2c,'ranges':_0x57ee37[_0x1c695e(0x2ad)][_0x1c695e(0x131)][_0x1c695e(0x1cf)]});}queueMicrotask(()=>{const _0x1a6bc1=_0x1c695e;this[_0x1a6bc1(0x132)][_0x1a6bc1(0x136)](_0x1876db);});})));}['_onCursorUpdate'](_0x1ec685){const _0x2d0763=_0x7ea594;var _0x4eaf7a;let {memberID:_0x15139,selection:_0x1013ae}=_0x1ec685[_0x2d0763(0x10b)],_0x5b9c6d=hn(_0x1013ae),_0x3d46f5=((_0x4eaf7a=this[_0x2d0763(0x344)][_0x2d0763(0x2d8)](this['unitID'],_0x15139))==null?void 0x0:_0x4eaf7a[_0x2d0763(0x2d6)])??'Unknown\x20user',_0x25e599={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x15139),'name':_0x3d46f5,'ranges':_0x5b9c6d},_0x34affc=this[_0x2d0763(0x10c)];_0x34affc['set'](_0x15139,_0x25e599),this[_0x2d0763(0x132)][_0x2d0763(0x136)](_0x34affc);}['_onCursorDelete'](_0x917e3e){const _0x15b4c1=_0x7ea594;let {memberID:_0x5c70d7}=_0x917e3e[_0x15b4c1(0x10b)],_0x4ebf38=this[_0x15b4c1(0x10c)];_0x4ebf38[_0x15b4c1(0x182)](_0x5c70d7),this[_0x15b4c1(0x132)][_0x15b4c1(0x136)](_0x4ebf38);}[_0x7ea594(0x238)](){const _0x543866=_0x7ea594;var _0x1cfade;if(this[_0x543866(0x22d)]=!0x0,((_0x1cfade=this[_0x543866(0x337)][_0x543866(0x116)]())==null?void 0x0:_0x1cfade[_0x543866(0x270)]())!==this['unitID'])return;let _0x7c6242=this[_0x543866(0x140)][_0x543866(0x161)](_0x291a40)['getDocRanges']();Array['isArray'](_0x7c6242)&&_0x7c6242[_0x543866(0x121)]>0x0&&this[_0x543866(0x250)](_0x7c6242);}[_0x7ea594(0x239)](){const _0x2c8878=_0x7ea594;this[_0x2c8878(0x22d)]=!0x1;}};_n=X([Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x5c888d(gn)),Y(0x6,_0x31acf5),Y(0x7,_0x28a580),Y(0x8,_0x15fe51)],_n);const vn=()=>{let _0x40f57c=[],_0x4a075f=!0x1;return _0x538b2a=>{const _0x51f7fa=_0x1c2b;_0x40f57c[_0x51f7fa(0x2da)](_0x538b2a),_0x4a075f||(_0x4a075f=!0x0,setTimeout(()=>{const _0x534577=_0x51f7fa;_0x40f57c[_0x534577(0x2c0)](_0x5313b4=>_0x5313b4()),_0x40f57c=[],_0x4a075f=!0x1;}));};};let yn=class extends _0x28ff85{get[_0x7ea594(0x10c)](){const _0x26b1be=_0x7ea594;return this['_cursorInfo$'][_0x26b1be(0x13a)]();}get[_0x7ea594(0x1ad)](){const _0x5d613d=_0x7ea594;return this[_0x5d613d(0x323)][_0x5d613d(0x13a)]();}constructor(_0x502215,_0x498ad0,_0x5b946f,_0x20cdce,_0x17f155,_0x41f86c,_0x2e286b,_0x2b2325){const _0x164559=_0x7ea594;super(),this[_0x164559(0x195)]=_0x502215,this[_0x164559(0x2a0)]=_0x498ad0,this[_0x164559(0x140)]=_0x5b946f,this['_colorAssignService']=_0x20cdce,this[_0x164559(0x344)]=_0x17f155,this[_0x164559(0x337)]=_0x41f86c,this[_0x164559(0x1c1)]=_0x2e286b,this['_refRangeService']=_0x2b2325,J(this,'_online',!0x1),J(this,'_init',!0x1),J(this,_0x164559(0x132),new _0x5a8e6e(new Map())),J(this,_0x164559(0x2f6),this['_cursorInfo$'][_0x164559(0xe4)]()),J(this,_0x164559(0x323),new _0x5a8e6e([])),J(this,_0x164559(0x1f5),this[_0x164559(0x323)]['pipe'](_0x40cc80(0x12c))),J(this,_0x164559(0x250),_0xf32b8d((_0x4e8e1a,_0x2312fd)=>{const _0x557047=_0x164559;let _0x657b65={'eventID':_0x865df6['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x557047(0x2a0)][_0x557047(0x13b)](),'selection':_0x2b799d(_0x4e8e1a,_0x2312fd[_0x557047(0x27a)])}};this[_0x557047(0x2a0)][_0x557047(0xdc)](_0x657b65,this[_0x557047(0x195)]);},0x64));}[_0x7ea594(0x2f1)](){const _0x330030=_0x7ea594;super['dispose'](),this[_0x330030(0x132)][_0x330030(0x136)](new Map()),this['_cursorInfo$'][_0x330030(0x278)](),this[_0x330030(0x323)][_0x330030(0x136)]([]),this['_roomMembers$'][_0x330030(0x278)]();}[_0x7ea594(0x1ee)](){const _0x487e61=_0x7ea594;this['_init']||(this[_0x487e61(0x191)]=!0x0,this['_session'][_0x487e61(0x1e9)][_0x487e61(0x1d5)](_0x2a3afc(this['dispose$']))[_0x487e61(0x1de)](_0x5c819b=>{const _0x511bea=_0x487e61;_0x5c819b===_0xa8ada1[_0x511bea(0x287)]?this['_toggleOnline']():this[_0x511bea(0x239)]();}),this[_0x487e61(0x2a0)][_0x487e61(0x1d4)][_0x487e61(0x1d5)](_0x2a3afc(this[_0x487e61(0x190)]))[_0x487e61(0x1de)](_0x230cd8=>{const _0x1f7c5a=_0x487e61;let _0x5b0369=_0x230cd8['eventID'];_0x5b0369===_0x865df6['UPDATE_CURSOR']&&this[_0x1f7c5a(0x2f5)](_0x230cd8),_0x5b0369===_0x865df6[_0x1f7c5a(0x24e)]&&this['_onCursorDelete'](_0x230cd8);}),this[_0x487e61(0x1b7)](),this[_0x487e61(0xf8)](this[_0x487e61(0x1c1)][_0x487e61(0x2a2)](_0x3ef376=>{const _0x16c60f=_0x487e61;if(this[_0x16c60f(0x22d)]&&_0x3ef376['id']===_0x5a7a11['id']&&_0x3ef376[_0x16c60f(0x131)][_0x16c60f(0x2ce)]===this[_0x16c60f(0x195)]){let _0xf205c8=_0x3ef376['params'];this[_0x16c60f(0x250)](_0xf205c8['subUnitId'],_0xf205c8[_0x16c60f(0x2cf)][0x0]);}})));}[_0x7ea594(0x2f5)](_0x38dd93){const _0x12537a=_0x7ea594;var _0x5783d7;let {memberID:_0x18bb62,selection:_0x490212}=_0x38dd93[_0x12537a(0x10b)],{sheetName:_0x2dc0eb,range:_0x22adde}=_0x3b9903(_0x490212),_0x3a36f2={'name':((_0x5783d7=this[_0x12537a(0x344)][_0x12537a(0x2d8)](this[_0x12537a(0x195)],_0x18bb62))==null?void 0x0:_0x5783d7[_0x12537a(0x2d6)])??_0x12537a(0x319),'range':this['_getMergeRange'](_0x2dc0eb,_0x22adde),'sheetID':_0x2dc0eb,'color':this[_0x12537a(0x20c)][_0x12537a(0x107)](_0x18bb62),'selection':_0x490212},_0x2bdfc3=this['cursorInfo'];_0x2bdfc3[_0x12537a(0x164)](_0x18bb62,_0x3a36f2),this[_0x12537a(0x132)]['next'](_0x2bdfc3);}[_0x7ea594(0x1c5)](_0x19e880){const _0x71e809=_0x7ea594;let {memberID:_0x53d809}=_0x19e880[_0x71e809(0x10b)],_0x3f22b7=this[_0x71e809(0x10c)];_0x3f22b7[_0x71e809(0x182)](_0x53d809),this['_cursorInfo$'][_0x71e809(0x136)](_0x3f22b7);}[_0x7ea594(0x166)](_0x40d092,_0x573628){const _0x9c52a0=_0x7ea594;var _0x4f7192;let _0x348244=(_0x4f7192=this[_0x9c52a0(0x337)][_0x9c52a0(0x206)](this[_0x9c52a0(0x195)],_0x51081c['UNIVER_SHEET']))==null||(_0x4f7192=_0x4f7192[_0x9c52a0(0x151)](_0x40d092))==null?void 0x0:_0x4f7192[_0x9c52a0(0x32c)]();return(_0x348244==null?void 0x0:_0x348244[_0x9c52a0(0x1bd)](_0x3104fe=>_0xdb208c[_0x9c52a0(0x117)](_0x3104fe,_0x573628)))||_0x573628;}['_onRefRangeChange'](){const _0x297b8f=_0x7ea594;let _0x1324af=new _0x200b02(),_0x14ec77=vn(),_0x55cfe3=()=>{const _0xf560d4=_0x1c2b;_0x1324af[_0xf560d4(0x2f1)]();let _0x17cd92=(_0xecab7f,_0x33ae12,_0x18cc1c,_0x496dae)=>{const _0x466c33=_0xf560d4;let _0x4684b7=[];switch(_0xecab7f['id']){case _0x5d5430[_0x466c33(0x208)]:_0x4684b7=_0x33b6d7(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x19f)]:_0x4684b7=_0x1d6acb(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x1b4)]:_0x4684b7=_0x57c4d6(_0xecab7f,_0x496dae);break;case _0x5d5430['InsertRangeMoveDownCommandId']:_0x4684b7=_0xd032ba(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x283)]:_0x4684b7=_0x2eb875(_0xecab7f,_0x496dae);break;case _0x5d5430['InsertRowCommandId']:_0x4684b7=_0x29910d(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x2f9)]:_0x4684b7=_0x294967(_0xecab7f,_0x496dae);break;case _0x5d5430[_0x466c33(0x126)]:_0x4684b7=_0x5e4f50(_0xecab7f,_0x496dae);break;case _0x5d5430['RemoveRowCommandId']:_0x4684b7=_0x12e3bf(_0xecab7f,_0x496dae);}let _0x4aaa54=_0x1ff6e1(_0x4684b7,_0x496dae),_0x39af17=this[_0x466c33(0x10c)][_0x466c33(0x161)](_0x33ae12);if(_0x39af17&&_0x4aaa54){let _0x2ff500={..._0x39af17,'range':_0x4aaa54};this[_0x466c33(0x10c)][_0x466c33(0x164)](_0x33ae12,_0x2ff500),_0x14ec77(()=>{const _0x4d2869=_0x466c33;let _0xac0034=this[_0x4d2869(0x138)][_0x4d2869(0x26d)](_0x4aaa54,_0x5d61c9=>(_0xac0034[_0x4d2869(0x2f1)](),_0x17cd92(_0x5d61c9,_0x33ae12,_0x18cc1c,_0x4aaa54)));_0x1324af[_0x4d2869(0x1ce)](_0xac0034);});}return{'redos':[],'undos':[]};};this[_0xf560d4(0x10c)][_0xf560d4(0x2c0)]((_0x37363b,_0x1db994)=>{const _0x1aa733=_0xf560d4;let {range:_0xfc7daa,sheetID:_0x1f59fd}=_0x37363b,_0x128b12=this[_0x1aa733(0x138)][_0x1aa733(0x26d)](_0xfc7daa,_0x394495=>(_0x128b12[_0x1aa733(0x2f1)](),_0x17cd92(_0x394495,_0x1db994,_0x1f59fd,_0xfc7daa)));_0x1324af[_0x1aa733(0x1ce)](_0x128b12);});};this[_0x297b8f(0xf8)](_0x42bb3c(this[_0x297b8f(0x132)][_0x297b8f(0x1de)](()=>{_0x55cfe3();})));}[_0x7ea594(0x238)](){const _0x3210ab=_0x7ea594;var _0x5a1314,_0x5a76d0;if(this[_0x3210ab(0x22d)]=!0x0,((_0x5a1314=this[_0x3210ab(0x337)][_0x3210ab(0x116)]())==null?void 0x0:_0x5a1314[_0x3210ab(0x270)]())!==this[_0x3210ab(0x195)])return;let _0x3dffe9=(_0x5a76d0=this[_0x3210ab(0x140)][_0x3210ab(0x161)](_0x3c2429)[_0x3210ab(0x1f1)]())==null?void 0x0:_0x5a76d0[0x0],_0x4ecf01=this['_univerInstanceService']['getCurrentUnitOfType'](_0x51081c[_0x3210ab(0x122)])[_0x3210ab(0xe0)]();_0x3dffe9&&_0x4ecf01&&this[_0x3210ab(0x250)](_0x4ecf01[_0x3210ab(0x21a)](),_0x3dffe9);}[_0x7ea594(0x239)](){const _0x4444c9=_0x7ea594;this[_0x4444c9(0x22d)]=!0x1;}};yn=X([Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x28a580),Y(0x6,_0x15fe51),Y(0x7,_0x5c888d(_0x3e2e64))],yn);let Q=class extends _0x28ff85{constructor(_0x3e4aec,_0x55de7c,_0x2c8f6b){const _0x148d55=_0x7ea594;super(),this[_0x148d55(0x337)]=_0x3e4aec,this['_injector']=_0x55de7c,this[_0x148d55(0x2a4)]=_0x2c8f6b,J(this,_0x148d55(0x33c),new Map()),J(this,_0x148d55(0x279),new _0x83a48d()),this[_0x148d55(0x191)]();}[_0x7ea594(0x2f1)](){const _0x3a3de7=_0x7ea594;super[_0x3a3de7(0x2f1)](),this['_entityInit$'][_0x3a3de7(0x278)](),this[_0x3a3de7(0x33c)][_0x3a3de7(0x2c0)](_0x25ef33=>_0x25ef33[_0x3a3de7(0x2f1)]());}[_0x7ea594(0x12d)](_0xd271e4){const _0x13cda5=_0x7ea594;let _0x454a1c=this[_0x13cda5(0x33c)][_0x13cda5(0x161)](_0xd271e4);return _0x454a1c?_0x454a1c[_0x13cda5(0x2f6)]:this['_entityInit$']['pipe'](_0x399a72(_0x252b6c=>_0x252b6c[_0x13cda5(0x195)]===_0xd271e4),_0x4957ed(_0x53ed0d=>_0x53ed0d[_0x13cda5(0x2f6)]));}['_init'](){const _0x15a95b=_0x7ea594;this[_0x15a95b(0x337)][_0x15a95b(0xf5)](_0x51081c[_0x15a95b(0x122)])[_0x15a95b(0x1d5)](_0x2a3afc(this[_0x15a95b(0x190)]))[_0x15a95b(0x1de)](async _0x3a8690=>{const _0x5c2632=_0x15a95b;let _0x13211e=_0x3a8690[_0x5c2632(0x14d)][_0x5c2632(0x270)](),_0x20431c=await this['_startSheetCollabCursor'](_0x13211e);this[_0x5c2632(0x279)][_0x5c2632(0x136)](_0x20431c),this[_0x5c2632(0x33c)]['set'](_0x13211e,_0x20431c);}),this[_0x15a95b(0x337)]['getTypeOfUnitAdded$'](_0x51081c['UNIVER_DOC'])['pipe'](_0x2a3afc(this['dispose$']))[_0x15a95b(0x1d5)](_0x399a72(_0xcd8e00=>!_0xcd8e00[_0x15a95b(0x14d)][_0x15a95b(0x270)]()['startsWith']('__')))[_0x15a95b(0x1de)](async _0x44808f=>{const _0x29335d=_0x15a95b;let {unit:_0x65f9bb}=_0x44808f,_0x434a80=_0x65f9bb[_0x29335d(0x270)](),_0x2434a4=await this[_0x29335d(0x33e)](_0x434a80);this[_0x29335d(0x279)][_0x29335d(0x136)](_0x2434a4),this[_0x29335d(0x33c)]['set'](_0x434a80,_0x2434a4);}),_0x28759e(this[_0x15a95b(0x337)][_0x15a95b(0x2ca)](_0x51081c[_0x15a95b(0x251)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x51081c[_0x15a95b(0x122)]))[_0x15a95b(0x1d5)](_0x2a3afc(this['dispose$']))['subscribe'](_0x3d1da1=>{const _0x30415d=_0x15a95b;let _0x69bc4f=_0x3d1da1[_0x30415d(0x270)](),_0x338117=this['_entities'][_0x30415d(0x161)](_0x69bc4f);_0x338117&&(_0x338117[_0x30415d(0x2f1)](),this[_0x30415d(0x33c)][_0x30415d(0x182)](_0x69bc4f));});}async['_startSheetCollabCursor'](_0x182b75){const _0xfd7a2c=_0x7ea594;let _0x251e83=await this[_0xfd7a2c(0x2a4)][_0xfd7a2c(0x348)](_0x182b75),_0x31b2d2=this[_0xfd7a2c(0x140)]['createInstance'](yn,_0x182b75,_0x251e83);return _0x31b2d2[_0xfd7a2c(0x1ee)](),_0x31b2d2;}async['_startDocCollabCursor'](_0x1b1125){const _0x2714bb=_0x7ea594;let _0x479865=await this['_collabSessionService'][_0x2714bb(0x348)](_0x1b1125),_0x3b7d4b=this[_0x2714bb(0x140)]['createInstance'](_n,_0x1b1125,_0x479865);return _0x3b7d4b[_0x2714bb(0x1ee)](),_0x3b7d4b;}};Q=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x25de4e))],Q);function bn(_0xfc3308,_0x56f55a){const _0x457b83=_0x7ea594;_0xfc3308[_0x457b83(0x2d0)](),_0xfc3308['font']=_0x457b83(0x30d);let _0xe7ebdc=_0xfc3308['measureText'](_0x56f55a)[_0x457b83(0x2c6)];return _0xfc3308[_0x457b83(0x1c2)](),Math[_0x457b83(0x2c4)](_0xe7ebdc+0x8,0xc8);}function xn(_0x2c33b3,_0x211605){const _0x237a2b=_0x7ea594;let {radius:_0x4962cd,width:_0x374529,height:_0x9b876c}=_0x211605;_0x4962cd??=0x0,_0x374529??=0x1e,_0x9b876c??=0x1e;let _0x14cb06=0x0,_0x4a54db=0x0,_0x291c87=0x0;_0x14cb06=_0x4a54db=_0x291c87=Math[_0x237a2b(0x2c4)](_0x4962cd,_0x374529/0x2,_0x9b876c/0x2),_0x2c33b3[_0x237a2b(0x2d2)](),_0x2c33b3[_0x237a2b(0x256)](_0x14cb06,0x0),_0x2c33b3['lineTo'](_0x374529-_0x4a54db,0x0),_0x2c33b3[_0x237a2b(0x24d)](_0x374529-_0x4a54db,_0x4a54db,_0x4a54db,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c33b3[_0x237a2b(0x214)](_0x374529,_0x9b876c-_0x291c87),_0x2c33b3[_0x237a2b(0x24d)](_0x374529-_0x291c87,_0x9b876c-_0x291c87,_0x291c87,0x0,Math['PI']/0x2,!0x1),_0x2c33b3['lineTo'](0x0,_0x9b876c),_0x2c33b3['lineTo'](0x0,_0x14cb06),_0x2c33b3[_0x237a2b(0x24d)](_0x14cb06,_0x14cb06,_0x14cb06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c33b3[_0x237a2b(0x1ef)](),_0x211605['fill']&&(_0x2c33b3[_0x237a2b(0x2d0)](),_0x2c33b3['fillStyle']=_0x211605[_0x237a2b(0x358)],_0x211605[_0x237a2b(0xee)]===_0x237a2b(0x260)?_0x2c33b3[_0x237a2b(0x358)]('evenodd'):_0x2c33b3[_0x237a2b(0x358)](),_0x2c33b3[_0x237a2b(0x1c2)]());}var Sn=class e extends _0x41d5b2{constructor(_0x2549e5,_0xae0834){const _0x3e9f2a=_0x7ea594;super(_0x2549e5,_0xae0834),J(this,_0x3e9f2a(0x1bb),void 0x0),J(this,'text',void 0x0),this[_0x3e9f2a(0x1bb)]=_0xae0834==null?void 0x0:_0xae0834[_0x3e9f2a(0x1bb)],this[_0x3e9f2a(0x1af)]=_0xae0834==null?void 0x0:_0xae0834['text'];}static[_0x7ea594(0x286)](_0x40ce78,_0x1e554c){const _0x266765=_0x7ea594;let {text:_0x2c4433,color:_0x3e85aa}=_0x1e554c;_0x40ce78['save'](),_0x40ce78['font']=_0x266765(0x12c);let _0x1666d1=_0x40ce78[_0x266765(0x257)](_0x2c4433)[_0x266765(0x2c6)];if(xn(_0x40ce78,{'height':0x14,'radius':0x4,'width':bn(_0x40ce78,_0x2c4433),'fill':_0x3e85aa,'evented':!0x1}),_0x40ce78['fillStyle']=_0x266765(0x148),_0x1666d1>0xc0){let _0x505adf='',_0x74a67f=0x0;for(let _0xdbd9b of _0x2c4433){let _0x5e5f24=_0x40ce78[_0x266765(0x257)](_0xdbd9b)[_0x266765(0x2c6)];if(_0x74a67f+_0x5e5f24<=0xc0-_0x40ce78[_0x266765(0x257)](_0x266765(0x355))['width'])_0x505adf+=_0xdbd9b,_0x74a67f+=_0x5e5f24;else{_0x505adf+=_0x266765(0x355);break;}}_0x40ce78[_0x266765(0x10d)](_0x505adf,0x4,0xf);}else _0x40ce78[_0x266765(0x10d)](_0x2c4433,0x4,0xf);_0x40ce78[_0x266765(0x1c2)]();}[_0x7ea594(0x14c)](_0x33d723){const _0x383942=_0x7ea594;e[_0x383942(0x286)](_0x33d723,this);}};const Cn=_0x7ea594(0x285);var wn=class{constructor(_0x4304f0,_0x23c521,_0x3f807e,_0x416eac){const _0x27c34a=_0x7ea594;this[_0x27c34a(0x194)]=_0x4304f0,this[_0x27c34a(0x16c)]=_0x23c521,this['_docSkeleton']=_0x3f807e,this['_document']=_0x416eac,J(this,_0x27c34a(0x1c4),[]),J(this,_0x27c34a(0x156),null),J(this,_0x27c34a(0x27e),null),J(this,_0x27c34a(0xfa),null),J(this,_0x27c34a(0x18a),null),J(this,_0x27c34a(0x178),null),this['_render']();}set['_hover'](_0x152e7c){const _0x42b00e=_0x7ea594;_0x152e7c?(this[_0x42b00e(0xfa)]&&this[_0x42b00e(0xfa)][_0x42b00e(0x26a)](),this[_0x42b00e(0x27e)]&&this[_0x42b00e(0x27e)]['show']()):(this[_0x42b00e(0xfa)]&&this['_anchorDot'][_0x42b00e(0x1f0)](),this[_0x42b00e(0x27e)]&&this['_textBubble'][_0x42b00e(0x26a)]());}[_0x7ea594(0x2f1)](){const _0x1f534d=_0x7ea594;for(let _0x343c91 of this[_0x1f534d(0x1c4)])_0x343c91[_0x1f534d(0x2f1)]();this[_0x1f534d(0x27e)]&&this[_0x1f534d(0x27e)][_0x1f534d(0x2f1)](),this[_0x1f534d(0xfa)]&&this[_0x1f534d(0xfa)][_0x1f534d(0x2f1)](),this['_anchor']&&this['_anchor'][_0x1f534d(0x2f1)](),this[_0x1f534d(0x178)]&&this[_0x1f534d(0x178)]();}[_0x7ea594(0x2c7)](){const _0x51d250=_0x7ea594;let {_docSkeleton:_0x1ae065,_document:_0x5160a5}=this,{color:_0xfc6f80,name:_0x3f388c,ranges:_0x351c84}=this[_0x51d250(0x194)],_0x4f8639=_0x5160a5[_0x51d250(0x1b9)](),{docsLeft:_0x524c91,docsTop:_0xae0a9}=_0x4f8639,_0x4dffbe=new _0x3213e1(_0x4f8639,_0x1ae065);for(let {startOffset:_0x244dc7,endOffset:_0x341015,rangeType:_0x436b17,segmentId:_0x155fc5,segmentPage:_0x20b1a8,collapsed:_0xba91c6,isActive:_0x1d8c29}of _0x351c84){let _0x114869=_0x1ae065[_0x51d250(0x245)](_0x244dc7,!0x0,_0x155fc5,_0x20b1a8),_0x440f4f=_0x1ae065[_0x51d250(0x245)](_0x341015,!0x0,_0x155fc5,_0x20b1a8);_0x440f4f??=_0x1ae065[_0x51d250(0x245)](_0x341015-0x1,!0x1,_0x155fc5,_0x20b1a8);let _0x41d3c5=Tn(_0x114869,_0x440f4f);if(_0x1d8c29&&_0x41d3c5[_0x51d250(0x311)]){let {contentBoxPointGroup:_0x569ba3}=_0x4dffbe[_0x51d250(0x2a6)](_0x440f4f,_0x440f4f);if(_0x569ba3[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x308)](_0xfc6f80,_0x569ba3,_0x524c91,_0xae0a9,_0x3f388c),this[_0x51d250(0x178)]=this[_0x51d250(0x115)]();}if(_0x114869&&_0x440f4f){if(_0x436b17===_0x1b3059[_0x51d250(0x176)]){let {pointGroup:_0x5f1255}=new _0x3655aa(_0x4f8639,_0x1ae065)['getRangePointData'](_0x114869,_0x440f4f)??{};if(_0x5f1255==null||_0x5f1255[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x114)](_0xfc6f80,_0x5f1255,_0x524c91,_0xae0a9);}else{if(!_0xba91c6&&_0x41d3c5[_0x51d250(0x32e)]){let {borderBoxPointGroup:_0x1d7d57}=_0x4dffbe['getRangePointData'](_0x114869,_0x440f4f);if(_0x1d7d57[_0x51d250(0x121)]===0x0)continue;this[_0x51d250(0x354)](_0xfc6f80,_0x1d7d57,_0x524c91,_0xae0a9);}}}}}[_0x7ea594(0x308)](_0x6e23ae,_0x5b2798,_0x47f722,_0x3151b6,_0xe65ffb){const _0x3525b2=_0x7ea594;let {left:_0x5bd82b,top:_0x1e6f7c,height:_0x1db498}=this[_0x3525b2(0x125)](_0x5b2798),_0x536b69=1.5/this[_0x3525b2(0x147)](),_0x4369e0=new _0x3a3ee5(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6,'height':_0x1db498,'width':1.5,'fill':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'strokeWidth':_0x536b69,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x3525b2(0x156)]=_0x4369e0,this[_0x3525b2(0x16c)]['addObject'](_0x4369e0,_0x22778c);let _0x3b006a=new _0x3a3ee5(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6-0x2,'height':0x4,'width':0x4,'fill':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'strokeWidth':0x0,'stroke':_0x6e23ae||_0x1e82d5(_0x48f4c1[_0x3525b2(0x22a)],0x0),'evented':!0x1});this[_0x3525b2(0xfa)]=_0x3b006a,this[_0x3525b2(0x16c)]['addObject'](_0x3b006a,_0x22778c);let _0x45bac7=new Sn(Cn+_0x415285(0x6),{'left':_0x5bd82b+_0x47f722-_0x536b69,'top':_0x1e6f7c+_0x3151b6-0x14,'text':_0xe65ffb,'color':_0x6e23ae});this[_0x3525b2(0x27e)]=_0x45bac7,this['_scene']['addObject'](_0x45bac7,_0x22778c),this[_0x3525b2(0x19a)]=!0x1;}[_0x7ea594(0x115)](){const _0x5d78ac=_0x7ea594;let _0x131a4e=this[_0x5d78ac(0x156)][_0x5d78ac(0x1b0)][_0x5d78ac(0x2bd)](()=>{const _0x305946=_0x5d78ac;this[_0x305946(0x19a)]=!0x0;}),_0x42a67f=this['_anchor'][_0x5d78ac(0x1d3)][_0x5d78ac(0x2bd)](()=>{const _0x4d149c=_0x5d78ac;this[_0x4d149c(0x18a)]&&clearTimeout(this[_0x4d149c(0x18a)]),this[_0x4d149c(0x18a)]=setTimeout(()=>{const _0x371ef1=_0x4d149c;this[_0x371ef1(0x19a)]=!0x1;},0x7d0);});return()=>{const _0x37975e=_0x5d78ac;_0x131a4e['unsubscribe'](),_0x42a67f[_0x37975e(0x1bc)]();};}[_0x7ea594(0x354)](_0x9e2bcc,_0x1e095b,_0x5aa98e,_0x336131){const _0xcab8ef=_0x7ea594;let _0xd38558=0.2,_0x33f8e4=new _0x4d3a61(_0x9e2bcc)[_0xcab8ef(0xe7)](_0xd38558)[_0xcab8ef(0x2d1)](),_0x124a07=new _0x1a0717(_0xcab8ef(0x11f)+_0x415285(0x6),{'pointsGroup':_0x1e095b,'fill':_0x33f8e4||_0x1e82d5(_0x48f4c1['black'],_0xd38558),'left':_0x5aa98e,'top':_0x336131,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xcab8ef(0x1c4)]['push'](_0x124a07),this['_scene']['addObject'](_0x124a07,_0x22778c);}[_0x7ea594(0x114)](_0x2c96d0,_0xcee0d7,_0x350457,_0x3c3585){const _0x2d311a=_0x7ea594;let _0x42d055=0.2,_0xb13c01=new _0x4d3a61(_0x2c96d0)['setAlpha'](_0x42d055)[_0x2d311a(0x2d1)](),_0x47b339=new _0x1a0717('collab-rect-range-'+_0x415285(0x6),{'pointsGroup':_0xcee0d7,'fill':_0xb13c01||_0x1e82d5(_0x48f4c1[_0x2d311a(0x22a)],_0x42d055),'left':_0x350457,'top':_0x3c3585,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d311a(0x1c4)]['push'](_0x47b339),this['_scene'][_0x2d311a(0x1e1)](_0x47b339,_0x22778c);}[_0x7ea594(0x125)](_0x113c9b){let _0x1f28b2=_0x113c9b[0x0],_0x4f8330=_0x1f28b2[0x0],_0x2ecc43=_0x1f28b2[0x2],{x:_0x5d40cd,y:_0x1d4fc3}=_0x4f8330,{x:_0x42eaf5,y:_0x474a20}=_0x2ecc43;return{'left':_0x5d40cd,'top':_0x1d4fc3,'width':_0x42eaf5-_0x5d40cd,'height':_0x474a20-_0x1d4fc3};}[_0x7ea594(0x147)](){const _0x2460b6=_0x7ea594;let {scaleX:_0x3e335e,scaleY:_0x273543}=this[_0x2460b6(0x16c)][_0x2460b6(0x11b)]();return Math[_0x2460b6(0x2aa)](_0x3e335e,_0x273543);}};function Tn(_0x317e59,_0x353671){const _0x3d36ae=_0x7ea594;if(!_0x353671)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x317e59||_0x317e59[_0x3d36ae(0x2e6)]!==_0x353671[_0x3d36ae(0x2e6)]||(_0x317e59[_0x3d36ae(0x2e6)]===_0x304f0a['HEADER']||_0x317e59[_0x3d36ae(0x2e6)]===_0x304f0a['FOOTER'])&&_0x317e59[_0x3d36ae(0x1b6)]!==_0x353671['segmentPage'])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2e0e79=_0x1b7c2a(_0x317e59),_0x3d961e=_0x1b7c2a(_0x353671);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2e0e79==null||_0x3d961e==null?_0x2e0e79==null&&_0x3d961e==null:_0x2e0e79[_0x3d36ae(0x21b)]===_0x3d961e[_0x3d36ae(0x21b)]&&_0x2e0e79[_0x3d36ae(0x2fb)]===_0x3d961e[_0x3d36ae(0x2fb)]&&_0x2e0e79[_0x3d36ae(0x26f)]===_0x3d961e['columnIndex']};}let En=class extends _0x28ff85{constructor(_0x32193d,_0x42c987,_0x429334,_0x367253,_0x1af054){const _0x141ae5=_0x7ea594;super(),this[_0x141ae5(0x216)]=_0x32193d,this[_0x141ae5(0x173)]=_0x42c987,this['_collabCursorController']=_0x429334,this['_commandService']=_0x367253,this[_0x141ae5(0x12b)]=_0x1af054,J(this,'_cursorShapes',[]),J(this,'_cursors',[]),this[_0x141ae5(0x191)]();}[_0x7ea594(0x191)](){const _0x2aef36=_0x7ea594;let _0x50a9e6=this[_0x2aef36(0x216)][_0x2aef36(0x2ce)],_0x27f188=this[_0x2aef36(0x173)];this[_0x2aef36(0xf8)](_0x41dcbc([this[_0x2aef36(0x145)][_0x2aef36(0x12d)](_0x50a9e6),this[_0x2aef36(0x12b)]['currentTheme$']])[_0x2aef36(0x1d5)](_0x3cbcba(([_0x496a77,_0x28cc30])=>({'skeleton':_0x27f188[_0x2aef36(0x1e6)](),'cursors':[..._0x496a77[_0x2aef36(0x163)]()][_0x2aef36(0x293)](_0x165330=>({..._0x165330,'color':this[_0x2aef36(0x12b)][_0x2aef36(0x335)](_0x165330[_0x2aef36(0x1bb)])}))})))[_0x2aef36(0x1de)](_0x1f1fc7=>{const _0x56941a=_0x2aef36;if(this[_0x56941a(0x327)](),_0x1f1fc7){let {skeleton:_0x50ee4e,cursors:_0x48958f}=_0x1f1fc7;this[_0x56941a(0x1c6)](_0x50ee4e,_0x48958f);}})),this[_0x2aef36(0x1d0)](),this[_0x2aef36(0x219)]();}[_0x7ea594(0x1c6)](_0x2e9511,_0x4bfd2e){const _0x3888d9=_0x7ea594;let {scene:_0x562aee,mainComponent:_0x4dd886}=this[_0x3888d9(0x216)],_0xc05d94=_0x4bfd2e[_0x3888d9(0x171)](_0x7d269=>new wn(_0x7d269,_0x562aee,_0x2e9511,_0x4dd886));this['_cursorShapes']=_0xc05d94,this[_0x3888d9(0x157)]=_0x4bfd2e;}[_0x7ea594(0x2eb)](){const _0x350bd8=_0x7ea594;this['_removeCollabCursors']();let {scene:_0xd21b3d,mainComponent:_0x26036f}=this[_0x350bd8(0x216)],_0x109d10=this['_docSkeletonManagerService'][_0x350bd8(0x1e6)](),_0x367ada=this[_0x350bd8(0x157)][_0x350bd8(0x171)](_0x29bdce=>new wn(_0x29bdce,_0xd21b3d,_0x109d10,_0x26036f));this[_0x350bd8(0x2e2)]=_0x367ada;}[_0x7ea594(0x327)](){const _0x5d8490=_0x7ea594;this[_0x5d8490(0x2e2)][_0x5d8490(0x2c0)](_0x171115=>_0x171115[_0x5d8490(0x2f1)]()),this[_0x5d8490(0x2e2)]=[];}[_0x7ea594(0x219)](){const _0x1d50eb=_0x7ea594;let _0x46a4b0=[_0x43d3b6['id']];this[_0x1d50eb(0xf8)](this[_0x1d50eb(0x1c1)][_0x1d50eb(0x2a2)](_0x53d557=>{const _0x39aedb=_0x1d50eb;_0x46a4b0[_0x39aedb(0x353)](_0x53d557['id'])&&_0x53d557[_0x39aedb(0x131)][_0x39aedb(0x2ce)]===this[_0x39aedb(0x216)][_0x39aedb(0x2ce)]&&this[_0x39aedb(0x2eb)]();}));}[_0x7ea594(0x1d0)](){const _0xf848cf=_0x7ea594;this[_0xf848cf(0xf8)](_0x370585(this['_context']['engine'][_0xf848cf(0x2fa)])['pipe'](_0x39dc50(_0x5539ac=>_0x5539ac[_0xf848cf(0x34f)]===_0x2dc7e5[_0xf848cf(0x246)]),_0x51921d(0x10))[_0xf848cf(0x1de)](()=>{this['_refreshCollabCursors']();}));}};En=X([Y(0x1,_0x5c888d(_0x12f6b5)),Y(0x2,_0x5c888d(Q)),Y(0x3,_0x15fe51),Y(0x4,_0x5c888d(_0x16edca))],En);var Dn=class extends _0x41d5b2{constructor(_0x27d293,_0x277b20){const _0xfd7c47=_0x7ea594;super(_0x27d293,_0x277b20),J(this,_0xfd7c47(0x26c),void 0x0),J(this,_0xfd7c47(0x14f),!0x1),J(this,_0xfd7c47(0x222),void 0x0),J(this,_0xfd7c47(0xef),''),J(this,_0xfd7c47(0x19e),_0xfd7c47(0x294)),J(this,_0xfd7c47(0xf6),void 0x0),J(this,'_showText',void 0x0),J(this,_0xfd7c47(0x11e),void 0x0),J(this,_0xfd7c47(0x23e),0x4),J(this,_0xfd7c47(0x1cd),void 0x0),J(this,_0xfd7c47(0x189),void 0x0),J(this,_0xfd7c47(0x19c),!0x0),J(this,'_offsetY',0x0),J(this,'_labelHorizontalPosition',_0xfd7c47(0x1ea)),_0x277b20&&(this['setShapeProps'](_0x277b20),_0x277b20[_0xfd7c47(0x139)]&&(_0x277b20[_0xfd7c47(0x1e0)]??this[_0xfd7c47(0x23e)])&&this['_startBlinking'](_0x277b20['highlightSecond']??this[_0xfd7c47(0x23e)])),this[_0xfd7c47(0x1b0)][_0xfd7c47(0x2bd)](()=>this[_0xfd7c47(0x1a4)]({'hovered':!0x0})),this['onPointerLeave$'][_0xfd7c47(0x2bd)](()=>this['setShapeProps']({'hovered':!0x1}));}[_0x7ea594(0x1f4)](_0x4784a6){const _0x388891=_0x7ea594;this[_0x388891(0x1d9)]=_0x4784a6;}['setShapeProps'](_0x59a0ec){const _0x5b1a95=_0x7ea594;this[_0x5b1a95(0x26c)]=_0x59a0ec['color']??this[_0x5b1a95(0x26c)],this[_0x5b1a95(0x14f)]=_0x59a0ec[_0x5b1a95(0x21f)]??this[_0x5b1a95(0x14f)],this[_0x5b1a95(0x222)]=_0x59a0ec[_0x5b1a95(0x27a)]??this[_0x5b1a95(0x222)],this[_0x5b1a95(0xef)]=_0x59a0ec[_0x5b1a95(0x2d6)]??this[_0x5b1a95(0xef)],this[_0x5b1a95(0x19e)]=_0x59a0ec[_0x5b1a95(0x33b)]??this['_labelPosition'],this['_backgroundColor']=_0x59a0ec[_0x5b1a95(0xed)]??this[_0x5b1a95(0xf6)],this['_showText']=_0x59a0ec[_0x5b1a95(0x25f)]??this['_showText'],this['_labelHorizontalPosition']=_0x59a0ec[_0x5b1a95(0x29e)]??this['_labelHorizontalPosition'],_0x59a0ec[_0x5b1a95(0x1e0)]!==void 0x0&&(this[_0x5b1a95(0x23e)]=_0x59a0ec[_0x5b1a95(0x1e0)]),_0x59a0ec['highlight']!==void 0x0&&(this[_0x5b1a95(0x11e)]=_0x59a0ec['highlight']),_0x59a0ec[_0x5b1a95(0x336)]!==void 0x0&&(this[_0x5b1a95(0x1d9)]=_0x59a0ec[_0x5b1a95(0x336)]),this['transformByState']({'width':_0x59a0ec[_0x5b1a95(0x2c6)],'height':_0x59a0ec[_0x5b1a95(0x25c)]});}[_0x7ea594(0x22b)](_0x392cd1){const _0x5e891e=_0x7ea594;let {row:_0x5dab29,column:_0x4c130d}=_0x392cd1;_0x5dab29>=this[_0x5e891e(0x222)][_0x5e891e(0x184)]&&_0x5dab29<=this[_0x5e891e(0x222)][_0x5e891e(0x11d)]&&_0x4c130d>=this[_0x5e891e(0x222)][_0x5e891e(0x12a)]&&_0x4c130d<=this['_range'][_0x5e891e(0x1e2)]?this['setShapeProps']({'hovered':!0x0}):this['setShapeProps']({'hovered':!0x1});}[_0x7ea594(0x1ab)](_0x58d859){const _0x98110b=_0x7ea594;this[_0x98110b(0x153)](),this['_isBlinkVisible']=!0x0,this[_0x98110b(0x189)]=window[_0x98110b(0x187)](()=>{const _0x51aef5=_0x98110b;this[_0x51aef5(0x19c)]=!this['_isBlinkVisible'],this[_0x51aef5(0x350)](!0x0);},0x1f4),this[_0x98110b(0x1cd)]=window['setTimeout'](()=>{const _0x26c27f=_0x98110b;this[_0x26c27f(0x153)](),this[_0x26c27f(0x19c)]=!0x0,this[_0x26c27f(0x350)](!0x0);},_0x58d859*0x3e8);}[_0x7ea594(0x153)](){const _0x1cdbbb=_0x7ea594;this[_0x1cdbbb(0x189)]&&=(window[_0x1cdbbb(0x2a7)](this[_0x1cdbbb(0x189)]),void 0x0),this['_blinkTimer']&&=(window[_0x1cdbbb(0x29c)](this[_0x1cdbbb(0x1cd)]),void 0x0);}[_0x7ea594(0x12f)](_0x3d5e71){return!0x1;}[_0x7ea594(0x2f1)](){const _0x8bdf1e=_0x7ea594;this[_0x8bdf1e(0x153)](),super['dispose']();}[_0x7ea594(0x14c)](_0x3fe654){const _0x5b720d=_0x7ea594;let _0x4e038f=this[_0x5b720d(0x26c)],_0x28da81=this[_0x5b720d(0xf6)];if(this[_0x5b720d(0x11e)]&&!this[_0x5b720d(0x19c)]&&(_0x4e038f=this[_0x5b720d(0x1b8)](this[_0x5b720d(0x26c)]),_0x28da81=this['_backgroundColor']?this[_0x5b720d(0x1b8)](this[_0x5b720d(0xf6)]):void 0x0),_0x3a3ee5[_0x5b720d(0x286)](_0x3fe654,{'width':this[_0x5b720d(0x2c6)],'height':this[_0x5b720d(0x25c)],'strokeWidth':this[_0x5b720d(0x18b)]||1.5,'stroke':_0x4e038f,'evented':!0x1,'fill':_0x28da81}),this[_0x5b720d(0x14f)]||this['_showText']){_0x3fe654[_0x5b720d(0x2d0)]();let _0x35240d=this[_0x5b720d(0x321)]==='left'?-bn(_0x3fe654,this[_0x5b720d(0xef)]):this[_0x5b720d(0x2c6)];_0x3fe654['transform'](0x1,0x0,0x0,0x1,_0x35240d,(this[_0x5b720d(0x19e)]===_0x5b720d(0x223)?0x0:-0x14)+(this['_offsetY']??0x0)),Sn[_0x5b720d(0x286)](_0x3fe654,{'text':this[_0x5b720d(0xef)],'color':_0x4e038f}),_0x3fe654[_0x5b720d(0x1c2)]();}}['_getLighterColor'](_0x23812d){const _0x463c3c=_0x7ea594;return _0x23812d[_0x463c3c(0x142)]('#')?_0x463c3c(0x274)+Number[_0x463c3c(0x28f)](_0x23812d[_0x463c3c(0xf3)](0x1,0x3),0x10)+',\x20'+Number[_0x463c3c(0x28f)](_0x23812d[_0x463c3c(0xf3)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x23812d[_0x463c3c(0xf3)](0x5,0x7),0x10)+',\x200.2)':_0x23812d['startsWith']('rgba')?_0x23812d[_0x463c3c(0x291)](/[\d.]+\)$/g,_0x463c3c(0x134)):_0x23812d[_0x463c3c(0x142)]('rgb')?_0x23812d['replace'](_0x463c3c(0x28b),_0x463c3c(0x2b0))[_0x463c3c(0x291)](')',_0x463c3c(0x165)):_0x23812d;}};let On=class extends _0x28ff85{constructor(_0x47c572,_0x8415c5,_0x550828,_0x5e03c0){const _0x403443=_0x7ea594;super(),this[_0x403443(0x216)]=_0x47c572,this[_0x403443(0x237)]=_0x8415c5,this[_0x403443(0x145)]=_0x550828,this[_0x403443(0x12b)]=_0x5e03c0,J(this,'_cursors',new Set()),J(this,_0x403443(0x2a8),null),J(this,_0x403443(0x332),null),this['_init']();}[_0x7ea594(0x191)](){const _0x7f410b=_0x7ea594;this[_0x7f410b(0x237)]['currentSkeleton$']['pipe'](_0x4eff35(this[_0x7f410b(0x190)]),_0x1da258(_0x24c309=>{const _0x575b96=_0x7f410b;if(_0x24c309){let _0x724074=_0x24c309[_0x575b96(0x1a3)];return _0x41dcbc(this[_0x575b96(0x145)]['getCollabCursors$'](this[_0x575b96(0x216)][_0x575b96(0x2ce)]),this['_themeService'][_0x575b96(0x254)])[_0x575b96(0x1d5)](_0x3cbcba(([_0x42f5d6,_0x2581ab])=>{const _0x1a4f06=_0x575b96;let _0x5a85cc=new Map();return _0x42f5d6[_0x1a4f06(0x2c0)]((_0x271656,_0x19308f)=>{const _0x5a3349=_0x1a4f06;if(_0x271656[_0x5a3349(0x1a7)]===_0x724074){let _0x599b15={..._0x271656};_0x599b15[_0x5a3349(0x1bb)]=this['_themeService'][_0x5a3349(0x335)](_0x271656[_0x5a3349(0x1bb)]),_0x5a85cc[_0x5a3349(0x164)](_0x19308f,_0x599b15);}}),{'skeleton':_0x24c309,'cursors':_0x5a85cc};}));}return _0x13f646({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2fd8a2,cursors:_0x5ac67a})=>{const _0x5f47d9=_0x7f410b;this[_0x5f47d9(0x327)](),_0x2fd8a2&&this[_0x5f47d9(0x1c6)](_0x2fd8a2,_0x5ac67a);}),this[_0x7f410b(0xf8)](this[_0x7f410b(0x237)]['currentSkeleton$']['pipe'](_0x4eff35(this[_0x7f410b(0x190)]))[_0x7f410b(0x1de)](_0x3502f2=>{const _0x399bd9=_0x7f410b;var _0x1c1ad5;if(_0x3502f2==null)return;(_0x1c1ad5=this[_0x399bd9(0x332)])==null||_0x1c1ad5[_0x399bd9(0x1bc)](),this[_0x399bd9(0x332)]=null;let {skeleton:_0x45d526}=_0x3502f2,{scene:_0x28b090}=this[_0x399bd9(0x216)];this['_pointerMoveDisposable']=_0x28b090[_0x399bd9(0x1cc)][_0x399bd9(0x2bd)](_0xf32b8d(_0x9ebbdd=>{const _0x253ad6=_0x399bd9;var _0x2573fe,_0x47a667;let {offsetX:_0x14d7da,offsetY:_0x2077fb}=_0x9ebbdd,{x:_0x26f2e6,y:_0x2a9b8d}=_0x28b090['getCoordRelativeToViewport'](_0x9573fe[_0x253ad6(0x309)]([_0x14d7da,_0x2077fb])),{scaleX:_0x19c00d,scaleY:_0x9bdbf8}=_0x28b090['getAncestorScale'](),_0x23ab86=_0x28b090[_0x253ad6(0x123)](_0x1822ce['VIEW_MAIN']),_0x5782e7=_0x28b090[_0x253ad6(0x226)](_0x9573fe['FromArray']([_0x26f2e6,_0x2a9b8d]),_0x23ab86),_0xa28d5a=_0x45d526[_0x253ad6(0x2ee)](_0x14d7da,_0x2077fb,_0x19c00d,_0x9bdbf8,_0x5782e7);(((_0x2573fe=this[_0x253ad6(0x2a8)])==null?void 0x0:_0x2573fe[_0x253ad6(0x23d)])!==_0xa28d5a[_0x253ad6(0x23d)]||((_0x47a667=this[_0x253ad6(0x2a8)])==null?void 0x0:_0x47a667['row'])!==_0xa28d5a[_0x253ad6(0xe5)])&&this['_cursors'][_0x253ad6(0x2c0)](_0x302a8c=>{const _0xd06dd0=_0x253ad6;_0x302a8c[_0xd06dd0(0x22b)](_0xa28d5a);});},0x64));})),this[_0x7f410b(0xf8)](_0x42bb3c(()=>{const _0xbfde1c=_0x7f410b;var _0x5a963b;(_0x5a963b=this[_0xbfde1c(0x332)])==null||_0x5a963b['unsubscribe'](),this[_0xbfde1c(0x332)]=null;}));}[_0x7ea594(0x1c6)](_0x582bce,_0x6ceb9c){const _0x34e347=_0x7ea594;let _0x30630c=this[_0x34e347(0x237)][_0x34e347(0x302)]();if(!_0x30630c)return;let _0x1baaae=this['_getSheetObject']();if(!_0x1baaae)return;this[_0x34e347(0x157)][_0x34e347(0x2c0)](_0x51b130=>{const _0x1ec433=_0x34e347;_0x51b130[_0x1ec433(0x350)]();});let {scene:_0x152272}=_0x1baaae,_0x546e29=kn(Array[_0x34e347(0x1eb)](_0x6ceb9c[_0x34e347(0x163)]()))[_0x34e347(0x171)](_0xcb1d47=>{const _0xbe322b=_0x34e347;let {color:_0xb77db4,range:_0x10f378,name:_0x521112,selection:_0x17e0cb,sheetID:_0x5abc2e}=_0xcb1d47,{startColumn:_0xa04e8b,startRow:_0x5f3377,endColumn:_0x8f38df,endRow:_0x4ec26a}=_0x10f378,_0xe64acf=_0x17a4e6(_0x5f3377,_0xa04e8b,_0x152272,_0x30630c),_0x53de72=_0x17a4e6(_0x4ec26a,_0x8f38df,_0x152272,_0x30630c),{columnHeaderHeightAndMarginTop:_0x3fd290}=_0x30630c,{startX:_0x44d705,startY:_0x1734a2}=_0xe64acf,{endX:_0x47a19d,endY:_0x5dc403}=_0x53de72,_0x2f92f7=_0x47a19d-_0x44d705,_0x4a8ad7=_0x5dc403-_0x1734a2;return new Dn(_0x521112,{'labelPosition':_0x1734a2-_0x3fd290>=0x14?_0xbe322b(0x294):'bottom','sheetID':_0x5abc2e,'range':_0x10f378,'color':_0xb77db4,'name':_0x521112,'selection':_0x17e0cb,'left':_0x44d705,'top':_0x1734a2,'width':_0x2f92f7,'height':_0x4a8ad7,'evented':!0x1,'zIndex':0x1389});});_0x152272['addObjects'](_0x546e29,0x1),this['_cursors']=new Set(_0x546e29);}[_0x7ea594(0x327)](){const _0x183f79=_0x7ea594;var _0x40819d;(_0x40819d=this[_0x183f79(0x157)])==null||_0x40819d[_0x183f79(0x2c0)](_0x41e911=>_0x41e911[_0x183f79(0x2f1)]());}[_0x7ea594(0x186)](){const _0x461977=_0x7ea594;return _0x27e85c(this[_0x461977(0x216)][_0x461977(0x14d)],this[_0x461977(0x216)]);}};On=X([Y(0x1,_0x5c888d(_0x2e722a)),Y(0x2,_0x5c888d(Q)),Y(0x3,_0x5c888d(_0x16edca))],On);function kn(_0xa7a144){const _0x59d31b=_0x7ea594;let _0x186b25=new Map();return _0xa7a144[_0x59d31b(0x2c0)](_0x33fdab=>{const _0x8c3fde=_0x59d31b;if(_0x186b25[_0x8c3fde(0x2c5)](_0x33fdab['selection'])){let _0x4262c7=_0x186b25[_0x8c3fde(0x161)](_0x33fdab[_0x8c3fde(0x333)]);_0x4262c7['name']+=',\x20'+_0x33fdab[_0x8c3fde(0x2d6)];}else _0x186b25[_0x8c3fde(0x164)](_0x33fdab[_0x8c3fde(0x333)],_0x33fdab);}),Array[_0x59d31b(0x1eb)](_0x186b25['values']());}function An(_0x352742){return typeof _0x352742=='object'&&!!_0x352742;}function jn(_0x3e96e9){const _0x1c659c=_0x7ea594;return _0x3e96e9['eventID']===_0x865df6[_0x1c659c(0x207)]&&_0x1c659c(0x10b)in _0x3e96e9&&An(_0x3e96e9[_0x1c659c(0x10b)])&&typeof _0x3e96e9[_0x1c659c(0x10b)][_0x1c659c(0x35a)]==_0x1c659c(0xfc)&&typeof _0x3e96e9[_0x1c659c(0x10b)]['selection']==_0x1c659c(0xfc);}function Mn(_0x2d7425){const _0x34b199=_0x7ea594;return _0x2d7425[_0x34b199(0x24f)]===_0x865df6['USERS_LEAVE']&&_0x34b199(0x10b)in _0x2d7425&&An(_0x2d7425['data'])&&typeof _0x2d7425['data'][_0x34b199(0x35a)]==_0x34b199(0xfc);}function Nn(_0x47fa1c,_0x3fc24d){const _0x4025ea=_0x7ea594;let _0x46bb3d;try{_0x46bb3d=JSON[_0x4025ea(0x188)](_0x47fa1c);}catch{return null;}if(!An(_0x46bb3d)||typeof _0x46bb3d[_0x4025ea(0x2fc)]!=_0x4025ea(0xfc)||typeof _0x46bb3d[_0x4025ea(0x2ce)]!=_0x4025ea(0xfc)||typeof _0x46bb3d[_0x4025ea(0x29f)]!=_0x4025ea(0xfc))return null;let _0x983260=typeof _0x46bb3d['unitType']=='number'?_0x46bb3d['unitType']:_0x3fc24d;if(_0x983260==null)return null;let _0x2aedef=An(_0x46bb3d[_0x4025ea(0x25e)])&&typeof _0x46bb3d[_0x4025ea(0x25e)]['x']==_0x4025ea(0x2e9)&&Number[_0x4025ea(0x310)](_0x46bb3d[_0x4025ea(0x25e)]['x'])&&typeof _0x46bb3d[_0x4025ea(0x25e)]['y']=='number'&&Number['isFinite'](_0x46bb3d[_0x4025ea(0x25e)]['y'])?{'x':_0x46bb3d[_0x4025ea(0x25e)]['x'],'y':_0x46bb3d[_0x4025ea(0x25e)]['y']}:null;return{'kind':_0x46bb3d['kind'],'unitType':_0x983260,'unitId':_0x46bb3d[_0x4025ea(0x2ce)],'subUnitId':_0x46bb3d['subUnitId'],'selectedIds':Array[_0x4025ea(0x312)](_0x46bb3d[_0x4025ea(0x23a)])?_0x46bb3d[_0x4025ea(0x23a)]['filter'](_0x5a4278=>typeof _0x5a4278==_0x4025ea(0xfc)):[],'focusedId':typeof _0x46bb3d['focusedId']==_0x4025ea(0xfc)?_0x46bb3d[_0x4025ea(0x21c)]:null,'pointer':_0x2aedef};}function Pn(_0x448776,_0x21697d,_0xe9dbd2){const _0x1d4514=_0x7ea594;return{'kind':_0x21697d,'unitType':_0x448776,'unitId':_0xe9dbd2['unitId'],'subUnitId':_0xe9dbd2[_0x1d4514(0x29f)],'selectedIds':Array[_0x1d4514(0x1eb)](_0xe9dbd2[_0x1d4514(0x23a)]),'focusedId':_0xe9dbd2[_0x1d4514(0x21c)],'pointer':_0xe9dbd2['pointer']?{..._0xe9dbd2[_0x1d4514(0x25e)]}:null};}let Fn=class extends _0x28ff85{constructor(_0x141a95,_0x41479c,_0x357259,_0x12f3d2,_0x541485,_0x15eff9){const _0x1a4f5b=_0x7ea594;super(),this[_0x1a4f5b(0x2ce)]=_0x141a95,this[_0x1a4f5b(0x2a0)]=_0x41479c,this['_adapter']=_0x357259,this[_0x1a4f5b(0x20c)]=_0x12f3d2,this[_0x1a4f5b(0x344)]=_0x541485,this['_commandService']=_0x15eff9,J(this,_0x1a4f5b(0x22d),!0x1),J(this,'_initialized',!0x1);}get['unitType'](){const _0x4ad5a8=_0x7ea594;return this[_0x4ad5a8(0x180)][_0x4ad5a8(0x2cd)];}[_0x7ea594(0x2f1)](){const _0x2609b0=_0x7ea594;this[_0x2609b0(0x1fb)](),super[_0x2609b0(0x2f1)]();}[_0x7ea594(0x1ee)](){const _0x25061c=_0x7ea594;this[_0x25061c(0xeb)]||(this[_0x25061c(0xeb)]=!0x0,this['_session'][_0x25061c(0x1e9)][_0x25061c(0x1d5)](_0x2a3afc(this[_0x25061c(0x190)]))[_0x25061c(0x1de)](_0x3e4ad1=>{const _0x13f6ce=_0x25061c;if(_0x3e4ad1===_0xa8ada1[_0x13f6ce(0x287)]){this['_online']=!0x0;let _0x1b2b6c=this[_0x13f6ce(0x180)][_0x13f6ce(0x210)](this['unitId']);_0x1b2b6c&&this[_0x13f6ce(0x1a6)](_0x1b2b6c);}else this[_0x13f6ce(0x22d)]=!0x1,this[_0x13f6ce(0x1fb)]();}),this[_0x25061c(0x2a0)][_0x25061c(0x1d4)][_0x25061c(0x1d5)](_0x2a3afc(this['dispose$']))[_0x25061c(0x1de)](_0x491a89=>{const _0x2e4ae1=_0x25061c;jn(_0x491a89)?this[_0x2e4ae1(0x2ac)](_0x491a89):Mn(_0x491a89)&&this['_removeRemotePresence'](_0x491a89[_0x2e4ae1(0x10b)][_0x2e4ae1(0x35a)]);}),this[_0x25061c(0x180)][_0x25061c(0xf2)]['pipe'](_0x399a72(_0x98ee91=>this[_0x25061c(0x22d)]&&_0x98ee91['unitId']===this[_0x25061c(0x2ce)]),_0x3dbcf7(_0x4f25e2=>_0x46c7e6(_0x4f25e2['shareInterval']),{'leading':!0x0,'trailing':!0x0}),_0x2a3afc(this[_0x25061c(0x190)]))[_0x25061c(0x1de)](_0x2e077e=>this['_sendLocalPresence'](_0x2e077e)));}[_0x7ea594(0x1a6)](_0x564ec6){const _0x57afed=_0x7ea594;let _0xfe94c9=this[_0x57afed(0x2a0)][_0x57afed(0x13b)]();if(!_0xfe94c9||!this['_online'])return;let _0x5f15ef={'eventID':_0x865df6['UPDATE_CURSOR'],'data':{'unitID':this[_0x57afed(0x2ce)],'memberID':_0xfe94c9,'selection':JSON[_0x57afed(0x34a)](Pn(this[_0x57afed(0x2cd)],this[_0x57afed(0x180)]['presenceKind'],_0x564ec6))}};this[_0x57afed(0x2a0)][_0x57afed(0xdc)](_0x5f15ef,this[_0x57afed(0x2ce)])[_0x57afed(0x193)](()=>void 0x0);}[_0x7ea594(0x2ac)](_0x58ad2b){const _0x29ad3a=_0x7ea594;let {memberID:_0x42452d,selection:_0x328337}=_0x58ad2b[_0x29ad3a(0x10b)];if(_0x42452d===this[_0x29ad3a(0x2a0)][_0x29ad3a(0x13b)]())return;let _0x3379e9=Nn(_0x328337,this[_0x29ad3a(0x2cd)]);if(!_0x3379e9||_0x3379e9[_0x29ad3a(0x2fc)]!==this[_0x29ad3a(0x180)]['presenceKind']||_0x3379e9[_0x29ad3a(0x2cd)]!==this[_0x29ad3a(0x2cd)]||_0x3379e9[_0x29ad3a(0x2ce)]!==this['unitId'])return;let _0x22bf12=this['_memberService'][_0x29ad3a(0x2d8)](this['unitId'],_0x42452d),_0x5e44fb={'unitId':_0x3379e9[_0x29ad3a(0x2ce)],'subUnitId':_0x3379e9[_0x29ad3a(0x29f)],'selectedIds':_0x3379e9[_0x29ad3a(0x23a)],'focusedId':_0x3379e9[_0x29ad3a(0x21c)],'pointer':_0x3379e9['pointer'],'memberId':_0x42452d,'color':this[_0x29ad3a(0x20c)]['assignAColorForMemberID'](_0x42452d),'name':(_0x22bf12==null?void 0x0:_0x22bf12[_0x29ad3a(0x2d6)])??_0x42452d};this[_0x29ad3a(0x1c1)][_0x29ad3a(0x175)](ln['id'],{'unitType':this[_0x29ad3a(0x2cd)],'update':{'type':_0x29ad3a(0x164),'state':_0x5e44fb}})[_0x29ad3a(0x193)](()=>void 0x0);}[_0x7ea594(0xfb)](_0x5e0ab5){const _0x4f6a63=_0x7ea594;this['_commandService'][_0x4f6a63(0x175)](ln['id'],{'unitType':this[_0x4f6a63(0x2cd)],'update':{'type':'remove','unitId':this[_0x4f6a63(0x2ce)],'memberId':_0x5e0ab5}})[_0x4f6a63(0x193)](()=>void 0x0);}[_0x7ea594(0x1fb)](){const _0x4fb899=_0x7ea594;this['_commandService'][_0x4fb899(0x175)](ln['id'],{'unitType':this[_0x4fb899(0x2cd)],'update':{'type':'clear','unitId':this[_0x4fb899(0x2ce)]}})[_0x4fb899(0x193)](()=>void 0x0);}};Fn=X([Y(0x3,_0x5c888d(pn)),Y(0x4,_0x5c888d(_0x268c3a)),Y(0x5,_0x5c888d(_0x15fe51))],Fn);let In=class extends _0x28ff85{constructor(_0x59ac5c,_0x416dc7,_0x2aa420,_0x4cbd89){const _0x4d8ce7=_0x7ea594;super(),this[_0x4d8ce7(0x337)]=_0x59ac5c,this[_0x4d8ce7(0x140)]=_0x416dc7,this[_0x4d8ce7(0x2a4)]=_0x2aa420,this[_0x4d8ce7(0x1df)]=_0x4cbd89,J(this,_0x4d8ce7(0x15d),!0x1),J(this,_0x4d8ce7(0x33c),new Map()),J(this,'_pendingEntities',new Map()),J(this,'_adapterDisposables',new Map()),this[_0x4d8ce7(0x191)]();}['dispose'](){const _0x4d6dd2=_0x7ea594;this[_0x4d6dd2(0x15d)]=!0x0,this[_0x4d6dd2(0x21e)][_0x4d6dd2(0x2c0)](_0xe2e4dc=>_0xe2e4dc['dispose']()),this[_0x4d6dd2(0x21e)][_0x4d6dd2(0x221)](),this[_0x4d6dd2(0x33c)][_0x4d6dd2(0x2c0)](_0x4f65e9=>_0x4f65e9[_0x4d6dd2(0x2f1)]()),this['_entities'][_0x4d6dd2(0x221)](),this[_0x4d6dd2(0x267)][_0x4d6dd2(0x221)](),super[_0x4d6dd2(0x2f1)]();}[_0x7ea594(0x191)](){const _0x5bb7c1=_0x7ea594;this['_adapterRegistry'][_0x5bb7c1(0x24a)][_0x5bb7c1(0x1d5)](_0x2a3afc(this[_0x5bb7c1(0x190)]))[_0x5bb7c1(0x1de)](_0xb0edf4=>this[_0x5bb7c1(0x29d)](_0xb0edf4));}[_0x7ea594(0x29d)](_0x163b4f){const _0x89eca4=_0x7ea594;let _0x25b79a=new Set(_0x163b4f[_0x89eca4(0x171)](_0x506e32=>_0x506e32['unitType']));this['_adapterDisposables'][_0x89eca4(0x2c0)]((_0x145dd5,_0xccf694)=>{const _0x2782b4=_0x89eca4;_0x25b79a[_0x2782b4(0x2c5)](_0xccf694)||(_0x145dd5[_0x2782b4(0x2f1)](),this[_0x2782b4(0x21e)][_0x2782b4(0x182)](_0xccf694),this[_0x2782b4(0xf9)](_0xccf694));}),_0x163b4f[_0x89eca4(0x2c0)](_0x359f27=>{const _0x5b84d8=_0x89eca4;this[_0x5b84d8(0x21e)][_0x5b84d8(0x2c5)](_0x359f27[_0x5b84d8(0x2cd)])||this[_0x5b84d8(0x13d)](_0x359f27);});}[_0x7ea594(0x13d)](_0x402c18){const _0x436193=_0x7ea594;let _0x1b93a6=new _0x200b02();this[_0x436193(0x21e)][_0x436193(0x164)](_0x402c18['unitType'],_0x1b93a6),_0x1b93a6[_0x436193(0x1ce)](_0x402c18[_0x436193(0xdd)]()),this[_0x436193(0x337)][_0x436193(0x315)](_0x402c18[_0x436193(0x2cd)])[_0x436193(0x2c0)](_0x4fb861=>this['_startEntity'](_0x4fb861[_0x436193(0x270)](),_0x402c18)['catch'](()=>void 0x0));let _0x81043b=this[_0x436193(0x337)][_0x436193(0xf5)](_0x402c18[_0x436193(0x2cd)])['subscribe'](({unit:_0x447b52})=>this[_0x436193(0x30c)](_0x447b52[_0x436193(0x270)](),_0x402c18)[_0x436193(0x193)](()=>void 0x0));_0x1b93a6[_0x436193(0x1ce)](_0x42bb3c(()=>_0x81043b[_0x436193(0x1bc)]()));let _0x263870=this['_univerInstanceService'][_0x436193(0x2ca)](_0x402c18[_0x436193(0x2cd)])[_0x436193(0x1de)](_0x3002d6=>this['_disposeEntity'](_0x3002d6[_0x436193(0x270)]()));_0x1b93a6[_0x436193(0x1ce)](_0x42bb3c(()=>_0x263870[_0x436193(0x1bc)]()));}async[_0x7ea594(0x30c)](_0x30ae71,_0x2435bf){const _0xe463c7=_0x7ea594;if(this['_entities'][_0xe463c7(0x2c5)](_0x30ae71)||this[_0xe463c7(0x267)][_0xe463c7(0x2c5)](_0x30ae71))return;let _0x9de98c={};this['_pendingEntities']['set'](_0x30ae71,_0x9de98c);let _0x608abd=await this[_0xe463c7(0x2a4)][_0xe463c7(0x348)](_0x30ae71)['catch'](_0x2be489=>{const _0x14e9e9=_0xe463c7;throw this[_0x14e9e9(0x267)][_0x14e9e9(0x161)](_0x30ae71)===_0x9de98c&&this[_0x14e9e9(0x267)]['delete'](_0x30ae71),_0x2be489;});if(this[_0xe463c7(0x15d)]||this['_pendingEntities']['get'](_0x30ae71)!==_0x9de98c||this[_0xe463c7(0x1df)][_0xe463c7(0x161)](_0x2435bf[_0xe463c7(0x2cd)])!==_0x2435bf){this[_0xe463c7(0x267)][_0xe463c7(0x161)](_0x30ae71)===_0x9de98c&&this[_0xe463c7(0x267)][_0xe463c7(0x182)](_0x30ae71);return;}let _0x5525da=this['_injector'][_0xe463c7(0x10a)](Fn,_0x30ae71,_0x608abd,_0x2435bf);_0x5525da['init'](),this[_0xe463c7(0x267)]['delete'](_0x30ae71),this[_0xe463c7(0x33c)][_0xe463c7(0x164)](_0x30ae71,_0x5525da);}[_0x7ea594(0x1ec)](_0x2a6b20){const _0xd2b04a=_0x7ea594;this[_0xd2b04a(0x267)][_0xd2b04a(0x182)](_0x2a6b20);let _0x526d98=this[_0xd2b04a(0x33c)][_0xd2b04a(0x161)](_0x2a6b20);_0x526d98&&(_0x526d98['dispose'](),this[_0xd2b04a(0x33c)]['delete'](_0x2a6b20));}[_0x7ea594(0xf9)](_0x44304e){const _0x11dfa7=_0x7ea594;this[_0x11dfa7(0x337)][_0x11dfa7(0x315)](_0x44304e)[_0x11dfa7(0x2c0)](_0x2c6b43=>this['_pendingEntities'][_0x11dfa7(0x182)](_0x2c6b43['getUnitId']())),Array[_0x11dfa7(0x1eb)](this[_0x11dfa7(0x33c)]['entries']())[_0x11dfa7(0x2c0)](([_0x8ecc4c,_0x415f2a])=>{const _0x4abb96=_0x11dfa7;_0x415f2a[_0x4abb96(0x2cd)]===_0x44304e&&this[_0x4abb96(0x1ec)](_0x8ecc4c);});}};In=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x451f97)),Y(0x2,_0x5c888d(_0x25de4e)),Y(0x3,_0x5c888d(_0x14c253))],In);const Ln={'toast':_0x7ea594(0x248),'actionButton':_0x7ea594(0x2de)},Rn={'title':'collaboration-client-ui.conflict.title','content':'collaboration-client-ui.conflict.content','type':'error'},zn={'permission_rejected':{'title':_0x7ea594(0x143),'content':_0x7ea594(0x18c),'type':_0x7ea594(0x19d)},'license_unit_type_rejected':{'title':_0x7ea594(0x205),'content':'collaboration-client-ui.license.unit-type-rejected','type':_0x7ea594(0x19d)},'remote_revert':{'title':_0x7ea594(0x299),'content':_0x7ea594(0x2f4),'type':'warning'}};let Bn=class extends _0x2c43e7{constructor(_0x449de8,_0x1a4b07,_0x268386,_0x675eab,_0x235920,_0x2f771d,_0x42f18a,_0x2cd6c8){const _0x288b4e=_0x7ea594;var _0x38f958;super(),this['_beforeCloseService']=_0x449de8,this[_0x288b4e(0x2bf)]=_0x1a4b07,this['_collaborationUIEventService']=_0x268386,this[_0x288b4e(0x177)]=_0x675eab,this[_0x288b4e(0xde)]=_0x235920,this[_0x288b4e(0x133)]=_0x2f771d,this['_collaborationController']=_0x42f18a,this[_0x288b4e(0x113)]=_0x2cd6c8,J(this,_0x288b4e(0x2be),null),J(this,_0x288b4e(0x340),new Set()),J(this,_0x288b4e(0x199),new Map()),J(this,_0x288b4e(0x183),new Map()),this[_0x288b4e(0x252)](),this[_0x288b4e(0x120)](),this[_0x288b4e(0x27b)](),((_0x38f958=this[_0x288b4e(0x113)]['getConfig']('collaboration-client-ui.config'))==null?void 0x0:_0x38f958['enableDefaultConflictUI'])!==!0x1&&this['_initConflictHandling']();}[_0x7ea594(0x2f1)](){const _0x12a188=_0x7ea594;var _0x2a9cd5;(_0x2a9cd5=this['_conflictNotification'])==null||_0x2a9cd5[_0x12a188(0x2f1)](),this[_0x12a188(0x2be)]=null;for(let _0x358707 of[this[_0x12a188(0x199)],this['_editingConnectionsExceededNotices']])_0x358707[_0x12a188(0x2c0)](_0x4187c0=>_0x4187c0[_0x12a188(0x2f1)]()),_0x358707[_0x12a188(0x221)]();super[_0x12a188(0x2f1)]();}['_initAwaitingNotices'](){const _0x9a758b=_0x7ea594;let _0xa349d3=_0x5c5837=>{const _0x1bc8fe=_0x1c2b;let _0x5c153e=new _0x200b02();_0x5c153e[_0x1bc8fe(0x1ce)](_0x42bb3c(_0x5c5837['changesetResend$'][_0x1bc8fe(0x1de)]({'next':_0x3651ef=>{const _0x3270ed=_0x1bc8fe;_0x3651ef['elapsedMs']>=0x4e20&&this[_0x3270ed(0x1ff)](this[_0x3270ed(0x199)],_0x5c5837['unitID'],_0x3270ed(0x1f9)),_0x3651ef[_0x3270ed(0x12e)]===_0x3270ed(0x10f)&&this[_0x3270ed(0x1ff)](this[_0x3270ed(0x183)],_0x5c5837[_0x3270ed(0x195)],'collaboration-client-ui.license.editing-connections-exceeded');},'complete':()=>{const _0x25591d=_0x1bc8fe;this[_0x25591d(0x1a8)](_0x5c5837[_0x25591d(0x195)]),_0x5c153e[_0x25591d(0x2f1)]();}}))),_0x5c153e[_0x1bc8fe(0x1ce)](_0x42bb3c(_0x5c5837[_0x1bc8fe(0x271)][_0x1bc8fe(0x1de)](_0x17931f=>{const _0x5374c3=_0x1bc8fe;_0x17931f!==_0x65ab9a[_0x5374c3(0x20a)]&&_0x17931f!==_0x65ab9a[_0x5374c3(0xe2)]&&this[_0x5374c3(0x1a8)](_0x5c5837[_0x5374c3(0x195)]);}))),this['disposeWithMe'](_0x5c153e);};this[_0x9a758b(0x1fe)][_0x9a758b(0x2d5)]()[_0x9a758b(0x2c0)](_0xa349d3),this[_0x9a758b(0xf8)](_0x42bb3c(this[_0x9a758b(0x1fe)]['entityInit$'][_0x9a758b(0x1de)](_0xa349d3)));}[_0x7ea594(0x1ff)](_0x42fb62,_0x1d2743,_0x32fa37){const _0x28d920=_0x7ea594;_0x42fb62[_0x28d920(0x2c5)](_0x1d2743)||_0x42fb62['set'](_0x1d2743,this[_0x28d920(0xde)][_0x28d920(0x1f0)]({'title':this[_0x28d920(0x133)]['t'](_0x32fa37),'type':_0x28d920(0x231),'duration':0x1/0x0,'closable':!0x0,'dismissible':!0x0}));}['_removeAwaitingNotices'](_0x35a25d){const _0x310e16=_0x7ea594;for(let _0x3702bf of[this[_0x310e16(0x199)],this[_0x310e16(0x183)]]){var _0x49d80f;(_0x49d80f=_0x3702bf[_0x310e16(0x161)](_0x35a25d))==null||_0x49d80f[_0x310e16(0x2f1)](),_0x3702bf[_0x310e16(0x182)](_0x35a25d);}}[_0x7ea594(0x252)](){const _0x5f3420=_0x7ea594;this['disposeWithMe'](this[_0x5f3420(0x322)]['registerBeforeClose'](()=>{const _0x3eb6c2=_0x5f3420;if(this[_0x3eb6c2(0x2bf)]['saveTaskMap'][_0x3eb6c2(0x18e)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x7ea594(0x202)](){const _0x414e1f=_0x7ea594;let _0x436ed3=_0x50409c=>{const _0xe75172=_0x1c2b;this[_0xe75172(0xf8)](_0x42bb3c(_0x50409c['conflict$'][_0xe75172(0x1de)](_0xe6cf56=>this[_0xe75172(0x2c3)](_0xe6cf56))));};this[_0x414e1f(0x1fe)][_0x414e1f(0x2d5)]()[_0x414e1f(0x2c0)](_0x436ed3),this[_0x414e1f(0xf8)](_0x42bb3c(this[_0x414e1f(0x1fe)][_0x414e1f(0x1f3)][_0x414e1f(0x1de)](_0x436ed3)));}[_0x7ea594(0x2c3)](_0x3d29ad){const _0x1a96e5=_0x7ea594;if(!_0x3d29ad[_0x1a96e5(0x306)])return;let _0x25a8a6=zn[_0x3d29ad['reason']]??Rn;this[_0x1a96e5(0x236)]({'title':this[_0x1a96e5(0x133)]['t'](_0x25a8a6[_0x1a96e5(0x201)]),'content':this[_0x1a96e5(0x133)]['t'](_0x25a8a6[_0x1a96e5(0x1d6)]),'type':_0x25a8a6[_0x1a96e5(0x34f)],'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x1a96e5(0x25b)),'onClick':_0x3568a3=>{const _0x43197e=_0x1a96e5;_0x3568a3[_0x43197e(0x2c2)](),this[_0x43197e(0x127)]();}}});}[_0x7ea594(0x127)](){const _0x39b796=_0x7ea594;window[_0x39b796(0x118)][_0x39b796(0x2a3)]();}['_initEvent'](){const _0x445627=_0x7ea594;this[_0x445627(0xf8)](this[_0x445627(0x102)][_0x445627(0x1d4)]['subscribe'](_0xfa1cce=>{const _0x5107ad=_0x445627;_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x300)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015['Warning'],'content':this[_0x5107ad(0x133)]['t'](_0x5107ad(0x318))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x264)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x249)],'content':this['_localeService']['t'](_0x5107ad(0x1fc))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x203)]&&this[_0x5107ad(0x343)](),_0xfa1cce['id']===_0x1d65e1['CONFLICT_CACHE_CLEAR_FAILED']&&_0xfa1cce['unitID']&&this[_0x5107ad(0xf0)](_0xfa1cce[_0x5107ad(0x195)],_0xfa1cce['userId']??''),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x301)]&&this[_0x5107ad(0x177)]['show']({'type':_0x3a5015['Warning'],'content':this[_0x5107ad(0x133)]['t'](_0xfa1cce['data']||'')}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x1c0)]&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x249)],'content':this[_0x5107ad(0x133)]['t'](_0x5107ad(0x21d))}),_0xfa1cce['id']===_0x1d65e1['SOCKET_FAILED']&&this[_0x5107ad(0x177)][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x2e0)],'content':this['_localeService']['t'](_0x5107ad(0x268))}),_0xfa1cce['id']===_0x1d65e1[_0x5107ad(0x1b2)]&&this['_messageService'][_0x5107ad(0x1f0)]({'type':_0x3a5015[_0x5107ad(0x2e0)],'content':this['_localeService']['t'](_0x5107ad(0x241))});}));}[_0x7ea594(0x343)](){const _0x229115=_0x7ea594;this[_0x229115(0x236)]({'title':this['_localeService']['t'](_0x229115(0xf7)),'content':this[_0x229115(0x133)]['t'](_0x229115(0x227)),'type':_0x229115(0x198),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x5217c8,_0x1b0fd7){const _0x49613d=_0x7ea594;this['_replaceConflictNotification']({'title':this[_0x49613d(0x133)]['t'](_0x49613d(0xf7)),'content':this[_0x49613d(0x133)]['t'](_0x49613d(0x14a)),'type':_0x49613d(0x19d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Ln,'action':{'label':this['_localeService']['t'](_0x49613d(0x2a5)),'onClick':_0x5701d6=>{const _0x59e802=_0x49613d;_0x5701d6[_0x59e802(0x2c2)](),this['_retryConflictCacheClear'](_0x5217c8,_0x1b0fd7);}}});}[_0x7ea594(0x2d9)](_0x51b186,_0x5f2d42){const _0x26c1d9=_0x7ea594;let _0x559b8d=_0x51b186+':'+(_0x5f2d42??'');this['_retryingConflictCacheUnitIDs'][_0x26c1d9(0x2c5)](_0x559b8d)||(this[_0x26c1d9(0x340)][_0x26c1d9(0x1ce)](_0x559b8d),this['_showConflictProcessingNotification'](),this[_0x26c1d9(0x2bf)]['clearOfflineData'](_0x51b186,_0x5f2d42)[_0x26c1d9(0x35b)](()=>this[_0x26c1d9(0x127)]())[_0x26c1d9(0x193)](()=>this[_0x26c1d9(0xf0)](_0x51b186,_0x5f2d42))[_0x26c1d9(0x2ae)](()=>this[_0x26c1d9(0x340)]['delete'](_0x559b8d)));}[_0x7ea594(0x236)](_0x255a32){const _0x54c690=_0x7ea594;var _0x58bd56;(_0x58bd56=this[_0x54c690(0x2be)])==null||_0x58bd56['dispose'](),this[_0x54c690(0x2be)]=this[_0x54c690(0xde)]['show'](_0x255a32);}};Bn=X([Y(0x0,_0x3eb2d8),Y(0x1,_0x471d6f),Y(0x2,_0x5c888d(_0x603f72)),Y(0x3,_0x4953bc),Y(0x4,_0x5b6302),Y(0x5,_0x5c888d(_0x292d2f)),Y(0x6,_0x5c888d(_0x2279ca)),Y(0x7,_0x16ce58)],Bn);let Vn=class{constructor(_0x37310e,_0x473012){const _0x256cec=_0x7ea594;this['_transformService']=_0x37310e,this[_0x256cec(0x1fa)]=_0x473012;}[_0x7ea594(0x20e)](_0x4dc3e0){const _0x54e772=_0x7ea594;this[_0x54e772(0x144)](_0x4dc3e0),this[_0x54e772(0x15f)](_0x4dc3e0);}[_0x7ea594(0x168)](_0x18a28b){const _0x4eb64f=_0x7ea594;let {unitID:_0x3b89a8}=_0x18a28b,{redoCache:_0x3e0ec5}=this[_0x4eb64f(0x1fa)]['getRenderUnitById'](_0x3b89a8)[_0x4eb64f(0x263)](_0x4434b8)[_0x4eb64f(0x2ba)]();if(_0x3e0ec5[_0x4eb64f(0x121)]===0x0)return _0x18a28b;let _0x189e9d=_0x40f052[_0x4eb64f(0x2ef)](_0x18a28b['mutations'][0x0]);for(let _0x1be35c=0x0;_0x1be35c<_0x3e0ec5['length'];_0x1be35c++){let _0x395e6b={'id':_0x4eb64f(0x272),'params':{..._0x3e0ec5[_0x1be35c]}},_0xa498a3=this[_0x4eb64f(0xdf)][_0x4eb64f(0x2e4)](_0x189e9d,_0x395e6b,!0x1);if(_0x13597e(_0xa498a3))throw _0xa498a3['error'];_0x189e9d=_0xa498a3['m1Prime'];}return{..._0x40f052[_0x4eb64f(0x2ef)](_0x18a28b),'mutations':[_0x189e9d]};}[_0x7ea594(0x144)](_0x384b28){const _0x5d8f88=_0x7ea594;let {unitID:_0x26b8bc}=_0x384b28,_0x33fdcc=this[_0x5d8f88(0x1fa)][_0x5d8f88(0x30b)](_0x26b8bc)[_0x5d8f88(0x263)](_0x4434b8),{undoCache:_0xbd81e1,redoCache:_0x331baa}=_0x33fdcc['getUndoRedoMutationParamsCache']();if(_0xbd81e1[_0x5d8f88(0x121)]===0x0||_0x331baa['length']===0x0)return;let _0x5841a4=[],_0xe63e0c=[],_0x3b0c58=_0x40f052['deepClone'](_0x384b28[_0x5d8f88(0x109)][0x0]),_0xa9efbb=_0x40f052[_0x5d8f88(0x2ef)](_0x384b28[_0x5d8f88(0x109)][0x0]);for(let _0x5f3a2b=_0xbd81e1[_0x5d8f88(0x121)]-0x1;_0x5f3a2b>=0x0;_0x5f3a2b--){let _0x2325ad={'id':_0x5d8f88(0x272),'params':{..._0xbd81e1[_0x5f3a2b]}},_0x1decf0={'id':_0x5d8f88(0x272),'params':{..._0x331baa[_0x5f3a2b]}},_0x32a5f0=this[_0x5d8f88(0xdf)][_0x5d8f88(0x2e4)](_0x3b0c58,_0x2325ad,!0x1),_0x482a14=this[_0x5d8f88(0xdf)]['transformMutation'](_0xa9efbb,_0x1decf0,!0x1);if(_0x13597e(_0x32a5f0))throw _0x32a5f0[_0x5d8f88(0x19d)];if(_0x13597e(_0x482a14))throw _0x482a14[_0x5d8f88(0x19d)];_0x5841a4[_0x5d8f88(0x174)](_0x32a5f0[_0x5d8f88(0x2ad)][_0x5d8f88(0x131)]),_0xe63e0c[_0x5d8f88(0x174)](_0x482a14[_0x5d8f88(0x2ad)][_0x5d8f88(0x131)]),_0x3b0c58=_0x32a5f0[_0x5d8f88(0x27c)],_0xa9efbb=_0x482a14['m1Prime'];}_0x33fdcc[_0x5d8f88(0x282)]({'undoCache':_0x5841a4,'redoCache':_0xe63e0c});}[_0x7ea594(0x15f)](_0x3a32b8){const _0x21d8fe=_0x7ea594;let {unitID:_0x4306f4}=_0x3a32b8,_0x1d8e32=this[_0x21d8fe(0x1fa)][_0x21d8fe(0x30b)](_0x4306f4)[_0x21d8fe(0x263)](_0x4434b8),_0x5003d0=_0x1d8e32[_0x21d8fe(0x1bf)]();if(_0x5003d0==null)return;let _0x1950e8=[{'id':_0x21d8fe(0x272),'params':{'unitId':_0x3a32b8[_0x21d8fe(0x195)],'actions':null,'textRanges':[_0x5003d0]}}],_0x3664e3=this[_0x21d8fe(0xdf)][_0x21d8fe(0x33d)](_0x3a32b8,_0x1950e8);if(!_0x1db856(_0x3664e3))throw _0x3664e3[_0x21d8fe(0x19d)];let _0x4ce5e3=_0x3664e3['m2Prime'][0x0][_0x21d8fe(0x131)][_0x21d8fe(0x1cf)];Array[_0x21d8fe(0x312)](_0x4ce5e3)&&_0x4ce5e3[_0x21d8fe(0x121)]&&_0x1d8e32['setActiveRange'](_0x4ce5e3[0x0]);}};Vn=X([Y(0x0,_0x31acf5),Y(0x1,_0x23794e)],Vn);let Hn=class{constructor(_0x52c1f8,_0x1a7b65,_0x58c2f5){const _0x378016=_0x7ea594;this[_0x378016(0x140)]=_0x52c1f8,this[_0x378016(0xdf)]=_0x1a7b65,this[_0x378016(0x307)]=_0x58c2f5;}[_0x7ea594(0x29b)](_0xf12f31){const _0x68d894=_0x7ea594;this[_0x68d894(0x16b)](_0xf12f31);}['transformRemoteChangeset'](_0x210361){const _0x3ba1a5=_0x7ea594;let {unitID:_0x278d39}=_0x210361,{collaboration:_0x244c85}=this[_0x3ba1a5(0x307)][_0x3ba1a5(0x22f)](_0x278d39);if(_0x244c85[_0x3ba1a5(0x121)]===0x0)return _0x210361;let _0x311f7b=_0x40f052[_0x3ba1a5(0x2ef)](_0x210361[_0x3ba1a5(0x109)][0x0]);for(let _0x1c528a=0x0;_0x1c528a<_0x244c85[_0x3ba1a5(0x121)];_0x1c528a++){let _0x205ef1={'id':_0x3ba1a5(0x272),'params':{'unitId':_0x244c85[_0x1c528a][_0x3ba1a5(0x2ce)],..._0x244c85[_0x1c528a][_0x3ba1a5(0x14e)]}},_0x20f2b3=this[_0x3ba1a5(0xdf)]['transformMutation'](_0x311f7b,_0x205ef1,!0x1);if(_0x13597e(_0x20f2b3))throw _0x20f2b3[_0x3ba1a5(0x19d)];_0x311f7b=_0x20f2b3[_0x3ba1a5(0x27c)];}return{..._0x40f052[_0x3ba1a5(0x2ef)](_0x210361),'mutations':[_0x311f7b]};}[_0x7ea594(0x16b)](_0x14e8d1){const _0x6d91c2=_0x7ea594;let {unitID:_0x440956}=_0x14e8d1,{history:_0x2a8a36,collaboration:_0x1bcba3}=this[_0x6d91c2(0x307)][_0x6d91c2(0x22f)](_0x440956);if(_0x2a8a36[_0x6d91c2(0x121)]===0x0&&_0x1bcba3['length']===0x0)return;let _0x56e43e=[],_0x4b2adb=[],_0x5a5fdc=_0x40f052[_0x6d91c2(0x2ef)](_0x14e8d1[_0x6d91c2(0x109)][0x0]),_0x87eb35=_0x40f052[_0x6d91c2(0x2ef)](_0x14e8d1[_0x6d91c2(0x109)][0x0]);for(let _0x19870a=_0x2a8a36['length']-0x1;_0x19870a>=0x0;_0x19870a--){let _0x3686ee={'id':_0x6d91c2(0x272),'params':{'unitId':_0x2a8a36[_0x19870a]['unitId'],..._0x2a8a36[_0x19870a][_0x6d91c2(0x1ba)]}},_0x3f3fab={'id':_0x6d91c2(0x272),'params':{'unitId':_0x2a8a36[_0x19870a][_0x6d91c2(0x2ce)],..._0x2a8a36[_0x19870a][_0x6d91c2(0x14e)]}},_0x33fbf8=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x5a5fdc,_0x3686ee,!0x1),_0x5206eb=this['_transformService'][_0x6d91c2(0x2e4)](_0x87eb35,_0x3f3fab,!0x1);if(_0x13597e(_0x33fbf8))throw _0x33fbf8[_0x6d91c2(0x19d)];if(_0x13597e(_0x5206eb))throw _0x5206eb['error'];_0x56e43e[_0x6d91c2(0x174)]({..._0x2a8a36[_0x19870a],'undoState':_0x33fbf8[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)],'redoState':_0x5206eb[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)]}),_0x5a5fdc=_0x33fbf8['m1Prime'],_0x87eb35=_0x5206eb[_0x6d91c2(0x27c)];}_0x5a5fdc=_0x40f052['deepClone'](_0x14e8d1['mutations'][0x0]),_0x87eb35=_0x40f052['deepClone'](_0x14e8d1[_0x6d91c2(0x109)][0x0]);for(let _0x2c8869=_0x1bcba3[_0x6d91c2(0x121)]-0x1;_0x2c8869>=0x0;_0x2c8869--){let _0x57c3ef={'id':_0x6d91c2(0x272),'params':{'unitId':_0x1bcba3[_0x2c8869][_0x6d91c2(0x2ce)],..._0x1bcba3[_0x2c8869][_0x6d91c2(0x1ba)]}},_0x3ea2b9={'id':_0x6d91c2(0x272),'params':{'unitId':_0x1bcba3[_0x2c8869]['unitId'],..._0x1bcba3[_0x2c8869][_0x6d91c2(0x14e)]}},_0x5b5755=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x5a5fdc,_0x57c3ef,!0x1),_0x1d40bf=this[_0x6d91c2(0xdf)][_0x6d91c2(0x2e4)](_0x87eb35,_0x3ea2b9,!0x1);if(_0x13597e(_0x5b5755))throw _0x5b5755[_0x6d91c2(0x19d)];if(_0x13597e(_0x1d40bf))throw _0x1d40bf[_0x6d91c2(0x19d)];_0x4b2adb[_0x6d91c2(0x174)]({..._0x1bcba3[_0x2c8869],'undoState':_0x5b5755[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)],'redoState':_0x1d40bf[_0x6d91c2(0x2ad)][_0x6d91c2(0x131)]}),_0x5a5fdc=_0x5b5755[_0x6d91c2(0x27c)],_0x87eb35=_0x1d40bf[_0x6d91c2(0x27c)];}this[_0x6d91c2(0x307)][_0x6d91c2(0x1f7)](_0x440956,{'history':_0x56e43e,'collaboration':_0x4b2adb});}};Hn=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x31acf5),Y(0x2,_0x5c888d(_0x2f70c8))],Hn);let Un=class{constructor(_0x1ce080,_0x3339c9){const _0x1c0de1=_0x7ea594;this['_docSelectionManagerService']=_0x1ce080,this[_0x1c0de1(0xdf)]=_0x3339c9;}['prepareTransformSelections'](_0x78f7bf){const _0x27bc4b=_0x7ea594;var _0x42795c;let _0xffcb60=this[_0x27bc4b(0x22e)][_0x27bc4b(0x158)]()??[],_0x303c1f=this[_0x27bc4b(0x22e)][_0x27bc4b(0x211)]();if(_0xffcb60[_0x27bc4b(0x121)]===0x0||_0x303c1f==null)return null;let _0x316d05=_0x78f7bf['unitID'],_0x2c602a=[{'id':_0x27bc4b(0x272),'params':{'unitId':_0x316d05,'actions':null,'textRanges':_0xffcb60}}],_0x33fbf5=this[_0x27bc4b(0xdf)]['transformMutationsWithChangeset'](_0x78f7bf,_0x2c602a);if(!_0x1db856(_0x33fbf5))throw _0x33fbf5['error'];let _0x5388f5=(_0x42795c=_0x33fbf5['m2Prime'][0x0])==null?void 0x0:_0x42795c[_0x27bc4b(0x131)],_0x122736=_0x5388f5&&typeof _0x5388f5==_0x27bc4b(0x2d7)&&_0x27bc4b(0x1cf)in _0x5388f5?_0x5388f5[_0x27bc4b(0x1cf)]:null;if(!Kn(_0x122736))return null;let _0x409aeb=Wn(_0x78f7bf[_0x27bc4b(0x109)]['some'](_0x2de093=>qn(_0x2de093[_0x27bc4b(0x131)]))?_0x122736[_0x27bc4b(0x331)](_0x2b2975=>!(_0x27bc4b(0x303)in _0x2b2975)):_0x122736,{..._0x303c1f,'options':_0x303c1f['options']?{..._0x303c1f[_0x27bc4b(0x10e)],'wholeDocument':!0x1}:void 0x0}),_0x2d0c83={'unitId':_0x316d05,'subUnitId':_0x316d05};this['_docSelectionManagerService'][_0x27bc4b(0x29a)](_0x409aeb,_0x2d0c83);let _0x2e36f5=!0x0;return{'commit':()=>{_0x2e36f5=!0x1;},'rollback':()=>{const _0x39dba2=_0x27bc4b;_0x2e36f5&&(_0x2e36f5=!0x1,this[_0x39dba2(0x22e)]['replaceSelectionInfoWithoutRefresh'](_0x303c1f,_0x2d0c83));}};}};Un=X([Y(0x0,_0x5c888d(_0x291a40)),Y(0x1,_0x31acf5)],Un);function Wn(_0x2089cf,_0x2ea3f1){const _0x5e4d91=_0x7ea594;let _0x38cf51=[],_0x535343=[];for(let _0x346a93 of _0x2089cf)Gn(_0x346a93)?_0x535343[_0x5e4d91(0x2da)](_0x346a93):_0x38cf51['push'](_0x346a93);return{..._0x2ea3f1,'textRanges':_0x38cf51,'rectRanges':_0x535343};}function Gn(_0x59788c){return'tableId'in _0x59788c;}function Kn(_0x582dda){const _0x137b82=_0x7ea594;return Array[_0x137b82(0x312)](_0x582dda)&&_0x582dda['every'](_0x234e9c=>typeof _0x234e9c==_0x137b82(0x2d7)&&!!_0x234e9c&&'startOffset'in _0x234e9c&&_0x137b82(0x2ff)in _0x234e9c);}function qn(_0x1ba31e){const _0x518faf=_0x7ea594;return _0x1ba31e==='tableSource'?!0x0:Array[_0x518faf(0x312)](_0x1ba31e)?_0x1ba31e[_0x518faf(0x2f8)](_0xff24e6=>qn(_0xff24e6)):!_0x1ba31e||typeof _0x1ba31e!=_0x518faf(0x2d7)?!0x1:Object[_0x518faf(0x163)](_0x1ba31e)['some'](_0x3b08d8=>qn(_0x3b08d8));}let Jn=class extends _0x2c43e7{constructor(_0x1e30d8,_0x49186b,_0x3e76c1,_0x3f1ee8,_0x37dbfe,_0x4db7f3,_0x45eb84){const _0x4a0b30=_0x7ea594;super(),this['_collaborationController']=_0x1e30d8,this[_0x4a0b30(0x192)]=_0x49186b,this[_0x4a0b30(0x2db)]=_0x3e76c1,this[_0x4a0b30(0xfd)]=_0x3f1ee8,this[_0x4a0b30(0x215)]=_0x37dbfe,this['_messageService']=_0x4db7f3,this[_0x4a0b30(0x133)]=_0x45eb84,J(this,_0x4a0b30(0x119),new _0x5a8e6e(_0x65ab9a[_0x4a0b30(0x289)])),this[_0x4a0b30(0x11c)]();}[_0x7ea594(0x11c)](){const _0x20c511=_0x7ea594;this[_0x20c511(0xf8)](this[_0x20c511(0x1fe)][_0x20c511(0x1f3)]['subscribe'](_0x388eba=>{const _0x2271ab=_0x20c511;_0x388eba instanceof _0x1f1988&&_0x388eba[_0x2271ab(0x128)]({'onTransformIME':_0x4af2d2=>this[_0x2271ab(0x192)][_0x2271ab(0x20e)](_0x4af2d2),'onTransformState':_0x49d25c=>this[_0x2271ab(0x2db)]['transformStateCache'](_0x49d25c),'onPrepareTransformSelections':_0x50836b=>this[_0x2271ab(0xfd)][_0x2271ab(0x284)](_0x50836b),'onSyncEditingCollabCursor':_0xcbd3a9=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0xcbd3a9),'onTransformRemoteChangesetByIMECache':_0x430567=>this['_docTransformIMECacheService'][_0x2271ab(0x168)](_0x430567),'onTransformRemoteChangesetByStateCache':_0x14fa75=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x14fa75)});}));}};Jn=X([Y(0x0,_0x5c888d(_0x2279ca)),Y(0x1,_0x5c888d(Vn)),Y(0x2,_0x5c888d(Hn)),Y(0x3,_0x5c888d(Un)),Y(0x4,_0x5c888d(gn)),Y(0x5,_0x4953bc),Y(0x6,_0x5c888d(_0x292d2f))],Jn);let Yn=class extends _0x2c43e7{constructor(_0x2c6411,_0x5c3f2f,_0x54b7bd,_0x142cbc){const _0x58a20b=_0x7ea594;super(),this[_0x58a20b(0x140)]=_0x2c6411,this['_httpService']=_0x5c3f2f,this['_logService']=_0x54b7bd,this[_0x58a20b(0x15c)]=_0x142cbc,J(this,_0x58a20b(0x34d),void 0x0),this[_0x58a20b(0x191)]();}[_0x7ea594(0x191)](){const _0x35afc6=_0x7ea594;this[_0x35afc6(0x2bc)](),this[_0x35afc6(0x317)](),this[_0x35afc6(0x242)](),this[_0x35afc6(0x2c1)]();}[_0x7ea594(0x2c1)](){const _0x541f6a=_0x7ea594;this[_0x541f6a(0xf8)](this['_collaborationSessionService'][_0x541f6a(0x213)][_0x541f6a(0x1de)](_0x208493=>{const _0x5697c0=_0x541f6a;this[_0x5697c0(0x34d)]=_0x208493==null?void 0x0:_0x208493[_0x5697c0(0x35a)];}));}[_0x7ea594(0x2bc)](){const _0x4bc1fa=_0x7ea594;let _0x41500e=_0x2ab36e=>{const _0x1cc5d5=_0x1c2b;var _0x2db7af;this[_0x1cc5d5(0x2bb)](_0x1cc5d5(0x19d),_0x1cc5d5(0x339)+_0x2ab36e[_0x1cc5d5(0x108)]+_0x1cc5d5(0xea)+_0x2ab36e[_0x1cc5d5(0x1f8)]+':'+_0x2ab36e[_0x1cc5d5(0x1e4)]+':'+_0x2ab36e[_0x1cc5d5(0x2df)]+'\x0a'+(((_0x2db7af=_0x2ab36e['error'])==null?void 0x0:_0x2db7af[_0x1cc5d5(0x2d4)])||''));};window['addEventListener'](_0x4bc1fa(0x19d),_0x41500e),this['disposeWithMe'](()=>{const _0x4fa91d=_0x4bc1fa;window[_0x4fa91d(0x2b3)]('error',_0x41500e);});}[_0x7ea594(0x317)](){const _0x362118=_0x7ea594;let _0x2500ac=_0x1e5249=>{const _0x2a61bd=_0x1c2b;this[_0x2a61bd(0x2bb)](_0x2a61bd(0x19d),_0x2a61bd(0x30e)+_0x1e5249[_0x2a61bd(0x12e)]);};window[_0x362118(0x1d2)]('unhandledrejection',_0x2500ac),this[_0x362118(0xf8)](()=>{const _0x2722b0=_0x362118;window[_0x2722b0(0x2b3)](_0x2722b0(0x230),_0x2500ac);});}[_0x7ea594(0x242)](){const _0x137ecf=_0x7ea594;let _0x2c3c17=this[_0x137ecf(0xec)]['error'][_0x137ecf(0x28d)](this['_logService']);this[_0x137ecf(0xec)][_0x137ecf(0x19d)]=(..._0x5b6b94)=>{const _0x24995d=_0x137ecf;let _0x10212d=_0x5b6b94[_0x24995d(0x171)](_0x41816f=>_0x41816f instanceof Error?_0x41816f['message']+'\x0a'+_0x41816f[_0x24995d(0x2d4)]:String(_0x41816f))[_0x24995d(0x328)]('\x20');this[_0x24995d(0x2bb)]('error',_0x24995d(0x261)+_0x10212d),_0x2c3c17(..._0x5b6b94);},this['disposeWithMe'](()=>{const _0x1c823c=_0x137ecf;this[_0x1c823c(0xec)][_0x1c823c(0x19d)]=_0x2c3c17;});}['_uploadLog'](_0x4cc43e,_0x55f15a){const _0x4368e8=_0x7ea594;try{let _0xa657e={'userId':this[_0x4368e8(0x34d)],'logLabel':_0x4cc43e,'content':_0x55f15a};this[_0x4368e8(0x297)][_0x4368e8(0x13e)](_0x4368e8(0x292),{'body':_0xa657e})[_0x4368e8(0x193)](()=>{});}catch{}}};Yn=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x1984c9),Y(0x3,_0x5c888d(_0x25de4e))],Yn);function Xn({state$:_0x3a47c1}){const _0x25bb5c=_0x7ea594;let _0x2461e3=_0x6ada4b(_0x3a47c1,null,!0x0);return _0x2461e3?_0x3c0327(_0x25bb5c(0x103),{'data-u-comp':_0x25bb5c(0x124),'role':'alert','className':_0x25bb5c(0x106),'children':[_0x57ef67(_0x240f13,{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),_0x57ef67('span',{'children':_0x2461e3[_0x25bb5c(0x1d6)]}),_0x57ef67(_0x301aac,{'size':_0x25bb5c(0x2c9),'variant':_0x25bb5c(0x135),'onClick':()=>window[_0x25bb5c(0x118)]['reload'](),'children':_0x2461e3[_0x25bb5c(0x1dc)]})]}):null;}const Zn=_0x7ea594(0x141);let Qn=class extends _0x2c43e7{constructor(_0x467659,_0x5a76fa,_0x3a71f2,_0xa77185,_0x1e70bd){const _0x500e6f=_0x7ea594;super(),this[_0x500e6f(0x22c)]=_0x467659,this[_0x500e6f(0x177)]=_0x5a76fa,this[_0x500e6f(0x133)]=_0x3a71f2,this['_injector']=_0xa77185,J(this,_0x500e6f(0xda),new _0x5a8e6e(null)),J(this,'_messageIds',new Set()),J(this,_0x500e6f(0x2dc),new Map()),J(this,_0x500e6f(0x326),this[_0x500e6f(0xda)]['asObservable']());let _0x40180=()=>_0x2317a2(Xn,{'state$':this[_0x500e6f(0x326)]});this[_0x500e6f(0xf8)](_0x1e70bd['registerComponent'](_0x44eea7['GLOBAL'],()=>_0x1ca99d(_0x40180,this[_0x500e6f(0x140)]))),this[_0x500e6f(0xf8)](this['_snapshotLoadingService']['state$'][_0x500e6f(0x1de)](_0x9e017f=>{const _0x1a36cd=_0x500e6f;_0x9e017f[_0x1a36cd(0x2c0)](_0x445dcd=>this['_updateMessage'](_0x445dcd));}));}[_0x7ea594(0x2f1)](){const _0x30efe3=_0x7ea594;this[_0x30efe3(0x23c)][_0x30efe3(0x2c0)](_0x48b812=>this[_0x30efe3(0x177)][_0x30efe3(0x347)](_0x48b812)),this['_messageIds'][_0x30efe3(0x221)](),this[_0x30efe3(0x2dc)][_0x30efe3(0x2c0)](({timeoutId:_0x17fd1b})=>clearTimeout(_0x17fd1b)),this[_0x30efe3(0x2dc)][_0x30efe3(0x221)](),this[_0x30efe3(0xda)]['complete'](),super[_0x30efe3(0x2f1)]();}['_updateMessage'](_0x1bd98e){const _0x2c6cdd=_0x7ea594;let _0x1f6a13=''+Zn+_0x1bd98e['unitId'];_0x1bd98e[_0x2c6cdd(0x137)]===_0x2f9ccc[_0x2c6cdd(0x1c7)]?(this[_0x2c6cdd(0x229)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this[_0x2c6cdd(0xe6)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this['_messageService']['remove'](_0x1f6a13),this[_0x2c6cdd(0x23c)][_0x2c6cdd(0x182)](_0x1f6a13)):_0x1bd98e['stage']===_0x2f9ccc[_0x2c6cdd(0x31c)]?(this['_clearBlockProgressWatch'](_0x1bd98e['unitId']),this[_0x2c6cdd(0xe6)](_0x1bd98e[_0x2c6cdd(0x2ce)]),this[_0x2c6cdd(0x177)]['show']({'id':_0x1f6a13,'type':_0x3a5015[_0x2c6cdd(0x2e0)],'content':this[_0x2c6cdd(0x133)]['t'](_0x2c6cdd(0x268))}),this[_0x2c6cdd(0x23c)]['delete'](_0x1f6a13)):_0x1bd98e[_0x2c6cdd(0x137)]!==_0x2f9ccc['LOADING_BLOCKS']||_0x1bd98e[_0x2c6cdd(0x232)]<=0xa?(this[_0x2c6cdd(0x229)](_0x1bd98e['unitId']),this['_messageService'][_0x2c6cdd(0x347)](_0x1f6a13),this[_0x2c6cdd(0x23c)]['delete'](_0x1f6a13)):this['_watchBlockProgress'](_0x1bd98e)||(this[_0x2c6cdd(0x177)][_0x2c6cdd(0x1f0)]({'id':_0x1f6a13,'type':_0x3a5015[_0x2c6cdd(0x1be)],'duration':0x1/0x0,'content':this[_0x2c6cdd(0x133)]['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x1bd98e[_0x2c6cdd(0x1e3)]+'/'+_0x1bd98e[_0x2c6cdd(0x232)]}),this[_0x2c6cdd(0x23c)][_0x2c6cdd(0x1ce)](_0x1f6a13));}[_0x7ea594(0x1db)](_0x2d986f){const _0x30994d=_0x7ea594;let _0x2bd4d7=this[_0x30994d(0x2dc)][_0x30994d(0x161)](_0x2d986f['unitId']);if((_0x2bd4d7==null?void 0x0:_0x2bd4d7[_0x30994d(0x1e3)])===_0x2d986f[_0x30994d(0x1e3)])return _0x2bd4d7[_0x30994d(0x152)];this['_clearBlockProgressWatch'](_0x2d986f[_0x30994d(0x2ce)]);let _0x5e3c94=setTimeout(()=>{const _0x38dd9d=_0x30994d;let _0x3283c8=this[_0x38dd9d(0x2dc)][_0x38dd9d(0x161)](_0x2d986f[_0x38dd9d(0x2ce)]);if(!_0x3283c8||_0x3283c8['timeoutId']!==_0x5e3c94)return;_0x3283c8[_0x38dd9d(0x152)]=!0x0;let _0x24b997=''+Zn+_0x2d986f['unitId'];this[_0x38dd9d(0x177)][_0x38dd9d(0x347)](_0x24b997),this['_messageIds'][_0x38dd9d(0x182)](_0x24b997),this[_0x38dd9d(0xda)][_0x38dd9d(0x136)]({'unitId':_0x2d986f[_0x38dd9d(0x2ce)],'content':this[_0x38dd9d(0x133)]['t'](_0x38dd9d(0x1a1),String(_0x2d986f['loadedBlocks']),String(_0x2d986f[_0x38dd9d(0x232)])),'refreshLabel':this[_0x38dd9d(0x133)]['t'](_0x38dd9d(0x25b))});},0xea60);return this['_blockProgressWatches'][_0x30994d(0x164)](_0x2d986f['unitId'],{'loadedBlocks':_0x2d986f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x5e3c94}),!0x1;}[_0x7ea594(0x229)](_0x10c29c){const _0x22e147=_0x7ea594;let _0x324d14=this[_0x22e147(0x2dc)][_0x22e147(0x161)](_0x10c29c);_0x324d14&&(clearTimeout(_0x324d14[_0x22e147(0x26e)]),this[_0x22e147(0x2dc)][_0x22e147(0x182)](_0x10c29c),this[_0x22e147(0xe6)](_0x10c29c));}['_clearTimeoutState'](_0x57038a){const _0x15a015=_0x7ea594;var _0x7bbdd0;((_0x7bbdd0=this[_0x15a015(0xda)][_0x15a015(0x357)])==null?void 0x0:_0x7bbdd0['unitId'])===_0x57038a&&this[_0x15a015(0xda)][_0x15a015(0x136)](null);}};Qn=X([Y(0x0,_0x5c888d(_0x18f5c1)),Y(0x1,_0x4953bc),Y(0x2,_0x5c888d(_0x292d2f)),Y(0x3,_0x5c888d(_0x451f97)),Y(0x4,_0x8a5b3a)],Qn);let $n=class extends _0x2c43e7{constructor(_0x1c3563,_0x7c8fc8,_0x38458f,_0x4bbea6,_0x482919){const _0x2c9f29=_0x7ea594;var _0x56a00a;super(),this[_0x2c9f29(0x113)]=_0x1c3563,this[_0x2c9f29(0x1ac)]=_0x7c8fc8,this[_0x2c9f29(0x218)]=_0x38458f,this[_0x2c9f29(0xec)]=_0x4bbea6,this[_0x2c9f29(0x155)]=_0x482919,J(this,_0x2c9f29(0x149),new Map()),J(this,_0x2c9f29(0x1f6),new Map()),J(this,_0x2c9f29(0x262),new Map()),J(this,'_disabled',!0x1),this[_0x2c9f29(0x320)]=!((_0x56a00a=this['_configService']['getConfig'](_0x14ffae))!=null&&_0x56a00a[_0x2c9f29(0x11a)]);}['disableLocalCache'](){const _0x28c4ec=_0x7ea594;this[_0x28c4ec(0x320)]=!0x0;}[_0x7ea594(0x1e5)](){this['_disabled']=!0x1;}get[_0x7ea594(0x1a9)](){const _0xcf5a2a=_0x7ea594;let _0x310ec9=new Map(this[_0xcf5a2a(0x1f6)]);return this[_0xcf5a2a(0x262)][_0xcf5a2a(0x2c0)]((_0x4ebb53,_0x335b8b)=>{const _0x3fd1d5=_0xcf5a2a;_0x310ec9[_0x3fd1d5(0x2c5)](_0x335b8b)||_0x310ec9[_0x3fd1d5(0x164)](_0x335b8b,0x0);}),_0x310ec9;}[_0x7ea594(0x2f1)](){const _0x788f87=_0x7ea594;this['_disposed']||(super['dispose'](),this[_0x788f87(0x320)]=!0x0,this['exhaustSavingTask']()[_0x788f87(0x193)](_0x2e6441=>this[_0x788f87(0xec)]['error'](_0x2e6441)));}async['loadOfflineData'](_0x12bd53,_0x2b6447){const _0x2e3e37=_0x7ea594;if(this[_0x2e3e37(0x320)])return null;let _0x2af989=this['_getUserId'](_0x2b6447),_0x1e5837=await this[_0x2e3e37(0x1ac)][_0x2e3e37(0xf4)](_0x156238(_0x12bd53,_0x2af989));return(_0x1e5837==null?void 0x0:_0x1e5837[_0x2e3e37(0x195)])===_0x12bd53&&this['_normalizeUserId'](_0x1e5837[_0x2e3e37(0x15b)])===_0x2af989?_0x1e5837:null;}async[_0x7ea594(0x28e)](_0x1d39f1,_0x479fbe,_0x569123){const _0x3bc105=_0x7ea594;let _0x185c9e=this[_0x3bc105(0x1b1)](_0x569123),_0x31a736=_0x156238(_0x1d39f1,_0x185c9e),_0x398bd8=this[_0x3bc105(0x1ac)][_0x3bc105(0x1ed)](_0x31a736,{..._0x479fbe,'unitID':_0x1d39f1,'userId':_0x185c9e});return this[_0x3bc105(0x27f)](_0x31a736,_0x398bd8),!!await _0x398bd8;}async[_0x7ea594(0x130)](_0x5c0175,_0x39f87c,_0x46f45f){const _0x344825=_0x7ea594;let _0x275ef5=this[_0x344825(0x1b1)](_0x46f45f),_0x290533=_0x156238(_0x5c0175,_0x275ef5),_0x50284d=this[_0x344825(0x149)][_0x344825(0x161)](_0x290533)??await this[_0x344825(0x1ac)][_0x344825(0xf4)](_0x290533);if(!_0x50284d||this['_normalizeUserId'](_0x50284d['userId'])!==_0x275ef5||_0x50284d[_0x344825(0x195)]!==_0x5c0175)return;let _0x1a22f3=Date['now'](),_0x5f4a31=new Date(_0x1a22f3)[_0x344825(0x1d8)]();await this[_0x344825(0x1ac)][_0x344825(0x1ed)](_0x290533+_0x344825(0x24b)+_0x1a22f3,{'reason':_0x39f87c,'createdAt':_0x5f4a31,'data':_0x50284d});}async['clearOfflineData'](_0x325bb5,_0x2ab33c){const _0x4b94a7=_0x7ea594;let _0x522f5b=this[_0x4b94a7(0x1b1)](_0x2ab33c),_0xfd0e4c=_0x156238(_0x325bb5,_0x522f5b),_0x467c0f=this[_0x4b94a7(0x1f6)]['get'](_0xfd0e4c);_0x467c0f!==void 0x0&&(window[_0x4b94a7(0x29c)](_0x467c0f),this[_0x4b94a7(0x1f6)][_0x4b94a7(0x182)](_0xfd0e4c));let _0x3d6f83=this[_0x4b94a7(0x262)][_0x4b94a7(0x161)](_0xfd0e4c);_0x3d6f83&&await Promise[_0x4b94a7(0x1fd)](_0x3d6f83),this[_0x4b94a7(0x149)][_0x4b94a7(0x182)](_0xfd0e4c),await this['_localStorageService'][_0x4b94a7(0x16f)](_0xfd0e4c);}[_0x7ea594(0x316)](_0x58c58a,_0x4012d0,_0x5c4b1f,_0xd813d2,_0x156c21){const _0x196fd9=_0x7ea594;if(this[_0x196fd9(0x169)])return;let _0x13a428=this['_getUserId'](_0x156c21),_0x4cf938=_0x156238(_0x58c58a,_0x13a428),_0xd78f18=this[_0x196fd9(0x218)][_0x196fd9(0x18d)](_0x58c58a);this[_0x196fd9(0x149)][_0x196fd9(0x164)](_0x4cf938,{'unitID':_0x58c58a,'userId':_0x13a428,'type':_0x4012d0,'awaitingChangeset':_0x5c4b1f,'mutations':_0xd813d2,'rev':_0xd78f18}),this['_saveTaskMap'][_0x196fd9(0x2c5)](_0x4cf938)||this[_0x196fd9(0x154)](_0x4cf938);}[_0x7ea594(0x1b1)](_0x47f94f=((()=>{const _0xcdafba=_0x7ea594;var _0x506f65;return(_0x506f65=this[_0xcdafba(0x155)]['getCurrentUser']())==null?void 0x0:_0x506f65[_0xcdafba(0x105)];})())){const _0x2ac8e4=_0x7ea594;return this[_0x2ac8e4(0x2af)](_0x47f94f);}[_0x7ea594(0x2af)](_0x3f98ee){return _0x3f98ee===''||_0x3f98ee==null?void 0x0:_0x3f98ee;}[_0x7ea594(0x154)](_0x433c84){const _0x47281a=_0x7ea594;let _0x18cb64=this[_0x47281a(0x2b8)]();_0x18cb64===0x0?this['_saveCache'](_0x433c84)[_0x47281a(0x193)](_0x212039=>this['_logService'][_0x47281a(0x19d)](_0x212039)):this[_0x47281a(0x1f6)]['set'](_0x433c84,window[_0x47281a(0x2b7)](()=>{const _0x1405ee=_0x47281a;this[_0x1405ee(0x104)](_0x433c84)[_0x1405ee(0x193)](_0x4ad24d=>this['_logService'][_0x1405ee(0x19d)](_0x4ad24d));},_0x18cb64));}[_0x7ea594(0x2b8)](){const _0x2b97e8=_0x7ea594;return this['_configService'][_0x2b97e8(0x25a)](_0x78a9c6)??_0x4cb928;}[_0x7ea594(0x104)](_0x59ac9d){const _0x1037a2=_0x7ea594;let _0x568fd9=this['_saveTaskMap']['get'](_0x59ac9d);_0x568fd9!==void 0x0&&window[_0x1037a2(0x29c)](_0x568fd9);let _0x413c97=this['_cachedData'][_0x1037a2(0x161)](_0x59ac9d);if(!_0x413c97)return Promise[_0x1037a2(0x258)]();let _0x13379a=this['_activeSaveTaskMap'][_0x1037a2(0x161)](_0x59ac9d),_0x5c4308=Promise[_0x1037a2(0x1fd)](_0x13379a?[..._0x13379a]:[])[_0x1037a2(0x35b)](()=>this[_0x1037a2(0x1ac)][_0x1037a2(0x1ed)](_0x59ac9d,_0x413c97))[_0x1037a2(0x35b)](()=>{const _0x35bdba=_0x1037a2;_0x568fd9!==void 0x0&&this[_0x35bdba(0x1f6)][_0x35bdba(0x161)](_0x59ac9d)===_0x568fd9&&(this['_saveTaskMap'][_0x35bdba(0x182)](_0x59ac9d),!this[_0x35bdba(0x169)]&&this['_cachedData']['get'](_0x59ac9d)!==_0x413c97&&this['_scheduleSaving'](_0x59ac9d));});return this[_0x1037a2(0x27f)](_0x59ac9d,_0x5c4308),_0x5c4308;}[_0x7ea594(0x27f)](_0xd0e68a,_0x235558){const _0x1c2e11=_0x7ea594;let _0x1e5206=this[_0x1c2e11(0x262)][_0x1c2e11(0x161)](_0xd0e68a);_0x1e5206||(_0x1e5206=new Set(),this[_0x1c2e11(0x262)][_0x1c2e11(0x164)](_0xd0e68a,_0x1e5206)),_0x1e5206[_0x1c2e11(0x1ce)](_0x235558);let _0x5766b1=()=>{const _0x531f2f=_0x1c2e11;_0x1e5206[_0x531f2f(0x182)](_0x235558),_0x1e5206[_0x531f2f(0x18e)]===0x0&&this[_0x531f2f(0x262)]['delete'](_0xd0e68a);};_0x235558[_0x1c2e11(0x35b)](_0x5766b1,_0x5766b1);}async[_0x7ea594(0x2a9)](){const _0x4c6941=_0x7ea594;let _0x2377c5=[...this[_0x4c6941(0x1f6)]['keys']()][_0x4c6941(0x171)](_0x1e929c=>this['_saveCache'](_0x1e929c));for(let _0x5e4af2 of this[_0x4c6941(0x262)][_0x4c6941(0x163)]())_0x2377c5[_0x4c6941(0x2da)](...[..._0x5e4af2][_0x4c6941(0x171)](_0x5187c4=>_0x5187c4[_0x4c6941(0x35b)](()=>void 0x0)));await Promise[_0x4c6941(0xd9)](_0x2377c5);}};$n=X([Y(0x0,_0x16ce58),Y(0x1,_0x16f020),Y(0x2,_0x5c888d(_0x19bbc1)),Y(0x3,_0x1984c9),Y(0x4,_0x5c888d(_0x3c2aea))],$n);var er=class extends _0x2c43e7{get[_0x7ea594(0xe8)](){const _0x8796a6=_0x7ea594;return this[_0x8796a6(0x255)][_0x8796a6(0x13a)]();}constructor(){const _0x1132dd=_0x7ea594;super(),J(this,_0x1132dd(0x255),new _0x5a8e6e(navigator['onLine'])),J(this,'online$',this[_0x1132dd(0x255)][_0x1132dd(0xe4)]()),this[_0x1132dd(0x25d)](),this[_0x1132dd(0x20b)]();}[_0x7ea594(0x2f1)](){const _0x286f8e=_0x7ea594;super['dispose'](),this[_0x286f8e(0x255)][_0x286f8e(0x278)]();}[_0x7ea594(0x20b)](){const _0x1758f0=_0x7ea594;this['disposeWithMe'](_0x28759e(_0x53faeb(window,_0x1758f0(0xe8)),_0x53faeb(document,_0x1758f0(0x281)),_0x53faeb(window,_0x1758f0(0x27d)),_0x53faeb(document,'visibilitychange')[_0x1758f0(0x1d5)](_0x31e6a5(()=>document['visibilityState']===_0x1758f0(0x19b)),_0x399a72(_0x403623=>_0x403623)))[_0x1758f0(0x1d5)](_0x399a72(()=>navigator[_0x1758f0(0x17d)]))[_0x1758f0(0x1de)](()=>this[_0x1758f0(0x255)]['next'](!0x0)));}['_listenToOfflineEvent'](){const _0x3b52b0=_0x7ea594;this['disposeWithMe'](_0x28759e(_0x53faeb(window,'offline'),_0x53faeb(document,_0x3b52b0(0x2fd)))[_0x3b52b0(0x1de)](()=>this[_0x3b52b0(0x255)]['next'](!0x1)));}};let $=class extends _0x36cdce{constructor(_0x2a09a4=un,_0x4e98aa,_0x50dbeb,_0x2bc342,_0x1f7ccc){const _0x1a9b04=_0x7ea594;super(),this[_0x1a9b04(0x15e)]=_0x2a09a4,this[_0x1a9b04(0x1fa)]=_0x4e98aa,this[_0x1a9b04(0x140)]=_0x50dbeb,this[_0x1a9b04(0x113)]=_0x2bc342,this[_0x1a9b04(0x1c1)]=_0x1f7ccc;let {..._0x462100}=_0x54b9e6({},un,this[_0x1a9b04(0x15e)]);this[_0x1a9b04(0x113)][_0x1a9b04(0x2e8)](_0x1a9b04(0x295),_0x462100);}[_0x7ea594(0x1c9)](){const _0x8ffc7c=_0x7ea594;this[_0x8ffc7c(0x28a)](),this[_0x8ffc7c(0xf8)](this['_commandService'][_0x8ffc7c(0x2b4)](ln)),this[_0x8ffc7c(0x150)]();}[_0x7ea594(0x31a)](){const _0x2dafe6=_0x7ea594;this[_0x2dafe6(0x111)]();}['_registerDependencies'](){const _0x202299=_0x7ea594;var _0x6dac2b;let _0x161fce=[[pn],[_0x1ae3e2,{'useClass':_0x29894e}],[_0x471d6f,{'useClass':$n}],[_0x2ae2cd,{'useClass':er}],[Z],[Bn],[Q],[In],[Qn]];this[_0x202299(0x15e)]['enableDocumentCollaborationUI']!==!0x1&&_0x161fce[_0x202299(0x2da)]([Un],[Vn],[Hn],[gn],[Jn],[dn]),this[_0x202299(0x15e)][_0x202299(0x244)]&&_0x161fce[_0x202299(0x2da)]([Yn]),_0x1d9129(this[_0x202299(0x140)],_0x9b1a78(_0x161fce,(_0x6dac2b=this[_0x202299(0x15e)])==null?void 0x0:_0x6dac2b[_0x202299(0x30f)]));}[_0x7ea594(0x111)](){const _0x253224=_0x7ea594;this['_config'][_0x253224(0x23b)]!==!0x1&&this['disposeWithMe'](this[_0x253224(0x1fa)][_0x253224(0x1d7)](_0x51081c[_0x253224(0x251)],[En])),this['disposeWithMe'](this[_0x253224(0x1fa)][_0x253224(0x1d7)](_0x51081c['UNIVER_SHEET'],[On]));}['_initDependencies'](){const _0x23c748=_0x7ea594;_0x58d44e(this[_0x23c748(0x140)],[[Q],[In],[Z],[Bn],[Qn]]),this['_config'][_0x23c748(0x23b)]!==!0x1&&_0x58d44e(this[_0x23c748(0x140)],[[Jn],[dn]]),this['_config'][_0x23c748(0x244)]&&_0x58d44e(this[_0x23c748(0x140)],[[Yn]]);}};J($,_0x7ea594(0x146),_0x7ea594(0x204)),J($,_0x7ea594(0x24c),sn),J($,_0x7ea594(0x345),cn),$=X([_0x1bc7be(_0x333558,_0x52e451,_0x4540ab,_0x176c33,_0x24cbc8,_0x1d9f35,_0x512565),Y(0x1,_0x23794e),Y(0x2,_0x5c888d(_0x451f97)),Y(0x3,_0x16ce58),Y(0x4,_0x15fe51)],$);let tr=class extends _0x325a9e{constructor(_0x1242cd,_0x3e9153,_0x5d983e,_0xf964ec,_0x20202e){const _0x15f7a8=_0x7ea594;super(_0x1242cd,_0x3e9153,_0x5d983e,_0xf964ec,_0x20202e),J(this,_0x15f7a8(0x32f),new _0x83a48d()),this['disposeWithMe'](()=>{const _0x1d308d=_0x15f7a8;this[_0x1d308d(0x32f)][_0x1d308d(0x136)](),this[_0x1d308d(0x32f)]['complete']();});}async[_0x7ea594(0x224)](_0x1a78be){const _0x4cb12a=_0x7ea594;let _0x459a80=await this[_0x4cb12a(0x33a)](),_0x109413=this[_0x4cb12a(0x35c)](_0x1a78be,_0x459a80);return this[_0x4cb12a(0x329)](_0x109413);}[_0x7ea594(0x35c)](_0x655f64,_0x53b031){const _0x497259=_0x7ea594;let _0x3e1d82=typeof window>'u'?new URL(_0x655f64):new URL(_0x655f64,window[_0x497259(0x118)][_0x497259(0x110)]);_0x3e1d82['searchParams'][_0x497259(0x164)](_0x497259(0x212),_0x53b031);let _0x526980=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x497259(0x118)][_0x497259(0x2e3)]);return _0x526980[_0x497259(0x161)]('runId')&&_0x3e1d82[_0x497259(0x2b2)][_0x497259(0x164)](_0x497259(0x32a),_0x526980[_0x497259(0x161)](_0x497259(0x32a))),_0x3e1d82[_0x497259(0x112)]();}async[_0x7ea594(0x33a)](){const _0x10f789=_0x7ea594;var _0x32cdd6;let _0x26c550=this['_configService'][_0x10f789(0x25a)](_0x14ffae),_0x229f15=(_0x26c550==null?void 0x0:_0x26c550[_0x10f789(0x304)])??_0x4c01fe;return((_0x32cdd6=(await _0x4b2eab(this[_0x10f789(0x297)][_0x10f789(0x2e1)](_0x10f789(0x359),_0x229f15,{'headers':{'Content-Type':_0x10f789(0x2e5)}})[_0x10f789(0x1d5)](_0x399a72(_0x508eab=>_0x508eab[_0x10f789(0x34f)]===_0x42c157[_0x10f789(0x172)]),_0x10c310(0x4e20),_0x2a3afc(this[_0x10f789(0x32f)]))))[_0x10f789(0x225)])==null?void 0x0:_0x32cdd6[_0x10f789(0x1ca)])??'';}};tr=X([Y(0x0,_0x5c888d(_0x451f97)),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x16ce58),Y(0x3,_0x1984c9),Y(0x4,_0x165792)],tr);let nr=class extends _0x2c43e7{constructor(_0x8de9e,_0xf4aeec,_0x2d915d){const _0x486ea5=_0x7ea594;super(),this[_0x486ea5(0x129)]=_0x8de9e,this[_0x486ea5(0x297)]=_0xf4aeec,this[_0x486ea5(0x113)]=_0x2d915d;}async[_0x7ea594(0x1e8)](_0x2afce9,_0x42d25b,_0x5fcf9c,..._0x1b0ea5){const _0x5040cc=_0x7ea594;let _0x3f0b60=this[_0x5040cc(0x129)][_0x5040cc(0x116)]();if(!_0x3f0b60)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x56d3d9=(this[_0x5040cc(0x113)][_0x5040cc(0x25a)](_0x5ccd97)??_0x39f491)+'/'+_0x2afce9+_0x5040cc(0x288)+_0x42d25b,_0x3ffb9d={'scriptId':_0x2afce9,'runId':new URL(window[_0x5040cc(0x118)]['href'])['searchParams'][_0x5040cc(0x161)](_0x5040cc(0x32a))??'','function':_0x42d25b,'unitId':_0x3f0b60[_0x5040cc(0x270)](),'argsOfFunction':JSON['stringify'](_0x1b0ea5),'invokeId':_0x5fcf9c[_0x5040cc(0x2f2)]??'','executionId':_0x5fcf9c[_0x5040cc(0x30a)]??''};try{let _0x23bb3b=await this['_httpService'][_0x5040cc(0x13e)](_0x56d3d9,{'body':_0x3ffb9d});return _0x23bb3b['body'][_0x5040cc(0x19d)]&&_0x23bb3b[_0x5040cc(0x225)][_0x5040cc(0x19d)][_0x5040cc(0x16e)]!==_0x34e0a6['OK']?_0x5040cc(0x167):_0x23bb3b[_0x5040cc(0x225)][_0x5040cc(0x17c)];}catch{return _0x5040cc(0x167);}}};function _0x1c2b(_0x386f6c,_0x4d2827){_0x386f6c=_0x386f6c-0xd9;const _0x58344e=_0x5834();let _0x1c2b22=_0x58344e[_0x386f6c];return _0x1c2b22;}nr=X([Y(0x0,_0x28a580),Y(0x1,_0x5c888d(_0x36cdaa)),Y(0x2,_0x16ce58)],nr);const rr=0x7530,ir=_0x7ea594(0x2ab);var ar=class extends _0x2c43e7{constructor(){const _0x5083e2=_0x7ea594;super(),J(this,_0x5083e2(0x1d1),_0x415285()),J(this,_0x5083e2(0x16d),new Set()),J(this,_0x5083e2(0x325),new Map()),J(this,_0x5083e2(0x2f0),null),J(this,_0x5083e2(0x26b),new Map()),J(this,_0x5083e2(0x2c8),new Map()),this[_0x5083e2(0x191)]();}['dispose'](){const _0x4c7cc5=_0x7ea594;super[_0x4c7cc5(0x2f1)](),this[_0x4c7cc5(0x26b)][_0x4c7cc5(0x2c0)]((_0x3ec55f,_0x3b13da)=>this[_0x4c7cc5(0x196)](_0x3b13da)),this[_0x4c7cc5(0x2f0)]&&window[_0x4c7cc5(0x2a7)](this[_0x4c7cc5(0x2f0)]);}['getUnitStatus$'](_0x3a722b){const _0x89970=_0x7ea594;return this[_0x89970(0x346)](_0x3a722b)['pipe'](_0x3b143a());}['editingUnit'](_0x26c74c){const _0x594fb9=_0x7ea594;this[_0x594fb9(0x16d)][_0x594fb9(0x18e)]===0x0&&this[_0x594fb9(0x330)](),this['_selfUnitIDs'][_0x594fb9(0x1ce)](_0x26c74c),this[_0x594fb9(0x290)]({'type':0x0,'memberID':this[_0x594fb9(0x1d1)],'unitIDs':[_0x26c74c],'isForwarded':!0x1});}['disposeUnit'](_0x5b70ec){const _0x169db3=_0x7ea594;this[_0x169db3(0x16d)][_0x169db3(0x182)](_0x5b70ec),this[_0x169db3(0x16d)][_0x169db3(0x18e)]===0x0&&this[_0x169db3(0x2f0)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x4e0edd=_0x7ea594;this[_0x4e0edd(0xf8)](_0x42bb3c(_0x53faeb(window,_0x4e0edd(0x341))[_0x4e0edd(0x1de)](_0x7b570b=>{const _0x27831b=_0x4e0edd;if(_0x7b570b['key']!==ir||!_0x7b570b[_0x27831b(0x259)])return;let _0x5c7184=JSON[_0x27831b(0x188)](_0x7b570b[_0x27831b(0x259)]);this[_0x27831b(0x200)](_0x5c7184);}))),window['addEventListener'](_0x4e0edd(0x334),()=>this['_send']({'type':0x1,'memberID':this[_0x4e0edd(0x1d1)],'unitIDs':Array[_0x4e0edd(0x1eb)](this['_selfUnitIDs'])}));}[_0x7ea594(0x200)](_0x30378f){const _0x469b1a=_0x7ea594;switch(_0x30378f[_0x469b1a(0x34f)]){case 0x0:this[_0x469b1a(0x275)](_0x30378f);break;case 0x1:this['_handleLeaveEvent'](_0x30378f);break;case 0x2:this[_0x469b1a(0x351)](_0x30378f);}}[_0x7ea594(0x275)](_0x207b69){const _0x51c610=_0x7ea594;let {unitIDs:_0x525585,memberID:_0x4253d0,isForwarded:_0x5ef246}=_0x207b69;_0x525585['forEach'](_0x386751=>{const _0x4e88b4=_0x1c2b;if(!_0x5ef246&&this['_unitOnClients'][_0x4e88b4(0x2c5)](_0x386751)&&this[_0x4e88b4(0x346)](_0x386751)['next'](_0x24c6b1[_0x4e88b4(0x31d)]),!this[_0x4e88b4(0x325)][_0x4e88b4(0x2c5)](_0x386751)||!this[_0x4e88b4(0x325)][_0x4e88b4(0x161)](_0x386751)[_0x4e88b4(0x2c5)](_0x4253d0)){let _0x3c13c4=this[_0x4e88b4(0x325)]['get'](_0x386751)||new Set();_0x3c13c4[_0x4e88b4(0x1ce)](_0x4253d0),this[_0x4e88b4(0x325)][_0x4e88b4(0x164)](_0x386751,_0x3c13c4),this[_0x4e88b4(0x305)](_0x4253d0);}}),_0x5ef246||this[_0x51c610(0x290)]({'type':0x0,'memberID':this[_0x51c610(0x1d1)],'unitIDs':[...this[_0x51c610(0x16d)]],'isForwarded':!0x0});}[_0x7ea594(0x305)](_0x48677f){const _0x5b3e1f=_0x7ea594;this[_0x5b3e1f(0x196)](_0x48677f);let _0x4ad8f2=window[_0x5b3e1f(0x2b7)](()=>{const _0x708aeb=_0x5b3e1f;this[_0x708aeb(0x325)][_0x708aeb(0x2c0)](_0x540815=>{const _0xd0e07d=_0x708aeb;_0x540815[_0xd0e07d(0x182)](_0x48677f);});},rr*0x2);this['_clearOtherTimers']['set'](_0x48677f,_0x4ad8f2);}[_0x7ea594(0x196)](_0x369bf0){const _0x1a6590=_0x7ea594;if(this[_0x1a6590(0x26b)]['has'](_0x369bf0)){let _0x24052f=this[_0x1a6590(0x26b)][_0x1a6590(0x161)](_0x369bf0);_0x24052f&&window[_0x1a6590(0x29c)](_0x24052f),this['_clearOtherTimers'][_0x1a6590(0x164)](_0x369bf0,null);}}['_handleLeaveEvent'](_0x3281bd){const _0x52c42d=_0x7ea594;let {memberID:_0x52c2f5,unitIDs:_0x537e1c}=_0x3281bd;_0x537e1c[_0x52c42d(0x2c0)](_0x35ddea=>{const _0x38a0c9=_0x52c42d;var _0xfc8342;let _0x2d7f65=this[_0x38a0c9(0x325)]['get'](_0x35ddea);_0x2d7f65&&(_0x2d7f65[_0x38a0c9(0x182)](_0x52c2f5),(_0xfc8342=this[_0x38a0c9(0x346)](_0x35ddea))==null||_0xfc8342[_0x38a0c9(0x136)](_0x2d7f65[_0x38a0c9(0x18e)]===0x0?_0x24c6b1['NO_OTHER_CLIENTS_EDITING']:_0x24c6b1[_0x38a0c9(0x31d)]));}),this[_0x52c42d(0x196)](_0x52c2f5);}['_handleHeartbeatEvent'](_0x242b12){const _0x5e7fc8=_0x7ea594;this[_0x5e7fc8(0x305)](_0x242b12[_0x5e7fc8(0x35a)]);}[_0x7ea594(0x290)](_0x50477d){const _0x3ed713=_0x7ea594;localStorage[_0x3ed713(0x1ed)](ir,JSON['stringify'](_0x50477d));}[_0x7ea594(0x330)](){const _0x4243d1=_0x7ea594;this[_0x4243d1(0x2f0)]=window[_0x4243d1(0x187)](()=>{const _0x359691=_0x4243d1;this['_send']({'type':0x2,'memberID':this[_0x359691(0x1d1)]});},rr);}[_0x7ea594(0x346)](_0x1fad19){const _0x3abc27=_0x7ea594;return this['_unitStatus'][_0x3abc27(0x2c5)](_0x1fad19)||this['_unitStatus']['set'](_0x1fad19,new _0x5a8e6e(_0x24c6b1['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus']['get'](_0x1fad19);}};export{tr as BrowserCollaborationSocketService,Z as DesktopCollaborationStatusDisplayController,nr as RemoteUniscriptService,Dn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};
|