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

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 (49) 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/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x116f(){const _0xb0d006=['10kYrqcg','1281198OztsAW','extend','6918EvORpe','FUniver','get','10273144lHAVvz','149035BHWFZx','_injector','174okMQHK','92436mjvWcw','9037140SoxWxp','17410509WABJiu','2QZFrWQ','runOnServer'];_0x116f=function(){return _0xb0d006;};return _0x116f();}const _0x30cf02=_0x3ad0;(function(_0x3a8b00,_0x438942){const _0x3a7548=_0x3ad0,_0x46ac58=_0x3a8b00();while(!![]){try{const _0x529550=-parseInt(_0x3a7548(0x159))/0x1+-parseInt(_0x3a7548(0x154))/0x2*(parseInt(_0x3a7548(0x157))/0x3)+parseInt(_0x3a7548(0x151))/0x4+parseInt(_0x3a7548(0x14e))/0x5*(-parseInt(_0x3a7548(0x150))/0x6)+parseInt(_0x3a7548(0x152))/0x7+-parseInt(_0x3a7548(0x14d))/0x8+parseInt(_0x3a7548(0x153))/0x9*(parseInt(_0x3a7548(0x156))/0xa);if(_0x529550===_0x438942)break;else _0x46ac58['push'](_0x46ac58['shift']());}catch(_0x4815da){_0x46ac58['push'](_0x46ac58['shift']());}}}(_0x116f,0xa29f4));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x30cf02(0x15a)]{[_0x30cf02(0x155)](_0x4b28e6,_0x1465b8,..._0x1ba335){const _0x23fb86=_0x30cf02;return this[_0x23fb86(0x14f)][_0x23fb86(0x14c)](t['RemoteUniscriptService'])['runOnServer'](_0x4b28e6,_0x1465b8,{},..._0x1ba335);}}function _0x3ad0(_0x5bdd0d,_0x577dbb){const _0x116fcf=_0x116f();return _0x3ad0=function(_0x3ad089,_0x1a4266){_0x3ad089=_0x3ad089-0x14c;let _0x3cf70f=_0x116fcf[_0x3ad089];return _0x3cf70f;},_0x3ad0(_0x5bdd0d,_0x577dbb);}e['FUniver'][_0x30cf02(0x158)](c);
1
+ 'use strict';const _0x4a5d4a=_0x4f46;(function(_0x32a480,_0x567139){const _0x2030d9=_0x4f46,_0x11dec4=_0x32a480();while(!![]){try{const _0x1eb132=-parseInt(_0x2030d9(0x79))/0x1+parseInt(_0x2030d9(0x78))/0x2*(parseInt(_0x2030d9(0x75))/0x3)+-parseInt(_0x2030d9(0x7c))/0x4+-parseInt(_0x2030d9(0x7a))/0x5+-parseInt(_0x2030d9(0x7d))/0x6*(parseInt(_0x2030d9(0x7b))/0x7)+parseInt(_0x2030d9(0x7e))/0x8+-parseInt(_0x2030d9(0x72))/0x9*(-parseInt(_0x2030d9(0x77))/0xa);if(_0x1eb132===_0x567139)break;else _0x11dec4['push'](_0x11dec4['shift']());}catch(_0x30c0ca){_0x11dec4['push'](_0x11dec4['shift']());}}}(_0x633f,0xaa47b));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x4a5d4a(0x74)]{[_0x4a5d4a(0x76)](_0x1c6c02,_0x520efa,..._0x3afdc6){const _0x1acf6b=_0x4a5d4a;return this[_0x1acf6b(0x73)][_0x1acf6b(0x71)](t['RemoteUniscriptService'])[_0x1acf6b(0x76)](_0x1c6c02,_0x520efa,{},..._0x3afdc6);}}function _0x4f46(_0x2ba575,_0x4490d7){const _0x633f18=_0x633f();return _0x4f46=function(_0x4f46e1,_0x117822){_0x4f46e1=_0x4f46e1-0x71;let _0x465454=_0x633f18[_0x4f46e1];return _0x465454;},_0x4f46(_0x2ba575,_0x4490d7);}e[_0x4a5d4a(0x74)]['extend'](c);function _0x633f(){const _0x1f22db=['2865fcTGAb','runOnServer','31866110zPqDck','1382spiWyE','1303263rVwTtq','1064070gddhJJ','34251jUEYrH','3937724aCkzdd','1032XdWqRY','1544440iuJkLN','get','9xkVxPN','_injector','FUniver'];_0x633f=function(){return _0x1f22db;};return _0x633f();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2a17cf=_0x1209;(function(_0x474b0b,_0x1aa536){const _0x8960d=_0x1209,_0x361050=_0x474b0b();while(!![]){try{const _0x2a8bee=-parseInt(_0x8960d(0x2da))/0x1*(-parseInt(_0x8960d(0x2c0))/0x2)+parseInt(_0x8960d(0x2b8))/0x3+-parseInt(_0x8960d(0x27d))/0x4*(-parseInt(_0x8960d(0x362))/0x5)+parseInt(_0x8960d(0x283))/0x6+parseInt(_0x8960d(0x182))/0x7+-parseInt(_0x8960d(0x387))/0x8*(-parseInt(_0x8960d(0x3a3))/0x9)+-parseInt(_0x8960d(0x1b3))/0xa;if(_0x2a8bee===_0x1aa536)break;else _0x361050['push'](_0x361050['shift']());}catch(_0x1f99b3){_0x361050['push'](_0x361050['shift']());}}}(_0x14db,0x94491));var We=Object[_0x2a17cf(0x3a7)],Ve=(_0x1c531f,_0x1ce9c9,_0x36a4f4)=>_0x1ce9c9 in _0x1c531f?We(_0x1c531f,_0x1ce9c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36a4f4}):_0x1c531f[_0x1ce9c9]=_0x36a4f4,h=(_0x533e03,_0xacfc57,_0x226348)=>Ve(_0x533e03,typeof _0xacfc57!=_0x2a17cf(0x21f)?_0xacfc57+'':_0xacfc57,_0x226348);Object['defineProperty'](exports,Symbol[_0x2a17cf(0x29e)],{'value':_0x2a17cf(0x397)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x4ccfdc=_0x2a17cf;return b=Object[_0x4ccfdc(0x3e5)]||function(_0x31b1e9){const _0x4bbe7f=_0x4ccfdc;for(var _0x4e3559,_0x2af00c=0x1,_0x6a2e75=arguments[_0x4bbe7f(0x1fd)];_0x2af00c<_0x6a2e75;_0x2af00c++){_0x4e3559=arguments[_0x2af00c];for(var _0x43adb0 in _0x4e3559)Object[_0x4bbe7f(0x210)][_0x4bbe7f(0x24f)][_0x4bbe7f(0x2ff)](_0x4e3559,_0x43adb0)&&(_0x31b1e9[_0x43adb0]=_0x4e3559[_0x43adb0]);}return _0x31b1e9;},b[_0x4ccfdc(0x1b5)](this,arguments);},Ke=function(_0x3dcd95,_0x56a288){const _0x16e611=_0x2a17cf;var _0x4a9370={};for(var _0x1669b0 in _0x3dcd95)Object['prototype'][_0x16e611(0x24f)][_0x16e611(0x2ff)](_0x3dcd95,_0x1669b0)&&_0x56a288[_0x16e611(0x243)](_0x1669b0)<0x0&&(_0x4a9370[_0x1669b0]=_0x3dcd95[_0x1669b0]);if(_0x3dcd95!=null&&typeof Object[_0x16e611(0x388)]==_0x16e611(0x225)){for(var _0x147d41=0x0,_0x1669b0=Object[_0x16e611(0x388)](_0x3dcd95);_0x147d41<_0x1669b0[_0x16e611(0x1fd)];_0x147d41++)_0x56a288[_0x16e611(0x243)](_0x1669b0[_0x147d41])<0x0&&Object[_0x16e611(0x210)][_0x16e611(0x377)][_0x16e611(0x2ff)](_0x3dcd95,_0x1669b0[_0x147d41])&&(_0x4a9370[_0x1669b0[_0x147d41]]=_0x3dcd95[_0x1669b0[_0x147d41]]);}return _0x4a9370;},ge=M['forwardRef'](function(_0x75ab15,_0x17d4f6){const _0x438277=_0x2a17cf;var _0x39d765=_0x75ab15['icon'],_0x3d2e38=_0x75ab15['id'],_0x58388a=_0x75ab15[_0x438277(0x1f9)],_0x58271a=_0x75ab15[_0x438277(0x380)],_0x346cd4=Ke(_0x75ab15,[_0x438277(0x23d),'id','className',_0x438277(0x380)]),_0x3ebb6c=_0x438277(0x1a8)[_0x438277(0x2bc)](_0x3d2e38,'\x20')[_0x438277(0x2bc)](_0x58388a||'')[_0x438277(0x3d9)](),_0xe32b78=M[_0x438277(0x2ad)]('_'['concat'](Je()));return Pe(_0x39d765,''['concat'](_0x3d2e38),{'defIds':_0x39d765['defIds'],'idSuffix':_0xe32b78['current']},b({'ref':_0x17d4f6,'className':_0x3ebb6c},_0x346cd4),_0x58271a);});function Pe(_0x6012a,_0x28be30,_0x6d5f73,_0x44a466,_0x445d36){const _0x4ad51b=_0x2a17cf;return M['createElement'](_0x6012a[_0x4ad51b(0x1ec)],b(b({'key':_0x28be30},qe(_0x6012a,_0x6d5f73,_0x445d36)),_0x44a466),(ze(_0x6012a,_0x6d5f73)['children']||[])[_0x4ad51b(0x183)](function(_0x44127f,_0x22625b){const _0x5468f1=_0x4ad51b;return Pe(_0x44127f,''[_0x5468f1(0x2bc)](_0x28be30,'-')[_0x5468f1(0x2bc)](_0x6012a[_0x5468f1(0x1ec)],'-')['concat'](_0x22625b),_0x6d5f73,void 0x0,_0x445d36);}));}function qe(_0x4f7fe9,_0x1a246a,_0x2195b5){const _0x282a1e=_0x2a17cf;var _0x15ae3e=b({},_0x4f7fe9[_0x282a1e(0x3c9)]);_0x2195b5!=null&&_0x2195b5['colorChannel1']&&_0x15ae3e[_0x282a1e(0x36d)]===_0x282a1e(0x2a3)&&(_0x15ae3e['fill']=_0x2195b5[_0x282a1e(0x2a3)]),_0x4f7fe9[_0x282a1e(0x1ec)]==='mask'&&_0x15ae3e['id']&&(_0x15ae3e['id']=_0x15ae3e['id']+_0x1a246a[_0x282a1e(0x389)]),Object[_0x282a1e(0x3a0)](_0x15ae3e)[_0x282a1e(0x1ce)](function(_0x55680c){const _0x3e5784=_0x282a1e;var _0x34fac0=_0x55680c[0x0],_0x3c6f37=_0x55680c[0x1];_0x34fac0===_0x3e5784(0x3b7)&&typeof _0x3c6f37=='string'&&(_0x15ae3e[_0x34fac0]=_0x3c6f37[_0x3e5784(0x3f4)](/url\(#(.*)\)/,_0x3e5784(0x357)[_0x3e5784(0x2bc)](_0x1a246a[_0x3e5784(0x389)],')')));});var _0x5e7ad6=_0x1a246a[_0x282a1e(0x3ef)];return!_0x5e7ad6||_0x5e7ad6[_0x282a1e(0x1fd)]===0x0||(_0x4f7fe9[_0x282a1e(0x1ec)]===_0x282a1e(0x25b)&&_0x15ae3e['xlink:href']&&(_0x15ae3e[_0x282a1e(0x2f9)]=_0x15ae3e[_0x282a1e(0x2f9)]+_0x1a246a['idSuffix']),Object['entries'](_0x15ae3e)['forEach'](function(_0x4c8bef){const _0xe54388=_0x282a1e;var _0x416775=_0x4c8bef[0x0],_0x489040=_0x4c8bef[0x1];typeof _0x489040=='string'&&(_0x15ae3e[_0x416775]=_0x489040['replace'](/url\(#(.*)\)/,_0xe54388(0x357)[_0xe54388(0x2bc)](_0x1a246a[_0xe54388(0x389)],')')));})),_0x15ae3e;}function ze(_0x42844c,_0x42ca05){const _0x3bbd56=_0x2a17cf;var _0x39b6f2,_0x23dbbb=_0x42ca05['defIds'];return!_0x23dbbb||_0x23dbbb['length']===0x0?_0x42844c:_0x42844c['tag']==='defs'&&(!((_0x39b6f2=_0x42844c[_0x3bbd56(0x29f)])===null||_0x39b6f2===void 0x0)&&_0x39b6f2['length'])?b(b({},_0x42844c),{'children':_0x42844c[_0x3bbd56(0x29f)][_0x3bbd56(0x183)](function(_0x363f45){const _0x557f49=_0x3bbd56;return typeof _0x363f45[_0x557f49(0x3c9)]['id']==_0x557f49(0x230)&&_0x23dbbb&&_0x23dbbb[_0x557f49(0x1b7)](_0x363f45['attrs']['id'])?b(b({},_0x363f45),{'attrs':b(b({},_0x363f45[_0x557f49(0x3c9)]),{'id':_0x363f45[_0x557f49(0x3c9)]['id']+_0x42ca05[_0x557f49(0x389)]})}):_0x363f45;})}):_0x42844c;}function Je(){const _0x5de6da=_0x2a17cf;return Math[_0x5de6da(0x396)]()[_0x5de6da(0x2c5)](0x24)[_0x5de6da(0x181)](0x2,0x8);}function _0x14db(){const _0x1a5875=['OFFLINE','_startSheetCollabCursor','_handleEvent','_hideTimer','location','UniverInstanceType','getLocalCacheKey','useRef','_initStatusComponent','generateRandomId','forwardRef','purple.300','Disposable','APPLY_NON_SEQUENTIAL_REVISION','_transformUndoRedoStack','transformRemoteChangeset','path','RemoteUniscriptService','3493581yvDyJm','_hovered','collab-text-anchor-','next','concat','_cursor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_themeService','70858SqfZDx','_renderManagerService','params','CommandType','AWAITING','toString','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_render','YUUMI_CONNECTOR_URL_NOT_FOUND','docStateChange$','isTransformMutationFailure','disposeUnit','some','SNAPSHOT_INVALID_SNAPSHOT','white','disableLocalCache','storage','DocSkeletonManagerService','RevisionService','combineLatest','_onCursorDelete','registerRenderModule','_unitStatus','collabStatus.synced','0\x200\x2016\x2016','_getScale','5XwraoL','BehaviorSubject','_initEvent','_saveTaskMap','ITransformService','ColorKit','onPointerEnter$','_name','getUnitId','transformStateCache','_collaborationUIEventService','_handleJoinEvent','APPLY_PERMISSION_DENIED','LICENSE_DISTRO_REJECTED','_drawRectRange','SheetsSelectionsService','_updateSubUnitFromURLParams','ILocalCacheService','save','YUUMI_UNABLE_LOAD_URL','getCollabEntity$','UniverCollaborationClientUIPlugin','_textBubble','_collabSessionService','eventID','LICENSE_MAX_UNITS_EXCEEDED','_collabCursorState$','cursorInfo','status$','application/json','getColorFromTheme','xlink:href','SHEET_VIEWPORT_KEY','searchParams','handleDeleteRangeMoveLeft','debounceTime','_unitOnClients','call','getCurrentUnitForType','_docTransformStateCacheService','get','_sheetSkeletonManagerService','CollaborationController','_docTransformSelectionsService','_saveCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_initEntityListener','_updateURLWithCurrentState','_context','textRanges','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','connectInjector','stringify','_initResize','_createSocketURL','_send','getCollabCursors$','_shapes','clipPath','_registerDependencies','serializeRangeWithSheet','_anchor','SheetCollabCursorShape','source','redoState','collab-rect-range-','div','handleInsertRow','YUUMI_ALL_TABLES_IS_INVALID','getSheetObject','top','_refRangeService','complete','RichTextEditingMutation','_scheduleHeartbeat','measureText','_setupBeforeClosingHandler','permission.title','makeDirty','getMemberID','getRenderById','setConfig','_document','UPDATE_CURSOR','NOT_FOUND','_heartbeatTimer','getOwnPropertyDescriptor','NOT_COLLAB','WECHAT_HAS_BEEN_BOUND','_selfUnitIDs','MessageType','collabStatus.conflict','getConfig','_toggleOnline','reconnect','getUniverSheetInstance','enableLocalCache','DeleteRangeMoveUpCommandId','collabCursorState$','backgroundColor','registerRefRange','fillStyle','IConfigService','IRemoteInstanceService','whenReady','row','handleIRemoveCol','imageSourceType','APPLY_REJECT','UNIVER_DOC','text','_logService','_getSheetObject','UNDEFINED','_startDocCollabCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onCommandExecuted','pushState','_commandService','NodePositionConvertToRectRange','getTypeOfUnitDisposed$','_localeService','_cachedData','beginPath','runOnServer','url(#$1','_onRefRangeChange','RxDisposable','newValue','YUUMI_TABLE_NOT_FOUND_IN_UNIT','deserializeRangeWithSheet','isArray','ALREADY_EXISTS','none','roomMembers','send','3295FXmqBV','_lastPointer','collab-text-range-','DocSelectionManagerService','CollaborationEvent','DocCollaborationEntity','_draw','_configService','saveTaskMap','0\x200\x2017\x2016','CONFLICT','fill','green.600','_revisionService','selections','origin','INTERNAL_ERROR','InsertRowCommandId','addObject','history','WebSocketService','propertyIsEnumerable','add','EMAIL_HAS_BEEN_BOUND','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','INVALID_INVITE_CODE','CollaborationDataLoaderController','setActiveRange','APPLY_REVISION_CONFILICT','hide','extend','_roomMembers$','PENDING','UniverIcon','IBeforeCloseService','COLORS','PERMISSION_DENIED','1192BVCrqh','getOwnPropertySymbols','idSuffix','CONNECTOR_DATA_TOO_LARGE','YUUMI_RATE_OVER_LIMIT','CollaborationUIEventId','sessionStatus$','transform','WebURLService','getCurrentRevOfUnit','SYNCED','_cursorInfo$','YUUMI_SUBSCRIPTION_NOT_FOUND','_notificationService','black','random','Module','getSkeleton','values','univer-mr-2\x20univer-flex\x20univer-text-xl','height','DocStateChangeManagerService','ENSURE_SNAPSHOT_EXECUTION','subunit','addEventListener','entries','useDependency','DisposableCollection','18477QwLcaT','createInstance','startRow','pipe','defineProperty','addClipboardHook','_docStateChangeManagerService','collab-client.tooltip.reconnect','CollaborationSocketService','_scheduleClearOtherTimer','getUnitStatus$','LOGIN_FAILED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_online','handleInsertCol','INVITE_CODE_REQUIRED','TOO_MANY_REQUESTS','switchMap','selection','round','mask','_range','SetTextSelectionsOperation','_labelPosition','subUnitId','IImageIoService','has','_ensureSubject','_handleLeaveEvent','off-line-icon_clip0_910_343','red.300','INVITE_CODE_HAS_BEEN_UES','href','_cursorShapes','moveTo','LOCAL_CACHE_INTERVAL','size','_collabCursorController','attrs','getActiveRange','_hover','fromEvent','_beforeCloseService','onStarting','setItem','syncEditingCollabCursor','toRgbString','YUUMI_NO_CUBOID_FOR_QUESTION','onLocalMutation','evenodd','cursorInfo$','getFocusedUnit','min','subscribeEvent','trim','_transformHistoryAndStateStack','_dataLoaderService','transformSelections','error','_scene','RECT','labelPosition','unshift','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','NO_OTHER_CLIENTS_EDITING','fromEventSubject','assign','getUndoRedoMutationParamsCache','getMember','session.connection-failed','IMessageService','setShapeProps','_entityInit$','HTTPService','#FFF','CollaborationStatus','defIds','runRefRangeMutations','saveOfflineData','mapTo','then','replace','off-line-icon','EffectRefRangId','subscribe','from','_clearOtherTimers','getActiveSheet','isActive','endRow','width','Rect','DesktopCollaborationStatusDisplayController','dispose$','_status$','INVITE_CODE_ALREADY_BOUND','dispose','UnitStatus','throttleTime','asObservable','_doCreateSocket','SheetSkeletonManagerService','substring','3832031dsRIkq','map','delete','_initDependencies','doc.mutation.rich-text-editing','clearInterval','InsertRangeMoveDownCommandId','debounce','InsertRangeMoveRightCommandId','UniverCollaborationClientPlugin','blue.400','rgba(255,\x20255,\x20255,\x200.01)','isTransformMutationsWithChangesetSuccess','collaboration.closeRoom','_backgroundColor','urlChange$','_collaborationController','DOC_RANGE_TYPE','onPointerMove$','_syncEditingCollabCursorService','[CollaborationDataLoaderController]','column','Tooltip','CollaborationSessionService','executionId','setTimeout','_getSessionTicket','USER_NOT_INVITED_CODE','ISocketService','TEXT_RANGE_LAYER_INDEX','_initStatusListener','M0\x200H16V16H0z','getSheetBySheetId','_registerRenderDependencies','search','merge','_eventUnsubscribe','_handleHover','univerjs-icon\x20univerjs-icon-','EMAIL_VERIFY_CODE_MISMATCH','clearTimeout','event$','override','getCurrent','getOffsetConfig','AWAITING_WITH_PENDING','Unknown\x20user','DEFAULT_WS_SESSION_TICKET_URL','distinctUntilChanged','29820340IQbZho','1em','apply','TRANSFORM_CHANGE_OBSERVABLE_TYPE','includes','transformMutationsWithChangeset','getRangePointData','USERS_LEAVE','_httpService','SNAPSHOT_HAS_BEEN_REMOVED','translate(.97)','popstate','...','FETCH_MISS','unsubscribe','transformByState','handleIRemoveRow','getViewport','clsx','_setupSubUnitSync','_removeCollabCursors','IDocClipboardService','session.collaboration-timeout','ThemeService','IUIPartsService','roomMembers$','SOCKET_FAILED','forEach','DeleteRangeMoveLeftCommandId','data','handleInsertRangeMoveDown','mergeOverrideWithDependencies','url(#off-line-icon_clip0_910_343)','permission.content','getParam','CLOSE_ROOM','_handleHeartbeatEvent','_updateLocalCursor','getValue','_cursors','RemoveRowCommandId','ILocalStorageService','startColumn','BrowserCollaborationSocketService','name','getMergeData','BuiltInUIPart','jsx','getStateCache','max','setParam','UNRECOGNIZED','setAlpha','CHANGESET_REVISION_CONFILICT','Shape','transformMutation','memberID','tag','_colorAssignService','SetDocZoomRatioOperation','bottom','_session','Vector2','_urlService','_anchorDot','runId','disposeWithMe','sheetID','_uiPartsService','getAncestorScale','className','resize','_disabled','SOCKET_FAILED_RETRY','length','IURLService','Plugin','mutations','currentColor','LocaleService','push','_color','CollaborationUIEventService','currentSkeleton$','SessionStatus','Failed','COMPLETION_FINISHED','HEADER_MENU','color','_docSkeletonManagerService','ILogService','APPLY_DUPLICATED','_transformService','prototype','_onCursorUpdate','m2Prime','_updateCollabCursors','with','_univerInstanceService','_colorIndex','addHandlerCallback','hovered','_localCacheService','Workbook','currentTheme$','MOBILE_VERIFY_CODE_MISMATCH','TEXT','DependentOn','symbol','_entities','getColor','key','shareReplay','_messageService','function','deepClone','show','set','_assignedColors','createSocket','Inject','UNIVER_SHEET','undoState','unit','engine','string','Injector','type','arc','Warning','handleMoveRange','useCallback','filter','displayName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ONLINE','wsSessionTicketUrl','INotificationService','icon','MUTATION','contains','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','restore','all','indexOf','handleInsertRangeMoveRight','takeUntil','on-line-icon_clip0_910_349','_imageIoService','_toggleOffline','result','requireSession','VIEW_MAIN','toDisposable','m1Prime','onPointerLeave$','hasOwnProperty','collabStatus.syncing','ICommandService','PY_RUNTIME_SCRIPT_ERROR','_transformPreviousActiveRange','_docClipboardService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ACTIVE_UNIT_EVENT_CHANNEL','find','_localStorageService','_init','collabStatus.notCollab','use','unload','/run/','_id','_getAnchorBounding','onMouseMove','MOBILE_HAS_BEEN_BOUND','touchDependencies','registerComponent','_docSyncEditingCollabCursorService','lineTo','YUUMI_ASYNCIO_CANCELLED','_docTransformIMECacheService','_removeClearOtherTimer','getRelativeToViewportCoord','replaceState','http://www.w3.org/2000/svg','MemberService','loadUnit','init','body','addObjects','setInterval','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','closePath','RemoveColCommandId','updateOfflineData','WebBrowserSingleActiveUnitService','getItem','onRendered','drawWith','ISnapshotServerService','_config','ticket','4460mLpJbC','_memberService','invokeId','NodePositionConvertToCursor','IUniverInstanceService','_instanceService','3957744WPKAvb','createElement','_refreshCollabCursors','_drawTextRange','ranges','MoveRangeCommandId','focused$','_injector','getDocRanges','post','getTypeOfUnitAdded$','removeParam','Error','DocIMEInputManagerService','fillText','yellow.400','executeCommand','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','svg','_getSaveTimeout','UNAUTHENTICATED','getSheetId','_scheduleSaving','transformIMECache','exhaustSavingTask','_initCommandExecutedListener','actions','toStringTag','children','getCoordByCell','unitId','unitID','colorChannel1','OnLineIcon','Tools'];_0x14db=function(){return _0x1a5875;};return _0x14db();}ge[_0x2a17cf(0x238)]=_0x2a17cf(0x383);var Ze={'tag':_0x2a17cf(0x295),'attrs':{'xmlns':_0x2a17cf(0x26b),'fill':_0x2a17cf(0x35f),'viewBox':_0x2a17cf(0x2d8),'width':'1em','height':_0x2a17cf(0x1b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a17cf(0x1d3)},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'stroke':'currentColor','d':_0x2a17cf(0x30c),'strokeLinecap':_0x2a17cf(0x3b6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2a17cf(0x314),'attrs':{'id':_0x2a17cf(0x3c0)},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'fill':_0x2a17cf(0x2ce),'d':_0x2a17cf(0x1a1)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},we=M[_0x2a17cf(0x2b0)](function(_0x2c392f,_0x2df672){const _0x531acd=_0x2a17cf;return M[_0x531acd(0x284)](ge,Object[_0x531acd(0x3e5)]({},_0x2c392f,{'id':_0x531acd(0x3f5),'ref':_0x2df672,'icon':Ze}));});we[_0x2a17cf(0x238)]='OffLineIcon';var Qe={'tag':_0x2a17cf(0x295),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a17cf(0x35f),'viewBox':_0x2a17cf(0x36b),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'stroke':_0x2a17cf(0x201),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x2a17cf(0x3b6),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2a17cf(0x314),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x2a17cf(0x2b6),'attrs':{'fill':_0x2a17cf(0x2ce),'d':'M0\x200H16V16H0z','transform':_0x2a17cf(0x1bd)}}]}]}],'defIds':[_0x2a17cf(0x246)]},Ae=M[_0x2a17cf(0x2b0)](function(_0x4d7708,_0x38cafe){const _0xdfa54e=_0x2a17cf;return M['createElement'](ge,Object[_0xdfa54e(0x3e5)]({},_0x4d7708,{'id':'on-line-icon','ref':_0x38cafe,'icon':Qe}));});Ae['displayName']=_0x2a17cf(0x2a4);function et(_0x1544b7){const _0x2f77da=_0x2a17cf;switch(_0x1544b7){case u[_0x2f77da(0x3ee)]['OFFLINE']:return'collabStatus.offline';case u[_0x2f77da(0x3ee)][_0x2f77da(0x36c)]:return _0x2f77da(0x335);case u[_0x2f77da(0x3ee)][_0x2f77da(0x1c0)]:return'collabStatus.fetchMiss';case u[_0x2f77da(0x3ee)][_0x2f77da(0x331)]:return _0x2f77da(0x25a);case u[_0x2f77da(0x3ee)][_0x2f77da(0x2c4)]:case u[_0x2f77da(0x3ee)][_0x2f77da(0x1af)]:return _0x2f77da(0x250);case u[_0x2f77da(0x3ee)][_0x2f77da(0x391)]:case u['CollaborationStatus'][_0x2f77da(0x382)]:return _0x2f77da(0x2d7);}}function tt(_0x1e9343){const _0x118127=_0x2a17cf,{status$:_0x355187}=_0x1e9343,_0x56b376=O['useObservable'](_0x355187,u[_0x118127(0x3ee)][_0x118127(0x331)]),_0x32e94e=O[_0x118127(0x3a1)](a[_0x118127(0x202)]),_0x39888e=O[_0x118127(0x3a1)](u['CollaborationSessionService']),_0x4147d5=_0x56b376!==u[_0x118127(0x3ee)][_0x118127(0x2a6)],_0xd0c130=_0x32e94e['t'](et(_0x56b376)),_0x5cd867=_0x4147d5?P[_0x118127(0x1e2)](Ae,{}):P['jsx'](we,{}),_0x281c4f=M[_0x118127(0x236)](()=>{const _0x24dd3b=_0x118127;_0x4147d5||_0x39888e[_0x24dd3b(0x338)]();},[_0x4147d5,_0x39888e]);function _0x1170e3(){const _0x5c75c1=_0x118127;return P['jsxs'](_0x5c75c1(0x31c),{'className':'univer-flex\x20univer-items-center','onClick':_0x281c4f,'children':[P[_0x5c75c1(0x1e2)](_0x5c75c1(0x31c),{'className':D[_0x5c75c1(0x1c5)](_0x5c75c1(0x39a),{'univer-text-green-500':_0x4147d5,'univer-text-red-500':!_0x4147d5}),'children':_0x5cd867}),P[_0x5c75c1(0x1e2)](_0x5c75c1(0x31c),{'className':_0x5c75c1(0x240),'children':_0xd0c130})]});}return _0x4147d5?_0x1170e3():P[_0x118127(0x1e2)](D[_0x118127(0x198)],{'title':_0x32e94e['t'](_0x118127(0x3aa)),'children':_0x1170e3()});}var st=Object[_0x2a17cf(0x330)],it=(_0x1a60f3,_0x289195,_0x371353,_0x28536d)=>{const _0x511a9c=_0x2a17cf;for(var _0x2b30bd=_0x28536d>0x1?void 0x0:_0x28536d?st(_0x289195,_0x371353):_0x289195,_0x102f60=_0x1a60f3[_0x511a9c(0x1fd)]-0x1,_0x4843f1;_0x102f60>=0x0;_0x102f60--)(_0x4843f1=_0x1a60f3[_0x102f60])&&(_0x2b30bd=_0x4843f1(_0x2b30bd)||_0x2b30bd);return _0x2b30bd;},V=(_0x540a86,_0x147e34)=>(_0x636cdc,_0x136bdd)=>_0x147e34(_0x636cdc,_0x136bdd,_0x540a86);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x453ee2,_0x2add46,_0x18fc18,_0x447a6f){const _0x1c3bbe=_0x2a17cf;super(),h(this,_0x1c3bbe(0x179),new d[(_0x1c3bbe(0x2db))](u[_0x1c3bbe(0x3ee)]['NOT_COLLAB'])),(this[_0x1c3bbe(0x215)]=_0x453ee2,this[_0x1c3bbe(0x28a)]=_0x2add46,this[_0x1c3bbe(0x192)]=_0x18fc18,this['_uiPartsService']=_0x447a6f,this['_initStatusComponent'](),this[_0x1c3bbe(0x1a0)]());}['_initStatusListener'](){const _0x55ff3e=_0x2a17cf;this['disposeWithMe'](this['_univerInstanceService'][_0x55ff3e(0x289)][_0x55ff3e(0x3a6)](d['switchMap'](()=>{const _0xd51bce=_0x55ff3e,_0x2bee73=this['_univerInstanceService']['getFocusedUnit']();return _0x2bee73?this['_collaborationController'][_0xd51bce(0x2ee)](_0x2bee73[_0xd51bce(0x2e2)]()):d['of'](null);}),d[_0x55ff3e(0x3b4)](_0x56c594=>_0x56c594?_0x56c594[_0x55ff3e(0x2f6)]:d['of'](u[_0x55ff3e(0x3ee)][_0x55ff3e(0x331)])))[_0x55ff3e(0x3f7)](_0x1455be=>{const _0x1ec065=_0x55ff3e;this[_0x1ec065(0x179)][_0x1ec065(0x2bb)](_0x1455be);}));}[_0x2a17cf(0x2ae)](){const _0x328d65=_0x2a17cf;this[_0x328d65(0x1f5)](this[_0x328d65(0x1f7)][_0x328d65(0x263)](O[_0x328d65(0x1e1)][_0x328d65(0x20a)],()=>O[_0x328d65(0x30d)](nt({'status$':this[_0x328d65(0x179)][_0x328d65(0x17e)]()}),this[_0x328d65(0x28a)])));}},exports[_0x2a17cf(0x177)]=it([V(0x0,a[_0x2a17cf(0x281)]),V(0x1,a['Inject'](a[_0x2a17cf(0x231)])),V(0x2,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x304)])),V(0x3,O[_0x2a17cf(0x1cb)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x344f8f){const {status$:_0x19a8a8}=_0x344f8f;return function(){const _0x60089d=_0x1209;return P[_0x60089d(0x1e2)](tt,{'status$':_0x19a8a8});};}const me=a['createIdentifier']('uni.network.url-service');var rt=Object[_0x2a17cf(0x330)],ot=(_0x542c86,_0x5a1466,_0x1100cf,_0x511a60)=>{const _0x395996=_0x2a17cf;for(var _0x1256ef=_0x511a60>0x1?void 0x0:_0x511a60?rt(_0x5a1466,_0x1100cf):_0x5a1466,_0x4a9163=_0x542c86[_0x395996(0x1fd)]-0x1,_0x4de3f0;_0x4a9163>=0x0;_0x4a9163--)(_0x4de3f0=_0x542c86[_0x4a9163])&&(_0x1256ef=_0x4de3f0(_0x1256ef)||_0x1256ef);return _0x1256ef;},k=(_0x280157,_0x34bb91)=>(_0x493150,_0x561db3)=>_0x34bb91(_0x493150,_0x561db3,_0x280157);exports[_0x2a17cf(0x37c)]=class extends a['RxDisposable']{constructor(_0x121462,_0x49a8bb,_0x363331,_0x4c0b22,_0x3ed8fb){const _0xbbd43e=_0x2a17cf;super(),this[_0xbbd43e(0x1f2)]=_0x121462,this[_0xbbd43e(0x349)]=_0x49a8bb,this[_0xbbd43e(0x350)]=_0x363331,this[_0xbbd43e(0x3db)]=_0x4c0b22,_0x3ed8fb?_0x3ed8fb==null||_0x3ed8fb[_0xbbd43e(0x342)]()[_0xbbd43e(0x3f3)](()=>this['_init']()):(this['_logService']['debug'](_0xbbd43e(0x196),_0xbbd43e(0x34d)),this['_init']());}async[_0x2a17cf(0x259)](){const _0x9f1331=_0x2a17cf,_0x274c87=this['_urlService'][_0x9f1331(0x1d5)](_0x9f1331(0x22e)),_0x1eda22=this[_0x9f1331(0x1f2)]['getParam'](_0x9f1331(0x232)),_0x50ce92=this['_urlService']['getParam']('subunit');if(!_0x274c87||!_0x1eda22){this[_0x9f1331(0x349)]['debug']('[CollaborationDataLoaderController]',_0x9f1331(0x2c6));return;}const _0x4d5ae7=await this[_0x9f1331(0x3db)][_0x9f1331(0x26d)](_0x274c87,Number(_0x1eda22),_0x50ce92);_0x4d5ae7&&_0x4d5ae7 instanceof a[_0x9f1331(0x21a)]&&this[_0x9f1331(0x1c6)](_0x4d5ae7);}async[_0x2a17cf(0x1c6)](_0x227c26){const _0x126d43=_0x2a17cf;await this[_0x126d43(0x2ea)](_0x227c26),_0x227c26['activeSheet$'][_0x126d43(0x3a6)](d[_0x126d43(0x245)](this['dispose$']))[_0x126d43(0x3f7)](_0x530264=>{const _0x37c05b=_0x126d43;_0x530264&&this[_0x37c05b(0x309)](_0x530264);}),this[_0x126d43(0x1f2)]['urlChange$'][_0x126d43(0x3a6)](d['takeUntil'](this[_0x126d43(0x178)]))[_0x126d43(0x3f7)](()=>this[_0x126d43(0x2ea)](_0x227c26));}[_0x2a17cf(0x309)](_0x1ba9f6,_0x4da002=!0x1){const _0x3b0904=_0x2a17cf,_0x220c5b=this[_0x3b0904(0x1f2)][_0x3b0904(0x1d5)]('subunit');_0x1ba9f6[_0x3b0904(0x298)]()!==_0x220c5b&&this[_0x3b0904(0x1f2)]['setParam'](_0x3b0904(0x39e),_0x1ba9f6[_0x3b0904(0x298)](),_0x4da002);}async[_0x2a17cf(0x2ea)](_0x28f76c){const _0x4fdc93=_0x2a17cf;var _0x52eed0;const _0x1ce017=this['_urlService']['getParam'](_0x4fdc93(0x39e));if(!_0x1ce017||!_0x28f76c['getSheetBySheetId'](_0x1ce017)){const _0x4de874=_0x28f76c['getUnhiddenWorksheets']()[0x0],_0x27a5f3=_0x28f76c[_0x4fdc93(0x1a2)](_0x4de874);if(!_0x27a5f3)return;this[_0x4fdc93(0x309)](_0x27a5f3,!0x0),await this[_0x4fdc93(0x350)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x28f76c[_0x4fdc93(0x2e2)](),'subUnitId':_0x4de874});return;}((_0x52eed0=_0x28f76c[_0x4fdc93(0x3fa)]())==null?void 0x0:_0x52eed0[_0x4fdc93(0x298)]())!==_0x1ce017&&await this[_0x4fdc93(0x350)][_0x4fdc93(0x293)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x28f76c[_0x4fdc93(0x2e2)](),'subUnitId':_0x1ce017});}},exports[_0x2a17cf(0x37c)]=ot([k(0x0,me),k(0x1,a[_0x2a17cf(0x20d)]),k(0x2,a[_0x2a17cf(0x251)]),k(0x3,a[_0x2a17cf(0x22b)](u['DataLoaderService'])),k(0x4,a['Optional'](Xe[_0x2a17cf(0x341)]))],exports[_0x2a17cf(0x37c)]);var at=Object[_0x2a17cf(0x330)],ct=(_0x5c180a,_0x1f4b99,_0x45157e,_0x12c125)=>{const _0xd08f1e=_0x2a17cf;for(var _0x1271bb=_0x12c125>0x1?void 0x0:_0x12c125?at(_0x1f4b99,_0x45157e):_0x1f4b99,_0x5043ef=_0x5c180a[_0xd08f1e(0x1fd)]-0x1,_0x17f5da;_0x5043ef>=0x0;_0x5043ef--)(_0x17f5da=_0x5c180a[_0x5043ef])&&(_0x1271bb=_0x17f5da(_0x1271bb)||_0x1271bb);return _0x1271bb;},be=(_0x2383f9,_0x7f6658)=>(_0x26d07e,_0x3f399a)=>_0x7f6658(_0x26d07e,_0x3f399a,_0x2383f9);let ue=class extends a[_0x2a17cf(0x359)]{constructor(_0x82ef3d,_0x2c8e79){const _0x4ce67f=_0x2a17cf;super(),this[_0x4ce67f(0x254)]=_0x82ef3d,this['_imageIoService']=_0x2c8e79,this[_0x4ce67f(0x259)]();}[_0x2a17cf(0x259)](){const _0x1fcba7=_0x2a17cf,_0x58e11a=this;this['disposeWithMe'](this[_0x1fcba7(0x254)][_0x1fcba7(0x3a8)]({'onBeforePasteImage':async _0x40f24f=>{const _0x1dc509=_0x1fcba7,_0x2e0ea1=await _0x58e11a[_0x1dc509(0x247)]['saveImage'](_0x40f24f);return _0x2e0ea1?{'source':_0x2e0ea1[_0x1dc509(0x319)],'imageSourceType':_0x2e0ea1[_0x1dc509(0x345)]}:null;}}));}};ue=ct([be(0x0,E[_0x2a17cf(0x1c8)]),be(0x1,Ge[_0x2a17cf(0x3bc)])],ue);const Oe=[_0x2a17cf(0x2b1),'jiqing.500',_0x2a17cf(0x36e),_0x2a17cf(0x3c1),_0x2a17cf(0x18c),_0x2a17cf(0x292)];class Ce extends a[_0x2a17cf(0x2b2)]{constructor(){const _0x5b82fe=_0x2a17cf;super(...arguments),h(this,_0x5b82fe(0x229),new Map()),h(this,_0x5b82fe(0x216),0x0);}['assignAColorForMemberID'](_0x3e2d2b){const _0xc19046=_0x2a17cf;if(this[_0xc19046(0x229)][_0xc19046(0x3bd)](_0x3e2d2b))return this['_assignedColors'][_0xc19046(0x302)](_0x3e2d2b);const _0x13b788=Oe[this[_0xc19046(0x216)]];return this['_colorIndex']=(this[_0xc19046(0x216)]+0x1)%Oe[_0xc19046(0x1fd)],this[_0xc19046(0x229)]['set'](_0x3e2d2b,_0x13b788),_0x13b788;}}function ye(_0x21b423){const _0x34b009=_0x2a17cf;let _0x1a3ce9='';for(const _0x3be538 of _0x21b423){const {startOffset:_0x461b1f,endOffset:_0xf2c987,isActive:_0x5e6d33,rangeType:_0x38dc25,segmentId:_0x49151c,segmentPage:_0xdcd50c}=_0x3be538;_0x1a3ce9[_0x34b009(0x1fd)]&&(_0x1a3ce9+=','),_0x1a3ce9+=_0x461b1f+':'+_0xf2c987+':'+(_0x5e6d33?'1':'0')+':'+_0x38dc25+':'+_0x49151c+':'+_0xdcd50c;}return _0x1a3ce9;}function lt(_0x19feb3){const _0x17598f=_0x2a17cf,_0x5d2cce=_0x19feb3['split'](','),_0x218c5=[];for(const _0x5d6f81 of _0x5d2cce){const [_0xf97326,_0x10b24d,_0x325158,_0x40f8e2,_0x30a8bb,_0x412bc2]=_0x5d6f81['split'](':');_0x218c5['push']({'startOffset':Number(_0xf97326),'endOffset':Number(_0x10b24d),'collapsed':_0xf97326===_0x10b24d,'isActive':_0x325158==='1','rangeType':_0x40f8e2===a[_0x17598f(0x193)][_0x17598f(0x21d)]?a['DOC_RANGE_TYPE'][_0x17598f(0x21d)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x30a8bb=='string'?String(_0x30a8bb):'','segmentPage':Number(_0x412bc2!=null?_0x412bc2:-0x1)});}return _0x218c5[_0x17598f(0x2cc)](_0x1d448f=>_0x1d448f[_0x17598f(0x173)])||(_0x218c5[0x0]['isActive']=!0x0),_0x218c5;}class pe extends a[_0x2a17cf(0x359)]{constructor(){const _0x11bf5e=_0x2a17cf;super(...arguments),h(this,_0x11bf5e(0x2f4),new d[(_0x11bf5e(0x2db))](null)),h(this,_0x11bf5e(0x33c),this[_0x11bf5e(0x2f4)][_0x11bf5e(0x17e)]());}[_0x2a17cf(0x3d0)](_0x528a50){const _0x298516=_0x2a17cf,{unitID:_0x3069f6,memberID:_0x3d7e27,textRanges:_0x3e99c4}=_0x528a50,_0x483743=ye(_0x3e99c4);if(_0x483743==='')return;const _0x45128b={'unitID':_0x3069f6,'memberID':_0x3d7e27,'selection':_0x483743};this[_0x298516(0x2f4)]['next'](_0x45128b);}}var _t=Object[_0x2a17cf(0x330)],ht=(_0x57746,_0x4f6ad5,_0xaea275,_0x1e75d8)=>{const _0x388ffe=_0x2a17cf;for(var _0x4373db=_0x1e75d8>0x1?void 0x0:_0x1e75d8?_t(_0x4f6ad5,_0xaea275):_0x4f6ad5,_0x16612f=_0x57746[_0x388ffe(0x1fd)]-0x1,_0x5310a0;_0x16612f>=0x0;_0x16612f--)(_0x5310a0=_0x57746[_0x16612f])&&(_0x4373db=_0x5310a0(_0x4373db)||_0x4373db);return _0x4373db;},L=(_0x34e8d2,_0x2fe2c8)=>(_0x2a1697,_0x219812)=>_0x2fe2c8(_0x2a1697,_0x219812,_0x34e8d2);const ut=0x12c,dt=0x64;let de=class extends a[_0x2a17cf(0x359)]{constructor(_0x2e391b,_0x4a9da2,_0x21f023,_0x305519,_0x43aba5,_0x3e7dea,_0x5c0136,_0x4dabbc,_0x29c376){const _0x317548=_0x2a17cf;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x317548(0x392),new d['BehaviorSubject'](new Map())),h(this,_0x317548(0x3d5),this['_cursorInfo$']['asObservable']()),h(this,_0x317548(0x381),new d[(_0x317548(0x2db))]([])),h(this,_0x317548(0x1cc),this[_0x317548(0x381)][_0x317548(0x3a6)](d[_0x317548(0x2fd)](ut))),h(this,_0x317548(0x1d8),a[_0x317548(0x189)](_0x517c6c=>{const _0x34613d=_0x317548,_0xab57a={'eventID':m[_0x34613d(0x366)][_0x34613d(0x32d)],'data':{'unitID':this['unitID'],'memberID':this[_0x34613d(0x1f0)][_0x34613d(0x329)](),'selection':ye(_0x517c6c)}};this[_0x34613d(0x1f0)][_0x34613d(0x361)](_0xab57a,this[_0x34613d(0x2a2)]);},dt)),(this[_0x317548(0x2a2)]=_0x2e391b,this[_0x317548(0x1f0)]=_0x4a9da2,this[_0x317548(0x28a)]=_0x21f023,this['_colorAssignService']=_0x305519,this[_0x317548(0x27e)]=_0x43aba5,this[_0x317548(0x195)]=_0x3e7dea,this[_0x317548(0x20f)]=_0x5c0136,this['_univerInstanceService']=_0x4dabbc,this[_0x317548(0x350)]=_0x29c376);}get[_0x2a17cf(0x2f5)](){const _0x3dddb1=_0x2a17cf;return this[_0x3dddb1(0x392)]['getValue']();}get[_0x2a17cf(0x360)](){const _0x37ee12=_0x2a17cf;return this[_0x37ee12(0x381)]['getValue']();}[_0x2a17cf(0x17b)](){const _0x13d3f2=_0x2a17cf;super[_0x13d3f2(0x17b)](),this[_0x13d3f2(0x392)][_0x13d3f2(0x2bb)](new Map()),this[_0x13d3f2(0x392)][_0x13d3f2(0x322)](),this['_roomMembers$'][_0x13d3f2(0x2bb)]([]),this[_0x13d3f2(0x381)][_0x13d3f2(0x322)]();}['init'](){const _0x525e59=_0x2a17cf;this['_init']||(this['_init']=!0x0,this[_0x525e59(0x1f0)][_0x525e59(0x38d)][_0x525e59(0x3a6)](d[_0x525e59(0x245)](this[_0x525e59(0x178)]))[_0x525e59(0x3f7)](_0x112942=>{const _0x22ea15=_0x525e59;_0x112942===u['SessionStatus'][_0x22ea15(0x23a)]?this[_0x22ea15(0x337)]():this['_toggleOffline']();}),this[_0x525e59(0x1f0)][_0x525e59(0x1ab)][_0x525e59(0x3a6)](d['takeUntil'](this['dispose$']))[_0x525e59(0x3f7)](_0x4ddf95=>{const _0x26381f=_0x525e59,_0x21b9ca=_0x4ddf95[_0x26381f(0x2f2)];_0x21b9ca===m[_0x26381f(0x366)][_0x26381f(0x32d)]&&this[_0x26381f(0x211)](_0x4ddf95),_0x21b9ca===m[_0x26381f(0x366)][_0x26381f(0x1ba)]&&this[_0x26381f(0x2d4)](_0x4ddf95);}),this[_0x525e59(0x1f5)](this['_commandService']['onCommandExecuted'](_0x577b35=>{const _0x2b805d=_0x525e59,_0x1f00f9=_0x577b35[_0x2b805d(0x2c2)];_0x1f00f9!=null&&this[_0x2b805d(0x3b0)]&&_0x577b35['id']===Y[_0x2b805d(0x3b9)]['id']&&_0x1f00f9['unitId']===this[_0x2b805d(0x2a2)]&&_0x1f00f9['isEditing']===!0x1&&_0x1f00f9[_0x2b805d(0x287)][_0x2b805d(0x1fd)]>0x0&&this[_0x2b805d(0x1d8)](_0x1f00f9[_0x2b805d(0x287)]);})),this[_0x525e59(0x195)][_0x525e59(0x33c)][_0x525e59(0x3a6)](d['takeUntil'](this[_0x525e59(0x178)]))[_0x525e59(0x3f7)](_0x34da9e=>{const _0x40a221=_0x525e59;if((_0x34da9e==null?void 0x0:_0x34da9e[_0x40a221(0x2a2)])!==this[_0x40a221(0x2a2)])return;const _0x268a4e={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x34da9e};this[_0x40a221(0x211)](_0x268a4e);}),this[_0x525e59(0x1f5)](this[_0x525e59(0x350)]['onCommandExecuted'](_0x39bdb6=>{const _0xb3ad8d=_0x525e59;if(_0x39bdb6['params']==null)return;const _0x36a735=_0x39bdb6['params'];if(_0x39bdb6['id']!==Y[_0xb3ad8d(0x323)]['id']||_0x36a735[_0xb3ad8d(0x2a1)]!==this[_0xb3ad8d(0x2a2)])return;const _0x19ce19={'id':_0xb3ad8d(0x186),'params':_0x36a735},_0x4e3ac5=this[_0xb3ad8d(0x2f5)];for(const [_0xbd7f8c,_0x3f265f]of _0x4e3ac5){const _0x54c17d={'id':_0xb3ad8d(0x186),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3f265f[_0xb3ad8d(0x287)]}},_0x31427e=this[_0xb3ad8d(0x20f)]['transformMutation'](_0x19ce19,_0x54c17d,!0x1);if(m[_0xb3ad8d(0x2ca)](_0x31427e))throw _0x31427e['error'];_0x4e3ac5[_0xb3ad8d(0x228)](_0xbd7f8c,{..._0x3f265f,'ranges':_0x31427e['m2Prime'][_0xb3ad8d(0x2c2)][_0xb3ad8d(0x30b)]});}queueMicrotask(()=>{const _0x30ede6=_0xb3ad8d;this[_0x30ede6(0x392)]['next'](_0x4e3ac5);});})));}[_0x2a17cf(0x211)](_0x5f5014){const _0x20103d=_0x2a17cf;var _0x512da0,_0x573a9e;const {memberID:_0x4d16fc,selection:_0x531324}=_0x5f5014[_0x20103d(0x1d0)],_0x31f2c0=lt(_0x531324),_0x2b3b2d=(_0x573a9e=(_0x512da0=this[_0x20103d(0x27e)][_0x20103d(0x3e7)](this[_0x20103d(0x2a2)],_0x4d16fc))==null?void 0x0:_0x512da0[_0x20103d(0x1df)])!=null?_0x573a9e:_0x20103d(0x1b0),_0x453e7c={'color':this[_0x20103d(0x1ed)]['assignAColorForMemberID'](_0x4d16fc),'name':_0x2b3b2d,'ranges':_0x31f2c0},_0x252ef5=this[_0x20103d(0x2f5)];_0x252ef5[_0x20103d(0x228)](_0x4d16fc,_0x453e7c),this[_0x20103d(0x392)][_0x20103d(0x2bb)](_0x252ef5);}['_onCursorDelete'](_0x48f836){const _0x27763b=_0x2a17cf,{memberID:_0x4a6fda}=_0x48f836['data'],_0x4a0909=this['cursorInfo'];_0x4a0909['delete'](_0x4a6fda),this[_0x27763b(0x392)][_0x27763b(0x2bb)](_0x4a0909);}['_toggleOnline'](){const _0x411681=_0x2a17cf;var _0x10ba6e;if(this[_0x411681(0x3b0)]=!0x0,((_0x10ba6e=this[_0x411681(0x215)][_0x411681(0x3d6)]())==null?void 0x0:_0x10ba6e[_0x411681(0x2e2)]())!==this[_0x411681(0x2a2)])return;const _0x372896=this[_0x411681(0x28a)][_0x411681(0x302)](Y[_0x411681(0x365)])[_0x411681(0x28b)]();Array['isArray'](_0x372896)&&_0x372896[_0x411681(0x1fd)]>0x0&&this[_0x411681(0x1d8)](_0x372896);}[_0x2a17cf(0x248)](){const _0x1df678=_0x2a17cf;this[_0x1df678(0x3b0)]=!0x1;}};de=ht([L(0x2,a['Inject'](a[_0x2a17cf(0x231)])),L(0x3,a[_0x2a17cf(0x22b)](Ce)),L(0x4,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x26c)])),L(0x5,a[_0x2a17cf(0x22b)](pe)),L(0x6,m[_0x2a17cf(0x2de)]),L(0x7,a[_0x2a17cf(0x281)]),L(0x8,a[_0x2a17cf(0x251)])],de);var St=Object[_0x2a17cf(0x330)],ft=(_0x390501,_0x503694,_0x485486,_0x428a9a)=>{const _0x51f557=_0x2a17cf;for(var _0x1a0859=_0x428a9a>0x1?void 0x0:_0x428a9a?St(_0x503694,_0x485486):_0x503694,_0x51feb4=_0x390501[_0x51f557(0x1fd)]-0x1,_0x5cc5e3;_0x51feb4>=0x0;_0x51feb4--)(_0x5cc5e3=_0x390501[_0x51feb4])&&(_0x1a0859=_0x5cc5e3(_0x1a0859)||_0x1a0859);return _0x1a0859;},A=(_0x47907d,_0x37894d)=>(_0x47465a,_0x30981d)=>_0x37894d(_0x47465a,_0x30981d,_0x47907d);const It=0x12c,vt=0x64,gt=()=>{let _0x26d615=[],_0x694c89=!0x1;return _0x1716cc=>{_0x26d615['push'](_0x1716cc),_0x694c89||(_0x694c89=!0x0,setTimeout(()=>{const _0x126a6b=_0x1209;_0x26d615[_0x126a6b(0x1ce)](_0x599997=>_0x599997()),_0x26d615=[],_0x694c89=!0x1;}));};};let Se=class extends a[_0x2a17cf(0x359)]{constructor(_0x2d7456,_0x398886,_0x110928,_0x198252,_0x1e6800,_0x43e8d7,_0x6c4ed1,_0x5677c4){const _0x2687a5=_0x2a17cf;super(),h(this,_0x2687a5(0x3b0),!0x1),h(this,_0x2687a5(0x259),!0x1),h(this,_0x2687a5(0x392),new d[(_0x2687a5(0x2db))](new Map())),h(this,_0x2687a5(0x3d5),this[_0x2687a5(0x392)]['asObservable']()),h(this,_0x2687a5(0x381),new d[(_0x2687a5(0x2db))]([])),h(this,_0x2687a5(0x1cc),this[_0x2687a5(0x381)]['pipe'](d[_0x2687a5(0x2fd)](It))),h(this,_0x2687a5(0x1d8),a[_0x2687a5(0x189)]((_0x433090,_0x450919)=>{const _0x203a88=_0x2687a5,_0x5e73ca={'eventID':m[_0x203a88(0x366)][_0x203a88(0x32d)],'data':{'unitID':this[_0x203a88(0x2a2)],'memberID':this[_0x203a88(0x1f0)]['getMemberID'](),'selection':Ee[_0x203a88(0x316)](_0x433090,_0x450919['range'])}};this['_session'][_0x203a88(0x361)](_0x5e73ca,this['unitID']);},vt)),(this['unitID']=_0x2d7456,this['_session']=_0x398886,this['_injector']=_0x110928,this['_colorAssignService']=_0x198252,this[_0x2687a5(0x27e)]=_0x1e6800,this['_univerInstanceService']=_0x43e8d7,this[_0x2687a5(0x350)]=_0x6c4ed1,this['_refRangeService']=_0x5677c4);}get[_0x2a17cf(0x2f5)](){const _0x1bba97=_0x2a17cf;return this['_cursorInfo$'][_0x1bba97(0x1d9)]();}get[_0x2a17cf(0x360)](){const _0x17cef5=_0x2a17cf;return this['_roomMembers$'][_0x17cef5(0x1d9)]();}[_0x2a17cf(0x17b)](){const _0x2ab00f=_0x2a17cf;super['dispose'](),this[_0x2ab00f(0x392)][_0x2ab00f(0x2bb)](new Map()),this[_0x2ab00f(0x392)]['complete'](),this[_0x2ab00f(0x381)]['next']([]),this[_0x2ab00f(0x381)][_0x2ab00f(0x322)]();}[_0x2a17cf(0x26e)](){const _0xc1a0dc=_0x2a17cf;this[_0xc1a0dc(0x259)]||(this[_0xc1a0dc(0x259)]=!0x0,this[_0xc1a0dc(0x1f0)][_0xc1a0dc(0x38d)]['pipe'](d[_0xc1a0dc(0x245)](this['dispose$']))[_0xc1a0dc(0x3f7)](_0x152af4=>{const _0x462a5a=_0xc1a0dc;_0x152af4===u[_0x462a5a(0x207)][_0x462a5a(0x23a)]?this[_0x462a5a(0x337)]():this[_0x462a5a(0x248)]();}),this[_0xc1a0dc(0x1f0)][_0xc1a0dc(0x1ab)][_0xc1a0dc(0x3a6)](d[_0xc1a0dc(0x245)](this[_0xc1a0dc(0x178)]))[_0xc1a0dc(0x3f7)](_0x3834ca=>{const _0x2e426f=_0xc1a0dc,_0x102b75=_0x3834ca[_0x2e426f(0x2f2)];_0x102b75===m['CollaborationEvent'][_0x2e426f(0x32d)]&&this['_onCursorUpdate'](_0x3834ca),_0x102b75===m['CollaborationEvent'][_0x2e426f(0x1ba)]&&this[_0x2e426f(0x2d4)](_0x3834ca);}),this[_0xc1a0dc(0x358)](),this[_0xc1a0dc(0x1f5)](this['_commandService'][_0xc1a0dc(0x34e)](_0x4579cd=>{const _0x4d8cb9=_0xc1a0dc;if(this[_0x4d8cb9(0x3b0)]&&_0x4579cd['id']===g['SetSelectionsOperation']['id']&&_0x4579cd[_0x4d8cb9(0x2c2)][_0x4d8cb9(0x2a1)]===this[_0x4d8cb9(0x2a2)]){const _0x170410=_0x4579cd[_0x4d8cb9(0x2c2)];this[_0x4d8cb9(0x1d8)](_0x170410[_0x4d8cb9(0x3bb)],_0x170410[_0x4d8cb9(0x370)][0x0]);}})));}[_0x2a17cf(0x211)](_0x1be056){const _0x1e780b=_0x2a17cf;var _0x5e6bc5,_0x2831bd;const {memberID:_0xdea852,selection:_0x3bb25e}=_0x1be056[_0x1e780b(0x1d0)],{sheetName:_0x1f32b5,range:_0x193806}=Ee[_0x1e780b(0x35c)](_0x3bb25e),_0x19bddc={'name':(_0x2831bd=(_0x5e6bc5=this[_0x1e780b(0x27e)][_0x1e780b(0x3e7)](this[_0x1e780b(0x2a2)],_0xdea852))==null?void 0x0:_0x5e6bc5['name'])!=null?_0x2831bd:'Unknown\x20user','range':this['_getMergeRange'](_0x1f32b5,_0x193806),'sheetID':_0x1f32b5,'color':this[_0x1e780b(0x1ed)]['assignAColorForMemberID'](_0xdea852),'selection':_0x3bb25e},_0x53294b=this[_0x1e780b(0x2f5)];_0x53294b[_0x1e780b(0x228)](_0xdea852,_0x19bddc),this[_0x1e780b(0x392)][_0x1e780b(0x2bb)](_0x53294b);}['_onCursorDelete'](_0x3a637b){const _0x2e8afb=_0x2a17cf,{memberID:_0x5a578a}=_0x3a637b[_0x2e8afb(0x1d0)],_0x1d5a95=this[_0x2e8afb(0x2f5)];_0x1d5a95[_0x2e8afb(0x184)](_0x5a578a),this[_0x2e8afb(0x392)]['next'](_0x1d5a95);}['_getMergeRange'](_0x4e5854,_0x5ce635){const _0x12deba=_0x2a17cf;var _0x3fcdbc,_0x475c03;const _0x2a83bd=(_0x475c03=(_0x3fcdbc=this[_0x12deba(0x215)][_0x12deba(0x339)](this[_0x12deba(0x2a2)]))==null?void 0x0:_0x3fcdbc[_0x12deba(0x1a2)](_0x4e5854))==null?void 0x0:_0x475c03[_0x12deba(0x1e0)]();return(_0x2a83bd==null?void 0x0:_0x2a83bd[_0x12deba(0x257)](_0x2b3583=>a['Rectangle'][_0x12deba(0x23f)](_0x2b3583,_0x5ce635)))||_0x5ce635;}[_0x2a17cf(0x358)](){const _0x24e610=_0x2a17cf,_0x561fa1=new a[(_0x24e610(0x3a2))](),_0x49aef2=gt(),_0x5845a5=()=>{const _0x4c69aa=_0x24e610;_0x561fa1[_0x4c69aa(0x17b)]();const _0x2e7b8c=(_0x58d3de,_0x5b3992,_0x1cd0e3,_0x532915)=>{const _0xbd3b11=_0x4c69aa;let _0x49caf1=[];switch(_0x58d3de['id']){case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x1cf)]:{_0x49caf1=g[_0xbd3b11(0x2fc)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x33b)]:{_0x49caf1=g['handleDeleteRangeMoveUp'](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)]['InsertColCommandId']:{_0x49caf1=g[_0xbd3b11(0x3b1)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x188)]:{_0x49caf1=g[_0xbd3b11(0x1d1)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x18a)]:{_0x49caf1=g[_0xbd3b11(0x244)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x373)]:{_0x49caf1=g[_0xbd3b11(0x31d)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x288)]:{_0x49caf1=g[_0xbd3b11(0x235)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x274)]:{_0x49caf1=g[_0xbd3b11(0x344)](_0x58d3de,_0x532915);break;}case g[_0xbd3b11(0x3f6)][_0xbd3b11(0x1db)]:{_0x49caf1=g[_0xbd3b11(0x1c3)](_0x58d3de,_0x532915);break;}}const _0x3c6733=g[_0xbd3b11(0x3f0)](_0x49caf1,_0x532915),_0x4ba9ce=this[_0xbd3b11(0x2f5)]['get'](_0x5b3992);if(_0x4ba9ce&&_0x3c6733){const _0xb57a4e={..._0x4ba9ce,'range':_0x3c6733};this[_0xbd3b11(0x2f5)][_0xbd3b11(0x228)](_0x5b3992,_0xb57a4e),_0x49aef2(()=>{const _0x541b15=_0xbd3b11,_0x308ea1=this[_0x541b15(0x321)]['registerRefRange'](_0x3c6733,_0x2b9d84=>(_0x308ea1[_0x541b15(0x17b)](),_0x2e7b8c(_0x2b9d84,_0x5b3992,_0x1cd0e3,_0x3c6733)));_0x561fa1[_0x541b15(0x378)](_0x308ea1);});}return{'redos':[],'undos':[]};};this[_0x4c69aa(0x2f5)][_0x4c69aa(0x1ce)]((_0x5e0eb5,_0x15a675)=>{const _0xc12516=_0x4c69aa,{range:_0x3015be,sheetID:_0xb0e827}=_0x5e0eb5,_0x3451c8=this['_refRangeService'][_0xc12516(0x33e)](_0x3015be,_0x592119=>(_0x3451c8[_0xc12516(0x17b)](),_0x2e7b8c(_0x592119,_0x15a675,_0xb0e827,_0x3015be)));_0x561fa1['add'](_0x3451c8);});};this[_0x24e610(0x1f5)](a['toDisposable'](this['_cursorInfo$'][_0x24e610(0x3f7)](()=>{_0x5845a5();})));}[_0x2a17cf(0x337)](){const _0x2a150d=_0x2a17cf;var _0x476604,_0x3b911d;if(this['_online']=!0x0,((_0x476604=this[_0x2a150d(0x215)][_0x2a150d(0x3d6)]())==null?void 0x0:_0x476604[_0x2a150d(0x2e2)]())!==this[_0x2a150d(0x2a2)])return;const _0x423681=(_0x3b911d=this['_injector'][_0x2a150d(0x302)](g[_0x2a150d(0x2e9)])['getCurrentSelections']())==null?void 0x0:_0x3b911d[0x0],_0x17bc45=this[_0x2a150d(0x215)][_0x2a150d(0x300)](a[_0x2a150d(0x2ab)][_0x2a150d(0x22c)])['getActiveSheet']();_0x423681&&_0x17bc45&&this[_0x2a150d(0x1d8)](_0x17bc45[_0x2a150d(0x298)](),_0x423681);}[_0x2a17cf(0x248)](){const _0x146e5c=_0x2a17cf;this[_0x146e5c(0x3b0)]=!0x1;}};Se=ft([A(0x2,a[_0x2a17cf(0x22b)](a['Injector'])),A(0x3,a[_0x2a17cf(0x22b)](Ce)),A(0x4,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x26c)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g['RefRangeService']))],Se);var mt=Object[_0x2a17cf(0x330)],Ct=(_0x11f6c7,_0x4fa241,_0x5ebaad,_0x26610d)=>{const _0x510764=_0x2a17cf;for(var _0x3bec61=_0x26610d>0x1?void 0x0:_0x26610d?mt(_0x4fa241,_0x5ebaad):_0x4fa241,_0x457fea=_0x11f6c7[_0x510764(0x1fd)]-0x1,_0x24c2bb;_0x457fea>=0x0;_0x457fea--)(_0x24c2bb=_0x11f6c7[_0x457fea])&&(_0x3bec61=_0x24c2bb(_0x3bec61)||_0x3bec61);return _0x3bec61;},ie=(_0x164d26,_0x4f36b8)=>(_0x6f9dc,_0x3c31da)=>_0x4f36b8(_0x6f9dc,_0x3c31da,_0x164d26);let x=class extends a[_0x2a17cf(0x359)]{constructor(_0xaf2e36,_0x38b474,_0x573f9c){const _0x537f2d=_0x2a17cf;super(),h(this,_0x537f2d(0x220),new Map()),h(this,_0x537f2d(0x3eb),new d['Subject']()),(this[_0x537f2d(0x215)]=_0xaf2e36,this[_0x537f2d(0x28a)]=_0x38b474,this[_0x537f2d(0x2f1)]=_0x573f9c,this['_init']());}[_0x2a17cf(0x17b)](){const _0x3d324b=_0x2a17cf;super[_0x3d324b(0x17b)](),this[_0x3d324b(0x3eb)][_0x3d324b(0x322)](),this[_0x3d324b(0x220)][_0x3d324b(0x1ce)](_0x373488=>_0x373488['dispose']());}[_0x2a17cf(0x312)](_0x2e5de5){const _0xc22fa4=_0x2a17cf;return this[_0xc22fa4(0x220)]['has'](_0x2e5de5)?this[_0xc22fa4(0x220)]['get'](_0x2e5de5)[_0xc22fa4(0x3d5)]:this[_0xc22fa4(0x3eb)][_0xc22fa4(0x3a6)](d[_0xc22fa4(0x237)](_0xc6a178=>_0xc6a178['unitID']===_0x2e5de5),d[_0xc22fa4(0x3b4)](_0x28ccb8=>_0x28ccb8[_0xc22fa4(0x3d5)]));}[_0x2a17cf(0x259)](){const _0x2bcaa4=_0x2a17cf;this[_0x2bcaa4(0x215)][_0x2bcaa4(0x28d)](a[_0x2bcaa4(0x2ab)]['UNIVER_SHEET'])[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x245)](this[_0x2bcaa4(0x178)]))['subscribe'](async _0x3a0ac0=>{const _0x3f0949=_0x2bcaa4,_0x583e60=_0x3a0ac0[_0x3f0949(0x2e2)](),_0x4e4805=await this[_0x3f0949(0x2a7)](_0x583e60);this[_0x3f0949(0x3eb)][_0x3f0949(0x2bb)](_0x4e4805),this[_0x3f0949(0x220)][_0x3f0949(0x228)](_0x583e60,_0x4e4805);}),this[_0x2bcaa4(0x215)][_0x2bcaa4(0x28d)](a[_0x2bcaa4(0x2ab)]['UNIVER_DOC'])[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x245)](this[_0x2bcaa4(0x178)]))[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x237)](_0x306d7f=>!_0x306d7f[_0x2bcaa4(0x2e2)]()['startsWith']('__')))['subscribe'](async _0x5eb47f=>{const _0x3d1329=_0x2bcaa4,_0x382300=_0x5eb47f[_0x3d1329(0x2e2)](),_0x32aad1=await this['_startDocCollabCursor'](_0x382300);this[_0x3d1329(0x3eb)][_0x3d1329(0x2bb)](_0x32aad1),this[_0x3d1329(0x220)][_0x3d1329(0x228)](_0x382300,_0x32aad1);}),d['merge'](this['_univerInstanceService'][_0x2bcaa4(0x352)](a[_0x2bcaa4(0x2ab)][_0x2bcaa4(0x347)]),this[_0x2bcaa4(0x215)][_0x2bcaa4(0x352)](a[_0x2bcaa4(0x2ab)]['UNIVER_SHEET']))[_0x2bcaa4(0x3a6)](d[_0x2bcaa4(0x245)](this[_0x2bcaa4(0x178)]))[_0x2bcaa4(0x3f7)](_0x22be8c=>{const _0x3ae681=_0x2bcaa4,_0x43e8c5=_0x22be8c[_0x3ae681(0x2e2)](),_0x4b7f05=this[_0x3ae681(0x220)]['get'](_0x43e8c5);_0x4b7f05&&(_0x4b7f05['dispose'](),this[_0x3ae681(0x220)]['delete'](_0x43e8c5));});}async[_0x2a17cf(0x2a7)](_0x46ab8c){const _0x222993=_0x2a17cf,_0x16bf49=await this[_0x222993(0x2f1)][_0x222993(0x24a)](_0x46ab8c),_0x54962b=this['_injector'][_0x222993(0x3a4)](Se,_0x46ab8c,_0x16bf49);return _0x54962b[_0x222993(0x26e)](),_0x54962b;}async[_0x2a17cf(0x34c)](_0x95f837){const _0x593916=_0x2a17cf,_0x199aed=await this['_collabSessionService'][_0x593916(0x24a)](_0x95f837),_0x75b283=this[_0x593916(0x28a)]['createInstance'](de,_0x95f837,_0x199aed);return _0x75b283[_0x593916(0x26e)](),_0x75b283;}};x=Ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x2a17cf(0x22b)](a['Injector'])),ie(0x2,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x199)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x1b7119,_0x474fdb){const _0x2a1617=_0x2a17cf;let {radius:_0x1d0e64,width:_0x43384e,height:_0x1d93f4}=_0x474fdb;_0x1d0e64=_0x1d0e64!=null?_0x1d0e64:0x0,_0x43384e=_0x43384e!=null?_0x43384e:0x1e,_0x1d93f4=_0x1d93f4!=null?_0x1d93f4:0x1e;let _0x26ff6c=0x0,_0x468c3f=0x0,_0x35c415=0x0;_0x26ff6c=_0x468c3f=_0x35c415=Math['min'](_0x1d0e64,_0x43384e/0x2,_0x1d93f4/0x2),_0x1b7119[_0x2a1617(0x355)](),_0x1b7119[_0x2a1617(0x3c5)](_0x26ff6c,0x0),_0x1b7119['lineTo'](_0x43384e-_0x468c3f,0x0),_0x1b7119[_0x2a1617(0x233)](_0x43384e-_0x468c3f,_0x468c3f,_0x468c3f,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b7119[_0x2a1617(0x265)](_0x43384e,_0x1d93f4-_0x35c415),_0x1b7119['arc'](_0x43384e-_0x35c415,_0x1d93f4-_0x35c415,_0x35c415,0x0,Math['PI']/0x2,!0x1),_0x1b7119[_0x2a1617(0x265)](0x0,_0x1d93f4),_0x1b7119[_0x2a1617(0x265)](0x0,_0x26ff6c),_0x1b7119[_0x2a1617(0x233)](_0x26ff6c,_0x26ff6c,_0x26ff6c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b7119[_0x2a1617(0x273)](),_0x474fdb['fill']&&(_0x1b7119['save'](),_0x1b7119[_0x2a1617(0x33f)]=_0x474fdb[_0x2a1617(0x36d)],_0x474fdb['fillRule']===_0x2a1617(0x3d4)?_0x1b7119['fill']('evenodd'):_0x1b7119[_0x2a1617(0x36d)](),_0x1b7119[_0x2a1617(0x241)]());}class ee extends p[_0x2a17cf(0x1e9)]{constructor(_0x3d4a20,_0x8ab86e){const _0xe3e50a=_0x2a17cf;super(_0x3d4a20,_0x8ab86e),h(this,_0xe3e50a(0x20b)),h(this,_0xe3e50a(0x348)),(this['color']=_0x8ab86e==null?void 0x0:_0x8ab86e[_0xe3e50a(0x20b)],this[_0xe3e50a(0x348)]=_0x8ab86e==null?void 0x0:_0x8ab86e[_0xe3e50a(0x348)]);}static[_0x2a17cf(0x279)](_0xff5b7a,_0x3fc8ed){const _0x547878=_0x2a17cf,{text:_0xd652b9,color:_0x1cc952}=_0x3fc8ed;_0xff5b7a[_0x547878(0x2ec)](),_0xff5b7a['font']=_0x547878(0x255);const _0x1a3de1=_0xff5b7a[_0x547878(0x325)](_0xd652b9)[_0x547878(0x175)],_0x4bda6d=Math[_0x547878(0x3d7)](_0x1a3de1+0x2*ne,Te);Et(_0xff5b7a,{'height':W,'radius':0x4,'width':_0x4bda6d,'fill':_0x1cc952}),_0xff5b7a[_0x547878(0x33f)]=_0x547878(0x3ed);const _0x88d912=ne,_0x382ea1=W-pt,_0x3580e8=Te-0x2*ne;if(_0x1a3de1>_0x3580e8){let _0x16d9e9='',_0x19eedd=0x0;for(const _0x255c29 of _0xd652b9){const _0x5bc2ce=_0xff5b7a[_0x547878(0x325)](_0x255c29)['width'];if(_0x19eedd+_0x5bc2ce<=_0x3580e8-_0xff5b7a[_0x547878(0x325)](_0x547878(0x1bf))['width'])_0x16d9e9+=_0x255c29,_0x19eedd+=_0x5bc2ce;else{_0x16d9e9+='...';break;}}_0xff5b7a[_0x547878(0x291)](_0x16d9e9,_0x88d912,_0x382ea1);}else _0xff5b7a[_0x547878(0x291)](_0xd652b9,_0x88d912,_0x382ea1);_0xff5b7a['restore']();}[_0x2a17cf(0x368)](_0x2997cf){const _0x2ffb78=_0x2a17cf;ee[_0x2ffb78(0x279)](_0x2997cf,this);}}const re=_0x2a17cf(0x2ba),bt=_0x2a17cf(0x364),Ot=_0x2a17cf(0x31b),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x2a17cf(0x18d);class Re{constructor(_0x181591,_0x167c45,_0x21601f,_0x50b446){const _0x1ee91=_0x2a17cf;h(this,'_shapes',[]),h(this,_0x1ee91(0x317),null),h(this,_0x1ee91(0x2f0),null),h(this,_0x1ee91(0x1f3),null),h(this,_0x1ee91(0x2a9),null),h(this,_0x1ee91(0x1a6),null),(this[_0x1ee91(0x2bd)]=_0x181591,this[_0x1ee91(0x3de)]=_0x167c45,this['_docSkeleton']=_0x21601f,this[_0x1ee91(0x32c)]=_0x50b446,this[_0x1ee91(0x2c7)]());}set['_hover'](_0x3f9e33){const _0x2dd81b=_0x2a17cf;_0x3f9e33?(this[_0x2dd81b(0x1f3)]&&this[_0x2dd81b(0x1f3)][_0x2dd81b(0x37f)](),this[_0x2dd81b(0x2f0)]&&this[_0x2dd81b(0x2f0)][_0x2dd81b(0x227)]()):(this[_0x2dd81b(0x1f3)]&&this[_0x2dd81b(0x1f3)][_0x2dd81b(0x227)](),this[_0x2dd81b(0x2f0)]&&this['_textBubble']['hide']());}[_0x2a17cf(0x17b)](){const _0x41048c=_0x2a17cf;for(const _0x2f8047 of this[_0x41048c(0x313)])_0x2f8047['dispose']();this[_0x41048c(0x2f0)]&&this[_0x41048c(0x2f0)][_0x41048c(0x17b)](),this['_anchorDot']&&this[_0x41048c(0x1f3)]['dispose'](),this[_0x41048c(0x317)]&&this['_anchor']['dispose'](),this[_0x41048c(0x1a6)]&&this[_0x41048c(0x1a6)]();}[_0x2a17cf(0x2c7)](){const _0x52e462=_0x2a17cf;var _0x4132c7;const {_docSkeleton:_0x197f79,_document:_0x5884aa}=this,{color:_0x5ce654,name:_0x2641fc,ranges:_0x1605f4}=this[_0x52e462(0x2bd)],_0x5aad3f=_0x5884aa[_0x52e462(0x1ae)](),{docsLeft:_0x3c5f8d,docsTop:_0x184e46}=_0x5aad3f,_0x7e7713=new E[(_0x52e462(0x280))](_0x5aad3f,_0x197f79);for(const {startOffset:_0x28f5cd,endOffset:_0x163522,rangeType:_0x28d841,segmentId:_0x162924,segmentPage:_0x2bd9bb,collapsed:_0x531106,isActive:_0x4b4f2b}of _0x1605f4){const _0xdb2366=_0x197f79['findNodePositionByCharIndex'](_0x28f5cd,!0x0,_0x162924,_0x2bd9bb);let _0x446ac9=_0x197f79['findNodePositionByCharIndex'](_0x163522,!0x0,_0x162924,_0x2bd9bb);if(_0x446ac9==null&&(_0x446ac9=_0x197f79['findNodePositionByCharIndex'](_0x163522-0x1,!0x1,_0x162924,_0x2bd9bb)),_0x4b4f2b){const {contentBoxPointGroup:_0x9d9ebe}=_0x7e7713[_0x52e462(0x1b9)](_0x446ac9,_0x446ac9);if(_0x9d9ebe['length']===0x0)continue;this['_drawAnchor'](_0x5ce654,_0x9d9ebe,_0x3c5f8d,_0x184e46,_0x2641fc),this[_0x52e462(0x1a6)]=this[_0x52e462(0x1a7)]();}if(_0xdb2366&&_0x446ac9){if(_0x28d841===a[_0x52e462(0x193)][_0x52e462(0x3df)]){const _0x1c7dca=new E[(_0x52e462(0x351))](_0x5aad3f,_0x197f79),{pointGroup:_0x3e78cb}=(_0x4132c7=_0x1c7dca[_0x52e462(0x1b9)](_0xdb2366,_0x446ac9))!=null?_0x4132c7:{};if(_0x3e78cb==null||_0x3e78cb[_0x52e462(0x1fd)]===0x0)continue;this[_0x52e462(0x2e8)](_0x5ce654,_0x3e78cb,_0x3c5f8d,_0x184e46);}else{if(!_0x531106){const {borderBoxPointGroup:_0x534393}=_0x7e7713[_0x52e462(0x1b9)](_0xdb2366,_0x446ac9);if(_0x534393[_0x52e462(0x1fd)]===0x0)continue;this[_0x52e462(0x286)](_0x5ce654,_0x534393,_0x3c5f8d,_0x184e46);}}}}}['_drawAnchor'](_0x18ee29,_0x4bf9d8,_0x3b77f3,_0x9bea4c,_0x57d75a){const _0x319c9f=_0x2a17cf,_0x17177b=this['_getAnchorBounding'](_0x4bf9d8),{left:_0x226d8e,top:_0x743f47,height:_0x53097a}=_0x17177b,_0x4be26b=this[_0x319c9f(0x2d9)](),_0x54c1ce=Rt/_0x4be26b,_0x356b91=new p[(_0x319c9f(0x176))](re+a[_0x319c9f(0x2af)](F),{'left':_0x226d8e+_0x3b77f3-_0x54c1ce,'top':_0x743f47+_0x9bea4c,'height':_0x53097a,'width':Tt,'fill':_0x18ee29||p[_0x319c9f(0x221)](a[_0x319c9f(0x385)][_0x319c9f(0x395)],0x0),'strokeWidth':_0x54c1ce,'stroke':Dt,'evented':!0x0});this[_0x319c9f(0x317)]=_0x356b91,this[_0x319c9f(0x3de)][_0x319c9f(0x374)](_0x356b91,E[_0x319c9f(0x19f)]);const _0xb6b84d=new p[(_0x319c9f(0x176))](re+a['generateRandomId'](F),{'left':_0x226d8e+_0x3b77f3-_0x54c1ce,'top':_0x743f47+_0x9bea4c-oe/0x2,'height':oe,'width':oe,'fill':_0x18ee29||p[_0x319c9f(0x221)](a['COLORS'][_0x319c9f(0x395)],0x0),'strokeWidth':0x0,'stroke':_0x18ee29||p[_0x319c9f(0x221)](a[_0x319c9f(0x385)][_0x319c9f(0x395)],0x0),'evented':!0x1});this['_anchorDot']=_0xb6b84d,this[_0x319c9f(0x3de)][_0x319c9f(0x374)](_0xb6b84d,E[_0x319c9f(0x19f)]);const _0x476d86=new ee(re+a[_0x319c9f(0x2af)](F),{'left':_0x226d8e+_0x3b77f3-_0x54c1ce,'top':_0x743f47+_0x9bea4c-W,'text':_0x57d75a,'color':_0x18ee29});this[_0x319c9f(0x2f0)]=_0x476d86,this[_0x319c9f(0x3de)][_0x319c9f(0x374)](_0x476d86,E[_0x319c9f(0x19f)]),this[_0x319c9f(0x3cb)]=!0x1;}[_0x2a17cf(0x1a7)](){const _0x47a036=_0x2a17cf,_0x3afd64=this[_0x47a036(0x317)][_0x47a036(0x2e0)][_0x47a036(0x3d8)](()=>{const _0x237c33=_0x47a036;this[_0x237c33(0x3cb)]=!0x0;}),_0x55dc04=this[_0x47a036(0x317)][_0x47a036(0x24e)][_0x47a036(0x3d8)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5a66af=_0x1209;this[_0x5a66af(0x3cb)]=!0x1;},0x7d0);});return()=>{const _0x3948f3=_0x47a036;_0x3afd64[_0x3948f3(0x1c1)](),_0x55dc04[_0x3948f3(0x1c1)]();};}['_drawTextRange'](_0x164ed5,_0x6eaf9e,_0x403422,_0x1cbef7){const _0x3662d7=_0x2a17cf,_0x27f869=new a[(_0x3662d7(0x2df))](_0x164ed5)[_0x3662d7(0x1e7)](0.2)[_0x3662d7(0x3d1)](),_0x4625c1=new p['RegularPolygon'](bt+a[_0x3662d7(0x2af)](F),{'pointsGroup':_0x6eaf9e,'fill':_0x27f869||p['getColor'](a[_0x3662d7(0x385)][_0x3662d7(0x395)],0.2),'left':_0x403422,'top':_0x1cbef7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3662d7(0x313)][_0x3662d7(0x203)](_0x4625c1),this[_0x3662d7(0x3de)][_0x3662d7(0x374)](_0x4625c1,E[_0x3662d7(0x19f)]);}[_0x2a17cf(0x2e8)](_0xa96fba,_0x565f5a,_0x31b1ab,_0x1fb1e2){const _0x5a653c=_0x2a17cf,_0x4771f8=new a[(_0x5a653c(0x2df))](_0xa96fba)[_0x5a653c(0x1e7)](0.2)[_0x5a653c(0x3d1)](),_0x2809d8=new p['RegularPolygon'](Ot+a['generateRandomId'](F),{'pointsGroup':_0x565f5a,'fill':_0x4771f8||p[_0x5a653c(0x221)](a[_0x5a653c(0x385)][_0x5a653c(0x395)],0.2),'left':_0x31b1ab,'top':_0x1fb1e2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a653c(0x313)]['push'](_0x2809d8),this[_0x5a653c(0x3de)]['addObject'](_0x2809d8,E[_0x5a653c(0x19f)]);}[_0x2a17cf(0x25f)](_0x2b50ba){const _0x8f4291=_0x2b50ba[0x0],_0x58ce27=_0x8f4291[0x0],_0x10bf0a=_0x8f4291[0x2],{x:_0x7c1dd9,y:_0x4ca5ec}=_0x58ce27,{x:_0x13c9f5,y:_0x2aaeb9}=_0x10bf0a;return{'left':_0x7c1dd9,'top':_0x4ca5ec,'width':_0x13c9f5-_0x7c1dd9,'height':_0x2aaeb9-_0x4ca5ec};}['_getScale'](){const _0x3be70d=_0x2a17cf,{scaleX:_0x2389f3,scaleY:_0x4fa7be}=this['_scene'][_0x3be70d(0x1f8)]();return Math[_0x3be70d(0x1e4)](_0x2389f3,_0x4fa7be);}}var Ut=Object['getOwnPropertyDescriptor'],Nt=(_0x392dc0,_0x48f805,_0x21c174,_0x5435a0)=>{const _0x526f5c=_0x2a17cf;for(var _0x13bce8=_0x5435a0>0x1?void 0x0:_0x5435a0?Ut(_0x48f805,_0x21c174):_0x48f805,_0x31f015=_0x392dc0[_0x526f5c(0x1fd)]-0x1,_0x4b7ad8;_0x31f015>=0x0;_0x31f015--)(_0x4b7ad8=_0x392dc0[_0x31f015])&&(_0x13bce8=_0x4b7ad8(_0x13bce8)||_0x13bce8);return _0x13bce8;},X=(_0x3184ee,_0x23e7bf)=>(_0x24d35f,_0x3fe87f)=>_0x23e7bf(_0x24d35f,_0x3fe87f,_0x3184ee);let fe=class extends a[_0x2a17cf(0x359)]{constructor(_0x174add,_0x136ff9,_0x4c5409,_0x11310d,_0xf72085){const _0x32fdd3=_0x2a17cf;super(),h(this,_0x32fdd3(0x3c4),[]),h(this,_0x32fdd3(0x1da),[]),(this[_0x32fdd3(0x30a)]=_0x174add,this[_0x32fdd3(0x20c)]=_0x136ff9,this[_0x32fdd3(0x3c8)]=_0x4c5409,this['_commandService']=_0x11310d,this[_0x32fdd3(0x2bf)]=_0xf72085,this['_init']());}[_0x2a17cf(0x259)](){const _0x2ad521=_0x2a17cf,_0x4d6119=this[_0x2ad521(0x30a)][_0x2ad521(0x2a1)],_0x1c55ac=this[_0x2ad521(0x20c)];this[_0x2ad521(0x1f5)](d[_0x2ad521(0x2d3)]([this[_0x2ad521(0x3c8)][_0x2ad521(0x312)](_0x4d6119),this['_themeService'][_0x2ad521(0x21b)]])[_0x2ad521(0x3a6)]($[_0x2ad521(0x183)](([_0x5c447a,_0x428de2])=>({'skeleton':_0x1c55ac['getSkeleton'](),'cursors':[..._0x5c447a[_0x2ad521(0x399)]()]['flatMap'](_0x2e9d4e=>({..._0x2e9d4e,'color':this[_0x2ad521(0x2bf)]['getColorFromTheme'](_0x2e9d4e[_0x2ad521(0x20b)])}))})))[_0x2ad521(0x3f7)](_0x3f8fd8=>{const _0x59305e=_0x2ad521;if(this[_0x59305e(0x1c7)](),_0x3f8fd8){const {skeleton:_0x33c9d4,cursors:_0x2e58f7}=_0x3f8fd8;this[_0x59305e(0x213)](_0x33c9d4,_0x2e58f7);}})),this[_0x2ad521(0x30f)](),this[_0x2ad521(0x29c)]();}[_0x2a17cf(0x213)](_0x32b5df,_0x5e9ce7){const _0x4f4614=_0x2a17cf,{scene:_0x32da93,mainComponent:_0x2ac6e0}=this[_0x4f4614(0x30a)],_0x1a6860=_0x5e9ce7[_0x4f4614(0x183)](_0x424ceb=>new Re(_0x424ceb,_0x32da93,_0x32b5df,_0x2ac6e0));this[_0x4f4614(0x3c4)]=_0x1a6860,this[_0x4f4614(0x1da)]=_0x5e9ce7;}[_0x2a17cf(0x285)](){const _0x38087f=_0x2a17cf;this[_0x38087f(0x1c7)]();const {scene:_0x166b9f,mainComponent:_0x38a566}=this['_context'],_0x55647d=this[_0x38087f(0x20c)][_0x38087f(0x398)](),_0x486791=this[_0x38087f(0x1da)][_0x38087f(0x183)](_0x491f9a=>new Re(_0x491f9a,_0x166b9f,_0x55647d,_0x38a566));this['_cursorShapes']=_0x486791;}[_0x2a17cf(0x1c7)](){const _0x2bee0c=_0x2a17cf;this[_0x2bee0c(0x3c4)][_0x2bee0c(0x1ce)](_0x1ad7e9=>_0x1ad7e9[_0x2bee0c(0x17b)]()),this[_0x2bee0c(0x3c4)]=[];}[_0x2a17cf(0x29c)](){const _0xfa7f9d=_0x2a17cf,_0x22632b=[E[_0xfa7f9d(0x1ee)]['id']];this[_0xfa7f9d(0x1f5)](this[_0xfa7f9d(0x350)][_0xfa7f9d(0x34e)](_0x6d49e7=>{const _0x1ee79d=_0xfa7f9d;_0x22632b[_0x1ee79d(0x1b7)](_0x6d49e7['id'])&&_0x6d49e7[_0x1ee79d(0x2c2)]['unitId']===this['_context']['unitId']&&this[_0x1ee79d(0x285)]();}));}['_initResize'](){const _0x530a23=_0x2a17cf;this['disposeWithMe'](a[_0x530a23(0x3e4)](this[_0x530a23(0x30a)][_0x530a23(0x22f)]['onTransformChange$'])['pipe']($[_0x530a23(0x237)](_0x2b0510=>_0x2b0510[_0x530a23(0x232)]===p[_0x530a23(0x1b6)][_0x530a23(0x1fa)]),$[_0x530a23(0x17d)](0x10))[_0x530a23(0x3f7)](()=>{const _0x3e5133=_0x530a23;this[_0x3e5133(0x285)]();}));}};fe=Nt([X(0x1,a[_0x2a17cf(0x22b)](Y[_0x2a17cf(0x2d1)])),X(0x2,a['Inject'](x)),X(0x3,a[_0x2a17cf(0x251)]),X(0x4,a['Inject'](a[_0x2a17cf(0x1ca)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x2a17cf(0x1e9)]{constructor(_0x172862,_0x3b1441){const _0x2a5272=_0x2a17cf;super(_0x172862,_0x3b1441),h(this,_0x2a5272(0x204)),h(this,_0x2a5272(0x2b9),!0x1),h(this,'_range'),h(this,_0x2a5272(0x2e1),''),h(this,_0x2a5272(0x3ba),_0x2a5272(0x320)),h(this,_0x2a5272(0x190)),(_0x3b1441&&this['setShapeProps'](_0x3b1441),this[_0x2a5272(0x2e0)][_0x2a5272(0x3d8)](()=>this[_0x2a5272(0x3ea)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2a17cf(0x3ea)](_0x442dfd){const _0x23e5e0=_0x2a17cf;var _0x19c71f,_0x258fd7,_0xf7a9f,_0x4a72a0,_0x14f990,_0x85e80f;this[_0x23e5e0(0x204)]=(_0x19c71f=_0x442dfd['color'])!=null?_0x19c71f:this[_0x23e5e0(0x204)],this[_0x23e5e0(0x2b9)]=(_0x258fd7=_0x442dfd[_0x23e5e0(0x218)])!=null?_0x258fd7:this[_0x23e5e0(0x2b9)],this[_0x23e5e0(0x3b8)]=(_0xf7a9f=_0x442dfd['range'])!=null?_0xf7a9f:this[_0x23e5e0(0x3b8)],this[_0x23e5e0(0x2e1)]=(_0x4a72a0=_0x442dfd[_0x23e5e0(0x1df)])!=null?_0x4a72a0:this[_0x23e5e0(0x2e1)],this[_0x23e5e0(0x3ba)]=(_0x14f990=_0x442dfd[_0x23e5e0(0x3e0)])!=null?_0x14f990:this[_0x23e5e0(0x3ba)],this[_0x23e5e0(0x190)]=(_0x85e80f=_0x442dfd[_0x23e5e0(0x33d)])!=null?_0x85e80f:this[_0x23e5e0(0x190)],this[_0x23e5e0(0x1c2)]({'width':_0x442dfd[_0x23e5e0(0x175)],'height':_0x442dfd[_0x23e5e0(0x39b)]});}[_0x2a17cf(0x260)](_0x361072){const _0x2a76b9=_0x2a17cf,{row:_0x3f5e38,column:_0x49c4b3}=_0x361072;if(_0x3f5e38>=this[_0x2a76b9(0x3b8)][_0x2a76b9(0x3a5)]&&_0x3f5e38<=this[_0x2a76b9(0x3b8)][_0x2a76b9(0x174)]&&_0x49c4b3>=this['_range'][_0x2a76b9(0x1dd)]&&_0x49c4b3<=this[_0x2a76b9(0x3b8)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2a76b9(0x3ea)]({'hovered':!0x1});}['triggerDblclick'](_0x19971e){return!0x1;}['_draw'](_0x17bd14){const _0x3adae7=_0x2a17cf;p[_0x3adae7(0x176)]['drawWith'](_0x17bd14,{'width':this[_0x3adae7(0x175)],'height':this[_0x3adae7(0x39b)],'strokeWidth':Lt,'stroke':this[_0x3adae7(0x204)],'evented':!0x1,'fill':this[_0x3adae7(0x190)]}),this[_0x3adae7(0x2b9)]&&(_0x17bd14[_0x3adae7(0x2ec)](),_0x17bd14[_0x3adae7(0x38e)](0x1,0x0,0x0,0x1,this['width'],this[_0x3adae7(0x3ba)]===_0x3adae7(0x1ef)?0x0:-W),ee[_0x3adae7(0x279)](_0x17bd14,{'text':this[_0x3adae7(0x2e1)],'color':this[_0x3adae7(0x204)]}),_0x17bd14[_0x3adae7(0x241)]());}}var Pt=Object[_0x2a17cf(0x330)],wt=(_0x479b21,_0x2ae7b9,_0x36d623,_0x2b4f9a)=>{const _0x25364e=_0x2a17cf;for(var _0x6499f6=_0x2b4f9a>0x1?void 0x0:_0x2b4f9a?Pt(_0x2ae7b9,_0x36d623):_0x2ae7b9,_0x1d321a=_0x479b21[_0x25364e(0x1fd)]-0x1,_0x25c4c1;_0x1d321a>=0x0;_0x1d321a--)(_0x25c4c1=_0x479b21[_0x1d321a])&&(_0x6499f6=_0x25c4c1(_0x6499f6)||_0x6499f6);return _0x6499f6;},ae=(_0x4980f7,_0x16abd5)=>(_0x317a20,_0x5077f9)=>_0x16abd5(_0x317a20,_0x5077f9,_0x4980f7);const At=0x1389;let Ie=class extends a[_0x2a17cf(0x359)]{constructor(_0x3282f8,_0x1aafc9,_0x295bfa,_0x203aaf){const _0x349138=_0x2a17cf;super(),h(this,_0x349138(0x1da),new Set()),h(this,_0x349138(0x363),null),(this['_context']=_0x3282f8,this[_0x349138(0x303)]=_0x1aafc9,this[_0x349138(0x3c8)]=_0x295bfa,this[_0x349138(0x2bf)]=_0x203aaf,this[_0x349138(0x259)]());}[_0x2a17cf(0x259)](){const _0x262ec1=_0x2a17cf;this[_0x262ec1(0x303)][_0x262ec1(0x206)][_0x262ec1(0x3a6)]($[_0x262ec1(0x245)](this[_0x262ec1(0x178)]),$['switchMap'](_0x3d8759=>{const _0x53250a=_0x262ec1;if(_0x3d8759){const _0x1cec4c=_0x3d8759['sheetId'];return d[_0x53250a(0x2d3)](this[_0x53250a(0x3c8)][_0x53250a(0x312)](this[_0x53250a(0x30a)][_0x53250a(0x2a1)]),this[_0x53250a(0x2bf)][_0x53250a(0x21b)])[_0x53250a(0x3a6)]($['map'](([_0x367abc,_0x157d76])=>{const _0x4e967d=_0x53250a,_0x67802d=new Map();return _0x367abc[_0x4e967d(0x1ce)]((_0x3c66d2,_0x5b4d9b)=>{const _0x325d8b=_0x4e967d;if(_0x3c66d2[_0x325d8b(0x1f6)]===_0x1cec4c){const _0x439bad={..._0x3c66d2};_0x439bad[_0x325d8b(0x20b)]=this[_0x325d8b(0x2bf)][_0x325d8b(0x2f8)](_0x3c66d2[_0x325d8b(0x20b)]),_0x67802d[_0x325d8b(0x228)](_0x5b4d9b,_0x439bad);}}),{'skeleton':_0x3d8759,'cursors':_0x67802d};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x262ec1(0x3f7)](({skeleton:_0x49372a,cursors:_0xb80d51})=>{const _0x24ccea=_0x262ec1;this['_removeCollabCursors'](),_0x49372a&&this[_0x24ccea(0x213)](_0x49372a,_0xb80d51);}),this[_0x262ec1(0x303)][_0x262ec1(0x206)][_0x262ec1(0x3f7)](_0x4809a7=>{const _0x3f0fbd=_0x262ec1;if(_0x4809a7==null)return;const {skeleton:_0x489f8a}=_0x4809a7,{scene:_0x511942}=this['_context'];_0x511942[_0x3f0fbd(0x194)][_0x3f0fbd(0x3d8)](a[_0x3f0fbd(0x189)](_0x5942df=>{const _0x5437c2=_0x3f0fbd;var _0x5157e8,_0x5b2c17;const {offsetX:_0x445e84,offsetY:_0x1cbc48}=_0x5942df,{x:_0x7fa675,y:_0x50c13e}=_0x511942[_0x5437c2(0x269)](p[_0x5437c2(0x1f1)]['FromArray']([_0x445e84,_0x1cbc48])),{scaleX:_0x2230b5,scaleY:_0x1ff3d1}=_0x511942['getAncestorScale'](),_0x162838=_0x511942[_0x5437c2(0x1c4)](p[_0x5437c2(0x2fa)][_0x5437c2(0x24b)]),_0x3f09b6=_0x511942['getVpScrollXYInfoByPosToVp'](p[_0x5437c2(0x1f1)]['FromArray']([_0x7fa675,_0x50c13e]),_0x162838),_0x335d63=_0x489f8a['getCellPositionByOffset'](_0x445e84,_0x1cbc48,_0x2230b5,_0x1ff3d1,_0x3f09b6);((_0x5157e8=this[_0x5437c2(0x363)])==null?void 0x0:_0x5157e8['column'])===_0x335d63[_0x5437c2(0x197)]&&((_0x5b2c17=this[_0x5437c2(0x363)])==null?void 0x0:_0x5b2c17[_0x5437c2(0x343)])===_0x335d63[_0x5437c2(0x343)]||this[_0x5437c2(0x1da)][_0x5437c2(0x1ce)](_0x47d603=>{const _0x2cf254=_0x5437c2;_0x47d603[_0x2cf254(0x260)](_0x335d63);});},0x64));});}[_0x2a17cf(0x213)](_0x3a4a79,_0x1c733b){const _0x5606ce=_0x2a17cf;var _0x410fa6;const _0x398724=(_0x410fa6=this['_sheetSkeletonManagerService'][_0x5606ce(0x1ad)]())==null?void 0x0:_0x410fa6['skeleton'];if(!_0x398724)return;const _0x9a5e3c=this['_getSheetObject']();if(!_0x9a5e3c)return;this[_0x5606ce(0x1da)][_0x5606ce(0x1ce)](_0x5adffb=>{const _0x1ce5b6=_0x5606ce;_0x5adffb[_0x1ce5b6(0x328)]();});const {scene:_0x4fc03f}=_0x9a5e3c,_0x167537=yt(Array[_0x5606ce(0x3f8)](_0x1c733b[_0x5606ce(0x399)]()))['map'](_0x4f988e=>{const _0x511280=_0x5606ce,{color:_0x244d66,range:_0x3dfa93,name:_0x2eff2b,selection:_0x54f214,sheetID:_0x413a77}=_0x4f988e,{startColumn:_0x1df985,startRow:_0x2931e6,endColumn:_0x37c5c6,endRow:_0x15bbbb}=_0x3dfa93,_0x226091=G[_0x511280(0x2a0)](_0x2931e6,_0x1df985,_0x4fc03f,_0x398724),_0x22b112=G[_0x511280(0x2a0)](_0x15bbbb,_0x37c5c6,_0x4fc03f,_0x398724),{columnHeaderHeightAndMarginTop:_0x4802ce}=_0x398724,{startX:_0x471072,startY:_0x36d5bb}=_0x226091,{endX:_0x51a717,endY:_0x5bbba0}=_0x22b112,_0x4de1c4=_0x51a717-_0x471072,_0x5ba887=_0x5bbba0-_0x36d5bb,_0x3a84fc={'labelPosition':_0x36d5bb-_0x4802ce>=W?_0x511280(0x320):_0x511280(0x1ef),'sheetID':_0x413a77,'range':_0x3dfa93,'color':_0x244d66,'name':_0x2eff2b,'selection':_0x54f214,'left':_0x471072,'top':_0x36d5bb,'width':_0x4de1c4,'height':_0x5ba887,'evented':!0x1,'zIndex':At};return new $e(_0x2eff2b,_0x3a84fc);});_0x4fc03f[_0x5606ce(0x270)](_0x167537,Mt),this[_0x5606ce(0x1da)]=new Set(_0x167537);}[_0x2a17cf(0x1c7)](){const _0x19437b=_0x2a17cf;var _0x29eb48;(_0x29eb48=this[_0x19437b(0x1da)])==null||_0x29eb48['forEach'](_0x268611=>_0x268611[_0x19437b(0x17b)]());}[_0x2a17cf(0x34a)](){const _0x23e59a=_0x2a17cf;return G[_0x23e59a(0x31f)](this[_0x23e59a(0x30a)][_0x23e59a(0x22e)],this[_0x23e59a(0x30a)]);}};Ie=wt([ae(0x1,a[_0x2a17cf(0x22b)](G[_0x2a17cf(0x180)])),ae(0x2,a[_0x2a17cf(0x22b)](x)),ae(0x3,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x1ca)]))],Ie);function yt(_0x34218c){const _0x47f36b=_0x2a17cf,_0x592dc6=new Map();return _0x34218c[_0x47f36b(0x1ce)](_0x496db2=>{const _0x34d73b=_0x47f36b;if(_0x592dc6[_0x34d73b(0x3bd)](_0x496db2[_0x34d73b(0x3b5)])){const _0x428475=_0x592dc6['get'](_0x496db2[_0x34d73b(0x3b5)]);_0x428475[_0x34d73b(0x1df)]+=',\x20'+_0x496db2[_0x34d73b(0x1df)];}else _0x592dc6['set'](_0x496db2[_0x34d73b(0x3b5)],_0x496db2);}),Array['from'](_0x592dc6[_0x47f36b(0x399)]());}var $t=Object[_0x2a17cf(0x330)],xt=(_0x5b22cf,_0x19cada,_0x7ac04d,_0x359e9b)=>{const _0x24b955=_0x2a17cf;for(var _0x4cfb2f=_0x359e9b>0x1?void 0x0:_0x359e9b?$t(_0x19cada,_0x7ac04d):_0x19cada,_0x40e1ba=_0x5b22cf[_0x24b955(0x1fd)]-0x1,_0x1e34f3;_0x40e1ba>=0x0;_0x40e1ba--)(_0x1e34f3=_0x5b22cf[_0x40e1ba])&&(_0x4cfb2f=_0x1e34f3(_0x4cfb2f)||_0x4cfb2f);return _0x4cfb2f;},y=(_0xa43581,_0x1ba57)=>(_0x373dff,_0x76d878)=>_0x1ba57(_0x373dff,_0x76d878,_0xa43581);let q=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x16a100,_0x2e7980,_0xdf7ad0,_0x20aab1,_0x1c5293,_0x3bfa66){const _0x5a1ea0=_0x2a17cf;super(),this[_0x5a1ea0(0x3cd)]=_0x16a100,this[_0x5a1ea0(0x219)]=_0x2e7980,this[_0x5a1ea0(0x2e4)]=_0xdf7ad0,this[_0x5a1ea0(0x224)]=_0x20aab1,this[_0x5a1ea0(0x394)]=_0x1c5293,this[_0x5a1ea0(0x353)]=_0x3bfa66,this[_0x5a1ea0(0x326)](),this[_0x5a1ea0(0x2dc)]();}[_0x2a17cf(0x326)](){const _0x1523c2=_0x2a17cf;this[_0x1523c2(0x1f5)](this[_0x1523c2(0x3cd)]['registerBeforeClose'](()=>{const _0x3a36cc=_0x1523c2;if(this[_0x3a36cc(0x219)][_0x3a36cc(0x36a)][_0x3a36cc(0x3c7)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x5941ae=_0x2a17cf;this[_0x5941ae(0x1f5)](this[_0x5941ae(0x2e4)][_0x5941ae(0x1ab)][_0x5941ae(0x3f7)](_0x5186d2=>{const _0x127ce1=_0x5941ae;_0x5186d2['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x127ce1(0x227)]({'type':D[_0x127ce1(0x334)][_0x127ce1(0x234)],'content':this[_0x127ce1(0x353)]['t']('collaboration.single-unit.warning')}),_0x5186d2['id']===u[_0x127ce1(0x38c)][_0x127ce1(0x1d6)]&&this[_0x127ce1(0x224)]['show']({'type':D['MessageType'][_0x127ce1(0x234)],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x18f))}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['PERMISSION_DENIED']&&this[_0x127ce1(0x394)][_0x127ce1(0x227)]({'title':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x327)),'content':this['_localeService']['t'](_0x127ce1(0x1d4)),'type':_0x127ce1(0x3dd),'duration':0x0}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['CONFLICT']&&this['_messageService'][_0x127ce1(0x227)]({'type':D[_0x127ce1(0x334)][_0x127ce1(0x28f)],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x18f))+'('+_0x5186d2[_0x127ce1(0x1d0)]+')'}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['JOIN_ROOM_FAILED']&&this[_0x127ce1(0x224)][_0x127ce1(0x227)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x5186d2[_0x127ce1(0x1d0)]||'')}),_0x5186d2['id']===u[_0x127ce1(0x38c)][_0x127ce1(0x1fc)]&&this[_0x127ce1(0x224)][_0x127ce1(0x227)]({'type':D[_0x127ce1(0x334)]['Warning'],'content':this['_localeService']['t']('session.will-retry')}),_0x5186d2['id']===u['CollaborationUIEventId'][_0x127ce1(0x1cd)]&&this['_messageService']['show']({'type':D[_0x127ce1(0x334)]['Error'],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x3e8))}),_0x5186d2['id']===u[_0x127ce1(0x38c)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x127ce1(0x224)]['show']({'type':D[_0x127ce1(0x334)][_0x127ce1(0x28f)],'content':this[_0x127ce1(0x353)]['t'](_0x127ce1(0x1c9))});}));}};q=xt([y(0x0,O[_0x2a17cf(0x384)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x2a17cf(0x22b)](u[_0x2a17cf(0x205)])),y(0x3,O[_0x2a17cf(0x3e9)]),y(0x4,O[_0x2a17cf(0x23c)]),y(0x5,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x202)]))],q);const Bt='collaboration-client-ui.config',De={};var jt=Object[_0x2a17cf(0x330)],kt=(_0xc0c17c,_0x38b8a7,_0x5a6dde,_0x58486b)=>{const _0x3a0cd5=_0x2a17cf;for(var _0x1e2ae5=_0x58486b>0x1?void 0x0:_0x58486b?jt(_0x38b8a7,_0x5a6dde):_0x38b8a7,_0x58397b=_0xc0c17c[_0x3a0cd5(0x1fd)]-0x1,_0x5e1d18;_0x58397b>=0x0;_0x58397b--)(_0x5e1d18=_0xc0c17c[_0x58397b])&&(_0x1e2ae5=_0x5e1d18(_0x1e2ae5)||_0x1e2ae5);return _0x1e2ae5;},Ue=(_0x2067ba,_0x53b008)=>(_0x503907,_0x2b9a65)=>_0x53b008(_0x503907,_0x2b9a65,_0x2067ba);let z=class{constructor(_0x483f01,_0x5603ef){const _0x2498bc=_0x2a17cf;this['_transformService']=_0x483f01,this[_0x2498bc(0x2c1)]=_0x5603ef;}['transformIMECache'](_0x52b6e0){const _0x375a0f=_0x2a17cf;this['_transformUndoRedoStack'](_0x52b6e0),this[_0x375a0f(0x253)](_0x52b6e0);}['transformRemoteChangeset'](_0x57fcb8){const _0x901577=_0x2a17cf,{unitID:_0x478022}=_0x57fcb8,_0x516858=this[_0x901577(0x2c1)]['getRenderById'](_0x478022)[_0x901577(0x214)](E['DocIMEInputManagerService']),{redoCache:_0x3bf288}=_0x516858[_0x901577(0x3e6)]();if(_0x3bf288[_0x901577(0x1fd)]===0x0)return _0x57fcb8;let _0x124f79=a['Tools']['deepClone'](_0x57fcb8[_0x901577(0x200)][0x0]);for(let _0x4664b4=0x0;_0x4664b4<_0x3bf288[_0x901577(0x1fd)];_0x4664b4++){const _0x319bbb={'id':_0x901577(0x186),'params':{..._0x3bf288[_0x4664b4]}},_0x62dc85=this[_0x901577(0x20f)][_0x901577(0x1ea)](_0x124f79,_0x319bbb,!0x1);if(m[_0x901577(0x2ca)](_0x62dc85))throw _0x62dc85[_0x901577(0x3dd)];_0x124f79=_0x62dc85[_0x901577(0x24d)];}return{...a[_0x901577(0x2a5)][_0x901577(0x226)](_0x57fcb8),'mutations':[_0x124f79]};}[_0x2a17cf(0x2b4)](_0x421a5f){const _0xa313b2=_0x2a17cf,{unitID:_0x28a7ca}=_0x421a5f,_0x398d9b=this[_0xa313b2(0x2c1)][_0xa313b2(0x32a)](_0x28a7ca)[_0xa313b2(0x214)](E[_0xa313b2(0x290)]),{undoCache:_0x2660c8,redoCache:_0xf77ee}=_0x398d9b[_0xa313b2(0x3e6)]();if(_0x2660c8[_0xa313b2(0x1fd)]===0x0||_0xf77ee[_0xa313b2(0x1fd)]===0x0)return;const _0x438706=[],_0x291b1a=[];let _0x5dc9c8=a['Tools'][_0xa313b2(0x226)](_0x421a5f[_0xa313b2(0x200)][0x0]),_0x4938c6=a['Tools'][_0xa313b2(0x226)](_0x421a5f['mutations'][0x0]);for(let _0x5937f5=_0x2660c8[_0xa313b2(0x1fd)]-0x1;_0x5937f5>=0x0;_0x5937f5--){const _0x37f99f={'id':_0xa313b2(0x186),'params':{..._0x2660c8[_0x5937f5]}},_0x59d713={'id':'doc.mutation.rich-text-editing','params':{..._0xf77ee[_0x5937f5]}},_0x358140=this[_0xa313b2(0x20f)]['transformMutation'](_0x5dc9c8,_0x37f99f,!0x1),_0xd1a9d1=this[_0xa313b2(0x20f)]['transformMutation'](_0x4938c6,_0x59d713,!0x1);if(m[_0xa313b2(0x2ca)](_0x358140))throw _0x358140[_0xa313b2(0x3dd)];if(m['isTransformMutationFailure'](_0xd1a9d1))throw _0xd1a9d1[_0xa313b2(0x3dd)];_0x438706['unshift'](_0x358140[_0xa313b2(0x212)][_0xa313b2(0x2c2)]),_0x291b1a['unshift'](_0xd1a9d1['m2Prime'][_0xa313b2(0x2c2)]),_0x5dc9c8=_0x358140[_0xa313b2(0x24d)],_0x4938c6=_0xd1a9d1['m1Prime'];}_0x398d9b['setUndoRedoMutationParamsCache']({'undoCache':_0x438706,'redoCache':_0x291b1a});}[_0x2a17cf(0x253)](_0x5cdc11){const _0x1f3bfb=_0x2a17cf,{unitID:_0x7e5ee8}=_0x5cdc11,_0x5c0f1a=this[_0x1f3bfb(0x2c1)]['getRenderById'](_0x7e5ee8)[_0x1f3bfb(0x214)](E[_0x1f3bfb(0x290)]),_0x26eadb=_0x5c0f1a[_0x1f3bfb(0x3ca)]();if(_0x26eadb==null)return;const _0x39a70d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5cdc11[_0x1f3bfb(0x2a2)],'actions':null,'textRanges':[_0x26eadb]}}],_0x292d56=this['_transformService']['transformMutationsWithChangeset'](_0x5cdc11,_0x39a70d);if(!m[_0x1f3bfb(0x18e)](_0x292d56))throw _0x292d56[_0x1f3bfb(0x3dd)];const _0x1bb18c=_0x292d56['m2Prime'][0x0]['params'][_0x1f3bfb(0x30b)];Array[_0x1f3bfb(0x35d)](_0x1bb18c)&&_0x1bb18c[_0x1f3bfb(0x1fd)]&&_0x5c0f1a[_0x1f3bfb(0x37d)](_0x1bb18c[0x0]);}};z=kt([Ue(0x0,m[_0x2a17cf(0x2de)]),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x2a8ba5,_0x1d64a8,_0x32171b,_0x579742)=>{const _0x1c9fe7=_0x2a17cf;for(var _0x59931d=_0x579742>0x1?void 0x0:_0x579742?Ft(_0x1d64a8,_0x32171b):_0x1d64a8,_0x4ffeb6=_0x2a8ba5[_0x1c9fe7(0x1fd)]-0x1,_0x355654;_0x4ffeb6>=0x0;_0x4ffeb6--)(_0x355654=_0x2a8ba5[_0x4ffeb6])&&(_0x59931d=_0x355654(_0x59931d)||_0x59931d);return _0x59931d;},ce=(_0x32a637,_0x5166da)=>(_0x13c9ae,_0x17d3d8)=>_0x5166da(_0x13c9ae,_0x17d3d8,_0x32a637);let J=class{constructor(_0x44ff95,_0x6d6512,_0x126a22){const _0x4fdf44=_0x2a17cf;this[_0x4fdf44(0x28a)]=_0x44ff95,this[_0x4fdf44(0x20f)]=_0x6d6512,this['_docStateChangeManagerService']=_0x126a22;}[_0x2a17cf(0x2e3)](_0x2ab688){const _0x20a1a3=_0x2a17cf;this[_0x20a1a3(0x3da)](_0x2ab688);}['transformRemoteChangeset'](_0x44e925){const _0x57b711=_0x2a17cf,{unitID:_0x1c7da3}=_0x44e925,{collaboration:_0x4d4d34}=this[_0x57b711(0x3a9)][_0x57b711(0x1e3)](_0x1c7da3);if(_0x4d4d34[_0x57b711(0x1fd)]===0x0)return _0x44e925;let _0x6fffdb=a[_0x57b711(0x2a5)][_0x57b711(0x226)](_0x44e925['mutations'][0x0]);for(let _0x126192=0x0;_0x126192<_0x4d4d34['length'];_0x126192++){const _0x35b20d={'id':_0x57b711(0x186),'params':{'unitId':_0x4d4d34[_0x126192][_0x57b711(0x2a1)],..._0x4d4d34[_0x126192]['redoState']}},_0x44721a=this[_0x57b711(0x20f)]['transformMutation'](_0x6fffdb,_0x35b20d,!0x1);if(m[_0x57b711(0x2ca)](_0x44721a))throw _0x44721a[_0x57b711(0x3dd)];_0x6fffdb=_0x44721a[_0x57b711(0x24d)];}return{...a[_0x57b711(0x2a5)]['deepClone'](_0x44e925),'mutations':[_0x6fffdb]};}['_transformHistoryAndStateStack'](_0x326baa){const _0x98d708=_0x2a17cf,{unitID:_0x3d5f54}=_0x326baa,{history:_0x59f9a6,collaboration:_0x1e1782}=this[_0x98d708(0x3a9)][_0x98d708(0x1e3)](_0x3d5f54);if(_0x59f9a6['length']===0x0&&_0x1e1782[_0x98d708(0x1fd)]===0x0)return;const _0x2ec88c=[],_0x2102d4=[];let _0x34662b=a[_0x98d708(0x2a5)]['deepClone'](_0x326baa[_0x98d708(0x200)][0x0]),_0x5660d4=a[_0x98d708(0x2a5)][_0x98d708(0x226)](_0x326baa['mutations'][0x0]);for(let _0x31e94d=_0x59f9a6[_0x98d708(0x1fd)]-0x1;_0x31e94d>=0x0;_0x31e94d--){const _0x209afa={'id':_0x98d708(0x186),'params':{'unitId':_0x59f9a6[_0x31e94d][_0x98d708(0x2a1)],..._0x59f9a6[_0x31e94d][_0x98d708(0x22d)]}},_0x5ba66d={'id':_0x98d708(0x186),'params':{'unitId':_0x59f9a6[_0x31e94d][_0x98d708(0x2a1)],..._0x59f9a6[_0x31e94d][_0x98d708(0x31a)]}},_0x20e8ce=this[_0x98d708(0x20f)][_0x98d708(0x1ea)](_0x34662b,_0x209afa,!0x1),_0x4cf54d=this['_transformService'][_0x98d708(0x1ea)](_0x5660d4,_0x5ba66d,!0x1);if(m[_0x98d708(0x2ca)](_0x20e8ce))throw _0x20e8ce['error'];if(m[_0x98d708(0x2ca)](_0x4cf54d))throw _0x4cf54d['error'];_0x2ec88c[_0x98d708(0x3e1)]({..._0x59f9a6[_0x31e94d],'undoState':_0x20e8ce['m2Prime'][_0x98d708(0x2c2)],'redoState':_0x4cf54d[_0x98d708(0x212)][_0x98d708(0x2c2)]}),_0x34662b=_0x20e8ce['m1Prime'],_0x5660d4=_0x4cf54d[_0x98d708(0x24d)];}_0x34662b=a[_0x98d708(0x2a5)][_0x98d708(0x226)](_0x326baa[_0x98d708(0x200)][0x0]),_0x5660d4=a[_0x98d708(0x2a5)][_0x98d708(0x226)](_0x326baa['mutations'][0x0]);for(let _0x216133=_0x1e1782[_0x98d708(0x1fd)]-0x1;_0x216133>=0x0;_0x216133--){const _0x598b81={'id':_0x98d708(0x186),'params':{'unitId':_0x1e1782[_0x216133][_0x98d708(0x2a1)],..._0x1e1782[_0x216133][_0x98d708(0x22d)]}},_0x2d2e3d={'id':_0x98d708(0x186),'params':{'unitId':_0x1e1782[_0x216133][_0x98d708(0x2a1)],..._0x1e1782[_0x216133][_0x98d708(0x31a)]}},_0x3a5389=this[_0x98d708(0x20f)][_0x98d708(0x1ea)](_0x34662b,_0x598b81,!0x1),_0x223094=this[_0x98d708(0x20f)][_0x98d708(0x1ea)](_0x5660d4,_0x2d2e3d,!0x1);if(m[_0x98d708(0x2ca)](_0x3a5389))throw _0x3a5389['error'];if(m['isTransformMutationFailure'](_0x223094))throw _0x223094[_0x98d708(0x3dd)];_0x2102d4[_0x98d708(0x3e1)]({..._0x1e1782[_0x216133],'undoState':_0x3a5389[_0x98d708(0x212)][_0x98d708(0x2c2)],'redoState':_0x223094['m2Prime'][_0x98d708(0x2c2)]}),_0x34662b=_0x3a5389[_0x98d708(0x24d)],_0x5660d4=_0x223094['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x3d5f54,{'history':_0x2ec88c,'collaboration':_0x2102d4});}};J=Ht([ce(0x0,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x231)])),ce(0x1,m[_0x2a17cf(0x2de)]),ce(0x2,a[_0x2a17cf(0x22b)](E[_0x2a17cf(0x39c)]))],J);var Yt=Object[_0x2a17cf(0x330)],Wt=(_0x1ef32c,_0x33f934,_0x1e6504,_0x2fa8d1)=>{const _0x827298=_0x2a17cf;for(var _0x42bcd1=_0x2fa8d1>0x1?void 0x0:_0x2fa8d1?Yt(_0x33f934,_0x1e6504):_0x33f934,_0x190fb6=_0x1ef32c[_0x827298(0x1fd)]-0x1,_0x423f19;_0x190fb6>=0x0;_0x190fb6--)(_0x423f19=_0x1ef32c[_0x190fb6])&&(_0x42bcd1=_0x423f19(_0x42bcd1)||_0x42bcd1);return _0x42bcd1;},Ne=(_0x9935b0,_0x2494a5)=>(_0x48c5b7,_0x5dba24)=>_0x2494a5(_0x48c5b7,_0x5dba24,_0x9935b0);let Z=class{constructor(_0x4cc033,_0xf697e8){const _0x3601d6=_0x2a17cf;this[_0x3601d6(0x28a)]=_0x4cc033,this[_0x3601d6(0x20f)]=_0xf697e8;}['transformSelections'](_0x228d32){const _0x5a6968=_0x2a17cf;var _0x3433aa;const _0x207b52=this[_0x5a6968(0x28a)][_0x5a6968(0x302)](Y[_0x5a6968(0x365)]),_0x3da38d=(_0x3433aa=_0x207b52[_0x5a6968(0x28b)]())!=null?_0x3433aa:[];if(_0x3da38d[_0x5a6968(0x1fd)]===0x0)return;const _0x4267ad=_0x228d32[_0x5a6968(0x2a2)],_0x32a740=[{'id':_0x5a6968(0x186),'params':{'unitId':_0x4267ad,'actions':null,'textRanges':_0x3da38d}}],_0x394151=this[_0x5a6968(0x20f)][_0x5a6968(0x1b8)](_0x228d32,_0x32a740);if(!m['isTransformMutationsWithChangesetSuccess'](_0x394151))throw _0x394151[_0x5a6968(0x3dd)];const _0x56449c=_0x394151[_0x5a6968(0x212)][0x0][_0x5a6968(0x2c2)][_0x5a6968(0x30b)];Array['isArray'](_0x56449c)&&_0x56449c[_0x5a6968(0x1fd)]&&_0x207b52['replaceDocRanges'](_0x56449c,{'unitId':_0x4267ad,'subUnitId':_0x4267ad},!0x1);}};function _0x1209(_0x2133d8,_0x439fca){const _0x14db8a=_0x14db();return _0x1209=function(_0x120910,_0x5e9ae7){_0x120910=_0x120910-0x173;let _0x44fa2c=_0x14db8a[_0x120910];return _0x44fa2c;},_0x1209(_0x2133d8,_0x439fca);}Z=Wt([Ne(0x0,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x231)])),Ne(0x1,m[_0x2a17cf(0x2de)])],Z);var Vt=Object[_0x2a17cf(0x330)],Xt=(_0x12d300,_0x25e7a7,_0x45f287,_0x157b33)=>{for(var _0x290d36=_0x157b33>0x1?void 0x0:_0x157b33?Vt(_0x25e7a7,_0x45f287):_0x25e7a7,_0x9c6419=_0x12d300['length']-0x1,_0x194383;_0x9c6419>=0x0;_0x9c6419--)(_0x194383=_0x12d300[_0x9c6419])&&(_0x290d36=_0x194383(_0x290d36)||_0x290d36);return _0x290d36;},N=(_0xe975a7,_0xed34c2)=>(_0x5da30a,_0x5bbe91)=>_0xed34c2(_0x5da30a,_0x5bbe91,_0xe975a7);let Q=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x288782,_0x539271,_0x3edec6,_0x3b9f95,_0x2027c8,_0x5b5465,_0x5dcf69,_0x20e7c8){const _0xea3b8a=_0x2a17cf;super(),h(this,_0xea3b8a(0x179),new d['BehaviorSubject'](u[_0xea3b8a(0x3ee)][_0xea3b8a(0x331)])),(this[_0xea3b8a(0x3a9)]=_0x288782,this[_0xea3b8a(0x192)]=_0x539271,this['_docTransformIMECacheService']=_0x3edec6,this[_0xea3b8a(0x301)]=_0x3b9f95,this['_docTransformSelectionsService']=_0x2027c8,this[_0xea3b8a(0x264)]=_0x5b5465,this[_0xea3b8a(0x224)]=_0x5dcf69,this[_0xea3b8a(0x353)]=_0x20e7c8,this[_0xea3b8a(0x308)]());}[_0x2a17cf(0x308)](){const _0x23acbf=_0x2a17cf;this[_0x23acbf(0x1f5)](this[_0x23acbf(0x192)]['entityInit$'][_0x23acbf(0x3f7)](_0x5a1b3f=>{const _0x376643=_0x23acbf,_0x3b209b=this['_docStateChangeManagerService'][_0x376643(0x2c9)][_0x376643(0x3f7)](_0x4cade9=>{const _0x5a75e2=_0x376643;if(_0x4cade9==null)return;const {unitId:_0x2c5625,redoState:_0x5f0abb,commandId:_0x7de971}=_0x4cade9;if(_0x2c5625!==_0x5a1b3f[_0x5a75e2(0x2a2)])return;const _0x1c8086={'id':_0x7de971,'type':a[_0x5a75e2(0x2c3)][_0x5a75e2(0x23e)],'params':{'unitId':_0x2c5625,'actions':_0x5f0abb[_0x5a75e2(0x29d)],'textRanges':null}};_0x5a1b3f[_0x5a75e2(0x3d3)](_0x1c8086);});if(_0x5a1b3f['disposeWithMe'](_0x3b209b),_0x5a1b3f instanceof u[_0x376643(0x367)]){const _0x474cb5={'onTransformIME':_0x1b87c7=>this[_0x376643(0x267)][_0x376643(0x29a)](_0x1b87c7),'onTransformState':_0x4aa659=>this[_0x376643(0x301)][_0x376643(0x2e3)](_0x4aa659),'onTransformSelections':_0x591caf=>this[_0x376643(0x305)][_0x376643(0x3dc)](_0x591caf),'onSyncEditingCollabCursor':_0x4c1096=>this[_0x376643(0x264)]['syncEditingCollabCursor'](_0x4c1096),'onTransformRemoteChangesetByIMECache':_0x43dce8=>this[_0x376643(0x267)][_0x376643(0x2b5)](_0x43dce8),'onTransformRemoteChangesetByStateCache':_0xc29624=>this[_0x376643(0x301)][_0x376643(0x2b5)](_0xc29624)};_0x5a1b3f[_0x376643(0x217)](_0x474cb5);}}));}};Q=Xt([N(0x0,a[_0x2a17cf(0x22b)](E[_0x2a17cf(0x39c)])),N(0x1,a['Inject'](u[_0x2a17cf(0x304)])),N(0x2,a[_0x2a17cf(0x22b)](z)),N(0x3,a[_0x2a17cf(0x22b)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x2a17cf(0x22b)](pe)),N(0x6,O[_0x2a17cf(0x3e9)]),N(0x7,a[_0x2a17cf(0x22b)](a[_0x2a17cf(0x202)]))],Q);var Gt=Object[_0x2a17cf(0x330)],Kt=(_0x1ec232,_0x507f76,_0x46f16b,_0x5087ce)=>{for(var _0x47bc59=_0x5087ce>0x1?void 0x0:_0x5087ce?Gt(_0x507f76,_0x46f16b):_0x507f76,_0x144736=_0x1ec232['length']-0x1,_0x129c79;_0x144736>=0x0;_0x144736--)(_0x129c79=_0x1ec232[_0x144736])&&(_0x47bc59=_0x129c79(_0x47bc59)||_0x47bc59);return _0x47bc59;},le=(_0x483d99,_0x1154f4)=>(_0x2b4ed4,_0x314ed2)=>_0x1154f4(_0x2b4ed4,_0x314ed2,_0x483d99);let ve=class extends a['Disposable']{constructor(_0x156656,_0x14bff7,_0x29215c){const _0x44af1e=_0x2a17cf;super(),h(this,_0x44af1e(0x354),new Map()),h(this,'_saveTaskMap',new Map()),h(this,'_disabled',!0x1),(this[_0x44af1e(0x369)]=_0x156656,this[_0x44af1e(0x258)]=_0x14bff7,this['_revisionService']=_0x29215c);}[_0x2a17cf(0x2cf)](){this['_disabled']=!0x0;}[_0x2a17cf(0x33a)](){const _0x4fb039=_0x2a17cf;this[_0x4fb039(0x1fb)]=!0x1;}get[_0x2a17cf(0x36a)](){return this['_saveTaskMap'];}['dispose'](){const _0x4e63e0=_0x2a17cf;this[_0x4e63e0(0x29b)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x47b281){const _0x35fb13=_0x2a17cf;return this[_0x35fb13(0x1fb)]?null:this[_0x35fb13(0x258)][_0x35fb13(0x277)](u[_0x35fb13(0x2ac)](_0x47b281));}async[_0x2a17cf(0x3f1)](_0x280d2f,_0x225b25){const _0x517ae4=_0x2a17cf;return!!this['_localStorageService'][_0x517ae4(0x3cf)](_0x280d2f,_0x225b25);}[_0x2a17cf(0x275)](_0x32a4e5,_0x387b67,_0x1c8ea9,_0x389b00){const _0x6c2c8d=_0x2a17cf,_0x1e28ed=this[_0x6c2c8d(0x36f)][_0x6c2c8d(0x390)](_0x32a4e5);this[_0x6c2c8d(0x354)][_0x6c2c8d(0x228)](_0x32a4e5,{'unitID':_0x32a4e5,'type':_0x387b67,'awaitingChangeset':_0x1c8ea9,'mutations':_0x389b00,'rev':_0x1e28ed}),this[_0x6c2c8d(0x2dd)]['has'](_0x32a4e5)||this[_0x6c2c8d(0x299)](_0x32a4e5);}[_0x2a17cf(0x299)](_0x277ebc){const _0x445c23=_0x2a17cf,_0x4838d6=this[_0x445c23(0x296)]();_0x4838d6===0x0?this[_0x445c23(0x306)](_0x277ebc):this['_saveTaskMap'][_0x445c23(0x228)](_0x277ebc,setTimeout(()=>this[_0x445c23(0x306)](_0x277ebc),_0x4838d6));}[_0x2a17cf(0x296)](){const _0x4bbb1a=_0x2a17cf;var _0x2c2227;return(_0x2c2227=this['_configService']['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2c2227:u[_0x4bbb1a(0x3c6)];}[_0x2a17cf(0x306)](_0x2bfe6d){const _0x3a28c4=_0x2a17cf,_0x416214=this['_saveTaskMap']['get'](_0x2bfe6d);return _0x416214!==void 0x0&&window[_0x3a28c4(0x1aa)](_0x416214),this['_localStorageService']['setItem'](u[_0x3a28c4(0x2ac)](_0x2bfe6d),this[_0x3a28c4(0x354)]['get'](_0x2bfe6d))[_0x3a28c4(0x3f3)](()=>this[_0x3a28c4(0x2dd)][_0x3a28c4(0x184)](_0x2bfe6d));}async[_0x2a17cf(0x29b)](){const _0x539a26=_0x2a17cf,_0x34e6bf=[];this['_saveTaskMap']['forEach']((_0x3a0e62,_0x51e505)=>{const _0x2ac10e=_0x1209;window['clearTimeout'](_0x3a0e62),_0x34e6bf['push'](this[_0x2ac10e(0x306)](_0x51e505)[_0x2ac10e(0x3f3)](()=>{const _0x295371=_0x2ac10e;this[_0x295371(0x2dd)][_0x295371(0x184)](_0x51e505);}));}),await Promise[_0x539a26(0x242)](_0x34e6bf);}};ve=Kt([le(0x0,a[_0x2a17cf(0x340)]),le(0x1,a[_0x2a17cf(0x1dc)]),le(0x2,a[_0x2a17cf(0x22b)](m[_0x2a17cf(0x2d2)]))],ve);class xe extends a[_0x2a17cf(0x359)]{constructor(){const _0xc44f3a=_0x2a17cf;super(),h(this,'urlChange$'),this[_0xc44f3a(0x191)]=d[_0xc44f3a(0x3cc)](window,_0xc44f3a(0x1be))[_0xc44f3a(0x3a6)](d[_0xc44f3a(0x245)](this[_0xc44f3a(0x178)]),d[_0xc44f3a(0x223)](0x1),d[_0xc44f3a(0x3f2)](void 0x0));}[_0x2a17cf(0x1e5)](_0x5b18e,_0x18a7c0,_0x5d8419=!0x1){const _0x443c18=_0x2a17cf,_0x26a2c0=new URL(window['location'][_0x443c18(0x3c3)]);_0x26a2c0[_0x443c18(0x2fb)][_0x443c18(0x228)](_0x5b18e,_0x18a7c0),_0x5d8419?window[_0x443c18(0x375)][_0x443c18(0x26a)]('','',_0x26a2c0[_0x443c18(0x2c5)]()):window['history'][_0x443c18(0x34f)]('','',_0x26a2c0[_0x443c18(0x2c5)]());}[_0x2a17cf(0x28e)](_0xc3a64a,_0x432293=!0x1){const _0x20f2a4=_0x2a17cf,_0x27886e=new URL(window[_0x20f2a4(0x2aa)]['href']);_0x27886e[_0x20f2a4(0x2fb)][_0x20f2a4(0x184)](_0xc3a64a),_0x432293?window[_0x20f2a4(0x375)]['replaceState']('','',_0x27886e[_0x20f2a4(0x2c5)]()):window[_0x20f2a4(0x375)][_0x20f2a4(0x34f)]('','',_0x27886e[_0x20f2a4(0x2c5)]());}['getParam'](_0x1b3a56){const _0x4edba5=_0x2a17cf;var _0x255d0a;return(_0x255d0a=new URL(window['location']['href'])[_0x4edba5(0x2fb)][_0x4edba5(0x302)](_0x1b3a56))!=null?_0x255d0a:void 0x0;}}var qt=Object[_0x2a17cf(0x3a7)],zt=Object[_0x2a17cf(0x330)],Jt=(_0xe716a3,_0x35b263,_0x5018d2)=>_0x35b263 in _0xe716a3?qt(_0xe716a3,_0x35b263,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5018d2}):_0xe716a3[_0x35b263]=_0x5018d2,Zt=(_0x4654a3,_0x2419ca,_0x68ba48,_0x4e31f4)=>{const _0x2a9a2e=_0x2a17cf;for(var _0x50b015=_0x4e31f4>0x1?void 0x0:_0x4e31f4?zt(_0x2419ca,_0x68ba48):_0x2419ca,_0xfa4053=_0x4654a3[_0x2a9a2e(0x1fd)]-0x1,_0x581033;_0xfa4053>=0x0;_0xfa4053--)(_0x581033=_0x4654a3[_0xfa4053])&&(_0x50b015=_0x581033(_0x50b015)||_0x50b015);return _0x50b015;},_e=(_0x371ce1,_0x562475)=>(_0x5313cb,_0x45bebc)=>_0x562475(_0x5313cb,_0x45bebc,_0x371ce1),Qt=(_0x2501cd,_0x367aa6,_0x1e8525)=>Jt(_0x2501cd,_0x367aa6+'',_0x1e8525);const es=_0x2a17cf(0x239);exports[_0x2a17cf(0x2ef)]=class extends a[_0x2a17cf(0x1ff)]{constructor(_0x1ea33e=De,_0x20200c,_0x56d81a,_0x1fae31){const _0x26416d=_0x2a17cf;super(),this[_0x26416d(0x27b)]=_0x1ea33e,this['_renderManagerService']=_0x20200c,this[_0x26416d(0x28a)]=_0x56d81a,this[_0x26416d(0x369)]=_0x1fae31;const {..._0x4ef2c6}=a[_0x26416d(0x1a5)]({},De,this[_0x26416d(0x27b)]);this[_0x26416d(0x369)][_0x26416d(0x32b)](Bt,_0x4ef2c6);}[_0x2a17cf(0x3ce)](){const _0x44db9f=_0x2a17cf;this[_0x44db9f(0x315)](),this['_initDependencies']();}[_0x2a17cf(0x278)](){this['_registerRenderDependencies']();}[_0x2a17cf(0x315)](){const _0x32c801=_0x2a17cf;var _0x154494;const _0x354d33=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x32c801(0x19e)],{'useClass':K[_0x32c801(0x376)]}],[u[_0x32c801(0x2eb)],{'useClass':ve}],[exports[_0x32c801(0x177)]],[Q],[q],[x],[ue],[exports[_0x32c801(0x37c)]]];a['registerDependencies'](this['_injector'],a[_0x32c801(0x1d2)](_0x354d33,(_0x154494=this[_0x32c801(0x27b)])==null?void 0x0:_0x154494[_0x32c801(0x1ac)]));}[_0x2a17cf(0x1a3)](){const _0x2a8371=_0x2a17cf;this['disposeWithMe'](this[_0x2a8371(0x2c1)][_0x2a8371(0x2d5)](a[_0x2a8371(0x2ab)]['UNIVER_DOC'],[fe])),this[_0x2a8371(0x1f5)](this[_0x2a8371(0x2c1)][_0x2a8371(0x2d5)](a[_0x2a8371(0x2ab)]['UNIVER_SHEET'],[Ie]));}[_0x2a17cf(0x185)](){const _0x2ba74c=_0x2a17cf;a[_0x2ba74c(0x262)](this[_0x2ba74c(0x28a)],[[x],[exports[_0x2ba74c(0x177)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x2a17cf(0x2ef)],'pluginName',es),exports[_0x2a17cf(0x2ef)]=Zt([a[_0x2a17cf(0x21e)](u[_0x2a17cf(0x18b)]),_e(0x1,p['IRenderManagerService']),_e(0x2,a['Inject'](a[_0x2a17cf(0x231)])),_e(0x3,a['IConfigService'])],exports[_0x2a17cf(0x2ef)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x1d8b82,_0x49070e,_0x24ab25,_0x410760)=>{const _0x3b92c8=_0x2a17cf;for(var _0x4d9534=_0x410760>0x1?void 0x0:_0x410760?ts(_0x49070e,_0x24ab25):_0x49070e,_0x26b11f=_0x1d8b82[_0x3b92c8(0x1fd)]-0x1,_0x10b207;_0x26b11f>=0x0;_0x26b11f--)(_0x10b207=_0x1d8b82[_0x26b11f])&&(_0x4d9534=_0x10b207(_0x4d9534)||_0x4d9534);return _0x4d9534;},H=(_0x1d94c9,_0x5a01a6)=>(_0x3c5e42,_0x3c5d06)=>_0x5a01a6(_0x3c5e42,_0x3c5d06,_0x1d94c9);exports[_0x2a17cf(0x1de)]=class extends u[_0x2a17cf(0x3ab)]{constructor(_0xda54c6,_0x4cde9f,_0x2690f5,_0x246c4b,_0x1d565b){super(_0xda54c6,_0x4cde9f,_0x2690f5,_0x246c4b,_0x1d565b);}async[_0x2a17cf(0x22a)](_0x231687){const _0x3034b8=_0x2a17cf,_0x57e6a1=await this[_0x3034b8(0x19c)](),_0x267c72=this['_createSocketURL'](_0x231687,_0x57e6a1);return this[_0x3034b8(0x17f)](_0x267c72);}[_0x2a17cf(0x310)](_0x46c41a,_0x5a0bc3){const _0x226255=_0x2a17cf,_0x3dc8d9=typeof window>'u'?new URL(_0x46c41a):new URL(_0x46c41a,window[_0x226255(0x2aa)][_0x226255(0x371)]);_0x3dc8d9['searchParams'][_0x226255(0x228)]('sessionTicket',_0x5a0bc3);const _0x423bbf=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x226255(0x2aa)][_0x226255(0x1a4)]);return _0x423bbf[_0x226255(0x302)](_0x226255(0x1f4))&&_0x3dc8d9[_0x226255(0x2fb)]['set']('runId',_0x423bbf[_0x226255(0x302)](_0x226255(0x1f4))),_0x3dc8d9[_0x226255(0x2c5)]();}async[_0x2a17cf(0x19c)](){const _0x213363=_0x2a17cf;var _0x214ae1,_0x1b9b06,_0x4c1259;const _0x3dc4e9=this[_0x213363(0x369)][_0x213363(0x336)](u[_0x213363(0x37a)]),_0x406c4a=(_0x214ae1=_0x3dc4e9==null?void 0x0:_0x3dc4e9[_0x213363(0x23b)])!=null?_0x214ae1:u[_0x213363(0x1b1)];return(_0x4c1259=(_0x1b9b06=(await this[_0x213363(0x1bb)][_0x213363(0x302)](_0x406c4a,{'headers':{'Content-Type':_0x213363(0x2f7)}}))[_0x213363(0x26f)])==null?void 0x0:_0x1b9b06[_0x213363(0x27c)])!=null?_0x4c1259:'';}},exports[_0x2a17cf(0x1de)]=ss([H(0x0,a['Inject'](a['Injector'])),H(0x1,a[_0x2a17cf(0x22b)](K[_0x2a17cf(0x3ec)])),H(0x2,a[_0x2a17cf(0x340)]),H(0x3,a[_0x2a17cf(0x20d)]),H(0x4,m[_0x2a17cf(0x27a)])],exports[_0x2a17cf(0x1de)]);var Be=(_0x240f70=>(_0x240f70[_0x240f70[_0x2a17cf(0x34b)]=0x0]=_0x2a17cf(0x34b),_0x240f70[_0x240f70['OK']=0x1]='OK',_0x240f70[_0x240f70[_0x2a17cf(0x372)]=0x2]='INTERNAL_ERROR',_0x240f70[_0x240f70[_0x2a17cf(0x386)]=0x3]='PERMISSION_DENIED',_0x240f70[_0x240f70[_0x2a17cf(0x32e)]=0x4]=_0x2a17cf(0x32e),_0x240f70[_0x240f70['UNAUTHENTICATED']=0x5]=_0x2a17cf(0x297),_0x240f70[_0x240f70[_0x2a17cf(0x35e)]=0x6]=_0x2a17cf(0x35e),_0x240f70[_0x240f70['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x240f70[_0x240f70[_0x2a17cf(0x3b3)]=0x8]='TOO_MANY_REQUESTS',_0x240f70[_0x240f70[_0x2a17cf(0x209)]=0x9]=_0x2a17cf(0x209),_0x240f70[_0x240f70[_0x2a17cf(0x3ae)]=0xa]=_0x2a17cf(0x3ae),_0x240f70[_0x240f70[_0x2a17cf(0x21c)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x240f70[_0x240f70[_0x2a17cf(0x294)]=0xc]=_0x2a17cf(0x294),_0x240f70[_0x240f70[_0x2a17cf(0x1a9)]=0xd]=_0x2a17cf(0x1a9),_0x240f70[_0x240f70[_0x2a17cf(0x3e2)]=0xe]=_0x2a17cf(0x3e2),_0x240f70[_0x240f70[_0x2a17cf(0x1e8)]=0x1389]=_0x2a17cf(0x1e8),_0x240f70[_0x240f70[_0x2a17cf(0x2cd)]=0x1771]=_0x2a17cf(0x2cd),_0x240f70[_0x240f70[_0x2a17cf(0x1bc)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x240f70[_0x240f70['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x2a17cf(0x39d),_0x240f70[_0x240f70[_0x2a17cf(0x346)]=0x1b59]=_0x2a17cf(0x346),_0x240f70[_0x240f70[_0x2a17cf(0x2b3)]=0x1b5a]=_0x2a17cf(0x2b3),_0x240f70[_0x240f70[_0x2a17cf(0x37e)]=0x1b5b]=_0x2a17cf(0x37e),_0x240f70[_0x240f70[_0x2a17cf(0x2e6)]=0x1b5c]=_0x2a17cf(0x2e6),_0x240f70[_0x240f70[_0x2a17cf(0x20e)]=0x1b5d]=_0x2a17cf(0x20e),_0x240f70[_0x240f70[_0x2a17cf(0x38a)]=0x1f41]=_0x2a17cf(0x38a),_0x240f70[_0x240f70[_0x2a17cf(0x2f3)]=0x2329]=_0x2a17cf(0x2f3),_0x240f70[_0x240f70['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2a17cf(0x2be),_0x240f70[_0x240f70['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x240f70[_0x240f70['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x240f70[_0x240f70[_0x2a17cf(0x2e7)]=0x232d]=_0x2a17cf(0x2e7),_0x240f70[_0x240f70[_0x2a17cf(0x2ed)]=0x2711]=_0x2a17cf(0x2ed),_0x240f70[_0x240f70['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x240f70[_0x240f70['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2a17cf(0x38b),_0x240f70[_0x240f70[_0x2a17cf(0x393)]=0x2714]=_0x2a17cf(0x393),_0x240f70[_0x240f70['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x2a17cf(0x3d2),_0x240f70[_0x240f70[_0x2a17cf(0x266)]=0x271b]=_0x2a17cf(0x266),_0x240f70[_0x240f70[_0x2a17cf(0x35b)]=0x271c]=_0x2a17cf(0x35b),_0x240f70[_0x240f70[_0x2a17cf(0x31e)]=0x271d]=_0x2a17cf(0x31e),_0x240f70[_0x240f70[_0x2a17cf(0x3af)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x240f70[_0x240f70['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x240f70[_0x240f70['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2a17cf(0x2c8),_0x240f70[_0x240f70['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x2a17cf(0x252),_0x240f70[_0x240f70[_0x2a17cf(0x3c2)]=0x2ee1]=_0x2a17cf(0x3c2),_0x240f70[_0x240f70[_0x2a17cf(0x37b)]=0x2ee2]=_0x2a17cf(0x37b),_0x240f70[_0x240f70['INVITE_CODE_REQUIRED']=0x2ee3]=_0x2a17cf(0x3b2),_0x240f70[_0x240f70[_0x2a17cf(0x19d)]=0x2ee4]=_0x2a17cf(0x19d),_0x240f70[_0x240f70[_0x2a17cf(0x17a)]=0x2ee5]=_0x2a17cf(0x17a),_0x240f70[_0x240f70[_0x2a17cf(0x332)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x240f70[_0x240f70[_0x2a17cf(0x261)]=0x32ca]=_0x2a17cf(0x261),_0x240f70[_0x240f70[_0x2a17cf(0x379)]=0x32cb]=_0x2a17cf(0x379),_0x240f70[_0x240f70[_0x2a17cf(0x1e6)]=-0x1]=_0x2a17cf(0x1e6),_0x240f70))(Be||{}),is=Object[_0x2a17cf(0x330)],ns=(_0x272f65,_0x2d8820,_0xfe6f5f,_0x58f8e2)=>{const _0x471af1=_0x2a17cf;for(var _0x26f3db=_0x58f8e2>0x1?void 0x0:_0x58f8e2?is(_0x2d8820,_0xfe6f5f):_0x2d8820,_0x32b862=_0x272f65[_0x471af1(0x1fd)]-0x1,_0x1ef60b;_0x32b862>=0x0;_0x32b862--)(_0x1ef60b=_0x272f65[_0x32b862])&&(_0x26f3db=_0x1ef60b(_0x26f3db)||_0x26f3db);return _0x26f3db;},he=(_0x2105dc,_0x338053)=>(_0x10958a,_0x490348)=>_0x338053(_0x10958a,_0x490348,_0x2105dc);exports[_0x2a17cf(0x2b7)]=class extends a[_0x2a17cf(0x2b2)]{constructor(_0x363ce7,_0x4479ca,_0xa03036){const _0x3743df=_0x2a17cf;super(),this[_0x3743df(0x282)]=_0x363ce7,this['_httpService']=_0x4479ca,this['_configService']=_0xa03036;}async[_0x2a17cf(0x356)](_0x193b9b,_0x15b89c,_0x4a4b01,..._0x542009){const _0x517262=_0x2a17cf;var _0x4a4a4c,_0x510f17,_0x278cf9,_0xe027a7;const _0x466c2e=this[_0x517262(0x282)][_0x517262(0x3d6)]();if(!_0x466c2e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2820a6=((_0x4a4a4c=this[_0x517262(0x369)][_0x517262(0x336)](u[_0x517262(0x307)]))!=null?_0x4a4a4c:u[_0x517262(0x272)])+'/'+_0x193b9b+_0x517262(0x25d)+_0x15b89c,_0xd4d3f4=new URL(window[_0x517262(0x2aa)][_0x517262(0x3c3)]),_0x28a743={'scriptId':_0x193b9b,'runId':(_0x510f17=_0xd4d3f4[_0x517262(0x2fb)][_0x517262(0x302)]('runId'))!=null?_0x510f17:'','function':_0x15b89c,'unitId':_0x466c2e['getUnitId'](),'argsOfFunction':JSON[_0x517262(0x30e)](_0x542009),'invokeId':(_0x278cf9=_0x4a4b01[_0x517262(0x27f)])!=null?_0x278cf9:'','executionId':(_0xe027a7=_0x4a4b01[_0x517262(0x19a)])!=null?_0xe027a7:''};try{const _0x2dff36=await this[_0x517262(0x1bb)][_0x517262(0x28c)](_0x2820a6,{'body':_0x28a743});return _0x2dff36['body'][_0x517262(0x3dd)]&&_0x2dff36[_0x517262(0x26f)][_0x517262(0x3dd)]['code']!==Be['OK']?_0x517262(0x208):_0x2dff36[_0x517262(0x26f)][_0x517262(0x249)];}catch{return _0x517262(0x208);}}},exports['RemoteUniscriptService']=ns([he(0x0,a[_0x2a17cf(0x281)]),he(0x1,a[_0x2a17cf(0x22b)](K[_0x2a17cf(0x3ec)])),he(0x2,a['IConfigService'])],exports[_0x2a17cf(0x2b7)]);const Me=0x7530,Le=_0x2a17cf(0x256);class rs extends a[_0x2a17cf(0x2b2)]{constructor(){const _0x5d7ca9=_0x2a17cf;super(),h(this,_0x5d7ca9(0x25e),a[_0x5d7ca9(0x2af)]()),h(this,_0x5d7ca9(0x333),new Set()),h(this,_0x5d7ca9(0x2fe),new Map()),h(this,_0x5d7ca9(0x32f),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x5d7ca9(0x2d6),new Map()),this[_0x5d7ca9(0x259)]();}['dispose'](){const _0x565438=_0x2a17cf;super['dispose'](),this[_0x565438(0x3f9)]['forEach']((_0x24c63a,_0x13fd49)=>this[_0x565438(0x268)](_0x13fd49)),this[_0x565438(0x32f)]&&window[_0x565438(0x187)](this['_heartbeatTimer']);}[_0x2a17cf(0x3ad)](_0x4a40c9){const _0x2e7160=_0x2a17cf;return this[_0x2e7160(0x3be)](_0x4a40c9)[_0x2e7160(0x3a6)](d[_0x2e7160(0x1b2)]());}['editingUnit'](_0x3a3c85){const _0x341a38=_0x2a17cf;this['_selfUnitIDs'][_0x341a38(0x3c7)]===0x0&&this['_scheduleHeartbeat'](),this[_0x341a38(0x333)][_0x341a38(0x378)](_0x3a3c85),this[_0x341a38(0x311)]({'type':0x0,'memberID':this[_0x341a38(0x25e)],'unitIDs':[_0x3a3c85],'isForwarded':!0x1});}[_0x2a17cf(0x2cb)](_0x207af6){const _0x265b3c=_0x2a17cf;this[_0x265b3c(0x333)]['delete'](_0x207af6),this[_0x265b3c(0x333)][_0x265b3c(0x3c7)]===0x0&&this[_0x265b3c(0x32f)]&&window[_0x265b3c(0x187)](this[_0x265b3c(0x32f)]);}['_init'](){const _0x21578e=_0x2a17cf;this[_0x21578e(0x1f5)](a[_0x21578e(0x24c)](d[_0x21578e(0x3cc)](window,_0x21578e(0x2d0))[_0x21578e(0x3f7)](_0x419105=>{const _0x249220=_0x21578e;if(_0x419105[_0x249220(0x222)]!==Le||!_0x419105['newValue'])return;const _0x2ff673=JSON['parse'](_0x419105[_0x249220(0x35a)]);this[_0x249220(0x2a8)](_0x2ff673);}))),window[_0x21578e(0x39f)](_0x21578e(0x25c),()=>this['_send']({'type':0x1,'memberID':this[_0x21578e(0x25e)],'unitIDs':Array[_0x21578e(0x3f8)](this['_selfUnitIDs'])}));}[_0x2a17cf(0x2a8)](_0x41d66d){const _0x329261=_0x2a17cf;switch(_0x41d66d[_0x329261(0x232)]){case 0x0:this['_handleJoinEvent'](_0x41d66d);break;case 0x1:this['_handleLeaveEvent'](_0x41d66d);break;case 0x2:this[_0x329261(0x1d7)](_0x41d66d);break;}}[_0x2a17cf(0x2e5)](_0x57d607){const _0x444a7d=_0x2a17cf,{unitIDs:_0x53e4ff,memberID:_0x181a97,isForwarded:_0x40e4b9}=_0x57d607;_0x53e4ff[_0x444a7d(0x1ce)](_0x17f977=>{const _0x7d423c=_0x444a7d;if(!_0x40e4b9&&this['_unitOnClients'][_0x7d423c(0x3bd)](_0x17f977)&&this[_0x7d423c(0x3be)](_0x17f977)['next'](u[_0x7d423c(0x17c)]['OTHER_CLIENTS_EDITING']),!this[_0x7d423c(0x2fe)][_0x7d423c(0x3bd)](_0x17f977)||!this[_0x7d423c(0x2fe)][_0x7d423c(0x302)](_0x17f977)[_0x7d423c(0x3bd)](_0x181a97)){const _0x4ded9f=this['_unitOnClients']['get'](_0x17f977)||new Set();_0x4ded9f[_0x7d423c(0x378)](_0x181a97),this[_0x7d423c(0x2fe)][_0x7d423c(0x228)](_0x17f977,_0x4ded9f),this[_0x7d423c(0x3ac)](_0x181a97);}}),_0x40e4b9||this['_send']({'type':0x0,'memberID':this[_0x444a7d(0x25e)],'unitIDs':[...this[_0x444a7d(0x333)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x439ac8){const _0x5b4469=_0x2a17cf;this[_0x5b4469(0x268)](_0x439ac8);const _0x3bcee8=window[_0x5b4469(0x19b)](()=>{const _0x3041df=_0x5b4469;this[_0x3041df(0x2fe)][_0x3041df(0x1ce)](_0x317910=>{_0x317910['delete'](_0x439ac8);});},Me*0x2);this[_0x5b4469(0x3f9)]['set'](_0x439ac8,_0x3bcee8);}[_0x2a17cf(0x268)](_0xcb345a){const _0x4441cc=_0x2a17cf;if(this[_0x4441cc(0x3f9)][_0x4441cc(0x3bd)](_0xcb345a)){const _0x3ba278=this['_clearOtherTimers']['get'](_0xcb345a);_0x3ba278&&window['clearTimeout'](_0x3ba278),this[_0x4441cc(0x3f9)][_0x4441cc(0x228)](_0xcb345a,null);}}[_0x2a17cf(0x3bf)](_0x1457db){const _0xa7dc4f=_0x2a17cf,{memberID:_0x2f6598,unitIDs:_0x26698a}=_0x1457db;_0x26698a['forEach'](_0x34ff93=>{const _0x5cd99d=_0x1209;var _0x592cae;const _0x5c2fb8=this[_0x5cd99d(0x2fe)][_0x5cd99d(0x302)](_0x34ff93);_0x5c2fb8&&(_0x5c2fb8[_0x5cd99d(0x184)](_0x2f6598),(_0x592cae=this['_ensureSubject'](_0x34ff93))==null||_0x592cae['next'](_0x5c2fb8[_0x5cd99d(0x3c7)]===0x0?u[_0x5cd99d(0x17c)][_0x5cd99d(0x3e3)]:u[_0x5cd99d(0x17c)]['OTHER_CLIENTS_EDITING']));}),this[_0xa7dc4f(0x268)](_0x2f6598);}['_handleHeartbeatEvent'](_0x307850){const _0x1b432e=_0x2a17cf;this['_scheduleClearOtherTimer'](_0x307850[_0x1b432e(0x1eb)]);}['_send'](_0x5cc46){const _0x4347a1=_0x2a17cf;localStorage[_0x4347a1(0x3cf)](Le,JSON[_0x4347a1(0x30e)](_0x5cc46));}[_0x2a17cf(0x324)](){const _0x105888=_0x2a17cf;this[_0x105888(0x32f)]=window[_0x105888(0x271)](()=>{const _0x5359b0=_0x105888;this[_0x5359b0(0x311)]({'type':0x2,'memberID':this[_0x5359b0(0x25e)]});},Me);}['_ensureSubject'](_0x79f46a){const _0x2bef88=_0x2a17cf;return this[_0x2bef88(0x2d6)][_0x2bef88(0x3bd)](_0x79f46a)||this[_0x2bef88(0x2d6)][_0x2bef88(0x228)](_0x79f46a,new d[(_0x2bef88(0x2db))](u[_0x2bef88(0x17c)][_0x2bef88(0x3e3)])),this['_unitStatus'][_0x2bef88(0x302)](_0x79f46a);}}exports[_0x2a17cf(0x1fe)]=me,exports[_0x2a17cf(0x318)]=$e,exports[_0x2a17cf(0x276)]=rs,exports[_0x2a17cf(0x38f)]=xe;
1
+ 'use strict';function _0x3d45(_0x4a5148,_0x273aef){const _0x15ff94=_0x15ff();return _0x3d45=function(_0x3d455f,_0x384791){_0x3d455f=_0x3d455f-0x193;let _0x23b80a=_0x15ff94[_0x3d455f];return _0x23b80a;},_0x3d45(_0x4a5148,_0x273aef);}const _0x3570f5=_0x3d45;(function(_0x5c786b,_0x26d697){const _0x105bb8=_0x3d45,_0x2e0938=_0x5c786b();while(!![]){try{const _0x4f66bf=parseInt(_0x105bb8(0x3be))/0x1*(-parseInt(_0x105bb8(0x2dd))/0x2)+parseInt(_0x105bb8(0x339))/0x3*(parseInt(_0x105bb8(0x281))/0x4)+-parseInt(_0x105bb8(0x35a))/0x5+parseInt(_0x105bb8(0x3f6))/0x6+parseInt(_0x105bb8(0x378))/0x7+parseInt(_0x105bb8(0x392))/0x8+parseInt(_0x105bb8(0x2c2))/0x9*(-parseInt(_0x105bb8(0x1ce))/0xa);if(_0x4f66bf===_0x26d697)break;else _0x2e0938['push'](_0x2e0938['shift']());}catch(_0x299fb0){_0x2e0938['push'](_0x2e0938['shift']());}}}(_0x15ff,0xb6f4c));var We=Object[_0x3570f5(0x2bb)],Ve=(_0x50efbf,_0x1e1a0a,_0x2961f6)=>_0x1e1a0a in _0x50efbf?We(_0x50efbf,_0x1e1a0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2961f6}):_0x50efbf[_0x1e1a0a]=_0x2961f6,h=(_0x5df8d5,_0x1b5ac7,_0x302943)=>Ve(_0x5df8d5,typeof _0x1b5ac7!=_0x3570f5(0x28a)?_0x1b5ac7+'':_0x1b5ac7,_0x302943);Object['defineProperty'](exports,Symbol[_0x3570f5(0x21f)],{'value':_0x3570f5(0x1a9)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){return b=Object['assign']||function(_0x45e25d){const _0x1d7213=_0x3d45;for(var _0x5d9347,_0x36c025=0x1,_0x2df5e8=arguments[_0x1d7213(0x367)];_0x36c025<_0x2df5e8;_0x36c025++){_0x5d9347=arguments[_0x36c025];for(var _0x3b5875 in _0x5d9347)Object[_0x1d7213(0x19f)][_0x1d7213(0x249)]['call'](_0x5d9347,_0x3b5875)&&(_0x45e25d[_0x3b5875]=_0x5d9347[_0x3b5875]);}return _0x45e25d;},b['apply'](this,arguments);},Ke=function(_0x3e3d8e,_0x271c5b){const _0x56a982=_0x3570f5;var _0x5f3cfd={};for(var _0x5cab97 in _0x3e3d8e)Object['prototype'][_0x56a982(0x249)]['call'](_0x3e3d8e,_0x5cab97)&&_0x271c5b['indexOf'](_0x5cab97)<0x0&&(_0x5f3cfd[_0x5cab97]=_0x3e3d8e[_0x5cab97]);if(_0x3e3d8e!=null&&typeof Object[_0x56a982(0x1a1)]==_0x56a982(0x2d8)){for(var _0x166640=0x0,_0x5cab97=Object[_0x56a982(0x1a1)](_0x3e3d8e);_0x166640<_0x5cab97[_0x56a982(0x367)];_0x166640++)_0x271c5b['indexOf'](_0x5cab97[_0x166640])<0x0&&Object[_0x56a982(0x19f)][_0x56a982(0x3a4)][_0x56a982(0x342)](_0x3e3d8e,_0x5cab97[_0x166640])&&(_0x5f3cfd[_0x5cab97[_0x166640]]=_0x3e3d8e[_0x5cab97[_0x166640]]);}return _0x5f3cfd;},ge=M[_0x3570f5(0x292)](function(_0x54e7c7,_0x5dfcac){const _0x19ab5c=_0x3570f5;var _0x24947e=_0x54e7c7[_0x19ab5c(0x303)],_0x414192=_0x54e7c7['id'],_0x27abf1=_0x54e7c7[_0x19ab5c(0x354)],_0x34cdf7=_0x54e7c7[_0x19ab5c(0x1ef)],_0x41ddc8=Ke(_0x54e7c7,[_0x19ab5c(0x303),'id',_0x19ab5c(0x354),'extend']),_0x551c3d=_0x19ab5c(0x336)['concat'](_0x414192,'\x20')['concat'](_0x27abf1||'')[_0x19ab5c(0x1d2)](),_0x10c854=M['useRef']('_'[_0x19ab5c(0x2ca)](Je()));return Pe(_0x24947e,''[_0x19ab5c(0x2ca)](_0x414192),{'defIds':_0x24947e[_0x19ab5c(0x240)],'idSuffix':_0x10c854[_0x19ab5c(0x2fc)]},b({'ref':_0x5dfcac,'className':_0x551c3d},_0x41ddc8),_0x34cdf7);});function Pe(_0x470b64,_0x20f3f7,_0x57eb64,_0x19575d,_0x238668){const _0x3cbc9e=_0x3570f5;return M['createElement'](_0x470b64[_0x3cbc9e(0x27a)],b(b({'key':_0x20f3f7},qe(_0x470b64,_0x57eb64,_0x238668)),_0x19575d),(ze(_0x470b64,_0x57eb64)['children']||[])['map'](function(_0x5d4fd3,_0x41b8e9){const _0x4da7c6=_0x3cbc9e;return Pe(_0x5d4fd3,''[_0x4da7c6(0x2ca)](_0x20f3f7,'-')['concat'](_0x470b64[_0x4da7c6(0x27a)],'-')[_0x4da7c6(0x2ca)](_0x41b8e9),_0x57eb64,void 0x0,_0x238668);}));}function qe(_0x5c5862,_0x1e5835,_0x1d79ba){const _0x3cd4dc=_0x3570f5;var _0x2253ff=b({},_0x5c5862[_0x3cd4dc(0x2af)]);_0x1d79ba!=null&&_0x1d79ba[_0x3cd4dc(0x3a5)]&&_0x2253ff['fill']===_0x3cd4dc(0x3a5)&&(_0x2253ff[_0x3cd4dc(0x256)]=_0x1d79ba[_0x3cd4dc(0x3a5)]),_0x5c5862[_0x3cd4dc(0x27a)]===_0x3cd4dc(0x1f3)&&_0x2253ff['id']&&(_0x2253ff['id']=_0x2253ff['id']+_0x1e5835[_0x3cd4dc(0x29b)]),Object[_0x3cd4dc(0x2fd)](_0x2253ff)['forEach'](function(_0x37f5a4){const _0x347ce4=_0x3cd4dc;var _0x565bf9=_0x37f5a4[0x0],_0x3f3764=_0x37f5a4[0x1];_0x565bf9===_0x347ce4(0x1f3)&&typeof _0x3f3764==_0x347ce4(0x39e)&&(_0x2253ff[_0x565bf9]=_0x3f3764[_0x347ce4(0x3b5)](/url\(#(.*)\)/,'url(#$1'[_0x347ce4(0x2ca)](_0x1e5835[_0x347ce4(0x29b)],')')));});var _0x3b8768=_0x1e5835[_0x3cd4dc(0x240)];return!_0x3b8768||_0x3b8768['length']===0x0||(_0x5c5862[_0x3cd4dc(0x27a)]===_0x3cd4dc(0x1b4)&&_0x2253ff[_0x3cd4dc(0x1b2)]&&(_0x2253ff['xlink:href']=_0x2253ff[_0x3cd4dc(0x1b2)]+_0x1e5835[_0x3cd4dc(0x29b)]),Object[_0x3cd4dc(0x2fd)](_0x2253ff)[_0x3cd4dc(0x2b3)](function(_0x1215d){const _0x55c089=_0x3cd4dc;var _0x2a6c14=_0x1215d[0x0],_0x290a6f=_0x1215d[0x1];typeof _0x290a6f=='string'&&(_0x2253ff[_0x2a6c14]=_0x290a6f[_0x55c089(0x3b5)](/url\(#(.*)\)/,_0x55c089(0x250)[_0x55c089(0x2ca)](_0x1e5835[_0x55c089(0x29b)],')')));})),_0x2253ff;}function ze(_0x5b6058,_0x370f86){const _0x471705=_0x3570f5;var _0x5de049,_0x4a2241=_0x370f86[_0x471705(0x240)];return!_0x4a2241||_0x4a2241[_0x471705(0x367)]===0x0?_0x5b6058:_0x5b6058[_0x471705(0x27a)]===_0x471705(0x3da)&&(!((_0x5de049=_0x5b6058[_0x471705(0x1b1)])===null||_0x5de049===void 0x0)&&_0x5de049[_0x471705(0x367)])?b(b({},_0x5b6058),{'children':_0x5b6058[_0x471705(0x1b1)][_0x471705(0x28e)](function(_0x365f0a){const _0x4c40ff=_0x471705;return typeof _0x365f0a[_0x4c40ff(0x2af)]['id']==_0x4c40ff(0x39e)&&_0x4a2241&&_0x4a2241[_0x4c40ff(0x2bd)](_0x365f0a['attrs']['id'])?b(b({},_0x365f0a),{'attrs':b(b({},_0x365f0a[_0x4c40ff(0x2af)]),{'id':_0x365f0a[_0x4c40ff(0x2af)]['id']+_0x370f86[_0x4c40ff(0x29b)]})}):_0x365f0a;})}):_0x5b6058;}function Je(){const _0x5156c3=_0x3570f5;return Math[_0x5156c3(0x406)]()[_0x5156c3(0x3c3)](0x24)[_0x5156c3(0x389)](0x2,0x8);}ge['displayName']='UniverIcon';var Ze={'tag':_0x3570f5(0x2ef),'attrs':{'xmlns':_0x3570f5(0x2c0),'fill':'none','viewBox':_0x3570f5(0x19d),'width':_0x3570f5(0x1e5),'height':_0x3570f5(0x1e5)},'children':[{'tag':'g','attrs':{'clipPath':_0x3570f5(0x302)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'stroke':_0x3570f5(0x3b0),'d':_0x3570f5(0x298),'strokeLinecap':'round','strokeLinejoin':_0x3570f5(0x1bd),'strokeWidth':1.2}}]},{'tag':_0x3570f5(0x3da),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3570f5(0x416)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'fill':_0x3570f5(0x1c6),'d':_0x3570f5(0x1de)}}]}]}],'defIds':[_0x3570f5(0x416)]},we=M['forwardRef'](function(_0xe727f7,_0x3b45d8){const _0xd4dced=_0x3570f5;return M[_0xd4dced(0x371)](ge,Object[_0xd4dced(0x21a)]({},_0xe727f7,{'id':'off-line-icon','ref':_0x3b45d8,'icon':Ze}));});we['displayName']=_0x3570f5(0x259);var Qe={'tag':'svg','attrs':{'xmlns':_0x3570f5(0x2c0),'fill':_0x3570f5(0x351),'viewBox':'0\x200\x2017\x2016','width':_0x3570f5(0x1e5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3570f5(0x1fa)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3570f5(0x1bd),'strokeLinejoin':_0x3570f5(0x1bd),'strokeWidth':1.2}}]},{'tag':_0x3570f5(0x3da),'attrs':{},'children':[{'tag':_0x3570f5(0x1fd),'attrs':{'id':_0x3570f5(0x35f)},'children':[{'tag':_0x3570f5(0x2ea),'attrs':{'fill':'white','d':_0x3570f5(0x1de),'transform':_0x3570f5(0x1dd)}}]}]}],'defIds':[_0x3570f5(0x35f)]},Ae=M['forwardRef'](function(_0x202c67,_0x3dac92){const _0x2413a2=_0x3570f5;return M[_0x2413a2(0x371)](ge,Object['assign']({},_0x202c67,{'id':'on-line-icon','ref':_0x3dac92,'icon':Qe}));});Ae[_0x3570f5(0x3dd)]=_0x3570f5(0x369);function et(_0x590a39){const _0x2cc803=_0x3570f5;switch(_0x590a39){case u[_0x2cc803(0x290)]['OFFLINE']:return'collabStatus.offline';case u[_0x2cc803(0x290)][_0x2cc803(0x418)]:return _0x2cc803(0x417);case u[_0x2cc803(0x290)]['FETCH_MISS']:return _0x2cc803(0x2db);case u[_0x2cc803(0x290)][_0x2cc803(0x1bc)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x2cc803(0x1f2)]:case u['CollaborationStatus'][_0x2cc803(0x251)]:return _0x2cc803(0x3f3);case u['CollaborationStatus'][_0x2cc803(0x1a7)]:case u[_0x2cc803(0x290)]['PENDING']:return _0x2cc803(0x2a4);}}function _0x15ff(){const _0xc43db9=['measureText','IDocClipboardService','attrs','_onCursorDelete','pipe','fillText','forEach','_toggleOnline','_transformUndoRedoStack','SheetsSelectionsService','_logService','jsx','mergeOverrideWithDependencies','clearInterval','defineProperty','ILogService','includes','purple.300','getMember','http://www.w3.org/2000/svg','_assignedColors','45sAMGXX','blue.400','loadOfflineData','_setupBeforeClosingHandler','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_registerDependencies','WebSocketService','startRow','concat','CollaborationUIEventId','_createSocketURL','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_unitOnClients','endColumn','href','RegularPolygon','handleInsertCol','_entities','CollaborationSessionService','_handleHover','arc','_notificationService','function','CommandType','disableLocalCache','collabStatus.fetchMiss','debounceTime','4YzoeJk','IUIPartsService','permission.content','LICENSE_EXPORT_SIZE_EXCEEDED','roomMembers','YUUMI_CONNECTOR_URL_NOT_FOUND','TEXT','name','APPLY_REVISION_CONFILICT','deserializeRangeWithSheet','_cursors','getUnitId','getDocRanges','path','ISocketService','univer-flex\x20univer-items-center','transformRemoteChangeset','then','svg','runId','_color','skeleton','getParam','_scene','Injector','entityInit$','getRangePointData','_online','CollaborationEvent','RichTextEditingMutation','_configService','current','entries','labelPosition','_draw','OTHER_CLIENTS_EDITING','eventID','url(#off-line-icon_clip0_910_343)','icon','LOCAL_CACHE_INTERVAL','height','toRgbString','setAlpha','ColorKit','_transformHistoryAndStateStack','find','getColor','_localStorageService','_commandService','InsertRangeMoveRightCommandId','IURLService','Plugin','registerBeforeClose','selections','sessionStatus$','_syncEditingCollabCursorService','debounce','delete','unsubscribe','jsxs','_renderManagerService','SetSelectionsOperation','DisposableCollection','_colorAssignService','params','getStateCache','transformByState','SessionStatus','CLOSE_ROOM','_initResize','WebURLService','_scheduleHeartbeat','useDependency','ITransformService','LICENSE_IMPORT_SIZE_EXCEEDED','_onCursorUpdate','black','session.connection-failed','DataLoaderService','SOCKET_FAILED_RETRY','_config','_localeService','_session','search','generateRandomId','_registerRenderDependencies','setActiveRange','setParam','_revisionService','univerjs-icon\x20univerjs-icon-','handleMoveRange','onPointerLeave$','849MeIMJW','get','_labelPosition','width','_getSaveTimeout','transform','data','range','INVALID_ARGUMENT','call','EMAIL_HAS_BEEN_BOUND','Failed','Shape','switchMap','LocaleService','searchParams','key','_docTransformSelectionsService','some','RemoteUniscriptService','disposeWithMe','registerRefRange','ISnapshotServerService','_cursorShapes','none','cursorInfo','InsertColCommandId','className','flatMap','_disabled','getUniverSheetInstance','sessionTicket','_univerInstanceService','1980055oPJPWa','BehaviorSubject','unshift','throttleTime','getCoordByCell','on-line-icon_clip0_910_349','getTypeOfUnitDisposed$','getConfig','_handleHeartbeatEvent','MoveRangeCommandId','sheetID','getMergeData','_hovered','length','IRemoteInstanceService','OnLineIcon','_cursor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','TOO_MANY_REQUESTS','getColorFromTheme','DOC_RANGE_TYPE','collab-text-anchor-','OFFLINE','createElement','rgba(255,\x20255,\x20255,\x200.01)','ENSURE_SNAPSHOT_EXECUTION','_range','DocSkeletonManagerService','_injector','getTypeOfUnitAdded$','6860182ZpugCH','_drawAnchor','_drawRectRange','onRendered','getAncestorScale','deepClone','registerDependencies','HTTPService','merge','status$','restore','_updateSubUnitFromURLParams','event$','UNDEFINED','IUniverInstanceService','_updateCollabCursors','beginPath','substring','_uiPartsService','drawWith','_anchor','isEditing','ticket','CHANGESET_REVISION_CONFILICT','pushState','executeCommand','1640168lKZEpu','executionId','CollaborationDataLoaderController','hovered','yellow.400','UniverCollaborationClientUIPlugin','color','_setupSubUnitSync','SheetSkeletonManagerService','serializeRangeWithSheet','_refRangeService','APPLY_NON_SEQUENTIAL_REVISION','string','lineTo','handleIRemoveRow','_cachedData','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_TABLE_NOT_FOUND_IN_UNIT','propertyIsEnumerable','colorChannel1','LOCAL_CACHE_INTERVAL_KEY','_roomMembers$','_saveCache','_colorIndex','handleDeleteRangeMoveLeft','_beforeCloseService','MessageType','getSkeleton','_document','handleInsertRangeMoveRight','currentColor','EMAIL_VERIFY_CODE_MISMATCH','body','uni.network.url-service','UNAUTHENTICATED','replace','IMessageService','getVpScrollXYInfoByPosToVp','getUnitStatus$','connectInjector','fillStyle','_initEntityListener','BrowserCollaborationSocketService','init','214759GVsKcA','PY_RUNTIME_SCRIPT_ERROR','urlChange$','_anchorDot','_initCommandExecutedListener','toString','INVITE_CODE_ALREADY_BOUND','JOIN_ROOM_FAILED','setShapeProps','show','Rect','_handleEvent','DeleteRangeMoveUpCommandId','startColumn','getActiveRange','Disposable','add','getRelativeToViewportCoord','_eventUnsubscribe','[CollaborationDataLoaderController]','Workbook','collab-client.tooltip.reconnect','YUUMI_SUBSCRIPTION_NOT_FOUND','getViewport','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_instanceService','_docTransformIMECacheService','application/json','defs','COLORS','DocCollaborationEntity','displayName','_sheetSkeletonManagerService','INVITE_CODE_REQUIRED','CollaborationUIEventService','getItem','NOT_FOUND','#FFF','subscribe','MemberService','YUUMI_URL_COL_OUT_OF_RANGE','saveOfflineData','addObject','_cursorInfo$','updateOfflineData','_docSyncEditingCollabCursorService','SNAPSHOT_INVALID_SNAPSHOT','getFocusedUnit','m1Prime','backgroundColor','getLocalCacheKey','_removeCollabCursors','_render','collabStatus.syncing','LOGIN_FAILED','_updateLocalCursor','2494584JqTVbA','getCollabEntity$','collaboration.single-unit.warning','top','setUndoRedoMutationParamsCache','SUBMIT_CHANGESET_TIMEOUT','PERMISSION_DENIED','isActive','setInterval','createInstance','runRefRangeMutations','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','_init','saveTaskMap','MOBILE_HAS_BEEN_BOUND','random','getCollabCursors$','_hover','_handleLeaveEvent','UniverInstanceType','code','column','evenodd','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_collabCursorController','unitId','_startDocCollabCursor','_onRefRangeChange','wsSessionTicketUrl','RevisionService','_initDependencies','off-line-icon_clip0_910_343','collabStatus.conflict','CONFLICT','currentTheme$','getSheetId','set','sheetId','isTransformMutationsWithChangesetSuccess','_themeService','_shapes','_ensureSubject','textRanges','Tools','transformSelections','_httpService','session.collaboration-timeout','cursorInfo$','LICENSE_MAX_UNITS_EXCEEDED','0\x200\x2016\x2016','_handleJoinEvent','prototype','CONNECTOR_DATA_TOO_LARGE','getOwnPropertySymbols','IBeforeCloseService','redoState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','touchDependencies','session.will-retry','SYNCED','DocSelectionManagerService','Module','transformMutationsWithChangeset','collaboration-client.offline-data-not-saved','ThemeService','_collaborationUIEventService','IConfigService','LICENSE_DISTRO_REJECTED','getMemberID','children','xlink:href','_messageService','use','unload','_docSkeletonManagerService','onTransformChange$','doc.mutation.rich-text-editing','Inject','fromEvent','subscribeEvent','NOT_COLLAB','round','VIEW_MAIN','engine','YUUMI_ALL_TABLES_IS_INVALID','_doCreateSocket','getValue','ALREADY_EXISTS','getCurrentUnitForType','_scheduleClearOtherTimer','white','getOffsetConfig','_entityInit$','UniverCollaborationClientPlugin','ONLINE','location','dispose','USER_NOT_INVITED_CODE','1012290GYsnQZ','contains','roomMembers$','InsertRowCommandId','trim','registerComponent','setItem','DesktopCollaborationStatusDisplayController','NodePositionConvertToCursor','transformStateCache','getCurrent','handleDeleteRangeMoveUp','getRenderById','TEXT_RANGE_LAYER_INDEX','DEFAULT_WS_SESSION_TICKET_URL','translate(.97)','M0\x200H16V16H0z','_initEvent','APPLY_DUPLICATED','row','_saveTaskMap','RefRangeService','moveTo','1em','m2Prime','setConfig','subunit','result','min','_collaborationController','getSheetBySheetId','RemoveRowCommandId','has','extend','ILocalCacheService','currentSkeleton$','AWAITING','mask','history','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','EffectRefRangId','NodePositionConvertToRectRange','MOBILE_VERIFY_CODE_MISMATCH','requireSession','url(#on-line-icon_clip0_910_349)','UNIVER_SHEET','getActiveSheet','clipPath','addEventListener','INVITE_CODE_HAS_BEEN_UES','SHEET_VIEWPORT_KEY','getCurrentSelections','USERS_LEAVE','_heartbeatTimer','Warning','_docClipboardService','createSocket','NO_OTHER_CLIENTS_EDITING','editingUnit','YUUMI_RATE_OVER_LIMIT','findNodePositionByCharIndex','_memberService','_getScale','asObservable','IRenderManagerService','InsertRangeMoveDownCommandId','RxDisposable','isTransformMutationFailure','useCallback','memberID','handleInsertRangeMoveDown','_localCacheService','getOwnPropertyDescriptor','save','useObservable','triggerDblclick','assign','RemoveColCommandId','with','_id','takeUntil','toStringTag','permission.title','INTERNAL_ERROR','text','red.300','Rectangle','mutations','DocStateChangeManagerService','UNRECOGNIZED','fromEventSubject','split','size','isArray','values','_clearOtherTimers','_initStatusComponent','_drawTextRange','YUUMI_UNABLE_LOAD_URL','addObjects','registerRenderModule','getSheetObject','SNAPSHOT_HAS_BEEN_REMOVED','loadUnit','storage','font','ranges','_collabSessionService','onPointerEnter$','clearTimeout','setStateCache','removeParam','activeSheet$','onCommandExecuted','defIds','_urlService','UPDATE_CURSOR','_lastPointer','selection','CollaborationSocketService','exhaustSavingTask','onPointerMove$','replaceDocRanges','hasOwnProperty','send','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Unknown\x20user','Subject','newValue','UNIVER_DOC','url(#$1','AWAITING_WITH_PENDING','collab-text-range-','mapTo','CollaborationController','YUUMI_ASYNCIO_CANCELLED','fill','undoState','shareReplay','OffLineIcon','handleIRemoveCol','ICommandService','_hideTimer','APPLY_REJECT','_refreshCollabCursors','_getSheetObject','unitID','_getAnchorBounding','_initStatusListener','transformMutation','_docTransformStateCacheService','hide','...','YUUMI_NO_CUBOID_FOR_QUESTION','UnitStatus','onMouseMove','_updateURLWithCurrentState','handleInsertRow','error','source','getUndoRedoMutationParamsCache','Vector2','_name','_unitStatus','push','collaboration-client-ui.config','_send','disposeUnit','transformIMECache','_toggleOffline','reconnect','closePath','tag','collaboration.closeRoom','div','ILocalStorageService','addHandlerCallback','createIdentifier','Error','6788dTSKYb','next','_textBubble','debug','_dataLoaderService','_backgroundColor','bottom','_status$','replaceState','symbol','setTimeout','_transformService','_removeClearOtherTimer','map','focused$','CollaborationStatus','_startSheetCollabCursor','forwardRef','dispose$','_selfUnitIDs','_transformPreviousActiveRange','docStateChange$','type','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','DocIMEInputManagerService','complete','idSuffix','collab-rect-range-','APPLY_PERMISSION_DENIED','stringify','_collabCursorState$','INotificationService','makeDirty','_context','toDisposable','collabStatus.synced','assignAColorForMemberID','actions','_scheduleSaving','collabCursorState$','from','syncEditingCollabCursor','COMPLETION_FINISHED','fillRule'];_0x15ff=function(){return _0xc43db9;};return _0x15ff();}function tt(_0x4d390b){const _0x454b2c=_0x3570f5,{status$:_0x14e489}=_0x4d390b,_0x4a009e=O[_0x454b2c(0x218)](_0x14e489,u['CollaborationStatus'][_0x454b2c(0x1bc)]),_0x3dbc44=O[_0x454b2c(0x325)](a[_0x454b2c(0x347)]),_0x33608d=O[_0x454b2c(0x325)](u['CollaborationSessionService']),_0x129d85=_0x4a009e!==u[_0x454b2c(0x290)][_0x454b2c(0x370)],_0x166406=_0x3dbc44['t'](et(_0x4a009e)),_0x41e685=_0x129d85?P[_0x454b2c(0x2b8)](Ae,{}):P[_0x454b2c(0x2b8)](we,{}),_0x26f25d=M[_0x454b2c(0x212)](()=>{const _0x3df01b=_0x454b2c;_0x129d85||_0x33608d[_0x3df01b(0x278)]();},[_0x129d85,_0x33608d]);function _0x2097de(){const _0x5b3043=_0x454b2c;return P[_0x5b3043(0x318)](_0x5b3043(0x27c),{'className':_0x5b3043(0x2ec),'onClick':_0x26f25d,'children':[P[_0x5b3043(0x2b8)](_0x5b3043(0x27c),{'className':D['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x129d85,'univer-text-red-500':!_0x129d85}),'children':_0x41e685}),P['jsx'](_0x5b3043(0x27c),{'className':_0x5b3043(0x3a2),'children':_0x166406})]});}return _0x129d85?_0x2097de():P[_0x454b2c(0x2b8)](D['Tooltip'],{'title':_0x3dbc44['t'](_0x454b2c(0x3d3)),'children':_0x2097de()});}var st=Object[_0x3570f5(0x216)],it=(_0x2a6b8a,_0x266997,_0x43e929,_0x1d29a0)=>{for(var _0x56bb87=_0x1d29a0>0x1?void 0x0:_0x1d29a0?st(_0x266997,_0x43e929):_0x266997,_0xd92142=_0x2a6b8a['length']-0x1,_0x240ace;_0xd92142>=0x0;_0xd92142--)(_0x240ace=_0x2a6b8a[_0xd92142])&&(_0x56bb87=_0x240ace(_0x56bb87)||_0x56bb87);return _0x56bb87;},V=(_0x3d69dc,_0x4bb75e)=>(_0x923ebe,_0x4f6a72)=>_0x4bb75e(_0x923ebe,_0x4f6a72,_0x3d69dc);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3570f5(0x3cd)]{constructor(_0x10d1bd,_0x14a214,_0x101ce0,_0x1bc10e){const _0x4190e0=_0x3570f5;super(),h(this,_0x4190e0(0x288),new d[(_0x4190e0(0x35b))](u[_0x4190e0(0x290)][_0x4190e0(0x1bc)])),(this[_0x4190e0(0x359)]=_0x10d1bd,this[_0x4190e0(0x376)]=_0x14a214,this['_collaborationController']=_0x101ce0,this[_0x4190e0(0x38a)]=_0x1bc10e,this[_0x4190e0(0x22e)](),this[_0x4190e0(0x262)]());}[_0x3570f5(0x262)](){const _0x3d9b13=_0x3570f5;this[_0x3d9b13(0x34d)](this['_univerInstanceService'][_0x3d9b13(0x28f)][_0x3d9b13(0x2b1)](d['switchMap'](()=>{const _0x3cd8d7=_0x3d9b13,_0x5c0faa=this[_0x3cd8d7(0x359)][_0x3cd8d7(0x3ed)]();return _0x5c0faa?this[_0x3cd8d7(0x1eb)][_0x3cd8d7(0x3f7)](_0x5c0faa[_0x3cd8d7(0x2e8)]()):d['of'](null);}),d[_0x3d9b13(0x346)](_0x50a954=>_0x50a954?_0x50a954[_0x3d9b13(0x381)]:d['of'](u[_0x3d9b13(0x290)][_0x3d9b13(0x1bc)])))['subscribe'](_0xe43647=>{const _0x5335cc=_0x3d9b13;this[_0x5335cc(0x288)][_0x5335cc(0x282)](_0xe43647);}));}[_0x3570f5(0x22e)](){const _0x4436d6=_0x3570f5;this[_0x4436d6(0x34d)](this[_0x4436d6(0x38a)][_0x4436d6(0x1d3)](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x4436d6(0x3b9)](nt({'status$':this['_status$'][_0x4436d6(0x20d)]()}),this[_0x4436d6(0x376)])));}},exports[_0x3570f5(0x1d5)]=it([V(0x0,a[_0x3570f5(0x386)]),V(0x1,a[_0x3570f5(0x1b9)](a['Injector'])),V(0x2,a['Inject'](u[_0x3570f5(0x254)])),V(0x3,O[_0x3570f5(0x2de)])],exports[_0x3570f5(0x1d5)]);function nt(_0x2cf911){const {status$:_0x456c2e}=_0x2cf911;return function(){const _0x2c7c81=_0x3d45;return P[_0x2c7c81(0x2b8)](tt,{'status$':_0x456c2e});};}const me=a[_0x3570f5(0x27f)](_0x3570f5(0x3b3));var rt=Object[_0x3570f5(0x216)],ot=(_0x3d8d7a,_0x7ee834,_0x46799f,_0x3e1fdd)=>{for(var _0x2e4075=_0x3e1fdd>0x1?void 0x0:_0x3e1fdd?rt(_0x7ee834,_0x46799f):_0x7ee834,_0x310848=_0x3d8d7a['length']-0x1,_0x19c388;_0x310848>=0x0;_0x310848--)(_0x19c388=_0x3d8d7a[_0x310848])&&(_0x2e4075=_0x19c388(_0x2e4075)||_0x2e4075);return _0x2e4075;},k=(_0x2eee0e,_0x25f01d)=>(_0x26c4c7,_0x5208ef)=>_0x25f01d(_0x26c4c7,_0x5208ef,_0x2eee0e);exports[_0x3570f5(0x394)]=class extends a[_0x3570f5(0x210)]{constructor(_0xf3815f,_0x8ad884,_0x3264b7,_0xeaec21,_0x3252f3){const _0x41247f=_0x3570f5;super(),this[_0x41247f(0x241)]=_0xf3815f,this[_0x41247f(0x2b7)]=_0x8ad884,this[_0x41247f(0x30d)]=_0x3264b7,this[_0x41247f(0x285)]=_0xeaec21,_0x3252f3?_0x3252f3==null||_0x3252f3['whenReady']()[_0x41247f(0x2ee)](()=>this['_init']()):(this[_0x41247f(0x2b7)][_0x41247f(0x284)]('[CollaborationDataLoaderController]',_0x41247f(0x40e)),this[_0x41247f(0x403)]());}async[_0x3570f5(0x403)](){const _0x136b35=_0x3570f5,_0x5b354a=this[_0x136b35(0x241)][_0x136b35(0x2f3)]('unit'),_0x26f0b3=this[_0x136b35(0x241)][_0x136b35(0x2f3)](_0x136b35(0x297)),_0x21d6d5=this['_urlService'][_0x136b35(0x2f3)]('subunit');if(!_0x5b354a||!_0x26f0b3){this[_0x136b35(0x2b7)][_0x136b35(0x284)](_0x136b35(0x3d1),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2772b7=await this['_dataLoaderService'][_0x136b35(0x235)](_0x5b354a,Number(_0x26f0b3),_0x21d6d5);_0x2772b7&&_0x2772b7 instanceof a[_0x136b35(0x3d2)]&&this[_0x136b35(0x399)](_0x2772b7);}async[_0x3570f5(0x399)](_0x3e2170){const _0x3ec57a=_0x3570f5;await this['_updateSubUnitFromURLParams'](_0x3e2170),_0x3e2170[_0x3ec57a(0x23e)][_0x3ec57a(0x2b1)](d['takeUntil'](this['dispose$']))[_0x3ec57a(0x3e4)](_0x232b8b=>{const _0x5eb67c=_0x3ec57a;_0x232b8b&&this[_0x5eb67c(0x26a)](_0x232b8b);}),this['_urlService'][_0x3ec57a(0x3c0)][_0x3ec57a(0x2b1)](d[_0x3ec57a(0x21e)](this[_0x3ec57a(0x293)]))[_0x3ec57a(0x3e4)](()=>this['_updateSubUnitFromURLParams'](_0x3e2170));}['_updateURLWithCurrentState'](_0x3b931d,_0x538eb8=!0x1){const _0x4eaa5c=_0x3570f5,_0x2e1809=this[_0x4eaa5c(0x241)]['getParam'](_0x4eaa5c(0x1e8));_0x3b931d['getSheetId']()!==_0x2e1809&&this['_urlService'][_0x4eaa5c(0x334)](_0x4eaa5c(0x1e8),_0x3b931d[_0x4eaa5c(0x41a)](),_0x538eb8);}async[_0x3570f5(0x383)](_0x5ed426){const _0x57760d=_0x3570f5;var _0x1591aa;const _0x3669d6=this[_0x57760d(0x241)][_0x57760d(0x2f3)]('subunit');if(!_0x3669d6||!_0x5ed426[_0x57760d(0x1ec)](_0x3669d6)){const _0x455895=_0x5ed426['getUnhiddenWorksheets']()[0x0],_0x5a6415=_0x5ed426[_0x57760d(0x1ec)](_0x455895);if(!_0x5a6415)return;this[_0x57760d(0x26a)](_0x5a6415,!0x0),await this[_0x57760d(0x30d)][_0x57760d(0x391)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5ed426[_0x57760d(0x2e8)](),'subUnitId':_0x455895});return;}((_0x1591aa=_0x5ed426[_0x57760d(0x1fc)]())==null?void 0x0:_0x1591aa[_0x57760d(0x41a)]())!==_0x3669d6&&await this[_0x57760d(0x30d)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5ed426[_0x57760d(0x2e8)](),'subUnitId':_0x3669d6});}},exports['CollaborationDataLoaderController']=ot([k(0x0,me),k(0x1,a[_0x3570f5(0x2bc)]),k(0x2,a[_0x3570f5(0x25b)]),k(0x3,a['Inject'](u[_0x3570f5(0x32b)])),k(0x4,a['Optional'](Xe[_0x3570f5(0x368)]))],exports[_0x3570f5(0x394)]);var at=Object['getOwnPropertyDescriptor'],ct=(_0x45475d,_0x2fb5b7,_0x292116,_0x4fa988)=>{const _0x18297a=_0x3570f5;for(var _0x1d397d=_0x4fa988>0x1?void 0x0:_0x4fa988?at(_0x2fb5b7,_0x292116):_0x2fb5b7,_0x72728a=_0x45475d[_0x18297a(0x367)]-0x1,_0x2f346c;_0x72728a>=0x0;_0x72728a--)(_0x2f346c=_0x45475d[_0x72728a])&&(_0x1d397d=_0x2f346c(_0x1d397d)||_0x1d397d);return _0x1d397d;},be=(_0x476e46,_0x43f80b)=>(_0x1ea66a,_0x14073c)=>_0x43f80b(_0x1ea66a,_0x14073c,_0x476e46);let ue=class extends a[_0x3570f5(0x210)]{constructor(_0x425e0b,_0x3104a2){const _0x50dbc2=_0x3570f5;super(),this[_0x50dbc2(0x205)]=_0x425e0b,this['_imageIoService']=_0x3104a2,this['_init']();}['_init'](){const _0x1fb2a7=_0x3570f5,_0x5a4f35=this;this[_0x1fb2a7(0x34d)](this[_0x1fb2a7(0x205)]['addClipboardHook']({'onBeforePasteImage':async _0x33a921=>{const _0xed1e07=_0x1fb2a7,_0x3ef2bc=await _0x5a4f35['_imageIoService']['saveImage'](_0x33a921);return _0x3ef2bc?{'source':_0x3ef2bc[_0xed1e07(0x26d)],'imageSourceType':_0x3ef2bc['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0x3570f5(0x2ae)]),be(0x1,Ge['IImageIoService'])],ue);const Oe=[_0x3570f5(0x2be),'jiqing.500','green.600',_0x3570f5(0x223),_0x3570f5(0x2c3),_0x3570f5(0x396)];class Ce extends a[_0x3570f5(0x3cd)]{constructor(){const _0x352305=_0x3570f5;super(...arguments),h(this,_0x352305(0x2c1),new Map()),h(this,_0x352305(0x3a9),0x0);}['assignAColorForMemberID'](_0x22a737){const _0x4d6063=_0x3570f5;if(this[_0x4d6063(0x2c1)][_0x4d6063(0x1ee)](_0x22a737))return this['_assignedColors'][_0x4d6063(0x33a)](_0x22a737);const _0x229046=Oe[this[_0x4d6063(0x3a9)]];return this[_0x4d6063(0x3a9)]=(this[_0x4d6063(0x3a9)]+0x1)%Oe[_0x4d6063(0x367)],this[_0x4d6063(0x2c1)][_0x4d6063(0x41b)](_0x22a737,_0x229046),_0x229046;}}function ye(_0x2dd09e){const _0x4e3bd9=_0x3570f5;let _0x5a71d1='';for(const _0x424178 of _0x2dd09e){const {startOffset:_0x25da7e,endOffset:_0x2e6600,isActive:_0x451dea,rangeType:_0x4d203e,segmentId:_0x376545,segmentPage:_0x3322cc}=_0x424178;_0x5a71d1[_0x4e3bd9(0x367)]&&(_0x5a71d1+=','),_0x5a71d1+=_0x25da7e+':'+_0x2e6600+':'+(_0x451dea?'1':'0')+':'+_0x4d203e+':'+_0x376545+':'+_0x3322cc;}return _0x5a71d1;}function lt(_0x2509b7){const _0x12df70=_0x3570f5,_0x171865=_0x2509b7[_0x12df70(0x229)](','),_0x2dfb5a=[];for(const _0x28e3fc of _0x171865){const [_0x348dfb,_0x2746c7,_0x407965,_0x265171,_0x5305dc,_0x261df5]=_0x28e3fc[_0x12df70(0x229)](':');_0x2dfb5a[_0x12df70(0x272)]({'startOffset':Number(_0x348dfb),'endOffset':Number(_0x2746c7),'collapsed':_0x348dfb===_0x2746c7,'isActive':_0x407965==='1','rangeType':_0x265171===a[_0x12df70(0x36e)]['TEXT']?a[_0x12df70(0x36e)][_0x12df70(0x2e3)]:a[_0x12df70(0x36e)]['RECT'],'segmentId':typeof _0x5305dc==_0x12df70(0x39e)?String(_0x5305dc):'','segmentPage':Number(_0x261df5!=null?_0x261df5:-0x1)});}return _0x2dfb5a[_0x12df70(0x34b)](_0xf5fcfa=>_0xf5fcfa[_0x12df70(0x3fd)])||(_0x2dfb5a[0x0]['isActive']=!0x0),_0x2dfb5a;}class pe extends a[_0x3570f5(0x210)]{constructor(){const _0x52ec70=_0x3570f5;super(...arguments),h(this,_0x52ec70(0x29f),new d[(_0x52ec70(0x35b))](null)),h(this,_0x52ec70(0x2a8),this[_0x52ec70(0x29f)][_0x52ec70(0x20d)]());}[_0x3570f5(0x2aa)](_0x1a8b19){const _0x1fa4f3=_0x3570f5,{unitID:_0x5612c5,memberID:_0x285d68,textRanges:_0x813301}=_0x1a8b19,_0x58a197=ye(_0x813301);if(_0x58a197==='')return;const _0x68aaeb={'unitID':_0x5612c5,'memberID':_0x285d68,'selection':_0x58a197};this[_0x1fa4f3(0x29f)][_0x1fa4f3(0x282)](_0x68aaeb);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x1152a8,_0x35213f,_0x530c2e,_0xecb165)=>{const _0x19f89c=_0x3570f5;for(var _0x4bce90=_0xecb165>0x1?void 0x0:_0xecb165?_t(_0x35213f,_0x530c2e):_0x35213f,_0x26753f=_0x1152a8[_0x19f89c(0x367)]-0x1,_0x321efc;_0x26753f>=0x0;_0x26753f--)(_0x321efc=_0x1152a8[_0x26753f])&&(_0x4bce90=_0x321efc(_0x4bce90)||_0x4bce90);return _0x4bce90;},L=(_0x3d5a15,_0x1eaf09)=>(_0x4e6744,_0x4fa906)=>_0x1eaf09(_0x4e6744,_0x4fa906,_0x3d5a15);const ut=0x12c,dt=0x64;let de=class extends a[_0x3570f5(0x210)]{constructor(_0x27d9ac,_0x68a212,_0x1aa9f4,_0x586294,_0x423ec9,_0x334f82,_0x45bec3,_0x3ffc45,_0x405045){const _0x3152e2=_0x3570f5;super(),h(this,_0x3152e2(0x2f8),!0x1),h(this,_0x3152e2(0x403),!0x1),h(this,'_cursorInfo$',new d[(_0x3152e2(0x35b))](new Map())),h(this,_0x3152e2(0x19b),this['_cursorInfo$'][_0x3152e2(0x20d)]()),h(this,'_roomMembers$',new d[(_0x3152e2(0x35b))]([])),h(this,_0x3152e2(0x1d0),this[_0x3152e2(0x3a7)][_0x3152e2(0x2b1)](d[_0x3152e2(0x2dc)](ut))),h(this,_0x3152e2(0x3f5),a[_0x3152e2(0x315)](_0x2d7dff=>{const _0x1cce6f=_0x3152e2,_0x1ee668={'eventID':m[_0x1cce6f(0x2f9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1cce6f(0x260)],'memberID':this[_0x1cce6f(0x32f)][_0x1cce6f(0x1b0)](),'selection':ye(_0x2d7dff)}};this[_0x1cce6f(0x32f)][_0x1cce6f(0x24a)](_0x1ee668,this[_0x1cce6f(0x260)]);},dt)),(this[_0x3152e2(0x260)]=_0x27d9ac,this[_0x3152e2(0x32f)]=_0x68a212,this[_0x3152e2(0x376)]=_0x1aa9f4,this[_0x3152e2(0x31c)]=_0x586294,this['_memberService']=_0x423ec9,this['_syncEditingCollabCursorService']=_0x334f82,this['_transformService']=_0x45bec3,this[_0x3152e2(0x359)]=_0x3ffc45,this['_commandService']=_0x405045);}get[_0x3570f5(0x352)](){const _0x56de77=_0x3570f5;return this[_0x56de77(0x3e9)][_0x56de77(0x1c2)]();}get[_0x3570f5(0x2e1)](){const _0x5afd9d=_0x3570f5;return this[_0x5afd9d(0x3a7)]['getValue']();}[_0x3570f5(0x1cc)](){const _0xb55dec=_0x3570f5;super[_0xb55dec(0x1cc)](),this['_cursorInfo$'][_0xb55dec(0x282)](new Map()),this[_0xb55dec(0x3e9)][_0xb55dec(0x29a)](),this['_roomMembers$'][_0xb55dec(0x282)]([]),this[_0xb55dec(0x3a7)][_0xb55dec(0x29a)]();}[_0x3570f5(0x3bd)](){const _0x38097e=_0x3570f5;this[_0x38097e(0x403)]||(this[_0x38097e(0x403)]=!0x0,this[_0x38097e(0x32f)][_0x38097e(0x313)][_0x38097e(0x2b1)](d[_0x38097e(0x21e)](this[_0x38097e(0x293)]))[_0x38097e(0x3e4)](_0x414196=>{const _0x4bcede=_0x38097e;_0x414196===u[_0x4bcede(0x320)][_0x4bcede(0x1ca)]?this[_0x4bcede(0x2b4)]():this['_toggleOffline']();}),this['_session']['event$']['pipe'](d[_0x38097e(0x21e)](this['dispose$']))['subscribe'](_0xb788df=>{const _0x140ed3=_0x38097e,_0xe46fd8=_0xb788df[_0x140ed3(0x301)];_0xe46fd8===m[_0x140ed3(0x2f9)]['UPDATE_CURSOR']&&this[_0x140ed3(0x328)](_0xb788df),_0xe46fd8===m[_0x140ed3(0x2f9)][_0x140ed3(0x202)]&&this['_onCursorDelete'](_0xb788df);}),this[_0x38097e(0x34d)](this[_0x38097e(0x30d)]['onCommandExecuted'](_0x52996a=>{const _0x484149=_0x38097e,_0x4bb22a=_0x52996a[_0x484149(0x31d)];_0x4bb22a!=null&&this[_0x484149(0x2f8)]&&_0x52996a['id']===Y['SetTextSelectionsOperation']['id']&&_0x4bb22a[_0x484149(0x410)]===this[_0x484149(0x260)]&&_0x4bb22a[_0x484149(0x38d)]===!0x1&&_0x4bb22a[_0x484149(0x238)][_0x484149(0x367)]>0x0&&this[_0x484149(0x3f5)](_0x4bb22a[_0x484149(0x238)]);})),this[_0x38097e(0x314)][_0x38097e(0x2a8)]['pipe'](d[_0x38097e(0x21e)](this[_0x38097e(0x293)]))[_0x38097e(0x3e4)](_0x3ce76b=>{const _0x15fc69=_0x38097e;if((_0x3ce76b==null?void 0x0:_0x3ce76b[_0x15fc69(0x260)])!==this[_0x15fc69(0x260)])return;const _0x508c9e={'eventID':m['CollaborationEvent'][_0x15fc69(0x242)],'data':_0x3ce76b};this['_onCursorUpdate'](_0x508c9e);}),this[_0x38097e(0x34d)](this['_commandService']['onCommandExecuted'](_0x3a3555=>{const _0x2f1876=_0x38097e;if(_0x3a3555['params']==null)return;const _0x52727b=_0x3a3555[_0x2f1876(0x31d)];if(_0x3a3555['id']!==Y[_0x2f1876(0x2fa)]['id']||_0x52727b[_0x2f1876(0x410)]!==this['unitID'])return;const _0x2c2e8b={'id':_0x2f1876(0x1b8),'params':_0x52727b},_0x6692d6=this[_0x2f1876(0x352)];for(const [_0x5ab886,_0x35ccb6]of _0x6692d6){const _0x30dd97={'id':_0x2f1876(0x1b8),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x35ccb6[_0x2f1876(0x238)]}},_0xad5bcf=this[_0x2f1876(0x28c)][_0x2f1876(0x263)](_0x2c2e8b,_0x30dd97,!0x1);if(m[_0x2f1876(0x211)](_0xad5bcf))throw _0xad5bcf[_0x2f1876(0x26c)];_0x6692d6[_0x2f1876(0x41b)](_0x5ab886,{..._0x35ccb6,'ranges':_0xad5bcf[_0x2f1876(0x1e6)][_0x2f1876(0x31d)]['textRanges']});}queueMicrotask(()=>{const _0x2a55d1=_0x2f1876;this[_0x2a55d1(0x3e9)][_0x2a55d1(0x282)](_0x6692d6);});})));}['_onCursorUpdate'](_0x2b23ca){const _0x36019b=_0x3570f5;var _0x166b7b,_0x1c684d;const {memberID:_0xa5b590,selection:_0x1042b0}=_0x2b23ca[_0x36019b(0x33f)],_0x2060c6=lt(_0x1042b0),_0x15a519=(_0x1c684d=(_0x166b7b=this[_0x36019b(0x20b)]['getMember'](this['unitID'],_0xa5b590))==null?void 0x0:_0x166b7b[_0x36019b(0x2e4)])!=null?_0x1c684d:_0x36019b(0x24c),_0x4f2331={'color':this[_0x36019b(0x31c)][_0x36019b(0x2a5)](_0xa5b590),'name':_0x15a519,'ranges':_0x2060c6},_0x1735aa=this[_0x36019b(0x352)];_0x1735aa[_0x36019b(0x41b)](_0xa5b590,_0x4f2331),this[_0x36019b(0x3e9)][_0x36019b(0x282)](_0x1735aa);}[_0x3570f5(0x2b0)](_0x52b97d){const _0xb4464=_0x3570f5,{memberID:_0x387ef6}=_0x52b97d['data'],_0x365f37=this['cursorInfo'];_0x365f37[_0xb4464(0x316)](_0x387ef6),this[_0xb4464(0x3e9)][_0xb4464(0x282)](_0x365f37);}[_0x3570f5(0x2b4)](){const _0x2ef14=_0x3570f5;var _0x19131a;if(this[_0x2ef14(0x2f8)]=!0x0,((_0x19131a=this[_0x2ef14(0x359)]['getFocusedUnit']())==null?void 0x0:_0x19131a[_0x2ef14(0x2e8)]())!==this[_0x2ef14(0x260)])return;const _0x205cba=this[_0x2ef14(0x376)]['get'](Y[_0x2ef14(0x1a8)])['getDocRanges']();Array['isArray'](_0x205cba)&&_0x205cba[_0x2ef14(0x367)]>0x0&&this[_0x2ef14(0x3f5)](_0x205cba);}[_0x3570f5(0x277)](){const _0x2c4107=_0x3570f5;this[_0x2c4107(0x2f8)]=!0x1;}};de=ht([L(0x2,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),L(0x3,a[_0x3570f5(0x1b9)](Ce)),L(0x4,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x3e5)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x3570f5(0x326)]),L(0x7,a[_0x3570f5(0x386)]),L(0x8,a['ICommandService'])],de);var St=Object[_0x3570f5(0x216)],ft=(_0x1e3e8b,_0x5297e6,_0x58dcbd,_0x309b8d)=>{const _0x220b34=_0x3570f5;for(var _0x3ba268=_0x309b8d>0x1?void 0x0:_0x309b8d?St(_0x5297e6,_0x58dcbd):_0x5297e6,_0x307952=_0x1e3e8b[_0x220b34(0x367)]-0x1,_0x3b1a38;_0x307952>=0x0;_0x307952--)(_0x3b1a38=_0x1e3e8b[_0x307952])&&(_0x3ba268=_0x3b1a38(_0x3ba268)||_0x3ba268);return _0x3ba268;},A=(_0xcd606c,_0x50bac8)=>(_0x27bcac,_0x4c2a7d)=>_0x50bac8(_0x27bcac,_0x4c2a7d,_0xcd606c);const It=0x12c,vt=0x64,gt=()=>{let _0x5cfd42=[],_0x59806f=!0x1;return _0x55abd3=>{const _0x3f119c=_0x3d45;_0x5cfd42[_0x3f119c(0x272)](_0x55abd3),_0x59806f||(_0x59806f=!0x0,setTimeout(()=>{const _0x22baa1=_0x3f119c;_0x5cfd42[_0x22baa1(0x2b3)](_0x16b4fa=>_0x16b4fa()),_0x5cfd42=[],_0x59806f=!0x1;}));};};let Se=class extends a[_0x3570f5(0x210)]{constructor(_0x14267a,_0x364e1a,_0x226982,_0x5713ea,_0x399bd6,_0x4e6019,_0xf37bdc,_0x95cbbd){const _0xf29226=_0x3570f5;super(),h(this,'_online',!0x1),h(this,_0xf29226(0x403),!0x1),h(this,_0xf29226(0x3e9),new d[(_0xf29226(0x35b))](new Map())),h(this,_0xf29226(0x19b),this[_0xf29226(0x3e9)][_0xf29226(0x20d)]()),h(this,'_roomMembers$',new d[(_0xf29226(0x35b))]([])),h(this,_0xf29226(0x1d0),this['_roomMembers$'][_0xf29226(0x2b1)](d[_0xf29226(0x2dc)](It))),h(this,_0xf29226(0x3f5),a[_0xf29226(0x315)]((_0x57add5,_0x4dec49)=>{const _0x4d9567=_0xf29226,_0x5d2a57={'eventID':m['CollaborationEvent'][_0x4d9567(0x242)],'data':{'unitID':this[_0x4d9567(0x260)],'memberID':this['_session'][_0x4d9567(0x1b0)](),'selection':Ee[_0x4d9567(0x39b)](_0x57add5,_0x4dec49['range'])}};this[_0x4d9567(0x32f)]['send'](_0x5d2a57,this[_0x4d9567(0x260)]);},vt)),(this[_0xf29226(0x260)]=_0x14267a,this['_session']=_0x364e1a,this['_injector']=_0x226982,this[_0xf29226(0x31c)]=_0x5713ea,this[_0xf29226(0x20b)]=_0x399bd6,this['_univerInstanceService']=_0x4e6019,this[_0xf29226(0x30d)]=_0xf37bdc,this[_0xf29226(0x39c)]=_0x95cbbd);}get['cursorInfo'](){const _0x5d3702=_0x3570f5;return this['_cursorInfo$'][_0x5d3702(0x1c2)]();}get[_0x3570f5(0x2e1)](){const _0x589262=_0x3570f5;return this[_0x589262(0x3a7)][_0x589262(0x1c2)]();}[_0x3570f5(0x1cc)](){const _0x1420cd=_0x3570f5;super['dispose'](),this['_cursorInfo$'][_0x1420cd(0x282)](new Map()),this[_0x1420cd(0x3e9)][_0x1420cd(0x29a)](),this[_0x1420cd(0x3a7)][_0x1420cd(0x282)]([]),this[_0x1420cd(0x3a7)][_0x1420cd(0x29a)]();}[_0x3570f5(0x3bd)](){const _0x3a0790=_0x3570f5;this[_0x3a0790(0x403)]||(this[_0x3a0790(0x403)]=!0x0,this[_0x3a0790(0x32f)]['sessionStatus$'][_0x3a0790(0x2b1)](d[_0x3a0790(0x21e)](this[_0x3a0790(0x293)]))[_0x3a0790(0x3e4)](_0x54b594=>{const _0x337aa4=_0x3a0790;_0x54b594===u[_0x337aa4(0x320)]['ONLINE']?this[_0x337aa4(0x2b4)]():this[_0x337aa4(0x277)]();}),this['_session'][_0x3a0790(0x384)]['pipe'](d[_0x3a0790(0x21e)](this['dispose$']))[_0x3a0790(0x3e4)](_0x12b24e=>{const _0x1b423b=_0x3a0790,_0x5b8bc0=_0x12b24e[_0x1b423b(0x301)];_0x5b8bc0===m[_0x1b423b(0x2f9)][_0x1b423b(0x242)]&&this['_onCursorUpdate'](_0x12b24e),_0x5b8bc0===m[_0x1b423b(0x2f9)][_0x1b423b(0x202)]&&this[_0x1b423b(0x2b0)](_0x12b24e);}),this[_0x3a0790(0x412)](),this[_0x3a0790(0x34d)](this['_commandService'][_0x3a0790(0x23f)](_0x401a84=>{const _0x1297a8=_0x3a0790;if(this['_online']&&_0x401a84['id']===g[_0x1297a8(0x31a)]['id']&&_0x401a84[_0x1297a8(0x31d)]['unitId']===this[_0x1297a8(0x260)]){const _0x493358=_0x401a84['params'];this[_0x1297a8(0x3f5)](_0x493358['subUnitId'],_0x493358[_0x1297a8(0x312)][0x0]);}})));}[_0x3570f5(0x328)](_0x5cc6c6){const _0x519f4b=_0x3570f5;var _0x707d76,_0x1d0b31;const {memberID:_0x3677ab,selection:_0x168267}=_0x5cc6c6[_0x519f4b(0x33f)],{sheetName:_0x7bb795,range:_0x419f81}=Ee[_0x519f4b(0x2e6)](_0x168267),_0x19431c={'name':(_0x1d0b31=(_0x707d76=this[_0x519f4b(0x20b)][_0x519f4b(0x2bf)](this[_0x519f4b(0x260)],_0x3677ab))==null?void 0x0:_0x707d76[_0x519f4b(0x2e4)])!=null?_0x1d0b31:_0x519f4b(0x24c),'range':this['_getMergeRange'](_0x7bb795,_0x419f81),'sheetID':_0x7bb795,'color':this['_colorAssignService'][_0x519f4b(0x2a5)](_0x3677ab),'selection':_0x168267},_0x168b5d=this[_0x519f4b(0x352)];_0x168b5d[_0x519f4b(0x41b)](_0x3677ab,_0x19431c),this[_0x519f4b(0x3e9)][_0x519f4b(0x282)](_0x168b5d);}['_onCursorDelete'](_0x2a6fc3){const _0x2f83bd=_0x3570f5,{memberID:_0x3971ca}=_0x2a6fc3[_0x2f83bd(0x33f)],_0x44d7ed=this[_0x2f83bd(0x352)];_0x44d7ed[_0x2f83bd(0x316)](_0x3971ca),this[_0x2f83bd(0x3e9)][_0x2f83bd(0x282)](_0x44d7ed);}['_getMergeRange'](_0x2667e3,_0x451448){const _0x69c130=_0x3570f5;var _0x21f303,_0x3a54ca;const _0x1c97a0=(_0x3a54ca=(_0x21f303=this[_0x69c130(0x359)][_0x69c130(0x357)](this[_0x69c130(0x260)]))==null?void 0x0:_0x21f303['getSheetBySheetId'](_0x2667e3))==null?void 0x0:_0x3a54ca[_0x69c130(0x365)]();return(_0x1c97a0==null?void 0x0:_0x1c97a0[_0x69c130(0x30a)](_0x442103=>a[_0x69c130(0x224)][_0x69c130(0x1cf)](_0x442103,_0x451448)))||_0x451448;}['_onRefRangeChange'](){const _0x3dbd85=_0x3570f5,_0x18ed10=new a[(_0x3dbd85(0x31b))](),_0x1be676=gt(),_0x11ed6a=()=>{const _0x14a73f=_0x3dbd85;_0x18ed10[_0x14a73f(0x1cc)]();const _0x6d4823=(_0x56254c,_0x35ab01,_0x387cf1,_0x6df6)=>{const _0x163d29=_0x14a73f;let _0x27d9bb=[];switch(_0x56254c['id']){case g[_0x163d29(0x1f6)]['DeleteRangeMoveLeftCommandId']:{_0x27d9bb=g[_0x163d29(0x3aa)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x3ca)]:{_0x27d9bb=g[_0x163d29(0x1d9)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x353)]:{_0x27d9bb=g[_0x163d29(0x2d2)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x20f)]:{_0x27d9bb=g[_0x163d29(0x214)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x30e)]:{_0x27d9bb=g[_0x163d29(0x3af)](_0x56254c,_0x6df6);break;}case g[_0x163d29(0x1f6)][_0x163d29(0x1d1)]:{_0x27d9bb=g[_0x163d29(0x26b)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x363)]:{_0x27d9bb=g[_0x163d29(0x337)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x21b)]:{_0x27d9bb=g[_0x163d29(0x25a)](_0x56254c,_0x6df6);break;}case g['EffectRefRangId'][_0x163d29(0x1ed)]:{_0x27d9bb=g[_0x163d29(0x3a0)](_0x56254c,_0x6df6);break;}}const _0x85f4ea=g[_0x163d29(0x400)](_0x27d9bb,_0x6df6),_0x3d009d=this[_0x163d29(0x352)][_0x163d29(0x33a)](_0x35ab01);if(_0x3d009d&&_0x85f4ea){const _0x4d59db={..._0x3d009d,'range':_0x85f4ea};this['cursorInfo']['set'](_0x35ab01,_0x4d59db),_0x1be676(()=>{const _0x2b8356=_0x163d29,_0x113584=this[_0x2b8356(0x39c)][_0x2b8356(0x34e)](_0x85f4ea,_0x2a320c=>(_0x113584[_0x2b8356(0x1cc)](),_0x6d4823(_0x2a320c,_0x35ab01,_0x387cf1,_0x85f4ea)));_0x18ed10['add'](_0x113584);});}return{'redos':[],'undos':[]};};this[_0x14a73f(0x352)]['forEach']((_0x13b3f9,_0x1ff345)=>{const _0x73a65c=_0x14a73f,{range:_0x4b387c,sheetID:_0x1a1451}=_0x13b3f9,_0x5c731f=this[_0x73a65c(0x39c)]['registerRefRange'](_0x4b387c,_0xeca946=>(_0x5c731f[_0x73a65c(0x1cc)](),_0x6d4823(_0xeca946,_0x1ff345,_0x1a1451,_0x4b387c)));_0x18ed10[_0x73a65c(0x3ce)](_0x5c731f);});};this['disposeWithMe'](a['toDisposable'](this['_cursorInfo$'][_0x3dbd85(0x3e4)](()=>{_0x11ed6a();})));}[_0x3570f5(0x2b4)](){const _0x1464ec=_0x3570f5;var _0x36e507,_0x4d16b2;if(this[_0x1464ec(0x2f8)]=!0x0,((_0x36e507=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x36e507['getUnitId']())!==this[_0x1464ec(0x260)])return;const _0x205b43=(_0x4d16b2=this[_0x1464ec(0x376)][_0x1464ec(0x33a)](g[_0x1464ec(0x2b6)])[_0x1464ec(0x201)]())==null?void 0x0:_0x4d16b2[0x0],_0x4eeea5=this[_0x1464ec(0x359)][_0x1464ec(0x1c4)](a[_0x1464ec(0x40a)][_0x1464ec(0x1fb)])[_0x1464ec(0x1fc)]();_0x205b43&&_0x4eeea5&&this[_0x1464ec(0x3f5)](_0x4eeea5[_0x1464ec(0x41a)](),_0x205b43);}[_0x3570f5(0x277)](){const _0x57d07b=_0x3570f5;this[_0x57d07b(0x2f8)]=!0x1;}};Se=ft([A(0x2,a[_0x3570f5(0x1b9)](a['Injector'])),A(0x3,a[_0x3570f5(0x1b9)](Ce)),A(0x4,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x3e5)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a[_0x3570f5(0x1b9)](g[_0x3570f5(0x1e3)]))],Se);var mt=Object[_0x3570f5(0x216)],Ct=(_0x5a1bc8,_0x377a4c,_0x3336bc,_0x272b6b)=>{for(var _0x30feef=_0x272b6b>0x1?void 0x0:_0x272b6b?mt(_0x377a4c,_0x3336bc):_0x377a4c,_0x2d5edb=_0x5a1bc8['length']-0x1,_0x4a5ddc;_0x2d5edb>=0x0;_0x2d5edb--)(_0x4a5ddc=_0x5a1bc8[_0x2d5edb])&&(_0x30feef=_0x4a5ddc(_0x30feef)||_0x30feef);return _0x30feef;},ie=(_0x4cb760,_0x4b05b1)=>(_0x477664,_0x529a5b)=>_0x4b05b1(_0x477664,_0x529a5b,_0x4cb760);let x=class extends a[_0x3570f5(0x210)]{constructor(_0x4af673,_0x3c0606,_0x549fea){const _0x28936d=_0x3570f5;super(),h(this,_0x28936d(0x2d3),new Map()),h(this,_0x28936d(0x1c8),new d[(_0x28936d(0x24d))]()),(this['_univerInstanceService']=_0x4af673,this[_0x28936d(0x376)]=_0x3c0606,this[_0x28936d(0x239)]=_0x549fea,this[_0x28936d(0x403)]());}[_0x3570f5(0x1cc)](){const _0x53e2be=_0x3570f5;super['dispose'](),this['_entityInit$'][_0x53e2be(0x29a)](),this['_entities'][_0x53e2be(0x2b3)](_0x27cce0=>_0x27cce0[_0x53e2be(0x1cc)]());}[_0x3570f5(0x407)](_0x69cfbc){const _0x441fbf=_0x3570f5;return this[_0x441fbf(0x2d3)][_0x441fbf(0x1ee)](_0x69cfbc)?this[_0x441fbf(0x2d3)]['get'](_0x69cfbc)[_0x441fbf(0x19b)]:this[_0x441fbf(0x1c8)][_0x441fbf(0x2b1)](d['filter'](_0x3cba9e=>_0x3cba9e[_0x441fbf(0x260)]===_0x69cfbc),d[_0x441fbf(0x346)](_0x2d66d6=>_0x2d66d6['cursorInfo$']));}[_0x3570f5(0x403)](){const _0x4913e8=_0x3570f5;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x4913e8(0x40a)]['UNIVER_SHEET'])['pipe'](d[_0x4913e8(0x21e)](this['dispose$']))['subscribe'](async _0x8b196c=>{const _0x498739=_0x4913e8,_0x44ab41=_0x8b196c[_0x498739(0x2e8)](),_0x4030b9=await this[_0x498739(0x291)](_0x44ab41);this['_entityInit$'][_0x498739(0x282)](_0x4030b9),this['_entities'][_0x498739(0x41b)](_0x44ab41,_0x4030b9);}),this[_0x4913e8(0x359)][_0x4913e8(0x377)](a['UniverInstanceType'][_0x4913e8(0x24f)])['pipe'](d[_0x4913e8(0x21e)](this['dispose$']))['pipe'](d['filter'](_0x23a407=>!_0x23a407['getUnitId']()['startsWith']('__')))[_0x4913e8(0x3e4)](async _0x2f2b4e=>{const _0xf0ae93=_0x4913e8,_0x19df4a=_0x2f2b4e[_0xf0ae93(0x2e8)](),_0x2bbc9b=await this[_0xf0ae93(0x411)](_0x19df4a);this['_entityInit$'][_0xf0ae93(0x282)](_0x2bbc9b),this[_0xf0ae93(0x2d3)]['set'](_0x19df4a,_0x2bbc9b);}),d[_0x4913e8(0x380)](this[_0x4913e8(0x359)][_0x4913e8(0x360)](a[_0x4913e8(0x40a)][_0x4913e8(0x24f)]),this['_univerInstanceService'][_0x4913e8(0x360)](a[_0x4913e8(0x40a)]['UNIVER_SHEET']))[_0x4913e8(0x2b1)](d['takeUntil'](this[_0x4913e8(0x293)]))[_0x4913e8(0x3e4)](_0x41df2e=>{const _0x4ae3e1=_0x4913e8,_0x22fb6f=_0x41df2e[_0x4ae3e1(0x2e8)](),_0x4d032a=this[_0x4ae3e1(0x2d3)][_0x4ae3e1(0x33a)](_0x22fb6f);_0x4d032a&&(_0x4d032a[_0x4ae3e1(0x1cc)](),this[_0x4ae3e1(0x2d3)][_0x4ae3e1(0x316)](_0x22fb6f));});}async[_0x3570f5(0x291)](_0x1f4d50){const _0x2aa4c6=_0x3570f5,_0x4dec48=await this['_collabSessionService'][_0x2aa4c6(0x1f9)](_0x1f4d50),_0x599015=this[_0x2aa4c6(0x376)][_0x2aa4c6(0x3ff)](Se,_0x1f4d50,_0x4dec48);return _0x599015[_0x2aa4c6(0x3bd)](),_0x599015;}async[_0x3570f5(0x411)](_0x5f4c10){const _0x5d4887=_0x3570f5,_0x43cd40=await this[_0x5d4887(0x239)][_0x5d4887(0x1f9)](_0x5f4c10),_0x1bcb0c=this[_0x5d4887(0x376)][_0x5d4887(0x3ff)](de,_0x5f4c10,_0x43cd40);return _0x1bcb0c[_0x5d4887(0x3bd)](),_0x1bcb0c;}};x=Ct([ie(0x0,a[_0x3570f5(0x386)]),ie(0x1,a[_0x3570f5(0x1b9)](a['Injector'])),ie(0x2,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x2d4)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x268ca2,_0x4ad69e){const _0x297c87=_0x3570f5;let {radius:_0x12bc7f,width:_0x36f910,height:_0x3521bd}=_0x4ad69e;_0x12bc7f=_0x12bc7f!=null?_0x12bc7f:0x0,_0x36f910=_0x36f910!=null?_0x36f910:0x1e,_0x3521bd=_0x3521bd!=null?_0x3521bd:0x1e;let _0x1c76bd=0x0,_0x1d5ed8=0x0,_0x14bea9=0x0;_0x1c76bd=_0x1d5ed8=_0x14bea9=Math[_0x297c87(0x1ea)](_0x12bc7f,_0x36f910/0x2,_0x3521bd/0x2),_0x268ca2[_0x297c87(0x388)](),_0x268ca2[_0x297c87(0x1e4)](_0x1c76bd,0x0),_0x268ca2[_0x297c87(0x39f)](_0x36f910-_0x1d5ed8,0x0),_0x268ca2[_0x297c87(0x2d6)](_0x36f910-_0x1d5ed8,_0x1d5ed8,_0x1d5ed8,Math['PI']*0x3/0x2,0x0,!0x1),_0x268ca2[_0x297c87(0x39f)](_0x36f910,_0x3521bd-_0x14bea9),_0x268ca2[_0x297c87(0x2d6)](_0x36f910-_0x14bea9,_0x3521bd-_0x14bea9,_0x14bea9,0x0,Math['PI']/0x2,!0x1),_0x268ca2[_0x297c87(0x39f)](0x0,_0x3521bd),_0x268ca2[_0x297c87(0x39f)](0x0,_0x1c76bd),_0x268ca2['arc'](_0x1c76bd,_0x1c76bd,_0x1c76bd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x268ca2[_0x297c87(0x279)](),_0x4ad69e[_0x297c87(0x256)]&&(_0x268ca2[_0x297c87(0x217)](),_0x268ca2[_0x297c87(0x3ba)]=_0x4ad69e['fill'],_0x4ad69e[_0x297c87(0x2ac)]===_0x297c87(0x40d)?_0x268ca2['fill'](_0x297c87(0x40d)):_0x268ca2[_0x297c87(0x256)](),_0x268ca2['restore']());}class ee extends p[_0x3570f5(0x345)]{constructor(_0x4a7d76,_0x41ea18){const _0x5b6945=_0x3570f5;super(_0x4a7d76,_0x41ea18),h(this,_0x5b6945(0x398)),h(this,_0x5b6945(0x222)),(this[_0x5b6945(0x398)]=_0x41ea18==null?void 0x0:_0x41ea18[_0x5b6945(0x398)],this[_0x5b6945(0x222)]=_0x41ea18==null?void 0x0:_0x41ea18[_0x5b6945(0x222)]);}static[_0x3570f5(0x38b)](_0x126084,_0x46c08b){const _0x38c974=_0x3570f5,{text:_0x5cdf6b,color:_0x1193c2}=_0x46c08b;_0x126084[_0x38c974(0x217)](),_0x126084[_0x38c974(0x237)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5e91f3=_0x126084['measureText'](_0x5cdf6b)[_0x38c974(0x33c)],_0xac9260=Math['min'](_0x5e91f3+0x2*ne,Te);Et(_0x126084,{'height':W,'radius':0x4,'width':_0xac9260,'fill':_0x1193c2}),_0x126084[_0x38c974(0x3ba)]=_0x38c974(0x3e3);const _0x3b83fa=ne,_0xe03709=W-pt,_0x15b174=Te-0x2*ne;if(_0x5e91f3>_0x15b174){let _0x2bee64='',_0x3e9e5b=0x0;for(const _0xfb4432 of _0x5cdf6b){const _0x34a9b5=_0x126084[_0x38c974(0x2ad)](_0xfb4432)[_0x38c974(0x33c)];if(_0x3e9e5b+_0x34a9b5<=_0x15b174-_0x126084['measureText'](_0x38c974(0x266))[_0x38c974(0x33c)])_0x2bee64+=_0xfb4432,_0x3e9e5b+=_0x34a9b5;else{_0x2bee64+='...';break;}}_0x126084[_0x38c974(0x2b2)](_0x2bee64,_0x3b83fa,_0xe03709);}else _0x126084['fillText'](_0x5cdf6b,_0x3b83fa,_0xe03709);_0x126084[_0x38c974(0x382)]();}[_0x3570f5(0x2ff)](_0x3ca2fe){ee['drawWith'](_0x3ca2fe,this);}}const re=_0x3570f5(0x36f),bt=_0x3570f5(0x252),Ot=_0x3570f5(0x29c),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x3570f5(0x372);class Re{constructor(_0x58e404,_0x4771fd,_0x3ddf47,_0x1e703d){const _0x4bd5b5=_0x3570f5;h(this,_0x4bd5b5(0x194),[]),h(this,_0x4bd5b5(0x38c),null),h(this,_0x4bd5b5(0x283),null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x4bd5b5(0x3d0),null),(this[_0x4bd5b5(0x36a)]=_0x58e404,this[_0x4bd5b5(0x2f4)]=_0x4771fd,this['_docSkeleton']=_0x3ddf47,this[_0x4bd5b5(0x3ae)]=_0x1e703d,this[_0x4bd5b5(0x3f2)]());}set[_0x3570f5(0x408)](_0x5b01d5){const _0x40cc97=_0x3570f5;_0x5b01d5?(this[_0x40cc97(0x3c1)]&&this[_0x40cc97(0x3c1)]['hide'](),this[_0x40cc97(0x283)]&&this[_0x40cc97(0x283)][_0x40cc97(0x3c7)]()):(this['_anchorDot']&&this['_anchorDot'][_0x40cc97(0x3c7)](),this[_0x40cc97(0x283)]&&this[_0x40cc97(0x283)][_0x40cc97(0x265)]());}['dispose'](){const _0x98063f=_0x3570f5;for(const _0xb374d9 of this['_shapes'])_0xb374d9[_0x98063f(0x1cc)]();this['_textBubble']&&this[_0x98063f(0x283)][_0x98063f(0x1cc)](),this[_0x98063f(0x3c1)]&&this['_anchorDot']['dispose'](),this[_0x98063f(0x38c)]&&this[_0x98063f(0x38c)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x3570f5(0x3f2)](){const _0x43cec6=_0x3570f5;var _0x4f1624;const {_docSkeleton:_0xa9ce60,_document:_0x474de5}=this,{color:_0x4e6e34,name:_0x36071c,ranges:_0x107636}=this[_0x43cec6(0x36a)],_0x46e293=_0x474de5[_0x43cec6(0x1c7)](),{docsLeft:_0x5a42af,docsTop:_0x299003}=_0x46e293,_0x38935f=new E[(_0x43cec6(0x1d6))](_0x46e293,_0xa9ce60);for(const {startOffset:_0x46d86b,endOffset:_0x7555c1,rangeType:_0x2948e7,segmentId:_0x56a323,segmentPage:_0x4f53aa,collapsed:_0x18d644,isActive:_0x5b544c}of _0x107636){const _0x155c83=_0xa9ce60[_0x43cec6(0x20a)](_0x46d86b,!0x0,_0x56a323,_0x4f53aa);let _0x39d9e2=_0xa9ce60[_0x43cec6(0x20a)](_0x7555c1,!0x0,_0x56a323,_0x4f53aa);if(_0x39d9e2==null&&(_0x39d9e2=_0xa9ce60[_0x43cec6(0x20a)](_0x7555c1-0x1,!0x1,_0x56a323,_0x4f53aa)),_0x5b544c){const {contentBoxPointGroup:_0x4b5a20}=_0x38935f[_0x43cec6(0x2f7)](_0x39d9e2,_0x39d9e2);if(_0x4b5a20[_0x43cec6(0x367)]===0x0)continue;this[_0x43cec6(0x379)](_0x4e6e34,_0x4b5a20,_0x5a42af,_0x299003,_0x36071c),this[_0x43cec6(0x3d0)]=this[_0x43cec6(0x2d5)]();}if(_0x155c83&&_0x39d9e2){if(_0x2948e7===a['DOC_RANGE_TYPE']['RECT']){const _0x455a1f=new E[(_0x43cec6(0x1f7))](_0x46e293,_0xa9ce60),{pointGroup:_0xce9256}=(_0x4f1624=_0x455a1f[_0x43cec6(0x2f7)](_0x155c83,_0x39d9e2))!=null?_0x4f1624:{};if(_0xce9256==null||_0xce9256[_0x43cec6(0x367)]===0x0)continue;this[_0x43cec6(0x37a)](_0x4e6e34,_0xce9256,_0x5a42af,_0x299003);}else{if(!_0x18d644){const {borderBoxPointGroup:_0x468805}=_0x38935f['getRangePointData'](_0x155c83,_0x39d9e2);if(_0x468805[_0x43cec6(0x367)]===0x0)continue;this[_0x43cec6(0x22f)](_0x4e6e34,_0x468805,_0x5a42af,_0x299003);}}}}}[_0x3570f5(0x379)](_0x14258e,_0x1aa815,_0x4acd35,_0x505a90,_0x2bf80c){const _0x58c797=_0x3570f5,_0x58f0c8=this[_0x58c797(0x261)](_0x1aa815),{left:_0x503f66,top:_0x36d172,height:_0x5703fa}=_0x58f0c8,_0xc2fdfd=this[_0x58c797(0x20c)](),_0x4baf12=Rt/_0xc2fdfd,_0x58963c=new p['Rect'](re+a[_0x58c797(0x331)](F),{'left':_0x503f66+_0x4acd35-_0x4baf12,'top':_0x36d172+_0x505a90,'height':_0x5703fa,'width':Tt,'fill':_0x14258e||p[_0x58c797(0x30b)](a[_0x58c797(0x3db)][_0x58c797(0x329)],0x0),'strokeWidth':_0x4baf12,'stroke':Dt,'evented':!0x0});this[_0x58c797(0x38c)]=_0x58963c,this[_0x58c797(0x2f4)]['addObject'](_0x58963c,E[_0x58c797(0x1db)]);const _0x473f2a=new p[(_0x58c797(0x3c8))](re+a[_0x58c797(0x331)](F),{'left':_0x503f66+_0x4acd35-_0x4baf12,'top':_0x36d172+_0x505a90-oe/0x2,'height':oe,'width':oe,'fill':_0x14258e||p['getColor'](a['COLORS'][_0x58c797(0x329)],0x0),'strokeWidth':0x0,'stroke':_0x14258e||p[_0x58c797(0x30b)](a[_0x58c797(0x3db)]['black'],0x0),'evented':!0x1});this[_0x58c797(0x3c1)]=_0x473f2a,this[_0x58c797(0x2f4)][_0x58c797(0x3e8)](_0x473f2a,E[_0x58c797(0x1db)]);const _0x499e6a=new ee(re+a[_0x58c797(0x331)](F),{'left':_0x503f66+_0x4acd35-_0x4baf12,'top':_0x36d172+_0x505a90-W,'text':_0x2bf80c,'color':_0x14258e});this[_0x58c797(0x283)]=_0x499e6a,this[_0x58c797(0x2f4)][_0x58c797(0x3e8)](_0x499e6a,E['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x4f97e8=_0x3570f5,_0x7b1f5=this[_0x4f97e8(0x38c)][_0x4f97e8(0x23a)][_0x4f97e8(0x1bb)](()=>{const _0x270300=_0x4f97e8;this[_0x270300(0x408)]=!0x0;}),_0x4bf040=this[_0x4f97e8(0x38c)][_0x4f97e8(0x338)][_0x4f97e8(0x1bb)](()=>{const _0x36b6b6=_0x4f97e8;this['_hideTimer']&&clearTimeout(this[_0x36b6b6(0x25c)]),this[_0x36b6b6(0x25c)]=setTimeout(()=>{const _0x31d73b=_0x36b6b6;this[_0x31d73b(0x408)]=!0x1;},0x7d0);});return()=>{const _0x5a6d39=_0x4f97e8;_0x7b1f5[_0x5a6d39(0x317)](),_0x4bf040[_0x5a6d39(0x317)]();};}[_0x3570f5(0x22f)](_0x2ddd92,_0x53bf09,_0x4a2ccd,_0x1f750b){const _0x4d549b=_0x3570f5,_0x3ce9b5=new a[(_0x4d549b(0x308))](_0x2ddd92)['setAlpha'](0.2)[_0x4d549b(0x306)](),_0x929ab4=new p[(_0x4d549b(0x2d1))](bt+a[_0x4d549b(0x331)](F),{'pointsGroup':_0x53bf09,'fill':_0x3ce9b5||p[_0x4d549b(0x30b)](a[_0x4d549b(0x3db)][_0x4d549b(0x329)],0.2),'left':_0x4a2ccd,'top':_0x1f750b,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4d549b(0x272)](_0x929ab4),this[_0x4d549b(0x2f4)][_0x4d549b(0x3e8)](_0x929ab4,E[_0x4d549b(0x1db)]);}[_0x3570f5(0x37a)](_0x57ded6,_0x1c7525,_0x5a86ac,_0x4dac79){const _0x3b597f=_0x3570f5,_0x3f799c=new a['ColorKit'](_0x57ded6)[_0x3b597f(0x307)](0.2)['toRgbString'](),_0x4dbf2c=new p[(_0x3b597f(0x2d1))](Ot+a['generateRandomId'](F),{'pointsGroup':_0x1c7525,'fill':_0x3f799c||p[_0x3b597f(0x30b)](a[_0x3b597f(0x3db)][_0x3b597f(0x329)],0.2),'left':_0x5a86ac,'top':_0x4dac79,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3b597f(0x194)][_0x3b597f(0x272)](_0x4dbf2c),this[_0x3b597f(0x2f4)][_0x3b597f(0x3e8)](_0x4dbf2c,E[_0x3b597f(0x1db)]);}[_0x3570f5(0x261)](_0x466773){const _0x3d8936=_0x466773[0x0],_0x1eaa54=_0x3d8936[0x0],_0x4914ae=_0x3d8936[0x2],{x:_0x159304,y:_0xdcef84}=_0x1eaa54,{x:_0x2dcfac,y:_0x4641a3}=_0x4914ae;return{'left':_0x159304,'top':_0xdcef84,'width':_0x2dcfac-_0x159304,'height':_0x4641a3-_0xdcef84};}[_0x3570f5(0x20c)](){const _0x1b8f67=_0x3570f5,{scaleX:_0x53ba49,scaleY:_0x55e34f}=this[_0x1b8f67(0x2f4)][_0x1b8f67(0x37c)]();return Math['max'](_0x53ba49,_0x55e34f);}}var Ut=Object['getOwnPropertyDescriptor'],Nt=(_0x334ec5,_0x48f616,_0x10188e,_0x111766)=>{for(var _0x161ded=_0x111766>0x1?void 0x0:_0x111766?Ut(_0x48f616,_0x10188e):_0x48f616,_0x35f497=_0x334ec5['length']-0x1,_0xf81be9;_0x35f497>=0x0;_0x35f497--)(_0xf81be9=_0x334ec5[_0x35f497])&&(_0x161ded=_0xf81be9(_0x161ded)||_0x161ded);return _0x161ded;},X=(_0x25a2f0,_0x1584d1)=>(_0x8c6495,_0x18b89a)=>_0x1584d1(_0x8c6495,_0x18b89a,_0x25a2f0);let fe=class extends a[_0x3570f5(0x210)]{constructor(_0x2be616,_0x39fd90,_0x3812f4,_0x8bb8e9,_0x3f413c){const _0x217da=_0x3570f5;super(),h(this,_0x217da(0x350),[]),h(this,_0x217da(0x2e7),[]),(this['_context']=_0x2be616,this[_0x217da(0x1b6)]=_0x39fd90,this['_collabCursorController']=_0x3812f4,this['_commandService']=_0x8bb8e9,this[_0x217da(0x193)]=_0x3f413c,this['_init']());}[_0x3570f5(0x403)](){const _0x23f9d6=_0x3570f5,_0x87415d=this[_0x23f9d6(0x2a2)][_0x23f9d6(0x410)],_0x2d55c4=this[_0x23f9d6(0x1b6)];this[_0x23f9d6(0x34d)](d['combineLatest']([this['_collabCursorController'][_0x23f9d6(0x407)](_0x87415d),this[_0x23f9d6(0x193)]['currentTheme$']])['pipe']($[_0x23f9d6(0x28e)](([_0x5b3df6,_0x399a29])=>({'skeleton':_0x2d55c4['getSkeleton'](),'cursors':[..._0x5b3df6[_0x23f9d6(0x22c)]()][_0x23f9d6(0x355)](_0x3b0e82=>({..._0x3b0e82,'color':this[_0x23f9d6(0x193)][_0x23f9d6(0x36d)](_0x3b0e82[_0x23f9d6(0x398)])}))})))[_0x23f9d6(0x3e4)](_0x65a4dd=>{const _0x5227a4=_0x23f9d6;if(this['_removeCollabCursors'](),_0x65a4dd){const {skeleton:_0x2c1163,cursors:_0x539e2b}=_0x65a4dd;this[_0x5227a4(0x387)](_0x2c1163,_0x539e2b);}})),this[_0x23f9d6(0x322)](),this[_0x23f9d6(0x3c2)]();}[_0x3570f5(0x387)](_0x30d5c8,_0x583bc8){const _0x120739=_0x3570f5,{scene:_0x9d2cb7,mainComponent:_0x4e5c7b}=this[_0x120739(0x2a2)],_0x188bd4=_0x583bc8['map'](_0x7276ac=>new Re(_0x7276ac,_0x9d2cb7,_0x30d5c8,_0x4e5c7b));this[_0x120739(0x350)]=_0x188bd4,this[_0x120739(0x2e7)]=_0x583bc8;}[_0x3570f5(0x25e)](){const _0x59c849=_0x3570f5;this[_0x59c849(0x3f1)]();const {scene:_0x5c3709,mainComponent:_0x4407b3}=this['_context'],_0x5255cd=this[_0x59c849(0x1b6)][_0x59c849(0x3ad)](),_0x38c76d=this[_0x59c849(0x2e7)][_0x59c849(0x28e)](_0xc1b344=>new Re(_0xc1b344,_0x5c3709,_0x5255cd,_0x4407b3));this[_0x59c849(0x350)]=_0x38c76d;}[_0x3570f5(0x3f1)](){const _0x37c07a=_0x3570f5;this[_0x37c07a(0x350)]['forEach'](_0x318cf8=>_0x318cf8[_0x37c07a(0x1cc)]()),this[_0x37c07a(0x350)]=[];}[_0x3570f5(0x3c2)](){const _0x50368e=_0x3570f5,_0x5440af=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x50368e(0x30d)][_0x50368e(0x23f)](_0x525d41=>{const _0x2764dd=_0x50368e;_0x5440af[_0x2764dd(0x2bd)](_0x525d41['id'])&&_0x525d41[_0x2764dd(0x31d)][_0x2764dd(0x410)]===this[_0x2764dd(0x2a2)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3570f5(0x322)](){const _0x431f8e=_0x3570f5;this[_0x431f8e(0x34d)](a[_0x431f8e(0x228)](this[_0x431f8e(0x2a2)][_0x431f8e(0x1bf)][_0x431f8e(0x1b7)])[_0x431f8e(0x2b1)]($['filter'](_0xdfee6b=>_0xdfee6b[_0x431f8e(0x297)]===p[_0x431f8e(0x24b)]['resize']),$[_0x431f8e(0x35d)](0x10))[_0x431f8e(0x3e4)](()=>{const _0x4618af=_0x431f8e;this[_0x4618af(0x25e)]();}));}};fe=Nt([X(0x1,a[_0x3570f5(0x1b9)](Y[_0x3570f5(0x375)])),X(0x2,a[_0x3570f5(0x1b9)](x)),X(0x3,a[_0x3570f5(0x25b)]),X(0x4,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x1ac)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x3570f5(0x345)]{constructor(_0x3497a3,_0x21bf74){const _0x3564ee=_0x3570f5;super(_0x3497a3,_0x21bf74),h(this,_0x3564ee(0x2f1)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x3564ee(0x270),''),h(this,_0x3564ee(0x33b),_0x3564ee(0x3f9)),h(this,'_backgroundColor'),(_0x21bf74&&this['setShapeProps'](_0x21bf74),this['onPointerEnter$'][_0x3564ee(0x1bb)](()=>this[_0x3564ee(0x3c6)]({'hovered':!0x0})),this[_0x3564ee(0x338)][_0x3564ee(0x1bb)](()=>this[_0x3564ee(0x3c6)]({'hovered':!0x1})));}['setShapeProps'](_0x5ad7e4){const _0x746aba=_0x3570f5;var _0x4a916c,_0x576d41,_0x27bb78,_0x441b99,_0x31aff5,_0x42ebc8;this[_0x746aba(0x2f1)]=(_0x4a916c=_0x5ad7e4['color'])!=null?_0x4a916c:this[_0x746aba(0x2f1)],this['_hovered']=(_0x576d41=_0x5ad7e4[_0x746aba(0x395)])!=null?_0x576d41:this[_0x746aba(0x366)],this[_0x746aba(0x374)]=(_0x27bb78=_0x5ad7e4[_0x746aba(0x340)])!=null?_0x27bb78:this['_range'],this[_0x746aba(0x270)]=(_0x441b99=_0x5ad7e4[_0x746aba(0x2e4)])!=null?_0x441b99:this['_name'],this[_0x746aba(0x33b)]=(_0x31aff5=_0x5ad7e4[_0x746aba(0x2fe)])!=null?_0x31aff5:this[_0x746aba(0x33b)],this[_0x746aba(0x286)]=(_0x42ebc8=_0x5ad7e4[_0x746aba(0x3ef)])!=null?_0x42ebc8:this[_0x746aba(0x286)],this[_0x746aba(0x31f)]({'width':_0x5ad7e4['width'],'height':_0x5ad7e4[_0x746aba(0x305)]});}['onMouseMove'](_0x5616fe){const _0x19949a=_0x3570f5,{row:_0x2358f6,column:_0x1bb821}=_0x5616fe;if(_0x2358f6>=this[_0x19949a(0x374)][_0x19949a(0x2c9)]&&_0x2358f6<=this[_0x19949a(0x374)]['endRow']&&_0x1bb821>=this[_0x19949a(0x374)][_0x19949a(0x3cb)]&&_0x1bb821<=this[_0x19949a(0x374)][_0x19949a(0x2cf)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x19949a(0x3c6)]({'hovered':!0x1});}[_0x3570f5(0x219)](_0xbaf620){return!0x1;}[_0x3570f5(0x2ff)](_0x545110){const _0x1b0790=_0x3570f5;p[_0x1b0790(0x3c8)][_0x1b0790(0x38b)](_0x545110,{'width':this[_0x1b0790(0x33c)],'height':this['height'],'strokeWidth':Lt,'stroke':this[_0x1b0790(0x2f1)],'evented':!0x1,'fill':this[_0x1b0790(0x286)]}),this[_0x1b0790(0x366)]&&(_0x545110[_0x1b0790(0x217)](),_0x545110[_0x1b0790(0x33e)](0x1,0x0,0x0,0x1,this[_0x1b0790(0x33c)],this[_0x1b0790(0x33b)]===_0x1b0790(0x287)?0x0:-W),ee[_0x1b0790(0x38b)](_0x545110,{'text':this[_0x1b0790(0x270)],'color':this[_0x1b0790(0x2f1)]}),_0x545110[_0x1b0790(0x382)]());}}var Pt=Object[_0x3570f5(0x216)],wt=(_0x356715,_0x5ef3b9,_0xa62025,_0x44b14d)=>{const _0x1610e5=_0x3570f5;for(var _0x37a7b8=_0x44b14d>0x1?void 0x0:_0x44b14d?Pt(_0x5ef3b9,_0xa62025):_0x5ef3b9,_0x13cea1=_0x356715[_0x1610e5(0x367)]-0x1,_0xdfdaa2;_0x13cea1>=0x0;_0x13cea1--)(_0xdfdaa2=_0x356715[_0x13cea1])&&(_0x37a7b8=_0xdfdaa2(_0x37a7b8)||_0x37a7b8);return _0x37a7b8;},ae=(_0x171f18,_0x5c37f0)=>(_0x5115cf,_0x2df9b8)=>_0x5c37f0(_0x5115cf,_0x2df9b8,_0x171f18);const At=0x1389;let Ie=class extends a[_0x3570f5(0x210)]{constructor(_0x1fb010,_0x11c61c,_0x54eca1,_0xc9d3f3){const _0x1f0e9a=_0x3570f5;super(),h(this,'_cursors',new Set()),h(this,_0x1f0e9a(0x243),null),(this[_0x1f0e9a(0x2a2)]=_0x1fb010,this['_sheetSkeletonManagerService']=_0x11c61c,this['_collabCursorController']=_0x54eca1,this[_0x1f0e9a(0x193)]=_0xc9d3f3,this[_0x1f0e9a(0x403)]());}[_0x3570f5(0x403)](){const _0x474dcb=_0x3570f5;this[_0x474dcb(0x3de)][_0x474dcb(0x1f1)][_0x474dcb(0x2b1)]($[_0x474dcb(0x21e)](this[_0x474dcb(0x293)]),$['switchMap'](_0x24b4c6=>{const _0x59e0c1=_0x474dcb;if(_0x24b4c6){const _0x5510ef=_0x24b4c6[_0x59e0c1(0x41c)];return d['combineLatest'](this[_0x59e0c1(0x40f)][_0x59e0c1(0x407)](this[_0x59e0c1(0x2a2)][_0x59e0c1(0x410)]),this[_0x59e0c1(0x193)][_0x59e0c1(0x419)])['pipe']($[_0x59e0c1(0x28e)](([_0x735890,_0x31acb8])=>{const _0x49aa04=_0x59e0c1,_0x1581fa=new Map();return _0x735890[_0x49aa04(0x2b3)]((_0x992a9c,_0xa0dfb8)=>{const _0x5171b9=_0x49aa04;if(_0x992a9c[_0x5171b9(0x364)]===_0x5510ef){const _0x614db9={..._0x992a9c};_0x614db9[_0x5171b9(0x398)]=this['_themeService'][_0x5171b9(0x36d)](_0x992a9c[_0x5171b9(0x398)]),_0x1581fa['set'](_0xa0dfb8,_0x614db9);}}),{'skeleton':_0x24b4c6,'cursors':_0x1581fa};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x35e20c,cursors:_0x112373})=>{const _0x3e536c=_0x474dcb;this['_removeCollabCursors'](),_0x35e20c&&this[_0x3e536c(0x387)](_0x35e20c,_0x112373);}),this[_0x474dcb(0x3de)][_0x474dcb(0x1f1)][_0x474dcb(0x3e4)](_0x2f6874=>{const _0x1e338d=_0x474dcb;if(_0x2f6874==null)return;const {skeleton:_0x1fec33}=_0x2f6874,{scene:_0x409258}=this[_0x1e338d(0x2a2)];_0x409258[_0x1e338d(0x247)][_0x1e338d(0x1bb)](a['debounce'](_0x140a4d=>{const _0x451ae3=_0x1e338d;var _0x27d21a,_0x36af8f;const {offsetX:_0x2da098,offsetY:_0x1582f9}=_0x140a4d,{x:_0x56cf39,y:_0x267b25}=_0x409258[_0x451ae3(0x3cf)](p[_0x451ae3(0x26f)]['FromArray']([_0x2da098,_0x1582f9])),{scaleX:_0x43f696,scaleY:_0x1c1283}=_0x409258[_0x451ae3(0x37c)](),_0xf9f0d3=_0x409258[_0x451ae3(0x3d5)](p[_0x451ae3(0x200)][_0x451ae3(0x1be)]),_0x2144f2=_0x409258[_0x451ae3(0x3b7)](p[_0x451ae3(0x26f)]['FromArray']([_0x56cf39,_0x267b25]),_0xf9f0d3),_0x39e7b9=_0x1fec33['getCellPositionByOffset'](_0x2da098,_0x1582f9,_0x43f696,_0x1c1283,_0x2144f2);((_0x27d21a=this[_0x451ae3(0x243)])==null?void 0x0:_0x27d21a['column'])===_0x39e7b9[_0x451ae3(0x40c)]&&((_0x36af8f=this['_lastPointer'])==null?void 0x0:_0x36af8f['row'])===_0x39e7b9[_0x451ae3(0x1e1)]||this[_0x451ae3(0x2e7)][_0x451ae3(0x2b3)](_0x58f8dd=>{const _0x88f15d=_0x451ae3;_0x58f8dd[_0x88f15d(0x269)](_0x39e7b9);});},0x64));});}[_0x3570f5(0x387)](_0x2562e1,_0x36d26f){const _0x4c8338=_0x3570f5;var _0x1907b5;const _0x36f417=(_0x1907b5=this[_0x4c8338(0x3de)][_0x4c8338(0x1d8)]())==null?void 0x0:_0x1907b5[_0x4c8338(0x2f2)];if(!_0x36f417)return;const _0x31d9d6=this[_0x4c8338(0x25f)]();if(!_0x31d9d6)return;this[_0x4c8338(0x2e7)]['forEach'](_0x48bbf4=>{const _0x5a4b6a=_0x4c8338;_0x48bbf4[_0x5a4b6a(0x2a1)]();});const {scene:_0x576919}=_0x31d9d6,_0x2ee9ba=yt(Array[_0x4c8338(0x2a9)](_0x36d26f[_0x4c8338(0x22c)]()))[_0x4c8338(0x28e)](_0x222946=>{const _0xbe3db3=_0x4c8338,{color:_0x121dce,range:_0xa76299,name:_0x2e9d7d,selection:_0x42301c,sheetID:_0x53634}=_0x222946,{startColumn:_0x34db60,startRow:_0x23b93b,endColumn:_0xbd64e8,endRow:_0xcd3336}=_0xa76299,_0x47bc42=G[_0xbe3db3(0x35e)](_0x23b93b,_0x34db60,_0x576919,_0x36f417),_0x5316f2=G[_0xbe3db3(0x35e)](_0xcd3336,_0xbd64e8,_0x576919,_0x36f417),{columnHeaderHeightAndMarginTop:_0x57d885}=_0x36f417,{startX:_0x2b3a4e,startY:_0x2a48fd}=_0x47bc42,{endX:_0x46828e,endY:_0x438f77}=_0x5316f2,_0x6c8b68=_0x46828e-_0x2b3a4e,_0x35d759=_0x438f77-_0x2a48fd,_0x5792ee={'labelPosition':_0x2a48fd-_0x57d885>=W?_0xbe3db3(0x3f9):_0xbe3db3(0x287),'sheetID':_0x53634,'range':_0xa76299,'color':_0x121dce,'name':_0x2e9d7d,'selection':_0x42301c,'left':_0x2b3a4e,'top':_0x2a48fd,'width':_0x6c8b68,'height':_0x35d759,'evented':!0x1,'zIndex':At};return new $e(_0x2e9d7d,_0x5792ee);});_0x576919[_0x4c8338(0x231)](_0x2ee9ba,Mt),this[_0x4c8338(0x2e7)]=new Set(_0x2ee9ba);}[_0x3570f5(0x3f1)](){const _0x3f5a2b=_0x3570f5;var _0x4805bd;(_0x4805bd=this[_0x3f5a2b(0x2e7)])==null||_0x4805bd['forEach'](_0xaa0d52=>_0xaa0d52[_0x3f5a2b(0x1cc)]());}[_0x3570f5(0x25f)](){const _0x4eea07=_0x3570f5;return G[_0x4eea07(0x233)](this[_0x4eea07(0x2a2)]['unit'],this['_context']);}};Ie=wt([ae(0x1,a[_0x3570f5(0x1b9)](G[_0x3570f5(0x39a)])),ae(0x2,a[_0x3570f5(0x1b9)](x)),ae(0x3,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x1ac)]))],Ie);function yt(_0x28e8e6){const _0x489186=_0x3570f5,_0xbe8aff=new Map();return _0x28e8e6['forEach'](_0x4b5092=>{const _0x152fcf=_0x3d45;if(_0xbe8aff['has'](_0x4b5092[_0x152fcf(0x244)])){const _0x3aaa3a=_0xbe8aff[_0x152fcf(0x33a)](_0x4b5092['selection']);_0x3aaa3a[_0x152fcf(0x2e4)]+=',\x20'+_0x4b5092['name'];}else _0xbe8aff[_0x152fcf(0x41b)](_0x4b5092[_0x152fcf(0x244)],_0x4b5092);}),Array[_0x489186(0x2a9)](_0xbe8aff[_0x489186(0x22c)]());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x52b990,_0x238789,_0x34256f,_0x459d7f)=>{const _0x716675=_0x3570f5;for(var _0x73327d=_0x459d7f>0x1?void 0x0:_0x459d7f?$t(_0x238789,_0x34256f):_0x238789,_0x4c78e7=_0x52b990[_0x716675(0x367)]-0x1,_0x4ebf4e;_0x4c78e7>=0x0;_0x4c78e7--)(_0x4ebf4e=_0x52b990[_0x4c78e7])&&(_0x73327d=_0x4ebf4e(_0x73327d)||_0x73327d);return _0x73327d;},y=(_0x4fb3e1,_0x51b43b)=>(_0x151baf,_0x5b9644)=>_0x51b43b(_0x151baf,_0x5b9644,_0x4fb3e1);let q=class extends a['Disposable']{constructor(_0x1c0683,_0xd347d6,_0x1f8d78,_0xdf8bf2,_0x3a1dd3,_0x5ce3a5){const _0x398509=_0x3570f5;super(),this[_0x398509(0x3ab)]=_0x1c0683,this[_0x398509(0x215)]=_0xd347d6,this[_0x398509(0x1ad)]=_0x1f8d78,this['_messageService']=_0xdf8bf2,this['_notificationService']=_0x3a1dd3,this[_0x398509(0x32e)]=_0x5ce3a5,this[_0x398509(0x2c5)](),this[_0x398509(0x1df)]();}[_0x3570f5(0x2c5)](){const _0x19d7d4=_0x3570f5;this[_0x19d7d4(0x34d)](this[_0x19d7d4(0x3ab)][_0x19d7d4(0x311)](()=>{const _0x3e493e=_0x19d7d4;if(this[_0x3e493e(0x215)][_0x3e493e(0x404)][_0x3e493e(0x22a)])return this[_0x3e493e(0x32e)]['t'](_0x3e493e(0x1ab));}));}[_0x3570f5(0x1df)](){const _0x32f0de=_0x3570f5;this[_0x32f0de(0x34d)](this['_collaborationUIEventService'][_0x32f0de(0x384)][_0x32f0de(0x3e4)](_0x5da3f6=>{const _0x43c696=_0x32f0de;_0x5da3f6['id']===u[_0x43c696(0x2cb)]['OTHER_CLIENT_EDITING']&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x204)],'content':this['_localeService']['t'](_0x43c696(0x3f8))}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x321)]&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)]['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x5da3f6['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x43c696(0x2d7)]['show']({'title':this[_0x43c696(0x32e)]['t'](_0x43c696(0x220)),'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x2df)),'type':_0x43c696(0x26c),'duration':0x0}),_0x5da3f6['id']===u[_0x43c696(0x2cb)]['CONFLICT']&&this[_0x43c696(0x1b3)]['show']({'type':D['MessageType'][_0x43c696(0x280)],'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x27b))+'('+_0x5da3f6[_0x43c696(0x33f)]+')'}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x3c5)]&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x204)],'content':this[_0x43c696(0x32e)]['t'](_0x5da3f6['data']||'')}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x32c)]&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x204)],'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x1a6))}),_0x5da3f6['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x43c696(0x1b3)][_0x43c696(0x3c7)]({'type':D[_0x43c696(0x3ac)][_0x43c696(0x280)],'content':this['_localeService']['t'](_0x43c696(0x32a))}),_0x5da3f6['id']===u[_0x43c696(0x2cb)][_0x43c696(0x3fb)]&&this[_0x43c696(0x1b3)]['show']({'type':D['MessageType']['Error'],'content':this[_0x43c696(0x32e)]['t'](_0x43c696(0x19a))});}));}};q=xt([y(0x0,O[_0x3570f5(0x1a2)]),y(0x1,u[_0x3570f5(0x1f0)]),y(0x2,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x3e0)])),y(0x3,O[_0x3570f5(0x3b6)]),y(0x4,O[_0x3570f5(0x2a0)]),y(0x5,a['Inject'](a[_0x3570f5(0x347)]))],q);const Bt=_0x3570f5(0x273),De={};var jt=Object[_0x3570f5(0x216)],kt=(_0x153844,_0x4e66af,_0x46aa18,_0x15c0ae)=>{const _0x3636a9=_0x3570f5;for(var _0xc8fa72=_0x15c0ae>0x1?void 0x0:_0x15c0ae?jt(_0x4e66af,_0x46aa18):_0x4e66af,_0x3e6be6=_0x153844[_0x3636a9(0x367)]-0x1,_0x417e21;_0x3e6be6>=0x0;_0x3e6be6--)(_0x417e21=_0x153844[_0x3e6be6])&&(_0xc8fa72=_0x417e21(_0xc8fa72)||_0xc8fa72);return _0xc8fa72;},Ue=(_0x5e9448,_0x3afc25)=>(_0x4f614d,_0x4b10e9)=>_0x3afc25(_0x4f614d,_0x4b10e9,_0x5e9448);let z=class{constructor(_0x4a8912,_0x5eeaaf){const _0x380b98=_0x3570f5;this['_transformService']=_0x4a8912,this[_0x380b98(0x319)]=_0x5eeaaf;}['transformIMECache'](_0x19b994){const _0x463986=_0x3570f5;this[_0x463986(0x2b5)](_0x19b994),this['_transformPreviousActiveRange'](_0x19b994);}[_0x3570f5(0x2ed)](_0x37c966){const _0x2f3f4b=_0x3570f5,{unitID:_0x24b533}=_0x37c966,_0x2e9e9c=this[_0x2f3f4b(0x319)]['getRenderById'](_0x24b533)['with'](E[_0x2f3f4b(0x299)]),{redoCache:_0x4acb34}=_0x2e9e9c[_0x2f3f4b(0x26e)]();if(_0x4acb34[_0x2f3f4b(0x367)]===0x0)return _0x37c966;let _0xd7ceaf=a[_0x2f3f4b(0x197)]['deepClone'](_0x37c966[_0x2f3f4b(0x225)][0x0]);for(let _0x4921f6=0x0;_0x4921f6<_0x4acb34[_0x2f3f4b(0x367)];_0x4921f6++){const _0x2ba3e5={'id':'doc.mutation.rich-text-editing','params':{..._0x4acb34[_0x4921f6]}},_0x2ce974=this[_0x2f3f4b(0x28c)]['transformMutation'](_0xd7ceaf,_0x2ba3e5,!0x1);if(m[_0x2f3f4b(0x211)](_0x2ce974))throw _0x2ce974['error'];_0xd7ceaf=_0x2ce974['m1Prime'];}return{...a[_0x2f3f4b(0x197)]['deepClone'](_0x37c966),'mutations':[_0xd7ceaf]};}[_0x3570f5(0x2b5)](_0x154404){const _0x270e0a=_0x3570f5,{unitID:_0x5b54cb}=_0x154404,_0xad9f1d=this[_0x270e0a(0x319)][_0x270e0a(0x1da)](_0x5b54cb)['with'](E[_0x270e0a(0x299)]),{undoCache:_0xede0c0,redoCache:_0x1b13f5}=_0xad9f1d[_0x270e0a(0x26e)]();if(_0xede0c0[_0x270e0a(0x367)]===0x0||_0x1b13f5[_0x270e0a(0x367)]===0x0)return;const _0x46d3e2=[],_0x1545ca=[];let _0xb5ee2d=a[_0x270e0a(0x197)][_0x270e0a(0x37d)](_0x154404[_0x270e0a(0x225)][0x0]),_0x361aa6=a[_0x270e0a(0x197)]['deepClone'](_0x154404[_0x270e0a(0x225)][0x0]);for(let _0x2dcab2=_0xede0c0[_0x270e0a(0x367)]-0x1;_0x2dcab2>=0x0;_0x2dcab2--){const _0x12d6a9={'id':'doc.mutation.rich-text-editing','params':{..._0xede0c0[_0x2dcab2]}},_0x51655e={'id':'doc.mutation.rich-text-editing','params':{..._0x1b13f5[_0x2dcab2]}},_0x3668eb=this[_0x270e0a(0x28c)][_0x270e0a(0x263)](_0xb5ee2d,_0x12d6a9,!0x1),_0x30ca6b=this[_0x270e0a(0x28c)][_0x270e0a(0x263)](_0x361aa6,_0x51655e,!0x1);if(m[_0x270e0a(0x211)](_0x3668eb))throw _0x3668eb[_0x270e0a(0x26c)];if(m[_0x270e0a(0x211)](_0x30ca6b))throw _0x30ca6b[_0x270e0a(0x26c)];_0x46d3e2[_0x270e0a(0x35c)](_0x3668eb['m2Prime']['params']),_0x1545ca['unshift'](_0x30ca6b[_0x270e0a(0x1e6)]['params']),_0xb5ee2d=_0x3668eb[_0x270e0a(0x3ee)],_0x361aa6=_0x30ca6b[_0x270e0a(0x3ee)];}_0xad9f1d[_0x270e0a(0x3fa)]({'undoCache':_0x46d3e2,'redoCache':_0x1545ca});}[_0x3570f5(0x295)](_0x32247a){const _0x214f05=_0x3570f5,{unitID:_0x8c728b}=_0x32247a,_0x103395=this['_renderManagerService']['getRenderById'](_0x8c728b)[_0x214f05(0x21c)](E['DocIMEInputManagerService']),_0x361ef7=_0x103395[_0x214f05(0x3cc)]();if(_0x361ef7==null)return;const _0x392296=[{'id':_0x214f05(0x1b8),'params':{'unitId':_0x32247a[_0x214f05(0x260)],'actions':null,'textRanges':[_0x361ef7]}}],_0xdfee6a=this[_0x214f05(0x28c)][_0x214f05(0x1aa)](_0x32247a,_0x392296);if(!m[_0x214f05(0x41d)](_0xdfee6a))throw _0xdfee6a['error'];const _0x471047=_0xdfee6a['m2Prime'][0x0][_0x214f05(0x31d)][_0x214f05(0x196)];Array['isArray'](_0x471047)&&_0x471047[_0x214f05(0x367)]&&_0x103395[_0x214f05(0x333)](_0x471047[0x0]);}};z=kt([Ue(0x0,m[_0x3570f5(0x326)]),Ue(0x1,p[_0x3570f5(0x20e)])],z);var Ft=Object[_0x3570f5(0x216)],Ht=(_0x4189b0,_0x2d9cad,_0x33d070,_0x37cca9)=>{for(var _0x2c047f=_0x37cca9>0x1?void 0x0:_0x37cca9?Ft(_0x2d9cad,_0x33d070):_0x2d9cad,_0x1c407e=_0x4189b0['length']-0x1,_0x194fcf;_0x1c407e>=0x0;_0x1c407e--)(_0x194fcf=_0x4189b0[_0x1c407e])&&(_0x2c047f=_0x194fcf(_0x2c047f)||_0x2c047f);return _0x2c047f;},ce=(_0x3e1b4c,_0xd9775a)=>(_0x44e9d6,_0x2db009)=>_0xd9775a(_0x44e9d6,_0x2db009,_0x3e1b4c);let J=class{constructor(_0x5e2f4d,_0x2b6fd8,_0xb570d0){const _0x4f7090=_0x3570f5;this[_0x4f7090(0x376)]=_0x5e2f4d,this[_0x4f7090(0x28c)]=_0x2b6fd8,this[_0x4f7090(0x402)]=_0xb570d0;}[_0x3570f5(0x1d7)](_0x44c7a9){const _0xf498d7=_0x3570f5;this[_0xf498d7(0x309)](_0x44c7a9);}[_0x3570f5(0x2ed)](_0x548c69){const _0x2198bc=_0x3570f5,{unitID:_0x121f00}=_0x548c69,{collaboration:_0x5dc574}=this[_0x2198bc(0x402)][_0x2198bc(0x31e)](_0x121f00);if(_0x5dc574[_0x2198bc(0x367)]===0x0)return _0x548c69;let _0x3b4518=a['Tools']['deepClone'](_0x548c69['mutations'][0x0]);for(let _0x23f72d=0x0;_0x23f72d<_0x5dc574['length'];_0x23f72d++){const _0x5a8b7d={'id':_0x2198bc(0x1b8),'params':{'unitId':_0x5dc574[_0x23f72d][_0x2198bc(0x410)],..._0x5dc574[_0x23f72d][_0x2198bc(0x1a3)]}},_0x5821c7=this['_transformService'][_0x2198bc(0x263)](_0x3b4518,_0x5a8b7d,!0x1);if(m[_0x2198bc(0x211)](_0x5821c7))throw _0x5821c7[_0x2198bc(0x26c)];_0x3b4518=_0x5821c7[_0x2198bc(0x3ee)];}return{...a[_0x2198bc(0x197)]['deepClone'](_0x548c69),'mutations':[_0x3b4518]};}[_0x3570f5(0x309)](_0x200f9f){const _0x3b6cb0=_0x3570f5,{unitID:_0x938411}=_0x200f9f,{history:_0x483e8b,collaboration:_0x4cd8a0}=this[_0x3b6cb0(0x402)]['getStateCache'](_0x938411);if(_0x483e8b[_0x3b6cb0(0x367)]===0x0&&_0x4cd8a0[_0x3b6cb0(0x367)]===0x0)return;const _0x5e5f2a=[],_0x5db268=[];let _0x4ab7e0=a[_0x3b6cb0(0x197)][_0x3b6cb0(0x37d)](_0x200f9f[_0x3b6cb0(0x225)][0x0]),_0x4c60db=a[_0x3b6cb0(0x197)]['deepClone'](_0x200f9f[_0x3b6cb0(0x225)][0x0]);for(let _0x4c9d2f=_0x483e8b['length']-0x1;_0x4c9d2f>=0x0;_0x4c9d2f--){const _0x4bc278={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x483e8b[_0x4c9d2f][_0x3b6cb0(0x410)],..._0x483e8b[_0x4c9d2f]['undoState']}},_0x1dd6f3={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x483e8b[_0x4c9d2f][_0x3b6cb0(0x410)],..._0x483e8b[_0x4c9d2f][_0x3b6cb0(0x1a3)]}},_0x3062de=this[_0x3b6cb0(0x28c)][_0x3b6cb0(0x263)](_0x4ab7e0,_0x4bc278,!0x1),_0xc9b036=this['_transformService'][_0x3b6cb0(0x263)](_0x4c60db,_0x1dd6f3,!0x1);if(m[_0x3b6cb0(0x211)](_0x3062de))throw _0x3062de['error'];if(m['isTransformMutationFailure'](_0xc9b036))throw _0xc9b036[_0x3b6cb0(0x26c)];_0x5e5f2a[_0x3b6cb0(0x35c)]({..._0x483e8b[_0x4c9d2f],'undoState':_0x3062de[_0x3b6cb0(0x1e6)][_0x3b6cb0(0x31d)],'redoState':_0xc9b036[_0x3b6cb0(0x1e6)][_0x3b6cb0(0x31d)]}),_0x4ab7e0=_0x3062de['m1Prime'],_0x4c60db=_0xc9b036[_0x3b6cb0(0x3ee)];}_0x4ab7e0=a[_0x3b6cb0(0x197)][_0x3b6cb0(0x37d)](_0x200f9f['mutations'][0x0]),_0x4c60db=a[_0x3b6cb0(0x197)]['deepClone'](_0x200f9f[_0x3b6cb0(0x225)][0x0]);for(let _0x49ef53=_0x4cd8a0[_0x3b6cb0(0x367)]-0x1;_0x49ef53>=0x0;_0x49ef53--){const _0x330dfe={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x4cd8a0[_0x49ef53][_0x3b6cb0(0x410)],..._0x4cd8a0[_0x49ef53][_0x3b6cb0(0x257)]}},_0xbdabad={'id':_0x3b6cb0(0x1b8),'params':{'unitId':_0x4cd8a0[_0x49ef53][_0x3b6cb0(0x410)],..._0x4cd8a0[_0x49ef53][_0x3b6cb0(0x1a3)]}},_0x3f6bb0=this[_0x3b6cb0(0x28c)]['transformMutation'](_0x4ab7e0,_0x330dfe,!0x1),_0x492e85=this[_0x3b6cb0(0x28c)][_0x3b6cb0(0x263)](_0x4c60db,_0xbdabad,!0x1);if(m[_0x3b6cb0(0x211)](_0x3f6bb0))throw _0x3f6bb0[_0x3b6cb0(0x26c)];if(m[_0x3b6cb0(0x211)](_0x492e85))throw _0x492e85['error'];_0x5db268[_0x3b6cb0(0x35c)]({..._0x4cd8a0[_0x49ef53],'undoState':_0x3f6bb0[_0x3b6cb0(0x1e6)][_0x3b6cb0(0x31d)],'redoState':_0x492e85['m2Prime'][_0x3b6cb0(0x31d)]}),_0x4ab7e0=_0x3f6bb0[_0x3b6cb0(0x3ee)],_0x4c60db=_0x492e85['m1Prime'];}this[_0x3b6cb0(0x402)][_0x3b6cb0(0x23c)](_0x938411,{'history':_0x5e5f2a,'collaboration':_0x5db268});}};J=Ht([ce(0x0,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),ce(0x1,m[_0x3570f5(0x326)]),ce(0x2,a[_0x3570f5(0x1b9)](E[_0x3570f5(0x226)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x48724b,_0x21d867,_0x496193,_0x4fc361)=>{for(var _0x37a234=_0x4fc361>0x1?void 0x0:_0x4fc361?Yt(_0x21d867,_0x496193):_0x21d867,_0x4e7bf4=_0x48724b['length']-0x1,_0x192f74;_0x4e7bf4>=0x0;_0x4e7bf4--)(_0x192f74=_0x48724b[_0x4e7bf4])&&(_0x37a234=_0x192f74(_0x37a234)||_0x37a234);return _0x37a234;},Ne=(_0x32c123,_0x4b0f11)=>(_0x380370,_0x1a5370)=>_0x4b0f11(_0x380370,_0x1a5370,_0x32c123);let Z=class{constructor(_0x4c4b47,_0x10aa72){const _0x23d9db=_0x3570f5;this[_0x23d9db(0x376)]=_0x4c4b47,this[_0x23d9db(0x28c)]=_0x10aa72;}[_0x3570f5(0x198)](_0x12d99c){const _0x388436=_0x3570f5;var _0x551d19;const _0x390189=this[_0x388436(0x376)][_0x388436(0x33a)](Y[_0x388436(0x1a8)]),_0x4839f8=(_0x551d19=_0x390189[_0x388436(0x2e9)]())!=null?_0x551d19:[];if(_0x4839f8['length']===0x0)return;const _0x25dfac=_0x12d99c[_0x388436(0x260)],_0x3db88e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x25dfac,'actions':null,'textRanges':_0x4839f8}}],_0x32475a=this[_0x388436(0x28c)][_0x388436(0x1aa)](_0x12d99c,_0x3db88e);if(!m['isTransformMutationsWithChangesetSuccess'](_0x32475a))throw _0x32475a['error'];const _0x3e7571=_0x32475a[_0x388436(0x1e6)][0x0][_0x388436(0x31d)][_0x388436(0x196)];Array[_0x388436(0x22b)](_0x3e7571)&&_0x3e7571['length']&&_0x390189[_0x388436(0x248)](_0x3e7571,{'unitId':_0x25dfac,'subUnitId':_0x25dfac},!0x1);}};Z=Wt([Ne(0x0,a[_0x3570f5(0x1b9)](a['Injector'])),Ne(0x1,m[_0x3570f5(0x326)])],Z);var Vt=Object[_0x3570f5(0x216)],Xt=(_0x3cbeaa,_0x561024,_0x27c9e7,_0x2c5b7b)=>{const _0x2a104e=_0x3570f5;for(var _0x4b614c=_0x2c5b7b>0x1?void 0x0:_0x2c5b7b?Vt(_0x561024,_0x27c9e7):_0x561024,_0x500b12=_0x3cbeaa[_0x2a104e(0x367)]-0x1,_0xfd698e;_0x500b12>=0x0;_0x500b12--)(_0xfd698e=_0x3cbeaa[_0x500b12])&&(_0x4b614c=_0xfd698e(_0x4b614c)||_0x4b614c);return _0x4b614c;},N=(_0x3951c0,_0x42ed32)=>(_0x55722b,_0x55c795)=>_0x42ed32(_0x55722b,_0x55c795,_0x3951c0);let Q=class extends a[_0x3570f5(0x3cd)]{constructor(_0x18b502,_0x197f97,_0x21f853,_0x356320,_0x46fa5a,_0x4504fc,_0x1785f6,_0x1cb6e7){const _0x59b428=_0x3570f5;super(),h(this,_0x59b428(0x288),new d[(_0x59b428(0x35b))](u[_0x59b428(0x290)][_0x59b428(0x1bc)])),(this[_0x59b428(0x402)]=_0x18b502,this['_collaborationController']=_0x197f97,this[_0x59b428(0x3d8)]=_0x21f853,this['_docTransformStateCacheService']=_0x356320,this[_0x59b428(0x34a)]=_0x46fa5a,this[_0x59b428(0x3eb)]=_0x4504fc,this[_0x59b428(0x1b3)]=_0x1785f6,this[_0x59b428(0x32e)]=_0x1cb6e7,this[_0x59b428(0x3bb)]());}[_0x3570f5(0x3bb)](){const _0x3dd134=_0x3570f5;this[_0x3dd134(0x34d)](this[_0x3dd134(0x1eb)][_0x3dd134(0x2f6)][_0x3dd134(0x3e4)](_0x1e72ff=>{const _0x24a269=_0x3dd134,_0x5aa130=this[_0x24a269(0x402)][_0x24a269(0x296)][_0x24a269(0x3e4)](_0x1b8cb7=>{const _0x2763f9=_0x24a269;if(_0x1b8cb7==null)return;const {unitId:_0x274ba9,redoState:_0x30ac9b,commandId:_0x9d127c}=_0x1b8cb7;if(_0x274ba9!==_0x1e72ff[_0x2763f9(0x260)])return;const _0x58da69={'id':_0x9d127c,'type':a[_0x2763f9(0x2d9)]['MUTATION'],'params':{'unitId':_0x274ba9,'actions':_0x30ac9b[_0x2763f9(0x2a6)],'textRanges':null}};_0x1e72ff['onLocalMutation'](_0x58da69);});if(_0x1e72ff[_0x24a269(0x34d)](_0x5aa130),_0x1e72ff instanceof u[_0x24a269(0x3dc)]){const _0x3f828f={'onTransformIME':_0x16b96b=>this[_0x24a269(0x3d8)][_0x24a269(0x276)](_0x16b96b),'onTransformState':_0x35a294=>this[_0x24a269(0x264)][_0x24a269(0x1d7)](_0x35a294),'onTransformSelections':_0x5c908=>this[_0x24a269(0x34a)]['transformSelections'](_0x5c908),'onSyncEditingCollabCursor':_0x57dd24=>this[_0x24a269(0x3eb)][_0x24a269(0x2aa)](_0x57dd24),'onTransformRemoteChangesetByIMECache':_0x409617=>this[_0x24a269(0x3d8)]['transformRemoteChangeset'](_0x409617),'onTransformRemoteChangesetByStateCache':_0x431e50=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x431e50)};_0x1e72ff[_0x24a269(0x27e)](_0x3f828f);}}));}};Q=Xt([N(0x0,a[_0x3570f5(0x1b9)](E[_0x3570f5(0x226)])),N(0x1,a[_0x3570f5(0x1b9)](u[_0x3570f5(0x254)])),N(0x2,a[_0x3570f5(0x1b9)](z)),N(0x3,a[_0x3570f5(0x1b9)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x3570f5(0x1b9)](pe)),N(0x6,O[_0x3570f5(0x3b6)]),N(0x7,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x347)]))],Q);var Gt=Object[_0x3570f5(0x216)],Kt=(_0x5039f1,_0x2312a2,_0x518c0b,_0x169dd1)=>{const _0x58446f=_0x3570f5;for(var _0x43afcb=_0x169dd1>0x1?void 0x0:_0x169dd1?Gt(_0x2312a2,_0x518c0b):_0x2312a2,_0x14c891=_0x5039f1[_0x58446f(0x367)]-0x1,_0x1c0357;_0x14c891>=0x0;_0x14c891--)(_0x1c0357=_0x5039f1[_0x14c891])&&(_0x43afcb=_0x1c0357(_0x43afcb)||_0x43afcb);return _0x43afcb;},le=(_0x3d26d4,_0x27068d)=>(_0x330d91,_0xdf214c)=>_0x27068d(_0x330d91,_0xdf214c,_0x3d26d4);let ve=class extends a[_0x3570f5(0x3cd)]{constructor(_0x4da99b,_0x404799,_0x1549fd){const _0x284499=_0x3570f5;super(),h(this,_0x284499(0x3a1),new Map()),h(this,_0x284499(0x1e2),new Map()),h(this,_0x284499(0x356),!0x1),(this['_configService']=_0x4da99b,this['_localStorageService']=_0x404799,this[_0x284499(0x335)]=_0x1549fd);}[_0x3570f5(0x2da)](){const _0x555e50=_0x3570f5;this[_0x555e50(0x356)]=!0x0;}['enableLocalCache'](){const _0x2b0086=_0x3570f5;this[_0x2b0086(0x356)]=!0x1;}get[_0x3570f5(0x404)](){return this['_saveTaskMap'];}[_0x3570f5(0x1cc)](){const _0x198c23=_0x3570f5;this['exhaustSavingTask']()['then'](()=>super[_0x198c23(0x1cc)]());}async[_0x3570f5(0x2c4)](_0x168511){const _0x4a964b=_0x3570f5;return this[_0x4a964b(0x356)]?null:this[_0x4a964b(0x30c)][_0x4a964b(0x3e1)](u[_0x4a964b(0x3f0)](_0x168511));}async[_0x3570f5(0x3e7)](_0x1a5cb0,_0x2aa92c){const _0x1710f9=_0x3570f5;return!!this[_0x1710f9(0x30c)][_0x1710f9(0x1d4)](_0x1a5cb0,_0x2aa92c);}[_0x3570f5(0x3ea)](_0x174a39,_0x2d1059,_0x5b1086,_0x146541){const _0x5b6a73=_0x3570f5,_0x15aadc=this[_0x5b6a73(0x335)]['getCurrentRevOfUnit'](_0x174a39);this[_0x5b6a73(0x3a1)][_0x5b6a73(0x41b)](_0x174a39,{'unitID':_0x174a39,'type':_0x2d1059,'awaitingChangeset':_0x5b1086,'mutations':_0x146541,'rev':_0x15aadc}),this[_0x5b6a73(0x1e2)]['has'](_0x174a39)||this[_0x5b6a73(0x2a7)](_0x174a39);}[_0x3570f5(0x2a7)](_0x7e0cae){const _0x50b5c6=_0x3570f5,_0x276857=this['_getSaveTimeout']();_0x276857===0x0?this[_0x50b5c6(0x3a8)](_0x7e0cae):this[_0x50b5c6(0x1e2)]['set'](_0x7e0cae,setTimeout(()=>this[_0x50b5c6(0x3a8)](_0x7e0cae),_0x276857));}[_0x3570f5(0x33d)](){const _0x36251c=_0x3570f5;var _0x11b41a;return(_0x11b41a=this[_0x36251c(0x2fb)][_0x36251c(0x361)](u[_0x36251c(0x3a6)]))!=null?_0x11b41a:u[_0x36251c(0x304)];}['_saveCache'](_0x4674f4){const _0x3b85ca=_0x3570f5,_0x5cad77=this['_saveTaskMap'][_0x3b85ca(0x33a)](_0x4674f4);return _0x5cad77!==void 0x0&&window[_0x3b85ca(0x23b)](_0x5cad77),this[_0x3b85ca(0x30c)][_0x3b85ca(0x1d4)](u[_0x3b85ca(0x3f0)](_0x4674f4),this[_0x3b85ca(0x3a1)][_0x3b85ca(0x33a)](_0x4674f4))[_0x3b85ca(0x2ee)](()=>this['_saveTaskMap']['delete'](_0x4674f4));}async[_0x3570f5(0x246)](){const _0x5bcffa=_0x3570f5,_0x2b9a3e=[];this[_0x5bcffa(0x1e2)][_0x5bcffa(0x2b3)]((_0x1f08ce,_0x5bf94b)=>{const _0x2af146=_0x5bcffa;window[_0x2af146(0x23b)](_0x1f08ce),_0x2b9a3e[_0x2af146(0x272)](this[_0x2af146(0x3a8)](_0x5bf94b)[_0x2af146(0x2ee)](()=>{const _0x5a761a=_0x2af146;this[_0x5a761a(0x1e2)][_0x5a761a(0x316)](_0x5bf94b);}));}),await Promise['all'](_0x2b9a3e);}};ve=Kt([le(0x0,a[_0x3570f5(0x1ae)]),le(0x1,a[_0x3570f5(0x27d)]),le(0x2,a['Inject'](m[_0x3570f5(0x414)]))],ve);class xe extends a[_0x3570f5(0x210)]{constructor(){const _0x404eef=_0x3570f5;super(),h(this,_0x404eef(0x3c0)),this[_0x404eef(0x3c0)]=d[_0x404eef(0x1ba)](window,'popstate')[_0x404eef(0x2b1)](d[_0x404eef(0x21e)](this[_0x404eef(0x293)]),d[_0x404eef(0x258)](0x1),d[_0x404eef(0x253)](void 0x0));}['setParam'](_0x110a37,_0x21eead,_0x3da4e6=!0x1){const _0x175e8b=_0x3570f5,_0x4da722=new URL(window[_0x175e8b(0x1cb)][_0x175e8b(0x2d0)]);_0x4da722[_0x175e8b(0x348)]['set'](_0x110a37,_0x21eead),_0x3da4e6?window[_0x175e8b(0x1f4)][_0x175e8b(0x289)]('','',_0x4da722['toString']()):window[_0x175e8b(0x1f4)]['pushState']('','',_0x4da722['toString']());}[_0x3570f5(0x23d)](_0x23141a,_0x210c7a=!0x1){const _0xaeb699=_0x3570f5,_0x32843b=new URL(window[_0xaeb699(0x1cb)][_0xaeb699(0x2d0)]);_0x32843b['searchParams'][_0xaeb699(0x316)](_0x23141a),_0x210c7a?window[_0xaeb699(0x1f4)][_0xaeb699(0x289)]('','',_0x32843b['toString']()):window['history'][_0xaeb699(0x390)]('','',_0x32843b['toString']());}[_0x3570f5(0x2f3)](_0x503078){const _0x197a38=_0x3570f5;var _0x4dda25;return(_0x4dda25=new URL(window[_0x197a38(0x1cb)][_0x197a38(0x2d0)])[_0x197a38(0x348)][_0x197a38(0x33a)](_0x503078))!=null?_0x4dda25:void 0x0;}}var qt=Object[_0x3570f5(0x2bb)],zt=Object[_0x3570f5(0x216)],Jt=(_0x20e835,_0x153075,_0x1270c6)=>_0x153075 in _0x20e835?qt(_0x20e835,_0x153075,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1270c6}):_0x20e835[_0x153075]=_0x1270c6,Zt=(_0x42f821,_0x220095,_0x290c61,_0x1422e6)=>{const _0x3fde40=_0x3570f5;for(var _0x1cc135=_0x1422e6>0x1?void 0x0:_0x1422e6?zt(_0x220095,_0x290c61):_0x220095,_0x9ed872=_0x42f821[_0x3fde40(0x367)]-0x1,_0x5ea14f;_0x9ed872>=0x0;_0x9ed872--)(_0x5ea14f=_0x42f821[_0x9ed872])&&(_0x1cc135=_0x5ea14f(_0x1cc135)||_0x1cc135);return _0x1cc135;},_e=(_0x2b4504,_0xe8dcea)=>(_0x19a716,_0x417780)=>_0xe8dcea(_0x19a716,_0x417780,_0x2b4504),Qt=(_0x281c8c,_0x7ab1a7,_0x430927)=>Jt(_0x281c8c,_0x7ab1a7+'',_0x430927);const es=_0x3570f5(0x3d6);exports[_0x3570f5(0x397)]=class extends a[_0x3570f5(0x310)]{constructor(_0x25a354=De,_0x46788b,_0x298aee,_0xe45b14){const _0x45d121=_0x3570f5;super(),this[_0x45d121(0x32d)]=_0x25a354,this[_0x45d121(0x319)]=_0x46788b,this[_0x45d121(0x376)]=_0x298aee,this[_0x45d121(0x2fb)]=_0xe45b14;const {..._0x40b17b}=a['merge']({},De,this['_config']);this['_configService'][_0x45d121(0x1e7)](Bt,_0x40b17b);}['onStarting'](){const _0x48ef3b=_0x3570f5;this[_0x48ef3b(0x2c7)](),this[_0x48ef3b(0x415)]();}[_0x3570f5(0x37b)](){const _0x4c4efd=_0x3570f5;this[_0x4c4efd(0x332)]();}[_0x3570f5(0x2c7)](){const _0x5f03af=_0x3570f5;var _0x37df45;const _0x18ffb4=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x5f03af(0x2eb)],{'useClass':K[_0x5f03af(0x2c8)]}],[u['ILocalCacheService'],{'useClass':ve}],[exports[_0x5f03af(0x1d5)]],[Q],[q],[x],[ue],[exports[_0x5f03af(0x394)]]];a[_0x5f03af(0x37e)](this[_0x5f03af(0x376)],a[_0x5f03af(0x2b9)](_0x18ffb4,(_0x37df45=this[_0x5f03af(0x32d)])==null?void 0x0:_0x37df45['override']));}['_registerRenderDependencies'](){const _0x367f0d=_0x3570f5;this['disposeWithMe'](this[_0x367f0d(0x319)][_0x367f0d(0x232)](a[_0x367f0d(0x40a)][_0x367f0d(0x24f)],[fe])),this[_0x367f0d(0x34d)](this['_renderManagerService'][_0x367f0d(0x232)](a['UniverInstanceType'][_0x367f0d(0x1fb)],[Ie]));}[_0x3570f5(0x415)](){const _0x452bc3=_0x3570f5;a[_0x452bc3(0x1a5)](this[_0x452bc3(0x376)],[[x],[exports[_0x452bc3(0x1d5)]],[Q],[q],[exports[_0x452bc3(0x394)]]]);}},Qt(exports[_0x3570f5(0x397)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x3570f5(0x1c9)]),_e(0x1,p[_0x3570f5(0x20e)]),_e(0x2,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),_e(0x3,a['IConfigService'])],exports[_0x3570f5(0x397)]);var ts=Object[_0x3570f5(0x216)],ss=(_0x127b00,_0x4a401a,_0x44c083,_0x51223c)=>{for(var _0x4bcbe7=_0x51223c>0x1?void 0x0:_0x51223c?ts(_0x4a401a,_0x44c083):_0x4a401a,_0x3553c5=_0x127b00['length']-0x1,_0x3a14e6;_0x3553c5>=0x0;_0x3553c5--)(_0x3a14e6=_0x127b00[_0x3553c5])&&(_0x4bcbe7=_0x3a14e6(_0x4bcbe7)||_0x4bcbe7);return _0x4bcbe7;},H=(_0x27deb4,_0x4956d8)=>(_0x5f5de5,_0x483169)=>_0x4956d8(_0x5f5de5,_0x483169,_0x27deb4);exports[_0x3570f5(0x3bc)]=class extends u[_0x3570f5(0x245)]{constructor(_0x6c1aa7,_0x1f8c35,_0x2c212d,_0x167676,_0x861d41){super(_0x6c1aa7,_0x1f8c35,_0x2c212d,_0x167676,_0x861d41);}async[_0x3570f5(0x206)](_0x574048){const _0x2172b3=_0x3570f5,_0xcd2563=await this['_getSessionTicket'](),_0x1db34e=this[_0x2172b3(0x2cc)](_0x574048,_0xcd2563);return this[_0x2172b3(0x1c1)](_0x1db34e);}[_0x3570f5(0x2cc)](_0x10869a,_0x139298){const _0x432dc0=_0x3570f5,_0x1e4d79=typeof window>'u'?new URL(_0x10869a):new URL(_0x10869a,window[_0x432dc0(0x1cb)]['origin']);_0x1e4d79['searchParams'][_0x432dc0(0x41b)](_0x432dc0(0x358),_0x139298);const _0x27f6c7=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x432dc0(0x1cb)][_0x432dc0(0x330)]);return _0x27f6c7['get']('runId')&&_0x1e4d79[_0x432dc0(0x348)][_0x432dc0(0x41b)](_0x432dc0(0x2f0),_0x27f6c7[_0x432dc0(0x33a)](_0x432dc0(0x2f0))),_0x1e4d79[_0x432dc0(0x3c3)]();}async['_getSessionTicket'](){const _0x4fa5ce=_0x3570f5;var _0x45d1fa,_0x405e84,_0x2f8cc8;const _0x3b5e4a=this['_configService'][_0x4fa5ce(0x361)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1e283b=(_0x45d1fa=_0x3b5e4a==null?void 0x0:_0x3b5e4a[_0x4fa5ce(0x413)])!=null?_0x45d1fa:u[_0x4fa5ce(0x1dc)];return(_0x2f8cc8=(_0x405e84=(await this[_0x4fa5ce(0x199)][_0x4fa5ce(0x33a)](_0x1e283b,{'headers':{'Content-Type':_0x4fa5ce(0x3d9)}}))[_0x4fa5ce(0x3b2)])==null?void 0x0:_0x405e84[_0x4fa5ce(0x38e)])!=null?_0x2f8cc8:'';}},exports[_0x3570f5(0x3bc)]=ss([H(0x0,a[_0x3570f5(0x1b9)](a[_0x3570f5(0x2f5)])),H(0x1,a[_0x3570f5(0x1b9)](K['HTTPService'])),H(0x2,a[_0x3570f5(0x1ae)]),H(0x3,a[_0x3570f5(0x2bc)]),H(0x4,m[_0x3570f5(0x34f)])],exports[_0x3570f5(0x3bc)]);var Be=(_0xc97da=>(_0xc97da[_0xc97da[_0x3570f5(0x385)]=0x0]=_0x3570f5(0x385),_0xc97da[_0xc97da['OK']=0x1]='OK',_0xc97da[_0xc97da['INTERNAL_ERROR']=0x2]=_0x3570f5(0x221),_0xc97da[_0xc97da[_0x3570f5(0x3fc)]=0x3]=_0x3570f5(0x3fc),_0xc97da[_0xc97da[_0x3570f5(0x3e2)]=0x4]='NOT_FOUND',_0xc97da[_0xc97da[_0x3570f5(0x3b4)]=0x5]='UNAUTHENTICATED',_0xc97da[_0xc97da[_0x3570f5(0x1c3)]=0x6]=_0x3570f5(0x1c3),_0xc97da[_0xc97da[_0x3570f5(0x341)]=0x7]='INVALID_ARGUMENT',_0xc97da[_0xc97da[_0x3570f5(0x36c)]=0x8]=_0x3570f5(0x36c),_0xc97da[_0xc97da[_0x3570f5(0x2ab)]=0x9]=_0x3570f5(0x2ab),_0xc97da[_0xc97da[_0x3570f5(0x3f4)]=0xa]=_0x3570f5(0x3f4),_0xc97da[_0xc97da[_0x3570f5(0x1f8)]=0xb]=_0x3570f5(0x1f8),_0xc97da[_0xc97da['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3570f5(0x1f5),_0xc97da[_0xc97da['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x3570f5(0x3b1),_0xc97da[_0xc97da[_0x3570f5(0x1a4)]=0xe]=_0x3570f5(0x1a4),_0xc97da[_0xc97da['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3570f5(0x38f),_0xc97da[_0xc97da[_0x3570f5(0x3ec)]=0x1771]=_0x3570f5(0x3ec),_0xc97da[_0xc97da['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3570f5(0x234),_0xc97da[_0xc97da[_0x3570f5(0x373)]=0x1773]=_0x3570f5(0x373),_0xc97da[_0xc97da[_0x3570f5(0x25d)]=0x1b59]='APPLY_REJECT',_0xc97da[_0xc97da[_0x3570f5(0x39d)]=0x1b5a]=_0x3570f5(0x39d),_0xc97da[_0xc97da[_0x3570f5(0x2e5)]=0x1b5b]=_0x3570f5(0x2e5),_0xc97da[_0xc97da[_0x3570f5(0x29d)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xc97da[_0xc97da[_0x3570f5(0x1e0)]=0x1b5d]=_0x3570f5(0x1e0),_0xc97da[_0xc97da['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3570f5(0x1a0),_0xc97da[_0xc97da[_0x3570f5(0x19c)]=0x2329]=_0x3570f5(0x19c),_0xc97da[_0xc97da[_0x3570f5(0x2cd)]=0x232a]=_0x3570f5(0x2cd),_0xc97da[_0xc97da[_0x3570f5(0x327)]=0x232b]=_0x3570f5(0x327),_0xc97da[_0xc97da[_0x3570f5(0x2e0)]=0x232c]=_0x3570f5(0x2e0),_0xc97da[_0xc97da[_0x3570f5(0x1af)]=0x232d]=_0x3570f5(0x1af),_0xc97da[_0xc97da[_0x3570f5(0x230)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xc97da[_0xc97da['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3570f5(0x3e6),_0xc97da[_0xc97da['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3570f5(0x209),_0xc97da[_0xc97da[_0x3570f5(0x3d4)]=0x2714]=_0x3570f5(0x3d4),_0xc97da[_0xc97da[_0x3570f5(0x267)]=0x271a]=_0x3570f5(0x267),_0xc97da[_0xc97da[_0x3570f5(0x255)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xc97da[_0xc97da[_0x3570f5(0x3a3)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xc97da[_0xc97da[_0x3570f5(0x1c0)]=0x271d]=_0x3570f5(0x1c0),_0xc97da[_0xc97da['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xc97da[_0xc97da['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xc97da[_0xc97da[_0x3570f5(0x2e2)]=0x2720]=_0x3570f5(0x2e2),_0xc97da[_0xc97da[_0x3570f5(0x3bf)]=0x2af9]=_0x3570f5(0x3bf),_0xc97da[_0xc97da[_0x3570f5(0x1ff)]=0x2ee1]=_0x3570f5(0x1ff),_0xc97da[_0xc97da['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0xc97da[_0xc97da[_0x3570f5(0x3df)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xc97da[_0xc97da[_0x3570f5(0x1cd)]=0x2ee4]=_0x3570f5(0x1cd),_0xc97da[_0xc97da[_0x3570f5(0x3c4)]=0x2ee5]=_0x3570f5(0x3c4),_0xc97da[_0xc97da[_0x3570f5(0x401)]=0x32c9]=_0x3570f5(0x401),_0xc97da[_0xc97da['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x3570f5(0x405),_0xc97da[_0xc97da['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3570f5(0x343),_0xc97da[_0xc97da[_0x3570f5(0x227)]=-0x1]=_0x3570f5(0x227),_0xc97da))(Be||{}),is=Object[_0x3570f5(0x216)],ns=(_0x2414da,_0x16c5f7,_0xf0856,_0x802cf5)=>{const _0x45dbdb=_0x3570f5;for(var _0x2bdb76=_0x802cf5>0x1?void 0x0:_0x802cf5?is(_0x16c5f7,_0xf0856):_0x16c5f7,_0x3faa49=_0x2414da[_0x45dbdb(0x367)]-0x1,_0x22bcba;_0x3faa49>=0x0;_0x3faa49--)(_0x22bcba=_0x2414da[_0x3faa49])&&(_0x2bdb76=_0x22bcba(_0x2bdb76)||_0x2bdb76);return _0x2bdb76;},he=(_0x29b75a,_0x5137b1)=>(_0x124763,_0x40609e)=>_0x5137b1(_0x124763,_0x40609e,_0x29b75a);exports['RemoteUniscriptService']=class extends a[_0x3570f5(0x3cd)]{constructor(_0x105e02,_0x31a907,_0x3caeae){const _0x3399fc=_0x3570f5;super(),this[_0x3399fc(0x3d7)]=_0x105e02,this[_0x3399fc(0x199)]=_0x31a907,this['_configService']=_0x3caeae;}async['runOnServer'](_0x51288c,_0x779eda,_0x15b1da,..._0x5ec9ea){const _0x1b9dcf=_0x3570f5;var _0x7b6ba6,_0x384aa4,_0x1d2267,_0x20be94;const _0x13da7d=this[_0x1b9dcf(0x3d7)][_0x1b9dcf(0x3ed)]();if(!_0x13da7d)throw new Error(_0x1b9dcf(0x36b));const _0x57e00a=((_0x7b6ba6=this[_0x1b9dcf(0x2fb)][_0x1b9dcf(0x361)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x7b6ba6:u[_0x1b9dcf(0x2c6)])+'/'+_0x51288c+'/run/'+_0x779eda,_0x11eb40=new URL(window[_0x1b9dcf(0x1cb)]['href']),_0x24501a={'scriptId':_0x51288c,'runId':(_0x384aa4=_0x11eb40[_0x1b9dcf(0x348)]['get'](_0x1b9dcf(0x2f0)))!=null?_0x384aa4:'','function':_0x779eda,'unitId':_0x13da7d[_0x1b9dcf(0x2e8)](),'argsOfFunction':JSON[_0x1b9dcf(0x29e)](_0x5ec9ea),'invokeId':(_0x1d2267=_0x15b1da['invokeId'])!=null?_0x1d2267:'','executionId':(_0x20be94=_0x15b1da[_0x1b9dcf(0x393)])!=null?_0x20be94:''};try{const _0x1159b2=await this[_0x1b9dcf(0x199)]['post'](_0x57e00a,{'body':_0x24501a});return _0x1159b2['body'][_0x1b9dcf(0x26c)]&&_0x1159b2[_0x1b9dcf(0x3b2)]['error'][_0x1b9dcf(0x40b)]!==Be['OK']?_0x1b9dcf(0x344):_0x1159b2[_0x1b9dcf(0x3b2)][_0x1b9dcf(0x1e9)];}catch{return _0x1b9dcf(0x344);}}},exports[_0x3570f5(0x34c)]=ns([he(0x0,a[_0x3570f5(0x386)]),he(0x1,a[_0x3570f5(0x1b9)](K[_0x3570f5(0x37f)])),he(0x2,a[_0x3570f5(0x1ae)])],exports[_0x3570f5(0x34c)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class rs extends a[_0x3570f5(0x3cd)]{constructor(){const _0x5995aa=_0x3570f5;super(),h(this,_0x5995aa(0x21d),a[_0x5995aa(0x331)]()),h(this,_0x5995aa(0x294),new Set()),h(this,_0x5995aa(0x2ce),new Map()),h(this,_0x5995aa(0x203),null),h(this,_0x5995aa(0x22d),new Map()),h(this,_0x5995aa(0x271),new Map()),this[_0x5995aa(0x403)]();}[_0x3570f5(0x1cc)](){const _0x355c42=_0x3570f5;super['dispose'](),this[_0x355c42(0x22d)][_0x355c42(0x2b3)]((_0x2e5d8d,_0x3753f2)=>this[_0x355c42(0x28d)](_0x3753f2)),this[_0x355c42(0x203)]&&window[_0x355c42(0x2ba)](this[_0x355c42(0x203)]);}[_0x3570f5(0x3b8)](_0x4c7da){const _0x3622d0=_0x3570f5;return this[_0x3622d0(0x195)](_0x4c7da)[_0x3622d0(0x2b1)](d['distinctUntilChanged']());}[_0x3570f5(0x208)](_0x18d089){const _0x572533=_0x3570f5;this[_0x572533(0x294)]['size']===0x0&&this[_0x572533(0x324)](),this['_selfUnitIDs']['add'](_0x18d089),this['_send']({'type':0x0,'memberID':this[_0x572533(0x21d)],'unitIDs':[_0x18d089],'isForwarded':!0x1});}[_0x3570f5(0x275)](_0x3705f8){const _0x283d7e=_0x3570f5;this[_0x283d7e(0x294)]['delete'](_0x3705f8),this['_selfUnitIDs']['size']===0x0&&this[_0x283d7e(0x203)]&&window[_0x283d7e(0x2ba)](this[_0x283d7e(0x203)]);}[_0x3570f5(0x403)](){const _0x31cbdb=_0x3570f5;this[_0x31cbdb(0x34d)](a[_0x31cbdb(0x2a3)](d[_0x31cbdb(0x1ba)](window,_0x31cbdb(0x236))['subscribe'](_0x40c0b8=>{const _0xa3e11f=_0x31cbdb;if(_0x40c0b8[_0xa3e11f(0x349)]!==Le||!_0x40c0b8['newValue'])return;const _0x3d5319=JSON['parse'](_0x40c0b8[_0xa3e11f(0x24e)]);this[_0xa3e11f(0x3c9)](_0x3d5319);}))),window[_0x31cbdb(0x1fe)](_0x31cbdb(0x1b5),()=>this[_0x31cbdb(0x274)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x31cbdb(0x2a9)](this[_0x31cbdb(0x294)])}));}[_0x3570f5(0x3c9)](_0x152a21){const _0x3c349f=_0x3570f5;switch(_0x152a21[_0x3c349f(0x297)]){case 0x0:this[_0x3c349f(0x19e)](_0x152a21);break;case 0x1:this[_0x3c349f(0x409)](_0x152a21);break;case 0x2:this[_0x3c349f(0x362)](_0x152a21);break;}}[_0x3570f5(0x19e)](_0x420667){const _0x322d1b=_0x3570f5,{unitIDs:_0x3f2bcb,memberID:_0x2aa190,isForwarded:_0x5566f1}=_0x420667;_0x3f2bcb[_0x322d1b(0x2b3)](_0x396d7e=>{const _0x21b2b4=_0x322d1b;if(!_0x5566f1&&this[_0x21b2b4(0x2ce)][_0x21b2b4(0x1ee)](_0x396d7e)&&this[_0x21b2b4(0x195)](_0x396d7e)[_0x21b2b4(0x282)](u[_0x21b2b4(0x268)][_0x21b2b4(0x300)]),!this[_0x21b2b4(0x2ce)][_0x21b2b4(0x1ee)](_0x396d7e)||!this[_0x21b2b4(0x2ce)][_0x21b2b4(0x33a)](_0x396d7e)[_0x21b2b4(0x1ee)](_0x2aa190)){const _0x15da5c=this[_0x21b2b4(0x2ce)][_0x21b2b4(0x33a)](_0x396d7e)||new Set();_0x15da5c[_0x21b2b4(0x3ce)](_0x2aa190),this[_0x21b2b4(0x2ce)][_0x21b2b4(0x41b)](_0x396d7e,_0x15da5c),this[_0x21b2b4(0x1c5)](_0x2aa190);}}),_0x5566f1||this[_0x322d1b(0x274)]({'type':0x0,'memberID':this[_0x322d1b(0x21d)],'unitIDs':[...this[_0x322d1b(0x294)]],'isForwarded':!0x0});}[_0x3570f5(0x1c5)](_0x5dc6d0){const _0x25b60b=_0x3570f5;this[_0x25b60b(0x28d)](_0x5dc6d0);const _0x2853f0=window[_0x25b60b(0x28b)](()=>{const _0x1ab472=_0x25b60b;this[_0x1ab472(0x2ce)][_0x1ab472(0x2b3)](_0x3db235=>{const _0x149b80=_0x1ab472;_0x3db235[_0x149b80(0x316)](_0x5dc6d0);});},Me*0x2);this[_0x25b60b(0x22d)][_0x25b60b(0x41b)](_0x5dc6d0,_0x2853f0);}[_0x3570f5(0x28d)](_0x38073a){const _0x36e0c1=_0x3570f5;if(this['_clearOtherTimers']['has'](_0x38073a)){const _0x454cf8=this[_0x36e0c1(0x22d)]['get'](_0x38073a);_0x454cf8&&window['clearTimeout'](_0x454cf8),this[_0x36e0c1(0x22d)][_0x36e0c1(0x41b)](_0x38073a,null);}}['_handleLeaveEvent'](_0x5b7eb8){const _0x3eb61c=_0x3570f5,{memberID:_0x227a22,unitIDs:_0x5e74dd}=_0x5b7eb8;_0x5e74dd[_0x3eb61c(0x2b3)](_0x4e1780=>{const _0x2adabd=_0x3eb61c;var _0x49864a;const _0x2016be=this[_0x2adabd(0x2ce)][_0x2adabd(0x33a)](_0x4e1780);_0x2016be&&(_0x2016be[_0x2adabd(0x316)](_0x227a22),(_0x49864a=this[_0x2adabd(0x195)](_0x4e1780))==null||_0x49864a[_0x2adabd(0x282)](_0x2016be[_0x2adabd(0x22a)]===0x0?u[_0x2adabd(0x268)][_0x2adabd(0x207)]:u['UnitStatus'][_0x2adabd(0x300)]));}),this['_removeClearOtherTimer'](_0x227a22);}[_0x3570f5(0x362)](_0x1222b0){const _0x2329e2=_0x3570f5;this[_0x2329e2(0x1c5)](_0x1222b0[_0x2329e2(0x213)]);}[_0x3570f5(0x274)](_0x187e60){const _0x26ced5=_0x3570f5;localStorage[_0x26ced5(0x1d4)](Le,JSON[_0x26ced5(0x29e)](_0x187e60));}['_scheduleHeartbeat'](){const _0x2f4402=_0x3570f5;this[_0x2f4402(0x203)]=window[_0x2f4402(0x3fe)](()=>{const _0x12745e=_0x2f4402;this['_send']({'type':0x2,'memberID':this[_0x12745e(0x21d)]});},Me);}[_0x3570f5(0x195)](_0x30b506){const _0x5d29f8=_0x3570f5;return this['_unitStatus']['has'](_0x30b506)||this[_0x5d29f8(0x271)][_0x5d29f8(0x41b)](_0x30b506,new d[(_0x5d29f8(0x35b))](u[_0x5d29f8(0x268)][_0x5d29f8(0x207)])),this[_0x5d29f8(0x271)][_0x5d29f8(0x33a)](_0x30b506);}}exports[_0x3570f5(0x30f)]=me,exports['SheetCollabCursorShape']=$e,exports['WebBrowserSingleActiveUnitService']=rs,exports[_0x3570f5(0x323)]=xe;