@univerjs-pro/collaboration-client-ui 0.10.11 → 0.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3504c5=_0x3f6f;(function(_0x4eb697,_0x5a599e){const _0x1146b7=_0x3f6f,_0x477e4c=_0x4eb697();while(!![]){try{const _0x2c5a49=parseInt(_0x1146b7(0x3d3))/0x1*(-parseInt(_0x1146b7(0x323))/0x2)+-parseInt(_0x1146b7(0x3bb))/0x3*(-parseInt(_0x1146b7(0x2a8))/0x4)+parseInt(_0x1146b7(0x275))/0x5+parseInt(_0x1146b7(0x37b))/0x6*(parseInt(_0x1146b7(0x227))/0x7)+-parseInt(_0x1146b7(0x3de))/0x8+-parseInt(_0x1146b7(0x379))/0x9*(parseInt(_0x1146b7(0x1ab))/0xa)+parseInt(_0x1146b7(0x234))/0xb;if(_0x2c5a49===_0x5a599e)break;else _0x477e4c['push'](_0x477e4c['shift']());}catch(_0xae4972){_0x477e4c['push'](_0x477e4c['shift']());}}}(_0x13f0,0x18f32));var kt=Object[_0x3504c5(0x359)],Ht=(_0x482a1c,_0x110a6d,_0x5011bf)=>_0x110a6d in _0x482a1c?kt(_0x482a1c,_0x110a6d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5011bf}):_0x482a1c[_0x110a6d]=_0x5011bf,_=(_0x2ec36f,_0x43f6e1,_0x1b1dfa)=>Ht(_0x2ec36f,typeof _0x43f6e1!=_0x3504c5(0x2f9)?_0x43f6e1+'':_0x43f6e1,_0x1b1dfa);import{jsx as _0x1bf90e,jsxs as _0x4b67ae}from'react/jsx-runtime';import{CollaborationStatus as _0x59f2be,CollaborationSessionService as _0x4e336e,CollaborationController as _0x4e7e15,DataLoaderService as _0x8ec34d,MemberService as _0x4cbb58,SessionStatus as _0x2298f4,ILocalCacheService as _0x55c362,CollaborationUIEventService as _0x291389,CollaborationUIEventId as _0x4435b4,DocCollaborationEntity as _0x4404c6,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c0423,getLocalCacheKey as _0xb4d1e1,LOCAL_CACHE_INTERVAL as _0x46d03f,LOCAL_CACHE_INTERVAL_KEY as _0x43f6ef,UniverCollaborationClientPlugin as _0x22881b,CollaborationSocketService as _0x3d93bc,DEFAULT_WS_SESSION_TICKET_URL as _0x31c350,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x45cf52,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1e545f,UnitStatus as _0x38048c}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x21a3cc,IUniverInstanceService as _0x437d75,Inject as _0x13fac2,Injector as _0x4da47b,Disposable as _0x44caae,createIdentifier as _0x1db72c,ILogService as _0x3b520f,ICommandService as _0x378028,Optional as _0x20ad22,RxDisposable as _0x4dd7f6,Workbook as _0x172466,DOC_RANGE_TYPE as _0x2ff472,debounce as _0x47926c,Rectangle as _0x2a46cf,DisposableCollection as _0x42029c,toDisposable as _0x2576da,UniverInstanceType as _0x3d4d2c,generateRandomId as _0x144598,COLORS as _0x3312f1,ColorKit as _0x44319d,ThemeService as _0x2f412a,fromEventSubject as _0xc40dd,Tools as _0x267bed,CommandType as _0x441e2b,IConfigService as _0x10aea5,CanceledError as _0x4a6f3c,isFormulaString as _0x1fa515,isFormulaId as _0x315c33,ILocalStorageService as _0x3a9490,DependentOn as _0xc853a6,Plugin as _0xfc0127,merge as _0x27de3f,registerDependencies as _0x22a61d,mergeOverrideWithDependencies as _0x29e569,touchDependencies as _0x1e8471}from'@univerjs/core';import{useObservable as _0xfaff27,useDependency as _0x177251,IUIPartsService as _0x2adcc7,BuiltInUIPart as _0x186598,connectInjector as _0x42d200,IBeforeCloseService as _0x59ea3f,IMessageService as _0x1b730d,INotificationService as _0x540b4a}from'@univerjs/ui';import{BehaviorSubject as _0x1bb082,switchMap as _0x3ba0ae,of as _0x5943a5,takeUntil as _0xb04df5,debounceTime as _0x51621e,Subject as _0x5060b1,filter as _0x1db320,merge as _0x680757,combineLatest as _0x338b00,fromEvent as _0x18c819,shareReplay as _0x72b1f0,mapTo as _0x153ed4,distinctUntilChanged as _0x5a2f65}from'rxjs';import{Tooltip as _0x3a1b92,clsx as _0x1d78fd,MessageType as _0x520d9c}from'@univerjs/design';import{forwardRef as _0x41b5f7,useRef as _0xbc8706,createElement as _0x5593c4,useCallback as _0x4b2735}from'react';import{IRemoteInstanceService as _0x598a96}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x344768,RefRangeService as _0x1d2c90,SetSelectionsOperation as _0x225cd4,SheetsSelectionsService as _0x14ecb3,EffectRefRangId as _0x27ae65,handleIRemoveRow as _0x4a868d,handleIRemoveCol as _0x24566c,handleMoveRange as _0x538c2c,handleInsertRow as _0x8109a7,handleInsertRangeMoveRight as _0x4c8134,handleInsertRangeMoveDown as _0x3285a0,handleInsertCol as _0x204136,handleDeleteRangeMoveUp as _0x2dbc93,handleDeleteRangeMoveLeft as _0x449627,runRefRangeMutations as _0x13bbde}from'@univerjs/sheets';import{Shape as _0x3acd0c,Rect as _0x514da9,getColor as _0x486a87,RegularPolygon as _0x1556b3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3128aa,Vector2 as _0x3199d6,SHEET_VIEWPORT_KEY as _0xd834fb,IRenderManagerService as _0x5dc693}from'@univerjs/engine-render';import{HTTPService as _0x59d0d5,ISocketService as _0x5af1a8,WebSocketService as _0x476d5f}from'@univerjs/network';import{IDocClipboardService as _0x1cec76,NodePositionConvertToCursor as _0x587060,NodePositionConvertToRectRange as _0x118b5f,TEXT_RANGE_LAYER_INDEX as _0x26f088,SetDocZoomRatioOperation as _0x42495b,DocIMEInputManagerService as _0x23034e,DocStateChangeManagerService as _0x48cc88}from'@univerjs/docs-ui';import{IImageIoService as _0x54d2a8}from'@univerjs/drawing';import{ITransformService as _0x3943ee,CollaborationEvent as _0xbf2684,isTransformMutationFailure as _0x45a2c4,isTransformMutationsWithChangesetSuccess as _0x5d4db3,RevisionService as _0x1fe514,ISnapshotServerService as _0xe8f155}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5a1d5c,RichTextEditingMutation as _0xd909db,DocSelectionManagerService as _0x259657,DocSkeletonManagerService as _0x516f50}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4f5b3a,serializeRangeWithSheet as _0x48fa02,FormulaExecuteStageType as _0x41b0a9,FormulaExecutedStateType as _0x55b129,SetFormulaCalculationStartMutation as _0x4b0c98,SetFormulaCalculationNotificationMutation as _0x1d37ca}from'@univerjs/engine-formula';import{map as _0x43fad8,filter as _0x18ab68,throttleTime as _0x26bb7e,takeUntil as _0x3d85e9,switchMap as _0x1ed193}from'rxjs/operators';import{SheetSkeletonManagerService as _0x29be31,getCoordByCell as _0x5f53de,getSheetObject as _0x4d2825}from'@univerjs/sheets-ui';var g=function(){const _0x423ebf=_0x3504c5;return g=Object[_0x423ebf(0x1fa)]||function(_0x1b41b5){const _0x427a2c=_0x423ebf;for(var _0x56a127,_0x1b3f16=0x1,_0x2eef63=arguments[_0x427a2c(0x329)];_0x1b3f16<_0x2eef63;_0x1b3f16++){_0x56a127=arguments[_0x1b3f16];for(var _0x868370 in _0x56a127)Object[_0x427a2c(0x33c)][_0x427a2c(0x32a)][_0x427a2c(0x3a5)](_0x56a127,_0x868370)&&(_0x1b41b5[_0x868370]=_0x56a127[_0x868370]);}return _0x1b41b5;},g['apply'](this,arguments);},Ii=function(_0x1d9884,_0x2705b8){const _0x3c408b=_0x3504c5;var _0x9c8385={};for(var _0x55aeac in _0x1d9884)Object[_0x3c408b(0x33c)][_0x3c408b(0x32a)][_0x3c408b(0x3a5)](_0x1d9884,_0x55aeac)&&_0x2705b8[_0x3c408b(0x279)](_0x55aeac)<0x0&&(_0x9c8385[_0x55aeac]=_0x1d9884[_0x55aeac]);if(_0x1d9884!=null&&typeof Object['getOwnPropertySymbols']==_0x3c408b(0x310)){for(var _0x1d396f=0x0,_0x55aeac=Object[_0x3c408b(0x362)](_0x1d9884);_0x1d396f<_0x55aeac['length'];_0x1d396f++)_0x2705b8[_0x3c408b(0x279)](_0x55aeac[_0x1d396f])<0x0&&Object['prototype'][_0x3c408b(0x2dd)][_0x3c408b(0x3a5)](_0x1d9884,_0x55aeac[_0x1d396f])&&(_0x9c8385[_0x55aeac[_0x1d396f]]=_0x1d9884[_0x55aeac[_0x1d396f]]);}return _0x9c8385;},Xe=_0x41b5f7(function(_0x1f8caf,_0x2e246b){const _0x3916fa=_0x3504c5;var _0x679ce0=_0x1f8caf[_0x3916fa(0x3ca)],_0x3308d8=_0x1f8caf['id'],_0x1eb48f=_0x1f8caf['className'],_0x251498=_0x1f8caf[_0x3916fa(0x285)],_0x3e8105=Ii(_0x1f8caf,[_0x3916fa(0x3ca),'id',_0x3916fa(0x31a),_0x3916fa(0x285)]),_0x15e703=_0x3916fa(0x367)[_0x3916fa(0x298)](_0x3308d8,'\x20')[_0x3916fa(0x298)](_0x1eb48f||'')[_0x3916fa(0x1cf)](),_0x3fd528=_0xbc8706('_'[_0x3916fa(0x298)](Ei()));return Lt(_0x679ce0,''['concat'](_0x3308d8),{'defIds':_0x679ce0[_0x3916fa(0x284)],'idSuffix':_0x3fd528[_0x3916fa(0x1f4)]},g({'ref':_0x2e246b,'className':_0x15e703},_0x3e8105),_0x251498);});function Lt(_0xdec6cf,_0x2a1213,_0x308e4c,_0x2fe3ab,_0x4279db){const _0x3bb36e=_0x3504c5;return _0x5593c4(_0xdec6cf['tag'],g(g({'key':_0x2a1213},gi(_0xdec6cf,_0x308e4c,_0x4279db)),_0x2fe3ab),(vi(_0xdec6cf,_0x308e4c)['children']||[])[_0x3bb36e(0x3a8)](function(_0x352d51,_0x29eb7b){const _0x2733f0=_0x3bb36e;return Lt(_0x352d51,''[_0x2733f0(0x298)](_0x2a1213,'-')[_0x2733f0(0x298)](_0xdec6cf[_0x2733f0(0x288)],'-')['concat'](_0x29eb7b),_0x308e4c,void 0x0,_0x4279db);}));}function gi(_0x20d7c9,_0x2f90a5,_0x496ae3){const _0x82d082=_0x3504c5;var _0x595aee=g({},_0x20d7c9['attrs']);_0x496ae3!=null&&_0x496ae3['colorChannel1']&&_0x595aee['fill']===_0x82d082(0x38c)&&(_0x595aee[_0x82d082(0x396)]=_0x496ae3[_0x82d082(0x38c)]),_0x20d7c9[_0x82d082(0x288)]===_0x82d082(0x229)&&_0x595aee['id']&&(_0x595aee['id']=_0x595aee['id']+_0x2f90a5['idSuffix']),Object[_0x82d082(0x1bc)](_0x595aee)['forEach'](function(_0x1193cd){const _0x589163=_0x82d082;var _0x371cb5=_0x1193cd[0x0],_0x1e3669=_0x1193cd[0x1];_0x371cb5==='mask'&&typeof _0x1e3669==_0x589163(0x319)&&(_0x595aee[_0x371cb5]=_0x1e3669[_0x589163(0x1e8)](/url\(#(.*)\)/,'url(#$1'[_0x589163(0x298)](_0x2f90a5['idSuffix'],')')));});var _0x20e831=_0x2f90a5[_0x82d082(0x284)];return!_0x20e831||_0x20e831[_0x82d082(0x329)]===0x0||(_0x20d7c9[_0x82d082(0x288)]===_0x82d082(0x1a0)&&_0x595aee[_0x82d082(0x276)]&&(_0x595aee[_0x82d082(0x276)]=_0x595aee[_0x82d082(0x276)]+_0x2f90a5[_0x82d082(0x26f)]),Object['entries'](_0x595aee)[_0x82d082(0x3c9)](function(_0x2000e0){const _0x275663=_0x82d082;var _0x29c676=_0x2000e0[0x0],_0x594f4a=_0x2000e0[0x1];typeof _0x594f4a=='string'&&(_0x595aee[_0x29c676]=_0x594f4a[_0x275663(0x1e8)](/url\(#(.*)\)/,_0x275663(0x236)[_0x275663(0x298)](_0x2f90a5[_0x275663(0x26f)],')')));})),_0x595aee;}function vi(_0x4792da,_0x1154bf){const _0x314ed3=_0x3504c5;var _0x36b550,_0x4b63a1=_0x1154bf['defIds'];return!_0x4b63a1||_0x4b63a1[_0x314ed3(0x329)]===0x0?_0x4792da:_0x4792da[_0x314ed3(0x288)]===_0x314ed3(0x1f9)&&(!((_0x36b550=_0x4792da[_0x314ed3(0x35d)])===null||_0x36b550===void 0x0)&&_0x36b550[_0x314ed3(0x329)])?g(g({},_0x4792da),{'children':_0x4792da[_0x314ed3(0x35d)][_0x314ed3(0x3a8)](function(_0x57c8a0){const _0x1b021a=_0x314ed3;return typeof _0x57c8a0[_0x1b021a(0x246)]['id']==_0x1b021a(0x319)&&_0x4b63a1&&_0x4b63a1[_0x1b021a(0x240)](_0x57c8a0['attrs']['id'])?g(g({},_0x57c8a0),{'attrs':g(g({},_0x57c8a0[_0x1b021a(0x246)]),{'id':_0x57c8a0[_0x1b021a(0x246)]['id']+_0x1154bf[_0x1b021a(0x26f)]})}):_0x57c8a0;})}):_0x4792da;}function Ei(){const _0x50f1e6=_0x3504c5;return Math[_0x50f1e6(0x218)]()[_0x50f1e6(0x363)](0x24)['substring'](0x2,0x8);}Xe[_0x3504c5(0x1a2)]='UniverIcon';var pi={'tag':_0x3504c5(0x2f2),'attrs':{'xmlns':_0x3504c5(0x3a1),'fill':_0x3504c5(0x3c8),'viewBox':_0x3504c5(0x3b4),'width':_0x3504c5(0x272),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c5(0x225)},'children':[{'tag':'path','attrs':{'stroke':_0x3504c5(0x3d0),'d':_0x3504c5(0x1e4),'strokeLinecap':_0x3504c5(0x29e),'strokeLinejoin':_0x3504c5(0x29e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3504c5(0x239),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'fill':'white','d':_0x3504c5(0x194)}}]}]}],'defIds':[_0x3504c5(0x309)]},Mt=_0x41b5f7(function(_0x31be92,_0x1aed35){const _0xbb10f0=_0x3504c5;return _0x5593c4(Xe,Object[_0xbb10f0(0x1fa)]({},_0x31be92,{'id':_0xbb10f0(0x322),'ref':_0x1aed35,'icon':pi}));});Mt['displayName']=_0x3504c5(0x311);var Oi={'tag':_0x3504c5(0x2f2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3504c5(0x34b),'width':'1em','height':_0x3504c5(0x272)},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c5(0x271)},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'stroke':_0x3504c5(0x3d0),'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':_0x3504c5(0x29e),'strokeLinejoin':_0x3504c5(0x29e),'strokeWidth':1.2}}]},{'tag':_0x3504c5(0x1f9),'attrs':{},'children':[{'tag':_0x3504c5(0x239),'attrs':{'id':_0x3504c5(0x2f1)},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'fill':_0x3504c5(0x2cc),'d':_0x3504c5(0x194),'transform':_0x3504c5(0x37e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},At=_0x41b5f7(function(_0xa2c43f,_0x4ed8d9){const _0x4c742a=_0x3504c5;return _0x5593c4(Xe,Object['assign']({},_0xa2c43f,{'id':_0x4c742a(0x21e),'ref':_0x4ed8d9,'icon':Oi}));});At[_0x3504c5(0x1a2)]=_0x3504c5(0x364);function Ti(_0x467b21){const _0x387347=_0x3504c5;switch(_0x467b21){case _0x59f2be[_0x387347(0x1c5)]:return _0x387347(0x1a3);case _0x59f2be[_0x387347(0x2bd)]:return _0x387347(0x27d);case _0x59f2be['FETCH_MISS']:return _0x387347(0x2ca);case _0x59f2be[_0x387347(0x217)]:return'collabStatus.notCollab';case _0x59f2be[_0x387347(0x34f)]:case _0x59f2be[_0x387347(0x2f8)]:return _0x387347(0x1be);case _0x59f2be[_0x387347(0x2b8)]:case _0x59f2be[_0x387347(0x254)]:return _0x387347(0x1e9);}}function Ci(_0x3cc4c4){const _0x4e9e90=_0x3504c5,{status$:_0x2314c0}=_0x3cc4c4,_0x13e13d=_0xfaff27(_0x2314c0,_0x59f2be[_0x4e9e90(0x217)]),_0x234b88=_0x177251(_0x21a3cc),_0x54f507=_0x177251(_0x4e336e),_0x17bd69=_0x13e13d!==_0x59f2be['OFFLINE'],_0x18d22b=_0x234b88['t'](Ti(_0x13e13d)),_0x5b49a5=_0x17bd69?_0x1bf90e(At,{}):_0x1bf90e(Mt,{}),_0x54ae55=_0x4b2735(()=>{_0x17bd69||_0x54f507['reconnect']();},[_0x17bd69,_0x54f507]);function _0x54f1de(){const _0x4c232e=_0x4e9e90;return _0x4b67ae(_0x4c232e(0x231),{'className':_0x4c232e(0x376),'onClick':_0x54ae55,'children':[_0x1bf90e('div',{'className':_0x1d78fd('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x17bd69,'univer-text-red-500':!_0x17bd69}),'children':_0x5b49a5}),_0x1bf90e(_0x4c232e(0x231),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x18d22b})]});}return _0x17bd69?_0x54f1de():_0x1bf90e(_0x3a1b92,{'title':_0x234b88['t'](_0x4e9e90(0x1af)),'children':_0x54f1de()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x5aee52,_0x514c15,_0x3502f3,_0x58a585)=>{const _0x3136f7=_0x3504c5;for(var _0xccf8b1=_0x58a585>0x1?void 0x0:_0x58a585?Ri(_0x514c15,_0x3502f3):_0x514c15,_0x3a39f4=_0x5aee52[_0x3136f7(0x329)]-0x1,_0x3f9414;_0x3a39f4>=0x0;_0x3a39f4--)(_0x3f9414=_0x5aee52[_0x3a39f4])&&(_0xccf8b1=_0x3f9414(_0xccf8b1)||_0xccf8b1);return _0xccf8b1;},ie=(_0x2d8544,_0x3a62cb)=>(_0x29dfa5,_0x417840)=>_0x3a62cb(_0x29dfa5,_0x417840,_0x2d8544);let ae=class extends _0x44caae{constructor(_0x70c5b1,_0x45e6f6,_0x2b8a1b,_0x34e827){const _0x400696=_0x3504c5;super(),_(this,_0x400696(0x2e1),new _0x1bb082(_0x59f2be[_0x400696(0x217)])),(this[_0x400696(0x1a8)]=_0x70c5b1,this['_injector']=_0x45e6f6,this[_0x400696(0x29b)]=_0x2b8a1b,this[_0x400696(0x21b)]=_0x34e827,this[_0x400696(0x1d5)](),this[_0x400696(0x39e)]());}[_0x3504c5(0x39e)](){const _0x209082=_0x3504c5;this[_0x209082(0x2fd)](this[_0x209082(0x1a8)][_0x209082(0x2c1)][_0x209082(0x37f)](_0x3ba0ae(()=>{const _0x4f6e88=_0x209082,_0x4b3d55=this['_univerInstanceService']['getFocusedUnit']();return _0x4b3d55?this['_collaborationController'][_0x4f6e88(0x249)](_0x4b3d55[_0x4f6e88(0x3cc)]()):_0x5943a5(null);}),_0x3ba0ae(_0x457e40=>_0x457e40?_0x457e40[_0x209082(0x1ea)]:_0x5943a5(_0x59f2be[_0x209082(0x217)])))[_0x209082(0x336)](_0x5ecb06=>{const _0x315a5b=_0x209082;this[_0x315a5b(0x2e1)][_0x315a5b(0x25d)](_0x5ecb06);}));}[_0x3504c5(0x1d5)](){const _0x520cf9=_0x3504c5;this[_0x520cf9(0x2fd)](this[_0x520cf9(0x21b)][_0x520cf9(0x3d7)](_0x186598[_0x520cf9(0x26b)],()=>_0x42d200(bi({'status$':this[_0x520cf9(0x2e1)]['asObservable']()}),this[_0x520cf9(0x23b)])));}};ae=Di([ie(0x0,_0x437d75),ie(0x1,_0x13fac2(_0x4da47b)),ie(0x2,_0x13fac2(_0x4e7e15)),ie(0x3,_0x2adcc7)],ae);function bi(_0x24648d){const {status$:_0x269058}=_0x24648d;return function(){return _0x1bf90e(Ci,{'status$':_0x269058});};}const Pt=_0x1db72c('uni.network.url-service');var Ni=Object[_0x3504c5(0x1c3)],Ui=(_0x1d49ae,_0x30a28a,_0x4ac0e6,_0x4ab03b)=>{const _0x4eb293=_0x3504c5;for(var _0x123b08=_0x4ab03b>0x1?void 0x0:_0x4ab03b?Ni(_0x30a28a,_0x4ac0e6):_0x30a28a,_0x553674=_0x1d49ae[_0x4eb293(0x329)]-0x1,_0x4aea4a;_0x553674>=0x0;_0x553674--)(_0x4aea4a=_0x1d49ae[_0x553674])&&(_0x123b08=_0x4aea4a(_0x123b08)||_0x123b08);return _0x123b08;},z=(_0x108d03,_0x267ee2)=>(_0x508aec,_0x32c3b2)=>_0x267ee2(_0x508aec,_0x32c3b2,_0x108d03);let ce=class extends _0x4dd7f6{constructor(_0x2d40bd,_0x579bd5,_0x18f72e,_0x907587,_0x50fde3){const _0x479c00=_0x3504c5;super(),this[_0x479c00(0x3ba)]=_0x2d40bd,this[_0x479c00(0x36b)]=_0x579bd5,this[_0x479c00(0x213)]=_0x18f72e,this[_0x479c00(0x3b7)]=_0x907587,_0x50fde3?_0x50fde3==null||_0x50fde3['whenReady']()['then'](()=>this['_init']()):(this[_0x479c00(0x36b)]['debug'](_0x479c00(0x1db),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x479c00(0x19b)]());}async[_0x3504c5(0x19b)](){const _0x21d1ea=_0x3504c5,_0x26dfef=this[_0x21d1ea(0x3ba)][_0x21d1ea(0x391)](_0x21d1ea(0x2a4)),_0x3797be=this['_urlService'][_0x21d1ea(0x391)](_0x21d1ea(0x201)),_0x2b7653=this['_urlService'][_0x21d1ea(0x391)](_0x21d1ea(0x2a2));if(!_0x26dfef||!_0x3797be){this[_0x21d1ea(0x36b)][_0x21d1ea(0x2f3)]('[CollaborationDataLoaderController]',_0x21d1ea(0x1b2));return;}const _0x4526aa=await this[_0x21d1ea(0x3b7)][_0x21d1ea(0x2aa)](_0x26dfef,Number(_0x3797be),_0x2b7653);_0x4526aa&&_0x4526aa instanceof _0x172466&&this[_0x21d1ea(0x1e2)](_0x4526aa);}async[_0x3504c5(0x1e2)](_0x1a07f3){const _0x3686d7=_0x3504c5;await this[_0x3686d7(0x340)](_0x1a07f3),_0x1a07f3[_0x3686d7(0x283)][_0x3686d7(0x37f)](_0xb04df5(this['dispose$']))[_0x3686d7(0x336)](_0x7c5b00=>{const _0x2b900f=_0x3686d7;_0x7c5b00&&this[_0x2b900f(0x316)](_0x7c5b00);}),this['_urlService'][_0x3686d7(0x220)]['pipe'](_0xb04df5(this['dispose$']))[_0x3686d7(0x336)](()=>this[_0x3686d7(0x340)](_0x1a07f3));}[_0x3504c5(0x316)](_0x99b1db,_0x17bd04=!0x1){const _0x4e481b=_0x3504c5,_0x5e6668=this['_urlService'][_0x4e481b(0x391)](_0x4e481b(0x2a2));_0x99b1db[_0x4e481b(0x25f)]()!==_0x5e6668&&this['_urlService']['setParam'](_0x4e481b(0x2a2),_0x99b1db['getSheetId'](),_0x17bd04);}async[_0x3504c5(0x340)](_0x17c72a){const _0x4834f3=_0x3504c5;var _0x1d4676;const _0x332b28=this['_urlService'][_0x4834f3(0x391)](_0x4834f3(0x2a2));if(!_0x332b28||!_0x17c72a['getSheetBySheetId'](_0x332b28)){const _0x5a7cef=_0x17c72a['getUnhiddenWorksheets']()[0x0],_0x15d7e6=_0x17c72a[_0x4834f3(0x1fd)](_0x5a7cef);if(!_0x15d7e6)return;this[_0x4834f3(0x316)](_0x15d7e6,!0x0),await this[_0x4834f3(0x213)]['executeCommand'](_0x344768['id'],{'unitId':_0x17c72a[_0x4834f3(0x3cc)](),'subUnitId':_0x5a7cef});return;}((_0x1d4676=_0x17c72a[_0x4834f3(0x2a7)]())==null?void 0x0:_0x1d4676[_0x4834f3(0x25f)]())!==_0x332b28&&await this['_commandService'][_0x4834f3(0x3a7)](_0x344768['id'],{'unitId':_0x17c72a[_0x4834f3(0x3cc)](),'subUnitId':_0x332b28});}};ce=Ui([z(0x0,Pt),z(0x1,_0x3b520f),z(0x2,_0x378028),z(0x3,_0x13fac2(_0x8ec34d)),z(0x4,_0x20ad22(_0x598a96))],ce);var Li=Object[_0x3504c5(0x1c3)],Mi=(_0x2e0cfc,_0x14a5d5,_0x1a98f6,_0x33f5ed)=>{const _0x226a2f=_0x3504c5;for(var _0x5b5276=_0x33f5ed>0x1?void 0x0:_0x33f5ed?Li(_0x14a5d5,_0x1a98f6):_0x14a5d5,_0x39a50e=_0x2e0cfc[_0x226a2f(0x329)]-0x1,_0xa6d187;_0x39a50e>=0x0;_0x39a50e--)(_0xa6d187=_0x2e0cfc[_0x39a50e])&&(_0x5b5276=_0xa6d187(_0x5b5276)||_0x5b5276);return _0x5b5276;},it=(_0x5f3dc9,_0x1e3120)=>(_0x23cd96,_0x1b5765)=>_0x1e3120(_0x23cd96,_0x1b5765,_0x5f3dc9);let Pe=class extends _0x4dd7f6{constructor(_0x26e2b8,_0x5bdf4f){const _0x591d8d=_0x3504c5;super(),this[_0x591d8d(0x19e)]=_0x26e2b8,this[_0x591d8d(0x2b1)]=_0x5bdf4f,this[_0x591d8d(0x19b)]();}[_0x3504c5(0x19b)](){const _0x5c908f=_0x3504c5,_0x47dce4=this;this[_0x5c908f(0x2fd)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x23c89c=>{const _0x40056d=_0x5c908f,_0x3fc2b8=await _0x47dce4['_imageIoService'][_0x40056d(0x1d1)](_0x23c89c);return _0x3fc2b8?{'source':_0x3fc2b8[_0x40056d(0x2f6)],'imageSourceType':_0x3fc2b8[_0x40056d(0x3cb)]}:null;}}));}};Pe=Mi([it(0x0,_0x1cec76),it(0x1,_0x54d2a8)],Pe);const nt=[_0x3504c5(0x358),_0x3504c5(0x2fe),_0x3504c5(0x2ac),_0x3504c5(0x386),_0x3504c5(0x38d),'yellow.400'];class Ge extends _0x44caae{constructor(){const _0x276b03=_0x3504c5;super(...arguments),_(this,_0x276b03(0x23d),new Map()),_(this,_0x276b03(0x3df),0x0);}[_0x3504c5(0x2a6)](_0x4cbf50){const _0x24e611=_0x3504c5;if(this[_0x24e611(0x23d)][_0x24e611(0x2db)](_0x4cbf50))return this[_0x24e611(0x23d)][_0x24e611(0x1c0)](_0x4cbf50);const _0x1eb5aa=nt[this[_0x24e611(0x3df)]];return this['_colorIndex']=(this[_0x24e611(0x3df)]+0x1)%nt[_0x24e611(0x329)],this[_0x24e611(0x23d)][_0x24e611(0x32b)](_0x4cbf50,_0x1eb5aa),_0x1eb5aa;}}function wt(_0x12f2ec){const _0x216b1d=_0x3504c5;let _0x576d3e='';for(const _0x5ead06 of _0x12f2ec){const {startOffset:_0x1fee87,endOffset:_0xf08c0d,isActive:_0x225a15,rangeType:_0xc56172,segmentId:_0x551a79,segmentPage:_0x506426}=_0x5ead06;_0x576d3e[_0x216b1d(0x329)]&&(_0x576d3e+=','),_0x576d3e+=_0x1fee87+':'+_0xf08c0d+':'+(_0x225a15?'1':'0')+':'+_0xc56172+':'+_0x551a79+':'+_0x506426;}return _0x576d3e;}function Ai(_0x340a77){const _0xbdc2be=_0x3504c5,_0x45916a=_0x340a77[_0xbdc2be(0x3b3)](','),_0x5ce8de=[];for(const _0x58b5e4 of _0x45916a){const [_0x10486c,_0x4e5170,_0x3993c2,_0x5df737,_0x8bc26,_0x1cbddc]=_0x58b5e4[_0xbdc2be(0x3b3)](':');_0x5ce8de[_0xbdc2be(0x2a3)]({'startOffset':Number(_0x10486c),'endOffset':Number(_0x4e5170),'collapsed':_0x10486c===_0x4e5170,'isActive':_0x3993c2==='1','rangeType':_0x5df737===_0x2ff472[_0xbdc2be(0x32d)]?_0x2ff472['TEXT']:_0x2ff472[_0xbdc2be(0x368)],'segmentId':typeof _0x8bc26==_0xbdc2be(0x319)?String(_0x8bc26):'','segmentPage':Number(_0x1cbddc!=null?_0x1cbddc:-0x1)});}return _0x5ce8de[_0xbdc2be(0x1e7)](_0x34f289=>_0x34f289[_0xbdc2be(0x1f5)])||(_0x5ce8de[0x0]['isActive']=!0x0),_0x5ce8de;}class Ke extends _0x4dd7f6{constructor(){const _0x48cfb4=_0x3504c5;super(...arguments),_(this,_0x48cfb4(0x30e),new _0x1bb082(null)),_(this,_0x48cfb4(0x1ae),this[_0x48cfb4(0x30e)]['asObservable']());}['syncEditingCollabCursor'](_0x8b74b4){const _0x414a8e=_0x3504c5,{unitID:_0x220d1a,memberID:_0x4dd9c0,textRanges:_0x343f62}=_0x8b74b4,_0x20c1b2=wt(_0x343f62);if(_0x20c1b2==='')return;const _0x29cd89={'unitID':_0x220d1a,'memberID':_0x4dd9c0,'selection':_0x20c1b2};this[_0x414a8e(0x30e)][_0x414a8e(0x25d)](_0x29cd89);}}var Pi=Object[_0x3504c5(0x1c3)],wi=(_0x1e8fb3,_0x57b5a5,_0x5c8907,_0x582346)=>{const _0xc07b0=_0x3504c5;for(var _0x136265=_0x582346>0x1?void 0x0:_0x582346?Pi(_0x57b5a5,_0x5c8907):_0x57b5a5,_0x2818ef=_0x1e8fb3[_0xc07b0(0x329)]-0x1,_0x4039cd;_0x2818ef>=0x0;_0x2818ef--)(_0x4039cd=_0x1e8fb3[_0x2818ef])&&(_0x136265=_0x4039cd(_0x136265)||_0x136265);return _0x136265;},P=(_0x46e6da,_0x524e21)=>(_0xf815f9,_0x5718c3)=>_0x524e21(_0xf815f9,_0x5718c3,_0x46e6da);const yi=0x12c,$i=0x64;let we=class extends _0x4dd7f6{constructor(_0x5281b9,_0x4f4f70,_0x259f5d,_0x2cd4f7,_0x1f06d6,_0xe84a8b,_0x53e916,_0xe8bd6e,_0x33ca59){const _0x4bf768=_0x3504c5;super(),_(this,'_online',!0x1),_(this,_0x4bf768(0x19b),!0x1),_(this,_0x4bf768(0x20a),new _0x1bb082(new Map())),_(this,_0x4bf768(0x22a),this[_0x4bf768(0x20a)]['asObservable']()),_(this,_0x4bf768(0x1cc),new _0x1bb082([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x51621e(yi))),_(this,_0x4bf768(0x195),_0x47926c(_0x1cbe54=>{const _0x33ee07=_0x4bf768,_0x27b953={'eventID':_0xbf2684[_0x33ee07(0x301)],'data':{'unitID':this['unitID'],'memberID':this[_0x33ee07(0x3bf)][_0x33ee07(0x345)](),'selection':wt(_0x1cbe54)}};this['_session']['send'](_0x27b953,this['unitID']);},$i)),(this[_0x4bf768(0x267)]=_0x5281b9,this[_0x4bf768(0x3bf)]=_0x4f4f70,this[_0x4bf768(0x23b)]=_0x259f5d,this[_0x4bf768(0x248)]=_0x2cd4f7,this[_0x4bf768(0x3a2)]=_0x1f06d6,this[_0x4bf768(0x2d1)]=_0xe84a8b,this[_0x4bf768(0x21d)]=_0x53e916,this[_0x4bf768(0x1a8)]=_0xe8bd6e,this[_0x4bf768(0x213)]=_0x33ca59);}get[_0x3504c5(0x38f)](){const _0x28991c=_0x3504c5;return this[_0x28991c(0x20a)]['getValue']();}get['roomMembers'](){const _0x2f7a30=_0x3504c5;return this[_0x2f7a30(0x1cc)][_0x2f7a30(0x320)]();}['dispose'](){const _0x4bc037=_0x3504c5;super[_0x4bc037(0x24a)](),this[_0x4bc037(0x20a)][_0x4bc037(0x25d)](new Map()),this[_0x4bc037(0x20a)][_0x4bc037(0x3c6)](),this[_0x4bc037(0x1cc)][_0x4bc037(0x25d)]([]),this['_roomMembers$'][_0x4bc037(0x3c6)]();}[_0x3504c5(0x2ff)](){const _0x1b41fe=_0x3504c5;this[_0x1b41fe(0x19b)]||(this[_0x1b41fe(0x19b)]=!0x0,this[_0x1b41fe(0x3bf)][_0x1b41fe(0x1d2)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x5c0d9c=>{const _0x57dd7d=_0x1b41fe;_0x5c0d9c===_0x2298f4['ONLINE']?this[_0x57dd7d(0x2bf)]():this['_toggleOffline']();}),this[_0x1b41fe(0x3bf)][_0x1b41fe(0x206)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x3a7bd8=>{const _0x3e01a2=_0x1b41fe,_0x5811ab=_0x3a7bd8[_0x3e01a2(0x28f)];_0x5811ab===_0xbf2684[_0x3e01a2(0x301)]&&this[_0x3e01a2(0x1c9)](_0x3a7bd8),_0x5811ab===_0xbf2684[_0x3e01a2(0x3bc)]&&this[_0x3e01a2(0x369)](_0x3a7bd8);}),this['disposeWithMe'](this[_0x1b41fe(0x213)][_0x1b41fe(0x383)](_0x387246=>{const _0xf2115a=_0x1b41fe,_0x59f7ab=_0x387246['params'];_0x59f7ab!=null&&this[_0xf2115a(0x1e5)]&&_0x387246['id']===_0x5a1d5c['id']&&_0x59f7ab[_0xf2115a(0x1f0)]===this['unitID']&&_0x59f7ab[_0xf2115a(0x24d)]===!0x1&&_0x59f7ab[_0xf2115a(0x1ed)][_0xf2115a(0x329)]>0x0&&this[_0xf2115a(0x195)](_0x59f7ab['ranges']);})),this[_0x1b41fe(0x2d1)][_0x1b41fe(0x1ae)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x241fc4=>{const _0x40cc46=_0x1b41fe;if((_0x241fc4==null?void 0x0:_0x241fc4['unitID'])!==this[_0x40cc46(0x267)])return;const _0x4c1ca9={'eventID':_0xbf2684['UPDATE_CURSOR'],'data':_0x241fc4};this['_onCursorUpdate'](_0x4c1ca9);}),this[_0x1b41fe(0x2fd)](this[_0x1b41fe(0x213)]['onCommandExecuted'](_0x3c57c4=>{const _0x1f57d2=_0x1b41fe;if(_0x3c57c4[_0x1f57d2(0x380)]==null)return;const _0x55807c=_0x3c57c4['params'];if(_0x3c57c4['id']!==_0xd909db['id']||_0x55807c[_0x1f57d2(0x1f0)]!==this[_0x1f57d2(0x267)])return;const _0x515fb8={'id':'doc.mutation.rich-text-editing','params':_0x55807c},_0xb64749=this[_0x1f57d2(0x38f)];for(const [_0x53a28c,_0x469383]of _0xb64749){const _0x3eca29={'id':_0x1f57d2(0x221),'params':{'unitId':this[_0x1f57d2(0x267)],'actions':null,'textRanges':_0x469383[_0x1f57d2(0x1ed)]}},_0x172b98=this[_0x1f57d2(0x21d)]['transformMutation'](_0x515fb8,_0x3eca29,!0x1);if(_0x45a2c4(_0x172b98))throw _0x172b98[_0x1f57d2(0x1b1)];_0xb64749[_0x1f57d2(0x32b)](_0x53a28c,{..._0x469383,'ranges':_0x172b98[_0x1f57d2(0x23e)][_0x1f57d2(0x380)][_0x1f57d2(0x204)]});}queueMicrotask(()=>{const _0x16fadd=_0x1f57d2;this[_0x16fadd(0x20a)][_0x16fadd(0x25d)](_0xb64749);});})));}[_0x3504c5(0x1c9)](_0xbdffcc){const _0x414190=_0x3504c5;var _0x7f42ce,_0x1881ae;const {memberID:_0x4cc056,selection:_0x571636}=_0xbdffcc[_0x414190(0x370)],_0x41e3b4=Ai(_0x571636),_0x521551=(_0x1881ae=(_0x7f42ce=this['_memberService'][_0x414190(0x394)](this[_0x414190(0x267)],_0x4cc056))==null?void 0x0:_0x7f42ce['name'])!=null?_0x1881ae:_0x414190(0x192),_0x558944={'color':this['_colorAssignService'][_0x414190(0x2a6)](_0x4cc056),'name':_0x521551,'ranges':_0x41e3b4},_0x51ffe2=this[_0x414190(0x38f)];_0x51ffe2[_0x414190(0x32b)](_0x4cc056,_0x558944),this[_0x414190(0x20a)][_0x414190(0x25d)](_0x51ffe2);}[_0x3504c5(0x369)](_0x35c98b){const _0x370795=_0x3504c5,{memberID:_0x593ed3}=_0x35c98b[_0x370795(0x370)],_0x35426f=this[_0x370795(0x38f)];_0x35426f[_0x370795(0x312)](_0x593ed3),this[_0x370795(0x20a)][_0x370795(0x25d)](_0x35426f);}['_toggleOnline'](){const _0x18b90c=_0x3504c5;var _0x3b75a9;if(this[_0x18b90c(0x1e5)]=!0x0,((_0x3b75a9=this[_0x18b90c(0x1a8)][_0x18b90c(0x1c4)]())==null?void 0x0:_0x3b75a9[_0x18b90c(0x3cc)]())!==this[_0x18b90c(0x267)])return;const _0x2d207b=this['_injector'][_0x18b90c(0x1c0)](_0x259657)['getDocRanges']();Array[_0x18b90c(0x1d8)](_0x2d207b)&&_0x2d207b[_0x18b90c(0x329)]>0x0&&this[_0x18b90c(0x195)](_0x2d207b);}[_0x3504c5(0x35b)](){const _0x35a763=_0x3504c5;this[_0x35a763(0x1e5)]=!0x1;}};we=wi([P(0x2,_0x13fac2(_0x4da47b)),P(0x3,_0x13fac2(Ge)),P(0x4,_0x13fac2(_0x4cbb58)),P(0x5,_0x13fac2(Ke)),P(0x6,_0x3943ee),P(0x7,_0x437d75),P(0x8,_0x378028)],we);var xi=Object[_0x3504c5(0x1c3)],Bi=(_0x392534,_0x19a127,_0x5be377,_0x3dc1ed)=>{for(var _0x209140=_0x3dc1ed>0x1?void 0x0:_0x3dc1ed?xi(_0x19a127,_0x5be377):_0x19a127,_0x3740fa=_0x392534['length']-0x1,_0x30877a;_0x3740fa>=0x0;_0x3740fa--)(_0x30877a=_0x392534[_0x3740fa])&&(_0x209140=_0x30877a(_0x209140)||_0x209140);return _0x209140;},F=(_0x409f27,_0x3eeeea)=>(_0x556f73,_0x488047)=>_0x3eeeea(_0x556f73,_0x488047,_0x409f27);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x65b8c4=[],_0x19bc0e=!0x1;return _0xa29ae9=>{_0x65b8c4['push'](_0xa29ae9),_0x19bc0e||(_0x19bc0e=!0x0,setTimeout(()=>{const _0x24e74e=_0x3f6f;_0x65b8c4[_0x24e74e(0x3c9)](_0x56a741=>_0x56a741()),_0x65b8c4=[],_0x19bc0e=!0x1;}));};};let ye=class extends _0x4dd7f6{constructor(_0x2088c1,_0xe57155,_0x48cc79,_0x5e5796,_0x4facc5,_0x2a9ef6,_0x55f798,_0x593a60){const _0x4a3ffe=_0x3504c5;super(),_(this,'_online',!0x1),_(this,_0x4a3ffe(0x19b),!0x1),_(this,'_cursorInfo$',new _0x1bb082(new Map())),_(this,_0x4a3ffe(0x22a),this[_0x4a3ffe(0x20a)][_0x4a3ffe(0x395)]()),_(this,_0x4a3ffe(0x1cc),new _0x1bb082([])),_(this,_0x4a3ffe(0x2a9),this[_0x4a3ffe(0x1cc)][_0x4a3ffe(0x37f)](_0x51621e(Fi))),_(this,'_updateLocalCursor',_0x47926c((_0x16742d,_0x1141e5)=>{const _0xaccc=_0x4a3ffe,_0x4ff9b6={'eventID':_0xbf2684[_0xaccc(0x301)],'data':{'unitID':this[_0xaccc(0x267)],'memberID':this[_0xaccc(0x3bf)][_0xaccc(0x345)](),'selection':_0x48fa02(_0x16742d,_0x1141e5[_0xaccc(0x2ce)])}};this[_0xaccc(0x3bf)][_0xaccc(0x3c2)](_0x4ff9b6,this[_0xaccc(0x267)]);},ki)),(this[_0x4a3ffe(0x267)]=_0x2088c1,this[_0x4a3ffe(0x3bf)]=_0xe57155,this['_injector']=_0x48cc79,this[_0x4a3ffe(0x248)]=_0x5e5796,this[_0x4a3ffe(0x3a2)]=_0x4facc5,this[_0x4a3ffe(0x1a8)]=_0x2a9ef6,this[_0x4a3ffe(0x213)]=_0x55f798,this[_0x4a3ffe(0x3ac)]=_0x593a60);}get[_0x3504c5(0x38f)](){const _0x573f32=_0x3504c5;return this['_cursorInfo$'][_0x573f32(0x320)]();}get['roomMembers'](){const _0x45aa05=_0x3504c5;return this[_0x45aa05(0x1cc)][_0x45aa05(0x320)]();}['dispose'](){const _0x3959c0=_0x3504c5;super['dispose'](),this[_0x3959c0(0x20a)]['next'](new Map()),this[_0x3959c0(0x20a)][_0x3959c0(0x3c6)](),this[_0x3959c0(0x1cc)]['next']([]),this['_roomMembers$'][_0x3959c0(0x3c6)]();}[_0x3504c5(0x2ff)](){const _0x229985=_0x3504c5;this[_0x229985(0x19b)]||(this[_0x229985(0x19b)]=!0x0,this['_session']['sessionStatus$'][_0x229985(0x37f)](_0xb04df5(this['dispose$']))[_0x229985(0x336)](_0x32b561=>{const _0x3d0d47=_0x229985;_0x32b561===_0x2298f4[_0x3d0d47(0x243)]?this['_toggleOnline']():this[_0x3d0d47(0x35b)]();}),this['_session'][_0x229985(0x206)][_0x229985(0x37f)](_0xb04df5(this['dispose$']))[_0x229985(0x336)](_0x27ceba=>{const _0x5aa281=_0x229985,_0x44ee05=_0x27ceba[_0x5aa281(0x28f)];_0x44ee05===_0xbf2684[_0x5aa281(0x301)]&&this[_0x5aa281(0x1c9)](_0x27ceba),_0x44ee05===_0xbf2684[_0x5aa281(0x3bc)]&&this[_0x5aa281(0x369)](_0x27ceba);}),this['_onRefRangeChange'](),this[_0x229985(0x2fd)](this[_0x229985(0x213)][_0x229985(0x383)](_0x310212=>{const _0x277c8b=_0x229985;if(this['_online']&&_0x310212['id']===_0x225cd4['id']&&_0x310212[_0x277c8b(0x380)][_0x277c8b(0x1f0)]===this[_0x277c8b(0x267)]){const _0x494c44=_0x310212[_0x277c8b(0x380)];this[_0x277c8b(0x195)](_0x494c44[_0x277c8b(0x3ab)],_0x494c44[_0x277c8b(0x29a)][0x0]);}})));}[_0x3504c5(0x1c9)](_0x225c03){const _0x20b668=_0x3504c5;var _0x378c24,_0x447f68;const {memberID:_0x5e74b1,selection:_0x83216a}=_0x225c03[_0x20b668(0x370)],{sheetName:_0x225b42,range:_0x17ba9f}=_0x4f5b3a(_0x83216a),_0x5e11ba={'name':(_0x447f68=(_0x378c24=this[_0x20b668(0x3a2)][_0x20b668(0x394)](this['unitID'],_0x5e74b1))==null?void 0x0:_0x378c24['name'])!=null?_0x447f68:_0x20b668(0x192),'range':this[_0x20b668(0x2e8)](_0x225b42,_0x17ba9f),'sheetID':_0x225b42,'color':this[_0x20b668(0x248)][_0x20b668(0x2a6)](_0x5e74b1),'selection':_0x83216a},_0x187be9=this[_0x20b668(0x38f)];_0x187be9['set'](_0x5e74b1,_0x5e11ba),this[_0x20b668(0x20a)][_0x20b668(0x25d)](_0x187be9);}['_onCursorDelete'](_0x33a8e3){const _0x37cd07=_0x3504c5,{memberID:_0x1265ca}=_0x33a8e3['data'],_0x2e084c=this[_0x37cd07(0x38f)];_0x2e084c[_0x37cd07(0x312)](_0x1265ca),this['_cursorInfo$'][_0x37cd07(0x25d)](_0x2e084c);}[_0x3504c5(0x2e8)](_0x1628a4,_0x8627ea){const _0x4715f9=_0x3504c5;var _0x1bee4a,_0x2e54ef;const _0x4abbe5=(_0x2e54ef=(_0x1bee4a=this['_univerInstanceService'][_0x4715f9(0x2e5)](this['unitID']))==null?void 0x0:_0x1bee4a[_0x4715f9(0x1fd)](_0x1628a4))==null?void 0x0:_0x2e54ef['getMergeData']();return(_0x4abbe5==null?void 0x0:_0x4abbe5[_0x4715f9(0x1c6)](_0x3ad096=>_0x2a46cf[_0x4715f9(0x202)](_0x3ad096,_0x8627ea)))||_0x8627ea;}[_0x3504c5(0x39c)](){const _0x258843=_0x3504c5,_0x2a539b=new _0x42029c(),_0x3e2a1f=Hi(),_0x2e5bd7=()=>{const _0x30fdca=_0x3f6f;_0x2a539b[_0x30fdca(0x24a)]();const _0x1e70f4=(_0x58fe84,_0x21e9c9,_0x4d1ad3,_0x5aae87)=>{const _0x1a8290=_0x30fdca;let _0x2dda4b=[];switch(_0x58fe84['id']){case _0x27ae65[_0x1a8290(0x1e1)]:{_0x2dda4b=_0x449627(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x2c5)]:{_0x2dda4b=_0x2dbc93(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x3a4)]:{_0x2dda4b=_0x204136(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x2e4)]:{_0x2dda4b=_0x3285a0(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x372)]:{_0x2dda4b=_0x4c8134(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x328)]:{_0x2dda4b=_0x8109a7(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x21f)]:{_0x2dda4b=_0x538c2c(_0x58fe84,_0x5aae87);break;}case _0x27ae65['RemoveColCommandId']:{_0x2dda4b=_0x24566c(_0x58fe84,_0x5aae87);break;}case _0x27ae65['RemoveRowCommandId']:{_0x2dda4b=_0x4a868d(_0x58fe84,_0x5aae87);break;}}const _0x2e6c93=_0x13bbde(_0x2dda4b,_0x5aae87),_0x10231b=this[_0x1a8290(0x38f)][_0x1a8290(0x1c0)](_0x21e9c9);if(_0x10231b&&_0x2e6c93){const _0x27e699={..._0x10231b,'range':_0x2e6c93};this[_0x1a8290(0x38f)][_0x1a8290(0x32b)](_0x21e9c9,_0x27e699),_0x3e2a1f(()=>{const _0x5846d6=_0x1a8290,_0x11742d=this[_0x5846d6(0x3ac)][_0x5846d6(0x375)](_0x2e6c93,_0x294aba=>(_0x11742d[_0x5846d6(0x24a)](),_0x1e70f4(_0x294aba,_0x21e9c9,_0x4d1ad3,_0x2e6c93)));_0x2a539b[_0x5846d6(0x314)](_0x11742d);});}return{'redos':[],'undos':[]};};this[_0x30fdca(0x38f)][_0x30fdca(0x3c9)]((_0xb523c8,_0x444cff)=>{const _0x4e7973=_0x30fdca,{range:_0x495b6a,sheetID:_0x28c3f3}=_0xb523c8,_0x116b14=this['_refRangeService'][_0x4e7973(0x375)](_0x495b6a,_0x329a36=>(_0x116b14[_0x4e7973(0x24a)](),_0x1e70f4(_0x329a36,_0x444cff,_0x28c3f3,_0x495b6a)));_0x2a539b[_0x4e7973(0x314)](_0x116b14);});};this[_0x258843(0x2fd)](_0x2576da(this[_0x258843(0x20a)][_0x258843(0x336)](()=>{_0x2e5bd7();})));}[_0x3504c5(0x2bf)](){const _0x93dc9e=_0x3504c5;var _0x241491,_0xcc41cf;if(this[_0x93dc9e(0x1e5)]=!0x0,((_0x241491=this[_0x93dc9e(0x1a8)]['getFocusedUnit']())==null?void 0x0:_0x241491['getUnitId']())!==this['unitID'])return;const _0x1a4637=(_0xcc41cf=this['_injector'][_0x93dc9e(0x1c0)](_0x14ecb3)[_0x93dc9e(0x216)]())==null?void 0x0:_0xcc41cf[0x0],_0x1c62ee=this[_0x93dc9e(0x1a8)][_0x93dc9e(0x289)](_0x3d4d2c['UNIVER_SHEET'])['getActiveSheet']();_0x1a4637&&_0x1c62ee&&this[_0x93dc9e(0x195)](_0x1c62ee[_0x93dc9e(0x25f)](),_0x1a4637);}['_toggleOffline'](){const _0x29dc39=_0x3504c5;this[_0x29dc39(0x1e5)]=!0x1;}};ye=Bi([F(0x2,_0x13fac2(_0x4da47b)),F(0x3,_0x13fac2(Ge)),F(0x4,_0x13fac2(_0x4cbb58)),F(0x5,_0x437d75),F(0x6,_0x378028),F(0x7,_0x13fac2(_0x1d2c90))],ye);var Yi=Object[_0x3504c5(0x1c3)],Wi=(_0x1d173a,_0x241d7b,_0xeec901,_0x4ca1cb)=>{const _0x414f39=_0x3504c5;for(var _0x21ddde=_0x4ca1cb>0x1?void 0x0:_0x4ca1cb?Yi(_0x241d7b,_0xeec901):_0x241d7b,_0x30ccda=_0x1d173a[_0x414f39(0x329)]-0x1,_0x3b4fb8;_0x30ccda>=0x0;_0x30ccda--)(_0x3b4fb8=_0x1d173a[_0x30ccda])&&(_0x21ddde=_0x3b4fb8(_0x21ddde)||_0x21ddde);return _0x21ddde;},pe=(_0x7be19d,_0x31d240)=>(_0x102ad4,_0xb52865)=>_0x31d240(_0x102ad4,_0xb52865,_0x7be19d);let Y=class extends _0x4dd7f6{constructor(_0xfb5afa,_0x5894f2,_0x1e16ba){const _0x16d380=_0x3504c5;super(),_(this,_0x16d380(0x388),new Map()),_(this,_0x16d380(0x35e),new _0x5060b1()),(this['_univerInstanceService']=_0xfb5afa,this[_0x16d380(0x23b)]=_0x5894f2,this[_0x16d380(0x27e)]=_0x1e16ba,this[_0x16d380(0x19b)]());}[_0x3504c5(0x24a)](){const _0x25025d=_0x3504c5;super[_0x25025d(0x24a)](),this[_0x25025d(0x35e)][_0x25025d(0x3c6)](),this[_0x25025d(0x388)][_0x25025d(0x3c9)](_0x30adb5=>_0x30adb5[_0x25025d(0x24a)]());}[_0x3504c5(0x1f3)](_0x3d3665){const _0x2693c9=_0x3504c5;return this[_0x2693c9(0x388)][_0x2693c9(0x2db)](_0x3d3665)?this[_0x2693c9(0x388)][_0x2693c9(0x1c0)](_0x3d3665)[_0x2693c9(0x22a)]:this[_0x2693c9(0x35e)]['pipe'](_0x1db320(_0x24efd9=>_0x24efd9[_0x2693c9(0x267)]===_0x3d3665),_0x3ba0ae(_0x1af308=>_0x1af308[_0x2693c9(0x22a)]));}[_0x3504c5(0x19b)](){const _0x33461a=_0x3504c5;this[_0x33461a(0x1a8)][_0x33461a(0x35c)](_0x3d4d2c['UNIVER_SHEET'])[_0x33461a(0x37f)](_0xb04df5(this['dispose$']))[_0x33461a(0x336)](async _0x449966=>{const _0x40b923=_0x33461a,_0x50fcf9=_0x449966[_0x40b923(0x3cc)](),_0x249b39=await this['_startSheetCollabCursor'](_0x50fcf9);this[_0x40b923(0x35e)][_0x40b923(0x25d)](_0x249b39),this[_0x40b923(0x388)][_0x40b923(0x32b)](_0x50fcf9,_0x249b39);}),this[_0x33461a(0x1a8)][_0x33461a(0x35c)](_0x3d4d2c[_0x33461a(0x34e)])[_0x33461a(0x37f)](_0xb04df5(this[_0x33461a(0x21c)]))[_0x33461a(0x37f)](_0x1db320(_0x11eabf=>!_0x11eabf[_0x33461a(0x3cc)]()[_0x33461a(0x3c4)]('__')))[_0x33461a(0x336)](async _0x537cf1=>{const _0xc68926=_0x33461a,_0x55d265=_0x537cf1['getUnitId'](),_0x4d972c=await this[_0xc68926(0x297)](_0x55d265);this[_0xc68926(0x35e)][_0xc68926(0x25d)](_0x4d972c),this['_entities'][_0xc68926(0x32b)](_0x55d265,_0x4d972c);}),_0x680757(this[_0x33461a(0x1a8)][_0x33461a(0x1bd)](_0x3d4d2c[_0x33461a(0x34e)]),this[_0x33461a(0x1a8)][_0x33461a(0x1bd)](_0x3d4d2c[_0x33461a(0x3dc)]))[_0x33461a(0x37f)](_0xb04df5(this[_0x33461a(0x21c)]))[_0x33461a(0x336)](_0x589ead=>{const _0x4959e4=_0x33461a,_0x1b851f=_0x589ead[_0x4959e4(0x3cc)](),_0x3798eb=this[_0x4959e4(0x388)]['get'](_0x1b851f);_0x3798eb&&(_0x3798eb[_0x4959e4(0x24a)](),this['_entities'][_0x4959e4(0x312)](_0x1b851f));});}async[_0x3504c5(0x338)](_0x500c30){const _0x39bfde=_0x3504c5,_0x137a12=await this[_0x39bfde(0x27e)][_0x39bfde(0x266)](_0x500c30),_0x19af7e=this[_0x39bfde(0x23b)][_0x39bfde(0x2af)](ye,_0x500c30,_0x137a12);return _0x19af7e[_0x39bfde(0x2ff)](),_0x19af7e;}async['_startDocCollabCursor'](_0x2308b1){const _0x22b8f3=_0x3504c5,_0x199345=await this[_0x22b8f3(0x27e)][_0x22b8f3(0x266)](_0x2308b1),_0x3f9c89=this[_0x22b8f3(0x23b)][_0x22b8f3(0x2af)](we,_0x2308b1,_0x199345);return _0x3f9c89[_0x22b8f3(0x2ff)](),_0x3f9c89;}};Y=Wi([pe(0x0,_0x437d75),pe(0x1,_0x13fac2(_0x4da47b)),pe(0x2,_0x13fac2(_0x4e336e))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x3759f1,_0x305c46){const _0x4ea90e=_0x3504c5;let {radius:_0x22b3bf,width:_0x222433,height:_0xb03249}=_0x305c46;_0x22b3bf=_0x22b3bf!=null?_0x22b3bf:0x0,_0x222433=_0x222433!=null?_0x222433:0x1e,_0xb03249=_0xb03249!=null?_0xb03249:0x1e;let _0x1ddfff=0x0,_0x43049e=0x0,_0x335222=0x0;_0x1ddfff=_0x43049e=_0x335222=Math[_0x4ea90e(0x366)](_0x22b3bf,_0x222433/0x2,_0xb03249/0x2),_0x3759f1[_0x4ea90e(0x2ab)](),_0x3759f1[_0x4ea90e(0x2b4)](_0x1ddfff,0x0),_0x3759f1['lineTo'](_0x222433-_0x43049e,0x0),_0x3759f1['arc'](_0x222433-_0x43049e,_0x43049e,_0x43049e,Math['PI']*0x3/0x2,0x0,!0x1),_0x3759f1[_0x4ea90e(0x350)](_0x222433,_0xb03249-_0x335222),_0x3759f1[_0x4ea90e(0x203)](_0x222433-_0x335222,_0xb03249-_0x335222,_0x335222,0x0,Math['PI']/0x2,!0x1),_0x3759f1[_0x4ea90e(0x350)](0x0,_0xb03249),_0x3759f1[_0x4ea90e(0x350)](0x0,_0x1ddfff),_0x3759f1['arc'](_0x1ddfff,_0x1ddfff,_0x1ddfff,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3759f1[_0x4ea90e(0x365)](),_0x305c46[_0x4ea90e(0x396)]&&(_0x3759f1['save'](),_0x3759f1[_0x4ea90e(0x1d6)]=_0x305c46[_0x4ea90e(0x396)],_0x305c46[_0x4ea90e(0x1ce)]===_0x4ea90e(0x1b5)?_0x3759f1[_0x4ea90e(0x396)](_0x4ea90e(0x1b5)):_0x3759f1[_0x4ea90e(0x396)](),_0x3759f1[_0x4ea90e(0x270)]());}class Ie extends _0x3acd0c{constructor(_0x2f7192,_0x2745b0){const _0x504a20=_0x3504c5;super(_0x2f7192,_0x2745b0),_(this,_0x504a20(0x1d0)),_(this,_0x504a20(0x347)),(this[_0x504a20(0x1d0)]=_0x2745b0==null?void 0x0:_0x2745b0[_0x504a20(0x1d0)],this[_0x504a20(0x347)]=_0x2745b0==null?void 0x0:_0x2745b0[_0x504a20(0x347)]);}static[_0x3504c5(0x2b9)](_0x41c7ff,_0x3c50cd){const _0x207b3f=_0x3504c5,{text:_0x2fb724,color:_0x3b1e81}=_0x3c50cd;_0x41c7ff[_0x207b3f(0x39d)](),_0x41c7ff['font']=_0x207b3f(0x2ea);const _0x165444=_0x41c7ff[_0x207b3f(0x326)](_0x2fb724)[_0x207b3f(0x335)],_0x1d928c=Math[_0x207b3f(0x366)](_0x165444+0x2*Oe,rt);ji(_0x41c7ff,{'height':q,'radius':0x4,'width':_0x1d928c,'fill':_0x3b1e81}),_0x41c7ff[_0x207b3f(0x1d6)]=_0x207b3f(0x241);const _0x7e716a=Oe,_0x3f6d76=q-Vi,_0x23801f=rt-0x2*Oe;if(_0x165444>_0x23801f){let _0x7d31c9='',_0x10b207=0x0;for(const _0x407ddd of _0x2fb724){const _0x3ad7ab=_0x41c7ff[_0x207b3f(0x326)](_0x407ddd)[_0x207b3f(0x335)];if(_0x10b207+_0x3ad7ab<=_0x23801f-_0x41c7ff['measureText']('...')[_0x207b3f(0x335)])_0x7d31c9+=_0x407ddd,_0x10b207+=_0x3ad7ab;else{_0x7d31c9+='...';break;}}_0x41c7ff[_0x207b3f(0x263)](_0x7d31c9,_0x7e716a,_0x3f6d76);}else _0x41c7ff[_0x207b3f(0x263)](_0x2fb724,_0x7e716a,_0x3f6d76);_0x41c7ff[_0x207b3f(0x270)]();}[_0x3504c5(0x2de)](_0x3e2bd8){const _0x10533=_0x3504c5;Ie[_0x10533(0x2b9)](_0x3e2bd8,this);}}const Te=_0x3504c5(0x1ad),Xi='collab-text-range-',Gi=_0x3504c5(0x282),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x3504c5(0x2df);class ot{constructor(_0x26fda9,_0x97a410,_0x4173eb,_0x30b79f){const _0x2bae7f=_0x3504c5;_(this,_0x2bae7f(0x302),[]),_(this,'_anchor',null),_(this,_0x2bae7f(0x26a),null),_(this,'_anchorDot',null),_(this,_0x2bae7f(0x226),null),_(this,_0x2bae7f(0x1dd),null),(this['_cursor']=_0x26fda9,this[_0x2bae7f(0x34c)]=_0x97a410,this['_docSkeleton']=_0x4173eb,this[_0x2bae7f(0x30b)]=_0x30b79f,this[_0x2bae7f(0x1aa)]());}set['_hover'](_0x29bcc8){const _0x305341=_0x3504c5;_0x29bcc8?(this[_0x305341(0x252)]&&this[_0x305341(0x252)][_0x305341(0x2ba)](),this[_0x305341(0x26a)]&&this[_0x305341(0x26a)]['show']()):(this[_0x305341(0x252)]&&this['_anchorDot'][_0x305341(0x332)](),this['_textBubble']&&this[_0x305341(0x26a)]['hide']());}[_0x3504c5(0x24a)](){const _0x2d0ec7=_0x3504c5;for(const _0x59cda4 of this['_shapes'])_0x59cda4['dispose']();this[_0x2d0ec7(0x26a)]&&this['_textBubble'][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x252)]&&this['_anchorDot'][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x330)]&&this[_0x2d0ec7(0x330)][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x1dd)]&&this[_0x2d0ec7(0x1dd)]();}[_0x3504c5(0x1aa)](){const _0x3f4ee8=_0x3504c5;var _0x3e1112;const {_docSkeleton:_0x1a09af,_document:_0x24adae}=this,{color:_0x2956ca,name:_0x2d659c,ranges:_0x111573}=this[_0x3f4ee8(0x37c)],_0x54ce63=_0x24adae[_0x3f4ee8(0x25b)](),{docsLeft:_0x32ebe0,docsTop:_0x1c3a21}=_0x54ce63,_0x10544e=new _0x587060(_0x54ce63,_0x1a09af);for(const {startOffset:_0x235b5b,endOffset:_0x8249b0,rangeType:_0x4e2554,segmentId:_0x57d7db,segmentPage:_0x544e3b,collapsed:_0x28d1b8,isActive:_0x130c34}of _0x111573){const _0x89459f=_0x1a09af['findNodePositionByCharIndex'](_0x235b5b,!0x0,_0x57d7db,_0x544e3b);let _0x353e4c=_0x1a09af[_0x3f4ee8(0x3ad)](_0x8249b0,!0x0,_0x57d7db,_0x544e3b);if(_0x353e4c==null&&(_0x353e4c=_0x1a09af['findNodePositionByCharIndex'](_0x8249b0-0x1,!0x1,_0x57d7db,_0x544e3b)),_0x130c34){const {contentBoxPointGroup:_0x1460d7}=_0x10544e[_0x3f4ee8(0x361)](_0x353e4c,_0x353e4c);if(_0x1460d7[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x2c2)](_0x2956ca,_0x1460d7,_0x32ebe0,_0x1c3a21,_0x2d659c),this[_0x3f4ee8(0x1dd)]=this['_handleHover']();}if(_0x89459f&&_0x353e4c){if(_0x4e2554===_0x2ff472['RECT']){const _0x9cf86e=new _0x118b5f(_0x54ce63,_0x1a09af),{pointGroup:_0x2acdbf}=(_0x3e1112=_0x9cf86e[_0x3f4ee8(0x361)](_0x89459f,_0x353e4c))!=null?_0x3e1112:{};if(_0x2acdbf==null||_0x2acdbf[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x3a6)](_0x2956ca,_0x2acdbf,_0x32ebe0,_0x1c3a21);}else{if(!_0x28d1b8){const {borderBoxPointGroup:_0x1f64a8}=_0x10544e[_0x3f4ee8(0x361)](_0x89459f,_0x353e4c);if(_0x1f64a8[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x2b2)](_0x2956ca,_0x1f64a8,_0x32ebe0,_0x1c3a21);}}}}}[_0x3504c5(0x2c2)](_0x3f28a0,_0x34ccd5,_0x363e8d,_0x369baf,_0x2c0684){const _0x222a99=_0x3504c5,_0x409b4e=this['_getAnchorBounding'](_0x34ccd5),{left:_0x262bfc,top:_0x1cfa68,height:_0x3cea2d}=_0x409b4e,_0x3c5dca=this['_getScale'](),_0x57e825=zi/_0x3c5dca,_0x32169b=new _0x514da9(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf,'height':_0x3cea2d,'width':Ki,'fill':_0x3f28a0||_0x486a87(_0x3312f1[_0x222a99(0x1b4)],0x0),'strokeWidth':_0x57e825,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x32169b,this[_0x222a99(0x34c)]['addObject'](_0x32169b,_0x26f088);const _0x55d494=new _0x514da9(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x3f28a0||_0x486a87(_0x3312f1[_0x222a99(0x1b4)],0x0),'strokeWidth':0x0,'stroke':_0x3f28a0||_0x486a87(_0x3312f1['black'],0x0),'evented':!0x1});this[_0x222a99(0x252)]=_0x55d494,this['_scene'][_0x222a99(0x2ec)](_0x55d494,_0x26f088);const _0x2ab52e=new Ie(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf-q,'text':_0x2c0684,'color':_0x3f28a0});this[_0x222a99(0x26a)]=_0x2ab52e,this[_0x222a99(0x34c)][_0x222a99(0x2ec)](_0x2ab52e,_0x26f088),this[_0x222a99(0x39a)]=!0x1;}[_0x3504c5(0x1a9)](){const _0x376788=_0x3504c5,_0x10fd4=this['_anchor']['onPointerEnter$'][_0x376788(0x377)](()=>{const _0x4a9cee=_0x376788;this[_0x4a9cee(0x39a)]=!0x0;}),_0x5c617d=this['_anchor'][_0x376788(0x33e)]['subscribeEvent'](()=>{const _0x26ec71=_0x376788;this[_0x26ec71(0x226)]&&clearTimeout(this[_0x26ec71(0x226)]),this[_0x26ec71(0x226)]=setTimeout(()=>{const _0x2c2a90=_0x26ec71;this[_0x2c2a90(0x39a)]=!0x1;},0x7d0);});return()=>{const _0x2ca677=_0x376788;_0x10fd4[_0x2ca677(0x3a9)](),_0x5c617d['unsubscribe']();};}['_drawTextRange'](_0x33b007,_0x2966ce,_0x6b3e5e,_0x13ab6c){const _0x23b5a6=_0x3504c5,_0x49276c=new _0x44319d(_0x33b007)['setAlpha'](0.2)[_0x23b5a6(0x331)](),_0x25ae7a=new _0x1556b3(Xi+_0x144598(J),{'pointsGroup':_0x2966ce,'fill':_0x49276c||_0x486a87(_0x3312f1[_0x23b5a6(0x1b4)],0.2),'left':_0x6b3e5e,'top':_0x13ab6c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23b5a6(0x302)][_0x23b5a6(0x2a3)](_0x25ae7a),this[_0x23b5a6(0x34c)][_0x23b5a6(0x2ec)](_0x25ae7a,_0x26f088);}['_drawRectRange'](_0x165746,_0x2d04af,_0x58c78b,_0x59a185){const _0x7bb002=_0x3504c5,_0x275d64=new _0x44319d(_0x165746)[_0x7bb002(0x23a)](0.2)[_0x7bb002(0x331)](),_0x145de5=new _0x1556b3(Gi+_0x144598(J),{'pointsGroup':_0x2d04af,'fill':_0x275d64||_0x486a87(_0x3312f1[_0x7bb002(0x1b4)],0.2),'left':_0x58c78b,'top':_0x59a185,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x7bb002(0x2a3)](_0x145de5),this[_0x7bb002(0x34c)][_0x7bb002(0x2ec)](_0x145de5,_0x26f088);}[_0x3504c5(0x1ca)](_0x1735b0){const _0x57b502=_0x1735b0[0x0],_0x27f658=_0x57b502[0x0],_0x37a2d9=_0x57b502[0x2],{x:_0x16a81e,y:_0x4c5e71}=_0x27f658,{x:_0x4447cb,y:_0x1d8c87}=_0x37a2d9;return{'left':_0x16a81e,'top':_0x4c5e71,'width':_0x4447cb-_0x16a81e,'height':_0x1d8c87-_0x4c5e71};}[_0x3504c5(0x33a)](){const _0x4ca918=_0x3504c5,{scaleX:_0x599836,scaleY:_0x32b339}=this[_0x4ca918(0x34c)][_0x4ca918(0x31e)]();return Math[_0x4ca918(0x2ad)](_0x599836,_0x32b339);}}var Zi=Object[_0x3504c5(0x1c3)],Qi=(_0x50a65d,_0x26b7f6,_0x43a8df,_0xbd17e3)=>{const _0xbfaf24=_0x3504c5;for(var _0x45b5ce=_0xbd17e3>0x1?void 0x0:_0xbd17e3?Zi(_0x26b7f6,_0x43a8df):_0x26b7f6,_0x1cb4e9=_0x50a65d[_0xbfaf24(0x329)]-0x1,_0x2768bf;_0x1cb4e9>=0x0;_0x1cb4e9--)(_0x2768bf=_0x50a65d[_0x1cb4e9])&&(_0x45b5ce=_0x2768bf(_0x45b5ce)||_0x45b5ce);return _0x45b5ce;},ne=(_0x5b1372,_0x2f1691)=>(_0x5a3e45,_0x587347)=>_0x2f1691(_0x5a3e45,_0x587347,_0x5b1372);let $e=class extends _0x4dd7f6{constructor(_0x293825,_0x52b680,_0x3db4d5,_0x320297,_0x161c75){const _0x3097e7=_0x3504c5;super(),_(this,_0x3097e7(0x3d8),[]),_(this,_0x3097e7(0x20e),[]),(this[_0x3097e7(0x346)]=_0x293825,this[_0x3097e7(0x355)]=_0x52b680,this[_0x3097e7(0x291)]=_0x3db4d5,this[_0x3097e7(0x213)]=_0x320297,this[_0x3097e7(0x2dc)]=_0x161c75,this[_0x3097e7(0x19b)]());}['_init'](){const _0x26b982=_0x3504c5,_0x16c165=this[_0x26b982(0x346)][_0x26b982(0x1f0)],_0x444428=this[_0x26b982(0x355)];this['disposeWithMe'](_0x338b00([this[_0x26b982(0x291)][_0x26b982(0x1f3)](_0x16c165),this[_0x26b982(0x2dc)][_0x26b982(0x245)]])[_0x26b982(0x37f)](_0x43fad8(([_0x35e3b3,_0x214cad])=>({'skeleton':_0x444428[_0x26b982(0x2d8)](),'cursors':[..._0x35e3b3[_0x26b982(0x387)]()][_0x26b982(0x2fa)](_0xd337b9=>({..._0xd337b9,'color':this[_0x26b982(0x2dc)][_0x26b982(0x1bf)](_0xd337b9[_0x26b982(0x1d0)])}))})))[_0x26b982(0x336)](_0x1537be=>{const _0x2bb060=_0x26b982;if(this[_0x2bb060(0x36e)](),_0x1537be){const {skeleton:_0x3446e5,cursors:_0x208b58}=_0x1537be;this[_0x2bb060(0x299)](_0x3446e5,_0x208b58);}})),this['_initResize'](),this[_0x26b982(0x193)]();}[_0x3504c5(0x299)](_0x4de40d,_0xf047b7){const _0x10ec0f=_0x3504c5,{scene:_0xe8040c,mainComponent:_0x126935}=this['_context'],_0x57548f=_0xf047b7['map'](_0x3d034f=>new ot(_0x3d034f,_0xe8040c,_0x4de40d,_0x126935));this[_0x10ec0f(0x3d8)]=_0x57548f,this[_0x10ec0f(0x20e)]=_0xf047b7;}[_0x3504c5(0x265)](){const _0x57952f=_0x3504c5;this[_0x57952f(0x36e)]();const {scene:_0x262440,mainComponent:_0x3ea0a9}=this[_0x57952f(0x346)],_0x58409d=this[_0x57952f(0x355)][_0x57952f(0x2d8)](),_0x4b25e6=this['_cursors'][_0x57952f(0x3a8)](_0x517306=>new ot(_0x517306,_0x262440,_0x58409d,_0x3ea0a9));this[_0x57952f(0x3d8)]=_0x4b25e6;}[_0x3504c5(0x36e)](){const _0x11f7a4=_0x3504c5;this['_cursorShapes'][_0x11f7a4(0x3c9)](_0x5d8dfa=>_0x5d8dfa[_0x11f7a4(0x24a)]()),this[_0x11f7a4(0x3d8)]=[];}[_0x3504c5(0x193)](){const _0x2054f3=_0x3504c5,_0x3a4635=[_0x42495b['id']];this[_0x2054f3(0x2fd)](this[_0x2054f3(0x213)][_0x2054f3(0x383)](_0x1d8e79=>{const _0x5933c8=_0x2054f3;_0x3a4635[_0x5933c8(0x240)](_0x1d8e79['id'])&&_0x1d8e79[_0x5933c8(0x380)][_0x5933c8(0x1f0)]===this['_context']['unitId']&&this[_0x5933c8(0x265)]();}));}[_0x3504c5(0x2bc)](){const _0x40daa7=_0x3504c5;this[_0x40daa7(0x2fd)](_0xc40dd(this[_0x40daa7(0x346)][_0x40daa7(0x244)][_0x40daa7(0x357)])[_0x40daa7(0x37f)](_0x18ab68(_0xfb00fb=>_0xfb00fb[_0x40daa7(0x201)]===_0x3128aa[_0x40daa7(0x32e)]),_0x26bb7e(0x10))['subscribe'](()=>{const _0x3673ee=_0x40daa7;this[_0x3673ee(0x265)]();}));}};$e=Qi([ne(0x1,_0x13fac2(_0x516f50)),ne(0x2,_0x13fac2(Y)),ne(0x3,_0x378028),ne(0x4,_0x13fac2(_0x2f412a))],$e);const qi=0x1,en=1.5;class tn extends _0x3acd0c{constructor(_0x5e75f3,_0x3882d7){const _0x3d53a0=_0x3504c5;super(_0x5e75f3,_0x3882d7),_(this,'_color'),_(this,_0x3d53a0(0x348),!0x1),_(this,_0x3d53a0(0x306)),_(this,'_name',''),_(this,'_labelPosition',_0x3d53a0(0x3cf)),_(this,_0x3d53a0(0x33b)),(_0x3882d7&&this[_0x3d53a0(0x3d9)](_0x3882d7),this[_0x3d53a0(0x3c0)]['subscribeEvent'](()=>this[_0x3d53a0(0x3d9)]({'hovered':!0x0})),this[_0x3d53a0(0x33e)][_0x3d53a0(0x377)](()=>this[_0x3d53a0(0x3d9)]({'hovered':!0x1})));}[_0x3504c5(0x3d9)](_0x26b9e0){const _0x2d3ffe=_0x3504c5;var _0x37cf08,_0x3aa6b2,_0x241d74,_0x515bab,_0x4b582b,_0x18785a;this[_0x2d3ffe(0x325)]=(_0x37cf08=_0x26b9e0[_0x2d3ffe(0x1d0)])!=null?_0x37cf08:this[_0x2d3ffe(0x325)],this['_hovered']=(_0x3aa6b2=_0x26b9e0[_0x2d3ffe(0x339)])!=null?_0x3aa6b2:this['_hovered'],this[_0x2d3ffe(0x306)]=(_0x241d74=_0x26b9e0[_0x2d3ffe(0x2ce)])!=null?_0x241d74:this[_0x2d3ffe(0x306)],this[_0x2d3ffe(0x253)]=(_0x515bab=_0x26b9e0[_0x2d3ffe(0x238)])!=null?_0x515bab:this[_0x2d3ffe(0x253)],this[_0x2d3ffe(0x3a0)]=(_0x4b582b=_0x26b9e0[_0x2d3ffe(0x290)])!=null?_0x4b582b:this[_0x2d3ffe(0x3a0)],this[_0x2d3ffe(0x33b)]=(_0x18785a=_0x26b9e0[_0x2d3ffe(0x260)])!=null?_0x18785a:this[_0x2d3ffe(0x33b)],this[_0x2d3ffe(0x3be)]({'width':_0x26b9e0[_0x2d3ffe(0x335)],'height':_0x26b9e0['height']});}[_0x3504c5(0x2f0)](_0x597db7){const _0x440a94=_0x3504c5,{row:_0x841981,column:_0x5bfb38}=_0x597db7;if(_0x841981>=this[_0x440a94(0x306)][_0x440a94(0x20b)]&&_0x841981<=this[_0x440a94(0x306)][_0x440a94(0x36c)]&&_0x5bfb38>=this['_range']['startColumn']&&_0x5bfb38<=this['_range']['endColumn']){this[_0x440a94(0x3d9)]({'hovered':!0x0});return;}this[_0x440a94(0x3d9)]({'hovered':!0x1});}['triggerDblclick'](_0x95240a){return!0x1;}[_0x3504c5(0x2de)](_0x4d3944){const _0x8b207d=_0x3504c5;_0x514da9[_0x8b207d(0x2b9)](_0x4d3944,{'width':this[_0x8b207d(0x335)],'height':this[_0x8b207d(0x1cb)],'strokeWidth':en,'stroke':this[_0x8b207d(0x325)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x4d3944[_0x8b207d(0x39d)](),_0x4d3944[_0x8b207d(0x257)](0x1,0x0,0x0,0x1,this[_0x8b207d(0x335)],this['_labelPosition']===_0x8b207d(0x1a6)?0x0:-q),Ie[_0x8b207d(0x2b9)](_0x4d3944,{'text':this['_name'],'color':this[_0x8b207d(0x325)]}),_0x4d3944[_0x8b207d(0x270)]());}}var sn=Object[_0x3504c5(0x1c3)],nn=(_0x24aec0,_0x328036,_0xa8e174,_0x300704)=>{const _0x289a5c=_0x3504c5;for(var _0x3eb809=_0x300704>0x1?void 0x0:_0x300704?sn(_0x328036,_0xa8e174):_0x328036,_0x66bf19=_0x24aec0[_0x289a5c(0x329)]-0x1,_0x8e0e38;_0x66bf19>=0x0;_0x66bf19--)(_0x8e0e38=_0x24aec0[_0x66bf19])&&(_0x3eb809=_0x8e0e38(_0x3eb809)||_0x3eb809);return _0x3eb809;},Re=(_0x2f9053,_0x2a979c)=>(_0x18c97b,_0x224590)=>_0x2a979c(_0x18c97b,_0x224590,_0x2f9053);const rn=0x1389;let xe=class extends _0x4dd7f6{constructor(_0x36f0e2,_0x3c4631,_0x2089a2,_0x391a98){const _0x2be3bd=_0x3504c5;super(),_(this,_0x2be3bd(0x20e),new Set()),_(this,_0x2be3bd(0x333),null),(this['_context']=_0x36f0e2,this['_sheetSkeletonManagerService']=_0x3c4631,this[_0x2be3bd(0x291)]=_0x2089a2,this[_0x2be3bd(0x2dc)]=_0x391a98,this[_0x2be3bd(0x19b)]());}[_0x3504c5(0x19b)](){const _0x5723a5=_0x3504c5;this[_0x5723a5(0x2b0)][_0x5723a5(0x1bb)]['pipe'](_0x3d85e9(this[_0x5723a5(0x21c)]),_0x1ed193(_0x4b74e0=>{const _0x42a1ad=_0x5723a5;if(_0x4b74e0){const _0x9a987f=_0x4b74e0['sheetId'];return _0x338b00(this['_collabCursorController'][_0x42a1ad(0x1f3)](this[_0x42a1ad(0x346)][_0x42a1ad(0x1f0)]),this['_themeService']['currentTheme$'])[_0x42a1ad(0x37f)](_0x43fad8(([_0x1352fe,_0x1c8ac6])=>{const _0x39d9eb=new Map();return _0x1352fe['forEach']((_0x2ff11c,_0x393fb1)=>{const _0x482cd4=_0x3f6f;if(_0x2ff11c[_0x482cd4(0x228)]===_0x9a987f){const _0x40c0b0={..._0x2ff11c};_0x40c0b0[_0x482cd4(0x1d0)]=this[_0x482cd4(0x2dc)][_0x482cd4(0x1bf)](_0x2ff11c[_0x482cd4(0x1d0)]),_0x39d9eb[_0x482cd4(0x32b)](_0x393fb1,_0x40c0b0);}}),{'skeleton':_0x4b74e0,'cursors':_0x39d9eb};}));}return _0x5943a5({'skeleton':null,'cursors':new Map()});}))[_0x5723a5(0x336)](({skeleton:_0x10570a,cursors:_0x4a2779})=>{const _0x4f77fe=_0x5723a5;this[_0x4f77fe(0x36e)](),_0x10570a&&this[_0x4f77fe(0x299)](_0x10570a,_0x4a2779);}),this[_0x5723a5(0x2b0)]['currentSkeleton$'][_0x5723a5(0x336)](_0x4e6e95=>{const _0x4e7e73=_0x5723a5;if(_0x4e6e95==null)return;const {skeleton:_0x376579}=_0x4e6e95,{scene:_0x216d4d}=this[_0x4e7e73(0x346)];_0x216d4d[_0x4e7e73(0x39f)]['subscribeEvent'](_0x47926c(_0x5808cb=>{const _0x1c6b70=_0x4e7e73;var _0x44a504,_0x443136;const {offsetX:_0x40ef06,offsetY:_0x2814bb}=_0x5808cb,{x:_0x246ce5,y:_0x2a8401}=_0x216d4d[_0x1c6b70(0x258)](_0x3199d6[_0x1c6b70(0x24f)]([_0x40ef06,_0x2814bb])),{scaleX:_0x1b2e66,scaleY:_0x3f11a4}=_0x216d4d[_0x1c6b70(0x31e)](),_0x55091f=_0x216d4d[_0x1c6b70(0x29f)](_0xd834fb[_0x1c6b70(0x33d)]),_0x276cc7=_0x216d4d[_0x1c6b70(0x286)](_0x3199d6[_0x1c6b70(0x24f)]([_0x246ce5,_0x2a8401]),_0x55091f),_0x283278=_0x376579[_0x1c6b70(0x2c4)](_0x40ef06,_0x2814bb,_0x1b2e66,_0x3f11a4,_0x276cc7);((_0x44a504=this[_0x1c6b70(0x333)])==null?void 0x0:_0x44a504[_0x1c6b70(0x3ae)])===_0x283278[_0x1c6b70(0x3ae)]&&((_0x443136=this[_0x1c6b70(0x333)])==null?void 0x0:_0x443136[_0x1c6b70(0x212)])===_0x283278['row']||this[_0x1c6b70(0x20e)][_0x1c6b70(0x3c9)](_0x199a67=>{const _0x42a64e=_0x1c6b70;_0x199a67[_0x42a64e(0x2f0)](_0x283278);});},0x64));});}[_0x3504c5(0x299)](_0x52d605,_0x3ed844){const _0x217c54=_0x3504c5;var _0x1b1493;const _0x5b16fb=(_0x1b1493=this[_0x217c54(0x2b0)]['getCurrent']())==null?void 0x0:_0x1b1493[_0x217c54(0x303)];if(!_0x5b16fb)return;const _0x395f68=this[_0x217c54(0x3d2)]();if(!_0x395f68)return;this[_0x217c54(0x20e)]['forEach'](_0x2f2c9b=>{const _0x48dd6b=_0x217c54;_0x2f2c9b[_0x48dd6b(0x1ef)]();});const {scene:_0x3912fd}=_0x395f68,_0x177f64=on(Array[_0x217c54(0x277)](_0x3ed844['values']()))['map'](_0x57e7da=>{const _0x600a79=_0x217c54,{color:_0x536b4c,range:_0x4818b6,name:_0x216207,selection:_0xe9b04e,sheetID:_0x15673b}=_0x57e7da,{startColumn:_0x57a34e,startRow:_0x4e8f85,endColumn:_0x343ca3,endRow:_0x27ff42}=_0x4818b6,_0xb15bed=_0x5f53de(_0x4e8f85,_0x57a34e,_0x3912fd,_0x5b16fb),_0xaff247=_0x5f53de(_0x27ff42,_0x343ca3,_0x3912fd,_0x5b16fb),{columnHeaderHeightAndMarginTop:_0x267d63}=_0x5b16fb,{startX:_0x14e88d,startY:_0x523b46}=_0xb15bed,{endX:_0x1bb8c9,endY:_0xf10868}=_0xaff247,_0x3ae6d4=_0x1bb8c9-_0x14e88d,_0x56ee6a=_0xf10868-_0x523b46,_0x4904f9={'labelPosition':_0x523b46-_0x267d63>=q?'top':_0x600a79(0x1a6),'sheetID':_0x15673b,'range':_0x4818b6,'color':_0x536b4c,'name':_0x216207,'selection':_0xe9b04e,'left':_0x14e88d,'top':_0x523b46,'width':_0x3ae6d4,'height':_0x56ee6a,'evented':!0x1,'zIndex':rn};return new tn(_0x216207,_0x4904f9);});_0x3912fd['addObjects'](_0x177f64,qi),this[_0x217c54(0x20e)]=new Set(_0x177f64);}[_0x3504c5(0x36e)](){const _0x11e69b=_0x3504c5;var _0x2106ad;(_0x2106ad=this[_0x11e69b(0x20e)])==null||_0x2106ad['forEach'](_0x2e960a=>_0x2e960a[_0x11e69b(0x24a)]());}[_0x3504c5(0x3d2)](){const _0x5aac54=_0x3504c5;return _0x4d2825(this[_0x5aac54(0x346)][_0x5aac54(0x2a4)],this['_context']);}};xe=nn([Re(0x1,_0x13fac2(_0x29be31)),Re(0x2,_0x13fac2(Y)),Re(0x3,_0x13fac2(_0x2f412a))],xe);function on(_0x23cc1a){const _0xd6fd55=_0x3504c5,_0x4f3e8a=new Map();return _0x23cc1a['forEach'](_0x216028=>{const _0x1b3a7d=_0x3f6f;if(_0x4f3e8a[_0x1b3a7d(0x2db)](_0x216028[_0x1b3a7d(0x28a)])){const _0x22028b=_0x4f3e8a[_0x1b3a7d(0x1c0)](_0x216028['selection']);_0x22028b[_0x1b3a7d(0x238)]+=',\x20'+_0x216028['name'];}else _0x4f3e8a['set'](_0x216028[_0x1b3a7d(0x28a)],_0x216028);}),Array[_0xd6fd55(0x277)](_0x4f3e8a['values']());}var an=Object[_0x3504c5(0x1c3)],cn=(_0x35fd60,_0xaab3f7,_0x9afe0c,_0x3a34c4)=>{const _0x4180b1=_0x3504c5;for(var _0x4b6506=_0x3a34c4>0x1?void 0x0:_0x3a34c4?an(_0xaab3f7,_0x9afe0c):_0xaab3f7,_0x4b8904=_0x35fd60[_0x4180b1(0x329)]-0x1,_0x48e857;_0x4b8904>=0x0;_0x4b8904--)(_0x48e857=_0x35fd60[_0x4b8904])&&(_0x4b6506=_0x48e857(_0x4b6506)||_0x4b6506);return _0x4b6506;},k=(_0x291958,_0x5b9a98)=>(_0x36bcf8,_0x20225a)=>_0x5b9a98(_0x36bcf8,_0x20225a,_0x291958);let le=class extends _0x44caae{constructor(_0xf5a4a8,_0x5d4095,_0x2f6aa6,_0x4c4b5a,_0x381ee3,_0xf2852e){const _0xc3ae7=_0x3504c5;super(),this[_0xc3ae7(0x38a)]=_0xf5a4a8,this['_localCacheService']=_0x5d4095,this['_collaborationUIEventService']=_0x2f6aa6,this[_0xc3ae7(0x196)]=_0x4c4b5a,this[_0xc3ae7(0x300)]=_0x381ee3,this[_0xc3ae7(0x30a)]=_0xf2852e,this[_0xc3ae7(0x307)](),this[_0xc3ae7(0x3ce)]();}['_setupBeforeClosingHandler'](){const _0x441cac=_0x3504c5;this['disposeWithMe'](this[_0x441cac(0x38a)][_0x441cac(0x2cb)](()=>{const _0x313b3b=_0x441cac;if(this[_0x313b3b(0x2f4)][_0x313b3b(0x36f)][_0x313b3b(0x1fc)])return this[_0x313b3b(0x30a)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3504c5(0x3ce)](){const _0x5bb584=_0x3504c5;this[_0x5bb584(0x2fd)](this[_0x5bb584(0x1b6)][_0x5bb584(0x206)][_0x5bb584(0x336)](_0x532927=>{const _0x4abb74=_0x5bb584;_0x532927['id']===_0x4435b4[_0x4abb74(0x1ac)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x352)],'content':this[_0x4abb74(0x30a)]['t']('collaboration.single-unit.warning')}),_0x532927['id']===_0x4435b4[_0x4abb74(0x3b5)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x352)],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e6))}),_0x532927['id']===_0x4435b4[_0x4abb74(0x223)]&&this[_0x4abb74(0x300)]['show']({'title':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e0)),'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x342)),'type':_0x4abb74(0x1b1),'duration':0x0}),_0x532927['id']===_0x4435b4['CONFLICT']&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Error'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e6))+'('+_0x532927[_0x4abb74(0x370)]+')'}),_0x532927['id']===_0x4435b4[_0x4abb74(0x37d)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Warning'],'content':this['_localeService']['t'](_0x532927[_0x4abb74(0x370)]||'')}),_0x532927['id']===_0x4435b4[_0x4abb74(0x2d7)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Warning'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x273))}),_0x532927['id']===_0x4435b4['SOCKET_FAILED']&&this['_messageService'][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x230)],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1dc))}),_0x532927['id']===_0x4435b4[_0x4abb74(0x27b)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Error'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x274))});}));}};le=cn([k(0x0,_0x59ea3f),k(0x1,_0x55c362),k(0x2,_0x13fac2(_0x291389)),k(0x3,_0x1b730d),k(0x4,_0x540b4a),k(0x5,_0x13fac2(_0x21a3cc))],le);const ln=_0x3504c5(0x25e),at={};var _n=Object['getOwnPropertyDescriptor'],hn=(_0x3df684,_0x3b2b56,_0x4ef956,_0x24d453)=>{const _0x337940=_0x3504c5;for(var _0x451089=_0x24d453>0x1?void 0x0:_0x24d453?_n(_0x3b2b56,_0x4ef956):_0x3b2b56,_0x5acf47=_0x3df684[_0x337940(0x329)]-0x1,_0x224829;_0x5acf47>=0x0;_0x5acf47--)(_0x224829=_0x3df684[_0x5acf47])&&(_0x451089=_0x224829(_0x451089)||_0x451089);return _0x451089;},ct=(_0x527552,_0x48372b)=>(_0x57c832,_0x3c313d)=>_0x48372b(_0x57c832,_0x3c313d,_0x527552);let _e=class{constructor(_0x5580b2,_0x54b052){const _0x463e47=_0x3504c5;this['_transformService']=_0x5580b2,this[_0x463e47(0x1b8)]=_0x54b052;}[_0x3504c5(0x1c2)](_0xc3b992){const _0xcf6c44=_0x3504c5;this[_0xcf6c44(0x313)](_0xc3b992),this[_0xcf6c44(0x219)](_0xc3b992);}[_0x3504c5(0x35a)](_0x127566){const _0x3a7445=_0x3504c5,{unitID:_0x11ce82}=_0x127566,_0x293901=this[_0x3a7445(0x1b8)][_0x3a7445(0x354)](_0x11ce82)[_0x3a7445(0x24c)](_0x23034e),{redoCache:_0xd12a20}=_0x293901[_0x3a7445(0x296)]();if(_0xd12a20[_0x3a7445(0x329)]===0x0)return _0x127566;let _0x46a8b6=_0x267bed[_0x3a7445(0x214)](_0x127566[_0x3a7445(0x2d3)][0x0]);for(let _0x27eb79=0x0;_0x27eb79<_0xd12a20[_0x3a7445(0x329)];_0x27eb79++){const _0x41f6ca={'id':'doc.mutation.rich-text-editing','params':{..._0xd12a20[_0x27eb79]}},_0x2ece3d=this[_0x3a7445(0x21d)][_0x3a7445(0x341)](_0x46a8b6,_0x41f6ca,!0x1);if(_0x45a2c4(_0x2ece3d))throw _0x2ece3d['error'];_0x46a8b6=_0x2ece3d['m1Prime'];}return{..._0x267bed['deepClone'](_0x127566),'mutations':[_0x46a8b6]};}['_transformUndoRedoStack'](_0x1ef64c){const _0x347b3d=_0x3504c5,{unitID:_0x5954f6}=_0x1ef64c,_0x3e9910=this['_renderManagerService']['getRenderById'](_0x5954f6)[_0x347b3d(0x24c)](_0x23034e),{undoCache:_0xbd98ab,redoCache:_0x2a3b4b}=_0x3e9910['getUndoRedoMutationParamsCache']();if(_0xbd98ab['length']===0x0||_0x2a3b4b['length']===0x0)return;const _0x262a4d=[],_0x5654b8=[];let _0x403eaa=_0x267bed[_0x347b3d(0x214)](_0x1ef64c[_0x347b3d(0x2d3)][0x0]),_0x366cb9=_0x267bed['deepClone'](_0x1ef64c['mutations'][0x0]);for(let _0x2054df=_0xbd98ab[_0x347b3d(0x329)]-0x1;_0x2054df>=0x0;_0x2054df--){const _0x5134c2={'id':_0x347b3d(0x221),'params':{..._0xbd98ab[_0x2054df]}},_0x2608dd={'id':_0x347b3d(0x221),'params':{..._0x2a3b4b[_0x2054df]}},_0x5c3df9=this[_0x347b3d(0x21d)][_0x347b3d(0x341)](_0x403eaa,_0x5134c2,!0x1),_0x93bdb0=this[_0x347b3d(0x21d)][_0x347b3d(0x341)](_0x366cb9,_0x2608dd,!0x1);if(_0x45a2c4(_0x5c3df9))throw _0x5c3df9[_0x347b3d(0x1b1)];if(_0x45a2c4(_0x93bdb0))throw _0x93bdb0[_0x347b3d(0x1b1)];_0x262a4d[_0x347b3d(0x30c)](_0x5c3df9[_0x347b3d(0x23e)]['params']),_0x5654b8[_0x347b3d(0x30c)](_0x93bdb0['m2Prime']['params']),_0x403eaa=_0x5c3df9[_0x347b3d(0x2cd)],_0x366cb9=_0x93bdb0[_0x347b3d(0x2cd)];}_0x3e9910[_0x347b3d(0x3d5)]({'undoCache':_0x262a4d,'redoCache':_0x5654b8});}[_0x3504c5(0x219)](_0x5327b5){const _0x5c0e7b=_0x3504c5,{unitID:_0x2b5957}=_0x5327b5,_0x38a222=this['_renderManagerService'][_0x5c0e7b(0x354)](_0x2b5957)[_0x5c0e7b(0x24c)](_0x23034e),_0x32e6f3=_0x38a222[_0x5c0e7b(0x28e)]();if(_0x32e6f3==null)return;const _0x41438f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5327b5[_0x5c0e7b(0x267)],'actions':null,'textRanges':[_0x32e6f3]}}],_0x55adc2=this[_0x5c0e7b(0x21d)][_0x5c0e7b(0x3b2)](_0x5327b5,_0x41438f);if(!_0x5d4db3(_0x55adc2))throw _0x55adc2[_0x5c0e7b(0x1b1)];const _0x3bca98=_0x55adc2[_0x5c0e7b(0x23e)][0x0][_0x5c0e7b(0x380)][_0x5c0e7b(0x204)];Array[_0x5c0e7b(0x1d8)](_0x3bca98)&&_0x3bca98[_0x5c0e7b(0x329)]&&_0x38a222[_0x5c0e7b(0x294)](_0x3bca98[0x0]);}};_e=hn([ct(0x0,_0x3943ee),ct(0x1,_0x5dc693)],_e);var un=Object['getOwnPropertyDescriptor'],dn=(_0x569f81,_0x3f913e,_0x28e0fc,_0x56c17a)=>{for(var _0x4ca6b8=_0x56c17a>0x1?void 0x0:_0x56c17a?un(_0x3f913e,_0x28e0fc):_0x3f913e,_0x125761=_0x569f81['length']-0x1,_0x129990;_0x125761>=0x0;_0x125761--)(_0x129990=_0x569f81[_0x125761])&&(_0x4ca6b8=_0x129990(_0x4ca6b8)||_0x4ca6b8);return _0x4ca6b8;},De=(_0x2ef500,_0xcdbb81)=>(_0x57caed,_0x4b44ee)=>_0xcdbb81(_0x57caed,_0x4b44ee,_0x2ef500);let he=class{constructor(_0x291f33,_0x559371,_0x1dc7e0){const _0x5b396b=_0x3504c5;this[_0x5b396b(0x23b)]=_0x291f33,this[_0x5b396b(0x21d)]=_0x559371,this[_0x5b396b(0x261)]=_0x1dc7e0;}['transformStateCache'](_0x2d9fe7){this['_transformHistoryAndStateStack'](_0x2d9fe7);}[_0x3504c5(0x35a)](_0x2d24ef){const _0x18b5f5=_0x3504c5,{unitID:_0x1d0950}=_0x2d24ef,{collaboration:_0x59276d}=this[_0x18b5f5(0x261)][_0x18b5f5(0x205)](_0x1d0950);if(_0x59276d[_0x18b5f5(0x329)]===0x0)return _0x2d24ef;let _0x1f03b1=_0x267bed[_0x18b5f5(0x214)](_0x2d24ef[_0x18b5f5(0x2d3)][0x0]);for(let _0x57e089=0x0;_0x57e089<_0x59276d[_0x18b5f5(0x329)];_0x57e089++){const _0x32c84e={'id':_0x18b5f5(0x221),'params':{'unitId':_0x59276d[_0x57e089][_0x18b5f5(0x1f0)],..._0x59276d[_0x57e089]['redoState']}},_0x3a6b22=this[_0x18b5f5(0x21d)][_0x18b5f5(0x341)](_0x1f03b1,_0x32c84e,!0x1);if(_0x45a2c4(_0x3a6b22))throw _0x3a6b22[_0x18b5f5(0x1b1)];_0x1f03b1=_0x3a6b22['m1Prime'];}return{..._0x267bed['deepClone'](_0x2d24ef),'mutations':[_0x1f03b1]};}[_0x3504c5(0x232)](_0x501d31){const _0x4ea30a=_0x3504c5,{unitID:_0x3751d7}=_0x501d31,{history:_0x1e49ef,collaboration:_0x425412}=this[_0x4ea30a(0x261)]['getStateCache'](_0x3751d7);if(_0x1e49ef[_0x4ea30a(0x329)]===0x0&&_0x425412['length']===0x0)return;const _0x4c39cc=[],_0x18c8ef=[];let _0x247640=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]),_0x2b5366=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]);for(let _0x15fc4d=_0x1e49ef[_0x4ea30a(0x329)]-0x1;_0x15fc4d>=0x0;_0x15fc4d--){const _0x4a4d6b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e49ef[_0x15fc4d][_0x4ea30a(0x1f0)],..._0x1e49ef[_0x15fc4d][_0x4ea30a(0x32c)]}},_0xca48a2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e49ef[_0x15fc4d][_0x4ea30a(0x1f0)],..._0x1e49ef[_0x15fc4d][_0x4ea30a(0x30f)]}},_0x1f4859=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x247640,_0x4a4d6b,!0x1),_0x332740=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x2b5366,_0xca48a2,!0x1);if(_0x45a2c4(_0x1f4859))throw _0x1f4859[_0x4ea30a(0x1b1)];if(_0x45a2c4(_0x332740))throw _0x332740[_0x4ea30a(0x1b1)];_0x4c39cc[_0x4ea30a(0x30c)]({..._0x1e49ef[_0x15fc4d],'undoState':_0x1f4859[_0x4ea30a(0x23e)][_0x4ea30a(0x380)],'redoState':_0x332740[_0x4ea30a(0x23e)][_0x4ea30a(0x380)]}),_0x247640=_0x1f4859[_0x4ea30a(0x2cd)],_0x2b5366=_0x332740['m1Prime'];}_0x247640=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]),_0x2b5366=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]);for(let _0x4fd246=_0x425412['length']-0x1;_0x4fd246>=0x0;_0x4fd246--){const _0x5048b9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x425412[_0x4fd246][_0x4ea30a(0x1f0)],..._0x425412[_0x4fd246][_0x4ea30a(0x32c)]}},_0x31b760={'id':_0x4ea30a(0x221),'params':{'unitId':_0x425412[_0x4fd246][_0x4ea30a(0x1f0)],..._0x425412[_0x4fd246][_0x4ea30a(0x30f)]}},_0x418a47=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x247640,_0x5048b9,!0x1),_0x43d1f8=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x2b5366,_0x31b760,!0x1);if(_0x45a2c4(_0x418a47))throw _0x418a47[_0x4ea30a(0x1b1)];if(_0x45a2c4(_0x43d1f8))throw _0x43d1f8[_0x4ea30a(0x1b1)];_0x18c8ef[_0x4ea30a(0x30c)]({..._0x425412[_0x4fd246],'undoState':_0x418a47['m2Prime'][_0x4ea30a(0x380)],'redoState':_0x43d1f8[_0x4ea30a(0x23e)][_0x4ea30a(0x380)]}),_0x247640=_0x418a47['m1Prime'],_0x2b5366=_0x43d1f8[_0x4ea30a(0x2cd)];}this[_0x4ea30a(0x261)][_0x4ea30a(0x190)](_0x3751d7,{'history':_0x4c39cc,'collaboration':_0x18c8ef});}};he=dn([De(0x0,_0x13fac2(_0x4da47b)),De(0x1,_0x3943ee),De(0x2,_0x13fac2(_0x48cc88))],he);var fn=Object[_0x3504c5(0x1c3)],Sn=(_0x129fd0,_0x5a41ef,_0x517b35,_0x50e062)=>{const _0x16d574=_0x3504c5;for(var _0x157593=_0x50e062>0x1?void 0x0:_0x50e062?fn(_0x5a41ef,_0x517b35):_0x5a41ef,_0x9b2b48=_0x129fd0[_0x16d574(0x329)]-0x1,_0x1b03c8;_0x9b2b48>=0x0;_0x9b2b48--)(_0x1b03c8=_0x129fd0[_0x9b2b48])&&(_0x157593=_0x1b03c8(_0x157593)||_0x157593);return _0x157593;},lt=(_0x3de24a,_0x56f4d5)=>(_0x10f480,_0xbf0be)=>_0x56f4d5(_0x10f480,_0xbf0be,_0x3de24a);let ue=class{constructor(_0x284425,_0x2f5768){const _0x201adb=_0x3504c5;this[_0x201adb(0x23b)]=_0x284425,this['_transformService']=_0x2f5768;}[_0x3504c5(0x31b)](_0x24ae4f){const _0x3c9bbb=_0x3504c5;var _0x5e834f;const _0x57e8a8=this[_0x3c9bbb(0x23b)][_0x3c9bbb(0x1c0)](_0x259657),_0x271aaf=(_0x5e834f=_0x57e8a8['getDocRanges']())!=null?_0x5e834f:[];if(_0x271aaf[_0x3c9bbb(0x329)]===0x0)return;const _0x4f95ad=_0x24ae4f[_0x3c9bbb(0x267)],_0x2f93d9=[{'id':_0x3c9bbb(0x221),'params':{'unitId':_0x4f95ad,'actions':null,'textRanges':_0x271aaf}}],_0x50c6ea=this[_0x3c9bbb(0x21d)][_0x3c9bbb(0x3b2)](_0x24ae4f,_0x2f93d9);if(!_0x5d4db3(_0x50c6ea))throw _0x50c6ea['error'];const _0xea427f=_0x50c6ea[_0x3c9bbb(0x23e)][0x0][_0x3c9bbb(0x380)][_0x3c9bbb(0x204)];Array[_0x3c9bbb(0x1d8)](_0xea427f)&&_0xea427f['length']&&_0x57e8a8[_0x3c9bbb(0x287)](_0xea427f,{'unitId':_0x4f95ad,'subUnitId':_0x4f95ad},!0x1);}};ue=Sn([lt(0x0,_0x13fac2(_0x4da47b)),lt(0x1,_0x3943ee)],ue);var mn=Object['getOwnPropertyDescriptor'],In=(_0x326cfe,_0x4c1f13,_0x2ff73b,_0x3aebb1)=>{for(var _0x18e448=_0x3aebb1>0x1?void 0x0:_0x3aebb1?mn(_0x4c1f13,_0x2ff73b):_0x4c1f13,_0x49b02d=_0x326cfe['length']-0x1,_0x4eb37f;_0x49b02d>=0x0;_0x49b02d--)(_0x4eb37f=_0x326cfe[_0x49b02d])&&(_0x18e448=_0x4eb37f(_0x18e448)||_0x18e448);return _0x18e448;},U=(_0x59bd2a,_0x4416e0)=>(_0x5434c2,_0x7229b0)=>_0x4416e0(_0x5434c2,_0x7229b0,_0x59bd2a);let de=class extends _0x44caae{constructor(_0x5dfcbe,_0x2f4ee9,_0x3a837d,_0x59aeb6,_0x29ae5a,_0x5ac894,_0x548c32,_0x1a1bf2){const _0x4fd34d=_0x3504c5;super(),_(this,_0x4fd34d(0x2e1),new _0x1bb082(_0x59f2be[_0x4fd34d(0x217)])),(this[_0x4fd34d(0x261)]=_0x5dfcbe,this[_0x4fd34d(0x29b)]=_0x2f4ee9,this[_0x4fd34d(0x1ff)]=_0x3a837d,this[_0x4fd34d(0x22b)]=_0x59aeb6,this['_docTransformSelectionsService']=_0x29ae5a,this['_docSyncEditingCollabCursorService']=_0x5ac894,this[_0x4fd34d(0x196)]=_0x548c32,this['_localeService']=_0x1a1bf2,this[_0x4fd34d(0x32f)]());}['_initEntityListener'](){const _0xddccfd=_0x3504c5;this[_0xddccfd(0x2fd)](this[_0xddccfd(0x29b)][_0xddccfd(0x250)][_0xddccfd(0x336)](_0x184e88=>{const _0x245679=_0xddccfd,_0x210e13=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0xaa0eca=>{const _0x300de6=_0x3f6f;if(_0xaa0eca==null)return;const {unitId:_0x238bf9,redoState:_0x135c90,commandId:_0x10a838}=_0xaa0eca;if(_0x238bf9!==_0x184e88[_0x300de6(0x267)])return;const _0x20ffcf={'id':_0x10a838,'type':_0x441e2b[_0x300de6(0x38e)],'params':{'unitId':_0x238bf9,'actions':_0x135c90[_0x300de6(0x22e)],'textRanges':null}};_0x184e88[_0x300de6(0x2c8)](_0x20ffcf);});if(_0x184e88['disposeWithMe'](_0x210e13),_0x184e88 instanceof _0x4404c6){const _0x24e621={'onTransformIME':_0x540947=>this[_0x245679(0x1ff)][_0x245679(0x1c2)](_0x540947),'onTransformState':_0x86943=>this[_0x245679(0x22b)][_0x245679(0x26d)](_0x86943),'onTransformSelections':_0x26e9fb=>this[_0x245679(0x3a3)][_0x245679(0x31b)](_0x26e9fb),'onSyncEditingCollabCursor':_0x58be55=>this['_docSyncEditingCollabCursorService'][_0x245679(0x29c)](_0x58be55),'onTransformRemoteChangesetByIMECache':_0xf4e023=>this['_docTransformIMECacheService'][_0x245679(0x35a)](_0xf4e023),'onTransformRemoteChangesetByStateCache':_0x15f20c=>this[_0x245679(0x22b)]['transformRemoteChangeset'](_0x15f20c)};_0x184e88[_0x245679(0x3c1)](_0x24e621);}}));}};de=In([U(0x0,_0x13fac2(_0x48cc88)),U(0x1,_0x13fac2(_0x4e7e15)),U(0x2,_0x13fac2(_e)),U(0x3,_0x13fac2(he)),U(0x4,_0x13fac2(ue)),U(0x5,_0x13fac2(Ke)),U(0x6,_0x1b730d),U(0x7,_0x13fac2(_0x21a3cc))],de);var Q=(_0x2be957=>(_0x2be957[_0x2be957[_0x3504c5(0x35f)]=0x0]=_0x3504c5(0x35f),_0x2be957[_0x2be957['OK']=0x1]='OK',_0x2be957[_0x2be957[_0x3504c5(0x3d4)]=0x2]=_0x3504c5(0x3d4),_0x2be957[_0x2be957[_0x3504c5(0x223)]=0x3]='PERMISSION_DENIED',_0x2be957[_0x2be957['NOT_FOUND']=0x4]=_0x3504c5(0x33f),_0x2be957[_0x2be957['UNAUTHENTICATED']=0x5]=_0x3504c5(0x2d4),_0x2be957[_0x2be957['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2be957[_0x2be957[_0x3504c5(0x1cd)]=0x7]=_0x3504c5(0x1cd),_0x2be957[_0x2be957[_0x3504c5(0x1eb)]=0x8]=_0x3504c5(0x1eb),_0x2be957[_0x2be957[_0x3504c5(0x251)]=0x9]='COMPLETION_FINISHED',_0x2be957[_0x2be957[_0x3504c5(0x36a)]=0xa]='LOGIN_FAILED',_0x2be957[_0x2be957[_0x3504c5(0x222)]=0xb]=_0x3504c5(0x222),_0x2be957[_0x2be957[_0x3504c5(0x374)]=0xc]=_0x3504c5(0x374),_0x2be957[_0x2be957[_0x3504c5(0x2d9)]=0xd]=_0x3504c5(0x2d9),_0x2be957[_0x2be957[_0x3504c5(0x1ba)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2be957[_0x2be957[_0x3504c5(0x318)]=0xf]=_0x3504c5(0x318),_0x2be957[_0x2be957[_0x3504c5(0x315)]=0x10]=_0x3504c5(0x315),_0x2be957[_0x2be957[_0x3504c5(0x349)]=0x64]=_0x3504c5(0x349),_0x2be957[_0x2be957[_0x3504c5(0x390)]=0x65]=_0x3504c5(0x390),_0x2be957[_0x2be957[_0x3504c5(0x399)]=0xc9]='USER_NOT_FOUND',_0x2be957[_0x2be957['USER_IS_ANONYMOUS']=0xca]=_0x3504c5(0x3d1),_0x2be957[_0x2be957['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2be957[_0x2be957[_0x3504c5(0x384)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2be957[_0x2be957['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3504c5(0x397),_0x2be957[_0x2be957[_0x3504c5(0x371)]=0x1773]=_0x3504c5(0x371),_0x2be957[_0x2be957['APPLY_REJECT']=0x1b59]=_0x3504c5(0x304),_0x2be957[_0x2be957[_0x3504c5(0x3b8)]=0x1b5a]=_0x3504c5(0x3b8),_0x2be957[_0x2be957['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2be957[_0x2be957[_0x3504c5(0x200)]=0x1b5c]=_0x3504c5(0x200),_0x2be957[_0x2be957[_0x3504c5(0x2c6)]=0x1b5d]=_0x3504c5(0x2c6),_0x2be957[_0x2be957['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2be957[_0x2be957[_0x3504c5(0x27c)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x353)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x3b6)]=0x232b]=_0x3504c5(0x3b6),_0x2be957[_0x2be957[_0x3504c5(0x1d7)]=0x232c]=_0x3504c5(0x1d7),_0x2be957[_0x2be957[_0x3504c5(0x1b3)]=0x232d]=_0x3504c5(0x1b3),_0x2be957[_0x2be957[_0x3504c5(0x198)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2be957[_0x2be957[_0x3504c5(0x393)]=0x2712]=_0x3504c5(0x393),_0x2be957[_0x2be957['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3504c5(0x1b9),_0x2be957[_0x2be957[_0x3504c5(0x20f)]=0x2714]=_0x3504c5(0x20f),_0x2be957[_0x2be957[_0x3504c5(0x3b9)]=0x271a]=_0x3504c5(0x3b9),_0x2be957[_0x2be957[_0x3504c5(0x25a)]=0x271b]=_0x3504c5(0x25a),_0x2be957[_0x2be957[_0x3504c5(0x235)]=0x271c]=_0x3504c5(0x235),_0x2be957[_0x2be957['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3504c5(0x398),_0x2be957[_0x2be957[_0x3504c5(0x39b)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x211)]=0x271f]=_0x3504c5(0x211),_0x2be957[_0x2be957[_0x3504c5(0x19a)]=0x2720]=_0x3504c5(0x19a),_0x2be957[_0x2be957[_0x3504c5(0x1fb)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2be957[_0x2be957['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3504c5(0x23c),_0x2be957[_0x2be957['INVALID_INVITE_CODE']=0x2ee2]=_0x3504c5(0x29d),_0x2be957[_0x2be957[_0x3504c5(0x34d)]=0x2ee3]=_0x3504c5(0x34d),_0x2be957[_0x2be957[_0x3504c5(0x28c)]=0x2ee4]=_0x3504c5(0x28c),_0x2be957[_0x2be957[_0x3504c5(0x2b7)]=0x2ee5]=_0x3504c5(0x2b7),_0x2be957[_0x2be957[_0x3504c5(0x22d)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2be957[_0x2be957[_0x3504c5(0x382)]=0x32ca]=_0x3504c5(0x382),_0x2be957[_0x2be957[_0x3504c5(0x268)]=0x32cb]=_0x3504c5(0x268),_0x2be957[_0x2be957['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2be957[_0x2be957[_0x3504c5(0x1a4)]=0x36b2]=_0x3504c5(0x1a4),_0x2be957[_0x2be957[_0x3504c5(0x24b)]=0x36b3]=_0x3504c5(0x24b),_0x2be957[_0x2be957[_0x3504c5(0x1ee)]=0x36b4]=_0x3504c5(0x1ee),_0x2be957[_0x2be957[_0x3504c5(0x3bd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2be957[_0x2be957['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3504c5(0x233),_0x2be957[_0x2be957[_0x3504c5(0x23f)]=0x37dd]=_0x3504c5(0x23f),_0x2be957[_0x2be957[_0x3504c5(0x38b)]=0x3a99]=_0x3504c5(0x38b),_0x2be957[_0x2be957[_0x3504c5(0x378)]=0x3a9a]=_0x3504c5(0x378),_0x2be957[_0x2be957[_0x3504c5(0x2ed)]=0x3a9b]=_0x3504c5(0x2ed),_0x2be957[_0x2be957[_0x3504c5(0x2b5)]=0x3a9c]=_0x3504c5(0x2b5),_0x2be957[_0x2be957[_0x3504c5(0x295)]=0x3a9d]=_0x3504c5(0x295),_0x2be957[_0x2be957[_0x3504c5(0x392)]=0x3a9e]=_0x3504c5(0x392),_0x2be957[_0x2be957[_0x3504c5(0x256)]=0x3a9f]=_0x3504c5(0x256),_0x2be957[_0x2be957[_0x3504c5(0x259)]=-0x1]=_0x3504c5(0x259),_0x2be957))(Q||{});function gn(_0x3c1229){const _0x499118=_0x3504c5;var _0x41e163,_0x1acbb6;const _0x40bf97=(_0x41e163=_0x3c1229[_0x499118(0x22f)])==null?void 0x0:_0x41e163['stage'],_0x471a22=((_0x1acbb6=_0x3c1229[_0x499118(0x22f)])==null?void 0x0:_0x1acbb6[_0x499118(0x1a7)])||0x0;return _0x40bf97===_0x41b0a9['START_CALCULATION']&&_0x471a22>0x0;}function vn(_0x427c93){const _0x18626f=_0x3504c5;return _0x427c93[_0x18626f(0x264)]===_0x55b129[_0x18626f(0x2c9)];}var En=Object['getOwnPropertyDescriptor'],pn=(_0x58ea08,_0x2e9625,_0x3d9013,_0x5656f7)=>{const _0x32bc69=_0x3504c5;for(var _0x3ca8e5=_0x5656f7>0x1?void 0x0:_0x5656f7?En(_0x2e9625,_0x3d9013):_0x2e9625,_0x65804a=_0x58ea08[_0x32bc69(0x329)]-0x1,_0x4bb234;_0x65804a>=0x0;_0x65804a--)(_0x4bb234=_0x58ea08[_0x65804a])&&(_0x3ca8e5=_0x4bb234(_0x3ca8e5)||_0x3ca8e5);return _0x3ca8e5;},w=(_0x2ff639,_0xcd24c7)=>(_0xc1b86d,_0x12ee21)=>_0xcd24c7(_0xc1b86d,_0x12ee21,_0x2ff639);const On=_0x3504c5(0x381),Tn=_0x3504c5(0x2eb),Cn=_0x3504c5(0x389);let fe=class extends _0x44caae{constructor(_0x3ad6e1,_0x4896a4,_0x452cec,_0x389876,_0x38ff84,_0x3861b3,_0x2c08a7){const _0x115935=_0x3504c5;super(),_(this,_0x115935(0x31d),null),_(this,_0x115935(0x1df),0x0),_(this,_0x115935(0x20c),0x0),_(this,'_taskIds',[]),_(this,_0x115935(0x317),0x0),(this[_0x115935(0x196)]=_0x3ad6e1,this['_commandService']=_0x4896a4,this[_0x115935(0x305)]=_0x452cec,this[_0x115935(0x327)]=_0x389876,this[_0x115935(0x1a8)]=_0x38ff84,this['_logService']=_0x3861b3,this[_0x115935(0x30a)]=_0x2c08a7,this[_0x115935(0x269)]());}['_initCommandInterceptor'](){const _0xf61f69=_0x3504c5;this[_0xf61f69(0x2fd)](this[_0xf61f69(0x213)][_0xf61f69(0x321)]((_0x50d192,_0x21288c)=>{const _0x27fc42=_0xf61f69;if(_0x50d192['id']!==_0x4b0c98['id'])return;const _0x43b218=_0x50d192[_0x27fc42(0x380)];if(!this[_0x27fc42(0x2e3)](_0x43b218[_0x27fc42(0x1e3)]))return;if(!this[_0x27fc42(0x356)]())throw this[_0x27fc42(0x1fe)](_0x50d192,_0x21288c),this['_showGuardMessage'](),new _0x4a6f3c();})),this['disposeWithMe'](this[_0xf61f69(0x213)][_0xf61f69(0x383)]((_0x5d6f9d,_0x5ee08c)=>{const _0x1121aa=_0xf61f69;if(_0x5d6f9d['id']!==_0x1d37ca['id'])return;const _0x97f3a1=_0x5d6f9d[_0x1121aa(0x380)];if(gn(_0x97f3a1)){const _0xf004fc=_0x144598();this[_0x1121aa(0x19c)][_0x1121aa(0x2a3)](_0xf004fc),this[_0x1121aa(0x31f)](_0xf004fc);}else{if(vn(_0x97f3a1)&&this[_0x1121aa(0x19c)]['length']>0x0){const _0xead3bf=this['_taskIds'][_0x1121aa(0x208)]();this[_0x1121aa(0x1de)](_0xead3bf);}}}));}['dispose'](){const _0x5bd9a9=_0x3504c5;super['dispose'](),this[_0x5bd9a9(0x36d)](),this[_0x5bd9a9(0x19c)]=[],this[_0x5bd9a9(0x20c)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3504c5(0x1fe)](_0x24aa98,_0x19262f){const _0x3f279e=_0x3504c5;for(let _0x235068=0x0;_0x235068<0x1e;_0x235068++)try{if(await this[_0x3f279e(0x1a5)](),this[_0x3f279e(0x356)]()){this['_applyCommand'](_0x24aa98,_0x19262f),this[_0x3f279e(0x196)][_0x3f279e(0x332)]({'content':this[_0x3f279e(0x30a)]['t'](_0x3f279e(0x37a)),'type':_0x520d9c[_0x3f279e(0x1d9)]});return;}await new Promise(_0x5df684=>{const _0x35f034=_0x3f279e;this[_0x35f034(0x31d)]=window[_0x35f034(0x197)](_0x5df684,0x3e8);});}catch(_0x101ade){this[_0x3f279e(0x36b)][_0x3f279e(0x1b1)](_0x101ade);}this['_messageService'][_0x3f279e(0x332)]({'content':this[_0x3f279e(0x30a)]['t'](_0x3f279e(0x1da)),'type':_0x520d9c[_0x3f279e(0x230)]});}[_0x3504c5(0x3af)](_0xcb10bf,_0x11e3d3){const _0x5a5676=_0x3504c5;try{this['_commandService']['executeCommand'](_0xcb10bf['id'],_0xcb10bf[_0x5a5676(0x380)],_0x11e3d3);}catch(_0x52543e){this[_0x5a5676(0x36b)][_0x5a5676(0x1b1)](_0x52543e);}}['_setFormulaLimitStatus'](_0x2dce3b,_0x4e0991){const _0x3ea387=_0x3504c5;_0x4e0991<this[_0x3ea387(0x317)]||(this['_lastResponseTimestamp']=_0x4e0991,this['_maxFormulaLimit']=Number[_0x3ea387(0x2e9)](_0x2dce3b[_0x3ea387(0x199)]),this['_currentUsage']=Number[_0x3ea387(0x2e9)](_0x2dce3b[_0x3ea387(0x34a)]));}async[_0x3504c5(0x31f)](_0x585d96){const _0x46c403=_0x3504c5;var _0x3cd28b,_0x19921f;const _0x2918c5=Date[_0x46c403(0x3db)]();try{const _0x2eeea8=((_0x3cd28b=this[_0x46c403(0x305)][_0x46c403(0x27f)](_0x3c0423))==null?void 0x0:_0x3cd28b[_0x46c403(0x1f2)])||Tn,_0x1123f4=(await this['_httpService'][_0x46c403(0x3dd)](_0x2eeea8,{'body':JSON[_0x46c403(0x2d6)]({'taskId':_0x585d96})}))[_0x46c403(0x25c)];if(((_0x19921f=_0x1123f4[_0x46c403(0x1b1)])==null?void 0x0:_0x19921f[_0x46c403(0x2c7)])!==Q['OK'])return;this[_0x46c403(0x281)](_0x1123f4[_0x46c403(0x28b)],_0x2918c5);}catch(_0x5a4372){this[_0x46c403(0x36b)][_0x46c403(0x1b1)](_0x5a4372);}}async['_getFormulaLimitStatus'](_0x5413b4){const _0xe90194=_0x3504c5;var _0x1a3db2,_0x212e44;const _0x4f1a33=Date[_0xe90194(0x3db)]();try{const _0xc19b49=((_0x1a3db2=this[_0xe90194(0x305)]['getConfig'](_0x3c0423))==null?void 0x0:_0x1a3db2[_0xe90194(0x2b6)])||On,_0x29e14c=_0x5413b4?_0xc19b49+_0xe90194(0x215)+encodeURIComponent(_0x5413b4):_0xc19b49,_0x164e1e=(await this[_0xe90194(0x327)]['get'](_0x29e14c))[_0xe90194(0x25c)];if(((_0x212e44=_0x164e1e[_0xe90194(0x1b1)])==null?void 0x0:_0x212e44[_0xe90194(0x2c7)])!==Q['OK'])return;this[_0xe90194(0x281)](_0x164e1e[_0xe90194(0x28b)],_0x4f1a33);}catch(_0x50b5ed){this[_0xe90194(0x36b)][_0xe90194(0x1b1)](_0x50b5ed);}}async[_0x3504c5(0x1de)](_0x3c7950){const _0x424376=_0x3504c5;var _0x3aae9b,_0x46e57a;const _0x467975=Date[_0x424376(0x3db)]();try{const _0x3211a1=((_0x3aae9b=this[_0x424376(0x305)][_0x424376(0x27f)](_0x3c0423))==null?void 0x0:_0x3aae9b['releaseFormulaLimitUrl'])||Cn,_0x16d226=(await this[_0x424376(0x327)][_0x424376(0x3dd)](_0x3211a1,{'body':JSON['stringify']({'taskId':_0x3c7950})}))[_0x424376(0x25c)];if(((_0x46e57a=_0x16d226[_0x424376(0x1b1)])==null?void 0x0:_0x46e57a[_0x424376(0x2c7)])!==Q['OK'])return;this[_0x424376(0x281)](_0x16d226[_0x424376(0x28b)],_0x467975);}catch(_0x2a5a3c){this[_0x424376(0x36b)][_0x424376(0x1b1)](_0x2a5a3c);}}['_checkCalculationAvailable'](){const _0x423029=_0x3504c5;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x423029(0x20c)]>0x0;}[_0x3504c5(0x36d)](){const _0x4f5316=_0x3504c5;this[_0x4f5316(0x31d)]&&(clearTimeout(this['_pollingInterval']),this[_0x4f5316(0x31d)]=null);}[_0x3504c5(0x26e)](){const _0x49ca5c=_0x3504c5;this[_0x49ca5c(0x196)][_0x49ca5c(0x332)]({'content':this[_0x49ca5c(0x30a)]['t'](_0x49ca5c(0x31c)),'type':_0x520d9c[_0x49ca5c(0x3b0)]});}[_0x3504c5(0x2e3)](_0x4cff99){const _0x432ff3=_0x3504c5;for(const _0x320506 of _0x4cff99){const {unitId:_0x146f0e,sheetId:_0x3992ab,range:_0x551a6e}=_0x320506,_0x44dd77=this[_0x432ff3(0x1a8)][_0x432ff3(0x3aa)](_0x146f0e);if(!_0x44dd77)continue;const _0x5e973b=_0x44dd77[_0x432ff3(0x1fd)](_0x3992ab);if(!_0x5e973b)continue;const _0x54b341=_0x5e973b['getCellMatrix']();for(let _0x3f6b2d=_0x551a6e['startRow'];_0x3f6b2d<=_0x551a6e[_0x432ff3(0x36c)];_0x3f6b2d++)for(let _0x69779d=_0x551a6e[_0x432ff3(0x1c7)];_0x69779d<=_0x551a6e[_0x432ff3(0x3da)];_0x69779d++){const _0x5ddfef=_0x54b341[_0x432ff3(0x320)](_0x3f6b2d,_0x69779d);if(_0x5ddfef&&(_0x1fa515(_0x5ddfef['f'])||_0x315c33(_0x5ddfef['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x13fac2(_0x1b730d)),w(0x1,_0x378028),w(0x2,_0x10aea5),w(0x3,_0x13fac2(_0x59d0d5)),w(0x4,_0x437d75),w(0x5,_0x3b520f),w(0x6,_0x13fac2(_0x21a3cc))],fe);var Rn=Object[_0x3504c5(0x1c3)],Dn=(_0x54ed40,_0x48668e,_0x65e0b9,_0x2f286a)=>{for(var _0x194014=_0x2f286a>0x1?void 0x0:_0x2f286a?Rn(_0x48668e,_0x65e0b9):_0x48668e,_0xc37238=_0x54ed40['length']-0x1,_0xc92041;_0xc37238>=0x0;_0xc37238--)(_0xc92041=_0x54ed40[_0xc37238])&&(_0x194014=_0xc92041(_0x194014)||_0x194014);return _0x194014;},be=(_0x138f11,_0x22287e)=>(_0x29d246,_0x3e1741)=>_0x22287e(_0x29d246,_0x3e1741,_0x138f11);let Be=class extends _0x44caae{constructor(_0x9086c3,_0x22c6b5,_0x27a2be){const _0x1fcff5=_0x3504c5;super(),_(this,_0x1fcff5(0x2fb),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x1fcff5(0x191),!0x1),(this[_0x1fcff5(0x305)]=_0x9086c3,this[_0x1fcff5(0x19f)]=_0x22c6b5,this[_0x1fcff5(0x2e7)]=_0x27a2be);}[_0x3504c5(0x2a0)](){const _0x27e6e5=_0x3504c5;this[_0x27e6e5(0x191)]=!0x0;}[_0x3504c5(0x2d2)](){this['_disabled']=!0x1;}get[_0x3504c5(0x36f)](){const _0x1fda18=_0x3504c5;return this[_0x1fda18(0x210)];}['dispose'](){const _0x1e36d3=_0x3504c5;this[_0x1e36d3(0x1b0)]()[_0x1e36d3(0x209)](()=>super[_0x1e36d3(0x24a)]());}async[_0x3504c5(0x308)](_0x306f7d){const _0x5467f4=_0x3504c5;return this[_0x5467f4(0x191)]?null:this[_0x5467f4(0x19f)][_0x5467f4(0x2f7)](_0xb4d1e1(_0x306f7d));}async[_0x3504c5(0x1d3)](_0x2b4f87,_0x2c71f6){return!!this['_localStorageService']['setItem'](_0x2b4f87,_0x2c71f6);}[_0x3504c5(0x2e6)](_0x40d8fd,_0x11b564,_0x109817,_0x2e82dd){const _0x54dc64=_0x3504c5,_0x1c8e3c=this[_0x54dc64(0x2e7)][_0x54dc64(0x2e0)](_0x40d8fd);this[_0x54dc64(0x2fb)][_0x54dc64(0x32b)](_0x40d8fd,{'unitID':_0x40d8fd,'type':_0x11b564,'awaitingChangeset':_0x109817,'mutations':_0x2e82dd,'rev':_0x1c8e3c}),this[_0x54dc64(0x210)][_0x54dc64(0x2db)](_0x40d8fd)||this[_0x54dc64(0x1c1)](_0x40d8fd);}[_0x3504c5(0x1c1)](_0x4a383f){const _0x150144=_0x3504c5,_0x3212a5=this['_getSaveTimeout']();_0x3212a5===0x0?this[_0x150144(0x360)](_0x4a383f):this[_0x150144(0x210)][_0x150144(0x32b)](_0x4a383f,setTimeout(()=>this[_0x150144(0x360)](_0x4a383f),_0x3212a5));}[_0x3504c5(0x2d0)](){const _0x378e39=_0x3504c5;var _0x478ca9;return(_0x478ca9=this['_configService'][_0x378e39(0x27f)](_0x43f6ef))!=null?_0x478ca9:_0x46d03f;}[_0x3504c5(0x360)](_0x1c90d4){const _0x3825fd=_0x3504c5,_0x50f445=this[_0x3825fd(0x210)][_0x3825fd(0x1c0)](_0x1c90d4);return _0x50f445!==void 0x0&&window[_0x3825fd(0x2ee)](_0x50f445),this[_0x3825fd(0x19f)][_0x3825fd(0x224)](_0xb4d1e1(_0x1c90d4),this[_0x3825fd(0x2fb)][_0x3825fd(0x1c0)](_0x1c90d4))[_0x3825fd(0x209)](()=>this[_0x3825fd(0x210)]['delete'](_0x1c90d4));}async[_0x3504c5(0x1b0)](){const _0x4d5e1b=_0x3504c5,_0x421af0=[];this['_saveTaskMap'][_0x4d5e1b(0x3c9)]((_0x277ae8,_0x3ca534)=>{const _0x468037=_0x4d5e1b;window['clearTimeout'](_0x277ae8),_0x421af0[_0x468037(0x2a3)](this['_saveCache'](_0x3ca534)[_0x468037(0x209)](()=>{const _0x3519c1=_0x468037;this['_saveTaskMap'][_0x3519c1(0x312)](_0x3ca534);}));}),await Promise[_0x4d5e1b(0x1d4)](_0x421af0);}};Be=Dn([be(0x0,_0x10aea5),be(0x1,_0x3a9490),be(0x2,_0x13fac2(_0x1fe514))],Be);class bn extends _0x4dd7f6{constructor(){const _0x59c5db=_0x3504c5;super(),_(this,_0x59c5db(0x220)),this[_0x59c5db(0x220)]=_0x18c819(window,_0x59c5db(0x1f6))['pipe'](_0xb04df5(this[_0x59c5db(0x21c)]),_0x72b1f0(0x1),_0x153ed4(void 0x0));}[_0x3504c5(0x3c7)](_0x289bcc,_0x499a6a,_0x3fd813=!0x1){const _0x5ad29f=_0x3504c5,_0x29e2f9=new URL(window[_0x5ad29f(0x1f7)]['href']);_0x29e2f9[_0x5ad29f(0x1c8)][_0x5ad29f(0x32b)](_0x289bcc,_0x499a6a),_0x3fd813?window[_0x5ad29f(0x3b1)][_0x5ad29f(0x344)]('','',_0x29e2f9[_0x5ad29f(0x363)]()):window[_0x5ad29f(0x3b1)]['pushState']('','',_0x29e2f9[_0x5ad29f(0x363)]());}[_0x3504c5(0x24e)](_0xbcaa91,_0x31d922=!0x1){const _0x3014d8=_0x3504c5,_0x1136de=new URL(window[_0x3014d8(0x1f7)]['href']);_0x1136de[_0x3014d8(0x1c8)]['delete'](_0xbcaa91),_0x31d922?window[_0x3014d8(0x3b1)][_0x3014d8(0x344)]('','',_0x1136de[_0x3014d8(0x363)]()):window[_0x3014d8(0x3b1)]['pushState']('','',_0x1136de[_0x3014d8(0x363)]());}[_0x3504c5(0x391)](_0x2a25e4){const _0x4f6433=_0x3504c5;var _0x382191;return(_0x382191=new URL(window['location']['href'])['searchParams'][_0x4f6433(0x1c0)](_0x2a25e4))!=null?_0x382191:void 0x0;}}var Nn=Object[_0x3504c5(0x359)],Un=Object[_0x3504c5(0x1c3)],Ln=(_0x41b103,_0x3f0ab3,_0x4ef834)=>_0x3f0ab3 in _0x41b103?Nn(_0x41b103,_0x3f0ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef834}):_0x41b103[_0x3f0ab3]=_0x4ef834,Mn=(_0x2fff1b,_0x52b56c,_0xf20daf,_0x22e619)=>{const _0x51b11f=_0x3504c5;for(var _0x5ed359=_0x22e619>0x1?void 0x0:_0x22e619?Un(_0x52b56c,_0xf20daf):_0x52b56c,_0x4472ed=_0x2fff1b[_0x51b11f(0x329)]-0x1,_0x4594d8;_0x4472ed>=0x0;_0x4472ed--)(_0x4594d8=_0x2fff1b[_0x4472ed])&&(_0x5ed359=_0x4594d8(_0x5ed359)||_0x5ed359);return _0x5ed359;},Ne=(_0x1a1dd1,_0xc1fc7d)=>(_0x43721b,_0x223501)=>_0xc1fc7d(_0x43721b,_0x223501,_0x1a1dd1),An=(_0x2a2f54,_0x4c4dec,_0x3d7d11)=>Ln(_0x2a2f54,_0x4c4dec+'',_0x3d7d11);const Pn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Fe=class extends _0xfc0127{constructor(_0x31bb24=at,_0x57f5e5,_0x306d48,_0x406cb3){const _0x2f3dc4=_0x3504c5;super(),this[_0x2f3dc4(0x385)]=_0x31bb24,this[_0x2f3dc4(0x1b8)]=_0x57f5e5,this[_0x2f3dc4(0x23b)]=_0x306d48,this[_0x2f3dc4(0x305)]=_0x406cb3;const {..._0x1e8cc0}=_0x27de3f({},at,this[_0x2f3dc4(0x385)]);this[_0x2f3dc4(0x305)]['setConfig'](ln,_0x1e8cc0);}[_0x3504c5(0x343)](){const _0x398cce=_0x3504c5;this[_0x398cce(0x26c)](),this[_0x398cce(0x2e2)]();}[_0x3504c5(0x334)](){const _0x5127ba=_0x3504c5;this[_0x5127ba(0x3cd)]();}[_0x3504c5(0x26c)](){const _0x1bdb87=_0x3504c5;var _0x2f5052;const _0x42a51f=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x5af1a8,{'useClass':_0x476d5f}],[_0x55c362,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x22a61d(this[_0x1bdb87(0x23b)],_0x29e569(_0x42a51f,(_0x2f5052=this[_0x1bdb87(0x385)])==null?void 0x0:_0x2f5052['override']));}[_0x3504c5(0x3cd)](){const _0x57d811=_0x3504c5;this['disposeWithMe'](this[_0x57d811(0x1b8)]['registerRenderModule'](_0x3d4d2c['UNIVER_DOC'],[$e])),this[_0x57d811(0x2fd)](this[_0x57d811(0x1b8)][_0x57d811(0x2ae)](_0x3d4d2c[_0x57d811(0x3dc)],[xe]));}[_0x3504c5(0x2e2)](){const _0x3f00ed=_0x3504c5;_0x1e8471(this[_0x3f00ed(0x23b)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x3504c5(0x2d5),Pn),Fe=Mn([_0xc853a6(_0x22881b),Ne(0x1,_0x5dc693),Ne(0x2,_0x13fac2(_0x4da47b)),Ne(0x3,_0x10aea5)],Fe);var wn=Object[_0x3504c5(0x1c3)],yn=(_0x4bbbab,_0x4dca54,_0x2db037,_0xdd8df6)=>{const _0x3a4540=_0x3504c5;for(var _0x5a7404=_0xdd8df6>0x1?void 0x0:_0xdd8df6?wn(_0x4dca54,_0x2db037):_0x4dca54,_0x48e5ad=_0x4bbbab[_0x3a4540(0x329)]-0x1,_0x19f987;_0x48e5ad>=0x0;_0x48e5ad--)(_0x19f987=_0x4bbbab[_0x48e5ad])&&(_0x5a7404=_0x19f987(_0x5a7404)||_0x5a7404);return _0x5a7404;},Z=(_0x1d9233,_0x284648)=>(_0x7b0ff6,_0x16dac3)=>_0x284648(_0x7b0ff6,_0x16dac3,_0x1d9233);let _t=class extends _0x3d93bc{constructor(_0xb2b5cd,_0x1b1bdd,_0x3aea59,_0x56c500,_0x2117b5){super(_0xb2b5cd,_0x1b1bdd,_0x3aea59,_0x56c500,_0x2117b5);}async[_0x3504c5(0x2cf)](_0x40b5cb){const _0x956a45=_0x3504c5,_0x2c9ec0=await this['_getSessionTicket'](),_0x1fac83=this[_0x956a45(0x30d)](_0x40b5cb,_0x2c9ec0);return this[_0x956a45(0x22c)](_0x1fac83);}['_createSocketURL'](_0x4f9142,_0x12e88e){const _0x4af201=_0x3504c5,_0x3f8a0e=typeof window>'u'?new URL(_0x4f9142):new URL(_0x4f9142,window[_0x4af201(0x1f7)][_0x4af201(0x262)]);_0x3f8a0e[_0x4af201(0x1c8)]['set'](_0x4af201(0x1a1),_0x12e88e);const _0x5ef722=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4af201(0x1f7)]['search']);return _0x5ef722[_0x4af201(0x1c0)](_0x4af201(0x27a))&&_0x3f8a0e[_0x4af201(0x1c8)]['set'](_0x4af201(0x27a),_0x5ef722[_0x4af201(0x1c0)]('runId')),_0x3f8a0e[_0x4af201(0x363)]();}async[_0x3504c5(0x3c5)](){const _0x14b01b=_0x3504c5;var _0x57fbcf,_0x4c576d,_0x510e89;const _0x24a88f=this[_0x14b01b(0x305)]['getConfig'](_0x3c0423),_0x1267c8=(_0x57fbcf=_0x24a88f==null?void 0x0:_0x24a88f[_0x14b01b(0x237)])!=null?_0x57fbcf:_0x31c350;return(_0x510e89=(_0x4c576d=(await this[_0x14b01b(0x327)][_0x14b01b(0x1c0)](_0x1267c8,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x4c576d[_0x14b01b(0x1f8)])!=null?_0x510e89:'';}};function _0x3f6f(_0x59a2bd,_0x125518){const _0x13f0a3=_0x13f0();return _0x3f6f=function(_0x3f6fd2,_0x548f95){_0x3f6fd2=_0x3f6fd2-0x190;let _0x9d785=_0x13f0a3[_0x3f6fd2];return _0x9d785;},_0x3f6f(_0x59a2bd,_0x125518);}_t=yn([Z(0x0,_0x13fac2(_0x4da47b)),Z(0x1,_0x13fac2(_0x59d0d5)),Z(0x2,_0x10aea5),Z(0x3,_0x3b520f),Z(0x4,_0xe8f155)],_t);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x48f97f,_0x2192f9,_0x532e8f,_0x49f607)=>{const _0x6b53e9=_0x3504c5;for(var _0x5f0c92=_0x49f607>0x1?void 0x0:_0x49f607?$n(_0x2192f9,_0x532e8f):_0x2192f9,_0x28c250=_0x48f97f[_0x6b53e9(0x329)]-0x1,_0x55d2d6;_0x28c250>=0x0;_0x28c250--)(_0x55d2d6=_0x48f97f[_0x28c250])&&(_0x5f0c92=_0x55d2d6(_0x5f0c92)||_0x5f0c92);return _0x5f0c92;},Ue=(_0x464883,_0x1e43a5)=>(_0x1912cf,_0x169223)=>_0x1e43a5(_0x1912cf,_0x169223,_0x464883);let ht=class extends _0x44caae{constructor(_0x31c50a,_0x264346,_0x23b21b){const _0x144bda=_0x3504c5;super(),this[_0x144bda(0x1ec)]=_0x31c50a,this[_0x144bda(0x327)]=_0x264346,this[_0x144bda(0x305)]=_0x23b21b;}async[_0x3504c5(0x1f1)](_0x95222b,_0x2b8224,_0x2c4d1d,..._0x4db176){const _0x46e7dd=_0x3504c5;var _0x525316,_0x22144e,_0x8df527,_0x4a7534;const _0x86d7a4=this[_0x46e7dd(0x1ec)][_0x46e7dd(0x1c4)]();if(!_0x86d7a4)throw new Error(_0x46e7dd(0x28d));const _0x26a59c=((_0x525316=this[_0x46e7dd(0x305)][_0x46e7dd(0x27f)](_0x45cf52))!=null?_0x525316:_0x1e545f)+'/'+_0x95222b+'/run/'+_0x2b8224,_0x108294=new URL(window[_0x46e7dd(0x1f7)][_0x46e7dd(0x19d)]),_0x567f68={'scriptId':_0x95222b,'runId':(_0x22144e=_0x108294['searchParams']['get'](_0x46e7dd(0x27a)))!=null?_0x22144e:'','function':_0x2b8224,'unitId':_0x86d7a4['getUnitId'](),'argsOfFunction':JSON[_0x46e7dd(0x2d6)](_0x4db176),'invokeId':(_0x8df527=_0x2c4d1d['invokeId'])!=null?_0x8df527:'','executionId':(_0x4a7534=_0x2c4d1d[_0x46e7dd(0x2fc)])!=null?_0x4a7534:''};try{const _0x35d02c=await this[_0x46e7dd(0x327)][_0x46e7dd(0x3dd)](_0x26a59c,{'body':_0x567f68});return _0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x1b1)]&&_0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x1b1)][_0x46e7dd(0x2c7)]!==Q['OK']?_0x46e7dd(0x292):_0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x21a)];}catch{return'Failed';}}};ht=xn([Ue(0x0,_0x437d75),Ue(0x1,_0x13fac2(_0x59d0d5)),Ue(0x2,_0x10aea5)],ht);const ut=0x7530,dt=_0x3504c5(0x242);class ir extends _0x44caae{constructor(){const _0x164ead=_0x3504c5;super(),_(this,_0x164ead(0x2b3),_0x144598()),_(this,_0x164ead(0x337),new Set()),_(this,_0x164ead(0x1b7),new Map()),_(this,_0x164ead(0x2be),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x164ead(0x19b)]();}['dispose'](){const _0x20ff4=_0x3504c5;super['dispose'](),this[_0x20ff4(0x351)][_0x20ff4(0x3c9)]((_0x3094a4,_0x4f0928)=>this[_0x20ff4(0x293)](_0x4f0928)),this[_0x20ff4(0x2be)]&&window[_0x20ff4(0x2f5)](this[_0x20ff4(0x2be)]);}[_0x3504c5(0x2c3)](_0x3c4cd4){const _0x4df1ba=_0x3504c5;return this['_ensureSubject'](_0x3c4cd4)[_0x4df1ba(0x37f)](_0x5a2f65());}[_0x3504c5(0x3c3)](_0x296d0c){const _0x2ca5ae=_0x3504c5;this[_0x2ca5ae(0x337)][_0x2ca5ae(0x1fc)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x2ca5ae(0x314)](_0x296d0c),this[_0x2ca5ae(0x2a1)]({'type':0x0,'memberID':this[_0x2ca5ae(0x2b3)],'unitIDs':[_0x296d0c],'isForwarded':!0x1});}[_0x3504c5(0x247)](_0x4a3907){const _0x284116=_0x3504c5;this[_0x284116(0x337)][_0x284116(0x312)](_0x4a3907),this[_0x284116(0x337)][_0x284116(0x1fc)]===0x0&&this[_0x284116(0x2be)]&&window[_0x284116(0x2f5)](this[_0x284116(0x2be)]);}[_0x3504c5(0x19b)](){const _0x2c2106=_0x3504c5;this[_0x2c2106(0x2fd)](_0x2576da(_0x18c819(window,_0x2c2106(0x2ef))[_0x2c2106(0x336)](_0x34bd85=>{if(_0x34bd85['key']!==dt||!_0x34bd85['newValue'])return;const _0x333c1a=JSON['parse'](_0x34bd85['newValue']);this['_handleEvent'](_0x333c1a);}))),window[_0x2c2106(0x2a5)]('unload',()=>this[_0x2c2106(0x2a1)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2c2106(0x277)](this['_selfUnitIDs'])}));}[_0x3504c5(0x255)](_0x22f258){const _0x55defd=_0x3504c5;switch(_0x22f258['type']){case 0x0:this[_0x55defd(0x2da)](_0x22f258);break;case 0x1:this[_0x55defd(0x280)](_0x22f258);break;case 0x2:this[_0x55defd(0x373)](_0x22f258);break;}}[_0x3504c5(0x2da)](_0x5bdf71){const _0x4e4408=_0x3504c5,{unitIDs:_0x1a2583,memberID:_0x5f4686,isForwarded:_0x54ad4c}=_0x5bdf71;_0x1a2583[_0x4e4408(0x3c9)](_0x1903a4=>{const _0x1ff430=_0x4e4408;if(!_0x54ad4c&&this[_0x1ff430(0x1b7)][_0x1ff430(0x2db)](_0x1903a4)&&this[_0x1ff430(0x2bb)](_0x1903a4)[_0x1ff430(0x25d)](_0x38048c[_0x1ff430(0x324)]),!this[_0x1ff430(0x1b7)][_0x1ff430(0x2db)](_0x1903a4)||!this[_0x1ff430(0x1b7)][_0x1ff430(0x1c0)](_0x1903a4)[_0x1ff430(0x2db)](_0x5f4686)){const _0x2499e5=this['_unitOnClients'][_0x1ff430(0x1c0)](_0x1903a4)||new Set();_0x2499e5[_0x1ff430(0x314)](_0x5f4686),this['_unitOnClients'][_0x1ff430(0x32b)](_0x1903a4,_0x2499e5),this[_0x1ff430(0x3d6)](_0x5f4686);}}),_0x54ad4c||this[_0x4e4408(0x2a1)]({'type':0x0,'memberID':this[_0x4e4408(0x2b3)],'unitIDs':[...this[_0x4e4408(0x337)]],'isForwarded':!0x0});}[_0x3504c5(0x3d6)](_0x341125){const _0x3e1473=_0x3504c5;this['_removeClearOtherTimer'](_0x341125);const _0x4b8c11=window[_0x3e1473(0x197)](()=>{const _0x30ab05=_0x3e1473;this[_0x30ab05(0x1b7)][_0x30ab05(0x3c9)](_0x3194e4=>{_0x3194e4['delete'](_0x341125);});},ut*0x2);this[_0x3e1473(0x351)][_0x3e1473(0x32b)](_0x341125,_0x4b8c11);}[_0x3504c5(0x293)](_0x5c7a87){const _0x44eb7d=_0x3504c5;if(this['_clearOtherTimers'][_0x44eb7d(0x2db)](_0x5c7a87)){const _0xc2e681=this[_0x44eb7d(0x351)]['get'](_0x5c7a87);_0xc2e681&&window[_0x44eb7d(0x2ee)](_0xc2e681),this[_0x44eb7d(0x351)]['set'](_0x5c7a87,null);}}[_0x3504c5(0x280)](_0x2179f1){const _0x507a9d=_0x3504c5,{memberID:_0x12df86,unitIDs:_0x35a063}=_0x2179f1;_0x35a063[_0x507a9d(0x3c9)](_0x2219bc=>{const _0x1e518c=_0x507a9d;var _0xd9bed9;const _0x2c8efb=this['_unitOnClients']['get'](_0x2219bc);_0x2c8efb&&(_0x2c8efb[_0x1e518c(0x312)](_0x12df86),(_0xd9bed9=this[_0x1e518c(0x2bb)](_0x2219bc))==null||_0xd9bed9[_0x1e518c(0x25d)](_0x2c8efb[_0x1e518c(0x1fc)]===0x0?_0x38048c['NO_OTHER_CLIENTS_EDITING']:_0x38048c[_0x1e518c(0x324)]));}),this[_0x507a9d(0x293)](_0x12df86);}[_0x3504c5(0x373)](_0x292e32){const _0x180217=_0x3504c5;this[_0x180217(0x3d6)](_0x292e32[_0x180217(0x20d)]);}['_send'](_0x2a8cdf){const _0x5d46c8=_0x3504c5;localStorage[_0x5d46c8(0x224)](dt,JSON[_0x5d46c8(0x2d6)](_0x2a8cdf));}['_scheduleHeartbeat'](){const _0x2b574c=_0x3504c5;this[_0x2b574c(0x2be)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ut);}[_0x3504c5(0x2bb)](_0x2bcab1){const _0xd4d4a9=_0x3504c5;return this[_0xd4d4a9(0x207)][_0xd4d4a9(0x2db)](_0x2bcab1)||this['_unitStatus'][_0xd4d4a9(0x32b)](_0x2bcab1,new _0x1bb082(_0x38048c[_0xd4d4a9(0x278)])),this['_unitStatus'][_0xd4d4a9(0x1c0)](_0x2bcab1);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};function _0x13f0(){const _0x15c478=['concat','_updateCollabCursors','selections','_collaborationController','syncEditingCollabCursor','INVALID_INVITE_CODE','round','getViewport','disableLocalCache','_send','subunit','push','unit','addEventListener','assignAColorForMemberID','getActiveSheet','184pTEZph','roomMembers$','loadUnit','beginPath','green.600','max','registerRenderModule','createInstance','_sheetSkeletonManagerService','_imageIoService','_drawTextRange','_id','moveTo','REDEMPTION_CODE_NOT_STARTED','getformulaLimitStatusUrl','INVITE_CODE_ALREADY_BOUND','SYNCED','drawWith','hide','_ensureSubject','_initResize','CONFLICT','_heartbeatTimer','_toggleOnline','path','focused$','_drawAnchor','getUnitStatus$','getCellPositionByOffset','DeleteRangeMoveUpCommandId','APPLY_DUPLICATED','code','onLocalMutation','SUCCESS','collabStatus.fetchMiss','registerBeforeClose','white','m1Prime','range','createSocket','_getSaveTimeout','_syncEditingCollabCursorService','enableLocalCache','mutations','UNAUTHENTICATED','pluginName','stringify','SOCKET_FAILED_RETRY','getSkeleton','EMAIL_VERIFY_CODE_MISMATCH','_handleJoinEvent','has','_themeService','propertyIsEnumerable','_draw','rgba(255,\x20255,\x20255,\x200.01)','getCurrentRevOfUnit','_status$','_initDependencies','_hasFormulaInDirtyRanges','InsertRangeMoveDownCommandId','getUniverSheetInstance','updateOfflineData','_revisionService','_getMergeRange','parseInt','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','/universer-api/license/formula/limit/start','addObject','REDEMPTION_CODE_FULLY_REDEEMED','clearTimeout','storage','onMouseMove','on-line-icon_clip0_910_349','svg','debug','_localCacheService','clearInterval','source','getItem','AWAITING_WITH_PENDING','symbol','flatMap','_cachedData','executionId','disposeWithMe','jiqing.500','init','_notificationService','UPDATE_CURSOR','_shapes','skeleton','APPLY_REJECT','_configService','_range','_setupBeforeClosingHandler','loadOfflineData','off-line-icon_clip0_910_343','_localeService','_document','unshift','_createSocketURL','_collabCursorState$','redoState','function','OffLineIcon','delete','_transformUndoRedoStack','add','LOGIN_TOKEN_PROCESSING_FAILED','_updateURLWithCurrentState','_lastResponseTimestamp','AUTHORIZE_CODE_ILLEGAL','string','className','transformSelections','formula.calculation.waiting','_pollingInterval','getAncestorScale','_startCalculationLimit','getValue','beforeCommandExecuted','off-line-icon','8lNWTaR','OTHER_CLIENTS_EDITING','_color','measureText','_httpService','InsertRowCommandId','length','hasOwnProperty','set','undoState','TEXT','resize','_initEntityListener','_anchor','toRgbString','show','_lastPointer','onRendered','width','subscribe','_selfUnitIDs','_startSheetCollabCursor','hovered','_getScale','_backgroundColor','prototype','VIEW_MAIN','onPointerLeave$','NOT_FOUND','_updateSubUnitFromURLParams','transformMutation','permission.content','onStarting','replaceState','getMemberID','_context','text','_hovered','CURRENT_STATUS_CANNOT_OPERATE','currentUsage','0\x200\x2017\x2016','_scene','INVITE_CODE_REQUIRED','UNIVER_DOC','AWAITING','lineTo','_clearOtherTimers','Warning','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getRenderById','_docSkeletonManagerService','_checkCalculationAvailable','onTransformChange$','purple.300','defineProperty','transformRemoteChangeset','_toggleOffline','getTypeOfUnitAdded$','children','_entityInit$','UNDEFINED','_saveCache','getRangePointData','getOwnPropertySymbols','toString','OnLineIcon','closePath','min','univerjs-icon\x20univerjs-icon-','RECT','_onCursorDelete','LOGIN_FAILED','_logService','endRow','_clearPolling','_removeCollabCursors','saveTaskMap','data','ENSURE_SNAPSHOT_EXECUTION','InsertRangeMoveRightCommandId','_handleHeartbeatEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','registerRefRange','univer-flex\x20univer-items-center','subscribeEvent','REDEMPTION_CODE_INACTIVE','27kgXByT','formula.calculation.started','12PyUkIX','_cursor','JOIN_ROOM_FAILED','translate(.97)','pipe','params','/universer-api/license/formula/limit/status','MOBILE_HAS_BEEN_BOUND','onCommandExecuted','SNAPSHOT_INVALID_SNAPSHOT','_config','red.300','values','_entities','/universer-api/license/formula/limit/done','_beforeCloseService','REDEMPTION_INVALID_CODE','colorChannel1','blue.400','MUTATION','cursorInfo','ERROR_AGAIN','getParam','REDEMPTION_USER_REDEEM_TIMES_EXCEED','YUUMI_URL_COL_OUT_OF_RANGE','getMember','asObservable','fill','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_ALL_TABLES_IS_INVALID','USER_NOT_FOUND','_hover','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_onRefRangeChange','save','_initStatusListener','onPointerMove$','_labelPosition','http://www.w3.org/2000/svg','_memberService','_docTransformSelectionsService','InsertColCommandId','call','_drawRectRange','executeCommand','map','unsubscribe','getUnit','subUnitId','_refRangeService','findNodePositionByCharIndex','column','_applyCommand','Loading','history','transformMutationsWithChangeset','split','0\x200\x2016\x2016','CLOSE_ROOM','LICENSE_IMPORT_SIZE_EXCEEDED','_dataLoaderService','APPLY_NON_SEQUENTIAL_REVISION','YUUMI_NO_CUBOID_FOR_QUESTION','_urlService','9390vQgkPT','USERS_LEAVE','ENTITLE_CHAT_LIMIT_EXCEED','transformByState','_session','onPointerEnter$','addHandlerCallback','send','editingUnit','startsWith','_getSessionTicket','complete','setParam','none','forEach','icon','imageSourceType','getUnitId','_registerRenderDependencies','_initEvent','top','currentColor','USER_IS_ANONYMOUS','_getSheetObject','43672gMbxCM','INTERNAL_ERROR','setUndoRedoMutationParamsCache','_scheduleClearOtherTimer','registerComponent','_cursorShapes','setShapeProps','endColumn','now','UNIVER_SHEET','post','649032lxEGBe','_colorIndex','setStateCache','_disabled','Unknown\x20user','_initCommandExecutedListener','M0\x200H16V16H0z','_updateLocalCursor','_messageService','setTimeout','YUUMI_UNABLE_LOAD_URL','maxFormulaLimit','YUUMI_CONNECTOR_URL_NOT_FOUND','_init','_taskIds','href','_docClipboardService','_localStorageService','use','sessionTicket','displayName','collabStatus.offline','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_getFormulaLimitStatus','bottom','totalFormulasToCalculate','_univerInstanceService','_handleHover','_render','538590wfczri','OTHER_CLIENT_EDITING','collab-text-anchor-','collabCursorState$','collab-client.tooltip.reconnect','exhaustSavingTask','error','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_DISTRO_REJECTED','black','evenodd','_collaborationUIEventService','_unitOnClients','_renderManagerService','YUUMI_RATE_OVER_LIMIT','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','currentSkeleton$','entries','getTypeOfUnitDisposed$','collabStatus.syncing','getColorFromTheme','get','_scheduleSaving','transformIMECache','getOwnPropertyDescriptor','getFocusedUnit','OFFLINE','find','startColumn','searchParams','_onCursorUpdate','_getAnchorBounding','height','_roomMembers$','INVALID_ARGUMENT','fillRule','trim','color','saveImage','sessionStatus$','saveOfflineData','all','_initStatusComponent','fillStyle','LICENSE_EXPORT_SIZE_EXCEEDED','isArray','Success','formula.calculation.unable','[CollaborationDataLoaderController]','session.connection-failed','_eventUnsubscribe','_releaseCalculationLimit','_maxFormulaLimit','permission.title','DeleteRangeMoveLeftCommandId','_setupSubUnitSync','dirtyRanges','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','_online','collaboration.closeRoom','some','replace','collabStatus.synced','status$','TOO_MANY_REQUESTS','_instanceService','ranges','PAYMENT_CHANNEL_NOT_SUPPORT','makeDirty','unitId','runOnServer','startFormulaLimitUrl','getCollabCursors$','current','isActive','popstate','location','ticket','defs','assign','PY_RUNTIME_SCRIPT_ERROR','size','getSheetBySheetId','_checkAndWaitForCalculationPermission','_docTransformIMECacheService','APPLY_PERMISSION_DENIED','type','contains','arc','textRanges','getStateCache','event$','_unitStatus','shift','then','_cursorInfo$','startRow','_currentUsage','memberID','_cursors','YUUMI_SUBSCRIPTION_NOT_FOUND','_saveTaskMap','YUUMI_AI_RUN_FAILED','row','_commandService','deepClone','?taskId=','getCurrentSelections','NOT_COLLAB','random','_transformPreviousActiveRange','result','_uiPartsService','dispose$','_transformService','on-line-icon','MoveRangeCommandId','urlChange$','doc.mutation.rich-text-editing','MOBILE_VERIFY_CODE_MISMATCH','PERMISSION_DENIED','setItem','url(#off-line-icon_clip0_910_343)','_hideTimer','31241jpQOjb','sheetID','mask','cursorInfo$','_docTransformStateCacheService','_doCreateSocket','WECHAT_HAS_BEEN_BOUND','actions','stageInfo','Error','div','_transformHistoryAndStateStack','ENTITLE_REPORT_LIMIT_EXCEED','2546412XxETfJ','YUUMI_TABLE_NOT_FOUND_IN_UNIT','url(#$1','wsSessionTicketUrl','name','clipPath','setAlpha','_injector','INVITE_CODE_HAS_BEEN_UES','_assignedColors','m2Prime','ENTITLE_NEED_BILLING_ADDRESS','includes','#FFF','ACTIVE_UNIT_EVENT_CHANNEL','ONLINE','engine','currentTheme$','attrs','disposeUnit','_colorAssignService','getCollabEntity$','dispose','ENTITLE_DUP_SUBSCRIPTION','with','isEditing','removeParam','FromArray','entityInit$','COMPLETION_FINISHED','_anchorDot','_name','PENDING','_handleEvent','REDEMPTION_CODE_HAS_BEEN_CREATED','transform','getRelativeToViewportCoord','UNRECOGNIZED','YUUMI_ASYNCIO_CANCELLED','getOffsetConfig','body','next','collaboration-client-ui.config','getSheetId','backgroundColor','_docStateChangeManagerService','origin','fillText','functionsExecutedState','_refreshCollabCursors','requireSession','unitID','EMAIL_HAS_BEEN_BOUND','_initCommandInterceptor','_textBubble','HEADER_MENU','_registerDependencies','transformStateCache','_showGuardMessage','idSuffix','restore','url(#on-line-icon_clip0_910_349)','1em','session.will-retry','session.collaboration-timeout','675950zIxyDZ','xlink:href','from','NO_OTHER_CLIENTS_EDITING','indexOf','runId','SUBMIT_CHANGESET_TIMEOUT','LICENSE_MAX_UNITS_EXCEEDED','collabStatus.conflict','_collabSessionService','getConfig','_handleLeaveEvent','_setFormulaLimitStatus','collab-rect-range-','activeSheet$','defIds','extend','getVpScrollXYInfoByPosToVp','replaceDocRanges','tag','getCurrentUnitForType','selection','limitInfo','USER_NOT_INVITED_CODE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getActiveRange','eventID','labelPosition','_collabCursorController','Failed','_removeClearOtherTimer','setActiveRange','REDEMPTION_USER_NOT_ELIGIBLE','getUndoRedoMutationParamsCache','_startDocCollabCursor'];_0x13f0=function(){return _0x15c478;};return _0x13f0();}
|
|
1
|
+
const _0x279361=_0x168c;(function(_0x145b65,_0x1d1c8e){const _0x5cc53e=_0x168c,_0xcd1603=_0x145b65();while(!![]){try{const _0x3293f2=parseInt(_0x5cc53e(0x236))/0x1*(-parseInt(_0x5cc53e(0x2dd))/0x2)+-parseInt(_0x5cc53e(0x15c))/0x3*(parseInt(_0x5cc53e(0x31d))/0x4)+-parseInt(_0x5cc53e(0x1ef))/0x5+parseInt(_0x5cc53e(0x1d5))/0x6+parseInt(_0x5cc53e(0x24a))/0x7*(parseInt(_0x5cc53e(0x352))/0x8)+parseInt(_0x5cc53e(0x13d))/0x9+parseInt(_0x5cc53e(0x32b))/0xa*(parseInt(_0x5cc53e(0x26a))/0xb);if(_0x3293f2===_0x1d1c8e)break;else _0xcd1603['push'](_0xcd1603['shift']());}catch(_0x926d77){_0xcd1603['push'](_0xcd1603['shift']());}}}(_0x46ed,0xc90c7));var kt=Object[_0x279361(0x1b5)],Ht=(_0xb573b6,_0x4a31c4,_0x5b2f72)=>_0x4a31c4 in _0xb573b6?kt(_0xb573b6,_0x4a31c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b2f72}):_0xb573b6[_0x4a31c4]=_0x5b2f72,_=(_0x10a8bb,_0xe154d3,_0x55898b)=>Ht(_0x10a8bb,typeof _0xe154d3!=_0x279361(0x20d)?_0xe154d3+'':_0xe154d3,_0x55898b);import{jsx as _0x417d02,jsxs as _0x12ae45}from'react/jsx-runtime';import{CollaborationStatus as _0x20f601,CollaborationSessionService as _0xe3b745,CollaborationController as _0x1c1280,DataLoaderService as _0x13e42a,MemberService as _0x4ac7a2,SessionStatus as _0x4ef11f,ILocalCacheService as _0x3b29b1,CollaborationUIEventService as _0x5307c3,CollaborationUIEventId as _0x48a9b0,DocCollaborationEntity as _0x237a0f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x15a639,getLocalCacheKey as _0x5e73e3,LOCAL_CACHE_INTERVAL as _0x4b0503,LOCAL_CACHE_INTERVAL_KEY as _0x451d1f,UniverCollaborationClientPlugin as _0x3a6051,CollaborationSocketService as _0x26a376,DEFAULT_WS_SESSION_TICKET_URL as _0x5705fa,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1f2e5e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x43c7d3,UnitStatus as _0x4fc1d9}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5852b4,IUniverInstanceService as _0x56b693,Inject as _0x349554,Injector as _0x543124,Disposable as _0x2972bb,createIdentifier as _0xf30ca8,ILogService as _0x525e85,ICommandService as _0x28d9e9,Optional as _0x3ff1c0,RxDisposable as _0x46d041,Workbook as _0x549dc5,DOC_RANGE_TYPE as _0x57a80d,debounce as _0x22d40a,Rectangle as _0x5c6826,DisposableCollection as _0x3616d9,toDisposable as _0x9a67c7,UniverInstanceType as _0x3d4c4a,generateRandomId as _0x1667d1,COLORS as _0x42b207,ColorKit as _0x17b25c,ThemeService as _0x5bf8fa,fromEventSubject as _0x470ace,Tools as _0x55b651,CommandType as _0x2d51ab,IConfigService as _0x3b186e,CanceledError as _0x4ccc82,isFormulaString as _0x54db1c,isFormulaId as _0x320189,ILocalStorageService as _0x47a719,DependentOn as _0x23c35b,Plugin as _0x565e94,merge as _0x206c2b,registerDependencies as _0x1c6e38,mergeOverrideWithDependencies as _0x274243,touchDependencies as _0x5a0569}from'@univerjs/core';import{useObservable as _0x23d515,useDependency as _0x23cdda,IUIPartsService as _0x213a5b,BuiltInUIPart as _0xcddbf3,connectInjector as _0xf3565a,IBeforeCloseService as _0x310aab,IMessageService as _0x382ae3,INotificationService as _0x3a220c}from'@univerjs/ui';import{BehaviorSubject as _0x5ccbb2,switchMap as _0x336798,of as _0x472e19,takeUntil as _0x1f12e2,debounceTime as _0x4cb684,Subject as _0x57abac,filter as _0x5eca73,merge as _0x27a14c,combineLatest as _0x4310f5,fromEvent as _0x175217,shareReplay as _0x2aeefc,mapTo as _0x2fd631,distinctUntilChanged as _0x1fa727}from'rxjs';import{Tooltip as _0x5c1611,clsx as _0x4889cb,MessageType as _0x41554e}from'@univerjs/design';import{forwardRef as _0x1bf544,useRef as _0x46ac09,createElement as _0x4fd7b0,useCallback as _0x1ee64f}from'react';import{IRemoteInstanceService as _0x15d297}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x306b9d,RefRangeService as _0x4336d8,SetSelectionsOperation as _0x2b686f,SheetsSelectionsService as _0x3c434f,EffectRefRangId as _0x5ba2a6,handleIRemoveRow as _0x471a44,handleIRemoveCol as _0x1e5959,handleMoveRange as _0x1450ab,handleInsertRow as _0x17b391,handleInsertRangeMoveRight as _0x1413a9,handleInsertRangeMoveDown as _0x1ac42c,handleInsertCol as _0x16ea5d,handleDeleteRangeMoveUp as _0x563e59,handleDeleteRangeMoveLeft as _0x23cee5,runRefRangeMutations as _0x4a4ccd}from'@univerjs/sheets';import{Shape as _0x8d0ab,Rect as _0x5beebc,getColor as _0x3775c8,RegularPolygon as _0x1ec3a4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x167676,Vector2 as _0x5abf10,SHEET_VIEWPORT_KEY as _0x42cb58,IRenderManagerService as _0x3bda3f}from'@univerjs/engine-render';import{HTTPService as _0x4be316,ISocketService as _0x4665df,WebSocketService as _0x113f5a}from'@univerjs/network';import{IDocClipboardService as _0x145d98,NodePositionConvertToCursor as _0x11eb33,NodePositionConvertToRectRange as _0x1d33b0,TEXT_RANGE_LAYER_INDEX as _0x260d0d,SetDocZoomRatioOperation as _0x1d8eb6,DocIMEInputManagerService as _0x4f8931,DocStateChangeManagerService as _0xedf1f6}from'@univerjs/docs-ui';import{IImageIoService as _0x371d41}from'@univerjs/drawing';function _0x168c(_0x2feb4b,_0x137f3b){const _0x46ede2=_0x46ed();return _0x168c=function(_0x168c6e,_0x477b48){_0x168c6e=_0x168c6e-0x139;let _0xedfd64=_0x46ede2[_0x168c6e];return _0xedfd64;},_0x168c(_0x2feb4b,_0x137f3b);}import{ITransformService as _0x5aa3d9,CollaborationEvent as _0x52ad46,isTransformMutationFailure as _0x325207,isTransformMutationsWithChangesetSuccess as _0x1bca00,RevisionService as _0x2816b1,ISnapshotServerService as _0x3c8a43}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3e4467,RichTextEditingMutation as _0xa51f36,DocSelectionManagerService as _0x304158,DocSkeletonManagerService as _0x40e4ab}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ea442,serializeRangeWithSheet as _0x5ddf78,FormulaExecuteStageType as _0x16e445,FormulaExecutedStateType as _0x24f9e0,SetFormulaCalculationStartMutation as _0x45c15a,SetFormulaCalculationNotificationMutation as _0x49e7c7}from'@univerjs/engine-formula';import{map as _0x457ae1,filter as _0x142e74,throttleTime as _0x449b52,takeUntil as _0xc3d5cb,switchMap as _0x1e056c}from'rxjs/operators';import{SheetSkeletonManagerService as _0x17a6cb,getCoordByCell as _0xdccc3d,getSheetObject as _0x18a982}from'@univerjs/sheets-ui';var g=function(){const _0x2e25e9=_0x279361;return g=Object['assign']||function(_0x480600){const _0x3f6ecb=_0x168c;for(var _0xed0fce,_0x2bc88a=0x1,_0x4a15a4=arguments[_0x3f6ecb(0x35e)];_0x2bc88a<_0x4a15a4;_0x2bc88a++){_0xed0fce=arguments[_0x2bc88a];for(var _0x26b635 in _0xed0fce)Object['prototype'][_0x3f6ecb(0x1d0)][_0x3f6ecb(0x1dc)](_0xed0fce,_0x26b635)&&(_0x480600[_0x26b635]=_0xed0fce[_0x26b635]);}return _0x480600;},g[_0x2e25e9(0x1b7)](this,arguments);},Ii=function(_0x369fac,_0x478c06){const _0x5e203b=_0x279361;var _0x2b2f94={};for(var _0x4bf863 in _0x369fac)Object['prototype'][_0x5e203b(0x1d0)][_0x5e203b(0x1dc)](_0x369fac,_0x4bf863)&&_0x478c06[_0x5e203b(0x298)](_0x4bf863)<0x0&&(_0x2b2f94[_0x4bf863]=_0x369fac[_0x4bf863]);if(_0x369fac!=null&&typeof Object[_0x5e203b(0x211)]==_0x5e203b(0x15f)){for(var _0x3f6c96=0x0,_0x4bf863=Object['getOwnPropertySymbols'](_0x369fac);_0x3f6c96<_0x4bf863[_0x5e203b(0x35e)];_0x3f6c96++)_0x478c06[_0x5e203b(0x298)](_0x4bf863[_0x3f6c96])<0x0&&Object['prototype'][_0x5e203b(0x1a0)][_0x5e203b(0x1dc)](_0x369fac,_0x4bf863[_0x3f6c96])&&(_0x2b2f94[_0x4bf863[_0x3f6c96]]=_0x369fac[_0x4bf863[_0x3f6c96]]);}return _0x2b2f94;},Xe=_0x1bf544(function(_0x66dd2c,_0x1dbc56){const _0x101922=_0x279361;var _0xd6f87b=_0x66dd2c[_0x101922(0x142)],_0xb94293=_0x66dd2c['id'],_0x325eb2=_0x66dd2c[_0x101922(0x26e)],_0x1019fe=_0x66dd2c[_0x101922(0x361)],_0x3405a5=Ii(_0x66dd2c,[_0x101922(0x142),'id',_0x101922(0x26e),'extend']),_0x572816=_0x101922(0x354)[_0x101922(0x25b)](_0xb94293,'\x20')[_0x101922(0x25b)](_0x325eb2||'')[_0x101922(0x2f1)](),_0x27027f=_0x46ac09('_'['concat'](Ei()));return Lt(_0xd6f87b,''['concat'](_0xb94293),{'defIds':_0xd6f87b[_0x101922(0x2c1)],'idSuffix':_0x27027f['current']},g({'ref':_0x1dbc56,'className':_0x572816},_0x3405a5),_0x1019fe);});function Lt(_0x20695d,_0x3a695c,_0x51e171,_0x23be71,_0x2ce83b){const _0x8c0924=_0x279361;return _0x4fd7b0(_0x20695d['tag'],g(g({'key':_0x3a695c},gi(_0x20695d,_0x51e171,_0x2ce83b)),_0x23be71),(vi(_0x20695d,_0x51e171)[_0x8c0924(0x216)]||[])['map'](function(_0x4ec9b9,_0x38f68e){const _0xe63473=_0x8c0924;return Lt(_0x4ec9b9,''['concat'](_0x3a695c,'-')['concat'](_0x20695d[_0xe63473(0x261)],'-')['concat'](_0x38f68e),_0x51e171,void 0x0,_0x2ce83b);}));}function gi(_0x31999a,_0x4004b6,_0x571c64){const _0x233b53=_0x279361;var _0x274493=g({},_0x31999a[_0x233b53(0x162)]);_0x571c64!=null&&_0x571c64['colorChannel1']&&_0x274493[_0x233b53(0x308)]==='colorChannel1'&&(_0x274493[_0x233b53(0x308)]=_0x571c64[_0x233b53(0x28f)]),_0x31999a['tag']==='mask'&&_0x274493['id']&&(_0x274493['id']=_0x274493['id']+_0x4004b6[_0x233b53(0x2c0)]),Object[_0x233b53(0x1ff)](_0x274493)['forEach'](function(_0x1d07e4){const _0x25ab7b=_0x233b53;var _0x4356be=_0x1d07e4[0x0],_0x582a23=_0x1d07e4[0x1];_0x4356be==='mask'&&typeof _0x582a23==_0x25ab7b(0x278)&&(_0x274493[_0x4356be]=_0x582a23[_0x25ab7b(0x324)](/url\(#(.*)\)/,'url(#$1'[_0x25ab7b(0x25b)](_0x4004b6[_0x25ab7b(0x2c0)],')')));});var _0x28d537=_0x4004b6[_0x233b53(0x2c1)];return!_0x28d537||_0x28d537[_0x233b53(0x35e)]===0x0||(_0x31999a['tag']==='use'&&_0x274493['xlink:href']&&(_0x274493[_0x233b53(0x2d4)]=_0x274493[_0x233b53(0x2d4)]+_0x4004b6[_0x233b53(0x2c0)]),Object[_0x233b53(0x1ff)](_0x274493)[_0x233b53(0x1a6)](function(_0x26ae33){const _0x14659c=_0x233b53;var _0x1a6b63=_0x26ae33[0x0],_0xc6dcc8=_0x26ae33[0x1];typeof _0xc6dcc8==_0x14659c(0x278)&&(_0x274493[_0x1a6b63]=_0xc6dcc8[_0x14659c(0x324)](/url\(#(.*)\)/,'url(#$1'[_0x14659c(0x25b)](_0x4004b6[_0x14659c(0x2c0)],')')));})),_0x274493;}function vi(_0x115615,_0x5f0b90){const _0x2565dd=_0x279361;var _0x38ea8a,_0x42936c=_0x5f0b90[_0x2565dd(0x2c1)];return!_0x42936c||_0x42936c[_0x2565dd(0x35e)]===0x0?_0x115615:_0x115615[_0x2565dd(0x261)]===_0x2565dd(0x23d)&&(!((_0x38ea8a=_0x115615[_0x2565dd(0x216)])===null||_0x38ea8a===void 0x0)&&_0x38ea8a[_0x2565dd(0x35e)])?g(g({},_0x115615),{'children':_0x115615[_0x2565dd(0x216)]['map'](function(_0x1ec695){const _0x1376ad=_0x2565dd;return typeof _0x1ec695[_0x1376ad(0x162)]['id']=='string'&&_0x42936c&&_0x42936c[_0x1376ad(0x281)](_0x1ec695['attrs']['id'])?g(g({},_0x1ec695),{'attrs':g(g({},_0x1ec695['attrs']),{'id':_0x1ec695['attrs']['id']+_0x5f0b90[_0x1376ad(0x2c0)]})}):_0x1ec695;})}):_0x115615;}function Ei(){const _0x51d9a6=_0x279361;return Math[_0x51d9a6(0x29d)]()[_0x51d9a6(0x259)](0x24)['substring'](0x2,0x8);}Xe['displayName']=_0x279361(0x205);var pi={'tag':'svg','attrs':{'xmlns':_0x279361(0x23b),'fill':'none','viewBox':_0x279361(0x2bb),'width':_0x279361(0x335),'height':_0x279361(0x335)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x279361(0x16f),'attrs':{'stroke':_0x279361(0x181),'d':_0x279361(0x2ee),'strokeLinecap':'round','strokeLinejoin':_0x279361(0x2b1),'strokeWidth':1.2}}]},{'tag':_0x279361(0x23d),'attrs':{},'children':[{'tag':_0x279361(0x1ba),'attrs':{'id':_0x279361(0x16c)},'children':[{'tag':_0x279361(0x16f),'attrs':{'fill':'white','d':_0x279361(0x271)}}]}]}],'defIds':[_0x279361(0x16c)]},Mt=_0x1bf544(function(_0x3169f8,_0x3955d5){const _0x3d1fd1=_0x279361;return _0x4fd7b0(Xe,Object[_0x3d1fd1(0x2c4)]({},_0x3169f8,{'id':'off-line-icon','ref':_0x3955d5,'icon':pi}));});Mt['displayName']='OffLineIcon';var Oi={'tag':_0x279361(0x1ea),'attrs':{'xmlns':_0x279361(0x23b),'fill':'none','viewBox':_0x279361(0x14c),'width':'1em','height':_0x279361(0x335)},'children':[{'tag':'g','attrs':{'clipPath':_0x279361(0x1c8)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x279361(0x2a3),'strokeLinecap':_0x279361(0x2b1),'strokeLinejoin':_0x279361(0x2b1),'strokeWidth':1.2}}]},{'tag':_0x279361(0x23d),'attrs':{},'children':[{'tag':_0x279361(0x1ba),'attrs':{'id':_0x279361(0x292)},'children':[{'tag':'path','attrs':{'fill':_0x279361(0x260),'d':_0x279361(0x271),'transform':'translate(.97)'}}]}]}],'defIds':[_0x279361(0x292)]},At=_0x1bf544(function(_0x52a5fc,_0x420489){const _0x5b75e6=_0x279361;return _0x4fd7b0(Xe,Object['assign']({},_0x52a5fc,{'id':_0x5b75e6(0x254),'ref':_0x420489,'icon':Oi}));});At[_0x279361(0x376)]=_0x279361(0x168);function Ti(_0x2ac268){const _0x474ac4=_0x279361;switch(_0x2ac268){case _0x20f601['OFFLINE']:return _0x474ac4(0x1fc);case _0x20f601['CONFLICT']:return _0x474ac4(0x2c2);case _0x20f601['FETCH_MISS']:return _0x474ac4(0x381);case _0x20f601[_0x474ac4(0x1de)]:return _0x474ac4(0x238);case _0x20f601[_0x474ac4(0x16d)]:case _0x20f601[_0x474ac4(0x2ef)]:return _0x474ac4(0x153);case _0x20f601['SYNCED']:case _0x20f601[_0x474ac4(0x1e0)]:return _0x474ac4(0x1d9);}}function Ci(_0x422252){const _0x55e215=_0x279361,{status$:_0x228746}=_0x422252,_0x4c7f2b=_0x23d515(_0x228746,_0x20f601[_0x55e215(0x1de)]),_0x4687bf=_0x23cdda(_0x5852b4),_0x290a0f=_0x23cdda(_0xe3b745),_0x4868ae=_0x4c7f2b!==_0x20f601['OFFLINE'],_0x240234=_0x4687bf['t'](Ti(_0x4c7f2b)),_0x455f93=_0x4868ae?_0x417d02(At,{}):_0x417d02(Mt,{}),_0x4f2247=_0x1ee64f(()=>{const _0x1ae6ee=_0x55e215;_0x4868ae||_0x290a0f[_0x1ae6ee(0x143)]();},[_0x4868ae,_0x290a0f]);function _0x3f69d0(){const _0x4c1a22=_0x55e215;return _0x12ae45(_0x4c1a22(0x22b),{'className':'univer-flex\x20univer-items-center','onClick':_0x4f2247,'children':[_0x417d02(_0x4c1a22(0x22b),{'className':_0x4889cb(_0x4c1a22(0x2d5),{'univer-text-green-500':_0x4868ae,'univer-text-red-500':!_0x4868ae}),'children':_0x455f93}),_0x417d02(_0x4c1a22(0x22b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x240234})]});}return _0x4868ae?_0x3f69d0():_0x417d02(_0x5c1611,{'title':_0x4687bf['t'](_0x55e215(0x1e5)),'children':_0x3f69d0()});}var Ri=Object[_0x279361(0x1ec)],Di=(_0x4d1d78,_0x5c942a,_0x1df142,_0x402ee2)=>{const _0x4f1e72=_0x279361;for(var _0x40e0f5=_0x402ee2>0x1?void 0x0:_0x402ee2?Ri(_0x5c942a,_0x1df142):_0x5c942a,_0x712dbd=_0x4d1d78[_0x4f1e72(0x35e)]-0x1,_0x5d253e;_0x712dbd>=0x0;_0x712dbd--)(_0x5d253e=_0x4d1d78[_0x712dbd])&&(_0x40e0f5=_0x5d253e(_0x40e0f5)||_0x40e0f5);return _0x40e0f5;},ie=(_0x2510c1,_0x61712)=>(_0x24bae5,_0x4cf7dc)=>_0x61712(_0x24bae5,_0x4cf7dc,_0x2510c1);let ae=class extends _0x2972bb{constructor(_0x3b3501,_0x356f3e,_0x1e331c,_0x41b7f1){const _0xa568c5=_0x279361;super(),_(this,_0xa568c5(0x2ad),new _0x5ccbb2(_0x20f601['NOT_COLLAB'])),(this[_0xa568c5(0x276)]=_0x3b3501,this[_0xa568c5(0x31b)]=_0x356f3e,this[_0xa568c5(0x2ac)]=_0x1e331c,this[_0xa568c5(0x35b)]=_0x41b7f1,this[_0xa568c5(0x2e7)](),this[_0xa568c5(0x37a)]());}[_0x279361(0x37a)](){const _0x4888a1=_0x279361;this[_0x4888a1(0x285)](this[_0x4888a1(0x276)]['focused$'][_0x4888a1(0x34d)](_0x336798(()=>{const _0x5ad2a1=_0x4888a1,_0x39d007=this[_0x5ad2a1(0x276)]['getFocusedUnit']();return _0x39d007?this[_0x5ad2a1(0x2ac)][_0x5ad2a1(0x2e9)](_0x39d007['getUnitId']()):_0x472e19(null);}),_0x336798(_0x58046a=>_0x58046a?_0x58046a[_0x4888a1(0x184)]:_0x472e19(_0x20f601[_0x4888a1(0x1de)])))[_0x4888a1(0x1f6)](_0x101a89=>{const _0x14bcae=_0x4888a1;this[_0x14bcae(0x2ad)][_0x14bcae(0x1e4)](_0x101a89);}));}[_0x279361(0x2e7)](){const _0x27c57b=_0x279361;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0xcddbf3[_0x27c57b(0x36e)],()=>_0xf3565a(bi({'status$':this['_status$']['asObservable']()}),this[_0x27c57b(0x31b)])));}};ae=Di([ie(0x0,_0x56b693),ie(0x1,_0x349554(_0x543124)),ie(0x2,_0x349554(_0x1c1280)),ie(0x3,_0x213a5b)],ae);function bi(_0x50ee51){const {status$:_0x536dcc}=_0x50ee51;return function(){return _0x417d02(Ci,{'status$':_0x536dcc});};}const Pt=_0xf30ca8(_0x279361(0x154));var Ni=Object[_0x279361(0x1ec)],Ui=(_0xf5cfd,_0x5c0852,_0x46b5f2,_0x55eeea)=>{const _0x2a1d18=_0x279361;for(var _0x3a41ce=_0x55eeea>0x1?void 0x0:_0x55eeea?Ni(_0x5c0852,_0x46b5f2):_0x5c0852,_0xeee6e5=_0xf5cfd[_0x2a1d18(0x35e)]-0x1,_0x4b2d5e;_0xeee6e5>=0x0;_0xeee6e5--)(_0x4b2d5e=_0xf5cfd[_0xeee6e5])&&(_0x3a41ce=_0x4b2d5e(_0x3a41ce)||_0x3a41ce);return _0x3a41ce;},z=(_0x3dcb3f,_0x2eadd2)=>(_0x31582a,_0x11409b)=>_0x2eadd2(_0x31582a,_0x11409b,_0x3dcb3f);let ce=class extends _0x46d041{constructor(_0x51dd45,_0x25524f,_0x3375df,_0x5ea8fc,_0xe9d601){const _0x44868f=_0x279361;super(),this[_0x44868f(0x287)]=_0x51dd45,this['_logService']=_0x25524f,this['_commandService']=_0x3375df,this[_0x44868f(0x347)]=_0x5ea8fc,_0xe9d601?_0xe9d601==null||_0xe9d601[_0x44868f(0x160)]()[_0x44868f(0x19e)](()=>this[_0x44868f(0x275)]()):(this['_logService'][_0x44868f(0x2f5)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x44868f(0x275)]());}async['_init'](){const _0x4ead38=_0x279361,_0x4e217f=this['_urlService']['getParam'](_0x4ead38(0x14d)),_0x3ddaaa=this[_0x4ead38(0x287)][_0x4ead38(0x242)](_0x4ead38(0x297)),_0x1760bb=this[_0x4ead38(0x287)][_0x4ead38(0x242)](_0x4ead38(0x37b));if(!_0x4e217f||!_0x3ddaaa){this[_0x4ead38(0x1da)][_0x4ead38(0x2f5)]('[CollaborationDataLoaderController]',_0x4ead38(0x33d));return;}const _0x2264a4=await this[_0x4ead38(0x347)][_0x4ead38(0x155)](_0x4e217f,Number(_0x3ddaaa),_0x1760bb);_0x2264a4&&_0x2264a4 instanceof _0x549dc5&&this['_setupSubUnitSync'](_0x2264a4);}async[_0x279361(0x333)](_0x3cecab){const _0x44192f=_0x279361;await this['_updateSubUnitFromURLParams'](_0x3cecab),_0x3cecab[_0x44192f(0x351)][_0x44192f(0x34d)](_0x1f12e2(this['dispose$']))[_0x44192f(0x1f6)](_0x4f4756=>{_0x4f4756&&this['_updateURLWithCurrentState'](_0x4f4756);}),this[_0x44192f(0x287)]['urlChange$'][_0x44192f(0x34d)](_0x1f12e2(this['dispose$']))[_0x44192f(0x1f6)](()=>this['_updateSubUnitFromURLParams'](_0x3cecab));}[_0x279361(0x18e)](_0x1f9801,_0x11baff=!0x1){const _0x2f0e7d=_0x279361,_0x2d05d0=this[_0x2f0e7d(0x287)][_0x2f0e7d(0x242)]('subunit');_0x1f9801[_0x2f0e7d(0x13e)]()!==_0x2d05d0&&this[_0x2f0e7d(0x287)][_0x2f0e7d(0x17e)]('subunit',_0x1f9801[_0x2f0e7d(0x13e)](),_0x11baff);}async[_0x279361(0x32d)](_0x1ae399){const _0x2cfb80=_0x279361;var _0x26fb4b;const _0x5204a4=this[_0x2cfb80(0x287)]['getParam'](_0x2cfb80(0x37b));if(!_0x5204a4||!_0x1ae399['getSheetBySheetId'](_0x5204a4)){const _0x12f3d7=_0x1ae399[_0x2cfb80(0x385)]()[0x0],_0x2a7b15=_0x1ae399[_0x2cfb80(0x2f4)](_0x12f3d7);if(!_0x2a7b15)return;this['_updateURLWithCurrentState'](_0x2a7b15,!0x0),await this['_commandService']['executeCommand'](_0x306b9d['id'],{'unitId':_0x1ae399[_0x2cfb80(0x228)](),'subUnitId':_0x12f3d7});return;}((_0x26fb4b=_0x1ae399['getActiveSheet']())==null?void 0x0:_0x26fb4b[_0x2cfb80(0x13e)]())!==_0x5204a4&&await this[_0x2cfb80(0x232)][_0x2cfb80(0x30d)](_0x306b9d['id'],{'unitId':_0x1ae399[_0x2cfb80(0x228)](),'subUnitId':_0x5204a4});}};ce=Ui([z(0x0,Pt),z(0x1,_0x525e85),z(0x2,_0x28d9e9),z(0x3,_0x349554(_0x13e42a)),z(0x4,_0x3ff1c0(_0x15d297))],ce);var Li=Object[_0x279361(0x1ec)],Mi=(_0x12ba4a,_0x3d992f,_0x41279a,_0xdbd515)=>{const _0x5c5fd2=_0x279361;for(var _0x1c4c20=_0xdbd515>0x1?void 0x0:_0xdbd515?Li(_0x3d992f,_0x41279a):_0x3d992f,_0x2c26f0=_0x12ba4a[_0x5c5fd2(0x35e)]-0x1,_0x58cbe8;_0x2c26f0>=0x0;_0x2c26f0--)(_0x58cbe8=_0x12ba4a[_0x2c26f0])&&(_0x1c4c20=_0x58cbe8(_0x1c4c20)||_0x1c4c20);return _0x1c4c20;},it=(_0x1828ee,_0x15e207)=>(_0xb3618f,_0x12f860)=>_0x15e207(_0xb3618f,_0x12f860,_0x1828ee);let Pe=class extends _0x46d041{constructor(_0x20e01b,_0x305ca5){const _0x5a1211=_0x279361;super(),this[_0x5a1211(0x1a9)]=_0x20e01b,this[_0x5a1211(0x22d)]=_0x305ca5,this[_0x5a1211(0x275)]();}[_0x279361(0x275)](){const _0x5ba699=_0x279361,_0x54585f=this;this[_0x5ba699(0x285)](this[_0x5ba699(0x1a9)][_0x5ba699(0x24b)]({'onBeforePasteImage':async _0x414133=>{const _0x45db33=_0x5ba699,_0x25c9d3=await _0x54585f[_0x45db33(0x22d)][_0x45db33(0x2c6)](_0x414133);return _0x25c9d3?{'source':_0x25c9d3['source'],'imageSourceType':_0x25c9d3[_0x45db33(0x1a2)]}:null;}}));}};Pe=Mi([it(0x0,_0x145d98),it(0x1,_0x371d41)],Pe);const nt=[_0x279361(0x37c),_0x279361(0x27e),_0x279361(0x249),'red.300',_0x279361(0x1df),_0x279361(0x180)];class Ge extends _0x2972bb{constructor(){const _0x156eea=_0x279361;super(...arguments),_(this,_0x156eea(0x1a8),new Map()),_(this,_0x156eea(0x374),0x0);}[_0x279361(0x2ed)](_0x2c0d45){const _0x2d40cb=_0x279361;if(this[_0x2d40cb(0x1a8)]['has'](_0x2c0d45))return this[_0x2d40cb(0x1a8)][_0x2d40cb(0x225)](_0x2c0d45);const _0x23e2a6=nt[this[_0x2d40cb(0x374)]];return this['_colorIndex']=(this[_0x2d40cb(0x374)]+0x1)%nt[_0x2d40cb(0x35e)],this[_0x2d40cb(0x1a8)][_0x2d40cb(0x357)](_0x2c0d45,_0x23e2a6),_0x23e2a6;}}function wt(_0x1fc344){const _0x41096e=_0x279361;let _0x42c3b0='';for(const _0x102b09 of _0x1fc344){const {startOffset:_0x595265,endOffset:_0x316184,isActive:_0x1a235f,rangeType:_0xf5f0eb,segmentId:_0x34d6b8,segmentPage:_0x1c4f56}=_0x102b09;_0x42c3b0[_0x41096e(0x35e)]&&(_0x42c3b0+=','),_0x42c3b0+=_0x595265+':'+_0x316184+':'+(_0x1a235f?'1':'0')+':'+_0xf5f0eb+':'+_0x34d6b8+':'+_0x1c4f56;}return _0x42c3b0;}function Ai(_0x3d0373){const _0x18f6d8=_0x279361,_0x46cb8e=_0x3d0373[_0x18f6d8(0x329)](','),_0x28e4c0=[];for(const _0x5114b1 of _0x46cb8e){const [_0x1f291b,_0x30159f,_0x961b9f,_0x8faca8,_0x40516e,_0x21e69d]=_0x5114b1['split'](':');_0x28e4c0[_0x18f6d8(0x246)]({'startOffset':Number(_0x1f291b),'endOffset':Number(_0x30159f),'collapsed':_0x1f291b===_0x30159f,'isActive':_0x961b9f==='1','rangeType':_0x8faca8===_0x57a80d[_0x18f6d8(0x1cf)]?_0x57a80d[_0x18f6d8(0x1cf)]:_0x57a80d[_0x18f6d8(0x383)],'segmentId':typeof _0x40516e==_0x18f6d8(0x278)?String(_0x40516e):'','segmentPage':Number(_0x21e69d!=null?_0x21e69d:-0x1)});}return _0x28e4c0[_0x18f6d8(0x1c7)](_0x2d17e2=>_0x2d17e2[_0x18f6d8(0x13c)])||(_0x28e4c0[0x0][_0x18f6d8(0x13c)]=!0x0),_0x28e4c0;}class Ke extends _0x46d041{constructor(){const _0x385253=_0x279361;super(...arguments),_(this,_0x385253(0x372),new _0x5ccbb2(null)),_(this,_0x385253(0x1cb),this[_0x385253(0x372)][_0x385253(0x34e)]());}[_0x279361(0x2e2)](_0x172aba){const _0x5d5fc3=_0x279361,{unitID:_0x51d388,memberID:_0x540631,textRanges:_0x1e7bf4}=_0x172aba,_0x525a00=wt(_0x1e7bf4);if(_0x525a00==='')return;const _0x5d341a={'unitID':_0x51d388,'memberID':_0x540631,'selection':_0x525a00};this[_0x5d5fc3(0x372)][_0x5d5fc3(0x1e4)](_0x5d341a);}}var Pi=Object[_0x279361(0x1ec)],wi=(_0xa37405,_0x34d832,_0x3dd48f,_0x9850bc)=>{const _0x8d1f64=_0x279361;for(var _0x13d460=_0x9850bc>0x1?void 0x0:_0x9850bc?Pi(_0x34d832,_0x3dd48f):_0x34d832,_0x844512=_0xa37405[_0x8d1f64(0x35e)]-0x1,_0x35b9d2;_0x844512>=0x0;_0x844512--)(_0x35b9d2=_0xa37405[_0x844512])&&(_0x13d460=_0x35b9d2(_0x13d460)||_0x13d460);return _0x13d460;},P=(_0x16527e,_0x582f8e)=>(_0x47d347,_0x3aba57)=>_0x582f8e(_0x47d347,_0x3aba57,_0x16527e);const yi=0x12c,$i=0x64;let we=class extends _0x46d041{constructor(_0xde5f1a,_0x63c16,_0xc58830,_0x4422a4,_0x23f44c,_0x1b204a,_0x1718ae,_0x4ec9d4,_0x57fe99){const _0x17cb3b=_0x279361;super(),_(this,_0x17cb3b(0x264),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5ccbb2(new Map())),_(this,_0x17cb3b(0x1be),this[_0x17cb3b(0x195)][_0x17cb3b(0x34e)]()),_(this,_0x17cb3b(0x229),new _0x5ccbb2([])),_(this,'roomMembers$',this[_0x17cb3b(0x229)][_0x17cb3b(0x34d)](_0x4cb684(yi))),_(this,_0x17cb3b(0x1d7),_0x22d40a(_0x21e4bb=>{const _0x42b111=_0x17cb3b,_0x5c2620={'eventID':_0x52ad46[_0x42b111(0x2c8)],'data':{'unitID':this[_0x42b111(0x2ea)],'memberID':this['_session'][_0x42b111(0x387)](),'selection':wt(_0x21e4bb)}};this[_0x42b111(0x28e)][_0x42b111(0x14e)](_0x5c2620,this[_0x42b111(0x2ea)]);},$i)),(this[_0x17cb3b(0x2ea)]=_0xde5f1a,this[_0x17cb3b(0x28e)]=_0x63c16,this[_0x17cb3b(0x31b)]=_0xc58830,this[_0x17cb3b(0x350)]=_0x4422a4,this[_0x17cb3b(0x1f0)]=_0x23f44c,this[_0x17cb3b(0x311)]=_0x1b204a,this['_transformService']=_0x1718ae,this[_0x17cb3b(0x276)]=_0x4ec9d4,this[_0x17cb3b(0x232)]=_0x57fe99);}get[_0x279361(0x2fa)](){const _0x46304b=_0x279361;return this[_0x46304b(0x195)][_0x46304b(0x263)]();}get[_0x279361(0x231)](){const _0x44e571=_0x279361;return this[_0x44e571(0x229)][_0x44e571(0x263)]();}[_0x279361(0x1e2)](){const _0x35dcd2=_0x279361;super['dispose'](),this[_0x35dcd2(0x195)][_0x35dcd2(0x1e4)](new Map()),this[_0x35dcd2(0x195)][_0x35dcd2(0x262)](),this['_roomMembers$'][_0x35dcd2(0x1e4)]([]),this[_0x35dcd2(0x229)][_0x35dcd2(0x262)]();}[_0x279361(0x35a)](){const _0x39a4a4=_0x279361;this[_0x39a4a4(0x275)]||(this[_0x39a4a4(0x275)]=!0x0,this[_0x39a4a4(0x28e)][_0x39a4a4(0x21a)][_0x39a4a4(0x34d)](_0x1f12e2(this[_0x39a4a4(0x337)]))[_0x39a4a4(0x1f6)](_0x14d276=>{const _0x40bba5=_0x39a4a4;_0x14d276===_0x4ef11f['ONLINE']?this['_toggleOnline']():this[_0x40bba5(0x359)]();}),this['_session'][_0x39a4a4(0x2d3)]['pipe'](_0x1f12e2(this['dispose$']))[_0x39a4a4(0x1f6)](_0x4630f6=>{const _0x576866=_0x39a4a4,_0x27a93a=_0x4630f6['eventID'];_0x27a93a===_0x52ad46[_0x576866(0x2c8)]&&this[_0x576866(0x356)](_0x4630f6),_0x27a93a===_0x52ad46[_0x576866(0x196)]&&this[_0x576866(0x21d)](_0x4630f6);}),this[_0x39a4a4(0x285)](this[_0x39a4a4(0x232)][_0x39a4a4(0x258)](_0x41cc5d=>{const _0x1e837e=_0x39a4a4,_0x4ae763=_0x41cc5d[_0x1e837e(0x141)];_0x4ae763!=null&&this['_online']&&_0x41cc5d['id']===_0x3e4467['id']&&_0x4ae763[_0x1e837e(0x140)]===this[_0x1e837e(0x2ea)]&&_0x4ae763[_0x1e837e(0x1d3)]===!0x1&&_0x4ae763[_0x1e837e(0x291)][_0x1e837e(0x35e)]>0x0&&this['_updateLocalCursor'](_0x4ae763[_0x1e837e(0x291)]);})),this[_0x39a4a4(0x311)][_0x39a4a4(0x1cb)][_0x39a4a4(0x34d)](_0x1f12e2(this['dispose$']))['subscribe'](_0x3af6ce=>{const _0x5bd130=_0x39a4a4;if((_0x3af6ce==null?void 0x0:_0x3af6ce[_0x5bd130(0x2ea)])!==this[_0x5bd130(0x2ea)])return;const _0x19aeef={'eventID':_0x52ad46[_0x5bd130(0x2c8)],'data':_0x3af6ce};this[_0x5bd130(0x356)](_0x19aeef);}),this[_0x39a4a4(0x285)](this['_commandService'][_0x39a4a4(0x258)](_0x3338b2=>{const _0x183c64=_0x39a4a4;if(_0x3338b2[_0x183c64(0x141)]==null)return;const _0x4a0420=_0x3338b2[_0x183c64(0x141)];if(_0x3338b2['id']!==_0xa51f36['id']||_0x4a0420['unitId']!==this['unitID'])return;const _0xa1e656={'id':_0x183c64(0x2ab),'params':_0x4a0420},_0x107e24=this[_0x183c64(0x2fa)];for(const [_0x815cd7,_0x5d58fe]of _0x107e24){const _0x2cb18f={'id':_0x183c64(0x2ab),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5d58fe['ranges']}},_0x36b4f1=this[_0x183c64(0x192)][_0x183c64(0x1bc)](_0xa1e656,_0x2cb18f,!0x1);if(_0x325207(_0x36b4f1))throw _0x36b4f1[_0x183c64(0x21b)];_0x107e24[_0x183c64(0x357)](_0x815cd7,{..._0x5d58fe,'ranges':_0x36b4f1['m2Prime'][_0x183c64(0x141)][_0x183c64(0x1d4)]});}queueMicrotask(()=>{const _0x2e9690=_0x183c64;this['_cursorInfo$'][_0x2e9690(0x1e4)](_0x107e24);});})));}[_0x279361(0x356)](_0xd5e2ca){const _0x38b788=_0x279361;var _0x6631e7,_0x455f38;const {memberID:_0x493487,selection:_0x21ff0b}=_0xd5e2ca[_0x38b788(0x28a)],_0x57bc8f=Ai(_0x21ff0b),_0x551b39=(_0x455f38=(_0x6631e7=this[_0x38b788(0x1f0)][_0x38b788(0x296)](this[_0x38b788(0x2ea)],_0x493487))==null?void 0x0:_0x6631e7[_0x38b788(0x371)])!=null?_0x455f38:_0x38b788(0x29b),_0x57b810={'color':this[_0x38b788(0x350)][_0x38b788(0x2ed)](_0x493487),'name':_0x551b39,'ranges':_0x57bc8f},_0x5af7f5=this['cursorInfo'];_0x5af7f5[_0x38b788(0x357)](_0x493487,_0x57b810),this[_0x38b788(0x195)][_0x38b788(0x1e4)](_0x5af7f5);}[_0x279361(0x21d)](_0x2fd2b0){const _0xf2b53b=_0x279361,{memberID:_0x5e40e0}=_0x2fd2b0['data'],_0x1d6d69=this[_0xf2b53b(0x2fa)];_0x1d6d69[_0xf2b53b(0x250)](_0x5e40e0),this['_cursorInfo$']['next'](_0x1d6d69);}[_0x279361(0x20f)](){const _0x2a1cbd=_0x279361;var _0x166ce4;if(this[_0x2a1cbd(0x264)]=!0x0,((_0x166ce4=this[_0x2a1cbd(0x276)][_0x2a1cbd(0x1c2)]())==null?void 0x0:_0x166ce4[_0x2a1cbd(0x228)]())!==this[_0x2a1cbd(0x2ea)])return;const _0x2bf29a=this[_0x2a1cbd(0x31b)]['get'](_0x304158)[_0x2a1cbd(0x227)]();Array['isArray'](_0x2bf29a)&&_0x2bf29a[_0x2a1cbd(0x35e)]>0x0&&this[_0x2a1cbd(0x1d7)](_0x2bf29a);}[_0x279361(0x359)](){const _0x1c94e4=_0x279361;this[_0x1c94e4(0x264)]=!0x1;}};we=wi([P(0x2,_0x349554(_0x543124)),P(0x3,_0x349554(Ge)),P(0x4,_0x349554(_0x4ac7a2)),P(0x5,_0x349554(Ke)),P(0x6,_0x5aa3d9),P(0x7,_0x56b693),P(0x8,_0x28d9e9)],we);var xi=Object[_0x279361(0x1ec)],Bi=(_0x326288,_0x57205b,_0x4e6b5e,_0x159751)=>{const _0x294ee2=_0x279361;for(var _0x45f5ed=_0x159751>0x1?void 0x0:_0x159751?xi(_0x57205b,_0x4e6b5e):_0x57205b,_0x48c060=_0x326288[_0x294ee2(0x35e)]-0x1,_0x5edcff;_0x48c060>=0x0;_0x48c060--)(_0x5edcff=_0x326288[_0x48c060])&&(_0x45f5ed=_0x5edcff(_0x45f5ed)||_0x45f5ed);return _0x45f5ed;},F=(_0x55022b,_0x489eae)=>(_0x6e1960,_0x3c2619)=>_0x489eae(_0x6e1960,_0x3c2619,_0x55022b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x25c320=[],_0x2d3e7b=!0x1;return _0x566061=>{const _0x49479b=_0x168c;_0x25c320[_0x49479b(0x246)](_0x566061),_0x2d3e7b||(_0x2d3e7b=!0x0,setTimeout(()=>{const _0x46c84d=_0x49479b;_0x25c320[_0x46c84d(0x1a6)](_0x3d4e36=>_0x3d4e36()),_0x25c320=[],_0x2d3e7b=!0x1;}));};};let ye=class extends _0x46d041{constructor(_0x25d56d,_0x46add1,_0x57076e,_0x350364,_0xb3cbb5,_0x3e25c6,_0x1236b6,_0x210042){const _0xfe13cd=_0x279361;super(),_(this,_0xfe13cd(0x264),!0x1),_(this,_0xfe13cd(0x275),!0x1),_(this,_0xfe13cd(0x195),new _0x5ccbb2(new Map())),_(this,_0xfe13cd(0x1be),this[_0xfe13cd(0x195)][_0xfe13cd(0x34e)]()),_(this,_0xfe13cd(0x229),new _0x5ccbb2([])),_(this,_0xfe13cd(0x303),this['_roomMembers$'][_0xfe13cd(0x34d)](_0x4cb684(Fi))),_(this,_0xfe13cd(0x1d7),_0x22d40a((_0x312bfd,_0x4668f7)=>{const _0x4c3330=_0xfe13cd,_0x3a8357={'eventID':_0x52ad46[_0x4c3330(0x2c8)],'data':{'unitID':this[_0x4c3330(0x2ea)],'memberID':this[_0x4c3330(0x28e)][_0x4c3330(0x387)](),'selection':_0x5ddf78(_0x312bfd,_0x4668f7[_0x4c3330(0x2be)])}};this['_session'][_0x4c3330(0x14e)](_0x3a8357,this[_0x4c3330(0x2ea)]);},ki)),(this[_0xfe13cd(0x2ea)]=_0x25d56d,this[_0xfe13cd(0x28e)]=_0x46add1,this[_0xfe13cd(0x31b)]=_0x57076e,this[_0xfe13cd(0x350)]=_0x350364,this[_0xfe13cd(0x1f0)]=_0xb3cbb5,this[_0xfe13cd(0x276)]=_0x3e25c6,this[_0xfe13cd(0x232)]=_0x1236b6,this[_0xfe13cd(0x273)]=_0x210042);}get[_0x279361(0x2fa)](){const _0x46bffc=_0x279361;return this[_0x46bffc(0x195)]['getValue']();}get[_0x279361(0x231)](){const _0x465f39=_0x279361;return this['_roomMembers$'][_0x465f39(0x263)]();}[_0x279361(0x1e2)](){const _0x44e1d3=_0x279361;super[_0x44e1d3(0x1e2)](),this[_0x44e1d3(0x195)][_0x44e1d3(0x1e4)](new Map()),this[_0x44e1d3(0x195)]['complete'](),this[_0x44e1d3(0x229)][_0x44e1d3(0x1e4)]([]),this[_0x44e1d3(0x229)]['complete']();}['init'](){const _0x1ac25b=_0x279361;this[_0x1ac25b(0x275)]||(this['_init']=!0x0,this[_0x1ac25b(0x28e)][_0x1ac25b(0x21a)][_0x1ac25b(0x34d)](_0x1f12e2(this['dispose$']))[_0x1ac25b(0x1f6)](_0xabd9f3=>{const _0xb8469a=_0x1ac25b;_0xabd9f3===_0x4ef11f[_0xb8469a(0x1c6)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session']['event$'][_0x1ac25b(0x34d)](_0x1f12e2(this[_0x1ac25b(0x337)]))[_0x1ac25b(0x1f6)](_0x481fcb=>{const _0x5e4386=_0x1ac25b,_0x28ee17=_0x481fcb[_0x5e4386(0x323)];_0x28ee17===_0x52ad46[_0x5e4386(0x2c8)]&&this['_onCursorUpdate'](_0x481fcb),_0x28ee17===_0x52ad46[_0x5e4386(0x196)]&&this['_onCursorDelete'](_0x481fcb);}),this[_0x1ac25b(0x1ae)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x11bc33=>{const _0x326e17=_0x1ac25b;if(this['_online']&&_0x11bc33['id']===_0x2b686f['id']&&_0x11bc33['params']['unitId']===this[_0x326e17(0x2ea)]){const _0xb082bf=_0x11bc33[_0x326e17(0x141)];this[_0x326e17(0x1d7)](_0xb082bf[_0x326e17(0x223)],_0xb082bf[_0x326e17(0x295)][0x0]);}})));}[_0x279361(0x356)](_0xd8b2a2){const _0x3a5fbf=_0x279361;var _0x2604f9,_0x44312b;const {memberID:_0x32ddb4,selection:_0x6d835c}=_0xd8b2a2[_0x3a5fbf(0x28a)],{sheetName:_0x1ca129,range:_0x5f5a1f}=_0x1ea442(_0x6d835c),_0x20884b={'name':(_0x44312b=(_0x2604f9=this[_0x3a5fbf(0x1f0)]['getMember'](this[_0x3a5fbf(0x2ea)],_0x32ddb4))==null?void 0x0:_0x2604f9[_0x3a5fbf(0x371)])!=null?_0x44312b:_0x3a5fbf(0x29b),'range':this[_0x3a5fbf(0x1bf)](_0x1ca129,_0x5f5a1f),'sheetID':_0x1ca129,'color':this[_0x3a5fbf(0x350)][_0x3a5fbf(0x2ed)](_0x32ddb4),'selection':_0x6d835c},_0x5e4e89=this[_0x3a5fbf(0x2fa)];_0x5e4e89['set'](_0x32ddb4,_0x20884b),this[_0x3a5fbf(0x195)][_0x3a5fbf(0x1e4)](_0x5e4e89);}[_0x279361(0x21d)](_0x898be){const _0x12ed8e=_0x279361,{memberID:_0x46f610}=_0x898be['data'],_0x3aabad=this[_0x12ed8e(0x2fa)];_0x3aabad['delete'](_0x46f610),this[_0x12ed8e(0x195)]['next'](_0x3aabad);}[_0x279361(0x1bf)](_0x42dc07,_0x29f012){const _0x3c5382=_0x279361;var _0x6dc3ae,_0xa2a642;const _0x68a5a0=(_0xa2a642=(_0x6dc3ae=this['_univerInstanceService'][_0x3c5382(0x22f)](this[_0x3c5382(0x2ea)]))==null?void 0x0:_0x6dc3ae[_0x3c5382(0x2f4)](_0x42dc07))==null?void 0x0:_0xa2a642[_0x3c5382(0x380)]();return(_0x68a5a0==null?void 0x0:_0x68a5a0[_0x3c5382(0x316)](_0x1d301a=>_0x5c6826[_0x3c5382(0x2af)](_0x1d301a,_0x29f012)))||_0x29f012;}[_0x279361(0x1ae)](){const _0x2c96cf=_0x279361,_0x5804ae=new _0x3616d9(),_0xf67885=Hi(),_0x1e39ad=()=>{const _0x4a4969=_0x168c;_0x5804ae[_0x4a4969(0x1e2)]();const _0x176e99=(_0x47b21c,_0x43ca01,_0x48b038,_0x1ca4e2)=>{const _0x201329=_0x4a4969;let _0x11e732=[];switch(_0x47b21c['id']){case _0x5ba2a6[_0x201329(0x20a)]:{_0x11e732=_0x23cee5(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x2d2)]:{_0x11e732=_0x563e59(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x17a)]:{_0x11e732=_0x16ea5d(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x18f)]:{_0x11e732=_0x1ac42c(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x28c)]:{_0x11e732=_0x1413a9(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6['InsertRowCommandId']:{_0x11e732=_0x17b391(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x388)]:{_0x11e732=_0x1450ab(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6['RemoveColCommandId']:{_0x11e732=_0x1e5959(_0x47b21c,_0x1ca4e2);break;}case _0x5ba2a6[_0x201329(0x305)]:{_0x11e732=_0x471a44(_0x47b21c,_0x1ca4e2);break;}}const _0x22fe45=_0x4a4ccd(_0x11e732,_0x1ca4e2),_0x3539a2=this[_0x201329(0x2fa)][_0x201329(0x225)](_0x43ca01);if(_0x3539a2&&_0x22fe45){const _0x4e3712={..._0x3539a2,'range':_0x22fe45};this[_0x201329(0x2fa)][_0x201329(0x357)](_0x43ca01,_0x4e3712),_0xf67885(()=>{const _0x594c33=_0x201329,_0x151acf=this['_refRangeService'][_0x594c33(0x2c5)](_0x22fe45,_0x7f3ce7=>(_0x151acf[_0x594c33(0x1e2)](),_0x176e99(_0x7f3ce7,_0x43ca01,_0x48b038,_0x22fe45)));_0x5804ae['add'](_0x151acf);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x56b199,_0x581be4)=>{const _0x13fe8c=_0x4a4969,{range:_0x1c333a,sheetID:_0x40290e}=_0x56b199,_0xf83522=this[_0x13fe8c(0x273)][_0x13fe8c(0x2c5)](_0x1c333a,_0x2c6f21=>(_0xf83522[_0x13fe8c(0x1e2)](),_0x176e99(_0x2c6f21,_0x581be4,_0x40290e,_0x1c333a)));_0x5804ae[_0x13fe8c(0x169)](_0xf83522);});};this[_0x2c96cf(0x285)](_0x9a67c7(this['_cursorInfo$']['subscribe'](()=>{_0x1e39ad();})));}[_0x279361(0x20f)](){const _0x38d3d3=_0x279361;var _0x4ec26a,_0x4ca6b2;if(this['_online']=!0x0,((_0x4ec26a=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4ec26a[_0x38d3d3(0x228)]())!==this[_0x38d3d3(0x2ea)])return;const _0x1a7ce4=(_0x4ca6b2=this[_0x38d3d3(0x31b)][_0x38d3d3(0x225)](_0x3c434f)[_0x38d3d3(0x2a8)]())==null?void 0x0:_0x4ca6b2[0x0],_0x43d977=this['_univerInstanceService'][_0x38d3d3(0x18c)](_0x3d4c4a[_0x38d3d3(0x26c)])[_0x38d3d3(0x363)]();_0x1a7ce4&&_0x43d977&&this[_0x38d3d3(0x1d7)](_0x43d977[_0x38d3d3(0x13e)](),_0x1a7ce4);}[_0x279361(0x359)](){this['_online']=!0x1;}};ye=Bi([F(0x2,_0x349554(_0x543124)),F(0x3,_0x349554(Ge)),F(0x4,_0x349554(_0x4ac7a2)),F(0x5,_0x56b693),F(0x6,_0x28d9e9),F(0x7,_0x349554(_0x4336d8))],ye);var Yi=Object[_0x279361(0x1ec)],Wi=(_0xac01ba,_0x362c96,_0x371d6e,_0x28b79b)=>{const _0x15147d=_0x279361;for(var _0x3582f5=_0x28b79b>0x1?void 0x0:_0x28b79b?Yi(_0x362c96,_0x371d6e):_0x362c96,_0x48d402=_0xac01ba[_0x15147d(0x35e)]-0x1,_0x136270;_0x48d402>=0x0;_0x48d402--)(_0x136270=_0xac01ba[_0x48d402])&&(_0x3582f5=_0x136270(_0x3582f5)||_0x3582f5);return _0x3582f5;},pe=(_0x133e75,_0x235896)=>(_0x2bedaf,_0xcce4b3)=>_0x235896(_0x2bedaf,_0xcce4b3,_0x133e75);let Y=class extends _0x46d041{constructor(_0x5cd5cb,_0xe40ed1,_0x434953){const _0x3e0c88=_0x279361;super(),_(this,_0x3e0c88(0x171),new Map()),_(this,_0x3e0c88(0x241),new _0x57abac()),(this[_0x3e0c88(0x276)]=_0x5cd5cb,this[_0x3e0c88(0x31b)]=_0xe40ed1,this['_collabSessionService']=_0x434953,this[_0x3e0c88(0x275)]());}[_0x279361(0x1e2)](){const _0x59c713=_0x279361;super[_0x59c713(0x1e2)](),this[_0x59c713(0x241)][_0x59c713(0x262)](),this['_entities'][_0x59c713(0x1a6)](_0x557d7b=>_0x557d7b[_0x59c713(0x1e2)]());}[_0x279361(0x139)](_0x40016b){const _0x176da8=_0x279361;return this['_entities'][_0x176da8(0x30e)](_0x40016b)?this[_0x176da8(0x171)][_0x176da8(0x225)](_0x40016b)[_0x176da8(0x1be)]:this[_0x176da8(0x241)]['pipe'](_0x5eca73(_0x586d2a=>_0x586d2a[_0x176da8(0x2ea)]===_0x40016b),_0x336798(_0x45001d=>_0x45001d[_0x176da8(0x1be)]));}[_0x279361(0x275)](){const _0xa7876c=_0x279361;this[_0xa7876c(0x276)][_0xa7876c(0x18d)](_0x3d4c4a[_0xa7876c(0x26c)])[_0xa7876c(0x34d)](_0x1f12e2(this[_0xa7876c(0x337)]))[_0xa7876c(0x1f6)](async _0x478cec=>{const _0x5947ab=_0xa7876c,_0x446027=_0x478cec[_0x5947ab(0x228)](),_0x34fe57=await this[_0x5947ab(0x1eb)](_0x446027);this['_entityInit$']['next'](_0x34fe57),this['_entities']['set'](_0x446027,_0x34fe57);}),this[_0xa7876c(0x276)]['getTypeOfUnitAdded$'](_0x3d4c4a['UNIVER_DOC'])[_0xa7876c(0x34d)](_0x1f12e2(this['dispose$']))[_0xa7876c(0x34d)](_0x5eca73(_0x53e27e=>!_0x53e27e[_0xa7876c(0x228)]()[_0xa7876c(0x24e)]('__')))[_0xa7876c(0x1f6)](async _0x481df5=>{const _0x3952a7=_0xa7876c,_0x442b56=_0x481df5['getUnitId'](),_0x544438=await this[_0x3952a7(0x2dc)](_0x442b56);this[_0x3952a7(0x241)][_0x3952a7(0x1e4)](_0x544438),this[_0x3952a7(0x171)][_0x3952a7(0x357)](_0x442b56,_0x544438);}),_0x27a14c(this[_0xa7876c(0x276)]['getTypeOfUnitDisposed$'](_0x3d4c4a[_0xa7876c(0x14b)]),this[_0xa7876c(0x276)][_0xa7876c(0x17b)](_0x3d4c4a[_0xa7876c(0x26c)]))['pipe'](_0x1f12e2(this[_0xa7876c(0x337)]))[_0xa7876c(0x1f6)](_0x2eb0fd=>{const _0x3a9879=_0xa7876c,_0x1ca3e5=_0x2eb0fd['getUnitId'](),_0x1908e5=this[_0x3a9879(0x171)][_0x3a9879(0x225)](_0x1ca3e5);_0x1908e5&&(_0x1908e5[_0x3a9879(0x1e2)](),this[_0x3a9879(0x171)][_0x3a9879(0x250)](_0x1ca3e5));});}async['_startSheetCollabCursor'](_0x12473a){const _0x1ed677=_0x279361,_0x5ebe52=await this['_collabSessionService'][_0x1ed677(0x156)](_0x12473a),_0x19db77=this['_injector'][_0x1ed677(0x1f5)](ye,_0x12473a,_0x5ebe52);return _0x19db77[_0x1ed677(0x35a)](),_0x19db77;}async[_0x279361(0x2dc)](_0x7a971b){const _0x2bffc5=_0x279361,_0x2a7e01=await this[_0x2bffc5(0x293)]['requireSession'](_0x7a971b),_0x31d8f3=this[_0x2bffc5(0x31b)]['createInstance'](we,_0x7a971b,_0x2a7e01);return _0x31d8f3[_0x2bffc5(0x35a)](),_0x31d8f3;}};Y=Wi([pe(0x0,_0x56b693),pe(0x1,_0x349554(_0x543124)),pe(0x2,_0x349554(_0xe3b745))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x546da8,_0x512132){const _0x38da78=_0x279361;let {radius:_0x169d94,width:_0x3fa090,height:_0x18b373}=_0x512132;_0x169d94=_0x169d94!=null?_0x169d94:0x0,_0x3fa090=_0x3fa090!=null?_0x3fa090:0x1e,_0x18b373=_0x18b373!=null?_0x18b373:0x1e;let _0x3a1b05=0x0,_0xd05e01=0x0,_0x37a8ee=0x0;_0x3a1b05=_0xd05e01=_0x37a8ee=Math[_0x38da78(0x237)](_0x169d94,_0x3fa090/0x2,_0x18b373/0x2),_0x546da8[_0x38da78(0x36a)](),_0x546da8[_0x38da78(0x2b8)](_0x3a1b05,0x0),_0x546da8[_0x38da78(0x369)](_0x3fa090-_0xd05e01,0x0),_0x546da8['arc'](_0x3fa090-_0xd05e01,_0xd05e01,_0xd05e01,Math['PI']*0x3/0x2,0x0,!0x1),_0x546da8['lineTo'](_0x3fa090,_0x18b373-_0x37a8ee),_0x546da8[_0x38da78(0x389)](_0x3fa090-_0x37a8ee,_0x18b373-_0x37a8ee,_0x37a8ee,0x0,Math['PI']/0x2,!0x1),_0x546da8[_0x38da78(0x369)](0x0,_0x18b373),_0x546da8[_0x38da78(0x369)](0x0,_0x3a1b05),_0x546da8[_0x38da78(0x389)](_0x3a1b05,_0x3a1b05,_0x3a1b05,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x546da8[_0x38da78(0x177)](),_0x512132[_0x38da78(0x308)]&&(_0x546da8[_0x38da78(0x301)](),_0x546da8['fillStyle']=_0x512132[_0x38da78(0x308)],_0x512132[_0x38da78(0x26d)]===_0x38da78(0x251)?_0x546da8[_0x38da78(0x308)](_0x38da78(0x251)):_0x546da8[_0x38da78(0x308)](),_0x546da8[_0x38da78(0x30f)]());}class Ie extends _0x8d0ab{constructor(_0x474bc6,_0x22d745){const _0x5a44ce=_0x279361;super(_0x474bc6,_0x22d745),_(this,_0x5a44ce(0x314)),_(this,_0x5a44ce(0x20e)),(this[_0x5a44ce(0x314)]=_0x22d745==null?void 0x0:_0x22d745['color'],this[_0x5a44ce(0x20e)]=_0x22d745==null?void 0x0:_0x22d745['text']);}static[_0x279361(0x2cf)](_0x3de8f7,_0x5f2b0d){const _0x517183=_0x279361,{text:_0x5ae77a,color:_0xec66f2}=_0x5f2b0d;_0x3de8f7[_0x517183(0x301)](),_0x3de8f7[_0x517183(0x379)]=_0x517183(0x25a);const _0x39fc57=_0x3de8f7[_0x517183(0x13f)](_0x5ae77a)[_0x517183(0x29a)],_0x5469ae=Math[_0x517183(0x237)](_0x39fc57+0x2*Oe,rt);ji(_0x3de8f7,{'height':q,'radius':0x4,'width':_0x5469ae,'fill':_0xec66f2}),_0x3de8f7[_0x517183(0x364)]=_0x517183(0x1d6);const _0x1ea05f=Oe,_0x5d6318=q-Vi,_0x381f8f=rt-0x2*Oe;if(_0x39fc57>_0x381f8f){let _0x1633a8='',_0x542b68=0x0;for(const _0x8f9db7 of _0x5ae77a){const _0x3f757d=_0x3de8f7[_0x517183(0x13f)](_0x8f9db7)[_0x517183(0x29a)];if(_0x542b68+_0x3f757d<=_0x381f8f-_0x3de8f7[_0x517183(0x13f)](_0x517183(0x332))[_0x517183(0x29a)])_0x1633a8+=_0x8f9db7,_0x542b68+=_0x3f757d;else{_0x1633a8+=_0x517183(0x332);break;}}_0x3de8f7['fillText'](_0x1633a8,_0x1ea05f,_0x5d6318);}else _0x3de8f7[_0x517183(0x190)](_0x5ae77a,_0x1ea05f,_0x5d6318);_0x3de8f7[_0x517183(0x30f)]();}[_0x279361(0x200)](_0x53ac51){const _0x1e9c2b=_0x279361;Ie[_0x1e9c2b(0x2cf)](_0x53ac51,this);}}const Te=_0x279361(0x1fd),Xi=_0x279361(0x36d),Gi=_0x279361(0x212),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x279361(0x300);class ot{constructor(_0x9a147c,_0x1fda1d,_0x300fe3,_0x4b8902){const _0xe50168=_0x279361;_(this,_0xe50168(0x23f),[]),_(this,_0xe50168(0x289),null),_(this,_0xe50168(0x159),null),_(this,'_anchorDot',null),_(this,_0xe50168(0x185),null),_(this,_0xe50168(0x2a7),null),(this[_0xe50168(0x226)]=_0x9a147c,this[_0xe50168(0x220)]=_0x1fda1d,this[_0xe50168(0x33f)]=_0x300fe3,this[_0xe50168(0x144)]=_0x4b8902,this[_0xe50168(0x230)]());}set['_hover'](_0x3d1c10){const _0x15ff21=_0x279361;_0x3d1c10?(this['_anchorDot']&&this[_0x15ff21(0x2d6)][_0x15ff21(0x360)](),this[_0x15ff21(0x159)]&&this['_textBubble'][_0x15ff21(0x1b4)]()):(this['_anchorDot']&&this[_0x15ff21(0x2d6)][_0x15ff21(0x1b4)](),this[_0x15ff21(0x159)]&&this[_0x15ff21(0x159)][_0x15ff21(0x360)]());}['dispose'](){const _0x349b1c=_0x279361;for(const _0x2bf0cb of this[_0x349b1c(0x23f)])_0x2bf0cb[_0x349b1c(0x1e2)]();this['_textBubble']&&this[_0x349b1c(0x159)][_0x349b1c(0x1e2)](),this['_anchorDot']&&this[_0x349b1c(0x2d6)][_0x349b1c(0x1e2)](),this[_0x349b1c(0x289)]&&this['_anchor'][_0x349b1c(0x1e2)](),this[_0x349b1c(0x2a7)]&&this['_eventUnsubscribe']();}[_0x279361(0x230)](){const _0x586fd4=_0x279361;var _0x582218;const {_docSkeleton:_0x1712c6,_document:_0xccb3da}=this,{color:_0x34975e,name:_0x3af834,ranges:_0x53121d}=this[_0x586fd4(0x226)],_0x46c69c=_0xccb3da['getOffsetConfig'](),{docsLeft:_0x8ac9fe,docsTop:_0xbe53ed}=_0x46c69c,_0xb07d33=new _0x11eb33(_0x46c69c,_0x1712c6);for(const {startOffset:_0x1623f6,endOffset:_0x46654a,rangeType:_0x40f6b1,segmentId:_0x9035a8,segmentPage:_0x3a2c03,collapsed:_0x40f867,isActive:_0xd268c5}of _0x53121d){const _0x4a3869=_0x1712c6['findNodePositionByCharIndex'](_0x1623f6,!0x0,_0x9035a8,_0x3a2c03);let _0x3b02c7=_0x1712c6[_0x586fd4(0x256)](_0x46654a,!0x0,_0x9035a8,_0x3a2c03);if(_0x3b02c7==null&&(_0x3b02c7=_0x1712c6[_0x586fd4(0x256)](_0x46654a-0x1,!0x1,_0x9035a8,_0x3a2c03)),_0xd268c5){const {contentBoxPointGroup:_0x7449a5}=_0xb07d33[_0x586fd4(0x306)](_0x3b02c7,_0x3b02c7);if(_0x7449a5['length']===0x0)continue;this['_drawAnchor'](_0x34975e,_0x7449a5,_0x8ac9fe,_0xbe53ed,_0x3af834),this['_eventUnsubscribe']=this[_0x586fd4(0x375)]();}if(_0x4a3869&&_0x3b02c7){if(_0x40f6b1===_0x57a80d[_0x586fd4(0x383)]){const _0x4be36a=new _0x1d33b0(_0x46c69c,_0x1712c6),{pointGroup:_0x2a09ed}=(_0x582218=_0x4be36a[_0x586fd4(0x306)](_0x4a3869,_0x3b02c7))!=null?_0x582218:{};if(_0x2a09ed==null||_0x2a09ed[_0x586fd4(0x35e)]===0x0)continue;this[_0x586fd4(0x1fe)](_0x34975e,_0x2a09ed,_0x8ac9fe,_0xbe53ed);}else{if(!_0x40f867){const {borderBoxPointGroup:_0x40dbfc}=_0xb07d33[_0x586fd4(0x306)](_0x4a3869,_0x3b02c7);if(_0x40dbfc[_0x586fd4(0x35e)]===0x0)continue;this[_0x586fd4(0x22a)](_0x34975e,_0x40dbfc,_0x8ac9fe,_0xbe53ed);}}}}}[_0x279361(0x367)](_0x4fa935,_0x3dc697,_0x253cf7,_0xbc2f79,_0x523e2d){const _0x92623f=_0x279361,_0x3392fe=this[_0x92623f(0x19d)](_0x3dc697),{left:_0x4b75bd,top:_0x405d22,height:_0x2ed5b8}=_0x3392fe,_0x547ff7=this[_0x92623f(0x203)](),_0x334465=zi/_0x547ff7,_0x23fdbe=new _0x5beebc(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79,'height':_0x2ed5b8,'width':Ki,'fill':_0x4fa935||_0x3775c8(_0x42b207[_0x92623f(0x1a3)],0x0),'strokeWidth':_0x334465,'stroke':Ji,'evented':!0x0});this[_0x92623f(0x289)]=_0x23fdbe,this[_0x92623f(0x220)][_0x92623f(0x174)](_0x23fdbe,_0x260d0d);const _0x18d722=new _0x5beebc(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x4fa935||_0x3775c8(_0x42b207['black'],0x0),'strokeWidth':0x0,'stroke':_0x4fa935||_0x3775c8(_0x42b207[_0x92623f(0x1a3)],0x0),'evented':!0x1});this['_anchorDot']=_0x18d722,this[_0x92623f(0x220)]['addObject'](_0x18d722,_0x260d0d);const _0x187977=new Ie(Te+_0x1667d1(J),{'left':_0x4b75bd+_0x253cf7-_0x334465,'top':_0x405d22+_0xbc2f79-q,'text':_0x523e2d,'color':_0x4fa935});this[_0x92623f(0x159)]=_0x187977,this['_scene']['addObject'](_0x187977,_0x260d0d),this[_0x92623f(0x340)]=!0x1;}['_handleHover'](){const _0x210f87=_0x279361,_0x1ff205=this[_0x210f87(0x289)][_0x210f87(0x161)]['subscribeEvent'](()=>{const _0x365000=_0x210f87;this[_0x365000(0x340)]=!0x0;}),_0x52e6ad=this['_anchor'][_0x210f87(0x29c)]['subscribeEvent'](()=>{const _0x190160=_0x210f87;this['_hideTimer']&&clearTimeout(this[_0x190160(0x185)]),this[_0x190160(0x185)]=setTimeout(()=>{const _0xf8c0a8=_0x190160;this[_0xf8c0a8(0x340)]=!0x1;},0x7d0);});return()=>{const _0x128bb1=_0x210f87;_0x1ff205[_0x128bb1(0x1e9)](),_0x52e6ad[_0x128bb1(0x1e9)]();};}['_drawTextRange'](_0x25e715,_0x4cf9cd,_0x4b9c66,_0x5ddc33){const _0x24163a=_0x279361,_0x302dca=new _0x17b25c(_0x25e715)[_0x24163a(0x152)](0.2)[_0x24163a(0x2f7)](),_0x4e5025=new _0x1ec3a4(Xi+_0x1667d1(J),{'pointsGroup':_0x4cf9cd,'fill':_0x302dca||_0x3775c8(_0x42b207[_0x24163a(0x1a3)],0.2),'left':_0x4b9c66,'top':_0x5ddc33,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x24163a(0x246)](_0x4e5025),this[_0x24163a(0x220)][_0x24163a(0x174)](_0x4e5025,_0x260d0d);}[_0x279361(0x1fe)](_0x1c27b0,_0x267ce5,_0x368658,_0x57ee38){const _0x91ec3d=_0x279361,_0x1b5b12=new _0x17b25c(_0x1c27b0)[_0x91ec3d(0x152)](0.2)['toRgbString'](),_0x1124cd=new _0x1ec3a4(Gi+_0x1667d1(J),{'pointsGroup':_0x267ce5,'fill':_0x1b5b12||_0x3775c8(_0x42b207['black'],0.2),'left':_0x368658,'top':_0x57ee38,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1124cd),this[_0x91ec3d(0x220)][_0x91ec3d(0x174)](_0x1124cd,_0x260d0d);}[_0x279361(0x19d)](_0xcd8ca7){const _0x4f12ac=_0xcd8ca7[0x0],_0x373241=_0x4f12ac[0x0],_0x469f16=_0x4f12ac[0x2],{x:_0x50b0a6,y:_0x52d524}=_0x373241,{x:_0x180fb9,y:_0x44f73f}=_0x469f16;return{'left':_0x50b0a6,'top':_0x52d524,'width':_0x180fb9-_0x50b0a6,'height':_0x44f73f-_0x52d524};}[_0x279361(0x203)](){const _0x4599b0=_0x279361,{scaleX:_0x39c574,scaleY:_0x4451bd}=this[_0x4599b0(0x220)][_0x4599b0(0x1c0)]();return Math[_0x4599b0(0x2d7)](_0x39c574,_0x4451bd);}}var Zi=Object[_0x279361(0x1ec)],Qi=(_0x581e3a,_0x257702,_0x439cd5,_0x4c5665)=>{const _0x2c2186=_0x279361;for(var _0x2f3547=_0x4c5665>0x1?void 0x0:_0x4c5665?Zi(_0x257702,_0x439cd5):_0x257702,_0x4699aa=_0x581e3a[_0x2c2186(0x35e)]-0x1,_0x2aee93;_0x4699aa>=0x0;_0x4699aa--)(_0x2aee93=_0x581e3a[_0x4699aa])&&(_0x2f3547=_0x2aee93(_0x2f3547)||_0x2f3547);return _0x2f3547;},ne=(_0x265bbf,_0x35fd9c)=>(_0x5d1d3d,_0x52f2a4)=>_0x35fd9c(_0x5d1d3d,_0x52f2a4,_0x265bbf);let $e=class extends _0x46d041{constructor(_0x43be05,_0x343e40,_0x56977c,_0x4ea8ac,_0x5c7f19){const _0x103db3=_0x279361;super(),_(this,_0x103db3(0x17c),[]),_(this,'_cursors',[]),(this[_0x103db3(0x2f3)]=_0x43be05,this[_0x103db3(0x16e)]=_0x343e40,this[_0x103db3(0x1b1)]=_0x56977c,this[_0x103db3(0x232)]=_0x4ea8ac,this['_themeService']=_0x5c7f19,this[_0x103db3(0x275)]());}[_0x279361(0x275)](){const _0x254c5d=_0x279361,_0x18fe2b=this[_0x254c5d(0x2f3)][_0x254c5d(0x140)],_0x42dde4=this[_0x254c5d(0x16e)];this[_0x254c5d(0x285)](_0x4310f5([this[_0x254c5d(0x1b1)][_0x254c5d(0x139)](_0x18fe2b),this[_0x254c5d(0x21f)]['currentTheme$']])[_0x254c5d(0x34d)](_0x457ae1(([_0x4cac3c,_0x4ed542])=>({'skeleton':_0x42dde4[_0x254c5d(0x1f1)](),'cursors':[..._0x4cac3c[_0x254c5d(0x244)]()][_0x254c5d(0x30c)](_0x6609f3=>({..._0x6609f3,'color':this[_0x254c5d(0x21f)][_0x254c5d(0x32e)](_0x6609f3[_0x254c5d(0x314)])}))})))[_0x254c5d(0x1f6)](_0x391e63=>{const _0x2f2c56=_0x254c5d;if(this[_0x2f2c56(0x31c)](),_0x391e63){const {skeleton:_0x34da4f,cursors:_0x10c3b8}=_0x391e63;this['_updateCollabCursors'](_0x34da4f,_0x10c3b8);}})),this['_initResize'](),this[_0x254c5d(0x34f)]();}[_0x279361(0x179)](_0x19844f,_0x2efa4b){const _0x52bf8f=_0x279361,{scene:_0x183707,mainComponent:_0x27bea0}=this[_0x52bf8f(0x2f3)],_0x24e2f7=_0x2efa4b[_0x52bf8f(0x16a)](_0x1b4074=>new ot(_0x1b4074,_0x183707,_0x19844f,_0x27bea0));this[_0x52bf8f(0x17c)]=_0x24e2f7,this['_cursors']=_0x2efa4b;}[_0x279361(0x198)](){const _0x4be296=_0x279361;this[_0x4be296(0x31c)]();const {scene:_0x4e9b50,mainComponent:_0x3534b7}=this[_0x4be296(0x2f3)],_0xb329c5=this[_0x4be296(0x16e)][_0x4be296(0x1f1)](),_0x5bf543=this[_0x4be296(0x233)][_0x4be296(0x16a)](_0x149444=>new ot(_0x149444,_0x4e9b50,_0xb329c5,_0x3534b7));this['_cursorShapes']=_0x5bf543;}[_0x279361(0x31c)](){const _0x58c807=_0x279361;this['_cursorShapes'][_0x58c807(0x1a6)](_0x2c296d=>_0x2c296d['dispose']()),this[_0x58c807(0x17c)]=[];}[_0x279361(0x34f)](){const _0x3fb483=_0x279361,_0x1e0f71=[_0x1d8eb6['id']];this[_0x3fb483(0x285)](this[_0x3fb483(0x232)]['onCommandExecuted'](_0x525513=>{const _0x2772cc=_0x3fb483;_0x1e0f71['includes'](_0x525513['id'])&&_0x525513['params'][_0x2772cc(0x140)]===this[_0x2772cc(0x2f3)][_0x2772cc(0x140)]&&this[_0x2772cc(0x198)]();}));}[_0x279361(0x207)](){const _0x22b7a8=_0x279361;this['disposeWithMe'](_0x470ace(this[_0x22b7a8(0x2f3)]['engine'][_0x22b7a8(0x268)])[_0x22b7a8(0x34d)](_0x142e74(_0x34cb34=>_0x34cb34['type']===_0x167676['resize']),_0x449b52(0x10))[_0x22b7a8(0x1f6)](()=>{const _0x299dee=_0x22b7a8;this[_0x299dee(0x198)]();}));}};$e=Qi([ne(0x1,_0x349554(_0x40e4ab)),ne(0x2,_0x349554(Y)),ne(0x3,_0x28d9e9),ne(0x4,_0x349554(_0x5bf8fa))],$e);const qi=0x1,en=1.5;class tn extends _0x8d0ab{constructor(_0x49e97c,_0x3fdff9){const _0x42b6b6=_0x279361;super(_0x49e97c,_0x3fdff9),_(this,_0x42b6b6(0x370)),_(this,_0x42b6b6(0x1d1),!0x1),_(this,_0x42b6b6(0x2d9)),_(this,_0x42b6b6(0x215),''),_(this,'_labelPosition',_0x42b6b6(0x35c)),_(this,_0x42b6b6(0x182)),(_0x3fdff9&&this[_0x42b6b6(0x280)](_0x3fdff9),this[_0x42b6b6(0x161)][_0x42b6b6(0x2b4)](()=>this[_0x42b6b6(0x280)]({'hovered':!0x0})),this[_0x42b6b6(0x29c)][_0x42b6b6(0x2b4)](()=>this[_0x42b6b6(0x280)]({'hovered':!0x1})));}[_0x279361(0x280)](_0x53f93c){const _0x21422c=_0x279361;var _0x1a5b15,_0x1c9c83,_0x5b3932,_0x549b5e,_0x2abfd7,_0x4641e6;this[_0x21422c(0x370)]=(_0x1a5b15=_0x53f93c['color'])!=null?_0x1a5b15:this[_0x21422c(0x370)],this['_hovered']=(_0x1c9c83=_0x53f93c[_0x21422c(0x2a4)])!=null?_0x1c9c83:this['_hovered'],this['_range']=(_0x5b3932=_0x53f93c[_0x21422c(0x2be)])!=null?_0x5b3932:this[_0x21422c(0x2d9)],this['_name']=(_0x549b5e=_0x53f93c['name'])!=null?_0x549b5e:this[_0x21422c(0x215)],this[_0x21422c(0x1f8)]=(_0x2abfd7=_0x53f93c['labelPosition'])!=null?_0x2abfd7:this[_0x21422c(0x1f8)],this[_0x21422c(0x182)]=(_0x4641e6=_0x53f93c[_0x21422c(0x197)])!=null?_0x4641e6:this[_0x21422c(0x182)],this[_0x21422c(0x25e)]({'width':_0x53f93c[_0x21422c(0x29a)],'height':_0x53f93c['height']});}[_0x279361(0x33a)](_0x1cdc26){const _0x31417e=_0x279361,{row:_0x5e9b16,column:_0x5066eb}=_0x1cdc26;if(_0x5e9b16>=this[_0x31417e(0x2d9)][_0x31417e(0x310)]&&_0x5e9b16<=this['_range']['endRow']&&_0x5066eb>=this[_0x31417e(0x2d9)][_0x31417e(0x353)]&&_0x5066eb<=this[_0x31417e(0x2d9)][_0x31417e(0x27c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x31417e(0x280)]({'hovered':!0x1});}['triggerDblclick'](_0x3c39dd){return!0x1;}['_draw'](_0x3159b8){const _0x4f9f15=_0x279361;_0x5beebc['drawWith'](_0x3159b8,{'width':this[_0x4f9f15(0x29a)],'height':this[_0x4f9f15(0x2df)],'strokeWidth':en,'stroke':this[_0x4f9f15(0x370)],'evented':!0x1,'fill':this[_0x4f9f15(0x182)]}),this[_0x4f9f15(0x1d1)]&&(_0x3159b8[_0x4f9f15(0x301)](),_0x3159b8[_0x4f9f15(0x320)](0x1,0x0,0x0,0x1,this['width'],this[_0x4f9f15(0x1f8)]===_0x4f9f15(0x1ee)?0x0:-q),Ie[_0x4f9f15(0x2cf)](_0x3159b8,{'text':this[_0x4f9f15(0x215)],'color':this[_0x4f9f15(0x370)]}),_0x3159b8[_0x4f9f15(0x30f)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x122e3c,_0x178c8c,_0x51eee5,_0x5ce12c)=>{const _0x43c4a5=_0x279361;for(var _0x33e7e7=_0x5ce12c>0x1?void 0x0:_0x5ce12c?sn(_0x178c8c,_0x51eee5):_0x178c8c,_0x47e9c1=_0x122e3c[_0x43c4a5(0x35e)]-0x1,_0x507bd5;_0x47e9c1>=0x0;_0x47e9c1--)(_0x507bd5=_0x122e3c[_0x47e9c1])&&(_0x33e7e7=_0x507bd5(_0x33e7e7)||_0x33e7e7);return _0x33e7e7;},Re=(_0x52091f,_0x499f51)=>(_0x7d1545,_0xd7c10f)=>_0x499f51(_0x7d1545,_0xd7c10f,_0x52091f);const rn=0x1389;let xe=class extends _0x46d041{constructor(_0x31f7df,_0x50575e,_0xdbce14,_0xba7fca){const _0x2c643f=_0x279361;super(),_(this,_0x2c643f(0x233),new Set()),_(this,_0x2c643f(0x2e0),null),(this[_0x2c643f(0x2f3)]=_0x31f7df,this[_0x2c643f(0x1e8)]=_0x50575e,this[_0x2c643f(0x1b1)]=_0xdbce14,this[_0x2c643f(0x21f)]=_0xba7fca,this[_0x2c643f(0x275)]());}[_0x279361(0x275)](){const _0x4b9e7=_0x279361;this[_0x4b9e7(0x1e8)]['currentSkeleton$'][_0x4b9e7(0x34d)](_0xc3d5cb(this[_0x4b9e7(0x337)]),_0x1e056c(_0x348a16=>{const _0x11d0f8=_0x4b9e7;if(_0x348a16){const _0x1d5805=_0x348a16['sheetId'];return _0x4310f5(this[_0x11d0f8(0x1b1)][_0x11d0f8(0x139)](this[_0x11d0f8(0x2f3)][_0x11d0f8(0x140)]),this[_0x11d0f8(0x21f)][_0x11d0f8(0x13a)])[_0x11d0f8(0x34d)](_0x457ae1(([_0x2449e6,_0x2d3040])=>{const _0x4164bd=_0x11d0f8,_0x2876da=new Map();return _0x2449e6[_0x4164bd(0x1a6)]((_0x465787,_0xaf0b3a)=>{const _0x582a2b=_0x4164bd;if(_0x465787[_0x582a2b(0x1fa)]===_0x1d5805){const _0x5a859a={..._0x465787};_0x5a859a[_0x582a2b(0x314)]=this['_themeService'][_0x582a2b(0x32e)](_0x465787[_0x582a2b(0x314)]),_0x2876da[_0x582a2b(0x357)](_0xaf0b3a,_0x5a859a);}}),{'skeleton':_0x348a16,'cursors':_0x2876da};}));}return _0x472e19({'skeleton':null,'cursors':new Map()});}))[_0x4b9e7(0x1f6)](({skeleton:_0x4f0464,cursors:_0x42a903})=>{const _0x4ccc40=_0x4b9e7;this[_0x4ccc40(0x31c)](),_0x4f0464&&this[_0x4ccc40(0x179)](_0x4f0464,_0x42a903);}),this[_0x4b9e7(0x1e8)][_0x4b9e7(0x284)][_0x4b9e7(0x1f6)](_0x467757=>{const _0x23be3b=_0x4b9e7;if(_0x467757==null)return;const {skeleton:_0x3a633a}=_0x467757,{scene:_0x189174}=this['_context'];_0x189174[_0x23be3b(0x14f)][_0x23be3b(0x2b4)](_0x22d40a(_0x2cd578=>{const _0x29dcba=_0x23be3b;var _0x180057,_0x48172b;const {offsetX:_0x20c091,offsetY:_0x548b7f}=_0x2cd578,{x:_0xf8efe6,y:_0xa59f88}=_0x189174[_0x29dcba(0x283)](_0x5abf10[_0x29dcba(0x2aa)]([_0x20c091,_0x548b7f])),{scaleX:_0x529553,scaleY:_0x50ccb7}=_0x189174['getAncestorScale'](),_0x1a0cb8=_0x189174[_0x29dcba(0x1cd)](_0x42cb58[_0x29dcba(0x19b)]),_0x2fb264=_0x189174[_0x29dcba(0x149)](_0x5abf10[_0x29dcba(0x2aa)]([_0xf8efe6,_0xa59f88]),_0x1a0cb8),_0x269d68=_0x3a633a[_0x29dcba(0x34c)](_0x20c091,_0x548b7f,_0x529553,_0x50ccb7,_0x2fb264);((_0x180057=this['_lastPointer'])==null?void 0x0:_0x180057['column'])===_0x269d68[_0x29dcba(0x365)]&&((_0x48172b=this[_0x29dcba(0x2e0)])==null?void 0x0:_0x48172b[_0x29dcba(0x2cb)])===_0x269d68['row']||this[_0x29dcba(0x233)][_0x29dcba(0x1a6)](_0x362162=>{_0x362162['onMouseMove'](_0x269d68);});},0x64));});}[_0x279361(0x179)](_0x4b9ec0,_0x453041){const _0x9e64bc=_0x279361;var _0x30bc68;const _0x3361b3=(_0x30bc68=this[_0x9e64bc(0x1e8)][_0x9e64bc(0x342)]())==null?void 0x0:_0x30bc68['skeleton'];if(!_0x3361b3)return;const _0x15ffcf=this[_0x9e64bc(0x147)]();if(!_0x15ffcf)return;this[_0x9e64bc(0x233)][_0x9e64bc(0x1a6)](_0x20eaf1=>{const _0x4ca479=_0x9e64bc;_0x20eaf1[_0x4ca479(0x1ca)]();});const {scene:_0x4c15a5}=_0x15ffcf,_0x584029=on(Array[_0x9e64bc(0x23a)](_0x453041[_0x9e64bc(0x244)]()))[_0x9e64bc(0x16a)](_0x164d0c=>{const _0x48ce9a=_0x9e64bc,{color:_0x308eff,range:_0x401cc0,name:_0x2e5043,selection:_0x2fea85,sheetID:_0x36e7aa}=_0x164d0c,{startColumn:_0x43762f,startRow:_0x206556,endColumn:_0x2e3802,endRow:_0x159fce}=_0x401cc0,_0x33734d=_0xdccc3d(_0x206556,_0x43762f,_0x4c15a5,_0x3361b3),_0x317cad=_0xdccc3d(_0x159fce,_0x2e3802,_0x4c15a5,_0x3361b3),{columnHeaderHeightAndMarginTop:_0x4836a6}=_0x3361b3,{startX:_0x352dc1,startY:_0x2f3116}=_0x33734d,{endX:_0x589c5e,endY:_0x463dba}=_0x317cad,_0x522054=_0x589c5e-_0x352dc1,_0x54af75=_0x463dba-_0x2f3116,_0x2e9df6={'labelPosition':_0x2f3116-_0x4836a6>=q?_0x48ce9a(0x35c):_0x48ce9a(0x1ee),'sheetID':_0x36e7aa,'range':_0x401cc0,'color':_0x308eff,'name':_0x2e5043,'selection':_0x2fea85,'left':_0x352dc1,'top':_0x2f3116,'width':_0x522054,'height':_0x54af75,'evented':!0x1,'zIndex':rn};return new tn(_0x2e5043,_0x2e9df6);});_0x4c15a5[_0x9e64bc(0x15a)](_0x584029,qi),this[_0x9e64bc(0x233)]=new Set(_0x584029);}['_removeCollabCursors'](){const _0x5f3b82=_0x279361;var _0x426d49;(_0x426d49=this['_cursors'])==null||_0x426d49[_0x5f3b82(0x1a6)](_0x543678=>_0x543678['dispose']());}['_getSheetObject'](){const _0x557a0b=_0x279361;return _0x18a982(this['_context'][_0x557a0b(0x14d)],this[_0x557a0b(0x2f3)]);}};xe=nn([Re(0x1,_0x349554(_0x17a6cb)),Re(0x2,_0x349554(Y)),Re(0x3,_0x349554(_0x5bf8fa))],xe);function on(_0x549936){const _0x55133d=_0x279361,_0x548123=new Map();return _0x549936[_0x55133d(0x1a6)](_0x20832e=>{const _0x2ba3c2=_0x55133d;if(_0x548123[_0x2ba3c2(0x30e)](_0x20832e[_0x2ba3c2(0x201)])){const _0x3d82c6=_0x548123[_0x2ba3c2(0x225)](_0x20832e[_0x2ba3c2(0x201)]);_0x3d82c6[_0x2ba3c2(0x371)]+=',\x20'+_0x20832e[_0x2ba3c2(0x371)];}else _0x548123[_0x2ba3c2(0x357)](_0x20832e[_0x2ba3c2(0x201)],_0x20832e);}),Array[_0x55133d(0x23a)](_0x548123[_0x55133d(0x244)]());}var an=Object[_0x279361(0x1ec)],cn=(_0x431a81,_0x4339ef,_0x535b64,_0xe17581)=>{const _0x387661=_0x279361;for(var _0x151477=_0xe17581>0x1?void 0x0:_0xe17581?an(_0x4339ef,_0x535b64):_0x4339ef,_0x1b5562=_0x431a81[_0x387661(0x35e)]-0x1,_0x177619;_0x1b5562>=0x0;_0x1b5562--)(_0x177619=_0x431a81[_0x1b5562])&&(_0x151477=_0x177619(_0x151477)||_0x151477);return _0x151477;},k=(_0x513305,_0x33aad7)=>(_0x40621e,_0x20962f)=>_0x33aad7(_0x40621e,_0x20962f,_0x513305);let le=class extends _0x2972bb{constructor(_0x197e92,_0x9a219b,_0x19a38d,_0x23a949,_0x15e02c,_0x1943e4){const _0x18421e=_0x279361;super(),this[_0x18421e(0x2cc)]=_0x197e92,this[_0x18421e(0x150)]=_0x9a219b,this[_0x18421e(0x325)]=_0x19a38d,this[_0x18421e(0x386)]=_0x23a949,this[_0x18421e(0x277)]=_0x15e02c,this[_0x18421e(0x26f)]=_0x1943e4,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x279361(0x255)](){const _0x15fccd=_0x279361;this[_0x15fccd(0x285)](this[_0x15fccd(0x2cc)][_0x15fccd(0x27b)](()=>{const _0x24c55d=_0x15fccd;if(this[_0x24c55d(0x150)][_0x24c55d(0x33e)][_0x24c55d(0x1c4)])return this[_0x24c55d(0x26f)]['t'](_0x24c55d(0x1ac));}));}['_initEvent'](){const _0xa1ec3f=_0x279361;this['disposeWithMe'](this[_0xa1ec3f(0x325)][_0xa1ec3f(0x2d3)][_0xa1ec3f(0x1f6)](_0x54fba3=>{const _0x4483d8=_0xa1ec3f;_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x339)]&&this[_0x4483d8(0x386)]['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x269)]&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t'](_0x4483d8(0x2a2))}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x2bd)]&&this[_0x4483d8(0x277)][_0x4483d8(0x1b4)]({'title':this[_0x4483d8(0x26f)]['t']('permission.title'),'content':this['_localeService']['t'](_0x4483d8(0x30b)),'type':_0x4483d8(0x21b),'duration':0x0}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x302)]&&this[_0x4483d8(0x386)]['show']({'type':_0x41554e[_0x4483d8(0x1aa)],'content':this[_0x4483d8(0x26f)]['t']('collaboration.closeRoom')+'('+_0x54fba3['data']+')'}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x2e4)]&&this['_messageService']['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this['_localeService']['t'](_0x54fba3[_0x4483d8(0x28a)]||'')}),_0x54fba3['id']===_0x48a9b0['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x41554e[_0x4483d8(0x148)],'content':this[_0x4483d8(0x26f)]['t']('session.will-retry')}),_0x54fba3['id']===_0x48a9b0[_0x4483d8(0x27f)]&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e['Error'],'content':this[_0x4483d8(0x26f)]['t'](_0x4483d8(0x30a))}),_0x54fba3['id']===_0x48a9b0['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4483d8(0x386)][_0x4483d8(0x1b4)]({'type':_0x41554e[_0x4483d8(0x1aa)],'content':this[_0x4483d8(0x26f)]['t'](_0x4483d8(0x1bb))});}));}};le=cn([k(0x0,_0x310aab),k(0x1,_0x3b29b1),k(0x2,_0x349554(_0x5307c3)),k(0x3,_0x382ae3),k(0x4,_0x3a220c),k(0x5,_0x349554(_0x5852b4))],le);const ln=_0x279361(0x2fd),at={};var _n=Object[_0x279361(0x1ec)],hn=(_0x9bcb7a,_0x124b5a,_0x1c66e6,_0x11dcf7)=>{const _0x4c01bb=_0x279361;for(var _0x171b8e=_0x11dcf7>0x1?void 0x0:_0x11dcf7?_n(_0x124b5a,_0x1c66e6):_0x124b5a,_0x29c339=_0x9bcb7a[_0x4c01bb(0x35e)]-0x1,_0x388b17;_0x29c339>=0x0;_0x29c339--)(_0x388b17=_0x9bcb7a[_0x29c339])&&(_0x171b8e=_0x388b17(_0x171b8e)||_0x171b8e);return _0x171b8e;},ct=(_0x122508,_0x2974c9)=>(_0x3d6d8d,_0x4af94d)=>_0x2974c9(_0x3d6d8d,_0x4af94d,_0x122508);let _e=class{constructor(_0x1b305a,_0xc60ce0){const _0x4c538a=_0x279361;this['_transformService']=_0x1b305a,this[_0x4c538a(0x2e5)]=_0xc60ce0;}[_0x279361(0x1fb)](_0x14c433){const _0x20db52=_0x279361;this[_0x20db52(0x206)](_0x14c433),this['_transformPreviousActiveRange'](_0x14c433);}[_0x279361(0x1d2)](_0x53f9e8){const _0x24bdd0=_0x279361,{unitID:_0x5065ae}=_0x53f9e8,_0xd4e5a7=this['_renderManagerService']['getRenderById'](_0x5065ae)[_0x24bdd0(0x343)](_0x4f8931),{redoCache:_0x4d0007}=_0xd4e5a7[_0x24bdd0(0x2bf)]();if(_0x4d0007[_0x24bdd0(0x35e)]===0x0)return _0x53f9e8;let _0x1d81ef=_0x55b651[_0x24bdd0(0x17f)](_0x53f9e8[_0x24bdd0(0x344)][0x0]);for(let _0x3f3ff9=0x0;_0x3f3ff9<_0x4d0007[_0x24bdd0(0x35e)];_0x3f3ff9++){const _0x17aa92={'id':'doc.mutation.rich-text-editing','params':{..._0x4d0007[_0x3f3ff9]}},_0x381f27=this['_transformService'][_0x24bdd0(0x1bc)](_0x1d81ef,_0x17aa92,!0x1);if(_0x325207(_0x381f27))throw _0x381f27[_0x24bdd0(0x21b)];_0x1d81ef=_0x381f27['m1Prime'];}return{..._0x55b651['deepClone'](_0x53f9e8),'mutations':[_0x1d81ef]};}[_0x279361(0x206)](_0x5f3164){const _0xe929fc=_0x279361,{unitID:_0x74b68c}=_0x5f3164,_0x1d6281=this[_0xe929fc(0x2e5)][_0xe929fc(0x209)](_0x74b68c)['with'](_0x4f8931),{undoCache:_0x452ac0,redoCache:_0x1a4394}=_0x1d6281['getUndoRedoMutationParamsCache']();if(_0x452ac0[_0xe929fc(0x35e)]===0x0||_0x1a4394[_0xe929fc(0x35e)]===0x0)return;const _0x549275=[],_0x523fd8=[];let _0x37ed33=_0x55b651[_0xe929fc(0x17f)](_0x5f3164[_0xe929fc(0x344)][0x0]),_0xa86854=_0x55b651[_0xe929fc(0x17f)](_0x5f3164['mutations'][0x0]);for(let _0x586bf6=_0x452ac0['length']-0x1;_0x586bf6>=0x0;_0x586bf6--){const _0x512938={'id':_0xe929fc(0x2ab),'params':{..._0x452ac0[_0x586bf6]}},_0x496307={'id':_0xe929fc(0x2ab),'params':{..._0x1a4394[_0x586bf6]}},_0x19bc5f=this[_0xe929fc(0x192)]['transformMutation'](_0x37ed33,_0x512938,!0x1),_0x4859fd=this[_0xe929fc(0x192)][_0xe929fc(0x1bc)](_0xa86854,_0x496307,!0x1);if(_0x325207(_0x19bc5f))throw _0x19bc5f[_0xe929fc(0x21b)];if(_0x325207(_0x4859fd))throw _0x4859fd['error'];_0x549275['unshift'](_0x19bc5f['m2Prime'][_0xe929fc(0x141)]),_0x523fd8[_0xe929fc(0x373)](_0x4859fd['m2Prime'][_0xe929fc(0x141)]),_0x37ed33=_0x19bc5f[_0xe929fc(0x2d0)],_0xa86854=_0x4859fd[_0xe929fc(0x2d0)];}_0x1d6281[_0xe929fc(0x32a)]({'undoCache':_0x549275,'redoCache':_0x523fd8});}[_0x279361(0x36b)](_0x320c53){const _0x4608b2=_0x279361,{unitID:_0x3c02ee}=_0x320c53,_0x48bf71=this[_0x4608b2(0x2e5)][_0x4608b2(0x209)](_0x3c02ee)[_0x4608b2(0x343)](_0x4f8931),_0x2005b7=_0x48bf71[_0x4608b2(0x345)]();if(_0x2005b7==null)return;const _0x26636b=[{'id':_0x4608b2(0x2ab),'params':{'unitId':_0x320c53[_0x4608b2(0x2ea)],'actions':null,'textRanges':[_0x2005b7]}}],_0x96ecd9=this[_0x4608b2(0x192)][_0x4608b2(0x2eb)](_0x320c53,_0x26636b);if(!_0x1bca00(_0x96ecd9))throw _0x96ecd9[_0x4608b2(0x21b)];const _0x511523=_0x96ecd9[_0x4608b2(0x1b2)][0x0][_0x4608b2(0x141)][_0x4608b2(0x1d4)];Array[_0x4608b2(0x17d)](_0x511523)&&_0x511523[_0x4608b2(0x35e)]&&_0x48bf71[_0x4608b2(0x312)](_0x511523[0x0]);}};_e=hn([ct(0x0,_0x5aa3d9),ct(0x1,_0x3bda3f)],_e);var un=Object[_0x279361(0x1ec)],dn=(_0x15f3ad,_0x452269,_0x30593e,_0xe76fd)=>{const _0x3172c4=_0x279361;for(var _0x27564e=_0xe76fd>0x1?void 0x0:_0xe76fd?un(_0x452269,_0x30593e):_0x452269,_0x2c501b=_0x15f3ad[_0x3172c4(0x35e)]-0x1,_0x577102;_0x2c501b>=0x0;_0x2c501b--)(_0x577102=_0x15f3ad[_0x2c501b])&&(_0x27564e=_0x577102(_0x27564e)||_0x27564e);return _0x27564e;},De=(_0x59fa88,_0x19a95a)=>(_0x45088f,_0x3f8ecc)=>_0x19a95a(_0x45088f,_0x3f8ecc,_0x59fa88);let he=class{constructor(_0x3ca1d5,_0x5bd91f,_0x42ede7){const _0x40438b=_0x279361;this['_injector']=_0x3ca1d5,this[_0x40438b(0x192)]=_0x5bd91f,this['_docStateChangeManagerService']=_0x42ede7;}[_0x279361(0x158)](_0x4178f3){this['_transformHistoryAndStateStack'](_0x4178f3);}['transformRemoteChangeset'](_0x4ec1de){const _0xa4a94c=_0x279361,{unitID:_0x153c97}=_0x4ec1de,{collaboration:_0x1d8dc8}=this[_0xa4a94c(0x1a5)][_0xa4a94c(0x15d)](_0x153c97);if(_0x1d8dc8[_0xa4a94c(0x35e)]===0x0)return _0x4ec1de;let _0x1a054a=_0x55b651[_0xa4a94c(0x17f)](_0x4ec1de[_0xa4a94c(0x344)][0x0]);for(let _0x1e2982=0x0;_0x1e2982<_0x1d8dc8[_0xa4a94c(0x35e)];_0x1e2982++){const _0x1851c1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d8dc8[_0x1e2982]['unitId'],..._0x1d8dc8[_0x1e2982][_0xa4a94c(0x2c7)]}},_0x9c880=this['_transformService']['transformMutation'](_0x1a054a,_0x1851c1,!0x1);if(_0x325207(_0x9c880))throw _0x9c880['error'];_0x1a054a=_0x9c880[_0xa4a94c(0x2d0)];}return{..._0x55b651[_0xa4a94c(0x17f)](_0x4ec1de),'mutations':[_0x1a054a]};}[_0x279361(0x2ec)](_0x2b1d8f){const _0x535d61=_0x279361,{unitID:_0x17dfbd}=_0x2b1d8f,{history:_0x41fa4a,collaboration:_0x3c4be2}=this[_0x535d61(0x1a5)]['getStateCache'](_0x17dfbd);if(_0x41fa4a['length']===0x0&&_0x3c4be2['length']===0x0)return;const _0xd535d9=[],_0x4fef7b=[];let _0x17ed4f=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]),_0xd9ecdc=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]);for(let _0x171e11=_0x41fa4a[_0x535d61(0x35e)]-0x1;_0x171e11>=0x0;_0x171e11--){const _0x41d368={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41fa4a[_0x171e11]['unitId'],..._0x41fa4a[_0x171e11][_0x535d61(0x219)]}},_0x3f7a10={'id':_0x535d61(0x2ab),'params':{'unitId':_0x41fa4a[_0x171e11][_0x535d61(0x140)],..._0x41fa4a[_0x171e11][_0x535d61(0x2c7)]}},_0x4495fa=this['_transformService'][_0x535d61(0x1bc)](_0x17ed4f,_0x41d368,!0x1),_0x428d9b=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0xd9ecdc,_0x3f7a10,!0x1);if(_0x325207(_0x4495fa))throw _0x4495fa['error'];if(_0x325207(_0x428d9b))throw _0x428d9b[_0x535d61(0x21b)];_0xd535d9[_0x535d61(0x373)]({..._0x41fa4a[_0x171e11],'undoState':_0x4495fa['m2Prime'][_0x535d61(0x141)],'redoState':_0x428d9b[_0x535d61(0x1b2)][_0x535d61(0x141)]}),_0x17ed4f=_0x4495fa[_0x535d61(0x2d0)],_0xd9ecdc=_0x428d9b[_0x535d61(0x2d0)];}_0x17ed4f=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]),_0xd9ecdc=_0x55b651[_0x535d61(0x17f)](_0x2b1d8f[_0x535d61(0x344)][0x0]);for(let _0x161499=_0x3c4be2[_0x535d61(0x35e)]-0x1;_0x161499>=0x0;_0x161499--){const _0x18bcbc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c4be2[_0x161499]['unitId'],..._0x3c4be2[_0x161499][_0x535d61(0x219)]}},_0x247acc={'id':_0x535d61(0x2ab),'params':{'unitId':_0x3c4be2[_0x161499]['unitId'],..._0x3c4be2[_0x161499][_0x535d61(0x2c7)]}},_0x42c952=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0x17ed4f,_0x18bcbc,!0x1),_0x27563a=this[_0x535d61(0x192)][_0x535d61(0x1bc)](_0xd9ecdc,_0x247acc,!0x1);if(_0x325207(_0x42c952))throw _0x42c952[_0x535d61(0x21b)];if(_0x325207(_0x27563a))throw _0x27563a[_0x535d61(0x21b)];_0x4fef7b[_0x535d61(0x373)]({..._0x3c4be2[_0x161499],'undoState':_0x42c952[_0x535d61(0x1b2)][_0x535d61(0x141)],'redoState':_0x27563a[_0x535d61(0x1b2)]['params']}),_0x17ed4f=_0x42c952['m1Prime'],_0xd9ecdc=_0x27563a[_0x535d61(0x2d0)];}this[_0x535d61(0x1a5)][_0x535d61(0x15b)](_0x17dfbd,{'history':_0xd535d9,'collaboration':_0x4fef7b});}};he=dn([De(0x0,_0x349554(_0x543124)),De(0x1,_0x5aa3d9),De(0x2,_0x349554(_0xedf1f6))],he);var fn=Object[_0x279361(0x1ec)],Sn=(_0x18a1fa,_0x15974a,_0x336d58,_0x3f05f5)=>{const _0xd95bc6=_0x279361;for(var _0x285896=_0x3f05f5>0x1?void 0x0:_0x3f05f5?fn(_0x15974a,_0x336d58):_0x15974a,_0x2aad51=_0x18a1fa[_0xd95bc6(0x35e)]-0x1,_0x44c551;_0x2aad51>=0x0;_0x2aad51--)(_0x44c551=_0x18a1fa[_0x2aad51])&&(_0x285896=_0x44c551(_0x285896)||_0x285896);return _0x285896;},lt=(_0x14d525,_0x16ada6)=>(_0x457e4b,_0x324be3)=>_0x16ada6(_0x457e4b,_0x324be3,_0x14d525);let ue=class{constructor(_0x5ac66a,_0x11b40f){const _0x39ce12=_0x279361;this[_0x39ce12(0x31b)]=_0x5ac66a,this[_0x39ce12(0x192)]=_0x11b40f;}['transformSelections'](_0x428ac2){const _0x1a74e0=_0x279361;var _0x3c0b4b;const _0x2ef18d=this[_0x1a74e0(0x31b)][_0x1a74e0(0x225)](_0x304158),_0x274c79=(_0x3c0b4b=_0x2ef18d[_0x1a74e0(0x227)]())!=null?_0x3c0b4b:[];if(_0x274c79[_0x1a74e0(0x35e)]===0x0)return;const _0x46f174=_0x428ac2[_0x1a74e0(0x2ea)],_0x464705=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x46f174,'actions':null,'textRanges':_0x274c79}}],_0x2c6778=this[_0x1a74e0(0x192)][_0x1a74e0(0x2eb)](_0x428ac2,_0x464705);if(!_0x1bca00(_0x2c6778))throw _0x2c6778[_0x1a74e0(0x21b)];const _0x5a4aa6=_0x2c6778[_0x1a74e0(0x1b2)][0x0]['params'][_0x1a74e0(0x1d4)];Array['isArray'](_0x5a4aa6)&&_0x5a4aa6[_0x1a74e0(0x35e)]&&_0x2ef18d[_0x1a74e0(0x163)](_0x5a4aa6,{'unitId':_0x46f174,'subUnitId':_0x46f174},!0x1);}};ue=Sn([lt(0x0,_0x349554(_0x543124)),lt(0x1,_0x5aa3d9)],ue);var mn=Object[_0x279361(0x1ec)],In=(_0x598500,_0x1554b1,_0x3d0b2f,_0x81bef6)=>{for(var _0xfc75fa=_0x81bef6>0x1?void 0x0:_0x81bef6?mn(_0x1554b1,_0x3d0b2f):_0x1554b1,_0x37e541=_0x598500['length']-0x1,_0x205cad;_0x37e541>=0x0;_0x37e541--)(_0x205cad=_0x598500[_0x37e541])&&(_0xfc75fa=_0x205cad(_0xfc75fa)||_0xfc75fa);return _0xfc75fa;},U=(_0x76904,_0x3d2c09)=>(_0x5d7da6,_0xf5e965)=>_0x3d2c09(_0x5d7da6,_0xf5e965,_0x76904);let de=class extends _0x2972bb{constructor(_0x1730f4,_0x43855c,_0x20c84c,_0x1160dc,_0x4ac710,_0x3304a3,_0x168985,_0x9323de){const _0xcd839a=_0x279361;super(),_(this,_0xcd839a(0x2ad),new _0x5ccbb2(_0x20f601[_0xcd839a(0x1de)])),(this['_docStateChangeManagerService']=_0x1730f4,this['_collaborationController']=_0x43855c,this[_0xcd839a(0x341)]=_0x20c84c,this[_0xcd839a(0x1a1)]=_0x1160dc,this[_0xcd839a(0x1e1)]=_0x4ac710,this[_0xcd839a(0x186)]=_0x3304a3,this['_messageService']=_0x168985,this[_0xcd839a(0x26f)]=_0x9323de,this[_0xcd839a(0x172)]());}[_0x279361(0x172)](){const _0x547f04=_0x279361;this[_0x547f04(0x285)](this[_0x547f04(0x2ac)]['entityInit$']['subscribe'](_0x15c9ab=>{const _0x37be94=_0x547f04,_0x5c83a2=this[_0x37be94(0x1a5)]['docStateChange$'][_0x37be94(0x1f6)](_0x267adc=>{const _0x2a6952=_0x37be94;if(_0x267adc==null)return;const {unitId:_0x46b4ca,redoState:_0x547bae,commandId:_0x19046c}=_0x267adc;if(_0x46b4ca!==_0x15c9ab[_0x2a6952(0x2ea)])return;const _0x1d9205={'id':_0x19046c,'type':_0x2d51ab[_0x2a6952(0x1c3)],'params':{'unitId':_0x46b4ca,'actions':_0x547bae[_0x2a6952(0x165)],'textRanges':null}};_0x15c9ab[_0x2a6952(0x2d8)](_0x1d9205);});if(_0x15c9ab[_0x37be94(0x285)](_0x5c83a2),_0x15c9ab instanceof _0x237a0f){const _0x5bd131={'onTransformIME':_0x439d9d=>this['_docTransformIMECacheService'][_0x37be94(0x1fb)](_0x439d9d),'onTransformState':_0x35d937=>this[_0x37be94(0x1a1)][_0x37be94(0x158)](_0x35d937),'onTransformSelections':_0x52b62a=>this[_0x37be94(0x1e1)][_0x37be94(0x1a4)](_0x52b62a),'onSyncEditingCollabCursor':_0x385c86=>this[_0x37be94(0x186)][_0x37be94(0x2e2)](_0x385c86),'onTransformRemoteChangesetByIMECache':_0x19e388=>this[_0x37be94(0x341)][_0x37be94(0x1d2)](_0x19e388),'onTransformRemoteChangesetByStateCache':_0x66761d=>this[_0x37be94(0x1a1)][_0x37be94(0x1d2)](_0x66761d)};_0x15c9ab[_0x37be94(0x315)](_0x5bd131);}}));}};de=In([U(0x0,_0x349554(_0xedf1f6)),U(0x1,_0x349554(_0x1c1280)),U(0x2,_0x349554(_e)),U(0x3,_0x349554(he)),U(0x4,_0x349554(ue)),U(0x5,_0x349554(Ke)),U(0x6,_0x382ae3),U(0x7,_0x349554(_0x5852b4))],de);var Q=(_0x4cfd7c=>(_0x4cfd7c[_0x4cfd7c[_0x279361(0x267)]=0x0]='UNDEFINED',_0x4cfd7c[_0x4cfd7c['OK']=0x1]='OK',_0x4cfd7c[_0x4cfd7c[_0x279361(0x384)]=0x2]=_0x279361(0x384),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2bd)]=0x3]='PERMISSION_DENIED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x24f)]=0x4]=_0x279361(0x24f),_0x4cfd7c[_0x4cfd7c['UNAUTHENTICATED']=0x5]=_0x279361(0x166),_0x4cfd7c[_0x4cfd7c[_0x279361(0x31e)]=0x6]=_0x279361(0x31e),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ab)]=0x7]='INVALID_ARGUMENT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ce)]=0x8]=_0x279361(0x2ce),_0x4cfd7c[_0x4cfd7c[_0x279361(0x170)]=0x9]='COMPLETION_FINISHED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x35d)]=0xa]=_0x279361(0x35d),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ce)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x4cfd7c[_0x4cfd7c['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x194)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x4cfd7c[_0x4cfd7c[_0x279361(0x322)]=0xe]=_0x279361(0x322),_0x4cfd7c[_0x4cfd7c[_0x279361(0x167)]=0xf]=_0x279361(0x167),_0x4cfd7c[_0x4cfd7c[_0x279361(0x358)]=0x10]=_0x279361(0x358),_0x4cfd7c[_0x4cfd7c[_0x279361(0x20b)]=0x64]=_0x279361(0x20b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x257)]=0x65]=_0x279361(0x257),_0x4cfd7c[_0x4cfd7c[_0x279361(0x146)]=0xc9]=_0x279361(0x146),_0x4cfd7c[_0x4cfd7c['USER_IS_ANONYMOUS']=0xca]=_0x279361(0x248),_0x4cfd7c[_0x4cfd7c[_0x279361(0x234)]=0x1389]=_0x279361(0x234),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f8)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x327)]=0x1772]=_0x279361(0x327),_0x4cfd7c[_0x4cfd7c[_0x279361(0x27a)]=0x1773]=_0x279361(0x27a),_0x4cfd7c[_0x4cfd7c[_0x279361(0x37e)]=0x1b59]=_0x279361(0x37e),_0x4cfd7c[_0x4cfd7c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x279361(0x1f3),_0x4cfd7c[_0x4cfd7c['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x29e)]=0x1b5c]=_0x279361(0x29e),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f6)]=0x1b5d]=_0x279361(0x2f6),_0x4cfd7c[_0x4cfd7c[_0x279361(0x27d)]=0x1f41]=_0x279361(0x27d),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1ad)]=0x2329]=_0x279361(0x1ad),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2a0)]=0x232a]=_0x279361(0x2a0),_0x4cfd7c[_0x4cfd7c[_0x279361(0x16b)]=0x232b]=_0x279361(0x16b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x26b)]=0x232c]=_0x279361(0x26b),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2e3)]=0x232d]=_0x279361(0x2e3),_0x4cfd7c[_0x4cfd7c['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4cfd7c[_0x4cfd7c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4cfd7c[_0x4cfd7c[_0x279361(0x31a)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4cfd7c[_0x4cfd7c[_0x279361(0x319)]=0x2714]=_0x279361(0x319),_0x4cfd7c[_0x4cfd7c[_0x279361(0x294)]=0x271a]=_0x279361(0x294),_0x4cfd7c[_0x4cfd7c[_0x279361(0x175)]=0x271b]=_0x279361(0x175),_0x4cfd7c[_0x4cfd7c['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x279361(0x272),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2f2)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x4cfd7c[_0x4cfd7c[_0x279361(0x18a)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2a1)]=0x271f]=_0x279361(0x2a1),_0x4cfd7c[_0x4cfd7c[_0x279361(0x338)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4cfd7c[_0x4cfd7c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ca)]=0x2ee1]=_0x279361(0x2ca),_0x4cfd7c[_0x4cfd7c[_0x279361(0x19a)]=0x2ee2]=_0x279361(0x19a),_0x4cfd7c[_0x4cfd7c[_0x279361(0x37f)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4cfd7c[_0x4cfd7c[_0x279361(0x36c)]=0x2ee4]=_0x279361(0x36c),_0x4cfd7c[_0x4cfd7c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x279361(0x331),_0x4cfd7c[_0x4cfd7c[_0x279361(0x288)]=0x32c9]=_0x279361(0x288),_0x4cfd7c[_0x4cfd7c[_0x279361(0x28d)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4cfd7c[_0x4cfd7c['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x279361(0x35f),_0x4cfd7c[_0x4cfd7c[_0x279361(0x204)]=0x36b1]=_0x279361(0x204),_0x4cfd7c[_0x4cfd7c[_0x279361(0x2ba)]=0x36b2]=_0x279361(0x2ba),_0x4cfd7c[_0x4cfd7c[_0x279361(0x270)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4cfd7c[_0x4cfd7c[_0x279361(0x1b3)]=0x36b4]=_0x279361(0x1b3),_0x4cfd7c[_0x4cfd7c['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x279361(0x349),_0x4cfd7c[_0x4cfd7c[_0x279361(0x218)]=0x3716]=_0x279361(0x218),_0x4cfd7c[_0x4cfd7c[_0x279361(0x1f9)]=0x37dd]=_0x279361(0x1f9),_0x4cfd7c[_0x4cfd7c[_0x279361(0x22c)]=0x3a99]=_0x279361(0x22c),_0x4cfd7c[_0x4cfd7c[_0x279361(0x313)]=0x3a9a]=_0x279361(0x313),_0x4cfd7c[_0x4cfd7c['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x279361(0x239),_0x4cfd7c[_0x4cfd7c[_0x279361(0x31f)]=0x3a9c]=_0x279361(0x31f),_0x4cfd7c[_0x4cfd7c[_0x279361(0x240)]=0x3a9d]=_0x279361(0x240),_0x4cfd7c[_0x4cfd7c['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x279361(0x176),_0x4cfd7c[_0x4cfd7c['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x4cfd7c[_0x4cfd7c['UNRECOGNIZED']=-0x1]=_0x279361(0x247),_0x4cfd7c))(Q||{});function gn(_0x2585ec){const _0x4da53f=_0x279361;var _0x2e7387,_0x10e1d8;const _0x149e70=(_0x2e7387=_0x2585ec[_0x4da53f(0x25c)])==null?void 0x0:_0x2e7387[_0x4da53f(0x210)],_0x24bf2e=((_0x10e1d8=_0x2585ec[_0x4da53f(0x25c)])==null?void 0x0:_0x10e1d8[_0x4da53f(0x222)])||0x0;return _0x149e70===_0x16e445[_0x4da53f(0x2b5)]&&_0x24bf2e>0x0;}function vn(_0x497a3d){const _0x3381c5=_0x279361;return _0x497a3d['functionsExecutedState']===_0x24f9e0[_0x3381c5(0x183)];}var En=Object[_0x279361(0x1ec)],pn=(_0x2f2ada,_0x5efd40,_0x4cdfa7,_0x5f1afd)=>{const _0x491585=_0x279361;for(var _0x13f532=_0x5f1afd>0x1?void 0x0:_0x5f1afd?En(_0x5efd40,_0x4cdfa7):_0x5efd40,_0x44edce=_0x2f2ada[_0x491585(0x35e)]-0x1,_0x1fa41e;_0x44edce>=0x0;_0x44edce--)(_0x1fa41e=_0x2f2ada[_0x44edce])&&(_0x13f532=_0x1fa41e(_0x13f532)||_0x13f532);return _0x13f532;},w=(_0x47954e,_0x3aea54)=>(_0x50f857,_0x42578b)=>_0x3aea54(_0x50f857,_0x42578b,_0x47954e);function _0x46ed(){const _0x4d560a=['some','url(#on-line-icon_clip0_910_349)','href','makeDirty','collabCursorState$','replaceState','getViewport','MOBILE_VERIFY_CODE_MISMATCH','TEXT','hasOwnProperty','_hovered','transformRemoteChangeset','isEditing','textRanges','1740582yEFbtT','#FFF','_updateLocalCursor','_handleLeaveEvent','collabStatus.synced','_logService','body','call','_maxFormulaLimit','NOT_COLLAB','blue.400','PENDING','_docTransformSelectionsService','dispose','application/json','next','collab-client.tooltip.reconnect','_config','clearInterval','_sheetSkeletonManagerService','unsubscribe','svg','_startSheetCollabCursor','getOwnPropertyDescriptor','_selfUnitIDs','bottom','4964460JNQScW','_memberService','getSkeleton','getUnit','APPLY_NON_SEQUENTIAL_REVISION','getformulaLimitStatusUrl','createInstance','subscribe','beforeCommandExecuted','_labelPosition','ENTITLE_NEED_BILLING_ADDRESS','sheetID','transformIMECache','collabStatus.offline','collab-text-anchor-','_drawRectRange','entries','_draw','selection','releaseFormulaLimitUrl','_getScale','ENTITLE_CAN_NOT_BUY_LOWER_OTP','UniverIcon','_transformUndoRedoStack','_initResize','_send','getRenderById','DeleteRangeMoveLeftCommandId','CURRENT_STATUS_CANNOT_OPERATE','_getSaveTimeout','symbol','text','_toggleOnline','stage','getOwnPropertySymbols','collab-rect-range-','_taskIds','NO_OTHER_CLIENTS_EDITING','_name','children','stringify','ENTITLE_REPORT_LIMIT_EXCEED','undoState','sessionStatus$','error','clearTimeout','_onCursorDelete','exhaustSavingTask','_themeService','_scene','executionId','totalFormulasToCalculate','subUnitId','_unitOnClients','get','_cursor','getDocRanges','getUnitId','_roomMembers$','_drawTextRange','div','REDEMPTION_INVALID_CODE','_imageIoService','_showGuardMessage','getUniverSheetInstance','_render','roomMembers','_commandService','_cursors','CHANGESET_REVISION_CONFILICT','parseInt','1158434vYRqRF','min','collabStatus.notCollab','REDEMPTION_CODE_FULLY_REDEEMED','from','http://www.w3.org/2000/svg','removeParam','defs','_getSessionTicket','_shapes','REDEMPTION_USER_NOT_ELIGIBLE','_entityInit$','getParam','_releaseCalculationLimit','values','_ensureSubject','push','UNRECOGNIZED','USER_IS_ANONYMOUS','green.600','7QQIEhA','addClipboardHook','onStarting','setTimeout','startsWith','NOT_FOUND','delete','evenodd','_saveCache','loadOfflineData','on-line-icon','_setupBeforeClosingHandler','findNodePositionByCharIndex','ERROR_AGAIN','onCommandExecuted','toString','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','concat','stageInfo','_unitStatus','transformByState','/universer-api/license/formula/limit/status','white','tag','complete','getValue','_online','_setFormulaLimitStatus','_cachedData','UNDEFINED','onTransformChange$','CLOSE_ROOM','96569JpfhAS','LICENSE_EXPORT_SIZE_EXCEEDED','UNIVER_SHEET','fillRule','className','_localeService','ENTITLE_DUP_SUBSCRIPTION','M0\x200H16V16H0z','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_refRangeService','_initDependencies','_init','_univerInstanceService','_notificationService','string','Failed','ENSURE_SNAPSHOT_EXECUTION','registerBeforeClose','endColumn','CONNECTOR_DATA_TOO_LARGE','jiqing.500','SOCKET_FAILED','setShapeProps','includes','getConfig','getRelativeToViewportCoord','currentSkeleton$','disposeWithMe','/run/','_urlService','WECHAT_HAS_BEEN_BOUND','_anchor','data','searchParams','InsertRangeMoveRightCommandId','MOBILE_HAS_BEEN_BOUND','_session','colorChannel1','_checkAndWaitForCalculationPermission','ranges','on-line-icon_clip0_910_349','_collabSessionService','YUUMI_NO_CUBOID_FOR_QUESTION','selections','getMember','type','indexOf','limitInfo','width','Unknown\x20user','onPointerLeave$','random','APPLY_PERMISSION_DENIED','_heartbeatTimer','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_AI_RUN_FAILED','collaboration.closeRoom','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','hovered','_httpService','shift','_eventUnsubscribe','getCurrentSelections','location','FromArray','doc.mutation.rich-text-editing','_collaborationController','_status$','Loading','contains','_doCreateSocket','round','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','addEventListener','subscribeEvent','START_CALCULATION','ticket','_id','moveTo','registerRenderModule','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','0\x200\x2016\x2016','setInterval','PERMISSION_DENIED','range','getUndoRedoMutationParamsCache','idSuffix','defIds','collabStatus.conflict','setItem','assign','registerRefRange','saveImage','redoState','UPDATE_CURSOR','_startCalculationLimit','INVITE_CODE_HAS_BEEN_UES','row','_beforeCloseService','_getFormulaLimitStatus','TOO_MANY_REQUESTS','drawWith','m1Prime','endRow','DeleteRangeMoveUpCommandId','event$','xlink:href','univer-mr-2\x20univer-flex\x20univer-text-xl','_anchorDot','max','onLocalMutation','_range','sessionTicket','memberID','_startDocCollabCursor','2nYluVR','_revisionService','height','_lastPointer','storage','syncEditingCollabCursor','LICENSE_DISTRO_REJECTED','JOIN_ROOM_FAILED','_renderManagerService','post','_initStatusComponent','unload','getCollabEntity$','unitID','transformMutationsWithChangeset','_transformHistoryAndStateStack','assignAColorForMemberID','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','AWAITING_WITH_PENDING','runOnServer','trim','YUUMI_ALL_TABLES_IS_INVALID','_context','getSheetBySheetId','debug','APPLY_DUPLICATED','toRgbString','SNAPSHOT_INVALID_SNAPSHOT','invokeId','cursorInfo','_clearPolling','_handleHeartbeatEvent','collaboration-client-ui.config','_createSocketURL','parse','rgba(255,\x20255,\x20255,\x200.01)','save','CONFLICT','roomMembers$','Success','RemoveRowCommandId','getRangePointData','newValue','fill','_scheduleHeartbeat','session.connection-failed','permission.content','flatMap','executeCommand','has','restore','startRow','_syncEditingCollabCursorService','setActiveRange','REDEMPTION_CODE_INACTIVE','color','addHandlerCallback','find','ACTIVE_UNIT_EVENT_CHANNEL','startFormulaLimitUrl','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_RATE_OVER_LIMIT','_injector','_removeCollabCursors','8aZvhTA','ALREADY_EXISTS','REDEMPTION_CODE_NOT_STARTED','transform','history','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','eventID','replace','_collaborationUIEventService','search','SNAPSHOT_HAS_BEEN_REMOVED','_checkCalculationAvailable','split','setUndoRedoMutationParamsCache','2540lxFTSQ','_instanceService','_updateSubUnitFromURLParams','getColorFromTheme','getItem','_handleEvent','INVITE_CODE_ALREADY_BOUND','...','_setupSubUnitSync','_handleJoinEvent','1em','popstate','dispose$','YUUMI_CONNECTOR_URL_NOT_FOUND','OTHER_CLIENT_EDITING','onMouseMove','_scheduleClearOtherTimer','getCurrentRevOfUnit','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','saveTaskMap','_docSkeleton','_hover','_docTransformIMECacheService','getCurrent','with','mutations','getActiveRange','formula.calculation.started','_dataLoaderService','_hasFormulaInDirtyRanges','ENTITLE_CHAT_LIMIT_EXCEED','updateOfflineData','override','getCellPositionByOffset','pipe','asObservable','_initCommandExecutedListener','_colorAssignService','activeSheet$','4957736FzeCrw','startColumn','univerjs-icon\x20univerjs-icon-','_applyCommand','_onCursorUpdate','set','LOGIN_TOKEN_PROCESSING_FAILED','_toggleOffline','init','_uiPartsService','top','LOGIN_FAILED','length','EMAIL_HAS_BEEN_BOUND','hide','extend','all','getActiveSheet','fillStyle','column','_scheduleSaving','_drawAnchor','pushState','lineTo','beginPath','_transformPreviousActiveRange','USER_NOT_INVITED_CODE','collab-text-range-','HEADER_MENU','getCellMatrix','_color','name','_collabCursorState$','unshift','_colorIndex','_handleHover','displayName','runId','onRendered','font','_initStatusListener','subunit','purple.300','_saveTaskMap','APPLY_REJECT','INVITE_CODE_REQUIRED','getMergeData','collabStatus.fetchMiss','now','RECT','INTERNAL_ERROR','getUnhiddenWorksheets','_messageService','getMemberID','MoveRangeCommandId','arc','createSocket','getCollabCursors$','currentTheme$','_disabled','isActive','11985003NoYWod','getSheetId','measureText','unitId','params','icon','reconnect','_document','[RemoteUniscriptService]:\x20no\x20focused\x20unit','USER_NOT_FOUND','_getSheetObject','Warning','getVpScrollXYInfoByPosToVp','_registerDependencies','UNIVER_DOC','0\x200\x2017\x2016','unit','send','onPointerMove$','_localCacheService','dirtyRanges','setAlpha','collabStatus.syncing','uni.network.url-service','loadUnit','requireSession','_localStorageService','transformStateCache','_textBubble','addObjects','setStateCache','2244789jBjkEv','getStateCache','code','function','whenReady','onPointerEnter$','attrs','replaceDocRanges','_registerRenderDependencies','actions','UNAUTHENTICATED','AUTHORIZE_CODE_ILLEGAL','OnLineIcon','add','map','LICENSE_IMPORT_SIZE_EXCEEDED','off-line-icon_clip0_910_343','AWAITING','_docSkeletonManagerService','path','COMPLETION_FINISHED','_entities','_initEntityListener','_lastResponseTimestamp','addObject','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','closePath','?taskId=','_updateCollabCursors','InsertColCommandId','getTypeOfUnitDisposed$','_cursorShapes','isArray','setParam','deepClone','yellow.400','currentColor','_backgroundColor','SUCCESS','status$','_hideTimer','_docSyncEditingCollabCursorService','/universer-api/license/formula/limit/done','_initCommandInterceptor','pluginName','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','disableLocalCache','getCurrentUnitForType','getTypeOfUnitAdded$','_updateURLWithCurrentState','InsertRangeMoveDownCommandId','fillText','getUnitStatus$','_transformService','setConfig','EMAIL_VERIFY_CODE_MISMATCH','_cursorInfo$','USERS_LEAVE','backgroundColor','_refreshCollabCursors','key','INVALID_INVITE_CODE','VIEW_MAIN','_clearOtherTimers','_getAnchorBounding','then','_configService','propertyIsEnumerable','_docTransformStateCacheService','imageSourceType','black','transformSelections','_docStateChangeManagerService','forEach','_pollingInterval','_assignedColors','_docClipboardService','Error','INVALID_ARGUMENT','collaboration-client.offline-data-not-saved','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','saveOfflineData','urlChange$','_collabCursorController','m2Prime','PAYMENT_CHANNEL_NOT_SUPPORT','show','defineProperty','result','apply','enableLocalCache','_removeClearOtherTimer','clipPath','session.collaboration-timeout','transformMutation','_currentUsage','cursorInfo$','_getMergeRange','getAncestorScale','OTHER_CLIENTS_EDITING','getFocusedUnit','MUTATION','size','/universer-api/license/formula/limit/start','ONLINE'];_0x46ed=function(){return _0x4d560a;};return _0x46ed();}const On=_0x279361(0x25f),Tn=_0x279361(0x1c5),Cn=_0x279361(0x187);let fe=class extends _0x2972bb{constructor(_0x28e513,_0x5ddbba,_0x14afc3,_0x523655,_0x5d3ca7,_0x144744,_0x598a7a){const _0x33d4a1=_0x279361;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x33d4a1(0x1bd),0x0),_(this,_0x33d4a1(0x213),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x33d4a1(0x386)]=_0x28e513,this[_0x33d4a1(0x232)]=_0x5ddbba,this['_configService']=_0x14afc3,this[_0x33d4a1(0x2a5)]=_0x523655,this[_0x33d4a1(0x276)]=_0x5d3ca7,this[_0x33d4a1(0x1da)]=_0x144744,this['_localeService']=_0x598a7a,this[_0x33d4a1(0x188)]());}[_0x279361(0x188)](){const _0x5c5897=_0x279361;this['disposeWithMe'](this['_commandService'][_0x5c5897(0x1f7)]((_0x17f686,_0x2f8c7b)=>{const _0x1e54f6=_0x5c5897;if(_0x17f686['id']!==_0x45c15a['id'])return;const _0xa4a8ce=_0x17f686[_0x1e54f6(0x141)];if(!this['_hasFormulaInDirtyRanges'](_0xa4a8ce[_0x1e54f6(0x151)]))return;if(!this[_0x1e54f6(0x328)]())throw this[_0x1e54f6(0x290)](_0x17f686,_0x2f8c7b),this['_showGuardMessage'](),new _0x4ccc82();})),this[_0x5c5897(0x285)](this[_0x5c5897(0x232)]['onCommandExecuted']((_0x4c0cdc,_0x49587c)=>{const _0x48a21e=_0x5c5897;if(_0x4c0cdc['id']!==_0x49e7c7['id'])return;const _0x57da47=_0x4c0cdc[_0x48a21e(0x141)];if(gn(_0x57da47)){const _0x18beaf=_0x1667d1();this[_0x48a21e(0x213)][_0x48a21e(0x246)](_0x18beaf),this['_startCalculationLimit'](_0x18beaf);}else{if(vn(_0x57da47)&&this[_0x48a21e(0x213)][_0x48a21e(0x35e)]>0x0){const _0xfab00e=this[_0x48a21e(0x213)][_0x48a21e(0x2a6)]();this[_0x48a21e(0x243)](_0xfab00e);}}}));}[_0x279361(0x1e2)](){const _0x31d3f5=_0x279361;super[_0x31d3f5(0x1e2)](),this[_0x31d3f5(0x2fb)](),this[_0x31d3f5(0x213)]=[],this[_0x31d3f5(0x1bd)]=0x0,this[_0x31d3f5(0x1dd)]=0x0,this[_0x31d3f5(0x173)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x1c4f0d,_0x39db12){const _0x2c3a86=_0x279361;for(let _0x3059cb=0x0;_0x3059cb<0x1e;_0x3059cb++)try{if(await this[_0x2c3a86(0x2cd)](),this[_0x2c3a86(0x328)]()){this[_0x2c3a86(0x355)](_0x1c4f0d,_0x39db12),this[_0x2c3a86(0x386)]['show']({'content':this[_0x2c3a86(0x26f)]['t'](_0x2c3a86(0x346)),'type':_0x41554e[_0x2c3a86(0x304)]});return;}await new Promise(_0x2c4462=>{const _0x4e2ff0=_0x2c3a86;this[_0x4e2ff0(0x1a7)]=window[_0x4e2ff0(0x24d)](_0x2c4462,0x3e8);});}catch(_0xe9dee0){this[_0x2c3a86(0x1da)]['error'](_0xe9dee0);}this[_0x2c3a86(0x386)][_0x2c3a86(0x1b4)]({'content':this[_0x2c3a86(0x26f)]['t']('formula.calculation.unable'),'type':_0x41554e[_0x2c3a86(0x1aa)]});}[_0x279361(0x355)](_0x1b6405,_0x5cb7ff){const _0x59f949=_0x279361;try{this[_0x59f949(0x232)][_0x59f949(0x30d)](_0x1b6405['id'],_0x1b6405[_0x59f949(0x141)],_0x5cb7ff);}catch(_0xca159f){this[_0x59f949(0x1da)][_0x59f949(0x21b)](_0xca159f);}}[_0x279361(0x265)](_0x382217,_0x841bf0){const _0x5d45c8=_0x279361;_0x841bf0<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x841bf0,this[_0x5d45c8(0x1dd)]=Number['parseInt'](_0x382217['maxFormulaLimit']),this[_0x5d45c8(0x1bd)]=Number[_0x5d45c8(0x235)](_0x382217['currentUsage']));}async[_0x279361(0x2c9)](_0x1f1bfd){const _0x344a91=_0x279361;var _0x42935b,_0x321efc;const _0x263817=Date[_0x344a91(0x382)]();try{const _0x395008=((_0x42935b=this['_configService'][_0x344a91(0x282)](_0x15a639))==null?void 0x0:_0x42935b[_0x344a91(0x318)])||Tn,_0x5a643b=(await this[_0x344a91(0x2a5)][_0x344a91(0x2e6)](_0x395008,{'body':JSON[_0x344a91(0x217)]({'taskId':_0x1f1bfd})}))[_0x344a91(0x1db)];if(((_0x321efc=_0x5a643b['error'])==null?void 0x0:_0x321efc[_0x344a91(0x15e)])!==Q['OK'])return;this[_0x344a91(0x265)](_0x5a643b[_0x344a91(0x299)],_0x263817);}catch(_0x2a70a9){this[_0x344a91(0x1da)]['error'](_0x2a70a9);}}async[_0x279361(0x2cd)](_0x29990d){const _0x5d6e50=_0x279361;var _0x3cff26,_0x5e5004;const _0x2389a6=Date[_0x5d6e50(0x382)]();try{const _0x3f52fc=((_0x3cff26=this[_0x5d6e50(0x19f)][_0x5d6e50(0x282)](_0x15a639))==null?void 0x0:_0x3cff26[_0x5d6e50(0x1f4)])||On,_0x369956=_0x29990d?_0x3f52fc+_0x5d6e50(0x178)+encodeURIComponent(_0x29990d):_0x3f52fc,_0x528d96=(await this['_httpService'][_0x5d6e50(0x225)](_0x369956))['body'];if(((_0x5e5004=_0x528d96['error'])==null?void 0x0:_0x5e5004[_0x5d6e50(0x15e)])!==Q['OK'])return;this[_0x5d6e50(0x265)](_0x528d96[_0x5d6e50(0x299)],_0x2389a6);}catch(_0x31b380){this[_0x5d6e50(0x1da)][_0x5d6e50(0x21b)](_0x31b380);}}async[_0x279361(0x243)](_0x38f62a){const _0x15e711=_0x279361;var _0x54b389,_0x25a6d2;const _0x1b3705=Date['now']();try{const _0x3891ff=((_0x54b389=this[_0x15e711(0x19f)]['getConfig'](_0x15a639))==null?void 0x0:_0x54b389[_0x15e711(0x202)])||Cn,_0x29505d=(await this[_0x15e711(0x2a5)][_0x15e711(0x2e6)](_0x3891ff,{'body':JSON['stringify']({'taskId':_0x38f62a})}))[_0x15e711(0x1db)];if(((_0x25a6d2=_0x29505d[_0x15e711(0x21b)])==null?void 0x0:_0x25a6d2['code'])!==Q['OK'])return;this[_0x15e711(0x265)](_0x29505d[_0x15e711(0x299)],_0x1b3705);}catch(_0x2fc2b4){this[_0x15e711(0x1da)][_0x15e711(0x21b)](_0x2fc2b4);}}['_checkCalculationAvailable'](){const _0x24cc88=_0x279361;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x24cc88(0x1dd)]-this[_0x24cc88(0x1bd)]>0x0;}[_0x279361(0x2fb)](){const _0x15829e=_0x279361;this[_0x15829e(0x1a7)]&&(clearTimeout(this[_0x15829e(0x1a7)]),this[_0x15829e(0x1a7)]=null);}[_0x279361(0x22e)](){const _0x11990d=_0x279361;this['_messageService']['show']({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x41554e[_0x11990d(0x2ae)]});}[_0x279361(0x348)](_0x1ed21d){const _0x56643a=_0x279361;for(const _0x3b1c5e of _0x1ed21d){const {unitId:_0x51bfc8,sheetId:_0x1a1aff,range:_0x33e84f}=_0x3b1c5e,_0x338376=this[_0x56643a(0x276)][_0x56643a(0x1f2)](_0x51bfc8);if(!_0x338376)continue;const _0x3ec094=_0x338376['getSheetBySheetId'](_0x1a1aff);if(!_0x3ec094)continue;const _0x4da635=_0x3ec094[_0x56643a(0x36f)]();for(let _0x2af0e8=_0x33e84f['startRow'];_0x2af0e8<=_0x33e84f[_0x56643a(0x2d1)];_0x2af0e8++)for(let _0x148dac=_0x33e84f[_0x56643a(0x353)];_0x148dac<=_0x33e84f[_0x56643a(0x27c)];_0x148dac++){const _0x59c561=_0x4da635[_0x56643a(0x263)](_0x2af0e8,_0x148dac);if(_0x59c561&&(_0x54db1c(_0x59c561['f'])||_0x320189(_0x59c561['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x349554(_0x382ae3)),w(0x1,_0x28d9e9),w(0x2,_0x3b186e),w(0x3,_0x349554(_0x4be316)),w(0x4,_0x56b693),w(0x5,_0x525e85),w(0x6,_0x349554(_0x5852b4))],fe);var Rn=Object[_0x279361(0x1ec)],Dn=(_0x346234,_0x5c3766,_0x30152b,_0x2966f5)=>{const _0x25fc6c=_0x279361;for(var _0x539985=_0x2966f5>0x1?void 0x0:_0x2966f5?Rn(_0x5c3766,_0x30152b):_0x5c3766,_0x3c7eb7=_0x346234[_0x25fc6c(0x35e)]-0x1,_0x226ae5;_0x3c7eb7>=0x0;_0x3c7eb7--)(_0x226ae5=_0x346234[_0x3c7eb7])&&(_0x539985=_0x226ae5(_0x539985)||_0x539985);return _0x539985;},be=(_0x5740ef,_0x1c232a)=>(_0x3d648d,_0x4a3a88)=>_0x1c232a(_0x3d648d,_0x4a3a88,_0x5740ef);let Be=class extends _0x2972bb{constructor(_0x1bc43a,_0x17ad62,_0x1e852a){const _0x1c3e48=_0x279361;super(),_(this,'_cachedData',new Map()),_(this,_0x1c3e48(0x37d),new Map()),_(this,_0x1c3e48(0x13b),!0x1),(this['_configService']=_0x1bc43a,this['_localStorageService']=_0x17ad62,this[_0x1c3e48(0x2de)]=_0x1e852a);}[_0x279361(0x18b)](){const _0x416014=_0x279361;this[_0x416014(0x13b)]=!0x0;}[_0x279361(0x1b8)](){const _0x4935c4=_0x279361;this[_0x4935c4(0x13b)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x279361(0x1e2)](){const _0x48584e=_0x279361;this[_0x48584e(0x21e)]()[_0x48584e(0x19e)](()=>super[_0x48584e(0x1e2)]());}async[_0x279361(0x253)](_0x2b47a9){const _0x55f304=_0x279361;return this['_disabled']?null:this[_0x55f304(0x157)][_0x55f304(0x32f)](_0x5e73e3(_0x2b47a9));}async[_0x279361(0x1af)](_0x3588c5,_0x4a686c){const _0xeb4224=_0x279361;return!!this[_0xeb4224(0x157)]['setItem'](_0x3588c5,_0x4a686c);}[_0x279361(0x34a)](_0x4d10d9,_0x18e2a9,_0x3d1a4b,_0x96f646){const _0x338a55=_0x279361,_0x3e5305=this[_0x338a55(0x2de)][_0x338a55(0x33c)](_0x4d10d9);this[_0x338a55(0x266)][_0x338a55(0x357)](_0x4d10d9,{'unitID':_0x4d10d9,'type':_0x18e2a9,'awaitingChangeset':_0x3d1a4b,'mutations':_0x96f646,'rev':_0x3e5305}),this[_0x338a55(0x37d)][_0x338a55(0x30e)](_0x4d10d9)||this['_scheduleSaving'](_0x4d10d9);}[_0x279361(0x366)](_0x359743){const _0x1160e8=_0x279361,_0x425c94=this[_0x1160e8(0x20c)]();_0x425c94===0x0?this[_0x1160e8(0x252)](_0x359743):this[_0x1160e8(0x37d)][_0x1160e8(0x357)](_0x359743,setTimeout(()=>this[_0x1160e8(0x252)](_0x359743),_0x425c94));}['_getSaveTimeout'](){const _0x4aed92=_0x279361;var _0x1be355;return(_0x1be355=this[_0x4aed92(0x19f)][_0x4aed92(0x282)](_0x451d1f))!=null?_0x1be355:_0x4b0503;}[_0x279361(0x252)](_0x22d965){const _0x59e6db=_0x279361,_0x3be692=this['_saveTaskMap'][_0x59e6db(0x225)](_0x22d965);return _0x3be692!==void 0x0&&window[_0x59e6db(0x21c)](_0x3be692),this[_0x59e6db(0x157)]['setItem'](_0x5e73e3(_0x22d965),this['_cachedData']['get'](_0x22d965))[_0x59e6db(0x19e)](()=>this[_0x59e6db(0x37d)][_0x59e6db(0x250)](_0x22d965));}async['exhaustSavingTask'](){const _0x3ee0c0=_0x279361,_0x50b35f=[];this[_0x3ee0c0(0x37d)][_0x3ee0c0(0x1a6)]((_0xbda23f,_0x11440f)=>{const _0x2b4b56=_0x3ee0c0;window[_0x2b4b56(0x21c)](_0xbda23f),_0x50b35f[_0x2b4b56(0x246)](this[_0x2b4b56(0x252)](_0x11440f)[_0x2b4b56(0x19e)](()=>{const _0x550fe3=_0x2b4b56;this[_0x550fe3(0x37d)][_0x550fe3(0x250)](_0x11440f);}));}),await Promise[_0x3ee0c0(0x362)](_0x50b35f);}};Be=Dn([be(0x0,_0x3b186e),be(0x1,_0x47a719),be(0x2,_0x349554(_0x2816b1))],Be);class bn extends _0x46d041{constructor(){const _0xc15ba=_0x279361;super(),_(this,_0xc15ba(0x1b0)),this['urlChange$']=_0x175217(window,_0xc15ba(0x336))[_0xc15ba(0x34d)](_0x1f12e2(this[_0xc15ba(0x337)]),_0x2aeefc(0x1),_0x2fd631(void 0x0));}[_0x279361(0x17e)](_0x2f54e5,_0x4d1827,_0x4b3b30=!0x1){const _0x4378a7=_0x279361,_0x5e56d1=new URL(window[_0x4378a7(0x2a9)][_0x4378a7(0x1c9)]);_0x5e56d1[_0x4378a7(0x28b)][_0x4378a7(0x357)](_0x2f54e5,_0x4d1827),_0x4b3b30?window[_0x4378a7(0x321)][_0x4378a7(0x1cc)]('','',_0x5e56d1['toString']()):window[_0x4378a7(0x321)][_0x4378a7(0x368)]('','',_0x5e56d1[_0x4378a7(0x259)]());}[_0x279361(0x23c)](_0xb91617,_0x26b4d9=!0x1){const _0x387cc3=_0x279361,_0x1a158a=new URL(window['location'][_0x387cc3(0x1c9)]);_0x1a158a[_0x387cc3(0x28b)][_0x387cc3(0x250)](_0xb91617),_0x26b4d9?window['history']['replaceState']('','',_0x1a158a['toString']()):window[_0x387cc3(0x321)]['pushState']('','',_0x1a158a[_0x387cc3(0x259)]());}[_0x279361(0x242)](_0x5734f6){const _0x65368b=_0x279361;var _0x1ef7c5;return(_0x1ef7c5=new URL(window[_0x65368b(0x2a9)][_0x65368b(0x1c9)])[_0x65368b(0x28b)][_0x65368b(0x225)](_0x5734f6))!=null?_0x1ef7c5:void 0x0;}}var Nn=Object[_0x279361(0x1b5)],Un=Object[_0x279361(0x1ec)],Ln=(_0x26f1fd,_0x2497ba,_0x321de3)=>_0x2497ba in _0x26f1fd?Nn(_0x26f1fd,_0x2497ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x321de3}):_0x26f1fd[_0x2497ba]=_0x321de3,Mn=(_0x52cd55,_0x28f3ca,_0x3f1d07,_0x575265)=>{for(var _0xc78917=_0x575265>0x1?void 0x0:_0x575265?Un(_0x28f3ca,_0x3f1d07):_0x28f3ca,_0x2c6d99=_0x52cd55['length']-0x1,_0xb3d91f;_0x2c6d99>=0x0;_0x2c6d99--)(_0xb3d91f=_0x52cd55[_0x2c6d99])&&(_0xc78917=_0xb3d91f(_0xc78917)||_0xc78917);return _0xc78917;},Ne=(_0x10ec78,_0x228cb7)=>(_0x133cc7,_0x52b481)=>_0x228cb7(_0x133cc7,_0x52b481,_0x10ec78),An=(_0x24d028,_0x19221e,_0x51e1be)=>Ln(_0x24d028,_0x19221e+'',_0x51e1be);const Pn=_0x279361(0x2b2);let Fe=class extends _0x565e94{constructor(_0x3589da=at,_0x41ccdf,_0x4a860d,_0x38ac9e){const _0x4d7ef0=_0x279361;super(),this[_0x4d7ef0(0x1e6)]=_0x3589da,this[_0x4d7ef0(0x2e5)]=_0x41ccdf,this[_0x4d7ef0(0x31b)]=_0x4a860d,this[_0x4d7ef0(0x19f)]=_0x38ac9e;const {..._0x30cb1a}=_0x206c2b({},at,this[_0x4d7ef0(0x1e6)]);this[_0x4d7ef0(0x19f)][_0x4d7ef0(0x193)](ln,_0x30cb1a);}[_0x279361(0x24c)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x279361(0x378)](){const _0x2d78ef=_0x279361;this[_0x2d78ef(0x164)]();}[_0x279361(0x14a)](){const _0x58bc04=_0x279361;var _0x13735d;const _0x328535=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x4665df,{'useClass':_0x113f5a}],[_0x3b29b1,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x1c6e38(this[_0x58bc04(0x31b)],_0x274243(_0x328535,(_0x13735d=this[_0x58bc04(0x1e6)])==null?void 0x0:_0x13735d[_0x58bc04(0x34b)]));}[_0x279361(0x164)](){const _0x2e92d2=_0x279361;this[_0x2e92d2(0x285)](this['_renderManagerService'][_0x2e92d2(0x2b9)](_0x3d4c4a['UNIVER_DOC'],[$e])),this['disposeWithMe'](this[_0x2e92d2(0x2e5)]['registerRenderModule'](_0x3d4c4a[_0x2e92d2(0x26c)],[xe]));}[_0x279361(0x274)](){const _0x53fae4=_0x279361;_0x5a0569(this[_0x53fae4(0x31b)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x279361(0x189),Pn),Fe=Mn([_0x23c35b(_0x3a6051),Ne(0x1,_0x3bda3f),Ne(0x2,_0x349554(_0x543124)),Ne(0x3,_0x3b186e)],Fe);var wn=Object[_0x279361(0x1ec)],yn=(_0xf9d391,_0x52fb8b,_0x3357ee,_0x4f9388)=>{for(var _0x34d8b3=_0x4f9388>0x1?void 0x0:_0x4f9388?wn(_0x52fb8b,_0x3357ee):_0x52fb8b,_0xb3c42b=_0xf9d391['length']-0x1,_0x4fcc07;_0xb3c42b>=0x0;_0xb3c42b--)(_0x4fcc07=_0xf9d391[_0xb3c42b])&&(_0x34d8b3=_0x4fcc07(_0x34d8b3)||_0x34d8b3);return _0x34d8b3;},Z=(_0x4f4ed1,_0x555b7a)=>(_0x6a1c94,_0x2c357f)=>_0x555b7a(_0x6a1c94,_0x2c357f,_0x4f4ed1);let _t=class extends _0x26a376{constructor(_0x13ecd2,_0x5e5fd1,_0x146576,_0x52b21e,_0x2b35c7){super(_0x13ecd2,_0x5e5fd1,_0x146576,_0x52b21e,_0x2b35c7);}async[_0x279361(0x38a)](_0x281693){const _0x4e5f44=_0x279361,_0x4d2d06=await this[_0x4e5f44(0x23e)](),_0x52de02=this[_0x4e5f44(0x2fe)](_0x281693,_0x4d2d06);return this[_0x4e5f44(0x2b0)](_0x52de02);}[_0x279361(0x2fe)](_0x2dad1d,_0x3e272a){const _0x4dc45f=_0x279361,_0x262ce6=typeof window>'u'?new URL(_0x2dad1d):new URL(_0x2dad1d,window[_0x4dc45f(0x2a9)]['origin']);_0x262ce6[_0x4dc45f(0x28b)][_0x4dc45f(0x357)](_0x4dc45f(0x2da),_0x3e272a);const _0x323105=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4dc45f(0x2a9)][_0x4dc45f(0x326)]);return _0x323105[_0x4dc45f(0x225)](_0x4dc45f(0x377))&&_0x262ce6[_0x4dc45f(0x28b)][_0x4dc45f(0x357)]('runId',_0x323105[_0x4dc45f(0x225)](_0x4dc45f(0x377))),_0x262ce6['toString']();}async[_0x279361(0x23e)](){const _0x8d36b0=_0x279361;var _0x2277c5,_0x5368e0,_0x3960d7;const _0x29e85f=this[_0x8d36b0(0x19f)]['getConfig'](_0x15a639),_0x2dad8d=(_0x2277c5=_0x29e85f==null?void 0x0:_0x29e85f['wsSessionTicketUrl'])!=null?_0x2277c5:_0x5705fa;return(_0x3960d7=(_0x5368e0=(await this[_0x8d36b0(0x2a5)][_0x8d36b0(0x225)](_0x2dad8d,{'headers':{'Content-Type':_0x8d36b0(0x1e3)}}))['body'])==null?void 0x0:_0x5368e0[_0x8d36b0(0x2b6)])!=null?_0x3960d7:'';}};_t=yn([Z(0x0,_0x349554(_0x543124)),Z(0x1,_0x349554(_0x4be316)),Z(0x2,_0x3b186e),Z(0x3,_0x525e85),Z(0x4,_0x3c8a43)],_t);var $n=Object[_0x279361(0x1ec)],xn=(_0x21b28d,_0x106c60,_0x37dfd3,_0x4003ba)=>{const _0x3adbd0=_0x279361;for(var _0x120023=_0x4003ba>0x1?void 0x0:_0x4003ba?$n(_0x106c60,_0x37dfd3):_0x106c60,_0xac1a82=_0x21b28d[_0x3adbd0(0x35e)]-0x1,_0x32569f;_0xac1a82>=0x0;_0xac1a82--)(_0x32569f=_0x21b28d[_0xac1a82])&&(_0x120023=_0x32569f(_0x120023)||_0x120023);return _0x120023;},Ue=(_0x43eda6,_0x59dcc5)=>(_0x99e3d6,_0x45564b)=>_0x59dcc5(_0x99e3d6,_0x45564b,_0x43eda6);let ht=class extends _0x2972bb{constructor(_0x27347a,_0x13b79b,_0xe1d817){const _0x1bc86c=_0x279361;super(),this[_0x1bc86c(0x32c)]=_0x27347a,this['_httpService']=_0x13b79b,this['_configService']=_0xe1d817;}async[_0x279361(0x2f0)](_0x547a8d,_0x13a05b,_0xd9ad4e,..._0x3d21fa){const _0x33ec94=_0x279361;var _0x49b340,_0x2d882f,_0x24a195,_0x1304fe;const _0x270b59=this['_instanceService']['getFocusedUnit']();if(!_0x270b59)throw new Error(_0x33ec94(0x145));const _0x106a45=((_0x49b340=this[_0x33ec94(0x19f)][_0x33ec94(0x282)](_0x1f2e5e))!=null?_0x49b340:_0x43c7d3)+'/'+_0x547a8d+_0x33ec94(0x286)+_0x13a05b,_0xe662e0=new URL(window['location'][_0x33ec94(0x1c9)]),_0x10b280={'scriptId':_0x547a8d,'runId':(_0x2d882f=_0xe662e0['searchParams']['get']('runId'))!=null?_0x2d882f:'','function':_0x13a05b,'unitId':_0x270b59[_0x33ec94(0x228)](),'argsOfFunction':JSON[_0x33ec94(0x217)](_0x3d21fa),'invokeId':(_0x24a195=_0xd9ad4e[_0x33ec94(0x2f9)])!=null?_0x24a195:'','executionId':(_0x1304fe=_0xd9ad4e[_0x33ec94(0x221)])!=null?_0x1304fe:''};try{const _0x3fa6a5=await this[_0x33ec94(0x2a5)]['post'](_0x106a45,{'body':_0x10b280});return _0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x21b)]&&_0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x21b)][_0x33ec94(0x15e)]!==Q['OK']?_0x33ec94(0x279):_0x3fa6a5[_0x33ec94(0x1db)][_0x33ec94(0x1b6)];}catch{return _0x33ec94(0x279);}}};ht=xn([Ue(0x0,_0x56b693),Ue(0x1,_0x349554(_0x4be316)),Ue(0x2,_0x3b186e)],ht);const ut=0x7530,dt=_0x279361(0x317);class ir extends _0x2972bb{constructor(){const _0x3cdca0=_0x279361;super(),_(this,_0x3cdca0(0x2b7),_0x1667d1()),_(this,_0x3cdca0(0x1ed),new Set()),_(this,_0x3cdca0(0x224),new Map()),_(this,_0x3cdca0(0x29f),null),_(this,_0x3cdca0(0x19c),new Map()),_(this,'_unitStatus',new Map()),this[_0x3cdca0(0x275)]();}[_0x279361(0x1e2)](){const _0x58bd5c=_0x279361;super[_0x58bd5c(0x1e2)](),this[_0x58bd5c(0x19c)][_0x58bd5c(0x1a6)]((_0x2dd197,_0x4fc751)=>this[_0x58bd5c(0x1b9)](_0x4fc751)),this[_0x58bd5c(0x29f)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x279361(0x191)](_0x2026e5){const _0x207689=_0x279361;return this[_0x207689(0x245)](_0x2026e5)[_0x207689(0x34d)](_0x1fa727());}['editingUnit'](_0x740d3){const _0x248b2a=_0x279361;this[_0x248b2a(0x1ed)][_0x248b2a(0x1c4)]===0x0&&this[_0x248b2a(0x309)](),this[_0x248b2a(0x1ed)]['add'](_0x740d3),this[_0x248b2a(0x208)]({'type':0x0,'memberID':this[_0x248b2a(0x2b7)],'unitIDs':[_0x740d3],'isForwarded':!0x1});}['disposeUnit'](_0x455c6f){const _0x27f93c=_0x279361;this[_0x27f93c(0x1ed)][_0x27f93c(0x250)](_0x455c6f),this['_selfUnitIDs']['size']===0x0&&this[_0x27f93c(0x29f)]&&window[_0x27f93c(0x1e7)](this[_0x27f93c(0x29f)]);}['_init'](){const _0x556087=_0x279361;this[_0x556087(0x285)](_0x9a67c7(_0x175217(window,_0x556087(0x2e1))['subscribe'](_0x52f225=>{const _0x314140=_0x556087;if(_0x52f225[_0x314140(0x199)]!==dt||!_0x52f225[_0x314140(0x307)])return;const _0x52c968=JSON[_0x314140(0x2ff)](_0x52f225[_0x314140(0x307)]);this[_0x314140(0x330)](_0x52c968);}))),window[_0x556087(0x2b3)](_0x556087(0x2e8),()=>this[_0x556087(0x208)]({'type':0x1,'memberID':this[_0x556087(0x2b7)],'unitIDs':Array[_0x556087(0x23a)](this[_0x556087(0x1ed)])}));}[_0x279361(0x330)](_0x45ff37){const _0x4e3851=_0x279361;switch(_0x45ff37[_0x4e3851(0x297)]){case 0x0:this[_0x4e3851(0x334)](_0x45ff37);break;case 0x1:this[_0x4e3851(0x1d8)](_0x45ff37);break;case 0x2:this[_0x4e3851(0x2fc)](_0x45ff37);break;}}[_0x279361(0x334)](_0xaa0abb){const _0xd25f50=_0x279361,{unitIDs:_0x13915d,memberID:_0x5c8293,isForwarded:_0x5db55d}=_0xaa0abb;_0x13915d['forEach'](_0x31fdaf=>{const _0x4e17c1=_0x168c;if(!_0x5db55d&&this[_0x4e17c1(0x224)][_0x4e17c1(0x30e)](_0x31fdaf)&&this[_0x4e17c1(0x245)](_0x31fdaf)[_0x4e17c1(0x1e4)](_0x4fc1d9[_0x4e17c1(0x1c1)]),!this[_0x4e17c1(0x224)][_0x4e17c1(0x30e)](_0x31fdaf)||!this[_0x4e17c1(0x224)]['get'](_0x31fdaf)['has'](_0x5c8293)){const _0x56872c=this[_0x4e17c1(0x224)][_0x4e17c1(0x225)](_0x31fdaf)||new Set();_0x56872c[_0x4e17c1(0x169)](_0x5c8293),this[_0x4e17c1(0x224)][_0x4e17c1(0x357)](_0x31fdaf,_0x56872c),this[_0x4e17c1(0x33b)](_0x5c8293);}}),_0x5db55d||this[_0xd25f50(0x208)]({'type':0x0,'memberID':this[_0xd25f50(0x2b7)],'unitIDs':[...this[_0xd25f50(0x1ed)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2ebad9){const _0x184085=_0x279361;this['_removeClearOtherTimer'](_0x2ebad9);const _0x14647c=window[_0x184085(0x24d)](()=>{const _0x58a149=_0x184085;this[_0x58a149(0x224)][_0x58a149(0x1a6)](_0x21f5df=>{const _0x58171c=_0x58a149;_0x21f5df[_0x58171c(0x250)](_0x2ebad9);});},ut*0x2);this['_clearOtherTimers'][_0x184085(0x357)](_0x2ebad9,_0x14647c);}[_0x279361(0x1b9)](_0x428053){const _0x47bd42=_0x279361;if(this[_0x47bd42(0x19c)]['has'](_0x428053)){const _0xa7e22=this[_0x47bd42(0x19c)][_0x47bd42(0x225)](_0x428053);_0xa7e22&&window[_0x47bd42(0x21c)](_0xa7e22),this['_clearOtherTimers'][_0x47bd42(0x357)](_0x428053,null);}}[_0x279361(0x1d8)](_0x266a75){const _0x57d5a4=_0x279361,{memberID:_0x5896f6,unitIDs:_0x93b78d}=_0x266a75;_0x93b78d['forEach'](_0x40cc6f=>{const _0x363e3e=_0x168c;var _0x132386;const _0xe9c7b8=this[_0x363e3e(0x224)][_0x363e3e(0x225)](_0x40cc6f);_0xe9c7b8&&(_0xe9c7b8[_0x363e3e(0x250)](_0x5896f6),(_0x132386=this[_0x363e3e(0x245)](_0x40cc6f))==null||_0x132386[_0x363e3e(0x1e4)](_0xe9c7b8[_0x363e3e(0x1c4)]===0x0?_0x4fc1d9[_0x363e3e(0x214)]:_0x4fc1d9[_0x363e3e(0x1c1)]));}),this[_0x57d5a4(0x1b9)](_0x5896f6);}['_handleHeartbeatEvent'](_0x5236ba){const _0x2a8bb6=_0x279361;this[_0x2a8bb6(0x33b)](_0x5236ba[_0x2a8bb6(0x2db)]);}['_send'](_0xe34ece){const _0x3771e9=_0x279361;localStorage[_0x3771e9(0x2c3)](dt,JSON['stringify'](_0xe34ece));}[_0x279361(0x309)](){const _0x1e5d13=_0x279361;this['_heartbeatTimer']=window[_0x1e5d13(0x2bc)](()=>{const _0x4f4836=_0x1e5d13;this['_send']({'type':0x2,'memberID':this[_0x4f4836(0x2b7)]});},ut);}['_ensureSubject'](_0x43547d){const _0x2c3a75=_0x279361;return this[_0x2c3a75(0x25d)]['has'](_0x43547d)||this['_unitStatus']['set'](_0x43547d,new _0x5ccbb2(_0x4fc1d9[_0x2c3a75(0x214)])),this[_0x2c3a75(0x25d)][_0x2c3a75(0x225)](_0x43547d);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};
|