@univerjs-pro/collaboration-client-ui 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251213-692494c
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/ja-JP.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/ja-JP.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/ja-JP.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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ec352=_0x437b;(function(_0x533c5d,_0x26e353){const _0xe06bac=_0x437b,_0x479897=_0x533c5d();while(!![]){try{const _0x55442c=-parseInt(_0xe06bac(0x120))/0x1+parseInt(_0xe06bac(0x2d0))/0x2*(parseInt(_0xe06bac(0x2fc))/0x3)+parseInt(_0xe06bac(0x2d6))/0x4*(parseInt(_0xe06bac(0x35b))/0x5)+-parseInt(_0xe06bac(0x109))/0x6+-parseInt(_0xe06bac(0x1d6))/0x7+-parseInt(_0xe06bac(0x346))/0x8+parseInt(_0xe06bac(0x342))/0x9*(parseInt(_0xe06bac(0x25f))/0xa);if(_0x55442c===_0x26e353)break;else _0x479897['push'](_0x479897['shift']());}catch(_0x325f13){_0x479897['push'](_0x479897['shift']());}}}(_0x25ec,0xe45ab));var Yt=Object[_0x3ec352(0x16d)],Wt=(_0xbf55ab,_0x5243bc,_0x287123)=>_0x5243bc in _0xbf55ab?Yt(_0xbf55ab,_0x5243bc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x287123}):_0xbf55ab[_0x5243bc]=_0x287123,_=(_0x15d98f,_0x3bb01c,_0x4eedf1)=>Wt(_0x15d98f,typeof _0x3bb01c!=_0x3ec352(0x32c)?_0x3bb01c+'':_0x3bb01c,_0x4eedf1);import{jsx as _0x520643,jsxs as _0x46b063}from'react/jsx-runtime';import{CollaborationStatus as _0xed7e82,CollaborationSessionService as _0x19842d,CollaborationController as _0x55b9c2,DataLoaderService as _0x55b3a4,MemberService as _0xcda09a,SessionStatus as _0x1f3d15,ILocalCacheService as _0x223ca0,CollaborationUIEventService as _0x1fe96a,CollaborationUIEventId as _0x5a7f32,DocCollaborationEntity as _0x5aa8f0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2fa9c5,getLocalCacheKey as _0x4cf3d4,LOCAL_CACHE_INTERVAL as _0x161007,LOCAL_CACHE_INTERVAL_KEY as _0xb0b56,UniverCollaborationClientPlugin as _0x303e23,CollaborationSocketService as _0xf24f53,DEFAULT_WS_SESSION_TICKET_URL as _0x66e85b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5c50fc,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x38e1dc,UnitStatus as _0x5c1bd0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x498bd0,IUniverInstanceService as _0x5bb534,Inject as _0x4c0fac,Injector as _0x241db3,Disposable as _0xbbfd04,createIdentifier as _0x19144e,ILogService as _0x54cafd,ICommandService as _0x234cad,Optional as _0x2fa6ba,RxDisposable as _0x4e9bf2,Workbook as _0x469424,DOC_RANGE_TYPE as _0x61a77c,debounce as _0x454746,Rectangle as _0xbdc8de,DisposableCollection as _0x3cfaf3,toDisposable as _0x2c5ac1,UniverInstanceType as _0x560022,generateRandomId as _0x1f3cf5,COLORS as _0x3cc9d6,ColorKit as _0x585da0,ThemeService as _0x334c7e,fromEventSubject as _0x4dedaf,Tools as _0x2aaf32,CommandType as _0x2dbe42,IConfigService as _0x305bbd,CanceledError as _0x3316fd,isFormulaString as _0x1136c8,isFormulaId as _0x50cc37,ILocalStorageService as _0x465dbb,DependentOn as _0x584864,Plugin as _0x5d525e,merge as _0x286f03,registerDependencies as _0x5ffac1,mergeOverrideWithDependencies as _0x25bca4,touchDependencies as _0x2983e0}from'@univerjs/core';import{useObservable as _0x270a84,useDependency as _0x18f4a3,IUIPartsService as _0x464485,BuiltInUIPart as _0x5edbb3,connectInjector as _0x48cea3,IBeforeCloseService as _0x488919,IMessageService as _0x12f42d,INotificationService as _0x26656e}from'@univerjs/ui';import{BehaviorSubject as _0x16c712,switchMap as _0x29d1a7,of as _0x4c8a6d,takeUntil as _0x451ca1,debounceTime as _0x1e2f8f,Subject as _0x201adb,filter as _0x11df95,merge as _0x42d0c5,combineLatest as _0x4e3cde,fromEvent as _0x27f9ea,shareReplay as _0x504a7c,mapTo as _0x13be9d,distinctUntilChanged as _0xb831}from'rxjs';import{Tooltip as _0x1a1384,clsx as _0x3067b0,MessageType as _0x5187ea}from'@univerjs/design';import{useRef as _0x2e394a,createElement as _0x44d82c,forwardRef as _0x335a3d,useCallback as _0x11197c}from'react';import{IRemoteInstanceService as _0x43d2e2}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x11be8a,RefRangeService as _0x47b355,SetSelectionsOperation as _0x34681b,SheetsSelectionsService as _0x167a90,EffectRefRangId as _0xf1a21,handleIRemoveRow as _0x3966d1,handleIRemoveCol as _0x283883,handleMoveRange as _0x2a999d,handleInsertRow as _0x2c2b92,handleInsertRangeMoveRight as _0x2aaf9c,handleInsertRangeMoveDown as _0x370511,handleInsertCol as _0x1174ae,handleDeleteRangeMoveUp as _0x19454f,handleDeleteRangeMoveLeft as _0x1e88dd,runRefRangeMutations as _0x33e6ae}from'@univerjs/sheets';import{Shape as _0x2831b2,Rect as _0x2c78d1,getColor as _0x18ff82,RegularPolygon as _0x3e0ab3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x36a1db,Vector2 as _0x533d50,SHEET_VIEWPORT_KEY as _0x509f66,IRenderManagerService as _0x5c6014}from'@univerjs/engine-render';import{HTTPService as _0x90f763,ISocketService as _0x3c33c4,WebSocketService as _0x5d4b34}from'@univerjs/network';import{IDocClipboardService as _0x3200ba,NodePositionConvertToCursor as _0x592cf6,NodePositionConvertToRectRange as _0x622a72,TEXT_RANGE_LAYER_INDEX as _0x5e29a0,SetDocZoomRatioOperation as _0x400b0f,DocIMEInputManagerService as _0x502bd3,DocStateChangeManagerService as _0x234a8a}from'@univerjs/docs-ui';import{IImageIoService as _0x1d5733}from'@univerjs/drawing';import{ITransformService as _0x1d7b40,CollaborationEvent as _0x39fec4,isTransformMutationFailure as _0x50e290,isTransformMutationsWithChangesetSuccess as _0x22b4d1,RevisionService as _0x409ba3,ISnapshotServerService as _0x4a8570}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x57c58c,RichTextEditingMutation as _0x5892c8,DocSelectionManagerService as _0x2c81c4,DocSkeletonManagerService as _0x2f9fae}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3bf6a5,serializeRangeWithSheet as _0x1e0c19,FormulaExecuteStageType as _0x27c50c,FormulaExecutedStateType as _0x290d6f,SetFormulaCalculationStartMutation as _0x27aca5,SetFormulaCalculationNotificationMutation as _0x1bfb73}from'@univerjs/engine-formula';import{map as _0x108aa2,filter as _0x332e97,throttleTime as _0x572a55,takeUntil as _0x4b0b95,switchMap as _0x54129b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x42e4bb,getCoordByCell as _0x5669fa,getSheetObject as _0x5304d4}from'@univerjs/sheets-ui';function Ge({ref:_0x13c045,..._0x3cee28}){const _0x40142c=_0x3ec352,{icon:_0x1bcee4,id:_0x5b88ce,className:_0x4ddb8e,extend:_0x48062,..._0x467449}=_0x3cee28,_0xd08bae=(_0x40142c(0x235)+_0x5b88ce+'\x20'+(_0x4ddb8e||''))[_0x40142c(0x172)](),_0xec868b=_0x2e394a('_'+vi());return At(_0x1bcee4,''+_0x5b88ce,{'defIds':_0x1bcee4[_0x40142c(0x2e2)],'idSuffix':_0xec868b['current']},{'ref':_0x13c045,'className':_0xd08bae,..._0x467449},_0x48062);}function At(_0x2f9a25,_0x20f71d,_0x39f57a,_0x4f2b86,_0x341f46){const _0xeb6309=_0x3ec352;return _0x44d82c(_0x2f9a25[_0xeb6309(0x31c)],{'key':_0x20f71d,...gi(_0x2f9a25,_0x39f57a,_0x341f46),..._0x4f2b86},(Ei(_0x2f9a25,_0x39f57a)['children']||[])['map']((_0x59adcf,_0x5621c0)=>At(_0x59adcf,_0x20f71d+'-'+_0x2f9a25['tag']+'-'+_0x5621c0,_0x39f57a,void 0x0,_0x341f46)));}function gi(_0x12f9ff,_0x363879,_0x4c84d7){const _0x4b4b93=_0x3ec352,_0x245b6a={..._0x12f9ff[_0x4b4b93(0x1e4)]};_0x4c84d7!=null&&_0x4c84d7[_0x4b4b93(0x187)]&&_0x245b6a['fill']==='colorChannel1'&&(_0x245b6a[_0x4b4b93(0x14e)]=_0x4c84d7[_0x4b4b93(0x187)]),_0x12f9ff['tag']===_0x4b4b93(0x327)&&_0x245b6a['id']&&(_0x245b6a['id']=_0x245b6a['id']+_0x363879['idSuffix']),Object['entries'](_0x245b6a)[_0x4b4b93(0x2af)](([_0x14f559,_0x39a56c])=>{const _0x4641fd=_0x4b4b93;_0x14f559===_0x4641fd(0x327)&&typeof _0x39a56c==_0x4641fd(0x252)&&(_0x245b6a[_0x14f559]=_0x39a56c[_0x4641fd(0x195)](/url\(#(.*)\)/,_0x4641fd(0x2db)+_0x363879[_0x4641fd(0x222)]+')'));});const {defIds:_0x56ef42}=_0x363879;return!_0x56ef42||_0x56ef42[_0x4b4b93(0x2ab)]===0x0||(_0x12f9ff[_0x4b4b93(0x31c)]===_0x4b4b93(0x259)&&_0x245b6a[_0x4b4b93(0x23d)]&&(_0x245b6a['xlink:href']=_0x245b6a[_0x4b4b93(0x23d)]+_0x363879['idSuffix']),Object[_0x4b4b93(0x138)](_0x245b6a)['forEach'](([_0x2300c3,_0x136540])=>{const _0xf10007=_0x4b4b93;typeof _0x136540==_0xf10007(0x252)&&(_0x245b6a[_0x2300c3]=_0x136540[_0xf10007(0x195)](/url\(#(.*)\)/,_0xf10007(0x2db)+_0x363879[_0xf10007(0x222)]+')'));})),_0x245b6a;}function Ei(_0x3e026a,_0x5ca611){const _0x1f169e=_0x3ec352;var _0x330f04;const {defIds:_0xa72653}=_0x5ca611;return!_0xa72653||_0xa72653[_0x1f169e(0x2ab)]===0x0?_0x3e026a:_0x3e026a['tag']===_0x1f169e(0x2e0)&&((_0x330f04=_0x3e026a[_0x1f169e(0x1cb)])!=null&&_0x330f04[_0x1f169e(0x2ab)])?{..._0x3e026a,'children':_0x3e026a['children']['map'](_0x1b0338=>typeof _0x1b0338[_0x1f169e(0x1e4)]['id']==_0x1f169e(0x252)&&_0xa72653&&_0xa72653[_0x1f169e(0x1ad)](_0x1b0338[_0x1f169e(0x1e4)]['id'])?{..._0x1b0338,'attrs':{..._0x1b0338[_0x1f169e(0x1e4)],'id':_0x1b0338[_0x1f169e(0x1e4)]['id']+_0x5ca611[_0x1f169e(0x222)]}}:_0x1b0338)}:_0x3e026a;}function vi(){const _0x4e6641=_0x3ec352;return Math[_0x4e6641(0x161)]()[_0x4e6641(0x118)](0x24)[_0x4e6641(0x2ea)](0x2,0x8);}Ge[_0x3ec352(0x1dd)]='UniverIcon';const pi={'tag':_0x3ec352(0x329),'attrs':{'xmlns':_0x3ec352(0x1a8),'fill':_0x3ec352(0x233),'viewBox':_0x3ec352(0x2a9),'width':'1em','height':_0x3ec352(0x257)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x3ec352(0x30e),'d':_0x3ec352(0x2aa),'strokeLinecap':_0x3ec352(0x2a7),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3ec352(0x2e0),'attrs':{},'children':[{'tag':_0x3ec352(0x18a),'attrs':{'id':_0x3ec352(0x2d2)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'fill':'white','d':_0x3ec352(0x298)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x335a3d(function(_0x5d820e,_0x2190fa){const _0x17d29c=_0x3ec352;return _0x44d82c(Ge,Object[_0x17d29c(0x271)]({},_0x5d820e,{'id':_0x17d29c(0x351),'ref':_0x2190fa,'icon':pi}));});Pt[_0x3ec352(0x1dd)]=_0x3ec352(0x2fa);const Oi={'tag':_0x3ec352(0x329),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3ec352(0x233),'viewBox':_0x3ec352(0x292),'width':'1em','height':_0x3ec352(0x257)},'children':[{'tag':'g','attrs':{'clipPath':_0x3ec352(0x250)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'stroke':_0x3ec352(0x30e),'d':_0x3ec352(0x186),'strokeLinecap':_0x3ec352(0x2a7),'strokeLinejoin':_0x3ec352(0x2a7),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3ec352(0x18a),'attrs':{'id':_0x3ec352(0x176)},'children':[{'tag':_0x3ec352(0x131),'attrs':{'fill':_0x3ec352(0x2d7),'d':_0x3ec352(0x298),'transform':_0x3ec352(0x224)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x335a3d(function(_0x478d9e,_0x103084){const _0x2a722d=_0x3ec352;return _0x44d82c(Ge,Object[_0x2a722d(0x271)]({},_0x478d9e,{'id':'on-line-icon','ref':_0x103084,'icon':Oi}));});wt['displayName']=_0x3ec352(0x260);function Ti(_0x31981b){const _0x144dfe=_0x3ec352;switch(_0x31981b){case _0xed7e82[_0x144dfe(0x27b)]:return _0x144dfe(0x1d0);case _0xed7e82[_0x144dfe(0x22a)]:return _0x144dfe(0x234);case _0xed7e82[_0x144dfe(0x158)]:return'collabStatus.fetchMiss';case _0xed7e82[_0x144dfe(0x2a3)]:return _0x144dfe(0x299);case _0xed7e82[_0x144dfe(0x311)]:case _0xed7e82['AWAITING_WITH_PENDING']:return _0x144dfe(0x340);case _0xed7e82[_0x144dfe(0x21e)]:case _0xed7e82[_0x144dfe(0x17f)]:return _0x144dfe(0x1ba);}}function Ci(_0x25628c){const _0x2c8725=_0x3ec352,{status$:_0x38d13}=_0x25628c,_0x2727f5=_0x270a84(_0x38d13,_0xed7e82[_0x2c8725(0x2a3)]),_0x5071bb=_0x18f4a3(_0x498bd0),_0x548cfb=_0x18f4a3(_0x19842d),_0x303cc4=_0x2727f5!==_0xed7e82[_0x2c8725(0x27b)],_0x5302f7=_0x5071bb['t'](Ti(_0x2727f5)),_0x5ae04e=_0x303cc4?_0x520643(wt,{}):_0x520643(Pt,{}),_0x139c4e=_0x11197c(()=>{const _0x450a71=_0x2c8725;_0x303cc4||_0x548cfb[_0x450a71(0x24d)]();},[_0x303cc4,_0x548cfb]);function _0x4a2818(){const _0x4449ad=_0x2c8725;return _0x46b063(_0x4449ad(0x1c9),{'className':_0x4449ad(0x31e),'onClick':_0x139c4e,'children':[_0x520643(_0x4449ad(0x1c9),{'className':_0x3067b0(_0x4449ad(0x21c),{'univer-text-green-500':_0x303cc4,'univer-text-red-500':!_0x303cc4}),'children':_0x5ae04e}),_0x520643(_0x4449ad(0x1c9),{'className':_0x4449ad(0x11c),'children':_0x5302f7})]});}return _0x303cc4?_0x4a2818():_0x520643(_0x1a1384,{'title':_0x5071bb['t'](_0x2c8725(0x16a)),'children':_0x4a2818()});}var Ri=Object[_0x3ec352(0x232)],Di=(_0x5b1b43,_0x4312a4,_0x47068f,_0x2da695)=>{const _0x4564b9=_0x3ec352;for(var _0x4d2768=_0x2da695>0x1?void 0x0:_0x2da695?Ri(_0x4312a4,_0x47068f):_0x4312a4,_0x1fb67d=_0x5b1b43[_0x4564b9(0x2ab)]-0x1,_0x39ae3d;_0x1fb67d>=0x0;_0x1fb67d--)(_0x39ae3d=_0x5b1b43[_0x1fb67d])&&(_0x4d2768=_0x39ae3d(_0x4d2768)||_0x4d2768);return _0x4d2768;},se=(_0x251d7f,_0x789892)=>(_0x370f9b,_0x3960a7)=>_0x789892(_0x370f9b,_0x3960a7,_0x251d7f);let ae=class extends _0xbbfd04{constructor(_0x13e2a5,_0x36f446,_0x2f17de,_0xdb6781){const _0x18e999=_0x3ec352;super(),_(this,_0x18e999(0x2cd),new _0x16c712(_0xed7e82['NOT_COLLAB'])),(this[_0x18e999(0x334)]=_0x13e2a5,this[_0x18e999(0x344)]=_0x36f446,this[_0x18e999(0x354)]=_0x2f17de,this[_0x18e999(0x315)]=_0xdb6781,this['_initStatusComponent'](),this[_0x18e999(0x192)]());}[_0x3ec352(0x192)](){const _0x571370=_0x3ec352;this[_0x571370(0x29b)](this[_0x571370(0x334)][_0x571370(0x2a8)][_0x571370(0x1cf)](_0x29d1a7(()=>{const _0x1f6e46=_0x571370,_0x562c57=this[_0x1f6e46(0x334)][_0x1f6e46(0x274)]();return _0x562c57?this[_0x1f6e46(0x354)][_0x1f6e46(0x294)](_0x562c57[_0x1f6e46(0x15c)]()):_0x4c8a6d(null);}),_0x29d1a7(_0x5a2409=>_0x5a2409?_0x5a2409['status$']:_0x4c8a6d(_0xed7e82[_0x571370(0x2a3)])))[_0x571370(0x261)](_0x309213=>{const _0x20edad=_0x571370;this[_0x20edad(0x2cd)]['next'](_0x309213);}));}[_0x3ec352(0x2ad)](){const _0x35668f=_0x3ec352;this[_0x35668f(0x29b)](this['_uiPartsService']['registerComponent'](_0x5edbb3[_0x35668f(0x2de)],()=>_0x48cea3(Ni({'status$':this['_status$'][_0x35668f(0x2c6)]()}),this[_0x35668f(0x344)])));}};ae=Di([se(0x0,_0x5bb534),se(0x1,_0x4c0fac(_0x241db3)),se(0x2,_0x4c0fac(_0x55b9c2)),se(0x3,_0x464485)],ae);function Ni(_0x405a90){const {status$:_0xbff4bc}=_0x405a90;return function(){return _0x520643(Ci,{'status$':_0xbff4bc});};}function _0x25ec(){const _0x26cd5f=['newValue','_urlService','UNAUTHENTICATED','34607540kGHmsj','OnLineIcon','subscribe','_handleJoinEvent','textRanges','get','?taskId=','RemoveRowCommandId','_getFormulaLimitStatus','_localeService','_heartbeatTimer','_collaborationUIEventService','[Window\x20Error]:\x20','transformStateCache','fillStyle','USERS_LEAVE','_initUserListener','_startSheetCollabCursor','assign','UNIVER_DOC','transformIMECache','getFocusedUnit','REDEMPTION_CODE_HAS_BEEN_CREATED','storage','SNAPSHOT_HAS_BEEN_REMOVED','delete','collab-text-anchor-','getSkeleton','OFFLINE','getMemberID','saveImage','code','_logService','color','_anchor','YUUMI_ASYNCIO_CANCELLED','values','/universer-api/license/formula/limit/start','_cursors','getValue','_dataLoaderService','endRow','getColorFromTheme','filename','_hasFormulaInDirtyRanges','undoState','stringify','then','_pollingInterval','_initCommandInterceptor','NO_OTHER_CLIENTS_EDITING','0\x200\x2017\x2016','InsertRowCommandId','getCollabEntity$','docStateChange$','startColumn','_initUnhandledRejectionListener','M0\x200H16V16H0z','collabStatus.notCollab','loadOfflineData','disposeWithMe','collab-text-range-','resize','addHandlerCallback','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','body','_config','editingUnit','NOT_COLLAB','search','_onRefRangeChange','_docStateChangeManagerService','round','focused$','0\x200\x2016\x2016','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','length','range','_initStatusComponent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','forEach','currentTheme$','ONLINE','with','_registerDependencies','_getAnchorBounding','saveTaskMap','getAncestorScale','skeleton','#FFF','YUUMI_URL_COL_OUT_OF_RANGE','loadUnit','REDEMPTION_CODE_NOT_STARTED','pluginName','_onCursorDelete','send','_taskIds','red.300','_uploadLog','transformMutation','triggerDblclick','getParam','APPLY_REJECT','asObservable','push','collab-rect-range-','_drawTextRange','m1Prime','_docTransformIMECacheService','_backgroundColor','_status$','shift','_scheduleClearOtherTimer','2278zjcesx','_handleHeartbeatEvent','off-line-icon_clip0_910_343','bottom','getCellPositionByOffset','deepClone','4odmKEb','white','drawWith','ENTITLE_COUPON_EXPIRED','getOffsetConfig','url(#$1','totalFormulasToCalculate','EMAIL_VERIFY_CODE_MISMATCH','HEADER_MENU','_initResize','defs','_applyCommand','defIds','SUBMIT_CHANGESET_TIMEOUT','...','backgroundColor','column','roomMembers$','post','clearTimeout','substring','YUUMI_ALL_TABLES_IS_INVALID','_renderManagerService','onPointerMove$','sessionTicket','setItem','AUTHORIZE_CODE_ILLEGAL','jiqing.500','_textBubble','redoState','onPointerEnter$','_saveCache','restore','_entities','executionId','_updateSubUnitFromURLParams','OffLineIcon','MOBILE_HAS_BEEN_BOUND','3114zZjiKN','getVpScrollXYInfoByPosToVp','exhaustSavingTask','ENTITLE_REPORT_LIMIT_EXCEED','_setupBeforeClosingHandler','transformRemoteChangeset','isEditing','max','engine','complete','WECHAT_HAS_BEEN_BOUND','_docSyncEditingCollabCursorService','_toggleOnline','_initEntityListener','APPLY_NON_SEQUENTIAL_REVISION','_document','registerRenderModule','_anchorDot','currentColor','ACTIVE_UNIT_EVENT_CHANNEL','size','AWAITING','getRangePointData','min','assignAColorForMemberID','_uiPartsService','measureText','SNAPSHOT_INVALID_SNAPSHOT','collaboration.offline-data-not-saved','_send','_docSkeleton','session.will-retry','tag','startFormulaLimitUrl','univer-flex\x20univer-items-center','subscribeEvent','_cursorShapes','_refRangeService','setShapeProps','getCollabCursors$','ENTITLE_USE_COUPON_NOT_1ST_TRADE','formula.calculation.started','_checkAndWaitForCalculationPermission','mask','session.connection-failed','svg','COMPLETION_FINISHED','invokeId','symbol','next','REDEMPTION_USER_NOT_ELIGIBLE','_getMergeRange','_entityInit$','_drawAnchor','_themeService','YUUMI_RATE_OVER_LIMIT','_univerInstanceService','_cursor','/universer-api/license/formula/limit/status','ENSURE_SNAPSHOT_EXECUTION','add','addObjects','_render','UNIVER_SHEET','replaceDocRanges','_docClipboardService','_currentUsage','unshift','collabStatus.syncing','cursorInfo','9kZLfoj','APPLY_PERMISSION_DENIED','_injector','YUUMI_NO_CUBOID_FOR_QUESTION','8302968ivfvXR','getUniverSheetInstance','findNodePositionByCharIndex','SOCKET_FAILED_RETRY','_lastResponseTimestamp','onTransformChange$','_beforeCloseService','parse','setParam','registerRefRange','_memberService','off-line-icon','imageSourceType','UPDATE_CURSOR','_collaborationController','searchParams','getActiveSheet','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnhiddenWorksheets','result','getViewport','3626945KHFLfj','getCurrentRevOfUnit','_docTransformStateCacheService','type','8148054vZidMT','INVITE_CODE_ALREADY_BOUND','syncEditingCollabCursor','/run/','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setActiveRange','PAYMENT_CHANNEL_NOT_SUPPORT','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_colorIndex','_collabCursorState$','_init','_docTransformSelectionsService','disposeUnit','Unknown\x20user','INVITE_CODE_HAS_BEEN_UES','toString','lineTo','sheetId','FromArray','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','unit','fillRule','getRenderById','956244hfveFp','_monkeyPatchLogService','key','REDEMPTION_INVALID_CODE','top','CURRENT_STATUS_CANNOT_OPERATE','getItem','addObject','join','saveOfflineData','getSheetId','USER_IS_ANONYMOUS','Error','_color','CONNECTOR_DATA_TOO_LARGE','limitInfo','_context','path','_maxFormulaLimit','INVITE_CODE_REQUIRED','sessionStatus$','_disabled','_transformService','CHANGESET_REVISION_CONFILICT','entries','socket$','_assignedColors','ENTITLE_CAN_NOT_BUY_LOWER_OTP','init','permission.title','executeCommand','unsubscribe','collaboration-client-ui.config','updateOfflineData','height','location','_shapes','PY_RUNTIME_SCRIPT_ERROR','UNRECOGNIZED','INVALID_INVITE_CODE','runId','_roomMembers$','_onCursorUpdate','_transformUndoRedoStack','YUUMI_UNABLE_LOAD_URL','params','fill','_localCacheService','APPLY_DUPLICATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','doc.mutation.rich-text-editing','black','dirtyRanges','ERROR_AGAIN','m2Prime','_configService','FETCH_MISS','all','some','_eventUnsubscribe','getUnitId','_imageIoService','hide','uni.network.url-service','USER_NOT_FOUND','random','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','setUndoRedoMutationParamsCache','text','_scene','[LogService\x20Error]:\x20','setTimeout','closePath','_saveTaskMap','collab-client.tooltip.reconnect','LICENSE_EXPORT_SIZE_EXCEEDED','_syncEditingCollabCursorService','defineProperty','INVALID_ARGUMENT','isArray','INTERNAL_ERROR','_collabCursorController','trim','getTypeOfUnitAdded$','moveTo','_id','on-line-icon_clip0_910_349','has','_instanceService','_getScale','_startDocCollabCursor','Success','removeEventListener','_revisionService','_toggleOffline','PENDING','roomMembers','selection','getMember','_lastPointer','JOIN_ROOM_FAILED','REDEMPTION_USER_REDEEM_TIMES_EXCEED','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','colorChannel1','_hideTimer','labelPosition','clipPath','_localStorageService','[CollaborationDataLoaderController]','_cursorInfo$','name','LOGIN_FAILED','beginPath','unitId','_initStatusListener','_clearPolling','_scheduleSaving','replace','save','_releaseCalculationLimit','_hover','currentSkeleton$','TEXT','error','\x20at\x20','Failed','ENTITLE_INSUFFICIENT_QUOTA','_name','eventID','_scheduleHeartbeat','_hovered','transformSelections','from','LICENSE_IMPORT_SIZE_EXCEEDED','event$','set','http://www.w3.org/2000/svg','UNDEFINED','catch','beforeCommandExecuted','formula.calculation.waiting','includes','ALREADY_EXISTS','colno','_handleLeaveEvent','ticket','_getSheetObject','_updateLocalCursor','isActive','RemoveColCommandId','addClipboardHook','_range','enableFrontendLog','functionsExecutedState','collabStatus.synced','now','yellow.400','EMAIL_HAS_BEEN_BOUND','clearInterval','_drawRectRange','REDEMPTION_CODE_FULLY_REDEEMED','onCommandExecuted','NOT_FOUND','_unitStatus','YUUMI_CONNECTOR_URL_NOT_FOUND','formula.calculation.unable','wsSessionTicketUrl','getStateCache','ranges','div','map','children','_labelPosition','_initWindowErrorListener','createInstance','pipe','collabStatus.offline','MUTATION','_collabSessionService','href','_setFormulaLimitStatus','LOGIN_TOKEN_PROCESSING_FAILED','7566734LMwHOk','subunit','getConfig','show','_colorAssignService','evenodd','fillText','displayName','VIEW_MAIN','_messageService','CLOSE_ROOM','debug','rgba(255,\x20255,\x20255,\x200.01)','transformMutationsWithChangeset','attrs','stack','subUnitId','urlChange$','_initEvent','getUndoRedoMutationParamsCache','setStateCache','_updateURLWithCurrentState','START_CALCULATION','getMergeData','_cachedData','MoveRangeCommandId','_removeClearOtherTimer','stageInfo','unhandledrejection','_checkCalculationAvailable','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','addEventListener','_handleEvent','hovered','setAlpha','DATA_SOURCE_TOO_LARGE','getTypeOfUnitDisposed$','bind','ENTITLE_COUPON_USED_UP','transform','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_online','_session','_handleHover','_showGuardMessage','DeleteRangeMoveUpCommandId','getformulaLimitStatusUrl','data','_sheetSkeletonManagerService','_selfUnitIDs','_removeCollabCursors','USER_NOT_INVITED_CODE','endColumn','getSheetBySheetId','setInterval','collabCursorState$','PERMISSION_DENIED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','width','permission.content','split','session.collaboration-timeout','collaboration.single-unit.warning','Warning','_docSkeletonManagerService','unload','/universer-api/license/formula/limit/done','_refreshCollabCursors','OTHER_CLIENTS_EDITING','getCurrentSelections','univer-mr-2\x20univer-flex\x20univer-text-xl','_httpService','SYNCED','_updateCollabCursors','_startCalculationLimit','toRgbString','idSuffix','getUnitStatus$','translate(.97)','arc','_getSaveTimeout','InsertRangeMoveDownCommandId','requireSession','_setupSubUnitSync','CONFLICT','_notificationService','dispose','message','_transformPreviousActiveRange','APPLY_REVISION_CONFILICT','LICENSE_MAX_UNITS_EXCEEDED','_clearOtherTimers','getOwnPropertyDescriptor','none','collabStatus.conflict','univerjs-icon\x20univerjs-icon-','_draw','_unitOnClients','unitID','replaceState','history','mutations','startRow','xlink:href','_transformHistoryAndStateStack','application/json','origin','RECT','_ensureSubject','REDEMPTION_CODE_INACTIVE','blue.400','entityInit$','maxFormulaLimit','InsertRangeMoveRightCommandId','[Unhandled\x20Rejection]:\x20','contains','memberID','_memberID','dispose$','reconnect','_commandService','row','url(#on-line-icon_clip0_910_349)','_createSocketURL','string','getRelativeToViewportCoord','_collaborationSessionService','LICENSE_DISTRO_REJECTED','onMouseMove','1em','YUUMI_SUBSCRIPTION_NOT_FOUND','use','cursorInfo$','/universer-api/frontend/logs'];_0x25ec=function(){return _0x26cd5f;};return _0x25ec();}const yt=_0x19144e(_0x3ec352(0x15f));var bi=Object[_0x3ec352(0x232)],Li=(_0xd4a5fd,_0x1a0064,_0x4dc3f5,_0xb7f7eb)=>{for(var _0x1d88ec=_0xb7f7eb>0x1?void 0x0:_0xb7f7eb?bi(_0x1a0064,_0x4dc3f5):_0x1a0064,_0x211557=_0xd4a5fd['length']-0x1,_0x9d97e8;_0x211557>=0x0;_0x211557--)(_0x9d97e8=_0xd4a5fd[_0x211557])&&(_0x1d88ec=_0x9d97e8(_0x1d88ec)||_0x1d88ec);return _0x1d88ec;},K=(_0x3d1655,_0x39ef9c)=>(_0x35c2d3,_0x173f97)=>_0x39ef9c(_0x35c2d3,_0x173f97,_0x3d1655);let ce=class extends _0x4e9bf2{constructor(_0x470534,_0x403277,_0x406099,_0x4a3853,_0x58b8d2){const _0x51dd33=_0x3ec352;super(),this['_urlService']=_0x470534,this[_0x51dd33(0x27f)]=_0x403277,this[_0x51dd33(0x24e)]=_0x406099,this['_dataLoaderService']=_0x4a3853,_0x58b8d2?_0x58b8d2==null||_0x58b8d2['whenReady']()[_0x51dd33(0x28e)](()=>this['_init']()):(this[_0x51dd33(0x27f)][_0x51dd33(0x1e1)](_0x51dd33(0x18c),_0x51dd33(0x2ae)),this[_0x51dd33(0x113)]());}async['_init'](){const _0x4a937c=_0x3ec352,_0x368a00=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)](_0x4a937c(0x11d)),_0x2eeeec=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)](_0x4a937c(0x35e)),_0x5e272a=this[_0x4a937c(0x25d)][_0x4a937c(0x2c4)]('subunit');if(!_0x368a00||!_0x2eeeec){this[_0x4a937c(0x27f)][_0x4a937c(0x1e1)]('[CollaborationDataLoaderController]',_0x4a937c(0x357));return;}const _0x181d36=await this[_0x4a937c(0x287)][_0x4a937c(0x2ba)](_0x368a00,Number(_0x2eeeec),_0x5e272a);_0x181d36&&_0x181d36 instanceof _0x469424&&this[_0x4a937c(0x229)](_0x181d36);}async[_0x3ec352(0x229)](_0x5b5b92){const _0xe7180d=_0x3ec352;await this['_updateSubUnitFromURLParams'](_0x5b5b92),_0x5b5b92['activeSheet$']['pipe'](_0x451ca1(this[_0xe7180d(0x24c)]))[_0xe7180d(0x261)](_0xdd9e22=>{const _0x56a313=_0xe7180d;_0xdd9e22&&this[_0x56a313(0x1eb)](_0xdd9e22);}),this[_0xe7180d(0x25d)][_0xe7180d(0x1e7)][_0xe7180d(0x1cf)](_0x451ca1(this[_0xe7180d(0x24c)]))['subscribe'](()=>this[_0xe7180d(0x2f9)](_0x5b5b92));}[_0x3ec352(0x1eb)](_0x1bb1d9,_0x4a1ca9=!0x1){const _0x507946=_0x3ec352,_0x179c2b=this[_0x507946(0x25d)]['getParam'](_0x507946(0x1d7));_0x1bb1d9[_0x507946(0x12a)]()!==_0x179c2b&&this['_urlService'][_0x507946(0x34e)](_0x507946(0x1d7),_0x1bb1d9[_0x507946(0x12a)](),_0x4a1ca9);}async[_0x3ec352(0x2f9)](_0x61522c){const _0x199bd2=_0x3ec352;var _0x4a231b;const _0x3796fe=this[_0x199bd2(0x25d)]['getParam'](_0x199bd2(0x1d7));if(!_0x3796fe||!_0x61522c[_0x199bd2(0x20b)](_0x3796fe)){const _0x55da6b=_0x61522c[_0x199bd2(0x358)]()[0x0],_0x134f1a=_0x61522c[_0x199bd2(0x20b)](_0x55da6b);if(!_0x134f1a)return;this['_updateURLWithCurrentState'](_0x134f1a,!0x0),await this['_commandService'][_0x199bd2(0x13e)](_0x11be8a['id'],{'unitId':_0x61522c[_0x199bd2(0x15c)](),'subUnitId':_0x55da6b});return;}((_0x4a231b=_0x61522c[_0x199bd2(0x356)]())==null?void 0x0:_0x4a231b[_0x199bd2(0x12a)]())!==_0x3796fe&&await this['_commandService'][_0x199bd2(0x13e)](_0x11be8a['id'],{'unitId':_0x61522c['getUnitId'](),'subUnitId':_0x3796fe});}};ce=Li([K(0x0,yt),K(0x1,_0x54cafd),K(0x2,_0x234cad),K(0x3,_0x4c0fac(_0x55b3a4)),K(0x4,_0x2fa6ba(_0x43d2e2))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x49d543,_0xcda593,_0x58fc7d,_0x10c688)=>{const _0x37fb66=_0x3ec352;for(var _0x4202b6=_0x10c688>0x1?void 0x0:_0x10c688?Ui(_0xcda593,_0x58fc7d):_0xcda593,_0x8fe33f=_0x49d543[_0x37fb66(0x2ab)]-0x1,_0x42e3e3;_0x8fe33f>=0x0;_0x8fe33f--)(_0x42e3e3=_0x49d543[_0x8fe33f])&&(_0x4202b6=_0x42e3e3(_0x4202b6)||_0x4202b6);return _0x4202b6;},rt=(_0x4b0b51,_0x2ed4d2)=>(_0x8b13c8,_0x3217c7)=>_0x2ed4d2(_0x8b13c8,_0x3217c7,_0x4b0b51);let $e=class extends _0x4e9bf2{constructor(_0x5ce3e1,_0x55a491){const _0x3a4f0a=_0x3ec352;super(),this[_0x3a4f0a(0x33d)]=_0x5ce3e1,this[_0x3a4f0a(0x15d)]=_0x55a491,this[_0x3a4f0a(0x113)]();}[_0x3ec352(0x113)](){const _0x537fde=_0x3ec352,_0x517a6e=this;this[_0x537fde(0x29b)](this[_0x537fde(0x33d)][_0x537fde(0x1b6)]({'onBeforePasteImage':async _0x43bb3e=>{const _0x3e77ee=_0x537fde,_0x8b13a2=await _0x517a6e[_0x3e77ee(0x15d)][_0x3e77ee(0x27d)](_0x43bb3e);return _0x8b13a2?{'source':_0x8b13a2['source'],'imageSourceType':_0x8b13a2[_0x3e77ee(0x352)]}:null;}}));}};$e=Mi([rt(0x0,_0x3200ba),rt(0x1,_0x1d5733)],$e);const ot=['purple.300',_0x3ec352(0x2f1),'green.600',_0x3ec352(0x2c0),_0x3ec352(0x244),_0x3ec352(0x1bc)];class Ke extends _0xbbfd04{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x3ec352(0x314)](_0x35bcf1){const _0x4c973d=_0x3ec352;if(this[_0x4c973d(0x13a)]['has'](_0x35bcf1))return this[_0x4c973d(0x13a)][_0x4c973d(0x264)](_0x35bcf1);const _0x4f52b8=ot[this['_colorIndex']];return this[_0x4c973d(0x111)]=(this[_0x4c973d(0x111)]+0x1)%ot[_0x4c973d(0x2ab)],this[_0x4c973d(0x13a)]['set'](_0x35bcf1,_0x4f52b8),_0x4f52b8;}}function $t(_0x40ece6){let _0x4ec171='';for(const _0x588875 of _0x40ece6){const {startOffset:_0x5cffd6,endOffset:_0x1dae30,isActive:_0x491f73,rangeType:_0x4eb3d8,segmentId:_0x171166,segmentPage:_0x287d62}=_0x588875;_0x4ec171['length']&&(_0x4ec171+=','),_0x4ec171+=_0x5cffd6+':'+_0x1dae30+':'+(_0x491f73?'1':'0')+':'+_0x4eb3d8+':'+_0x171166+':'+_0x287d62;}return _0x4ec171;}function Ai(_0x47b824){const _0x225a54=_0x3ec352,_0x25269d=_0x47b824[_0x225a54(0x212)](','),_0x272c3e=[];for(const _0x5a86ef of _0x25269d){const [_0x1f412d,_0xb370e1,_0x220d85,_0x3e537f,_0x499984,_0x45b876]=_0x5a86ef[_0x225a54(0x212)](':');_0x272c3e['push']({'startOffset':Number(_0x1f412d),'endOffset':Number(_0xb370e1),'collapsed':_0x1f412d===_0xb370e1,'isActive':_0x220d85==='1','rangeType':_0x3e537f===_0x61a77c[_0x225a54(0x19a)]?_0x61a77c[_0x225a54(0x19a)]:_0x61a77c[_0x225a54(0x241)],'segmentId':typeof _0x499984==_0x225a54(0x252)?String(_0x499984):'','segmentPage':Number(_0x45b876!=null?_0x45b876:-0x1)});}return _0x272c3e[_0x225a54(0x15a)](_0x4cffc5=>_0x4cffc5[_0x225a54(0x1b4)])||(_0x272c3e[0x0][_0x225a54(0x1b4)]=!0x0),_0x272c3e;}class ze extends _0x4e9bf2{constructor(){const _0x5bf69c=_0x3ec352;super(...arguments),_(this,_0x5bf69c(0x112),new _0x16c712(null)),_(this,_0x5bf69c(0x20d),this[_0x5bf69c(0x112)]['asObservable']());}[_0x3ec352(0x10b)](_0x3843d0){const {unitID:_0x552898,memberID:_0x53dba5,textRanges:_0x35901b}=_0x3843d0,_0x277318=$t(_0x35901b);if(_0x277318==='')return;const _0x294ec0={'unitID':_0x552898,'memberID':_0x53dba5,'selection':_0x277318};this['_collabCursorState$']['next'](_0x294ec0);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x148e1e,_0x3b2c56,_0x20b0c6,_0x2a7ad8)=>{const _0x395e57=_0x3ec352;for(var _0x5dc670=_0x2a7ad8>0x1?void 0x0:_0x2a7ad8?Pi(_0x3b2c56,_0x20b0c6):_0x3b2c56,_0x454573=_0x148e1e[_0x395e57(0x2ab)]-0x1,_0x45c127;_0x454573>=0x0;_0x454573--)(_0x45c127=_0x148e1e[_0x454573])&&(_0x5dc670=_0x45c127(_0x5dc670)||_0x5dc670);return _0x5dc670;},A=(_0x4ac9ee,_0x335bd9)=>(_0x57a6b9,_0x52dffc)=>_0x335bd9(_0x57a6b9,_0x52dffc,_0x4ac9ee);const yi=0x12c,$i=0x64;let xe=class extends _0x4e9bf2{constructor(_0x455843,_0x3f7856,_0x32e282,_0x562be0,_0x2f7414,_0x5a4435,_0x410504,_0x575f69,_0x3c76e2){const _0x1bc176=_0x3ec352;super(),_(this,_0x1bc176(0x1ff),!0x1),_(this,'_init',!0x1),_(this,_0x1bc176(0x18d),new _0x16c712(new Map())),_(this,_0x1bc176(0x25a),this[_0x1bc176(0x18d)]['asObservable']()),_(this,_0x1bc176(0x149),new _0x16c712([])),_(this,_0x1bc176(0x2e7),this[_0x1bc176(0x149)][_0x1bc176(0x1cf)](_0x1e2f8f(yi))),_(this,'_updateLocalCursor',_0x454746(_0x954021=>{const _0xaf508c=_0x1bc176,_0x4fac75={'eventID':_0x39fec4[_0xaf508c(0x353)],'data':{'unitID':this[_0xaf508c(0x238)],'memberID':this[_0xaf508c(0x200)][_0xaf508c(0x27c)](),'selection':$t(_0x954021)}};this['_session'][_0xaf508c(0x2be)](_0x4fac75,this[_0xaf508c(0x238)]);},$i)),(this['unitID']=_0x455843,this['_session']=_0x3f7856,this[_0x1bc176(0x344)]=_0x32e282,this[_0x1bc176(0x1da)]=_0x562be0,this['_memberService']=_0x2f7414,this[_0x1bc176(0x16c)]=_0x5a4435,this[_0x1bc176(0x136)]=_0x410504,this[_0x1bc176(0x334)]=_0x575f69,this[_0x1bc176(0x24e)]=_0x3c76e2);}get[_0x3ec352(0x341)](){const _0x35e335=_0x3ec352;return this[_0x35e335(0x18d)]['getValue']();}get[_0x3ec352(0x180)](){const _0x10be6f=_0x3ec352;return this[_0x10be6f(0x149)][_0x10be6f(0x286)]();}['dispose'](){const _0x2d7c92=_0x3ec352;super[_0x2d7c92(0x22c)](),this[_0x2d7c92(0x18d)][_0x2d7c92(0x32d)](new Map()),this['_cursorInfo$'][_0x2d7c92(0x305)](),this[_0x2d7c92(0x149)][_0x2d7c92(0x32d)]([]),this[_0x2d7c92(0x149)][_0x2d7c92(0x305)]();}['init'](){const _0x3f6f75=_0x3ec352;this['_init']||(this[_0x3f6f75(0x113)]=!0x0,this[_0x3f6f75(0x200)][_0x3f6f75(0x134)][_0x3f6f75(0x1cf)](_0x451ca1(this[_0x3f6f75(0x24c)]))[_0x3f6f75(0x261)](_0x18d3f6=>{const _0x5d4705=_0x3f6f75;_0x18d3f6===_0x1f3d15[_0x5d4705(0x2b1)]?this['_toggleOnline']():this[_0x5d4705(0x17e)]();}),this[_0x3f6f75(0x200)][_0x3f6f75(0x1a6)][_0x3f6f75(0x1cf)](_0x451ca1(this['dispose$']))[_0x3f6f75(0x261)](_0x571606=>{const _0x318c52=_0x3f6f75,_0x48d8e1=_0x571606['eventID'];_0x48d8e1===_0x39fec4[_0x318c52(0x353)]&&this[_0x318c52(0x14a)](_0x571606),_0x48d8e1===_0x39fec4[_0x318c52(0x26e)]&&this[_0x318c52(0x2bd)](_0x571606);}),this[_0x3f6f75(0x29b)](this[_0x3f6f75(0x24e)][_0x3f6f75(0x1c1)](_0x35bbe7=>{const _0x2690b1=_0x3f6f75,_0x5d0877=_0x35bbe7[_0x2690b1(0x14d)];_0x5d0877!=null&&this[_0x2690b1(0x1ff)]&&_0x35bbe7['id']===_0x57c58c['id']&&_0x5d0877[_0x2690b1(0x191)]===this['unitID']&&_0x5d0877[_0x2690b1(0x302)]===!0x1&&_0x5d0877['ranges']['length']>0x0&&this[_0x2690b1(0x1b3)](_0x5d0877[_0x2690b1(0x1c8)]);})),this[_0x3f6f75(0x16c)][_0x3f6f75(0x20d)][_0x3f6f75(0x1cf)](_0x451ca1(this[_0x3f6f75(0x24c)]))[_0x3f6f75(0x261)](_0xf28b78=>{const _0x598453=_0x3f6f75;if((_0xf28b78==null?void 0x0:_0xf28b78[_0x598453(0x238)])!==this[_0x598453(0x238)])return;const _0x534e3f={'eventID':_0x39fec4['UPDATE_CURSOR'],'data':_0xf28b78};this[_0x598453(0x14a)](_0x534e3f);}),this[_0x3f6f75(0x29b)](this[_0x3f6f75(0x24e)][_0x3f6f75(0x1c1)](_0x11aed7=>{const _0x313358=_0x3f6f75;if(_0x11aed7[_0x313358(0x14d)]==null)return;const _0x2d8d38=_0x11aed7[_0x313358(0x14d)];if(_0x11aed7['id']!==_0x5892c8['id']||_0x2d8d38['unitId']!==this[_0x313358(0x238)])return;const _0x9a2375={'id':_0x313358(0x152),'params':_0x2d8d38},_0x7489e2=this[_0x313358(0x341)];for(const [_0x40b57f,_0x58644e]of _0x7489e2){const _0x390803={'id':_0x313358(0x152),'params':{'unitId':this[_0x313358(0x238)],'actions':null,'textRanges':_0x58644e['ranges']}},_0x463073=this['_transformService'][_0x313358(0x2c2)](_0x9a2375,_0x390803,!0x1);if(_0x50e290(_0x463073))throw _0x463073[_0x313358(0x19b)];_0x7489e2['set'](_0x40b57f,{..._0x58644e,'ranges':_0x463073[_0x313358(0x156)]['params'][_0x313358(0x263)]});}queueMicrotask(()=>{const _0x5f3446=_0x313358;this['_cursorInfo$'][_0x5f3446(0x32d)](_0x7489e2);});})));}[_0x3ec352(0x14a)](_0x22b86e){const _0x3b5a21=_0x3ec352;var _0x3c359e,_0x2bee0e;const {memberID:_0x5bbde6,selection:_0x3ea2b6}=_0x22b86e[_0x3b5a21(0x205)],_0x55931a=Ai(_0x3ea2b6),_0x45802f=(_0x2bee0e=(_0x3c359e=this[_0x3b5a21(0x350)][_0x3b5a21(0x182)](this['unitID'],_0x5bbde6))==null?void 0x0:_0x3c359e[_0x3b5a21(0x18e)])!=null?_0x2bee0e:_0x3b5a21(0x116),_0x3e1001={'color':this['_colorAssignService'][_0x3b5a21(0x314)](_0x5bbde6),'name':_0x45802f,'ranges':_0x55931a},_0x5dcf4c=this[_0x3b5a21(0x341)];_0x5dcf4c[_0x3b5a21(0x1a7)](_0x5bbde6,_0x3e1001),this[_0x3b5a21(0x18d)]['next'](_0x5dcf4c);}[_0x3ec352(0x2bd)](_0x4514cd){const _0x3ffd47=_0x3ec352,{memberID:_0xcd9177}=_0x4514cd[_0x3ffd47(0x205)],_0x59451f=this[_0x3ffd47(0x341)];_0x59451f[_0x3ffd47(0x278)](_0xcd9177),this[_0x3ffd47(0x18d)]['next'](_0x59451f);}[_0x3ec352(0x308)](){const _0x509ae3=_0x3ec352;var _0x4c4d9a;if(this[_0x509ae3(0x1ff)]=!0x0,((_0x4c4d9a=this[_0x509ae3(0x334)]['getFocusedUnit']())==null?void 0x0:_0x4c4d9a[_0x509ae3(0x15c)]())!==this['unitID'])return;const _0x1774ea=this['_injector'][_0x509ae3(0x264)](_0x2c81c4)['getDocRanges']();Array[_0x509ae3(0x16f)](_0x1774ea)&&_0x1774ea[_0x509ae3(0x2ab)]>0x0&&this[_0x509ae3(0x1b3)](_0x1774ea);}[_0x3ec352(0x17e)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x4c0fac(_0x241db3)),A(0x3,_0x4c0fac(Ke)),A(0x4,_0x4c0fac(_0xcda09a)),A(0x5,_0x4c0fac(ze)),A(0x6,_0x1d7b40),A(0x7,_0x5bb534),A(0x8,_0x234cad)],xe);var xi=Object[_0x3ec352(0x232)],Bi=(_0x458361,_0x77e7b,_0x58b2e8,_0x2e43b4)=>{for(var _0x219891=_0x2e43b4>0x1?void 0x0:_0x2e43b4?xi(_0x77e7b,_0x58b2e8):_0x77e7b,_0x1dfa8c=_0x458361['length']-0x1,_0x476027;_0x1dfa8c>=0x0;_0x1dfa8c--)(_0x476027=_0x458361[_0x1dfa8c])&&(_0x219891=_0x476027(_0x219891)||_0x219891);return _0x219891;},B=(_0x5ccf8e,_0x2bed96)=>(_0x2501ee,_0xd0f676)=>_0x2bed96(_0x2501ee,_0xd0f676,_0x5ccf8e);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x172bd2=[],_0x5d42cb=!0x1;return _0x90d159=>{_0x172bd2['push'](_0x90d159),_0x5d42cb||(_0x5d42cb=!0x0,setTimeout(()=>{_0x172bd2['forEach'](_0x156dd7=>_0x156dd7()),_0x172bd2=[],_0x5d42cb=!0x1;}));};};let Be=class extends _0x4e9bf2{constructor(_0x10b75b,_0x15d919,_0x4182e9,_0x38d8a1,_0x3cf58b,_0x5b1fd5,_0x5d28ff,_0x22b031){const _0x391bb3=_0x3ec352;super(),_(this,_0x391bb3(0x1ff),!0x1),_(this,_0x391bb3(0x113),!0x1),_(this,'_cursorInfo$',new _0x16c712(new Map())),_(this,_0x391bb3(0x25a),this[_0x391bb3(0x18d)][_0x391bb3(0x2c6)]()),_(this,'_roomMembers$',new _0x16c712([])),_(this,'roomMembers$',this[_0x391bb3(0x149)][_0x391bb3(0x1cf)](_0x1e2f8f(Fi))),_(this,_0x391bb3(0x1b3),_0x454746((_0x420d69,_0x37618a)=>{const _0xff71a6=_0x391bb3,_0x4d22ac={'eventID':_0x39fec4[_0xff71a6(0x353)],'data':{'unitID':this['unitID'],'memberID':this[_0xff71a6(0x200)][_0xff71a6(0x27c)](),'selection':_0x1e0c19(_0x420d69,_0x37618a[_0xff71a6(0x2ac)])}};this['_session']['send'](_0x4d22ac,this[_0xff71a6(0x238)]);},ki)),(this['unitID']=_0x10b75b,this[_0x391bb3(0x200)]=_0x15d919,this[_0x391bb3(0x344)]=_0x4182e9,this['_colorAssignService']=_0x38d8a1,this[_0x391bb3(0x350)]=_0x3cf58b,this[_0x391bb3(0x334)]=_0x5b1fd5,this['_commandService']=_0x5d28ff,this[_0x391bb3(0x321)]=_0x22b031);}get[_0x3ec352(0x341)](){const _0x44b1be=_0x3ec352;return this[_0x44b1be(0x18d)][_0x44b1be(0x286)]();}get[_0x3ec352(0x180)](){const _0x46671b=_0x3ec352;return this['_roomMembers$'][_0x46671b(0x286)]();}['dispose'](){const _0x3c05a3=_0x3ec352;super[_0x3c05a3(0x22c)](),this['_cursorInfo$'][_0x3c05a3(0x32d)](new Map()),this[_0x3c05a3(0x18d)][_0x3c05a3(0x305)](),this[_0x3c05a3(0x149)][_0x3c05a3(0x32d)]([]),this[_0x3c05a3(0x149)][_0x3c05a3(0x305)]();}[_0x3ec352(0x13c)](){const _0x2fe68f=_0x3ec352;this[_0x2fe68f(0x113)]||(this[_0x2fe68f(0x113)]=!0x0,this[_0x2fe68f(0x200)][_0x2fe68f(0x134)]['pipe'](_0x451ca1(this[_0x2fe68f(0x24c)]))[_0x2fe68f(0x261)](_0x38f03d=>{const _0x239881=_0x2fe68f;_0x38f03d===_0x1f3d15[_0x239881(0x2b1)]?this[_0x239881(0x308)]():this['_toggleOffline']();}),this[_0x2fe68f(0x200)][_0x2fe68f(0x1a6)][_0x2fe68f(0x1cf)](_0x451ca1(this['dispose$']))[_0x2fe68f(0x261)](_0x14caa0=>{const _0x379dab=_0x2fe68f,_0x168fb5=_0x14caa0[_0x379dab(0x1a0)];_0x168fb5===_0x39fec4[_0x379dab(0x353)]&&this[_0x379dab(0x14a)](_0x14caa0),_0x168fb5===_0x39fec4[_0x379dab(0x26e)]&&this[_0x379dab(0x2bd)](_0x14caa0);}),this[_0x2fe68f(0x2a5)](),this['disposeWithMe'](this[_0x2fe68f(0x24e)][_0x2fe68f(0x1c1)](_0x153a58=>{const _0x2fc93e=_0x2fe68f;if(this['_online']&&_0x153a58['id']===_0x34681b['id']&&_0x153a58[_0x2fc93e(0x14d)]['unitId']===this[_0x2fc93e(0x238)]){const _0x6d0087=_0x153a58['params'];this[_0x2fc93e(0x1b3)](_0x6d0087[_0x2fc93e(0x1e6)],_0x6d0087['selections'][0x0]);}})));}['_onCursorUpdate'](_0x17d366){const _0x5e9476=_0x3ec352;var _0x2e37c7,_0x291840;const {memberID:_0x471442,selection:_0x53244b}=_0x17d366[_0x5e9476(0x205)],{sheetName:_0x5ac267,range:_0x4600a3}=_0x3bf6a5(_0x53244b),_0xc4b085={'name':(_0x291840=(_0x2e37c7=this['_memberService']['getMember'](this[_0x5e9476(0x238)],_0x471442))==null?void 0x0:_0x2e37c7[_0x5e9476(0x18e)])!=null?_0x291840:_0x5e9476(0x116),'range':this[_0x5e9476(0x32f)](_0x5ac267,_0x4600a3),'sheetID':_0x5ac267,'color':this[_0x5e9476(0x1da)][_0x5e9476(0x314)](_0x471442),'selection':_0x53244b},_0x29b30b=this[_0x5e9476(0x341)];_0x29b30b['set'](_0x471442,_0xc4b085),this['_cursorInfo$']['next'](_0x29b30b);}[_0x3ec352(0x2bd)](_0x5c4f5b){const _0x353d3c=_0x3ec352,{memberID:_0x45e164}=_0x5c4f5b[_0x353d3c(0x205)],_0xf87a9=this[_0x353d3c(0x341)];_0xf87a9[_0x353d3c(0x278)](_0x45e164),this[_0x353d3c(0x18d)]['next'](_0xf87a9);}['_getMergeRange'](_0x529051,_0x5c391a){const _0x2956ba=_0x3ec352;var _0x4ac10a,_0x107dad;const _0x3ad84e=(_0x107dad=(_0x4ac10a=this['_univerInstanceService'][_0x2956ba(0x347)](this['unitID']))==null?void 0x0:_0x4ac10a[_0x2956ba(0x20b)](_0x529051))==null?void 0x0:_0x107dad[_0x2956ba(0x1ed)]();return(_0x3ad84e==null?void 0x0:_0x3ad84e['find'](_0x7a82fb=>_0xbdc8de[_0x2956ba(0x249)](_0x7a82fb,_0x5c391a)))||_0x5c391a;}[_0x3ec352(0x2a5)](){const _0x4d687a=_0x3ec352,_0xd54a42=new _0x3cfaf3(),_0x356417=Hi(),_0x286293=()=>{const _0x612a56=_0x437b;_0xd54a42[_0x612a56(0x22c)]();const _0x3b28a1=(_0x1d08ee,_0x42db46,_0x45651b,_0x420fd5)=>{const _0x431a34=_0x612a56;let _0x411426=[];switch(_0x1d08ee['id']){case _0xf1a21['DeleteRangeMoveLeftCommandId']:{_0x411426=_0x1e88dd(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x203)]:{_0x411426=_0x19454f(_0x1d08ee,_0x420fd5);break;}case _0xf1a21['InsertColCommandId']:{_0x411426=_0x1174ae(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x227)]:{_0x411426=_0x370511(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x247)]:{_0x411426=_0x2aaf9c(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x293)]:{_0x411426=_0x2c2b92(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x1ef)]:{_0x411426=_0x2a999d(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x1b5)]:{_0x411426=_0x283883(_0x1d08ee,_0x420fd5);break;}case _0xf1a21[_0x431a34(0x266)]:{_0x411426=_0x3966d1(_0x1d08ee,_0x420fd5);break;}}const _0x4c5a81=_0x33e6ae(_0x411426,_0x420fd5),_0x56f45e=this[_0x431a34(0x341)][_0x431a34(0x264)](_0x42db46);if(_0x56f45e&&_0x4c5a81){const _0x2cc87f={..._0x56f45e,'range':_0x4c5a81};this['cursorInfo']['set'](_0x42db46,_0x2cc87f),_0x356417(()=>{const _0x55ddc4=_0x431a34,_0x2b46df=this[_0x55ddc4(0x321)][_0x55ddc4(0x34f)](_0x4c5a81,_0xdc14ff=>(_0x2b46df['dispose'](),_0x3b28a1(_0xdc14ff,_0x42db46,_0x45651b,_0x4c5a81)));_0xd54a42[_0x55ddc4(0x338)](_0x2b46df);});}return{'redos':[],'undos':[]};};this[_0x612a56(0x341)]['forEach']((_0x374efe,_0x5c5e4e)=>{const _0x42e039=_0x612a56,{range:_0x4e205a,sheetID:_0x3cf1ed}=_0x374efe,_0x581106=this['_refRangeService'][_0x42e039(0x34f)](_0x4e205a,_0x380c94=>(_0x581106[_0x42e039(0x22c)](),_0x3b28a1(_0x380c94,_0x5c5e4e,_0x3cf1ed,_0x4e205a)));_0xd54a42[_0x42e039(0x338)](_0x581106);});};this[_0x4d687a(0x29b)](_0x2c5ac1(this[_0x4d687a(0x18d)][_0x4d687a(0x261)](()=>{_0x286293();})));}[_0x3ec352(0x308)](){const _0x4862ed=_0x3ec352;var _0x41de80,_0x1c3fa8;if(this[_0x4862ed(0x1ff)]=!0x0,((_0x41de80=this[_0x4862ed(0x334)]['getFocusedUnit']())==null?void 0x0:_0x41de80[_0x4862ed(0x15c)]())!==this['unitID'])return;const _0x5d50a7=(_0x1c3fa8=this[_0x4862ed(0x344)][_0x4862ed(0x264)](_0x167a90)[_0x4862ed(0x21b)]())==null?void 0x0:_0x1c3fa8[0x0],_0x1795f1=this[_0x4862ed(0x334)]['getCurrentUnitForType'](_0x560022[_0x4862ed(0x33b)])[_0x4862ed(0x356)]();_0x5d50a7&&_0x1795f1&&this[_0x4862ed(0x1b3)](_0x1795f1[_0x4862ed(0x12a)](),_0x5d50a7);}[_0x3ec352(0x17e)](){const _0x1ecc11=_0x3ec352;this[_0x1ecc11(0x1ff)]=!0x1;}};Be=Bi([B(0x2,_0x4c0fac(_0x241db3)),B(0x3,_0x4c0fac(Ke)),B(0x4,_0x4c0fac(_0xcda09a)),B(0x5,_0x5bb534),B(0x6,_0x234cad),B(0x7,_0x4c0fac(_0x47b355))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x42c416,_0x1fe2ce,_0x1bde4e,_0x5cc64c)=>{const _0x5b26f5=_0x3ec352;for(var _0x1cef80=_0x5cc64c>0x1?void 0x0:_0x5cc64c?Yi(_0x1fe2ce,_0x1bde4e):_0x1fe2ce,_0x233bc3=_0x42c416[_0x5b26f5(0x2ab)]-0x1,_0x91fa9e;_0x233bc3>=0x0;_0x233bc3--)(_0x91fa9e=_0x42c416[_0x233bc3])&&(_0x1cef80=_0x91fa9e(_0x1cef80)||_0x1cef80);return _0x1cef80;},Ce=(_0xd6a030,_0x22cd99)=>(_0x5a1563,_0x549f3c)=>_0x22cd99(_0x5a1563,_0x549f3c,_0xd6a030);let H=class extends _0x4e9bf2{constructor(_0x2a2840,_0xe58774,_0x5ab5c2){const _0x5e9ef7=_0x3ec352;super(),_(this,'_entities',new Map()),_(this,_0x5e9ef7(0x330),new _0x201adb()),(this['_univerInstanceService']=_0x2a2840,this[_0x5e9ef7(0x344)]=_0xe58774,this[_0x5e9ef7(0x1d2)]=_0x5ab5c2,this[_0x5e9ef7(0x113)]());}[_0x3ec352(0x22c)](){const _0x26fc14=_0x3ec352;super[_0x26fc14(0x22c)](),this[_0x26fc14(0x330)][_0x26fc14(0x305)](),this[_0x26fc14(0x2f7)]['forEach'](_0x2f35bb=>_0x2f35bb[_0x26fc14(0x22c)]());}['getCollabCursors$'](_0x41c856){const _0x439266=_0x3ec352;return this[_0x439266(0x2f7)]['has'](_0x41c856)?this[_0x439266(0x2f7)]['get'](_0x41c856)[_0x439266(0x25a)]:this[_0x439266(0x330)][_0x439266(0x1cf)](_0x11df95(_0xc96698=>_0xc96698[_0x439266(0x238)]===_0x41c856),_0x29d1a7(_0x286673=>_0x286673[_0x439266(0x25a)]));}[_0x3ec352(0x113)](){const _0x421418=_0x3ec352;this[_0x421418(0x334)][_0x421418(0x173)](_0x560022[_0x421418(0x33b)])[_0x421418(0x1cf)](_0x451ca1(this['dispose$']))[_0x421418(0x261)](async _0xe202e4=>{const _0x35030d=_0x421418,_0x255629=_0xe202e4[_0x35030d(0x15c)](),_0xe2619=await this[_0x35030d(0x270)](_0x255629);this[_0x35030d(0x330)][_0x35030d(0x32d)](_0xe2619),this[_0x35030d(0x2f7)][_0x35030d(0x1a7)](_0x255629,_0xe2619);}),this[_0x421418(0x334)][_0x421418(0x173)](_0x560022['UNIVER_DOC'])['pipe'](_0x451ca1(this['dispose$']))['pipe'](_0x11df95(_0x51c8d3=>!_0x51c8d3['getUnitId']()['startsWith']('__')))['subscribe'](async _0x3b0c2a=>{const _0x3ac8ae=_0x421418,_0x435489=_0x3b0c2a['getUnitId'](),_0x195181=await this[_0x3ac8ae(0x17a)](_0x435489);this[_0x3ac8ae(0x330)][_0x3ac8ae(0x32d)](_0x195181),this[_0x3ac8ae(0x2f7)][_0x3ac8ae(0x1a7)](_0x435489,_0x195181);}),_0x42d0c5(this[_0x421418(0x334)][_0x421418(0x1fa)](_0x560022[_0x421418(0x272)]),this[_0x421418(0x334)]['getTypeOfUnitDisposed$'](_0x560022[_0x421418(0x33b)]))[_0x421418(0x1cf)](_0x451ca1(this[_0x421418(0x24c)]))[_0x421418(0x261)](_0x5abefc=>{const _0x2777ec=_0x421418,_0x18c24c=_0x5abefc[_0x2777ec(0x15c)](),_0x27480e=this[_0x2777ec(0x2f7)][_0x2777ec(0x264)](_0x18c24c);_0x27480e&&(_0x27480e[_0x2777ec(0x22c)](),this['_entities'][_0x2777ec(0x278)](_0x18c24c));});}async[_0x3ec352(0x270)](_0x2c69fb){const _0x2e13ff=_0x3ec352,_0x57dda2=await this[_0x2e13ff(0x1d2)][_0x2e13ff(0x228)](_0x2c69fb),_0x487022=this['_injector'][_0x2e13ff(0x1ce)](Be,_0x2c69fb,_0x57dda2);return _0x487022[_0x2e13ff(0x13c)](),_0x487022;}async[_0x3ec352(0x17a)](_0x26aea3){const _0x4a96ec=_0x3ec352,_0x52c9a5=await this[_0x4a96ec(0x1d2)][_0x4a96ec(0x228)](_0x26aea3),_0x492124=this[_0x4a96ec(0x344)]['createInstance'](xe,_0x26aea3,_0x52c9a5);return _0x492124[_0x4a96ec(0x13c)](),_0x492124;}};H=Wi([Ce(0x0,_0x5bb534),Ce(0x1,_0x4c0fac(_0x241db3)),Ce(0x2,_0x4c0fac(_0x19842d))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x41aaa4,_0x94a507){const _0x10b6b8=_0x3ec352;let {radius:_0x2c4099,width:_0x2af269,height:_0x5d58b2}=_0x94a507;_0x2c4099=_0x2c4099!=null?_0x2c4099:0x0,_0x2af269=_0x2af269!=null?_0x2af269:0x1e,_0x5d58b2=_0x5d58b2!=null?_0x5d58b2:0x1e;let _0x50bf2a=0x0,_0x339f0b=0x0,_0x404833=0x0;_0x50bf2a=_0x339f0b=_0x404833=Math[_0x10b6b8(0x313)](_0x2c4099,_0x2af269/0x2,_0x5d58b2/0x2),_0x41aaa4[_0x10b6b8(0x190)](),_0x41aaa4[_0x10b6b8(0x174)](_0x50bf2a,0x0),_0x41aaa4['lineTo'](_0x2af269-_0x339f0b,0x0),_0x41aaa4[_0x10b6b8(0x225)](_0x2af269-_0x339f0b,_0x339f0b,_0x339f0b,Math['PI']*0x3/0x2,0x0,!0x1),_0x41aaa4[_0x10b6b8(0x119)](_0x2af269,_0x5d58b2-_0x404833),_0x41aaa4['arc'](_0x2af269-_0x404833,_0x5d58b2-_0x404833,_0x404833,0x0,Math['PI']/0x2,!0x1),_0x41aaa4[_0x10b6b8(0x119)](0x0,_0x5d58b2),_0x41aaa4['lineTo'](0x0,_0x50bf2a),_0x41aaa4['arc'](_0x50bf2a,_0x50bf2a,_0x50bf2a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x41aaa4[_0x10b6b8(0x168)](),_0x94a507[_0x10b6b8(0x14e)]&&(_0x41aaa4[_0x10b6b8(0x196)](),_0x41aaa4[_0x10b6b8(0x26d)]=_0x94a507[_0x10b6b8(0x14e)],_0x94a507[_0x10b6b8(0x11e)]===_0x10b6b8(0x1db)?_0x41aaa4['fill'](_0x10b6b8(0x1db)):_0x41aaa4[_0x10b6b8(0x14e)](),_0x41aaa4[_0x10b6b8(0x2f6)]());}class ve extends _0x2831b2{constructor(_0xa24be4,_0x48c7a6){const _0x16bff5=_0x3ec352;super(_0xa24be4,_0x48c7a6),_(this,_0x16bff5(0x280)),_(this,'text'),(this[_0x16bff5(0x280)]=_0x48c7a6==null?void 0x0:_0x48c7a6[_0x16bff5(0x280)],this[_0x16bff5(0x164)]=_0x48c7a6==null?void 0x0:_0x48c7a6[_0x16bff5(0x164)]);}static[_0x3ec352(0x2d8)](_0x4c7a8b,_0x4e7eff){const _0x21f014=_0x3ec352,{text:_0x57b29c,color:_0x3c0a4}=_0x4e7eff;_0x4c7a8b['save'](),_0x4c7a8b['font']=_0x21f014(0x29f);const _0x18739b=_0x4c7a8b[_0x21f014(0x316)](_0x57b29c)[_0x21f014(0x210)],_0x3b6f2f=Math['min'](_0x18739b+0x2*Re,at);ji(_0x4c7a8b,{'height':Q,'radius':0x4,'width':_0x3b6f2f,'fill':_0x3c0a4}),_0x4c7a8b[_0x21f014(0x26d)]=_0x21f014(0x2b8);const _0x330cf7=Re,_0x593d24=Q-Vi,_0x34487b=at-0x2*Re;if(_0x18739b>_0x34487b){let _0x472c30='',_0x1f50b0=0x0;for(const _0x41ff48 of _0x57b29c){const _0x120e6b=_0x4c7a8b[_0x21f014(0x316)](_0x41ff48)['width'];if(_0x1f50b0+_0x120e6b<=_0x34487b-_0x4c7a8b[_0x21f014(0x316)](_0x21f014(0x2e4))['width'])_0x472c30+=_0x41ff48,_0x1f50b0+=_0x120e6b;else{_0x472c30+='...';break;}}_0x4c7a8b[_0x21f014(0x1dc)](_0x472c30,_0x330cf7,_0x593d24);}else _0x4c7a8b[_0x21f014(0x1dc)](_0x57b29c,_0x330cf7,_0x593d24);_0x4c7a8b[_0x21f014(0x2f6)]();}[_0x3ec352(0x236)](_0x33282e){const _0x1320ae=_0x3ec352;ve[_0x1320ae(0x2d8)](_0x33282e,this);}}const De=_0x3ec352(0x279),Xi=_0x3ec352(0x29c),Gi=_0x3ec352(0x2c8),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x3ec352(0x1e2);class ct{constructor(_0x46c986,_0x5a7eb2,_0xfae27d,_0x2757fd){const _0x1d502a=_0x3ec352;_(this,_0x1d502a(0x144),[]),_(this,_0x1d502a(0x281),null),_(this,'_textBubble',null),_(this,_0x1d502a(0x30d),null),_(this,'_hideTimer',null),_(this,_0x1d502a(0x15b),null),(this[_0x1d502a(0x335)]=_0x46c986,this[_0x1d502a(0x165)]=_0x5a7eb2,this[_0x1d502a(0x31a)]=_0xfae27d,this[_0x1d502a(0x30b)]=_0x2757fd,this[_0x1d502a(0x33a)]());}set[_0x3ec352(0x198)](_0x4f94ae){const _0xc17f0e=_0x3ec352;_0x4f94ae?(this[_0xc17f0e(0x30d)]&&this['_anchorDot']['hide'](),this[_0xc17f0e(0x2f2)]&&this[_0xc17f0e(0x2f2)][_0xc17f0e(0x1d9)]()):(this[_0xc17f0e(0x30d)]&&this['_anchorDot'][_0xc17f0e(0x1d9)](),this[_0xc17f0e(0x2f2)]&&this[_0xc17f0e(0x2f2)][_0xc17f0e(0x15e)]());}[_0x3ec352(0x22c)](){const _0x1202ef=_0x3ec352;for(const _0x1fc389 of this[_0x1202ef(0x144)])_0x1fc389[_0x1202ef(0x22c)]();this['_textBubble']&&this[_0x1202ef(0x2f2)][_0x1202ef(0x22c)](),this[_0x1202ef(0x30d)]&&this[_0x1202ef(0x30d)][_0x1202ef(0x22c)](),this[_0x1202ef(0x281)]&&this[_0x1202ef(0x281)][_0x1202ef(0x22c)](),this[_0x1202ef(0x15b)]&&this[_0x1202ef(0x15b)]();}[_0x3ec352(0x33a)](){const _0x5e5553=_0x3ec352;var _0x49be1e;const {_docSkeleton:_0x38364b,_document:_0x560065}=this,{color:_0x16dc47,name:_0x1d6dcf,ranges:_0x5af606}=this[_0x5e5553(0x335)],_0x4b55f1=_0x560065[_0x5e5553(0x2da)](),{docsLeft:_0x1a1ddf,docsTop:_0x4a093a}=_0x4b55f1,_0x15bbad=new _0x592cf6(_0x4b55f1,_0x38364b);for(const {startOffset:_0x2360b1,endOffset:_0x2711c3,rangeType:_0x1722f3,segmentId:_0x50e016,segmentPage:_0x3a0004,collapsed:_0x59e2a0,isActive:_0x2a3619}of _0x5af606){const _0x4cc002=_0x38364b[_0x5e5553(0x348)](_0x2360b1,!0x0,_0x50e016,_0x3a0004);let _0x1c3613=_0x38364b[_0x5e5553(0x348)](_0x2711c3,!0x0,_0x50e016,_0x3a0004);if(_0x1c3613==null&&(_0x1c3613=_0x38364b[_0x5e5553(0x348)](_0x2711c3-0x1,!0x1,_0x50e016,_0x3a0004)),_0x2a3619){const {contentBoxPointGroup:_0x218756}=_0x15bbad[_0x5e5553(0x312)](_0x1c3613,_0x1c3613);if(_0x218756['length']===0x0)continue;this[_0x5e5553(0x331)](_0x16dc47,_0x218756,_0x1a1ddf,_0x4a093a,_0x1d6dcf),this[_0x5e5553(0x15b)]=this[_0x5e5553(0x201)]();}if(_0x4cc002&&_0x1c3613){if(_0x1722f3===_0x61a77c[_0x5e5553(0x241)]){const _0x4e70dc=new _0x622a72(_0x4b55f1,_0x38364b),{pointGroup:_0x45b45b}=(_0x49be1e=_0x4e70dc[_0x5e5553(0x312)](_0x4cc002,_0x1c3613))!=null?_0x49be1e:{};if(_0x45b45b==null||_0x45b45b['length']===0x0)continue;this['_drawRectRange'](_0x16dc47,_0x45b45b,_0x1a1ddf,_0x4a093a);}else{if(!_0x59e2a0){const {borderBoxPointGroup:_0x5e7bc7}=_0x15bbad[_0x5e5553(0x312)](_0x4cc002,_0x1c3613);if(_0x5e7bc7[_0x5e5553(0x2ab)]===0x0)continue;this[_0x5e5553(0x2c9)](_0x16dc47,_0x5e7bc7,_0x1a1ddf,_0x4a093a);}}}}}[_0x3ec352(0x331)](_0x32e88a,_0x4766b6,_0xfdd71,_0x5b0ca9,_0x5d883f){const _0x4f368e=_0x3ec352,_0x3439a7=this[_0x4f368e(0x2b4)](_0x4766b6),{left:_0x59b64f,top:_0x413947,height:_0xff9de0}=_0x3439a7,_0x544cfd=this[_0x4f368e(0x179)](),_0x67b596=zi/_0x544cfd,_0x1a7597=new _0x2c78d1(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9,'height':_0xff9de0,'width':Ki,'fill':_0x32e88a||_0x18ff82(_0x3cc9d6[_0x4f368e(0x153)],0x0),'strokeWidth':_0x67b596,'stroke':Ji,'evented':!0x0});this[_0x4f368e(0x281)]=_0x1a7597,this[_0x4f368e(0x165)][_0x4f368e(0x127)](_0x1a7597,_0x5e29a0);const _0x140fa3=new _0x2c78d1(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x32e88a||_0x18ff82(_0x3cc9d6[_0x4f368e(0x153)],0x0),'strokeWidth':0x0,'stroke':_0x32e88a||_0x18ff82(_0x3cc9d6['black'],0x0),'evented':!0x1});this[_0x4f368e(0x30d)]=_0x140fa3,this['_scene'][_0x4f368e(0x127)](_0x140fa3,_0x5e29a0);const _0x5254c6=new ve(De+_0x1f3cf5(z),{'left':_0x59b64f+_0xfdd71-_0x67b596,'top':_0x413947+_0x5b0ca9-Q,'text':_0x5d883f,'color':_0x32e88a});this['_textBubble']=_0x5254c6,this[_0x4f368e(0x165)][_0x4f368e(0x127)](_0x5254c6,_0x5e29a0),this['_hover']=!0x1;}[_0x3ec352(0x201)](){const _0x4717f7=_0x3ec352,_0x3b741c=this['_anchor']['onPointerEnter$'][_0x4717f7(0x31f)](()=>{const _0x4db299=_0x4717f7;this[_0x4db299(0x198)]=!0x0;}),_0x642b6=this[_0x4717f7(0x281)]['onPointerLeave$'][_0x4717f7(0x31f)](()=>{const _0x933658=_0x4717f7;this[_0x933658(0x188)]&&clearTimeout(this[_0x933658(0x188)]),this[_0x933658(0x188)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3e3e14=_0x4717f7;_0x3b741c[_0x3e3e14(0x13f)](),_0x642b6[_0x3e3e14(0x13f)]();};}[_0x3ec352(0x2c9)](_0x2493e4,_0x48d85c,_0x2753aa,_0x29125c){const _0x4dc284=_0x3ec352,_0x16d38e=new _0x585da0(_0x2493e4)[_0x4dc284(0x1f8)](0.2)[_0x4dc284(0x221)](),_0x5d0558=new _0x3e0ab3(Xi+_0x1f3cf5(z),{'pointsGroup':_0x48d85c,'fill':_0x16d38e||_0x18ff82(_0x3cc9d6[_0x4dc284(0x153)],0.2),'left':_0x2753aa,'top':_0x29125c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4dc284(0x144)]['push'](_0x5d0558),this['_scene']['addObject'](_0x5d0558,_0x5e29a0);}[_0x3ec352(0x1bf)](_0x2c3f11,_0x35e9f6,_0x2d69c8,_0x367dca){const _0x2c4944=_0x3ec352,_0x25353e=new _0x585da0(_0x2c3f11)[_0x2c4944(0x1f8)](0.2)[_0x2c4944(0x221)](),_0x274608=new _0x3e0ab3(Gi+_0x1f3cf5(z),{'pointsGroup':_0x35e9f6,'fill':_0x25353e||_0x18ff82(_0x3cc9d6['black'],0.2),'left':_0x2d69c8,'top':_0x367dca,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c4944(0x144)]['push'](_0x274608),this['_scene']['addObject'](_0x274608,_0x5e29a0);}[_0x3ec352(0x2b4)](_0x333159){const _0x4aeb76=_0x333159[0x0],_0xf7518d=_0x4aeb76[0x0],_0x2b9fe9=_0x4aeb76[0x2],{x:_0x38110d,y:_0x103fda}=_0xf7518d,{x:_0x4c6bc2,y:_0x355804}=_0x2b9fe9;return{'left':_0x38110d,'top':_0x103fda,'width':_0x4c6bc2-_0x38110d,'height':_0x355804-_0x103fda};}[_0x3ec352(0x179)](){const _0x15d644=_0x3ec352,{scaleX:_0x53ca4c,scaleY:_0xf40ca4}=this[_0x15d644(0x165)][_0x15d644(0x2b6)]();return Math[_0x15d644(0x303)](_0x53ca4c,_0xf40ca4);}}var Zi=Object[_0x3ec352(0x232)],Qi=(_0x5d9e38,_0x4543c2,_0x28f987,_0x163eac)=>{const _0x2bb6ad=_0x3ec352;for(var _0x244af1=_0x163eac>0x1?void 0x0:_0x163eac?Zi(_0x4543c2,_0x28f987):_0x4543c2,_0x226490=_0x5d9e38[_0x2bb6ad(0x2ab)]-0x1,_0x24c570;_0x226490>=0x0;_0x226490--)(_0x24c570=_0x5d9e38[_0x226490])&&(_0x244af1=_0x24c570(_0x244af1)||_0x244af1);return _0x244af1;},ie=(_0x22cbbc,_0x53ef4f)=>(_0x5c22c6,_0x4efd35)=>_0x53ef4f(_0x5c22c6,_0x4efd35,_0x22cbbc);let Fe=class extends _0x4e9bf2{constructor(_0x39716e,_0x1b0720,_0x235c9b,_0x336934,_0xe1217f){const _0x5396ce=_0x3ec352;super(),_(this,'_cursorShapes',[]),_(this,_0x5396ce(0x285),[]),(this[_0x5396ce(0x130)]=_0x39716e,this[_0x5396ce(0x216)]=_0x1b0720,this[_0x5396ce(0x171)]=_0x235c9b,this[_0x5396ce(0x24e)]=_0x336934,this['_themeService']=_0xe1217f,this[_0x5396ce(0x113)]());}[_0x3ec352(0x113)](){const _0x2979d5=_0x3ec352,_0xef9fed=this[_0x2979d5(0x130)]['unitId'],_0x287bc2=this[_0x2979d5(0x216)];this['disposeWithMe'](_0x4e3cde([this[_0x2979d5(0x171)]['getCollabCursors$'](_0xef9fed),this['_themeService'][_0x2979d5(0x2b0)]])[_0x2979d5(0x1cf)](_0x108aa2(([_0x14722d,_0x3729d8])=>({'skeleton':_0x287bc2[_0x2979d5(0x27a)](),'cursors':[..._0x14722d['values']()]['flatMap'](_0x364b48=>({..._0x364b48,'color':this[_0x2979d5(0x332)]['getColorFromTheme'](_0x364b48[_0x2979d5(0x280)])}))})))['subscribe'](_0x5d0251=>{const _0x69551d=_0x2979d5;if(this[_0x69551d(0x208)](),_0x5d0251){const {skeleton:_0x2ec964,cursors:_0x79af81}=_0x5d0251;this['_updateCollabCursors'](_0x2ec964,_0x79af81);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x3ec352(0x21f)](_0x2ca216,_0x4d6ff4){const _0x41c104=_0x3ec352,{scene:_0x1dc76a,mainComponent:_0x345dab}=this[_0x41c104(0x130)],_0x108f51=_0x4d6ff4[_0x41c104(0x1ca)](_0x3874e2=>new ct(_0x3874e2,_0x1dc76a,_0x2ca216,_0x345dab));this[_0x41c104(0x320)]=_0x108f51,this['_cursors']=_0x4d6ff4;}['_refreshCollabCursors'](){const _0x298079=_0x3ec352;this['_removeCollabCursors']();const {scene:_0x3c4b7f,mainComponent:_0x4c668b}=this['_context'],_0x48abdc=this[_0x298079(0x216)][_0x298079(0x27a)](),_0x2b186c=this[_0x298079(0x285)][_0x298079(0x1ca)](_0x1d09f5=>new ct(_0x1d09f5,_0x3c4b7f,_0x48abdc,_0x4c668b));this[_0x298079(0x320)]=_0x2b186c;}[_0x3ec352(0x208)](){const _0x5a9f91=_0x3ec352;this['_cursorShapes']['forEach'](_0x2fc322=>_0x2fc322['dispose']()),this[_0x5a9f91(0x320)]=[];}['_initCommandExecutedListener'](){const _0x806c9=_0x3ec352,_0x3589ab=[_0x400b0f['id']];this[_0x806c9(0x29b)](this[_0x806c9(0x24e)][_0x806c9(0x1c1)](_0x1f5495=>{const _0x1b0ab7=_0x806c9;_0x3589ab[_0x1b0ab7(0x1ad)](_0x1f5495['id'])&&_0x1f5495[_0x1b0ab7(0x14d)]['unitId']===this['_context'][_0x1b0ab7(0x191)]&&this['_refreshCollabCursors']();}));}[_0x3ec352(0x2df)](){const _0x336b3b=_0x3ec352;this[_0x336b3b(0x29b)](_0x4dedaf(this[_0x336b3b(0x130)][_0x336b3b(0x304)][_0x336b3b(0x34b)])[_0x336b3b(0x1cf)](_0x332e97(_0x2eeda5=>_0x2eeda5[_0x336b3b(0x35e)]===_0x36a1db[_0x336b3b(0x29d)]),_0x572a55(0x10))[_0x336b3b(0x261)](()=>{const _0x4df68f=_0x336b3b;this[_0x4df68f(0x219)]();}));}};Fe=Qi([ie(0x1,_0x4c0fac(_0x2f9fae)),ie(0x2,_0x4c0fac(H)),ie(0x3,_0x234cad),ie(0x4,_0x4c0fac(_0x334c7e))],Fe);const qi=0x1,en=1.5;class tn extends _0x2831b2{constructor(_0x5c9489,_0x395464){const _0x16fb20=_0x3ec352;super(_0x5c9489,_0x395464),_(this,_0x16fb20(0x12d)),_(this,_0x16fb20(0x1a2),!0x1),_(this,_0x16fb20(0x1b7)),_(this,'_name',''),_(this,_0x16fb20(0x1cc),_0x16fb20(0x124)),_(this,_0x16fb20(0x2cc)),(_0x395464&&this[_0x16fb20(0x322)](_0x395464),this[_0x16fb20(0x2f4)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x16fb20(0x322)]({'hovered':!0x1})));}[_0x3ec352(0x322)](_0x4a38cf){const _0x3a73ee=_0x3ec352;var _0x5c2bc2,_0x163150,_0x3e5612,_0x2a6d3a,_0x56468e,_0x3baa4e;this[_0x3a73ee(0x12d)]=(_0x5c2bc2=_0x4a38cf[_0x3a73ee(0x280)])!=null?_0x5c2bc2:this[_0x3a73ee(0x12d)],this[_0x3a73ee(0x1a2)]=(_0x163150=_0x4a38cf[_0x3a73ee(0x1f7)])!=null?_0x163150:this[_0x3a73ee(0x1a2)],this[_0x3a73ee(0x1b7)]=(_0x3e5612=_0x4a38cf[_0x3a73ee(0x2ac)])!=null?_0x3e5612:this[_0x3a73ee(0x1b7)],this[_0x3a73ee(0x19f)]=(_0x2a6d3a=_0x4a38cf['name'])!=null?_0x2a6d3a:this[_0x3a73ee(0x19f)],this[_0x3a73ee(0x1cc)]=(_0x56468e=_0x4a38cf[_0x3a73ee(0x189)])!=null?_0x56468e:this[_0x3a73ee(0x1cc)],this[_0x3a73ee(0x2cc)]=(_0x3baa4e=_0x4a38cf[_0x3a73ee(0x2e5)])!=null?_0x3baa4e:this[_0x3a73ee(0x2cc)],this['transformByState']({'width':_0x4a38cf[_0x3a73ee(0x210)],'height':_0x4a38cf[_0x3a73ee(0x142)]});}[_0x3ec352(0x256)](_0x5b1f5e){const _0x28d770=_0x3ec352,{row:_0x48de84,column:_0x479223}=_0x5b1f5e;if(_0x48de84>=this[_0x28d770(0x1b7)][_0x28d770(0x23c)]&&_0x48de84<=this['_range'][_0x28d770(0x288)]&&_0x479223>=this[_0x28d770(0x1b7)][_0x28d770(0x296)]&&_0x479223<=this[_0x28d770(0x1b7)]['endColumn']){this[_0x28d770(0x322)]({'hovered':!0x0});return;}this[_0x28d770(0x322)]({'hovered':!0x1});}[_0x3ec352(0x2c3)](_0x359fee){return!0x1;}[_0x3ec352(0x236)](_0x17974c){const _0x5a7e75=_0x3ec352;_0x2c78d1['drawWith'](_0x17974c,{'width':this['width'],'height':this[_0x5a7e75(0x142)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5a7e75(0x2cc)]}),this[_0x5a7e75(0x1a2)]&&(_0x17974c[_0x5a7e75(0x196)](),_0x17974c[_0x5a7e75(0x1fd)](0x1,0x0,0x0,0x1,this[_0x5a7e75(0x210)],this[_0x5a7e75(0x1cc)]===_0x5a7e75(0x2d3)?0x0:-Q),ve[_0x5a7e75(0x2d8)](_0x17974c,{'text':this[_0x5a7e75(0x19f)],'color':this[_0x5a7e75(0x12d)]}),_0x17974c['restore']());}}var sn=Object[_0x3ec352(0x232)],nn=(_0x4f9bc5,_0x331df3,_0x5c02cd,_0x16dee1)=>{const _0xf06843=_0x3ec352;for(var _0x53ec9c=_0x16dee1>0x1?void 0x0:_0x16dee1?sn(_0x331df3,_0x5c02cd):_0x331df3,_0x380566=_0x4f9bc5[_0xf06843(0x2ab)]-0x1,_0x33eaa3;_0x380566>=0x0;_0x380566--)(_0x33eaa3=_0x4f9bc5[_0x380566])&&(_0x53ec9c=_0x33eaa3(_0x53ec9c)||_0x53ec9c);return _0x53ec9c;},be=(_0x1395a8,_0x1e170c)=>(_0x2ff119,_0x1f891a)=>_0x1e170c(_0x2ff119,_0x1f891a,_0x1395a8);const rn=0x1389;let ke=class extends _0x4e9bf2{constructor(_0x57fa62,_0x5b9e43,_0x2edacc,_0x362358){const _0x2136e2=_0x3ec352;super(),_(this,_0x2136e2(0x285),new Set()),_(this,_0x2136e2(0x183),null),(this['_context']=_0x57fa62,this[_0x2136e2(0x206)]=_0x5b9e43,this[_0x2136e2(0x171)]=_0x2edacc,this[_0x2136e2(0x332)]=_0x362358,this[_0x2136e2(0x113)]());}[_0x3ec352(0x113)](){const _0x3ebee2=_0x3ec352;this[_0x3ebee2(0x206)][_0x3ebee2(0x199)][_0x3ebee2(0x1cf)](_0x4b0b95(this[_0x3ebee2(0x24c)]),_0x54129b(_0x1697b5=>{const _0x29e219=_0x3ebee2;if(_0x1697b5){const _0x3bf00a=_0x1697b5[_0x29e219(0x11a)];return _0x4e3cde(this[_0x29e219(0x171)][_0x29e219(0x323)](this[_0x29e219(0x130)][_0x29e219(0x191)]),this['_themeService']['currentTheme$'])[_0x29e219(0x1cf)](_0x108aa2(([_0x42cb9d,_0x475cba])=>{const _0x26bf55=new Map();return _0x42cb9d['forEach']((_0x398e0c,_0x587578)=>{const _0x53687e=_0x437b;if(_0x398e0c['sheetID']===_0x3bf00a){const _0x3098e4={..._0x398e0c};_0x3098e4[_0x53687e(0x280)]=this[_0x53687e(0x332)][_0x53687e(0x289)](_0x398e0c[_0x53687e(0x280)]),_0x26bf55[_0x53687e(0x1a7)](_0x587578,_0x3098e4);}}),{'skeleton':_0x1697b5,'cursors':_0x26bf55};}));}return _0x4c8a6d({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3b1524,cursors:_0x178339})=>{const _0x27217f=_0x3ebee2;this[_0x27217f(0x208)](),_0x3b1524&&this[_0x27217f(0x21f)](_0x3b1524,_0x178339);}),this[_0x3ebee2(0x206)]['currentSkeleton$'][_0x3ebee2(0x261)](_0x4941e0=>{const _0x5d6f27=_0x3ebee2;if(_0x4941e0==null)return;const {skeleton:_0x16fba3}=_0x4941e0,{scene:_0x33415b}=this['_context'];_0x33415b[_0x5d6f27(0x2ed)][_0x5d6f27(0x31f)](_0x454746(_0x41869a=>{const _0x2e8953=_0x5d6f27;var _0x412ce1,_0x486692;const {offsetX:_0x51f261,offsetY:_0x27ce3d}=_0x41869a,{x:_0x1fb76b,y:_0x4b1d54}=_0x33415b[_0x2e8953(0x253)](_0x533d50[_0x2e8953(0x11b)]([_0x51f261,_0x27ce3d])),{scaleX:_0x175b87,scaleY:_0x58d398}=_0x33415b['getAncestorScale'](),_0x3d2af2=_0x33415b[_0x2e8953(0x35a)](_0x509f66[_0x2e8953(0x1de)]),_0x2f5109=_0x33415b[_0x2e8953(0x2fd)](_0x533d50[_0x2e8953(0x11b)]([_0x1fb76b,_0x4b1d54]),_0x3d2af2),_0x144786=_0x16fba3[_0x2e8953(0x2d4)](_0x51f261,_0x27ce3d,_0x175b87,_0x58d398,_0x2f5109);((_0x412ce1=this[_0x2e8953(0x183)])==null?void 0x0:_0x412ce1[_0x2e8953(0x2e6)])===_0x144786['column']&&((_0x486692=this[_0x2e8953(0x183)])==null?void 0x0:_0x486692[_0x2e8953(0x24f)])===_0x144786[_0x2e8953(0x24f)]||this[_0x2e8953(0x285)][_0x2e8953(0x2af)](_0x2676ac=>{const _0x155cc7=_0x2e8953;_0x2676ac[_0x155cc7(0x256)](_0x144786);});},0x64));});}[_0x3ec352(0x21f)](_0x2d6e08,_0x26c9ec){const _0xc6170f=_0x3ec352;var _0x547e5d;const _0x4574a3=(_0x547e5d=this[_0xc6170f(0x206)]['getCurrent']())==null?void 0x0:_0x547e5d[_0xc6170f(0x2b7)];if(!_0x4574a3)return;const _0x519eaa=this[_0xc6170f(0x1b2)]();if(!_0x519eaa)return;this[_0xc6170f(0x285)]['forEach'](_0x226624=>{_0x226624['makeDirty']();});const {scene:_0x84c75b}=_0x519eaa,_0x2c008e=on(Array[_0xc6170f(0x1a4)](_0x26c9ec[_0xc6170f(0x283)]()))[_0xc6170f(0x1ca)](_0x3dbfea=>{const _0x4d7e3d=_0xc6170f,{color:_0x22c35e,range:_0x157b3e,name:_0x379071,selection:_0x36f955,sheetID:_0x5a662e}=_0x3dbfea,{startColumn:_0x1978fa,startRow:_0x2bfef9,endColumn:_0x2019bb,endRow:_0x36ede0}=_0x157b3e,_0x239d6d=_0x5669fa(_0x2bfef9,_0x1978fa,_0x84c75b,_0x4574a3),_0x4a5955=_0x5669fa(_0x36ede0,_0x2019bb,_0x84c75b,_0x4574a3),{columnHeaderHeightAndMarginTop:_0xfdc1ab}=_0x4574a3,{startX:_0x3e69ba,startY:_0x4cb094}=_0x239d6d,{endX:_0x27a453,endY:_0x3800fa}=_0x4a5955,_0x4aa8e3=_0x27a453-_0x3e69ba,_0x7154fa=_0x3800fa-_0x4cb094,_0x32efa3={'labelPosition':_0x4cb094-_0xfdc1ab>=Q?_0x4d7e3d(0x124):_0x4d7e3d(0x2d3),'sheetID':_0x5a662e,'range':_0x157b3e,'color':_0x22c35e,'name':_0x379071,'selection':_0x36f955,'left':_0x3e69ba,'top':_0x4cb094,'width':_0x4aa8e3,'height':_0x7154fa,'evented':!0x1,'zIndex':rn};return new tn(_0x379071,_0x32efa3);});_0x84c75b[_0xc6170f(0x339)](_0x2c008e,qi),this[_0xc6170f(0x285)]=new Set(_0x2c008e);}['_removeCollabCursors'](){const _0xd2a6ae=_0x3ec352;var _0x32865b;(_0x32865b=this[_0xd2a6ae(0x285)])==null||_0x32865b[_0xd2a6ae(0x2af)](_0xe729bf=>_0xe729bf[_0xd2a6ae(0x22c)]());}[_0x3ec352(0x1b2)](){const _0x42f2eb=_0x3ec352;return _0x5304d4(this[_0x42f2eb(0x130)]['unit'],this['_context']);}};ke=nn([be(0x1,_0x4c0fac(_0x42e4bb)),be(0x2,_0x4c0fac(H)),be(0x3,_0x4c0fac(_0x334c7e))],ke);function on(_0x547d97){const _0x19994e=_0x3ec352,_0x50b174=new Map();return _0x547d97['forEach'](_0xf37ef6=>{const _0x39e27e=_0x437b;if(_0x50b174[_0x39e27e(0x177)](_0xf37ef6[_0x39e27e(0x181)])){const _0x33e94f=_0x50b174[_0x39e27e(0x264)](_0xf37ef6[_0x39e27e(0x181)]);_0x33e94f[_0x39e27e(0x18e)]+=',\x20'+_0xf37ef6[_0x39e27e(0x18e)];}else _0x50b174[_0x39e27e(0x1a7)](_0xf37ef6[_0x39e27e(0x181)],_0xf37ef6);}),Array[_0x19994e(0x1a4)](_0x50b174[_0x19994e(0x283)]());}var an=Object[_0x3ec352(0x232)],cn=(_0x55a3cb,_0x26712a,_0x4f9ec8,_0x2dba82)=>{for(var _0x5bfd7e=_0x2dba82>0x1?void 0x0:_0x2dba82?an(_0x26712a,_0x4f9ec8):_0x26712a,_0x30749f=_0x55a3cb['length']-0x1,_0x3c3904;_0x30749f>=0x0;_0x30749f--)(_0x3c3904=_0x55a3cb[_0x30749f])&&(_0x5bfd7e=_0x3c3904(_0x5bfd7e)||_0x5bfd7e);return _0x5bfd7e;},F=(_0x2e4935,_0x1b2913)=>(_0x51f44f,_0x1743e4)=>_0x1b2913(_0x51f44f,_0x1743e4,_0x2e4935);let _e=class extends _0xbbfd04{constructor(_0xe69de7,_0x4e5521,_0x5cb676,_0x1cf278,_0x5ed07e,_0x289d3c){const _0x263c02=_0x3ec352;super(),this[_0x263c02(0x34c)]=_0xe69de7,this[_0x263c02(0x14f)]=_0x4e5521,this['_collaborationUIEventService']=_0x5cb676,this[_0x263c02(0x1df)]=_0x1cf278,this['_notificationService']=_0x5ed07e,this[_0x263c02(0x268)]=_0x289d3c,this['_setupBeforeClosingHandler'](),this[_0x263c02(0x1e8)]();}[_0x3ec352(0x300)](){const _0x5ba990=_0x3ec352;this[_0x5ba990(0x29b)](this[_0x5ba990(0x34c)]['registerBeforeClose'](()=>{const _0x242c40=_0x5ba990;if(this[_0x242c40(0x14f)][_0x242c40(0x2b5)][_0x242c40(0x310)])return this[_0x242c40(0x268)]['t'](_0x242c40(0x318));}));}[_0x3ec352(0x1e8)](){const _0x1cd6cf=_0x3ec352;this[_0x1cd6cf(0x29b)](this[_0x1cd6cf(0x26a)][_0x1cd6cf(0x1a6)][_0x1cd6cf(0x261)](_0x382c4b=>{const _0xb0153e=_0x1cd6cf;_0x382c4b['id']===_0x5a7f32['OTHER_CLIENT_EDITING']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea['Warning'],'content':this[_0xb0153e(0x268)]['t'](_0xb0153e(0x214))}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x1e0)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t']('collaboration.closeRoom')}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x20e)]&&this[_0xb0153e(0x22b)][_0xb0153e(0x1d9)]({'title':this['_localeService']['t'](_0xb0153e(0x13d)),'content':this['_localeService']['t'](_0xb0153e(0x211)),'type':_0xb0153e(0x19b),'duration':0x0}),_0x382c4b['id']===_0x5a7f32['CONFLICT']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this[_0xb0153e(0x268)]['t']('collaboration.closeRoom')+'('+_0x382c4b[_0xb0153e(0x205)]+')'}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x184)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t'](_0x382c4b[_0xb0153e(0x205)]||'')}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x349)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x215)],'content':this[_0xb0153e(0x268)]['t'](_0xb0153e(0x31b))}),_0x382c4b['id']===_0x5a7f32['SOCKET_FAILED']&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this['_localeService']['t'](_0xb0153e(0x328))}),_0x382c4b['id']===_0x5a7f32[_0xb0153e(0x2e3)]&&this[_0xb0153e(0x1df)][_0xb0153e(0x1d9)]({'type':_0x5187ea[_0xb0153e(0x12c)],'content':this['_localeService']['t'](_0xb0153e(0x213))});}));}};_e=cn([F(0x0,_0x488919),F(0x1,_0x223ca0),F(0x2,_0x4c0fac(_0x1fe96a)),F(0x3,_0x12f42d),F(0x4,_0x26656e),F(0x5,_0x4c0fac(_0x498bd0))],_e);var _n=Object[_0x3ec352(0x232)],ln=(_0x38face,_0x49bf69,_0x9eee44,_0x2792b5)=>{const _0x1ce0bc=_0x3ec352;for(var _0x9ac260=_0x2792b5>0x1?void 0x0:_0x2792b5?_n(_0x49bf69,_0x9eee44):_0x49bf69,_0xf83849=_0x38face[_0x1ce0bc(0x2ab)]-0x1,_0x2c4158;_0xf83849>=0x0;_0xf83849--)(_0x2c4158=_0x38face[_0xf83849])&&(_0x9ac260=_0x2c4158(_0x9ac260)||_0x9ac260);return _0x9ac260;},ne=(_0xe1db03,_0x310eff)=>(_0x3f6537,_0x2a28e1)=>_0x310eff(_0x3f6537,_0x2a28e1,_0xe1db03);let le=class extends _0xbbfd04{constructor(_0x1b7420,_0x51e627,_0x46d2b0,_0x4cca55){const _0x59f74d=_0x3ec352;super(),_(this,'_memberID'),(this[_0x59f74d(0x344)]=_0x1b7420,this[_0x59f74d(0x21d)]=_0x51e627,this[_0x59f74d(0x27f)]=_0x46d2b0,this[_0x59f74d(0x254)]=_0x4cca55,this['_init']());}[_0x3ec352(0x113)](){const _0x262a6e=_0x3ec352;this[_0x262a6e(0x1cd)](),this['_initUnhandledRejectionListener'](),this[_0x262a6e(0x121)](),this[_0x262a6e(0x26f)]();}[_0x3ec352(0x26f)](){const _0x2f8664=_0x3ec352;this[_0x2f8664(0x29b)](this[_0x2f8664(0x254)][_0x2f8664(0x139)]['subscribe'](_0xb76be9=>{const _0x3a7508=_0x2f8664;this[_0x3a7508(0x24b)]=_0xb76be9==null?void 0x0:_0xb76be9[_0x3a7508(0x24a)];}));}[_0x3ec352(0x1cd)](){const _0x41d78e=_0x3ec352,_0x938c51=_0x1fc68d=>{const _0x43353e=_0x437b;var _0xcb5ec7;this[_0x43353e(0x2c1)](_0x43353e(0x19b),_0x43353e(0x26b)+_0x1fc68d[_0x43353e(0x22d)]+_0x43353e(0x19c)+_0x1fc68d[_0x43353e(0x28a)]+':'+_0x1fc68d['lineno']+':'+_0x1fc68d[_0x43353e(0x1af)]+'\x0a'+(((_0xcb5ec7=_0x1fc68d['error'])==null?void 0x0:_0xcb5ec7[_0x43353e(0x1e5)])||''));};window[_0x41d78e(0x1f5)](_0x41d78e(0x19b),_0x938c51),this[_0x41d78e(0x29b)](()=>{const _0x2c04a6=_0x41d78e;window[_0x2c04a6(0x17c)](_0x2c04a6(0x19b),_0x938c51);});}[_0x3ec352(0x297)](){const _0x41e080=_0x3ec352,_0x22d711=_0x31a3b4=>{const _0x2926e1=_0x437b;this[_0x2926e1(0x2c1)](_0x2926e1(0x19b),_0x2926e1(0x248)+_0x31a3b4['reason']);};window[_0x41e080(0x1f5)](_0x41e080(0x1f2),_0x22d711),this[_0x41e080(0x29b)](()=>{const _0x433e85=_0x41e080;window[_0x433e85(0x17c)]('unhandledrejection',_0x22d711);});}[_0x3ec352(0x121)](){const _0x134192=_0x3ec352,_0x5ddd1e=this[_0x134192(0x27f)][_0x134192(0x19b)][_0x134192(0x1fb)](this[_0x134192(0x27f)]);this[_0x134192(0x27f)][_0x134192(0x19b)]=(..._0xd2d61e)=>{const _0x5c4111=_0x134192,_0x24b221=_0xd2d61e['map'](_0xb72582=>_0xb72582 instanceof Error?_0xb72582[_0x5c4111(0x22d)]+'\x0a'+_0xb72582[_0x5c4111(0x1e5)]:String(_0xb72582))[_0x5c4111(0x128)]('\x20');this[_0x5c4111(0x2c1)](_0x5c4111(0x19b),_0x5c4111(0x166)+_0x24b221),_0x5ddd1e(..._0xd2d61e);},this[_0x134192(0x29b)](()=>{const _0x658ab6=_0x134192;this[_0x658ab6(0x27f)][_0x658ab6(0x19b)]=_0x5ddd1e;});}[_0x3ec352(0x2c1)](_0x1d90aa,_0x53f992){const _0x507d55=_0x3ec352;try{const _0x21f31e={'userId':this[_0x507d55(0x24b)],'logLabel':_0x1d90aa,'content':_0x53f992};this['_httpService'][_0x507d55(0x2e8)](_0x507d55(0x25b),{'body':_0x21f31e})[_0x507d55(0x1aa)](()=>{});}catch{}}};le=ln([ne(0x0,_0x4c0fac(_0x241db3)),ne(0x1,_0x4c0fac(_0x90f763)),ne(0x2,_0x54cafd),ne(0x3,_0x4c0fac(_0x19842d))],le);const hn=_0x3ec352(0x140),_t={};var un=Object[_0x3ec352(0x232)],dn=(_0x3f0d62,_0x357265,_0x3153c3,_0x1367eb)=>{const _0x14619e=_0x3ec352;for(var _0x4e9e46=_0x1367eb>0x1?void 0x0:_0x1367eb?un(_0x357265,_0x3153c3):_0x357265,_0x117e71=_0x3f0d62[_0x14619e(0x2ab)]-0x1,_0x14c80a;_0x117e71>=0x0;_0x117e71--)(_0x14c80a=_0x3f0d62[_0x117e71])&&(_0x4e9e46=_0x14c80a(_0x4e9e46)||_0x4e9e46);return _0x4e9e46;},lt=(_0x3affd5,_0x57a4bb)=>(_0x490f61,_0x346b7d)=>_0x57a4bb(_0x490f61,_0x346b7d,_0x3affd5);let he=class{constructor(_0x2fba92,_0x2446bd){const _0x41e954=_0x3ec352;this['_transformService']=_0x2fba92,this[_0x41e954(0x2ec)]=_0x2446bd;}[_0x3ec352(0x273)](_0x327974){const _0x250ee0=_0x3ec352;this['_transformUndoRedoStack'](_0x327974),this[_0x250ee0(0x22e)](_0x327974);}[_0x3ec352(0x301)](_0x41fbb1){const _0x2865fa=_0x3ec352,{unitID:_0x3cfdd1}=_0x41fbb1,_0x33e25c=this[_0x2865fa(0x2ec)][_0x2865fa(0x11f)](_0x3cfdd1)['with'](_0x502bd3),{redoCache:_0x24214a}=_0x33e25c[_0x2865fa(0x1e9)]();if(_0x24214a['length']===0x0)return _0x41fbb1;let _0x80d412=_0x2aaf32[_0x2865fa(0x2d5)](_0x41fbb1[_0x2865fa(0x23b)][0x0]);for(let _0xe3ba0=0x0;_0xe3ba0<_0x24214a['length'];_0xe3ba0++){const _0x168ba4={'id':'doc.mutation.rich-text-editing','params':{..._0x24214a[_0xe3ba0]}},_0xe7f46f=this['_transformService'][_0x2865fa(0x2c2)](_0x80d412,_0x168ba4,!0x1);if(_0x50e290(_0xe7f46f))throw _0xe7f46f[_0x2865fa(0x19b)];_0x80d412=_0xe7f46f['m1Prime'];}return{..._0x2aaf32['deepClone'](_0x41fbb1),'mutations':[_0x80d412]};}[_0x3ec352(0x14b)](_0x36ed5f){const _0xe3b803=_0x3ec352,{unitID:_0x45da37}=_0x36ed5f,_0x282bbb=this[_0xe3b803(0x2ec)][_0xe3b803(0x11f)](_0x45da37)['with'](_0x502bd3),{undoCache:_0x4b86ab,redoCache:_0x5db79f}=_0x282bbb[_0xe3b803(0x1e9)]();if(_0x4b86ab['length']===0x0||_0x5db79f[_0xe3b803(0x2ab)]===0x0)return;const _0x546951=[],_0x2bd1f6=[];let _0x493ffb=_0x2aaf32['deepClone'](_0x36ed5f[_0xe3b803(0x23b)][0x0]),_0x68c65f=_0x2aaf32[_0xe3b803(0x2d5)](_0x36ed5f[_0xe3b803(0x23b)][0x0]);for(let _0x5d7200=_0x4b86ab[_0xe3b803(0x2ab)]-0x1;_0x5d7200>=0x0;_0x5d7200--){const _0x1b4173={'id':_0xe3b803(0x152),'params':{..._0x4b86ab[_0x5d7200]}},_0x4c01e1={'id':_0xe3b803(0x152),'params':{..._0x5db79f[_0x5d7200]}},_0x15d481=this[_0xe3b803(0x136)]['transformMutation'](_0x493ffb,_0x1b4173,!0x1),_0x3ee8fd=this[_0xe3b803(0x136)]['transformMutation'](_0x68c65f,_0x4c01e1,!0x1);if(_0x50e290(_0x15d481))throw _0x15d481[_0xe3b803(0x19b)];if(_0x50e290(_0x3ee8fd))throw _0x3ee8fd[_0xe3b803(0x19b)];_0x546951[_0xe3b803(0x33f)](_0x15d481['m2Prime'][_0xe3b803(0x14d)]),_0x2bd1f6[_0xe3b803(0x33f)](_0x3ee8fd['m2Prime'][_0xe3b803(0x14d)]),_0x493ffb=_0x15d481[_0xe3b803(0x2ca)],_0x68c65f=_0x3ee8fd[_0xe3b803(0x2ca)];}_0x282bbb[_0xe3b803(0x163)]({'undoCache':_0x546951,'redoCache':_0x2bd1f6});}[_0x3ec352(0x22e)](_0x2766d5){const _0x42aad1=_0x3ec352,{unitID:_0x4ed9}=_0x2766d5,_0x16a7bd=this['_renderManagerService'][_0x42aad1(0x11f)](_0x4ed9)[_0x42aad1(0x2b2)](_0x502bd3),_0x4bcd2b=_0x16a7bd['getActiveRange']();if(_0x4bcd2b==null)return;const _0x542d16=[{'id':_0x42aad1(0x152),'params':{'unitId':_0x2766d5['unitID'],'actions':null,'textRanges':[_0x4bcd2b]}}],_0x4fe615=this['_transformService'][_0x42aad1(0x1e3)](_0x2766d5,_0x542d16);if(!_0x22b4d1(_0x4fe615))throw _0x4fe615[_0x42aad1(0x19b)];const _0x5c7b7f=_0x4fe615[_0x42aad1(0x156)][0x0][_0x42aad1(0x14d)][_0x42aad1(0x263)];Array[_0x42aad1(0x16f)](_0x5c7b7f)&&_0x5c7b7f['length']&&_0x16a7bd[_0x42aad1(0x10e)](_0x5c7b7f[0x0]);}};he=dn([lt(0x0,_0x1d7b40),lt(0x1,_0x5c6014)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x3fc985,_0x9f345a,_0x4f2540,_0x3dc303)=>{const _0x12d4f6=_0x3ec352;for(var _0x5e8001=_0x3dc303>0x1?void 0x0:_0x3dc303?Sn(_0x9f345a,_0x4f2540):_0x9f345a,_0x362593=_0x3fc985[_0x12d4f6(0x2ab)]-0x1,_0x420623;_0x362593>=0x0;_0x362593--)(_0x420623=_0x3fc985[_0x362593])&&(_0x5e8001=_0x420623(_0x5e8001)||_0x5e8001);return _0x5e8001;},Le=(_0x123b94,_0x812744)=>(_0x3ea669,_0x5d6271)=>_0x812744(_0x3ea669,_0x5d6271,_0x123b94);let ue=class{constructor(_0x295dc9,_0x37d6d2,_0x20df76){const _0x43ce28=_0x3ec352;this['_injector']=_0x295dc9,this[_0x43ce28(0x136)]=_0x37d6d2,this[_0x43ce28(0x2a6)]=_0x20df76;}[_0x3ec352(0x26c)](_0x418327){const _0x7b2d07=_0x3ec352;this[_0x7b2d07(0x23e)](_0x418327);}[_0x3ec352(0x301)](_0x430d0a){const _0x587067=_0x3ec352,{unitID:_0x665a46}=_0x430d0a,{collaboration:_0xf671b7}=this[_0x587067(0x2a6)][_0x587067(0x1c7)](_0x665a46);if(_0xf671b7[_0x587067(0x2ab)]===0x0)return _0x430d0a;let _0x8f950f=_0x2aaf32[_0x587067(0x2d5)](_0x430d0a[_0x587067(0x23b)][0x0]);for(let _0x132c7a=0x0;_0x132c7a<_0xf671b7[_0x587067(0x2ab)];_0x132c7a++){const _0x4d6f44={'id':_0x587067(0x152),'params':{'unitId':_0xf671b7[_0x132c7a][_0x587067(0x191)],..._0xf671b7[_0x132c7a][_0x587067(0x2f3)]}},_0x1864f9=this['_transformService'][_0x587067(0x2c2)](_0x8f950f,_0x4d6f44,!0x1);if(_0x50e290(_0x1864f9))throw _0x1864f9['error'];_0x8f950f=_0x1864f9[_0x587067(0x2ca)];}return{..._0x2aaf32[_0x587067(0x2d5)](_0x430d0a),'mutations':[_0x8f950f]};}['_transformHistoryAndStateStack'](_0xf2fefd){const _0x36e706=_0x3ec352,{unitID:_0x48e704}=_0xf2fefd,{history:_0x14fb09,collaboration:_0x460b37}=this[_0x36e706(0x2a6)][_0x36e706(0x1c7)](_0x48e704);if(_0x14fb09[_0x36e706(0x2ab)]===0x0&&_0x460b37['length']===0x0)return;const _0x5c82a0=[],_0x1ac42e=[];let _0x221bc6=_0x2aaf32['deepClone'](_0xf2fefd[_0x36e706(0x23b)][0x0]),_0x4b6147=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd['mutations'][0x0]);for(let _0x52cc27=_0x14fb09[_0x36e706(0x2ab)]-0x1;_0x52cc27>=0x0;_0x52cc27--){const _0x42ac67={'id':_0x36e706(0x152),'params':{'unitId':_0x14fb09[_0x52cc27][_0x36e706(0x191)],..._0x14fb09[_0x52cc27][_0x36e706(0x28c)]}},_0xcb7312={'id':_0x36e706(0x152),'params':{'unitId':_0x14fb09[_0x52cc27]['unitId'],..._0x14fb09[_0x52cc27]['redoState']}},_0x776a60=this['_transformService'][_0x36e706(0x2c2)](_0x221bc6,_0x42ac67,!0x1),_0x396521=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x4b6147,_0xcb7312,!0x1);if(_0x50e290(_0x776a60))throw _0x776a60[_0x36e706(0x19b)];if(_0x50e290(_0x396521))throw _0x396521[_0x36e706(0x19b)];_0x5c82a0['unshift']({..._0x14fb09[_0x52cc27],'undoState':_0x776a60[_0x36e706(0x156)]['params'],'redoState':_0x396521[_0x36e706(0x156)][_0x36e706(0x14d)]}),_0x221bc6=_0x776a60[_0x36e706(0x2ca)],_0x4b6147=_0x396521[_0x36e706(0x2ca)];}_0x221bc6=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd[_0x36e706(0x23b)][0x0]),_0x4b6147=_0x2aaf32[_0x36e706(0x2d5)](_0xf2fefd['mutations'][0x0]);for(let _0x5600c1=_0x460b37[_0x36e706(0x2ab)]-0x1;_0x5600c1>=0x0;_0x5600c1--){const _0x4863ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x460b37[_0x5600c1]['unitId'],..._0x460b37[_0x5600c1][_0x36e706(0x28c)]}},_0x5390ae={'id':_0x36e706(0x152),'params':{'unitId':_0x460b37[_0x5600c1][_0x36e706(0x191)],..._0x460b37[_0x5600c1][_0x36e706(0x2f3)]}},_0x14ed35=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x221bc6,_0x4863ec,!0x1),_0x159030=this[_0x36e706(0x136)][_0x36e706(0x2c2)](_0x4b6147,_0x5390ae,!0x1);if(_0x50e290(_0x14ed35))throw _0x14ed35['error'];if(_0x50e290(_0x159030))throw _0x159030[_0x36e706(0x19b)];_0x1ac42e[_0x36e706(0x33f)]({..._0x460b37[_0x5600c1],'undoState':_0x14ed35[_0x36e706(0x156)][_0x36e706(0x14d)],'redoState':_0x159030[_0x36e706(0x156)][_0x36e706(0x14d)]}),_0x221bc6=_0x14ed35[_0x36e706(0x2ca)],_0x4b6147=_0x159030[_0x36e706(0x2ca)];}this['_docStateChangeManagerService'][_0x36e706(0x1ea)](_0x48e704,{'history':_0x5c82a0,'collaboration':_0x1ac42e});}};ue=In([Le(0x0,_0x4c0fac(_0x241db3)),Le(0x1,_0x1d7b40),Le(0x2,_0x4c0fac(_0x234a8a))],ue);var mn=Object[_0x3ec352(0x232)],fn=(_0x3f1c5a,_0x53b8b2,_0x476a84,_0xbc9a2f)=>{const _0x13985e=_0x3ec352;for(var _0x3b7de6=_0xbc9a2f>0x1?void 0x0:_0xbc9a2f?mn(_0x53b8b2,_0x476a84):_0x53b8b2,_0x162c06=_0x3f1c5a[_0x13985e(0x2ab)]-0x1,_0x54d3ae;_0x162c06>=0x0;_0x162c06--)(_0x54d3ae=_0x3f1c5a[_0x162c06])&&(_0x3b7de6=_0x54d3ae(_0x3b7de6)||_0x3b7de6);return _0x3b7de6;},ht=(_0x1f7959,_0x4be362)=>(_0x38c645,_0x5b8e54)=>_0x4be362(_0x38c645,_0x5b8e54,_0x1f7959);let de=class{constructor(_0x570dc2,_0x1c8f55){const _0x38ad47=_0x3ec352;this[_0x38ad47(0x344)]=_0x570dc2,this[_0x38ad47(0x136)]=_0x1c8f55;}[_0x3ec352(0x1a3)](_0x4f86b3){const _0x21ce6b=_0x3ec352;var _0x297c69;const _0x1555c0=this['_injector'][_0x21ce6b(0x264)](_0x2c81c4),_0xaef794=(_0x297c69=_0x1555c0['getDocRanges']())!=null?_0x297c69:[];if(_0xaef794['length']===0x0)return;const _0x5817ed=_0x4f86b3[_0x21ce6b(0x238)],_0xa6a1b0=[{'id':_0x21ce6b(0x152),'params':{'unitId':_0x5817ed,'actions':null,'textRanges':_0xaef794}}],_0x2e81bf=this[_0x21ce6b(0x136)][_0x21ce6b(0x1e3)](_0x4f86b3,_0xa6a1b0);if(!_0x22b4d1(_0x2e81bf))throw _0x2e81bf[_0x21ce6b(0x19b)];const _0x41b0e3=_0x2e81bf['m2Prime'][0x0][_0x21ce6b(0x14d)]['textRanges'];Array[_0x21ce6b(0x16f)](_0x41b0e3)&&_0x41b0e3[_0x21ce6b(0x2ab)]&&_0x1555c0[_0x21ce6b(0x33c)](_0x41b0e3,{'unitId':_0x5817ed,'subUnitId':_0x5817ed},!0x1);}};de=fn([ht(0x0,_0x4c0fac(_0x241db3)),ht(0x1,_0x1d7b40)],de);var gn=Object[_0x3ec352(0x232)],En=(_0x5c90b2,_0x353d79,_0x176ca0,_0x2fd5c8)=>{for(var _0x3ade86=_0x2fd5c8>0x1?void 0x0:_0x2fd5c8?gn(_0x353d79,_0x176ca0):_0x353d79,_0x1b4bb6=_0x5c90b2['length']-0x1,_0x208d83;_0x1b4bb6>=0x0;_0x1b4bb6--)(_0x208d83=_0x5c90b2[_0x1b4bb6])&&(_0x3ade86=_0x208d83(_0x3ade86)||_0x3ade86);return _0x3ade86;},U=(_0x2bf165,_0x575806)=>(_0x43ea91,_0x1bcd07)=>_0x575806(_0x43ea91,_0x1bcd07,_0x2bf165);let Se=class extends _0xbbfd04{constructor(_0x2d5d0e,_0x5b3525,_0x45de1d,_0x38e3ec,_0x48aab4,_0x1dd107,_0x30e74e,_0xb148de){const _0x41212f=_0x3ec352;super(),_(this,_0x41212f(0x2cd),new _0x16c712(_0xed7e82[_0x41212f(0x2a3)])),(this['_docStateChangeManagerService']=_0x2d5d0e,this[_0x41212f(0x354)]=_0x5b3525,this[_0x41212f(0x2cb)]=_0x45de1d,this[_0x41212f(0x35d)]=_0x38e3ec,this[_0x41212f(0x114)]=_0x48aab4,this[_0x41212f(0x307)]=_0x1dd107,this[_0x41212f(0x1df)]=_0x30e74e,this[_0x41212f(0x268)]=_0xb148de,this[_0x41212f(0x309)]());}[_0x3ec352(0x309)](){const _0x275bfc=_0x3ec352;this[_0x275bfc(0x29b)](this[_0x275bfc(0x354)][_0x275bfc(0x245)][_0x275bfc(0x261)](_0x50c4f0=>{const _0x3b0db3=_0x275bfc,_0x5c9e40=this[_0x3b0db3(0x2a6)][_0x3b0db3(0x295)][_0x3b0db3(0x261)](_0x5ae503=>{const _0x53e268=_0x3b0db3;if(_0x5ae503==null)return;const {unitId:_0x3697fb,redoState:_0x7e4c8f,commandId:_0xfc5027}=_0x5ae503;if(_0x3697fb!==_0x50c4f0[_0x53e268(0x238)])return;const _0x375b27={'id':_0xfc5027,'type':_0x2dbe42[_0x53e268(0x1d1)],'params':{'unitId':_0x3697fb,'actions':_0x7e4c8f['actions'],'textRanges':null}};_0x50c4f0['onLocalMutation'](_0x375b27);});if(_0x50c4f0[_0x3b0db3(0x29b)](_0x5c9e40),_0x50c4f0 instanceof _0x5aa8f0){const _0x5e186f={'onTransformIME':_0x745d56=>this[_0x3b0db3(0x2cb)][_0x3b0db3(0x273)](_0x745d56),'onTransformState':_0x212e76=>this[_0x3b0db3(0x35d)][_0x3b0db3(0x26c)](_0x212e76),'onTransformSelections':_0xf49515=>this[_0x3b0db3(0x114)]['transformSelections'](_0xf49515),'onSyncEditingCollabCursor':_0x49b33a=>this[_0x3b0db3(0x307)]['syncEditingCollabCursor'](_0x49b33a),'onTransformRemoteChangesetByIMECache':_0x3476b0=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3476b0),'onTransformRemoteChangesetByStateCache':_0x2898ba=>this[_0x3b0db3(0x35d)][_0x3b0db3(0x301)](_0x2898ba)};_0x50c4f0[_0x3b0db3(0x29e)](_0x5e186f);}}));}};Se=En([U(0x0,_0x4c0fac(_0x234a8a)),U(0x1,_0x4c0fac(_0x55b9c2)),U(0x2,_0x4c0fac(he)),U(0x3,_0x4c0fac(ue)),U(0x4,_0x4c0fac(de)),U(0x5,_0x4c0fac(ze)),U(0x6,_0x12f42d),U(0x7,_0x4c0fac(_0x498bd0))],Se);var Z=(_0x40fd69=>(_0x40fd69[_0x40fd69['UNDEFINED']=0x0]=_0x3ec352(0x1a9),_0x40fd69[_0x40fd69['OK']=0x1]='OK',_0x40fd69[_0x40fd69[_0x3ec352(0x170)]=0x2]=_0x3ec352(0x170),_0x40fd69[_0x40fd69['PERMISSION_DENIED']=0x3]=_0x3ec352(0x20e),_0x40fd69[_0x40fd69[_0x3ec352(0x1c2)]=0x4]=_0x3ec352(0x1c2),_0x40fd69[_0x40fd69['UNAUTHENTICATED']=0x5]=_0x3ec352(0x25e),_0x40fd69[_0x40fd69[_0x3ec352(0x1ae)]=0x6]='ALREADY_EXISTS',_0x40fd69[_0x40fd69[_0x3ec352(0x16e)]=0x7]='INVALID_ARGUMENT',_0x40fd69[_0x40fd69['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x40fd69[_0x40fd69[_0x3ec352(0x32a)]=0x9]=_0x3ec352(0x32a),_0x40fd69[_0x40fd69[_0x3ec352(0x18f)]=0xa]=_0x3ec352(0x18f),_0x40fd69[_0x40fd69['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x40fd69[_0x40fd69[_0x3ec352(0x1fe)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40fd69[_0x40fd69[_0x3ec352(0x2dd)]=0xd]=_0x3ec352(0x2dd),_0x40fd69[_0x40fd69[_0x3ec352(0x162)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x40fd69[_0x40fd69[_0x3ec352(0x2f0)]=0xf]=_0x3ec352(0x2f0),_0x40fd69[_0x40fd69[_0x3ec352(0x1d5)]=0x10]=_0x3ec352(0x1d5),_0x40fd69[_0x40fd69[_0x3ec352(0x125)]=0x64]=_0x3ec352(0x125),_0x40fd69[_0x40fd69[_0x3ec352(0x155)]=0x65]=_0x3ec352(0x155),_0x40fd69[_0x40fd69[_0x3ec352(0x160)]=0xc9]=_0x3ec352(0x160),_0x40fd69[_0x40fd69['USER_IS_ANONYMOUS']=0xca]=_0x3ec352(0x12b),_0x40fd69[_0x40fd69[_0x3ec352(0x137)]=0x1389]=_0x3ec352(0x137),_0x40fd69[_0x40fd69[_0x3ec352(0x317)]=0x1771]=_0x3ec352(0x317),_0x40fd69[_0x40fd69[_0x3ec352(0x277)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x40fd69[_0x40fd69[_0x3ec352(0x337)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x40fd69[_0x40fd69[_0x3ec352(0x2c5)]=0x1b59]='APPLY_REJECT',_0x40fd69[_0x40fd69['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3ec352(0x30a),_0x40fd69[_0x40fd69[_0x3ec352(0x22f)]=0x1b5b]=_0x3ec352(0x22f),_0x40fd69[_0x40fd69[_0x3ec352(0x343)]=0x1b5c]=_0x3ec352(0x343),_0x40fd69[_0x40fd69[_0x3ec352(0x150)]=0x1b5d]=_0x3ec352(0x150),_0x40fd69[_0x40fd69[_0x3ec352(0x12e)]=0x1f41]=_0x3ec352(0x12e),_0x40fd69[_0x40fd69[_0x3ec352(0x230)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x40fd69[_0x40fd69[_0x3ec352(0x151)]=0x232a]=_0x3ec352(0x151),_0x40fd69[_0x40fd69['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3ec352(0x1a5),_0x40fd69[_0x40fd69[_0x3ec352(0x16b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x40fd69[_0x40fd69['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3ec352(0x255),_0x40fd69[_0x40fd69[_0x3ec352(0x14c)]=0x2711]=_0x3ec352(0x14c),_0x40fd69[_0x40fd69[_0x3ec352(0x2b9)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x40fd69[_0x40fd69[_0x3ec352(0x333)]=0x2713]=_0x3ec352(0x333),_0x40fd69[_0x40fd69[_0x3ec352(0x258)]=0x2714]=_0x3ec352(0x258),_0x40fd69[_0x40fd69[_0x3ec352(0x345)]=0x271a]=_0x3ec352(0x345),_0x40fd69[_0x40fd69[_0x3ec352(0x282)]=0x271b]=_0x3ec352(0x282),_0x40fd69[_0x40fd69['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3ec352(0x20f),_0x40fd69[_0x40fd69[_0x3ec352(0x2eb)]=0x271d]=_0x3ec352(0x2eb),_0x40fd69[_0x40fd69[_0x3ec352(0x1f4)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x40fd69[_0x40fd69['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x40fd69[_0x40fd69[_0x3ec352(0x1c4)]=0x2720]=_0x3ec352(0x1c4),_0x40fd69[_0x40fd69[_0x3ec352(0x145)]=0x2af9]=_0x3ec352(0x145),_0x40fd69[_0x40fd69[_0x3ec352(0x117)]=0x2ee1]=_0x3ec352(0x117),_0x40fd69[_0x40fd69[_0x3ec352(0x147)]=0x2ee2]=_0x3ec352(0x147),_0x40fd69[_0x40fd69[_0x3ec352(0x133)]=0x2ee3]=_0x3ec352(0x133),_0x40fd69[_0x40fd69[_0x3ec352(0x209)]=0x2ee4]=_0x3ec352(0x209),_0x40fd69[_0x40fd69[_0x3ec352(0x10a)]=0x2ee5]=_0x3ec352(0x10a),_0x40fd69[_0x40fd69[_0x3ec352(0x306)]=0x32c9]=_0x3ec352(0x306),_0x40fd69[_0x40fd69[_0x3ec352(0x2fb)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x40fd69[_0x40fd69['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3ec352(0x1bd),_0x40fd69[_0x40fd69[_0x3ec352(0x13b)]=0x36b1]=_0x3ec352(0x13b),_0x40fd69[_0x40fd69[_0x3ec352(0x110)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x40fd69[_0x40fd69['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x40fd69[_0x40fd69[_0x3ec352(0x10f)]=0x36b4]=_0x3ec352(0x10f),_0x40fd69[_0x40fd69['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x40fd69[_0x40fd69['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x3ec352(0x2d9),_0x40fd69[_0x40fd69[_0x3ec352(0x1fc)]=0x36b7]=_0x3ec352(0x1fc),_0x40fd69[_0x40fd69[_0x3ec352(0x324)]=0x36b8]=_0x3ec352(0x324),_0x40fd69[_0x40fd69['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x40fd69[_0x40fd69['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3ec352(0x2ff),_0x40fd69[_0x40fd69[_0x3ec352(0x19e)]=0x3717]=_0x3ec352(0x19e),_0x40fd69[_0x40fd69['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x40fd69[_0x40fd69[_0x3ec352(0x123)]=0x3a99]=_0x3ec352(0x123),_0x40fd69[_0x40fd69['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x3ec352(0x243),_0x40fd69[_0x40fd69[_0x3ec352(0x1c0)]=0x3a9b]=_0x3ec352(0x1c0),_0x40fd69[_0x40fd69[_0x3ec352(0x2bb)]=0x3a9c]=_0x3ec352(0x2bb),_0x40fd69[_0x40fd69['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x3ec352(0x32e),_0x40fd69[_0x40fd69[_0x3ec352(0x185)]=0x3a9e]=_0x3ec352(0x185),_0x40fd69[_0x40fd69[_0x3ec352(0x275)]=0x3a9f]=_0x3ec352(0x275),_0x40fd69[_0x40fd69[_0x3ec352(0x1f9)]=0x3e81]=_0x3ec352(0x1f9),_0x40fd69[_0x40fd69[_0x3ec352(0x146)]=-0x1]=_0x3ec352(0x146),_0x40fd69))(Z||{});function vn(_0x52eaf3){const _0x1275f3=_0x3ec352;var _0x464cc8,_0x26ff56;const _0x13faf4=(_0x464cc8=_0x52eaf3[_0x1275f3(0x1f1)])==null?void 0x0:_0x464cc8['stage'],_0x529577=((_0x26ff56=_0x52eaf3[_0x1275f3(0x1f1)])==null?void 0x0:_0x26ff56[_0x1275f3(0x2dc)])||0x0;return _0x13faf4===_0x27c50c[_0x1275f3(0x1ec)]&&_0x529577>0x0;}function pn(_0x1463e3){const _0x40bb70=_0x3ec352;return _0x1463e3[_0x40bb70(0x1b9)]===_0x290d6f['SUCCESS'];}var On=Object[_0x3ec352(0x232)],Tn=(_0x3a12d4,_0x1ca3d8,_0x22591b,_0x8f6f47)=>{const _0x4bdd47=_0x3ec352;for(var _0x426852=_0x8f6f47>0x1?void 0x0:_0x8f6f47?On(_0x1ca3d8,_0x22591b):_0x1ca3d8,_0x411a3b=_0x3a12d4[_0x4bdd47(0x2ab)]-0x1,_0x114ea6;_0x411a3b>=0x0;_0x411a3b--)(_0x114ea6=_0x3a12d4[_0x411a3b])&&(_0x426852=_0x114ea6(_0x426852)||_0x426852);return _0x426852;},P=(_0x4977db,_0x243d75)=>(_0x1dc6a7,_0x2722c9)=>_0x243d75(_0x1dc6a7,_0x2722c9,_0x4977db);const Cn=_0x3ec352(0x336),Rn=_0x3ec352(0x284),Dn=_0x3ec352(0x218);let Ie=class extends _0xbbfd04{constructor(_0x29bc55,_0xdbca3e,_0x36bef3,_0x3a13d0,_0x4be349,_0x5e251e,_0x66a8dd){const _0x45e801=_0x3ec352;super(),_(this,_0x45e801(0x28f),null),_(this,_0x45e801(0x132),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x45e801(0x34a),0x0),(this[_0x45e801(0x1df)]=_0x29bc55,this[_0x45e801(0x24e)]=_0xdbca3e,this[_0x45e801(0x157)]=_0x36bef3,this[_0x45e801(0x21d)]=_0x3a13d0,this[_0x45e801(0x334)]=_0x4be349,this[_0x45e801(0x27f)]=_0x5e251e,this[_0x45e801(0x268)]=_0x66a8dd,this[_0x45e801(0x290)]());}[_0x3ec352(0x290)](){const _0xaf05b=_0x3ec352;this[_0xaf05b(0x29b)](this[_0xaf05b(0x24e)][_0xaf05b(0x1ab)]((_0x584c5d,_0x2a4114)=>{const _0x44dcf3=_0xaf05b;var _0x136886;if(_0x584c5d['id']!==_0x27aca5['id'])return;const _0x36437e=_0x584c5d[_0x44dcf3(0x14d)];if(!this[_0x44dcf3(0x28b)]((_0x136886=_0x36437e[_0x44dcf3(0x154)])!=null?_0x136886:[]))return;if(!this[_0x44dcf3(0x1f3)]())throw this['_checkAndWaitForCalculationPermission'](_0x584c5d,_0x2a4114),this[_0x44dcf3(0x202)](),new _0x3316fd();})),this[_0xaf05b(0x29b)](this[_0xaf05b(0x24e)][_0xaf05b(0x1c1)]((_0x2d5fe3,_0x26219f)=>{const _0x6173a3=_0xaf05b;if(_0x2d5fe3['id']!==_0x1bfb73['id'])return;const _0x42da30=_0x2d5fe3[_0x6173a3(0x14d)];if(vn(_0x42da30)){const _0x4e5b38=_0x1f3cf5();this[_0x6173a3(0x2bf)][_0x6173a3(0x2c7)](_0x4e5b38),this[_0x6173a3(0x220)](_0x4e5b38);}else{if(pn(_0x42da30)&&this[_0x6173a3(0x2bf)]['length']>0x0){const _0x3d4c8c=this['_taskIds'][_0x6173a3(0x2ce)]();this[_0x6173a3(0x197)](_0x3d4c8c);}}}));}[_0x3ec352(0x22c)](){const _0x5f152f=_0x3ec352;super[_0x5f152f(0x22c)](),this[_0x5f152f(0x193)](),this['_taskIds']=[],this[_0x5f152f(0x33e)]=0x0,this[_0x5f152f(0x132)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3ec352(0x326)](_0x1d1aee,_0x127a98){const _0x3fa590=_0x3ec352;for(let _0x70d0aa=0x0;_0x70d0aa<0x1e;_0x70d0aa++)try{if(await this['_getFormulaLimitStatus'](),this[_0x3fa590(0x1f3)]()){this[_0x3fa590(0x2e1)](_0x1d1aee,_0x127a98),this['_messageService'][_0x3fa590(0x1d9)]({'content':this['_localeService']['t'](_0x3fa590(0x325)),'type':_0x5187ea[_0x3fa590(0x17b)]});return;}await new Promise(_0x2efc2a=>{const _0x28cabb=_0x3fa590;this[_0x28cabb(0x28f)]=window[_0x28cabb(0x167)](_0x2efc2a,0x3e8);});}catch(_0x7a6425){this[_0x3fa590(0x27f)][_0x3fa590(0x19b)](_0x7a6425);}this[_0x3fa590(0x1df)]['show']({'content':this['_localeService']['t'](_0x3fa590(0x1c5)),'type':_0x5187ea[_0x3fa590(0x12c)]});}['_applyCommand'](_0x258b44,_0x1f7d05){const _0x13d1f2=_0x3ec352;try{this['_commandService']['executeCommand'](_0x258b44['id'],_0x258b44[_0x13d1f2(0x14d)],_0x1f7d05);}catch(_0x192f75){this['_logService'][_0x13d1f2(0x19b)](_0x192f75);}}['_setFormulaLimitStatus'](_0x17e76e,_0x121013){const _0x8a6b01=_0x3ec352;_0x121013<this[_0x8a6b01(0x34a)]||(this[_0x8a6b01(0x34a)]=_0x121013,this[_0x8a6b01(0x132)]=Number['parseInt'](_0x17e76e[_0x8a6b01(0x246)]),this[_0x8a6b01(0x33e)]=Number['parseInt'](_0x17e76e['currentUsage']));}async[_0x3ec352(0x220)](_0x593a9b){const _0x1f5a73=_0x3ec352;var _0x4a92d3,_0x6bf7d;const _0x421460=Date[_0x1f5a73(0x1bb)]();try{const _0x142429=((_0x4a92d3=this[_0x1f5a73(0x157)]['getConfig'](_0x2fa9c5))==null?void 0x0:_0x4a92d3[_0x1f5a73(0x31d)])||Rn,_0xc83e46=(await this[_0x1f5a73(0x21d)][_0x1f5a73(0x2e8)](_0x142429,{'body':JSON['stringify']({'taskId':_0x593a9b})}))['body'];if(((_0x6bf7d=_0xc83e46[_0x1f5a73(0x19b)])==null?void 0x0:_0x6bf7d[_0x1f5a73(0x27e)])!==Z['OK'])return;this[_0x1f5a73(0x1d4)](_0xc83e46[_0x1f5a73(0x12f)],_0x421460);}catch(_0x20f19b){this[_0x1f5a73(0x27f)][_0x1f5a73(0x19b)](_0x20f19b);}}async[_0x3ec352(0x267)](_0x2608c3){const _0x281302=_0x3ec352;var _0x51b098,_0x36b185;const _0x496bca=Date['now']();try{const _0x3d1392=((_0x51b098=this[_0x281302(0x157)][_0x281302(0x1d8)](_0x2fa9c5))==null?void 0x0:_0x51b098[_0x281302(0x204)])||Cn,_0x4977fc=_0x2608c3?_0x3d1392+_0x281302(0x265)+encodeURIComponent(_0x2608c3):_0x3d1392,_0x47f6a0=(await this['_httpService'][_0x281302(0x264)](_0x4977fc))[_0x281302(0x2a0)];if(((_0x36b185=_0x47f6a0[_0x281302(0x19b)])==null?void 0x0:_0x36b185[_0x281302(0x27e)])!==Z['OK'])return;this[_0x281302(0x1d4)](_0x47f6a0['limitInfo'],_0x496bca);}catch(_0x27bf11){this[_0x281302(0x27f)][_0x281302(0x19b)](_0x27bf11);}}async['_releaseCalculationLimit'](_0x14340f){const _0x4c2e8b=_0x3ec352;var _0x57e764,_0x329e8a;const _0x46330b=Date['now']();try{const _0x8a1b50=((_0x57e764=this[_0x4c2e8b(0x157)][_0x4c2e8b(0x1d8)](_0x2fa9c5))==null?void 0x0:_0x57e764['releaseFormulaLimitUrl'])||Dn,_0x349e48=(await this[_0x4c2e8b(0x21d)][_0x4c2e8b(0x2e8)](_0x8a1b50,{'body':JSON[_0x4c2e8b(0x28d)]({'taskId':_0x14340f})}))['body'];if(((_0x329e8a=_0x349e48[_0x4c2e8b(0x19b)])==null?void 0x0:_0x329e8a[_0x4c2e8b(0x27e)])!==Z['OK'])return;this[_0x4c2e8b(0x1d4)](_0x349e48[_0x4c2e8b(0x12f)],_0x46330b);}catch(_0x1a9f5b){this[_0x4c2e8b(0x27f)][_0x4c2e8b(0x19b)](_0x1a9f5b);}}[_0x3ec352(0x1f3)](){const _0x5e8152=_0x3ec352;return this[_0x5e8152(0x132)]===0x0?!0x0:this[_0x5e8152(0x132)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x5dc0c7=_0x3ec352;this[_0x5dc0c7(0x28f)]&&(clearTimeout(this[_0x5dc0c7(0x28f)]),this[_0x5dc0c7(0x28f)]=null);}[_0x3ec352(0x202)](){const _0x1a20e1=_0x3ec352;this[_0x1a20e1(0x1df)][_0x1a20e1(0x1d9)]({'content':this[_0x1a20e1(0x268)]['t'](_0x1a20e1(0x1ac)),'type':_0x5187ea['Loading']});}[_0x3ec352(0x28b)](_0x4fae1a){const _0x1b69e0=_0x3ec352;for(const _0x396cc9 of _0x4fae1a){const {unitId:_0x4658d8,sheetId:_0x4f7196,range:_0x52408d}=_0x396cc9,_0x8c3659=this[_0x1b69e0(0x334)]['getUnit'](_0x4658d8);if(!_0x8c3659)continue;const _0x4986d3=_0x8c3659[_0x1b69e0(0x20b)](_0x4f7196);if(!_0x4986d3)continue;const _0x40177a=_0x4986d3['getCellMatrix']();for(let _0xacc61e=_0x52408d['startRow'];_0xacc61e<=_0x52408d[_0x1b69e0(0x288)];_0xacc61e++)for(let _0x3d65c3=_0x52408d['startColumn'];_0x3d65c3<=_0x52408d[_0x1b69e0(0x20a)];_0x3d65c3++){const _0x4f2406=_0x40177a['getValue'](_0xacc61e,_0x3d65c3);if(_0x4f2406&&(_0x1136c8(_0x4f2406['f'])||_0x50cc37(_0x4f2406['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x4c0fac(_0x12f42d)),P(0x1,_0x234cad),P(0x2,_0x305bbd),P(0x3,_0x4c0fac(_0x90f763)),P(0x4,_0x5bb534),P(0x5,_0x54cafd),P(0x6,_0x4c0fac(_0x498bd0))],Ie);var Nn=Object[_0x3ec352(0x232)],bn=(_0x41b1f6,_0x230ae9,_0x44b963,_0x324a02)=>{const _0x40aaab=_0x3ec352;for(var _0x219fac=_0x324a02>0x1?void 0x0:_0x324a02?Nn(_0x230ae9,_0x44b963):_0x230ae9,_0x552917=_0x41b1f6[_0x40aaab(0x2ab)]-0x1,_0x5c0f9b;_0x552917>=0x0;_0x552917--)(_0x5c0f9b=_0x41b1f6[_0x552917])&&(_0x219fac=_0x5c0f9b(_0x219fac)||_0x219fac);return _0x219fac;},Ue=(_0x355a61,_0x1dee74)=>(_0x5eb698,_0x32f2d0)=>_0x1dee74(_0x5eb698,_0x32f2d0,_0x355a61);function _0x437b(_0x485937,_0x3ce060){_0x485937=_0x485937-0x109;const _0x25ec54=_0x25ec();let _0x437bda=_0x25ec54[_0x485937];return _0x437bda;}let He=class extends _0xbbfd04{constructor(_0x1d91ea,_0x5b46b1,_0x35f56b){const _0x135d4b=_0x3ec352;super(),_(this,_0x135d4b(0x1ee),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x135d4b(0x157)]=_0x1d91ea,this[_0x135d4b(0x18b)]=_0x5b46b1,this[_0x135d4b(0x17d)]=_0x35f56b);}['disableLocalCache'](){const _0x4cc504=_0x3ec352;this[_0x4cc504(0x135)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x3ec352(0x2b5)](){const _0x420850=_0x3ec352;return this[_0x420850(0x169)];}['dispose'](){const _0x5c9dcf=_0x3ec352;this[_0x5c9dcf(0x2fe)]()[_0x5c9dcf(0x28e)](()=>super['dispose']());}async[_0x3ec352(0x29a)](_0xf9ba17){const _0x99df8=_0x3ec352;return this['_disabled']?null:this[_0x99df8(0x18b)][_0x99df8(0x126)](_0x4cf3d4(_0xf9ba17));}async[_0x3ec352(0x129)](_0x5e257a,_0x4031e1){const _0x8071b9=_0x3ec352;return!!this[_0x8071b9(0x18b)][_0x8071b9(0x2ef)](_0x5e257a,_0x4031e1);}[_0x3ec352(0x141)](_0x90a1e0,_0x132b28,_0x2d334a,_0x277067){const _0x5c6102=_0x3ec352,_0x1bdd4b=this[_0x5c6102(0x17d)][_0x5c6102(0x35c)](_0x90a1e0);this[_0x5c6102(0x1ee)][_0x5c6102(0x1a7)](_0x90a1e0,{'unitID':_0x90a1e0,'type':_0x132b28,'awaitingChangeset':_0x2d334a,'mutations':_0x277067,'rev':_0x1bdd4b}),this[_0x5c6102(0x169)][_0x5c6102(0x177)](_0x90a1e0)||this[_0x5c6102(0x194)](_0x90a1e0);}[_0x3ec352(0x194)](_0x15541b){const _0x13d6ee=_0x3ec352,_0x43cb76=this[_0x13d6ee(0x226)]();_0x43cb76===0x0?this[_0x13d6ee(0x2f5)](_0x15541b):this[_0x13d6ee(0x169)][_0x13d6ee(0x1a7)](_0x15541b,setTimeout(()=>this[_0x13d6ee(0x2f5)](_0x15541b),_0x43cb76));}[_0x3ec352(0x226)](){const _0x2c8b1a=_0x3ec352;var _0x506226;return(_0x506226=this[_0x2c8b1a(0x157)][_0x2c8b1a(0x1d8)](_0xb0b56))!=null?_0x506226:_0x161007;}[_0x3ec352(0x2f5)](_0x22343a){const _0x11adaf=_0x3ec352,_0x4c53d2=this[_0x11adaf(0x169)][_0x11adaf(0x264)](_0x22343a);return _0x4c53d2!==void 0x0&&window['clearTimeout'](_0x4c53d2),this[_0x11adaf(0x18b)]['setItem'](_0x4cf3d4(_0x22343a),this[_0x11adaf(0x1ee)][_0x11adaf(0x264)](_0x22343a))[_0x11adaf(0x28e)](()=>this['_saveTaskMap'][_0x11adaf(0x278)](_0x22343a));}async['exhaustSavingTask'](){const _0x26a2e4=_0x3ec352,_0x250b2f=[];this['_saveTaskMap']['forEach']((_0x226f57,_0x50c3ae)=>{const _0x526280=_0x437b;window[_0x526280(0x2e9)](_0x226f57),_0x250b2f['push'](this[_0x526280(0x2f5)](_0x50c3ae)[_0x526280(0x28e)](()=>{const _0x10f71d=_0x526280;this[_0x10f71d(0x169)][_0x10f71d(0x278)](_0x50c3ae);}));}),await Promise[_0x26a2e4(0x159)](_0x250b2f);}};He=bn([Ue(0x0,_0x305bbd),Ue(0x1,_0x465dbb),Ue(0x2,_0x4c0fac(_0x409ba3))],He);class Ln extends _0x4e9bf2{constructor(){const _0x44160b=_0x3ec352;super(),_(this,_0x44160b(0x1e7)),this[_0x44160b(0x1e7)]=_0x27f9ea(window,'popstate')[_0x44160b(0x1cf)](_0x451ca1(this[_0x44160b(0x24c)]),_0x504a7c(0x1),_0x13be9d(void 0x0));}['setParam'](_0x172ce7,_0x485a49,_0x1a8f97=!0x1){const _0xa722dd=_0x3ec352,_0x2156db=new URL(window[_0xa722dd(0x143)][_0xa722dd(0x1d3)]);_0x2156db['searchParams'][_0xa722dd(0x1a7)](_0x172ce7,_0x485a49),_0x1a8f97?window[_0xa722dd(0x23a)]['replaceState']('','',_0x2156db[_0xa722dd(0x118)]()):window[_0xa722dd(0x23a)]['pushState']('','',_0x2156db['toString']());}['removeParam'](_0x204cb2,_0x545108=!0x1){const _0x497734=_0x3ec352,_0x3ede6b=new URL(window['location'][_0x497734(0x1d3)]);_0x3ede6b['searchParams'][_0x497734(0x278)](_0x204cb2),_0x545108?window[_0x497734(0x23a)][_0x497734(0x239)]('','',_0x3ede6b[_0x497734(0x118)]()):window['history']['pushState']('','',_0x3ede6b[_0x497734(0x118)]());}[_0x3ec352(0x2c4)](_0x520c21){const _0x2d1ea7=_0x3ec352;var _0x303fbd;return(_0x303fbd=new URL(window[_0x2d1ea7(0x143)][_0x2d1ea7(0x1d3)])[_0x2d1ea7(0x355)][_0x2d1ea7(0x264)](_0x520c21))!=null?_0x303fbd:void 0x0;}}var Un=Object[_0x3ec352(0x16d)],Mn=Object[_0x3ec352(0x232)],An=(_0x1afb1b,_0x5577ad,_0x2117fe)=>_0x5577ad in _0x1afb1b?Un(_0x1afb1b,_0x5577ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2117fe}):_0x1afb1b[_0x5577ad]=_0x2117fe,Pn=(_0x214f6,_0x23cce3,_0x229e5a,_0x22c003)=>{const _0x5da74f=_0x3ec352;for(var _0x189337=_0x22c003>0x1?void 0x0:_0x22c003?Mn(_0x23cce3,_0x229e5a):_0x23cce3,_0x1ea1cb=_0x214f6[_0x5da74f(0x2ab)]-0x1,_0x33458a;_0x1ea1cb>=0x0;_0x1ea1cb--)(_0x33458a=_0x214f6[_0x1ea1cb])&&(_0x189337=_0x33458a(_0x189337)||_0x189337);return _0x189337;},Me=(_0x6bd5a2,_0x3b47a8)=>(_0x20b9f1,_0x435ada)=>_0x3b47a8(_0x20b9f1,_0x435ada,_0x6bd5a2),wn=(_0x4427a0,_0x367d4a,_0x55672b)=>An(_0x4427a0,_0x367d4a+'',_0x55672b);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x5d525e{constructor(_0x4d35b7=_t,_0x3f06b8,_0x41875e,_0x4b65d5){const _0x211de3=_0x3ec352;super(),this['_config']=_0x4d35b7,this[_0x211de3(0x2ec)]=_0x3f06b8,this[_0x211de3(0x344)]=_0x41875e,this['_configService']=_0x4b65d5;const {..._0x38c01d}=_0x286f03({},_t,this[_0x211de3(0x2a1)]);this[_0x211de3(0x157)]['setConfig'](hn,_0x38c01d);}['onStarting'](){const _0x3ec21c=_0x3ec352;this[_0x3ec21c(0x2b3)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3ec352(0x2b3)](){const _0x2bf03b=_0x3ec352;var _0x20b50b;const _0x49ef4b=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x3c33c4,{'useClass':_0x5d4b34}],[_0x223ca0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2bf03b(0x2a1)][_0x2bf03b(0x1b8)]&&_0x49ef4b['push']([le]),_0x5ffac1(this[_0x2bf03b(0x344)],_0x25bca4(_0x49ef4b,(_0x20b50b=this[_0x2bf03b(0x2a1)])==null?void 0x0:_0x20b50b['override']));}['_registerRenderDependencies'](){const _0xf9e988=_0x3ec352;this[_0xf9e988(0x29b)](this[_0xf9e988(0x2ec)][_0xf9e988(0x30c)](_0x560022[_0xf9e988(0x272)],[Fe])),this[_0xf9e988(0x29b)](this[_0xf9e988(0x2ec)]['registerRenderModule'](_0x560022[_0xf9e988(0x33b)],[ke]));}['_initDependencies'](){const _0x313329=_0x3ec352;_0x2983e0(this[_0x313329(0x344)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x313329(0x2a1)][_0x313329(0x1b8)]&&_0x2983e0(this[_0x313329(0x344)],[[le]]);}};wn(Ye,_0x3ec352(0x2bc),yn),Ye=Pn([_0x584864(_0x303e23),Me(0x1,_0x5c6014),Me(0x2,_0x4c0fac(_0x241db3)),Me(0x3,_0x305bbd)],Ye);var $n=Object[_0x3ec352(0x232)],xn=(_0x1b63fa,_0x34161a,_0x524dee,_0x1ddbcf)=>{const _0x37bd0b=_0x3ec352;for(var _0x484cc7=_0x1ddbcf>0x1?void 0x0:_0x1ddbcf?$n(_0x34161a,_0x524dee):_0x34161a,_0x5bbcfa=_0x1b63fa[_0x37bd0b(0x2ab)]-0x1,_0x19f6c8;_0x5bbcfa>=0x0;_0x5bbcfa--)(_0x19f6c8=_0x1b63fa[_0x5bbcfa])&&(_0x484cc7=_0x19f6c8(_0x484cc7)||_0x484cc7);return _0x484cc7;},J=(_0x46c391,_0x2e7d78)=>(_0x276aab,_0x2467df)=>_0x2e7d78(_0x276aab,_0x2467df,_0x46c391);let ut=class extends _0xf24f53{constructor(_0x32acee,_0x3af245,_0x5db671,_0x585904,_0x98102a){super(_0x32acee,_0x3af245,_0x5db671,_0x585904,_0x98102a);}async['createSocket'](_0x5da39b){const _0x56617d=await this['_getSessionTicket'](),_0x1f6418=this['_createSocketURL'](_0x5da39b,_0x56617d);return this['_doCreateSocket'](_0x1f6418);}[_0x3ec352(0x251)](_0x270b4e,_0x59e8ed){const _0x20dbd9=_0x3ec352,_0x2b1438=typeof window>'u'?new URL(_0x270b4e):new URL(_0x270b4e,window['location'][_0x20dbd9(0x240)]);_0x2b1438[_0x20dbd9(0x355)][_0x20dbd9(0x1a7)](_0x20dbd9(0x2ee),_0x59e8ed);const _0x3a858b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x20dbd9(0x143)][_0x20dbd9(0x2a4)]);return _0x3a858b[_0x20dbd9(0x264)](_0x20dbd9(0x148))&&_0x2b1438['searchParams'][_0x20dbd9(0x1a7)]('runId',_0x3a858b['get'](_0x20dbd9(0x148))),_0x2b1438[_0x20dbd9(0x118)]();}async['_getSessionTicket'](){const _0x1a7529=_0x3ec352;var _0x5dab59,_0xce5feb,_0x3e955c;const _0x1a3816=this['_configService']['getConfig'](_0x2fa9c5),_0x5b15c2=(_0x5dab59=_0x1a3816==null?void 0x0:_0x1a3816[_0x1a7529(0x1c6)])!=null?_0x5dab59:_0x66e85b;return(_0x3e955c=(_0xce5feb=(await this[_0x1a7529(0x21d)][_0x1a7529(0x264)](_0x5b15c2,{'headers':{'Content-Type':_0x1a7529(0x23f)}}))['body'])==null?void 0x0:_0xce5feb[_0x1a7529(0x1b1)])!=null?_0x3e955c:'';}};ut=xn([J(0x0,_0x4c0fac(_0x241db3)),J(0x1,_0x4c0fac(_0x90f763)),J(0x2,_0x305bbd),J(0x3,_0x54cafd),J(0x4,_0x4a8570)],ut);var Bn=Object[_0x3ec352(0x232)],Fn=(_0x241b06,_0x273f93,_0x58489f,_0x569842)=>{const _0x2957f1=_0x3ec352;for(var _0x9b55dd=_0x569842>0x1?void 0x0:_0x569842?Bn(_0x273f93,_0x58489f):_0x273f93,_0x302ef8=_0x241b06[_0x2957f1(0x2ab)]-0x1,_0x5d7f2f;_0x302ef8>=0x0;_0x302ef8--)(_0x5d7f2f=_0x241b06[_0x302ef8])&&(_0x9b55dd=_0x5d7f2f(_0x9b55dd)||_0x9b55dd);return _0x9b55dd;},Ae=(_0x843cfa,_0xa27608)=>(_0x5a7a80,_0x4c6f08)=>_0xa27608(_0x5a7a80,_0x4c6f08,_0x843cfa);let dt=class extends _0xbbfd04{constructor(_0x58fbf7,_0x57e5ab,_0x1018fc){const _0xaed001=_0x3ec352;super(),this[_0xaed001(0x178)]=_0x58fbf7,this['_httpService']=_0x57e5ab,this[_0xaed001(0x157)]=_0x1018fc;}async['runOnServer'](_0x34c391,_0x5f3066,_0x331855,..._0x4b84ab){const _0x176872=_0x3ec352;var _0xe95614,_0x58c324,_0x538813,_0x3c4705;const _0x5b376f=this[_0x176872(0x178)][_0x176872(0x274)]();if(!_0x5b376f)throw new Error(_0x176872(0x10d));const _0x2ad66a=((_0xe95614=this[_0x176872(0x157)]['getConfig'](_0x5c50fc))!=null?_0xe95614:_0x38e1dc)+'/'+_0x34c391+_0x176872(0x10c)+_0x5f3066,_0x4ecc75=new URL(window[_0x176872(0x143)][_0x176872(0x1d3)]),_0x1b4d0d={'scriptId':_0x34c391,'runId':(_0x58c324=_0x4ecc75['searchParams'][_0x176872(0x264)](_0x176872(0x148)))!=null?_0x58c324:'','function':_0x5f3066,'unitId':_0x5b376f[_0x176872(0x15c)](),'argsOfFunction':JSON[_0x176872(0x28d)](_0x4b84ab),'invokeId':(_0x538813=_0x331855[_0x176872(0x32b)])!=null?_0x538813:'','executionId':(_0x3c4705=_0x331855[_0x176872(0x2f8)])!=null?_0x3c4705:''};try{const _0x3e45ec=await this[_0x176872(0x21d)]['post'](_0x2ad66a,{'body':_0x1b4d0d});return _0x3e45ec[_0x176872(0x2a0)]['error']&&_0x3e45ec[_0x176872(0x2a0)]['error'][_0x176872(0x27e)]!==Z['OK']?_0x176872(0x19d):_0x3e45ec[_0x176872(0x2a0)][_0x176872(0x359)];}catch{return _0x176872(0x19d);}}};dt=Fn([Ae(0x0,_0x5bb534),Ae(0x1,_0x4c0fac(_0x90f763)),Ae(0x2,_0x305bbd)],dt);const St=0x7530,It=_0x3ec352(0x30f);class rr extends _0xbbfd04{constructor(){const _0x35e61e=_0x3ec352;super(),_(this,_0x35e61e(0x175),_0x1f3cf5()),_(this,_0x35e61e(0x207),new Set()),_(this,_0x35e61e(0x237),new Map()),_(this,_0x35e61e(0x269),null),_(this,_0x35e61e(0x231),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}[_0x3ec352(0x22c)](){const _0x2ebc81=_0x3ec352;super['dispose'](),this[_0x2ebc81(0x231)][_0x2ebc81(0x2af)]((_0x21ac7c,_0x5f2219)=>this['_removeClearOtherTimer'](_0x5f2219)),this[_0x2ebc81(0x269)]&&window[_0x2ebc81(0x1be)](this[_0x2ebc81(0x269)]);}[_0x3ec352(0x223)](_0x4cfe0d){const _0x271f9c=_0x3ec352;return this[_0x271f9c(0x242)](_0x4cfe0d)['pipe'](_0xb831());}[_0x3ec352(0x2a2)](_0x26f37b){const _0x337dbe=_0x3ec352;this['_selfUnitIDs'][_0x337dbe(0x310)]===0x0&&this[_0x337dbe(0x1a1)](),this[_0x337dbe(0x207)][_0x337dbe(0x338)](_0x26f37b),this[_0x337dbe(0x319)]({'type':0x0,'memberID':this[_0x337dbe(0x175)],'unitIDs':[_0x26f37b],'isForwarded':!0x1});}[_0x3ec352(0x115)](_0x48145a){const _0xb95d82=_0x3ec352;this[_0xb95d82(0x207)][_0xb95d82(0x278)](_0x48145a),this[_0xb95d82(0x207)][_0xb95d82(0x310)]===0x0&&this[_0xb95d82(0x269)]&&window[_0xb95d82(0x1be)](this[_0xb95d82(0x269)]);}[_0x3ec352(0x113)](){const _0x3cb49a=_0x3ec352;this[_0x3cb49a(0x29b)](_0x2c5ac1(_0x27f9ea(window,_0x3cb49a(0x276))[_0x3cb49a(0x261)](_0x1a7ba3=>{const _0x2a2e32=_0x3cb49a;if(_0x1a7ba3[_0x2a2e32(0x122)]!==It||!_0x1a7ba3[_0x2a2e32(0x25c)])return;const _0x3c11cf=JSON[_0x2a2e32(0x34d)](_0x1a7ba3[_0x2a2e32(0x25c)]);this['_handleEvent'](_0x3c11cf);}))),window[_0x3cb49a(0x1f5)](_0x3cb49a(0x217),()=>this[_0x3cb49a(0x319)]({'type':0x1,'memberID':this[_0x3cb49a(0x175)],'unitIDs':Array[_0x3cb49a(0x1a4)](this[_0x3cb49a(0x207)])}));}[_0x3ec352(0x1f6)](_0x1d7125){const _0x83de07=_0x3ec352;switch(_0x1d7125[_0x83de07(0x35e)]){case 0x0:this[_0x83de07(0x262)](_0x1d7125);break;case 0x1:this[_0x83de07(0x1b0)](_0x1d7125);break;case 0x2:this[_0x83de07(0x2d1)](_0x1d7125);break;}}['_handleJoinEvent'](_0x36d367){const _0xd4943e=_0x3ec352,{unitIDs:_0x6d406a,memberID:_0x1be3c5,isForwarded:_0x150d7f}=_0x36d367;_0x6d406a[_0xd4943e(0x2af)](_0x1675fa=>{const _0x276704=_0xd4943e;if(!_0x150d7f&&this[_0x276704(0x237)][_0x276704(0x177)](_0x1675fa)&&this[_0x276704(0x242)](_0x1675fa)[_0x276704(0x32d)](_0x5c1bd0['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x276704(0x177)](_0x1675fa)||!this['_unitOnClients']['get'](_0x1675fa)[_0x276704(0x177)](_0x1be3c5)){const _0x3e1e9a=this[_0x276704(0x237)][_0x276704(0x264)](_0x1675fa)||new Set();_0x3e1e9a['add'](_0x1be3c5),this[_0x276704(0x237)]['set'](_0x1675fa,_0x3e1e9a),this['_scheduleClearOtherTimer'](_0x1be3c5);}}),_0x150d7f||this[_0xd4943e(0x319)]({'type':0x0,'memberID':this[_0xd4943e(0x175)],'unitIDs':[...this[_0xd4943e(0x207)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x6e1240){const _0x5d0e0d=_0x3ec352;this[_0x5d0e0d(0x1f0)](_0x6e1240);const _0x487078=window[_0x5d0e0d(0x167)](()=>{const _0x449cff=_0x5d0e0d;this['_unitOnClients'][_0x449cff(0x2af)](_0x2ca13c=>{const _0x28f588=_0x449cff;_0x2ca13c[_0x28f588(0x278)](_0x6e1240);});},St*0x2);this[_0x5d0e0d(0x231)][_0x5d0e0d(0x1a7)](_0x6e1240,_0x487078);}[_0x3ec352(0x1f0)](_0x3ff7de){const _0x4bd5e4=_0x3ec352;if(this[_0x4bd5e4(0x231)][_0x4bd5e4(0x177)](_0x3ff7de)){const _0x431656=this[_0x4bd5e4(0x231)][_0x4bd5e4(0x264)](_0x3ff7de);_0x431656&&window[_0x4bd5e4(0x2e9)](_0x431656),this[_0x4bd5e4(0x231)]['set'](_0x3ff7de,null);}}[_0x3ec352(0x1b0)](_0x43ec3b){const _0x25cb2a=_0x3ec352,{memberID:_0x457535,unitIDs:_0xc7a95f}=_0x43ec3b;_0xc7a95f[_0x25cb2a(0x2af)](_0x357326=>{const _0xbee4ff=_0x25cb2a;var _0xf9ec68;const _0x3564b6=this[_0xbee4ff(0x237)][_0xbee4ff(0x264)](_0x357326);_0x3564b6&&(_0x3564b6['delete'](_0x457535),(_0xf9ec68=this[_0xbee4ff(0x242)](_0x357326))==null||_0xf9ec68[_0xbee4ff(0x32d)](_0x3564b6[_0xbee4ff(0x310)]===0x0?_0x5c1bd0['NO_OTHER_CLIENTS_EDITING']:_0x5c1bd0[_0xbee4ff(0x21a)]));}),this[_0x25cb2a(0x1f0)](_0x457535);}[_0x3ec352(0x2d1)](_0x49f12c){const _0x7fa9b=_0x3ec352;this[_0x7fa9b(0x2cf)](_0x49f12c[_0x7fa9b(0x24a)]);}['_send'](_0x4fdabd){const _0x242c38=_0x3ec352;localStorage[_0x242c38(0x2ef)](It,JSON[_0x242c38(0x28d)](_0x4fdabd));}[_0x3ec352(0x1a1)](){const _0x500938=_0x3ec352;this[_0x500938(0x269)]=window[_0x500938(0x20c)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},St);}[_0x3ec352(0x242)](_0x21837f){const _0x37c692=_0x3ec352;return this[_0x37c692(0x1c3)][_0x37c692(0x177)](_0x21837f)||this[_0x37c692(0x1c3)][_0x37c692(0x1a7)](_0x21837f,new _0x16c712(_0x5c1bd0[_0x37c692(0x291)])),this[_0x37c692(0x1c3)][_0x37c692(0x264)](_0x21837f);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|
|
1
|
+
const _0x12f7be=_0x473f;function _0x473f(_0x3ab86e,_0x485d35){_0x3ab86e=_0x3ab86e-0xb0;const _0x919a54=_0x919a();let _0x473f33=_0x919a54[_0x3ab86e];return _0x473f33;}(function(_0x51d400,_0x3876c8){const _0x4081f2=_0x473f,_0x22a72e=_0x51d400();while(!![]){try{const _0x46c6ed=parseInt(_0x4081f2(0x27c))/0x1*(parseInt(_0x4081f2(0xfe))/0x2)+parseInt(_0x4081f2(0x131))/0x3+parseInt(_0x4081f2(0x1bf))/0x4+parseInt(_0x4081f2(0x10a))/0x5*(parseInt(_0x4081f2(0x182))/0x6)+parseInt(_0x4081f2(0x13e))/0x7+-parseInt(_0x4081f2(0x2e1))/0x8+-parseInt(_0x4081f2(0x1fb))/0x9;if(_0x46c6ed===_0x3876c8)break;else _0x22a72e['push'](_0x22a72e['shift']());}catch(_0x3082e1){_0x22a72e['push'](_0x22a72e['shift']());}}}(_0x919a,0xb419b));var Yt=Object[_0x12f7be(0x265)],Wt=(_0x14c1d3,_0xabc033,_0x14663f)=>_0xabc033 in _0x14c1d3?Yt(_0x14c1d3,_0xabc033,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14663f}):_0x14c1d3[_0xabc033]=_0x14663f,_=(_0x4d5ab6,_0x173480,_0x25ebf4)=>Wt(_0x4d5ab6,typeof _0x173480!=_0x12f7be(0x10b)?_0x173480+'':_0x173480,_0x25ebf4);import{jsx as _0x113f07,jsxs as _0x1eecd1}from'react/jsx-runtime';import{CollaborationStatus as _0x2a0d66,CollaborationSessionService as _0x3c5e90,CollaborationController as _0x41819a,DataLoaderService as _0x48f288,MemberService as _0xa7c392,SessionStatus as _0x434c9d,ILocalCacheService as _0x381fc8,CollaborationUIEventService as _0x4cdc9c,CollaborationUIEventId as _0x45a0bb,DocCollaborationEntity as _0x2f6c55,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c1c8f,getLocalCacheKey as _0x193170,LOCAL_CACHE_INTERVAL as _0x41a768,LOCAL_CACHE_INTERVAL_KEY as _0x1d75b1,UniverCollaborationClientPlugin as _0x2e3618,CollaborationSocketService as _0x5012d6,DEFAULT_WS_SESSION_TICKET_URL as _0x29d557,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x587df1,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x499824,UnitStatus as _0x4d3796}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x35b6c7,IUniverInstanceService as _0x52d51e,Inject as _0x3714f8,Injector as _0x24a160,Disposable as _0x112363,createIdentifier as _0x21b651,ILogService as _0x36e10f,ICommandService as _0x58f12e,Optional as _0x4a5b34,RxDisposable as _0x53e01a,Workbook as _0x137b01,DOC_RANGE_TYPE as _0x6ed74f,debounce as _0x5a1035,Rectangle as _0x3fed9b,DisposableCollection as _0x4284de,toDisposable as _0x16c8e4,UniverInstanceType as _0x53cd3e,generateRandomId as _0x28ef98,COLORS as _0x5c8de6,ColorKit as _0x376a8e,ThemeService as _0x252ee3,fromEventSubject as _0x535589,Tools as _0x4dbc53,CommandType as _0x1de431,IConfigService as _0x5a741e,CanceledError as _0x24cc76,isFormulaString as _0x371c6c,isFormulaId as _0x2bd85a,ILocalStorageService as _0x5e3c18,DependentOn as _0x1999b3,Plugin as _0x5affa2,merge as _0x537f2b,registerDependencies as _0x358fe2,mergeOverrideWithDependencies as _0x2cd5a1,touchDependencies as _0x48ed1d}from'@univerjs/core';import{useObservable as _0x368c28,useDependency as _0x5911c2,IUIPartsService as _0x1e6b0c,BuiltInUIPart as _0x5a54ac,connectInjector as _0x4e04ea,IBeforeCloseService as _0x3e8c86,IMessageService as _0x543869,INotificationService as _0x4d19e9}from'@univerjs/ui';import{BehaviorSubject as _0x51f523,switchMap as _0x55969c,of as _0x1ec186,takeUntil as _0x4da0bf,debounceTime as _0x19303b,Subject as _0x1fac1f,filter as _0x24339d,merge as _0x826d92,combineLatest as _0x48aeb3,fromEvent as _0x45269d,shareReplay as _0x528417,mapTo as _0x84d373,distinctUntilChanged as _0x332830}from'rxjs';import{Tooltip as _0x40dc63,clsx as _0xee85e0,MessageType as _0x4bbdcc}from'@univerjs/design';import{useRef as _0x48b388,createElement as _0x1773bb,forwardRef as _0x374bc5,useCallback as _0x48404f}from'react';import{IRemoteInstanceService as _0x136b48}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x280b7c,RefRangeService as _0xe3159f,SetSelectionsOperation as _0x25f058,SheetsSelectionsService as _0x5bbf8d,EffectRefRangId as _0x4eb700,handleIRemoveRow as _0x44c162,handleIRemoveCol as _0x3dbb55,handleMoveRange as _0x221e69,handleInsertRow as _0x44d812,handleInsertRangeMoveRight as _0x554330,handleInsertRangeMoveDown as _0x3fbd49,handleInsertCol as _0x3f84c9,handleDeleteRangeMoveUp as _0x5e9d7d,handleDeleteRangeMoveLeft as _0x16e40f,runRefRangeMutations as _0x908350}from'@univerjs/sheets';import{Shape as _0x453ad9,Rect as _0xf6029d,getColor as _0x51fc9e,RegularPolygon as _0x6842e7,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x19edf3,Vector2 as _0x20bdbd,SHEET_VIEWPORT_KEY as _0x1db3ff,IRenderManagerService as _0x4ae0f1}from'@univerjs/engine-render';import{HTTPService as _0x1ef343,ISocketService as _0x333b75,WebSocketService as _0x12b10a}from'@univerjs/network';import{IDocClipboardService as _0x392901,NodePositionConvertToCursor as _0x5a7e88,NodePositionConvertToRectRange as _0x506f46,TEXT_RANGE_LAYER_INDEX as _0x4df622,SetDocZoomRatioOperation as _0xea9b01,DocIMEInputManagerService as _0x5d750a,DocStateChangeManagerService as _0xc26da3}from'@univerjs/docs-ui';import{IImageIoService as _0x1e7b2a}from'@univerjs/drawing';import{ITransformService as _0x5963ba,CollaborationEvent as _0x38e1b2,isTransformMutationFailure as _0x594698,isTransformMutationsWithChangesetSuccess as _0xcbda0,RevisionService as _0x17c8fb,ISnapshotServerService as _0x479bb3}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x16b06b,RichTextEditingMutation as _0x105f6f,DocSelectionManagerService as _0x299386,DocSkeletonManagerService as _0x17ec67}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1513e7,serializeRangeWithSheet as _0x269cf9,FormulaExecuteStageType as _0x252b95,FormulaExecutedStateType as _0x84f645,SetFormulaCalculationStartMutation as _0x576576,SetFormulaCalculationNotificationMutation as _0x554e96}from'@univerjs/engine-formula';import{map as _0x2da2ce,filter as _0x57f830,throttleTime as _0x58940e,takeUntil as _0x5894b4,switchMap as _0x1fb447}from'rxjs/operators';import{SheetSkeletonManagerService as _0x498a70,getCoordByCell as _0x30bc8b,getSheetObject as _0x5bfd58}from'@univerjs/sheets-ui';function Ge({ref:_0x54291e,..._0x241bea}){const _0x406c15=_0x12f7be,{icon:_0x5a965f,id:_0x2e2ab2,className:_0x5051be,extend:_0x17a17b,..._0x15162f}=_0x241bea,_0x3bcf9f=('univerjs-icon\x20univerjs-icon-'+_0x2e2ab2+'\x20'+(_0x5051be||''))[_0x406c15(0x20f)](),_0x2be787=_0x48b388('_'+vi());return At(_0x5a965f,''+_0x2e2ab2,{'defIds':_0x5a965f[_0x406c15(0x271)],'idSuffix':_0x2be787[_0x406c15(0x1eb)]},{'ref':_0x54291e,'className':_0x3bcf9f,..._0x15162f},_0x17a17b);}function At(_0x48337c,_0x8fdcfa,_0x1aae2a,_0x4886cf,_0x37bae4){const _0x482f46=_0x12f7be;return _0x1773bb(_0x48337c[_0x482f46(0xb1)],{'key':_0x8fdcfa,...gi(_0x48337c,_0x1aae2a,_0x37bae4),..._0x4886cf},(Ei(_0x48337c,_0x1aae2a)['children']||[])[_0x482f46(0x2ae)]((_0x5701bd,_0x503352)=>At(_0x5701bd,_0x8fdcfa+'-'+_0x48337c['tag']+'-'+_0x503352,_0x1aae2a,void 0x0,_0x37bae4)));}function gi(_0x1a639a,_0x106a49,_0x3f4a77){const _0x100204=_0x12f7be,_0x221261={..._0x1a639a[_0x100204(0x1da)]};_0x3f4a77!=null&&_0x3f4a77[_0x100204(0x1bb)]&&_0x221261['fill']===_0x100204(0x1bb)&&(_0x221261[_0x100204(0x26a)]=_0x3f4a77[_0x100204(0x1bb)]),_0x1a639a[_0x100204(0xb1)]===_0x100204(0x1d6)&&_0x221261['id']&&(_0x221261['id']=_0x221261['id']+_0x106a49[_0x100204(0x2a4)]),Object[_0x100204(0xd5)](_0x221261)[_0x100204(0x275)](([_0x16ae69,_0x221fa8])=>{const _0x11cbf2=_0x100204;_0x16ae69==='mask'&&typeof _0x221fa8==_0x11cbf2(0x2b2)&&(_0x221261[_0x16ae69]=_0x221fa8[_0x11cbf2(0xba)](/url\(#(.*)\)/,_0x11cbf2(0x2b4)+_0x106a49[_0x11cbf2(0x2a4)]+')'));});const {defIds:_0x45398a}=_0x106a49;return!_0x45398a||_0x45398a[_0x100204(0x1c8)]===0x0||(_0x1a639a['tag']==='use'&&_0x221261[_0x100204(0x1b4)]&&(_0x221261[_0x100204(0x1b4)]=_0x221261[_0x100204(0x1b4)]+_0x106a49[_0x100204(0x2a4)]),Object[_0x100204(0xd5)](_0x221261)[_0x100204(0x275)](([_0x37688a,_0x313bb4])=>{const _0x13d8f2=_0x100204;typeof _0x313bb4==_0x13d8f2(0x2b2)&&(_0x221261[_0x37688a]=_0x313bb4[_0x13d8f2(0xba)](/url\(#(.*)\)/,_0x13d8f2(0x2b4)+_0x106a49[_0x13d8f2(0x2a4)]+')'));})),_0x221261;}function Ei(_0x3d723b,_0x402667){const _0xc86db6=_0x12f7be;var _0x56acb2;const {defIds:_0x272e3e}=_0x402667;return!_0x272e3e||_0x272e3e[_0xc86db6(0x1c8)]===0x0?_0x3d723b:_0x3d723b[_0xc86db6(0xb1)]===_0xc86db6(0x272)&&((_0x56acb2=_0x3d723b['children'])!=null&&_0x56acb2[_0xc86db6(0x1c8)])?{..._0x3d723b,'children':_0x3d723b[_0xc86db6(0x186)][_0xc86db6(0x2ae)](_0x31ea3c=>typeof _0x31ea3c['attrs']['id']=='string'&&_0x272e3e&&_0x272e3e['includes'](_0x31ea3c[_0xc86db6(0x1da)]['id'])?{..._0x31ea3c,'attrs':{..._0x31ea3c[_0xc86db6(0x1da)],'id':_0x31ea3c[_0xc86db6(0x1da)]['id']+_0x402667[_0xc86db6(0x2a4)]}}:_0x31ea3c)}:_0x3d723b;}function vi(){const _0x1e38fa=_0x12f7be;return Math['random']()[_0x1e38fa(0x20c)](0x24)[_0x1e38fa(0xe0)](0x2,0x8);}Ge[_0x12f7be(0x2f9)]=_0x12f7be(0x14c);const pi={'tag':'svg','attrs':{'xmlns':_0x12f7be(0x2ea),'fill':'none','viewBox':_0x12f7be(0x202),'width':'1em','height':_0x12f7be(0x2a2)},'children':[{'tag':'g','attrs':{'clipPath':_0x12f7be(0x130)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x12f7be(0x1d9),'strokeLinecap':_0x12f7be(0x2d3),'strokeLinejoin':_0x12f7be(0x2d3),'strokeWidth':1.2}}]},{'tag':_0x12f7be(0x272),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x12f7be(0x242)},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'fill':_0x12f7be(0xe4),'d':_0x12f7be(0x170)}}]}]}],'defIds':[_0x12f7be(0x242)]},Pt=_0x374bc5(function(_0x26a7a1,_0xf58833){const _0x526caa=_0x12f7be;return _0x1773bb(Ge,Object[_0x526caa(0x1de)]({},_0x26a7a1,{'id':_0x526caa(0x294),'ref':_0xf58833,'icon':pi}));});Pt['displayName']=_0x12f7be(0x2e3);const Oi={'tag':_0x12f7be(0x27d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12f7be(0xc8),'viewBox':_0x12f7be(0xc7),'width':_0x12f7be(0x2a2),'height':_0x12f7be(0x2a2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'stroke':_0x12f7be(0x2a8),'d':_0x12f7be(0xc4),'strokeLinecap':_0x12f7be(0x2d3),'strokeLinejoin':_0x12f7be(0x2d3),'strokeWidth':1.2}}]},{'tag':_0x12f7be(0x272),'attrs':{},'children':[{'tag':_0x12f7be(0x262),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x12f7be(0x1d8),'attrs':{'fill':_0x12f7be(0xe4),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x12f7be(0x25b)]},wt=_0x374bc5(function(_0x3b0cc2,_0x52eba6){const _0x3df1e3=_0x12f7be;return _0x1773bb(Ge,Object[_0x3df1e3(0x1de)]({},_0x3b0cc2,{'id':_0x3df1e3(0x17a),'ref':_0x52eba6,'icon':Oi}));});wt['displayName']='OnLineIcon';function Ti(_0x299edf){const _0x450195=_0x12f7be;switch(_0x299edf){case _0x2a0d66['OFFLINE']:return _0x450195(0x2e6);case _0x2a0d66[_0x450195(0x1ba)]:return _0x450195(0x297);case _0x2a0d66[_0x450195(0xd6)]:return _0x450195(0x2fe);case _0x2a0d66[_0x450195(0x16a)]:return _0x450195(0x2e9);case _0x2a0d66['AWAITING']:case _0x2a0d66[_0x450195(0xb9)]:return _0x450195(0x200);case _0x2a0d66[_0x450195(0x1b5)]:case _0x2a0d66['PENDING']:return _0x450195(0x204);}}function Ci(_0x1e47cd){const _0x1c4f8f=_0x12f7be,{status$:_0x59eead}=_0x1e47cd,_0x53d908=_0x368c28(_0x59eead,_0x2a0d66[_0x1c4f8f(0x16a)]),_0xbbc8c4=_0x5911c2(_0x35b6c7),_0xf58517=_0x5911c2(_0x3c5e90),_0x37defb=_0x53d908!==_0x2a0d66[_0x1c4f8f(0x2fb)],_0xff51bd=_0xbbc8c4['t'](Ti(_0x53d908)),_0x49bac4=_0x37defb?_0x113f07(wt,{}):_0x113f07(Pt,{}),_0x40b105=_0x48404f(()=>{const _0x241e44=_0x1c4f8f;_0x37defb||_0xf58517[_0x241e44(0x18c)]();},[_0x37defb,_0xf58517]);function _0x18e815(){const _0x1d6afe=_0x1c4f8f;return _0x1eecd1(_0x1d6afe(0x280),{'className':'univer-flex\x20univer-items-center','onClick':_0x40b105,'children':[_0x113f07(_0x1d6afe(0x280),{'className':_0xee85e0(_0x1d6afe(0x24a),{'univer-text-green-500':_0x37defb,'univer-text-red-500':!_0x37defb}),'children':_0x49bac4}),_0x113f07(_0x1d6afe(0x280),{'className':_0x1d6afe(0x146),'children':_0xff51bd})]});}return _0x37defb?_0x18e815():_0x113f07(_0x40dc63,{'title':_0xbbc8c4['t'](_0x1c4f8f(0x14f)),'children':_0x18e815()});}var Ri=Object[_0x12f7be(0x214)],Di=(_0x5aedbf,_0x538faf,_0x422285,_0xf94fb3)=>{const _0x6cb629=_0x12f7be;for(var _0x358d8d=_0xf94fb3>0x1?void 0x0:_0xf94fb3?Ri(_0x538faf,_0x422285):_0x538faf,_0xf023fe=_0x5aedbf[_0x6cb629(0x1c8)]-0x1,_0x190f60;_0xf023fe>=0x0;_0xf023fe--)(_0x190f60=_0x5aedbf[_0xf023fe])&&(_0x358d8d=_0x190f60(_0x358d8d)||_0x358d8d);return _0x358d8d;},se=(_0x1678f1,_0x487908)=>(_0xe604bf,_0x216b10)=>_0x487908(_0xe604bf,_0x216b10,_0x1678f1);let ae=class extends _0x112363{constructor(_0xebd0bd,_0x139be5,_0x35914c,_0x250602){const _0x51118d=_0x12f7be;super(),_(this,_0x51118d(0x2ec),new _0x51f523(_0x2a0d66['NOT_COLLAB'])),(this[_0x51118d(0x1e0)]=_0xebd0bd,this[_0x51118d(0x213)]=_0x139be5,this[_0x51118d(0x14d)]=_0x35914c,this[_0x51118d(0xf1)]=_0x250602,this[_0x51118d(0x303)](),this[_0x51118d(0x207)]());}['_initStatusListener'](){const _0x463472=_0x12f7be;this[_0x463472(0x26c)](this[_0x463472(0x1e0)]['focused$']['pipe'](_0x55969c(()=>{const _0x418ecf=_0x463472,_0x11f1e0=this[_0x418ecf(0x1e0)][_0x418ecf(0x20d)]();return _0x11f1e0?this[_0x418ecf(0x14d)][_0x418ecf(0xdb)](_0x11f1e0[_0x418ecf(0xb6)]()):_0x1ec186(null);}),_0x55969c(_0x32f2da=>_0x32f2da?_0x32f2da[_0x463472(0x10c)]:_0x1ec186(_0x2a0d66[_0x463472(0x16a)])))[_0x463472(0x1e6)](_0x8b865e=>{const _0x386b05=_0x463472;this[_0x386b05(0x2ec)][_0x386b05(0xe6)](_0x8b865e);}));}[_0x12f7be(0x303)](){const _0x5bd223=_0x12f7be;this[_0x5bd223(0x26c)](this[_0x5bd223(0xf1)][_0x5bd223(0x174)](_0x5a54ac[_0x5bd223(0x12c)],()=>_0x4e04ea(Ni({'status$':this[_0x5bd223(0x2ec)][_0x5bd223(0x195)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x52d51e),se(0x1,_0x3714f8(_0x24a160)),se(0x2,_0x3714f8(_0x41819a)),se(0x3,_0x1e6b0c)],ae);function Ni(_0x1bd33c){const {status$:_0x3efcbb}=_0x1bd33c;return function(){return _0x113f07(Ci,{'status$':_0x3efcbb});};}const yt=_0x21b651('uni.network.url-service');var bi=Object['getOwnPropertyDescriptor'],Li=(_0x1f837a,_0x1153fd,_0x45afab,_0x568d64)=>{for(var _0x376df0=_0x568d64>0x1?void 0x0:_0x568d64?bi(_0x1153fd,_0x45afab):_0x1153fd,_0x2f01b7=_0x1f837a['length']-0x1,_0x47849b;_0x2f01b7>=0x0;_0x2f01b7--)(_0x47849b=_0x1f837a[_0x2f01b7])&&(_0x376df0=_0x47849b(_0x376df0)||_0x376df0);return _0x376df0;},K=(_0xc19778,_0x26a287)=>(_0x3201a7,_0x277ac4)=>_0x26a287(_0x3201a7,_0x277ac4,_0xc19778);let ce=class extends _0x53e01a{constructor(_0x204f71,_0x1e8763,_0x3f7204,_0x178583,_0x323cea){const _0x129770=_0x12f7be;super(),this['_urlService']=_0x204f71,this[_0x129770(0x267)]=_0x1e8763,this[_0x129770(0x21d)]=_0x3f7204,this[_0x129770(0x2c6)]=_0x178583,_0x323cea?_0x323cea==null||_0x323cea['whenReady']()['then'](()=>this['_init']()):(this[_0x129770(0x267)][_0x129770(0x209)](_0x129770(0x2b3),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x129770(0x279)]());}async[_0x12f7be(0x279)](){const _0x567f80=_0x12f7be,_0x8c5cca=this[_0x567f80(0x11b)]['getParam'](_0x567f80(0x132)),_0x3f839a=this[_0x567f80(0x11b)][_0x567f80(0x1ac)](_0x567f80(0x16d)),_0xbe7ebd=this['_urlService'][_0x567f80(0x1ac)](_0x567f80(0x255));if(!_0x8c5cca||!_0x3f839a){this[_0x567f80(0x267)][_0x567f80(0x209)](_0x567f80(0x2b3),_0x567f80(0x192));return;}const _0x50b6be=await this['_dataLoaderService'][_0x567f80(0x238)](_0x8c5cca,Number(_0x3f839a),_0xbe7ebd);_0x50b6be&&_0x50b6be instanceof _0x137b01&&this['_setupSubUnitSync'](_0x50b6be);}async['_setupSubUnitSync'](_0x81701){const _0xc7d08d=_0x12f7be;await this['_updateSubUnitFromURLParams'](_0x81701),_0x81701[_0xc7d08d(0x2c0)]['pipe'](_0x4da0bf(this[_0xc7d08d(0x2a6)]))['subscribe'](_0x347aee=>{_0x347aee&&this['_updateURLWithCurrentState'](_0x347aee);}),this[_0xc7d08d(0x11b)]['urlChange$']['pipe'](_0x4da0bf(this[_0xc7d08d(0x2a6)]))[_0xc7d08d(0x1e6)](()=>this[_0xc7d08d(0x1a9)](_0x81701));}['_updateURLWithCurrentState'](_0x3d82ea,_0x120241=!0x1){const _0x2d079a=_0x12f7be,_0x89e54b=this[_0x2d079a(0x11b)]['getParam'](_0x2d079a(0x255));_0x3d82ea[_0x2d079a(0x184)]()!==_0x89e54b&&this[_0x2d079a(0x11b)][_0x2d079a(0x149)]('subunit',_0x3d82ea[_0x2d079a(0x184)](),_0x120241);}async['_updateSubUnitFromURLParams'](_0x525dd2){const _0x2842e9=_0x12f7be;var _0x403ba2;const _0x28406a=this[_0x2842e9(0x11b)]['getParam'](_0x2842e9(0x255));if(!_0x28406a||!_0x525dd2[_0x2842e9(0x1af)](_0x28406a)){const _0x430253=_0x525dd2[_0x2842e9(0xcb)]()[0x0],_0x5ab056=_0x525dd2[_0x2842e9(0x1af)](_0x430253);if(!_0x5ab056)return;this[_0x2842e9(0x2da)](_0x5ab056,!0x0),await this[_0x2842e9(0x21d)][_0x2842e9(0x2fd)](_0x280b7c['id'],{'unitId':_0x525dd2[_0x2842e9(0xb6)](),'subUnitId':_0x430253});return;}((_0x403ba2=_0x525dd2[_0x2842e9(0x2e4)]())==null?void 0x0:_0x403ba2['getSheetId']())!==_0x28406a&&await this[_0x2842e9(0x21d)]['executeCommand'](_0x280b7c['id'],{'unitId':_0x525dd2[_0x2842e9(0xb6)](),'subUnitId':_0x28406a});}};ce=Li([K(0x0,yt),K(0x1,_0x36e10f),K(0x2,_0x58f12e),K(0x3,_0x3714f8(_0x48f288)),K(0x4,_0x4a5b34(_0x136b48))],ce);var Ui=Object[_0x12f7be(0x214)],Mi=(_0x165193,_0x5acf9f,_0x3d769a,_0x2edd2e)=>{const _0x61825f=_0x12f7be;for(var _0x283bdb=_0x2edd2e>0x1?void 0x0:_0x2edd2e?Ui(_0x5acf9f,_0x3d769a):_0x5acf9f,_0x5c9b30=_0x165193[_0x61825f(0x1c8)]-0x1,_0x27138e;_0x5c9b30>=0x0;_0x5c9b30--)(_0x27138e=_0x165193[_0x5c9b30])&&(_0x283bdb=_0x27138e(_0x283bdb)||_0x283bdb);return _0x283bdb;},rt=(_0x536b1c,_0x13bebd)=>(_0x4fdb09,_0x4796a8)=>_0x13bebd(_0x4fdb09,_0x4796a8,_0x536b1c);let $e=class extends _0x53e01a{constructor(_0x361c00,_0x511114){const _0x26c2de=_0x12f7be;super(),this['_docClipboardService']=_0x361c00,this[_0x26c2de(0x164)]=_0x511114,this[_0x26c2de(0x279)]();}[_0x12f7be(0x279)](){const _0x57b437=_0x12f7be,_0x20249e=this;this[_0x57b437(0x26c)](this['_docClipboardService'][_0x57b437(0x1b1)]({'onBeforePasteImage':async _0x4d50f7=>{const _0x4640c5=_0x57b437,_0x310c1c=await _0x20249e[_0x4640c5(0x164)]['saveImage'](_0x4d50f7);return _0x310c1c?{'source':_0x310c1c[_0x4640c5(0x251)],'imageSourceType':_0x310c1c[_0x4640c5(0x1bc)]}:null;}}));}};$e=Mi([rt(0x0,_0x392901),rt(0x1,_0x1e7b2a)],$e);const ot=[_0x12f7be(0x2a3),_0x12f7be(0x245),_0x12f7be(0x161),'red.300',_0x12f7be(0x13d),_0x12f7be(0x13f)];class Ke extends _0x112363{constructor(){const _0x56eb1a=_0x12f7be;super(...arguments),_(this,_0x56eb1a(0xed),new Map()),_(this,_0x56eb1a(0x124),0x0);}[_0x12f7be(0xff)](_0x5a7c37){const _0x556629=_0x12f7be;if(this[_0x556629(0xed)][_0x556629(0x201)](_0x5a7c37))return this['_assignedColors']['get'](_0x5a7c37);const _0x31b599=ot[this['_colorIndex']];return this['_colorIndex']=(this[_0x556629(0x124)]+0x1)%ot['length'],this[_0x556629(0xed)][_0x556629(0x13b)](_0x5a7c37,_0x31b599),_0x31b599;}}function $t(_0x1a470e){let _0x47ce35='';for(const _0x58f336 of _0x1a470e){const {startOffset:_0x3fd4be,endOffset:_0x56bfe2,isActive:_0x3f01a1,rangeType:_0x27f4f8,segmentId:_0x503ba3,segmentPage:_0x1afafc}=_0x58f336;_0x47ce35['length']&&(_0x47ce35+=','),_0x47ce35+=_0x3fd4be+':'+_0x56bfe2+':'+(_0x3f01a1?'1':'0')+':'+_0x27f4f8+':'+_0x503ba3+':'+_0x1afafc;}return _0x47ce35;}function Ai(_0x3c41f4){const _0x2f5edf=_0x12f7be,_0x4d94d6=_0x3c41f4[_0x2f5edf(0x2de)](','),_0x291279=[];for(const _0x4e005c of _0x4d94d6){const [_0x1aeb46,_0x1a1dfc,_0x2bb9bf,_0x39356a,_0x558c50,_0x5b59fc]=_0x4e005c['split'](':');_0x291279[_0x2f5edf(0x210)]({'startOffset':Number(_0x1aeb46),'endOffset':Number(_0x1a1dfc),'collapsed':_0x1aeb46===_0x1a1dfc,'isActive':_0x2bb9bf==='1','rangeType':_0x39356a===_0x6ed74f[_0x2f5edf(0x2f6)]?_0x6ed74f[_0x2f5edf(0x2f6)]:_0x6ed74f[_0x2f5edf(0x101)],'segmentId':typeof _0x558c50=='string'?String(_0x558c50):'','segmentPage':Number(_0x5b59fc!=null?_0x5b59fc:-0x1)});}return _0x291279[_0x2f5edf(0x12f)](_0x54844f=>_0x54844f[_0x2f5edf(0x217)])||(_0x291279[0x0][_0x2f5edf(0x217)]=!0x0),_0x291279;}class ze extends _0x53e01a{constructor(){const _0x31c3aa=_0x12f7be;super(...arguments),_(this,_0x31c3aa(0x158),new _0x51f523(null)),_(this,_0x31c3aa(0x1b0),this['_collabCursorState$'][_0x31c3aa(0x195)]());}[_0x12f7be(0xe2)](_0x53ff9c){const _0x2a7077=_0x12f7be,{unitID:_0xaf8c4f,memberID:_0xc8ec8c,textRanges:_0x52b4dc}=_0x53ff9c,_0x3dd4e4=$t(_0x52b4dc);if(_0x3dd4e4==='')return;const _0xc828ca={'unitID':_0xaf8c4f,'memberID':_0xc8ec8c,'selection':_0x3dd4e4};this['_collabCursorState$'][_0x2a7077(0xe6)](_0xc828ca);}}var Pi=Object[_0x12f7be(0x214)],wi=(_0x1a2358,_0x1d1932,_0x201fd9,_0x27ff99)=>{for(var _0x20185a=_0x27ff99>0x1?void 0x0:_0x27ff99?Pi(_0x1d1932,_0x201fd9):_0x1d1932,_0x407745=_0x1a2358['length']-0x1,_0x372f42;_0x407745>=0x0;_0x407745--)(_0x372f42=_0x1a2358[_0x407745])&&(_0x20185a=_0x372f42(_0x20185a)||_0x20185a);return _0x20185a;},A=(_0x4809d0,_0x62ae78)=>(_0x5c4907,_0x29db4c)=>_0x62ae78(_0x5c4907,_0x29db4c,_0x4809d0);const yi=0x12c,$i=0x64;let xe=class extends _0x53e01a{constructor(_0x3a2c8f,_0x34248f,_0x520e78,_0x1d0a40,_0x1055af,_0xebe9e3,_0x20b000,_0x3cfde3,_0x2093d8){const _0x252e57=_0x12f7be;super(),_(this,_0x252e57(0x22f),!0x1),_(this,_0x252e57(0x279),!0x1),_(this,_0x252e57(0x154),new _0x51f523(new Map())),_(this,_0x252e57(0x1d5),this[_0x252e57(0x154)][_0x252e57(0x195)]()),_(this,'_roomMembers$',new _0x51f523([])),_(this,_0x252e57(0x2ee),this[_0x252e57(0x155)][_0x252e57(0x1c3)](_0x19303b(yi))),_(this,_0x252e57(0x22c),_0x5a1035(_0x3cceb8=>{const _0x55472d=_0x252e57,_0x1038b4={'eventID':_0x38e1b2[_0x55472d(0x27b)],'data':{'unitID':this[_0x55472d(0x254)],'memberID':this['_session'][_0x55472d(0x196)](),'selection':$t(_0x3cceb8)}};this[_0x55472d(0xb0)][_0x55472d(0x1d2)](_0x1038b4,this[_0x55472d(0x254)]);},$i)),(this[_0x252e57(0x254)]=_0x3a2c8f,this['_session']=_0x34248f,this[_0x252e57(0x213)]=_0x520e78,this[_0x252e57(0xd2)]=_0x1d0a40,this[_0x252e57(0x208)]=_0x1055af,this[_0x252e57(0x258)]=_0xebe9e3,this[_0x252e57(0x13c)]=_0x20b000,this['_univerInstanceService']=_0x3cfde3,this[_0x252e57(0x21d)]=_0x2093d8);}get[_0x12f7be(0x2b1)](){const _0x500b19=_0x12f7be;return this['_cursorInfo$'][_0x500b19(0x2eb)]();}get[_0x12f7be(0xdc)](){const _0x3f88b6=_0x12f7be;return this[_0x3f88b6(0x155)]['getValue']();}[_0x12f7be(0x2e8)](){const _0x6c863=_0x12f7be;super[_0x6c863(0x2e8)](),this[_0x6c863(0x154)][_0x6c863(0xe6)](new Map()),this['_cursorInfo$'][_0x6c863(0x1a5)](),this[_0x6c863(0x155)][_0x6c863(0xe6)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x39c7c7=_0x12f7be;this[_0x39c7c7(0x279)]||(this[_0x39c7c7(0x279)]=!0x0,this[_0x39c7c7(0xb0)][_0x39c7c7(0x102)][_0x39c7c7(0x1c3)](_0x4da0bf(this[_0x39c7c7(0x2a6)]))[_0x39c7c7(0x1e6)](_0x5f1674=>{const _0x2730fb=_0x39c7c7;_0x5f1674===_0x434c9d[_0x2730fb(0x2f5)]?this['_toggleOnline']():this[_0x2730fb(0x133)]();}),this[_0x39c7c7(0xb0)][_0x39c7c7(0x295)][_0x39c7c7(0x1c3)](_0x4da0bf(this[_0x39c7c7(0x2a6)]))[_0x39c7c7(0x1e6)](_0x37a25e=>{const _0x5a85f2=_0x39c7c7,_0x742ebf=_0x37a25e[_0x5a85f2(0x175)];_0x742ebf===_0x38e1b2[_0x5a85f2(0x27b)]&&this['_onCursorUpdate'](_0x37a25e),_0x742ebf===_0x38e1b2[_0x5a85f2(0x296)]&&this[_0x5a85f2(0x1f3)](_0x37a25e);}),this[_0x39c7c7(0x26c)](this[_0x39c7c7(0x21d)][_0x39c7c7(0x188)](_0x5f3be2=>{const _0x436073=_0x39c7c7,_0x311111=_0x5f3be2[_0x436073(0x281)];_0x311111!=null&&this[_0x436073(0x22f)]&&_0x5f3be2['id']===_0x16b06b['id']&&_0x311111[_0x436073(0x2a5)]===this[_0x436073(0x254)]&&_0x311111[_0x436073(0x17e)]===!0x1&&_0x311111['ranges'][_0x436073(0x1c8)]>0x0&&this[_0x436073(0x22c)](_0x311111[_0x436073(0x103)]);})),this[_0x39c7c7(0x258)][_0x39c7c7(0x1b0)]['pipe'](_0x4da0bf(this['dispose$']))['subscribe'](_0x4c7000=>{const _0xccbed9=_0x39c7c7;if((_0x4c7000==null?void 0x0:_0x4c7000[_0xccbed9(0x254)])!==this[_0xccbed9(0x254)])return;const _0x202908={'eventID':_0x38e1b2[_0xccbed9(0x27b)],'data':_0x4c7000};this['_onCursorUpdate'](_0x202908);}),this[_0x39c7c7(0x26c)](this['_commandService'][_0x39c7c7(0x188)](_0x57ba33=>{const _0x4422a4=_0x39c7c7;if(_0x57ba33['params']==null)return;const _0x3d1241=_0x57ba33[_0x4422a4(0x281)];if(_0x57ba33['id']!==_0x105f6f['id']||_0x3d1241[_0x4422a4(0x2a5)]!==this['unitID'])return;const _0x20034e={'id':'doc.mutation.rich-text-editing','params':_0x3d1241},_0x5826b1=this[_0x4422a4(0x2b1)];for(const [_0x1b928a,_0x154dee]of _0x5826b1){const _0x3acc1b={'id':_0x4422a4(0x219),'params':{'unitId':this[_0x4422a4(0x254)],'actions':null,'textRanges':_0x154dee[_0x4422a4(0x103)]}},_0x562b49=this['_transformService'][_0x4422a4(0x249)](_0x20034e,_0x3acc1b,!0x1);if(_0x594698(_0x562b49))throw _0x562b49[_0x4422a4(0x2d5)];_0x5826b1[_0x4422a4(0x13b)](_0x1b928a,{..._0x154dee,'ranges':_0x562b49[_0x4422a4(0x166)][_0x4422a4(0x281)]['textRanges']});}queueMicrotask(()=>{const _0x3e23f3=_0x4422a4;this[_0x3e23f3(0x154)][_0x3e23f3(0xe6)](_0x5826b1);});})));}['_onCursorUpdate'](_0x9867e1){const _0xa1f2dc=_0x12f7be;var _0x5517a5,_0x449865;const {memberID:_0x51bf32,selection:_0x269311}=_0x9867e1[_0xa1f2dc(0x19f)],_0x5d1f4c=Ai(_0x269311),_0x16d882=(_0x449865=(_0x5517a5=this[_0xa1f2dc(0x208)][_0xa1f2dc(0x1fa)](this[_0xa1f2dc(0x254)],_0x51bf32))==null?void 0x0:_0x5517a5[_0xa1f2dc(0x197)])!=null?_0x449865:'Unknown\x20user',_0x13adb8={'color':this['_colorAssignService'][_0xa1f2dc(0xff)](_0x51bf32),'name':_0x16d882,'ranges':_0x5d1f4c},_0x38ace7=this[_0xa1f2dc(0x2b1)];_0x38ace7[_0xa1f2dc(0x13b)](_0x51bf32,_0x13adb8),this[_0xa1f2dc(0x154)][_0xa1f2dc(0xe6)](_0x38ace7);}[_0x12f7be(0x1f3)](_0x6b4e0d){const _0xa0b45f=_0x12f7be,{memberID:_0x58010c}=_0x6b4e0d['data'],_0x421bf8=this[_0xa0b45f(0x2b1)];_0x421bf8[_0xa0b45f(0x1a0)](_0x58010c),this['_cursorInfo$']['next'](_0x421bf8);}['_toggleOnline'](){const _0x4f9e56=_0x12f7be;var _0x23d946;if(this[_0x4f9e56(0x22f)]=!0x0,((_0x23d946=this[_0x4f9e56(0x1e0)][_0x4f9e56(0x20d)]())==null?void 0x0:_0x23d946[_0x4f9e56(0xb6)]())!==this[_0x4f9e56(0x254)])return;const _0x36946d=this['_injector'][_0x4f9e56(0x163)](_0x299386)[_0x4f9e56(0x293)]();Array['isArray'](_0x36946d)&&_0x36946d[_0x4f9e56(0x1c8)]>0x0&&this['_updateLocalCursor'](_0x36946d);}[_0x12f7be(0x133)](){const _0x1e1135=_0x12f7be;this[_0x1e1135(0x22f)]=!0x1;}};xe=wi([A(0x2,_0x3714f8(_0x24a160)),A(0x3,_0x3714f8(Ke)),A(0x4,_0x3714f8(_0xa7c392)),A(0x5,_0x3714f8(ze)),A(0x6,_0x5963ba),A(0x7,_0x52d51e),A(0x8,_0x58f12e)],xe);var xi=Object[_0x12f7be(0x214)],Bi=(_0x4b2ec0,_0x32de92,_0x4aedeb,_0x2f27b2)=>{for(var _0xecfd=_0x2f27b2>0x1?void 0x0:_0x2f27b2?xi(_0x32de92,_0x4aedeb):_0x32de92,_0x4e9118=_0x4b2ec0['length']-0x1,_0x243adf;_0x4e9118>=0x0;_0x4e9118--)(_0x243adf=_0x4b2ec0[_0x4e9118])&&(_0xecfd=_0x243adf(_0xecfd)||_0xecfd);return _0xecfd;},B=(_0x1d83f5,_0x4e6ebb)=>(_0x3ef48b,_0x3ab8d7)=>_0x4e6ebb(_0x3ef48b,_0x3ab8d7,_0x1d83f5);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x31d106=[],_0x58ef4c=!0x1;return _0x47da9b=>{const _0x121db0=_0x473f;_0x31d106[_0x121db0(0x210)](_0x47da9b),_0x58ef4c||(_0x58ef4c=!0x0,setTimeout(()=>{const _0x2f93d4=_0x121db0;_0x31d106[_0x2f93d4(0x275)](_0x3ee024=>_0x3ee024()),_0x31d106=[],_0x58ef4c=!0x1;}));};};let Be=class extends _0x53e01a{constructor(_0x3a82ca,_0x4ff01d,_0x1a6338,_0x33d356,_0x22a62d,_0x2a8548,_0x2fe06a,_0x3e2b96){const _0x1f91b5=_0x12f7be;super(),_(this,_0x1f91b5(0x22f),!0x1),_(this,_0x1f91b5(0x279),!0x1),_(this,_0x1f91b5(0x154),new _0x51f523(new Map())),_(this,_0x1f91b5(0x1d5),this['_cursorInfo$'][_0x1f91b5(0x195)]()),_(this,_0x1f91b5(0x155),new _0x51f523([])),_(this,_0x1f91b5(0x2ee),this[_0x1f91b5(0x155)][_0x1f91b5(0x1c3)](_0x19303b(Fi))),_(this,_0x1f91b5(0x22c),_0x5a1035((_0x5a4c4e,_0x224274)=>{const _0x5638f1=_0x1f91b5,_0x2a960c={'eventID':_0x38e1b2[_0x5638f1(0x27b)],'data':{'unitID':this['unitID'],'memberID':this[_0x5638f1(0xb0)][_0x5638f1(0x196)](),'selection':_0x269cf9(_0x5a4c4e,_0x224274['range'])}};this[_0x5638f1(0xb0)][_0x5638f1(0x1d2)](_0x2a960c,this[_0x5638f1(0x254)]);},ki)),(this[_0x1f91b5(0x254)]=_0x3a82ca,this['_session']=_0x4ff01d,this[_0x1f91b5(0x213)]=_0x1a6338,this[_0x1f91b5(0xd2)]=_0x33d356,this[_0x1f91b5(0x208)]=_0x22a62d,this[_0x1f91b5(0x1e0)]=_0x2a8548,this[_0x1f91b5(0x21d)]=_0x2fe06a,this['_refRangeService']=_0x3e2b96);}get['cursorInfo'](){const _0x5460d7=_0x12f7be;return this[_0x5460d7(0x154)]['getValue']();}get['roomMembers'](){const _0x5cdb86=_0x12f7be;return this[_0x5cdb86(0x155)][_0x5cdb86(0x2eb)]();}[_0x12f7be(0x2e8)](){const _0x345f90=_0x12f7be;super[_0x345f90(0x2e8)](),this['_cursorInfo$']['next'](new Map()),this[_0x345f90(0x154)][_0x345f90(0x1a5)](),this[_0x345f90(0x155)][_0x345f90(0xe6)]([]),this[_0x345f90(0x155)][_0x345f90(0x1a5)]();}['init'](){const _0x15f3c6=_0x12f7be;this[_0x15f3c6(0x279)]||(this[_0x15f3c6(0x279)]=!0x0,this[_0x15f3c6(0xb0)]['sessionStatus$'][_0x15f3c6(0x1c3)](_0x4da0bf(this[_0x15f3c6(0x2a6)]))['subscribe'](_0x22e7df=>{const _0x3ea967=_0x15f3c6;_0x22e7df===_0x434c9d[_0x3ea967(0x2f5)]?this[_0x3ea967(0x2aa)]():this[_0x3ea967(0x133)]();}),this['_session'][_0x15f3c6(0x295)][_0x15f3c6(0x1c3)](_0x4da0bf(this[_0x15f3c6(0x2a6)]))['subscribe'](_0x57dd78=>{const _0x40db85=_0x15f3c6,_0x363c17=_0x57dd78['eventID'];_0x363c17===_0x38e1b2[_0x40db85(0x27b)]&&this['_onCursorUpdate'](_0x57dd78),_0x363c17===_0x38e1b2[_0x40db85(0x296)]&&this['_onCursorDelete'](_0x57dd78);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x15f3c6(0x21d)][_0x15f3c6(0x188)](_0x74c1f8=>{const _0x50605d=_0x15f3c6;if(this[_0x50605d(0x22f)]&&_0x74c1f8['id']===_0x25f058['id']&&_0x74c1f8['params'][_0x50605d(0x2a5)]===this[_0x50605d(0x254)]){const _0x2e5eb1=_0x74c1f8[_0x50605d(0x281)];this[_0x50605d(0x22c)](_0x2e5eb1[_0x50605d(0x260)],_0x2e5eb1[_0x50605d(0x1e8)][0x0]);}})));}[_0x12f7be(0x1f4)](_0x5d694f){const _0x2b5a94=_0x12f7be;var _0x4c9ec6,_0x2548d7;const {memberID:_0xbed6a5,selection:_0x4e4c64}=_0x5d694f[_0x2b5a94(0x19f)],{sheetName:_0x48b17c,range:_0x6575cc}=_0x1513e7(_0x4e4c64),_0x2ce775={'name':(_0x2548d7=(_0x4c9ec6=this['_memberService'][_0x2b5a94(0x1fa)](this['unitID'],_0xbed6a5))==null?void 0x0:_0x4c9ec6[_0x2b5a94(0x197)])!=null?_0x2548d7:_0x2b5a94(0x211),'range':this[_0x2b5a94(0xda)](_0x48b17c,_0x6575cc),'sheetID':_0x48b17c,'color':this['_colorAssignService'][_0x2b5a94(0xff)](_0xbed6a5),'selection':_0x4e4c64},_0x4eac91=this[_0x2b5a94(0x2b1)];_0x4eac91[_0x2b5a94(0x13b)](_0xbed6a5,_0x2ce775),this[_0x2b5a94(0x154)][_0x2b5a94(0xe6)](_0x4eac91);}['_onCursorDelete'](_0x34c034){const _0xa7078d=_0x12f7be,{memberID:_0x1a11ff}=_0x34c034['data'],_0x1ce100=this[_0xa7078d(0x2b1)];_0x1ce100['delete'](_0x1a11ff),this[_0xa7078d(0x154)][_0xa7078d(0xe6)](_0x1ce100);}[_0x12f7be(0xda)](_0x2f30b0,_0x577bad){const _0x333cc5=_0x12f7be;var _0x2b205a,_0x429aac;const _0x558629=(_0x429aac=(_0x2b205a=this[_0x333cc5(0x1e0)]['getUniverSheetInstance'](this[_0x333cc5(0x254)]))==null?void 0x0:_0x2b205a[_0x333cc5(0x1af)](_0x2f30b0))==null?void 0x0:_0x429aac[_0x333cc5(0x277)]();return(_0x558629==null?void 0x0:_0x558629[_0x333cc5(0x305)](_0x3bb35d=>_0x3fed9b[_0x333cc5(0x151)](_0x3bb35d,_0x577bad)))||_0x577bad;}[_0x12f7be(0x2b9)](){const _0x5739d3=_0x12f7be,_0x301356=new _0x4284de(),_0x303c48=Hi(),_0x4c4785=()=>{const _0x4eb8d8=_0x473f;_0x301356[_0x4eb8d8(0x2e8)]();const _0x497c1b=(_0x468276,_0x2e8a18,_0x1e39bb,_0x2bfb31)=>{const _0x36759c=_0x4eb8d8;let _0x12284f=[];switch(_0x468276['id']){case _0x4eb700[_0x36759c(0xf0)]:{_0x12284f=_0x16e40f(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1fe)]:{_0x12284f=_0x5e9d7d(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0xbf)]:{_0x12284f=_0x3f84c9(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1c0)]:{_0x12284f=_0x3fbd49(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x181)]:{_0x12284f=_0x554330(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x1c7)]:{_0x12284f=_0x44d812(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x241)]:{_0x12284f=_0x221e69(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x15e)]:{_0x12284f=_0x3dbb55(_0x468276,_0x2bfb31);break;}case _0x4eb700[_0x36759c(0x22e)]:{_0x12284f=_0x44c162(_0x468276,_0x2bfb31);break;}}const _0x2582e9=_0x908350(_0x12284f,_0x2bfb31),_0x42de02=this[_0x36759c(0x2b1)][_0x36759c(0x163)](_0x2e8a18);if(_0x42de02&&_0x2582e9){const _0xd58f9={..._0x42de02,'range':_0x2582e9};this['cursorInfo'][_0x36759c(0x13b)](_0x2e8a18,_0xd58f9),_0x303c48(()=>{const _0xa5c244=_0x36759c,_0x5d6b1b=this[_0xa5c244(0x1df)]['registerRefRange'](_0x2582e9,_0x8ffb0f=>(_0x5d6b1b[_0xa5c244(0x2e8)](),_0x497c1b(_0x8ffb0f,_0x2e8a18,_0x1e39bb,_0x2582e9)));_0x301356[_0xa5c244(0x1ad)](_0x5d6b1b);});}return{'redos':[],'undos':[]};};this[_0x4eb8d8(0x2b1)][_0x4eb8d8(0x275)]((_0x485d77,_0x38e578)=>{const _0x460f70=_0x4eb8d8,{range:_0x141537,sheetID:_0x3ea322}=_0x485d77,_0x22d2a1=this[_0x460f70(0x1df)][_0x460f70(0x2ed)](_0x141537,_0x59ad45=>(_0x22d2a1[_0x460f70(0x2e8)](),_0x497c1b(_0x59ad45,_0x38e578,_0x3ea322,_0x141537)));_0x301356[_0x460f70(0x1ad)](_0x22d2a1);});};this[_0x5739d3(0x26c)](_0x16c8e4(this['_cursorInfo$'][_0x5739d3(0x1e6)](()=>{_0x4c4785();})));}[_0x12f7be(0x2aa)](){const _0x67930=_0x12f7be;var _0x31b23a,_0x4e9a22;if(this[_0x67930(0x22f)]=!0x0,((_0x31b23a=this[_0x67930(0x1e0)][_0x67930(0x20d)]())==null?void 0x0:_0x31b23a[_0x67930(0xb6)]())!==this['unitID'])return;const _0x39372c=(_0x4e9a22=this[_0x67930(0x213)][_0x67930(0x163)](_0x5bbf8d)[_0x67930(0x22d)]())==null?void 0x0:_0x4e9a22[0x0],_0x27acc8=this[_0x67930(0x1e0)]['getCurrentUnitForType'](_0x53cd3e['UNIVER_SHEET'])['getActiveSheet']();_0x39372c&&_0x27acc8&&this['_updateLocalCursor'](_0x27acc8[_0x67930(0x184)](),_0x39372c);}['_toggleOffline'](){const _0x291995=_0x12f7be;this[_0x291995(0x22f)]=!0x1;}};Be=Bi([B(0x2,_0x3714f8(_0x24a160)),B(0x3,_0x3714f8(Ke)),B(0x4,_0x3714f8(_0xa7c392)),B(0x5,_0x52d51e),B(0x6,_0x58f12e),B(0x7,_0x3714f8(_0xe3159f))],Be);var Yi=Object[_0x12f7be(0x214)],Wi=(_0x184b2a,_0x366585,_0x40c509,_0x5dfe28)=>{const _0x3dd4fb=_0x12f7be;for(var _0x2940f1=_0x5dfe28>0x1?void 0x0:_0x5dfe28?Yi(_0x366585,_0x40c509):_0x366585,_0x154b77=_0x184b2a[_0x3dd4fb(0x1c8)]-0x1,_0x16ebf5;_0x154b77>=0x0;_0x154b77--)(_0x16ebf5=_0x184b2a[_0x154b77])&&(_0x2940f1=_0x16ebf5(_0x2940f1)||_0x2940f1);return _0x2940f1;},Ce=(_0xbb063f,_0x4d0b4d)=>(_0x35d965,_0x26622b)=>_0x4d0b4d(_0x35d965,_0x26622b,_0xbb063f);let H=class extends _0x53e01a{constructor(_0x1a0743,_0x46237f,_0x56dc58){const _0x9c7051=_0x12f7be;super(),_(this,_0x9c7051(0x1f2),new Map()),_(this,_0x9c7051(0x239),new _0x1fac1f()),(this[_0x9c7051(0x1e0)]=_0x1a0743,this[_0x9c7051(0x213)]=_0x46237f,this[_0x9c7051(0x104)]=_0x56dc58,this[_0x9c7051(0x279)]());}[_0x12f7be(0x2e8)](){const _0x233184=_0x12f7be;super[_0x233184(0x2e8)](),this[_0x233184(0x239)][_0x233184(0x1a5)](),this[_0x233184(0x1f2)][_0x233184(0x275)](_0x43807a=>_0x43807a['dispose']());}[_0x12f7be(0x2bc)](_0x1f5219){const _0x3b0f8d=_0x12f7be;return this[_0x3b0f8d(0x1f2)]['has'](_0x1f5219)?this[_0x3b0f8d(0x1f2)][_0x3b0f8d(0x163)](_0x1f5219)[_0x3b0f8d(0x1d5)]:this[_0x3b0f8d(0x239)][_0x3b0f8d(0x1c3)](_0x24339d(_0x16651f=>_0x16651f[_0x3b0f8d(0x254)]===_0x1f5219),_0x55969c(_0x5b8951=>_0x5b8951[_0x3b0f8d(0x1d5)]));}[_0x12f7be(0x279)](){const _0x431087=_0x12f7be;this['_univerInstanceService'][_0x431087(0x292)](_0x53cd3e[_0x431087(0x268)])[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))[_0x431087(0x1e6)](async _0x3e5f22=>{const _0xee150b=_0x431087,_0x3ab7e2=_0x3e5f22['getUnitId'](),_0x528217=await this['_startSheetCollabCursor'](_0x3ab7e2);this[_0xee150b(0x239)]['next'](_0x528217),this['_entities']['set'](_0x3ab7e2,_0x528217);}),this[_0x431087(0x1e0)][_0x431087(0x292)](_0x53cd3e[_0x431087(0xc1)])[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))['pipe'](_0x24339d(_0x103895=>!_0x103895[_0x431087(0xb6)]()[_0x431087(0x24d)]('__')))[_0x431087(0x1e6)](async _0xc4fd2a=>{const _0x462ee3=_0x431087,_0x4acf7f=_0xc4fd2a[_0x462ee3(0xb6)](),_0x5be69a=await this['_startDocCollabCursor'](_0x4acf7f);this[_0x462ee3(0x239)]['next'](_0x5be69a),this[_0x462ee3(0x1f2)][_0x462ee3(0x13b)](_0x4acf7f,_0x5be69a);}),_0x826d92(this[_0x431087(0x1e0)][_0x431087(0x226)](_0x53cd3e['UNIVER_DOC']),this[_0x431087(0x1e0)][_0x431087(0x226)](_0x53cd3e[_0x431087(0x268)]))[_0x431087(0x1c3)](_0x4da0bf(this[_0x431087(0x2a6)]))[_0x431087(0x1e6)](_0x7adf37=>{const _0x402eeb=_0x431087,_0x3d9ba2=_0x7adf37['getUnitId'](),_0x23441e=this[_0x402eeb(0x1f2)][_0x402eeb(0x163)](_0x3d9ba2);_0x23441e&&(_0x23441e[_0x402eeb(0x2e8)](),this[_0x402eeb(0x1f2)][_0x402eeb(0x1a0)](_0x3d9ba2));});}async[_0x12f7be(0x190)](_0x5b1063){const _0x571974=_0x12f7be,_0x42dd4a=await this[_0x571974(0x104)][_0x571974(0xe3)](_0x5b1063),_0x568719=this[_0x571974(0x213)][_0x571974(0x205)](Be,_0x5b1063,_0x42dd4a);return _0x568719[_0x571974(0x233)](),_0x568719;}async['_startDocCollabCursor'](_0x2776cc){const _0x2e7e5c=_0x12f7be,_0x1a9dbf=await this[_0x2e7e5c(0x104)][_0x2e7e5c(0xe3)](_0x2776cc),_0x1cbb6b=this[_0x2e7e5c(0x213)][_0x2e7e5c(0x205)](xe,_0x2776cc,_0x1a9dbf);return _0x1cbb6b[_0x2e7e5c(0x233)](),_0x1cbb6b;}};H=Wi([Ce(0x0,_0x52d51e),Ce(0x1,_0x3714f8(_0x24a160)),Ce(0x2,_0x3714f8(_0x3c5e90))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3aee98,_0x49d5ca){const _0x1d0fbb=_0x12f7be;let {radius:_0x5109f0,width:_0x22f2b1,height:_0x444189}=_0x49d5ca;_0x5109f0=_0x5109f0!=null?_0x5109f0:0x0,_0x22f2b1=_0x22f2b1!=null?_0x22f2b1:0x1e,_0x444189=_0x444189!=null?_0x444189:0x1e;let _0x77570e=0x0,_0x5b3e8e=0x0,_0x47f795=0x0;_0x77570e=_0x5b3e8e=_0x47f795=Math[_0x1d0fbb(0xf7)](_0x5109f0,_0x22f2b1/0x2,_0x444189/0x2),_0x3aee98[_0x1d0fbb(0xef)](),_0x3aee98['moveTo'](_0x77570e,0x0),_0x3aee98[_0x1d0fbb(0x15b)](_0x22f2b1-_0x5b3e8e,0x0),_0x3aee98[_0x1d0fbb(0x26d)](_0x22f2b1-_0x5b3e8e,_0x5b3e8e,_0x5b3e8e,Math['PI']*0x3/0x2,0x0,!0x1),_0x3aee98[_0x1d0fbb(0x15b)](_0x22f2b1,_0x444189-_0x47f795),_0x3aee98[_0x1d0fbb(0x26d)](_0x22f2b1-_0x47f795,_0x444189-_0x47f795,_0x47f795,0x0,Math['PI']/0x2,!0x1),_0x3aee98['lineTo'](0x0,_0x444189),_0x3aee98[_0x1d0fbb(0x15b)](0x0,_0x77570e),_0x3aee98[_0x1d0fbb(0x26d)](_0x77570e,_0x77570e,_0x77570e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3aee98[_0x1d0fbb(0x20a)](),_0x49d5ca[_0x1d0fbb(0x26a)]&&(_0x3aee98[_0x1d0fbb(0x2f3)](),_0x3aee98['fillStyle']=_0x49d5ca[_0x1d0fbb(0x26a)],_0x49d5ca[_0x1d0fbb(0x263)]===_0x1d0fbb(0xfa)?_0x3aee98[_0x1d0fbb(0x26a)](_0x1d0fbb(0xfa)):_0x3aee98[_0x1d0fbb(0x26a)](),_0x3aee98['restore']());}class ve extends _0x453ad9{constructor(_0x4339b5,_0x1dee56){const _0x50e9af=_0x12f7be;super(_0x4339b5,_0x1dee56),_(this,_0x50e9af(0x126)),_(this,_0x50e9af(0x2ca)),(this[_0x50e9af(0x126)]=_0x1dee56==null?void 0x0:_0x1dee56[_0x50e9af(0x126)],this[_0x50e9af(0x2ca)]=_0x1dee56==null?void 0x0:_0x1dee56[_0x50e9af(0x2ca)]);}static[_0x12f7be(0x2ef)](_0x115982,_0x2d18cd){const _0x407810=_0x12f7be,{text:_0x23d510,color:_0x2d430f}=_0x2d18cd;_0x115982[_0x407810(0x2f3)](),_0x115982[_0x407810(0x1c6)]=_0x407810(0x180);const _0x12632f=_0x115982[_0x407810(0x1f6)](_0x23d510)['width'],_0x3c2e75=Math['min'](_0x12632f+0x2*Re,at);ji(_0x115982,{'height':Q,'radius':0x4,'width':_0x3c2e75,'fill':_0x2d430f}),_0x115982[_0x407810(0x125)]='#FFF';const _0x11674f=Re,_0xa1e2ad=Q-Vi,_0x5b3e88=at-0x2*Re;if(_0x12632f>_0x5b3e88){let _0x30eb8d='',_0x427bd5=0x0;for(const _0x381f56 of _0x23d510){const _0x2deedd=_0x115982[_0x407810(0x1f6)](_0x381f56)['width'];if(_0x427bd5+_0x2deedd<=_0x5b3e88-_0x115982[_0x407810(0x1f6)](_0x407810(0x168))[_0x407810(0x1e2)])_0x30eb8d+=_0x381f56,_0x427bd5+=_0x2deedd;else{_0x30eb8d+=_0x407810(0x168);break;}}_0x115982['fillText'](_0x30eb8d,_0x11674f,_0xa1e2ad);}else _0x115982[_0x407810(0x301)](_0x23d510,_0x11674f,_0xa1e2ad);_0x115982[_0x407810(0x2d0)]();}['_draw'](_0x33daab){const _0x338eda=_0x12f7be;ve[_0x338eda(0x2ef)](_0x33daab,this);}}const De='collab-text-anchor-',Xi='collab-text-range-',Gi=_0x12f7be(0x250),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x12f7be(0x15c);class ct{constructor(_0x2bbc12,_0x3b311e,_0x16ca4d,_0x5edcc1){const _0x38ca3e=_0x12f7be;_(this,_0x38ca3e(0x1a7),[]),_(this,_0x38ca3e(0xbb),null),_(this,_0x38ca3e(0x17f),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x38ca3e(0x29d),null),(this['_cursor']=_0x2bbc12,this['_scene']=_0x3b311e,this['_docSkeleton']=_0x16ca4d,this['_document']=_0x5edcc1,this[_0x38ca3e(0x11d)]());}set[_0x12f7be(0x162)](_0xdc858a){const _0x16beab=_0x12f7be;_0xdc858a?(this[_0x16beab(0x244)]&&this[_0x16beab(0x244)][_0x16beab(0x1f8)](),this[_0x16beab(0x17f)]&&this[_0x16beab(0x17f)][_0x16beab(0xd0)]()):(this['_anchorDot']&&this[_0x16beab(0x244)][_0x16beab(0xd0)](),this[_0x16beab(0x17f)]&&this[_0x16beab(0x17f)]['hide']());}[_0x12f7be(0x2e8)](){const _0x2ebf19=_0x12f7be;for(const _0x1d1e1f of this[_0x2ebf19(0x1a7)])_0x1d1e1f[_0x2ebf19(0x2e8)]();this[_0x2ebf19(0x17f)]&&this[_0x2ebf19(0x17f)]['dispose'](),this['_anchorDot']&&this[_0x2ebf19(0x244)]['dispose'](),this[_0x2ebf19(0xbb)]&&this[_0x2ebf19(0xbb)][_0x2ebf19(0x2e8)](),this[_0x2ebf19(0x29d)]&&this[_0x2ebf19(0x29d)]();}[_0x12f7be(0x11d)](){const _0x342eca=_0x12f7be;var _0x102826;const {_docSkeleton:_0x1618ad,_document:_0x31e27f}=this,{color:_0x4c2c71,name:_0x19f8ad,ranges:_0x1c1a3e}=this[_0x342eca(0x152)],_0x325d15=_0x31e27f[_0x342eca(0x2d8)](),{docsLeft:_0x2f1181,docsTop:_0x36a27f}=_0x325d15,_0x8e8cc8=new _0x5a7e88(_0x325d15,_0x1618ad);for(const {startOffset:_0x35c291,endOffset:_0x24dc14,rangeType:_0x3c7e41,segmentId:_0x400d6e,segmentPage:_0x455cdd,collapsed:_0x3f44fe,isActive:_0xddd5a0}of _0x1c1a3e){const _0xf5391d=_0x1618ad[_0x342eca(0xb5)](_0x35c291,!0x0,_0x400d6e,_0x455cdd);let _0x12f2cf=_0x1618ad[_0x342eca(0xb5)](_0x24dc14,!0x0,_0x400d6e,_0x455cdd);if(_0x12f2cf==null&&(_0x12f2cf=_0x1618ad[_0x342eca(0xb5)](_0x24dc14-0x1,!0x1,_0x400d6e,_0x455cdd)),_0xddd5a0){const {contentBoxPointGroup:_0x1558b5}=_0x8e8cc8[_0x342eca(0x2b8)](_0x12f2cf,_0x12f2cf);if(_0x1558b5[_0x342eca(0x1c8)]===0x0)continue;this['_drawAnchor'](_0x4c2c71,_0x1558b5,_0x2f1181,_0x36a27f,_0x19f8ad),this[_0x342eca(0x29d)]=this[_0x342eca(0x24e)]();}if(_0xf5391d&&_0x12f2cf){if(_0x3c7e41===_0x6ed74f[_0x342eca(0x101)]){const _0x26f9c9=new _0x506f46(_0x325d15,_0x1618ad),{pointGroup:_0x36c61d}=(_0x102826=_0x26f9c9['getRangePointData'](_0xf5391d,_0x12f2cf))!=null?_0x102826:{};if(_0x36c61d==null||_0x36c61d[_0x342eca(0x1c8)]===0x0)continue;this[_0x342eca(0x1cd)](_0x4c2c71,_0x36c61d,_0x2f1181,_0x36a27f);}else{if(!_0x3f44fe){const {borderBoxPointGroup:_0x27e9dc}=_0x8e8cc8[_0x342eca(0x2b8)](_0xf5391d,_0x12f2cf);if(_0x27e9dc[_0x342eca(0x1c8)]===0x0)continue;this['_drawTextRange'](_0x4c2c71,_0x27e9dc,_0x2f1181,_0x36a27f);}}}}}[_0x12f7be(0xc9)](_0x33d5cd,_0x652d4a,_0x15b4ad,_0x291ad7,_0x5b35d4){const _0x55145f=_0x12f7be,_0x279171=this[_0x55145f(0x269)](_0x652d4a),{left:_0x1cc67b,top:_0x4c7f54,height:_0x54a19d}=_0x279171,_0x5e410b=this[_0x55145f(0x2e0)](),_0x3ca605=zi/_0x5e410b,_0x30e121=new _0xf6029d(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7,'height':_0x54a19d,'width':Ki,'fill':_0x33d5cd||_0x51fc9e(_0x5c8de6[_0x55145f(0x16f)],0x0),'strokeWidth':_0x3ca605,'stroke':Ji,'evented':!0x0});this[_0x55145f(0xbb)]=_0x30e121,this[_0x55145f(0x276)][_0x55145f(0x247)](_0x30e121,_0x4df622);const _0xf576c2=new _0xf6029d(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x33d5cd||_0x51fc9e(_0x5c8de6['black'],0x0),'strokeWidth':0x0,'stroke':_0x33d5cd||_0x51fc9e(_0x5c8de6[_0x55145f(0x16f)],0x0),'evented':!0x1});this[_0x55145f(0x244)]=_0xf576c2,this[_0x55145f(0x276)][_0x55145f(0x247)](_0xf576c2,_0x4df622);const _0x22aa12=new ve(De+_0x28ef98(z),{'left':_0x1cc67b+_0x15b4ad-_0x3ca605,'top':_0x4c7f54+_0x291ad7-Q,'text':_0x5b35d4,'color':_0x33d5cd});this[_0x55145f(0x17f)]=_0x22aa12,this[_0x55145f(0x276)][_0x55145f(0x247)](_0x22aa12,_0x4df622),this['_hover']=!0x1;}[_0x12f7be(0x24e)](){const _0x2ba20a=_0x12f7be,_0x5694f8=this[_0x2ba20a(0xbb)][_0x2ba20a(0x198)]['subscribeEvent'](()=>{const _0x434ee8=_0x2ba20a;this[_0x434ee8(0x162)]=!0x0;}),_0x48e84b=this['_anchor'][_0x2ba20a(0x286)][_0x2ba20a(0x2b5)](()=>{const _0x340860=_0x2ba20a;this[_0x340860(0x2c7)]&&clearTimeout(this[_0x340860(0x2c7)]),this[_0x340860(0x2c7)]=setTimeout(()=>{const _0x508636=_0x340860;this[_0x508636(0x162)]=!0x1;},0x7d0);});return()=>{const _0x337777=_0x2ba20a;_0x5694f8[_0x337777(0x29f)](),_0x48e84b[_0x337777(0x29f)]();};}[_0x12f7be(0x227)](_0x1bd1f2,_0x360670,_0x103b50,_0x179ede){const _0x4e8349=_0x12f7be,_0xe04fb1=new _0x376a8e(_0x1bd1f2)[_0x4e8349(0x308)](0.2)[_0x4e8349(0x1e7)](),_0x369376=new _0x6842e7(Xi+_0x28ef98(z),{'pointsGroup':_0x360670,'fill':_0xe04fb1||_0x51fc9e(_0x5c8de6[_0x4e8349(0x16f)],0.2),'left':_0x103b50,'top':_0x179ede,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4e8349(0x1a7)][_0x4e8349(0x210)](_0x369376),this[_0x4e8349(0x276)][_0x4e8349(0x247)](_0x369376,_0x4df622);}['_drawRectRange'](_0x20860e,_0x25efbe,_0x287e1c,_0xe8ca54){const _0x3582f4=_0x12f7be,_0x4e1d71=new _0x376a8e(_0x20860e)[_0x3582f4(0x308)](0.2)[_0x3582f4(0x1e7)](),_0x2b55d8=new _0x6842e7(Gi+_0x28ef98(z),{'pointsGroup':_0x25efbe,'fill':_0x4e1d71||_0x51fc9e(_0x5c8de6[_0x3582f4(0x16f)],0.2),'left':_0x287e1c,'top':_0xe8ca54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3582f4(0x1a7)][_0x3582f4(0x210)](_0x2b55d8),this[_0x3582f4(0x276)][_0x3582f4(0x247)](_0x2b55d8,_0x4df622);}[_0x12f7be(0x269)](_0x18b3ef){const _0xce881d=_0x18b3ef[0x0],_0x476ae9=_0xce881d[0x0],_0x5b6c1f=_0xce881d[0x2],{x:_0x3ea84a,y:_0x491c69}=_0x476ae9,{x:_0x13e383,y:_0x4389b0}=_0x5b6c1f;return{'left':_0x3ea84a,'top':_0x491c69,'width':_0x13e383-_0x3ea84a,'height':_0x4389b0-_0x491c69};}[_0x12f7be(0x2e0)](){const _0x57e18d=_0x12f7be,{scaleX:_0x38c7b3,scaleY:_0x2a8c29}=this['_scene'][_0x57e18d(0x1b3)]();return Math[_0x57e18d(0xfc)](_0x38c7b3,_0x2a8c29);}}var Zi=Object[_0x12f7be(0x214)],Qi=(_0x3c982c,_0x4a766d,_0x3f0dbd,_0x2c7de9)=>{const _0x49862a=_0x12f7be;for(var _0x41018d=_0x2c7de9>0x1?void 0x0:_0x2c7de9?Zi(_0x4a766d,_0x3f0dbd):_0x4a766d,_0x1c8bd0=_0x3c982c[_0x49862a(0x1c8)]-0x1,_0x49b0bb;_0x1c8bd0>=0x0;_0x1c8bd0--)(_0x49b0bb=_0x3c982c[_0x1c8bd0])&&(_0x41018d=_0x49b0bb(_0x41018d)||_0x41018d);return _0x41018d;},ie=(_0x32a7ba,_0x1df4fd)=>(_0x5e17c5,_0x530bf1)=>_0x1df4fd(_0x5e17c5,_0x530bf1,_0x32a7ba);let Fe=class extends _0x53e01a{constructor(_0xdc8141,_0x22f04d,_0x5de0e6,_0x5226d3,_0x2bea8b){const _0x32c505=_0x12f7be;super(),_(this,_0x32c505(0x123),[]),_(this,_0x32c505(0x145),[]),(this[_0x32c505(0x2a0)]=_0xdc8141,this['_docSkeletonManagerService']=_0x22f04d,this[_0x32c505(0xbd)]=_0x5de0e6,this[_0x32c505(0x21d)]=_0x5226d3,this['_themeService']=_0x2bea8b,this[_0x32c505(0x279)]());}[_0x12f7be(0x279)](){const _0x10e2b4=_0x12f7be,_0x2c449d=this[_0x10e2b4(0x2a0)][_0x10e2b4(0x2a5)],_0x1e28d0=this[_0x10e2b4(0x12a)];this['disposeWithMe'](_0x48aeb3([this[_0x10e2b4(0xbd)][_0x10e2b4(0x2bc)](_0x2c449d),this[_0x10e2b4(0xf4)]['currentTheme$']])[_0x10e2b4(0x1c3)](_0x2da2ce(([_0x313d77,_0x5021cf])=>({'skeleton':_0x1e28d0[_0x10e2b4(0x153)](),'cursors':[..._0x313d77['values']()][_0x10e2b4(0x25c)](_0x144cf1=>({..._0x144cf1,'color':this['_themeService'][_0x10e2b4(0x157)](_0x144cf1[_0x10e2b4(0x126)])}))})))[_0x10e2b4(0x1e6)](_0x114a47=>{const _0x505add=_0x10e2b4;if(this[_0x505add(0x224)](),_0x114a47){const {skeleton:_0x22013d,cursors:_0x3e5174}=_0x114a47;this[_0x505add(0x187)](_0x22013d,_0x3e5174);}})),this[_0x10e2b4(0x25d)](),this[_0x10e2b4(0x1b8)]();}[_0x12f7be(0x187)](_0x2c4bbc,_0x559470){const _0xc2c653=_0x12f7be,{scene:_0x36b2fd,mainComponent:_0x2cc37b}=this[_0xc2c653(0x2a0)],_0xaa9174=_0x559470[_0xc2c653(0x2ae)](_0x182bb9=>new ct(_0x182bb9,_0x36b2fd,_0x2c4bbc,_0x2cc37b));this[_0xc2c653(0x123)]=_0xaa9174,this[_0xc2c653(0x145)]=_0x559470;}[_0x12f7be(0x128)](){const _0x25316b=_0x12f7be;this[_0x25316b(0x224)]();const {scene:_0x333955,mainComponent:_0x2a9c9a}=this[_0x25316b(0x2a0)],_0x4c5ba2=this['_docSkeletonManagerService'][_0x25316b(0x153)](),_0x735c7=this['_cursors'][_0x25316b(0x2ae)](_0xa49286=>new ct(_0xa49286,_0x333955,_0x4c5ba2,_0x2a9c9a));this[_0x25316b(0x123)]=_0x735c7;}[_0x12f7be(0x224)](){const _0x3d3ed1=_0x12f7be;this['_cursorShapes'][_0x3d3ed1(0x275)](_0xf9d58c=>_0xf9d58c['dispose']()),this[_0x3d3ed1(0x123)]=[];}['_initCommandExecutedListener'](){const _0x26a193=_0x12f7be,_0x35ab5a=[_0xea9b01['id']];this[_0x26a193(0x26c)](this['_commandService'][_0x26a193(0x188)](_0x1cc046=>{const _0x13d259=_0x26a193;_0x35ab5a[_0x13d259(0x2b7)](_0x1cc046['id'])&&_0x1cc046['params'][_0x13d259(0x2a5)]===this[_0x13d259(0x2a0)][_0x13d259(0x2a5)]&&this[_0x13d259(0x128)]();}));}[_0x12f7be(0x25d)](){const _0x80680a=_0x12f7be;this['disposeWithMe'](_0x535589(this[_0x80680a(0x2a0)][_0x80680a(0x10d)][_0x80680a(0x306)])[_0x80680a(0x1c3)](_0x57f830(_0x383bc1=>_0x383bc1[_0x80680a(0x16d)]===_0x19edf3['resize']),_0x58940e(0x10))[_0x80680a(0x1e6)](()=>{const _0x577e7e=_0x80680a;this[_0x577e7e(0x128)]();}));}};Fe=Qi([ie(0x1,_0x3714f8(_0x17ec67)),ie(0x2,_0x3714f8(H)),ie(0x3,_0x58f12e),ie(0x4,_0x3714f8(_0x252ee3))],Fe);const qi=0x1,en=1.5;class tn extends _0x453ad9{constructor(_0x469e9e,_0x491617){const _0x118807=_0x12f7be;super(_0x469e9e,_0x491617),_(this,_0x118807(0x231)),_(this,'_hovered',!0x1),_(this,_0x118807(0x1d0)),_(this,_0x118807(0xe7),''),_(this,_0x118807(0xfb),_0x118807(0x144)),_(this,_0x118807(0x1ce)),(_0x491617&&this[_0x118807(0x165)](_0x491617),this[_0x118807(0x198)]['subscribeEvent'](()=>this[_0x118807(0x165)]({'hovered':!0x0})),this[_0x118807(0x286)][_0x118807(0x2b5)](()=>this[_0x118807(0x165)]({'hovered':!0x1})));}[_0x12f7be(0x165)](_0x5eed11){const _0x2d7ac3=_0x12f7be;var _0x10d158,_0x5e068b,_0x1b77e8,_0x1f1cec,_0xe57d23,_0x3bbbbc;this[_0x2d7ac3(0x231)]=(_0x10d158=_0x5eed11[_0x2d7ac3(0x126)])!=null?_0x10d158:this['_color'],this['_hovered']=(_0x5e068b=_0x5eed11[_0x2d7ac3(0x1b9)])!=null?_0x5e068b:this[_0x2d7ac3(0x2d2)],this[_0x2d7ac3(0x1d0)]=(_0x1b77e8=_0x5eed11[_0x2d7ac3(0x1db)])!=null?_0x1b77e8:this[_0x2d7ac3(0x1d0)],this[_0x2d7ac3(0xe7)]=(_0x1f1cec=_0x5eed11['name'])!=null?_0x1f1cec:this[_0x2d7ac3(0xe7)],this[_0x2d7ac3(0xfb)]=(_0xe57d23=_0x5eed11[_0x2d7ac3(0x10f)])!=null?_0xe57d23:this['_labelPosition'],this['_backgroundColor']=(_0x3bbbbc=_0x5eed11[_0x2d7ac3(0x183)])!=null?_0x3bbbbc:this['_backgroundColor'],this[_0x2d7ac3(0xe8)]({'width':_0x5eed11[_0x2d7ac3(0x1e2)],'height':_0x5eed11[_0x2d7ac3(0x230)]});}[_0x12f7be(0x1f0)](_0x1a9af0){const _0x10599f=_0x12f7be,{row:_0x29847e,column:_0x56f2a3}=_0x1a9af0;if(_0x29847e>=this[_0x10599f(0x1d0)]['startRow']&&_0x29847e<=this[_0x10599f(0x1d0)][_0x10599f(0xd9)]&&_0x56f2a3>=this[_0x10599f(0x1d0)][_0x10599f(0x2ac)]&&_0x56f2a3<=this[_0x10599f(0x1d0)][_0x10599f(0x12b)]){this[_0x10599f(0x165)]({'hovered':!0x0});return;}this[_0x10599f(0x165)]({'hovered':!0x1});}['triggerDblclick'](_0x5f581d){return!0x1;}[_0x12f7be(0x1f9)](_0x319326){const _0x4b4af5=_0x12f7be;_0xf6029d[_0x4b4af5(0x2ef)](_0x319326,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4b4af5(0x1ce)]}),this['_hovered']&&(_0x319326['save'](),_0x319326['transform'](0x1,0x0,0x0,0x1,this[_0x4b4af5(0x1e2)],this[_0x4b4af5(0xfb)]===_0x4b4af5(0x10e)?0x0:-Q),ve[_0x4b4af5(0x2ef)](_0x319326,{'text':this['_name'],'color':this[_0x4b4af5(0x231)]}),_0x319326[_0x4b4af5(0x2d0)]());}}var sn=Object[_0x12f7be(0x214)],nn=(_0x8f896b,_0x3719d1,_0x5b33b0,_0x202adf)=>{for(var _0x56eea2=_0x202adf>0x1?void 0x0:_0x202adf?sn(_0x3719d1,_0x5b33b0):_0x3719d1,_0x5364d7=_0x8f896b['length']-0x1,_0x5c7e58;_0x5364d7>=0x0;_0x5364d7--)(_0x5c7e58=_0x8f896b[_0x5364d7])&&(_0x56eea2=_0x5c7e58(_0x56eea2)||_0x56eea2);return _0x56eea2;},be=(_0x2ede4b,_0x1d15dd)=>(_0x188e08,_0x16b534)=>_0x1d15dd(_0x188e08,_0x16b534,_0x2ede4b);const rn=0x1389;let ke=class extends _0x53e01a{constructor(_0x3fdf4c,_0x521dd0,_0x1b06c7,_0x460433){const _0x5ada1d=_0x12f7be;super(),_(this,'_cursors',new Set()),_(this,_0x5ada1d(0x1aa),null),(this[_0x5ada1d(0x2a0)]=_0x3fdf4c,this[_0x5ada1d(0x1dc)]=_0x521dd0,this[_0x5ada1d(0xbd)]=_0x1b06c7,this[_0x5ada1d(0xf4)]=_0x460433,this[_0x5ada1d(0x279)]());}[_0x12f7be(0x279)](){const _0x2d64de=_0x12f7be;this[_0x2d64de(0x1dc)][_0x2d64de(0x117)]['pipe'](_0x5894b4(this[_0x2d64de(0x2a6)]),_0x1fb447(_0x521882=>{const _0x3eb58c=_0x2d64de;if(_0x521882){const _0x243c52=_0x521882[_0x3eb58c(0x1e4)];return _0x48aeb3(this[_0x3eb58c(0xbd)][_0x3eb58c(0x2bc)](this[_0x3eb58c(0x2a0)]['unitId']),this['_themeService'][_0x3eb58c(0x23b)])[_0x3eb58c(0x1c3)](_0x2da2ce(([_0x5d2fcf,_0x14b9f7])=>{const _0x562042=_0x3eb58c,_0x1512cb=new Map();return _0x5d2fcf[_0x562042(0x275)]((_0x12256c,_0x3407e1)=>{const _0x1b3bed=_0x562042;if(_0x12256c[_0x1b3bed(0x18b)]===_0x243c52){const _0x4704f8={..._0x12256c};_0x4704f8[_0x1b3bed(0x126)]=this['_themeService'][_0x1b3bed(0x157)](_0x12256c['color']),_0x1512cb[_0x1b3bed(0x13b)](_0x3407e1,_0x4704f8);}}),{'skeleton':_0x521882,'cursors':_0x1512cb};}));}return _0x1ec186({'skeleton':null,'cursors':new Map()});}))[_0x2d64de(0x1e6)](({skeleton:_0x2dc9fd,cursors:_0x24b770})=>{const _0x47767d=_0x2d64de;this[_0x47767d(0x224)](),_0x2dc9fd&&this['_updateCollabCursors'](_0x2dc9fd,_0x24b770);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2d64de(0x1e6)](_0x395d7f=>{const _0x4954ef=_0x2d64de;if(_0x395d7f==null)return;const {skeleton:_0x1e632a}=_0x395d7f,{scene:_0x2f9b85}=this[_0x4954ef(0x2a0)];_0x2f9b85['onPointerMove$'][_0x4954ef(0x2b5)](_0x5a1035(_0x4f6950=>{const _0x1db003=_0x4954ef;var _0x35fd68,_0x245da1;const {offsetX:_0x48d66f,offsetY:_0x28652e}=_0x4f6950,{x:_0x5defbf,y:_0x136282}=_0x2f9b85['getRelativeToViewportCoord'](_0x20bdbd[_0x1db003(0x1ab)]([_0x48d66f,_0x28652e])),{scaleX:_0x25903d,scaleY:_0x3b72cd}=_0x2f9b85[_0x1db003(0x1b3)](),_0x548156=_0x2f9b85[_0x1db003(0x299)](_0x1db3ff['VIEW_MAIN']),_0x799917=_0x2f9b85[_0x1db003(0x121)](_0x20bdbd['FromArray']([_0x5defbf,_0x136282]),_0x548156),_0x2b4ef8=_0x1e632a[_0x1db003(0x18e)](_0x48d66f,_0x28652e,_0x25903d,_0x3b72cd,_0x799917);((_0x35fd68=this[_0x1db003(0x1aa)])==null?void 0x0:_0x35fd68['column'])===_0x2b4ef8[_0x1db003(0x212)]&&((_0x245da1=this[_0x1db003(0x1aa)])==null?void 0x0:_0x245da1[_0x1db003(0x141)])===_0x2b4ef8[_0x1db003(0x141)]||this[_0x1db003(0x145)][_0x1db003(0x275)](_0x523e2c=>{const _0x105e53=_0x1db003;_0x523e2c[_0x105e53(0x1f0)](_0x2b4ef8);});},0x64));});}[_0x12f7be(0x187)](_0x474e6e,_0x46cf87){const _0x33a201=_0x12f7be;var _0x4a0f6d;const _0x1100e8=(_0x4a0f6d=this[_0x33a201(0x1dc)][_0x33a201(0xf3)]())==null?void 0x0:_0x4a0f6d[_0x33a201(0x11e)];if(!_0x1100e8)return;const _0x182c76=this[_0x33a201(0xc3)]();if(!_0x182c76)return;this[_0x33a201(0x145)][_0x33a201(0x275)](_0x39ce21=>{const _0x4a7221=_0x33a201;_0x39ce21[_0x4a7221(0x240)]();});const {scene:_0x1d2987}=_0x182c76,_0x52915b=on(Array[_0x33a201(0x1cc)](_0x46cf87[_0x33a201(0xd3)]()))[_0x33a201(0x2ae)](_0xf950a=>{const _0x5d37fd=_0x33a201,{color:_0x16522e,range:_0x1b9b2f,name:_0x42dc67,selection:_0x2c70e6,sheetID:_0x79e615}=_0xf950a,{startColumn:_0x37d2f1,startRow:_0x3fa8f7,endColumn:_0x1b9abb,endRow:_0x5f5ae9}=_0x1b9b2f,_0x510594=_0x30bc8b(_0x3fa8f7,_0x37d2f1,_0x1d2987,_0x1100e8),_0x3a6bf4=_0x30bc8b(_0x5f5ae9,_0x1b9abb,_0x1d2987,_0x1100e8),{columnHeaderHeightAndMarginTop:_0xf8ab97}=_0x1100e8,{startX:_0x5f3fb8,startY:_0x3209fa}=_0x510594,{endX:_0x42f35d,endY:_0x37e948}=_0x3a6bf4,_0xf923f4=_0x42f35d-_0x5f3fb8,_0x4b3179=_0x37e948-_0x3209fa,_0x170bad={'labelPosition':_0x3209fa-_0xf8ab97>=Q?_0x5d37fd(0x144):_0x5d37fd(0x10e),'sheetID':_0x79e615,'range':_0x1b9b2f,'color':_0x16522e,'name':_0x42dc67,'selection':_0x2c70e6,'left':_0x5f3fb8,'top':_0x3209fa,'width':_0xf923f4,'height':_0x4b3179,'evented':!0x1,'zIndex':rn};return new tn(_0x42dc67,_0x170bad);});_0x1d2987[_0x33a201(0x2f0)](_0x52915b,qi),this['_cursors']=new Set(_0x52915b);}[_0x12f7be(0x224)](){const _0x5eb5f4=_0x12f7be;var _0x23d51c;(_0x23d51c=this[_0x5eb5f4(0x145)])==null||_0x23d51c['forEach'](_0x4ecf60=>_0x4ecf60[_0x5eb5f4(0x2e8)]());}[_0x12f7be(0xc3)](){const _0x3762dc=_0x12f7be;return _0x5bfd58(this['_context']['unit'],this[_0x3762dc(0x2a0)]);}};ke=nn([be(0x1,_0x3714f8(_0x498a70)),be(0x2,_0x3714f8(H)),be(0x3,_0x3714f8(_0x252ee3))],ke);function on(_0x2a1e0e){const _0x5a32d2=_0x12f7be,_0x5533dc=new Map();return _0x2a1e0e['forEach'](_0x3bfd38=>{const _0x193603=_0x473f;if(_0x5533dc[_0x193603(0x201)](_0x3bfd38[_0x193603(0x172)])){const _0x1bd4bb=_0x5533dc[_0x193603(0x163)](_0x3bfd38[_0x193603(0x172)]);_0x1bd4bb[_0x193603(0x197)]+=',\x20'+_0x3bfd38[_0x193603(0x197)];}else _0x5533dc[_0x193603(0x13b)](_0x3bfd38[_0x193603(0x172)],_0x3bfd38);}),Array[_0x5a32d2(0x1cc)](_0x5533dc[_0x5a32d2(0xd3)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x4f3fe0,_0x4196e0,_0x581c5b,_0x1fe0ff)=>{for(var _0x427ba4=_0x1fe0ff>0x1?void 0x0:_0x1fe0ff?an(_0x4196e0,_0x581c5b):_0x4196e0,_0x4a9526=_0x4f3fe0['length']-0x1,_0x311f44;_0x4a9526>=0x0;_0x4a9526--)(_0x311f44=_0x4f3fe0[_0x4a9526])&&(_0x427ba4=_0x311f44(_0x427ba4)||_0x427ba4);return _0x427ba4;},F=(_0x3779a2,_0x4d97)=>(_0x3e205a,_0x30909e)=>_0x4d97(_0x3e205a,_0x30909e,_0x3779a2);let _e=class extends _0x112363{constructor(_0x29a21b,_0x5296df,_0x2e1037,_0x2e17e3,_0x2c7c59,_0x15bb9a){const _0x28e14c=_0x12f7be;super(),this[_0x28e14c(0x17d)]=_0x29a21b,this[_0x28e14c(0x16c)]=_0x5296df,this[_0x28e14c(0x2c2)]=_0x2e1037,this['_messageService']=_0x2e17e3,this[_0x28e14c(0x13a)]=_0x2c7c59,this[_0x28e14c(0x185)]=_0x15bb9a,this[_0x28e14c(0x229)](),this[_0x28e14c(0x1c1)]();}[_0x12f7be(0x229)](){const _0x539130=_0x12f7be;this['disposeWithMe'](this[_0x539130(0x17d)][_0x539130(0x218)](()=>{const _0x518170=_0x539130;if(this[_0x518170(0x16c)]['saveTaskMap']['size'])return this[_0x518170(0x185)]['t'](_0x518170(0x116));}));}['_initEvent'](){const _0x325a7e=_0x12f7be;this[_0x325a7e(0x26c)](this['_collaborationUIEventService'][_0x325a7e(0x295)]['subscribe'](_0x34c46f=>{const _0x553c5d=_0x325a7e;_0x34c46f['id']===_0x45a0bb['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Warning'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x20b))}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x119)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this['_localeService']['t'](_0x553c5d(0x274))}),_0x34c46f['id']===_0x45a0bb['PERMISSION_DENIED']&&this[_0x553c5d(0x13a)][_0x553c5d(0xd0)]({'title':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x248)),'content':this[_0x553c5d(0x185)]['t']('permission.content'),'type':'error','duration':0x0}),_0x34c46f['id']===_0x45a0bb['CONFLICT']&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Error'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x274))+'('+_0x34c46f[_0x553c5d(0x19f)]+')'}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0xea)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this[_0x553c5d(0x185)]['t'](_0x34c46f[_0x553c5d(0x19f)]||'')}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x2ff)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x1b2)],'content':this['_localeService']['t']('session.will-retry')}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x1a4)]&&this['_messageService'][_0x553c5d(0xd0)]({'type':_0x4bbdcc[_0x553c5d(0x11a)],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0xbe))}),_0x34c46f['id']===_0x45a0bb[_0x553c5d(0x138)]&&this[_0x553c5d(0x2cf)][_0x553c5d(0xd0)]({'type':_0x4bbdcc['Error'],'content':this[_0x553c5d(0x185)]['t'](_0x553c5d(0x302))});}));}};_e=cn([F(0x0,_0x3e8c86),F(0x1,_0x381fc8),F(0x2,_0x3714f8(_0x4cdc9c)),F(0x3,_0x543869),F(0x4,_0x4d19e9),F(0x5,_0x3714f8(_0x35b6c7))],_e);var _n=Object[_0x12f7be(0x214)],ln=(_0x31e0e0,_0x36202c,_0x1e373f,_0x274243)=>{for(var _0xa14bb5=_0x274243>0x1?void 0x0:_0x274243?_n(_0x36202c,_0x1e373f):_0x36202c,_0x452216=_0x31e0e0['length']-0x1,_0x2e4eea;_0x452216>=0x0;_0x452216--)(_0x2e4eea=_0x31e0e0[_0x452216])&&(_0xa14bb5=_0x2e4eea(_0xa14bb5)||_0xa14bb5);return _0xa14bb5;},ne=(_0x12ff5b,_0x24cd2f)=>(_0xd6d120,_0x1c7e1e)=>_0x24cd2f(_0xd6d120,_0x1c7e1e,_0x12ff5b);let le=class extends _0x112363{constructor(_0xb96125,_0x1b050a,_0x4ab0dd,_0xb75860){const _0x55f0a2=_0x12f7be;super(),_(this,_0x55f0a2(0x14e)),(this['_injector']=_0xb96125,this[_0x55f0a2(0x21e)]=_0x1b050a,this[_0x55f0a2(0x267)]=_0x4ab0dd,this[_0x55f0a2(0x137)]=_0xb75860,this['_init']());}[_0x12f7be(0x279)](){const _0x630713=_0x12f7be;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x630713(0x21b)](),this[_0x630713(0x112)]();}['_initUserListener'](){const _0x4f7182=_0x12f7be;this[_0x4f7182(0x26c)](this['_collaborationSessionService'][_0x4f7182(0x18d)][_0x4f7182(0x1e6)](_0x14b7ed=>{const _0x50451b=_0x4f7182;this[_0x50451b(0x14e)]=_0x14b7ed==null?void 0x0:_0x14b7ed[_0x50451b(0x2ab)];}));}[_0x12f7be(0x20e)](){const _0x1765eb=_0x12f7be,_0xca41a3=_0x25faae=>{const _0x1b281e=_0x473f;var _0x499b51;this[_0x1b281e(0x2db)]('error','[Window\x20Error]:\x20'+_0x25faae['message']+'\x20at\x20'+_0x25faae[_0x1b281e(0x193)]+':'+_0x25faae[_0x1b281e(0x2dc)]+':'+_0x25faae[_0x1b281e(0x1ec)]+'\x0a'+(((_0x499b51=_0x25faae[_0x1b281e(0x2d5)])==null?void 0x0:_0x499b51['stack'])||''));};window[_0x1765eb(0x176)](_0x1765eb(0x2d5),_0xca41a3),this[_0x1765eb(0x26c)](()=>{const _0xf95c38=_0x1765eb;window[_0xf95c38(0x108)](_0xf95c38(0x2d5),_0xca41a3);});}['_initUnhandledRejectionListener'](){const _0xccd62f=_0x12f7be,_0x26a1c6=_0x31dc4f=>{const _0x339fc5=_0x473f;this['_uploadLog'](_0x339fc5(0x2d5),_0x339fc5(0x14a)+_0x31dc4f[_0x339fc5(0x278)]);};window[_0xccd62f(0x176)]('unhandledrejection',_0x26a1c6),this[_0xccd62f(0x26c)](()=>{const _0x5e04cc=_0xccd62f;window['removeEventListener'](_0x5e04cc(0x19e),_0x26a1c6);});}[_0x12f7be(0x21b)](){const _0x2e8bda=_0x12f7be,_0x453deb=this['_logService'][_0x2e8bda(0x2d5)][_0x2e8bda(0x2cd)](this[_0x2e8bda(0x267)]);this[_0x2e8bda(0x267)][_0x2e8bda(0x2d5)]=(..._0xdf2c1b)=>{const _0x79ed29=_0x2e8bda,_0x2bd06f=_0xdf2c1b[_0x79ed29(0x2ae)](_0x4eb929=>_0x4eb929 instanceof Error?_0x4eb929[_0x79ed29(0x2f2)]+'\x0a'+_0x4eb929[_0x79ed29(0x107)]:String(_0x4eb929))['join']('\x20');this[_0x79ed29(0x2db)](_0x79ed29(0x2d5),_0x79ed29(0x252)+_0x2bd06f),_0x453deb(..._0xdf2c1b);},this[_0x2e8bda(0x26c)](()=>{const _0x1a0176=_0x2e8bda;this[_0x1a0176(0x267)][_0x1a0176(0x2d5)]=_0x453deb;});}['_uploadLog'](_0x2edaa5,_0xab946f){const _0x16e7f6=_0x12f7be;try{const _0x29db51={'userId':this[_0x16e7f6(0x14e)],'logLabel':_0x2edaa5,'content':_0xab946f};this['_httpService'][_0x16e7f6(0x2dd)](_0x16e7f6(0x2f4),{'body':_0x29db51})[_0x16e7f6(0x199)](()=>{});}catch{}}};le=ln([ne(0x0,_0x3714f8(_0x24a160)),ne(0x1,_0x3714f8(_0x1ef343)),ne(0x2,_0x36e10f),ne(0x3,_0x3714f8(_0x3c5e90))],le);const hn=_0x12f7be(0x307),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x5f0876,_0x10c066,_0x502c84,_0x3dcc70)=>{const _0x1f9d63=_0x12f7be;for(var _0x44341d=_0x3dcc70>0x1?void 0x0:_0x3dcc70?un(_0x10c066,_0x502c84):_0x10c066,_0x506ede=_0x5f0876[_0x1f9d63(0x1c8)]-0x1,_0x358616;_0x506ede>=0x0;_0x506ede--)(_0x358616=_0x5f0876[_0x506ede])&&(_0x44341d=_0x358616(_0x44341d)||_0x44341d);return _0x44341d;},lt=(_0x9019f7,_0xb03693)=>(_0x30ba7f,_0x3bcf3d)=>_0xb03693(_0x30ba7f,_0x3bcf3d,_0x9019f7);let he=class{constructor(_0x27b924,_0x4bdc54){const _0x5b9a0e=_0x12f7be;this[_0x5b9a0e(0x13c)]=_0x27b924,this[_0x5b9a0e(0x216)]=_0x4bdc54;}['transformIMECache'](_0x106549){const _0x306c82=_0x12f7be;this[_0x306c82(0x1f7)](_0x106549),this[_0x306c82(0x134)](_0x106549);}[_0x12f7be(0x1ee)](_0x2478ba){const _0x3226f8=_0x12f7be,{unitID:_0x43caf5}=_0x2478ba,_0x4e0ea5=this[_0x3226f8(0x216)][_0x3226f8(0x169)](_0x43caf5)['with'](_0x5d750a),{redoCache:_0x4c148b}=_0x4e0ea5[_0x3226f8(0x1c5)]();if(_0x4c148b[_0x3226f8(0x1c8)]===0x0)return _0x2478ba;let _0x4cd3b3=_0x4dbc53['deepClone'](_0x2478ba['mutations'][0x0]);for(let _0x5463be=0x0;_0x5463be<_0x4c148b[_0x3226f8(0x1c8)];_0x5463be++){const _0xa6d89c={'id':_0x3226f8(0x219),'params':{..._0x4c148b[_0x5463be]}},_0xee9f92=this[_0x3226f8(0x13c)][_0x3226f8(0x249)](_0x4cd3b3,_0xa6d89c,!0x1);if(_0x594698(_0xee9f92))throw _0xee9f92['error'];_0x4cd3b3=_0xee9f92[_0x3226f8(0x243)];}return{..._0x4dbc53[_0x3226f8(0x1ed)](_0x2478ba),'mutations':[_0x4cd3b3]};}[_0x12f7be(0x1f7)](_0x165921){const _0x2096e7=_0x12f7be,{unitID:_0x11bd15}=_0x165921,_0x58789b=this[_0x2096e7(0x216)][_0x2096e7(0x169)](_0x11bd15)[_0x2096e7(0xdd)](_0x5d750a),{undoCache:_0x339476,redoCache:_0x123928}=_0x58789b['getUndoRedoMutationParamsCache']();if(_0x339476[_0x2096e7(0x1c8)]===0x0||_0x123928[_0x2096e7(0x1c8)]===0x0)return;const _0x2cb198=[],_0x55ff02=[];let _0x366c06=_0x4dbc53[_0x2096e7(0x1ed)](_0x165921[_0x2096e7(0x283)][0x0]),_0xf3e79a=_0x4dbc53[_0x2096e7(0x1ed)](_0x165921[_0x2096e7(0x283)][0x0]);for(let _0x307564=_0x339476['length']-0x1;_0x307564>=0x0;_0x307564--){const _0x1809da={'id':_0x2096e7(0x219),'params':{..._0x339476[_0x307564]}},_0x1b8a56={'id':_0x2096e7(0x219),'params':{..._0x123928[_0x307564]}},_0x20e528=this[_0x2096e7(0x13c)][_0x2096e7(0x249)](_0x366c06,_0x1809da,!0x1),_0x3337e1=this[_0x2096e7(0x13c)][_0x2096e7(0x249)](_0xf3e79a,_0x1b8a56,!0x1);if(_0x594698(_0x20e528))throw _0x20e528[_0x2096e7(0x2d5)];if(_0x594698(_0x3337e1))throw _0x3337e1[_0x2096e7(0x2d5)];_0x2cb198[_0x2096e7(0x2be)](_0x20e528['m2Prime'][_0x2096e7(0x281)]),_0x55ff02['unshift'](_0x3337e1[_0x2096e7(0x166)][_0x2096e7(0x281)]),_0x366c06=_0x20e528[_0x2096e7(0x243)],_0xf3e79a=_0x3337e1[_0x2096e7(0x243)];}_0x58789b[_0x2096e7(0x26e)]({'undoCache':_0x2cb198,'redoCache':_0x55ff02});}[_0x12f7be(0x134)](_0x46c1c8){const _0x42657f=_0x12f7be,{unitID:_0xf5de53}=_0x46c1c8,_0x38a4be=this['_renderManagerService'][_0x42657f(0x169)](_0xf5de53)[_0x42657f(0xdd)](_0x5d750a),_0x179167=_0x38a4be[_0x42657f(0x282)]();if(_0x179167==null)return;const _0x2caa51=[{'id':_0x42657f(0x219),'params':{'unitId':_0x46c1c8['unitID'],'actions':null,'textRanges':[_0x179167]}}],_0x1d2eba=this[_0x42657f(0x13c)][_0x42657f(0x23a)](_0x46c1c8,_0x2caa51);if(!_0xcbda0(_0x1d2eba))throw _0x1d2eba[_0x42657f(0x2d5)];const _0x570a2b=_0x1d2eba[_0x42657f(0x166)][0x0][_0x42657f(0x281)][_0x42657f(0x2a1)];Array[_0x42657f(0x17c)](_0x570a2b)&&_0x570a2b[_0x42657f(0x1c8)]&&_0x38a4be[_0x42657f(0x27f)](_0x570a2b[0x0]);}};he=dn([lt(0x0,_0x5963ba),lt(0x1,_0x4ae0f1)],he);var Sn=Object[_0x12f7be(0x214)],In=(_0x3e02e4,_0x3a79d3,_0x55c29f,_0x507ad2)=>{const _0x4bd69f=_0x12f7be;for(var _0x530ae8=_0x507ad2>0x1?void 0x0:_0x507ad2?Sn(_0x3a79d3,_0x55c29f):_0x3a79d3,_0x46efc5=_0x3e02e4[_0x4bd69f(0x1c8)]-0x1,_0x3a0c37;_0x46efc5>=0x0;_0x46efc5--)(_0x3a0c37=_0x3e02e4[_0x46efc5])&&(_0x530ae8=_0x3a0c37(_0x530ae8)||_0x530ae8);return _0x530ae8;},Le=(_0x11c01b,_0x186f6f)=>(_0x4f97cd,_0x52aa0a)=>_0x186f6f(_0x4f97cd,_0x52aa0a,_0x11c01b);let ue=class{constructor(_0xd30b61,_0x399990,_0x2ef360){const _0x2da45f=_0x12f7be;this[_0x2da45f(0x213)]=_0xd30b61,this[_0x2da45f(0x13c)]=_0x399990,this[_0x2da45f(0x21c)]=_0x2ef360;}[_0x12f7be(0x129)](_0xfa453f){this['_transformHistoryAndStateStack'](_0xfa453f);}[_0x12f7be(0x1ee)](_0x263bb1){const _0x318359=_0x12f7be,{unitID:_0x2eb311}=_0x263bb1,{collaboration:_0x1c14e5}=this[_0x318359(0x21c)][_0x318359(0x203)](_0x2eb311);if(_0x1c14e5[_0x318359(0x1c8)]===0x0)return _0x263bb1;let _0x12a4c9=_0x4dbc53[_0x318359(0x1ed)](_0x263bb1['mutations'][0x0]);for(let _0x37414d=0x0;_0x37414d<_0x1c14e5[_0x318359(0x1c8)];_0x37414d++){const _0x2cfed9={'id':_0x318359(0x219),'params':{'unitId':_0x1c14e5[_0x37414d][_0x318359(0x2a5)],..._0x1c14e5[_0x37414d][_0x318359(0x222)]}},_0x4dddec=this[_0x318359(0x13c)][_0x318359(0x249)](_0x12a4c9,_0x2cfed9,!0x1);if(_0x594698(_0x4dddec))throw _0x4dddec[_0x318359(0x2d5)];_0x12a4c9=_0x4dddec[_0x318359(0x243)];}return{..._0x4dbc53[_0x318359(0x1ed)](_0x263bb1),'mutations':[_0x12a4c9]};}['_transformHistoryAndStateStack'](_0x3de92a){const _0x59214a=_0x12f7be,{unitID:_0x1108ad}=_0x3de92a,{history:_0x152bea,collaboration:_0x17e332}=this['_docStateChangeManagerService'][_0x59214a(0x203)](_0x1108ad);if(_0x152bea[_0x59214a(0x1c8)]===0x0&&_0x17e332[_0x59214a(0x1c8)]===0x0)return;const _0x49dd62=[],_0x40cc41=[];let _0x3396fa=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]),_0x4983bf=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]);for(let _0x2c6a00=_0x152bea[_0x59214a(0x1c8)]-0x1;_0x2c6a00>=0x0;_0x2c6a00--){const _0x3df78c={'id':_0x59214a(0x219),'params':{'unitId':_0x152bea[_0x2c6a00][_0x59214a(0x2a5)],..._0x152bea[_0x2c6a00][_0x59214a(0x21f)]}},_0x281ef5={'id':_0x59214a(0x219),'params':{'unitId':_0x152bea[_0x2c6a00]['unitId'],..._0x152bea[_0x2c6a00]['redoState']}},_0x52ee79=this[_0x59214a(0x13c)]['transformMutation'](_0x3396fa,_0x3df78c,!0x1),_0x3cdcf1=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x4983bf,_0x281ef5,!0x1);if(_0x594698(_0x52ee79))throw _0x52ee79[_0x59214a(0x2d5)];if(_0x594698(_0x3cdcf1))throw _0x3cdcf1[_0x59214a(0x2d5)];_0x49dd62[_0x59214a(0x2be)]({..._0x152bea[_0x2c6a00],'undoState':_0x52ee79[_0x59214a(0x166)][_0x59214a(0x281)],'redoState':_0x3cdcf1[_0x59214a(0x166)][_0x59214a(0x281)]}),_0x3396fa=_0x52ee79['m1Prime'],_0x4983bf=_0x3cdcf1[_0x59214a(0x243)];}_0x3396fa=_0x4dbc53['deepClone'](_0x3de92a[_0x59214a(0x283)][0x0]),_0x4983bf=_0x4dbc53[_0x59214a(0x1ed)](_0x3de92a[_0x59214a(0x283)][0x0]);for(let _0x361713=_0x17e332[_0x59214a(0x1c8)]-0x1;_0x361713>=0x0;_0x361713--){const _0x36be96={'id':_0x59214a(0x219),'params':{'unitId':_0x17e332[_0x361713][_0x59214a(0x2a5)],..._0x17e332[_0x361713][_0x59214a(0x21f)]}},_0x5ea7d7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x17e332[_0x361713][_0x59214a(0x2a5)],..._0x17e332[_0x361713]['redoState']}},_0xd0fa69=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x3396fa,_0x36be96,!0x1),_0x4b887f=this[_0x59214a(0x13c)][_0x59214a(0x249)](_0x4983bf,_0x5ea7d7,!0x1);if(_0x594698(_0xd0fa69))throw _0xd0fa69[_0x59214a(0x2d5)];if(_0x594698(_0x4b887f))throw _0x4b887f[_0x59214a(0x2d5)];_0x40cc41[_0x59214a(0x2be)]({..._0x17e332[_0x361713],'undoState':_0xd0fa69[_0x59214a(0x166)]['params'],'redoState':_0x4b887f[_0x59214a(0x166)][_0x59214a(0x281)]}),_0x3396fa=_0xd0fa69[_0x59214a(0x243)],_0x4983bf=_0x4b887f[_0x59214a(0x243)];}this['_docStateChangeManagerService']['setStateCache'](_0x1108ad,{'history':_0x49dd62,'collaboration':_0x40cc41});}};ue=In([Le(0x0,_0x3714f8(_0x24a160)),Le(0x1,_0x5963ba),Le(0x2,_0x3714f8(_0xc26da3))],ue);var mn=Object[_0x12f7be(0x214)],fn=(_0x3f3f7e,_0x2edcde,_0x145d8a,_0x529887)=>{const _0x367dda=_0x12f7be;for(var _0x2d8789=_0x529887>0x1?void 0x0:_0x529887?mn(_0x2edcde,_0x145d8a):_0x2edcde,_0x4d049f=_0x3f3f7e[_0x367dda(0x1c8)]-0x1,_0xd316c4;_0x4d049f>=0x0;_0x4d049f--)(_0xd316c4=_0x3f3f7e[_0x4d049f])&&(_0x2d8789=_0xd316c4(_0x2d8789)||_0x2d8789);return _0x2d8789;},ht=(_0x163c92,_0x5384ae)=>(_0x14ca04,_0x3f7018)=>_0x5384ae(_0x14ca04,_0x3f7018,_0x163c92);let de=class{constructor(_0x424c82,_0x497d9d){const _0x1245d1=_0x12f7be;this[_0x1245d1(0x213)]=_0x424c82,this['_transformService']=_0x497d9d;}['transformSelections'](_0xbcef2c){const _0x10f1f9=_0x12f7be;var _0x5e0116;const _0x3320ca=this[_0x10f1f9(0x213)][_0x10f1f9(0x163)](_0x299386),_0x15eb4d=(_0x5e0116=_0x3320ca['getDocRanges']())!=null?_0x5e0116:[];if(_0x15eb4d[_0x10f1f9(0x1c8)]===0x0)return;const _0xdc626d=_0xbcef2c['unitID'],_0x2ba872=[{'id':_0x10f1f9(0x219),'params':{'unitId':_0xdc626d,'actions':null,'textRanges':_0x15eb4d}}],_0x593128=this['_transformService']['transformMutationsWithChangeset'](_0xbcef2c,_0x2ba872);if(!_0xcbda0(_0x593128))throw _0x593128[_0x10f1f9(0x2d5)];const _0x566e4e=_0x593128[_0x10f1f9(0x166)][0x0][_0x10f1f9(0x281)][_0x10f1f9(0x2a1)];Array[_0x10f1f9(0x17c)](_0x566e4e)&&_0x566e4e[_0x10f1f9(0x1c8)]&&_0x3320ca[_0x10f1f9(0xcd)](_0x566e4e,{'unitId':_0xdc626d,'subUnitId':_0xdc626d},!0x1);}};de=fn([ht(0x0,_0x3714f8(_0x24a160)),ht(0x1,_0x5963ba)],de);var gn=Object[_0x12f7be(0x214)],En=(_0x45a5ec,_0x2db9c3,_0x2c512e,_0x424e94)=>{const _0x315c84=_0x12f7be;for(var _0x4a3343=_0x424e94>0x1?void 0x0:_0x424e94?gn(_0x2db9c3,_0x2c512e):_0x2db9c3,_0x21cd48=_0x45a5ec[_0x315c84(0x1c8)]-0x1,_0x387eb5;_0x21cd48>=0x0;_0x21cd48--)(_0x387eb5=_0x45a5ec[_0x21cd48])&&(_0x4a3343=_0x387eb5(_0x4a3343)||_0x4a3343);return _0x4a3343;},U=(_0x193549,_0x3c80ca)=>(_0x71adc8,_0x4eda7e)=>_0x3c80ca(_0x71adc8,_0x4eda7e,_0x193549);let Se=class extends _0x112363{constructor(_0xe49b8e,_0x15944b,_0x33a647,_0x55dafd,_0x8efc80,_0xdfde2d,_0x97b20f,_0x2eb510){const _0x840191=_0x12f7be;super(),_(this,_0x840191(0x2ec),new _0x51f523(_0x2a0d66[_0x840191(0x16a)])),(this[_0x840191(0x21c)]=_0xe49b8e,this[_0x840191(0x14d)]=_0x15944b,this[_0x840191(0x2c3)]=_0x33a647,this['_docTransformStateCacheService']=_0x55dafd,this[_0x840191(0x288)]=_0x8efc80,this[_0x840191(0xd7)]=_0xdfde2d,this[_0x840191(0x2cf)]=_0x97b20f,this[_0x840191(0x185)]=_0x2eb510,this['_initEntityListener']());}[_0x12f7be(0x1a8)](){const _0x354a6d=_0x12f7be;this[_0x354a6d(0x26c)](this['_collaborationController'][_0x354a6d(0x1ae)][_0x354a6d(0x1e6)](_0x592938=>{const _0x594547=_0x354a6d,_0xa14781=this[_0x594547(0x21c)][_0x594547(0x29e)][_0x594547(0x1e6)](_0x87ffd7=>{const _0x4d223f=_0x594547;if(_0x87ffd7==null)return;const {unitId:_0xf99837,redoState:_0x684ff9,commandId:_0x3990ca}=_0x87ffd7;if(_0xf99837!==_0x592938[_0x4d223f(0x254)])return;const _0x17e897={'id':_0x3990ca,'type':_0x1de431[_0x4d223f(0x11f)],'params':{'unitId':_0xf99837,'actions':_0x684ff9[_0x4d223f(0x2df)],'textRanges':null}};_0x592938[_0x4d223f(0x1f5)](_0x17e897);});if(_0x592938[_0x594547(0x26c)](_0xa14781),_0x592938 instanceof _0x2f6c55){const _0x4c35e5={'onTransformIME':_0x220025=>this[_0x594547(0x2c3)][_0x594547(0xce)](_0x220025),'onTransformState':_0x3e7dee=>this[_0x594547(0x2f8)]['transformStateCache'](_0x3e7dee),'onTransformSelections':_0x5529d5=>this[_0x594547(0x288)]['transformSelections'](_0x5529d5),'onSyncEditingCollabCursor':_0x574683=>this[_0x594547(0xd7)][_0x594547(0xe2)](_0x574683),'onTransformRemoteChangesetByIMECache':_0x2c4f1d=>this[_0x594547(0x2c3)][_0x594547(0x1ee)](_0x2c4f1d),'onTransformRemoteChangesetByStateCache':_0x149b53=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x149b53)};_0x592938['addHandlerCallback'](_0x4c35e5);}}));}};Se=En([U(0x0,_0x3714f8(_0xc26da3)),U(0x1,_0x3714f8(_0x41819a)),U(0x2,_0x3714f8(he)),U(0x3,_0x3714f8(ue)),U(0x4,_0x3714f8(de)),U(0x5,_0x3714f8(ze)),U(0x6,_0x543869),U(0x7,_0x3714f8(_0x35b6c7))],Se);var Z=(_0x36b731=>(_0x36b731[_0x36b731[_0x12f7be(0xc6)]=0x0]=_0x12f7be(0xc6),_0x36b731[_0x36b731['OK']=0x1]='OK',_0x36b731[_0x36b731[_0x12f7be(0x189)]=0x2]=_0x12f7be(0x189),_0x36b731[_0x36b731['PERMISSION_DENIED']=0x3]=_0x12f7be(0xf8),_0x36b731[_0x36b731[_0x12f7be(0x2a9)]=0x4]=_0x12f7be(0x2a9),_0x36b731[_0x36b731[_0x12f7be(0x25e)]=0x5]=_0x12f7be(0x25e),_0x36b731[_0x36b731[_0x12f7be(0x261)]=0x6]=_0x12f7be(0x261),_0x36b731[_0x36b731[_0x12f7be(0x1fd)]=0x7]=_0x12f7be(0x1fd),_0x36b731[_0x36b731['TOO_MANY_REQUESTS']=0x8]=_0x12f7be(0x28a),_0x36b731[_0x36b731['COMPLETION_FINISHED']=0x9]=_0x12f7be(0xee),_0x36b731[_0x36b731[_0x12f7be(0x2d7)]=0xa]=_0x12f7be(0x2d7),_0x36b731[_0x36b731['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x12f7be(0x114),_0x36b731[_0x36b731[_0x12f7be(0x28f)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x36b731[_0x36b731[_0x12f7be(0x1cb)]=0xd]=_0x12f7be(0x1cb),_0x36b731[_0x36b731['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x12f7be(0x15f),_0x36b731[_0x36b731[_0x12f7be(0x100)]=0xf]=_0x12f7be(0x100),_0x36b731[_0x36b731[_0x12f7be(0x232)]=0x10]=_0x12f7be(0x232),_0x36b731[_0x36b731['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x12f7be(0x22a),_0x36b731[_0x36b731[_0x12f7be(0x12d)]=0x65]=_0x12f7be(0x12d),_0x36b731[_0x36b731[_0x12f7be(0x1d7)]=0xc9]=_0x12f7be(0x1d7),_0x36b731[_0x36b731[_0x12f7be(0x24b)]=0xca]=_0x12f7be(0x24b),_0x36b731[_0x36b731['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x12f7be(0x110),_0x36b731[_0x36b731[_0x12f7be(0x246)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x36b731[_0x36b731[_0x12f7be(0x23c)]=0x1772]=_0x12f7be(0x23c),_0x36b731[_0x36b731[_0x12f7be(0x16e)]=0x1773]=_0x12f7be(0x16e),_0x36b731[_0x36b731['APPLY_REJECT']=0x1b59]=_0x12f7be(0x256),_0x36b731[_0x36b731['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x12f7be(0x1a1),_0x36b731[_0x36b731['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x12f7be(0x1fc),_0x36b731[_0x36b731[_0x12f7be(0xeb)]=0x1b5c]=_0x12f7be(0xeb),_0x36b731[_0x36b731[_0x12f7be(0x24f)]=0x1b5d]=_0x12f7be(0x24f),_0x36b731[_0x36b731[_0x12f7be(0x120)]=0x1f41]=_0x12f7be(0x120),_0x36b731[_0x36b731['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x12f7be(0xec),_0x36b731[_0x36b731['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x36b731[_0x36b731['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x12f7be(0x298),_0x36b731[_0x36b731[_0x12f7be(0x304)]=0x232c]=_0x12f7be(0x304),_0x36b731[_0x36b731[_0x12f7be(0x18a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x36b731[_0x36b731['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x12f7be(0x27e),_0x36b731[_0x36b731['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x12f7be(0xb7),_0x36b731[_0x36b731[_0x12f7be(0x17b)]=0x2713]=_0x12f7be(0x17b),_0x36b731[_0x36b731[_0x12f7be(0x27a)]=0x2714]=_0x12f7be(0x27a),_0x36b731[_0x36b731['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x12f7be(0x28e),_0x36b731[_0x36b731[_0x12f7be(0x118)]=0x271b]=_0x12f7be(0x118),_0x36b731[_0x36b731[_0x12f7be(0x19b)]=0x271c]=_0x12f7be(0x19b),_0x36b731[_0x36b731[_0x12f7be(0x1e9)]=0x271d]=_0x12f7be(0x1e9),_0x36b731[_0x36b731['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x12f7be(0x259),_0x36b731[_0x36b731[_0x12f7be(0xf2)]=0x271f]=_0x12f7be(0xf2),_0x36b731[_0x36b731[_0x12f7be(0x1ff)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x36b731[_0x36b731[_0x12f7be(0x2cb)]=0x2af9]=_0x12f7be(0x2cb),_0x36b731[_0x36b731[_0x12f7be(0x206)]=0x2ee1]=_0x12f7be(0x206),_0x36b731[_0x36b731[_0x12f7be(0x177)]=0x2ee2]=_0x12f7be(0x177),_0x36b731[_0x36b731[_0x12f7be(0x2e5)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x36b731[_0x36b731[_0x12f7be(0x113)]=0x2ee4]=_0x12f7be(0x113),_0x36b731[_0x36b731[_0x12f7be(0x2c4)]=0x2ee5]=_0x12f7be(0x2c4),_0x36b731[_0x36b731['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x12f7be(0x140),_0x36b731[_0x36b731[_0x12f7be(0x2c5)]=0x32ca]=_0x12f7be(0x2c5),_0x36b731[_0x36b731[_0x12f7be(0x2d9)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x36b731[_0x36b731[_0x12f7be(0xb2)]=0x36b1]=_0x12f7be(0xb2),_0x36b731[_0x36b731[_0x12f7be(0x284)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x36b731[_0x36b731[_0x12f7be(0x23f)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x36b731[_0x36b731[_0x12f7be(0x1d4)]=0x36b4]=_0x12f7be(0x1d4),_0x36b731[_0x36b731[_0x12f7be(0x1d3)]=0x36b5]=_0x12f7be(0x1d3),_0x36b731[_0x36b731[_0x12f7be(0x2bf)]=0x36b6]=_0x12f7be(0x2bf),_0x36b731[_0x36b731['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x12f7be(0x15a),_0x36b731[_0x36b731[_0x12f7be(0x106)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x36b731[_0x36b731[_0x12f7be(0x1d1)]=0x3715]=_0x12f7be(0x1d1),_0x36b731[_0x36b731[_0x12f7be(0x105)]=0x3716]=_0x12f7be(0x105),_0x36b731[_0x36b731[_0x12f7be(0x171)]=0x3717]=_0x12f7be(0x171),_0x36b731[_0x36b731['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x12f7be(0x194),_0x36b731[_0x36b731['REDEMPTION_INVALID_CODE']=0x3a99]='REDEMPTION_INVALID_CODE',_0x36b731[_0x36b731[_0x12f7be(0x25a)]=0x3a9a]=_0x12f7be(0x25a),_0x36b731[_0x36b731[_0x12f7be(0x167)]=0x3a9b]=_0x12f7be(0x167),_0x36b731[_0x36b731[_0x12f7be(0xd1)]=0x3a9c]=_0x12f7be(0xd1),_0x36b731[_0x36b731['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x12f7be(0x1cf),_0x36b731[_0x36b731['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x12f7be(0x273),_0x36b731[_0x36b731[_0x12f7be(0xdf)]=0x3a9f]=_0x12f7be(0xdf),_0x36b731[_0x36b731[_0x12f7be(0x2bb)]=0x3e81]=_0x12f7be(0x2bb),_0x36b731[_0x36b731[_0x12f7be(0x28b)]=-0x1]=_0x12f7be(0x28b),_0x36b731))(Z||{});function vn(_0x47b615){const _0x19a7d7=_0x12f7be;var _0x4f39fb,_0x4b3c06;const _0x45cbdc=(_0x4f39fb=_0x47b615[_0x19a7d7(0x1a3)])==null?void 0x0:_0x4f39fb['stage'],_0x111666=((_0x4b3c06=_0x47b615['stageInfo'])==null?void 0x0:_0x4b3c06[_0x19a7d7(0x2f7)])||0x0;return _0x45cbdc===_0x252b95[_0x19a7d7(0x1c9)]&&_0x111666>0x0;}function pn(_0x561e48){const _0x3b0cf1=_0x12f7be;return _0x561e48[_0x3b0cf1(0xb3)]===_0x84f645['SUCCESS'];}var On=Object[_0x12f7be(0x214)],Tn=(_0x44036c,_0x2445d7,_0x50f40f,_0x27ba37)=>{const _0x34f135=_0x12f7be;for(var _0x518bd7=_0x27ba37>0x1?void 0x0:_0x27ba37?On(_0x2445d7,_0x50f40f):_0x2445d7,_0x1b9f88=_0x44036c[_0x34f135(0x1c8)]-0x1,_0x30f650;_0x1b9f88>=0x0;_0x1b9f88--)(_0x30f650=_0x44036c[_0x1b9f88])&&(_0x518bd7=_0x30f650(_0x518bd7)||_0x518bd7);return _0x518bd7;},P=(_0x3c7b4d,_0x4c920d)=>(_0x135467,_0x3124ec)=>_0x4c920d(_0x135467,_0x3124ec,_0x3c7b4d);const Cn=_0x12f7be(0x26b),Rn=_0x12f7be(0x159),Dn=_0x12f7be(0x16b);let Ie=class extends _0x112363{constructor(_0x280164,_0x5a6625,_0x2b68bb,_0x15e80d,_0x16e1c5,_0x4c2505,_0x40a8e2){const _0x109b0a=_0x12f7be;super(),_(this,_0x109b0a(0x15d),null),_(this,_0x109b0a(0x22b),0x0),_(this,_0x109b0a(0x1c2),0x0),_(this,_0x109b0a(0x2ce),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x109b0a(0x2cf)]=_0x280164,this['_commandService']=_0x5a6625,this[_0x109b0a(0x11c)]=_0x2b68bb,this['_httpService']=_0x15e80d,this[_0x109b0a(0x1e0)]=_0x16e1c5,this['_logService']=_0x4c2505,this['_localeService']=_0x40a8e2,this['_initCommandInterceptor']());}[_0x12f7be(0x160)](){const _0xe6945e=_0x12f7be;this[_0xe6945e(0x26c)](this[_0xe6945e(0x21d)][_0xe6945e(0xbc)]((_0x119197,_0x3232ba)=>{const _0x4daaf6=_0xe6945e;var _0x3a50cb;if(_0x119197['id']!==_0x576576['id'])return;const _0x12d63a=_0x119197[_0x4daaf6(0x281)];if(!this[_0x4daaf6(0x2f1)]((_0x3a50cb=_0x12d63a[_0x4daaf6(0x156)])!=null?_0x3a50cb:[]))return;if(!this[_0x4daaf6(0x2c1)]())throw this[_0x4daaf6(0x173)](_0x119197,_0x3232ba),this['_showGuardMessage'](),new _0x24cc76();})),this['disposeWithMe'](this[_0xe6945e(0x21d)]['onCommandExecuted']((_0x124b2a,_0x3c429b)=>{const _0x35037f=_0xe6945e;if(_0x124b2a['id']!==_0x554e96['id'])return;const _0x2218fb=_0x124b2a['params'];if(vn(_0x2218fb)){const _0x515f82=_0x28ef98();this[_0x35037f(0x2ce)]['push'](_0x515f82),this[_0x35037f(0x2d4)](_0x515f82);}else{if(pn(_0x2218fb)&&this[_0x35037f(0x2ce)]['length']>0x0){const _0x4307e2=this[_0x35037f(0x2ce)][_0x35037f(0xb8)]();this['_releaseCalculationLimit'](_0x4307e2);}}}));}[_0x12f7be(0x2e8)](){const _0x494a92=_0x12f7be;super[_0x494a92(0x2e8)](),this[_0x494a92(0x291)](),this[_0x494a92(0x2ce)]=[],this[_0x494a92(0x1c2)]=0x0,this[_0x494a92(0x22b)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x12f7be(0x173)](_0x5e3ac5,_0x5d2810){const _0x36ffa9=_0x12f7be;for(let _0x5f2754=0x0;_0x5f2754<0x1e;_0x5f2754++)try{if(await this[_0x36ffa9(0x136)](),this[_0x36ffa9(0x2c1)]()){this[_0x36ffa9(0x122)](_0x5e3ac5,_0x5d2810),this[_0x36ffa9(0x2cf)][_0x36ffa9(0xd0)]({'content':this['_localeService']['t'](_0x36ffa9(0x2d1)),'type':_0x4bbdcc[_0x36ffa9(0x215)]});return;}await new Promise(_0x5d328e=>{this['_pollingInterval']=window['setTimeout'](_0x5d328e,0x3e8);});}catch(_0x1480be){this['_logService']['error'](_0x1480be);}this[_0x36ffa9(0x2cf)][_0x36ffa9(0xd0)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x4bbdcc[_0x36ffa9(0x11a)]});}[_0x12f7be(0x122)](_0x2cb853,_0x4f6bbc){const _0x16eeec=_0x12f7be;try{this[_0x16eeec(0x21d)][_0x16eeec(0x2fd)](_0x2cb853['id'],_0x2cb853[_0x16eeec(0x281)],_0x4f6bbc);}catch(_0x411f72){this[_0x16eeec(0x267)][_0x16eeec(0x2d5)](_0x411f72);}}[_0x12f7be(0x150)](_0x237b0d,_0x42c344){const _0x5a9725=_0x12f7be;_0x42c344<this[_0x5a9725(0x1c4)]||(this[_0x5a9725(0x1c4)]=_0x42c344,this[_0x5a9725(0x22b)]=Number[_0x5a9725(0xd4)](_0x237b0d[_0x5a9725(0x1b6)]),this[_0x5a9725(0x1c2)]=Number[_0x5a9725(0xd4)](_0x237b0d['currentUsage']));}async['_startCalculationLimit'](_0x1972b8){const _0x12b5bb=_0x12f7be;var _0x3a9ba1,_0x3341d3;const _0x148bad=Date[_0x12b5bb(0x23e)]();try{const _0x20860a=((_0x3a9ba1=this[_0x12b5bb(0x11c)][_0x12b5bb(0x221)](_0x3c1c8f))==null?void 0x0:_0x3a9ba1[_0x12b5bb(0x2e7)])||Rn,_0x4bc368=(await this['_httpService'][_0x12b5bb(0x2dd)](_0x20860a,{'body':JSON[_0x12b5bb(0x225)]({'taskId':_0x1972b8})}))[_0x12b5bb(0x115)];if(((_0x3341d3=_0x4bc368[_0x12b5bb(0x2d5)])==null?void 0x0:_0x3341d3[_0x12b5bb(0xfd)])!==Z['OK'])return;this[_0x12b5bb(0x150)](_0x4bc368[_0x12b5bb(0x191)],_0x148bad);}catch(_0x3a2409){this[_0x12b5bb(0x267)][_0x12b5bb(0x2d5)](_0x3a2409);}}async['_getFormulaLimitStatus'](_0x23b1ca){const _0xd2e4e8=_0x12f7be;var _0x1b0184,_0x12bdb0;const _0x3c0326=Date[_0xd2e4e8(0x23e)]();try{const _0x4a20c0=((_0x1b0184=this['_configService'][_0xd2e4e8(0x221)](_0x3c1c8f))==null?void 0x0:_0x1b0184['getformulaLimitStatusUrl'])||Cn,_0x3557cf=_0x23b1ca?_0x4a20c0+_0xd2e4e8(0xd8)+encodeURIComponent(_0x23b1ca):_0x4a20c0,_0x500d51=(await this[_0xd2e4e8(0x21e)][_0xd2e4e8(0x163)](_0x3557cf))[_0xd2e4e8(0x115)];if(((_0x12bdb0=_0x500d51[_0xd2e4e8(0x2d5)])==null?void 0x0:_0x12bdb0[_0xd2e4e8(0xfd)])!==Z['OK'])return;this[_0xd2e4e8(0x150)](_0x500d51[_0xd2e4e8(0x191)],_0x3c0326);}catch(_0x5babe9){this[_0xd2e4e8(0x267)][_0xd2e4e8(0x2d5)](_0x5babe9);}}async[_0x12f7be(0xc2)](_0x2de6c9){const _0x7a6477=_0x12f7be;var _0xa0ba51,_0x122e48;const _0x59c689=Date[_0x7a6477(0x23e)]();try{const _0x11e432=((_0xa0ba51=this[_0x7a6477(0x11c)][_0x7a6477(0x221)](_0x3c1c8f))==null?void 0x0:_0xa0ba51[_0x7a6477(0x2fa)])||Dn,_0x36801a=(await this[_0x7a6477(0x21e)][_0x7a6477(0x2dd)](_0x11e432,{'body':JSON[_0x7a6477(0x225)]({'taskId':_0x2de6c9})}))[_0x7a6477(0x115)];if(((_0x122e48=_0x36801a[_0x7a6477(0x2d5)])==null?void 0x0:_0x122e48[_0x7a6477(0xfd)])!==Z['OK'])return;this[_0x7a6477(0x150)](_0x36801a[_0x7a6477(0x191)],_0x59c689);}catch(_0x44c271){this[_0x7a6477(0x267)][_0x7a6477(0x2d5)](_0x44c271);}}[_0x12f7be(0x2c1)](){const _0x5d968c=_0x12f7be;return this[_0x5d968c(0x22b)]===0x0?!0x0:this[_0x5d968c(0x22b)]-this['_currentUsage']>0x0;}[_0x12f7be(0x291)](){const _0x1a951f=_0x12f7be;this[_0x1a951f(0x15d)]&&(clearTimeout(this[_0x1a951f(0x15d)]),this[_0x1a951f(0x15d)]=null);}[_0x12f7be(0x178)](){const _0x5d068f=_0x12f7be;this[_0x5d068f(0x2cf)]['show']({'content':this[_0x5d068f(0x185)]['t'](_0x5d068f(0x2d6)),'type':_0x4bbdcc[_0x5d068f(0x127)]});}[_0x12f7be(0x2f1)](_0x2de137){const _0x287199=_0x12f7be;for(const _0x1f0364 of _0x2de137){const {unitId:_0x517c09,sheetId:_0x520540,range:_0x1ee6a5}=_0x1f0364,_0x201778=this[_0x287199(0x1e0)][_0x287199(0x1dd)](_0x517c09);if(!_0x201778)continue;const _0x3b2a63=_0x201778[_0x287199(0x1af)](_0x520540);if(!_0x3b2a63)continue;const _0x5a0c27=_0x3b2a63['getCellMatrix']();for(let _0x292b37=_0x1ee6a5[_0x287199(0x2fc)];_0x292b37<=_0x1ee6a5['endRow'];_0x292b37++)for(let _0x20767d=_0x1ee6a5[_0x287199(0x2ac)];_0x20767d<=_0x1ee6a5[_0x287199(0x12b)];_0x20767d++){const _0x35e185=_0x5a0c27['getValue'](_0x292b37,_0x20767d);if(_0x35e185&&(_0x371c6c(_0x35e185['f'])||_0x2bd85a(_0x35e185['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x3714f8(_0x543869)),P(0x1,_0x58f12e),P(0x2,_0x5a741e),P(0x3,_0x3714f8(_0x1ef343)),P(0x4,_0x52d51e),P(0x5,_0x36e10f),P(0x6,_0x3714f8(_0x35b6c7))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x1ebe7b,_0x42ae32,_0x30b24c,_0x501e23)=>{for(var _0x2d5b5f=_0x501e23>0x1?void 0x0:_0x501e23?Nn(_0x42ae32,_0x30b24c):_0x42ae32,_0x2e7fa9=_0x1ebe7b['length']-0x1,_0x357bf4;_0x2e7fa9>=0x0;_0x2e7fa9--)(_0x357bf4=_0x1ebe7b[_0x2e7fa9])&&(_0x2d5b5f=_0x357bf4(_0x2d5b5f)||_0x2d5b5f);return _0x2d5b5f;},Ue=(_0x4020f0,_0x2ff48e)=>(_0x49c0be,_0xd29f02)=>_0x2ff48e(_0x49c0be,_0xd29f02,_0x4020f0);let He=class extends _0x112363{constructor(_0x4d0f2c,_0x20629f,_0x4e2e97){const _0x2f4fa6=_0x12f7be;super(),_(this,_0x2f4fa6(0x24c),new Map()),_(this,_0x2f4fa6(0x220),new Map()),_(this,_0x2f4fa6(0x21a),!0x1),(this[_0x2f4fa6(0x11c)]=_0x4d0f2c,this[_0x2f4fa6(0x1ef)]=_0x20629f,this[_0x2f4fa6(0xc0)]=_0x4e2e97);}[_0x12f7be(0x1b7)](){const _0x3859d3=_0x12f7be;this[_0x3859d3(0x21a)]=!0x0;}[_0x12f7be(0x300)](){const _0xd16f3d=_0x12f7be;this[_0xd16f3d(0x21a)]=!0x1;}get['saveTaskMap'](){const _0x338681=_0x12f7be;return this[_0x338681(0x220)];}[_0x12f7be(0x2e8)](){const _0x50b548=_0x12f7be;this[_0x50b548(0x266)]()['then'](()=>super[_0x50b548(0x2e8)]());}async[_0x12f7be(0x2b0)](_0x4adec4){const _0x36ff92=_0x12f7be;return this[_0x36ff92(0x21a)]?null:this[_0x36ff92(0x1ef)][_0x36ff92(0x1f1)](_0x193170(_0x4adec4));}async[_0x12f7be(0x19c)](_0x83f1ae,_0x163d49){const _0x340c2a=_0x12f7be;return!!this[_0x340c2a(0x1ef)][_0x340c2a(0x1e5)](_0x83f1ae,_0x163d49);}[_0x12f7be(0x12e)](_0x559c3f,_0x5c4c1e,_0x347252,_0x32d01e){const _0x111694=_0x12f7be,_0x19efb7=this[_0x111694(0xc0)][_0x111694(0x2b6)](_0x559c3f);this[_0x111694(0x24c)]['set'](_0x559c3f,{'unitID':_0x559c3f,'type':_0x5c4c1e,'awaitingChangeset':_0x347252,'mutations':_0x32d01e,'rev':_0x19efb7}),this['_saveTaskMap']['has'](_0x559c3f)||this[_0x111694(0xf6)](_0x559c3f);}[_0x12f7be(0xf6)](_0x553ee9){const _0x232c39=_0x12f7be,_0x4aa3d5=this[_0x232c39(0x270)]();_0x4aa3d5===0x0?this[_0x232c39(0x25f)](_0x553ee9):this[_0x232c39(0x220)][_0x232c39(0x13b)](_0x553ee9,setTimeout(()=>this[_0x232c39(0x25f)](_0x553ee9),_0x4aa3d5));}[_0x12f7be(0x270)](){const _0xacd6b0=_0x12f7be;var _0x3b103b;return(_0x3b103b=this[_0xacd6b0(0x11c)][_0xacd6b0(0x221)](_0x1d75b1))!=null?_0x3b103b:_0x41a768;}['_saveCache'](_0x1288f8){const _0x1898b7=_0x12f7be,_0x1170dd=this[_0x1898b7(0x220)]['get'](_0x1288f8);return _0x1170dd!==void 0x0&&window['clearTimeout'](_0x1170dd),this[_0x1898b7(0x1ef)][_0x1898b7(0x1e5)](_0x193170(_0x1288f8),this[_0x1898b7(0x24c)]['get'](_0x1288f8))[_0x1898b7(0x1a6)](()=>this[_0x1898b7(0x220)][_0x1898b7(0x1a0)](_0x1288f8));}async[_0x12f7be(0x266)](){const _0xc39d87=_0x12f7be,_0x51388e=[];this[_0xc39d87(0x220)][_0xc39d87(0x275)]((_0x26c0a2,_0xd26df1)=>{const _0x22bf8c=_0xc39d87;window[_0x22bf8c(0x2c9)](_0x26c0a2),_0x51388e[_0x22bf8c(0x210)](this[_0x22bf8c(0x25f)](_0xd26df1)['then'](()=>{const _0x12f276=_0x22bf8c;this[_0x12f276(0x220)][_0x12f276(0x1a0)](_0xd26df1);}));}),await Promise[_0xc39d87(0xe9)](_0x51388e);}};function _0x919a(){const _0x368be9=['doc.mutation.rich-text-editing','_disabled','_monkeyPatchLogService','_docStateChangeManagerService','_commandService','_httpService','undoState','_saveTaskMap','getConfig','redoState','executionId','_removeCollabCursors','stringify','getTypeOfUnitDisposed$','_drawTextRange','setConfig','_setupBeforeClosingHandler','CURRENT_STATUS_CANNOT_OPERATE','_maxFormulaLimit','_updateLocalCursor','getCurrentSelections','RemoveRowCommandId','_online','height','_color','LOGIN_TOKEN_PROCESSING_FAILED','init','clearInterval','removeParam','origin','history','loadUnit','_entityInit$','transformMutationsWithChangeset','currentTheme$','SNAPSHOT_HAS_BEEN_REMOVED','enableFrontendLog','now','ENTITLE_DUP_SUBSCRIPTION','makeDirty','MoveRangeCommandId','off-line-icon_clip0_910_343','m1Prime','_anchorDot','jiqing.500','SNAPSHOT_INVALID_SNAPSHOT','addObject','permission.title','transformMutation','univer-mr-2\x20univer-flex\x20univer-text-xl','USER_IS_ANONYMOUS','_cachedData','startsWith','_handleHover','APPLY_DUPLICATED','collab-rect-range-','source','[LogService\x20Error]:\x20','_doCreateSocket','unitID','subunit','APPLY_REJECT','_ensureSubject','_syncEditingCollabCursorService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','REDEMPTION_CODE_INACTIVE','on-line-icon_clip0_910_349','flatMap','_initResize','UNAUTHENTICATED','_saveCache','subUnitId','ALREADY_EXISTS','clipPath','fillRule','invokeId','defineProperty','exhaustSavingTask','_logService','UNIVER_SHEET','_getAnchorBounding','fill','/universer-api/license/formula/limit/status','disposeWithMe','arc','setUndoRedoMutationParamsCache','_unitStatus','_getSaveTimeout','defIds','defs','REDEMPTION_USER_REDEEM_TIMES_EXCEED','collaboration.closeRoom','forEach','_scene','getMergeData','reason','_init','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','1FiTLjY','svg','YUUMI_UNABLE_LOAD_URL','setActiveRange','div','params','getActiveRange','mutations','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_handleEvent','onPointerLeave$','parse','_docTransformSelectionsService','runOnServer','TOO_MANY_REQUESTS','UNRECOGNIZED','_scheduleHeartbeat','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_NO_CUBOID_FOR_QUESTION','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','override','_clearPolling','getTypeOfUnitAdded$','getDocRanges','off-line-icon','event$','USERS_LEAVE','collabStatus.conflict','LICENSE_IMPORT_SIZE_EXCEEDED','getViewport','_send','size','onStarting','_eventUnsubscribe','docStateChange$','unsubscribe','_context','textRanges','1em','purple.300','idSuffix','unitId','dispose$','disposeUnit','currentColor','NOT_FOUND','_toggleOnline','memberID','startColumn','_unitOnClients','map','_selfUnitIDs','loadOfflineData','cursorInfo','string','[CollaborationDataLoaderController]','url(#$1','subscribeEvent','getCurrentRevOfUnit','includes','getRangePointData','_onRefRangeChange','_removeClearOtherTimer','DATA_SOURCE_TOO_LARGE','getCollabCursors$','unload','unshift','ENTITLE_COUPON_EXPIRED','activeSheet$','_checkCalculationAvailable','_collaborationUIEventService','_docTransformIMECacheService','INVITE_CODE_ALREADY_BOUND','MOBILE_HAS_BEEN_BOUND','_dataLoaderService','_hideTimer','NO_OTHER_CLIENTS_EDITING','clearTimeout','text','PY_RUNTIME_SCRIPT_ERROR','_config','bind','_taskIds','_messageService','restore','formula.calculation.started','_hovered','round','_startCalculationLimit','error','formula.calculation.waiting','LOGIN_FAILED','getOffsetConfig','EMAIL_HAS_BEEN_BOUND','_updateURLWithCurrentState','_uploadLog','lineno','post','split','actions','_getScale','2954624CVyHFu','sessionTicket','OffLineIcon','getActiveSheet','INVITE_CODE_REQUIRED','collabStatus.offline','startFormulaLimitUrl','dispose','collabStatus.notCollab','http://www.w3.org/2000/svg','getValue','_status$','registerRefRange','roomMembers$','drawWith','addObjects','_hasFormulaInDirtyRanges','message','save','/universer-api/frontend/logs','ONLINE','TEXT','totalFormulasToCalculate','_docTransformStateCacheService','displayName','releaseFormulaLimitUrl','OFFLINE','startRow','executeCommand','collabStatus.fetchMiss','SOCKET_FAILED_RETRY','enableLocalCache','fillText','session.collaboration-timeout','_initStatusComponent','LICENSE_EXPORT_SIZE_EXCEEDED','find','onTransformChange$','collaboration-client-ui.config','setAlpha','_session','tag','ENTITLE_CAN_NOT_BUY_LOWER_OTP','functionsExecutedState','searchParams','findNodePositionByCharIndex','getUnitId','YUUMI_URL_COL_OUT_OF_RANGE','shift','AWAITING_WITH_PENDING','replace','_anchor','beforeCommandExecuted','_collabCursorController','session.connection-failed','InsertColCommandId','_revisionService','UNIVER_DOC','_releaseCalculationLimit','_getSheetObject','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','_instanceService','UNDEFINED','0\x200\x2017\x2016','none','_drawAnchor','key','getUnhiddenWorksheets','pushState','replaceDocRanges','transformIMECache','_handleLeaveEvent','show','REDEMPTION_CODE_NOT_STARTED','_colorAssignService','values','parseInt','entries','FETCH_MISS','_docSyncEditingCollabCursorService','?taskId=','endRow','_getMergeRange','getCollabEntity$','roomMembers','with','_clearOtherTimers','REDEMPTION_CODE_HAS_BEEN_CREATED','substring','_handleJoinEvent','syncEditingCollabCursor','requireSession','white','_createSocketURL','next','_name','transformByState','all','JOIN_ROOM_FAILED','APPLY_PERMISSION_DENIED','LICENSE_MAX_UNITS_EXCEEDED','_assignedColors','COMPLETION_FINISHED','beginPath','DeleteRangeMoveLeftCommandId','_uiPartsService','YUUMI_AI_RUN_FAILED','getCurrent','_themeService','replaceState','_scheduleSaving','min','PERMISSION_DENIED','setInterval','evenodd','_labelPosition','max','code','1251812LtSfoM','assignAColorForMemberID','AUTHORIZE_CODE_ILLEGAL','RECT','sessionStatus$','ranges','_collabSessionService','ENTITLE_REPORT_LIMIT_EXCEED','ENTITLE_USE_COUPON_NOT_1ST_TRADE','stack','removeEventListener','runId','15KddQjC','symbol','status$','engine','bottom','labelPosition','CHANGESET_REVISION_CONFILICT','wsSessionTicketUrl','_initUserListener','USER_NOT_INVITED_CODE','MOBILE_VERIFY_CODE_MISMATCH','body','collaboration.offline-data-not-saved','currentSkeleton$','YUUMI_ASYNCIO_CANCELLED','CLOSE_ROOM','Error','_urlService','_configService','_render','skeleton','MUTATION','CONNECTOR_DATA_TOO_LARGE','getVpScrollXYInfoByPosToVp','_applyCommand','_cursorShapes','_colorIndex','fillStyle','color','Loading','_refreshCollabCursors','transformStateCache','_docSkeletonManagerService','endColumn','HEADER_MENU','ERROR_AGAIN','updateOfflineData','some','url(#off-line-icon_clip0_910_343)','671616vvrWhT','unit','_toggleOffline','_transformPreviousActiveRange','location','_getFormulaLimitStatus','_collaborationSessionService','SUBMIT_CHANGESET_TIMEOUT','_id','_notificationService','set','_transformService','blue.400','5854051fGqdjZ','yellow.400','WECHAT_HAS_BEEN_BOUND','row','registerRenderModule','_initDependencies','top','_cursors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getUnitStatus$','_registerRenderDependencies','setParam','[Unhandled\x20Rejection]:\x20','href','UniverIcon','_collaborationController','_memberID','collab-client.tooltip.reconnect','_setFormulaLimitStatus','contains','_cursor','getSkeleton','_cursorInfo$','_roomMembers$','dirtyRanges','getColorFromTheme','_collabCursorState$','/universer-api/license/formula/limit/start','ENTITLE_COUPON_USED_UP','lineTo','rgba(255,\x20255,\x20255,\x200.01)','_pollingInterval','RemoveColCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandInterceptor','green.600','_hover','get','_imageIoService','setShapeProps','m2Prime','REDEMPTION_CODE_FULLY_REDEEMED','...','getRenderById','NOT_COLLAB','/universer-api/license/formula/limit/done','_localCacheService','type','ENSURE_SNAPSHOT_EXECUTION','black','M0\x200H16V16H0z','ENTITLE_INSUFFICIENT_QUOTA','selection','_checkAndWaitForCalculationPermission','registerComponent','eventID','addEventListener','INVALID_INVITE_CODE','_showGuardMessage','_heartbeatTimer','on-line-icon','YUUMI_RATE_OVER_LIMIT','isArray','_beforeCloseService','isEditing','_textBubble','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','InsertRangeMoveRightCommandId','1148952zxehWZ','backgroundColor','getSheetId','_localeService','children','_updateCollabCursors','onCommandExecuted','INTERNAL_ERROR','LICENSE_DISTRO_REJECTED','sheetID','reconnect','socket$','getCellPositionByOffset','/run/','_startSheetCollabCursor','limitInfo','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','filename','ENTITLE_NEED_BILLING_ADDRESS','asObservable','getMemberID','name','onPointerEnter$','catch','search','YUUMI_TABLE_NOT_FOUND_IN_UNIT','saveOfflineData','setTimeout','unhandledrejection','data','delete','APPLY_NON_SEQUENTIAL_REVISION','Failed','stageInfo','SOCKET_FAILED','complete','then','_shapes','_initEntityListener','_updateSubUnitFromURLParams','_lastPointer','FromArray','getParam','add','entityInit$','getSheetBySheetId','collabCursorState$','addClipboardHook','Warning','getAncestorScale','xlink:href','SYNCED','maxFormulaLimit','disableLocalCache','_initCommandExecutedListener','hovered','CONFLICT','colorChannel1','imageSourceType','ticket','_getSessionTicket','98548bEqjop','InsertRangeMoveDownCommandId','_initEvent','_currentUsage','pipe','_lastResponseTimestamp','getUndoRedoMutationParamsCache','font','InsertRowCommandId','length','START_CALCULATION','_scheduleClearOtherTimer','EMAIL_VERIFY_CODE_MISMATCH','from','_drawRectRange','_backgroundColor','REDEMPTION_USER_NOT_ELIGIBLE','_range','ENTITLE_CHAT_LIMIT_EXCEED','send','ENTITLE_INVALID_COUPON_CODE','PAYMENT_CHANNEL_NOT_SUPPORT','cursorInfo$','mask','USER_NOT_FOUND','path','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','attrs','range','_sheetSkeletonManagerService','getUnit','assign','_refRangeService','_univerInstanceService','_handleHeartbeatEvent','width','urlChange$','sheetId','setItem','subscribe','toRgbString','selections','YUUMI_ALL_TABLES_IS_INVALID','OTHER_CLIENTS_EDITING','current','colno','deepClone','transformRemoteChangeset','_localStorageService','onMouseMove','getItem','_entities','_onCursorDelete','_onCursorUpdate','onLocalMutation','measureText','_transformUndoRedoStack','hide','_draw','getMember','10603485feoqdy','APPLY_REVISION_CONFILICT','INVALID_ARGUMENT','DeleteRangeMoveUpCommandId','YUUMI_CONNECTOR_URL_NOT_FOUND','collabStatus.syncing','has','0\x200\x2016\x2016','getStateCache','collabStatus.synced','createInstance','INVITE_CODE_HAS_BEEN_UES','_initStatusListener','_memberService','debug','closePath','collaboration.single-unit.warning','toString','getFocusedUnit','_initWindowErrorListener','trim','push','Unknown\x20user','column','_injector','getOwnPropertyDescriptor','Success','_renderManagerService','isActive','registerBeforeClose'];_0x919a=function(){return _0x368be9;};return _0x919a();}He=bn([Ue(0x0,_0x5a741e),Ue(0x1,_0x5e3c18),Ue(0x2,_0x3714f8(_0x17c8fb))],He);class Ln extends _0x53e01a{constructor(){const _0x4485f4=_0x12f7be;super(),_(this,'urlChange$'),this[_0x4485f4(0x1e3)]=_0x45269d(window,'popstate')['pipe'](_0x4da0bf(this[_0x4485f4(0x2a6)]),_0x528417(0x1),_0x84d373(void 0x0));}['setParam'](_0x2de8e8,_0x1c9659,_0x1217cb=!0x1){const _0x12a812=_0x12f7be,_0x1487e1=new URL(window[_0x12a812(0x135)][_0x12a812(0x14b)]);_0x1487e1['searchParams'][_0x12a812(0x13b)](_0x2de8e8,_0x1c9659),_0x1217cb?window['history'][_0x12a812(0xf5)]('','',_0x1487e1[_0x12a812(0x20c)]()):window[_0x12a812(0x237)][_0x12a812(0xcc)]('','',_0x1487e1[_0x12a812(0x20c)]());}[_0x12f7be(0x235)](_0x23c072,_0x20c627=!0x1){const _0x4c53f9=_0x12f7be,_0x4a0722=new URL(window['location'][_0x4c53f9(0x14b)]);_0x4a0722[_0x4c53f9(0xb4)][_0x4c53f9(0x1a0)](_0x23c072),_0x20c627?window[_0x4c53f9(0x237)][_0x4c53f9(0xf5)]('','',_0x4a0722['toString']()):window[_0x4c53f9(0x237)][_0x4c53f9(0xcc)]('','',_0x4a0722[_0x4c53f9(0x20c)]());}[_0x12f7be(0x1ac)](_0x570f8f){const _0x38f2af=_0x12f7be;var _0x33f254;return(_0x33f254=new URL(window[_0x38f2af(0x135)]['href'])[_0x38f2af(0xb4)][_0x38f2af(0x163)](_0x570f8f))!=null?_0x33f254:void 0x0;}}var Un=Object[_0x12f7be(0x265)],Mn=Object[_0x12f7be(0x214)],An=(_0x23d9e9,_0x2121ab,_0x1737a9)=>_0x2121ab in _0x23d9e9?Un(_0x23d9e9,_0x2121ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1737a9}):_0x23d9e9[_0x2121ab]=_0x1737a9,Pn=(_0x2777e0,_0x163df9,_0x4f4a5c,_0x25e59e)=>{const _0x2a7351=_0x12f7be;for(var _0x4cf423=_0x25e59e>0x1?void 0x0:_0x25e59e?Mn(_0x163df9,_0x4f4a5c):_0x163df9,_0x6a21aa=_0x2777e0[_0x2a7351(0x1c8)]-0x1,_0x45c2ee;_0x6a21aa>=0x0;_0x6a21aa--)(_0x45c2ee=_0x2777e0[_0x6a21aa])&&(_0x4cf423=_0x45c2ee(_0x4cf423)||_0x4cf423);return _0x4cf423;},Me=(_0x54655e,_0x565622)=>(_0x23261d,_0x6c0a4a)=>_0x565622(_0x23261d,_0x6c0a4a,_0x54655e),wn=(_0x2c5d0d,_0x826b00,_0x8eb4ad)=>An(_0x2c5d0d,_0x826b00+'',_0x8eb4ad);const yn=_0x12f7be(0x28d);let Ye=class extends _0x5affa2{constructor(_0x2745df=_t,_0x4c129f,_0x1d6b10,_0x169233){const _0x27002d=_0x12f7be;super(),this[_0x27002d(0x2cc)]=_0x2745df,this[_0x27002d(0x216)]=_0x4c129f,this[_0x27002d(0x213)]=_0x1d6b10,this[_0x27002d(0x11c)]=_0x169233;const {..._0x3fb15a}=_0x537f2b({},_t,this[_0x27002d(0x2cc)]);this['_configService'][_0x27002d(0x228)](hn,_0x3fb15a);}[_0x12f7be(0x29c)](){const _0x480c28=_0x12f7be;this['_registerDependencies'](),this[_0x480c28(0x143)]();}['onRendered'](){const _0x40a492=_0x12f7be;this[_0x40a492(0x148)]();}['_registerDependencies'](){const _0x1cece9=_0x12f7be;var _0x32ef16;const _0x1165f1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x333b75,{'useClass':_0x12b10a}],[_0x381fc8,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1cece9(0x2cc)][_0x1cece9(0x23d)]&&_0x1165f1['push']([le]),_0x358fe2(this['_injector'],_0x2cd5a1(_0x1165f1,(_0x32ef16=this[_0x1cece9(0x2cc)])==null?void 0x0:_0x32ef16[_0x1cece9(0x290)]));}[_0x12f7be(0x148)](){const _0x2bb815=_0x12f7be;this[_0x2bb815(0x26c)](this[_0x2bb815(0x216)][_0x2bb815(0x142)](_0x53cd3e[_0x2bb815(0xc1)],[Fe])),this['disposeWithMe'](this[_0x2bb815(0x216)][_0x2bb815(0x142)](_0x53cd3e[_0x2bb815(0x268)],[ke]));}['_initDependencies'](){_0x48ed1d(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x48ed1d(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x1999b3(_0x2e3618),Me(0x1,_0x4ae0f1),Me(0x2,_0x3714f8(_0x24a160)),Me(0x3,_0x5a741e)],Ye);var $n=Object[_0x12f7be(0x214)],xn=(_0x5ec9b6,_0x1fe9e1,_0x9cd46f,_0x3faac8)=>{const _0x91c725=_0x12f7be;for(var _0x512be1=_0x3faac8>0x1?void 0x0:_0x3faac8?$n(_0x1fe9e1,_0x9cd46f):_0x1fe9e1,_0x2c7d9d=_0x5ec9b6[_0x91c725(0x1c8)]-0x1,_0x83ebc2;_0x2c7d9d>=0x0;_0x2c7d9d--)(_0x83ebc2=_0x5ec9b6[_0x2c7d9d])&&(_0x512be1=_0x83ebc2(_0x512be1)||_0x512be1);return _0x512be1;},J=(_0x571158,_0x4ce604)=>(_0xde1d76,_0x4dc11f)=>_0x4ce604(_0xde1d76,_0x4dc11f,_0x571158);let ut=class extends _0x5012d6{constructor(_0x13d161,_0x4431e2,_0x458750,_0x25fb50,_0x595833){super(_0x13d161,_0x4431e2,_0x458750,_0x25fb50,_0x595833);}async['createSocket'](_0x483e78){const _0x25ca96=_0x12f7be,_0x4f2a64=await this['_getSessionTicket'](),_0x7f1169=this[_0x25ca96(0xe5)](_0x483e78,_0x4f2a64);return this[_0x25ca96(0x253)](_0x7f1169);}['_createSocketURL'](_0x12fa71,_0x112ac3){const _0x48fe54=_0x12f7be,_0x89c491=typeof window>'u'?new URL(_0x12fa71):new URL(_0x12fa71,window[_0x48fe54(0x135)][_0x48fe54(0x236)]);_0x89c491['searchParams'][_0x48fe54(0x13b)](_0x48fe54(0x2e2),_0x112ac3);const _0x3426af=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x48fe54(0x135)][_0x48fe54(0x19a)]);return _0x3426af[_0x48fe54(0x163)](_0x48fe54(0x109))&&_0x89c491['searchParams'][_0x48fe54(0x13b)](_0x48fe54(0x109),_0x3426af['get'](_0x48fe54(0x109))),_0x89c491[_0x48fe54(0x20c)]();}async[_0x12f7be(0x1be)](){const _0x235cd2=_0x12f7be;var _0x2a0c43,_0x3334ff,_0x27ebe5;const _0x5f5f4a=this[_0x235cd2(0x11c)][_0x235cd2(0x221)](_0x3c1c8f),_0x14dcd5=(_0x2a0c43=_0x5f5f4a==null?void 0x0:_0x5f5f4a[_0x235cd2(0x111)])!=null?_0x2a0c43:_0x29d557;return(_0x27ebe5=(_0x3334ff=(await this[_0x235cd2(0x21e)][_0x235cd2(0x163)](_0x14dcd5,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x3334ff[_0x235cd2(0x1bd)])!=null?_0x27ebe5:'';}};ut=xn([J(0x0,_0x3714f8(_0x24a160)),J(0x1,_0x3714f8(_0x1ef343)),J(0x2,_0x5a741e),J(0x3,_0x36e10f),J(0x4,_0x479bb3)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x4b5925,_0x287d9f,_0x12f050,_0x1f0a6c)=>{for(var _0x64dbce=_0x1f0a6c>0x1?void 0x0:_0x1f0a6c?Bn(_0x287d9f,_0x12f050):_0x287d9f,_0x56f37f=_0x4b5925['length']-0x1,_0x2d78a0;_0x56f37f>=0x0;_0x56f37f--)(_0x2d78a0=_0x4b5925[_0x56f37f])&&(_0x64dbce=_0x2d78a0(_0x64dbce)||_0x64dbce);return _0x64dbce;},Ae=(_0x37e7b2,_0x2d03e7)=>(_0x22136d,_0x5f551a)=>_0x2d03e7(_0x22136d,_0x5f551a,_0x37e7b2);let dt=class extends _0x112363{constructor(_0x28eda9,_0x57956c,_0x1b0663){const _0x221382=_0x12f7be;super(),this['_instanceService']=_0x28eda9,this[_0x221382(0x21e)]=_0x57956c,this['_configService']=_0x1b0663;}async[_0x12f7be(0x289)](_0x57130f,_0x4bc9f5,_0x70baf5,..._0x3d2c35){const _0x1aa91f=_0x12f7be;var _0x308634,_0x97a005,_0x3acb34,_0x3cde4a;const _0x276319=this[_0x1aa91f(0xc5)][_0x1aa91f(0x20d)]();if(!_0x276319)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3c73c2=((_0x308634=this[_0x1aa91f(0x11c)]['getConfig'](_0x587df1))!=null?_0x308634:_0x499824)+'/'+_0x57130f+_0x1aa91f(0x18f)+_0x4bc9f5,_0x8c24bd=new URL(window[_0x1aa91f(0x135)][_0x1aa91f(0x14b)]),_0x37ac0c={'scriptId':_0x57130f,'runId':(_0x97a005=_0x8c24bd[_0x1aa91f(0xb4)][_0x1aa91f(0x163)](_0x1aa91f(0x109)))!=null?_0x97a005:'','function':_0x4bc9f5,'unitId':_0x276319[_0x1aa91f(0xb6)](),'argsOfFunction':JSON[_0x1aa91f(0x225)](_0x3d2c35),'invokeId':(_0x3acb34=_0x70baf5[_0x1aa91f(0x264)])!=null?_0x3acb34:'','executionId':(_0x3cde4a=_0x70baf5[_0x1aa91f(0x223)])!=null?_0x3cde4a:''};try{const _0x3930b7=await this[_0x1aa91f(0x21e)]['post'](_0x3c73c2,{'body':_0x37ac0c});return _0x3930b7[_0x1aa91f(0x115)][_0x1aa91f(0x2d5)]&&_0x3930b7['body']['error'][_0x1aa91f(0xfd)]!==Z['OK']?'Failed':_0x3930b7[_0x1aa91f(0x115)]['result'];}catch{return _0x1aa91f(0x1a2);}}};dt=Fn([Ae(0x0,_0x52d51e),Ae(0x1,_0x3714f8(_0x1ef343)),Ae(0x2,_0x5a741e)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x112363{constructor(){const _0x6ac7a8=_0x12f7be;super(),_(this,_0x6ac7a8(0x139),_0x28ef98()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x6ac7a8(0x179),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x6ac7a8(0x26f),new Map()),this['_init']();}[_0x12f7be(0x2e8)](){const _0x5c8468=_0x12f7be;super[_0x5c8468(0x2e8)](),this[_0x5c8468(0xde)][_0x5c8468(0x275)]((_0x229190,_0x2369a4)=>this['_removeClearOtherTimer'](_0x2369a4)),this[_0x5c8468(0x179)]&&window['clearInterval'](this[_0x5c8468(0x179)]);}[_0x12f7be(0x147)](_0x44ddaa){const _0x5e6bf6=_0x12f7be;return this[_0x5e6bf6(0x257)](_0x44ddaa)[_0x5e6bf6(0x1c3)](_0x332830());}['editingUnit'](_0xf0c331){const _0x2ee02c=_0x12f7be;this[_0x2ee02c(0x2af)][_0x2ee02c(0x29b)]===0x0&&this[_0x2ee02c(0x28c)](),this[_0x2ee02c(0x2af)]['add'](_0xf0c331),this['_send']({'type':0x0,'memberID':this[_0x2ee02c(0x139)],'unitIDs':[_0xf0c331],'isForwarded':!0x1});}[_0x12f7be(0x2a7)](_0x4b962b){const _0x53511a=_0x12f7be;this[_0x53511a(0x2af)][_0x53511a(0x1a0)](_0x4b962b),this[_0x53511a(0x2af)][_0x53511a(0x29b)]===0x0&&this['_heartbeatTimer']&&window[_0x53511a(0x234)](this[_0x53511a(0x179)]);}[_0x12f7be(0x279)](){const _0x5016f9=_0x12f7be;this[_0x5016f9(0x26c)](_0x16c8e4(_0x45269d(window,'storage')['subscribe'](_0x2b5c0a=>{const _0x547334=_0x5016f9;if(_0x2b5c0a[_0x547334(0xca)]!==It||!_0x2b5c0a['newValue'])return;const _0xb9fc0=JSON[_0x547334(0x287)](_0x2b5c0a['newValue']);this[_0x547334(0x285)](_0xb9fc0);}))),window[_0x5016f9(0x176)](_0x5016f9(0x2bd),()=>this[_0x5016f9(0x29a)]({'type':0x1,'memberID':this[_0x5016f9(0x139)],'unitIDs':Array[_0x5016f9(0x1cc)](this[_0x5016f9(0x2af)])}));}[_0x12f7be(0x285)](_0x5f563d){const _0x1b5825=_0x12f7be;switch(_0x5f563d[_0x1b5825(0x16d)]){case 0x0:this[_0x1b5825(0xe1)](_0x5f563d);break;case 0x1:this[_0x1b5825(0xcf)](_0x5f563d);break;case 0x2:this[_0x1b5825(0x1e1)](_0x5f563d);break;}}[_0x12f7be(0xe1)](_0x15cda1){const _0x3c1b12=_0x12f7be,{unitIDs:_0x1be19e,memberID:_0x53f9d9,isForwarded:_0x4c6bac}=_0x15cda1;_0x1be19e[_0x3c1b12(0x275)](_0x41c3d2=>{const _0x102b47=_0x3c1b12;if(!_0x4c6bac&&this[_0x102b47(0x2ad)][_0x102b47(0x201)](_0x41c3d2)&&this['_ensureSubject'](_0x41c3d2)[_0x102b47(0xe6)](_0x4d3796[_0x102b47(0x1ea)]),!this[_0x102b47(0x2ad)][_0x102b47(0x201)](_0x41c3d2)||!this['_unitOnClients'][_0x102b47(0x163)](_0x41c3d2)['has'](_0x53f9d9)){const _0x2c8316=this[_0x102b47(0x2ad)]['get'](_0x41c3d2)||new Set();_0x2c8316[_0x102b47(0x1ad)](_0x53f9d9),this[_0x102b47(0x2ad)]['set'](_0x41c3d2,_0x2c8316),this[_0x102b47(0x1ca)](_0x53f9d9);}}),_0x4c6bac||this[_0x3c1b12(0x29a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c1b12(0x2af)]],'isForwarded':!0x0});}[_0x12f7be(0x1ca)](_0x24e921){const _0x45759d=_0x12f7be;this[_0x45759d(0x2ba)](_0x24e921);const _0x5e7438=window[_0x45759d(0x19d)](()=>{const _0x11bfe8=_0x45759d;this[_0x11bfe8(0x2ad)][_0x11bfe8(0x275)](_0x4e3799=>{const _0xb997ce=_0x11bfe8;_0x4e3799[_0xb997ce(0x1a0)](_0x24e921);});},St*0x2);this[_0x45759d(0xde)][_0x45759d(0x13b)](_0x24e921,_0x5e7438);}['_removeClearOtherTimer'](_0x3fb607){const _0x5c4762=_0x12f7be;if(this['_clearOtherTimers'][_0x5c4762(0x201)](_0x3fb607)){const _0x1797b8=this['_clearOtherTimers'][_0x5c4762(0x163)](_0x3fb607);_0x1797b8&&window['clearTimeout'](_0x1797b8),this[_0x5c4762(0xde)][_0x5c4762(0x13b)](_0x3fb607,null);}}[_0x12f7be(0xcf)](_0x220899){const _0x4e4a9e=_0x12f7be,{memberID:_0x843458,unitIDs:_0x47c0b6}=_0x220899;_0x47c0b6['forEach'](_0x334ee0=>{const _0x11a69f=_0x473f;var _0x3e8db5;const _0x389c9c=this[_0x11a69f(0x2ad)][_0x11a69f(0x163)](_0x334ee0);_0x389c9c&&(_0x389c9c[_0x11a69f(0x1a0)](_0x843458),(_0x3e8db5=this[_0x11a69f(0x257)](_0x334ee0))==null||_0x3e8db5[_0x11a69f(0xe6)](_0x389c9c['size']===0x0?_0x4d3796[_0x11a69f(0x2c8)]:_0x4d3796[_0x11a69f(0x1ea)]));}),this[_0x4e4a9e(0x2ba)](_0x843458);}['_handleHeartbeatEvent'](_0x86756b){const _0xbef987=_0x12f7be;this[_0xbef987(0x1ca)](_0x86756b[_0xbef987(0x2ab)]);}[_0x12f7be(0x29a)](_0x46a942){const _0xfa8e1a=_0x12f7be;localStorage[_0xfa8e1a(0x1e5)](It,JSON[_0xfa8e1a(0x225)](_0x46a942));}['_scheduleHeartbeat'](){const _0x6a935=_0x12f7be;this['_heartbeatTimer']=window[_0x6a935(0xf9)](()=>{const _0x6aff8a=_0x6a935;this['_send']({'type':0x2,'memberID':this[_0x6aff8a(0x139)]});},St);}[_0x12f7be(0x257)](_0x499234){const _0x3c2c4d=_0x12f7be;return this[_0x3c2c4d(0x26f)][_0x3c2c4d(0x201)](_0x499234)||this[_0x3c2c4d(0x26f)]['set'](_0x499234,new _0x51f523(_0x4d3796[_0x3c2c4d(0x2c8)])),this['_unitStatus'][_0x3c2c4d(0x163)](_0x499234);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
|