@univerjs-pro/live-share 0.10.11 → 0.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x434b0e=_0x3822;(function(_0x3e52a3,_0x11804d){var _0x36dd5b=_0x3822,_0x1d1165=_0x3e52a3();while(!![]){try{var _0x1d45bc=parseInt(_0x36dd5b(0xf5))/0x1+parseInt(_0x36dd5b(0x129))/0x2*(parseInt(_0x36dd5b(0xe7))/0x3)+-parseInt(_0x36dd5b(0x162))/0x4+-parseInt(_0x36dd5b(0x159))/0x5*(-parseInt(_0x36dd5b(0xb8))/0x6)+-parseInt(_0x36dd5b(0x16b))/0x7+-parseInt(_0x36dd5b(0xaa))/0x8+parseInt(_0x36dd5b(0x16f))/0x9*(parseInt(_0x36dd5b(0xfb))/0xa);if(_0x1d45bc===_0x11804d)break;else _0x1d1165['push'](_0x1d1165['shift']());}catch(_0x214cc4){_0x1d1165['push'](_0x1d1165['shift']());}}}(_0x22d8,0xe7c9a));var U=Object[_0x434b0e(0xd7)],F=(_0x1fca18,_0x72b653,_0x268111)=>_0x72b653 in _0x1fca18?U(_0x1fca18,_0x72b653,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x268111}):_0x1fca18[_0x72b653]=_0x268111,v=(_0x323b63,_0x26d3f5,_0x209d31)=>F(_0x323b63,typeof _0x26d3f5!=_0x434b0e(0xba)?_0x26d3f5+'':_0x26d3f5,_0x209d31);Object[_0x434b0e(0xd7)](exports,Symbol['toStringTag'],{'value':_0x434b0e(0x10c)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x22d8(){var _0x7f2ce9=['forEach','IUniverInstanceService','1em','3677958VqzngQ','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','symbol','LiveShareCoordinator','idSuffix','end','DependentOn','entries','merge','colorChannel1','map','idle','InsertSheetMutation','_handleNewChangeSets','_init','tag','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','BehaviorSubject','Stop\x20following','_liveShareService','_handleNewHost','_handleTerminate','_injector','_status','getInitialStates','_presenter','asObservable','data','CollaborationEvent','CollaborationSessionService','defineProperty','HEADER_MENU','UniverLiveSharePlugin','_handleOnline','getMemberID','_fetchOperations','disposeWithMe','values','Inject','_sharedOperations','RxDisposable','LiveShareStatus','getCurrentTypeOfUnit$','concat','useRef','registerSharedOperation','1427061BATBSc','assign','complete','sessionStatus$','params','executeCommand','event$','LIVESHARE_REQUEST_HOST','toString','add','next','function','univer-mb-3\x20univer-w-full\x20univer-text-sm','_entities','21643YNHBGr','LiveShareIcon','evenodd','string','shouldShareOperation','dispose','40wOfQnh','IDLE','parseProtocolChangeset','SessionStatus','presenting','LiveShare','Start\x20following','operations','_handleOffline','_startPresenting','SetWorksheetActiveOperation','useState','type','includes','get','Stop\x20presenting','getOwnPropertyDescriptor','Module','getUnitId','stopFollowing','useDependency','PRESENTING','_reporters','_startLiveShareCoordinator','live-share.config','call','Dropdown','BuiltInUIPart','text','0\x200\x2017\x2017','getConfig','UniverInstanceType','getTypeOfUnitAdded$','getLiveShareCoordinator','subscribe','SetScrollOperation','DesktopLiveShareController','_configService','_startFollowing','defs','not-following','ONLINE','stopPresenting','indexOf','status$','IConfigService','2xRFZut','ICommandService','SAME_OPERATION_SHARE_INTERVAL','_commandDisposable','LiveShareService','onStarting','CommandType','clsx','sheet','useEffect','onRendered','Injector','stringify','LiveShareController','trim','attrs','has','registerDependencies','clear','_unitID','http://www.w3.org/2000/svg','NOT_FOLLOWING','_commandService','apply','xlink:href','_status$','prototype','init','extend','unsubscribe','then','div','fill','Button','univerjs-icon\x20univerjs-icon-','_stopPresenting','following','_config','pipe','jsx','icon','dispose$','forwardRef','_collabSession','set','Subject','toDisposable','getValue','5vlOYRH','Disposable','Fragment','hasOwnProperty','_stopFollowing','UNIVER_UNKNOWN','none','override','OFFLINE','3679608VUIRqv','delete','createElement','mergeOverrideWithDependencies','offline','length','touchDependencies','presenter','univer-size-4','9056551gMbiHv','FOLLOWING','unitId','jsxs','7828227IWAmoT','use','children','LIVESHARE_TERMINATE','send','Start','default','LIVESHARE_OPERATION','button','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','replace','random','takeUntil','defIds','className','current','_collabSessionService','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','startFollowing','getTypeOfUnitDisposed$','registerInitialStateReporter','tryStartPresenting','setConfig','IUIPartsService','NEW_CHANGESETS','getOwnPropertySymbols','11411504gkVaZc','memberID','_handleOperation','_mountLiveShare','UniverCollaborationClientPlugin','from','path','mask','mutations','_uiPartsService','UNIVER_SHEET'];_0x22d8=function(){return _0x7f2ce9;};return _0x22d8();}var u=function(){var _0x5d639d=_0x434b0e;return u=Object[_0x5d639d(0xe8)]||function(_0x690e15){var _0x2c7acf=_0x5d639d;for(var _0x2ad81e,_0x49485c=0x1,_0x1c9bde=arguments['length'];_0x49485c<_0x1c9bde;_0x49485c++){_0x2ad81e=arguments[_0x49485c];for(var _0x58f9ce in _0x2ad81e)Object[_0x2c7acf(0x143)][_0x2c7acf(0x15c)]['call'](_0x2ad81e,_0x58f9ce)&&(_0x690e15[_0x58f9ce]=_0x2ad81e[_0x58f9ce]);}return _0x690e15;},u[_0x5d639d(0x140)](this,arguments);},$=function(_0x5946d3,_0x23046a){var _0x332ec4=_0x434b0e,_0x25c719={};for(var _0x242966 in _0x5946d3)Object['prototype'][_0x332ec4(0x15c)][_0x332ec4(0x114)](_0x5946d3,_0x242966)&&_0x23046a[_0x332ec4(0x126)](_0x242966)<0x0&&(_0x25c719[_0x242966]=_0x5946d3[_0x242966]);if(_0x5946d3!=null&&typeof Object[_0x332ec4(0xa9)]==_0x332ec4(0xf2)){for(var _0x1cecd3=0x0,_0x242966=Object['getOwnPropertySymbols'](_0x5946d3);_0x1cecd3<_0x242966[_0x332ec4(0x167)];_0x1cecd3++)_0x23046a[_0x332ec4(0x126)](_0x242966[_0x1cecd3])<0x0&&Object[_0x332ec4(0x143)]['propertyIsEnumerable']['call'](_0x5946d3,_0x242966[_0x1cecd3])&&(_0x25c719[_0x242966[_0x1cecd3]]=_0x5946d3[_0x242966[_0x1cecd3]]);}return _0x25c719;},j=f['forwardRef'](function(_0x2c1a56,_0x243336){var _0x4e4cb6=_0x434b0e,_0x5b5d38=_0x2c1a56[_0x4e4cb6(0x151)],_0x541012=_0x2c1a56['id'],_0x544e77=_0x2c1a56[_0x4e4cb6(0x9d)],_0x5b7f96=_0x2c1a56[_0x4e4cb6(0x145)],_0x7af4cd=$(_0x2c1a56,[_0x4e4cb6(0x151),'id',_0x4e4cb6(0x9d),'extend']),_0x17f5bd=_0x4e4cb6(0x14b)['concat'](_0x541012,'\x20')[_0x4e4cb6(0xe4)](_0x544e77||'')[_0x4e4cb6(0x137)](),_0x41823b=f['useRef']('_'[_0x4e4cb6(0xe4)](k()));return y(_0x5b5d38,''[_0x4e4cb6(0xe4)](_0x541012),{'defIds':_0x5b5d38['defIds'],'idSuffix':_0x41823b[_0x4e4cb6(0x9e)]},u({'ref':_0x243336,'className':_0x17f5bd},_0x7af4cd),_0x5b7f96);});function y(_0x5548b2,_0xbf55ce,_0x1f091d,_0x2645e6,_0x13a7a2){var _0x3224da=_0x434b0e;return f[_0x3224da(0x164)](_0x5548b2['tag'],u(u({'key':_0xbf55ce},H(_0x5548b2,_0x1f091d,_0x13a7a2)),_0x2645e6),(V(_0x5548b2,_0x1f091d)['children']||[])[_0x3224da(0xc2)](function(_0x1a751a,_0x162861){var _0x5812cf=_0x3224da;return y(_0x1a751a,''[_0x5812cf(0xe4)](_0xbf55ce,'-')[_0x5812cf(0xe4)](_0x5548b2['tag'],'-')[_0x5812cf(0xe4)](_0x162861),_0x1f091d,void 0x0,_0x13a7a2);}));}function H(_0x1e538a,_0x4bcbf0,_0x3594b7){var _0x13e9f9=_0x434b0e,_0xf228d6=u({},_0x1e538a[_0x13e9f9(0x138)]);_0x3594b7!=null&&_0x3594b7[_0x13e9f9(0xc1)]&&_0xf228d6[_0x13e9f9(0x149)]===_0x13e9f9(0xc1)&&(_0xf228d6[_0x13e9f9(0x149)]=_0x3594b7[_0x13e9f9(0xc1)]),_0x1e538a[_0x13e9f9(0xc7)]==='mask'&&_0xf228d6['id']&&(_0xf228d6['id']=_0xf228d6['id']+_0x4bcbf0[_0x13e9f9(0xbc)]),Object['entries'](_0xf228d6)[_0x13e9f9(0xb5)](function(_0x4815d0){var _0x3853ca=_0x13e9f9,_0x328d11=_0x4815d0[0x0],_0xf81055=_0x4815d0[0x1];_0x328d11===_0x3853ca(0xb1)&&typeof _0xf81055==_0x3853ca(0xf8)&&(_0xf228d6[_0x328d11]=_0xf81055[_0x3853ca(0x99)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4bcbf0['idSuffix'],')')));});var _0x188626=_0x4bcbf0['defIds'];return!_0x188626||_0x188626[_0x13e9f9(0x167)]===0x0||(_0x1e538a[_0x13e9f9(0xc7)]===_0x13e9f9(0x170)&&_0xf228d6[_0x13e9f9(0x141)]&&(_0xf228d6[_0x13e9f9(0x141)]=_0xf228d6[_0x13e9f9(0x141)]+_0x4bcbf0['idSuffix']),Object[_0x13e9f9(0xbf)](_0xf228d6)[_0x13e9f9(0xb5)](function(_0x129d7c){var _0x48065b=_0x13e9f9,_0x194021=_0x129d7c[0x0],_0x4bd790=_0x129d7c[0x1];typeof _0x4bd790==_0x48065b(0xf8)&&(_0xf228d6[_0x194021]=_0x4bd790['replace'](/url\(#(.*)\)/,'url(#$1'[_0x48065b(0xe4)](_0x4bcbf0[_0x48065b(0xbc)],')')));})),_0xf228d6;}function V(_0x4dffaf,_0x333eb2){var _0x5a2571=_0x434b0e,_0x31ed21,_0x3c3577=_0x333eb2[_0x5a2571(0x9c)];return!_0x3c3577||_0x3c3577[_0x5a2571(0x167)]===0x0?_0x4dffaf:_0x4dffaf[_0x5a2571(0xc7)]===_0x5a2571(0x122)&&(!((_0x31ed21=_0x4dffaf[_0x5a2571(0x171)])===null||_0x31ed21===void 0x0)&&_0x31ed21['length'])?u(u({},_0x4dffaf),{'children':_0x4dffaf['children'][_0x5a2571(0xc2)](function(_0x5cbf8c){var _0x5ec678=_0x5a2571;return typeof _0x5cbf8c[_0x5ec678(0x138)]['id']==_0x5ec678(0xf8)&&_0x3c3577&&_0x3c3577['includes'](_0x5cbf8c[_0x5ec678(0x138)]['id'])?u(u({},_0x5cbf8c),{'attrs':u(u({},_0x5cbf8c[_0x5ec678(0x138)]),{'id':_0x5cbf8c['attrs']['id']+_0x333eb2[_0x5ec678(0xbc)]})}):_0x5cbf8c;})}):_0x4dffaf;}function k(){var _0x23cc4f=_0x434b0e;return Math[_0x23cc4f(0x9a)]()[_0x23cc4f(0xef)](0x24)['substring'](0x2,0x8);}j['displayName']='UniverIcon';function _0x3822(_0x197099,_0x31a2c1){var _0x22d85b=_0x22d8();return _0x3822=function(_0x38227f,_0x3e63e7){_0x38227f=_0x38227f-0x96;var _0x97e1ce=_0x22d85b[_0x38227f];return _0x97e1ce;},_0x3822(_0x197099,_0x31a2c1);}var M={'tag':'svg','attrs':{'xmlns':_0x434b0e(0x13d),'fill':_0x434b0e(0x15f),'viewBox':_0x434b0e(0x118),'width':_0x434b0e(0xb7),'height':_0x434b0e(0xb7)},'children':[{'tag':_0x434b0e(0xb0),'attrs':{'fill':'currentColor','d':_0x434b0e(0xb9)}},{'tag':_0x434b0e(0xb0),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x434b0e(0xf7),'clipRule':_0x434b0e(0xf7)}}]},P=f[_0x434b0e(0x153)](function(_0x3ac20e,_0x4d6f11){var _0xf2b74e=_0x434b0e;return f[_0xf2b74e(0x164)](j,Object[_0xf2b74e(0xe8)]({},_0x3ac20e,{'id':'live-share-icon','ref':_0x4d6f11,'icon':M}));});P['displayName']=_0x434b0e(0xf6);class O extends o[_0x434b0e(0x15a)]{constructor(){var _0x3df25d=_0x434b0e;super(...arguments),v(this,_0x3df25d(0xe0),new Set()),v(this,_0x3df25d(0x111),new Set());}[_0x434b0e(0xe6)](_0x3cc9b8){var _0x4b3d6b=_0x434b0e;return this['_sharedOperations'][_0x4b3d6b(0xf0)](_0x3cc9b8),o[_0x4b3d6b(0x157)](()=>this[_0x4b3d6b(0xe0)][_0x4b3d6b(0x163)](_0x3cc9b8));}[_0x434b0e(0xa4)](_0x5c5a86){var _0x3f3bab=_0x434b0e;return this['_reporters'][_0x3f3bab(0xf0)](_0x5c5a86),o['toDisposable'](()=>this[_0x3f3bab(0x111)][_0x3f3bab(0x163)](_0x5c5a86));}[_0x434b0e(0xf9)](_0x52ad96){var _0x4347c1=_0x434b0e;return this[_0x4347c1(0xe0)][_0x4347c1(0x139)](_0x52ad96);}[_0x434b0e(0xd1)](_0x826721){var _0x1e4617=_0x434b0e;return Array[_0x1e4617(0xaf)](this[_0x1e4617(0x111)])[_0x1e4617(0xc2)](_0x3e23a0=>_0x3e23a0(_0x826721));}}var q=Object[_0x434b0e(0x10b)],R=(_0x2e94a3,_0xbe2e5a,_0x53d751,_0x1c2655)=>{var _0xd1980=_0x434b0e;for(var _0x535146=_0x1c2655>0x1?void 0x0:_0x1c2655?q(_0xbe2e5a,_0x53d751):_0xbe2e5a,_0x40de67=_0x2e94a3[_0xd1980(0x167)]-0x1,_0x4570fb;_0x40de67>=0x0;_0x40de67--)(_0x4570fb=_0x2e94a3[_0x40de67])&&(_0x535146=_0x4570fb(_0x535146)||_0x535146);return _0x535146;},S=(_0x1d21ba,_0x1108c1)=>(_0x5ae866,_0x8b157)=>_0x1108c1(_0x5ae866,_0x8b157,_0x1d21ba);exports[_0x434b0e(0x136)]=class extends o[_0x434b0e(0xe1)]{constructor(_0x11d451,_0xd90a77,_0x460d80){var _0x220cc8=_0x434b0e;super(),v(this,_0x220cc8(0xf4),new Map()),(this[_0x220cc8(0xa1)]=_0x11d451,this[_0x220cc8(0xcf)]=_0xd90a77,this[_0x220cc8(0x9f)]=_0x460d80,this[_0x220cc8(0xc6)]());}async[_0x434b0e(0x11c)](_0x367fd3){var _0x8ac5bb=_0x434b0e;return this[_0x8ac5bb(0xf4)][_0x8ac5bb(0x139)](_0x367fd3)||await this[_0x8ac5bb(0x112)](_0x367fd3),this[_0x8ac5bb(0xf4)][_0x8ac5bb(0x109)](_0x367fd3);}[_0x434b0e(0xc6)](){var _0x10f9ac=_0x434b0e;this[_0x10f9ac(0xa1)][_0x10f9ac(0x11b)](o['UniverInstanceType'][_0x10f9ac(0xb4)])['pipe'](b[_0x10f9ac(0x9b)](this['dispose$']))[_0x10f9ac(0x11d)](async _0x5a9a4c=>{var _0x5eac30=_0x10f9ac;const _0x505017=_0x5a9a4c[_0x5eac30(0x10d)]();this[_0x5eac30(0xf4)][_0x5eac30(0x139)](_0x505017)||this[_0x5eac30(0x112)](_0x505017);}),this[_0x10f9ac(0xa1)][_0x10f9ac(0xa3)](o[_0x10f9ac(0x11a)]['UNIVER_SHEET'])[_0x10f9ac(0x14f)](b['takeUntil'](this[_0x10f9ac(0x152)]))['subscribe'](_0x5f5467=>{var _0x1a5f67=_0x10f9ac;const _0x4dee2d=_0x5f5467[_0x1a5f67(0x10d)](),_0x1b9200=this['_entities']['get'](_0x4dee2d);_0x1b9200==null||_0x1b9200[_0x1a5f67(0xfa)]();});}async[_0x434b0e(0x112)](_0xc78e6c){var _0x265703=_0x434b0e;const _0x4e60a2=await this[_0x265703(0x9f)]['requireSession'](_0xc78e6c),_0x3c4c85=this[_0x265703(0xcf)]['createInstance'](exports[_0x265703(0xbb)],_0xc78e6c,_0x4e60a2);return _0x3c4c85['init'](),this[_0x265703(0xf4)][_0x265703(0x155)](_0xc78e6c,_0x3c4c85),_0x3c4c85;}},exports[_0x434b0e(0x136)]=R([S(0x0,o[_0x434b0e(0xb6)]),S(0x1,o[_0x434b0e(0xdf)](o[_0x434b0e(0x134)])),S(0x2,o['Inject'](m[_0x434b0e(0xd6)]))],exports[_0x434b0e(0x136)]);var h=(_0x45a631=>(_0x45a631[_0x434b0e(0x161)]='offline',_0x45a631[_0x434b0e(0xfc)]=_0x434b0e(0xc3),_0x45a631['FOLLOWING']=_0x434b0e(0x14d),_0x45a631[_0x434b0e(0x13e)]=_0x434b0e(0x123),_0x45a631['PRESENTING']=_0x434b0e(0xff),_0x45a631))(h||{});const W=_0x434b0e(0x12b),G=0xc8;exports[_0x434b0e(0xbb)]=class extends o[_0x434b0e(0xe1)]{constructor(_0x37d3db,_0x1c093b,_0x5f5a57,_0x47090c,_0xab1a4a){var _0x212a19=_0x434b0e;super(),v(this,_0x212a19(0x142),new w[(_0x212a19(0xca))](_0x212a19(0xc3))),v(this,'status$',this[_0x212a19(0x142)][_0x212a19(0xd3)]()),v(this,_0x212a19(0xc6),!0x1),v(this,_0x212a19(0x12c),null),v(this,_0x212a19(0xd2),null),(this[_0x212a19(0x13c)]=_0x37d3db,this['_collabSession']=_0x1c093b,this[_0x212a19(0x120)]=_0x5f5a57,this[_0x212a19(0xcc)]=_0x47090c,this[_0x212a19(0x13f)]=_0xab1a4a);}get[_0x434b0e(0xd0)](){var _0x19762b=_0x434b0e;return this[_0x19762b(0x142)][_0x19762b(0x158)]();}['dispose'](){var _0x2fdf0e=_0x434b0e,_0x2cd3f4;(_0x2cd3f4=this[_0x2fdf0e(0x12c)])==null||_0x2cd3f4[_0x2fdf0e(0xfa)](),this[_0x2fdf0e(0x142)]['next'](_0x2fdf0e(0xc3)),this[_0x2fdf0e(0x142)][_0x2fdf0e(0xe9)]();}[_0x434b0e(0x144)](){var _0x1c3982=_0x434b0e;this[_0x1c3982(0xc6)]||(this[_0x1c3982(0xc6)]=!0x0,this[_0x1c3982(0x154)][_0x1c3982(0xea)][_0x1c3982(0x14f)](b[_0x1c3982(0x9b)](this[_0x1c3982(0x152)]))[_0x1c3982(0x11d)](_0x281796=>{var _0x255ea1=_0x1c3982;switch(_0x281796){case m[_0x255ea1(0xfe)][_0x255ea1(0x161)]:this[_0x255ea1(0x103)]();break;case m[_0x255ea1(0xfe)][_0x255ea1(0x124)]:this[_0x255ea1(0xda)]();break;}}),this[_0x1c3982(0x154)][_0x1c3982(0xed)]['pipe'](b[_0x1c3982(0x9b)](this[_0x1c3982(0x152)]))[_0x1c3982(0x11d)](_0x22e0cf=>{var _0x2c80d7=_0x1c3982;const {eventID:_0x336ea6}=_0x22e0cf;switch(_0x336ea6){case _[_0x2c80d7(0xd5)]['LIVESHARE_NEW_HOST']:this[_0x2c80d7(0xcd)](_0x22e0cf);break;case _[_0x2c80d7(0xd5)]['LIVESHARE_OPERATION']:this[_0x2c80d7(0xac)](_0x22e0cf);break;case _[_0x2c80d7(0xd5)][_0x2c80d7(0x172)]:this[_0x2c80d7(0xce)]();break;case _['CollaborationEvent'][_0x2c80d7(0xa8)]:this[_0x2c80d7(0xc5)](_0x22e0cf);break;}}));}[_0x434b0e(0xa5)](){var _0x24b50d=_0x434b0e;this[_0x24b50d(0x154)][_0x24b50d(0x173)]({'eventID':_['CollaborationEvent'][_0x24b50d(0xee)],'data':{'unitID':this[_0x24b50d(0x13c)],'userID':this[_0x24b50d(0x154)][_0x24b50d(0xdb)]()}},this[_0x24b50d(0x13c)]);}[_0x434b0e(0x125)](){var _0x308631=_0x434b0e;this[_0x308631(0xd0)]===_0x308631(0xff)&&(this['_status$'][_0x308631(0xf1)](_0x308631(0xc3)),this[_0x308631(0x154)][_0x308631(0x173)]({'eventID':_[_0x308631(0xd5)][_0x308631(0x172)],'data':{'unitID':this[_0x308631(0x13c)]}},this[_0x308631(0x13c)]));}[_0x434b0e(0xa2)](){var _0x2375d8=_0x434b0e;this['_status']===_0x2375d8(0x123)&&(this['_status$'][_0x2375d8(0xf1)](_0x2375d8(0x14d)),this[_0x2375d8(0x121)]());}[_0x434b0e(0x10e)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x434b0e(0xcd)](_0x2ac770){var _0x39575f=_0x434b0e;const {presenter:_0x20675a}=_0x2ac770[_0x39575f(0xd4)],_0x5960b2=this[_0x39575f(0x154)][_0x39575f(0xdb)]();this[_0x39575f(0xd2)]=_0x20675a,_0x20675a===_0x5960b2?(this[_0x39575f(0x15d)](),this[_0x39575f(0x104)]()):this[_0x39575f(0xd0)]!==_0x39575f(0x123)&&(this[_0x39575f(0x14c)](),this[_0x39575f(0x121)]());}['_fetchOperations'](){var _0x589962=_0x434b0e;const _0x46ebe6={'eventID':_[_0x589962(0xd5)][_0x589962(0xa0)]};this[_0x589962(0x154)][_0x589962(0x173)](_0x46ebe6,this[_0x589962(0x13c)]);}[_0x434b0e(0xce)](){var _0x2c13d6=_0x434b0e;this[_0x2c13d6(0xd2)]=null,this[_0x2c13d6(0xd0)]!==_0x2c13d6(0xff)&&this['_beIdle']();}[_0x434b0e(0xc5)](_0xd475d){var _0x409eaf=_0x434b0e;if(this[_0x409eaf(0xd0)]===_0x409eaf(0x14d)&&this[_0x409eaf(0xd2)]===_0xd475d[_0x409eaf(0xd4)][_0x409eaf(0xab)]){const _0x569f69=_[_0x409eaf(0xfd)](_0xd475d['data'])[_0x409eaf(0xb2)]['reverse']()['find'](_0x11b240=>_0x11b240['id']===C[_0x409eaf(0xc4)]['id']);if(_0x569f69){const _0x2589a5=_0x569f69[_0x409eaf(0xeb)][_0x409eaf(0x16d)],_0x3655c8=_0x569f69[_0x409eaf(0xeb)][_0x409eaf(0x131)]['id'];setTimeout(()=>{var _0x342b44=_0x409eaf;this[_0x342b44(0x13f)][_0x342b44(0xec)](C[_0x342b44(0x105)]['id'],{'unitId':_0x2589a5,'subUnitId':_0x3655c8},{'fromCollab':!0x0});});}}}[_0x434b0e(0x104)](){var _0x4885d1=_0x434b0e;this[_0x4885d1(0x142)][_0x4885d1(0xf1)]('presenting');const _0x192541=new Map(),_0x7b979c=this['_commandDisposable']=new o['DisposableCollection']();_0x7b979c[_0x4885d1(0xf0)](o['toDisposable'](()=>{var _0x1de1ec=_0x4885d1;_0x192541['forEach'](_0x28a36b=>_0x28a36b[_0x1de1ec(0xe9)]()),_0x192541[_0x1de1ec(0x13b)]();})),_0x7b979c[_0x4885d1(0xf0)](this[_0x4885d1(0x13f)][_0x4885d1(0xc9)](_0x5c6197=>{var _0x19a4d1=_0x4885d1,_0x22c1e3;if(_0x5c6197[_0x19a4d1(0x107)]!==o[_0x19a4d1(0x12f)]['OPERATION']||!this[_0x19a4d1(0xcc)]['shouldShareOperation'](_0x5c6197['id']))return;const {id:_0x183e92}=_0x5c6197;let _0x25276c;_0x192541[_0x19a4d1(0x139)](_0x183e92)?_0x25276c=_0x192541['get'](_0x183e92):(_0x25276c=new w[(_0x19a4d1(0x156))](),_0x192541[_0x19a4d1(0x155)](_0x183e92,_0x25276c),_0x25276c[_0x19a4d1(0x14f)](b['throttleTime']((_0x22c1e3=this[_0x19a4d1(0x120)][_0x19a4d1(0x119)](W))!=null?_0x22c1e3:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x19a4d1(0x11d)](_0x23468f=>{var _0x35e81f=_0x19a4d1;this['_collabSession'][_0x35e81f(0x173)]({'eventID':_[_0x35e81f(0xd5)][_0x35e81f(0x176)],'data':{'unitID':this[_0x35e81f(0x13c)],'operations':{[_0x23468f['id']]:{'id':_0x23468f['id'],'params':JSON[_0x35e81f(0x135)](_0x23468f[_0x35e81f(0xeb)])}}}},this[_0x35e81f(0x13c)]);})),_0x25276c[_0x19a4d1(0xf1)](_0x5c6197);})),this[_0x4885d1(0xcc)][_0x4885d1(0xd1)](this[_0x4885d1(0x13c)])[_0x4885d1(0xb5)](_0x449aaa=>this[_0x4885d1(0x154)][_0x4885d1(0x173)]({'eventID':_[_0x4885d1(0xd5)][_0x4885d1(0x176)],'data':{'unitID':this[_0x4885d1(0x13c)],'operations':{[_0x449aaa['id']]:{'id':_0x449aaa['id'],'params':JSON[_0x4885d1(0x135)](_0x449aaa[_0x4885d1(0xeb)])}}}},this[_0x4885d1(0x13c)]));}[_0x434b0e(0x14c)](){var _0x810553=_0x434b0e,_0x10287d;this[_0x810553(0x142)]['next'](_0x810553(0xc3)),(_0x10287d=this[_0x810553(0x12c)])==null||_0x10287d[_0x810553(0xfa)](),this[_0x810553(0x12c)]=null;}[_0x434b0e(0x121)](){var _0x29aa69=_0x434b0e,_0x3d1ea9;(_0x3d1ea9=this['_commandDisposable'])==null||_0x3d1ea9[_0x29aa69(0xfa)](),this[_0x29aa69(0x142)][_0x29aa69(0xf1)](_0x29aa69(0x14d));}['_beIdle'](){var _0x2079b2=_0x434b0e,_0x506670;this[_0x2079b2(0x142)][_0x2079b2(0xf1)](_0x2079b2(0xc3)),(_0x506670=this[_0x2079b2(0x12c)])==null||_0x506670[_0x2079b2(0xfa)](),this['_commandDisposable']=null;}[_0x434b0e(0x15d)](){var _0x2f71ca=_0x434b0e,_0x53328e;this['_status$']['next'](_0x2f71ca(0x123)),(_0x53328e=this['_commandDisposable'])==null||_0x53328e[_0x2f71ca(0xfa)]();}['_handleOperation'](_0x3960b6){var _0x1edddf=_0x434b0e;if([_0x1edddf(0xff),_0x1edddf(0x123),_0x1edddf(0x166)][_0x1edddf(0x108)](this[_0x1edddf(0xd0)])||!_0x3960b6[_0x1edddf(0xd4)][_0x1edddf(0x169)]||_0x3960b6['data']['presenter']===this[_0x1edddf(0x154)][_0x1edddf(0xdb)]())return;this[_0x1edddf(0xd0)]===_0x1edddf(0xc3)&&this[_0x1edddf(0x121)]();const _0x478bbb=_0x3960b6[_0x1edddf(0xd4)][_0x1edddf(0x102)];Object[_0x1edddf(0xde)](_0x478bbb)['forEach'](_0x5b9691=>{var _0x3ddaaf=_0x1edddf;this['_commandService']['executeCommand'](_0x5b9691['id'],_0x5b9691['params']?JSON['parse'](_0x5b9691[_0x3ddaaf(0xeb)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x77b91a=_0x434b0e,_0x3c285e;this[_0x77b91a(0x142)][_0x77b91a(0xf1)](_0x77b91a(0x166)),(_0x3c285e=this['_commandDisposable'])==null||_0x3c285e[_0x77b91a(0xfa)]();}[_0x434b0e(0xda)](){var _0x2c416d=_0x434b0e;this[_0x2c416d(0x142)][_0x2c416d(0xf1)](_0x2c416d(0xc3)),this[_0x2c416d(0xdc)]();}},exports[_0x434b0e(0xbb)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x434b0e(0xdf)](O)),S(0x4,o[_0x434b0e(0x12a)])],exports[_0x434b0e(0xbb)]);function A(){var _0xc063de=_0x434b0e;const _0x99cbf8=p[_0xc063de(0x10f)](exports['LiveShareController']),_0x14185c=p['useDependency'](o[_0xc063de(0xb6)]),_0x1cebce=p['useObservable'](()=>_0x14185c[_0xc063de(0xe3)](o[_0xc063de(0x11a)][_0xc063de(0xb4)]),void 0x0,!0x1,[]),[_0x2adbf9,_0x8d538b]=f[_0xc063de(0x106)](null),[_0x133660,_0x419fca]=f[_0xc063de(0x106)](h[_0xc063de(0xfc)]),_0x5b3819=f[_0xc063de(0xe5)](null);return f[_0xc063de(0x132)](()=>(_0x1cebce&&_0x99cbf8['getLiveShareCoordinator'](_0x1cebce['getUnitId']())[_0xc063de(0x147)](_0x476311=>{var _0x307c81=_0xc063de;_0x8d538b(_0x476311),_0x5b3819[_0x307c81(0x9e)]=_0x476311[_0x307c81(0x127)]['subscribe'](_0x4aef15=>{_0x419fca(_0x4aef15);});}),()=>{var _0x1a8f9f=_0xc063de,_0x524d95;(_0x524d95=_0x5b3819['current'])==null||_0x524d95[_0x1a8f9f(0x146)](),_0x5b3819['current']=null;}),[_0x1cebce,_0x99cbf8]),_0x2adbf9?l[_0xc063de(0x150)](g[_0xc063de(0x115)],{'align':_0xc063de(0xbd),'disabled':_0x133660===h[_0xc063de(0x161)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0xc063de(0x150)](B,{'status':_0x133660,'coordinator':_0x2adbf9}),'children':l[_0xc063de(0x150)](_0xc063de(0x96),{'className':g[_0xc063de(0x130)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x133660===h[_0xc063de(0x161)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x133660!==h[_0xc063de(0x161)]}),'type':_0xc063de(0x96),'children':l[_0xc063de(0x150)](P,{'className':_0xc063de(0x16a)})})}):null;}function B(_0x41958f){var _0x307165=_0x434b0e;const {status:_0x789de0,coordinator:_0x1f3caf}=_0x41958f;switch(_0x789de0){case h[_0x307165(0xfc)]:return l['jsx'](Y,{'coordinator':_0x1f3caf});case h[_0x307165(0x16c)]:return l[_0x307165(0x150)](Z,{'coordinator':_0x1f3caf});case h[_0x307165(0x13e)]:return l['jsx'](J,{'coordinator':_0x1f3caf});case h[_0x307165(0x161)]:return l[_0x307165(0x150)](z,{});case h[_0x307165(0x110)]:return l[_0x307165(0x150)](K,{'coordinator':_0x1f3caf});default:return null;}}function Y(_0x151fed){var _0x3e465c=_0x434b0e;const {coordinator:_0x555131}=_0x151fed;return l['jsxs'](l[_0x3e465c(0x15b)],{'children':[l[_0x3e465c(0x150)]('div',{'className':_0x3e465c(0xf3),'children':'Present\x20this\x20document'}),l[_0x3e465c(0x150)](g[_0x3e465c(0x14a)],{'onClick':()=>_0x555131[_0x3e465c(0xa5)](),'children':_0x3e465c(0x174)})]});}function Z(_0x43f39e){var _0x4a153e=_0x434b0e;const {coordinator:_0x476f39}=_0x43f39e;return l[_0x4a153e(0x16e)](l['Fragment'],{'children':[l[_0x4a153e(0x150)](_0x4a153e(0x148),{'className':_0x4a153e(0xf3),'children':_0x4a153e(0x98)}),l[_0x4a153e(0x150)](g[_0x4a153e(0x14a)],{'onClick':()=>_0x476f39[_0x4a153e(0x10e)](),'children':_0x4a153e(0xcb)})]});}function J(_0x1c7509){var _0x315948=_0x434b0e;const {coordinator:_0x1beeab}=_0x1c7509;return l['jsxs'](l['Fragment'],{'children':[l[_0x315948(0x150)]('div',{'className':_0x315948(0xf3),'children':_0x315948(0xc8)}),l['jsx'](g[_0x315948(0x14a)],{'variant':_0x315948(0x117),'onClick':()=>_0x1beeab['startFollowing'](),'children':_0x315948(0x101)})]});}function K(_0x3eb185){var _0x224314=_0x434b0e;const {coordinator:_0x21e853}=_0x3eb185;return l[_0x224314(0x16e)](l[_0x224314(0x15b)],{'children':[l[_0x224314(0x150)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x224314(0x14a)],{'variant':_0x224314(0x175),'onClick':()=>_0x21e853['stopPresenting'](),'children':_0x224314(0x10a)})]});}function z(){var _0x426cdb=_0x434b0e;return l[_0x426cdb(0x150)](l[_0x426cdb(0x15b)],{'children':_0x426cdb(0x97)});}var Q=Object[_0x434b0e(0x10b)],X=(_0x55fd40,_0x2e55ba,_0x400f24,_0x283923)=>{var _0x267369=_0x434b0e;for(var _0x1fd646=_0x283923>0x1?void 0x0:_0x283923?Q(_0x2e55ba,_0x400f24):_0x2e55ba,_0x14cf56=_0x55fd40[_0x267369(0x167)]-0x1,_0x1969ea;_0x14cf56>=0x0;_0x14cf56--)(_0x1969ea=_0x55fd40[_0x14cf56])&&(_0x1fd646=_0x1969ea(_0x1fd646)||_0x1fd646);return _0x1fd646;},x=(_0x1cc02a,_0x397bc7)=>(_0x18ce67,_0xd7a43b)=>_0x397bc7(_0x18ce67,_0xd7a43b,_0x1cc02a);exports[_0x434b0e(0x11f)]=class extends o[_0x434b0e(0x15a)]{constructor(_0x299dd9,_0x46b57a){var _0x1822a7=_0x434b0e;super(),this['_injector']=_0x299dd9,this[_0x1822a7(0xb3)]=_0x46b57a,this[_0x1822a7(0xad)]();}['_mountLiveShare'](){var _0x42045d=_0x434b0e;this[_0x42045d(0xdd)](this['_uiPartsService']['registerComponent'](p[_0x42045d(0x116)][_0x42045d(0xd8)],()=>p['connectInjector'](A,this[_0x42045d(0xcf)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o[_0x434b0e(0x134)])),x(0x1,p[_0x434b0e(0xa7)])],exports[_0x434b0e(0x11f)]);const ee=_0x434b0e(0x113),L={};var te=Object[_0x434b0e(0x10b)],ie=(_0x59c8be,_0x8e5337,_0x5c128f,_0x2b5488)=>{for(var _0x307c8b=_0x2b5488>0x1?void 0x0:_0x2b5488?te(_0x8e5337,_0x5c128f):_0x8e5337,_0x3bb60b=_0x59c8be['length']-0x1,_0xc566c5;_0x3bb60b>=0x0;_0x3bb60b--)(_0xc566c5=_0x59c8be[_0x3bb60b])&&(_0x307c8b=_0xc566c5(_0x307c8b)||_0x307c8b);return _0x307c8b;},ne=(_0x3ebef4,_0x4e7d42)=>(_0x216459,_0x25efa9)=>_0x4e7d42(_0x216459,_0x25efa9,_0x3ebef4);let E=class extends o['Disposable']{constructor(_0x5dc698){var _0x568b19=_0x434b0e;super(),this[_0x568b19(0xcc)]=_0x5dc698,this[_0x568b19(0xc6)]();}[_0x434b0e(0xc6)](){var _0xa15dcd=_0x434b0e;[D['SetZoomRatioOperation']['id'],D[_0xa15dcd(0x11e)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x1760e3=>{var _0x2c8161=_0xa15dcd;this[_0x2c8161(0xdd)](this[_0x2c8161(0xcc)]['registerSharedOperation'](_0x1760e3));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x434b0e(0xd7)],se=Object['getOwnPropertyDescriptor'],oe=(_0x39b934,_0x4bc53b,_0x534b6e)=>_0x4bc53b in _0x39b934?re(_0x39b934,_0x4bc53b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x534b6e}):_0x39b934[_0x4bc53b]=_0x534b6e,ae=(_0x8d57a3,_0x3995ce,_0x1c2c89,_0x24f6db)=>{var _0x33084f=_0x434b0e;for(var _0x23947a=_0x24f6db>0x1?void 0x0:_0x24f6db?se(_0x3995ce,_0x1c2c89):_0x3995ce,_0x53809f=_0x8d57a3[_0x33084f(0x167)]-0x1,_0x18075e;_0x53809f>=0x0;_0x53809f--)(_0x18075e=_0x8d57a3[_0x53809f])&&(_0x23947a=_0x18075e(_0x23947a)||_0x23947a);return _0x23947a;},N=(_0x1e1e30,_0x5c80aa)=>(_0x528332,_0x5e267e)=>_0x5c80aa(_0x528332,_0x5e267e,_0x1e1e30),T=(_0x5440db,_0x2eaa6c,_0x24a56f)=>oe(_0x5440db,typeof _0x2eaa6c!='symbol'?_0x2eaa6c+'':_0x2eaa6c,_0x24a56f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x434b0e(0xd9)]=class extends o['Plugin']{constructor(_0x3aa3ae=L,_0x205788,_0x1cccce){var _0x3f7560=_0x434b0e;super(),this[_0x3f7560(0x14e)]=_0x3aa3ae,this[_0x3f7560(0xcf)]=_0x205788,this['_configService']=_0x1cccce;const {..._0x4337b1}=o[_0x3f7560(0xc0)]({},L,this['_config']);this[_0x3f7560(0x120)][_0x3f7560(0xa6)](ee,_0x4337b1);}[_0x434b0e(0x12e)](){var _0x244d12=_0x434b0e;o[_0x244d12(0x13a)](this[_0x244d12(0xcf)],o[_0x244d12(0x165)]([[O],[exports['LiveShareController']],[E],[exports[_0x244d12(0x11f)]]],this[_0x244d12(0x14e)][_0x244d12(0x160)])),o['touchDependencies'](this[_0x244d12(0xcf)],[[E]]);}[_0x434b0e(0x133)](){var _0x47ea1f=_0x434b0e;o[_0x47ea1f(0x168)](this[_0x47ea1f(0xcf)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x434b0e(0x107),o[_0x434b0e(0x11a)][_0x434b0e(0x15e)]),T(exports[_0x434b0e(0xd9)],'pluginName',le),exports[_0x434b0e(0xd9)]=ae([o[_0x434b0e(0xbe)](m[_0x434b0e(0xae)]),N(0x1,o[_0x434b0e(0xdf)](o[_0x434b0e(0x134)])),N(0x2,o[_0x434b0e(0x128)])],exports[_0x434b0e(0xd9)]),exports[_0x434b0e(0x100)]=A,exports[_0x434b0e(0x12d)]=O,exports[_0x434b0e(0xe2)]=h;
|
|
1
|
+
'use strict';var _0x494188=_0x1cfd;(function(_0x3bf652,_0x268a1f){var _0x2ae28a=_0x1cfd,_0x2ab953=_0x3bf652();while(!![]){try{var _0x534466=-parseInt(_0x2ae28a(0x1eb))/0x1+-parseInt(_0x2ae28a(0x188))/0x2*(-parseInt(_0x2ae28a(0x1f1))/0x3)+parseInt(_0x2ae28a(0x1f0))/0x4*(parseInt(_0x2ae28a(0x1a8))/0x5)+-parseInt(_0x2ae28a(0x1e4))/0x6+parseInt(_0x2ae28a(0x1b7))/0x7*(-parseInt(_0x2ae28a(0x265))/0x8)+-parseInt(_0x2ae28a(0x1e0))/0x9+parseInt(_0x2ae28a(0x207))/0xa*(parseInt(_0x2ae28a(0x21b))/0xb);if(_0x534466===_0x268a1f)break;else _0x2ab953['push'](_0x2ab953['shift']());}catch(_0x452772){_0x2ab953['push'](_0x2ab953['shift']());}}}(_0x5736,0x2c3bc));var U=Object[_0x494188(0x23a)],F=(_0x4b45a6,_0x3f811e,_0x35175d)=>_0x3f811e in _0x4b45a6?U(_0x4b45a6,_0x3f811e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35175d}):_0x4b45a6[_0x3f811e]=_0x35175d,v=(_0x5a1767,_0x59ef00,_0x41ab7d)=>F(_0x5a1767,typeof _0x59ef00!=_0x494188(0x1da)?_0x59ef00+'':_0x59ef00,_0x41ab7d);Object['defineProperty'](exports,Symbol[_0x494188(0x1f3)],{'value':_0x494188(0x199)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x287457=_0x494188;return u=Object['assign']||function(_0x2666a9){var _0xbadda3=_0x1cfd;for(var _0x127e25,_0x4bebed=0x1,_0x5294f5=arguments[_0xbadda3(0x194)];_0x4bebed<_0x5294f5;_0x4bebed++){_0x127e25=arguments[_0x4bebed];for(var _0x426025 in _0x127e25)Object[_0xbadda3(0x236)][_0xbadda3(0x193)]['call'](_0x127e25,_0x426025)&&(_0x2666a9[_0x426025]=_0x127e25[_0x426025]);}return _0x2666a9;},u[_0x287457(0x198)](this,arguments);},$=function(_0x30a14f,_0x3b60d5){var _0x5d6391=_0x494188,_0x19ae7f={};for(var _0xad81c0 in _0x30a14f)Object['prototype'][_0x5d6391(0x193)][_0x5d6391(0x1bf)](_0x30a14f,_0xad81c0)&&_0x3b60d5[_0x5d6391(0x1dc)](_0xad81c0)<0x0&&(_0x19ae7f[_0xad81c0]=_0x30a14f[_0xad81c0]);if(_0x30a14f!=null&&typeof Object[_0x5d6391(0x1d2)]==_0x5d6391(0x267)){for(var _0x2cdf7c=0x0,_0xad81c0=Object[_0x5d6391(0x1d2)](_0x30a14f);_0x2cdf7c<_0xad81c0[_0x5d6391(0x194)];_0x2cdf7c++)_0x3b60d5[_0x5d6391(0x1dc)](_0xad81c0[_0x2cdf7c])<0x0&&Object[_0x5d6391(0x236)][_0x5d6391(0x260)][_0x5d6391(0x1bf)](_0x30a14f,_0xad81c0[_0x2cdf7c])&&(_0x19ae7f[_0xad81c0[_0x2cdf7c]]=_0x30a14f[_0xad81c0[_0x2cdf7c]]);}return _0x19ae7f;},j=f[_0x494188(0x1b1)](function(_0xc291a3,_0xa92bcf){var _0x47ae9d=_0x494188,_0x1daf9f=_0xc291a3['icon'],_0x370559=_0xc291a3['id'],_0x5ceda2=_0xc291a3[_0x47ae9d(0x217)],_0x2ab4d2=_0xc291a3['extend'],_0x324662=$(_0xc291a3,[_0x47ae9d(0x264),'id',_0x47ae9d(0x217),_0x47ae9d(0x223)]),_0x3d08d4=_0x47ae9d(0x200)['concat'](_0x370559,'\x20')['concat'](_0x5ceda2||'')[_0x47ae9d(0x213)](),_0x366fac=f[_0x47ae9d(0x19d)]('_'[_0x47ae9d(0x21e)](k()));return y(_0x1daf9f,''[_0x47ae9d(0x21e)](_0x370559),{'defIds':_0x1daf9f['defIds'],'idSuffix':_0x366fac['current']},u({'ref':_0xa92bcf,'className':_0x3d08d4},_0x324662),_0x2ab4d2);});function y(_0x233ab0,_0x32f4e5,_0x4b2a98,_0x3a5663,_0xbc19fb){var _0x202ad4=_0x494188;return f[_0x202ad4(0x22a)](_0x233ab0[_0x202ad4(0x1ce)],u(u({'key':_0x32f4e5},H(_0x233ab0,_0x4b2a98,_0xbc19fb)),_0x3a5663),(V(_0x233ab0,_0x4b2a98)[_0x202ad4(0x227)]||[])[_0x202ad4(0x1ab)](function(_0x1dc582,_0x5d813){var _0x14edcd=_0x202ad4;return y(_0x1dc582,''[_0x14edcd(0x21e)](_0x32f4e5,'-')[_0x14edcd(0x21e)](_0x233ab0['tag'],'-')[_0x14edcd(0x21e)](_0x5d813),_0x4b2a98,void 0x0,_0xbc19fb);}));}function H(_0x245c5f,_0xcc9abe,_0x176f5e){var _0x1183a9=_0x494188,_0x5564e2=u({},_0x245c5f[_0x1183a9(0x1ea)]);_0x176f5e!=null&&_0x176f5e[_0x1183a9(0x1a1)]&&_0x5564e2[_0x1183a9(0x251)]===_0x1183a9(0x1a1)&&(_0x5564e2[_0x1183a9(0x251)]=_0x176f5e[_0x1183a9(0x1a1)]),_0x245c5f[_0x1183a9(0x1ce)]==='mask'&&_0x5564e2['id']&&(_0x5564e2['id']=_0x5564e2['id']+_0xcc9abe[_0x1183a9(0x237)]),Object['entries'](_0x5564e2)[_0x1183a9(0x1d8)](function(_0x2d5866){var _0xb4f477=_0x1183a9,_0x145c37=_0x2d5866[0x0],_0x2b301f=_0x2d5866[0x1];_0x145c37===_0xb4f477(0x231)&&typeof _0x2b301f=='string'&&(_0x5564e2[_0x145c37]=_0x2b301f['replace'](/url\(#(.*)\)/,_0xb4f477(0x256)[_0xb4f477(0x21e)](_0xcc9abe['idSuffix'],')')));});var _0x5dba6d=_0xcc9abe[_0x1183a9(0x1c0)];return!_0x5dba6d||_0x5dba6d[_0x1183a9(0x194)]===0x0||(_0x245c5f[_0x1183a9(0x1ce)]===_0x1183a9(0x228)&&_0x5564e2[_0x1183a9(0x21f)]&&(_0x5564e2[_0x1183a9(0x21f)]=_0x5564e2[_0x1183a9(0x21f)]+_0xcc9abe[_0x1183a9(0x237)]),Object[_0x1183a9(0x23f)](_0x5564e2)[_0x1183a9(0x1d8)](function(_0x53b5f8){var _0x353c6f=_0x1183a9,_0x4abd84=_0x53b5f8[0x0],_0x4d7018=_0x53b5f8[0x1];typeof _0x4d7018==_0x353c6f(0x240)&&(_0x5564e2[_0x4abd84]=_0x4d7018[_0x353c6f(0x1fb)](/url\(#(.*)\)/,_0x353c6f(0x256)[_0x353c6f(0x21e)](_0xcc9abe[_0x353c6f(0x237)],')')));})),_0x5564e2;}function V(_0x3cfac0,_0x3f88e6){var _0x392400=_0x494188,_0x2f9a7f,_0x2058e7=_0x3f88e6[_0x392400(0x1c0)];return!_0x2058e7||_0x2058e7[_0x392400(0x194)]===0x0?_0x3cfac0:_0x3cfac0[_0x392400(0x1ce)]===_0x392400(0x233)&&(!((_0x2f9a7f=_0x3cfac0[_0x392400(0x227)])===null||_0x2f9a7f===void 0x0)&&_0x2f9a7f['length'])?u(u({},_0x3cfac0),{'children':_0x3cfac0[_0x392400(0x227)][_0x392400(0x1ab)](function(_0x5eddd4){var _0x216381=_0x392400;return typeof _0x5eddd4[_0x216381(0x1ea)]['id']==_0x216381(0x240)&&_0x2058e7&&_0x2058e7[_0x216381(0x1d0)](_0x5eddd4[_0x216381(0x1ea)]['id'])?u(u({},_0x5eddd4),{'attrs':u(u({},_0x5eddd4[_0x216381(0x1ea)]),{'id':_0x5eddd4[_0x216381(0x1ea)]['id']+_0x3f88e6[_0x216381(0x237)]})}):_0x5eddd4;})}):_0x3cfac0;}function k(){var _0x20f43a=_0x494188;return Math['random']()['toString'](0x24)[_0x20f43a(0x1ac)](0x2,0x8);}j[_0x494188(0x18b)]=_0x494188(0x232);var M={'tag':'svg','attrs':{'xmlns':_0x494188(0x195),'fill':_0x494188(0x22c),'viewBox':_0x494188(0x261),'width':_0x494188(0x20d),'height':_0x494188(0x20d)},'children':[{'tag':_0x494188(0x216),'attrs':{'fill':_0x494188(0x1fe),'d':_0x494188(0x1c4)}},{'tag':'path','attrs':{'fill':_0x494188(0x1fe),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x494188(0x20f),'clipRule':_0x494188(0x20f)}}]},P=f['forwardRef'](function(_0x39074d,_0x219869){var _0x3e9e3f=_0x494188;return f[_0x3e9e3f(0x22a)](j,Object['assign']({},_0x39074d,{'id':_0x3e9e3f(0x1af),'ref':_0x219869,'icon':M}));});function _0x5736(){var _0x3d3bbc=['has','_status','You\x27are\x20offline.','onStarting','disposeWithMe','throttleTime','_commandDisposable','onCommandExecuted','LIVESHARE_OPERATION','propertyIsEnumerable','0\x200\x2017\x2017','_uiPartsService','shouldShareOperation','icon','48EoLLlS','jsxs','function','connectInjector','BehaviorSubject','pipe','LiveShareController','271494PTStmj','Plugin','IUniverInstanceService','displayName','getCurrentTypeOfUnit$','parseProtocolChangeset','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','touchDependencies','_startPresenting','getConfig','hasOwnProperty','length','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','init','apply','Module','Injector','_startFollowing','Fragment','useRef','delete','send','complete','colorChannel1','Button','executeCommand','values','stopFollowing','_startLiveShareCoordinator','LiveShareService','5xXEKwm','CollaborationSessionService','UNIVER_SHEET','map','substring','get','tryStartPresenting','live-share-icon','_liveShareService','forwardRef','getOwnPropertyDescriptor','_collabSessionService','_stopPresenting','NOT_FOLLOWING','_handleOperation','173187EAdxjk','operations','SessionStatus','_handleNewHost','UNIVER_UNKNOWN','offline','SetWorksheetActiveOperation','FOLLOWING','call','defIds','_handleNewChangeSets','RxDisposable','find','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_commandService','IDLE','CollaborationEvent','button','LiveShareCoordinator','_collabSession','reverse','You\x27re\x20following\x20the\x20presenter','UniverLiveSharePlugin','tag','then','includes','memberID','getOwnPropertySymbols','following','next','_stopFollowing','Inject','current','forEach','from','symbol','IUIPartsService','indexOf','DesktopLiveShareController','SetZoomRatioOperation','CommandType','2523141DRfixQ','default','presenting','_config','2062980ZmadMk','not-following','LIVESHARE_REQUEST_HOST','useDependency','getMemberID','params','attrs','39548ORzSZz','mutations','Start\x20following','DependentOn','getUnitId','1203880IZKNZV','6kYFgJy','_unitID','toStringTag','HEADER_MENU','Disposable','ONLINE','OFFLINE','data','clear','OPERATION','replace','UniverInstanceType','_sharedOperations','currentColor','_beIdle','univerjs-icon\x20univerjs-icon-','jsx','registerSharedOperation','add','toDisposable','registerInitialStateReporter','_status$','4208890aiTdjK','div','UniverCollaborationClientPlugin','useState','subscribe','startFollowing','1em','registerComponent','evenodd','_configService','PRESENTING','univer-size-4','trim','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','path','className','live-share.config','idle','Subject','11jfbbyo','_init','_entities','concat','xlink:href','dispose','useEffect','requireSession','extend','getTypeOfUnitAdded$','takeUntil','override','children','use','end','createElement','LiveShare','none','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','presenter','_mountLiveShare','mask','UniverIcon','defs','_handleOnline','useObservable','prototype','idSuffix','NEW_CHANGESETS','stopPresenting','defineProperty','set','dispose$','_handleTerminate','_presenter','entries','string','_univerInstanceService','_reporters','Present\x20this\x20document','Dropdown','stringify','getInitialStates','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetScrollOperation','LiveShareStatus','pluginName','onRendered','_handleOffline','getValue','text','LIVESHARE_NEW_HOST','InsertSheetMutation','fill','_injector','BuiltInUIPart','IConfigService','Start','url(#$1'];_0x5736=function(){return _0x3d3bbc;};return _0x5736();}P[_0x494188(0x18b)]='LiveShareIcon';class O extends o[_0x494188(0x1f5)]{constructor(){var _0x2f0493=_0x494188;super(...arguments),v(this,_0x2f0493(0x1fd),new Set()),v(this,'_reporters',new Set());}[_0x494188(0x202)](_0x44b467){var _0x22df32=_0x494188;return this[_0x22df32(0x1fd)][_0x22df32(0x203)](_0x44b467),o[_0x22df32(0x204)](()=>this[_0x22df32(0x1fd)][_0x22df32(0x19e)](_0x44b467));}[_0x494188(0x205)](_0x2af5e0){var _0x367d07=_0x494188;return this[_0x367d07(0x242)]['add'](_0x2af5e0),o[_0x367d07(0x204)](()=>this[_0x367d07(0x242)][_0x367d07(0x19e)](_0x2af5e0));}[_0x494188(0x263)](_0x237e6d){var _0x6f0700=_0x494188;return this[_0x6f0700(0x1fd)][_0x6f0700(0x257)](_0x237e6d);}['getInitialStates'](_0x31aa5f){var _0x2c9972=_0x494188;return Array[_0x2c9972(0x1d9)](this['_reporters'])[_0x2c9972(0x1ab)](_0x4b9150=>_0x4b9150(_0x31aa5f));}}var q=Object[_0x494188(0x1b2)],R=(_0x7a92e1,_0xe8fa39,_0x5c04b8,_0x520392)=>{var _0x2d6992=_0x494188;for(var _0x32e0ba=_0x520392>0x1?void 0x0:_0x520392?q(_0xe8fa39,_0x5c04b8):_0xe8fa39,_0x2260db=_0x7a92e1[_0x2d6992(0x194)]-0x1,_0x2d4806;_0x2260db>=0x0;_0x2260db--)(_0x2d4806=_0x7a92e1[_0x2260db])&&(_0x32e0ba=_0x2d4806(_0x32e0ba)||_0x32e0ba);return _0x32e0ba;},S=(_0x22ebeb,_0x40c6cd)=>(_0x4c6a04,_0x41208d)=>_0x40c6cd(_0x4c6a04,_0x41208d,_0x22ebeb);exports[_0x494188(0x187)]=class extends o[_0x494188(0x1c2)]{constructor(_0x139f2a,_0x5c9141,_0x4dacd8){var _0x4b2ad3=_0x494188;super(),v(this,_0x4b2ad3(0x21d),new Map()),(this[_0x4b2ad3(0x241)]=_0x139f2a,this[_0x4b2ad3(0x252)]=_0x5c9141,this[_0x4b2ad3(0x1b3)]=_0x4dacd8,this['_init']());}async['getLiveShareCoordinator'](_0x4049b8){var _0x52eb65=_0x494188;return this['_entities'][_0x52eb65(0x257)](_0x4049b8)||await this[_0x52eb65(0x1a6)](_0x4049b8),this[_0x52eb65(0x21d)]['get'](_0x4049b8);}[_0x494188(0x21c)](){var _0x51bffc=_0x494188;this[_0x51bffc(0x241)][_0x51bffc(0x224)](o['UniverInstanceType'][_0x51bffc(0x1aa)])[_0x51bffc(0x186)](b[_0x51bffc(0x225)](this[_0x51bffc(0x23c)]))['subscribe'](async _0x1bb286=>{var _0x211cd8=_0x51bffc;const _0x5e412d=_0x1bb286[_0x211cd8(0x1ef)]();this[_0x211cd8(0x21d)][_0x211cd8(0x257)](_0x5e412d)||this[_0x211cd8(0x1a6)](_0x5e412d);}),this[_0x51bffc(0x241)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x51bffc(0x1aa)])[_0x51bffc(0x186)](b[_0x51bffc(0x225)](this[_0x51bffc(0x23c)]))[_0x51bffc(0x20b)](_0x2e28e1=>{var _0x574bf0=_0x51bffc;const _0x140b0f=_0x2e28e1['getUnitId'](),_0x4f6b11=this[_0x574bf0(0x21d)][_0x574bf0(0x1ad)](_0x140b0f);_0x4f6b11==null||_0x4f6b11[_0x574bf0(0x220)]();});}async[_0x494188(0x1a6)](_0x3082dc){var _0x59e61f=_0x494188;const _0x3d7242=await this['_collabSessionService'][_0x59e61f(0x222)](_0x3082dc),_0x28cf0d=this['_injector']['createInstance'](exports[_0x59e61f(0x1c9)],_0x3082dc,_0x3d7242);return _0x28cf0d[_0x59e61f(0x197)](),this[_0x59e61f(0x21d)][_0x59e61f(0x23b)](_0x3082dc,_0x28cf0d),_0x28cf0d;}},exports[_0x494188(0x187)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x494188(0x1d6)](o[_0x494188(0x19a)])),S(0x2,o[_0x494188(0x1d6)](m[_0x494188(0x1a9)]))],exports[_0x494188(0x187)]);var h=(_0x5b1b05=>(_0x5b1b05[_0x494188(0x1f7)]=_0x494188(0x1bc),_0x5b1b05['IDLE']=_0x494188(0x219),_0x5b1b05[_0x494188(0x1be)]=_0x494188(0x1d3),_0x5b1b05['NOT_FOLLOWING']=_0x494188(0x1e5),_0x5b1b05[_0x494188(0x211)]='presenting',_0x5b1b05))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x494188(0x1c9)]=class extends o[_0x494188(0x1c2)]{constructor(_0xb760a4,_0x177e21,_0x2884f5,_0xe8d0f2,_0x3944a4){var _0xc09fe4=_0x494188;super(),v(this,_0xc09fe4(0x206),new w[(_0xc09fe4(0x185))](_0xc09fe4(0x219))),v(this,'status$',this['_status$']['asObservable']()),v(this,'_init',!0x1),v(this,_0xc09fe4(0x25d),null),v(this,_0xc09fe4(0x23e),null),(this['_unitID']=_0xb760a4,this[_0xc09fe4(0x1ca)]=_0x177e21,this[_0xc09fe4(0x210)]=_0x2884f5,this[_0xc09fe4(0x1b0)]=_0xe8d0f2,this['_commandService']=_0x3944a4);}get[_0x494188(0x258)](){var _0x29a618=_0x494188;return this[_0x29a618(0x206)][_0x29a618(0x24d)]();}[_0x494188(0x220)](){var _0x5058ad=_0x494188,_0x26b093;(_0x26b093=this[_0x5058ad(0x25d)])==null||_0x26b093[_0x5058ad(0x220)](),this[_0x5058ad(0x206)][_0x5058ad(0x1d4)](_0x5058ad(0x219)),this['_status$'][_0x5058ad(0x1a0)]();}[_0x494188(0x197)](){var _0x43d172=_0x494188;this['_init']||(this[_0x43d172(0x21c)]=!0x0,this[_0x43d172(0x1ca)]['sessionStatus$'][_0x43d172(0x186)](b[_0x43d172(0x225)](this[_0x43d172(0x23c)]))['subscribe'](_0x39e11f=>{var _0x2aa6cc=_0x43d172;switch(_0x39e11f){case m['SessionStatus']['OFFLINE']:this[_0x2aa6cc(0x24c)]();break;case m[_0x2aa6cc(0x1b9)][_0x2aa6cc(0x1f6)]:this[_0x2aa6cc(0x234)]();break;}}),this['_collabSession']['event$']['pipe'](b['takeUntil'](this[_0x43d172(0x23c)]))[_0x43d172(0x20b)](_0x6fb3f6=>{var _0x38ebc3=_0x43d172;const {eventID:_0x4eb884}=_0x6fb3f6;switch(_0x4eb884){case _['CollaborationEvent'][_0x38ebc3(0x24f)]:this[_0x38ebc3(0x1ba)](_0x6fb3f6);break;case _[_0x38ebc3(0x1c7)]['LIVESHARE_OPERATION']:this[_0x38ebc3(0x1b6)](_0x6fb3f6);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x38ebc3(0x23d)]();break;case _[_0x38ebc3(0x1c7)][_0x38ebc3(0x238)]:this[_0x38ebc3(0x1c1)](_0x6fb3f6);break;}}));}[_0x494188(0x1ae)](){var _0x156709=_0x494188;this['_collabSession'][_0x156709(0x19f)]({'eventID':_['CollaborationEvent'][_0x156709(0x1e6)],'data':{'unitID':this[_0x156709(0x1f2)],'userID':this['_collabSession']['getMemberID']()}},this[_0x156709(0x1f2)]);}[_0x494188(0x239)](){var _0x29d1cc=_0x494188;this[_0x29d1cc(0x258)]==='presenting'&&(this[_0x29d1cc(0x206)][_0x29d1cc(0x1d4)](_0x29d1cc(0x219)),this['_collabSession'][_0x29d1cc(0x19f)]({'eventID':_[_0x29d1cc(0x1c7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x29d1cc(0x1f2)]}},this[_0x29d1cc(0x1f2)]));}[_0x494188(0x20c)](){var _0x3ccd49=_0x494188;this[_0x3ccd49(0x258)]==='not-following'&&(this[_0x3ccd49(0x206)][_0x3ccd49(0x1d4)](_0x3ccd49(0x1d3)),this[_0x3ccd49(0x19b)]());}[_0x494188(0x1a5)](){var _0x282460=_0x494188;this[_0x282460(0x258)]==='following'&&this[_0x282460(0x1d5)]();}[_0x494188(0x1ba)](_0x1eda81){var _0x4b27aa=_0x494188;const {presenter:_0x2fec6f}=_0x1eda81[_0x4b27aa(0x1f8)],_0x57770c=this[_0x4b27aa(0x1ca)][_0x4b27aa(0x1e8)]();this[_0x4b27aa(0x23e)]=_0x2fec6f,_0x2fec6f===_0x57770c?(this[_0x4b27aa(0x1d5)](),this[_0x4b27aa(0x191)]()):this[_0x4b27aa(0x258)]!==_0x4b27aa(0x1e5)&&(this['_stopPresenting'](),this[_0x4b27aa(0x19b)]());}['_fetchOperations'](){var _0x4dc848=_0x494188;const _0xf6c922={'eventID':_[_0x4dc848(0x1c7)][_0x4dc848(0x215)]};this[_0x4dc848(0x1ca)][_0x4dc848(0x19f)](_0xf6c922,this['_unitID']);}['_handleTerminate'](){var _0x395137=_0x494188;this[_0x395137(0x23e)]=null,this[_0x395137(0x258)]!=='presenting'&&this[_0x395137(0x1ff)]();}[_0x494188(0x1c1)](_0x1a9e1b){var _0x3e2659=_0x494188;if(this[_0x3e2659(0x258)]==='following'&&this[_0x3e2659(0x23e)]===_0x1a9e1b['data'][_0x3e2659(0x1d1)]){const _0x27869a=_[_0x3e2659(0x18d)](_0x1a9e1b[_0x3e2659(0x1f8)])[_0x3e2659(0x1ec)][_0x3e2659(0x1cb)]()[_0x3e2659(0x1c3)](_0x2ea5a3=>_0x2ea5a3['id']===C[_0x3e2659(0x250)]['id']);if(_0x27869a){const _0x489810=_0x27869a['params']['unitId'],_0x1ee85d=_0x27869a['params']['sheet']['id'];setTimeout(()=>{var _0x18165a=_0x3e2659;this[_0x18165a(0x1c5)][_0x18165a(0x1a3)](C[_0x18165a(0x1bd)]['id'],{'unitId':_0x489810,'subUnitId':_0x1ee85d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x75179e=_0x494188;this['_status$'][_0x75179e(0x1d4)](_0x75179e(0x1e2));const _0x3b954c=new Map(),_0x5a445a=this[_0x75179e(0x25d)]=new o['DisposableCollection']();_0x5a445a['add'](o[_0x75179e(0x204)](()=>{var _0x4531de=_0x75179e;_0x3b954c[_0x4531de(0x1d8)](_0x2e6491=>_0x2e6491[_0x4531de(0x1a0)]()),_0x3b954c[_0x4531de(0x1f9)]();})),_0x5a445a[_0x75179e(0x203)](this[_0x75179e(0x1c5)][_0x75179e(0x25e)](_0x119dca=>{var _0x3a1e1a=_0x75179e,_0x22ad65;if(_0x119dca[_0x3a1e1a(0x18f)]!==o[_0x3a1e1a(0x1df)][_0x3a1e1a(0x1fa)]||!this['_liveShareService'][_0x3a1e1a(0x263)](_0x119dca['id']))return;const {id:_0x18fcb4}=_0x119dca;let _0x201ebf;_0x3b954c[_0x3a1e1a(0x257)](_0x18fcb4)?_0x201ebf=_0x3b954c[_0x3a1e1a(0x1ad)](_0x18fcb4):(_0x201ebf=new w[(_0x3a1e1a(0x21a))](),_0x3b954c[_0x3a1e1a(0x23b)](_0x18fcb4,_0x201ebf),_0x201ebf[_0x3a1e1a(0x186)](b[_0x3a1e1a(0x25c)]((_0x22ad65=this[_0x3a1e1a(0x210)][_0x3a1e1a(0x192)](W))!=null?_0x22ad65:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1301b8=>{var _0x25e05e=_0x3a1e1a;this[_0x25e05e(0x1ca)][_0x25e05e(0x19f)]({'eventID':_['CollaborationEvent'][_0x25e05e(0x25f)],'data':{'unitID':this['_unitID'],'operations':{[_0x1301b8['id']]:{'id':_0x1301b8['id'],'params':JSON[_0x25e05e(0x245)](_0x1301b8[_0x25e05e(0x1e9)])}}}},this[_0x25e05e(0x1f2)]);})),_0x201ebf[_0x3a1e1a(0x1d4)](_0x119dca);})),this[_0x75179e(0x1b0)][_0x75179e(0x246)](this[_0x75179e(0x1f2)])[_0x75179e(0x1d8)](_0xceb4d5=>this['_collabSession']['send']({'eventID':_[_0x75179e(0x1c7)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x75179e(0x1f2)],'operations':{[_0xceb4d5['id']]:{'id':_0xceb4d5['id'],'params':JSON['stringify'](_0xceb4d5[_0x75179e(0x1e9)])}}}},this[_0x75179e(0x1f2)]));}[_0x494188(0x1b4)](){var _0x4c6bde=_0x494188,_0x22efd0;this[_0x4c6bde(0x206)][_0x4c6bde(0x1d4)](_0x4c6bde(0x219)),(_0x22efd0=this[_0x4c6bde(0x25d)])==null||_0x22efd0[_0x4c6bde(0x220)](),this[_0x4c6bde(0x25d)]=null;}[_0x494188(0x19b)](){var _0x4bdbc8=_0x494188,_0x5c61f1;(_0x5c61f1=this[_0x4bdbc8(0x25d)])==null||_0x5c61f1[_0x4bdbc8(0x220)](),this[_0x4bdbc8(0x206)][_0x4bdbc8(0x1d4)](_0x4bdbc8(0x1d3));}[_0x494188(0x1ff)](){var _0x259dab=_0x494188,_0x22e1d8;this[_0x259dab(0x206)][_0x259dab(0x1d4)](_0x259dab(0x219)),(_0x22e1d8=this[_0x259dab(0x25d)])==null||_0x22e1d8[_0x259dab(0x220)](),this[_0x259dab(0x25d)]=null;}[_0x494188(0x1d5)](){var _0x47c413=_0x494188,_0x4f9d3f;this['_status$'][_0x47c413(0x1d4)](_0x47c413(0x1e5)),(_0x4f9d3f=this[_0x47c413(0x25d)])==null||_0x4f9d3f[_0x47c413(0x220)]();}['_handleOperation'](_0x5ba7dd){var _0x1788e1=_0x494188;if(['presenting',_0x1788e1(0x1e5),'offline'][_0x1788e1(0x1d0)](this[_0x1788e1(0x258)])||!_0x5ba7dd[_0x1788e1(0x1f8)][_0x1788e1(0x22f)]||_0x5ba7dd['data']['presenter']===this[_0x1788e1(0x1ca)][_0x1788e1(0x1e8)]())return;this[_0x1788e1(0x258)]===_0x1788e1(0x219)&&this[_0x1788e1(0x19b)]();const _0x1415a8=_0x5ba7dd[_0x1788e1(0x1f8)][_0x1788e1(0x1b8)];Object[_0x1788e1(0x1a4)](_0x1415a8)['forEach'](_0xb8f7d=>{var _0x4a7f3d=_0x1788e1;this['_commandService'][_0x4a7f3d(0x1a3)](_0xb8f7d['id'],_0xb8f7d[_0x4a7f3d(0x1e9)]?JSON['parse'](_0xb8f7d[_0x4a7f3d(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1eddef=_0x494188,_0x3a6df6;this[_0x1eddef(0x206)][_0x1eddef(0x1d4)]('offline'),(_0x3a6df6=this[_0x1eddef(0x25d)])==null||_0x3a6df6[_0x1eddef(0x220)]();}[_0x494188(0x234)](){var _0x150418=_0x494188;this[_0x150418(0x206)]['next']('idle'),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x494188(0x254)]),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x1fa9a5=_0x494188;const _0x6f928c=p[_0x1fa9a5(0x1e7)](exports['LiveShareController']),_0x12939c=p['useDependency'](o[_0x1fa9a5(0x18a)]),_0x4f4f4e=p[_0x1fa9a5(0x235)](()=>_0x12939c[_0x1fa9a5(0x18c)](o[_0x1fa9a5(0x1fc)][_0x1fa9a5(0x1aa)]),void 0x0,!0x1,[]),[_0x14b1cd,_0x3021fe]=f[_0x1fa9a5(0x20a)](null),[_0x2c35d2,_0x2b77c8]=f[_0x1fa9a5(0x20a)](h[_0x1fa9a5(0x1c6)]),_0x1f9148=f[_0x1fa9a5(0x19d)](null);return f[_0x1fa9a5(0x221)](()=>(_0x4f4f4e&&_0x6f928c['getLiveShareCoordinator'](_0x4f4f4e[_0x1fa9a5(0x1ef)]())[_0x1fa9a5(0x1cf)](_0x2037a2=>{var _0x618a4d=_0x1fa9a5;_0x3021fe(_0x2037a2),_0x1f9148[_0x618a4d(0x1d7)]=_0x2037a2['status$'][_0x618a4d(0x20b)](_0x3a226c=>{_0x2b77c8(_0x3a226c);});}),()=>{var _0x271749=_0x1fa9a5,_0x34f50f;(_0x34f50f=_0x1f9148[_0x271749(0x1d7)])==null||_0x34f50f[_0x271749(0x22e)](),_0x1f9148['current']=null;}),[_0x4f4f4e,_0x6f928c]),_0x14b1cd?l['jsx'](g[_0x1fa9a5(0x244)],{'align':_0x1fa9a5(0x229),'disabled':_0x2c35d2===h[_0x1fa9a5(0x1f7)],'className':_0x1fa9a5(0x18e),'overlay':l[_0x1fa9a5(0x201)](B,{'status':_0x2c35d2,'coordinator':_0x14b1cd}),'children':l[_0x1fa9a5(0x201)](_0x1fa9a5(0x1c8),{'className':g['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2c35d2===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c35d2!==h[_0x1fa9a5(0x1f7)]}),'type':_0x1fa9a5(0x1c8),'children':l['jsx'](P,{'className':_0x1fa9a5(0x212)})})}):null;}function B(_0x26039d){var _0x24074e=_0x494188;const {status:_0x711a63,coordinator:_0x5528b9}=_0x26039d;switch(_0x711a63){case h[_0x24074e(0x1c6)]:return l[_0x24074e(0x201)](Y,{'coordinator':_0x5528b9});case h['FOLLOWING']:return l[_0x24074e(0x201)](Z,{'coordinator':_0x5528b9});case h[_0x24074e(0x1b5)]:return l['jsx'](J,{'coordinator':_0x5528b9});case h['OFFLINE']:return l[_0x24074e(0x201)](z,{});case h[_0x24074e(0x211)]:return l['jsx'](K,{'coordinator':_0x5528b9});default:return null;}}function Y(_0x37537b){var _0x21e964=_0x494188;const {coordinator:_0x190dd2}=_0x37537b;return l[_0x21e964(0x266)](l['Fragment'],{'children':[l[_0x21e964(0x201)](_0x21e964(0x208),{'className':_0x21e964(0x247),'children':_0x21e964(0x243)}),l['jsx'](g[_0x21e964(0x1a2)],{'onClick':()=>_0x190dd2[_0x21e964(0x1ae)](),'children':_0x21e964(0x255)})]});}function _0x1cfd(_0x396829,_0x315ffe){var _0x573663=_0x5736();return _0x1cfd=function(_0x1cfd2b,_0x4dcbb6){_0x1cfd2b=_0x1cfd2b-0x184;var _0x1100be=_0x573663[_0x1cfd2b];return _0x1100be;},_0x1cfd(_0x396829,_0x315ffe);}function Z(_0x2f36c5){var _0x1bbff9=_0x494188;const {coordinator:_0x275784}=_0x2f36c5;return l[_0x1bbff9(0x266)](l[_0x1bbff9(0x19c)],{'children':[l['jsx'](_0x1bbff9(0x208),{'className':_0x1bbff9(0x247),'children':_0x1bbff9(0x1cc)}),l[_0x1bbff9(0x201)](g[_0x1bbff9(0x1a2)],{'onClick':()=>_0x275784['stopFollowing'](),'children':'Stop\x20following'})]});}function J(_0x34e8d1){var _0x28600a=_0x494188;const {coordinator:_0x1862ac}=_0x34e8d1;return l[_0x28600a(0x266)](l['Fragment'],{'children':[l[_0x28600a(0x201)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28600a(0x196)}),l[_0x28600a(0x201)](g[_0x28600a(0x1a2)],{'variant':_0x28600a(0x24e),'onClick':()=>_0x1862ac[_0x28600a(0x20c)](),'children':_0x28600a(0x1ed)})]});}function K(_0x16a9dc){var _0x509d14=_0x494188;const {coordinator:_0x3fbfa1}=_0x16a9dc;return l[_0x509d14(0x266)](l['Fragment'],{'children':[l[_0x509d14(0x201)](_0x509d14(0x208),{'className':_0x509d14(0x247),'children':_0x509d14(0x214)}),l['jsx'](g[_0x509d14(0x1a2)],{'variant':_0x509d14(0x1e1),'onClick':()=>_0x3fbfa1[_0x509d14(0x239)](),'children':'Stop\x20presenting'})]});}function z(){var _0x58152e=_0x494188;return l[_0x58152e(0x201)](l[_0x58152e(0x19c)],{'children':_0x58152e(0x259)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x16ff0a,_0x2d71e8,_0x55a500,_0xbcf167)=>{for(var _0x164e18=_0xbcf167>0x1?void 0x0:_0xbcf167?Q(_0x2d71e8,_0x55a500):_0x2d71e8,_0x49b8db=_0x16ff0a['length']-0x1,_0x4aa4dc;_0x49b8db>=0x0;_0x49b8db--)(_0x4aa4dc=_0x16ff0a[_0x49b8db])&&(_0x164e18=_0x4aa4dc(_0x164e18)||_0x164e18);return _0x164e18;},x=(_0x4277c3,_0x49d70e)=>(_0x2f1ac7,_0x38ccc7)=>_0x49d70e(_0x2f1ac7,_0x38ccc7,_0x4277c3);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x58f7e0,_0x46f1d4){var _0x5b18c2=_0x494188;super(),this['_injector']=_0x58f7e0,this[_0x5b18c2(0x262)]=_0x46f1d4,this[_0x5b18c2(0x230)]();}[_0x494188(0x230)](){var _0x8cd429=_0x494188;this[_0x8cd429(0x25b)](this[_0x8cd429(0x262)][_0x8cd429(0x20e)](p[_0x8cd429(0x253)][_0x8cd429(0x1f4)],()=>p[_0x8cd429(0x184)](A,this[_0x8cd429(0x252)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o[_0x494188(0x19a)])),x(0x1,p[_0x494188(0x1db)])],exports[_0x494188(0x1dd)]);const ee=_0x494188(0x218),L={};var te=Object[_0x494188(0x1b2)],ie=(_0x57b2b5,_0x179dc2,_0x9236dc,_0x204576)=>{var _0xa37e72=_0x494188;for(var _0xce74b2=_0x204576>0x1?void 0x0:_0x204576?te(_0x179dc2,_0x9236dc):_0x179dc2,_0x196271=_0x57b2b5[_0xa37e72(0x194)]-0x1,_0x408bcb;_0x196271>=0x0;_0x196271--)(_0x408bcb=_0x57b2b5[_0x196271])&&(_0xce74b2=_0x408bcb(_0xce74b2)||_0xce74b2);return _0xce74b2;},ne=(_0x50c8d8,_0x37625b)=>(_0x505a4d,_0x5d231e)=>_0x37625b(_0x505a4d,_0x5d231e,_0x50c8d8);let E=class extends o[_0x494188(0x1f5)]{constructor(_0x316ea4){var _0x3d3e0e=_0x494188;super(),this['_liveShareService']=_0x316ea4,this[_0x3d3e0e(0x21c)]();}[_0x494188(0x21c)](){var _0x294643=_0x494188;[D[_0x294643(0x1de)]['id'],D[_0x294643(0x248)]['id'],C[_0x294643(0x1bd)]['id']][_0x294643(0x1d8)](_0x133c0d=>{var _0x14558e=_0x294643;this[_0x14558e(0x25b)](this['_liveShareService'][_0x14558e(0x202)](_0x133c0d));});}};E=ie([ne(0x0,o[_0x494188(0x1d6)](O))],E);var re=Object[_0x494188(0x23a)],se=Object[_0x494188(0x1b2)],oe=(_0x158f5b,_0x2e0e0c,_0x43927c)=>_0x2e0e0c in _0x158f5b?re(_0x158f5b,_0x2e0e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43927c}):_0x158f5b[_0x2e0e0c]=_0x43927c,ae=(_0x4845c7,_0x41b267,_0x472da1,_0x498462)=>{for(var _0x338236=_0x498462>0x1?void 0x0:_0x498462?se(_0x41b267,_0x472da1):_0x41b267,_0x5f1b75=_0x4845c7['length']-0x1,_0x1bc6e6;_0x5f1b75>=0x0;_0x5f1b75--)(_0x1bc6e6=_0x4845c7[_0x5f1b75])&&(_0x338236=_0x1bc6e6(_0x338236)||_0x338236);return _0x338236;},N=(_0xeb706,_0x3c645e)=>(_0x4fe3a1,_0x3226fd)=>_0x3c645e(_0x4fe3a1,_0x3226fd,_0xeb706),T=(_0xf5e104,_0x21c5d6,_0x324ba4)=>oe(_0xf5e104,typeof _0x21c5d6!='symbol'?_0x21c5d6+'':_0x21c5d6,_0x324ba4);const le=_0x494188(0x22d);exports[_0x494188(0x1cd)]=class extends o[_0x494188(0x189)]{constructor(_0x41ce10=L,_0x3c1d40,_0x166558){var _0x39164b=_0x494188;super(),this[_0x39164b(0x1e3)]=_0x41ce10,this[_0x39164b(0x252)]=_0x3c1d40,this['_configService']=_0x166558;const {..._0x33702a}=o['merge']({},L,this[_0x39164b(0x1e3)]);this[_0x39164b(0x210)]['setConfig'](ee,_0x33702a);}[_0x494188(0x25a)](){var _0x5c40ab=_0x494188;o['registerDependencies'](this[_0x5c40ab(0x252)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x5c40ab(0x1dd)]]],this[_0x5c40ab(0x1e3)][_0x5c40ab(0x226)])),o[_0x5c40ab(0x190)](this[_0x5c40ab(0x252)],[[E]]);}[_0x494188(0x24b)](){var _0x1ee460=_0x494188;o['touchDependencies'](this[_0x1ee460(0x252)],[[exports[_0x1ee460(0x1dd)]]]);}},T(exports[_0x494188(0x1cd)],_0x494188(0x18f),o[_0x494188(0x1fc)][_0x494188(0x1bb)]),T(exports[_0x494188(0x1cd)],_0x494188(0x24a),le),exports[_0x494188(0x1cd)]=ae([o[_0x494188(0x1ee)](m[_0x494188(0x209)]),N(0x1,o[_0x494188(0x1d6)](o[_0x494188(0x19a)])),N(0x2,o[_0x494188(0x254)])],exports['UniverLiveSharePlugin']),exports[_0x494188(0x22b)]=A,exports[_0x494188(0x1a7)]=O,exports[_0x494188(0x249)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x313013=_0x1f46;(function(_0x4b2471,_0x5b89f8){var _0x344991=_0x1f46,_0x46e958=_0x4b2471();while(!![]){try{var _0x28ae67=parseInt(_0x344991(0x181))/0x1*(parseInt(_0x344991(0xe7))/0x2)+-parseInt(_0x344991(0xed))/0x3+-parseInt(_0x344991(0xe9))/0x4*(parseInt(_0x344991(0x159))/0x5)+-parseInt(_0x344991(0xf8))/0x6*(-parseInt(_0x344991(0x141))/0x7)+-parseInt(_0x344991(0x121))/0x8+parseInt(_0x344991(0xe8))/0x9*(parseInt(_0x344991(0x179))/0xa)+parseInt(_0x344991(0x140))/0xb;if(_0x28ae67===_0x5b89f8)break;else _0x46e958['push'](_0x46e958['shift']());}catch(_0x276171){_0x46e958['push'](_0x46e958['shift']());}}}(_0x334b,0x9646d));var q=Object[_0x313013(0x11e)],z=(_0x22b249,_0x1e883d,_0x1fdd98)=>_0x1e883d in _0x22b249?q(_0x22b249,_0x1e883d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fdd98}):_0x22b249[_0x1e883d]=_0x1fdd98,d=(_0x38aae6,_0x18c38e,_0x4dcb2d)=>z(_0x38aae6,typeof _0x18c38e!='symbol'?_0x18c38e+'':_0x18c38e,_0x4dcb2d);import{Disposable as _0x15177c,toDisposable as _0x4a5097,IUniverInstanceService as _0xf8954b,Inject as _0x53b001,Injector as _0xf6095,IConfigService as _0x3638f5,ICommandService as _0x7fb0ea,RxDisposable as _0x393560,UniverInstanceType as _0x258437,DisposableCollection as _0x59dc2e,CommandType as _0x116d56,DependentOn as _0x15f744,Plugin as _0x4c9b21,merge as _0x28c635,registerDependencies as _0x28d1b1,mergeOverrideWithDependencies as _0x31c621,touchDependencies as _0x58be07}from'@univerjs/core';import{useDependency as _0x2fb90e,useObservable as _0x5ec775,IUIPartsService as _0x3a3ffe,BuiltInUIPart as _0x3d6ae4,connectInjector as _0x155e9e}from'@univerjs/ui';import{jsx as _0x3555d8,jsxs as _0x2f31fd,Fragment as _0x5efcf4}from'react/jsx-runtime';import{Dropdown as _0x2b078d,clsx as _0x392cc7,Button as _0x9c96c8}from'@univerjs/design';import{forwardRef as _0x64c43f,useRef as _0x4dbc7b,createElement as _0x4ecdb1,useState as _0x98af16,useEffect as _0x7fb2bf}from'react';import{CollaborationEvent as _0x284f8f,parseProtocolChangeset as _0x4e5eba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x102374,SessionStatus as _0x1c4955,UniverCollaborationClientPlugin as _0x54c104}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d62bc,SetWorksheetActiveOperation as _0x206df5}from'@univerjs/sheets';import{BehaviorSubject as _0x476844,Subject as _0x228df7}from'rxjs';function _0x334b(){var _0x5cbbf3=['You\x27re\x20presenting\x20the\x20document','has','memberID','1374485OgLUsY','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','_handleNewChangeSets','end','url(#$1','div','_univerInstanceService','function','onRendered','map','stopFollowing','_collabSession','getOwnPropertyDescriptor','_collabSessionService','use','requireSession','registerComponent','svg','LIVESHARE_OPERATION','getMemberID','asObservable','sessionStatus$','apply','setConfig','children','path','UNIVER_SHEET','_mountLiveShare','NOT_FOLLOWING','You\x27are\x20offline.','10XtybxB','OPERATION','_reporters','string','pluginName','_config','xlink:href','currentColor','401LvfoLJ','then','toString','live-share-icon','stopPresenting','subscribe','FOLLOWING','symbol','_handleNewHost','_commandDisposable','_init','evenodd','0\x200\x2017\x2017','extend','replace','pipe','You\x27re\x20not\x20following\x20the\x20presenter','_status$','get','UniverIcon','event$','idSuffix','delete','onStarting','Stop\x20presenting','set','_handleOnline','prototype','idle','add','NEW_CHANGESETS','HEADER_MENU','http://www.w3.org/2000/svg','982dgJVmb','2912292keXife','4HQeWom','concat','complete','values','2192607mZcuAV','propertyIsEnumerable','className','tryStartPresenting','_startLiveShareCoordinator','data','Start\x20following','getValue','_configService','trim','onCommandExecuted','5322NiNUso','offline','_handleOffline','call','LIVESHARE_NEW_HOST','defIds','from','substring','_stopPresenting','getOwnPropertySymbols','forEach','init','mask','_commandService','_status','random','params','tag','UNIVER_UNKNOWN','_entities','disposeWithMe','getLiveShareCoordinator','IDLE','fill','_presenter','send','attrs','OFFLINE','none','_startFollowing','not-following','presenting','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','dispose','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','Start','_stopFollowing','4659528LXTtcC','text','current','next','parse','_handleOperation','_beIdle','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','status$','mutations','includes','_handleTerminate','_sharedOperations','unitId','1em','operations','_unitID','univer-size-4','indexOf','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','live-share.config','startFollowing','dispose$','_fetchOperations','getTypeOfUnitDisposed$','clear','assign','stringify','14437445vMHkSF','2926DySAnL','entries','length','_liveShareService','PRESENTING','_startPresenting','default','getCurrentTypeOfUnit$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','find','LIVESHARE_TERMINATE','Stop\x20following','type','_uiPartsService','getUnitId','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','_injector','displayName','presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x334b=function(){return _0x5cbbf3;};return _0x334b();}import{takeUntil as _0xc34bd8,throttleTime as _0x72d5ce}from'rxjs/operators';import{SetZoomRatioOperation as _0xeb514c,SetScrollOperation as _0x19ee46}from'@univerjs/sheets-ui';var c=function(){var _0x598b75=_0x313013;return c=Object[_0x598b75(0x13e)]||function(_0x3738e8){var _0x15a48c=_0x598b75;for(var _0x2851bb,_0x3a6e6d=0x1,_0x1055cd=arguments[_0x15a48c(0x143)];_0x3a6e6d<_0x1055cd;_0x3a6e6d++){_0x2851bb=arguments[_0x3a6e6d];for(var _0x2403eb in _0x2851bb)Object[_0x15a48c(0xe1)][_0x15a48c(0x128)]['call'](_0x2851bb,_0x2403eb)&&(_0x3738e8[_0x2403eb]=_0x2851bb[_0x2403eb]);}return _0x3738e8;},c[_0x598b75(0x171)](this,arguments);},Oe=function(_0x1fda01,_0x55e25e){var _0x452473=_0x313013,_0x11d993={};for(var _0x17869c in _0x1fda01)Object[_0x452473(0xe1)][_0x452473(0x128)][_0x452473(0xfb)](_0x1fda01,_0x17869c)&&_0x55e25e['indexOf'](_0x17869c)<0x0&&(_0x11d993[_0x17869c]=_0x1fda01[_0x17869c]);if(_0x1fda01!=null&&typeof Object[_0x452473(0x101)]==_0x452473(0x162)){for(var _0x10bda6=0x0,_0x17869c=Object['getOwnPropertySymbols'](_0x1fda01);_0x10bda6<_0x17869c[_0x452473(0x143)];_0x10bda6++)_0x55e25e[_0x452473(0x136)](_0x17869c[_0x10bda6])<0x0&&Object[_0x452473(0xe1)][_0x452473(0xee)][_0x452473(0xfb)](_0x1fda01,_0x17869c[_0x10bda6])&&(_0x11d993[_0x17869c[_0x10bda6]]=_0x1fda01[_0x17869c[_0x10bda6]]);}return _0x11d993;},W=_0x64c43f(function(_0x2ec3db,_0x214b58){var _0x57d706=_0x313013,_0x340392=_0x2ec3db['icon'],_0x1584b4=_0x2ec3db['id'],_0x23cd5f=_0x2ec3db['className'],_0x4622c5=_0x2ec3db[_0x57d706(0xd3)],_0x3cf0dd=Oe(_0x2ec3db,['icon','id',_0x57d706(0xef),'extend']),_0x5f649='univerjs-icon\x20univerjs-icon-'['concat'](_0x1584b4,'\x20')[_0x57d706(0xea)](_0x23cd5f||'')[_0x57d706(0xf6)](),_0x4f0bc7=_0x4dbc7b('_'[_0x57d706(0xea)](Ne()));return Y(_0x340392,''[_0x57d706(0xea)](_0x1584b4),{'defIds':_0x340392['defIds'],'idSuffix':_0x4f0bc7[_0x57d706(0x123)]},c({'ref':_0x214b58,'className':_0x5f649},_0x3cf0dd),_0x4622c5);});function Y(_0x53998f,_0x29f34a,_0x2ee8dc,_0x20ff95,_0x57ca90){var _0x25f286=_0x313013;return _0x4ecdb1(_0x53998f[_0x25f286(0x109)],c(c({'key':_0x29f34a},Ee(_0x53998f,_0x2ee8dc,_0x57ca90)),_0x20ff95),(we(_0x53998f,_0x2ee8dc)[_0x25f286(0x173)]||[])[_0x25f286(0x164)](function(_0x18f9e6,_0x15694a){var _0x189e21=_0x25f286;return Y(_0x18f9e6,''['concat'](_0x29f34a,'-')[_0x189e21(0xea)](_0x53998f[_0x189e21(0x109)],'-')[_0x189e21(0xea)](_0x15694a),_0x2ee8dc,void 0x0,_0x57ca90);}));}function Ee(_0x1f24a2,_0x288921,_0x457f4c){var _0x4d9222=_0x313013,_0x11c3c6=c({},_0x1f24a2[_0x4d9222(0x112)]);_0x457f4c!=null&&_0x457f4c[_0x4d9222(0x118)]&&_0x11c3c6[_0x4d9222(0x10f)]===_0x4d9222(0x118)&&(_0x11c3c6[_0x4d9222(0x10f)]=_0x457f4c[_0x4d9222(0x118)]),_0x1f24a2[_0x4d9222(0x109)]==='mask'&&_0x11c3c6['id']&&(_0x11c3c6['id']=_0x11c3c6['id']+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0xdcae44){var _0x22d39f=_0x4d9222,_0x35029f=_0xdcae44[0x0],_0x4720b4=_0xdcae44[0x1];_0x35029f===_0x22d39f(0x104)&&typeof _0x4720b4==_0x22d39f(0x17c)&&(_0x11c3c6[_0x35029f]=_0x4720b4[_0x22d39f(0xd4)](/url\(#(.*)\)/,_0x22d39f(0x15f)[_0x22d39f(0xea)](_0x288921[_0x22d39f(0xdb)],')')));});var _0x1eedb8=_0x288921[_0x4d9222(0xfd)];return!_0x1eedb8||_0x1eedb8[_0x4d9222(0x143)]===0x0||(_0x1f24a2[_0x4d9222(0x109)]===_0x4d9222(0x169)&&_0x11c3c6[_0x4d9222(0x17f)]&&(_0x11c3c6[_0x4d9222(0x17f)]=_0x11c3c6[_0x4d9222(0x17f)]+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0x252582){var _0x437656=_0x4d9222,_0x1152a5=_0x252582[0x0],_0x12f2b4=_0x252582[0x1];typeof _0x12f2b4==_0x437656(0x17c)&&(_0x11c3c6[_0x1152a5]=_0x12f2b4['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x288921[_0x437656(0xdb)],')')));})),_0x11c3c6;}function we(_0x2d64b4,_0x2e41aa){var _0x588d7a=_0x313013,_0x4ce55c,_0x374638=_0x2e41aa[_0x588d7a(0xfd)];return!_0x374638||_0x374638[_0x588d7a(0x143)]===0x0?_0x2d64b4:_0x2d64b4[_0x588d7a(0x109)]==='defs'&&(!((_0x4ce55c=_0x2d64b4[_0x588d7a(0x173)])===null||_0x4ce55c===void 0x0)&&_0x4ce55c[_0x588d7a(0x143)])?c(c({},_0x2d64b4),{'children':_0x2d64b4[_0x588d7a(0x173)][_0x588d7a(0x164)](function(_0x5506aa){var _0x4d069f=_0x588d7a;return typeof _0x5506aa[_0x4d069f(0x112)]['id']==_0x4d069f(0x17c)&&_0x374638&&_0x374638[_0x4d069f(0x12e)](_0x5506aa[_0x4d069f(0x112)]['id'])?c(c({},_0x5506aa),{'attrs':c(c({},_0x5506aa['attrs']),{'id':_0x5506aa[_0x4d069f(0x112)]['id']+_0x2e41aa[_0x4d069f(0xdb)]})}):_0x5506aa;})}):_0x2d64b4;}function Ne(){var _0x53a472=_0x313013;return Math[_0x53a472(0x107)]()[_0x53a472(0x183)](0x24)[_0x53a472(0xff)](0x2,0x8);}W[_0x313013(0x153)]=_0x313013(0xd9);var Ce={'tag':_0x313013(0x16c),'attrs':{'xmlns':_0x313013(0xe6),'fill':_0x313013(0x114),'viewBox':_0x313013(0xd2),'width':'1em','height':_0x313013(0x132)},'children':[{'tag':'path','attrs':{'fill':_0x313013(0x180),'d':_0x313013(0x137)}},{'tag':_0x313013(0x174),'attrs':{'fill':'currentColor','d':_0x313013(0x150),'fillRule':_0x313013(0xd1),'clipRule':_0x313013(0xd1)}}]},B=_0x64c43f(function(_0x1ee37e,_0x24aca9){var _0x4fb5ab=_0x313013;return _0x4ecdb1(W,Object[_0x4fb5ab(0x13e)]({},_0x1ee37e,{'id':_0x4fb5ab(0x184),'ref':_0x24aca9,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x15177c{constructor(){var _0x52e0f9=_0x313013;super(...arguments),d(this,_0x52e0f9(0x130),new Set()),d(this,_0x52e0f9(0x17b),new Set());}['registerSharedOperation'](_0x2ca1e5){var _0x458ec3=_0x313013;return this[_0x458ec3(0x130)][_0x458ec3(0xe3)](_0x2ca1e5),_0x4a5097(()=>this['_sharedOperations']['delete'](_0x2ca1e5));}[_0x313013(0x15c)](_0x2bb7e3){var _0x24179c=_0x313013;return this[_0x24179c(0x17b)]['add'](_0x2bb7e3),_0x4a5097(()=>this[_0x24179c(0x17b)][_0x24179c(0xdc)](_0x2bb7e3));}[_0x313013(0x11c)](_0x1ba50c){var _0x20a88d=_0x313013;return this['_sharedOperations'][_0x20a88d(0x157)](_0x1ba50c);}[_0x313013(0x11a)](_0x31f87c){var _0x428dc9=_0x313013;return Array[_0x428dc9(0xfe)](this[_0x428dc9(0x17b)])[_0x428dc9(0x164)](_0x24cf21=>_0x24cf21(_0x31f87c));}}var De=Object[_0x313013(0x167)],Z=(_0x4d6f8b,_0x2dbc3d,_0x26ba2a,_0x36f406)=>{for(var _0x49a4eb=_0x36f406>0x1?void 0x0:_0x36f406?De(_0x2dbc3d,_0x26ba2a):_0x2dbc3d,_0x1f6b76=_0x4d6f8b['length']-0x1,_0x4fd824;_0x1f6b76>=0x0;_0x1f6b76--)(_0x4fd824=_0x4d6f8b[_0x1f6b76])&&(_0x49a4eb=_0x4fd824(_0x49a4eb)||_0x49a4eb);return _0x49a4eb;},f=(_0x5cf09b,_0x26fc7f)=>(_0x4dfb44,_0x13d83f)=>_0x26fc7f(_0x4dfb44,_0x13d83f,_0x5cf09b);let m=class extends _0x393560{constructor(_0x58a820,_0x308e09,_0x294ad6){var _0x44caf3=_0x313013;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x58a820,this['_injector']=_0x308e09,this[_0x44caf3(0x168)]=_0x294ad6,this['_init']());}async[_0x313013(0x10d)](_0x4e10e5){var _0x5b3b10=_0x313013;return this['_entities'][_0x5b3b10(0x157)](_0x4e10e5)||await this[_0x5b3b10(0xf1)](_0x4e10e5),this['_entities'][_0x5b3b10(0xd8)](_0x4e10e5);}[_0x313013(0xd0)](){var _0x58eaea=_0x313013;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))['subscribe'](async _0x1c2936=>{var _0x1b5456=_0x58eaea;const _0x469e39=_0x1c2936[_0x1b5456(0x14f)]();this[_0x1b5456(0x10b)][_0x1b5456(0x157)](_0x469e39)||this[_0x1b5456(0xf1)](_0x469e39);}),this[_0x58eaea(0x161)][_0x58eaea(0x13c)](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))[_0x58eaea(0x186)](_0x1d1991=>{var _0x53f551=_0x58eaea;const _0x4280e2=_0x1d1991['getUnitId'](),_0x5ea2f7=this[_0x53f551(0x10b)][_0x53f551(0xd8)](_0x4280e2);_0x5ea2f7==null||_0x5ea2f7[_0x53f551(0x11b)]();});}async[_0x313013(0xf1)](_0x5e718a){var _0x566925=_0x313013;const _0x5025a1=await this['_collabSessionService'][_0x566925(0x16a)](_0x5e718a),_0x4c7c7b=this['_injector']['createInstance'](C,_0x5e718a,_0x5025a1);return _0x4c7c7b[_0x566925(0x103)](),this[_0x566925(0x10b)][_0x566925(0xdf)](_0x5e718a,_0x4c7c7b),_0x4c7c7b;}};m=Z([f(0x0,_0xf8954b),f(0x1,_0x53b001(_0xf6095)),f(0x2,_0x53b001(_0x102374))],m);var h=(_0x41645f=>(_0x41645f[_0x313013(0x113)]=_0x313013(0xf9),_0x41645f[_0x313013(0x10e)]='idle',_0x41645f['FOLLOWING']=_0x313013(0x12a),_0x41645f[_0x313013(0x177)]=_0x313013(0x116),_0x41645f[_0x313013(0x145)]=_0x313013(0x117),_0x41645f))(h||{});const xe=_0x313013(0x119),Le=0xc8;let C=class extends _0x393560{constructor(_0x328c38,_0xc3a631,_0x1b58e4,_0x3413c8,_0x46df98){var _0x500b5a=_0x313013;super(),d(this,'_status$',new _0x476844(_0x500b5a(0xe2))),d(this,'status$',this[_0x500b5a(0xd7)][_0x500b5a(0x16f)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x500b5a(0x110),null),(this[_0x500b5a(0x134)]=_0x328c38,this[_0x500b5a(0x166)]=_0xc3a631,this[_0x500b5a(0xf5)]=_0x1b58e4,this[_0x500b5a(0x144)]=_0x3413c8,this['_commandService']=_0x46df98);}get[_0x313013(0x106)](){var _0x3764e0=_0x313013;return this[_0x3764e0(0xd7)][_0x3764e0(0xf4)]();}[_0x313013(0x11b)](){var _0x4a62b1=_0x313013,_0x22c8fa;(_0x22c8fa=this[_0x4a62b1(0xcf)])==null||_0x22c8fa[_0x4a62b1(0x11b)](),this[_0x4a62b1(0xd7)]['next']('idle'),this[_0x4a62b1(0xd7)][_0x4a62b1(0xeb)]();}['init'](){var _0x5b677b=_0x313013;this[_0x5b677b(0xd0)]||(this[_0x5b677b(0xd0)]=!0x0,this[_0x5b677b(0x166)][_0x5b677b(0x170)][_0x5b677b(0xd5)](_0xc34bd8(this[_0x5b677b(0x13a)]))[_0x5b677b(0x186)](_0x452b40=>{var _0xfcc22d=_0x5b677b;switch(_0x452b40){case _0x1c4955[_0xfcc22d(0x113)]:this[_0xfcc22d(0xfa)]();break;case _0x1c4955[_0xfcc22d(0x12b)]:this[_0xfcc22d(0xe0)]();break;}}),this[_0x5b677b(0x166)][_0x5b677b(0xda)][_0x5b677b(0xd5)](_0xc34bd8(this['dispose$']))[_0x5b677b(0x186)](_0x4a3375=>{var _0xc4f304=_0x5b677b;const {eventID:_0x17c91a}=_0x4a3375;switch(_0x17c91a){case _0x284f8f[_0xc4f304(0xfc)]:this[_0xc4f304(0x189)](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x16d)]:this['_handleOperation'](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x14b)]:this[_0xc4f304(0x12f)]();break;case _0x284f8f[_0xc4f304(0xe4)]:this[_0xc4f304(0x15d)](_0x4a3375);break;}}));}[_0x313013(0xf0)](){var _0x1b6f91=_0x313013;this['_collabSession'][_0x1b6f91(0x111)]({'eventID':_0x284f8f[_0x1b6f91(0x15b)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1b6f91(0x16e)]()}},this[_0x1b6f91(0x134)]);}[_0x313013(0x185)](){var _0x4447ed=_0x313013;this['_status']===_0x4447ed(0x117)&&(this['_status$'][_0x4447ed(0x124)](_0x4447ed(0xe2)),this[_0x4447ed(0x166)][_0x4447ed(0x111)]({'eventID':_0x284f8f[_0x4447ed(0x14b)],'data':{'unitID':this[_0x4447ed(0x134)]}},this['_unitID']));}[_0x313013(0x139)](){var _0x4fdda0=_0x313013;this[_0x4fdda0(0x106)]===_0x4fdda0(0x116)&&(this[_0x4fdda0(0xd7)][_0x4fdda0(0x124)](_0x4fdda0(0x12a)),this[_0x4fdda0(0x115)]());}[_0x313013(0x165)](){var _0x24b687=_0x313013;this['_status']===_0x24b687(0x12a)&&this[_0x24b687(0x120)]();}['_handleNewHost'](_0x41232e){var _0xd13190=_0x313013;const {presenter:_0x440714}=_0x41232e[_0xd13190(0xf2)],_0x4df3b7=this[_0xd13190(0x166)]['getMemberID']();this[_0xd13190(0x110)]=_0x440714,_0x440714===_0x4df3b7?(this['_stopFollowing'](),this[_0xd13190(0x146)]()):this[_0xd13190(0x106)]!==_0xd13190(0x116)&&(this[_0xd13190(0x100)](),this[_0xd13190(0x115)]());}[_0x313013(0x13b)](){var _0x583848=_0x313013;const _0x4dab6d={'eventID':_0x284f8f['LIVESHARE_FETCH_OPERATIONS']};this[_0x583848(0x166)][_0x583848(0x111)](_0x4dab6d,this['_unitID']);}[_0x313013(0x12f)](){var _0x4e2b5e=_0x313013;this['_presenter']=null,this[_0x4e2b5e(0x106)]!==_0x4e2b5e(0x117)&&this['_beIdle']();}['_handleNewChangeSets'](_0x418c5a){var _0xda71b8=_0x313013;if(this[_0xda71b8(0x106)]===_0xda71b8(0x12a)&&this[_0xda71b8(0x110)]===_0x418c5a[_0xda71b8(0xf2)][_0xda71b8(0x158)]){const _0x573b6e=_0x4e5eba(_0x418c5a['data'])[_0xda71b8(0x12d)]['reverse']()[_0xda71b8(0x14a)](_0x2e6339=>_0x2e6339['id']===_0x5d62bc['id']);if(_0x573b6e){const _0x4b515b=_0x573b6e[_0xda71b8(0x108)][_0xda71b8(0x131)],_0xe5429a=_0x573b6e[_0xda71b8(0x108)]['sheet']['id'];setTimeout(()=>{var _0x1259aa=_0xda71b8;this[_0x1259aa(0x105)][_0x1259aa(0x151)](_0x206df5['id'],{'unitId':_0x4b515b,'subUnitId':_0xe5429a},{'fromCollab':!0x0});});}}}[_0x313013(0x146)](){var _0x20dc08=_0x313013;this['_status$']['next'](_0x20dc08(0x117));const _0x16af89=new Map(),_0x79190e=this[_0x20dc08(0xcf)]=new _0x59dc2e();_0x79190e['add'](_0x4a5097(()=>{var _0x1cc7bd=_0x20dc08;_0x16af89[_0x1cc7bd(0x102)](_0x1d1deb=>_0x1d1deb['complete']()),_0x16af89[_0x1cc7bd(0x13d)]();})),_0x79190e[_0x20dc08(0xe3)](this[_0x20dc08(0x105)][_0x20dc08(0xf7)](_0x11ecaf=>{var _0x17c565=_0x20dc08,_0x35bf68;if(_0x11ecaf[_0x17c565(0x14d)]!==_0x116d56[_0x17c565(0x17a)]||!this['_liveShareService'][_0x17c565(0x11c)](_0x11ecaf['id']))return;const {id:_0x337384}=_0x11ecaf;let _0x44b0b3;_0x16af89[_0x17c565(0x157)](_0x337384)?_0x44b0b3=_0x16af89[_0x17c565(0xd8)](_0x337384):(_0x44b0b3=new _0x228df7(),_0x16af89[_0x17c565(0xdf)](_0x337384,_0x44b0b3),_0x44b0b3[_0x17c565(0xd5)](_0x72d5ce((_0x35bf68=this[_0x17c565(0xf5)]['getConfig'](xe))!=null?_0x35bf68:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5c7348=>{var _0x4f4f6e=_0x17c565;this[_0x4f4f6e(0x166)][_0x4f4f6e(0x111)]({'eventID':_0x284f8f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f4f6e(0x134)],'operations':{[_0x5c7348['id']]:{'id':_0x5c7348['id'],'params':JSON[_0x4f4f6e(0x13f)](_0x5c7348[_0x4f4f6e(0x108)])}}}},this['_unitID']);})),_0x44b0b3[_0x17c565(0x124)](_0x11ecaf);})),this['_liveShareService'][_0x20dc08(0x11a)](this[_0x20dc08(0x134)])[_0x20dc08(0x102)](_0x2d547f=>this[_0x20dc08(0x166)][_0x20dc08(0x111)]({'eventID':_0x284f8f[_0x20dc08(0x16d)],'data':{'unitID':this[_0x20dc08(0x134)],'operations':{[_0x2d547f['id']]:{'id':_0x2d547f['id'],'params':JSON[_0x20dc08(0x13f)](_0x2d547f[_0x20dc08(0x108)])}}}},this['_unitID']));}[_0x313013(0x100)](){var _0x486d55=_0x313013,_0x57aa57;this[_0x486d55(0xd7)][_0x486d55(0x124)](_0x486d55(0xe2)),(_0x57aa57=this[_0x486d55(0xcf)])==null||_0x57aa57[_0x486d55(0x11b)](),this[_0x486d55(0xcf)]=null;}[_0x313013(0x115)](){var _0x1b7503=_0x313013,_0x3308b8;(_0x3308b8=this[_0x1b7503(0xcf)])==null||_0x3308b8[_0x1b7503(0x11b)](),this[_0x1b7503(0xd7)][_0x1b7503(0x124)](_0x1b7503(0x12a));}[_0x313013(0x127)](){var _0xd787a7=_0x313013,_0x4a6e5d;this[_0xd787a7(0xd7)]['next']('idle'),(_0x4a6e5d=this['_commandDisposable'])==null||_0x4a6e5d[_0xd787a7(0x11b)](),this[_0xd787a7(0xcf)]=null;}[_0x313013(0x120)](){var _0x985948=_0x313013,_0x143153;this[_0x985948(0xd7)][_0x985948(0x124)](_0x985948(0x116)),(_0x143153=this['_commandDisposable'])==null||_0x143153['dispose']();}[_0x313013(0x126)](_0x1f86a8){var _0x11499f=_0x313013;if(['presenting','not-following',_0x11499f(0xf9)][_0x11499f(0x12e)](this['_status'])||!_0x1f86a8['data'][_0x11499f(0x154)]||_0x1f86a8['data'][_0x11499f(0x154)]===this[_0x11499f(0x166)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5c973b=_0x1f86a8['data'][_0x11499f(0x133)];Object[_0x11499f(0xec)](_0x5c973b)[_0x11499f(0x102)](_0x1e2255=>{var _0x956441=_0x11499f;this['_commandService'][_0x956441(0x151)](_0x1e2255['id'],_0x1e2255[_0x956441(0x108)]?JSON[_0x956441(0x125)](_0x1e2255['params']):null,{'fromCollab':!0x0});});}[_0x313013(0xfa)](){var _0x569263=_0x313013,_0x1e4f2a;this['_status$'][_0x569263(0x124)](_0x569263(0xf9)),(_0x1e4f2a=this['_commandDisposable'])==null||_0x1e4f2a[_0x569263(0x11b)]();}['_handleOnline'](){var _0x466c49=_0x313013;this[_0x466c49(0xd7)][_0x466c49(0x124)](_0x466c49(0xe2)),this[_0x466c49(0x13b)]();}};C=Z([f(0x2,_0x3638f5),f(0x3,_0x53b001(L)),f(0x4,_0x7fb0ea)],C);function ye(){var _0x314021=_0x313013;const _0x339b9b=_0x2fb90e(m),_0x41d55b=_0x2fb90e(_0xf8954b),_0xc37bb8=_0x5ec775(()=>_0x41d55b[_0x314021(0x148)](_0x258437[_0x314021(0x175)]),void 0x0,!0x1,[]),[_0x102d6b,_0x1d4cba]=_0x98af16(null),[_0x4165ce,_0x545219]=_0x98af16(h[_0x314021(0x10e)]),_0x420796=_0x4dbc7b(null);return _0x7fb2bf(()=>(_0xc37bb8&&_0x339b9b[_0x314021(0x10d)](_0xc37bb8['getUnitId']())[_0x314021(0x182)](_0x2e28ac=>{var _0x47970b=_0x314021;_0x1d4cba(_0x2e28ac),_0x420796[_0x47970b(0x123)]=_0x2e28ac[_0x47970b(0x12c)][_0x47970b(0x186)](_0x54b82e=>{_0x545219(_0x54b82e);});}),()=>{var _0x4bc3b1=_0x314021,_0x5a840c;(_0x5a840c=_0x420796['current'])==null||_0x5a840c['unsubscribe'](),_0x420796[_0x4bc3b1(0x123)]=null;}),[_0xc37bb8,_0x339b9b]),_0x102d6b?_0x3555d8(_0x2b078d,{'align':_0x314021(0x15e),'disabled':_0x4165ce===h['OFFLINE'],'className':_0x314021(0x149),'overlay':_0x3555d8(Re,{'status':_0x4165ce,'coordinator':_0x102d6b}),'children':_0x3555d8('button',{'className':_0x392cc7(_0x314021(0x129),{'univer-cursor-not-allowed':_0x4165ce===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4165ce!==h[_0x314021(0x113)]}),'type':'button','children':_0x3555d8(B,{'className':_0x314021(0x135)})})}):null;}function Re(_0x44856a){var _0x298c51=_0x313013;const {status:_0x56b573,coordinator:_0x539a08}=_0x44856a;switch(_0x56b573){case h['IDLE']:return _0x3555d8(Pe,{'coordinator':_0x539a08});case h[_0x298c51(0x187)]:return _0x3555d8(Ae,{'coordinator':_0x539a08});case h[_0x298c51(0x177)]:return _0x3555d8(Te,{'coordinator':_0x539a08});case h[_0x298c51(0x113)]:return _0x3555d8(Fe,{});case h[_0x298c51(0x145)]:return _0x3555d8($e,{'coordinator':_0x539a08});default:return null;}}function Pe(_0x80c14e){var _0xff4f5a=_0x313013;const {coordinator:_0x4c6825}=_0x80c14e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0xff4f5a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x4c6825['tryStartPresenting'](),'children':_0xff4f5a(0x11f)})]});}function Ae(_0x44b01e){var _0x515a31=_0x313013;const {coordinator:_0x2692ab}=_0x44b01e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x515a31(0x160),{'className':_0x515a31(0x11d),'children':_0x515a31(0x15a)}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x2692ab[_0x515a31(0x165)](),'children':_0x515a31(0x14c)})]});}function Te(_0x49f43a){var _0x4376fe=_0x313013;const {coordinator:_0x1f158e}=_0x49f43a;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x4376fe(0x160),{'className':_0x4376fe(0x11d),'children':_0x4376fe(0xd6)}),_0x3555d8(_0x9c96c8,{'variant':_0x4376fe(0x122),'onClick':()=>_0x1f158e['startFollowing'](),'children':_0x4376fe(0xf3)})]});}function $e(_0x4e9212){var _0x720036=_0x313013;const {coordinator:_0x328804}=_0x4e9212;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x720036(0x160),{'className':_0x720036(0x11d),'children':_0x720036(0x156)}),_0x3555d8(_0x9c96c8,{'variant':_0x720036(0x147),'onClick':()=>_0x328804[_0x720036(0x185)](),'children':_0x720036(0xde)})]});}function Fe(){var _0x55f51f=_0x313013;return _0x3555d8(_0x5efcf4,{'children':_0x55f51f(0x178)});}var He=Object[_0x313013(0x167)],je=(_0x1685c8,_0x21b651,_0xfeb339,_0xddb9c7)=>{var _0x5eb066=_0x313013;for(var _0x2f858c=_0xddb9c7>0x1?void 0x0:_0xddb9c7?He(_0x21b651,_0xfeb339):_0x21b651,_0x684bf1=_0x1685c8[_0x5eb066(0x143)]-0x1,_0x294d7a;_0x684bf1>=0x0;_0x684bf1--)(_0x294d7a=_0x1685c8[_0x684bf1])&&(_0x2f858c=_0x294d7a(_0x2f858c)||_0x2f858c);return _0x2f858c;},T=(_0x5b2d28,_0x151edf)=>(_0x296c33,_0x1174ca)=>_0x151edf(_0x296c33,_0x1174ca,_0x5b2d28);let I=class extends _0x15177c{constructor(_0x24fd2e,_0xb65f10){var _0x59ef71=_0x313013;super(),this[_0x59ef71(0x152)]=_0x24fd2e,this[_0x59ef71(0x14e)]=_0xb65f10,this[_0x59ef71(0x176)]();}[_0x313013(0x176)](){var _0x255b3d=_0x313013;this[_0x255b3d(0x10c)](this['_uiPartsService'][_0x255b3d(0x16b)](_0x3d6ae4[_0x255b3d(0xe5)],()=>_0x155e9e(ye,this['_injector'])));}};I=je([T(0x0,_0x53b001(_0xf6095)),T(0x1,_0x3a3ffe)],I);const Ue=_0x313013(0x138),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x29e501,_0x2636ad,_0x1df281,_0x379429)=>{for(var _0x12a71d=_0x379429>0x1?void 0x0:_0x379429?Ve(_0x2636ad,_0x1df281):_0x2636ad,_0x227c85=_0x29e501['length']-0x1,_0x10a99e;_0x227c85>=0x0;_0x227c85--)(_0x10a99e=_0x29e501[_0x227c85])&&(_0x12a71d=_0x10a99e(_0x12a71d)||_0x12a71d);return _0x12a71d;},ke=(_0x3dce66,_0x50184d)=>(_0x3fd6c4,_0x5de585)=>_0x50184d(_0x3fd6c4,_0x5de585,_0x3dce66);let b=class extends _0x15177c{constructor(_0x230942){var _0x427f6c=_0x313013;super(),this['_liveShareService']=_0x230942,this[_0x427f6c(0xd0)]();}['_init'](){var _0x46fcc4=_0x313013;[_0xeb514c['id'],_0x19ee46['id'],_0x206df5['id']][_0x46fcc4(0x102)](_0x10bc55=>{var _0xddee00=_0x46fcc4;this[_0xddee00(0x10c)](this[_0xddee00(0x144)]['registerSharedOperation'](_0x10bc55));});}};b=Me([ke(0x0,_0x53b001(L))],b);function _0x1f46(_0x48f29d,_0x15a0a4){var _0x334b97=_0x334b();return _0x1f46=function(_0x1f46f6,_0x559c99){_0x1f46f6=_0x1f46f6-0xcf;var _0x4bf02a=_0x334b97[_0x1f46f6];return _0x4bf02a;},_0x1f46(_0x48f29d,_0x15a0a4);}var Ge=Object[_0x313013(0x11e)],We=Object[_0x313013(0x167)],Ye=(_0x3c3a3a,_0x5e0b27,_0x5957c7)=>_0x5e0b27 in _0x3c3a3a?Ge(_0x3c3a3a,_0x5e0b27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5957c7}):_0x3c3a3a[_0x5e0b27]=_0x5957c7,Be=(_0x105d6d,_0x2a9926,_0x3746be,_0x55920f)=>{var _0x2eecc5=_0x313013;for(var _0x95ffab=_0x55920f>0x1?void 0x0:_0x55920f?We(_0x2a9926,_0x3746be):_0x2a9926,_0x36b6e2=_0x105d6d[_0x2eecc5(0x143)]-0x1,_0x47265e;_0x36b6e2>=0x0;_0x36b6e2--)(_0x47265e=_0x105d6d[_0x36b6e2])&&(_0x95ffab=_0x47265e(_0x95ffab)||_0x95ffab);return _0x95ffab;},F=(_0x53bcef,_0x1d6dfe)=>(_0x117f67,_0x461383)=>_0x1d6dfe(_0x117f67,_0x461383,_0x53bcef),J=(_0x52903c,_0xf7d54f,_0x6c2858)=>Ye(_0x52903c,typeof _0xf7d54f!=_0x313013(0x188)?_0xf7d54f+'':_0xf7d54f,_0x6c2858);const Ze=_0x313013(0x155);let O=class extends _0x4c9b21{constructor(_0x43cf82=$,_0x37f506,_0x1e4d9a){var _0x2354c3=_0x313013;super(),this[_0x2354c3(0x17e)]=_0x43cf82,this[_0x2354c3(0x152)]=_0x37f506,this[_0x2354c3(0xf5)]=_0x1e4d9a;const {..._0xa103c8}=_0x28c635({},$,this['_config']);this[_0x2354c3(0xf5)][_0x2354c3(0x172)](Ue,_0xa103c8);}[_0x313013(0xdd)](){var _0x126b5b=_0x313013;_0x28d1b1(this['_injector'],_0x31c621([[L],[m],[b],[I]],this[_0x126b5b(0x17e)]['override'])),_0x58be07(this['_injector'],[[b]]);}[_0x313013(0x163)](){var _0x17357f=_0x313013;_0x58be07(this[_0x17357f(0x152)],[[I]]);}};J(O,_0x313013(0x14d),_0x258437[_0x313013(0x10a)]),J(O,_0x313013(0x17d),Ze),O=Be([_0x15f744(_0x54c104),F(0x1,_0x53b001(_0xf6095)),F(0x2,_0x3638f5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1624f5=_0x5b64;(function(_0x53b827,_0x1d7bf4){var _0xa9d55f=_0x5b64,_0x116499=_0x53b827();while(!![]){try{var _0x426e29=parseInt(_0xa9d55f(0x165))/0x1*(-parseInt(_0xa9d55f(0x13e))/0x2)+parseInt(_0xa9d55f(0x13c))/0x3+-parseInt(_0xa9d55f(0x102))/0x4+-parseInt(_0xa9d55f(0x100))/0x5+-parseInt(_0xa9d55f(0x144))/0x6+parseInt(_0xa9d55f(0x138))/0x7*(-parseInt(_0xa9d55f(0xf5))/0x8)+parseInt(_0xa9d55f(0x167))/0x9;if(_0x426e29===_0x1d7bf4)break;else _0x116499['push'](_0x116499['shift']());}catch(_0x512ef6){_0x116499['push'](_0x116499['shift']());}}}(_0x1dcd,0x1c9d5));var q=Object[_0x1624f5(0x116)],z=(_0x3800f7,_0x137fc7,_0x38e8f7)=>_0x137fc7 in _0x3800f7?q(_0x3800f7,_0x137fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e8f7}):_0x3800f7[_0x137fc7]=_0x38e8f7,d=(_0x949d89,_0x498301,_0x32f874)=>z(_0x949d89,typeof _0x498301!=_0x1624f5(0x13f)?_0x498301+'':_0x498301,_0x32f874);import{Disposable as _0x1b6eaf,toDisposable as _0x28aff6,IUniverInstanceService as _0x13109b,Inject as _0x1a16ba,Injector as _0x3396c5,IConfigService as _0x375812,ICommandService as _0x4355bd,RxDisposable as _0x1d139d,UniverInstanceType as _0x3c6f33,DisposableCollection as _0x10ce83,CommandType as _0x47f736,DependentOn as _0x3283e7,Plugin as _0x421668,merge as _0xeb06ad,registerDependencies as _0x31d9a6,mergeOverrideWithDependencies as _0x50a260,touchDependencies as _0x58db42}from'@univerjs/core';import{useDependency as _0x5de910,useObservable as _0x47a6de,IUIPartsService as _0x11fbb0,BuiltInUIPart as _0x3bea30,connectInjector as _0x2d8986}from'@univerjs/ui';import{jsx as _0xdece36,jsxs as _0x297d42,Fragment as _0x4b0c6c}from'react/jsx-runtime';import{Dropdown as _0x3c7f31,clsx as _0x3914c5,Button as _0x4fc5ad}from'@univerjs/design';import{forwardRef as _0x3e5310,useRef as _0x338ee2,createElement as _0x4d1ec5,useState as _0x281766,useEffect as _0x37dd39}from'react';import{CollaborationEvent as _0xdbe7ec,parseProtocolChangeset as _0x378c0b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f1249,SessionStatus as _0x110f90,UniverCollaborationClientPlugin as _0x32ab4c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1f6f57,SetWorksheetActiveOperation as _0x22b854}from'@univerjs/sheets';import{BehaviorSubject as _0x17f9f2,Subject as _0x257f72}from'rxjs';import{takeUntil as _0x55a56f,throttleTime as _0x5c958e}from'rxjs/operators';import{SetZoomRatioOperation as _0x499661,SetScrollOperation as _0x2cab7e}from'@univerjs/sheets-ui';var c=function(){var _0xdcd6fd=_0x1624f5;return c=Object[_0xdcd6fd(0x12b)]||function(_0x54a868){var _0x226f3e=_0xdcd6fd;for(var _0x10e957,_0x56e995=0x1,_0x144918=arguments[_0x226f3e(0x119)];_0x56e995<_0x144918;_0x56e995++){_0x10e957=arguments[_0x56e995];for(var _0x1ae8f7 in _0x10e957)Object[_0x226f3e(0xda)][_0x226f3e(0x13d)]['call'](_0x10e957,_0x1ae8f7)&&(_0x54a868[_0x1ae8f7]=_0x10e957[_0x1ae8f7]);}return _0x54a868;},c['apply'](this,arguments);},Oe=function(_0x235bd9,_0x2e98bf){var _0x3af152=_0x1624f5,_0x2f119f={};for(var _0x60bf77 in _0x235bd9)Object['prototype']['hasOwnProperty']['call'](_0x235bd9,_0x60bf77)&&_0x2e98bf[_0x3af152(0x105)](_0x60bf77)<0x0&&(_0x2f119f[_0x60bf77]=_0x235bd9[_0x60bf77]);if(_0x235bd9!=null&&typeof Object[_0x3af152(0x121)]=='function'){for(var _0x244ecb=0x0,_0x60bf77=Object['getOwnPropertySymbols'](_0x235bd9);_0x244ecb<_0x60bf77[_0x3af152(0x119)];_0x244ecb++)_0x2e98bf[_0x3af152(0x105)](_0x60bf77[_0x244ecb])<0x0&&Object[_0x3af152(0xda)][_0x3af152(0xde)][_0x3af152(0x126)](_0x235bd9,_0x60bf77[_0x244ecb])&&(_0x2f119f[_0x60bf77[_0x244ecb]]=_0x235bd9[_0x60bf77[_0x244ecb]]);}return _0x2f119f;},W=_0x3e5310(function(_0x185737,_0x3f7af5){var _0x4ccfac=_0x1624f5,_0xbbc366=_0x185737[_0x4ccfac(0xd4)],_0x2a8a15=_0x185737['id'],_0x4fcea8=_0x185737[_0x4ccfac(0x10c)],_0x5016b0=_0x185737['extend'],_0x57d59b=Oe(_0x185737,[_0x4ccfac(0xd4),'id','className','extend']),_0x476b9b=_0x4ccfac(0x11a)['concat'](_0x2a8a15,'\x20')[_0x4ccfac(0x11d)](_0x4fcea8||'')[_0x4ccfac(0x10d)](),_0x11dd71=_0x338ee2('_'[_0x4ccfac(0x11d)](Ne()));return Y(_0xbbc366,''[_0x4ccfac(0x11d)](_0x2a8a15),{'defIds':_0xbbc366['defIds'],'idSuffix':_0x11dd71[_0x4ccfac(0x141)]},c({'ref':_0x3f7af5,'className':_0x476b9b},_0x57d59b),_0x5016b0);});function Y(_0x43386a,_0x3c788a,_0xd065d5,_0x23bfcd,_0x1dda16){var _0x4c108b=_0x1624f5;return _0x4d1ec5(_0x43386a[_0x4c108b(0x118)],c(c({'key':_0x3c788a},Ee(_0x43386a,_0xd065d5,_0x1dda16)),_0x23bfcd),(we(_0x43386a,_0xd065d5)[_0x4c108b(0x15f)]||[])['map'](function(_0x244848,_0x719d53){var _0x7e3bbb=_0x4c108b;return Y(_0x244848,''['concat'](_0x3c788a,'-')[_0x7e3bbb(0x11d)](_0x43386a[_0x7e3bbb(0x118)],'-')['concat'](_0x719d53),_0xd065d5,void 0x0,_0x1dda16);}));}function Ee(_0x1e6fc6,_0x32cd02,_0x52b76a){var _0x4a04d5=_0x1624f5,_0x3833ed=c({},_0x1e6fc6[_0x4a04d5(0x12c)]);_0x52b76a!=null&&_0x52b76a[_0x4a04d5(0x132)]&&_0x3833ed['fill']===_0x4a04d5(0x132)&&(_0x3833ed[_0x4a04d5(0x129)]=_0x52b76a[_0x4a04d5(0x132)]),_0x1e6fc6[_0x4a04d5(0x118)]===_0x4a04d5(0x125)&&_0x3833ed['id']&&(_0x3833ed['id']=_0x3833ed['id']+_0x32cd02[_0x4a04d5(0x11b)]),Object['entries'](_0x3833ed)['forEach'](function(_0x28fd02){var _0x18dd81=_0x4a04d5,_0x2bdc1d=_0x28fd02[0x0],_0x37b000=_0x28fd02[0x1];_0x2bdc1d===_0x18dd81(0x125)&&typeof _0x37b000==_0x18dd81(0xd3)&&(_0x3833ed[_0x2bdc1d]=_0x37b000['replace'](/url\(#(.*)\)/,_0x18dd81(0x111)[_0x18dd81(0x11d)](_0x32cd02[_0x18dd81(0x11b)],')')));});var _0x51b7dc=_0x32cd02[_0x4a04d5(0xca)];return!_0x51b7dc||_0x51b7dc[_0x4a04d5(0x119)]===0x0||(_0x1e6fc6['tag']==='use'&&_0x3833ed[_0x4a04d5(0xf3)]&&(_0x3833ed[_0x4a04d5(0xf3)]=_0x3833ed[_0x4a04d5(0xf3)]+_0x32cd02[_0x4a04d5(0x11b)]),Object[_0x4a04d5(0x157)](_0x3833ed)['forEach'](function(_0x286606){var _0x387258=_0x4a04d5,_0x1e46ae=_0x286606[0x0],_0x434716=_0x286606[0x1];typeof _0x434716=='string'&&(_0x3833ed[_0x1e46ae]=_0x434716[_0x387258(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x387258(0x11d)](_0x32cd02[_0x387258(0x11b)],')')));})),_0x3833ed;}function we(_0x21db93,_0x354467){var _0x432555=_0x1624f5,_0x183735,_0x4b5562=_0x354467[_0x432555(0xca)];return!_0x4b5562||_0x4b5562['length']===0x0?_0x21db93:_0x21db93[_0x432555(0x118)]===_0x432555(0x163)&&(!((_0x183735=_0x21db93[_0x432555(0x15f)])===null||_0x183735===void 0x0)&&_0x183735[_0x432555(0x119)])?c(c({},_0x21db93),{'children':_0x21db93[_0x432555(0x15f)][_0x432555(0x108)](function(_0x5d77f4){var _0x85b954=_0x432555;return typeof _0x5d77f4[_0x85b954(0x12c)]['id']=='string'&&_0x4b5562&&_0x4b5562[_0x85b954(0xcf)](_0x5d77f4[_0x85b954(0x12c)]['id'])?c(c({},_0x5d77f4),{'attrs':c(c({},_0x5d77f4['attrs']),{'id':_0x5d77f4['attrs']['id']+_0x354467[_0x85b954(0x11b)]})}):_0x5d77f4;})}):_0x21db93;}function Ne(){var _0x997a0b=_0x1624f5;return Math[_0x997a0b(0x14f)]()['toString'](0x24)[_0x997a0b(0x158)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x1624f5(0xcd),'attrs':{'xmlns':_0x1624f5(0x140),'fill':_0x1624f5(0x12e),'viewBox':_0x1624f5(0x115),'width':_0x1624f5(0xc5),'height':_0x1624f5(0xc5)},'children':[{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0xf6)}},{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0x154),'fillRule':_0x1624f5(0x164),'clipRule':_0x1624f5(0x164)}}]},B=_0x3e5310(function(_0x1ead5a,_0x4e470e){var _0x3904a5=_0x1624f5;return _0x4d1ec5(W,Object[_0x3904a5(0x12b)]({},_0x1ead5a,{'id':_0x3904a5(0x148),'ref':_0x4e470e,'icon':Ce}));});B['displayName']=_0x1624f5(0x16a);class L extends _0x1b6eaf{constructor(){var _0x3e2b51=_0x1624f5;super(...arguments),d(this,_0x3e2b51(0xe8),new Set()),d(this,'_reporters',new Set());}[_0x1624f5(0x151)](_0x2207a7){var _0x431a31=_0x1624f5;return this[_0x431a31(0xe8)]['add'](_0x2207a7),_0x28aff6(()=>this[_0x431a31(0xe8)][_0x431a31(0xdf)](_0x2207a7));}[_0x1624f5(0xdd)](_0x33bc1f){var _0x42553d=_0x1624f5;return this[_0x42553d(0xc1)]['add'](_0x33bc1f),_0x28aff6(()=>this['_reporters'][_0x42553d(0xdf)](_0x33bc1f));}['shouldShareOperation'](_0xdd9c42){var _0x5e0242=_0x1624f5;return this[_0x5e0242(0xe8)]['has'](_0xdd9c42);}[_0x1624f5(0x134)](_0x2c1589){var _0x314727=_0x1624f5;return Array[_0x314727(0x122)](this[_0x314727(0xc1)])[_0x314727(0x108)](_0x43de8a=>_0x43de8a(_0x2c1589));}}function _0x1dcd(){var _0x28513a=['M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_OPERATION','_unitID','_liveShareService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','_handleOffline','stringify','next','PRESENTING','74140iuoDyB','univer-size-4','406860BLEGRW','getTypeOfUnitAdded$','div','indexOf','You\x27re\x20following\x20the\x20presenter','set','map','_startFollowing','_commandDisposable','_collabSession','className','trim','_stopPresenting','disposeWithMe','LIVESHARE_TERMINATE','url(#$1','_init','ONLINE','tryStartPresenting','0\x200\x2017\x2017','defineProperty','unsubscribe','tag','length','univerjs-icon\x20univerjs-icon-','idSuffix','_commandService','concat','_presenter','_startLiveShareCoordinator','presenter','getOwnPropertySymbols','from','OPERATION','pipe','mask','call','getCurrentTypeOfUnit$','memberID','fill','presenting','assign','attrs','onStarting','none','createInstance','getMemberID','onCommandExecuted','colorChannel1','Stop\x20following','getInitialStates','values','Start','UNIVER_SHEET','325913EimVJC','_stopFollowing','end','type','255066kFZGnw','hasOwnProperty','194EwgVdm','symbol','http://www.w3.org/2000/svg','current','send','complete','607110AyLOKQ','offline','_collabSessionService','default','live-share-icon','_config','live-share.config','_mountLiveShare','dispose$','FOLLOWING','_entities','random','NOT_FOLLOWING','registerSharedOperation','startFollowing','_handleNewHost','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_status$','pluginName','entries','substring','stopFollowing','_fetchOperations','_injector','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','children','NEW_CHANGESETS','add','_beIdle','defs','evenodd','463AytIhM','setConfig','3072429zyQfNQ','following','getUnitId','LiveShareIcon','_configService','mutations','currentColor','dispose','has','_reporters','IDLE','asObservable','params','1em','forEach','getLiveShareCoordinator','parse','UNIVER_LIVE_SHARE_PLUGIN','defIds','override','OFFLINE','svg','_univerInstanceService','includes','executeCommand','registerComponent','_startPresenting','string','icon','subscribe','find','sheet','LIVESHARE_NEW_HOST','onRendered','prototype','LIVESHARE_REQUEST_HOST','path','registerInitialStateReporter','propertyIsEnumerable','delete','You\x27are\x20offline.','then','_handleOnline','not-following','getOwnPropertyDescriptor','Start\x20following','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','clear','getConfig','event$','data','You\x27re\x20not\x20following\x20the\x20presenter','_status','Stop\x20presenting','idle','get','_handleTerminate','xlink:href','replace','8werfDF'];_0x1dcd=function(){return _0x28513a;};return _0x1dcd();}var De=Object['getOwnPropertyDescriptor'],Z=(_0x5e1ae9,_0x3d12fc,_0x14520e,_0x5c471f)=>{var _0x1a43e8=_0x1624f5;for(var _0x1abf9c=_0x5c471f>0x1?void 0x0:_0x5c471f?De(_0x3d12fc,_0x14520e):_0x3d12fc,_0x36eb2b=_0x5e1ae9[_0x1a43e8(0x119)]-0x1,_0x327f1f;_0x36eb2b>=0x0;_0x36eb2b--)(_0x327f1f=_0x5e1ae9[_0x36eb2b])&&(_0x1abf9c=_0x327f1f(_0x1abf9c)||_0x1abf9c);return _0x1abf9c;},f=(_0x497b82,_0xd96d94)=>(_0x235d26,_0x24c018)=>_0xd96d94(_0x235d26,_0x24c018,_0x497b82);let m=class extends _0x1d139d{constructor(_0x4ea6cd,_0x21dacf,_0x28139b){var _0x3bdab9=_0x1624f5;super(),d(this,'_entities',new Map()),(this[_0x3bdab9(0xce)]=_0x4ea6cd,this[_0x3bdab9(0x15b)]=_0x21dacf,this['_collabSessionService']=_0x28139b,this[_0x3bdab9(0x112)]());}async[_0x1624f5(0xc7)](_0x29e2e9){var _0x3bc832=_0x1624f5;return this[_0x3bc832(0x14e)][_0x3bc832(0xc0)](_0x29e2e9)||await this['_startLiveShareCoordinator'](_0x29e2e9),this[_0x3bc832(0x14e)][_0x3bc832(0xf1)](_0x29e2e9);}[_0x1624f5(0x112)](){var _0x37697d=_0x1624f5;this[_0x37697d(0xce)][_0x37697d(0x103)](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))[_0x37697d(0xd5)](async _0x368049=>{var _0x11ca06=_0x37697d;const _0x27d0d1=_0x368049[_0x11ca06(0x169)]();this['_entities'][_0x11ca06(0xc0)](_0x27d0d1)||this[_0x11ca06(0x11f)](_0x27d0d1);}),this[_0x37697d(0xce)]['getTypeOfUnitDisposed$'](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))['subscribe'](_0x8448ba=>{var _0x48842d=_0x37697d;const _0x1bc052=_0x8448ba[_0x48842d(0x169)](),_0x14fa43=this[_0x48842d(0x14e)]['get'](_0x1bc052);_0x14fa43==null||_0x14fa43[_0x48842d(0xbf)]();});}async['_startLiveShareCoordinator'](_0x2feeec){var _0x440e31=_0x1624f5;const _0x26c6b6=await this[_0x440e31(0x146)]['requireSession'](_0x2feeec),_0x328bd1=this[_0x440e31(0x15b)][_0x440e31(0x12f)](C,_0x2feeec,_0x26c6b6);return _0x328bd1[_0x440e31(0x15e)](),this['_entities'][_0x440e31(0x107)](_0x2feeec,_0x328bd1),_0x328bd1;}};m=Z([f(0x0,_0x13109b),f(0x1,_0x1a16ba(_0x3396c5)),f(0x2,_0x1a16ba(_0x5f1249))],m);var h=(_0x1a6731=>(_0x1a6731[_0x1624f5(0xcc)]=_0x1624f5(0x145),_0x1a6731[_0x1624f5(0xc2)]='idle',_0x1a6731[_0x1624f5(0x14d)]=_0x1624f5(0x168),_0x1a6731[_0x1624f5(0x150)]=_0x1624f5(0xe3),_0x1a6731[_0x1624f5(0xff)]=_0x1624f5(0x12a),_0x1a6731))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1d139d{constructor(_0x3a6f96,_0x4b1346,_0x4b25c1,_0x964c42,_0x12700f){var _0x1f5e0d=_0x1624f5;super(),d(this,_0x1f5e0d(0x155),new _0x17f9f2(_0x1f5e0d(0xf0))),d(this,'status$',this[_0x1f5e0d(0x155)][_0x1f5e0d(0xc3)]()),d(this,'_init',!0x1),d(this,_0x1f5e0d(0x10a),null),d(this,_0x1f5e0d(0x11e),null),(this[_0x1f5e0d(0xf8)]=_0x3a6f96,this[_0x1f5e0d(0x10b)]=_0x4b1346,this['_configService']=_0x4b25c1,this['_liveShareService']=_0x964c42,this[_0x1f5e0d(0x11c)]=_0x12700f);}get[_0x1624f5(0xee)](){var _0x1a24f2=_0x1624f5;return this[_0x1a24f2(0x155)]['getValue']();}[_0x1624f5(0xbf)](){var _0x3632f3=_0x1624f5,_0x230cff;(_0x230cff=this['_commandDisposable'])==null||_0x230cff[_0x3632f3(0xbf)](),this['_status$'][_0x3632f3(0xfe)](_0x3632f3(0xf0)),this[_0x3632f3(0x155)][_0x3632f3(0x143)]();}['init'](){var _0x5a030c=_0x1624f5;this[_0x5a030c(0x112)]||(this['_init']=!0x0,this[_0x5a030c(0x10b)]['sessionStatus$'][_0x5a030c(0x124)](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x119102=>{var _0x100286=_0x5a030c;switch(_0x119102){case _0x110f90['OFFLINE']:this[_0x100286(0xfc)]();break;case _0x110f90[_0x100286(0x113)]:this['_handleOnline']();break;}}),this[_0x5a030c(0x10b)][_0x5a030c(0xeb)]['pipe'](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x2249cf=>{var _0xe11e7a=_0x5a030c;const {eventID:_0x15cb95}=_0x2249cf;switch(_0x15cb95){case _0xdbe7ec[_0xe11e7a(0xd8)]:this[_0xe11e7a(0x153)](_0x2249cf);break;case _0xdbe7ec['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2249cf);break;case _0xdbe7ec[_0xe11e7a(0x110)]:this[_0xe11e7a(0xf2)]();break;case _0xdbe7ec[_0xe11e7a(0x160)]:this[_0xe11e7a(0x15c)](_0x2249cf);break;}}));}[_0x1624f5(0x114)](){var _0x2aa600=_0x1624f5;this[_0x2aa600(0x10b)][_0x2aa600(0x142)]({'eventID':_0xdbe7ec[_0x2aa600(0xdb)],'data':{'unitID':this[_0x2aa600(0xf8)],'userID':this[_0x2aa600(0x10b)][_0x2aa600(0x130)]()}},this[_0x2aa600(0xf8)]);}['stopPresenting'](){var _0x34c0ef=_0x1624f5;this[_0x34c0ef(0xee)]===_0x34c0ef(0x12a)&&(this[_0x34c0ef(0x155)][_0x34c0ef(0xfe)](_0x34c0ef(0xf0)),this[_0x34c0ef(0x10b)][_0x34c0ef(0x142)]({'eventID':_0xdbe7ec['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x34c0ef(0xf8)]}},this[_0x34c0ef(0xf8)]));}[_0x1624f5(0x152)](){var _0x5b78dd=_0x1624f5;this[_0x5b78dd(0xee)]===_0x5b78dd(0xe3)&&(this[_0x5b78dd(0x155)][_0x5b78dd(0xfe)](_0x5b78dd(0x168)),this[_0x5b78dd(0x109)]());}[_0x1624f5(0x159)](){var _0x2e17e8=_0x1624f5;this[_0x2e17e8(0xee)]===_0x2e17e8(0x168)&&this[_0x2e17e8(0x139)]();}[_0x1624f5(0x153)](_0x199c9f){var _0x5de5b2=_0x1624f5;const {presenter:_0xc25ece}=_0x199c9f[_0x5de5b2(0xec)],_0x2a52ec=this['_collabSession'][_0x5de5b2(0x130)]();this[_0x5de5b2(0x11e)]=_0xc25ece,_0xc25ece===_0x2a52ec?(this[_0x5de5b2(0x139)](),this[_0x5de5b2(0xd2)]()):this[_0x5de5b2(0xee)]!==_0x5de5b2(0xe3)&&(this[_0x5de5b2(0x10e)](),this[_0x5de5b2(0x109)]());}[_0x1624f5(0x15a)](){var _0x5a89dc=_0x1624f5;const _0x292f93={'eventID':_0xdbe7ec[_0x5a89dc(0xe7)]};this['_collabSession'][_0x5a89dc(0x142)](_0x292f93,this['_unitID']);}[_0x1624f5(0xf2)](){var _0xbfeedb=_0x1624f5;this[_0xbfeedb(0x11e)]=null,this['_status']!==_0xbfeedb(0x12a)&&this[_0xbfeedb(0x162)]();}[_0x1624f5(0x15c)](_0x2c0466){var _0x3a5d73=_0x1624f5;if(this[_0x3a5d73(0xee)]===_0x3a5d73(0x168)&&this[_0x3a5d73(0x11e)]===_0x2c0466[_0x3a5d73(0xec)][_0x3a5d73(0x128)]){const _0x3e108c=_0x378c0b(_0x2c0466[_0x3a5d73(0xec)])[_0x3a5d73(0xbd)]['reverse']()[_0x3a5d73(0xd6)](_0x705fd1=>_0x705fd1['id']===_0x1f6f57['id']);if(_0x3e108c){const _0x11e563=_0x3e108c[_0x3a5d73(0xc4)]['unitId'],_0x407fb6=_0x3e108c[_0x3a5d73(0xc4)][_0x3a5d73(0xd7)]['id'];setTimeout(()=>{var _0x1fc93d=_0x3a5d73;this['_commandService'][_0x1fc93d(0xd0)](_0x22b854['id'],{'unitId':_0x11e563,'subUnitId':_0x407fb6},{'fromCollab':!0x0});});}}}[_0x1624f5(0xd2)](){var _0x34e469=_0x1624f5;this[_0x34e469(0x155)]['next']('presenting');const _0x5f065f=new Map(),_0x5a2552=this[_0x34e469(0x10a)]=new _0x10ce83();_0x5a2552[_0x34e469(0x161)](_0x28aff6(()=>{var _0x4fd7bb=_0x34e469;_0x5f065f['forEach'](_0xb46e94=>_0xb46e94[_0x4fd7bb(0x143)]()),_0x5f065f[_0x4fd7bb(0xe9)]();})),_0x5a2552[_0x34e469(0x161)](this[_0x34e469(0x11c)][_0x34e469(0x131)](_0x3a5256=>{var _0x46a5da=_0x34e469,_0x373615;if(_0x3a5256[_0x46a5da(0x13b)]!==_0x47f736[_0x46a5da(0x123)]||!this[_0x46a5da(0xf9)]['shouldShareOperation'](_0x3a5256['id']))return;const {id:_0xefdcfb}=_0x3a5256;let _0x56eba9;_0x5f065f[_0x46a5da(0xc0)](_0xefdcfb)?_0x56eba9=_0x5f065f['get'](_0xefdcfb):(_0x56eba9=new _0x257f72(),_0x5f065f[_0x46a5da(0x107)](_0xefdcfb,_0x56eba9),_0x56eba9[_0x46a5da(0x124)](_0x5c958e((_0x373615=this['_configService'][_0x46a5da(0xea)](xe))!=null?_0x373615:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x46a5da(0xd5)](_0xb92a00=>{var _0x19c24e=_0x46a5da;this[_0x19c24e(0x10b)][_0x19c24e(0x142)]({'eventID':_0xdbe7ec[_0x19c24e(0xf7)],'data':{'unitID':this[_0x19c24e(0xf8)],'operations':{[_0xb92a00['id']]:{'id':_0xb92a00['id'],'params':JSON[_0x19c24e(0xfd)](_0xb92a00[_0x19c24e(0xc4)])}}}},this[_0x19c24e(0xf8)]);})),_0x56eba9[_0x46a5da(0xfe)](_0x3a5256);})),this[_0x34e469(0xf9)][_0x34e469(0x134)](this[_0x34e469(0xf8)])[_0x34e469(0xc6)](_0x27b8ad=>this[_0x34e469(0x10b)]['send']({'eventID':_0xdbe7ec[_0x34e469(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x27b8ad['id']]:{'id':_0x27b8ad['id'],'params':JSON['stringify'](_0x27b8ad[_0x34e469(0xc4)])}}}},this[_0x34e469(0xf8)]));}[_0x1624f5(0x10e)](){var _0x31b380=_0x1624f5,_0x3326ac;this[_0x31b380(0x155)][_0x31b380(0xfe)](_0x31b380(0xf0)),(_0x3326ac=this[_0x31b380(0x10a)])==null||_0x3326ac[_0x31b380(0xbf)](),this[_0x31b380(0x10a)]=null;}['_startFollowing'](){var _0x4f8a4b=_0x1624f5,_0x19c327;(_0x19c327=this[_0x4f8a4b(0x10a)])==null||_0x19c327[_0x4f8a4b(0xbf)](),this[_0x4f8a4b(0x155)]['next'](_0x4f8a4b(0x168));}[_0x1624f5(0x162)](){var _0x2e1604=_0x1624f5,_0xb02f06;this[_0x2e1604(0x155)][_0x2e1604(0xfe)](_0x2e1604(0xf0)),(_0xb02f06=this[_0x2e1604(0x10a)])==null||_0xb02f06[_0x2e1604(0xbf)](),this[_0x2e1604(0x10a)]=null;}[_0x1624f5(0x139)](){var _0x3a4ba1=_0x1624f5,_0x3d454f;this[_0x3a4ba1(0x155)][_0x3a4ba1(0xfe)](_0x3a4ba1(0xe3)),(_0x3d454f=this[_0x3a4ba1(0x10a)])==null||_0x3d454f[_0x3a4ba1(0xbf)]();}['_handleOperation'](_0x316364){var _0x49ac78=_0x1624f5;if([_0x49ac78(0x12a),_0x49ac78(0xe3),'offline'][_0x49ac78(0xcf)](this[_0x49ac78(0xee)])||!_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]||_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]===this[_0x49ac78(0x10b)][_0x49ac78(0x130)]())return;this[_0x49ac78(0xee)]===_0x49ac78(0xf0)&&this[_0x49ac78(0x109)]();const _0x2b6337=_0x316364['data']['operations'];Object[_0x49ac78(0x135)](_0x2b6337)['forEach'](_0x137ec1=>{var _0x258367=_0x49ac78;this[_0x258367(0x11c)][_0x258367(0xd0)](_0x137ec1['id'],_0x137ec1['params']?JSON[_0x258367(0xc8)](_0x137ec1['params']):null,{'fromCollab':!0x0});});}[_0x1624f5(0xfc)](){var _0x18b554=_0x1624f5,_0x197e89;this[_0x18b554(0x155)][_0x18b554(0xfe)](_0x18b554(0x145)),(_0x197e89=this['_commandDisposable'])==null||_0x197e89[_0x18b554(0xbf)]();}[_0x1624f5(0xe2)](){var _0x395dfc=_0x1624f5;this[_0x395dfc(0x155)][_0x395dfc(0xfe)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x375812),f(0x3,_0x1a16ba(L)),f(0x4,_0x4355bd)],C);function _0x5b64(_0x75cad4,_0x27882b){var _0x1dcd45=_0x1dcd();return _0x5b64=function(_0x5b64a5,_0x3f906e){_0x5b64a5=_0x5b64a5-0xbd;var _0x136e16=_0x1dcd45[_0x5b64a5];return _0x136e16;},_0x5b64(_0x75cad4,_0x27882b);}function ye(){var _0x25c236=_0x1624f5;const _0xa57749=_0x5de910(m),_0x1a69d0=_0x5de910(_0x13109b),_0x5f2013=_0x47a6de(()=>_0x1a69d0[_0x25c236(0x127)](_0x3c6f33['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x410d44,_0x892b4d]=_0x281766(null),[_0x3f177d,_0x4620a8]=_0x281766(h['IDLE']),_0x456296=_0x338ee2(null);return _0x37dd39(()=>(_0x5f2013&&_0xa57749[_0x25c236(0xc7)](_0x5f2013[_0x25c236(0x169)]())[_0x25c236(0xe1)](_0x2eab0a=>{var _0x352367=_0x25c236;_0x892b4d(_0x2eab0a),_0x456296[_0x352367(0x141)]=_0x2eab0a['status$'][_0x352367(0xd5)](_0x1471c5=>{_0x4620a8(_0x1471c5);});}),()=>{var _0x1d0b5e=_0x25c236,_0x2f5034;(_0x2f5034=_0x456296['current'])==null||_0x2f5034[_0x1d0b5e(0x117)](),_0x456296['current']=null;}),[_0x5f2013,_0xa57749]),_0x410d44?_0xdece36(_0x3c7f31,{'align':_0x25c236(0x13a),'disabled':_0x3f177d===h[_0x25c236(0xcc)],'className':_0x25c236(0xfa),'overlay':_0xdece36(Re,{'status':_0x3f177d,'coordinator':_0x410d44}),'children':_0xdece36('button',{'className':_0x3914c5('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f177d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f177d!==h[_0x25c236(0xcc)]}),'type':'button','children':_0xdece36(B,{'className':_0x25c236(0x101)})})}):null;}function Re(_0x272ae1){var _0x3ed1ac=_0x1624f5;const {status:_0x143f53,coordinator:_0xe25b4d}=_0x272ae1;switch(_0x143f53){case h[_0x3ed1ac(0xc2)]:return _0xdece36(Pe,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x14d)]:return _0xdece36(Ae,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x150)]:return _0xdece36(Te,{'coordinator':_0xe25b4d});case h['OFFLINE']:return _0xdece36(Fe,{});case h[_0x3ed1ac(0xff)]:return _0xdece36($e,{'coordinator':_0xe25b4d});default:return null;}}function Pe(_0x53480b){var _0x53fd14=_0x1624f5;const {coordinator:_0x2ec6bb}=_0x53480b;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x53fd14(0x104),{'className':_0x53fd14(0x15d),'children':'Present\x20this\x20document'}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x2ec6bb[_0x53fd14(0x114)](),'children':_0x53fd14(0x136)})]});}function Ae(_0x5e491a){var _0x3dd88b=_0x1624f5;const {coordinator:_0x1d9faa}=_0x5e491a;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x3dd88b(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3dd88b(0x106)}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x1d9faa[_0x3dd88b(0x159)](),'children':_0x3dd88b(0x133)})]});}function Te(_0x3958de){var _0x200147=_0x1624f5;const {coordinator:_0x17bafa}=_0x3958de;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x200147(0x104),{'className':_0x200147(0x15d),'children':_0x200147(0xed)}),_0xdece36(_0x4fc5ad,{'variant':'text','onClick':()=>_0x17bafa[_0x200147(0x152)](),'children':_0x200147(0xe5)})]});}function $e(_0x1bdb65){var _0x36de1c=_0x1624f5;const {coordinator:_0x32c49f}=_0x1bdb65;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x36de1c(0x104),{'className':_0x36de1c(0x15d),'children':_0x36de1c(0xe6)}),_0xdece36(_0x4fc5ad,{'variant':_0x36de1c(0x147),'onClick':()=>_0x32c49f['stopPresenting'](),'children':_0x36de1c(0xef)})]});}function Fe(){var _0x1f408e=_0x1624f5;return _0xdece36(_0x4b0c6c,{'children':_0x1f408e(0xe0)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4a5cd0,_0x56ec7d,_0x4a07a1,_0x43f51d)=>{for(var _0x312b66=_0x43f51d>0x1?void 0x0:_0x43f51d?He(_0x56ec7d,_0x4a07a1):_0x56ec7d,_0x5e2b17=_0x4a5cd0['length']-0x1,_0x70c671;_0x5e2b17>=0x0;_0x5e2b17--)(_0x70c671=_0x4a5cd0[_0x5e2b17])&&(_0x312b66=_0x70c671(_0x312b66)||_0x312b66);return _0x312b66;},T=(_0x48b01d,_0x52bae4)=>(_0x2c23b7,_0x16a0d9)=>_0x52bae4(_0x2c23b7,_0x16a0d9,_0x48b01d);let I=class extends _0x1b6eaf{constructor(_0xddf493,_0x3f325f){var _0x33290d=_0x1624f5;super(),this['_injector']=_0xddf493,this[_0x33290d(0xfb)]=_0x3f325f,this[_0x33290d(0x14b)]();}[_0x1624f5(0x14b)](){var _0x5c9790=_0x1624f5;this[_0x5c9790(0x10f)](this[_0x5c9790(0xfb)][_0x5c9790(0xd1)](_0x3bea30['HEADER_MENU'],()=>_0x2d8986(ye,this[_0x5c9790(0x15b)])));}};I=je([T(0x0,_0x1a16ba(_0x3396c5)),T(0x1,_0x11fbb0)],I);const Ue=_0x1624f5(0x14a),$={};var Ve=Object[_0x1624f5(0xe4)],Me=(_0x33a5c8,_0x43e9d5,_0x522230,_0x347814)=>{for(var _0x19318b=_0x347814>0x1?void 0x0:_0x347814?Ve(_0x43e9d5,_0x522230):_0x43e9d5,_0x3fd19a=_0x33a5c8['length']-0x1,_0x532104;_0x3fd19a>=0x0;_0x3fd19a--)(_0x532104=_0x33a5c8[_0x3fd19a])&&(_0x19318b=_0x532104(_0x19318b)||_0x19318b);return _0x19318b;},ke=(_0x47fe43,_0x1725ee)=>(_0x41c0ef,_0x4c4ea2)=>_0x1725ee(_0x41c0ef,_0x4c4ea2,_0x47fe43);let b=class extends _0x1b6eaf{constructor(_0x555ec0){var _0x5235b1=_0x1624f5;super(),this[_0x5235b1(0xf9)]=_0x555ec0,this[_0x5235b1(0x112)]();}[_0x1624f5(0x112)](){[_0x499661['id'],_0x2cab7e['id'],_0x22b854['id']]['forEach'](_0xc969b1=>{var _0x40478d=_0x5b64;this[_0x40478d(0x10f)](this[_0x40478d(0xf9)][_0x40478d(0x151)](_0xc969b1));});}};b=Me([ke(0x0,_0x1a16ba(L))],b);var Ge=Object[_0x1624f5(0x116)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x51de7b,_0x26fc2b,_0x1c97db)=>_0x26fc2b in _0x51de7b?Ge(_0x51de7b,_0x26fc2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c97db}):_0x51de7b[_0x26fc2b]=_0x1c97db,Be=(_0x176f47,_0xb2d4a1,_0x1cf0de,_0x146465)=>{var _0x227497=_0x1624f5;for(var _0x317f9a=_0x146465>0x1?void 0x0:_0x146465?We(_0xb2d4a1,_0x1cf0de):_0xb2d4a1,_0xc19992=_0x176f47[_0x227497(0x119)]-0x1,_0x18f836;_0xc19992>=0x0;_0xc19992--)(_0x18f836=_0x176f47[_0xc19992])&&(_0x317f9a=_0x18f836(_0x317f9a)||_0x317f9a);return _0x317f9a;},F=(_0x5e3931,_0x319e11)=>(_0x3cd99a,_0x45525a)=>_0x319e11(_0x3cd99a,_0x45525a,_0x5e3931),J=(_0x43c658,_0x1d2691,_0x5d948d)=>Ye(_0x43c658,typeof _0x1d2691!=_0x1624f5(0x13f)?_0x1d2691+'':_0x1d2691,_0x5d948d);const Ze=_0x1624f5(0xc9);let O=class extends _0x421668{constructor(_0xaefa75=$,_0x5a671f,_0x7f3fb1){var _0x45ba57=_0x1624f5;super(),this[_0x45ba57(0x149)]=_0xaefa75,this[_0x45ba57(0x15b)]=_0x5a671f,this[_0x45ba57(0x16b)]=_0x7f3fb1;const {..._0x18c999}=_0xeb06ad({},$,this[_0x45ba57(0x149)]);this[_0x45ba57(0x16b)][_0x45ba57(0x166)](Ue,_0x18c999);}[_0x1624f5(0x12d)](){var _0x5f355=_0x1624f5;_0x31d9a6(this[_0x5f355(0x15b)],_0x50a260([[L],[m],[b],[I]],this['_config'][_0x5f355(0xcb)])),_0x58db42(this[_0x5f355(0x15b)],[[b]]);}[_0x1624f5(0xd9)](){var _0x11c14b=_0x1624f5;_0x58db42(this[_0x11c14b(0x15b)],[[I]]);}};J(O,'type',_0x3c6f33['UNIVER_UNKNOWN']),J(O,_0x1624f5(0x156),Ze),O=Be([_0x3283e7(_0x32ab4c),F(0x1,_0x1a16ba(_0x3396c5)),F(0x2,_0x375812)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x313013=_0x1f46;(function(_0x4b2471,_0x5b89f8){var _0x344991=_0x1f46,_0x46e958=_0x4b2471();while(!![]){try{var _0x28ae67=parseInt(_0x344991(0x181))/0x1*(parseInt(_0x344991(0xe7))/0x2)+-parseInt(_0x344991(0xed))/0x3+-parseInt(_0x344991(0xe9))/0x4*(parseInt(_0x344991(0x159))/0x5)+-parseInt(_0x344991(0xf8))/0x6*(-parseInt(_0x344991(0x141))/0x7)+-parseInt(_0x344991(0x121))/0x8+parseInt(_0x344991(0xe8))/0x9*(parseInt(_0x344991(0x179))/0xa)+parseInt(_0x344991(0x140))/0xb;if(_0x28ae67===_0x5b89f8)break;else _0x46e958['push'](_0x46e958['shift']());}catch(_0x276171){_0x46e958['push'](_0x46e958['shift']());}}}(_0x334b,0x9646d));var q=Object[_0x313013(0x11e)],z=(_0x22b249,_0x1e883d,_0x1fdd98)=>_0x1e883d in _0x22b249?q(_0x22b249,_0x1e883d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fdd98}):_0x22b249[_0x1e883d]=_0x1fdd98,d=(_0x38aae6,_0x18c38e,_0x4dcb2d)=>z(_0x38aae6,typeof _0x18c38e!='symbol'?_0x18c38e+'':_0x18c38e,_0x4dcb2d);import{Disposable as _0x15177c,toDisposable as _0x4a5097,IUniverInstanceService as _0xf8954b,Inject as _0x53b001,Injector as _0xf6095,IConfigService as _0x3638f5,ICommandService as _0x7fb0ea,RxDisposable as _0x393560,UniverInstanceType as _0x258437,DisposableCollection as _0x59dc2e,CommandType as _0x116d56,DependentOn as _0x15f744,Plugin as _0x4c9b21,merge as _0x28c635,registerDependencies as _0x28d1b1,mergeOverrideWithDependencies as _0x31c621,touchDependencies as _0x58be07}from'@univerjs/core';import{useDependency as _0x2fb90e,useObservable as _0x5ec775,IUIPartsService as _0x3a3ffe,BuiltInUIPart as _0x3d6ae4,connectInjector as _0x155e9e}from'@univerjs/ui';import{jsx as _0x3555d8,jsxs as _0x2f31fd,Fragment as _0x5efcf4}from'react/jsx-runtime';import{Dropdown as _0x2b078d,clsx as _0x392cc7,Button as _0x9c96c8}from'@univerjs/design';import{forwardRef as _0x64c43f,useRef as _0x4dbc7b,createElement as _0x4ecdb1,useState as _0x98af16,useEffect as _0x7fb2bf}from'react';import{CollaborationEvent as _0x284f8f,parseProtocolChangeset as _0x4e5eba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x102374,SessionStatus as _0x1c4955,UniverCollaborationClientPlugin as _0x54c104}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d62bc,SetWorksheetActiveOperation as _0x206df5}from'@univerjs/sheets';import{BehaviorSubject as _0x476844,Subject as _0x228df7}from'rxjs';function _0x334b(){var _0x5cbbf3=['You\x27re\x20presenting\x20the\x20document','has','memberID','1374485OgLUsY','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','_handleNewChangeSets','end','url(#$1','div','_univerInstanceService','function','onRendered','map','stopFollowing','_collabSession','getOwnPropertyDescriptor','_collabSessionService','use','requireSession','registerComponent','svg','LIVESHARE_OPERATION','getMemberID','asObservable','sessionStatus$','apply','setConfig','children','path','UNIVER_SHEET','_mountLiveShare','NOT_FOLLOWING','You\x27are\x20offline.','10XtybxB','OPERATION','_reporters','string','pluginName','_config','xlink:href','currentColor','401LvfoLJ','then','toString','live-share-icon','stopPresenting','subscribe','FOLLOWING','symbol','_handleNewHost','_commandDisposable','_init','evenodd','0\x200\x2017\x2017','extend','replace','pipe','You\x27re\x20not\x20following\x20the\x20presenter','_status$','get','UniverIcon','event$','idSuffix','delete','onStarting','Stop\x20presenting','set','_handleOnline','prototype','idle','add','NEW_CHANGESETS','HEADER_MENU','http://www.w3.org/2000/svg','982dgJVmb','2912292keXife','4HQeWom','concat','complete','values','2192607mZcuAV','propertyIsEnumerable','className','tryStartPresenting','_startLiveShareCoordinator','data','Start\x20following','getValue','_configService','trim','onCommandExecuted','5322NiNUso','offline','_handleOffline','call','LIVESHARE_NEW_HOST','defIds','from','substring','_stopPresenting','getOwnPropertySymbols','forEach','init','mask','_commandService','_status','random','params','tag','UNIVER_UNKNOWN','_entities','disposeWithMe','getLiveShareCoordinator','IDLE','fill','_presenter','send','attrs','OFFLINE','none','_startFollowing','not-following','presenting','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','dispose','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','Start','_stopFollowing','4659528LXTtcC','text','current','next','parse','_handleOperation','_beIdle','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','status$','mutations','includes','_handleTerminate','_sharedOperations','unitId','1em','operations','_unitID','univer-size-4','indexOf','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','live-share.config','startFollowing','dispose$','_fetchOperations','getTypeOfUnitDisposed$','clear','assign','stringify','14437445vMHkSF','2926DySAnL','entries','length','_liveShareService','PRESENTING','_startPresenting','default','getCurrentTypeOfUnit$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','find','LIVESHARE_TERMINATE','Stop\x20following','type','_uiPartsService','getUnitId','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','_injector','displayName','presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x334b=function(){return _0x5cbbf3;};return _0x334b();}import{takeUntil as _0xc34bd8,throttleTime as _0x72d5ce}from'rxjs/operators';import{SetZoomRatioOperation as _0xeb514c,SetScrollOperation as _0x19ee46}from'@univerjs/sheets-ui';var c=function(){var _0x598b75=_0x313013;return c=Object[_0x598b75(0x13e)]||function(_0x3738e8){var _0x15a48c=_0x598b75;for(var _0x2851bb,_0x3a6e6d=0x1,_0x1055cd=arguments[_0x15a48c(0x143)];_0x3a6e6d<_0x1055cd;_0x3a6e6d++){_0x2851bb=arguments[_0x3a6e6d];for(var _0x2403eb in _0x2851bb)Object[_0x15a48c(0xe1)][_0x15a48c(0x128)]['call'](_0x2851bb,_0x2403eb)&&(_0x3738e8[_0x2403eb]=_0x2851bb[_0x2403eb]);}return _0x3738e8;},c[_0x598b75(0x171)](this,arguments);},Oe=function(_0x1fda01,_0x55e25e){var _0x452473=_0x313013,_0x11d993={};for(var _0x17869c in _0x1fda01)Object[_0x452473(0xe1)][_0x452473(0x128)][_0x452473(0xfb)](_0x1fda01,_0x17869c)&&_0x55e25e['indexOf'](_0x17869c)<0x0&&(_0x11d993[_0x17869c]=_0x1fda01[_0x17869c]);if(_0x1fda01!=null&&typeof Object[_0x452473(0x101)]==_0x452473(0x162)){for(var _0x10bda6=0x0,_0x17869c=Object['getOwnPropertySymbols'](_0x1fda01);_0x10bda6<_0x17869c[_0x452473(0x143)];_0x10bda6++)_0x55e25e[_0x452473(0x136)](_0x17869c[_0x10bda6])<0x0&&Object[_0x452473(0xe1)][_0x452473(0xee)][_0x452473(0xfb)](_0x1fda01,_0x17869c[_0x10bda6])&&(_0x11d993[_0x17869c[_0x10bda6]]=_0x1fda01[_0x17869c[_0x10bda6]]);}return _0x11d993;},W=_0x64c43f(function(_0x2ec3db,_0x214b58){var _0x57d706=_0x313013,_0x340392=_0x2ec3db['icon'],_0x1584b4=_0x2ec3db['id'],_0x23cd5f=_0x2ec3db['className'],_0x4622c5=_0x2ec3db[_0x57d706(0xd3)],_0x3cf0dd=Oe(_0x2ec3db,['icon','id',_0x57d706(0xef),'extend']),_0x5f649='univerjs-icon\x20univerjs-icon-'['concat'](_0x1584b4,'\x20')[_0x57d706(0xea)](_0x23cd5f||'')[_0x57d706(0xf6)](),_0x4f0bc7=_0x4dbc7b('_'[_0x57d706(0xea)](Ne()));return Y(_0x340392,''[_0x57d706(0xea)](_0x1584b4),{'defIds':_0x340392['defIds'],'idSuffix':_0x4f0bc7[_0x57d706(0x123)]},c({'ref':_0x214b58,'className':_0x5f649},_0x3cf0dd),_0x4622c5);});function Y(_0x53998f,_0x29f34a,_0x2ee8dc,_0x20ff95,_0x57ca90){var _0x25f286=_0x313013;return _0x4ecdb1(_0x53998f[_0x25f286(0x109)],c(c({'key':_0x29f34a},Ee(_0x53998f,_0x2ee8dc,_0x57ca90)),_0x20ff95),(we(_0x53998f,_0x2ee8dc)[_0x25f286(0x173)]||[])[_0x25f286(0x164)](function(_0x18f9e6,_0x15694a){var _0x189e21=_0x25f286;return Y(_0x18f9e6,''['concat'](_0x29f34a,'-')[_0x189e21(0xea)](_0x53998f[_0x189e21(0x109)],'-')[_0x189e21(0xea)](_0x15694a),_0x2ee8dc,void 0x0,_0x57ca90);}));}function Ee(_0x1f24a2,_0x288921,_0x457f4c){var _0x4d9222=_0x313013,_0x11c3c6=c({},_0x1f24a2[_0x4d9222(0x112)]);_0x457f4c!=null&&_0x457f4c[_0x4d9222(0x118)]&&_0x11c3c6[_0x4d9222(0x10f)]===_0x4d9222(0x118)&&(_0x11c3c6[_0x4d9222(0x10f)]=_0x457f4c[_0x4d9222(0x118)]),_0x1f24a2[_0x4d9222(0x109)]==='mask'&&_0x11c3c6['id']&&(_0x11c3c6['id']=_0x11c3c6['id']+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0xdcae44){var _0x22d39f=_0x4d9222,_0x35029f=_0xdcae44[0x0],_0x4720b4=_0xdcae44[0x1];_0x35029f===_0x22d39f(0x104)&&typeof _0x4720b4==_0x22d39f(0x17c)&&(_0x11c3c6[_0x35029f]=_0x4720b4[_0x22d39f(0xd4)](/url\(#(.*)\)/,_0x22d39f(0x15f)[_0x22d39f(0xea)](_0x288921[_0x22d39f(0xdb)],')')));});var _0x1eedb8=_0x288921[_0x4d9222(0xfd)];return!_0x1eedb8||_0x1eedb8[_0x4d9222(0x143)]===0x0||(_0x1f24a2[_0x4d9222(0x109)]===_0x4d9222(0x169)&&_0x11c3c6[_0x4d9222(0x17f)]&&(_0x11c3c6[_0x4d9222(0x17f)]=_0x11c3c6[_0x4d9222(0x17f)]+_0x288921['idSuffix']),Object[_0x4d9222(0x142)](_0x11c3c6)[_0x4d9222(0x102)](function(_0x252582){var _0x437656=_0x4d9222,_0x1152a5=_0x252582[0x0],_0x12f2b4=_0x252582[0x1];typeof _0x12f2b4==_0x437656(0x17c)&&(_0x11c3c6[_0x1152a5]=_0x12f2b4['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x288921[_0x437656(0xdb)],')')));})),_0x11c3c6;}function we(_0x2d64b4,_0x2e41aa){var _0x588d7a=_0x313013,_0x4ce55c,_0x374638=_0x2e41aa[_0x588d7a(0xfd)];return!_0x374638||_0x374638[_0x588d7a(0x143)]===0x0?_0x2d64b4:_0x2d64b4[_0x588d7a(0x109)]==='defs'&&(!((_0x4ce55c=_0x2d64b4[_0x588d7a(0x173)])===null||_0x4ce55c===void 0x0)&&_0x4ce55c[_0x588d7a(0x143)])?c(c({},_0x2d64b4),{'children':_0x2d64b4[_0x588d7a(0x173)][_0x588d7a(0x164)](function(_0x5506aa){var _0x4d069f=_0x588d7a;return typeof _0x5506aa[_0x4d069f(0x112)]['id']==_0x4d069f(0x17c)&&_0x374638&&_0x374638[_0x4d069f(0x12e)](_0x5506aa[_0x4d069f(0x112)]['id'])?c(c({},_0x5506aa),{'attrs':c(c({},_0x5506aa['attrs']),{'id':_0x5506aa[_0x4d069f(0x112)]['id']+_0x2e41aa[_0x4d069f(0xdb)]})}):_0x5506aa;})}):_0x2d64b4;}function Ne(){var _0x53a472=_0x313013;return Math[_0x53a472(0x107)]()[_0x53a472(0x183)](0x24)[_0x53a472(0xff)](0x2,0x8);}W[_0x313013(0x153)]=_0x313013(0xd9);var Ce={'tag':_0x313013(0x16c),'attrs':{'xmlns':_0x313013(0xe6),'fill':_0x313013(0x114),'viewBox':_0x313013(0xd2),'width':'1em','height':_0x313013(0x132)},'children':[{'tag':'path','attrs':{'fill':_0x313013(0x180),'d':_0x313013(0x137)}},{'tag':_0x313013(0x174),'attrs':{'fill':'currentColor','d':_0x313013(0x150),'fillRule':_0x313013(0xd1),'clipRule':_0x313013(0xd1)}}]},B=_0x64c43f(function(_0x1ee37e,_0x24aca9){var _0x4fb5ab=_0x313013;return _0x4ecdb1(W,Object[_0x4fb5ab(0x13e)]({},_0x1ee37e,{'id':_0x4fb5ab(0x184),'ref':_0x24aca9,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x15177c{constructor(){var _0x52e0f9=_0x313013;super(...arguments),d(this,_0x52e0f9(0x130),new Set()),d(this,_0x52e0f9(0x17b),new Set());}['registerSharedOperation'](_0x2ca1e5){var _0x458ec3=_0x313013;return this[_0x458ec3(0x130)][_0x458ec3(0xe3)](_0x2ca1e5),_0x4a5097(()=>this['_sharedOperations']['delete'](_0x2ca1e5));}[_0x313013(0x15c)](_0x2bb7e3){var _0x24179c=_0x313013;return this[_0x24179c(0x17b)]['add'](_0x2bb7e3),_0x4a5097(()=>this[_0x24179c(0x17b)][_0x24179c(0xdc)](_0x2bb7e3));}[_0x313013(0x11c)](_0x1ba50c){var _0x20a88d=_0x313013;return this['_sharedOperations'][_0x20a88d(0x157)](_0x1ba50c);}[_0x313013(0x11a)](_0x31f87c){var _0x428dc9=_0x313013;return Array[_0x428dc9(0xfe)](this[_0x428dc9(0x17b)])[_0x428dc9(0x164)](_0x24cf21=>_0x24cf21(_0x31f87c));}}var De=Object[_0x313013(0x167)],Z=(_0x4d6f8b,_0x2dbc3d,_0x26ba2a,_0x36f406)=>{for(var _0x49a4eb=_0x36f406>0x1?void 0x0:_0x36f406?De(_0x2dbc3d,_0x26ba2a):_0x2dbc3d,_0x1f6b76=_0x4d6f8b['length']-0x1,_0x4fd824;_0x1f6b76>=0x0;_0x1f6b76--)(_0x4fd824=_0x4d6f8b[_0x1f6b76])&&(_0x49a4eb=_0x4fd824(_0x49a4eb)||_0x49a4eb);return _0x49a4eb;},f=(_0x5cf09b,_0x26fc7f)=>(_0x4dfb44,_0x13d83f)=>_0x26fc7f(_0x4dfb44,_0x13d83f,_0x5cf09b);let m=class extends _0x393560{constructor(_0x58a820,_0x308e09,_0x294ad6){var _0x44caf3=_0x313013;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x58a820,this['_injector']=_0x308e09,this[_0x44caf3(0x168)]=_0x294ad6,this['_init']());}async[_0x313013(0x10d)](_0x4e10e5){var _0x5b3b10=_0x313013;return this['_entities'][_0x5b3b10(0x157)](_0x4e10e5)||await this[_0x5b3b10(0xf1)](_0x4e10e5),this['_entities'][_0x5b3b10(0xd8)](_0x4e10e5);}[_0x313013(0xd0)](){var _0x58eaea=_0x313013;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))['subscribe'](async _0x1c2936=>{var _0x1b5456=_0x58eaea;const _0x469e39=_0x1c2936[_0x1b5456(0x14f)]();this[_0x1b5456(0x10b)][_0x1b5456(0x157)](_0x469e39)||this[_0x1b5456(0xf1)](_0x469e39);}),this[_0x58eaea(0x161)][_0x58eaea(0x13c)](_0x258437[_0x58eaea(0x175)])[_0x58eaea(0xd5)](_0xc34bd8(this[_0x58eaea(0x13a)]))[_0x58eaea(0x186)](_0x1d1991=>{var _0x53f551=_0x58eaea;const _0x4280e2=_0x1d1991['getUnitId'](),_0x5ea2f7=this[_0x53f551(0x10b)][_0x53f551(0xd8)](_0x4280e2);_0x5ea2f7==null||_0x5ea2f7[_0x53f551(0x11b)]();});}async[_0x313013(0xf1)](_0x5e718a){var _0x566925=_0x313013;const _0x5025a1=await this['_collabSessionService'][_0x566925(0x16a)](_0x5e718a),_0x4c7c7b=this['_injector']['createInstance'](C,_0x5e718a,_0x5025a1);return _0x4c7c7b[_0x566925(0x103)](),this[_0x566925(0x10b)][_0x566925(0xdf)](_0x5e718a,_0x4c7c7b),_0x4c7c7b;}};m=Z([f(0x0,_0xf8954b),f(0x1,_0x53b001(_0xf6095)),f(0x2,_0x53b001(_0x102374))],m);var h=(_0x41645f=>(_0x41645f[_0x313013(0x113)]=_0x313013(0xf9),_0x41645f[_0x313013(0x10e)]='idle',_0x41645f['FOLLOWING']=_0x313013(0x12a),_0x41645f[_0x313013(0x177)]=_0x313013(0x116),_0x41645f[_0x313013(0x145)]=_0x313013(0x117),_0x41645f))(h||{});const xe=_0x313013(0x119),Le=0xc8;let C=class extends _0x393560{constructor(_0x328c38,_0xc3a631,_0x1b58e4,_0x3413c8,_0x46df98){var _0x500b5a=_0x313013;super(),d(this,'_status$',new _0x476844(_0x500b5a(0xe2))),d(this,'status$',this[_0x500b5a(0xd7)][_0x500b5a(0x16f)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x500b5a(0x110),null),(this[_0x500b5a(0x134)]=_0x328c38,this[_0x500b5a(0x166)]=_0xc3a631,this[_0x500b5a(0xf5)]=_0x1b58e4,this[_0x500b5a(0x144)]=_0x3413c8,this['_commandService']=_0x46df98);}get[_0x313013(0x106)](){var _0x3764e0=_0x313013;return this[_0x3764e0(0xd7)][_0x3764e0(0xf4)]();}[_0x313013(0x11b)](){var _0x4a62b1=_0x313013,_0x22c8fa;(_0x22c8fa=this[_0x4a62b1(0xcf)])==null||_0x22c8fa[_0x4a62b1(0x11b)](),this[_0x4a62b1(0xd7)]['next']('idle'),this[_0x4a62b1(0xd7)][_0x4a62b1(0xeb)]();}['init'](){var _0x5b677b=_0x313013;this[_0x5b677b(0xd0)]||(this[_0x5b677b(0xd0)]=!0x0,this[_0x5b677b(0x166)][_0x5b677b(0x170)][_0x5b677b(0xd5)](_0xc34bd8(this[_0x5b677b(0x13a)]))[_0x5b677b(0x186)](_0x452b40=>{var _0xfcc22d=_0x5b677b;switch(_0x452b40){case _0x1c4955[_0xfcc22d(0x113)]:this[_0xfcc22d(0xfa)]();break;case _0x1c4955[_0xfcc22d(0x12b)]:this[_0xfcc22d(0xe0)]();break;}}),this[_0x5b677b(0x166)][_0x5b677b(0xda)][_0x5b677b(0xd5)](_0xc34bd8(this['dispose$']))[_0x5b677b(0x186)](_0x4a3375=>{var _0xc4f304=_0x5b677b;const {eventID:_0x17c91a}=_0x4a3375;switch(_0x17c91a){case _0x284f8f[_0xc4f304(0xfc)]:this[_0xc4f304(0x189)](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x16d)]:this['_handleOperation'](_0x4a3375);break;case _0x284f8f[_0xc4f304(0x14b)]:this[_0xc4f304(0x12f)]();break;case _0x284f8f[_0xc4f304(0xe4)]:this[_0xc4f304(0x15d)](_0x4a3375);break;}}));}[_0x313013(0xf0)](){var _0x1b6f91=_0x313013;this['_collabSession'][_0x1b6f91(0x111)]({'eventID':_0x284f8f[_0x1b6f91(0x15b)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1b6f91(0x16e)]()}},this[_0x1b6f91(0x134)]);}[_0x313013(0x185)](){var _0x4447ed=_0x313013;this['_status']===_0x4447ed(0x117)&&(this['_status$'][_0x4447ed(0x124)](_0x4447ed(0xe2)),this[_0x4447ed(0x166)][_0x4447ed(0x111)]({'eventID':_0x284f8f[_0x4447ed(0x14b)],'data':{'unitID':this[_0x4447ed(0x134)]}},this['_unitID']));}[_0x313013(0x139)](){var _0x4fdda0=_0x313013;this[_0x4fdda0(0x106)]===_0x4fdda0(0x116)&&(this[_0x4fdda0(0xd7)][_0x4fdda0(0x124)](_0x4fdda0(0x12a)),this[_0x4fdda0(0x115)]());}[_0x313013(0x165)](){var _0x24b687=_0x313013;this['_status']===_0x24b687(0x12a)&&this[_0x24b687(0x120)]();}['_handleNewHost'](_0x41232e){var _0xd13190=_0x313013;const {presenter:_0x440714}=_0x41232e[_0xd13190(0xf2)],_0x4df3b7=this[_0xd13190(0x166)]['getMemberID']();this[_0xd13190(0x110)]=_0x440714,_0x440714===_0x4df3b7?(this['_stopFollowing'](),this[_0xd13190(0x146)]()):this[_0xd13190(0x106)]!==_0xd13190(0x116)&&(this[_0xd13190(0x100)](),this[_0xd13190(0x115)]());}[_0x313013(0x13b)](){var _0x583848=_0x313013;const _0x4dab6d={'eventID':_0x284f8f['LIVESHARE_FETCH_OPERATIONS']};this[_0x583848(0x166)][_0x583848(0x111)](_0x4dab6d,this['_unitID']);}[_0x313013(0x12f)](){var _0x4e2b5e=_0x313013;this['_presenter']=null,this[_0x4e2b5e(0x106)]!==_0x4e2b5e(0x117)&&this['_beIdle']();}['_handleNewChangeSets'](_0x418c5a){var _0xda71b8=_0x313013;if(this[_0xda71b8(0x106)]===_0xda71b8(0x12a)&&this[_0xda71b8(0x110)]===_0x418c5a[_0xda71b8(0xf2)][_0xda71b8(0x158)]){const _0x573b6e=_0x4e5eba(_0x418c5a['data'])[_0xda71b8(0x12d)]['reverse']()[_0xda71b8(0x14a)](_0x2e6339=>_0x2e6339['id']===_0x5d62bc['id']);if(_0x573b6e){const _0x4b515b=_0x573b6e[_0xda71b8(0x108)][_0xda71b8(0x131)],_0xe5429a=_0x573b6e[_0xda71b8(0x108)]['sheet']['id'];setTimeout(()=>{var _0x1259aa=_0xda71b8;this[_0x1259aa(0x105)][_0x1259aa(0x151)](_0x206df5['id'],{'unitId':_0x4b515b,'subUnitId':_0xe5429a},{'fromCollab':!0x0});});}}}[_0x313013(0x146)](){var _0x20dc08=_0x313013;this['_status$']['next'](_0x20dc08(0x117));const _0x16af89=new Map(),_0x79190e=this[_0x20dc08(0xcf)]=new _0x59dc2e();_0x79190e['add'](_0x4a5097(()=>{var _0x1cc7bd=_0x20dc08;_0x16af89[_0x1cc7bd(0x102)](_0x1d1deb=>_0x1d1deb['complete']()),_0x16af89[_0x1cc7bd(0x13d)]();})),_0x79190e[_0x20dc08(0xe3)](this[_0x20dc08(0x105)][_0x20dc08(0xf7)](_0x11ecaf=>{var _0x17c565=_0x20dc08,_0x35bf68;if(_0x11ecaf[_0x17c565(0x14d)]!==_0x116d56[_0x17c565(0x17a)]||!this['_liveShareService'][_0x17c565(0x11c)](_0x11ecaf['id']))return;const {id:_0x337384}=_0x11ecaf;let _0x44b0b3;_0x16af89[_0x17c565(0x157)](_0x337384)?_0x44b0b3=_0x16af89[_0x17c565(0xd8)](_0x337384):(_0x44b0b3=new _0x228df7(),_0x16af89[_0x17c565(0xdf)](_0x337384,_0x44b0b3),_0x44b0b3[_0x17c565(0xd5)](_0x72d5ce((_0x35bf68=this[_0x17c565(0xf5)]['getConfig'](xe))!=null?_0x35bf68:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5c7348=>{var _0x4f4f6e=_0x17c565;this[_0x4f4f6e(0x166)][_0x4f4f6e(0x111)]({'eventID':_0x284f8f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f4f6e(0x134)],'operations':{[_0x5c7348['id']]:{'id':_0x5c7348['id'],'params':JSON[_0x4f4f6e(0x13f)](_0x5c7348[_0x4f4f6e(0x108)])}}}},this['_unitID']);})),_0x44b0b3[_0x17c565(0x124)](_0x11ecaf);})),this['_liveShareService'][_0x20dc08(0x11a)](this[_0x20dc08(0x134)])[_0x20dc08(0x102)](_0x2d547f=>this[_0x20dc08(0x166)][_0x20dc08(0x111)]({'eventID':_0x284f8f[_0x20dc08(0x16d)],'data':{'unitID':this[_0x20dc08(0x134)],'operations':{[_0x2d547f['id']]:{'id':_0x2d547f['id'],'params':JSON[_0x20dc08(0x13f)](_0x2d547f[_0x20dc08(0x108)])}}}},this['_unitID']));}[_0x313013(0x100)](){var _0x486d55=_0x313013,_0x57aa57;this[_0x486d55(0xd7)][_0x486d55(0x124)](_0x486d55(0xe2)),(_0x57aa57=this[_0x486d55(0xcf)])==null||_0x57aa57[_0x486d55(0x11b)](),this[_0x486d55(0xcf)]=null;}[_0x313013(0x115)](){var _0x1b7503=_0x313013,_0x3308b8;(_0x3308b8=this[_0x1b7503(0xcf)])==null||_0x3308b8[_0x1b7503(0x11b)](),this[_0x1b7503(0xd7)][_0x1b7503(0x124)](_0x1b7503(0x12a));}[_0x313013(0x127)](){var _0xd787a7=_0x313013,_0x4a6e5d;this[_0xd787a7(0xd7)]['next']('idle'),(_0x4a6e5d=this['_commandDisposable'])==null||_0x4a6e5d[_0xd787a7(0x11b)](),this[_0xd787a7(0xcf)]=null;}[_0x313013(0x120)](){var _0x985948=_0x313013,_0x143153;this[_0x985948(0xd7)][_0x985948(0x124)](_0x985948(0x116)),(_0x143153=this['_commandDisposable'])==null||_0x143153['dispose']();}[_0x313013(0x126)](_0x1f86a8){var _0x11499f=_0x313013;if(['presenting','not-following',_0x11499f(0xf9)][_0x11499f(0x12e)](this['_status'])||!_0x1f86a8['data'][_0x11499f(0x154)]||_0x1f86a8['data'][_0x11499f(0x154)]===this[_0x11499f(0x166)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x5c973b=_0x1f86a8['data'][_0x11499f(0x133)];Object[_0x11499f(0xec)](_0x5c973b)[_0x11499f(0x102)](_0x1e2255=>{var _0x956441=_0x11499f;this['_commandService'][_0x956441(0x151)](_0x1e2255['id'],_0x1e2255[_0x956441(0x108)]?JSON[_0x956441(0x125)](_0x1e2255['params']):null,{'fromCollab':!0x0});});}[_0x313013(0xfa)](){var _0x569263=_0x313013,_0x1e4f2a;this['_status$'][_0x569263(0x124)](_0x569263(0xf9)),(_0x1e4f2a=this['_commandDisposable'])==null||_0x1e4f2a[_0x569263(0x11b)]();}['_handleOnline'](){var _0x466c49=_0x313013;this[_0x466c49(0xd7)][_0x466c49(0x124)](_0x466c49(0xe2)),this[_0x466c49(0x13b)]();}};C=Z([f(0x2,_0x3638f5),f(0x3,_0x53b001(L)),f(0x4,_0x7fb0ea)],C);function ye(){var _0x314021=_0x313013;const _0x339b9b=_0x2fb90e(m),_0x41d55b=_0x2fb90e(_0xf8954b),_0xc37bb8=_0x5ec775(()=>_0x41d55b[_0x314021(0x148)](_0x258437[_0x314021(0x175)]),void 0x0,!0x1,[]),[_0x102d6b,_0x1d4cba]=_0x98af16(null),[_0x4165ce,_0x545219]=_0x98af16(h[_0x314021(0x10e)]),_0x420796=_0x4dbc7b(null);return _0x7fb2bf(()=>(_0xc37bb8&&_0x339b9b[_0x314021(0x10d)](_0xc37bb8['getUnitId']())[_0x314021(0x182)](_0x2e28ac=>{var _0x47970b=_0x314021;_0x1d4cba(_0x2e28ac),_0x420796[_0x47970b(0x123)]=_0x2e28ac[_0x47970b(0x12c)][_0x47970b(0x186)](_0x54b82e=>{_0x545219(_0x54b82e);});}),()=>{var _0x4bc3b1=_0x314021,_0x5a840c;(_0x5a840c=_0x420796['current'])==null||_0x5a840c['unsubscribe'](),_0x420796[_0x4bc3b1(0x123)]=null;}),[_0xc37bb8,_0x339b9b]),_0x102d6b?_0x3555d8(_0x2b078d,{'align':_0x314021(0x15e),'disabled':_0x4165ce===h['OFFLINE'],'className':_0x314021(0x149),'overlay':_0x3555d8(Re,{'status':_0x4165ce,'coordinator':_0x102d6b}),'children':_0x3555d8('button',{'className':_0x392cc7(_0x314021(0x129),{'univer-cursor-not-allowed':_0x4165ce===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4165ce!==h[_0x314021(0x113)]}),'type':'button','children':_0x3555d8(B,{'className':_0x314021(0x135)})})}):null;}function Re(_0x44856a){var _0x298c51=_0x313013;const {status:_0x56b573,coordinator:_0x539a08}=_0x44856a;switch(_0x56b573){case h['IDLE']:return _0x3555d8(Pe,{'coordinator':_0x539a08});case h[_0x298c51(0x187)]:return _0x3555d8(Ae,{'coordinator':_0x539a08});case h[_0x298c51(0x177)]:return _0x3555d8(Te,{'coordinator':_0x539a08});case h[_0x298c51(0x113)]:return _0x3555d8(Fe,{});case h[_0x298c51(0x145)]:return _0x3555d8($e,{'coordinator':_0x539a08});default:return null;}}function Pe(_0x80c14e){var _0xff4f5a=_0x313013;const {coordinator:_0x4c6825}=_0x80c14e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0xff4f5a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x4c6825['tryStartPresenting'](),'children':_0xff4f5a(0x11f)})]});}function Ae(_0x44b01e){var _0x515a31=_0x313013;const {coordinator:_0x2692ab}=_0x44b01e;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x515a31(0x160),{'className':_0x515a31(0x11d),'children':_0x515a31(0x15a)}),_0x3555d8(_0x9c96c8,{'onClick':()=>_0x2692ab[_0x515a31(0x165)](),'children':_0x515a31(0x14c)})]});}function Te(_0x49f43a){var _0x4376fe=_0x313013;const {coordinator:_0x1f158e}=_0x49f43a;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x4376fe(0x160),{'className':_0x4376fe(0x11d),'children':_0x4376fe(0xd6)}),_0x3555d8(_0x9c96c8,{'variant':_0x4376fe(0x122),'onClick':()=>_0x1f158e['startFollowing'](),'children':_0x4376fe(0xf3)})]});}function $e(_0x4e9212){var _0x720036=_0x313013;const {coordinator:_0x328804}=_0x4e9212;return _0x2f31fd(_0x5efcf4,{'children':[_0x3555d8(_0x720036(0x160),{'className':_0x720036(0x11d),'children':_0x720036(0x156)}),_0x3555d8(_0x9c96c8,{'variant':_0x720036(0x147),'onClick':()=>_0x328804[_0x720036(0x185)](),'children':_0x720036(0xde)})]});}function Fe(){var _0x55f51f=_0x313013;return _0x3555d8(_0x5efcf4,{'children':_0x55f51f(0x178)});}var He=Object[_0x313013(0x167)],je=(_0x1685c8,_0x21b651,_0xfeb339,_0xddb9c7)=>{var _0x5eb066=_0x313013;for(var _0x2f858c=_0xddb9c7>0x1?void 0x0:_0xddb9c7?He(_0x21b651,_0xfeb339):_0x21b651,_0x684bf1=_0x1685c8[_0x5eb066(0x143)]-0x1,_0x294d7a;_0x684bf1>=0x0;_0x684bf1--)(_0x294d7a=_0x1685c8[_0x684bf1])&&(_0x2f858c=_0x294d7a(_0x2f858c)||_0x2f858c);return _0x2f858c;},T=(_0x5b2d28,_0x151edf)=>(_0x296c33,_0x1174ca)=>_0x151edf(_0x296c33,_0x1174ca,_0x5b2d28);let I=class extends _0x15177c{constructor(_0x24fd2e,_0xb65f10){var _0x59ef71=_0x313013;super(),this[_0x59ef71(0x152)]=_0x24fd2e,this[_0x59ef71(0x14e)]=_0xb65f10,this[_0x59ef71(0x176)]();}[_0x313013(0x176)](){var _0x255b3d=_0x313013;this[_0x255b3d(0x10c)](this['_uiPartsService'][_0x255b3d(0x16b)](_0x3d6ae4[_0x255b3d(0xe5)],()=>_0x155e9e(ye,this['_injector'])));}};I=je([T(0x0,_0x53b001(_0xf6095)),T(0x1,_0x3a3ffe)],I);const Ue=_0x313013(0x138),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x29e501,_0x2636ad,_0x1df281,_0x379429)=>{for(var _0x12a71d=_0x379429>0x1?void 0x0:_0x379429?Ve(_0x2636ad,_0x1df281):_0x2636ad,_0x227c85=_0x29e501['length']-0x1,_0x10a99e;_0x227c85>=0x0;_0x227c85--)(_0x10a99e=_0x29e501[_0x227c85])&&(_0x12a71d=_0x10a99e(_0x12a71d)||_0x12a71d);return _0x12a71d;},ke=(_0x3dce66,_0x50184d)=>(_0x3fd6c4,_0x5de585)=>_0x50184d(_0x3fd6c4,_0x5de585,_0x3dce66);let b=class extends _0x15177c{constructor(_0x230942){var _0x427f6c=_0x313013;super(),this['_liveShareService']=_0x230942,this[_0x427f6c(0xd0)]();}['_init'](){var _0x46fcc4=_0x313013;[_0xeb514c['id'],_0x19ee46['id'],_0x206df5['id']][_0x46fcc4(0x102)](_0x10bc55=>{var _0xddee00=_0x46fcc4;this[_0xddee00(0x10c)](this[_0xddee00(0x144)]['registerSharedOperation'](_0x10bc55));});}};b=Me([ke(0x0,_0x53b001(L))],b);function _0x1f46(_0x48f29d,_0x15a0a4){var _0x334b97=_0x334b();return _0x1f46=function(_0x1f46f6,_0x559c99){_0x1f46f6=_0x1f46f6-0xcf;var _0x4bf02a=_0x334b97[_0x1f46f6];return _0x4bf02a;},_0x1f46(_0x48f29d,_0x15a0a4);}var Ge=Object[_0x313013(0x11e)],We=Object[_0x313013(0x167)],Ye=(_0x3c3a3a,_0x5e0b27,_0x5957c7)=>_0x5e0b27 in _0x3c3a3a?Ge(_0x3c3a3a,_0x5e0b27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5957c7}):_0x3c3a3a[_0x5e0b27]=_0x5957c7,Be=(_0x105d6d,_0x2a9926,_0x3746be,_0x55920f)=>{var _0x2eecc5=_0x313013;for(var _0x95ffab=_0x55920f>0x1?void 0x0:_0x55920f?We(_0x2a9926,_0x3746be):_0x2a9926,_0x36b6e2=_0x105d6d[_0x2eecc5(0x143)]-0x1,_0x47265e;_0x36b6e2>=0x0;_0x36b6e2--)(_0x47265e=_0x105d6d[_0x36b6e2])&&(_0x95ffab=_0x47265e(_0x95ffab)||_0x95ffab);return _0x95ffab;},F=(_0x53bcef,_0x1d6dfe)=>(_0x117f67,_0x461383)=>_0x1d6dfe(_0x117f67,_0x461383,_0x53bcef),J=(_0x52903c,_0xf7d54f,_0x6c2858)=>Ye(_0x52903c,typeof _0xf7d54f!=_0x313013(0x188)?_0xf7d54f+'':_0xf7d54f,_0x6c2858);const Ze=_0x313013(0x155);let O=class extends _0x4c9b21{constructor(_0x43cf82=$,_0x37f506,_0x1e4d9a){var _0x2354c3=_0x313013;super(),this[_0x2354c3(0x17e)]=_0x43cf82,this[_0x2354c3(0x152)]=_0x37f506,this[_0x2354c3(0xf5)]=_0x1e4d9a;const {..._0xa103c8}=_0x28c635({},$,this['_config']);this[_0x2354c3(0xf5)][_0x2354c3(0x172)](Ue,_0xa103c8);}[_0x313013(0xdd)](){var _0x126b5b=_0x313013;_0x28d1b1(this['_injector'],_0x31c621([[L],[m],[b],[I]],this[_0x126b5b(0x17e)]['override'])),_0x58be07(this['_injector'],[[b]]);}[_0x313013(0x163)](){var _0x17357f=_0x313013;_0x58be07(this[_0x17357f(0x152)],[[I]]);}};J(O,_0x313013(0x14d),_0x258437[_0x313013(0x10a)]),J(O,_0x313013(0x17d),Ze),O=Be([_0x15f744(_0x54c104),F(0x1,_0x53b001(_0xf6095)),F(0x2,_0x3638f5)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1624f5=_0x5b64;(function(_0x53b827,_0x1d7bf4){var _0xa9d55f=_0x5b64,_0x116499=_0x53b827();while(!![]){try{var _0x426e29=parseInt(_0xa9d55f(0x165))/0x1*(-parseInt(_0xa9d55f(0x13e))/0x2)+parseInt(_0xa9d55f(0x13c))/0x3+-parseInt(_0xa9d55f(0x102))/0x4+-parseInt(_0xa9d55f(0x100))/0x5+-parseInt(_0xa9d55f(0x144))/0x6+parseInt(_0xa9d55f(0x138))/0x7*(-parseInt(_0xa9d55f(0xf5))/0x8)+parseInt(_0xa9d55f(0x167))/0x9;if(_0x426e29===_0x1d7bf4)break;else _0x116499['push'](_0x116499['shift']());}catch(_0x512ef6){_0x116499['push'](_0x116499['shift']());}}}(_0x1dcd,0x1c9d5));var q=Object[_0x1624f5(0x116)],z=(_0x3800f7,_0x137fc7,_0x38e8f7)=>_0x137fc7 in _0x3800f7?q(_0x3800f7,_0x137fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e8f7}):_0x3800f7[_0x137fc7]=_0x38e8f7,d=(_0x949d89,_0x498301,_0x32f874)=>z(_0x949d89,typeof _0x498301!=_0x1624f5(0x13f)?_0x498301+'':_0x498301,_0x32f874);import{Disposable as _0x1b6eaf,toDisposable as _0x28aff6,IUniverInstanceService as _0x13109b,Inject as _0x1a16ba,Injector as _0x3396c5,IConfigService as _0x375812,ICommandService as _0x4355bd,RxDisposable as _0x1d139d,UniverInstanceType as _0x3c6f33,DisposableCollection as _0x10ce83,CommandType as _0x47f736,DependentOn as _0x3283e7,Plugin as _0x421668,merge as _0xeb06ad,registerDependencies as _0x31d9a6,mergeOverrideWithDependencies as _0x50a260,touchDependencies as _0x58db42}from'@univerjs/core';import{useDependency as _0x5de910,useObservable as _0x47a6de,IUIPartsService as _0x11fbb0,BuiltInUIPart as _0x3bea30,connectInjector as _0x2d8986}from'@univerjs/ui';import{jsx as _0xdece36,jsxs as _0x297d42,Fragment as _0x4b0c6c}from'react/jsx-runtime';import{Dropdown as _0x3c7f31,clsx as _0x3914c5,Button as _0x4fc5ad}from'@univerjs/design';import{forwardRef as _0x3e5310,useRef as _0x338ee2,createElement as _0x4d1ec5,useState as _0x281766,useEffect as _0x37dd39}from'react';import{CollaborationEvent as _0xdbe7ec,parseProtocolChangeset as _0x378c0b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f1249,SessionStatus as _0x110f90,UniverCollaborationClientPlugin as _0x32ab4c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1f6f57,SetWorksheetActiveOperation as _0x22b854}from'@univerjs/sheets';import{BehaviorSubject as _0x17f9f2,Subject as _0x257f72}from'rxjs';import{takeUntil as _0x55a56f,throttleTime as _0x5c958e}from'rxjs/operators';import{SetZoomRatioOperation as _0x499661,SetScrollOperation as _0x2cab7e}from'@univerjs/sheets-ui';var c=function(){var _0xdcd6fd=_0x1624f5;return c=Object[_0xdcd6fd(0x12b)]||function(_0x54a868){var _0x226f3e=_0xdcd6fd;for(var _0x10e957,_0x56e995=0x1,_0x144918=arguments[_0x226f3e(0x119)];_0x56e995<_0x144918;_0x56e995++){_0x10e957=arguments[_0x56e995];for(var _0x1ae8f7 in _0x10e957)Object[_0x226f3e(0xda)][_0x226f3e(0x13d)]['call'](_0x10e957,_0x1ae8f7)&&(_0x54a868[_0x1ae8f7]=_0x10e957[_0x1ae8f7]);}return _0x54a868;},c['apply'](this,arguments);},Oe=function(_0x235bd9,_0x2e98bf){var _0x3af152=_0x1624f5,_0x2f119f={};for(var _0x60bf77 in _0x235bd9)Object['prototype']['hasOwnProperty']['call'](_0x235bd9,_0x60bf77)&&_0x2e98bf[_0x3af152(0x105)](_0x60bf77)<0x0&&(_0x2f119f[_0x60bf77]=_0x235bd9[_0x60bf77]);if(_0x235bd9!=null&&typeof Object[_0x3af152(0x121)]=='function'){for(var _0x244ecb=0x0,_0x60bf77=Object['getOwnPropertySymbols'](_0x235bd9);_0x244ecb<_0x60bf77[_0x3af152(0x119)];_0x244ecb++)_0x2e98bf[_0x3af152(0x105)](_0x60bf77[_0x244ecb])<0x0&&Object[_0x3af152(0xda)][_0x3af152(0xde)][_0x3af152(0x126)](_0x235bd9,_0x60bf77[_0x244ecb])&&(_0x2f119f[_0x60bf77[_0x244ecb]]=_0x235bd9[_0x60bf77[_0x244ecb]]);}return _0x2f119f;},W=_0x3e5310(function(_0x185737,_0x3f7af5){var _0x4ccfac=_0x1624f5,_0xbbc366=_0x185737[_0x4ccfac(0xd4)],_0x2a8a15=_0x185737['id'],_0x4fcea8=_0x185737[_0x4ccfac(0x10c)],_0x5016b0=_0x185737['extend'],_0x57d59b=Oe(_0x185737,[_0x4ccfac(0xd4),'id','className','extend']),_0x476b9b=_0x4ccfac(0x11a)['concat'](_0x2a8a15,'\x20')[_0x4ccfac(0x11d)](_0x4fcea8||'')[_0x4ccfac(0x10d)](),_0x11dd71=_0x338ee2('_'[_0x4ccfac(0x11d)](Ne()));return Y(_0xbbc366,''[_0x4ccfac(0x11d)](_0x2a8a15),{'defIds':_0xbbc366['defIds'],'idSuffix':_0x11dd71[_0x4ccfac(0x141)]},c({'ref':_0x3f7af5,'className':_0x476b9b},_0x57d59b),_0x5016b0);});function Y(_0x43386a,_0x3c788a,_0xd065d5,_0x23bfcd,_0x1dda16){var _0x4c108b=_0x1624f5;return _0x4d1ec5(_0x43386a[_0x4c108b(0x118)],c(c({'key':_0x3c788a},Ee(_0x43386a,_0xd065d5,_0x1dda16)),_0x23bfcd),(we(_0x43386a,_0xd065d5)[_0x4c108b(0x15f)]||[])['map'](function(_0x244848,_0x719d53){var _0x7e3bbb=_0x4c108b;return Y(_0x244848,''['concat'](_0x3c788a,'-')[_0x7e3bbb(0x11d)](_0x43386a[_0x7e3bbb(0x118)],'-')['concat'](_0x719d53),_0xd065d5,void 0x0,_0x1dda16);}));}function Ee(_0x1e6fc6,_0x32cd02,_0x52b76a){var _0x4a04d5=_0x1624f5,_0x3833ed=c({},_0x1e6fc6[_0x4a04d5(0x12c)]);_0x52b76a!=null&&_0x52b76a[_0x4a04d5(0x132)]&&_0x3833ed['fill']===_0x4a04d5(0x132)&&(_0x3833ed[_0x4a04d5(0x129)]=_0x52b76a[_0x4a04d5(0x132)]),_0x1e6fc6[_0x4a04d5(0x118)]===_0x4a04d5(0x125)&&_0x3833ed['id']&&(_0x3833ed['id']=_0x3833ed['id']+_0x32cd02[_0x4a04d5(0x11b)]),Object['entries'](_0x3833ed)['forEach'](function(_0x28fd02){var _0x18dd81=_0x4a04d5,_0x2bdc1d=_0x28fd02[0x0],_0x37b000=_0x28fd02[0x1];_0x2bdc1d===_0x18dd81(0x125)&&typeof _0x37b000==_0x18dd81(0xd3)&&(_0x3833ed[_0x2bdc1d]=_0x37b000['replace'](/url\(#(.*)\)/,_0x18dd81(0x111)[_0x18dd81(0x11d)](_0x32cd02[_0x18dd81(0x11b)],')')));});var _0x51b7dc=_0x32cd02[_0x4a04d5(0xca)];return!_0x51b7dc||_0x51b7dc[_0x4a04d5(0x119)]===0x0||(_0x1e6fc6['tag']==='use'&&_0x3833ed[_0x4a04d5(0xf3)]&&(_0x3833ed[_0x4a04d5(0xf3)]=_0x3833ed[_0x4a04d5(0xf3)]+_0x32cd02[_0x4a04d5(0x11b)]),Object[_0x4a04d5(0x157)](_0x3833ed)['forEach'](function(_0x286606){var _0x387258=_0x4a04d5,_0x1e46ae=_0x286606[0x0],_0x434716=_0x286606[0x1];typeof _0x434716=='string'&&(_0x3833ed[_0x1e46ae]=_0x434716[_0x387258(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x387258(0x11d)](_0x32cd02[_0x387258(0x11b)],')')));})),_0x3833ed;}function we(_0x21db93,_0x354467){var _0x432555=_0x1624f5,_0x183735,_0x4b5562=_0x354467[_0x432555(0xca)];return!_0x4b5562||_0x4b5562['length']===0x0?_0x21db93:_0x21db93[_0x432555(0x118)]===_0x432555(0x163)&&(!((_0x183735=_0x21db93[_0x432555(0x15f)])===null||_0x183735===void 0x0)&&_0x183735[_0x432555(0x119)])?c(c({},_0x21db93),{'children':_0x21db93[_0x432555(0x15f)][_0x432555(0x108)](function(_0x5d77f4){var _0x85b954=_0x432555;return typeof _0x5d77f4[_0x85b954(0x12c)]['id']=='string'&&_0x4b5562&&_0x4b5562[_0x85b954(0xcf)](_0x5d77f4[_0x85b954(0x12c)]['id'])?c(c({},_0x5d77f4),{'attrs':c(c({},_0x5d77f4['attrs']),{'id':_0x5d77f4['attrs']['id']+_0x354467[_0x85b954(0x11b)]})}):_0x5d77f4;})}):_0x21db93;}function Ne(){var _0x997a0b=_0x1624f5;return Math[_0x997a0b(0x14f)]()['toString'](0x24)[_0x997a0b(0x158)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x1624f5(0xcd),'attrs':{'xmlns':_0x1624f5(0x140),'fill':_0x1624f5(0x12e),'viewBox':_0x1624f5(0x115),'width':_0x1624f5(0xc5),'height':_0x1624f5(0xc5)},'children':[{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0xf6)}},{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0x154),'fillRule':_0x1624f5(0x164),'clipRule':_0x1624f5(0x164)}}]},B=_0x3e5310(function(_0x1ead5a,_0x4e470e){var _0x3904a5=_0x1624f5;return _0x4d1ec5(W,Object[_0x3904a5(0x12b)]({},_0x1ead5a,{'id':_0x3904a5(0x148),'ref':_0x4e470e,'icon':Ce}));});B['displayName']=_0x1624f5(0x16a);class L extends _0x1b6eaf{constructor(){var _0x3e2b51=_0x1624f5;super(...arguments),d(this,_0x3e2b51(0xe8),new Set()),d(this,'_reporters',new Set());}[_0x1624f5(0x151)](_0x2207a7){var _0x431a31=_0x1624f5;return this[_0x431a31(0xe8)]['add'](_0x2207a7),_0x28aff6(()=>this[_0x431a31(0xe8)][_0x431a31(0xdf)](_0x2207a7));}[_0x1624f5(0xdd)](_0x33bc1f){var _0x42553d=_0x1624f5;return this[_0x42553d(0xc1)]['add'](_0x33bc1f),_0x28aff6(()=>this['_reporters'][_0x42553d(0xdf)](_0x33bc1f));}['shouldShareOperation'](_0xdd9c42){var _0x5e0242=_0x1624f5;return this[_0x5e0242(0xe8)]['has'](_0xdd9c42);}[_0x1624f5(0x134)](_0x2c1589){var _0x314727=_0x1624f5;return Array[_0x314727(0x122)](this[_0x314727(0xc1)])[_0x314727(0x108)](_0x43de8a=>_0x43de8a(_0x2c1589));}}function _0x1dcd(){var _0x28513a=['M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_OPERATION','_unitID','_liveShareService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','_handleOffline','stringify','next','PRESENTING','74140iuoDyB','univer-size-4','406860BLEGRW','getTypeOfUnitAdded$','div','indexOf','You\x27re\x20following\x20the\x20presenter','set','map','_startFollowing','_commandDisposable','_collabSession','className','trim','_stopPresenting','disposeWithMe','LIVESHARE_TERMINATE','url(#$1','_init','ONLINE','tryStartPresenting','0\x200\x2017\x2017','defineProperty','unsubscribe','tag','length','univerjs-icon\x20univerjs-icon-','idSuffix','_commandService','concat','_presenter','_startLiveShareCoordinator','presenter','getOwnPropertySymbols','from','OPERATION','pipe','mask','call','getCurrentTypeOfUnit$','memberID','fill','presenting','assign','attrs','onStarting','none','createInstance','getMemberID','onCommandExecuted','colorChannel1','Stop\x20following','getInitialStates','values','Start','UNIVER_SHEET','325913EimVJC','_stopFollowing','end','type','255066kFZGnw','hasOwnProperty','194EwgVdm','symbol','http://www.w3.org/2000/svg','current','send','complete','607110AyLOKQ','offline','_collabSessionService','default','live-share-icon','_config','live-share.config','_mountLiveShare','dispose$','FOLLOWING','_entities','random','NOT_FOLLOWING','registerSharedOperation','startFollowing','_handleNewHost','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_status$','pluginName','entries','substring','stopFollowing','_fetchOperations','_injector','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','children','NEW_CHANGESETS','add','_beIdle','defs','evenodd','463AytIhM','setConfig','3072429zyQfNQ','following','getUnitId','LiveShareIcon','_configService','mutations','currentColor','dispose','has','_reporters','IDLE','asObservable','params','1em','forEach','getLiveShareCoordinator','parse','UNIVER_LIVE_SHARE_PLUGIN','defIds','override','OFFLINE','svg','_univerInstanceService','includes','executeCommand','registerComponent','_startPresenting','string','icon','subscribe','find','sheet','LIVESHARE_NEW_HOST','onRendered','prototype','LIVESHARE_REQUEST_HOST','path','registerInitialStateReporter','propertyIsEnumerable','delete','You\x27are\x20offline.','then','_handleOnline','not-following','getOwnPropertyDescriptor','Start\x20following','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','clear','getConfig','event$','data','You\x27re\x20not\x20following\x20the\x20presenter','_status','Stop\x20presenting','idle','get','_handleTerminate','xlink:href','replace','8werfDF'];_0x1dcd=function(){return _0x28513a;};return _0x1dcd();}var De=Object['getOwnPropertyDescriptor'],Z=(_0x5e1ae9,_0x3d12fc,_0x14520e,_0x5c471f)=>{var _0x1a43e8=_0x1624f5;for(var _0x1abf9c=_0x5c471f>0x1?void 0x0:_0x5c471f?De(_0x3d12fc,_0x14520e):_0x3d12fc,_0x36eb2b=_0x5e1ae9[_0x1a43e8(0x119)]-0x1,_0x327f1f;_0x36eb2b>=0x0;_0x36eb2b--)(_0x327f1f=_0x5e1ae9[_0x36eb2b])&&(_0x1abf9c=_0x327f1f(_0x1abf9c)||_0x1abf9c);return _0x1abf9c;},f=(_0x497b82,_0xd96d94)=>(_0x235d26,_0x24c018)=>_0xd96d94(_0x235d26,_0x24c018,_0x497b82);let m=class extends _0x1d139d{constructor(_0x4ea6cd,_0x21dacf,_0x28139b){var _0x3bdab9=_0x1624f5;super(),d(this,'_entities',new Map()),(this[_0x3bdab9(0xce)]=_0x4ea6cd,this[_0x3bdab9(0x15b)]=_0x21dacf,this['_collabSessionService']=_0x28139b,this[_0x3bdab9(0x112)]());}async[_0x1624f5(0xc7)](_0x29e2e9){var _0x3bc832=_0x1624f5;return this[_0x3bc832(0x14e)][_0x3bc832(0xc0)](_0x29e2e9)||await this['_startLiveShareCoordinator'](_0x29e2e9),this[_0x3bc832(0x14e)][_0x3bc832(0xf1)](_0x29e2e9);}[_0x1624f5(0x112)](){var _0x37697d=_0x1624f5;this[_0x37697d(0xce)][_0x37697d(0x103)](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))[_0x37697d(0xd5)](async _0x368049=>{var _0x11ca06=_0x37697d;const _0x27d0d1=_0x368049[_0x11ca06(0x169)]();this['_entities'][_0x11ca06(0xc0)](_0x27d0d1)||this[_0x11ca06(0x11f)](_0x27d0d1);}),this[_0x37697d(0xce)]['getTypeOfUnitDisposed$'](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))['subscribe'](_0x8448ba=>{var _0x48842d=_0x37697d;const _0x1bc052=_0x8448ba[_0x48842d(0x169)](),_0x14fa43=this[_0x48842d(0x14e)]['get'](_0x1bc052);_0x14fa43==null||_0x14fa43[_0x48842d(0xbf)]();});}async['_startLiveShareCoordinator'](_0x2feeec){var _0x440e31=_0x1624f5;const _0x26c6b6=await this[_0x440e31(0x146)]['requireSession'](_0x2feeec),_0x328bd1=this[_0x440e31(0x15b)][_0x440e31(0x12f)](C,_0x2feeec,_0x26c6b6);return _0x328bd1[_0x440e31(0x15e)](),this['_entities'][_0x440e31(0x107)](_0x2feeec,_0x328bd1),_0x328bd1;}};m=Z([f(0x0,_0x13109b),f(0x1,_0x1a16ba(_0x3396c5)),f(0x2,_0x1a16ba(_0x5f1249))],m);var h=(_0x1a6731=>(_0x1a6731[_0x1624f5(0xcc)]=_0x1624f5(0x145),_0x1a6731[_0x1624f5(0xc2)]='idle',_0x1a6731[_0x1624f5(0x14d)]=_0x1624f5(0x168),_0x1a6731[_0x1624f5(0x150)]=_0x1624f5(0xe3),_0x1a6731[_0x1624f5(0xff)]=_0x1624f5(0x12a),_0x1a6731))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1d139d{constructor(_0x3a6f96,_0x4b1346,_0x4b25c1,_0x964c42,_0x12700f){var _0x1f5e0d=_0x1624f5;super(),d(this,_0x1f5e0d(0x155),new _0x17f9f2(_0x1f5e0d(0xf0))),d(this,'status$',this[_0x1f5e0d(0x155)][_0x1f5e0d(0xc3)]()),d(this,'_init',!0x1),d(this,_0x1f5e0d(0x10a),null),d(this,_0x1f5e0d(0x11e),null),(this[_0x1f5e0d(0xf8)]=_0x3a6f96,this[_0x1f5e0d(0x10b)]=_0x4b1346,this['_configService']=_0x4b25c1,this['_liveShareService']=_0x964c42,this[_0x1f5e0d(0x11c)]=_0x12700f);}get[_0x1624f5(0xee)](){var _0x1a24f2=_0x1624f5;return this[_0x1a24f2(0x155)]['getValue']();}[_0x1624f5(0xbf)](){var _0x3632f3=_0x1624f5,_0x230cff;(_0x230cff=this['_commandDisposable'])==null||_0x230cff[_0x3632f3(0xbf)](),this['_status$'][_0x3632f3(0xfe)](_0x3632f3(0xf0)),this[_0x3632f3(0x155)][_0x3632f3(0x143)]();}['init'](){var _0x5a030c=_0x1624f5;this[_0x5a030c(0x112)]||(this['_init']=!0x0,this[_0x5a030c(0x10b)]['sessionStatus$'][_0x5a030c(0x124)](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x119102=>{var _0x100286=_0x5a030c;switch(_0x119102){case _0x110f90['OFFLINE']:this[_0x100286(0xfc)]();break;case _0x110f90[_0x100286(0x113)]:this['_handleOnline']();break;}}),this[_0x5a030c(0x10b)][_0x5a030c(0xeb)]['pipe'](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x2249cf=>{var _0xe11e7a=_0x5a030c;const {eventID:_0x15cb95}=_0x2249cf;switch(_0x15cb95){case _0xdbe7ec[_0xe11e7a(0xd8)]:this[_0xe11e7a(0x153)](_0x2249cf);break;case _0xdbe7ec['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2249cf);break;case _0xdbe7ec[_0xe11e7a(0x110)]:this[_0xe11e7a(0xf2)]();break;case _0xdbe7ec[_0xe11e7a(0x160)]:this[_0xe11e7a(0x15c)](_0x2249cf);break;}}));}[_0x1624f5(0x114)](){var _0x2aa600=_0x1624f5;this[_0x2aa600(0x10b)][_0x2aa600(0x142)]({'eventID':_0xdbe7ec[_0x2aa600(0xdb)],'data':{'unitID':this[_0x2aa600(0xf8)],'userID':this[_0x2aa600(0x10b)][_0x2aa600(0x130)]()}},this[_0x2aa600(0xf8)]);}['stopPresenting'](){var _0x34c0ef=_0x1624f5;this[_0x34c0ef(0xee)]===_0x34c0ef(0x12a)&&(this[_0x34c0ef(0x155)][_0x34c0ef(0xfe)](_0x34c0ef(0xf0)),this[_0x34c0ef(0x10b)][_0x34c0ef(0x142)]({'eventID':_0xdbe7ec['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x34c0ef(0xf8)]}},this[_0x34c0ef(0xf8)]));}[_0x1624f5(0x152)](){var _0x5b78dd=_0x1624f5;this[_0x5b78dd(0xee)]===_0x5b78dd(0xe3)&&(this[_0x5b78dd(0x155)][_0x5b78dd(0xfe)](_0x5b78dd(0x168)),this[_0x5b78dd(0x109)]());}[_0x1624f5(0x159)](){var _0x2e17e8=_0x1624f5;this[_0x2e17e8(0xee)]===_0x2e17e8(0x168)&&this[_0x2e17e8(0x139)]();}[_0x1624f5(0x153)](_0x199c9f){var _0x5de5b2=_0x1624f5;const {presenter:_0xc25ece}=_0x199c9f[_0x5de5b2(0xec)],_0x2a52ec=this['_collabSession'][_0x5de5b2(0x130)]();this[_0x5de5b2(0x11e)]=_0xc25ece,_0xc25ece===_0x2a52ec?(this[_0x5de5b2(0x139)](),this[_0x5de5b2(0xd2)]()):this[_0x5de5b2(0xee)]!==_0x5de5b2(0xe3)&&(this[_0x5de5b2(0x10e)](),this[_0x5de5b2(0x109)]());}[_0x1624f5(0x15a)](){var _0x5a89dc=_0x1624f5;const _0x292f93={'eventID':_0xdbe7ec[_0x5a89dc(0xe7)]};this['_collabSession'][_0x5a89dc(0x142)](_0x292f93,this['_unitID']);}[_0x1624f5(0xf2)](){var _0xbfeedb=_0x1624f5;this[_0xbfeedb(0x11e)]=null,this['_status']!==_0xbfeedb(0x12a)&&this[_0xbfeedb(0x162)]();}[_0x1624f5(0x15c)](_0x2c0466){var _0x3a5d73=_0x1624f5;if(this[_0x3a5d73(0xee)]===_0x3a5d73(0x168)&&this[_0x3a5d73(0x11e)]===_0x2c0466[_0x3a5d73(0xec)][_0x3a5d73(0x128)]){const _0x3e108c=_0x378c0b(_0x2c0466[_0x3a5d73(0xec)])[_0x3a5d73(0xbd)]['reverse']()[_0x3a5d73(0xd6)](_0x705fd1=>_0x705fd1['id']===_0x1f6f57['id']);if(_0x3e108c){const _0x11e563=_0x3e108c[_0x3a5d73(0xc4)]['unitId'],_0x407fb6=_0x3e108c[_0x3a5d73(0xc4)][_0x3a5d73(0xd7)]['id'];setTimeout(()=>{var _0x1fc93d=_0x3a5d73;this['_commandService'][_0x1fc93d(0xd0)](_0x22b854['id'],{'unitId':_0x11e563,'subUnitId':_0x407fb6},{'fromCollab':!0x0});});}}}[_0x1624f5(0xd2)](){var _0x34e469=_0x1624f5;this[_0x34e469(0x155)]['next']('presenting');const _0x5f065f=new Map(),_0x5a2552=this[_0x34e469(0x10a)]=new _0x10ce83();_0x5a2552[_0x34e469(0x161)](_0x28aff6(()=>{var _0x4fd7bb=_0x34e469;_0x5f065f['forEach'](_0xb46e94=>_0xb46e94[_0x4fd7bb(0x143)]()),_0x5f065f[_0x4fd7bb(0xe9)]();})),_0x5a2552[_0x34e469(0x161)](this[_0x34e469(0x11c)][_0x34e469(0x131)](_0x3a5256=>{var _0x46a5da=_0x34e469,_0x373615;if(_0x3a5256[_0x46a5da(0x13b)]!==_0x47f736[_0x46a5da(0x123)]||!this[_0x46a5da(0xf9)]['shouldShareOperation'](_0x3a5256['id']))return;const {id:_0xefdcfb}=_0x3a5256;let _0x56eba9;_0x5f065f[_0x46a5da(0xc0)](_0xefdcfb)?_0x56eba9=_0x5f065f['get'](_0xefdcfb):(_0x56eba9=new _0x257f72(),_0x5f065f[_0x46a5da(0x107)](_0xefdcfb,_0x56eba9),_0x56eba9[_0x46a5da(0x124)](_0x5c958e((_0x373615=this['_configService'][_0x46a5da(0xea)](xe))!=null?_0x373615:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x46a5da(0xd5)](_0xb92a00=>{var _0x19c24e=_0x46a5da;this[_0x19c24e(0x10b)][_0x19c24e(0x142)]({'eventID':_0xdbe7ec[_0x19c24e(0xf7)],'data':{'unitID':this[_0x19c24e(0xf8)],'operations':{[_0xb92a00['id']]:{'id':_0xb92a00['id'],'params':JSON[_0x19c24e(0xfd)](_0xb92a00[_0x19c24e(0xc4)])}}}},this[_0x19c24e(0xf8)]);})),_0x56eba9[_0x46a5da(0xfe)](_0x3a5256);})),this[_0x34e469(0xf9)][_0x34e469(0x134)](this[_0x34e469(0xf8)])[_0x34e469(0xc6)](_0x27b8ad=>this[_0x34e469(0x10b)]['send']({'eventID':_0xdbe7ec[_0x34e469(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x27b8ad['id']]:{'id':_0x27b8ad['id'],'params':JSON['stringify'](_0x27b8ad[_0x34e469(0xc4)])}}}},this[_0x34e469(0xf8)]));}[_0x1624f5(0x10e)](){var _0x31b380=_0x1624f5,_0x3326ac;this[_0x31b380(0x155)][_0x31b380(0xfe)](_0x31b380(0xf0)),(_0x3326ac=this[_0x31b380(0x10a)])==null||_0x3326ac[_0x31b380(0xbf)](),this[_0x31b380(0x10a)]=null;}['_startFollowing'](){var _0x4f8a4b=_0x1624f5,_0x19c327;(_0x19c327=this[_0x4f8a4b(0x10a)])==null||_0x19c327[_0x4f8a4b(0xbf)](),this[_0x4f8a4b(0x155)]['next'](_0x4f8a4b(0x168));}[_0x1624f5(0x162)](){var _0x2e1604=_0x1624f5,_0xb02f06;this[_0x2e1604(0x155)][_0x2e1604(0xfe)](_0x2e1604(0xf0)),(_0xb02f06=this[_0x2e1604(0x10a)])==null||_0xb02f06[_0x2e1604(0xbf)](),this[_0x2e1604(0x10a)]=null;}[_0x1624f5(0x139)](){var _0x3a4ba1=_0x1624f5,_0x3d454f;this[_0x3a4ba1(0x155)][_0x3a4ba1(0xfe)](_0x3a4ba1(0xe3)),(_0x3d454f=this[_0x3a4ba1(0x10a)])==null||_0x3d454f[_0x3a4ba1(0xbf)]();}['_handleOperation'](_0x316364){var _0x49ac78=_0x1624f5;if([_0x49ac78(0x12a),_0x49ac78(0xe3),'offline'][_0x49ac78(0xcf)](this[_0x49ac78(0xee)])||!_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]||_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]===this[_0x49ac78(0x10b)][_0x49ac78(0x130)]())return;this[_0x49ac78(0xee)]===_0x49ac78(0xf0)&&this[_0x49ac78(0x109)]();const _0x2b6337=_0x316364['data']['operations'];Object[_0x49ac78(0x135)](_0x2b6337)['forEach'](_0x137ec1=>{var _0x258367=_0x49ac78;this[_0x258367(0x11c)][_0x258367(0xd0)](_0x137ec1['id'],_0x137ec1['params']?JSON[_0x258367(0xc8)](_0x137ec1['params']):null,{'fromCollab':!0x0});});}[_0x1624f5(0xfc)](){var _0x18b554=_0x1624f5,_0x197e89;this[_0x18b554(0x155)][_0x18b554(0xfe)](_0x18b554(0x145)),(_0x197e89=this['_commandDisposable'])==null||_0x197e89[_0x18b554(0xbf)]();}[_0x1624f5(0xe2)](){var _0x395dfc=_0x1624f5;this[_0x395dfc(0x155)][_0x395dfc(0xfe)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x375812),f(0x3,_0x1a16ba(L)),f(0x4,_0x4355bd)],C);function _0x5b64(_0x75cad4,_0x27882b){var _0x1dcd45=_0x1dcd();return _0x5b64=function(_0x5b64a5,_0x3f906e){_0x5b64a5=_0x5b64a5-0xbd;var _0x136e16=_0x1dcd45[_0x5b64a5];return _0x136e16;},_0x5b64(_0x75cad4,_0x27882b);}function ye(){var _0x25c236=_0x1624f5;const _0xa57749=_0x5de910(m),_0x1a69d0=_0x5de910(_0x13109b),_0x5f2013=_0x47a6de(()=>_0x1a69d0[_0x25c236(0x127)](_0x3c6f33['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x410d44,_0x892b4d]=_0x281766(null),[_0x3f177d,_0x4620a8]=_0x281766(h['IDLE']),_0x456296=_0x338ee2(null);return _0x37dd39(()=>(_0x5f2013&&_0xa57749[_0x25c236(0xc7)](_0x5f2013[_0x25c236(0x169)]())[_0x25c236(0xe1)](_0x2eab0a=>{var _0x352367=_0x25c236;_0x892b4d(_0x2eab0a),_0x456296[_0x352367(0x141)]=_0x2eab0a['status$'][_0x352367(0xd5)](_0x1471c5=>{_0x4620a8(_0x1471c5);});}),()=>{var _0x1d0b5e=_0x25c236,_0x2f5034;(_0x2f5034=_0x456296['current'])==null||_0x2f5034[_0x1d0b5e(0x117)](),_0x456296['current']=null;}),[_0x5f2013,_0xa57749]),_0x410d44?_0xdece36(_0x3c7f31,{'align':_0x25c236(0x13a),'disabled':_0x3f177d===h[_0x25c236(0xcc)],'className':_0x25c236(0xfa),'overlay':_0xdece36(Re,{'status':_0x3f177d,'coordinator':_0x410d44}),'children':_0xdece36('button',{'className':_0x3914c5('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f177d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f177d!==h[_0x25c236(0xcc)]}),'type':'button','children':_0xdece36(B,{'className':_0x25c236(0x101)})})}):null;}function Re(_0x272ae1){var _0x3ed1ac=_0x1624f5;const {status:_0x143f53,coordinator:_0xe25b4d}=_0x272ae1;switch(_0x143f53){case h[_0x3ed1ac(0xc2)]:return _0xdece36(Pe,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x14d)]:return _0xdece36(Ae,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x150)]:return _0xdece36(Te,{'coordinator':_0xe25b4d});case h['OFFLINE']:return _0xdece36(Fe,{});case h[_0x3ed1ac(0xff)]:return _0xdece36($e,{'coordinator':_0xe25b4d});default:return null;}}function Pe(_0x53480b){var _0x53fd14=_0x1624f5;const {coordinator:_0x2ec6bb}=_0x53480b;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x53fd14(0x104),{'className':_0x53fd14(0x15d),'children':'Present\x20this\x20document'}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x2ec6bb[_0x53fd14(0x114)](),'children':_0x53fd14(0x136)})]});}function Ae(_0x5e491a){var _0x3dd88b=_0x1624f5;const {coordinator:_0x1d9faa}=_0x5e491a;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x3dd88b(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3dd88b(0x106)}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x1d9faa[_0x3dd88b(0x159)](),'children':_0x3dd88b(0x133)})]});}function Te(_0x3958de){var _0x200147=_0x1624f5;const {coordinator:_0x17bafa}=_0x3958de;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x200147(0x104),{'className':_0x200147(0x15d),'children':_0x200147(0xed)}),_0xdece36(_0x4fc5ad,{'variant':'text','onClick':()=>_0x17bafa[_0x200147(0x152)](),'children':_0x200147(0xe5)})]});}function $e(_0x1bdb65){var _0x36de1c=_0x1624f5;const {coordinator:_0x32c49f}=_0x1bdb65;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x36de1c(0x104),{'className':_0x36de1c(0x15d),'children':_0x36de1c(0xe6)}),_0xdece36(_0x4fc5ad,{'variant':_0x36de1c(0x147),'onClick':()=>_0x32c49f['stopPresenting'](),'children':_0x36de1c(0xef)})]});}function Fe(){var _0x1f408e=_0x1624f5;return _0xdece36(_0x4b0c6c,{'children':_0x1f408e(0xe0)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4a5cd0,_0x56ec7d,_0x4a07a1,_0x43f51d)=>{for(var _0x312b66=_0x43f51d>0x1?void 0x0:_0x43f51d?He(_0x56ec7d,_0x4a07a1):_0x56ec7d,_0x5e2b17=_0x4a5cd0['length']-0x1,_0x70c671;_0x5e2b17>=0x0;_0x5e2b17--)(_0x70c671=_0x4a5cd0[_0x5e2b17])&&(_0x312b66=_0x70c671(_0x312b66)||_0x312b66);return _0x312b66;},T=(_0x48b01d,_0x52bae4)=>(_0x2c23b7,_0x16a0d9)=>_0x52bae4(_0x2c23b7,_0x16a0d9,_0x48b01d);let I=class extends _0x1b6eaf{constructor(_0xddf493,_0x3f325f){var _0x33290d=_0x1624f5;super(),this['_injector']=_0xddf493,this[_0x33290d(0xfb)]=_0x3f325f,this[_0x33290d(0x14b)]();}[_0x1624f5(0x14b)](){var _0x5c9790=_0x1624f5;this[_0x5c9790(0x10f)](this[_0x5c9790(0xfb)][_0x5c9790(0xd1)](_0x3bea30['HEADER_MENU'],()=>_0x2d8986(ye,this[_0x5c9790(0x15b)])));}};I=je([T(0x0,_0x1a16ba(_0x3396c5)),T(0x1,_0x11fbb0)],I);const Ue=_0x1624f5(0x14a),$={};var Ve=Object[_0x1624f5(0xe4)],Me=(_0x33a5c8,_0x43e9d5,_0x522230,_0x347814)=>{for(var _0x19318b=_0x347814>0x1?void 0x0:_0x347814?Ve(_0x43e9d5,_0x522230):_0x43e9d5,_0x3fd19a=_0x33a5c8['length']-0x1,_0x532104;_0x3fd19a>=0x0;_0x3fd19a--)(_0x532104=_0x33a5c8[_0x3fd19a])&&(_0x19318b=_0x532104(_0x19318b)||_0x19318b);return _0x19318b;},ke=(_0x47fe43,_0x1725ee)=>(_0x41c0ef,_0x4c4ea2)=>_0x1725ee(_0x41c0ef,_0x4c4ea2,_0x47fe43);let b=class extends _0x1b6eaf{constructor(_0x555ec0){var _0x5235b1=_0x1624f5;super(),this[_0x5235b1(0xf9)]=_0x555ec0,this[_0x5235b1(0x112)]();}[_0x1624f5(0x112)](){[_0x499661['id'],_0x2cab7e['id'],_0x22b854['id']]['forEach'](_0xc969b1=>{var _0x40478d=_0x5b64;this[_0x40478d(0x10f)](this[_0x40478d(0xf9)][_0x40478d(0x151)](_0xc969b1));});}};b=Me([ke(0x0,_0x1a16ba(L))],b);var Ge=Object[_0x1624f5(0x116)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x51de7b,_0x26fc2b,_0x1c97db)=>_0x26fc2b in _0x51de7b?Ge(_0x51de7b,_0x26fc2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c97db}):_0x51de7b[_0x26fc2b]=_0x1c97db,Be=(_0x176f47,_0xb2d4a1,_0x1cf0de,_0x146465)=>{var _0x227497=_0x1624f5;for(var _0x317f9a=_0x146465>0x1?void 0x0:_0x146465?We(_0xb2d4a1,_0x1cf0de):_0xb2d4a1,_0xc19992=_0x176f47[_0x227497(0x119)]-0x1,_0x18f836;_0xc19992>=0x0;_0xc19992--)(_0x18f836=_0x176f47[_0xc19992])&&(_0x317f9a=_0x18f836(_0x317f9a)||_0x317f9a);return _0x317f9a;},F=(_0x5e3931,_0x319e11)=>(_0x3cd99a,_0x45525a)=>_0x319e11(_0x3cd99a,_0x45525a,_0x5e3931),J=(_0x43c658,_0x1d2691,_0x5d948d)=>Ye(_0x43c658,typeof _0x1d2691!=_0x1624f5(0x13f)?_0x1d2691+'':_0x1d2691,_0x5d948d);const Ze=_0x1624f5(0xc9);let O=class extends _0x421668{constructor(_0xaefa75=$,_0x5a671f,_0x7f3fb1){var _0x45ba57=_0x1624f5;super(),this[_0x45ba57(0x149)]=_0xaefa75,this[_0x45ba57(0x15b)]=_0x5a671f,this[_0x45ba57(0x16b)]=_0x7f3fb1;const {..._0x18c999}=_0xeb06ad({},$,this[_0x45ba57(0x149)]);this[_0x45ba57(0x16b)][_0x45ba57(0x166)](Ue,_0x18c999);}[_0x1624f5(0x12d)](){var _0x5f355=_0x1624f5;_0x31d9a6(this[_0x5f355(0x15b)],_0x50a260([[L],[m],[b],[I]],this['_config'][_0x5f355(0xcb)])),_0x58db42(this[_0x5f355(0x15b)],[[b]]);}[_0x1624f5(0xd9)](){var _0x11c14b=_0x1624f5;_0x58db42(this[_0x11c14b(0x15b)],[[I]]);}};J(O,'type',_0x3c6f33['UNIVER_UNKNOWN']),J(O,_0x1624f5(0x156),Ze),O=Be([_0x3283e7(_0x32ab4c),F(0x1,_0x1a16ba(_0x3396c5)),F(0x2,_0x375812)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3b7b(_0x53c758,_0x37ab82){var _0x5b3c23=_0x5b3c();return _0x3b7b=function(_0x3b7bbd,_0x445afb){_0x3b7bbd=_0x3b7bbd-0x75;var _0x5e3c47=_0x5b3c23[_0x3b7bbd];return _0x5e3c47;},_0x3b7b(_0x53c758,_0x37ab82);}function _0x5b3c(){var _0x267fa4=['CollaborationSessionService','registerInitialStateReporter','takeUntil','NOT_FOLLOWING','requireSession','RxDisposable','_handleOffline','563978ktFsNF','BuiltInUIPart','DesktopLiveShareController','SAME_OPERATION_SHARE_INTERVAL','function','@univerjs/design','offline','HEADER_MENU','getInitialStates','idSuffix','3384715qPSwIa','extend','forEach','NEW_CHANGESETS','getMemberID','You\x27re\x20following\x20the\x20presenter','_handleOperation','CommandType','registerSharedOperation','object','PRESENTING','_handleNewHost','getCurrentTypeOfUnit$','UniverIcon','toDisposable','2zgpIKn','url(#$1','map','0\x200\x2017\x2017','getLiveShareCoordinator','SetZoomRatioOperation','6gcwIgm','_univerInstanceService','26856012JkrgIR','asObservable','disposeWithMe','_entities','_handleTerminate','delete','button','executeCommand','mask','Button','SetWorksheetActiveOperation','random','has','_sharedOperations','useDependency','next','useRef','Stop\x20following','getOwnPropertyDescriptor','_startLiveShareCoordinator','operators','_handleNewChangeSets','_status$','Module','UniverInstanceType','mutations','_injector','FOLLOWING','icon','UniverSheets','throttleTime','registerComponent','jsx','onCommandExecuted','_uiPartsService','useState','IUIPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','replace','SetScrollOperation','dispose','apply','_startPresenting','Present\x20this\x20document','displayName','195986jlfZno','ICommandService','defineProperty','_mountLiveShare','IConfigService','LiveShareIcon','status$','current','1em','registerDependencies','LiveShareCoordinator','IDLE','Stop\x20presenting','_configService','following','UniverProCollaborationClient','Start','live-share.config','univerjs-icon\x20univerjs-icon-','override','values','idle','getValue','SessionStatus','path','onStarting','from','@univerjs/sheets','OFFLINE','symbol','DisposableCollection','pluginName','_unitID','_reporters','xlink:href','getUnitId','UniverUi','useEffect','propertyIsEnumerable','You\x27are\x20offline.','UNIVER_SHEET','_liveShareService','LIVESHARE_OPERATION','complete','touchDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','pipe','startFollowing','toString','_fetchOperations','react','none','getTypeOfUnitDisposed$','UniverProCollaboration','forwardRef','80bnEMJM','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','data','mergeOverrideWithDependencies','presenting','type','unitId','stopFollowing','_collabSessionService','use','operations','text','LiveShareStatus','add','LIVESHARE_REQUEST_HOST','LIVESHARE_FETCH_OPERATIONS','_commandService','getOwnPropertySymbols','UniverCollaborationClientPlugin','InsertSheetMutation','@univerjs-pro/collaboration','createElement','prototype','unsubscribe','_config','Inject','length','1415331GEKyVu','stopPresenting','_status','LiveShare','tag','dispose$','React','@univerjs/core','params','sheet','_collabSession','live-share-icon','UniverDesign','50RyNVGN','_handleOnline','children','rxjs','Start\x20following','UniverProLiveShare','LiveShareController','set','end','jsxs','LIVESHARE_TERMINATE','clear','UniverLiveSharePlugin','send','includes','UNIVER_LIVE_SHARE_PLUGIN','824087hrxpBd','Plugin','colorChannel1','hasOwnProperty','You\x27re\x20presenting\x20the\x20document','@univerjs/ui','_beIdle','stringify','presenter','_stopPresenting','_startFollowing','http://www.w3.org/2000/svg','tryStartPresenting','_init','_presenter','DependentOn','attrs','_commandDisposable','rxjs/operators','shouldShareOperation','className','CollaborationEvent','Disposable','div','get','ONLINE','@univerjs/sheets-ui','_stopFollowing','subscribe','Subject','@univerjs-pro/collaboration-client','IUniverInstanceService','evenodd','not-following','connectInjector','Injector','event$','2769579nUwYXY','defIds','default','init','merge','assign','call','string','substring','setConfig','4mzEosu','concat','Fragment','You\x27re\x20not\x20following\x20the\x20presenter','entries','parseProtocolChangeset'];_0x5b3c=function(){return _0x267fa4;};return _0x5b3c();}(function(_0x431074,_0x360066){var _0x1aed12=_0x3b7b,_0x2662f8=_0x431074();while(!![]){try{var _0x2b5293=-parseInt(_0x1aed12(0xce))/0x1*(-parseInt(_0x1aed12(0xe7))/0x2)+parseInt(_0x1aed12(0x75))/0x3*(parseInt(_0x1aed12(0xc1))/0x4)+-parseInt(_0x1aed12(0xd8))/0x5*(-parseInt(_0x1aed12(0xed))/0x6)+parseInt(_0x1aed12(0x11c))/0x7*(parseInt(_0x1aed12(0x154))/0x8)+parseInt(_0x1aed12(0xb7))/0x9+-parseInt(_0x1aed12(0x82))/0xa*(-parseInt(_0x1aed12(0x92))/0xb)+-parseInt(_0x1aed12(0xef))/0xc;if(_0x2b5293===_0x360066)break;else _0x2662f8['push'](_0x2662f8['shift']());}catch(_0x1efe87){_0x2662f8['push'](_0x2662f8['shift']());}}}(_0x5b3c,0x6ab01),function(_0x221526,_0xa4b86b){var _0x3c308e=_0x3b7b;typeof exports==_0x3c308e(0xe1)&&typeof module<'u'?_0xa4b86b(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3c308e(0xd2)&&define['amd']?define(['exports',_0x3c308e(0x7c),_0x3c308e(0x97),'react/jsx-runtime',_0x3c308e(0xd3),_0x3c308e(0x14f),_0x3c308e(0x168),_0x3c308e(0xb0),_0x3c308e(0x137),_0x3c308e(0x85),_0x3c308e(0xa4),_0x3c308e(0xac)],_0xa4b86b):(_0x221526=typeof globalThis<'u'?globalThis:_0x221526||self,_0xa4b86b(_0x221526[_0x3c308e(0x87)]={},_0x221526['UniverCore'],_0x221526[_0x3c308e(0x140)],_0x221526[_0x3c308e(0x7b)],_0x221526[_0x3c308e(0x81)],_0x221526[_0x3c308e(0x7b)],_0x221526[_0x3c308e(0x152)],_0x221526[_0x3c308e(0x12b)],_0x221526[_0x3c308e(0x10c)],_0x221526[_0x3c308e(0x85)],_0x221526['rxjs'][_0x3c308e(0x103)],_0x221526['UniverSheetsUi']));}(this,function(_0x2f1323,_0x3d67cc,_0x4ddf63,_0x39d1df,_0x67a8da,_0x3ea407,_0x17ed65,_0x326eac,_0x4b74db,_0x2e8630,_0x520722,_0x3be5b0){'use strict';var _0x120ec6=_0x3b7b;var _0x5bd5de=Object[_0x120ec6(0x11e)],_0x2a19d4=(_0x2a5548,_0x681783,_0x28d3e4)=>_0x681783 in _0x2a5548?_0x5bd5de(_0x2a5548,_0x681783,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28d3e4}):_0x2a5548[_0x681783]=_0x28d3e4,_0x4410d2=(_0x25799e,_0x5c83a4,_0x10e63b)=>_0x2a19d4(_0x25799e,typeof _0x5c83a4!=_0x120ec6(0x139)?_0x5c83a4+'':_0x5c83a4,_0x10e63b),_0x33addf=function(){var _0x325acd=_0x120ec6;return _0x33addf=Object[_0x325acd(0xbc)]||function(_0x97c5e3){var _0x4a5615=_0x325acd;for(var _0x16ea5e,_0x2ddbe8=0x1,_0x27e4cd=arguments[_0x4a5615(0x16e)];_0x2ddbe8<_0x27e4cd;_0x2ddbe8++){_0x16ea5e=arguments[_0x2ddbe8];for(var _0x58e341 in _0x16ea5e)Object['prototype'][_0x4a5615(0x95)][_0x4a5615(0xbd)](_0x16ea5e,_0x58e341)&&(_0x97c5e3[_0x58e341]=_0x16ea5e[_0x58e341]);}return _0x97c5e3;},_0x33addf[_0x325acd(0x118)](this,arguments);},_0x35abb2=function(_0x1b0d09,_0x4ac8b9){var _0x56abe2=_0x120ec6,_0x34c33a={};for(var _0xa9f034 in _0x1b0d09)Object[_0x56abe2(0x16a)][_0x56abe2(0x95)]['call'](_0x1b0d09,_0xa9f034)&&_0x4ac8b9['indexOf'](_0xa9f034)<0x0&&(_0x34c33a[_0xa9f034]=_0x1b0d09[_0xa9f034]);if(_0x1b0d09!=null&&typeof Object[_0x56abe2(0x165)]=='function'){for(var _0x580195=0x0,_0xa9f034=Object[_0x56abe2(0x165)](_0x1b0d09);_0x580195<_0xa9f034[_0x56abe2(0x16e)];_0x580195++)_0x4ac8b9['indexOf'](_0xa9f034[_0x580195])<0x0&&Object[_0x56abe2(0x16a)][_0x56abe2(0x142)][_0x56abe2(0xbd)](_0x1b0d09,_0xa9f034[_0x580195])&&(_0x34c33a[_0xa9f034[_0x580195]]=_0x1b0d09[_0xa9f034[_0x580195]]);}return _0x34c33a;},_0x2b6e38=_0x3ea407['forwardRef'](function(_0x21524e,_0x63d77){var _0x1328ee=_0x120ec6,_0x34951c=_0x21524e['icon'],_0xdd2e67=_0x21524e['id'],_0x5bd527=_0x21524e[_0x1328ee(0xa6)],_0x4a7490=_0x21524e[_0x1328ee(0xd9)],_0x5484b8=_0x35abb2(_0x21524e,[_0x1328ee(0x10b),'id',_0x1328ee(0xa6),_0x1328ee(0xd9)]),_0x35ebda=_0x1328ee(0x12e)[_0x1328ee(0xc2)](_0xdd2e67,'\x20')[_0x1328ee(0xc2)](_0x5bd527||'')['trim'](),_0x359f9b=_0x3ea407['useRef']('_'['concat'](_0x212744()));return _0x5afaf4(_0x34951c,''[_0x1328ee(0xc2)](_0xdd2e67),{'defIds':_0x34951c[_0x1328ee(0xb8)],'idSuffix':_0x359f9b[_0x1328ee(0x123)]},_0x33addf({'ref':_0x63d77,'className':_0x35ebda},_0x5484b8),_0x4a7490);});function _0x5afaf4(_0x1a9a11,_0x7fa884,_0x5ba1ee,_0x2fcd52,_0x54f0e0){var _0x263d5f=_0x120ec6;return _0x3ea407['createElement'](_0x1a9a11['tag'],_0x33addf(_0x33addf({'key':_0x7fa884},_0x38fe84(_0x1a9a11,_0x5ba1ee,_0x54f0e0)),_0x2fcd52),(_0xcf6f25(_0x1a9a11,_0x5ba1ee)[_0x263d5f(0x84)]||[])[_0x263d5f(0xe9)](function(_0x5c2328,_0x484de3){var _0x383948=_0x263d5f;return _0x5afaf4(_0x5c2328,''[_0x383948(0xc2)](_0x7fa884,'-')[_0x383948(0xc2)](_0x1a9a11[_0x383948(0x79)],'-')[_0x383948(0xc2)](_0x484de3),_0x5ba1ee,void 0x0,_0x54f0e0);}));}function _0x38fe84(_0x30d803,_0x41fd3e,_0x4b308d){var _0x51c1dc=_0x120ec6,_0x56a120=_0x33addf({},_0x30d803[_0x51c1dc(0xa2)]);_0x4b308d!=null&&_0x4b308d[_0x51c1dc(0x94)]&&_0x56a120['fill']===_0x51c1dc(0x94)&&(_0x56a120['fill']=_0x4b308d[_0x51c1dc(0x94)]),_0x30d803[_0x51c1dc(0x79)]==='mask'&&_0x56a120['id']&&(_0x56a120['id']=_0x56a120['id']+_0x41fd3e['idSuffix']),Object[_0x51c1dc(0xc5)](_0x56a120)[_0x51c1dc(0xda)](function(_0x55c635){var _0x302312=_0x51c1dc,_0x4aac00=_0x55c635[0x0],_0x2f150c=_0x55c635[0x1];_0x4aac00===_0x302312(0xf7)&&typeof _0x2f150c==_0x302312(0xbe)&&(_0x56a120[_0x4aac00]=_0x2f150c['replace'](/url\(#(.*)\)/,'url(#$1'[_0x302312(0xc2)](_0x41fd3e[_0x302312(0xd7)],')')));});var _0x313889=_0x41fd3e[_0x51c1dc(0xb8)];return!_0x313889||_0x313889[_0x51c1dc(0x16e)]===0x0||(_0x30d803[_0x51c1dc(0x79)]===_0x51c1dc(0x15d)&&_0x56a120[_0x51c1dc(0x13e)]&&(_0x56a120['xlink:href']=_0x56a120[_0x51c1dc(0x13e)]+_0x41fd3e[_0x51c1dc(0xd7)]),Object[_0x51c1dc(0xc5)](_0x56a120)[_0x51c1dc(0xda)](function(_0x3d8af3){var _0x87f776=_0x51c1dc,_0xdbed71=_0x3d8af3[0x0],_0x5d067e=_0x3d8af3[0x1];typeof _0x5d067e=='string'&&(_0x56a120[_0xdbed71]=_0x5d067e[_0x87f776(0x115)](/url\(#(.*)\)/,_0x87f776(0xe8)[_0x87f776(0xc2)](_0x41fd3e[_0x87f776(0xd7)],')')));})),_0x56a120;}function _0xcf6f25(_0x309480,_0x32d75c){var _0x507996=_0x120ec6,_0x327a16,_0x7672a5=_0x32d75c[_0x507996(0xb8)];return!_0x7672a5||_0x7672a5[_0x507996(0x16e)]===0x0?_0x309480:_0x309480[_0x507996(0x79)]==='defs'&&(!((_0x327a16=_0x309480[_0x507996(0x84)])===null||_0x327a16===void 0x0)&&_0x327a16[_0x507996(0x16e)])?_0x33addf(_0x33addf({},_0x309480),{'children':_0x309480['children']['map'](function(_0x40e3b5){var _0x723cb2=_0x507996;return typeof _0x40e3b5[_0x723cb2(0xa2)]['id']==_0x723cb2(0xbe)&&_0x7672a5&&_0x7672a5[_0x723cb2(0x90)](_0x40e3b5['attrs']['id'])?_0x33addf(_0x33addf({},_0x40e3b5),{'attrs':_0x33addf(_0x33addf({},_0x40e3b5['attrs']),{'id':_0x40e3b5[_0x723cb2(0xa2)]['id']+_0x32d75c[_0x723cb2(0xd7)]})}):_0x40e3b5;})}):_0x309480;}function _0x212744(){var _0x47dd54=_0x120ec6;return Math[_0x47dd54(0xfa)]()[_0x47dd54(0x14d)](0x24)[_0x47dd54(0xbf)](0x2,0x8);}_0x2b6e38[_0x120ec6(0x11b)]=_0x120ec6(0xe5);var _0x2c9708={'tag':'svg','attrs':{'xmlns':_0x120ec6(0x9d),'fill':_0x120ec6(0x150),'viewBox':_0x120ec6(0xea),'width':_0x120ec6(0x124),'height':_0x120ec6(0x124)},'children':[{'tag':_0x120ec6(0x134),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x120ec6(0x134),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x120ec6(0xb2),'clipRule':'evenodd'}}]},_0x5c17a1=_0x3ea407[_0x120ec6(0x153)](function(_0x18e7a4,_0x1aea77){var _0x31d66b=_0x120ec6;return _0x3ea407[_0x31d66b(0x169)](_0x2b6e38,Object['assign']({},_0x18e7a4,{'id':_0x31d66b(0x80),'ref':_0x1aea77,'icon':_0x2c9708}));});_0x5c17a1['displayName']=_0x120ec6(0x121);class _0x4bdc69 extends _0x3d67cc['Disposable']{constructor(){var _0x43832b=_0x120ec6;super(...arguments),_0x4410d2(this,_0x43832b(0xfc),new Set()),_0x4410d2(this,_0x43832b(0x13d),new Set());}[_0x120ec6(0xe0)](_0x1112d4){var _0x3ccdf2=_0x120ec6;return this[_0x3ccdf2(0xfc)][_0x3ccdf2(0x161)](_0x1112d4),_0x3d67cc[_0x3ccdf2(0xe6)](()=>this[_0x3ccdf2(0xfc)][_0x3ccdf2(0xf4)](_0x1112d4));}[_0x120ec6(0xc8)](_0x4dc94e){var _0x42c260=_0x120ec6;return this['_reporters'][_0x42c260(0x161)](_0x4dc94e),_0x3d67cc[_0x42c260(0xe6)](()=>this[_0x42c260(0x13d)][_0x42c260(0xf4)](_0x4dc94e));}[_0x120ec6(0xa5)](_0x57d1d1){var _0x3e32b8=_0x120ec6;return this['_sharedOperations'][_0x3e32b8(0xfb)](_0x57d1d1);}[_0x120ec6(0xd6)](_0x14c824){var _0x4a866a=_0x120ec6;return Array[_0x4a866a(0x136)](this[_0x4a866a(0x13d)])['map'](_0x4cedb1=>_0x4cedb1(_0x14c824));}}var _0x2815d1=Object[_0x120ec6(0x101)],_0x1a8a83=(_0x5131d3,_0x125d0b,_0x44fc68,_0xbf6314)=>{var _0x65a218=_0x120ec6;for(var _0x37258c=_0xbf6314>0x1?void 0x0:_0xbf6314?_0x2815d1(_0x125d0b,_0x44fc68):_0x125d0b,_0x839833=_0x5131d3[_0x65a218(0x16e)]-0x1,_0x5bccde;_0x839833>=0x0;_0x839833--)(_0x5bccde=_0x5131d3[_0x839833])&&(_0x37258c=_0x5bccde(_0x37258c)||_0x37258c);return _0x37258c;},_0x5e1306=(_0x54ffee,_0xfd27e1)=>(_0x4fdb2c,_0x5f0365)=>_0xfd27e1(_0x4fdb2c,_0x5f0365,_0x54ffee);_0x2f1323[_0x120ec6(0x88)]=class extends _0x3d67cc['RxDisposable']{constructor(_0x2a9fbb,_0x30c810,_0x177ba3){var _0x54c643=_0x120ec6;super(),_0x4410d2(this,_0x54c643(0xf2),new Map()),(this[_0x54c643(0xee)]=_0x2a9fbb,this[_0x54c643(0x109)]=_0x30c810,this[_0x54c643(0x15c)]=_0x177ba3,this[_0x54c643(0x9f)]());}async['getLiveShareCoordinator'](_0x2d3403){var _0x39bf07=_0x120ec6;return this['_entities'][_0x39bf07(0xfb)](_0x2d3403)||await this['_startLiveShareCoordinator'](_0x2d3403),this['_entities'][_0x39bf07(0xaa)](_0x2d3403);}[_0x120ec6(0x9f)](){var _0x4152a8=_0x120ec6;this[_0x4152a8(0xee)]['getTypeOfUnitAdded$'](_0x3d67cc[_0x4152a8(0x107)][_0x4152a8(0x144)])[_0x4152a8(0x14b)](_0x520722[_0x4152a8(0xc9)](this[_0x4152a8(0x7a)]))[_0x4152a8(0xae)](async _0x398563=>{var _0x28c9fd=_0x4152a8;const _0x21c9a0=_0x398563[_0x28c9fd(0x13f)]();this[_0x28c9fd(0xf2)][_0x28c9fd(0xfb)](_0x21c9a0)||this[_0x28c9fd(0x102)](_0x21c9a0);}),this[_0x4152a8(0xee)][_0x4152a8(0x151)](_0x3d67cc[_0x4152a8(0x107)][_0x4152a8(0x144)])[_0x4152a8(0x14b)](_0x520722[_0x4152a8(0xc9)](this[_0x4152a8(0x7a)]))[_0x4152a8(0xae)](_0xa2f3ad=>{var _0x375c84=_0x4152a8;const _0x2faeca=_0xa2f3ad[_0x375c84(0x13f)](),_0x501cf6=this[_0x375c84(0xf2)][_0x375c84(0xaa)](_0x2faeca);_0x501cf6==null||_0x501cf6[_0x375c84(0x117)]();});}async[_0x120ec6(0x102)](_0x3e4b2b){var _0x1af4ff=_0x120ec6;const _0xae9644=await this['_collabSessionService'][_0x1af4ff(0xcb)](_0x3e4b2b),_0x4deaf7=this['_injector']['createInstance'](_0x2f1323[_0x1af4ff(0x126)],_0x3e4b2b,_0xae9644);return _0x4deaf7[_0x1af4ff(0xba)](),this['_entities'][_0x1af4ff(0x89)](_0x3e4b2b,_0x4deaf7),_0x4deaf7;}},_0x2f1323[_0x120ec6(0x88)]=_0x1a8a83([_0x5e1306(0x0,_0x3d67cc[_0x120ec6(0xb1)]),_0x5e1306(0x1,_0x3d67cc[_0x120ec6(0x16d)](_0x3d67cc[_0x120ec6(0xb5)])),_0x5e1306(0x2,_0x3d67cc[_0x120ec6(0x16d)](_0x326eac[_0x120ec6(0xc7)]))],_0x2f1323[_0x120ec6(0x88)]);var _0x22b87c=(_0x473e24=>(_0x473e24['OFFLINE']=_0x120ec6(0xd4),_0x473e24[_0x120ec6(0x127)]=_0x120ec6(0x131),_0x473e24[_0x120ec6(0x10a)]=_0x120ec6(0x12a),_0x473e24[_0x120ec6(0xca)]='not-following',_0x473e24[_0x120ec6(0xe2)]='presenting',_0x473e24))(_0x22b87c||{});const _0x187245=_0x120ec6(0xd1),_0x24d2bc=0xc8;_0x2f1323['LiveShareCoordinator']=class extends _0x3d67cc[_0x120ec6(0xcc)]{constructor(_0x3230b6,_0x30e4f6,_0x5b4b00,_0x4a0f99,_0x3b06b5){var _0x34b728=_0x120ec6;super(),_0x4410d2(this,_0x34b728(0x105),new _0x2e8630['BehaviorSubject'](_0x34b728(0x131))),_0x4410d2(this,'status$',this[_0x34b728(0x105)][_0x34b728(0xf0)]()),_0x4410d2(this,_0x34b728(0x9f),!0x1),_0x4410d2(this,_0x34b728(0xa3),null),_0x4410d2(this,'_presenter',null),(this[_0x34b728(0x13c)]=_0x3230b6,this['_collabSession']=_0x30e4f6,this['_configService']=_0x5b4b00,this[_0x34b728(0x145)]=_0x4a0f99,this[_0x34b728(0x164)]=_0x3b06b5);}get[_0x120ec6(0x77)](){var _0x65de82=_0x120ec6;return this[_0x65de82(0x105)][_0x65de82(0x132)]();}[_0x120ec6(0x117)](){var _0x4412ec=_0x120ec6,_0x3e70ea;(_0x3e70ea=this[_0x4412ec(0xa3)])==null||_0x3e70ea[_0x4412ec(0x117)](),this[_0x4412ec(0x105)]['next'](_0x4412ec(0x131)),this[_0x4412ec(0x105)][_0x4412ec(0x147)]();}[_0x120ec6(0xba)](){var _0xd12bbd=_0x120ec6;this[_0xd12bbd(0x9f)]||(this[_0xd12bbd(0x9f)]=!0x0,this[_0xd12bbd(0x7f)]['sessionStatus$'][_0xd12bbd(0x14b)](_0x520722['takeUntil'](this['dispose$']))['subscribe'](_0x5f4217=>{var _0x5024aa=_0xd12bbd;switch(_0x5f4217){case _0x326eac[_0x5024aa(0x133)][_0x5024aa(0x138)]:this[_0x5024aa(0xcd)]();break;case _0x326eac[_0x5024aa(0x133)][_0x5024aa(0xab)]:this[_0x5024aa(0x83)]();break;}}),this['_collabSession'][_0xd12bbd(0xb6)][_0xd12bbd(0x14b)](_0x520722[_0xd12bbd(0xc9)](this['dispose$']))[_0xd12bbd(0xae)](_0xf8b017=>{var _0x8a0106=_0xd12bbd;const {eventID:_0x552026}=_0xf8b017;switch(_0x552026){case _0x17ed65[_0x8a0106(0xa7)]['LIVESHARE_NEW_HOST']:this[_0x8a0106(0xe3)](_0xf8b017);break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0x146)]:this['_handleOperation'](_0xf8b017);break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0x8c)]:this[_0x8a0106(0xf3)]();break;case _0x17ed65[_0x8a0106(0xa7)][_0x8a0106(0xdb)]:this[_0x8a0106(0x104)](_0xf8b017);break;}}));}[_0x120ec6(0x9e)](){var _0x1fa104=_0x120ec6;this[_0x1fa104(0x7f)][_0x1fa104(0x8f)]({'eventID':_0x17ed65['CollaborationEvent'][_0x1fa104(0x162)],'data':{'unitID':this[_0x1fa104(0x13c)],'userID':this[_0x1fa104(0x7f)][_0x1fa104(0xdc)]()}},this[_0x1fa104(0x13c)]);}['stopPresenting'](){var _0x3a8b46=_0x120ec6;this['_status']==='presenting'&&(this['_status$'][_0x3a8b46(0xfe)](_0x3a8b46(0x131)),this['_collabSession'][_0x3a8b46(0x8f)]({'eventID':_0x17ed65[_0x3a8b46(0xa7)][_0x3a8b46(0x8c)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x120ec6(0x14c)](){var _0x358aa0=_0x120ec6;this[_0x358aa0(0x77)]==='not-following'&&(this[_0x358aa0(0x105)][_0x358aa0(0xfe)]('following'),this[_0x358aa0(0x9c)]());}[_0x120ec6(0x15b)](){var _0x317768=_0x120ec6;this[_0x317768(0x77)]==='following'&&this['_stopFollowing']();}[_0x120ec6(0xe3)](_0x174437){var _0x44a81a=_0x120ec6;const {presenter:_0x28ce49}=_0x174437[_0x44a81a(0x156)],_0x323d4d=this[_0x44a81a(0x7f)]['getMemberID']();this[_0x44a81a(0xa0)]=_0x28ce49,_0x28ce49===_0x323d4d?(this[_0x44a81a(0xad)](),this[_0x44a81a(0x119)]()):this[_0x44a81a(0x77)]!=='not-following'&&(this[_0x44a81a(0x9b)](),this[_0x44a81a(0x9c)]());}[_0x120ec6(0x14e)](){var _0x24bfea=_0x120ec6;const _0x386bed={'eventID':_0x17ed65[_0x24bfea(0xa7)][_0x24bfea(0x163)]};this['_collabSession'][_0x24bfea(0x8f)](_0x386bed,this[_0x24bfea(0x13c)]);}[_0x120ec6(0xf3)](){var _0x22e7e3=_0x120ec6;this[_0x22e7e3(0xa0)]=null,this[_0x22e7e3(0x77)]!==_0x22e7e3(0x158)&&this[_0x22e7e3(0x98)]();}[_0x120ec6(0x104)](_0x552daf){var _0x40fabf=_0x120ec6;if(this[_0x40fabf(0x77)]==='following'&&this['_presenter']===_0x552daf[_0x40fabf(0x156)]['memberID']){const _0x994467=_0x17ed65[_0x40fabf(0xc6)](_0x552daf[_0x40fabf(0x156)])[_0x40fabf(0x108)]['reverse']()['find'](_0x128025=>_0x128025['id']===_0x4b74db[_0x40fabf(0x167)]['id']);if(_0x994467){const _0x3375e8=_0x994467[_0x40fabf(0x7d)][_0x40fabf(0x15a)],_0xa6b777=_0x994467[_0x40fabf(0x7d)][_0x40fabf(0x7e)]['id'];setTimeout(()=>{var _0x1f23d3=_0x40fabf;this[_0x1f23d3(0x164)][_0x1f23d3(0xf6)](_0x4b74db[_0x1f23d3(0xf9)]['id'],{'unitId':_0x3375e8,'subUnitId':_0xa6b777},{'fromCollab':!0x0});});}}}[_0x120ec6(0x119)](){var _0x5c79ad=_0x120ec6;this['_status$']['next'](_0x5c79ad(0x158));const _0x586383=new Map(),_0x1baa34=this[_0x5c79ad(0xa3)]=new _0x3d67cc[(_0x5c79ad(0x13a))]();_0x1baa34[_0x5c79ad(0x161)](_0x3d67cc[_0x5c79ad(0xe6)](()=>{var _0x440f7a=_0x5c79ad;_0x586383['forEach'](_0x448754=>_0x448754['complete']()),_0x586383[_0x440f7a(0x8d)]();})),_0x1baa34['add'](this['_commandService'][_0x5c79ad(0x110)](_0x1a2cf7=>{var _0x22ac31=_0x5c79ad,_0xa1e4a7;if(_0x1a2cf7[_0x22ac31(0x159)]!==_0x3d67cc[_0x22ac31(0xdf)]['OPERATION']||!this['_liveShareService'][_0x22ac31(0xa5)](_0x1a2cf7['id']))return;const {id:_0x2c1597}=_0x1a2cf7;let _0x8ad563;_0x586383[_0x22ac31(0xfb)](_0x2c1597)?_0x8ad563=_0x586383[_0x22ac31(0xaa)](_0x2c1597):(_0x8ad563=new _0x2e8630[(_0x22ac31(0xaf))](),_0x586383[_0x22ac31(0x89)](_0x2c1597,_0x8ad563),_0x8ad563[_0x22ac31(0x14b)](_0x520722[_0x22ac31(0x10d)]((_0xa1e4a7=this[_0x22ac31(0x129)]['getConfig'](_0x187245))!=null?_0xa1e4a7:_0x24d2bc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22ac31(0xae)](_0x3e8ca8=>{var _0x55d824=_0x22ac31;this[_0x55d824(0x7f)][_0x55d824(0x8f)]({'eventID':_0x17ed65[_0x55d824(0xa7)][_0x55d824(0x146)],'data':{'unitID':this[_0x55d824(0x13c)],'operations':{[_0x3e8ca8['id']]:{'id':_0x3e8ca8['id'],'params':JSON[_0x55d824(0x99)](_0x3e8ca8[_0x55d824(0x7d)])}}}},this[_0x55d824(0x13c)]);})),_0x8ad563[_0x22ac31(0xfe)](_0x1a2cf7);})),this[_0x5c79ad(0x145)][_0x5c79ad(0xd6)](this['_unitID'])[_0x5c79ad(0xda)](_0x57c5a8=>this[_0x5c79ad(0x7f)]['send']({'eventID':_0x17ed65['CollaborationEvent'][_0x5c79ad(0x146)],'data':{'unitID':this[_0x5c79ad(0x13c)],'operations':{[_0x57c5a8['id']]:{'id':_0x57c5a8['id'],'params':JSON['stringify'](_0x57c5a8['params'])}}}},this['_unitID']));}[_0x120ec6(0x9b)](){var _0x5ea3e4=_0x120ec6,_0x3610d9;this['_status$'][_0x5ea3e4(0xfe)](_0x5ea3e4(0x131)),(_0x3610d9=this[_0x5ea3e4(0xa3)])==null||_0x3610d9[_0x5ea3e4(0x117)](),this['_commandDisposable']=null;}[_0x120ec6(0x9c)](){var _0x544123=_0x120ec6,_0x34d301;(_0x34d301=this[_0x544123(0xa3)])==null||_0x34d301['dispose'](),this['_status$']['next']('following');}[_0x120ec6(0x98)](){var _0x471df2=_0x120ec6,_0x3af33b;this['_status$'][_0x471df2(0xfe)](_0x471df2(0x131)),(_0x3af33b=this[_0x471df2(0xa3)])==null||_0x3af33b[_0x471df2(0x117)](),this[_0x471df2(0xa3)]=null;}[_0x120ec6(0xad)](){var _0x43f136=_0x120ec6,_0x3d9c28;this[_0x43f136(0x105)]['next'](_0x43f136(0xb3)),(_0x3d9c28=this[_0x43f136(0xa3)])==null||_0x3d9c28[_0x43f136(0x117)]();}[_0x120ec6(0xde)](_0x4875ef){var _0x5eecca=_0x120ec6;if([_0x5eecca(0x158),_0x5eecca(0xb3),_0x5eecca(0xd4)]['includes'](this[_0x5eecca(0x77)])||!_0x4875ef[_0x5eecca(0x156)][_0x5eecca(0x9a)]||_0x4875ef[_0x5eecca(0x156)][_0x5eecca(0x9a)]===this[_0x5eecca(0x7f)][_0x5eecca(0xdc)]())return;this['_status']===_0x5eecca(0x131)&&this[_0x5eecca(0x9c)]();const _0x3df6a8=_0x4875ef['data'][_0x5eecca(0x15e)];Object[_0x5eecca(0x130)](_0x3df6a8)['forEach'](_0x3020bc=>{var _0x530881=_0x5eecca;this[_0x530881(0x164)]['executeCommand'](_0x3020bc['id'],_0x3020bc[_0x530881(0x7d)]?JSON['parse'](_0x3020bc[_0x530881(0x7d)]):null,{'fromCollab':!0x0});});}[_0x120ec6(0xcd)](){var _0x3f7f98=_0x120ec6,_0x3bdfa8;this[_0x3f7f98(0x105)]['next'](_0x3f7f98(0xd4)),(_0x3bdfa8=this['_commandDisposable'])==null||_0x3bdfa8[_0x3f7f98(0x117)]();}[_0x120ec6(0x83)](){var _0x17c4be=_0x120ec6;this[_0x17c4be(0x105)][_0x17c4be(0xfe)](_0x17c4be(0x131)),this['_fetchOperations']();}},_0x2f1323['LiveShareCoordinator']=_0x1a8a83([_0x5e1306(0x2,_0x3d67cc[_0x120ec6(0x120)]),_0x5e1306(0x3,_0x3d67cc[_0x120ec6(0x16d)](_0x4bdc69)),_0x5e1306(0x4,_0x3d67cc[_0x120ec6(0x11d)])],_0x2f1323[_0x120ec6(0x126)]);function _0x13bed3(){var _0x16d615=_0x120ec6;const _0x33fa8d=_0x4ddf63[_0x16d615(0xfd)](_0x2f1323['LiveShareController']),_0x1bc066=_0x4ddf63[_0x16d615(0xfd)](_0x3d67cc['IUniverInstanceService']),_0x299cab=_0x4ddf63['useObservable'](()=>_0x1bc066[_0x16d615(0xe4)](_0x3d67cc[_0x16d615(0x107)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x302134,_0x260946]=_0x3ea407[_0x16d615(0x112)](null),[_0x18af28,_0x10c83e]=_0x3ea407[_0x16d615(0x112)](_0x22b87c[_0x16d615(0x127)]),_0x57e052=_0x3ea407[_0x16d615(0xff)](null);return _0x3ea407[_0x16d615(0x141)](()=>(_0x299cab&&_0x33fa8d[_0x16d615(0xeb)](_0x299cab[_0x16d615(0x13f)]())['then'](_0x948a29=>{var _0x12aa62=_0x16d615;_0x260946(_0x948a29),_0x57e052[_0x12aa62(0x123)]=_0x948a29[_0x12aa62(0x122)][_0x12aa62(0xae)](_0x71cd9c=>{_0x10c83e(_0x71cd9c);});}),()=>{var _0x1b68ce=_0x16d615,_0x590078;(_0x590078=_0x57e052[_0x1b68ce(0x123)])==null||_0x590078[_0x1b68ce(0x16b)](),_0x57e052[_0x1b68ce(0x123)]=null;}),[_0x299cab,_0x33fa8d]),_0x302134?_0x39d1df[_0x16d615(0x10f)](_0x67a8da['Dropdown'],{'align':_0x16d615(0x8a),'disabled':_0x18af28===_0x22b87c[_0x16d615(0x138)],'className':_0x16d615(0x155),'overlay':_0x39d1df[_0x16d615(0x10f)](_0x1f6ea7,{'status':_0x18af28,'coordinator':_0x302134}),'children':_0x39d1df[_0x16d615(0x10f)](_0x16d615(0xf5),{'className':_0x67a8da['clsx'](_0x16d615(0x149),{'univer-cursor-not-allowed':_0x18af28===_0x22b87c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18af28!==_0x22b87c[_0x16d615(0x138)]}),'type':_0x16d615(0xf5),'children':_0x39d1df[_0x16d615(0x10f)](_0x5c17a1,{'className':'univer-size-4'})})}):null;}function _0x1f6ea7(_0x214902){var _0x19646d=_0x120ec6;const {status:_0x879bbd,coordinator:_0x14b866}=_0x214902;switch(_0x879bbd){case _0x22b87c[_0x19646d(0x127)]:return _0x39d1df[_0x19646d(0x10f)](_0x5099ce,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0x10a)]:return _0x39d1df[_0x19646d(0x10f)](_0x19e522,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0xca)]:return _0x39d1df[_0x19646d(0x10f)](_0xdcf63,{'coordinator':_0x14b866});case _0x22b87c[_0x19646d(0x138)]:return _0x39d1df['jsx'](_0x3ada5f,{});case _0x22b87c[_0x19646d(0xe2)]:return _0x39d1df['jsx'](_0x103ebd,{'coordinator':_0x14b866});default:return null;}}function _0x5099ce(_0x113a17){var _0x55a1ec=_0x120ec6;const {coordinator:_0x4253dc}=_0x113a17;return _0x39d1df[_0x55a1ec(0x8b)](_0x39d1df[_0x55a1ec(0xc3)],{'children':[_0x39d1df[_0x55a1ec(0x10f)](_0x55a1ec(0xa9),{'className':_0x55a1ec(0x114),'children':_0x55a1ec(0x11a)}),_0x39d1df[_0x55a1ec(0x10f)](_0x67a8da[_0x55a1ec(0xf8)],{'onClick':()=>_0x4253dc[_0x55a1ec(0x9e)](),'children':_0x55a1ec(0x12c)})]});}function _0x19e522(_0x4f856e){var _0x19b142=_0x120ec6;const {coordinator:_0x333f5b}=_0x4f856e;return _0x39d1df[_0x19b142(0x8b)](_0x39d1df[_0x19b142(0xc3)],{'children':[_0x39d1df[_0x19b142(0x10f)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x19b142(0xdd)}),_0x39d1df[_0x19b142(0x10f)](_0x67a8da[_0x19b142(0xf8)],{'onClick':()=>_0x333f5b['stopFollowing'](),'children':_0x19b142(0x100)})]});}function _0xdcf63(_0x2f1814){var _0x23b8e4=_0x120ec6;const {coordinator:_0x1c2743}=_0x2f1814;return _0x39d1df['jsxs'](_0x39d1df['Fragment'],{'children':[_0x39d1df[_0x23b8e4(0x10f)](_0x23b8e4(0xa9),{'className':_0x23b8e4(0x114),'children':_0x23b8e4(0xc4)}),_0x39d1df[_0x23b8e4(0x10f)](_0x67a8da[_0x23b8e4(0xf8)],{'variant':_0x23b8e4(0x15f),'onClick':()=>_0x1c2743[_0x23b8e4(0x14c)](),'children':_0x23b8e4(0x86)})]});}function _0x103ebd(_0x5b4c04){var _0x2b4ddf=_0x120ec6;const {coordinator:_0x2c2c37}=_0x5b4c04;return _0x39d1df[_0x2b4ddf(0x8b)](_0x39d1df[_0x2b4ddf(0xc3)],{'children':[_0x39d1df[_0x2b4ddf(0x10f)](_0x2b4ddf(0xa9),{'className':_0x2b4ddf(0x114),'children':_0x2b4ddf(0x96)}),_0x39d1df[_0x2b4ddf(0x10f)](_0x67a8da['Button'],{'variant':_0x2b4ddf(0xb9),'onClick':()=>_0x2c2c37[_0x2b4ddf(0x76)](),'children':_0x2b4ddf(0x128)})]});}function _0x3ada5f(){var _0x5ac1a4=_0x120ec6;return _0x39d1df[_0x5ac1a4(0x10f)](_0x39d1df[_0x5ac1a4(0xc3)],{'children':_0x5ac1a4(0x143)});}var _0x17607f=Object[_0x120ec6(0x101)],_0x2cf8fa=(_0x1bd9aa,_0x1df652,_0x252e7b,_0x4dbefb)=>{var _0x55ca90=_0x120ec6;for(var _0x1bd25f=_0x4dbefb>0x1?void 0x0:_0x4dbefb?_0x17607f(_0x1df652,_0x252e7b):_0x1df652,_0x1cc609=_0x1bd9aa[_0x55ca90(0x16e)]-0x1,_0x4ec05c;_0x1cc609>=0x0;_0x1cc609--)(_0x4ec05c=_0x1bd9aa[_0x1cc609])&&(_0x1bd25f=_0x4ec05c(_0x1bd25f)||_0x1bd25f);return _0x1bd25f;},_0x261ed3=(_0x3595ae,_0xd87439)=>(_0x394af5,_0x4fe628)=>_0xd87439(_0x394af5,_0x4fe628,_0x3595ae);_0x2f1323[_0x120ec6(0xd0)]=class extends _0x3d67cc['Disposable']{constructor(_0xc22425,_0x47c535){var _0x258dff=_0x120ec6;super(),this[_0x258dff(0x109)]=_0xc22425,this[_0x258dff(0x111)]=_0x47c535,this[_0x258dff(0x11f)]();}['_mountLiveShare'](){var _0x80b714=_0x120ec6;this['disposeWithMe'](this[_0x80b714(0x111)][_0x80b714(0x10e)](_0x4ddf63[_0x80b714(0xcf)][_0x80b714(0xd5)],()=>_0x4ddf63[_0x80b714(0xb4)](_0x13bed3,this[_0x80b714(0x109)])));}},_0x2f1323['DesktopLiveShareController']=_0x2cf8fa([_0x261ed3(0x0,_0x3d67cc[_0x120ec6(0x16d)](_0x3d67cc[_0x120ec6(0xb5)])),_0x261ed3(0x1,_0x4ddf63[_0x120ec6(0x113)])],_0x2f1323['DesktopLiveShareController']);const _0x585056=_0x120ec6(0x12d),_0x20f451={};var _0x490769=Object[_0x120ec6(0x101)],_0x4bb369=(_0x52ef8b,_0x2f2b67,_0x11cf0e,_0x446572)=>{var _0x136736=_0x120ec6;for(var _0x52ad86=_0x446572>0x1?void 0x0:_0x446572?_0x490769(_0x2f2b67,_0x11cf0e):_0x2f2b67,_0xe566b9=_0x52ef8b[_0x136736(0x16e)]-0x1,_0x525a6f;_0xe566b9>=0x0;_0xe566b9--)(_0x525a6f=_0x52ef8b[_0xe566b9])&&(_0x52ad86=_0x525a6f(_0x52ad86)||_0x52ad86);return _0x52ad86;},_0x4c8cf6=(_0x45c99b,_0x1270ba)=>(_0x572d30,_0x6121eb)=>_0x1270ba(_0x572d30,_0x6121eb,_0x45c99b);let _0x214880=class extends _0x3d67cc[_0x120ec6(0xa8)]{constructor(_0x5df79d){var _0x4123f3=_0x120ec6;super(),this['_liveShareService']=_0x5df79d,this[_0x4123f3(0x9f)]();}['_init'](){var _0x5f8f2b=_0x120ec6;[_0x3be5b0[_0x5f8f2b(0xec)]['id'],_0x3be5b0[_0x5f8f2b(0x116)]['id'],_0x4b74db[_0x5f8f2b(0xf9)]['id']][_0x5f8f2b(0xda)](_0x474f83=>{var _0x22f709=_0x5f8f2b;this[_0x22f709(0xf1)](this[_0x22f709(0x145)][_0x22f709(0xe0)](_0x474f83));});}};_0x214880=_0x4bb369([_0x4c8cf6(0x0,_0x3d67cc[_0x120ec6(0x16d)](_0x4bdc69))],_0x214880);var _0x192e97=Object[_0x120ec6(0x11e)],_0x465798=Object[_0x120ec6(0x101)],_0x45dc8e=(_0x253891,_0x3d595d,_0x54a1dc)=>_0x3d595d in _0x253891?_0x192e97(_0x253891,_0x3d595d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54a1dc}):_0x253891[_0x3d595d]=_0x54a1dc,_0x54be86=(_0x16b2d8,_0x135246,_0x4b4879,_0xc875b1)=>{for(var _0x4bad41=_0xc875b1>0x1?void 0x0:_0xc875b1?_0x465798(_0x135246,_0x4b4879):_0x135246,_0x3dcf94=_0x16b2d8['length']-0x1,_0x644a99;_0x3dcf94>=0x0;_0x3dcf94--)(_0x644a99=_0x16b2d8[_0x3dcf94])&&(_0x4bad41=_0x644a99(_0x4bad41)||_0x4bad41);return _0x4bad41;},_0x4fb015=(_0x153860,_0x11202f)=>(_0x5e7106,_0x2818a3)=>_0x11202f(_0x5e7106,_0x2818a3,_0x153860),_0x5a77f6=(_0x1adf4d,_0xf2e76,_0x20dadd)=>_0x45dc8e(_0x1adf4d,typeof _0xf2e76!=_0x120ec6(0x139)?_0xf2e76+'':_0xf2e76,_0x20dadd);const _0x553bca=_0x120ec6(0x91);_0x2f1323[_0x120ec6(0x8e)]=class extends _0x3d67cc[_0x120ec6(0x93)]{constructor(_0x518acf=_0x20f451,_0x4c4d99,_0x3ca817){var _0x4e7fd1=_0x120ec6;super(),this['_config']=_0x518acf,this['_injector']=_0x4c4d99,this[_0x4e7fd1(0x129)]=_0x3ca817;const {..._0x236fa1}=_0x3d67cc[_0x4e7fd1(0xbb)]({},_0x20f451,this[_0x4e7fd1(0x16c)]);this['_configService'][_0x4e7fd1(0xc0)](_0x585056,_0x236fa1);}[_0x120ec6(0x135)](){var _0x54117c=_0x120ec6;_0x3d67cc[_0x54117c(0x125)](this[_0x54117c(0x109)],_0x3d67cc[_0x54117c(0x157)]([[_0x4bdc69],[_0x2f1323[_0x54117c(0x88)]],[_0x214880],[_0x2f1323[_0x54117c(0xd0)]]],this['_config'][_0x54117c(0x12f)])),_0x3d67cc[_0x54117c(0x148)](this[_0x54117c(0x109)],[[_0x214880]]);}['onRendered'](){var _0x573d8e=_0x120ec6;_0x3d67cc[_0x573d8e(0x148)](this[_0x573d8e(0x109)],[[_0x2f1323['DesktopLiveShareController']]]);}},_0x5a77f6(_0x2f1323[_0x120ec6(0x8e)],_0x120ec6(0x159),_0x3d67cc[_0x120ec6(0x107)]['UNIVER_UNKNOWN']),_0x5a77f6(_0x2f1323['UniverLiveSharePlugin'],_0x120ec6(0x13b),_0x553bca),_0x2f1323[_0x120ec6(0x8e)]=_0x54be86([_0x3d67cc[_0x120ec6(0xa1)](_0x326eac[_0x120ec6(0x166)]),_0x4fb015(0x1,_0x3d67cc['Inject'](_0x3d67cc[_0x120ec6(0xb5)])),_0x4fb015(0x2,_0x3d67cc['IConfigService'])],_0x2f1323[_0x120ec6(0x8e)]),_0x2f1323[_0x120ec6(0x78)]=_0x13bed3,_0x2f1323['LiveShareService']=_0x4bdc69,_0x2f1323[_0x120ec6(0x160)]=_0x22b87c,Object[_0x120ec6(0x11e)](_0x2f1323,Symbol[_0x120ec6(0x14a)],{'value':_0x120ec6(0x106)});}));
|
|
1
|
+
function _0x5d39(_0x35a7a5,_0x5df52d){var _0x50ffee=_0x50ff();return _0x5d39=function(_0x5d3974,_0x205f67){_0x5d3974=_0x5d3974-0x1c4;var _0x17ee30=_0x50ffee[_0x5d3974];return _0x17ee30;},_0x5d39(_0x35a7a5,_0x5df52d);}function _0x50ff(){var _0x18f121=['merge','9630960awPFhI','univer-mb-3\x20univer-w-full\x20univer-text-sm','set','LIVESHARE_FETCH_OPERATIONS','IDLE','react/jsx-runtime','useEffect','button','unitId','_collabSession','live-share.config','executeCommand','end','_handleNewChangeSets','touchDependencies','_configService','trim','next','evenodd','LiveShareIcon','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','HEADER_MENU','stopFollowing','Plugin','_stopFollowing','_injector','colorChannel1','call','parseProtocolChangeset','FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','_presenter','getUnitId','reverse','dispose','children','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','xlink:href','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','@univerjs/sheets-ui','shouldShareOperation','getTypeOfUnitDisposed$','defs','@univerjs/ui','throttleTime','_univerInstanceService','22uHbUGk','BuiltInUIPart','1008QZzpME','disposeWithMe','exports','forwardRef','_commandDisposable','useDependency','get','13318083QCiLCf','DesktopLiveShareController','Disposable','univerjs-icon\x20univerjs-icon-','requireSession','use','event$','mergeOverrideWithDependencies','LiveShareStatus','jsx','icon','SetZoomRatioOperation','_status','react','_handleOffline','jsxs','You\x27are\x20offline.','_fetchOperations','offline','override','CollaborationSessionService','function','OFFLINE','1121045NSiejl','text','string','NOT_FOLLOWING','forEach','map','getOwnPropertyDescriptor','status$','IUIPartsService','stringify','not-following','_reporters','559007AmNvSv','InsertSheetMutation','IUniverInstanceService','getLiveShareCoordinator','data','connectInjector','has','fill','LIVESHARE_TERMINATE','UniverProLiveShare','_startPresenting','_status$','_config','CollaborationEvent','clear','You\x27re\x20presenting\x20the\x20document','createInstance','idSuffix','concat','operations','Button','extend','parse','_unitID','takeUntil','_entities','_sharedOperations','propertyIsEnumerable','operators','asObservable','params','useObservable','attrs','_init','LiveShareCoordinator','Stop\x20presenting','tag','UNIVER_SHEET','subscribe','rxjs/operators','init','path','amd','SetScrollOperation','svg','Start','@univerjs/core','UniverIcon','presenting','1em','getTypeOfUnitAdded$','_uiPartsService','entries','CommandType','random','_beIdle','setConfig','SessionStatus','UniverProCollaborationClient','useState','UniverInstanceType','toStringTag','ICommandService','delete','getCurrentTypeOfUnit$','displayName','registerDependencies','RxDisposable','dispose$','find','_startLiveShareCoordinator','send','className','Inject','object','28AJiVua','getInitialStates','Present\x20this\x20document','UniverDesign','presenter','_stopPresenting','assign','clsx','type','replace','_handleOnline','apply','PRESENTING','_handleNewHost','sessionStatus$','LIVESHARE_OPERATION','getOwnPropertySymbols','28668qaDHec','onCommandExecuted','createElement','useRef','live-share-icon','UniverUi','indexOf','1214aUncfP','registerInitialStateReporter','NEW_CHANGESETS','BehaviorSubject','UniverSheetsUi','_handleOperation','pluginName','length','Dropdown','defIds','Fragment','startFollowing','pipe','276kUddUB','React','current','mask','currentColor','8digWrj','_liveShareService','onRendered','_startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','toDisposable','url(#$1','UniverSheets','UniverProCollaboration','defineProperty','div','includes','hasOwnProperty','UNIVER_UNKNOWN','mutations','following','idle','stopPresenting','default','add','_handleTerminate','complete','symbol','_mountLiveShare','rxjs','UniverLiveSharePlugin','prototype','registerSharedOperation','_commandService','tryStartPresenting','Subject','_collabSessionService','305652XWkFcz','SetWorksheetActiveOperation','ONLINE'];_0x50ff=function(){return _0x18f121;};return _0x50ff();}(function(_0x321478,_0x30ad21){var _0x380df7=_0x5d39,_0x4d90dc=_0x321478();while(!![]){try{var _0x421dd0=-parseInt(_0x380df7(0x210))/0x1+-parseInt(_0x380df7(0x273))/0x2*(-parseInt(_0x380df7(0x280))/0x3)+parseInt(_0x380df7(0x25b))/0x4*(parseInt(_0x380df7(0x204))/0x5)+parseInt(_0x380df7(0x26c))/0x6*(-parseInt(_0x380df7(0x1e6))/0x7)+parseInt(_0x380df7(0x285))/0x8*(parseInt(_0x380df7(0x1ed))/0x9)+-parseInt(_0x380df7(0x2a9))/0xa+-parseInt(_0x380df7(0x1e4))/0xb*(parseInt(_0x380df7(0x2a5))/0xc);if(_0x421dd0===_0x30ad21)break;else _0x4d90dc['push'](_0x4d90dc['shift']());}catch(_0x202b69){_0x4d90dc['push'](_0x4d90dc['shift']());}}}(_0x50ff,0xce0f1),function(_0x4bf2f9,_0x4b4ff3){var _0x489d18=_0x5d39;typeof exports==_0x489d18(0x25a)&&typeof module<'u'?_0x4b4ff3(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x489d18(0x202)&&define[_0x489d18(0x23a)]?define([_0x489d18(0x1e8),_0x489d18(0x23e),_0x489d18(0x1e1),_0x489d18(0x2ae),'@univerjs/design',_0x489d18(0x1fa),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','@univerjs/sheets',_0x489d18(0x29d),_0x489d18(0x237),_0x489d18(0x1dd)],_0x4b4ff3):(_0x4bf2f9=typeof globalThis<'u'?globalThis:_0x4bf2f9||self,_0x4b4ff3(_0x4bf2f9[_0x489d18(0x219)]={},_0x4bf2f9['UniverCore'],_0x4bf2f9[_0x489d18(0x271)],_0x4bf2f9['React'],_0x4bf2f9[_0x489d18(0x25e)],_0x4bf2f9[_0x489d18(0x281)],_0x4bf2f9[_0x489d18(0x28d)],_0x4bf2f9[_0x489d18(0x24a)],_0x4bf2f9[_0x489d18(0x28c)],_0x4bf2f9[_0x489d18(0x29d)],_0x4bf2f9['rxjs'][_0x489d18(0x22c)],_0x4bf2f9[_0x489d18(0x277)]));}(this,function(_0x387e7b,_0x4c8bc9,_0x14ca99,_0x51500c,_0xef6c63,_0x125ae4,_0x1ab4e0,_0x45e5c0,_0x25c260,_0x35efc0,_0x42fe9a,_0x27b8a0){'use strict';var _0x5f4722=_0x5d39;var _0x13bec9=Object[_0x5f4722(0x28e)],_0x472b9a=(_0x884813,_0x1b7803,_0x247e1a)=>_0x1b7803 in _0x884813?_0x13bec9(_0x884813,_0x1b7803,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x247e1a}):_0x884813[_0x1b7803]=_0x247e1a,_0x151b9e=(_0x1893e0,_0x454e24,_0xfdee74)=>_0x472b9a(_0x1893e0,typeof _0x454e24!='symbol'?_0x454e24+'':_0x454e24,_0xfdee74),_0x1e5460=function(){var _0x2f28af=_0x5f4722;return _0x1e5460=Object[_0x2f28af(0x261)]||function(_0x54d6bf){var _0x49c114=_0x2f28af;for(var _0x2103b2,_0x2ae7a9=0x1,_0x3252fa=arguments['length'];_0x2ae7a9<_0x3252fa;_0x2ae7a9++){_0x2103b2=arguments[_0x2ae7a9];for(var _0x2361ca in _0x2103b2)Object[_0x49c114(0x29f)][_0x49c114(0x291)][_0x49c114(0x1cf)](_0x2103b2,_0x2361ca)&&(_0x54d6bf[_0x2361ca]=_0x2103b2[_0x2361ca]);}return _0x54d6bf;},_0x1e5460[_0x2f28af(0x266)](this,arguments);},_0x1ee06f=function(_0x30aca8,_0x15628c){var _0x5a942d=_0x5f4722,_0x5d5e83={};for(var _0x50a34d in _0x30aca8)Object[_0x5a942d(0x29f)]['hasOwnProperty'][_0x5a942d(0x1cf)](_0x30aca8,_0x50a34d)&&_0x15628c[_0x5a942d(0x272)](_0x50a34d)<0x0&&(_0x5d5e83[_0x50a34d]=_0x30aca8[_0x50a34d]);if(_0x30aca8!=null&&typeof Object[_0x5a942d(0x26b)]==_0x5a942d(0x202)){for(var _0x3857bb=0x0,_0x50a34d=Object[_0x5a942d(0x26b)](_0x30aca8);_0x3857bb<_0x50a34d['length'];_0x3857bb++)_0x15628c['indexOf'](_0x50a34d[_0x3857bb])<0x0&&Object[_0x5a942d(0x29f)][_0x5a942d(0x22b)][_0x5a942d(0x1cf)](_0x30aca8,_0x50a34d[_0x3857bb])&&(_0x5d5e83[_0x50a34d[_0x3857bb]]=_0x30aca8[_0x50a34d[_0x3857bb]]);}return _0x5d5e83;},_0x2f0c4f=_0x125ae4[_0x5f4722(0x1e9)](function(_0x939f8b,_0x1a60a8){var _0x457d91=_0x5f4722,_0x555ab6=_0x939f8b['icon'],_0x456b0b=_0x939f8b['id'],_0xb46cdb=_0x939f8b[_0x457d91(0x258)],_0x2b9c0c=_0x939f8b['extend'],_0x5e3405=_0x1ee06f(_0x939f8b,[_0x457d91(0x1f7),'id','className',_0x457d91(0x225)]),_0x15dc3e=_0x457d91(0x1f0)[_0x457d91(0x222)](_0x456b0b,'\x20')['concat'](_0xb46cdb||'')[_0x457d91(0x2b9)](),_0x25de49=_0x125ae4[_0x457d91(0x26f)]('_'[_0x457d91(0x222)](_0x3a5738()));return _0x552203(_0x555ab6,''['concat'](_0x456b0b),{'defIds':_0x555ab6['defIds'],'idSuffix':_0x25de49[_0x457d91(0x282)]},_0x1e5460({'ref':_0x1a60a8,'className':_0x15dc3e},_0x5e3405),_0x2b9c0c);});function _0x552203(_0x423b3a,_0x547a6e,_0x594dec,_0x1dc8b8,_0x4968cf){var _0x826ef4=_0x5f4722;return _0x125ae4[_0x826ef4(0x26e)](_0x423b3a[_0x826ef4(0x234)],_0x1e5460(_0x1e5460({'key':_0x547a6e},_0x26a54a(_0x423b3a,_0x594dec,_0x4968cf)),_0x1dc8b8),(_0x37cf28(_0x423b3a,_0x594dec)['children']||[])[_0x826ef4(0x209)](function(_0x10f035,_0x3db8a5){var _0x6c1982=_0x826ef4;return _0x552203(_0x10f035,''[_0x6c1982(0x222)](_0x547a6e,'-')['concat'](_0x423b3a[_0x6c1982(0x234)],'-')['concat'](_0x3db8a5),_0x594dec,void 0x0,_0x4968cf);}));}function _0x26a54a(_0x2fe3f4,_0x8335ff,_0xc8c446){var _0x1da526=_0x5f4722,_0x2c4f05=_0x1e5460({},_0x2fe3f4['attrs']);_0xc8c446!=null&&_0xc8c446['colorChannel1']&&_0x2c4f05['fill']===_0x1da526(0x1ce)&&(_0x2c4f05[_0x1da526(0x217)]=_0xc8c446['colorChannel1']),_0x2fe3f4[_0x1da526(0x234)]===_0x1da526(0x283)&&_0x2c4f05['id']&&(_0x2c4f05['id']=_0x2c4f05['id']+_0x8335ff[_0x1da526(0x221)]),Object[_0x1da526(0x244)](_0x2c4f05)[_0x1da526(0x208)](function(_0x352294){var _0x4611ee=_0x1da526,_0x3ec4dc=_0x352294[0x0],_0x47dacf=_0x352294[0x1];_0x3ec4dc===_0x4611ee(0x283)&&typeof _0x47dacf=='string'&&(_0x2c4f05[_0x3ec4dc]=_0x47dacf['replace'](/url\(#(.*)\)/,_0x4611ee(0x28b)[_0x4611ee(0x222)](_0x8335ff['idSuffix'],')')));});var _0x21aafd=_0x8335ff['defIds'];return!_0x21aafd||_0x21aafd['length']===0x0||(_0x2fe3f4['tag']===_0x1da526(0x1f2)&&_0x2c4f05['xlink:href']&&(_0x2c4f05[_0x1da526(0x1da)]=_0x2c4f05['xlink:href']+_0x8335ff[_0x1da526(0x221)]),Object[_0x1da526(0x244)](_0x2c4f05)[_0x1da526(0x208)](function(_0x478a50){var _0x454ad5=_0x1da526,_0x1b0c7f=_0x478a50[0x0],_0x598a29=_0x478a50[0x1];typeof _0x598a29==_0x454ad5(0x206)&&(_0x2c4f05[_0x1b0c7f]=_0x598a29[_0x454ad5(0x264)](/url\(#(.*)\)/,_0x454ad5(0x28b)[_0x454ad5(0x222)](_0x8335ff[_0x454ad5(0x221)],')')));})),_0x2c4f05;}function _0x37cf28(_0x39f9f6,_0x101148){var _0x58f003=_0x5f4722,_0x23c854,_0x3fa51d=_0x101148[_0x58f003(0x27c)];return!_0x3fa51d||_0x3fa51d[_0x58f003(0x27a)]===0x0?_0x39f9f6:_0x39f9f6[_0x58f003(0x234)]===_0x58f003(0x1e0)&&(!((_0x23c854=_0x39f9f6[_0x58f003(0x1d8)])===null||_0x23c854===void 0x0)&&_0x23c854['length'])?_0x1e5460(_0x1e5460({},_0x39f9f6),{'children':_0x39f9f6['children'][_0x58f003(0x209)](function(_0xde1ee1){var _0x56a494=_0x58f003;return typeof _0xde1ee1[_0x56a494(0x230)]['id']==_0x56a494(0x206)&&_0x3fa51d&&_0x3fa51d[_0x56a494(0x290)](_0xde1ee1['attrs']['id'])?_0x1e5460(_0x1e5460({},_0xde1ee1),{'attrs':_0x1e5460(_0x1e5460({},_0xde1ee1[_0x56a494(0x230)]),{'id':_0xde1ee1['attrs']['id']+_0x101148[_0x56a494(0x221)]})}):_0xde1ee1;})}):_0x39f9f6;}function _0x3a5738(){var _0x5e67d3=_0x5f4722;return Math[_0x5e67d3(0x246)]()['toString'](0x24)['substring'](0x2,0x8);}_0x2f0c4f[_0x5f4722(0x251)]=_0x5f4722(0x23f);var _0x510b8a={'tag':_0x5f4722(0x23c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x5f4722(0x241),'height':'1em'},'children':[{'tag':_0x5f4722(0x239),'attrs':{'fill':_0x5f4722(0x284),'d':_0x5f4722(0x289)}},{'tag':_0x5f4722(0x239),'attrs':{'fill':_0x5f4722(0x284),'d':_0x5f4722(0x1d9),'fillRule':_0x5f4722(0x1c5),'clipRule':_0x5f4722(0x1c5)}}]},_0x4b8bd8=_0x125ae4[_0x5f4722(0x1e9)](function(_0x1c7dae,_0x500812){var _0x3918c4=_0x5f4722;return _0x125ae4[_0x3918c4(0x26e)](_0x2f0c4f,Object[_0x3918c4(0x261)]({},_0x1c7dae,{'id':_0x3918c4(0x270),'ref':_0x500812,'icon':_0x510b8a}));});_0x4b8bd8['displayName']=_0x5f4722(0x1c6);class _0xa82131 extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(){var _0x46552a=_0x5f4722;super(...arguments),_0x151b9e(this,_0x46552a(0x22a),new Set()),_0x151b9e(this,_0x46552a(0x20f),new Set());}[_0x5f4722(0x2a0)](_0x6de1e9){var _0xd8892f=_0x5f4722;return this['_sharedOperations'][_0xd8892f(0x298)](_0x6de1e9),_0x4c8bc9['toDisposable'](()=>this[_0xd8892f(0x22a)][_0xd8892f(0x24f)](_0x6de1e9));}[_0x5f4722(0x274)](_0x52e82d){var _0x46bd3a=_0x5f4722;return this[_0x46bd3a(0x20f)][_0x46bd3a(0x298)](_0x52e82d),_0x4c8bc9[_0x46bd3a(0x28a)](()=>this['_reporters'][_0x46bd3a(0x24f)](_0x52e82d));}[_0x5f4722(0x1de)](_0x131aca){var _0x5be7a7=_0x5f4722;return this[_0x5be7a7(0x22a)][_0x5be7a7(0x216)](_0x131aca);}[_0x5f4722(0x25c)](_0x1991ae){var _0xb1bd42=_0x5f4722;return Array['from'](this[_0xb1bd42(0x20f)])[_0xb1bd42(0x209)](_0x5f2912=>_0x5f2912(_0x1991ae));}}var _0x5303ee=Object[_0x5f4722(0x20a)],_0x4c62a6=(_0x1da831,_0x1a8ce8,_0x205455,_0x4db49a)=>{var _0x486e4e=_0x5f4722;for(var _0x2c8165=_0x4db49a>0x1?void 0x0:_0x4db49a?_0x5303ee(_0x1a8ce8,_0x205455):_0x1a8ce8,_0xdffe1a=_0x1da831[_0x486e4e(0x27a)]-0x1,_0x3bf1a5;_0xdffe1a>=0x0;_0xdffe1a--)(_0x3bf1a5=_0x1da831[_0xdffe1a])&&(_0x2c8165=_0x3bf1a5(_0x2c8165)||_0x2c8165);return _0x2c8165;},_0x4a136a=(_0x40639a,_0x4068f4)=>(_0x1b878a,_0x3ac7a8)=>_0x4068f4(_0x1b878a,_0x3ac7a8,_0x40639a);_0x387e7b[_0x5f4722(0x1dc)]=class extends _0x4c8bc9[_0x5f4722(0x253)]{constructor(_0x5e96c2,_0x41e7e8,_0x45e5f8){var _0x426a65=_0x5f4722;super(),_0x151b9e(this,_0x426a65(0x229),new Map()),(this['_univerInstanceService']=_0x5e96c2,this[_0x426a65(0x1cd)]=_0x41e7e8,this['_collabSessionService']=_0x45e5f8,this[_0x426a65(0x231)]());}async[_0x5f4722(0x213)](_0x51904f){var _0x1e3f0d=_0x5f4722;return this[_0x1e3f0d(0x229)][_0x1e3f0d(0x216)](_0x51904f)||await this[_0x1e3f0d(0x256)](_0x51904f),this['_entities'][_0x1e3f0d(0x1ec)](_0x51904f);}[_0x5f4722(0x231)](){var _0x552e4c=_0x5f4722;this[_0x552e4c(0x1e3)][_0x552e4c(0x242)](_0x4c8bc9[_0x552e4c(0x24c)][_0x552e4c(0x235)])[_0x552e4c(0x27f)](_0x42fe9a[_0x552e4c(0x228)](this[_0x552e4c(0x254)]))[_0x552e4c(0x236)](async _0x1b3407=>{var _0x4d2d59=_0x552e4c;const _0x411026=_0x1b3407['getUnitId']();this[_0x4d2d59(0x229)][_0x4d2d59(0x216)](_0x411026)||this[_0x4d2d59(0x256)](_0x411026);}),this[_0x552e4c(0x1e3)][_0x552e4c(0x1df)](_0x4c8bc9[_0x552e4c(0x24c)]['UNIVER_SHEET'])[_0x552e4c(0x27f)](_0x42fe9a['takeUntil'](this[_0x552e4c(0x254)]))[_0x552e4c(0x236)](_0x4ba3b7=>{var _0x363c9b=_0x552e4c;const _0x391a77=_0x4ba3b7[_0x363c9b(0x1d5)](),_0x3d8211=this[_0x363c9b(0x229)][_0x363c9b(0x1ec)](_0x391a77);_0x3d8211==null||_0x3d8211['dispose']();});}async[_0x5f4722(0x256)](_0x48ef86){var _0x2ff63e=_0x5f4722;const _0x63cdfd=await this[_0x2ff63e(0x2a4)][_0x2ff63e(0x1f1)](_0x48ef86),_0x305b89=this[_0x2ff63e(0x1cd)][_0x2ff63e(0x220)](_0x387e7b[_0x2ff63e(0x232)],_0x48ef86,_0x63cdfd);return _0x305b89[_0x2ff63e(0x238)](),this[_0x2ff63e(0x229)][_0x2ff63e(0x2ab)](_0x48ef86,_0x305b89),_0x305b89;}},_0x387e7b[_0x5f4722(0x1dc)]=_0x4c62a6([_0x4a136a(0x0,_0x4c8bc9[_0x5f4722(0x212)]),_0x4a136a(0x1,_0x4c8bc9[_0x5f4722(0x259)](_0x4c8bc9['Injector'])),_0x4a136a(0x2,_0x4c8bc9[_0x5f4722(0x259)](_0x45e5c0[_0x5f4722(0x201)]))],_0x387e7b[_0x5f4722(0x1dc)]);var _0x28b580=(_0x3d2f98=>(_0x3d2f98[_0x5f4722(0x203)]=_0x5f4722(0x1ff),_0x3d2f98[_0x5f4722(0x2ad)]=_0x5f4722(0x295),_0x3d2f98[_0x5f4722(0x1d1)]=_0x5f4722(0x294),_0x3d2f98[_0x5f4722(0x207)]=_0x5f4722(0x20e),_0x3d2f98[_0x5f4722(0x267)]='presenting',_0x3d2f98))(_0x28b580||{});const _0x2ab819='SAME_OPERATION_SHARE_INTERVAL',_0x131354=0xc8;_0x387e7b[_0x5f4722(0x232)]=class extends _0x4c8bc9[_0x5f4722(0x253)]{constructor(_0x1d6267,_0x44ef00,_0x382459,_0x113ad4,_0x2f7995){var _0x71a392=_0x5f4722;super(),_0x151b9e(this,_0x71a392(0x21b),new _0x35efc0[(_0x71a392(0x276))](_0x71a392(0x295))),_0x151b9e(this,_0x71a392(0x20b),this[_0x71a392(0x21b)][_0x71a392(0x22d)]()),_0x151b9e(this,_0x71a392(0x231),!0x1),_0x151b9e(this,_0x71a392(0x1ea),null),_0x151b9e(this,_0x71a392(0x1d4),null),(this[_0x71a392(0x227)]=_0x1d6267,this[_0x71a392(0x2b2)]=_0x44ef00,this[_0x71a392(0x2b8)]=_0x382459,this['_liveShareService']=_0x113ad4,this[_0x71a392(0x2a1)]=_0x2f7995);}get[_0x5f4722(0x1f9)](){var _0x465d0a=_0x5f4722;return this[_0x465d0a(0x21b)]['getValue']();}['dispose'](){var _0xe2471d=_0x5f4722,_0x107389;(_0x107389=this['_commandDisposable'])==null||_0x107389[_0xe2471d(0x1d7)](),this[_0xe2471d(0x21b)][_0xe2471d(0x1c4)](_0xe2471d(0x295)),this['_status$'][_0xe2471d(0x29a)]();}[_0x5f4722(0x238)](){var _0x1ee104=_0x5f4722;this[_0x1ee104(0x231)]||(this[_0x1ee104(0x231)]=!0x0,this[_0x1ee104(0x2b2)][_0x1ee104(0x269)]['pipe'](_0x42fe9a[_0x1ee104(0x228)](this['dispose$']))['subscribe'](_0x2f42be=>{var _0x104a1a=_0x1ee104;switch(_0x2f42be){case _0x45e5c0[_0x104a1a(0x249)][_0x104a1a(0x203)]:this['_handleOffline']();break;case _0x45e5c0[_0x104a1a(0x249)][_0x104a1a(0x2a7)]:this[_0x104a1a(0x265)]();break;}}),this[_0x1ee104(0x2b2)][_0x1ee104(0x1f3)][_0x1ee104(0x27f)](_0x42fe9a[_0x1ee104(0x228)](this[_0x1ee104(0x254)]))[_0x1ee104(0x236)](_0x4ef3bc=>{var _0xc1a41a=_0x1ee104;const {eventID:_0x22a037}=_0x4ef3bc;switch(_0x22a037){case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x1c8)]:this[_0xc1a41a(0x268)](_0x4ef3bc);break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x26a)]:this['_handleOperation'](_0x4ef3bc);break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x218)]:this[_0xc1a41a(0x299)]();break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x275)]:this[_0xc1a41a(0x2b6)](_0x4ef3bc);break;}}));}[_0x5f4722(0x2a2)](){var _0x445c7d=_0x5f4722;this[_0x445c7d(0x2b2)][_0x445c7d(0x257)]({'eventID':_0x1ab4e0[_0x445c7d(0x21d)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x445c7d(0x227)],'userID':this[_0x445c7d(0x2b2)][_0x445c7d(0x1d3)]()}},this[_0x445c7d(0x227)]);}['stopPresenting'](){var _0x3c6d5a=_0x5f4722;this['_status']===_0x3c6d5a(0x240)&&(this[_0x3c6d5a(0x21b)][_0x3c6d5a(0x1c4)](_0x3c6d5a(0x295)),this[_0x3c6d5a(0x2b2)][_0x3c6d5a(0x257)]({'eventID':_0x1ab4e0[_0x3c6d5a(0x21d)][_0x3c6d5a(0x218)],'data':{'unitID':this['_unitID']}},this[_0x3c6d5a(0x227)]));}[_0x5f4722(0x27e)](){var _0x58fc6f=_0x5f4722;this['_status']===_0x58fc6f(0x20e)&&(this[_0x58fc6f(0x21b)][_0x58fc6f(0x1c4)](_0x58fc6f(0x294)),this['_startFollowing']());}[_0x5f4722(0x1ca)](){var _0x41f3cd=_0x5f4722;this[_0x41f3cd(0x1f9)]===_0x41f3cd(0x294)&&this[_0x41f3cd(0x1cc)]();}[_0x5f4722(0x268)](_0x213f35){var _0x92d53c=_0x5f4722;const {presenter:_0x49ef63}=_0x213f35[_0x92d53c(0x214)],_0x392a68=this[_0x92d53c(0x2b2)]['getMemberID']();this[_0x92d53c(0x1d4)]=_0x49ef63,_0x49ef63===_0x392a68?(this[_0x92d53c(0x1cc)](),this[_0x92d53c(0x21a)]()):this[_0x92d53c(0x1f9)]!==_0x92d53c(0x20e)&&(this[_0x92d53c(0x260)](),this[_0x92d53c(0x288)]());}[_0x5f4722(0x1fe)](){var _0xf9d234=_0x5f4722;const _0x1d992e={'eventID':_0x1ab4e0[_0xf9d234(0x21d)][_0xf9d234(0x2ac)]};this[_0xf9d234(0x2b2)]['send'](_0x1d992e,this[_0xf9d234(0x227)]);}[_0x5f4722(0x299)](){var _0x4f1cfd=_0x5f4722;this[_0x4f1cfd(0x1d4)]=null,this[_0x4f1cfd(0x1f9)]!==_0x4f1cfd(0x240)&&this['_beIdle']();}[_0x5f4722(0x2b6)](_0x41d95f){var _0x5b4af4=_0x5f4722;if(this[_0x5b4af4(0x1f9)]===_0x5b4af4(0x294)&&this[_0x5b4af4(0x1d4)]===_0x41d95f[_0x5b4af4(0x214)]['memberID']){const _0x718a34=_0x1ab4e0[_0x5b4af4(0x1d0)](_0x41d95f['data'])[_0x5b4af4(0x293)][_0x5b4af4(0x1d6)]()[_0x5b4af4(0x255)](_0x1a3196=>_0x1a3196['id']===_0x25c260[_0x5b4af4(0x211)]['id']);if(_0x718a34){const _0xa84549=_0x718a34[_0x5b4af4(0x22e)][_0x5b4af4(0x2b1)],_0x5b140a=_0x718a34[_0x5b4af4(0x22e)]['sheet']['id'];setTimeout(()=>{var _0x2ebd14=_0x5b4af4;this['_commandService'][_0x2ebd14(0x2b4)](_0x25c260[_0x2ebd14(0x2a6)]['id'],{'unitId':_0xa84549,'subUnitId':_0x5b140a},{'fromCollab':!0x0});});}}}[_0x5f4722(0x21a)](){var _0xabc41f=_0x5f4722;this['_status$'][_0xabc41f(0x1c4)](_0xabc41f(0x240));const _0x513b02=new Map(),_0x445e4e=this[_0xabc41f(0x1ea)]=new _0x4c8bc9['DisposableCollection']();_0x445e4e[_0xabc41f(0x298)](_0x4c8bc9[_0xabc41f(0x28a)](()=>{var _0x35a908=_0xabc41f;_0x513b02[_0x35a908(0x208)](_0x9d7b3b=>_0x9d7b3b[_0x35a908(0x29a)]()),_0x513b02[_0x35a908(0x21e)]();})),_0x445e4e[_0xabc41f(0x298)](this['_commandService'][_0xabc41f(0x26d)](_0x4fb41=>{var _0x65f826=_0xabc41f,_0x1a25f9;if(_0x4fb41['type']!==_0x4c8bc9[_0x65f826(0x245)]['OPERATION']||!this[_0x65f826(0x286)][_0x65f826(0x1de)](_0x4fb41['id']))return;const {id:_0x2ef96a}=_0x4fb41;let _0x227133;_0x513b02['has'](_0x2ef96a)?_0x227133=_0x513b02[_0x65f826(0x1ec)](_0x2ef96a):(_0x227133=new _0x35efc0[(_0x65f826(0x2a3))](),_0x513b02[_0x65f826(0x2ab)](_0x2ef96a,_0x227133),_0x227133[_0x65f826(0x27f)](_0x42fe9a[_0x65f826(0x1e2)]((_0x1a25f9=this[_0x65f826(0x2b8)]['getConfig'](_0x2ab819))!=null?_0x1a25f9:_0x131354,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x65f826(0x236)](_0x33522a=>{var _0x32cf6d=_0x65f826;this[_0x32cf6d(0x2b2)]['send']({'eventID':_0x1ab4e0[_0x32cf6d(0x21d)][_0x32cf6d(0x26a)],'data':{'unitID':this[_0x32cf6d(0x227)],'operations':{[_0x33522a['id']]:{'id':_0x33522a['id'],'params':JSON[_0x32cf6d(0x20d)](_0x33522a['params'])}}}},this[_0x32cf6d(0x227)]);})),_0x227133['next'](_0x4fb41);})),this[_0xabc41f(0x286)]['getInitialStates'](this[_0xabc41f(0x227)])[_0xabc41f(0x208)](_0x471122=>this[_0xabc41f(0x2b2)][_0xabc41f(0x257)]({'eventID':_0x1ab4e0['CollaborationEvent'][_0xabc41f(0x26a)],'data':{'unitID':this[_0xabc41f(0x227)],'operations':{[_0x471122['id']]:{'id':_0x471122['id'],'params':JSON[_0xabc41f(0x20d)](_0x471122[_0xabc41f(0x22e)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x100483=_0x5f4722,_0xfe780d;this[_0x100483(0x21b)]['next']('idle'),(_0xfe780d=this['_commandDisposable'])==null||_0xfe780d['dispose'](),this[_0x100483(0x1ea)]=null;}[_0x5f4722(0x288)](){var _0x132e30=_0x5f4722,_0x480fba;(_0x480fba=this[_0x132e30(0x1ea)])==null||_0x480fba['dispose'](),this[_0x132e30(0x21b)][_0x132e30(0x1c4)](_0x132e30(0x294));}[_0x5f4722(0x247)](){var _0x323d1b=_0x5f4722,_0xdf453c;this[_0x323d1b(0x21b)][_0x323d1b(0x1c4)](_0x323d1b(0x295)),(_0xdf453c=this['_commandDisposable'])==null||_0xdf453c[_0x323d1b(0x1d7)](),this[_0x323d1b(0x1ea)]=null;}[_0x5f4722(0x1cc)](){var _0x571aa4=_0x5f4722,_0x5c2c97;this[_0x571aa4(0x21b)][_0x571aa4(0x1c4)](_0x571aa4(0x20e)),(_0x5c2c97=this['_commandDisposable'])==null||_0x5c2c97[_0x571aa4(0x1d7)]();}[_0x5f4722(0x278)](_0x28fb19){var _0x33d353=_0x5f4722;if([_0x33d353(0x240),_0x33d353(0x20e),'offline'][_0x33d353(0x290)](this['_status'])||!_0x28fb19[_0x33d353(0x214)][_0x33d353(0x25f)]||_0x28fb19['data'][_0x33d353(0x25f)]===this[_0x33d353(0x2b2)][_0x33d353(0x1d3)]())return;this[_0x33d353(0x1f9)]===_0x33d353(0x295)&&this[_0x33d353(0x288)]();const _0x152a03=_0x28fb19['data'][_0x33d353(0x223)];Object['values'](_0x152a03)[_0x33d353(0x208)](_0x3d2e3d=>{var _0x3121a6=_0x33d353;this['_commandService'][_0x3121a6(0x2b4)](_0x3d2e3d['id'],_0x3d2e3d[_0x3121a6(0x22e)]?JSON[_0x3121a6(0x226)](_0x3d2e3d[_0x3121a6(0x22e)]):null,{'fromCollab':!0x0});});}[_0x5f4722(0x1fb)](){var _0x35d54c=_0x5f4722,_0x3e64e0;this[_0x35d54c(0x21b)]['next']('offline'),(_0x3e64e0=this[_0x35d54c(0x1ea)])==null||_0x3e64e0['dispose']();}[_0x5f4722(0x265)](){var _0x3513e5=_0x5f4722;this[_0x3513e5(0x21b)]['next']('idle'),this[_0x3513e5(0x1fe)]();}},_0x387e7b[_0x5f4722(0x232)]=_0x4c62a6([_0x4a136a(0x2,_0x4c8bc9['IConfigService']),_0x4a136a(0x3,_0x4c8bc9[_0x5f4722(0x259)](_0xa82131)),_0x4a136a(0x4,_0x4c8bc9[_0x5f4722(0x24e)])],_0x387e7b[_0x5f4722(0x232)]);function _0x4742b7(){var _0x4153c4=_0x5f4722;const _0x311269=_0x14ca99['useDependency'](_0x387e7b['LiveShareController']),_0x154868=_0x14ca99[_0x4153c4(0x1eb)](_0x4c8bc9[_0x4153c4(0x212)]),_0x2dee52=_0x14ca99[_0x4153c4(0x22f)](()=>_0x154868[_0x4153c4(0x250)](_0x4c8bc9['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3dc9f3,_0x1b2da5]=_0x125ae4[_0x4153c4(0x24b)](null),[_0x382a00,_0x4cb1f6]=_0x125ae4[_0x4153c4(0x24b)](_0x28b580[_0x4153c4(0x2ad)]),_0x1635bb=_0x125ae4[_0x4153c4(0x26f)](null);return _0x125ae4[_0x4153c4(0x2af)](()=>(_0x2dee52&&_0x311269[_0x4153c4(0x213)](_0x2dee52[_0x4153c4(0x1d5)]())['then'](_0x1ff977=>{var _0x5a3f63=_0x4153c4;_0x1b2da5(_0x1ff977),_0x1635bb['current']=_0x1ff977[_0x5a3f63(0x20b)][_0x5a3f63(0x236)](_0x26dc54=>{_0x4cb1f6(_0x26dc54);});}),()=>{var _0x4c4153=_0x4153c4,_0x1efaff;(_0x1efaff=_0x1635bb[_0x4c4153(0x282)])==null||_0x1efaff['unsubscribe'](),_0x1635bb[_0x4c4153(0x282)]=null;}),[_0x2dee52,_0x311269]),_0x3dc9f3?_0x51500c[_0x4153c4(0x1f6)](_0xef6c63[_0x4153c4(0x27b)],{'align':_0x4153c4(0x2b5),'disabled':_0x382a00===_0x28b580[_0x4153c4(0x203)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x51500c[_0x4153c4(0x1f6)](_0x33ab3f,{'status':_0x382a00,'coordinator':_0x3dc9f3}),'children':_0x51500c[_0x4153c4(0x1f6)]('button',{'className':_0xef6c63[_0x4153c4(0x262)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x382a00===_0x28b580['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x382a00!==_0x28b580[_0x4153c4(0x203)]}),'type':_0x4153c4(0x2b0),'children':_0x51500c['jsx'](_0x4b8bd8,{'className':'univer-size-4'})})}):null;}function _0x33ab3f(_0x591ab0){var _0x579472=_0x5f4722;const {status:_0x13f41b,coordinator:_0xc4b6ac}=_0x591ab0;switch(_0x13f41b){case _0x28b580[_0x579472(0x2ad)]:return _0x51500c[_0x579472(0x1f6)](_0x1956cd,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x1d1)]:return _0x51500c[_0x579472(0x1f6)](_0x3d6a49,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x207)]:return _0x51500c[_0x579472(0x1f6)](_0x1379c1,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x203)]:return _0x51500c[_0x579472(0x1f6)](_0x5de413,{});case _0x28b580['PRESENTING']:return _0x51500c['jsx'](_0x47c838,{'coordinator':_0xc4b6ac});default:return null;}}function _0x1956cd(_0xee1c17){var _0x22c997=_0x5f4722;const {coordinator:_0x3ebd39}=_0xee1c17;return _0x51500c[_0x22c997(0x1fc)](_0x51500c[_0x22c997(0x27d)],{'children':[_0x51500c[_0x22c997(0x1f6)](_0x22c997(0x28f),{'className':_0x22c997(0x2aa),'children':_0x22c997(0x25d)}),_0x51500c['jsx'](_0xef6c63['Button'],{'onClick':()=>_0x3ebd39[_0x22c997(0x2a2)](),'children':_0x22c997(0x23d)})]});}function _0x3d6a49(_0x363ef3){var _0x341c94=_0x5f4722;const {coordinator:_0x314c61}=_0x363ef3;return _0x51500c['jsxs'](_0x51500c[_0x341c94(0x27d)],{'children':[_0x51500c['jsx'](_0x341c94(0x28f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x51500c[_0x341c94(0x1f6)](_0xef6c63[_0x341c94(0x224)],{'onClick':()=>_0x314c61[_0x341c94(0x1ca)](),'children':'Stop\x20following'})]});}function _0x1379c1(_0xa3db8e){var _0x874049=_0x5f4722;const {coordinator:_0x5f1c78}=_0xa3db8e;return _0x51500c[_0x874049(0x1fc)](_0x51500c['Fragment'],{'children':[_0x51500c['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x874049(0x1db)}),_0x51500c[_0x874049(0x1f6)](_0xef6c63[_0x874049(0x224)],{'variant':_0x874049(0x205),'onClick':()=>_0x5f1c78[_0x874049(0x27e)](),'children':'Start\x20following'})]});}function _0x47c838(_0x1923e1){var _0x5c102c=_0x5f4722;const {coordinator:_0x1552c4}=_0x1923e1;return _0x51500c[_0x5c102c(0x1fc)](_0x51500c['Fragment'],{'children':[_0x51500c[_0x5c102c(0x1f6)]('div',{'className':_0x5c102c(0x2aa),'children':_0x5c102c(0x21f)}),_0x51500c[_0x5c102c(0x1f6)](_0xef6c63['Button'],{'variant':_0x5c102c(0x297),'onClick':()=>_0x1552c4[_0x5c102c(0x296)](),'children':_0x5c102c(0x233)})]});}function _0x5de413(){var _0x33988e=_0x5f4722;return _0x51500c['jsx'](_0x51500c['Fragment'],{'children':_0x33988e(0x1fd)});}var _0x21f353=Object[_0x5f4722(0x20a)],_0x37fdc2=(_0x17c79c,_0x5176cd,_0x45d4c9,_0x50756b)=>{var _0xd43e3=_0x5f4722;for(var _0x900a26=_0x50756b>0x1?void 0x0:_0x50756b?_0x21f353(_0x5176cd,_0x45d4c9):_0x5176cd,_0x59f554=_0x17c79c[_0xd43e3(0x27a)]-0x1,_0x554d25;_0x59f554>=0x0;_0x59f554--)(_0x554d25=_0x17c79c[_0x59f554])&&(_0x900a26=_0x554d25(_0x900a26)||_0x900a26);return _0x900a26;},_0x95c535=(_0x3615c8,_0x24c0fd)=>(_0x3b3aec,_0x5879b5)=>_0x24c0fd(_0x3b3aec,_0x5879b5,_0x3615c8);_0x387e7b[_0x5f4722(0x1ee)]=class extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(_0x5156da,_0xd24ec4){var _0x3f470b=_0x5f4722;super(),this[_0x3f470b(0x1cd)]=_0x5156da,this[_0x3f470b(0x243)]=_0xd24ec4,this[_0x3f470b(0x29c)]();}['_mountLiveShare'](){var _0x19c607=_0x5f4722;this[_0x19c607(0x1e7)](this[_0x19c607(0x243)]['registerComponent'](_0x14ca99[_0x19c607(0x1e5)][_0x19c607(0x1c9)],()=>_0x14ca99[_0x19c607(0x215)](_0x4742b7,this[_0x19c607(0x1cd)])));}},_0x387e7b['DesktopLiveShareController']=_0x37fdc2([_0x95c535(0x0,_0x4c8bc9['Inject'](_0x4c8bc9['Injector'])),_0x95c535(0x1,_0x14ca99[_0x5f4722(0x20c)])],_0x387e7b[_0x5f4722(0x1ee)]);const _0x32310f=_0x5f4722(0x2b3),_0x117485={};var _0x1c6273=Object[_0x5f4722(0x20a)],_0x3332a3=(_0x57f69a,_0x529578,_0x485a5b,_0x24dce7)=>{var _0x898ae4=_0x5f4722;for(var _0x44da9f=_0x24dce7>0x1?void 0x0:_0x24dce7?_0x1c6273(_0x529578,_0x485a5b):_0x529578,_0x2f0b80=_0x57f69a[_0x898ae4(0x27a)]-0x1,_0x21dfc1;_0x2f0b80>=0x0;_0x2f0b80--)(_0x21dfc1=_0x57f69a[_0x2f0b80])&&(_0x44da9f=_0x21dfc1(_0x44da9f)||_0x44da9f);return _0x44da9f;},_0x39ea52=(_0x5e65eb,_0x1c427c)=>(_0x219d41,_0x1e4b88)=>_0x1c427c(_0x219d41,_0x1e4b88,_0x5e65eb);let _0x43e167=class extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(_0xf21b03){super(),this['_liveShareService']=_0xf21b03,this['_init']();}['_init'](){var _0x3ec266=_0x5f4722;[_0x27b8a0[_0x3ec266(0x1f8)]['id'],_0x27b8a0[_0x3ec266(0x23b)]['id'],_0x25c260['SetWorksheetActiveOperation']['id']]['forEach'](_0x2d613f=>{var _0x11da29=_0x3ec266;this[_0x11da29(0x1e7)](this['_liveShareService'][_0x11da29(0x2a0)](_0x2d613f));});}};_0x43e167=_0x3332a3([_0x39ea52(0x0,_0x4c8bc9[_0x5f4722(0x259)](_0xa82131))],_0x43e167);var _0x23d879=Object[_0x5f4722(0x28e)],_0x262e85=Object[_0x5f4722(0x20a)],_0x2218b3=(_0x2b1ff9,_0x41c72b,_0x59a02d)=>_0x41c72b in _0x2b1ff9?_0x23d879(_0x2b1ff9,_0x41c72b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59a02d}):_0x2b1ff9[_0x41c72b]=_0x59a02d,_0x157a4b=(_0x3c2d41,_0x28a361,_0x42f56a,_0x2a5e6f)=>{var _0x515ff3=_0x5f4722;for(var _0x5a11a1=_0x2a5e6f>0x1?void 0x0:_0x2a5e6f?_0x262e85(_0x28a361,_0x42f56a):_0x28a361,_0x35de43=_0x3c2d41[_0x515ff3(0x27a)]-0x1,_0x36f030;_0x35de43>=0x0;_0x35de43--)(_0x36f030=_0x3c2d41[_0x35de43])&&(_0x5a11a1=_0x36f030(_0x5a11a1)||_0x5a11a1);return _0x5a11a1;},_0x22ba3a=(_0x41235c,_0x14da37)=>(_0x4964ca,_0x2f8698)=>_0x14da37(_0x4964ca,_0x2f8698,_0x41235c),_0x436f5e=(_0x1b2fc3,_0x124816,_0x32dde4)=>_0x2218b3(_0x1b2fc3,typeof _0x124816!=_0x5f4722(0x29b)?_0x124816+'':_0x124816,_0x32dde4);const _0x21f216=_0x5f4722(0x1d2);_0x387e7b[_0x5f4722(0x29e)]=class extends _0x4c8bc9[_0x5f4722(0x1cb)]{constructor(_0x2ca78f=_0x117485,_0x192ec,_0x7a1494){var _0x5bc864=_0x5f4722;super(),this[_0x5bc864(0x21c)]=_0x2ca78f,this[_0x5bc864(0x1cd)]=_0x192ec,this[_0x5bc864(0x2b8)]=_0x7a1494;const {..._0x4e217e}=_0x4c8bc9[_0x5bc864(0x2a8)]({},_0x117485,this[_0x5bc864(0x21c)]);this[_0x5bc864(0x2b8)][_0x5bc864(0x248)](_0x32310f,_0x4e217e);}['onStarting'](){var _0x2b36ca=_0x5f4722;_0x4c8bc9[_0x2b36ca(0x252)](this[_0x2b36ca(0x1cd)],_0x4c8bc9[_0x2b36ca(0x1f4)]([[_0xa82131],[_0x387e7b[_0x2b36ca(0x1dc)]],[_0x43e167],[_0x387e7b[_0x2b36ca(0x1ee)]]],this[_0x2b36ca(0x21c)][_0x2b36ca(0x200)])),_0x4c8bc9[_0x2b36ca(0x2b7)](this[_0x2b36ca(0x1cd)],[[_0x43e167]]);}[_0x5f4722(0x287)](){var _0x20355d=_0x5f4722;_0x4c8bc9[_0x20355d(0x2b7)](this[_0x20355d(0x1cd)],[[_0x387e7b[_0x20355d(0x1ee)]]]);}},_0x436f5e(_0x387e7b[_0x5f4722(0x29e)],_0x5f4722(0x263),_0x4c8bc9[_0x5f4722(0x24c)][_0x5f4722(0x292)]),_0x436f5e(_0x387e7b[_0x5f4722(0x29e)],_0x5f4722(0x279),_0x21f216),_0x387e7b[_0x5f4722(0x29e)]=_0x157a4b([_0x4c8bc9['DependentOn'](_0x45e5c0[_0x5f4722(0x1c7)]),_0x22ba3a(0x1,_0x4c8bc9[_0x5f4722(0x259)](_0x4c8bc9['Injector'])),_0x22ba3a(0x2,_0x4c8bc9['IConfigService'])],_0x387e7b[_0x5f4722(0x29e)]),_0x387e7b['LiveShare']=_0x4742b7,_0x387e7b['LiveShareService']=_0xa82131,_0x387e7b[_0x5f4722(0x1f5)]=_0x28b580,Object[_0x5f4722(0x28e)](_0x387e7b,Symbol[_0x5f4722(0x24d)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.9",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.10.
|
|
52
|
-
"@univerjs/core": "0.10.
|
|
53
|
-
"@univerjs/sheets": "0.10.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.12",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.12",
|
|
52
|
+
"@univerjs/core": "0.10.12",
|
|
53
|
+
"@univerjs/sheets": "0.10.12",
|
|
54
|
+
"@univerjs/sheets-ui": "0.10.12",
|
|
55
|
+
"@univerjs/ui": "0.10.12",
|
|
56
|
+
"@univerjs/design": "0.10.12"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
64
|
"vite": "^7.1.10",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.10.12",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|