@univerjs-pro/collaboration-client-ui 0.10.10-nightly.202510180256 → 0.10.10-nightly.202510180327
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 +15 -15
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2bbfc0=_0x37eb;(function(_0xa634f8,_0x595693){const _0x2a4354=_0x37eb,_0x1ac593=_0xa634f8();while(!![]){try{const _0x253b47=-parseInt(_0x2a4354(0x9f))/0x1*(-parseInt(_0x2a4354(0x2b0))/0x2)+-parseInt(_0x2a4354(0x20b))/0x3*(parseInt(_0x2a4354(0x119))/0x4)+-parseInt(_0x2a4354(0x1a5))/0x5*(-parseInt(_0x2a4354(0x20e))/0x6)+-parseInt(_0x2a4354(0x176))/0x7+parseInt(_0x2a4354(0x213))/0x8+parseInt(_0x2a4354(0x11e))/0x9+-parseInt(_0x2a4354(0xb0))/0xa;if(_0x253b47===_0x595693)break;else _0x1ac593['push'](_0x1ac593['shift']());}catch(_0x14b6b1){_0x1ac593['push'](_0x1ac593['shift']());}}}(_0x3200,0x867a9));var kt=Object[_0x2bbfc0(0x24a)],Ht=(_0x1b1791,_0x56ef31,_0x314335)=>_0x56ef31 in _0x1b1791?kt(_0x1b1791,_0x56ef31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x314335}):_0x1b1791[_0x56ef31]=_0x314335,_=(_0x17ad82,_0x56b222,_0x3edb40)=>Ht(_0x17ad82,typeof _0x56b222!='symbol'?_0x56b222+'':_0x56b222,_0x3edb40);import{jsx as _0x443533,jsxs as _0x4fd046}from'react/jsx-runtime';import{CollaborationStatus as _0x5d7737,CollaborationSessionService as _0x58599f,CollaborationController as _0x2b7630,DataLoaderService as _0x363f62,MemberService as _0x347a1d,SessionStatus as _0x2b7eae,ILocalCacheService as _0x4ed506,CollaborationUIEventService as _0x28b574,CollaborationUIEventId as _0x1e97d7,DocCollaborationEntity as _0x2d6d9e,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x7af401,getLocalCacheKey as _0x51b148,LOCAL_CACHE_INTERVAL as _0x38f5fd,LOCAL_CACHE_INTERVAL_KEY as _0x288778,UniverCollaborationClientPlugin as _0x37b9c2,CollaborationSocketService as _0x5f3153,DEFAULT_WS_SESSION_TICKET_URL as _0xe1ee62,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x46f103,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2e05a3,UnitStatus as _0x1f6484}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5c0eee,IUniverInstanceService as _0x134894,Inject as _0xe4420f,Injector as _0x1210ca,Disposable as _0x33140b,createIdentifier as _0x50c6b9,ILogService as _0x3730ba,ICommandService as _0x11a32e,Optional as _0x266b33,RxDisposable as _0x4e1f77,Workbook as _0x467acf,DOC_RANGE_TYPE as _0x2bf401,debounce as _0x424e7a,Rectangle as _0xb02db3,DisposableCollection as _0x2be5dc,toDisposable as _0x1ac1e9,UniverInstanceType as _0x1cfcdd,generateRandomId as _0x3f3b85,COLORS as _0x48ceb4,ColorKit as _0x4c835d,ThemeService as _0x9d0d41,fromEventSubject as _0x5a0019,Tools as _0x2e781f,CommandType as _0x54fa3d,IConfigService as _0x30d503,CanceledError as _0x537125,isFormulaString as _0x35945a,isFormulaId as _0x225aae,ILocalStorageService as _0x2e3221,DependentOn as _0x295dd0,Plugin as _0x55752a,merge as _0x3d3de8,registerDependencies as _0x28c056,mergeOverrideWithDependencies as _0x3e2af9,touchDependencies as _0x58adf6}from'@univerjs/core';import{useObservable as _0xbcbd68,useDependency as _0xfb72c7,IUIPartsService as _0x31b975,BuiltInUIPart as _0x1c46c4,connectInjector as _0x2f6fd1,IBeforeCloseService as _0x2971a2,IMessageService as _0x3a98c,INotificationService as _0x2e7dbf}from'@univerjs/ui';import{BehaviorSubject as _0x4efa81,switchMap as _0x62b60b,of as _0x5093ec,takeUntil as _0x4df633,debounceTime as _0x3ebc8a,Subject as _0xc8c736,filter as _0x1a47af,merge as _0x4815eb,combineLatest as _0x5513b8,fromEvent as _0x2a21d1,shareReplay as _0x554b68,mapTo as _0x2cc6a8,distinctUntilChanged as _0x7075d3}from'rxjs';import{Tooltip as _0x3ccff7,clsx as _0x54b50f,MessageType as _0x1ee61d}from'@univerjs/design';import{forwardRef as _0x2fe3ad,useRef as _0x187c86,createElement as _0x195f4f,useCallback as _0x4e29d5}from'react';import{IRemoteInstanceService as _0x3c60d8}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x18aa59,RefRangeService as _0xed93aa,SetSelectionsOperation as _0x4e87b6,SheetsSelectionsService as _0x253e43,EffectRefRangId as _0x3b25e9,handleIRemoveRow as _0x1fdb03,handleIRemoveCol as _0x1d2a6e,handleMoveRange as _0x5576d3,handleInsertRow as _0x41b124,handleInsertRangeMoveRight as _0x29f177,handleInsertRangeMoveDown as _0x159733,handleInsertCol as _0x434b98,handleDeleteRangeMoveUp as _0x1cadfa,handleDeleteRangeMoveLeft as _0x1e9b5a,runRefRangeMutations as _0xe508c1}from'@univerjs/sheets';import{Shape as _0x4aa97d,Rect as _0x451bdd,getColor as _0x4442f2,RegularPolygon as _0x5f3ecd,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x36addb,Vector2 as _0x2b1212,SHEET_VIEWPORT_KEY as _0x2e87b4,IRenderManagerService as _0x19c917}from'@univerjs/engine-render';import{HTTPService as _0x238c80,ISocketService as _0x33b3ff,WebSocketService as _0x2777f1}from'@univerjs/network';import{IDocClipboardService as _0x55c0e0,NodePositionConvertToCursor as _0x329fc9,NodePositionConvertToRectRange as _0x8de7c9,TEXT_RANGE_LAYER_INDEX as _0x1fad5c,SetDocZoomRatioOperation as _0x11de14,DocIMEInputManagerService as _0x2d13c9,DocStateChangeManagerService as _0x2267bc}from'@univerjs/docs-ui';import{IImageIoService as _0x1870e3}from'@univerjs/drawing';import{ITransformService as _0x3f1e23,CollaborationEvent as _0x289776,isTransformMutationFailure as _0x2dd155,isTransformMutationsWithChangesetSuccess as _0x32c556,RevisionService as _0x197814,ISnapshotServerService as _0x34715b}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x21ffc3,RichTextEditingMutation as _0x4a3328,DocSelectionManagerService as _0x161ce0,DocSkeletonManagerService as _0x4cf177}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4d9571,serializeRangeWithSheet as _0x4ae4ab,FormulaExecuteStageType as _0x3a8233,FormulaExecutedStateType as _0x58753e,SetFormulaCalculationStartMutation as _0x28dfaa,SetFormulaCalculationNotificationMutation as _0x91d66}from'@univerjs/engine-formula';import{map as _0x304645,filter as _0x3f463c,throttleTime as _0x4acb06,takeUntil as _0x12494f,switchMap as _0x9b89d}from'rxjs/operators';import{SheetSkeletonManagerService as _0x386628,getCoordByCell as _0x20d31e,getSheetObject as _0x5b1714}from'@univerjs/sheets-ui';var g=function(){const _0x2d3b87=_0x2bbfc0;return g=Object['assign']||function(_0x1aa232){const _0xd1c316=_0x37eb;for(var _0x5f3557,_0x25a1bb=0x1,_0x4f47a0=arguments[_0xd1c316(0x1f3)];_0x25a1bb<_0x4f47a0;_0x25a1bb++){_0x5f3557=arguments[_0x25a1bb];for(var _0x4dcf5b in _0x5f3557)Object[_0xd1c316(0x15c)][_0xd1c316(0x2d4)][_0xd1c316(0x18f)](_0x5f3557,_0x4dcf5b)&&(_0x1aa232[_0x4dcf5b]=_0x5f3557[_0x4dcf5b]);}return _0x1aa232;},g[_0x2d3b87(0xbe)](this,arguments);},Ii=function(_0x415447,_0x4f91aa){const _0x3a64d2=_0x2bbfc0;var _0x464adc={};for(var _0x43e555 in _0x415447)Object[_0x3a64d2(0x15c)][_0x3a64d2(0x2d4)][_0x3a64d2(0x18f)](_0x415447,_0x43e555)&&_0x4f91aa[_0x3a64d2(0x128)](_0x43e555)<0x0&&(_0x464adc[_0x43e555]=_0x415447[_0x43e555]);if(_0x415447!=null&&typeof Object[_0x3a64d2(0x204)]==_0x3a64d2(0x1f7)){for(var _0x14601b=0x0,_0x43e555=Object['getOwnPropertySymbols'](_0x415447);_0x14601b<_0x43e555['length'];_0x14601b++)_0x4f91aa[_0x3a64d2(0x128)](_0x43e555[_0x14601b])<0x0&&Object[_0x3a64d2(0x15c)][_0x3a64d2(0x16b)][_0x3a64d2(0x18f)](_0x415447,_0x43e555[_0x14601b])&&(_0x464adc[_0x43e555[_0x14601b]]=_0x415447[_0x43e555[_0x14601b]]);}return _0x464adc;},Xe=_0x2fe3ad(function(_0x1595c8,_0x3402a7){const _0x47557d=_0x2bbfc0;var _0x58d5b5=_0x1595c8['icon'],_0x50bdff=_0x1595c8['id'],_0x3871ba=_0x1595c8[_0x47557d(0x281)],_0x75cc14=_0x1595c8[_0x47557d(0xee)],_0x57da30=Ii(_0x1595c8,[_0x47557d(0x13d),'id',_0x47557d(0x281),_0x47557d(0xee)]),_0x29e764='univerjs-icon\x20univerjs-icon-'[_0x47557d(0x10b)](_0x50bdff,'\x20')['concat'](_0x3871ba||'')['trim'](),_0x42487a=_0x187c86('_'['concat'](Ei()));return Lt(_0x58d5b5,''[_0x47557d(0x10b)](_0x50bdff),{'defIds':_0x58d5b5[_0x47557d(0x10e)],'idSuffix':_0x42487a[_0x47557d(0x1cd)]},g({'ref':_0x3402a7,'className':_0x29e764},_0x57da30),_0x75cc14);});function Lt(_0x3f8f7d,_0x1ab8fc,_0x3f4e27,_0xe9f6d5,_0x781dda){const _0x1b713d=_0x2bbfc0;return _0x195f4f(_0x3f8f7d[_0x1b713d(0x2a8)],g(g({'key':_0x1ab8fc},gi(_0x3f8f7d,_0x3f4e27,_0x781dda)),_0xe9f6d5),(vi(_0x3f8f7d,_0x3f4e27)['children']||[])[_0x1b713d(0x1c0)](function(_0x59e6b0,_0x257207){const _0x3c2092=_0x1b713d;return Lt(_0x59e6b0,''[_0x3c2092(0x10b)](_0x1ab8fc,'-')[_0x3c2092(0x10b)](_0x3f8f7d['tag'],'-')['concat'](_0x257207),_0x3f4e27,void 0x0,_0x781dda);}));}function gi(_0x3fe1ea,_0x40003f,_0x378269){const _0x6cbda1=_0x2bbfc0;var _0x32ed53=g({},_0x3fe1ea[_0x6cbda1(0xda)]);_0x378269!=null&&_0x378269[_0x6cbda1(0x1d4)]&&_0x32ed53[_0x6cbda1(0x132)]===_0x6cbda1(0x1d4)&&(_0x32ed53[_0x6cbda1(0x132)]=_0x378269[_0x6cbda1(0x1d4)]),_0x3fe1ea['tag']===_0x6cbda1(0xaf)&&_0x32ed53['id']&&(_0x32ed53['id']=_0x32ed53['id']+_0x40003f['idSuffix']),Object[_0x6cbda1(0x12c)](_0x32ed53)[_0x6cbda1(0xd1)](function(_0x1b8635){const _0x4173e3=_0x6cbda1;var _0x5de345=_0x1b8635[0x0],_0x27d9e4=_0x1b8635[0x1];_0x5de345===_0x4173e3(0xaf)&&typeof _0x27d9e4==_0x4173e3(0x1b5)&&(_0x32ed53[_0x5de345]=_0x27d9e4[_0x4173e3(0xef)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x40003f['idSuffix'],')')));});var _0x18741d=_0x40003f[_0x6cbda1(0x10e)];return!_0x18741d||_0x18741d[_0x6cbda1(0x1f3)]===0x0||(_0x3fe1ea['tag']==='use'&&_0x32ed53[_0x6cbda1(0x114)]&&(_0x32ed53[_0x6cbda1(0x114)]=_0x32ed53[_0x6cbda1(0x114)]+_0x40003f['idSuffix']),Object[_0x6cbda1(0x12c)](_0x32ed53)[_0x6cbda1(0xd1)](function(_0x451e5d){const _0x41758d=_0x6cbda1;var _0x332b4d=_0x451e5d[0x0],_0x1d929d=_0x451e5d[0x1];typeof _0x1d929d==_0x41758d(0x1b5)&&(_0x32ed53[_0x332b4d]=_0x1d929d[_0x41758d(0xef)](/url\(#(.*)\)/,'url(#$1'[_0x41758d(0x10b)](_0x40003f['idSuffix'],')')));})),_0x32ed53;}function vi(_0x41353c,_0x11af0c){const _0x39c92c=_0x2bbfc0;var _0x28ff0b,_0x287fdb=_0x11af0c[_0x39c92c(0x10e)];return!_0x287fdb||_0x287fdb['length']===0x0?_0x41353c:_0x41353c['tag']===_0x39c92c(0x208)&&(!((_0x28ff0b=_0x41353c[_0x39c92c(0x260)])===null||_0x28ff0b===void 0x0)&&_0x28ff0b['length'])?g(g({},_0x41353c),{'children':_0x41353c[_0x39c92c(0x260)][_0x39c92c(0x1c0)](function(_0x49fbee){const _0x483c63=_0x39c92c;return typeof _0x49fbee[_0x483c63(0xda)]['id']==_0x483c63(0x1b5)&&_0x287fdb&&_0x287fdb[_0x483c63(0x2d0)](_0x49fbee[_0x483c63(0xda)]['id'])?g(g({},_0x49fbee),{'attrs':g(g({},_0x49fbee[_0x483c63(0xda)]),{'id':_0x49fbee[_0x483c63(0xda)]['id']+_0x11af0c[_0x483c63(0xe9)]})}):_0x49fbee;})}):_0x41353c;}function Ei(){const _0x3f5d21=_0x2bbfc0;return Math[_0x3f5d21(0xba)]()[_0x3f5d21(0xcb)](0x24)[_0x3f5d21(0x135)](0x2,0x8);}Xe[_0x2bbfc0(0x224)]=_0x2bbfc0(0xa3);var pi={'tag':_0x2bbfc0(0x214),'attrs':{'xmlns':_0x2bbfc0(0x14e),'fill':_0x2bbfc0(0x201),'viewBox':_0x2bbfc0(0x28b),'width':_0x2bbfc0(0x235),'height':_0x2bbfc0(0x235)},'children':[{'tag':'g','attrs':{'clipPath':_0x2bbfc0(0x2bd)},'children':[{'tag':_0x2bbfc0(0x1c8),'attrs':{'stroke':_0x2bbfc0(0x183),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x2bbfc0(0x1e3),'strokeWidth':1.2}}]},{'tag':_0x2bbfc0(0x208),'attrs':{},'children':[{'tag':_0x2bbfc0(0xe0),'attrs':{'id':_0x2bbfc0(0x152)},'children':[{'tag':_0x2bbfc0(0x1c8),'attrs':{'fill':_0x2bbfc0(0x14f),'d':_0x2bbfc0(0x123)}}]}]}],'defIds':[_0x2bbfc0(0x152)]},Mt=_0x2fe3ad(function(_0x2e0f4c,_0x5a3ada){const _0x354789=_0x2bbfc0;return _0x195f4f(Xe,Object[_0x354789(0x184)]({},_0x2e0f4c,{'id':_0x354789(0x250),'ref':_0x5a3ada,'icon':pi}));});Mt['displayName']=_0x2bbfc0(0x2be);var Oi={'tag':_0x2bbfc0(0x214),'attrs':{'xmlns':_0x2bbfc0(0x14e),'fill':_0x2bbfc0(0x201),'viewBox':_0x2bbfc0(0x160),'width':'1em','height':_0x2bbfc0(0x235)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x2bbfc0(0x1a6),'strokeLinecap':_0x2bbfc0(0x1e3),'strokeLinejoin':_0x2bbfc0(0x1e3),'strokeWidth':1.2}}]},{'tag':_0x2bbfc0(0x208),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2bbfc0(0x1fd)},'children':[{'tag':_0x2bbfc0(0x1c8),'attrs':{'fill':_0x2bbfc0(0x14f),'d':'M0\x200H16V16H0z','transform':_0x2bbfc0(0x25e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},At=_0x2fe3ad(function(_0x574825,_0x49c55e){const _0x788d05=_0x2bbfc0;return _0x195f4f(Xe,Object[_0x788d05(0x184)]({},_0x574825,{'id':_0x788d05(0xf7),'ref':_0x49c55e,'icon':Oi}));});At['displayName']=_0x2bbfc0(0x12a);function Ti(_0x4b4219){const _0x72fc8d=_0x2bbfc0;switch(_0x4b4219){case _0x5d7737[_0x72fc8d(0x2d5)]:return'collabStatus.offline';case _0x5d7737[_0x72fc8d(0x2b5)]:return _0x72fc8d(0x1cc);case _0x5d7737[_0x72fc8d(0xc4)]:return'collabStatus.fetchMiss';case _0x5d7737[_0x72fc8d(0x102)]:return'collabStatus.notCollab';case _0x5d7737[_0x72fc8d(0x1f9)]:case _0x5d7737[_0x72fc8d(0x142)]:return'collabStatus.syncing';case _0x5d7737[_0x72fc8d(0x134)]:case _0x5d7737[_0x72fc8d(0x120)]:return _0x72fc8d(0x16a);}}function Ci(_0x49cfc1){const _0x421762=_0x2bbfc0,{status$:_0x202c8d}=_0x49cfc1,_0x299ec5=_0xbcbd68(_0x202c8d,_0x5d7737[_0x421762(0x102)]),_0x27d217=_0xfb72c7(_0x5c0eee),_0x3d225a=_0xfb72c7(_0x58599f),_0x4e154f=_0x299ec5!==_0x5d7737[_0x421762(0x2d5)],_0x575c0a=_0x27d217['t'](Ti(_0x299ec5)),_0x558001=_0x4e154f?_0x443533(At,{}):_0x443533(Mt,{}),_0x51c606=_0x4e29d5(()=>{_0x4e154f||_0x3d225a['reconnect']();},[_0x4e154f,_0x3d225a]);function _0x4fc59d(){const _0x51aab3=_0x421762;return _0x4fd046(_0x51aab3(0x171),{'className':'univer-flex\x20univer-items-center','onClick':_0x51c606,'children':[_0x443533(_0x51aab3(0x171),{'className':_0x54b50f(_0x51aab3(0x233),{'univer-text-green-500':_0x4e154f,'univer-text-red-500':!_0x4e154f}),'children':_0x558001}),_0x443533(_0x51aab3(0x171),{'className':_0x51aab3(0x244),'children':_0x575c0a})]});}return _0x4e154f?_0x4fc59d():_0x443533(_0x3ccff7,{'title':_0x27d217['t'](_0x421762(0xf8)),'children':_0x4fc59d()});}var Ri=Object[_0x2bbfc0(0x148)],Di=(_0x4baf2c,_0x1792e3,_0x21b5de,_0x1be0b0)=>{const _0x17ed50=_0x2bbfc0;for(var _0x5914be=_0x1be0b0>0x1?void 0x0:_0x1be0b0?Ri(_0x1792e3,_0x21b5de):_0x1792e3,_0x421d30=_0x4baf2c[_0x17ed50(0x1f3)]-0x1,_0x466cef;_0x421d30>=0x0;_0x421d30--)(_0x466cef=_0x4baf2c[_0x421d30])&&(_0x5914be=_0x466cef(_0x5914be)||_0x5914be);return _0x5914be;},ie=(_0xa646ba,_0x27961c)=>(_0x461cd4,_0x256a23)=>_0x27961c(_0x461cd4,_0x256a23,_0xa646ba);function _0x3200(){const _0x3829e2=['runId','getUnitStatus$','SOCKET_FAILED_RETRY','with','jiqing.500','push','_transformUndoRedoStack','getCollabEntity$','row','error','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_AI_RUN_FAILED','UNIVER_SHEET','getRenderById','univer-mr-2\x20univer-flex\x20univer-text-xl','ENSURE_SNAPSHOT_EXECUTION','1em','runOnServer','WECHAT_HAS_BEEN_BOUND','unitID','_unitOnClients','name','_cursors','actions','show','getCurrentUnitForType','getTypeOfUnitAdded$','_handleEvent','onPointerMove$','VIEW_MAIN','_online','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_scheduleHeartbeat','isActive','TOO_MANY_REQUESTS','_color','_updateLocalCursor','defineProperty','getUnitId','_hovered','_initCommandExecutedListener','focused$','stringify','off-line-icon','flatMap','history','_refreshCollabCursors','_roomMembers$','mutations','font','has','ENTITLE_REPORT_LIMIT_EXCEED','getSheetId','memberID','isArray','_assignedColors','sessionTicket','translate(.97)','setTimeout','children','_docSkeleton','getMemberID','?taskId=','collab-text-anchor-','_ensureSubject','_init','_lastPointer','min','_removeCollabCursors','collaboration.single-unit.warning','getAncestorScale','delete','RemoveColCommandId','_registerRenderDependencies','getActiveRange','getCurrent','onCommandExecuted','EMAIL_HAS_BEEN_BOUND','save','subscribe','data','_startDocCollabCursor','purple.300','unsubscribe','size','_drawAnchor','_handleHeartbeatEvent','onPointerEnter$','InsertRowCommandId','FromArray','replaceState','height','className','getSkeleton','ENTITLE_NEED_BILLING_ADDRESS','_syncEditingCollabCursorService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_initCommandInterceptor','_docClipboardService','_localeService','permission.title','setItem','0\x200\x2016\x2016','getValue','maxFormulaLimit','COMPLETION_FINISHED','_handleLeaveEvent','_initEntityListener','ticket','max','doc.mutation.rich-text-editing','stageInfo','transformSelections','_httpService','unitId','YUUMI_RATE_OVER_LIMIT','black','REDEMPTION_CODE_NOT_STARTED','getUnit','NO_OTHER_CLIENTS_EDITING','CURRENT_STATUS_CANNOT_OPERATE','_shapes','transformMutationsWithChangeset','rgba(255,\x20255,\x20255,\x200.01)','unshift','UNAUTHENTICATED','next','selections','setActiveRange','_id','INVITE_CODE_HAS_BEEN_UES','tag','Warning','transformMutation','fillText','_releaseCalculationLimit','OTHER_CLIENTS_EDITING','_getMergeRange','_clearPolling','347506NjHSAz','_getFormulaLimitStatus','addHandlerCallback','MOBILE_HAS_BEEN_BOUND','_updateCollabCursors','CONFLICT','ranges','skeleton','eventID','undoState','subunit','measureText','_textBubble','url(#off-line-icon_clip0_910_343)','OffLineIcon','APPLY_REVISION_CONFILICT','enableLocalCache','getVpScrollXYInfoByPosToVp','findNodePositionByCharIndex','cursorInfo$','_anchor','closePath','SUBMIT_CHANGESET_TIMEOUT','EMAIL_VERIFY_CODE_MISMATCH','fillRule','YUUMI_URL_COL_OUT_OF_RANGE','INVALID_INVITE_CODE','yellow.400','LICENSE_EXPORT_SIZE_EXCEEDED','_removeClearOtherTimer','UNDEFINED','REDEMPTION_INVALID_CODE','includes','redoState','_checkCalculationAvailable','SNAPSHOT_INVALID_SNAPSHOT','hasOwnProperty','OFFLINE','column','asObservable','setConfig','startFormulaLimitUrl','...','newValue','location','event$','_name','_session','collabCursorState$','_pollingInterval','4vmFNuM','_setupBeforeClosingHandler','_selfUnitIDs','CHANGESET_REVISION_CONFILICT','UniverIcon','_beforeCloseService','MUTATION','disableLocalCache','INVITE_CODE_ALREADY_BOUND','/run/','get','getStateCache','dirtyRanges','removeParam','YUUMI_SUBSCRIPTION_NOT_FOUND','text','mask','18213140ZihLqo','docStateChange$','textRanges','ERROR_AGAIN','_startCalculationLimit','functionsExecutedState','updateOfflineData','hovered','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getParam','random','_univerInstanceService','_anchorDot','onPointerLeave$','apply','formula.calculation.waiting','Unknown\x20user','syncEditingCollabCursor','cursorInfo','_scene','FETCH_MISS','transform','RemoveRowCommandId','getTypeOfUnitDisposed$','_getScale','transformStateCache','code','toString','_collaborationController','getMergeData','_refRangeService','_transformPreviousActiveRange','getColorFromTheme','forEach','getCollabCursors$','currentUsage','_createSocketURL','_handleJoinEvent','_heartbeatTimer','evenodd','_cursorShapes','JOIN_ROOM_FAILED','attrs','invokeId','key','_toggleOffline','unit','registerBeforeClose','clipPath','init','RECT','transformIMECache','getFocusedUnit','collaboration-client.offline-data-not-saved','_instanceService','INVITE_CODE_REQUIRED','getRangePointData','idSuffix','now','_setupSubUnitSync','SUCCESS','USER_NOT_FOUND','extend','replace','body','_docStateChangeManagerService','APPLY_DUPLICATED','color','OTHER_CLIENT_EDITING','formula.calculation.started','_getAnchorBounding','on-line-icon','collab-client.tooltip.reconnect','USER_NOT_INVITED_CODE','_entityInit$','PERMISSION_DENIED','_memberService','_setFormulaLimitStatus','sheetId','toRgbString','_backgroundColor','bottom','NOT_COLLAB','/universer-api/license/formula/limit/done','_labelPosition','USERS_LEAVE','setAlpha','_toggleOnline','_checkAndWaitForCalculationPermission','m1Prime','_initStatusListener','concat','_cursorInfo$','_showGuardMessage','defIds','parse','imageSourceType','roomMembers$','then','triggerDblclick','xlink:href','startRow','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HEADER_MENU','_registerDependencies','1608632RHdepo','_status$','application/json','AUTHORIZE_CODE_ILLEGAL','_getSessionTicket','7392051yBwlUT','fillStyle','PENDING','limitInfo','CONNECTOR_DATA_TOO_LARGE','M0\x200H16V16H0z','getCellMatrix','_config','TEXT','YUUMI_UNABLE_LOAD_URL','indexOf','addObjects','OnLineIcon','getUndoRedoMutationParamsCache','entries','hide','currentSkeleton$','releaseFormulaLimitUrl','_initStatusComponent','_docTransformIMECacheService','fill','_initDependencies','SYNCED','substring','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','disposeWithMe','_collabCursorState$','m2Prime','_updateSubUnitFromURLParams','_docTransformSelectionsService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','icon','LICENSE_MAX_UNITS_EXCEEDED','_doCreateSocket','override','_dataLoaderService','AWAITING_WITH_PENDING','origin','ONLINE','_cursor','APPLY_NON_SEQUENTIAL_REVISION','_range','getOwnPropertyDescriptor','range','PY_RUNTIME_SCRIPT_ERROR','createSocket','_localStorageService','_collabSessionService','http://www.w3.org/2000/svg','white','_taskIds','ACTIVE_UNIT_EVENT_CHANNEL','off-line-icon_clip0_910_343','href','_getSheetObject','_uiPartsService','_disabled','add','_localCacheService','all','addClipboardHook','currentTheme$','prototype','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','debug','totalFormulasToCalculate','0\x200\x2017\x2016','_colorIndex','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_hideTimer','formula.calculation.unable','_startSheetCollabCursor','green.600','_hasFormulaInDirtyRanges','START_CALCULATION','_injector','collabStatus.synced','propertyIsEnumerable','_unitStatus','_urlService','_transformService','pluginName','_currentUsage','div','_eventUnsubscribe','engine','getActiveSheet','drawWith','1103004pyFxqa','SOCKET_FAILED','_maxFormulaLimit','clearTimeout','REDEMPTION_CODE_INACTIVE','params','[CollaborationDataLoaderController]','endColumn','result','some','width','whenReady','REDEMPTION_CODE_HAS_BEEN_CREATED','currentColor','assign','_themeService','_transformHistoryAndStateStack','_saveCache','unload','_messageService','uni.network.url-service','urlChange$','_docSkeletonManagerService','_render','YUUMI_TABLE_NOT_FOUND_IN_UNIT','call','registerComponent','contains','YUUMI_ALL_TABLES_IS_INVALID','selection','_clearOtherTimers','_send','subscribeEvent','_hover','getConfig','collaboration.closeRoom','red.300','#FFF','disposeUnit','getCurrentRevOfUnit','_colorAssignService','_initEvent','LICENSE_DISTRO_REJECTED','REDEMPTION_CODE_FULLY_REDEEMED','loadUnit','deepClone','_logService','1402685nhbylf','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','set','sessionStatus$','setShapeProps','_scheduleSaving','createInstance','YUUMI_CONNECTOR_URL_NOT_FOUND','_context','isEditing','_onCursorDelete','_commandService','ALREADY_EXISTS','saveTaskMap','collab-rect-range-','SNAPSHOT_HAS_BEEN_REMOVED','string','getItem','INTERNAL_ERROR','moveTo','send','beforeCommandExecuted','APPLY_REJECT','_applyCommand','getSheetBySheetId','complete','onLocalMutation','map','exhaustSavingTask','requireSession','top','endRow','_onCursorUpdate','registerRefRange','subUnitId','path','_handleHover','Error','lineTo','collabStatus.conflict','current','MOBILE_VERIFY_CODE_MISMATCH','_scheduleClearOtherTimer','_saveTaskMap','PAYMENT_CHANNEL_NOT_SUPPORT','InsertRangeMoveRightCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','colorChannel1','addEventListener','values','arc','startColumn','_sheetSkeletonManagerService','transformRemoteChangeset','type','executeCommand','search','_configService','YUUMI_NO_CUBOID_FOR_QUESTION','searchParams','_initResize','assignAColorForMemberID','round','_revisionService','_drawRectRange','restore','_imageIoService','split','_getSaveTimeout','_entities','source','getDocRanges','_renderManagerService','collaboration-client-ui.config','dispose$','from','parseInt','REDEMPTION_USER_NOT_ELIGIBLE','length','dispose','_collabCursorController','[RemoteUniscriptService]:\x20no\x20focused\x20unit','function','NOT_FOUND','AWAITING','getMember','editingUnit','Failed','on-line-icon_clip0_910_349','LICENSE_IMPORT_SIZE_EXCEEDED','getformulaLimitStatusUrl','USER_IS_ANONYMOUS','none','shift','saveOfflineData','getOwnPropertySymbols','UPDATE_CURSOR','addObject','_cachedData','defs','post','wsSessionTicketUrl','3xhMgWS','pipe','resize','12zjvPXI','beginPath','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_notificationService','_drawTextRange','6835552DvPjjE','svg','_document','ENTITLE_DUP_SUBSCRIPTION','UNIVER_DOC','_docSyncEditingCollabCursorService','collab-text-range-','LOGIN_FAILED','labelPosition','roomMembers','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_lastResponseTimestamp','setParam','onMouseMove','_docTransformStateCacheService','getOffsetConfig','_updateURLWithCurrentState','displayName'];_0x3200=function(){return _0x3829e2;};return _0x3200();}let ae=class extends _0x33140b{constructor(_0x5ebbba,_0x50889c,_0x5b9072,_0x4e57a2){const _0x271073=_0x2bbfc0;super(),_(this,_0x271073(0x11a),new _0x4efa81(_0x5d7737['NOT_COLLAB'])),(this[_0x271073(0xbb)]=_0x5ebbba,this[_0x271073(0x169)]=_0x50889c,this[_0x271073(0xcc)]=_0x5b9072,this['_uiPartsService']=_0x4e57a2,this[_0x271073(0x130)](),this['_initStatusListener']());}[_0x2bbfc0(0x10a)](){const _0x4c9f6c=_0x2bbfc0;this[_0x4c9f6c(0x137)](this[_0x4c9f6c(0xbb)][_0x4c9f6c(0x24e)][_0x4c9f6c(0x20c)](_0x62b60b(()=>{const _0x471b22=_0x4c9f6c,_0x24a21e=this[_0x471b22(0xbb)][_0x471b22(0xe4)]();return _0x24a21e?this[_0x471b22(0xcc)][_0x471b22(0x22c)](_0x24a21e['getUnitId']()):_0x5093ec(null);}),_0x62b60b(_0x4da8d0=>_0x4da8d0?_0x4da8d0['status$']:_0x5093ec(_0x5d7737[_0x4c9f6c(0x102)])))[_0x4c9f6c(0x274)](_0x3815db=>{const _0x2ea53e=_0x4c9f6c;this[_0x2ea53e(0x11a)][_0x2ea53e(0x2a3)](_0x3815db);}));}[_0x2bbfc0(0x130)](){const _0x3f0c62=_0x2bbfc0;this[_0x3f0c62(0x137)](this[_0x3f0c62(0x155)][_0x3f0c62(0x190)](_0x1c46c4[_0x3f0c62(0x117)],()=>_0x2f6fd1(bi({'status$':this[_0x3f0c62(0x11a)][_0x3f0c62(0x2d7)]()}),this[_0x3f0c62(0x169)])));}};ae=Di([ie(0x0,_0x134894),ie(0x1,_0xe4420f(_0x1210ca)),ie(0x2,_0xe4420f(_0x2b7630)),ie(0x3,_0x31b975)],ae);function bi(_0x51d451){const {status$:_0x3342e8}=_0x51d451;return function(){return _0x443533(Ci,{'status$':_0x3342e8});};}const Pt=_0x50c6b9(_0x2bbfc0(0x18a));var Ni=Object[_0x2bbfc0(0x148)],Ui=(_0x25fde3,_0x1bd649,_0x737490,_0x3df91e)=>{const _0x4358e4=_0x2bbfc0;for(var _0xe3466=_0x3df91e>0x1?void 0x0:_0x3df91e?Ni(_0x1bd649,_0x737490):_0x1bd649,_0x1c3c80=_0x25fde3[_0x4358e4(0x1f3)]-0x1,_0x473e66;_0x1c3c80>=0x0;_0x1c3c80--)(_0x473e66=_0x25fde3[_0x1c3c80])&&(_0xe3466=_0x473e66(_0xe3466)||_0xe3466);return _0xe3466;},z=(_0x266147,_0x3315f0)=>(_0x3be5aa,_0x3ce307)=>_0x3315f0(_0x3be5aa,_0x3ce307,_0x266147);let ce=class extends _0x4e1f77{constructor(_0x43c2f6,_0x35e8af,_0x58ec54,_0x3796d0,_0x3e7bf8){const _0x20f326=_0x2bbfc0;super(),this[_0x20f326(0x16d)]=_0x43c2f6,this['_logService']=_0x35e8af,this[_0x20f326(0x1b0)]=_0x58ec54,this[_0x20f326(0x141)]=_0x3796d0,_0x3e7bf8?_0x3e7bf8==null||_0x3e7bf8[_0x20f326(0x181)]()[_0x20f326(0x112)](()=>this['_init']()):(this['_logService'][_0x20f326(0x15e)]('[CollaborationDataLoaderController]',_0x20f326(0x15d)),this[_0x20f326(0x266)]());}async['_init'](){const _0x2a837c=_0x2bbfc0,_0x549ce2=this[_0x2a837c(0x16d)]['getParam'](_0x2a837c(0xde)),_0x5a3d90=this[_0x2a837c(0x16d)]['getParam'](_0x2a837c(0x1db)),_0xd4473e=this[_0x2a837c(0x16d)][_0x2a837c(0xb9)](_0x2a837c(0x2ba));if(!_0x549ce2||!_0x5a3d90){this[_0x2a837c(0x1a4)]['debug'](_0x2a837c(0x17c),_0x2a837c(0x116));return;}const _0x2f4d80=await this['_dataLoaderService'][_0x2a837c(0x1a2)](_0x549ce2,Number(_0x5a3d90),_0xd4473e);_0x2f4d80&&_0x2f4d80 instanceof _0x467acf&&this[_0x2a837c(0xeb)](_0x2f4d80);}async[_0x2bbfc0(0xeb)](_0x2d0829){const _0x53af41=_0x2bbfc0;await this[_0x53af41(0x13a)](_0x2d0829),_0x2d0829['activeSheet$'][_0x53af41(0x20c)](_0x4df633(this[_0x53af41(0x1ef)]))['subscribe'](_0x9f1d54=>{const _0x3f6eb6=_0x53af41;_0x9f1d54&&this[_0x3f6eb6(0x223)](_0x9f1d54);}),this[_0x53af41(0x16d)][_0x53af41(0x18b)][_0x53af41(0x20c)](_0x4df633(this['dispose$']))[_0x53af41(0x274)](()=>this[_0x53af41(0x13a)](_0x2d0829));}[_0x2bbfc0(0x223)](_0xe1ee9f,_0x975b84=!0x1){const _0x15a52c=_0x2bbfc0,_0x446607=this[_0x15a52c(0x16d)][_0x15a52c(0xb9)]('subunit');_0xe1ee9f[_0x15a52c(0x259)]()!==_0x446607&&this[_0x15a52c(0x16d)][_0x15a52c(0x21f)](_0x15a52c(0x2ba),_0xe1ee9f['getSheetId'](),_0x975b84);}async[_0x2bbfc0(0x13a)](_0x4ed3ff){const _0xda9c93=_0x2bbfc0;var _0x3b7df1;const _0x3b2bf2=this['_urlService'][_0xda9c93(0xb9)](_0xda9c93(0x2ba));if(!_0x3b2bf2||!_0x4ed3ff[_0xda9c93(0x1bd)](_0x3b2bf2)){const _0x1a879d=_0x4ed3ff['getUnhiddenWorksheets']()[0x0],_0x5fbe47=_0x4ed3ff[_0xda9c93(0x1bd)](_0x1a879d);if(!_0x5fbe47)return;this[_0xda9c93(0x223)](_0x5fbe47,!0x0),await this[_0xda9c93(0x1b0)][_0xda9c93(0x1dc)](_0x18aa59['id'],{'unitId':_0x4ed3ff[_0xda9c93(0x24b)](),'subUnitId':_0x1a879d});return;}((_0x3b7df1=_0x4ed3ff[_0xda9c93(0x174)]())==null?void 0x0:_0x3b7df1[_0xda9c93(0x259)]())!==_0x3b2bf2&&await this[_0xda9c93(0x1b0)]['executeCommand'](_0x18aa59['id'],{'unitId':_0x4ed3ff[_0xda9c93(0x24b)](),'subUnitId':_0x3b2bf2});}};ce=Ui([z(0x0,Pt),z(0x1,_0x3730ba),z(0x2,_0x11a32e),z(0x3,_0xe4420f(_0x363f62)),z(0x4,_0x266b33(_0x3c60d8))],ce);var Li=Object['getOwnPropertyDescriptor'],Mi=(_0x16297e,_0x336d41,_0xc2b7f7,_0x31415c)=>{const _0x151e94=_0x2bbfc0;for(var _0x1af791=_0x31415c>0x1?void 0x0:_0x31415c?Li(_0x336d41,_0xc2b7f7):_0x336d41,_0x1240df=_0x16297e[_0x151e94(0x1f3)]-0x1,_0x15a127;_0x1240df>=0x0;_0x1240df--)(_0x15a127=_0x16297e[_0x1240df])&&(_0x1af791=_0x15a127(_0x1af791)||_0x1af791);return _0x1af791;},it=(_0x3d8fcf,_0x1fcb76)=>(_0x4aff82,_0xcd6cc3)=>_0x1fcb76(_0x4aff82,_0xcd6cc3,_0x3d8fcf);let Pe=class extends _0x4e1f77{constructor(_0x1f3fdc,_0xc1d18f){const _0x48e3b9=_0x2bbfc0;super(),this[_0x48e3b9(0x287)]=_0x1f3fdc,this['_imageIoService']=_0xc1d18f,this[_0x48e3b9(0x266)]();}[_0x2bbfc0(0x266)](){const _0x1d3252=_0x2bbfc0,_0x53f08e=this;this[_0x1d3252(0x137)](this[_0x1d3252(0x287)][_0x1d3252(0x15a)]({'onBeforePasteImage':async _0x3d5469=>{const _0x41c071=_0x1d3252,_0x267171=await _0x53f08e[_0x41c071(0x1e7)]['saveImage'](_0x3d5469);return _0x267171?{'source':_0x267171[_0x41c071(0x1eb)],'imageSourceType':_0x267171[_0x41c071(0x110)]}:null;}}));}};Pe=Mi([it(0x0,_0x55c0e0),it(0x1,_0x1870e3)],Pe);const nt=[_0x2bbfc0(0x277),_0x2bbfc0(0x229),_0x2bbfc0(0x166),_0x2bbfc0(0x19a),'blue.400',_0x2bbfc0(0x2cb)];class Ge extends _0x33140b{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x2b1985){const _0x430963=_0x2bbfc0;if(this[_0x430963(0x25c)]['has'](_0x2b1985))return this[_0x430963(0x25c)][_0x430963(0xa9)](_0x2b1985);const _0x5f5d70=nt[this[_0x430963(0x161)]];return this[_0x430963(0x161)]=(this[_0x430963(0x161)]+0x1)%nt[_0x430963(0x1f3)],this[_0x430963(0x25c)][_0x430963(0x1a7)](_0x2b1985,_0x5f5d70),_0x5f5d70;}}function wt(_0x5553ac){const _0x59573b=_0x2bbfc0;let _0x2cdb50='';for(const _0x1c7df5 of _0x5553ac){const {startOffset:_0x4d2b52,endOffset:_0x149270,isActive:_0x3b4144,rangeType:_0x1e8d41,segmentId:_0x5586fe,segmentPage:_0x2eee80}=_0x1c7df5;_0x2cdb50[_0x59573b(0x1f3)]&&(_0x2cdb50+=','),_0x2cdb50+=_0x4d2b52+':'+_0x149270+':'+(_0x3b4144?'1':'0')+':'+_0x1e8d41+':'+_0x5586fe+':'+_0x2eee80;}return _0x2cdb50;}function Ai(_0xea8e5c){const _0x56b77e=_0x2bbfc0,_0x124add=_0xea8e5c[_0x56b77e(0x1e8)](','),_0x5b75c4=[];for(const _0x2606c3 of _0x124add){const [_0x5a7136,_0x3b6082,_0x126f5b,_0x1e305b,_0x1b810d,_0x3107e9]=_0x2606c3[_0x56b77e(0x1e8)](':');_0x5b75c4[_0x56b77e(0x22a)]({'startOffset':Number(_0x5a7136),'endOffset':Number(_0x3b6082),'collapsed':_0x5a7136===_0x3b6082,'isActive':_0x126f5b==='1','rangeType':_0x1e305b===_0x2bf401[_0x56b77e(0x126)]?_0x2bf401[_0x56b77e(0x126)]:_0x2bf401[_0x56b77e(0xe2)],'segmentId':typeof _0x1b810d==_0x56b77e(0x1b5)?String(_0x1b810d):'','segmentPage':Number(_0x3107e9!=null?_0x3107e9:-0x1)});}return _0x5b75c4[_0x56b77e(0x17f)](_0x43372a=>_0x43372a[_0x56b77e(0x246)])||(_0x5b75c4[0x0][_0x56b77e(0x246)]=!0x0),_0x5b75c4;}class Ke extends _0x4e1f77{constructor(){const _0xa7bdb3=_0x2bbfc0;super(...arguments),_(this,_0xa7bdb3(0x138),new _0x4efa81(null)),_(this,_0xa7bdb3(0x9d),this[_0xa7bdb3(0x138)]['asObservable']());}['syncEditingCollabCursor'](_0x137d53){const _0x5c8e97=_0x2bbfc0,{unitID:_0x200cb0,memberID:_0x5b3f11,textRanges:_0x14aca4}=_0x137d53,_0xf3a749=wt(_0x14aca4);if(_0xf3a749==='')return;const _0x48ce61={'unitID':_0x200cb0,'memberID':_0x5b3f11,'selection':_0xf3a749};this[_0x5c8e97(0x138)][_0x5c8e97(0x2a3)](_0x48ce61);}}var Pi=Object[_0x2bbfc0(0x148)],wi=(_0x20a240,_0x31f03f,_0x28f7a7,_0x21dcd7)=>{const _0x983b37=_0x2bbfc0;for(var _0x304032=_0x21dcd7>0x1?void 0x0:_0x21dcd7?Pi(_0x31f03f,_0x28f7a7):_0x31f03f,_0xb5fb7d=_0x20a240[_0x983b37(0x1f3)]-0x1,_0x26cb2e;_0xb5fb7d>=0x0;_0xb5fb7d--)(_0x26cb2e=_0x20a240[_0xb5fb7d])&&(_0x304032=_0x26cb2e(_0x304032)||_0x304032);return _0x304032;},P=(_0x2a7b26,_0x552232)=>(_0x1f9933,_0x1ff333)=>_0x552232(_0x1f9933,_0x1ff333,_0x2a7b26);const yi=0x12c,$i=0x64;let we=class extends _0x4e1f77{constructor(_0x59b063,_0x4b79a6,_0x411c25,_0x247139,_0x19ead4,_0x10080e,_0x5a68db,_0x300c32,_0x1d917d){const _0x40ead2=_0x2bbfc0;super(),_(this,_0x40ead2(0x243),!0x1),_(this,_0x40ead2(0x266),!0x1),_(this,_0x40ead2(0x10c),new _0x4efa81(new Map())),_(this,'cursorInfo$',this[_0x40ead2(0x10c)]['asObservable']()),_(this,_0x40ead2(0x254),new _0x4efa81([])),_(this,_0x40ead2(0x111),this[_0x40ead2(0x254)]['pipe'](_0x3ebc8a(yi))),_(this,_0x40ead2(0x249),_0x424e7a(_0x33f44f=>{const _0x1d9017=_0x40ead2,_0x36645f={'eventID':_0x289776[_0x1d9017(0x205)],'data':{'unitID':this[_0x1d9017(0x238)],'memberID':this[_0x1d9017(0x2df)][_0x1d9017(0x262)](),'selection':wt(_0x33f44f)}};this[_0x1d9017(0x2df)][_0x1d9017(0x1b9)](_0x36645f,this[_0x1d9017(0x238)]);},$i)),(this[_0x40ead2(0x238)]=_0x59b063,this[_0x40ead2(0x2df)]=_0x4b79a6,this[_0x40ead2(0x169)]=_0x411c25,this[_0x40ead2(0x19e)]=_0x247139,this[_0x40ead2(0xfc)]=_0x19ead4,this[_0x40ead2(0x284)]=_0x10080e,this[_0x40ead2(0x16e)]=_0x5a68db,this['_univerInstanceService']=_0x300c32,this[_0x40ead2(0x1b0)]=_0x1d917d);}get[_0x2bbfc0(0xc2)](){const _0x2b29f3=_0x2bbfc0;return this[_0x2b29f3(0x10c)][_0x2b29f3(0x28c)]();}get[_0x2bbfc0(0x21c)](){const _0x17b3be=_0x2bbfc0;return this[_0x17b3be(0x254)]['getValue']();}[_0x2bbfc0(0x1f4)](){const _0x383fd2=_0x2bbfc0;super[_0x383fd2(0x1f4)](),this['_cursorInfo$']['next'](new Map()),this[_0x383fd2(0x10c)][_0x383fd2(0x1be)](),this['_roomMembers$'][_0x383fd2(0x2a3)]([]),this[_0x383fd2(0x254)]['complete']();}[_0x2bbfc0(0xe1)](){const _0x6708a6=_0x2bbfc0;this['_init']||(this[_0x6708a6(0x266)]=!0x0,this[_0x6708a6(0x2df)]['sessionStatus$']['pipe'](_0x4df633(this['dispose$']))[_0x6708a6(0x274)](_0x4663cb=>{const _0x3e7091=_0x6708a6;_0x4663cb===_0x2b7eae[_0x3e7091(0x144)]?this[_0x3e7091(0x107)]():this[_0x3e7091(0xdd)]();}),this[_0x6708a6(0x2df)][_0x6708a6(0x2dd)][_0x6708a6(0x20c)](_0x4df633(this[_0x6708a6(0x1ef)]))[_0x6708a6(0x274)](_0x5c6cac=>{const _0x2d6b6f=_0x6708a6,_0x73786e=_0x5c6cac[_0x2d6b6f(0x2b8)];_0x73786e===_0x289776[_0x2d6b6f(0x205)]&&this[_0x2d6b6f(0x1c5)](_0x5c6cac),_0x73786e===_0x289776[_0x2d6b6f(0x105)]&&this['_onCursorDelete'](_0x5c6cac);}),this[_0x6708a6(0x137)](this[_0x6708a6(0x1b0)][_0x6708a6(0x271)](_0x3bb8d4=>{const _0x2a4e53=_0x6708a6,_0x23ec4a=_0x3bb8d4[_0x2a4e53(0x17b)];_0x23ec4a!=null&&this[_0x2a4e53(0x243)]&&_0x3bb8d4['id']===_0x21ffc3['id']&&_0x23ec4a[_0x2a4e53(0x297)]===this[_0x2a4e53(0x238)]&&_0x23ec4a[_0x2a4e53(0x1ae)]===!0x1&&_0x23ec4a[_0x2a4e53(0x2b6)][_0x2a4e53(0x1f3)]>0x0&&this[_0x2a4e53(0x249)](_0x23ec4a[_0x2a4e53(0x2b6)]);})),this[_0x6708a6(0x284)][_0x6708a6(0x9d)][_0x6708a6(0x20c)](_0x4df633(this[_0x6708a6(0x1ef)]))[_0x6708a6(0x274)](_0x1bab5f=>{const _0x5636a2=_0x6708a6;if((_0x1bab5f==null?void 0x0:_0x1bab5f[_0x5636a2(0x238)])!==this[_0x5636a2(0x238)])return;const _0x47eeab={'eventID':_0x289776[_0x5636a2(0x205)],'data':_0x1bab5f};this[_0x5636a2(0x1c5)](_0x47eeab);}),this[_0x6708a6(0x137)](this[_0x6708a6(0x1b0)][_0x6708a6(0x271)](_0x3a5465=>{const _0x5b44c8=_0x6708a6;if(_0x3a5465[_0x5b44c8(0x17b)]==null)return;const _0x2284f2=_0x3a5465[_0x5b44c8(0x17b)];if(_0x3a5465['id']!==_0x4a3328['id']||_0x2284f2[_0x5b44c8(0x297)]!==this[_0x5b44c8(0x238)])return;const _0xe523c2={'id':_0x5b44c8(0x293),'params':_0x2284f2},_0x39da75=this[_0x5b44c8(0xc2)];for(const [_0x254187,_0x552113]of _0x39da75){const _0x317c40={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x5b44c8(0x238)],'actions':null,'textRanges':_0x552113[_0x5b44c8(0x2b6)]}},_0x200377=this[_0x5b44c8(0x16e)][_0x5b44c8(0x2aa)](_0xe523c2,_0x317c40,!0x1);if(_0x2dd155(_0x200377))throw _0x200377[_0x5b44c8(0x22e)];_0x39da75['set'](_0x254187,{..._0x552113,'ranges':_0x200377[_0x5b44c8(0x139)]['params']['textRanges']});}queueMicrotask(()=>{const _0x48624a=_0x5b44c8;this[_0x48624a(0x10c)][_0x48624a(0x2a3)](_0x39da75);});})));}['_onCursorUpdate'](_0x5471ff){const _0x5419f7=_0x2bbfc0;var _0x24eb7f,_0x477e6b;const {memberID:_0x5c72f4,selection:_0x13aa21}=_0x5471ff['data'],_0x1f9a44=Ai(_0x13aa21),_0x1fa7ab=(_0x477e6b=(_0x24eb7f=this[_0x5419f7(0xfc)]['getMember'](this[_0x5419f7(0x238)],_0x5c72f4))==null?void 0x0:_0x24eb7f[_0x5419f7(0x23a)])!=null?_0x477e6b:_0x5419f7(0xc0),_0x791b26={'color':this[_0x5419f7(0x19e)][_0x5419f7(0x1e2)](_0x5c72f4),'name':_0x1fa7ab,'ranges':_0x1f9a44},_0x470355=this[_0x5419f7(0xc2)];_0x470355['set'](_0x5c72f4,_0x791b26),this[_0x5419f7(0x10c)][_0x5419f7(0x2a3)](_0x470355);}['_onCursorDelete'](_0x574f2d){const _0x1e7079=_0x2bbfc0,{memberID:_0x32fc46}=_0x574f2d[_0x1e7079(0x275)],_0x4a023c=this[_0x1e7079(0xc2)];_0x4a023c[_0x1e7079(0x26c)](_0x32fc46),this[_0x1e7079(0x10c)]['next'](_0x4a023c);}['_toggleOnline'](){const _0x3e4507=_0x2bbfc0;var _0x11c690;if(this[_0x3e4507(0x243)]=!0x0,((_0x11c690=this[_0x3e4507(0xbb)][_0x3e4507(0xe4)]())==null?void 0x0:_0x11c690[_0x3e4507(0x24b)]())!==this[_0x3e4507(0x238)])return;const _0x5e3f88=this[_0x3e4507(0x169)][_0x3e4507(0xa9)](_0x161ce0)[_0x3e4507(0x1ec)]();Array[_0x3e4507(0x25b)](_0x5e3f88)&&_0x5e3f88['length']>0x0&&this[_0x3e4507(0x249)](_0x5e3f88);}[_0x2bbfc0(0xdd)](){const _0x2ab59d=_0x2bbfc0;this[_0x2ab59d(0x243)]=!0x1;}};we=wi([P(0x2,_0xe4420f(_0x1210ca)),P(0x3,_0xe4420f(Ge)),P(0x4,_0xe4420f(_0x347a1d)),P(0x5,_0xe4420f(Ke)),P(0x6,_0x3f1e23),P(0x7,_0x134894),P(0x8,_0x11a32e)],we);var xi=Object[_0x2bbfc0(0x148)],Bi=(_0x1869f1,_0x16375c,_0x409cda,_0x1dba8d)=>{const _0x44bfa2=_0x2bbfc0;for(var _0xd32855=_0x1dba8d>0x1?void 0x0:_0x1dba8d?xi(_0x16375c,_0x409cda):_0x16375c,_0x3105e6=_0x1869f1[_0x44bfa2(0x1f3)]-0x1,_0x597ac1;_0x3105e6>=0x0;_0x3105e6--)(_0x597ac1=_0x1869f1[_0x3105e6])&&(_0xd32855=_0x597ac1(_0xd32855)||_0xd32855);return _0xd32855;},F=(_0x3241a5,_0x2006c6)=>(_0x1c58ae,_0x125611)=>_0x2006c6(_0x1c58ae,_0x125611,_0x3241a5);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x165c98=[],_0x3b3656=!0x1;return _0x564cd4=>{const _0x18f8fe=_0x37eb;_0x165c98[_0x18f8fe(0x22a)](_0x564cd4),_0x3b3656||(_0x3b3656=!0x0,setTimeout(()=>{const _0x1c6548=_0x18f8fe;_0x165c98[_0x1c6548(0xd1)](_0x21586a=>_0x21586a()),_0x165c98=[],_0x3b3656=!0x1;}));};};let ye=class extends _0x4e1f77{constructor(_0x5c0efe,_0x32d62d,_0x7d3b0,_0x55d753,_0x2e3b4b,_0x630976,_0x5410f2,_0x5d0aee){const _0x4eaef9=_0x2bbfc0;super(),_(this,_0x4eaef9(0x243),!0x1),_(this,_0x4eaef9(0x266),!0x1),_(this,'_cursorInfo$',new _0x4efa81(new Map())),_(this,_0x4eaef9(0x2c3),this[_0x4eaef9(0x10c)]['asObservable']()),_(this,_0x4eaef9(0x254),new _0x4efa81([])),_(this,_0x4eaef9(0x111),this[_0x4eaef9(0x254)]['pipe'](_0x3ebc8a(Fi))),_(this,_0x4eaef9(0x249),_0x424e7a((_0x21877c,_0x222b31)=>{const _0x2aa304=_0x4eaef9,_0x4c1598={'eventID':_0x289776[_0x2aa304(0x205)],'data':{'unitID':this['unitID'],'memberID':this[_0x2aa304(0x2df)][_0x2aa304(0x262)](),'selection':_0x4ae4ab(_0x21877c,_0x222b31[_0x2aa304(0x149)])}};this['_session'][_0x2aa304(0x1b9)](_0x4c1598,this['unitID']);},ki)),(this[_0x4eaef9(0x238)]=_0x5c0efe,this[_0x4eaef9(0x2df)]=_0x32d62d,this[_0x4eaef9(0x169)]=_0x7d3b0,this[_0x4eaef9(0x19e)]=_0x55d753,this[_0x4eaef9(0xfc)]=_0x2e3b4b,this['_univerInstanceService']=_0x630976,this[_0x4eaef9(0x1b0)]=_0x5410f2,this[_0x4eaef9(0xce)]=_0x5d0aee);}get[_0x2bbfc0(0xc2)](){const _0x1ef7d5=_0x2bbfc0;return this['_cursorInfo$'][_0x1ef7d5(0x28c)]();}get['roomMembers'](){const _0x1dad0d=_0x2bbfc0;return this['_roomMembers$'][_0x1dad0d(0x28c)]();}[_0x2bbfc0(0x1f4)](){const _0x40ad68=_0x2bbfc0;super[_0x40ad68(0x1f4)](),this[_0x40ad68(0x10c)][_0x40ad68(0x2a3)](new Map()),this[_0x40ad68(0x10c)][_0x40ad68(0x1be)](),this[_0x40ad68(0x254)]['next']([]),this[_0x40ad68(0x254)][_0x40ad68(0x1be)]();}[_0x2bbfc0(0xe1)](){const _0x3f6c7e=_0x2bbfc0;this[_0x3f6c7e(0x266)]||(this[_0x3f6c7e(0x266)]=!0x0,this[_0x3f6c7e(0x2df)][_0x3f6c7e(0x1a8)]['pipe'](_0x4df633(this[_0x3f6c7e(0x1ef)]))['subscribe'](_0x24eb55=>{const _0x1edbb3=_0x3f6c7e;_0x24eb55===_0x2b7eae[_0x1edbb3(0x144)]?this[_0x1edbb3(0x107)]():this[_0x1edbb3(0xdd)]();}),this[_0x3f6c7e(0x2df)][_0x3f6c7e(0x2dd)]['pipe'](_0x4df633(this[_0x3f6c7e(0x1ef)]))['subscribe'](_0x35a879=>{const _0x3524d1=_0x3f6c7e,_0x18f958=_0x35a879[_0x3524d1(0x2b8)];_0x18f958===_0x289776[_0x3524d1(0x205)]&&this[_0x3524d1(0x1c5)](_0x35a879),_0x18f958===_0x289776['USERS_LEAVE']&&this[_0x3524d1(0x1af)](_0x35a879);}),this['_onRefRangeChange'](),this[_0x3f6c7e(0x137)](this[_0x3f6c7e(0x1b0)][_0x3f6c7e(0x271)](_0x25f4ce=>{const _0x1fd39c=_0x3f6c7e;if(this[_0x1fd39c(0x243)]&&_0x25f4ce['id']===_0x4e87b6['id']&&_0x25f4ce[_0x1fd39c(0x17b)][_0x1fd39c(0x297)]===this[_0x1fd39c(0x238)]){const _0x2c1be3=_0x25f4ce[_0x1fd39c(0x17b)];this['_updateLocalCursor'](_0x2c1be3[_0x1fd39c(0x1c7)],_0x2c1be3[_0x1fd39c(0x2a4)][0x0]);}})));}[_0x2bbfc0(0x1c5)](_0x588013){const _0x41cde2=_0x2bbfc0;var _0x2fa80f,_0x5663e8;const {memberID:_0x9b8ab1,selection:_0x519596}=_0x588013[_0x41cde2(0x275)],{sheetName:_0x357f1a,range:_0x1e7b8b}=_0x4d9571(_0x519596),_0x4de421={'name':(_0x5663e8=(_0x2fa80f=this[_0x41cde2(0xfc)][_0x41cde2(0x1fa)](this[_0x41cde2(0x238)],_0x9b8ab1))==null?void 0x0:_0x2fa80f['name'])!=null?_0x5663e8:_0x41cde2(0xc0),'range':this[_0x41cde2(0x2ae)](_0x357f1a,_0x1e7b8b),'sheetID':_0x357f1a,'color':this[_0x41cde2(0x19e)]['assignAColorForMemberID'](_0x9b8ab1),'selection':_0x519596},_0x20f13d=this['cursorInfo'];_0x20f13d[_0x41cde2(0x1a7)](_0x9b8ab1,_0x4de421),this['_cursorInfo$']['next'](_0x20f13d);}[_0x2bbfc0(0x1af)](_0x2f6314){const _0x3f077e=_0x2bbfc0,{memberID:_0x48b4a2}=_0x2f6314[_0x3f077e(0x275)],_0x5783e7=this[_0x3f077e(0xc2)];_0x5783e7[_0x3f077e(0x26c)](_0x48b4a2),this[_0x3f077e(0x10c)][_0x3f077e(0x2a3)](_0x5783e7);}[_0x2bbfc0(0x2ae)](_0x3335c5,_0x141340){const _0x3f5adf=_0x2bbfc0;var _0x31963c,_0x4f6181;const _0x58ab1f=(_0x4f6181=(_0x31963c=this[_0x3f5adf(0xbb)]['getUniverSheetInstance'](this[_0x3f5adf(0x238)]))==null?void 0x0:_0x31963c['getSheetBySheetId'](_0x3335c5))==null?void 0x0:_0x4f6181[_0x3f5adf(0xcd)]();return(_0x58ab1f==null?void 0x0:_0x58ab1f['find'](_0x548b0c=>_0xb02db3[_0x3f5adf(0x191)](_0x548b0c,_0x141340)))||_0x141340;}['_onRefRangeChange'](){const _0x558f7a=_0x2bbfc0,_0x2ccf41=new _0x2be5dc(),_0x236ec0=Hi(),_0x869508=()=>{const _0x4df2c8=_0x37eb;_0x2ccf41[_0x4df2c8(0x1f4)]();const _0xa527dd=(_0x53f027,_0x6fab2f,_0xb9259e,_0x580944)=>{const _0x112b77=_0x4df2c8;let _0x3e23aa=[];switch(_0x53f027['id']){case _0x3b25e9['DeleteRangeMoveLeftCommandId']:{_0x3e23aa=_0x1e9b5a(_0x53f027,_0x580944);break;}case _0x3b25e9['DeleteRangeMoveUpCommandId']:{_0x3e23aa=_0x1cadfa(_0x53f027,_0x580944);break;}case _0x3b25e9['InsertColCommandId']:{_0x3e23aa=_0x434b98(_0x53f027,_0x580944);break;}case _0x3b25e9['InsertRangeMoveDownCommandId']:{_0x3e23aa=_0x159733(_0x53f027,_0x580944);break;}case _0x3b25e9[_0x112b77(0x1d2)]:{_0x3e23aa=_0x29f177(_0x53f027,_0x580944);break;}case _0x3b25e9[_0x112b77(0x27d)]:{_0x3e23aa=_0x41b124(_0x53f027,_0x580944);break;}case _0x3b25e9['MoveRangeCommandId']:{_0x3e23aa=_0x5576d3(_0x53f027,_0x580944);break;}case _0x3b25e9[_0x112b77(0x26d)]:{_0x3e23aa=_0x1d2a6e(_0x53f027,_0x580944);break;}case _0x3b25e9[_0x112b77(0xc6)]:{_0x3e23aa=_0x1fdb03(_0x53f027,_0x580944);break;}}const _0x14707c=_0xe508c1(_0x3e23aa,_0x580944),_0x279689=this[_0x112b77(0xc2)][_0x112b77(0xa9)](_0x6fab2f);if(_0x279689&&_0x14707c){const _0x4c41cc={..._0x279689,'range':_0x14707c};this[_0x112b77(0xc2)][_0x112b77(0x1a7)](_0x6fab2f,_0x4c41cc),_0x236ec0(()=>{const _0x5251b4=_0x112b77,_0x10174c=this[_0x5251b4(0xce)][_0x5251b4(0x1c6)](_0x14707c,_0x46cb38=>(_0x10174c['dispose'](),_0xa527dd(_0x46cb38,_0x6fab2f,_0xb9259e,_0x14707c)));_0x2ccf41[_0x5251b4(0x157)](_0x10174c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x4df2c8(0xd1)]((_0x184d4c,_0x1379a3)=>{const _0x54b204=_0x4df2c8,{range:_0x1badb6,sheetID:_0x282636}=_0x184d4c,_0x221305=this['_refRangeService'][_0x54b204(0x1c6)](_0x1badb6,_0x2295bf=>(_0x221305[_0x54b204(0x1f4)](),_0xa527dd(_0x2295bf,_0x1379a3,_0x282636,_0x1badb6)));_0x2ccf41[_0x54b204(0x157)](_0x221305);});};this[_0x558f7a(0x137)](_0x1ac1e9(this[_0x558f7a(0x10c)][_0x558f7a(0x274)](()=>{_0x869508();})));}['_toggleOnline'](){const _0x3a06b4=_0x2bbfc0;var _0x32156e,_0x1489ab;if(this['_online']=!0x0,((_0x32156e=this[_0x3a06b4(0xbb)][_0x3a06b4(0xe4)]())==null?void 0x0:_0x32156e['getUnitId']())!==this['unitID'])return;const _0x515b47=(_0x1489ab=this['_injector']['get'](_0x253e43)['getCurrentSelections']())==null?void 0x0:_0x1489ab[0x0],_0x47ba91=this[_0x3a06b4(0xbb)][_0x3a06b4(0x23e)](_0x1cfcdd['UNIVER_SHEET'])[_0x3a06b4(0x174)]();_0x515b47&&_0x47ba91&&this['_updateLocalCursor'](_0x47ba91['getSheetId'](),_0x515b47);}[_0x2bbfc0(0xdd)](){const _0x3e69a1=_0x2bbfc0;this[_0x3e69a1(0x243)]=!0x1;}};ye=Bi([F(0x2,_0xe4420f(_0x1210ca)),F(0x3,_0xe4420f(Ge)),F(0x4,_0xe4420f(_0x347a1d)),F(0x5,_0x134894),F(0x6,_0x11a32e),F(0x7,_0xe4420f(_0xed93aa))],ye);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x3b8824,_0x5444a4,_0x15310f,_0x50c34c)=>{const _0xeae573=_0x2bbfc0;for(var _0x57dd6d=_0x50c34c>0x1?void 0x0:_0x50c34c?Yi(_0x5444a4,_0x15310f):_0x5444a4,_0x300328=_0x3b8824[_0xeae573(0x1f3)]-0x1,_0x4ae442;_0x300328>=0x0;_0x300328--)(_0x4ae442=_0x3b8824[_0x300328])&&(_0x57dd6d=_0x4ae442(_0x57dd6d)||_0x57dd6d);return _0x57dd6d;},pe=(_0x30beee,_0x552b9b)=>(_0x10dd6a,_0x136b1f)=>_0x552b9b(_0x10dd6a,_0x136b1f,_0x30beee);let Y=class extends _0x4e1f77{constructor(_0x46953e,_0x186bc9,_0x5a364f){const _0x31f685=_0x2bbfc0;super(),_(this,'_entities',new Map()),_(this,_0x31f685(0xfa),new _0xc8c736()),(this[_0x31f685(0xbb)]=_0x46953e,this[_0x31f685(0x169)]=_0x186bc9,this[_0x31f685(0x14d)]=_0x5a364f,this[_0x31f685(0x266)]());}['dispose'](){const _0x55c8f7=_0x2bbfc0;super[_0x55c8f7(0x1f4)](),this['_entityInit$']['complete'](),this[_0x55c8f7(0x1ea)][_0x55c8f7(0xd1)](_0x58ba3e=>_0x58ba3e[_0x55c8f7(0x1f4)]());}[_0x2bbfc0(0xd2)](_0x3e5ce4){const _0x2e06f5=_0x2bbfc0;return this[_0x2e06f5(0x1ea)][_0x2e06f5(0x257)](_0x3e5ce4)?this[_0x2e06f5(0x1ea)]['get'](_0x3e5ce4)['cursorInfo$']:this['_entityInit$'][_0x2e06f5(0x20c)](_0x1a47af(_0x43c6d8=>_0x43c6d8[_0x2e06f5(0x238)]===_0x3e5ce4),_0x62b60b(_0x2cba6f=>_0x2cba6f[_0x2e06f5(0x2c3)]));}[_0x2bbfc0(0x266)](){const _0x5f285a=_0x2bbfc0;this[_0x5f285a(0xbb)][_0x5f285a(0x23f)](_0x1cfcdd[_0x5f285a(0x231)])[_0x5f285a(0x20c)](_0x4df633(this['dispose$']))[_0x5f285a(0x274)](async _0x24d2d8=>{const _0x28bd39=_0x5f285a,_0x2dc239=_0x24d2d8[_0x28bd39(0x24b)](),_0x1ae60a=await this[_0x28bd39(0x165)](_0x2dc239);this[_0x28bd39(0xfa)][_0x28bd39(0x2a3)](_0x1ae60a),this['_entities']['set'](_0x2dc239,_0x1ae60a);}),this[_0x5f285a(0xbb)][_0x5f285a(0x23f)](_0x1cfcdd[_0x5f285a(0x217)])['pipe'](_0x4df633(this['dispose$']))[_0x5f285a(0x20c)](_0x1a47af(_0x427ee4=>!_0x427ee4[_0x5f285a(0x24b)]()['startsWith']('__')))[_0x5f285a(0x274)](async _0x248730=>{const _0x4f8fd5=_0x5f285a,_0x571ec9=_0x248730['getUnitId'](),_0x5ac476=await this[_0x4f8fd5(0x276)](_0x571ec9);this[_0x4f8fd5(0xfa)]['next'](_0x5ac476),this[_0x4f8fd5(0x1ea)][_0x4f8fd5(0x1a7)](_0x571ec9,_0x5ac476);}),_0x4815eb(this['_univerInstanceService'][_0x5f285a(0xc7)](_0x1cfcdd['UNIVER_DOC']),this['_univerInstanceService'][_0x5f285a(0xc7)](_0x1cfcdd[_0x5f285a(0x231)]))[_0x5f285a(0x20c)](_0x4df633(this['dispose$']))['subscribe'](_0x292cb3=>{const _0x303955=_0x5f285a,_0x42b271=_0x292cb3[_0x303955(0x24b)](),_0x400b8b=this[_0x303955(0x1ea)][_0x303955(0xa9)](_0x42b271);_0x400b8b&&(_0x400b8b[_0x303955(0x1f4)](),this[_0x303955(0x1ea)]['delete'](_0x42b271));});}async[_0x2bbfc0(0x165)](_0x425717){const _0x4f8ab1=_0x2bbfc0,_0x4c6472=await this[_0x4f8ab1(0x14d)][_0x4f8ab1(0x1c2)](_0x425717),_0xd12b48=this['_injector']['createInstance'](ye,_0x425717,_0x4c6472);return _0xd12b48[_0x4f8ab1(0xe1)](),_0xd12b48;}async[_0x2bbfc0(0x276)](_0x2b44b4){const _0x5b66f0=_0x2bbfc0,_0x2d61be=await this[_0x5b66f0(0x14d)][_0x5b66f0(0x1c2)](_0x2b44b4),_0x3c99a1=this[_0x5b66f0(0x169)][_0x5b66f0(0x1ab)](we,_0x2b44b4,_0x2d61be);return _0x3c99a1[_0x5b66f0(0xe1)](),_0x3c99a1;}};Y=Wi([pe(0x0,_0x134894),pe(0x1,_0xe4420f(_0x1210ca)),pe(0x2,_0xe4420f(_0x58599f))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x3baba1,_0x2917bf){const _0x1d2b06=_0x2bbfc0;let {radius:_0x4c50cd,width:_0x4e2425,height:_0x4dc652}=_0x2917bf;_0x4c50cd=_0x4c50cd!=null?_0x4c50cd:0x0,_0x4e2425=_0x4e2425!=null?_0x4e2425:0x1e,_0x4dc652=_0x4dc652!=null?_0x4dc652:0x1e;let _0xbcc014=0x0,_0x5b5e05=0x0,_0x3683e1=0x0;_0xbcc014=_0x5b5e05=_0x3683e1=Math[_0x1d2b06(0x268)](_0x4c50cd,_0x4e2425/0x2,_0x4dc652/0x2),_0x3baba1[_0x1d2b06(0x20f)](),_0x3baba1[_0x1d2b06(0x1b8)](_0xbcc014,0x0),_0x3baba1[_0x1d2b06(0x1cb)](_0x4e2425-_0x5b5e05,0x0),_0x3baba1['arc'](_0x4e2425-_0x5b5e05,_0x5b5e05,_0x5b5e05,Math['PI']*0x3/0x2,0x0,!0x1),_0x3baba1[_0x1d2b06(0x1cb)](_0x4e2425,_0x4dc652-_0x3683e1),_0x3baba1[_0x1d2b06(0x1d7)](_0x4e2425-_0x3683e1,_0x4dc652-_0x3683e1,_0x3683e1,0x0,Math['PI']/0x2,!0x1),_0x3baba1[_0x1d2b06(0x1cb)](0x0,_0x4dc652),_0x3baba1[_0x1d2b06(0x1cb)](0x0,_0xbcc014),_0x3baba1[_0x1d2b06(0x1d7)](_0xbcc014,_0xbcc014,_0xbcc014,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3baba1[_0x1d2b06(0x2c5)](),_0x2917bf[_0x1d2b06(0x132)]&&(_0x3baba1['save'](),_0x3baba1[_0x1d2b06(0x11f)]=_0x2917bf[_0x1d2b06(0x132)],_0x2917bf[_0x1d2b06(0x2c8)]===_0x1d2b06(0xd7)?_0x3baba1[_0x1d2b06(0x132)](_0x1d2b06(0xd7)):_0x3baba1[_0x1d2b06(0x132)](),_0x3baba1[_0x1d2b06(0x1e6)]());}class Ie extends _0x4aa97d{constructor(_0x632234,_0xe85b1){const _0x52bfc1=_0x2bbfc0;super(_0x632234,_0xe85b1),_(this,_0x52bfc1(0xf3)),_(this,_0x52bfc1(0xae)),(this['color']=_0xe85b1==null?void 0x0:_0xe85b1[_0x52bfc1(0xf3)],this['text']=_0xe85b1==null?void 0x0:_0xe85b1[_0x52bfc1(0xae)]);}static[_0x2bbfc0(0x175)](_0x15779d,_0x4871e5){const _0x470216=_0x2bbfc0,{text:_0x3b7b4a,color:_0x13173b}=_0x4871e5;_0x15779d['save'](),_0x15779d[_0x470216(0x256)]=_0x470216(0x136);const _0x262242=_0x15779d[_0x470216(0x2bb)](_0x3b7b4a)[_0x470216(0x180)],_0xdfe8c5=Math['min'](_0x262242+0x2*Oe,rt);ji(_0x15779d,{'height':q,'radius':0x4,'width':_0xdfe8c5,'fill':_0x13173b}),_0x15779d[_0x470216(0x11f)]=_0x470216(0x19b);const _0x5e162a=Oe,_0x6d56c9=q-Vi,_0x3753e3=rt-0x2*Oe;if(_0x262242>_0x3753e3){let _0x3f1c20='',_0x428312=0x0;for(const _0x8cddec of _0x3b7b4a){const _0x18836d=_0x15779d['measureText'](_0x8cddec)[_0x470216(0x180)];if(_0x428312+_0x18836d<=_0x3753e3-_0x15779d[_0x470216(0x2bb)](_0x470216(0x2da))[_0x470216(0x180)])_0x3f1c20+=_0x8cddec,_0x428312+=_0x18836d;else{_0x3f1c20+='...';break;}}_0x15779d[_0x470216(0x2ab)](_0x3f1c20,_0x5e162a,_0x6d56c9);}else _0x15779d[_0x470216(0x2ab)](_0x3b7b4a,_0x5e162a,_0x6d56c9);_0x15779d[_0x470216(0x1e6)]();}['_draw'](_0x14d7ed){const _0x4070c5=_0x2bbfc0;Ie[_0x4070c5(0x175)](_0x14d7ed,this);}}const Te=_0x2bbfc0(0x264),Xi=_0x2bbfc0(0x219),Gi=_0x2bbfc0(0x1b3),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x2bbfc0(0x2a0);class ot{constructor(_0x33dab5,_0x1cc26a,_0x56d9c3,_0x4c3d69){const _0x3c40bd=_0x2bbfc0;_(this,_0x3c40bd(0x29e),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x3c40bd(0xbc),null),_(this,_0x3c40bd(0x163),null),_(this,'_eventUnsubscribe',null),(this[_0x3c40bd(0x145)]=_0x33dab5,this[_0x3c40bd(0xc3)]=_0x1cc26a,this[_0x3c40bd(0x261)]=_0x56d9c3,this[_0x3c40bd(0x215)]=_0x4c3d69,this[_0x3c40bd(0x18d)]());}set[_0x2bbfc0(0x197)](_0xf71863){const _0x1859f7=_0x2bbfc0;_0xf71863?(this[_0x1859f7(0xbc)]&&this['_anchorDot'][_0x1859f7(0x12d)](),this['_textBubble']&&this[_0x1859f7(0x2bc)][_0x1859f7(0x23d)]()):(this[_0x1859f7(0xbc)]&&this[_0x1859f7(0xbc)][_0x1859f7(0x23d)](),this[_0x1859f7(0x2bc)]&&this['_textBubble'][_0x1859f7(0x12d)]());}[_0x2bbfc0(0x1f4)](){const _0x4c268f=_0x2bbfc0;for(const _0x12f550 of this[_0x4c268f(0x29e)])_0x12f550['dispose']();this[_0x4c268f(0x2bc)]&&this[_0x4c268f(0x2bc)][_0x4c268f(0x1f4)](),this[_0x4c268f(0xbc)]&&this[_0x4c268f(0xbc)][_0x4c268f(0x1f4)](),this['_anchor']&&this[_0x4c268f(0x2c4)][_0x4c268f(0x1f4)](),this[_0x4c268f(0x172)]&&this[_0x4c268f(0x172)]();}[_0x2bbfc0(0x18d)](){const _0x17fc2f=_0x2bbfc0;var _0x258a35;const {_docSkeleton:_0x586839,_document:_0x1e4bd2}=this,{color:_0x36dcfc,name:_0x23d3a3,ranges:_0x1918c9}=this[_0x17fc2f(0x145)],_0x1d8202=_0x1e4bd2[_0x17fc2f(0x222)](),{docsLeft:_0x424f18,docsTop:_0x4df849}=_0x1d8202,_0xddb593=new _0x329fc9(_0x1d8202,_0x586839);for(const {startOffset:_0x1084af,endOffset:_0x49e955,rangeType:_0x47bfa0,segmentId:_0xf77cb2,segmentPage:_0x37be67,collapsed:_0x417127,isActive:_0xf70920}of _0x1918c9){const _0x5f484e=_0x586839[_0x17fc2f(0x2c2)](_0x1084af,!0x0,_0xf77cb2,_0x37be67);let _0x308909=_0x586839['findNodePositionByCharIndex'](_0x49e955,!0x0,_0xf77cb2,_0x37be67);if(_0x308909==null&&(_0x308909=_0x586839['findNodePositionByCharIndex'](_0x49e955-0x1,!0x1,_0xf77cb2,_0x37be67)),_0xf70920){const {contentBoxPointGroup:_0x5ebacb}=_0xddb593[_0x17fc2f(0xe8)](_0x308909,_0x308909);if(_0x5ebacb[_0x17fc2f(0x1f3)]===0x0)continue;this[_0x17fc2f(0x27a)](_0x36dcfc,_0x5ebacb,_0x424f18,_0x4df849,_0x23d3a3),this[_0x17fc2f(0x172)]=this[_0x17fc2f(0x1c9)]();}if(_0x5f484e&&_0x308909){if(_0x47bfa0===_0x2bf401[_0x17fc2f(0xe2)]){const _0x414a2e=new _0x8de7c9(_0x1d8202,_0x586839),{pointGroup:_0x139a95}=(_0x258a35=_0x414a2e[_0x17fc2f(0xe8)](_0x5f484e,_0x308909))!=null?_0x258a35:{};if(_0x139a95==null||_0x139a95[_0x17fc2f(0x1f3)]===0x0)continue;this[_0x17fc2f(0x1e5)](_0x36dcfc,_0x139a95,_0x424f18,_0x4df849);}else{if(!_0x417127){const {borderBoxPointGroup:_0x2c562d}=_0xddb593[_0x17fc2f(0xe8)](_0x5f484e,_0x308909);if(_0x2c562d['length']===0x0)continue;this[_0x17fc2f(0x212)](_0x36dcfc,_0x2c562d,_0x424f18,_0x4df849);}}}}}[_0x2bbfc0(0x27a)](_0x2fc117,_0x4b277d,_0x38431e,_0x3e518f,_0x24e888){const _0x23f5d1=_0x2bbfc0,_0xa4d294=this[_0x23f5d1(0xf6)](_0x4b277d),{left:_0x410e8c,top:_0x21c219,height:_0x3d324a}=_0xa4d294,_0x5c839e=this[_0x23f5d1(0xc8)](),_0x1d88ed=zi/_0x5c839e,_0x42e335=new _0x451bdd(Te+_0x3f3b85(J),{'left':_0x410e8c+_0x38431e-_0x1d88ed,'top':_0x21c219+_0x3e518f,'height':_0x3d324a,'width':Ki,'fill':_0x2fc117||_0x4442f2(_0x48ceb4[_0x23f5d1(0x299)],0x0),'strokeWidth':_0x1d88ed,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x42e335,this[_0x23f5d1(0xc3)][_0x23f5d1(0x206)](_0x42e335,_0x1fad5c);const _0xa37871=new _0x451bdd(Te+_0x3f3b85(J),{'left':_0x410e8c+_0x38431e-_0x1d88ed,'top':_0x21c219+_0x3e518f-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x2fc117||_0x4442f2(_0x48ceb4[_0x23f5d1(0x299)],0x0),'strokeWidth':0x0,'stroke':_0x2fc117||_0x4442f2(_0x48ceb4[_0x23f5d1(0x299)],0x0),'evented':!0x1});this[_0x23f5d1(0xbc)]=_0xa37871,this[_0x23f5d1(0xc3)][_0x23f5d1(0x206)](_0xa37871,_0x1fad5c);const _0x1ad425=new Ie(Te+_0x3f3b85(J),{'left':_0x410e8c+_0x38431e-_0x1d88ed,'top':_0x21c219+_0x3e518f-q,'text':_0x24e888,'color':_0x2fc117});this['_textBubble']=_0x1ad425,this[_0x23f5d1(0xc3)][_0x23f5d1(0x206)](_0x1ad425,_0x1fad5c),this['_hover']=!0x1;}[_0x2bbfc0(0x1c9)](){const _0x3c40e2=_0x2bbfc0,_0x2042a6=this[_0x3c40e2(0x2c4)][_0x3c40e2(0x27c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x4cedd4=this[_0x3c40e2(0x2c4)]['onPointerLeave$'][_0x3c40e2(0x196)](()=>{const _0x95196d=_0x3c40e2;this[_0x95196d(0x163)]&&clearTimeout(this[_0x95196d(0x163)]),this[_0x95196d(0x163)]=setTimeout(()=>{const _0x10c3a0=_0x95196d;this[_0x10c3a0(0x197)]=!0x1;},0x7d0);});return()=>{const _0x4c542f=_0x3c40e2;_0x2042a6[_0x4c542f(0x278)](),_0x4cedd4[_0x4c542f(0x278)]();};}[_0x2bbfc0(0x212)](_0x536551,_0x5e2df9,_0x53dde8,_0x1e20e4){const _0x397c52=_0x2bbfc0,_0x319ff6=new _0x4c835d(_0x536551)[_0x397c52(0x106)](0.2)[_0x397c52(0xff)](),_0x7b9ead=new _0x5f3ecd(Xi+_0x3f3b85(J),{'pointsGroup':_0x5e2df9,'fill':_0x319ff6||_0x4442f2(_0x48ceb4[_0x397c52(0x299)],0.2),'left':_0x53dde8,'top':_0x1e20e4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x397c52(0x29e)]['push'](_0x7b9ead),this['_scene'][_0x397c52(0x206)](_0x7b9ead,_0x1fad5c);}['_drawRectRange'](_0x18a870,_0x55bf1c,_0x139fe9,_0x4c17fc){const _0xa1c0ca=_0x2bbfc0,_0x266f8a=new _0x4c835d(_0x18a870)['setAlpha'](0.2)[_0xa1c0ca(0xff)](),_0xb214d7=new _0x5f3ecd(Gi+_0x3f3b85(J),{'pointsGroup':_0x55bf1c,'fill':_0x266f8a||_0x4442f2(_0x48ceb4[_0xa1c0ca(0x299)],0.2),'left':_0x139fe9,'top':_0x4c17fc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xa1c0ca(0x29e)][_0xa1c0ca(0x22a)](_0xb214d7),this[_0xa1c0ca(0xc3)][_0xa1c0ca(0x206)](_0xb214d7,_0x1fad5c);}[_0x2bbfc0(0xf6)](_0x2a2b4b){const _0x2faa74=_0x2a2b4b[0x0],_0x2bb7a5=_0x2faa74[0x0],_0x1a20ea=_0x2faa74[0x2],{x:_0x43d065,y:_0x31aa16}=_0x2bb7a5,{x:_0x56e27f,y:_0x3ea9af}=_0x1a20ea;return{'left':_0x43d065,'top':_0x31aa16,'width':_0x56e27f-_0x43d065,'height':_0x3ea9af-_0x31aa16};}[_0x2bbfc0(0xc8)](){const _0x2037a1=_0x2bbfc0,{scaleX:_0xc92672,scaleY:_0x2bacd3}=this['_scene'][_0x2037a1(0x26b)]();return Math[_0x2037a1(0x292)](_0xc92672,_0x2bacd3);}}var Zi=Object[_0x2bbfc0(0x148)],Qi=(_0x4d85a6,_0x212f14,_0x336833,_0x23bde6)=>{const _0x132936=_0x2bbfc0;for(var _0x1e5682=_0x23bde6>0x1?void 0x0:_0x23bde6?Zi(_0x212f14,_0x336833):_0x212f14,_0x1b1648=_0x4d85a6[_0x132936(0x1f3)]-0x1,_0x13f9fe;_0x1b1648>=0x0;_0x1b1648--)(_0x13f9fe=_0x4d85a6[_0x1b1648])&&(_0x1e5682=_0x13f9fe(_0x1e5682)||_0x1e5682);return _0x1e5682;},ne=(_0x29f074,_0xdd0744)=>(_0x2ba6f9,_0x3f5c74)=>_0xdd0744(_0x2ba6f9,_0x3f5c74,_0x29f074);let $e=class extends _0x4e1f77{constructor(_0x3f2ea9,_0xf56d60,_0x1292e0,_0x19e7ca,_0x48c831){const _0x518ccb=_0x2bbfc0;super(),_(this,_0x518ccb(0xd8),[]),_(this,_0x518ccb(0x23b),[]),(this[_0x518ccb(0x1ad)]=_0x3f2ea9,this['_docSkeletonManagerService']=_0xf56d60,this[_0x518ccb(0x1f5)]=_0x1292e0,this[_0x518ccb(0x1b0)]=_0x19e7ca,this['_themeService']=_0x48c831,this[_0x518ccb(0x266)]());}[_0x2bbfc0(0x266)](){const _0xf6e454=_0x2bbfc0,_0x3b2f47=this[_0xf6e454(0x1ad)][_0xf6e454(0x297)],_0x474716=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x5513b8([this['_collabCursorController'][_0xf6e454(0xd2)](_0x3b2f47),this['_themeService'][_0xf6e454(0x15b)]])[_0xf6e454(0x20c)](_0x304645(([_0x555472,_0x377035])=>({'skeleton':_0x474716[_0xf6e454(0x282)](),'cursors':[..._0x555472[_0xf6e454(0x1d6)]()][_0xf6e454(0x251)](_0x58f331=>({..._0x58f331,'color':this[_0xf6e454(0x185)]['getColorFromTheme'](_0x58f331[_0xf6e454(0xf3)])}))})))[_0xf6e454(0x274)](_0x358c5e=>{const _0x22d9eb=_0xf6e454;if(this['_removeCollabCursors'](),_0x358c5e){const {skeleton:_0x11a928,cursors:_0x9c98a5}=_0x358c5e;this[_0x22d9eb(0x2b4)](_0x11a928,_0x9c98a5);}})),this[_0xf6e454(0x1e1)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x295b3a,_0x3b8e50){const _0x5982ef=_0x2bbfc0,{scene:_0xbda628,mainComponent:_0x150d01}=this[_0x5982ef(0x1ad)],_0x16d67e=_0x3b8e50[_0x5982ef(0x1c0)](_0x4df69f=>new ot(_0x4df69f,_0xbda628,_0x295b3a,_0x150d01));this[_0x5982ef(0xd8)]=_0x16d67e,this[_0x5982ef(0x23b)]=_0x3b8e50;}[_0x2bbfc0(0x253)](){const _0x3b2057=_0x2bbfc0;this[_0x3b2057(0x269)]();const {scene:_0x3ea088,mainComponent:_0x31764e}=this[_0x3b2057(0x1ad)],_0x1ae2aa=this[_0x3b2057(0x18c)][_0x3b2057(0x282)](),_0x33906f=this[_0x3b2057(0x23b)][_0x3b2057(0x1c0)](_0x104248=>new ot(_0x104248,_0x3ea088,_0x1ae2aa,_0x31764e));this[_0x3b2057(0xd8)]=_0x33906f;}[_0x2bbfc0(0x269)](){const _0x49f797=_0x2bbfc0;this[_0x49f797(0xd8)][_0x49f797(0xd1)](_0x33bdba=>_0x33bdba['dispose']()),this[_0x49f797(0xd8)]=[];}[_0x2bbfc0(0x24d)](){const _0x457ce2=_0x2bbfc0,_0x52d0e0=[_0x11de14['id']];this['disposeWithMe'](this[_0x457ce2(0x1b0)][_0x457ce2(0x271)](_0x3a0b34=>{const _0x3c9ba4=_0x457ce2;_0x52d0e0[_0x3c9ba4(0x2d0)](_0x3a0b34['id'])&&_0x3a0b34[_0x3c9ba4(0x17b)]['unitId']===this['_context'][_0x3c9ba4(0x297)]&&this[_0x3c9ba4(0x253)]();}));}['_initResize'](){const _0x1ef084=_0x2bbfc0;this[_0x1ef084(0x137)](_0x5a0019(this[_0x1ef084(0x1ad)][_0x1ef084(0x173)]['onTransformChange$'])['pipe'](_0x3f463c(_0x1be392=>_0x1be392[_0x1ef084(0x1db)]===_0x36addb[_0x1ef084(0x20d)]),_0x4acb06(0x10))['subscribe'](()=>{const _0x1dbc8d=_0x1ef084;this[_0x1dbc8d(0x253)]();}));}};$e=Qi([ne(0x1,_0xe4420f(_0x4cf177)),ne(0x2,_0xe4420f(Y)),ne(0x3,_0x11a32e),ne(0x4,_0xe4420f(_0x9d0d41))],$e);const qi=0x1,en=1.5;class tn extends _0x4aa97d{constructor(_0x50c4fd,_0x10666e){const _0x9f2764=_0x2bbfc0;super(_0x50c4fd,_0x10666e),_(this,'_color'),_(this,_0x9f2764(0x24c),!0x1),_(this,'_range'),_(this,_0x9f2764(0x2de),''),_(this,_0x9f2764(0x104),_0x9f2764(0x1c3)),_(this,_0x9f2764(0x100)),(_0x10666e&&this[_0x9f2764(0x1a9)](_0x10666e),this['onPointerEnter$'][_0x9f2764(0x196)](()=>this[_0x9f2764(0x1a9)]({'hovered':!0x0})),this[_0x9f2764(0xbd)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2bbfc0(0x1a9)](_0x1e9543){const _0xf848ad=_0x2bbfc0;var _0xabc0a2,_0x3f6cef,_0x36e765,_0x462ee8,_0x57bf38,_0x31760b;this[_0xf848ad(0x248)]=(_0xabc0a2=_0x1e9543['color'])!=null?_0xabc0a2:this[_0xf848ad(0x248)],this[_0xf848ad(0x24c)]=(_0x3f6cef=_0x1e9543[_0xf848ad(0xb7)])!=null?_0x3f6cef:this[_0xf848ad(0x24c)],this[_0xf848ad(0x147)]=(_0x36e765=_0x1e9543['range'])!=null?_0x36e765:this[_0xf848ad(0x147)],this[_0xf848ad(0x2de)]=(_0x462ee8=_0x1e9543[_0xf848ad(0x23a)])!=null?_0x462ee8:this[_0xf848ad(0x2de)],this[_0xf848ad(0x104)]=(_0x57bf38=_0x1e9543[_0xf848ad(0x21b)])!=null?_0x57bf38:this['_labelPosition'],this[_0xf848ad(0x100)]=(_0x31760b=_0x1e9543['backgroundColor'])!=null?_0x31760b:this['_backgroundColor'],this['transformByState']({'width':_0x1e9543[_0xf848ad(0x180)],'height':_0x1e9543[_0xf848ad(0x280)]});}[_0x2bbfc0(0x220)](_0x246dde){const _0x524de3=_0x2bbfc0,{row:_0x1d754a,column:_0x11da4a}=_0x246dde;if(_0x1d754a>=this['_range']['startRow']&&_0x1d754a<=this[_0x524de3(0x147)][_0x524de3(0x1c4)]&&_0x11da4a>=this['_range'][_0x524de3(0x1d8)]&&_0x11da4a<=this['_range']['endColumn']){this[_0x524de3(0x1a9)]({'hovered':!0x0});return;}this[_0x524de3(0x1a9)]({'hovered':!0x1});}[_0x2bbfc0(0x113)](_0x2cbdea){return!0x1;}['_draw'](_0x52cba7){const _0xecd2a2=_0x2bbfc0;_0x451bdd[_0xecd2a2(0x175)](_0x52cba7,{'width':this[_0xecd2a2(0x180)],'height':this[_0xecd2a2(0x280)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xecd2a2(0x24c)]&&(_0x52cba7[_0xecd2a2(0x273)](),_0x52cba7[_0xecd2a2(0xc5)](0x1,0x0,0x0,0x1,this[_0xecd2a2(0x180)],this['_labelPosition']===_0xecd2a2(0x101)?0x0:-q),Ie[_0xecd2a2(0x175)](_0x52cba7,{'text':this[_0xecd2a2(0x2de)],'color':this[_0xecd2a2(0x248)]}),_0x52cba7['restore']());}}var sn=Object[_0x2bbfc0(0x148)],nn=(_0x5861d0,_0x100f59,_0x4ce218,_0x4943cf)=>{const _0x3b8a7d=_0x2bbfc0;for(var _0x27b35c=_0x4943cf>0x1?void 0x0:_0x4943cf?sn(_0x100f59,_0x4ce218):_0x100f59,_0x23ab26=_0x5861d0[_0x3b8a7d(0x1f3)]-0x1,_0x569949;_0x23ab26>=0x0;_0x23ab26--)(_0x569949=_0x5861d0[_0x23ab26])&&(_0x27b35c=_0x569949(_0x27b35c)||_0x27b35c);return _0x27b35c;},Re=(_0x32c2af,_0x769d60)=>(_0x4463ec,_0x566094)=>_0x769d60(_0x4463ec,_0x566094,_0x32c2af);const rn=0x1389;let xe=class extends _0x4e1f77{constructor(_0x244b78,_0x4f6383,_0x3f863d,_0xb6b03b){const _0x18f0fb=_0x2bbfc0;super(),_(this,_0x18f0fb(0x23b),new Set()),_(this,'_lastPointer',null),(this[_0x18f0fb(0x1ad)]=_0x244b78,this[_0x18f0fb(0x1d9)]=_0x4f6383,this[_0x18f0fb(0x1f5)]=_0x3f863d,this[_0x18f0fb(0x185)]=_0xb6b03b,this[_0x18f0fb(0x266)]());}['_init'](){const _0x275602=_0x2bbfc0;this[_0x275602(0x1d9)][_0x275602(0x12e)][_0x275602(0x20c)](_0x12494f(this[_0x275602(0x1ef)]),_0x9b89d(_0x1b6470=>{const _0x23e10e=_0x275602;if(_0x1b6470){const _0x35a635=_0x1b6470[_0x23e10e(0xfe)];return _0x5513b8(this['_collabCursorController'][_0x23e10e(0xd2)](this[_0x23e10e(0x1ad)][_0x23e10e(0x297)]),this[_0x23e10e(0x185)][_0x23e10e(0x15b)])[_0x23e10e(0x20c)](_0x304645(([_0x1228d4,_0x2612c7])=>{const _0x5451e1=_0x23e10e,_0x5e25dd=new Map();return _0x1228d4[_0x5451e1(0xd1)]((_0x4bd5c4,_0x148c3b)=>{const _0x14d51d=_0x5451e1;if(_0x4bd5c4['sheetID']===_0x35a635){const _0x14b40a={..._0x4bd5c4};_0x14b40a['color']=this['_themeService'][_0x14d51d(0xd0)](_0x4bd5c4[_0x14d51d(0xf3)]),_0x5e25dd[_0x14d51d(0x1a7)](_0x148c3b,_0x14b40a);}}),{'skeleton':_0x1b6470,'cursors':_0x5e25dd};}));}return _0x5093ec({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x49a619,cursors:_0x4eb059})=>{const _0x58c7eb=_0x275602;this[_0x58c7eb(0x269)](),_0x49a619&&this[_0x58c7eb(0x2b4)](_0x49a619,_0x4eb059);}),this[_0x275602(0x1d9)][_0x275602(0x12e)][_0x275602(0x274)](_0x3c11a5=>{const _0x27a942=_0x275602;if(_0x3c11a5==null)return;const {skeleton:_0x48be94}=_0x3c11a5,{scene:_0x59e3b1}=this['_context'];_0x59e3b1[_0x27a942(0x241)][_0x27a942(0x196)](_0x424e7a(_0xd80791=>{const _0x10e2a6=_0x27a942;var _0x1c87ea,_0x16283d;const {offsetX:_0x138140,offsetY:_0x2141f4}=_0xd80791,{x:_0x3905c0,y:_0x202a96}=_0x59e3b1['getRelativeToViewportCoord'](_0x2b1212[_0x10e2a6(0x27e)]([_0x138140,_0x2141f4])),{scaleX:_0x75e19e,scaleY:_0x360f5f}=_0x59e3b1[_0x10e2a6(0x26b)](),_0x175352=_0x59e3b1['getViewport'](_0x2e87b4[_0x10e2a6(0x242)]),_0x40d0cc=_0x59e3b1[_0x10e2a6(0x2c1)](_0x2b1212['FromArray']([_0x3905c0,_0x202a96]),_0x175352),_0x49541e=_0x48be94['getCellPositionByOffset'](_0x138140,_0x2141f4,_0x75e19e,_0x360f5f,_0x40d0cc);((_0x1c87ea=this[_0x10e2a6(0x267)])==null?void 0x0:_0x1c87ea['column'])===_0x49541e[_0x10e2a6(0x2d6)]&&((_0x16283d=this['_lastPointer'])==null?void 0x0:_0x16283d[_0x10e2a6(0x22d)])===_0x49541e[_0x10e2a6(0x22d)]||this[_0x10e2a6(0x23b)]['forEach'](_0x515521=>{const _0x177631=_0x10e2a6;_0x515521[_0x177631(0x220)](_0x49541e);});},0x64));});}['_updateCollabCursors'](_0x176010,_0x1ee4ef){const _0x1c560a=_0x2bbfc0;var _0x4a1f9f;const _0x2c1f51=(_0x4a1f9f=this[_0x1c560a(0x1d9)][_0x1c560a(0x270)]())==null?void 0x0:_0x4a1f9f[_0x1c560a(0x2b7)];if(!_0x2c1f51)return;const _0x7da103=this[_0x1c560a(0x154)]();if(!_0x7da103)return;this[_0x1c560a(0x23b)][_0x1c560a(0xd1)](_0xfe661=>{_0xfe661['makeDirty']();});const {scene:_0x372d92}=_0x7da103,_0x5eeda9=on(Array[_0x1c560a(0x1f0)](_0x1ee4ef[_0x1c560a(0x1d6)]()))['map'](_0x5d8209=>{const _0x9b11a2=_0x1c560a,{color:_0x3d9032,range:_0x32c687,name:_0x233862,selection:_0x59592a,sheetID:_0x7b335b}=_0x5d8209,{startColumn:_0x2b9b06,startRow:_0x1b336a,endColumn:_0x3aad3a,endRow:_0x555cb7}=_0x32c687,_0x1f2152=_0x20d31e(_0x1b336a,_0x2b9b06,_0x372d92,_0x2c1f51),_0xf5254=_0x20d31e(_0x555cb7,_0x3aad3a,_0x372d92,_0x2c1f51),{columnHeaderHeightAndMarginTop:_0x42c59f}=_0x2c1f51,{startX:_0x4b34e4,startY:_0x26dfb3}=_0x1f2152,{endX:_0x5accf3,endY:_0x181847}=_0xf5254,_0x29c856=_0x5accf3-_0x4b34e4,_0x4dc60b=_0x181847-_0x26dfb3,_0x1670bb={'labelPosition':_0x26dfb3-_0x42c59f>=q?_0x9b11a2(0x1c3):_0x9b11a2(0x101),'sheetID':_0x7b335b,'range':_0x32c687,'color':_0x3d9032,'name':_0x233862,'selection':_0x59592a,'left':_0x4b34e4,'top':_0x26dfb3,'width':_0x29c856,'height':_0x4dc60b,'evented':!0x1,'zIndex':rn};return new tn(_0x233862,_0x1670bb);});_0x372d92[_0x1c560a(0x129)](_0x5eeda9,qi),this[_0x1c560a(0x23b)]=new Set(_0x5eeda9);}[_0x2bbfc0(0x269)](){const _0x5d4662=_0x2bbfc0;var _0x4bdf8e;(_0x4bdf8e=this[_0x5d4662(0x23b)])==null||_0x4bdf8e[_0x5d4662(0xd1)](_0x58d069=>_0x58d069['dispose']());}[_0x2bbfc0(0x154)](){const _0x1d407f=_0x2bbfc0;return _0x5b1714(this[_0x1d407f(0x1ad)][_0x1d407f(0xde)],this[_0x1d407f(0x1ad)]);}};xe=nn([Re(0x1,_0xe4420f(_0x386628)),Re(0x2,_0xe4420f(Y)),Re(0x3,_0xe4420f(_0x9d0d41))],xe);function on(_0x2f1a3f){const _0x6284fb=_0x2bbfc0,_0x49ae4b=new Map();return _0x2f1a3f[_0x6284fb(0xd1)](_0x5c369e=>{const _0x5d2bdc=_0x6284fb;if(_0x49ae4b[_0x5d2bdc(0x257)](_0x5c369e[_0x5d2bdc(0x193)])){const _0x176619=_0x49ae4b[_0x5d2bdc(0xa9)](_0x5c369e[_0x5d2bdc(0x193)]);_0x176619[_0x5d2bdc(0x23a)]+=',\x20'+_0x5c369e[_0x5d2bdc(0x23a)];}else _0x49ae4b[_0x5d2bdc(0x1a7)](_0x5c369e[_0x5d2bdc(0x193)],_0x5c369e);}),Array['from'](_0x49ae4b['values']());}var an=Object[_0x2bbfc0(0x148)],cn=(_0x2552f9,_0x2f2e60,_0x4ac794,_0x4e6bad)=>{const _0x373aa6=_0x2bbfc0;for(var _0x520531=_0x4e6bad>0x1?void 0x0:_0x4e6bad?an(_0x2f2e60,_0x4ac794):_0x2f2e60,_0x5c7289=_0x2552f9[_0x373aa6(0x1f3)]-0x1,_0xa76427;_0x5c7289>=0x0;_0x5c7289--)(_0xa76427=_0x2552f9[_0x5c7289])&&(_0x520531=_0xa76427(_0x520531)||_0x520531);return _0x520531;},k=(_0x132fa3,_0x2cc9f0)=>(_0xbfd792,_0x2a43d6)=>_0x2cc9f0(_0xbfd792,_0x2a43d6,_0x132fa3);let le=class extends _0x33140b{constructor(_0x536c1d,_0x68dee7,_0x251a21,_0x5c72e4,_0x3cc8b2,_0x3695e1){const _0x1660d2=_0x2bbfc0;super(),this[_0x1660d2(0xa4)]=_0x536c1d,this[_0x1660d2(0x158)]=_0x68dee7,this['_collaborationUIEventService']=_0x251a21,this[_0x1660d2(0x189)]=_0x5c72e4,this[_0x1660d2(0x211)]=_0x3cc8b2,this[_0x1660d2(0x288)]=_0x3695e1,this['_setupBeforeClosingHandler'](),this[_0x1660d2(0x19f)]();}[_0x2bbfc0(0xa0)](){const _0x3df515=_0x2bbfc0;this[_0x3df515(0x137)](this[_0x3df515(0xa4)][_0x3df515(0xdf)](()=>{const _0x4a9578=_0x3df515;if(this[_0x4a9578(0x158)][_0x4a9578(0x1b2)][_0x4a9578(0x279)])return this[_0x4a9578(0x288)]['t'](_0x4a9578(0xe5));}));}[_0x2bbfc0(0x19f)](){const _0x1bcf78=_0x2bbfc0;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0x1bcf78(0x274)](_0x1bef71=>{const _0x1a5eef=_0x1bcf78;_0x1bef71['id']===_0x1e97d7[_0x1a5eef(0xf4)]&&this[_0x1a5eef(0x189)][_0x1a5eef(0x23d)]({'type':_0x1ee61d[_0x1a5eef(0x2a9)],'content':this['_localeService']['t'](_0x1a5eef(0x26a))}),_0x1bef71['id']===_0x1e97d7['CLOSE_ROOM']&&this[_0x1a5eef(0x189)][_0x1a5eef(0x23d)]({'type':_0x1ee61d[_0x1a5eef(0x2a9)],'content':this[_0x1a5eef(0x288)]['t'](_0x1a5eef(0x199))}),_0x1bef71['id']===_0x1e97d7[_0x1a5eef(0xfb)]&&this[_0x1a5eef(0x211)][_0x1a5eef(0x23d)]({'title':this[_0x1a5eef(0x288)]['t'](_0x1a5eef(0x289)),'content':this[_0x1a5eef(0x288)]['t']('permission.content'),'type':_0x1a5eef(0x22e),'duration':0x0}),_0x1bef71['id']===_0x1e97d7[_0x1a5eef(0x2b5)]&&this[_0x1a5eef(0x189)][_0x1a5eef(0x23d)]({'type':_0x1ee61d['Error'],'content':this[_0x1a5eef(0x288)]['t'](_0x1a5eef(0x199))+'('+_0x1bef71[_0x1a5eef(0x275)]+')'}),_0x1bef71['id']===_0x1e97d7[_0x1a5eef(0xd9)]&&this[_0x1a5eef(0x189)][_0x1a5eef(0x23d)]({'type':_0x1ee61d[_0x1a5eef(0x2a9)],'content':this['_localeService']['t'](_0x1bef71['data']||'')}),_0x1bef71['id']===_0x1e97d7[_0x1a5eef(0x227)]&&this[_0x1a5eef(0x189)][_0x1a5eef(0x23d)]({'type':_0x1ee61d['Warning'],'content':this[_0x1a5eef(0x288)]['t']('session.will-retry')}),_0x1bef71['id']===_0x1e97d7[_0x1a5eef(0x177)]&&this[_0x1a5eef(0x189)][_0x1a5eef(0x23d)]({'type':_0x1ee61d[_0x1a5eef(0x1ca)],'content':this[_0x1a5eef(0x288)]['t']('session.connection-failed')}),_0x1bef71['id']===_0x1e97d7[_0x1a5eef(0x2c6)]&&this[_0x1a5eef(0x189)][_0x1a5eef(0x23d)]({'type':_0x1ee61d['Error'],'content':this[_0x1a5eef(0x288)]['t']('session.collaboration-timeout')});}));}};le=cn([k(0x0,_0x2971a2),k(0x1,_0x4ed506),k(0x2,_0xe4420f(_0x28b574)),k(0x3,_0x3a98c),k(0x4,_0x2e7dbf),k(0x5,_0xe4420f(_0x5c0eee))],le);const ln=_0x2bbfc0(0x1ee),at={};var _n=Object['getOwnPropertyDescriptor'],hn=(_0x5e8fb8,_0x43b771,_0x24a7ec,_0x2fde99)=>{const _0x35ed1e=_0x2bbfc0;for(var _0x23cdd3=_0x2fde99>0x1?void 0x0:_0x2fde99?_n(_0x43b771,_0x24a7ec):_0x43b771,_0x397a03=_0x5e8fb8[_0x35ed1e(0x1f3)]-0x1,_0x190798;_0x397a03>=0x0;_0x397a03--)(_0x190798=_0x5e8fb8[_0x397a03])&&(_0x23cdd3=_0x190798(_0x23cdd3)||_0x23cdd3);return _0x23cdd3;},ct=(_0x3af83a,_0x3e4e0b)=>(_0x38ab76,_0x39c942)=>_0x3e4e0b(_0x38ab76,_0x39c942,_0x3af83a);let _e=class{constructor(_0x4c3d33,_0x50b5a3){const _0xcb9065=_0x2bbfc0;this[_0xcb9065(0x16e)]=_0x4c3d33,this[_0xcb9065(0x1ed)]=_0x50b5a3;}[_0x2bbfc0(0xe3)](_0x3b3449){const _0x55d660=_0x2bbfc0;this[_0x55d660(0x22b)](_0x3b3449),this[_0x55d660(0xcf)](_0x3b3449);}[_0x2bbfc0(0x1da)](_0x517cb9){const _0x466ccc=_0x2bbfc0,{unitID:_0x3aa49f}=_0x517cb9,_0x574cea=this['_renderManagerService'][_0x466ccc(0x232)](_0x3aa49f)[_0x466ccc(0x228)](_0x2d13c9),{redoCache:_0x480140}=_0x574cea[_0x466ccc(0x12b)]();if(_0x480140['length']===0x0)return _0x517cb9;let _0x2f0250=_0x2e781f[_0x466ccc(0x1a3)](_0x517cb9['mutations'][0x0]);for(let _0x1f499d=0x0;_0x1f499d<_0x480140[_0x466ccc(0x1f3)];_0x1f499d++){const _0x3e641c={'id':_0x466ccc(0x293),'params':{..._0x480140[_0x1f499d]}},_0x2dd4c3=this[_0x466ccc(0x16e)][_0x466ccc(0x2aa)](_0x2f0250,_0x3e641c,!0x1);if(_0x2dd155(_0x2dd4c3))throw _0x2dd4c3['error'];_0x2f0250=_0x2dd4c3['m1Prime'];}return{..._0x2e781f[_0x466ccc(0x1a3)](_0x517cb9),'mutations':[_0x2f0250]};}[_0x2bbfc0(0x22b)](_0x262096){const _0x330676=_0x2bbfc0,{unitID:_0x1ff6f4}=_0x262096,_0x481ff0=this[_0x330676(0x1ed)]['getRenderById'](_0x1ff6f4)[_0x330676(0x228)](_0x2d13c9),{undoCache:_0x518b16,redoCache:_0x12efb0}=_0x481ff0[_0x330676(0x12b)]();if(_0x518b16[_0x330676(0x1f3)]===0x0||_0x12efb0[_0x330676(0x1f3)]===0x0)return;const _0x25a409=[],_0x817053=[];let _0x1071a4=_0x2e781f[_0x330676(0x1a3)](_0x262096['mutations'][0x0]),_0x47215f=_0x2e781f[_0x330676(0x1a3)](_0x262096[_0x330676(0x255)][0x0]);for(let _0x44ee09=_0x518b16['length']-0x1;_0x44ee09>=0x0;_0x44ee09--){const _0x176629={'id':'doc.mutation.rich-text-editing','params':{..._0x518b16[_0x44ee09]}},_0x57d37b={'id':_0x330676(0x293),'params':{..._0x12efb0[_0x44ee09]}},_0x53cb37=this[_0x330676(0x16e)][_0x330676(0x2aa)](_0x1071a4,_0x176629,!0x1),_0x154ae0=this[_0x330676(0x16e)]['transformMutation'](_0x47215f,_0x57d37b,!0x1);if(_0x2dd155(_0x53cb37))throw _0x53cb37[_0x330676(0x22e)];if(_0x2dd155(_0x154ae0))throw _0x154ae0[_0x330676(0x22e)];_0x25a409[_0x330676(0x2a1)](_0x53cb37[_0x330676(0x139)]['params']),_0x817053[_0x330676(0x2a1)](_0x154ae0[_0x330676(0x139)][_0x330676(0x17b)]),_0x1071a4=_0x53cb37[_0x330676(0x109)],_0x47215f=_0x154ae0[_0x330676(0x109)];}_0x481ff0['setUndoRedoMutationParamsCache']({'undoCache':_0x25a409,'redoCache':_0x817053});}[_0x2bbfc0(0xcf)](_0x5686e0){const _0x11a69e=_0x2bbfc0,{unitID:_0x15682c}=_0x5686e0,_0x4223e3=this[_0x11a69e(0x1ed)][_0x11a69e(0x232)](_0x15682c)[_0x11a69e(0x228)](_0x2d13c9),_0x1823f8=_0x4223e3[_0x11a69e(0x26f)]();if(_0x1823f8==null)return;const _0x2c893b=[{'id':_0x11a69e(0x293),'params':{'unitId':_0x5686e0[_0x11a69e(0x238)],'actions':null,'textRanges':[_0x1823f8]}}],_0xba681e=this[_0x11a69e(0x16e)][_0x11a69e(0x29f)](_0x5686e0,_0x2c893b);if(!_0x32c556(_0xba681e))throw _0xba681e[_0x11a69e(0x22e)];const _0x3e4460=_0xba681e[_0x11a69e(0x139)][0x0][_0x11a69e(0x17b)][_0x11a69e(0xb2)];Array[_0x11a69e(0x25b)](_0x3e4460)&&_0x3e4460[_0x11a69e(0x1f3)]&&_0x4223e3[_0x11a69e(0x2a5)](_0x3e4460[0x0]);}};_e=hn([ct(0x0,_0x3f1e23),ct(0x1,_0x19c917)],_e);var un=Object[_0x2bbfc0(0x148)],dn=(_0xb24fe7,_0x362c2d,_0xe8d072,_0x3d3a83)=>{const _0xb678a7=_0x2bbfc0;for(var _0x4bea3b=_0x3d3a83>0x1?void 0x0:_0x3d3a83?un(_0x362c2d,_0xe8d072):_0x362c2d,_0x52dc31=_0xb24fe7[_0xb678a7(0x1f3)]-0x1,_0x1a42cb;_0x52dc31>=0x0;_0x52dc31--)(_0x1a42cb=_0xb24fe7[_0x52dc31])&&(_0x4bea3b=_0x1a42cb(_0x4bea3b)||_0x4bea3b);return _0x4bea3b;},De=(_0x15533a,_0x1db7cc)=>(_0x5d65e8,_0x3876f6)=>_0x1db7cc(_0x5d65e8,_0x3876f6,_0x15533a);let he=class{constructor(_0x48a599,_0x54bcba,_0x51ffe5){const _0x4ae48d=_0x2bbfc0;this[_0x4ae48d(0x169)]=_0x48a599,this[_0x4ae48d(0x16e)]=_0x54bcba,this['_docStateChangeManagerService']=_0x51ffe5;}['transformStateCache'](_0x472b5a){const _0x126500=_0x2bbfc0;this[_0x126500(0x186)](_0x472b5a);}['transformRemoteChangeset'](_0xb7c9f1){const _0x593814=_0x2bbfc0,{unitID:_0x18f8aa}=_0xb7c9f1,{collaboration:_0xd5ff07}=this[_0x593814(0xf1)][_0x593814(0xaa)](_0x18f8aa);if(_0xd5ff07['length']===0x0)return _0xb7c9f1;let _0x127ce4=_0x2e781f[_0x593814(0x1a3)](_0xb7c9f1[_0x593814(0x255)][0x0]);for(let _0x3bd041=0x0;_0x3bd041<_0xd5ff07[_0x593814(0x1f3)];_0x3bd041++){const _0x52198e={'id':_0x593814(0x293),'params':{'unitId':_0xd5ff07[_0x3bd041][_0x593814(0x297)],..._0xd5ff07[_0x3bd041]['redoState']}},_0x10d2c3=this[_0x593814(0x16e)][_0x593814(0x2aa)](_0x127ce4,_0x52198e,!0x1);if(_0x2dd155(_0x10d2c3))throw _0x10d2c3[_0x593814(0x22e)];_0x127ce4=_0x10d2c3[_0x593814(0x109)];}return{..._0x2e781f[_0x593814(0x1a3)](_0xb7c9f1),'mutations':[_0x127ce4]};}['_transformHistoryAndStateStack'](_0x458590){const _0x3a096d=_0x2bbfc0,{unitID:_0x3e4b03}=_0x458590,{history:_0x470794,collaboration:_0x497a9c}=this[_0x3a096d(0xf1)][_0x3a096d(0xaa)](_0x3e4b03);if(_0x470794[_0x3a096d(0x1f3)]===0x0&&_0x497a9c['length']===0x0)return;const _0x3bfeb3=[],_0x43fa59=[];let _0x30d1a3=_0x2e781f[_0x3a096d(0x1a3)](_0x458590[_0x3a096d(0x255)][0x0]),_0x35da0d=_0x2e781f[_0x3a096d(0x1a3)](_0x458590['mutations'][0x0]);for(let _0x3b95a9=_0x470794[_0x3a096d(0x1f3)]-0x1;_0x3b95a9>=0x0;_0x3b95a9--){const _0x14c8a9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x470794[_0x3b95a9]['unitId'],..._0x470794[_0x3b95a9][_0x3a096d(0x2b9)]}},_0x7cfc89={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x470794[_0x3b95a9][_0x3a096d(0x297)],..._0x470794[_0x3b95a9]['redoState']}},_0x1e7457=this['_transformService'][_0x3a096d(0x2aa)](_0x30d1a3,_0x14c8a9,!0x1),_0x345253=this[_0x3a096d(0x16e)][_0x3a096d(0x2aa)](_0x35da0d,_0x7cfc89,!0x1);if(_0x2dd155(_0x1e7457))throw _0x1e7457[_0x3a096d(0x22e)];if(_0x2dd155(_0x345253))throw _0x345253[_0x3a096d(0x22e)];_0x3bfeb3[_0x3a096d(0x2a1)]({..._0x470794[_0x3b95a9],'undoState':_0x1e7457[_0x3a096d(0x139)]['params'],'redoState':_0x345253['m2Prime'][_0x3a096d(0x17b)]}),_0x30d1a3=_0x1e7457[_0x3a096d(0x109)],_0x35da0d=_0x345253[_0x3a096d(0x109)];}_0x30d1a3=_0x2e781f[_0x3a096d(0x1a3)](_0x458590[_0x3a096d(0x255)][0x0]),_0x35da0d=_0x2e781f[_0x3a096d(0x1a3)](_0x458590[_0x3a096d(0x255)][0x0]);for(let _0x2eb2c0=_0x497a9c[_0x3a096d(0x1f3)]-0x1;_0x2eb2c0>=0x0;_0x2eb2c0--){const _0x349c3f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x497a9c[_0x2eb2c0][_0x3a096d(0x297)],..._0x497a9c[_0x2eb2c0]['undoState']}},_0x31eb09={'id':_0x3a096d(0x293),'params':{'unitId':_0x497a9c[_0x2eb2c0][_0x3a096d(0x297)],..._0x497a9c[_0x2eb2c0][_0x3a096d(0x2d1)]}},_0x2b4509=this[_0x3a096d(0x16e)][_0x3a096d(0x2aa)](_0x30d1a3,_0x349c3f,!0x1),_0x82bbf=this['_transformService']['transformMutation'](_0x35da0d,_0x31eb09,!0x1);if(_0x2dd155(_0x2b4509))throw _0x2b4509['error'];if(_0x2dd155(_0x82bbf))throw _0x82bbf[_0x3a096d(0x22e)];_0x43fa59['unshift']({..._0x497a9c[_0x2eb2c0],'undoState':_0x2b4509['m2Prime'][_0x3a096d(0x17b)],'redoState':_0x82bbf['m2Prime'][_0x3a096d(0x17b)]}),_0x30d1a3=_0x2b4509[_0x3a096d(0x109)],_0x35da0d=_0x82bbf[_0x3a096d(0x109)];}this[_0x3a096d(0xf1)]['setStateCache'](_0x3e4b03,{'history':_0x3bfeb3,'collaboration':_0x43fa59});}};he=dn([De(0x0,_0xe4420f(_0x1210ca)),De(0x1,_0x3f1e23),De(0x2,_0xe4420f(_0x2267bc))],he);var fn=Object['getOwnPropertyDescriptor'],Sn=(_0xb502ec,_0x55247e,_0x5cd803,_0x42018b)=>{const _0xf5234c=_0x2bbfc0;for(var _0x588641=_0x42018b>0x1?void 0x0:_0x42018b?fn(_0x55247e,_0x5cd803):_0x55247e,_0x327f01=_0xb502ec[_0xf5234c(0x1f3)]-0x1,_0x5f0a85;_0x327f01>=0x0;_0x327f01--)(_0x5f0a85=_0xb502ec[_0x327f01])&&(_0x588641=_0x5f0a85(_0x588641)||_0x588641);return _0x588641;},lt=(_0xc5b0bd,_0x4f2732)=>(_0x2ee67d,_0x467702)=>_0x4f2732(_0x2ee67d,_0x467702,_0xc5b0bd);let ue=class{constructor(_0x28a660,_0x56bb93){const _0x238ee4=_0x2bbfc0;this[_0x238ee4(0x169)]=_0x28a660,this[_0x238ee4(0x16e)]=_0x56bb93;}[_0x2bbfc0(0x295)](_0x3d20ca){const _0x3dff40=_0x2bbfc0;var _0x47a330;const _0x3591d9=this[_0x3dff40(0x169)][_0x3dff40(0xa9)](_0x161ce0),_0xaea607=(_0x47a330=_0x3591d9[_0x3dff40(0x1ec)]())!=null?_0x47a330:[];if(_0xaea607['length']===0x0)return;const _0x2763f4=_0x3d20ca[_0x3dff40(0x238)],_0x4f6637=[{'id':_0x3dff40(0x293),'params':{'unitId':_0x2763f4,'actions':null,'textRanges':_0xaea607}}],_0x33eccf=this[_0x3dff40(0x16e)][_0x3dff40(0x29f)](_0x3d20ca,_0x4f6637);if(!_0x32c556(_0x33eccf))throw _0x33eccf[_0x3dff40(0x22e)];const _0xf409f9=_0x33eccf[_0x3dff40(0x139)][0x0][_0x3dff40(0x17b)][_0x3dff40(0xb2)];Array[_0x3dff40(0x25b)](_0xf409f9)&&_0xf409f9['length']&&_0x3591d9['replaceDocRanges'](_0xf409f9,{'unitId':_0x2763f4,'subUnitId':_0x2763f4},!0x1);}};ue=Sn([lt(0x0,_0xe4420f(_0x1210ca)),lt(0x1,_0x3f1e23)],ue);var mn=Object['getOwnPropertyDescriptor'],In=(_0x21cbbb,_0x3c884f,_0x26b036,_0x180ce8)=>{const _0x22024b=_0x2bbfc0;for(var _0x5c4471=_0x180ce8>0x1?void 0x0:_0x180ce8?mn(_0x3c884f,_0x26b036):_0x3c884f,_0x4f1be3=_0x21cbbb[_0x22024b(0x1f3)]-0x1,_0x46261e;_0x4f1be3>=0x0;_0x4f1be3--)(_0x46261e=_0x21cbbb[_0x4f1be3])&&(_0x5c4471=_0x46261e(_0x5c4471)||_0x5c4471);return _0x5c4471;},U=(_0x2b23cb,_0x40706f)=>(_0x296777,_0x5192cf)=>_0x40706f(_0x296777,_0x5192cf,_0x2b23cb);let de=class extends _0x33140b{constructor(_0x3f4d71,_0x259a45,_0x5e8502,_0x39293b,_0xc0eaa6,_0x48f0be,_0x3073c8,_0x50c490){const _0x158e2a=_0x2bbfc0;super(),_(this,'_status$',new _0x4efa81(_0x5d7737[_0x158e2a(0x102)])),(this[_0x158e2a(0xf1)]=_0x3f4d71,this[_0x158e2a(0xcc)]=_0x259a45,this['_docTransformIMECacheService']=_0x5e8502,this[_0x158e2a(0x221)]=_0x39293b,this['_docTransformSelectionsService']=_0xc0eaa6,this[_0x158e2a(0x218)]=_0x48f0be,this['_messageService']=_0x3073c8,this[_0x158e2a(0x288)]=_0x50c490,this[_0x158e2a(0x290)]());}[_0x2bbfc0(0x290)](){const _0x447e8b=_0x2bbfc0;this['disposeWithMe'](this[_0x447e8b(0xcc)]['entityInit$'][_0x447e8b(0x274)](_0x4129be=>{const _0x11f5de=_0x447e8b,_0x3b89b0=this['_docStateChangeManagerService'][_0x11f5de(0xb1)][_0x11f5de(0x274)](_0x304db5=>{const _0x1a6bf9=_0x11f5de;if(_0x304db5==null)return;const {unitId:_0x931bae,redoState:_0x16c021,commandId:_0x2ad0a8}=_0x304db5;if(_0x931bae!==_0x4129be['unitID'])return;const _0x11c2b1={'id':_0x2ad0a8,'type':_0x54fa3d[_0x1a6bf9(0xa5)],'params':{'unitId':_0x931bae,'actions':_0x16c021[_0x1a6bf9(0x23c)],'textRanges':null}};_0x4129be[_0x1a6bf9(0x1bf)](_0x11c2b1);});if(_0x4129be[_0x11f5de(0x137)](_0x3b89b0),_0x4129be instanceof _0x2d6d9e){const _0x59247c={'onTransformIME':_0x1cd3cd=>this[_0x11f5de(0x131)][_0x11f5de(0xe3)](_0x1cd3cd),'onTransformState':_0x5c391f=>this[_0x11f5de(0x221)][_0x11f5de(0xc9)](_0x5c391f),'onTransformSelections':_0x40b6c1=>this[_0x11f5de(0x13b)][_0x11f5de(0x295)](_0x40b6c1),'onSyncEditingCollabCursor':_0x234692=>this['_docSyncEditingCollabCursorService'][_0x11f5de(0xc1)](_0x234692),'onTransformRemoteChangesetByIMECache':_0xa8f4e5=>this[_0x11f5de(0x131)][_0x11f5de(0x1da)](_0xa8f4e5),'onTransformRemoteChangesetByStateCache':_0x252a30=>this[_0x11f5de(0x221)]['transformRemoteChangeset'](_0x252a30)};_0x4129be[_0x11f5de(0x2b2)](_0x59247c);}}));}};de=In([U(0x0,_0xe4420f(_0x2267bc)),U(0x1,_0xe4420f(_0x2b7630)),U(0x2,_0xe4420f(_e)),U(0x3,_0xe4420f(he)),U(0x4,_0xe4420f(ue)),U(0x5,_0xe4420f(Ke)),U(0x6,_0x3a98c),U(0x7,_0xe4420f(_0x5c0eee))],de);var Q=(_0x497feb=>(_0x497feb[_0x497feb[_0x2bbfc0(0x2ce)]=0x0]=_0x2bbfc0(0x2ce),_0x497feb[_0x497feb['OK']=0x1]='OK',_0x497feb[_0x497feb[_0x2bbfc0(0x1b7)]=0x2]=_0x2bbfc0(0x1b7),_0x497feb[_0x497feb[_0x2bbfc0(0xfb)]=0x3]=_0x2bbfc0(0xfb),_0x497feb[_0x497feb[_0x2bbfc0(0x1f8)]=0x4]=_0x2bbfc0(0x1f8),_0x497feb[_0x497feb[_0x2bbfc0(0x2a2)]=0x5]=_0x2bbfc0(0x2a2),_0x497feb[_0x497feb[_0x2bbfc0(0x1b1)]=0x6]=_0x2bbfc0(0x1b1),_0x497feb[_0x497feb['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x497feb[_0x497feb['TOO_MANY_REQUESTS']=0x8]=_0x2bbfc0(0x247),_0x497feb[_0x497feb[_0x2bbfc0(0x28e)]=0x9]=_0x2bbfc0(0x28e),_0x497feb[_0x497feb['LOGIN_FAILED']=0xa]=_0x2bbfc0(0x21a),_0x497feb[_0x497feb[_0x2bbfc0(0x1ce)]=0xb]=_0x2bbfc0(0x1ce),_0x497feb[_0x497feb[_0x2bbfc0(0x13c)]=0xc]=_0x2bbfc0(0x13c),_0x497feb[_0x497feb['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2bbfc0(0x2c7),_0x497feb[_0x497feb[_0x2bbfc0(0x1d3)]=0xe]=_0x2bbfc0(0x1d3),_0x497feb[_0x497feb[_0x2bbfc0(0x11c)]=0xf]=_0x2bbfc0(0x11c),_0x497feb[_0x497feb['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x497feb[_0x497feb[_0x2bbfc0(0x29d)]=0x64]=_0x2bbfc0(0x29d),_0x497feb[_0x497feb[_0x2bbfc0(0xb3)]=0x65]=_0x2bbfc0(0xb3),_0x497feb[_0x497feb[_0x2bbfc0(0xed)]=0xc9]=_0x2bbfc0(0xed),_0x497feb[_0x497feb[_0x2bbfc0(0x200)]=0xca]=_0x2bbfc0(0x200),_0x497feb[_0x497feb[_0x2bbfc0(0xa2)]=0x1389]=_0x2bbfc0(0xa2),_0x497feb[_0x497feb[_0x2bbfc0(0x2d3)]=0x1771]=_0x2bbfc0(0x2d3),_0x497feb[_0x497feb[_0x2bbfc0(0x1b4)]=0x1772]=_0x2bbfc0(0x1b4),_0x497feb[_0x497feb['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2bbfc0(0x234),_0x497feb[_0x497feb[_0x2bbfc0(0x1bb)]=0x1b59]=_0x2bbfc0(0x1bb),_0x497feb[_0x497feb[_0x2bbfc0(0x146)]=0x1b5a]=_0x2bbfc0(0x146),_0x497feb[_0x497feb['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2bbfc0(0x2bf),_0x497feb[_0x497feb['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x497feb[_0x497feb[_0x2bbfc0(0xf2)]=0x1b5d]='APPLY_DUPLICATED',_0x497feb[_0x497feb[_0x2bbfc0(0x122)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x497feb[_0x497feb[_0x2bbfc0(0x13e)]=0x2329]=_0x2bbfc0(0x13e),_0x497feb[_0x497feb['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2bbfc0(0x22f),_0x497feb[_0x497feb[_0x2bbfc0(0x1fe)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x497feb[_0x497feb['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x2bbfc0(0x2cc),_0x497feb[_0x497feb[_0x2bbfc0(0x1a0)]=0x232d]=_0x2bbfc0(0x1a0),_0x497feb[_0x497feb[_0x2bbfc0(0x127)]=0x2711]=_0x2bbfc0(0x127),_0x497feb[_0x497feb['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2bbfc0(0x2c9),_0x497feb[_0x497feb['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2bbfc0(0x298),_0x497feb[_0x497feb[_0x2bbfc0(0xad)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x497feb[_0x497feb[_0x2bbfc0(0x1df)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x497feb[_0x497feb['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x497feb[_0x497feb['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2bbfc0(0x18e),_0x497feb[_0x497feb[_0x2bbfc0(0x192)]=0x271d]=_0x2bbfc0(0x192),_0x497feb[_0x497feb[_0x2bbfc0(0x162)]=0x271e]=_0x2bbfc0(0x162),_0x497feb[_0x497feb[_0x2bbfc0(0x230)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x497feb[_0x497feb[_0x2bbfc0(0x1ac)]=0x2720]=_0x2bbfc0(0x1ac),_0x497feb[_0x497feb[_0x2bbfc0(0x14a)]=0x2af9]=_0x2bbfc0(0x14a),_0x497feb[_0x497feb[_0x2bbfc0(0x2a7)]=0x2ee1]=_0x2bbfc0(0x2a7),_0x497feb[_0x497feb[_0x2bbfc0(0x2ca)]=0x2ee2]='INVALID_INVITE_CODE',_0x497feb[_0x497feb[_0x2bbfc0(0xe7)]=0x2ee3]=_0x2bbfc0(0xe7),_0x497feb[_0x497feb[_0x2bbfc0(0xf9)]=0x2ee4]=_0x2bbfc0(0xf9),_0x497feb[_0x497feb[_0x2bbfc0(0xa7)]=0x2ee5]=_0x2bbfc0(0xa7),_0x497feb[_0x497feb[_0x2bbfc0(0x237)]=0x32c9]=_0x2bbfc0(0x237),_0x497feb[_0x497feb[_0x2bbfc0(0x2b3)]=0x32ca]=_0x2bbfc0(0x2b3),_0x497feb[_0x497feb[_0x2bbfc0(0x272)]=0x32cb]=_0x2bbfc0(0x272),_0x497feb[_0x497feb[_0x2bbfc0(0x210)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x497feb[_0x497feb[_0x2bbfc0(0x285)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x497feb[_0x497feb[_0x2bbfc0(0x216)]=0x36b3]=_0x2bbfc0(0x216),_0x497feb[_0x497feb['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x2bbfc0(0x1d1),_0x497feb[_0x497feb['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x497feb[_0x497feb['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x2bbfc0(0x258),_0x497feb[_0x497feb['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x2bbfc0(0x283),_0x497feb[_0x497feb[_0x2bbfc0(0x2cf)]=0x3a99]=_0x2bbfc0(0x2cf),_0x497feb[_0x497feb[_0x2bbfc0(0x17a)]=0x3a9a]=_0x2bbfc0(0x17a),_0x497feb[_0x497feb[_0x2bbfc0(0x1a1)]=0x3a9b]=_0x2bbfc0(0x1a1),_0x497feb[_0x497feb[_0x2bbfc0(0x29a)]=0x3a9c]=_0x2bbfc0(0x29a),_0x497feb[_0x497feb[_0x2bbfc0(0x1f2)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x497feb[_0x497feb[_0x2bbfc0(0xb8)]=0x3a9e]=_0x2bbfc0(0xb8),_0x497feb[_0x497feb[_0x2bbfc0(0x182)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x497feb[_0x497feb['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x497feb))(Q||{});function gn(_0x20d487){const _0x571695=_0x2bbfc0;var _0x152a0e,_0x303c3b;const _0x5f14fb=(_0x152a0e=_0x20d487[_0x571695(0x294)])==null?void 0x0:_0x152a0e['stage'],_0x1c54e9=((_0x303c3b=_0x20d487[_0x571695(0x294)])==null?void 0x0:_0x303c3b[_0x571695(0x15f)])||0x0;return _0x5f14fb===_0x3a8233[_0x571695(0x168)]&&_0x1c54e9>0x0;}function vn(_0x1da78d){const _0x511b86=_0x2bbfc0;return _0x1da78d[_0x511b86(0xb5)]===_0x58753e[_0x511b86(0xec)];}var En=Object['getOwnPropertyDescriptor'],pn=(_0xb26c17,_0x56889f,_0x3133d7,_0x105bcc)=>{const _0x596f3b=_0x2bbfc0;for(var _0xf1c5ef=_0x105bcc>0x1?void 0x0:_0x105bcc?En(_0x56889f,_0x3133d7):_0x56889f,_0x3539df=_0xb26c17[_0x596f3b(0x1f3)]-0x1,_0x5d1888;_0x3539df>=0x0;_0x3539df--)(_0x5d1888=_0xb26c17[_0x3539df])&&(_0xf1c5ef=_0x5d1888(_0xf1c5ef)||_0xf1c5ef);return _0xf1c5ef;},w=(_0x2926fe,_0x2c5542)=>(_0x3b6b3c,_0x259d28)=>_0x2c5542(_0x3b6b3c,_0x259d28,_0x2926fe);const On='/universer-api/license/formula/limit/status',Tn='/universer-api/license/formula/limit/start',Cn=_0x2bbfc0(0x103);let fe=class extends _0x33140b{constructor(_0x496713,_0x159071,_0xd12f6e,_0x28f1bb,_0x41489a,_0x3684b0,_0x2769c8){const _0x21f096=_0x2bbfc0;super(),_(this,_0x21f096(0x9e),null),_(this,_0x21f096(0x178),0x0),_(this,_0x21f096(0x170),0x0),_(this,_0x21f096(0x150),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x21f096(0x189)]=_0x496713,this[_0x21f096(0x1b0)]=_0x159071,this[_0x21f096(0x1de)]=_0xd12f6e,this[_0x21f096(0x296)]=_0x28f1bb,this['_univerInstanceService']=_0x41489a,this[_0x21f096(0x1a4)]=_0x3684b0,this[_0x21f096(0x288)]=_0x2769c8,this[_0x21f096(0x286)]());}[_0x2bbfc0(0x286)](){const _0x235dd2=_0x2bbfc0;this[_0x235dd2(0x137)](this[_0x235dd2(0x1b0)][_0x235dd2(0x1ba)]((_0x3cec80,_0x8bcf4e)=>{const _0xfb1e19=_0x235dd2;if(_0x3cec80['id']!==_0x28dfaa['id'])return;const _0x3188ed=_0x3cec80[_0xfb1e19(0x17b)];if(!this[_0xfb1e19(0x167)](_0x3188ed[_0xfb1e19(0xab)]))return;if(!this['_checkCalculationAvailable']())throw this[_0xfb1e19(0x108)](_0x3cec80,_0x8bcf4e),this['_showGuardMessage'](),new _0x537125();})),this[_0x235dd2(0x137)](this[_0x235dd2(0x1b0)]['onCommandExecuted']((_0x3fdb52,_0x1e6b1f)=>{const _0x34e7e3=_0x235dd2;if(_0x3fdb52['id']!==_0x91d66['id'])return;const _0x35741f=_0x3fdb52[_0x34e7e3(0x17b)];if(gn(_0x35741f)){const _0x20bc6f=_0x3f3b85();this['_taskIds'][_0x34e7e3(0x22a)](_0x20bc6f),this[_0x34e7e3(0xb4)](_0x20bc6f);}else{if(vn(_0x35741f)&&this[_0x34e7e3(0x150)][_0x34e7e3(0x1f3)]>0x0){const _0x4d53f4=this[_0x34e7e3(0x150)][_0x34e7e3(0x202)]();this[_0x34e7e3(0x2ac)](_0x4d53f4);}}}));}[_0x2bbfc0(0x1f4)](){const _0x3fcd99=_0x2bbfc0;super['dispose'](),this[_0x3fcd99(0x2af)](),this[_0x3fcd99(0x150)]=[],this[_0x3fcd99(0x170)]=0x0,this[_0x3fcd99(0x178)]=0x0,this[_0x3fcd99(0x21e)]=0x0;}async[_0x2bbfc0(0x108)](_0x3e1b9f,_0x3a57b5){const _0x2e443d=_0x2bbfc0;for(let _0x27143c=0x0;_0x27143c<0x1e;_0x27143c++)try{if(await this[_0x2e443d(0x2b1)](),this[_0x2e443d(0x2d2)]()){this[_0x2e443d(0x1bc)](_0x3e1b9f,_0x3a57b5),this[_0x2e443d(0x189)][_0x2e443d(0x23d)]({'content':this[_0x2e443d(0x288)]['t'](_0x2e443d(0xf5)),'type':_0x1ee61d['Success']});return;}await new Promise(_0x31b6ff=>{const _0x3c26a9=_0x2e443d;this['_pollingInterval']=window[_0x3c26a9(0x25f)](_0x31b6ff,0x3e8);});}catch(_0xfaf19){this[_0x2e443d(0x1a4)][_0x2e443d(0x22e)](_0xfaf19);}this[_0x2e443d(0x189)]['show']({'content':this[_0x2e443d(0x288)]['t'](_0x2e443d(0x164)),'type':_0x1ee61d[_0x2e443d(0x1ca)]});}[_0x2bbfc0(0x1bc)](_0x214934,_0x516056){const _0x1eff03=_0x2bbfc0;try{this[_0x1eff03(0x1b0)][_0x1eff03(0x1dc)](_0x214934['id'],_0x214934[_0x1eff03(0x17b)],_0x516056);}catch(_0x174bb7){this[_0x1eff03(0x1a4)][_0x1eff03(0x22e)](_0x174bb7);}}[_0x2bbfc0(0xfd)](_0x169cef,_0x8461dc){const _0xa6de11=_0x2bbfc0;_0x8461dc<this[_0xa6de11(0x21e)]||(this['_lastResponseTimestamp']=_0x8461dc,this['_maxFormulaLimit']=Number[_0xa6de11(0x1f1)](_0x169cef[_0xa6de11(0x28d)]),this[_0xa6de11(0x170)]=Number[_0xa6de11(0x1f1)](_0x169cef[_0xa6de11(0xd3)]));}async[_0x2bbfc0(0xb4)](_0x4b9aad){const _0x487c13=_0x2bbfc0;var _0x217f81,_0x1827a5;const _0x57d579=Date[_0x487c13(0xea)]();try{const _0x2278c3=((_0x217f81=this[_0x487c13(0x1de)][_0x487c13(0x198)](_0x7af401))==null?void 0x0:_0x217f81[_0x487c13(0x2d9)])||Tn,_0x5da99a=(await this[_0x487c13(0x296)][_0x487c13(0x209)](_0x2278c3,{'body':JSON[_0x487c13(0x24f)]({'taskId':_0x4b9aad})}))['body'];if(((_0x1827a5=_0x5da99a[_0x487c13(0x22e)])==null?void 0x0:_0x1827a5[_0x487c13(0xca)])!==Q['OK'])return;this[_0x487c13(0xfd)](_0x5da99a['limitInfo'],_0x57d579);}catch(_0x371404){this[_0x487c13(0x1a4)][_0x487c13(0x22e)](_0x371404);}}async[_0x2bbfc0(0x2b1)](_0x5cc9d7){const _0xff54aa=_0x2bbfc0;var _0x121c1e,_0x2ee8a5;const _0x3e4eee=Date[_0xff54aa(0xea)]();try{const _0xbbef67=((_0x121c1e=this[_0xff54aa(0x1de)][_0xff54aa(0x198)](_0x7af401))==null?void 0x0:_0x121c1e[_0xff54aa(0x1ff)])||On,_0x4940e8=_0x5cc9d7?_0xbbef67+_0xff54aa(0x263)+encodeURIComponent(_0x5cc9d7):_0xbbef67,_0x24efc1=(await this[_0xff54aa(0x296)][_0xff54aa(0xa9)](_0x4940e8))[_0xff54aa(0xf0)];if(((_0x2ee8a5=_0x24efc1[_0xff54aa(0x22e)])==null?void 0x0:_0x2ee8a5[_0xff54aa(0xca)])!==Q['OK'])return;this[_0xff54aa(0xfd)](_0x24efc1[_0xff54aa(0x121)],_0x3e4eee);}catch(_0x1cfd0f){this['_logService']['error'](_0x1cfd0f);}}async[_0x2bbfc0(0x2ac)](_0x411426){const _0x2c3540=_0x2bbfc0;var _0x3abc8a,_0x1e3faa;const _0x1e31a6=Date[_0x2c3540(0xea)]();try{const _0xc5ee9a=((_0x3abc8a=this[_0x2c3540(0x1de)][_0x2c3540(0x198)](_0x7af401))==null?void 0x0:_0x3abc8a[_0x2c3540(0x12f)])||Cn,_0x141325=(await this['_httpService'][_0x2c3540(0x209)](_0xc5ee9a,{'body':JSON[_0x2c3540(0x24f)]({'taskId':_0x411426})}))[_0x2c3540(0xf0)];if(((_0x1e3faa=_0x141325[_0x2c3540(0x22e)])==null?void 0x0:_0x1e3faa[_0x2c3540(0xca)])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x141325[_0x2c3540(0x121)],_0x1e31a6);}catch(_0x113dce){this[_0x2c3540(0x1a4)][_0x2c3540(0x22e)](_0x113dce);}}['_checkCalculationAvailable'](){const _0x2cdbb1=_0x2bbfc0;return this[_0x2cdbb1(0x178)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x2cdbb1(0x170)]>0x0;}[_0x2bbfc0(0x2af)](){const _0x2ec710=_0x2bbfc0;this[_0x2ec710(0x9e)]&&(clearTimeout(this[_0x2ec710(0x9e)]),this[_0x2ec710(0x9e)]=null);}[_0x2bbfc0(0x10d)](){const _0x1f4ed6=_0x2bbfc0;this[_0x1f4ed6(0x189)][_0x1f4ed6(0x23d)]({'content':this[_0x1f4ed6(0x288)]['t'](_0x1f4ed6(0xbf)),'type':_0x1ee61d['Loading']});}[_0x2bbfc0(0x167)](_0x4714a0){const _0x488534=_0x2bbfc0;for(const _0x5c125d of _0x4714a0){const {unitId:_0x441697,sheetId:_0x5c6759,range:_0x287977}=_0x5c125d,_0xb93ffe=this[_0x488534(0xbb)][_0x488534(0x29b)](_0x441697);if(!_0xb93ffe)continue;const _0x49173d=_0xb93ffe[_0x488534(0x1bd)](_0x5c6759);if(!_0x49173d)continue;const _0x3a7297=_0x49173d[_0x488534(0x124)]();for(let _0x10a80e=_0x287977[_0x488534(0x115)];_0x10a80e<=_0x287977[_0x488534(0x1c4)];_0x10a80e++)for(let _0x169666=_0x287977[_0x488534(0x1d8)];_0x169666<=_0x287977[_0x488534(0x17d)];_0x169666++){const _0xdf02c=_0x3a7297['getValue'](_0x10a80e,_0x169666);if(_0xdf02c&&(_0x35945a(_0xdf02c['f'])||_0x225aae(_0xdf02c['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0xe4420f(_0x3a98c)),w(0x1,_0x11a32e),w(0x2,_0x30d503),w(0x3,_0xe4420f(_0x238c80)),w(0x4,_0x134894),w(0x5,_0x3730ba),w(0x6,_0xe4420f(_0x5c0eee))],fe);var Rn=Object[_0x2bbfc0(0x148)],Dn=(_0x4bd8a3,_0xbe782f,_0x31b7dd,_0x4c5db6)=>{for(var _0x366a9b=_0x4c5db6>0x1?void 0x0:_0x4c5db6?Rn(_0xbe782f,_0x31b7dd):_0xbe782f,_0x4a2e92=_0x4bd8a3['length']-0x1,_0x1a7721;_0x4a2e92>=0x0;_0x4a2e92--)(_0x1a7721=_0x4bd8a3[_0x4a2e92])&&(_0x366a9b=_0x1a7721(_0x366a9b)||_0x366a9b);return _0x366a9b;},be=(_0x1b903f,_0x37d886)=>(_0x42cf0d,_0x39c683)=>_0x37d886(_0x42cf0d,_0x39c683,_0x1b903f);let Be=class extends _0x33140b{constructor(_0x50e7a0,_0x14f4b0,_0x553a9b){const _0x3298db=_0x2bbfc0;super(),_(this,_0x3298db(0x207),new Map()),_(this,_0x3298db(0x1d0),new Map()),_(this,_0x3298db(0x156),!0x1),(this[_0x3298db(0x1de)]=_0x50e7a0,this[_0x3298db(0x14c)]=_0x14f4b0,this[_0x3298db(0x1e4)]=_0x553a9b);}[_0x2bbfc0(0xa6)](){const _0x3dd2cd=_0x2bbfc0;this[_0x3dd2cd(0x156)]=!0x0;}[_0x2bbfc0(0x2c0)](){const _0x511bf2=_0x2bbfc0;this[_0x511bf2(0x156)]=!0x1;}get[_0x2bbfc0(0x1b2)](){return this['_saveTaskMap'];}[_0x2bbfc0(0x1f4)](){const _0x285507=_0x2bbfc0;this[_0x285507(0x1c1)]()[_0x285507(0x112)](()=>super[_0x285507(0x1f4)]());}async['loadOfflineData'](_0x5a9183){const _0x3ccd8e=_0x2bbfc0;return this[_0x3ccd8e(0x156)]?null:this[_0x3ccd8e(0x14c)][_0x3ccd8e(0x1b6)](_0x51b148(_0x5a9183));}async[_0x2bbfc0(0x203)](_0x4ae9ff,_0x4cf89c){const _0x27398f=_0x2bbfc0;return!!this[_0x27398f(0x14c)][_0x27398f(0x28a)](_0x4ae9ff,_0x4cf89c);}[_0x2bbfc0(0xb6)](_0xec2167,_0x23f46f,_0x5af4c8,_0x211d89){const _0x56bbb8=_0x2bbfc0,_0x155c01=this[_0x56bbb8(0x1e4)][_0x56bbb8(0x19d)](_0xec2167);this[_0x56bbb8(0x207)][_0x56bbb8(0x1a7)](_0xec2167,{'unitID':_0xec2167,'type':_0x23f46f,'awaitingChangeset':_0x5af4c8,'mutations':_0x211d89,'rev':_0x155c01}),this[_0x56bbb8(0x1d0)][_0x56bbb8(0x257)](_0xec2167)||this[_0x56bbb8(0x1aa)](_0xec2167);}[_0x2bbfc0(0x1aa)](_0x344d82){const _0xae8f18=_0x2bbfc0,_0x2dbee8=this[_0xae8f18(0x1e9)]();_0x2dbee8===0x0?this[_0xae8f18(0x187)](_0x344d82):this[_0xae8f18(0x1d0)][_0xae8f18(0x1a7)](_0x344d82,setTimeout(()=>this['_saveCache'](_0x344d82),_0x2dbee8));}[_0x2bbfc0(0x1e9)](){const _0x4ed451=_0x2bbfc0;var _0x5131f3;return(_0x5131f3=this[_0x4ed451(0x1de)][_0x4ed451(0x198)](_0x288778))!=null?_0x5131f3:_0x38f5fd;}[_0x2bbfc0(0x187)](_0x446df2){const _0x198fb0=_0x2bbfc0,_0x2cd0a7=this[_0x198fb0(0x1d0)][_0x198fb0(0xa9)](_0x446df2);return _0x2cd0a7!==void 0x0&&window['clearTimeout'](_0x2cd0a7),this['_localStorageService'][_0x198fb0(0x28a)](_0x51b148(_0x446df2),this[_0x198fb0(0x207)]['get'](_0x446df2))[_0x198fb0(0x112)](()=>this[_0x198fb0(0x1d0)][_0x198fb0(0x26c)](_0x446df2));}async['exhaustSavingTask'](){const _0x418d7e=_0x2bbfc0,_0x302174=[];this[_0x418d7e(0x1d0)][_0x418d7e(0xd1)]((_0x450373,_0x5c69d8)=>{const _0x4ef26c=_0x418d7e;window[_0x4ef26c(0x179)](_0x450373),_0x302174[_0x4ef26c(0x22a)](this[_0x4ef26c(0x187)](_0x5c69d8)[_0x4ef26c(0x112)](()=>{const _0x1194e2=_0x4ef26c;this['_saveTaskMap'][_0x1194e2(0x26c)](_0x5c69d8);}));}),await Promise[_0x418d7e(0x159)](_0x302174);}};Be=Dn([be(0x0,_0x30d503),be(0x1,_0x2e3221),be(0x2,_0xe4420f(_0x197814))],Be);class bn extends _0x4e1f77{constructor(){const _0x3ca1ee=_0x2bbfc0;super(),_(this,_0x3ca1ee(0x18b)),this[_0x3ca1ee(0x18b)]=_0x2a21d1(window,'popstate')[_0x3ca1ee(0x20c)](_0x4df633(this[_0x3ca1ee(0x1ef)]),_0x554b68(0x1),_0x2cc6a8(void 0x0));}[_0x2bbfc0(0x21f)](_0x449aa8,_0x1ee073,_0x37f430=!0x1){const _0x55faee=_0x2bbfc0,_0x2d5cd8=new URL(window[_0x55faee(0x2dc)][_0x55faee(0x153)]);_0x2d5cd8[_0x55faee(0x1e0)][_0x55faee(0x1a7)](_0x449aa8,_0x1ee073),_0x37f430?window['history'][_0x55faee(0x27f)]('','',_0x2d5cd8[_0x55faee(0xcb)]()):window[_0x55faee(0x252)]['pushState']('','',_0x2d5cd8[_0x55faee(0xcb)]());}[_0x2bbfc0(0xac)](_0x283bff,_0x11ea96=!0x1){const _0x5de3dc=_0x2bbfc0,_0x5c9aa5=new URL(window[_0x5de3dc(0x2dc)][_0x5de3dc(0x153)]);_0x5c9aa5[_0x5de3dc(0x1e0)]['delete'](_0x283bff),_0x11ea96?window[_0x5de3dc(0x252)][_0x5de3dc(0x27f)]('','',_0x5c9aa5[_0x5de3dc(0xcb)]()):window[_0x5de3dc(0x252)]['pushState']('','',_0x5c9aa5[_0x5de3dc(0xcb)]());}[_0x2bbfc0(0xb9)](_0x3803f7){const _0x11cce1=_0x2bbfc0;var _0x4f9950;return(_0x4f9950=new URL(window['location'][_0x11cce1(0x153)])['searchParams'][_0x11cce1(0xa9)](_0x3803f7))!=null?_0x4f9950:void 0x0;}}var Nn=Object['defineProperty'],Un=Object[_0x2bbfc0(0x148)],Ln=(_0x13cb31,_0x168289,_0x3b15e1)=>_0x168289 in _0x13cb31?Nn(_0x13cb31,_0x168289,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b15e1}):_0x13cb31[_0x168289]=_0x3b15e1,Mn=(_0x398493,_0x5ea4c0,_0x156484,_0xee2061)=>{for(var _0x3d90bb=_0xee2061>0x1?void 0x0:_0xee2061?Un(_0x5ea4c0,_0x156484):_0x5ea4c0,_0x164b94=_0x398493['length']-0x1,_0xa14323;_0x164b94>=0x0;_0x164b94--)(_0xa14323=_0x398493[_0x164b94])&&(_0x3d90bb=_0xa14323(_0x3d90bb)||_0x3d90bb);return _0x3d90bb;},Ne=(_0x875e01,_0x49796d)=>(_0x12cbd6,_0x28a214)=>_0x49796d(_0x12cbd6,_0x28a214,_0x875e01),An=(_0x4ac424,_0x4b502e,_0x4e87f5)=>Ln(_0x4ac424,_0x4b502e+'',_0x4e87f5);function _0x37eb(_0x2a5df1,_0x4980d9){const _0x320012=_0x3200();return _0x37eb=function(_0x37eb50,_0x555dc7){_0x37eb50=_0x37eb50-0x9d;let _0x51665a=_0x320012[_0x37eb50];return _0x51665a;},_0x37eb(_0x2a5df1,_0x4980d9);}const Pn=_0x2bbfc0(0x21d);let Fe=class extends _0x55752a{constructor(_0x5b7260=at,_0x4504c7,_0x20c6e2,_0x631ff8){const _0x227bb8=_0x2bbfc0;super(),this[_0x227bb8(0x125)]=_0x5b7260,this[_0x227bb8(0x1ed)]=_0x4504c7,this[_0x227bb8(0x169)]=_0x20c6e2,this[_0x227bb8(0x1de)]=_0x631ff8;const {..._0x19d58b}=_0x3d3de8({},at,this['_config']);this[_0x227bb8(0x1de)][_0x227bb8(0x2d8)](ln,_0x19d58b);}['onStarting'](){const _0x40a2e8=_0x2bbfc0;this['_registerDependencies'](),this[_0x40a2e8(0x133)]();}['onRendered'](){const _0x2b2a03=_0x2bbfc0;this[_0x2b2a03(0x26e)]();}[_0x2bbfc0(0x118)](){const _0x42e0a5=_0x2bbfc0;var _0x4016ca;const _0x4be105=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x33b3ff,{'useClass':_0x2777f1}],[_0x4ed506,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x28c056(this[_0x42e0a5(0x169)],_0x3e2af9(_0x4be105,(_0x4016ca=this['_config'])==null?void 0x0:_0x4016ca[_0x42e0a5(0x140)]));}[_0x2bbfc0(0x26e)](){const _0x3fe328=_0x2bbfc0;this[_0x3fe328(0x137)](this[_0x3fe328(0x1ed)]['registerRenderModule'](_0x1cfcdd['UNIVER_DOC'],[$e])),this[_0x3fe328(0x137)](this[_0x3fe328(0x1ed)]['registerRenderModule'](_0x1cfcdd[_0x3fe328(0x231)],[xe]));}[_0x2bbfc0(0x133)](){const _0x47e4f9=_0x2bbfc0;_0x58adf6(this[_0x47e4f9(0x169)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x2bbfc0(0x16f),Pn),Fe=Mn([_0x295dd0(_0x37b9c2),Ne(0x1,_0x19c917),Ne(0x2,_0xe4420f(_0x1210ca)),Ne(0x3,_0x30d503)],Fe);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x4fb8ba,_0x471aa1,_0x25d57a,_0x267b59)=>{const _0x5c0b86=_0x2bbfc0;for(var _0x512c37=_0x267b59>0x1?void 0x0:_0x267b59?wn(_0x471aa1,_0x25d57a):_0x471aa1,_0x185233=_0x4fb8ba[_0x5c0b86(0x1f3)]-0x1,_0x140af7;_0x185233>=0x0;_0x185233--)(_0x140af7=_0x4fb8ba[_0x185233])&&(_0x512c37=_0x140af7(_0x512c37)||_0x512c37);return _0x512c37;},Z=(_0x4974be,_0x56fecf)=>(_0x163737,_0x1ad501)=>_0x56fecf(_0x163737,_0x1ad501,_0x4974be);let _t=class extends _0x5f3153{constructor(_0x17ff72,_0x4bc44f,_0x528ad5,_0x1759d2,_0xdaab7){super(_0x17ff72,_0x4bc44f,_0x528ad5,_0x1759d2,_0xdaab7);}async[_0x2bbfc0(0x14b)](_0x186400){const _0x5b78cb=_0x2bbfc0,_0x469efa=await this[_0x5b78cb(0x11d)](),_0x5216ea=this[_0x5b78cb(0xd4)](_0x186400,_0x469efa);return this[_0x5b78cb(0x13f)](_0x5216ea);}[_0x2bbfc0(0xd4)](_0x3621e3,_0xe0f997){const _0x2344ba=_0x2bbfc0,_0x518c14=typeof window>'u'?new URL(_0x3621e3):new URL(_0x3621e3,window[_0x2344ba(0x2dc)][_0x2344ba(0x143)]);_0x518c14[_0x2344ba(0x1e0)][_0x2344ba(0x1a7)](_0x2344ba(0x25d),_0xe0f997);const _0x13e975=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2344ba(0x2dc)][_0x2344ba(0x1dd)]);return _0x13e975[_0x2344ba(0xa9)]('runId')&&_0x518c14[_0x2344ba(0x1e0)][_0x2344ba(0x1a7)](_0x2344ba(0x225),_0x13e975[_0x2344ba(0xa9)](_0x2344ba(0x225))),_0x518c14[_0x2344ba(0xcb)]();}async[_0x2bbfc0(0x11d)](){const _0x246fc7=_0x2bbfc0;var _0x295b15,_0x17e841,_0x3eb260;const _0x4fe565=this[_0x246fc7(0x1de)][_0x246fc7(0x198)](_0x7af401),_0x1d7fb9=(_0x295b15=_0x4fe565==null?void 0x0:_0x4fe565[_0x246fc7(0x20a)])!=null?_0x295b15:_0xe1ee62;return(_0x3eb260=(_0x17e841=(await this[_0x246fc7(0x296)][_0x246fc7(0xa9)](_0x1d7fb9,{'headers':{'Content-Type':_0x246fc7(0x11b)}}))[_0x246fc7(0xf0)])==null?void 0x0:_0x17e841[_0x246fc7(0x291)])!=null?_0x3eb260:'';}};_t=yn([Z(0x0,_0xe4420f(_0x1210ca)),Z(0x1,_0xe4420f(_0x238c80)),Z(0x2,_0x30d503),Z(0x3,_0x3730ba),Z(0x4,_0x34715b)],_t);var $n=Object[_0x2bbfc0(0x148)],xn=(_0x43cf8c,_0x3c9187,_0x4b0b3b,_0x2cb90c)=>{const _0x41f486=_0x2bbfc0;for(var _0x49c510=_0x2cb90c>0x1?void 0x0:_0x2cb90c?$n(_0x3c9187,_0x4b0b3b):_0x3c9187,_0xd01d03=_0x43cf8c[_0x41f486(0x1f3)]-0x1,_0xeec83d;_0xd01d03>=0x0;_0xd01d03--)(_0xeec83d=_0x43cf8c[_0xd01d03])&&(_0x49c510=_0xeec83d(_0x49c510)||_0x49c510);return _0x49c510;},Ue=(_0x235984,_0x4c7ce1)=>(_0x5bcddc,_0x1a79e1)=>_0x4c7ce1(_0x5bcddc,_0x1a79e1,_0x235984);let ht=class extends _0x33140b{constructor(_0x54e65e,_0x37c932,_0x4cc96e){const _0xf1d198=_0x2bbfc0;super(),this['_instanceService']=_0x54e65e,this[_0xf1d198(0x296)]=_0x37c932,this[_0xf1d198(0x1de)]=_0x4cc96e;}async[_0x2bbfc0(0x236)](_0xc262e0,_0x56fb88,_0x126d27,..._0x5f5478){const _0x5499ff=_0x2bbfc0;var _0x328835,_0x2e5ba2,_0x326f00,_0x5e918f;const _0x54b0d1=this[_0x5499ff(0xe6)][_0x5499ff(0xe4)]();if(!_0x54b0d1)throw new Error(_0x5499ff(0x1f6));const _0x2e8b24=((_0x328835=this[_0x5499ff(0x1de)]['getConfig'](_0x46f103))!=null?_0x328835:_0x2e05a3)+'/'+_0xc262e0+_0x5499ff(0xa8)+_0x56fb88,_0x1e0a9c=new URL(window[_0x5499ff(0x2dc)][_0x5499ff(0x153)]),_0x525cbd={'scriptId':_0xc262e0,'runId':(_0x2e5ba2=_0x1e0a9c[_0x5499ff(0x1e0)][_0x5499ff(0xa9)](_0x5499ff(0x225)))!=null?_0x2e5ba2:'','function':_0x56fb88,'unitId':_0x54b0d1[_0x5499ff(0x24b)](),'argsOfFunction':JSON[_0x5499ff(0x24f)](_0x5f5478),'invokeId':(_0x326f00=_0x126d27[_0x5499ff(0xdb)])!=null?_0x326f00:'','executionId':(_0x5e918f=_0x126d27['executionId'])!=null?_0x5e918f:''};try{const _0x1e9c93=await this[_0x5499ff(0x296)][_0x5499ff(0x209)](_0x2e8b24,{'body':_0x525cbd});return _0x1e9c93['body'][_0x5499ff(0x22e)]&&_0x1e9c93[_0x5499ff(0xf0)][_0x5499ff(0x22e)][_0x5499ff(0xca)]!==Q['OK']?'Failed':_0x1e9c93['body'][_0x5499ff(0x17e)];}catch{return _0x5499ff(0x1fc);}}};ht=xn([Ue(0x0,_0x134894),Ue(0x1,_0xe4420f(_0x238c80)),Ue(0x2,_0x30d503)],ht);const ut=0x7530,dt=_0x2bbfc0(0x151);class ir extends _0x33140b{constructor(){const _0x5c1b35=_0x2bbfc0;super(),_(this,_0x5c1b35(0x2a6),_0x3f3b85()),_(this,_0x5c1b35(0xa1),new Set()),_(this,_0x5c1b35(0x239),new Map()),_(this,_0x5c1b35(0xd6),null),_(this,_0x5c1b35(0x194),new Map()),_(this,_0x5c1b35(0x16c),new Map()),this['_init']();}[_0x2bbfc0(0x1f4)](){const _0x4ad068=_0x2bbfc0;super['dispose'](),this[_0x4ad068(0x194)][_0x4ad068(0xd1)]((_0x5b122b,_0x46a417)=>this[_0x4ad068(0x2cd)](_0x46a417)),this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x2bbfc0(0x226)](_0x29a019){const _0x410335=_0x2bbfc0;return this[_0x410335(0x265)](_0x29a019)['pipe'](_0x7075d3());}[_0x2bbfc0(0x1fb)](_0x493257){const _0x144ba2=_0x2bbfc0;this[_0x144ba2(0xa1)]['size']===0x0&&this[_0x144ba2(0x245)](),this[_0x144ba2(0xa1)][_0x144ba2(0x157)](_0x493257),this[_0x144ba2(0x195)]({'type':0x0,'memberID':this[_0x144ba2(0x2a6)],'unitIDs':[_0x493257],'isForwarded':!0x1});}[_0x2bbfc0(0x19c)](_0x4f5b8a){const _0x501652=_0x2bbfc0;this[_0x501652(0xa1)]['delete'](_0x4f5b8a),this[_0x501652(0xa1)]['size']===0x0&&this[_0x501652(0xd6)]&&window['clearInterval'](this[_0x501652(0xd6)]);}[_0x2bbfc0(0x266)](){const _0x18e67c=_0x2bbfc0;this['disposeWithMe'](_0x1ac1e9(_0x2a21d1(window,'storage')['subscribe'](_0x301324=>{const _0x55b075=_0x37eb;if(_0x301324[_0x55b075(0xdc)]!==dt||!_0x301324[_0x55b075(0x2db)])return;const _0x4ac9c0=JSON[_0x55b075(0x10f)](_0x301324[_0x55b075(0x2db)]);this['_handleEvent'](_0x4ac9c0);}))),window[_0x18e67c(0x1d5)](_0x18e67c(0x188),()=>this[_0x18e67c(0x195)]({'type':0x1,'memberID':this[_0x18e67c(0x2a6)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x2bbfc0(0x240)](_0x1370f3){const _0x2090c2=_0x2bbfc0;switch(_0x1370f3[_0x2090c2(0x1db)]){case 0x0:this[_0x2090c2(0xd5)](_0x1370f3);break;case 0x1:this['_handleLeaveEvent'](_0x1370f3);break;case 0x2:this[_0x2090c2(0x27b)](_0x1370f3);break;}}['_handleJoinEvent'](_0x234dad){const _0x325bc1=_0x2bbfc0,{unitIDs:_0x4366c6,memberID:_0x508d85,isForwarded:_0x58f268}=_0x234dad;_0x4366c6[_0x325bc1(0xd1)](_0x5c94ad=>{const _0x3ea99a=_0x325bc1;if(!_0x58f268&&this[_0x3ea99a(0x239)][_0x3ea99a(0x257)](_0x5c94ad)&&this[_0x3ea99a(0x265)](_0x5c94ad)[_0x3ea99a(0x2a3)](_0x1f6484[_0x3ea99a(0x2ad)]),!this[_0x3ea99a(0x239)][_0x3ea99a(0x257)](_0x5c94ad)||!this[_0x3ea99a(0x239)]['get'](_0x5c94ad)['has'](_0x508d85)){const _0x1f9832=this['_unitOnClients']['get'](_0x5c94ad)||new Set();_0x1f9832[_0x3ea99a(0x157)](_0x508d85),this[_0x3ea99a(0x239)]['set'](_0x5c94ad,_0x1f9832),this['_scheduleClearOtherTimer'](_0x508d85);}}),_0x58f268||this['_send']({'type':0x0,'memberID':this[_0x325bc1(0x2a6)],'unitIDs':[...this[_0x325bc1(0xa1)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x42e396){const _0x247522=_0x2bbfc0;this[_0x247522(0x2cd)](_0x42e396);const _0x4cf657=window[_0x247522(0x25f)](()=>{const _0x3a6dd7=_0x247522;this[_0x3a6dd7(0x239)][_0x3a6dd7(0xd1)](_0xc01891=>{const _0x224501=_0x3a6dd7;_0xc01891[_0x224501(0x26c)](_0x42e396);});},ut*0x2);this[_0x247522(0x194)][_0x247522(0x1a7)](_0x42e396,_0x4cf657);}[_0x2bbfc0(0x2cd)](_0x4d97c2){const _0x40bb9b=_0x2bbfc0;if(this[_0x40bb9b(0x194)]['has'](_0x4d97c2)){const _0x26725e=this['_clearOtherTimers'][_0x40bb9b(0xa9)](_0x4d97c2);_0x26725e&&window[_0x40bb9b(0x179)](_0x26725e),this['_clearOtherTimers']['set'](_0x4d97c2,null);}}[_0x2bbfc0(0x28f)](_0x3978d4){const _0x425e7c=_0x2bbfc0,{memberID:_0x4c4718,unitIDs:_0x3afd48}=_0x3978d4;_0x3afd48[_0x425e7c(0xd1)](_0x1f51b6=>{const _0x3c14c9=_0x425e7c;var _0x53a1db;const _0x5def4a=this['_unitOnClients']['get'](_0x1f51b6);_0x5def4a&&(_0x5def4a[_0x3c14c9(0x26c)](_0x4c4718),(_0x53a1db=this[_0x3c14c9(0x265)](_0x1f51b6))==null||_0x53a1db[_0x3c14c9(0x2a3)](_0x5def4a[_0x3c14c9(0x279)]===0x0?_0x1f6484[_0x3c14c9(0x29c)]:_0x1f6484['OTHER_CLIENTS_EDITING']));}),this[_0x425e7c(0x2cd)](_0x4c4718);}['_handleHeartbeatEvent'](_0x1c88ed){const _0x503ed5=_0x2bbfc0;this[_0x503ed5(0x1cf)](_0x1c88ed[_0x503ed5(0x25a)]);}[_0x2bbfc0(0x195)](_0x46932d){const _0x5e3a25=_0x2bbfc0;localStorage[_0x5e3a25(0x28a)](dt,JSON[_0x5e3a25(0x24f)](_0x46932d));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x2ed37b=_0x37eb;this[_0x2ed37b(0x195)]({'type':0x2,'memberID':this['_id']});},ut);}[_0x2bbfc0(0x265)](_0x4707cb){const _0x50be4b=_0x2bbfc0;return this['_unitStatus'][_0x50be4b(0x257)](_0x4707cb)||this[_0x50be4b(0x16c)][_0x50be4b(0x1a7)](_0x4707cb,new _0x4efa81(_0x1f6484['NO_OTHER_CLIENTS_EDITING'])),this[_0x50be4b(0x16c)][_0x50be4b(0xa9)](_0x4707cb);}}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};
|
|
1
|
+
const _0x2fb053=_0x19f9;(function(_0x48bf79,_0x32ccc9){const _0xd8dfea=_0x19f9,_0xa55685=_0x48bf79();while(!![]){try{const _0x4f03ae=parseInt(_0xd8dfea(0x2bd))/0x1*(-parseInt(_0xd8dfea(0x225))/0x2)+-parseInt(_0xd8dfea(0x136))/0x3+parseInt(_0xd8dfea(0x112))/0x4*(parseInt(_0xd8dfea(0x288))/0x5)+-parseInt(_0xd8dfea(0x2e4))/0x6+parseInt(_0xd8dfea(0x2c4))/0x7*(-parseInt(_0xd8dfea(0x1cb))/0x8)+-parseInt(_0xd8dfea(0x2eb))/0x9*(parseInt(_0xd8dfea(0x2d0))/0xa)+-parseInt(_0xd8dfea(0x1e9))/0xb*(-parseInt(_0xd8dfea(0x2c0))/0xc);if(_0x4f03ae===_0x32ccc9)break;else _0xa55685['push'](_0xa55685['shift']());}catch(_0x3e8b9d){_0xa55685['push'](_0xa55685['shift']());}}}(_0x54a5,0x2d0cf));var kt=Object[_0x2fb053(0x14e)],Ht=(_0x2a1dd2,_0x17e5c4,_0x2951c9)=>_0x17e5c4 in _0x2a1dd2?kt(_0x2a1dd2,_0x17e5c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2951c9}):_0x2a1dd2[_0x17e5c4]=_0x2951c9,_=(_0x218c89,_0x2dba96,_0x1504b4)=>Ht(_0x218c89,typeof _0x2dba96!=_0x2fb053(0x287)?_0x2dba96+'':_0x2dba96,_0x1504b4);import{jsx as _0x209411,jsxs as _0x52a90f}from'react/jsx-runtime';import{CollaborationStatus as _0x3400cc,CollaborationSessionService as _0x200d73,CollaborationController as _0x23b58c,DataLoaderService as _0x5c6e84,MemberService as _0x4c46a7,SessionStatus as _0x33609d,ILocalCacheService as _0x3b7e91,CollaborationUIEventService as _0x2cd671,CollaborationUIEventId as _0x369f06,DocCollaborationEntity as _0x3d408d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5ad1cd,getLocalCacheKey as _0x5964fb,LOCAL_CACHE_INTERVAL as _0x419b5b,LOCAL_CACHE_INTERVAL_KEY as _0x5df4f1,UniverCollaborationClientPlugin as _0xe19a85,CollaborationSocketService as _0x21e75a,DEFAULT_WS_SESSION_TICKET_URL as _0x3128f1,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x3edb65,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x58ba1f,UnitStatus as _0x3ee666}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x42bd72,IUniverInstanceService as _0x265bc4,Inject as _0x1cf148,Injector as _0x3e1732,Disposable as _0x21676a,createIdentifier as _0x2620a3,ILogService as _0x238dc1,ICommandService as _0x25fda4,Optional as _0x3b9009,RxDisposable as _0x5db293,Workbook as _0x4e8bf5,DOC_RANGE_TYPE as _0x3d1932,debounce as _0x956fa2,Rectangle as _0xef80e,DisposableCollection as _0x23c32c,toDisposable as _0x2f72d1,UniverInstanceType as _0xfdfacf,generateRandomId as _0x39a9ea,COLORS as _0x1e2ef4,ColorKit as _0x529bad,ThemeService as _0x308eb3,fromEventSubject as _0x538ae9,Tools as _0x363c42,CommandType as _0x13db00,IConfigService as _0x1f9e5b,CanceledError as _0x405020,isFormulaString as _0x183b1b,isFormulaId as _0x5076fe,ILocalStorageService as _0x5e47a8,DependentOn as _0x21a2ed,Plugin as _0x52a20c,merge as _0x5ae167,registerDependencies as _0x34b217,mergeOverrideWithDependencies as _0xaf92d4,touchDependencies as _0x267a03}from'@univerjs/core';import{useObservable as _0x199c93,useDependency as _0x212533,IUIPartsService as _0x5579ac,BuiltInUIPart as _0x244003,connectInjector as _0x476e1a,IBeforeCloseService as _0x53303d,IMessageService as _0x12f250,INotificationService as _0x371a55}from'@univerjs/ui';import{BehaviorSubject as _0xf3de79,switchMap as _0x3448bc,of as _0x6c0e2,takeUntil as _0x14df6,debounceTime as _0x5dea63,Subject as _0x5db8e2,filter as _0x535d13,merge as _0x3f1086,combineLatest as _0x1f0f3e,fromEvent as _0x78da62,shareReplay as _0x302ab1,mapTo as _0x3c12f0,distinctUntilChanged as _0x5b89ad}from'rxjs';import{Tooltip as _0x312c13,clsx as _0x4753a1,MessageType as _0x29c3d1}from'@univerjs/design';import{forwardRef as _0x14d36b,useRef as _0x3cba81,createElement as _0x29f9eb,useCallback as _0x1189b4}from'react';import{IRemoteInstanceService as _0xf0c782}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x4add4,RefRangeService as _0xb4aaca,SetSelectionsOperation as _0x34ff36,SheetsSelectionsService as _0x176adc,EffectRefRangId as _0x438608,handleIRemoveRow as _0x3c0ce9,handleIRemoveCol as _0x47a051,handleMoveRange as _0xd701e4,handleInsertRow as _0x28dbf7,handleInsertRangeMoveRight as _0x5ec9c8,handleInsertRangeMoveDown as _0x11c49f,handleInsertCol as _0x1d58bc,handleDeleteRangeMoveUp as _0x203b87,handleDeleteRangeMoveLeft as _0x10fa60,runRefRangeMutations as _0x528d6a}from'@univerjs/sheets';import{Shape as _0x39aea7,Rect as _0x44f85b,getColor as _0x24e604,RegularPolygon as _0x183e57,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x540627,Vector2 as _0x4702a7,SHEET_VIEWPORT_KEY as _0x12a47b,IRenderManagerService as _0x4f1a93}from'@univerjs/engine-render';import{HTTPService as _0x2e9ac4,ISocketService as _0x233577,WebSocketService as _0x449f68}from'@univerjs/network';import{IDocClipboardService as _0x3b352d,NodePositionConvertToCursor as _0x286e65,NodePositionConvertToRectRange as _0x15809d,TEXT_RANGE_LAYER_INDEX as _0x517776,SetDocZoomRatioOperation as _0x4e1a6b,DocIMEInputManagerService as _0x5a3331,DocStateChangeManagerService as _0x5aa17c}from'@univerjs/docs-ui';import{IImageIoService as _0x5901d5}from'@univerjs/drawing';import{ITransformService as _0x410fc1,CollaborationEvent as _0x509492,isTransformMutationFailure as _0x166415,isTransformMutationsWithChangesetSuccess as _0x2ac4ba,RevisionService as _0x4d108a,ISnapshotServerService as _0x174978}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x822741,RichTextEditingMutation as _0x49b8af,DocSelectionManagerService as _0x99b730,DocSkeletonManagerService as _0x99f836}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xddd3dc,serializeRangeWithSheet as _0x38e6d7,FormulaExecuteStageType as _0x529aa9,FormulaExecutedStateType as _0x5cdf4a,SetFormulaCalculationStartMutation as _0x57f6c4,SetFormulaCalculationNotificationMutation as _0x2fc418}from'@univerjs/engine-formula';import{map as _0x3bc5b1,filter as _0x9af517,throttleTime as _0x4c52ce,takeUntil as _0x22cf69,switchMap as _0x5c9224}from'rxjs/operators';import{SheetSkeletonManagerService as _0x51655d,getCoordByCell as _0x1d08f4,getSheetObject as _0x385e6c}from'@univerjs/sheets-ui';var g=function(){const _0x3986bc=_0x2fb053;return g=Object[_0x3986bc(0x2ed)]||function(_0x4d1c44){const _0x41b794=_0x3986bc;for(var _0x5d3e18,_0x5f1d89=0x1,_0x157aed=arguments[_0x41b794(0x29e)];_0x5f1d89<_0x157aed;_0x5f1d89++){_0x5d3e18=arguments[_0x5f1d89];for(var _0xa03e85 in _0x5d3e18)Object[_0x41b794(0x243)][_0x41b794(0x1a4)]['call'](_0x5d3e18,_0xa03e85)&&(_0x4d1c44[_0xa03e85]=_0x5d3e18[_0xa03e85]);}return _0x4d1c44;},g[_0x3986bc(0x1b1)](this,arguments);},Ii=function(_0x3dc940,_0x3729b0){const _0x25dfee=_0x2fb053;var _0x588470={};for(var _0x106e8d in _0x3dc940)Object[_0x25dfee(0x243)][_0x25dfee(0x1a4)][_0x25dfee(0x165)](_0x3dc940,_0x106e8d)&&_0x3729b0[_0x25dfee(0x121)](_0x106e8d)<0x0&&(_0x588470[_0x106e8d]=_0x3dc940[_0x106e8d]);if(_0x3dc940!=null&&typeof Object['getOwnPropertySymbols']==_0x25dfee(0x183)){for(var _0x412f42=0x0,_0x106e8d=Object[_0x25dfee(0xb5)](_0x3dc940);_0x412f42<_0x106e8d[_0x25dfee(0x29e)];_0x412f42++)_0x3729b0[_0x25dfee(0x121)](_0x106e8d[_0x412f42])<0x0&&Object['prototype'][_0x25dfee(0xcb)][_0x25dfee(0x165)](_0x3dc940,_0x106e8d[_0x412f42])&&(_0x588470[_0x106e8d[_0x412f42]]=_0x3dc940[_0x106e8d[_0x412f42]]);}return _0x588470;},Xe=_0x14d36b(function(_0xd6a1a7,_0x3c894a){const _0x86b5b7=_0x2fb053;var _0x91745e=_0xd6a1a7[_0x86b5b7(0x19e)],_0x50dd25=_0xd6a1a7['id'],_0x471420=_0xd6a1a7[_0x86b5b7(0x17e)],_0xd0a8=_0xd6a1a7[_0x86b5b7(0xfb)],_0x1357c8=Ii(_0xd6a1a7,[_0x86b5b7(0x19e),'id',_0x86b5b7(0x17e),'extend']),_0x3c9407=_0x86b5b7(0x18f)['concat'](_0x50dd25,'\x20')[_0x86b5b7(0x1ce)](_0x471420||'')[_0x86b5b7(0x256)](),_0x4fc5cc=_0x3cba81('_'[_0x86b5b7(0x1ce)](Ei()));return Lt(_0x91745e,''[_0x86b5b7(0x1ce)](_0x50dd25),{'defIds':_0x91745e[_0x86b5b7(0x233)],'idSuffix':_0x4fc5cc[_0x86b5b7(0x1f0)]},g({'ref':_0x3c894a,'className':_0x3c9407},_0x1357c8),_0xd0a8);});function Lt(_0x17f786,_0x2e4cfb,_0x5be1d5,_0x36da13,_0xaf17ea){const _0x2d4d41=_0x2fb053;return _0x29f9eb(_0x17f786['tag'],g(g({'key':_0x2e4cfb},gi(_0x17f786,_0x5be1d5,_0xaf17ea)),_0x36da13),(vi(_0x17f786,_0x5be1d5)['children']||[])[_0x2d4d41(0x132)](function(_0x1916fc,_0xa707b0){const _0x32ac8=_0x2d4d41;return Lt(_0x1916fc,''[_0x32ac8(0x1ce)](_0x2e4cfb,'-')[_0x32ac8(0x1ce)](_0x17f786[_0x32ac8(0xb3)],'-')['concat'](_0xa707b0),_0x5be1d5,void 0x0,_0xaf17ea);}));}function gi(_0x11b5cb,_0x32ebfd,_0x42c16c){const _0x215307=_0x2fb053;var _0x46a315=g({},_0x11b5cb[_0x215307(0x2ca)]);_0x42c16c!=null&&_0x42c16c[_0x215307(0x10c)]&&_0x46a315['fill']===_0x215307(0x10c)&&(_0x46a315[_0x215307(0x1ae)]=_0x42c16c[_0x215307(0x10c)]),_0x11b5cb[_0x215307(0xb3)]===_0x215307(0x1c4)&&_0x46a315['id']&&(_0x46a315['id']=_0x46a315['id']+_0x32ebfd[_0x215307(0x167)]),Object['entries'](_0x46a315)[_0x215307(0x289)](function(_0x434f96){const _0x2da5dc=_0x215307;var _0x1b7994=_0x434f96[0x0],_0x174dc9=_0x434f96[0x1];_0x1b7994==='mask'&&typeof _0x174dc9==_0x2da5dc(0x25c)&&(_0x46a315[_0x1b7994]=_0x174dc9[_0x2da5dc(0xe4)](/url\(#(.*)\)/,_0x2da5dc(0x194)[_0x2da5dc(0x1ce)](_0x32ebfd[_0x2da5dc(0x167)],')')));});var _0x269927=_0x32ebfd[_0x215307(0x233)];return!_0x269927||_0x269927[_0x215307(0x29e)]===0x0||(_0x11b5cb[_0x215307(0xb3)]===_0x215307(0x204)&&_0x46a315[_0x215307(0x180)]&&(_0x46a315['xlink:href']=_0x46a315[_0x215307(0x180)]+_0x32ebfd['idSuffix']),Object[_0x215307(0x17f)](_0x46a315)['forEach'](function(_0x30c436){const _0x37298e=_0x215307;var _0x47644c=_0x30c436[0x0],_0x58f3e0=_0x30c436[0x1];typeof _0x58f3e0==_0x37298e(0x25c)&&(_0x46a315[_0x47644c]=_0x58f3e0['replace'](/url\(#(.*)\)/,_0x37298e(0x194)[_0x37298e(0x1ce)](_0x32ebfd[_0x37298e(0x167)],')')));})),_0x46a315;}function vi(_0x52ce1b,_0xcbee6b){const _0x5ce92c=_0x2fb053;var _0x255ca2,_0x4a8bd5=_0xcbee6b[_0x5ce92c(0x233)];return!_0x4a8bd5||_0x4a8bd5[_0x5ce92c(0x29e)]===0x0?_0x52ce1b:_0x52ce1b[_0x5ce92c(0xb3)]===_0x5ce92c(0x2ea)&&(!((_0x255ca2=_0x52ce1b['children'])===null||_0x255ca2===void 0x0)&&_0x255ca2[_0x5ce92c(0x29e)])?g(g({},_0x52ce1b),{'children':_0x52ce1b[_0x5ce92c(0x2a5)][_0x5ce92c(0x132)](function(_0xe9d8fd){const _0xe56a08=_0x5ce92c;return typeof _0xe9d8fd['attrs']['id']==_0xe56a08(0x25c)&&_0x4a8bd5&&_0x4a8bd5[_0xe56a08(0x2de)](_0xe9d8fd[_0xe56a08(0x2ca)]['id'])?g(g({},_0xe9d8fd),{'attrs':g(g({},_0xe9d8fd['attrs']),{'id':_0xe9d8fd[_0xe56a08(0x2ca)]['id']+_0xcbee6b[_0xe56a08(0x167)]})}):_0xe9d8fd;})}):_0x52ce1b;}function Ei(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Xe['displayName']=_0x2fb053(0xd4);var pi={'tag':'svg','attrs':{'xmlns':_0x2fb053(0x231),'fill':_0x2fb053(0x299),'viewBox':_0x2fb053(0x2c1),'width':_0x2fb053(0x18c),'height':_0x2fb053(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':_0x2fb053(0x174)},'children':[{'tag':'path','attrs':{'stroke':_0x2fb053(0x16b),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2fb053(0x283),'strokeLinejoin':_0x2fb053(0x283),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x2fb053(0x10e),'d':_0x2fb053(0x148)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Mt=_0x14d36b(function(_0x4a7a59,_0x5a308a){const _0x46f86b=_0x2fb053;return _0x29f9eb(Xe,Object[_0x46f86b(0x2ed)]({},_0x4a7a59,{'id':_0x46f86b(0x15e),'ref':_0x5a308a,'icon':pi}));});Mt['displayName']='OffLineIcon';var Oi={'tag':_0x2fb053(0x26e),'attrs':{'xmlns':_0x2fb053(0x231),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x2fb053(0x18c),'height':_0x2fb053(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2fb053(0x147),'attrs':{'stroke':_0x2fb053(0x16b),'d':_0x2fb053(0x190),'strokeLinecap':_0x2fb053(0x283),'strokeLinejoin':_0x2fb053(0x283),'strokeWidth':1.2}}]},{'tag':_0x2fb053(0x2ea),'attrs':{},'children':[{'tag':_0x2fb053(0x1b0),'attrs':{'id':_0x2fb053(0x175)},'children':[{'tag':_0x2fb053(0x147),'attrs':{'fill':_0x2fb053(0x10e),'d':_0x2fb053(0x148),'transform':_0x2fb053(0x2e8)}}]}]}],'defIds':[_0x2fb053(0x175)]},At=_0x14d36b(function(_0xe7f7bd,_0x49253f){const _0x3a1796=_0x2fb053;return _0x29f9eb(Xe,Object[_0x3a1796(0x2ed)]({},_0xe7f7bd,{'id':'on-line-icon','ref':_0x49253f,'icon':Oi}));});At[_0x2fb053(0x141)]=_0x2fb053(0x1dc);function Ti(_0x295556){const _0x10b486=_0x2fb053;switch(_0x295556){case _0x3400cc['OFFLINE']:return _0x10b486(0x22b);case _0x3400cc[_0x10b486(0x1e5)]:return'collabStatus.conflict';case _0x3400cc[_0x10b486(0xc1)]:return _0x10b486(0x2e5);case _0x3400cc[_0x10b486(0x255)]:return'collabStatus.notCollab';case _0x3400cc[_0x10b486(0x2a2)]:case _0x3400cc[_0x10b486(0x179)]:return _0x10b486(0x217);case _0x3400cc[_0x10b486(0x156)]:case _0x3400cc['PENDING']:return'collabStatus.synced';}}function Ci(_0x169926){const _0x426202=_0x2fb053,{status$:_0x3e08c3}=_0x169926,_0x2c5f38=_0x199c93(_0x3e08c3,_0x3400cc[_0x426202(0x255)]),_0x521a29=_0x212533(_0x42bd72),_0xb829cc=_0x212533(_0x200d73),_0x197ea9=_0x2c5f38!==_0x3400cc['OFFLINE'],_0x44efd1=_0x521a29['t'](Ti(_0x2c5f38)),_0x166f0d=_0x197ea9?_0x209411(At,{}):_0x209411(Mt,{}),_0xbbe360=_0x1189b4(()=>{const _0x91e02=_0x426202;_0x197ea9||_0xb829cc[_0x91e02(0xe8)]();},[_0x197ea9,_0xb829cc]);function _0x1552fc(){const _0x1e02f1=_0x426202;return _0x52a90f(_0x1e02f1(0x1a7),{'className':_0x1e02f1(0x195),'onClick':_0xbbe360,'children':[_0x209411('div',{'className':_0x4753a1(_0x1e02f1(0x139),{'univer-text-green-500':_0x197ea9,'univer-text-red-500':!_0x197ea9}),'children':_0x166f0d}),_0x209411('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x44efd1})]});}return _0x197ea9?_0x1552fc():_0x209411(_0x312c13,{'title':_0x521a29['t'](_0x426202(0x154)),'children':_0x1552fc()});}var Ri=Object[_0x2fb053(0x2a3)],Di=(_0x813f11,_0xea0817,_0x54be06,_0x1829f9)=>{const _0x3a1e3b=_0x2fb053;for(var _0x3510d9=_0x1829f9>0x1?void 0x0:_0x1829f9?Ri(_0xea0817,_0x54be06):_0xea0817,_0x3cdbef=_0x813f11[_0x3a1e3b(0x29e)]-0x1,_0x1843af;_0x3cdbef>=0x0;_0x3cdbef--)(_0x1843af=_0x813f11[_0x3cdbef])&&(_0x3510d9=_0x1843af(_0x3510d9)||_0x3510d9);return _0x3510d9;},ie=(_0x1b55bb,_0x53d4ab)=>(_0x897dfa,_0x4dd9b6)=>_0x53d4ab(_0x897dfa,_0x4dd9b6,_0x1b55bb);let ae=class extends _0x21676a{constructor(_0x548957,_0x389a84,_0x2579b3,_0xe72091){const _0x3c47d4=_0x2fb053;super(),_(this,_0x3c47d4(0xd5),new _0xf3de79(_0x3400cc[_0x3c47d4(0x255)])),(this[_0x3c47d4(0x1cf)]=_0x548957,this[_0x3c47d4(0x292)]=_0x389a84,this[_0x3c47d4(0x264)]=_0x2579b3,this[_0x3c47d4(0x1d3)]=_0xe72091,this[_0x3c47d4(0x17c)](),this[_0x3c47d4(0x161)]());}[_0x2fb053(0x161)](){const _0x4984d=_0x2fb053;this[_0x4984d(0x23d)](this[_0x4984d(0x1cf)][_0x4984d(0x20f)][_0x4984d(0x23a)](_0x3448bc(()=>{const _0x405838=_0x4984d,_0x201891=this[_0x405838(0x1cf)][_0x405838(0x29f)]();return _0x201891?this[_0x405838(0x264)]['getCollabEntity$'](_0x201891[_0x405838(0x2dd)]()):_0x6c0e2(null);}),_0x3448bc(_0x369a67=>_0x369a67?_0x369a67[_0x4984d(0x24b)]:_0x6c0e2(_0x3400cc[_0x4984d(0x255)])))[_0x4984d(0x143)](_0x55a59b=>{const _0x50bcdd=_0x4984d;this[_0x50bcdd(0xd5)][_0x50bcdd(0x220)](_0x55a59b);}));}['_initStatusComponent'](){const _0x5cd08e=_0x2fb053;this[_0x5cd08e(0x23d)](this['_uiPartsService']['registerComponent'](_0x244003[_0x5cd08e(0x1a3)],()=>_0x476e1a(bi({'status$':this[_0x5cd08e(0xd5)][_0x5cd08e(0x2d7)]()}),this[_0x5cd08e(0x292)])));}};ae=Di([ie(0x0,_0x265bc4),ie(0x1,_0x1cf148(_0x3e1732)),ie(0x2,_0x1cf148(_0x23b58c)),ie(0x3,_0x5579ac)],ae);function bi(_0x211640){const {status$:_0x417363}=_0x211640;return function(){return _0x209411(Ci,{'status$':_0x417363});};}const Pt=_0x2620a3(_0x2fb053(0x160));var Ni=Object[_0x2fb053(0x2a3)],Ui=(_0x411408,_0x4620b1,_0xcb1292,_0x37ab62)=>{const _0x3b68f6=_0x2fb053;for(var _0x4f9dc7=_0x37ab62>0x1?void 0x0:_0x37ab62?Ni(_0x4620b1,_0xcb1292):_0x4620b1,_0x330569=_0x411408[_0x3b68f6(0x29e)]-0x1,_0x20b70c;_0x330569>=0x0;_0x330569--)(_0x20b70c=_0x411408[_0x330569])&&(_0x4f9dc7=_0x20b70c(_0x4f9dc7)||_0x4f9dc7);return _0x4f9dc7;},z=(_0x26da61,_0x39c1ce)=>(_0x1f37af,_0x2a4f25)=>_0x39c1ce(_0x1f37af,_0x2a4f25,_0x26da61);let ce=class extends _0x5db293{constructor(_0x33816b,_0x26a2f1,_0x30740a,_0x515179,_0x587480){const _0x32ae4f=_0x2fb053;super(),this[_0x32ae4f(0xc3)]=_0x33816b,this[_0x32ae4f(0x2da)]=_0x26a2f1,this[_0x32ae4f(0x2c2)]=_0x30740a,this[_0x32ae4f(0xdc)]=_0x515179,_0x587480?_0x587480==null||_0x587480[_0x32ae4f(0x12c)]()[_0x32ae4f(0x296)](()=>this['_init']()):(this[_0x32ae4f(0x2da)]['debug']('[CollaborationDataLoaderController]',_0x32ae4f(0x27b)),this[_0x32ae4f(0x119)]());}async[_0x2fb053(0x119)](){const _0x430a98=_0x2fb053,_0x33b73c=this[_0x430a98(0xc3)][_0x430a98(0x1c8)](_0x430a98(0x199)),_0x41c15a=this[_0x430a98(0xc3)][_0x430a98(0x1c8)](_0x430a98(0x1c9)),_0x38225c=this[_0x430a98(0xc3)][_0x430a98(0x1c8)]('subunit');if(!_0x33b73c||!_0x41c15a){this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x206da1=await this[_0x430a98(0xdc)][_0x430a98(0x201)](_0x33b73c,Number(_0x41c15a),_0x38225c);_0x206da1&&_0x206da1 instanceof _0x4e8bf5&&this[_0x430a98(0x2b9)](_0x206da1);}async['_setupSubUnitSync'](_0x99d5db){const _0x2475f0=_0x2fb053;await this[_0x2475f0(0x101)](_0x99d5db),_0x99d5db[_0x2475f0(0xdf)][_0x2475f0(0x23a)](_0x14df6(this[_0x2475f0(0x169)]))[_0x2475f0(0x143)](_0x5709f8=>{_0x5709f8&&this['_updateURLWithCurrentState'](_0x5709f8);}),this['_urlService']['urlChange$'][_0x2475f0(0x23a)](_0x14df6(this[_0x2475f0(0x169)]))['subscribe'](()=>this[_0x2475f0(0x101)](_0x99d5db));}[_0x2fb053(0x222)](_0x5e266c,_0x4bbe40=!0x1){const _0x500f22=_0x2fb053,_0x31bd5c=this['_urlService'][_0x500f22(0x1c8)](_0x500f22(0xb4));_0x5e266c[_0x500f22(0xeb)]()!==_0x31bd5c&&this[_0x500f22(0xc3)][_0x500f22(0x20b)](_0x500f22(0xb4),_0x5e266c[_0x500f22(0xeb)](),_0x4bbe40);}async['_updateSubUnitFromURLParams'](_0x5b5bb5){const _0x13daea=_0x2fb053;var _0xa20182;const _0x49e12a=this[_0x13daea(0xc3)][_0x13daea(0x1c8)]('subunit');if(!_0x49e12a||!_0x5b5bb5[_0x13daea(0x280)](_0x49e12a)){const _0x3ad754=_0x5b5bb5[_0x13daea(0xd2)]()[0x0],_0x599a5e=_0x5b5bb5['getSheetBySheetId'](_0x3ad754);if(!_0x599a5e)return;this[_0x13daea(0x222)](_0x599a5e,!0x0),await this[_0x13daea(0x2c2)][_0x13daea(0x1f8)](_0x4add4['id'],{'unitId':_0x5b5bb5[_0x13daea(0x2dd)](),'subUnitId':_0x3ad754});return;}((_0xa20182=_0x5b5bb5[_0x13daea(0x23b)]())==null?void 0x0:_0xa20182[_0x13daea(0xeb)]())!==_0x49e12a&&await this[_0x13daea(0x2c2)][_0x13daea(0x1f8)](_0x4add4['id'],{'unitId':_0x5b5bb5[_0x13daea(0x2dd)](),'subUnitId':_0x49e12a});}};ce=Ui([z(0x0,Pt),z(0x1,_0x238dc1),z(0x2,_0x25fda4),z(0x3,_0x1cf148(_0x5c6e84)),z(0x4,_0x3b9009(_0xf0c782))],ce);var Li=Object[_0x2fb053(0x2a3)],Mi=(_0x13b406,_0x16652d,_0x11d152,_0x5ab2bf)=>{const _0x1ce25b=_0x2fb053;for(var _0x21aaa8=_0x5ab2bf>0x1?void 0x0:_0x5ab2bf?Li(_0x16652d,_0x11d152):_0x16652d,_0x1d85c6=_0x13b406[_0x1ce25b(0x29e)]-0x1,_0x1f8d27;_0x1d85c6>=0x0;_0x1d85c6--)(_0x1f8d27=_0x13b406[_0x1d85c6])&&(_0x21aaa8=_0x1f8d27(_0x21aaa8)||_0x21aaa8);return _0x21aaa8;},it=(_0x2f4e31,_0x6f1aa5)=>(_0x287c3f,_0x35ab8c)=>_0x6f1aa5(_0x287c3f,_0x35ab8c,_0x2f4e31);let Pe=class extends _0x5db293{constructor(_0x30d606,_0x5deef0){const _0x15805d=_0x2fb053;super(),this[_0x15805d(0x168)]=_0x30d606,this['_imageIoService']=_0x5deef0,this['_init']();}[_0x2fb053(0x119)](){const _0x1062b6=_0x2fb053,_0x5d5c58=this;this[_0x1062b6(0x23d)](this[_0x1062b6(0x168)][_0x1062b6(0x2a1)]({'onBeforePasteImage':async _0x14ff89=>{const _0x3b7501=_0x1062b6,_0x25dfaa=await _0x5d5c58[_0x3b7501(0xef)][_0x3b7501(0x1e2)](_0x14ff89);return _0x25dfaa?{'source':_0x25dfaa[_0x3b7501(0x1fd)],'imageSourceType':_0x25dfaa[_0x3b7501(0x2c9)]}:null;}}));}};Pe=Mi([it(0x0,_0x3b352d),it(0x1,_0x5901d5)],Pe);const nt=[_0x2fb053(0x224),_0x2fb053(0x1f6),_0x2fb053(0x1b4),_0x2fb053(0x186),_0x2fb053(0x166),'yellow.400'];class Ge extends _0x21676a{constructor(){const _0x1bf84d=_0x2fb053;super(...arguments),_(this,_0x1bf84d(0x281),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xba91b){const _0x35ceed=_0x2fb053;if(this[_0x35ceed(0x281)]['has'](_0xba91b))return this[_0x35ceed(0x281)][_0x35ceed(0x29d)](_0xba91b);const _0x3684c6=nt[this[_0x35ceed(0x22f)]];return this[_0x35ceed(0x22f)]=(this[_0x35ceed(0x22f)]+0x1)%nt[_0x35ceed(0x29e)],this[_0x35ceed(0x281)][_0x35ceed(0xd8)](_0xba91b,_0x3684c6),_0x3684c6;}}function wt(_0x422fef){let _0x7d0195='';for(const _0x55d8dc of _0x422fef){const {startOffset:_0x2c330d,endOffset:_0x32e76b,isActive:_0x2a5b59,rangeType:_0x805fd5,segmentId:_0x14d42c,segmentPage:_0x144dfe}=_0x55d8dc;_0x7d0195['length']&&(_0x7d0195+=','),_0x7d0195+=_0x2c330d+':'+_0x32e76b+':'+(_0x2a5b59?'1':'0')+':'+_0x805fd5+':'+_0x14d42c+':'+_0x144dfe;}return _0x7d0195;}function Ai(_0x3814cd){const _0xa0641f=_0x2fb053,_0x2a7055=_0x3814cd['split'](','),_0x459f6c=[];for(const _0x1815d4 of _0x2a7055){const [_0xa1cac3,_0x3f53c5,_0x352289,_0x1fc5ed,_0x40dab2,_0x1ad1b1]=_0x1815d4['split'](':');_0x459f6c['push']({'startOffset':Number(_0xa1cac3),'endOffset':Number(_0x3f53c5),'collapsed':_0xa1cac3===_0x3f53c5,'isActive':_0x352289==='1','rangeType':_0x1fc5ed===_0x3d1932[_0xa0641f(0x2ac)]?_0x3d1932[_0xa0641f(0x2ac)]:_0x3d1932['RECT'],'segmentId':typeof _0x40dab2=='string'?String(_0x40dab2):'','segmentPage':Number(_0x1ad1b1!=null?_0x1ad1b1:-0x1)});}return _0x459f6c['some'](_0x32d9a5=>_0x32d9a5[_0xa0641f(0x282)])||(_0x459f6c[0x0][_0xa0641f(0x282)]=!0x0),_0x459f6c;}class Ke extends _0x5db293{constructor(){const _0xf84f7b=_0x2fb053;super(...arguments),_(this,_0xf84f7b(0x244),new _0xf3de79(null)),_(this,_0xf84f7b(0xcc),this[_0xf84f7b(0x244)][_0xf84f7b(0x2d7)]());}[_0x2fb053(0x13c)](_0x2edd9c){const {unitID:_0x2b02b1,memberID:_0x256175,textRanges:_0x268592}=_0x2edd9c,_0x304a77=wt(_0x268592);if(_0x304a77==='')return;const _0x5acf8a={'unitID':_0x2b02b1,'memberID':_0x256175,'selection':_0x304a77};this['_collabCursorState$']['next'](_0x5acf8a);}}var Pi=Object[_0x2fb053(0x2a3)],wi=(_0x2478f8,_0x3228fd,_0x3885b8,_0x174696)=>{const _0x31b032=_0x2fb053;for(var _0x309522=_0x174696>0x1?void 0x0:_0x174696?Pi(_0x3228fd,_0x3885b8):_0x3228fd,_0x3c2c15=_0x2478f8[_0x31b032(0x29e)]-0x1,_0x2ad261;_0x3c2c15>=0x0;_0x3c2c15--)(_0x2ad261=_0x2478f8[_0x3c2c15])&&(_0x309522=_0x2ad261(_0x309522)||_0x309522);return _0x309522;},P=(_0x140027,_0x3d12bc)=>(_0xd25d53,_0x118470)=>_0x3d12bc(_0xd25d53,_0x118470,_0x140027);const yi=0x12c,$i=0x64;let we=class extends _0x5db293{constructor(_0x5842e8,_0xe54ae6,_0x4a1f7f,_0x3f7b32,_0x529ca6,_0x2323ea,_0x39f88a,_0x349096,_0x371190){const _0x28e94c=_0x2fb053;super(),_(this,_0x28e94c(0x29a),!0x1),_(this,_0x28e94c(0x119),!0x1),_(this,_0x28e94c(0x267),new _0xf3de79(new Map())),_(this,_0x28e94c(0xf8),this[_0x28e94c(0x267)][_0x28e94c(0x2d7)]()),_(this,_0x28e94c(0xdb),new _0xf3de79([])),_(this,_0x28e94c(0x2d2),this[_0x28e94c(0xdb)][_0x28e94c(0x23a)](_0x5dea63(yi))),_(this,_0x28e94c(0xf4),_0x956fa2(_0x37cad4=>{const _0x2ec136=_0x28e94c,_0x50b9c9={'eventID':_0x509492['UPDATE_CURSOR'],'data':{'unitID':this[_0x2ec136(0x1f7)],'memberID':this['_session'][_0x2ec136(0x28e)](),'selection':wt(_0x37cad4)}};this[_0x2ec136(0x11c)][_0x2ec136(0x2e2)](_0x50b9c9,this[_0x2ec136(0x1f7)]);},$i)),(this[_0x28e94c(0x1f7)]=_0x5842e8,this[_0x28e94c(0x11c)]=_0xe54ae6,this['_injector']=_0x4a1f7f,this[_0x28e94c(0x13a)]=_0x3f7b32,this[_0x28e94c(0xc2)]=_0x529ca6,this['_syncEditingCollabCursorService']=_0x2323ea,this[_0x28e94c(0x12f)]=_0x39f88a,this[_0x28e94c(0x1cf)]=_0x349096,this[_0x28e94c(0x2c2)]=_0x371190);}get[_0x2fb053(0x278)](){return this['_cursorInfo$']['getValue']();}get[_0x2fb053(0x25d)](){const _0x12a756=_0x2fb053;return this['_roomMembers$'][_0x12a756(0x16a)]();}[_0x2fb053(0x109)](){const _0x507974=_0x2fb053;super[_0x507974(0x109)](),this[_0x507974(0x267)]['next'](new Map()),this[_0x507974(0x267)]['complete'](),this['_roomMembers$'][_0x507974(0x220)]([]),this[_0x507974(0xdb)]['complete']();}[_0x2fb053(0x1b9)](){const _0x45f88b=_0x2fb053;this['_init']||(this[_0x45f88b(0x119)]=!0x0,this[_0x45f88b(0x11c)][_0x45f88b(0x268)][_0x45f88b(0x23a)](_0x14df6(this[_0x45f88b(0x169)]))[_0x45f88b(0x143)](_0x3ab5a9=>{const _0x36f341=_0x45f88b;_0x3ab5a9===_0x33609d[_0x36f341(0x2af)]?this['_toggleOnline']():this[_0x36f341(0xfa)]();}),this[_0x45f88b(0x11c)][_0x45f88b(0x26d)][_0x45f88b(0x23a)](_0x14df6(this[_0x45f88b(0x169)]))[_0x45f88b(0x143)](_0x2662d3=>{const _0x671218=_0x45f88b,_0x510295=_0x2662d3[_0x671218(0x215)];_0x510295===_0x509492['UPDATE_CURSOR']&&this[_0x671218(0xc6)](_0x2662d3),_0x510295===_0x509492[_0x671218(0x105)]&&this[_0x671218(0x2b1)](_0x2662d3);}),this[_0x45f88b(0x23d)](this['_commandService'][_0x45f88b(0x1fe)](_0x35bcba=>{const _0x162a05=_0x45f88b,_0x59a203=_0x35bcba['params'];_0x59a203!=null&&this[_0x162a05(0x29a)]&&_0x35bcba['id']===_0x822741['id']&&_0x59a203['unitId']===this[_0x162a05(0x1f7)]&&_0x59a203[_0x162a05(0x10b)]===!0x1&&_0x59a203[_0x162a05(0x24a)][_0x162a05(0x29e)]>0x0&&this['_updateLocalCursor'](_0x59a203[_0x162a05(0x24a)]);})),this[_0x45f88b(0x250)]['collabCursorState$'][_0x45f88b(0x23a)](_0x14df6(this[_0x45f88b(0x169)]))[_0x45f88b(0x143)](_0x52b8f5=>{const _0x5f0947=_0x45f88b;if((_0x52b8f5==null?void 0x0:_0x52b8f5['unitID'])!==this[_0x5f0947(0x1f7)])return;const _0x28d41b={'eventID':_0x509492['UPDATE_CURSOR'],'data':_0x52b8f5};this[_0x5f0947(0xc6)](_0x28d41b);}),this['disposeWithMe'](this['_commandService'][_0x45f88b(0x1fe)](_0x5948f3=>{const _0x4e44c9=_0x45f88b;if(_0x5948f3[_0x4e44c9(0x173)]==null)return;const _0x38e4a4=_0x5948f3[_0x4e44c9(0x173)];if(_0x5948f3['id']!==_0x49b8af['id']||_0x38e4a4[_0x4e44c9(0xcd)]!==this[_0x4e44c9(0x1f7)])return;const _0x5cca0c={'id':_0x4e44c9(0x218),'params':_0x38e4a4},_0x5f4fc7=this[_0x4e44c9(0x278)];for(const [_0x527c2f,_0x1a52ba]of _0x5f4fc7){const _0x4bc11c={'id':_0x4e44c9(0x218),'params':{'unitId':this[_0x4e44c9(0x1f7)],'actions':null,'textRanges':_0x1a52ba[_0x4e44c9(0x24a)]}},_0x1ee52e=this[_0x4e44c9(0x12f)][_0x4e44c9(0xec)](_0x5cca0c,_0x4bc11c,!0x1);if(_0x166415(_0x1ee52e))throw _0x1ee52e[_0x4e44c9(0x1a0)];_0x5f4fc7[_0x4e44c9(0xd8)](_0x527c2f,{..._0x1a52ba,'ranges':_0x1ee52e[_0x4e44c9(0x24e)][_0x4e44c9(0x173)][_0x4e44c9(0x2cf)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x5f4fc7);});})));}[_0x2fb053(0xc6)](_0x2fa902){const _0x352af9=_0x2fb053;var _0x26ee67,_0x448a0d;const {memberID:_0x35042e,selection:_0x13672a}=_0x2fa902[_0x352af9(0x20c)],_0x560ab9=Ai(_0x13672a),_0x4f79bb=(_0x448a0d=(_0x26ee67=this[_0x352af9(0xc2)]['getMember'](this[_0x352af9(0x1f7)],_0x35042e))==null?void 0x0:_0x26ee67[_0x352af9(0x27f)])!=null?_0x448a0d:'Unknown\x20user',_0x3e7e0b={'color':this[_0x352af9(0x13a)][_0x352af9(0xbe)](_0x35042e),'name':_0x4f79bb,'ranges':_0x560ab9},_0x559282=this[_0x352af9(0x278)];_0x559282[_0x352af9(0xd8)](_0x35042e,_0x3e7e0b),this[_0x352af9(0x267)][_0x352af9(0x220)](_0x559282);}[_0x2fb053(0x2b1)](_0x371b81){const _0x419a7d=_0x2fb053,{memberID:_0x2543c7}=_0x371b81[_0x419a7d(0x20c)],_0xccd518=this[_0x419a7d(0x278)];_0xccd518[_0x419a7d(0x28c)](_0x2543c7),this[_0x419a7d(0x267)][_0x419a7d(0x220)](_0xccd518);}['_toggleOnline'](){const _0x5f1394=_0x2fb053;var _0x4b44e9;if(this[_0x5f1394(0x29a)]=!0x0,((_0x4b44e9=this['_univerInstanceService'][_0x5f1394(0x29f)]())==null?void 0x0:_0x4b44e9[_0x5f1394(0x2dd)]())!==this[_0x5f1394(0x1f7)])return;const _0x56fa7e=this['_injector']['get'](_0x99b730)['getDocRanges']();Array[_0x5f1394(0x2db)](_0x56fa7e)&&_0x56fa7e['length']>0x0&&this[_0x5f1394(0xf4)](_0x56fa7e);}[_0x2fb053(0xfa)](){this['_online']=!0x1;}};we=wi([P(0x2,_0x1cf148(_0x3e1732)),P(0x3,_0x1cf148(Ge)),P(0x4,_0x1cf148(_0x4c46a7)),P(0x5,_0x1cf148(Ke)),P(0x6,_0x410fc1),P(0x7,_0x265bc4),P(0x8,_0x25fda4)],we);var xi=Object[_0x2fb053(0x2a3)],Bi=(_0x20ae92,_0x4fc8f2,_0x5e14fc,_0x58665f)=>{const _0x5d2285=_0x2fb053;for(var _0x1f0bb3=_0x58665f>0x1?void 0x0:_0x58665f?xi(_0x4fc8f2,_0x5e14fc):_0x4fc8f2,_0x1acce5=_0x20ae92[_0x5d2285(0x29e)]-0x1,_0x507a4d;_0x1acce5>=0x0;_0x1acce5--)(_0x507a4d=_0x20ae92[_0x1acce5])&&(_0x1f0bb3=_0x507a4d(_0x1f0bb3)||_0x1f0bb3);return _0x1f0bb3;},F=(_0x42d60b,_0x35cd06)=>(_0x1bc6d5,_0x2f01d7)=>_0x35cd06(_0x1bc6d5,_0x2f01d7,_0x42d60b);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x2f1930=[],_0x42fe2a=!0x1;return _0x27ca9c=>{_0x2f1930['push'](_0x27ca9c),_0x42fe2a||(_0x42fe2a=!0x0,setTimeout(()=>{const _0x28db5d=_0x19f9;_0x2f1930[_0x28db5d(0x289)](_0x52d48a=>_0x52d48a()),_0x2f1930=[],_0x42fe2a=!0x1;}));};};let ye=class extends _0x5db293{constructor(_0x63c44,_0x159a41,_0x59b961,_0xce8d66,_0x3e2ab4,_0x30389d,_0x1cd983,_0x590617){const _0xf76558=_0x2fb053;super(),_(this,_0xf76558(0x29a),!0x1),_(this,'_init',!0x1),_(this,_0xf76558(0x267),new _0xf3de79(new Map())),_(this,_0xf76558(0xf8),this[_0xf76558(0x267)][_0xf76558(0x2d7)]()),_(this,_0xf76558(0xdb),new _0xf3de79([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x5dea63(Fi))),_(this,_0xf76558(0xf4),_0x956fa2((_0x4bb18a,_0x5557c9)=>{const _0x3bb13c=_0xf76558,_0x1bacd7={'eventID':_0x509492[_0x3bb13c(0x2c3)],'data':{'unitID':this[_0x3bb13c(0x1f7)],'memberID':this['_session'][_0x3bb13c(0x28e)](),'selection':_0x38e6d7(_0x4bb18a,_0x5557c9[_0x3bb13c(0x135)])}};this[_0x3bb13c(0x11c)][_0x3bb13c(0x2e2)](_0x1bacd7,this[_0x3bb13c(0x1f7)]);},ki)),(this[_0xf76558(0x1f7)]=_0x63c44,this[_0xf76558(0x11c)]=_0x159a41,this[_0xf76558(0x292)]=_0x59b961,this[_0xf76558(0x13a)]=_0xce8d66,this['_memberService']=_0x3e2ab4,this[_0xf76558(0x1cf)]=_0x30389d,this[_0xf76558(0x2c2)]=_0x1cd983,this[_0xf76558(0x2cc)]=_0x590617);}get[_0x2fb053(0x278)](){const _0xc66cac=_0x2fb053;return this[_0xc66cac(0x267)][_0xc66cac(0x16a)]();}get[_0x2fb053(0x25d)](){const _0x2289a1=_0x2fb053;return this[_0x2289a1(0xdb)][_0x2289a1(0x16a)]();}['dispose'](){const _0x755349=_0x2fb053;super['dispose'](),this[_0x755349(0x267)][_0x755349(0x220)](new Map()),this[_0x755349(0x267)][_0x755349(0x1dd)](),this['_roomMembers$'][_0x755349(0x220)]([]),this[_0x755349(0xdb)]['complete']();}[_0x2fb053(0x1b9)](){const _0x54edbb=_0x2fb053;this[_0x54edbb(0x119)]||(this[_0x54edbb(0x119)]=!0x0,this[_0x54edbb(0x11c)]['sessionStatus$']['pipe'](_0x14df6(this[_0x54edbb(0x169)]))[_0x54edbb(0x143)](_0x206b72=>{const _0x3e98fe=_0x54edbb;_0x206b72===_0x33609d[_0x3e98fe(0x2af)]?this[_0x3e98fe(0xd1)]():this[_0x3e98fe(0xfa)]();}),this[_0x54edbb(0x11c)][_0x54edbb(0x26d)][_0x54edbb(0x23a)](_0x14df6(this['dispose$']))[_0x54edbb(0x143)](_0x1519e2=>{const _0x1dd50b=_0x54edbb,_0x5942ad=_0x1519e2[_0x1dd50b(0x215)];_0x5942ad===_0x509492[_0x1dd50b(0x2c3)]&&this[_0x1dd50b(0xc6)](_0x1519e2),_0x5942ad===_0x509492[_0x1dd50b(0x105)]&&this[_0x1dd50b(0x2b1)](_0x1519e2);}),this[_0x54edbb(0x1e1)](),this['disposeWithMe'](this[_0x54edbb(0x2c2)][_0x54edbb(0x1fe)](_0x48526e=>{const _0x580818=_0x54edbb;if(this[_0x580818(0x29a)]&&_0x48526e['id']===_0x34ff36['id']&&_0x48526e[_0x580818(0x173)][_0x580818(0xcd)]===this[_0x580818(0x1f7)]){const _0x463a59=_0x48526e[_0x580818(0x173)];this[_0x580818(0xf4)](_0x463a59[_0x580818(0x16e)],_0x463a59[_0x580818(0x102)][0x0]);}})));}[_0x2fb053(0xc6)](_0x2be519){const _0x369733=_0x2fb053;var _0x9daef3,_0x3ff13d;const {memberID:_0x716da9,selection:_0x2b091e}=_0x2be519[_0x369733(0x20c)],{sheetName:_0x4d9f1a,range:_0x4de25a}=_0xddd3dc(_0x2b091e),_0x56b64a={'name':(_0x3ff13d=(_0x9daef3=this[_0x369733(0xc2)][_0x369733(0x11b)](this[_0x369733(0x1f7)],_0x716da9))==null?void 0x0:_0x9daef3[_0x369733(0x27f)])!=null?_0x3ff13d:'Unknown\x20user','range':this[_0x369733(0x113)](_0x4d9f1a,_0x4de25a),'sheetID':_0x4d9f1a,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x716da9),'selection':_0x2b091e},_0x38dd90=this['cursorInfo'];_0x38dd90['set'](_0x716da9,_0x56b64a),this[_0x369733(0x267)][_0x369733(0x220)](_0x38dd90);}[_0x2fb053(0x2b1)](_0x21064f){const _0x50e60e=_0x2fb053,{memberID:_0x5b8333}=_0x21064f[_0x50e60e(0x20c)],_0x3e701d=this[_0x50e60e(0x278)];_0x3e701d[_0x50e60e(0x28c)](_0x5b8333),this[_0x50e60e(0x267)][_0x50e60e(0x220)](_0x3e701d);}[_0x2fb053(0x113)](_0x431817,_0x39b7c8){const _0x1b84fd=_0x2fb053;var _0x48aee5,_0x32ed4b;const _0x34ca98=(_0x32ed4b=(_0x48aee5=this[_0x1b84fd(0x1cf)]['getUniverSheetInstance'](this[_0x1b84fd(0x1f7)]))==null?void 0x0:_0x48aee5[_0x1b84fd(0x280)](_0x431817))==null?void 0x0:_0x32ed4b[_0x1b84fd(0xfc)]();return(_0x34ca98==null?void 0x0:_0x34ca98[_0x1b84fd(0x229)](_0x147d66=>_0xef80e[_0x1b84fd(0x236)](_0x147d66,_0x39b7c8)))||_0x39b7c8;}['_onRefRangeChange'](){const _0x3c4c4a=_0x2fb053,_0xb5982c=new _0x23c32c(),_0x508b3d=Hi(),_0x34c6ee=()=>{const _0x5f1b2c=_0x19f9;_0xb5982c[_0x5f1b2c(0x109)]();const _0x5d8f90=(_0x285b6f,_0x1e515d,_0x515b6c,_0x5c8270)=>{const _0x5d9c82=_0x5f1b2c;let _0x1dfc93=[];switch(_0x285b6f['id']){case _0x438608[_0x5d9c82(0x1ff)]:{_0x1dfc93=_0x10fa60(_0x285b6f,_0x5c8270);break;}case _0x438608[_0x5d9c82(0x196)]:{_0x1dfc93=_0x203b87(_0x285b6f,_0x5c8270);break;}case _0x438608[_0x5d9c82(0x111)]:{_0x1dfc93=_0x1d58bc(_0x285b6f,_0x5c8270);break;}case _0x438608[_0x5d9c82(0x207)]:{_0x1dfc93=_0x11c49f(_0x285b6f,_0x5c8270);break;}case _0x438608['InsertRangeMoveRightCommandId']:{_0x1dfc93=_0x5ec9c8(_0x285b6f,_0x5c8270);break;}case _0x438608['InsertRowCommandId']:{_0x1dfc93=_0x28dbf7(_0x285b6f,_0x5c8270);break;}case _0x438608['MoveRangeCommandId']:{_0x1dfc93=_0xd701e4(_0x285b6f,_0x5c8270);break;}case _0x438608[_0x5d9c82(0x1be)]:{_0x1dfc93=_0x47a051(_0x285b6f,_0x5c8270);break;}case _0x438608[_0x5d9c82(0x2b2)]:{_0x1dfc93=_0x3c0ce9(_0x285b6f,_0x5c8270);break;}}const _0xb5cf2c=_0x528d6a(_0x1dfc93,_0x5c8270),_0x32b00a=this[_0x5d9c82(0x278)]['get'](_0x1e515d);if(_0x32b00a&&_0xb5cf2c){const _0x198e02={..._0x32b00a,'range':_0xb5cf2c};this['cursorInfo']['set'](_0x1e515d,_0x198e02),_0x508b3d(()=>{const _0x1fee44=_0x5d9c82,_0xb618c7=this[_0x1fee44(0x2cc)][_0x1fee44(0x291)](_0xb5cf2c,_0x2077ba=>(_0xb618c7[_0x1fee44(0x109)](),_0x5d8f90(_0x2077ba,_0x1e515d,_0x515b6c,_0xb5cf2c)));_0xb5982c[_0x1fee44(0x206)](_0xb618c7);});}return{'redos':[],'undos':[]};};this[_0x5f1b2c(0x278)]['forEach']((_0x4ecea0,_0x139c6d)=>{const _0x3f6152=_0x5f1b2c,{range:_0x4b9fec,sheetID:_0x25aff5}=_0x4ecea0,_0x219e5d=this[_0x3f6152(0x2cc)][_0x3f6152(0x291)](_0x4b9fec,_0x2e8d07=>(_0x219e5d[_0x3f6152(0x109)](),_0x5d8f90(_0x2e8d07,_0x139c6d,_0x25aff5,_0x4b9fec)));_0xb5982c[_0x3f6152(0x206)](_0x219e5d);});};this['disposeWithMe'](_0x2f72d1(this[_0x3c4c4a(0x267)][_0x3c4c4a(0x143)](()=>{_0x34c6ee();})));}[_0x2fb053(0xd1)](){const _0x2ac9e9=_0x2fb053;var _0x2235eb,_0x43362d;if(this[_0x2ac9e9(0x29a)]=!0x0,((_0x2235eb=this[_0x2ac9e9(0x1cf)][_0x2ac9e9(0x29f)]())==null?void 0x0:_0x2235eb[_0x2ac9e9(0x2dd)]())!==this[_0x2ac9e9(0x1f7)])return;const _0x56fc1b=(_0x43362d=this[_0x2ac9e9(0x292)][_0x2ac9e9(0x29d)](_0x176adc)['getCurrentSelections']())==null?void 0x0:_0x43362d[0x0],_0x5efa6e=this[_0x2ac9e9(0x1cf)]['getCurrentUnitForType'](_0xfdfacf[_0x2ac9e9(0x140)])['getActiveSheet']();_0x56fc1b&&_0x5efa6e&&this[_0x2ac9e9(0xf4)](_0x5efa6e[_0x2ac9e9(0xeb)](),_0x56fc1b);}[_0x2fb053(0xfa)](){const _0x3cf318=_0x2fb053;this[_0x3cf318(0x29a)]=!0x1;}};ye=Bi([F(0x2,_0x1cf148(_0x3e1732)),F(0x3,_0x1cf148(Ge)),F(0x4,_0x1cf148(_0x4c46a7)),F(0x5,_0x265bc4),F(0x6,_0x25fda4),F(0x7,_0x1cf148(_0xb4aaca))],ye);var Yi=Object[_0x2fb053(0x2a3)],Wi=(_0x44cdb8,_0x1ca2c9,_0x2ea467,_0x57ae3c)=>{const _0xac502f=_0x2fb053;for(var _0x10d393=_0x57ae3c>0x1?void 0x0:_0x57ae3c?Yi(_0x1ca2c9,_0x2ea467):_0x1ca2c9,_0x597704=_0x44cdb8[_0xac502f(0x29e)]-0x1,_0x5d8594;_0x597704>=0x0;_0x597704--)(_0x5d8594=_0x44cdb8[_0x597704])&&(_0x10d393=_0x5d8594(_0x10d393)||_0x10d393);return _0x10d393;},pe=(_0x530022,_0x4cc7c6)=>(_0x1a59ad,_0x1a601e)=>_0x4cc7c6(_0x1a59ad,_0x1a601e,_0x530022);let Y=class extends _0x5db293{constructor(_0x39bdf2,_0x2aa27f,_0x139522){const _0x255a30=_0x2fb053;super(),_(this,_0x255a30(0x164),new Map()),_(this,_0x255a30(0x126),new _0x5db8e2()),(this['_univerInstanceService']=_0x39bdf2,this[_0x255a30(0x292)]=_0x2aa27f,this[_0x255a30(0x28b)]=_0x139522,this['_init']());}[_0x2fb053(0x109)](){const _0x2685ad=_0x2fb053;super[_0x2685ad(0x109)](),this[_0x2685ad(0x126)][_0x2685ad(0x1dd)](),this['_entities'][_0x2685ad(0x289)](_0x3e97d0=>_0x3e97d0[_0x2685ad(0x109)]());}[_0x2fb053(0x1c2)](_0x5340ed){const _0xcb2052=_0x2fb053;return this[_0xcb2052(0x164)][_0xcb2052(0x1b3)](_0x5340ed)?this[_0xcb2052(0x164)][_0xcb2052(0x29d)](_0x5340ed)[_0xcb2052(0xf8)]:this[_0xcb2052(0x126)][_0xcb2052(0x23a)](_0x535d13(_0x45ee37=>_0x45ee37[_0xcb2052(0x1f7)]===_0x5340ed),_0x3448bc(_0x8e29d=>_0x8e29d[_0xcb2052(0xf8)]));}[_0x2fb053(0x119)](){const _0x7cd61f=_0x2fb053;this['_univerInstanceService'][_0x7cd61f(0x2aa)](_0xfdfacf[_0x7cd61f(0x140)])[_0x7cd61f(0x23a)](_0x14df6(this['dispose$']))[_0x7cd61f(0x143)](async _0x4454e1=>{const _0x380114=_0x7cd61f,_0x298ec9=_0x4454e1['getUnitId'](),_0xe21d73=await this[_0x380114(0x1d2)](_0x298ec9);this['_entityInit$'][_0x380114(0x220)](_0xe21d73),this[_0x380114(0x164)]['set'](_0x298ec9,_0xe21d73);}),this[_0x7cd61f(0x1cf)][_0x7cd61f(0x2aa)](_0xfdfacf[_0x7cd61f(0x260)])[_0x7cd61f(0x23a)](_0x14df6(this['dispose$']))['pipe'](_0x535d13(_0x241ede=>!_0x241ede[_0x7cd61f(0x2dd)]()[_0x7cd61f(0x130)]('__')))[_0x7cd61f(0x143)](async _0x4d5a8e=>{const _0x4d9c7e=_0x7cd61f,_0x58c97c=_0x4d5a8e[_0x4d9c7e(0x2dd)](),_0x4002a5=await this[_0x4d9c7e(0x188)](_0x58c97c);this[_0x4d9c7e(0x126)][_0x4d9c7e(0x220)](_0x4002a5),this[_0x4d9c7e(0x164)][_0x4d9c7e(0xd8)](_0x58c97c,_0x4002a5);}),_0x3f1086(this[_0x7cd61f(0x1cf)][_0x7cd61f(0x14c)](_0xfdfacf[_0x7cd61f(0x260)]),this[_0x7cd61f(0x1cf)][_0x7cd61f(0x14c)](_0xfdfacf['UNIVER_SHEET']))[_0x7cd61f(0x23a)](_0x14df6(this[_0x7cd61f(0x169)]))['subscribe'](_0x2fc720=>{const _0x50217f=_0x7cd61f,_0xf76853=_0x2fc720[_0x50217f(0x2dd)](),_0x3eda94=this[_0x50217f(0x164)]['get'](_0xf76853);_0x3eda94&&(_0x3eda94['dispose'](),this[_0x50217f(0x164)][_0x50217f(0x28c)](_0xf76853));});}async[_0x2fb053(0x1d2)](_0xf5e0b9){const _0x3e943c=_0x2fb053,_0xfb4c3=await this[_0x3e943c(0x28b)]['requireSession'](_0xf5e0b9),_0x3baad5=this[_0x3e943c(0x292)][_0x3e943c(0x19a)](ye,_0xf5e0b9,_0xfb4c3);return _0x3baad5[_0x3e943c(0x1b9)](),_0x3baad5;}async['_startDocCollabCursor'](_0x92e5f1){const _0x133eb8=_0x2fb053,_0xf7b5bc=await this[_0x133eb8(0x28b)][_0x133eb8(0x25f)](_0x92e5f1),_0x266a88=this['_injector'][_0x133eb8(0x19a)](we,_0x92e5f1,_0xf7b5bc);return _0x266a88[_0x133eb8(0x1b9)](),_0x266a88;}};function _0x19f9(_0x2dbf60,_0x23c411){const _0x54a5ba=_0x54a5();return _0x19f9=function(_0x19f987,_0x11638f){_0x19f987=_0x19f987-0xb2;let _0x119f86=_0x54a5ba[_0x19f987];return _0x119f86;},_0x19f9(_0x2dbf60,_0x23c411);}Y=Wi([pe(0x0,_0x265bc4),pe(0x1,_0x1cf148(_0x3e1732)),pe(0x2,_0x1cf148(_0x200d73))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x547698,_0x497ca2){const _0x420c44=_0x2fb053;let {radius:_0x2186eb,width:_0x402f8e,height:_0xdc1209}=_0x497ca2;_0x2186eb=_0x2186eb!=null?_0x2186eb:0x0,_0x402f8e=_0x402f8e!=null?_0x402f8e:0x1e,_0xdc1209=_0xdc1209!=null?_0xdc1209:0x1e;let _0x25ad1a=0x0,_0x535b01=0x0,_0x1d2b05=0x0;_0x25ad1a=_0x535b01=_0x1d2b05=Math[_0x420c44(0x2d8)](_0x2186eb,_0x402f8e/0x2,_0xdc1209/0x2),_0x547698[_0x420c44(0xcf)](),_0x547698[_0x420c44(0x138)](_0x25ad1a,0x0),_0x547698[_0x420c44(0x185)](_0x402f8e-_0x535b01,0x0),_0x547698[_0x420c44(0xe0)](_0x402f8e-_0x535b01,_0x535b01,_0x535b01,Math['PI']*0x3/0x2,0x0,!0x1),_0x547698[_0x420c44(0x185)](_0x402f8e,_0xdc1209-_0x1d2b05),_0x547698[_0x420c44(0xe0)](_0x402f8e-_0x1d2b05,_0xdc1209-_0x1d2b05,_0x1d2b05,0x0,Math['PI']/0x2,!0x1),_0x547698[_0x420c44(0x185)](0x0,_0xdc1209),_0x547698[_0x420c44(0x185)](0x0,_0x25ad1a),_0x547698[_0x420c44(0xe0)](_0x25ad1a,_0x25ad1a,_0x25ad1a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x547698[_0x420c44(0x19f)](),_0x497ca2[_0x420c44(0x1ae)]&&(_0x547698[_0x420c44(0x238)](),_0x547698[_0x420c44(0x2ae)]=_0x497ca2['fill'],_0x497ca2[_0x420c44(0x1f1)]===_0x420c44(0x246)?_0x547698['fill'](_0x420c44(0x246)):_0x547698[_0x420c44(0x1ae)](),_0x547698[_0x420c44(0xee)]());}class Ie extends _0x39aea7{constructor(_0x1cf426,_0x243478){const _0x36bb0d=_0x2fb053;super(_0x1cf426,_0x243478),_(this,'color'),_(this,'text'),(this[_0x36bb0d(0x240)]=_0x243478==null?void 0x0:_0x243478[_0x36bb0d(0x240)],this[_0x36bb0d(0x26b)]=_0x243478==null?void 0x0:_0x243478['text']);}static[_0x2fb053(0x15d)](_0x39adab,_0x3ef228){const _0x4681f3=_0x2fb053,{text:_0x36c2b4,color:_0x372fc4}=_0x3ef228;_0x39adab['save'](),_0x39adab[_0x4681f3(0x1a5)]=_0x4681f3(0x2b8);const _0x5c1dda=_0x39adab['measureText'](_0x36c2b4)[_0x4681f3(0xb6)],_0x26eaa8=Math[_0x4681f3(0x2d8)](_0x5c1dda+0x2*Oe,rt);ji(_0x39adab,{'height':q,'radius':0x4,'width':_0x26eaa8,'fill':_0x372fc4}),_0x39adab['fillStyle']=_0x4681f3(0x12d);const _0x48307e=Oe,_0x876550=q-Vi,_0x2a14cc=rt-0x2*Oe;if(_0x5c1dda>_0x2a14cc){let _0x5543b0='',_0x165356=0x0;for(const _0x51b467 of _0x36c2b4){const _0x301435=_0x39adab[_0x4681f3(0x127)](_0x51b467)[_0x4681f3(0xb6)];if(_0x165356+_0x301435<=_0x2a14cc-_0x39adab[_0x4681f3(0x127)](_0x4681f3(0x1ac))['width'])_0x5543b0+=_0x51b467,_0x165356+=_0x301435;else{_0x5543b0+=_0x4681f3(0x1ac);break;}}_0x39adab[_0x4681f3(0xe5)](_0x5543b0,_0x48307e,_0x876550);}else _0x39adab[_0x4681f3(0xe5)](_0x36c2b4,_0x48307e,_0x876550);_0x39adab[_0x4681f3(0xee)]();}['_draw'](_0x4af96f){const _0x41b705=_0x2fb053;Ie[_0x41b705(0x15d)](_0x4af96f,this);}}const Te=_0x2fb053(0x11f),Xi='collab-text-range-',Gi=_0x2fb053(0x237),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x2fb053(0x104);class ot{constructor(_0x5c22fa,_0x34cc2c,_0x4d6844,_0x51cc3d){const _0x441fe8=_0x2fb053;_(this,_0x441fe8(0x2e1),[]),_(this,_0x441fe8(0x251),null),_(this,_0x441fe8(0xdd),null),_(this,_0x441fe8(0x1f5),null),_(this,_0x441fe8(0x1d1),null),_(this,_0x441fe8(0xda),null),(this[_0x441fe8(0x216)]=_0x5c22fa,this[_0x441fe8(0x28f)]=_0x34cc2c,this[_0x441fe8(0x27e)]=_0x4d6844,this['_document']=_0x51cc3d,this[_0x441fe8(0x1bb)]());}set[_0x2fb053(0x1a1)](_0x44a84b){const _0x3011fb=_0x2fb053;_0x44a84b?(this[_0x3011fb(0x1f5)]&&this[_0x3011fb(0x1f5)][_0x3011fb(0x2ad)](),this['_textBubble']&&this[_0x3011fb(0xdd)][_0x3011fb(0x22e)]()):(this[_0x3011fb(0x1f5)]&&this[_0x3011fb(0x1f5)][_0x3011fb(0x22e)](),this['_textBubble']&&this[_0x3011fb(0xdd)]['hide']());}[_0x2fb053(0x109)](){const _0x79cc59=_0x2fb053;for(const _0x5a6518 of this[_0x79cc59(0x2e1)])_0x5a6518[_0x79cc59(0x109)]();this[_0x79cc59(0xdd)]&&this[_0x79cc59(0xdd)]['dispose'](),this[_0x79cc59(0x1f5)]&&this[_0x79cc59(0x1f5)][_0x79cc59(0x109)](),this[_0x79cc59(0x251)]&&this[_0x79cc59(0x251)][_0x79cc59(0x109)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2fb053(0x1bb)](){const _0x50f647=_0x2fb053;var _0x1a1525;const {_docSkeleton:_0x319943,_document:_0xb2806e}=this,{color:_0x422998,name:_0x62ea31,ranges:_0x37b005}=this[_0x50f647(0x216)],_0x1ec425=_0xb2806e[_0x50f647(0x11a)](),{docsLeft:_0x11910b,docsTop:_0x2c1e75}=_0x1ec425,_0x1a3bb7=new _0x286e65(_0x1ec425,_0x319943);for(const {startOffset:_0x403027,endOffset:_0x2bc00d,rangeType:_0x3b8369,segmentId:_0xfc4920,segmentPage:_0x322df6,collapsed:_0x78a2d,isActive:_0x13ebad}of _0x37b005){const _0x147889=_0x319943['findNodePositionByCharIndex'](_0x403027,!0x0,_0xfc4920,_0x322df6);let _0x4713de=_0x319943[_0x50f647(0x137)](_0x2bc00d,!0x0,_0xfc4920,_0x322df6);if(_0x4713de==null&&(_0x4713de=_0x319943[_0x50f647(0x137)](_0x2bc00d-0x1,!0x1,_0xfc4920,_0x322df6)),_0x13ebad){const {contentBoxPointGroup:_0x4a4eee}=_0x1a3bb7[_0x50f647(0xe3)](_0x4713de,_0x4713de);if(_0x4a4eee[_0x50f647(0x29e)]===0x0)continue;this['_drawAnchor'](_0x422998,_0x4a4eee,_0x11910b,_0x2c1e75,_0x62ea31),this[_0x50f647(0xda)]=this[_0x50f647(0x1f2)]();}if(_0x147889&&_0x4713de){if(_0x3b8369===_0x3d1932['RECT']){const _0x330cdf=new _0x15809d(_0x1ec425,_0x319943),{pointGroup:_0x4bc9b3}=(_0x1a1525=_0x330cdf[_0x50f647(0xe3)](_0x147889,_0x4713de))!=null?_0x1a1525:{};if(_0x4bc9b3==null||_0x4bc9b3[_0x50f647(0x29e)]===0x0)continue;this[_0x50f647(0xba)](_0x422998,_0x4bc9b3,_0x11910b,_0x2c1e75);}else{if(!_0x78a2d){const {borderBoxPointGroup:_0x2c4ffa}=_0x1a3bb7[_0x50f647(0xe3)](_0x147889,_0x4713de);if(_0x2c4ffa['length']===0x0)continue;this[_0x50f647(0x152)](_0x422998,_0x2c4ffa,_0x11910b,_0x2c1e75);}}}}}[_0x2fb053(0xc0)](_0x588e30,_0x2dd1b5,_0x2032cf,_0x2929d5,_0x2a9a5c){const _0x3340e4=_0x2fb053,_0x46d872=this[_0x3340e4(0x20d)](_0x2dd1b5),{left:_0x20792e,top:_0x49627c,height:_0x53618e}=_0x46d872,_0x3ebf43=this[_0x3340e4(0x275)](),_0x51e39b=zi/_0x3ebf43,_0x3eb2a5=new _0x44f85b(Te+_0x39a9ea(J),{'left':_0x20792e+_0x2032cf-_0x51e39b,'top':_0x49627c+_0x2929d5,'height':_0x53618e,'width':Ki,'fill':_0x588e30||_0x24e604(_0x1e2ef4[_0x3340e4(0x117)],0x0),'strokeWidth':_0x51e39b,'stroke':Ji,'evented':!0x0});this[_0x3340e4(0x251)]=_0x3eb2a5,this[_0x3340e4(0x28f)][_0x3340e4(0x198)](_0x3eb2a5,_0x517776);const _0x5184c9=new _0x44f85b(Te+_0x39a9ea(J),{'left':_0x20792e+_0x2032cf-_0x51e39b,'top':_0x49627c+_0x2929d5-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x588e30||_0x24e604(_0x1e2ef4[_0x3340e4(0x117)],0x0),'strokeWidth':0x0,'stroke':_0x588e30||_0x24e604(_0x1e2ef4[_0x3340e4(0x117)],0x0),'evented':!0x1});this[_0x3340e4(0x1f5)]=_0x5184c9,this[_0x3340e4(0x28f)]['addObject'](_0x5184c9,_0x517776);const _0x35bfdc=new Ie(Te+_0x39a9ea(J),{'left':_0x20792e+_0x2032cf-_0x51e39b,'top':_0x49627c+_0x2929d5-q,'text':_0x2a9a5c,'color':_0x588e30});this[_0x3340e4(0xdd)]=_0x35bfdc,this['_scene'][_0x3340e4(0x198)](_0x35bfdc,_0x517776),this[_0x3340e4(0x1a1)]=!0x1;}[_0x2fb053(0x1f2)](){const _0x4079da=_0x2fb053,_0xcc9276=this[_0x4079da(0x251)][_0x4079da(0x11e)][_0x4079da(0x277)](()=>{const _0x25a52c=_0x4079da;this[_0x25a52c(0x1a1)]=!0x0;}),_0x12afe2=this[_0x4079da(0x251)][_0x4079da(0x2e0)]['subscribeEvent'](()=>{const _0x31a88b=_0x4079da;this[_0x31a88b(0x1d1)]&&clearTimeout(this[_0x31a88b(0x1d1)]),this[_0x31a88b(0x1d1)]=setTimeout(()=>{const _0x3a4334=_0x31a88b;this[_0x3a4334(0x1a1)]=!0x1;},0x7d0);});return()=>{const _0x3cd7d3=_0x4079da;_0xcc9276[_0x3cd7d3(0x29b)](),_0x12afe2['unsubscribe']();};}[_0x2fb053(0x152)](_0x56ce76,_0x52c9ee,_0x18f6a0,_0x91d164){const _0x4feca2=_0x2fb053,_0x324565=new _0x529bad(_0x56ce76)[_0x4feca2(0x176)](0.2)[_0x4feca2(0xce)](),_0x2e3fa8=new _0x183e57(Xi+_0x39a9ea(J),{'pointsGroup':_0x52c9ee,'fill':_0x324565||_0x24e604(_0x1e2ef4[_0x4feca2(0x117)],0.2),'left':_0x18f6a0,'top':_0x91d164,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4feca2(0x2e1)][_0x4feca2(0x10d)](_0x2e3fa8),this[_0x4feca2(0x28f)][_0x4feca2(0x198)](_0x2e3fa8,_0x517776);}[_0x2fb053(0xba)](_0x2cde24,_0x2046f2,_0x8adb3c,_0x2b9c01){const _0x47f35b=_0x2fb053,_0x1f22f7=new _0x529bad(_0x2cde24)[_0x47f35b(0x176)](0.2)[_0x47f35b(0xce)](),_0x3d6536=new _0x183e57(Gi+_0x39a9ea(J),{'pointsGroup':_0x2046f2,'fill':_0x1f22f7||_0x24e604(_0x1e2ef4[_0x47f35b(0x117)],0.2),'left':_0x8adb3c,'top':_0x2b9c01,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x47f35b(0x10d)](_0x3d6536),this[_0x47f35b(0x28f)][_0x47f35b(0x198)](_0x3d6536,_0x517776);}[_0x2fb053(0x20d)](_0x204d76){const _0x44e5de=_0x204d76[0x0],_0x3b8e0d=_0x44e5de[0x0],_0x3858c1=_0x44e5de[0x2],{x:_0x3fdba6,y:_0x30fd44}=_0x3b8e0d,{x:_0x529955,y:_0x247acc}=_0x3858c1;return{'left':_0x3fdba6,'top':_0x30fd44,'width':_0x529955-_0x3fdba6,'height':_0x247acc-_0x30fd44};}['_getScale'](){const _0x5d4cb8=_0x2fb053,{scaleX:_0x4d8f86,scaleY:_0x25b0ab}=this[_0x5d4cb8(0x28f)][_0x5d4cb8(0x107)]();return Math[_0x5d4cb8(0x241)](_0x4d8f86,_0x25b0ab);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x1e309c,_0xdbfb82,_0x1a8173,_0xca656d)=>{const _0x246df6=_0x2fb053;for(var _0x124475=_0xca656d>0x1?void 0x0:_0xca656d?Zi(_0xdbfb82,_0x1a8173):_0xdbfb82,_0x51c9fc=_0x1e309c[_0x246df6(0x29e)]-0x1,_0x45de84;_0x51c9fc>=0x0;_0x51c9fc--)(_0x45de84=_0x1e309c[_0x51c9fc])&&(_0x124475=_0x45de84(_0x124475)||_0x124475);return _0x124475;},ne=(_0x7fe065,_0x3931ed)=>(_0x4b0c0b,_0x5945c2)=>_0x3931ed(_0x4b0c0b,_0x5945c2,_0x7fe065);let $e=class extends _0x5db293{constructor(_0x212220,_0x420686,_0x7f33a,_0x5e9db1,_0xf46753){const _0x473624=_0x2fb053;super(),_(this,_0x473624(0x12b),[]),_(this,_0x473624(0x178),[]),(this[_0x473624(0xd3)]=_0x212220,this['_docSkeletonManagerService']=_0x420686,this[_0x473624(0x273)]=_0x7f33a,this[_0x473624(0x2c2)]=_0x5e9db1,this['_themeService']=_0xf46753,this['_init']());}['_init'](){const _0x3797ee=_0x2fb053,_0x985e91=this[_0x3797ee(0xd3)][_0x3797ee(0xcd)],_0x1144f7=this['_docSkeletonManagerService'];this[_0x3797ee(0x23d)](_0x1f0f3e([this['_collabCursorController'][_0x3797ee(0x1c2)](_0x985e91),this[_0x3797ee(0x2ab)]['currentTheme$']])[_0x3797ee(0x23a)](_0x3bc5b1(([_0x3f4400,_0x364875])=>({'skeleton':_0x1144f7[_0x3797ee(0x263)](),'cursors':[..._0x3f4400[_0x3797ee(0xf7)]()]['flatMap'](_0x28207c=>({..._0x28207c,'color':this['_themeService'][_0x3797ee(0xe6)](_0x28207c[_0x3797ee(0x240)])}))})))[_0x3797ee(0x143)](_0x103987=>{const _0x4b28a8=_0x3797ee;if(this[_0x4b28a8(0x1c7)](),_0x103987){const {skeleton:_0xc773a,cursors:_0x59ac18}=_0x103987;this[_0x4b28a8(0x265)](_0xc773a,_0x59ac18);}})),this[_0x3797ee(0x213)](),this[_0x3797ee(0x2d9)]();}[_0x2fb053(0x265)](_0x38cd38,_0x4f54ee){const _0x2b6240=_0x2fb053,{scene:_0x4a9bcd,mainComponent:_0x5799a9}=this[_0x2b6240(0xd3)],_0x2fb4da=_0x4f54ee[_0x2b6240(0x132)](_0x1c57e4=>new ot(_0x1c57e4,_0x4a9bcd,_0x38cd38,_0x5799a9));this[_0x2b6240(0x12b)]=_0x2fb4da,this[_0x2b6240(0x178)]=_0x4f54ee;}[_0x2fb053(0x13e)](){const _0x380e64=_0x2fb053;this['_removeCollabCursors']();const {scene:_0x5c32aa,mainComponent:_0x46537e}=this[_0x380e64(0xd3)],_0x1eb778=this[_0x380e64(0x191)]['getSkeleton'](),_0x22b45f=this[_0x380e64(0x178)]['map'](_0x1a7e4a=>new ot(_0x1a7e4a,_0x5c32aa,_0x1eb778,_0x46537e));this[_0x380e64(0x12b)]=_0x22b45f;}['_removeCollabCursors'](){const _0x5d94fe=_0x2fb053;this[_0x5d94fe(0x12b)][_0x5d94fe(0x289)](_0x4aad0a=>_0x4aad0a[_0x5d94fe(0x109)]()),this[_0x5d94fe(0x12b)]=[];}['_initCommandExecutedListener'](){const _0x557023=_0x2fb053,_0x2cd9ed=[_0x4e1a6b['id']];this[_0x557023(0x23d)](this['_commandService'][_0x557023(0x1fe)](_0x29edcc=>{const _0x203f44=_0x557023;_0x2cd9ed['includes'](_0x29edcc['id'])&&_0x29edcc[_0x203f44(0x173)][_0x203f44(0xcd)]===this[_0x203f44(0xd3)][_0x203f44(0xcd)]&&this['_refreshCollabCursors']();}));}[_0x2fb053(0x213)](){const _0x348d3c=_0x2fb053;this[_0x348d3c(0x23d)](_0x538ae9(this[_0x348d3c(0xd3)][_0x348d3c(0xbc)][_0x348d3c(0x23c)])[_0x348d3c(0x23a)](_0x9af517(_0x2d7bcf=>_0x2d7bcf[_0x348d3c(0x1c9)]===_0x540627[_0x348d3c(0x2e9)]),_0x4c52ce(0x10))[_0x348d3c(0x143)](()=>{const _0x1e0456=_0x348d3c;this[_0x1e0456(0x13e)]();}));}};$e=Qi([ne(0x1,_0x1cf148(_0x99f836)),ne(0x2,_0x1cf148(Y)),ne(0x3,_0x25fda4),ne(0x4,_0x1cf148(_0x308eb3))],$e);const qi=0x1,en=1.5;class tn extends _0x39aea7{constructor(_0x5ccdc9,_0x56d26b){const _0x580dd5=_0x2fb053;super(_0x5ccdc9,_0x56d26b),_(this,_0x580dd5(0x1c1)),_(this,_0x580dd5(0x2b6),!0x1),_(this,_0x580dd5(0x2d6)),_(this,_0x580dd5(0x146),''),_(this,'_labelPosition','top'),_(this,_0x580dd5(0x155)),(_0x56d26b&&this[_0x580dd5(0xd9)](_0x56d26b),this[_0x580dd5(0x11e)][_0x580dd5(0x277)](()=>this[_0x580dd5(0xd9)]({'hovered':!0x0})),this[_0x580dd5(0x2e0)][_0x580dd5(0x277)](()=>this[_0x580dd5(0xd9)]({'hovered':!0x1})));}[_0x2fb053(0xd9)](_0x1e82df){const _0x4d3ba1=_0x2fb053;var _0x34a70b,_0xe264e5,_0x5a1f0c,_0x4f1d22,_0x58fc7e,_0x5105fc;this[_0x4d3ba1(0x1c1)]=(_0x34a70b=_0x1e82df[_0x4d3ba1(0x240)])!=null?_0x34a70b:this[_0x4d3ba1(0x1c1)],this[_0x4d3ba1(0x2b6)]=(_0xe264e5=_0x1e82df[_0x4d3ba1(0xf6)])!=null?_0xe264e5:this[_0x4d3ba1(0x2b6)],this['_range']=(_0x5a1f0c=_0x1e82df['range'])!=null?_0x5a1f0c:this[_0x4d3ba1(0x2d6)],this['_name']=(_0x4f1d22=_0x1e82df[_0x4d3ba1(0x27f)])!=null?_0x4f1d22:this[_0x4d3ba1(0x146)],this['_labelPosition']=(_0x58fc7e=_0x1e82df[_0x4d3ba1(0x1ab)])!=null?_0x58fc7e:this[_0x4d3ba1(0x2a0)],this[_0x4d3ba1(0x155)]=(_0x5105fc=_0x1e82df[_0x4d3ba1(0x219)])!=null?_0x5105fc:this['_backgroundColor'],this[_0x4d3ba1(0x2bf)]({'width':_0x1e82df[_0x4d3ba1(0xb6)],'height':_0x1e82df[_0x4d3ba1(0xc7)]});}[_0x2fb053(0x15a)](_0x196378){const _0x3943eb=_0x2fb053,{row:_0x2fa895,column:_0xd728c4}=_0x196378;if(_0x2fa895>=this['_range'][_0x3943eb(0xe9)]&&_0x2fa895<=this[_0x3943eb(0x2d6)][_0x3943eb(0x22a)]&&_0xd728c4>=this['_range']['startColumn']&&_0xd728c4<=this[_0x3943eb(0x2d6)][_0x3943eb(0x297)]){this[_0x3943eb(0xd9)]({'hovered':!0x0});return;}this[_0x3943eb(0xd9)]({'hovered':!0x1});}[_0x2fb053(0x192)](_0x3b8408){return!0x1;}[_0x2fb053(0x1de)](_0x175b6d){const _0x5dc0ca=_0x2fb053;_0x44f85b[_0x5dc0ca(0x15d)](_0x175b6d,{'width':this[_0x5dc0ca(0xb6)],'height':this[_0x5dc0ca(0xc7)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5dc0ca(0x155)]}),this[_0x5dc0ca(0x2b6)]&&(_0x175b6d['save'](),_0x175b6d['transform'](0x1,0x0,0x0,0x1,this[_0x5dc0ca(0xb6)],this[_0x5dc0ca(0x2a0)]===_0x5dc0ca(0x259)?0x0:-q),Ie[_0x5dc0ca(0x15d)](_0x175b6d,{'text':this[_0x5dc0ca(0x146)],'color':this[_0x5dc0ca(0x1c1)]}),_0x175b6d[_0x5dc0ca(0xee)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x1e9569,_0xf81436,_0x850d76,_0x2a838c)=>{const _0x526ccc=_0x2fb053;for(var _0x2b561f=_0x2a838c>0x1?void 0x0:_0x2a838c?sn(_0xf81436,_0x850d76):_0xf81436,_0x171a4f=_0x1e9569[_0x526ccc(0x29e)]-0x1,_0x5d79f7;_0x171a4f>=0x0;_0x171a4f--)(_0x5d79f7=_0x1e9569[_0x171a4f])&&(_0x2b561f=_0x5d79f7(_0x2b561f)||_0x2b561f);return _0x2b561f;},Re=(_0x4b9193,_0x3852a3)=>(_0x41b551,_0x5bf93e)=>_0x3852a3(_0x41b551,_0x5bf93e,_0x4b9193);const rn=0x1389;let xe=class extends _0x5db293{constructor(_0x18437b,_0x516107,_0x48271e,_0x2d99f9){const _0x958c6b=_0x2fb053;super(),_(this,_0x958c6b(0x178),new Set()),_(this,_0x958c6b(0x162),null),(this['_context']=_0x18437b,this[_0x958c6b(0xb2)]=_0x516107,this[_0x958c6b(0x273)]=_0x48271e,this[_0x958c6b(0x2ab)]=_0x2d99f9,this[_0x958c6b(0x119)]());}['_init'](){const _0x5ca0df=_0x2fb053;this[_0x5ca0df(0xb2)]['currentSkeleton$'][_0x5ca0df(0x23a)](_0x22cf69(this[_0x5ca0df(0x169)]),_0x5c9224(_0x54ff3a=>{const _0x1145dc=_0x5ca0df;if(_0x54ff3a){const _0x163c16=_0x54ff3a['sheetId'];return _0x1f0f3e(this['_collabCursorController'][_0x1145dc(0x1c2)](this[_0x1145dc(0xd3)]['unitId']),this[_0x1145dc(0x2ab)][_0x1145dc(0x1cd)])[_0x1145dc(0x23a)](_0x3bc5b1(([_0x779504,_0x5bb24e])=>{const _0x2086a0=_0x1145dc,_0x1a92ae=new Map();return _0x779504[_0x2086a0(0x289)]((_0x18fdf5,_0x10cce1)=>{const _0xb3f384=_0x2086a0;if(_0x18fdf5[_0xb3f384(0x2d1)]===_0x163c16){const _0x598aff={..._0x18fdf5};_0x598aff[_0xb3f384(0x240)]=this[_0xb3f384(0x2ab)][_0xb3f384(0xe6)](_0x18fdf5[_0xb3f384(0x240)]),_0x1a92ae['set'](_0x10cce1,_0x598aff);}}),{'skeleton':_0x54ff3a,'cursors':_0x1a92ae};}));}return _0x6c0e2({'skeleton':null,'cursors':new Map()});}))[_0x5ca0df(0x143)](({skeleton:_0x248b78,cursors:_0x5a81d3})=>{const _0x559de9=_0x5ca0df;this[_0x559de9(0x1c7)](),_0x248b78&&this[_0x559de9(0x265)](_0x248b78,_0x5a81d3);}),this[_0x5ca0df(0xb2)][_0x5ca0df(0x226)][_0x5ca0df(0x143)](_0x58c124=>{const _0xd10846=_0x5ca0df;if(_0x58c124==null)return;const {skeleton:_0x5c6835}=_0x58c124,{scene:_0x577c9f}=this[_0xd10846(0xd3)];_0x577c9f[_0xd10846(0xc8)][_0xd10846(0x277)](_0x956fa2(_0x486e9b=>{const _0x2bf244=_0xd10846;var _0x5b2e57,_0x184f7a;const {offsetX:_0x1638ea,offsetY:_0x545558}=_0x486e9b,{x:_0x4a1737,y:_0x301e24}=_0x577c9f[_0x2bf244(0x254)](_0x4702a7[_0x2bf244(0x2c8)]([_0x1638ea,_0x545558])),{scaleX:_0x113bf4,scaleY:_0x735a7b}=_0x577c9f[_0x2bf244(0x107)](),_0x59c3d8=_0x577c9f[_0x2bf244(0x1d7)](_0x12a47b[_0x2bf244(0x2ec)]),_0x5e8197=_0x577c9f[_0x2bf244(0x129)](_0x4702a7['FromArray']([_0x4a1737,_0x301e24]),_0x59c3d8),_0x3dfbae=_0x5c6835[_0x2bf244(0x22c)](_0x1638ea,_0x545558,_0x113bf4,_0x735a7b,_0x5e8197);((_0x5b2e57=this['_lastPointer'])==null?void 0x0:_0x5b2e57[_0x2bf244(0x1e8)])===_0x3dfbae['column']&&((_0x184f7a=this[_0x2bf244(0x162)])==null?void 0x0:_0x184f7a[_0x2bf244(0x106)])===_0x3dfbae[_0x2bf244(0x106)]||this[_0x2bf244(0x178)][_0x2bf244(0x289)](_0x15b1f2=>{const _0x32c999=_0x2bf244;_0x15b1f2[_0x32c999(0x15a)](_0x3dfbae);});},0x64));});}[_0x2fb053(0x265)](_0x235994,_0x40b1f3){const _0x498bd8=_0x2fb053;var _0x4ed3e3;const _0x287828=(_0x4ed3e3=this[_0x498bd8(0xb2)][_0x498bd8(0x286)]())==null?void 0x0:_0x4ed3e3['skeleton'];if(!_0x287828)return;const _0x388e76=this['_getSheetObject']();if(!_0x388e76)return;this[_0x498bd8(0x178)][_0x498bd8(0x289)](_0x4a86b5=>{const _0x7e0925=_0x498bd8;_0x4a86b5[_0x7e0925(0xd7)]();});const {scene:_0x38075e}=_0x388e76,_0x2ea82c=on(Array['from'](_0x40b1f3[_0x498bd8(0xf7)]()))['map'](_0x42192b=>{const _0x2c7b14=_0x498bd8,{color:_0xfcf442,range:_0x370537,name:_0x10ccac,selection:_0x4cbff7,sheetID:_0x29cdd4}=_0x42192b,{startColumn:_0x516b1c,startRow:_0x27523b,endColumn:_0x1dee0e,endRow:_0x541599}=_0x370537,_0x14bf30=_0x1d08f4(_0x27523b,_0x516b1c,_0x38075e,_0x287828),_0x90e1bb=_0x1d08f4(_0x541599,_0x1dee0e,_0x38075e,_0x287828),{columnHeaderHeightAndMarginTop:_0x3d004a}=_0x287828,{startX:_0x2c0c92,startY:_0x47590b}=_0x14bf30,{endX:_0x34bb25,endY:_0x229dc0}=_0x90e1bb,_0x525b41=_0x34bb25-_0x2c0c92,_0x239542=_0x229dc0-_0x47590b,_0x144d55={'labelPosition':_0x47590b-_0x3d004a>=q?_0x2c7b14(0x24d):'bottom','sheetID':_0x29cdd4,'range':_0x370537,'color':_0xfcf442,'name':_0x10ccac,'selection':_0x4cbff7,'left':_0x2c0c92,'top':_0x47590b,'width':_0x525b41,'height':_0x239542,'evented':!0x1,'zIndex':rn};return new tn(_0x10ccac,_0x144d55);});_0x38075e[_0x498bd8(0x118)](_0x2ea82c,qi),this[_0x498bd8(0x178)]=new Set(_0x2ea82c);}[_0x2fb053(0x1c7)](){const _0x4c406a=_0x2fb053;var _0x2abac6;(_0x2abac6=this[_0x4c406a(0x178)])==null||_0x2abac6[_0x4c406a(0x289)](_0x4f5ce2=>_0x4f5ce2[_0x4c406a(0x109)]());}['_getSheetObject'](){const _0x3132dd=_0x2fb053;return _0x385e6c(this[_0x3132dd(0xd3)][_0x3132dd(0x199)],this[_0x3132dd(0xd3)]);}};xe=nn([Re(0x1,_0x1cf148(_0x51655d)),Re(0x2,_0x1cf148(Y)),Re(0x3,_0x1cf148(_0x308eb3))],xe);function on(_0x5947fc){const _0x21a2d9=_0x2fb053,_0x23fede=new Map();return _0x5947fc[_0x21a2d9(0x289)](_0x457fbe=>{const _0x2cb62b=_0x21a2d9;if(_0x23fede[_0x2cb62b(0x1b3)](_0x457fbe[_0x2cb62b(0x14f)])){const _0xef87a5=_0x23fede[_0x2cb62b(0x29d)](_0x457fbe[_0x2cb62b(0x14f)]);_0xef87a5[_0x2cb62b(0x27f)]+=',\x20'+_0x457fbe[_0x2cb62b(0x27f)];}else _0x23fede[_0x2cb62b(0xd8)](_0x457fbe['selection'],_0x457fbe);}),Array[_0x21a2d9(0x15b)](_0x23fede['values']());}var an=Object[_0x2fb053(0x2a3)],cn=(_0x479a44,_0x59b689,_0xe79cee,_0x160765)=>{const _0x20d9fd=_0x2fb053;for(var _0x5221c5=_0x160765>0x1?void 0x0:_0x160765?an(_0x59b689,_0xe79cee):_0x59b689,_0x22e6f9=_0x479a44[_0x20d9fd(0x29e)]-0x1,_0x49cd9d;_0x22e6f9>=0x0;_0x22e6f9--)(_0x49cd9d=_0x479a44[_0x22e6f9])&&(_0x5221c5=_0x49cd9d(_0x5221c5)||_0x5221c5);return _0x5221c5;},k=(_0x2d4377,_0xdbb7d5)=>(_0x28c555,_0x44ec4f)=>_0xdbb7d5(_0x28c555,_0x44ec4f,_0x2d4377);let le=class extends _0x21676a{constructor(_0x2281b7,_0x5d6412,_0x509474,_0x1b79ba,_0x4a6390,_0x411403){const _0x403048=_0x2fb053;super(),this[_0x403048(0x193)]=_0x2281b7,this[_0x403048(0x25e)]=_0x5d6412,this[_0x403048(0xe7)]=_0x509474,this[_0x403048(0x279)]=_0x1b79ba,this[_0x403048(0xb9)]=_0x4a6390,this['_localeService']=_0x411403,this['_setupBeforeClosingHandler'](),this[_0x403048(0x2d3)]();}[_0x2fb053(0x24f)](){const _0x5c398e=_0x2fb053;this[_0x5c398e(0x23d)](this[_0x5c398e(0x193)][_0x5c398e(0x170)](()=>{const _0xa67ce9=_0x5c398e;if(this[_0xa67ce9(0x25e)]['saveTaskMap']['size'])return this[_0xa67ce9(0x122)]['t'](_0xa67ce9(0xca));}));}[_0x2fb053(0x2d3)](){const _0x23cb5c=_0x2fb053;this['disposeWithMe'](this['_collaborationUIEventService'][_0x23cb5c(0x26d)]['subscribe'](_0x11e895=>{const _0x55140f=_0x23cb5c;_0x11e895['id']===_0x369f06['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':_0x29c3d1['Warning'],'content':this[_0x55140f(0x122)]['t'](_0x55140f(0x1a6))}),_0x11e895['id']===_0x369f06['CLOSE_ROOM']&&this[_0x55140f(0x279)][_0x55140f(0x22e)]({'type':_0x29c3d1[_0x55140f(0x2dc)],'content':this[_0x55140f(0x122)]['t'](_0x55140f(0xf5))}),_0x11e895['id']===_0x369f06['PERMISSION_DENIED']&&this[_0x55140f(0xb9)][_0x55140f(0x22e)]({'title':this['_localeService']['t'](_0x55140f(0x1ec)),'content':this[_0x55140f(0x122)]['t'](_0x55140f(0x228)),'type':'error','duration':0x0}),_0x11e895['id']===_0x369f06[_0x55140f(0x1e5)]&&this['_messageService'][_0x55140f(0x22e)]({'type':_0x29c3d1['Error'],'content':this[_0x55140f(0x122)]['t'](_0x55140f(0xf5))+'('+_0x11e895['data']+')'}),_0x11e895['id']===_0x369f06['JOIN_ROOM_FAILED']&&this[_0x55140f(0x279)][_0x55140f(0x22e)]({'type':_0x29c3d1[_0x55140f(0x2dc)],'content':this[_0x55140f(0x122)]['t'](_0x11e895[_0x55140f(0x20c)]||'')}),_0x11e895['id']===_0x369f06[_0x55140f(0x197)]&&this['_messageService'][_0x55140f(0x22e)]({'type':_0x29c3d1[_0x55140f(0x2dc)],'content':this['_localeService']['t'](_0x55140f(0x2e6))}),_0x11e895['id']===_0x369f06[_0x55140f(0x248)]&&this[_0x55140f(0x279)][_0x55140f(0x22e)]({'type':_0x29c3d1[_0x55140f(0x208)],'content':this[_0x55140f(0x122)]['t'](_0x55140f(0x18e))}),_0x11e895['id']===_0x369f06['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x29c3d1[_0x55140f(0x208)],'content':this[_0x55140f(0x122)]['t']('session.collaboration-timeout')});}));}};le=cn([k(0x0,_0x53303d),k(0x1,_0x3b7e91),k(0x2,_0x1cf148(_0x2cd671)),k(0x3,_0x12f250),k(0x4,_0x371a55),k(0x5,_0x1cf148(_0x42bd72))],le);const ln=_0x2fb053(0x158),at={};var _n=Object[_0x2fb053(0x2a3)],hn=(_0x1033e0,_0x2cbafe,_0x330ed7,_0x2a5132)=>{for(var _0x5d05d0=_0x2a5132>0x1?void 0x0:_0x2a5132?_n(_0x2cbafe,_0x330ed7):_0x2cbafe,_0x265588=_0x1033e0['length']-0x1,_0x57ee55;_0x265588>=0x0;_0x265588--)(_0x57ee55=_0x1033e0[_0x265588])&&(_0x5d05d0=_0x57ee55(_0x5d05d0)||_0x5d05d0);return _0x5d05d0;},ct=(_0x4f4bea,_0x47d277)=>(_0x39ac26,_0x26a843)=>_0x47d277(_0x39ac26,_0x26a843,_0x4f4bea);let _e=class{constructor(_0x18c4e7,_0x51a3b1){const _0x2907a8=_0x2fb053;this[_0x2907a8(0x12f)]=_0x18c4e7,this[_0x2907a8(0x187)]=_0x51a3b1;}['transformIMECache'](_0x135039){const _0xeec90d=_0x2fb053;this[_0xeec90d(0x124)](_0x135039),this[_0xeec90d(0x261)](_0x135039);}[_0x2fb053(0x227)](_0x403ef0){const _0x50c588=_0x2fb053,{unitID:_0x30c524}=_0x403ef0,_0x45e294=this[_0x50c588(0x187)]['getRenderById'](_0x30c524)[_0x50c588(0x1ad)](_0x5a3331),{redoCache:_0x1a8c80}=_0x45e294[_0x50c588(0x2e3)]();if(_0x1a8c80['length']===0x0)return _0x403ef0;let _0x4bbcff=_0x363c42[_0x50c588(0x223)](_0x403ef0[_0x50c588(0x189)][0x0]);for(let _0x161775=0x0;_0x161775<_0x1a8c80['length'];_0x161775++){const _0x52acec={'id':'doc.mutation.rich-text-editing','params':{..._0x1a8c80[_0x161775]}},_0x58f2a9=this[_0x50c588(0x12f)][_0x50c588(0xec)](_0x4bbcff,_0x52acec,!0x1);if(_0x166415(_0x58f2a9))throw _0x58f2a9['error'];_0x4bbcff=_0x58f2a9['m1Prime'];}return{..._0x363c42['deepClone'](_0x403ef0),'mutations':[_0x4bbcff]};}[_0x2fb053(0x124)](_0x380cdf){const _0x41d59f=_0x2fb053,{unitID:_0x194d7e}=_0x380cdf,_0x42e9e3=this[_0x41d59f(0x187)]['getRenderById'](_0x194d7e)[_0x41d59f(0x1ad)](_0x5a3331),{undoCache:_0x1b5d91,redoCache:_0x100e6e}=_0x42e9e3['getUndoRedoMutationParamsCache']();if(_0x1b5d91['length']===0x0||_0x100e6e[_0x41d59f(0x29e)]===0x0)return;const _0x5077f8=[],_0x3319a3=[];let _0x201598=_0x363c42['deepClone'](_0x380cdf[_0x41d59f(0x189)][0x0]),_0x5ca20f=_0x363c42[_0x41d59f(0x223)](_0x380cdf[_0x41d59f(0x189)][0x0]);for(let _0x14eeb7=_0x1b5d91['length']-0x1;_0x14eeb7>=0x0;_0x14eeb7--){const _0x35358a={'id':_0x41d59f(0x218),'params':{..._0x1b5d91[_0x14eeb7]}},_0x2a864c={'id':_0x41d59f(0x218),'params':{..._0x100e6e[_0x14eeb7]}},_0x234c7a=this['_transformService'][_0x41d59f(0xec)](_0x201598,_0x35358a,!0x1),_0x1ac568=this[_0x41d59f(0x12f)]['transformMutation'](_0x5ca20f,_0x2a864c,!0x1);if(_0x166415(_0x234c7a))throw _0x234c7a[_0x41d59f(0x1a0)];if(_0x166415(_0x1ac568))throw _0x1ac568[_0x41d59f(0x1a0)];_0x5077f8[_0x41d59f(0xff)](_0x234c7a[_0x41d59f(0x24e)][_0x41d59f(0x173)]),_0x3319a3[_0x41d59f(0xff)](_0x1ac568[_0x41d59f(0x24e)][_0x41d59f(0x173)]),_0x201598=_0x234c7a['m1Prime'],_0x5ca20f=_0x1ac568[_0x41d59f(0x2be)];}_0x42e9e3['setUndoRedoMutationParamsCache']({'undoCache':_0x5077f8,'redoCache':_0x3319a3});}['_transformPreviousActiveRange'](_0x588071){const _0x14a9f0=_0x2fb053,{unitID:_0x1026fc}=_0x588071,_0x4d9a1f=this[_0x14a9f0(0x187)][_0x14a9f0(0x144)](_0x1026fc)['with'](_0x5a3331),_0x7cea9e=_0x4d9a1f[_0x14a9f0(0x27d)]();if(_0x7cea9e==null)return;const _0x363090=[{'id':_0x14a9f0(0x218),'params':{'unitId':_0x588071[_0x14a9f0(0x1f7)],'actions':null,'textRanges':[_0x7cea9e]}}],_0xd1e524=this[_0x14a9f0(0x12f)][_0x14a9f0(0x15c)](_0x588071,_0x363090);if(!_0x2ac4ba(_0xd1e524))throw _0xd1e524[_0x14a9f0(0x1a0)];const _0x50f832=_0xd1e524[_0x14a9f0(0x24e)][0x0][_0x14a9f0(0x173)][_0x14a9f0(0x2cf)];Array[_0x14a9f0(0x2db)](_0x50f832)&&_0x50f832[_0x14a9f0(0x29e)]&&_0x4d9a1f[_0x14a9f0(0x2b7)](_0x50f832[0x0]);}};_e=hn([ct(0x0,_0x410fc1),ct(0x1,_0x4f1a93)],_e);var un=Object[_0x2fb053(0x2a3)],dn=(_0x285892,_0x2c95d6,_0x2675bf,_0x223598)=>{const _0x23e6f4=_0x2fb053;for(var _0x48955a=_0x223598>0x1?void 0x0:_0x223598?un(_0x2c95d6,_0x2675bf):_0x2c95d6,_0x494f00=_0x285892[_0x23e6f4(0x29e)]-0x1,_0x3be24a;_0x494f00>=0x0;_0x494f00--)(_0x3be24a=_0x285892[_0x494f00])&&(_0x48955a=_0x3be24a(_0x48955a)||_0x48955a);return _0x48955a;},De=(_0x5020fa,_0x1c0b5f)=>(_0x1fa1d2,_0x24b318)=>_0x1c0b5f(_0x1fa1d2,_0x24b318,_0x5020fa);let he=class{constructor(_0x3a5506,_0x166066,_0x25d21a){const _0x2acf2a=_0x2fb053;this['_injector']=_0x3a5506,this[_0x2acf2a(0x12f)]=_0x166066,this[_0x2acf2a(0x2df)]=_0x25d21a;}[_0x2fb053(0x2cb)](_0x5c17f1){const _0x1f4afe=_0x2fb053;this[_0x1f4afe(0x15f)](_0x5c17f1);}[_0x2fb053(0x227)](_0xb2d3f6){const _0x3009ad=_0x2fb053,{unitID:_0x4595f0}=_0xb2d3f6,{collaboration:_0x149172}=this[_0x3009ad(0x2df)]['getStateCache'](_0x4595f0);if(_0x149172[_0x3009ad(0x29e)]===0x0)return _0xb2d3f6;let _0x1ce26b=_0x363c42[_0x3009ad(0x223)](_0xb2d3f6[_0x3009ad(0x189)][0x0]);for(let _0xec2a69=0x0;_0xec2a69<_0x149172[_0x3009ad(0x29e)];_0xec2a69++){const _0x33863b={'id':_0x3009ad(0x218),'params':{'unitId':_0x149172[_0xec2a69][_0x3009ad(0xcd)],..._0x149172[_0xec2a69][_0x3009ad(0x2c6)]}},_0x5865eb=this[_0x3009ad(0x12f)][_0x3009ad(0xec)](_0x1ce26b,_0x33863b,!0x1);if(_0x166415(_0x5865eb))throw _0x5865eb[_0x3009ad(0x1a0)];_0x1ce26b=_0x5865eb[_0x3009ad(0x2be)];}return{..._0x363c42[_0x3009ad(0x223)](_0xb2d3f6),'mutations':[_0x1ce26b]};}[_0x2fb053(0x15f)](_0x1f2e38){const _0x3460d8=_0x2fb053,{unitID:_0x1f7b43}=_0x1f2e38,{history:_0x2b1add,collaboration:_0x14d502}=this['_docStateChangeManagerService']['getStateCache'](_0x1f7b43);if(_0x2b1add['length']===0x0&&_0x14d502[_0x3460d8(0x29e)]===0x0)return;const _0x2d6e7a=[],_0x1bbe02=[];let _0x49e916=_0x363c42['deepClone'](_0x1f2e38['mutations'][0x0]),_0x5d3251=_0x363c42[_0x3460d8(0x223)](_0x1f2e38[_0x3460d8(0x189)][0x0]);for(let _0x379a01=_0x2b1add[_0x3460d8(0x29e)]-0x1;_0x379a01>=0x0;_0x379a01--){const _0x16f109={'id':_0x3460d8(0x218),'params':{'unitId':_0x2b1add[_0x379a01][_0x3460d8(0xcd)],..._0x2b1add[_0x379a01][_0x3460d8(0xe1)]}},_0x55545b={'id':_0x3460d8(0x218),'params':{'unitId':_0x2b1add[_0x379a01][_0x3460d8(0xcd)],..._0x2b1add[_0x379a01][_0x3460d8(0x2c6)]}},_0x45e00f=this['_transformService'][_0x3460d8(0xec)](_0x49e916,_0x16f109,!0x1),_0x2cdd68=this[_0x3460d8(0x12f)][_0x3460d8(0xec)](_0x5d3251,_0x55545b,!0x1);if(_0x166415(_0x45e00f))throw _0x45e00f[_0x3460d8(0x1a0)];if(_0x166415(_0x2cdd68))throw _0x2cdd68['error'];_0x2d6e7a[_0x3460d8(0xff)]({..._0x2b1add[_0x379a01],'undoState':_0x45e00f[_0x3460d8(0x24e)]['params'],'redoState':_0x2cdd68[_0x3460d8(0x24e)]['params']}),_0x49e916=_0x45e00f['m1Prime'],_0x5d3251=_0x2cdd68[_0x3460d8(0x2be)];}_0x49e916=_0x363c42[_0x3460d8(0x223)](_0x1f2e38[_0x3460d8(0x189)][0x0]),_0x5d3251=_0x363c42[_0x3460d8(0x223)](_0x1f2e38['mutations'][0x0]);for(let _0xfdf8b8=_0x14d502[_0x3460d8(0x29e)]-0x1;_0xfdf8b8>=0x0;_0xfdf8b8--){const _0x5033aa={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x14d502[_0xfdf8b8][_0x3460d8(0xcd)],..._0x14d502[_0xfdf8b8][_0x3460d8(0xe1)]}},_0x2eba9f={'id':_0x3460d8(0x218),'params':{'unitId':_0x14d502[_0xfdf8b8][_0x3460d8(0xcd)],..._0x14d502[_0xfdf8b8]['redoState']}},_0x239503=this[_0x3460d8(0x12f)][_0x3460d8(0xec)](_0x49e916,_0x5033aa,!0x1),_0xa7f319=this[_0x3460d8(0x12f)][_0x3460d8(0xec)](_0x5d3251,_0x2eba9f,!0x1);if(_0x166415(_0x239503))throw _0x239503['error'];if(_0x166415(_0xa7f319))throw _0xa7f319['error'];_0x1bbe02['unshift']({..._0x14d502[_0xfdf8b8],'undoState':_0x239503[_0x3460d8(0x24e)]['params'],'redoState':_0xa7f319[_0x3460d8(0x24e)][_0x3460d8(0x173)]}),_0x49e916=_0x239503[_0x3460d8(0x2be)],_0x5d3251=_0xa7f319[_0x3460d8(0x2be)];}this[_0x3460d8(0x2df)][_0x3460d8(0x116)](_0x1f7b43,{'history':_0x2d6e7a,'collaboration':_0x1bbe02});}};he=dn([De(0x0,_0x1cf148(_0x3e1732)),De(0x1,_0x410fc1),De(0x2,_0x1cf148(_0x5aa17c))],he);var fn=Object[_0x2fb053(0x2a3)],Sn=(_0x13fc2f,_0x5724b5,_0x7fa9ae,_0x4460da)=>{for(var _0x56a5b8=_0x4460da>0x1?void 0x0:_0x4460da?fn(_0x5724b5,_0x7fa9ae):_0x5724b5,_0x4f3660=_0x13fc2f['length']-0x1,_0x57bd9a;_0x4f3660>=0x0;_0x4f3660--)(_0x57bd9a=_0x13fc2f[_0x4f3660])&&(_0x56a5b8=_0x57bd9a(_0x56a5b8)||_0x56a5b8);return _0x56a5b8;},lt=(_0x30880a,_0x26cb78)=>(_0x5110c3,_0x226f21)=>_0x26cb78(_0x5110c3,_0x226f21,_0x30880a);let ue=class{constructor(_0x7181d5,_0x7815b4){const _0x48e077=_0x2fb053;this[_0x48e077(0x292)]=_0x7181d5,this[_0x48e077(0x12f)]=_0x7815b4;}[_0x2fb053(0x115)](_0x4e88b6){const _0x5b49a0=_0x2fb053;var _0x38f0cc;const _0x43a8f6=this[_0x5b49a0(0x292)][_0x5b49a0(0x29d)](_0x99b730),_0x22e987=(_0x38f0cc=_0x43a8f6[_0x5b49a0(0x14d)]())!=null?_0x38f0cc:[];if(_0x22e987[_0x5b49a0(0x29e)]===0x0)return;const _0x5557e7=_0x4e88b6[_0x5b49a0(0x1f7)],_0x213df6=[{'id':_0x5b49a0(0x218),'params':{'unitId':_0x5557e7,'actions':null,'textRanges':_0x22e987}}],_0x5a8cfa=this[_0x5b49a0(0x12f)][_0x5b49a0(0x15c)](_0x4e88b6,_0x213df6);if(!_0x2ac4ba(_0x5a8cfa))throw _0x5a8cfa[_0x5b49a0(0x1a0)];const _0x23b141=_0x5a8cfa[_0x5b49a0(0x24e)][0x0][_0x5b49a0(0x173)][_0x5b49a0(0x2cf)];Array[_0x5b49a0(0x2db)](_0x23b141)&&_0x23b141[_0x5b49a0(0x29e)]&&_0x43a8f6['replaceDocRanges'](_0x23b141,{'unitId':_0x5557e7,'subUnitId':_0x5557e7},!0x1);}};ue=Sn([lt(0x0,_0x1cf148(_0x3e1732)),lt(0x1,_0x410fc1)],ue);function _0x54a5(){const _0x129050=['cursorInfo','_messageService','INVALID_INVITE_CODE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ENTITLE_CAN_NOT_BUY_LOWER_OTP','getActiveRange','_docSkeleton','name','getSheetBySheetId','_assignedColors','isActive','round','MOBILE_HAS_BEEN_BOUND','_saveCache','getCurrent','symbol','3165CQKVdS','forEach','WECHAT_HAS_BEEN_BOUND','_collabSessionService','delete','YUUMI_URL_COL_OUT_OF_RANGE','getMemberID','_scene','popstate','registerRefRange','_injector','USER_NOT_FOUND','_config','_startCalculationLimit','then','endColumn','docStateChange$','none','_online','unsubscribe','origin','get','length','getFocusedUnit','_labelPosition','addClipboardHook','AWAITING','getOwnPropertyDescriptor','_setFormulaLimitStatus','children','saveOfflineData','_localStorageService','CONNECTOR_DATA_TOO_LARGE','onStarting','getTypeOfUnitAdded$','_themeService','TEXT','hide','fillStyle','ONLINE','runOnServer','_onCursorDelete','RemoveRowCommandId','getConfig','COMPLETION_FINISHED','setItem','_hovered','setActiveRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_setupSubUnitSync','beforeCommandExecuted','CHANGESET_REVISION_CONFILICT','LOGIN_FAILED','17KwcMUX','m1Prime','transformByState','12GCcaLF','0\x200\x2016\x2016','_commandService','UPDATE_CURSOR','49mlrpNs','loadOfflineData','redoState','stageInfo','FromArray','imageSourceType','attrs','transformStateCache','_refRangeService','OTHER_CLIENTS_EDITING','formula.calculation.started','textRanges','10720hrJqAM','sheetID','roomMembers$','_initEvent','search','limitInfo','_range','asObservable','min','_initCommandExecutedListener','_logService','isArray','Warning','getUnitId','includes','_docStateChangeManagerService','onPointerLeave$','_shapes','send','getUndoRedoMutationParamsCache','2009790ddjATo','collabStatus.fetchMiss','session.will-retry','totalFormulasToCalculate','translate(.97)','resize','defs','2763mxLYGZ','VIEW_MAIN','assign','_checkAndWaitForCalculationPermission','_getSessionTicket','_docTransformStateCacheService','_lastResponseTimestamp','_sheetSkeletonManagerService','tag','subunit','getOwnPropertySymbols','width','_getFormulaLimitStatus','_clearPolling','_notificationService','_drawRectRange','INTERNAL_ERROR','engine','PAYMENT_CHANNEL_NOT_SUPPORT','assignAColorForMemberID','enableLocalCache','_drawAnchor','FETCH_MISS','_memberService','_urlService','_httpService','REDEMPTION_CODE_NOT_STARTED','_onCursorUpdate','height','onPointerMove$','_registerRenderDependencies','collaboration-client.offline-data-not-saved','propertyIsEnumerable','collabCursorState$','unitId','toRgbString','beginPath','parseInt','_toggleOnline','getUnhiddenWorksheets','_context','UniverIcon','_status$','MUTATION','makeDirty','set','setShapeProps','_eventUnsubscribe','_roomMembers$','_dataLoaderService','_textBubble','ALREADY_EXISTS','activeSheet$','arc','undoState','YUUMI_RATE_OVER_LIMIT','getRangePointData','replace','fillText','getColorFromTheme','_collaborationUIEventService','reconnect','startRow','_pollingInterval','getSheetId','transformMutation','_initCommandInterceptor','restore','_imageIoService','UNRECOGNIZED','_scheduleSaving','disableLocalCache','setInterval','_updateLocalCursor','collaboration.closeRoom','hovered','values','cursorInfo$','NO_OTHER_CLIENTS_EDITING','_toggleOffline','extend','getMergeData','_scheduleHeartbeat','_handleHeartbeatEvent','unshift','getCellMatrix','_updateSubUnitFromURLParams','selections','CURRENT_STATUS_CANNOT_OPERATE','rgba(255,\x20255,\x20255,\x200.01)','USERS_LEAVE','row','getAncestorScale','_maxFormulaLimit','dispose','currentUsage','isEditing','colorChannel1','push','white','TOO_MANY_REQUESTS','LOGIN_TOKEN_PROCESSING_FAILED','InsertColCommandId','1724UMdnwx','_getMergeRange','_docTransformIMECacheService','transformSelections','setStateCache','black','addObjects','_init','getOffsetConfig','getMember','_session','_currentUsage','onPointerEnter$','collab-text-anchor-','PERMISSION_DENIED','indexOf','_localeService','APPLY_REJECT','_transformUndoRedoStack','ERROR_AGAIN','_entityInit$','measureText','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getVpScrollXYInfoByPosToVp','size','_cursorShapes','whenReady','#FFF','_releaseCalculationLimit','_transformService','startsWith','disposeUnit','map','ENSURE_SNAPSHOT_EXECUTION','_applyCommand','range','550032yKvzzD','findNodePositionByCharIndex','moveTo','univer-mr-2\x20univer-flex\x20univer-text-xl','_colorAssignService','_saveTaskMap','syncEditingCollabCursor','shift','_refreshCollabCursors','SNAPSHOT_INVALID_SNAPSHOT','UNIVER_SHEET','displayName','LICENSE_DISTRO_REJECTED','subscribe','getRenderById','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_name','path','M0\x200H16V16H0z','pluginName','post','runId','getTypeOfUnitDisposed$','getDocRanges','defineProperty','selection','_checkCalculationAvailable','_docSyncEditingCollabCursorService','_drawTextRange','Failed','collab-client.tooltip.reconnect','_backgroundColor','SYNCED','_initDependencies','collaboration-client-ui.config','location','onMouseMove','from','transformMutationsWithChangeset','drawWith','off-line-icon','_transformHistoryAndStateStack','uni.network.url-service','_initStatusListener','_lastPointer','formula.calculation.waiting','_entities','call','blue.400','idSuffix','_docClipboardService','dispose$','getValue','currentColor','AUTHORIZE_CODE_ILLEGAL','_disabled','subUnitId','_createSocketURL','registerBeforeClose','_handleEvent','UNDEFINED','params','url(#off-line-icon_clip0_910_343)','on-line-icon_clip0_910_349','setAlpha','_revisionService','_cursors','AWAITING_WITH_PENDING','LICENSE_EXPORT_SIZE_EXCEEDED','/universer-api/license/formula/limit/status','_initStatusComponent','ENTITLE_REPORT_LIMIT_EXCEED','className','entries','xlink:href','onLocalMutation','code','function','/universer-api/license/formula/limit/done','lineTo','red.300','_renderManagerService','_startDocCollabCursor','mutations','searchParams','actions','1em','stringify','session.connection-failed','univerjs-icon\x20univerjs-icon-','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','_docSkeletonManagerService','triggerDblclick','_beforeCloseService','url(#$1','univer-flex\x20univer-items-center','DeleteRangeMoveUpCommandId','SOCKET_FAILED_RETRY','addObject','unit','createInstance','_taskIds','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_instanceService','icon','closePath','error','_hover','REDEMPTION_INVALID_CODE','HEADER_MENU','hasOwnProperty','font','collaboration.single-unit.warning','div','now','REDEMPTION_CODE_HAS_BEEN_CREATED','transformIMECache','labelPosition','...','with','fill','clearTimeout','clipPath','apply','_configService','has','green.600','_id','/run/','saveTaskMap','YUUMI_UNABLE_LOAD_URL','init','replaceState','_render','USER_NOT_INVITED_CODE','releaseFormulaLimitUrl','RemoveColCommandId','newValue','updateOfflineData','_color','getCollabCursors$','addEventListener','mask','REDEMPTION_CODE_FULLY_REDEEMED','_ensureSubject','_removeCollabCursors','getParam','type','_send','105232zLFYta','_handleLeaveEvent','currentTheme$','concat','_univerInstanceService','YUUMI_AI_RUN_FAILED','_hideTimer','_startSheetCollabCursor','_uiPartsService','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_USER_NOT_ELIGIBLE','LICENSE_MAX_UNITS_EXCEEDED','getViewport','APPLY_DUPLICATED','INVITE_CODE_ALREADY_BOUND','_unitOnClients','INVITE_CODE_REQUIRED','OnLineIcon','complete','_draw','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','REDEMPTION_CODE_INACTIVE','_onRefRangeChange','saveImage','href','setTimeout','CONFLICT','exhaustSavingTask','setConfig','column','9680858kMREfu','override','MOBILE_VERIFY_CODE_MISMATCH','permission.title','_docTransformSelectionsService','application/json','ACTIVE_UNIT_EVENT_CHANNEL','current','fillRule','_handleHover','history','invokeId','_anchorDot','jiqing.500','unitID','executeCommand','_hasFormulaInDirtyRanges','sessionTicket','NOT_FOUND','ENTITLE_NEED_BILLING_ADDRESS','source','onCommandExecuted','DeleteRangeMoveLeftCommandId','YUUMI_CONNECTOR_URL_NOT_FOUND','loadUnit','entityInit$','_heartbeatTimer','use','_showGuardMessage','add','InsertRangeMoveDownCommandId','Error','getCurrentRevOfUnit','_handleJoinEvent','setParam','data','_getAnchorBounding','stage','focused$','removeParam','pushState','_initEntityListener','_initResize','_doCreateSocket','eventID','_cursor','collabStatus.syncing','doc.mutation.rich-text-editing','backgroundColor','APPLY_PERMISSION_DENIED','/universer-api/license/formula/limit/start','_getSaveTimeout','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','EMAIL_HAS_BEEN_BOUND','START_CALCULATION','next','ENTITLE_DUP_SUBSCRIPTION','_updateURLWithCurrentState','deepClone','purple.300','3398qsPIAp','currentSkeleton$','transformRemoteChangeset','permission.content','find','endRow','collabStatus.offline','getCellPositionByOffset','EMAIL_VERIFY_CODE_MISMATCH','show','_colorIndex','result','http://www.w3.org/2000/svg','_clearOtherTimers','defIds','YUUMI_SUBSCRIPTION_NOT_FOUND','_selfUnitIDs','contains','collab-rect-range-','save','SNAPSHOT_HAS_BEEN_REMOVED','pipe','getActiveSheet','onTransformChange$','disposeWithMe','_cachedData','memberID','color','max','_registerDependencies','prototype','_collabCursorState$','USER_IS_ANONYMOUS','evenodd','urlChange$','SOCKET_FAILED','executionId','ranges','status$','INVALID_ARGUMENT','top','m2Prime','_setupBeforeClosingHandler','_syncEditingCollabCursorService','_anchor','body','ENTITLE_CHAT_LIMIT_EXCEED','getRelativeToViewportCoord','NOT_COLLAB','trim','SUCCESS','functionsExecutedState','bottom','_unitStatus','UNAUTHENTICATED','string','roomMembers','_localCacheService','requireSession','UNIVER_DOC','_transformPreviousActiveRange','LICENSE_IMPORT_SIZE_EXCEEDED','getSkeleton','_collaborationController','_updateCollabCursors','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_cursorInfo$','sessionStatus$','YUUMI_ALL_TABLES_IS_INVALID','APPLY_REVISION_CONFILICT','text','REDEMPTION_USER_REDEEM_TIMES_EXCEED','event$','svg','unload','key','_removeClearOtherTimer','YUUMI_NO_CUBOID_FOR_QUESTION','_collabCursorController','toString','_getScale','_scheduleClearOtherTimer','subscribeEvent'];_0x54a5=function(){return _0x129050;};return _0x54a5();}var mn=Object['getOwnPropertyDescriptor'],In=(_0x1f3b60,_0x570e2d,_0x4a2fb9,_0x6f6fcd)=>{const _0x246f8e=_0x2fb053;for(var _0x51a95b=_0x6f6fcd>0x1?void 0x0:_0x6f6fcd?mn(_0x570e2d,_0x4a2fb9):_0x570e2d,_0x38884b=_0x1f3b60[_0x246f8e(0x29e)]-0x1,_0x539134;_0x38884b>=0x0;_0x38884b--)(_0x539134=_0x1f3b60[_0x38884b])&&(_0x51a95b=_0x539134(_0x51a95b)||_0x51a95b);return _0x51a95b;},U=(_0xa84760,_0x420941)=>(_0x197b7d,_0x413d43)=>_0x420941(_0x197b7d,_0x413d43,_0xa84760);let de=class extends _0x21676a{constructor(_0x38a311,_0xa1462c,_0x355fc8,_0x34f764,_0xb6899e,_0x4020f5,_0x408db5,_0x3e5ecc){const _0x5be4e6=_0x2fb053;super(),_(this,_0x5be4e6(0xd5),new _0xf3de79(_0x3400cc[_0x5be4e6(0x255)])),(this[_0x5be4e6(0x2df)]=_0x38a311,this['_collaborationController']=_0xa1462c,this[_0x5be4e6(0x114)]=_0x355fc8,this['_docTransformStateCacheService']=_0x34f764,this[_0x5be4e6(0x1ed)]=_0xb6899e,this[_0x5be4e6(0x151)]=_0x4020f5,this[_0x5be4e6(0x279)]=_0x408db5,this['_localeService']=_0x3e5ecc,this[_0x5be4e6(0x212)]());}[_0x2fb053(0x212)](){const _0x18179f=_0x2fb053;this[_0x18179f(0x23d)](this[_0x18179f(0x264)][_0x18179f(0x202)][_0x18179f(0x143)](_0x552bb9=>{const _0x3d8030=_0x18179f,_0x33cd5e=this['_docStateChangeManagerService'][_0x3d8030(0x298)]['subscribe'](_0x889515=>{const _0x2f6f62=_0x3d8030;if(_0x889515==null)return;const {unitId:_0x406dd3,redoState:_0x337de5,commandId:_0xacaf3}=_0x889515;if(_0x406dd3!==_0x552bb9['unitID'])return;const _0x10bd9d={'id':_0xacaf3,'type':_0x13db00[_0x2f6f62(0xd6)],'params':{'unitId':_0x406dd3,'actions':_0x337de5[_0x2f6f62(0x18b)],'textRanges':null}};_0x552bb9[_0x2f6f62(0x181)](_0x10bd9d);});if(_0x552bb9[_0x3d8030(0x23d)](_0x33cd5e),_0x552bb9 instanceof _0x3d408d){const _0x233b9f={'onTransformIME':_0x810cfe=>this[_0x3d8030(0x114)][_0x3d8030(0x1aa)](_0x810cfe),'onTransformState':_0x2f3218=>this[_0x3d8030(0x2f0)][_0x3d8030(0x2cb)](_0x2f3218),'onTransformSelections':_0x1c2016=>this[_0x3d8030(0x1ed)][_0x3d8030(0x115)](_0x1c2016),'onSyncEditingCollabCursor':_0x117d0d=>this[_0x3d8030(0x151)]['syncEditingCollabCursor'](_0x117d0d),'onTransformRemoteChangesetByIMECache':_0x15aae6=>this[_0x3d8030(0x114)]['transformRemoteChangeset'](_0x15aae6),'onTransformRemoteChangesetByStateCache':_0x469d54=>this['_docTransformStateCacheService'][_0x3d8030(0x227)](_0x469d54)};_0x552bb9['addHandlerCallback'](_0x233b9f);}}));}};de=In([U(0x0,_0x1cf148(_0x5aa17c)),U(0x1,_0x1cf148(_0x23b58c)),U(0x2,_0x1cf148(_e)),U(0x3,_0x1cf148(he)),U(0x4,_0x1cf148(ue)),U(0x5,_0x1cf148(Ke)),U(0x6,_0x12f250),U(0x7,_0x1cf148(_0x42bd72))],de);var Q=(_0x12dc90=>(_0x12dc90[_0x12dc90[_0x2fb053(0x172)]=0x0]=_0x2fb053(0x172),_0x12dc90[_0x12dc90['OK']=0x1]='OK',_0x12dc90[_0x12dc90[_0x2fb053(0xbb)]=0x2]=_0x2fb053(0xbb),_0x12dc90[_0x12dc90[_0x2fb053(0x120)]=0x3]='PERMISSION_DENIED',_0x12dc90[_0x12dc90['NOT_FOUND']=0x4]=_0x2fb053(0x1fb),_0x12dc90[_0x12dc90[_0x2fb053(0x25b)]=0x5]='UNAUTHENTICATED',_0x12dc90[_0x12dc90[_0x2fb053(0xde)]=0x6]=_0x2fb053(0xde),_0x12dc90[_0x12dc90[_0x2fb053(0x24c)]=0x7]=_0x2fb053(0x24c),_0x12dc90[_0x12dc90[_0x2fb053(0x10f)]=0x8]='TOO_MANY_REQUESTS',_0x12dc90[_0x12dc90[_0x2fb053(0x2b4)]=0x9]=_0x2fb053(0x2b4),_0x12dc90[_0x12dc90['LOGIN_FAILED']=0xa]=_0x2fb053(0x2bc),_0x12dc90[_0x12dc90[_0x2fb053(0x1eb)]=0xb]=_0x2fb053(0x1eb),_0x12dc90[_0x12dc90['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x2fb053(0x128),_0x12dc90[_0x12dc90[_0x2fb053(0x22d)]=0xd]=_0x2fb053(0x22d),_0x12dc90[_0x12dc90['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x12dc90[_0x12dc90['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2fb053(0x16c),_0x12dc90[_0x12dc90[_0x2fb053(0x110)]=0x10]=_0x2fb053(0x110),_0x12dc90[_0x12dc90[_0x2fb053(0x103)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x12dc90[_0x12dc90[_0x2fb053(0x125)]=0x65]='ERROR_AGAIN',_0x12dc90[_0x12dc90[_0x2fb053(0x293)]=0xc9]=_0x2fb053(0x293),_0x12dc90[_0x12dc90[_0x2fb053(0x245)]=0xca]=_0x2fb053(0x245),_0x12dc90[_0x12dc90[_0x2fb053(0x2bb)]=0x1389]=_0x2fb053(0x2bb),_0x12dc90[_0x12dc90[_0x2fb053(0x13f)]=0x1771]=_0x2fb053(0x13f),_0x12dc90[_0x12dc90[_0x2fb053(0x239)]=0x1772]=_0x2fb053(0x239),_0x12dc90[_0x12dc90[_0x2fb053(0x133)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x12dc90[_0x12dc90[_0x2fb053(0x123)]=0x1b59]=_0x2fb053(0x123),_0x12dc90[_0x12dc90['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x12dc90[_0x12dc90[_0x2fb053(0x26a)]=0x1b5b]=_0x2fb053(0x26a),_0x12dc90[_0x12dc90[_0x2fb053(0x21a)]=0x1b5c]=_0x2fb053(0x21a),_0x12dc90[_0x12dc90['APPLY_DUPLICATED']=0x1b5d]=_0x2fb053(0x1d8),_0x12dc90[_0x12dc90[_0x2fb053(0x2a8)]=0x1f41]=_0x2fb053(0x2a8),_0x12dc90[_0x12dc90[_0x2fb053(0x1d6)]=0x2329]=_0x2fb053(0x1d6),_0x12dc90[_0x12dc90[_0x2fb053(0x21d)]=0x232a]=_0x2fb053(0x21d),_0x12dc90[_0x12dc90[_0x2fb053(0x262)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x12dc90[_0x12dc90[_0x2fb053(0x17a)]=0x232c]=_0x2fb053(0x17a),_0x12dc90[_0x12dc90['LICENSE_DISTRO_REJECTED']=0x232d]=_0x2fb053(0x142),_0x12dc90[_0x12dc90[_0x2fb053(0x1b8)]=0x2711]=_0x2fb053(0x1b8),_0x12dc90[_0x12dc90[_0x2fb053(0x28d)]=0x2712]=_0x2fb053(0x28d),_0x12dc90[_0x12dc90[_0x2fb053(0xe2)]=0x2713]=_0x2fb053(0xe2),_0x12dc90[_0x12dc90[_0x2fb053(0x234)]=0x2714]=_0x2fb053(0x234),_0x12dc90[_0x12dc90[_0x2fb053(0x272)]=0x271a]=_0x2fb053(0x272),_0x12dc90[_0x12dc90[_0x2fb053(0x1d4)]=0x271b]=_0x2fb053(0x1d4),_0x12dc90[_0x12dc90['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x12dc90[_0x12dc90[_0x2fb053(0x269)]=0x271d]=_0x2fb053(0x269),_0x12dc90[_0x12dc90[_0x2fb053(0x266)]=0x271e]=_0x2fb053(0x266),_0x12dc90[_0x12dc90[_0x2fb053(0x1d0)]=0x271f]=_0x2fb053(0x1d0),_0x12dc90[_0x12dc90[_0x2fb053(0x200)]=0x2720]=_0x2fb053(0x200),_0x12dc90[_0x12dc90['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x12dc90[_0x12dc90['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x12dc90[_0x12dc90[_0x2fb053(0x27a)]=0x2ee2]=_0x2fb053(0x27a),_0x12dc90[_0x12dc90['INVITE_CODE_REQUIRED']=0x2ee3]=_0x2fb053(0x1db),_0x12dc90[_0x12dc90[_0x2fb053(0x1bc)]=0x2ee4]=_0x2fb053(0x1bc),_0x12dc90[_0x12dc90[_0x2fb053(0x1d9)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x12dc90[_0x12dc90['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x2fb053(0x28a),_0x12dc90[_0x12dc90['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2fb053(0x284),_0x12dc90[_0x12dc90[_0x2fb053(0x21e)]=0x32cb]=_0x2fb053(0x21e),_0x12dc90[_0x12dc90[_0x2fb053(0x27c)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x12dc90[_0x12dc90[_0x2fb053(0x145)]=0x36b2]=_0x2fb053(0x145),_0x12dc90[_0x12dc90[_0x2fb053(0x221)]=0x36b3]=_0x2fb053(0x221),_0x12dc90[_0x12dc90[_0x2fb053(0xbd)]=0x36b4]=_0x2fb053(0xbd),_0x12dc90[_0x12dc90[_0x2fb053(0x253)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x12dc90[_0x12dc90[_0x2fb053(0x17d)]=0x3716]=_0x2fb053(0x17d),_0x12dc90[_0x12dc90[_0x2fb053(0x1fc)]=0x37dd]=_0x2fb053(0x1fc),_0x12dc90[_0x12dc90['REDEMPTION_INVALID_CODE']=0x3a99]=_0x2fb053(0x1a2),_0x12dc90[_0x12dc90[_0x2fb053(0x1e0)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x12dc90[_0x12dc90[_0x2fb053(0x1c5)]=0x3a9b]=_0x2fb053(0x1c5),_0x12dc90[_0x12dc90[_0x2fb053(0xc5)]=0x3a9c]=_0x2fb053(0xc5),_0x12dc90[_0x12dc90['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x2fb053(0x1d5),_0x12dc90[_0x12dc90[_0x2fb053(0x26c)]=0x3a9e]=_0x2fb053(0x26c),_0x12dc90[_0x12dc90[_0x2fb053(0x1a9)]=0x3a9f]=_0x2fb053(0x1a9),_0x12dc90[_0x12dc90[_0x2fb053(0xf0)]=-0x1]=_0x2fb053(0xf0),_0x12dc90))(Q||{});function gn(_0x13bfaf){const _0x15b795=_0x2fb053;var _0x1c1fc4,_0x57a900;const _0x278122=(_0x1c1fc4=_0x13bfaf['stageInfo'])==null?void 0x0:_0x1c1fc4[_0x15b795(0x20e)],_0x9d9f57=((_0x57a900=_0x13bfaf[_0x15b795(0x2c7)])==null?void 0x0:_0x57a900[_0x15b795(0x2e7)])||0x0;return _0x278122===_0x529aa9[_0x15b795(0x21f)]&&_0x9d9f57>0x0;}function vn(_0x123deb){const _0x563991=_0x2fb053;return _0x123deb[_0x563991(0x258)]===_0x5cdf4a[_0x563991(0x257)];}var En=Object[_0x2fb053(0x2a3)],pn=(_0x22bf76,_0x5b0c13,_0x3d3795,_0x48b7d0)=>{const _0x1240ed=_0x2fb053;for(var _0x314d64=_0x48b7d0>0x1?void 0x0:_0x48b7d0?En(_0x5b0c13,_0x3d3795):_0x5b0c13,_0x226f17=_0x22bf76[_0x1240ed(0x29e)]-0x1,_0x9af80e;_0x226f17>=0x0;_0x226f17--)(_0x9af80e=_0x22bf76[_0x226f17])&&(_0x314d64=_0x9af80e(_0x314d64)||_0x314d64);return _0x314d64;},w=(_0x362447,_0x248c76)=>(_0x1978ee,_0x4f3d03)=>_0x248c76(_0x1978ee,_0x4f3d03,_0x362447);const On=_0x2fb053(0x17b),Tn=_0x2fb053(0x21b),Cn=_0x2fb053(0x184);let fe=class extends _0x21676a{constructor(_0x1b133b,_0x301d0b,_0x4743d8,_0x9f69c7,_0x425778,_0x1e94fd,_0x3fd0d6){const _0x588ff3=_0x2fb053;super(),_(this,_0x588ff3(0xea),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x588ff3(0x11d),0x0),_(this,_0x588ff3(0x19b),[]),_(this,_0x588ff3(0x2f1),0x0),(this[_0x588ff3(0x279)]=_0x1b133b,this['_commandService']=_0x301d0b,this[_0x588ff3(0x1b2)]=_0x4743d8,this[_0x588ff3(0xc4)]=_0x9f69c7,this[_0x588ff3(0x1cf)]=_0x425778,this[_0x588ff3(0x2da)]=_0x1e94fd,this[_0x588ff3(0x122)]=_0x3fd0d6,this[_0x588ff3(0xed)]());}[_0x2fb053(0xed)](){const _0x172d77=_0x2fb053;this[_0x172d77(0x23d)](this[_0x172d77(0x2c2)][_0x172d77(0x2ba)]((_0x18afbb,_0x33575a)=>{const _0x443882=_0x172d77;if(_0x18afbb['id']!==_0x57f6c4['id'])return;const _0x572829=_0x18afbb[_0x443882(0x173)];if(!this[_0x443882(0x1f9)](_0x572829['dirtyRanges']))return;if(!this[_0x443882(0x150)]())throw this[_0x443882(0x2ee)](_0x18afbb,_0x33575a),this[_0x443882(0x205)](),new _0x405020();})),this[_0x172d77(0x23d)](this[_0x172d77(0x2c2)][_0x172d77(0x1fe)]((_0x4df63a,_0x4e8016)=>{const _0x4d13cf=_0x172d77;if(_0x4df63a['id']!==_0x2fc418['id'])return;const _0x5009b2=_0x4df63a[_0x4d13cf(0x173)];if(gn(_0x5009b2)){const _0x38197a=_0x39a9ea();this['_taskIds'][_0x4d13cf(0x10d)](_0x38197a),this[_0x4d13cf(0x295)](_0x38197a);}else{if(vn(_0x5009b2)&&this['_taskIds']['length']>0x0){const _0x3a48a6=this[_0x4d13cf(0x19b)][_0x4d13cf(0x13d)]();this[_0x4d13cf(0x12e)](_0x3a48a6);}}}));}[_0x2fb053(0x109)](){const _0x3f94bb=_0x2fb053;super[_0x3f94bb(0x109)](),this[_0x3f94bb(0xb8)](),this[_0x3f94bb(0x19b)]=[],this[_0x3f94bb(0x11d)]=0x0,this[_0x3f94bb(0x108)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x500596,_0x2f3132){const _0x2b2d3e=_0x2fb053;for(let _0x3ef3c4=0x0;_0x3ef3c4<0x1e;_0x3ef3c4++)try{if(await this[_0x2b2d3e(0xb7)](),this[_0x2b2d3e(0x150)]()){this[_0x2b2d3e(0x134)](_0x500596,_0x2f3132),this['_messageService']['show']({'content':this['_localeService']['t'](_0x2b2d3e(0x2ce)),'type':_0x29c3d1['Success']});return;}await new Promise(_0x100252=>{const _0x1398f0=_0x2b2d3e;this[_0x1398f0(0xea)]=window[_0x1398f0(0x1e4)](_0x100252,0x3e8);});}catch(_0x3c5d3f){this[_0x2b2d3e(0x2da)][_0x2b2d3e(0x1a0)](_0x3c5d3f);}this['_messageService'][_0x2b2d3e(0x22e)]({'content':this[_0x2b2d3e(0x122)]['t']('formula.calculation.unable'),'type':_0x29c3d1[_0x2b2d3e(0x208)]});}[_0x2fb053(0x134)](_0x55bf96,_0x2c6bf3){const _0x18f3f8=_0x2fb053;try{this[_0x18f3f8(0x2c2)][_0x18f3f8(0x1f8)](_0x55bf96['id'],_0x55bf96[_0x18f3f8(0x173)],_0x2c6bf3);}catch(_0x523312){this[_0x18f3f8(0x2da)][_0x18f3f8(0x1a0)](_0x523312);}}['_setFormulaLimitStatus'](_0x2fc69e,_0x1cfb85){const _0x5e8af9=_0x2fb053;_0x1cfb85<this['_lastResponseTimestamp']||(this[_0x5e8af9(0x2f1)]=_0x1cfb85,this['_maxFormulaLimit']=Number[_0x5e8af9(0xd0)](_0x2fc69e['maxFormulaLimit']),this[_0x5e8af9(0x11d)]=Number['parseInt'](_0x2fc69e[_0x5e8af9(0x10a)]));}async[_0x2fb053(0x295)](_0x350bf2){const _0x33f22a=_0x2fb053;var _0x59562f,_0x146128;const _0x415e1a=Date[_0x33f22a(0x1a8)]();try{const _0x69f06d=((_0x59562f=this['_configService'][_0x33f22a(0x2b3)](_0x5ad1cd))==null?void 0x0:_0x59562f['startFormulaLimitUrl'])||Tn,_0x1bf228=(await this['_httpService'][_0x33f22a(0x14a)](_0x69f06d,{'body':JSON[_0x33f22a(0x18d)]({'taskId':_0x350bf2})}))[_0x33f22a(0x252)];if(((_0x146128=_0x1bf228['error'])==null?void 0x0:_0x146128[_0x33f22a(0x182)])!==Q['OK'])return;this[_0x33f22a(0x2a4)](_0x1bf228[_0x33f22a(0x2d5)],_0x415e1a);}catch(_0x3ec067){this[_0x33f22a(0x2da)][_0x33f22a(0x1a0)](_0x3ec067);}}async[_0x2fb053(0xb7)](_0x462576){const _0x2460b6=_0x2fb053;var _0x31f1fa,_0x1c470f;const _0x3d5d99=Date[_0x2460b6(0x1a8)]();try{const _0x34a748=((_0x31f1fa=this[_0x2460b6(0x1b2)]['getConfig'](_0x5ad1cd))==null?void 0x0:_0x31f1fa['getformulaLimitStatusUrl'])||On,_0x19168c=_0x462576?_0x34a748+'?taskId='+encodeURIComponent(_0x462576):_0x34a748,_0x4fda6e=(await this[_0x2460b6(0xc4)]['get'](_0x19168c))['body'];if(((_0x1c470f=_0x4fda6e[_0x2460b6(0x1a0)])==null?void 0x0:_0x1c470f[_0x2460b6(0x182)])!==Q['OK'])return;this[_0x2460b6(0x2a4)](_0x4fda6e[_0x2460b6(0x2d5)],_0x3d5d99);}catch(_0x2c3219){this[_0x2460b6(0x2da)]['error'](_0x2c3219);}}async[_0x2fb053(0x12e)](_0x2660b5){const _0x5edded=_0x2fb053;var _0x5f0870,_0x5acd7f;const _0x5ae928=Date[_0x5edded(0x1a8)]();try{const _0x8d3470=((_0x5f0870=this['_configService']['getConfig'](_0x5ad1cd))==null?void 0x0:_0x5f0870[_0x5edded(0x1bd)])||Cn,_0x54e9b1=(await this[_0x5edded(0xc4)][_0x5edded(0x14a)](_0x8d3470,{'body':JSON['stringify']({'taskId':_0x2660b5})}))[_0x5edded(0x252)];if(((_0x5acd7f=_0x54e9b1[_0x5edded(0x1a0)])==null?void 0x0:_0x5acd7f[_0x5edded(0x182)])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x54e9b1[_0x5edded(0x2d5)],_0x5ae928);}catch(_0x22c56a){this[_0x5edded(0x2da)][_0x5edded(0x1a0)](_0x22c56a);}}[_0x2fb053(0x150)](){const _0xc3ff63=_0x2fb053;return this[_0xc3ff63(0x108)]===0x0?!0x0:this[_0xc3ff63(0x108)]-this['_currentUsage']>0x0;}[_0x2fb053(0xb8)](){const _0x4162e2=_0x2fb053;this['_pollingInterval']&&(clearTimeout(this[_0x4162e2(0xea)]),this[_0x4162e2(0xea)]=null);}['_showGuardMessage'](){const _0x31c451=_0x2fb053;this[_0x31c451(0x279)][_0x31c451(0x22e)]({'content':this[_0x31c451(0x122)]['t'](_0x31c451(0x163)),'type':_0x29c3d1['Loading']});}[_0x2fb053(0x1f9)](_0x3946ea){const _0x130fba=_0x2fb053;for(const _0x35a4a3 of _0x3946ea){const {unitId:_0x47524a,sheetId:_0x11fa1b,range:_0x5d7f7e}=_0x35a4a3,_0x4d49d9=this[_0x130fba(0x1cf)]['getUnit'](_0x47524a);if(!_0x4d49d9)continue;const _0x47101a=_0x4d49d9[_0x130fba(0x280)](_0x11fa1b);if(!_0x47101a)continue;const _0x1c9705=_0x47101a[_0x130fba(0x100)]();for(let _0x3871d3=_0x5d7f7e[_0x130fba(0xe9)];_0x3871d3<=_0x5d7f7e['endRow'];_0x3871d3++)for(let _0x23badd=_0x5d7f7e['startColumn'];_0x23badd<=_0x5d7f7e[_0x130fba(0x297)];_0x23badd++){const _0x1cd85e=_0x1c9705[_0x130fba(0x16a)](_0x3871d3,_0x23badd);if(_0x1cd85e&&(_0x183b1b(_0x1cd85e['f'])||_0x5076fe(_0x1cd85e['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x1cf148(_0x12f250)),w(0x1,_0x25fda4),w(0x2,_0x1f9e5b),w(0x3,_0x1cf148(_0x2e9ac4)),w(0x4,_0x265bc4),w(0x5,_0x238dc1),w(0x6,_0x1cf148(_0x42bd72))],fe);var Rn=Object[_0x2fb053(0x2a3)],Dn=(_0x58e330,_0x34a484,_0x3e779e,_0x52a2f1)=>{const _0x344e66=_0x2fb053;for(var _0x29b55b=_0x52a2f1>0x1?void 0x0:_0x52a2f1?Rn(_0x34a484,_0x3e779e):_0x34a484,_0x375976=_0x58e330[_0x344e66(0x29e)]-0x1,_0x3f2c3b;_0x375976>=0x0;_0x375976--)(_0x3f2c3b=_0x58e330[_0x375976])&&(_0x29b55b=_0x3f2c3b(_0x29b55b)||_0x29b55b);return _0x29b55b;},be=(_0x44fd55,_0x175e56)=>(_0x465f01,_0xcecd76)=>_0x175e56(_0x465f01,_0xcecd76,_0x44fd55);let Be=class extends _0x21676a{constructor(_0x5d12ca,_0x5bd817,_0x3d42f0){const _0x4d75a2=_0x2fb053;super(),_(this,'_cachedData',new Map()),_(this,_0x4d75a2(0x13b),new Map()),_(this,_0x4d75a2(0x16d),!0x1),(this[_0x4d75a2(0x1b2)]=_0x5d12ca,this[_0x4d75a2(0x2a7)]=_0x5bd817,this[_0x4d75a2(0x177)]=_0x3d42f0);}[_0x2fb053(0xf2)](){const _0x1e8a59=_0x2fb053;this[_0x1e8a59(0x16d)]=!0x0;}[_0x2fb053(0xbf)](){const _0x6a7745=_0x2fb053;this[_0x6a7745(0x16d)]=!0x1;}get[_0x2fb053(0x1b7)](){const _0x555115=_0x2fb053;return this[_0x555115(0x13b)];}['dispose'](){const _0x46205d=_0x2fb053;this[_0x46205d(0x1e6)]()[_0x46205d(0x296)](()=>super[_0x46205d(0x109)]());}async[_0x2fb053(0x2c5)](_0x3bfe97){const _0x7e7075=_0x2fb053;return this[_0x7e7075(0x16d)]?null:this[_0x7e7075(0x2a7)]['getItem'](_0x5964fb(_0x3bfe97));}async[_0x2fb053(0x2a6)](_0x5beb49,_0x175a5f){const _0x46715c=_0x2fb053;return!!this[_0x46715c(0x2a7)][_0x46715c(0x2b5)](_0x5beb49,_0x175a5f);}[_0x2fb053(0x1c0)](_0x51081d,_0x2e3668,_0x477ab8,_0x2d38cf){const _0x1f2d38=_0x2fb053,_0x345a9f=this[_0x1f2d38(0x177)][_0x1f2d38(0x209)](_0x51081d);this[_0x1f2d38(0x23e)]['set'](_0x51081d,{'unitID':_0x51081d,'type':_0x2e3668,'awaitingChangeset':_0x477ab8,'mutations':_0x2d38cf,'rev':_0x345a9f}),this[_0x1f2d38(0x13b)]['has'](_0x51081d)||this[_0x1f2d38(0xf1)](_0x51081d);}[_0x2fb053(0xf1)](_0x1042c9){const _0xebeba=_0x2fb053,_0x284ba7=this[_0xebeba(0x21c)]();_0x284ba7===0x0?this[_0xebeba(0x285)](_0x1042c9):this[_0xebeba(0x13b)][_0xebeba(0xd8)](_0x1042c9,setTimeout(()=>this[_0xebeba(0x285)](_0x1042c9),_0x284ba7));}['_getSaveTimeout'](){const _0x5eaf54=_0x2fb053;var _0xd8ad7b;return(_0xd8ad7b=this[_0x5eaf54(0x1b2)][_0x5eaf54(0x2b3)](_0x5df4f1))!=null?_0xd8ad7b:_0x419b5b;}[_0x2fb053(0x285)](_0x5219fe){const _0x4affac=_0x2fb053,_0x58e995=this[_0x4affac(0x13b)]['get'](_0x5219fe);return _0x58e995!==void 0x0&&window['clearTimeout'](_0x58e995),this['_localStorageService'][_0x4affac(0x2b5)](_0x5964fb(_0x5219fe),this[_0x4affac(0x23e)][_0x4affac(0x29d)](_0x5219fe))[_0x4affac(0x296)](()=>this[_0x4affac(0x13b)][_0x4affac(0x28c)](_0x5219fe));}async[_0x2fb053(0x1e6)](){const _0x42833a=_0x2fb053,_0x1536eb=[];this[_0x42833a(0x13b)][_0x42833a(0x289)]((_0x210d96,_0x49fd9c)=>{const _0x7304b5=_0x42833a;window[_0x7304b5(0x1af)](_0x210d96),_0x1536eb[_0x7304b5(0x10d)](this[_0x7304b5(0x285)](_0x49fd9c)[_0x7304b5(0x296)](()=>{const _0x574361=_0x7304b5;this['_saveTaskMap'][_0x574361(0x28c)](_0x49fd9c);}));}),await Promise['all'](_0x1536eb);}};Be=Dn([be(0x0,_0x1f9e5b),be(0x1,_0x5e47a8),be(0x2,_0x1cf148(_0x4d108a))],Be);class bn extends _0x5db293{constructor(){const _0x1cb5bf=_0x2fb053;super(),_(this,_0x1cb5bf(0x247)),this['urlChange$']=_0x78da62(window,_0x1cb5bf(0x290))[_0x1cb5bf(0x23a)](_0x14df6(this[_0x1cb5bf(0x169)]),_0x302ab1(0x1),_0x3c12f0(void 0x0));}[_0x2fb053(0x20b)](_0x298f88,_0x454c45,_0x4744b5=!0x1){const _0x1890ef=_0x2fb053,_0x1b9e61=new URL(window[_0x1890ef(0x159)]['href']);_0x1b9e61['searchParams'][_0x1890ef(0xd8)](_0x298f88,_0x454c45),_0x4744b5?window[_0x1890ef(0x1f3)][_0x1890ef(0x1ba)]('','',_0x1b9e61[_0x1890ef(0x274)]()):window[_0x1890ef(0x1f3)][_0x1890ef(0x211)]('','',_0x1b9e61[_0x1890ef(0x274)]());}[_0x2fb053(0x210)](_0x4920a1,_0xc731d6=!0x1){const _0x594e21=_0x2fb053,_0x330e93=new URL(window[_0x594e21(0x159)][_0x594e21(0x1e3)]);_0x330e93[_0x594e21(0x18a)]['delete'](_0x4920a1),_0xc731d6?window[_0x594e21(0x1f3)][_0x594e21(0x1ba)]('','',_0x330e93[_0x594e21(0x274)]()):window['history']['pushState']('','',_0x330e93[_0x594e21(0x274)]());}[_0x2fb053(0x1c8)](_0x4e9e80){const _0x556e9a=_0x2fb053;var _0x7962b7;return(_0x7962b7=new URL(window['location'][_0x556e9a(0x1e3)])[_0x556e9a(0x18a)][_0x556e9a(0x29d)](_0x4e9e80))!=null?_0x7962b7:void 0x0;}}var Nn=Object[_0x2fb053(0x14e)],Un=Object[_0x2fb053(0x2a3)],Ln=(_0x246c40,_0xbf2538,_0x33992d)=>_0xbf2538 in _0x246c40?Nn(_0x246c40,_0xbf2538,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33992d}):_0x246c40[_0xbf2538]=_0x33992d,Mn=(_0x516b33,_0x4993b8,_0x3511fe,_0x3ec20b)=>{const _0x174b9f=_0x2fb053;for(var _0x3c0ffa=_0x3ec20b>0x1?void 0x0:_0x3ec20b?Un(_0x4993b8,_0x3511fe):_0x4993b8,_0x27b560=_0x516b33[_0x174b9f(0x29e)]-0x1,_0x4fa2e7;_0x27b560>=0x0;_0x27b560--)(_0x4fa2e7=_0x516b33[_0x27b560])&&(_0x3c0ffa=_0x4fa2e7(_0x3c0ffa)||_0x3c0ffa);return _0x3c0ffa;},Ne=(_0xe715cb,_0x4f13a6)=>(_0x42e7fa,_0x247963)=>_0x4f13a6(_0x42e7fa,_0x247963,_0xe715cb),An=(_0x458e4f,_0x57e290,_0x4d200e)=>Ln(_0x458e4f,_0x57e290+'',_0x4d200e);const Pn=_0x2fb053(0x1df);let Fe=class extends _0x52a20c{constructor(_0x1a9d67=at,_0x47edd3,_0x2e9916,_0x28b9b5){const _0x4c2661=_0x2fb053;super(),this[_0x4c2661(0x294)]=_0x1a9d67,this[_0x4c2661(0x187)]=_0x47edd3,this[_0x4c2661(0x292)]=_0x2e9916,this[_0x4c2661(0x1b2)]=_0x28b9b5;const {..._0x2c2832}=_0x5ae167({},at,this[_0x4c2661(0x294)]);this[_0x4c2661(0x1b2)][_0x4c2661(0x1e7)](ln,_0x2c2832);}[_0x2fb053(0x2a9)](){const _0x4bd929=_0x2fb053;this[_0x4bd929(0x242)](),this[_0x4bd929(0x157)]();}['onRendered'](){const _0x1c9d53=_0x2fb053;this[_0x1c9d53(0xc9)]();}[_0x2fb053(0x242)](){const _0x3ecbfd=_0x2fb053;var _0x327075;const _0x283f74=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x233577,{'useClass':_0x449f68}],[_0x3b7e91,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x34b217(this['_injector'],_0xaf92d4(_0x283f74,(_0x327075=this[_0x3ecbfd(0x294)])==null?void 0x0:_0x327075[_0x3ecbfd(0x1ea)]));}['_registerRenderDependencies'](){const _0x5ec93b=_0x2fb053;this[_0x5ec93b(0x23d)](this[_0x5ec93b(0x187)]['registerRenderModule'](_0xfdfacf['UNIVER_DOC'],[$e])),this[_0x5ec93b(0x23d)](this[_0x5ec93b(0x187)]['registerRenderModule'](_0xfdfacf[_0x5ec93b(0x140)],[xe]));}[_0x2fb053(0x157)](){const _0x26208b=_0x2fb053;_0x267a03(this[_0x26208b(0x292)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x2fb053(0x149),Pn),Fe=Mn([_0x21a2ed(_0xe19a85),Ne(0x1,_0x4f1a93),Ne(0x2,_0x1cf148(_0x3e1732)),Ne(0x3,_0x1f9e5b)],Fe);var wn=Object[_0x2fb053(0x2a3)],yn=(_0x4cdef1,_0xf8f24b,_0x248006,_0x550a7c)=>{for(var _0x559e9f=_0x550a7c>0x1?void 0x0:_0x550a7c?wn(_0xf8f24b,_0x248006):_0xf8f24b,_0x3b0c06=_0x4cdef1['length']-0x1,_0x2f3812;_0x3b0c06>=0x0;_0x3b0c06--)(_0x2f3812=_0x4cdef1[_0x3b0c06])&&(_0x559e9f=_0x2f3812(_0x559e9f)||_0x559e9f);return _0x559e9f;},Z=(_0x153a97,_0x301854)=>(_0xccce00,_0x917568)=>_0x301854(_0xccce00,_0x917568,_0x153a97);let _t=class extends _0x21e75a{constructor(_0x1220ff,_0x47044d,_0xb848c6,_0x2454a3,_0x5d2dd0){super(_0x1220ff,_0x47044d,_0xb848c6,_0x2454a3,_0x5d2dd0);}async['createSocket'](_0x192997){const _0x2e0386=_0x2fb053,_0x3b28a4=await this[_0x2e0386(0x2ef)](),_0x6b240d=this[_0x2e0386(0x16f)](_0x192997,_0x3b28a4);return this[_0x2e0386(0x214)](_0x6b240d);}[_0x2fb053(0x16f)](_0xc374a0,_0x2a9c2a){const _0x50da96=_0x2fb053,_0x442848=typeof window>'u'?new URL(_0xc374a0):new URL(_0xc374a0,window['location'][_0x50da96(0x29c)]);_0x442848['searchParams']['set'](_0x50da96(0x1fa),_0x2a9c2a);const _0x55ee82=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x50da96(0x159)][_0x50da96(0x2d4)]);return _0x55ee82[_0x50da96(0x29d)](_0x50da96(0x14b))&&_0x442848[_0x50da96(0x18a)]['set']('runId',_0x55ee82[_0x50da96(0x29d)](_0x50da96(0x14b))),_0x442848[_0x50da96(0x274)]();}async[_0x2fb053(0x2ef)](){const _0x109f22=_0x2fb053;var _0x1d2a86,_0x34721b,_0x50d19c;const _0x406b14=this['_configService']['getConfig'](_0x5ad1cd),_0x5b15d2=(_0x1d2a86=_0x406b14==null?void 0x0:_0x406b14['wsSessionTicketUrl'])!=null?_0x1d2a86:_0x3128f1;return(_0x50d19c=(_0x34721b=(await this[_0x109f22(0xc4)][_0x109f22(0x29d)](_0x5b15d2,{'headers':{'Content-Type':_0x109f22(0x1ee)}}))['body'])==null?void 0x0:_0x34721b['ticket'])!=null?_0x50d19c:'';}};_t=yn([Z(0x0,_0x1cf148(_0x3e1732)),Z(0x1,_0x1cf148(_0x2e9ac4)),Z(0x2,_0x1f9e5b),Z(0x3,_0x238dc1),Z(0x4,_0x174978)],_t);var $n=Object[_0x2fb053(0x2a3)],xn=(_0x236b9c,_0x1af0e4,_0x56c4a2,_0x540206)=>{const _0x586595=_0x2fb053;for(var _0x40a7d5=_0x540206>0x1?void 0x0:_0x540206?$n(_0x1af0e4,_0x56c4a2):_0x1af0e4,_0x180d12=_0x236b9c[_0x586595(0x29e)]-0x1,_0x5878f6;_0x180d12>=0x0;_0x180d12--)(_0x5878f6=_0x236b9c[_0x180d12])&&(_0x40a7d5=_0x5878f6(_0x40a7d5)||_0x40a7d5);return _0x40a7d5;},Ue=(_0x30c52e,_0x1859f6)=>(_0x359ba4,_0x44f55c)=>_0x1859f6(_0x359ba4,_0x44f55c,_0x30c52e);let ht=class extends _0x21676a{constructor(_0x49cd8d,_0x42a963,_0x55f750){const _0x545ff0=_0x2fb053;super(),this[_0x545ff0(0x19d)]=_0x49cd8d,this['_httpService']=_0x42a963,this[_0x545ff0(0x1b2)]=_0x55f750;}async[_0x2fb053(0x2b0)](_0x5e4511,_0x363365,_0x4d46f6,..._0x234580){const _0x3df196=_0x2fb053;var _0x5ef08f,_0x55f007,_0x5dd574,_0x48947b;const _0x274e5d=this[_0x3df196(0x19d)]['getFocusedUnit']();if(!_0x274e5d)throw new Error(_0x3df196(0x19c));const _0x7d828b=((_0x5ef08f=this['_configService'][_0x3df196(0x2b3)](_0x3edb65))!=null?_0x5ef08f:_0x58ba1f)+'/'+_0x5e4511+_0x3df196(0x1b6)+_0x363365,_0x4cd462=new URL(window['location'][_0x3df196(0x1e3)]),_0x5dbe2a={'scriptId':_0x5e4511,'runId':(_0x55f007=_0x4cd462[_0x3df196(0x18a)]['get'](_0x3df196(0x14b)))!=null?_0x55f007:'','function':_0x363365,'unitId':_0x274e5d[_0x3df196(0x2dd)](),'argsOfFunction':JSON[_0x3df196(0x18d)](_0x234580),'invokeId':(_0x5dd574=_0x4d46f6[_0x3df196(0x1f4)])!=null?_0x5dd574:'','executionId':(_0x48947b=_0x4d46f6[_0x3df196(0x249)])!=null?_0x48947b:''};try{const _0x53aa10=await this[_0x3df196(0xc4)][_0x3df196(0x14a)](_0x7d828b,{'body':_0x5dbe2a});return _0x53aa10[_0x3df196(0x252)][_0x3df196(0x1a0)]&&_0x53aa10[_0x3df196(0x252)][_0x3df196(0x1a0)][_0x3df196(0x182)]!==Q['OK']?_0x3df196(0x153):_0x53aa10[_0x3df196(0x252)][_0x3df196(0x230)];}catch{return'Failed';}}};ht=xn([Ue(0x0,_0x265bc4),Ue(0x1,_0x1cf148(_0x2e9ac4)),Ue(0x2,_0x1f9e5b)],ht);const ut=0x7530,dt=_0x2fb053(0x1ef);class ir extends _0x21676a{constructor(){const _0x5ed7d7=_0x2fb053;super(),_(this,_0x5ed7d7(0x1b5),_0x39a9ea()),_(this,'_selfUnitIDs',new Set()),_(this,_0x5ed7d7(0x1da),new Map()),_(this,_0x5ed7d7(0x203),null),_(this,_0x5ed7d7(0x232),new Map()),_(this,_0x5ed7d7(0x25a),new Map()),this['_init']();}[_0x2fb053(0x109)](){const _0x4f914b=_0x2fb053;super[_0x4f914b(0x109)](),this['_clearOtherTimers'][_0x4f914b(0x289)]((_0x2bad82,_0x3566d2)=>this['_removeClearOtherTimer'](_0x3566d2)),this[_0x4f914b(0x203)]&&window['clearInterval'](this[_0x4f914b(0x203)]);}['getUnitStatus$'](_0xee43bc){const _0x4bd133=_0x2fb053;return this[_0x4bd133(0x1c6)](_0xee43bc)['pipe'](_0x5b89ad());}['editingUnit'](_0x3ea262){const _0x55ac45=_0x2fb053;this['_selfUnitIDs']['size']===0x0&&this[_0x55ac45(0xfd)](),this['_selfUnitIDs'][_0x55ac45(0x206)](_0x3ea262),this[_0x55ac45(0x1ca)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3ea262],'isForwarded':!0x1});}[_0x2fb053(0x131)](_0x3315c9){const _0x9ec0ff=_0x2fb053;this['_selfUnitIDs']['delete'](_0x3315c9),this[_0x9ec0ff(0x235)][_0x9ec0ff(0x12a)]===0x0&&this[_0x9ec0ff(0x203)]&&window['clearInterval'](this[_0x9ec0ff(0x203)]);}[_0x2fb053(0x119)](){const _0x599340=_0x2fb053;this['disposeWithMe'](_0x2f72d1(_0x78da62(window,'storage')[_0x599340(0x143)](_0x336a53=>{const _0x19133b=_0x599340;if(_0x336a53[_0x19133b(0x270)]!==dt||!_0x336a53[_0x19133b(0x1bf)])return;const _0x58b8cd=JSON['parse'](_0x336a53[_0x19133b(0x1bf)]);this[_0x19133b(0x171)](_0x58b8cd);}))),window[_0x599340(0x1c3)](_0x599340(0x26f),()=>this['_send']({'type':0x1,'memberID':this[_0x599340(0x1b5)],'unitIDs':Array[_0x599340(0x15b)](this[_0x599340(0x235)])}));}['_handleEvent'](_0x220f20){const _0x45ecd1=_0x2fb053;switch(_0x220f20[_0x45ecd1(0x1c9)]){case 0x0:this[_0x45ecd1(0x20a)](_0x220f20);break;case 0x1:this[_0x45ecd1(0x1cc)](_0x220f20);break;case 0x2:this[_0x45ecd1(0xfe)](_0x220f20);break;}}[_0x2fb053(0x20a)](_0x28b0de){const _0xe68423=_0x2fb053,{unitIDs:_0x11fa3f,memberID:_0x120045,isForwarded:_0x51a691}=_0x28b0de;_0x11fa3f[_0xe68423(0x289)](_0x4ecb2d=>{const _0x29713f=_0xe68423;if(!_0x51a691&&this[_0x29713f(0x1da)][_0x29713f(0x1b3)](_0x4ecb2d)&&this[_0x29713f(0x1c6)](_0x4ecb2d)[_0x29713f(0x220)](_0x3ee666[_0x29713f(0x2cd)]),!this[_0x29713f(0x1da)][_0x29713f(0x1b3)](_0x4ecb2d)||!this['_unitOnClients']['get'](_0x4ecb2d)[_0x29713f(0x1b3)](_0x120045)){const _0x2cc970=this[_0x29713f(0x1da)][_0x29713f(0x29d)](_0x4ecb2d)||new Set();_0x2cc970['add'](_0x120045),this[_0x29713f(0x1da)]['set'](_0x4ecb2d,_0x2cc970),this['_scheduleClearOtherTimer'](_0x120045);}}),_0x51a691||this[_0xe68423(0x1ca)]({'type':0x0,'memberID':this[_0xe68423(0x1b5)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2fb053(0x276)](_0x4e55d3){const _0x29dc27=_0x2fb053;this[_0x29dc27(0x271)](_0x4e55d3);const _0x2bdfcc=window['setTimeout'](()=>{const _0xaf64f9=_0x29dc27;this[_0xaf64f9(0x1da)]['forEach'](_0x454492=>{const _0x173354=_0xaf64f9;_0x454492[_0x173354(0x28c)](_0x4e55d3);});},ut*0x2);this['_clearOtherTimers'][_0x29dc27(0xd8)](_0x4e55d3,_0x2bdfcc);}[_0x2fb053(0x271)](_0xf437d){const _0x3c711f=_0x2fb053;if(this[_0x3c711f(0x232)][_0x3c711f(0x1b3)](_0xf437d)){const _0x44e436=this[_0x3c711f(0x232)][_0x3c711f(0x29d)](_0xf437d);_0x44e436&&window['clearTimeout'](_0x44e436),this[_0x3c711f(0x232)][_0x3c711f(0xd8)](_0xf437d,null);}}[_0x2fb053(0x1cc)](_0xace131){const _0x3ea878=_0x2fb053,{memberID:_0xc4261a,unitIDs:_0x47ff14}=_0xace131;_0x47ff14[_0x3ea878(0x289)](_0x53c8bf=>{const _0x135095=_0x3ea878;var _0x3b9971;const _0x1b1f9c=this[_0x135095(0x1da)][_0x135095(0x29d)](_0x53c8bf);_0x1b1f9c&&(_0x1b1f9c[_0x135095(0x28c)](_0xc4261a),(_0x3b9971=this['_ensureSubject'](_0x53c8bf))==null||_0x3b9971[_0x135095(0x220)](_0x1b1f9c[_0x135095(0x12a)]===0x0?_0x3ee666[_0x135095(0xf9)]:_0x3ee666[_0x135095(0x2cd)]));}),this[_0x3ea878(0x271)](_0xc4261a);}[_0x2fb053(0xfe)](_0x5e62bb){const _0x265804=_0x2fb053;this[_0x265804(0x276)](_0x5e62bb[_0x265804(0x23f)]);}[_0x2fb053(0x1ca)](_0x1cc17d){const _0x101dc0=_0x2fb053;localStorage[_0x101dc0(0x2b5)](dt,JSON[_0x101dc0(0x18d)](_0x1cc17d));}[_0x2fb053(0xfd)](){const _0xc81f23=_0x2fb053;this[_0xc81f23(0x203)]=window[_0xc81f23(0xf3)](()=>{const _0x479a13=_0xc81f23;this[_0x479a13(0x1ca)]({'type':0x2,'memberID':this[_0x479a13(0x1b5)]});},ut);}[_0x2fb053(0x1c6)](_0x3f2fd7){const _0x467339=_0x2fb053;return this[_0x467339(0x25a)][_0x467339(0x1b3)](_0x3f2fd7)||this[_0x467339(0x25a)]['set'](_0x3f2fd7,new _0xf3de79(_0x3ee666[_0x467339(0xf9)])),this[_0x467339(0x25a)][_0x467339(0x29d)](_0x3f2fd7);}}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};
|