@univerjs-pro/collaboration-client-ui 0.8.2-nightly.202506211606 → 0.8.2-nightly.202506231607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.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/en-US.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/ru-RU.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-TW.js +1 -1
- package/package.json +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2dd5e3=_0xafbe;(function(_0x1e2f9a,_0x2249ac){const _0x317568=_0xafbe,_0x3fb86f=_0x1e2f9a();while(!![]){try{const _0x16ecf3=-parseInt(_0x317568(0x22e))/0x1*(parseInt(_0x317568(0x1c7))/0x2)+parseInt(_0x317568(0x205))/0x3+-parseInt(_0x317568(0x1cb))/0x4*(parseInt(_0x317568(0x24f))/0x5)+parseInt(_0x317568(0x20b))/0x6+parseInt(_0x317568(0x1f2))/0x7+-parseInt(_0x317568(0x126))/0x8+parseInt(_0x317568(0x165))/0x9;if(_0x16ecf3===_0x2249ac)break;else _0x3fb86f['push'](_0x3fb86f['shift']());}catch(_0x4da9a9){_0x3fb86f['push'](_0x3fb86f['shift']());}}}(_0x4450,0xf377b));var $t=Object['defineProperty'],xt=(_0xa23a93,_0x9845cc,_0x2578f7)=>_0x9845cc in _0xa23a93?$t(_0xa23a93,_0x9845cc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2578f7}):_0xa23a93[_0x9845cc]=_0x2578f7,_=(_0x34f24e,_0x195d90,_0xee59ae)=>xt(_0x34f24e,typeof _0x195d90!=_0x2dd5e3(0x133)?_0x195d90+'':_0x195d90,_0xee59ae);import{MemberService as _0x7d61b1,SessionStatus as _0x453143,CollaborationSessionService as _0x53461e,CollaborationStatus as _0x12f766,CollaborationController as _0x3de98f,ILocalCacheService as _0x467e13,CollaborationUIEventService as _0x247516,CollaborationUIEventId as _0x248fdb,DataLoaderService as _0x1f05e5,DocCollaborationEntity as _0x5a6212,getLocalCacheKey as _0x1c9113,LOCAL_CACHE_INTERVAL as _0x288254,LOCAL_CACHE_INTERVAL_KEY as _0x1e4549,UniverCollaborationClientPlugin as _0x38a345,CollaborationSocketService as _0x444c05,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x282bd2,DEFAULT_WS_SESSION_TICKET_URL as _0xd2a510,UnitStatus as _0xdf192,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4ff754,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xfde338}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x2e3fba,Disposable as _0x21c4e5,DOC_RANGE_TYPE as _0x168410,Inject as _0x5b7f95,Injector as _0x3325a5,IUniverInstanceService as _0x497731,ICommandService as _0x780975,debounce as _0x1ee189,Rectangle as _0x5588f8,DisposableCollection as _0x1590eb,toDisposable as _0x1c7e0e,UniverInstanceType as _0x3c4001,Tools as _0x2a5672,COLORS as _0x2794f8,ColorKit as _0x1224e9,ThemeService as _0x9fb8d6,fromEventSubject as _0x469c16,LocaleService as _0x2ef23e,createIdentifier as _0x59a066,ILogService as _0x447620,Optional as _0x2958c4,Workbook as _0x49c747,CommandType as _0x3f55d9,IConfigService as _0x313249,ILocalStorageService as _0x2e0c63,DependentOn as _0x14cb37,Plugin as _0x1546ae,merge as _0x35bde1,registerDependencies as _0x3bfd00,mergeOverrideWithDependencies as _0x4b410e,touchDependencies as _0x38d79c,generateRandomId as _0x51db46}from'@univerjs/core';import{Shape as _0x18c0b6,Rect as _0x3bd140,getColor as _0x348f52,RegularPolygon as _0xe60e77,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5019cf,Vector2 as _0x11203f,SHEET_VIEWPORT_KEY as _0x2f5c3f,IRenderManagerService as _0x2543e2}from'@univerjs/engine-render';import{ISocketService as _0x1046c0,WebSocketService as _0x8bf15b,HTTPService as _0x21e7b9}from'@univerjs/network';import{IDocClipboardService as _0x2993fd,NodePositionConvertToCursor as _0x48c1ae,NodePositionConvertToRectRange as _0x2f33f1,TEXT_RANGE_LAYER_INDEX as _0x2d1db0,SetDocZoomRatioOperation as _0x4b7323,DocIMEInputManagerService as _0x41d47f,DocStateChangeManagerService as _0x5b25ec}from'@univerjs/docs-ui';import{IImageIoService as _0x33dc5c}from'@univerjs/drawing';import{BehaviorSubject as _0x4ee13a,debounceTime as _0x4ccf45,takeUntil as _0x44686d,Subject as _0x27fe57,filter as _0x9430fa,switchMap as _0xc1bcca,merge as _0x562b46,combineLatest as _0x284913,of as _0x2a42dd,fromEvent as _0x274c90,shareReplay as _0x5af7e7,mapTo as _0x2c0056,distinctUntilChanged as _0x46ed2e}from'rxjs';import{ITransformService as _0x2ae7a9,CollaborationEvent as _0x408aec,isTransformMutationFailure as _0x500c8b,isTransformMutationsWithChangesetSuccess as _0x1b20dd,RevisionService as _0x984504,ISnapshotServerService as _0x53a181}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x122b2d,RichTextEditingMutation as _0x16b2ce,DocSelectionManagerService as _0x163e3e,DocSkeletonManagerService as _0x48bc12}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x37e71f,serializeRangeWithSheet as _0x1bd472}from'@univerjs/engine-formula';import{RefRangeService as _0x50eed7,SetSelectionsOperation as _0x5a4efd,SheetsSelectionsService as _0x5a89fc,EffectRefRangId as _0x5964b4,handleIRemoveRow as _0x5e55dc,handleIRemoveCol as _0x35c498,handleMoveRange as _0x23bf7f,handleInsertRow as _0xb834fa,handleInsertRangeMoveRight as _0x2ae5a6,handleInsertRangeMoveDown as _0x5daba4,handleInsertCol as _0x26cedd,handleDeleteRangeMoveUp as _0x342aa1,handleDeleteRangeMoveLeft as _0x58f4e0,runRefRangeMutations as _0x155afd,SetWorksheetActivateCommand as _0x2ed211}from'@univerjs/sheets';import{map as _0x54ffac,filter as _0x13e38c,throttleTime as _0x4f6864,takeUntil as _0x4c092c,switchMap as _0x5d9aca}from'rxjs/operators';import{SheetSkeletonManagerService as _0x586ff9,getCoordByCell as _0x207a10,getSheetObject as _0x57b7d5}from'@univerjs/sheets-ui';import{jsx as _0x3f5c54,jsxs as _0x45aa0d}from'react/jsx-runtime';import{useObservable as _0x2a5350,useDependency as _0x2a3cf4,IUIPartsService as _0x3a87b9,BuiltInUIPart as _0x349053,connectInjector as _0x1e366d,IBeforeCloseService as _0x5aff92,IMessageService as _0x41a076,INotificationService as _0x232a6b}from'@univerjs/ui';import{Tooltip as _0x6bc3f8,clsx as _0x166557,MessageType as _0x498d54}from'@univerjs/design';import{forwardRef as _0x533673,useRef as _0x4a60ab,createElement as _0x11ea07,useCallback as _0x358ec1}from'react';import{IRemoteInstanceService as _0x10414d}from'@univerjs/rpc';var ci=Object['getOwnPropertyDescriptor'],li=(_0x5d6042,_0x230b09,_0x538fef,_0x13a592)=>{const _0x1140f4=_0x2dd5e3;for(var _0x498edf=_0x13a592>0x1?void 0x0:_0x13a592?ci(_0x230b09,_0x538fef):_0x230b09,_0x56053b=_0x5d6042[_0x1140f4(0x278)]-0x1,_0x5e7a73;_0x56053b>=0x0;_0x56053b--)(_0x5e7a73=_0x5d6042[_0x56053b])&&(_0x498edf=_0x5e7a73(_0x498edf)||_0x498edf);return _0x498edf;},Je=(_0x1e0c49,_0x3682a4)=>(_0x448cdc,_0xdf7572)=>_0x3682a4(_0x448cdc,_0xdf7572,_0x1e0c49);let Ne=class extends _0x2e3fba{constructor(_0x541450,_0x160f62){const _0x1daccc=_0x2dd5e3;super(),this['_docClipboardService']=_0x541450,this['_imageIoService']=_0x160f62,this[_0x1daccc(0x224)]();}[_0x2dd5e3(0x224)](){const _0x4cb771=_0x2dd5e3,_0x422cd3=this;this[_0x4cb771(0x21a)](this['_docClipboardService'][_0x4cb771(0x1ea)]({'onBeforePasteImage':async _0x4e23b8=>{const _0x1ce9d0=_0x4cb771,_0x282a6e=await _0x422cd3[_0x1ce9d0(0x230)][_0x1ce9d0(0x204)](_0x4e23b8);return _0x282a6e?{'source':_0x282a6e[_0x1ce9d0(0x245)],'imageSourceType':_0x282a6e[_0x1ce9d0(0x1da)]}:null;}}));}};Ne=li([Je(0x0,_0x2993fd),Je(0x1,_0x33dc5c)],Ne);const Ze=[_0x2dd5e3(0x306),_0x2dd5e3(0x18c),_0x2dd5e3(0x125),_0x2dd5e3(0x167),'blue.400',_0x2dd5e3(0x13a)];class ke extends _0x21c4e5{constructor(){const _0x25499a=_0x2dd5e3;super(...arguments),_(this,_0x25499a(0x1ac),new Map()),_(this,_0x25499a(0x1f7),0x0);}['assignAColorForMemberID'](_0x431e60){const _0x5c141d=_0x2dd5e3;if(this['_assignedColors'][_0x5c141d(0x2be)](_0x431e60))return this[_0x5c141d(0x1ac)][_0x5c141d(0x148)](_0x431e60);const _0x434b18=Ze[this['_colorIndex']];return this[_0x5c141d(0x1f7)]=(this[_0x5c141d(0x1f7)]+0x1)%Ze['length'],this['_assignedColors'][_0x5c141d(0x18e)](_0x431e60,_0x434b18),_0x434b18;}}function Tt(_0x1fcd38){const _0x5cce1a=_0x2dd5e3;let _0x7f4708='';for(const _0x533abd of _0x1fcd38){const {startOffset:_0x2b5ebb,endOffset:_0x15584d,isActive:_0x3cae29,rangeType:_0x1faa7a,segmentId:_0x1df324,segmentPage:_0x33b71c}=_0x533abd;_0x7f4708[_0x5cce1a(0x278)]&&(_0x7f4708+=','),_0x7f4708+=_0x2b5ebb+':'+_0x15584d+':'+(_0x3cae29?'1':'0')+':'+_0x1faa7a+':'+_0x1df324+':'+_0x33b71c;}return _0x7f4708;}function _i(_0x540bf9){const _0x5c95e2=_0x2dd5e3,_0xfa922c=_0x540bf9['split'](','),_0x1cbb75=[];for(const _0x560693 of _0xfa922c){const [_0x2e1f05,_0x31ac26,_0x2f3056,_0x1dfe50,_0x18f4b6,_0x4f1ead]=_0x560693[_0x5c95e2(0x182)](':');_0x1cbb75['push']({'startOffset':Number(_0x2e1f05),'endOffset':Number(_0x31ac26),'collapsed':_0x2e1f05===_0x31ac26,'isActive':_0x2f3056==='1','rangeType':_0x1dfe50===_0x168410[_0x5c95e2(0x2f9)]?_0x168410[_0x5c95e2(0x2f9)]:_0x168410[_0x5c95e2(0x258)],'segmentId':typeof _0x18f4b6==_0x5c95e2(0x21b)?String(_0x18f4b6):'','segmentPage':Number(_0x4f1ead!=null?_0x4f1ead:-0x1)});}return _0x1cbb75[_0x5c95e2(0x1d1)](_0x428866=>_0x428866[_0x5c95e2(0x13c)])||(_0x1cbb75[0x0][_0x5c95e2(0x13c)]=!0x0),_0x1cbb75;}class He extends _0x2e3fba{constructor(){const _0x27363f=_0x2dd5e3;super(...arguments),_(this,_0x27363f(0x142),new _0x4ee13a(null)),_(this,_0x27363f(0x262),this['_collabCursorState$'][_0x27363f(0x195)]());}[_0x2dd5e3(0x2b5)](_0x1c3696){const _0x318fb2=_0x2dd5e3,{unitID:_0x37ff44,memberID:_0x4b7be8,textRanges:_0x3ffad4}=_0x1c3696,_0x76b37a=Tt(_0x3ffad4);if(_0x76b37a==='')return;const _0x3d84cc={'unitID':_0x37ff44,'memberID':_0x4b7be8,'selection':_0x76b37a};this[_0x318fb2(0x142)]['next'](_0x3d84cc);}}var hi=Object[_0x2dd5e3(0x1c1)],ui=(_0x203221,_0x2e8f0a,_0x18b429,_0x47e819)=>{const _0x191e50=_0x2dd5e3;for(var _0x13c4a8=_0x47e819>0x1?void 0x0:_0x47e819?hi(_0x2e8f0a,_0x18b429):_0x2e8f0a,_0x22765a=_0x203221[_0x191e50(0x278)]-0x1,_0x18fdb8;_0x22765a>=0x0;_0x22765a--)(_0x18fdb8=_0x203221[_0x22765a])&&(_0x13c4a8=_0x18fdb8(_0x13c4a8)||_0x13c4a8);return _0x13c4a8;},P=(_0x2d072a,_0x419e73)=>(_0xe777cc,_0x23b14d)=>_0x419e73(_0xe777cc,_0x23b14d,_0x2d072a);const di=0x12c,fi=0x64;let Ue=class extends _0x2e3fba{constructor(_0xa25c05,_0x32b709,_0x4e8baf,_0x482518,_0x47b36f,_0x5c649d,_0x497d4d,_0x42c019,_0x5224de){const _0x5c071a=_0x2dd5e3;super(),_(this,_0x5c071a(0x30b),!0x1),_(this,_0x5c071a(0x224),!0x1),_(this,_0x5c071a(0x219),new _0x4ee13a(new Map())),_(this,_0x5c071a(0x160),this[_0x5c071a(0x219)][_0x5c071a(0x195)]()),_(this,_0x5c071a(0x151),new _0x4ee13a([])),_(this,_0x5c071a(0x259),this[_0x5c071a(0x151)][_0x5c071a(0x227)](_0x4ccf45(di))),_(this,'_updateLocalCursor',_0x1ee189(_0x59cf0d=>{const _0x34f361=_0x5c071a,_0x3cd8fd={'eventID':_0x408aec[_0x34f361(0x283)],'data':{'unitID':this[_0x34f361(0x13e)],'memberID':this[_0x34f361(0x26c)]['getMemberID'](),'selection':Tt(_0x59cf0d)}};this[_0x34f361(0x26c)][_0x34f361(0x257)](_0x3cd8fd,this[_0x34f361(0x13e)]);},fi)),(this[_0x5c071a(0x13e)]=_0xa25c05,this[_0x5c071a(0x26c)]=_0x32b709,this[_0x5c071a(0x2aa)]=_0x4e8baf,this[_0x5c071a(0x29f)]=_0x482518,this[_0x5c071a(0x290)]=_0x47b36f,this[_0x5c071a(0x11e)]=_0x5c649d,this[_0x5c071a(0x23e)]=_0x497d4d,this[_0x5c071a(0x1a2)]=_0x42c019,this[_0x5c071a(0x122)]=_0x5224de);}get[_0x2dd5e3(0x236)](){const _0x2cd45e=_0x2dd5e3;return this['_cursorInfo$'][_0x2cd45e(0x17e)]();}get[_0x2dd5e3(0x25d)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x15a337=_0x2dd5e3;super[_0x15a337(0x232)](),this['_cursorInfo$'][_0x15a337(0x16f)](new Map()),this[_0x15a337(0x219)]['complete'](),this['_roomMembers$'][_0x15a337(0x16f)]([]),this[_0x15a337(0x151)][_0x15a337(0x18b)]();}[_0x2dd5e3(0x159)](){const _0x356b9b=_0x2dd5e3;this['_init']||(this['_init']=!0x0,this[_0x356b9b(0x26c)]['sessionStatus$'][_0x356b9b(0x227)](_0x44686d(this[_0x356b9b(0x156)]))[_0x356b9b(0x276)](_0xddda4b=>{const _0x21374d=_0x356b9b;_0xddda4b===_0x453143[_0x21374d(0x116)]?this[_0x21374d(0x208)]():this['_toggleOffline']();}),this[_0x356b9b(0x26c)][_0x356b9b(0x1cf)][_0x356b9b(0x227)](_0x44686d(this['dispose$']))[_0x356b9b(0x276)](_0x46e566=>{const _0x25f6bb=_0x356b9b,_0x44b9cc=_0x46e566[_0x25f6bb(0x1f4)];_0x44b9cc===_0x408aec[_0x25f6bb(0x283)]&&this['_onCursorUpdate'](_0x46e566),_0x44b9cc===_0x408aec[_0x25f6bb(0x19b)]&&this['_onCursorDelete'](_0x46e566);}),this[_0x356b9b(0x21a)](this[_0x356b9b(0x122)]['onCommandExecuted'](_0x436cbb=>{const _0x37ca45=_0x356b9b,_0x2c840e=_0x436cbb[_0x37ca45(0x1b7)];_0x2c840e!=null&&this['_online']&&_0x436cbb['id']===_0x122b2d['id']&&_0x2c840e['unitId']===this[_0x37ca45(0x13e)]&&_0x2c840e[_0x37ca45(0x2c2)]===!0x1&&_0x2c840e[_0x37ca45(0x169)][_0x37ca45(0x278)]>0x0&&this[_0x37ca45(0x14a)](_0x2c840e[_0x37ca45(0x169)]);})),this[_0x356b9b(0x11e)]['collabCursorState$'][_0x356b9b(0x227)](_0x44686d(this[_0x356b9b(0x156)]))['subscribe'](_0xadac93=>{const _0x3c4ec9=_0x356b9b;if((_0xadac93==null?void 0x0:_0xadac93[_0x3c4ec9(0x13e)])!==this[_0x3c4ec9(0x13e)])return;const _0x5cae78={'eventID':_0x408aec['UPDATE_CURSOR'],'data':_0xadac93};this[_0x3c4ec9(0x1ed)](_0x5cae78);}),this['disposeWithMe'](this[_0x356b9b(0x122)]['onCommandExecuted'](_0x62fa78=>{const _0x3c0678=_0x356b9b;if(_0x62fa78[_0x3c0678(0x1b7)]==null)return;const _0x52a9c5=_0x62fa78[_0x3c0678(0x1b7)];if(_0x62fa78['id']!==_0x16b2ce['id']||_0x52a9c5[_0x3c0678(0x185)]!==this[_0x3c0678(0x13e)])return;const _0x43887f={'id':_0x3c0678(0x188),'params':_0x52a9c5},_0xd2cac7=this[_0x3c0678(0x236)];for(const [_0x4acff8,_0x1ef02a]of _0xd2cac7){const _0x32719c={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x3c0678(0x13e)],'actions':null,'textRanges':_0x1ef02a[_0x3c0678(0x169)]}},_0x5d1508=this[_0x3c0678(0x23e)][_0x3c0678(0x297)](_0x43887f,_0x32719c,!0x1);if(_0x500c8b(_0x5d1508))throw _0x5d1508[_0x3c0678(0x2f2)];_0xd2cac7[_0x3c0678(0x18e)](_0x4acff8,{..._0x1ef02a,'ranges':_0x5d1508['m2Prime'][_0x3c0678(0x1b7)][_0x3c0678(0x1ba)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0xd2cac7);});})));}[_0x2dd5e3(0x1ed)](_0x47d228){const _0x3da6ae=_0x2dd5e3;var _0x16175f,_0x187653;const {memberID:_0x5e71fd,selection:_0x2d5943}=_0x47d228['data'],_0x89b920=_i(_0x2d5943),_0x3d31fc=(_0x187653=(_0x16175f=this[_0x3da6ae(0x290)][_0x3da6ae(0x2a8)](this[_0x3da6ae(0x13e)],_0x5e71fd))==null?void 0x0:_0x16175f[_0x3da6ae(0x12d)])!=null?_0x187653:_0x3da6ae(0x207),_0x2ed359={'color':this['_colorAssignService'][_0x3da6ae(0x1f0)](_0x5e71fd),'name':_0x3d31fc,'ranges':_0x89b920},_0x217bf1=this[_0x3da6ae(0x236)];_0x217bf1[_0x3da6ae(0x18e)](_0x5e71fd,_0x2ed359),this['_cursorInfo$'][_0x3da6ae(0x16f)](_0x217bf1);}[_0x2dd5e3(0x134)](_0x5a44fe){const _0x586591=_0x2dd5e3,{memberID:_0x5ec8d6}=_0x5a44fe[_0x586591(0x13d)],_0x12fd01=this['cursorInfo'];_0x12fd01[_0x586591(0x2e3)](_0x5ec8d6),this[_0x586591(0x219)][_0x586591(0x16f)](_0x12fd01);}[_0x2dd5e3(0x208)](){const _0x465184=_0x2dd5e3;var _0x2d80ea;if(this[_0x465184(0x30b)]=!0x0,((_0x2d80ea=this['_univerInstanceService'][_0x465184(0x2ed)]())==null?void 0x0:_0x2d80ea[_0x465184(0x231)]())!==this[_0x465184(0x13e)])return;const _0x1f2ae2=this[_0x465184(0x2aa)][_0x465184(0x148)](_0x163e3e)[_0x465184(0x277)]();Array[_0x465184(0x164)](_0x1f2ae2)&&_0x1f2ae2[_0x465184(0x278)]>0x0&&this['_updateLocalCursor'](_0x1f2ae2);}[_0x2dd5e3(0x296)](){const _0x1cee08=_0x2dd5e3;this[_0x1cee08(0x30b)]=!0x1;}};Ue=ui([P(0x2,_0x5b7f95(_0x3325a5)),P(0x3,_0x5b7f95(ke)),P(0x4,_0x5b7f95(_0x7d61b1)),P(0x5,_0x5b7f95(He)),P(0x6,_0x2ae7a9),P(0x7,_0x497731),P(0x8,_0x780975)],Ue);var Si=Object['getOwnPropertyDescriptor'],mi=(_0x1fb7f2,_0x5b2a20,_0x3f221f,_0x3515f8)=>{const _0x22c638=_0x2dd5e3;for(var _0x42fb8c=_0x3515f8>0x1?void 0x0:_0x3515f8?Si(_0x5b2a20,_0x3f221f):_0x5b2a20,_0x1b0262=_0x1fb7f2[_0x22c638(0x278)]-0x1,_0x2b8b3f;_0x1b0262>=0x0;_0x1b0262--)(_0x2b8b3f=_0x1fb7f2[_0x1b0262])&&(_0x42fb8c=_0x2b8b3f(_0x42fb8c)||_0x42fb8c);return _0x42fb8c;},x=(_0x40bf31,_0x312efd)=>(_0x23a7c2,_0x34d2a2)=>_0x312efd(_0x23a7c2,_0x34d2a2,_0x40bf31);const Ii=0x12c,gi=0x64,vi=()=>{let _0x2fe253=[],_0xf8bfd5=!0x1;return _0x19c2f3=>{_0x2fe253['push'](_0x19c2f3),_0xf8bfd5||(_0xf8bfd5=!0x0,setTimeout(()=>{const _0x19ffb3=_0xafbe;_0x2fe253[_0x19ffb3(0x12e)](_0x1e4566=>_0x1e4566()),_0x2fe253=[],_0xf8bfd5=!0x1;}));};};let Me=class extends _0x2e3fba{constructor(_0x4d8155,_0x182285,_0xa75c39,_0x37971d,_0xb42d68,_0x372ca9,_0x16ec1f,_0xcb5bb8){const _0x43771b=_0x2dd5e3;super(),_(this,'_online',!0x1),_(this,_0x43771b(0x224),!0x1),_(this,_0x43771b(0x219),new _0x4ee13a(new Map())),_(this,_0x43771b(0x160),this[_0x43771b(0x219)][_0x43771b(0x195)]()),_(this,_0x43771b(0x151),new _0x4ee13a([])),_(this,_0x43771b(0x259),this[_0x43771b(0x151)][_0x43771b(0x227)](_0x4ccf45(Ii))),_(this,'_updateLocalCursor',_0x1ee189((_0xf76d63,_0x29a2db)=>{const _0x580dac=_0x43771b,_0x2ece88={'eventID':_0x408aec[_0x580dac(0x283)],'data':{'unitID':this[_0x580dac(0x13e)],'memberID':this[_0x580dac(0x26c)][_0x580dac(0x147)](),'selection':_0x1bd472(_0xf76d63,_0x29a2db['range'])}};this['_session'][_0x580dac(0x257)](_0x2ece88,this[_0x580dac(0x13e)]);},gi)),(this[_0x43771b(0x13e)]=_0x4d8155,this[_0x43771b(0x26c)]=_0x182285,this[_0x43771b(0x2aa)]=_0xa75c39,this['_colorAssignService']=_0x37971d,this[_0x43771b(0x290)]=_0xb42d68,this[_0x43771b(0x1a2)]=_0x372ca9,this[_0x43771b(0x122)]=_0x16ec1f,this[_0x43771b(0x16d)]=_0xcb5bb8);}get[_0x2dd5e3(0x236)](){const _0x3a3883=_0x2dd5e3;return this['_cursorInfo$'][_0x3a3883(0x17e)]();}get[_0x2dd5e3(0x25d)](){const _0x27ec34=_0x2dd5e3;return this[_0x27ec34(0x151)][_0x27ec34(0x17e)]();}[_0x2dd5e3(0x232)](){const _0x161d8f=_0x2dd5e3;super[_0x161d8f(0x232)](),this[_0x161d8f(0x219)][_0x161d8f(0x16f)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x161d8f(0x16f)]([]),this[_0x161d8f(0x151)][_0x161d8f(0x18b)]();}[_0x2dd5e3(0x159)](){const _0x4c9361=_0x2dd5e3;this[_0x4c9361(0x224)]||(this[_0x4c9361(0x224)]=!0x0,this[_0x4c9361(0x26c)][_0x4c9361(0x2ce)][_0x4c9361(0x227)](_0x44686d(this[_0x4c9361(0x156)]))[_0x4c9361(0x276)](_0x252162=>{const _0x9efd15=_0x4c9361;_0x252162===_0x453143[_0x9efd15(0x116)]?this[_0x9efd15(0x208)]():this[_0x9efd15(0x296)]();}),this[_0x4c9361(0x26c)][_0x4c9361(0x1cf)][_0x4c9361(0x227)](_0x44686d(this[_0x4c9361(0x156)]))[_0x4c9361(0x276)](_0x49ad4a=>{const _0x37dced=_0x4c9361,_0x469936=_0x49ad4a[_0x37dced(0x1f4)];_0x469936===_0x408aec[_0x37dced(0x283)]&&this[_0x37dced(0x1ed)](_0x49ad4a),_0x469936===_0x408aec[_0x37dced(0x19b)]&&this[_0x37dced(0x134)](_0x49ad4a);}),this[_0x4c9361(0x146)](),this[_0x4c9361(0x21a)](this['_commandService'][_0x4c9361(0x268)](_0x57c417=>{const _0xbc669b=_0x4c9361;if(this['_online']&&_0x57c417['id']===_0x5a4efd['id']&&_0x57c417[_0xbc669b(0x1b7)]['unitId']===this['unitID']){const _0x21065f=_0x57c417[_0xbc669b(0x1b7)];this[_0xbc669b(0x14a)](_0x21065f[_0xbc669b(0x120)],_0x21065f[_0xbc669b(0x17b)][0x0]);}})));}[_0x2dd5e3(0x1ed)](_0x39fdab){const _0xfb7c03=_0x2dd5e3;var _0x3ddd8b,_0x4d60d4;const {memberID:_0x305a2e,selection:_0x1b118c}=_0x39fdab[_0xfb7c03(0x13d)],{sheetName:_0x4ae5af,range:_0xe972a6}=_0x37e71f(_0x1b118c),_0x18fd9c={'name':(_0x4d60d4=(_0x3ddd8b=this[_0xfb7c03(0x290)][_0xfb7c03(0x2a8)](this[_0xfb7c03(0x13e)],_0x305a2e))==null?void 0x0:_0x3ddd8b[_0xfb7c03(0x12d)])!=null?_0x4d60d4:_0xfb7c03(0x207),'range':this[_0xfb7c03(0x2cd)](_0x4ae5af,_0xe972a6),'sheetID':_0x4ae5af,'color':this[_0xfb7c03(0x29f)]['assignAColorForMemberID'](_0x305a2e),'selection':_0x1b118c},_0x29d56a=this['cursorInfo'];_0x29d56a[_0xfb7c03(0x18e)](_0x305a2e,_0x18fd9c),this[_0xfb7c03(0x219)][_0xfb7c03(0x16f)](_0x29d56a);}[_0x2dd5e3(0x134)](_0x5ac4f0){const _0x5f500c=_0x2dd5e3,{memberID:_0x5e44cc}=_0x5ac4f0['data'],_0x422f7a=this[_0x5f500c(0x236)];_0x422f7a['delete'](_0x5e44cc),this['_cursorInfo$'][_0x5f500c(0x16f)](_0x422f7a);}['_getMergeRange'](_0xf8cef8,_0x1ce761){const _0x284c88=_0x2dd5e3;var _0x46757f,_0x5bcf6f;const _0x2a4a36=(_0x5bcf6f=(_0x46757f=this[_0x284c88(0x1a2)]['getUniverSheetInstance'](this[_0x284c88(0x13e)]))==null?void 0x0:_0x46757f[_0x284c88(0x11c)](_0xf8cef8))==null?void 0x0:_0x5bcf6f[_0x284c88(0x181)]();return(_0x2a4a36==null?void 0x0:_0x2a4a36[_0x284c88(0x155)](_0x274d3f=>_0x5588f8[_0x284c88(0x256)](_0x274d3f,_0x1ce761)))||_0x1ce761;}[_0x2dd5e3(0x146)](){const _0x3873c0=_0x2dd5e3,_0x569b3a=new _0x1590eb(),_0xd80b02=vi(),_0x15da9e=()=>{const _0x1ca33e=_0xafbe;_0x569b3a[_0x1ca33e(0x232)]();const _0x597be7=(_0x4423dd,_0x3b49b6,_0x1e4157,_0x2230b0)=>{const _0xcf7e4c=_0x1ca33e;let _0x24ebcd=[];switch(_0x4423dd['id']){case _0x5964b4[_0xcf7e4c(0x29c)]:{_0x24ebcd=_0x58f4e0(_0x4423dd,_0x2230b0);break;}case _0x5964b4[_0xcf7e4c(0x1b5)]:{_0x24ebcd=_0x342aa1(_0x4423dd,_0x2230b0);break;}case _0x5964b4['InsertColCommandId']:{_0x24ebcd=_0x26cedd(_0x4423dd,_0x2230b0);break;}case _0x5964b4['InsertRangeMoveDownCommandId']:{_0x24ebcd=_0x5daba4(_0x4423dd,_0x2230b0);break;}case _0x5964b4['InsertRangeMoveRightCommandId']:{_0x24ebcd=_0x2ae5a6(_0x4423dd,_0x2230b0);break;}case _0x5964b4['InsertRowCommandId']:{_0x24ebcd=_0xb834fa(_0x4423dd,_0x2230b0);break;}case _0x5964b4['MoveRangeCommandId']:{_0x24ebcd=_0x23bf7f(_0x4423dd,_0x2230b0);break;}case _0x5964b4[_0xcf7e4c(0x24a)]:{_0x24ebcd=_0x35c498(_0x4423dd,_0x2230b0);break;}case _0x5964b4[_0xcf7e4c(0x2f0)]:{_0x24ebcd=_0x5e55dc(_0x4423dd,_0x2230b0);break;}}const _0x5964ff=_0x155afd(_0x24ebcd,_0x2230b0),_0x3aa259=this[_0xcf7e4c(0x236)]['get'](_0x3b49b6);if(_0x3aa259&&_0x5964ff){const _0x14f956={..._0x3aa259,'range':_0x5964ff};this[_0xcf7e4c(0x236)]['set'](_0x3b49b6,_0x14f956),_0xd80b02(()=>{const _0x2ab0ef=_0xcf7e4c,_0xddb6a0=this['_refRangeService']['registerRefRange'](_0x5964ff,_0x28511f=>(_0xddb6a0['dispose'](),_0x597be7(_0x28511f,_0x3b49b6,_0x1e4157,_0x5964ff)));_0x569b3a[_0x2ab0ef(0x308)](_0xddb6a0);});}return{'redos':[],'undos':[]};};this[_0x1ca33e(0x236)][_0x1ca33e(0x12e)]((_0x5bc5b3,_0xc5e86)=>{const _0x217d0e=_0x1ca33e,{range:_0x2d17e7,sheetID:_0x1c464f}=_0x5bc5b3,_0x509a09=this[_0x217d0e(0x16d)]['registerRefRange'](_0x2d17e7,_0x88849b=>(_0x509a09[_0x217d0e(0x232)](),_0x597be7(_0x88849b,_0xc5e86,_0x1c464f,_0x2d17e7)));_0x569b3a[_0x217d0e(0x308)](_0x509a09);});};this['disposeWithMe'](_0x1c7e0e(this[_0x3873c0(0x219)][_0x3873c0(0x276)](()=>{_0x15da9e();})));}[_0x2dd5e3(0x208)](){const _0x5ec760=_0x2dd5e3;var _0x57b529,_0x591205;if(this[_0x5ec760(0x30b)]=!0x0,((_0x57b529=this[_0x5ec760(0x1a2)][_0x5ec760(0x2ed)]())==null?void 0x0:_0x57b529[_0x5ec760(0x231)]())!==this[_0x5ec760(0x13e)])return;const _0xadca1f=(_0x591205=this[_0x5ec760(0x2aa)][_0x5ec760(0x148)](_0x5a89fc)[_0x5ec760(0x1ec)]())==null?void 0x0:_0x591205[0x0],_0x2b9076=this[_0x5ec760(0x1a2)]['getCurrentUnitForType'](_0x3c4001[_0x5ec760(0x2a3)])['getActiveSheet']();_0xadca1f&&_0x2b9076&&this[_0x5ec760(0x14a)](_0x2b9076[_0x5ec760(0x22a)](),_0xadca1f);}['_toggleOffline'](){const _0x4226c4=_0x2dd5e3;this[_0x4226c4(0x30b)]=!0x1;}};Me=mi([x(0x2,_0x5b7f95(_0x3325a5)),x(0x3,_0x5b7f95(ke)),x(0x4,_0x5b7f95(_0x7d61b1)),x(0x5,_0x497731),x(0x6,_0x780975),x(0x7,_0x5b7f95(_0x50eed7))],Me);var pi=Object[_0x2dd5e3(0x1c1)],Ci=(_0x4dbcb8,_0x322f73,_0x2ccd19,_0x4c3393)=>{const _0xff831e=_0x2dd5e3;for(var _0x5f3e65=_0x4c3393>0x1?void 0x0:_0x4c3393?pi(_0x322f73,_0x2ccd19):_0x322f73,_0x34f5aa=_0x4dbcb8[_0xff831e(0x278)]-0x1,_0x43f81c;_0x34f5aa>=0x0;_0x34f5aa--)(_0x43f81c=_0x4dbcb8[_0x34f5aa])&&(_0x5f3e65=_0x43f81c(_0x5f3e65)||_0x5f3e65);return _0x5f3e65;},Se=(_0x51a519,_0x2fb6eb)=>(_0x103783,_0x4a762d)=>_0x2fb6eb(_0x103783,_0x4a762d,_0x51a519);let H=class extends _0x2e3fba{constructor(_0x5b7a0c,_0x1a7bfa,_0x4d4015){const _0x211845=_0x2dd5e3;super(),_(this,'_entities',new Map()),_(this,_0x211845(0x284),new _0x27fe57()),(this[_0x211845(0x1a2)]=_0x5b7a0c,this['_injector']=_0x1a7bfa,this[_0x211845(0x163)]=_0x4d4015,this['_init']());}['dispose'](){const _0x5749cd=_0x2dd5e3;super['dispose'](),this[_0x5749cd(0x284)][_0x5749cd(0x18b)](),this[_0x5749cd(0x299)][_0x5749cd(0x12e)](_0x1fb07d=>_0x1fb07d['dispose']());}[_0x2dd5e3(0x212)](_0x3efbfb){const _0x20ecce=_0x2dd5e3;return this[_0x20ecce(0x299)][_0x20ecce(0x2be)](_0x3efbfb)?this[_0x20ecce(0x299)][_0x20ecce(0x148)](_0x3efbfb)[_0x20ecce(0x160)]:this[_0x20ecce(0x284)][_0x20ecce(0x227)](_0x9430fa(_0x411064=>_0x411064[_0x20ecce(0x13e)]===_0x3efbfb),_0xc1bcca(_0x5568f0=>_0x5568f0[_0x20ecce(0x160)]));}[_0x2dd5e3(0x224)](){const _0x4d03b4=_0x2dd5e3;this[_0x4d03b4(0x1a2)]['getTypeOfUnitAdded$'](_0x3c4001[_0x4d03b4(0x2a3)])['pipe'](_0x44686d(this[_0x4d03b4(0x156)]))[_0x4d03b4(0x276)](async _0x258124=>{const _0x1b7776=_0x4d03b4,_0x460a48=_0x258124[_0x1b7776(0x231)](),_0x137e4f=await this[_0x1b7776(0x1c3)](_0x460a48);this['_entityInit$']['next'](_0x137e4f),this[_0x1b7776(0x299)][_0x1b7776(0x18e)](_0x460a48,_0x137e4f);}),this['_univerInstanceService'][_0x4d03b4(0x152)](_0x3c4001[_0x4d03b4(0x2bd)])[_0x4d03b4(0x227)](_0x44686d(this['dispose$']))[_0x4d03b4(0x227)](_0x9430fa(_0x2cc071=>!_0x2cc071[_0x4d03b4(0x231)]()[_0x4d03b4(0x12a)]('__')))[_0x4d03b4(0x276)](async _0xb13125=>{const _0x24334a=_0x4d03b4,_0x2508dc=_0xb13125[_0x24334a(0x231)](),_0x1ba3cc=await this[_0x24334a(0x291)](_0x2508dc);this[_0x24334a(0x284)]['next'](_0x1ba3cc),this[_0x24334a(0x299)][_0x24334a(0x18e)](_0x2508dc,_0x1ba3cc);}),_0x562b46(this[_0x4d03b4(0x1a2)][_0x4d03b4(0x20f)](_0x3c4001[_0x4d03b4(0x2bd)]),this['_univerInstanceService'][_0x4d03b4(0x20f)](_0x3c4001[_0x4d03b4(0x2a3)]))[_0x4d03b4(0x227)](_0x44686d(this['dispose$']))['subscribe'](_0x1109c9=>{const _0x4be4e9=_0x4d03b4,_0x35f950=_0x1109c9[_0x4be4e9(0x231)](),_0x36a143=this[_0x4be4e9(0x299)][_0x4be4e9(0x148)](_0x35f950);_0x36a143&&(_0x36a143['dispose'](),this['_entities'][_0x4be4e9(0x2e3)](_0x35f950));});}async[_0x2dd5e3(0x1c3)](_0x611dab){const _0x1afa9e=_0x2dd5e3,_0x222125=await this[_0x1afa9e(0x163)][_0x1afa9e(0x249)](_0x611dab),_0x1ee3ce=this['_injector'][_0x1afa9e(0x16c)](Me,_0x611dab,_0x222125);return _0x1ee3ce['init'](),_0x1ee3ce;}async[_0x2dd5e3(0x291)](_0x369d8e){const _0x434ee5=_0x2dd5e3,_0x4406ba=await this[_0x434ee5(0x163)][_0x434ee5(0x249)](_0x369d8e),_0x251053=this[_0x434ee5(0x2aa)][_0x434ee5(0x16c)](Ue,_0x369d8e,_0x4406ba);return _0x251053[_0x434ee5(0x159)](),_0x251053;}};H=Ci([Se(0x0,_0x497731),Se(0x1,_0x5b7f95(_0x3325a5)),Se(0x2,_0x5b7f95(_0x53461e))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x53134a,_0xbe062d){const _0x2e9cee=_0x2dd5e3;let {radius:_0x273119,width:_0x17da29,height:_0x428eac}=_0xbe062d;_0x273119=_0x273119!=null?_0x273119:0x0,_0x17da29=_0x17da29!=null?_0x17da29:0x1e,_0x428eac=_0x428eac!=null?_0x428eac:0x1e;let _0x2d0b42=0x0,_0x7dbe36=0x0,_0x42ea69=0x0;_0x2d0b42=_0x7dbe36=_0x42ea69=Math[_0x2e9cee(0x1eb)](_0x273119,_0x17da29/0x2,_0x428eac/0x2),_0x53134a['beginPath'](),_0x53134a[_0x2e9cee(0x1df)](_0x2d0b42,0x0),_0x53134a[_0x2e9cee(0x136)](_0x17da29-_0x7dbe36,0x0),_0x53134a[_0x2e9cee(0x202)](_0x17da29-_0x7dbe36,_0x7dbe36,_0x7dbe36,Math['PI']*0x3/0x2,0x0,!0x1),_0x53134a[_0x2e9cee(0x136)](_0x17da29,_0x428eac-_0x42ea69),_0x53134a[_0x2e9cee(0x202)](_0x17da29-_0x42ea69,_0x428eac-_0x42ea69,_0x42ea69,0x0,Math['PI']/0x2,!0x1),_0x53134a[_0x2e9cee(0x136)](0x0,_0x428eac),_0x53134a['lineTo'](0x0,_0x2d0b42),_0x53134a['arc'](_0x2d0b42,_0x2d0b42,_0x2d0b42,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x53134a[_0x2e9cee(0x128)](),_0xbe062d[_0x2e9cee(0x117)]&&(_0x53134a[_0x2e9cee(0x1e5)](),_0x53134a[_0x2e9cee(0x248)]=_0xbe062d[_0x2e9cee(0x117)],_0xbe062d['fillRule']===_0x2e9cee(0x2f8)?_0x53134a[_0x2e9cee(0x117)](_0x2e9cee(0x2f8)):_0x53134a[_0x2e9cee(0x117)](),_0x53134a[_0x2e9cee(0x1e6)]());}class he extends _0x18c0b6{constructor(_0x59c272,_0x1017ea){const _0x41ded1=_0x2dd5e3;super(_0x59c272,_0x1017ea),_(this,_0x41ded1(0x16e)),_(this,_0x41ded1(0x2ee)),(this[_0x41ded1(0x16e)]=_0x1017ea==null?void 0x0:_0x1017ea[_0x41ded1(0x16e)],this[_0x41ded1(0x2ee)]=_0x1017ea==null?void 0x0:_0x1017ea[_0x41ded1(0x2ee)]);}static[_0x2dd5e3(0x2e8)](_0x47dd6e,_0x3fef7f){const _0xdd31de=_0x2dd5e3,{text:_0x19cf3e,color:_0x155ff3}=_0x3fef7f;_0x47dd6e[_0xdd31de(0x1e5)](),_0x47dd6e[_0xdd31de(0x1a6)]=_0xdd31de(0x206);const _0x25a5c3=_0x47dd6e[_0xdd31de(0x251)](_0x19cf3e)[_0xdd31de(0x177)],_0x3a365=Math[_0xdd31de(0x1eb)](_0x25a5c3+0x2*me,Qe);Oi(_0x47dd6e,{'height':ee,'radius':0x4,'width':_0x3a365,'fill':_0x155ff3}),_0x47dd6e[_0xdd31de(0x248)]=_0xdd31de(0x30f);const _0xb308bc=me,_0x591f9c=ee-Ei,_0x137e5b=Qe-0x2*me;if(_0x25a5c3>_0x137e5b){let _0x142b20='',_0x3c7f16=0x0;for(const _0x223875 of _0x19cf3e){const _0x156fb2=_0x47dd6e[_0xdd31de(0x251)](_0x223875)[_0xdd31de(0x177)];if(_0x3c7f16+_0x156fb2<=_0x137e5b-_0x47dd6e[_0xdd31de(0x251)](_0xdd31de(0x292))[_0xdd31de(0x177)])_0x142b20+=_0x223875,_0x3c7f16+=_0x156fb2;else{_0x142b20+=_0xdd31de(0x292);break;}}_0x47dd6e['fillText'](_0x142b20,_0xb308bc,_0x591f9c);}else _0x47dd6e['fillText'](_0x19cf3e,_0xb308bc,_0x591f9c);_0x47dd6e[_0xdd31de(0x1e6)]();}['_draw'](_0x2b2f97){const _0x18663d=_0x2dd5e3;he[_0x18663d(0x2e8)](_0x2b2f97,this);}}const Ie=_0x2dd5e3(0x28e),bi=_0x2dd5e3(0x2f3),Ti=_0x2dd5e3(0x1d8),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x2dd5e3(0x1cc);class qe{constructor(_0x4087d4,_0x383684,_0x87c408,_0x1ecd5f){const _0x5768ee=_0x2dd5e3;_(this,_0x5768ee(0x28b),[]),_(this,_0x5768ee(0x30e),null),_(this,_0x5768ee(0x1f3),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x5768ee(0x264)]=_0x4087d4,this['_scene']=_0x383684,this['_docSkeleton']=_0x87c408,this[_0x5768ee(0x1b9)]=_0x1ecd5f,this['_render']());}set[_0x2dd5e3(0x29a)](_0x2f648b){const _0xe2e45=_0x2dd5e3;_0x2f648b?(this['_anchorDot']&&this[_0xe2e45(0x2d5)][_0xe2e45(0x149)](),this['_textBubble']&&this[_0xe2e45(0x1f3)][_0xe2e45(0x113)]()):(this['_anchorDot']&&this[_0xe2e45(0x2d5)][_0xe2e45(0x113)](),this['_textBubble']&&this[_0xe2e45(0x1f3)][_0xe2e45(0x149)]());}['dispose'](){const _0x489845=_0x2dd5e3;for(const _0x1709b0 of this[_0x489845(0x28b)])_0x1709b0[_0x489845(0x232)]();this[_0x489845(0x1f3)]&&this[_0x489845(0x1f3)][_0x489845(0x232)](),this[_0x489845(0x2d5)]&&this[_0x489845(0x2d5)]['dispose'](),this[_0x489845(0x30e)]&&this[_0x489845(0x30e)][_0x489845(0x232)](),this[_0x489845(0x254)]&&this['_eventUnsubscribe']();}[_0x2dd5e3(0x1b6)](){const _0x1b67bc=_0x2dd5e3;var _0x4ca8d2;const {_docSkeleton:_0x1a539f,_document:_0x373a29}=this,{color:_0x204ecb,name:_0x9a1117,ranges:_0x5a39e5}=this[_0x1b67bc(0x264)],_0x4d66c4=_0x373a29[_0x1b67bc(0x176)](),{docsLeft:_0x1b4daa,docsTop:_0x1c12a8}=_0x4d66c4,_0x39147f=new _0x48c1ae(_0x4d66c4,_0x1a539f);for(const {startOffset:_0x3b1cc2,endOffset:_0x179729,rangeType:_0x46d304,segmentId:_0x2cf285,segmentPage:_0x5ae6fe,collapsed:_0x1a0c77,isActive:_0x482b92}of _0x5a39e5){const _0x421e27=_0x1a539f[_0x1b67bc(0x214)](_0x3b1cc2,!0x0,_0x2cf285,_0x5ae6fe);let _0x341564=_0x1a539f[_0x1b67bc(0x214)](_0x179729,!0x0,_0x2cf285,_0x5ae6fe);if(_0x341564==null&&(_0x341564=_0x1a539f[_0x1b67bc(0x214)](_0x179729-0x1,!0x1,_0x2cf285,_0x5ae6fe)),_0x482b92){const {contentBoxPointGroup:_0x2416ee}=_0x39147f[_0x1b67bc(0x201)](_0x341564,_0x341564);if(_0x2416ee[_0x1b67bc(0x278)]===0x0)continue;this[_0x1b67bc(0x21e)](_0x204ecb,_0x2416ee,_0x1b4daa,_0x1c12a8,_0x9a1117),this['_eventUnsubscribe']=this[_0x1b67bc(0x141)]();}if(_0x421e27&&_0x341564){if(_0x46d304===_0x168410[_0x1b67bc(0x258)]){const _0x1cb3c9=new _0x2f33f1(_0x4d66c4,_0x1a539f),{pointGroup:_0x242914}=(_0x4ca8d2=_0x1cb3c9[_0x1b67bc(0x201)](_0x421e27,_0x341564))!=null?_0x4ca8d2:{};if(_0x242914==null||_0x242914['length']===0x0)continue;this['_drawRectRange'](_0x204ecb,_0x242914,_0x1b4daa,_0x1c12a8);}else{if(!_0x1a0c77){const {borderBoxPointGroup:_0x3819ec}=_0x39147f[_0x1b67bc(0x201)](_0x421e27,_0x341564);if(_0x3819ec['length']===0x0)continue;this[_0x1b67bc(0x2a2)](_0x204ecb,_0x3819ec,_0x1b4daa,_0x1c12a8);}}}}}[_0x2dd5e3(0x21e)](_0x5c865b,_0x16b2cd,_0x1b42a0,_0x141308,_0x3c1704){const _0x377145=_0x2dd5e3,_0x2011f6=this[_0x377145(0x272)](_0x16b2cd),{left:_0x57daf1,top:_0x4310db,height:_0xd933e0}=_0x2011f6,_0x57cf79=this['_getScale'](),_0x44dcb8=Di/_0x57cf79,_0x21bbc4=new _0x3bd140(Ie+_0x2a5672[_0x377145(0x1b8)](X),{'left':_0x57daf1+_0x1b42a0-_0x44dcb8,'top':_0x4310db+_0x141308,'height':_0xd933e0,'width':Ri,'fill':_0x5c865b||_0x348f52(_0x2794f8[_0x377145(0x2f1)],0x0),'strokeWidth':_0x44dcb8,'stroke':Ni,'evented':!0x0});this[_0x377145(0x30e)]=_0x21bbc4,this[_0x377145(0x1f6)][_0x377145(0x301)](_0x21bbc4,_0x2d1db0);const _0x373c3a=new _0x3bd140(Ie+_0x2a5672[_0x377145(0x1b8)](X),{'left':_0x57daf1+_0x1b42a0-_0x44dcb8,'top':_0x4310db+_0x141308-ge/0x2,'height':ge,'width':ge,'fill':_0x5c865b||_0x348f52(_0x2794f8[_0x377145(0x2f1)],0x0),'strokeWidth':0x0,'stroke':_0x5c865b||_0x348f52(_0x2794f8[_0x377145(0x2f1)],0x0),'evented':!0x1});this[_0x377145(0x2d5)]=_0x373c3a,this['_scene']['addObject'](_0x373c3a,_0x2d1db0);const _0x570592=new he(Ie+_0x2a5672[_0x377145(0x1b8)](X),{'left':_0x57daf1+_0x1b42a0-_0x44dcb8,'top':_0x4310db+_0x141308-ee,'text':_0x3c1704,'color':_0x5c865b});this['_textBubble']=_0x570592,this[_0x377145(0x1f6)][_0x377145(0x301)](_0x570592,_0x2d1db0),this['_hover']=!0x1;}[_0x2dd5e3(0x141)](){const _0xc11147=_0x2dd5e3,_0x2fda98=this[_0xc11147(0x30e)][_0xc11147(0x1c9)][_0xc11147(0x305)](()=>{const _0x5c143b=_0xc11147;this[_0x5c143b(0x29a)]=!0x0;}),_0x27d97b=this[_0xc11147(0x30e)][_0xc11147(0x2a5)]['subscribeEvent'](()=>{const _0x1ec394=_0xc11147;this[_0x1ec394(0x140)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5ba19b=_0x1ec394;this[_0x5ba19b(0x29a)]=!0x1;},0x7d0);});return()=>{const _0x2a052b=_0xc11147;_0x2fda98[_0x2a052b(0x2d4)](),_0x27d97b[_0x2a052b(0x2d4)]();};}['_drawTextRange'](_0x24bd5d,_0x558ecf,_0x20541d,_0x2cbfed){const _0x16a80e=_0x2dd5e3,_0x3403a9=new _0x1224e9(_0x24bd5d)[_0x16a80e(0x252)](0.2)[_0x16a80e(0x174)](),_0x15edeb=new _0xe60e77(bi+_0x2a5672[_0x16a80e(0x1b8)](X),{'pointsGroup':_0x558ecf,'fill':_0x3403a9||_0x348f52(_0x2794f8[_0x16a80e(0x2f1)],0.2),'left':_0x20541d,'top':_0x2cbfed,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x16a80e(0x28b)][_0x16a80e(0x247)](_0x15edeb),this['_scene'][_0x16a80e(0x301)](_0x15edeb,_0x2d1db0);}[_0x2dd5e3(0x1fa)](_0x1e2ac2,_0x5925b0,_0x40a82b,_0x3f8094){const _0x29a844=_0x2dd5e3,_0x2925fb=new _0x1224e9(_0x1e2ac2)[_0x29a844(0x252)](0.2)[_0x29a844(0x174)](),_0x5b94cb=new _0xe60e77(Ti+_0x2a5672[_0x29a844(0x1b8)](X),{'pointsGroup':_0x5925b0,'fill':_0x2925fb||_0x348f52(_0x2794f8[_0x29a844(0x2f1)],0.2),'left':_0x40a82b,'top':_0x3f8094,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x29a844(0x28b)][_0x29a844(0x247)](_0x5b94cb),this[_0x29a844(0x1f6)][_0x29a844(0x301)](_0x5b94cb,_0x2d1db0);}[_0x2dd5e3(0x272)](_0x3a1f54){const _0x2cb829=_0x3a1f54[0x0],_0x302dd2=_0x2cb829[0x0],_0x1ae047=_0x2cb829[0x2],{x:_0x36112b,y:_0xb73f9a}=_0x302dd2,{x:_0x5d6fda,y:_0xda5616}=_0x1ae047;return{'left':_0x36112b,'top':_0xb73f9a,'width':_0x5d6fda-_0x36112b,'height':_0xda5616-_0xb73f9a};}[_0x2dd5e3(0x28a)](){const _0x18541f=_0x2dd5e3,{scaleX:_0x22c309,scaleY:_0x58d1e6}=this[_0x18541f(0x1f6)][_0x18541f(0x173)]();return Math[_0x18541f(0x261)](_0x22c309,_0x58d1e6);}}var Ui=Object[_0x2dd5e3(0x1c1)],Mi=(_0x1decfa,_0x236f25,_0x10b83a,_0x2bd940)=>{for(var _0x5b7f4e=_0x2bd940>0x1?void 0x0:_0x2bd940?Ui(_0x236f25,_0x10b83a):_0x236f25,_0x1342b1=_0x1decfa['length']-0x1,_0x3c9368;_0x1342b1>=0x0;_0x1342b1--)(_0x3c9368=_0x1decfa[_0x1342b1])&&(_0x5b7f4e=_0x3c9368(_0x5b7f4e)||_0x5b7f4e);return _0x5b7f4e;},Z=(_0x3d470c,_0xbe5702)=>(_0x1b192e,_0xe4c1bb)=>_0xbe5702(_0x1b192e,_0xe4c1bb,_0x3d470c);let Le=class extends _0x2e3fba{constructor(_0x2e7806,_0x4f6f4f,_0x52ae98,_0x13b8ff,_0x4c124b){const _0x162fcd=_0x2dd5e3;super(),_(this,'_cursorShapes',[]),_(this,_0x162fcd(0x180),[]),(this[_0x162fcd(0x15f)]=_0x2e7806,this[_0x162fcd(0x17d)]=_0x4f6f4f,this[_0x162fcd(0x193)]=_0x52ae98,this['_commandService']=_0x13b8ff,this[_0x162fcd(0x30a)]=_0x4c124b,this[_0x162fcd(0x224)]());}[_0x2dd5e3(0x224)](){const _0xfe8db9=_0x2dd5e3,_0x569d54=this[_0xfe8db9(0x15f)]['unitId'],_0x5a46e6=this[_0xfe8db9(0x17d)];this[_0xfe8db9(0x21a)](_0x284913([this['_collabCursorController']['getCollabCursors$'](_0x569d54),this[_0xfe8db9(0x30a)][_0xfe8db9(0x200)]])[_0xfe8db9(0x227)](_0x54ffac(([_0x426711,_0x51d016])=>({'skeleton':_0x5a46e6[_0xfe8db9(0x154)](),'cursors':[..._0x426711[_0xfe8db9(0x1a3)]()][_0xfe8db9(0x246)](_0x1fd71b=>({..._0x1fd71b,'color':this[_0xfe8db9(0x30a)][_0xfe8db9(0x1d7)](_0x1fd71b['color'])}))})))[_0xfe8db9(0x276)](_0x49c791=>{const _0x21b701=_0xfe8db9;if(this[_0x21b701(0x199)](),_0x49c791){const {skeleton:_0xb9bef,cursors:_0x3b4ccf}=_0x49c791;this[_0x21b701(0x2ba)](_0xb9bef,_0x3b4ccf);}})),this['_initResize'](),this[_0xfe8db9(0x186)]();}[_0x2dd5e3(0x2ba)](_0x21c368,_0x3b493a){const _0x32ee8b=_0x2dd5e3,{scene:_0x392c11,mainComponent:_0x20cd27}=this[_0x32ee8b(0x15f)],_0x95f2d5=_0x3b493a[_0x32ee8b(0x14e)](_0x58ac37=>new qe(_0x58ac37,_0x392c11,_0x21c368,_0x20cd27));this['_cursorShapes']=_0x95f2d5,this['_cursors']=_0x3b493a;}['_refreshCollabCursors'](){const _0x25ab41=_0x2dd5e3;this['_removeCollabCursors']();const {scene:_0x5e3606,mainComponent:_0x51d9a7}=this[_0x25ab41(0x15f)],_0x3d021c=this[_0x25ab41(0x17d)]['getSkeleton'](),_0xf70947=this[_0x25ab41(0x180)]['map'](_0x2da09c=>new qe(_0x2da09c,_0x5e3606,_0x3d021c,_0x51d9a7));this[_0x25ab41(0x2ab)]=_0xf70947;}[_0x2dd5e3(0x199)](){const _0x121e59=_0x2dd5e3;this[_0x121e59(0x2ab)][_0x121e59(0x12e)](_0x400f8b=>_0x400f8b[_0x121e59(0x232)]()),this[_0x121e59(0x2ab)]=[];}[_0x2dd5e3(0x186)](){const _0x486913=_0x2dd5e3,_0x13ce96=[_0x4b7323['id']];this[_0x486913(0x21a)](this[_0x486913(0x122)][_0x486913(0x268)](_0x2033a4=>{const _0x1e1791=_0x486913;_0x13ce96[_0x1e1791(0x14b)](_0x2033a4['id'])&&_0x2033a4[_0x1e1791(0x1b7)][_0x1e1791(0x185)]===this[_0x1e1791(0x15f)][_0x1e1791(0x185)]&&this[_0x1e1791(0x187)]();}));}[_0x2dd5e3(0x17c)](){const _0x4035fc=_0x2dd5e3;this['disposeWithMe'](_0x469c16(this[_0x4035fc(0x15f)]['engine'][_0x4035fc(0x222)])[_0x4035fc(0x227)](_0x13e38c(_0xdc058f=>_0xdc058f['type']===_0x5019cf[_0x4035fc(0x2e1)]),_0x4f6864(0x10))[_0x4035fc(0x276)](()=>{const _0x3082dd=_0x4035fc;this[_0x3082dd(0x187)]();}));}};Le=Mi([Z(0x1,_0x5b7f95(_0x48bc12)),Z(0x2,_0x5b7f95(H)),Z(0x3,_0x780975),Z(0x4,_0x5b7f95(_0x9fb8d6))],Le);const Li=0x1,Pi=1.5;class wi extends _0x18c0b6{constructor(_0x46084f,_0x38e244){const _0x34cb64=_0x2dd5e3;super(_0x46084f,_0x38e244),_(this,_0x34cb64(0x1d6)),_(this,_0x34cb64(0x2df),!0x1),_(this,_0x34cb64(0x24c)),_(this,_0x34cb64(0x2b9),''),_(this,_0x34cb64(0x2d0),_0x34cb64(0x213)),_(this,_0x34cb64(0x2b0)),(_0x38e244&&this[_0x34cb64(0x226)](_0x38e244),this[_0x34cb64(0x1c9)][_0x34cb64(0x305)](()=>this[_0x34cb64(0x226)]({'hovered':!0x0})),this[_0x34cb64(0x2a5)]['subscribeEvent'](()=>this[_0x34cb64(0x226)]({'hovered':!0x1})));}['setShapeProps'](_0x2bd50b){const _0x58ed7a=_0x2dd5e3;var _0x11c96f,_0x5a094f,_0x47e575,_0x3e9ab8,_0x1b462d,_0x28e481;this[_0x58ed7a(0x1d6)]=(_0x11c96f=_0x2bd50b['color'])!=null?_0x11c96f:this['_color'],this[_0x58ed7a(0x2df)]=(_0x5a094f=_0x2bd50b[_0x58ed7a(0x190)])!=null?_0x5a094f:this[_0x58ed7a(0x2df)],this[_0x58ed7a(0x24c)]=(_0x47e575=_0x2bd50b[_0x58ed7a(0x23f)])!=null?_0x47e575:this[_0x58ed7a(0x24c)],this[_0x58ed7a(0x2b9)]=(_0x3e9ab8=_0x2bd50b['name'])!=null?_0x3e9ab8:this[_0x58ed7a(0x2b9)],this[_0x58ed7a(0x2d0)]=(_0x1b462d=_0x2bd50b['labelPosition'])!=null?_0x1b462d:this[_0x58ed7a(0x2d0)],this[_0x58ed7a(0x2b0)]=(_0x28e481=_0x2bd50b[_0x58ed7a(0x1e2)])!=null?_0x28e481:this['_backgroundColor'],this[_0x58ed7a(0x1c8)]({'width':_0x2bd50b[_0x58ed7a(0x177)],'height':_0x2bd50b[_0x58ed7a(0x178)]});}[_0x2dd5e3(0x2af)](_0x179f19){const _0x1ff491=_0x2dd5e3,{row:_0x369e32,column:_0x33c582}=_0x179f19;if(_0x369e32>=this[_0x1ff491(0x24c)][_0x1ff491(0x1c2)]&&_0x369e32<=this[_0x1ff491(0x24c)][_0x1ff491(0x1c6)]&&_0x33c582>=this[_0x1ff491(0x24c)][_0x1ff491(0x16b)]&&_0x33c582<=this[_0x1ff491(0x24c)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x1ff491(0x226)]({'hovered':!0x1});}['triggerDblclick'](_0x146d14){return!0x1;}['_draw'](_0x448396){const _0x2727c9=_0x2dd5e3;_0x3bd140[_0x2727c9(0x2e8)](_0x448396,{'width':this[_0x2727c9(0x177)],'height':this[_0x2727c9(0x178)],'strokeWidth':Pi,'stroke':this[_0x2727c9(0x1d6)],'evented':!0x1,'fill':this[_0x2727c9(0x2b0)]}),this[_0x2727c9(0x2df)]&&(_0x448396['save'](),_0x448396[_0x2727c9(0x15e)](0x1,0x0,0x0,0x1,this[_0x2727c9(0x177)],this[_0x2727c9(0x2d0)]===_0x2727c9(0x302)?0x0:-0x14),he[_0x2727c9(0x2e8)](_0x448396,{'text':this[_0x2727c9(0x2b9)],'color':this[_0x2727c9(0x1d6)]}),_0x448396[_0x2727c9(0x1e6)]());}}var Ai=Object['getOwnPropertyDescriptor'],yi=(_0x4920a6,_0xe4b086,_0x5bc8c0,_0x2909b7)=>{const _0x4b39f4=_0x2dd5e3;for(var _0x21acf7=_0x2909b7>0x1?void 0x0:_0x2909b7?Ai(_0xe4b086,_0x5bc8c0):_0xe4b086,_0x12cea7=_0x4920a6[_0x4b39f4(0x278)]-0x1,_0x555c59;_0x12cea7>=0x0;_0x12cea7--)(_0x555c59=_0x4920a6[_0x12cea7])&&(_0x21acf7=_0x555c59(_0x21acf7)||_0x21acf7);return _0x21acf7;},ve=(_0x5bf2fd,_0x79e99a)=>(_0x127b97,_0x161618)=>_0x79e99a(_0x127b97,_0x161618,_0x5bf2fd);const $i=0x1389;let Pe=class extends _0x2e3fba{constructor(_0x48a104,_0x31c480,_0x224529,_0x25935f){const _0x101cff=_0x2dd5e3;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x48a104,this[_0x101cff(0x14c)]=_0x31c480,this[_0x101cff(0x193)]=_0x224529,this[_0x101cff(0x30a)]=_0x25935f,this[_0x101cff(0x224)]());}[_0x2dd5e3(0x224)](){const _0x5648bd=_0x2dd5e3;this[_0x5648bd(0x14c)][_0x5648bd(0x30c)][_0x5648bd(0x227)](_0x4c092c(this[_0x5648bd(0x156)]),_0x5d9aca(_0x4c9c9=>{const _0x4d7b95=_0x5648bd;if(_0x4c9c9){const _0x1181ed=_0x4c9c9[_0x4d7b95(0x27c)];return _0x284913(this[_0x4d7b95(0x193)][_0x4d7b95(0x212)](this[_0x4d7b95(0x15f)][_0x4d7b95(0x185)]),this[_0x4d7b95(0x30a)][_0x4d7b95(0x200)])[_0x4d7b95(0x227)](_0x54ffac(([_0x37a8c0,_0x9143ca])=>{const _0x11fefe=new Map();return _0x37a8c0['forEach']((_0x13e89a,_0x312b28)=>{const _0x30ecaa=_0xafbe;if(_0x13e89a[_0x30ecaa(0x172)]===_0x1181ed){const _0x43827b={..._0x13e89a};_0x43827b['color']=this[_0x30ecaa(0x30a)][_0x30ecaa(0x1d7)](_0x13e89a['color']),_0x11fefe[_0x30ecaa(0x18e)](_0x312b28,_0x43827b);}}),{'skeleton':_0x4c9c9,'cursors':_0x11fefe};}));}return _0x2a42dd({'skeleton':null,'cursors':new Map()});}))[_0x5648bd(0x276)](({skeleton:_0x47508b,cursors:_0x4dd57e})=>{const _0x1f3ca1=_0x5648bd;this[_0x1f3ca1(0x199)](),_0x47508b&&this[_0x1f3ca1(0x2ba)](_0x47508b,_0x4dd57e);}),this['_sheetSkeletonManagerService'][_0x5648bd(0x30c)][_0x5648bd(0x276)](_0x87616c=>{const _0x3b9313=_0x5648bd;if(_0x87616c==null)return;const {skeleton:_0x5478b5}=_0x87616c,{scene:_0x38099b}=this[_0x3b9313(0x15f)];_0x38099b[_0x3b9313(0x2d7)]['subscribeEvent'](_0x1ee189(_0x468552=>{const _0x18982d=_0x3b9313;var _0x4dfa92,_0x16b023;const {offsetX:_0x92a268,offsetY:_0x204639}=_0x468552,{x:_0x3d9537,y:_0x103351}=_0x38099b['getRelativeToViewportCoord'](_0x11203f[_0x18982d(0x250)]([_0x92a268,_0x204639])),{scaleX:_0xd933f2,scaleY:_0x4aa579}=_0x38099b['getAncestorScale'](),_0xd30092=_0x38099b[_0x18982d(0x274)](_0x2f5c3f[_0x18982d(0x1fb)]),_0x3f8b8b=_0x38099b[_0x18982d(0x279)](_0x11203f[_0x18982d(0x250)]([_0x3d9537,_0x103351]),_0xd30092),_0x4fe2da=_0x5478b5[_0x18982d(0x22c)](_0x92a268,_0x204639,_0xd933f2,_0x4aa579,_0x3f8b8b);((_0x4dfa92=this[_0x18982d(0x131)])==null?void 0x0:_0x4dfa92[_0x18982d(0x2d3)])===_0x4fe2da[_0x18982d(0x2d3)]&&((_0x16b023=this[_0x18982d(0x131)])==null?void 0x0:_0x16b023[_0x18982d(0x121)])===_0x4fe2da[_0x18982d(0x121)]||this[_0x18982d(0x180)][_0x18982d(0x12e)](_0x179c7f=>{_0x179c7f['onMouseMove'](_0x4fe2da);});},0x64));});}[_0x2dd5e3(0x2ba)](_0x5a72ec,_0x11d082){const _0x544d5e=_0x2dd5e3;var _0x3be9de;const _0x4516d8=(_0x3be9de=this[_0x544d5e(0x14c)][_0x544d5e(0x2c7)]())==null?void 0x0:_0x3be9de[_0x544d5e(0x1dd)];if(!_0x4516d8)return;const _0x3cd8bc=this[_0x544d5e(0x2a7)]();if(!_0x3cd8bc)return;this[_0x544d5e(0x180)]['forEach'](_0x3b511c=>{const _0x3e0efe=_0x544d5e;_0x3b511c[_0x3e0efe(0x2bc)]();});const {scene:_0x4f45fb}=_0x3cd8bc,_0x598078=xi(Array[_0x544d5e(0x158)](_0x11d082[_0x544d5e(0x1a3)]()))[_0x544d5e(0x14e)](_0x9deed=>{const _0x123e04=_0x544d5e,{color:_0x4c5188,range:_0x3a9c68,name:_0xf3b21f,selection:_0x4b927a,sheetID:_0x60e8f9}=_0x9deed,{startColumn:_0x41176c,startRow:_0x274df8,endColumn:_0x508559,endRow:_0x3959ea}=_0x3a9c68,_0x1c1bbb=_0x207a10(_0x274df8,_0x41176c,_0x4f45fb,_0x4516d8),_0x8e6da7=_0x207a10(_0x3959ea,_0x508559,_0x4f45fb,_0x4516d8),{columnHeaderHeightAndMarginTop:_0x41a795}=_0x4516d8,{startX:_0x4f2e6f,startY:_0xa2cc84}=_0x1c1bbb,{endX:_0x496db8,endY:_0x7a06af}=_0x8e6da7,_0x5117c4=_0x496db8-_0x4f2e6f,_0x58a02a=_0x7a06af-_0xa2cc84,_0x492d1d={'labelPosition':_0xa2cc84-_0x41a795>=ee?'top':_0x123e04(0x302),'sheetID':_0x60e8f9,'range':_0x3a9c68,'color':_0x4c5188,'name':_0xf3b21f,'selection':_0x4b927a,'left':_0x4f2e6f,'top':_0xa2cc84,'width':_0x5117c4,'height':_0x58a02a,'evented':!0x1,'zIndex':$i};return new wi(_0xf3b21f,_0x492d1d);});_0x4f45fb[_0x544d5e(0x1d9)](_0x598078,Li),this['_cursors']=new Set(_0x598078);}[_0x2dd5e3(0x199)](){const _0x1d6c5b=_0x2dd5e3;var _0x2ea6d4;(_0x2ea6d4=this[_0x1d6c5b(0x180)])==null||_0x2ea6d4[_0x1d6c5b(0x12e)](_0x15240e=>_0x15240e[_0x1d6c5b(0x232)]());}['_getSheetObject'](){const _0x5d61ee=_0x2dd5e3;return _0x57b7d5(this['_context']['unit'],this[_0x5d61ee(0x15f)]);}};Pe=yi([ve(0x1,_0x5b7f95(_0x586ff9)),ve(0x2,_0x5b7f95(H)),ve(0x3,_0x5b7f95(_0x9fb8d6))],Pe);function _0xafbe(_0x3a6965,_0x20e899){const _0x44509b=_0x4450();return _0xafbe=function(_0xafbed2,_0x5dcc80){_0xafbed2=_0xafbed2-0x113;let _0x30dbd5=_0x44509b[_0xafbed2];return _0x30dbd5;},_0xafbe(_0x3a6965,_0x20e899);}function xi(_0x3cf912){const _0x3fd47e=_0x2dd5e3,_0x5a9f73=new Map();return _0x3cf912[_0x3fd47e(0x12e)](_0x16185f=>{const _0x244740=_0x3fd47e;if(_0x5a9f73[_0x244740(0x2be)](_0x16185f[_0x244740(0x25c)])){const _0x349316=_0x5a9f73[_0x244740(0x148)](_0x16185f['selection']);_0x349316[_0x244740(0x12d)]+=',\x20'+_0x16185f['name'];}else _0x5a9f73[_0x244740(0x18e)](_0x16185f[_0x244740(0x25c)],_0x16185f);}),Array['from'](_0x5a9f73[_0x3fd47e(0x1a3)]());}var v=function(){const _0x24b295=_0x2dd5e3;return v=Object[_0x24b295(0x2f5)]||function(_0x48c9a8){const _0x496fde=_0x24b295;for(var _0xd7562a,_0x19fb4c=0x1,_0x23a2e1=arguments[_0x496fde(0x278)];_0x19fb4c<_0x23a2e1;_0x19fb4c++){_0xd7562a=arguments[_0x19fb4c];for(var _0x55421c in _0xd7562a)Object[_0x496fde(0x2ea)]['hasOwnProperty']['call'](_0xd7562a,_0x55421c)&&(_0x48c9a8[_0x55421c]=_0xd7562a[_0x55421c]);}return _0x48c9a8;},v['apply'](this,arguments);},Bi=function(_0x4bb84a,_0x3bb223){const _0x115f7a=_0x2dd5e3;var _0x1000a0={};for(var _0x187839 in _0x4bb84a)Object[_0x115f7a(0x2ea)][_0x115f7a(0x170)][_0x115f7a(0x114)](_0x4bb84a,_0x187839)&&_0x3bb223['indexOf'](_0x187839)<0x0&&(_0x1000a0[_0x187839]=_0x4bb84a[_0x187839]);if(_0x4bb84a!=null&&typeof Object[_0x115f7a(0x275)]=='function'){for(var _0x4cac4d=0x0,_0x187839=Object['getOwnPropertySymbols'](_0x4bb84a);_0x4cac4d<_0x187839[_0x115f7a(0x278)];_0x4cac4d++)_0x3bb223[_0x115f7a(0x27a)](_0x187839[_0x4cac4d])<0x0&&Object[_0x115f7a(0x2ea)][_0x115f7a(0x166)][_0x115f7a(0x114)](_0x4bb84a,_0x187839[_0x4cac4d])&&(_0x1000a0[_0x187839[_0x4cac4d]]=_0x4bb84a[_0x187839[_0x4cac4d]]);}return _0x1000a0;},Fe=_0x533673(function(_0x3556e8,_0x1fdd97){const _0x4a9936=_0x2dd5e3;var _0x218897=_0x3556e8['icon'],_0x230b5f=_0x3556e8['id'],_0x4b5213=_0x3556e8[_0x4a9936(0x2b2)],_0x382bdb=_0x3556e8['extend'],_0xf96e52=Bi(_0x3556e8,['icon','id','className','extend']),_0x203359=_0x4a9936(0x1d3)[_0x4a9936(0x2d9)](_0x230b5f,'\x20')[_0x4a9936(0x2d9)](_0x4b5213||'')[_0x4a9936(0x138)](),_0x41a7ff=_0x4a60ab('_'[_0x4a9936(0x2d9)](Fi()));return Rt(_0x218897,''[_0x4a9936(0x2d9)](_0x230b5f),{'defIds':_0x218897[_0x4a9936(0x300)],'idSuffix':_0x41a7ff[_0x4a9936(0x2a6)]},v({'ref':_0x1fdd97,'className':_0x203359},_0xf96e52),_0x382bdb);});function Rt(_0x36aa9f,_0x450b04,_0x35f6cc,_0x270440,_0x11ce50){const _0x5cdc43=_0x2dd5e3;return _0x11ea07(_0x36aa9f['tag'],v(v({'key':_0x450b04},ki(_0x36aa9f,_0x35f6cc,_0x11ce50)),_0x270440),(Hi(_0x36aa9f,_0x35f6cc)['children']||[])[_0x5cdc43(0x14e)](function(_0x338296,_0x389cc0){const _0x1d8c2f=_0x5cdc43;return Rt(_0x338296,''[_0x1d8c2f(0x2d9)](_0x450b04,'-')[_0x1d8c2f(0x2d9)](_0x36aa9f[_0x1d8c2f(0x129)],'-')['concat'](_0x389cc0),_0x35f6cc,void 0x0,_0x11ce50);}));}function ki(_0x55cf78,_0x1a6725,_0x5cc757){const _0xcfb0b6=_0x2dd5e3;var _0x1fc001=v({},_0x55cf78['attrs']);_0x5cc757!=null&&_0x5cc757[_0xcfb0b6(0x2ac)]&&_0x1fc001['fill']===_0xcfb0b6(0x2ac)&&(_0x1fc001[_0xcfb0b6(0x117)]=_0x5cc757[_0xcfb0b6(0x2ac)]),_0x55cf78[_0xcfb0b6(0x129)]===_0xcfb0b6(0x255)&&_0x1fc001['id']&&(_0x1fc001['id']=_0x1fc001['id']+_0x1a6725[_0xcfb0b6(0x1cd)]),Object['entries'](_0x1fc001)[_0xcfb0b6(0x12e)](function(_0x4c5de1){const _0xdea3af=_0xcfb0b6;var _0x55b3fd=_0x4c5de1[0x0],_0x215329=_0x4c5de1[0x1];_0x55b3fd===_0xdea3af(0x255)&&typeof _0x215329==_0xdea3af(0x21b)&&(_0x1fc001[_0x55b3fd]=_0x215329[_0xdea3af(0x295)](/url\(#(.*)\)/,'url(#$1'[_0xdea3af(0x2d9)](_0x1a6725[_0xdea3af(0x1cd)],')')));});var _0x3daca5=_0x1a6725[_0xcfb0b6(0x300)];return!_0x3daca5||_0x3daca5[_0xcfb0b6(0x278)]===0x0||(_0x55cf78['tag']===_0xcfb0b6(0x1fd)&&_0x1fc001[_0xcfb0b6(0x24b)]&&(_0x1fc001['xlink:href']=_0x1fc001[_0xcfb0b6(0x24b)]+_0x1a6725[_0xcfb0b6(0x1cd)]),Object['entries'](_0x1fc001)['forEach'](function(_0x8da16e){const _0x4da773=_0xcfb0b6;var _0x5bd451=_0x8da16e[0x0],_0x2d9580=_0x8da16e[0x1];typeof _0x2d9580=='string'&&(_0x1fc001[_0x5bd451]=_0x2d9580[_0x4da773(0x295)](/url\(#(.*)\)/,'url(#$1'[_0x4da773(0x2d9)](_0x1a6725[_0x4da773(0x1cd)],')')));})),_0x1fc001;}function Hi(_0x35f89b,_0x4455aa){const _0x23940d=_0x2dd5e3;var _0x237109,_0x536e17=_0x4455aa[_0x23940d(0x300)];return!_0x536e17||_0x536e17[_0x23940d(0x278)]===0x0?_0x35f89b:_0x35f89b['tag']==='defs'&&(!((_0x237109=_0x35f89b['children'])===null||_0x237109===void 0x0)&&_0x237109[_0x23940d(0x278)])?v(v({},_0x35f89b),{'children':_0x35f89b['children'][_0x23940d(0x14e)](function(_0x202289){const _0x3233a9=_0x23940d;return typeof _0x202289['attrs']['id']=='string'&&_0x536e17&&_0x536e17[_0x3233a9(0x14b)](_0x202289[_0x3233a9(0x29b)]['id'])?v(v({},_0x202289),{'attrs':v(v({},_0x202289[_0x3233a9(0x29b)]),{'id':_0x202289[_0x3233a9(0x29b)]['id']+_0x4455aa['idSuffix']})}):_0x202289;})}):_0x35f89b;}function Fi(){const _0xd7860f=_0x2dd5e3;return Math[_0xd7860f(0x13f)]()[_0xd7860f(0x179)](0x24)[_0xd7860f(0x115)](0x2,0x8);}Fe[_0x2dd5e3(0x2fe)]='UniverIcon';var Yi={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2dd5e3(0x1fe),'viewBox':_0x2dd5e3(0x1bf),'width':_0x2dd5e3(0x19f),'height':_0x2dd5e3(0x19f)},'children':[{'tag':'g','attrs':{'clipPath':_0x2dd5e3(0x2a9)},'children':[{'tag':_0x2dd5e3(0x145),'attrs':{'stroke':'currentColor','d':_0x2dd5e3(0x171),'strokeLinecap':_0x2dd5e3(0x28d),'strokeLinejoin':_0x2dd5e3(0x28d),'strokeWidth':1.2}}]},{'tag':_0x2dd5e3(0x225),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2dd5e3(0x1aa)},'children':[{'tag':_0x2dd5e3(0x145),'attrs':{'fill':_0x2dd5e3(0x150),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2dd5e3(0x1aa)]},Dt=_0x533673(function(_0x53b7a0,_0x127b09){const _0x14e462=_0x2dd5e3;return _0x11ea07(Fe,Object[_0x14e462(0x2f5)]({},_0x53b7a0,{'id':'off-line-icon','ref':_0x127b09,'icon':Yi}));});Dt[_0x2dd5e3(0x2fe)]=_0x2dd5e3(0x11a);var ji={'tag':_0x2dd5e3(0x241),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x2dd5e3(0x19f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2dd5e3(0x145),'attrs':{'stroke':'currentColor','d':_0x2dd5e3(0x2a1),'strokeLinecap':'round','strokeLinejoin':_0x2dd5e3(0x28d),'strokeWidth':1.2}}]},{'tag':_0x2dd5e3(0x225),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2dd5e3(0x20d)},'children':[{'tag':_0x2dd5e3(0x145),'attrs':{'fill':'white','d':_0x2dd5e3(0x310),'transform':_0x2dd5e3(0x267)}}]}]}],'defIds':[_0x2dd5e3(0x20d)]},Nt=_0x533673(function(_0x48f4c5,_0x57e87c){const _0x2b3c9a=_0x2dd5e3;return _0x11ea07(Fe,Object[_0x2b3c9a(0x2f5)]({},_0x48f4c5,{'id':_0x2b3c9a(0x2a4),'ref':_0x57e87c,'icon':ji}));});Nt[_0x2dd5e3(0x2fe)]=_0x2dd5e3(0x220);function Vi(_0xc3f70f){const _0x251d83=_0x2dd5e3;switch(_0xc3f70f){case _0x12f766[_0x251d83(0x311)]:return'collabStatus.offline';case _0x12f766[_0x251d83(0x209)]:return'collabStatus.conflict';case _0x12f766[_0x251d83(0x2ec)]:return'collabStatus.fetchMiss';case _0x12f766[_0x251d83(0x12b)]:return _0x251d83(0x21c);case _0x12f766[_0x251d83(0x2ff)]:case _0x12f766[_0x251d83(0x2de)]:return _0x251d83(0x240);case _0x12f766[_0x251d83(0x14d)]:case _0x12f766[_0x251d83(0x1ca)]:return _0x251d83(0x189);}}function Wi(_0xf3133b){const _0x1fccdb=_0x2dd5e3,{status$:_0x42aec3}=_0xf3133b,_0x2e7d49=_0x2a5350(_0x42aec3,_0x12f766[_0x1fccdb(0x12b)]),_0x1cc3f6=_0x2a3cf4(_0x2ef23e),_0x478fcf=_0x2a3cf4(_0x53461e),_0x4e4cd1=_0x2e7d49!==_0x12f766[_0x1fccdb(0x311)],_0x352ec7=_0x1cc3f6['t'](Vi(_0x2e7d49)),_0x3e9437=_0x4e4cd1?_0x3f5c54(Nt,{}):_0x3f5c54(Dt,{}),_0x4cbdc5=_0x358ec1(()=>{const _0x4f733b=_0x1fccdb;_0x4e4cd1||_0x478fcf[_0x4f733b(0x143)]();},[_0x4e4cd1,_0x478fcf]);function _0x2a3a3f(){const _0x537be6=_0x1fccdb;return _0x45aa0d(_0x537be6(0x1b4),{'className':_0x537be6(0x281),'onClick':_0x4cbdc5,'children':[_0x3f5c54(_0x537be6(0x1b4),{'className':_0x166557(_0x537be6(0x2c6),{'univer-text-green-500':_0x4e4cd1,'univer-text-red-500':!_0x4e4cd1}),'children':_0x3e9437}),_0x3f5c54(_0x537be6(0x1b4),{'className':_0x537be6(0x19a),'children':_0x352ec7})]});}return _0x4e4cd1?_0x2a3a3f():_0x3f5c54(_0x6bc3f8,{'title':_0x1cc3f6['t']('collab-client.tooltip.reconnect'),'children':_0x2a3a3f()});}var Xi=Object[_0x2dd5e3(0x1c1)],Gi=(_0x91d6b,_0x303def,_0x6a342a,_0x1823b6)=>{const _0x582820=_0x2dd5e3;for(var _0x460b2d=_0x1823b6>0x1?void 0x0:_0x1823b6?Xi(_0x303def,_0x6a342a):_0x303def,_0x341c57=_0x91d6b[_0x582820(0x278)]-0x1,_0x300d8f;_0x341c57>=0x0;_0x341c57--)(_0x300d8f=_0x91d6b[_0x341c57])&&(_0x460b2d=_0x300d8f(_0x460b2d)||_0x460b2d);return _0x460b2d;},Q=(_0x59335e,_0x6668a1)=>(_0x577307,_0x114841)=>_0x6668a1(_0x577307,_0x114841,_0x59335e);let te=class extends _0x21c4e5{constructor(_0x4f0933,_0x18e59d,_0x4d9b11,_0x1ed609){const _0xe133c0=_0x2dd5e3;super(),_(this,'_status$',new _0x4ee13a(_0x12f766[_0xe133c0(0x12b)])),(this[_0xe133c0(0x1a2)]=_0x4f0933,this[_0xe133c0(0x2aa)]=_0x18e59d,this[_0xe133c0(0x271)]=_0x4d9b11,this[_0xe133c0(0x269)]=_0x1ed609,this[_0xe133c0(0x260)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x8c907c=_0x2dd5e3;this['disposeWithMe'](this[_0x8c907c(0x1a2)]['focused$'][_0x8c907c(0x227)](_0xc1bcca(()=>{const _0x4c6d1e=_0x8c907c,_0x5c87b7=this[_0x4c6d1e(0x1a2)]['getFocusedUnit']();return _0x5c87b7?this[_0x4c6d1e(0x271)][_0x4c6d1e(0x29e)](_0x5c87b7[_0x4c6d1e(0x231)]()):_0x2a42dd(null);}),_0xc1bcca(_0x51b6a2=>_0x51b6a2?_0x51b6a2[_0x8c907c(0x270)]:_0x2a42dd(_0x12f766[_0x8c907c(0x12b)])))['subscribe'](_0xc6da81=>{this['_status$']['next'](_0xc6da81);}));}[_0x2dd5e3(0x260)](){const _0x18bc9b=_0x2dd5e3;this[_0x18bc9b(0x21a)](this[_0x18bc9b(0x269)][_0x18bc9b(0x2f6)](_0x349053[_0x18bc9b(0x22f)],()=>_0x1e366d(Ki({'status$':this[_0x18bc9b(0x1a5)][_0x18bc9b(0x195)]()}),this[_0x18bc9b(0x2aa)])));}};te=Gi([Q(0x0,_0x497731),Q(0x1,_0x5b7f95(_0x3325a5)),Q(0x2,_0x5b7f95(_0x3de98f)),Q(0x3,_0x3a87b9)],te);function Ki(_0x4c808a){const {status$:_0x21e5b6}=_0x4c808a;return function(){return _0x3f5c54(Wi,{'status$':_0x21e5b6});};}var zi=Object[_0x2dd5e3(0x1c1)],Ji=(_0x492e9e,_0x21049f,_0x4f9606,_0x4b3e37)=>{const _0x399c89=_0x2dd5e3;for(var _0x4caaa2=_0x4b3e37>0x1?void 0x0:_0x4b3e37?zi(_0x21049f,_0x4f9606):_0x21049f,_0x3c93e5=_0x492e9e[_0x399c89(0x278)]-0x1,_0x5e31ba;_0x3c93e5>=0x0;_0x3c93e5--)(_0x5e31ba=_0x492e9e[_0x3c93e5])&&(_0x4caaa2=_0x5e31ba(_0x4caaa2)||_0x4caaa2);return _0x4caaa2;},B=(_0x4e7a4b,_0x352538)=>(_0x365d2f,_0x1aa333)=>_0x352538(_0x365d2f,_0x1aa333,_0x4e7a4b);let se=class extends _0x21c4e5{constructor(_0x42c5aa,_0x24a31c,_0x443128,_0x55f3fe,_0x472843,_0x38f7bb){const _0x3b9aa5=_0x2dd5e3;super(),this['_beforeCloseService']=_0x42c5aa,this[_0x3b9aa5(0x22d)]=_0x24a31c,this[_0x3b9aa5(0x2bf)]=_0x443128,this['_messageService']=_0x55f3fe,this[_0x3b9aa5(0x2a0)]=_0x472843,this[_0x3b9aa5(0x235)]=_0x38f7bb,this[_0x3b9aa5(0x29d)](),this[_0x3b9aa5(0x1ae)]();}[_0x2dd5e3(0x29d)](){const _0x2d45fa=_0x2dd5e3;this[_0x2d45fa(0x21a)](this[_0x2d45fa(0x23c)][_0x2d45fa(0x2cf)](()=>{const _0x41ee1e=_0x2d45fa;if(this[_0x41ee1e(0x22d)][_0x41ee1e(0x2dd)]['size'])return this[_0x41ee1e(0x235)]['t'](_0x41ee1e(0x2e6));}));}[_0x2dd5e3(0x1ae)](){const _0x32c6a8=_0x2dd5e3;this[_0x32c6a8(0x21a)](this[_0x32c6a8(0x2bf)][_0x32c6a8(0x1cf)][_0x32c6a8(0x276)](_0x25beef=>{const _0x50d724=_0x32c6a8;_0x25beef['id']===_0x248fdb['OTHER_CLIENT_EDITING']&&this[_0x50d724(0x2fd)]['show']({'type':_0x498d54[_0x50d724(0x2b8)],'content':this['_localeService']['t'](_0x50d724(0x16a))}),_0x25beef['id']===_0x248fdb[_0x50d724(0x24e)]&&this[_0x50d724(0x2fd)][_0x50d724(0x113)]({'type':_0x498d54[_0x50d724(0x2b8)],'content':this[_0x50d724(0x235)]['t']('collaboration.closeRoom')}),_0x25beef['id']===_0x248fdb[_0x50d724(0x1e8)]&&this[_0x50d724(0x2a0)][_0x50d724(0x113)]({'title':this[_0x50d724(0x235)]['t'](_0x50d724(0x12c)),'content':this[_0x50d724(0x235)]['t'](_0x50d724(0x273)),'type':_0x50d724(0x2f2),'duration':0x0}),_0x25beef['id']===_0x248fdb[_0x50d724(0x209)]&&this[_0x50d724(0x2fd)][_0x50d724(0x113)]({'type':_0x498d54[_0x50d724(0x17f)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x25beef['data']+')'}),_0x25beef['id']===_0x248fdb['JOIN_ROOM_FAILED']&&this[_0x50d724(0x2fd)][_0x50d724(0x113)]({'type':_0x498d54[_0x50d724(0x2b8)],'content':this[_0x50d724(0x235)]['t'](_0x25beef[_0x50d724(0x13d)]||'')}),_0x25beef['id']===_0x248fdb[_0x50d724(0x26b)]&&this[_0x50d724(0x2fd)][_0x50d724(0x113)]({'type':_0x498d54['Warning'],'content':this[_0x50d724(0x235)]['t']('session.will-retry')}),_0x25beef['id']===_0x248fdb[_0x50d724(0x139)]&&this[_0x50d724(0x2fd)][_0x50d724(0x113)]({'type':_0x498d54[_0x50d724(0x17f)],'content':this['_localeService']['t'](_0x50d724(0x307))}),_0x25beef['id']===_0x248fdb[_0x50d724(0x24d)]&&this['_messageService'][_0x50d724(0x113)]({'type':_0x498d54[_0x50d724(0x17f)],'content':this[_0x50d724(0x235)]['t'](_0x50d724(0x1e4))});}));}};se=Ji([B(0x0,_0x5aff92),B(0x1,_0x467e13),B(0x2,_0x5b7f95(_0x247516)),B(0x3,_0x41a076),B(0x4,_0x232a6b),B(0x5,_0x5b7f95(_0x2ef23e))],se);const Zi='collaboration-client-ui.config',et={},Ut=_0x59a066(_0x2dd5e3(0x211));var Qi=Object[_0x2dd5e3(0x1c1)],qi=(_0xca1bcc,_0x45c225,_0xb653d8,_0x1a5666)=>{const _0x3b4c9a=_0x2dd5e3;for(var _0x24d63b=_0x1a5666>0x1?void 0x0:_0x1a5666?Qi(_0x45c225,_0xb653d8):_0x45c225,_0x38b9b3=_0xca1bcc[_0x3b4c9a(0x278)]-0x1,_0x454389;_0x38b9b3>=0x0;_0x38b9b3--)(_0x454389=_0xca1bcc[_0x38b9b3])&&(_0x24d63b=_0x454389(_0x24d63b)||_0x24d63b);return _0x24d63b;},G=(_0x5b1cf1,_0x307750)=>(_0x41c093,_0x7345ec)=>_0x307750(_0x41c093,_0x7345ec,_0x5b1cf1);let ie=class extends _0x2e3fba{constructor(_0x53e86d,_0x4ad249,_0x26bc79,_0x5307f4,_0x5a3a1b){const _0x1a090e=_0x2dd5e3;super(),this[_0x1a090e(0x1e9)]=_0x53e86d,this[_0x1a090e(0x1f8)]=_0x4ad249,this[_0x1a090e(0x122)]=_0x26bc79,this['_dataLoaderService']=_0x5307f4,_0x5a3a1b?_0x5a3a1b==null||_0x5a3a1b[_0x1a090e(0x229)]()['then'](()=>this[_0x1a090e(0x224)]()):(this[_0x1a090e(0x1f8)][_0x1a090e(0x242)](_0x1a090e(0x2e5),_0x1a090e(0x1a7)),this[_0x1a090e(0x224)]());}async['_init'](){const _0x37a7ee=_0x2dd5e3,_0x3689d1=this[_0x37a7ee(0x1e9)][_0x37a7ee(0x118)](_0x37a7ee(0x1d2)),_0xe015d0=this[_0x37a7ee(0x1e9)][_0x37a7ee(0x118)](_0x37a7ee(0x2e0)),_0x111a8a=this['_urlService']['getParam'](_0x37a7ee(0x15a));if(!_0x3689d1||!_0xe015d0){this[_0x37a7ee(0x1f8)][_0x37a7ee(0x242)]('[CollaborationDataLoaderController]',_0x37a7ee(0x2c5));return;}const _0x52fe1b=await this[_0x37a7ee(0x20a)][_0x37a7ee(0x26f)](_0x3689d1,Number(_0xe015d0),_0x111a8a);_0x52fe1b&&_0x52fe1b instanceof _0x49c747&&this[_0x37a7ee(0x2b6)](_0x52fe1b);}async['_setupSubUnitSync'](_0x57436e){const _0x51222e=_0x2dd5e3;await this[_0x51222e(0x221)](_0x57436e),_0x57436e[_0x51222e(0x11b)][_0x51222e(0x227)](_0x44686d(this[_0x51222e(0x156)]))[_0x51222e(0x276)](_0x366949=>{_0x366949&&this['_updateURLWithCurrentState'](_0x366949);}),this[_0x51222e(0x1e9)][_0x51222e(0x1ff)][_0x51222e(0x227)](_0x44686d(this[_0x51222e(0x156)]))[_0x51222e(0x276)](()=>this[_0x51222e(0x221)](_0x57436e));}[_0x2dd5e3(0x162)](_0x2e57a0,_0x2281dc=!0x1){const _0x4bc6f2=_0x2dd5e3,_0x53d23e=this[_0x4bc6f2(0x1e9)][_0x4bc6f2(0x118)](_0x4bc6f2(0x15a));_0x2e57a0[_0x4bc6f2(0x22a)]()!==_0x53d23e&&this[_0x4bc6f2(0x1e9)]['setParam']('subunit',_0x2e57a0['getSheetId'](),_0x2281dc);}async[_0x2dd5e3(0x221)](_0x5a52ee){const _0x532370=_0x2dd5e3;var _0x46d08a;const _0x524a2f=this[_0x532370(0x1e9)][_0x532370(0x118)](_0x532370(0x15a));if(!_0x524a2f||!_0x5a52ee[_0x532370(0x11c)](_0x524a2f)){const _0x604c6c=_0x5a52ee[_0x532370(0x289)]()[0x0],_0x190c06=_0x5a52ee[_0x532370(0x11c)](_0x604c6c);if(!_0x190c06)return;this[_0x532370(0x162)](_0x190c06,!0x0),await this[_0x532370(0x122)][_0x532370(0x1af)](_0x2ed211['id'],{'unitId':_0x5a52ee[_0x532370(0x231)](),'subUnitId':_0x604c6c});return;}((_0x46d08a=_0x5a52ee['getActiveSheet']())==null?void 0x0:_0x46d08a['getSheetId']())!==_0x524a2f&&await this['_commandService']['executeCommand'](_0x2ed211['id'],{'unitId':_0x5a52ee[_0x532370(0x231)](),'subUnitId':_0x524a2f});}};ie=qi([G(0x0,Ut),G(0x1,_0x447620),G(0x2,_0x780975),G(0x3,_0x5b7f95(_0x1f05e5)),G(0x4,_0x2958c4(_0x10414d))],ie);var en=Object[_0x2dd5e3(0x1c1)],tn=(_0x205411,_0x255395,_0x5157cb,_0x3fb4a5)=>{const _0x28589d=_0x2dd5e3;for(var _0x4eafe7=_0x3fb4a5>0x1?void 0x0:_0x3fb4a5?en(_0x255395,_0x5157cb):_0x255395,_0x3a13bb=_0x205411[_0x28589d(0x278)]-0x1,_0x5621dd;_0x3a13bb>=0x0;_0x3a13bb--)(_0x5621dd=_0x205411[_0x3a13bb])&&(_0x4eafe7=_0x5621dd(_0x4eafe7)||_0x4eafe7);return _0x4eafe7;},pe=(_0x4a5dbd,_0x5a1d)=>(_0x258dd5,_0x51cb05)=>_0x5a1d(_0x258dd5,_0x51cb05,_0x4a5dbd);let ne=class{constructor(_0x2595b4,_0x5f5d00,_0x107f79){const _0x4c757d=_0x2dd5e3;this[_0x4c757d(0x2aa)]=_0x2595b4,this[_0x4c757d(0x23e)]=_0x5f5d00,this[_0x4c757d(0x244)]=_0x107f79;}['transformIMECache'](_0x53972a){const _0x4eecfa=_0x2dd5e3;this[_0x4eecfa(0x130)](_0x53972a),this[_0x4eecfa(0x203)](_0x53972a);}[_0x2dd5e3(0x27f)](_0xc781fb){const _0x3a9b38=_0x2dd5e3,{unitID:_0x9522aa}=_0xc781fb,_0x1a6c8b=this[_0x3a9b38(0x244)][_0x3a9b38(0x1ee)](_0x9522aa)[_0x3a9b38(0x2db)](_0x41d47f),{redoCache:_0x3719b1}=_0x1a6c8b[_0x3a9b38(0x2c4)]();if(_0x3719b1[_0x3a9b38(0x278)]===0x0)return _0xc781fb;let _0x27e982=_0x2a5672['deepClone'](_0xc781fb['mutations'][0x0]);for(let _0x3e6db5=0x0;_0x3e6db5<_0x3719b1['length'];_0x3e6db5++){const _0x389c9c={'id':_0x3a9b38(0x188),'params':{..._0x3719b1[_0x3e6db5]}},_0x3440b2=this[_0x3a9b38(0x23e)][_0x3a9b38(0x297)](_0x27e982,_0x389c9c,!0x1);if(_0x500c8b(_0x3440b2))throw _0x3440b2[_0x3a9b38(0x2f2)];_0x27e982=_0x3440b2[_0x3a9b38(0x1ab)];}return{..._0x2a5672['deepClone'](_0xc781fb),'mutations':[_0x27e982]};}[_0x2dd5e3(0x130)](_0xa17399){const _0x139afe=_0x2dd5e3,{unitID:_0x311709}=_0xa17399,_0x3b9e35=this[_0x139afe(0x244)][_0x139afe(0x1ee)](_0x311709)['with'](_0x41d47f),{undoCache:_0x26d826,redoCache:_0x18ef14}=_0x3b9e35[_0x139afe(0x2c4)]();if(_0x26d826[_0x139afe(0x278)]===0x0||_0x18ef14[_0x139afe(0x278)]===0x0)return;const _0x5cc0e3=[],_0x952794=[];let _0x5f4bf4=_0x2a5672[_0x139afe(0x294)](_0xa17399[_0x139afe(0x19e)][0x0]),_0x48bf55=_0x2a5672[_0x139afe(0x294)](_0xa17399[_0x139afe(0x19e)][0x0]);for(let _0x1e0847=_0x26d826[_0x139afe(0x278)]-0x1;_0x1e0847>=0x0;_0x1e0847--){const _0x5784e3={'id':'doc.mutation.rich-text-editing','params':{..._0x26d826[_0x1e0847]}},_0x15719a={'id':_0x139afe(0x188),'params':{..._0x18ef14[_0x1e0847]}},_0x50b5b3=this[_0x139afe(0x23e)][_0x139afe(0x297)](_0x5f4bf4,_0x5784e3,!0x1),_0x1a3d10=this[_0x139afe(0x23e)]['transformMutation'](_0x48bf55,_0x15719a,!0x1);if(_0x500c8b(_0x50b5b3))throw _0x50b5b3[_0x139afe(0x2f2)];if(_0x500c8b(_0x1a3d10))throw _0x1a3d10[_0x139afe(0x2f2)];_0x5cc0e3['unshift'](_0x50b5b3[_0x139afe(0x1ce)][_0x139afe(0x1b7)]),_0x952794[_0x139afe(0x194)](_0x1a3d10[_0x139afe(0x1ce)][_0x139afe(0x1b7)]),_0x5f4bf4=_0x50b5b3[_0x139afe(0x1ab)],_0x48bf55=_0x1a3d10[_0x139afe(0x1ab)];}_0x3b9e35[_0x139afe(0x2cc)]({'undoCache':_0x5cc0e3,'redoCache':_0x952794});}[_0x2dd5e3(0x203)](_0x523b1d){const _0x2e9b0c=_0x2dd5e3,{unitID:_0x4aaf4c}=_0x523b1d,_0x5ad9b8=this[_0x2e9b0c(0x244)][_0x2e9b0c(0x1ee)](_0x4aaf4c)['with'](_0x41d47f),_0x3e7b24=_0x5ad9b8[_0x2e9b0c(0x1d0)]();if(_0x3e7b24==null)return;const _0x15ee6d=[{'id':_0x2e9b0c(0x188),'params':{'unitId':_0x523b1d['unitID'],'actions':null,'textRanges':[_0x3e7b24]}}],_0x50e14a=this[_0x2e9b0c(0x23e)][_0x2e9b0c(0x11d)](_0x523b1d,_0x15ee6d);if(!_0x1b20dd(_0x50e14a))throw _0x50e14a['error'];const _0x1995a7=_0x50e14a[_0x2e9b0c(0x1ce)][0x0][_0x2e9b0c(0x1b7)][_0x2e9b0c(0x1ba)];Array[_0x2e9b0c(0x164)](_0x1995a7)&&_0x1995a7[_0x2e9b0c(0x278)]&&_0x5ad9b8[_0x2e9b0c(0x25a)](_0x1995a7[0x0]);}};ne=tn([pe(0x0,_0x5b7f95(_0x3325a5)),pe(0x1,_0x2ae7a9),pe(0x2,_0x2543e2)],ne);var sn=Object[_0x2dd5e3(0x1c1)],nn=(_0x462ea3,_0x445696,_0x10b9a0,_0x4c70b6)=>{const _0x5b9016=_0x2dd5e3;for(var _0x5e988a=_0x4c70b6>0x1?void 0x0:_0x4c70b6?sn(_0x445696,_0x10b9a0):_0x445696,_0x5e4941=_0x462ea3[_0x5b9016(0x278)]-0x1,_0x1268a0;_0x5e4941>=0x0;_0x5e4941--)(_0x1268a0=_0x462ea3[_0x5e4941])&&(_0x5e988a=_0x1268a0(_0x5e988a)||_0x5e988a);return _0x5e988a;},Ce=(_0x383cef,_0x1ebb3d)=>(_0x353f3b,_0x2214aa)=>_0x1ebb3d(_0x353f3b,_0x2214aa,_0x383cef);function _0x4450(){const _0x30fb39=['doc.mutation.rich-text-editing','collabStatus.synced','_instanceService','complete','jiqing.500','searchParams','set','runOnServer','hovered','LICENSE_MAX_UNITS_EXCEEDED','_docTransformIMECacheService','_collabCursorController','unshift','asObservable','YUUMI_ASYNCIO_CANCELLED','_send','transformStateCache','_removeCollabCursors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','USERS_LEAVE','INVITE_CODE_REQUIRED','setItem','mutations','1em','INTERNAL_ERROR','UNRECOGNIZED','_univerInstanceService','values','_initEntityListener','_status$','font','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_unitStatus','ACTIVE_UNIT_EVENT_CHANNEL','off-line-icon_clip0_910_343','m1Prime','_assignedColors','_scheduleSaving','_initEvent','executeCommand','popstate','_createSocketURL','NO_OTHER_CLIENTS_EDITING','origin','div','DeleteRangeMoveUpCommandId','_render','params','generateRandomId','_document','textRanges','onLocalMutation','_clearOtherTimers','_docSyncEditingCollabCursorService','_handleHeartbeatEvent','0\x200\x2016\x2016','replaceState','getOwnPropertyDescriptor','startRow','_startSheetCollabCursor','UNAUTHENTICATED','TOO_MANY_REQUESTS','endRow','2gwtuUI','transformByState','onPointerEnter$','PENDING','32BDURve','rgba(255,\x20255,\x20255,\x200.01)','idSuffix','m2Prime','event$','getActiveRange','some','unit','univerjs-icon\x20univerjs-icon-','LICENSE_IMPORT_SIZE_EXCEEDED','executionId','_color','getColorFromTheme','collab-rect-range-','addObjects','imageSourceType','_localStorageService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','skeleton','EMAIL_HAS_BEEN_BOUND','moveTo','location','INVALID_INVITE_CODE','backgroundColor','runId','session.collaboration-timeout','save','restore','then','PERMISSION_DENIED','_urlService','addClipboardHook','min','getCurrentSelections','_onCursorUpdate','getRenderById','Failed','assignAColorForMemberID','APPLY_NON_SEQUENTIAL_REVISION','10961776BYMHxg','_textBubble','eventID','_handleLeaveEvent','_scene','_colorIndex','_logService','_getSessionTicket','_drawRectRange','VIEW_MAIN','_configService','use','none','urlChange$','currentTheme$','getRangePointData','arc','_transformPreviousActiveRange','saveImage','2292819DEZyZZ','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Unknown\x20user','_toggleOnline','CONFLICT','_dataLoaderService','4137966nrEBqE','_initDependencies','on-line-icon_clip0_910_349','pushState','getTypeOfUnitDisposed$','_unitOnClients','uni.network.url-service','getCollabCursors$','top','findNodePositionByCharIndex','WECHAT_HAS_BEEN_BOUND','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REVISION_CONFILICT','COMPLETION_FINISHED','_cursorInfo$','disposeWithMe','string','collabStatus.notCollab','_heartbeatTimer','_drawAnchor','_cachedData','OnLineIcon','_updateSubUnitFromURLParams','onTransformChange$','_docStateChangeManagerService','_init','defs','setShapeProps','pipe','getConfig','whenReady','getSheetId','loadOfflineData','getCellPositionByOffset','_localCacheService','833774nmwpqB','HEADER_MENU','_imageIoService','getUnitId','dispose','_scheduleHeartbeat','YUUMI_UNABLE_LOAD_URL','_localeService','cursorInfo','wsSessionTicketUrl','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ENSURE_SNAPSHOT_EXECUTION','INVALID_ARGUMENT','_beforeCloseService','LICENSE_EXPORT_SIZE_EXCEEDED','_transformService','range','collabStatus.syncing','svg','debug','_id','_renderManagerService','source','flatMap','push','fillStyle','requireSession','RemoveColCommandId','xlink:href','_range','SUBMIT_CHANGESET_TIMEOUT','CLOSE_ROOM','1108145dNYtNJ','FromArray','measureText','setAlpha','_transformHistoryAndStateStack','_eventUnsubscribe','mask','contains','send','RECT','roomMembers$','setActiveRange','_registerRenderDependencies','selection','roomMembers','createSocket','defineProperty','_initStatusComponent','max','collabCursorState$','_scheduleClearOtherTimer','_cursor','SNAPSHOT_INVALID_SNAPSHOT','setConfig','translate(.97)','onCommandExecuted','_uiPartsService','body','SOCKET_FAILED_RETRY','_session','YUUMI_ALL_TABLES_IS_INVALID','CONNECTOR_DATA_TOO_LARGE','loadUnit','status$','_collaborationController','_getAnchorBounding','permission.content','getViewport','getOwnPropertySymbols','subscribe','getDocRanges','length','getVpScrollXYInfoByPosToVp','indexOf','USER_NOT_INVITED_CODE','sheetId','actions','redoState','transformRemoteChangeset','YUUMI_NO_CUBOID_FOR_QUESTION','univer-flex\x20univer-items-center','_revisionService','UPDATE_CURSOR','_entityInit$','OTHER_CLIENTS_EDITING','size','getCurrentRevOfUnit','newValue','getUnhiddenWorksheets','_getScale','_shapes','editingUnit','round','collab-text-anchor-','LOGIN_FAILED','_memberService','_startDocCollabCursor','...','all','deepClone','replace','_toggleOffline','transformMutation','_selfUnitIDs','_entities','_hover','attrs','DeleteRangeMoveLeftCommandId','_setupBeforeClosingHandler','getCollabEntity$','_colorAssignService','_notificationService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_drawTextRange','UNIVER_SHEET','on-line-icon','onPointerLeave$','current','_getSheetObject','getMember','url(#off-line-icon_clip0_910_343)','_injector','_cursorShapes','colorChannel1','_docTransformSelectionsService','history','onMouseMove','_backgroundColor','setStateCache','className','_disabled','SNAPSHOT_HAS_BEEN_REMOVED','syncEditingCollabCursor','_setupSubUnitSync','MUTATION','Warning','_name','_updateCollabCursors','parse','makeDirty','UNIVER_DOC','has','_collaborationUIEventService','removeParam','PY_RUNTIME_SCRIPT_ERROR','isEditing','post','getUndoRedoMutationParamsCache','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','univer-mr-2\x20univer-flex\x20univer-text-xl','getCurrent','undoState','INVITE_CODE_ALREADY_BOUND','_saveTaskMap','_docTransformStateCacheService','setUndoRedoMutationParamsCache','_getMergeRange','sessionStatus$','registerBeforeClose','_labelPosition','NOT_FOUND','clearTimeout','column','unsubscribe','_anchorDot','storage','onPointerMove$','_removeClearOtherTimer','concat','_registerDependencies','with','_ensureSubject','saveTaskMap','AWAITING_WITH_PENDING','_hovered','type','resize','YUUMI_URL_COL_OUT_OF_RANGE','delete','transformIMECache','[CollaborationDataLoaderController]','collaboration-client.offline-data-not-saved','[RemoteUniscriptService]:\x20no\x20focused\x20unit','drawWith','getStateCache','prototype','APPLY_REJECT','FETCH_MISS','getFocusedUnit','text','getItem','RemoveRowCommandId','black','error','collab-text-range-','_handleEvent','assign','registerComponent','onRendered','evenodd','TEXT','key','href','onStarting','_messageService','displayName','AWAITING','defIds','addObject','bottom','INVITE_CODE_HAS_BEEN_UES','_doCreateSocket','subscribeEvent','purple.300','session.connection-failed','add','replaceDocRanges','_themeService','_online','currentSkeleton$','YUUMI_RATE_OVER_LIMIT','_anchor','#FFF','M0\x200H16V16H0z','OFFLINE','show','call','substring','ONLINE','fill','getParam','disposeUnit','OffLineIcon','activeSheet$','getSheetBySheetId','transformMutationsWithChangeset','_syncEditingCollabCursorService','unload','subUnitId','row','_commandService','entityInit$','stringify','green.600','1671592QNrOzC','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','closePath','tag','startsWith','NOT_COLLAB','permission.title','name','forEach','docStateChange$','_transformUndoRedoStack','_lastPointer','transformSelections','symbol','_onCursorDelete','clearInterval','lineTo','/run/','trim','SOCKET_FAILED','yellow.400','ALREADY_EXISTS','isActive','data','unitID','random','_hideTimer','_handleHover','_collabCursorState$','reconnect','_saveCache','path','_onRefRangeChange','getMemberID','get','hide','_updateLocalCursor','includes','_sheetSkeletonManagerService','SYNCED','map','registerRenderModule','white','_roomMembers$','getTypeOfUnitAdded$','enableLocalCache','getSkeleton','find','dispose$','_getSaveTimeout','from','init','subunit','APPLY_PERMISSION_DENIED','MOBILE_HAS_BEEN_BOUND','exhaustSavingTask','transform','_context','cursorInfo$','YUUMI_CONNECTOR_URL_NOT_FOUND','_updateURLWithCurrentState','_collabSessionService','isArray','7137864yDzsFE','propertyIsEnumerable','red.300','addEventListener','ranges','collaboration.single-unit.warning','startColumn','createInstance','_refRangeService','color','next','hasOwnProperty','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','sheetID','getAncestorScale','toRgbString','_config','getOffsetConfig','width','height','toString','YUUMI_TABLE_NOT_FOUND_IN_UNIT','selections','_initResize','_docSkeletonManagerService','getValue','Error','_cursors','getMergeData','split','_httpService','memberID','unitId','_initCommandExecutedListener','_refreshCollabCursors'];_0x4450=function(){return _0x30fb39;};return _0x4450();}let re=class{constructor(_0x29179e,_0x1e632c,_0xf74741){this['_injector']=_0x29179e,this['_transformService']=_0x1e632c,this['_docStateChangeManagerService']=_0xf74741;}[_0x2dd5e3(0x198)](_0x35fd62){this['_transformHistoryAndStateStack'](_0x35fd62);}[_0x2dd5e3(0x27f)](_0x20f25e){const _0x222f01=_0x2dd5e3,{unitID:_0x1b8f43}=_0x20f25e,{collaboration:_0x29ddaa}=this[_0x222f01(0x223)][_0x222f01(0x2e9)](_0x1b8f43);if(_0x29ddaa[_0x222f01(0x278)]===0x0)return _0x20f25e;let _0x4e179b=_0x2a5672['deepClone'](_0x20f25e[_0x222f01(0x19e)][0x0]);for(let _0x572eca=0x0;_0x572eca<_0x29ddaa['length'];_0x572eca++){const _0x48e0bb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29ddaa[_0x572eca][_0x222f01(0x185)],..._0x29ddaa[_0x572eca][_0x222f01(0x27e)]}},_0x1c618b=this['_transformService'][_0x222f01(0x297)](_0x4e179b,_0x48e0bb,!0x1);if(_0x500c8b(_0x1c618b))throw _0x1c618b[_0x222f01(0x2f2)];_0x4e179b=_0x1c618b[_0x222f01(0x1ab)];}return{..._0x2a5672[_0x222f01(0x294)](_0x20f25e),'mutations':[_0x4e179b]};}[_0x2dd5e3(0x253)](_0x524b6c){const _0x34c059=_0x2dd5e3,{unitID:_0x1a5b91}=_0x524b6c,{history:_0x1fb45e,collaboration:_0x207239}=this[_0x34c059(0x223)][_0x34c059(0x2e9)](_0x1a5b91);if(_0x1fb45e[_0x34c059(0x278)]===0x0&&_0x207239[_0x34c059(0x278)]===0x0)return;const _0x274894=[],_0x27fdac=[];let _0x1c52dd=_0x2a5672[_0x34c059(0x294)](_0x524b6c[_0x34c059(0x19e)][0x0]),_0x3f9546=_0x2a5672['deepClone'](_0x524b6c[_0x34c059(0x19e)][0x0]);for(let _0x5649f5=_0x1fb45e[_0x34c059(0x278)]-0x1;_0x5649f5>=0x0;_0x5649f5--){const _0x32d674={'id':_0x34c059(0x188),'params':{'unitId':_0x1fb45e[_0x5649f5][_0x34c059(0x185)],..._0x1fb45e[_0x5649f5][_0x34c059(0x2c8)]}},_0x2a8554={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fb45e[_0x5649f5]['unitId'],..._0x1fb45e[_0x5649f5][_0x34c059(0x27e)]}},_0x38b715=this[_0x34c059(0x23e)]['transformMutation'](_0x1c52dd,_0x32d674,!0x1),_0x4cbcf6=this[_0x34c059(0x23e)][_0x34c059(0x297)](_0x3f9546,_0x2a8554,!0x1);if(_0x500c8b(_0x38b715))throw _0x38b715[_0x34c059(0x2f2)];if(_0x500c8b(_0x4cbcf6))throw _0x4cbcf6['error'];_0x274894['unshift']({..._0x1fb45e[_0x5649f5],'undoState':_0x38b715[_0x34c059(0x1ce)][_0x34c059(0x1b7)],'redoState':_0x4cbcf6['m2Prime'][_0x34c059(0x1b7)]}),_0x1c52dd=_0x38b715[_0x34c059(0x1ab)],_0x3f9546=_0x4cbcf6[_0x34c059(0x1ab)];}_0x1c52dd=_0x2a5672['deepClone'](_0x524b6c[_0x34c059(0x19e)][0x0]),_0x3f9546=_0x2a5672[_0x34c059(0x294)](_0x524b6c[_0x34c059(0x19e)][0x0]);for(let _0x3e4fe0=_0x207239[_0x34c059(0x278)]-0x1;_0x3e4fe0>=0x0;_0x3e4fe0--){const _0x4ce760={'id':_0x34c059(0x188),'params':{'unitId':_0x207239[_0x3e4fe0][_0x34c059(0x185)],..._0x207239[_0x3e4fe0][_0x34c059(0x2c8)]}},_0x4b37ec={'id':_0x34c059(0x188),'params':{'unitId':_0x207239[_0x3e4fe0]['unitId'],..._0x207239[_0x3e4fe0][_0x34c059(0x27e)]}},_0x19cc0f=this[_0x34c059(0x23e)][_0x34c059(0x297)](_0x1c52dd,_0x4ce760,!0x1),_0x241665=this[_0x34c059(0x23e)][_0x34c059(0x297)](_0x3f9546,_0x4b37ec,!0x1);if(_0x500c8b(_0x19cc0f))throw _0x19cc0f[_0x34c059(0x2f2)];if(_0x500c8b(_0x241665))throw _0x241665[_0x34c059(0x2f2)];_0x27fdac[_0x34c059(0x194)]({..._0x207239[_0x3e4fe0],'undoState':_0x19cc0f[_0x34c059(0x1ce)][_0x34c059(0x1b7)],'redoState':_0x241665[_0x34c059(0x1ce)][_0x34c059(0x1b7)]}),_0x1c52dd=_0x19cc0f['m1Prime'],_0x3f9546=_0x241665[_0x34c059(0x1ab)];}this['_docStateChangeManagerService'][_0x34c059(0x2b1)](_0x1a5b91,{'history':_0x274894,'collaboration':_0x27fdac});}};re=nn([Ce(0x0,_0x5b7f95(_0x3325a5)),Ce(0x1,_0x2ae7a9),Ce(0x2,_0x5b7f95(_0x5b25ec))],re);var rn=Object[_0x2dd5e3(0x1c1)],on=(_0x148372,_0x51abf7,_0x303c86,_0x30a58d)=>{const _0x1cb9e3=_0x2dd5e3;for(var _0x3849ee=_0x30a58d>0x1?void 0x0:_0x30a58d?rn(_0x51abf7,_0x303c86):_0x51abf7,_0x51cfcb=_0x148372[_0x1cb9e3(0x278)]-0x1,_0x41d45c;_0x51cfcb>=0x0;_0x51cfcb--)(_0x41d45c=_0x148372[_0x51cfcb])&&(_0x3849ee=_0x41d45c(_0x3849ee)||_0x3849ee);return _0x3849ee;},tt=(_0x7e8f53,_0x3ef97c)=>(_0x8d19d7,_0x5a5a3f)=>_0x3ef97c(_0x8d19d7,_0x5a5a3f,_0x7e8f53);let oe=class{constructor(_0x4bac59,_0x51e076){const _0x562d84=_0x2dd5e3;this[_0x562d84(0x2aa)]=_0x4bac59,this[_0x562d84(0x23e)]=_0x51e076;}[_0x2dd5e3(0x132)](_0x394e5e){const _0xec270e=_0x2dd5e3;var _0x308c15;const _0x2282b8=this[_0xec270e(0x2aa)][_0xec270e(0x148)](_0x163e3e),_0x3cfedf=(_0x308c15=_0x2282b8[_0xec270e(0x277)]())!=null?_0x308c15:[];if(_0x3cfedf[_0xec270e(0x278)]===0x0)return;const _0x3022bf=_0x394e5e[_0xec270e(0x13e)],_0x63a92f=[{'id':_0xec270e(0x188),'params':{'unitId':_0x3022bf,'actions':null,'textRanges':_0x3cfedf}}],_0x1abb92=this['_transformService'][_0xec270e(0x11d)](_0x394e5e,_0x63a92f);if(!_0x1b20dd(_0x1abb92))throw _0x1abb92[_0xec270e(0x2f2)];const _0xece7c5=_0x1abb92[_0xec270e(0x1ce)][0x0]['params'][_0xec270e(0x1ba)];Array[_0xec270e(0x164)](_0xece7c5)&&_0xece7c5['length']&&_0x2282b8[_0xec270e(0x309)](_0xece7c5,{'unitId':_0x3022bf,'subUnitId':_0x3022bf},!0x1);}};oe=on([tt(0x0,_0x5b7f95(_0x3325a5)),tt(0x1,_0x2ae7a9)],oe);var an=Object['getOwnPropertyDescriptor'],cn=(_0x54b59d,_0x5d9745,_0x1f9d1,_0x51e5d3)=>{const _0x319173=_0x2dd5e3;for(var _0x3dc9e4=_0x51e5d3>0x1?void 0x0:_0x51e5d3?an(_0x5d9745,_0x1f9d1):_0x5d9745,_0x5c91dc=_0x54b59d[_0x319173(0x278)]-0x1,_0x1d65e1;_0x5c91dc>=0x0;_0x5c91dc--)(_0x1d65e1=_0x54b59d[_0x5c91dc])&&(_0x3dc9e4=_0x1d65e1(_0x3dc9e4)||_0x3dc9e4);return _0x3dc9e4;},U=(_0xbf600c,_0x95a7d5)=>(_0x35bf0b,_0x141264)=>_0x95a7d5(_0x35bf0b,_0x141264,_0xbf600c);let ae=class extends _0x21c4e5{constructor(_0x2c40c5,_0x471e21,_0x86e4e7,_0x5eb98f,_0x1b4e52,_0x431ac8,_0x39f0cd,_0x341fd9){const _0x4e1082=_0x2dd5e3;super(),_(this,_0x4e1082(0x1a5),new _0x4ee13a(_0x12f766[_0x4e1082(0x12b)])),(this[_0x4e1082(0x223)]=_0x2c40c5,this[_0x4e1082(0x271)]=_0x471e21,this[_0x4e1082(0x192)]=_0x86e4e7,this[_0x4e1082(0x2cb)]=_0x5eb98f,this['_docTransformSelectionsService']=_0x1b4e52,this[_0x4e1082(0x1bd)]=_0x431ac8,this['_messageService']=_0x39f0cd,this[_0x4e1082(0x235)]=_0x341fd9,this[_0x4e1082(0x1a4)]());}[_0x2dd5e3(0x1a4)](){const _0x4b6d51=_0x2dd5e3;this[_0x4b6d51(0x21a)](this[_0x4b6d51(0x271)][_0x4b6d51(0x123)][_0x4b6d51(0x276)](_0x2e3a12=>{const _0x4216ff=_0x4b6d51,_0x3d8752=this['_docStateChangeManagerService'][_0x4216ff(0x12f)][_0x4216ff(0x276)](_0x266432=>{const _0x453a25=_0x4216ff;if(_0x266432==null)return;const {unitId:_0x27fe4d,redoState:_0x3a7321,commandId:_0x343d24}=_0x266432;if(_0x27fe4d!==_0x2e3a12['unitID'])return;const _0x547cd2={'id':_0x343d24,'type':_0x3f55d9[_0x453a25(0x2b7)],'params':{'unitId':_0x27fe4d,'actions':_0x3a7321[_0x453a25(0x27d)],'textRanges':null}};_0x2e3a12[_0x453a25(0x1bb)](_0x547cd2);});if(_0x2e3a12[_0x4216ff(0x21a)](_0x3d8752),_0x2e3a12 instanceof _0x5a6212){const _0x17755d={'onTransformIME':_0x394e56=>this[_0x4216ff(0x192)][_0x4216ff(0x2e4)](_0x394e56),'onTransformState':_0x52e5a4=>this[_0x4216ff(0x2cb)][_0x4216ff(0x198)](_0x52e5a4),'onTransformSelections':_0x315b73=>this[_0x4216ff(0x2ad)][_0x4216ff(0x132)](_0x315b73),'onSyncEditingCollabCursor':_0x4bcbc9=>this['_docSyncEditingCollabCursorService'][_0x4216ff(0x2b5)](_0x4bcbc9),'onTransformRemoteChangesetByIMECache':_0x47ece4=>this['_docTransformIMECacheService'][_0x4216ff(0x27f)](_0x47ece4),'onTransformRemoteChangesetByStateCache':_0xc56e65=>this[_0x4216ff(0x2cb)][_0x4216ff(0x27f)](_0xc56e65)};_0x2e3a12['addHandlerCallback'](_0x17755d);}}));}};ae=cn([U(0x0,_0x5b7f95(_0x5b25ec)),U(0x1,_0x5b7f95(_0x3de98f)),U(0x2,_0x5b7f95(ne)),U(0x3,_0x5b7f95(re)),U(0x4,_0x5b7f95(oe)),U(0x5,_0x5b7f95(He)),U(0x6,_0x41a076),U(0x7,_0x5b7f95(_0x2ef23e))],ae);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x162557,_0xfdaa32,_0x332747,_0x5dabab)=>{const _0x102210=_0x2dd5e3;for(var _0x602039=_0x5dabab>0x1?void 0x0:_0x5dabab?ln(_0xfdaa32,_0x332747):_0xfdaa32,_0x30a0fe=_0x162557[_0x102210(0x278)]-0x1,_0x1371e0;_0x30a0fe>=0x0;_0x30a0fe--)(_0x1371e0=_0x162557[_0x30a0fe])&&(_0x602039=_0x1371e0(_0x602039)||_0x602039);return _0x602039;},Ee=(_0x215776,_0xced641)=>(_0x82767a,_0x6b8c8f)=>_0xced641(_0x82767a,_0x6b8c8f,_0x215776);let we=class extends _0x21c4e5{constructor(_0x506fe3,_0xebe0b5,_0x87b1d7){const _0x3c8e37=_0x2dd5e3;super(),_(this,'_cachedData',new Map()),_(this,_0x3c8e37(0x2ca),new Map()),_(this,_0x3c8e37(0x2b3),!0x1),(this[_0x3c8e37(0x1fc)]=_0x506fe3,this[_0x3c8e37(0x1db)]=_0xebe0b5,this[_0x3c8e37(0x282)]=_0x87b1d7);}['disableLocalCache'](){const _0x48828c=_0x2dd5e3;this[_0x48828c(0x2b3)]=!0x0;}[_0x2dd5e3(0x153)](){const _0x245670=_0x2dd5e3;this[_0x245670(0x2b3)]=!0x1;}get[_0x2dd5e3(0x2dd)](){return this['_saveTaskMap'];}['dispose'](){const _0x1af6a5=_0x2dd5e3;this['exhaustSavingTask']()[_0x1af6a5(0x1e7)](()=>super[_0x1af6a5(0x232)]());}async[_0x2dd5e3(0x22b)](_0x870bfd){const _0x4c7502=_0x2dd5e3;return this[_0x4c7502(0x2b3)]?null:this['_localStorageService'][_0x4c7502(0x2ef)](_0x1c9113(_0x870bfd));}async['saveOfflineData'](_0x2fea16,_0x35931d){const _0xee0c5d=_0x2dd5e3;return!!this[_0xee0c5d(0x1db)][_0xee0c5d(0x19d)](_0x2fea16,_0x35931d);}['updateOfflineData'](_0x5c7bb8,_0x10a2dd,_0x10da84,_0x1e7124){const _0x468703=_0x2dd5e3,_0x2ea03f=this[_0x468703(0x282)][_0x468703(0x287)](_0x5c7bb8);this[_0x468703(0x21f)][_0x468703(0x18e)](_0x5c7bb8,{'unitID':_0x5c7bb8,'type':_0x10a2dd,'awaitingChangeset':_0x10da84,'mutations':_0x1e7124,'rev':_0x2ea03f}),this[_0x468703(0x2ca)][_0x468703(0x2be)](_0x5c7bb8)||this[_0x468703(0x1ad)](_0x5c7bb8);}[_0x2dd5e3(0x1ad)](_0x20a66d){const _0x539245=_0x2dd5e3,_0x1f6857=this['_getSaveTimeout']();_0x1f6857===0x0?this[_0x539245(0x144)](_0x20a66d):this[_0x539245(0x2ca)][_0x539245(0x18e)](_0x20a66d,setTimeout(()=>this[_0x539245(0x144)](_0x20a66d),_0x1f6857));}[_0x2dd5e3(0x157)](){const _0x418bbe=_0x2dd5e3;var _0x20a7db;return(_0x20a7db=this['_configService'][_0x418bbe(0x228)](_0x1e4549))!=null?_0x20a7db:_0x288254;}[_0x2dd5e3(0x144)](_0x14b1e3){const _0x3c6a23=_0x2dd5e3,_0x44405e=this['_saveTaskMap']['get'](_0x14b1e3);return _0x44405e!==void 0x0&&window['clearTimeout'](_0x44405e),this['_localStorageService']['setItem'](_0x1c9113(_0x14b1e3),this[_0x3c6a23(0x21f)][_0x3c6a23(0x148)](_0x14b1e3))[_0x3c6a23(0x1e7)](()=>this['_saveTaskMap']['delete'](_0x14b1e3));}async[_0x2dd5e3(0x15d)](){const _0x5adc71=_0x2dd5e3,_0x56fd90=[];this[_0x5adc71(0x2ca)]['forEach']((_0x5ba274,_0x50b27e)=>{const _0x3f11b6=_0x5adc71;window['clearTimeout'](_0x5ba274),_0x56fd90['push'](this[_0x3f11b6(0x144)](_0x50b27e)[_0x3f11b6(0x1e7)](()=>{const _0x3d6c24=_0x3f11b6;this[_0x3d6c24(0x2ca)][_0x3d6c24(0x2e3)](_0x50b27e);}));}),await Promise[_0x5adc71(0x293)](_0x56fd90);}};we=_n([Ee(0x0,_0x313249),Ee(0x1,_0x2e0c63),Ee(0x2,_0x5b7f95(_0x984504))],we);class hn extends _0x2e3fba{constructor(){const _0x2f0c5c=_0x2dd5e3;super(),_(this,_0x2f0c5c(0x1ff)),this[_0x2f0c5c(0x1ff)]=_0x274c90(window,_0x2f0c5c(0x1b0))['pipe'](_0x44686d(this[_0x2f0c5c(0x156)]),_0x5af7e7(0x1),_0x2c0056(void 0x0));}['setParam'](_0x2a8346,_0x35e2b7,_0x37a2d4=!0x1){const _0x483eb5=_0x2dd5e3,_0x2e9a52=new URL(window[_0x483eb5(0x1e0)][_0x483eb5(0x2fb)]);_0x2e9a52[_0x483eb5(0x18d)][_0x483eb5(0x18e)](_0x2a8346,_0x35e2b7),_0x37a2d4?window['history'][_0x483eb5(0x1c0)]('','',_0x2e9a52[_0x483eb5(0x179)]()):window[_0x483eb5(0x2ae)][_0x483eb5(0x20e)]('','',_0x2e9a52[_0x483eb5(0x179)]());}[_0x2dd5e3(0x2c0)](_0x27550d,_0x1a9a91=!0x1){const _0x39b365=_0x2dd5e3,_0x5e16fd=new URL(window[_0x39b365(0x1e0)][_0x39b365(0x2fb)]);_0x5e16fd[_0x39b365(0x18d)][_0x39b365(0x2e3)](_0x27550d),_0x1a9a91?window[_0x39b365(0x2ae)][_0x39b365(0x1c0)]('','',_0x5e16fd[_0x39b365(0x179)]()):window[_0x39b365(0x2ae)][_0x39b365(0x20e)]('','',_0x5e16fd['toString']());}[_0x2dd5e3(0x118)](_0x4e1075){const _0x2b72d8=_0x2dd5e3;var _0x49c2c7;return(_0x49c2c7=new URL(window[_0x2b72d8(0x1e0)][_0x2b72d8(0x2fb)])[_0x2b72d8(0x18d)][_0x2b72d8(0x148)](_0x4e1075))!=null?_0x49c2c7:void 0x0;}}var un=Object[_0x2dd5e3(0x25f)],dn=Object['getOwnPropertyDescriptor'],fn=(_0x59c86d,_0x5cebea,_0x2dd0c6)=>_0x5cebea in _0x59c86d?un(_0x59c86d,_0x5cebea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dd0c6}):_0x59c86d[_0x5cebea]=_0x2dd0c6,Sn=(_0x29a113,_0x109264,_0x54fb43,_0x13dcb5)=>{const _0x29c33a=_0x2dd5e3;for(var _0x1ad381=_0x13dcb5>0x1?void 0x0:_0x13dcb5?dn(_0x109264,_0x54fb43):_0x109264,_0x471ed5=_0x29a113[_0x29c33a(0x278)]-0x1,_0x49d2f0;_0x471ed5>=0x0;_0x471ed5--)(_0x49d2f0=_0x29a113[_0x471ed5])&&(_0x1ad381=_0x49d2f0(_0x1ad381)||_0x1ad381);return _0x1ad381;},Oe=(_0x5a217a,_0xde7dd3)=>(_0x1f7fa8,_0x39af02)=>_0xde7dd3(_0x1f7fa8,_0x39af02,_0x5a217a),mn=(_0x217742,_0x56741f,_0x2470fe)=>fn(_0x217742,_0x56741f+'',_0x2470fe);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x1546ae{constructor(_0x57dd60=et,_0x59b75b,_0x8b3d3a,_0x46ab9f){const _0x572f0a=_0x2dd5e3;super(),this[_0x572f0a(0x175)]=_0x57dd60,this[_0x572f0a(0x244)]=_0x59b75b,this[_0x572f0a(0x2aa)]=_0x8b3d3a,this[_0x572f0a(0x1fc)]=_0x46ab9f;const {..._0x264bf0}=_0x35bde1({},et,this[_0x572f0a(0x175)]);this[_0x572f0a(0x1fc)][_0x572f0a(0x266)](Zi,_0x264bf0);}[_0x2dd5e3(0x2fc)](){const _0x1ab650=_0x2dd5e3;this[_0x1ab650(0x2da)](),this[_0x1ab650(0x20c)]();}[_0x2dd5e3(0x2f7)](){const _0x309221=_0x2dd5e3;this[_0x309221(0x25b)]();}[_0x2dd5e3(0x2da)](){const _0x32fc89=_0x2dd5e3;var _0x5096b0;const _0x3b6f05=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x1046c0,{'useClass':_0x8bf15b}],[_0x467e13,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x3bfd00(this[_0x32fc89(0x2aa)],_0x4b410e(_0x3b6f05,(_0x5096b0=this[_0x32fc89(0x175)])==null?void 0x0:_0x5096b0['override']));}['_registerRenderDependencies'](){const _0x1c8dfb=_0x2dd5e3;this[_0x1c8dfb(0x21a)](this[_0x1c8dfb(0x244)][_0x1c8dfb(0x14f)](_0x3c4001[_0x1c8dfb(0x2bd)],[Le])),this[_0x1c8dfb(0x21a)](this[_0x1c8dfb(0x244)][_0x1c8dfb(0x14f)](_0x3c4001[_0x1c8dfb(0x2a3)],[Pe]));}['_initDependencies'](){_0x38d79c(this['_injector'],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,'pluginName',In),Ae=Sn([_0x14cb37(_0x38a345),Oe(0x1,_0x2543e2),Oe(0x2,_0x5b7f95(_0x3325a5)),Oe(0x3,_0x313249)],Ae);var gn=Object[_0x2dd5e3(0x1c1)],vn=(_0x54f2b3,_0x430f4b,_0x449c52,_0x61593f)=>{for(var _0x57455e=_0x61593f>0x1?void 0x0:_0x61593f?gn(_0x430f4b,_0x449c52):_0x430f4b,_0xb8583c=_0x54f2b3['length']-0x1,_0x38f0ad;_0xb8583c>=0x0;_0xb8583c--)(_0x38f0ad=_0x54f2b3[_0xb8583c])&&(_0x57455e=_0x38f0ad(_0x57455e)||_0x57455e);return _0x57455e;},K=(_0x1ab080,_0xc96a17)=>(_0x40ef32,_0x3f7e32)=>_0xc96a17(_0x40ef32,_0x3f7e32,_0x1ab080);let st=class extends _0x444c05{constructor(_0x27f333,_0xd17a32,_0x52a6f1,_0x265c1f,_0x2e4b5b){super(_0x27f333,_0xd17a32,_0x52a6f1,_0x265c1f,_0x2e4b5b);}async[_0x2dd5e3(0x25e)](_0x541144){const _0x373f80=_0x2dd5e3,_0x46363a=await this[_0x373f80(0x1f9)](),_0x343511=this[_0x373f80(0x1b1)](_0x541144,_0x46363a);return this[_0x373f80(0x304)](_0x343511);}[_0x2dd5e3(0x1b1)](_0x32f181,_0x1b4ffb){const _0x8aee02=_0x2dd5e3,_0x51e79d=typeof window>'u'?new URL(_0x32f181):new URL(_0x32f181,window['location'][_0x8aee02(0x1b3)]);_0x51e79d[_0x8aee02(0x18d)][_0x8aee02(0x18e)]('sessionTicket',_0x1b4ffb);const _0x5a7149=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8aee02(0x1e0)]['search']);return _0x5a7149[_0x8aee02(0x148)](_0x8aee02(0x1e3))&&_0x51e79d['searchParams'][_0x8aee02(0x18e)]('runId',_0x5a7149['get'](_0x8aee02(0x1e3))),_0x51e79d[_0x8aee02(0x179)]();}async[_0x2dd5e3(0x1f9)](){const _0x3837e8=_0x2dd5e3;var _0x518ec8,_0x458d1d,_0x4724f9;const _0x5300da=this['_configService'][_0x3837e8(0x228)](_0x282bd2),_0x4e1bc1=(_0x518ec8=_0x5300da==null?void 0x0:_0x5300da[_0x3837e8(0x237)])!=null?_0x518ec8:_0xd2a510;return(_0x4724f9=(_0x458d1d=(await this[_0x3837e8(0x183)][_0x3837e8(0x148)](_0x4e1bc1,{'headers':{'Content-Type':'application/json'}}))[_0x3837e8(0x26a)])==null?void 0x0:_0x458d1d['ticket'])!=null?_0x4724f9:'';}};st=vn([K(0x0,_0x5b7f95(_0x3325a5)),K(0x1,_0x5b7f95(_0x21e7b9)),K(0x2,_0x313249),K(0x3,_0x447620),K(0x4,_0x53a181)],st);const it=0x7530,nt=_0x2dd5e3(0x1a9);class Fn extends _0x21c4e5{constructor(){const _0x410688=_0x2dd5e3;super(),_(this,_0x410688(0x243),_0x51db46()),_(this,_0x410688(0x298),new Set()),_(this,_0x410688(0x210),new Map()),_(this,_0x410688(0x21d),null),_(this,_0x410688(0x1bc),new Map()),_(this,'_unitStatus',new Map()),this[_0x410688(0x224)]();}[_0x2dd5e3(0x232)](){const _0x353eb2=_0x2dd5e3;super[_0x353eb2(0x232)](),this[_0x353eb2(0x1bc)][_0x353eb2(0x12e)]((_0x5947a1,_0x635567)=>this[_0x353eb2(0x2d8)](_0x635567)),this[_0x353eb2(0x21d)]&&window[_0x353eb2(0x135)](this[_0x353eb2(0x21d)]);}['getUnitStatus$'](_0x51fe9f){const _0x4c155e=_0x2dd5e3;return this['_ensureSubject'](_0x51fe9f)[_0x4c155e(0x227)](_0x46ed2e());}[_0x2dd5e3(0x28c)](_0x13d037){const _0x3a0e3c=_0x2dd5e3;this['_selfUnitIDs']['size']===0x0&&this[_0x3a0e3c(0x233)](),this[_0x3a0e3c(0x298)][_0x3a0e3c(0x308)](_0x13d037),this[_0x3a0e3c(0x197)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x13d037],'isForwarded':!0x1});}[_0x2dd5e3(0x119)](_0x43ec0d){const _0x5b9db8=_0x2dd5e3;this[_0x5b9db8(0x298)][_0x5b9db8(0x2e3)](_0x43ec0d),this[_0x5b9db8(0x298)][_0x5b9db8(0x286)]===0x0&&this['_heartbeatTimer']&&window[_0x5b9db8(0x135)](this[_0x5b9db8(0x21d)]);}[_0x2dd5e3(0x224)](){const _0x3b067f=_0x2dd5e3;this[_0x3b067f(0x21a)](_0x1c7e0e(_0x274c90(window,_0x3b067f(0x2d6))['subscribe'](_0x3132c7=>{const _0x321f4e=_0x3b067f;if(_0x3132c7[_0x321f4e(0x2fa)]!==nt||!_0x3132c7[_0x321f4e(0x288)])return;const _0x340468=JSON[_0x321f4e(0x2bb)](_0x3132c7[_0x321f4e(0x288)]);this['_handleEvent'](_0x340468);}))),window[_0x3b067f(0x168)](_0x3b067f(0x11f),()=>this[_0x3b067f(0x197)]({'type':0x1,'memberID':this[_0x3b067f(0x243)],'unitIDs':Array[_0x3b067f(0x158)](this[_0x3b067f(0x298)])}));}[_0x2dd5e3(0x2f4)](_0x184d5e){const _0x428899=_0x2dd5e3;switch(_0x184d5e[_0x428899(0x2e0)]){case 0x0:this['_handleJoinEvent'](_0x184d5e);break;case 0x1:this[_0x428899(0x1f5)](_0x184d5e);break;case 0x2:this[_0x428899(0x1be)](_0x184d5e);break;}}['_handleJoinEvent'](_0xfe0429){const _0x421ab8=_0x2dd5e3,{unitIDs:_0x497c20,memberID:_0x3887f9,isForwarded:_0x4250a9}=_0xfe0429;_0x497c20[_0x421ab8(0x12e)](_0x5179a5=>{const _0x3c03f4=_0x421ab8;if(!_0x4250a9&&this[_0x3c03f4(0x210)][_0x3c03f4(0x2be)](_0x5179a5)&&this[_0x3c03f4(0x2dc)](_0x5179a5)[_0x3c03f4(0x16f)](_0xdf192['OTHER_CLIENTS_EDITING']),!this[_0x3c03f4(0x210)]['has'](_0x5179a5)||!this['_unitOnClients'][_0x3c03f4(0x148)](_0x5179a5)[_0x3c03f4(0x2be)](_0x3887f9)){const _0x2dd29a=this['_unitOnClients'][_0x3c03f4(0x148)](_0x5179a5)||new Set();_0x2dd29a['add'](_0x3887f9),this[_0x3c03f4(0x210)][_0x3c03f4(0x18e)](_0x5179a5,_0x2dd29a),this[_0x3c03f4(0x263)](_0x3887f9);}}),_0x4250a9||this[_0x421ab8(0x197)]({'type':0x0,'memberID':this[_0x421ab8(0x243)],'unitIDs':[...this[_0x421ab8(0x298)]],'isForwarded':!0x0});}[_0x2dd5e3(0x263)](_0x4b9b0a){const _0x139a93=_0x2dd5e3;this['_removeClearOtherTimer'](_0x4b9b0a);const _0x4f4481=window['setTimeout'](()=>{const _0x1ac714=_0xafbe;this[_0x1ac714(0x210)][_0x1ac714(0x12e)](_0x70d288=>{const _0x3da8bc=_0x1ac714;_0x70d288[_0x3da8bc(0x2e3)](_0x4b9b0a);});},it*0x2);this[_0x139a93(0x1bc)]['set'](_0x4b9b0a,_0x4f4481);}[_0x2dd5e3(0x2d8)](_0x2486b2){const _0x5c3fe8=_0x2dd5e3;if(this['_clearOtherTimers'][_0x5c3fe8(0x2be)](_0x2486b2)){const _0x5aaedc=this[_0x5c3fe8(0x1bc)][_0x5c3fe8(0x148)](_0x2486b2);_0x5aaedc&&window[_0x5c3fe8(0x2d2)](_0x5aaedc),this[_0x5c3fe8(0x1bc)][_0x5c3fe8(0x18e)](_0x2486b2,null);}}[_0x2dd5e3(0x1f5)](_0x451c6f){const _0x3b957b=_0x2dd5e3,{memberID:_0x53a369,unitIDs:_0x424d55}=_0x451c6f;_0x424d55[_0x3b957b(0x12e)](_0x58004b=>{const _0x544845=_0x3b957b;var _0x1aa1cf;const _0x460eaf=this[_0x544845(0x210)][_0x544845(0x148)](_0x58004b);_0x460eaf&&(_0x460eaf[_0x544845(0x2e3)](_0x53a369),(_0x1aa1cf=this['_ensureSubject'](_0x58004b))==null||_0x1aa1cf[_0x544845(0x16f)](_0x460eaf[_0x544845(0x286)]===0x0?_0xdf192[_0x544845(0x1b2)]:_0xdf192[_0x544845(0x285)]));}),this[_0x3b957b(0x2d8)](_0x53a369);}[_0x2dd5e3(0x1be)](_0x3e936b){const _0x1579b1=_0x2dd5e3;this[_0x1579b1(0x263)](_0x3e936b[_0x1579b1(0x184)]);}[_0x2dd5e3(0x197)](_0x4a7f73){const _0x3489eb=_0x2dd5e3;localStorage['setItem'](nt,JSON[_0x3489eb(0x124)](_0x4a7f73));}[_0x2dd5e3(0x233)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x5af93f=_0xafbe;this[_0x5af93f(0x197)]({'type':0x2,'memberID':this['_id']});},it);}[_0x2dd5e3(0x2dc)](_0x2f1913){const _0x3f7b91=_0x2dd5e3;return this[_0x3f7b91(0x1a8)][_0x3f7b91(0x2be)](_0x2f1913)||this[_0x3f7b91(0x1a8)]['set'](_0x2f1913,new _0x4ee13a(_0xdf192['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x3f7b91(0x148)](_0x2f1913);}}var Mt=(_0x38d1a0=>(_0x38d1a0[_0x38d1a0['UNDEFINED']=0x0]='UNDEFINED',_0x38d1a0[_0x38d1a0['OK']=0x1]='OK',_0x38d1a0[_0x38d1a0['INTERNAL_ERROR']=0x2]=_0x2dd5e3(0x1a0),_0x38d1a0[_0x38d1a0['PERMISSION_DENIED']=0x3]=_0x2dd5e3(0x1e8),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x2d1)]=0x4]='NOT_FOUND',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1c4)]=0x5]=_0x2dd5e3(0x1c4),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x13b)]=0x6]=_0x2dd5e3(0x13b),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x23b)]=0x7]='INVALID_ARGUMENT',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1c5)]=0x8]=_0x2dd5e3(0x1c5),_0x38d1a0[_0x38d1a0['COMPLETION_FINISHED']=0x9]=_0x2dd5e3(0x218),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x28f)]=0xa]=_0x2dd5e3(0x28f),_0x38d1a0[_0x38d1a0['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x127)]=0xc]=_0x2dd5e3(0x127),_0x38d1a0[_0x38d1a0['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x216)]=0xe]=_0x2dd5e3(0x216),_0x38d1a0[_0x38d1a0['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x38d1a0[_0x38d1a0['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2dd5e3(0x265),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x2b4)]=0x1772]=_0x2dd5e3(0x2b4),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x23a)]=0x1773]=_0x2dd5e3(0x23a),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x2eb)]=0x1b59]=_0x2dd5e3(0x2eb),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1f1)]=0x1b5a]=_0x2dd5e3(0x1f1),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x217)]=0x1b5b]=_0x2dd5e3(0x217),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x15b)]=0x1b5c]=_0x2dd5e3(0x15b),_0x38d1a0[_0x38d1a0['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x26e)]=0x1f41]=_0x2dd5e3(0x26e),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x191)]=0x2329]=_0x2dd5e3(0x191),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1dc)]=0x232a]=_0x2dd5e3(0x1dc),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1d4)]=0x232b]=_0x2dd5e3(0x1d4),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x23d)]=0x232c]=_0x2dd5e3(0x23d),_0x38d1a0[_0x38d1a0['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x38d1a0[_0x38d1a0['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x2dd5e3(0x234),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x2e2)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x30d)]=0x2713]=_0x2dd5e3(0x30d),_0x38d1a0[_0x38d1a0['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2dd5e3(0x238),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x280)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x196)]=0x271b]=_0x2dd5e3(0x196),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x17a)]=0x271c]=_0x2dd5e3(0x17a),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x26d)]=0x271d]=_0x2dd5e3(0x26d),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x239)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x38d1a0[_0x38d1a0['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x161)]=0x2720]=_0x2dd5e3(0x161),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x2c1)]=0x2af9]=_0x2dd5e3(0x2c1),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x303)]=0x2ee1]=_0x2dd5e3(0x303),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1e1)]=0x2ee2]=_0x2dd5e3(0x1e1),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x19c)]=0x2ee3]=_0x2dd5e3(0x19c),_0x38d1a0[_0x38d1a0['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2dd5e3(0x27b),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x2c9)]=0x2ee5]=_0x2dd5e3(0x2c9),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x215)]=0x32c9]=_0x2dd5e3(0x215),_0x38d1a0[_0x38d1a0['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2dd5e3(0x15c),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1de)]=0x32cb]=_0x2dd5e3(0x1de),_0x38d1a0[_0x38d1a0[_0x2dd5e3(0x1a1)]=-0x1]=_0x2dd5e3(0x1a1),_0x38d1a0))(Mt||{}),pn=Object[_0x2dd5e3(0x1c1)],Cn=(_0x50dc8e,_0x590acc,_0x454c85,_0x385229)=>{const _0x611c37=_0x2dd5e3;for(var _0x5e8ac2=_0x385229>0x1?void 0x0:_0x385229?pn(_0x590acc,_0x454c85):_0x590acc,_0x9dd69b=_0x50dc8e[_0x611c37(0x278)]-0x1,_0x1a9fe3;_0x9dd69b>=0x0;_0x9dd69b--)(_0x1a9fe3=_0x50dc8e[_0x9dd69b])&&(_0x5e8ac2=_0x1a9fe3(_0x5e8ac2)||_0x5e8ac2);return _0x5e8ac2;},be=(_0xdc2b64,_0x283b9c)=>(_0x8e2fc2,_0x5a4f8e)=>_0x283b9c(_0x8e2fc2,_0x5a4f8e,_0xdc2b64);let rt=class extends _0x21c4e5{constructor(_0x1fd513,_0x373e3a,_0x48f99e){const _0x2a6c49=_0x2dd5e3;super(),this[_0x2a6c49(0x18a)]=_0x1fd513,this[_0x2a6c49(0x183)]=_0x373e3a,this[_0x2a6c49(0x1fc)]=_0x48f99e;}async[_0x2dd5e3(0x18f)](_0x34a0a0,_0x3e06dd,_0x3b79cb,..._0x57ef93){const _0x2c456d=_0x2dd5e3;var _0x33cfd8,_0xc566fa,_0x5ab846,_0x1737ea;const _0x14771e=this[_0x2c456d(0x18a)][_0x2c456d(0x2ed)]();if(!_0x14771e)throw new Error(_0x2c456d(0x2e7));const _0x464ac0=((_0x33cfd8=this[_0x2c456d(0x1fc)][_0x2c456d(0x228)](_0x4ff754))!=null?_0x33cfd8:_0xfde338)+'/'+_0x34a0a0+_0x2c456d(0x137)+_0x3e06dd,_0x11b985=new URL(window[_0x2c456d(0x1e0)][_0x2c456d(0x2fb)]),_0x2e1b34={'scriptId':_0x34a0a0,'runId':(_0xc566fa=_0x11b985[_0x2c456d(0x18d)][_0x2c456d(0x148)](_0x2c456d(0x1e3)))!=null?_0xc566fa:'','function':_0x3e06dd,'unitId':_0x14771e[_0x2c456d(0x231)](),'argsOfFunction':JSON[_0x2c456d(0x124)](_0x57ef93),'invokeId':(_0x5ab846=_0x3b79cb['invokeId'])!=null?_0x5ab846:'','executionId':(_0x1737ea=_0x3b79cb[_0x2c456d(0x1d5)])!=null?_0x1737ea:''};try{const _0x531f75=await this[_0x2c456d(0x183)][_0x2c456d(0x2c3)](_0x464ac0,{'body':_0x2e1b34});return _0x531f75['body']['error']&&_0x531f75['body'][_0x2c456d(0x2f2)]['code']!==Mt['OK']?_0x2c456d(0x1ef):_0x531f75['body']['result'];}catch{return _0x2c456d(0x1ef);}}};rt=Cn([be(0x0,_0x497731),be(0x1,_0x5b7f95(_0x21e7b9)),be(0x2,_0x313249)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Wi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
|
|
1
|
+
const _0xf42a26=_0x4fb2;(function(_0x4b1217,_0x349b59){const _0x1dcb0a=_0x4fb2,_0x310c44=_0x4b1217();while(!![]){try{const _0x5351a1=parseInt(_0x1dcb0a(0x182))/0x1+-parseInt(_0x1dcb0a(0x168))/0x2+parseInt(_0x1dcb0a(0x241))/0x3+-parseInt(_0x1dcb0a(0x12d))/0x4+-parseInt(_0x1dcb0a(0x16f))/0x5+-parseInt(_0x1dcb0a(0x25b))/0x6+-parseInt(_0x1dcb0a(0x296))/0x7*(-parseInt(_0x1dcb0a(0x1ae))/0x8);if(_0x5351a1===_0x349b59)break;else _0x310c44['push'](_0x310c44['shift']());}catch(_0x31ef4a){_0x310c44['push'](_0x310c44['shift']());}}}(_0x3abf,0x6ad9f));var $t=Object[_0xf42a26(0x187)],xt=(_0xef92c8,_0x4d9638,_0x1ab3c5)=>_0x4d9638 in _0xef92c8?$t(_0xef92c8,_0x4d9638,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ab3c5}):_0xef92c8[_0x4d9638]=_0x1ab3c5,_=(_0xde9ad1,_0x2169e2,_0x4435d5)=>xt(_0xde9ad1,typeof _0x2169e2!='symbol'?_0x2169e2+'':_0x2169e2,_0x4435d5);import{MemberService as _0x21643a,SessionStatus as _0x37a431,CollaborationSessionService as _0x185917,CollaborationStatus as _0x128ff3,CollaborationController as _0x1b39da,ILocalCacheService as _0x30966a,CollaborationUIEventService as _0x48bf70,CollaborationUIEventId as _0xfb429d,DataLoaderService as _0x47d780,DocCollaborationEntity as _0xdcbea,getLocalCacheKey as _0x1d74fa,LOCAL_CACHE_INTERVAL as _0x42bc6d,LOCAL_CACHE_INTERVAL_KEY as _0x9ca664,UniverCollaborationClientPlugin as _0x11cf84,CollaborationSocketService as _0x1ad7a7,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2a5fcd,DEFAULT_WS_SESSION_TICKET_URL as _0x54705a,UnitStatus as _0x494160,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2af0c4,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3157b6}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x14f0e9,Disposable as _0x382bf8,DOC_RANGE_TYPE as _0x2d8b1b,Inject as _0x29894a,Injector as _0x50c06f,IUniverInstanceService as _0x26c0aa,ICommandService as _0x2320d3,debounce as _0x4729f8,Rectangle as _0x216ef3,DisposableCollection as _0x58b937,toDisposable as _0x56fd5a,UniverInstanceType as _0x102ac0,Tools as _0x51f6f1,COLORS as _0x277a32,ColorKit as _0x1240e9,ThemeService as _0x35497a,fromEventSubject as _0x1b2c45,LocaleService as _0x5e2123,createIdentifier as _0x103abb,ILogService as _0xe3c8a,Optional as _0x19d3e8,Workbook as _0x7953d3,CommandType as _0x5a1981,IConfigService as _0xf5f608,ILocalStorageService as _0x29bdc4,DependentOn as _0xa2f535,Plugin as _0x5c0e7c,merge as _0x87ab8b,registerDependencies as _0x10a64f,mergeOverrideWithDependencies as _0x1e3fe7,touchDependencies as _0x22584b,generateRandomId as _0x3d8d95}from'@univerjs/core';import{Shape as _0x1bb8d9,Rect as _0x99e1c8,getColor as _0x2e8c05,RegularPolygon as _0x7bab94,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x43bdc5,Vector2 as _0x542be7,SHEET_VIEWPORT_KEY as _0x691c2a,IRenderManagerService as _0x1283ce}from'@univerjs/engine-render';function _0x4fb2(_0x5c8dc4,_0x2d56c3){const _0x3abf83=_0x3abf();return _0x4fb2=function(_0x4fb23b,_0xe2d8ec){_0x4fb23b=_0x4fb23b-0xdd;let _0x44c1a6=_0x3abf83[_0x4fb23b];return _0x44c1a6;},_0x4fb2(_0x5c8dc4,_0x2d56c3);}import{ISocketService as _0x443e5f,WebSocketService as _0x5088fa,HTTPService as _0x56c2d5}from'@univerjs/network';import{IDocClipboardService as _0x49751a,NodePositionConvertToCursor as _0x1945f6,NodePositionConvertToRectRange as _0x4c56d3,TEXT_RANGE_LAYER_INDEX as _0x46c059,SetDocZoomRatioOperation as _0x5129e9,DocIMEInputManagerService as _0x258c9c,DocStateChangeManagerService as _0x37cc6d}from'@univerjs/docs-ui';import{IImageIoService as _0x4001a2}from'@univerjs/drawing';import{BehaviorSubject as _0x535baf,debounceTime as _0x4e2a4b,takeUntil as _0x1101d1,Subject as _0x3db6e0,filter as _0x2d2f2f,switchMap as _0x188327,merge as _0x15e802,combineLatest as _0xe7a4f6,of as _0x3a77a9,fromEvent as _0x33c672,shareReplay as _0x2fab77,mapTo as _0x2a2d8e,distinctUntilChanged as _0x1842b9}from'rxjs';import{ITransformService as _0x167c0a,CollaborationEvent as _0x9f054f,isTransformMutationFailure as _0x5ec000,isTransformMutationsWithChangesetSuccess as _0x3b04b2,RevisionService as _0x518622,ISnapshotServerService as _0x182cc5}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x500fdf,RichTextEditingMutation as _0x879bad,DocSelectionManagerService as _0x5e82eb,DocSkeletonManagerService as _0x213ad8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x2d92c5,serializeRangeWithSheet as _0x138811}from'@univerjs/engine-formula';import{RefRangeService as _0x41fcb0,SetSelectionsOperation as _0x337bd2,SheetsSelectionsService as _0x27dc79,EffectRefRangId as _0x553147,handleIRemoveRow as _0x5ef8c4,handleIRemoveCol as _0x57f1a0,handleMoveRange as _0x189f05,handleInsertRow as _0x8c968e,handleInsertRangeMoveRight as _0x3c9087,handleInsertRangeMoveDown as _0x2a24e3,handleInsertCol as _0x4419e9,handleDeleteRangeMoveUp as _0x10fb70,handleDeleteRangeMoveLeft as _0x1675e5,runRefRangeMutations as _0x4b5130,SetWorksheetActivateCommand as _0x12eabb}from'@univerjs/sheets';import{map as _0x53609f,filter as _0x350650,throttleTime as _0x1493bb,takeUntil as _0xcd166b,switchMap as _0xcd7cbc}from'rxjs/operators';import{SheetSkeletonManagerService as _0xddd58f,getCoordByCell as _0x4684b7,getSheetObject as _0x4d4d0a}from'@univerjs/sheets-ui';import{jsx as _0x250ed4,jsxs as _0x290399}from'react/jsx-runtime';import{useObservable as _0x34e523,useDependency as _0x1b4157,IUIPartsService as _0x3b847f,BuiltInUIPart as _0x5f3ae7,connectInjector as _0x2c9e44,IBeforeCloseService as _0x1f171c,IMessageService as _0x29ae03,INotificationService as _0x3f120a}from'@univerjs/ui';import{Tooltip as _0x457153,clsx as _0x259845,MessageType as _0x132b2f}from'@univerjs/design';import{forwardRef as _0x1f8b6f,useRef as _0x431501,createElement as _0x39f8fc,useCallback as _0x3cda26}from'react';import{IRemoteInstanceService as _0x48e1a4}from'@univerjs/rpc';var ci=Object[_0xf42a26(0x12c)],li=(_0x50eebb,_0x53243d,_0x3a41cf,_0x23a4d5)=>{const _0x17e56f=_0xf42a26;for(var _0x3db502=_0x23a4d5>0x1?void 0x0:_0x23a4d5?ci(_0x53243d,_0x3a41cf):_0x53243d,_0x4ee035=_0x50eebb[_0x17e56f(0x1db)]-0x1,_0x26cbec;_0x4ee035>=0x0;_0x4ee035--)(_0x26cbec=_0x50eebb[_0x4ee035])&&(_0x3db502=_0x26cbec(_0x3db502)||_0x3db502);return _0x3db502;},Je=(_0x5b83e6,_0x433945)=>(_0x44bf27,_0x54bf15)=>_0x433945(_0x44bf27,_0x54bf15,_0x5b83e6);let Ne=class extends _0x14f0e9{constructor(_0x587ee0,_0x5a03ec){const _0x32d2fe=_0xf42a26;super(),this[_0x32d2fe(0x224)]=_0x587ee0,this[_0x32d2fe(0x1e8)]=_0x5a03ec,this[_0x32d2fe(0x12b)]();}[_0xf42a26(0x12b)](){const _0x419b1a=_0xf42a26,_0x38b39f=this;this[_0x419b1a(0x136)](this['_docClipboardService'][_0x419b1a(0x17f)]({'onBeforePasteImage':async _0x39a4da=>{const _0x5c28d8=_0x419b1a,_0x425428=await _0x38b39f[_0x5c28d8(0x1e8)][_0x5c28d8(0x198)](_0x39a4da);return _0x425428?{'source':_0x425428[_0x5c28d8(0x111)],'imageSourceType':_0x425428[_0x5c28d8(0x231)]}:null;}}));}};Ne=li([Je(0x0,_0x49751a),Je(0x1,_0x4001a2)],Ne);const Ze=['purple.300',_0xf42a26(0x225),_0xf42a26(0xde),_0xf42a26(0x233),_0xf42a26(0x23c),_0xf42a26(0x281)];class ke extends _0x382bf8{constructor(){const _0x3ba36a=_0xf42a26;super(...arguments),_(this,_0x3ba36a(0x1e7),new Map()),_(this,_0x3ba36a(0x1d1),0x0);}['assignAColorForMemberID'](_0x12fa98){const _0x459bf2=_0xf42a26;if(this[_0x459bf2(0x1e7)][_0x459bf2(0x18f)](_0x12fa98))return this['_assignedColors']['get'](_0x12fa98);const _0x212f8e=Ze[this[_0x459bf2(0x1d1)]];return this[_0x459bf2(0x1d1)]=(this['_colorIndex']+0x1)%Ze[_0x459bf2(0x1db)],this[_0x459bf2(0x1e7)][_0x459bf2(0x2b4)](_0x12fa98,_0x212f8e),_0x212f8e;}}function Tt(_0x4d0718){let _0x256ffa='';for(const _0x340079 of _0x4d0718){const {startOffset:_0x5767f4,endOffset:_0x1aaf56,isActive:_0x457a7f,rangeType:_0x2f637e,segmentId:_0x1f9d4b,segmentPage:_0x2e9dfc}=_0x340079;_0x256ffa['length']&&(_0x256ffa+=','),_0x256ffa+=_0x5767f4+':'+_0x1aaf56+':'+(_0x457a7f?'1':'0')+':'+_0x2f637e+':'+_0x1f9d4b+':'+_0x2e9dfc;}return _0x256ffa;}function _i(_0x5b9a91){const _0x1bbe69=_0xf42a26,_0x432274=_0x5b9a91[_0x1bbe69(0x1bc)](','),_0x5df32a=[];for(const _0x3ceccb of _0x432274){const [_0x2ea7f2,_0xaff6e1,_0x396da8,_0x369033,_0x1f9284,_0xdd2add]=_0x3ceccb['split'](':');_0x5df32a[_0x1bbe69(0x122)]({'startOffset':Number(_0x2ea7f2),'endOffset':Number(_0xaff6e1),'collapsed':_0x2ea7f2===_0xaff6e1,'isActive':_0x396da8==='1','rangeType':_0x369033===_0x2d8b1b['TEXT']?_0x2d8b1b[_0x1bbe69(0x19a)]:_0x2d8b1b[_0x1bbe69(0x163)],'segmentId':typeof _0x1f9284=='string'?String(_0x1f9284):'','segmentPage':Number(_0xdd2add!=null?_0xdd2add:-0x1)});}return _0x5df32a['some'](_0x4964e7=>_0x4964e7[_0x1bbe69(0x180)])||(_0x5df32a[0x0][_0x1bbe69(0x180)]=!0x0),_0x5df32a;}class He extends _0x14f0e9{constructor(){const _0xfe41bc=_0xf42a26;super(...arguments),_(this,_0xfe41bc(0x1b5),new _0x535baf(null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0xfe41bc(0x1c5)]());}[_0xf42a26(0x2c6)](_0x45f9a1){const {unitID:_0x5b185c,memberID:_0x11d6dd,textRanges:_0xf1a7ee}=_0x45f9a1,_0x2c411d=Tt(_0xf1a7ee);if(_0x2c411d==='')return;const _0x1645de={'unitID':_0x5b185c,'memberID':_0x11d6dd,'selection':_0x2c411d};this['_collabCursorState$']['next'](_0x1645de);}}var hi=Object[_0xf42a26(0x12c)],ui=(_0x49ff58,_0x5ba376,_0x3d3865,_0xa47102)=>{const _0x43a82d=_0xf42a26;for(var _0x26827c=_0xa47102>0x1?void 0x0:_0xa47102?hi(_0x5ba376,_0x3d3865):_0x5ba376,_0x38ce24=_0x49ff58[_0x43a82d(0x1db)]-0x1,_0x302746;_0x38ce24>=0x0;_0x38ce24--)(_0x302746=_0x49ff58[_0x38ce24])&&(_0x26827c=_0x302746(_0x26827c)||_0x26827c);return _0x26827c;},P=(_0x5c4aac,_0x348190)=>(_0x1ffecb,_0x3947cf)=>_0x348190(_0x1ffecb,_0x3947cf,_0x5c4aac);const di=0x12c,fi=0x64;let Ue=class extends _0x14f0e9{constructor(_0x171c2d,_0x56a3ba,_0x320863,_0x47b6a1,_0x3e0667,_0x2229da,_0x1364a9,_0x562733,_0x229f2d){const _0x5e0bb9=_0xf42a26;super(),_(this,'_online',!0x1),_(this,_0x5e0bb9(0x12b),!0x1),_(this,_0x5e0bb9(0x11b),new _0x535baf(new Map())),_(this,_0x5e0bb9(0x1c3),this[_0x5e0bb9(0x11b)][_0x5e0bb9(0x1c5)]()),_(this,_0x5e0bb9(0x12f),new _0x535baf([])),_(this,_0x5e0bb9(0x192),this['_roomMembers$'][_0x5e0bb9(0xe3)](_0x4e2a4b(di))),_(this,_0x5e0bb9(0x18d),_0x4729f8(_0x534591=>{const _0x55fea8=_0x5e0bb9,_0x18998c={'eventID':_0x9f054f[_0x55fea8(0x1ed)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x55fea8(0x294)](),'selection':Tt(_0x534591)}};this[_0x55fea8(0x21b)]['send'](_0x18998c,this[_0x55fea8(0x1a7)]);},fi)),(this[_0x5e0bb9(0x1a7)]=_0x171c2d,this[_0x5e0bb9(0x21b)]=_0x56a3ba,this[_0x5e0bb9(0x2a5)]=_0x320863,this[_0x5e0bb9(0x272)]=_0x47b6a1,this[_0x5e0bb9(0x1f1)]=_0x3e0667,this['_syncEditingCollabCursorService']=_0x2229da,this[_0x5e0bb9(0x1c8)]=_0x1364a9,this['_univerInstanceService']=_0x562733,this['_commandService']=_0x229f2d);}get[_0xf42a26(0x16c)](){const _0x49ea48=_0xf42a26;return this[_0x49ea48(0x11b)][_0x49ea48(0xdd)]();}get[_0xf42a26(0xf1)](){const _0x350fbd=_0xf42a26;return this[_0x350fbd(0x12f)]['getValue']();}['dispose'](){const _0x105337=_0xf42a26;super[_0x105337(0x229)](),this[_0x105337(0x11b)][_0x105337(0x282)](new Map()),this[_0x105337(0x11b)][_0x105337(0x22b)](),this['_roomMembers$'][_0x105337(0x282)]([]),this['_roomMembers$'][_0x105337(0x22b)]();}['init'](){const _0x292a66=_0xf42a26;this[_0x292a66(0x12b)]||(this[_0x292a66(0x12b)]=!0x0,this[_0x292a66(0x21b)][_0x292a66(0x26a)][_0x292a66(0xe3)](_0x1101d1(this[_0x292a66(0x1f9)]))[_0x292a66(0x1d7)](_0x44cd79=>{const _0x38c15c=_0x292a66;_0x44cd79===_0x37a431['ONLINE']?this['_toggleOnline']():this[_0x38c15c(0x174)]();}),this[_0x292a66(0x21b)][_0x292a66(0x246)][_0x292a66(0xe3)](_0x1101d1(this[_0x292a66(0x1f9)]))['subscribe'](_0x9c9eeb=>{const _0x2c7acf=_0x292a66,_0x1d8217=_0x9c9eeb['eventID'];_0x1d8217===_0x9f054f[_0x2c7acf(0x1ed)]&&this[_0x2c7acf(0x1a4)](_0x9c9eeb),_0x1d8217===_0x9f054f[_0x2c7acf(0x138)]&&this[_0x2c7acf(0x205)](_0x9c9eeb);}),this[_0x292a66(0x136)](this[_0x292a66(0x1ad)][_0x292a66(0x116)](_0x10c5e4=>{const _0x458623=_0x292a66,_0x4cf763=_0x10c5e4[_0x458623(0x193)];_0x4cf763!=null&&this[_0x458623(0x132)]&&_0x10c5e4['id']===_0x500fdf['id']&&_0x4cf763[_0x458623(0x1fb)]===this[_0x458623(0x1a7)]&&_0x4cf763[_0x458623(0x13a)]===!0x1&&_0x4cf763['ranges'][_0x458623(0x1db)]>0x0&&this['_updateLocalCursor'](_0x4cf763[_0x458623(0x133)]);})),this['_syncEditingCollabCursorService'][_0x292a66(0x184)][_0x292a66(0xe3)](_0x1101d1(this[_0x292a66(0x1f9)]))[_0x292a66(0x1d7)](_0xea7468=>{const _0x43717b=_0x292a66;if((_0xea7468==null?void 0x0:_0xea7468[_0x43717b(0x1a7)])!==this['unitID'])return;const _0x66295={'eventID':_0x9f054f[_0x43717b(0x1ed)],'data':_0xea7468};this[_0x43717b(0x1a4)](_0x66295);}),this[_0x292a66(0x136)](this['_commandService'][_0x292a66(0x116)](_0x4ddc86=>{const _0x45d46a=_0x292a66;if(_0x4ddc86[_0x45d46a(0x193)]==null)return;const _0x382df8=_0x4ddc86[_0x45d46a(0x193)];if(_0x4ddc86['id']!==_0x879bad['id']||_0x382df8[_0x45d46a(0x1fb)]!==this[_0x45d46a(0x1a7)])return;const _0x514281={'id':_0x45d46a(0x26f),'params':_0x382df8},_0x29d573=this['cursorInfo'];for(const [_0x4c3b19,_0x148c98]of _0x29d573){const _0xd0b98e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x45d46a(0x1a7)],'actions':null,'textRanges':_0x148c98[_0x45d46a(0x133)]}},_0x8c5bb0=this['_transformService'][_0x45d46a(0xe6)](_0x514281,_0xd0b98e,!0x1);if(_0x5ec000(_0x8c5bb0))throw _0x8c5bb0['error'];_0x29d573['set'](_0x4c3b19,{..._0x148c98,'ranges':_0x8c5bb0[_0x45d46a(0x28d)][_0x45d46a(0x193)][_0x45d46a(0x18e)]});}queueMicrotask(()=>{const _0x5648d9=_0x45d46a;this[_0x5648d9(0x11b)][_0x5648d9(0x282)](_0x29d573);});})));}[_0xf42a26(0x1a4)](_0x273daf){const _0x539b15=_0xf42a26;var _0x5786e8,_0x24220c;const {memberID:_0x23c451,selection:_0x36d500}=_0x273daf[_0x539b15(0x238)],_0x43d7d1=_i(_0x36d500),_0x2fb1a8=(_0x24220c=(_0x5786e8=this['_memberService'][_0x539b15(0x1e2)](this[_0x539b15(0x1a7)],_0x23c451))==null?void 0x0:_0x5786e8[_0x539b15(0x2a4)])!=null?_0x24220c:_0x539b15(0x2da),_0x25037c={'color':this[_0x539b15(0x272)][_0x539b15(0x2b2)](_0x23c451),'name':_0x2fb1a8,'ranges':_0x43d7d1},_0x258946=this[_0x539b15(0x16c)];_0x258946['set'](_0x23c451,_0x25037c),this[_0x539b15(0x11b)][_0x539b15(0x282)](_0x258946);}['_onCursorDelete'](_0x1a4d24){const _0x374845=_0xf42a26,{memberID:_0x1a5213}=_0x1a4d24[_0x374845(0x238)],_0x5ba262=this[_0x374845(0x16c)];_0x5ba262[_0x374845(0x273)](_0x1a5213),this[_0x374845(0x11b)][_0x374845(0x282)](_0x5ba262);}[_0xf42a26(0xfd)](){const _0x32bcc7=_0xf42a26;var _0x585728;if(this[_0x32bcc7(0x132)]=!0x0,((_0x585728=this[_0x32bcc7(0x188)][_0x32bcc7(0x1b7)]())==null?void 0x0:_0x585728['getUnitId']())!==this[_0x32bcc7(0x1a7)])return;const _0x2da3fb=this[_0x32bcc7(0x2a5)]['get'](_0x5e82eb)[_0x32bcc7(0x113)]();Array['isArray'](_0x2da3fb)&&_0x2da3fb['length']>0x0&&this[_0x32bcc7(0x18d)](_0x2da3fb);}['_toggleOffline'](){const _0x3771ed=_0xf42a26;this[_0x3771ed(0x132)]=!0x1;}};Ue=ui([P(0x2,_0x29894a(_0x50c06f)),P(0x3,_0x29894a(ke)),P(0x4,_0x29894a(_0x21643a)),P(0x5,_0x29894a(He)),P(0x6,_0x167c0a),P(0x7,_0x26c0aa),P(0x8,_0x2320d3)],Ue);var Si=Object[_0xf42a26(0x12c)],mi=(_0x38671d,_0x486ccd,_0x5d71a1,_0x39488c)=>{const _0x5251fa=_0xf42a26;for(var _0x48a994=_0x39488c>0x1?void 0x0:_0x39488c?Si(_0x486ccd,_0x5d71a1):_0x486ccd,_0x1f0fb7=_0x38671d[_0x5251fa(0x1db)]-0x1,_0x28bf01;_0x1f0fb7>=0x0;_0x1f0fb7--)(_0x28bf01=_0x38671d[_0x1f0fb7])&&(_0x48a994=_0x28bf01(_0x48a994)||_0x48a994);return _0x48a994;},x=(_0x529517,_0x4e0d28)=>(_0x1b65f1,_0x4fa52f)=>_0x4e0d28(_0x1b65f1,_0x4fa52f,_0x529517);const Ii=0x12c,gi=0x64,vi=()=>{let _0x41cd17=[],_0x4391ab=!0x1;return _0x1129f4=>{const _0x2c6cc7=_0x4fb2;_0x41cd17[_0x2c6cc7(0x122)](_0x1129f4),_0x4391ab||(_0x4391ab=!0x0,setTimeout(()=>{const _0xa0fd0a=_0x2c6cc7;_0x41cd17[_0xa0fd0a(0x140)](_0x4bca8d=>_0x4bca8d()),_0x41cd17=[],_0x4391ab=!0x1;}));};};let Me=class extends _0x14f0e9{constructor(_0x57bf5f,_0x1d47ce,_0x3ff8bb,_0xb8abd6,_0x1970c7,_0x58fc43,_0xabfdd4,_0x21bf32){const _0x1cf935=_0xf42a26;super(),_(this,_0x1cf935(0x132),!0x1),_(this,'_init',!0x1),_(this,_0x1cf935(0x11b),new _0x535baf(new Map())),_(this,_0x1cf935(0x1c3),this[_0x1cf935(0x11b)][_0x1cf935(0x1c5)]()),_(this,_0x1cf935(0x12f),new _0x535baf([])),_(this,_0x1cf935(0x192),this[_0x1cf935(0x12f)][_0x1cf935(0xe3)](_0x4e2a4b(Ii))),_(this,_0x1cf935(0x18d),_0x4729f8((_0x41c203,_0xf568f)=>{const _0x3e7ead=_0x1cf935,_0x50d394={'eventID':_0x9f054f[_0x3e7ead(0x1ed)],'data':{'unitID':this[_0x3e7ead(0x1a7)],'memberID':this[_0x3e7ead(0x21b)]['getMemberID'](),'selection':_0x138811(_0x41c203,_0xf568f[_0x3e7ead(0x23d)])}};this[_0x3e7ead(0x21b)][_0x3e7ead(0x2a7)](_0x50d394,this['unitID']);},gi)),(this[_0x1cf935(0x1a7)]=_0x57bf5f,this[_0x1cf935(0x21b)]=_0x1d47ce,this[_0x1cf935(0x2a5)]=_0x3ff8bb,this[_0x1cf935(0x272)]=_0xb8abd6,this[_0x1cf935(0x1f1)]=_0x1970c7,this[_0x1cf935(0x188)]=_0x58fc43,this[_0x1cf935(0x1ad)]=_0xabfdd4,this[_0x1cf935(0x259)]=_0x21bf32);}get[_0xf42a26(0x16c)](){const _0x571ab8=_0xf42a26;return this[_0x571ab8(0x11b)][_0x571ab8(0xdd)]();}get[_0xf42a26(0xf1)](){const _0x14162e=_0xf42a26;return this['_roomMembers$'][_0x14162e(0xdd)]();}[_0xf42a26(0x229)](){const _0x1f2b4c=_0xf42a26;super['dispose'](),this[_0x1f2b4c(0x11b)][_0x1f2b4c(0x282)](new Map()),this[_0x1f2b4c(0x11b)]['complete'](),this[_0x1f2b4c(0x12f)]['next']([]),this[_0x1f2b4c(0x12f)][_0x1f2b4c(0x22b)]();}['init'](){const _0x3d69dc=_0xf42a26;this[_0x3d69dc(0x12b)]||(this['_init']=!0x0,this[_0x3d69dc(0x21b)]['sessionStatus$'][_0x3d69dc(0xe3)](_0x1101d1(this[_0x3d69dc(0x1f9)]))['subscribe'](_0x3178c1=>{const _0x1a0ad3=_0x3d69dc;_0x3178c1===_0x37a431[_0x1a0ad3(0x2c9)]?this[_0x1a0ad3(0xfd)]():this['_toggleOffline']();}),this[_0x3d69dc(0x21b)]['event$'][_0x3d69dc(0xe3)](_0x1101d1(this[_0x3d69dc(0x1f9)]))[_0x3d69dc(0x1d7)](_0x38175f=>{const _0x462939=_0x3d69dc,_0x25a539=_0x38175f[_0x462939(0x1ca)];_0x25a539===_0x9f054f['UPDATE_CURSOR']&&this[_0x462939(0x1a4)](_0x38175f),_0x25a539===_0x9f054f[_0x462939(0x138)]&&this[_0x462939(0x205)](_0x38175f);}),this[_0x3d69dc(0x2c0)](),this[_0x3d69dc(0x136)](this[_0x3d69dc(0x1ad)]['onCommandExecuted'](_0x32ee9e=>{const _0x10b00c=_0x3d69dc;if(this[_0x10b00c(0x132)]&&_0x32ee9e['id']===_0x337bd2['id']&&_0x32ee9e[_0x10b00c(0x193)][_0x10b00c(0x1fb)]===this[_0x10b00c(0x1a7)]){const _0x2458c6=_0x32ee9e['params'];this[_0x10b00c(0x18d)](_0x2458c6[_0x10b00c(0x21a)],_0x2458c6['selections'][0x0]);}})));}['_onCursorUpdate'](_0x133099){const _0x1bf11b=_0xf42a26;var _0x327ea5,_0x5513ce;const {memberID:_0x497ea5,selection:_0x45f2da}=_0x133099[_0x1bf11b(0x238)],{sheetName:_0x28acab,range:_0xaeeea3}=_0x2d92c5(_0x45f2da),_0x396a69={'name':(_0x5513ce=(_0x327ea5=this['_memberService'][_0x1bf11b(0x1e2)](this[_0x1bf11b(0x1a7)],_0x497ea5))==null?void 0x0:_0x327ea5[_0x1bf11b(0x2a4)])!=null?_0x5513ce:_0x1bf11b(0x2da),'range':this[_0x1bf11b(0x1eb)](_0x28acab,_0xaeeea3),'sheetID':_0x28acab,'color':this[_0x1bf11b(0x272)][_0x1bf11b(0x2b2)](_0x497ea5),'selection':_0x45f2da},_0x130325=this['cursorInfo'];_0x130325[_0x1bf11b(0x2b4)](_0x497ea5,_0x396a69),this[_0x1bf11b(0x11b)][_0x1bf11b(0x282)](_0x130325);}[_0xf42a26(0x205)](_0x2448de){const _0x1dcf72=_0xf42a26,{memberID:_0x326a72}=_0x2448de[_0x1dcf72(0x238)],_0x12716a=this[_0x1dcf72(0x16c)];_0x12716a[_0x1dcf72(0x273)](_0x326a72),this['_cursorInfo$']['next'](_0x12716a);}[_0xf42a26(0x1eb)](_0x45838c,_0x489e0c){const _0x3e7876=_0xf42a26;var _0x12cff3,_0xae42c4;const _0x4ec1ca=(_0xae42c4=(_0x12cff3=this[_0x3e7876(0x188)][_0x3e7876(0x1e0)](this[_0x3e7876(0x1a7)]))==null?void 0x0:_0x12cff3[_0x3e7876(0x166)](_0x45838c))==null?void 0x0:_0xae42c4['getMergeData']();return(_0x4ec1ca==null?void 0x0:_0x4ec1ca[_0x3e7876(0x185)](_0x5b1ac4=>_0x216ef3[_0x3e7876(0x147)](_0x5b1ac4,_0x489e0c)))||_0x489e0c;}['_onRefRangeChange'](){const _0x2568e1=_0xf42a26,_0x52aff7=new _0x58b937(),_0x37471e=vi(),_0x5baba8=()=>{const _0x292d62=_0x4fb2;_0x52aff7[_0x292d62(0x229)]();const _0x3d66ea=(_0x4c6997,_0x170c67,_0x503d40,_0x39f876)=>{const _0x2aafcb=_0x292d62;let _0x59785a=[];switch(_0x4c6997['id']){case _0x553147['DeleteRangeMoveLeftCommandId']:{_0x59785a=_0x1675e5(_0x4c6997,_0x39f876);break;}case _0x553147[_0x2aafcb(0x213)]:{_0x59785a=_0x10fb70(_0x4c6997,_0x39f876);break;}case _0x553147[_0x2aafcb(0x2be)]:{_0x59785a=_0x4419e9(_0x4c6997,_0x39f876);break;}case _0x553147[_0x2aafcb(0x115)]:{_0x59785a=_0x2a24e3(_0x4c6997,_0x39f876);break;}case _0x553147['InsertRangeMoveRightCommandId']:{_0x59785a=_0x3c9087(_0x4c6997,_0x39f876);break;}case _0x553147[_0x2aafcb(0x1f3)]:{_0x59785a=_0x8c968e(_0x4c6997,_0x39f876);break;}case _0x553147[_0x2aafcb(0x1f2)]:{_0x59785a=_0x189f05(_0x4c6997,_0x39f876);break;}case _0x553147[_0x2aafcb(0x1fa)]:{_0x59785a=_0x57f1a0(_0x4c6997,_0x39f876);break;}case _0x553147[_0x2aafcb(0x2ba)]:{_0x59785a=_0x5ef8c4(_0x4c6997,_0x39f876);break;}}const _0x233212=_0x4b5130(_0x59785a,_0x39f876),_0x14c7d3=this[_0x2aafcb(0x16c)][_0x2aafcb(0x27e)](_0x170c67);if(_0x14c7d3&&_0x233212){const _0x13474b={..._0x14c7d3,'range':_0x233212};this['cursorInfo'][_0x2aafcb(0x2b4)](_0x170c67,_0x13474b),_0x37471e(()=>{const _0x1e6dc4=_0x2aafcb,_0x4a3f0b=this['_refRangeService'][_0x1e6dc4(0x1a6)](_0x233212,_0x42f7a1=>(_0x4a3f0b[_0x1e6dc4(0x229)](),_0x3d66ea(_0x42f7a1,_0x170c67,_0x503d40,_0x233212)));_0x52aff7[_0x1e6dc4(0xfb)](_0x4a3f0b);});}return{'redos':[],'undos':[]};};this[_0x292d62(0x16c)][_0x292d62(0x140)]((_0x5a0ea1,_0x1bfe98)=>{const _0x14ec84=_0x292d62,{range:_0x35d5c6,sheetID:_0x12c3eb}=_0x5a0ea1,_0x45f6cf=this[_0x14ec84(0x259)][_0x14ec84(0x1a6)](_0x35d5c6,_0x15db11=>(_0x45f6cf['dispose'](),_0x3d66ea(_0x15db11,_0x1bfe98,_0x12c3eb,_0x35d5c6)));_0x52aff7[_0x14ec84(0xfb)](_0x45f6cf);});};this[_0x2568e1(0x136)](_0x56fd5a(this['_cursorInfo$'][_0x2568e1(0x1d7)](()=>{_0x5baba8();})));}['_toggleOnline'](){const _0x542fd1=_0xf42a26;var _0xb2f710,_0x1f4dec;if(this[_0x542fd1(0x132)]=!0x0,((_0xb2f710=this[_0x542fd1(0x188)]['getFocusedUnit']())==null?void 0x0:_0xb2f710[_0x542fd1(0x1b2)]())!==this['unitID'])return;const _0x326229=(_0x1f4dec=this[_0x542fd1(0x2a5)]['get'](_0x27dc79)[_0x542fd1(0x1ff)]())==null?void 0x0:_0x1f4dec[0x0],_0x56f2b7=this['_univerInstanceService'][_0x542fd1(0x19b)](_0x102ac0[_0x542fd1(0x1f7)])['getActiveSheet']();_0x326229&&_0x56f2b7&&this[_0x542fd1(0x18d)](_0x56f2b7['getSheetId'](),_0x326229);}['_toggleOffline'](){const _0x4ef3cd=_0xf42a26;this[_0x4ef3cd(0x132)]=!0x1;}};Me=mi([x(0x2,_0x29894a(_0x50c06f)),x(0x3,_0x29894a(ke)),x(0x4,_0x29894a(_0x21643a)),x(0x5,_0x26c0aa),x(0x6,_0x2320d3),x(0x7,_0x29894a(_0x41fcb0))],Me);var pi=Object[_0xf42a26(0x12c)],Ci=(_0xe10368,_0x201e89,_0x418333,_0x4c3174)=>{const _0x9d4567=_0xf42a26;for(var _0x261c1c=_0x4c3174>0x1?void 0x0:_0x4c3174?pi(_0x201e89,_0x418333):_0x201e89,_0x1ba8b1=_0xe10368[_0x9d4567(0x1db)]-0x1,_0x484ca5;_0x1ba8b1>=0x0;_0x1ba8b1--)(_0x484ca5=_0xe10368[_0x1ba8b1])&&(_0x261c1c=_0x484ca5(_0x261c1c)||_0x261c1c);return _0x261c1c;},Se=(_0x3c519c,_0x25170d)=>(_0x15ab1b,_0x30ce22)=>_0x25170d(_0x15ab1b,_0x30ce22,_0x3c519c);let H=class extends _0x14f0e9{constructor(_0x5b372d,_0x4c3477,_0xef312d){const _0x2379d1=_0xf42a26;super(),_(this,_0x2379d1(0xf6),new Map()),_(this,_0x2379d1(0x299),new _0x3db6e0()),(this[_0x2379d1(0x188)]=_0x5b372d,this[_0x2379d1(0x2a5)]=_0x4c3477,this[_0x2379d1(0x2bb)]=_0xef312d,this[_0x2379d1(0x12b)]());}[_0xf42a26(0x229)](){const _0x39eed1=_0xf42a26;super[_0x39eed1(0x229)](),this[_0x39eed1(0x299)][_0x39eed1(0x22b)](),this[_0x39eed1(0xf6)][_0x39eed1(0x140)](_0x54a053=>_0x54a053[_0x39eed1(0x229)]());}[_0xf42a26(0x1a1)](_0xeb5518){const _0x569718=_0xf42a26;return this[_0x569718(0xf6)][_0x569718(0x18f)](_0xeb5518)?this[_0x569718(0xf6)]['get'](_0xeb5518)[_0x569718(0x1c3)]:this[_0x569718(0x299)][_0x569718(0xe3)](_0x2d2f2f(_0xc70846=>_0xc70846[_0x569718(0x1a7)]===_0xeb5518),_0x188327(_0x14f591=>_0x14f591[_0x569718(0x1c3)]));}[_0xf42a26(0x12b)](){const _0x504587=_0xf42a26;this[_0x504587(0x188)][_0x504587(0x261)](_0x102ac0[_0x504587(0x1f7)])[_0x504587(0xe3)](_0x1101d1(this[_0x504587(0x1f9)]))[_0x504587(0x1d7)](async _0x43187f=>{const _0x1e0f13=_0x504587,_0x49c59f=_0x43187f[_0x1e0f13(0x1b2)](),_0x1b6061=await this[_0x1e0f13(0x1cc)](_0x49c59f);this[_0x1e0f13(0x299)][_0x1e0f13(0x282)](_0x1b6061),this[_0x1e0f13(0xf6)]['set'](_0x49c59f,_0x1b6061);}),this[_0x504587(0x188)][_0x504587(0x261)](_0x102ac0[_0x504587(0x232)])[_0x504587(0xe3)](_0x1101d1(this[_0x504587(0x1f9)]))[_0x504587(0xe3)](_0x2d2f2f(_0x2cef82=>!_0x2cef82[_0x504587(0x1b2)]()[_0x504587(0xef)]('__')))[_0x504587(0x1d7)](async _0x387519=>{const _0x162b28=_0x504587,_0x4b9192=_0x387519['getUnitId'](),_0x49d05f=await this['_startDocCollabCursor'](_0x4b9192);this[_0x162b28(0x299)][_0x162b28(0x282)](_0x49d05f),this[_0x162b28(0xf6)][_0x162b28(0x2b4)](_0x4b9192,_0x49d05f);}),_0x15e802(this[_0x504587(0x188)][_0x504587(0xf4)](_0x102ac0[_0x504587(0x232)]),this[_0x504587(0x188)][_0x504587(0xf4)](_0x102ac0[_0x504587(0x1f7)]))[_0x504587(0xe3)](_0x1101d1(this[_0x504587(0x1f9)]))[_0x504587(0x1d7)](_0x5c6042=>{const _0x4f6c88=_0x504587,_0x849ac9=_0x5c6042[_0x4f6c88(0x1b2)](),_0x4ad06a=this['_entities'][_0x4f6c88(0x27e)](_0x849ac9);_0x4ad06a&&(_0x4ad06a[_0x4f6c88(0x229)](),this[_0x4f6c88(0xf6)][_0x4f6c88(0x273)](_0x849ac9));});}async['_startSheetCollabCursor'](_0x2a19da){const _0x10a64d=_0xf42a26,_0x1d94d9=await this['_collabSessionService']['requireSession'](_0x2a19da),_0x2e7838=this['_injector'][_0x10a64d(0x14b)](Me,_0x2a19da,_0x1d94d9);return _0x2e7838[_0x10a64d(0x280)](),_0x2e7838;}async['_startDocCollabCursor'](_0xc6d07f){const _0x33f8c0=_0xf42a26,_0x2432fa=await this[_0x33f8c0(0x2bb)]['requireSession'](_0xc6d07f),_0x545c40=this[_0x33f8c0(0x2a5)][_0x33f8c0(0x14b)](Ue,_0xc6d07f,_0x2432fa);return _0x545c40[_0x33f8c0(0x280)](),_0x545c40;}};H=Ci([Se(0x0,_0x26c0aa),Se(0x1,_0x29894a(_0x50c06f)),Se(0x2,_0x29894a(_0x185917))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x154456,_0x14d7d5){const _0xd6a94d=_0xf42a26;let {radius:_0x15c20c,width:_0x2990fc,height:_0x32963a}=_0x14d7d5;_0x15c20c=_0x15c20c!=null?_0x15c20c:0x0,_0x2990fc=_0x2990fc!=null?_0x2990fc:0x1e,_0x32963a=_0x32963a!=null?_0x32963a:0x1e;let _0x26b7c1=0x0,_0x5f61c2=0x0,_0x517b3c=0x0;_0x26b7c1=_0x5f61c2=_0x517b3c=Math[_0xd6a94d(0xf2)](_0x15c20c,_0x2990fc/0x2,_0x32963a/0x2),_0x154456[_0xd6a94d(0x256)](),_0x154456[_0xd6a94d(0x167)](_0x26b7c1,0x0),_0x154456[_0xd6a94d(0x291)](_0x2990fc-_0x5f61c2,0x0),_0x154456[_0xd6a94d(0x1fc)](_0x2990fc-_0x5f61c2,_0x5f61c2,_0x5f61c2,Math['PI']*0x3/0x2,0x0,!0x1),_0x154456[_0xd6a94d(0x291)](_0x2990fc,_0x32963a-_0x517b3c),_0x154456[_0xd6a94d(0x1fc)](_0x2990fc-_0x517b3c,_0x32963a-_0x517b3c,_0x517b3c,0x0,Math['PI']/0x2,!0x1),_0x154456[_0xd6a94d(0x291)](0x0,_0x32963a),_0x154456['lineTo'](0x0,_0x26b7c1),_0x154456[_0xd6a94d(0x1fc)](_0x26b7c1,_0x26b7c1,_0x26b7c1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x154456[_0xd6a94d(0x162)](),_0x14d7d5[_0xd6a94d(0x257)]&&(_0x154456[_0xd6a94d(0x2cb)](),_0x154456[_0xd6a94d(0x247)]=_0x14d7d5[_0xd6a94d(0x257)],_0x14d7d5[_0xd6a94d(0x1c2)]===_0xd6a94d(0x28a)?_0x154456[_0xd6a94d(0x257)](_0xd6a94d(0x28a)):_0x154456['fill'](),_0x154456[_0xd6a94d(0x2bd)]());}class he extends _0x1bb8d9{constructor(_0xa833c1,_0x141373){const _0x35988e=_0xf42a26;super(_0xa833c1,_0x141373),_(this,_0x35988e(0x2c1)),_(this,_0x35988e(0x278)),(this[_0x35988e(0x2c1)]=_0x141373==null?void 0x0:_0x141373[_0x35988e(0x2c1)],this[_0x35988e(0x278)]=_0x141373==null?void 0x0:_0x141373[_0x35988e(0x278)]);}static[_0xf42a26(0x106)](_0x3ea631,_0x2a6652){const _0x5e8d4b=_0xf42a26,{text:_0x4b5cb0,color:_0x5d6e7e}=_0x2a6652;_0x3ea631['save'](),_0x3ea631[_0x5e8d4b(0xe2)]=_0x5e8d4b(0x2cf);const _0x364e4c=_0x3ea631[_0x5e8d4b(0x279)](_0x4b5cb0)[_0x5e8d4b(0x244)],_0x3f4440=Math[_0x5e8d4b(0xf2)](_0x364e4c+0x2*me,Qe);Oi(_0x3ea631,{'height':ee,'radius':0x4,'width':_0x3f4440,'fill':_0x5d6e7e}),_0x3ea631[_0x5e8d4b(0x247)]=_0x5e8d4b(0x195);const _0x4c857e=me,_0x4159d4=ee-Ei,_0x31c8e8=Qe-0x2*me;if(_0x364e4c>_0x31c8e8){let _0x3786ed='',_0x577136=0x0;for(const _0x5e0e0e of _0x4b5cb0){const _0x20f8e9=_0x3ea631[_0x5e8d4b(0x279)](_0x5e0e0e)[_0x5e8d4b(0x244)];if(_0x577136+_0x20f8e9<=_0x31c8e8-_0x3ea631[_0x5e8d4b(0x279)]('...')[_0x5e8d4b(0x244)])_0x3786ed+=_0x5e0e0e,_0x577136+=_0x20f8e9;else{_0x3786ed+=_0x5e8d4b(0x29a);break;}}_0x3ea631[_0x5e8d4b(0x1a8)](_0x3786ed,_0x4c857e,_0x4159d4);}else _0x3ea631[_0x5e8d4b(0x1a8)](_0x4b5cb0,_0x4c857e,_0x4159d4);_0x3ea631[_0x5e8d4b(0x2bd)]();}[_0xf42a26(0x196)](_0x35b075){he['drawWith'](_0x35b075,this);}}const Ie=_0xf42a26(0x107),bi='collab-text-range-',Ti=_0xf42a26(0x20e),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0xf42a26(0x1df);class qe{constructor(_0x4d53f3,_0x43c259,_0x59cacb,_0x3a873e){const _0x215dcf=_0xf42a26;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x215dcf(0x191),null),_(this,'_hideTimer',null),_(this,_0x215dcf(0x230),null),(this[_0x215dcf(0x144)]=_0x4d53f3,this[_0x215dcf(0xe7)]=_0x43c259,this[_0x215dcf(0x236)]=_0x59cacb,this[_0x215dcf(0x15d)]=_0x3a873e,this['_render']());}set[_0xf42a26(0x268)](_0x3b5333){const _0x1d865f=_0xf42a26;_0x3b5333?(this[_0x1d865f(0x191)]&&this[_0x1d865f(0x191)]['hide'](),this[_0x1d865f(0x212)]&&this[_0x1d865f(0x212)][_0x1d865f(0x209)]()):(this['_anchorDot']&&this[_0x1d865f(0x191)][_0x1d865f(0x209)](),this[_0x1d865f(0x212)]&&this['_textBubble']['hide']());}[_0xf42a26(0x229)](){const _0x11d030=_0xf42a26;for(const _0x22dca4 of this[_0x11d030(0x2c5)])_0x22dca4['dispose']();this['_textBubble']&&this[_0x11d030(0x212)]['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x11d030(0x229)](),this['_anchor']&&this[_0x11d030(0x2bc)][_0x11d030(0x229)](),this[_0x11d030(0x230)]&&this[_0x11d030(0x230)]();}[_0xf42a26(0xe0)](){const _0x2bd20e=_0xf42a26;var _0x2a95fb;const {_docSkeleton:_0x4482b2,_document:_0x33a7d8}=this,{color:_0x3f9a0c,name:_0x323eb4,ranges:_0x3c823a}=this['_cursor'],_0x2bff75=_0x33a7d8['getOffsetConfig'](),{docsLeft:_0x116213,docsTop:_0x1d4c08}=_0x2bff75,_0x5103fb=new _0x1945f6(_0x2bff75,_0x4482b2);for(const {startOffset:_0x2d2af9,endOffset:_0x488909,rangeType:_0x2d0b3e,segmentId:_0x59b506,segmentPage:_0xe9ae18,collapsed:_0x3feec3,isActive:_0x30d30d}of _0x3c823a){const _0x4e2a46=_0x4482b2[_0x2bd20e(0x148)](_0x2d2af9,!0x0,_0x59b506,_0xe9ae18);let _0x2907d1=_0x4482b2[_0x2bd20e(0x148)](_0x488909,!0x0,_0x59b506,_0xe9ae18);if(_0x2907d1==null&&(_0x2907d1=_0x4482b2[_0x2bd20e(0x148)](_0x488909-0x1,!0x1,_0x59b506,_0xe9ae18)),_0x30d30d){const {contentBoxPointGroup:_0x331ca0}=_0x5103fb['getRangePointData'](_0x2907d1,_0x2907d1);if(_0x331ca0['length']===0x0)continue;this[_0x2bd20e(0x237)](_0x3f9a0c,_0x331ca0,_0x116213,_0x1d4c08,_0x323eb4),this[_0x2bd20e(0x230)]=this['_handleHover']();}if(_0x4e2a46&&_0x2907d1){if(_0x2d0b3e===_0x2d8b1b[_0x2bd20e(0x163)]){const _0x4be477=new _0x4c56d3(_0x2bff75,_0x4482b2),{pointGroup:_0x41a86c}=(_0x2a95fb=_0x4be477[_0x2bd20e(0x11c)](_0x4e2a46,_0x2907d1))!=null?_0x2a95fb:{};if(_0x41a86c==null||_0x41a86c[_0x2bd20e(0x1db)]===0x0)continue;this[_0x2bd20e(0x17d)](_0x3f9a0c,_0x41a86c,_0x116213,_0x1d4c08);}else{if(!_0x3feec3){const {borderBoxPointGroup:_0x34205e}=_0x5103fb['getRangePointData'](_0x4e2a46,_0x2907d1);if(_0x34205e['length']===0x0)continue;this['_drawTextRange'](_0x3f9a0c,_0x34205e,_0x116213,_0x1d4c08);}}}}}[_0xf42a26(0x237)](_0x52faf2,_0x677495,_0x4564ae,_0x23f6a2,_0x144177){const _0x4f9bb3=_0xf42a26,_0x59e237=this['_getAnchorBounding'](_0x677495),{left:_0x5811fe,top:_0x1e09b8,height:_0x1ace39}=_0x59e237,_0x5a4e4c=this[_0x4f9bb3(0x1cd)](),_0x3303b5=Di/_0x5a4e4c,_0x59316c=new _0x99e1c8(Ie+_0x51f6f1[_0x4f9bb3(0x27c)](X),{'left':_0x5811fe+_0x4564ae-_0x3303b5,'top':_0x1e09b8+_0x23f6a2,'height':_0x1ace39,'width':Ri,'fill':_0x52faf2||_0x2e8c05(_0x277a32['black'],0x0),'strokeWidth':_0x3303b5,'stroke':Ni,'evented':!0x0});this[_0x4f9bb3(0x2bc)]=_0x59316c,this[_0x4f9bb3(0xe7)]['addObject'](_0x59316c,_0x46c059);const _0x5d952b=new _0x99e1c8(Ie+_0x51f6f1[_0x4f9bb3(0x27c)](X),{'left':_0x5811fe+_0x4564ae-_0x3303b5,'top':_0x1e09b8+_0x23f6a2-ge/0x2,'height':ge,'width':ge,'fill':_0x52faf2||_0x2e8c05(_0x277a32[_0x4f9bb3(0x2af)],0x0),'strokeWidth':0x0,'stroke':_0x52faf2||_0x2e8c05(_0x277a32[_0x4f9bb3(0x2af)],0x0),'evented':!0x1});this['_anchorDot']=_0x5d952b,this['_scene']['addObject'](_0x5d952b,_0x46c059);const _0x433487=new he(Ie+_0x51f6f1[_0x4f9bb3(0x27c)](X),{'left':_0x5811fe+_0x4564ae-_0x3303b5,'top':_0x1e09b8+_0x23f6a2-ee,'text':_0x144177,'color':_0x52faf2});this[_0x4f9bb3(0x212)]=_0x433487,this[_0x4f9bb3(0xe7)][_0x4f9bb3(0x1d0)](_0x433487,_0x46c059),this[_0x4f9bb3(0x268)]=!0x1;}[_0xf42a26(0x13e)](){const _0x47b4f6=_0xf42a26,_0x4639f4=this['_anchor'][_0x47b4f6(0x10e)][_0x47b4f6(0x253)](()=>{const _0x1876e3=_0x47b4f6;this[_0x1876e3(0x268)]=!0x0;}),_0x184619=this['_anchor'][_0x47b4f6(0x165)][_0x47b4f6(0x253)](()=>{const _0xf40676=_0x47b4f6;this[_0xf40676(0x2d9)]&&clearTimeout(this[_0xf40676(0x2d9)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x433090=_0x47b4f6;_0x4639f4[_0x433090(0x16a)](),_0x184619[_0x433090(0x16a)]();};}['_drawTextRange'](_0x56fd3b,_0x531d9a,_0x1459b8,_0x11662d){const _0xa9fba4=_0xf42a26,_0xc91a06=new _0x1240e9(_0x56fd3b)['setAlpha'](0.2)[_0xa9fba4(0x207)](),_0xc2caf=new _0x7bab94(bi+_0x51f6f1[_0xa9fba4(0x27c)](X),{'pointsGroup':_0x531d9a,'fill':_0xc91a06||_0x2e8c05(_0x277a32[_0xa9fba4(0x2af)],0.2),'left':_0x1459b8,'top':_0x11662d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xa9fba4(0x2c5)][_0xa9fba4(0x122)](_0xc2caf),this[_0xa9fba4(0xe7)][_0xa9fba4(0x1d0)](_0xc2caf,_0x46c059);}[_0xf42a26(0x17d)](_0x4f2227,_0x5a5646,_0x584b63,_0x2149d6){const _0x3eccb5=_0xf42a26,_0x3abad2=new _0x1240e9(_0x4f2227)[_0x3eccb5(0x10c)](0.2)[_0x3eccb5(0x207)](),_0x17f2b4=new _0x7bab94(Ti+_0x51f6f1[_0x3eccb5(0x27c)](X),{'pointsGroup':_0x5a5646,'fill':_0x3abad2||_0x2e8c05(_0x277a32[_0x3eccb5(0x2af)],0.2),'left':_0x584b63,'top':_0x2149d6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x17f2b4),this[_0x3eccb5(0xe7)][_0x3eccb5(0x1d0)](_0x17f2b4,_0x46c059);}['_getAnchorBounding'](_0x41dcb5){const _0x248551=_0x41dcb5[0x0],_0x4f6465=_0x248551[0x0],_0x265644=_0x248551[0x2],{x:_0x504b6c,y:_0x4fe887}=_0x4f6465,{x:_0x19aec5,y:_0x4b9a90}=_0x265644;return{'left':_0x504b6c,'top':_0x4fe887,'width':_0x19aec5-_0x504b6c,'height':_0x4b9a90-_0x4fe887};}['_getScale'](){const _0x265d17=_0xf42a26,{scaleX:_0x210b22,scaleY:_0x26ed37}=this[_0x265d17(0xe7)]['getAncestorScale']();return Math['max'](_0x210b22,_0x26ed37);}}var Ui=Object[_0xf42a26(0x12c)],Mi=(_0x983d70,_0x3786cf,_0x11d29f,_0x10353e)=>{const _0x3ee372=_0xf42a26;for(var _0x321836=_0x10353e>0x1?void 0x0:_0x10353e?Ui(_0x3786cf,_0x11d29f):_0x3786cf,_0x5d600c=_0x983d70[_0x3ee372(0x1db)]-0x1,_0x263171;_0x5d600c>=0x0;_0x5d600c--)(_0x263171=_0x983d70[_0x5d600c])&&(_0x321836=_0x263171(_0x321836)||_0x321836);return _0x321836;},Z=(_0xdc7e3f,_0x5b5f9e)=>(_0x57203d,_0x1d8fbd)=>_0x5b5f9e(_0x57203d,_0x1d8fbd,_0xdc7e3f);let Le=class extends _0x14f0e9{constructor(_0x50d78e,_0x32cbf4,_0x2953ca,_0x3e53b3,_0x552588){const _0x2070e5=_0xf42a26;super(),_(this,_0x2070e5(0x1f5),[]),_(this,_0x2070e5(0x139),[]),(this['_context']=_0x50d78e,this[_0x2070e5(0x2a2)]=_0x32cbf4,this[_0x2070e5(0x2b1)]=_0x2953ca,this[_0x2070e5(0x1ad)]=_0x3e53b3,this[_0x2070e5(0x117)]=_0x552588,this[_0x2070e5(0x12b)]());}[_0xf42a26(0x12b)](){const _0x131b4d=_0xf42a26,_0x32e946=this['_context'][_0x131b4d(0x1fb)],_0x5c2671=this[_0x131b4d(0x2a2)];this[_0x131b4d(0x136)](_0xe7a4f6([this[_0x131b4d(0x2b1)][_0x131b4d(0x1a1)](_0x32e946),this[_0x131b4d(0x117)]['currentTheme$']])[_0x131b4d(0xe3)](_0x53609f(([_0x2d6014,_0x5a933c])=>({'skeleton':_0x5c2671['getSkeleton'](),'cursors':[..._0x2d6014['values']()]['flatMap'](_0x3d5f61=>({..._0x3d5f61,'color':this[_0x131b4d(0x117)]['getColorFromTheme'](_0x3d5f61[_0x131b4d(0x2c1)])}))})))[_0x131b4d(0x1d7)](_0x3a3a95=>{const _0x5758e8=_0x131b4d;if(this['_removeCollabCursors'](),_0x3a3a95){const {skeleton:_0x44e132,cursors:_0x1cc2dd}=_0x3a3a95;this[_0x5758e8(0x201)](_0x44e132,_0x1cc2dd);}})),this[_0x131b4d(0x22f)](),this['_initCommandExecutedListener']();}[_0xf42a26(0x201)](_0x3fd739,_0x2b278b){const _0x392738=_0xf42a26,{scene:_0x13019b,mainComponent:_0x244af0}=this[_0x392738(0x2ce)],_0x5d88f5=_0x2b278b[_0x392738(0x24d)](_0x160838=>new qe(_0x160838,_0x13019b,_0x3fd739,_0x244af0));this[_0x392738(0x1f5)]=_0x5d88f5,this['_cursors']=_0x2b278b;}['_refreshCollabCursors'](){const _0x141415=_0xf42a26;this['_removeCollabCursors']();const {scene:_0x4c0de6,mainComponent:_0x4d354a}=this[_0x141415(0x2ce)],_0x41e0e9=this['_docSkeletonManagerService'][_0x141415(0x234)](),_0x48a87e=this['_cursors'][_0x141415(0x24d)](_0x5d8ede=>new qe(_0x5d8ede,_0x4c0de6,_0x41e0e9,_0x4d354a));this[_0x141415(0x1f5)]=_0x48a87e;}[_0xf42a26(0x1be)](){const _0x37f63a=_0xf42a26;this[_0x37f63a(0x1f5)][_0x37f63a(0x140)](_0x2ffaaf=>_0x2ffaaf[_0x37f63a(0x229)]()),this['_cursorShapes']=[];}[_0xf42a26(0x295)](){const _0x31a15e=_0xf42a26,_0x3897d9=[_0x5129e9['id']];this[_0x31a15e(0x136)](this['_commandService'][_0x31a15e(0x116)](_0x1985ac=>{const _0x4d609e=_0x31a15e;_0x3897d9[_0x4d609e(0x1ba)](_0x1985ac['id'])&&_0x1985ac['params'][_0x4d609e(0x1fb)]===this[_0x4d609e(0x2ce)][_0x4d609e(0x1fb)]&&this[_0x4d609e(0x274)]();}));}[_0xf42a26(0x22f)](){const _0x724301=_0xf42a26;this['disposeWithMe'](_0x1b2c45(this[_0x724301(0x2ce)][_0x724301(0x1a9)][_0x724301(0x1a5)])[_0x724301(0xe3)](_0x350650(_0x2fc1d9=>_0x2fc1d9[_0x724301(0x15e)]===_0x43bdc5[_0x724301(0x1ec)]),_0x1493bb(0x10))['subscribe'](()=>{const _0x36a2b3=_0x724301;this[_0x36a2b3(0x274)]();}));}};Le=Mi([Z(0x1,_0x29894a(_0x213ad8)),Z(0x2,_0x29894a(H)),Z(0x3,_0x2320d3),Z(0x4,_0x29894a(_0x35497a))],Le);const Li=0x1,Pi=1.5;class wi extends _0x1bb8d9{constructor(_0x46f43a,_0x382a8b){const _0x11d38e=_0xf42a26;super(_0x46f43a,_0x382a8b),_(this,_0x11d38e(0x26b)),_(this,_0x11d38e(0x127),!0x1),_(this,_0x11d38e(0x123)),_(this,'_name',''),_(this,_0x11d38e(0x223),_0x11d38e(0x2ae)),_(this,_0x11d38e(0x13f)),(_0x382a8b&&this['setShapeProps'](_0x382a8b),this['onPointerEnter$'][_0x11d38e(0x253)](()=>this[_0x11d38e(0x2e1)]({'hovered':!0x0})),this[_0x11d38e(0x165)]['subscribeEvent'](()=>this[_0x11d38e(0x2e1)]({'hovered':!0x1})));}[_0xf42a26(0x2e1)](_0x32b9f0){const _0x216814=_0xf42a26;var _0x399a78,_0x1c9e2d,_0x504360,_0x50b916,_0x17cf8d,_0x4eb259;this[_0x216814(0x26b)]=(_0x399a78=_0x32b9f0[_0x216814(0x2c1)])!=null?_0x399a78:this['_color'],this['_hovered']=(_0x1c9e2d=_0x32b9f0[_0x216814(0x135)])!=null?_0x1c9e2d:this['_hovered'],this['_range']=(_0x504360=_0x32b9f0[_0x216814(0x23d)])!=null?_0x504360:this[_0x216814(0x123)],this[_0x216814(0x275)]=(_0x50b916=_0x32b9f0[_0x216814(0x2a4)])!=null?_0x50b916:this[_0x216814(0x275)],this[_0x216814(0x223)]=(_0x17cf8d=_0x32b9f0[_0x216814(0x1ab)])!=null?_0x17cf8d:this[_0x216814(0x223)],this[_0x216814(0x13f)]=(_0x4eb259=_0x32b9f0['backgroundColor'])!=null?_0x4eb259:this[_0x216814(0x13f)],this[_0x216814(0x22e)]({'width':_0x32b9f0[_0x216814(0x244)],'height':_0x32b9f0[_0x216814(0x10b)]});}[_0xf42a26(0x24a)](_0x4d16b9){const _0x58709f=_0xf42a26,{row:_0x4fcfcf,column:_0x374f8e}=_0x4d16b9;if(_0x4fcfcf>=this[_0x58709f(0x123)][_0x58709f(0x14a)]&&_0x4fcfcf<=this[_0x58709f(0x123)][_0x58709f(0x157)]&&_0x374f8e>=this[_0x58709f(0x123)][_0x58709f(0x197)]&&_0x374f8e<=this[_0x58709f(0x123)]['endColumn']){this[_0x58709f(0x2e1)]({'hovered':!0x0});return;}this[_0x58709f(0x2e1)]({'hovered':!0x1});}[_0xf42a26(0x120)](_0xf2999d){return!0x1;}[_0xf42a26(0x196)](_0x43f107){const _0x4381d1=_0xf42a26;_0x99e1c8[_0x4381d1(0x106)](_0x43f107,{'width':this[_0x4381d1(0x244)],'height':this[_0x4381d1(0x10b)],'strokeWidth':Pi,'stroke':this[_0x4381d1(0x26b)],'evented':!0x1,'fill':this[_0x4381d1(0x13f)]}),this[_0x4381d1(0x127)]&&(_0x43f107[_0x4381d1(0x2cb)](),_0x43f107[_0x4381d1(0x110)](0x1,0x0,0x0,0x1,this['width'],this[_0x4381d1(0x223)]===_0x4381d1(0x1e1)?0x0:-0x14),he[_0x4381d1(0x106)](_0x43f107,{'text':this[_0x4381d1(0x275)],'color':this['_color']}),_0x43f107[_0x4381d1(0x2bd)]());}}var Ai=Object['getOwnPropertyDescriptor'],yi=(_0x2c35ee,_0x23ed30,_0x388e47,_0x33c377)=>{const _0x383645=_0xf42a26;for(var _0x32e9fc=_0x33c377>0x1?void 0x0:_0x33c377?Ai(_0x23ed30,_0x388e47):_0x23ed30,_0x58fa8a=_0x2c35ee[_0x383645(0x1db)]-0x1,_0x1f5a0b;_0x58fa8a>=0x0;_0x58fa8a--)(_0x1f5a0b=_0x2c35ee[_0x58fa8a])&&(_0x32e9fc=_0x1f5a0b(_0x32e9fc)||_0x32e9fc);return _0x32e9fc;},ve=(_0x4a6fcb,_0x45427d)=>(_0x140d67,_0x96bbea)=>_0x45427d(_0x140d67,_0x96bbea,_0x4a6fcb);const $i=0x1389;let Pe=class extends _0x14f0e9{constructor(_0x1246ae,_0x145788,_0x213ca5,_0x398f07){const _0x1c0152=_0xf42a26;super(),_(this,'_cursors',new Set()),_(this,_0x1c0152(0x293),null),(this['_context']=_0x1246ae,this[_0x1c0152(0x297)]=_0x145788,this['_collabCursorController']=_0x213ca5,this['_themeService']=_0x398f07,this[_0x1c0152(0x12b)]());}['_init'](){const _0x1eea4=_0xf42a26;this[_0x1eea4(0x297)][_0x1eea4(0x287)][_0x1eea4(0xe3)](_0xcd166b(this[_0x1eea4(0x1f9)]),_0xcd7cbc(_0x1d9b86=>{const _0x17c2b1=_0x1eea4;if(_0x1d9b86){const _0x210174=_0x1d9b86[_0x17c2b1(0x251)];return _0xe7a4f6(this[_0x17c2b1(0x2b1)]['getCollabCursors$'](this[_0x17c2b1(0x2ce)][_0x17c2b1(0x1fb)]),this[_0x17c2b1(0x117)][_0x17c2b1(0x12a)])[_0x17c2b1(0xe3)](_0x53609f(([_0x36e45f,_0x1b67da])=>{const _0x37833b=_0x17c2b1,_0x3b9a59=new Map();return _0x36e45f[_0x37833b(0x140)]((_0x186adc,_0x270f2b)=>{const _0x5678b9=_0x37833b;if(_0x186adc[_0x5678b9(0x103)]===_0x210174){const _0x376a5c={..._0x186adc};_0x376a5c[_0x5678b9(0x2c1)]=this[_0x5678b9(0x117)]['getColorFromTheme'](_0x186adc['color']),_0x3b9a59['set'](_0x270f2b,_0x376a5c);}}),{'skeleton':_0x1d9b86,'cursors':_0x3b9a59};}));}return _0x3a77a9({'skeleton':null,'cursors':new Map()});}))[_0x1eea4(0x1d7)](({skeleton:_0x37232e,cursors:_0x36638a})=>{const _0x14bb63=_0x1eea4;this['_removeCollabCursors'](),_0x37232e&&this[_0x14bb63(0x201)](_0x37232e,_0x36638a);}),this[_0x1eea4(0x297)][_0x1eea4(0x287)][_0x1eea4(0x1d7)](_0x3c017a=>{const _0x57401b=_0x1eea4;if(_0x3c017a==null)return;const {skeleton:_0xbe771e}=_0x3c017a,{scene:_0x3b516f}=this['_context'];_0x3b516f[_0x57401b(0x179)]['subscribeEvent'](_0x4729f8(_0x4f697f=>{const _0x3082a1=_0x57401b;var _0x59f0e3,_0x462df4;const {offsetX:_0x484e4a,offsetY:_0x5e1a32}=_0x4f697f,{x:_0x293a8f,y:_0x4dc7a2}=_0x3b516f[_0x3082a1(0x222)](_0x542be7['FromArray']([_0x484e4a,_0x5e1a32])),{scaleX:_0x54d6c6,scaleY:_0x5cc530}=_0x3b516f[_0x3082a1(0x172)](),_0x3caca0=_0x3b516f['getViewport'](_0x691c2a[_0x3082a1(0x17b)]),_0x43b2a2=_0x3b516f[_0x3082a1(0x153)](_0x542be7['FromArray']([_0x293a8f,_0x4dc7a2]),_0x3caca0),_0x2e13de=_0xbe771e[_0x3082a1(0x126)](_0x484e4a,_0x5e1a32,_0x54d6c6,_0x5cc530,_0x43b2a2);((_0x59f0e3=this[_0x3082a1(0x293)])==null?void 0x0:_0x59f0e3[_0x3082a1(0x2db)])===_0x2e13de[_0x3082a1(0x2db)]&&((_0x462df4=this[_0x3082a1(0x293)])==null?void 0x0:_0x462df4['row'])===_0x2e13de['row']||this[_0x3082a1(0x139)]['forEach'](_0x2f4c1e=>{const _0x2a36dc=_0x3082a1;_0x2f4c1e[_0x2a36dc(0x24a)](_0x2e13de);});},0x64));});}['_updateCollabCursors'](_0x185fdb,_0x251f91){const _0x5a9c61=_0xf42a26;var _0x5d3c79;const _0xf7750a=(_0x5d3c79=this[_0x5a9c61(0x297)][_0x5a9c61(0x270)]())==null?void 0x0:_0x5d3c79[_0x5a9c61(0xf9)];if(!_0xf7750a)return;const _0x19be28=this[_0x5a9c61(0x21e)]();if(!_0x19be28)return;this[_0x5a9c61(0x139)][_0x5a9c61(0x140)](_0x1cf9f2=>{const _0x39b87d=_0x5a9c61;_0x1cf9f2[_0x39b87d(0x1e4)]();});const {scene:_0x5404e7}=_0x19be28,_0x4572d4=xi(Array[_0x5a9c61(0x214)](_0x251f91[_0x5a9c61(0x1b3)]()))[_0x5a9c61(0x24d)](_0x4e4201=>{const _0x439296=_0x5a9c61,{color:_0x32bbfc,range:_0x3af0ff,name:_0x52ddb2,selection:_0x1205e5,sheetID:_0x261ed3}=_0x4e4201,{startColumn:_0x1364b2,startRow:_0x1023bf,endColumn:_0x107ce9,endRow:_0x4f44b5}=_0x3af0ff,_0xa89b59=_0x4684b7(_0x1023bf,_0x1364b2,_0x5404e7,_0xf7750a),_0x2fdfdc=_0x4684b7(_0x4f44b5,_0x107ce9,_0x5404e7,_0xf7750a),{columnHeaderHeightAndMarginTop:_0x431784}=_0xf7750a,{startX:_0x4265ff,startY:_0x27692a}=_0xa89b59,{endX:_0x54d5ff,endY:_0x3f8629}=_0x2fdfdc,_0x3ada3f=_0x54d5ff-_0x4265ff,_0x2b696e=_0x3f8629-_0x27692a,_0x3be487={'labelPosition':_0x27692a-_0x431784>=ee?'top':_0x439296(0x1e1),'sheetID':_0x261ed3,'range':_0x3af0ff,'color':_0x32bbfc,'name':_0x52ddb2,'selection':_0x1205e5,'left':_0x4265ff,'top':_0x27692a,'width':_0x3ada3f,'height':_0x2b696e,'evented':!0x1,'zIndex':$i};return new wi(_0x52ddb2,_0x3be487);});_0x5404e7[_0x5a9c61(0x160)](_0x4572d4,Li),this[_0x5a9c61(0x139)]=new Set(_0x4572d4);}[_0xf42a26(0x1be)](){const _0x3ea3c0=_0xf42a26;var _0x2d5a56;(_0x2d5a56=this[_0x3ea3c0(0x139)])==null||_0x2d5a56[_0x3ea3c0(0x140)](_0x27ac5e=>_0x27ac5e[_0x3ea3c0(0x229)]());}[_0xf42a26(0x21e)](){const _0x2ac0ce=_0xf42a26;return _0x4d4d0a(this[_0x2ac0ce(0x2ce)][_0x2ac0ce(0x24b)],this[_0x2ac0ce(0x2ce)]);}};Pe=yi([ve(0x1,_0x29894a(_0xddd58f)),ve(0x2,_0x29894a(H)),ve(0x3,_0x29894a(_0x35497a))],Pe);function xi(_0x49f92e){const _0x588b1a=_0xf42a26,_0x5bc03f=new Map();return _0x49f92e['forEach'](_0xbdfb25=>{const _0x5a1323=_0x4fb2;if(_0x5bc03f[_0x5a1323(0x18f)](_0xbdfb25[_0x5a1323(0x2b0)])){const _0x1f97a3=_0x5bc03f[_0x5a1323(0x27e)](_0xbdfb25[_0x5a1323(0x2b0)]);_0x1f97a3[_0x5a1323(0x2a4)]+=',\x20'+_0xbdfb25[_0x5a1323(0x2a4)];}else _0x5bc03f[_0x5a1323(0x2b4)](_0xbdfb25[_0x5a1323(0x2b0)],_0xbdfb25);}),Array['from'](_0x5bc03f[_0x588b1a(0x1b3)]());}var v=function(){const _0x13a829=_0xf42a26;return v=Object[_0x13a829(0x277)]||function(_0x43ea5d){const _0x28f66a=_0x13a829;for(var _0x575909,_0x181bcd=0x1,_0x2f16c2=arguments[_0x28f66a(0x1db)];_0x181bcd<_0x2f16c2;_0x181bcd++){_0x575909=arguments[_0x181bcd];for(var _0x333d11 in _0x575909)Object[_0x28f66a(0x1ce)][_0x28f66a(0x2ac)]['call'](_0x575909,_0x333d11)&&(_0x43ea5d[_0x333d11]=_0x575909[_0x333d11]);}return _0x43ea5d;},v[_0x13a829(0x254)](this,arguments);},Bi=function(_0x576b2f,_0x4c533b){const _0x304d76=_0xf42a26;var _0x57c120={};for(var _0x57e374 in _0x576b2f)Object['prototype'][_0x304d76(0x2ac)][_0x304d76(0x2aa)](_0x576b2f,_0x57e374)&&_0x4c533b[_0x304d76(0x216)](_0x57e374)<0x0&&(_0x57c120[_0x57e374]=_0x576b2f[_0x57e374]);if(_0x576b2f!=null&&typeof Object[_0x304d76(0x1e9)]==_0x304d76(0xe8)){for(var _0x27e11c=0x0,_0x57e374=Object[_0x304d76(0x1e9)](_0x576b2f);_0x27e11c<_0x57e374[_0x304d76(0x1db)];_0x27e11c++)_0x4c533b[_0x304d76(0x216)](_0x57e374[_0x27e11c])<0x0&&Object[_0x304d76(0x1ce)][_0x304d76(0x27a)][_0x304d76(0x2aa)](_0x576b2f,_0x57e374[_0x27e11c])&&(_0x57c120[_0x57e374[_0x27e11c]]=_0x576b2f[_0x57e374[_0x27e11c]]);}return _0x57c120;},Fe=_0x1f8b6f(function(_0x1e778c,_0x22cfd9){const _0x537363=_0xf42a26;var _0x46ad54=_0x1e778c['icon'],_0x556e00=_0x1e778c['id'],_0xc0ba84=_0x1e778c[_0x537363(0x149)],_0x5564c8=_0x1e778c['extend'],_0x3a89c8=Bi(_0x1e778c,[_0x537363(0x258),'id',_0x537363(0x149),_0x537363(0x18c)]),_0x185e08=_0x537363(0x137)[_0x537363(0x1b6)](_0x556e00,'\x20')[_0x537363(0x1b6)](_0xc0ba84||'')['trim'](),_0xaf3179=_0x431501('_'[_0x537363(0x1b6)](Fi()));return Rt(_0x46ad54,''[_0x537363(0x1b6)](_0x556e00),{'defIds':_0x46ad54[_0x537363(0x243)],'idSuffix':_0xaf3179['current']},v({'ref':_0x22cfd9,'className':_0x185e08},_0x3a89c8),_0x5564c8);});function Rt(_0x5260d7,_0x4aa4fd,_0x24749f,_0x17fa96,_0x331e5e){const _0x5227ad=_0xf42a26;return _0x39f8fc(_0x5260d7[_0x5227ad(0xf7)],v(v({'key':_0x4aa4fd},ki(_0x5260d7,_0x24749f,_0x331e5e)),_0x17fa96),(Hi(_0x5260d7,_0x24749f)[_0x5227ad(0x194)]||[])['map'](function(_0x37b4ca,_0x5b2610){const _0x2c7801=_0x5227ad;return Rt(_0x37b4ca,''[_0x2c7801(0x1b6)](_0x4aa4fd,'-')[_0x2c7801(0x1b6)](_0x5260d7['tag'],'-')[_0x2c7801(0x1b6)](_0x5b2610),_0x24749f,void 0x0,_0x331e5e);}));}function ki(_0x4ea478,_0x58163c,_0x1cd45d){const _0x15d280=_0xf42a26;var _0x1b9ea2=v({},_0x4ea478[_0x15d280(0x2a0)]);_0x1cd45d!=null&&_0x1cd45d[_0x15d280(0x176)]&&_0x1b9ea2[_0x15d280(0x257)]===_0x15d280(0x176)&&(_0x1b9ea2['fill']=_0x1cd45d['colorChannel1']),_0x4ea478[_0x15d280(0xf7)]===_0x15d280(0x23b)&&_0x1b9ea2['id']&&(_0x1b9ea2['id']=_0x1b9ea2['id']+_0x58163c[_0x15d280(0x1f4)]),Object[_0x15d280(0x124)](_0x1b9ea2)[_0x15d280(0x140)](function(_0x980515){const _0x3aabc3=_0x15d280;var _0x11a33a=_0x980515[0x0],_0x3a8e2b=_0x980515[0x1];_0x11a33a===_0x3aabc3(0x23b)&&typeof _0x3a8e2b==_0x3aabc3(0x204)&&(_0x1b9ea2[_0x11a33a]=_0x3a8e2b['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3aabc3(0x1b6)](_0x58163c[_0x3aabc3(0x1f4)],')')));});var _0x4d7726=_0x58163c[_0x15d280(0x243)];return!_0x4d7726||_0x4d7726[_0x15d280(0x1db)]===0x0||(_0x4ea478['tag']===_0x15d280(0x1af)&&_0x1b9ea2[_0x15d280(0x143)]&&(_0x1b9ea2[_0x15d280(0x143)]=_0x1b9ea2[_0x15d280(0x143)]+_0x58163c[_0x15d280(0x1f4)]),Object[_0x15d280(0x124)](_0x1b9ea2)[_0x15d280(0x140)](function(_0x36fc9d){const _0x2821aa=_0x15d280;var _0x11a8df=_0x36fc9d[0x0],_0x5b82b8=_0x36fc9d[0x1];typeof _0x5b82b8==_0x2821aa(0x204)&&(_0x1b9ea2[_0x11a8df]=_0x5b82b8['replace'](/url\(#(.*)\)/,_0x2821aa(0x29f)['concat'](_0x58163c['idSuffix'],')')));})),_0x1b9ea2;}function Hi(_0x22ed06,_0x2a0f6d){const _0x3e918c=_0xf42a26;var _0x16faeb,_0x12eee2=_0x2a0f6d[_0x3e918c(0x243)];return!_0x12eee2||_0x12eee2[_0x3e918c(0x1db)]===0x0?_0x22ed06:_0x22ed06[_0x3e918c(0xf7)]===_0x3e918c(0x271)&&(!((_0x16faeb=_0x22ed06[_0x3e918c(0x194)])===null||_0x16faeb===void 0x0)&&_0x16faeb['length'])?v(v({},_0x22ed06),{'children':_0x22ed06['children'][_0x3e918c(0x24d)](function(_0xa1ad1d){const _0x36866b=_0x3e918c;return typeof _0xa1ad1d[_0x36866b(0x2a0)]['id']=='string'&&_0x12eee2&&_0x12eee2[_0x36866b(0x1ba)](_0xa1ad1d['attrs']['id'])?v(v({},_0xa1ad1d),{'attrs':v(v({},_0xa1ad1d['attrs']),{'id':_0xa1ad1d[_0x36866b(0x2a0)]['id']+_0x2a0f6d[_0x36866b(0x1f4)]})}):_0xa1ad1d;})}):_0x22ed06;}function Fi(){const _0x5e2db7=_0xf42a26;return Math[_0x5e2db7(0x2a3)]()[_0x5e2db7(0x211)](0x24)[_0x5e2db7(0x2d5)](0x2,0x8);}Fe['displayName']=_0xf42a26(0x219);var Yi={'tag':_0xf42a26(0x171),'attrs':{'xmlns':_0xf42a26(0x202),'fill':_0xf42a26(0x29d),'viewBox':_0xf42a26(0x2d6),'width':_0xf42a26(0x1ee),'height':_0xf42a26(0x1ee)},'children':[{'tag':'g','attrs':{'clipPath':_0xf42a26(0x29b)},'children':[{'tag':_0xf42a26(0x240),'attrs':{'stroke':_0xf42a26(0x114),'d':_0xf42a26(0x26c),'strokeLinecap':_0xf42a26(0x1d3),'strokeLinejoin':_0xf42a26(0x1d3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xf42a26(0x1e5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xf42a26(0x240),'attrs':{'fill':_0xf42a26(0x1e6),'d':_0xf42a26(0x25f)}}]}]}],'defIds':[_0xf42a26(0x20b)]},Dt=_0x1f8b6f(function(_0x4a3b46,_0x4d67b0){const _0x4dd86e=_0xf42a26;return _0x39f8fc(Fe,Object[_0x4dd86e(0x277)]({},_0x4a3b46,{'id':_0x4dd86e(0x200),'ref':_0x4d67b0,'icon':Yi}));});Dt['displayName']=_0xf42a26(0xf8);var ji={'tag':_0xf42a26(0x171),'attrs':{'xmlns':_0xf42a26(0x202),'fill':_0xf42a26(0x29d),'viewBox':_0xf42a26(0x2df),'width':_0xf42a26(0x1ee),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xf42a26(0x2cd)},'children':[{'tag':_0xf42a26(0x240),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xf42a26(0x1d3),'strokeLinejoin':_0xf42a26(0x1d3),'strokeWidth':1.2}}]},{'tag':_0xf42a26(0x271),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xf42a26(0x240),'attrs':{'fill':_0xf42a26(0x1e6),'d':_0xf42a26(0x25f),'transform':'translate(.97)'}}]}]}],'defIds':[_0xf42a26(0x215)]},Nt=_0x1f8b6f(function(_0x1ff9ea,_0x319eba){const _0xb1c3a6=_0xf42a26;return _0x39f8fc(Fe,Object[_0xb1c3a6(0x277)]({},_0x1ff9ea,{'id':'on-line-icon','ref':_0x319eba,'icon':ji}));});Nt[_0xf42a26(0x239)]=_0xf42a26(0x18a);function Vi(_0x5e112f){const _0x2049d2=_0xf42a26;switch(_0x5e112f){case _0x128ff3['OFFLINE']:return _0x2049d2(0x181);case _0x128ff3[_0x2049d2(0x125)]:return _0x2049d2(0x255);case _0x128ff3[_0x2049d2(0x16d)]:return _0x2049d2(0x263);case _0x128ff3['NOT_COLLAB']:return _0x2049d2(0x121);case _0x128ff3[_0x2049d2(0x118)]:case _0x128ff3[_0x2049d2(0x17c)]:return _0x2049d2(0x1e3);case _0x128ff3[_0x2049d2(0x2ab)]:case _0x128ff3['PENDING']:return _0x2049d2(0x29e);}}function Wi(_0x38aa9a){const _0x55da28=_0xf42a26,{status$:_0x5b8e0c}=_0x38aa9a,_0x50159f=_0x34e523(_0x5b8e0c,_0x128ff3[_0x55da28(0x1ef)]),_0x1828cd=_0x1b4157(_0x5e2123),_0x19df18=_0x1b4157(_0x185917),_0x3c95c6=_0x50159f!==_0x128ff3[_0x55da28(0x19e)],_0x5c6b1c=_0x1828cd['t'](Vi(_0x50159f)),_0x457b96=_0x3c95c6?_0x250ed4(Nt,{}):_0x250ed4(Dt,{}),_0x24c52f=_0x3cda26(()=>{_0x3c95c6||_0x19df18['reconnect']();},[_0x3c95c6,_0x19df18]);function _0x223e07(){const _0x4111f3=_0x55da28;return _0x290399(_0x4111f3(0x15b),{'className':'univer-flex\x20univer-items-center','onClick':_0x24c52f,'children':[_0x250ed4(_0x4111f3(0x15b),{'className':_0x259845(_0x4111f3(0x112),{'univer-text-green-500':_0x3c95c6,'univer-text-red-500':!_0x3c95c6}),'children':_0x457b96}),_0x250ed4(_0x4111f3(0x15b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5c6b1c})]});}return _0x3c95c6?_0x223e07():_0x250ed4(_0x457153,{'title':_0x1828cd['t'](_0x55da28(0xea)),'children':_0x223e07()});}var Xi=Object[_0xf42a26(0x12c)],Gi=(_0xf3b480,_0x5a0b76,_0xf41eb8,_0x27bc37)=>{for(var _0x341877=_0x27bc37>0x1?void 0x0:_0x27bc37?Xi(_0x5a0b76,_0xf41eb8):_0x5a0b76,_0x25f4fe=_0xf3b480['length']-0x1,_0x5ed619;_0x25f4fe>=0x0;_0x25f4fe--)(_0x5ed619=_0xf3b480[_0x25f4fe])&&(_0x341877=_0x5ed619(_0x341877)||_0x341877);return _0x341877;},Q=(_0x277b39,_0x34c843)=>(_0x4491c5,_0x4a5a8f)=>_0x34c843(_0x4491c5,_0x4a5a8f,_0x277b39);let te=class extends _0x382bf8{constructor(_0x20ae51,_0x5287c7,_0x5982f1,_0x57f948){const _0x5a835e=_0xf42a26;super(),_(this,'_status$',new _0x535baf(_0x128ff3[_0x5a835e(0x1ef)])),(this[_0x5a835e(0x188)]=_0x20ae51,this[_0x5a835e(0x2a5)]=_0x5287c7,this[_0x5a835e(0x100)]=_0x5982f1,this[_0x5a835e(0x284)]=_0x57f948,this['_initStatusComponent'](),this[_0x5a835e(0x20a)]());}[_0xf42a26(0x20a)](){const _0x16e585=_0xf42a26;this['disposeWithMe'](this[_0x16e585(0x188)]['focused$'][_0x16e585(0xe3)](_0x188327(()=>{const _0x1c7944=_0x16e585,_0x44a341=this[_0x1c7944(0x188)][_0x1c7944(0x1b7)]();return _0x44a341?this[_0x1c7944(0x100)]['getCollabEntity$'](_0x44a341[_0x1c7944(0x1b2)]()):_0x3a77a9(null);}),_0x188327(_0x446b36=>_0x446b36?_0x446b36['status$']:_0x3a77a9(_0x128ff3[_0x16e585(0x1ef)])))['subscribe'](_0xa376df=>{const _0x5ba8de=_0x16e585;this[_0x5ba8de(0x1de)]['next'](_0xa376df);}));}['_initStatusComponent'](){const _0x5a65c5=_0xf42a26;this['disposeWithMe'](this[_0x5a65c5(0x284)][_0x5a65c5(0x25e)](_0x5f3ae7[_0x5a65c5(0x11a)],()=>_0x2c9e44(Ki({'status$':this[_0x5a65c5(0x1de)][_0x5a65c5(0x1c5)]()}),this[_0x5a65c5(0x2a5)])));}};te=Gi([Q(0x0,_0x26c0aa),Q(0x1,_0x29894a(_0x50c06f)),Q(0x2,_0x29894a(_0x1b39da)),Q(0x3,_0x3b847f)],te);function Ki(_0x39a7e6){const {status$:_0x5303a0}=_0x39a7e6;return function(){return _0x250ed4(Wi,{'status$':_0x5303a0});};}var zi=Object[_0xf42a26(0x12c)],Ji=(_0x384d3c,_0x4448cb,_0x4345a4,_0x3905e2)=>{for(var _0x84e616=_0x3905e2>0x1?void 0x0:_0x3905e2?zi(_0x4448cb,_0x4345a4):_0x4448cb,_0x3fd96b=_0x384d3c['length']-0x1,_0x5a3233;_0x3fd96b>=0x0;_0x3fd96b--)(_0x5a3233=_0x384d3c[_0x3fd96b])&&(_0x84e616=_0x5a3233(_0x84e616)||_0x84e616);return _0x84e616;},B=(_0x5953d7,_0x89b4a5)=>(_0x431847,_0x4b56c2)=>_0x89b4a5(_0x431847,_0x4b56c2,_0x5953d7);let se=class extends _0x382bf8{constructor(_0xda051b,_0x45957d,_0x3d8b96,_0x44b1d1,_0x2f6d29,_0x1686a5){const _0x307cc8=_0xf42a26;super(),this[_0x307cc8(0xe1)]=_0xda051b,this[_0x307cc8(0x245)]=_0x45957d,this['_collaborationUIEventService']=_0x3d8b96,this[_0x307cc8(0x267)]=_0x44b1d1,this[_0x307cc8(0x158)]=_0x2f6d29,this[_0x307cc8(0x178)]=_0x1686a5,this[_0x307cc8(0x170)](),this[_0x307cc8(0x19c)]();}[_0xf42a26(0x170)](){const _0x599b88=_0xf42a26;this[_0x599b88(0x136)](this[_0x599b88(0xe1)][_0x599b88(0x21f)](()=>{const _0x2ab8f6=_0x599b88;if(this[_0x2ab8f6(0x245)][_0x2ab8f6(0x1c0)][_0x2ab8f6(0x130)])return this['_localeService']['t'](_0x2ab8f6(0x22a));}));}[_0xf42a26(0x19c)](){const _0x57748b=_0xf42a26;this['disposeWithMe'](this[_0x57748b(0x1b0)]['event$']['subscribe'](_0x4d2a5b=>{const _0x456002=_0x57748b;_0x4d2a5b['id']===_0xfb429d[_0x456002(0x146)]&&this[_0x456002(0x267)][_0x456002(0x209)]({'type':_0x132b2f['Warning'],'content':this[_0x456002(0x178)]['t']('collaboration.single-unit.warning')}),_0x4d2a5b['id']===_0xfb429d[_0x456002(0x134)]&&this[_0x456002(0x267)][_0x456002(0x209)]({'type':_0x132b2f['Warning'],'content':this[_0x456002(0x178)]['t'](_0x456002(0x265))}),_0x4d2a5b['id']===_0xfb429d['PERMISSION_DENIED']&&this[_0x456002(0x158)][_0x456002(0x209)]({'title':this['_localeService']['t'](_0x456002(0x20f)),'content':this['_localeService']['t'](_0x456002(0x283)),'type':_0x456002(0xff),'duration':0x0}),_0x4d2a5b['id']===_0xfb429d[_0x456002(0x125)]&&this['_messageService']['show']({'type':_0x132b2f[_0x456002(0x218)],'content':this[_0x456002(0x178)]['t']('collaboration.closeRoom')+'('+_0x4d2a5b[_0x456002(0x238)]+')'}),_0x4d2a5b['id']===_0xfb429d['JOIN_ROOM_FAILED']&&this['_messageService'][_0x456002(0x209)]({'type':_0x132b2f[_0x456002(0x2c4)],'content':this[_0x456002(0x178)]['t'](_0x4d2a5b[_0x456002(0x238)]||'')}),_0x4d2a5b['id']===_0xfb429d[_0x456002(0x226)]&&this[_0x456002(0x267)][_0x456002(0x209)]({'type':_0x132b2f[_0x456002(0x2c4)],'content':this[_0x456002(0x178)]['t'](_0x456002(0x177))}),_0x4d2a5b['id']===_0xfb429d[_0x456002(0x1a3)]&&this[_0x456002(0x267)]['show']({'type':_0x132b2f[_0x456002(0x218)],'content':this[_0x456002(0x178)]['t'](_0x456002(0x1d4))}),_0x4d2a5b['id']===_0xfb429d[_0x456002(0x15f)]&&this['_messageService'][_0x456002(0x209)]({'type':_0x132b2f[_0x456002(0x218)],'content':this[_0x456002(0x178)]['t'](_0x456002(0xe5))});}));}};se=Ji([B(0x0,_0x1f171c),B(0x1,_0x30966a),B(0x2,_0x29894a(_0x48bf70)),B(0x3,_0x29ae03),B(0x4,_0x3f120a),B(0x5,_0x29894a(_0x5e2123))],se);const Zi='collaboration-client-ui.config',et={},Ut=_0x103abb(_0xf42a26(0x109));var Qi=Object[_0xf42a26(0x12c)],qi=(_0x1fea8e,_0x524d13,_0x4f7249,_0x2dbb20)=>{for(var _0x171700=_0x2dbb20>0x1?void 0x0:_0x2dbb20?Qi(_0x524d13,_0x4f7249):_0x524d13,_0x272b49=_0x1fea8e['length']-0x1,_0x186eeb;_0x272b49>=0x0;_0x272b49--)(_0x186eeb=_0x1fea8e[_0x272b49])&&(_0x171700=_0x186eeb(_0x171700)||_0x171700);return _0x171700;},G=(_0x145c28,_0x282a39)=>(_0x5a5e7a,_0x4cdec2)=>_0x282a39(_0x5a5e7a,_0x4cdec2,_0x145c28);let ie=class extends _0x14f0e9{constructor(_0x3a8a33,_0x2c7c11,_0x389a6a,_0x2e9103,_0x12d1e8){const _0x50250f=_0xf42a26;super(),this['_urlService']=_0x3a8a33,this[_0x50250f(0x2b6)]=_0x2c7c11,this[_0x50250f(0x1ad)]=_0x389a6a,this[_0x50250f(0x104)]=_0x2e9103,_0x12d1e8?_0x12d1e8==null||_0x12d1e8[_0x50250f(0x24c)]()['then'](()=>this['_init']()):(this['_logService']['debug'](_0x50250f(0x25d),_0x50250f(0x290)),this[_0x50250f(0x12b)]());}async[_0xf42a26(0x12b)](){const _0x4f2354=_0xf42a26,_0x337476=this[_0x4f2354(0x28f)][_0x4f2354(0x131)]('unit'),_0x19ed36=this[_0x4f2354(0x28f)]['getParam']('type'),_0x4bd48b=this[_0x4f2354(0x28f)]['getParam'](_0x4f2354(0x1a0));if(!_0x337476||!_0x19ed36){this[_0x4f2354(0x2b6)][_0x4f2354(0x156)](_0x4f2354(0x25d),_0x4f2354(0x2d7));return;}const _0xbf607c=await this[_0x4f2354(0x104)]['loadUnit'](_0x337476,Number(_0x19ed36),_0x4bd48b);_0xbf607c&&_0xbf607c instanceof _0x7953d3&&this['_setupSubUnitSync'](_0xbf607c);}async[_0xf42a26(0x2bf)](_0x36e186){const _0x388c6b=_0xf42a26;await this[_0x388c6b(0x14e)](_0x36e186),_0x36e186['activeSheet$'][_0x388c6b(0xe3)](_0x1101d1(this[_0x388c6b(0x1f9)]))[_0x388c6b(0x1d7)](_0x6f248f=>{const _0x3bbd9a=_0x388c6b;_0x6f248f&&this[_0x3bbd9a(0x2d3)](_0x6f248f);}),this[_0x388c6b(0x28f)][_0x388c6b(0x1ac)]['pipe'](_0x1101d1(this[_0x388c6b(0x1f9)]))[_0x388c6b(0x1d7)](()=>this[_0x388c6b(0x14e)](_0x36e186));}[_0xf42a26(0x2d3)](_0x19b2c6,_0x2823fd=!0x1){const _0x430805=_0xf42a26,_0x2b988f=this['_urlService'][_0x430805(0x131)](_0x430805(0x1a0));_0x19b2c6[_0x430805(0x151)]()!==_0x2b988f&&this[_0x430805(0x28f)][_0x430805(0x129)](_0x430805(0x1a0),_0x19b2c6[_0x430805(0x151)](),_0x2823fd);}async['_updateSubUnitFromURLParams'](_0x4eb797){const _0x548f62=_0xf42a26;var _0x4474db;const _0x3f1b23=this[_0x548f62(0x28f)][_0x548f62(0x131)](_0x548f62(0x1a0));if(!_0x3f1b23||!_0x4eb797[_0x548f62(0x166)](_0x3f1b23)){const _0x162cc8=_0x4eb797[_0x548f62(0x285)]()[0x0],_0x594c28=_0x4eb797[_0x548f62(0x166)](_0x162cc8);if(!_0x594c28)return;this[_0x548f62(0x2d3)](_0x594c28,!0x0),await this['_commandService'][_0x548f62(0x1bb)](_0x12eabb['id'],{'unitId':_0x4eb797[_0x548f62(0x1b2)](),'subUnitId':_0x162cc8});return;}((_0x4474db=_0x4eb797[_0x548f62(0x1bf)]())==null?void 0x0:_0x4474db[_0x548f62(0x151)]())!==_0x3f1b23&&await this[_0x548f62(0x1ad)]['executeCommand'](_0x12eabb['id'],{'unitId':_0x4eb797[_0x548f62(0x1b2)](),'subUnitId':_0x3f1b23});}};ie=qi([G(0x0,Ut),G(0x1,_0xe3c8a),G(0x2,_0x2320d3),G(0x3,_0x29894a(_0x47d780)),G(0x4,_0x19d3e8(_0x48e1a4))],ie);var en=Object[_0xf42a26(0x12c)],tn=(_0x569997,_0x2634a9,_0x148b3d,_0x451682)=>{const _0x2aa7b3=_0xf42a26;for(var _0x47b0ba=_0x451682>0x1?void 0x0:_0x451682?en(_0x2634a9,_0x148b3d):_0x2634a9,_0x40940d=_0x569997[_0x2aa7b3(0x1db)]-0x1,_0x496e3e;_0x40940d>=0x0;_0x40940d--)(_0x496e3e=_0x569997[_0x40940d])&&(_0x47b0ba=_0x496e3e(_0x47b0ba)||_0x47b0ba);return _0x47b0ba;},pe=(_0x5bf0fe,_0x11db2b)=>(_0x3f4c90,_0x1725aa)=>_0x11db2b(_0x3f4c90,_0x1725aa,_0x5bf0fe);let ne=class{constructor(_0x29ec76,_0xb012e5,_0x1b2688){const _0x4bcd7b=_0xf42a26;this[_0x4bcd7b(0x2a5)]=_0x29ec76,this[_0x4bcd7b(0x1c8)]=_0xb012e5,this[_0x4bcd7b(0x19f)]=_0x1b2688;}[_0xf42a26(0xe4)](_0x1a624e){const _0x322457=_0xf42a26;this['_transformUndoRedoStack'](_0x1a624e),this[_0x322457(0x20d)](_0x1a624e);}[_0xf42a26(0x298)](_0x3c79ce){const _0x58645b=_0xf42a26,{unitID:_0x1a949a}=_0x3c79ce,_0x2d9761=this[_0x58645b(0x19f)][_0x58645b(0x29c)](_0x1a949a)[_0x58645b(0x260)](_0x258c9c),{redoCache:_0x50fc52}=_0x2d9761[_0x58645b(0x14c)]();if(_0x50fc52[_0x58645b(0x1db)]===0x0)return _0x3c79ce;let _0x27f1bf=_0x51f6f1[_0x58645b(0x16b)](_0x3c79ce[_0x58645b(0xf0)][0x0]);for(let _0x202406=0x0;_0x202406<_0x50fc52[_0x58645b(0x1db)];_0x202406++){const _0x1fb2b1={'id':_0x58645b(0x26f),'params':{..._0x50fc52[_0x202406]}},_0xfe8707=this[_0x58645b(0x1c8)][_0x58645b(0xe6)](_0x27f1bf,_0x1fb2b1,!0x1);if(_0x5ec000(_0xfe8707))throw _0xfe8707['error'];_0x27f1bf=_0xfe8707['m1Prime'];}return{..._0x51f6f1[_0x58645b(0x16b)](_0x3c79ce),'mutations':[_0x27f1bf]};}[_0xf42a26(0x228)](_0x1ae80a){const _0x441ea7=_0xf42a26,{unitID:_0x2a6915}=_0x1ae80a,_0x4aa359=this[_0x441ea7(0x19f)][_0x441ea7(0x29c)](_0x2a6915)[_0x441ea7(0x260)](_0x258c9c),{undoCache:_0x246005,redoCache:_0x3f2a15}=_0x4aa359['getUndoRedoMutationParamsCache']();if(_0x246005[_0x441ea7(0x1db)]===0x0||_0x3f2a15[_0x441ea7(0x1db)]===0x0)return;const _0x223834=[],_0x143e89=[];let _0x2a9b69=_0x51f6f1[_0x441ea7(0x16b)](_0x1ae80a[_0x441ea7(0xf0)][0x0]),_0x4d5439=_0x51f6f1[_0x441ea7(0x16b)](_0x1ae80a[_0x441ea7(0xf0)][0x0]);for(let _0x7f60e9=_0x246005[_0x441ea7(0x1db)]-0x1;_0x7f60e9>=0x0;_0x7f60e9--){const _0xb56b11={'id':_0x441ea7(0x26f),'params':{..._0x246005[_0x7f60e9]}},_0x150756={'id':_0x441ea7(0x26f),'params':{..._0x3f2a15[_0x7f60e9]}},_0x48a04b=this[_0x441ea7(0x1c8)][_0x441ea7(0xe6)](_0x2a9b69,_0xb56b11,!0x1),_0xcb5c3f=this[_0x441ea7(0x1c8)][_0x441ea7(0xe6)](_0x4d5439,_0x150756,!0x1);if(_0x5ec000(_0x48a04b))throw _0x48a04b[_0x441ea7(0xff)];if(_0x5ec000(_0xcb5c3f))throw _0xcb5c3f[_0x441ea7(0xff)];_0x223834[_0x441ea7(0x186)](_0x48a04b['m2Prime'][_0x441ea7(0x193)]),_0x143e89[_0x441ea7(0x186)](_0xcb5c3f[_0x441ea7(0x28d)][_0x441ea7(0x193)]),_0x2a9b69=_0x48a04b[_0x441ea7(0x23e)],_0x4d5439=_0xcb5c3f[_0x441ea7(0x23e)];}_0x4aa359['setUndoRedoMutationParamsCache']({'undoCache':_0x223834,'redoCache':_0x143e89});}[_0xf42a26(0x20d)](_0x296e18){const _0x4923a0=_0xf42a26,{unitID:_0x3c6371}=_0x296e18,_0x1e9924=this[_0x4923a0(0x19f)][_0x4923a0(0x29c)](_0x3c6371)['with'](_0x258c9c),_0x53e783=_0x1e9924[_0x4923a0(0x2d8)]();if(_0x53e783==null)return;const _0x5f5a7a=[{'id':_0x4923a0(0x26f),'params':{'unitId':_0x296e18[_0x4923a0(0x1a7)],'actions':null,'textRanges':[_0x53e783]}}],_0x4bd199=this[_0x4923a0(0x1c8)][_0x4923a0(0x28c)](_0x296e18,_0x5f5a7a);if(!_0x3b04b2(_0x4bd199))throw _0x4bd199[_0x4923a0(0xff)];const _0x3a15e1=_0x4bd199[_0x4923a0(0x28d)][0x0][_0x4923a0(0x193)][_0x4923a0(0x18e)];Array[_0x4923a0(0x183)](_0x3a15e1)&&_0x3a15e1[_0x4923a0(0x1db)]&&_0x1e9924[_0x4923a0(0x1b8)](_0x3a15e1[0x0]);}};ne=tn([pe(0x0,_0x29894a(_0x50c06f)),pe(0x1,_0x167c0a),pe(0x2,_0x1283ce)],ne);var sn=Object[_0xf42a26(0x12c)],nn=(_0x28bd46,_0xbbbba9,_0x4ff4c4,_0x5b08c4)=>{const _0x2ad8c3=_0xf42a26;for(var _0x1641b5=_0x5b08c4>0x1?void 0x0:_0x5b08c4?sn(_0xbbbba9,_0x4ff4c4):_0xbbbba9,_0x77ecce=_0x28bd46[_0x2ad8c3(0x1db)]-0x1,_0x4c5726;_0x77ecce>=0x0;_0x77ecce--)(_0x4c5726=_0x28bd46[_0x77ecce])&&(_0x1641b5=_0x4c5726(_0x1641b5)||_0x1641b5);return _0x1641b5;},Ce=(_0x56e6fe,_0x11ab34)=>(_0x5a3d73,_0x3e22d4)=>_0x11ab34(_0x5a3d73,_0x3e22d4,_0x56e6fe);let re=class{constructor(_0x719c0e,_0x18068d,_0x4c44b1){const _0x3a7688=_0xf42a26;this['_injector']=_0x719c0e,this[_0x3a7688(0x1c8)]=_0x18068d,this['_docStateChangeManagerService']=_0x4c44b1;}[_0xf42a26(0x2a8)](_0xe52967){const _0x181ee9=_0xf42a26;this[_0x181ee9(0x2ca)](_0xe52967);}[_0xf42a26(0x298)](_0x17e330){const _0x562e85=_0xf42a26,{unitID:_0x2d38fc}=_0x17e330,{collaboration:_0xffd583}=this[_0x562e85(0x1d5)]['getStateCache'](_0x2d38fc);if(_0xffd583[_0x562e85(0x1db)]===0x0)return _0x17e330;let _0xf45b4c=_0x51f6f1['deepClone'](_0x17e330[_0x562e85(0xf0)][0x0]);for(let _0x5f5cae=0x0;_0x5f5cae<_0xffd583[_0x562e85(0x1db)];_0x5f5cae++){const _0x2acc70={'id':_0x562e85(0x26f),'params':{'unitId':_0xffd583[_0x5f5cae]['unitId'],..._0xffd583[_0x5f5cae]['redoState']}},_0x2cda2=this['_transformService'][_0x562e85(0xe6)](_0xf45b4c,_0x2acc70,!0x1);if(_0x5ec000(_0x2cda2))throw _0x2cda2['error'];_0xf45b4c=_0x2cda2[_0x562e85(0x23e)];}return{..._0x51f6f1['deepClone'](_0x17e330),'mutations':[_0xf45b4c]};}[_0xf42a26(0x2ca)](_0x1dd03f){const _0x3ce731=_0xf42a26,{unitID:_0x5e30a2}=_0x1dd03f,{history:_0x271264,collaboration:_0x5d8c18}=this[_0x3ce731(0x1d5)][_0x3ce731(0x2b9)](_0x5e30a2);if(_0x271264['length']===0x0&&_0x5d8c18['length']===0x0)return;const _0x3dfd8a=[],_0x630eec=[];let _0x313036=_0x51f6f1[_0x3ce731(0x16b)](_0x1dd03f[_0x3ce731(0xf0)][0x0]),_0x47246=_0x51f6f1[_0x3ce731(0x16b)](_0x1dd03f[_0x3ce731(0xf0)][0x0]);for(let _0x9b3418=_0x271264[_0x3ce731(0x1db)]-0x1;_0x9b3418>=0x0;_0x9b3418--){const _0x553d22={'id':_0x3ce731(0x26f),'params':{'unitId':_0x271264[_0x9b3418]['unitId'],..._0x271264[_0x9b3418]['undoState']}},_0x4db35e={'id':_0x3ce731(0x26f),'params':{'unitId':_0x271264[_0x9b3418][_0x3ce731(0x1fb)],..._0x271264[_0x9b3418][_0x3ce731(0x1b9)]}},_0x1d0ca6=this[_0x3ce731(0x1c8)][_0x3ce731(0xe6)](_0x313036,_0x553d22,!0x1),_0x532803=this[_0x3ce731(0x1c8)]['transformMutation'](_0x47246,_0x4db35e,!0x1);if(_0x5ec000(_0x1d0ca6))throw _0x1d0ca6['error'];if(_0x5ec000(_0x532803))throw _0x532803[_0x3ce731(0xff)];_0x3dfd8a['unshift']({..._0x271264[_0x9b3418],'undoState':_0x1d0ca6['m2Prime']['params'],'redoState':_0x532803[_0x3ce731(0x28d)][_0x3ce731(0x193)]}),_0x313036=_0x1d0ca6['m1Prime'],_0x47246=_0x532803[_0x3ce731(0x23e)];}_0x313036=_0x51f6f1[_0x3ce731(0x16b)](_0x1dd03f['mutations'][0x0]),_0x47246=_0x51f6f1[_0x3ce731(0x16b)](_0x1dd03f['mutations'][0x0]);for(let _0x50e433=_0x5d8c18[_0x3ce731(0x1db)]-0x1;_0x50e433>=0x0;_0x50e433--){const _0x3b21c3={'id':_0x3ce731(0x26f),'params':{'unitId':_0x5d8c18[_0x50e433][_0x3ce731(0x1fb)],..._0x5d8c18[_0x50e433][_0x3ce731(0x1c9)]}},_0x7c249f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5d8c18[_0x50e433]['unitId'],..._0x5d8c18[_0x50e433][_0x3ce731(0x1b9)]}},_0x47cdfe=this['_transformService']['transformMutation'](_0x313036,_0x3b21c3,!0x1),_0x22c350=this[_0x3ce731(0x1c8)][_0x3ce731(0xe6)](_0x47246,_0x7c249f,!0x1);if(_0x5ec000(_0x47cdfe))throw _0x47cdfe['error'];if(_0x5ec000(_0x22c350))throw _0x22c350[_0x3ce731(0xff)];_0x630eec[_0x3ce731(0x186)]({..._0x5d8c18[_0x50e433],'undoState':_0x47cdfe[_0x3ce731(0x28d)]['params'],'redoState':_0x22c350[_0x3ce731(0x28d)][_0x3ce731(0x193)]}),_0x313036=_0x47cdfe[_0x3ce731(0x23e)],_0x47246=_0x22c350[_0x3ce731(0x23e)];}this['_docStateChangeManagerService'][_0x3ce731(0x119)](_0x5e30a2,{'history':_0x3dfd8a,'collaboration':_0x630eec});}};re=nn([Ce(0x0,_0x29894a(_0x50c06f)),Ce(0x1,_0x167c0a),Ce(0x2,_0x29894a(_0x37cc6d))],re);var rn=Object[_0xf42a26(0x12c)],on=(_0x2f2859,_0x2991f5,_0x27eab0,_0x5e0897)=>{const _0x86be65=_0xf42a26;for(var _0x138025=_0x5e0897>0x1?void 0x0:_0x5e0897?rn(_0x2991f5,_0x27eab0):_0x2991f5,_0x58fbf9=_0x2f2859[_0x86be65(0x1db)]-0x1,_0x4786fb;_0x58fbf9>=0x0;_0x58fbf9--)(_0x4786fb=_0x2f2859[_0x58fbf9])&&(_0x138025=_0x4786fb(_0x138025)||_0x138025);return _0x138025;},tt=(_0x4527e0,_0x1c0194)=>(_0x354efc,_0x38bed6)=>_0x1c0194(_0x354efc,_0x38bed6,_0x4527e0);let oe=class{constructor(_0x12c15d,_0x32bf0f){const _0x3f3711=_0xf42a26;this['_injector']=_0x12c15d,this[_0x3f3711(0x1c8)]=_0x32bf0f;}[_0xf42a26(0x235)](_0xf0589b){const _0xc1bdf2=_0xf42a26;var _0x1cc015;const _0x52664f=this[_0xc1bdf2(0x2a5)]['get'](_0x5e82eb),_0xc76aaa=(_0x1cc015=_0x52664f['getDocRanges']())!=null?_0x1cc015:[];if(_0xc76aaa['length']===0x0)return;const _0x421811=_0xf0589b['unitID'],_0x12a3ff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x421811,'actions':null,'textRanges':_0xc76aaa}}],_0xfa1bce=this[_0xc1bdf2(0x1c8)][_0xc1bdf2(0x28c)](_0xf0589b,_0x12a3ff);if(!_0x3b04b2(_0xfa1bce))throw _0xfa1bce[_0xc1bdf2(0xff)];const _0x48d2f3=_0xfa1bce['m2Prime'][0x0][_0xc1bdf2(0x193)][_0xc1bdf2(0x18e)];Array['isArray'](_0x48d2f3)&&_0x48d2f3[_0xc1bdf2(0x1db)]&&_0x52664f['replaceDocRanges'](_0x48d2f3,{'unitId':_0x421811,'subUnitId':_0x421811},!0x1);}};oe=on([tt(0x0,_0x29894a(_0x50c06f)),tt(0x1,_0x167c0a)],oe);var an=Object[_0xf42a26(0x12c)],cn=(_0xe29547,_0x1c4f41,_0x57f09e,_0x4842c6)=>{const _0x21639e=_0xf42a26;for(var _0x2d7147=_0x4842c6>0x1?void 0x0:_0x4842c6?an(_0x1c4f41,_0x57f09e):_0x1c4f41,_0x181b86=_0xe29547[_0x21639e(0x1db)]-0x1,_0x2aaeca;_0x181b86>=0x0;_0x181b86--)(_0x2aaeca=_0xe29547[_0x181b86])&&(_0x2d7147=_0x2aaeca(_0x2d7147)||_0x2d7147);return _0x2d7147;},U=(_0x48b4d0,_0x25500b)=>(_0x9c98b7,_0x3cd465)=>_0x25500b(_0x9c98b7,_0x3cd465,_0x48b4d0);let ae=class extends _0x382bf8{constructor(_0x52fc8e,_0x11b60c,_0x260b67,_0x517663,_0xed4dee,_0x32dbe4,_0x33dc10,_0x210c50){const _0x1a2e54=_0xf42a26;super(),_(this,_0x1a2e54(0x1de),new _0x535baf(_0x128ff3[_0x1a2e54(0x1ef)])),(this[_0x1a2e54(0x1d5)]=_0x52fc8e,this[_0x1a2e54(0x100)]=_0x11b60c,this[_0x1a2e54(0x208)]=_0x260b67,this[_0x1a2e54(0xfa)]=_0x517663,this[_0x1a2e54(0x23a)]=_0xed4dee,this[_0x1a2e54(0x1f8)]=_0x32dbe4,this[_0x1a2e54(0x267)]=_0x33dc10,this[_0x1a2e54(0x178)]=_0x210c50,this[_0x1a2e54(0x22d)]());}[_0xf42a26(0x22d)](){const _0x305b33=_0xf42a26;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x305b33(0x1d7)](_0x2e9065=>{const _0xa1d266=_0x305b33,_0x5bbaf7=this[_0xa1d266(0x1d5)][_0xa1d266(0x14d)]['subscribe'](_0x2412fe=>{const _0x45087c=_0xa1d266;if(_0x2412fe==null)return;const {unitId:_0x478c95,redoState:_0x5ce91f,commandId:_0x392af5}=_0x2412fe;if(_0x478c95!==_0x2e9065['unitID'])return;const _0x2fcf93={'id':_0x392af5,'type':_0x5a1981[_0x45087c(0x264)],'params':{'unitId':_0x478c95,'actions':_0x5ce91f['actions'],'textRanges':null}};_0x2e9065[_0x45087c(0x266)](_0x2fcf93);});if(_0x2e9065['disposeWithMe'](_0x5bbaf7),_0x2e9065 instanceof _0xdcbea){const _0x1bd564={'onTransformIME':_0x4e1b78=>this[_0xa1d266(0x208)][_0xa1d266(0xe4)](_0x4e1b78),'onTransformState':_0x2e4cd4=>this[_0xa1d266(0xfa)][_0xa1d266(0x2a8)](_0x2e4cd4),'onTransformSelections':_0x8f7a63=>this['_docTransformSelectionsService'][_0xa1d266(0x235)](_0x8f7a63),'onSyncEditingCollabCursor':_0x2e453e=>this[_0xa1d266(0x1f8)][_0xa1d266(0x2c6)](_0x2e453e),'onTransformRemoteChangesetByIMECache':_0x55f98b=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x55f98b),'onTransformRemoteChangesetByStateCache':_0x26ff7f=>this[_0xa1d266(0xfa)][_0xa1d266(0x298)](_0x26ff7f)};_0x2e9065[_0xa1d266(0x242)](_0x1bd564);}}));}};ae=cn([U(0x0,_0x29894a(_0x37cc6d)),U(0x1,_0x29894a(_0x1b39da)),U(0x2,_0x29894a(ne)),U(0x3,_0x29894a(re)),U(0x4,_0x29894a(oe)),U(0x5,_0x29894a(He)),U(0x6,_0x29ae03),U(0x7,_0x29894a(_0x5e2123))],ae);var ln=Object[_0xf42a26(0x12c)],_n=(_0x283617,_0xe59904,_0x4a9609,_0x5be19f)=>{for(var _0x31d950=_0x5be19f>0x1?void 0x0:_0x5be19f?ln(_0xe59904,_0x4a9609):_0xe59904,_0x57dc0c=_0x283617['length']-0x1,_0x4e8ef5;_0x57dc0c>=0x0;_0x57dc0c--)(_0x4e8ef5=_0x283617[_0x57dc0c])&&(_0x31d950=_0x4e8ef5(_0x31d950)||_0x31d950);return _0x31d950;},Ee=(_0x2c6ecd,_0x267862)=>(_0x2e2335,_0x4deb28)=>_0x267862(_0x2e2335,_0x4deb28,_0x2c6ecd);let we=class extends _0x382bf8{constructor(_0x3d384e,_0x5b2a6f,_0x58781f){const _0x363c3d=_0xf42a26;super(),_(this,_0x363c3d(0x1f6),new Map()),_(this,_0x363c3d(0x152),new Map()),_(this,_0x363c3d(0x1dd),!0x1),(this[_0x363c3d(0x262)]=_0x3d384e,this[_0x363c3d(0x141)]=_0x5b2a6f,this[_0x363c3d(0x2de)]=_0x58781f);}[_0xf42a26(0x14f)](){const _0x60a6b2=_0xf42a26;this[_0x60a6b2(0x1dd)]=!0x0;}[_0xf42a26(0x173)](){const _0x162d74=_0xf42a26;this[_0x162d74(0x1dd)]=!0x1;}get[_0xf42a26(0x1c0)](){const _0x272712=_0xf42a26;return this[_0x272712(0x152)];}[_0xf42a26(0x229)](){const _0x260314=_0xf42a26;this[_0x260314(0x2dd)]()[_0x260314(0x252)](()=>super[_0x260314(0x229)]());}async['loadOfflineData'](_0x2896aa){const _0x21f823=_0xf42a26;return this[_0x21f823(0x1dd)]?null:this[_0x21f823(0x141)]['getItem'](_0x1d74fa(_0x2896aa));}async[_0xf42a26(0x108)](_0x1fa0b3,_0x11d10f){const _0x3d48dc=_0xf42a26;return!!this[_0x3d48dc(0x141)][_0x3d48dc(0x105)](_0x1fa0b3,_0x11d10f);}['updateOfflineData'](_0x204aac,_0x195f29,_0x53971c,_0x5076e6){const _0x3c5db1=_0xf42a26,_0xcaaf7b=this[_0x3c5db1(0x2de)][_0x3c5db1(0x2e0)](_0x204aac);this[_0x3c5db1(0x1f6)][_0x3c5db1(0x2b4)](_0x204aac,{'unitID':_0x204aac,'type':_0x195f29,'awaitingChangeset':_0x53971c,'mutations':_0x5076e6,'rev':_0xcaaf7b}),this['_saveTaskMap'][_0x3c5db1(0x18f)](_0x204aac)||this['_scheduleSaving'](_0x204aac);}['_scheduleSaving'](_0x51065a){const _0x4b0b62=_0xf42a26,_0x4d8137=this[_0x4b0b62(0x23f)]();_0x4d8137===0x0?this[_0x4b0b62(0x1cf)](_0x51065a):this[_0x4b0b62(0x152)][_0x4b0b62(0x2b4)](_0x51065a,setTimeout(()=>this[_0x4b0b62(0x1cf)](_0x51065a),_0x4d8137));}[_0xf42a26(0x23f)](){const _0x2f0c0d=_0xf42a26;var _0x7ecbba;return(_0x7ecbba=this[_0x2f0c0d(0x262)][_0x2f0c0d(0x189)](_0x9ca664))!=null?_0x7ecbba:_0x42bc6d;}['_saveCache'](_0x1a0da5){const _0x49c424=_0xf42a26,_0x41c334=this['_saveTaskMap'][_0x49c424(0x27e)](_0x1a0da5);return _0x41c334!==void 0x0&&window[_0x49c424(0x159)](_0x41c334),this[_0x49c424(0x141)]['setItem'](_0x1d74fa(_0x1a0da5),this[_0x49c424(0x1f6)][_0x49c424(0x27e)](_0x1a0da5))[_0x49c424(0x252)](()=>this[_0x49c424(0x152)][_0x49c424(0x273)](_0x1a0da5));}async[_0xf42a26(0x2dd)](){const _0x26b522=_0xf42a26,_0xa002c5=[];this[_0x26b522(0x152)][_0x26b522(0x140)]((_0x41c0a,_0x4f6153)=>{const _0x266152=_0x26b522;window['clearTimeout'](_0x41c0a),_0xa002c5[_0x266152(0x122)](this[_0x266152(0x1cf)](_0x4f6153)['then'](()=>{const _0x5c8aa2=_0x266152;this['_saveTaskMap'][_0x5c8aa2(0x273)](_0x4f6153);}));}),await Promise[_0x26b522(0x21c)](_0xa002c5);}};we=_n([Ee(0x0,_0xf5f608),Ee(0x1,_0x29bdc4),Ee(0x2,_0x29894a(_0x518622))],we);class hn extends _0x14f0e9{constructor(){const _0x30620f=_0xf42a26;super(),_(this,_0x30620f(0x1ac)),this[_0x30620f(0x1ac)]=_0x33c672(window,_0x30620f(0x2b3))[_0x30620f(0xe3)](_0x1101d1(this[_0x30620f(0x1f9)]),_0x2fab77(0x1),_0x2a2d8e(void 0x0));}[_0xf42a26(0x129)](_0x19e183,_0x192b56,_0xf7aa97=!0x1){const _0x348f9a=_0xf42a26,_0x54329d=new URL(window[_0x348f9a(0x102)][_0x348f9a(0x169)]);_0x54329d[_0x348f9a(0x16e)][_0x348f9a(0x2b4)](_0x19e183,_0x192b56),_0xf7aa97?window['history']['replaceState']('','',_0x54329d['toString']()):window[_0x348f9a(0x249)][_0x348f9a(0x10f)]('','',_0x54329d[_0x348f9a(0x211)]());}[_0xf42a26(0x26e)](_0x43995d,_0x29e115=!0x1){const _0x21d789=_0xf42a26,_0x2c9074=new URL(window['location'][_0x21d789(0x169)]);_0x2c9074[_0x21d789(0x16e)]['delete'](_0x43995d),_0x29e115?window['history']['replaceState']('','',_0x2c9074[_0x21d789(0x211)]()):window[_0x21d789(0x249)]['pushState']('','',_0x2c9074[_0x21d789(0x211)]());}[_0xf42a26(0x131)](_0xcbb69b){const _0x26928e=_0xf42a26;var _0xa178cf;return(_0xa178cf=new URL(window['location'][_0x26928e(0x169)])[_0x26928e(0x16e)][_0x26928e(0x27e)](_0xcbb69b))!=null?_0xa178cf:void 0x0;}}var un=Object[_0xf42a26(0x187)],dn=Object['getOwnPropertyDescriptor'],fn=(_0x2f11bc,_0x116b11,_0x27447b)=>_0x116b11 in _0x2f11bc?un(_0x2f11bc,_0x116b11,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27447b}):_0x2f11bc[_0x116b11]=_0x27447b,Sn=(_0x1cf2ed,_0x46b1b6,_0x1d0757,_0x3b77bf)=>{const _0x15cc69=_0xf42a26;for(var _0x57c0d9=_0x3b77bf>0x1?void 0x0:_0x3b77bf?dn(_0x46b1b6,_0x1d0757):_0x46b1b6,_0x30bea2=_0x1cf2ed[_0x15cc69(0x1db)]-0x1,_0x4b39ea;_0x30bea2>=0x0;_0x30bea2--)(_0x4b39ea=_0x1cf2ed[_0x30bea2])&&(_0x57c0d9=_0x4b39ea(_0x57c0d9)||_0x57c0d9);return _0x57c0d9;},Oe=(_0x402cec,_0x40ad16)=>(_0x4c1dbb,_0x213606)=>_0x40ad16(_0x4c1dbb,_0x213606,_0x402cec),mn=(_0xba27e2,_0x139a86,_0x35029c)=>fn(_0xba27e2,_0x139a86+'',_0x35029c);const In=_0xf42a26(0x1fd);let Ae=class extends _0x5c0e7c{constructor(_0xd99f60=et,_0x1d20ee,_0x211a54,_0x5f4434){const _0x15511d=_0xf42a26;super(),this[_0x15511d(0x22c)]=_0xd99f60,this['_renderManagerService']=_0x1d20ee,this[_0x15511d(0x2a5)]=_0x211a54,this[_0x15511d(0x262)]=_0x5f4434;const {..._0x2b2331}=_0x87ab8b({},et,this[_0x15511d(0x22c)]);this[_0x15511d(0x262)][_0x15511d(0x17e)](Zi,_0x2b2331);}[_0xf42a26(0x26d)](){const _0x326cd0=_0xf42a26;this[_0x326cd0(0x210)](),this[_0x326cd0(0x269)]();}[_0xf42a26(0x292)](){this['_registerRenderDependencies']();}[_0xf42a26(0x210)](){const _0x394761=_0xf42a26;var _0x5a16bb;const _0x40a1f6=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x443e5f,{'useClass':_0x5088fa}],[_0x30966a,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x10a64f(this[_0x394761(0x2a5)],_0x1e3fe7(_0x40a1f6,(_0x5a16bb=this[_0x394761(0x22c)])==null?void 0x0:_0x5a16bb[_0x394761(0xfe)]));}[_0xf42a26(0x25c)](){const _0x1c3e00=_0xf42a26;this[_0x1c3e00(0x136)](this['_renderManagerService'][_0x1c3e00(0x11d)](_0x102ac0[_0x1c3e00(0x232)],[Le])),this[_0x1c3e00(0x136)](this[_0x1c3e00(0x19f)][_0x1c3e00(0x11d)](_0x102ac0[_0x1c3e00(0x1f7)],[Pe]));}[_0xf42a26(0x269)](){_0x22584b(this['_injector'],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0xf42a26(0x2c7),In),Ae=Sn([_0xa2f535(_0x11cf84),Oe(0x1,_0x1283ce),Oe(0x2,_0x29894a(_0x50c06f)),Oe(0x3,_0xf5f608)],Ae);var gn=Object[_0xf42a26(0x12c)],vn=(_0x26f7e3,_0x5cf59a,_0x252aa8,_0x23ac20)=>{const _0x593e9b=_0xf42a26;for(var _0x50eca9=_0x23ac20>0x1?void 0x0:_0x23ac20?gn(_0x5cf59a,_0x252aa8):_0x5cf59a,_0x13bd9a=_0x26f7e3[_0x593e9b(0x1db)]-0x1,_0x2d002c;_0x13bd9a>=0x0;_0x13bd9a--)(_0x2d002c=_0x26f7e3[_0x13bd9a])&&(_0x50eca9=_0x2d002c(_0x50eca9)||_0x50eca9);return _0x50eca9;},K=(_0x5596cc,_0x24d21f)=>(_0x2acb9e,_0x3309d5)=>_0x24d21f(_0x2acb9e,_0x3309d5,_0x5596cc);let st=class extends _0x1ad7a7{constructor(_0x254aa0,_0x204d89,_0x4a8a0f,_0x181117,_0x3603ef){super(_0x254aa0,_0x204d89,_0x4a8a0f,_0x181117,_0x3603ef);}async['createSocket'](_0x22b3fb){const _0x49ad3e=_0xf42a26,_0x437128=await this[_0x49ad3e(0xeb)](),_0x1de785=this['_createSocketURL'](_0x22b3fb,_0x437128);return this[_0x49ad3e(0x221)](_0x1de785);}[_0xf42a26(0x11e)](_0x42b729,_0x3b5c79){const _0x2537f2=_0xf42a26,_0xa47211=typeof window>'u'?new URL(_0x42b729):new URL(_0x42b729,window[_0x2537f2(0x102)][_0x2537f2(0x2c3)]);_0xa47211[_0x2537f2(0x16e)]['set']('sessionTicket',_0x3b5c79);const _0x3ea3ea=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2537f2(0x102)][_0x2537f2(0x206)]);return _0x3ea3ea[_0x2537f2(0x27e)](_0x2537f2(0x154))&&_0xa47211['searchParams'][_0x2537f2(0x2b4)](_0x2537f2(0x154),_0x3ea3ea[_0x2537f2(0x27e)](_0x2537f2(0x154))),_0xa47211[_0x2537f2(0x211)]();}async[_0xf42a26(0xeb)](){const _0xa7304e=_0xf42a26;var _0x4b41d5,_0x3f46b2,_0x363edc;const _0x12bc82=this['_configService'][_0xa7304e(0x189)](_0x2a5fcd),_0x4b9e1e=(_0x4b41d5=_0x12bc82==null?void 0x0:_0x12bc82['wsSessionTicketUrl'])!=null?_0x4b41d5:_0x54705a;return(_0x363edc=(_0x3f46b2=(await this['_httpService'][_0xa7304e(0x27e)](_0x4b9e1e,{'headers':{'Content-Type':_0xa7304e(0x227)}}))[_0xa7304e(0x1b4)])==null?void 0x0:_0x3f46b2[_0xa7304e(0xed)])!=null?_0x363edc:'';}};st=vn([K(0x0,_0x29894a(_0x50c06f)),K(0x1,_0x29894a(_0x56c2d5)),K(0x2,_0xf5f608),K(0x3,_0xe3c8a),K(0x4,_0x182cc5)],st);const it=0x7530,nt='ACTIVE_UNIT_EVENT_CHANNEL';function _0x3abf(){const _0x42cbd8=['defIds','width','_localCacheService','event$','fillStyle','executionId','history','onMouseMove','unit','whenReady','map','_httpService','APPLY_DUPLICATED','_handleHeartbeatEvent','sheetId','then','subscribeEvent','apply','collabStatus.conflict','beginPath','fill','icon','_refRangeService','YUUMI_RATE_OVER_LIMIT','835308KWXNBN','_registerRenderDependencies','[CollaborationDataLoaderController]','registerComponent','M0\x200H16V16H0z','with','getTypeOfUnitAdded$','_configService','collabStatus.fetchMiss','MUTATION','collaboration.closeRoom','onLocalMutation','_messageService','_hover','_initDependencies','sessionStatus$','_color','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','onStarting','removeParam','doc.mutation.rich-text-editing','getCurrent','defs','_colorAssignService','delete','_refreshCollabCursors','_name','parse','assign','text','measureText','propertyIsEnumerable','UNDEFINED','generateRandomId','_selfUnitIDs','get','_clearOtherTimers','init','yellow.400','next','permission.content','_uiPartsService','getUnhiddenWorksheets','_unitOnClients','currentSkeleton$','INVITE_CODE_HAS_BEEN_UES','_unitStatus','evenodd','INVALID_ARGUMENT','transformMutationsWithChangeset','m2Prime','LOGIN_FAILED','_urlService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','lineTo','onRendered','_lastPointer','getMemberID','_initCommandExecutedListener','9924985WDgfkF','_sheetSkeletonManagerService','transformRemoteChangeset','_entityInit$','...','url(#off-line-icon_clip0_910_343)','getRenderById','none','collabStatus.synced','url(#$1','attrs','_handleLeaveEvent','_docSkeletonManagerService','random','name','_injector','PERMISSION_DENIED','send','transformStateCache','newValue','call','SYNCED','hasOwnProperty','APPLY_REVISION_CONFILICT','top','black','selection','_collabCursorController','assignAColorForMemberID','popstate','set','MOBILE_HAS_BEEN_BOUND','_logService','editingUnit','/run/','getStateCache','RemoveRowCommandId','_collabSessionService','_anchor','restore','InsertColCommandId','_setupSubUnitSync','_onRefRangeChange','color','stringify','origin','Warning','_shapes','syncEditingCollabCursor','pluginName','ALREADY_EXISTS','ONLINE','_transformHistoryAndStateStack','save','LICENSE_MAX_UNITS_EXCEEDED','url(#on-line-icon_clip0_910_349)','_context','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','USER_NOT_INVITED_CODE','_handleJoinEvent','YUUMI_URL_COL_OUT_OF_RANGE','_updateURLWithCurrentState','MOBILE_VERIFY_CODE_MISMATCH','substring','0\x200\x2016\x2016','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getActiveRange','_hideTimer','Unknown\x20user','column','OTHER_CLIENTS_EDITING','exhaustSavingTask','_revisionService','0\x200\x2017\x2016','getCurrentRevOfUnit','setShapeProps','getValue','green.600','_instanceService','_render','_beforeCloseService','font','pipe','transformIMECache','session.collaboration-timeout','transformMutation','_scene','function','setTimeout','collab-client.tooltip.reconnect','_getSessionTicket','INVITE_CODE_REQUIRED','ticket','addEventListener','startsWith','mutations','roomMembers','min','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getTypeOfUnitDisposed$','UNAUTHENTICATED','_entities','tag','OffLineIcon','skeleton','_docTransformStateCacheService','add','_ensureSubject','_toggleOnline','override','error','_collaborationController','APPLY_PERMISSION_DENIED','location','sheetID','_dataLoaderService','setItem','drawWith','collab-text-anchor-','saveOfflineData','uni.network.url-service','memberID','height','setAlpha','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onPointerEnter$','pushState','transform','source','univer-mr-2\x20univer-flex\x20univer-text-xl','getDocRanges','currentColor','InsertRangeMoveDownCommandId','onCommandExecuted','_themeService','AWAITING','setStateCache','HEADER_MENU','_cursorInfo$','getRangePointData','registerRenderModule','_createSocketURL','INVALID_INVITE_CODE','triggerDblclick','collabStatus.notCollab','push','_range','entries','CONFLICT','getCellPositionByOffset','_hovered','runOnServer','setParam','currentTheme$','_init','getOwnPropertyDescriptor','101508ANkhwI','YUUMI_SUBSCRIPTION_NOT_FOUND','_roomMembers$','size','getParam','_online','ranges','CLOSE_ROOM','hovered','disposeWithMe','univerjs-icon\x20univerjs-icon-','USERS_LEAVE','_cursors','isEditing','clearInterval','unload','_id','_handleHover','_backgroundColor','forEach','_localStorageService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','xlink:href','_cursor','code','OTHER_CLIENT_EDITING','contains','findNodePositionByCharIndex','className','startRow','createInstance','getUndoRedoMutationParamsCache','docStateChange$','_updateSubUnitFromURLParams','disableLocalCache','TOO_MANY_REQUESTS','getSheetId','_saveTaskMap','getVpScrollXYInfoByPosToVp','runId','_handleEvent','debug','endRow','_notificationService','clearTimeout','LICENSE_DISTRO_REJECTED','div','_scheduleHeartbeat','_document','type','SUBMIT_CHANGESET_TIMEOUT','addObjects','EMAIL_VERIFY_CODE_MISMATCH','closePath','RECT','ENSURE_SNAPSHOT_EXECUTION','onPointerLeave$','getSheetBySheetId','moveTo','500086wsbIiB','href','unsubscribe','deepClone','cursorInfo','FETCH_MISS','searchParams','3761255qrMpUE','_setupBeforeClosingHandler','svg','getAncestorScale','enableLocalCache','_toggleOffline','YUUMI_TABLE_NOT_FOUND_IN_UNIT','colorChannel1','session.will-retry','_localeService','onPointerMove$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','VIEW_MAIN','AWAITING_WITH_PENDING','_drawRectRange','setConfig','addClipboardHook','isActive','collabStatus.offline','9491SoxxOr','isArray','collabCursorState$','find','unshift','defineProperty','_univerInstanceService','getConfig','OnLineIcon','INVITE_CODE_ALREADY_BOUND','extend','_updateLocalCursor','textRanges','has','COMPLETION_FINISHED','_anchorDot','roomMembers$','params','children','#FFF','_draw','startColumn','saveImage','disposeUnit','TEXT','getCurrentUnitForType','_initEvent','_removeClearOtherTimer','OFFLINE','_renderManagerService','subunit','getCollabCursors$','Failed','SOCKET_FAILED','_onCursorUpdate','onTransformChange$','registerRefRange','unitID','fillText','engine','key','labelPosition','urlChange$','_commandService','8AFSAfu','use','_collaborationUIEventService','YUUMI_AI_RUN_FAILED','getUnitId','values','body','_collabCursorState$','concat','getFocusedUnit','setActiveRange','redoState','includes','executeCommand','split','_scheduleClearOtherTimer','_removeCollabCursors','getActiveSheet','saveTaskMap','CHANGESET_REVISION_CONFILICT','fillRule','cursorInfo$','_heartbeatTimer','asObservable','APPLY_REJECT','YUUMI_ASYNCIO_CANCELLED','_transformService','undoState','eventID','SNAPSHOT_INVALID_SNAPSHOT','_startSheetCollabCursor','_getScale','prototype','_saveCache','addObject','_colorIndex','result','round','session.connection-failed','_docStateChangeManagerService','UNRECOGNIZED','subscribe','_send','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_UNABLE_LOAD_URL','length','APPLY_NON_SEQUENTIAL_REVISION','_disabled','_status$','rgba(255,\x20255,\x20255,\x200.01)','getUniverSheetInstance','bottom','getMember','collabStatus.syncing','makeDirty','clipPath','white','_assignedColors','_imageIoService','getOwnPropertySymbols','SNAPSHOT_HAS_BEEN_REMOVED','_getMergeRange','resize','UPDATE_CURSOR','1em','NOT_COLLAB','LICENSE_IMPORT_SIZE_EXCEEDED','_memberService','MoveRangeCommandId','InsertRowCommandId','idSuffix','_cursorShapes','_cachedData','UNIVER_SHEET','_docSyncEditingCollabCursorService','dispose$','RemoveColCommandId','unitId','arc','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','INTERNAL_ERROR','getCurrentSelections','off-line-icon','_updateCollabCursors','http://www.w3.org/2000/svg','CONNECTOR_DATA_TOO_LARGE','string','_onCursorDelete','search','toRgbString','_docTransformIMECacheService','show','_initStatusListener','off-line-icon_clip0_910_343','LICENSE_EXPORT_SIZE_EXCEEDED','_transformPreviousActiveRange','collab-rect-range-','permission.title','_registerDependencies','toString','_textBubble','DeleteRangeMoveUpCommandId','from','on-line-icon_clip0_910_349','indexOf','YUUMI_ALL_TABLES_IS_INVALID','Error','UniverIcon','subUnitId','_session','all','NO_OTHER_CLIENTS_EDITING','_getSheetObject','registerBeforeClose','setInterval','_doCreateSocket','getRelativeToViewportCoord','_labelPosition','_docClipboardService','jiqing.500','SOCKET_FAILED_RETRY','application/json','_transformUndoRedoStack','dispose','collaboration-client.offline-data-not-saved','complete','_config','_initEntityListener','transformByState','_initResize','_eventUnsubscribe','imageSourceType','UNIVER_DOC','red.300','getSkeleton','transformSelections','_docSkeleton','_drawAnchor','data','displayName','_docTransformSelectionsService','mask','blue.400','range','m1Prime','_getSaveTimeout','path','531618LKSnLz','addHandlerCallback'];_0x3abf=function(){return _0x42cbd8;};return _0x3abf();}class Fn extends _0x382bf8{constructor(){const _0x2134de=_0xf42a26;super(),_(this,_0x2134de(0x13d),_0x3d8d95()),_(this,_0x2134de(0x27d),new Set()),_(this,_0x2134de(0x286),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x2134de(0x27f),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}[_0xf42a26(0x229)](){const _0x5c1e26=_0xf42a26;super[_0x5c1e26(0x229)](),this[_0x5c1e26(0x27f)][_0x5c1e26(0x140)]((_0x467559,_0x46896f)=>this['_removeClearOtherTimer'](_0x46896f)),this[_0x5c1e26(0x1c4)]&&window[_0x5c1e26(0x13b)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x522b0a){const _0x1bded0=_0xf42a26;return this[_0x1bded0(0xfc)](_0x522b0a)[_0x1bded0(0xe3)](_0x1842b9());}[_0xf42a26(0x2b7)](_0x437886){const _0x2d0057=_0xf42a26;this[_0x2d0057(0x27d)][_0x2d0057(0x130)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2d0057(0x27d)][_0x2d0057(0xfb)](_0x437886),this[_0x2d0057(0x1d8)]({'type':0x0,'memberID':this[_0x2d0057(0x13d)],'unitIDs':[_0x437886],'isForwarded':!0x1});}[_0xf42a26(0x199)](_0x2cf49b){const _0x47092c=_0xf42a26;this[_0x47092c(0x27d)][_0x47092c(0x273)](_0x2cf49b),this[_0x47092c(0x27d)][_0x47092c(0x130)]===0x0&&this[_0x47092c(0x1c4)]&&window[_0x47092c(0x13b)](this[_0x47092c(0x1c4)]);}[_0xf42a26(0x12b)](){const _0x2ac7e4=_0xf42a26;this[_0x2ac7e4(0x136)](_0x56fd5a(_0x33c672(window,'storage')[_0x2ac7e4(0x1d7)](_0x15b780=>{const _0x247d72=_0x2ac7e4;if(_0x15b780[_0x247d72(0x1aa)]!==nt||!_0x15b780[_0x247d72(0x2a9)])return;const _0x1ab689=JSON[_0x247d72(0x276)](_0x15b780['newValue']);this[_0x247d72(0x155)](_0x1ab689);}))),window[_0x2ac7e4(0xee)](_0x2ac7e4(0x13c),()=>this[_0x2ac7e4(0x1d8)]({'type':0x1,'memberID':this[_0x2ac7e4(0x13d)],'unitIDs':Array[_0x2ac7e4(0x214)](this[_0x2ac7e4(0x27d)])}));}[_0xf42a26(0x155)](_0x4cee08){const _0x1881ed=_0xf42a26;switch(_0x4cee08[_0x1881ed(0x15e)]){case 0x0:this[_0x1881ed(0x2d1)](_0x4cee08);break;case 0x1:this[_0x1881ed(0x2a1)](_0x4cee08);break;case 0x2:this[_0x1881ed(0x250)](_0x4cee08);break;}}[_0xf42a26(0x2d1)](_0x3190bb){const _0x347df4=_0xf42a26,{unitIDs:_0x4b281d,memberID:_0x648d42,isForwarded:_0x1ce79a}=_0x3190bb;_0x4b281d[_0x347df4(0x140)](_0x361319=>{const _0x443722=_0x347df4;if(!_0x1ce79a&&this['_unitOnClients'][_0x443722(0x18f)](_0x361319)&&this[_0x443722(0xfc)](_0x361319)['next'](_0x494160[_0x443722(0x2dc)]),!this[_0x443722(0x286)][_0x443722(0x18f)](_0x361319)||!this[_0x443722(0x286)][_0x443722(0x27e)](_0x361319)[_0x443722(0x18f)](_0x648d42)){const _0x1814d3=this[_0x443722(0x286)][_0x443722(0x27e)](_0x361319)||new Set();_0x1814d3[_0x443722(0xfb)](_0x648d42),this[_0x443722(0x286)]['set'](_0x361319,_0x1814d3),this[_0x443722(0x1bd)](_0x648d42);}}),_0x1ce79a||this[_0x347df4(0x1d8)]({'type':0x0,'memberID':this[_0x347df4(0x13d)],'unitIDs':[...this[_0x347df4(0x27d)]],'isForwarded':!0x0});}[_0xf42a26(0x1bd)](_0x2b3b9f){const _0x1be701=_0xf42a26;this[_0x1be701(0x19d)](_0x2b3b9f);const _0x58fdd7=window[_0x1be701(0xe9)](()=>{const _0x3f6943=_0x1be701;this[_0x3f6943(0x286)][_0x3f6943(0x140)](_0x429f97=>{const _0x545412=_0x3f6943;_0x429f97[_0x545412(0x273)](_0x2b3b9f);});},it*0x2);this[_0x1be701(0x27f)][_0x1be701(0x2b4)](_0x2b3b9f,_0x58fdd7);}['_removeClearOtherTimer'](_0x5a970f){const _0x27173c=_0xf42a26;if(this[_0x27173c(0x27f)]['has'](_0x5a970f)){const _0x226401=this['_clearOtherTimers'][_0x27173c(0x27e)](_0x5a970f);_0x226401&&window[_0x27173c(0x159)](_0x226401),this[_0x27173c(0x27f)][_0x27173c(0x2b4)](_0x5a970f,null);}}[_0xf42a26(0x2a1)](_0x3eaa94){const _0x2ddc61=_0xf42a26,{memberID:_0x3c8e53,unitIDs:_0x52aa78}=_0x3eaa94;_0x52aa78['forEach'](_0x38f924=>{const _0x1fccab=_0x4fb2;var _0xba773a;const _0x31ec07=this[_0x1fccab(0x286)][_0x1fccab(0x27e)](_0x38f924);_0x31ec07&&(_0x31ec07[_0x1fccab(0x273)](_0x3c8e53),(_0xba773a=this[_0x1fccab(0xfc)](_0x38f924))==null||_0xba773a[_0x1fccab(0x282)](_0x31ec07[_0x1fccab(0x130)]===0x0?_0x494160[_0x1fccab(0x21d)]:_0x494160[_0x1fccab(0x2dc)]));}),this[_0x2ddc61(0x19d)](_0x3c8e53);}[_0xf42a26(0x250)](_0x16a0b9){const _0xc73f4f=_0xf42a26;this[_0xc73f4f(0x1bd)](_0x16a0b9[_0xc73f4f(0x10a)]);}[_0xf42a26(0x1d8)](_0x4f103c){const _0x46b62d=_0xf42a26;localStorage[_0x46b62d(0x105)](nt,JSON[_0x46b62d(0x2c2)](_0x4f103c));}[_0xf42a26(0x15c)](){const _0x14af5d=_0xf42a26;this['_heartbeatTimer']=window[_0x14af5d(0x220)](()=>{const _0x5a12a0=_0x14af5d;this[_0x5a12a0(0x1d8)]({'type':0x2,'memberID':this[_0x5a12a0(0x13d)]});},it);}['_ensureSubject'](_0x233b4e){const _0x21f647=_0xf42a26;return this[_0x21f647(0x289)]['has'](_0x233b4e)||this['_unitStatus'][_0x21f647(0x2b4)](_0x233b4e,new _0x535baf(_0x494160[_0x21f647(0x21d)])),this[_0x21f647(0x289)]['get'](_0x233b4e);}}var Mt=(_0x102d60=>(_0x102d60[_0x102d60[_0xf42a26(0x27b)]=0x0]=_0xf42a26(0x27b),_0x102d60[_0x102d60['OK']=0x1]='OK',_0x102d60[_0x102d60[_0xf42a26(0x1fe)]=0x2]='INTERNAL_ERROR',_0x102d60[_0x102d60[_0xf42a26(0x2a6)]=0x3]=_0xf42a26(0x2a6),_0x102d60[_0x102d60['NOT_FOUND']=0x4]='NOT_FOUND',_0x102d60[_0x102d60[_0xf42a26(0xf5)]=0x5]=_0xf42a26(0xf5),_0x102d60[_0x102d60[_0xf42a26(0x2c8)]=0x6]=_0xf42a26(0x2c8),_0x102d60[_0x102d60[_0xf42a26(0x28b)]=0x7]=_0xf42a26(0x28b),_0x102d60[_0x102d60[_0xf42a26(0x150)]=0x8]='TOO_MANY_REQUESTS',_0x102d60[_0x102d60[_0xf42a26(0x190)]=0x9]=_0xf42a26(0x190),_0x102d60[_0x102d60[_0xf42a26(0x28e)]=0xa]=_0xf42a26(0x28e),_0x102d60[_0x102d60[_0xf42a26(0x2d4)]=0xb]=_0xf42a26(0x2d4),_0x102d60[_0x102d60[_0xf42a26(0x1d9)]=0xc]=_0xf42a26(0x1d9),_0x102d60[_0x102d60[_0xf42a26(0x161)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x102d60[_0x102d60['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0xf42a26(0x17a),_0x102d60[_0x102d60[_0xf42a26(0x1c1)]=0x1389]=_0xf42a26(0x1c1),_0x102d60[_0x102d60[_0xf42a26(0x1cb)]=0x1771]=_0xf42a26(0x1cb),_0x102d60[_0x102d60[_0xf42a26(0x1ea)]=0x1772]=_0xf42a26(0x1ea),_0x102d60[_0x102d60[_0xf42a26(0x164)]=0x1773]=_0xf42a26(0x164),_0x102d60[_0x102d60[_0xf42a26(0x1c6)]=0x1b59]=_0xf42a26(0x1c6),_0x102d60[_0x102d60[_0xf42a26(0x1dc)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x102d60[_0x102d60[_0xf42a26(0x2ad)]=0x1b5b]=_0xf42a26(0x2ad),_0x102d60[_0x102d60[_0xf42a26(0x101)]=0x1b5c]=_0xf42a26(0x101),_0x102d60[_0x102d60['APPLY_DUPLICATED']=0x1b5d]=_0xf42a26(0x24f),_0x102d60[_0x102d60[_0xf42a26(0x203)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x102d60[_0x102d60[_0xf42a26(0x2cc)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x102d60[_0x102d60[_0xf42a26(0x10d)]=0x232a]=_0xf42a26(0x10d),_0x102d60[_0x102d60[_0xf42a26(0x1f0)]=0x232b]=_0xf42a26(0x1f0),_0x102d60[_0x102d60[_0xf42a26(0x20c)]=0x232c]=_0xf42a26(0x20c),_0x102d60[_0x102d60[_0xf42a26(0x15a)]=0x232d]=_0xf42a26(0x15a),_0x102d60[_0x102d60[_0xf42a26(0x1da)]=0x2711]=_0xf42a26(0x1da),_0x102d60[_0x102d60['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xf42a26(0x2d2),_0x102d60[_0x102d60['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xf42a26(0x25a),_0x102d60[_0x102d60[_0xf42a26(0x12e)]=0x2714]=_0xf42a26(0x12e),_0x102d60[_0x102d60['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x102d60[_0x102d60[_0xf42a26(0x1c7)]=0x271b]=_0xf42a26(0x1c7),_0x102d60[_0x102d60[_0xf42a26(0x175)]=0x271c]=_0xf42a26(0x175),_0x102d60[_0x102d60['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0xf42a26(0x217),_0x102d60[_0x102d60['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0xf42a26(0xf3),_0x102d60[_0x102d60[_0xf42a26(0x1b1)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x102d60[_0x102d60['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x102d60[_0x102d60['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x102d60[_0x102d60['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xf42a26(0x288),_0x102d60[_0x102d60['INVALID_INVITE_CODE']=0x2ee2]=_0xf42a26(0x11f),_0x102d60[_0x102d60[_0xf42a26(0xec)]=0x2ee3]=_0xf42a26(0xec),_0x102d60[_0x102d60[_0xf42a26(0x2d0)]=0x2ee4]=_0xf42a26(0x2d0),_0x102d60[_0x102d60[_0xf42a26(0x18b)]=0x2ee5]=_0xf42a26(0x18b),_0x102d60[_0x102d60['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x102d60[_0x102d60[_0xf42a26(0x2b5)]=0x32ca]=_0xf42a26(0x2b5),_0x102d60[_0x102d60['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x102d60[_0x102d60[_0xf42a26(0x1d6)]=-0x1]=_0xf42a26(0x1d6),_0x102d60))(Mt||{}),pn=Object[_0xf42a26(0x12c)],Cn=(_0x281f46,_0x4eba34,_0x2e0b29,_0x369abc)=>{const _0xeeec05=_0xf42a26;for(var _0x2fede0=_0x369abc>0x1?void 0x0:_0x369abc?pn(_0x4eba34,_0x2e0b29):_0x4eba34,_0x396175=_0x281f46[_0xeeec05(0x1db)]-0x1,_0x1745a0;_0x396175>=0x0;_0x396175--)(_0x1745a0=_0x281f46[_0x396175])&&(_0x2fede0=_0x1745a0(_0x2fede0)||_0x2fede0);return _0x2fede0;},be=(_0x32ef4a,_0x259870)=>(_0x530425,_0xcd23be)=>_0x259870(_0x530425,_0xcd23be,_0x32ef4a);let rt=class extends _0x382bf8{constructor(_0x1400ad,_0x47a565,_0x1e11e2){const _0x45d067=_0xf42a26;super(),this[_0x45d067(0xdf)]=_0x1400ad,this[_0x45d067(0x24e)]=_0x47a565,this[_0x45d067(0x262)]=_0x1e11e2;}async[_0xf42a26(0x128)](_0x29cd81,_0xd96117,_0x259d0e,..._0x392ea7){const _0x193687=_0xf42a26;var _0xa5b9f1,_0xb0bc8f,_0x49429d,_0x293728;const _0x454fef=this[_0x193687(0xdf)][_0x193687(0x1b7)]();if(!_0x454fef)throw new Error(_0x193687(0x142));const _0x51f1d1=((_0xa5b9f1=this[_0x193687(0x262)][_0x193687(0x189)](_0x2af0c4))!=null?_0xa5b9f1:_0x3157b6)+'/'+_0x29cd81+_0x193687(0x2b8)+_0xd96117,_0x2c8256=new URL(window[_0x193687(0x102)][_0x193687(0x169)]),_0x17bc03={'scriptId':_0x29cd81,'runId':(_0xb0bc8f=_0x2c8256[_0x193687(0x16e)][_0x193687(0x27e)](_0x193687(0x154)))!=null?_0xb0bc8f:'','function':_0xd96117,'unitId':_0x454fef[_0x193687(0x1b2)](),'argsOfFunction':JSON[_0x193687(0x2c2)](_0x392ea7),'invokeId':(_0x49429d=_0x259d0e['invokeId'])!=null?_0x49429d:'','executionId':(_0x293728=_0x259d0e[_0x193687(0x248)])!=null?_0x293728:''};try{const _0x184db3=await this['_httpService']['post'](_0x51f1d1,{'body':_0x17bc03});return _0x184db3[_0x193687(0x1b4)][_0x193687(0xff)]&&_0x184db3['body'][_0x193687(0xff)][_0x193687(0x145)]!==Mt['OK']?_0x193687(0x1a2):_0x184db3['body'][_0x193687(0x1d2)];}catch{return _0x193687(0x1a2);}}};rt=Cn([be(0x0,_0x26c0aa),be(0x1,_0x29894a(_0x56c2d5)),be(0x2,_0xf5f608)],rt);export{st as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,Wi as CollaborationStatusDisplay,te as DesktopCollaborationStatusDisplayController,Ut as IURLService,rt as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1e34ce=_0x3a46;(function(_0x263e4d,_0x5ef8ed){const _0x3d8805=_0x3a46,_0x5c1186=_0x263e4d();while(!![]){try{const _0x400fb9=parseInt(_0x3d8805(0xf0))/0x1+-parseInt(_0x3d8805(0xe8))/0x2*(-parseInt(_0x3d8805(0xe1))/0x3)+-parseInt(_0x3d8805(0xea))/0x4*(parseInt(_0x3d8805(0xe4))/0x5)+-parseInt(_0x3d8805(0xec))/0x6*(parseInt(_0x3d8805(0xdd))/0x7)+parseInt(_0x3d8805(0xe7))/0x8*(-parseInt(_0x3d8805(0xef))/0x9)+-parseInt(_0x3d8805(0xde))/0xa+parseInt(_0x3d8805(0xe6))/0xb;if(_0x400fb9===_0x5ef8ed)break;else _0x5c1186['push'](_0x5c1186['shift']());}catch(_0xde947c){_0x5c1186['push'](_0x5c1186['shift']());}}}(_0x45a0,0x77c30));const e={'collab-client':{'tooltip':{'reconnect':_0x1e34ce(0xeb)}},'collabStatus':{'fetchMiss':_0x1e34ce(0xe5),'conflict':_0x1e34ce(0xe2),'notCollab':_0x1e34ce(0xdc),'synced':_0x1e34ce(0xdf),'syncing':'Syncing...','offline':_0x1e34ce(0xed)},'session':{'connection-failed':_0x1e34ce(0xee),'will-retry':_0x1e34ce(0xf1),'room-full':_0x1e34ce(0xf2),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x1e34ce(0xe0),'content':_0x1e34ce(0xdb)},'permission':{'title':_0x1e34ce(0xe3),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x1e34ce(0xe9)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x3a46(_0xee1d6d,_0xc5aa3d){const _0x45a0ab=_0x45a0();return _0x3a46=function(_0x3a4654,_0xed5993){_0x3a4654=_0x3a4654-0xdb;let _0x3d4b92=_0x45a0ab[_0x3a4654];return _0x3d4b92;},_0x3a46(_0xee1d6d,_0xc5aa3d);}function _0x45a0(){const _0x459505=['27DpFCLA','623338Aewrsr','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Local\x20file','6772024XcoWCz','8793140MzYasD','Synced','Collaboration\x20Conflict','2427063dEFCLw','Edit\x20conflicts','Authentication\x20Error','5DgeevQ','Syncing\x20server\x20data...','22196889QydzhZ','943240LiqUfg','2jlISNO','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3037012QkXtEy','Click\x20to\x20Reconnect','6CxBMOn','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20please\x20check\x20your\x20network.'];_0x45a0=function(){return _0x459505;};return _0x45a0();}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x44a5(){const _0x441a02=['4046jpnONH','1533695MhflIf','2906728YwLPvi','پرونده\x20محلی','تداخل\x20همکاری','همگام\x20سازی','962050zdruFE','1881576yGyyQH','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','45BWjBfu','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','1360TndcvB','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','خطای\x20اعتبارسنجی','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','2814456tHjLwy','1lIKUrH','1573220hsNbmq','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','6NCjuSZ','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','تداخل\x20ویرایش'];_0x44a5=function(){return _0x441a02;};return _0x44a5();}function _0x2a5f(_0x2f6750,_0x34d961){const _0x44a56e=_0x44a5();return _0x2a5f=function(_0x2a5fc7,_0x1a5a1c){_0x2a5fc7=_0x2a5fc7-0x1a2;let _0x22c62a=_0x44a56e[_0x2a5fc7];return _0x22c62a;},_0x2a5f(_0x2f6750,_0x34d961);}const _0x2f4695=_0x2a5f;(function(_0x559f9b,_0x2a0119){const _0x438daf=_0x2a5f,_0x1c8eec=_0x559f9b();while(!![]){try{const _0x42e18d=parseInt(_0x438daf(0x1a5))/0x1*(-parseInt(_0x438daf(0x1a6))/0x2)+-parseInt(_0x438daf(0x1b4))/0x3+parseInt(_0x438daf(0x1a4))/0x4+parseInt(_0x438daf(0x1ae))/0x5*(parseInt(_0x438daf(0x1aa))/0x6)+parseInt(_0x438daf(0x1ad))/0x7*(parseInt(_0x438daf(0x1b9))/0x8)+parseInt(_0x438daf(0x1b6))/0x9*(parseInt(_0x438daf(0x1b3))/0xa)+parseInt(_0x438daf(0x1af))/0xb;if(_0x42e18d===_0x2a0119)break;else _0x1c8eec['push'](_0x1c8eec['shift']());}catch(_0x105075){_0x1c8eec['push'](_0x1c8eec['shift']());}}}(_0x44a5,0x6b714));const o={'collab-client':{'tooltip':{'reconnect':_0x2f4695(0x1ba)}},'collabStatus':{'fetchMiss':_0x2f4695(0x1b8),'conflict':_0x2f4695(0x1ac),'notCollab':_0x2f4695(0x1b0),'synced':_0x2f4695(0x1b2),'syncing':'در\x20حال\x20همگام\x20سازی...','offline':_0x2f4695(0x1a3)},'session':{'connection-failed':_0x2f4695(0x1ab),'will-retry':_0x2f4695(0x1bc),'room-full':_0x2f4695(0x1a8),'collaboration-timeout':_0x2f4695(0x1b5)},'conflict':{'title':_0x2f4695(0x1b1),'content':_0x2f4695(0x1a9)},'permission':{'title':_0x2f4695(0x1bb),'content':_0x2f4695(0x1b7)},'collaboration':{'single-unit':{'warning':_0x2f4695(0x1a2)},'closeRoom':_0x2f4695(0x1a7)},'auth':{'needGotoLoginAlert':'ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.'}};export{o as default};
|