@univerjs-pro/collaboration-client-ui 0.10.2 → 0.10.3-nightly.202508121228

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.
Files changed (50) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/index.d.ts +5 -5
  38. package/lib/umd/facade.js +1 -1
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/ca-ES.js +1 -1
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xfad9b1=_0x2617;(function(_0x49ab8c,_0x1abc7b){const _0x48eb2f=_0x2617,_0xf8c37c=_0x49ab8c();while(!![]){try{const _0x33a5ac=-parseInt(_0x48eb2f(0x246))/0x1*(parseInt(_0x48eb2f(0x115))/0x2)+-parseInt(_0x48eb2f(0x144))/0x3+parseInt(_0x48eb2f(0xe3))/0x4*(parseInt(_0x48eb2f(0x107))/0x5)+parseInt(_0x48eb2f(0x2cf))/0x6+-parseInt(_0x48eb2f(0xf1))/0x7*(parseInt(_0x48eb2f(0x201))/0x8)+-parseInt(_0x48eb2f(0x1aa))/0x9+parseInt(_0x48eb2f(0x1e2))/0xa*(parseInt(_0x48eb2f(0x23c))/0xb);if(_0x33a5ac===_0x1abc7b)break;else _0xf8c37c['push'](_0xf8c37c['shift']());}catch(_0x59477b){_0xf8c37c['push'](_0xf8c37c['shift']());}}}(_0x18f4,0x39719));var xt=Object['defineProperty'],Bt=(_0x4138d8,_0x228db4,_0x17e6ba)=>_0x228db4 in _0x4138d8?xt(_0x4138d8,_0x228db4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17e6ba}):_0x4138d8[_0x228db4]=_0x17e6ba,_=(_0x9940ce,_0x5d520a,_0x27a091)=>Bt(_0x9940ce,typeof _0x5d520a!=_0xfad9b1(0x167)?_0x5d520a+'':_0x5d520a,_0x27a091);import{MemberService as _0x46bad0,SessionStatus as _0xd9b1b2,CollaborationSessionService as _0x1ad9f4,CollaborationStatus as _0x1921ba,CollaborationController as _0x418664,ILocalCacheService as _0x11ab6b,CollaborationUIEventService as _0x18448a,CollaborationUIEventId as _0x311d6f,DataLoaderService as _0x3580f3,DocCollaborationEntity as _0x84ab69,getLocalCacheKey as _0x2f4fcc,LOCAL_CACHE_INTERVAL as _0x11fbc4,LOCAL_CACHE_INTERVAL_KEY as _0x11615c,UniverCollaborationClientPlugin as _0x38821c,CollaborationSocketService as _0x22decb,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x146c41,DEFAULT_WS_SESSION_TICKET_URL as _0x52236e,UnitStatus as _0x362c70,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x6560e3,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x3764b5}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x1ef804,Disposable as _0x3189c2,DOC_RANGE_TYPE as _0x316d4c,Inject as _0x4d8ee1,Injector as _0x5e762e,IUniverInstanceService as _0x18bc32,ICommandService as _0x107937,debounce as _0x46df21,Rectangle as _0x25f2b4,DisposableCollection as _0x5967c5,toDisposable as _0x41d1c9,UniverInstanceType as _0x238e4b,generateRandomId as _0x31d362,COLORS as _0x5632cb,ColorKit as _0x990197,ThemeService as _0x200203,fromEventSubject as _0x4f7f1c,LocaleService as _0x5edd93,createIdentifier as _0x1be22b,ILogService as _0x2cadb0,Optional as _0x29307a,Workbook as _0x322af6,Tools as _0x15f292,CommandType as _0x1c42fb,IConfigService as _0x49e080,ILocalStorageService as _0x61b9e5,DependentOn as _0x2cca2d,Plugin as _0x529a2d,merge as _0x1ff808,registerDependencies as _0x3165a0,mergeOverrideWithDependencies as _0x541ebc,touchDependencies as _0x37b4dc}from'@univerjs/core';import{Shape as _0x53f1ed,Rect as _0x7ec145,getColor as _0x275365,RegularPolygon as _0x312826,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x545736,Vector2 as _0x1fc3f8,SHEET_VIEWPORT_KEY as _0x2088e0,IRenderManagerService as _0x154092}from'@univerjs/engine-render';import{ISocketService as _0x5892d7,WebSocketService as _0x294b85,HTTPService as _0x3b2f35}from'@univerjs/network';import{IDocClipboardService as _0xbbf6bd,NodePositionConvertToCursor as _0x35345e,NodePositionConvertToRectRange as _0x1a0087,TEXT_RANGE_LAYER_INDEX as _0xf9d32a,SetDocZoomRatioOperation as _0x31f3cf,DocIMEInputManagerService as _0x26279b,DocStateChangeManagerService as _0x7e8c77}from'@univerjs/docs-ui';import{IImageIoService as _0x33205c}from'@univerjs/drawing';import{BehaviorSubject as _0x756108,debounceTime as _0x13f986,takeUntil as _0x205a75,Subject as _0x1dd710,filter as _0x1f3094,switchMap as _0x1a7f4e,merge as _0x5c6d58,combineLatest as _0x5908b2,of as _0xc18b12,fromEvent as _0x475537,shareReplay as _0x53196e,mapTo as _0x686144,distinctUntilChanged as _0x14dc32}from'rxjs';import{ITransformService as _0x19bd5b,CollaborationEvent as _0x5a0df9,isTransformMutationFailure as _0x1125fb,isTransformMutationsWithChangesetSuccess as _0x2110ff,RevisionService as _0x339073,ISnapshotServerService as _0x14ca3e}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x32cb6d,RichTextEditingMutation as _0x5577e0,DocSelectionManagerService as _0x4736f8,DocSkeletonManagerService as _0x482000}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x50f9a6,serializeRangeWithSheet as _0x37477e}from'@univerjs/engine-formula';import{RefRangeService as _0x22cb7b,SetSelectionsOperation as _0x150e6d,SheetsSelectionsService as _0x5699a8,EffectRefRangId as _0x26ab43,handleIRemoveRow as _0x283776,handleIRemoveCol as _0x2f579a,handleMoveRange as _0x10297b,handleInsertRow as _0x1655c7,handleInsertRangeMoveRight as _0x124061,handleInsertRangeMoveDown as _0x10f02d,handleInsertCol as _0x112b34,handleDeleteRangeMoveUp as _0x4357c9,handleDeleteRangeMoveLeft as _0xe8777f,runRefRangeMutations as _0x39dc06,SetWorksheetActivateCommand as _0x2c8425}from'@univerjs/sheets';import{map as _0x1276fd,filter as _0x2b2fb8,throttleTime as _0xebc942,takeUntil as _0x47582b,switchMap as _0x9e04f4}from'rxjs/operators';import{SheetSkeletonManagerService as _0xc6e76b,getCoordByCell as _0x252968,getSheetObject as _0x3711f2}from'@univerjs/sheets-ui';import{jsx as _0x2c6001,jsxs as _0x57244}from'react/jsx-runtime';import{useObservable as _0x1fabb6,useDependency as _0x5ee084,IUIPartsService as _0x92834,BuiltInUIPart as _0x1cc9c3,connectInjector as _0x52842f,IBeforeCloseService as _0x4a9f43,IMessageService as _0x15c2c3,INotificationService as _0x49a7dd}from'@univerjs/ui';import{Tooltip as _0x38641e,clsx as _0x3a209b,MessageType as _0x1faad1}from'@univerjs/design';import{forwardRef as _0x20e74d,useRef as _0x466941,createElement as _0x1a322c,useCallback as _0x2b13f8}from'react';import{IRemoteInstanceService as _0x6fe795}from'@univerjs/rpc';var ci=Object[_0xfad9b1(0x2a4)],li=(_0x2cb7d5,_0x2a2a99,_0xe62d91,_0x294cb9)=>{const _0x778f7e=_0xfad9b1;for(var _0x43e43=_0x294cb9>0x1?void 0x0:_0x294cb9?ci(_0x2a2a99,_0xe62d91):_0x2a2a99,_0x1562dc=_0x2cb7d5[_0x778f7e(0x10a)]-0x1,_0x5ae219;_0x1562dc>=0x0;_0x1562dc--)(_0x5ae219=_0x2cb7d5[_0x1562dc])&&(_0x43e43=_0x5ae219(_0x43e43)||_0x43e43);return _0x43e43;},Je=(_0x29c4af,_0x5052ca)=>(_0x2b6f1b,_0x10ca3)=>_0x5052ca(_0x2b6f1b,_0x10ca3,_0x29c4af);let Ne=class extends _0x1ef804{constructor(_0x5e7105,_0x248b20){const _0x230e02=_0xfad9b1;super(),this[_0x230e02(0x293)]=_0x5e7105,this[_0x230e02(0x1a8)]=_0x248b20,this[_0x230e02(0x219)]();}[_0xfad9b1(0x219)](){const _0x398710=_0xfad9b1,_0x2e02c1=this;this['disposeWithMe'](this[_0x398710(0x293)][_0x398710(0x19a)]({'onBeforePasteImage':async _0x132266=>{const _0x3e5725=_0x398710,_0x56dacf=await _0x2e02c1[_0x3e5725(0x1a8)][_0x3e5725(0x12f)](_0x132266);return _0x56dacf?{'source':_0x56dacf[_0x3e5725(0x2e2)],'imageSourceType':_0x56dacf[_0x3e5725(0x26f)]}:null;}}));}};Ne=li([Je(0x0,_0xbbf6bd),Je(0x1,_0x33205c)],Ne);const Ze=[_0xfad9b1(0x11a),_0xfad9b1(0x1c5),_0xfad9b1(0x13a),_0xfad9b1(0x158),_0xfad9b1(0x1c4),_0xfad9b1(0x2b0)];class ke extends _0x3189c2{constructor(){const _0x37356c=_0xfad9b1;super(...arguments),_(this,_0x37356c(0x1ab),new Map()),_(this,'_colorIndex',0x0);}[_0xfad9b1(0x11e)](_0x166288){const _0x4094cd=_0xfad9b1;if(this[_0x4094cd(0x1ab)]['has'](_0x166288))return this[_0x4094cd(0x1ab)][_0x4094cd(0x1b0)](_0x166288);const _0x5a06d0=Ze[this[_0x4094cd(0x2b9)]];return this[_0x4094cd(0x2b9)]=(this[_0x4094cd(0x2b9)]+0x1)%Ze[_0x4094cd(0x10a)],this['_assignedColors']['set'](_0x166288,_0x5a06d0),_0x5a06d0;}}function Rt(_0x532637){let _0x343900='';for(const _0x5bbe4d of _0x532637){const {startOffset:_0x2821e7,endOffset:_0x7a25a6,isActive:_0x1e262a,rangeType:_0x262174,segmentId:_0x127ca8,segmentPage:_0x1ccf16}=_0x5bbe4d;_0x343900['length']&&(_0x343900+=','),_0x343900+=_0x2821e7+':'+_0x7a25a6+':'+(_0x1e262a?'1':'0')+':'+_0x262174+':'+_0x127ca8+':'+_0x1ccf16;}return _0x343900;}function _i(_0x2418bb){const _0x54dd9f=_0xfad9b1,_0x35d56d=_0x2418bb['split'](','),_0x1422ec=[];for(const _0x35ed23 of _0x35d56d){const [_0x1f4a5a,_0x256e4d,_0x25ec6a,_0x434575,_0x30c563,_0x309543]=_0x35ed23[_0x54dd9f(0x268)](':');_0x1422ec[_0x54dd9f(0xf9)]({'startOffset':Number(_0x1f4a5a),'endOffset':Number(_0x256e4d),'collapsed':_0x1f4a5a===_0x256e4d,'isActive':_0x25ec6a==='1','rangeType':_0x434575===_0x316d4c['TEXT']?_0x316d4c[_0x54dd9f(0x2c5)]:_0x316d4c['RECT'],'segmentId':typeof _0x30c563=='string'?String(_0x30c563):'','segmentPage':Number(_0x309543!=null?_0x309543:-0x1)});}return _0x1422ec[_0x54dd9f(0x164)](_0x28ee5f=>_0x28ee5f['isActive'])||(_0x1422ec[0x0][_0x54dd9f(0x2e1)]=!0x0),_0x1422ec;}class He extends _0x1ef804{constructor(){const _0x275af3=_0xfad9b1;super(...arguments),_(this,_0x275af3(0x2a1),new _0x756108(null)),_(this,_0x275af3(0x2d5),this[_0x275af3(0x2a1)][_0x275af3(0x2af)]());}[_0xfad9b1(0x1ae)](_0x5c6d16){const {unitID:_0x560a10,memberID:_0x34be48,textRanges:_0x347759}=_0x5c6d16,_0x48a4c7=Rt(_0x347759);if(_0x48a4c7==='')return;const _0x676ff4={'unitID':_0x560a10,'memberID':_0x34be48,'selection':_0x48a4c7};this['_collabCursorState$']['next'](_0x676ff4);}}var hi=Object['getOwnPropertyDescriptor'],ui=(_0x43a730,_0x140a35,_0x373af7,_0x4fb940)=>{const _0x401b6a=_0xfad9b1;for(var _0x5b9875=_0x4fb940>0x1?void 0x0:_0x4fb940?hi(_0x140a35,_0x373af7):_0x140a35,_0x1b3e49=_0x43a730[_0x401b6a(0x10a)]-0x1,_0x43cdaa;_0x1b3e49>=0x0;_0x1b3e49--)(_0x43cdaa=_0x43a730[_0x1b3e49])&&(_0x5b9875=_0x43cdaa(_0x5b9875)||_0x5b9875);return _0x5b9875;},P=(_0x16ca1d,_0x4b38d8)=>(_0xb1ac2d,_0x37d8d7)=>_0x4b38d8(_0xb1ac2d,_0x37d8d7,_0x16ca1d);const di=0x12c,fi=0x64;let Ue=class extends _0x1ef804{constructor(_0x316163,_0x53b1ad,_0x2539c8,_0x53a354,_0x31ec34,_0xa57c2b,_0x25a9df,_0x273d5c,_0x1cfd88){const _0x6007ab=_0xfad9b1;super(),_(this,'_online',!0x1),_(this,_0x6007ab(0x219),!0x1),_(this,_0x6007ab(0x16c),new _0x756108(new Map())),_(this,_0x6007ab(0xe4),this[_0x6007ab(0x16c)][_0x6007ab(0x2af)]()),_(this,_0x6007ab(0x159),new _0x756108([])),_(this,'roomMembers$',this[_0x6007ab(0x159)][_0x6007ab(0x183)](_0x13f986(di))),_(this,'_updateLocalCursor',_0x46df21(_0x16dcfc=>{const _0x480849=_0x6007ab,_0x1824ae={'eventID':_0x5a0df9[_0x480849(0x1d2)],'data':{'unitID':this[_0x480849(0x2d7)],'memberID':this[_0x480849(0x23b)][_0x480849(0x244)](),'selection':Rt(_0x16dcfc)}};this[_0x480849(0x23b)][_0x480849(0xff)](_0x1824ae,this[_0x480849(0x2d7)]);},fi)),(this[_0x6007ab(0x2d7)]=_0x316163,this[_0x6007ab(0x23b)]=_0x53b1ad,this[_0x6007ab(0x1cc)]=_0x2539c8,this[_0x6007ab(0x16b)]=_0x53a354,this['_memberService']=_0x31ec34,this[_0x6007ab(0x2a9)]=_0xa57c2b,this[_0x6007ab(0x173)]=_0x25a9df,this[_0x6007ab(0x1fa)]=_0x273d5c,this['_commandService']=_0x1cfd88);}get[_0xfad9b1(0x1d6)](){const _0x41e596=_0xfad9b1;return this[_0x41e596(0x16c)][_0x41e596(0x206)]();}get[_0xfad9b1(0x1e4)](){const _0x33b5c9=_0xfad9b1;return this[_0x33b5c9(0x159)][_0x33b5c9(0x206)]();}[_0xfad9b1(0x1f2)](){const _0x4d0f1d=_0xfad9b1;super[_0x4d0f1d(0x1f2)](),this[_0x4d0f1d(0x16c)][_0x4d0f1d(0x2d8)](new Map()),this[_0x4d0f1d(0x16c)][_0x4d0f1d(0x161)](),this[_0x4d0f1d(0x159)]['next']([]),this[_0x4d0f1d(0x159)][_0x4d0f1d(0x161)]();}['init'](){const _0x1e4f6c=_0xfad9b1;this['_init']||(this[_0x1e4f6c(0x219)]=!0x0,this[_0x1e4f6c(0x23b)][_0x1e4f6c(0x2ab)][_0x1e4f6c(0x183)](_0x205a75(this[_0x1e4f6c(0x1dc)]))[_0x1e4f6c(0x2dd)](_0x152789=>{const _0x3c0a70=_0x1e4f6c;_0x152789===_0xd9b1b2['ONLINE']?this[_0x3c0a70(0x288)]():this[_0x3c0a70(0xfe)]();}),this['_session'][_0x1e4f6c(0x146)][_0x1e4f6c(0x183)](_0x205a75(this[_0x1e4f6c(0x1dc)]))['subscribe'](_0x281525=>{const _0x1515ae=_0x1e4f6c,_0x639cc5=_0x281525[_0x1515ae(0x118)];_0x639cc5===_0x5a0df9[_0x1515ae(0x1d2)]&&this[_0x1515ae(0x290)](_0x281525),_0x639cc5===_0x5a0df9['USERS_LEAVE']&&this[_0x1515ae(0x284)](_0x281525);}),this[_0x1e4f6c(0x2e3)](this[_0x1e4f6c(0x2c9)]['onCommandExecuted'](_0x3693a2=>{const _0x379a28=_0x1e4f6c,_0x423caf=_0x3693a2[_0x379a28(0x149)];_0x423caf!=null&&this[_0x379a28(0x153)]&&_0x3693a2['id']===_0x32cb6d['id']&&_0x423caf[_0x379a28(0x247)]===this['unitID']&&_0x423caf[_0x379a28(0x1ce)]===!0x1&&_0x423caf[_0x379a28(0x22b)]['length']>0x0&&this['_updateLocalCursor'](_0x423caf[_0x379a28(0x22b)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x1e4f6c(0x183)](_0x205a75(this['dispose$']))['subscribe'](_0x2371ad=>{const _0xfd4677=_0x1e4f6c;if((_0x2371ad==null?void 0x0:_0x2371ad[_0xfd4677(0x2d7)])!==this[_0xfd4677(0x2d7)])return;const _0x5283b8={'eventID':_0x5a0df9[_0xfd4677(0x1d2)],'data':_0x2371ad};this['_onCursorUpdate'](_0x5283b8);}),this[_0x1e4f6c(0x2e3)](this[_0x1e4f6c(0x2c9)][_0x1e4f6c(0x15f)](_0x4f1edd=>{const _0x344bd=_0x1e4f6c;if(_0x4f1edd[_0x344bd(0x149)]==null)return;const _0x22b9d6=_0x4f1edd[_0x344bd(0x149)];if(_0x4f1edd['id']!==_0x5577e0['id']||_0x22b9d6['unitId']!==this[_0x344bd(0x2d7)])return;const _0x590b43={'id':_0x344bd(0xf0),'params':_0x22b9d6},_0x44e482=this[_0x344bd(0x1d6)];for(const [_0x4ef86c,_0x340740]of _0x44e482){const _0x1226ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x344bd(0x2d7)],'actions':null,'textRanges':_0x340740[_0x344bd(0x22b)]}},_0x40eea2=this['_transformService'][_0x344bd(0x135)](_0x590b43,_0x1226ec,!0x1);if(_0x1125fb(_0x40eea2))throw _0x40eea2[_0x344bd(0xe9)];_0x44e482[_0x344bd(0x10e)](_0x4ef86c,{..._0x340740,'ranges':_0x40eea2['m2Prime']['params'][_0x344bd(0x2cc)]});}queueMicrotask(()=>{const _0x3b1ad5=_0x344bd;this[_0x3b1ad5(0x16c)][_0x3b1ad5(0x2d8)](_0x44e482);});})));}[_0xfad9b1(0x290)](_0x292c2d){const _0x3b7f7a=_0xfad9b1;var _0x1cd763,_0xe51f36;const {memberID:_0x16e2a0,selection:_0x53c71d}=_0x292c2d[_0x3b7f7a(0x136)],_0x3aeab3=_i(_0x53c71d),_0x32908a=(_0xe51f36=(_0x1cd763=this['_memberService']['getMember'](this['unitID'],_0x16e2a0))==null?void 0x0:_0x1cd763[_0x3b7f7a(0x1be)])!=null?_0xe51f36:'Unknown\x20user',_0x366a38={'color':this[_0x3b7f7a(0x16b)][_0x3b7f7a(0x11e)](_0x16e2a0),'name':_0x32908a,'ranges':_0x3aeab3},_0x338b17=this[_0x3b7f7a(0x1d6)];_0x338b17[_0x3b7f7a(0x10e)](_0x16e2a0,_0x366a38),this[_0x3b7f7a(0x16c)]['next'](_0x338b17);}[_0xfad9b1(0x284)](_0x48d0de){const _0x28960d=_0xfad9b1,{memberID:_0x11906a}=_0x48d0de[_0x28960d(0x136)],_0x5cacd2=this[_0x28960d(0x1d6)];_0x5cacd2[_0x28960d(0x214)](_0x11906a),this[_0x28960d(0x16c)][_0x28960d(0x2d8)](_0x5cacd2);}['_toggleOnline'](){const _0x28f9cb=_0xfad9b1;var _0x67ebfe;if(this['_online']=!0x0,((_0x67ebfe=this[_0x28f9cb(0x1fa)][_0x28f9cb(0x165)]())==null?void 0x0:_0x67ebfe['getUnitId']())!==this[_0x28f9cb(0x2d7)])return;const _0x31de33=this['_injector'][_0x28f9cb(0x1b0)](_0x4736f8)['getDocRanges']();Array[_0x28f9cb(0x1b2)](_0x31de33)&&_0x31de33['length']>0x0&&this[_0x28f9cb(0x2d9)](_0x31de33);}[_0xfad9b1(0xfe)](){const _0x59dd08=_0xfad9b1;this[_0x59dd08(0x153)]=!0x1;}};Ue=ui([P(0x2,_0x4d8ee1(_0x5e762e)),P(0x3,_0x4d8ee1(ke)),P(0x4,_0x4d8ee1(_0x46bad0)),P(0x5,_0x4d8ee1(He)),P(0x6,_0x19bd5b),P(0x7,_0x18bc32),P(0x8,_0x107937)],Ue);var Si=Object[_0xfad9b1(0x2a4)],mi=(_0x289eec,_0xfc0116,_0x2a1fba,_0x4020ed)=>{const _0x25f8b1=_0xfad9b1;for(var _0x21688c=_0x4020ed>0x1?void 0x0:_0x4020ed?Si(_0xfc0116,_0x2a1fba):_0xfc0116,_0x5003a6=_0x289eec[_0x25f8b1(0x10a)]-0x1,_0x36aa26;_0x5003a6>=0x0;_0x5003a6--)(_0x36aa26=_0x289eec[_0x5003a6])&&(_0x21688c=_0x36aa26(_0x21688c)||_0x21688c);return _0x21688c;},x=(_0x44261e,_0x55e7db)=>(_0x42870b,_0x4c9824)=>_0x55e7db(_0x42870b,_0x4c9824,_0x44261e);const Ii=0x12c,vi=0x64,gi=()=>{let _0x449d1f=[],_0x3df20b=!0x1;return _0x537e77=>{const _0x5a7cab=_0x2617;_0x449d1f[_0x5a7cab(0xf9)](_0x537e77),_0x3df20b||(_0x3df20b=!0x0,setTimeout(()=>{const _0x4faf4d=_0x5a7cab;_0x449d1f[_0x4faf4d(0x110)](_0x28e550=>_0x28e550()),_0x449d1f=[],_0x3df20b=!0x1;}));};};let Me=class extends _0x1ef804{constructor(_0x39db31,_0x10849b,_0x36a662,_0x4dddf0,_0x3d1ad2,_0x21ec2d,_0x3d9c3d,_0x1a908e){const _0x252ae7=_0xfad9b1;super(),_(this,_0x252ae7(0x153),!0x1),_(this,_0x252ae7(0x219),!0x1),_(this,_0x252ae7(0x16c),new _0x756108(new Map())),_(this,_0x252ae7(0xe4),this[_0x252ae7(0x16c)][_0x252ae7(0x2af)]()),_(this,'_roomMembers$',new _0x756108([])),_(this,_0x252ae7(0x2ba),this[_0x252ae7(0x159)][_0x252ae7(0x183)](_0x13f986(Ii))),_(this,_0x252ae7(0x2d9),_0x46df21((_0x39dff8,_0x56014f)=>{const _0x1ba7aa=_0x252ae7,_0x310125={'eventID':_0x5a0df9[_0x1ba7aa(0x1d2)],'data':{'unitID':this['unitID'],'memberID':this[_0x1ba7aa(0x23b)][_0x1ba7aa(0x244)](),'selection':_0x37477e(_0x39dff8,_0x56014f['range'])}};this[_0x1ba7aa(0x23b)][_0x1ba7aa(0xff)](_0x310125,this[_0x1ba7aa(0x2d7)]);},vi)),(this[_0x252ae7(0x2d7)]=_0x39db31,this[_0x252ae7(0x23b)]=_0x10849b,this[_0x252ae7(0x1cc)]=_0x36a662,this['_colorAssignService']=_0x4dddf0,this[_0x252ae7(0x19f)]=_0x3d1ad2,this[_0x252ae7(0x1fa)]=_0x21ec2d,this[_0x252ae7(0x2c9)]=_0x3d9c3d,this['_refRangeService']=_0x1a908e);}get[_0xfad9b1(0x1d6)](){const _0x266f11=_0xfad9b1;return this[_0x266f11(0x16c)]['getValue']();}get[_0xfad9b1(0x1e4)](){return this['_roomMembers$']['getValue']();}[_0xfad9b1(0x1f2)](){const _0x3f3e3e=_0xfad9b1;super[_0x3f3e3e(0x1f2)](),this['_cursorInfo$'][_0x3f3e3e(0x2d8)](new Map()),this['_cursorInfo$'][_0x3f3e3e(0x161)](),this['_roomMembers$'][_0x3f3e3e(0x2d8)]([]),this[_0x3f3e3e(0x159)][_0x3f3e3e(0x161)]();}[_0xfad9b1(0x1cb)](){const _0x39fe38=_0xfad9b1;this[_0x39fe38(0x219)]||(this['_init']=!0x0,this[_0x39fe38(0x23b)][_0x39fe38(0x2ab)][_0x39fe38(0x183)](_0x205a75(this[_0x39fe38(0x1dc)]))['subscribe'](_0xd112ba=>{const _0x322652=_0x39fe38;_0xd112ba===_0xd9b1b2[_0x322652(0x2dc)]?this[_0x322652(0x288)]():this['_toggleOffline']();}),this[_0x39fe38(0x23b)][_0x39fe38(0x146)]['pipe'](_0x205a75(this[_0x39fe38(0x1dc)]))[_0x39fe38(0x2dd)](_0x1ecee5=>{const _0x505a98=_0x39fe38,_0x5a64e7=_0x1ecee5['eventID'];_0x5a64e7===_0x5a0df9[_0x505a98(0x1d2)]&&this[_0x505a98(0x290)](_0x1ecee5),_0x5a64e7===_0x5a0df9[_0x505a98(0x26a)]&&this[_0x505a98(0x284)](_0x1ecee5);}),this[_0x39fe38(0x29e)](),this['disposeWithMe'](this[_0x39fe38(0x2c9)][_0x39fe38(0x15f)](_0x27bb57=>{const _0x320604=_0x39fe38;if(this['_online']&&_0x27bb57['id']===_0x150e6d['id']&&_0x27bb57[_0x320604(0x149)][_0x320604(0x247)]===this[_0x320604(0x2d7)]){const _0x53ea6b=_0x27bb57['params'];this[_0x320604(0x2d9)](_0x53ea6b[_0x320604(0x2aa)],_0x53ea6b[_0x320604(0x168)][0x0]);}})));}['_onCursorUpdate'](_0x195504){const _0x4c38f3=_0xfad9b1;var _0xa83d64,_0x177937;const {memberID:_0x3e8345,selection:_0x1f5c10}=_0x195504[_0x4c38f3(0x136)],{sheetName:_0x3db143,range:_0x1d63a7}=_0x50f9a6(_0x1f5c10),_0x33f271={'name':(_0x177937=(_0xa83d64=this[_0x4c38f3(0x19f)]['getMember'](this[_0x4c38f3(0x2d7)],_0x3e8345))==null?void 0x0:_0xa83d64[_0x4c38f3(0x1be)])!=null?_0x177937:_0x4c38f3(0x117),'range':this['_getMergeRange'](_0x3db143,_0x1d63a7),'sheetID':_0x3db143,'color':this[_0x4c38f3(0x16b)][_0x4c38f3(0x11e)](_0x3e8345),'selection':_0x1f5c10},_0x36d28b=this[_0x4c38f3(0x1d6)];_0x36d28b[_0x4c38f3(0x10e)](_0x3e8345,_0x33f271),this[_0x4c38f3(0x16c)]['next'](_0x36d28b);}[_0xfad9b1(0x284)](_0x18129c){const _0x1e5c81=_0xfad9b1,{memberID:_0x2b0b9c}=_0x18129c['data'],_0x5c573e=this[_0x1e5c81(0x1d6)];_0x5c573e[_0x1e5c81(0x214)](_0x2b0b9c),this[_0x1e5c81(0x16c)][_0x1e5c81(0x2d8)](_0x5c573e);}[_0xfad9b1(0x222)](_0x1def7c,_0x2e7b04){const _0x45c48c=_0xfad9b1;var _0x529d7c,_0x31f874;const _0x1e2a40=(_0x31f874=(_0x529d7c=this[_0x45c48c(0x1fa)][_0x45c48c(0x18d)](this['unitID']))==null?void 0x0:_0x529d7c[_0x45c48c(0x185)](_0x1def7c))==null?void 0x0:_0x31f874[_0x45c48c(0xe2)]();return(_0x1e2a40==null?void 0x0:_0x1e2a40[_0x45c48c(0x29b)](_0x4310b8=>_0x25f2b4[_0x45c48c(0x19d)](_0x4310b8,_0x2e7b04)))||_0x2e7b04;}[_0xfad9b1(0x29e)](){const _0xdb2277=_0xfad9b1,_0x36ee12=new _0x5967c5(),_0x101ca7=gi(),_0xae66db=()=>{const _0x1094fc=_0x2617;_0x36ee12[_0x1094fc(0x1f2)]();const _0x44adae=(_0xf53316,_0x49deaa,_0x451e2b,_0x49c199)=>{const _0x416609=_0x1094fc;let _0x16c4f1=[];switch(_0xf53316['id']){case _0x26ab43[_0x416609(0x192)]:{_0x16c4f1=_0xe8777f(_0xf53316,_0x49c199);break;}case _0x26ab43[_0x416609(0x227)]:{_0x16c4f1=_0x4357c9(_0xf53316,_0x49c199);break;}case _0x26ab43['InsertColCommandId']:{_0x16c4f1=_0x112b34(_0xf53316,_0x49c199);break;}case _0x26ab43['InsertRangeMoveDownCommandId']:{_0x16c4f1=_0x10f02d(_0xf53316,_0x49c199);break;}case _0x26ab43[_0x416609(0x20f)]:{_0x16c4f1=_0x124061(_0xf53316,_0x49c199);break;}case _0x26ab43[_0x416609(0x143)]:{_0x16c4f1=_0x1655c7(_0xf53316,_0x49c199);break;}case _0x26ab43[_0x416609(0x116)]:{_0x16c4f1=_0x10297b(_0xf53316,_0x49c199);break;}case _0x26ab43[_0x416609(0x1e5)]:{_0x16c4f1=_0x2f579a(_0xf53316,_0x49c199);break;}case _0x26ab43['RemoveRowCommandId']:{_0x16c4f1=_0x283776(_0xf53316,_0x49c199);break;}}const _0x543284=_0x39dc06(_0x16c4f1,_0x49c199),_0x29abcc=this[_0x416609(0x1d6)]['get'](_0x49deaa);if(_0x29abcc&&_0x543284){const _0x524832={..._0x29abcc,'range':_0x543284};this[_0x416609(0x1d6)][_0x416609(0x10e)](_0x49deaa,_0x524832),_0x101ca7(()=>{const _0x25744f=_0x416609,_0x2aafad=this[_0x25744f(0x198)][_0x25744f(0x1bb)](_0x543284,_0x3e3ee1=>(_0x2aafad[_0x25744f(0x1f2)](),_0x44adae(_0x3e3ee1,_0x49deaa,_0x451e2b,_0x543284)));_0x36ee12['add'](_0x2aafad);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x4fbc30,_0x4520e8)=>{const _0x230d3e=_0x1094fc,{range:_0x4c48a9,sheetID:_0x148e22}=_0x4fbc30,_0x5f0cea=this['_refRangeService'][_0x230d3e(0x1bb)](_0x4c48a9,_0x3c5616=>(_0x5f0cea[_0x230d3e(0x1f2)](),_0x44adae(_0x3c5616,_0x4520e8,_0x148e22,_0x4c48a9)));_0x36ee12['add'](_0x5f0cea);});};this[_0xdb2277(0x2e3)](_0x41d1c9(this['_cursorInfo$'][_0xdb2277(0x2dd)](()=>{_0xae66db();})));}['_toggleOnline'](){const _0x2d0282=_0xfad9b1;var _0x4dbd9f,_0x48c819;if(this['_online']=!0x0,((_0x4dbd9f=this['_univerInstanceService'][_0x2d0282(0x165)]())==null?void 0x0:_0x4dbd9f[_0x2d0282(0x21d)]())!==this[_0x2d0282(0x2d7)])return;const _0x304377=(_0x48c819=this[_0x2d0282(0x1cc)][_0x2d0282(0x1b0)](_0x5699a8)[_0x2d0282(0x1c2)]())==null?void 0x0:_0x48c819[0x0],_0x25cd58=this[_0x2d0282(0x1fa)][_0x2d0282(0x2da)](_0x238e4b['UNIVER_SHEET'])[_0x2d0282(0x11b)]();_0x304377&&_0x25cd58&&this[_0x2d0282(0x2d9)](_0x25cd58[_0x2d0282(0x283)](),_0x304377);}[_0xfad9b1(0xfe)](){this['_online']=!0x1;}};Me=mi([x(0x2,_0x4d8ee1(_0x5e762e)),x(0x3,_0x4d8ee1(ke)),x(0x4,_0x4d8ee1(_0x46bad0)),x(0x5,_0x18bc32),x(0x6,_0x107937),x(0x7,_0x4d8ee1(_0x22cb7b))],Me);var pi=Object[_0xfad9b1(0x2a4)],Ci=(_0x3bd54d,_0x5beeb1,_0x3c5b6b,_0x25883f)=>{const _0x5a6ed7=_0xfad9b1;for(var _0x734779=_0x25883f>0x1?void 0x0:_0x25883f?pi(_0x5beeb1,_0x3c5b6b):_0x5beeb1,_0x5cd443=_0x3bd54d[_0x5a6ed7(0x10a)]-0x1,_0x3ac2ea;_0x5cd443>=0x0;_0x5cd443--)(_0x3ac2ea=_0x3bd54d[_0x5cd443])&&(_0x734779=_0x3ac2ea(_0x734779)||_0x734779);return _0x734779;},me=(_0x34b75b,_0x3601eb)=>(_0x2b93d9,_0x400289)=>_0x3601eb(_0x2b93d9,_0x400289,_0x34b75b);let F=class extends _0x1ef804{constructor(_0x1924a6,_0x440699,_0x5652dd){const _0x28373f=_0xfad9b1;super(),_(this,_0x28373f(0x1e7),new Map()),_(this,'_entityInit$',new _0x1dd710()),(this[_0x28373f(0x1fa)]=_0x1924a6,this[_0x28373f(0x1cc)]=_0x440699,this['_collabSessionService']=_0x5652dd,this[_0x28373f(0x219)]());}[_0xfad9b1(0x1f2)](){const _0x1f57ea=_0xfad9b1;super[_0x1f57ea(0x1f2)](),this['_entityInit$'][_0x1f57ea(0x161)](),this['_entities'][_0x1f57ea(0x110)](_0x3da0b7=>_0x3da0b7[_0x1f57ea(0x1f2)]());}[_0xfad9b1(0x205)](_0x298998){const _0x25ecc3=_0xfad9b1;return this['_entities'][_0x25ecc3(0x1f1)](_0x298998)?this[_0x25ecc3(0x1e7)]['get'](_0x298998)[_0x25ecc3(0xe4)]:this[_0x25ecc3(0x139)][_0x25ecc3(0x183)](_0x1f3094(_0x3c8231=>_0x3c8231[_0x25ecc3(0x2d7)]===_0x298998),_0x1a7f4e(_0x3af94e=>_0x3af94e[_0x25ecc3(0xe4)]));}[_0xfad9b1(0x219)](){const _0x3404f3=_0xfad9b1;this[_0x3404f3(0x1fa)][_0x3404f3(0x1db)](_0x238e4b[_0x3404f3(0x26c)])['pipe'](_0x205a75(this[_0x3404f3(0x1dc)]))[_0x3404f3(0x2dd)](async _0x5098e1=>{const _0x53a0da=_0x3404f3,_0x440dba=_0x5098e1[_0x53a0da(0x21d)](),_0x2e0d96=await this['_startSheetCollabCursor'](_0x440dba);this[_0x53a0da(0x139)][_0x53a0da(0x2d8)](_0x2e0d96),this[_0x53a0da(0x1e7)][_0x53a0da(0x10e)](_0x440dba,_0x2e0d96);}),this[_0x3404f3(0x1fa)][_0x3404f3(0x1db)](_0x238e4b[_0x3404f3(0x1fb)])['pipe'](_0x205a75(this[_0x3404f3(0x1dc)]))[_0x3404f3(0x183)](_0x1f3094(_0x58ca2f=>!_0x58ca2f[_0x3404f3(0x21d)]()['startsWith']('__')))[_0x3404f3(0x2dd)](async _0x268053=>{const _0x38aa7d=_0x3404f3,_0x1ff0ea=_0x268053[_0x38aa7d(0x21d)](),_0x1ee76e=await this['_startDocCollabCursor'](_0x1ff0ea);this[_0x38aa7d(0x139)][_0x38aa7d(0x2d8)](_0x1ee76e),this[_0x38aa7d(0x1e7)][_0x38aa7d(0x10e)](_0x1ff0ea,_0x1ee76e);}),_0x5c6d58(this[_0x3404f3(0x1fa)]['getTypeOfUnitDisposed$'](_0x238e4b['UNIVER_DOC']),this[_0x3404f3(0x1fa)]['getTypeOfUnitDisposed$'](_0x238e4b[_0x3404f3(0x26c)]))[_0x3404f3(0x183)](_0x205a75(this[_0x3404f3(0x1dc)]))['subscribe'](_0x426a28=>{const _0x5464c0=_0x3404f3,_0x33d4b6=_0x426a28[_0x5464c0(0x21d)](),_0x1615fc=this[_0x5464c0(0x1e7)][_0x5464c0(0x1b0)](_0x33d4b6);_0x1615fc&&(_0x1615fc[_0x5464c0(0x1f2)](),this[_0x5464c0(0x1e7)][_0x5464c0(0x214)](_0x33d4b6));});}async[_0xfad9b1(0x230)](_0x1628e9){const _0x6f6cf7=_0xfad9b1,_0x173eb0=await this[_0x6f6cf7(0x1d7)][_0x6f6cf7(0x25a)](_0x1628e9),_0x449d6f=this[_0x6f6cf7(0x1cc)]['createInstance'](Me,_0x1628e9,_0x173eb0);return _0x449d6f['init'](),_0x449d6f;}async['_startDocCollabCursor'](_0x189560){const _0x22e52c=_0xfad9b1,_0x236fe3=await this[_0x22e52c(0x1d7)][_0x22e52c(0x25a)](_0x189560),_0x122b8e=this[_0x22e52c(0x1cc)][_0x22e52c(0x296)](Ue,_0x189560,_0x236fe3);return _0x122b8e['init'](),_0x122b8e;}};F=Ci([me(0x0,_0x18bc32),me(0x1,_0x4d8ee1(_0x5e762e)),me(0x2,_0x4d8ee1(_0x1ad9f4))],F);const J=0x14,Qe=0xc8,Ie=0x4,Ei=0x5;function Oi(_0x574dcd,_0x3ace69){const _0x736e98=_0xfad9b1;let {radius:_0x1bf00b,width:_0x281385,height:_0x545670}=_0x3ace69;_0x1bf00b=_0x1bf00b!=null?_0x1bf00b:0x0,_0x281385=_0x281385!=null?_0x281385:0x1e,_0x545670=_0x545670!=null?_0x545670:0x1e;let _0x24b46a=0x0,_0x444917=0x0,_0x26989b=0x0;_0x24b46a=_0x444917=_0x26989b=Math[_0x736e98(0x1ff)](_0x1bf00b,_0x281385/0x2,_0x545670/0x2),_0x574dcd[_0x736e98(0x178)](),_0x574dcd[_0x736e98(0x22e)](_0x24b46a,0x0),_0x574dcd['lineTo'](_0x281385-_0x444917,0x0),_0x574dcd[_0x736e98(0x172)](_0x281385-_0x444917,_0x444917,_0x444917,Math['PI']*0x3/0x2,0x0,!0x1),_0x574dcd[_0x736e98(0x16a)](_0x281385,_0x545670-_0x26989b),_0x574dcd['arc'](_0x281385-_0x26989b,_0x545670-_0x26989b,_0x26989b,0x0,Math['PI']/0x2,!0x1),_0x574dcd['lineTo'](0x0,_0x545670),_0x574dcd['lineTo'](0x0,_0x24b46a),_0x574dcd['arc'](_0x24b46a,_0x24b46a,_0x24b46a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x574dcd[_0x736e98(0x1a5)](),_0x3ace69['fill']&&(_0x574dcd['save'](),_0x574dcd[_0x736e98(0x295)]=_0x3ace69[_0x736e98(0x12e)],_0x3ace69[_0x736e98(0x204)]==='evenodd'?_0x574dcd['fill'](_0x736e98(0xfa)):_0x574dcd['fill'](),_0x574dcd[_0x736e98(0x122)]());}class ue extends _0x53f1ed{constructor(_0x146b95,_0x1264d7){const _0x42a451=_0xfad9b1;super(_0x146b95,_0x1264d7),_(this,_0x42a451(0x257)),_(this,_0x42a451(0x2b8)),(this['color']=_0x1264d7==null?void 0x0:_0x1264d7['color'],this['text']=_0x1264d7==null?void 0x0:_0x1264d7['text']);}static[_0xfad9b1(0x2de)](_0x2dfb28,_0xc0be91){const _0x4a8506=_0xfad9b1,{text:_0x4a72fd,color:_0x2eb7a6}=_0xc0be91;_0x2dfb28[_0x4a8506(0xfd)](),_0x2dfb28[_0x4a8506(0x1f5)]=_0x4a8506(0x272);const _0x5a40a0=_0x2dfb28[_0x4a8506(0x2ad)](_0x4a72fd)[_0x4a8506(0x2c4)],_0x224416=Math[_0x4a8506(0x1ff)](_0x5a40a0+0x2*Ie,Qe);Oi(_0x2dfb28,{'height':J,'radius':0x4,'width':_0x224416,'fill':_0x2eb7a6}),_0x2dfb28[_0x4a8506(0x295)]=_0x4a8506(0x256);const _0x4727c6=Ie,_0xf22eda=J-Ei,_0x2254f0=Qe-0x2*Ie;if(_0x5a40a0>_0x2254f0){let _0x4ac80e='',_0x2e2e83=0x0;for(const _0x29c400 of _0x4a72fd){const _0x38bc18=_0x2dfb28['measureText'](_0x29c400)[_0x4a8506(0x2c4)];if(_0x2e2e83+_0x38bc18<=_0x2254f0-_0x2dfb28[_0x4a8506(0x2ad)](_0x4a8506(0x1e0))[_0x4a8506(0x2c4)])_0x4ac80e+=_0x29c400,_0x2e2e83+=_0x38bc18;else{_0x4ac80e+='...';break;}}_0x2dfb28[_0x4a8506(0x2bc)](_0x4ac80e,_0x4727c6,_0xf22eda);}else _0x2dfb28[_0x4a8506(0x2bc)](_0x4a72fd,_0x4727c6,_0xf22eda);_0x2dfb28[_0x4a8506(0x122)]();}[_0xfad9b1(0x22c)](_0x5b492a){const _0x4837f7=_0xfad9b1;ue[_0x4837f7(0x2de)](_0x5b492a,this);}}const ve='collab-text-anchor-',bi=_0xfad9b1(0x11d),Ti=_0xfad9b1(0x156),G=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0xfad9b1(0x1f6);class qe{constructor(_0x4f53a9,_0x1a772f,_0x8b0169,_0x47391b){const _0x5b985a=_0xfad9b1;_(this,'_shapes',[]),_(this,_0x5b985a(0x270),null),_(this,_0x5b985a(0x29a),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x5b985a(0x25e),null),(this[_0x5b985a(0x171)]=_0x4f53a9,this[_0x5b985a(0x228)]=_0x1a772f,this[_0x5b985a(0x27c)]=_0x8b0169,this[_0x5b985a(0x249)]=_0x47391b,this[_0x5b985a(0x177)]());}set[_0xfad9b1(0x199)](_0x4c69d9){const _0x1b6949=_0xfad9b1;_0x4c69d9?(this['_anchorDot']&&this[_0x1b6949(0x1a1)][_0x1b6949(0x11c)](),this[_0x1b6949(0x29a)]&&this[_0x1b6949(0x29a)][_0x1b6949(0x294)]()):(this['_anchorDot']&&this['_anchorDot'][_0x1b6949(0x294)](),this[_0x1b6949(0x29a)]&&this[_0x1b6949(0x29a)][_0x1b6949(0x11c)]());}['dispose'](){const _0x5a9f22=_0xfad9b1;for(const _0x16c2ed of this[_0x5a9f22(0x21e)])_0x16c2ed[_0x5a9f22(0x1f2)]();this[_0x5a9f22(0x29a)]&&this[_0x5a9f22(0x29a)][_0x5a9f22(0x1f2)](),this['_anchorDot']&&this[_0x5a9f22(0x1a1)][_0x5a9f22(0x1f2)](),this[_0x5a9f22(0x270)]&&this[_0x5a9f22(0x270)][_0x5a9f22(0x1f2)](),this['_eventUnsubscribe']&&this[_0x5a9f22(0x25e)]();}[_0xfad9b1(0x177)](){const _0x3494b3=_0xfad9b1;var _0x809a7a;const {_docSkeleton:_0x37c0cd,_document:_0x45d0af}=this,{color:_0x2170b0,name:_0x566b0e,ranges:_0x23ed2f}=this['_cursor'],_0x46d6d2=_0x45d0af[_0x3494b3(0x225)](),{docsLeft:_0x472e93,docsTop:_0x30ba3d}=_0x46d6d2,_0x606645=new _0x35345e(_0x46d6d2,_0x37c0cd);for(const {startOffset:_0x54f3ae,endOffset:_0x17bd40,rangeType:_0x4cc11c,segmentId:_0x49af3a,segmentPage:_0xcbb59f,collapsed:_0x56330c,isActive:_0x55a532}of _0x23ed2f){const _0x3feaa9=_0x37c0cd[_0x3494b3(0x253)](_0x54f3ae,!0x0,_0x49af3a,_0xcbb59f);let _0x210934=_0x37c0cd['findNodePositionByCharIndex'](_0x17bd40,!0x0,_0x49af3a,_0xcbb59f);if(_0x210934==null&&(_0x210934=_0x37c0cd[_0x3494b3(0x253)](_0x17bd40-0x1,!0x1,_0x49af3a,_0xcbb59f)),_0x55a532){const {contentBoxPointGroup:_0x39b744}=_0x606645[_0x3494b3(0x23f)](_0x210934,_0x210934);if(_0x39b744[_0x3494b3(0x10a)]===0x0)continue;this[_0x3494b3(0x291)](_0x2170b0,_0x39b744,_0x472e93,_0x30ba3d,_0x566b0e),this[_0x3494b3(0x25e)]=this[_0x3494b3(0x13f)]();}if(_0x3feaa9&&_0x210934){if(_0x4cc11c===_0x316d4c[_0x3494b3(0x184)]){const _0x58f336=new _0x1a0087(_0x46d6d2,_0x37c0cd),{pointGroup:_0x41d48b}=(_0x809a7a=_0x58f336[_0x3494b3(0x23f)](_0x3feaa9,_0x210934))!=null?_0x809a7a:{};if(_0x41d48b==null||_0x41d48b[_0x3494b3(0x10a)]===0x0)continue;this[_0x3494b3(0x10c)](_0x2170b0,_0x41d48b,_0x472e93,_0x30ba3d);}else{if(!_0x56330c){const {borderBoxPointGroup:_0x487c2e}=_0x606645[_0x3494b3(0x23f)](_0x3feaa9,_0x210934);if(_0x487c2e['length']===0x0)continue;this[_0x3494b3(0x14e)](_0x2170b0,_0x487c2e,_0x472e93,_0x30ba3d);}}}}}[_0xfad9b1(0x291)](_0x4b8a38,_0x3b7f24,_0x4a02d8,_0x34114f,_0xecc9c9){const _0x14ed31=_0xfad9b1,_0x395bf8=this[_0x14ed31(0x280)](_0x3b7f24),{left:_0x29af2c,top:_0x56bfa4,height:_0x44ce10}=_0x395bf8,_0x5d5a25=this[_0x14ed31(0x10f)](),_0x405c8f=Di/_0x5d5a25,_0x36b692=new _0x7ec145(ve+_0x31d362(G),{'left':_0x29af2c+_0x4a02d8-_0x405c8f,'top':_0x56bfa4+_0x34114f,'height':_0x44ce10,'width':Ri,'fill':_0x4b8a38||_0x275365(_0x5632cb[_0x14ed31(0x2a0)],0x0),'strokeWidth':_0x405c8f,'stroke':Ni,'evented':!0x0});this[_0x14ed31(0x270)]=_0x36b692,this['_scene'][_0x14ed31(0x245)](_0x36b692,_0xf9d32a);const _0x20638d=new _0x7ec145(ve+_0x31d362(G),{'left':_0x29af2c+_0x4a02d8-_0x405c8f,'top':_0x56bfa4+_0x34114f-ge/0x2,'height':ge,'width':ge,'fill':_0x4b8a38||_0x275365(_0x5632cb[_0x14ed31(0x2a0)],0x0),'strokeWidth':0x0,'stroke':_0x4b8a38||_0x275365(_0x5632cb[_0x14ed31(0x2a0)],0x0),'evented':!0x1});this['_anchorDot']=_0x20638d,this[_0x14ed31(0x228)][_0x14ed31(0x245)](_0x20638d,_0xf9d32a);const _0x225b95=new ue(ve+_0x31d362(G),{'left':_0x29af2c+_0x4a02d8-_0x405c8f,'top':_0x56bfa4+_0x34114f-J,'text':_0xecc9c9,'color':_0x4b8a38});this[_0x14ed31(0x29a)]=_0x225b95,this[_0x14ed31(0x228)][_0x14ed31(0x245)](_0x225b95,_0xf9d32a),this[_0x14ed31(0x199)]=!0x1;}[_0xfad9b1(0x13f)](){const _0x30631b=_0xfad9b1,_0x1b74fa=this[_0x30631b(0x270)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x4f78d9=_0x30631b;this[_0x4f78d9(0x199)]=!0x0;}),_0x4e4fad=this[_0x30631b(0x270)][_0x30631b(0x14d)][_0x30631b(0x213)](()=>{const _0x4e1188=_0x30631b;this['_hideTimer']&&clearTimeout(this[_0x4e1188(0x175)]),this['_hideTimer']=setTimeout(()=>{const _0x3071d7=_0x4e1188;this[_0x3071d7(0x199)]=!0x1;},0x7d0);});return()=>{const _0x37d622=_0x30631b;_0x1b74fa[_0x37d622(0x147)](),_0x4e4fad[_0x37d622(0x147)]();};}[_0xfad9b1(0x14e)](_0x540218,_0x77e2d0,_0x319ce3,_0x41797b){const _0x52bd5a=_0xfad9b1,_0x4ded81=new _0x990197(_0x540218)[_0x52bd5a(0x2b1)](0.2)['toRgbString'](),_0x514727=new _0x312826(bi+_0x31d362(G),{'pointsGroup':_0x77e2d0,'fill':_0x4ded81||_0x275365(_0x5632cb['black'],0.2),'left':_0x319ce3,'top':_0x41797b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x52bd5a(0xf9)](_0x514727),this[_0x52bd5a(0x228)][_0x52bd5a(0x245)](_0x514727,_0xf9d32a);}[_0xfad9b1(0x10c)](_0x4b206d,_0xb9fbd1,_0x3c7447,_0x117c97){const _0x1271aa=_0xfad9b1,_0x5ae42f=new _0x990197(_0x4b206d)[_0x1271aa(0x2b1)](0.2)[_0x1271aa(0x186)](),_0xbe24ee=new _0x312826(Ti+_0x31d362(G),{'pointsGroup':_0xb9fbd1,'fill':_0x5ae42f||_0x275365(_0x5632cb[_0x1271aa(0x2a0)],0.2),'left':_0x3c7447,'top':_0x117c97,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1271aa(0x21e)][_0x1271aa(0xf9)](_0xbe24ee),this[_0x1271aa(0x228)]['addObject'](_0xbe24ee,_0xf9d32a);}[_0xfad9b1(0x280)](_0x5b0321){const _0x4e86a2=_0x5b0321[0x0],_0x183fe9=_0x4e86a2[0x0],_0x5f30d1=_0x4e86a2[0x2],{x:_0x1545bc,y:_0x4ebecc}=_0x183fe9,{x:_0x36bf51,y:_0x4f791b}=_0x5f30d1;return{'left':_0x1545bc,'top':_0x4ebecc,'width':_0x36bf51-_0x1545bc,'height':_0x4f791b-_0x4ebecc};}[_0xfad9b1(0x10f)](){const _0x5c81c2=_0xfad9b1,{scaleX:_0x4c915c,scaleY:_0x3c538f}=this[_0x5c81c2(0x228)][_0x5c81c2(0x20d)]();return Math[_0x5c81c2(0x13c)](_0x4c915c,_0x3c538f);}}var Ui=Object[_0xfad9b1(0x2a4)],Mi=(_0x28decc,_0x3407c3,_0x42a62a,_0x1e942d)=>{const _0x2ed2fd=_0xfad9b1;for(var _0x10c8e3=_0x1e942d>0x1?void 0x0:_0x1e942d?Ui(_0x3407c3,_0x42a62a):_0x3407c3,_0x236040=_0x28decc[_0x2ed2fd(0x10a)]-0x1,_0x431685;_0x236040>=0x0;_0x236040--)(_0x431685=_0x28decc[_0x236040])&&(_0x10c8e3=_0x431685(_0x10c8e3)||_0x10c8e3);return _0x10c8e3;},q=(_0x186b80,_0x597167)=>(_0x4eeef8,_0x3183bb)=>_0x597167(_0x4eeef8,_0x3183bb,_0x186b80);let Le=class extends _0x1ef804{constructor(_0x43c013,_0x2e6c7d,_0x172c3b,_0x4440a3,_0x5b4527){const _0x13a7eb=_0xfad9b1;super(),_(this,_0x13a7eb(0x126),[]),_(this,_0x13a7eb(0x16d),[]),(this[_0x13a7eb(0xe7)]=_0x43c013,this[_0x13a7eb(0x133)]=_0x2e6c7d,this['_collabCursorController']=_0x172c3b,this[_0x13a7eb(0x2c9)]=_0x4440a3,this[_0x13a7eb(0x2e4)]=_0x5b4527,this[_0x13a7eb(0x219)]());}['_init'](){const _0x1b3b91=_0xfad9b1,_0x4aa56f=this[_0x1b3b91(0xe7)]['unitId'],_0x33cb35=this[_0x1b3b91(0x133)];this['disposeWithMe'](_0x5908b2([this[_0x1b3b91(0x218)]['getCollabCursors$'](_0x4aa56f),this[_0x1b3b91(0x2e4)][_0x1b3b91(0x1e6)]])[_0x1b3b91(0x183)](_0x1276fd(([_0x27bdb0,_0x6e3139])=>({'skeleton':_0x33cb35[_0x1b3b91(0x1eb)](),'cursors':[..._0x27bdb0[_0x1b3b91(0x119)]()][_0x1b3b91(0x251)](_0x1e8735=>({..._0x1e8735,'color':this[_0x1b3b91(0x2e4)]['getColorFromTheme'](_0x1e8735[_0x1b3b91(0x257)])}))})))[_0x1b3b91(0x2dd)](_0xbd89df=>{const _0xebd4f=_0x1b3b91;if(this[_0xebd4f(0x20b)](),_0xbd89df){const {skeleton:_0x45673e,cursors:_0x40430e}=_0xbd89df;this[_0xebd4f(0x2ea)](_0x45673e,_0x40430e);}})),this[_0x1b3b91(0x1b5)](),this[_0x1b3b91(0x2a7)]();}[_0xfad9b1(0x2ea)](_0x12bbd2,_0x4afaaf){const _0x58c06d=_0xfad9b1,{scene:_0x386326,mainComponent:_0x149f1d}=this[_0x58c06d(0xe7)],_0xc90ec0=_0x4afaaf[_0x58c06d(0x17f)](_0x173ae0=>new qe(_0x173ae0,_0x386326,_0x12bbd2,_0x149f1d));this['_cursorShapes']=_0xc90ec0,this[_0x58c06d(0x16d)]=_0x4afaaf;}[_0xfad9b1(0x2c1)](){const _0xb3187e=_0xfad9b1;this['_removeCollabCursors']();const {scene:_0x54a094,mainComponent:_0x26cf6d}=this[_0xb3187e(0xe7)],_0x56b417=this[_0xb3187e(0x133)][_0xb3187e(0x1eb)](),_0x481d35=this['_cursors']['map'](_0xd955f1=>new qe(_0xd955f1,_0x54a094,_0x56b417,_0x26cf6d));this[_0xb3187e(0x126)]=_0x481d35;}[_0xfad9b1(0x20b)](){const _0x2e9d14=_0xfad9b1;this[_0x2e9d14(0x126)][_0x2e9d14(0x110)](_0x191fdb=>_0x191fdb[_0x2e9d14(0x1f2)]()),this[_0x2e9d14(0x126)]=[];}['_initCommandExecutedListener'](){const _0x2fec80=_0xfad9b1,_0x441fe5=[_0x31f3cf['id']];this['disposeWithMe'](this[_0x2fec80(0x2c9)]['onCommandExecuted'](_0x571a1a=>{const _0x3dd3f5=_0x2fec80;_0x441fe5[_0x3dd3f5(0x102)](_0x571a1a['id'])&&_0x571a1a[_0x3dd3f5(0x149)][_0x3dd3f5(0x247)]===this[_0x3dd3f5(0xe7)][_0x3dd3f5(0x247)]&&this['_refreshCollabCursors']();}));}[_0xfad9b1(0x1b5)](){const _0x1c72bf=_0xfad9b1;this[_0x1c72bf(0x2e3)](_0x4f7f1c(this['_context']['engine'][_0x1c72bf(0x197)])[_0x1c72bf(0x183)](_0x2b2fb8(_0x14876c=>_0x14876c[_0x1c72bf(0x220)]===_0x545736[_0x1c72bf(0x151)]),_0xebc942(0x10))[_0x1c72bf(0x2dd)](()=>{const _0x3f1aa9=_0x1c72bf;this[_0x3f1aa9(0x2c1)]();}));}};Le=Mi([q(0x1,_0x4d8ee1(_0x482000)),q(0x2,_0x4d8ee1(F)),q(0x3,_0x107937),q(0x4,_0x4d8ee1(_0x200203))],Le);const Li=0x1,Pi=1.5;class wi extends _0x53f1ed{constructor(_0x4d1218,_0x7c7337){const _0x53e02b=_0xfad9b1;super(_0x4d1218,_0x7c7337),_(this,'_color'),_(this,_0x53e02b(0x250),!0x1),_(this,'_range'),_(this,_0x53e02b(0x2b6),''),_(this,_0x53e02b(0x1e9),_0x53e02b(0x1b8)),_(this,_0x53e02b(0x241)),(_0x7c7337&&this[_0x53e02b(0x1de)](_0x7c7337),this[_0x53e02b(0x2c3)][_0x53e02b(0x213)](()=>this[_0x53e02b(0x1de)]({'hovered':!0x0})),this[_0x53e02b(0x14d)][_0x53e02b(0x213)](()=>this[_0x53e02b(0x1de)]({'hovered':!0x1})));}[_0xfad9b1(0x1de)](_0x557734){const _0x422689=_0xfad9b1;var _0x5e51c7,_0x4ea575,_0x2395b7,_0x2b47bd,_0x208da0,_0x369ab0;this[_0x422689(0x27a)]=(_0x5e51c7=_0x557734[_0x422689(0x257)])!=null?_0x5e51c7:this[_0x422689(0x27a)],this[_0x422689(0x250)]=(_0x4ea575=_0x557734[_0x422689(0x266)])!=null?_0x4ea575:this['_hovered'],this[_0x422689(0xfb)]=(_0x2395b7=_0x557734['range'])!=null?_0x2395b7:this['_range'],this['_name']=(_0x2b47bd=_0x557734[_0x422689(0x1be)])!=null?_0x2b47bd:this[_0x422689(0x2b6)],this['_labelPosition']=(_0x208da0=_0x557734[_0x422689(0x1bc)])!=null?_0x208da0:this['_labelPosition'],this[_0x422689(0x241)]=(_0x369ab0=_0x557734[_0x422689(0x200)])!=null?_0x369ab0:this[_0x422689(0x241)],this[_0x422689(0x2bf)]({'width':_0x557734[_0x422689(0x2c4)],'height':_0x557734['height']});}[_0xfad9b1(0x208)](_0x40485a){const _0x385204=_0xfad9b1,{row:_0x1ad44f,column:_0x4f3aac}=_0x40485a;if(_0x1ad44f>=this[_0x385204(0xfb)]['startRow']&&_0x1ad44f<=this[_0x385204(0xfb)]['endRow']&&_0x4f3aac>=this[_0x385204(0xfb)][_0x385204(0x1a9)]&&_0x4f3aac<=this['_range'][_0x385204(0x2b2)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x385204(0x1de)]({'hovered':!0x1});}[_0xfad9b1(0x145)](_0x3c3c92){return!0x1;}[_0xfad9b1(0x22c)](_0x59230e){const _0x2727fa=_0xfad9b1;_0x7ec145['drawWith'](_0x59230e,{'width':this[_0x2727fa(0x2c4)],'height':this[_0x2727fa(0x1b3)],'strokeWidth':Pi,'stroke':this[_0x2727fa(0x27a)],'evented':!0x1,'fill':this[_0x2727fa(0x241)]}),this[_0x2727fa(0x250)]&&(_0x59230e[_0x2727fa(0xfd)](),_0x59230e[_0x2727fa(0x18c)](0x1,0x0,0x0,0x1,this['width'],this[_0x2727fa(0x1e9)]===_0x2727fa(0x26d)?0x0:-J),ue[_0x2727fa(0x2de)](_0x59230e,{'text':this[_0x2727fa(0x2b6)],'color':this[_0x2727fa(0x27a)]}),_0x59230e['restore']());}}var Ai=Object[_0xfad9b1(0x2a4)],yi=(_0x3ba327,_0x5af391,_0xdd31d,_0x1d47d4)=>{const _0x4fd14b=_0xfad9b1;for(var _0x31808f=_0x1d47d4>0x1?void 0x0:_0x1d47d4?Ai(_0x5af391,_0xdd31d):_0x5af391,_0x34b9f0=_0x3ba327[_0x4fd14b(0x10a)]-0x1,_0xe7d2e0;_0x34b9f0>=0x0;_0x34b9f0--)(_0xe7d2e0=_0x3ba327[_0x34b9f0])&&(_0x31808f=_0xe7d2e0(_0x31808f)||_0x31808f);return _0x31808f;},pe=(_0x42c4f6,_0x7be5a8)=>(_0xa631f0,_0x5cddf8)=>_0x7be5a8(_0xa631f0,_0x5cddf8,_0x42c4f6);const $i=0x1389;let Pe=class extends _0x1ef804{constructor(_0x5e4205,_0x2323d2,_0x3f4fa9,_0xb9028){const _0x2bcc7a=_0xfad9b1;super(),_(this,_0x2bcc7a(0x16d),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x5e4205,this[_0x2bcc7a(0x2d3)]=_0x2323d2,this[_0x2bcc7a(0x218)]=_0x3f4fa9,this[_0x2bcc7a(0x2e4)]=_0xb9028,this[_0x2bcc7a(0x219)]());}[_0xfad9b1(0x219)](){const _0x1bfc55=_0xfad9b1;this[_0x1bfc55(0x2d3)][_0x1bfc55(0x1d4)][_0x1bfc55(0x183)](_0x47582b(this[_0x1bfc55(0x1dc)]),_0x9e04f4(_0xf328a4=>{const _0x2f0b84=_0x1bfc55;if(_0xf328a4){const _0x319c06=_0xf328a4['sheetId'];return _0x5908b2(this[_0x2f0b84(0x218)][_0x2f0b84(0x205)](this[_0x2f0b84(0xe7)][_0x2f0b84(0x247)]),this[_0x2f0b84(0x2e4)]['currentTheme$'])[_0x2f0b84(0x183)](_0x1276fd(([_0x450668,_0x231da7])=>{const _0x175f99=new Map();return _0x450668['forEach']((_0x681aa9,_0x4c93f5)=>{const _0x24094e=_0x2617;if(_0x681aa9[_0x24094e(0x12d)]===_0x319c06){const _0x1d3a61={..._0x681aa9};_0x1d3a61['color']=this['_themeService']['getColorFromTheme'](_0x681aa9[_0x24094e(0x257)]),_0x175f99['set'](_0x4c93f5,_0x1d3a61);}}),{'skeleton':_0xf328a4,'cursors':_0x175f99};}));}return _0xc18b12({'skeleton':null,'cursors':new Map()});}))[_0x1bfc55(0x2dd)](({skeleton:_0x5ba703,cursors:_0xe82f78})=>{const _0x15a1dd=_0x1bfc55;this[_0x15a1dd(0x20b)](),_0x5ba703&&this['_updateCollabCursors'](_0x5ba703,_0xe82f78);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x1bfc55(0x2dd)](_0x1ab864=>{const _0x567b30=_0x1bfc55;if(_0x1ab864==null)return;const {skeleton:_0x53f2c2}=_0x1ab864,{scene:_0x5e2f3e}=this['_context'];_0x5e2f3e['onPointerMove$'][_0x567b30(0x213)](_0x46df21(_0x52f804=>{const _0x4d9cf1=_0x567b30;var _0x52f483,_0x19d384;const {offsetX:_0x3c372f,offsetY:_0x39bdc8}=_0x52f804,{x:_0x4e414f,y:_0x493af0}=_0x5e2f3e['getRelativeToViewportCoord'](_0x1fc3f8['FromArray']([_0x3c372f,_0x39bdc8])),{scaleX:_0x2288ca,scaleY:_0xc8a923}=_0x5e2f3e[_0x4d9cf1(0x20d)](),_0x41ad9f=_0x5e2f3e[_0x4d9cf1(0x1f3)](_0x2088e0[_0x4d9cf1(0x15e)]),_0x1a0a51=_0x5e2f3e[_0x4d9cf1(0xe5)](_0x1fc3f8['FromArray']([_0x4e414f,_0x493af0]),_0x41ad9f),_0x9a530e=_0x53f2c2['getCellPositionByOffset'](_0x3c372f,_0x39bdc8,_0x2288ca,_0xc8a923,_0x1a0a51);((_0x52f483=this['_lastPointer'])==null?void 0x0:_0x52f483['column'])===_0x9a530e[_0x4d9cf1(0x162)]&&((_0x19d384=this[_0x4d9cf1(0x14a)])==null?void 0x0:_0x19d384[_0x4d9cf1(0x23e)])===_0x9a530e[_0x4d9cf1(0x23e)]||this[_0x4d9cf1(0x16d)][_0x4d9cf1(0x110)](_0x170b09=>{const _0x3e7973=_0x4d9cf1;_0x170b09[_0x3e7973(0x208)](_0x9a530e);});},0x64));});}['_updateCollabCursors'](_0x494c82,_0x4abe8f){const _0x52f422=_0xfad9b1;var _0x1329ad;const _0x1265bd=(_0x1329ad=this[_0x52f422(0x2d3)][_0x52f422(0x114)]())==null?void 0x0:_0x1329ad[_0x52f422(0x189)];if(!_0x1265bd)return;const _0x205533=this[_0x52f422(0x238)]();if(!_0x205533)return;this[_0x52f422(0x16d)][_0x52f422(0x110)](_0x295e74=>{const _0x37fb1a=_0x52f422;_0x295e74[_0x37fb1a(0x101)]();});const {scene:_0x1cb2a3}=_0x205533,_0x1a7703=xi(Array[_0x52f422(0x141)](_0x4abe8f['values']()))[_0x52f422(0x17f)](_0x4b3b3e=>{const _0x4d9043=_0x52f422,{color:_0x3318bb,range:_0x34a387,name:_0x40bb89,selection:_0x133446,sheetID:_0x4560b7}=_0x4b3b3e,{startColumn:_0x1e4ecf,startRow:_0xc2e7ae,endColumn:_0x2f8067,endRow:_0x4a9e31}=_0x34a387,_0x3e3316=_0x252968(_0xc2e7ae,_0x1e4ecf,_0x1cb2a3,_0x1265bd),_0x2989fd=_0x252968(_0x4a9e31,_0x2f8067,_0x1cb2a3,_0x1265bd),{columnHeaderHeightAndMarginTop:_0x119803}=_0x1265bd,{startX:_0xfcab4f,startY:_0x14d587}=_0x3e3316,{endX:_0x27cf10,endY:_0x387cea}=_0x2989fd,_0x314cad=_0x27cf10-_0xfcab4f,_0x56d875=_0x387cea-_0x14d587,_0x1d3ade={'labelPosition':_0x14d587-_0x119803>=J?_0x4d9043(0x1b8):_0x4d9043(0x26d),'sheetID':_0x4560b7,'range':_0x34a387,'color':_0x3318bb,'name':_0x40bb89,'selection':_0x133446,'left':_0xfcab4f,'top':_0x14d587,'width':_0x314cad,'height':_0x56d875,'evented':!0x1,'zIndex':$i};return new wi(_0x40bb89,_0x1d3ade);});_0x1cb2a3['addObjects'](_0x1a7703,Li),this[_0x52f422(0x16d)]=new Set(_0x1a7703);}['_removeCollabCursors'](){const _0x52144c=_0xfad9b1;var _0x1fc314;(_0x1fc314=this['_cursors'])==null||_0x1fc314[_0x52144c(0x110)](_0x2c6132=>_0x2c6132[_0x52144c(0x1f2)]());}['_getSheetObject'](){const _0xf60cbe=_0xfad9b1;return _0x3711f2(this[_0xf60cbe(0xe7)][_0xf60cbe(0x19c)],this[_0xf60cbe(0xe7)]);}};Pe=yi([pe(0x1,_0x4d8ee1(_0xc6e76b)),pe(0x2,_0x4d8ee1(F)),pe(0x3,_0x4d8ee1(_0x200203))],Pe);function xi(_0x557349){const _0x4e663f=_0xfad9b1,_0x270f8a=new Map();return _0x557349[_0x4e663f(0x110)](_0x49f69d=>{const _0x552614=_0x4e663f;if(_0x270f8a[_0x552614(0x1f1)](_0x49f69d[_0x552614(0x252)])){const _0x13ca55=_0x270f8a[_0x552614(0x1b0)](_0x49f69d[_0x552614(0x252)]);_0x13ca55[_0x552614(0x1be)]+=',\x20'+_0x49f69d[_0x552614(0x1be)];}else _0x270f8a[_0x552614(0x10e)](_0x49f69d[_0x552614(0x252)],_0x49f69d);}),Array['from'](_0x270f8a['values']());}var v=function(){const _0x5455d2=_0xfad9b1;return v=Object[_0x5455d2(0x150)]||function(_0x246a5d){const _0x4f3a99=_0x5455d2;for(var _0x56627e,_0x76d1b7=0x1,_0x119635=arguments[_0x4f3a99(0x10a)];_0x76d1b7<_0x119635;_0x76d1b7++){_0x56627e=arguments[_0x76d1b7];for(var _0x2241f8 in _0x56627e)Object[_0x4f3a99(0x18a)][_0x4f3a99(0x148)][_0x4f3a99(0x2e9)](_0x56627e,_0x2241f8)&&(_0x246a5d[_0x2241f8]=_0x56627e[_0x2241f8]);}return _0x246a5d;},v[_0x5455d2(0x223)](this,arguments);},Bi=function(_0x49f50f,_0x1bbdd8){const _0x15d01c=_0xfad9b1;var _0x143abc={};for(var _0x4b1c51 in _0x49f50f)Object[_0x15d01c(0x18a)]['hasOwnProperty'][_0x15d01c(0x2e9)](_0x49f50f,_0x4b1c51)&&_0x1bbdd8[_0x15d01c(0x2b3)](_0x4b1c51)<0x0&&(_0x143abc[_0x4b1c51]=_0x49f50f[_0x4b1c51]);if(_0x49f50f!=null&&typeof Object[_0x15d01c(0x216)]==_0x15d01c(0x125)){for(var _0x210d86=0x0,_0x4b1c51=Object[_0x15d01c(0x216)](_0x49f50f);_0x210d86<_0x4b1c51[_0x15d01c(0x10a)];_0x210d86++)_0x1bbdd8[_0x15d01c(0x2b3)](_0x4b1c51[_0x210d86])<0x0&&Object[_0x15d01c(0x18a)][_0x15d01c(0x1ac)][_0x15d01c(0x2e9)](_0x49f50f,_0x4b1c51[_0x210d86])&&(_0x143abc[_0x4b1c51[_0x210d86]]=_0x49f50f[_0x4b1c51[_0x210d86]]);}return _0x143abc;},Fe=_0x20e74d(function(_0x40fedb,_0x218d17){const _0x4f398f=_0xfad9b1;var _0x1c08ce=_0x40fedb['icon'],_0x1aeced=_0x40fedb['id'],_0x525a14=_0x40fedb[_0x4f398f(0x255)],_0xf60db=_0x40fedb[_0x4f398f(0x12a)],_0x4d4e9e=Bi(_0x40fedb,[_0x4f398f(0x1a2),'id','className',_0x4f398f(0x12a)]),_0x455e71='univerjs-icon\x20univerjs-icon-'[_0x4f398f(0x29f)](_0x1aeced,'\x20')[_0x4f398f(0x29f)](_0x525a14||'')[_0x4f398f(0xf6)](),_0x273d47=_0x466941('_'[_0x4f398f(0x29f)](Fi()));return Dt(_0x1c08ce,''[_0x4f398f(0x29f)](_0x1aeced),{'defIds':_0x1c08ce['defIds'],'idSuffix':_0x273d47[_0x4f398f(0x1ca)]},v({'ref':_0x218d17,'className':_0x455e71},_0x4d4e9e),_0xf60db);});function Dt(_0x7217f0,_0x502794,_0x5e050b,_0x2881a1,_0x183c04){const _0x1f3737=_0xfad9b1;return _0x1a322c(_0x7217f0[_0x1f3737(0x202)],v(v({'key':_0x502794},ki(_0x7217f0,_0x5e050b,_0x183c04)),_0x2881a1),(Hi(_0x7217f0,_0x5e050b)['children']||[])[_0x1f3737(0x17f)](function(_0x40b580,_0x6434a9){const _0x31b672=_0x1f3737;return Dt(_0x40b580,''[_0x31b672(0x29f)](_0x502794,'-')[_0x31b672(0x29f)](_0x7217f0[_0x31b672(0x202)],'-')[_0x31b672(0x29f)](_0x6434a9),_0x5e050b,void 0x0,_0x183c04);}));}function ki(_0x23af4e,_0x290772,_0x345854){const _0x52a21d=_0xfad9b1;var _0x5b6132=v({},_0x23af4e[_0x52a21d(0x16f)]);_0x345854!=null&&_0x345854[_0x52a21d(0x261)]&&_0x5b6132[_0x52a21d(0x12e)]===_0x52a21d(0x261)&&(_0x5b6132[_0x52a21d(0x12e)]=_0x345854[_0x52a21d(0x261)]),_0x23af4e[_0x52a21d(0x202)]===_0x52a21d(0x1c0)&&_0x5b6132['id']&&(_0x5b6132['id']=_0x5b6132['id']+_0x290772[_0x52a21d(0x275)]),Object[_0x52a21d(0x103)](_0x5b6132)[_0x52a21d(0x110)](function(_0x3615b4){const _0x498e13=_0x52a21d;var _0x427cf8=_0x3615b4[0x0],_0xd4faeb=_0x3615b4[0x1];_0x427cf8===_0x498e13(0x1c0)&&typeof _0xd4faeb==_0x498e13(0x269)&&(_0x5b6132[_0x427cf8]=_0xd4faeb[_0x498e13(0x17e)](/url\(#(.*)\)/,_0x498e13(0x28c)['concat'](_0x290772[_0x498e13(0x275)],')')));});var _0x503346=_0x290772[_0x52a21d(0x123)];return!_0x503346||_0x503346[_0x52a21d(0x10a)]===0x0||(_0x23af4e['tag']==='use'&&_0x5b6132['xlink:href']&&(_0x5b6132['xlink:href']=_0x5b6132[_0x52a21d(0x282)]+_0x290772[_0x52a21d(0x275)]),Object[_0x52a21d(0x103)](_0x5b6132)[_0x52a21d(0x110)](function(_0x345a19){const _0x3e8a48=_0x52a21d;var _0x3bf258=_0x345a19[0x0],_0x17835e=_0x345a19[0x1];typeof _0x17835e==_0x3e8a48(0x269)&&(_0x5b6132[_0x3bf258]=_0x17835e[_0x3e8a48(0x17e)](/url\(#(.*)\)/,_0x3e8a48(0x28c)[_0x3e8a48(0x29f)](_0x290772[_0x3e8a48(0x275)],')')));})),_0x5b6132;}function Hi(_0x23fb26,_0x264eac){const _0x2e0ad7=_0xfad9b1;var _0x321ba9,_0x331cd3=_0x264eac[_0x2e0ad7(0x123)];return!_0x331cd3||_0x331cd3[_0x2e0ad7(0x10a)]===0x0?_0x23fb26:_0x23fb26[_0x2e0ad7(0x202)]===_0x2e0ad7(0x260)&&(!((_0x321ba9=_0x23fb26['children'])===null||_0x321ba9===void 0x0)&&_0x321ba9[_0x2e0ad7(0x10a)])?v(v({},_0x23fb26),{'children':_0x23fb26['children'][_0x2e0ad7(0x17f)](function(_0x4cba02){const _0x558f13=_0x2e0ad7;return typeof _0x4cba02[_0x558f13(0x16f)]['id']==_0x558f13(0x269)&&_0x331cd3&&_0x331cd3[_0x558f13(0x102)](_0x4cba02['attrs']['id'])?v(v({},_0x4cba02),{'attrs':v(v({},_0x4cba02[_0x558f13(0x16f)]),{'id':_0x4cba02['attrs']['id']+_0x264eac[_0x558f13(0x275)]})}):_0x4cba02;})}):_0x23fb26;}function Fi(){const _0x1a04d5=_0xfad9b1;return Math['random']()['toString'](0x24)[_0x1a04d5(0x203)](0x2,0x8);}Fe['displayName']='UniverIcon';var Yi={'tag':'svg','attrs':{'xmlns':_0xfad9b1(0x2b7),'fill':_0xfad9b1(0x19e),'viewBox':'0\x200\x2016\x2016','width':_0xfad9b1(0xea),'height':_0xfad9b1(0xea)},'children':[{'tag':'g','attrs':{'clipPath':_0xfad9b1(0x2ac)},'children':[{'tag':_0xfad9b1(0x2d2),'attrs':{'stroke':_0xfad9b1(0x24d),'d':_0xfad9b1(0x24b),'strokeLinecap':_0xfad9b1(0x221),'strokeLinejoin':_0xfad9b1(0x221),'strokeWidth':1.2}}]},{'tag':_0xfad9b1(0x260),'attrs':{},'children':[{'tag':_0xfad9b1(0x166),'attrs':{'id':_0xfad9b1(0x1d3)},'children':[{'tag':'path','attrs':{'fill':_0xfad9b1(0x207),'d':_0xfad9b1(0x17d)}}]}]}],'defIds':[_0xfad9b1(0x1d3)]},Nt=_0x20e74d(function(_0x334eeb,_0x203d40){const _0x133f65=_0xfad9b1;return _0x1a322c(Fe,Object[_0x133f65(0x150)]({},_0x334eeb,{'id':_0x133f65(0x287),'ref':_0x203d40,'icon':Yi}));});Nt['displayName']='OffLineIcon';var ji={'tag':_0xfad9b1(0x28b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xfad9b1(0x19e),'viewBox':_0xfad9b1(0xf7),'width':_0xfad9b1(0xea),'height':_0xfad9b1(0xea)},'children':[{'tag':'g','attrs':{'clipPath':_0xfad9b1(0x104)},'children':[{'tag':_0xfad9b1(0x2d2),'attrs':{'stroke':_0xfad9b1(0x24d),'d':_0xfad9b1(0xfc),'strokeLinecap':_0xfad9b1(0x221),'strokeLinejoin':_0xfad9b1(0x221),'strokeWidth':1.2}}]},{'tag':_0xfad9b1(0x260),'attrs':{},'children':[{'tag':_0xfad9b1(0x166),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xfad9b1(0x2d2),'attrs':{'fill':_0xfad9b1(0x207),'d':_0xfad9b1(0x17d),'transform':_0xfad9b1(0x1bf)}}]}]}],'defIds':[_0xfad9b1(0x2a5)]},Ut=_0x20e74d(function(_0x577e4d,_0x458778){const _0x53458a=_0xfad9b1;return _0x1a322c(Fe,Object[_0x53458a(0x150)]({},_0x577e4d,{'id':_0x53458a(0x1c6),'ref':_0x458778,'icon':ji}));});Ut[_0xfad9b1(0x2df)]=_0xfad9b1(0x28f);function Vi(_0x39561e){const _0x397fd8=_0xfad9b1;switch(_0x39561e){case _0x1921ba[_0x397fd8(0x12c)]:return _0x397fd8(0x142);case _0x1921ba[_0x397fd8(0x132)]:return _0x397fd8(0x24f);case _0x1921ba[_0x397fd8(0x267)]:return _0x397fd8(0x1f0);case _0x1921ba[_0x397fd8(0x120)]:return _0x397fd8(0x2b4);case _0x1921ba[_0x397fd8(0x2a8)]:case _0x1921ba['AWAITING_WITH_PENDING']:return _0x397fd8(0x1ed);case _0x1921ba[_0x397fd8(0x2d0)]:case _0x1921ba[_0x397fd8(0xf4)]:return _0x397fd8(0x286);}}function Wi(_0x42b777){const _0x54f499=_0xfad9b1,{status$:_0x52afee}=_0x42b777,_0x3e567a=_0x1fabb6(_0x52afee,_0x1921ba['NOT_COLLAB']),_0x1f0d46=_0x5ee084(_0x5edd93),_0x5b62de=_0x5ee084(_0x1ad9f4),_0x3ddd55=_0x3e567a!==_0x1921ba[_0x54f499(0x12c)],_0x5dc0d1=_0x1f0d46['t'](Vi(_0x3e567a)),_0x5b9143=_0x3ddd55?_0x2c6001(Ut,{}):_0x2c6001(Nt,{}),_0x43fc84=_0x2b13f8(()=>{const _0x7c0ae0=_0x54f499;_0x3ddd55||_0x5b62de[_0x7c0ae0(0x259)]();},[_0x3ddd55,_0x5b62de]);function _0x3b9b37(){const _0x57e781=_0x54f499;return _0x57244('div',{'className':_0x57e781(0x14c),'onClick':_0x43fc84,'children':[_0x2c6001(_0x57e781(0x15b),{'className':_0x3a209b(_0x57e781(0x1bd),{'univer-text-green-500':_0x3ddd55,'univer-text-red-500':!_0x3ddd55}),'children':_0x5b9143}),_0x2c6001('div',{'className':_0x57e781(0xef),'children':_0x5dc0d1})]});}return _0x3ddd55?_0x3b9b37():_0x2c6001(_0x38641e,{'title':_0x1f0d46['t']('collab-client.tooltip.reconnect'),'children':_0x3b9b37()});}var Xi=Object['getOwnPropertyDescriptor'],Gi=(_0x3e8890,_0x8615bc,_0x5da4b2,_0x550673)=>{const _0x4d7de2=_0xfad9b1;for(var _0x3a7e38=_0x550673>0x1?void 0x0:_0x550673?Xi(_0x8615bc,_0x5da4b2):_0x8615bc,_0x661817=_0x3e8890[_0x4d7de2(0x10a)]-0x1,_0x469fc8;_0x661817>=0x0;_0x661817--)(_0x469fc8=_0x3e8890[_0x661817])&&(_0x3a7e38=_0x469fc8(_0x3a7e38)||_0x3a7e38);return _0x3a7e38;},ee=(_0x46f23b,_0x2ae808)=>(_0x42194a,_0x5c2bb1)=>_0x2ae808(_0x42194a,_0x5c2bb1,_0x46f23b);function _0x18f4(){const _0x415c91=['params','_lastPointer','uni.network.url-service','univer-flex\x20univer-items-center','onPointerLeave$','_drawTextRange','_messageService','assign','resize','_docStateChangeManagerService','_online','registerComponent','pluginName','collab-rect-range-','OTHER_CLIENT_EDITING','red.300','_roomMembers$','href','div','YUUMI_UNABLE_LOAD_URL','_disabled','VIEW_MAIN','onCommandExecuted','_saveTaskMap','complete','column','searchParams','some','getFocusedUnit','clipPath','symbol','selections','stringify','lineTo','_colorAssignService','_cursorInfo$','_cursors','_updateURLWithCurrentState','attrs','post','_cursor','arc','_transformService','activeSheet$','_hideTimer','_uiPartsService','_render','beginPath','loadOfflineData','CONNECTOR_DATA_TOO_LARGE','disposeUnit','transformRemoteChangeset','M0\x200H16V16H0z','replace','map','PERMISSION_DENIED','runOnServer','_status$','pipe','RECT','getSheetBySheetId','toRgbString','setConfig','SNAPSHOT_HAS_BEEN_REMOVED','skeleton','prototype','storage','transform','getUniverSheetInstance','setInterval','INVITE_CODE_ALREADY_BOUND','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_transformUndoRedoStack','DeleteRangeMoveLeftCommandId','history','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_transformHistoryAndStateStack','registerRenderModule','onTransformChange$','_refRangeService','_hover','addClipboardHook','Failed','unit','contains','none','_memberService','OTHER_CLIENTS_EDITING','_anchorDot','icon','removeParam','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','closePath','_collaborationController','executeCommand','_imageIoService','startColumn','42264JtcBxN','_assignedColors','propertyIsEnumerable','unshift','syncEditingCollabCursor','exhaustSavingTask','get','then','isArray','height','_unitOnClients','_initResize','setStateCache','getParam','top','replaceState','_getSaveTimeout','registerRefRange','labelPosition','univer-mr-2\x20univer-flex\x20univer-text-xl','name','translate(.97)','mask','_updateSubUnitFromURLParams','getCurrentSelections','_urlService','blue.400','jiqing.500','on-line-icon','popstate','ACTIVE_UNIT_EVENT_CHANNEL','body','current','init','_injector','_scheduleHeartbeat','isEditing','getUnhiddenWorksheets','_revisionService','all','UPDATE_CURSOR','off-line-icon_clip0_910_343','currentSkeleton$','collaboration-client-ui.config','cursorInfo','_collabSessionService','m1Prime','redoState','_localeService','getTypeOfUnitAdded$','dispose$','_registerRenderDependencies','setShapeProps','TOO_MANY_REQUESTS','...','YUUMI_ASYNCIO_CANCELLED','1030IIJitR','transformIMECache','roomMembers','RemoveColCommandId','currentTheme$','_entities','NO_OTHER_CLIENTS_EDITING','_labelPosition','pushState','getSkeleton','YUUMI_RATE_OVER_LIMIT','collabStatus.syncing','_docTransformSelectionsService','UNDEFINED','collabStatus.fetchMiss','has','dispose','getViewport','_docTransformIMECacheService','font','rgba(255,\x20255,\x20255,\x200.01)','_getSessionTicket','executionId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_univerInstanceService','UNIVER_DOC','MUTATION','_handleJoinEvent','_setupSubUnitSync','min','backgroundColor','413744LxTRcG','tag','substring','fillRule','getCollabCursors$','getValue','white','onMouseMove','_createSocketURL','INTERNAL_ERROR','_removeCollabCursors','setUndoRedoMutationParamsCache','getAncestorScale','APPLY_PERMISSION_DENIED','InsertRangeMoveRightCommandId','_selfUnitIDs','_handleHeartbeatEvent','memberID','subscribeEvent','delete','updateOfflineData','getOwnPropertySymbols','permission.content','_collabCursorController','_init','mutations','_removeClearOtherTimer','_saveCache','getUnitId','_shapes','YUUMI_NO_CUBOID_FOR_QUESTION','type','round','_getMergeRange','apply','subunit','getOffsetConfig','LICENSE_MAX_UNITS_EXCEEDED','DeleteRangeMoveUpCommandId','_scene','_docTransformStateCacheService','EMAIL_HAS_BEEN_BOUND','ranges','_draw','PY_RUNTIME_SCRIPT_ERROR','moveTo','ALREADY_EXISTS','_startSheetCollabCursor','APPLY_DUPLICATED','saveOfflineData','SOCKET_FAILED_RETRY','UNAUTHENTICATED','registerBeforeClose','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNRECOGNIZED','_getSheetObject','_initStatusListener','parse','_session','64262UmXzvn','addHandlerCallback','row','getRangePointData','Error','_backgroundColor','_docSyncEditingCollabCursorService','onStarting','getMemberID','addObject','1qwREWl','unitId','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_document','_id','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','JOIN_ROOM_FAILED','currentColor','setParam','collabStatus.conflict','_hovered','flatMap','selection','findNodePositionByCharIndex','_renderManagerService','className','#FFF','color','result','reconnect','requireSession','search','transformStateCache','_setupBeforeClosingHandler','_eventUnsubscribe','setItem','defs','colorChannel1','_collaborationUIEventService','SOCKET_FAILED','enableLocalCache','toString','hovered','FETCH_MISS','split','string','USERS_LEAVE','INVALID_ARGUMENT','UNIVER_SHEET','bottom','_config','imageSourceType','_anchor','_httpService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_initEntityListener','SUBMIT_CHANGESET_TIMEOUT','idSuffix','runId','[CollaborationDataLoaderController]','code','location','_color','_localCacheService','_docSkeleton','Warning','collaboration.closeRoom','_transformPreviousActiveRange','_getAnchorBounding','_handleEvent','xlink:href','getSheetId','_onCursorDelete','_scheduleClearOtherTimer','collabStatus.synced','off-line-icon','_toggleOnline','YUUMI_ALL_TABLES_IS_INVALID','SNAPSHOT_INVALID_SNAPSHOT','svg','url(#$1','_configService','entityInit$','OnLineIcon','_onCursorUpdate','_drawAnchor','_doCreateSocket','_docClipboardService','show','fillStyle','createInstance','COMPLETION_FINISHED','YUUMI_SUBSCRIPTION_NOT_FOUND','USER_NOT_INVITED_CODE','_textBubble','find','_handleLeaveEvent','collaboration-client.offline-data-not-saved','_onRefRangeChange','concat','black','_collabCursorState$','clearTimeout','getDocRanges','getOwnPropertyDescriptor','on-line-icon_clip0_910_349','newValue','_initCommandExecutedListener','AWAITING','_syncEditingCollabCursorService','subUnitId','sessionStatus$','url(#off-line-icon_clip0_910_343)','measureText','getStateCache','asObservable','yellow.400','setAlpha','endColumn','indexOf','collabStatus.notCollab','_registerDependencies','_name','http://www.w3.org/2000/svg','text','_colorIndex','roomMembers$','transformSelections','fillText','LICENSE_DISTRO_REJECTED','INVALID_INVITE_CODE','transformByState','_dataLoaderService','_refreshCollabCursors','getItem','onPointerEnter$','width','TEXT','_localStorageService','whenReady','getConfig','_commandService','LICENSE_EXPORT_SIZE_EXCEEDED','permission.title','textRanges','with','YUUMI_TABLE_NOT_FOUND_IN_UNIT','4434dYYJqx','SYNCED','setTimeout','path','_sheetSkeletonManagerService','defineProperty','collabCursorState$','ticket','unitID','next','_updateLocalCursor','getCurrentUnitForType','YUUMI_CONNECTOR_URL_NOT_FOUND','ONLINE','subscribe','drawWith','displayName','_ensureSubject','isActive','source','disposeWithMe','_themeService','_initStatusComponent','origin','docStateChange$','m2Prime','call','_updateCollabCursors','YUUMI_URL_COL_OUT_OF_RANGE','onRendered','getMergeData','40FogQwS','cursorInfo$','getVpScrollXYInfoByPosToVp','_cachedData','_context','NOT_FOUND','error','1em','clearInterval','_instanceService','_send','YUUMI_AI_RUN_FAILED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','doc.mutation.rich-text-editing','28ZvCOGd','EMAIL_VERIFY_CODE_MISMATCH','_scheduleSaving','PENDING','LICENSE_IMPORT_SIZE_EXCEEDED','trim','0\x200\x2017\x2016','/run/','push','evenodd','_range','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','save','_toggleOffline','send','collaboration.single-unit.warning','makeDirty','includes','entries','url(#on-line-icon_clip0_910_349)','_initDependencies','deepClone','177640gduPHE','CHANGESET_REVISION_CONFILICT','getRenderById','length','ENSURE_SNAPSHOT_EXECUTION','_drawRectRange','editingUnit','set','_getScale','forEach','setActiveRange','status$','LOGIN_FAILED','getCurrent','230754KDBtMM','MoveRangeCommandId','Unknown\x20user','eventID','values','purple.300','getActiveSheet','hide','collab-text-range-','assignAColorForMemberID','_unitStatus','NOT_COLLAB','debug','restore','defIds','wsSessionTicketUrl','function','_cursorShapes','APPLY_REJECT','size','urlChange$','extend','getUndoRedoMutationParamsCache','OFFLINE','sheetID','fill','saveImage','_initEvent','_heartbeatTimer','CONFLICT','_docSkeletonManagerService','saveTaskMap','transformMutation','data','WECHAT_HAS_BEEN_BOUND','session.connection-failed','_entityInit$','green.600','replaceDocRanges','max','_clearOtherTimers','_logService','_handleHover','undoState','from','collabStatus.offline','InsertRowCommandId','1186533sIIKCT','triggerDblclick','event$','unsubscribe','hasOwnProperty'];_0x18f4=function(){return _0x415c91;};return _0x18f4();}let se=class extends _0x3189c2{constructor(_0x14d6e9,_0x521ceb,_0x56b4a7,_0x3d368d){const _0x45613d=_0xfad9b1;super(),_(this,_0x45613d(0x182),new _0x756108(_0x1921ba[_0x45613d(0x120)])),(this['_univerInstanceService']=_0x14d6e9,this[_0x45613d(0x1cc)]=_0x521ceb,this[_0x45613d(0x1a6)]=_0x56b4a7,this[_0x45613d(0x176)]=_0x3d368d,this[_0x45613d(0x2e5)](),this[_0x45613d(0x239)]());}[_0xfad9b1(0x239)](){const _0x5377e1=_0xfad9b1;this[_0x5377e1(0x2e3)](this[_0x5377e1(0x1fa)]['focused$']['pipe'](_0x1a7f4e(()=>{const _0x1abff6=_0x5377e1,_0xea5dfb=this[_0x1abff6(0x1fa)][_0x1abff6(0x165)]();return _0xea5dfb?this[_0x1abff6(0x1a6)]['getCollabEntity$'](_0xea5dfb[_0x1abff6(0x21d)]()):_0xc18b12(null);}),_0x1a7f4e(_0x300e13=>_0x300e13?_0x300e13[_0x5377e1(0x112)]:_0xc18b12(_0x1921ba[_0x5377e1(0x120)])))[_0x5377e1(0x2dd)](_0x4a2828=>{const _0x2d9189=_0x5377e1;this[_0x2d9189(0x182)][_0x2d9189(0x2d8)](_0x4a2828);}));}[_0xfad9b1(0x2e5)](){const _0x3fdb8d=_0xfad9b1;this['disposeWithMe'](this[_0x3fdb8d(0x176)][_0x3fdb8d(0x154)](_0x1cc9c3['HEADER_MENU'],()=>_0x52842f(Ki({'status$':this['_status$']['asObservable']()}),this['_injector'])));}};se=Gi([ee(0x0,_0x18bc32),ee(0x1,_0x4d8ee1(_0x5e762e)),ee(0x2,_0x4d8ee1(_0x418664)),ee(0x3,_0x92834)],se);function Ki(_0x40f208){const {status$:_0x5cbf1f}=_0x40f208;return function(){return _0x2c6001(Wi,{'status$':_0x5cbf1f});};}var zi=Object[_0xfad9b1(0x2a4)],Ji=(_0x142b34,_0x33920f,_0x24ddac,_0x23455f)=>{for(var _0x2e2edd=_0x23455f>0x1?void 0x0:_0x23455f?zi(_0x33920f,_0x24ddac):_0x33920f,_0x5b6fdf=_0x142b34['length']-0x1,_0x2ef989;_0x5b6fdf>=0x0;_0x5b6fdf--)(_0x2ef989=_0x142b34[_0x5b6fdf])&&(_0x2e2edd=_0x2ef989(_0x2e2edd)||_0x2e2edd);return _0x2e2edd;},B=(_0x9e372f,_0x2c7d46)=>(_0x8969f1,_0x3a59b1)=>_0x2c7d46(_0x8969f1,_0x3a59b1,_0x9e372f);let ie=class extends _0x3189c2{constructor(_0x294dbe,_0x187db7,_0x84b557,_0x831632,_0x2d4b76,_0x21e245){const _0x40914f=_0xfad9b1;super(),this['_beforeCloseService']=_0x294dbe,this['_localCacheService']=_0x187db7,this[_0x40914f(0x262)]=_0x84b557,this[_0x40914f(0x14f)]=_0x831632,this['_notificationService']=_0x2d4b76,this[_0x40914f(0x1da)]=_0x21e245,this['_setupBeforeClosingHandler'](),this[_0x40914f(0x130)]();}[_0xfad9b1(0x25d)](){const _0x113f3a=_0xfad9b1;this['disposeWithMe'](this['_beforeCloseService'][_0x113f3a(0x235)](()=>{const _0x3fd47b=_0x113f3a;if(this[_0x3fd47b(0x27b)]['saveTaskMap'][_0x3fd47b(0x128)])return this['_localeService']['t'](_0x3fd47b(0x29d));}));}[_0xfad9b1(0x130)](){const _0x395452=_0xfad9b1;this[_0x395452(0x2e3)](this[_0x395452(0x262)][_0x395452(0x146)][_0x395452(0x2dd)](_0x70cb05=>{const _0x47ba19=_0x395452;_0x70cb05['id']===_0x311d6f[_0x47ba19(0x157)]&&this[_0x47ba19(0x14f)][_0x47ba19(0x294)]({'type':_0x1faad1[_0x47ba19(0x27d)],'content':this['_localeService']['t'](_0x47ba19(0x100))}),_0x70cb05['id']===_0x311d6f['CLOSE_ROOM']&&this[_0x47ba19(0x14f)][_0x47ba19(0x294)]({'type':_0x1faad1[_0x47ba19(0x27d)],'content':this[_0x47ba19(0x1da)]['t'](_0x47ba19(0x27e))}),_0x70cb05['id']===_0x311d6f[_0x47ba19(0x180)]&&this['_notificationService'][_0x47ba19(0x294)]({'title':this[_0x47ba19(0x1da)]['t'](_0x47ba19(0x2cb)),'content':this['_localeService']['t'](_0x47ba19(0x217)),'type':'error','duration':0x0}),_0x70cb05['id']===_0x311d6f[_0x47ba19(0x132)]&&this['_messageService']['show']({'type':_0x1faad1[_0x47ba19(0x240)],'content':this[_0x47ba19(0x1da)]['t'](_0x47ba19(0x27e))+'('+_0x70cb05[_0x47ba19(0x136)]+')'}),_0x70cb05['id']===_0x311d6f[_0x47ba19(0x24c)]&&this[_0x47ba19(0x14f)][_0x47ba19(0x294)]({'type':_0x1faad1[_0x47ba19(0x27d)],'content':this[_0x47ba19(0x1da)]['t'](_0x70cb05[_0x47ba19(0x136)]||'')}),_0x70cb05['id']===_0x311d6f[_0x47ba19(0x233)]&&this[_0x47ba19(0x14f)][_0x47ba19(0x294)]({'type':_0x1faad1[_0x47ba19(0x27d)],'content':this[_0x47ba19(0x1da)]['t']('session.will-retry')}),_0x70cb05['id']===_0x311d6f[_0x47ba19(0x263)]&&this[_0x47ba19(0x14f)][_0x47ba19(0x294)]({'type':_0x1faad1[_0x47ba19(0x240)],'content':this[_0x47ba19(0x1da)]['t'](_0x47ba19(0x138))}),_0x70cb05['id']===_0x311d6f[_0x47ba19(0x274)]&&this[_0x47ba19(0x14f)][_0x47ba19(0x294)]({'type':_0x1faad1[_0x47ba19(0x240)],'content':this[_0x47ba19(0x1da)]['t']('session.collaboration-timeout')});}));}};ie=Ji([B(0x0,_0x4a9f43),B(0x1,_0x11ab6b),B(0x2,_0x4d8ee1(_0x18448a)),B(0x3,_0x15c2c3),B(0x4,_0x49a7dd),B(0x5,_0x4d8ee1(_0x5edd93))],ie);const Zi=_0xfad9b1(0x1d5),et={},Mt=_0x1be22b(_0xfad9b1(0x14b));var Qi=Object[_0xfad9b1(0x2a4)],qi=(_0x5ce4ea,_0x15615a,_0xbc2207,_0x475055)=>{const _0x432fca=_0xfad9b1;for(var _0x5c1aa9=_0x475055>0x1?void 0x0:_0x475055?Qi(_0x15615a,_0xbc2207):_0x15615a,_0x5a89e2=_0x5ce4ea[_0x432fca(0x10a)]-0x1,_0xe2554f;_0x5a89e2>=0x0;_0x5a89e2--)(_0xe2554f=_0x5ce4ea[_0x5a89e2])&&(_0x5c1aa9=_0xe2554f(_0x5c1aa9)||_0x5c1aa9);return _0x5c1aa9;},K=(_0x5c6b24,_0x3240df)=>(_0x1d1741,_0x2c1273)=>_0x3240df(_0x1d1741,_0x2c1273,_0x5c6b24);let ne=class extends _0x1ef804{constructor(_0x45e7d7,_0x109ab7,_0x342189,_0x49cf94,_0x48f5ae){const _0x4f92bd=_0xfad9b1;super(),this[_0x4f92bd(0x1c3)]=_0x45e7d7,this[_0x4f92bd(0x13e)]=_0x109ab7,this[_0x4f92bd(0x2c9)]=_0x342189,this[_0x4f92bd(0x2c0)]=_0x49cf94,_0x48f5ae?_0x48f5ae==null||_0x48f5ae[_0x4f92bd(0x2c7)]()[_0x4f92bd(0x1b1)](()=>this[_0x4f92bd(0x219)]()):(this[_0x4f92bd(0x13e)][_0x4f92bd(0x121)](_0x4f92bd(0x277),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x4f92bd(0x219)]());}async[_0xfad9b1(0x219)](){const _0x442678=_0xfad9b1,_0x5594f8=this[_0x442678(0x1c3)][_0x442678(0x1b7)](_0x442678(0x19c)),_0x174764=this['_urlService'][_0x442678(0x1b7)](_0x442678(0x220)),_0x1891c9=this[_0x442678(0x1c3)][_0x442678(0x1b7)](_0x442678(0x224));if(!_0x5594f8||!_0x174764){this['_logService'][_0x442678(0x121)](_0x442678(0x277),_0x442678(0x236));return;}const _0xdd0545=await this[_0x442678(0x2c0)]['loadUnit'](_0x5594f8,Number(_0x174764),_0x1891c9);_0xdd0545&&_0xdd0545 instanceof _0x322af6&&this[_0x442678(0x1fe)](_0xdd0545);}async[_0xfad9b1(0x1fe)](_0x127448){const _0x7ac2=_0xfad9b1;await this['_updateSubUnitFromURLParams'](_0x127448),_0x127448[_0x7ac2(0x174)][_0x7ac2(0x183)](_0x205a75(this[_0x7ac2(0x1dc)]))[_0x7ac2(0x2dd)](_0x86537e=>{const _0x593c5d=_0x7ac2;_0x86537e&&this[_0x593c5d(0x16e)](_0x86537e);}),this[_0x7ac2(0x1c3)][_0x7ac2(0x129)][_0x7ac2(0x183)](_0x205a75(this[_0x7ac2(0x1dc)]))[_0x7ac2(0x2dd)](()=>this['_updateSubUnitFromURLParams'](_0x127448));}[_0xfad9b1(0x16e)](_0x31d420,_0x13f65e=!0x1){const _0x320c16=_0xfad9b1,_0x54cd7a=this[_0x320c16(0x1c3)][_0x320c16(0x1b7)](_0x320c16(0x224));_0x31d420['getSheetId']()!==_0x54cd7a&&this[_0x320c16(0x1c3)][_0x320c16(0x24e)]('subunit',_0x31d420[_0x320c16(0x283)](),_0x13f65e);}async[_0xfad9b1(0x1c1)](_0x7ef561){const _0x565e1a=_0xfad9b1;var _0xd6dcc7;const _0x42321a=this[_0x565e1a(0x1c3)][_0x565e1a(0x1b7)](_0x565e1a(0x224));if(!_0x42321a||!_0x7ef561[_0x565e1a(0x185)](_0x42321a)){const _0x201180=_0x7ef561[_0x565e1a(0x1cf)]()[0x0],_0x3f2422=_0x7ef561[_0x565e1a(0x185)](_0x201180);if(!_0x3f2422)return;this[_0x565e1a(0x16e)](_0x3f2422,!0x0),await this[_0x565e1a(0x2c9)][_0x565e1a(0x1a7)](_0x2c8425['id'],{'unitId':_0x7ef561[_0x565e1a(0x21d)](),'subUnitId':_0x201180});return;}((_0xd6dcc7=_0x7ef561['getActiveSheet']())==null?void 0x0:_0xd6dcc7[_0x565e1a(0x283)]())!==_0x42321a&&await this[_0x565e1a(0x2c9)][_0x565e1a(0x1a7)](_0x2c8425['id'],{'unitId':_0x7ef561[_0x565e1a(0x21d)](),'subUnitId':_0x42321a});}};ne=qi([K(0x0,Mt),K(0x1,_0x2cadb0),K(0x2,_0x107937),K(0x3,_0x4d8ee1(_0x3580f3)),K(0x4,_0x29307a(_0x6fe795))],ne);var en=Object[_0xfad9b1(0x2a4)],tn=(_0x32e9e0,_0xaa0a41,_0x162f6d,_0x515ca9)=>{const _0x1c8c95=_0xfad9b1;for(var _0x1aa488=_0x515ca9>0x1?void 0x0:_0x515ca9?en(_0xaa0a41,_0x162f6d):_0xaa0a41,_0x8441=_0x32e9e0[_0x1c8c95(0x10a)]-0x1,_0x6eba11;_0x8441>=0x0;_0x8441--)(_0x6eba11=_0x32e9e0[_0x8441])&&(_0x1aa488=_0x6eba11(_0x1aa488)||_0x1aa488);return _0x1aa488;},tt=(_0x23b760,_0x5ecfa1)=>(_0x4d19f6,_0x460428)=>_0x5ecfa1(_0x4d19f6,_0x460428,_0x23b760);let re=class{constructor(_0xf91331,_0x2d1e73){const _0x1e47a7=_0xfad9b1;this[_0x1e47a7(0x173)]=_0xf91331,this[_0x1e47a7(0x254)]=_0x2d1e73;}['transformIMECache'](_0x19f25c){const _0x14947b=_0xfad9b1;this[_0x14947b(0x191)](_0x19f25c),this[_0x14947b(0x27f)](_0x19f25c);}[_0xfad9b1(0x17c)](_0x30ec19){const _0x2496b7=_0xfad9b1,{unitID:_0x765e1}=_0x30ec19,_0x513698=this[_0x2496b7(0x254)][_0x2496b7(0x109)](_0x765e1)[_0x2496b7(0x2cd)](_0x26279b),{redoCache:_0x32f76e}=_0x513698[_0x2496b7(0x12b)]();if(_0x32f76e[_0x2496b7(0x10a)]===0x0)return _0x30ec19;let _0x1d0021=_0x15f292['deepClone'](_0x30ec19[_0x2496b7(0x21a)][0x0]);for(let _0x5ecfa6=0x0;_0x5ecfa6<_0x32f76e['length'];_0x5ecfa6++){const _0x3fe24f={'id':_0x2496b7(0xf0),'params':{..._0x32f76e[_0x5ecfa6]}},_0x40e796=this[_0x2496b7(0x173)][_0x2496b7(0x135)](_0x1d0021,_0x3fe24f,!0x1);if(_0x1125fb(_0x40e796))throw _0x40e796[_0x2496b7(0xe9)];_0x1d0021=_0x40e796[_0x2496b7(0x1d8)];}return{..._0x15f292[_0x2496b7(0x106)](_0x30ec19),'mutations':[_0x1d0021]};}[_0xfad9b1(0x191)](_0x23614b){const _0x10db09=_0xfad9b1,{unitID:_0x1ed115}=_0x23614b,_0x52c541=this[_0x10db09(0x254)]['getRenderById'](_0x1ed115)[_0x10db09(0x2cd)](_0x26279b),{undoCache:_0x39da5a,redoCache:_0x2a01d0}=_0x52c541[_0x10db09(0x12b)]();if(_0x39da5a[_0x10db09(0x10a)]===0x0||_0x2a01d0['length']===0x0)return;const _0x2730cb=[],_0x495b84=[];let _0x3cc107=_0x15f292[_0x10db09(0x106)](_0x23614b[_0x10db09(0x21a)][0x0]),_0x5779f6=_0x15f292[_0x10db09(0x106)](_0x23614b['mutations'][0x0]);for(let _0x177318=_0x39da5a[_0x10db09(0x10a)]-0x1;_0x177318>=0x0;_0x177318--){const _0x3583a5={'id':_0x10db09(0xf0),'params':{..._0x39da5a[_0x177318]}},_0x4caad8={'id':_0x10db09(0xf0),'params':{..._0x2a01d0[_0x177318]}},_0x365862=this[_0x10db09(0x173)]['transformMutation'](_0x3cc107,_0x3583a5,!0x1),_0x3fa2e4=this[_0x10db09(0x173)][_0x10db09(0x135)](_0x5779f6,_0x4caad8,!0x1);if(_0x1125fb(_0x365862))throw _0x365862[_0x10db09(0xe9)];if(_0x1125fb(_0x3fa2e4))throw _0x3fa2e4[_0x10db09(0xe9)];_0x2730cb[_0x10db09(0x1ad)](_0x365862[_0x10db09(0x2e8)][_0x10db09(0x149)]),_0x495b84['unshift'](_0x3fa2e4[_0x10db09(0x2e8)][_0x10db09(0x149)]),_0x3cc107=_0x365862[_0x10db09(0x1d8)],_0x5779f6=_0x3fa2e4['m1Prime'];}_0x52c541[_0x10db09(0x20c)]({'undoCache':_0x2730cb,'redoCache':_0x495b84});}['_transformPreviousActiveRange'](_0x548efb){const _0x33c5c2=_0xfad9b1,{unitID:_0x343bf3}=_0x548efb,_0x32ec05=this[_0x33c5c2(0x254)][_0x33c5c2(0x109)](_0x343bf3)[_0x33c5c2(0x2cd)](_0x26279b),_0x20ea27=_0x32ec05['getActiveRange']();if(_0x20ea27==null)return;const _0x850017=[{'id':_0x33c5c2(0xf0),'params':{'unitId':_0x548efb['unitID'],'actions':null,'textRanges':[_0x20ea27]}}],_0x35a5b6=this['_transformService']['transformMutationsWithChangeset'](_0x548efb,_0x850017);if(!_0x2110ff(_0x35a5b6))throw _0x35a5b6['error'];const _0x26e86c=_0x35a5b6[_0x33c5c2(0x2e8)][0x0]['params'][_0x33c5c2(0x2cc)];Array['isArray'](_0x26e86c)&&_0x26e86c['length']&&_0x32ec05[_0x33c5c2(0x111)](_0x26e86c[0x0]);}};re=tn([tt(0x0,_0x19bd5b),tt(0x1,_0x154092)],re);var sn=Object[_0xfad9b1(0x2a4)],nn=(_0x29c45f,_0x1f9a90,_0x1564eb,_0x182bd4)=>{const _0x1bce54=_0xfad9b1;for(var _0xf5bfcd=_0x182bd4>0x1?void 0x0:_0x182bd4?sn(_0x1f9a90,_0x1564eb):_0x1f9a90,_0x158578=_0x29c45f[_0x1bce54(0x10a)]-0x1,_0x3d673a;_0x158578>=0x0;_0x158578--)(_0x3d673a=_0x29c45f[_0x158578])&&(_0xf5bfcd=_0x3d673a(_0xf5bfcd)||_0xf5bfcd);return _0xf5bfcd;},Ce=(_0x370670,_0x593041)=>(_0x5bb353,_0x4fb843)=>_0x593041(_0x5bb353,_0x4fb843,_0x370670);let oe=class{constructor(_0x917e3c,_0x492e16,_0x1b8579){const _0x56c999=_0xfad9b1;this[_0x56c999(0x1cc)]=_0x917e3c,this['_transformService']=_0x492e16,this[_0x56c999(0x152)]=_0x1b8579;}[_0xfad9b1(0x25c)](_0x48c401){const _0x4750df=_0xfad9b1;this[_0x4750df(0x195)](_0x48c401);}[_0xfad9b1(0x17c)](_0x430a07){const _0x12110a=_0xfad9b1,{unitID:_0x38fd53}=_0x430a07,{collaboration:_0x3c2914}=this[_0x12110a(0x152)][_0x12110a(0x2ae)](_0x38fd53);if(_0x3c2914[_0x12110a(0x10a)]===0x0)return _0x430a07;let _0x135459=_0x15f292[_0x12110a(0x106)](_0x430a07['mutations'][0x0]);for(let _0x4e0ca7=0x0;_0x4e0ca7<_0x3c2914[_0x12110a(0x10a)];_0x4e0ca7++){const _0x250fec={'id':_0x12110a(0xf0),'params':{'unitId':_0x3c2914[_0x4e0ca7]['unitId'],..._0x3c2914[_0x4e0ca7][_0x12110a(0x1d9)]}},_0x1ed12d=this[_0x12110a(0x173)][_0x12110a(0x135)](_0x135459,_0x250fec,!0x1);if(_0x1125fb(_0x1ed12d))throw _0x1ed12d[_0x12110a(0xe9)];_0x135459=_0x1ed12d[_0x12110a(0x1d8)];}return{..._0x15f292[_0x12110a(0x106)](_0x430a07),'mutations':[_0x135459]};}['_transformHistoryAndStateStack'](_0x13992e){const _0x24f543=_0xfad9b1,{unitID:_0x539fc5}=_0x13992e,{history:_0x2bfe33,collaboration:_0x3b992a}=this[_0x24f543(0x152)]['getStateCache'](_0x539fc5);if(_0x2bfe33['length']===0x0&&_0x3b992a[_0x24f543(0x10a)]===0x0)return;const _0x1020bb=[],_0x498405=[];let _0x459c83=_0x15f292[_0x24f543(0x106)](_0x13992e[_0x24f543(0x21a)][0x0]),_0x4a634b=_0x15f292[_0x24f543(0x106)](_0x13992e[_0x24f543(0x21a)][0x0]);for(let _0x587882=_0x2bfe33['length']-0x1;_0x587882>=0x0;_0x587882--){const _0x1c466c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2bfe33[_0x587882][_0x24f543(0x247)],..._0x2bfe33[_0x587882][_0x24f543(0x140)]}},_0x531ee6={'id':_0x24f543(0xf0),'params':{'unitId':_0x2bfe33[_0x587882][_0x24f543(0x247)],..._0x2bfe33[_0x587882]['redoState']}},_0x1278b5=this['_transformService'][_0x24f543(0x135)](_0x459c83,_0x1c466c,!0x1),_0x14d1d5=this[_0x24f543(0x173)][_0x24f543(0x135)](_0x4a634b,_0x531ee6,!0x1);if(_0x1125fb(_0x1278b5))throw _0x1278b5[_0x24f543(0xe9)];if(_0x1125fb(_0x14d1d5))throw _0x14d1d5['error'];_0x1020bb[_0x24f543(0x1ad)]({..._0x2bfe33[_0x587882],'undoState':_0x1278b5[_0x24f543(0x2e8)]['params'],'redoState':_0x14d1d5[_0x24f543(0x2e8)][_0x24f543(0x149)]}),_0x459c83=_0x1278b5['m1Prime'],_0x4a634b=_0x14d1d5['m1Prime'];}_0x459c83=_0x15f292[_0x24f543(0x106)](_0x13992e[_0x24f543(0x21a)][0x0]),_0x4a634b=_0x15f292[_0x24f543(0x106)](_0x13992e['mutations'][0x0]);for(let _0x1a6ddc=_0x3b992a[_0x24f543(0x10a)]-0x1;_0x1a6ddc>=0x0;_0x1a6ddc--){const _0x36cb9f={'id':_0x24f543(0xf0),'params':{'unitId':_0x3b992a[_0x1a6ddc][_0x24f543(0x247)],..._0x3b992a[_0x1a6ddc]['undoState']}},_0x392037={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b992a[_0x1a6ddc][_0x24f543(0x247)],..._0x3b992a[_0x1a6ddc][_0x24f543(0x1d9)]}},_0x23b1ca=this[_0x24f543(0x173)]['transformMutation'](_0x459c83,_0x36cb9f,!0x1),_0x40060e=this['_transformService'][_0x24f543(0x135)](_0x4a634b,_0x392037,!0x1);if(_0x1125fb(_0x23b1ca))throw _0x23b1ca[_0x24f543(0xe9)];if(_0x1125fb(_0x40060e))throw _0x40060e[_0x24f543(0xe9)];_0x498405[_0x24f543(0x1ad)]({..._0x3b992a[_0x1a6ddc],'undoState':_0x23b1ca[_0x24f543(0x2e8)][_0x24f543(0x149)],'redoState':_0x40060e[_0x24f543(0x2e8)][_0x24f543(0x149)]}),_0x459c83=_0x23b1ca[_0x24f543(0x1d8)],_0x4a634b=_0x40060e[_0x24f543(0x1d8)];}this[_0x24f543(0x152)][_0x24f543(0x1b6)](_0x539fc5,{'history':_0x1020bb,'collaboration':_0x498405});}};oe=nn([Ce(0x0,_0x4d8ee1(_0x5e762e)),Ce(0x1,_0x19bd5b),Ce(0x2,_0x4d8ee1(_0x7e8c77))],oe);var rn=Object[_0xfad9b1(0x2a4)],on=(_0xfcbd8d,_0x523851,_0x200b46,_0x40ab7b)=>{const _0xa82288=_0xfad9b1;for(var _0x2e924b=_0x40ab7b>0x1?void 0x0:_0x40ab7b?rn(_0x523851,_0x200b46):_0x523851,_0x212a5e=_0xfcbd8d[_0xa82288(0x10a)]-0x1,_0x26b799;_0x212a5e>=0x0;_0x212a5e--)(_0x26b799=_0xfcbd8d[_0x212a5e])&&(_0x2e924b=_0x26b799(_0x2e924b)||_0x2e924b);return _0x2e924b;},st=(_0xf84c4b,_0x2e39a8)=>(_0x583a2b,_0x485780)=>_0x2e39a8(_0x583a2b,_0x485780,_0xf84c4b);let ae=class{constructor(_0x3a8e1e,_0x23062b){const _0x3ab457=_0xfad9b1;this[_0x3ab457(0x1cc)]=_0x3a8e1e,this[_0x3ab457(0x173)]=_0x23062b;}[_0xfad9b1(0x2bb)](_0x3075c9){const _0xed6aea=_0xfad9b1;var _0x506e5b;const _0x523dec=this[_0xed6aea(0x1cc)][_0xed6aea(0x1b0)](_0x4736f8),_0x3ee554=(_0x506e5b=_0x523dec[_0xed6aea(0x2a3)]())!=null?_0x506e5b:[];if(_0x3ee554[_0xed6aea(0x10a)]===0x0)return;const _0x2b8f26=_0x3075c9[_0xed6aea(0x2d7)],_0x40b041=[{'id':_0xed6aea(0xf0),'params':{'unitId':_0x2b8f26,'actions':null,'textRanges':_0x3ee554}}],_0x373cd6=this['_transformService']['transformMutationsWithChangeset'](_0x3075c9,_0x40b041);if(!_0x2110ff(_0x373cd6))throw _0x373cd6[_0xed6aea(0xe9)];const _0x319d61=_0x373cd6['m2Prime'][0x0][_0xed6aea(0x149)][_0xed6aea(0x2cc)];Array[_0xed6aea(0x1b2)](_0x319d61)&&_0x319d61[_0xed6aea(0x10a)]&&_0x523dec[_0xed6aea(0x13b)](_0x319d61,{'unitId':_0x2b8f26,'subUnitId':_0x2b8f26},!0x1);}};ae=on([st(0x0,_0x4d8ee1(_0x5e762e)),st(0x1,_0x19bd5b)],ae);function _0x2617(_0x2e6c4f,_0x4e0dc4){const _0x18f4bb=_0x18f4();return _0x2617=function(_0x261730,_0x1d29f8){_0x261730=_0x261730-0xe1;let _0x20d436=_0x18f4bb[_0x261730];return _0x20d436;},_0x2617(_0x2e6c4f,_0x4e0dc4);}var an=Object['getOwnPropertyDescriptor'],cn=(_0xed1e2c,_0x4b75ed,_0x2b2fb9,_0x2fb1d3)=>{const _0x41006d=_0xfad9b1;for(var _0x10b089=_0x2fb1d3>0x1?void 0x0:_0x2fb1d3?an(_0x4b75ed,_0x2b2fb9):_0x4b75ed,_0x3f7bf0=_0xed1e2c[_0x41006d(0x10a)]-0x1,_0x4914fa;_0x3f7bf0>=0x0;_0x3f7bf0--)(_0x4914fa=_0xed1e2c[_0x3f7bf0])&&(_0x10b089=_0x4914fa(_0x10b089)||_0x10b089);return _0x10b089;},N=(_0x56ebcf,_0x190d4e)=>(_0x134f18,_0x2a6b76)=>_0x190d4e(_0x134f18,_0x2a6b76,_0x56ebcf);let ce=class extends _0x3189c2{constructor(_0xd7c571,_0x214d7b,_0x1f5d32,_0x8e9ed1,_0x3860c4,_0x352bd5,_0x31587e,_0x2cc0ca){const _0xb80ac5=_0xfad9b1;super(),_(this,_0xb80ac5(0x182),new _0x756108(_0x1921ba[_0xb80ac5(0x120)])),(this[_0xb80ac5(0x152)]=_0xd7c571,this[_0xb80ac5(0x1a6)]=_0x214d7b,this['_docTransformIMECacheService']=_0x1f5d32,this[_0xb80ac5(0x229)]=_0x8e9ed1,this['_docTransformSelectionsService']=_0x3860c4,this[_0xb80ac5(0x242)]=_0x352bd5,this['_messageService']=_0x31587e,this[_0xb80ac5(0x1da)]=_0x2cc0ca,this[_0xb80ac5(0x273)]());}[_0xfad9b1(0x273)](){const _0x160d0b=_0xfad9b1;this[_0x160d0b(0x2e3)](this['_collaborationController'][_0x160d0b(0x28e)][_0x160d0b(0x2dd)](_0x2b2da3=>{const _0x21b607=_0x160d0b,_0x5b113c=this[_0x21b607(0x152)][_0x21b607(0x2e7)][_0x21b607(0x2dd)](_0x4058c2=>{const _0x46690a=_0x21b607;if(_0x4058c2==null)return;const {unitId:_0x4dd36f,redoState:_0x25afd8,commandId:_0x4159b3}=_0x4058c2;if(_0x4dd36f!==_0x2b2da3['unitID'])return;const _0x12d299={'id':_0x4159b3,'type':_0x1c42fb[_0x46690a(0x1fc)],'params':{'unitId':_0x4dd36f,'actions':_0x25afd8['actions'],'textRanges':null}};_0x2b2da3['onLocalMutation'](_0x12d299);});if(_0x2b2da3[_0x21b607(0x2e3)](_0x5b113c),_0x2b2da3 instanceof _0x84ab69){const _0x3a39b0={'onTransformIME':_0x189cf6=>this[_0x21b607(0x1f4)][_0x21b607(0x1e3)](_0x189cf6),'onTransformState':_0x1d8a75=>this[_0x21b607(0x229)][_0x21b607(0x25c)](_0x1d8a75),'onTransformSelections':_0x3dcf46=>this[_0x21b607(0x1ee)]['transformSelections'](_0x3dcf46),'onSyncEditingCollabCursor':_0x1e985c=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x1e985c),'onTransformRemoteChangesetByIMECache':_0x15ea71=>this[_0x21b607(0x1f4)][_0x21b607(0x17c)](_0x15ea71),'onTransformRemoteChangesetByStateCache':_0xf9ed3c=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0xf9ed3c)};_0x2b2da3[_0x21b607(0x23d)](_0x3a39b0);}}));}};ce=cn([N(0x0,_0x4d8ee1(_0x7e8c77)),N(0x1,_0x4d8ee1(_0x418664)),N(0x2,_0x4d8ee1(re)),N(0x3,_0x4d8ee1(oe)),N(0x4,_0x4d8ee1(ae)),N(0x5,_0x4d8ee1(He)),N(0x6,_0x15c2c3),N(0x7,_0x4d8ee1(_0x5edd93))],ce);var ln=Object[_0xfad9b1(0x2a4)],_n=(_0x27172a,_0x30cd79,_0x1d588d,_0x4f6061)=>{for(var _0x28fbf3=_0x4f6061>0x1?void 0x0:_0x4f6061?ln(_0x30cd79,_0x1d588d):_0x30cd79,_0x2d4ea9=_0x27172a['length']-0x1,_0x11cd1f;_0x2d4ea9>=0x0;_0x2d4ea9--)(_0x11cd1f=_0x27172a[_0x2d4ea9])&&(_0x28fbf3=_0x11cd1f(_0x28fbf3)||_0x28fbf3);return _0x28fbf3;},Ee=(_0x334f2a,_0x45268d)=>(_0xe27b7a,_0x1ab05e)=>_0x45268d(_0xe27b7a,_0x1ab05e,_0x334f2a);let we=class extends _0x3189c2{constructor(_0x1f0418,_0x182f9a,_0x4b816e){const _0x48e274=_0xfad9b1;super(),_(this,_0x48e274(0xe6),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x48e274(0x15d),!0x1),(this[_0x48e274(0x28d)]=_0x1f0418,this[_0x48e274(0x2c6)]=_0x182f9a,this[_0x48e274(0x1d0)]=_0x4b816e);}['disableLocalCache'](){const _0x2bf0b6=_0xfad9b1;this[_0x2bf0b6(0x15d)]=!0x0;}[_0xfad9b1(0x264)](){this['_disabled']=!0x1;}get[_0xfad9b1(0x134)](){return this['_saveTaskMap'];}[_0xfad9b1(0x1f2)](){const _0x3ce2df=_0xfad9b1;this['exhaustSavingTask']()['then'](()=>super[_0x3ce2df(0x1f2)]());}async[_0xfad9b1(0x179)](_0x167f62){const _0x435143=_0xfad9b1;return this[_0x435143(0x15d)]?null:this[_0x435143(0x2c6)][_0x435143(0x2c2)](_0x2f4fcc(_0x167f62));}async[_0xfad9b1(0x232)](_0x166918,_0x519f9c){const _0x58529f=_0xfad9b1;return!!this[_0x58529f(0x2c6)][_0x58529f(0x25f)](_0x166918,_0x519f9c);}[_0xfad9b1(0x215)](_0x36270f,_0x3873aa,_0x30550b,_0x386b05){const _0xef3485=_0xfad9b1,_0xec5e5c=this[_0xef3485(0x1d0)]['getCurrentRevOfUnit'](_0x36270f);this[_0xef3485(0xe6)][_0xef3485(0x10e)](_0x36270f,{'unitID':_0x36270f,'type':_0x3873aa,'awaitingChangeset':_0x30550b,'mutations':_0x386b05,'rev':_0xec5e5c}),this['_saveTaskMap']['has'](_0x36270f)||this[_0xef3485(0xf3)](_0x36270f);}[_0xfad9b1(0xf3)](_0x415939){const _0x492fba=_0xfad9b1,_0x368c24=this[_0x492fba(0x1ba)]();_0x368c24===0x0?this[_0x492fba(0x21c)](_0x415939):this['_saveTaskMap']['set'](_0x415939,setTimeout(()=>this[_0x492fba(0x21c)](_0x415939),_0x368c24));}[_0xfad9b1(0x1ba)](){const _0x1d3683=_0xfad9b1;var _0x38518d;return(_0x38518d=this[_0x1d3683(0x28d)][_0x1d3683(0x2c8)](_0x11615c))!=null?_0x38518d:_0x11fbc4;}[_0xfad9b1(0x21c)](_0x37fe5e){const _0x4b4735=_0xfad9b1,_0xfd8b24=this[_0x4b4735(0x160)][_0x4b4735(0x1b0)](_0x37fe5e);return _0xfd8b24!==void 0x0&&window[_0x4b4735(0x2a2)](_0xfd8b24),this[_0x4b4735(0x2c6)][_0x4b4735(0x25f)](_0x2f4fcc(_0x37fe5e),this[_0x4b4735(0xe6)][_0x4b4735(0x1b0)](_0x37fe5e))[_0x4b4735(0x1b1)](()=>this['_saveTaskMap']['delete'](_0x37fe5e));}async[_0xfad9b1(0x1af)](){const _0x3791a6=_0xfad9b1,_0x5cc77f=[];this[_0x3791a6(0x160)][_0x3791a6(0x110)]((_0x587320,_0x1cfa1d)=>{const _0x8772b1=_0x3791a6;window[_0x8772b1(0x2a2)](_0x587320),_0x5cc77f['push'](this[_0x8772b1(0x21c)](_0x1cfa1d)['then'](()=>{const _0x47c7b5=_0x8772b1;this[_0x47c7b5(0x160)]['delete'](_0x1cfa1d);}));}),await Promise[_0x3791a6(0x1d1)](_0x5cc77f);}};we=_n([Ee(0x0,_0x49e080),Ee(0x1,_0x61b9e5),Ee(0x2,_0x4d8ee1(_0x339073))],we);class hn extends _0x1ef804{constructor(){const _0x3b1660=_0xfad9b1;super(),_(this,'urlChange$'),this[_0x3b1660(0x129)]=_0x475537(window,_0x3b1660(0x1c7))[_0x3b1660(0x183)](_0x205a75(this[_0x3b1660(0x1dc)]),_0x53196e(0x1),_0x686144(void 0x0));}[_0xfad9b1(0x24e)](_0x558190,_0x1bc813,_0x40d699=!0x1){const _0x499459=_0xfad9b1,_0x1dea5f=new URL(window[_0x499459(0x279)][_0x499459(0x15a)]);_0x1dea5f[_0x499459(0x163)][_0x499459(0x10e)](_0x558190,_0x1bc813),_0x40d699?window['history'][_0x499459(0x1b9)]('','',_0x1dea5f[_0x499459(0x265)]()):window[_0x499459(0x193)][_0x499459(0x1ea)]('','',_0x1dea5f[_0x499459(0x265)]());}[_0xfad9b1(0x1a3)](_0x4d2cbb,_0x5c11d3=!0x1){const _0x5090de=_0xfad9b1,_0xc08868=new URL(window[_0x5090de(0x279)]['href']);_0xc08868['searchParams'][_0x5090de(0x214)](_0x4d2cbb),_0x5c11d3?window[_0x5090de(0x193)][_0x5090de(0x1b9)]('','',_0xc08868['toString']()):window[_0x5090de(0x193)][_0x5090de(0x1ea)]('','',_0xc08868[_0x5090de(0x265)]());}['getParam'](_0x2f070f){const _0x457fa5=_0xfad9b1;var _0x5d79a4;return(_0x5d79a4=new URL(window[_0x457fa5(0x279)][_0x457fa5(0x15a)])[_0x457fa5(0x163)][_0x457fa5(0x1b0)](_0x2f070f))!=null?_0x5d79a4:void 0x0;}}var un=Object[_0xfad9b1(0x2d4)],dn=Object['getOwnPropertyDescriptor'],fn=(_0xef4f27,_0x2f3485,_0x24bc4b)=>_0x2f3485 in _0xef4f27?un(_0xef4f27,_0x2f3485,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24bc4b}):_0xef4f27[_0x2f3485]=_0x24bc4b,Sn=(_0x5aa647,_0x2dd405,_0x528809,_0x41b772)=>{const _0x4b9a74=_0xfad9b1;for(var _0x93ee59=_0x41b772>0x1?void 0x0:_0x41b772?dn(_0x2dd405,_0x528809):_0x2dd405,_0x333ffd=_0x5aa647[_0x4b9a74(0x10a)]-0x1,_0x4cf8bd;_0x333ffd>=0x0;_0x333ffd--)(_0x4cf8bd=_0x5aa647[_0x333ffd])&&(_0x93ee59=_0x4cf8bd(_0x93ee59)||_0x93ee59);return _0x93ee59;},Oe=(_0x3069bd,_0x10bff8)=>(_0x28b404,_0x4e44c2)=>_0x10bff8(_0x28b404,_0x4e44c2,_0x3069bd),mn=(_0x753c13,_0x30ef52,_0x2fd297)=>fn(_0x753c13,_0x30ef52+'',_0x2fd297);const In=_0xfad9b1(0x1a4);let Ae=class extends _0x529a2d{constructor(_0x253b5d=et,_0x3520f2,_0x3d46d5,_0x36c33e){const _0x23ca3a=_0xfad9b1;super(),this['_config']=_0x253b5d,this[_0x23ca3a(0x254)]=_0x3520f2,this[_0x23ca3a(0x1cc)]=_0x3d46d5,this['_configService']=_0x36c33e;const {..._0x3510f4}=_0x1ff808({},et,this[_0x23ca3a(0x26e)]);this['_configService'][_0x23ca3a(0x187)](Zi,_0x3510f4);}[_0xfad9b1(0x243)](){const _0x4f6275=_0xfad9b1;this[_0x4f6275(0x2b5)](),this[_0x4f6275(0x105)]();}[_0xfad9b1(0xe1)](){const _0xd257c2=_0xfad9b1;this[_0xd257c2(0x1dd)]();}[_0xfad9b1(0x2b5)](){const _0x2fe385=_0xfad9b1;var _0x52b083;const _0x5959ec=[[ke],[ae],[re],[oe],[He],[Mt,{'useClass':hn}],[_0x5892d7,{'useClass':_0x294b85}],[_0x11ab6b,{'useClass':we}],[se],[ce],[ie],[F],[Ne],[ne]];_0x3165a0(this[_0x2fe385(0x1cc)],_0x541ebc(_0x5959ec,(_0x52b083=this[_0x2fe385(0x26e)])==null?void 0x0:_0x52b083['override']));}[_0xfad9b1(0x1dd)](){const _0x1035c6=_0xfad9b1;this[_0x1035c6(0x2e3)](this[_0x1035c6(0x254)][_0x1035c6(0x196)](_0x238e4b[_0x1035c6(0x1fb)],[Le])),this[_0x1035c6(0x2e3)](this[_0x1035c6(0x254)][_0x1035c6(0x196)](_0x238e4b[_0x1035c6(0x26c)],[Pe]));}[_0xfad9b1(0x105)](){const _0x4bd2af=_0xfad9b1;_0x37b4dc(this[_0x4bd2af(0x1cc)],[[F],[se],[ce],[ie],[ne]]);}};mn(Ae,_0xfad9b1(0x155),In),Ae=Sn([_0x2cca2d(_0x38821c),Oe(0x1,_0x154092),Oe(0x2,_0x4d8ee1(_0x5e762e)),Oe(0x3,_0x49e080)],Ae);var vn=Object[_0xfad9b1(0x2a4)],gn=(_0x365441,_0x56cba1,_0x53b11e,_0x19405a)=>{const _0x1bb45f=_0xfad9b1;for(var _0x171bee=_0x19405a>0x1?void 0x0:_0x19405a?vn(_0x56cba1,_0x53b11e):_0x56cba1,_0x5a09b8=_0x365441[_0x1bb45f(0x10a)]-0x1,_0x1e7d3d;_0x5a09b8>=0x0;_0x5a09b8--)(_0x1e7d3d=_0x365441[_0x5a09b8])&&(_0x171bee=_0x1e7d3d(_0x171bee)||_0x171bee);return _0x171bee;},z=(_0x51d3a4,_0x203986)=>(_0xe719f,_0x1b3056)=>_0x203986(_0xe719f,_0x1b3056,_0x51d3a4);let it=class extends _0x22decb{constructor(_0xe54739,_0x43339a,_0x5129da,_0xe743c9,_0x26b078){super(_0xe54739,_0x43339a,_0x5129da,_0xe743c9,_0x26b078);}async['createSocket'](_0x3fee61){const _0x1eb505=_0xfad9b1,_0x374849=await this['_getSessionTicket'](),_0x1e141f=this[_0x1eb505(0x209)](_0x3fee61,_0x374849);return this[_0x1eb505(0x292)](_0x1e141f);}[_0xfad9b1(0x209)](_0x6220a9,_0x2fb943){const _0x13f09d=_0xfad9b1,_0x157adb=typeof window>'u'?new URL(_0x6220a9):new URL(_0x6220a9,window[_0x13f09d(0x279)][_0x13f09d(0x2e6)]);_0x157adb[_0x13f09d(0x163)][_0x13f09d(0x10e)]('sessionTicket',_0x2fb943);const _0x431406=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x13f09d(0x279)][_0x13f09d(0x25b)]);return _0x431406['get'](_0x13f09d(0x276))&&_0x157adb[_0x13f09d(0x163)][_0x13f09d(0x10e)](_0x13f09d(0x276),_0x431406['get'](_0x13f09d(0x276))),_0x157adb[_0x13f09d(0x265)]();}async[_0xfad9b1(0x1f7)](){const _0x166dea=_0xfad9b1;var _0x4bc1b1,_0x37c024,_0x1926f4;const _0x1b16ea=this['_configService'][_0x166dea(0x2c8)](_0x146c41),_0x1fe4bb=(_0x4bc1b1=_0x1b16ea==null?void 0x0:_0x1b16ea[_0x166dea(0x124)])!=null?_0x4bc1b1:_0x52236e;return(_0x1926f4=(_0x37c024=(await this['_httpService'][_0x166dea(0x1b0)](_0x1fe4bb,{'headers':{'Content-Type':'application/json'}}))[_0x166dea(0x1c9)])==null?void 0x0:_0x37c024[_0x166dea(0x2d6)])!=null?_0x1926f4:'';}};it=gn([z(0x0,_0x4d8ee1(_0x5e762e)),z(0x1,_0x4d8ee1(_0x3b2f35)),z(0x2,_0x49e080),z(0x3,_0x2cadb0),z(0x4,_0x14ca3e)],it);const nt=0x7530,rt=_0xfad9b1(0x1c8);class Fn extends _0x3189c2{constructor(){const _0xf7329b=_0xfad9b1;super(),_(this,_0xf7329b(0x24a),_0x31d362()),_(this,_0xf7329b(0x210),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0xf7329b(0x131),null),_(this,_0xf7329b(0x13d),new Map()),_(this,_0xf7329b(0x11f),new Map()),this[_0xf7329b(0x219)]();}[_0xfad9b1(0x1f2)](){const _0x889201=_0xfad9b1;super[_0x889201(0x1f2)](),this['_clearOtherTimers'][_0x889201(0x110)]((_0x171c3d,_0x4822b1)=>this[_0x889201(0x21b)](_0x4822b1)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x889201(0x131)]);}['getUnitStatus$'](_0xbe0dde){const _0x550a46=_0xfad9b1;return this['_ensureSubject'](_0xbe0dde)[_0x550a46(0x183)](_0x14dc32());}[_0xfad9b1(0x10d)](_0x5404fe){const _0x1ab6a7=_0xfad9b1;this[_0x1ab6a7(0x210)][_0x1ab6a7(0x128)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1ab6a7(0x210)]['add'](_0x5404fe),this[_0x1ab6a7(0xed)]({'type':0x0,'memberID':this[_0x1ab6a7(0x24a)],'unitIDs':[_0x5404fe],'isForwarded':!0x1});}[_0xfad9b1(0x17b)](_0x2eeffd){const _0x29d295=_0xfad9b1;this[_0x29d295(0x210)]['delete'](_0x2eeffd),this[_0x29d295(0x210)][_0x29d295(0x128)]===0x0&&this[_0x29d295(0x131)]&&window[_0x29d295(0xeb)](this['_heartbeatTimer']);}[_0xfad9b1(0x219)](){const _0x5e858b=_0xfad9b1;this[_0x5e858b(0x2e3)](_0x41d1c9(_0x475537(window,_0x5e858b(0x18b))['subscribe'](_0x25ab8a=>{const _0x3b03ac=_0x5e858b;if(_0x25ab8a['key']!==rt||!_0x25ab8a['newValue'])return;const _0x36c512=JSON[_0x3b03ac(0x23a)](_0x25ab8a[_0x3b03ac(0x2a6)]);this['_handleEvent'](_0x36c512);}))),window['addEventListener']('unload',()=>this[_0x5e858b(0xed)]({'type':0x1,'memberID':this[_0x5e858b(0x24a)],'unitIDs':Array[_0x5e858b(0x141)](this[_0x5e858b(0x210)])}));}[_0xfad9b1(0x281)](_0x3d87eb){const _0x5a859f=_0xfad9b1;switch(_0x3d87eb[_0x5a859f(0x220)]){case 0x0:this[_0x5a859f(0x1fd)](_0x3d87eb);break;case 0x1:this[_0x5a859f(0x29c)](_0x3d87eb);break;case 0x2:this[_0x5a859f(0x211)](_0x3d87eb);break;}}[_0xfad9b1(0x1fd)](_0x363ce3){const _0x290940=_0xfad9b1,{unitIDs:_0x1cb982,memberID:_0x3bf374,isForwarded:_0x5a1363}=_0x363ce3;_0x1cb982['forEach'](_0x21e212=>{const _0x4a5225=_0x2617;if(!_0x5a1363&&this[_0x4a5225(0x1b4)][_0x4a5225(0x1f1)](_0x21e212)&&this[_0x4a5225(0x2e0)](_0x21e212)[_0x4a5225(0x2d8)](_0x362c70[_0x4a5225(0x1a0)]),!this[_0x4a5225(0x1b4)][_0x4a5225(0x1f1)](_0x21e212)||!this[_0x4a5225(0x1b4)]['get'](_0x21e212)[_0x4a5225(0x1f1)](_0x3bf374)){const _0x4a0a01=this[_0x4a5225(0x1b4)][_0x4a5225(0x1b0)](_0x21e212)||new Set();_0x4a0a01['add'](_0x3bf374),this[_0x4a5225(0x1b4)][_0x4a5225(0x10e)](_0x21e212,_0x4a0a01),this[_0x4a5225(0x285)](_0x3bf374);}}),_0x5a1363||this['_send']({'type':0x0,'memberID':this[_0x290940(0x24a)],'unitIDs':[...this[_0x290940(0x210)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x450e72){const _0xfd9be9=_0xfad9b1;this['_removeClearOtherTimer'](_0x450e72);const _0x45f068=window[_0xfd9be9(0x2d1)](()=>{const _0x29f33c=_0xfd9be9;this[_0x29f33c(0x1b4)][_0x29f33c(0x110)](_0x1f5f81=>{_0x1f5f81['delete'](_0x450e72);});},nt*0x2);this['_clearOtherTimers'][_0xfd9be9(0x10e)](_0x450e72,_0x45f068);}['_removeClearOtherTimer'](_0x37f237){const _0x3b2c16=_0xfad9b1;if(this['_clearOtherTimers'][_0x3b2c16(0x1f1)](_0x37f237)){const _0x3c3d5b=this[_0x3b2c16(0x13d)][_0x3b2c16(0x1b0)](_0x37f237);_0x3c3d5b&&window['clearTimeout'](_0x3c3d5b),this[_0x3b2c16(0x13d)][_0x3b2c16(0x10e)](_0x37f237,null);}}[_0xfad9b1(0x29c)](_0x29a2a6){const _0x175208=_0xfad9b1,{memberID:_0x2b500a,unitIDs:_0x4c1bdb}=_0x29a2a6;_0x4c1bdb[_0x175208(0x110)](_0x370a83=>{const _0x2382c0=_0x175208;var _0x522331;const _0xf36ca=this[_0x2382c0(0x1b4)][_0x2382c0(0x1b0)](_0x370a83);_0xf36ca&&(_0xf36ca['delete'](_0x2b500a),(_0x522331=this[_0x2382c0(0x2e0)](_0x370a83))==null||_0x522331[_0x2382c0(0x2d8)](_0xf36ca['size']===0x0?_0x362c70['NO_OTHER_CLIENTS_EDITING']:_0x362c70['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x2b500a);}[_0xfad9b1(0x211)](_0x304c48){const _0x1f2f1f=_0xfad9b1;this[_0x1f2f1f(0x285)](_0x304c48[_0x1f2f1f(0x212)]);}[_0xfad9b1(0xed)](_0x40fb2d){const _0x3e3f2c=_0xfad9b1;localStorage['setItem'](rt,JSON[_0x3e3f2c(0x169)](_0x40fb2d));}[_0xfad9b1(0x1cd)](){const _0x46066a=_0xfad9b1;this[_0x46066a(0x131)]=window[_0x46066a(0x18e)](()=>{const _0x4eaae0=_0x46066a;this['_send']({'type':0x2,'memberID':this[_0x4eaae0(0x24a)]});},nt);}[_0xfad9b1(0x2e0)](_0x5cf15e){const _0x54de9e=_0xfad9b1;return this[_0x54de9e(0x11f)]['has'](_0x5cf15e)||this[_0x54de9e(0x11f)][_0x54de9e(0x10e)](_0x5cf15e,new _0x756108(_0x362c70[_0x54de9e(0x1e8)])),this[_0x54de9e(0x11f)][_0x54de9e(0x1b0)](_0x5cf15e);}}var Lt=(_0x22bdf5=>(_0x22bdf5[_0x22bdf5[_0xfad9b1(0x1ef)]=0x0]=_0xfad9b1(0x1ef),_0x22bdf5[_0x22bdf5['OK']=0x1]='OK',_0x22bdf5[_0x22bdf5['INTERNAL_ERROR']=0x2]=_0xfad9b1(0x20a),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x180)]=0x3]=_0xfad9b1(0x180),_0x22bdf5[_0x22bdf5['NOT_FOUND']=0x4]=_0xfad9b1(0xe8),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x234)]=0x5]=_0xfad9b1(0x234),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x22f)]=0x6]='ALREADY_EXISTS',_0x22bdf5[_0x22bdf5['INVALID_ARGUMENT']=0x7]=_0xfad9b1(0x26b),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x1df)]=0x8]='TOO_MANY_REQUESTS',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x297)]=0x9]=_0xfad9b1(0x297),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x113)]=0xa]=_0xfad9b1(0x113),_0x22bdf5[_0x22bdf5['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x248)]=0xc]=_0xfad9b1(0x248),_0x22bdf5[_0x22bdf5[_0xfad9b1(0xf2)]=0xd]=_0xfad9b1(0xf2),_0x22bdf5[_0x22bdf5['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x108)]=0x1389]=_0xfad9b1(0x108),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x28a)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x22bdf5[_0x22bdf5['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xfad9b1(0x188),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x10b)]=0x1773]=_0xfad9b1(0x10b),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x127)]=0x1b59]='APPLY_REJECT',_0x22bdf5[_0x22bdf5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x22bdf5[_0x22bdf5['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x20e)]=0x1b5c]=_0xfad9b1(0x20e),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x231)]=0x1b5d]='APPLY_DUPLICATED',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x17a)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x226)]=0x2329]=_0xfad9b1(0x226),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x190)]=0x232a]=_0xfad9b1(0x190),_0x22bdf5[_0x22bdf5[_0xfad9b1(0xf5)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x2ca)]=0x232c]=_0xfad9b1(0x2ca),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x2bd)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x15c)]=0x2711]=_0xfad9b1(0x15c),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x2eb)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x1ec)]=0x2713]=_0xfad9b1(0x1ec),_0x22bdf5[_0x22bdf5['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0xfad9b1(0x298),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x21f)]=0x271a]=_0xfad9b1(0x21f),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x1e1)]=0x271b]=_0xfad9b1(0x1e1),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x2ce)]=0x271c]=_0xfad9b1(0x2ce),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x289)]=0x271d]=_0xfad9b1(0x289),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x1f9)]=0x271e]=_0xfad9b1(0x1f9),_0x22bdf5[_0x22bdf5[_0xfad9b1(0xee)]=0x271f]=_0xfad9b1(0xee),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x2db)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x22bdf5[_0x22bdf5[_0xfad9b1(0x22d)]=0x2af9]=_0xfad9b1(0x22d),_0x22bdf5[_0x22bdf5['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x22bdf5[_0x22bdf5['INVALID_INVITE_CODE']=0x2ee2]=_0xfad9b1(0x2be),_0x22bdf5[_0x22bdf5['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x22bdf5[_0x22bdf5['USER_NOT_INVITED_CODE']=0x2ee4]=_0xfad9b1(0x299),_0x22bdf5[_0x22bdf5['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xfad9b1(0x18f),_0x22bdf5[_0x22bdf5['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0xfad9b1(0x137),_0x22bdf5[_0x22bdf5['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x22bdf5[_0x22bdf5['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0xfad9b1(0x22a),_0x22bdf5[_0x22bdf5[_0xfad9b1(0x237)]=-0x1]=_0xfad9b1(0x237),_0x22bdf5))(Lt||{}),pn=Object[_0xfad9b1(0x2a4)],Cn=(_0x35b16e,_0x279714,_0x2c9b8e,_0x395085)=>{for(var _0x3ef0da=_0x395085>0x1?void 0x0:_0x395085?pn(_0x279714,_0x2c9b8e):_0x279714,_0x5b9cd0=_0x35b16e['length']-0x1,_0x54aecc;_0x5b9cd0>=0x0;_0x5b9cd0--)(_0x54aecc=_0x35b16e[_0x5b9cd0])&&(_0x3ef0da=_0x54aecc(_0x3ef0da)||_0x3ef0da);return _0x3ef0da;},be=(_0x4d3bc6,_0x54a894)=>(_0x85ece9,_0x210637)=>_0x54a894(_0x85ece9,_0x210637,_0x4d3bc6);let ot=class extends _0x3189c2{constructor(_0x233f23,_0xe2ba8a,_0x54120d){const _0x5eb142=_0xfad9b1;super(),this[_0x5eb142(0xec)]=_0x233f23,this[_0x5eb142(0x271)]=_0xe2ba8a,this[_0x5eb142(0x28d)]=_0x54120d;}async[_0xfad9b1(0x181)](_0x480fa3,_0x3383c4,_0x4d13cb,..._0x394d9a){const _0x3fa03d=_0xfad9b1;var _0x54233e,_0x3c314f,_0x54946e,_0x4ee6fa;const _0x474f47=this['_instanceService']['getFocusedUnit']();if(!_0x474f47)throw new Error(_0x3fa03d(0x194));const _0x4bad3a=((_0x54233e=this[_0x3fa03d(0x28d)][_0x3fa03d(0x2c8)](_0x6560e3))!=null?_0x54233e:_0x3764b5)+'/'+_0x480fa3+_0x3fa03d(0xf8)+_0x3383c4,_0x445dec=new URL(window[_0x3fa03d(0x279)]['href']),_0x203c68={'scriptId':_0x480fa3,'runId':(_0x3c314f=_0x445dec[_0x3fa03d(0x163)][_0x3fa03d(0x1b0)](_0x3fa03d(0x276)))!=null?_0x3c314f:'','function':_0x3383c4,'unitId':_0x474f47[_0x3fa03d(0x21d)](),'argsOfFunction':JSON[_0x3fa03d(0x169)](_0x394d9a),'invokeId':(_0x54946e=_0x4d13cb['invokeId'])!=null?_0x54946e:'','executionId':(_0x4ee6fa=_0x4d13cb[_0x3fa03d(0x1f8)])!=null?_0x4ee6fa:''};try{const _0x521c63=await this[_0x3fa03d(0x271)][_0x3fa03d(0x170)](_0x4bad3a,{'body':_0x203c68});return _0x521c63[_0x3fa03d(0x1c9)][_0x3fa03d(0xe9)]&&_0x521c63[_0x3fa03d(0x1c9)][_0x3fa03d(0xe9)][_0x3fa03d(0x278)]!==Lt['OK']?_0x3fa03d(0x19b):_0x521c63[_0x3fa03d(0x1c9)][_0x3fa03d(0x258)];}catch{return _0x3fa03d(0x19b);}}};ot=Cn([be(0x0,_0x18bc32),be(0x1,_0x4d8ee1(_0x3b2f35)),be(0x2,_0x49e080)],ot);export{it as BrowserCollaborationSocketService,ne as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Mt as IURLService,ot as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x5978f9=_0x3c22;(function(_0x2e8d53,_0x38a995){const _0x9acac8=_0x3c22,_0x16093b=_0x2e8d53();while(!![]){try{const _0x3769f3=parseInt(_0x9acac8(0x2ba))/0x1+parseInt(_0x9acac8(0x151))/0x2*(-parseInt(_0x9acac8(0x1c0))/0x3)+parseInt(_0x9acac8(0xd5))/0x4*(-parseInt(_0x9acac8(0x111))/0x5)+-parseInt(_0x9acac8(0x2cf))/0x6*(-parseInt(_0x9acac8(0x277))/0x7)+-parseInt(_0x9acac8(0x245))/0x8+parseInt(_0x9acac8(0x26f))/0x9+parseInt(_0x9acac8(0x166))/0xa;if(_0x3769f3===_0x38a995)break;else _0x16093b['push'](_0x16093b['shift']());}catch(_0x1b6134){_0x16093b['push'](_0x16093b['shift']());}}}(_0x2c9d,0xec7c0));var xt=Object[_0x5978f9(0x19d)],Bt=(_0x52f5bc,_0x3a096a,_0x50f469)=>_0x3a096a in _0x52f5bc?xt(_0x52f5bc,_0x3a096a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50f469}):_0x52f5bc[_0x3a096a]=_0x50f469,_=(_0x377f5d,_0x5a7f46,_0x2d52dc)=>Bt(_0x377f5d,typeof _0x5a7f46!='symbol'?_0x5a7f46+'':_0x5a7f46,_0x2d52dc);import{jsx as _0x3929bb,jsxs as _0x4335df}from'react/jsx-runtime';import{CollaborationStatus as _0x138deb,CollaborationSessionService as _0x3f05f9,CollaborationController as _0x2feee0,DataLoaderService as _0x16282f,MemberService as _0x1106ba,SessionStatus as _0x5cbbf2,ILocalCacheService as _0x4ac262,CollaborationUIEventService as _0x27e336,CollaborationUIEventId as _0x299041,DocCollaborationEntity as _0x4186b0,getLocalCacheKey as _0xd819cd,LOCAL_CACHE_INTERVAL as _0x52f070,LOCAL_CACHE_INTERVAL_KEY as _0x2b4ad3,UniverCollaborationClientPlugin as _0x122f21,CollaborationSocketService as _0x3a1781,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x47ccc5,DEFAULT_WS_SESSION_TICKET_URL as _0x3e9558,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x30263f,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x226081,UnitStatus as _0x30805d}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x356e26,IUniverInstanceService as _0x4a6374,Inject as _0x4254b3,Injector as _0x49ea94,Disposable as _0x275756,createIdentifier as _0x485c1e,ILogService as _0x3bb3af,ICommandService as _0x179029,Optional as _0x3d6a58,RxDisposable as _0x4f795a,Workbook as _0x153b81,DOC_RANGE_TYPE as _0x369fc5,debounce as _0x5b1e9d,Rectangle as _0x5eb73e,DisposableCollection as _0x58ae22,toDisposable as _0x236c59,UniverInstanceType as _0x12c7d5,generateRandomId as _0xf28c22,COLORS as _0x721eaf,ColorKit as _0x1c3c0d,ThemeService as _0x4906d5,fromEventSubject as _0x18c26e,Tools as _0x495d23,CommandType as _0x195ea6,IConfigService as _0x4bdd34,ILocalStorageService as _0x3d0e53,DependentOn as _0x3cdf16,Plugin as _0x48371a,merge as _0x4e0d00,registerDependencies as _0x1c12b7,mergeOverrideWithDependencies as _0x22ccff,touchDependencies as _0x379c2b}from'@univerjs/core';import{useObservable as _0x3bed19,useDependency as _0x548b5d,IUIPartsService as _0xf6fcc4,BuiltInUIPart as _0x4284b4,connectInjector as _0x5ab871,IBeforeCloseService as _0x2895c2,IMessageService as _0x4887c1,INotificationService as _0x38e1e8}from'@univerjs/ui';import{BehaviorSubject as _0x2ec644,switchMap as _0xd33efc,of as _0x2f5681,takeUntil as _0x4c94af,debounceTime as _0x152bf7,Subject as _0x5d7ab6,filter as _0x11708d,merge as _0x1b622e,combineLatest as _0x35b352,fromEvent as _0x9cc90b,shareReplay as _0xb1e6d5,mapTo as _0x34a876,distinctUntilChanged as _0x17f3df}from'rxjs';import{Tooltip as _0x2abe3b,clsx as _0x1df42b,MessageType as _0x266753}from'@univerjs/design';import{forwardRef as _0x2d72fb,useRef as _0x33aef7,createElement as _0x3826e4,useCallback as _0xc547d4}from'react';import{IRemoteInstanceService as _0x526a59}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x584db2,RefRangeService as _0x318afe,SetSelectionsOperation as _0x11c160,SheetsSelectionsService as _0x37aeb5,EffectRefRangId as _0x595c6b,handleIRemoveRow as _0x2f0d9d,handleIRemoveCol as _0x41f1ee,handleMoveRange as _0x5a5283,handleInsertRow as _0x5290c5,handleInsertRangeMoveRight as _0x471f7f,handleInsertRangeMoveDown as _0x2c05fd,handleInsertCol as _0xd36b26,handleDeleteRangeMoveUp as _0x473e0c,handleDeleteRangeMoveLeft as _0x4b547f,runRefRangeMutations as _0x4ae282}from'@univerjs/sheets';import{Shape as _0x445c68,Rect as _0x1241ee,getColor as _0x5701e8,RegularPolygon as _0x383636,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4c5bb0,Vector2 as _0x45fba4,SHEET_VIEWPORT_KEY as _0x4fe57b,IRenderManagerService as _0x54f460}from'@univerjs/engine-render';import{ISocketService as _0xd4bad1,WebSocketService as _0x519dda,HTTPService as _0xb11c39}from'@univerjs/network';import{IDocClipboardService as _0x168ed3,NodePositionConvertToCursor as _0x5a9ff8,NodePositionConvertToRectRange as _0x36de77,TEXT_RANGE_LAYER_INDEX as _0x257fd2,SetDocZoomRatioOperation as _0x42ed27,DocIMEInputManagerService as _0xd0cb86,DocStateChangeManagerService as _0xfa24fb}from'@univerjs/docs-ui';import{IImageIoService as _0x17a5f0}from'@univerjs/drawing';import{ITransformService as _0xac990f,CollaborationEvent as _0x1031d0,isTransformMutationFailure as _0x1d14c8,isTransformMutationsWithChangesetSuccess as _0x17e12b,RevisionService as _0x3a9d6d,ISnapshotServerService as _0x4dc603}from'@univerjs-pro/collaboration';function _0x2c9d(){const _0xb50099=['transformByState','onPointerLeave$','MOBILE_HAS_BEEN_BOUND','translate(.97)','_draw','_docSkeletonManagerService','APPLY_PERMISSION_DENIED','LICENSE_EXPORT_SIZE_EXCEEDED','push','APPLY_DUPLICATED','get','_collabCursorController','_startSheetCollabCursor','_clearOtherTimers','replace','_session','_renderManagerService','_roomMembers$','split','FETCH_MISS','18384030LtnDoy','yellow.400','show','saveOfflineData','YUUMI_AI_RUN_FAILED','UNIVER_DOC','_startDocCollabCursor','currentTheme$','_cursorInfo$','OFFLINE','UNAUTHENTICATED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','call','...','includes','removeParam','flatMap','_onCursorDelete','collabStatus.offline','collaboration-client-ui.config','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','transformStateCache','_init','UNDEFINED','ONLINE','arc','_cursorShapes','onPointerMove$','_setupSubUnitSync','SOCKET_FAILED_RETRY','transformMutation','clearTimeout','_selfUnitIDs','dispose','text','_initEntityListener','INVITE_CODE_ALREADY_BOUND','getActiveRange','attrs','_onCursorUpdate','getCurrentUnitForType','m2Prime','getRangePointData','_doCreateSocket','_eventUnsubscribe','_refRangeService','sessionTicket','_revisionService','subunit','getTypeOfUnitDisposed$','PY_RUNTIME_SCRIPT_ERROR','getValue','path','onPointerEnter$','trim','defineProperty','redoState','moveTo','syncEditingCollabCursor','_logService','_send','off-line-icon','_id','endColumn','_getAnchorBounding','with','TEXT','saveImage','_docTransformSelectionsService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_getScale','sheetId','LICENSE_MAX_UNITS_EXCEEDED','fill','_uiPartsService','indexOf','YUUMI_UNABLE_LOAD_URL','use','_collabCursorState$','green.600','params','_transformHistoryAndStateStack','MOBILE_VERIFY_CODE_MISMATCH','_docClipboardService','NOT_COLLAB','CHANGESET_REVISION_CONFILICT','collabCursorState$','idSuffix','M0\x200H16V16H0z','closePath','856092vYfEqw','debug','blue.400','MUTATION','endRow','getRelativeToViewportCoord','next','currentColor','disposeWithMe','INVALID_INVITE_CODE','unshift','InsertColCommandId','PENDING','Warning','getOffsetConfig','fillText','colorChannel1','_range','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','YUUMI_ALL_TABLES_IS_INVALID','round','_hideTimer','loadUnit','_hovered','_registerDependencies','_docTransformIMECacheService','permission.content','_updateURLWithCurrentState','restore','SOCKET_FAILED','INTERNAL_ERROR','color','setItem','_onRefRangeChange','url(#$1','propertyIsEnumerable','UNRECOGNIZED','jiqing.500','_saveTaskMap','USER_NOT_INVITED_CODE','ENSURE_SNAPSHOT_EXECUTION','getTypeOfUnitAdded$','min','OTHER_CLIENT_EDITING','row','NOT_FOUND','INVALID_ARGUMENT','contains','pushState','RemoveRowCommandId','forEach','entityInit$','sessionStatus$','column','unitID','_color','icon','_getSaveTimeout','clearInterval','activeSheet$','href','size','then','_docSyncEditingCollabCursorService','_textBubble','save','getCurrentRevOfUnit','lineTo','type','getConfig','_localStorageService','executionId','dispose$','cursorInfo$','saveTaskMap','[CollaborationDataLoaderController]','textRanges','DeleteRangeMoveLeftCommandId','getUniverSheetInstance','onLocalMutation','concat','extend','deepClone','mutations','delete','url(#off-line-icon_clip0_910_343)','asObservable','_online','collabStatus.notCollab','error','0\x200\x2017\x2016','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','session.connection-failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','PERMISSION_DENIED','_handleEvent','actions','CONFLICT','wsSessionTicketUrl','currentSkeleton$','updateOfflineData','transformRemoteChangeset','children','APPLY_REVISION_CONFILICT','pipe','ranges','hasOwnProperty','replaceDocRanges','http://www.w3.org/2000/svg','_entities','OTHER_CLIENTS_EDITING','apply','collab-text-range-','addObject','parse','_colorIndex','UPDATE_CURSOR','selection','roomMembers','_updateSubUnitFromURLParams','urlChange$','_cursors','_scheduleClearOtherTimer','_docSkeleton','LICENSE_IMPORT_SIZE_EXCEEDED','isEditing','_backgroundColor','permission.title','_removeClearOtherTimer','purple.300','getVpScrollXYInfoByPosToVp','RECT','YUUMI_SUBSCRIPTION_NOT_FOUND','10767544glpVoM','_dataLoaderService','subUnitId','_transformPreviousActiveRange','_initCommandExecutedListener','location','unitId','from','xlink:href','addClipboardHook','url(#on-line-icon_clip0_910_349)','setInterval','imageSourceType','startRow','UniverIcon','_beforeCloseService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_updateCollabCursors','_sheetSkeletonManagerService','complete','getUndoRedoMutationParamsCache','univer-flex\x20univer-items-center','m1Prime','_localeService','0\x200\x2016\x2016','getOwnPropertyDescriptor','_initStatusComponent','subscribe','_labelPosition','_disabled','black','session.will-retry','_urlService','getUnitStatus$','has','random','_lastPointer','LICENSE_DISTRO_REJECTED','setAlpha','onRendered','_context','AWAITING','1359540ixLVET','setActiveRange','enableLocalCache','COMPLETION_FINISHED','getUnitId','defIds','svg','defs','7EsOwdx','_status$','_instanceService','collabStatus.fetchMiss','assignAColorForMemberID','entries','SNAPSHOT_HAS_BEEN_REMOVED','USERS_LEAVE','pluginName','getAncestorScale','_setupBeforeClosingHandler','toString','_assignedColors','runId','subscribeEvent','undoState','YUUMI_RATE_OVER_LIMIT','univer-mr-2\x20univer-flex\x20univer-text-xl','className','_name','height','INVITE_CODE_HAS_BEEN_UES','_localCacheService','ticket','TOO_MANY_REQUESTS','collabStatus.syncing','toRgbString','_createSocketURL','prototype','tag','_hover','_refreshCollabCursors','_commandService','drawWith','name','_injector','_handleLeaveEvent','uni.network.url-service','_scene','setParam','getMemberID','_scheduleSaving','getStateCache','VIEW_MAIN','div','roomMembers$','_cursor','rgba(255,\x20255,\x20255,\x200.01)','registerRenderModule','AWAITING_WITH_PENDING','application/json','getFocusedUnit','_themeService','_toggleOffline','_anchorDot','hide','getUnhiddenWorksheets','LOGIN_FAILED','find','values','collab-client.tooltip.reconnect','assign','NO_OTHER_CLIENTS_EDITING','HEADER_MENU','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collabStatus.synced','post','1459562bCIrXo','_saveCache','/run/','body','_notificationService','off-line-icon_clip0_910_343','none','search','_messageService','CONNECTOR_DATA_TOO_LARGE','stringify','_entityInit$','init','doc.mutation.rich-text-editing','focused$','_initDependencies','backgroundColor','font','fillRule','_toggleOnline','_collabSessionService','1860834bluxbz','transformSelections','onCommandExecuted','_configService','getViewport','_collaborationController','_unitOnClients','_colorAssignService','displayName','on-line-icon_clip0_910_349','setStateCache','send','onStarting','getDocRanges','FromArray','_shapes','436NOSzGO','unsubscribe','isActive','length','searchParams','requireSession','addHandlerCallback','addObjects','bottom','disableLocalCache','top','_document','_imageIoService','UNIVER_SHEET','selections','replaceState','_getSheetObject','createInstance','source','_drawAnchor','string','memberID','collaboration-client.offline-data-not-saved','_removeCollabCursors','startColumn','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getSkeleton','eventID','_univerInstanceService','_docTransformStateCacheService','INVITE_CODE_REQUIRED','EMAIL_HAS_BEEN_BOUND','_getSessionTicket','isArray','_syncEditingCollabCursorService','_cachedData','setShapeProps','getItem','triggerDblclick','resize','evenodd','beginPath','transformIMECache','executeCommand','map','set','onTransformChange$','_transformService','current','InsertRowCommandId','getActiveSheet','OnLineIcon','max','YUUMI_CONNECTOR_URL_NOT_FOUND','reconnect','exhaustSavingTask','InsertRangeMoveRightCommandId','_handleHeartbeatEvent','mask','Failed','40085KzhnWU','_httpService','Error','transformMutationsWithChangeset','history','getParam','WECHAT_HAS_BEEN_BOUND','_render','some','getSheetBySheetId','_transformUndoRedoStack','newValue','substring','all','registerRefRange','_ensureSubject','white','loadOfflineData','_drawTextRange','YUUMI_NO_CUBOID_FOR_QUESTION','_updateLocalCursor','fillStyle','_anchor','getMergeData','YUUMI_ASYNCIO_CANCELLED','_memberService','add','_initEvent','collaboration.closeRoom','width','_handleHover','_scheduleHeartbeat','event$','1em','startsWith','_docStateChangeManagerService','_unitStatus','sheetID','MoveRangeCommandId','_initStatusListener','getCollabCursors$','origin','YUUMI_URL_COL_OUT_OF_RANGE','_drawRectRange','whenReady','status$','range','transform','onMouseMove','cursorInfo','getSheetId','runOnServer','_registerRenderDependencies','APPLY_NON_SEQUENTIAL_REVISION','findNodePositionByCharIndex','_config','_heartbeatTimer','SNAPSHOT_INVALID_SNAPSHOT','getOwnPropertySymbols','measureText','registerBeforeClose','APPLY_REJECT','data','getMember','4sMiLeX'];_0x2c9d=function(){return _0xb50099;};return _0x2c9d();}import{SetTextSelectionsOperation as _0x9f2632,RichTextEditingMutation as _0x5eea58,DocSelectionManagerService as _0x177a84,DocSkeletonManagerService as _0x4102fb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x5f344f,serializeRangeWithSheet as _0x3b92d0}from'@univerjs/engine-formula';import{map as _0x40da09,filter as _0x1274ae,throttleTime as _0x14045f,takeUntil as _0x5968d1,switchMap as _0x1e2186}from'rxjs/operators';import{SheetSkeletonManagerService as _0x529972,getCoordByCell as _0x525ff9,getSheetObject as _0x515a9d}from'@univerjs/sheets-ui';var v=function(){const _0x8facea=_0x5978f9;return v=Object['assign']||function(_0x55a9e9){const _0x5354d5=_0x3c22;for(var _0x92625d,_0x2fb4ad=0x1,_0x358bcb=arguments[_0x5354d5(0xd8)];_0x2fb4ad<_0x358bcb;_0x2fb4ad++){_0x92625d=arguments[_0x2fb4ad];for(var _0x21a20c in _0x92625d)Object['prototype'][_0x5354d5(0x22a)][_0x5354d5(0x172)](_0x92625d,_0x21a20c)&&(_0x55a9e9[_0x21a20c]=_0x92625d[_0x21a20c]);}return _0x55a9e9;},v[_0x8facea(0x22f)](this,arguments);},ci=function(_0x1f4986,_0x39c751){const _0x525558=_0x5978f9;var _0x24a51c={};for(var _0x3a464e in _0x1f4986)Object['prototype']['hasOwnProperty'][_0x525558(0x172)](_0x1f4986,_0x3a464e)&&_0x39c751[_0x525558(0x1b1)](_0x3a464e)<0x0&&(_0x24a51c[_0x3a464e]=_0x1f4986[_0x3a464e]);if(_0x1f4986!=null&&typeof Object[_0x525558(0x14b)]=='function'){for(var _0x3e0f35=0x0,_0x3a464e=Object[_0x525558(0x14b)](_0x1f4986);_0x3e0f35<_0x3a464e[_0x525558(0xd8)];_0x3e0f35++)_0x39c751[_0x525558(0x1b1)](_0x3a464e[_0x3e0f35])<0x0&&Object[_0x525558(0x293)][_0x525558(0x1e3)]['call'](_0x1f4986,_0x3a464e[_0x3e0f35])&&(_0x24a51c[_0x3a464e[_0x3e0f35]]=_0x1f4986[_0x3a464e[_0x3e0f35]]);}return _0x24a51c;},ke=_0x2d72fb(function(_0x52d502,_0x318c9b){const _0x1bdd24=_0x5978f9;var _0x2d499b=_0x52d502[_0x1bdd24(0x1f8)],_0x549e51=_0x52d502['id'],_0x166ad1=_0x52d502[_0x1bdd24(0x289)],_0x59a9be=_0x52d502[_0x1bdd24(0x211)],_0xd685f4=ci(_0x52d502,[_0x1bdd24(0x1f8),'id',_0x1bdd24(0x289),'extend']),_0x13c64d='univerjs-icon\x20univerjs-icon-'[_0x1bdd24(0x210)](_0x549e51,'\x20')[_0x1bdd24(0x210)](_0x166ad1||'')[_0x1bdd24(0x19c)](),_0x235ab7=_0x33aef7('_'['concat'](hi()));return Rt(_0x2d499b,''['concat'](_0x549e51),{'defIds':_0x2d499b[_0x1bdd24(0x274)],'idSuffix':_0x235ab7[_0x1bdd24(0x105)]},v({'ref':_0x318c9b,'className':_0x13c64d},_0xd685f4),_0x59a9be);});function Rt(_0x1a594e,_0xf93411,_0x59abee,_0x1fee6d,_0x16620c){const _0x1c374c=_0x5978f9;return _0x3826e4(_0x1a594e[_0x1c374c(0x294)],v(v({'key':_0xf93411},li(_0x1a594e,_0x59abee,_0x16620c)),_0x1fee6d),(_i(_0x1a594e,_0x59abee)[_0x1c374c(0x226)]||[])[_0x1c374c(0x101)](function(_0x18f168,_0x93d319){const _0x13e28e=_0x1c374c;return Rt(_0x18f168,''['concat'](_0xf93411,'-')['concat'](_0x1a594e[_0x13e28e(0x294)],'-')[_0x13e28e(0x210)](_0x93d319),_0x59abee,void 0x0,_0x16620c);}));}function li(_0x16d0d7,_0x2d0045,_0x5d60d7){const _0x528491=_0x5978f9;var _0xd573f6=v({},_0x16d0d7[_0x528491(0x18c)]);_0x5d60d7!=null&&_0x5d60d7[_0x528491(0x1d0)]&&_0xd573f6[_0x528491(0x1af)]==='colorChannel1'&&(_0xd573f6[_0x528491(0x1af)]=_0x5d60d7[_0x528491(0x1d0)]),_0x16d0d7[_0x528491(0x294)]===_0x528491(0x10f)&&_0xd573f6['id']&&(_0xd573f6['id']=_0xd573f6['id']+_0x2d0045[_0x528491(0x1bd)]),Object[_0x528491(0x27c)](_0xd573f6)['forEach'](function(_0x5a4f80){const _0x20cfca=_0x528491;var _0x4b3152=_0x5a4f80[0x0],_0x5c2f2c=_0x5a4f80[0x1];_0x4b3152===_0x20cfca(0x10f)&&typeof _0x5c2f2c==_0x20cfca(0xe9)&&(_0xd573f6[_0x4b3152]=_0x5c2f2c[_0x20cfca(0x160)](/url\(#(.*)\)/,'url(#$1'[_0x20cfca(0x210)](_0x2d0045[_0x20cfca(0x1bd)],')')));});var _0x3ff16b=_0x2d0045[_0x528491(0x274)];return!_0x3ff16b||_0x3ff16b['length']===0x0||(_0x16d0d7[_0x528491(0x294)]===_0x528491(0x1b3)&&_0xd573f6[_0x528491(0x24d)]&&(_0xd573f6['xlink:href']=_0xd573f6[_0x528491(0x24d)]+_0x2d0045[_0x528491(0x1bd)]),Object[_0x528491(0x27c)](_0xd573f6)[_0x528491(0x1f2)](function(_0xaa4205){const _0x3f0bed=_0x528491;var _0x232695=_0xaa4205[0x0],_0x3b7f56=_0xaa4205[0x1];typeof _0x3b7f56==_0x3f0bed(0xe9)&&(_0xd573f6[_0x232695]=_0x3b7f56[_0x3f0bed(0x160)](/url\(#(.*)\)/,_0x3f0bed(0x1e2)[_0x3f0bed(0x210)](_0x2d0045['idSuffix'],')')));})),_0xd573f6;}function _i(_0x134a04,_0x29b9ff){const _0x1b9394=_0x5978f9;var _0x35c187,_0x1743f5=_0x29b9ff[_0x1b9394(0x274)];return!_0x1743f5||_0x1743f5[_0x1b9394(0xd8)]===0x0?_0x134a04:_0x134a04['tag']==='defs'&&(!((_0x35c187=_0x134a04[_0x1b9394(0x226)])===null||_0x35c187===void 0x0)&&_0x35c187[_0x1b9394(0xd8)])?v(v({},_0x134a04),{'children':_0x134a04[_0x1b9394(0x226)][_0x1b9394(0x101)](function(_0x5ce186){const _0x2ce006=_0x1b9394;return typeof _0x5ce186['attrs']['id']==_0x2ce006(0xe9)&&_0x1743f5&&_0x1743f5[_0x2ce006(0x174)](_0x5ce186[_0x2ce006(0x18c)]['id'])?v(v({},_0x5ce186),{'attrs':v(v({},_0x5ce186[_0x2ce006(0x18c)]),{'id':_0x5ce186[_0x2ce006(0x18c)]['id']+_0x29b9ff[_0x2ce006(0x1bd)]})}):_0x5ce186;})}):_0x134a04;}function hi(){const _0x5ebb30=_0x5978f9;return Math[_0x5ebb30(0x268)]()[_0x5ebb30(0x282)](0x24)[_0x5ebb30(0x11d)](0x2,0x8);}ke['displayName']=_0x5978f9(0x253);var ui={'tag':_0x5978f9(0x275),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5978f9(0x2c0),'viewBox':_0x5978f9(0x25d),'width':_0x5978f9(0x132),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5978f9(0x215)},'children':[{'tag':_0x5978f9(0x19a),'attrs':{'stroke':_0x5978f9(0x1c7),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5978f9(0x1d4),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5978f9(0x276),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5978f9(0x2bf)},'children':[{'tag':_0x5978f9(0x19a),'attrs':{'fill':_0x5978f9(0x121),'d':_0x5978f9(0x1be)}}]}]}],'defIds':[_0x5978f9(0x2bf)]},Dt=_0x2d72fb(function(_0xc375ac,_0x267504){const _0x693b3=_0x5978f9;return _0x3826e4(ke,Object[_0x693b3(0x2b4)]({},_0xc375ac,{'id':_0x693b3(0x1a3),'ref':_0x267504,'icon':ui}));});Dt['displayName']='OffLineIcon';var di={'tag':_0x5978f9(0x275),'attrs':{'xmlns':_0x5978f9(0x22c),'fill':'none','viewBox':_0x5978f9(0x21a),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5978f9(0x24f)},'children':[{'tag':_0x5978f9(0x19a),'attrs':{'stroke':_0x5978f9(0x1c7),'d':_0x5978f9(0x17a),'strokeLinecap':_0x5978f9(0x1d4),'strokeLinejoin':_0x5978f9(0x1d4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5978f9(0xce)},'children':[{'tag':_0x5978f9(0x19a),'attrs':{'fill':_0x5978f9(0x121),'d':_0x5978f9(0x1be),'transform':_0x5978f9(0x155)}}]}]}],'defIds':[_0x5978f9(0xce)]},Nt=_0x2d72fb(function(_0x421cc6,_0x1afca5){const _0x51bc98=_0x5978f9;return _0x3826e4(ke,Object[_0x51bc98(0x2b4)]({},_0x421cc6,{'id':'on-line-icon','ref':_0x1afca5,'icon':di}));});Nt[_0x5978f9(0xcd)]=_0x5978f9(0x108);function fi(_0x1b0c57){const _0x1e4852=_0x5978f9;switch(_0x1b0c57){case _0x138deb[_0x1e4852(0x16f)]:return _0x1e4852(0x178);case _0x138deb[_0x1e4852(0x221)]:return'collabStatus.conflict';case _0x138deb[_0x1e4852(0x165)]:return _0x1e4852(0x27a);case _0x138deb[_0x1e4852(0x1ba)]:return _0x1e4852(0x218);case _0x138deb[_0x1e4852(0x26e)]:case _0x138deb[_0x1e4852(0x2a8)]:return _0x1e4852(0x290);case _0x138deb['SYNCED']:case _0x138deb[_0x1e4852(0x1cc)]:return _0x1e4852(0x2b8);}}function Si(_0x2c34ea){const _0x39c4a2=_0x5978f9,{status$:_0x5be69f}=_0x2c34ea,_0x15daca=_0x3bed19(_0x5be69f,_0x138deb[_0x39c4a2(0x1ba)]),_0xe8a021=_0x548b5d(_0x356e26),_0x3f5dbc=_0x548b5d(_0x3f05f9),_0x357bfb=_0x15daca!==_0x138deb[_0x39c4a2(0x16f)],_0x17e6ca=_0xe8a021['t'](fi(_0x15daca)),_0x532195=_0x357bfb?_0x3929bb(Nt,{}):_0x3929bb(Dt,{}),_0x2ead1f=_0xc547d4(()=>{const _0x16e6a8=_0x39c4a2;_0x357bfb||_0x3f5dbc[_0x16e6a8(0x10b)]();},[_0x357bfb,_0x3f5dbc]);function _0x34c060(){const _0x515b36=_0x39c4a2;return _0x4335df('div',{'className':_0x515b36(0x25a),'onClick':_0x2ead1f,'children':[_0x3929bb(_0x515b36(0x2a3),{'className':_0x1df42b(_0x515b36(0x288),{'univer-text-green-500':_0x357bfb,'univer-text-red-500':!_0x357bfb}),'children':_0x532195}),_0x3929bb(_0x515b36(0x2a3),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x17e6ca})]});}return _0x357bfb?_0x34c060():_0x3929bb(_0x2abe3b,{'title':_0xe8a021['t'](_0x39c4a2(0x2b3)),'children':_0x34c060()});}var mi=Object['getOwnPropertyDescriptor'],Ii=(_0x119aa1,_0x3aebf1,_0x13e8c4,_0x1074cb)=>{const _0xcc760f=_0x5978f9;for(var _0x2dfc03=_0x1074cb>0x1?void 0x0:_0x1074cb?mi(_0x3aebf1,_0x13e8c4):_0x3aebf1,_0x119dfa=_0x119aa1[_0xcc760f(0xd8)]-0x1,_0x1d2356;_0x119dfa>=0x0;_0x119dfa--)(_0x1d2356=_0x119aa1[_0x119dfa])&&(_0x2dfc03=_0x1d2356(_0x2dfc03)||_0x2dfc03);return _0x2dfc03;},q=(_0x4ab256,_0x4bc679)=>(_0x3a4e99,_0x231186)=>_0x4bc679(_0x3a4e99,_0x231186,_0x4ab256);let se=class extends _0x275756{constructor(_0x558fb0,_0x21e8e4,_0x25f771,_0x2f1d0d){const _0x2d5c1d=_0x5978f9;super(),_(this,'_status$',new _0x2ec644(_0x138deb[_0x2d5c1d(0x1ba)])),(this[_0x2d5c1d(0xf1)]=_0x558fb0,this[_0x2d5c1d(0x29a)]=_0x21e8e4,this[_0x2d5c1d(0xca)]=_0x25f771,this[_0x2d5c1d(0x1b0)]=_0x2f1d0d,this[_0x2d5c1d(0x25f)](),this[_0x2d5c1d(0x138)]());}['_initStatusListener'](){const _0x2c505d=_0x5978f9;this[_0x2c505d(0x1c8)](this[_0x2c505d(0xf1)][_0x2c505d(0x2c8)]['pipe'](_0xd33efc(()=>{const _0x5f246d=_0x2c505d,_0x4e3734=this[_0x5f246d(0xf1)][_0x5f246d(0x2aa)]();return _0x4e3734?this[_0x5f246d(0xca)]['getCollabEntity$'](_0x4e3734[_0x5f246d(0x273)]()):_0x2f5681(null);}),_0xd33efc(_0x5b4dfb=>_0x5b4dfb?_0x5b4dfb[_0x2c505d(0x13e)]:_0x2f5681(_0x138deb[_0x2c505d(0x1ba)])))['subscribe'](_0x9fb42=>{const _0x5af938=_0x2c505d;this[_0x5af938(0x278)][_0x5af938(0x1c6)](_0x9fb42);}));}['_initStatusComponent'](){const _0x16d3f0=_0x5978f9;this[_0x16d3f0(0x1c8)](this['_uiPartsService']['registerComponent'](_0x4284b4[_0x16d3f0(0x2b6)],()=>_0x5ab871(vi({'status$':this[_0x16d3f0(0x278)][_0x16d3f0(0x216)]()}),this['_injector'])));}};se=Ii([q(0x0,_0x4a6374),q(0x1,_0x4254b3(_0x49ea94)),q(0x2,_0x4254b3(_0x2feee0)),q(0x3,_0xf6fcc4)],se);function vi(_0x4959fc){const {status$:_0x2be7cb}=_0x4959fc;return function(){return _0x3929bb(Si,{'status$':_0x2be7cb});};}const Ut=_0x485c1e(_0x5978f9(0x29c));var gi=Object['getOwnPropertyDescriptor'],pi=(_0x1b2c0c,_0x214522,_0x4c82c4,_0x42d402)=>{for(var _0x4ca6ed=_0x42d402>0x1?void 0x0:_0x42d402?gi(_0x214522,_0x4c82c4):_0x214522,_0x298ded=_0x1b2c0c['length']-0x1,_0x1999fa;_0x298ded>=0x0;_0x298ded--)(_0x1999fa=_0x1b2c0c[_0x298ded])&&(_0x4ca6ed=_0x1999fa(_0x4ca6ed)||_0x4ca6ed);return _0x4ca6ed;},G=(_0x179bfc,_0x59f03e)=>(_0x1a462d,_0x5036ab)=>_0x59f03e(_0x1a462d,_0x5036ab,_0x179bfc);let ie=class extends _0x4f795a{constructor(_0x3333b7,_0x17a93c,_0x431a22,_0x1af288,_0x263aed){const _0x5439d2=_0x5978f9;super(),this['_urlService']=_0x3333b7,this[_0x5439d2(0x1a1)]=_0x17a93c,this[_0x5439d2(0x297)]=_0x431a22,this[_0x5439d2(0x246)]=_0x1af288,_0x263aed?_0x263aed==null||_0x263aed[_0x5439d2(0x13d)]()[_0x5439d2(0x1fe)](()=>this[_0x5439d2(0x17c)]()):(this['_logService'][_0x5439d2(0x1c1)](_0x5439d2(0x20b),_0x5439d2(0x1d2)),this[_0x5439d2(0x17c)]());}async[_0x5978f9(0x17c)](){const _0x1b777c=_0x5978f9,_0x11d317=this[_0x1b777c(0x265)][_0x1b777c(0x116)]('unit'),_0x746572=this[_0x1b777c(0x265)][_0x1b777c(0x116)]('type'),_0x6ab523=this[_0x1b777c(0x265)][_0x1b777c(0x116)]('subunit');if(!_0x11d317||!_0x746572){this[_0x1b777c(0x1a1)][_0x1b777c(0x1c1)](_0x1b777c(0x20b),_0x1b777c(0x21b));return;}const _0x422468=await this[_0x1b777c(0x246)][_0x1b777c(0x1d6)](_0x11d317,Number(_0x746572),_0x6ab523);_0x422468&&_0x422468 instanceof _0x153b81&&this[_0x1b777c(0x182)](_0x422468);}async[_0x5978f9(0x182)](_0x505871){const _0x3f4d29=_0x5978f9;await this[_0x3f4d29(0x237)](_0x505871),_0x505871[_0x3f4d29(0x1fb)][_0x3f4d29(0x228)](_0x4c94af(this['dispose$']))['subscribe'](_0x394237=>{const _0xdc7f2d=_0x3f4d29;_0x394237&&this[_0xdc7f2d(0x1db)](_0x394237);}),this['_urlService']['urlChange$']['pipe'](_0x4c94af(this[_0x3f4d29(0x208)]))[_0x3f4d29(0x260)](()=>this['_updateSubUnitFromURLParams'](_0x505871));}['_updateURLWithCurrentState'](_0xc8a965,_0x19ce39=!0x1){const _0x4901aa=_0x5978f9,_0x169d94=this[_0x4901aa(0x265)][_0x4901aa(0x116)](_0x4901aa(0x196));_0xc8a965[_0x4901aa(0x143)]()!==_0x169d94&&this[_0x4901aa(0x265)][_0x4901aa(0x29e)]('subunit',_0xc8a965[_0x4901aa(0x143)](),_0x19ce39);}async['_updateSubUnitFromURLParams'](_0x38ddb5){const _0x40a4c3=_0x5978f9;var _0x13eec2;const _0x3a42ee=this[_0x40a4c3(0x265)][_0x40a4c3(0x116)]('subunit');if(!_0x3a42ee||!_0x38ddb5[_0x40a4c3(0x11a)](_0x3a42ee)){const _0x5588bb=_0x38ddb5[_0x40a4c3(0x2af)]()[0x0],_0x542a34=_0x38ddb5['getSheetBySheetId'](_0x5588bb);if(!_0x542a34)return;this[_0x40a4c3(0x1db)](_0x542a34,!0x0),await this['_commandService']['executeCommand'](_0x584db2['id'],{'unitId':_0x38ddb5[_0x40a4c3(0x273)](),'subUnitId':_0x5588bb});return;}((_0x13eec2=_0x38ddb5[_0x40a4c3(0x107)]())==null?void 0x0:_0x13eec2[_0x40a4c3(0x143)]())!==_0x3a42ee&&await this[_0x40a4c3(0x297)][_0x40a4c3(0x100)](_0x584db2['id'],{'unitId':_0x38ddb5[_0x40a4c3(0x273)](),'subUnitId':_0x3a42ee});}};ie=pi([G(0x0,Ut),G(0x1,_0x3bb3af),G(0x2,_0x179029),G(0x3,_0x4254b3(_0x16282f)),G(0x4,_0x3d6a58(_0x526a59))],ie);var Ci=Object[_0x5978f9(0x25e)],Ei=(_0x4d54a3,_0x29b6db,_0x3c5af3,_0x20996b)=>{const _0x418b16=_0x5978f9;for(var _0x349929=_0x20996b>0x1?void 0x0:_0x20996b?Ci(_0x29b6db,_0x3c5af3):_0x29b6db,_0x383131=_0x4d54a3[_0x418b16(0xd8)]-0x1,_0x161b1c;_0x383131>=0x0;_0x383131--)(_0x161b1c=_0x4d54a3[_0x383131])&&(_0x349929=_0x161b1c(_0x349929)||_0x349929);return _0x349929;},Je=(_0xbbf94,_0x71d6f5)=>(_0x57add5,_0x4622eb)=>_0x71d6f5(_0x57add5,_0x4622eb,_0xbbf94);let Ne=class extends _0x4f795a{constructor(_0x34b44a,_0x53d49c){const _0x4ff0e8=_0x5978f9;super(),this['_docClipboardService']=_0x34b44a,this[_0x4ff0e8(0xe1)]=_0x53d49c,this[_0x4ff0e8(0x17c)]();}['_init'](){const _0x762983=_0x5978f9,_0x4b95e1=this;this[_0x762983(0x1c8)](this[_0x762983(0x1b9)][_0x762983(0x24e)]({'onBeforePasteImage':async _0x291a91=>{const _0x7586a4=_0x762983,_0x5da7db=await _0x4b95e1[_0x7586a4(0xe1)][_0x7586a4(0x1a9)](_0x291a91);return _0x5da7db?{'source':_0x5da7db[_0x7586a4(0xe7)],'imageSourceType':_0x5da7db[_0x7586a4(0x251)]}:null;}}));}};Ne=Ei([Je(0x0,_0x168ed3),Je(0x1,_0x17a5f0)],Ne);const Ze=[_0x5978f9(0x241),_0x5978f9(0x1e5),_0x5978f9(0x1b5),'red.300',_0x5978f9(0x1c2),_0x5978f9(0x167)];class He extends _0x275756{constructor(){const _0x5a9aee=_0x5978f9;super(...arguments),_(this,_0x5a9aee(0x283),new Map()),_(this,'_colorIndex',0x0);}[_0x5978f9(0x27b)](_0x14820f){const _0x3bf38f=_0x5978f9;if(this[_0x3bf38f(0x283)]['has'](_0x14820f))return this['_assignedColors'][_0x3bf38f(0x15c)](_0x14820f);const _0x3f6e31=Ze[this[_0x3bf38f(0x233)]];return this[_0x3bf38f(0x233)]=(this['_colorIndex']+0x1)%Ze[_0x3bf38f(0xd8)],this[_0x3bf38f(0x283)][_0x3bf38f(0x102)](_0x14820f,_0x3f6e31),_0x3f6e31;}}function Mt(_0x579a22){const _0x2fc125=_0x5978f9;let _0x3e4cc4='';for(const _0x3746db of _0x579a22){const {startOffset:_0x2fea14,endOffset:_0x55b80d,isActive:_0x3641ea,rangeType:_0x489938,segmentId:_0x4f0c21,segmentPage:_0x442c11}=_0x3746db;_0x3e4cc4[_0x2fc125(0xd8)]&&(_0x3e4cc4+=','),_0x3e4cc4+=_0x2fea14+':'+_0x55b80d+':'+(_0x3641ea?'1':'0')+':'+_0x489938+':'+_0x4f0c21+':'+_0x442c11;}return _0x3e4cc4;}function Oi(_0x2af10c){const _0xe6c589=_0x5978f9,_0x5cfc3e=_0x2af10c[_0xe6c589(0x164)](','),_0x2d0450=[];for(const _0x11d637 of _0x5cfc3e){const [_0x4a6ae4,_0x2cd72c,_0x4ff11e,_0x31dd7a,_0x493d96,_0x28f1e7]=_0x11d637['split'](':');_0x2d0450[_0xe6c589(0x15a)]({'startOffset':Number(_0x4a6ae4),'endOffset':Number(_0x2cd72c),'collapsed':_0x4a6ae4===_0x2cd72c,'isActive':_0x4ff11e==='1','rangeType':_0x31dd7a===_0x369fc5[_0xe6c589(0x1a8)]?_0x369fc5['TEXT']:_0x369fc5[_0xe6c589(0x243)],'segmentId':typeof _0x493d96==_0xe6c589(0xe9)?String(_0x493d96):'','segmentPage':Number(_0x28f1e7!=null?_0x28f1e7:-0x1)});}return _0x2d0450[_0xe6c589(0x119)](_0x3d898b=>_0x3d898b[_0xe6c589(0xd7)])||(_0x2d0450[0x0]['isActive']=!0x0),_0x2d0450;}class Fe extends _0x4f795a{constructor(){const _0x7a631f=_0x5978f9;super(...arguments),_(this,_0x7a631f(0x1b4),new _0x2ec644(null)),_(this,_0x7a631f(0x1bc),this['_collabCursorState$'][_0x7a631f(0x216)]());}['syncEditingCollabCursor'](_0x52269e){const _0x3fb115=_0x5978f9,{unitID:_0x3071a0,memberID:_0x136579,textRanges:_0x48b809}=_0x52269e,_0x1d2d00=Mt(_0x48b809);if(_0x1d2d00==='')return;const _0x5ded88={'unitID':_0x3071a0,'memberID':_0x136579,'selection':_0x1d2d00};this[_0x3fb115(0x1b4)][_0x3fb115(0x1c6)](_0x5ded88);}}var bi=Object['getOwnPropertyDescriptor'],Ti=(_0x48a169,_0x290ce7,_0x40d91b,_0x138171)=>{const _0x27facf=_0x5978f9;for(var _0x2e7ddc=_0x138171>0x1?void 0x0:_0x138171?bi(_0x290ce7,_0x40d91b):_0x290ce7,_0x549869=_0x48a169[_0x27facf(0xd8)]-0x1,_0x3fca2f;_0x549869>=0x0;_0x549869--)(_0x3fca2f=_0x48a169[_0x549869])&&(_0x2e7ddc=_0x3fca2f(_0x2e7ddc)||_0x2e7ddc);return _0x2e7ddc;},P=(_0x33e3f1,_0x3a4059)=>(_0x40cb02,_0x1b72dc)=>_0x3a4059(_0x40cb02,_0x1b72dc,_0x33e3f1);const Ri=0x12c,Di=0x64;let Ue=class extends _0x4f795a{constructor(_0x1facad,_0x307296,_0x143b0c,_0x562c52,_0x3c689b,_0x1c53b5,_0x204c73,_0x110cb3,_0x8cffc){const _0x209d23=_0x5978f9;super(),_(this,_0x209d23(0x217),!0x1),_(this,_0x209d23(0x17c),!0x1),_(this,_0x209d23(0x16e),new _0x2ec644(new Map())),_(this,'cursorInfo$',this[_0x209d23(0x16e)][_0x209d23(0x216)]()),_(this,_0x209d23(0x163),new _0x2ec644([])),_(this,'roomMembers$',this[_0x209d23(0x163)]['pipe'](_0x152bf7(Ri))),_(this,_0x209d23(0x125),_0x5b1e9d(_0x1701fc=>{const _0x34c2d7=_0x209d23,_0x43a271={'eventID':_0x1031d0[_0x34c2d7(0x234)],'data':{'unitID':this[_0x34c2d7(0x1f6)],'memberID':this[_0x34c2d7(0x161)][_0x34c2d7(0x29f)](),'selection':Mt(_0x1701fc)}};this['_session'][_0x34c2d7(0xd0)](_0x43a271,this[_0x34c2d7(0x1f6)]);},Di)),(this[_0x209d23(0x1f6)]=_0x1facad,this[_0x209d23(0x161)]=_0x307296,this[_0x209d23(0x29a)]=_0x143b0c,this[_0x209d23(0xcc)]=_0x562c52,this[_0x209d23(0x12a)]=_0x3c689b,this['_syncEditingCollabCursorService']=_0x1c53b5,this[_0x209d23(0x104)]=_0x204c73,this[_0x209d23(0xf1)]=_0x110cb3,this['_commandService']=_0x8cffc);}get[_0x5978f9(0x142)](){const _0x2c882e=_0x5978f9;return this[_0x2c882e(0x16e)][_0x2c882e(0x199)]();}get[_0x5978f9(0x236)](){const _0x45bd48=_0x5978f9;return this[_0x45bd48(0x163)][_0x45bd48(0x199)]();}[_0x5978f9(0x187)](){const _0x19c359=_0x5978f9;super['dispose'](),this[_0x19c359(0x16e)][_0x19c359(0x1c6)](new Map()),this[_0x19c359(0x16e)][_0x19c359(0x258)](),this[_0x19c359(0x163)][_0x19c359(0x1c6)]([]),this[_0x19c359(0x163)]['complete']();}[_0x5978f9(0x2c6)](){const _0x26362a=_0x5978f9;this[_0x26362a(0x17c)]||(this['_init']=!0x0,this[_0x26362a(0x161)][_0x26362a(0x1f4)]['pipe'](_0x4c94af(this[_0x26362a(0x208)]))[_0x26362a(0x260)](_0x412c78=>{const _0xab287a=_0x26362a;_0x412c78===_0x5cbbf2[_0xab287a(0x17e)]?this[_0xab287a(0x2cd)]():this[_0xab287a(0x2ac)]();}),this[_0x26362a(0x161)][_0x26362a(0x131)][_0x26362a(0x228)](_0x4c94af(this[_0x26362a(0x208)]))[_0x26362a(0x260)](_0x37b8e0=>{const _0xe55046=_0x26362a,_0x32207e=_0x37b8e0[_0xe55046(0xf0)];_0x32207e===_0x1031d0[_0xe55046(0x234)]&&this[_0xe55046(0x18d)](_0x37b8e0),_0x32207e===_0x1031d0[_0xe55046(0x27e)]&&this[_0xe55046(0x177)](_0x37b8e0);}),this[_0x26362a(0x1c8)](this['_commandService'][_0x26362a(0xc7)](_0x489278=>{const _0x5dff9b=_0x26362a,_0x5411f0=_0x489278[_0x5dff9b(0x1b6)];_0x5411f0!=null&&this[_0x5dff9b(0x217)]&&_0x489278['id']===_0x9f2632['id']&&_0x5411f0['unitId']===this[_0x5dff9b(0x1f6)]&&_0x5411f0[_0x5dff9b(0x23d)]===!0x1&&_0x5411f0[_0x5dff9b(0x229)][_0x5dff9b(0xd8)]>0x0&&this['_updateLocalCursor'](_0x5411f0[_0x5dff9b(0x229)]);})),this[_0x26362a(0xf7)][_0x26362a(0x1bc)][_0x26362a(0x228)](_0x4c94af(this[_0x26362a(0x208)]))['subscribe'](_0x12f8d1=>{const _0x3cbe8d=_0x26362a;if((_0x12f8d1==null?void 0x0:_0x12f8d1['unitID'])!==this[_0x3cbe8d(0x1f6)])return;const _0x40ae8d={'eventID':_0x1031d0['UPDATE_CURSOR'],'data':_0x12f8d1};this[_0x3cbe8d(0x18d)](_0x40ae8d);}),this[_0x26362a(0x1c8)](this[_0x26362a(0x297)]['onCommandExecuted'](_0x5998c3=>{const _0x517fae=_0x26362a;if(_0x5998c3[_0x517fae(0x1b6)]==null)return;const _0x2dc014=_0x5998c3[_0x517fae(0x1b6)];if(_0x5998c3['id']!==_0x5eea58['id']||_0x2dc014[_0x517fae(0x24b)]!==this['unitID'])return;const _0x204db8={'id':_0x517fae(0x2c7),'params':_0x2dc014},_0x1e6fbe=this[_0x517fae(0x142)];for(const [_0x19a955,_0x57e312]of _0x1e6fbe){const _0x11e830={'id':_0x517fae(0x2c7),'params':{'unitId':this[_0x517fae(0x1f6)],'actions':null,'textRanges':_0x57e312[_0x517fae(0x229)]}},_0x2fa267=this[_0x517fae(0x104)]['transformMutation'](_0x204db8,_0x11e830,!0x1);if(_0x1d14c8(_0x2fa267))throw _0x2fa267[_0x517fae(0x219)];_0x1e6fbe[_0x517fae(0x102)](_0x19a955,{..._0x57e312,'ranges':_0x2fa267[_0x517fae(0x18f)][_0x517fae(0x1b6)][_0x517fae(0x20c)]});}queueMicrotask(()=>{const _0x5bb4f4=_0x517fae;this[_0x5bb4f4(0x16e)]['next'](_0x1e6fbe);});})));}[_0x5978f9(0x18d)](_0x4f1dcb){const _0xda2575=_0x5978f9;var _0x2723d1,_0x73d404;const {memberID:_0x491f39,selection:_0x3b4ec4}=_0x4f1dcb['data'],_0x53c777=Oi(_0x3b4ec4),_0x32c89e=(_0x73d404=(_0x2723d1=this[_0xda2575(0x12a)][_0xda2575(0x150)](this[_0xda2575(0x1f6)],_0x491f39))==null?void 0x0:_0x2723d1[_0xda2575(0x299)])!=null?_0x73d404:'Unknown\x20user',_0x5970e8={'color':this[_0xda2575(0xcc)][_0xda2575(0x27b)](_0x491f39),'name':_0x32c89e,'ranges':_0x53c777},_0x4d26b7=this[_0xda2575(0x142)];_0x4d26b7[_0xda2575(0x102)](_0x491f39,_0x5970e8),this[_0xda2575(0x16e)][_0xda2575(0x1c6)](_0x4d26b7);}[_0x5978f9(0x177)](_0x1b721b){const _0x299754=_0x5978f9,{memberID:_0x3d7296}=_0x1b721b[_0x299754(0x14f)],_0x11fa85=this[_0x299754(0x142)];_0x11fa85[_0x299754(0x214)](_0x3d7296),this['_cursorInfo$'][_0x299754(0x1c6)](_0x11fa85);}[_0x5978f9(0x2cd)](){const _0x50d50c=_0x5978f9;var _0x2d542c;if(this['_online']=!0x0,((_0x2d542c=this[_0x50d50c(0xf1)]['getFocusedUnit']())==null?void 0x0:_0x2d542c['getUnitId']())!==this['unitID'])return;const _0x2528f5=this[_0x50d50c(0x29a)][_0x50d50c(0x15c)](_0x177a84)[_0x50d50c(0xd2)]();Array['isArray'](_0x2528f5)&&_0x2528f5[_0x50d50c(0xd8)]>0x0&&this[_0x50d50c(0x125)](_0x2528f5);}[_0x5978f9(0x2ac)](){const _0x53ea27=_0x5978f9;this[_0x53ea27(0x217)]=!0x1;}};Ue=Ti([P(0x2,_0x4254b3(_0x49ea94)),P(0x3,_0x4254b3(He)),P(0x4,_0x4254b3(_0x1106ba)),P(0x5,_0x4254b3(Fe)),P(0x6,_0xac990f),P(0x7,_0x4a6374),P(0x8,_0x179029)],Ue);var Ni=Object[_0x5978f9(0x25e)],Ui=(_0x338b8e,_0x411582,_0x150ae0,_0x3ad0cc)=>{const _0x348409=_0x5978f9;for(var _0x310dbc=_0x3ad0cc>0x1?void 0x0:_0x3ad0cc?Ni(_0x411582,_0x150ae0):_0x411582,_0x55fa0a=_0x338b8e[_0x348409(0xd8)]-0x1,_0x213810;_0x55fa0a>=0x0;_0x55fa0a--)(_0x213810=_0x338b8e[_0x55fa0a])&&(_0x310dbc=_0x213810(_0x310dbc)||_0x310dbc);return _0x310dbc;},x=(_0x2df6c8,_0x37522f)=>(_0x5e73c6,_0x4a84d8)=>_0x37522f(_0x5e73c6,_0x4a84d8,_0x2df6c8);const Mi=0x12c,Li=0x64,Pi=()=>{let _0x5d9f92=[],_0x139fc6=!0x1;return _0x618424=>{const _0x1ea0d5=_0x3c22;_0x5d9f92[_0x1ea0d5(0x15a)](_0x618424),_0x139fc6||(_0x139fc6=!0x0,setTimeout(()=>{const _0x17e11f=_0x1ea0d5;_0x5d9f92[_0x17e11f(0x1f2)](_0x1650ca=>_0x1650ca()),_0x5d9f92=[],_0x139fc6=!0x1;}));};};let Me=class extends _0x4f795a{constructor(_0x24023c,_0x594b54,_0x484c6b,_0x450ccf,_0x3fff72,_0x31566b,_0x202087,_0x5719b9){const _0x4a3ce3=_0x5978f9;super(),_(this,_0x4a3ce3(0x217),!0x1),_(this,_0x4a3ce3(0x17c),!0x1),_(this,'_cursorInfo$',new _0x2ec644(new Map())),_(this,_0x4a3ce3(0x209),this[_0x4a3ce3(0x16e)][_0x4a3ce3(0x216)]()),_(this,_0x4a3ce3(0x163),new _0x2ec644([])),_(this,_0x4a3ce3(0x2a4),this[_0x4a3ce3(0x163)][_0x4a3ce3(0x228)](_0x152bf7(Mi))),_(this,_0x4a3ce3(0x125),_0x5b1e9d((_0x45ee13,_0x21687c)=>{const _0x4e420c=_0x4a3ce3,_0x25975a={'eventID':_0x1031d0['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':_0x3b92d0(_0x45ee13,_0x21687c['range'])}};this['_session'][_0x4e420c(0xd0)](_0x25975a,this['unitID']);},Li)),(this[_0x4a3ce3(0x1f6)]=_0x24023c,this[_0x4a3ce3(0x161)]=_0x594b54,this[_0x4a3ce3(0x29a)]=_0x484c6b,this[_0x4a3ce3(0xcc)]=_0x450ccf,this[_0x4a3ce3(0x12a)]=_0x3fff72,this[_0x4a3ce3(0xf1)]=_0x31566b,this[_0x4a3ce3(0x297)]=_0x202087,this[_0x4a3ce3(0x193)]=_0x5719b9);}get[_0x5978f9(0x142)](){const _0xd1513a=_0x5978f9;return this[_0xd1513a(0x16e)][_0xd1513a(0x199)]();}get['roomMembers'](){const _0x154093=_0x5978f9;return this[_0x154093(0x163)][_0x154093(0x199)]();}[_0x5978f9(0x187)](){const _0x5a4a93=_0x5978f9;super[_0x5a4a93(0x187)](),this[_0x5a4a93(0x16e)][_0x5a4a93(0x1c6)](new Map()),this['_cursorInfo$'][_0x5a4a93(0x258)](),this[_0x5a4a93(0x163)][_0x5a4a93(0x1c6)]([]),this[_0x5a4a93(0x163)]['complete']();}[_0x5978f9(0x2c6)](){const _0x4251b8=_0x5978f9;this['_init']||(this[_0x4251b8(0x17c)]=!0x0,this['_session'][_0x4251b8(0x1f4)][_0x4251b8(0x228)](_0x4c94af(this[_0x4251b8(0x208)]))['subscribe'](_0x345f3d=>{const _0x1f01fd=_0x4251b8;_0x345f3d===_0x5cbbf2[_0x1f01fd(0x17e)]?this[_0x1f01fd(0x2cd)]():this[_0x1f01fd(0x2ac)]();}),this[_0x4251b8(0x161)][_0x4251b8(0x131)][_0x4251b8(0x228)](_0x4c94af(this[_0x4251b8(0x208)]))[_0x4251b8(0x260)](_0x34394d=>{const _0x111d11=_0x4251b8,_0x3006a3=_0x34394d[_0x111d11(0xf0)];_0x3006a3===_0x1031d0['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x34394d),_0x3006a3===_0x1031d0[_0x111d11(0x27e)]&&this[_0x111d11(0x177)](_0x34394d);}),this[_0x4251b8(0x1e1)](),this[_0x4251b8(0x1c8)](this[_0x4251b8(0x297)][_0x4251b8(0xc7)](_0x5969d9=>{const _0x5ca535=_0x4251b8;if(this[_0x5ca535(0x217)]&&_0x5969d9['id']===_0x11c160['id']&&_0x5969d9['params']['unitId']===this[_0x5ca535(0x1f6)]){const _0x10f865=_0x5969d9[_0x5ca535(0x1b6)];this[_0x5ca535(0x125)](_0x10f865[_0x5ca535(0x247)],_0x10f865[_0x5ca535(0xe3)][0x0]);}})));}[_0x5978f9(0x18d)](_0x21c42e){const _0x640f07=_0x5978f9;var _0x4afb68,_0x310143;const {memberID:_0x3a7e7c,selection:_0x39a25c}=_0x21c42e[_0x640f07(0x14f)],{sheetName:_0x48735b,range:_0x3449d8}=_0x5f344f(_0x39a25c),_0x13c2db={'name':(_0x310143=(_0x4afb68=this[_0x640f07(0x12a)]['getMember'](this['unitID'],_0x3a7e7c))==null?void 0x0:_0x4afb68['name'])!=null?_0x310143:'Unknown\x20user','range':this['_getMergeRange'](_0x48735b,_0x3449d8),'sheetID':_0x48735b,'color':this[_0x640f07(0xcc)][_0x640f07(0x27b)](_0x3a7e7c),'selection':_0x39a25c},_0x213c4e=this['cursorInfo'];_0x213c4e['set'](_0x3a7e7c,_0x13c2db),this[_0x640f07(0x16e)][_0x640f07(0x1c6)](_0x213c4e);}[_0x5978f9(0x177)](_0x1b3874){const _0x419e78=_0x5978f9,{memberID:_0x1deebf}=_0x1b3874['data'],_0x2f2f8e=this[_0x419e78(0x142)];_0x2f2f8e[_0x419e78(0x214)](_0x1deebf),this['_cursorInfo$'][_0x419e78(0x1c6)](_0x2f2f8e);}['_getMergeRange'](_0x70cd81,_0x2544b7){const _0x5ed2d0=_0x5978f9;var _0x22f7fd,_0x193b3e;const _0x575014=(_0x193b3e=(_0x22f7fd=this['_univerInstanceService'][_0x5ed2d0(0x20e)](this[_0x5ed2d0(0x1f6)]))==null?void 0x0:_0x22f7fd[_0x5ed2d0(0x11a)](_0x70cd81))==null?void 0x0:_0x193b3e[_0x5ed2d0(0x128)]();return(_0x575014==null?void 0x0:_0x575014[_0x5ed2d0(0x2b1)](_0x28b29d=>_0x5eb73e[_0x5ed2d0(0x1ef)](_0x28b29d,_0x2544b7)))||_0x2544b7;}[_0x5978f9(0x1e1)](){const _0x1bf422=_0x5978f9,_0x1e146f=new _0x58ae22(),_0x1974aa=Pi(),_0x45f78e=()=>{const _0x33d7a0=_0x3c22;_0x1e146f[_0x33d7a0(0x187)]();const _0x503eba=(_0x2e99d7,_0xf61f03,_0xb010fd,_0x21e530)=>{const _0x2598d1=_0x33d7a0;let _0x4d5b57=[];switch(_0x2e99d7['id']){case _0x595c6b[_0x2598d1(0x20d)]:{_0x4d5b57=_0x4b547f(_0x2e99d7,_0x21e530);break;}case _0x595c6b['DeleteRangeMoveUpCommandId']:{_0x4d5b57=_0x473e0c(_0x2e99d7,_0x21e530);break;}case _0x595c6b[_0x2598d1(0x1cb)]:{_0x4d5b57=_0xd36b26(_0x2e99d7,_0x21e530);break;}case _0x595c6b['InsertRangeMoveDownCommandId']:{_0x4d5b57=_0x2c05fd(_0x2e99d7,_0x21e530);break;}case _0x595c6b[_0x2598d1(0x10d)]:{_0x4d5b57=_0x471f7f(_0x2e99d7,_0x21e530);break;}case _0x595c6b[_0x2598d1(0x106)]:{_0x4d5b57=_0x5290c5(_0x2e99d7,_0x21e530);break;}case _0x595c6b[_0x2598d1(0x137)]:{_0x4d5b57=_0x5a5283(_0x2e99d7,_0x21e530);break;}case _0x595c6b['RemoveColCommandId']:{_0x4d5b57=_0x41f1ee(_0x2e99d7,_0x21e530);break;}case _0x595c6b[_0x2598d1(0x1f1)]:{_0x4d5b57=_0x2f0d9d(_0x2e99d7,_0x21e530);break;}}const _0x311f35=_0x4ae282(_0x4d5b57,_0x21e530),_0x5eca42=this['cursorInfo'][_0x2598d1(0x15c)](_0xf61f03);if(_0x5eca42&&_0x311f35){const _0x2d59a2={..._0x5eca42,'range':_0x311f35};this[_0x2598d1(0x142)][_0x2598d1(0x102)](_0xf61f03,_0x2d59a2),_0x1974aa(()=>{const _0x249cc4=_0x2598d1,_0x18c4c1=this[_0x249cc4(0x193)][_0x249cc4(0x11f)](_0x311f35,_0x429d2b=>(_0x18c4c1['dispose'](),_0x503eba(_0x429d2b,_0xf61f03,_0xb010fd,_0x311f35)));_0x1e146f[_0x249cc4(0x12b)](_0x18c4c1);});}return{'redos':[],'undos':[]};};this[_0x33d7a0(0x142)][_0x33d7a0(0x1f2)]((_0x453673,_0x2db21d)=>{const _0x5a96b7=_0x33d7a0,{range:_0x1b8848,sheetID:_0x3736e1}=_0x453673,_0x1234a6=this[_0x5a96b7(0x193)][_0x5a96b7(0x11f)](_0x1b8848,_0x4ef7dc=>(_0x1234a6[_0x5a96b7(0x187)](),_0x503eba(_0x4ef7dc,_0x2db21d,_0x3736e1,_0x1b8848)));_0x1e146f[_0x5a96b7(0x12b)](_0x1234a6);});};this[_0x1bf422(0x1c8)](_0x236c59(this[_0x1bf422(0x16e)]['subscribe'](()=>{_0x45f78e();})));}['_toggleOnline'](){const _0x23f7a1=_0x5978f9;var _0x48caa0,_0x34071f;if(this['_online']=!0x0,((_0x48caa0=this[_0x23f7a1(0xf1)][_0x23f7a1(0x2aa)]())==null?void 0x0:_0x48caa0[_0x23f7a1(0x273)]())!==this[_0x23f7a1(0x1f6)])return;const _0x92178a=(_0x34071f=this[_0x23f7a1(0x29a)][_0x23f7a1(0x15c)](_0x37aeb5)['getCurrentSelections']())==null?void 0x0:_0x34071f[0x0],_0x52e7a5=this[_0x23f7a1(0xf1)][_0x23f7a1(0x18e)](_0x12c7d5[_0x23f7a1(0xe2)])[_0x23f7a1(0x107)]();_0x92178a&&_0x52e7a5&&this[_0x23f7a1(0x125)](_0x52e7a5['getSheetId'](),_0x92178a);}[_0x5978f9(0x2ac)](){const _0x33e4e9=_0x5978f9;this[_0x33e4e9(0x217)]=!0x1;}};Me=Ui([x(0x2,_0x4254b3(_0x49ea94)),x(0x3,_0x4254b3(He)),x(0x4,_0x4254b3(_0x1106ba)),x(0x5,_0x4a6374),x(0x6,_0x179029),x(0x7,_0x4254b3(_0x318afe))],Me);var wi=Object[_0x5978f9(0x25e)],Ai=(_0x428bfb,_0x114b39,_0x7d143f,_0x1336fa)=>{const _0x1626d5=_0x5978f9;for(var _0x108a70=_0x1336fa>0x1?void 0x0:_0x1336fa?wi(_0x114b39,_0x7d143f):_0x114b39,_0x26c51f=_0x428bfb[_0x1626d5(0xd8)]-0x1,_0x7bf9b4;_0x26c51f>=0x0;_0x26c51f--)(_0x7bf9b4=_0x428bfb[_0x26c51f])&&(_0x108a70=_0x7bf9b4(_0x108a70)||_0x108a70);return _0x108a70;},me=(_0x15c8c2,_0x1fb08a)=>(_0x23b0ad,_0x2c4ea3)=>_0x1fb08a(_0x23b0ad,_0x2c4ea3,_0x15c8c2);let F=class extends _0x4f795a{constructor(_0x33077b,_0x271be9,_0x54654a){const _0x28de1c=_0x5978f9;super(),_(this,_0x28de1c(0x22d),new Map()),_(this,_0x28de1c(0x2c5),new _0x5d7ab6()),(this['_univerInstanceService']=_0x33077b,this[_0x28de1c(0x29a)]=_0x271be9,this['_collabSessionService']=_0x54654a,this['_init']());}[_0x5978f9(0x187)](){const _0x4ef74d=_0x5978f9;super['dispose'](),this['_entityInit$'][_0x4ef74d(0x258)](),this[_0x4ef74d(0x22d)][_0x4ef74d(0x1f2)](_0x19ec16=>_0x19ec16[_0x4ef74d(0x187)]());}[_0x5978f9(0x139)](_0x414cbb){const _0xf3c3fe=_0x5978f9;return this[_0xf3c3fe(0x22d)][_0xf3c3fe(0x267)](_0x414cbb)?this[_0xf3c3fe(0x22d)]['get'](_0x414cbb)['cursorInfo$']:this[_0xf3c3fe(0x2c5)][_0xf3c3fe(0x228)](_0x11708d(_0x5d567a=>_0x5d567a[_0xf3c3fe(0x1f6)]===_0x414cbb),_0xd33efc(_0x2375a7=>_0x2375a7[_0xf3c3fe(0x209)]));}['_init'](){const _0x4ffb64=_0x5978f9;this[_0x4ffb64(0xf1)][_0x4ffb64(0x1e9)](_0x12c7d5['UNIVER_SHEET'])['pipe'](_0x4c94af(this[_0x4ffb64(0x208)]))[_0x4ffb64(0x260)](async _0x14eb47=>{const _0x20b5af=_0x4ffb64,_0x42426b=_0x14eb47['getUnitId'](),_0xb6c183=await this['_startSheetCollabCursor'](_0x42426b);this[_0x20b5af(0x2c5)][_0x20b5af(0x1c6)](_0xb6c183),this[_0x20b5af(0x22d)]['set'](_0x42426b,_0xb6c183);}),this[_0x4ffb64(0xf1)][_0x4ffb64(0x1e9)](_0x12c7d5['UNIVER_DOC'])[_0x4ffb64(0x228)](_0x4c94af(this[_0x4ffb64(0x208)]))[_0x4ffb64(0x228)](_0x11708d(_0x51b658=>!_0x51b658[_0x4ffb64(0x273)]()[_0x4ffb64(0x133)]('__')))['subscribe'](async _0x45b905=>{const _0x84fca1=_0x4ffb64,_0x5722ad=_0x45b905[_0x84fca1(0x273)](),_0x3fb52e=await this[_0x84fca1(0x16c)](_0x5722ad);this[_0x84fca1(0x2c5)][_0x84fca1(0x1c6)](_0x3fb52e),this[_0x84fca1(0x22d)][_0x84fca1(0x102)](_0x5722ad,_0x3fb52e);}),_0x1b622e(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x12c7d5[_0x4ffb64(0x16b)]),this['_univerInstanceService'][_0x4ffb64(0x197)](_0x12c7d5[_0x4ffb64(0xe2)]))['pipe'](_0x4c94af(this[_0x4ffb64(0x208)]))['subscribe'](_0x469737=>{const _0x38652e=_0x4ffb64,_0x38bd68=_0x469737[_0x38652e(0x273)](),_0x2174b7=this[_0x38652e(0x22d)][_0x38652e(0x15c)](_0x38bd68);_0x2174b7&&(_0x2174b7[_0x38652e(0x187)](),this[_0x38652e(0x22d)]['delete'](_0x38bd68));});}async[_0x5978f9(0x15e)](_0x1b4728){const _0xb4e936=_0x5978f9,_0x3d1a24=await this[_0xb4e936(0x2ce)][_0xb4e936(0xda)](_0x1b4728),_0xfaa748=this[_0xb4e936(0x29a)][_0xb4e936(0xe6)](Me,_0x1b4728,_0x3d1a24);return _0xfaa748[_0xb4e936(0x2c6)](),_0xfaa748;}async['_startDocCollabCursor'](_0xcedfb7){const _0x7b0b0b=_0x5978f9,_0x5b5c53=await this['_collabSessionService'][_0x7b0b0b(0xda)](_0xcedfb7),_0x329bc5=this[_0x7b0b0b(0x29a)][_0x7b0b0b(0xe6)](Ue,_0xcedfb7,_0x5b5c53);return _0x329bc5[_0x7b0b0b(0x2c6)](),_0x329bc5;}};F=Ai([me(0x0,_0x4a6374),me(0x1,_0x4254b3(_0x49ea94)),me(0x2,_0x4254b3(_0x3f05f9))],F);function _0x3c22(_0x300852,_0x76a910){const _0x2c9d9a=_0x2c9d();return _0x3c22=function(_0x3c223a,_0x281f59){_0x3c223a=_0x3c223a-0xc6;let _0x4c5c53=_0x2c9d9a[_0x3c223a];return _0x4c5c53;},_0x3c22(_0x300852,_0x76a910);}const J=0x14,Qe=0xc8,Ie=0x4,yi=0x5;function $i(_0x11176f,_0x3ad202){const _0x5638b4=_0x5978f9;let {radius:_0x30870f,width:_0x29ff71,height:_0x8a7b01}=_0x3ad202;_0x30870f=_0x30870f!=null?_0x30870f:0x0,_0x29ff71=_0x29ff71!=null?_0x29ff71:0x1e,_0x8a7b01=_0x8a7b01!=null?_0x8a7b01:0x1e;let _0x42dbd=0x0,_0x3c5fd6=0x0,_0x10815f=0x0;_0x42dbd=_0x3c5fd6=_0x10815f=Math['min'](_0x30870f,_0x29ff71/0x2,_0x8a7b01/0x2),_0x11176f[_0x5638b4(0xfe)](),_0x11176f[_0x5638b4(0x19f)](_0x42dbd,0x0),_0x11176f[_0x5638b4(0x203)](_0x29ff71-_0x3c5fd6,0x0),_0x11176f['arc'](_0x29ff71-_0x3c5fd6,_0x3c5fd6,_0x3c5fd6,Math['PI']*0x3/0x2,0x0,!0x1),_0x11176f[_0x5638b4(0x203)](_0x29ff71,_0x8a7b01-_0x10815f),_0x11176f[_0x5638b4(0x17f)](_0x29ff71-_0x10815f,_0x8a7b01-_0x10815f,_0x10815f,0x0,Math['PI']/0x2,!0x1),_0x11176f[_0x5638b4(0x203)](0x0,_0x8a7b01),_0x11176f[_0x5638b4(0x203)](0x0,_0x42dbd),_0x11176f['arc'](_0x42dbd,_0x42dbd,_0x42dbd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x11176f[_0x5638b4(0x1bf)](),_0x3ad202['fill']&&(_0x11176f[_0x5638b4(0x201)](),_0x11176f[_0x5638b4(0x126)]=_0x3ad202[_0x5638b4(0x1af)],_0x3ad202[_0x5638b4(0x2cc)]===_0x5638b4(0xfd)?_0x11176f[_0x5638b4(0x1af)](_0x5638b4(0xfd)):_0x11176f['fill'](),_0x11176f[_0x5638b4(0x1dc)]());}class ue extends _0x445c68{constructor(_0x585f8f,_0x3cc4a0){const _0x545000=_0x5978f9;super(_0x585f8f,_0x3cc4a0),_(this,'color'),_(this,_0x545000(0x188)),(this['color']=_0x3cc4a0==null?void 0x0:_0x3cc4a0[_0x545000(0x1df)],this[_0x545000(0x188)]=_0x3cc4a0==null?void 0x0:_0x3cc4a0[_0x545000(0x188)]);}static['drawWith'](_0x3fe3cb,_0x136269){const _0x1fecc5=_0x5978f9,{text:_0x561df4,color:_0x792400}=_0x136269;_0x3fe3cb[_0x1fecc5(0x201)](),_0x3fe3cb[_0x1fecc5(0x2cb)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x4cecc9=_0x3fe3cb[_0x1fecc5(0x14c)](_0x561df4)['width'],_0x5a8b63=Math[_0x1fecc5(0x1ea)](_0x4cecc9+0x2*Ie,Qe);$i(_0x3fe3cb,{'height':J,'radius':0x4,'width':_0x5a8b63,'fill':_0x792400}),_0x3fe3cb[_0x1fecc5(0x126)]='#FFF';const _0x1c7d44=Ie,_0x47125f=J-yi,_0x270df7=Qe-0x2*Ie;if(_0x4cecc9>_0x270df7){let _0x558f58='',_0x2fd8e8=0x0;for(const _0x1e82c0 of _0x561df4){const _0x4c0ab9=_0x3fe3cb[_0x1fecc5(0x14c)](_0x1e82c0)[_0x1fecc5(0x12e)];if(_0x2fd8e8+_0x4c0ab9<=_0x270df7-_0x3fe3cb[_0x1fecc5(0x14c)](_0x1fecc5(0x173))[_0x1fecc5(0x12e)])_0x558f58+=_0x1e82c0,_0x2fd8e8+=_0x4c0ab9;else{_0x558f58+=_0x1fecc5(0x173);break;}}_0x3fe3cb[_0x1fecc5(0x1cf)](_0x558f58,_0x1c7d44,_0x47125f);}else _0x3fe3cb['fillText'](_0x561df4,_0x1c7d44,_0x47125f);_0x3fe3cb[_0x1fecc5(0x1dc)]();}[_0x5978f9(0x156)](_0x17327e){ue['drawWith'](_0x17327e,this);}}const ve='collab-text-anchor-',xi=_0x5978f9(0x230),Bi='collab-rect-range-',K=0x6,ki=1.5,ge=0x4,Hi=1.5,Fi=_0x5978f9(0x2a6);class qe{constructor(_0x2a5fa4,_0x58e26f,_0xa71f4a,_0x56df2e){const _0x5964fe=_0x5978f9;_(this,'_shapes',[]),_(this,_0x5964fe(0x127),null),_(this,'_textBubble',null),_(this,_0x5964fe(0x2ad),null),_(this,_0x5964fe(0x1d5),null),_(this,_0x5964fe(0x192),null),(this[_0x5964fe(0x2a5)]=_0x2a5fa4,this[_0x5964fe(0x29d)]=_0x58e26f,this[_0x5964fe(0x23b)]=_0xa71f4a,this[_0x5964fe(0xe0)]=_0x56df2e,this['_render']());}set[_0x5978f9(0x295)](_0x13038a){const _0x9c508f=_0x5978f9;_0x13038a?(this[_0x9c508f(0x2ad)]&&this[_0x9c508f(0x2ad)][_0x9c508f(0x2ae)](),this[_0x9c508f(0x200)]&&this[_0x9c508f(0x200)]['show']()):(this[_0x9c508f(0x2ad)]&&this[_0x9c508f(0x2ad)]['show'](),this['_textBubble']&&this[_0x9c508f(0x200)]['hide']());}[_0x5978f9(0x187)](){const _0xf0ebe=_0x5978f9;for(const _0x4d6f78 of this[_0xf0ebe(0xd4)])_0x4d6f78[_0xf0ebe(0x187)]();this[_0xf0ebe(0x200)]&&this[_0xf0ebe(0x200)][_0xf0ebe(0x187)](),this[_0xf0ebe(0x2ad)]&&this[_0xf0ebe(0x2ad)][_0xf0ebe(0x187)](),this[_0xf0ebe(0x127)]&&this[_0xf0ebe(0x127)][_0xf0ebe(0x187)](),this[_0xf0ebe(0x192)]&&this[_0xf0ebe(0x192)]();}[_0x5978f9(0x118)](){const _0x384d57=_0x5978f9;var _0x6fcc50;const {_docSkeleton:_0x5d774a,_document:_0xab45f1}=this,{color:_0x12b389,name:_0x5683c4,ranges:_0x20abde}=this[_0x384d57(0x2a5)],_0x3dfd29=_0xab45f1[_0x384d57(0x1ce)](),{docsLeft:_0x4078d5,docsTop:_0x5f30c3}=_0x3dfd29,_0x592f6c=new _0x5a9ff8(_0x3dfd29,_0x5d774a);for(const {startOffset:_0x4625e1,endOffset:_0x39cb17,rangeType:_0x2fcd87,segmentId:_0x790669,segmentPage:_0x18805f,collapsed:_0x2ec545,isActive:_0xc2ffc1}of _0x20abde){const _0x4a83df=_0x5d774a['findNodePositionByCharIndex'](_0x4625e1,!0x0,_0x790669,_0x18805f);let _0xdd97c5=_0x5d774a[_0x384d57(0x147)](_0x39cb17,!0x0,_0x790669,_0x18805f);if(_0xdd97c5==null&&(_0xdd97c5=_0x5d774a[_0x384d57(0x147)](_0x39cb17-0x1,!0x1,_0x790669,_0x18805f)),_0xc2ffc1){const {contentBoxPointGroup:_0x28ae04}=_0x592f6c[_0x384d57(0x190)](_0xdd97c5,_0xdd97c5);if(_0x28ae04[_0x384d57(0xd8)]===0x0)continue;this[_0x384d57(0xe8)](_0x12b389,_0x28ae04,_0x4078d5,_0x5f30c3,_0x5683c4),this[_0x384d57(0x192)]=this[_0x384d57(0x12f)]();}if(_0x4a83df&&_0xdd97c5){if(_0x2fcd87===_0x369fc5[_0x384d57(0x243)]){const _0xf66929=new _0x36de77(_0x3dfd29,_0x5d774a),{pointGroup:_0x129fda}=(_0x6fcc50=_0xf66929['getRangePointData'](_0x4a83df,_0xdd97c5))!=null?_0x6fcc50:{};if(_0x129fda==null||_0x129fda[_0x384d57(0xd8)]===0x0)continue;this[_0x384d57(0x13c)](_0x12b389,_0x129fda,_0x4078d5,_0x5f30c3);}else{if(!_0x2ec545){const {borderBoxPointGroup:_0x16585a}=_0x592f6c[_0x384d57(0x190)](_0x4a83df,_0xdd97c5);if(_0x16585a[_0x384d57(0xd8)]===0x0)continue;this[_0x384d57(0x123)](_0x12b389,_0x16585a,_0x4078d5,_0x5f30c3);}}}}}[_0x5978f9(0xe8)](_0x54e9e2,_0x1a7053,_0x35681e,_0x4ad7df,_0x106342){const _0x4bfd62=_0x5978f9,_0x606f33=this[_0x4bfd62(0x1a6)](_0x1a7053),{left:_0x430d0e,top:_0x4d5f23,height:_0x3ce521}=_0x606f33,_0x3fa6f4=this[_0x4bfd62(0x1ac)](),_0x47b922=Hi/_0x3fa6f4,_0x23a9be=new _0x1241ee(ve+_0xf28c22(K),{'left':_0x430d0e+_0x35681e-_0x47b922,'top':_0x4d5f23+_0x4ad7df,'height':_0x3ce521,'width':ki,'fill':_0x54e9e2||_0x5701e8(_0x721eaf[_0x4bfd62(0x263)],0x0),'strokeWidth':_0x47b922,'stroke':Fi,'evented':!0x0});this[_0x4bfd62(0x127)]=_0x23a9be,this[_0x4bfd62(0x29d)][_0x4bfd62(0x231)](_0x23a9be,_0x257fd2);const _0x29df59=new _0x1241ee(ve+_0xf28c22(K),{'left':_0x430d0e+_0x35681e-_0x47b922,'top':_0x4d5f23+_0x4ad7df-ge/0x2,'height':ge,'width':ge,'fill':_0x54e9e2||_0x5701e8(_0x721eaf[_0x4bfd62(0x263)],0x0),'strokeWidth':0x0,'stroke':_0x54e9e2||_0x5701e8(_0x721eaf[_0x4bfd62(0x263)],0x0),'evented':!0x1});this[_0x4bfd62(0x2ad)]=_0x29df59,this['_scene'][_0x4bfd62(0x231)](_0x29df59,_0x257fd2);const _0x4d037d=new ue(ve+_0xf28c22(K),{'left':_0x430d0e+_0x35681e-_0x47b922,'top':_0x4d5f23+_0x4ad7df-J,'text':_0x106342,'color':_0x54e9e2});this['_textBubble']=_0x4d037d,this[_0x4bfd62(0x29d)][_0x4bfd62(0x231)](_0x4d037d,_0x257fd2),this['_hover']=!0x1;}[_0x5978f9(0x12f)](){const _0x3e940e=_0x5978f9,_0x4b7f8e=this[_0x3e940e(0x127)][_0x3e940e(0x19b)][_0x3e940e(0x285)](()=>{const _0x18759e=_0x3e940e;this[_0x18759e(0x295)]=!0x0;}),_0xf020f1=this['_anchor']['onPointerLeave$'][_0x3e940e(0x285)](()=>{const _0x2f7c2d=_0x3e940e;this[_0x2f7c2d(0x1d5)]&&clearTimeout(this[_0x2f7c2d(0x1d5)]),this[_0x2f7c2d(0x1d5)]=setTimeout(()=>{const _0x14e127=_0x2f7c2d;this[_0x14e127(0x295)]=!0x1;},0x7d0);});return()=>{const _0x2c1f26=_0x3e940e;_0x4b7f8e[_0x2c1f26(0xd6)](),_0xf020f1[_0x2c1f26(0xd6)]();};}[_0x5978f9(0x123)](_0x5679d9,_0x15a6ed,_0x53793a,_0x1156b1){const _0xc1ee93=_0x5978f9,_0x3c5087=new _0x1c3c0d(_0x5679d9)[_0xc1ee93(0x26b)](0.2)[_0xc1ee93(0x291)](),_0x24c11f=new _0x383636(xi+_0xf28c22(K),{'pointsGroup':_0x15a6ed,'fill':_0x3c5087||_0x5701e8(_0x721eaf[_0xc1ee93(0x263)],0.2),'left':_0x53793a,'top':_0x1156b1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xc1ee93(0xd4)][_0xc1ee93(0x15a)](_0x24c11f),this[_0xc1ee93(0x29d)][_0xc1ee93(0x231)](_0x24c11f,_0x257fd2);}[_0x5978f9(0x13c)](_0x1c5976,_0x2d6ee0,_0x5f4daa,_0x18158c){const _0x46c3eb=_0x5978f9,_0x225565=new _0x1c3c0d(_0x1c5976)[_0x46c3eb(0x26b)](0.2)[_0x46c3eb(0x291)](),_0x1a5704=new _0x383636(Bi+_0xf28c22(K),{'pointsGroup':_0x2d6ee0,'fill':_0x225565||_0x5701e8(_0x721eaf[_0x46c3eb(0x263)],0.2),'left':_0x5f4daa,'top':_0x18158c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x46c3eb(0x15a)](_0x1a5704),this['_scene'][_0x46c3eb(0x231)](_0x1a5704,_0x257fd2);}[_0x5978f9(0x1a6)](_0x13b23d){const _0x44e561=_0x13b23d[0x0],_0x152a78=_0x44e561[0x0],_0x1a608f=_0x44e561[0x2],{x:_0x422d65,y:_0x4ed842}=_0x152a78,{x:_0x165445,y:_0x17dedd}=_0x1a608f;return{'left':_0x422d65,'top':_0x4ed842,'width':_0x165445-_0x422d65,'height':_0x17dedd-_0x4ed842};}['_getScale'](){const _0x14e6cb=_0x5978f9,{scaleX:_0x105ae6,scaleY:_0x54afe1}=this[_0x14e6cb(0x29d)][_0x14e6cb(0x280)]();return Math[_0x14e6cb(0x109)](_0x105ae6,_0x54afe1);}}var Yi=Object[_0x5978f9(0x25e)],ji=(_0x7e4295,_0x1a63c1,_0x1ad573,_0x51a299)=>{for(var _0x4d63b3=_0x51a299>0x1?void 0x0:_0x51a299?Yi(_0x1a63c1,_0x1ad573):_0x1a63c1,_0x721485=_0x7e4295['length']-0x1,_0x1b0764;_0x721485>=0x0;_0x721485--)(_0x1b0764=_0x7e4295[_0x721485])&&(_0x4d63b3=_0x1b0764(_0x4d63b3)||_0x4d63b3);return _0x4d63b3;},ee=(_0x3c38c0,_0x3d4e5b)=>(_0x36888d,_0x4ecd75)=>_0x3d4e5b(_0x36888d,_0x4ecd75,_0x3c38c0);let Le=class extends _0x4f795a{constructor(_0x2668c0,_0x9e4d38,_0xc62971,_0x101f36,_0x19eb6d){const _0x539bcc=_0x5978f9;super(),_(this,_0x539bcc(0x180),[]),_(this,_0x539bcc(0x239),[]),(this[_0x539bcc(0x26d)]=_0x2668c0,this[_0x539bcc(0x157)]=_0x9e4d38,this['_collabCursorController']=_0xc62971,this[_0x539bcc(0x297)]=_0x101f36,this[_0x539bcc(0x2ab)]=_0x19eb6d,this[_0x539bcc(0x17c)]());}[_0x5978f9(0x17c)](){const _0x20bd42=_0x5978f9,_0x1ce8ed=this[_0x20bd42(0x26d)][_0x20bd42(0x24b)],_0x3034a6=this[_0x20bd42(0x157)];this[_0x20bd42(0x1c8)](_0x35b352([this[_0x20bd42(0x15d)]['getCollabCursors$'](_0x1ce8ed),this[_0x20bd42(0x2ab)][_0x20bd42(0x16d)]])[_0x20bd42(0x228)](_0x40da09(([_0x24b1e1,_0x949501])=>({'skeleton':_0x3034a6[_0x20bd42(0xef)](),'cursors':[..._0x24b1e1['values']()][_0x20bd42(0x176)](_0x25544d=>({..._0x25544d,'color':this['_themeService']['getColorFromTheme'](_0x25544d['color'])}))})))[_0x20bd42(0x260)](_0x108a11=>{const _0x14c5fa=_0x20bd42;if(this[_0x14c5fa(0xec)](),_0x108a11){const {skeleton:_0x4552e4,cursors:_0xf41070}=_0x108a11;this['_updateCollabCursors'](_0x4552e4,_0xf41070);}})),this['_initResize'](),this[_0x20bd42(0x249)]();}['_updateCollabCursors'](_0x327330,_0x4e9ee5){const _0x59ec72=_0x5978f9,{scene:_0x89f617,mainComponent:_0x1db224}=this[_0x59ec72(0x26d)],_0x1894eb=_0x4e9ee5[_0x59ec72(0x101)](_0x2edd72=>new qe(_0x2edd72,_0x89f617,_0x327330,_0x1db224));this[_0x59ec72(0x180)]=_0x1894eb,this[_0x59ec72(0x239)]=_0x4e9ee5;}[_0x5978f9(0x296)](){const _0x20e8bf=_0x5978f9;this[_0x20e8bf(0xec)]();const {scene:_0x36ae4e,mainComponent:_0x2be9cd}=this[_0x20e8bf(0x26d)],_0x40c1ec=this['_docSkeletonManagerService'][_0x20e8bf(0xef)](),_0x3ea071=this[_0x20e8bf(0x239)][_0x20e8bf(0x101)](_0x13f5f7=>new qe(_0x13f5f7,_0x36ae4e,_0x40c1ec,_0x2be9cd));this[_0x20e8bf(0x180)]=_0x3ea071;}[_0x5978f9(0xec)](){const _0x249b5a=_0x5978f9;this[_0x249b5a(0x180)][_0x249b5a(0x1f2)](_0x24a33c=>_0x24a33c[_0x249b5a(0x187)]()),this['_cursorShapes']=[];}[_0x5978f9(0x249)](){const _0x2aa4d4=_0x5978f9,_0x25ba29=[_0x42ed27['id']];this[_0x2aa4d4(0x1c8)](this['_commandService']['onCommandExecuted'](_0x41aaa1=>{const _0x2c7b0c=_0x2aa4d4;_0x25ba29[_0x2c7b0c(0x174)](_0x41aaa1['id'])&&_0x41aaa1[_0x2c7b0c(0x1b6)][_0x2c7b0c(0x24b)]===this[_0x2c7b0c(0x26d)][_0x2c7b0c(0x24b)]&&this[_0x2c7b0c(0x296)]();}));}['_initResize'](){const _0x461e02=_0x5978f9;this['disposeWithMe'](_0x18c26e(this['_context']['engine'][_0x461e02(0x103)])['pipe'](_0x1274ae(_0xa0c7cc=>_0xa0c7cc[_0x461e02(0x204)]===_0x4c5bb0[_0x461e02(0xfc)]),_0x14045f(0x10))[_0x461e02(0x260)](()=>{const _0x12154c=_0x461e02;this[_0x12154c(0x296)]();}));}};Le=ji([ee(0x1,_0x4254b3(_0x4102fb)),ee(0x2,_0x4254b3(F)),ee(0x3,_0x179029),ee(0x4,_0x4254b3(_0x4906d5))],Le);const Vi=0x1,Wi=1.5;class Xi extends _0x445c68{constructor(_0x39571e,_0xa51433){const _0xbe70c2=_0x5978f9;super(_0x39571e,_0xa51433),_(this,_0xbe70c2(0x1f7)),_(this,_0xbe70c2(0x1d7),!0x1),_(this,_0xbe70c2(0x1d1)),_(this,_0xbe70c2(0x28a),''),_(this,_0xbe70c2(0x261),_0xbe70c2(0xdf)),_(this,_0xbe70c2(0x23e)),(_0xa51433&&this['setShapeProps'](_0xa51433),this['onPointerEnter$'][_0xbe70c2(0x285)](()=>this[_0xbe70c2(0xf9)]({'hovered':!0x0})),this[_0xbe70c2(0x153)][_0xbe70c2(0x285)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x164a21){const _0x28443f=_0x5978f9;var _0x42bbe5,_0x39970c,_0x50ad8e,_0x568324,_0x3621af,_0x22be29;this['_color']=(_0x42bbe5=_0x164a21[_0x28443f(0x1df)])!=null?_0x42bbe5:this[_0x28443f(0x1f7)],this[_0x28443f(0x1d7)]=(_0x39970c=_0x164a21['hovered'])!=null?_0x39970c:this[_0x28443f(0x1d7)],this[_0x28443f(0x1d1)]=(_0x50ad8e=_0x164a21[_0x28443f(0x13f)])!=null?_0x50ad8e:this[_0x28443f(0x1d1)],this[_0x28443f(0x28a)]=(_0x568324=_0x164a21[_0x28443f(0x299)])!=null?_0x568324:this[_0x28443f(0x28a)],this[_0x28443f(0x261)]=(_0x3621af=_0x164a21['labelPosition'])!=null?_0x3621af:this[_0x28443f(0x261)],this[_0x28443f(0x23e)]=(_0x22be29=_0x164a21[_0x28443f(0x2ca)])!=null?_0x22be29:this[_0x28443f(0x23e)],this[_0x28443f(0x152)]({'width':_0x164a21['width'],'height':_0x164a21[_0x28443f(0x28b)]});}[_0x5978f9(0x141)](_0x2f6e90){const _0x139b0d=_0x5978f9,{row:_0x2c4577,column:_0x12ca41}=_0x2f6e90;if(_0x2c4577>=this[_0x139b0d(0x1d1)][_0x139b0d(0x252)]&&_0x2c4577<=this[_0x139b0d(0x1d1)][_0x139b0d(0x1c4)]&&_0x12ca41>=this['_range'][_0x139b0d(0xed)]&&_0x12ca41<=this[_0x139b0d(0x1d1)][_0x139b0d(0x1a5)]){this[_0x139b0d(0xf9)]({'hovered':!0x0});return;}this[_0x139b0d(0xf9)]({'hovered':!0x1});}[_0x5978f9(0xfb)](_0x5b0f4e){return!0x1;}[_0x5978f9(0x156)](_0x1f4f29){const _0x53af09=_0x5978f9;_0x1241ee[_0x53af09(0x298)](_0x1f4f29,{'width':this[_0x53af09(0x12e)],'height':this['height'],'strokeWidth':Wi,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x53af09(0x23e)]}),this[_0x53af09(0x1d7)]&&(_0x1f4f29['save'](),_0x1f4f29[_0x53af09(0x140)](0x1,0x0,0x0,0x1,this[_0x53af09(0x12e)],this[_0x53af09(0x261)]===_0x53af09(0xdd)?0x0:-J),ue[_0x53af09(0x298)](_0x1f4f29,{'text':this[_0x53af09(0x28a)],'color':this[_0x53af09(0x1f7)]}),_0x1f4f29[_0x53af09(0x1dc)]());}}var Gi=Object[_0x5978f9(0x25e)],Ki=(_0x17c9d5,_0x439c31,_0x2442ad,_0x27c589)=>{const _0x1f0c9f=_0x5978f9;for(var _0x36910c=_0x27c589>0x1?void 0x0:_0x27c589?Gi(_0x439c31,_0x2442ad):_0x439c31,_0x2ba2fb=_0x17c9d5[_0x1f0c9f(0xd8)]-0x1,_0x580480;_0x2ba2fb>=0x0;_0x2ba2fb--)(_0x580480=_0x17c9d5[_0x2ba2fb])&&(_0x36910c=_0x580480(_0x36910c)||_0x36910c);return _0x36910c;},pe=(_0x495187,_0x1518e7)=>(_0x516c4b,_0x49512e)=>_0x1518e7(_0x516c4b,_0x49512e,_0x495187);const zi=0x1389;let Pe=class extends _0x4f795a{constructor(_0x382f8d,_0x27d28f,_0x318cb8,_0x433912){const _0x4507c8=_0x5978f9;super(),_(this,_0x4507c8(0x239),new Set()),_(this,_0x4507c8(0x269),null),(this['_context']=_0x382f8d,this[_0x4507c8(0x257)]=_0x27d28f,this['_collabCursorController']=_0x318cb8,this[_0x4507c8(0x2ab)]=_0x433912,this[_0x4507c8(0x17c)]());}['_init'](){const _0x211a0e=_0x5978f9;this[_0x211a0e(0x257)]['currentSkeleton$'][_0x211a0e(0x228)](_0x5968d1(this[_0x211a0e(0x208)]),_0x1e2186(_0x301957=>{const _0x518440=_0x211a0e;if(_0x301957){const _0x47a045=_0x301957[_0x518440(0x1ad)];return _0x35b352(this['_collabCursorController'][_0x518440(0x139)](this[_0x518440(0x26d)][_0x518440(0x24b)]),this[_0x518440(0x2ab)]['currentTheme$'])[_0x518440(0x228)](_0x40da09(([_0x13e66b,_0x591254])=>{const _0x4aa531=_0x518440,_0x42a771=new Map();return _0x13e66b[_0x4aa531(0x1f2)]((_0x30925a,_0x36ff92)=>{const _0x30e1cf=_0x4aa531;if(_0x30925a[_0x30e1cf(0x136)]===_0x47a045){const _0x2d3833={..._0x30925a};_0x2d3833['color']=this[_0x30e1cf(0x2ab)]['getColorFromTheme'](_0x30925a['color']),_0x42a771[_0x30e1cf(0x102)](_0x36ff92,_0x2d3833);}}),{'skeleton':_0x301957,'cursors':_0x42a771};}));}return _0x2f5681({'skeleton':null,'cursors':new Map()});}))[_0x211a0e(0x260)](({skeleton:_0x45b667,cursors:_0x58ff0a})=>{const _0xc1725b=_0x211a0e;this[_0xc1725b(0xec)](),_0x45b667&&this[_0xc1725b(0x256)](_0x45b667,_0x58ff0a);}),this[_0x211a0e(0x257)][_0x211a0e(0x223)]['subscribe'](_0x1a4a91=>{const _0x1479ad=_0x211a0e;if(_0x1a4a91==null)return;const {skeleton:_0x15fb66}=_0x1a4a91,{scene:_0x2e94e9}=this[_0x1479ad(0x26d)];_0x2e94e9[_0x1479ad(0x181)]['subscribeEvent'](_0x5b1e9d(_0x56ccdc=>{const _0x326710=_0x1479ad;var _0x9af461,_0x1a799f;const {offsetX:_0x44fadd,offsetY:_0x5d8cb7}=_0x56ccdc,{x:_0x2288d1,y:_0x548d32}=_0x2e94e9[_0x326710(0x1c5)](_0x45fba4[_0x326710(0xd3)]([_0x44fadd,_0x5d8cb7])),{scaleX:_0x15ce9d,scaleY:_0x32f4c5}=_0x2e94e9[_0x326710(0x280)](),_0x21de18=_0x2e94e9[_0x326710(0xc9)](_0x4fe57b[_0x326710(0x2a2)]),_0x262511=_0x2e94e9[_0x326710(0x242)](_0x45fba4['FromArray']([_0x2288d1,_0x548d32]),_0x21de18),_0x5e6c53=_0x15fb66['getCellPositionByOffset'](_0x44fadd,_0x5d8cb7,_0x15ce9d,_0x32f4c5,_0x262511);((_0x9af461=this[_0x326710(0x269)])==null?void 0x0:_0x9af461[_0x326710(0x1f5)])===_0x5e6c53[_0x326710(0x1f5)]&&((_0x1a799f=this[_0x326710(0x269)])==null?void 0x0:_0x1a799f[_0x326710(0x1ec)])===_0x5e6c53[_0x326710(0x1ec)]||this[_0x326710(0x239)][_0x326710(0x1f2)](_0x399c7d=>{const _0x47a7a7=_0x326710;_0x399c7d[_0x47a7a7(0x141)](_0x5e6c53);});},0x64));});}[_0x5978f9(0x256)](_0x5dbdd6,_0x4937ae){const _0x2904e4=_0x5978f9;var _0x5f3c7b;const _0x3c63c2=(_0x5f3c7b=this[_0x2904e4(0x257)]['getCurrent']())==null?void 0x0:_0x5f3c7b['skeleton'];if(!_0x3c63c2)return;const _0x5c4e11=this[_0x2904e4(0xe5)]();if(!_0x5c4e11)return;this['_cursors'][_0x2904e4(0x1f2)](_0x4d61bc=>{_0x4d61bc['makeDirty']();});const {scene:_0x2b3b0b}=_0x5c4e11,_0x5db696=Ji(Array[_0x2904e4(0x24c)](_0x4937ae[_0x2904e4(0x2b2)]()))[_0x2904e4(0x101)](_0x20758f=>{const _0x335198=_0x2904e4,{color:_0x494337,range:_0x34f30a,name:_0x444cb1,selection:_0x1e0363,sheetID:_0x140cca}=_0x20758f,{startColumn:_0x3d9785,startRow:_0x139062,endColumn:_0x40beef,endRow:_0x1c6275}=_0x34f30a,_0x95693e=_0x525ff9(_0x139062,_0x3d9785,_0x2b3b0b,_0x3c63c2),_0x5da7f6=_0x525ff9(_0x1c6275,_0x40beef,_0x2b3b0b,_0x3c63c2),{columnHeaderHeightAndMarginTop:_0x1410c1}=_0x3c63c2,{startX:_0x266670,startY:_0x3b519c}=_0x95693e,{endX:_0x3f0989,endY:_0x310c94}=_0x5da7f6,_0x7a3c3c=_0x3f0989-_0x266670,_0x3c82a2=_0x310c94-_0x3b519c,_0x534b31={'labelPosition':_0x3b519c-_0x1410c1>=J?_0x335198(0xdf):_0x335198(0xdd),'sheetID':_0x140cca,'range':_0x34f30a,'color':_0x494337,'name':_0x444cb1,'selection':_0x1e0363,'left':_0x266670,'top':_0x3b519c,'width':_0x7a3c3c,'height':_0x3c82a2,'evented':!0x1,'zIndex':zi};return new Xi(_0x444cb1,_0x534b31);});_0x2b3b0b[_0x2904e4(0xdc)](_0x5db696,Vi),this['_cursors']=new Set(_0x5db696);}[_0x5978f9(0xec)](){const _0x201dde=_0x5978f9;var _0x97f0ae;(_0x97f0ae=this[_0x201dde(0x239)])==null||_0x97f0ae['forEach'](_0x22b481=>_0x22b481[_0x201dde(0x187)]());}[_0x5978f9(0xe5)](){const _0x3ae5e6=_0x5978f9;return _0x515a9d(this[_0x3ae5e6(0x26d)]['unit'],this[_0x3ae5e6(0x26d)]);}};Pe=Ki([pe(0x1,_0x4254b3(_0x529972)),pe(0x2,_0x4254b3(F)),pe(0x3,_0x4254b3(_0x4906d5))],Pe);function Ji(_0xc63335){const _0xe5eba1=_0x5978f9,_0x1511b6=new Map();return _0xc63335[_0xe5eba1(0x1f2)](_0x1da401=>{const _0xffaa91=_0xe5eba1;if(_0x1511b6['has'](_0x1da401[_0xffaa91(0x235)])){const _0xcdfa5f=_0x1511b6[_0xffaa91(0x15c)](_0x1da401[_0xffaa91(0x235)]);_0xcdfa5f[_0xffaa91(0x299)]+=',\x20'+_0x1da401[_0xffaa91(0x299)];}else _0x1511b6[_0xffaa91(0x102)](_0x1da401['selection'],_0x1da401);}),Array[_0xe5eba1(0x24c)](_0x1511b6[_0xe5eba1(0x2b2)]());}var Zi=Object[_0x5978f9(0x25e)],Qi=(_0x43cf9f,_0x28a289,_0x12c308,_0x112dff)=>{const _0x75acc8=_0x5978f9;for(var _0x4bca54=_0x112dff>0x1?void 0x0:_0x112dff?Zi(_0x28a289,_0x12c308):_0x28a289,_0x9aca06=_0x43cf9f[_0x75acc8(0xd8)]-0x1,_0x552a86;_0x9aca06>=0x0;_0x9aca06--)(_0x552a86=_0x43cf9f[_0x9aca06])&&(_0x4bca54=_0x552a86(_0x4bca54)||_0x4bca54);return _0x4bca54;},B=(_0x4954d7,_0x33f494)=>(_0x5dcd5f,_0xa96607)=>_0x33f494(_0x5dcd5f,_0xa96607,_0x4954d7);let ne=class extends _0x275756{constructor(_0x331d19,_0x13e35d,_0x4d8c65,_0x1e10f9,_0x16f1f9,_0x2d81df){const _0x169c3c=_0x5978f9;super(),this[_0x169c3c(0x254)]=_0x331d19,this[_0x169c3c(0x28d)]=_0x13e35d,this['_collaborationUIEventService']=_0x4d8c65,this[_0x169c3c(0x2c2)]=_0x1e10f9,this[_0x169c3c(0x2be)]=_0x16f1f9,this['_localeService']=_0x2d81df,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x5978f9(0x281)](){const _0x300862=_0x5978f9;this[_0x300862(0x1c8)](this[_0x300862(0x254)][_0x300862(0x14d)](()=>{const _0x442a08=_0x300862;if(this['_localCacheService']['saveTaskMap'][_0x442a08(0x1fd)])return this[_0x442a08(0x25c)]['t'](_0x442a08(0xeb));}));}[_0x5978f9(0x12c)](){const _0x205dfa=_0x5978f9;this[_0x205dfa(0x1c8)](this['_collaborationUIEventService'][_0x205dfa(0x131)][_0x205dfa(0x260)](_0x47aadb=>{const _0x52c0c9=_0x205dfa;_0x47aadb['id']===_0x299041[_0x52c0c9(0x1eb)]&&this[_0x52c0c9(0x2c2)][_0x52c0c9(0x168)]({'type':_0x266753[_0x52c0c9(0x1cd)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x47aadb['id']===_0x299041['CLOSE_ROOM']&&this[_0x52c0c9(0x2c2)][_0x52c0c9(0x168)]({'type':_0x266753[_0x52c0c9(0x1cd)],'content':this[_0x52c0c9(0x25c)]['t'](_0x52c0c9(0x12d))}),_0x47aadb['id']===_0x299041[_0x52c0c9(0x21e)]&&this[_0x52c0c9(0x2be)][_0x52c0c9(0x168)]({'title':this[_0x52c0c9(0x25c)]['t'](_0x52c0c9(0x23f)),'content':this['_localeService']['t'](_0x52c0c9(0x1da)),'type':_0x52c0c9(0x219),'duration':0x0}),_0x47aadb['id']===_0x299041['CONFLICT']&&this[_0x52c0c9(0x2c2)][_0x52c0c9(0x168)]({'type':_0x266753['Error'],'content':this[_0x52c0c9(0x25c)]['t'](_0x52c0c9(0x12d))+'('+_0x47aadb[_0x52c0c9(0x14f)]+')'}),_0x47aadb['id']===_0x299041['JOIN_ROOM_FAILED']&&this[_0x52c0c9(0x2c2)]['show']({'type':_0x266753['Warning'],'content':this[_0x52c0c9(0x25c)]['t'](_0x47aadb[_0x52c0c9(0x14f)]||'')}),_0x47aadb['id']===_0x299041[_0x52c0c9(0x183)]&&this[_0x52c0c9(0x2c2)][_0x52c0c9(0x168)]({'type':_0x266753[_0x52c0c9(0x1cd)],'content':this[_0x52c0c9(0x25c)]['t'](_0x52c0c9(0x264))}),_0x47aadb['id']===_0x299041[_0x52c0c9(0x1dd)]&&this[_0x52c0c9(0x2c2)][_0x52c0c9(0x168)]({'type':_0x266753[_0x52c0c9(0x113)],'content':this['_localeService']['t'](_0x52c0c9(0x21c))}),_0x47aadb['id']===_0x299041['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x52c0c9(0x2c2)][_0x52c0c9(0x168)]({'type':_0x266753[_0x52c0c9(0x113)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};ne=Qi([B(0x0,_0x2895c2),B(0x1,_0x4ac262),B(0x2,_0x4254b3(_0x27e336)),B(0x3,_0x4887c1),B(0x4,_0x38e1e8),B(0x5,_0x4254b3(_0x356e26))],ne);const qi=_0x5978f9(0x179),et={};var en=Object['getOwnPropertyDescriptor'],tn=(_0x248e8d,_0x35effd,_0x17d252,_0x443d9f)=>{const _0x55997e=_0x5978f9;for(var _0x41147b=_0x443d9f>0x1?void 0x0:_0x443d9f?en(_0x35effd,_0x17d252):_0x35effd,_0x334c5b=_0x248e8d[_0x55997e(0xd8)]-0x1,_0x2bd5a6;_0x334c5b>=0x0;_0x334c5b--)(_0x2bd5a6=_0x248e8d[_0x334c5b])&&(_0x41147b=_0x2bd5a6(_0x41147b)||_0x41147b);return _0x41147b;},tt=(_0x4bb681,_0x3d1114)=>(_0x3035db,_0x4327fd)=>_0x3d1114(_0x3035db,_0x4327fd,_0x4bb681);let re=class{constructor(_0xa62dc6,_0x68c361){const _0x5ab0c1=_0x5978f9;this[_0x5ab0c1(0x104)]=_0xa62dc6,this[_0x5ab0c1(0x162)]=_0x68c361;}[_0x5978f9(0xff)](_0xbb3a7c){const _0xb762e5=_0x5978f9;this[_0xb762e5(0x11b)](_0xbb3a7c),this[_0xb762e5(0x248)](_0xbb3a7c);}['transformRemoteChangeset'](_0x5cf219){const _0x25748e=_0x5978f9,{unitID:_0x28e876}=_0x5cf219,_0x2604d6=this['_renderManagerService']['getRenderById'](_0x28e876)['with'](_0xd0cb86),{redoCache:_0x598a53}=_0x2604d6[_0x25748e(0x259)]();if(_0x598a53[_0x25748e(0xd8)]===0x0)return _0x5cf219;let _0x593c44=_0x495d23[_0x25748e(0x212)](_0x5cf219['mutations'][0x0]);for(let _0x566c86=0x0;_0x566c86<_0x598a53[_0x25748e(0xd8)];_0x566c86++){const _0x4db215={'id':_0x25748e(0x2c7),'params':{..._0x598a53[_0x566c86]}},_0x42a9d9=this[_0x25748e(0x104)][_0x25748e(0x184)](_0x593c44,_0x4db215,!0x1);if(_0x1d14c8(_0x42a9d9))throw _0x42a9d9[_0x25748e(0x219)];_0x593c44=_0x42a9d9[_0x25748e(0x25b)];}return{..._0x495d23[_0x25748e(0x212)](_0x5cf219),'mutations':[_0x593c44]};}[_0x5978f9(0x11b)](_0x1f816e){const _0x3cb5ae=_0x5978f9,{unitID:_0x4a11a2}=_0x1f816e,_0x5d04f8=this['_renderManagerService']['getRenderById'](_0x4a11a2)['with'](_0xd0cb86),{undoCache:_0x53a1ce,redoCache:_0x3ae44d}=_0x5d04f8[_0x3cb5ae(0x259)]();if(_0x53a1ce[_0x3cb5ae(0xd8)]===0x0||_0x3ae44d[_0x3cb5ae(0xd8)]===0x0)return;const _0x4b49e1=[],_0xfa1e9d=[];let _0x42f309=_0x495d23[_0x3cb5ae(0x212)](_0x1f816e[_0x3cb5ae(0x213)][0x0]),_0x370abc=_0x495d23[_0x3cb5ae(0x212)](_0x1f816e[_0x3cb5ae(0x213)][0x0]);for(let _0x5a1554=_0x53a1ce[_0x3cb5ae(0xd8)]-0x1;_0x5a1554>=0x0;_0x5a1554--){const _0xc1c4bc={'id':_0x3cb5ae(0x2c7),'params':{..._0x53a1ce[_0x5a1554]}},_0xf4cfe6={'id':_0x3cb5ae(0x2c7),'params':{..._0x3ae44d[_0x5a1554]}},_0x2ff2c9=this[_0x3cb5ae(0x104)][_0x3cb5ae(0x184)](_0x42f309,_0xc1c4bc,!0x1),_0x449445=this[_0x3cb5ae(0x104)][_0x3cb5ae(0x184)](_0x370abc,_0xf4cfe6,!0x1);if(_0x1d14c8(_0x2ff2c9))throw _0x2ff2c9['error'];if(_0x1d14c8(_0x449445))throw _0x449445[_0x3cb5ae(0x219)];_0x4b49e1[_0x3cb5ae(0x1ca)](_0x2ff2c9[_0x3cb5ae(0x18f)]['params']),_0xfa1e9d[_0x3cb5ae(0x1ca)](_0x449445[_0x3cb5ae(0x18f)]['params']),_0x42f309=_0x2ff2c9[_0x3cb5ae(0x25b)],_0x370abc=_0x449445[_0x3cb5ae(0x25b)];}_0x5d04f8['setUndoRedoMutationParamsCache']({'undoCache':_0x4b49e1,'redoCache':_0xfa1e9d});}[_0x5978f9(0x248)](_0x458070){const _0x4cea74=_0x5978f9,{unitID:_0x54c064}=_0x458070,_0x23fc18=this[_0x4cea74(0x162)]['getRenderById'](_0x54c064)[_0x4cea74(0x1a7)](_0xd0cb86),_0xd06356=_0x23fc18[_0x4cea74(0x18b)]();if(_0xd06356==null)return;const _0x1da360=[{'id':_0x4cea74(0x2c7),'params':{'unitId':_0x458070[_0x4cea74(0x1f6)],'actions':null,'textRanges':[_0xd06356]}}],_0x59825c=this[_0x4cea74(0x104)][_0x4cea74(0x114)](_0x458070,_0x1da360);if(!_0x17e12b(_0x59825c))throw _0x59825c[_0x4cea74(0x219)];const _0x2b1279=_0x59825c[_0x4cea74(0x18f)][0x0][_0x4cea74(0x1b6)][_0x4cea74(0x20c)];Array[_0x4cea74(0xf6)](_0x2b1279)&&_0x2b1279[_0x4cea74(0xd8)]&&_0x23fc18[_0x4cea74(0x270)](_0x2b1279[0x0]);}};re=tn([tt(0x0,_0xac990f),tt(0x1,_0x54f460)],re);var sn=Object['getOwnPropertyDescriptor'],nn=(_0xffea4b,_0x16f91b,_0x5d5305,_0x37cd7d)=>{const _0x69768e=_0x5978f9;for(var _0x2e7844=_0x37cd7d>0x1?void 0x0:_0x37cd7d?sn(_0x16f91b,_0x5d5305):_0x16f91b,_0x192fbe=_0xffea4b[_0x69768e(0xd8)]-0x1,_0x5324ad;_0x192fbe>=0x0;_0x192fbe--)(_0x5324ad=_0xffea4b[_0x192fbe])&&(_0x2e7844=_0x5324ad(_0x2e7844)||_0x2e7844);return _0x2e7844;},Ce=(_0x558e5f,_0xfa76fa)=>(_0x371b71,_0x4b27db)=>_0xfa76fa(_0x371b71,_0x4b27db,_0x558e5f);let oe=class{constructor(_0xd424d4,_0x49a383,_0x29dac5){const _0x24821c=_0x5978f9;this[_0x24821c(0x29a)]=_0xd424d4,this['_transformService']=_0x49a383,this[_0x24821c(0x134)]=_0x29dac5;}[_0x5978f9(0x17b)](_0x2bd7d2){const _0x28f26c=_0x5978f9;this[_0x28f26c(0x1b7)](_0x2bd7d2);}[_0x5978f9(0x225)](_0x299db9){const _0x55d960=_0x5978f9,{unitID:_0x2906fe}=_0x299db9,{collaboration:_0x2cfdcf}=this['_docStateChangeManagerService']['getStateCache'](_0x2906fe);if(_0x2cfdcf[_0x55d960(0xd8)]===0x0)return _0x299db9;let _0x1379c0=_0x495d23[_0x55d960(0x212)](_0x299db9['mutations'][0x0]);for(let _0x4c9e3d=0x0;_0x4c9e3d<_0x2cfdcf[_0x55d960(0xd8)];_0x4c9e3d++){const _0x307cbd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2cfdcf[_0x4c9e3d][_0x55d960(0x24b)],..._0x2cfdcf[_0x4c9e3d][_0x55d960(0x19e)]}},_0x42e96c=this[_0x55d960(0x104)][_0x55d960(0x184)](_0x1379c0,_0x307cbd,!0x1);if(_0x1d14c8(_0x42e96c))throw _0x42e96c['error'];_0x1379c0=_0x42e96c['m1Prime'];}return{..._0x495d23[_0x55d960(0x212)](_0x299db9),'mutations':[_0x1379c0]};}[_0x5978f9(0x1b7)](_0x1b157a){const _0x301b0a=_0x5978f9,{unitID:_0x3e55cb}=_0x1b157a,{history:_0x2f90a5,collaboration:_0x24f4c1}=this[_0x301b0a(0x134)][_0x301b0a(0x2a1)](_0x3e55cb);if(_0x2f90a5[_0x301b0a(0xd8)]===0x0&&_0x24f4c1[_0x301b0a(0xd8)]===0x0)return;const _0x2b3469=[],_0x52ece5=[];let _0x41f51d=_0x495d23[_0x301b0a(0x212)](_0x1b157a[_0x301b0a(0x213)][0x0]),_0x33ac1f=_0x495d23[_0x301b0a(0x212)](_0x1b157a[_0x301b0a(0x213)][0x0]);for(let _0x12e53b=_0x2f90a5['length']-0x1;_0x12e53b>=0x0;_0x12e53b--){const _0x748a02={'id':_0x301b0a(0x2c7),'params':{'unitId':_0x2f90a5[_0x12e53b][_0x301b0a(0x24b)],..._0x2f90a5[_0x12e53b][_0x301b0a(0x286)]}},_0x476eef={'id':_0x301b0a(0x2c7),'params':{'unitId':_0x2f90a5[_0x12e53b]['unitId'],..._0x2f90a5[_0x12e53b][_0x301b0a(0x19e)]}},_0xa49f90=this[_0x301b0a(0x104)]['transformMutation'](_0x41f51d,_0x748a02,!0x1),_0x1a46eb=this[_0x301b0a(0x104)][_0x301b0a(0x184)](_0x33ac1f,_0x476eef,!0x1);if(_0x1d14c8(_0xa49f90))throw _0xa49f90['error'];if(_0x1d14c8(_0x1a46eb))throw _0x1a46eb[_0x301b0a(0x219)];_0x2b3469[_0x301b0a(0x1ca)]({..._0x2f90a5[_0x12e53b],'undoState':_0xa49f90[_0x301b0a(0x18f)][_0x301b0a(0x1b6)],'redoState':_0x1a46eb[_0x301b0a(0x18f)]['params']}),_0x41f51d=_0xa49f90['m1Prime'],_0x33ac1f=_0x1a46eb['m1Prime'];}_0x41f51d=_0x495d23['deepClone'](_0x1b157a['mutations'][0x0]),_0x33ac1f=_0x495d23[_0x301b0a(0x212)](_0x1b157a[_0x301b0a(0x213)][0x0]);for(let _0x9c423e=_0x24f4c1[_0x301b0a(0xd8)]-0x1;_0x9c423e>=0x0;_0x9c423e--){const _0x268c05={'id':_0x301b0a(0x2c7),'params':{'unitId':_0x24f4c1[_0x9c423e]['unitId'],..._0x24f4c1[_0x9c423e]['undoState']}},_0x5a946f={'id':_0x301b0a(0x2c7),'params':{'unitId':_0x24f4c1[_0x9c423e]['unitId'],..._0x24f4c1[_0x9c423e][_0x301b0a(0x19e)]}},_0x3db7ec=this[_0x301b0a(0x104)]['transformMutation'](_0x41f51d,_0x268c05,!0x1),_0x4f6fbe=this[_0x301b0a(0x104)]['transformMutation'](_0x33ac1f,_0x5a946f,!0x1);if(_0x1d14c8(_0x3db7ec))throw _0x3db7ec[_0x301b0a(0x219)];if(_0x1d14c8(_0x4f6fbe))throw _0x4f6fbe[_0x301b0a(0x219)];_0x52ece5['unshift']({..._0x24f4c1[_0x9c423e],'undoState':_0x3db7ec['m2Prime'][_0x301b0a(0x1b6)],'redoState':_0x4f6fbe[_0x301b0a(0x18f)][_0x301b0a(0x1b6)]}),_0x41f51d=_0x3db7ec[_0x301b0a(0x25b)],_0x33ac1f=_0x4f6fbe['m1Prime'];}this['_docStateChangeManagerService'][_0x301b0a(0xcf)](_0x3e55cb,{'history':_0x2b3469,'collaboration':_0x52ece5});}};oe=nn([Ce(0x0,_0x4254b3(_0x49ea94)),Ce(0x1,_0xac990f),Ce(0x2,_0x4254b3(_0xfa24fb))],oe);var rn=Object[_0x5978f9(0x25e)],on=(_0x3eca4b,_0x1570ae,_0x1abafd,_0x384b73)=>{for(var _0x37e399=_0x384b73>0x1?void 0x0:_0x384b73?rn(_0x1570ae,_0x1abafd):_0x1570ae,_0x548073=_0x3eca4b['length']-0x1,_0x208ce6;_0x548073>=0x0;_0x548073--)(_0x208ce6=_0x3eca4b[_0x548073])&&(_0x37e399=_0x208ce6(_0x37e399)||_0x37e399);return _0x37e399;},st=(_0xd3514,_0x4669eb)=>(_0xd9ceb4,_0x1576bd)=>_0x4669eb(_0xd9ceb4,_0x1576bd,_0xd3514);let ae=class{constructor(_0x51048b,_0x38443a){const _0x157150=_0x5978f9;this[_0x157150(0x29a)]=_0x51048b,this[_0x157150(0x104)]=_0x38443a;}[_0x5978f9(0xc6)](_0x6c58e0){const _0x135178=_0x5978f9;var _0x342b1e;const _0x5e29e9=this['_injector'][_0x135178(0x15c)](_0x177a84),_0x1ed63e=(_0x342b1e=_0x5e29e9[_0x135178(0xd2)]())!=null?_0x342b1e:[];if(_0x1ed63e[_0x135178(0xd8)]===0x0)return;const _0x206eb6=_0x6c58e0[_0x135178(0x1f6)],_0x1b8efe=[{'id':_0x135178(0x2c7),'params':{'unitId':_0x206eb6,'actions':null,'textRanges':_0x1ed63e}}],_0x3a6a7f=this['_transformService'][_0x135178(0x114)](_0x6c58e0,_0x1b8efe);if(!_0x17e12b(_0x3a6a7f))throw _0x3a6a7f[_0x135178(0x219)];const _0x2a137e=_0x3a6a7f[_0x135178(0x18f)][0x0][_0x135178(0x1b6)]['textRanges'];Array[_0x135178(0xf6)](_0x2a137e)&&_0x2a137e['length']&&_0x5e29e9[_0x135178(0x22b)](_0x2a137e,{'unitId':_0x206eb6,'subUnitId':_0x206eb6},!0x1);}};ae=on([st(0x0,_0x4254b3(_0x49ea94)),st(0x1,_0xac990f)],ae);var an=Object['getOwnPropertyDescriptor'],cn=(_0x26d46d,_0x523f0a,_0x10d10a,_0x3b9e83)=>{const _0x3eca37=_0x5978f9;for(var _0x4fbefb=_0x3b9e83>0x1?void 0x0:_0x3b9e83?an(_0x523f0a,_0x10d10a):_0x523f0a,_0xcd67bd=_0x26d46d[_0x3eca37(0xd8)]-0x1,_0x1653a8;_0xcd67bd>=0x0;_0xcd67bd--)(_0x1653a8=_0x26d46d[_0xcd67bd])&&(_0x4fbefb=_0x1653a8(_0x4fbefb)||_0x4fbefb);return _0x4fbefb;},N=(_0xfc2ed4,_0x2c3127)=>(_0x286933,_0x399b46)=>_0x2c3127(_0x286933,_0x399b46,_0xfc2ed4);let ce=class extends _0x275756{constructor(_0x57cfab,_0x2331e6,_0x486189,_0x50acdc,_0xbeed0,_0x3b3a6d,_0x56ed9a,_0xba7bde){const _0x4a25ca=_0x5978f9;super(),_(this,'_status$',new _0x2ec644(_0x138deb[_0x4a25ca(0x1ba)])),(this[_0x4a25ca(0x134)]=_0x57cfab,this[_0x4a25ca(0xca)]=_0x2331e6,this[_0x4a25ca(0x1d9)]=_0x486189,this[_0x4a25ca(0xf2)]=_0x50acdc,this[_0x4a25ca(0x1aa)]=_0xbeed0,this[_0x4a25ca(0x1ff)]=_0x3b3a6d,this[_0x4a25ca(0x2c2)]=_0x56ed9a,this[_0x4a25ca(0x25c)]=_0xba7bde,this[_0x4a25ca(0x189)]());}[_0x5978f9(0x189)](){const _0xedb97e=_0x5978f9;this[_0xedb97e(0x1c8)](this['_collaborationController'][_0xedb97e(0x1f3)]['subscribe'](_0x12cadd=>{const _0x24108b=_0xedb97e,_0x2484ba=this[_0x24108b(0x134)]['docStateChange$'][_0x24108b(0x260)](_0x807ea8=>{const _0x5c25ba=_0x24108b;if(_0x807ea8==null)return;const {unitId:_0x69a519,redoState:_0x2dc587,commandId:_0x2b97dc}=_0x807ea8;if(_0x69a519!==_0x12cadd[_0x5c25ba(0x1f6)])return;const _0x1062b8={'id':_0x2b97dc,'type':_0x195ea6[_0x5c25ba(0x1c3)],'params':{'unitId':_0x69a519,'actions':_0x2dc587[_0x5c25ba(0x220)],'textRanges':null}};_0x12cadd[_0x5c25ba(0x20f)](_0x1062b8);});if(_0x12cadd[_0x24108b(0x1c8)](_0x2484ba),_0x12cadd instanceof _0x4186b0){const _0x2d80f2={'onTransformIME':_0x1cae8a=>this[_0x24108b(0x1d9)][_0x24108b(0xff)](_0x1cae8a),'onTransformState':_0x15658f=>this[_0x24108b(0xf2)][_0x24108b(0x17b)](_0x15658f),'onTransformSelections':_0x223785=>this['_docTransformSelectionsService'][_0x24108b(0xc6)](_0x223785),'onSyncEditingCollabCursor':_0x28d921=>this[_0x24108b(0x1ff)][_0x24108b(0x1a0)](_0x28d921),'onTransformRemoteChangesetByIMECache':_0x47ff29=>this['_docTransformIMECacheService'][_0x24108b(0x225)](_0x47ff29),'onTransformRemoteChangesetByStateCache':_0x3d3d74=>this[_0x24108b(0xf2)]['transformRemoteChangeset'](_0x3d3d74)};_0x12cadd[_0x24108b(0xdb)](_0x2d80f2);}}));}};ce=cn([N(0x0,_0x4254b3(_0xfa24fb)),N(0x1,_0x4254b3(_0x2feee0)),N(0x2,_0x4254b3(re)),N(0x3,_0x4254b3(oe)),N(0x4,_0x4254b3(ae)),N(0x5,_0x4254b3(Fe)),N(0x6,_0x4887c1),N(0x7,_0x4254b3(_0x356e26))],ce);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x46dd24,_0x2317c8,_0x1a75f1,_0x244a2b)=>{const _0x8dfebb=_0x5978f9;for(var _0xd87f20=_0x244a2b>0x1?void 0x0:_0x244a2b?ln(_0x2317c8,_0x1a75f1):_0x2317c8,_0x9f5f2=_0x46dd24[_0x8dfebb(0xd8)]-0x1,_0x26363a;_0x9f5f2>=0x0;_0x9f5f2--)(_0x26363a=_0x46dd24[_0x9f5f2])&&(_0xd87f20=_0x26363a(_0xd87f20)||_0xd87f20);return _0xd87f20;},Ee=(_0xeb996d,_0x472482)=>(_0x53f9c0,_0x58052c)=>_0x472482(_0x53f9c0,_0x58052c,_0xeb996d);let we=class extends _0x275756{constructor(_0xbac608,_0x5a6bad,_0x5dd992){const _0x410f5b=_0x5978f9;super(),_(this,'_cachedData',new Map()),_(this,_0x410f5b(0x1e6),new Map()),_(this,_0x410f5b(0x262),!0x1),(this[_0x410f5b(0xc8)]=_0xbac608,this['_localStorageService']=_0x5a6bad,this[_0x410f5b(0x195)]=_0x5dd992);}[_0x5978f9(0xde)](){this['_disabled']=!0x0;}[_0x5978f9(0x271)](){this['_disabled']=!0x1;}get[_0x5978f9(0x20a)](){const _0x2103af=_0x5978f9;return this[_0x2103af(0x1e6)];}[_0x5978f9(0x187)](){const _0x92eef3=_0x5978f9;this[_0x92eef3(0x10c)]()['then'](()=>super[_0x92eef3(0x187)]());}async[_0x5978f9(0x122)](_0x4f075c){const _0x1e8ccc=_0x5978f9;return this[_0x1e8ccc(0x262)]?null:this[_0x1e8ccc(0x206)][_0x1e8ccc(0xfa)](_0xd819cd(_0x4f075c));}async[_0x5978f9(0x169)](_0x4acb7d,_0x2949e7){const _0x4a7793=_0x5978f9;return!!this['_localStorageService'][_0x4a7793(0x1e0)](_0x4acb7d,_0x2949e7);}[_0x5978f9(0x224)](_0x11346d,_0xda4a98,_0x5c7ad9,_0x8ef240){const _0x249efc=_0x5978f9,_0x2ac0dc=this['_revisionService'][_0x249efc(0x202)](_0x11346d);this[_0x249efc(0xf8)][_0x249efc(0x102)](_0x11346d,{'unitID':_0x11346d,'type':_0xda4a98,'awaitingChangeset':_0x5c7ad9,'mutations':_0x8ef240,'rev':_0x2ac0dc}),this['_saveTaskMap'][_0x249efc(0x267)](_0x11346d)||this[_0x249efc(0x2a0)](_0x11346d);}[_0x5978f9(0x2a0)](_0x5001f1){const _0x4599b3=_0x5978f9,_0x373ed0=this[_0x4599b3(0x1f9)]();_0x373ed0===0x0?this[_0x4599b3(0x2bb)](_0x5001f1):this['_saveTaskMap']['set'](_0x5001f1,setTimeout(()=>this[_0x4599b3(0x2bb)](_0x5001f1),_0x373ed0));}['_getSaveTimeout'](){const _0xd396b9=_0x5978f9;var _0x441068;return(_0x441068=this[_0xd396b9(0xc8)][_0xd396b9(0x205)](_0x2b4ad3))!=null?_0x441068:_0x52f070;}[_0x5978f9(0x2bb)](_0x7ea7d3){const _0x270f8f=_0x5978f9,_0x48f5a0=this[_0x270f8f(0x1e6)][_0x270f8f(0x15c)](_0x7ea7d3);return _0x48f5a0!==void 0x0&&window[_0x270f8f(0x185)](_0x48f5a0),this['_localStorageService']['setItem'](_0xd819cd(_0x7ea7d3),this[_0x270f8f(0xf8)]['get'](_0x7ea7d3))[_0x270f8f(0x1fe)](()=>this[_0x270f8f(0x1e6)][_0x270f8f(0x214)](_0x7ea7d3));}async[_0x5978f9(0x10c)](){const _0x4cdded=_0x5978f9,_0x495413=[];this[_0x4cdded(0x1e6)][_0x4cdded(0x1f2)]((_0x58beae,_0x59456f)=>{const _0x3fda28=_0x4cdded;window[_0x3fda28(0x185)](_0x58beae),_0x495413[_0x3fda28(0x15a)](this['_saveCache'](_0x59456f)[_0x3fda28(0x1fe)](()=>{const _0x287a8d=_0x3fda28;this[_0x287a8d(0x1e6)]['delete'](_0x59456f);}));}),await Promise[_0x4cdded(0x11e)](_0x495413);}};we=_n([Ee(0x0,_0x4bdd34),Ee(0x1,_0x3d0e53),Ee(0x2,_0x4254b3(_0x3a9d6d))],we);class hn extends _0x4f795a{constructor(){const _0x36a1e1=_0x5978f9;super(),_(this,_0x36a1e1(0x238)),this[_0x36a1e1(0x238)]=_0x9cc90b(window,'popstate')['pipe'](_0x4c94af(this[_0x36a1e1(0x208)]),_0xb1e6d5(0x1),_0x34a876(void 0x0));}[_0x5978f9(0x29e)](_0x31edb9,_0x5635f1,_0x31ff8f=!0x1){const _0x5314a3=_0x5978f9,_0x2985d5=new URL(window[_0x5314a3(0x24a)]['href']);_0x2985d5[_0x5314a3(0xd9)][_0x5314a3(0x102)](_0x31edb9,_0x5635f1),_0x31ff8f?window[_0x5314a3(0x115)][_0x5314a3(0xe4)]('','',_0x2985d5['toString']()):window[_0x5314a3(0x115)]['pushState']('','',_0x2985d5[_0x5314a3(0x282)]());}[_0x5978f9(0x175)](_0x5949e2,_0x3bbc33=!0x1){const _0x58670f=_0x5978f9,_0x19b194=new URL(window[_0x58670f(0x24a)][_0x58670f(0x1fc)]);_0x19b194['searchParams']['delete'](_0x5949e2),_0x3bbc33?window[_0x58670f(0x115)][_0x58670f(0xe4)]('','',_0x19b194[_0x58670f(0x282)]()):window[_0x58670f(0x115)][_0x58670f(0x1f0)]('','',_0x19b194[_0x58670f(0x282)]());}['getParam'](_0x1f696e){const _0x345e0f=_0x5978f9;var _0x4ecc12;return(_0x4ecc12=new URL(window[_0x345e0f(0x24a)][_0x345e0f(0x1fc)])[_0x345e0f(0xd9)][_0x345e0f(0x15c)](_0x1f696e))!=null?_0x4ecc12:void 0x0;}}var un=Object['defineProperty'],dn=Object[_0x5978f9(0x25e)],fn=(_0x3cc0f1,_0x38474c,_0x562efa)=>_0x38474c in _0x3cc0f1?un(_0x3cc0f1,_0x38474c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x562efa}):_0x3cc0f1[_0x38474c]=_0x562efa,Sn=(_0x2419e7,_0x36d97a,_0x3420b2,_0x4bf865)=>{const _0x4d6f25=_0x5978f9;for(var _0x42fc29=_0x4bf865>0x1?void 0x0:_0x4bf865?dn(_0x36d97a,_0x3420b2):_0x36d97a,_0x3dd231=_0x2419e7[_0x4d6f25(0xd8)]-0x1,_0x31fb35;_0x3dd231>=0x0;_0x3dd231--)(_0x31fb35=_0x2419e7[_0x3dd231])&&(_0x42fc29=_0x31fb35(_0x42fc29)||_0x42fc29);return _0x42fc29;},Oe=(_0x5599aa,_0x48592b)=>(_0x5892ea,_0x5baf61)=>_0x48592b(_0x5892ea,_0x5baf61,_0x5599aa),mn=(_0x4a4951,_0x2f6a59,_0x4b36c0)=>fn(_0x4a4951,_0x2f6a59+'',_0x4b36c0);const In='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ae=class extends _0x48371a{constructor(_0x5bc340=et,_0x36e172,_0xd85410,_0x5ebff1){const _0x4a9c77=_0x5978f9;super(),this[_0x4a9c77(0x148)]=_0x5bc340,this[_0x4a9c77(0x162)]=_0x36e172,this[_0x4a9c77(0x29a)]=_0xd85410,this[_0x4a9c77(0xc8)]=_0x5ebff1;const {..._0x1ca0d9}=_0x4e0d00({},et,this[_0x4a9c77(0x148)]);this[_0x4a9c77(0xc8)]['setConfig'](qi,_0x1ca0d9);}[_0x5978f9(0xd1)](){const _0x44722f=_0x5978f9;this[_0x44722f(0x1d8)](),this[_0x44722f(0x2c9)]();}[_0x5978f9(0x26c)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x41bc11=_0x5978f9;var _0x1cb784;const _0x43a671=[[He],[ae],[re],[oe],[Fe],[Ut,{'useClass':hn}],[_0xd4bad1,{'useClass':_0x519dda}],[_0x4ac262,{'useClass':we}],[se],[ce],[ne],[F],[Ne],[ie]];_0x1c12b7(this[_0x41bc11(0x29a)],_0x22ccff(_0x43a671,(_0x1cb784=this[_0x41bc11(0x148)])==null?void 0x0:_0x1cb784['override']));}[_0x5978f9(0x145)](){const _0x1a322f=_0x5978f9;this[_0x1a322f(0x1c8)](this[_0x1a322f(0x162)][_0x1a322f(0x2a7)](_0x12c7d5[_0x1a322f(0x16b)],[Le])),this[_0x1a322f(0x1c8)](this[_0x1a322f(0x162)][_0x1a322f(0x2a7)](_0x12c7d5[_0x1a322f(0xe2)],[Pe]));}['_initDependencies'](){_0x379c2b(this['_injector'],[[F],[se],[ce],[ne],[ie]]);}};mn(Ae,_0x5978f9(0x27f),In),Ae=Sn([_0x3cdf16(_0x122f21),Oe(0x1,_0x54f460),Oe(0x2,_0x4254b3(_0x49ea94)),Oe(0x3,_0x4bdd34)],Ae);var vn=Object['getOwnPropertyDescriptor'],gn=(_0x5c0f20,_0x55e149,_0x3a81db,_0x39cf2f)=>{const _0xc09f0f=_0x5978f9;for(var _0x1bedab=_0x39cf2f>0x1?void 0x0:_0x39cf2f?vn(_0x55e149,_0x3a81db):_0x55e149,_0x304cc2=_0x5c0f20[_0xc09f0f(0xd8)]-0x1,_0x3a7f3a;_0x304cc2>=0x0;_0x304cc2--)(_0x3a7f3a=_0x5c0f20[_0x304cc2])&&(_0x1bedab=_0x3a7f3a(_0x1bedab)||_0x1bedab);return _0x1bedab;},z=(_0x30cb63,_0x154c35)=>(_0xc0ab0c,_0x2b88d4)=>_0x154c35(_0xc0ab0c,_0x2b88d4,_0x30cb63);let it=class extends _0x3a1781{constructor(_0x48a2b0,_0x3d3ee9,_0x1aa77b,_0x4bcf34,_0x4a253d){super(_0x48a2b0,_0x3d3ee9,_0x1aa77b,_0x4bcf34,_0x4a253d);}async['createSocket'](_0x24a1b3){const _0x3daa1d=_0x5978f9,_0x3c4c8=await this[_0x3daa1d(0xf5)](),_0x19f4b1=this[_0x3daa1d(0x292)](_0x24a1b3,_0x3c4c8);return this[_0x3daa1d(0x191)](_0x19f4b1);}[_0x5978f9(0x292)](_0x54d226,_0x5b8161){const _0x151d82=_0x5978f9,_0x118a6a=typeof window>'u'?new URL(_0x54d226):new URL(_0x54d226,window[_0x151d82(0x24a)][_0x151d82(0x13a)]);_0x118a6a[_0x151d82(0xd9)]['set'](_0x151d82(0x194),_0x5b8161);const _0x4a37bd=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x151d82(0x24a)][_0x151d82(0x2c1)]);return _0x4a37bd[_0x151d82(0x15c)](_0x151d82(0x284))&&_0x118a6a[_0x151d82(0xd9)]['set']('runId',_0x4a37bd[_0x151d82(0x15c)](_0x151d82(0x284))),_0x118a6a[_0x151d82(0x282)]();}async[_0x5978f9(0xf5)](){const _0x1697c2=_0x5978f9;var _0x34a9e8,_0x34a0f7,_0x571ac0;const _0x363dba=this[_0x1697c2(0xc8)]['getConfig'](_0x47ccc5),_0x2a0183=(_0x34a9e8=_0x363dba==null?void 0x0:_0x363dba[_0x1697c2(0x222)])!=null?_0x34a9e8:_0x3e9558;return(_0x571ac0=(_0x34a0f7=(await this[_0x1697c2(0x112)][_0x1697c2(0x15c)](_0x2a0183,{'headers':{'Content-Type':_0x1697c2(0x2a9)}}))[_0x1697c2(0x2bd)])==null?void 0x0:_0x34a0f7[_0x1697c2(0x28e)])!=null?_0x571ac0:'';}};it=gn([z(0x0,_0x4254b3(_0x49ea94)),z(0x1,_0x4254b3(_0xb11c39)),z(0x2,_0x4bdd34),z(0x3,_0x3bb3af),z(0x4,_0x4dc603)],it);var Lt=(_0xcc9b9=>(_0xcc9b9[_0xcc9b9[_0x5978f9(0x17d)]=0x0]=_0x5978f9(0x17d),_0xcc9b9[_0xcc9b9['OK']=0x1]='OK',_0xcc9b9[_0xcc9b9[_0x5978f9(0x1de)]=0x2]=_0x5978f9(0x1de),_0xcc9b9[_0xcc9b9['PERMISSION_DENIED']=0x3]=_0x5978f9(0x21e),_0xcc9b9[_0xcc9b9[_0x5978f9(0x1ed)]=0x4]='NOT_FOUND',_0xcc9b9[_0xcc9b9['UNAUTHENTICATED']=0x5]=_0x5978f9(0x170),_0xcc9b9[_0xcc9b9['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xcc9b9[_0xcc9b9[_0x5978f9(0x1ee)]=0x7]=_0x5978f9(0x1ee),_0xcc9b9[_0xcc9b9[_0x5978f9(0x28f)]=0x8]=_0x5978f9(0x28f),_0xcc9b9[_0xcc9b9[_0x5978f9(0x272)]=0x9]=_0x5978f9(0x272),_0xcc9b9[_0xcc9b9[_0x5978f9(0x2b0)]=0xa]=_0x5978f9(0x2b0),_0xcc9b9[_0xcc9b9[_0x5978f9(0x1b8)]=0xb]=_0x5978f9(0x1b8),_0xcc9b9[_0xcc9b9[_0x5978f9(0x21d)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xcc9b9[_0xcc9b9['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xcc9b9[_0xcc9b9['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x5978f9(0x255),_0xcc9b9[_0xcc9b9['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x5978f9(0x1bb),_0xcc9b9[_0xcc9b9[_0x5978f9(0x14a)]=0x1771]=_0x5978f9(0x14a),_0xcc9b9[_0xcc9b9[_0x5978f9(0x27d)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xcc9b9[_0xcc9b9['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5978f9(0x1e8),_0xcc9b9[_0xcc9b9[_0x5978f9(0x14e)]=0x1b59]='APPLY_REJECT',_0xcc9b9[_0xcc9b9[_0x5978f9(0x146)]=0x1b5a]=_0x5978f9(0x146),_0xcc9b9[_0xcc9b9[_0x5978f9(0x227)]=0x1b5b]=_0x5978f9(0x227),_0xcc9b9[_0xcc9b9['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5978f9(0x158),_0xcc9b9[_0xcc9b9[_0x5978f9(0x15b)]=0x1b5d]=_0x5978f9(0x15b),_0xcc9b9[_0xcc9b9[_0x5978f9(0x2c3)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xcc9b9[_0xcc9b9[_0x5978f9(0x1ae)]=0x2329]=_0x5978f9(0x1ae),_0xcc9b9[_0xcc9b9[_0x5978f9(0xee)]=0x232a]=_0x5978f9(0xee),_0xcc9b9[_0xcc9b9['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5978f9(0x23c),_0xcc9b9[_0xcc9b9[_0x5978f9(0x159)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xcc9b9[_0xcc9b9[_0x5978f9(0x26a)]=0x232d]=_0x5978f9(0x26a),_0xcc9b9[_0xcc9b9['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5978f9(0x1b2),_0xcc9b9[_0xcc9b9[_0x5978f9(0x13b)]=0x2712]=_0x5978f9(0x13b),_0xcc9b9[_0xcc9b9[_0x5978f9(0x287)]=0x2713]=_0x5978f9(0x287),_0xcc9b9[_0xcc9b9[_0x5978f9(0x244)]=0x2714]=_0x5978f9(0x244),_0xcc9b9[_0xcc9b9[_0x5978f9(0x124)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xcc9b9[_0xcc9b9[_0x5978f9(0x129)]=0x271b]=_0x5978f9(0x129),_0xcc9b9[_0xcc9b9[_0x5978f9(0x2b7)]=0x271c]=_0x5978f9(0x2b7),_0xcc9b9[_0xcc9b9[_0x5978f9(0x1d3)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xcc9b9[_0xcc9b9[_0x5978f9(0x1ab)]=0x271e]=_0x5978f9(0x1ab),_0xcc9b9[_0xcc9b9[_0x5978f9(0x16a)]=0x271f]=_0x5978f9(0x16a),_0xcc9b9[_0xcc9b9['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5978f9(0x10a),_0xcc9b9[_0xcc9b9[_0x5978f9(0x198)]=0x2af9]=_0x5978f9(0x198),_0xcc9b9[_0xcc9b9[_0x5978f9(0x28c)]=0x2ee1]=_0x5978f9(0x28c),_0xcc9b9[_0xcc9b9['INVALID_INVITE_CODE']=0x2ee2]=_0x5978f9(0x1c9),_0xcc9b9[_0xcc9b9[_0x5978f9(0xf3)]=0x2ee3]=_0x5978f9(0xf3),_0xcc9b9[_0xcc9b9[_0x5978f9(0x1e7)]=0x2ee4]=_0x5978f9(0x1e7),_0xcc9b9[_0xcc9b9['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5978f9(0x18a),_0xcc9b9[_0xcc9b9[_0x5978f9(0x117)]=0x32c9]=_0x5978f9(0x117),_0xcc9b9[_0xcc9b9[_0x5978f9(0x154)]=0x32ca]=_0x5978f9(0x154),_0xcc9b9[_0xcc9b9[_0x5978f9(0xf4)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0xcc9b9[_0xcc9b9[_0x5978f9(0x1e4)]=-0x1]=_0x5978f9(0x1e4),_0xcc9b9))(Lt||{}),pn=Object[_0x5978f9(0x25e)],Cn=(_0x343ac3,_0x163ab4,_0x33270f,_0x4afded)=>{const _0x17cf82=_0x5978f9;for(var _0x582a82=_0x4afded>0x1?void 0x0:_0x4afded?pn(_0x163ab4,_0x33270f):_0x163ab4,_0xd927e8=_0x343ac3[_0x17cf82(0xd8)]-0x1,_0x225724;_0xd927e8>=0x0;_0xd927e8--)(_0x225724=_0x343ac3[_0xd927e8])&&(_0x582a82=_0x225724(_0x582a82)||_0x582a82);return _0x582a82;},be=(_0x10d9f6,_0x1fe9b5)=>(_0x5e5cdc,_0x385806)=>_0x1fe9b5(_0x5e5cdc,_0x385806,_0x10d9f6);let nt=class extends _0x275756{constructor(_0x5bd1aa,_0x567d26,_0x103441){const _0x26171b=_0x5978f9;super(),this[_0x26171b(0x279)]=_0x5bd1aa,this['_httpService']=_0x567d26,this[_0x26171b(0xc8)]=_0x103441;}async[_0x5978f9(0x144)](_0x1c467c,_0x12b11a,_0xa97d1d,..._0x17264e){const _0x2b87a3=_0x5978f9;var _0xec6f53,_0x4dbe0e,_0x572699,_0x253fbc;const _0x309838=this[_0x2b87a3(0x279)][_0x2b87a3(0x2aa)]();if(!_0x309838)throw new Error(_0x2b87a3(0x171));const _0x4ade74=((_0xec6f53=this[_0x2b87a3(0xc8)][_0x2b87a3(0x205)](_0x30263f))!=null?_0xec6f53:_0x226081)+'/'+_0x1c467c+_0x2b87a3(0x2bc)+_0x12b11a,_0x22700b=new URL(window[_0x2b87a3(0x24a)][_0x2b87a3(0x1fc)]),_0xe3d49a={'scriptId':_0x1c467c,'runId':(_0x4dbe0e=_0x22700b[_0x2b87a3(0xd9)][_0x2b87a3(0x15c)]('runId'))!=null?_0x4dbe0e:'','function':_0x12b11a,'unitId':_0x309838[_0x2b87a3(0x273)](),'argsOfFunction':JSON[_0x2b87a3(0x2c4)](_0x17264e),'invokeId':(_0x572699=_0xa97d1d['invokeId'])!=null?_0x572699:'','executionId':(_0x253fbc=_0xa97d1d[_0x2b87a3(0x207)])!=null?_0x253fbc:''};try{const _0x4c9495=await this[_0x2b87a3(0x112)][_0x2b87a3(0x2b9)](_0x4ade74,{'body':_0xe3d49a});return _0x4c9495['body'][_0x2b87a3(0x219)]&&_0x4c9495[_0x2b87a3(0x2bd)]['error']['code']!==Lt['OK']?'Failed':_0x4c9495[_0x2b87a3(0x2bd)]['result'];}catch{return _0x2b87a3(0x110);}}};nt=Cn([be(0x0,_0x4a6374),be(0x1,_0x4254b3(_0xb11c39)),be(0x2,_0x4bdd34)],nt);const rt=0x7530,ot='ACTIVE_UNIT_EVENT_CHANNEL';class Fn extends _0x275756{constructor(){const _0x4b7149=_0x5978f9;super(),_(this,_0x4b7149(0x1a4),_0xf28c22()),_(this,_0x4b7149(0x186),new Set()),_(this,_0x4b7149(0xcb),new Map()),_(this,_0x4b7149(0x149),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x4b7149(0x135),new Map()),this[_0x4b7149(0x17c)]();}[_0x5978f9(0x187)](){const _0x169a87=_0x5978f9;super[_0x169a87(0x187)](),this[_0x169a87(0x15f)][_0x169a87(0x1f2)]((_0x388d3f,_0x4084d2)=>this[_0x169a87(0x240)](_0x4084d2)),this[_0x169a87(0x149)]&&window['clearInterval'](this[_0x169a87(0x149)]);}[_0x5978f9(0x266)](_0x20db52){const _0x363922=_0x5978f9;return this[_0x363922(0x120)](_0x20db52)[_0x363922(0x228)](_0x17f3df());}['editingUnit'](_0x3038ae){const _0x21379b=_0x5978f9;this[_0x21379b(0x186)][_0x21379b(0x1fd)]===0x0&&this[_0x21379b(0x130)](),this[_0x21379b(0x186)][_0x21379b(0x12b)](_0x3038ae),this[_0x21379b(0x1a2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3038ae],'isForwarded':!0x1});}['disposeUnit'](_0x17fe78){const _0x10ac52=_0x5978f9;this['_selfUnitIDs'][_0x10ac52(0x214)](_0x17fe78),this[_0x10ac52(0x186)][_0x10ac52(0x1fd)]===0x0&&this[_0x10ac52(0x149)]&&window[_0x10ac52(0x1fa)](this[_0x10ac52(0x149)]);}['_init'](){const _0x45eac6=_0x5978f9;this['disposeWithMe'](_0x236c59(_0x9cc90b(window,'storage')['subscribe'](_0xe5eb37=>{const _0x287ab5=_0x3c22;if(_0xe5eb37['key']!==ot||!_0xe5eb37[_0x287ab5(0x11c)])return;const _0x5dce51=JSON[_0x287ab5(0x232)](_0xe5eb37[_0x287ab5(0x11c)]);this[_0x287ab5(0x21f)](_0x5dce51);}))),window['addEventListener']('unload',()=>this[_0x45eac6(0x1a2)]({'type':0x1,'memberID':this[_0x45eac6(0x1a4)],'unitIDs':Array[_0x45eac6(0x24c)](this[_0x45eac6(0x186)])}));}[_0x5978f9(0x21f)](_0x53b0f9){const _0x2038f1=_0x5978f9;switch(_0x53b0f9[_0x2038f1(0x204)]){case 0x0:this['_handleJoinEvent'](_0x53b0f9);break;case 0x1:this[_0x2038f1(0x29b)](_0x53b0f9);break;case 0x2:this[_0x2038f1(0x10e)](_0x53b0f9);break;}}['_handleJoinEvent'](_0x338c64){const _0x3a910c=_0x5978f9,{unitIDs:_0x4b7986,memberID:_0xb22ad4,isForwarded:_0x4a1210}=_0x338c64;_0x4b7986[_0x3a910c(0x1f2)](_0x386156=>{const _0x3dedd7=_0x3a910c;if(!_0x4a1210&&this[_0x3dedd7(0xcb)][_0x3dedd7(0x267)](_0x386156)&&this['_ensureSubject'](_0x386156)[_0x3dedd7(0x1c6)](_0x30805d[_0x3dedd7(0x22e)]),!this[_0x3dedd7(0xcb)][_0x3dedd7(0x267)](_0x386156)||!this[_0x3dedd7(0xcb)][_0x3dedd7(0x15c)](_0x386156)['has'](_0xb22ad4)){const _0x3448d6=this['_unitOnClients'][_0x3dedd7(0x15c)](_0x386156)||new Set();_0x3448d6[_0x3dedd7(0x12b)](_0xb22ad4),this['_unitOnClients'][_0x3dedd7(0x102)](_0x386156,_0x3448d6),this[_0x3dedd7(0x23a)](_0xb22ad4);}}),_0x4a1210||this[_0x3a910c(0x1a2)]({'type':0x0,'memberID':this[_0x3a910c(0x1a4)],'unitIDs':[...this[_0x3a910c(0x186)]],'isForwarded':!0x0});}[_0x5978f9(0x23a)](_0x5e0e58){const _0xc2cf29=_0x5978f9;this[_0xc2cf29(0x240)](_0x5e0e58);const _0x2daae3=window['setTimeout'](()=>{const _0x53cc84=_0xc2cf29;this[_0x53cc84(0xcb)][_0x53cc84(0x1f2)](_0x500b80=>{const _0x2c01b2=_0x53cc84;_0x500b80[_0x2c01b2(0x214)](_0x5e0e58);});},rt*0x2);this['_clearOtherTimers'][_0xc2cf29(0x102)](_0x5e0e58,_0x2daae3);}[_0x5978f9(0x240)](_0x199cdd){const _0x4f0639=_0x5978f9;if(this[_0x4f0639(0x15f)][_0x4f0639(0x267)](_0x199cdd)){const _0x52f72d=this[_0x4f0639(0x15f)][_0x4f0639(0x15c)](_0x199cdd);_0x52f72d&&window['clearTimeout'](_0x52f72d),this[_0x4f0639(0x15f)][_0x4f0639(0x102)](_0x199cdd,null);}}[_0x5978f9(0x29b)](_0x2a41ad){const _0x42ea92=_0x5978f9,{memberID:_0x1f70bc,unitIDs:_0x426192}=_0x2a41ad;_0x426192[_0x42ea92(0x1f2)](_0x23541d=>{const _0x516ce0=_0x42ea92;var _0x2e4f64;const _0x5d9a35=this[_0x516ce0(0xcb)]['get'](_0x23541d);_0x5d9a35&&(_0x5d9a35[_0x516ce0(0x214)](_0x1f70bc),(_0x2e4f64=this[_0x516ce0(0x120)](_0x23541d))==null||_0x2e4f64[_0x516ce0(0x1c6)](_0x5d9a35[_0x516ce0(0x1fd)]===0x0?_0x30805d[_0x516ce0(0x2b5)]:_0x30805d[_0x516ce0(0x22e)]));}),this[_0x42ea92(0x240)](_0x1f70bc);}[_0x5978f9(0x10e)](_0x171559){const _0x30a4c0=_0x5978f9;this[_0x30a4c0(0x23a)](_0x171559[_0x30a4c0(0xea)]);}[_0x5978f9(0x1a2)](_0x1a282a){const _0x4ae7f6=_0x5978f9;localStorage[_0x4ae7f6(0x1e0)](ot,JSON['stringify'](_0x1a282a));}[_0x5978f9(0x130)](){const _0x3ae094=_0x5978f9;this[_0x3ae094(0x149)]=window[_0x3ae094(0x250)](()=>{const _0x491c0e=_0x3ae094;this['_send']({'type':0x2,'memberID':this[_0x491c0e(0x1a4)]});},rt);}[_0x5978f9(0x120)](_0x2cbb99){const _0x17d040=_0x5978f9;return this[_0x17d040(0x135)][_0x17d040(0x267)](_0x2cbb99)||this[_0x17d040(0x135)]['set'](_0x2cbb99,new _0x2ec644(_0x30805d[_0x17d040(0x2b5)])),this[_0x17d040(0x135)][_0x17d040(0x15c)](_0x2cbb99);}}export{it as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Ut as IURLService,nt as RemoteUniscriptService,Xi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- function _0x1a69(){const _0x3ffdb1=['476492zifuei','1500874hSSLwZ','Collaboration\x20Conflict','3083308qqHjnD','Connection\x20failed,\x20please\x20check\x20your\x20network.','Authentication\x20Error','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','725949yssZul','464322GElaZP','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','18192393HfPEpj','1141510TSWTFE','63HLlCAh','Click\x20to\x20Reconnect','Local\x20file','8gNdRME','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'];_0x1a69=function(){return _0x3ffdb1;};return _0x1a69();}function _0x4cef(_0x4e15dd,_0x21f41c){const _0x1a69fe=_0x1a69();return _0x4cef=function(_0x4cefa1,_0x206841){_0x4cefa1=_0x4cefa1-0x66;let _0x23c18c=_0x1a69fe[_0x4cefa1];return _0x23c18c;},_0x4cef(_0x4e15dd,_0x21f41c);}const _0x21e538=_0x4cef;(function(_0x667c73,_0x4af542){const _0x2096fd=_0x4cef,_0x1964cd=_0x667c73();while(!![]){try{const _0x136be2=-parseInt(_0x2096fd(0x66))/0x1+-parseInt(_0x2096fd(0x67))/0x2+-parseInt(_0x2096fd(0x6d))/0x3+parseInt(_0x2096fd(0x69))/0x4+-parseInt(_0x2096fd(0x72))/0x5+-parseInt(_0x2096fd(0x6e))/0x6*(parseInt(_0x2096fd(0x73))/0x7)+parseInt(_0x2096fd(0x76))/0x8*(parseInt(_0x2096fd(0x71))/0x9);if(_0x136be2===_0x4af542)break;else _0x1964cd['push'](_0x1964cd['shift']());}catch(_0x2918e6){_0x1964cd['push'](_0x1964cd['shift']());}}}(_0x1a69,0x614ab));const e={'collab-client':{'tooltip':{'reconnect':_0x21e538(0x74)}},'collabStatus':{'fetchMiss':_0x21e538(0x70),'conflict':'Edit\x20conflicts','notCollab':_0x21e538(0x75),'synced':'Synced','syncing':'Syncing...','offline':_0x21e538(0x6c)},'session':{'connection-failed':_0x21e538(0x6a),'will-retry':_0x21e538(0x78),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x21e538(0x77)},'conflict':{'title':_0x21e538(0x68),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x21e538(0x6b),'content':_0x21e538(0x6f)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x21e538(0x79)}},o=e;export{o as default};
1
+ const _0x5c1be3=_0x2c3d;(function(_0x427ea8,_0x22e881){const _0x33c13d=_0x2c3d,_0x2352f3=_0x427ea8();while(!![]){try{const _0x3cbf2a=parseInt(_0x33c13d(0x153))/0x1*(parseInt(_0x33c13d(0x14f))/0x2)+parseInt(_0x33c13d(0x15e))/0x3+parseInt(_0x33c13d(0x160))/0x4*(parseInt(_0x33c13d(0x154))/0x5)+parseInt(_0x33c13d(0x159))/0x6+-parseInt(_0x33c13d(0x161))/0x7+parseInt(_0x33c13d(0x157))/0x8*(-parseInt(_0x33c13d(0x15b))/0x9)+parseInt(_0x33c13d(0x156))/0xa*(parseInt(_0x33c13d(0x155))/0xb);if(_0x3cbf2a===_0x22e881)break;else _0x2352f3['push'](_0x2352f3['shift']());}catch(_0x40fe3a){_0x2352f3['push'](_0x2352f3['shift']());}}}(_0x3fd4,0xdde3f));const e={'collab-client':{'tooltip':{'reconnect':_0x5c1be3(0x15a)}},'collabStatus':{'fetchMiss':_0x5c1be3(0x15c),'conflict':'Edit\x20conflicts','notCollab':_0x5c1be3(0x152),'synced':_0x5c1be3(0x150),'syncing':_0x5c1be3(0x162),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x5c1be3(0x15f),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x5c1be3(0x151)},'conflict':{'title':_0x5c1be3(0x158),'content':_0x5c1be3(0x15d)},'permission':{'title':_0x5c1be3(0x165),'content':_0x5c1be3(0x164)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x5c1be3(0x163)}},o=e;function _0x2c3d(_0x4d7026,_0x442055){const _0x3fd469=_0x3fd4();return _0x2c3d=function(_0x2c3df1,_0x4f14f7){_0x2c3df1=_0x2c3df1-0x14f;let _0x1730a6=_0x3fd469[_0x2c3df1];return _0x1730a6;},_0x2c3d(_0x4d7026,_0x442055);}function _0x3fd4(){const _0x13180d=['Collaboration\x20Conflict','9016872kqTyFR','Click\x20to\x20Reconnect','3069gStTuW','Syncing\x20server\x20data...','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','909867RAohQv','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','14108XhPIBQ','4890396aAhOZn','Syncing...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Authentication\x20Error','2WPniOp','Synced','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Local\x20file','148471mNyvuK','140WlIDmH','573353gQRndI','30dVXTJI','14128GlKmOr'];_0x3fd4=function(){return _0x13180d;};return _0x3fd4();}export{o as default};
@@ -1 +1 @@
1
- const _0x31f678=_0x3a48;(function(_0x4b1ab3,_0x224313){const _0x19b5d8=_0x3a48,_0x1b9ef6=_0x4b1ab3();while(!![]){try{const _0x513210=-parseInt(_0x19b5d8(0x143))/0x1+parseInt(_0x19b5d8(0x138))/0x2+parseInt(_0x19b5d8(0x137))/0x3+-parseInt(_0x19b5d8(0x142))/0x4+parseInt(_0x19b5d8(0x133))/0x5*(parseInt(_0x19b5d8(0x139))/0x6)+-parseInt(_0x19b5d8(0x140))/0x7+parseInt(_0x19b5d8(0x141))/0x8;if(_0x513210===_0x224313)break;else _0x1b9ef6['push'](_0x1b9ef6['shift']());}catch(_0x5a58e9){_0x1b9ef6['push'](_0x1b9ef6['shift']());}}}(_0x3e48,0xc7207));const e={'collab-client':{'tooltip':{'reconnect':_0x31f678(0x13e)}},'collabStatus':{'fetchMiss':_0x31f678(0x13c),'conflict':_0x31f678(0x13f),'notCollab':_0x31f678(0x13a),'synced':'Synced','syncing':_0x31f678(0x13b),'offline':_0x31f678(0x144)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x31f678(0x132),'room-full':_0x31f678(0x135),'collaboration-timeout':_0x31f678(0x145)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x31f678(0x134)},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x31f678(0x136)},'closeRoom':_0x31f678(0x13d)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};export{e as default};function _0x3a48(_0x20ef43,_0x24b51c){const _0x3e48a1=_0x3e48();return _0x3a48=function(_0x3a48d5,_0x31831b){_0x3a48d5=_0x3a48d5-0x132;let _0x4c8cc2=_0x3e48a1[_0x3a48d5];return _0x4c8cc2;},_0x3a48(_0x20ef43,_0x24b51c);}function _0x3e48(){const _0x5b6ea5=['9258494txNgpC','4312432LUhSda','2317408WIqAAt','1391751EGlLjZ','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','3693530HnefeM','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','4170765BBNegz','1405294iWNTwJ','12qlrFzq','Local\x20file','Syncing...','Syncing\x20server\x20data...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Click\x20to\x20Reconnect','Edit\x20conflicts'];_0x3e48=function(){return _0x5b6ea5;};return _0x3e48();}
1
+ function _0x690c(_0x499710,_0x596e6b){const _0x58c90f=_0x58c9();return _0x690c=function(_0x690c22,_0x2e9701){_0x690c22=_0x690c22-0x196;let _0xd1fb21=_0x58c90f[_0x690c22];return _0xd1fb21;},_0x690c(_0x499710,_0x596e6b);}const _0x479d15=_0x690c;(function(_0x58a8b7,_0x5b4e75){const _0x3e5687=_0x690c,_0x47c4f8=_0x58a8b7();while(!![]){try{const _0x13efeb=parseInt(_0x3e5687(0x19f))/0x1*(parseInt(_0x3e5687(0x197))/0x2)+parseInt(_0x3e5687(0x19a))/0x3+-parseInt(_0x3e5687(0x198))/0x4*(-parseInt(_0x3e5687(0x1a5))/0x5)+parseInt(_0x3e5687(0x1a1))/0x6+parseInt(_0x3e5687(0x1a9))/0x7*(parseInt(_0x3e5687(0x1a3))/0x8)+parseInt(_0x3e5687(0x196))/0x9+parseInt(_0x3e5687(0x19e))/0xa*(-parseInt(_0x3e5687(0x19b))/0xb);if(_0x13efeb===_0x5b4e75)break;else _0x47c4f8['push'](_0x47c4f8['shift']());}catch(_0x4db04f){_0x47c4f8['push'](_0x47c4f8['shift']());}}}(_0x58c9,0x965a4));const e={'collab-client':{'tooltip':{'reconnect':_0x479d15(0x1a0)}},'collabStatus':{'fetchMiss':_0x479d15(0x19c),'conflict':'Edit\x20conflicts','notCollab':_0x479d15(0x19d),'synced':_0x479d15(0x1ad),'syncing':'Syncing...','offline':_0x479d15(0x1a8)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x479d15(0x1ab),'room-full':_0x479d15(0x1a4),'collaboration-timeout':_0x479d15(0x1a2)},'conflict':{'title':_0x479d15(0x1ae),'content':_0x479d15(0x1a6)},'permission':{'title':_0x479d15(0x1ac),'content':_0x479d15(0x1aa)},'collaboration':{'single-unit':{'warning':_0x479d15(0x199)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x479d15(0x1a7)}};function _0x58c9(){const _0x16e5d9=['6uNxhEV','4apVXRU','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','96210NvMkmG','99vyzZFW','Syncing\x20server\x20data...','Local\x20file','2575290jiBNbP','105883YaeXwy','Click\x20to\x20Reconnect','1510746diUqWk','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','1481768uSQWcP','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','3538830dvprCR','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','35CJwsaT','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Authentication\x20Error','Synced','Collaboration\x20Conflict','6284016ewvxAN'];_0x58c9=function(){return _0x16e5d9;};return _0x58c9();}export{e as default};