@univerjs-pro/collaboration-client-ui 0.9.2-nightly.202507111607 → 0.9.2-nightly.202507131606

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2686e3=_0x21db;(function(_0x3d3004,_0x2a379e){const _0x44ad53=_0x21db,_0x1e8188=_0x3d3004();while(!![]){try{const _0x2bccf2=-parseInt(_0x44ad53(0x1f4))/0x1*(parseInt(_0x44ad53(0x14e))/0x2)+-parseInt(_0x44ad53(0x316))/0x3+parseInt(_0x44ad53(0x149))/0x4+parseInt(_0x44ad53(0x2f3))/0x5+parseInt(_0x44ad53(0x32f))/0x6*(parseInt(_0x44ad53(0x2eb))/0x7)+-parseInt(_0x44ad53(0x1bd))/0x8+parseInt(_0x44ad53(0x334))/0x9;if(_0x2bccf2===_0x2a379e)break;else _0x1e8188['push'](_0x1e8188['shift']());}catch(_0x4f6b34){_0x1e8188['push'](_0x1e8188['shift']());}}}(_0x298f,0xa33ef));var $t=Object['defineProperty'],xt=(_0x6fcf38,_0xb43a6a,_0x201e0a)=>_0xb43a6a in _0x6fcf38?$t(_0x6fcf38,_0xb43a6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x201e0a}):_0x6fcf38[_0xb43a6a]=_0x201e0a,_=(_0x3b710a,_0x143563,_0x37beae)=>xt(_0x3b710a,typeof _0x143563!=_0x2686e3(0x217)?_0x143563+'':_0x143563,_0x37beae);import{MemberService as _0xe44cda,SessionStatus as _0x12e31d,CollaborationSessionService as _0x593aab,CollaborationStatus as _0x14a13b,CollaborationController as _0xc794c6,ILocalCacheService as _0x52e427,CollaborationUIEventService as _0x445502,CollaborationUIEventId as _0x1bfe77,DataLoaderService as _0x2e52d0,DocCollaborationEntity as _0x39dac4,getLocalCacheKey as _0x437809,LOCAL_CACHE_INTERVAL as _0x258aab,LOCAL_CACHE_INTERVAL_KEY as _0x2e6936,UniverCollaborationClientPlugin as _0x5aafc5,CollaborationSocketService as _0x5c85f5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2e06a0,DEFAULT_WS_SESSION_TICKET_URL as _0x62fee3,UnitStatus as _0x45f787,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2031ac,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xa9e657}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x1f7e53,Disposable as _0x2d320f,DOC_RANGE_TYPE as _0x37a998,Inject as _0x437cbf,Injector as _0x212b2d,IUniverInstanceService as _0x1fee0a,ICommandService as _0x3fdfe9,debounce as _0x12f08e,Rectangle as _0xd0e12c,DisposableCollection as _0x2e91f3,toDisposable as _0x1e1ccf,UniverInstanceType as _0x259f9d,Tools as _0x457e3f,COLORS as _0x2f22cd,ColorKit as _0x265c98,ThemeService as _0x420883,fromEventSubject as _0x8ac6d,LocaleService as _0x514309,createIdentifier as _0x235d50,ILogService as _0x46abfe,Optional as _0x1b53d6,Workbook as _0x191ebc,CommandType as _0x3444c9,IConfigService as _0xd03f15,ILocalStorageService as _0xc9b330,DependentOn as _0x45f006,Plugin as _0x4257ba,merge as _0x4d74b0,registerDependencies as _0x49070c,mergeOverrideWithDependencies as _0x530a26,touchDependencies as _0x3a14f4,generateRandomId as _0x19648d}from'@univerjs/core';import{Shape as _0x510fce,Rect as _0x416255,getColor as _0x5c4401,RegularPolygon as _0x271538,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x551789,Vector2 as _0x320791,SHEET_VIEWPORT_KEY as _0x2db305,IRenderManagerService as _0x145026}from'@univerjs/engine-render';import{ISocketService as _0x54c1fa,WebSocketService as _0x2f2bd5,HTTPService as _0x538f65}from'@univerjs/network';import{IDocClipboardService as _0x1fcebf,NodePositionConvertToCursor as _0x414921,NodePositionConvertToRectRange as _0x3bc5a1,TEXT_RANGE_LAYER_INDEX as _0x2c648c,SetDocZoomRatioOperation as _0x285cb0,DocIMEInputManagerService as _0x582f51,DocStateChangeManagerService as _0x26ffd4}from'@univerjs/docs-ui';import{IImageIoService as _0x4e9b59}from'@univerjs/drawing';import{BehaviorSubject as _0x289e43,debounceTime as _0x2e9050,takeUntil as _0x130b87,Subject as _0x43d19,filter as _0x42bebe,switchMap as _0x54586f,merge as _0x4261a5,combineLatest as _0x49c74b,of as _0x555402,fromEvent as _0x6495ce,shareReplay as _0x5885f2,mapTo as _0x2de1b3,distinctUntilChanged as _0x12b905}from'rxjs';import{ITransformService as _0x7488d5,CollaborationEvent as _0x361c1c,isTransformMutationFailure as _0x12f16e,isTransformMutationsWithChangesetSuccess as _0x1fbadd,RevisionService as _0x225270,ISnapshotServerService as _0x2153ad}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x2aae30,RichTextEditingMutation as _0x171929,DocSelectionManagerService as _0x4e4c68,DocSkeletonManagerService as _0x1f44ba}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x23a41e,serializeRangeWithSheet as _0x25f251}from'@univerjs/engine-formula';import{RefRangeService as _0x47d053,SetSelectionsOperation as _0x1d1094,SheetsSelectionsService as _0x32eade,EffectRefRangId as _0x20cb78,handleIRemoveRow as _0x1e0c9c,handleIRemoveCol as _0x4b5a76,handleMoveRange as _0xfb3691,handleInsertRow as _0x30a66c,handleInsertRangeMoveRight as _0x40f24b,handleInsertRangeMoveDown as _0x147551,handleInsertCol as _0x4d6fa0,handleDeleteRangeMoveUp as _0x3e09b1,handleDeleteRangeMoveLeft as _0xebc12c,runRefRangeMutations as _0x22f0c4,SetWorksheetActivateCommand as _0x2ee94c}from'@univerjs/sheets';import{map as _0x3fe3dd,filter as _0x58fae0,throttleTime as _0x1fa051,takeUntil as _0x201037,switchMap as _0x129b18}from'rxjs/operators';import{SheetSkeletonManagerService as _0x18ecc2,getCoordByCell as _0x67f0b9,getSheetObject as _0x33b75f}from'@univerjs/sheets-ui';import{jsx as _0x5e7e28,jsxs as _0x45c588}from'react/jsx-runtime';import{useObservable as _0x44e717,useDependency as _0x5e0b55,IUIPartsService as _0x59c501,BuiltInUIPart as _0x4e781c,connectInjector as _0x4af26b,IBeforeCloseService as _0x33bd99,IMessageService as _0x242b2a,INotificationService as _0x16be65}from'@univerjs/ui';import{Tooltip as _0x37a28f,clsx as _0x4d7fd2,MessageType as _0x4c6395}from'@univerjs/design';import{forwardRef as _0x311cc4,useRef as _0x554768,createElement as _0x433ecf,useCallback as _0x1db297}from'react';import{IRemoteInstanceService as _0x1536dc}from'@univerjs/rpc';var ci=Object[_0x2686e3(0x29c)],li=(_0xb2471d,_0x14dc8d,_0x31c654,_0x51a0cf)=>{const _0x1fcd8b=_0x2686e3;for(var _0x4ee59c=_0x51a0cf>0x1?void 0x0:_0x51a0cf?ci(_0x14dc8d,_0x31c654):_0x14dc8d,_0x18b40f=_0xb2471d[_0x1fcd8b(0x29f)]-0x1,_0x434e76;_0x18b40f>=0x0;_0x18b40f--)(_0x434e76=_0xb2471d[_0x18b40f])&&(_0x4ee59c=_0x434e76(_0x4ee59c)||_0x4ee59c);return _0x4ee59c;},Je=(_0x427d2e,_0x3d1d79)=>(_0x116b1,_0x5b1cd3)=>_0x3d1d79(_0x116b1,_0x5b1cd3,_0x427d2e);let Ne=class extends _0x1f7e53{constructor(_0x3ac099,_0x2d5a02){const _0x39f9c1=_0x2686e3;super(),this['_docClipboardService']=_0x3ac099,this[_0x39f9c1(0x14a)]=_0x2d5a02,this[_0x39f9c1(0x2de)]();}[_0x2686e3(0x2de)](){const _0x4586a8=_0x2686e3,_0x128f93=this;this[_0x4586a8(0x2a4)](this[_0x4586a8(0x188)][_0x4586a8(0x21e)]({'onBeforePasteImage':async _0x1d5525=>{const _0xa26610=_0x4586a8,_0xbd9125=await _0x128f93[_0xa26610(0x14a)][_0xa26610(0x26e)](_0x1d5525);return _0xbd9125?{'source':_0xbd9125[_0xa26610(0x294)],'imageSourceType':_0xbd9125[_0xa26610(0x262)]}:null;}}));}};Ne=li([Je(0x0,_0x1fcebf),Je(0x1,_0x4e9b59)],Ne);const Ze=[_0x2686e3(0x247),_0x2686e3(0x2ab),_0x2686e3(0x144),_0x2686e3(0x281),_0x2686e3(0x158),'yellow.400'];class ke extends _0x2d320f{constructor(){const _0xf5f02a=_0x2686e3;super(...arguments),_(this,_0xf5f02a(0x2ca),new Map()),_(this,_0xf5f02a(0x1fc),0x0);}[_0x2686e3(0x1a5)](_0x3da650){const _0x2b110c=_0x2686e3;if(this[_0x2b110c(0x2ca)][_0x2b110c(0x33d)](_0x3da650))return this['_assignedColors'][_0x2b110c(0x1ad)](_0x3da650);const _0x10279c=Ze[this[_0x2b110c(0x1fc)]];return this[_0x2b110c(0x1fc)]=(this[_0x2b110c(0x1fc)]+0x1)%Ze[_0x2b110c(0x29f)],this[_0x2b110c(0x2ca)][_0x2b110c(0x155)](_0x3da650,_0x10279c),_0x10279c;}}function Tt(_0x516f82){const _0x4e41e1=_0x2686e3;let _0x2144d5='';for(const _0x5d06b3 of _0x516f82){const {startOffset:_0x339f28,endOffset:_0x2cd139,isActive:_0x28864a,rangeType:_0x47e84d,segmentId:_0x3ee9e6,segmentPage:_0x20a607}=_0x5d06b3;_0x2144d5[_0x4e41e1(0x29f)]&&(_0x2144d5+=','),_0x2144d5+=_0x339f28+':'+_0x2cd139+':'+(_0x28864a?'1':'0')+':'+_0x47e84d+':'+_0x3ee9e6+':'+_0x20a607;}return _0x2144d5;}function _i(_0x1d1631){const _0x2e0ae8=_0x2686e3,_0x20a2d8=_0x1d1631[_0x2e0ae8(0x1c9)](','),_0x4eac99=[];for(const _0x3471ed of _0x20a2d8){const [_0x321c87,_0x80aedd,_0x19f83d,_0x4bf851,_0x53f23c,_0x7c5880]=_0x3471ed[_0x2e0ae8(0x1c9)](':');_0x4eac99[_0x2e0ae8(0x209)]({'startOffset':Number(_0x321c87),'endOffset':Number(_0x80aedd),'collapsed':_0x321c87===_0x80aedd,'isActive':_0x19f83d==='1','rangeType':_0x4bf851===_0x37a998[_0x2e0ae8(0x215)]?_0x37a998['TEXT']:_0x37a998[_0x2e0ae8(0x33c)],'segmentId':typeof _0x53f23c==_0x2e0ae8(0x30f)?String(_0x53f23c):'','segmentPage':Number(_0x7c5880!=null?_0x7c5880:-0x1)});}return _0x4eac99[_0x2e0ae8(0x2f8)](_0x31b3d0=>_0x31b3d0['isActive'])||(_0x4eac99[0x0]['isActive']=!0x0),_0x4eac99;}class He extends _0x1f7e53{constructor(){const _0x28bbc4=_0x2686e3;super(...arguments),_(this,'_collabCursorState$',new _0x289e43(null)),_(this,_0x28bbc4(0x2bb),this[_0x28bbc4(0x261)]['asObservable']());}[_0x2686e3(0x1c6)](_0x47b6fd){const _0x808da9=_0x2686e3,{unitID:_0x5e526a,memberID:_0xf2283d,textRanges:_0x28a467}=_0x47b6fd,_0xc19b4a=Tt(_0x28a467);if(_0xc19b4a==='')return;const _0xfc095c={'unitID':_0x5e526a,'memberID':_0xf2283d,'selection':_0xc19b4a};this[_0x808da9(0x261)]['next'](_0xfc095c);}}var hi=Object['getOwnPropertyDescriptor'],ui=(_0x2007d6,_0x1d3bbc,_0x4ed1a7,_0x4f9fee)=>{const _0x50be46=_0x2686e3;for(var _0x5208d2=_0x4f9fee>0x1?void 0x0:_0x4f9fee?hi(_0x1d3bbc,_0x4ed1a7):_0x1d3bbc,_0x454143=_0x2007d6[_0x50be46(0x29f)]-0x1,_0x440c50;_0x454143>=0x0;_0x454143--)(_0x440c50=_0x2007d6[_0x454143])&&(_0x5208d2=_0x440c50(_0x5208d2)||_0x5208d2);return _0x5208d2;},P=(_0x5a1cac,_0x899491)=>(_0x4ebc68,_0x43a1c5)=>_0x899491(_0x4ebc68,_0x43a1c5,_0x5a1cac);const di=0x12c,fi=0x64;let Ue=class extends _0x1f7e53{constructor(_0x2916b0,_0x4e4a6e,_0xf25a38,_0xe47315,_0x5e7ad6,_0x11843e,_0x42ca9c,_0x45643d,_0x2510f8){const _0x1a381e=_0x2686e3;super(),_(this,_0x1a381e(0x147),!0x1),_(this,'_init',!0x1),_(this,_0x1a381e(0x283),new _0x289e43(new Map())),_(this,_0x1a381e(0x330),this[_0x1a381e(0x283)]['asObservable']()),_(this,'_roomMembers$',new _0x289e43([])),_(this,_0x1a381e(0x232),this['_roomMembers$'][_0x1a381e(0x151)](_0x2e9050(di))),_(this,'_updateLocalCursor',_0x12f08e(_0x35b508=>{const _0x31d829=_0x1a381e,_0x33e0b6={'eventID':_0x361c1c['UPDATE_CURSOR'],'data':{'unitID':this[_0x31d829(0x26a)],'memberID':this[_0x31d829(0x1c1)][_0x31d829(0x341)](),'selection':Tt(_0x35b508)}};this[_0x31d829(0x1c1)][_0x31d829(0x2af)](_0x33e0b6,this[_0x31d829(0x26a)]);},fi)),(this[_0x1a381e(0x26a)]=_0x2916b0,this['_session']=_0x4e4a6e,this[_0x1a381e(0x2c3)]=_0xf25a38,this['_colorAssignService']=_0xe47315,this[_0x1a381e(0x169)]=_0x5e7ad6,this[_0x1a381e(0x2f1)]=_0x11843e,this['_transformService']=_0x42ca9c,this[_0x1a381e(0x245)]=_0x45643d,this[_0x1a381e(0x193)]=_0x2510f8);}get['cursorInfo'](){const _0x18eb70=_0x2686e3;return this[_0x18eb70(0x283)]['getValue']();}get[_0x2686e3(0x2ef)](){const _0x408eaa=_0x2686e3;return this[_0x408eaa(0x152)]['getValue']();}['dispose'](){const _0x2e14ef=_0x2686e3;super[_0x2e14ef(0x340)](),this[_0x2e14ef(0x283)][_0x2e14ef(0x207)](new Map()),this[_0x2e14ef(0x283)][_0x2e14ef(0x159)](),this['_roomMembers$'][_0x2e14ef(0x207)]([]),this[_0x2e14ef(0x152)]['complete']();}[_0x2686e3(0x1b3)](){const _0x520da5=_0x2686e3;this['_init']||(this['_init']=!0x0,this[_0x520da5(0x1c1)][_0x520da5(0x15b)][_0x520da5(0x151)](_0x130b87(this['dispose$']))[_0x520da5(0x200)](_0x38fdbe=>{const _0x48340e=_0x520da5;_0x38fdbe===_0x12e31d[_0x48340e(0x18e)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x520da5(0x1c1)][_0x520da5(0x1b8)][_0x520da5(0x151)](_0x130b87(this[_0x520da5(0x241)]))[_0x520da5(0x200)](_0x4c750a=>{const _0x5afab9=_0x520da5,_0x202adf=_0x4c750a[_0x5afab9(0x26d)];_0x202adf===_0x361c1c[_0x5afab9(0x21f)]&&this['_onCursorUpdate'](_0x4c750a),_0x202adf===_0x361c1c['USERS_LEAVE']&&this[_0x5afab9(0x216)](_0x4c750a);}),this[_0x520da5(0x2a4)](this['_commandService'][_0x520da5(0x2ec)](_0x4e6b23=>{const _0x5c697a=_0x520da5,_0x28689c=_0x4e6b23[_0x5c697a(0x224)];_0x28689c!=null&&this[_0x5c697a(0x147)]&&_0x4e6b23['id']===_0x2aae30['id']&&_0x28689c[_0x5c697a(0x2fa)]===this[_0x5c697a(0x26a)]&&_0x28689c[_0x5c697a(0x27a)]===!0x1&&_0x28689c['ranges'][_0x5c697a(0x29f)]>0x0&&this['_updateLocalCursor'](_0x28689c[_0x5c697a(0x16d)]);})),this[_0x520da5(0x2f1)][_0x520da5(0x2bb)][_0x520da5(0x151)](_0x130b87(this['dispose$']))[_0x520da5(0x200)](_0x4934f7=>{const _0x2a52ca=_0x520da5;if((_0x4934f7==null?void 0x0:_0x4934f7[_0x2a52ca(0x26a)])!==this[_0x2a52ca(0x26a)])return;const _0x37a73c={'eventID':_0x361c1c[_0x2a52ca(0x21f)],'data':_0x4934f7};this['_onCursorUpdate'](_0x37a73c);}),this[_0x520da5(0x2a4)](this[_0x520da5(0x193)][_0x520da5(0x2ec)](_0x4cad4d=>{const _0x31af2a=_0x520da5;if(_0x4cad4d[_0x31af2a(0x224)]==null)return;const _0x2fcd7b=_0x4cad4d[_0x31af2a(0x224)];if(_0x4cad4d['id']!==_0x171929['id']||_0x2fcd7b[_0x31af2a(0x2fa)]!==this[_0x31af2a(0x26a)])return;const _0x7b58f8={'id':_0x31af2a(0x1b1),'params':_0x2fcd7b},_0x38a354=this[_0x31af2a(0x237)];for(const [_0x1180a1,_0x2d90a3]of _0x38a354){const _0x3e9885={'id':_0x31af2a(0x1b1),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2d90a3[_0x31af2a(0x16d)]}},_0x221e83=this['_transformService'][_0x31af2a(0x1a4)](_0x7b58f8,_0x3e9885,!0x1);if(_0x12f16e(_0x221e83))throw _0x221e83[_0x31af2a(0x31e)];_0x38a354[_0x31af2a(0x155)](_0x1180a1,{..._0x2d90a3,'ranges':_0x221e83[_0x31af2a(0x2ff)][_0x31af2a(0x224)][_0x31af2a(0x15d)]});}queueMicrotask(()=>{const _0x45bef1=_0x31af2a;this[_0x45bef1(0x283)][_0x45bef1(0x207)](_0x38a354);});})));}[_0x2686e3(0x141)](_0x4ba9d2){const _0x9684f8=_0x2686e3;var _0x30b3cc,_0x2c446f;const {memberID:_0x557e9c,selection:_0x2656e3}=_0x4ba9d2[_0x9684f8(0x31c)],_0x35e4cf=_i(_0x2656e3),_0x1775f9=(_0x2c446f=(_0x30b3cc=this['_memberService'][_0x9684f8(0x32c)](this[_0x9684f8(0x26a)],_0x557e9c))==null?void 0x0:_0x30b3cc[_0x9684f8(0x272)])!=null?_0x2c446f:'Unknown\x20user',_0x41a594={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x557e9c),'name':_0x1775f9,'ranges':_0x35e4cf},_0x53ff7b=this['cursorInfo'];_0x53ff7b[_0x9684f8(0x155)](_0x557e9c,_0x41a594),this[_0x9684f8(0x283)][_0x9684f8(0x207)](_0x53ff7b);}[_0x2686e3(0x216)](_0x7eed0a){const _0x47ff7a=_0x2686e3,{memberID:_0x356194}=_0x7eed0a['data'],_0x30e922=this[_0x47ff7a(0x237)];_0x30e922[_0x47ff7a(0x277)](_0x356194),this[_0x47ff7a(0x283)][_0x47ff7a(0x207)](_0x30e922);}[_0x2686e3(0x191)](){const _0x5d16a8=_0x2686e3;var _0x23f3ba;if(this[_0x5d16a8(0x147)]=!0x0,((_0x23f3ba=this[_0x5d16a8(0x245)]['getFocusedUnit']())==null?void 0x0:_0x23f3ba[_0x5d16a8(0x1d7)]())!==this['unitID'])return;const _0x2cc3b6=this[_0x5d16a8(0x2c3)][_0x5d16a8(0x1ad)](_0x4e4c68)[_0x5d16a8(0x2d6)]();Array[_0x5d16a8(0x150)](_0x2cc3b6)&&_0x2cc3b6[_0x5d16a8(0x29f)]>0x0&&this[_0x5d16a8(0x279)](_0x2cc3b6);}['_toggleOffline'](){const _0x383226=_0x2686e3;this[_0x383226(0x147)]=!0x1;}};Ue=ui([P(0x2,_0x437cbf(_0x212b2d)),P(0x3,_0x437cbf(ke)),P(0x4,_0x437cbf(_0xe44cda)),P(0x5,_0x437cbf(He)),P(0x6,_0x7488d5),P(0x7,_0x1fee0a),P(0x8,_0x3fdfe9)],Ue);var Si=Object[_0x2686e3(0x29c)],mi=(_0x22ecb1,_0x534d2e,_0x2707ae,_0xf84973)=>{const _0x48cfd6=_0x2686e3;for(var _0x46a78a=_0xf84973>0x1?void 0x0:_0xf84973?Si(_0x534d2e,_0x2707ae):_0x534d2e,_0x597bde=_0x22ecb1[_0x48cfd6(0x29f)]-0x1,_0x5e5efd;_0x597bde>=0x0;_0x597bde--)(_0x5e5efd=_0x22ecb1[_0x597bde])&&(_0x46a78a=_0x5e5efd(_0x46a78a)||_0x46a78a);return _0x46a78a;},x=(_0x5511fe,_0x30d242)=>(_0x2b949a,_0x3b359d)=>_0x30d242(_0x2b949a,_0x3b359d,_0x5511fe);const Ii=0x12c,gi=0x64,vi=()=>{let _0x3fc1e0=[],_0x27f09d=!0x1;return _0x2f250f=>{const _0x18d658=_0x21db;_0x3fc1e0[_0x18d658(0x209)](_0x2f250f),_0x27f09d||(_0x27f09d=!0x0,setTimeout(()=>{const _0x5ccdca=_0x18d658;_0x3fc1e0[_0x5ccdca(0x164)](_0x4fb634=>_0x4fb634()),_0x3fc1e0=[],_0x27f09d=!0x1;}));};};let Me=class extends _0x1f7e53{constructor(_0x52d415,_0x1fd1da,_0x572427,_0x1ed04c,_0x19ed54,_0x3c2e95,_0x6537bc,_0x54e9a6){const _0x364cf5=_0x2686e3;super(),_(this,'_online',!0x1),_(this,_0x364cf5(0x2de),!0x1),_(this,_0x364cf5(0x283),new _0x289e43(new Map())),_(this,_0x364cf5(0x330),this[_0x364cf5(0x283)][_0x364cf5(0x2c2)]()),_(this,_0x364cf5(0x152),new _0x289e43([])),_(this,_0x364cf5(0x232),this[_0x364cf5(0x152)]['pipe'](_0x2e9050(Ii))),_(this,_0x364cf5(0x279),_0x12f08e((_0x55d00c,_0x5afc3e)=>{const _0x5bfdad=_0x364cf5,_0x22786e={'eventID':_0x361c1c[_0x5bfdad(0x21f)],'data':{'unitID':this[_0x5bfdad(0x26a)],'memberID':this[_0x5bfdad(0x1c1)][_0x5bfdad(0x341)](),'selection':_0x25f251(_0x55d00c,_0x5afc3e[_0x5bfdad(0x231)])}};this[_0x5bfdad(0x1c1)][_0x5bfdad(0x2af)](_0x22786e,this[_0x5bfdad(0x26a)]);},gi)),(this[_0x364cf5(0x26a)]=_0x52d415,this[_0x364cf5(0x1c1)]=_0x1fd1da,this[_0x364cf5(0x2c3)]=_0x572427,this['_colorAssignService']=_0x1ed04c,this[_0x364cf5(0x169)]=_0x19ed54,this['_univerInstanceService']=_0x3c2e95,this[_0x364cf5(0x193)]=_0x6537bc,this[_0x364cf5(0x2a7)]=_0x54e9a6);}get['cursorInfo'](){const _0x1c8e11=_0x2686e3;return this[_0x1c8e11(0x283)][_0x1c8e11(0x2b5)]();}get[_0x2686e3(0x2ef)](){const _0x3ddcd3=_0x2686e3;return this[_0x3ddcd3(0x152)][_0x3ddcd3(0x2b5)]();}[_0x2686e3(0x340)](){const _0x87cc77=_0x2686e3;super[_0x87cc77(0x340)](),this[_0x87cc77(0x283)][_0x87cc77(0x207)](new Map()),this[_0x87cc77(0x283)][_0x87cc77(0x159)](),this[_0x87cc77(0x152)][_0x87cc77(0x207)]([]),this[_0x87cc77(0x152)][_0x87cc77(0x159)]();}[_0x2686e3(0x1b3)](){const _0x5e8976=_0x2686e3;this['_init']||(this['_init']=!0x0,this[_0x5e8976(0x1c1)]['sessionStatus$']['pipe'](_0x130b87(this[_0x5e8976(0x241)]))['subscribe'](_0x5b1810=>{const _0x387b54=_0x5e8976;_0x5b1810===_0x12e31d['ONLINE']?this[_0x387b54(0x191)]():this[_0x387b54(0x1f9)]();}),this[_0x5e8976(0x1c1)][_0x5e8976(0x1b8)][_0x5e8976(0x151)](_0x130b87(this[_0x5e8976(0x241)]))[_0x5e8976(0x200)](_0x1a2e8e=>{const _0x136eda=_0x5e8976,_0x24918b=_0x1a2e8e['eventID'];_0x24918b===_0x361c1c[_0x136eda(0x21f)]&&this[_0x136eda(0x141)](_0x1a2e8e),_0x24918b===_0x361c1c[_0x136eda(0x328)]&&this[_0x136eda(0x216)](_0x1a2e8e);}),this[_0x5e8976(0x1d3)](),this[_0x5e8976(0x2a4)](this[_0x5e8976(0x193)][_0x5e8976(0x2ec)](_0x55173d=>{const _0x277bcc=_0x5e8976;if(this['_online']&&_0x55173d['id']===_0x1d1094['id']&&_0x55173d['params'][_0x277bcc(0x2fa)]===this[_0x277bcc(0x26a)]){const _0x230330=_0x55173d[_0x277bcc(0x224)];this['_updateLocalCursor'](_0x230330['subUnitId'],_0x230330[_0x277bcc(0x1af)][0x0]);}})));}[_0x2686e3(0x141)](_0x529302){const _0x27448f=_0x2686e3;var _0x47486f,_0x492ec1;const {memberID:_0x17d4c3,selection:_0x57c5e5}=_0x529302[_0x27448f(0x31c)],{sheetName:_0x47556b,range:_0x18d015}=_0x23a41e(_0x57c5e5),_0x541bb9={'name':(_0x492ec1=(_0x47486f=this[_0x27448f(0x169)][_0x27448f(0x32c)](this[_0x27448f(0x26a)],_0x17d4c3))==null?void 0x0:_0x47486f['name'])!=null?_0x492ec1:_0x27448f(0x18a),'range':this[_0x27448f(0x1e7)](_0x47556b,_0x18d015),'sheetID':_0x47556b,'color':this[_0x27448f(0x213)][_0x27448f(0x1a5)](_0x17d4c3),'selection':_0x57c5e5},_0x23e210=this[_0x27448f(0x237)];_0x23e210[_0x27448f(0x155)](_0x17d4c3,_0x541bb9),this['_cursorInfo$']['next'](_0x23e210);}[_0x2686e3(0x216)](_0x3e0177){const _0x8fb8b0=_0x2686e3,{memberID:_0x5a672f}=_0x3e0177[_0x8fb8b0(0x31c)],_0x1f6a6f=this['cursorInfo'];_0x1f6a6f[_0x8fb8b0(0x277)](_0x5a672f),this[_0x8fb8b0(0x283)][_0x8fb8b0(0x207)](_0x1f6a6f);}['_getMergeRange'](_0x392bbb,_0x3cabfc){const _0x323796=_0x2686e3;var _0x2e2b78,_0x3b8d98;const _0x4a2f67=(_0x3b8d98=(_0x2e2b78=this[_0x323796(0x245)][_0x323796(0x13d)](this[_0x323796(0x26a)]))==null?void 0x0:_0x2e2b78['getSheetBySheetId'](_0x392bbb))==null?void 0x0:_0x3b8d98['getMergeData']();return(_0x4a2f67==null?void 0x0:_0x4a2f67[_0x323796(0x280)](_0x16ed92=>_0xd0e12c['contains'](_0x16ed92,_0x3cabfc)))||_0x3cabfc;}[_0x2686e3(0x1d3)](){const _0x45c7d5=_0x2686e3,_0x32848a=new _0x2e91f3(),_0x120184=vi(),_0x52a5e9=()=>{const _0x1c2864=_0x21db;_0x32848a[_0x1c2864(0x340)]();const _0x459bc0=(_0x5125f0,_0x421449,_0x24d6af,_0x2283a3)=>{const _0x12fb6f=_0x1c2864;let _0x340b91=[];switch(_0x5125f0['id']){case _0x20cb78[_0x12fb6f(0x2be)]:{_0x340b91=_0xebc12c(_0x5125f0,_0x2283a3);break;}case _0x20cb78[_0x12fb6f(0x25b)]:{_0x340b91=_0x3e09b1(_0x5125f0,_0x2283a3);break;}case _0x20cb78[_0x12fb6f(0x29d)]:{_0x340b91=_0x4d6fa0(_0x5125f0,_0x2283a3);break;}case _0x20cb78['InsertRangeMoveDownCommandId']:{_0x340b91=_0x147551(_0x5125f0,_0x2283a3);break;}case _0x20cb78['InsertRangeMoveRightCommandId']:{_0x340b91=_0x40f24b(_0x5125f0,_0x2283a3);break;}case _0x20cb78[_0x12fb6f(0x33e)]:{_0x340b91=_0x30a66c(_0x5125f0,_0x2283a3);break;}case _0x20cb78[_0x12fb6f(0x23f)]:{_0x340b91=_0xfb3691(_0x5125f0,_0x2283a3);break;}case _0x20cb78['RemoveColCommandId']:{_0x340b91=_0x4b5a76(_0x5125f0,_0x2283a3);break;}case _0x20cb78[_0x12fb6f(0x305)]:{_0x340b91=_0x1e0c9c(_0x5125f0,_0x2283a3);break;}}const _0x384c2d=_0x22f0c4(_0x340b91,_0x2283a3),_0x1bf4de=this[_0x12fb6f(0x237)][_0x12fb6f(0x1ad)](_0x421449);if(_0x1bf4de&&_0x384c2d){const _0x5af413={..._0x1bf4de,'range':_0x384c2d};this[_0x12fb6f(0x237)]['set'](_0x421449,_0x5af413),_0x120184(()=>{const _0x733b0d=_0x12fb6f,_0x191d38=this[_0x733b0d(0x2a7)]['registerRefRange'](_0x384c2d,_0x18bd13=>(_0x191d38[_0x733b0d(0x340)](),_0x459bc0(_0x18bd13,_0x421449,_0x24d6af,_0x384c2d)));_0x32848a[_0x733b0d(0x291)](_0x191d38);});}return{'redos':[],'undos':[]};};this[_0x1c2864(0x237)]['forEach']((_0x2b353d,_0x233468)=>{const _0x36b14f=_0x1c2864,{range:_0x33e273,sheetID:_0x4a5365}=_0x2b353d,_0x2ea97a=this[_0x36b14f(0x2a7)][_0x36b14f(0x221)](_0x33e273,_0x32c97e=>(_0x2ea97a[_0x36b14f(0x340)](),_0x459bc0(_0x32c97e,_0x233468,_0x4a5365,_0x33e273)));_0x32848a[_0x36b14f(0x291)](_0x2ea97a);});};this[_0x45c7d5(0x2a4)](_0x1e1ccf(this[_0x45c7d5(0x283)]['subscribe'](()=>{_0x52a5e9();})));}[_0x2686e3(0x191)](){const _0x27bc8e=_0x2686e3;var _0x43d26f,_0x323e36;if(this[_0x27bc8e(0x147)]=!0x0,((_0x43d26f=this[_0x27bc8e(0x245)]['getFocusedUnit']())==null?void 0x0:_0x43d26f[_0x27bc8e(0x1d7)]())!==this[_0x27bc8e(0x26a)])return;const _0x4ae34f=(_0x323e36=this[_0x27bc8e(0x2c3)][_0x27bc8e(0x1ad)](_0x32eade)['getCurrentSelections']())==null?void 0x0:_0x323e36[0x0],_0x449b8e=this[_0x27bc8e(0x245)][_0x27bc8e(0x314)](_0x259f9d[_0x27bc8e(0x1aa)])[_0x27bc8e(0x2c7)]();_0x4ae34f&&_0x449b8e&&this[_0x27bc8e(0x279)](_0x449b8e[_0x27bc8e(0x244)](),_0x4ae34f);}[_0x2686e3(0x1f9)](){const _0x5d0756=_0x2686e3;this[_0x5d0756(0x147)]=!0x1;}};Me=mi([x(0x2,_0x437cbf(_0x212b2d)),x(0x3,_0x437cbf(ke)),x(0x4,_0x437cbf(_0xe44cda)),x(0x5,_0x1fee0a),x(0x6,_0x3fdfe9),x(0x7,_0x437cbf(_0x47d053))],Me);var pi=Object[_0x2686e3(0x29c)],Ci=(_0x455e43,_0x1e42ec,_0x5918fd,_0xe627cf)=>{for(var _0x955bd4=_0xe627cf>0x1?void 0x0:_0xe627cf?pi(_0x1e42ec,_0x5918fd):_0x1e42ec,_0x52c881=_0x455e43['length']-0x1,_0x5f1c13;_0x52c881>=0x0;_0x52c881--)(_0x5f1c13=_0x455e43[_0x52c881])&&(_0x955bd4=_0x5f1c13(_0x955bd4)||_0x955bd4);return _0x955bd4;},Se=(_0x212bbf,_0x4c925d)=>(_0x61506,_0x1b2c09)=>_0x4c925d(_0x61506,_0x1b2c09,_0x212bbf);let H=class extends _0x1f7e53{constructor(_0x33dddd,_0x1cbb2d,_0x13f26b){const _0x58d49f=_0x2686e3;super(),_(this,_0x58d49f(0x1ee),new Map()),_(this,_0x58d49f(0x243),new _0x43d19()),(this[_0x58d49f(0x245)]=_0x33dddd,this[_0x58d49f(0x2c3)]=_0x1cbb2d,this[_0x58d49f(0x285)]=_0x13f26b,this[_0x58d49f(0x2de)]());}[_0x2686e3(0x340)](){const _0x4d1fd7=_0x2686e3;super[_0x4d1fd7(0x340)](),this[_0x4d1fd7(0x243)][_0x4d1fd7(0x159)](),this[_0x4d1fd7(0x1ee)][_0x4d1fd7(0x164)](_0x5bcc4d=>_0x5bcc4d[_0x4d1fd7(0x340)]());}[_0x2686e3(0x1b7)](_0x2dee16){const _0x561c48=_0x2686e3;return this[_0x561c48(0x1ee)][_0x561c48(0x33d)](_0x2dee16)?this[_0x561c48(0x1ee)]['get'](_0x2dee16)[_0x561c48(0x330)]:this[_0x561c48(0x243)][_0x561c48(0x151)](_0x42bebe(_0x453e50=>_0x453e50[_0x561c48(0x26a)]===_0x2dee16),_0x54586f(_0x326909=>_0x326909[_0x561c48(0x330)]));}[_0x2686e3(0x2de)](){const _0x52c684=_0x2686e3;this['_univerInstanceService'][_0x52c684(0x15c)](_0x259f9d[_0x52c684(0x1aa)])[_0x52c684(0x151)](_0x130b87(this[_0x52c684(0x241)]))[_0x52c684(0x200)](async _0x1741ab=>{const _0x3cce3e=_0x52c684,_0xef678f=_0x1741ab[_0x3cce3e(0x1d7)](),_0x269878=await this[_0x3cce3e(0x176)](_0xef678f);this['_entityInit$'][_0x3cce3e(0x207)](_0x269878),this[_0x3cce3e(0x1ee)][_0x3cce3e(0x155)](_0xef678f,_0x269878);}),this[_0x52c684(0x245)]['getTypeOfUnitAdded$'](_0x259f9d[_0x52c684(0x1bb)])[_0x52c684(0x151)](_0x130b87(this[_0x52c684(0x241)]))[_0x52c684(0x151)](_0x42bebe(_0x2d14bf=>!_0x2d14bf['getUnitId']()['startsWith']('__')))[_0x52c684(0x200)](async _0x10fe6d=>{const _0x3109d6=_0x52c684,_0x58089c=_0x10fe6d['getUnitId'](),_0x27f61a=await this[_0x3109d6(0x288)](_0x58089c);this['_entityInit$'][_0x3109d6(0x207)](_0x27f61a),this[_0x3109d6(0x1ee)][_0x3109d6(0x155)](_0x58089c,_0x27f61a);}),_0x4261a5(this[_0x52c684(0x245)][_0x52c684(0x1d6)](_0x259f9d[_0x52c684(0x1bb)]),this[_0x52c684(0x245)]['getTypeOfUnitDisposed$'](_0x259f9d[_0x52c684(0x1aa)]))[_0x52c684(0x151)](_0x130b87(this[_0x52c684(0x241)]))[_0x52c684(0x200)](_0x572978=>{const _0x4a6e4c=_0x52c684,_0x5b419b=_0x572978[_0x4a6e4c(0x1d7)](),_0x79d464=this[_0x4a6e4c(0x1ee)][_0x4a6e4c(0x1ad)](_0x5b419b);_0x79d464&&(_0x79d464[_0x4a6e4c(0x340)](),this[_0x4a6e4c(0x1ee)][_0x4a6e4c(0x277)](_0x5b419b));});}async['_startSheetCollabCursor'](_0x5d5d54){const _0xc876cf=_0x2686e3,_0x508235=await this[_0xc876cf(0x285)][_0xc876cf(0x292)](_0x5d5d54),_0x5cd2cb=this[_0xc876cf(0x2c3)][_0xc876cf(0x186)](Me,_0x5d5d54,_0x508235);return _0x5cd2cb[_0xc876cf(0x1b3)](),_0x5cd2cb;}async[_0x2686e3(0x288)](_0xda3ded){const _0x1eb1e3=_0x2686e3,_0x218178=await this[_0x1eb1e3(0x285)][_0x1eb1e3(0x292)](_0xda3ded),_0x43235f=this['_injector']['createInstance'](Ue,_0xda3ded,_0x218178);return _0x43235f['init'](),_0x43235f;}};H=Ci([Se(0x0,_0x1fee0a),Se(0x1,_0x437cbf(_0x212b2d)),Se(0x2,_0x437cbf(_0x593aab))],H);const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0xb21048,_0x2868d3){const _0x42804=_0x2686e3;let {radius:_0x2f69f7,width:_0x16d9a6,height:_0x2cadd6}=_0x2868d3;_0x2f69f7=_0x2f69f7!=null?_0x2f69f7:0x0,_0x16d9a6=_0x16d9a6!=null?_0x16d9a6:0x1e,_0x2cadd6=_0x2cadd6!=null?_0x2cadd6:0x1e;let _0x210947=0x0,_0x1ed1c5=0x0,_0x349e3e=0x0;_0x210947=_0x1ed1c5=_0x349e3e=Math['min'](_0x2f69f7,_0x16d9a6/0x2,_0x2cadd6/0x2),_0xb21048[_0x42804(0x2d5)](),_0xb21048[_0x42804(0x140)](_0x210947,0x0),_0xb21048[_0x42804(0x1f6)](_0x16d9a6-_0x1ed1c5,0x0),_0xb21048[_0x42804(0x14f)](_0x16d9a6-_0x1ed1c5,_0x1ed1c5,_0x1ed1c5,Math['PI']*0x3/0x2,0x0,!0x1),_0xb21048['lineTo'](_0x16d9a6,_0x2cadd6-_0x349e3e),_0xb21048[_0x42804(0x14f)](_0x16d9a6-_0x349e3e,_0x2cadd6-_0x349e3e,_0x349e3e,0x0,Math['PI']/0x2,!0x1),_0xb21048[_0x42804(0x1f6)](0x0,_0x2cadd6),_0xb21048[_0x42804(0x1f6)](0x0,_0x210947),_0xb21048[_0x42804(0x14f)](_0x210947,_0x210947,_0x210947,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb21048[_0x42804(0x32b)](),_0x2868d3['fill']&&(_0xb21048['save'](),_0xb21048[_0x42804(0x1ce)]=_0x2868d3[_0x42804(0x315)],_0x2868d3[_0x42804(0x19d)]===_0x42804(0x203)?_0xb21048[_0x42804(0x315)](_0x42804(0x203)):_0xb21048[_0x42804(0x315)](),_0xb21048[_0x42804(0x309)]());}class he extends _0x510fce{constructor(_0x15d505,_0x1d58b5){const _0xbc0a08=_0x2686e3;super(_0x15d505,_0x1d58b5),_(this,_0xbc0a08(0x265)),_(this,_0xbc0a08(0x17f)),(this[_0xbc0a08(0x265)]=_0x1d58b5==null?void 0x0:_0x1d58b5[_0xbc0a08(0x265)],this[_0xbc0a08(0x17f)]=_0x1d58b5==null?void 0x0:_0x1d58b5[_0xbc0a08(0x17f)]);}static[_0x2686e3(0x2e6)](_0x54f586,_0x51bf23){const _0x44a394=_0x2686e3,{text:_0x105053,color:_0x3aff93}=_0x51bf23;_0x54f586[_0x44a394(0x1a1)](),_0x54f586[_0x44a394(0x2fc)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x53eb5d=_0x54f586[_0x44a394(0x30e)](_0x105053)['width'],_0x555cb6=Math[_0x44a394(0x208)](_0x53eb5d+0x2*me,Qe);Oi(_0x54f586,{'height':ee,'radius':0x4,'width':_0x555cb6,'fill':_0x3aff93}),_0x54f586[_0x44a394(0x1ce)]=_0x44a394(0x332);const _0x4d1496=me,_0x48c3be=ee-Ei,_0x2052bd=Qe-0x2*me;if(_0x53eb5d>_0x2052bd){let _0x5721fb='',_0x4eada0=0x0;for(const _0x1899b1 of _0x105053){const _0x1e34ef=_0x54f586[_0x44a394(0x30e)](_0x1899b1)['width'];if(_0x4eada0+_0x1e34ef<=_0x2052bd-_0x54f586[_0x44a394(0x30e)](_0x44a394(0x306))[_0x44a394(0x2cc)])_0x5721fb+=_0x1899b1,_0x4eada0+=_0x1e34ef;else{_0x5721fb+=_0x44a394(0x306);break;}}_0x54f586['fillText'](_0x5721fb,_0x4d1496,_0x48c3be);}else _0x54f586[_0x44a394(0x19f)](_0x105053,_0x4d1496,_0x48c3be);_0x54f586[_0x44a394(0x309)]();}[_0x2686e3(0x225)](_0x22d09f){he['drawWith'](_0x22d09f,this);}}const Ie=_0x2686e3(0x210),bi=_0x2686e3(0x286),Ti='collab-rect-range-',X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x2686e3(0x1b0);class qe{constructor(_0x14e315,_0x423e56,_0x148ace,_0x37690c){const _0x5143da=_0x2686e3;_(this,'_shapes',[]),_(this,_0x5143da(0x30c),null),_(this,_0x5143da(0x2ba),null),_(this,_0x5143da(0x1ba),null),_(this,_0x5143da(0x184),null),_(this,_0x5143da(0x18b),null),(this[_0x5143da(0x194)]=_0x14e315,this[_0x5143da(0x338)]=_0x423e56,this[_0x5143da(0x32a)]=_0x148ace,this[_0x5143da(0x1b4)]=_0x37690c,this[_0x5143da(0x2df)]());}set[_0x2686e3(0x26f)](_0x4579ca){const _0x2b0bac=_0x2686e3;_0x4579ca?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x2b0bac(0x2ba)]&&this['_textBubble']['show']()):(this[_0x2b0bac(0x1ba)]&&this[_0x2b0bac(0x1ba)][_0x2b0bac(0x31a)](),this[_0x2b0bac(0x2ba)]&&this[_0x2b0bac(0x2ba)][_0x2b0bac(0x28a)]());}[_0x2686e3(0x340)](){const _0x1da6df=_0x2686e3;for(const _0x4e3442 of this[_0x1da6df(0x258)])_0x4e3442[_0x1da6df(0x340)]();this[_0x1da6df(0x2ba)]&&this[_0x1da6df(0x2ba)]['dispose'](),this['_anchorDot']&&this[_0x1da6df(0x1ba)]['dispose'](),this[_0x1da6df(0x30c)]&&this[_0x1da6df(0x30c)][_0x1da6df(0x340)](),this[_0x1da6df(0x18b)]&&this['_eventUnsubscribe']();}[_0x2686e3(0x2df)](){const _0x2d069d=_0x2686e3;var _0x54d248;const {_docSkeleton:_0x4769a0,_document:_0x2acc3a}=this,{color:_0x1a7f3f,name:_0x2c8e6d,ranges:_0x35e08c}=this[_0x2d069d(0x194)],_0x20b6a6=_0x2acc3a[_0x2d069d(0x254)](),{docsLeft:_0x1f67e5,docsTop:_0x3eb56c}=_0x20b6a6,_0x1f6c77=new _0x414921(_0x20b6a6,_0x4769a0);for(const {startOffset:_0x19fece,endOffset:_0x466783,rangeType:_0xb8af5b,segmentId:_0x24d3f7,segmentPage:_0xe209cf,collapsed:_0x3d3b45,isActive:_0x476509}of _0x35e08c){const _0xbe53ae=_0x4769a0['findNodePositionByCharIndex'](_0x19fece,!0x0,_0x24d3f7,_0xe209cf);let _0x15090c=_0x4769a0[_0x2d069d(0x28c)](_0x466783,!0x0,_0x24d3f7,_0xe209cf);if(_0x15090c==null&&(_0x15090c=_0x4769a0[_0x2d069d(0x28c)](_0x466783-0x1,!0x1,_0x24d3f7,_0xe209cf)),_0x476509){const {contentBoxPointGroup:_0x47a972}=_0x1f6c77[_0x2d069d(0x2ce)](_0x15090c,_0x15090c);if(_0x47a972[_0x2d069d(0x29f)]===0x0)continue;this[_0x2d069d(0x170)](_0x1a7f3f,_0x47a972,_0x1f67e5,_0x3eb56c,_0x2c8e6d),this['_eventUnsubscribe']=this['_handleHover']();}if(_0xbe53ae&&_0x15090c){if(_0xb8af5b===_0x37a998['RECT']){const _0x1f588a=new _0x3bc5a1(_0x20b6a6,_0x4769a0),{pointGroup:_0x221295}=(_0x54d248=_0x1f588a[_0x2d069d(0x2ce)](_0xbe53ae,_0x15090c))!=null?_0x54d248:{};if(_0x221295==null||_0x221295['length']===0x0)continue;this[_0x2d069d(0x29b)](_0x1a7f3f,_0x221295,_0x1f67e5,_0x3eb56c);}else{if(!_0x3d3b45){const {borderBoxPointGroup:_0x2afc49}=_0x1f6c77['getRangePointData'](_0xbe53ae,_0x15090c);if(_0x2afc49[_0x2d069d(0x29f)]===0x0)continue;this[_0x2d069d(0x2c6)](_0x1a7f3f,_0x2afc49,_0x1f67e5,_0x3eb56c);}}}}}[_0x2686e3(0x170)](_0x4034e3,_0x187ee2,_0x52e74a,_0x23da8a,_0x4a223a){const _0x4402b3=_0x2686e3,_0x30cb6c=this[_0x4402b3(0x177)](_0x187ee2),{left:_0x511a34,top:_0x4139dc,height:_0x108c74}=_0x30cb6c,_0x4240ee=this[_0x4402b3(0x312)](),_0x4f6a57=Di/_0x4240ee,_0x37283b=new _0x416255(Ie+_0x457e3f[_0x4402b3(0x23b)](X),{'left':_0x511a34+_0x52e74a-_0x4f6a57,'top':_0x4139dc+_0x23da8a,'height':_0x108c74,'width':Ri,'fill':_0x4034e3||_0x5c4401(_0x2f22cd[_0x4402b3(0x20a)],0x0),'strokeWidth':_0x4f6a57,'stroke':Ni,'evented':!0x0});this['_anchor']=_0x37283b,this[_0x4402b3(0x338)]['addObject'](_0x37283b,_0x2c648c);const _0x1e8aff=new _0x416255(Ie+_0x457e3f['generateRandomId'](X),{'left':_0x511a34+_0x52e74a-_0x4f6a57,'top':_0x4139dc+_0x23da8a-ge/0x2,'height':ge,'width':ge,'fill':_0x4034e3||_0x5c4401(_0x2f22cd['black'],0x0),'strokeWidth':0x0,'stroke':_0x4034e3||_0x5c4401(_0x2f22cd[_0x4402b3(0x20a)],0x0),'evented':!0x1});this[_0x4402b3(0x1ba)]=_0x1e8aff,this[_0x4402b3(0x338)][_0x4402b3(0x1cb)](_0x1e8aff,_0x2c648c);const _0x5cc2d2=new he(Ie+_0x457e3f[_0x4402b3(0x23b)](X),{'left':_0x511a34+_0x52e74a-_0x4f6a57,'top':_0x4139dc+_0x23da8a-ee,'text':_0x4a223a,'color':_0x4034e3});this[_0x4402b3(0x2ba)]=_0x5cc2d2,this[_0x4402b3(0x338)][_0x4402b3(0x1cb)](_0x5cc2d2,_0x2c648c),this[_0x4402b3(0x26f)]=!0x1;}[_0x2686e3(0x2b4)](){const _0x3107f1=_0x2686e3,_0x58b22f=this['_anchor'][_0x3107f1(0x20b)][_0x3107f1(0x189)](()=>{const _0x4a42f1=_0x3107f1;this[_0x4a42f1(0x26f)]=!0x0;}),_0x352bc7=this[_0x3107f1(0x30c)][_0x3107f1(0x297)][_0x3107f1(0x189)](()=>{const _0x4d1a8b=_0x3107f1;this['_hideTimer']&&clearTimeout(this[_0x4d1a8b(0x184)]),this[_0x4d1a8b(0x184)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x124c62=_0x3107f1;_0x58b22f['unsubscribe'](),_0x352bc7[_0x124c62(0x22c)]();};}[_0x2686e3(0x2c6)](_0x346869,_0x948ba9,_0x37e009,_0x5aeae7){const _0x4aef9f=_0x2686e3,_0x4af66f=new _0x265c98(_0x346869)[_0x4aef9f(0x2d8)](0.2)[_0x4aef9f(0x135)](),_0x4f45bf=new _0x271538(bi+_0x457e3f[_0x4aef9f(0x23b)](X),{'pointsGroup':_0x948ba9,'fill':_0x4af66f||_0x5c4401(_0x2f22cd['black'],0.2),'left':_0x37e009,'top':_0x5aeae7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4aef9f(0x258)][_0x4aef9f(0x209)](_0x4f45bf),this[_0x4aef9f(0x338)][_0x4aef9f(0x1cb)](_0x4f45bf,_0x2c648c);}[_0x2686e3(0x29b)](_0x3ac3b5,_0x3dc3b9,_0x595119,_0x5c81aa){const _0x346e26=_0x2686e3,_0x9f48ba=new _0x265c98(_0x3ac3b5)[_0x346e26(0x2d8)](0.2)[_0x346e26(0x135)](),_0x273c6f=new _0x271538(Ti+_0x457e3f[_0x346e26(0x23b)](X),{'pointsGroup':_0x3dc3b9,'fill':_0x9f48ba||_0x5c4401(_0x2f22cd[_0x346e26(0x20a)],0.2),'left':_0x595119,'top':_0x5c81aa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x346e26(0x258)][_0x346e26(0x209)](_0x273c6f),this[_0x346e26(0x338)][_0x346e26(0x1cb)](_0x273c6f,_0x2c648c);}[_0x2686e3(0x177)](_0x2ee010){const _0x5bcbbd=_0x2ee010[0x0],_0x29dd71=_0x5bcbbd[0x0],_0x5578ba=_0x5bcbbd[0x2],{x:_0x85603b,y:_0x1687bd}=_0x29dd71,{x:_0x165b7a,y:_0x22c4a8}=_0x5578ba;return{'left':_0x85603b,'top':_0x1687bd,'width':_0x165b7a-_0x85603b,'height':_0x22c4a8-_0x1687bd};}[_0x2686e3(0x312)](){const _0x34b47d=_0x2686e3,{scaleX:_0x31cedf,scaleY:_0x178e37}=this[_0x34b47d(0x338)]['getAncestorScale']();return Math[_0x34b47d(0x2d0)](_0x31cedf,_0x178e37);}}var Ui=Object[_0x2686e3(0x29c)],Mi=(_0x2911db,_0x1dcbeb,_0x3b3dd9,_0x3b6654)=>{const _0x4cd710=_0x2686e3;for(var _0x5907b7=_0x3b6654>0x1?void 0x0:_0x3b6654?Ui(_0x1dcbeb,_0x3b3dd9):_0x1dcbeb,_0x3b1581=_0x2911db[_0x4cd710(0x29f)]-0x1,_0xa86d9f;_0x3b1581>=0x0;_0x3b1581--)(_0xa86d9f=_0x2911db[_0x3b1581])&&(_0x5907b7=_0xa86d9f(_0x5907b7)||_0x5907b7);return _0x5907b7;},Z=(_0x59f1fe,_0x752cb6)=>(_0x440df6,_0x2ef2a9)=>_0x752cb6(_0x440df6,_0x2ef2a9,_0x59f1fe);let Le=class extends _0x1f7e53{constructor(_0x806dbd,_0x3809b4,_0x3269d7,_0x74214b,_0x594ac6){const _0x17ee8d=_0x2686e3;super(),_(this,_0x17ee8d(0x240),[]),_(this,_0x17ee8d(0x2d7),[]),(this[_0x17ee8d(0x2a1)]=_0x806dbd,this[_0x17ee8d(0x1b6)]=_0x3809b4,this[_0x17ee8d(0x311)]=_0x3269d7,this[_0x17ee8d(0x193)]=_0x74214b,this[_0x17ee8d(0x1ac)]=_0x594ac6,this[_0x17ee8d(0x2de)]());}[_0x2686e3(0x2de)](){const _0x484340=_0x2686e3,_0x5b87ab=this['_context'][_0x484340(0x2fa)],_0x378782=this['_docSkeletonManagerService'];this[_0x484340(0x2a4)](_0x49c74b([this['_collabCursorController'][_0x484340(0x1b7)](_0x5b87ab),this[_0x484340(0x1ac)][_0x484340(0x331)]])[_0x484340(0x151)](_0x3fe3dd(([_0x2cec77,_0x4f84e5])=>({'skeleton':_0x378782[_0x484340(0x2cf)](),'cursors':[..._0x2cec77[_0x484340(0x20c)]()][_0x484340(0x20d)](_0x5d7e99=>({..._0x5d7e99,'color':this['_themeService'][_0x484340(0x2ad)](_0x5d7e99[_0x484340(0x265)])}))})))[_0x484340(0x200)](_0x234540=>{const _0x4631fd=_0x484340;if(this[_0x4631fd(0x1a7)](),_0x234540){const {skeleton:_0xf1473b,cursors:_0xc09fe4}=_0x234540;this[_0x4631fd(0x2bc)](_0xf1473b,_0xc09fe4);}})),this[_0x484340(0x165)](),this[_0x484340(0x2d4)]();}[_0x2686e3(0x2bc)](_0xfc6850,_0x4cabc3){const _0x3ff37c=_0x2686e3,{scene:_0x26fda5,mainComponent:_0x4ea2d0}=this[_0x3ff37c(0x2a1)],_0x5b6afb=_0x4cabc3[_0x3ff37c(0x156)](_0x22f10d=>new qe(_0x22f10d,_0x26fda5,_0xfc6850,_0x4ea2d0));this[_0x3ff37c(0x240)]=_0x5b6afb,this[_0x3ff37c(0x2d7)]=_0x4cabc3;}[_0x2686e3(0x228)](){const _0x2d208e=_0x2686e3;this[_0x2d208e(0x1a7)]();const {scene:_0xbaa6ba,mainComponent:_0x2ae7b9}=this[_0x2d208e(0x2a1)],_0x1d2a35=this[_0x2d208e(0x1b6)][_0x2d208e(0x2cf)](),_0x31409b=this[_0x2d208e(0x2d7)][_0x2d208e(0x156)](_0xae55f=>new qe(_0xae55f,_0xbaa6ba,_0x1d2a35,_0x2ae7b9));this['_cursorShapes']=_0x31409b;}[_0x2686e3(0x1a7)](){const _0x31aea7=_0x2686e3;this[_0x31aea7(0x240)][_0x31aea7(0x164)](_0x1a6b0e=>_0x1a6b0e[_0x31aea7(0x340)]()),this[_0x31aea7(0x240)]=[];}[_0x2686e3(0x2d4)](){const _0x5eebcb=_0x2686e3,_0xa5e3ff=[_0x285cb0['id']];this[_0x5eebcb(0x2a4)](this[_0x5eebcb(0x193)][_0x5eebcb(0x2ec)](_0x46af36=>{const _0x28165d=_0x5eebcb;_0xa5e3ff[_0x28165d(0x206)](_0x46af36['id'])&&_0x46af36[_0x28165d(0x224)][_0x28165d(0x2fa)]===this[_0x28165d(0x2a1)][_0x28165d(0x2fa)]&&this['_refreshCollabCursors']();}));}[_0x2686e3(0x165)](){const _0x224951=_0x2686e3;this['disposeWithMe'](_0x8ac6d(this[_0x224951(0x2a1)][_0x224951(0x293)][_0x224951(0x1ca)])[_0x224951(0x151)](_0x58fae0(_0x7b4da=>_0x7b4da[_0x224951(0x13c)]===_0x551789['resize']),_0x1fa051(0x10))[_0x224951(0x200)](()=>{const _0x226881=_0x224951;this[_0x226881(0x228)]();}));}};Le=Mi([Z(0x1,_0x437cbf(_0x1f44ba)),Z(0x2,_0x437cbf(H)),Z(0x3,_0x3fdfe9),Z(0x4,_0x437cbf(_0x420883))],Le);const Li=0x1,Pi=1.5;class wi extends _0x510fce{constructor(_0x5d27e7,_0x31bec6){const _0x912ce8=_0x2686e3;super(_0x5d27e7,_0x31bec6),_(this,_0x912ce8(0x139)),_(this,_0x912ce8(0x32d),!0x1),_(this,'_range'),_(this,_0x912ce8(0x219),''),_(this,'_labelPosition',_0x912ce8(0x235)),_(this,_0x912ce8(0x2ed)),(_0x31bec6&&this[_0x912ce8(0x322)](_0x31bec6),this[_0x912ce8(0x20b)][_0x912ce8(0x189)](()=>this[_0x912ce8(0x322)]({'hovered':!0x0})),this[_0x912ce8(0x297)][_0x912ce8(0x189)](()=>this[_0x912ce8(0x322)]({'hovered':!0x1})));}[_0x2686e3(0x322)](_0x5b4967){const _0x833c1e=_0x2686e3;var _0x3e5beb,_0xf02c4b,_0x1e94aa,_0x3cba69,_0x3c8966,_0x3e6c3a;this['_color']=(_0x3e5beb=_0x5b4967[_0x833c1e(0x265)])!=null?_0x3e5beb:this[_0x833c1e(0x139)],this[_0x833c1e(0x32d)]=(_0xf02c4b=_0x5b4967[_0x833c1e(0x2bd)])!=null?_0xf02c4b:this[_0x833c1e(0x32d)],this[_0x833c1e(0x143)]=(_0x1e94aa=_0x5b4967['range'])!=null?_0x1e94aa:this[_0x833c1e(0x143)],this[_0x833c1e(0x219)]=(_0x3cba69=_0x5b4967['name'])!=null?_0x3cba69:this[_0x833c1e(0x219)],this['_labelPosition']=(_0x3c8966=_0x5b4967['labelPosition'])!=null?_0x3c8966:this[_0x833c1e(0x1a2)],this[_0x833c1e(0x2ed)]=(_0x3e6c3a=_0x5b4967['backgroundColor'])!=null?_0x3e6c3a:this['_backgroundColor'],this[_0x833c1e(0x1d0)]({'width':_0x5b4967[_0x833c1e(0x2cc)],'height':_0x5b4967[_0x833c1e(0x2b7)]});}[_0x2686e3(0x2f5)](_0x2f016c){const _0x4350dd=_0x2686e3,{row:_0x1482d7,column:_0x3b2e7a}=_0x2f016c;if(_0x1482d7>=this[_0x4350dd(0x143)][_0x4350dd(0x19c)]&&_0x1482d7<=this[_0x4350dd(0x143)]['endRow']&&_0x3b2e7a>=this[_0x4350dd(0x143)][_0x4350dd(0x15f)]&&_0x3b2e7a<=this[_0x4350dd(0x143)][_0x4350dd(0x234)]){this[_0x4350dd(0x322)]({'hovered':!0x0});return;}this[_0x4350dd(0x322)]({'hovered':!0x1});}[_0x2686e3(0x1f2)](_0x2f7cc0){return!0x1;}[_0x2686e3(0x225)](_0x41b2bf){const _0x3043d7=_0x2686e3;_0x416255[_0x3043d7(0x2e6)](_0x41b2bf,{'width':this[_0x3043d7(0x2cc)],'height':this['height'],'strokeWidth':Pi,'stroke':this[_0x3043d7(0x139)],'evented':!0x1,'fill':this[_0x3043d7(0x2ed)]}),this[_0x3043d7(0x32d)]&&(_0x41b2bf[_0x3043d7(0x1a1)](),_0x41b2bf[_0x3043d7(0x30b)](0x1,0x0,0x0,0x1,this[_0x3043d7(0x2cc)],this[_0x3043d7(0x1a2)]==='bottom'?0x0:-0x14),he['drawWith'](_0x41b2bf,{'text':this[_0x3043d7(0x219)],'color':this[_0x3043d7(0x139)]}),_0x41b2bf[_0x3043d7(0x309)]());}}var Ai=Object[_0x2686e3(0x29c)],yi=(_0x4d37ec,_0x1ef809,_0x3d4bb9,_0xc3bcc0)=>{const _0x2e65fb=_0x2686e3;for(var _0x229523=_0xc3bcc0>0x1?void 0x0:_0xc3bcc0?Ai(_0x1ef809,_0x3d4bb9):_0x1ef809,_0x6e913b=_0x4d37ec[_0x2e65fb(0x29f)]-0x1,_0x35f9b7;_0x6e913b>=0x0;_0x6e913b--)(_0x35f9b7=_0x4d37ec[_0x6e913b])&&(_0x229523=_0x35f9b7(_0x229523)||_0x229523);return _0x229523;},ve=(_0x310f61,_0x5d2fdd)=>(_0x649819,_0x582d64)=>_0x5d2fdd(_0x649819,_0x582d64,_0x310f61);const $i=0x1389;let Pe=class extends _0x1f7e53{constructor(_0x50a567,_0x4a7554,_0x3c8c1b,_0x571505){const _0x492458=_0x2686e3;super(),_(this,_0x492458(0x2d7),new Set()),_(this,_0x492458(0x226),null),(this[_0x492458(0x2a1)]=_0x50a567,this[_0x492458(0x1bf)]=_0x4a7554,this[_0x492458(0x311)]=_0x3c8c1b,this[_0x492458(0x1ac)]=_0x571505,this['_init']());}[_0x2686e3(0x2de)](){const _0x48b300=_0x2686e3;this['_sheetSkeletonManagerService'][_0x48b300(0x175)]['pipe'](_0x201037(this[_0x48b300(0x241)]),_0x129b18(_0x1ed078=>{const _0x5162c4=_0x48b300;if(_0x1ed078){const _0x45f9a7=_0x1ed078['sheetId'];return _0x49c74b(this[_0x5162c4(0x311)][_0x5162c4(0x1b7)](this[_0x5162c4(0x2a1)][_0x5162c4(0x2fa)]),this[_0x5162c4(0x1ac)][_0x5162c4(0x331)])[_0x5162c4(0x151)](_0x3fe3dd(([_0x4e0c03,_0x42e5fd])=>{const _0x4360ab=_0x5162c4,_0x2e5f14=new Map();return _0x4e0c03[_0x4360ab(0x164)]((_0xd6c6c3,_0x2e71d3)=>{const _0x2b67f1=_0x4360ab;if(_0xd6c6c3[_0x2b67f1(0x23a)]===_0x45f9a7){const _0x49a34f={..._0xd6c6c3};_0x49a34f[_0x2b67f1(0x265)]=this[_0x2b67f1(0x1ac)]['getColorFromTheme'](_0xd6c6c3[_0x2b67f1(0x265)]),_0x2e5f14[_0x2b67f1(0x155)](_0x2e71d3,_0x49a34f);}}),{'skeleton':_0x1ed078,'cursors':_0x2e5f14};}));}return _0x555402({'skeleton':null,'cursors':new Map()});}))[_0x48b300(0x200)](({skeleton:_0x4c9f11,cursors:_0xaefd83})=>{this['_removeCollabCursors'](),_0x4c9f11&&this['_updateCollabCursors'](_0x4c9f11,_0xaefd83);}),this[_0x48b300(0x1bf)][_0x48b300(0x175)]['subscribe'](_0x4f6250=>{const _0x3730ae=_0x48b300;if(_0x4f6250==null)return;const {skeleton:_0x3a0f63}=_0x4f6250,{scene:_0x2c5526}=this['_context'];_0x2c5526['onPointerMove$'][_0x3730ae(0x189)](_0x12f08e(_0x262a92=>{const _0x1578e0=_0x3730ae;var _0x222a18,_0x14ea82;const {offsetX:_0x1f90ba,offsetY:_0x1e5691}=_0x262a92,{x:_0xc5f9cf,y:_0x5e431f}=_0x2c5526[_0x1578e0(0x23d)](_0x320791[_0x1578e0(0x1d8)]([_0x1f90ba,_0x1e5691])),{scaleX:_0x1cb564,scaleY:_0x1057d8}=_0x2c5526[_0x1578e0(0x1e6)](),_0xb46dc1=_0x2c5526['getViewport'](_0x2db305[_0x1578e0(0x27b)]),_0x367253=_0x2c5526[_0x1578e0(0x2e7)](_0x320791[_0x1578e0(0x1d8)]([_0xc5f9cf,_0x5e431f]),_0xb46dc1),_0x5b6ab5=_0x3a0f63[_0x1578e0(0x1ed)](_0x1f90ba,_0x1e5691,_0x1cb564,_0x1057d8,_0x367253);((_0x222a18=this[_0x1578e0(0x226)])==null?void 0x0:_0x222a18[_0x1578e0(0x18f)])===_0x5b6ab5[_0x1578e0(0x18f)]&&((_0x14ea82=this[_0x1578e0(0x226)])==null?void 0x0:_0x14ea82[_0x1578e0(0x259)])===_0x5b6ab5[_0x1578e0(0x259)]||this['_cursors'][_0x1578e0(0x164)](_0x2608f8=>{const _0x4d1e95=_0x1578e0;_0x2608f8[_0x4d1e95(0x2f5)](_0x5b6ab5);});},0x64));});}[_0x2686e3(0x2bc)](_0xf539e8,_0x23e463){const _0x565780=_0x2686e3;var _0x29b1b9;const _0x395b4f=(_0x29b1b9=this[_0x565780(0x1bf)][_0x565780(0x1e4)]())==null?void 0x0:_0x29b1b9[_0x565780(0x26c)];if(!_0x395b4f)return;const _0x23fffa=this[_0x565780(0x199)]();if(!_0x23fffa)return;this[_0x565780(0x2d7)][_0x565780(0x164)](_0x3cb8ed=>{const _0x5f0eef=_0x565780;_0x3cb8ed[_0x5f0eef(0x17a)]();});const {scene:_0x20cd0e}=_0x23fffa,_0x44238f=xi(Array[_0x565780(0x198)](_0x23e463['values']()))['map'](_0x3d05e1=>{const _0x2ffe4b=_0x565780,{color:_0x9a40c8,range:_0x417a3d,name:_0xfa582,selection:_0x80a871,sheetID:_0x340132}=_0x3d05e1,{startColumn:_0x2059a3,startRow:_0x3c9801,endColumn:_0x597641,endRow:_0xa8c51}=_0x417a3d,_0x2ae671=_0x67f0b9(_0x3c9801,_0x2059a3,_0x20cd0e,_0x395b4f),_0x80e70a=_0x67f0b9(_0xa8c51,_0x597641,_0x20cd0e,_0x395b4f),{columnHeaderHeightAndMarginTop:_0x15aa32}=_0x395b4f,{startX:_0x1a95b1,startY:_0xc79f6c}=_0x2ae671,{endX:_0x108b5f,endY:_0x50aae3}=_0x80e70a,_0x23efd9=_0x108b5f-_0x1a95b1,_0x31daa6=_0x50aae3-_0xc79f6c,_0x3aee52={'labelPosition':_0xc79f6c-_0x15aa32>=ee?_0x2ffe4b(0x235):_0x2ffe4b(0x273),'sheetID':_0x340132,'range':_0x417a3d,'color':_0x9a40c8,'name':_0xfa582,'selection':_0x80a871,'left':_0x1a95b1,'top':_0xc79f6c,'width':_0x23efd9,'height':_0x31daa6,'evented':!0x1,'zIndex':$i};return new wi(_0xfa582,_0x3aee52);});_0x20cd0e[_0x565780(0x30d)](_0x44238f,Li),this['_cursors']=new Set(_0x44238f);}[_0x2686e3(0x1a7)](){const _0x369d87=_0x2686e3;var _0x1664fa;(_0x1664fa=this['_cursors'])==null||_0x1664fa[_0x369d87(0x164)](_0x6911f1=>_0x6911f1[_0x369d87(0x340)]());}[_0x2686e3(0x199)](){const _0x4b1930=_0x2686e3;return _0x33b75f(this['_context'][_0x4b1930(0x2e1)],this['_context']);}};Pe=yi([ve(0x1,_0x437cbf(_0x18ecc2)),ve(0x2,_0x437cbf(H)),ve(0x3,_0x437cbf(_0x420883))],Pe);function xi(_0x10a34f){const _0x19bcae=_0x2686e3,_0x21e425=new Map();return _0x10a34f[_0x19bcae(0x164)](_0x39747b=>{const _0x58dcb5=_0x19bcae;if(_0x21e425[_0x58dcb5(0x33d)](_0x39747b[_0x58dcb5(0x21a)])){const _0x105611=_0x21e425['get'](_0x39747b[_0x58dcb5(0x21a)]);_0x105611[_0x58dcb5(0x272)]+=',\x20'+_0x39747b[_0x58dcb5(0x272)];}else _0x21e425[_0x58dcb5(0x155)](_0x39747b[_0x58dcb5(0x21a)],_0x39747b);}),Array[_0x19bcae(0x198)](_0x21e425[_0x19bcae(0x20c)]());}var v=function(){const _0x1dd601=_0x2686e3;return v=Object[_0x1dd601(0x211)]||function(_0x22b2da){const _0x198953=_0x1dd601;for(var _0x1c6250,_0x1a5a24=0x1,_0x4665e9=arguments[_0x198953(0x29f)];_0x1a5a24<_0x4665e9;_0x1a5a24++){_0x1c6250=arguments[_0x1a5a24];for(var _0x4fb46e in _0x1c6250)Object['prototype'][_0x198953(0x1f1)][_0x198953(0x256)](_0x1c6250,_0x4fb46e)&&(_0x22b2da[_0x4fb46e]=_0x1c6250[_0x4fb46e]);}return _0x22b2da;},v['apply'](this,arguments);},Bi=function(_0x40f3f5,_0x5c0b01){const _0x1049df=_0x2686e3;var _0x5ac6ac={};for(var _0x2bc255 in _0x40f3f5)Object[_0x1049df(0x145)][_0x1049df(0x1f1)][_0x1049df(0x256)](_0x40f3f5,_0x2bc255)&&_0x5c0b01[_0x1049df(0x304)](_0x2bc255)<0x0&&(_0x5ac6ac[_0x2bc255]=_0x40f3f5[_0x2bc255]);if(_0x40f3f5!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x4c883b=0x0,_0x2bc255=Object[_0x1049df(0x2fd)](_0x40f3f5);_0x4c883b<_0x2bc255[_0x1049df(0x29f)];_0x4c883b++)_0x5c0b01['indexOf'](_0x2bc255[_0x4c883b])<0x0&&Object[_0x1049df(0x145)][_0x1049df(0x2c8)][_0x1049df(0x256)](_0x40f3f5,_0x2bc255[_0x4c883b])&&(_0x5ac6ac[_0x2bc255[_0x4c883b]]=_0x40f3f5[_0x2bc255[_0x4c883b]]);}return _0x5ac6ac;},Fe=_0x311cc4(function(_0x58ba9d,_0x2b5ebc){const _0x40336f=_0x2686e3;var _0x43188f=_0x58ba9d['icon'],_0x160651=_0x58ba9d['id'],_0x145f5d=_0x58ba9d['className'],_0x50c4c7=_0x58ba9d[_0x40336f(0x160)],_0x46e428=Bi(_0x58ba9d,[_0x40336f(0x14d),'id',_0x40336f(0x16f),_0x40336f(0x160)]),_0x46282a=_0x40336f(0x1c7)[_0x40336f(0x1c8)](_0x160651,'\x20')[_0x40336f(0x1c8)](_0x145f5d||'')[_0x40336f(0x27f)](),_0x505611=_0x554768('_'['concat'](Fi()));return Rt(_0x43188f,''[_0x40336f(0x1c8)](_0x160651),{'defIds':_0x43188f[_0x40336f(0x33b)],'idSuffix':_0x505611[_0x40336f(0x2d1)]},v({'ref':_0x2b5ebc,'className':_0x46282a},_0x46e428),_0x50c4c7);});function Rt(_0x114660,_0x31a9a7,_0x493184,_0x1f8952,_0x527ec8){const _0x317ef4=_0x2686e3;return _0x433ecf(_0x114660['tag'],v(v({'key':_0x31a9a7},ki(_0x114660,_0x493184,_0x527ec8)),_0x1f8952),(Hi(_0x114660,_0x493184)[_0x317ef4(0x212)]||[])['map'](function(_0x19f5fe,_0x1339b4){const _0x5a3973=_0x317ef4;return Rt(_0x19f5fe,''[_0x5a3973(0x1c8)](_0x31a9a7,'-')[_0x5a3973(0x1c8)](_0x114660[_0x5a3973(0x27c)],'-')['concat'](_0x1339b4),_0x493184,void 0x0,_0x527ec8);}));}function ki(_0x588075,_0x424eae,_0x459520){const _0x2fb903=_0x2686e3;var _0xff9fc7=v({},_0x588075[_0x2fb903(0x2b2)]);_0x459520!=null&&_0x459520[_0x2fb903(0x24a)]&&_0xff9fc7[_0x2fb903(0x315)]===_0x2fb903(0x24a)&&(_0xff9fc7['fill']=_0x459520[_0x2fb903(0x24a)]),_0x588075[_0x2fb903(0x27c)]==='mask'&&_0xff9fc7['id']&&(_0xff9fc7['id']=_0xff9fc7['id']+_0x424eae[_0x2fb903(0x27e)]),Object['entries'](_0xff9fc7)['forEach'](function(_0x3cae51){const _0x408b01=_0x2fb903;var _0x2aa782=_0x3cae51[0x0],_0x5c211a=_0x3cae51[0x1];_0x2aa782===_0x408b01(0x287)&&typeof _0x5c211a==_0x408b01(0x30f)&&(_0xff9fc7[_0x2aa782]=_0x5c211a[_0x408b01(0x321)](/url\(#(.*)\)/,'url(#$1'[_0x408b01(0x1c8)](_0x424eae['idSuffix'],')')));});var _0x4ac918=_0x424eae[_0x2fb903(0x33b)];return!_0x4ac918||_0x4ac918[_0x2fb903(0x29f)]===0x0||(_0x588075[_0x2fb903(0x27c)]===_0x2fb903(0x336)&&_0xff9fc7['xlink:href']&&(_0xff9fc7[_0x2fb903(0x21d)]=_0xff9fc7[_0x2fb903(0x21d)]+_0x424eae[_0x2fb903(0x27e)]),Object[_0x2fb903(0x1c3)](_0xff9fc7)[_0x2fb903(0x164)](function(_0xa68c36){const _0x166071=_0x2fb903;var _0x1d508b=_0xa68c36[0x0],_0x38a881=_0xa68c36[0x1];typeof _0x38a881==_0x166071(0x30f)&&(_0xff9fc7[_0x1d508b]=_0x38a881[_0x166071(0x321)](/url\(#(.*)\)/,'url(#$1'[_0x166071(0x1c8)](_0x424eae[_0x166071(0x27e)],')')));})),_0xff9fc7;}function Hi(_0x4c9d2d,_0x66ed82){const _0xbc98ae=_0x2686e3;var _0x7963e8,_0x8112b0=_0x66ed82[_0xbc98ae(0x33b)];return!_0x8112b0||_0x8112b0[_0xbc98ae(0x29f)]===0x0?_0x4c9d2d:_0x4c9d2d['tag']===_0xbc98ae(0x180)&&(!((_0x7963e8=_0x4c9d2d['children'])===null||_0x7963e8===void 0x0)&&_0x7963e8[_0xbc98ae(0x29f)])?v(v({},_0x4c9d2d),{'children':_0x4c9d2d[_0xbc98ae(0x212)][_0xbc98ae(0x156)](function(_0x540c05){const _0x4e3b92=_0xbc98ae;return typeof _0x540c05[_0x4e3b92(0x2b2)]['id']=='string'&&_0x8112b0&&_0x8112b0[_0x4e3b92(0x206)](_0x540c05[_0x4e3b92(0x2b2)]['id'])?v(v({},_0x540c05),{'attrs':v(v({},_0x540c05[_0x4e3b92(0x2b2)]),{'id':_0x540c05[_0x4e3b92(0x2b2)]['id']+_0x66ed82['idSuffix']})}):_0x540c05;})}):_0x4c9d2d;}function Fi(){const _0x115a98=_0x2686e3;return Math['random']()['toString'](0x24)[_0x115a98(0x267)](0x2,0x8);}function _0x21db(_0xccee96,_0x15ee31){const _0x298fc3=_0x298f();return _0x21db=function(_0x21db19,_0x2ff9f6){_0x21db19=_0x21db19-0x132;let _0x221fbb=_0x298fc3[_0x21db19];return _0x221fbb;},_0x21db(_0xccee96,_0x15ee31);}Fe[_0x2686e3(0x181)]=_0x2686e3(0x2fb);var Yi={'tag':_0x2686e3(0x2a3),'attrs':{'xmlns':_0x2686e3(0x251),'fill':_0x2686e3(0x220),'viewBox':_0x2686e3(0x33f),'width':_0x2686e3(0x2d9),'height':_0x2686e3(0x2d9)},'children':[{'tag':'g','attrs':{'clipPath':_0x2686e3(0x195)},'children':[{'tag':_0x2686e3(0x1ec),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':'round','strokeLinejoin':_0x2686e3(0x22d),'strokeWidth':1.2}}]},{'tag':_0x2686e3(0x180),'attrs':{},'children':[{'tag':_0x2686e3(0x2cb),'attrs':{'id':_0x2686e3(0x25e)},'children':[{'tag':_0x2686e3(0x1ec),'attrs':{'fill':_0x2686e3(0x2db),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2686e3(0x25e)]},Dt=_0x311cc4(function(_0x13e05e,_0x2f8b64){const _0x402453=_0x2686e3;return _0x433ecf(Fe,Object[_0x402453(0x211)]({},_0x13e05e,{'id':_0x402453(0x17c),'ref':_0x2f8b64,'icon':Yi}));});Dt[_0x2686e3(0x181)]=_0x2686e3(0x274);var ji={'tag':_0x2686e3(0x2a3),'attrs':{'xmlns':_0x2686e3(0x251),'fill':_0x2686e3(0x220),'viewBox':_0x2686e3(0x32e),'width':_0x2686e3(0x2d9),'height':_0x2686e3(0x2d9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2686e3(0x1ec),'attrs':{'stroke':_0x2686e3(0x28d),'d':_0x2686e3(0x1b9),'strokeLinecap':'round','strokeLinejoin':_0x2686e3(0x22d),'strokeWidth':1.2}}]},{'tag':_0x2686e3(0x180),'attrs':{},'children':[{'tag':_0x2686e3(0x2cb),'attrs':{'id':_0x2686e3(0x187)},'children':[{'tag':_0x2686e3(0x1ec),'attrs':{'fill':'white','d':_0x2686e3(0x1da),'transform':_0x2686e3(0x1fa)}}]}]}],'defIds':[_0x2686e3(0x187)]},Nt=_0x311cc4(function(_0x157f3b,_0x22a56c){const _0x48c923=_0x2686e3;return _0x433ecf(Fe,Object[_0x48c923(0x211)]({},_0x157f3b,{'id':'on-line-icon','ref':_0x22a56c,'icon':ji}));});Nt[_0x2686e3(0x181)]=_0x2686e3(0x253);function Vi(_0x55a070){const _0x5e2b66=_0x2686e3;switch(_0x55a070){case _0x14a13b[_0x5e2b66(0x276)]:return _0x5e2b66(0x2ae);case _0x14a13b[_0x5e2b66(0x183)]:return'collabStatus.conflict';case _0x14a13b[_0x5e2b66(0x25a)]:return'collabStatus.fetchMiss';case _0x14a13b[_0x5e2b66(0x222)]:return'collabStatus.notCollab';case _0x14a13b[_0x5e2b66(0x33a)]:case _0x14a13b['AWAITING_WITH_PENDING']:return _0x5e2b66(0x14c);case _0x14a13b['SYNCED']:case _0x14a13b['PENDING']:return _0x5e2b66(0x205);}}function Wi(_0x35dd22){const _0x1aa623=_0x2686e3,{status$:_0x447a2b}=_0x35dd22,_0x21b6e0=_0x44e717(_0x447a2b,_0x14a13b['NOT_COLLAB']),_0x14c684=_0x5e0b55(_0x514309),_0x5a1bb8=_0x5e0b55(_0x593aab),_0x11cc52=_0x21b6e0!==_0x14a13b[_0x1aa623(0x276)],_0x159191=_0x14c684['t'](Vi(_0x21b6e0)),_0x6d54c9=_0x11cc52?_0x5e7e28(Nt,{}):_0x5e7e28(Dt,{}),_0x56bcd4=_0x1db297(()=>{const _0xe451=_0x1aa623;_0x11cc52||_0x5a1bb8[_0xe451(0x2b6)]();},[_0x11cc52,_0x5a1bb8]);function _0x3fc42f(){const _0x8699ea=_0x1aa623;return _0x45c588(_0x8699ea(0x214),{'className':_0x8699ea(0x204),'onClick':_0x56bcd4,'children':[_0x5e7e28(_0x8699ea(0x214),{'className':_0x4d7fd2('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x11cc52,'univer-text-red-500':!_0x11cc52}),'children':_0x6d54c9}),_0x5e7e28(_0x8699ea(0x214),{'className':_0x8699ea(0x19b),'children':_0x159191})]});}return _0x11cc52?_0x3fc42f():_0x5e7e28(_0x37a28f,{'title':_0x14c684['t'](_0x1aa623(0x136)),'children':_0x3fc42f()});}var Xi=Object[_0x2686e3(0x29c)],Gi=(_0xf4828e,_0x17bb5f,_0x2883ca,_0x31edad)=>{const _0x3ca014=_0x2686e3;for(var _0x583899=_0x31edad>0x1?void 0x0:_0x31edad?Xi(_0x17bb5f,_0x2883ca):_0x17bb5f,_0x407cd7=_0xf4828e[_0x3ca014(0x29f)]-0x1,_0x2990b4;_0x407cd7>=0x0;_0x407cd7--)(_0x2990b4=_0xf4828e[_0x407cd7])&&(_0x583899=_0x2990b4(_0x583899)||_0x583899);return _0x583899;},Q=(_0x3d816c,_0x562be0)=>(_0x328b4c,_0x5ec6ff)=>_0x562be0(_0x328b4c,_0x5ec6ff,_0x3d816c);let te=class extends _0x2d320f{constructor(_0x38902c,_0x126220,_0x3dedfd,_0xc5831f){const _0x29c3d9=_0x2686e3;super(),_(this,'_status$',new _0x289e43(_0x14a13b[_0x29c3d9(0x222)])),(this[_0x29c3d9(0x245)]=_0x38902c,this[_0x29c3d9(0x2c3)]=_0x126220,this[_0x29c3d9(0x15a)]=_0x3dedfd,this['_uiPartsService']=_0xc5831f,this[_0x29c3d9(0x137)](),this[_0x29c3d9(0x255)]());}[_0x2686e3(0x255)](){const _0x51fe4f=_0x2686e3;this[_0x51fe4f(0x2a4)](this[_0x51fe4f(0x245)][_0x51fe4f(0x1fb)][_0x51fe4f(0x151)](_0x54586f(()=>{const _0x254518=_0x51fe4f,_0x58a103=this[_0x254518(0x245)][_0x254518(0x2d2)]();return _0x58a103?this[_0x254518(0x15a)][_0x254518(0x337)](_0x58a103[_0x254518(0x1d7)]()):_0x555402(null);}),_0x54586f(_0x2d178c=>_0x2d178c?_0x2d178c[_0x51fe4f(0x1f7)]:_0x555402(_0x14a13b[_0x51fe4f(0x222)])))['subscribe'](_0x24a55f=>{const _0x806122=_0x51fe4f;this['_status$'][_0x806122(0x207)](_0x24a55f);}));}[_0x2686e3(0x137)](){const _0x3c6b10=_0x2686e3;this[_0x3c6b10(0x2a4)](this[_0x3c6b10(0x289)][_0x3c6b10(0x1e9)](_0x4e781c['HEADER_MENU'],()=>_0x4af26b(Ki({'status$':this['_status$'][_0x3c6b10(0x2c2)]()}),this[_0x3c6b10(0x2c3)])));}};te=Gi([Q(0x0,_0x1fee0a),Q(0x1,_0x437cbf(_0x212b2d)),Q(0x2,_0x437cbf(_0xc794c6)),Q(0x3,_0x59c501)],te);function Ki(_0x2818d8){const {status$:_0x115baa}=_0x2818d8;return function(){return _0x5e7e28(Wi,{'status$':_0x115baa});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x245d4a,_0x5861b5,_0x16ecc2,_0x109dcc)=>{const _0x5c7c91=_0x2686e3;for(var _0x2a9ef6=_0x109dcc>0x1?void 0x0:_0x109dcc?zi(_0x5861b5,_0x16ecc2):_0x5861b5,_0x1ae1dc=_0x245d4a[_0x5c7c91(0x29f)]-0x1,_0x38d197;_0x1ae1dc>=0x0;_0x1ae1dc--)(_0x38d197=_0x245d4a[_0x1ae1dc])&&(_0x2a9ef6=_0x38d197(_0x2a9ef6)||_0x2a9ef6);return _0x2a9ef6;},B=(_0x431ec6,_0x481bef)=>(_0x157943,_0xb89c2)=>_0x481bef(_0x157943,_0xb89c2,_0x431ec6);let se=class extends _0x2d320f{constructor(_0x214175,_0x4a47e8,_0x4c70eb,_0xa189df,_0x82d674,_0x2ae47a){const _0x3a762e=_0x2686e3;super(),this[_0x3a762e(0x134)]=_0x214175,this[_0x3a762e(0x2a5)]=_0x4a47e8,this['_collaborationUIEventService']=_0x4c70eb,this[_0x3a762e(0x167)]=_0xa189df,this['_notificationService']=_0x82d674,this['_localeService']=_0x2ae47a,this[_0x3a762e(0x230)](),this[_0x3a762e(0x14b)]();}[_0x2686e3(0x230)](){const _0x453d0b=_0x2686e3;this[_0x453d0b(0x2a4)](this[_0x453d0b(0x134)]['registerBeforeClose'](()=>{const _0xaf4430=_0x453d0b;if(this[_0xaf4430(0x2a5)][_0xaf4430(0x173)]['size'])return this['_localeService']['t'](_0xaf4430(0x29e));}));}['_initEvent'](){const _0x28c224=_0x2686e3;this[_0x28c224(0x2a4)](this[_0x28c224(0x2c0)][_0x28c224(0x1b8)][_0x28c224(0x200)](_0x3c63e1=>{const _0x728240=_0x28c224;_0x3c63e1['id']===_0x1bfe77[_0x728240(0x22f)]&&this[_0x728240(0x167)][_0x728240(0x31a)]({'type':_0x4c6395[_0x728240(0x282)],'content':this[_0x728240(0x168)]['t'](_0x728240(0x157))}),_0x3c63e1['id']===_0x1bfe77['CLOSE_ROOM']&&this[_0x728240(0x167)]['show']({'type':_0x4c6395[_0x728240(0x282)],'content':this[_0x728240(0x168)]['t'](_0x728240(0x2b9))}),_0x3c63e1['id']===_0x1bfe77[_0x728240(0x18c)]&&this[_0x728240(0x23e)][_0x728240(0x31a)]({'title':this[_0x728240(0x168)]['t']('permission.title'),'content':this[_0x728240(0x168)]['t'](_0x728240(0x248)),'type':_0x728240(0x31e),'duration':0x0}),_0x3c63e1['id']===_0x1bfe77[_0x728240(0x183)]&&this['_messageService'][_0x728240(0x31a)]({'type':_0x4c6395[_0x728240(0x1f3)],'content':this[_0x728240(0x168)]['t'](_0x728240(0x2b9))+'('+_0x3c63e1['data']+')'}),_0x3c63e1['id']===_0x1bfe77[_0x728240(0x1df)]&&this[_0x728240(0x167)][_0x728240(0x31a)]({'type':_0x4c6395['Warning'],'content':this[_0x728240(0x168)]['t'](_0x3c63e1['data']||'')}),_0x3c63e1['id']===_0x1bfe77[_0x728240(0x1dd)]&&this[_0x728240(0x167)][_0x728240(0x31a)]({'type':_0x4c6395[_0x728240(0x282)],'content':this['_localeService']['t'](_0x728240(0x284))}),_0x3c63e1['id']===_0x1bfe77[_0x728240(0x1b2)]&&this[_0x728240(0x167)]['show']({'type':_0x4c6395[_0x728240(0x1f3)],'content':this[_0x728240(0x168)]['t'](_0x728240(0x19a))}),_0x3c63e1['id']===_0x1bfe77[_0x728240(0x1cd)]&&this[_0x728240(0x167)][_0x728240(0x31a)]({'type':_0x4c6395[_0x728240(0x1f3)],'content':this[_0x728240(0x168)]['t'](_0x728240(0x229))});}));}};se=Ji([B(0x0,_0x33bd99),B(0x1,_0x52e427),B(0x2,_0x437cbf(_0x445502)),B(0x3,_0x242b2a),B(0x4,_0x16be65),B(0x5,_0x437cbf(_0x514309))],se);const Zi='collaboration-client-ui.config',et={},Ut=_0x235d50(_0x2686e3(0x2e5));var Qi=Object[_0x2686e3(0x29c)],qi=(_0x89edde,_0x256db6,_0x4eb8c2,_0x3b1509)=>{const _0x616912=_0x2686e3;for(var _0x1beacc=_0x3b1509>0x1?void 0x0:_0x3b1509?Qi(_0x256db6,_0x4eb8c2):_0x256db6,_0x317ad1=_0x89edde[_0x616912(0x29f)]-0x1,_0x1622ed;_0x317ad1>=0x0;_0x317ad1--)(_0x1622ed=_0x89edde[_0x317ad1])&&(_0x1beacc=_0x1622ed(_0x1beacc)||_0x1beacc);return _0x1beacc;},G=(_0x1c2c41,_0x3160a7)=>(_0x178277,_0x1189a2)=>_0x3160a7(_0x178277,_0x1189a2,_0x1c2c41);let ie=class extends _0x1f7e53{constructor(_0x39a55c,_0x430aea,_0x25673a,_0x5aa271,_0x42c6ae){const _0x4aeabe=_0x2686e3;super(),this[_0x4aeabe(0x1f5)]=_0x39a55c,this[_0x4aeabe(0x185)]=_0x430aea,this[_0x4aeabe(0x193)]=_0x25673a,this[_0x4aeabe(0x2bf)]=_0x5aa271,_0x42c6ae?_0x42c6ae==null||_0x42c6ae[_0x4aeabe(0x1c5)]()[_0x4aeabe(0x31b)](()=>this[_0x4aeabe(0x2de)]()):(this['_logService'][_0x4aeabe(0x166)](_0x4aeabe(0x1d5),_0x4aeabe(0x27d)),this[_0x4aeabe(0x2de)]());}async['_init'](){const _0x7b6838=_0x2686e3,_0x349e15=this['_urlService'][_0x7b6838(0x24b)](_0x7b6838(0x2e1)),_0x41615e=this[_0x7b6838(0x1f5)]['getParam'](_0x7b6838(0x13c)),_0x3896b5=this[_0x7b6838(0x1f5)][_0x7b6838(0x24b)](_0x7b6838(0x1eb));if(!_0x349e15||!_0x41615e){this[_0x7b6838(0x185)]['debug'](_0x7b6838(0x1d5),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4cfe61=await this['_dataLoaderService']['loadUnit'](_0x349e15,Number(_0x41615e),_0x3896b5);_0x4cfe61&&_0x4cfe61 instanceof _0x191ebc&&this[_0x7b6838(0x233)](_0x4cfe61);}async[_0x2686e3(0x233)](_0x3e6676){const _0x438608=_0x2686e3;await this[_0x438608(0x1b5)](_0x3e6676),_0x3e6676['activeSheet$'][_0x438608(0x151)](_0x130b87(this[_0x438608(0x241)]))['subscribe'](_0x5ba696=>{const _0x5696e5=_0x438608;_0x5ba696&&this[_0x5696e5(0x1a9)](_0x5ba696);}),this[_0x438608(0x1f5)][_0x438608(0x2cd)][_0x438608(0x151)](_0x130b87(this[_0x438608(0x241)]))[_0x438608(0x200)](()=>this[_0x438608(0x1b5)](_0x3e6676));}[_0x2686e3(0x1a9)](_0x30dcdc,_0x436ccc=!0x1){const _0x41e10a=_0x2686e3,_0x54eddb=this[_0x41e10a(0x1f5)][_0x41e10a(0x24b)](_0x41e10a(0x1eb));_0x30dcdc[_0x41e10a(0x244)]()!==_0x54eddb&&this[_0x41e10a(0x1f5)][_0x41e10a(0x1c4)](_0x41e10a(0x1eb),_0x30dcdc[_0x41e10a(0x244)](),_0x436ccc);}async[_0x2686e3(0x1b5)](_0xd5a6a){const _0x378050=_0x2686e3;var _0x2c00ee;const _0x52ecc6=this['_urlService'][_0x378050(0x24b)](_0x378050(0x1eb));if(!_0x52ecc6||!_0xd5a6a[_0x378050(0x246)](_0x52ecc6)){const _0xadc492=_0xd5a6a[_0x378050(0x29a)]()[0x0],_0x416499=_0xd5a6a[_0x378050(0x246)](_0xadc492);if(!_0x416499)return;this[_0x378050(0x1a9)](_0x416499,!0x0),await this['_commandService'][_0x378050(0x2e9)](_0x2ee94c['id'],{'unitId':_0xd5a6a[_0x378050(0x1d7)](),'subUnitId':_0xadc492});return;}((_0x2c00ee=_0xd5a6a[_0x378050(0x2c7)]())==null?void 0x0:_0x2c00ee['getSheetId']())!==_0x52ecc6&&await this[_0x378050(0x193)]['executeCommand'](_0x2ee94c['id'],{'unitId':_0xd5a6a[_0x378050(0x1d7)](),'subUnitId':_0x52ecc6});}};ie=qi([G(0x0,Ut),G(0x1,_0x46abfe),G(0x2,_0x3fdfe9),G(0x3,_0x437cbf(_0x2e52d0)),G(0x4,_0x1b53d6(_0x1536dc))],ie);var en=Object[_0x2686e3(0x29c)],tn=(_0x674db2,_0x9fd40a,_0x656e5c,_0x97f428)=>{for(var _0x25aa71=_0x97f428>0x1?void 0x0:_0x97f428?en(_0x9fd40a,_0x656e5c):_0x9fd40a,_0x2cc8c3=_0x674db2['length']-0x1,_0x72c85e;_0x2cc8c3>=0x0;_0x2cc8c3--)(_0x72c85e=_0x674db2[_0x2cc8c3])&&(_0x25aa71=_0x72c85e(_0x25aa71)||_0x25aa71);return _0x25aa71;},pe=(_0x1705bf,_0x10da5e)=>(_0x5bb39e,_0x5acd5b)=>_0x10da5e(_0x5bb39e,_0x5acd5b,_0x1705bf);function _0x298f(){const _0x352d91=['YUUMI_URL_COL_OUT_OF_RANGE','collab-text-anchor-','assign','children','_colorAssignService','div','TEXT','_onCursorDelete','symbol','YUUMI_AI_RUN_FAILED','_name','selection','APPLY_REJECT','INVALID_INVITE_CODE','xlink:href','addClipboardHook','UPDATE_CURSOR','none','registerRefRange','NOT_COLLAB','_docTransformIMECacheService','params','_draw','_lastPointer','UNDEFINED','_refreshCollabCursors','session.collaboration-timeout','sessionTicket','APPLY_PERMISSION_DENIED','unsubscribe','round','_handleEvent','OTHER_CLIENT_EDITING','_setupBeforeClosingHandler','range','roomMembers$','_setupSubUnitSync','endColumn','top','redoState','cursorInfo','wsSessionTicketUrl','_transformService','sheetID','generateRandomId','href','getRelativeToViewportCoord','_notificationService','MoveRangeCommandId','_cursorShapes','dispose$','_unitStatus','_entityInit$','getSheetId','_univerInstanceService','getSheetBySheetId','purple.300','permission.content','executionId','colorChannel1','getParam','YUUMI_ALL_TABLES_IS_INVALID','_transformHistoryAndStateStack','SNAPSHOT_INVALID_SNAPSHOT','_removeClearOtherTimer','LOGIN_FAILED','http://www.w3.org/2000/svg','MUTATION','OnLineIcon','getOffsetConfig','_initStatusListener','call','CHANGESET_REVISION_CONFILICT','_shapes','row','FETCH_MISS','DeleteRangeMoveUpCommandId','APPLY_DUPLICATED','mutations','off-line-icon_clip0_910_343','entityInit$','_createSocketURL','_collabCursorState$','imageSourceType','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','undoState','color','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','substring','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','UNRECOGNIZED','unitID','_instanceService','skeleton','eventID','saveImage','_hover','onStarting','clearTimeout','name','bottom','OffLineIcon','_id','OFFLINE','delete','size','_updateLocalCursor','isEditing','VIEW_MAIN','tag','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','idSuffix','trim','find','red.300','Warning','_cursorInfo$','session.will-retry','_collabSessionService','collab-text-range-','mask','_startDocCollabCursor','_uiPartsService','hide','_scheduleHeartbeat','findNodePositionByCharIndex','currentColor','OTHER_CLIENTS_EDITING','INVITE_CODE_HAS_BEEN_UES','_docTransformStateCacheService','add','requireSession','engine','source','_disabled','transformIMECache','onPointerLeave$','addEventListener','disableLocalCache','getUnhiddenWorksheets','_drawRectRange','getOwnPropertyDescriptor','InsertColCommandId','collaboration-client.offline-data-not-saved','length','LICENSE_DISTRO_REJECTED','_context','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','svg','disposeWithMe','_localCacheService','YUUMI_UNABLE_LOAD_URL','_refRangeService','_unitOnClients','deepClone','NOT_FOUND','jiqing.500','transformSelections','getColorFromTheme','collabStatus.offline','send','YUUMI_ASYNCIO_CANCELLED','APPLY_REVISION_CONFILICT','attrs','/run/','_handleHover','getValue','reconnect','height','_scheduleSaving','collaboration.closeRoom','_textBubble','collabCursorState$','_updateCollabCursors','hovered','DeleteRangeMoveLeftCommandId','_dataLoaderService','_collaborationUIEventService','INVITE_CODE_ALREADY_BOUND','asObservable','_injector','disposeUnit','LICENSE_EXPORT_SIZE_EXCEEDED','_drawTextRange','getActiveSheet','propertyIsEnumerable','YUUMI_NO_CUBOID_FOR_QUESTION','_assignedColors','clipPath','width','urlChange$','getRangePointData','getSkeleton','max','current','getFocusedUnit','_handleLeaveEvent','_initCommandExecutedListener','beginPath','getDocRanges','_cursors','setAlpha','1em','YUUMI_TABLE_NOT_FOUND_IN_UNIT','white','INVALID_ARGUMENT','memberID','_init','_render','getItem','unit','popstate','_initEntityListener','toString','uni.network.url-service','drawWith','getVpScrollXYInfoByPosToVp','setTimeout','executeCommand','_initDependencies','1267bEMkBn','onCommandExecuted','_backgroundColor','ALREADY_EXISTS','roomMembers','EMAIL_VERIFY_CODE_MISMATCH','_syncEditingCollabCursorService','searchParams','2155590cAFmXP','pushState','onMouseMove','MOBILE_VERIFY_CODE_MISMATCH','CONNECTOR_DATA_TOO_LARGE','some','docStateChange$','unitId','UniverIcon','font','getOwnPropertySymbols','runId','m2Prime','_selfUnitIDs','getUndoRedoMutationParamsCache','_registerDependencies','_scheduleClearOtherTimer','indexOf','RemoveRowCommandId','...','YUUMI_RATE_OVER_LIMIT','MOBILE_HAS_BEEN_BOUND','restore','_send','transform','_anchor','addObjects','measureText','string','result','_collabCursorController','_getScale','INVITE_CODE_REQUIRED','getCurrentUnitForType','fill','1658289pMstmX','removeParam','_transformUndoRedoStack','EMAIL_HAS_BEEN_BOUND','show','then','data','_localStorageService','error','APPLY_NON_SEQUENTIAL_REVISION','registerRenderModule','replace','setShapeProps','_configService','stringify','UNAUTHENTICATED','_getSessionTicket','replaceState','USERS_LEAVE','history','_docSkeleton','closePath','getMember','_hovered','0\x200\x2017\x2016','13914xlnCVn','cursorInfo$','currentTheme$','#FFF','_handleHeartbeatEvent','15441291VTtbgk','defineProperty','use','getCollabEntity$','_scene','body','AWAITING','defIds','RECT','has','InsertRowCommandId','0\x200\x2016\x2016','dispose','getMemberID','m1Prime','key','_beforeCloseService','toRgbString','collab-client.tooltip.reconnect','_initStatusComponent','_registerRenderDependencies','_color','_docTransformSelectionsService','PY_RUNTIME_SCRIPT_ERROR','type','getUniverSheetInstance','newValue','transformStateCache','moveTo','_onCursorUpdate','YUUMI_CONNECTOR_URL_NOT_FOUND','_range','green.600','prototype','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_online','editingUnit','1484916riVrlP','_imageIoService','_initEvent','collabStatus.syncing','icon','10blVqcX','arc','isArray','pipe','_roomMembers$','USER_NOT_INVITED_CODE','Failed','set','map','collaboration.single-unit.warning','blue.400','complete','_collaborationController','sessionStatus$','getTypeOfUnitAdded$','textRanges','_cachedData','startColumn','extend','loadOfflineData','storage','WECHAT_HAS_BEEN_BOUND','forEach','_initResize','debug','_messageService','_localeService','_memberService','_revisionService','code','unshift','ranges','invokeId','className','_drawAnchor','LICENSE_MAX_UNITS_EXCEEDED','_docStateChangeManagerService','saveTaskMap','_clearOtherTimers','currentSkeleton$','_startSheetCollabCursor','_getAnchorBounding','getUnitStatus$','addHandlerCallback','makeDirty','getActiveRange','off-line-icon','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','INTERNAL_ERROR','text','defs','displayName','replaceDocRanges','CONFLICT','_hideTimer','_logService','createInstance','on-line-icon_clip0_910_349','_docClipboardService','subscribeEvent','Unknown\x20user','_eventUnsubscribe','PERMISSION_DENIED','_httpService','ONLINE','column','_renderManagerService','_toggleOnline','getRenderById','_commandService','_cursor','url(#off-line-icon_clip0_910_343)','_getSaveTimeout','_handleJoinEvent','from','_getSheetObject','session.connection-failed','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','startRow','fillRule','transformMutationsWithChangeset','fillText','YUUMI_SUBSCRIPTION_NOT_FOUND','save','_labelPosition','getConfig','transformMutation','assignAColorForMemberID','with','_removeCollabCursors','_heartbeatTimer','_updateURLWithCurrentState','UNIVER_SHEET','SNAPSHOT_HAS_BEEN_REMOVED','_themeService','get','origin','selections','rgba(255,\x20255,\x20255,\x200.01)','doc.mutation.rich-text-editing','SOCKET_FAILED','init','_document','_updateSubUnitFromURLParams','_docSkeletonManagerService','getCollabCursors$','event$','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','_anchorDot','UNIVER_DOC','_ensureSubject','6201936ScwqSp','COMPLETION_FINISHED','_sheetSkeletonManagerService','getCurrentRevOfUnit','_session','NO_OTHER_CLIENTS_EDITING','entries','setParam','whenReady','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','concat','split','onTransformChange$','addObject','ENSURE_SNAPSHOT_EXECUTION','SUBMIT_CHANGESET_TIMEOUT','fillStyle','enableLocalCache','transformByState','override','_transformPreviousActiveRange','_onRefRangeChange','transformRemoteChangeset','[CollaborationDataLoaderController]','getTypeOfUnitDisposed$','getUnitId','FromArray','actions','M0\x200H16V16H0z','setItem','clearInterval','SOCKET_FAILED_RETRY','_saveTaskMap','JOIN_ROOM_FAILED','runOnServer','_saveCache','unload','saveOfflineData','getCurrent','location','getAncestorScale','_getMergeRange','setUndoRedoMutationParamsCache','registerComponent','setStateCache','subunit','path','getCellPositionByOffset','_entities','all','ACTIVE_UNIT_EVENT_CHANNEL','hasOwnProperty','triggerDblclick','Error','188225ydNPjF','_urlService','lineTo','status$','setInterval','_toggleOffline','translate(.97)','focused$','_colorIndex','_config','getStateCache','_docSyncEditingCollabCursorService','subscribe','LICENSE_IMPORT_SIZE_EXCEEDED','onLocalMutation','evenodd','univer-flex\x20univer-items-center','collabStatus.synced','includes','next','min','push','black','onPointerEnter$','values','flatMap','exhaustSavingTask'];_0x298f=function(){return _0x352d91;};return _0x298f();}let ne=class{constructor(_0x24531f,_0x121953,_0x47012b){const _0x1d59cd=_0x2686e3;this[_0x1d59cd(0x2c3)]=_0x24531f,this[_0x1d59cd(0x239)]=_0x121953,this[_0x1d59cd(0x190)]=_0x47012b;}[_0x2686e3(0x296)](_0x4bf2f8){const _0x341e5e=_0x2686e3;this['_transformUndoRedoStack'](_0x4bf2f8),this[_0x341e5e(0x1d2)](_0x4bf2f8);}[_0x2686e3(0x1d4)](_0x10fef0){const _0x11ef8e=_0x2686e3,{unitID:_0x1d16f4}=_0x10fef0,_0x508947=this[_0x11ef8e(0x190)][_0x11ef8e(0x192)](_0x1d16f4)['with'](_0x582f51),{redoCache:_0x207559}=_0x508947['getUndoRedoMutationParamsCache']();if(_0x207559[_0x11ef8e(0x29f)]===0x0)return _0x10fef0;let _0x5644f3=_0x457e3f[_0x11ef8e(0x2a9)](_0x10fef0[_0x11ef8e(0x25d)][0x0]);for(let _0x218980=0x0;_0x218980<_0x207559[_0x11ef8e(0x29f)];_0x218980++){const _0x24f2ec={'id':_0x11ef8e(0x1b1),'params':{..._0x207559[_0x218980]}},_0x470ea8=this['_transformService'][_0x11ef8e(0x1a4)](_0x5644f3,_0x24f2ec,!0x1);if(_0x12f16e(_0x470ea8))throw _0x470ea8[_0x11ef8e(0x31e)];_0x5644f3=_0x470ea8[_0x11ef8e(0x132)];}return{..._0x457e3f[_0x11ef8e(0x2a9)](_0x10fef0),'mutations':[_0x5644f3]};}[_0x2686e3(0x318)](_0x2602cb){const _0x717311=_0x2686e3,{unitID:_0x3123a3}=_0x2602cb,_0x1d1857=this[_0x717311(0x190)][_0x717311(0x192)](_0x3123a3)[_0x717311(0x1a6)](_0x582f51),{undoCache:_0x50362d,redoCache:_0x30743f}=_0x1d1857[_0x717311(0x301)]();if(_0x50362d['length']===0x0||_0x30743f['length']===0x0)return;const _0x130d83=[],_0x590385=[];let _0x38ea4d=_0x457e3f[_0x717311(0x2a9)](_0x2602cb[_0x717311(0x25d)][0x0]),_0x270a07=_0x457e3f[_0x717311(0x2a9)](_0x2602cb['mutations'][0x0]);for(let _0x652446=_0x50362d[_0x717311(0x29f)]-0x1;_0x652446>=0x0;_0x652446--){const _0x1e3592={'id':'doc.mutation.rich-text-editing','params':{..._0x50362d[_0x652446]}},_0x101242={'id':_0x717311(0x1b1),'params':{..._0x30743f[_0x652446]}},_0x40559b=this[_0x717311(0x239)][_0x717311(0x1a4)](_0x38ea4d,_0x1e3592,!0x1),_0x35e754=this[_0x717311(0x239)][_0x717311(0x1a4)](_0x270a07,_0x101242,!0x1);if(_0x12f16e(_0x40559b))throw _0x40559b[_0x717311(0x31e)];if(_0x12f16e(_0x35e754))throw _0x35e754[_0x717311(0x31e)];_0x130d83[_0x717311(0x16c)](_0x40559b[_0x717311(0x2ff)]['params']),_0x590385['unshift'](_0x35e754[_0x717311(0x2ff)][_0x717311(0x224)]),_0x38ea4d=_0x40559b[_0x717311(0x132)],_0x270a07=_0x35e754['m1Prime'];}_0x1d1857[_0x717311(0x1e8)]({'undoCache':_0x130d83,'redoCache':_0x590385});}[_0x2686e3(0x1d2)](_0x594975){const _0x4c245b=_0x2686e3,{unitID:_0x29704d}=_0x594975,_0x5334a7=this['_renderManagerService'][_0x4c245b(0x192)](_0x29704d)['with'](_0x582f51),_0x316465=_0x5334a7[_0x4c245b(0x17b)]();if(_0x316465==null)return;const _0x4ee7c6=[{'id':_0x4c245b(0x1b1),'params':{'unitId':_0x594975[_0x4c245b(0x26a)],'actions':null,'textRanges':[_0x316465]}}],_0x527d0c=this[_0x4c245b(0x239)]['transformMutationsWithChangeset'](_0x594975,_0x4ee7c6);if(!_0x1fbadd(_0x527d0c))throw _0x527d0c[_0x4c245b(0x31e)];const _0x15ec24=_0x527d0c[_0x4c245b(0x2ff)][0x0]['params']['textRanges'];Array['isArray'](_0x15ec24)&&_0x15ec24[_0x4c245b(0x29f)]&&_0x5334a7['setActiveRange'](_0x15ec24[0x0]);}};ne=tn([pe(0x0,_0x437cbf(_0x212b2d)),pe(0x1,_0x7488d5),pe(0x2,_0x145026)],ne);var sn=Object[_0x2686e3(0x29c)],nn=(_0x560597,_0x3d2217,_0x1f85cc,_0x1a3010)=>{const _0x4321d5=_0x2686e3;for(var _0x3e7617=_0x1a3010>0x1?void 0x0:_0x1a3010?sn(_0x3d2217,_0x1f85cc):_0x3d2217,_0x288e6f=_0x560597[_0x4321d5(0x29f)]-0x1,_0x217c47;_0x288e6f>=0x0;_0x288e6f--)(_0x217c47=_0x560597[_0x288e6f])&&(_0x3e7617=_0x217c47(_0x3e7617)||_0x3e7617);return _0x3e7617;},Ce=(_0x3dab9b,_0x18c3ad)=>(_0x13ab2b,_0x23025e)=>_0x18c3ad(_0x13ab2b,_0x23025e,_0x3dab9b);let re=class{constructor(_0xcf4404,_0x4c551b,_0x361cdf){const _0x360ad1=_0x2686e3;this[_0x360ad1(0x2c3)]=_0xcf4404,this['_transformService']=_0x4c551b,this[_0x360ad1(0x172)]=_0x361cdf;}[_0x2686e3(0x13f)](_0x42340a){this['_transformHistoryAndStateStack'](_0x42340a);}[_0x2686e3(0x1d4)](_0x22de51){const _0x2a10ab=_0x2686e3,{unitID:_0x1da4f1}=_0x22de51,{collaboration:_0x782a50}=this[_0x2a10ab(0x172)]['getStateCache'](_0x1da4f1);if(_0x782a50[_0x2a10ab(0x29f)]===0x0)return _0x22de51;let _0x284cd2=_0x457e3f[_0x2a10ab(0x2a9)](_0x22de51[_0x2a10ab(0x25d)][0x0]);for(let _0x3ca7a9=0x0;_0x3ca7a9<_0x782a50[_0x2a10ab(0x29f)];_0x3ca7a9++){const _0x51d1d5={'id':_0x2a10ab(0x1b1),'params':{'unitId':_0x782a50[_0x3ca7a9][_0x2a10ab(0x2fa)],..._0x782a50[_0x3ca7a9][_0x2a10ab(0x236)]}},_0x1f0696=this[_0x2a10ab(0x239)][_0x2a10ab(0x1a4)](_0x284cd2,_0x51d1d5,!0x1);if(_0x12f16e(_0x1f0696))throw _0x1f0696[_0x2a10ab(0x31e)];_0x284cd2=_0x1f0696['m1Prime'];}return{..._0x457e3f[_0x2a10ab(0x2a9)](_0x22de51),'mutations':[_0x284cd2]};}[_0x2686e3(0x24d)](_0x2755d2){const _0x42ef70=_0x2686e3,{unitID:_0x33348c}=_0x2755d2,{history:_0x2b0ea6,collaboration:_0x12e78d}=this['_docStateChangeManagerService'][_0x42ef70(0x1fe)](_0x33348c);if(_0x2b0ea6[_0x42ef70(0x29f)]===0x0&&_0x12e78d[_0x42ef70(0x29f)]===0x0)return;const _0x1a0bb2=[],_0x3d079b=[];let _0x5e9132=_0x457e3f['deepClone'](_0x2755d2['mutations'][0x0]),_0x33581e=_0x457e3f[_0x42ef70(0x2a9)](_0x2755d2[_0x42ef70(0x25d)][0x0]);for(let _0x1aae7e=_0x2b0ea6[_0x42ef70(0x29f)]-0x1;_0x1aae7e>=0x0;_0x1aae7e--){const _0x44fb32={'id':_0x42ef70(0x1b1),'params':{'unitId':_0x2b0ea6[_0x1aae7e][_0x42ef70(0x2fa)],..._0x2b0ea6[_0x1aae7e][_0x42ef70(0x264)]}},_0x29e987={'id':_0x42ef70(0x1b1),'params':{'unitId':_0x2b0ea6[_0x1aae7e][_0x42ef70(0x2fa)],..._0x2b0ea6[_0x1aae7e][_0x42ef70(0x236)]}},_0x4511ca=this[_0x42ef70(0x239)][_0x42ef70(0x1a4)](_0x5e9132,_0x44fb32,!0x1),_0x423b3a=this[_0x42ef70(0x239)][_0x42ef70(0x1a4)](_0x33581e,_0x29e987,!0x1);if(_0x12f16e(_0x4511ca))throw _0x4511ca[_0x42ef70(0x31e)];if(_0x12f16e(_0x423b3a))throw _0x423b3a['error'];_0x1a0bb2[_0x42ef70(0x16c)]({..._0x2b0ea6[_0x1aae7e],'undoState':_0x4511ca[_0x42ef70(0x2ff)][_0x42ef70(0x224)],'redoState':_0x423b3a[_0x42ef70(0x2ff)][_0x42ef70(0x224)]}),_0x5e9132=_0x4511ca[_0x42ef70(0x132)],_0x33581e=_0x423b3a[_0x42ef70(0x132)];}_0x5e9132=_0x457e3f[_0x42ef70(0x2a9)](_0x2755d2[_0x42ef70(0x25d)][0x0]),_0x33581e=_0x457e3f[_0x42ef70(0x2a9)](_0x2755d2[_0x42ef70(0x25d)][0x0]);for(let _0x7ffe3d=_0x12e78d['length']-0x1;_0x7ffe3d>=0x0;_0x7ffe3d--){const _0x56e7b4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x12e78d[_0x7ffe3d][_0x42ef70(0x2fa)],..._0x12e78d[_0x7ffe3d]['undoState']}},_0x2fa5cf={'id':_0x42ef70(0x1b1),'params':{'unitId':_0x12e78d[_0x7ffe3d][_0x42ef70(0x2fa)],..._0x12e78d[_0x7ffe3d][_0x42ef70(0x236)]}},_0x3ce510=this[_0x42ef70(0x239)]['transformMutation'](_0x5e9132,_0x56e7b4,!0x1),_0xb126da=this[_0x42ef70(0x239)][_0x42ef70(0x1a4)](_0x33581e,_0x2fa5cf,!0x1);if(_0x12f16e(_0x3ce510))throw _0x3ce510['error'];if(_0x12f16e(_0xb126da))throw _0xb126da['error'];_0x3d079b[_0x42ef70(0x16c)]({..._0x12e78d[_0x7ffe3d],'undoState':_0x3ce510[_0x42ef70(0x2ff)][_0x42ef70(0x224)],'redoState':_0xb126da[_0x42ef70(0x2ff)][_0x42ef70(0x224)]}),_0x5e9132=_0x3ce510[_0x42ef70(0x132)],_0x33581e=_0xb126da[_0x42ef70(0x132)];}this[_0x42ef70(0x172)][_0x42ef70(0x1ea)](_0x33348c,{'history':_0x1a0bb2,'collaboration':_0x3d079b});}};re=nn([Ce(0x0,_0x437cbf(_0x212b2d)),Ce(0x1,_0x7488d5),Ce(0x2,_0x437cbf(_0x26ffd4))],re);var rn=Object[_0x2686e3(0x29c)],on=(_0x18248f,_0x2de2ae,_0x5105cd,_0x3cae4c)=>{for(var _0x3da5d3=_0x3cae4c>0x1?void 0x0:_0x3cae4c?rn(_0x2de2ae,_0x5105cd):_0x2de2ae,_0x2644b2=_0x18248f['length']-0x1,_0x5d72ba;_0x2644b2>=0x0;_0x2644b2--)(_0x5d72ba=_0x18248f[_0x2644b2])&&(_0x3da5d3=_0x5d72ba(_0x3da5d3)||_0x3da5d3);return _0x3da5d3;},tt=(_0x1a69ba,_0x839b22)=>(_0x1e9eac,_0xd82821)=>_0x839b22(_0x1e9eac,_0xd82821,_0x1a69ba);let oe=class{constructor(_0x316b79,_0xe2ea3a){const _0x13eff7=_0x2686e3;this[_0x13eff7(0x2c3)]=_0x316b79,this[_0x13eff7(0x239)]=_0xe2ea3a;}['transformSelections'](_0x443181){const _0x1fac44=_0x2686e3;var _0x4fda22;const _0x21fee4=this['_injector'][_0x1fac44(0x1ad)](_0x4e4c68),_0x14d28d=(_0x4fda22=_0x21fee4['getDocRanges']())!=null?_0x4fda22:[];if(_0x14d28d['length']===0x0)return;const _0x80b70f=_0x443181['unitID'],_0x44cc72=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x80b70f,'actions':null,'textRanges':_0x14d28d}}],_0x50aeda=this['_transformService'][_0x1fac44(0x19e)](_0x443181,_0x44cc72);if(!_0x1fbadd(_0x50aeda))throw _0x50aeda[_0x1fac44(0x31e)];const _0x782438=_0x50aeda[_0x1fac44(0x2ff)][0x0][_0x1fac44(0x224)][_0x1fac44(0x15d)];Array[_0x1fac44(0x150)](_0x782438)&&_0x782438['length']&&_0x21fee4[_0x1fac44(0x182)](_0x782438,{'unitId':_0x80b70f,'subUnitId':_0x80b70f},!0x1);}};oe=on([tt(0x0,_0x437cbf(_0x212b2d)),tt(0x1,_0x7488d5)],oe);var an=Object[_0x2686e3(0x29c)],cn=(_0x3cc8c1,_0x53046c,_0x3aea57,_0x21f07c)=>{const _0x2c7ea8=_0x2686e3;for(var _0x27dd84=_0x21f07c>0x1?void 0x0:_0x21f07c?an(_0x53046c,_0x3aea57):_0x53046c,_0x3d3bcd=_0x3cc8c1[_0x2c7ea8(0x29f)]-0x1,_0x5784f6;_0x3d3bcd>=0x0;_0x3d3bcd--)(_0x5784f6=_0x3cc8c1[_0x3d3bcd])&&(_0x27dd84=_0x5784f6(_0x27dd84)||_0x27dd84);return _0x27dd84;},U=(_0xf0cba6,_0x2d4341)=>(_0x23df2d,_0x447bdc)=>_0x2d4341(_0x23df2d,_0x447bdc,_0xf0cba6);let ae=class extends _0x2d320f{constructor(_0x32c995,_0x4f81a8,_0x204193,_0x317e61,_0x59f87b,_0x5bcffd,_0x3861bc,_0x3cdfc1){const _0x48354b=_0x2686e3;super(),_(this,'_status$',new _0x289e43(_0x14a13b[_0x48354b(0x222)])),(this[_0x48354b(0x172)]=_0x32c995,this[_0x48354b(0x15a)]=_0x4f81a8,this[_0x48354b(0x223)]=_0x204193,this[_0x48354b(0x290)]=_0x317e61,this[_0x48354b(0x13a)]=_0x59f87b,this[_0x48354b(0x1ff)]=_0x5bcffd,this[_0x48354b(0x167)]=_0x3861bc,this[_0x48354b(0x168)]=_0x3cdfc1,this[_0x48354b(0x2e3)]());}[_0x2686e3(0x2e3)](){const _0x3c5384=_0x2686e3;this[_0x3c5384(0x2a4)](this[_0x3c5384(0x15a)][_0x3c5384(0x25f)][_0x3c5384(0x200)](_0xc96d69=>{const _0x2c4464=_0x3c5384,_0x45ed48=this[_0x2c4464(0x172)][_0x2c4464(0x2f9)][_0x2c4464(0x200)](_0x1ad886=>{const _0x34ecb6=_0x2c4464;if(_0x1ad886==null)return;const {unitId:_0x1c5ac8,redoState:_0x24b90f,commandId:_0x5707e2}=_0x1ad886;if(_0x1c5ac8!==_0xc96d69['unitID'])return;const _0x341b02={'id':_0x5707e2,'type':_0x3444c9[_0x34ecb6(0x252)],'params':{'unitId':_0x1c5ac8,'actions':_0x24b90f[_0x34ecb6(0x1d9)],'textRanges':null}};_0xc96d69[_0x34ecb6(0x202)](_0x341b02);});if(_0xc96d69['disposeWithMe'](_0x45ed48),_0xc96d69 instanceof _0x39dac4){const _0x149061={'onTransformIME':_0x180e73=>this[_0x2c4464(0x223)]['transformIMECache'](_0x180e73),'onTransformState':_0xd930ae=>this['_docTransformStateCacheService'][_0x2c4464(0x13f)](_0xd930ae),'onTransformSelections':_0x432b9b=>this[_0x2c4464(0x13a)][_0x2c4464(0x2ac)](_0x432b9b),'onSyncEditingCollabCursor':_0x18daa6=>this[_0x2c4464(0x1ff)][_0x2c4464(0x1c6)](_0x18daa6),'onTransformRemoteChangesetByIMECache':_0xf5d995=>this[_0x2c4464(0x223)][_0x2c4464(0x1d4)](_0xf5d995),'onTransformRemoteChangesetByStateCache':_0x5bf15c=>this['_docTransformStateCacheService'][_0x2c4464(0x1d4)](_0x5bf15c)};_0xc96d69[_0x2c4464(0x179)](_0x149061);}}));}};ae=cn([U(0x0,_0x437cbf(_0x26ffd4)),U(0x1,_0x437cbf(_0xc794c6)),U(0x2,_0x437cbf(ne)),U(0x3,_0x437cbf(re)),U(0x4,_0x437cbf(oe)),U(0x5,_0x437cbf(He)),U(0x6,_0x242b2a),U(0x7,_0x437cbf(_0x514309))],ae);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x358f96,_0x32e2b0,_0x200692,_0x330137)=>{const _0x3fdc7f=_0x2686e3;for(var _0x207123=_0x330137>0x1?void 0x0:_0x330137?ln(_0x32e2b0,_0x200692):_0x32e2b0,_0x9e6b21=_0x358f96[_0x3fdc7f(0x29f)]-0x1,_0x4f3096;_0x9e6b21>=0x0;_0x9e6b21--)(_0x4f3096=_0x358f96[_0x9e6b21])&&(_0x207123=_0x4f3096(_0x207123)||_0x207123);return _0x207123;},Ee=(_0x46f1a7,_0x4b05d6)=>(_0x5855f3,_0x2790db)=>_0x4b05d6(_0x5855f3,_0x2790db,_0x46f1a7);let we=class extends _0x2d320f{constructor(_0x322580,_0x349e7e,_0x53d62d){const _0x55a3c1=_0x2686e3;super(),_(this,'_cachedData',new Map()),_(this,_0x55a3c1(0x1de),new Map()),_(this,_0x55a3c1(0x295),!0x1),(this['_configService']=_0x322580,this[_0x55a3c1(0x31d)]=_0x349e7e,this[_0x55a3c1(0x16a)]=_0x53d62d);}[_0x2686e3(0x299)](){const _0x4273a4=_0x2686e3;this[_0x4273a4(0x295)]=!0x0;}[_0x2686e3(0x1cf)](){const _0x7a0731=_0x2686e3;this[_0x7a0731(0x295)]=!0x1;}get[_0x2686e3(0x173)](){const _0x43c9d6=_0x2686e3;return this[_0x43c9d6(0x1de)];}[_0x2686e3(0x340)](){const _0x2add59=_0x2686e3;this['exhaustSavingTask']()['then'](()=>super[_0x2add59(0x340)]());}async[_0x2686e3(0x161)](_0x21e933){const _0x4941a6=_0x2686e3;return this[_0x4941a6(0x295)]?null:this[_0x4941a6(0x31d)][_0x4941a6(0x2e0)](_0x437809(_0x21e933));}async[_0x2686e3(0x1e3)](_0x12a1c5,_0x23ecc7){const _0x54cec9=_0x2686e3;return!!this[_0x54cec9(0x31d)][_0x54cec9(0x1db)](_0x12a1c5,_0x23ecc7);}['updateOfflineData'](_0xd52b1e,_0x451290,_0x5a12b5,_0x531231){const _0x42ff79=_0x2686e3,_0x387079=this[_0x42ff79(0x16a)][_0x42ff79(0x1c0)](_0xd52b1e);this[_0x42ff79(0x15e)][_0x42ff79(0x155)](_0xd52b1e,{'unitID':_0xd52b1e,'type':_0x451290,'awaitingChangeset':_0x5a12b5,'mutations':_0x531231,'rev':_0x387079}),this[_0x42ff79(0x1de)][_0x42ff79(0x33d)](_0xd52b1e)||this[_0x42ff79(0x2b8)](_0xd52b1e);}['_scheduleSaving'](_0x161292){const _0x20cb13=_0x2686e3,_0x4033d4=this[_0x20cb13(0x196)]();_0x4033d4===0x0?this[_0x20cb13(0x1e1)](_0x161292):this[_0x20cb13(0x1de)]['set'](_0x161292,setTimeout(()=>this[_0x20cb13(0x1e1)](_0x161292),_0x4033d4));}[_0x2686e3(0x196)](){const _0x5c2d5a=_0x2686e3;var _0x4f056c;return(_0x4f056c=this[_0x5c2d5a(0x323)]['getConfig'](_0x2e6936))!=null?_0x4f056c:_0x258aab;}[_0x2686e3(0x1e1)](_0x1a3d43){const _0x2a283d=_0x2686e3,_0x38837f=this[_0x2a283d(0x1de)][_0x2a283d(0x1ad)](_0x1a3d43);return _0x38837f!==void 0x0&&window[_0x2a283d(0x271)](_0x38837f),this['_localStorageService'][_0x2a283d(0x1db)](_0x437809(_0x1a3d43),this[_0x2a283d(0x15e)]['get'](_0x1a3d43))[_0x2a283d(0x31b)](()=>this[_0x2a283d(0x1de)][_0x2a283d(0x277)](_0x1a3d43));}async[_0x2686e3(0x20e)](){const _0xba57b5=_0x2686e3,_0x3d47e2=[];this[_0xba57b5(0x1de)]['forEach']((_0xd55cad,_0x1eff9f)=>{const _0x329f58=_0xba57b5;window['clearTimeout'](_0xd55cad),_0x3d47e2[_0x329f58(0x209)](this['_saveCache'](_0x1eff9f)[_0x329f58(0x31b)](()=>{const _0x32d532=_0x329f58;this[_0x32d532(0x1de)][_0x32d532(0x277)](_0x1eff9f);}));}),await Promise[_0xba57b5(0x1ef)](_0x3d47e2);}};we=_n([Ee(0x0,_0xd03f15),Ee(0x1,_0xc9b330),Ee(0x2,_0x437cbf(_0x225270))],we);class hn extends _0x1f7e53{constructor(){const _0x49e96f=_0x2686e3;super(),_(this,_0x49e96f(0x2cd)),this['urlChange$']=_0x6495ce(window,_0x49e96f(0x2e2))[_0x49e96f(0x151)](_0x130b87(this['dispose$']),_0x5885f2(0x1),_0x2de1b3(void 0x0));}[_0x2686e3(0x1c4)](_0x373524,_0x3b5419,_0x3451b0=!0x1){const _0x569478=_0x2686e3,_0xb5481b=new URL(window[_0x569478(0x1e5)][_0x569478(0x23c)]);_0xb5481b['searchParams'][_0x569478(0x155)](_0x373524,_0x3b5419),_0x3451b0?window[_0x569478(0x329)][_0x569478(0x327)]('','',_0xb5481b[_0x569478(0x2e4)]()):window[_0x569478(0x329)][_0x569478(0x2f4)]('','',_0xb5481b[_0x569478(0x2e4)]());}[_0x2686e3(0x317)](_0x1f6e45,_0x5ae3b1=!0x1){const _0x38bd06=_0x2686e3,_0x5f4ecb=new URL(window[_0x38bd06(0x1e5)][_0x38bd06(0x23c)]);_0x5f4ecb[_0x38bd06(0x2f2)][_0x38bd06(0x277)](_0x1f6e45),_0x5ae3b1?window[_0x38bd06(0x329)][_0x38bd06(0x327)]('','',_0x5f4ecb['toString']()):window[_0x38bd06(0x329)][_0x38bd06(0x2f4)]('','',_0x5f4ecb['toString']());}[_0x2686e3(0x24b)](_0x946f6b){const _0x429224=_0x2686e3;var _0x20dad5;return(_0x20dad5=new URL(window[_0x429224(0x1e5)]['href'])['searchParams'][_0x429224(0x1ad)](_0x946f6b))!=null?_0x20dad5:void 0x0;}}var un=Object[_0x2686e3(0x335)],dn=Object['getOwnPropertyDescriptor'],fn=(_0x325eca,_0x858135,_0x30a99e)=>_0x858135 in _0x325eca?un(_0x325eca,_0x858135,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30a99e}):_0x325eca[_0x858135]=_0x30a99e,Sn=(_0x42e000,_0x27381d,_0x23abcd,_0x5498bd)=>{const _0x1ca93b=_0x2686e3;for(var _0x51fbb7=_0x5498bd>0x1?void 0x0:_0x5498bd?dn(_0x27381d,_0x23abcd):_0x27381d,_0x360595=_0x42e000[_0x1ca93b(0x29f)]-0x1,_0x3349a6;_0x360595>=0x0;_0x360595--)(_0x3349a6=_0x42e000[_0x360595])&&(_0x51fbb7=_0x3349a6(_0x51fbb7)||_0x51fbb7);return _0x51fbb7;},Oe=(_0x5827ef,_0x3d0780)=>(_0x34d2f1,_0x4c2354)=>_0x3d0780(_0x34d2f1,_0x4c2354,_0x5827ef),mn=(_0xf5012e,_0x563bdb,_0x335b57)=>fn(_0xf5012e,_0x563bdb+'',_0x335b57);const In=_0x2686e3(0x268);let Ae=class extends _0x4257ba{constructor(_0x43dbf2=et,_0x51f8b2,_0x41357d,_0x229fea){const _0x5a226d=_0x2686e3;super(),this[_0x5a226d(0x1fd)]=_0x43dbf2,this[_0x5a226d(0x190)]=_0x51f8b2,this[_0x5a226d(0x2c3)]=_0x41357d,this[_0x5a226d(0x323)]=_0x229fea;const {..._0x30970c}=_0x4d74b0({},et,this[_0x5a226d(0x1fd)]);this[_0x5a226d(0x323)]['setConfig'](Zi,_0x30970c);}[_0x2686e3(0x270)](){const _0x5b2c99=_0x2686e3;this[_0x5b2c99(0x302)](),this[_0x5b2c99(0x2ea)]();}['onRendered'](){const _0x5264a3=_0x2686e3;this[_0x5264a3(0x138)]();}['_registerDependencies'](){const _0x2e4960=_0x2686e3;var _0x406615;const _0x4966ae=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x54c1fa,{'useClass':_0x2f2bd5}],[_0x52e427,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x49070c(this[_0x2e4960(0x2c3)],_0x530a26(_0x4966ae,(_0x406615=this[_0x2e4960(0x1fd)])==null?void 0x0:_0x406615[_0x2e4960(0x1d1)]));}[_0x2686e3(0x138)](){const _0x7f6e91=_0x2686e3;this[_0x7f6e91(0x2a4)](this[_0x7f6e91(0x190)][_0x7f6e91(0x320)](_0x259f9d['UNIVER_DOC'],[Le])),this[_0x7f6e91(0x2a4)](this[_0x7f6e91(0x190)][_0x7f6e91(0x320)](_0x259f9d[_0x7f6e91(0x1aa)],[Pe]));}[_0x2686e3(0x2ea)](){const _0x4fdd71=_0x2686e3;_0x3a14f4(this[_0x4fdd71(0x2c3)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,'pluginName',In),Ae=Sn([_0x45f006(_0x5aafc5),Oe(0x1,_0x145026),Oe(0x2,_0x437cbf(_0x212b2d)),Oe(0x3,_0xd03f15)],Ae);var gn=Object[_0x2686e3(0x29c)],vn=(_0x36bd64,_0xc272a3,_0x1c85e5,_0x14d593)=>{for(var _0x432820=_0x14d593>0x1?void 0x0:_0x14d593?gn(_0xc272a3,_0x1c85e5):_0xc272a3,_0x11cfc4=_0x36bd64['length']-0x1,_0x161c30;_0x11cfc4>=0x0;_0x11cfc4--)(_0x161c30=_0x36bd64[_0x11cfc4])&&(_0x432820=_0x161c30(_0x432820)||_0x432820);return _0x432820;},K=(_0x1c9cfb,_0x1e822f)=>(_0x515f98,_0x125323)=>_0x1e822f(_0x515f98,_0x125323,_0x1c9cfb);let st=class extends _0x5c85f5{constructor(_0x54c6fe,_0x4d0e9d,_0x4f2fb8,_0x152bbf,_0x33b6a7){super(_0x54c6fe,_0x4d0e9d,_0x4f2fb8,_0x152bbf,_0x33b6a7);}async['createSocket'](_0x354225){const _0x51111f=_0x2686e3,_0x13c4b5=await this[_0x51111f(0x326)](),_0x3140ca=this[_0x51111f(0x260)](_0x354225,_0x13c4b5);return this['_doCreateSocket'](_0x3140ca);}['_createSocketURL'](_0x1ec477,_0x40d553){const _0x11d0ff=_0x2686e3,_0x52cec0=typeof window>'u'?new URL(_0x1ec477):new URL(_0x1ec477,window[_0x11d0ff(0x1e5)][_0x11d0ff(0x1ae)]);_0x52cec0[_0x11d0ff(0x2f2)]['set'](_0x11d0ff(0x22a),_0x40d553);const _0x252975=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x11d0ff(0x1e5)]['search']);return _0x252975[_0x11d0ff(0x1ad)](_0x11d0ff(0x2fe))&&_0x52cec0[_0x11d0ff(0x2f2)][_0x11d0ff(0x155)](_0x11d0ff(0x2fe),_0x252975[_0x11d0ff(0x1ad)]('runId')),_0x52cec0[_0x11d0ff(0x2e4)]();}async['_getSessionTicket'](){const _0x4f5916=_0x2686e3;var _0x2dcbe4,_0x5f1cc5,_0x2dd5ef;const _0x58cafd=this[_0x4f5916(0x323)][_0x4f5916(0x1a3)](_0x2e06a0),_0x3e567c=(_0x2dcbe4=_0x58cafd==null?void 0x0:_0x58cafd[_0x4f5916(0x238)])!=null?_0x2dcbe4:_0x62fee3;return(_0x2dd5ef=(_0x5f1cc5=(await this['_httpService']['get'](_0x3e567c,{'headers':{'Content-Type':'application/json'}}))[_0x4f5916(0x339)])==null?void 0x0:_0x5f1cc5['ticket'])!=null?_0x2dd5ef:'';}};st=vn([K(0x0,_0x437cbf(_0x212b2d)),K(0x1,_0x437cbf(_0x538f65)),K(0x2,_0xd03f15),K(0x3,_0x46abfe),K(0x4,_0x2153ad)],st);const it=0x7530,nt=_0x2686e3(0x1f0);class Fn extends _0x2d320f{constructor(){const _0x2bbd7c=_0x2686e3;super(),_(this,_0x2bbd7c(0x275),_0x19648d()),_(this,_0x2bbd7c(0x300),new Set()),_(this,'_unitOnClients',new Map()),_(this,'_heartbeatTimer',null),_(this,_0x2bbd7c(0x174),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0xd902ff=_0x2686e3;super[_0xd902ff(0x340)](),this[_0xd902ff(0x174)][_0xd902ff(0x164)]((_0x206b47,_0x21fef6)=>this[_0xd902ff(0x24f)](_0x21fef6)),this[_0xd902ff(0x1a8)]&&window[_0xd902ff(0x1dc)](this[_0xd902ff(0x1a8)]);}[_0x2686e3(0x178)](_0x2e67d5){const _0xdec65a=_0x2686e3;return this[_0xdec65a(0x1bc)](_0x2e67d5)[_0xdec65a(0x151)](_0x12b905());}[_0x2686e3(0x148)](_0x3db37a){const _0x4d9bf1=_0x2686e3;this[_0x4d9bf1(0x300)]['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x4d9bf1(0x291)](_0x3db37a),this[_0x4d9bf1(0x30a)]({'type':0x0,'memberID':this[_0x4d9bf1(0x275)],'unitIDs':[_0x3db37a],'isForwarded':!0x1});}[_0x2686e3(0x2c4)](_0x9c72c2){const _0x1c7317=_0x2686e3;this[_0x1c7317(0x300)][_0x1c7317(0x277)](_0x9c72c2),this[_0x1c7317(0x300)][_0x1c7317(0x278)]===0x0&&this[_0x1c7317(0x1a8)]&&window['clearInterval'](this[_0x1c7317(0x1a8)]);}[_0x2686e3(0x2de)](){const _0x2c7f52=_0x2686e3;this[_0x2c7f52(0x2a4)](_0x1e1ccf(_0x6495ce(window,_0x2c7f52(0x162))[_0x2c7f52(0x200)](_0x5efb83=>{const _0x2194c6=_0x2c7f52;if(_0x5efb83[_0x2194c6(0x133)]!==nt||!_0x5efb83['newValue'])return;const _0x978cb0=JSON['parse'](_0x5efb83[_0x2194c6(0x13e)]);this[_0x2194c6(0x22e)](_0x978cb0);}))),window[_0x2c7f52(0x298)](_0x2c7f52(0x1e2),()=>this[_0x2c7f52(0x30a)]({'type':0x1,'memberID':this[_0x2c7f52(0x275)],'unitIDs':Array['from'](this[_0x2c7f52(0x300)])}));}[_0x2686e3(0x22e)](_0x426ba2){const _0x2d8371=_0x2686e3;switch(_0x426ba2[_0x2d8371(0x13c)]){case 0x0:this[_0x2d8371(0x197)](_0x426ba2);break;case 0x1:this[_0x2d8371(0x2d3)](_0x426ba2);break;case 0x2:this[_0x2d8371(0x333)](_0x426ba2);break;}}['_handleJoinEvent'](_0x3b2480){const _0x586716=_0x2686e3,{unitIDs:_0x44eccd,memberID:_0x3d5d52,isForwarded:_0x3cdfec}=_0x3b2480;_0x44eccd[_0x586716(0x164)](_0x199d7e=>{const _0x2d1552=_0x586716;if(!_0x3cdfec&&this[_0x2d1552(0x2a8)][_0x2d1552(0x33d)](_0x199d7e)&&this[_0x2d1552(0x1bc)](_0x199d7e)[_0x2d1552(0x207)](_0x45f787[_0x2d1552(0x28e)]),!this['_unitOnClients'][_0x2d1552(0x33d)](_0x199d7e)||!this['_unitOnClients'][_0x2d1552(0x1ad)](_0x199d7e)[_0x2d1552(0x33d)](_0x3d5d52)){const _0x587209=this[_0x2d1552(0x2a8)][_0x2d1552(0x1ad)](_0x199d7e)||new Set();_0x587209[_0x2d1552(0x291)](_0x3d5d52),this['_unitOnClients'][_0x2d1552(0x155)](_0x199d7e,_0x587209),this['_scheduleClearOtherTimer'](_0x3d5d52);}}),_0x3cdfec||this[_0x586716(0x30a)]({'type':0x0,'memberID':this[_0x586716(0x275)],'unitIDs':[...this[_0x586716(0x300)]],'isForwarded':!0x0});}[_0x2686e3(0x303)](_0x4f37ea){const _0x323a7c=_0x2686e3;this[_0x323a7c(0x24f)](_0x4f37ea);const _0xbc554c=window[_0x323a7c(0x2e8)](()=>{const _0x2f3337=_0x323a7c;this[_0x2f3337(0x2a8)][_0x2f3337(0x164)](_0xa71a6=>{_0xa71a6['delete'](_0x4f37ea);});},it*0x2);this['_clearOtherTimers'][_0x323a7c(0x155)](_0x4f37ea,_0xbc554c);}[_0x2686e3(0x24f)](_0xd90622){const _0x38b10a=_0x2686e3;if(this[_0x38b10a(0x174)][_0x38b10a(0x33d)](_0xd90622)){const _0x5a33c2=this[_0x38b10a(0x174)]['get'](_0xd90622);_0x5a33c2&&window[_0x38b10a(0x271)](_0x5a33c2),this[_0x38b10a(0x174)][_0x38b10a(0x155)](_0xd90622,null);}}['_handleLeaveEvent'](_0x195c10){const _0x6610ae=_0x2686e3,{memberID:_0x2f7b89,unitIDs:_0x14eb07}=_0x195c10;_0x14eb07[_0x6610ae(0x164)](_0xb9331e=>{const _0x4cff16=_0x6610ae;var _0x2d59e0;const _0xb7d106=this[_0x4cff16(0x2a8)][_0x4cff16(0x1ad)](_0xb9331e);_0xb7d106&&(_0xb7d106['delete'](_0x2f7b89),(_0x2d59e0=this[_0x4cff16(0x1bc)](_0xb9331e))==null||_0x2d59e0['next'](_0xb7d106[_0x4cff16(0x278)]===0x0?_0x45f787[_0x4cff16(0x1c2)]:_0x45f787['OTHER_CLIENTS_EDITING']));}),this[_0x6610ae(0x24f)](_0x2f7b89);}[_0x2686e3(0x333)](_0x120bac){const _0x4db235=_0x2686e3;this[_0x4db235(0x303)](_0x120bac[_0x4db235(0x2dd)]);}['_send'](_0x37d4e5){const _0x2e8ddb=_0x2686e3;localStorage[_0x2e8ddb(0x1db)](nt,JSON['stringify'](_0x37d4e5));}[_0x2686e3(0x28b)](){const _0x12cab2=_0x2686e3;this[_0x12cab2(0x1a8)]=window[_0x12cab2(0x1f8)](()=>{const _0x4363bc=_0x12cab2;this[_0x4363bc(0x30a)]({'type':0x2,'memberID':this['_id']});},it);}[_0x2686e3(0x1bc)](_0x22e843){const _0x27dd98=_0x2686e3;return this[_0x27dd98(0x242)][_0x27dd98(0x33d)](_0x22e843)||this['_unitStatus'][_0x27dd98(0x155)](_0x22e843,new _0x289e43(_0x45f787['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x27dd98(0x1ad)](_0x22e843);}}var Mt=(_0x58b31f=>(_0x58b31f[_0x58b31f[_0x2686e3(0x227)]=0x0]=_0x2686e3(0x227),_0x58b31f[_0x58b31f['OK']=0x1]='OK',_0x58b31f[_0x58b31f[_0x2686e3(0x17e)]=0x2]=_0x2686e3(0x17e),_0x58b31f[_0x58b31f['PERMISSION_DENIED']=0x3]=_0x2686e3(0x18c),_0x58b31f[_0x58b31f[_0x2686e3(0x2aa)]=0x4]=_0x2686e3(0x2aa),_0x58b31f[_0x58b31f[_0x2686e3(0x325)]=0x5]='UNAUTHENTICATED',_0x58b31f[_0x58b31f[_0x2686e3(0x2ee)]=0x6]=_0x2686e3(0x2ee),_0x58b31f[_0x58b31f[_0x2686e3(0x2dc)]=0x7]=_0x2686e3(0x2dc),_0x58b31f[_0x58b31f['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x58b31f[_0x58b31f[_0x2686e3(0x1be)]=0x9]='COMPLETION_FINISHED',_0x58b31f[_0x58b31f[_0x2686e3(0x250)]=0xa]='LOGIN_FAILED',_0x58b31f[_0x58b31f[_0x2686e3(0x2f6)]=0xb]=_0x2686e3(0x2f6),_0x58b31f[_0x58b31f[_0x2686e3(0x266)]=0xc]=_0x2686e3(0x266),_0x58b31f[_0x58b31f[_0x2686e3(0x2f0)]=0xd]=_0x2686e3(0x2f0),_0x58b31f[_0x58b31f[_0x2686e3(0x2a2)]=0xe]=_0x2686e3(0x2a2),_0x58b31f[_0x58b31f[_0x2686e3(0x257)]=0x1389]=_0x2686e3(0x257),_0x58b31f[_0x58b31f['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2686e3(0x24e),_0x58b31f[_0x58b31f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2686e3(0x1ab),_0x58b31f[_0x58b31f['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2686e3(0x1cc),_0x58b31f[_0x58b31f[_0x2686e3(0x21b)]=0x1b59]=_0x2686e3(0x21b),_0x58b31f[_0x58b31f[_0x2686e3(0x31f)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x58b31f[_0x58b31f[_0x2686e3(0x2b1)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x58b31f[_0x58b31f[_0x2686e3(0x22b)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x58b31f[_0x58b31f['APPLY_DUPLICATED']=0x1b5d]=_0x2686e3(0x25c),_0x58b31f[_0x58b31f[_0x2686e3(0x2f7)]=0x1f41]=_0x2686e3(0x2f7),_0x58b31f[_0x58b31f[_0x2686e3(0x171)]=0x2329]=_0x2686e3(0x171),_0x58b31f[_0x58b31f[_0x2686e3(0x263)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x58b31f[_0x58b31f[_0x2686e3(0x201)]=0x232b]=_0x2686e3(0x201),_0x58b31f[_0x58b31f[_0x2686e3(0x2c5)]=0x232c]=_0x2686e3(0x2c5),_0x58b31f[_0x58b31f[_0x2686e3(0x2a0)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x58b31f[_0x58b31f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x2686e3(0x2a6),_0x58b31f[_0x58b31f[_0x2686e3(0x20f)]=0x2712]=_0x2686e3(0x20f),_0x58b31f[_0x58b31f[_0x2686e3(0x307)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x58b31f[_0x58b31f[_0x2686e3(0x1a0)]=0x2714]=_0x2686e3(0x1a0),_0x58b31f[_0x58b31f['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x2686e3(0x2c9),_0x58b31f[_0x58b31f[_0x2686e3(0x2b0)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x58b31f[_0x58b31f[_0x2686e3(0x2da)]=0x271c]=_0x2686e3(0x2da),_0x58b31f[_0x58b31f[_0x2686e3(0x24c)]=0x271d]=_0x2686e3(0x24c),_0x58b31f[_0x58b31f[_0x2686e3(0x17d)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x58b31f[_0x58b31f[_0x2686e3(0x218)]=0x271f]=_0x2686e3(0x218),_0x58b31f[_0x58b31f[_0x2686e3(0x142)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x58b31f[_0x58b31f['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x2686e3(0x13b),_0x58b31f[_0x58b31f[_0x2686e3(0x28f)]=0x2ee1]=_0x2686e3(0x28f),_0x58b31f[_0x58b31f[_0x2686e3(0x21c)]=0x2ee2]=_0x2686e3(0x21c),_0x58b31f[_0x58b31f[_0x2686e3(0x313)]=0x2ee3]=_0x2686e3(0x313),_0x58b31f[_0x58b31f[_0x2686e3(0x153)]=0x2ee4]=_0x2686e3(0x153),_0x58b31f[_0x58b31f[_0x2686e3(0x2c1)]=0x2ee5]=_0x2686e3(0x2c1),_0x58b31f[_0x58b31f[_0x2686e3(0x163)]=0x32c9]=_0x2686e3(0x163),_0x58b31f[_0x58b31f[_0x2686e3(0x308)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x58b31f[_0x58b31f[_0x2686e3(0x319)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x58b31f[_0x58b31f['UNRECOGNIZED']=-0x1]=_0x2686e3(0x269),_0x58b31f))(Mt||{}),pn=Object[_0x2686e3(0x29c)],Cn=(_0x3779c3,_0x236c73,_0x3bd3a3,_0x141611)=>{for(var _0x19eec1=_0x141611>0x1?void 0x0:_0x141611?pn(_0x236c73,_0x3bd3a3):_0x236c73,_0x462062=_0x3779c3['length']-0x1,_0xf3adb2;_0x462062>=0x0;_0x462062--)(_0xf3adb2=_0x3779c3[_0x462062])&&(_0x19eec1=_0xf3adb2(_0x19eec1)||_0x19eec1);return _0x19eec1;},be=(_0x8585,_0x20053b)=>(_0x281ea6,_0x242e94)=>_0x20053b(_0x281ea6,_0x242e94,_0x8585);let rt=class extends _0x2d320f{constructor(_0x1e454f,_0x114c5b,_0x1a9c73){const _0x29bb5a=_0x2686e3;super(),this[_0x29bb5a(0x26b)]=_0x1e454f,this[_0x29bb5a(0x18d)]=_0x114c5b,this[_0x29bb5a(0x323)]=_0x1a9c73;}async[_0x2686e3(0x1e0)](_0x44661a,_0x1b6625,_0x2e8049,..._0x66e48){const _0x3a45eb=_0x2686e3;var _0x64e560,_0xd26a13,_0x48306f,_0x2797be;const _0x271aa1=this[_0x3a45eb(0x26b)]['getFocusedUnit']();if(!_0x271aa1)throw new Error(_0x3a45eb(0x146));const _0x2921d9=((_0x64e560=this[_0x3a45eb(0x323)]['getConfig'](_0x2031ac))!=null?_0x64e560:_0xa9e657)+'/'+_0x44661a+_0x3a45eb(0x2b3)+_0x1b6625,_0x118212=new URL(window[_0x3a45eb(0x1e5)]['href']),_0x4359bf={'scriptId':_0x44661a,'runId':(_0xd26a13=_0x118212[_0x3a45eb(0x2f2)][_0x3a45eb(0x1ad)]('runId'))!=null?_0xd26a13:'','function':_0x1b6625,'unitId':_0x271aa1['getUnitId'](),'argsOfFunction':JSON[_0x3a45eb(0x324)](_0x66e48),'invokeId':(_0x48306f=_0x2e8049[_0x3a45eb(0x16e)])!=null?_0x48306f:'','executionId':(_0x2797be=_0x2e8049[_0x3a45eb(0x249)])!=null?_0x2797be:''};try{const _0x1bbdac=await this[_0x3a45eb(0x18d)]['post'](_0x2921d9,{'body':_0x4359bf});return _0x1bbdac[_0x3a45eb(0x339)]['error']&&_0x1bbdac[_0x3a45eb(0x339)][_0x3a45eb(0x31e)][_0x3a45eb(0x16b)]!==Mt['OK']?_0x3a45eb(0x154):_0x1bbdac[_0x3a45eb(0x339)][_0x3a45eb(0x310)];}catch{return'Failed';}}};rt=Cn([be(0x0,_0x1fee0a),be(0x1,_0x437cbf(_0x538f65)),be(0x2,_0xd03f15)],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 _0x2f663e=_0x10a5;(function(_0x48e992,_0x195061){const _0x2ba9dc=_0x10a5,_0x3c2f2e=_0x48e992();while(!![]){try{const _0x17af38=parseInt(_0x2ba9dc(0x124))/0x1+parseInt(_0x2ba9dc(0x1e0))/0x2*(-parseInt(_0x2ba9dc(0xa2))/0x3)+-parseInt(_0x2ba9dc(0x222))/0x4+parseInt(_0x2ba9dc(0xcf))/0x5*(-parseInt(_0x2ba9dc(0xab))/0x6)+parseInt(_0x2ba9dc(0x186))/0x7*(-parseInt(_0x2ba9dc(0x1bb))/0x8)+parseInt(_0x2ba9dc(0x27c))/0x9+parseInt(_0x2ba9dc(0x288))/0xa;if(_0x17af38===_0x195061)break;else _0x3c2f2e['push'](_0x3c2f2e['shift']());}catch(_0x3c5126){_0x3c2f2e['push'](_0x3c2f2e['shift']());}}}(_0x4f54,0x93849));var $t=Object[_0x2f663e(0x19c)],xt=(_0x1e9ac1,_0x5df146,_0x530ba6)=>_0x5df146 in _0x1e9ac1?$t(_0x1e9ac1,_0x5df146,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x530ba6}):_0x1e9ac1[_0x5df146]=_0x530ba6,_=(_0x28ba38,_0x3f719b,_0x4474e6)=>xt(_0x28ba38,typeof _0x3f719b!=_0x2f663e(0xe8)?_0x3f719b+'':_0x3f719b,_0x4474e6);import{MemberService as _0x15a097,SessionStatus as _0x22404e,CollaborationSessionService as _0x54fbb4,CollaborationStatus as _0x5acc60,CollaborationController as _0xe2bf29,ILocalCacheService as _0x4c8f60,CollaborationUIEventService as _0x561115,CollaborationUIEventId as _0x3de1b3,DataLoaderService as _0x270f1a,DocCollaborationEntity as _0x20af81,getLocalCacheKey as _0x52d65d,LOCAL_CACHE_INTERVAL as _0xbfdc93,LOCAL_CACHE_INTERVAL_KEY as _0x1e5bcc,UniverCollaborationClientPlugin as _0x3bd9e0,CollaborationSocketService as _0x5d083c,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2c2983,DEFAULT_WS_SESSION_TICKET_URL as _0x3b0275,UnitStatus as _0x180d6f,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x323fcc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5c4e0e}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x44d3a6,Disposable as _0x2c599b,DOC_RANGE_TYPE as _0x5f2260,Inject as _0xfad7a2,Injector as _0xf6ae29,IUniverInstanceService as _0x4b850f,ICommandService as _0x2642f8,debounce as _0x4decf4,Rectangle as _0x1c0d47,DisposableCollection as _0x8b3db2,toDisposable as _0xa67f93,UniverInstanceType as _0x39ba16,Tools as _0x1cca84,COLORS as _0x114d48,ColorKit as _0x494120,ThemeService as _0x1aa687,fromEventSubject as _0x592685,LocaleService as _0x558eaa,createIdentifier as _0x777ed7,ILogService as _0x54f831,Optional as _0x5b52a0,Workbook as _0x4dae10,CommandType as _0x4d7c6e,IConfigService as _0x7cf2a5,ILocalStorageService as _0x1eccd0,DependentOn as _0x1a973b,Plugin as _0x3358b4,merge as _0x3b5740,registerDependencies as _0x97cf9a,mergeOverrideWithDependencies as _0x2f84cf,touchDependencies as _0x576bca,generateRandomId as _0x5f150b}from'@univerjs/core';import{Shape as _0xedbeaf,Rect as _0x3fbab6,getColor as _0x597969,RegularPolygon as _0x2a2416,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5e00e4,Vector2 as _0x39eb06,SHEET_VIEWPORT_KEY as _0xd5f32a,IRenderManagerService as _0x10a1a1}from'@univerjs/engine-render';import{ISocketService as _0x1152c1,WebSocketService as _0x1ff624,HTTPService as _0x4a5eb3}from'@univerjs/network';import{IDocClipboardService as _0x27074a,NodePositionConvertToCursor as _0x4c1219,NodePositionConvertToRectRange as _0x2f4f15,TEXT_RANGE_LAYER_INDEX as _0x3b16f3,SetDocZoomRatioOperation as _0x3793b1,DocIMEInputManagerService as _0x597c7e,DocStateChangeManagerService as _0x1b26fc}from'@univerjs/docs-ui';import{IImageIoService as _0x9be677}from'@univerjs/drawing';import{BehaviorSubject as _0x498be9,debounceTime as _0x226869,takeUntil as _0x2fdde1,Subject as _0x548832,filter as _0x40a49c,switchMap as _0x4cff02,merge as _0x57f955,combineLatest as _0xc070e4,of as _0x12df26,fromEvent as _0x39c7f3,shareReplay as _0x46f86d,mapTo as _0x2a445b,distinctUntilChanged as _0x47bdb8}from'rxjs';import{ITransformService as _0x5445bd,CollaborationEvent as _0x4827b8,isTransformMutationFailure as _0x2030ce,isTransformMutationsWithChangesetSuccess as _0x610224,RevisionService as _0x158257,ISnapshotServerService as _0x2ff4e4}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x1440df,RichTextEditingMutation as _0x45c5a1,DocSelectionManagerService as _0x5cdeae,DocSkeletonManagerService as _0x52dcf8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x320078,serializeRangeWithSheet as _0x4ca576}from'@univerjs/engine-formula';import{RefRangeService as _0x635aef,SetSelectionsOperation as _0x383d3b,SheetsSelectionsService as _0xedb4a,EffectRefRangId as _0x7e9703,handleIRemoveRow as _0x2474aa,handleIRemoveCol as _0x11a9f8,handleMoveRange as _0x2d8a46,handleInsertRow as _0xfe3638,handleInsertRangeMoveRight as _0x17cd93,handleInsertRangeMoveDown as _0x24611e,handleInsertCol as _0x36e61a,handleDeleteRangeMoveUp as _0x3423dd,handleDeleteRangeMoveLeft as _0x2f2371,runRefRangeMutations as _0x5c47e6,SetWorksheetActivateCommand as _0x5afe82}from'@univerjs/sheets';import{map as _0x1c5977,filter as _0x111884,throttleTime as _0x23ea35,takeUntil as _0x42343d,switchMap as _0x3cb18c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3950f2,getCoordByCell as _0x3f00d9,getSheetObject as _0x37871e}from'@univerjs/sheets-ui';import{jsx as _0x14ec18,jsxs as _0x5e558b}from'react/jsx-runtime';import{useObservable as _0x4929d9,useDependency as _0x115dee,IUIPartsService as _0x1d47ed,BuiltInUIPart as _0x15f948,connectInjector as _0xe36a25,IBeforeCloseService as _0x137831,IMessageService as _0x16d6e7,INotificationService as _0x4a01b0}from'@univerjs/ui';import{Tooltip as _0xc0360d,clsx as _0x4d5517,MessageType as _0xc7c325}from'@univerjs/design';import{forwardRef as _0x4dd606,useRef as _0x5efa58,createElement as _0x48d228,useCallback as _0x43f4dc}from'react';import{IRemoteInstanceService as _0xc0efe0}from'@univerjs/rpc';var ci=Object[_0x2f663e(0x151)],li=(_0x5c572a,_0x2be2b4,_0x459526,_0x492b6b)=>{const _0x9def6b=_0x2f663e;for(var _0x102996=_0x492b6b>0x1?void 0x0:_0x492b6b?ci(_0x2be2b4,_0x459526):_0x2be2b4,_0x573783=_0x5c572a[_0x9def6b(0x85)]-0x1,_0x235dda;_0x573783>=0x0;_0x573783--)(_0x235dda=_0x5c572a[_0x573783])&&(_0x102996=_0x235dda(_0x102996)||_0x102996);return _0x102996;},Je=(_0x57045d,_0x28a2d7)=>(_0x184895,_0x1b4c19)=>_0x28a2d7(_0x184895,_0x1b4c19,_0x57045d);let Ne=class extends _0x44d3a6{constructor(_0x4adca1,_0x17c83f){const _0x10797e=_0x2f663e;super(),this[_0x10797e(0x1c0)]=_0x4adca1,this[_0x10797e(0x1f3)]=_0x17c83f,this[_0x10797e(0x163)]();}[_0x2f663e(0x163)](){const _0xf6ec45=_0x2f663e,_0x5b3b64=this;this[_0xf6ec45(0x1e9)](this['_docClipboardService'][_0xf6ec45(0x183)]({'onBeforePasteImage':async _0x50da9a=>{const _0x43c3e=_0xf6ec45,_0x283a84=await _0x5b3b64[_0x43c3e(0x1f3)][_0x43c3e(0x281)](_0x50da9a);return _0x283a84?{'source':_0x283a84[_0x43c3e(0x28f)],'imageSourceType':_0x283a84[_0x43c3e(0x81)]}:null;}}));}};Ne=li([Je(0x0,_0x27074a),Je(0x1,_0x9be677)],Ne);const Ze=[_0x2f663e(0x1d2),_0x2f663e(0x96),'green.600',_0x2f663e(0x15d),_0x2f663e(0xe5),_0x2f663e(0x10b)];class ke extends _0x2c599b{constructor(){const _0x5432a2=_0x2f663e;super(...arguments),_(this,_0x5432a2(0xf0),new Map()),_(this,_0x5432a2(0x238),0x0);}[_0x2f663e(0x1db)](_0xedbdd1){const _0x2df021=_0x2f663e;if(this[_0x2df021(0xf0)][_0x2df021(0x14b)](_0xedbdd1))return this[_0x2df021(0xf0)][_0x2df021(0xda)](_0xedbdd1);const _0x40077b=Ze[this[_0x2df021(0x238)]];return this[_0x2df021(0x238)]=(this[_0x2df021(0x238)]+0x1)%Ze['length'],this['_assignedColors'][_0x2df021(0x144)](_0xedbdd1,_0x40077b),_0x40077b;}}function Tt(_0x1411b1){const _0x45d0c2=_0x2f663e;let _0x46a515='';for(const _0x1d6d22 of _0x1411b1){const {startOffset:_0x49e43e,endOffset:_0x5e896f,isActive:_0x1f4d43,rangeType:_0xfc4684,segmentId:_0x555758,segmentPage:_0x5649bd}=_0x1d6d22;_0x46a515[_0x45d0c2(0x85)]&&(_0x46a515+=','),_0x46a515+=_0x49e43e+':'+_0x5e896f+':'+(_0x1f4d43?'1':'0')+':'+_0xfc4684+':'+_0x555758+':'+_0x5649bd;}return _0x46a515;}function _i(_0x551b85){const _0x4b641c=_0x2f663e,_0x274d34=_0x551b85[_0x4b641c(0x1f8)](','),_0x12446e=[];for(const _0x4697dc of _0x274d34){const [_0x140dd8,_0x1f8b88,_0x5918cd,_0xfd4998,_0xbb5028,_0x13a49d]=_0x4697dc[_0x4b641c(0x1f8)](':');_0x12446e['push']({'startOffset':Number(_0x140dd8),'endOffset':Number(_0x1f8b88),'collapsed':_0x140dd8===_0x1f8b88,'isActive':_0x5918cd==='1','rangeType':_0xfd4998===_0x5f2260['TEXT']?_0x5f2260[_0x4b641c(0x126)]:_0x5f2260[_0x4b641c(0x20f)],'segmentId':typeof _0xbb5028==_0x4b641c(0xaf)?String(_0xbb5028):'','segmentPage':Number(_0x13a49d!=null?_0x13a49d:-0x1)});}return _0x12446e[_0x4b641c(0x129)](_0x2239d7=>_0x2239d7[_0x4b641c(0x291)])||(_0x12446e[0x0][_0x4b641c(0x291)]=!0x0),_0x12446e;}class He extends _0x44d3a6{constructor(){const _0x42de1e=_0x2f663e;super(...arguments),_(this,_0x42de1e(0x198),new _0x498be9(null)),_(this,_0x42de1e(0x27b),this[_0x42de1e(0x198)][_0x42de1e(0xce)]());}[_0x2f663e(0x1b2)](_0xe4740b){const _0x1f5240=_0x2f663e,{unitID:_0x3915fd,memberID:_0x3688c2,textRanges:_0x1c82db}=_0xe4740b,_0x464178=Tt(_0x1c82db);if(_0x464178==='')return;const _0x11d1c8={'unitID':_0x3915fd,'memberID':_0x3688c2,'selection':_0x464178};this[_0x1f5240(0x198)][_0x1f5240(0x24e)](_0x11d1c8);}}var hi=Object[_0x2f663e(0x151)],ui=(_0x3e7414,_0x451113,_0x12a135,_0x561303)=>{for(var _0x53b021=_0x561303>0x1?void 0x0:_0x561303?hi(_0x451113,_0x12a135):_0x451113,_0x54c8d9=_0x3e7414['length']-0x1,_0x1a0da1;_0x54c8d9>=0x0;_0x54c8d9--)(_0x1a0da1=_0x3e7414[_0x54c8d9])&&(_0x53b021=_0x1a0da1(_0x53b021)||_0x53b021);return _0x53b021;},P=(_0x3bd5ca,_0x5e0183)=>(_0x316751,_0x535e5d)=>_0x5e0183(_0x316751,_0x535e5d,_0x3bd5ca);const di=0x12c,fi=0x64;let Ue=class extends _0x44d3a6{constructor(_0x3369b4,_0x10919c,_0x20eedb,_0x5b80b0,_0x1772b3,_0x2b8e30,_0x33384f,_0x4105e0,_0x354d69){const _0x1f5108=_0x2f663e;super(),_(this,_0x1f5108(0xd5),!0x1),_(this,_0x1f5108(0x163),!0x1),_(this,_0x1f5108(0x26d),new _0x498be9(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x1f5108(0xce)]()),_(this,'_roomMembers$',new _0x498be9([])),_(this,_0x1f5108(0x1cd),this[_0x1f5108(0x216)]['pipe'](_0x226869(di))),_(this,_0x1f5108(0x153),_0x4decf4(_0x1b7422=>{const _0xc3e023=_0x1f5108,_0x265c7b={'eventID':_0x4827b8['UPDATE_CURSOR'],'data':{'unitID':this[_0xc3e023(0x20c)],'memberID':this['_session'][_0xc3e023(0x228)](),'selection':Tt(_0x1b7422)}};this['_session'][_0xc3e023(0x148)](_0x265c7b,this['unitID']);},fi)),(this[_0x1f5108(0x20c)]=_0x3369b4,this[_0x1f5108(0x190)]=_0x10919c,this[_0x1f5108(0x1b9)]=_0x20eedb,this[_0x1f5108(0x159)]=_0x5b80b0,this[_0x1f5108(0x1e8)]=_0x1772b3,this[_0x1f5108(0x24d)]=_0x2b8e30,this[_0x1f5108(0x10f)]=_0x33384f,this[_0x1f5108(0xf2)]=_0x4105e0,this[_0x1f5108(0xc3)]=_0x354d69);}get[_0x2f663e(0x237)](){const _0x10aa44=_0x2f663e;return this['_cursorInfo$'][_0x10aa44(0x20e)]();}get[_0x2f663e(0x1ca)](){const _0xdd4fc4=_0x2f663e;return this[_0xdd4fc4(0x216)][_0xdd4fc4(0x20e)]();}['dispose'](){const _0x38ae77=_0x2f663e;super[_0x38ae77(0x11a)](),this[_0x38ae77(0x26d)]['next'](new Map()),this[_0x38ae77(0x26d)][_0x38ae77(0x247)](),this[_0x38ae77(0x216)]['next']([]),this[_0x38ae77(0x216)][_0x38ae77(0x247)]();}['init'](){const _0x5a27e2=_0x2f663e;this['_init']||(this[_0x5a27e2(0x163)]=!0x0,this[_0x5a27e2(0x190)][_0x5a27e2(0xc2)][_0x5a27e2(0xfb)](_0x2fdde1(this[_0x5a27e2(0xa5)]))[_0x5a27e2(0xbd)](_0x214e98=>{const _0x196904=_0x5a27e2;_0x214e98===_0x22404e[_0x196904(0x1e5)]?this['_toggleOnline']():this[_0x196904(0x9f)]();}),this[_0x5a27e2(0x190)]['event$'][_0x5a27e2(0xfb)](_0x2fdde1(this['dispose$']))[_0x5a27e2(0xbd)](_0x76cf5d=>{const _0x1dcfb8=_0x5a27e2,_0x2412a=_0x76cf5d['eventID'];_0x2412a===_0x4827b8[_0x1dcfb8(0x1dc)]&&this[_0x1dcfb8(0x86)](_0x76cf5d),_0x2412a===_0x4827b8[_0x1dcfb8(0x214)]&&this[_0x1dcfb8(0x1f9)](_0x76cf5d);}),this[_0x5a27e2(0x1e9)](this[_0x5a27e2(0xc3)][_0x5a27e2(0x23f)](_0xc46ba5=>{const _0x33abfb=_0x5a27e2,_0x4406c4=_0xc46ba5['params'];_0x4406c4!=null&&this[_0x33abfb(0xd5)]&&_0xc46ba5['id']===_0x1440df['id']&&_0x4406c4[_0x33abfb(0xfa)]===this[_0x33abfb(0x20c)]&&_0x4406c4[_0x33abfb(0x286)]===!0x1&&_0x4406c4[_0x33abfb(0x112)][_0x33abfb(0x85)]>0x0&&this[_0x33abfb(0x153)](_0x4406c4[_0x33abfb(0x112)]);})),this[_0x5a27e2(0x24d)][_0x5a27e2(0x27b)][_0x5a27e2(0xfb)](_0x2fdde1(this[_0x5a27e2(0xa5)]))[_0x5a27e2(0xbd)](_0x186514=>{const _0x49b41e=_0x5a27e2;if((_0x186514==null?void 0x0:_0x186514[_0x49b41e(0x20c)])!==this[_0x49b41e(0x20c)])return;const _0x1f2415={'eventID':_0x4827b8[_0x49b41e(0x1dc)],'data':_0x186514};this[_0x49b41e(0x86)](_0x1f2415);}),this[_0x5a27e2(0x1e9)](this['_commandService'][_0x5a27e2(0x23f)](_0x321fd7=>{const _0x3dcd84=_0x5a27e2;if(_0x321fd7['params']==null)return;const _0x42b092=_0x321fd7['params'];if(_0x321fd7['id']!==_0x45c5a1['id']||_0x42b092['unitId']!==this['unitID'])return;const _0x19076f={'id':_0x3dcd84(0x89),'params':_0x42b092},_0x30f62c=this['cursorInfo'];for(const [_0x194bca,_0x297f41]of _0x30f62c){const _0x2d6cf4={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x3dcd84(0x20c)],'actions':null,'textRanges':_0x297f41['ranges']}},_0x515e02=this['_transformService'][_0x3dcd84(0xd0)](_0x19076f,_0x2d6cf4,!0x1);if(_0x2030ce(_0x515e02))throw _0x515e02[_0x3dcd84(0x217)];_0x30f62c['set'](_0x194bca,{..._0x297f41,'ranges':_0x515e02[_0x3dcd84(0x182)][_0x3dcd84(0x128)]['textRanges']});}queueMicrotask(()=>{const _0x4fd9f3=_0x3dcd84;this[_0x4fd9f3(0x26d)][_0x4fd9f3(0x24e)](_0x30f62c);});})));}[_0x2f663e(0x86)](_0x38e979){const _0x15d30a=_0x2f663e;var _0x798cc,_0x380393;const {memberID:_0x334029,selection:_0x8b58c8}=_0x38e979[_0x15d30a(0x188)],_0x49f6e6=_i(_0x8b58c8),_0x20e4dc=(_0x380393=(_0x798cc=this[_0x15d30a(0x1e8)][_0x15d30a(0xa8)](this[_0x15d30a(0x20c)],_0x334029))==null?void 0x0:_0x798cc[_0x15d30a(0x12a)])!=null?_0x380393:'Unknown\x20user',_0x30dea7={'color':this[_0x15d30a(0x159)][_0x15d30a(0x1db)](_0x334029),'name':_0x20e4dc,'ranges':_0x49f6e6},_0x40bc54=this[_0x15d30a(0x237)];_0x40bc54['set'](_0x334029,_0x30dea7),this[_0x15d30a(0x26d)]['next'](_0x40bc54);}[_0x2f663e(0x1f9)](_0x127131){const _0x39d6c0=_0x2f663e,{memberID:_0x30472c}=_0x127131[_0x39d6c0(0x188)],_0x322203=this[_0x39d6c0(0x237)];_0x322203[_0x39d6c0(0x252)](_0x30472c),this[_0x39d6c0(0x26d)][_0x39d6c0(0x24e)](_0x322203);}['_toggleOnline'](){const _0x454a46=_0x2f663e;var _0x167488;if(this[_0x454a46(0xd5)]=!0x0,((_0x167488=this[_0x454a46(0xf2)]['getFocusedUnit']())==null?void 0x0:_0x167488['getUnitId']())!==this[_0x454a46(0x20c)])return;const _0x4cfa22=this['_injector']['get'](_0x5cdeae)[_0x454a46(0x169)]();Array[_0x454a46(0x8c)](_0x4cfa22)&&_0x4cfa22[_0x454a46(0x85)]>0x0&&this['_updateLocalCursor'](_0x4cfa22);}[_0x2f663e(0x9f)](){const _0x56006d=_0x2f663e;this[_0x56006d(0xd5)]=!0x1;}};Ue=ui([P(0x2,_0xfad7a2(_0xf6ae29)),P(0x3,_0xfad7a2(ke)),P(0x4,_0xfad7a2(_0x15a097)),P(0x5,_0xfad7a2(He)),P(0x6,_0x5445bd),P(0x7,_0x4b850f),P(0x8,_0x2642f8)],Ue);var Si=Object[_0x2f663e(0x151)],mi=(_0x5f5a6c,_0x252a09,_0x2de9c2,_0x282b2e)=>{for(var _0x516c1b=_0x282b2e>0x1?void 0x0:_0x282b2e?Si(_0x252a09,_0x2de9c2):_0x252a09,_0x45d3ba=_0x5f5a6c['length']-0x1,_0x445c4e;_0x45d3ba>=0x0;_0x45d3ba--)(_0x445c4e=_0x5f5a6c[_0x45d3ba])&&(_0x516c1b=_0x445c4e(_0x516c1b)||_0x516c1b);return _0x516c1b;},x=(_0x44573f,_0x211a8c)=>(_0x185e47,_0x54ce4e)=>_0x211a8c(_0x185e47,_0x54ce4e,_0x44573f);const Ii=0x12c,gi=0x64,vi=()=>{let _0x37d6a5=[],_0x21c734=!0x1;return _0x2065fb=>{const _0x224b8c=_0x10a5;_0x37d6a5[_0x224b8c(0xa9)](_0x2065fb),_0x21c734||(_0x21c734=!0x0,setTimeout(()=>{const _0x256fab=_0x224b8c;_0x37d6a5[_0x256fab(0x1a7)](_0x38afb3=>_0x38afb3()),_0x37d6a5=[],_0x21c734=!0x1;}));};};let Me=class extends _0x44d3a6{constructor(_0x577d70,_0x507d86,_0x3f8996,_0x39b14a,_0x1c017e,_0x3be020,_0x57e9c2,_0x2d75a4){const _0x517d9b=_0x2f663e;super(),_(this,_0x517d9b(0xd5),!0x1),_(this,'_init',!0x1),_(this,_0x517d9b(0x26d),new _0x498be9(new Map())),_(this,_0x517d9b(0x13a),this[_0x517d9b(0x26d)][_0x517d9b(0xce)]()),_(this,'_roomMembers$',new _0x498be9([])),_(this,'roomMembers$',this[_0x517d9b(0x216)]['pipe'](_0x226869(Ii))),_(this,'_updateLocalCursor',_0x4decf4((_0x1120a1,_0x4f0f0e)=>{const _0xe2edbb=_0x517d9b,_0x50eb08={'eventID':_0x4827b8[_0xe2edbb(0x1dc)],'data':{'unitID':this[_0xe2edbb(0x20c)],'memberID':this[_0xe2edbb(0x190)][_0xe2edbb(0x228)](),'selection':_0x4ca576(_0x1120a1,_0x4f0f0e[_0xe2edbb(0x150)])}};this[_0xe2edbb(0x190)]['send'](_0x50eb08,this[_0xe2edbb(0x20c)]);},gi)),(this[_0x517d9b(0x20c)]=_0x577d70,this[_0x517d9b(0x190)]=_0x507d86,this[_0x517d9b(0x1b9)]=_0x3f8996,this[_0x517d9b(0x159)]=_0x39b14a,this[_0x517d9b(0x1e8)]=_0x1c017e,this[_0x517d9b(0xf2)]=_0x3be020,this['_commandService']=_0x57e9c2,this[_0x517d9b(0x1d4)]=_0x2d75a4);}get[_0x2f663e(0x237)](){const _0x168519=_0x2f663e;return this[_0x168519(0x26d)][_0x168519(0x20e)]();}get['roomMembers'](){const _0x24a396=_0x2f663e;return this[_0x24a396(0x216)][_0x24a396(0x20e)]();}['dispose'](){const _0x1d68ae=_0x2f663e;super[_0x1d68ae(0x11a)](),this[_0x1d68ae(0x26d)]['next'](new Map()),this[_0x1d68ae(0x26d)]['complete'](),this['_roomMembers$'][_0x1d68ae(0x24e)]([]),this['_roomMembers$']['complete']();}[_0x2f663e(0x161)](){const _0xfc95ac=_0x2f663e;this[_0xfc95ac(0x163)]||(this[_0xfc95ac(0x163)]=!0x0,this[_0xfc95ac(0x190)][_0xfc95ac(0xc2)][_0xfc95ac(0xfb)](_0x2fdde1(this[_0xfc95ac(0xa5)]))[_0xfc95ac(0xbd)](_0x165839=>{const _0x10561b=_0xfc95ac;_0x165839===_0x22404e[_0x10561b(0x1e5)]?this[_0x10561b(0x84)]():this[_0x10561b(0x9f)]();}),this[_0xfc95ac(0x190)][_0xfc95ac(0x26c)][_0xfc95ac(0xfb)](_0x2fdde1(this[_0xfc95ac(0xa5)]))[_0xfc95ac(0xbd)](_0xfa01bc=>{const _0x13ccac=_0xfc95ac,_0x4224b9=_0xfa01bc[_0x13ccac(0x235)];_0x4224b9===_0x4827b8[_0x13ccac(0x1dc)]&&this['_onCursorUpdate'](_0xfa01bc),_0x4224b9===_0x4827b8[_0x13ccac(0x214)]&&this['_onCursorDelete'](_0xfa01bc);}),this[_0xfc95ac(0xc8)](),this[_0xfc95ac(0x1e9)](this['_commandService'][_0xfc95ac(0x23f)](_0x591cc2=>{const _0xcf787d=_0xfc95ac;if(this[_0xcf787d(0xd5)]&&_0x591cc2['id']===_0x383d3b['id']&&_0x591cc2[_0xcf787d(0x128)][_0xcf787d(0xfa)]===this[_0xcf787d(0x20c)]){const _0x3488a4=_0x591cc2['params'];this[_0xcf787d(0x153)](_0x3488a4[_0xcf787d(0x24f)],_0x3488a4['selections'][0x0]);}})));}[_0x2f663e(0x86)](_0x4c18d3){const _0x190bb1=_0x2f663e;var _0x905be2,_0x20421f;const {memberID:_0x5ac4c8,selection:_0x1b657c}=_0x4c18d3[_0x190bb1(0x188)],{sheetName:_0x2fea67,range:_0x3b9620}=_0x320078(_0x1b657c),_0x532f88={'name':(_0x20421f=(_0x905be2=this[_0x190bb1(0x1e8)]['getMember'](this[_0x190bb1(0x20c)],_0x5ac4c8))==null?void 0x0:_0x905be2['name'])!=null?_0x20421f:_0x190bb1(0x1d1),'range':this[_0x190bb1(0x23b)](_0x2fea67,_0x3b9620),'sheetID':_0x2fea67,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5ac4c8),'selection':_0x1b657c},_0x132f54=this['cursorInfo'];_0x132f54[_0x190bb1(0x144)](_0x5ac4c8,_0x532f88),this['_cursorInfo$'][_0x190bb1(0x24e)](_0x132f54);}[_0x2f663e(0x1f9)](_0x53c43c){const _0x4f3aab=_0x2f663e,{memberID:_0xaf2769}=_0x53c43c['data'],_0x4d6d4d=this[_0x4f3aab(0x237)];_0x4d6d4d['delete'](_0xaf2769),this[_0x4f3aab(0x26d)]['next'](_0x4d6d4d);}[_0x2f663e(0x23b)](_0x7a08d8,_0x513c6c){const _0x45162a=_0x2f663e;var _0x5caa6c,_0x34ab66;const _0x22f246=(_0x34ab66=(_0x5caa6c=this['_univerInstanceService'][_0x45162a(0x15a)](this[_0x45162a(0x20c)]))==null?void 0x0:_0x5caa6c[_0x45162a(0x90)](_0x7a08d8))==null?void 0x0:_0x34ab66['getMergeData']();return(_0x22f246==null?void 0x0:_0x22f246[_0x45162a(0x7f)](_0x161626=>_0x1c0d47['contains'](_0x161626,_0x513c6c)))||_0x513c6c;}[_0x2f663e(0xc8)](){const _0xc3a449=_0x2f663e,_0x55a2bb=new _0x8b3db2(),_0x12e7e1=vi(),_0x88a46a=()=>{const _0x3c851d=_0x10a5;_0x55a2bb['dispose']();const _0x529844=(_0x43faf8,_0x1bb189,_0x296eec,_0xf3e4e)=>{const _0x77f8cd=_0x10a5;let _0x553593=[];switch(_0x43faf8['id']){case _0x7e9703[_0x77f8cd(0x17d)]:{_0x553593=_0x2f2371(_0x43faf8,_0xf3e4e);break;}case _0x7e9703[_0x77f8cd(0x1ec)]:{_0x553593=_0x3423dd(_0x43faf8,_0xf3e4e);break;}case _0x7e9703[_0x77f8cd(0x223)]:{_0x553593=_0x36e61a(_0x43faf8,_0xf3e4e);break;}case _0x7e9703[_0x77f8cd(0x269)]:{_0x553593=_0x24611e(_0x43faf8,_0xf3e4e);break;}case _0x7e9703[_0x77f8cd(0xb2)]:{_0x553593=_0x17cd93(_0x43faf8,_0xf3e4e);break;}case _0x7e9703[_0x77f8cd(0xeb)]:{_0x553593=_0xfe3638(_0x43faf8,_0xf3e4e);break;}case _0x7e9703[_0x77f8cd(0x13c)]:{_0x553593=_0x2d8a46(_0x43faf8,_0xf3e4e);break;}case _0x7e9703['RemoveColCommandId']:{_0x553593=_0x11a9f8(_0x43faf8,_0xf3e4e);break;}case _0x7e9703['RemoveRowCommandId']:{_0x553593=_0x2474aa(_0x43faf8,_0xf3e4e);break;}}const _0x596442=_0x5c47e6(_0x553593,_0xf3e4e),_0x13cd34=this[_0x77f8cd(0x237)][_0x77f8cd(0xda)](_0x1bb189);if(_0x13cd34&&_0x596442){const _0x341c2={..._0x13cd34,'range':_0x596442};this[_0x77f8cd(0x237)]['set'](_0x1bb189,_0x341c2),_0x12e7e1(()=>{const _0x465a63=_0x77f8cd,_0x2f96dc=this['_refRangeService'][_0x465a63(0x271)](_0x596442,_0x3c6e14=>(_0x2f96dc[_0x465a63(0x11a)](),_0x529844(_0x3c6e14,_0x1bb189,_0x296eec,_0x596442)));_0x55a2bb[_0x465a63(0x143)](_0x2f96dc);});}return{'redos':[],'undos':[]};};this[_0x3c851d(0x237)]['forEach']((_0x3e95ae,_0x4fe8dd)=>{const _0x2aa747=_0x3c851d,{range:_0x44523f,sheetID:_0x1c09a0}=_0x3e95ae,_0x15f92e=this[_0x2aa747(0x1d4)][_0x2aa747(0x271)](_0x44523f,_0x129283=>(_0x15f92e[_0x2aa747(0x11a)](),_0x529844(_0x129283,_0x4fe8dd,_0x1c09a0,_0x44523f)));_0x55a2bb[_0x2aa747(0x143)](_0x15f92e);});};this[_0xc3a449(0x1e9)](_0xa67f93(this[_0xc3a449(0x26d)][_0xc3a449(0xbd)](()=>{_0x88a46a();})));}[_0x2f663e(0x84)](){const _0x522bc8=_0x2f663e;var _0x4be9aa,_0xad1d79;if(this['_online']=!0x0,((_0x4be9aa=this[_0x522bc8(0xf2)]['getFocusedUnit']())==null?void 0x0:_0x4be9aa['getUnitId']())!==this[_0x522bc8(0x20c)])return;const _0x5f38ee=(_0xad1d79=this['_injector']['get'](_0xedb4a)[_0x522bc8(0x1ac)]())==null?void 0x0:_0xad1d79[0x0],_0x3e815b=this[_0x522bc8(0xf2)][_0x522bc8(0x166)](_0x39ba16[_0x522bc8(0x232)])[_0x522bc8(0x15e)]();_0x5f38ee&&_0x3e815b&&this['_updateLocalCursor'](_0x3e815b[_0x522bc8(0x1a8)](),_0x5f38ee);}[_0x2f663e(0x9f)](){const _0x4c7615=_0x2f663e;this[_0x4c7615(0xd5)]=!0x1;}};Me=mi([x(0x2,_0xfad7a2(_0xf6ae29)),x(0x3,_0xfad7a2(ke)),x(0x4,_0xfad7a2(_0x15a097)),x(0x5,_0x4b850f),x(0x6,_0x2642f8),x(0x7,_0xfad7a2(_0x635aef))],Me);var pi=Object['getOwnPropertyDescriptor'],Ci=(_0x3053fc,_0x516897,_0x58c679,_0xdd49e1)=>{const _0x4c8bb7=_0x2f663e;for(var _0x25e6c6=_0xdd49e1>0x1?void 0x0:_0xdd49e1?pi(_0x516897,_0x58c679):_0x516897,_0xa73168=_0x3053fc[_0x4c8bb7(0x85)]-0x1,_0x4ba8f6;_0xa73168>=0x0;_0xa73168--)(_0x4ba8f6=_0x3053fc[_0xa73168])&&(_0x25e6c6=_0x4ba8f6(_0x25e6c6)||_0x25e6c6);return _0x25e6c6;},Se=(_0x532321,_0x815492)=>(_0x4c4612,_0xd85d17)=>_0x815492(_0x4c4612,_0xd85d17,_0x532321);let H=class extends _0x44d3a6{constructor(_0x241222,_0x438fcd,_0x3c2491){const _0x14700e=_0x2f663e;super(),_(this,_0x14700e(0x207),new Map()),_(this,_0x14700e(0x1ed),new _0x548832()),(this[_0x14700e(0xf2)]=_0x241222,this[_0x14700e(0x1b9)]=_0x438fcd,this[_0x14700e(0x280)]=_0x3c2491,this[_0x14700e(0x163)]());}[_0x2f663e(0x11a)](){const _0x3c60e5=_0x2f663e;super[_0x3c60e5(0x11a)](),this[_0x3c60e5(0x1ed)][_0x3c60e5(0x247)](),this[_0x3c60e5(0x207)][_0x3c60e5(0x1a7)](_0x4f6927=>_0x4f6927[_0x3c60e5(0x11a)]());}[_0x2f663e(0x142)](_0x21856c){const _0x3d9801=_0x2f663e;return this['_entities'][_0x3d9801(0x14b)](_0x21856c)?this[_0x3d9801(0x207)][_0x3d9801(0xda)](_0x21856c)[_0x3d9801(0x13a)]:this[_0x3d9801(0x1ed)][_0x3d9801(0xfb)](_0x40a49c(_0x5c2da4=>_0x5c2da4[_0x3d9801(0x20c)]===_0x21856c),_0x4cff02(_0x477801=>_0x477801['cursorInfo$']));}[_0x2f663e(0x163)](){const _0x1b3a00=_0x2f663e;this[_0x1b3a00(0xf2)][_0x1b3a00(0x1ef)](_0x39ba16[_0x1b3a00(0x232)])[_0x1b3a00(0xfb)](_0x2fdde1(this['dispose$']))[_0x1b3a00(0xbd)](async _0x19af58=>{const _0x13caca=_0x1b3a00,_0x485f2d=_0x19af58[_0x13caca(0x25d)](),_0x2d8ae5=await this[_0x13caca(0x145)](_0x485f2d);this[_0x13caca(0x1ed)][_0x13caca(0x24e)](_0x2d8ae5),this['_entities'][_0x13caca(0x144)](_0x485f2d,_0x2d8ae5);}),this['_univerInstanceService'][_0x1b3a00(0x1ef)](_0x39ba16['UNIVER_DOC'])[_0x1b3a00(0xfb)](_0x2fdde1(this[_0x1b3a00(0xa5)]))[_0x1b3a00(0xfb)](_0x40a49c(_0x10862f=>!_0x10862f['getUnitId']()[_0x1b3a00(0xdf)]('__')))[_0x1b3a00(0xbd)](async _0x312d99=>{const _0x39a5d8=_0x1b3a00,_0x38962f=_0x312d99['getUnitId'](),_0x99a2b0=await this[_0x39a5d8(0x26f)](_0x38962f);this['_entityInit$'][_0x39a5d8(0x24e)](_0x99a2b0),this[_0x39a5d8(0x207)]['set'](_0x38962f,_0x99a2b0);}),_0x57f955(this[_0x1b3a00(0xf2)][_0x1b3a00(0x13e)](_0x39ba16[_0x1b3a00(0x18a)]),this['_univerInstanceService'][_0x1b3a00(0x13e)](_0x39ba16[_0x1b3a00(0x232)]))[_0x1b3a00(0xfb)](_0x2fdde1(this[_0x1b3a00(0xa5)]))[_0x1b3a00(0xbd)](_0x7c0b2b=>{const _0x280e8e=_0x1b3a00,_0x4bc80e=_0x7c0b2b[_0x280e8e(0x25d)](),_0x5721cf=this['_entities'][_0x280e8e(0xda)](_0x4bc80e);_0x5721cf&&(_0x5721cf[_0x280e8e(0x11a)](),this[_0x280e8e(0x207)]['delete'](_0x4bc80e));});}async[_0x2f663e(0x145)](_0x31090f){const _0x26a55d=_0x2f663e,_0x341dbd=await this[_0x26a55d(0x280)][_0x26a55d(0x1f0)](_0x31090f),_0x3192e1=this[_0x26a55d(0x1b9)][_0x26a55d(0x104)](Me,_0x31090f,_0x341dbd);return _0x3192e1[_0x26a55d(0x161)](),_0x3192e1;}async[_0x2f663e(0x26f)](_0xfa9f90){const _0x546ff1=_0x2f663e,_0x4841fa=await this[_0x546ff1(0x280)][_0x546ff1(0x1f0)](_0xfa9f90),_0x10e788=this['_injector'][_0x546ff1(0x104)](Ue,_0xfa9f90,_0x4841fa);return _0x10e788[_0x546ff1(0x161)](),_0x10e788;}};H=Ci([Se(0x0,_0x4b850f),Se(0x1,_0xfad7a2(_0xf6ae29)),Se(0x2,_0xfad7a2(_0x54fbb4))],H);function _0x10a5(_0x8c73de,_0x722bb9){const _0x4f54d0=_0x4f54();return _0x10a5=function(_0x10a574,_0x208f20){_0x10a574=_0x10a574-0x7b;let _0x2dd3b9=_0x4f54d0[_0x10a574];return _0x2dd3b9;},_0x10a5(_0x8c73de,_0x722bb9);}const ee=0x14,Qe=0xc8,me=0x4,Ei=0x5;function Oi(_0x487fef,_0x465173){const _0xb80276=_0x2f663e;let {radius:_0xfb001e,width:_0x23ccd7,height:_0x5b1e92}=_0x465173;_0xfb001e=_0xfb001e!=null?_0xfb001e:0x0,_0x23ccd7=_0x23ccd7!=null?_0x23ccd7:0x1e,_0x5b1e92=_0x5b1e92!=null?_0x5b1e92:0x1e;let _0x1a64d8=0x0,_0x3899bf=0x0,_0x15999f=0x0;_0x1a64d8=_0x3899bf=_0x15999f=Math[_0xb80276(0x272)](_0xfb001e,_0x23ccd7/0x2,_0x5b1e92/0x2),_0x487fef[_0xb80276(0xf1)](),_0x487fef[_0xb80276(0x1fa)](_0x1a64d8,0x0),_0x487fef[_0xb80276(0x185)](_0x23ccd7-_0x3899bf,0x0),_0x487fef['arc'](_0x23ccd7-_0x3899bf,_0x3899bf,_0x3899bf,Math['PI']*0x3/0x2,0x0,!0x1),_0x487fef[_0xb80276(0x185)](_0x23ccd7,_0x5b1e92-_0x15999f),_0x487fef[_0xb80276(0x1f1)](_0x23ccd7-_0x15999f,_0x5b1e92-_0x15999f,_0x15999f,0x0,Math['PI']/0x2,!0x1),_0x487fef[_0xb80276(0x185)](0x0,_0x5b1e92),_0x487fef[_0xb80276(0x185)](0x0,_0x1a64d8),_0x487fef[_0xb80276(0x1f1)](_0x1a64d8,_0x1a64d8,_0x1a64d8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x487fef['closePath'](),_0x465173['fill']&&(_0x487fef[_0xb80276(0x23c)](),_0x487fef[_0xb80276(0x226)]=_0x465173[_0xb80276(0x1be)],_0x465173[_0xb80276(0x25b)]===_0xb80276(0x16d)?_0x487fef['fill']('evenodd'):_0x487fef[_0xb80276(0x1be)](),_0x487fef[_0xb80276(0xb4)]());}class he extends _0xedbeaf{constructor(_0x56d258,_0x89e492){const _0x486946=_0x2f663e;super(_0x56d258,_0x89e492),_(this,'color'),_(this,_0x486946(0x1dd)),(this[_0x486946(0x1e4)]=_0x89e492==null?void 0x0:_0x89e492[_0x486946(0x1e4)],this['text']=_0x89e492==null?void 0x0:_0x89e492[_0x486946(0x1dd)]);}static[_0x2f663e(0x17b)](_0x57a6ea,_0x13c015){const _0x5af268=_0x2f663e,{text:_0x187228,color:_0x2eb51f}=_0x13c015;_0x57a6ea['save'](),_0x57a6ea['font']=_0x5af268(0x181);const _0x6847d3=_0x57a6ea[_0x5af268(0x138)](_0x187228)[_0x5af268(0x213)],_0x4b7097=Math['min'](_0x6847d3+0x2*me,Qe);Oi(_0x57a6ea,{'height':ee,'radius':0x4,'width':_0x4b7097,'fill':_0x2eb51f}),_0x57a6ea[_0x5af268(0x226)]='#FFF';const _0x406c25=me,_0x3efd3f=ee-Ei,_0x2ab31e=Qe-0x2*me;if(_0x6847d3>_0x2ab31e){let _0x549fa7='',_0x88788b=0x0;for(const _0x400e85 of _0x187228){const _0x3020ef=_0x57a6ea[_0x5af268(0x138)](_0x400e85)[_0x5af268(0x213)];if(_0x88788b+_0x3020ef<=_0x2ab31e-_0x57a6ea[_0x5af268(0x138)](_0x5af268(0x1d6))[_0x5af268(0x213)])_0x549fa7+=_0x400e85,_0x88788b+=_0x3020ef;else{_0x549fa7+=_0x5af268(0x1d6);break;}}_0x57a6ea[_0x5af268(0x204)](_0x549fa7,_0x406c25,_0x3efd3f);}else _0x57a6ea[_0x5af268(0x204)](_0x187228,_0x406c25,_0x3efd3f);_0x57a6ea[_0x5af268(0xb4)]();}[_0x2f663e(0x189)](_0x3f5fa8){const _0x3586b0=_0x2f663e;he[_0x3586b0(0x17b)](_0x3f5fa8,this);}}const Ie=_0x2f663e(0x7d),bi=_0x2f663e(0x7b),Ti=_0x2f663e(0xe4),X=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x2f663e(0x127);class qe{constructor(_0x565e63,_0x2a140d,_0x28d2fc,_0x542a56){const _0xd6f470=_0x2f663e;_(this,_0xd6f470(0x21d),[]),_(this,_0xd6f470(0x245),null),_(this,'_textBubble',null),_(this,_0xd6f470(0x1e7),null),_(this,'_hideTimer',null),_(this,_0xd6f470(0x1a9),null),(this['_cursor']=_0x565e63,this[_0xd6f470(0x212)]=_0x2a140d,this[_0xd6f470(0x20a)]=_0x28d2fc,this[_0xd6f470(0x20b)]=_0x542a56,this[_0xd6f470(0x1a0)]());}set['_hover'](_0x4c1c5d){const _0x3ec672=_0x2f663e;_0x4c1c5d?(this[_0x3ec672(0x1e7)]&&this['_anchorDot']['hide'](),this[_0x3ec672(0x157)]&&this[_0x3ec672(0x157)][_0x3ec672(0xed)]()):(this[_0x3ec672(0x1e7)]&&this[_0x3ec672(0x1e7)][_0x3ec672(0xed)](),this[_0x3ec672(0x157)]&&this['_textBubble'][_0x3ec672(0x199)]());}[_0x2f663e(0x11a)](){const _0x4871bc=_0x2f663e;for(const _0x17dc31 of this[_0x4871bc(0x21d)])_0x17dc31[_0x4871bc(0x11a)]();this['_textBubble']&&this[_0x4871bc(0x157)][_0x4871bc(0x11a)](),this[_0x4871bc(0x1e7)]&&this[_0x4871bc(0x1e7)][_0x4871bc(0x11a)](),this[_0x4871bc(0x245)]&&this['_anchor'][_0x4871bc(0x11a)](),this['_eventUnsubscribe']&&this[_0x4871bc(0x1a9)]();}[_0x2f663e(0x1a0)](){const _0x940621=_0x2f663e;var _0x54dbe7;const {_docSkeleton:_0x48cc97,_document:_0x3f5f12}=this,{color:_0x2d6b42,name:_0x3d829f,ranges:_0x43912d}=this[_0x940621(0x27f)],_0x46e9a8=_0x3f5f12[_0x940621(0xb3)](),{docsLeft:_0xaa106a,docsTop:_0x5904c6}=_0x46e9a8,_0x341de3=new _0x4c1219(_0x46e9a8,_0x48cc97);for(const {startOffset:_0x12a40f,endOffset:_0x44a825,rangeType:_0x223e36,segmentId:_0x438389,segmentPage:_0x576161,collapsed:_0x2eb0f5,isActive:_0x580996}of _0x43912d){const _0x246298=_0x48cc97['findNodePositionByCharIndex'](_0x12a40f,!0x0,_0x438389,_0x576161);let _0xc95645=_0x48cc97[_0x940621(0xff)](_0x44a825,!0x0,_0x438389,_0x576161);if(_0xc95645==null&&(_0xc95645=_0x48cc97[_0x940621(0xff)](_0x44a825-0x1,!0x1,_0x438389,_0x576161)),_0x580996){const {contentBoxPointGroup:_0x59fe5f}=_0x341de3[_0x940621(0x12e)](_0xc95645,_0xc95645);if(_0x59fe5f['length']===0x0)continue;this[_0x940621(0x255)](_0x2d6b42,_0x59fe5f,_0xaa106a,_0x5904c6,_0x3d829f),this[_0x940621(0x1a9)]=this[_0x940621(0x120)]();}if(_0x246298&&_0xc95645){if(_0x223e36===_0x5f2260['RECT']){const _0x1ba043=new _0x2f4f15(_0x46e9a8,_0x48cc97),{pointGroup:_0x31d7d5}=(_0x54dbe7=_0x1ba043[_0x940621(0x12e)](_0x246298,_0xc95645))!=null?_0x54dbe7:{};if(_0x31d7d5==null||_0x31d7d5[_0x940621(0x85)]===0x0)continue;this['_drawRectRange'](_0x2d6b42,_0x31d7d5,_0xaa106a,_0x5904c6);}else{if(!_0x2eb0f5){const {borderBoxPointGroup:_0x3917d9}=_0x341de3['getRangePointData'](_0x246298,_0xc95645);if(_0x3917d9[_0x940621(0x85)]===0x0)continue;this[_0x940621(0xd4)](_0x2d6b42,_0x3917d9,_0xaa106a,_0x5904c6);}}}}}[_0x2f663e(0x255)](_0x10a1c0,_0x154665,_0x56ba89,_0xeb9ebd,_0x312cfa){const _0x336c1a=_0x2f663e,_0x3e4985=this[_0x336c1a(0x8b)](_0x154665),{left:_0x7090c,top:_0x5587a8,height:_0x414d42}=_0x3e4985,_0x4cbe22=this[_0x336c1a(0xaa)](),_0x12c842=Di/_0x4cbe22,_0x40a9f8=new _0x3fbab6(Ie+_0x1cca84['generateRandomId'](X),{'left':_0x7090c+_0x56ba89-_0x12c842,'top':_0x5587a8+_0xeb9ebd,'height':_0x414d42,'width':Ri,'fill':_0x10a1c0||_0x597969(_0x114d48[_0x336c1a(0x1da)],0x0),'strokeWidth':_0x12c842,'stroke':Ni,'evented':!0x0});this[_0x336c1a(0x245)]=_0x40a9f8,this['_scene']['addObject'](_0x40a9f8,_0x3b16f3);const _0x176af8=new _0x3fbab6(Ie+_0x1cca84[_0x336c1a(0x18b)](X),{'left':_0x7090c+_0x56ba89-_0x12c842,'top':_0x5587a8+_0xeb9ebd-ge/0x2,'height':ge,'width':ge,'fill':_0x10a1c0||_0x597969(_0x114d48[_0x336c1a(0x1da)],0x0),'strokeWidth':0x0,'stroke':_0x10a1c0||_0x597969(_0x114d48['black'],0x0),'evented':!0x1});this[_0x336c1a(0x1e7)]=_0x176af8,this[_0x336c1a(0x212)][_0x336c1a(0x19e)](_0x176af8,_0x3b16f3);const _0x20dd00=new he(Ie+_0x1cca84[_0x336c1a(0x18b)](X),{'left':_0x7090c+_0x56ba89-_0x12c842,'top':_0x5587a8+_0xeb9ebd-ee,'text':_0x312cfa,'color':_0x10a1c0});this[_0x336c1a(0x157)]=_0x20dd00,this[_0x336c1a(0x212)][_0x336c1a(0x19e)](_0x20dd00,_0x3b16f3),this[_0x336c1a(0x1b0)]=!0x1;}[_0x2f663e(0x120)](){const _0x439361=_0x2f663e,_0x4ca0e7=this[_0x439361(0x245)][_0x439361(0x187)][_0x439361(0x95)](()=>{const _0x431646=_0x439361;this[_0x431646(0x1b0)]=!0x0;}),_0x26bea9=this[_0x439361(0x245)]['onPointerLeave$'][_0x439361(0x95)](()=>{const _0xc188dd=_0x439361;this[_0xc188dd(0x26a)]&&clearTimeout(this[_0xc188dd(0x26a)]),this['_hideTimer']=setTimeout(()=>{const _0x50e218=_0xc188dd;this[_0x50e218(0x1b0)]=!0x1;},0x7d0);});return()=>{_0x4ca0e7['unsubscribe'](),_0x26bea9['unsubscribe']();};}[_0x2f663e(0xd4)](_0x1bd5fc,_0x595459,_0x104fc7,_0x166305){const _0x2e85c5=_0x2f663e,_0xed0b21=new _0x494120(_0x1bd5fc)[_0x2e85c5(0x14a)](0.2)[_0x2e85c5(0x141)](),_0x294745=new _0x2a2416(bi+_0x1cca84[_0x2e85c5(0x18b)](X),{'pointsGroup':_0x595459,'fill':_0xed0b21||_0x597969(_0x114d48['black'],0.2),'left':_0x104fc7,'top':_0x166305,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e85c5(0x21d)][_0x2e85c5(0xa9)](_0x294745),this[_0x2e85c5(0x212)][_0x2e85c5(0x19e)](_0x294745,_0x3b16f3);}['_drawRectRange'](_0x3a60d8,_0x541bc4,_0x383406,_0x49a6d8){const _0x5946a1=_0x2f663e,_0xd9ddc5=new _0x494120(_0x3a60d8)[_0x5946a1(0x14a)](0.2)[_0x5946a1(0x141)](),_0x851f43=new _0x2a2416(Ti+_0x1cca84['generateRandomId'](X),{'pointsGroup':_0x541bc4,'fill':_0xd9ddc5||_0x597969(_0x114d48[_0x5946a1(0x1da)],0.2),'left':_0x383406,'top':_0x49a6d8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x851f43),this['_scene'][_0x5946a1(0x19e)](_0x851f43,_0x3b16f3);}[_0x2f663e(0x8b)](_0x5ad22b){const _0x4777ae=_0x5ad22b[0x0],_0x1601b7=_0x4777ae[0x0],_0x528361=_0x4777ae[0x2],{x:_0x54edc7,y:_0x81a562}=_0x1601b7,{x:_0x3b9ef3,y:_0x46d5a7}=_0x528361;return{'left':_0x54edc7,'top':_0x81a562,'width':_0x3b9ef3-_0x54edc7,'height':_0x46d5a7-_0x81a562};}['_getScale'](){const _0x3b88ea=_0x2f663e,{scaleX:_0x166588,scaleY:_0x414216}=this[_0x3b88ea(0x212)][_0x3b88ea(0x19f)]();return Math[_0x3b88ea(0x242)](_0x166588,_0x414216);}}var Ui=Object[_0x2f663e(0x151)],Mi=(_0x56e9d2,_0x30f0b5,_0x1779e1,_0x92c80b)=>{const _0x14e113=_0x2f663e;for(var _0x4b2188=_0x92c80b>0x1?void 0x0:_0x92c80b?Ui(_0x30f0b5,_0x1779e1):_0x30f0b5,_0x31b0c7=_0x56e9d2[_0x14e113(0x85)]-0x1,_0x1affa5;_0x31b0c7>=0x0;_0x31b0c7--)(_0x1affa5=_0x56e9d2[_0x31b0c7])&&(_0x4b2188=_0x1affa5(_0x4b2188)||_0x4b2188);return _0x4b2188;},Z=(_0x494035,_0x4cc7ae)=>(_0x19927b,_0xb7e935)=>_0x4cc7ae(_0x19927b,_0xb7e935,_0x494035);let Le=class extends _0x44d3a6{constructor(_0x1a5bfc,_0x8a16b5,_0x34dda2,_0x28325c,_0x1d4a37){const _0x1252dd=_0x2f663e;super(),_(this,_0x1252dd(0xcc),[]),_(this,_0x1252dd(0x1a2),[]),(this[_0x1252dd(0x1fb)]=_0x1a5bfc,this['_docSkeletonManagerService']=_0x8a16b5,this[_0x1252dd(0x277)]=_0x34dda2,this['_commandService']=_0x28325c,this[_0x1252dd(0x18e)]=_0x1d4a37,this[_0x1252dd(0x163)]());}[_0x2f663e(0x163)](){const _0x3537d3=_0x2f663e,_0x286e81=this[_0x3537d3(0x1fb)][_0x3537d3(0xfa)],_0x144d42=this[_0x3537d3(0x130)];this[_0x3537d3(0x1e9)](_0xc070e4([this['_collabCursorController'][_0x3537d3(0x142)](_0x286e81),this[_0x3537d3(0x18e)]['currentTheme$']])[_0x3537d3(0xfb)](_0x1c5977(([_0x71badd,_0xea8c5d])=>({'skeleton':_0x144d42['getSkeleton'](),'cursors':[..._0x71badd[_0x3537d3(0x205)]()][_0x3537d3(0x152)](_0x5da677=>({..._0x5da677,'color':this[_0x3537d3(0x18e)][_0x3537d3(0x14f)](_0x5da677[_0x3537d3(0x1e4)])}))})))['subscribe'](_0x7d323=>{const _0x4ef6a0=_0x3537d3;if(this[_0x4ef6a0(0x125)](),_0x7d323){const {skeleton:_0x3fc27f,cursors:_0x564bc8}=_0x7d323;this[_0x4ef6a0(0x290)](_0x3fc27f,_0x564bc8);}})),this[_0x3537d3(0xd7)](),this[_0x3537d3(0x165)]();}[_0x2f663e(0x290)](_0x3ffc6c,_0x45ac0a){const _0x413e94=_0x2f663e,{scene:_0xd63b03,mainComponent:_0x2b1195}=this[_0x413e94(0x1fb)],_0x420fc6=_0x45ac0a[_0x413e94(0x14e)](_0x20a46b=>new qe(_0x20a46b,_0xd63b03,_0x3ffc6c,_0x2b1195));this[_0x413e94(0xcc)]=_0x420fc6,this[_0x413e94(0x1a2)]=_0x45ac0a;}[_0x2f663e(0x179)](){const _0x4d2e90=_0x2f663e;this[_0x4d2e90(0x125)]();const {scene:_0x1c9c95,mainComponent:_0x2511cf}=this['_context'],_0x2d6168=this['_docSkeletonManagerService']['getSkeleton'](),_0x25ec15=this[_0x4d2e90(0x1a2)][_0x4d2e90(0x14e)](_0x9a97e=>new qe(_0x9a97e,_0x1c9c95,_0x2d6168,_0x2511cf));this[_0x4d2e90(0xcc)]=_0x25ec15;}[_0x2f663e(0x125)](){const _0x4ff444=_0x2f663e;this[_0x4ff444(0xcc)]['forEach'](_0x3023bd=>_0x3023bd[_0x4ff444(0x11a)]()),this[_0x4ff444(0xcc)]=[];}['_initCommandExecutedListener'](){const _0x8c8987=_0x2f663e,_0x54979b=[_0x3793b1['id']];this[_0x8c8987(0x1e9)](this[_0x8c8987(0xc3)][_0x8c8987(0x23f)](_0x46bdd2=>{const _0x31e269=_0x8c8987;_0x54979b[_0x31e269(0x202)](_0x46bdd2['id'])&&_0x46bdd2[_0x31e269(0x128)]['unitId']===this[_0x31e269(0x1fb)][_0x31e269(0xfa)]&&this[_0x31e269(0x179)]();}));}[_0x2f663e(0xd7)](){const _0x2ccb24=_0x2f663e;this[_0x2ccb24(0x1e9)](_0x592685(this[_0x2ccb24(0x1fb)][_0x2ccb24(0x229)]['onTransformChange$'])[_0x2ccb24(0xfb)](_0x111884(_0x8d50a4=>_0x8d50a4[_0x2ccb24(0x1a4)]===_0x5e00e4[_0x2ccb24(0xcb)]),_0x23ea35(0x10))[_0x2ccb24(0xbd)](()=>{const _0xd857ba=_0x2ccb24;this[_0xd857ba(0x179)]();}));}};Le=Mi([Z(0x1,_0xfad7a2(_0x52dcf8)),Z(0x2,_0xfad7a2(H)),Z(0x3,_0x2642f8),Z(0x4,_0xfad7a2(_0x1aa687))],Le);const Li=0x1,Pi=1.5;class wi extends _0xedbeaf{constructor(_0x57cbc7,_0x1df5cc){const _0x35c74=_0x2f663e;super(_0x57cbc7,_0x1df5cc),_(this,_0x35c74(0xba)),_(this,_0x35c74(0x8a),!0x1),_(this,_0x35c74(0x25a)),_(this,'_name',''),_(this,_0x35c74(0x184),_0x35c74(0x200)),_(this,_0x35c74(0x250)),(_0x1df5cc&&this[_0x35c74(0x1bd)](_0x1df5cc),this[_0x35c74(0x187)][_0x35c74(0x95)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x35c74(0x1c9)]['subscribeEvent'](()=>this[_0x35c74(0x1bd)]({'hovered':!0x1})));}['setShapeProps'](_0x14993c){const _0x18752d=_0x2f663e;var _0x12772e,_0x402fbb,_0x5dee1e,_0x4e059b,_0x58a1a4,_0x1860cb;this[_0x18752d(0xba)]=(_0x12772e=_0x14993c[_0x18752d(0x1e4)])!=null?_0x12772e:this[_0x18752d(0xba)],this[_0x18752d(0x8a)]=(_0x402fbb=_0x14993c[_0x18752d(0x10e)])!=null?_0x402fbb:this['_hovered'],this['_range']=(_0x5dee1e=_0x14993c[_0x18752d(0x150)])!=null?_0x5dee1e:this[_0x18752d(0x25a)],this[_0x18752d(0x20d)]=(_0x4e059b=_0x14993c[_0x18752d(0x12a)])!=null?_0x4e059b:this[_0x18752d(0x20d)],this[_0x18752d(0x184)]=(_0x58a1a4=_0x14993c[_0x18752d(0x1f7)])!=null?_0x58a1a4:this[_0x18752d(0x184)],this[_0x18752d(0x250)]=(_0x1860cb=_0x14993c[_0x18752d(0x28d)])!=null?_0x1860cb:this[_0x18752d(0x250)],this[_0x18752d(0x15b)]({'width':_0x14993c[_0x18752d(0x213)],'height':_0x14993c[_0x18752d(0x11c)]});}[_0x2f663e(0xe7)](_0xcf0435){const _0x451177=_0x2f663e,{row:_0x15a94c,column:_0x2c765e}=_0xcf0435;if(_0x15a94c>=this['_range'][_0x451177(0x17a)]&&_0x15a94c<=this[_0x451177(0x25a)][_0x451177(0x26e)]&&_0x2c765e>=this['_range'][_0x451177(0x117)]&&_0x2c765e<=this[_0x451177(0x25a)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x451177(0x1bd)]({'hovered':!0x1});}[_0x2f663e(0x249)](_0x3f1a95){return!0x1;}[_0x2f663e(0x189)](_0x50bc7e){const _0x302c8c=_0x2f663e;_0x3fbab6['drawWith'](_0x50bc7e,{'width':this[_0x302c8c(0x213)],'height':this[_0x302c8c(0x11c)],'strokeWidth':Pi,'stroke':this[_0x302c8c(0xba)],'evented':!0x1,'fill':this[_0x302c8c(0x250)]}),this[_0x302c8c(0x8a)]&&(_0x50bc7e['save'](),_0x50bc7e[_0x302c8c(0x97)](0x1,0x0,0x0,0x1,this['width'],this[_0x302c8c(0x184)]===_0x302c8c(0x10d)?0x0:-0x14),he[_0x302c8c(0x17b)](_0x50bc7e,{'text':this['_name'],'color':this[_0x302c8c(0xba)]}),_0x50bc7e[_0x302c8c(0xb4)]());}}var Ai=Object[_0x2f663e(0x151)],yi=(_0x87168a,_0x1c9cab,_0x457fcf,_0x593d98)=>{const _0xe1afc6=_0x2f663e;for(var _0x31f3b5=_0x593d98>0x1?void 0x0:_0x593d98?Ai(_0x1c9cab,_0x457fcf):_0x1c9cab,_0x4bcfcf=_0x87168a[_0xe1afc6(0x85)]-0x1,_0x287d22;_0x4bcfcf>=0x0;_0x4bcfcf--)(_0x287d22=_0x87168a[_0x4bcfcf])&&(_0x31f3b5=_0x287d22(_0x31f3b5)||_0x31f3b5);return _0x31f3b5;},ve=(_0x3240f2,_0x39b75e)=>(_0x5675d0,_0x5b6c63)=>_0x39b75e(_0x5675d0,_0x5b6c63,_0x3240f2);const $i=0x1389;let Pe=class extends _0x44d3a6{constructor(_0x2c6a18,_0x393eb7,_0xe29945,_0x1526ef){const _0x2de997=_0x2f663e;super(),_(this,'_cursors',new Set()),_(this,_0x2de997(0x258),null),(this['_context']=_0x2c6a18,this[_0x2de997(0x174)]=_0x393eb7,this['_collabCursorController']=_0xe29945,this['_themeService']=_0x1526ef,this[_0x2de997(0x163)]());}[_0x2f663e(0x163)](){const _0x205579=_0x2f663e;this[_0x205579(0x174)]['currentSkeleton$'][_0x205579(0xfb)](_0x42343d(this[_0x205579(0xa5)]),_0x3cb18c(_0x5a9853=>{const _0x59307a=_0x205579;if(_0x5a9853){const _0x28149e=_0x5a9853[_0x59307a(0xca)];return _0xc070e4(this[_0x59307a(0x277)][_0x59307a(0x142)](this[_0x59307a(0x1fb)][_0x59307a(0xfa)]),this[_0x59307a(0x18e)][_0x59307a(0xd3)])[_0x59307a(0xfb)](_0x1c5977(([_0x3ce814,_0x417b08])=>{const _0x5b82fc=_0x59307a,_0x53168d=new Map();return _0x3ce814[_0x5b82fc(0x1a7)]((_0x78541,_0x1d6ada)=>{const _0x5057a4=_0x5b82fc;if(_0x78541[_0x5057a4(0x175)]===_0x28149e){const _0x3c2c3e={..._0x78541};_0x3c2c3e[_0x5057a4(0x1e4)]=this['_themeService'][_0x5057a4(0x14f)](_0x78541[_0x5057a4(0x1e4)]),_0x53168d['set'](_0x1d6ada,_0x3c2c3e);}}),{'skeleton':_0x5a9853,'cursors':_0x53168d};}));}return _0x12df26({'skeleton':null,'cursors':new Map()});}))[_0x205579(0xbd)](({skeleton:_0x1e6d74,cursors:_0x34cf99})=>{const _0x1dc02f=_0x205579;this[_0x1dc02f(0x125)](),_0x1e6d74&&this[_0x1dc02f(0x290)](_0x1e6d74,_0x34cf99);}),this[_0x205579(0x174)][_0x205579(0x102)]['subscribe'](_0x24fe37=>{const _0xb7791f=_0x205579;if(_0x24fe37==null)return;const {skeleton:_0xc957c8}=_0x24fe37,{scene:_0x18c6b0}=this[_0xb7791f(0x1fb)];_0x18c6b0[_0xb7791f(0xa3)][_0xb7791f(0x95)](_0x4decf4(_0x4e910c=>{const _0x4c9b12=_0xb7791f;var _0x3d97c0,_0x5d2a8e;const {offsetX:_0x28dce5,offsetY:_0x16e7e0}=_0x4e910c,{x:_0x23ee30,y:_0x2fa64c}=_0x18c6b0[_0x4c9b12(0x18c)](_0x39eb06[_0x4c9b12(0x1b6)]([_0x28dce5,_0x16e7e0])),{scaleX:_0xe14f94,scaleY:_0x3db890}=_0x18c6b0[_0x4c9b12(0x19f)](),_0x45dd3b=_0x18c6b0['getViewport'](_0xd5f32a[_0x4c9b12(0x13b)]),_0x11b294=_0x18c6b0[_0x4c9b12(0x16a)](_0x39eb06[_0x4c9b12(0x1b6)]([_0x23ee30,_0x2fa64c]),_0x45dd3b),_0x4afacb=_0xc957c8[_0x4c9b12(0xdb)](_0x28dce5,_0x16e7e0,_0xe14f94,_0x3db890,_0x11b294);((_0x3d97c0=this[_0x4c9b12(0x258)])==null?void 0x0:_0x3d97c0[_0x4c9b12(0x23a)])===_0x4afacb['column']&&((_0x5d2a8e=this['_lastPointer'])==null?void 0x0:_0x5d2a8e[_0x4c9b12(0x11d)])===_0x4afacb[_0x4c9b12(0x11d)]||this[_0x4c9b12(0x1a2)][_0x4c9b12(0x1a7)](_0x322f3e=>{const _0x35d74e=_0x4c9b12;_0x322f3e[_0x35d74e(0xe7)](_0x4afacb);});},0x64));});}['_updateCollabCursors'](_0x89d002,_0x4f19a6){const _0x32a847=_0x2f663e;var _0x262a67;const _0x4a4a45=(_0x262a67=this[_0x32a847(0x174)]['getCurrent']())==null?void 0x0:_0x262a67[_0x32a847(0x22e)];if(!_0x4a4a45)return;const _0x322fa7=this['_getSheetObject']();if(!_0x322fa7)return;this[_0x32a847(0x1a2)][_0x32a847(0x1a7)](_0xfe16a5=>{const _0x5ca145=_0x32a847;_0xfe16a5[_0x5ca145(0xb9)]();});const {scene:_0x3abb7d}=_0x322fa7,_0x318431=xi(Array[_0x32a847(0x196)](_0x4f19a6[_0x32a847(0x205)]()))[_0x32a847(0x14e)](_0x228573=>{const _0x48cbc9=_0x32a847,{color:_0x5610f8,range:_0xea75eb,name:_0xa8d1df,selection:_0x517e09,sheetID:_0x2d3f99}=_0x228573,{startColumn:_0x2bb862,startRow:_0x42dcc7,endColumn:_0x2c60c1,endRow:_0x53726d}=_0xea75eb,_0x585a78=_0x3f00d9(_0x42dcc7,_0x2bb862,_0x3abb7d,_0x4a4a45),_0x43042=_0x3f00d9(_0x53726d,_0x2c60c1,_0x3abb7d,_0x4a4a45),{columnHeaderHeightAndMarginTop:_0x1af912}=_0x4a4a45,{startX:_0x2e3100,startY:_0x2b6f29}=_0x585a78,{endX:_0x29667c,endY:_0x210bd3}=_0x43042,_0x9e3b97=_0x29667c-_0x2e3100,_0x1092a2=_0x210bd3-_0x2b6f29,_0x1815e2={'labelPosition':_0x2b6f29-_0x1af912>=ee?_0x48cbc9(0x200):_0x48cbc9(0x10d),'sheetID':_0x2d3f99,'range':_0xea75eb,'color':_0x5610f8,'name':_0xa8d1df,'selection':_0x517e09,'left':_0x2e3100,'top':_0x2b6f29,'width':_0x9e3b97,'height':_0x1092a2,'evented':!0x1,'zIndex':$i};return new wi(_0xa8d1df,_0x1815e2);});_0x3abb7d[_0x32a847(0x177)](_0x318431,Li),this[_0x32a847(0x1a2)]=new Set(_0x318431);}[_0x2f663e(0x125)](){const _0x65fd3=_0x2f663e;var _0x28058d;(_0x28058d=this[_0x65fd3(0x1a2)])==null||_0x28058d['forEach'](_0x5f2f92=>_0x5f2f92['dispose']());}[_0x2f663e(0x14c)](){const _0x794404=_0x2f663e;return _0x37871e(this[_0x794404(0x1fb)]['unit'],this['_context']);}};Pe=yi([ve(0x1,_0xfad7a2(_0x3950f2)),ve(0x2,_0xfad7a2(H)),ve(0x3,_0xfad7a2(_0x1aa687))],Pe);function xi(_0x5b44fe){const _0x3631fa=_0x2f663e,_0x147a03=new Map();return _0x5b44fe[_0x3631fa(0x1a7)](_0x1df835=>{const _0x199eb0=_0x3631fa;if(_0x147a03[_0x199eb0(0x14b)](_0x1df835['selection'])){const _0x3d164b=_0x147a03['get'](_0x1df835[_0x199eb0(0x103)]);_0x3d164b['name']+=',\x20'+_0x1df835[_0x199eb0(0x12a)];}else _0x147a03[_0x199eb0(0x144)](_0x1df835[_0x199eb0(0x103)],_0x1df835);}),Array[_0x3631fa(0x196)](_0x147a03[_0x3631fa(0x205)]());}var v=function(){const _0x2f1a32=_0x2f663e;return v=Object[_0x2f1a32(0xac)]||function(_0x378c38){const _0x2a7cde=_0x2f1a32;for(var _0x157fe5,_0x3ed818=0x1,_0x5f2597=arguments['length'];_0x3ed818<_0x5f2597;_0x3ed818++){_0x157fe5=arguments[_0x3ed818];for(var _0x368a82 in _0x157fe5)Object[_0x2a7cde(0xc9)][_0x2a7cde(0x113)][_0x2a7cde(0x88)](_0x157fe5,_0x368a82)&&(_0x378c38[_0x368a82]=_0x157fe5[_0x368a82]);}return _0x378c38;},v[_0x2f1a32(0x220)](this,arguments);},Bi=function(_0x3b5d79,_0x2e5c28){const _0x9cf840=_0x2f663e;var _0x3460bd={};for(var _0x226ff0 in _0x3b5d79)Object['prototype']['hasOwnProperty'][_0x9cf840(0x88)](_0x3b5d79,_0x226ff0)&&_0x2e5c28['indexOf'](_0x226ff0)<0x0&&(_0x3460bd[_0x226ff0]=_0x3b5d79[_0x226ff0]);if(_0x3b5d79!=null&&typeof Object[_0x9cf840(0x1de)]==_0x9cf840(0x16f)){for(var _0xbd30e1=0x0,_0x226ff0=Object[_0x9cf840(0x1de)](_0x3b5d79);_0xbd30e1<_0x226ff0[_0x9cf840(0x85)];_0xbd30e1++)_0x2e5c28[_0x9cf840(0xf5)](_0x226ff0[_0xbd30e1])<0x0&&Object[_0x9cf840(0xc9)][_0x9cf840(0x1cb)][_0x9cf840(0x88)](_0x3b5d79,_0x226ff0[_0xbd30e1])&&(_0x3460bd[_0x226ff0[_0xbd30e1]]=_0x3b5d79[_0x226ff0[_0xbd30e1]]);}return _0x3460bd;},Fe=_0x4dd606(function(_0x2743f8,_0x159627){const _0x26ca9b=_0x2f663e;var _0x1b1746=_0x2743f8[_0x26ca9b(0x267)],_0x9112=_0x2743f8['id'],_0x9c0c74=_0x2743f8['className'],_0x60713b=_0x2743f8[_0x26ca9b(0x22f)],_0x20cfd6=Bi(_0x2743f8,['icon','id',_0x26ca9b(0x194),_0x26ca9b(0x22f)]),_0x23df0e=_0x26ca9b(0x1ba)[_0x26ca9b(0x123)](_0x9112,'\x20')[_0x26ca9b(0x123)](_0x9c0c74||'')[_0x26ca9b(0x139)](),_0x34e6d5=_0x5efa58('_'[_0x26ca9b(0x123)](Fi()));return Rt(_0x1b1746,''[_0x26ca9b(0x123)](_0x9112),{'defIds':_0x1b1746[_0x26ca9b(0xc4)],'idSuffix':_0x34e6d5[_0x26ca9b(0x28e)]},v({'ref':_0x159627,'className':_0x23df0e},_0x20cfd6),_0x60713b);});function Rt(_0x44e774,_0x5c0cbd,_0x7f15c0,_0x269240,_0x13fef2){const _0x5a3d28=_0x2f663e;return _0x48d228(_0x44e774[_0x5a3d28(0x1c1)],v(v({'key':_0x5c0cbd},ki(_0x44e774,_0x7f15c0,_0x13fef2)),_0x269240),(Hi(_0x44e774,_0x7f15c0)['children']||[])['map'](function(_0x594665,_0x371a16){const _0x1bd051=_0x5a3d28;return Rt(_0x594665,''[_0x1bd051(0x123)](_0x5c0cbd,'-')[_0x1bd051(0x123)](_0x44e774[_0x1bd051(0x1c1)],'-')[_0x1bd051(0x123)](_0x371a16),_0x7f15c0,void 0x0,_0x13fef2);}));}function _0x4f54(){const _0xb72105=['http://www.w3.org/2000/svg','_cursors','transformRemoteChangeset','type','on-line-icon_clip0_910_349','_createSocketURL','forEach','getSheetId','_eventUnsubscribe','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collaborationController','getCurrentSelections','SNAPSHOT_INVALID_SNAPSHOT','WECHAT_HAS_BEEN_BOUND','_uiPartsService','_hover','mutations','syncEditingCollabCursor','SOCKET_FAILED','CONNECTOR_DATA_TOO_LARGE','_instanceService','FromArray','pluginName','saveTaskMap','_injector','univerjs-icon\x20univerjs-icon-','8FuprUz','_initStatusListener','setShapeProps','fill','ticket','_docClipboardService','tag','EMAIL_HAS_BEEN_BOUND','_urlService','CLOSE_ROOM','CONFLICT','off-line-icon_clip0_910_343','_initDependencies','INVALID_ARGUMENT','onPointerLeave$','roomMembers','propertyIsEnumerable','disableLocalCache','roomMembers$','Failed','LICENSE_MAX_UNITS_EXCEEDED','registerRenderModule','Unknown\x20user','purple.300','url(#off-line-icon_clip0_910_343)','_refRangeService','reconnect','...','setConfig','body','OTHER_CLIENTS_EDITING','black','assignAColorForMemberID','UPDATE_CURSOR','text','getOwnPropertySymbols','_configService','122nNKPTX','NOT_COLLAB','registerComponent','NOT_FOUND','color','ONLINE','svg','_anchorDot','_memberService','disposeWithMe','memberID','_getSessionTicket','DeleteRangeMoveUpCommandId','_entityInit$','_localCacheService','getTypeOfUnitAdded$','requireSession','arc','clipPath','_imageIoService','INTERNAL_ERROR','onStarting','CHANGESET_REVISION_CONFILICT','labelPosition','split','_onCursorDelete','moveTo','_context','transformIMECache','INVITE_CODE_HAS_BEEN_UES','registerBeforeClose','APPLY_NON_SEQUENTIAL_REVISION','top','INVITE_CODE_ALREADY_BOUND','includes','FETCH_MISS','fillText','values','setItem','_entities','_revisionService','displayName','_docSkeleton','_document','unitID','_name','getValue','RECT','setParam','setActiveRange','_scene','width','USERS_LEAVE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_roomMembers$','error','key','YUUMI_ASYNCIO_CANCELLED','result','getStateCache','saveOfflineData','_shapes','YUUMI_ALL_TABLES_IS_INVALID','APPLY_REJECT','apply','/run/','3031364hKcTjb','InsertColCommandId','redoState','_transformHistoryAndStateStack','fillStyle','0\x200\x2017\x2016','getMemberID','engine','_initStatusComponent','currentColor','round','whenReady','skeleton','extend','AWAITING_WITH_PENDING','_docTransformSelectionsService','UNIVER_SHEET','post','MUTATION','eventID','undoState','cursorInfo','_colorIndex','getUnhiddenWorksheets','column','_getMergeRange','save','onLocalMutation','ENSURE_SNAPSHOT_EXECUTION','onCommandExecuted','all','transformStateCache','max','_docTransformStateCacheService','JOIN_ROOM_FAILED','_anchor','getFocusedUnit','complete','APPLY_DUPLICATED','triggerDblclick','white','OTHER_CLIENT_EDITING','_registerDependencies','_syncEditingCollabCursorService','next','subUnitId','_backgroundColor','debug','delete','_heartbeatTimer','collaboration-client.offline-data-not-saved','_drawAnchor','use','_saveTaskMap','_lastPointer','search','_range','fillRule','with','getUnitId','_getSaveTimeout','collab-client.tooltip.reconnect','_initEvent','YUUMI_TABLE_NOT_FOUND_IN_UNIT','override','session.will-retry','getRenderById','PENDING','replaceState','icon','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','InsertRangeMoveDownCommandId','_hideTimer','application/json','event$','_cursorInfo$','endRow','_startDocCollabCursor','collabStatus.conflict','registerRefRange','min','_updateURLWithCurrentState','MOBILE_VERIFY_CODE_MISMATCH','YUUMI_AI_RUN_FAILED','_setupSubUnitSync','_collabCursorController','LICENSE_DISTRO_REJECTED','path','transformSelections','collabCursorState$','7734402VvlFtz','1em','OffLineIcon','_cursor','_collabSessionService','saveImage','collabStatus.synced','enableLocalCache','focused$','defs','isEditing','colorChannel1','13652970PJHVkV','Error','unshift','_scheduleSaving','HEADER_MENU','backgroundColor','current','source','_updateCollabCursors','isActive','collab-text-range-','docStateChange$','collab-text-anchor-','_handleJoinEvent','find','collabStatus.syncing','imageSourceType','transformMutationsWithChangeset','stringify','_toggleOnline','length','_onCursorUpdate','size','call','doc.mutation.rich-text-editing','_hovered','_getAnchorBounding','isArray','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docStateChangeManagerService','YUUMI_CONNECTOR_URL_NOT_FOUND','getSheetBySheetId','_handleHeartbeatEvent','UniverIcon','YUUMI_NO_CUBOID_FOR_QUESTION','xlink:href','subscribeEvent','jiqing.500','transform','collabStatus.offline','_logService','deepClone','SUBMIT_CHANGESET_TIMEOUT','_status$','USER_NOT_INVITED_CODE','clearTimeout','_toggleOffline','entries','status$','9687czKKmP','onPointerMove$','getUndoRedoMutationParamsCache','dispose$','_localStorageService','SNAPSHOT_HAS_BEEN_REMOVED','getMember','push','_getScale','6PwyjZY','assign','storage','0\x200\x2016\x2016','string','children','unit','InsertRangeMoveRightCommandId','getOffsetConfig','restore','_httpService','getCurrentRevOfUnit','addEventListener','removeParam','makeDirty','_color','_scheduleClearOtherTimer','INVALID_INVITE_CODE','subscribe','_saveCache','LICENSE_EXPORT_SIZE_EXCEEDED','_transformPreviousActiveRange','popstate','sessionStatus$','_commandService','defIds','attrs','_clearOtherTimers','_unitOnClients','_onRefRangeChange','prototype','sheetId','resize','_cursorShapes','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','asObservable','1772875EkOqDa','transformMutation','idSuffix','NO_OTHER_CLIENTS_EDITING','currentTheme$','_drawTextRange','_online','url(#$1','_initResize','permission.content','ACTIVE_UNIT_EVENT_CHANNEL','get','getCellPositionByOffset','Warning','location','_renderManagerService','startsWith','_collaborationUIEventService','setTimeout','_setupBeforeClosingHandler','runId','collab-rect-range-','blue.400','setInterval','onMouseMove','symbol','invokeId','executionId','InsertRowCommandId','univer-mr-2\x20univer-flex\x20univer-text-xl','show','_cachedData','_docTransformIMECacheService','_assignedColors','beginPath','_univerInstanceService','activeSheet$','YUUMI_SUBSCRIPTION_NOT_FOUND','indexOf','[CollaborationDataLoaderController]','_transformUndoRedoStack','_registerRenderDependencies','LOGIN_FAILED','unitId','pipe','_selfUnitIDs','INVITE_CODE_REQUIRED','OFFLINE','findNodePositionByCharIndex','_updateSubUnitFromURLParams','mask','currentSkeleton$','selection','createInstance','disposeUnit','searchParams','collaboration-client-ui.config','_unitStatus','none','history','yellow.400','textRanges','bottom','hovered','_transformService','getConfig','sessionTicket','ranges','hasOwnProperty','_docSyncEditingCollabCursorService','LICENSE_IMPORT_SIZE_EXCEEDED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','startColumn','wsSessionTicketUrl','urlChange$','dispose','UNAUTHENTICATED','height','row','off-line-icon','_messageService','_handleHover','_localeService','OnLineIcon','concat','87259ixxHho','_removeCollabCursors','TEXT','rgba(255,\x20255,\x20255,\x200.01)','params','some','name','href','subunit','PY_RUNTIME_SCRIPT_ERROR','getRangePointData','clearInterval','_docSkeletonManagerService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_disabled','m1Prime','pushState','getParam','SOCKET_FAILED_RETRY','EMAIL_VERIFY_CODE_MISMATCH','measureText','trim','cursorInfo$','VIEW_MAIN','MoveRangeCommandId','_removeClearOtherTimer','getTypeOfUnitDisposed$','UNRECOGNIZED','APPLY_REVISION_CONFILICT','toRgbString','getCollabCursors$','add','set','_startSheetCollabCursor','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collaboration.closeRoom','send','exhaustSavingTask','setAlpha','has','_getSheetObject','_id','map','getColorFromTheme','range','getOwnPropertyDescriptor','flatMap','_updateLocalCursor','origin','SYNCED','ALREADY_EXISTS','_textBubble','COMPLETION_FINISHED','_colorAssignService','getUniverSheetInstance','transformByState','getCollabEntity$','red.300','getActiveSheet','loadUnit','loadOfflineData','init','_ensureSubject','_init','collabStatus.fetchMiss','_initCommandExecutedListener','getCurrentUnitForType','getUnitStatus$','getItem','getDocRanges','getVpScrollXYInfoByPosToVp','_handleLeaveEvent','toString','evenodd','M0\x200H16V16H0z','function','_config','PERMISSION_DENIED','UNDEFINED','_scheduleHeartbeat','_sheetSkeletonManagerService','sheetID','then','addObjects','code','_refreshCollabCursors','startRow','drawWith','div','DeleteRangeMoveLeftCommandId','_send','setStateCache','executeCommand','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','m2Prime','addClipboardHook','_labelPosition','lineTo','2788212PhsIKc','onPointerEnter$','data','_draw','UNIVER_DOC','generateRandomId','getRelativeToViewportCoord','YUUMI_URL_COL_OUT_OF_RANGE','_themeService','_initEntityListener','_session','replace','_handleEvent','session.connection-failed','className','_dataLoaderService','from','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collabCursorState$','hide','YUUMI_UNABLE_LOAD_URL','addHandlerCallback','defineProperty','YUUMI_RATE_OVER_LIMIT','addObject','getAncestorScale','_render'];_0x4f54=function(){return _0xb72105;};return _0x4f54();}function ki(_0xd896e9,_0x49d381,_0x5e1838){const _0x291f12=_0x2f663e;var _0x350822=v({},_0xd896e9[_0x291f12(0xc5)]);_0x5e1838!=null&&_0x5e1838[_0x291f12(0x287)]&&_0x350822[_0x291f12(0x1be)]==='colorChannel1'&&(_0x350822['fill']=_0x5e1838[_0x291f12(0x287)]),_0xd896e9[_0x291f12(0x1c1)]===_0x291f12(0x101)&&_0x350822['id']&&(_0x350822['id']=_0x350822['id']+_0x49d381['idSuffix']),Object['entries'](_0x350822)[_0x291f12(0x1a7)](function(_0x497a4b){const _0x1a975d=_0x291f12;var _0x131119=_0x497a4b[0x0],_0x4dd1b5=_0x497a4b[0x1];_0x131119==='mask'&&typeof _0x4dd1b5==_0x1a975d(0xaf)&&(_0x350822[_0x131119]=_0x4dd1b5[_0x1a975d(0x191)](/url\(#(.*)\)/,_0x1a975d(0xd6)[_0x1a975d(0x123)](_0x49d381['idSuffix'],')')));});var _0x5b549d=_0x49d381[_0x291f12(0xc4)];return!_0x5b549d||_0x5b549d[_0x291f12(0x85)]===0x0||(_0xd896e9['tag']===_0x291f12(0x256)&&_0x350822[_0x291f12(0x94)]&&(_0x350822['xlink:href']=_0x350822[_0x291f12(0x94)]+_0x49d381[_0x291f12(0xd1)]),Object[_0x291f12(0xa0)](_0x350822)[_0x291f12(0x1a7)](function(_0x49a78a){const _0x12f9e6=_0x291f12;var _0xcbfed2=_0x49a78a[0x0],_0x4428fd=_0x49a78a[0x1];typeof _0x4428fd==_0x12f9e6(0xaf)&&(_0x350822[_0xcbfed2]=_0x4428fd[_0x12f9e6(0x191)](/url\(#(.*)\)/,_0x12f9e6(0xd6)[_0x12f9e6(0x123)](_0x49d381[_0x12f9e6(0xd1)],')')));})),_0x350822;}function Hi(_0x2138f7,_0x5378ff){const _0x4c5dfd=_0x2f663e;var _0x12d6df,_0x47d3fa=_0x5378ff[_0x4c5dfd(0xc4)];return!_0x47d3fa||_0x47d3fa[_0x4c5dfd(0x85)]===0x0?_0x2138f7:_0x2138f7[_0x4c5dfd(0x1c1)]===_0x4c5dfd(0x285)&&(!((_0x12d6df=_0x2138f7['children'])===null||_0x12d6df===void 0x0)&&_0x12d6df[_0x4c5dfd(0x85)])?v(v({},_0x2138f7),{'children':_0x2138f7[_0x4c5dfd(0xb0)]['map'](function(_0x51fe39){const _0x1626a9=_0x4c5dfd;return typeof _0x51fe39[_0x1626a9(0xc5)]['id']==_0x1626a9(0xaf)&&_0x47d3fa&&_0x47d3fa['includes'](_0x51fe39[_0x1626a9(0xc5)]['id'])?v(v({},_0x51fe39),{'attrs':v(v({},_0x51fe39[_0x1626a9(0xc5)]),{'id':_0x51fe39[_0x1626a9(0xc5)]['id']+_0x5378ff['idSuffix']})}):_0x51fe39;})}):_0x2138f7;}function Fi(){const _0x2c78e8=_0x2f663e;return Math['random']()[_0x2c78e8(0x16c)](0x24)['substring'](0x2,0x8);}Fe[_0x2f663e(0x209)]=_0x2f663e(0x92);var Yi={'tag':'svg','attrs':{'xmlns':_0x2f663e(0x1a1),'fill':'none','viewBox':_0x2f663e(0xae),'width':_0x2f663e(0x27d),'height':_0x2f663e(0x27d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2f663e(0x1d3)},'children':[{'tag':_0x2f663e(0x279),'attrs':{'stroke':'currentColor','d':_0x2f663e(0x268),'strokeLinecap':_0x2f663e(0x22c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2f663e(0x285),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2f663e(0x1c6)},'children':[{'tag':_0x2f663e(0x279),'attrs':{'fill':'white','d':_0x2f663e(0x16e)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Dt=_0x4dd606(function(_0x3b5dce,_0x3b5799){const _0xc2d839=_0x2f663e;return _0x48d228(Fe,Object[_0xc2d839(0xac)]({},_0x3b5dce,{'id':_0xc2d839(0x11e),'ref':_0x3b5799,'icon':Yi}));});Dt[_0x2f663e(0x209)]=_0x2f663e(0x27e);var ji={'tag':_0x2f663e(0x1e6),'attrs':{'xmlns':_0x2f663e(0x1a1),'fill':_0x2f663e(0x109),'viewBox':_0x2f663e(0x227),'width':'1em','height':_0x2f663e(0x27d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2f663e(0x279),'attrs':{'stroke':_0x2f663e(0x22b),'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':_0x2f663e(0x22c),'strokeLinejoin':_0x2f663e(0x22c),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2f663e(0x1f2),'attrs':{'id':_0x2f663e(0x1a5)},'children':[{'tag':'path','attrs':{'fill':_0x2f663e(0x24a),'d':_0x2f663e(0x16e),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2f663e(0x1a5)]},Nt=_0x4dd606(function(_0x462b5e,_0x5ba4e4){return _0x48d228(Fe,Object['assign']({},_0x462b5e,{'id':'on-line-icon','ref':_0x5ba4e4,'icon':ji}));});Nt[_0x2f663e(0x209)]=_0x2f663e(0x122);function Vi(_0x54ca99){const _0x7492eb=_0x2f663e;switch(_0x54ca99){case _0x5acc60['OFFLINE']:return _0x7492eb(0x98);case _0x5acc60['CONFLICT']:return _0x7492eb(0x270);case _0x5acc60[_0x7492eb(0x203)]:return _0x7492eb(0x164);case _0x5acc60['NOT_COLLAB']:return'collabStatus.notCollab';case _0x5acc60['AWAITING']:case _0x5acc60[_0x7492eb(0x230)]:return _0x7492eb(0x80);case _0x5acc60[_0x7492eb(0x155)]:case _0x5acc60[_0x7492eb(0x265)]:return _0x7492eb(0x282);}}function Wi(_0x4fd09c){const _0x1b8966=_0x2f663e,{status$:_0x3e8216}=_0x4fd09c,_0x187db1=_0x4929d9(_0x3e8216,_0x5acc60[_0x1b8966(0x1e1)]),_0x1debf1=_0x115dee(_0x558eaa),_0x30b99d=_0x115dee(_0x54fbb4),_0x130e3c=_0x187db1!==_0x5acc60[_0x1b8966(0xfe)],_0x3415fa=_0x1debf1['t'](Vi(_0x187db1)),_0x10add6=_0x130e3c?_0x14ec18(Nt,{}):_0x14ec18(Dt,{}),_0x45bb9e=_0x43f4dc(()=>{const _0x106d37=_0x1b8966;_0x130e3c||_0x30b99d[_0x106d37(0x1d5)]();},[_0x130e3c,_0x30b99d]);function _0x5e7571(){const _0x5e80ab=_0x1b8966;return _0x5e558b(_0x5e80ab(0x17c),{'className':'univer-flex\x20univer-items-center','onClick':_0x45bb9e,'children':[_0x14ec18('div',{'className':_0x4d5517(_0x5e80ab(0xec),{'univer-text-green-500':_0x130e3c,'univer-text-red-500':!_0x130e3c}),'children':_0x10add6}),_0x14ec18(_0x5e80ab(0x17c),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3415fa})]});}return _0x130e3c?_0x5e7571():_0x14ec18(_0xc0360d,{'title':_0x1debf1['t'](_0x1b8966(0x25f)),'children':_0x5e7571()});}var Xi=Object[_0x2f663e(0x151)],Gi=(_0x3e454e,_0x129894,_0x59234f,_0x5ee087)=>{const _0x31f196=_0x2f663e;for(var _0x27b4a6=_0x5ee087>0x1?void 0x0:_0x5ee087?Xi(_0x129894,_0x59234f):_0x129894,_0xb5659f=_0x3e454e[_0x31f196(0x85)]-0x1,_0x2c1ee5;_0xb5659f>=0x0;_0xb5659f--)(_0x2c1ee5=_0x3e454e[_0xb5659f])&&(_0x27b4a6=_0x2c1ee5(_0x27b4a6)||_0x27b4a6);return _0x27b4a6;},Q=(_0x2ebd96,_0x449f10)=>(_0x2de8f0,_0x23d774)=>_0x449f10(_0x2de8f0,_0x23d774,_0x2ebd96);let te=class extends _0x2c599b{constructor(_0x164dec,_0x3dc55a,_0x1e6d16,_0x1c2626){const _0x331388=_0x2f663e;super(),_(this,_0x331388(0x9c),new _0x498be9(_0x5acc60['NOT_COLLAB'])),(this['_univerInstanceService']=_0x164dec,this[_0x331388(0x1b9)]=_0x3dc55a,this[_0x331388(0x1ab)]=_0x1e6d16,this['_uiPartsService']=_0x1c2626,this[_0x331388(0x22a)](),this['_initStatusListener']());}[_0x2f663e(0x1bc)](){const _0x1fd24b=_0x2f663e;this[_0x1fd24b(0x1e9)](this[_0x1fd24b(0xf2)][_0x1fd24b(0x284)][_0x1fd24b(0xfb)](_0x4cff02(()=>{const _0x8c9a8d=_0x1fd24b,_0x2c9d5c=this[_0x8c9a8d(0xf2)]['getFocusedUnit']();return _0x2c9d5c?this['_collaborationController'][_0x8c9a8d(0x15c)](_0x2c9d5c['getUnitId']()):_0x12df26(null);}),_0x4cff02(_0x5aa5a2=>_0x5aa5a2?_0x5aa5a2[_0x1fd24b(0xa1)]:_0x12df26(_0x5acc60[_0x1fd24b(0x1e1)])))[_0x1fd24b(0xbd)](_0x5f49c8=>{const _0x29365d=_0x1fd24b;this[_0x29365d(0x9c)][_0x29365d(0x24e)](_0x5f49c8);}));}[_0x2f663e(0x22a)](){const _0x16e556=_0x2f663e;this[_0x16e556(0x1e9)](this[_0x16e556(0x1af)][_0x16e556(0x1e2)](_0x15f948[_0x16e556(0x28c)],()=>_0xe36a25(Ki({'status$':this[_0x16e556(0x9c)][_0x16e556(0xce)]()}),this[_0x16e556(0x1b9)])));}};te=Gi([Q(0x0,_0x4b850f),Q(0x1,_0xfad7a2(_0xf6ae29)),Q(0x2,_0xfad7a2(_0xe2bf29)),Q(0x3,_0x1d47ed)],te);function Ki(_0x1144ad){const {status$:_0x170f90}=_0x1144ad;return function(){return _0x14ec18(Wi,{'status$':_0x170f90});};}var zi=Object[_0x2f663e(0x151)],Ji=(_0x1d031b,_0x42a139,_0x5d3377,_0x49e2b0)=>{const _0x3497c1=_0x2f663e;for(var _0x4d9994=_0x49e2b0>0x1?void 0x0:_0x49e2b0?zi(_0x42a139,_0x5d3377):_0x42a139,_0x220bf2=_0x1d031b[_0x3497c1(0x85)]-0x1,_0x7ffcf;_0x220bf2>=0x0;_0x220bf2--)(_0x7ffcf=_0x1d031b[_0x220bf2])&&(_0x4d9994=_0x7ffcf(_0x4d9994)||_0x4d9994);return _0x4d9994;},B=(_0x288b0c,_0x3d4b8f)=>(_0x1966ab,_0x29fffa)=>_0x3d4b8f(_0x1966ab,_0x29fffa,_0x288b0c);let se=class extends _0x2c599b{constructor(_0x118610,_0x165378,_0xe5c7f0,_0x8db114,_0x5b70f8,_0x2b60d9){const _0x255bcd=_0x2f663e;super(),this['_beforeCloseService']=_0x118610,this[_0x255bcd(0x1ee)]=_0x165378,this['_collaborationUIEventService']=_0xe5c7f0,this[_0x255bcd(0x11f)]=_0x8db114,this['_notificationService']=_0x5b70f8,this['_localeService']=_0x2b60d9,this[_0x255bcd(0xe2)](),this[_0x255bcd(0x260)]();}[_0x2f663e(0xe2)](){const _0x2e7779=_0x2f663e;this[_0x2e7779(0x1e9)](this['_beforeCloseService'][_0x2e7779(0x1fe)](()=>{const _0x38f56b=_0x2e7779;if(this[_0x38f56b(0x1ee)][_0x38f56b(0x1b8)][_0x38f56b(0x87)])return this[_0x38f56b(0x121)]['t'](_0x38f56b(0x254));}));}[_0x2f663e(0x260)](){const _0x4ee11d=_0x2f663e;this[_0x4ee11d(0x1e9)](this[_0x4ee11d(0xe0)]['event$'][_0x4ee11d(0xbd)](_0x390906=>{const _0x4525f8=_0x4ee11d;_0x390906['id']===_0x3de1b3[_0x4525f8(0x24b)]&&this['_messageService'][_0x4525f8(0xed)]({'type':_0xc7c325[_0x4525f8(0xdc)],'content':this[_0x4525f8(0x121)]['t']('collaboration.single-unit.warning')}),_0x390906['id']===_0x3de1b3[_0x4525f8(0x1c4)]&&this[_0x4525f8(0x11f)]['show']({'type':_0xc7c325[_0x4525f8(0xdc)],'content':this[_0x4525f8(0x121)]['t'](_0x4525f8(0x147))}),_0x390906['id']===_0x3de1b3[_0x4525f8(0x171)]&&this['_notificationService']['show']({'title':this[_0x4525f8(0x121)]['t']('permission.title'),'content':this[_0x4525f8(0x121)]['t'](_0x4525f8(0xd8)),'type':'error','duration':0x0}),_0x390906['id']===_0x3de1b3[_0x4525f8(0x1c5)]&&this[_0x4525f8(0x11f)][_0x4525f8(0xed)]({'type':_0xc7c325['Error'],'content':this[_0x4525f8(0x121)]['t'](_0x4525f8(0x147))+'('+_0x390906[_0x4525f8(0x188)]+')'}),_0x390906['id']===_0x3de1b3[_0x4525f8(0x244)]&&this[_0x4525f8(0x11f)][_0x4525f8(0xed)]({'type':_0xc7c325[_0x4525f8(0xdc)],'content':this[_0x4525f8(0x121)]['t'](_0x390906['data']||'')}),_0x390906['id']===_0x3de1b3[_0x4525f8(0x136)]&&this[_0x4525f8(0x11f)]['show']({'type':_0xc7c325['Warning'],'content':this[_0x4525f8(0x121)]['t'](_0x4525f8(0x263))}),_0x390906['id']===_0x3de1b3[_0x4525f8(0x1b3)]&&this[_0x4525f8(0x11f)][_0x4525f8(0xed)]({'type':_0xc7c325[_0x4525f8(0x289)],'content':this[_0x4525f8(0x121)]['t'](_0x4525f8(0x193))}),_0x390906['id']===_0x3de1b3[_0x4525f8(0x9b)]&&this[_0x4525f8(0x11f)][_0x4525f8(0xed)]({'type':_0xc7c325[_0x4525f8(0x289)],'content':this[_0x4525f8(0x121)]['t']('session.collaboration-timeout')});}));}};se=Ji([B(0x0,_0x137831),B(0x1,_0x4c8f60),B(0x2,_0xfad7a2(_0x561115)),B(0x3,_0x16d6e7),B(0x4,_0x4a01b0),B(0x5,_0xfad7a2(_0x558eaa))],se);const Zi=_0x2f663e(0x107),et={},Ut=_0x777ed7('uni.network.url-service');var Qi=Object[_0x2f663e(0x151)],qi=(_0x1fd0bf,_0x5d55fa,_0x5c63c0,_0x302ef8)=>{for(var _0x27052e=_0x302ef8>0x1?void 0x0:_0x302ef8?Qi(_0x5d55fa,_0x5c63c0):_0x5d55fa,_0x36ee8b=_0x1fd0bf['length']-0x1,_0x2b5753;_0x36ee8b>=0x0;_0x36ee8b--)(_0x2b5753=_0x1fd0bf[_0x36ee8b])&&(_0x27052e=_0x2b5753(_0x27052e)||_0x27052e);return _0x27052e;},G=(_0x11ad22,_0x16e812)=>(_0x2091b3,_0x1f29e1)=>_0x16e812(_0x2091b3,_0x1f29e1,_0x11ad22);let ie=class extends _0x44d3a6{constructor(_0x24bb12,_0x32bc14,_0x4106d1,_0x3dc11f,_0x32c239){const _0xf8a28d=_0x2f663e;super(),this[_0xf8a28d(0x1c3)]=_0x24bb12,this['_logService']=_0x32bc14,this[_0xf8a28d(0xc3)]=_0x4106d1,this[_0xf8a28d(0x195)]=_0x3dc11f,_0x32c239?_0x32c239==null||_0x32c239[_0xf8a28d(0x22d)]()[_0xf8a28d(0x176)](()=>this[_0xf8a28d(0x163)]()):(this[_0xf8a28d(0x99)]['debug'](_0xf8a28d(0xf6),_0xf8a28d(0x8d)),this[_0xf8a28d(0x163)]());}async[_0x2f663e(0x163)](){const _0x147d71=_0x2f663e,_0x1f28d1=this['_urlService'][_0x147d71(0x135)](_0x147d71(0xb1)),_0x300277=this[_0x147d71(0x1c3)][_0x147d71(0x135)](_0x147d71(0x1a4)),_0x38410f=this[_0x147d71(0x1c3)]['getParam']('subunit');if(!_0x1f28d1||!_0x300277){this[_0x147d71(0x99)][_0x147d71(0x251)](_0x147d71(0xf6),_0x147d71(0x1aa));return;}const _0x176157=await this[_0x147d71(0x195)][_0x147d71(0x15f)](_0x1f28d1,Number(_0x300277),_0x38410f);_0x176157&&_0x176157 instanceof _0x4dae10&&this[_0x147d71(0x276)](_0x176157);}async[_0x2f663e(0x276)](_0x46b6f1){const _0x1d8269=_0x2f663e;await this['_updateSubUnitFromURLParams'](_0x46b6f1),_0x46b6f1[_0x1d8269(0xf3)][_0x1d8269(0xfb)](_0x2fdde1(this[_0x1d8269(0xa5)]))['subscribe'](_0x2e77a3=>{_0x2e77a3&&this['_updateURLWithCurrentState'](_0x2e77a3);}),this[_0x1d8269(0x1c3)][_0x1d8269(0x119)][_0x1d8269(0xfb)](_0x2fdde1(this[_0x1d8269(0xa5)]))[_0x1d8269(0xbd)](()=>this[_0x1d8269(0x100)](_0x46b6f1));}['_updateURLWithCurrentState'](_0x4b321b,_0x268557=!0x1){const _0x377254=_0x2f663e,_0x12939d=this['_urlService']['getParam'](_0x377254(0x12c));_0x4b321b[_0x377254(0x1a8)]()!==_0x12939d&&this[_0x377254(0x1c3)]['setParam'](_0x377254(0x12c),_0x4b321b[_0x377254(0x1a8)](),_0x268557);}async['_updateSubUnitFromURLParams'](_0x28e9da){const _0xee3070=_0x2f663e;var _0x8b8ed4;const _0x426056=this[_0xee3070(0x1c3)]['getParam'](_0xee3070(0x12c));if(!_0x426056||!_0x28e9da['getSheetBySheetId'](_0x426056)){const _0xc44681=_0x28e9da[_0xee3070(0x239)]()[0x0],_0x282c30=_0x28e9da[_0xee3070(0x90)](_0xc44681);if(!_0x282c30)return;this[_0xee3070(0x273)](_0x282c30,!0x0),await this[_0xee3070(0xc3)][_0xee3070(0x180)](_0x5afe82['id'],{'unitId':_0x28e9da[_0xee3070(0x25d)](),'subUnitId':_0xc44681});return;}((_0x8b8ed4=_0x28e9da['getActiveSheet']())==null?void 0x0:_0x8b8ed4['getSheetId']())!==_0x426056&&await this[_0xee3070(0xc3)]['executeCommand'](_0x5afe82['id'],{'unitId':_0x28e9da[_0xee3070(0x25d)](),'subUnitId':_0x426056});}};ie=qi([G(0x0,Ut),G(0x1,_0x54f831),G(0x2,_0x2642f8),G(0x3,_0xfad7a2(_0x270f1a)),G(0x4,_0x5b52a0(_0xc0efe0))],ie);var en=Object[_0x2f663e(0x151)],tn=(_0xa4985e,_0x4e0b3c,_0x222697,_0x39b928)=>{const _0x30e313=_0x2f663e;for(var _0x282c93=_0x39b928>0x1?void 0x0:_0x39b928?en(_0x4e0b3c,_0x222697):_0x4e0b3c,_0x213b6e=_0xa4985e[_0x30e313(0x85)]-0x1,_0x3e2a1e;_0x213b6e>=0x0;_0x213b6e--)(_0x3e2a1e=_0xa4985e[_0x213b6e])&&(_0x282c93=_0x3e2a1e(_0x282c93)||_0x282c93);return _0x282c93;},pe=(_0x3210c4,_0x8bbf0a)=>(_0x819ee7,_0x567da1)=>_0x8bbf0a(_0x819ee7,_0x567da1,_0x3210c4);let ne=class{constructor(_0x1d90dd,_0x471960,_0x1a4fb1){const _0x46bb6b=_0x2f663e;this['_injector']=_0x1d90dd,this['_transformService']=_0x471960,this[_0x46bb6b(0xde)]=_0x1a4fb1;}[_0x2f663e(0x1fc)](_0x2b28df){const _0x5a4913=_0x2f663e;this[_0x5a4913(0xf7)](_0x2b28df),this[_0x5a4913(0xc0)](_0x2b28df);}[_0x2f663e(0x1a3)](_0x1b1542){const _0xceaa0f=_0x2f663e,{unitID:_0x53fde2}=_0x1b1542,_0x3b0eb5=this[_0xceaa0f(0xde)][_0xceaa0f(0x264)](_0x53fde2)[_0xceaa0f(0x25c)](_0x597c7e),{redoCache:_0x3c5c2e}=_0x3b0eb5[_0xceaa0f(0xa4)]();if(_0x3c5c2e['length']===0x0)return _0x1b1542;let _0x2a03f6=_0x1cca84[_0xceaa0f(0x9a)](_0x1b1542[_0xceaa0f(0x1b1)][0x0]);for(let _0x4b2517=0x0;_0x4b2517<_0x3c5c2e['length'];_0x4b2517++){const _0x5672f9={'id':'doc.mutation.rich-text-editing','params':{..._0x3c5c2e[_0x4b2517]}},_0x367ef7=this[_0xceaa0f(0x10f)][_0xceaa0f(0xd0)](_0x2a03f6,_0x5672f9,!0x1);if(_0x2030ce(_0x367ef7))throw _0x367ef7['error'];_0x2a03f6=_0x367ef7[_0xceaa0f(0x133)];}return{..._0x1cca84[_0xceaa0f(0x9a)](_0x1b1542),'mutations':[_0x2a03f6]};}[_0x2f663e(0xf7)](_0x25e2b8){const _0x49b867=_0x2f663e,{unitID:_0x37950d}=_0x25e2b8,_0x90d8fa=this[_0x49b867(0xde)][_0x49b867(0x264)](_0x37950d)['with'](_0x597c7e),{undoCache:_0x5ccab7,redoCache:_0x25f12d}=_0x90d8fa[_0x49b867(0xa4)]();if(_0x5ccab7[_0x49b867(0x85)]===0x0||_0x25f12d[_0x49b867(0x85)]===0x0)return;const _0x5818d0=[],_0x2663c0=[];let _0x3c87ac=_0x1cca84[_0x49b867(0x9a)](_0x25e2b8[_0x49b867(0x1b1)][0x0]),_0x565f5d=_0x1cca84[_0x49b867(0x9a)](_0x25e2b8['mutations'][0x0]);for(let _0x20d33b=_0x5ccab7[_0x49b867(0x85)]-0x1;_0x20d33b>=0x0;_0x20d33b--){const _0x106433={'id':_0x49b867(0x89),'params':{..._0x5ccab7[_0x20d33b]}},_0x4e01bd={'id':_0x49b867(0x89),'params':{..._0x25f12d[_0x20d33b]}},_0x495196=this[_0x49b867(0x10f)][_0x49b867(0xd0)](_0x3c87ac,_0x106433,!0x1),_0x3fec70=this[_0x49b867(0x10f)][_0x49b867(0xd0)](_0x565f5d,_0x4e01bd,!0x1);if(_0x2030ce(_0x495196))throw _0x495196[_0x49b867(0x217)];if(_0x2030ce(_0x3fec70))throw _0x3fec70[_0x49b867(0x217)];_0x5818d0['unshift'](_0x495196[_0x49b867(0x182)]['params']),_0x2663c0[_0x49b867(0x28a)](_0x3fec70[_0x49b867(0x182)][_0x49b867(0x128)]),_0x3c87ac=_0x495196[_0x49b867(0x133)],_0x565f5d=_0x3fec70[_0x49b867(0x133)];}_0x90d8fa['setUndoRedoMutationParamsCache']({'undoCache':_0x5818d0,'redoCache':_0x2663c0});}[_0x2f663e(0xc0)](_0x3c333c){const _0x23a95c=_0x2f663e,{unitID:_0x1345d7}=_0x3c333c,_0x331c1c=this[_0x23a95c(0xde)]['getRenderById'](_0x1345d7)[_0x23a95c(0x25c)](_0x597c7e),_0x1a5d13=_0x331c1c['getActiveRange']();if(_0x1a5d13==null)return;const _0x40e2fa=[{'id':_0x23a95c(0x89),'params':{'unitId':_0x3c333c[_0x23a95c(0x20c)],'actions':null,'textRanges':[_0x1a5d13]}}],_0x40dffe=this[_0x23a95c(0x10f)][_0x23a95c(0x82)](_0x3c333c,_0x40e2fa);if(!_0x610224(_0x40dffe))throw _0x40dffe['error'];const _0x395db8=_0x40dffe[_0x23a95c(0x182)][0x0][_0x23a95c(0x128)][_0x23a95c(0x10c)];Array[_0x23a95c(0x8c)](_0x395db8)&&_0x395db8[_0x23a95c(0x85)]&&_0x331c1c[_0x23a95c(0x211)](_0x395db8[0x0]);}};ne=tn([pe(0x0,_0xfad7a2(_0xf6ae29)),pe(0x1,_0x5445bd),pe(0x2,_0x10a1a1)],ne);var sn=Object[_0x2f663e(0x151)],nn=(_0x1cf2bb,_0x55f6ad,_0xd6fa0,_0xb84aca)=>{const _0xe4234c=_0x2f663e;for(var _0x5c793a=_0xb84aca>0x1?void 0x0:_0xb84aca?sn(_0x55f6ad,_0xd6fa0):_0x55f6ad,_0x6cc7f2=_0x1cf2bb[_0xe4234c(0x85)]-0x1,_0x209ea7;_0x6cc7f2>=0x0;_0x6cc7f2--)(_0x209ea7=_0x1cf2bb[_0x6cc7f2])&&(_0x5c793a=_0x209ea7(_0x5c793a)||_0x5c793a);return _0x5c793a;},Ce=(_0x2da670,_0x1b788b)=>(_0x668dbd,_0x529654)=>_0x1b788b(_0x668dbd,_0x529654,_0x2da670);let re=class{constructor(_0x14e586,_0x5d1c3c,_0x325c01){const _0x2403cf=_0x2f663e;this[_0x2403cf(0x1b9)]=_0x14e586,this[_0x2403cf(0x10f)]=_0x5d1c3c,this[_0x2403cf(0x8e)]=_0x325c01;}[_0x2f663e(0x241)](_0x5eccaf){const _0xc220b5=_0x2f663e;this[_0xc220b5(0x225)](_0x5eccaf);}[_0x2f663e(0x1a3)](_0x3a9c3f){const _0x46c8c1=_0x2f663e,{unitID:_0x14f06b}=_0x3a9c3f,{collaboration:_0x438136}=this[_0x46c8c1(0x8e)][_0x46c8c1(0x21b)](_0x14f06b);if(_0x438136['length']===0x0)return _0x3a9c3f;let _0x19ed5d=_0x1cca84[_0x46c8c1(0x9a)](_0x3a9c3f['mutations'][0x0]);for(let _0x569102=0x0;_0x569102<_0x438136[_0x46c8c1(0x85)];_0x569102++){const _0x540a7e={'id':_0x46c8c1(0x89),'params':{'unitId':_0x438136[_0x569102][_0x46c8c1(0xfa)],..._0x438136[_0x569102][_0x46c8c1(0x224)]}},_0x1cc939=this['_transformService'][_0x46c8c1(0xd0)](_0x19ed5d,_0x540a7e,!0x1);if(_0x2030ce(_0x1cc939))throw _0x1cc939[_0x46c8c1(0x217)];_0x19ed5d=_0x1cc939[_0x46c8c1(0x133)];}return{..._0x1cca84[_0x46c8c1(0x9a)](_0x3a9c3f),'mutations':[_0x19ed5d]};}[_0x2f663e(0x225)](_0x4dd8a1){const _0x19c4ef=_0x2f663e,{unitID:_0x9d8012}=_0x4dd8a1,{history:_0x4e8260,collaboration:_0x1fa5f6}=this[_0x19c4ef(0x8e)][_0x19c4ef(0x21b)](_0x9d8012);if(_0x4e8260[_0x19c4ef(0x85)]===0x0&&_0x1fa5f6[_0x19c4ef(0x85)]===0x0)return;const _0x3e8dd8=[],_0x341d85=[];let _0x267b99=_0x1cca84[_0x19c4ef(0x9a)](_0x4dd8a1[_0x19c4ef(0x1b1)][0x0]),_0x600422=_0x1cca84[_0x19c4ef(0x9a)](_0x4dd8a1[_0x19c4ef(0x1b1)][0x0]);for(let _0x229f3e=_0x4e8260[_0x19c4ef(0x85)]-0x1;_0x229f3e>=0x0;_0x229f3e--){const _0x4e110b={'id':_0x19c4ef(0x89),'params':{'unitId':_0x4e8260[_0x229f3e]['unitId'],..._0x4e8260[_0x229f3e][_0x19c4ef(0x236)]}},_0x2060d4={'id':_0x19c4ef(0x89),'params':{'unitId':_0x4e8260[_0x229f3e][_0x19c4ef(0xfa)],..._0x4e8260[_0x229f3e][_0x19c4ef(0x224)]}},_0x55b2f1=this['_transformService']['transformMutation'](_0x267b99,_0x4e110b,!0x1),_0x3bf42f=this['_transformService'][_0x19c4ef(0xd0)](_0x600422,_0x2060d4,!0x1);if(_0x2030ce(_0x55b2f1))throw _0x55b2f1[_0x19c4ef(0x217)];if(_0x2030ce(_0x3bf42f))throw _0x3bf42f[_0x19c4ef(0x217)];_0x3e8dd8['unshift']({..._0x4e8260[_0x229f3e],'undoState':_0x55b2f1[_0x19c4ef(0x182)][_0x19c4ef(0x128)],'redoState':_0x3bf42f['m2Prime'][_0x19c4ef(0x128)]}),_0x267b99=_0x55b2f1[_0x19c4ef(0x133)],_0x600422=_0x3bf42f[_0x19c4ef(0x133)];}_0x267b99=_0x1cca84[_0x19c4ef(0x9a)](_0x4dd8a1[_0x19c4ef(0x1b1)][0x0]),_0x600422=_0x1cca84[_0x19c4ef(0x9a)](_0x4dd8a1[_0x19c4ef(0x1b1)][0x0]);for(let _0x5e6157=_0x1fa5f6[_0x19c4ef(0x85)]-0x1;_0x5e6157>=0x0;_0x5e6157--){const _0x403264={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fa5f6[_0x5e6157]['unitId'],..._0x1fa5f6[_0x5e6157][_0x19c4ef(0x236)]}},_0x4b6fc4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fa5f6[_0x5e6157]['unitId'],..._0x1fa5f6[_0x5e6157][_0x19c4ef(0x224)]}},_0x1315e1=this[_0x19c4ef(0x10f)]['transformMutation'](_0x267b99,_0x403264,!0x1),_0x1d49ab=this[_0x19c4ef(0x10f)][_0x19c4ef(0xd0)](_0x600422,_0x4b6fc4,!0x1);if(_0x2030ce(_0x1315e1))throw _0x1315e1['error'];if(_0x2030ce(_0x1d49ab))throw _0x1d49ab[_0x19c4ef(0x217)];_0x341d85['unshift']({..._0x1fa5f6[_0x5e6157],'undoState':_0x1315e1[_0x19c4ef(0x182)][_0x19c4ef(0x128)],'redoState':_0x1d49ab[_0x19c4ef(0x182)]['params']}),_0x267b99=_0x1315e1[_0x19c4ef(0x133)],_0x600422=_0x1d49ab[_0x19c4ef(0x133)];}this[_0x19c4ef(0x8e)][_0x19c4ef(0x17f)](_0x9d8012,{'history':_0x3e8dd8,'collaboration':_0x341d85});}};re=nn([Ce(0x0,_0xfad7a2(_0xf6ae29)),Ce(0x1,_0x5445bd),Ce(0x2,_0xfad7a2(_0x1b26fc))],re);var rn=Object[_0x2f663e(0x151)],on=(_0x480b5a,_0x1a41a1,_0x2aa575,_0x3521e4)=>{const _0xd5001d=_0x2f663e;for(var _0xc9ba89=_0x3521e4>0x1?void 0x0:_0x3521e4?rn(_0x1a41a1,_0x2aa575):_0x1a41a1,_0x59fc9d=_0x480b5a[_0xd5001d(0x85)]-0x1,_0x46e3b2;_0x59fc9d>=0x0;_0x59fc9d--)(_0x46e3b2=_0x480b5a[_0x59fc9d])&&(_0xc9ba89=_0x46e3b2(_0xc9ba89)||_0xc9ba89);return _0xc9ba89;},tt=(_0x38ae58,_0xf71412)=>(_0x38fa3f,_0x48ed06)=>_0xf71412(_0x38fa3f,_0x48ed06,_0x38ae58);let oe=class{constructor(_0xea0123,_0x4bacf8){const _0x22e23d=_0x2f663e;this[_0x22e23d(0x1b9)]=_0xea0123,this['_transformService']=_0x4bacf8;}[_0x2f663e(0x27a)](_0x3ed62c){const _0x295a12=_0x2f663e;var _0x3aa707;const _0x55833a=this['_injector']['get'](_0x5cdeae),_0x40a29d=(_0x3aa707=_0x55833a['getDocRanges']())!=null?_0x3aa707:[];if(_0x40a29d[_0x295a12(0x85)]===0x0)return;const _0x20a022=_0x3ed62c[_0x295a12(0x20c)],_0x29e588=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x20a022,'actions':null,'textRanges':_0x40a29d}}],_0xcda1ca=this['_transformService']['transformMutationsWithChangeset'](_0x3ed62c,_0x29e588);if(!_0x610224(_0xcda1ca))throw _0xcda1ca[_0x295a12(0x217)];const _0x347e0d=_0xcda1ca[_0x295a12(0x182)][0x0][_0x295a12(0x128)][_0x295a12(0x10c)];Array[_0x295a12(0x8c)](_0x347e0d)&&_0x347e0d[_0x295a12(0x85)]&&_0x55833a['replaceDocRanges'](_0x347e0d,{'unitId':_0x20a022,'subUnitId':_0x20a022},!0x1);}};oe=on([tt(0x0,_0xfad7a2(_0xf6ae29)),tt(0x1,_0x5445bd)],oe);var an=Object[_0x2f663e(0x151)],cn=(_0xd6397,_0x563481,_0x5ec780,_0x305d5e)=>{const _0x4b8414=_0x2f663e;for(var _0x44e50e=_0x305d5e>0x1?void 0x0:_0x305d5e?an(_0x563481,_0x5ec780):_0x563481,_0x3fb500=_0xd6397[_0x4b8414(0x85)]-0x1,_0x30700e;_0x3fb500>=0x0;_0x3fb500--)(_0x30700e=_0xd6397[_0x3fb500])&&(_0x44e50e=_0x30700e(_0x44e50e)||_0x44e50e);return _0x44e50e;},U=(_0xeee8e0,_0x39d535)=>(_0x399f3a,_0x591e38)=>_0x39d535(_0x399f3a,_0x591e38,_0xeee8e0);let ae=class extends _0x2c599b{constructor(_0x9738c7,_0xea8bac,_0x411e10,_0x1d28ef,_0x4e8637,_0x2252d7,_0x38b200,_0x2bdb8d){const _0x102a36=_0x2f663e;super(),_(this,'_status$',new _0x498be9(_0x5acc60['NOT_COLLAB'])),(this[_0x102a36(0x8e)]=_0x9738c7,this[_0x102a36(0x1ab)]=_0xea8bac,this[_0x102a36(0xef)]=_0x411e10,this[_0x102a36(0x243)]=_0x1d28ef,this['_docTransformSelectionsService']=_0x4e8637,this[_0x102a36(0x114)]=_0x2252d7,this[_0x102a36(0x11f)]=_0x38b200,this['_localeService']=_0x2bdb8d,this[_0x102a36(0x18f)]());}[_0x2f663e(0x18f)](){const _0x1d19a7=_0x2f663e;this[_0x1d19a7(0x1e9)](this[_0x1d19a7(0x1ab)]['entityInit$'][_0x1d19a7(0xbd)](_0x21e50d=>{const _0x2ba714=_0x1d19a7,_0xa043d9=this[_0x2ba714(0x8e)][_0x2ba714(0x7c)][_0x2ba714(0xbd)](_0x2e1797=>{const _0x2cdf66=_0x2ba714;if(_0x2e1797==null)return;const {unitId:_0x2c6087,redoState:_0x1b3176,commandId:_0x5d5aeb}=_0x2e1797;if(_0x2c6087!==_0x21e50d[_0x2cdf66(0x20c)])return;const _0x2f98b7={'id':_0x5d5aeb,'type':_0x4d7c6e[_0x2cdf66(0x234)],'params':{'unitId':_0x2c6087,'actions':_0x1b3176['actions'],'textRanges':null}};_0x21e50d[_0x2cdf66(0x23d)](_0x2f98b7);});if(_0x21e50d[_0x2ba714(0x1e9)](_0xa043d9),_0x21e50d instanceof _0x20af81){const _0x2b990={'onTransformIME':_0x44826b=>this[_0x2ba714(0xef)][_0x2ba714(0x1fc)](_0x44826b),'onTransformState':_0x3ebd52=>this[_0x2ba714(0x243)]['transformStateCache'](_0x3ebd52),'onTransformSelections':_0x1e7ceb=>this[_0x2ba714(0x231)][_0x2ba714(0x27a)](_0x1e7ceb),'onSyncEditingCollabCursor':_0x314917=>this[_0x2ba714(0x114)]['syncEditingCollabCursor'](_0x314917),'onTransformRemoteChangesetByIMECache':_0x232f0a=>this[_0x2ba714(0xef)][_0x2ba714(0x1a3)](_0x232f0a),'onTransformRemoteChangesetByStateCache':_0x29c6ce=>this[_0x2ba714(0x243)][_0x2ba714(0x1a3)](_0x29c6ce)};_0x21e50d[_0x2ba714(0x19b)](_0x2b990);}}));}};ae=cn([U(0x0,_0xfad7a2(_0x1b26fc)),U(0x1,_0xfad7a2(_0xe2bf29)),U(0x2,_0xfad7a2(ne)),U(0x3,_0xfad7a2(re)),U(0x4,_0xfad7a2(oe)),U(0x5,_0xfad7a2(He)),U(0x6,_0x16d6e7),U(0x7,_0xfad7a2(_0x558eaa))],ae);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x446e15,_0xb43e9c,_0x18b3c7,_0x985133)=>{const _0x296a4c=_0x2f663e;for(var _0x55d371=_0x985133>0x1?void 0x0:_0x985133?ln(_0xb43e9c,_0x18b3c7):_0xb43e9c,_0x44071e=_0x446e15[_0x296a4c(0x85)]-0x1,_0x6f2559;_0x44071e>=0x0;_0x44071e--)(_0x6f2559=_0x446e15[_0x44071e])&&(_0x55d371=_0x6f2559(_0x55d371)||_0x55d371);return _0x55d371;},Ee=(_0x4e46a5,_0x552da3)=>(_0x4d3e98,_0x1fa643)=>_0x552da3(_0x4d3e98,_0x1fa643,_0x4e46a5);let we=class extends _0x2c599b{constructor(_0x1e1b2d,_0x3d5f5c,_0x181bae){const _0x3543d7=_0x2f663e;super(),_(this,_0x3543d7(0xee),new Map()),_(this,_0x3543d7(0x257),new Map()),_(this,'_disabled',!0x1),(this[_0x3543d7(0x1df)]=_0x1e1b2d,this[_0x3543d7(0xa6)]=_0x3d5f5c,this[_0x3543d7(0x208)]=_0x181bae);}[_0x2f663e(0x1cc)](){const _0x2ecbf8=_0x2f663e;this[_0x2ecbf8(0x132)]=!0x0;}[_0x2f663e(0x283)](){const _0x35e18c=_0x2f663e;this[_0x35e18c(0x132)]=!0x1;}get['saveTaskMap'](){const _0x1352da=_0x2f663e;return this[_0x1352da(0x257)];}[_0x2f663e(0x11a)](){const _0x446f5b=_0x2f663e;this[_0x446f5b(0x149)]()[_0x446f5b(0x176)](()=>super[_0x446f5b(0x11a)]());}async[_0x2f663e(0x160)](_0x83e979){const _0x35b620=_0x2f663e;return this[_0x35b620(0x132)]?null:this[_0x35b620(0xa6)][_0x35b620(0x168)](_0x52d65d(_0x83e979));}async[_0x2f663e(0x21c)](_0x37dbcd,_0x4891e7){const _0x4f97b1=_0x2f663e;return!!this[_0x4f97b1(0xa6)][_0x4f97b1(0x206)](_0x37dbcd,_0x4891e7);}['updateOfflineData'](_0x11785c,_0x4b91cc,_0x4a13e6,_0x396a9a){const _0x2fffe0=_0x2f663e,_0x251742=this[_0x2fffe0(0x208)][_0x2fffe0(0xb6)](_0x11785c);this[_0x2fffe0(0xee)][_0x2fffe0(0x144)](_0x11785c,{'unitID':_0x11785c,'type':_0x4b91cc,'awaitingChangeset':_0x4a13e6,'mutations':_0x396a9a,'rev':_0x251742}),this[_0x2fffe0(0x257)]['has'](_0x11785c)||this[_0x2fffe0(0x28b)](_0x11785c);}[_0x2f663e(0x28b)](_0x36a8fc){const _0x711734=_0x2f663e,_0x468c71=this[_0x711734(0x25e)]();_0x468c71===0x0?this[_0x711734(0xbe)](_0x36a8fc):this[_0x711734(0x257)][_0x711734(0x144)](_0x36a8fc,setTimeout(()=>this['_saveCache'](_0x36a8fc),_0x468c71));}[_0x2f663e(0x25e)](){const _0x372180=_0x2f663e;var _0x185ffe;return(_0x185ffe=this[_0x372180(0x1df)][_0x372180(0x110)](_0x1e5bcc))!=null?_0x185ffe:_0xbfdc93;}[_0x2f663e(0xbe)](_0x453810){const _0x3e573a=_0x2f663e,_0x19db64=this['_saveTaskMap'][_0x3e573a(0xda)](_0x453810);return _0x19db64!==void 0x0&&window[_0x3e573a(0x9e)](_0x19db64),this[_0x3e573a(0xa6)][_0x3e573a(0x206)](_0x52d65d(_0x453810),this[_0x3e573a(0xee)][_0x3e573a(0xda)](_0x453810))[_0x3e573a(0x176)](()=>this[_0x3e573a(0x257)][_0x3e573a(0x252)](_0x453810));}async[_0x2f663e(0x149)](){const _0x525d10=_0x2f663e,_0x13ac29=[];this['_saveTaskMap'][_0x525d10(0x1a7)]((_0x3846b4,_0x4b1477)=>{const _0x99b2ba=_0x525d10;window[_0x99b2ba(0x9e)](_0x3846b4),_0x13ac29['push'](this[_0x99b2ba(0xbe)](_0x4b1477)[_0x99b2ba(0x176)](()=>{const _0x42b4c0=_0x99b2ba;this[_0x42b4c0(0x257)][_0x42b4c0(0x252)](_0x4b1477);}));}),await Promise[_0x525d10(0x240)](_0x13ac29);}};we=_n([Ee(0x0,_0x7cf2a5),Ee(0x1,_0x1eccd0),Ee(0x2,_0xfad7a2(_0x158257))],we);class hn extends _0x44d3a6{constructor(){const _0x3c75c6=_0x2f663e;super(),_(this,_0x3c75c6(0x119)),this['urlChange$']=_0x39c7f3(window,_0x3c75c6(0xc1))[_0x3c75c6(0xfb)](_0x2fdde1(this['dispose$']),_0x46f86d(0x1),_0x2a445b(void 0x0));}[_0x2f663e(0x210)](_0x145d3b,_0x47f15a,_0x5eb4b6=!0x1){const _0x43f3bd=_0x2f663e,_0x5be7a2=new URL(window[_0x43f3bd(0xdd)][_0x43f3bd(0x12b)]);_0x5be7a2[_0x43f3bd(0x106)][_0x43f3bd(0x144)](_0x145d3b,_0x47f15a),_0x5eb4b6?window[_0x43f3bd(0x10a)]['replaceState']('','',_0x5be7a2[_0x43f3bd(0x16c)]()):window['history'][_0x43f3bd(0x134)]('','',_0x5be7a2[_0x43f3bd(0x16c)]());}[_0x2f663e(0xb8)](_0x59c1ee,_0xcb3579=!0x1){const _0x4c15eb=_0x2f663e,_0x13d278=new URL(window[_0x4c15eb(0xdd)][_0x4c15eb(0x12b)]);_0x13d278[_0x4c15eb(0x106)][_0x4c15eb(0x252)](_0x59c1ee),_0xcb3579?window[_0x4c15eb(0x10a)][_0x4c15eb(0x266)]('','',_0x13d278['toString']()):window[_0x4c15eb(0x10a)][_0x4c15eb(0x134)]('','',_0x13d278[_0x4c15eb(0x16c)]());}[_0x2f663e(0x135)](_0x104e4c){const _0x2407fe=_0x2f663e;var _0x189bca;return(_0x189bca=new URL(window[_0x2407fe(0xdd)][_0x2407fe(0x12b)])[_0x2407fe(0x106)]['get'](_0x104e4c))!=null?_0x189bca:void 0x0;}}var un=Object[_0x2f663e(0x19c)],dn=Object['getOwnPropertyDescriptor'],fn=(_0x2845d7,_0x4c794f,_0x38c887)=>_0x4c794f in _0x2845d7?un(_0x2845d7,_0x4c794f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38c887}):_0x2845d7[_0x4c794f]=_0x38c887,Sn=(_0x2ccf3a,_0x336129,_0x1359f6,_0x1edc45)=>{const _0x7d4be5=_0x2f663e;for(var _0x3d82d0=_0x1edc45>0x1?void 0x0:_0x1edc45?dn(_0x336129,_0x1359f6):_0x336129,_0x3b29f6=_0x2ccf3a[_0x7d4be5(0x85)]-0x1,_0x4150d2;_0x3b29f6>=0x0;_0x3b29f6--)(_0x4150d2=_0x2ccf3a[_0x3b29f6])&&(_0x3d82d0=_0x4150d2(_0x3d82d0)||_0x3d82d0);return _0x3d82d0;},Oe=(_0x36dc04,_0x7915d7)=>(_0x559897,_0x48c4c5)=>_0x7915d7(_0x559897,_0x48c4c5,_0x36dc04),mn=(_0x2b4fca,_0x1ee098,_0x129c1d)=>fn(_0x2b4fca,_0x1ee098+'',_0x129c1d);const In=_0x2f663e(0x215);let Ae=class extends _0x3358b4{constructor(_0x634892=et,_0x31658a,_0x57f95f,_0x6488d1){const _0x268d46=_0x2f663e;super(),this['_config']=_0x634892,this[_0x268d46(0xde)]=_0x31658a,this['_injector']=_0x57f95f,this[_0x268d46(0x1df)]=_0x6488d1;const {..._0xcf46e5}=_0x3b5740({},et,this[_0x268d46(0x170)]);this[_0x268d46(0x1df)][_0x268d46(0x1d7)](Zi,_0xcf46e5);}[_0x2f663e(0x1f5)](){const _0x215d0f=_0x2f663e;this[_0x215d0f(0x24c)](),this[_0x215d0f(0x1c7)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x2f663e(0x24c)](){const _0x21f28a=_0x2f663e;var _0x1e4af0;const _0x3b53a2=[[ke],[oe],[ne],[re],[He],[Ut,{'useClass':hn}],[_0x1152c1,{'useClass':_0x1ff624}],[_0x4c8f60,{'useClass':we}],[te],[ae],[se],[H],[Ne],[ie]];_0x97cf9a(this[_0x21f28a(0x1b9)],_0x2f84cf(_0x3b53a2,(_0x1e4af0=this[_0x21f28a(0x170)])==null?void 0x0:_0x1e4af0[_0x21f28a(0x262)]));}[_0x2f663e(0xf8)](){const _0x46a964=_0x2f663e;this[_0x46a964(0x1e9)](this[_0x46a964(0xde)][_0x46a964(0x1d0)](_0x39ba16[_0x46a964(0x18a)],[Le])),this['disposeWithMe'](this[_0x46a964(0xde)][_0x46a964(0x1d0)](_0x39ba16[_0x46a964(0x232)],[Pe]));}[_0x2f663e(0x1c7)](){const _0x529e16=_0x2f663e;_0x576bca(this[_0x529e16(0x1b9)],[[H],[te],[ae],[se],[ie]]);}};mn(Ae,_0x2f663e(0x1b7),In),Ae=Sn([_0x1a973b(_0x3bd9e0),Oe(0x1,_0x10a1a1),Oe(0x2,_0xfad7a2(_0xf6ae29)),Oe(0x3,_0x7cf2a5)],Ae);var gn=Object[_0x2f663e(0x151)],vn=(_0x2091c8,_0xec4263,_0x2c002b,_0x27fa22)=>{const _0x1f1ab9=_0x2f663e;for(var _0x20b6ea=_0x27fa22>0x1?void 0x0:_0x27fa22?gn(_0xec4263,_0x2c002b):_0xec4263,_0x15b424=_0x2091c8[_0x1f1ab9(0x85)]-0x1,_0x35abe2;_0x15b424>=0x0;_0x15b424--)(_0x35abe2=_0x2091c8[_0x15b424])&&(_0x20b6ea=_0x35abe2(_0x20b6ea)||_0x20b6ea);return _0x20b6ea;},K=(_0x4d9eda,_0x1f7e13)=>(_0x1bfe0f,_0x4cea98)=>_0x1f7e13(_0x1bfe0f,_0x4cea98,_0x4d9eda);let st=class extends _0x5d083c{constructor(_0x65249f,_0x166ff0,_0x23abc7,_0x5a2832,_0x70858f){super(_0x65249f,_0x166ff0,_0x23abc7,_0x5a2832,_0x70858f);}async['createSocket'](_0x2319a7){const _0x4996f4=_0x2f663e,_0x293be9=await this['_getSessionTicket'](),_0x540164=this[_0x4996f4(0x1a6)](_0x2319a7,_0x293be9);return this['_doCreateSocket'](_0x540164);}[_0x2f663e(0x1a6)](_0x232a21,_0x5b8e18){const _0x369dfb=_0x2f663e,_0x4e3aa0=typeof window>'u'?new URL(_0x232a21):new URL(_0x232a21,window[_0x369dfb(0xdd)][_0x369dfb(0x154)]);_0x4e3aa0[_0x369dfb(0x106)]['set'](_0x369dfb(0x111),_0x5b8e18);const _0x415d79=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x369dfb(0xdd)][_0x369dfb(0x259)]);return _0x415d79[_0x369dfb(0xda)](_0x369dfb(0xe3))&&_0x4e3aa0[_0x369dfb(0x106)][_0x369dfb(0x144)](_0x369dfb(0xe3),_0x415d79['get']('runId')),_0x4e3aa0[_0x369dfb(0x16c)]();}async[_0x2f663e(0x1eb)](){const _0x502248=_0x2f663e;var _0x2e33aa,_0x4e38f2,_0x4c0a84;const _0x599c46=this[_0x502248(0x1df)][_0x502248(0x110)](_0x2c2983),_0x15096d=(_0x2e33aa=_0x599c46==null?void 0x0:_0x599c46[_0x502248(0x118)])!=null?_0x2e33aa:_0x3b0275;return(_0x4c0a84=(_0x4e38f2=(await this[_0x502248(0xb5)][_0x502248(0xda)](_0x15096d,{'headers':{'Content-Type':_0x502248(0x26b)}}))[_0x502248(0x1d8)])==null?void 0x0:_0x4e38f2[_0x502248(0x1bf)])!=null?_0x4c0a84:'';}};st=vn([K(0x0,_0xfad7a2(_0xf6ae29)),K(0x1,_0xfad7a2(_0x4a5eb3)),K(0x2,_0x7cf2a5),K(0x3,_0x54f831),K(0x4,_0x2ff4e4)],st);const it=0x7530,nt=_0x2f663e(0xd9);class Fn extends _0x2c599b{constructor(){const _0x43dba4=_0x2f663e;super(),_(this,_0x43dba4(0x14d),_0x5f150b()),_(this,_0x43dba4(0xfc),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x43dba4(0x253),null),_(this,_0x43dba4(0xc6),new Map()),_(this,_0x43dba4(0x108),new Map()),this[_0x43dba4(0x163)]();}[_0x2f663e(0x11a)](){const _0x2cfc05=_0x2f663e;super['dispose'](),this[_0x2cfc05(0xc6)][_0x2cfc05(0x1a7)]((_0x3618c5,_0x281406)=>this[_0x2cfc05(0x13d)](_0x281406)),this[_0x2cfc05(0x253)]&&window[_0x2cfc05(0x12f)](this[_0x2cfc05(0x253)]);}[_0x2f663e(0x167)](_0x2efc0b){const _0x161f56=_0x2f663e;return this[_0x161f56(0x162)](_0x2efc0b)[_0x161f56(0xfb)](_0x47bdb8());}['editingUnit'](_0x22851b){const _0x5e8065=_0x2f663e;this[_0x5e8065(0xfc)][_0x5e8065(0x87)]===0x0&&this[_0x5e8065(0x173)](),this[_0x5e8065(0xfc)][_0x5e8065(0x143)](_0x22851b),this[_0x5e8065(0x17e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x22851b],'isForwarded':!0x1});}[_0x2f663e(0x105)](_0x179e12){const _0x10b2ec=_0x2f663e;this['_selfUnitIDs']['delete'](_0x179e12),this[_0x10b2ec(0xfc)]['size']===0x0&&this[_0x10b2ec(0x253)]&&window['clearInterval'](this[_0x10b2ec(0x253)]);}[_0x2f663e(0x163)](){const _0x2cacc5=_0x2f663e;this[_0x2cacc5(0x1e9)](_0xa67f93(_0x39c7f3(window,_0x2cacc5(0xad))[_0x2cacc5(0xbd)](_0x39eade=>{const _0x5c6cf4=_0x2cacc5;if(_0x39eade[_0x5c6cf4(0x218)]!==nt||!_0x39eade['newValue'])return;const _0x1012c2=JSON['parse'](_0x39eade['newValue']);this[_0x5c6cf4(0x192)](_0x1012c2);}))),window[_0x2cacc5(0xb7)]('unload',()=>this[_0x2cacc5(0x17e)]({'type':0x1,'memberID':this[_0x2cacc5(0x14d)],'unitIDs':Array[_0x2cacc5(0x196)](this[_0x2cacc5(0xfc)])}));}[_0x2f663e(0x192)](_0x2c31f5){const _0x452e66=_0x2f663e;switch(_0x2c31f5[_0x452e66(0x1a4)]){case 0x0:this[_0x452e66(0x7e)](_0x2c31f5);break;case 0x1:this[_0x452e66(0x16b)](_0x2c31f5);break;case 0x2:this[_0x452e66(0x91)](_0x2c31f5);break;}}[_0x2f663e(0x7e)](_0x3881f2){const _0x93cbe0=_0x2f663e,{unitIDs:_0xcbea56,memberID:_0x2354a4,isForwarded:_0x39f13d}=_0x3881f2;_0xcbea56['forEach'](_0x34de49=>{const _0xcde056=_0x10a5;if(!_0x39f13d&&this[_0xcde056(0xc7)]['has'](_0x34de49)&&this[_0xcde056(0x162)](_0x34de49)[_0xcde056(0x24e)](_0x180d6f[_0xcde056(0x1d9)]),!this[_0xcde056(0xc7)]['has'](_0x34de49)||!this[_0xcde056(0xc7)][_0xcde056(0xda)](_0x34de49)[_0xcde056(0x14b)](_0x2354a4)){const _0x39e3d0=this[_0xcde056(0xc7)][_0xcde056(0xda)](_0x34de49)||new Set();_0x39e3d0['add'](_0x2354a4),this[_0xcde056(0xc7)][_0xcde056(0x144)](_0x34de49,_0x39e3d0),this[_0xcde056(0xbb)](_0x2354a4);}}),_0x39f13d||this[_0x93cbe0(0x17e)]({'type':0x0,'memberID':this[_0x93cbe0(0x14d)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2f663e(0xbb)](_0x1ea33d){const _0x54fdfa=_0x2f663e;this['_removeClearOtherTimer'](_0x1ea33d);const _0x4fc400=window[_0x54fdfa(0xe1)](()=>{const _0x3fd600=_0x54fdfa;this[_0x3fd600(0xc7)][_0x3fd600(0x1a7)](_0x2e7699=>{const _0x4d7716=_0x3fd600;_0x2e7699[_0x4d7716(0x252)](_0x1ea33d);});},it*0x2);this[_0x54fdfa(0xc6)][_0x54fdfa(0x144)](_0x1ea33d,_0x4fc400);}['_removeClearOtherTimer'](_0x43dbc0){const _0x32294e=_0x2f663e;if(this[_0x32294e(0xc6)][_0x32294e(0x14b)](_0x43dbc0)){const _0x4b438b=this[_0x32294e(0xc6)]['get'](_0x43dbc0);_0x4b438b&&window[_0x32294e(0x9e)](_0x4b438b),this[_0x32294e(0xc6)][_0x32294e(0x144)](_0x43dbc0,null);}}['_handleLeaveEvent'](_0x59ef63){const _0x1aa6a3=_0x2f663e,{memberID:_0x27c0d6,unitIDs:_0xe8f52}=_0x59ef63;_0xe8f52[_0x1aa6a3(0x1a7)](_0x5caf16=>{const _0x4ee486=_0x1aa6a3;var _0x354266;const _0x5d39cc=this['_unitOnClients'][_0x4ee486(0xda)](_0x5caf16);_0x5d39cc&&(_0x5d39cc[_0x4ee486(0x252)](_0x27c0d6),(_0x354266=this[_0x4ee486(0x162)](_0x5caf16))==null||_0x354266['next'](_0x5d39cc[_0x4ee486(0x87)]===0x0?_0x180d6f[_0x4ee486(0xd2)]:_0x180d6f[_0x4ee486(0x1d9)]));}),this[_0x1aa6a3(0x13d)](_0x27c0d6);}[_0x2f663e(0x91)](_0x54ad9d){const _0x363074=_0x2f663e;this['_scheduleClearOtherTimer'](_0x54ad9d[_0x363074(0x1ea)]);}[_0x2f663e(0x17e)](_0x5e22e9){localStorage['setItem'](nt,JSON['stringify'](_0x5e22e9));}[_0x2f663e(0x173)](){const _0x147708=_0x2f663e;this['_heartbeatTimer']=window[_0x147708(0xe6)](()=>{const _0x2ad325=_0x147708;this[_0x2ad325(0x17e)]({'type':0x2,'memberID':this['_id']});},it);}[_0x2f663e(0x162)](_0x1ac64f){const _0x5a236b=_0x2f663e;return this['_unitStatus'][_0x5a236b(0x14b)](_0x1ac64f)||this['_unitStatus']['set'](_0x1ac64f,new _0x498be9(_0x180d6f['NO_OTHER_CLIENTS_EDITING'])),this[_0x5a236b(0x108)]['get'](_0x1ac64f);}}var Mt=(_0x54996d=>(_0x54996d[_0x54996d[_0x2f663e(0x172)]=0x0]=_0x2f663e(0x172),_0x54996d[_0x54996d['OK']=0x1]='OK',_0x54996d[_0x54996d[_0x2f663e(0x1f4)]=0x2]=_0x2f663e(0x1f4),_0x54996d[_0x54996d[_0x2f663e(0x171)]=0x3]='PERMISSION_DENIED',_0x54996d[_0x54996d['NOT_FOUND']=0x4]=_0x2f663e(0x1e3),_0x54996d[_0x54996d['UNAUTHENTICATED']=0x5]=_0x2f663e(0x11b),_0x54996d[_0x54996d[_0x2f663e(0x156)]=0x6]=_0x2f663e(0x156),_0x54996d[_0x54996d[_0x2f663e(0x1c8)]=0x7]=_0x2f663e(0x1c8),_0x54996d[_0x54996d['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x54996d[_0x54996d[_0x2f663e(0x158)]=0x9]=_0x2f663e(0x158),_0x54996d[_0x54996d['LOGIN_FAILED']=0xa]=_0x2f663e(0xf9),_0x54996d[_0x54996d[_0x2f663e(0x274)]=0xb]=_0x2f663e(0x274),_0x54996d[_0x54996d[_0x2f663e(0xcd)]=0xc]=_0x2f663e(0xcd),_0x54996d[_0x54996d[_0x2f663e(0x137)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x54996d[_0x54996d[_0x2f663e(0x131)]=0xe]=_0x2f663e(0x131),_0x54996d[_0x54996d[_0x2f663e(0x1f6)]=0x1389]=_0x2f663e(0x1f6),_0x54996d[_0x54996d[_0x2f663e(0x1ad)]=0x1771]=_0x2f663e(0x1ad),_0x54996d[_0x54996d[_0x2f663e(0xa7)]=0x1772]=_0x2f663e(0xa7),_0x54996d[_0x54996d[_0x2f663e(0x23e)]=0x1773]=_0x2f663e(0x23e),_0x54996d[_0x54996d[_0x2f663e(0x21f)]=0x1b59]='APPLY_REJECT',_0x54996d[_0x54996d[_0x2f663e(0x1ff)]=0x1b5a]=_0x2f663e(0x1ff),_0x54996d[_0x54996d['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2f663e(0x140),_0x54996d[_0x54996d['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x54996d[_0x54996d[_0x2f663e(0x248)]=0x1b5d]=_0x2f663e(0x248),_0x54996d[_0x54996d[_0x2f663e(0x1b4)]=0x1f41]=_0x2f663e(0x1b4),_0x54996d[_0x54996d[_0x2f663e(0x1cf)]=0x2329]=_0x2f663e(0x1cf),_0x54996d[_0x54996d[_0x2f663e(0x197)]=0x232a]=_0x2f663e(0x197),_0x54996d[_0x54996d[_0x2f663e(0x115)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x54996d[_0x54996d[_0x2f663e(0xbf)]=0x232c]=_0x2f663e(0xbf),_0x54996d[_0x54996d['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2f663e(0x278),_0x54996d[_0x54996d[_0x2f663e(0x19a)]=0x2711]=_0x2f663e(0x19a),_0x54996d[_0x54996d[_0x2f663e(0x18d)]=0x2712]=_0x2f663e(0x18d),_0x54996d[_0x54996d['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2f663e(0x19d),_0x54996d[_0x54996d[_0x2f663e(0xf4)]=0x2714]=_0x2f663e(0xf4),_0x54996d[_0x54996d['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x2f663e(0x93),_0x54996d[_0x54996d[_0x2f663e(0x219)]=0x271b]=_0x2f663e(0x219),_0x54996d[_0x54996d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2f663e(0x261),_0x54996d[_0x54996d[_0x2f663e(0x21e)]=0x271d]=_0x2f663e(0x21e),_0x54996d[_0x54996d[_0x2f663e(0x146)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x54996d[_0x54996d[_0x2f663e(0x275)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x54996d[_0x54996d[_0x2f663e(0x8f)]=0x2720]=_0x2f663e(0x8f),_0x54996d[_0x54996d[_0x2f663e(0x12d)]=0x2af9]=_0x2f663e(0x12d),_0x54996d[_0x54996d[_0x2f663e(0x1fd)]=0x2ee1]=_0x2f663e(0x1fd),_0x54996d[_0x54996d[_0x2f663e(0xbc)]=0x2ee2]='INVALID_INVITE_CODE',_0x54996d[_0x54996d[_0x2f663e(0xfd)]=0x2ee3]=_0x2f663e(0xfd),_0x54996d[_0x54996d['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2f663e(0x9d),_0x54996d[_0x54996d['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x2f663e(0x201),_0x54996d[_0x54996d[_0x2f663e(0x1ae)]=0x32c9]=_0x2f663e(0x1ae),_0x54996d[_0x54996d['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x54996d[_0x54996d['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x2f663e(0x1c2),_0x54996d[_0x54996d[_0x2f663e(0x13f)]=-0x1]='UNRECOGNIZED',_0x54996d))(Mt||{}),pn=Object[_0x2f663e(0x151)],Cn=(_0x658702,_0x5e8282,_0xa71707,_0x84368)=>{const _0x264560=_0x2f663e;for(var _0x11d71c=_0x84368>0x1?void 0x0:_0x84368?pn(_0x5e8282,_0xa71707):_0x5e8282,_0x12d055=_0x658702[_0x264560(0x85)]-0x1,_0x26dc73;_0x12d055>=0x0;_0x12d055--)(_0x26dc73=_0x658702[_0x12d055])&&(_0x11d71c=_0x26dc73(_0x11d71c)||_0x11d71c);return _0x11d71c;},be=(_0x2c8006,_0x57e984)=>(_0x3719dd,_0x26de97)=>_0x57e984(_0x3719dd,_0x26de97,_0x2c8006);let rt=class extends _0x2c599b{constructor(_0x51f029,_0x37b51e,_0x3bb0af){const _0x1c8911=_0x2f663e;super(),this[_0x1c8911(0x1b5)]=_0x51f029,this[_0x1c8911(0xb5)]=_0x37b51e,this[_0x1c8911(0x1df)]=_0x3bb0af;}async['runOnServer'](_0x3a279e,_0xe527d1,_0x2fd42d,..._0x41058b){const _0x1b9aaf=_0x2f663e;var _0x3e600c,_0x1bd4da,_0x23c15c,_0x541518;const _0x1a7edc=this[_0x1b9aaf(0x1b5)][_0x1b9aaf(0x246)]();if(!_0x1a7edc)throw new Error(_0x1b9aaf(0x116));const _0x57b21d=((_0x3e600c=this[_0x1b9aaf(0x1df)][_0x1b9aaf(0x110)](_0x323fcc))!=null?_0x3e600c:_0x5c4e0e)+'/'+_0x3a279e+_0x1b9aaf(0x221)+_0xe527d1,_0x117197=new URL(window[_0x1b9aaf(0xdd)][_0x1b9aaf(0x12b)]),_0x12c862={'scriptId':_0x3a279e,'runId':(_0x1bd4da=_0x117197[_0x1b9aaf(0x106)][_0x1b9aaf(0xda)]('runId'))!=null?_0x1bd4da:'','function':_0xe527d1,'unitId':_0x1a7edc[_0x1b9aaf(0x25d)](),'argsOfFunction':JSON[_0x1b9aaf(0x83)](_0x41058b),'invokeId':(_0x23c15c=_0x2fd42d[_0x1b9aaf(0xe9)])!=null?_0x23c15c:'','executionId':(_0x541518=_0x2fd42d[_0x1b9aaf(0xea)])!=null?_0x541518:''};try{const _0x58bbf6=await this['_httpService'][_0x1b9aaf(0x233)](_0x57b21d,{'body':_0x12c862});return _0x58bbf6[_0x1b9aaf(0x1d8)][_0x1b9aaf(0x217)]&&_0x58bbf6[_0x1b9aaf(0x1d8)][_0x1b9aaf(0x217)][_0x1b9aaf(0x178)]!==Mt['OK']?'Failed':_0x58bbf6[_0x1b9aaf(0x1d8)][_0x1b9aaf(0x21a)];}catch{return _0x1b9aaf(0x1ce);}}};rt=Cn([be(0x0,_0x4b850f),be(0x1,_0xfad7a2(_0x4a5eb3)),be(0x2,_0x7cf2a5)],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 +1 @@
1
- const _0x5348fa=_0x3464;(function(_0x363e26,_0x4e0731){const _0x303490=_0x3464,_0x525442=_0x363e26();while(!![]){try{const _0x59ace7=-parseInt(_0x303490(0xa4))/0x1*(parseInt(_0x303490(0xb7))/0x2)+parseInt(_0x303490(0xb2))/0x3+parseInt(_0x303490(0x9f))/0x4*(parseInt(_0x303490(0x9e))/0x5)+-parseInt(_0x303490(0x9d))/0x6*(-parseInt(_0x303490(0xa1))/0x7)+parseInt(_0x303490(0xa3))/0x8+-parseInt(_0x303490(0xb4))/0x9+parseInt(_0x303490(0xb6))/0xa*(-parseInt(_0x303490(0xaf))/0xb);if(_0x59ace7===_0x4e0731)break;else _0x525442['push'](_0x525442['shift']());}catch(_0x647fbe){_0x525442['push'](_0x525442['shift']());}}}(_0x50fb,0xaaddc));const e={'collab-client':{'tooltip':{'reconnect':_0x5348fa(0xa2)}},'collabStatus':{'fetchMiss':_0x5348fa(0xb5),'conflict':_0x5348fa(0xb0),'notCollab':_0x5348fa(0xa9),'synced':_0x5348fa(0xa0),'syncing':_0x5348fa(0xa6),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x5348fa(0xae),'will-retry':_0x5348fa(0xb1),'room-full':_0x5348fa(0xa7),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x5348fa(0xa5),'content':_0x5348fa(0xab)},'permission':{'title':_0x5348fa(0xa8),'content':_0x5348fa(0xb3)},'collaboration':{'single-unit':{'warning':_0x5348fa(0xac)},'closeRoom':_0x5348fa(0xad)},'auth':{'needGotoLoginAlert':_0x5348fa(0xaa)}};function _0x50fb(){const _0x33167b=['Connection\x20failed,\x20please\x20check\x20your\x20network.','44frcDsg','Edit\x20conflicts','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','3480789KUeapM','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','9748080RiHoUZ','Syncing\x20server\x20data...','1062020uuwhDR','2XFKzEr','1576776AiXRqE','2656370RvtKUx','8EvLMIV','Synced','7IXmbRi','Click\x20to\x20Reconnect','3611616glGgHv','729263xitYnm','Collaboration\x20Conflict','Syncing...','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Authentication\x20Error','Local\x20file','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','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.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'];_0x50fb=function(){return _0x33167b;};return _0x50fb();}function _0x3464(_0x868dd2,_0x138f12){const _0x50fb0a=_0x50fb();return _0x3464=function(_0x3464e5,_0x523d87){_0x3464e5=_0x3464e5-0x9d;let _0x4edc4f=_0x50fb0a[_0x3464e5];return _0x4edc4f;},_0x3464(_0x868dd2,_0x138f12);}export{e as default};
1
+ const _0x485dae=_0x2deb;function _0x587f(){const _0x343dbd=['Local\x20file','1483494Plkijr','5938735Wriste','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Click\x20to\x20Reconnect','5LFlias','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','7xDaUTg','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3746684YwgyEy','9930otpMgp','Syncing...','419Cvbpef','Collaboration\x20Conflict','5786rHmDfa','1308552bGnJcl','5369720nuYDOB','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.','8109ruPhHx','Authentication\x20Error'];_0x587f=function(){return _0x343dbd;};return _0x587f();}(function(_0x5055e7,_0x2412ab){const _0x5b06ec=_0x2deb,_0x28abd4=_0x5055e7();while(!![]){try{const _0x18d58b=-parseInt(_0x5b06ec(0xd4))/0x1*(-parseInt(_0x5b06ec(0xd6))/0x2)+parseInt(_0x5b06ec(0xd7))/0x3+parseInt(_0x5b06ec(0xd1))/0x4*(-parseInt(_0x5b06ec(0xc9))/0x5)+parseInt(_0x5b06ec(0xdd))/0x6+parseInt(_0x5b06ec(0xcd))/0x7*(-parseInt(_0x5b06ec(0xd8))/0x8)+parseInt(_0x5b06ec(0xda))/0x9*(parseInt(_0x5b06ec(0xd2))/0xa)+-parseInt(_0x5b06ec(0xde))/0xb;if(_0x18d58b===_0x2412ab)break;else _0x28abd4['push'](_0x28abd4['shift']());}catch(_0x19192f){_0x28abd4['push'](_0x28abd4['shift']());}}}(_0x587f,0x9cdda));function _0x2deb(_0x4a3dd1,_0x12b39c){const _0x587fe8=_0x587f();return _0x2deb=function(_0x2debd6,_0x39e39d){_0x2debd6=_0x2debd6-0xc7;let _0x558424=_0x587fe8[_0x2debd6];return _0x558424;},_0x2deb(_0x4a3dd1,_0x12b39c);}const e={'collab-client':{'tooltip':{'reconnect':_0x485dae(0xc8)}},'collabStatus':{'fetchMiss':_0x485dae(0xca),'conflict':'Edit\x20conflicts','notCollab':_0x485dae(0xdc),'synced':'Synced','syncing':_0x485dae(0xd3),'offline':_0x485dae(0xc7)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x485dae(0xcc),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x485dae(0xd5),'content':_0x485dae(0xd9)},'permission':{'title':_0x485dae(0xdb),'content':_0x485dae(0xcf)},'collaboration':{'single-unit':{'warning':_0x485dae(0xce)},'closeRoom':_0x485dae(0xd0)},'auth':{'needGotoLoginAlert':_0x485dae(0xcb)}};export{e as default};
@@ -1 +1 @@
1
- const _0x26f454=_0x5e16;(function(_0x494620,_0x534d8c){const _0xba3d11=_0x5e16,_0x13049c=_0x494620();while(!![]){try{const _0x53cc2b=parseInt(_0xba3d11(0x1d5))/0x1+-parseInt(_0xba3d11(0x1e9))/0x2+parseInt(_0xba3d11(0x1d9))/0x3+-parseInt(_0xba3d11(0x1da))/0x4*(parseInt(_0xba3d11(0x1d3))/0x5)+parseInt(_0xba3d11(0x1d8))/0x6+parseInt(_0xba3d11(0x1d7))/0x7*(-parseInt(_0xba3d11(0x1e5))/0x8)+-parseInt(_0xba3d11(0x1db))/0x9*(parseInt(_0xba3d11(0x1e7))/0xa);if(_0x53cc2b===_0x534d8c)break;else _0x13049c['push'](_0x13049c['shift']());}catch(_0x349440){_0x13049c['push'](_0x13049c['shift']());}}}(_0x55d1,0xd2cee));const o={'collab-client':{'tooltip':{'reconnect':_0x26f454(0x1dd)}},'collabStatus':{'fetchMiss':'در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','conflict':_0x26f454(0x1e8),'notCollab':_0x26f454(0x1dc),'synced':_0x26f454(0x1e3),'syncing':_0x26f454(0x1e4),'offline':_0x26f454(0x1de)},'session':{'connection-failed':_0x26f454(0x1d4),'will-retry':_0x26f454(0x1e2),'room-full':'اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','collaboration-timeout':_0x26f454(0x1ea)},'conflict':{'title':_0x26f454(0x1d6),'content':_0x26f454(0x1e6)},'permission':{'title':'خطای\x20اعتبارسنجی','content':_0x26f454(0x1df)},'collaboration':{'single-unit':{'warning':_0x26f454(0x1e1)},'closeRoom':_0x26f454(0x1e0)},'auth':{'needGotoLoginAlert':'ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.'}};export{o as default};function _0x5e16(_0x1d815d,_0x46673d){const _0x55d193=_0x55d1();return _0x5e16=function(_0x5e1659,_0x2fc316){_0x5e1659=_0x5e1659-0x1d3;let _0x3c358d=_0x55d193[_0x5e1659];return _0x3c358d;},_0x5e16(_0x1d815d,_0x46673d);}function _0x55d1(){const _0x590c7b=['اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','همگام\x20سازی','در\x20حال\x20همگام\x20سازی...','8nyCvMK','یک\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رفت.','195660vDmSvu','تداخل\x20ویرایش','644690VXQuCi','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','123145sDxlrf','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','1473802weoKZm','تداخل\x20همکاری','6227284bASwje','4984710ibTDXK','3716145fBndMQ','124bIaqtP','324GlMkAS','پرونده\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را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.'];_0x55d1=function(){return _0x590c7b;};return _0x55d1();}
1
+ const _0x1d834d=_0x1505;function _0x56fb(){const _0x2e2afd=['اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','7427TQTXiE','6278410uougJp','11Elfqaf','پرونده\x20محلی','156218bDLGYN','3160395ZCZqUM','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','در\x20حال\x20همگام\x20سازی...','10568HpRqeI','تداخل\x20همکاری','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','همگام\x20سازی','3299352SfTTLJ','3ybJKyo','یک\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رفت.','274829orOHjk','221035sONmqC','سرور\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کنید.','6cobhsH','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'];_0x56fb=function(){return _0x2e2afd;};return _0x56fb();}(function(_0x5828dd,_0x2fc6aa){const _0x1b1c7a=_0x1505,_0x29d870=_0x5828dd();while(!![]){try{const _0xca5f2b=-parseInt(_0x1b1c7a(0x18c))/0x1+-parseInt(_0x1b1c7a(0x181))/0x2*(-parseInt(_0x1b1c7a(0x18a))/0x3)+-parseInt(_0x1b1c7a(0x189))/0x4+parseInt(_0x1b1c7a(0x18d))/0x5*(parseInt(_0x1b1c7a(0x190))/0x6)+parseInt(_0x1b1c7a(0x193))/0x7*(parseInt(_0x1b1c7a(0x185))/0x8)+-parseInt(_0x1b1c7a(0x182))/0x9+-parseInt(_0x1b1c7a(0x17e))/0xa*(-parseInt(_0x1b1c7a(0x17f))/0xb);if(_0xca5f2b===_0x2fc6aa)break;else _0x29d870['push'](_0x29d870['shift']());}catch(_0x344606){_0x29d870['push'](_0x29d870['shift']());}}}(_0x56fb,0xab1f4));const o={'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':_0x1d834d(0x187),'conflict':'تداخل\x20ویرایش','notCollab':_0x1d834d(0x180),'synced':_0x1d834d(0x188),'syncing':_0x1d834d(0x184),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':_0x1d834d(0x183),'room-full':_0x1d834d(0x192),'collaboration-timeout':_0x1d834d(0x18e)},'conflict':{'title':_0x1d834d(0x186),'content':_0x1d834d(0x18b)},'permission':{'title':'خطای\x20اعتبارسنجی','content':'اعمال\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رفت.'},'collaboration':{'single-unit':{'warning':_0x1d834d(0x18f)},'closeRoom':_0x1d834d(0x191)},'auth':{'needGotoLoginAlert':'ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.'}};function _0x1505(_0x283958,_0x212de2){const _0x56fbe1=_0x56fb();return _0x1505=function(_0x150537,_0x4984af){_0x150537=_0x150537-0x17e;let _0x5392d0=_0x56fbe1[_0x150537];return _0x5392d0;},_0x1505(_0x283958,_0x212de2);}export{o as default};