@univerjs-pro/live-share 0.8.3-nightly.202507021607 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0xab9bfa=_0x34c0;function _0x34c0(_0x821e17,_0x2b5248){var _0x108b52=_0x108b();return _0x34c0=function(_0x34c082,_0x276dcf){_0x34c082=_0x34c082-0x113;var _0x211d58=_0x108b52[_0x34c082];return _0x211d58;},_0x34c0(_0x821e17,_0x2b5248);}(function(_0x73857d,_0x30ae5a){var _0x5bf5b6=_0x34c0,_0x31ac2c=_0x73857d();while(!![]){try{var _0x5bc86a=-parseInt(_0x5bf5b6(0x146))/0x1*(parseInt(_0x5bf5b6(0x133))/0x2)+-parseInt(_0x5bf5b6(0x16a))/0x3*(-parseInt(_0x5bf5b6(0x12b))/0x4)+-parseInt(_0x5bf5b6(0x15e))/0x5*(-parseInt(_0x5bf5b6(0x19e))/0x6)+-parseInt(_0x5bf5b6(0x171))/0x7*(-parseInt(_0x5bf5b6(0x123))/0x8)+parseInt(_0x5bf5b6(0x160))/0x9+parseInt(_0x5bf5b6(0x1ed))/0xa*(parseInt(_0x5bf5b6(0x128))/0xb)+-parseInt(_0x5bf5b6(0x142))/0xc*(parseInt(_0x5bf5b6(0x1cb))/0xd);if(_0x5bc86a===_0x30ae5a)break;else _0x31ac2c['push'](_0x31ac2c['shift']());}catch(_0x17046e){_0x31ac2c['push'](_0x31ac2c['shift']());}}}(_0x108b,0x54152));var U=Object[_0xab9bfa(0x114)],F=(_0x34e3db,_0x570ee7,_0xa07857)=>_0x570ee7 in _0x34e3db?U(_0x34e3db,_0x570ee7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa07857}):_0x34e3db[_0x570ee7]=_0xa07857,v=(_0x30b1f7,_0x519a42,_0x260a40)=>F(_0x30b1f7,typeof _0x519a42!='symbol'?_0x519a42+'':_0x519a42,_0x260a40);Object[_0xab9bfa(0x114)](exports,Symbol[_0xab9bfa(0x16d)],{'value':_0xab9bfa(0x16e)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0xab9bfa(0x1d1)]{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}[_0xab9bfa(0x153)](_0x4d888f){var _0x4fc0ac=_0xab9bfa;return this[_0x4fc0ac(0x12a)][_0x4fc0ac(0x1b8)](_0x4d888f),o[_0x4fc0ac(0x127)](()=>this[_0x4fc0ac(0x12a)][_0x4fc0ac(0x1d2)](_0x4d888f));}[_0xab9bfa(0x1eb)](_0x110f3c){var _0x45b50e=_0xab9bfa;return this[_0x45b50e(0x1e1)][_0x45b50e(0x1b8)](_0x110f3c),o[_0x45b50e(0x127)](()=>this[_0x45b50e(0x1e1)][_0x45b50e(0x1d2)](_0x110f3c));}['shouldShareOperation'](_0x41bbaa){return this['_sharedOperations']['has'](_0x41bbaa);}['getInitialStates'](_0xc34d25){var _0x38bfab=_0xab9bfa;return Array['from'](this[_0x38bfab(0x1e1)])[_0x38bfab(0x1aa)](_0x353e0e=>_0x353e0e(_0xc34d25));}}var H=Object[_0xab9bfa(0x1c2)],V=(_0x2e2b14,_0x4b63cf,_0x36ea36,_0x5ee122)=>{for(var _0x2dc334=_0x5ee122>0x1?void 0x0:_0x5ee122?H(_0x4b63cf,_0x36ea36):_0x4b63cf,_0x52914f=_0x2e2b14['length']-0x1,_0x412782;_0x52914f>=0x0;_0x52914f--)(_0x412782=_0x2e2b14[_0x52914f])&&(_0x2dc334=_0x412782(_0x2dc334)||_0x2dc334);return _0x2dc334;},k=(_0x1945ff,_0x470e61)=>(_0x4de55c,_0x5c447a)=>_0x470e61(_0x4de55c,_0x5c447a,_0x1945ff);let E=class extends o[_0xab9bfa(0x1d1)]{constructor(_0x4975e1){var _0xdfba94=_0xab9bfa;super(),this[_0xdfba94(0x1bb)]=_0x4975e1,this[_0xdfba94(0x175)]();}['_init'](){var _0x138c43=_0xab9bfa;[w['SetZoomRatioOperation']['id'],w[_0x138c43(0x1b6)]['id'],C[_0x138c43(0x1e5)]['id']][_0x138c43(0x182)](_0x15c72c=>{var _0x2658b3=_0x138c43;this[_0x2658b3(0x177)](this[_0x2658b3(0x1bb)][_0x2658b3(0x153)](_0x15c72c));});}};E=V([k(0x0,o[_0xab9bfa(0x168)](O))],E);var u=function(){var _0x2d5b3a=_0xab9bfa;return u=Object[_0x2d5b3a(0x124)]||function(_0x518573){var _0x21ed56=_0x2d5b3a;for(var _0x1d85a7,_0x1a5c83=0x1,_0x74145d=arguments[_0x21ed56(0x140)];_0x1a5c83<_0x74145d;_0x1a5c83++){_0x1d85a7=arguments[_0x1a5c83];for(var _0x342ae9 in _0x1d85a7)Object[_0x21ed56(0x1e0)][_0x21ed56(0x1ac)][_0x21ed56(0x1c3)](_0x1d85a7,_0x342ae9)&&(_0x518573[_0x342ae9]=_0x1d85a7[_0x342ae9]);}return _0x518573;},u[_0x2d5b3a(0x194)](this,arguments);},M=function(_0x275e11,_0x5c3fcd){var _0x714a1a=_0xab9bfa,_0x2ac022={};for(var _0x117317 in _0x275e11)Object[_0x714a1a(0x1e0)][_0x714a1a(0x1ac)][_0x714a1a(0x1c3)](_0x275e11,_0x117317)&&_0x5c3fcd[_0x714a1a(0x1ad)](_0x117317)<0x0&&(_0x2ac022[_0x117317]=_0x275e11[_0x117317]);if(_0x275e11!=null&&typeof Object[_0x714a1a(0x192)]==_0x714a1a(0x18e)){for(var _0x27c91d=0x0,_0x117317=Object[_0x714a1a(0x192)](_0x275e11);_0x27c91d<_0x117317[_0x714a1a(0x140)];_0x27c91d++)_0x5c3fcd[_0x714a1a(0x1ad)](_0x117317[_0x27c91d])<0x0&&Object[_0x714a1a(0x1e0)][_0x714a1a(0x186)][_0x714a1a(0x1c3)](_0x275e11,_0x117317[_0x27c91d])&&(_0x2ac022[_0x117317[_0x27c91d]]=_0x275e11[_0x117317[_0x27c91d]]);}return _0x2ac022;},j=f[_0xab9bfa(0x1e9)](function(_0x1c30c3,_0x2351ab){var _0x110651=_0xab9bfa,_0x599fb7=_0x1c30c3[_0x110651(0x1bf)],_0x24375e=_0x1c30c3['id'],_0x35a65e=_0x1c30c3[_0x110651(0x1c6)],_0x3e5d03=_0x1c30c3[_0x110651(0x1d3)],_0x5153ce=M(_0x1c30c3,[_0x110651(0x1bf),'id',_0x110651(0x1c6),'extend']),_0x26e5c7=_0x110651(0x179)[_0x110651(0x1ec)](_0x24375e,'\x20')[_0x110651(0x1ec)](_0x35a65e||'')['trim'](),_0x1090e0=f[_0x110651(0x143)]('_'[_0x110651(0x1ec)](G()));return y(_0x599fb7,''['concat'](_0x24375e),{'defIds':_0x599fb7[_0x110651(0x1a0)],'idSuffix':_0x1090e0['current']},u({'ref':_0x2351ab,'className':_0x26e5c7},_0x5153ce),_0x3e5d03);});function y(_0x1b85a7,_0x3b27cf,_0x48b0b1,_0x1ab240,_0x8d81d7){var _0x1b1a98=_0xab9bfa;return f[_0x1b1a98(0x12e)](_0x1b85a7[_0x1b1a98(0x1e3)],u(u({'key':_0x3b27cf},q(_0x1b85a7,_0x48b0b1,_0x8d81d7)),_0x1ab240),(W(_0x1b85a7,_0x48b0b1)[_0x1b1a98(0x15d)]||[])['map'](function(_0x44da28,_0x2f7fc0){var _0x514225=_0x1b1a98;return y(_0x44da28,''[_0x514225(0x1ec)](_0x3b27cf,'-')['concat'](_0x1b85a7['tag'],'-')[_0x514225(0x1ec)](_0x2f7fc0),_0x48b0b1,void 0x0,_0x8d81d7);}));}function _0x108b(){var _0x57cc50=['2779281vdycWv','HEADER_MENU','parseProtocolChangeset','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Plugin','getUnitId','LIVESHARE_REQUEST_HOST','BuiltInUIPart','Inject','_collabSession','6813JbfVKu','asObservable','sessionStatus$','toStringTag','Module','event$','Fragment','49SgrijC','none','random','UNIVER_UNKNOWN','_init','_startPresenting','disposeWithMe','shouldShareOperation','univerjs-icon\x20univerjs-icon-','UniverLiveSharePlugin','onStarting','takeUntil','univer-size-4','mergeOverrideWithDependencies','_status','LIVESHARE_NEW_HOST','substring','forEach','merge','path','live-share-icon','propertyIsEnumerable','touchDependencies','CollaborationEvent','Start','type','div','end','PRESENTING','function','complete','displayName','Stop\x20following','getOwnPropertySymbols','memberID','apply','dispose','LIVESHARE_OPERATION','reverse','entries','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','You\x27re\x20following\x20the\x20presenter','FOLLOWING','following','72120YOqZLA','useDependency','defIds','presenter','useObservable','replace','status$','includes','stopFollowing','button','tryStartPresenting','params','map','mutations','hasOwnProperty','indexOf','executeCommand','colorChannel1','connectInjector','DesktopLiveShareController','mask','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_FETCH_OPERATIONS','_presenter','SetScrollOperation','subscribe','add','_stopFollowing','get','_liveShareService','defs','getConfig','clsx','icon','useState','You\x27are\x20offline.','getOwnPropertyDescriptor','call','_handleOnline','UniverCollaborationClientPlugin','className','operations','OPERATION','_collabSessionService','getCurrentTypeOfUnit$','12572235uzHfTI','current','xlink:href','string','throttleTime','registerDependencies','Disposable','delete','extend','has','then','_handleNewChangeSets','_beIdle','idSuffix','_handleOperation','Present\x20this\x20document','currentColor','UNIVER_SHEET','init','_uiPartsService','useEffect','prototype','_reporters','fill','tag','Button','SetWorksheetActiveOperation','_injector','NEW_CHANGESETS','pluginName','forwardRef','RxDisposable','registerInitialStateReporter','concat','10uOsgxP','set','dispose$','startFollowing','0\x200\x2017\x2017','IUIPartsService','defineProperty','_startFollowing','evenodd','LiveShareCoordinator','IUniverInstanceService','setConfig','1em','svg','DependentOn','send','offline','jsxs','_fetchOperations','Injector','_handleNewHost','600056mDVrOI','assign','text','sheet','toDisposable','3611696xHjGMU','getMemberID','_sharedOperations','268shjRcW','DisposableCollection','_config','createElement','idle','UNIVER_LIVE_SHARE_PLUGIN','_status$','_handleOffline','291334MPRMLm','url(#$1','Dropdown','next','_unitID','Subject','LiveShareController','SAME_OPERATION_SHARE_INTERVAL','pipe','_handleTerminate','presenting','registerComponent','not-following','length','unitId','12bVwMQz','useRef','_entities','getTypeOfUnitDisposed$','2BDdTgw','unsubscribe','UniverInstanceType','onCommandExecuted','_startLiveShareCoordinator','getLiveShareCoordinator','LIVESHARE_TERMINATE','LiveShareIcon','jsx','_commandDisposable','IDLE','_configService','stringify','registerSharedOperation','data','LiveShareService','attrs','stopPresenting','_univerInstanceService','parse','OFFLINE','getTypeOfUnitAdded$','SessionStatus','children','120rohhMf','_commandService'];_0x108b=function(){return _0x57cc50;};return _0x108b();}function q(_0x172254,_0x1a944,_0x280494){var _0x3fd966=_0xab9bfa,_0x4e0d5d=u({},_0x172254[_0x3fd966(0x156)]);_0x280494!=null&&_0x280494[_0x3fd966(0x1af)]&&_0x4e0d5d[_0x3fd966(0x1e2)]===_0x3fd966(0x1af)&&(_0x4e0d5d[_0x3fd966(0x1e2)]=_0x280494[_0x3fd966(0x1af)]),_0x172254['tag']===_0x3fd966(0x1b2)&&_0x4e0d5d['id']&&(_0x4e0d5d['id']=_0x4e0d5d['id']+_0x1a944[_0x3fd966(0x1d8)]),Object[_0x3fd966(0x198)](_0x4e0d5d)[_0x3fd966(0x182)](function(_0x5f51f9){var _0x441894=_0x3fd966,_0x1207fd=_0x5f51f9[0x0],_0x1c5b3f=_0x5f51f9[0x1];_0x1207fd===_0x441894(0x1b2)&&typeof _0x1c5b3f==_0x441894(0x1ce)&&(_0x4e0d5d[_0x1207fd]=_0x1c5b3f[_0x441894(0x1a3)](/url\(#(.*)\)/,_0x441894(0x134)['concat'](_0x1a944[_0x441894(0x1d8)],')')));});var _0x2748c8=_0x1a944[_0x3fd966(0x1a0)];return!_0x2748c8||_0x2748c8[_0x3fd966(0x140)]===0x0||(_0x172254[_0x3fd966(0x1e3)]==='use'&&_0x4e0d5d[_0x3fd966(0x1cd)]&&(_0x4e0d5d[_0x3fd966(0x1cd)]=_0x4e0d5d[_0x3fd966(0x1cd)]+_0x1a944[_0x3fd966(0x1d8)]),Object[_0x3fd966(0x198)](_0x4e0d5d)[_0x3fd966(0x182)](function(_0x4d9236){var _0x488edb=_0x3fd966,_0x37b2ff=_0x4d9236[0x0],_0x540ed0=_0x4d9236[0x1];typeof _0x540ed0=='string'&&(_0x4e0d5d[_0x37b2ff]=_0x540ed0[_0x488edb(0x1a3)](/url\(#(.*)\)/,_0x488edb(0x134)[_0x488edb(0x1ec)](_0x1a944[_0x488edb(0x1d8)],')')));})),_0x4e0d5d;}function W(_0x1a4b06,_0x1a67ff){var _0x2ef4ee=_0xab9bfa,_0x4d5031,_0x58bd37=_0x1a67ff['defIds'];return!_0x58bd37||_0x58bd37[_0x2ef4ee(0x140)]===0x0?_0x1a4b06:_0x1a4b06['tag']===_0x2ef4ee(0x1bc)&&(!((_0x4d5031=_0x1a4b06[_0x2ef4ee(0x15d)])===null||_0x4d5031===void 0x0)&&_0x4d5031[_0x2ef4ee(0x140)])?u(u({},_0x1a4b06),{'children':_0x1a4b06['children']['map'](function(_0x2a9332){var _0x45b096=_0x2ef4ee;return typeof _0x2a9332['attrs']['id']==_0x45b096(0x1ce)&&_0x58bd37&&_0x58bd37[_0x45b096(0x1a5)](_0x2a9332[_0x45b096(0x156)]['id'])?u(u({},_0x2a9332),{'attrs':u(u({},_0x2a9332['attrs']),{'id':_0x2a9332[_0x45b096(0x156)]['id']+_0x1a67ff['idSuffix']})}):_0x2a9332;})}):_0x1a4b06;}function G(){var _0x59ad9d=_0xab9bfa;return Math[_0x59ad9d(0x173)]()['toString'](0x24)[_0x59ad9d(0x181)](0x2,0x8);}j[_0xab9bfa(0x190)]='UniverIcon';var B={'tag':_0xab9bfa(0x11b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xab9bfa(0x172),'viewBox':_0xab9bfa(0x1f1),'width':_0xab9bfa(0x11a),'height':_0xab9bfa(0x11a)},'children':[{'tag':_0xab9bfa(0x184),'attrs':{'fill':_0xab9bfa(0x1db),'d':_0xab9bfa(0x1b3)}},{'tag':_0xab9bfa(0x184),'attrs':{'fill':_0xab9bfa(0x1db),'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':'evenodd','clipRule':_0xab9bfa(0x116)}}]},P=f[_0xab9bfa(0x1e9)](function(_0x259ae3,_0x372a2c){var _0x4718f8=_0xab9bfa;return f[_0x4718f8(0x12e)](j,Object[_0x4718f8(0x124)]({},_0x259ae3,{'id':_0x4718f8(0x185),'ref':_0x372a2c,'icon':B}));});P[_0xab9bfa(0x190)]=_0xab9bfa(0x14d);var Y=Object[_0xab9bfa(0x1c2)],R=(_0x4898e3,_0x33b397,_0x2f8d03,_0xe954ec)=>{var _0x21f7fb=_0xab9bfa;for(var _0x27a086=_0xe954ec>0x1?void 0x0:_0xe954ec?Y(_0x33b397,_0x2f8d03):_0x33b397,_0x421ae5=_0x4898e3[_0x21f7fb(0x140)]-0x1,_0x325d73;_0x421ae5>=0x0;_0x421ae5--)(_0x325d73=_0x4898e3[_0x421ae5])&&(_0x27a086=_0x325d73(_0x27a086)||_0x27a086);return _0x27a086;},S=(_0x20ab58,_0x4c38b2)=>(_0x17c2ee,_0x364b4a)=>_0x4c38b2(_0x17c2ee,_0x364b4a,_0x20ab58);exports['LiveShareController']=class extends o[_0xab9bfa(0x1ea)]{constructor(_0x54a1d4,_0x549857,_0x4cce19){var _0x1d5828=_0xab9bfa;super(),v(this,_0x1d5828(0x144),new Map()),(this[_0x1d5828(0x158)]=_0x54a1d4,this[_0x1d5828(0x1e6)]=_0x549857,this['_collabSessionService']=_0x4cce19,this[_0x1d5828(0x175)]());}async[_0xab9bfa(0x14b)](_0x35a52d){var _0x454987=_0xab9bfa;return this[_0x454987(0x144)]['has'](_0x35a52d)||await this[_0x454987(0x14a)](_0x35a52d),this[_0x454987(0x144)][_0x454987(0x1ba)](_0x35a52d);}['_init'](){var _0xba17a7=_0xab9bfa;this['_univerInstanceService'][_0xba17a7(0x15b)](o[_0xba17a7(0x148)][_0xba17a7(0x1dc)])[_0xba17a7(0x13b)](b[_0xba17a7(0x17c)](this[_0xba17a7(0x1ef)]))[_0xba17a7(0x1b7)](async _0x79c1b4=>{var _0x1bea8e=_0xba17a7;const _0x2371cc=_0x79c1b4[_0x1bea8e(0x165)]();this[_0x1bea8e(0x144)]['has'](_0x2371cc)||this[_0x1bea8e(0x14a)](_0x2371cc);}),this[_0xba17a7(0x158)][_0xba17a7(0x145)](o[_0xba17a7(0x148)][_0xba17a7(0x1dc)])[_0xba17a7(0x13b)](b[_0xba17a7(0x17c)](this['dispose$']))['subscribe'](_0x4d6519=>{var _0x3dd018=_0xba17a7;const _0xed35ab=_0x4d6519[_0x3dd018(0x165)](),_0x27b0e1=this[_0x3dd018(0x144)]['get'](_0xed35ab);_0x27b0e1==null||_0x27b0e1['dispose']();});}async[_0xab9bfa(0x14a)](_0x19cad8){var _0x11350d=_0xab9bfa;const _0x3a7828=await this[_0x11350d(0x1c9)]['requireSession'](_0x19cad8),_0x56bb6b=this['_injector']['createInstance'](exports[_0x11350d(0x117)],_0x19cad8,_0x3a7828);return _0x56bb6b[_0x11350d(0x1dd)](),this[_0x11350d(0x144)][_0x11350d(0x1ee)](_0x19cad8,_0x56bb6b),_0x56bb6b;}},exports[_0xab9bfa(0x139)]=R([S(0x0,o[_0xab9bfa(0x118)]),S(0x1,o[_0xab9bfa(0x168)](o[_0xab9bfa(0x121)])),S(0x2,o[_0xab9bfa(0x168)](m['CollaborationSessionService']))],exports[_0xab9bfa(0x139)]);var h=(_0x12e95b=>(_0x12e95b[_0xab9bfa(0x15a)]=_0xab9bfa(0x11e),_0x12e95b['IDLE']=_0xab9bfa(0x12f),_0x12e95b['FOLLOWING']=_0xab9bfa(0x19d),_0x12e95b['NOT_FOLLOWING']=_0xab9bfa(0x13f),_0x12e95b[_0xab9bfa(0x18d)]=_0xab9bfa(0x13d),_0x12e95b))(h||{});const Z=_0xab9bfa(0x13a),J=0xc8;exports[_0xab9bfa(0x117)]=class extends o[_0xab9bfa(0x1ea)]{constructor(_0x2f8341,_0x417ad6,_0x13f8d6,_0x2381c3,_0x147d68){var _0x554c98=_0xab9bfa;super(),v(this,_0x554c98(0x131),new D['BehaviorSubject'](_0x554c98(0x12f))),v(this,'status$',this[_0x554c98(0x131)][_0x554c98(0x16b)]()),v(this,_0x554c98(0x175),!0x1),v(this,_0x554c98(0x14f),null),v(this,_0x554c98(0x1b5),null),(this[_0x554c98(0x137)]=_0x2f8341,this[_0x554c98(0x169)]=_0x417ad6,this['_configService']=_0x13f8d6,this['_liveShareService']=_0x2381c3,this[_0x554c98(0x15f)]=_0x147d68);}get[_0xab9bfa(0x17f)](){var _0x5d1fd1=_0xab9bfa;return this[_0x5d1fd1(0x131)]['getValue']();}['dispose'](){var _0x2a1220=_0xab9bfa,_0x3a1bda;(_0x3a1bda=this[_0x2a1220(0x14f)])==null||_0x3a1bda[_0x2a1220(0x195)](),this[_0x2a1220(0x131)][_0x2a1220(0x136)](_0x2a1220(0x12f)),this['_status$'][_0x2a1220(0x18f)]();}[_0xab9bfa(0x1dd)](){var _0x2a4740=_0xab9bfa;this[_0x2a4740(0x175)]||(this[_0x2a4740(0x175)]=!0x0,this[_0x2a4740(0x169)][_0x2a4740(0x16c)][_0x2a4740(0x13b)](b[_0x2a4740(0x17c)](this[_0x2a4740(0x1ef)]))[_0x2a4740(0x1b7)](_0x4f0120=>{var _0x14da2c=_0x2a4740;switch(_0x4f0120){case m[_0x14da2c(0x15c)]['OFFLINE']:this[_0x14da2c(0x132)]();break;case m[_0x14da2c(0x15c)]['ONLINE']:this[_0x14da2c(0x1c4)]();break;}}),this[_0x2a4740(0x169)][_0x2a4740(0x16f)]['pipe'](b['takeUntil'](this[_0x2a4740(0x1ef)]))['subscribe'](_0x5c5ee4=>{var _0x4133d6=_0x2a4740;const {eventID:_0x5afe16}=_0x5c5ee4;switch(_0x5afe16){case _[_0x4133d6(0x188)][_0x4133d6(0x180)]:this[_0x4133d6(0x122)](_0x5c5ee4);break;case _['CollaborationEvent'][_0x4133d6(0x196)]:this[_0x4133d6(0x1d9)](_0x5c5ee4);break;case _[_0x4133d6(0x188)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _[_0x4133d6(0x188)][_0x4133d6(0x1e7)]:this[_0x4133d6(0x1d6)](_0x5c5ee4);break;}}));}[_0xab9bfa(0x1a8)](){var _0x543a3b=_0xab9bfa;this[_0x543a3b(0x169)][_0x543a3b(0x11d)]({'eventID':_[_0x543a3b(0x188)][_0x543a3b(0x166)],'data':{'unitID':this[_0x543a3b(0x137)],'userID':this['_collabSession'][_0x543a3b(0x129)]()}},this[_0x543a3b(0x137)]);}[_0xab9bfa(0x157)](){var _0x533e6d=_0xab9bfa;this[_0x533e6d(0x17f)]==='presenting'&&(this[_0x533e6d(0x131)]['next'](_0x533e6d(0x12f)),this['_collabSession'][_0x533e6d(0x11d)]({'eventID':_[_0x533e6d(0x188)][_0x533e6d(0x14c)],'data':{'unitID':this[_0x533e6d(0x137)]}},this[_0x533e6d(0x137)]));}[_0xab9bfa(0x1f0)](){var _0x4904d1=_0xab9bfa;this[_0x4904d1(0x17f)]===_0x4904d1(0x13f)&&(this[_0x4904d1(0x131)][_0x4904d1(0x136)](_0x4904d1(0x19d)),this[_0x4904d1(0x115)]());}[_0xab9bfa(0x1a6)](){var _0x358151=_0xab9bfa;this[_0x358151(0x17f)]===_0x358151(0x19d)&&this['_stopFollowing']();}['_handleNewHost'](_0x447730){var _0x3bb0f4=_0xab9bfa;const {presenter:_0x5e8a29}=_0x447730[_0x3bb0f4(0x154)],_0x43e639=this[_0x3bb0f4(0x169)]['getMemberID']();this[_0x3bb0f4(0x1b5)]=_0x5e8a29,_0x5e8a29===_0x43e639?(this[_0x3bb0f4(0x1b9)](),this['_startPresenting']()):this[_0x3bb0f4(0x17f)]!==_0x3bb0f4(0x13f)&&(this['_stopPresenting'](),this[_0x3bb0f4(0x115)]());}['_fetchOperations'](){var _0x3ae7bf=_0xab9bfa;const _0x411843={'eventID':_[_0x3ae7bf(0x188)][_0x3ae7bf(0x1b4)]};this['_collabSession'][_0x3ae7bf(0x11d)](_0x411843,this[_0x3ae7bf(0x137)]);}[_0xab9bfa(0x13c)](){var _0x4e3ce5=_0xab9bfa;this['_presenter']=null,this[_0x4e3ce5(0x17f)]!==_0x4e3ce5(0x13d)&&this[_0x4e3ce5(0x1d7)]();}[_0xab9bfa(0x1d6)](_0x2f65d0){var _0x45b008=_0xab9bfa;if(this['_status']===_0x45b008(0x19d)&&this[_0x45b008(0x1b5)]===_0x2f65d0[_0x45b008(0x154)][_0x45b008(0x193)]){const _0x3ca461=_[_0x45b008(0x162)](_0x2f65d0['data'])[_0x45b008(0x1ab)][_0x45b008(0x197)]()['find'](_0x1fb014=>_0x1fb014['id']===C['InsertSheetMutation']['id']);if(_0x3ca461){const _0x42bdee=_0x3ca461['params'][_0x45b008(0x141)],_0x4444ba=_0x3ca461[_0x45b008(0x1a9)][_0x45b008(0x126)]['id'];setTimeout(()=>{var _0x1b4b58=_0x45b008;this[_0x1b4b58(0x15f)][_0x1b4b58(0x1ae)](C[_0x1b4b58(0x1e5)]['id'],{'unitId':_0x42bdee,'subUnitId':_0x4444ba},{'fromCollab':!0x0});});}}}[_0xab9bfa(0x176)](){var _0x29fd46=_0xab9bfa;this[_0x29fd46(0x131)]['next']('presenting');const _0x1f4268=new Map(),_0x2e83ba=this[_0x29fd46(0x14f)]=new o[(_0x29fd46(0x12c))]();_0x2e83ba[_0x29fd46(0x1b8)](o[_0x29fd46(0x127)](()=>{var _0x20aeaf=_0x29fd46;_0x1f4268[_0x20aeaf(0x182)](_0x451046=>_0x451046['complete']()),_0x1f4268['clear']();})),_0x2e83ba['add'](this[_0x29fd46(0x15f)][_0x29fd46(0x149)](_0x595053=>{var _0x4191ed=_0x29fd46,_0x5ae24c;if(_0x595053[_0x4191ed(0x18a)]!==o['CommandType'][_0x4191ed(0x1c8)]||!this[_0x4191ed(0x1bb)][_0x4191ed(0x178)](_0x595053['id']))return;const {id:_0x3bf50a}=_0x595053;let _0x535286;_0x1f4268[_0x4191ed(0x1d4)](_0x3bf50a)?_0x535286=_0x1f4268[_0x4191ed(0x1ba)](_0x3bf50a):(_0x535286=new D[(_0x4191ed(0x138))](),_0x1f4268['set'](_0x3bf50a,_0x535286),_0x535286[_0x4191ed(0x13b)](b[_0x4191ed(0x1cf)]((_0x5ae24c=this[_0x4191ed(0x151)][_0x4191ed(0x1bd)](Z))!=null?_0x5ae24c:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1440aa=>{var _0x58ca3=_0x4191ed;this[_0x58ca3(0x169)][_0x58ca3(0x11d)]({'eventID':_[_0x58ca3(0x188)][_0x58ca3(0x196)],'data':{'unitID':this[_0x58ca3(0x137)],'operations':{[_0x1440aa['id']]:{'id':_0x1440aa['id'],'params':JSON['stringify'](_0x1440aa[_0x58ca3(0x1a9)])}}}},this[_0x58ca3(0x137)]);})),_0x535286[_0x4191ed(0x136)](_0x595053);})),this[_0x29fd46(0x1bb)]['getInitialStates'](this[_0x29fd46(0x137)])['forEach'](_0x3a0589=>this['_collabSession'][_0x29fd46(0x11d)]({'eventID':_[_0x29fd46(0x188)][_0x29fd46(0x196)],'data':{'unitID':this[_0x29fd46(0x137)],'operations':{[_0x3a0589['id']]:{'id':_0x3a0589['id'],'params':JSON[_0x29fd46(0x152)](_0x3a0589[_0x29fd46(0x1a9)])}}}},this[_0x29fd46(0x137)]));}[_0xab9bfa(0x19a)](){var _0x4e0af5=_0xab9bfa,_0x3d1dbe;this[_0x4e0af5(0x131)][_0x4e0af5(0x136)](_0x4e0af5(0x12f)),(_0x3d1dbe=this[_0x4e0af5(0x14f)])==null||_0x3d1dbe[_0x4e0af5(0x195)](),this[_0x4e0af5(0x14f)]=null;}['_startFollowing'](){var _0x1b4557=_0xab9bfa,_0x483252;(_0x483252=this[_0x1b4557(0x14f)])==null||_0x483252[_0x1b4557(0x195)](),this['_status$'][_0x1b4557(0x136)](_0x1b4557(0x19d));}[_0xab9bfa(0x1d7)](){var _0x5bab3b=_0xab9bfa,_0x23f4eb;this[_0x5bab3b(0x131)][_0x5bab3b(0x136)](_0x5bab3b(0x12f)),(_0x23f4eb=this[_0x5bab3b(0x14f)])==null||_0x23f4eb[_0x5bab3b(0x195)](),this[_0x5bab3b(0x14f)]=null;}[_0xab9bfa(0x1b9)](){var _0x2edfa7=_0xab9bfa,_0x7842e2;this[_0x2edfa7(0x131)]['next'](_0x2edfa7(0x13f)),(_0x7842e2=this[_0x2edfa7(0x14f)])==null||_0x7842e2['dispose']();}[_0xab9bfa(0x1d9)](_0x1cb9a6){var _0x1cb568=_0xab9bfa;if([_0x1cb568(0x13d),_0x1cb568(0x13f),_0x1cb568(0x11e)][_0x1cb568(0x1a5)](this['_status'])||!_0x1cb9a6['data'][_0x1cb568(0x1a1)]||_0x1cb9a6[_0x1cb568(0x154)][_0x1cb568(0x1a1)]===this[_0x1cb568(0x169)]['getMemberID']())return;this['_status']===_0x1cb568(0x12f)&&this[_0x1cb568(0x115)]();const _0x54586e=_0x1cb9a6[_0x1cb568(0x154)][_0x1cb568(0x1c7)];Object['values'](_0x54586e)[_0x1cb568(0x182)](_0x4f037b=>{var _0x2fece7=_0x1cb568;this[_0x2fece7(0x15f)][_0x2fece7(0x1ae)](_0x4f037b['id'],_0x4f037b[_0x2fece7(0x1a9)]?JSON[_0x2fece7(0x159)](_0x4f037b[_0x2fece7(0x1a9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1f8832=_0xab9bfa,_0x297253;this[_0x1f8832(0x131)][_0x1f8832(0x136)](_0x1f8832(0x11e)),(_0x297253=this[_0x1f8832(0x14f)])==null||_0x297253['dispose']();}[_0xab9bfa(0x1c4)](){var _0x515eba=_0xab9bfa;this['_status$']['next']('idle'),this[_0x515eba(0x120)]();}},exports[_0xab9bfa(0x117)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0xab9bfa(0x168)](O)),S(0x4,o['ICommandService'])],exports[_0xab9bfa(0x117)]);function A(){var _0x503b44=_0xab9bfa;const _0x3689a3=p[_0x503b44(0x19f)](exports[_0x503b44(0x139)]),_0xcc50e7=p['useDependency'](o[_0x503b44(0x118)]),_0x2ca050=p[_0x503b44(0x1a2)](()=>_0xcc50e7[_0x503b44(0x1ca)](o[_0x503b44(0x148)][_0x503b44(0x1dc)]),void 0x0,!0x1,[]),[_0x1cf237,_0x3bf5ee]=f['useState'](null),[_0x138528,_0x1f4890]=f[_0x503b44(0x1c0)](h[_0x503b44(0x150)]),_0x5b213d=f[_0x503b44(0x143)](null);return f[_0x503b44(0x1df)](()=>(_0x2ca050&&_0x3689a3[_0x503b44(0x14b)](_0x2ca050['getUnitId']())[_0x503b44(0x1d5)](_0x418073=>{var _0x523804=_0x503b44;_0x3bf5ee(_0x418073),_0x5b213d['current']=_0x418073[_0x523804(0x1a4)]['subscribe'](_0x3f88dd=>{_0x1f4890(_0x3f88dd);});}),()=>{var _0x34dec6=_0x503b44,_0x5b6767;(_0x5b6767=_0x5b213d[_0x34dec6(0x1cc)])==null||_0x5b6767[_0x34dec6(0x147)](),_0x5b213d[_0x34dec6(0x1cc)]=null;}),[_0x2ca050,_0x3689a3]),_0x1cf237?l[_0x503b44(0x14e)](g[_0x503b44(0x135)],{'align':_0x503b44(0x18c),'disabled':_0x138528===h['OFFLINE'],'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[_0x503b44(0x14e)](K,{'status':_0x138528,'coordinator':_0x1cf237}),'children':l[_0x503b44(0x14e)](_0x503b44(0x1a7),{'className':g[_0x503b44(0x1be)](_0x503b44(0x163),{'univer-cursor-not-allowed':_0x138528===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x138528!==h[_0x503b44(0x15a)]}),'type':_0x503b44(0x1a7),'children':l[_0x503b44(0x14e)](P,{'className':_0x503b44(0x17d)})})}):null;}function K(_0x599b9e){var _0x3dd777=_0xab9bfa;const {status:_0x1aab2b,coordinator:_0x248b2e}=_0x599b9e;switch(_0x1aab2b){case h[_0x3dd777(0x150)]:return l['jsx'](z,{'coordinator':_0x248b2e});case h[_0x3dd777(0x19c)]:return l[_0x3dd777(0x14e)](Q,{'coordinator':_0x248b2e});case h['NOT_FOLLOWING']:return l[_0x3dd777(0x14e)](X,{'coordinator':_0x248b2e});case h[_0x3dd777(0x15a)]:return l[_0x3dd777(0x14e)](te,{});case h['PRESENTING']:return l[_0x3dd777(0x14e)](ee,{'coordinator':_0x248b2e});default:return null;}}function z(_0x29ba50){var _0x297b83=_0xab9bfa;const {coordinator:_0x282344}=_0x29ba50;return l[_0x297b83(0x11f)](l[_0x297b83(0x170)],{'children':[l[_0x297b83(0x14e)](_0x297b83(0x18b),{'className':_0x297b83(0x199),'children':_0x297b83(0x1da)}),l[_0x297b83(0x14e)](g['Button'],{'onClick':()=>_0x282344[_0x297b83(0x1a8)](),'children':_0x297b83(0x189)})]});}function Q(_0x41ef9a){var _0x505b9e=_0xab9bfa;const {coordinator:_0x1c7795}=_0x41ef9a;return l[_0x505b9e(0x11f)](l['Fragment'],{'children':[l['jsx'](_0x505b9e(0x18b),{'className':_0x505b9e(0x199),'children':_0x505b9e(0x19b)}),l[_0x505b9e(0x14e)](g[_0x505b9e(0x1e4)],{'onClick':()=>_0x1c7795['stopFollowing'](),'children':_0x505b9e(0x191)})]});}function X(_0xc0ca8d){var _0x39a364=_0xab9bfa;const {coordinator:_0x2cc761}=_0xc0ca8d;return l[_0x39a364(0x11f)](l[_0x39a364(0x170)],{'children':[l[_0x39a364(0x14e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x39a364(0x14e)](g[_0x39a364(0x1e4)],{'variant':_0x39a364(0x125),'onClick':()=>_0x2cc761[_0x39a364(0x1f0)](),'children':'Start\x20following'})]});}function ee(_0x274523){var _0x2ecbac=_0xab9bfa;const {coordinator:_0x50c6d6}=_0x274523;return l[_0x2ecbac(0x11f)](l[_0x2ecbac(0x170)],{'children':[l[_0x2ecbac(0x14e)](_0x2ecbac(0x18b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2ecbac(0x14e)](g[_0x2ecbac(0x1e4)],{'variant':'default','onClick':()=>_0x50c6d6[_0x2ecbac(0x157)](),'children':'Stop\x20presenting'})]});}function te(){var _0x908a89=_0xab9bfa;return l[_0x908a89(0x14e)](l['Fragment'],{'children':_0x908a89(0x1c1)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3ab1eb,_0x3899f5,_0x3bb727,_0x397c35)=>{var _0x3d75b4=_0xab9bfa;for(var _0x3ec1ae=_0x397c35>0x1?void 0x0:_0x397c35?ie(_0x3899f5,_0x3bb727):_0x3899f5,_0xc9ae6d=_0x3ab1eb[_0x3d75b4(0x140)]-0x1,_0x3c4a67;_0xc9ae6d>=0x0;_0xc9ae6d--)(_0x3c4a67=_0x3ab1eb[_0xc9ae6d])&&(_0x3ec1ae=_0x3c4a67(_0x3ec1ae)||_0x3ec1ae);return _0x3ec1ae;},L=(_0xcde1ca,_0x2273dd)=>(_0x4d13f8,_0x43b997)=>_0x2273dd(_0x4d13f8,_0x43b997,_0xcde1ca);exports[_0xab9bfa(0x1b1)]=class extends o[_0xab9bfa(0x1d1)]{constructor(_0x73fef0,_0x5819a0){var _0x46f164=_0xab9bfa;super(),this[_0x46f164(0x1e6)]=_0x73fef0,this[_0x46f164(0x1de)]=_0x5819a0,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x158d0e=_0xab9bfa;this[_0x158d0e(0x177)](this[_0x158d0e(0x1de)][_0x158d0e(0x13e)](p[_0x158d0e(0x167)][_0x158d0e(0x161)],()=>p[_0x158d0e(0x1b0)](A,this[_0x158d0e(0x1e6)])));}},exports[_0xab9bfa(0x1b1)]=ne([L(0x0,o['Inject'](o[_0xab9bfa(0x121)])),L(0x1,p[_0xab9bfa(0x113)])],exports['DesktopLiveShareController']);var re=Object[_0xab9bfa(0x114)],se=Object['getOwnPropertyDescriptor'],oe=(_0x2f1860,_0x5e4a72,_0x5286d0)=>_0x5e4a72 in _0x2f1860?re(_0x2f1860,_0x5e4a72,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5286d0}):_0x2f1860[_0x5e4a72]=_0x5286d0,ae=(_0x44abcf,_0x4907b3,_0x3af3b2,_0x59404d)=>{var _0x18e20a=_0xab9bfa;for(var _0xde1ffc=_0x59404d>0x1?void 0x0:_0x59404d?se(_0x4907b3,_0x3af3b2):_0x4907b3,_0x3a16c7=_0x44abcf[_0x18e20a(0x140)]-0x1,_0x417e4d;_0x3a16c7>=0x0;_0x3a16c7--)(_0x417e4d=_0x44abcf[_0x3a16c7])&&(_0xde1ffc=_0x417e4d(_0xde1ffc)||_0xde1ffc);return _0xde1ffc;},N=(_0x55a37e,_0xc09c7f)=>(_0x15475f,_0x57a020)=>_0xc09c7f(_0x15475f,_0x57a020,_0x55a37e),T=(_0x142944,_0x3ed3b1,_0x587624)=>oe(_0x142944,typeof _0x3ed3b1!='symbol'?_0x3ed3b1+'':_0x3ed3b1,_0x587624);const le=_0xab9bfa(0x130);exports[_0xab9bfa(0x17a)]=class extends o[_0xab9bfa(0x164)]{constructor(_0x230fd2=x,_0x19da6d,_0x31b1ef){var _0x106e36=_0xab9bfa;super(),this[_0x106e36(0x12d)]=_0x230fd2,this[_0x106e36(0x1e6)]=_0x19da6d,this[_0x106e36(0x151)]=_0x31b1ef;const {..._0x19fe27}=o[_0x106e36(0x183)]({},x,this[_0x106e36(0x12d)]);this[_0x106e36(0x151)][_0x106e36(0x119)]($,_0x19fe27);}[_0xab9bfa(0x17b)](){var _0x132abb=_0xab9bfa;o[_0x132abb(0x1d0)](this[_0x132abb(0x1e6)],o[_0x132abb(0x17e)]([[O],[exports[_0x132abb(0x139)]],[E],[exports[_0x132abb(0x1b1)]]],this[_0x132abb(0x12d)]['override'])),o[_0x132abb(0x187)](this['_injector'],[[E]]);}['onRendered'](){var _0x3988d4=_0xab9bfa;o[_0x3988d4(0x187)](this[_0x3988d4(0x1e6)],[[exports[_0x3988d4(0x1b1)]]]);}},T(exports[_0xab9bfa(0x17a)],_0xab9bfa(0x18a),o[_0xab9bfa(0x148)][_0xab9bfa(0x174)]),T(exports[_0xab9bfa(0x17a)],_0xab9bfa(0x1e8),le),exports[_0xab9bfa(0x17a)]=ae([o[_0xab9bfa(0x11c)](m[_0xab9bfa(0x1c5)]),N(0x1,o[_0xab9bfa(0x168)](o[_0xab9bfa(0x121)])),N(0x2,o['IConfigService'])],exports[_0xab9bfa(0x17a)]),exports['LiveShare']=A,exports[_0xab9bfa(0x155)]=O,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x2d6643=_0x5e15;(function(_0xa8cc45,_0x5bd30c){var _0x267cfe=_0x5e15,_0x15bffd=_0xa8cc45();while(!![]){try{var _0x4e849f=parseInt(_0x267cfe(0x244))/0x1+-parseInt(_0x267cfe(0x246))/0x2+-parseInt(_0x267cfe(0x1af))/0x3*(parseInt(_0x267cfe(0x24b))/0x4)+-parseInt(_0x267cfe(0x22c))/0x5*(-parseInt(_0x267cfe(0x243))/0x6)+parseInt(_0x267cfe(0x256))/0x7*(parseInt(_0x267cfe(0x1ab))/0x8)+parseInt(_0x267cfe(0x212))/0x9*(parseInt(_0x267cfe(0x19f))/0xa)+-parseInt(_0x267cfe(0x1b7))/0xb*(-parseInt(_0x267cfe(0x249))/0xc);if(_0x4e849f===_0x5bd30c)break;else _0x15bffd['push'](_0x15bffd['shift']());}catch(_0xa024bb){_0x15bffd['push'](_0x15bffd['shift']());}}}(_0x1946,0xf37da));function _0x1946(){var _0x3b694b=['Inject','sheet','getInitialStates','pluginName','_configService','OFFLINE','tag','_reporters','Injector','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','useObservable','setConfig','_status','presenting','useEffect','registerDependencies','length','_commandService','fill','_startLiveShareCoordinator','_handleNewChangeSets','_beIdle','_handleOnline','getUnitId','_liveShareService','20mSzboh','_startFollowing','_collabSession','jsx','IUIPartsService','registerInitialStateReporter','BehaviorSubject','url(#$1','useRef','default','SetZoomRatioOperation','jsxs','558088qVbwQV','indexOf','none','LIVESHARE_NEW_HOST','121731KffDyC','override','_startPresenting','DisposableCollection','map','_stopPresenting','IDLE','symbol','11hJDHcx','_status$','HEADER_MENU','idle','includes','FOLLOWING','_presenter','useDependency','div','apply','get','prototype','stopPresenting','http://www.w3.org/2000/svg','touchDependencies','live-share.config','merge','UniverInstanceType','disposeWithMe','rxjs/operators','toDisposable','executeCommand','entries','UNIVER_SHEET','NOT_FOLLOWING','currentColor','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','event$','values','getMemberID','_collabSessionService','defIds','connectInjector','UNIVER_UNKNOWN','status$','getOwnPropertySymbols','parseProtocolChangeset','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','useState','asObservable','not-following','DesktopLiveShareController','onStarting','@univerjs/design','colorChannel1','mask','dispose','CommandType','_mountLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','data','add','idSuffix','subscribe','LiveShareStatus','_handleOffline','_handleTerminate','complete','IUniverInstanceService','substring','univer-size-4','evenodd','Module','parse','You\x27are\x20offline.','Present\x20this\x20document','params','CollaborationEvent','ONLINE','LIVESHARE_OPERATION','@univerjs/sheets','LiveShareIcon','LIVESHARE_TERMINATE','Button','takeUntil','_config','send','icon','UniverCollaborationClientPlugin','Dropdown','call','LiveShare','Plugin','startFollowing','forEach','@univerjs/sheets-ui','InsertSheetMutation','@univerjs-pro/collaboration','unsubscribe','7971993aopCOL','LiveShareController','ICommandService','children','Disposable','random','pipe','toStringTag','IConfigService','hasOwnProperty','createInstance','Stop\x20presenting','createElement','SessionStatus','has','init','next','SetWorksheetActiveOperation','following','_handleOperation','defs','_uiPartsService','concat','registerSharedOperation','UNIVER_LIVE_SHARE_PLUGIN','1em','6066945yrvqQx','@univerjs-pro/collaboration-client','replace','_fetchOperations','xlink:href','LIVESHARE_FETCH_OPERATIONS','attrs','SetScrollOperation','getTypeOfUnitDisposed$','DependentOn','offline','live-share-icon','sessionStatus$','requireSession','_unitID','PRESENTING','_univerInstanceService','displayName','throttleTime','defineProperty','assign','onRendered','_sharedOperations','6uBodfK','1364763xWVXlv','button','3567010IkfNoE','from','presenter','1274244vyBGqZ','getLiveShareCoordinator','172pOwYQz','set','getValue','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','You\x27re\x20presenting\x20the\x20document','_injector','_init','stopFollowing','current','delete','7yLAIoG','stringify','_stopFollowing','UniverLiveSharePlugin','react','text','getOwnPropertyDescriptor','mergeOverrideWithDependencies','reverse','univer-mb-3\x20univer-w-full\x20univer-text-sm','_entities','OPERATION','clear','memberID','_handleNewHost','rxjs','univerjs-icon\x20univerjs-icon-','forwardRef','type','0\x200\x2017\x2017','dispose$','Fragment','string'];_0x1946=function(){return _0x3b694b;};return _0x1946();}var U=Object[_0x2d6643(0x23f)],F=(_0x5f538b,_0x47fb6c,_0x3a1712)=>_0x47fb6c in _0x5f538b?U(_0x5f538b,_0x47fb6c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a1712}):_0x5f538b[_0x47fb6c]=_0x3a1712,v=(_0x23928a,_0x2b9a3b,_0x20079c)=>F(_0x23928a,typeof _0x2b9a3b!='symbol'?_0x2b9a3b+'':_0x2b9a3b,_0x20079c);Object[_0x2d6643(0x23f)](exports,Symbol[_0x2d6643(0x219)],{'value':_0x2d6643(0x1f7)});const m=require(_0x2d6643(0x22d)),o=require('@univerjs/core'),C=require(_0x2d6643(0x1ff)),w=require(_0x2d6643(0x20e)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x2d6643(0x1e3)),f=require(_0x2d6643(0x25a)),_=require(_0x2d6643(0x210)),D=require(_0x2d6643(0x265)),b=require(_0x2d6643(0x1ca)),$=_0x2d6643(0x1c6),x={};class O extends o[_0x2d6643(0x216)]{constructor(){var _0x4df562=_0x2d6643;super(...arguments),v(this,_0x4df562(0x242),new Set()),v(this,_0x4df562(0x274),new Set());}[_0x2d6643(0x229)](_0x49e912){var _0x24aec8=_0x2d6643;return this[_0x24aec8(0x242)]['add'](_0x49e912),o[_0x24aec8(0x1cb)](()=>this[_0x24aec8(0x242)][_0x24aec8(0x255)](_0x49e912));}[_0x2d6643(0x1a4)](_0x17909f){var _0x2a0444=_0x2d6643;return this['_reporters'][_0x2a0444(0x1ec)](_0x17909f),o[_0x2a0444(0x1cb)](()=>this[_0x2a0444(0x274)]['delete'](_0x17909f));}['shouldShareOperation'](_0x118b71){var _0x47d6cf=_0x2d6643;return this[_0x47d6cf(0x242)][_0x47d6cf(0x220)](_0x118b71);}[_0x2d6643(0x26f)](_0x2fa09b){var _0x34c865=_0x2d6643;return Array[_0x34c865(0x247)](this[_0x34c865(0x274)])[_0x34c865(0x1b3)](_0x16ed13=>_0x16ed13(_0x2fa09b));}}var H=Object[_0x2d6643(0x25c)],V=(_0x17efa7,_0x53a89f,_0x5ee570,_0x48661e)=>{var _0x4444b1=_0x2d6643;for(var _0x395675=_0x48661e>0x1?void 0x0:_0x48661e?H(_0x53a89f,_0x5ee570):_0x53a89f,_0x3f9da0=_0x17efa7[_0x4444b1(0x196)]-0x1,_0x3bd493;_0x3f9da0>=0x0;_0x3f9da0--)(_0x3bd493=_0x17efa7[_0x3f9da0])&&(_0x395675=_0x3bd493(_0x395675)||_0x395675);return _0x395675;},k=(_0x448b1c,_0x389094)=>(_0x1231b8,_0x47ab1c)=>_0x389094(_0x1231b8,_0x47ab1c,_0x448b1c);let E=class extends o['Disposable']{constructor(_0x3c81c){var _0x4e8489=_0x2d6643;super(),this[_0x4e8489(0x19e)]=_0x3c81c,this[_0x4e8489(0x252)]();}['_init'](){var _0x116e67=_0x2d6643;[w[_0x116e67(0x1a9)]['id'],w[_0x116e67(0x233)]['id'],C[_0x116e67(0x223)]['id']][_0x116e67(0x20d)](_0x1b6870=>{var _0x417911=_0x116e67;this[_0x417911(0x1c9)](this[_0x417911(0x19e)][_0x417911(0x229)](_0x1b6870));});}};E=V([k(0x0,o[_0x2d6643(0x26d)](O))],E);var u=function(){var _0x3f8654=_0x2d6643;return u=Object[_0x3f8654(0x240)]||function(_0x511796){var _0x197fe8=_0x3f8654;for(var _0x376b78,_0x2c6335=0x1,_0x28fe03=arguments[_0x197fe8(0x196)];_0x2c6335<_0x28fe03;_0x2c6335++){_0x376b78=arguments[_0x2c6335];for(var _0x419e97 in _0x376b78)Object[_0x197fe8(0x1c2)][_0x197fe8(0x21b)][_0x197fe8(0x209)](_0x376b78,_0x419e97)&&(_0x511796[_0x419e97]=_0x376b78[_0x419e97]);}return _0x511796;},u[_0x3f8654(0x1c0)](this,arguments);},M=function(_0xfc587f,_0x1cf6dc){var _0x247566=_0x2d6643,_0x47b19f={};for(var _0x1b77d8 in _0xfc587f)Object[_0x247566(0x1c2)][_0x247566(0x21b)][_0x247566(0x209)](_0xfc587f,_0x1b77d8)&&_0x1cf6dc[_0x247566(0x1ac)](_0x1b77d8)<0x0&&(_0x47b19f[_0x1b77d8]=_0xfc587f[_0x1b77d8]);if(_0xfc587f!=null&&typeof Object[_0x247566(0x1da)]=='function'){for(var _0x28118f=0x0,_0x1b77d8=Object['getOwnPropertySymbols'](_0xfc587f);_0x28118f<_0x1b77d8[_0x247566(0x196)];_0x28118f++)_0x1cf6dc[_0x247566(0x1ac)](_0x1b77d8[_0x28118f])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x247566(0x209)](_0xfc587f,_0x1b77d8[_0x28118f])&&(_0x47b19f[_0x1b77d8[_0x28118f]]=_0xfc587f[_0x1b77d8[_0x28118f]]);}return _0x47b19f;},j=f[_0x2d6643(0x267)](function(_0x4e8cb6,_0x459542){var _0x37a01a=_0x2d6643,_0x49146e=_0x4e8cb6[_0x37a01a(0x206)],_0xc8be71=_0x4e8cb6['id'],_0x12572c=_0x4e8cb6['className'],_0xabac0f=_0x4e8cb6['extend'],_0x2843aa=M(_0x4e8cb6,[_0x37a01a(0x206),'id','className','extend']),_0x22f52a=_0x37a01a(0x266)[_0x37a01a(0x228)](_0xc8be71,'\x20')['concat'](_0x12572c||'')['trim'](),_0xb3e025=f[_0x37a01a(0x1a7)]('_'[_0x37a01a(0x228)](G()));return y(_0x49146e,''[_0x37a01a(0x228)](_0xc8be71),{'defIds':_0x49146e[_0x37a01a(0x1d6)],'idSuffix':_0xb3e025[_0x37a01a(0x254)]},u({'ref':_0x459542,'className':_0x22f52a},_0x2843aa),_0xabac0f);});function y(_0x2ce1c8,_0x332bab,_0x306fa4,_0x27d15e,_0x1b4e39){var _0x41208a=_0x2d6643;return f[_0x41208a(0x21e)](_0x2ce1c8[_0x41208a(0x273)],u(u({'key':_0x332bab},q(_0x2ce1c8,_0x306fa4,_0x1b4e39)),_0x27d15e),(W(_0x2ce1c8,_0x306fa4)['children']||[])[_0x41208a(0x1b3)](function(_0x53d5b2,_0x1a3188){var _0x5a4cb1=_0x41208a;return y(_0x53d5b2,''[_0x5a4cb1(0x228)](_0x332bab,'-')[_0x5a4cb1(0x228)](_0x2ce1c8['tag'],'-')[_0x5a4cb1(0x228)](_0x1a3188),_0x306fa4,void 0x0,_0x1b4e39);}));}function q(_0x2caf72,_0x3d9fc7,_0x1c8ad1){var _0x4eabbe=_0x2d6643,_0x57b0dd=u({},_0x2caf72[_0x4eabbe(0x232)]);_0x1c8ad1!=null&&_0x1c8ad1[_0x4eabbe(0x1e4)]&&_0x57b0dd[_0x4eabbe(0x198)]===_0x4eabbe(0x1e4)&&(_0x57b0dd[_0x4eabbe(0x198)]=_0x1c8ad1[_0x4eabbe(0x1e4)]),_0x2caf72[_0x4eabbe(0x273)]===_0x4eabbe(0x1e5)&&_0x57b0dd['id']&&(_0x57b0dd['id']=_0x57b0dd['id']+_0x3d9fc7[_0x4eabbe(0x1ed)]),Object[_0x4eabbe(0x1cd)](_0x57b0dd)[_0x4eabbe(0x20d)](function(_0xc1864b){var _0x3d4bfd=_0x4eabbe,_0x2afb67=_0xc1864b[0x0],_0x2fbfb8=_0xc1864b[0x1];_0x2afb67===_0x3d4bfd(0x1e5)&&typeof _0x2fbfb8==_0x3d4bfd(0x26c)&&(_0x57b0dd[_0x2afb67]=_0x2fbfb8[_0x3d4bfd(0x22e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3d9fc7['idSuffix'],')')));});var _0x1fe94e=_0x3d9fc7[_0x4eabbe(0x1d6)];return!_0x1fe94e||_0x1fe94e[_0x4eabbe(0x196)]===0x0||(_0x2caf72[_0x4eabbe(0x273)]==='use'&&_0x57b0dd[_0x4eabbe(0x230)]&&(_0x57b0dd[_0x4eabbe(0x230)]=_0x57b0dd[_0x4eabbe(0x230)]+_0x3d9fc7[_0x4eabbe(0x1ed)]),Object[_0x4eabbe(0x1cd)](_0x57b0dd)[_0x4eabbe(0x20d)](function(_0xb32eab){var _0x3c804a=_0x4eabbe,_0x26d971=_0xb32eab[0x0],_0x9748f9=_0xb32eab[0x1];typeof _0x9748f9==_0x3c804a(0x26c)&&(_0x57b0dd[_0x26d971]=_0x9748f9[_0x3c804a(0x22e)](/url\(#(.*)\)/,_0x3c804a(0x1a6)[_0x3c804a(0x228)](_0x3d9fc7[_0x3c804a(0x1ed)],')')));})),_0x57b0dd;}function _0x5e15(_0xfc5ac7,_0x17d2d9){var _0x194626=_0x1946();return _0x5e15=function(_0x5e15b3,_0x15c903){_0x5e15b3=_0x5e15b3-0x18d;var _0x1b35d5=_0x194626[_0x5e15b3];return _0x1b35d5;},_0x5e15(_0xfc5ac7,_0x17d2d9);}function W(_0x3d7181,_0xfb94cd){var _0xd50100=_0x2d6643,_0x10d71c,_0x27c977=_0xfb94cd[_0xd50100(0x1d6)];return!_0x27c977||_0x27c977[_0xd50100(0x196)]===0x0?_0x3d7181:_0x3d7181[_0xd50100(0x273)]===_0xd50100(0x226)&&(!((_0x10d71c=_0x3d7181[_0xd50100(0x215)])===null||_0x10d71c===void 0x0)&&_0x10d71c[_0xd50100(0x196)])?u(u({},_0x3d7181),{'children':_0x3d7181[_0xd50100(0x215)][_0xd50100(0x1b3)](function(_0xbe7d82){var _0xe17f8b=_0xd50100;return typeof _0xbe7d82[_0xe17f8b(0x232)]['id']=='string'&&_0x27c977&&_0x27c977[_0xe17f8b(0x1bb)](_0xbe7d82[_0xe17f8b(0x232)]['id'])?u(u({},_0xbe7d82),{'attrs':u(u({},_0xbe7d82[_0xe17f8b(0x232)]),{'id':_0xbe7d82[_0xe17f8b(0x232)]['id']+_0xfb94cd[_0xe17f8b(0x1ed)]})}):_0xbe7d82;})}):_0x3d7181;}function G(){var _0x9c7844=_0x2d6643;return Math[_0x9c7844(0x217)]()['toString'](0x24)[_0x9c7844(0x1f4)](0x2,0x8);}j[_0x2d6643(0x23d)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':_0x2d6643(0x1c4),'fill':_0x2d6643(0x1ad),'viewBox':_0x2d6643(0x269),'width':_0x2d6643(0x22b),'height':_0x2d6643(0x22b)},'children':[{'tag':'path','attrs':{'fill':_0x2d6643(0x1d0),'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':'path','attrs':{'fill':_0x2d6643(0x1d0),'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':_0x2d6643(0x1f6),'clipRule':_0x2d6643(0x1f6)}}]},P=f[_0x2d6643(0x267)](function(_0x77b22,_0x5d108c){var _0x5d543e=_0x2d6643;return f[_0x5d543e(0x21e)](j,Object['assign']({},_0x77b22,{'id':_0x5d543e(0x237),'ref':_0x5d108c,'icon':B}));});P[_0x2d6643(0x23d)]=_0x2d6643(0x200);var Y=Object[_0x2d6643(0x25c)],R=(_0x50bd0c,_0x6a3f4a,_0x1d8f5b,_0x187daf)=>{var _0x3ec6f2=_0x2d6643;for(var _0x1ccdb3=_0x187daf>0x1?void 0x0:_0x187daf?Y(_0x6a3f4a,_0x1d8f5b):_0x6a3f4a,_0x29d224=_0x50bd0c[_0x3ec6f2(0x196)]-0x1,_0x52db02;_0x29d224>=0x0;_0x29d224--)(_0x52db02=_0x50bd0c[_0x29d224])&&(_0x1ccdb3=_0x52db02(_0x1ccdb3)||_0x1ccdb3);return _0x1ccdb3;},S=(_0x3e3a43,_0x3d2dca)=>(_0x560fbb,_0x3a8b3e)=>_0x3d2dca(_0x560fbb,_0x3a8b3e,_0x3e3a43);exports[_0x2d6643(0x213)]=class extends o['RxDisposable']{constructor(_0x600fe8,_0x2091c0,_0x2605a6){var _0x7b24f=_0x2d6643;super(),v(this,_0x7b24f(0x260),new Map()),(this[_0x7b24f(0x23c)]=_0x600fe8,this[_0x7b24f(0x251)]=_0x2091c0,this[_0x7b24f(0x1d5)]=_0x2605a6,this['_init']());}async[_0x2d6643(0x24a)](_0xa06772){var _0x48a0af=_0x2d6643;return this['_entities'][_0x48a0af(0x220)](_0xa06772)||await this[_0x48a0af(0x199)](_0xa06772),this[_0x48a0af(0x260)][_0x48a0af(0x1c1)](_0xa06772);}['_init'](){var _0x5b02f7=_0x2d6643;this[_0x5b02f7(0x23c)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x5b02f7(0x1ce)])[_0x5b02f7(0x218)](b['takeUntil'](this[_0x5b02f7(0x26a)]))[_0x5b02f7(0x1ee)](async _0x441171=>{var _0x4fc56c=_0x5b02f7;const _0x248c99=_0x441171[_0x4fc56c(0x19d)]();this['_entities']['has'](_0x248c99)||this[_0x4fc56c(0x199)](_0x248c99);}),this[_0x5b02f7(0x23c)][_0x5b02f7(0x234)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x5b02f7(0x218)](b[_0x5b02f7(0x203)](this['dispose$']))[_0x5b02f7(0x1ee)](_0x42509f=>{var _0x3c8f3b=_0x5b02f7;const _0x1499cc=_0x42509f['getUnitId'](),_0xa5927d=this[_0x3c8f3b(0x260)][_0x3c8f3b(0x1c1)](_0x1499cc);_0xa5927d==null||_0xa5927d[_0x3c8f3b(0x1e6)]();});}async[_0x2d6643(0x199)](_0x5681e9){var _0x5190e6=_0x2d6643;const _0xef1b2b=await this[_0x5190e6(0x1d5)][_0x5190e6(0x239)](_0x5681e9),_0x1b137e=this[_0x5190e6(0x251)][_0x5190e6(0x21c)](exports[_0x5190e6(0x24e)],_0x5681e9,_0xef1b2b);return _0x1b137e['init'](),this[_0x5190e6(0x260)]['set'](_0x5681e9,_0x1b137e),_0x1b137e;}},exports[_0x2d6643(0x213)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),S(0x2,o[_0x2d6643(0x26d)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x31838a=>(_0x31838a[_0x2d6643(0x272)]=_0x2d6643(0x236),_0x31838a[_0x2d6643(0x1b5)]=_0x2d6643(0x1ba),_0x31838a[_0x2d6643(0x1bc)]=_0x2d6643(0x224),_0x31838a[_0x2d6643(0x1cf)]=_0x2d6643(0x1e0),_0x31838a[_0x2d6643(0x23b)]=_0x2d6643(0x193),_0x31838a))(h||{});const Z=_0x2d6643(0x18f),J=0xc8;exports[_0x2d6643(0x24e)]=class extends o['RxDisposable']{constructor(_0x56a80d,_0x33ebab,_0xa47140,_0x4ce241,_0x2e4867){var _0x52d545=_0x2d6643;super(),v(this,_0x52d545(0x1b8),new D[(_0x52d545(0x1a5))](_0x52d545(0x1ba))),v(this,'status$',this[_0x52d545(0x1b8)][_0x52d545(0x1df)]()),v(this,'_init',!0x1),v(this,_0x52d545(0x1dd),null),v(this,_0x52d545(0x1bd),null),(this[_0x52d545(0x23a)]=_0x56a80d,this[_0x52d545(0x1a1)]=_0x33ebab,this[_0x52d545(0x271)]=_0xa47140,this[_0x52d545(0x19e)]=_0x4ce241,this['_commandService']=_0x2e4867);}get[_0x2d6643(0x192)](){var _0x43fb37=_0x2d6643;return this[_0x43fb37(0x1b8)][_0x43fb37(0x24d)]();}[_0x2d6643(0x1e6)](){var _0x297407=_0x2d6643,_0x5bbed4;(_0x5bbed4=this[_0x297407(0x1dd)])==null||_0x5bbed4[_0x297407(0x1e6)](),this[_0x297407(0x1b8)][_0x297407(0x222)](_0x297407(0x1ba)),this[_0x297407(0x1b8)]['complete']();}[_0x2d6643(0x221)](){var _0x1ff050=_0x2d6643;this[_0x1ff050(0x252)]||(this[_0x1ff050(0x252)]=!0x0,this[_0x1ff050(0x1a1)][_0x1ff050(0x238)][_0x1ff050(0x218)](b[_0x1ff050(0x203)](this[_0x1ff050(0x26a)]))[_0x1ff050(0x1ee)](_0x5e2ae7=>{var _0x205f02=_0x1ff050;switch(_0x5e2ae7){case m[_0x205f02(0x21f)][_0x205f02(0x272)]:this[_0x205f02(0x1f0)]();break;case m[_0x205f02(0x21f)][_0x205f02(0x1fd)]:this[_0x205f02(0x19c)]();break;}}),this['_collabSession'][_0x1ff050(0x1d2)][_0x1ff050(0x218)](b[_0x1ff050(0x203)](this['dispose$']))[_0x1ff050(0x1ee)](_0x541250=>{var _0x45c276=_0x1ff050;const {eventID:_0x2a6214}=_0x541250;switch(_0x2a6214){case _['CollaborationEvent'][_0x45c276(0x1ae)]:this[_0x45c276(0x264)](_0x541250);break;case _[_0x45c276(0x1fc)][_0x45c276(0x1fe)]:this['_handleOperation'](_0x541250);break;case _[_0x45c276(0x1fc)][_0x45c276(0x201)]:this[_0x45c276(0x1f1)]();break;case _[_0x45c276(0x1fc)]['NEW_CHANGESETS']:this[_0x45c276(0x19a)](_0x541250);break;}}));}[_0x2d6643(0x18e)](){var _0x46205f=_0x2d6643;this['_collabSession'][_0x46205f(0x205)]({'eventID':_[_0x46205f(0x1fc)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x2d6643(0x1c3)](){var _0x3aac93=_0x2d6643;this[_0x3aac93(0x192)]===_0x3aac93(0x193)&&(this[_0x3aac93(0x1b8)][_0x3aac93(0x222)]('idle'),this['_collabSession'][_0x3aac93(0x205)]({'eventID':_[_0x3aac93(0x1fc)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3aac93(0x23a)]}},this['_unitID']));}[_0x2d6643(0x20c)](){var _0xf70310=_0x2d6643;this['_status']===_0xf70310(0x1e0)&&(this[_0xf70310(0x1b8)]['next'](_0xf70310(0x224)),this[_0xf70310(0x1a0)]());}[_0x2d6643(0x253)](){var _0x2c9fa8=_0x2d6643;this[_0x2c9fa8(0x192)]===_0x2c9fa8(0x224)&&this[_0x2c9fa8(0x258)]();}[_0x2d6643(0x264)](_0x1cfd09){var _0x1b29d2=_0x2d6643;const {presenter:_0x6e0f9f}=_0x1cfd09[_0x1b29d2(0x1eb)],_0x1616f5=this[_0x1b29d2(0x1a1)][_0x1b29d2(0x1d4)]();this['_presenter']=_0x6e0f9f,_0x6e0f9f===_0x1616f5?(this[_0x1b29d2(0x258)](),this[_0x1b29d2(0x1b1)]()):this[_0x1b29d2(0x192)]!==_0x1b29d2(0x1e0)&&(this['_stopPresenting'](),this[_0x1b29d2(0x1a0)]());}[_0x2d6643(0x22f)](){var _0x369e53=_0x2d6643;const _0x3f364a={'eventID':_['CollaborationEvent'][_0x369e53(0x231)]};this[_0x369e53(0x1a1)][_0x369e53(0x205)](_0x3f364a,this[_0x369e53(0x23a)]);}[_0x2d6643(0x1f1)](){var _0x356a6e=_0x2d6643;this['_presenter']=null,this[_0x356a6e(0x192)]!==_0x356a6e(0x193)&&this[_0x356a6e(0x19b)]();}[_0x2d6643(0x19a)](_0x2cb61f){var _0x22ff0c=_0x2d6643;if(this[_0x22ff0c(0x192)]===_0x22ff0c(0x224)&&this[_0x22ff0c(0x1bd)]===_0x2cb61f['data'][_0x22ff0c(0x263)]){const _0x43951d=_[_0x22ff0c(0x1db)](_0x2cb61f[_0x22ff0c(0x1eb)])['mutations'][_0x22ff0c(0x25e)]()['find'](_0x4bfc4a=>_0x4bfc4a['id']===C[_0x22ff0c(0x20f)]['id']);if(_0x43951d){const _0x40579c=_0x43951d[_0x22ff0c(0x1fb)]['unitId'],_0xc9c8b4=_0x43951d[_0x22ff0c(0x1fb)][_0x22ff0c(0x26e)]['id'];setTimeout(()=>{var _0x7b3ac1=_0x22ff0c;this[_0x7b3ac1(0x197)][_0x7b3ac1(0x1cc)](C[_0x7b3ac1(0x223)]['id'],{'unitId':_0x40579c,'subUnitId':_0xc9c8b4},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4b59c9=_0x2d6643;this[_0x4b59c9(0x1b8)][_0x4b59c9(0x222)](_0x4b59c9(0x193));const _0x5e4fbe=new Map(),_0x4cfcc7=this[_0x4b59c9(0x1dd)]=new o[(_0x4b59c9(0x1b2))]();_0x4cfcc7['add'](o[_0x4b59c9(0x1cb)](()=>{var _0x5597bb=_0x4b59c9;_0x5e4fbe['forEach'](_0xa2a4e9=>_0xa2a4e9[_0x5597bb(0x1f2)]()),_0x5e4fbe[_0x5597bb(0x262)]();})),_0x4cfcc7['add'](this['_commandService']['onCommandExecuted'](_0x5f50db=>{var _0x4e03a7=_0x4b59c9,_0x46f380;if(_0x5f50db[_0x4e03a7(0x268)]!==o[_0x4e03a7(0x1e7)][_0x4e03a7(0x261)]||!this[_0x4e03a7(0x19e)]['shouldShareOperation'](_0x5f50db['id']))return;const {id:_0xd71be0}=_0x5f50db;let _0x53f75a;_0x5e4fbe[_0x4e03a7(0x220)](_0xd71be0)?_0x53f75a=_0x5e4fbe[_0x4e03a7(0x1c1)](_0xd71be0):(_0x53f75a=new D['Subject'](),_0x5e4fbe[_0x4e03a7(0x24c)](_0xd71be0,_0x53f75a),_0x53f75a[_0x4e03a7(0x218)](b[_0x4e03a7(0x23e)]((_0x46f380=this[_0x4e03a7(0x271)]['getConfig'](Z))!=null?_0x46f380:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e03a7(0x1ee)](_0x401ce7=>{var _0x1186ce=_0x4e03a7;this[_0x1186ce(0x1a1)][_0x1186ce(0x205)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1186ce(0x23a)],'operations':{[_0x401ce7['id']]:{'id':_0x401ce7['id'],'params':JSON[_0x1186ce(0x257)](_0x401ce7['params'])}}}},this[_0x1186ce(0x23a)]);})),_0x53f75a['next'](_0x5f50db);})),this[_0x4b59c9(0x19e)][_0x4b59c9(0x26f)](this['_unitID'])['forEach'](_0x42f047=>this['_collabSession'][_0x4b59c9(0x205)]({'eventID':_[_0x4b59c9(0x1fc)][_0x4b59c9(0x1fe)],'data':{'unitID':this[_0x4b59c9(0x23a)],'operations':{[_0x42f047['id']]:{'id':_0x42f047['id'],'params':JSON[_0x4b59c9(0x257)](_0x42f047[_0x4b59c9(0x1fb)])}}}},this[_0x4b59c9(0x23a)]));}[_0x2d6643(0x1b4)](){var _0x2f72e5=_0x2d6643,_0x108700;this[_0x2f72e5(0x1b8)][_0x2f72e5(0x222)]('idle'),(_0x108700=this[_0x2f72e5(0x1dd)])==null||_0x108700[_0x2f72e5(0x1e6)](),this[_0x2f72e5(0x1dd)]=null;}[_0x2d6643(0x1a0)](){var _0x2a6429=_0x2d6643,_0x3437c3;(_0x3437c3=this['_commandDisposable'])==null||_0x3437c3[_0x2a6429(0x1e6)](),this[_0x2a6429(0x1b8)][_0x2a6429(0x222)](_0x2a6429(0x224));}[_0x2d6643(0x19b)](){var _0x105191=_0x2d6643,_0x3f0666;this[_0x105191(0x1b8)]['next'](_0x105191(0x1ba)),(_0x3f0666=this[_0x105191(0x1dd)])==null||_0x3f0666[_0x105191(0x1e6)](),this[_0x105191(0x1dd)]=null;}[_0x2d6643(0x258)](){var _0x4fa1f0=_0x2d6643,_0x180d95;this[_0x4fa1f0(0x1b8)][_0x4fa1f0(0x222)](_0x4fa1f0(0x1e0)),(_0x180d95=this['_commandDisposable'])==null||_0x180d95[_0x4fa1f0(0x1e6)]();}[_0x2d6643(0x225)](_0x3f84ee){var _0x28f739=_0x2d6643;if([_0x28f739(0x193),_0x28f739(0x1e0),_0x28f739(0x236)][_0x28f739(0x1bb)](this['_status'])||!_0x3f84ee[_0x28f739(0x1eb)]['presenter']||_0x3f84ee[_0x28f739(0x1eb)][_0x28f739(0x248)]===this[_0x28f739(0x1a1)][_0x28f739(0x1d4)]())return;this['_status']===_0x28f739(0x1ba)&&this[_0x28f739(0x1a0)]();const _0x2eb630=_0x3f84ee[_0x28f739(0x1eb)]['operations'];Object[_0x28f739(0x1d3)](_0x2eb630)[_0x28f739(0x20d)](_0x3a6f31=>{var _0x3ce5a9=_0x28f739;this[_0x3ce5a9(0x197)][_0x3ce5a9(0x1cc)](_0x3a6f31['id'],_0x3a6f31[_0x3ce5a9(0x1fb)]?JSON[_0x3ce5a9(0x1f8)](_0x3a6f31['params']):null,{'fromCollab':!0x0});});}[_0x2d6643(0x1f0)](){var _0x34b6c7=_0x2d6643,_0x1a3320;this['_status$'][_0x34b6c7(0x222)](_0x34b6c7(0x236)),(_0x1a3320=this[_0x34b6c7(0x1dd)])==null||_0x1a3320[_0x34b6c7(0x1e6)]();}[_0x2d6643(0x19c)](){var _0x38e522=_0x2d6643;this['_status$'][_0x38e522(0x222)](_0x38e522(0x1ba)),this[_0x38e522(0x22f)]();}},exports[_0x2d6643(0x24e)]=R([S(0x2,o[_0x2d6643(0x21a)]),S(0x3,o[_0x2d6643(0x26d)](O)),S(0x4,o[_0x2d6643(0x214)])],exports[_0x2d6643(0x24e)]);function A(){var _0x72e005=_0x2d6643;const _0x382480=p[_0x72e005(0x1be)](exports[_0x72e005(0x213)]),_0x4fcf84=p[_0x72e005(0x1be)](o[_0x72e005(0x1f3)]),_0x3a66f8=p[_0x72e005(0x190)](()=>_0x4fcf84[_0x72e005(0x1ea)](o[_0x72e005(0x1c8)][_0x72e005(0x1ce)]),void 0x0,!0x1,[]),[_0x46127f,_0x19fd4b]=f[_0x72e005(0x1de)](null),[_0x3fc980,_0x427ace]=f[_0x72e005(0x1de)](h[_0x72e005(0x1b5)]),_0xc413db=f['useRef'](null);return f[_0x72e005(0x194)](()=>(_0x3a66f8&&_0x382480[_0x72e005(0x24a)](_0x3a66f8[_0x72e005(0x19d)]())['then'](_0x3639fb=>{var _0x11e502=_0x72e005;_0x19fd4b(_0x3639fb),_0xc413db[_0x11e502(0x254)]=_0x3639fb[_0x11e502(0x1d9)]['subscribe'](_0x41492d=>{_0x427ace(_0x41492d);});}),()=>{var _0x3d1263=_0x72e005,_0x34fdf3;(_0x34fdf3=_0xc413db[_0x3d1263(0x254)])==null||_0x34fdf3[_0x3d1263(0x211)](),_0xc413db[_0x3d1263(0x254)]=null;}),[_0x3a66f8,_0x382480]),_0x46127f?l[_0x72e005(0x1a2)](g[_0x72e005(0x208)],{'align':'end','disabled':_0x3fc980===h['OFFLINE'],'className':_0x72e005(0x1d1),'overlay':l[_0x72e005(0x1a2)](K,{'status':_0x3fc980,'coordinator':_0x46127f}),'children':l[_0x72e005(0x1a2)](_0x72e005(0x245),{'className':g['clsx'](_0x72e005(0x1dc),{'univer-cursor-not-allowed':_0x3fc980===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fc980!==h['OFFLINE']}),'type':'button','children':l['jsx'](P,{'className':_0x72e005(0x1f5)})})}):null;}function K(_0x1ad4bb){var _0x5182cf=_0x2d6643;const {status:_0x6a3855,coordinator:_0x57c136}=_0x1ad4bb;switch(_0x6a3855){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x57c136});case h[_0x5182cf(0x1bc)]:return l[_0x5182cf(0x1a2)](Q,{'coordinator':_0x57c136});case h[_0x5182cf(0x1cf)]:return l['jsx'](X,{'coordinator':_0x57c136});case h['OFFLINE']:return l[_0x5182cf(0x1a2)](te,{});case h['PRESENTING']:return l[_0x5182cf(0x1a2)](ee,{'coordinator':_0x57c136});default:return null;}}function z(_0x2a9c64){var _0x85665=_0x2d6643;const {coordinator:_0x511651}=_0x2a9c64;return l[_0x85665(0x1aa)](l[_0x85665(0x26b)],{'children':[l['jsx'](_0x85665(0x1bf),{'className':_0x85665(0x25f),'children':_0x85665(0x1fa)}),l[_0x85665(0x1a2)](g['Button'],{'onClick':()=>_0x511651[_0x85665(0x18e)](),'children':'Start'})]});}function Q(_0x539ca8){var _0x56aa01=_0x2d6643;const {coordinator:_0x43e34b}=_0x539ca8;return l[_0x56aa01(0x1aa)](l[_0x56aa01(0x26b)],{'children':[l[_0x56aa01(0x1a2)](_0x56aa01(0x1bf),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x56aa01(0x24f)}),l[_0x56aa01(0x1a2)](g[_0x56aa01(0x202)],{'onClick':()=>_0x43e34b[_0x56aa01(0x253)](),'children':'Stop\x20following'})]});}function X(_0x371c81){var _0x4b4533=_0x2d6643;const {coordinator:_0x36d14a}=_0x371c81;return l['jsxs'](l[_0x4b4533(0x26b)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4b4533(0x1e9)}),l[_0x4b4533(0x1a2)](g[_0x4b4533(0x202)],{'variant':_0x4b4533(0x25b),'onClick':()=>_0x36d14a[_0x4b4533(0x20c)](),'children':'Start\x20following'})]});}function ee(_0x15a0d3){var _0x500390=_0x2d6643;const {coordinator:_0x1692a9}=_0x15a0d3;return l[_0x500390(0x1aa)](l[_0x500390(0x26b)],{'children':[l[_0x500390(0x1a2)](_0x500390(0x1bf),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x500390(0x250)}),l[_0x500390(0x1a2)](g[_0x500390(0x202)],{'variant':_0x500390(0x1a8),'onClick':()=>_0x1692a9['stopPresenting'](),'children':_0x500390(0x21d)})]});}function te(){var _0x49e59e=_0x2d6643;return l[_0x49e59e(0x1a2)](l[_0x49e59e(0x26b)],{'children':_0x49e59e(0x1f9)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x247f50,_0x28e6ce,_0x1f1123,_0x26268d)=>{var _0x2f1042=_0x2d6643;for(var _0x513333=_0x26268d>0x1?void 0x0:_0x26268d?ie(_0x28e6ce,_0x1f1123):_0x28e6ce,_0x1fd506=_0x247f50[_0x2f1042(0x196)]-0x1,_0x124a84;_0x1fd506>=0x0;_0x1fd506--)(_0x124a84=_0x247f50[_0x1fd506])&&(_0x513333=_0x124a84(_0x513333)||_0x513333);return _0x513333;},L=(_0x1f1b6f,_0x1abca2)=>(_0xd4daec,_0x58bac9)=>_0x1abca2(_0xd4daec,_0x58bac9,_0x1f1b6f);exports[_0x2d6643(0x1e1)]=class extends o['Disposable']{constructor(_0x518a4b,_0x3d38dc){var _0x16930b=_0x2d6643;super(),this[_0x16930b(0x251)]=_0x518a4b,this[_0x16930b(0x227)]=_0x3d38dc,this[_0x16930b(0x1e8)]();}['_mountLiveShare'](){var _0x114708=_0x2d6643;this[_0x114708(0x1c9)](this['_uiPartsService']['registerComponent'](p['BuiltInUIPart'][_0x114708(0x1b9)],()=>p[_0x114708(0x1d7)](A,this['_injector'])));}},exports[_0x2d6643(0x1e1)]=ne([L(0x0,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),L(0x1,p[_0x2d6643(0x1a3)])],exports['DesktopLiveShareController']);var re=Object[_0x2d6643(0x23f)],se=Object['getOwnPropertyDescriptor'],oe=(_0x5ede38,_0x4e8de7,_0x13f6df)=>_0x4e8de7 in _0x5ede38?re(_0x5ede38,_0x4e8de7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13f6df}):_0x5ede38[_0x4e8de7]=_0x13f6df,ae=(_0xa3a2d4,_0x5da295,_0x48cfdd,_0x39c24d)=>{var _0x16a77d=_0x2d6643;for(var _0x4afc7c=_0x39c24d>0x1?void 0x0:_0x39c24d?se(_0x5da295,_0x48cfdd):_0x5da295,_0x3a2a37=_0xa3a2d4[_0x16a77d(0x196)]-0x1,_0x3a09e9;_0x3a2a37>=0x0;_0x3a2a37--)(_0x3a09e9=_0xa3a2d4[_0x3a2a37])&&(_0x4afc7c=_0x3a09e9(_0x4afc7c)||_0x4afc7c);return _0x4afc7c;},N=(_0x133ad2,_0x45f997)=>(_0xe9c12a,_0x46685d)=>_0x45f997(_0xe9c12a,_0x46685d,_0x133ad2),T=(_0x2343a8,_0x38404c,_0x40f5da)=>oe(_0x2343a8,typeof _0x38404c!=_0x2d6643(0x1b6)?_0x38404c+'':_0x38404c,_0x40f5da);const le=_0x2d6643(0x22a);exports[_0x2d6643(0x259)]=class extends o[_0x2d6643(0x20b)]{constructor(_0x3d5ffe=x,_0x2e1300,_0xdc8b18){var _0x4f23c5=_0x2d6643;super(),this[_0x4f23c5(0x204)]=_0x3d5ffe,this[_0x4f23c5(0x251)]=_0x2e1300,this[_0x4f23c5(0x271)]=_0xdc8b18;const {..._0x5b3bca}=o[_0x4f23c5(0x1c7)]({},x,this[_0x4f23c5(0x204)]);this['_configService'][_0x4f23c5(0x191)]($,_0x5b3bca);}[_0x2d6643(0x1e2)](){var _0x26be7b=_0x2d6643;o[_0x26be7b(0x195)](this['_injector'],o[_0x26be7b(0x25d)]([[O],[exports[_0x26be7b(0x213)]],[E],[exports[_0x26be7b(0x1e1)]]],this[_0x26be7b(0x204)][_0x26be7b(0x1b0)])),o[_0x26be7b(0x1c5)](this[_0x26be7b(0x251)],[[E]]);}[_0x2d6643(0x241)](){var _0x3ae531=_0x2d6643;o[_0x3ae531(0x1c5)](this[_0x3ae531(0x251)],[[exports[_0x3ae531(0x1e1)]]]);}},T(exports[_0x2d6643(0x259)],_0x2d6643(0x268),o[_0x2d6643(0x1c8)][_0x2d6643(0x1d8)]),T(exports['UniverLiveSharePlugin'],_0x2d6643(0x270),le),exports[_0x2d6643(0x259)]=ae([o[_0x2d6643(0x235)](m[_0x2d6643(0x207)]),N(0x1,o[_0x2d6643(0x26d)](o[_0x2d6643(0x18d)])),N(0x2,o[_0x2d6643(0x21a)])],exports[_0x2d6643(0x259)]),exports[_0x2d6643(0x20a)]=A,exports['LiveShareService']=O,exports[_0x2d6643(0x1ef)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x681412=_0x2404;(function(_0x383fe4,_0x5f02e4){var _0x401829=_0x2404,_0x58de48=_0x383fe4();while(!![]){try{var _0x306598=-parseInt(_0x401829(0x115))/0x1+parseInt(_0x401829(0xd6))/0x2*(parseInt(_0x401829(0xf8))/0x3)+-parseInt(_0x401829(0xbe))/0x4*(-parseInt(_0x401829(0x11c))/0x5)+-parseInt(_0x401829(0x114))/0x6+parseInt(_0x401829(0xa6))/0x7+-parseInt(_0x401829(0x71))/0x8+parseInt(_0x401829(0x100))/0x9*(parseInt(_0x401829(0xe5))/0xa);if(_0x306598===_0x5f02e4)break;else _0x58de48['push'](_0x58de48['shift']());}catch(_0x5390cb){_0x58de48['push'](_0x58de48['shift']());}}}(_0x51f4,0xa2652));var q=Object[_0x681412(0x6a)],z=(_0x10baef,_0x2598c4,_0x57acf5)=>_0x2598c4 in _0x10baef?q(_0x10baef,_0x2598c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57acf5}):_0x10baef[_0x2598c4]=_0x57acf5,d=(_0x55f32d,_0x4494b7,_0x1d483f)=>z(_0x55f32d,typeof _0x4494b7!=_0x681412(0x10e)?_0x4494b7+'':_0x4494b7,_0x1d483f);import{CollaborationSessionService as _0x1faba0,SessionStatus as _0x38d8d9,UniverCollaborationClientPlugin as _0x57f446}from'@univerjs-pro/collaboration-client';import{Disposable as _0x241051,toDisposable as _0x4f2dd9,Inject as _0x139ce6,IUniverInstanceService as _0x31b99c,Injector as _0x11080b,IConfigService as _0x2337c9,ICommandService as _0x48191d,RxDisposable as _0x1c4ea5,UniverInstanceType as _0x317cab,DisposableCollection as _0xa86c30,CommandType as _0x23dae4,DependentOn as _0x37ce8e,Plugin as _0x848c35,merge as _0x3e099a,registerDependencies as _0x4be35f,mergeOverrideWithDependencies as _0x440c70,touchDependencies as _0x1d6705}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x210f83,InsertSheetMutation as _0x26df3b}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2a0b18,SetScrollOperation as _0x12a170}from'@univerjs/sheets-ui';import{useDependency as _0x3f1b3f,useObservable as _0xecba58,IUIPartsService as _0x5bacad,BuiltInUIPart as _0x44de67,connectInjector as _0x1718cd}from'@univerjs/ui';import{jsx as _0xc4291b,jsxs as _0x53f092,Fragment as _0x5e51be}from'react/jsx-runtime';import{Dropdown as _0x5d87c2,clsx as _0x356cf3,Button as _0x5e8a86}from'@univerjs/design';import{forwardRef as _0x41307c,useRef as _0x1ab28e,createElement as _0x27475c,useState as _0x447d4f,useEffect as _0x47a9c7}from'react';import{CollaborationEvent as _0x2191a8,parseProtocolChangeset as _0x2cd3d7}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x237136,Subject as _0x2fe177}from'rxjs';import{takeUntil as _0x58f411,throttleTime as _0x5eb38f}from'rxjs/operators';const Oe=_0x681412(0x6d),T={};class L extends _0x241051{constructor(){var _0x5972fb=_0x681412;super(...arguments),d(this,_0x5972fb(0xbb),new Set()),d(this,'_reporters',new Set());}[_0x681412(0xc4)](_0x42f360){var _0x148648=_0x681412;return this[_0x148648(0xbb)][_0x148648(0xe8)](_0x42f360),_0x4f2dd9(()=>this[_0x148648(0xbb)][_0x148648(0x95)](_0x42f360));}[_0x681412(0x9b)](_0x27b4a3){var _0x2188e8=_0x681412;return this[_0x2188e8(0x7c)]['add'](_0x27b4a3),_0x4f2dd9(()=>this[_0x2188e8(0x7c)][_0x2188e8(0x95)](_0x27b4a3));}[_0x681412(0x68)](_0x24ec32){var _0x4ea564=_0x681412;return this['_sharedOperations'][_0x4ea564(0xe2)](_0x24ec32);}[_0x681412(0x9c)](_0x396ef5){var _0x21dc93=_0x681412;return Array[_0x21dc93(0x8d)](this['_reporters'])[_0x21dc93(0xe7)](_0x566371=>_0x566371(_0x396ef5));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x4fb359,_0x5dd437,_0xe7639a,_0x15f288)=>{var _0x2277ab=_0x681412;for(var _0x3860d8=_0x15f288>0x1?void 0x0:_0x15f288?Ee(_0x5dd437,_0xe7639a):_0x5dd437,_0x4107b8=_0x4fb359[_0x2277ab(0x78)]-0x1,_0x3e819c;_0x4107b8>=0x0;_0x4107b8--)(_0x3e819c=_0x4fb359[_0x4107b8])&&(_0x3860d8=_0x3e819c(_0x3860d8)||_0x3860d8);return _0x3860d8;},Ne=(_0x221867,_0x132933)=>(_0x4f420c,_0x9ad449)=>_0x132933(_0x4f420c,_0x9ad449,_0x221867);let m=class extends _0x241051{constructor(_0x142cee){var _0x2508ed=_0x681412;super(),this['_liveShareService']=_0x142cee,this[_0x2508ed(0xd8)]();}['_init'](){var _0x348bc3=_0x681412;[_0x2a0b18['id'],_0x12a170['id'],_0x210f83['id']][_0x348bc3(0x97)](_0xd3c8f7=>{var _0x4bdc53=_0x348bc3;this[_0x4bdc53(0x82)](this['_liveShareService'][_0x4bdc53(0xc4)](_0xd3c8f7));});}};m=we([Ne(0x0,_0x139ce6(L))],m);var c=function(){var _0x33ea2e=_0x681412;return c=Object['assign']||function(_0x5c15e2){var _0x28590f=_0x2404;for(var _0x4f5eda,_0x43989d=0x1,_0x2c47e2=arguments['length'];_0x43989d<_0x2c47e2;_0x43989d++){_0x4f5eda=arguments[_0x43989d];for(var _0xbd500e in _0x4f5eda)Object['prototype']['hasOwnProperty'][_0x28590f(0x81)](_0x4f5eda,_0xbd500e)&&(_0x5c15e2[_0xbd500e]=_0x4f5eda[_0xbd500e]);}return _0x5c15e2;},c[_0x33ea2e(0x11a)](this,arguments);},Ce=function(_0x5c9e33,_0x42aff9){var _0x579dec=_0x681412,_0x5ef0ac={};for(var _0x33d532 in _0x5c9e33)Object[_0x579dec(0x7e)]['hasOwnProperty'][_0x579dec(0x81)](_0x5c9e33,_0x33d532)&&_0x42aff9[_0x579dec(0xa7)](_0x33d532)<0x0&&(_0x5ef0ac[_0x33d532]=_0x5c9e33[_0x33d532]);if(_0x5c9e33!=null&&typeof Object[_0x579dec(0xde)]=='function'){for(var _0x3396ff=0x0,_0x33d532=Object[_0x579dec(0xde)](_0x5c9e33);_0x3396ff<_0x33d532['length'];_0x3396ff++)_0x42aff9['indexOf'](_0x33d532[_0x3396ff])<0x0&&Object[_0x579dec(0x7e)][_0x579dec(0xf3)][_0x579dec(0x81)](_0x5c9e33,_0x33d532[_0x3396ff])&&(_0x5ef0ac[_0x33d532[_0x3396ff]]=_0x5c9e33[_0x33d532[_0x3396ff]]);}return _0x5ef0ac;},W=_0x41307c(function(_0x58074d,_0x39b3e5){var _0x385ab7=_0x681412,_0x1aa665=_0x58074d['icon'],_0x5df5=_0x58074d['id'],_0x10d8b4=_0x58074d[_0x385ab7(0x83)],_0xbdf82=_0x58074d['extend'],_0x1e4e63=Ce(_0x58074d,[_0x385ab7(0x67),'id',_0x385ab7(0x83),_0x385ab7(0x9f)]),_0x179c06='univerjs-icon\x20univerjs-icon-'[_0x385ab7(0xfe)](_0x5df5,'\x20')[_0x385ab7(0xfe)](_0x10d8b4||'')[_0x385ab7(0xcd)](),_0x36dc8b=_0x1ab28e('_'[_0x385ab7(0xfe)](Le()));return Y(_0x1aa665,''[_0x385ab7(0xfe)](_0x5df5),{'defIds':_0x1aa665['defIds'],'idSuffix':_0x36dc8b[_0x385ab7(0x74)]},c({'ref':_0x39b3e5,'className':_0x179c06},_0x1e4e63),_0xbdf82);});function Y(_0x8a2eb8,_0x13f862,_0x928f36,_0x97d2d0,_0x1d3e33){var _0x32e7b9=_0x681412;return _0x27475c(_0x8a2eb8['tag'],c(c({'key':_0x13f862},De(_0x8a2eb8,_0x928f36,_0x1d3e33)),_0x97d2d0),(xe(_0x8a2eb8,_0x928f36)[_0x32e7b9(0xd7)]||[])[_0x32e7b9(0xe7)](function(_0x2aca68,_0x4e9f4f){var _0x98fa3c=_0x32e7b9;return Y(_0x2aca68,''[_0x98fa3c(0xfe)](_0x13f862,'-')[_0x98fa3c(0xfe)](_0x8a2eb8[_0x98fa3c(0xb7)],'-')[_0x98fa3c(0xfe)](_0x4e9f4f),_0x928f36,void 0x0,_0x1d3e33);}));}function De(_0x5cf389,_0x167c5c,_0x416917){var _0x48cf94=_0x681412,_0x3278d1=c({},_0x5cf389[_0x48cf94(0x8e)]);_0x416917!=null&&_0x416917[_0x48cf94(0x10c)]&&_0x3278d1[_0x48cf94(0xba)]===_0x48cf94(0x10c)&&(_0x3278d1['fill']=_0x416917['colorChannel1']),_0x5cf389['tag']===_0x48cf94(0x10a)&&_0x3278d1['id']&&(_0x3278d1['id']=_0x3278d1['id']+_0x167c5c[_0x48cf94(0xfa)]),Object[_0x48cf94(0xa9)](_0x3278d1)[_0x48cf94(0x97)](function(_0x14ad31){var _0xb5cc59=_0x48cf94,_0x125950=_0x14ad31[0x0],_0x276d22=_0x14ad31[0x1];_0x125950===_0xb5cc59(0x10a)&&typeof _0x276d22==_0xb5cc59(0xae)&&(_0x3278d1[_0x125950]=_0x276d22[_0xb5cc59(0x6f)](/url\(#(.*)\)/,'url(#$1'[_0xb5cc59(0xfe)](_0x167c5c[_0xb5cc59(0xfa)],')')));});var _0x1ca91a=_0x167c5c[_0x48cf94(0x109)];return!_0x1ca91a||_0x1ca91a[_0x48cf94(0x78)]===0x0||(_0x5cf389[_0x48cf94(0xb7)]===_0x48cf94(0xcc)&&_0x3278d1[_0x48cf94(0xeb)]&&(_0x3278d1['xlink:href']=_0x3278d1['xlink:href']+_0x167c5c['idSuffix']),Object[_0x48cf94(0xa9)](_0x3278d1)[_0x48cf94(0x97)](function(_0x53d887){var _0x1f386a=_0x48cf94,_0x1922fc=_0x53d887[0x0],_0x3c74bf=_0x53d887[0x1];typeof _0x3c74bf==_0x1f386a(0xae)&&(_0x3278d1[_0x1922fc]=_0x3c74bf['replace'](/url\(#(.*)\)/,_0x1f386a(0x72)[_0x1f386a(0xfe)](_0x167c5c['idSuffix'],')')));})),_0x3278d1;}function xe(_0x4fea84,_0x17f27d){var _0x4c3fa9=_0x681412,_0x498837,_0x537680=_0x17f27d[_0x4c3fa9(0x109)];return!_0x537680||_0x537680[_0x4c3fa9(0x78)]===0x0?_0x4fea84:_0x4fea84[_0x4c3fa9(0xb7)]===_0x4c3fa9(0xa2)&&(!((_0x498837=_0x4fea84['children'])===null||_0x498837===void 0x0)&&_0x498837[_0x4c3fa9(0x78)])?c(c({},_0x4fea84),{'children':_0x4fea84[_0x4c3fa9(0xd7)]['map'](function(_0x2b32c7){var _0x3cfc8e=_0x4c3fa9;return typeof _0x2b32c7[_0x3cfc8e(0x8e)]['id']==_0x3cfc8e(0xae)&&_0x537680&&_0x537680[_0x3cfc8e(0xb1)](_0x2b32c7['attrs']['id'])?c(c({},_0x2b32c7),{'attrs':c(c({},_0x2b32c7['attrs']),{'id':_0x2b32c7[_0x3cfc8e(0x8e)]['id']+_0x17f27d[_0x3cfc8e(0xfa)]})}):_0x2b32c7;})}):_0x4fea84;}function Le(){var _0x5bda85=_0x681412;return Math['random']()[_0x5bda85(0xac)](0x24)['substring'](0x2,0x8);}function _0x51f4(){var _0x276bc8=['get','1633615ktHdvi','_handleOperation','_handleOnline','LIVESHARE_NEW_HOST','icon','shouldShareOperation','data','defineProperty','createInstance','operations','live-share.config','http://www.w3.org/2000/svg','replace','getUnitId','1408552rrZLdq','url(#$1','Stop\x20presenting','current','_status$','UNIVER_UNKNOWN','IDLE','length','NEW_CHANGESETS','FOLLOWING','univer-size-4','_reporters','pipe','prototype','status$','following','call','disposeWithMe','className','_unitID','init','_injector','getOwnPropertyDescriptor','_config','_entities','clear','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','from','attrs','values','_beIdle','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','OPERATION','_mountLiveShare','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','getTypeOfUnitAdded$','_univerInstanceService','presenter','registerInitialStateReporter','getInitialStates','_presenter','_uiPartsService','extend','end','parse','defs','complete','currentColor','override','3224977hMSFRU','indexOf','dispose$','entries','You\x27are\x20offline.','unsubscribe','toString','idle','string','requireSession','UNIVER_LIVE_SHARE_PLUGIN','includes','Start\x20following','LIVESHARE_OPERATION','registerComponent','offline','0\x200\x2017\x2017','tag','asObservable','memberID','fill','_sharedOperations','presenting','path','4TEVYDU','getMemberID','stopPresenting','dispose','none','_handleTerminate','registerSharedOperation','You\x27re\x20not\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','_liveShareService','then','onStarting','sessionStatus$','_stopFollowing','use','trim','sheet','_commandDisposable','getLiveShareCoordinator','OFFLINE','subscribe','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','_handleNewChangeSets','not-following','2358MeRkRa','children','_init','send','div','getValue','LIVESHARE_FETCH_OPERATIONS','assign','getOwnPropertySymbols','onCommandExecuted','setConfig','set','has','LIVESHARE_REQUEST_HOST','mutations','140nktJaM','default','map','add','_collabSessionService','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','xlink:href','displayName','_collabSession','params','_stopPresenting','UNIVER_SHEET','startFollowing','LIVESHARE_TERMINATE','propertyIsEnumerable','NOT_FOLLOWING','_status','LiveShareIcon','_configService','525TRIZDX','type','idSuffix','_handleOffline','evenodd','next','concat','stopFollowing','1012779qdHhwg','PRESENTING','_startPresenting','pluginName','svg','UniverIcon','text','button','unitId','defIds','mask','_handleNewHost','colorChannel1','1em','symbol','executeCommand','tryStartPresenting','live-share-icon','You\x27re\x20presenting\x20the\x20document','_commandService','5601810NgDcsn','794319iAaZAx','stringify','Present\x20this\x20document','event$','find','apply'];_0x51f4=function(){return _0x276bc8;};return _0x51f4();}W[_0x681412(0xec)]=_0x681412(0x105);var ye={'tag':_0x681412(0x104),'attrs':{'xmlns':_0x681412(0x6e),'fill':_0x681412(0xc2),'viewBox':_0x681412(0xb6),'width':_0x681412(0x10d),'height':_0x681412(0x10d)},'children':[{'tag':_0x681412(0xbd),'attrs':{'fill':_0x681412(0xa4),'d':_0x681412(0xea)}},{'tag':_0x681412(0xbd),'attrs':{'fill':_0x681412(0xa4),'d':_0x681412(0xd3),'fillRule':'evenodd','clipRule':_0x681412(0xfc)}}]},B=_0x41307c(function(_0x1ddc30,_0x1706a4){var _0xffd721=_0x681412;return _0x27475c(W,Object[_0xffd721(0xdd)]({},_0x1ddc30,{'id':_0xffd721(0x111),'ref':_0x1706a4,'icon':ye}));});B[_0x681412(0xec)]=_0x681412(0xf6);var Re=Object[_0x681412(0x87)],Z=(_0x433dff,_0x30726a,_0x58b847,_0x428124)=>{var _0x3cd0bb=_0x681412;for(var _0xf5d581=_0x428124>0x1?void 0x0:_0x428124?Re(_0x30726a,_0x58b847):_0x30726a,_0x4784a8=_0x433dff[_0x3cd0bb(0x78)]-0x1,_0x15963c;_0x4784a8>=0x0;_0x4784a8--)(_0x15963c=_0x433dff[_0x4784a8])&&(_0xf5d581=_0x15963c(_0xf5d581)||_0xf5d581);return _0xf5d581;},f=(_0x47f40d,_0x4e8b58)=>(_0x388164,_0x4e4c19)=>_0x4e8b58(_0x388164,_0x4e4c19,_0x47f40d);let I=class extends _0x1c4ea5{constructor(_0x5afcfd,_0x3bae14,_0x15d13e){var _0x3a04e4=_0x681412;super(),d(this,_0x3a04e4(0x89),new Map()),(this[_0x3a04e4(0x99)]=_0x5afcfd,this[_0x3a04e4(0x86)]=_0x3bae14,this[_0x3a04e4(0xe9)]=_0x15d13e,this[_0x3a04e4(0xd8)]());}async[_0x681412(0xd0)](_0x1d0d03){var _0x4d940d=_0x681412;return this[_0x4d940d(0x89)]['has'](_0x1d0d03)||await this[_0x4d940d(0x92)](_0x1d0d03),this[_0x4d940d(0x89)][_0x4d940d(0x11b)](_0x1d0d03);}[_0x681412(0xd8)](){var _0x1afb8d=_0x681412;this[_0x1afb8d(0x99)][_0x1afb8d(0x98)](_0x317cab[_0x1afb8d(0xf0)])['pipe'](_0x58f411(this[_0x1afb8d(0xa8)]))['subscribe'](async _0x50ddf7=>{var _0x15d4b3=_0x1afb8d;const _0x2acee1=_0x50ddf7[_0x15d4b3(0x70)]();this[_0x15d4b3(0x89)][_0x15d4b3(0xe2)](_0x2acee1)||this[_0x15d4b3(0x92)](_0x2acee1);}),this[_0x1afb8d(0x99)][_0x1afb8d(0xc6)](_0x317cab[_0x1afb8d(0xf0)])[_0x1afb8d(0x7d)](_0x58f411(this[_0x1afb8d(0xa8)]))['subscribe'](_0x58ccea=>{var _0x56aabf=_0x1afb8d;const _0x4a750b=_0x58ccea[_0x56aabf(0x70)](),_0x376e71=this[_0x56aabf(0x89)][_0x56aabf(0x11b)](_0x4a750b);_0x376e71==null||_0x376e71['dispose']();});}async['_startLiveShareCoordinator'](_0x31e398){var _0x1975c1=_0x681412;const _0x180ead=await this[_0x1975c1(0xe9)][_0x1975c1(0xaf)](_0x31e398),_0x14ee3d=this['_injector'][_0x1975c1(0x6b)](C,_0x31e398,_0x180ead);return _0x14ee3d[_0x1975c1(0x85)](),this[_0x1975c1(0x89)][_0x1975c1(0xe1)](_0x31e398,_0x14ee3d),_0x14ee3d;}};I=Z([f(0x0,_0x31b99c),f(0x1,_0x139ce6(_0x11080b)),f(0x2,_0x139ce6(_0x1faba0))],I);var h=(_0x2d92d9=>(_0x2d92d9[_0x681412(0xd1)]='offline',_0x2d92d9[_0x681412(0x77)]='idle',_0x2d92d9[_0x681412(0x7a)]=_0x681412(0x80),_0x2d92d9[_0x681412(0xf4)]=_0x681412(0xd5),_0x2d92d9[_0x681412(0x101)]=_0x681412(0xbc),_0x2d92d9))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x1c4ea5{constructor(_0x533541,_0x48b899,_0x6fb37f,_0x523583,_0x13f561){var _0x198503=_0x681412;super(),d(this,_0x198503(0x75),new _0x237136(_0x198503(0xad))),d(this,_0x198503(0x7f),this[_0x198503(0x75)][_0x198503(0xb8)]()),d(this,_0x198503(0xd8),!0x1),d(this,_0x198503(0xcf),null),d(this,_0x198503(0x9d),null),(this['_unitID']=_0x533541,this[_0x198503(0xed)]=_0x48b899,this[_0x198503(0xf7)]=_0x6fb37f,this[_0x198503(0xc7)]=_0x523583,this['_commandService']=_0x13f561);}get[_0x681412(0xf5)](){var _0xfb2aa0=_0x681412;return this[_0xfb2aa0(0x75)][_0xfb2aa0(0xdb)]();}[_0x681412(0xc1)](){var _0x2bf40b=_0x681412,_0x597bfa;(_0x597bfa=this[_0x2bf40b(0xcf)])==null||_0x597bfa[_0x2bf40b(0xc1)](),this[_0x2bf40b(0x75)][_0x2bf40b(0xfd)](_0x2bf40b(0xad)),this[_0x2bf40b(0x75)][_0x2bf40b(0xa3)]();}[_0x681412(0x85)](){var _0xcfdb57=_0x681412;this[_0xcfdb57(0xd8)]||(this[_0xcfdb57(0xd8)]=!0x0,this[_0xcfdb57(0xed)][_0xcfdb57(0xca)][_0xcfdb57(0x7d)](_0x58f411(this[_0xcfdb57(0xa8)]))['subscribe'](_0x2f550a=>{var _0x7ac6c6=_0xcfdb57;switch(_0x2f550a){case _0x38d8d9[_0x7ac6c6(0xd1)]:this[_0x7ac6c6(0xfb)]();break;case _0x38d8d9['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0xcfdb57(0x118)][_0xcfdb57(0x7d)](_0x58f411(this[_0xcfdb57(0xa8)]))['subscribe'](_0x5140e4=>{var _0x5a72ae=_0xcfdb57;const {eventID:_0x485d79}=_0x5140e4;switch(_0x485d79){case _0x2191a8[_0x5a72ae(0x11f)]:this['_handleNewHost'](_0x5140e4);break;case _0x2191a8[_0x5a72ae(0xb3)]:this[_0x5a72ae(0x11d)](_0x5140e4);break;case _0x2191a8[_0x5a72ae(0xf2)]:this[_0x5a72ae(0xc3)]();break;case _0x2191a8[_0x5a72ae(0x79)]:this[_0x5a72ae(0xd4)](_0x5140e4);break;}}));}[_0x681412(0x110)](){var _0x270741=_0x681412;this[_0x270741(0xed)][_0x270741(0xd9)]({'eventID':_0x2191a8[_0x270741(0xe3)],'data':{'unitID':this[_0x270741(0x84)],'userID':this['_collabSession'][_0x270741(0xbf)]()}},this[_0x270741(0x84)]);}[_0x681412(0xc0)](){var _0x5a3c8f=_0x681412;this[_0x5a3c8f(0xf5)]===_0x5a3c8f(0xbc)&&(this[_0x5a3c8f(0x75)]['next'](_0x5a3c8f(0xad)),this[_0x5a3c8f(0xed)]['send']({'eventID':_0x2191a8[_0x5a3c8f(0xf2)],'data':{'unitID':this[_0x5a3c8f(0x84)]}},this[_0x5a3c8f(0x84)]));}['startFollowing'](){var _0x37c38b=_0x681412;this[_0x37c38b(0xf5)]===_0x37c38b(0xd5)&&(this['_status$'][_0x37c38b(0xfd)](_0x37c38b(0x80)),this['_startFollowing']());}[_0x681412(0xff)](){var _0x293b24=_0x681412;this[_0x293b24(0xf5)]==='following'&&this[_0x293b24(0xcb)]();}[_0x681412(0x10b)](_0x45db8f){var _0x542f26=_0x681412;const {presenter:_0x3c7b77}=_0x45db8f[_0x542f26(0x69)],_0x2e81f8=this[_0x542f26(0xed)][_0x542f26(0xbf)]();this[_0x542f26(0x9d)]=_0x3c7b77,_0x3c7b77===_0x2e81f8?(this[_0x542f26(0xcb)](),this[_0x542f26(0x102)]()):this['_status']!==_0x542f26(0xd5)&&(this[_0x542f26(0xef)](),this[_0x542f26(0x8b)]());}['_fetchOperations'](){var _0x316b56=_0x681412;const _0x41bd8d={'eventID':_0x2191a8[_0x316b56(0xdc)]};this[_0x316b56(0xed)][_0x316b56(0xd9)](_0x41bd8d,this['_unitID']);}[_0x681412(0xc3)](){var _0x3fe8e4=_0x681412;this['_presenter']=null,this[_0x3fe8e4(0xf5)]!==_0x3fe8e4(0xbc)&&this['_beIdle']();}[_0x681412(0xd4)](_0x2105f3){var _0x3296c3=_0x681412;if(this[_0x3296c3(0xf5)]===_0x3296c3(0x80)&&this[_0x3296c3(0x9d)]===_0x2105f3[_0x3296c3(0x69)][_0x3296c3(0xb9)]){const _0x2d4a33=_0x2cd3d7(_0x2105f3['data'])[_0x3296c3(0xe4)]['reverse']()[_0x3296c3(0x119)](_0xc8fa64=>_0xc8fa64['id']===_0x26df3b['id']);if(_0x2d4a33){const _0x3328de=_0x2d4a33[_0x3296c3(0xee)][_0x3296c3(0x108)],_0x38897e=_0x2d4a33[_0x3296c3(0xee)][_0x3296c3(0xce)]['id'];setTimeout(()=>{var _0x46ec55=_0x3296c3;this[_0x46ec55(0x113)][_0x46ec55(0x10f)](_0x210f83['id'],{'unitId':_0x3328de,'subUnitId':_0x38897e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x51c299=_0x681412;this[_0x51c299(0x75)][_0x51c299(0xfd)]('presenting');const _0x5683d0=new Map(),_0x33e533=this[_0x51c299(0xcf)]=new _0xa86c30();_0x33e533[_0x51c299(0xe8)](_0x4f2dd9(()=>{var _0x134867=_0x51c299;_0x5683d0[_0x134867(0x97)](_0x5e47e5=>_0x5e47e5[_0x134867(0xa3)]()),_0x5683d0[_0x134867(0x8a)]();})),_0x33e533[_0x51c299(0xe8)](this[_0x51c299(0x113)][_0x51c299(0xdf)](_0x28d291=>{var _0x4d1b3e=_0x51c299,_0x19799c;if(_0x28d291[_0x4d1b3e(0xf9)]!==_0x23dae4[_0x4d1b3e(0x93)]||!this[_0x4d1b3e(0xc7)][_0x4d1b3e(0x68)](_0x28d291['id']))return;const {id:_0x348ce3}=_0x28d291;let _0x99dff0;_0x5683d0[_0x4d1b3e(0xe2)](_0x348ce3)?_0x99dff0=_0x5683d0[_0x4d1b3e(0x11b)](_0x348ce3):(_0x99dff0=new _0x2fe177(),_0x5683d0[_0x4d1b3e(0xe1)](_0x348ce3,_0x99dff0),_0x99dff0[_0x4d1b3e(0x7d)](_0x5eb38f((_0x19799c=this[_0x4d1b3e(0xf7)]['getConfig'](Pe))!=null?_0x19799c:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4d1b3e(0xd2)](_0x31ac21=>{var _0x48f302=_0x4d1b3e;this[_0x48f302(0xed)]['send']({'eventID':_0x2191a8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x48f302(0x84)],'operations':{[_0x31ac21['id']]:{'id':_0x31ac21['id'],'params':JSON[_0x48f302(0x116)](_0x31ac21['params'])}}}},this[_0x48f302(0x84)]);})),_0x99dff0[_0x4d1b3e(0xfd)](_0x28d291);})),this[_0x51c299(0xc7)][_0x51c299(0x9c)](this[_0x51c299(0x84)])['forEach'](_0x44ead0=>this[_0x51c299(0xed)][_0x51c299(0xd9)]({'eventID':_0x2191a8[_0x51c299(0xb3)],'data':{'unitID':this[_0x51c299(0x84)],'operations':{[_0x44ead0['id']]:{'id':_0x44ead0['id'],'params':JSON['stringify'](_0x44ead0[_0x51c299(0xee)])}}}},this['_unitID']));}[_0x681412(0xef)](){var _0x134c3c=_0x681412,_0x24b137;this[_0x134c3c(0x75)][_0x134c3c(0xfd)](_0x134c3c(0xad)),(_0x24b137=this[_0x134c3c(0xcf)])==null||_0x24b137['dispose'](),this[_0x134c3c(0xcf)]=null;}[_0x681412(0x8b)](){var _0x13231d=_0x681412,_0x50ee1d;(_0x50ee1d=this[_0x13231d(0xcf)])==null||_0x50ee1d[_0x13231d(0xc1)](),this[_0x13231d(0x75)][_0x13231d(0xfd)](_0x13231d(0x80));}[_0x681412(0x90)](){var _0x6c3a34=_0x681412,_0x1e5704;this[_0x6c3a34(0x75)]['next'](_0x6c3a34(0xad)),(_0x1e5704=this[_0x6c3a34(0xcf)])==null||_0x1e5704['dispose'](),this['_commandDisposable']=null;}[_0x681412(0xcb)](){var _0x31692d=_0x681412,_0x57ea72;this[_0x31692d(0x75)]['next'](_0x31692d(0xd5)),(_0x57ea72=this[_0x31692d(0xcf)])==null||_0x57ea72[_0x31692d(0xc1)]();}[_0x681412(0x11d)](_0x268f8e){var _0x23bfc5=_0x681412;if([_0x23bfc5(0xbc),_0x23bfc5(0xd5),_0x23bfc5(0xb5)][_0x23bfc5(0xb1)](this[_0x23bfc5(0xf5)])||!_0x268f8e[_0x23bfc5(0x69)][_0x23bfc5(0x9a)]||_0x268f8e[_0x23bfc5(0x69)][_0x23bfc5(0x9a)]===this[_0x23bfc5(0xed)]['getMemberID']())return;this[_0x23bfc5(0xf5)]===_0x23bfc5(0xad)&&this[_0x23bfc5(0x8b)]();const _0x4d62e5=_0x268f8e[_0x23bfc5(0x69)][_0x23bfc5(0x6c)];Object[_0x23bfc5(0x8f)](_0x4d62e5)['forEach'](_0x23f50e=>{var _0x2a76e0=_0x23bfc5;this['_commandService'][_0x2a76e0(0x10f)](_0x23f50e['id'],_0x23f50e[_0x2a76e0(0xee)]?JSON[_0x2a76e0(0xa1)](_0x23f50e[_0x2a76e0(0xee)]):null,{'fromCollab':!0x0});});}[_0x681412(0xfb)](){var _0x2c8b9e=_0x681412,_0x5ca92a;this[_0x2c8b9e(0x75)][_0x2c8b9e(0xfd)]('offline'),(_0x5ca92a=this[_0x2c8b9e(0xcf)])==null||_0x5ca92a[_0x2c8b9e(0xc1)]();}[_0x681412(0x11e)](){var _0x8f38c5=_0x681412;this[_0x8f38c5(0x75)][_0x8f38c5(0xfd)](_0x8f38c5(0xad)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2337c9),f(0x3,_0x139ce6(L)),f(0x4,_0x48191d)],C);function Te(){var _0x3b61d5=_0x681412;const _0x986625=_0x3f1b3f(I),_0xfa34f9=_0x3f1b3f(_0x31b99c),_0x1908a3=_0xecba58(()=>_0xfa34f9['getCurrentTypeOfUnit$'](_0x317cab[_0x3b61d5(0xf0)]),void 0x0,!0x1,[]),[_0x217c74,_0x262478]=_0x447d4f(null),[_0x5b4540,_0x21482e]=_0x447d4f(h[_0x3b61d5(0x77)]),_0x1deb59=_0x1ab28e(null);return _0x47a9c7(()=>(_0x1908a3&&_0x986625[_0x3b61d5(0xd0)](_0x1908a3['getUnitId']())[_0x3b61d5(0xc8)](_0x1040e4=>{var _0x1a3fbd=_0x3b61d5;_0x262478(_0x1040e4),_0x1deb59['current']=_0x1040e4[_0x1a3fbd(0x7f)][_0x1a3fbd(0xd2)](_0x3e7e31=>{_0x21482e(_0x3e7e31);});}),()=>{var _0x411a6f=_0x3b61d5,_0x43eeca;(_0x43eeca=_0x1deb59[_0x411a6f(0x74)])==null||_0x43eeca[_0x411a6f(0xab)](),_0x1deb59[_0x411a6f(0x74)]=null;}),[_0x1908a3,_0x986625]),_0x217c74?_0xc4291b(_0x5d87c2,{'align':_0x3b61d5(0xa0),'disabled':_0x5b4540===h[_0x3b61d5(0xd1)],'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':_0xc4291b($e,{'status':_0x5b4540,'coordinator':_0x217c74}),'children':_0xc4291b(_0x3b61d5(0x107),{'className':_0x356cf3(_0x3b61d5(0x8c),{'univer-cursor-not-allowed':_0x5b4540===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b4540!==h[_0x3b61d5(0xd1)]}),'type':'button','children':_0xc4291b(B,{'className':_0x3b61d5(0x7b)})})}):null;}function _0x2404(_0x2537e6,_0x1c6139){var _0x51f408=_0x51f4();return _0x2404=function(_0x240454,_0x44da98){_0x240454=_0x240454-0x67;var _0x2790df=_0x51f408[_0x240454];return _0x2790df;},_0x2404(_0x2537e6,_0x1c6139);}function $e(_0x2f1ae1){var _0x1cf9a9=_0x681412;const {status:_0x5cfe3d,coordinator:_0x1193f9}=_0x2f1ae1;switch(_0x5cfe3d){case h['IDLE']:return _0xc4291b(Fe,{'coordinator':_0x1193f9});case h[_0x1cf9a9(0x7a)]:return _0xc4291b(He,{'coordinator':_0x1193f9});case h[_0x1cf9a9(0xf4)]:return _0xc4291b(je,{'coordinator':_0x1193f9});case h[_0x1cf9a9(0xd1)]:return _0xc4291b(Ve,{});case h[_0x1cf9a9(0x101)]:return _0xc4291b(Ue,{'coordinator':_0x1193f9});default:return null;}}function Fe(_0x19cdde){var _0x40c0f4=_0x681412;const {coordinator:_0x24b3f8}=_0x19cdde;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x40c0f4(0xda),{'className':_0x40c0f4(0x96),'children':_0x40c0f4(0x117)}),_0xc4291b(_0x5e8a86,{'onClick':()=>_0x24b3f8[_0x40c0f4(0x110)](),'children':'Start'})]});}function He(_0x534a1e){var _0x4e7444=_0x681412;const {coordinator:_0x1c9baa}=_0x534a1e;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x4e7444(0xda),{'className':_0x4e7444(0x96),'children':_0x4e7444(0x91)}),_0xc4291b(_0x5e8a86,{'onClick':()=>_0x1c9baa['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x41b09f){var _0x169506=_0x681412;const {coordinator:_0x584665}=_0x41b09f;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x169506(0xda),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x169506(0xc5)}),_0xc4291b(_0x5e8a86,{'variant':_0x169506(0x106),'onClick':()=>_0x584665[_0x169506(0xf1)](),'children':_0x169506(0xb2)})]});}function Ue(_0x2548b8){var _0x4a6aa3=_0x681412;const {coordinator:_0x4a19e4}=_0x2548b8;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x4a6aa3(0xda),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4a6aa3(0x112)}),_0xc4291b(_0x5e8a86,{'variant':_0x4a6aa3(0xe6),'onClick':()=>_0x4a19e4[_0x4a6aa3(0xc0)](),'children':_0x4a6aa3(0x73)})]});}function Ve(){var _0x5dc990=_0x681412;return _0xc4291b(_0x5e51be,{'children':_0x5dc990(0xaa)});}var Me=Object[_0x681412(0x87)],ke=(_0x409bad,_0x372924,_0x272893,_0x24b4d2)=>{var _0x4d2f35=_0x681412;for(var _0x5a5550=_0x24b4d2>0x1?void 0x0:_0x24b4d2?Me(_0x372924,_0x272893):_0x372924,_0x5cdfca=_0x409bad[_0x4d2f35(0x78)]-0x1,_0x5399e2;_0x5cdfca>=0x0;_0x5cdfca--)(_0x5399e2=_0x409bad[_0x5cdfca])&&(_0x5a5550=_0x5399e2(_0x5a5550)||_0x5a5550);return _0x5a5550;},$=(_0x2d3119,_0x30602d)=>(_0x17791d,_0x1b8139)=>_0x30602d(_0x17791d,_0x1b8139,_0x2d3119);let b=class extends _0x241051{constructor(_0x48d3c1,_0x32ccea){var _0x22026b=_0x681412;super(),this['_injector']=_0x48d3c1,this[_0x22026b(0x9e)]=_0x32ccea,this[_0x22026b(0x94)]();}[_0x681412(0x94)](){var _0x2fffa8=_0x681412;this['disposeWithMe'](this[_0x2fffa8(0x9e)][_0x2fffa8(0xb4)](_0x44de67['HEADER_MENU'],()=>_0x1718cd(Te,this['_injector'])));}};b=ke([$(0x0,_0x139ce6(_0x11080b)),$(0x1,_0x5bacad)],b);var Ge=Object[_0x681412(0x6a)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x5a672c,_0x5ef4b9,_0x41e901)=>_0x5ef4b9 in _0x5a672c?Ge(_0x5a672c,_0x5ef4b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41e901}):_0x5a672c[_0x5ef4b9]=_0x41e901,Be=(_0x1bac39,_0x45ebda,_0x906f63,_0x341315)=>{for(var _0x360408=_0x341315>0x1?void 0x0:_0x341315?We(_0x45ebda,_0x906f63):_0x45ebda,_0x4e390a=_0x1bac39['length']-0x1,_0x424599;_0x4e390a>=0x0;_0x4e390a--)(_0x424599=_0x1bac39[_0x4e390a])&&(_0x360408=_0x424599(_0x360408)||_0x360408);return _0x360408;},F=(_0x4add43,_0xc01834)=>(_0xf90d18,_0x1706e1)=>_0xc01834(_0xf90d18,_0x1706e1,_0x4add43),J=(_0x2f1c65,_0xbc7e9,_0x10dc2d)=>Ye(_0x2f1c65,typeof _0xbc7e9!=_0x681412(0x10e)?_0xbc7e9+'':_0xbc7e9,_0x10dc2d);const Ze=_0x681412(0xb0);let O=class extends _0x848c35{constructor(_0x534930=T,_0x215bcd,_0x2a742b){var _0x18eaa3=_0x681412;super(),this[_0x18eaa3(0x88)]=_0x534930,this[_0x18eaa3(0x86)]=_0x215bcd,this[_0x18eaa3(0xf7)]=_0x2a742b;const {..._0xaf462d}=_0x3e099a({},T,this[_0x18eaa3(0x88)]);this[_0x18eaa3(0xf7)][_0x18eaa3(0xe0)](Oe,_0xaf462d);}[_0x681412(0xc9)](){var _0x1314f8=_0x681412;_0x4be35f(this['_injector'],_0x440c70([[L],[I],[m],[b]],this['_config'][_0x1314f8(0xa5)])),_0x1d6705(this[_0x1314f8(0x86)],[[m]]);}['onRendered'](){var _0x138ee0=_0x681412;_0x1d6705(this[_0x138ee0(0x86)],[[b]]);}};J(O,_0x681412(0xf9),_0x317cab[_0x681412(0x76)]),J(O,_0x681412(0x103),Ze),O=Be([_0x37ce8e(_0x57f446),F(0x1,_0x139ce6(_0x11080b)),F(0x2,_0x2337c9)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x512809=_0x18ad;(function(_0x522e3e,_0x560a95){var _0x163ba2=_0x18ad,_0x36df1f=_0x522e3e();while(!![]){try{var _0x40e2cf=-parseInt(_0x163ba2(0x1e3))/0x1*(parseInt(_0x163ba2(0x24a))/0x2)+-parseInt(_0x163ba2(0x223))/0x3*(parseInt(_0x163ba2(0x219))/0x4)+-parseInt(_0x163ba2(0x22c))/0x5*(parseInt(_0x163ba2(0x1f0))/0x6)+parseInt(_0x163ba2(0x1ba))/0x7+-parseInt(_0x163ba2(0x20e))/0x8*(-parseInt(_0x163ba2(0x1f6))/0x9)+parseInt(_0x163ba2(0x259))/0xa*(-parseInt(_0x163ba2(0x244))/0xb)+-parseInt(_0x163ba2(0x232))/0xc*(-parseInt(_0x163ba2(0x1d9))/0xd);if(_0x40e2cf===_0x560a95)break;else _0x36df1f['push'](_0x36df1f['shift']());}catch(_0x124fa1){_0x36df1f['push'](_0x36df1f['shift']());}}}(_0x61f5,0x67560));var q=Object['defineProperty'],z=(_0x68fa00,_0x26e74e,_0x33a528)=>_0x26e74e in _0x68fa00?q(_0x68fa00,_0x26e74e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33a528}):_0x68fa00[_0x26e74e]=_0x33a528,d=(_0x3b6272,_0xafedd1,_0x209c2f)=>z(_0x3b6272,typeof _0xafedd1!='symbol'?_0xafedd1+'':_0xafedd1,_0x209c2f);import{CollaborationSessionService as _0x1f7d72,SessionStatus as _0x3d4f4e,UniverCollaborationClientPlugin as _0xc07b40}from'@univerjs-pro/collaboration-client';import{Disposable as _0x53ac40,toDisposable as _0x526a75,Inject as _0x30a9c5,IUniverInstanceService as _0xa0d390,Injector as _0x21b692,IConfigService as _0x1caea7,ICommandService as _0x388a0d,RxDisposable as _0x3535cf,UniverInstanceType as _0x12828d,DisposableCollection as _0xd5101f,CommandType as _0x2ec5f9,DependentOn as _0x352ef8,Plugin as _0x2850ce,merge as _0x4a6d52,registerDependencies as _0x1f5629,mergeOverrideWithDependencies as _0x3defda,touchDependencies as _0x397a1f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x390ceb,InsertSheetMutation as _0x10745a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x60fb13,SetScrollOperation as _0x3a2380}from'@univerjs/sheets-ui';function _0x61f5(){var _0xe6bb77=['startFollowing','currentColor','path','51diWzYn','dispose$','_injector','UNIVER_UNKNOWN','univer-size-4','_commandDisposable','has','getValue','end','5MsckrV','pipe','trim','_beIdle','shouldShareOperation','stopFollowing','235344kpwNSU','get','getCurrentTypeOfUnit$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','propertyIsEnumerable','evenodd','hasOwnProperty','url(#$1','FOLLOWING','Stop\x20following','override','_startPresenting','_reporters','unsubscribe','complete','_handleNewHost','_status','IDLE','11SUGuYM','requireSession','delete','svg','0\x200\x2017\x2017','type','2XmIxfA','_stopPresenting','createInstance','current','getTypeOfUnitAdded$','defineProperty','entries','idSuffix','getMemberID','getOwnPropertySymbols','substring','symbol','OPERATION','unitId','sheet','5208270wjeQAS','LiveShareIcon','colorChannel1','_stopFollowing','getInitialStates','next','LIVESHARE_REQUEST_HOST','add','live-share-icon','not-following','random','extend','data','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','concat','_presenter','_status$','stringify','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','Stop\x20presenting','executeCommand','2063320ArzqQR','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_handleOperation','registerSharedOperation','_config','defIds','mask','HEADER_MENU','onRendered','_liveShareService','following','_mountLiveShare','memberID','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','_fetchOperations','_collabSessionService','displayName','icon','_startFollowing','LIVESHARE_TERMINATE','_sharedOperations','values','_unitID','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','idle','_init','715gDfhTV','univerjs-icon\x20univerjs-icon-','registerComponent','_handleOffline','OFFLINE','attrs','_handleTerminate','none','operations','status$','168323nolGAz','offline','_uiPartsService','params','length','_commandService','tag','live-share.config','parse','map','forEach','prototype','send','3601332gNYlWE','string','NOT_FOLLOWING','disposeWithMe','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','2745UEwChE','_configService','button','set','then','getOwnPropertyDescriptor','onStarting','className','_collabSession','subscribe','asObservable','init','1em','presenting','includes','presenter','replace','fill','setConfig','call','_handleOnline','div','getUnitId','http://www.w3.org/2000/svg','16472LfavXE','You\x27are\x20offline.','_univerInstanceService','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','_entities','children','clear','ONLINE','Start','indexOf','67948uYCsQg','getConfig','_startLiveShareCoordinator','NEW_CHANGESETS','sessionStatus$','getLiveShareCoordinator','apply'];_0x61f5=function(){return _0xe6bb77;};return _0x61f5();}import{useDependency as _0x48897c,useObservable as _0x14654c,IUIPartsService as _0x44b862,BuiltInUIPart as _0x8c4c5d,connectInjector as _0x29aac4}from'@univerjs/ui';function _0x18ad(_0x12b7b8,_0x49ea19){var _0x61f580=_0x61f5();return _0x18ad=function(_0x18ad3e,_0x331913){_0x18ad3e=_0x18ad3e-0x1b5;var _0x51d98c=_0x61f580[_0x18ad3e];return _0x51d98c;},_0x18ad(_0x12b7b8,_0x49ea19);}import{jsx as _0xe2c74b,jsxs as _0x1774fb,Fragment as _0x315a05}from'react/jsx-runtime';import{Dropdown as _0x5212b4,clsx as _0x11bf78,Button as _0x461148}from'@univerjs/design';import{forwardRef as _0x23e84d,useRef as _0x9bf347,createElement as _0x2e64a6,useState as _0x5573ca,useEffect as _0x36bfdc}from'react';import{CollaborationEvent as _0x46c596,parseProtocolChangeset as _0x598281}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5d9b35,Subject as _0x2b4590}from'rxjs';import{takeUntil as _0x3267ce,throttleTime as _0x214502}from'rxjs/operators';const Oe=_0x512809(0x1ea),T={};class L extends _0x53ac40{constructor(){var _0x5ccad9=_0x512809;super(...arguments),d(this,_0x5ccad9(0x1d2),new Set()),d(this,_0x5ccad9(0x23e),new Set());}[_0x512809(0x1bf)](_0x504f1d){var _0x44866b=_0x512809;return this[_0x44866b(0x1d2)][_0x44866b(0x260)](_0x504f1d),_0x526a75(()=>this['_sharedOperations'][_0x44866b(0x246)](_0x504f1d));}['registerInitialStateReporter'](_0x4e099c){var _0x52ba54=_0x512809;return this[_0x52ba54(0x23e)][_0x52ba54(0x260)](_0x4e099c),_0x526a75(()=>this[_0x52ba54(0x23e)][_0x52ba54(0x246)](_0x4e099c));}[_0x512809(0x230)](_0xb69326){var _0x1bd05e=_0x512809;return this[_0x1bd05e(0x1d2)][_0x1bd05e(0x229)](_0xb69326);}[_0x512809(0x25d)](_0x154a4a){var _0x520ba7=_0x512809;return Array['from'](this['_reporters'])[_0x520ba7(0x1ec)](_0x27a6e6=>_0x27a6e6(_0x154a4a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3e12d3,_0x24860c,_0x31faea,_0x100d8c)=>{var _0x126cb1=_0x512809;for(var _0x4432c9=_0x100d8c>0x1?void 0x0:_0x100d8c?Ee(_0x24860c,_0x31faea):_0x24860c,_0x1b71f0=_0x3e12d3[_0x126cb1(0x1e7)]-0x1,_0x11d99f;_0x1b71f0>=0x0;_0x1b71f0--)(_0x11d99f=_0x3e12d3[_0x1b71f0])&&(_0x4432c9=_0x11d99f(_0x4432c9)||_0x4432c9);return _0x4432c9;},Ne=(_0xfaafb,_0x11f4ea)=>(_0x18b947,_0x1d8d0d)=>_0x11f4ea(_0x18b947,_0x1d8d0d,_0xfaafb);let m=class extends _0x53ac40{constructor(_0x1fb8e8){var _0x3c159f=_0x512809;super(),this[_0x3c159f(0x1c5)]=_0x1fb8e8,this[_0x3c159f(0x1d8)]();}[_0x512809(0x1d8)](){var _0x353816=_0x512809;[_0x60fb13['id'],_0x3a2380['id'],_0x390ceb['id']][_0x353816(0x1ed)](_0x562e3c=>{var _0xbab10f=_0x353816;this['disposeWithMe'](this[_0xbab10f(0x1c5)][_0xbab10f(0x1bf)](_0x562e3c));});}};m=we([Ne(0x0,_0x30a9c5(L))],m);var c=function(){var _0x57d78e=_0x512809;return c=Object['assign']||function(_0x4ace82){var _0x67c959=_0x18ad;for(var _0x506049,_0x1b21fb=0x1,_0x4ecbf1=arguments['length'];_0x1b21fb<_0x4ecbf1;_0x1b21fb++){_0x506049=arguments[_0x1b21fb];for(var _0x2cac5b in _0x506049)Object[_0x67c959(0x1ee)][_0x67c959(0x238)][_0x67c959(0x209)](_0x506049,_0x2cac5b)&&(_0x4ace82[_0x2cac5b]=_0x506049[_0x2cac5b]);}return _0x4ace82;},c[_0x57d78e(0x21f)](this,arguments);},Ce=function(_0xaf3767,_0x4d9e48){var _0x179d21=_0x512809,_0x3452ba={};for(var _0x423d8e in _0xaf3767)Object[_0x179d21(0x1ee)][_0x179d21(0x238)][_0x179d21(0x209)](_0xaf3767,_0x423d8e)&&_0x4d9e48[_0x179d21(0x218)](_0x423d8e)<0x0&&(_0x3452ba[_0x423d8e]=_0xaf3767[_0x423d8e]);if(_0xaf3767!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5b4eb3=0x0,_0x423d8e=Object[_0x179d21(0x253)](_0xaf3767);_0x5b4eb3<_0x423d8e[_0x179d21(0x1e7)];_0x5b4eb3++)_0x4d9e48[_0x179d21(0x218)](_0x423d8e[_0x5b4eb3])<0x0&&Object['prototype'][_0x179d21(0x236)][_0x179d21(0x209)](_0xaf3767,_0x423d8e[_0x5b4eb3])&&(_0x3452ba[_0x423d8e[_0x5b4eb3]]=_0xaf3767[_0x423d8e[_0x5b4eb3]]);}return _0x3452ba;},W=_0x23e84d(function(_0x35eeb2,_0x252419){var _0x4c5a89=_0x512809,_0x5365af=_0x35eeb2[_0x4c5a89(0x1cf)],_0x5b1619=_0x35eeb2['id'],_0x436ecf=_0x35eeb2['className'],_0x19012d=_0x35eeb2[_0x4c5a89(0x264)],_0x5c0195=Ce(_0x35eeb2,['icon','id',_0x4c5a89(0x1fd),_0x4c5a89(0x264)]),_0x214dc1=_0x4c5a89(0x1da)[_0x4c5a89(0x268)](_0x5b1619,'\x20')[_0x4c5a89(0x268)](_0x436ecf||'')[_0x4c5a89(0x22e)](),_0x43cd7b=_0x9bf347('_'['concat'](Le()));return Y(_0x5365af,''[_0x4c5a89(0x268)](_0x5b1619),{'defIds':_0x5365af[_0x4c5a89(0x1c1)],'idSuffix':_0x43cd7b[_0x4c5a89(0x24d)]},c({'ref':_0x252419,'className':_0x214dc1},_0x5c0195),_0x19012d);});function Y(_0x2a805b,_0x38fc5b,_0x59ff1f,_0x35f12a,_0x32f42f){var _0x18223e=_0x512809;return _0x2e64a6(_0x2a805b[_0x18223e(0x1e9)],c(c({'key':_0x38fc5b},De(_0x2a805b,_0x59ff1f,_0x32f42f)),_0x35f12a),(xe(_0x2a805b,_0x59ff1f)['children']||[])[_0x18223e(0x1ec)](function(_0x44ab5e,_0x33eab0){var _0x400984=_0x18223e;return Y(_0x44ab5e,''[_0x400984(0x268)](_0x38fc5b,'-')[_0x400984(0x268)](_0x2a805b['tag'],'-')['concat'](_0x33eab0),_0x59ff1f,void 0x0,_0x32f42f);}));}function De(_0x539084,_0x1301e8,_0x3cf017){var _0x232a8e=_0x512809,_0x33cb35=c({},_0x539084['attrs']);_0x3cf017!=null&&_0x3cf017['colorChannel1']&&_0x33cb35[_0x232a8e(0x207)]===_0x232a8e(0x25b)&&(_0x33cb35[_0x232a8e(0x207)]=_0x3cf017[_0x232a8e(0x25b)]),_0x539084['tag']===_0x232a8e(0x1c2)&&_0x33cb35['id']&&(_0x33cb35['id']=_0x33cb35['id']+_0x1301e8['idSuffix']),Object[_0x232a8e(0x250)](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x30ed3f){var _0x2dd39f=_0x232a8e,_0x362da3=_0x30ed3f[0x0],_0x4fc163=_0x30ed3f[0x1];_0x362da3===_0x2dd39f(0x1c2)&&typeof _0x4fc163==_0x2dd39f(0x1f1)&&(_0x33cb35[_0x362da3]=_0x4fc163[_0x2dd39f(0x206)](/url\(#(.*)\)/,_0x2dd39f(0x239)[_0x2dd39f(0x268)](_0x1301e8['idSuffix'],')')));});var _0x1ce168=_0x1301e8[_0x232a8e(0x1c1)];return!_0x1ce168||_0x1ce168[_0x232a8e(0x1e7)]===0x0||(_0x539084[_0x232a8e(0x1e9)]==='use'&&_0x33cb35[_0x232a8e(0x1bd)]&&(_0x33cb35[_0x232a8e(0x1bd)]=_0x33cb35[_0x232a8e(0x1bd)]+_0x1301e8['idSuffix']),Object['entries'](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x219945){var _0x12af84=_0x232a8e,_0x3298ad=_0x219945[0x0],_0x3e59a3=_0x219945[0x1];typeof _0x3e59a3==_0x12af84(0x1f1)&&(_0x33cb35[_0x3298ad]=_0x3e59a3['replace'](/url\(#(.*)\)/,_0x12af84(0x239)[_0x12af84(0x268)](_0x1301e8['idSuffix'],')')));})),_0x33cb35;}function xe(_0x2e02f4,_0x1688b5){var _0x15914f=_0x512809,_0x5600cd,_0x551177=_0x1688b5['defIds'];return!_0x551177||_0x551177['length']===0x0?_0x2e02f4:_0x2e02f4[_0x15914f(0x1e9)]==='defs'&&(!((_0x5600cd=_0x2e02f4['children'])===null||_0x5600cd===void 0x0)&&_0x5600cd[_0x15914f(0x1e7)])?c(c({},_0x2e02f4),{'children':_0x2e02f4[_0x15914f(0x214)][_0x15914f(0x1ec)](function(_0x5394b6){var _0xe30fcb=_0x15914f;return typeof _0x5394b6[_0xe30fcb(0x1de)]['id']=='string'&&_0x551177&&_0x551177[_0xe30fcb(0x204)](_0x5394b6[_0xe30fcb(0x1de)]['id'])?c(c({},_0x5394b6),{'attrs':c(c({},_0x5394b6[_0xe30fcb(0x1de)]),{'id':_0x5394b6[_0xe30fcb(0x1de)]['id']+_0x1688b5[_0xe30fcb(0x251)]})}):_0x5394b6;})}):_0x2e02f4;}function Le(){var _0x559577=_0x512809;return Math[_0x559577(0x263)]()['toString'](0x24)[_0x559577(0x254)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x512809(0x247),'attrs':{'xmlns':_0x512809(0x20d),'fill':_0x512809(0x1e0),'viewBox':_0x512809(0x248),'width':_0x512809(0x202),'height':_0x512809(0x202)},'children':[{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':_0x512809(0x1b7)}},{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'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':_0x512809(0x237),'clipRule':_0x512809(0x237)}}]},B=_0x23e84d(function(_0x42c166,_0x47842e){var _0x398877=_0x512809;return _0x2e64a6(W,Object['assign']({},_0x42c166,{'id':_0x398877(0x261),'ref':_0x47842e,'icon':ye}));});B[_0x512809(0x1ce)]=_0x512809(0x25a);var Re=Object[_0x512809(0x1fb)],Z=(_0x5a0b21,_0x1b1996,_0x272cbc,_0x17e8e9)=>{var _0x4ee099=_0x512809;for(var _0x455e8e=_0x17e8e9>0x1?void 0x0:_0x17e8e9?Re(_0x1b1996,_0x272cbc):_0x1b1996,_0x7b7713=_0x5a0b21[_0x4ee099(0x1e7)]-0x1,_0x49ff6a;_0x7b7713>=0x0;_0x7b7713--)(_0x49ff6a=_0x5a0b21[_0x7b7713])&&(_0x455e8e=_0x49ff6a(_0x455e8e)||_0x455e8e);return _0x455e8e;},f=(_0x3a694d,_0x42c9d8)=>(_0x22a24b,_0x4d38d2)=>_0x42c9d8(_0x22a24b,_0x4d38d2,_0x3a694d);let I=class extends _0x3535cf{constructor(_0x24d818,_0x32303a,_0x20cb24){var _0x3feaed=_0x512809;super(),d(this,_0x3feaed(0x213),new Map()),(this[_0x3feaed(0x210)]=_0x24d818,this['_injector']=_0x32303a,this[_0x3feaed(0x1cd)]=_0x20cb24,this[_0x3feaed(0x1d8)]());}async[_0x512809(0x21e)](_0x5cdf3c){var _0x394492=_0x512809;return this[_0x394492(0x213)][_0x394492(0x229)](_0x5cdf3c)||await this[_0x394492(0x21b)](_0x5cdf3c),this[_0x394492(0x213)][_0x394492(0x233)](_0x5cdf3c);}['_init'](){var _0x7b76ac=_0x512809;this['_univerInstanceService'][_0x7b76ac(0x24e)](_0x12828d[_0x7b76ac(0x1bb)])['pipe'](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](async _0x316d0a=>{var _0xfdbc99=_0x7b76ac;const _0x560061=_0x316d0a[_0xfdbc99(0x20c)]();this[_0xfdbc99(0x213)][_0xfdbc99(0x229)](_0x560061)||this[_0xfdbc99(0x21b)](_0x560061);}),this[_0x7b76ac(0x210)][_0x7b76ac(0x212)](_0x12828d[_0x7b76ac(0x1bb)])[_0x7b76ac(0x22d)](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](_0x5a06eb=>{var _0xe40c16=_0x7b76ac;const _0x40e484=_0x5a06eb['getUnitId'](),_0x59b270=this['_entities']['get'](_0x40e484);_0x59b270==null||_0x59b270[_0xe40c16(0x1cb)]();});}async[_0x512809(0x21b)](_0x299e38){var _0x109118=_0x512809;const _0x897ae4=await this[_0x109118(0x1cd)][_0x109118(0x245)](_0x299e38),_0x5254d2=this[_0x109118(0x225)][_0x109118(0x24c)](C,_0x299e38,_0x897ae4);return _0x5254d2['init'](),this['_entities'][_0x109118(0x1f9)](_0x299e38,_0x5254d2),_0x5254d2;}};I=Z([f(0x0,_0xa0d390),f(0x1,_0x30a9c5(_0x21b692)),f(0x2,_0x30a9c5(_0x1f7d72))],I);var h=(_0x1bd8c6=>(_0x1bd8c6[_0x512809(0x1dd)]=_0x512809(0x1e4),_0x1bd8c6[_0x512809(0x243)]='idle',_0x1bd8c6[_0x512809(0x23a)]=_0x512809(0x1c6),_0x1bd8c6[_0x512809(0x1f2)]=_0x512809(0x262),_0x1bd8c6['PRESENTING']=_0x512809(0x203),_0x1bd8c6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x3535cf{constructor(_0x107549,_0x41b26f,_0x2ad2f6,_0xb42cdf,_0x46da28){var _0xc8f317=_0x512809;super(),d(this,_0xc8f317(0x1b5),new _0x5d9b35('idle')),d(this,_0xc8f317(0x1e2),this['_status$'][_0xc8f317(0x200)]()),d(this,_0xc8f317(0x1d8),!0x1),d(this,_0xc8f317(0x228),null),d(this,_0xc8f317(0x269),null),(this[_0xc8f317(0x1d4)]=_0x107549,this[_0xc8f317(0x1fe)]=_0x41b26f,this['_configService']=_0x2ad2f6,this[_0xc8f317(0x1c5)]=_0xb42cdf,this[_0xc8f317(0x1e8)]=_0x46da28);}get[_0x512809(0x242)](){var _0x3186b1=_0x512809;return this['_status$'][_0x3186b1(0x22a)]();}[_0x512809(0x1cb)](){var _0x4e97f7=_0x512809,_0x385e41;(_0x385e41=this[_0x4e97f7(0x228)])==null||_0x385e41[_0x4e97f7(0x1cb)](),this['_status$'][_0x4e97f7(0x25e)](_0x4e97f7(0x1d7)),this[_0x4e97f7(0x1b5)][_0x4e97f7(0x240)]();}[_0x512809(0x201)](){var _0x208335=_0x512809;this[_0x208335(0x1d8)]||(this[_0x208335(0x1d8)]=!0x0,this[_0x208335(0x1fe)][_0x208335(0x21d)][_0x208335(0x22d)](_0x3267ce(this[_0x208335(0x224)]))[_0x208335(0x1ff)](_0x3d663e=>{var _0x4bbee4=_0x208335;switch(_0x3d663e){case _0x3d4f4e[_0x4bbee4(0x1dd)]:this[_0x4bbee4(0x1dc)]();break;case _0x3d4f4e[_0x4bbee4(0x216)]:this[_0x4bbee4(0x20a)]();break;}}),this['_collabSession']['event$'][_0x208335(0x22d)](_0x3267ce(this['dispose$']))[_0x208335(0x1ff)](_0x49efb3=>{var _0x320493=_0x208335;const {eventID:_0x1349af}=_0x49efb3;switch(_0x1349af){case _0x46c596[_0x320493(0x1bc)]:this[_0x320493(0x241)](_0x49efb3);break;case _0x46c596[_0x320493(0x211)]:this['_handleOperation'](_0x49efb3);break;case _0x46c596[_0x320493(0x1d1)]:this[_0x320493(0x1df)]();break;case _0x46c596[_0x320493(0x21c)]:this['_handleNewChangeSets'](_0x49efb3);break;}}));}[_0x512809(0x1d6)](){var _0x544832=_0x512809;this[_0x544832(0x1fe)]['send']({'eventID':_0x46c596[_0x544832(0x25f)],'data':{'unitID':this['_unitID'],'userID':this[_0x544832(0x1fe)][_0x544832(0x252)]()}},this[_0x544832(0x1d4)]);}[_0x512809(0x1f4)](){var _0x3f6b43=_0x512809;this[_0x3f6b43(0x242)]===_0x3f6b43(0x203)&&(this['_status$'][_0x3f6b43(0x25e)]('idle'),this[_0x3f6b43(0x1fe)][_0x3f6b43(0x1ef)]({'eventID':_0x46c596[_0x3f6b43(0x1d1)],'data':{'unitID':this['_unitID']}},this[_0x3f6b43(0x1d4)]));}[_0x512809(0x220)](){var _0x362c40=_0x512809;this[_0x362c40(0x242)]==='not-following'&&(this[_0x362c40(0x1b5)]['next'](_0x362c40(0x1c6)),this[_0x362c40(0x1d0)]());}[_0x512809(0x231)](){var _0x165ed4=_0x512809;this['_status']==='following'&&this[_0x165ed4(0x25c)]();}['_handleNewHost'](_0x4ca3d9){var _0x4d07ff=_0x512809;const {presenter:_0x5b399d}=_0x4ca3d9['data'],_0x29677d=this[_0x4d07ff(0x1fe)]['getMemberID']();this[_0x4d07ff(0x269)]=_0x5b399d,_0x5b399d===_0x29677d?(this[_0x4d07ff(0x25c)](),this[_0x4d07ff(0x23d)]()):this['_status']!==_0x4d07ff(0x262)&&(this['_stopPresenting'](),this[_0x4d07ff(0x1d0)]());}[_0x512809(0x1cc)](){var _0xaf2e2f=_0x512809;const _0x2b23b2={'eventID':_0x46c596['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf2e2f(0x1fe)][_0xaf2e2f(0x1ef)](_0x2b23b2,this[_0xaf2e2f(0x1d4)]);}[_0x512809(0x1df)](){var _0x40965e=_0x512809;this[_0x40965e(0x269)]=null,this['_status']!=='presenting'&&this[_0x40965e(0x22f)]();}['_handleNewChangeSets'](_0x48983b){var _0x561f87=_0x512809;if(this[_0x561f87(0x242)]==='following'&&this['_presenter']===_0x48983b[_0x561f87(0x265)][_0x561f87(0x1c8)]){const _0x26cb02=_0x598281(_0x48983b[_0x561f87(0x265)])['mutations']['reverse']()['find'](_0x1941d1=>_0x1941d1['id']===_0x10745a['id']);if(_0x26cb02){const _0x5994b7=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x257)],_0x2ec8d6=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x258)]['id'];setTimeout(()=>{var _0x344599=_0x561f87;this['_commandService'][_0x344599(0x1b9)](_0x390ceb['id'],{'unitId':_0x5994b7,'subUnitId':_0x2ec8d6},{'fromCollab':!0x0});});}}}[_0x512809(0x23d)](){var _0x27c8c2=_0x512809;this[_0x27c8c2(0x1b5)][_0x27c8c2(0x25e)](_0x27c8c2(0x203));const _0x21cdb3=new Map(),_0x22effa=this[_0x27c8c2(0x228)]=new _0xd5101f();_0x22effa[_0x27c8c2(0x260)](_0x526a75(()=>{var _0xe799c4=_0x27c8c2;_0x21cdb3['forEach'](_0x4c3f62=>_0x4c3f62[_0xe799c4(0x240)]()),_0x21cdb3[_0xe799c4(0x215)]();})),_0x22effa[_0x27c8c2(0x260)](this[_0x27c8c2(0x1e8)]['onCommandExecuted'](_0x1c30cc=>{var _0x48e5af=_0x27c8c2,_0x79a571;if(_0x1c30cc[_0x48e5af(0x249)]!==_0x2ec5f9[_0x48e5af(0x256)]||!this[_0x48e5af(0x1c5)][_0x48e5af(0x230)](_0x1c30cc['id']))return;const {id:_0x421485}=_0x1c30cc;let _0x235d41;_0x21cdb3[_0x48e5af(0x229)](_0x421485)?_0x235d41=_0x21cdb3[_0x48e5af(0x233)](_0x421485):(_0x235d41=new _0x2b4590(),_0x21cdb3['set'](_0x421485,_0x235d41),_0x235d41[_0x48e5af(0x22d)](_0x214502((_0x79a571=this[_0x48e5af(0x1f7)][_0x48e5af(0x21a)](Pe))!=null?_0x79a571:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x44163e=>{var _0xcd51c=_0x48e5af;this[_0xcd51c(0x1fe)]['send']({'eventID':_0x46c596[_0xcd51c(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x44163e['id']]:{'id':_0x44163e['id'],'params':JSON[_0xcd51c(0x1b6)](_0x44163e['params'])}}}},this[_0xcd51c(0x1d4)]);})),_0x235d41[_0x48e5af(0x25e)](_0x1c30cc);})),this[_0x27c8c2(0x1c5)][_0x27c8c2(0x25d)](this[_0x27c8c2(0x1d4)])[_0x27c8c2(0x1ed)](_0x5df21c=>this['_collabSession']['send']({'eventID':_0x46c596[_0x27c8c2(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x5df21c['id']]:{'id':_0x5df21c['id'],'params':JSON['stringify'](_0x5df21c[_0x27c8c2(0x1e6)])}}}},this[_0x27c8c2(0x1d4)]));}[_0x512809(0x24b)](){var _0x4388fb=_0x512809,_0x35c0b0;this[_0x4388fb(0x1b5)]['next']('idle'),(_0x35c0b0=this[_0x4388fb(0x228)])==null||_0x35c0b0[_0x4388fb(0x1cb)](),this['_commandDisposable']=null;}[_0x512809(0x1d0)](){var _0x4b39ff=_0x512809,_0x2780a8;(_0x2780a8=this['_commandDisposable'])==null||_0x2780a8['dispose'](),this[_0x4b39ff(0x1b5)][_0x4b39ff(0x25e)](_0x4b39ff(0x1c6));}[_0x512809(0x22f)](){var _0x5e12a1=_0x512809,_0x3f90c5;this[_0x5e12a1(0x1b5)][_0x5e12a1(0x25e)](_0x5e12a1(0x1d7)),(_0x3f90c5=this['_commandDisposable'])==null||_0x3f90c5[_0x5e12a1(0x1cb)](),this[_0x5e12a1(0x228)]=null;}[_0x512809(0x25c)](){var _0x28613f=_0x512809,_0x290e6f;this[_0x28613f(0x1b5)][_0x28613f(0x25e)](_0x28613f(0x262)),(_0x290e6f=this[_0x28613f(0x228)])==null||_0x290e6f[_0x28613f(0x1cb)]();}[_0x512809(0x1be)](_0x1d3ed1){var _0xa81942=_0x512809;if([_0xa81942(0x203),_0xa81942(0x262),_0xa81942(0x1e4)][_0xa81942(0x204)](this[_0xa81942(0x242)])||!_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x205)]||_0x1d3ed1[_0xa81942(0x265)]['presenter']===this['_collabSession'][_0xa81942(0x252)]())return;this[_0xa81942(0x242)]===_0xa81942(0x1d7)&&this['_startFollowing']();const _0x2a9e98=_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x1e1)];Object[_0xa81942(0x1d3)](_0x2a9e98)[_0xa81942(0x1ed)](_0x27a2a8=>{var _0x28aef5=_0xa81942;this[_0x28aef5(0x1e8)]['executeCommand'](_0x27a2a8['id'],_0x27a2a8['params']?JSON[_0x28aef5(0x1eb)](_0x27a2a8['params']):null,{'fromCollab':!0x0});});}[_0x512809(0x1dc)](){var _0x4b31ef=_0x512809,_0x272ce4;this['_status$']['next'](_0x4b31ef(0x1e4)),(_0x272ce4=this[_0x4b31ef(0x228)])==null||_0x272ce4[_0x4b31ef(0x1cb)]();}[_0x512809(0x20a)](){var _0x4de46e=_0x512809;this[_0x4de46e(0x1b5)][_0x4de46e(0x25e)](_0x4de46e(0x1d7)),this[_0x4de46e(0x1cc)]();}};C=Z([f(0x2,_0x1caea7),f(0x3,_0x30a9c5(L)),f(0x4,_0x388a0d)],C);function Te(){var _0x27995f=_0x512809;const _0x39e5c7=_0x48897c(I),_0x64dfc6=_0x48897c(_0xa0d390),_0x19d5b0=_0x14654c(()=>_0x64dfc6[_0x27995f(0x234)](_0x12828d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48b90d,_0xa6caef]=_0x5573ca(null),[_0x4847db,_0x3b7014]=_0x5573ca(h[_0x27995f(0x243)]),_0x146e05=_0x9bf347(null);return _0x36bfdc(()=>(_0x19d5b0&&_0x39e5c7[_0x27995f(0x21e)](_0x19d5b0[_0x27995f(0x20c)]())[_0x27995f(0x1fa)](_0x416fc2=>{var _0x6b5fc0=_0x27995f;_0xa6caef(_0x416fc2),_0x146e05['current']=_0x416fc2[_0x6b5fc0(0x1e2)]['subscribe'](_0x21de69=>{_0x3b7014(_0x21de69);});}),()=>{var _0x3aabbc=_0x27995f,_0xd6fe6b;(_0xd6fe6b=_0x146e05[_0x3aabbc(0x24d)])==null||_0xd6fe6b[_0x3aabbc(0x23f)](),_0x146e05[_0x3aabbc(0x24d)]=null;}),[_0x19d5b0,_0x39e5c7]),_0x48b90d?_0xe2c74b(_0x5212b4,{'align':_0x27995f(0x22b),'disabled':_0x4847db===h[_0x27995f(0x1dd)],'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':_0xe2c74b($e,{'status':_0x4847db,'coordinator':_0x48b90d}),'children':_0xe2c74b('button',{'className':_0x11bf78(_0x27995f(0x235),{'univer-cursor-not-allowed':_0x4847db===h[_0x27995f(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4847db!==h[_0x27995f(0x1dd)]}),'type':_0x27995f(0x1f8),'children':_0xe2c74b(B,{'className':_0x27995f(0x227)})})}):null;}function $e(_0x37bc60){var _0x50aecc=_0x512809;const {status:_0x134775,coordinator:_0x5c5521}=_0x37bc60;switch(_0x134775){case h[_0x50aecc(0x243)]:return _0xe2c74b(Fe,{'coordinator':_0x5c5521});case h['FOLLOWING']:return _0xe2c74b(He,{'coordinator':_0x5c5521});case h[_0x50aecc(0x1f2)]:return _0xe2c74b(je,{'coordinator':_0x5c5521});case h['OFFLINE']:return _0xe2c74b(Ve,{});case h['PRESENTING']:return _0xe2c74b(Ue,{'coordinator':_0x5c5521});default:return null;}}function Fe(_0x1459d6){var _0x5f3141=_0x512809;const {coordinator:_0x3a6f64}=_0x1459d6;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x5f3141(0x20b),{'className':_0x5f3141(0x1ca),'children':_0x5f3141(0x267)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x3a6f64[_0x5f3141(0x1d6)](),'children':_0x5f3141(0x217)})]});}function He(_0x2b5142){var _0x113cba=_0x512809;const {coordinator:_0x4f9b71}=_0x2b5142;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b('div',{'className':_0x113cba(0x1ca),'children':_0x113cba(0x1d5)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x4f9b71[_0x113cba(0x231)](),'children':_0x113cba(0x23b)})]});}function je(_0x1a0356){var _0x4bfadb=_0x512809;const {coordinator:_0x4f49e6}=_0x1a0356;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x4bfadb(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4bfadb(0x1f5)}),_0xe2c74b(_0x461148,{'variant':'text','onClick':()=>_0x4f49e6[_0x4bfadb(0x220)](),'children':'Start\x20following'})]});}function Ue(_0x51ed9b){var _0x62d2a3=_0x512809;const {coordinator:_0x275d7d}=_0x51ed9b;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x62d2a3(0x20b),{'className':_0x62d2a3(0x1ca),'children':_0x62d2a3(0x266)}),_0xe2c74b(_0x461148,{'variant':_0x62d2a3(0x1c9),'onClick':()=>_0x275d7d[_0x62d2a3(0x1f4)](),'children':_0x62d2a3(0x1b8)})]});}function Ve(){var _0x58cca7=_0x512809;return _0xe2c74b(_0x315a05,{'children':_0x58cca7(0x20f)});}var Me=Object[_0x512809(0x1fb)],ke=(_0x502d5f,_0x13bef8,_0x156e38,_0x27d9fb)=>{var _0x1028d4=_0x512809;for(var _0x4276e3=_0x27d9fb>0x1?void 0x0:_0x27d9fb?Me(_0x13bef8,_0x156e38):_0x13bef8,_0x2a9604=_0x502d5f[_0x1028d4(0x1e7)]-0x1,_0x1fe59c;_0x2a9604>=0x0;_0x2a9604--)(_0x1fe59c=_0x502d5f[_0x2a9604])&&(_0x4276e3=_0x1fe59c(_0x4276e3)||_0x4276e3);return _0x4276e3;},$=(_0x33e621,_0x310d72)=>(_0xac02c0,_0x2732a9)=>_0x310d72(_0xac02c0,_0x2732a9,_0x33e621);let b=class extends _0x53ac40{constructor(_0x2d1c5c,_0x3d93ae){var _0x396b49=_0x512809;super(),this[_0x396b49(0x225)]=_0x2d1c5c,this[_0x396b49(0x1e5)]=_0x3d93ae,this[_0x396b49(0x1c7)]();}['_mountLiveShare'](){var _0x440d1b=_0x512809;this[_0x440d1b(0x1f3)](this[_0x440d1b(0x1e5)][_0x440d1b(0x1db)](_0x8c4c5d[_0x440d1b(0x1c3)],()=>_0x29aac4(Te,this['_injector'])));}};b=ke([$(0x0,_0x30a9c5(_0x21b692)),$(0x1,_0x44b862)],b);var Ge=Object[_0x512809(0x24f)],We=Object[_0x512809(0x1fb)],Ye=(_0x479959,_0x1e07c1,_0x5534af)=>_0x1e07c1 in _0x479959?Ge(_0x479959,_0x1e07c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5534af}):_0x479959[_0x1e07c1]=_0x5534af,Be=(_0x39d9de,_0x68c71,_0x3426f4,_0x4e020b)=>{var _0x4b52f8=_0x512809;for(var _0x3ba3da=_0x4e020b>0x1?void 0x0:_0x4e020b?We(_0x68c71,_0x3426f4):_0x68c71,_0x2b549f=_0x39d9de[_0x4b52f8(0x1e7)]-0x1,_0x589753;_0x2b549f>=0x0;_0x2b549f--)(_0x589753=_0x39d9de[_0x2b549f])&&(_0x3ba3da=_0x589753(_0x3ba3da)||_0x3ba3da);return _0x3ba3da;},F=(_0x564057,_0x5f2816)=>(_0x2203aa,_0x2480a2)=>_0x5f2816(_0x2203aa,_0x2480a2,_0x564057),J=(_0x3b23e4,_0x5b5b96,_0x594b84)=>Ye(_0x3b23e4,typeof _0x5b5b96!=_0x512809(0x255)?_0x5b5b96+'':_0x5b5b96,_0x594b84);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2850ce{constructor(_0x40eeaa=T,_0x5ea98d,_0x214f15){var _0x3ba965=_0x512809;super(),this[_0x3ba965(0x1c0)]=_0x40eeaa,this[_0x3ba965(0x225)]=_0x5ea98d,this[_0x3ba965(0x1f7)]=_0x214f15;const {..._0x59a5fd}=_0x4a6d52({},T,this[_0x3ba965(0x1c0)]);this[_0x3ba965(0x1f7)][_0x3ba965(0x208)](Oe,_0x59a5fd);}[_0x512809(0x1fc)](){var _0x25f4fc=_0x512809;_0x1f5629(this[_0x25f4fc(0x225)],_0x3defda([[L],[I],[m],[b]],this[_0x25f4fc(0x1c0)][_0x25f4fc(0x23c)])),_0x397a1f(this['_injector'],[[m]]);}[_0x512809(0x1c4)](){var _0x4f3f56=_0x512809;_0x397a1f(this[_0x4f3f56(0x225)],[[b]]);}};J(O,_0x512809(0x249),_0x12828d[_0x512809(0x226)]),J(O,'pluginName',Ze),O=Be([_0x352ef8(_0xc07b40),F(0x1,_0x30a9c5(_0x21b692)),F(0x2,_0x1caea7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x681412=_0x2404;(function(_0x383fe4,_0x5f02e4){var _0x401829=_0x2404,_0x58de48=_0x383fe4();while(!![]){try{var _0x306598=-parseInt(_0x401829(0x115))/0x1+parseInt(_0x401829(0xd6))/0x2*(parseInt(_0x401829(0xf8))/0x3)+-parseInt(_0x401829(0xbe))/0x4*(-parseInt(_0x401829(0x11c))/0x5)+-parseInt(_0x401829(0x114))/0x6+parseInt(_0x401829(0xa6))/0x7+-parseInt(_0x401829(0x71))/0x8+parseInt(_0x401829(0x100))/0x9*(parseInt(_0x401829(0xe5))/0xa);if(_0x306598===_0x5f02e4)break;else _0x58de48['push'](_0x58de48['shift']());}catch(_0x5390cb){_0x58de48['push'](_0x58de48['shift']());}}}(_0x51f4,0xa2652));var q=Object[_0x681412(0x6a)],z=(_0x10baef,_0x2598c4,_0x57acf5)=>_0x2598c4 in _0x10baef?q(_0x10baef,_0x2598c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57acf5}):_0x10baef[_0x2598c4]=_0x57acf5,d=(_0x55f32d,_0x4494b7,_0x1d483f)=>z(_0x55f32d,typeof _0x4494b7!=_0x681412(0x10e)?_0x4494b7+'':_0x4494b7,_0x1d483f);import{CollaborationSessionService as _0x1faba0,SessionStatus as _0x38d8d9,UniverCollaborationClientPlugin as _0x57f446}from'@univerjs-pro/collaboration-client';import{Disposable as _0x241051,toDisposable as _0x4f2dd9,Inject as _0x139ce6,IUniverInstanceService as _0x31b99c,Injector as _0x11080b,IConfigService as _0x2337c9,ICommandService as _0x48191d,RxDisposable as _0x1c4ea5,UniverInstanceType as _0x317cab,DisposableCollection as _0xa86c30,CommandType as _0x23dae4,DependentOn as _0x37ce8e,Plugin as _0x848c35,merge as _0x3e099a,registerDependencies as _0x4be35f,mergeOverrideWithDependencies as _0x440c70,touchDependencies as _0x1d6705}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x210f83,InsertSheetMutation as _0x26df3b}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2a0b18,SetScrollOperation as _0x12a170}from'@univerjs/sheets-ui';import{useDependency as _0x3f1b3f,useObservable as _0xecba58,IUIPartsService as _0x5bacad,BuiltInUIPart as _0x44de67,connectInjector as _0x1718cd}from'@univerjs/ui';import{jsx as _0xc4291b,jsxs as _0x53f092,Fragment as _0x5e51be}from'react/jsx-runtime';import{Dropdown as _0x5d87c2,clsx as _0x356cf3,Button as _0x5e8a86}from'@univerjs/design';import{forwardRef as _0x41307c,useRef as _0x1ab28e,createElement as _0x27475c,useState as _0x447d4f,useEffect as _0x47a9c7}from'react';import{CollaborationEvent as _0x2191a8,parseProtocolChangeset as _0x2cd3d7}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x237136,Subject as _0x2fe177}from'rxjs';import{takeUntil as _0x58f411,throttleTime as _0x5eb38f}from'rxjs/operators';const Oe=_0x681412(0x6d),T={};class L extends _0x241051{constructor(){var _0x5972fb=_0x681412;super(...arguments),d(this,_0x5972fb(0xbb),new Set()),d(this,'_reporters',new Set());}[_0x681412(0xc4)](_0x42f360){var _0x148648=_0x681412;return this[_0x148648(0xbb)][_0x148648(0xe8)](_0x42f360),_0x4f2dd9(()=>this[_0x148648(0xbb)][_0x148648(0x95)](_0x42f360));}[_0x681412(0x9b)](_0x27b4a3){var _0x2188e8=_0x681412;return this[_0x2188e8(0x7c)]['add'](_0x27b4a3),_0x4f2dd9(()=>this[_0x2188e8(0x7c)][_0x2188e8(0x95)](_0x27b4a3));}[_0x681412(0x68)](_0x24ec32){var _0x4ea564=_0x681412;return this['_sharedOperations'][_0x4ea564(0xe2)](_0x24ec32);}[_0x681412(0x9c)](_0x396ef5){var _0x21dc93=_0x681412;return Array[_0x21dc93(0x8d)](this['_reporters'])[_0x21dc93(0xe7)](_0x566371=>_0x566371(_0x396ef5));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x4fb359,_0x5dd437,_0xe7639a,_0x15f288)=>{var _0x2277ab=_0x681412;for(var _0x3860d8=_0x15f288>0x1?void 0x0:_0x15f288?Ee(_0x5dd437,_0xe7639a):_0x5dd437,_0x4107b8=_0x4fb359[_0x2277ab(0x78)]-0x1,_0x3e819c;_0x4107b8>=0x0;_0x4107b8--)(_0x3e819c=_0x4fb359[_0x4107b8])&&(_0x3860d8=_0x3e819c(_0x3860d8)||_0x3860d8);return _0x3860d8;},Ne=(_0x221867,_0x132933)=>(_0x4f420c,_0x9ad449)=>_0x132933(_0x4f420c,_0x9ad449,_0x221867);let m=class extends _0x241051{constructor(_0x142cee){var _0x2508ed=_0x681412;super(),this['_liveShareService']=_0x142cee,this[_0x2508ed(0xd8)]();}['_init'](){var _0x348bc3=_0x681412;[_0x2a0b18['id'],_0x12a170['id'],_0x210f83['id']][_0x348bc3(0x97)](_0xd3c8f7=>{var _0x4bdc53=_0x348bc3;this[_0x4bdc53(0x82)](this['_liveShareService'][_0x4bdc53(0xc4)](_0xd3c8f7));});}};m=we([Ne(0x0,_0x139ce6(L))],m);var c=function(){var _0x33ea2e=_0x681412;return c=Object['assign']||function(_0x5c15e2){var _0x28590f=_0x2404;for(var _0x4f5eda,_0x43989d=0x1,_0x2c47e2=arguments['length'];_0x43989d<_0x2c47e2;_0x43989d++){_0x4f5eda=arguments[_0x43989d];for(var _0xbd500e in _0x4f5eda)Object['prototype']['hasOwnProperty'][_0x28590f(0x81)](_0x4f5eda,_0xbd500e)&&(_0x5c15e2[_0xbd500e]=_0x4f5eda[_0xbd500e]);}return _0x5c15e2;},c[_0x33ea2e(0x11a)](this,arguments);},Ce=function(_0x5c9e33,_0x42aff9){var _0x579dec=_0x681412,_0x5ef0ac={};for(var _0x33d532 in _0x5c9e33)Object[_0x579dec(0x7e)]['hasOwnProperty'][_0x579dec(0x81)](_0x5c9e33,_0x33d532)&&_0x42aff9[_0x579dec(0xa7)](_0x33d532)<0x0&&(_0x5ef0ac[_0x33d532]=_0x5c9e33[_0x33d532]);if(_0x5c9e33!=null&&typeof Object[_0x579dec(0xde)]=='function'){for(var _0x3396ff=0x0,_0x33d532=Object[_0x579dec(0xde)](_0x5c9e33);_0x3396ff<_0x33d532['length'];_0x3396ff++)_0x42aff9['indexOf'](_0x33d532[_0x3396ff])<0x0&&Object[_0x579dec(0x7e)][_0x579dec(0xf3)][_0x579dec(0x81)](_0x5c9e33,_0x33d532[_0x3396ff])&&(_0x5ef0ac[_0x33d532[_0x3396ff]]=_0x5c9e33[_0x33d532[_0x3396ff]]);}return _0x5ef0ac;},W=_0x41307c(function(_0x58074d,_0x39b3e5){var _0x385ab7=_0x681412,_0x1aa665=_0x58074d['icon'],_0x5df5=_0x58074d['id'],_0x10d8b4=_0x58074d[_0x385ab7(0x83)],_0xbdf82=_0x58074d['extend'],_0x1e4e63=Ce(_0x58074d,[_0x385ab7(0x67),'id',_0x385ab7(0x83),_0x385ab7(0x9f)]),_0x179c06='univerjs-icon\x20univerjs-icon-'[_0x385ab7(0xfe)](_0x5df5,'\x20')[_0x385ab7(0xfe)](_0x10d8b4||'')[_0x385ab7(0xcd)](),_0x36dc8b=_0x1ab28e('_'[_0x385ab7(0xfe)](Le()));return Y(_0x1aa665,''[_0x385ab7(0xfe)](_0x5df5),{'defIds':_0x1aa665['defIds'],'idSuffix':_0x36dc8b[_0x385ab7(0x74)]},c({'ref':_0x39b3e5,'className':_0x179c06},_0x1e4e63),_0xbdf82);});function Y(_0x8a2eb8,_0x13f862,_0x928f36,_0x97d2d0,_0x1d3e33){var _0x32e7b9=_0x681412;return _0x27475c(_0x8a2eb8['tag'],c(c({'key':_0x13f862},De(_0x8a2eb8,_0x928f36,_0x1d3e33)),_0x97d2d0),(xe(_0x8a2eb8,_0x928f36)[_0x32e7b9(0xd7)]||[])[_0x32e7b9(0xe7)](function(_0x2aca68,_0x4e9f4f){var _0x98fa3c=_0x32e7b9;return Y(_0x2aca68,''[_0x98fa3c(0xfe)](_0x13f862,'-')[_0x98fa3c(0xfe)](_0x8a2eb8[_0x98fa3c(0xb7)],'-')[_0x98fa3c(0xfe)](_0x4e9f4f),_0x928f36,void 0x0,_0x1d3e33);}));}function De(_0x5cf389,_0x167c5c,_0x416917){var _0x48cf94=_0x681412,_0x3278d1=c({},_0x5cf389[_0x48cf94(0x8e)]);_0x416917!=null&&_0x416917[_0x48cf94(0x10c)]&&_0x3278d1[_0x48cf94(0xba)]===_0x48cf94(0x10c)&&(_0x3278d1['fill']=_0x416917['colorChannel1']),_0x5cf389['tag']===_0x48cf94(0x10a)&&_0x3278d1['id']&&(_0x3278d1['id']=_0x3278d1['id']+_0x167c5c[_0x48cf94(0xfa)]),Object[_0x48cf94(0xa9)](_0x3278d1)[_0x48cf94(0x97)](function(_0x14ad31){var _0xb5cc59=_0x48cf94,_0x125950=_0x14ad31[0x0],_0x276d22=_0x14ad31[0x1];_0x125950===_0xb5cc59(0x10a)&&typeof _0x276d22==_0xb5cc59(0xae)&&(_0x3278d1[_0x125950]=_0x276d22[_0xb5cc59(0x6f)](/url\(#(.*)\)/,'url(#$1'[_0xb5cc59(0xfe)](_0x167c5c[_0xb5cc59(0xfa)],')')));});var _0x1ca91a=_0x167c5c[_0x48cf94(0x109)];return!_0x1ca91a||_0x1ca91a[_0x48cf94(0x78)]===0x0||(_0x5cf389[_0x48cf94(0xb7)]===_0x48cf94(0xcc)&&_0x3278d1[_0x48cf94(0xeb)]&&(_0x3278d1['xlink:href']=_0x3278d1['xlink:href']+_0x167c5c['idSuffix']),Object[_0x48cf94(0xa9)](_0x3278d1)[_0x48cf94(0x97)](function(_0x53d887){var _0x1f386a=_0x48cf94,_0x1922fc=_0x53d887[0x0],_0x3c74bf=_0x53d887[0x1];typeof _0x3c74bf==_0x1f386a(0xae)&&(_0x3278d1[_0x1922fc]=_0x3c74bf['replace'](/url\(#(.*)\)/,_0x1f386a(0x72)[_0x1f386a(0xfe)](_0x167c5c['idSuffix'],')')));})),_0x3278d1;}function xe(_0x4fea84,_0x17f27d){var _0x4c3fa9=_0x681412,_0x498837,_0x537680=_0x17f27d[_0x4c3fa9(0x109)];return!_0x537680||_0x537680[_0x4c3fa9(0x78)]===0x0?_0x4fea84:_0x4fea84[_0x4c3fa9(0xb7)]===_0x4c3fa9(0xa2)&&(!((_0x498837=_0x4fea84['children'])===null||_0x498837===void 0x0)&&_0x498837[_0x4c3fa9(0x78)])?c(c({},_0x4fea84),{'children':_0x4fea84[_0x4c3fa9(0xd7)]['map'](function(_0x2b32c7){var _0x3cfc8e=_0x4c3fa9;return typeof _0x2b32c7[_0x3cfc8e(0x8e)]['id']==_0x3cfc8e(0xae)&&_0x537680&&_0x537680[_0x3cfc8e(0xb1)](_0x2b32c7['attrs']['id'])?c(c({},_0x2b32c7),{'attrs':c(c({},_0x2b32c7['attrs']),{'id':_0x2b32c7[_0x3cfc8e(0x8e)]['id']+_0x17f27d[_0x3cfc8e(0xfa)]})}):_0x2b32c7;})}):_0x4fea84;}function Le(){var _0x5bda85=_0x681412;return Math['random']()[_0x5bda85(0xac)](0x24)['substring'](0x2,0x8);}function _0x51f4(){var _0x276bc8=['get','1633615ktHdvi','_handleOperation','_handleOnline','LIVESHARE_NEW_HOST','icon','shouldShareOperation','data','defineProperty','createInstance','operations','live-share.config','http://www.w3.org/2000/svg','replace','getUnitId','1408552rrZLdq','url(#$1','Stop\x20presenting','current','_status$','UNIVER_UNKNOWN','IDLE','length','NEW_CHANGESETS','FOLLOWING','univer-size-4','_reporters','pipe','prototype','status$','following','call','disposeWithMe','className','_unitID','init','_injector','getOwnPropertyDescriptor','_config','_entities','clear','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','from','attrs','values','_beIdle','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','OPERATION','_mountLiveShare','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','getTypeOfUnitAdded$','_univerInstanceService','presenter','registerInitialStateReporter','getInitialStates','_presenter','_uiPartsService','extend','end','parse','defs','complete','currentColor','override','3224977hMSFRU','indexOf','dispose$','entries','You\x27are\x20offline.','unsubscribe','toString','idle','string','requireSession','UNIVER_LIVE_SHARE_PLUGIN','includes','Start\x20following','LIVESHARE_OPERATION','registerComponent','offline','0\x200\x2017\x2017','tag','asObservable','memberID','fill','_sharedOperations','presenting','path','4TEVYDU','getMemberID','stopPresenting','dispose','none','_handleTerminate','registerSharedOperation','You\x27re\x20not\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','_liveShareService','then','onStarting','sessionStatus$','_stopFollowing','use','trim','sheet','_commandDisposable','getLiveShareCoordinator','OFFLINE','subscribe','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','_handleNewChangeSets','not-following','2358MeRkRa','children','_init','send','div','getValue','LIVESHARE_FETCH_OPERATIONS','assign','getOwnPropertySymbols','onCommandExecuted','setConfig','set','has','LIVESHARE_REQUEST_HOST','mutations','140nktJaM','default','map','add','_collabSessionService','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','xlink:href','displayName','_collabSession','params','_stopPresenting','UNIVER_SHEET','startFollowing','LIVESHARE_TERMINATE','propertyIsEnumerable','NOT_FOLLOWING','_status','LiveShareIcon','_configService','525TRIZDX','type','idSuffix','_handleOffline','evenodd','next','concat','stopFollowing','1012779qdHhwg','PRESENTING','_startPresenting','pluginName','svg','UniverIcon','text','button','unitId','defIds','mask','_handleNewHost','colorChannel1','1em','symbol','executeCommand','tryStartPresenting','live-share-icon','You\x27re\x20presenting\x20the\x20document','_commandService','5601810NgDcsn','794319iAaZAx','stringify','Present\x20this\x20document','event$','find','apply'];_0x51f4=function(){return _0x276bc8;};return _0x51f4();}W[_0x681412(0xec)]=_0x681412(0x105);var ye={'tag':_0x681412(0x104),'attrs':{'xmlns':_0x681412(0x6e),'fill':_0x681412(0xc2),'viewBox':_0x681412(0xb6),'width':_0x681412(0x10d),'height':_0x681412(0x10d)},'children':[{'tag':_0x681412(0xbd),'attrs':{'fill':_0x681412(0xa4),'d':_0x681412(0xea)}},{'tag':_0x681412(0xbd),'attrs':{'fill':_0x681412(0xa4),'d':_0x681412(0xd3),'fillRule':'evenodd','clipRule':_0x681412(0xfc)}}]},B=_0x41307c(function(_0x1ddc30,_0x1706a4){var _0xffd721=_0x681412;return _0x27475c(W,Object[_0xffd721(0xdd)]({},_0x1ddc30,{'id':_0xffd721(0x111),'ref':_0x1706a4,'icon':ye}));});B[_0x681412(0xec)]=_0x681412(0xf6);var Re=Object[_0x681412(0x87)],Z=(_0x433dff,_0x30726a,_0x58b847,_0x428124)=>{var _0x3cd0bb=_0x681412;for(var _0xf5d581=_0x428124>0x1?void 0x0:_0x428124?Re(_0x30726a,_0x58b847):_0x30726a,_0x4784a8=_0x433dff[_0x3cd0bb(0x78)]-0x1,_0x15963c;_0x4784a8>=0x0;_0x4784a8--)(_0x15963c=_0x433dff[_0x4784a8])&&(_0xf5d581=_0x15963c(_0xf5d581)||_0xf5d581);return _0xf5d581;},f=(_0x47f40d,_0x4e8b58)=>(_0x388164,_0x4e4c19)=>_0x4e8b58(_0x388164,_0x4e4c19,_0x47f40d);let I=class extends _0x1c4ea5{constructor(_0x5afcfd,_0x3bae14,_0x15d13e){var _0x3a04e4=_0x681412;super(),d(this,_0x3a04e4(0x89),new Map()),(this[_0x3a04e4(0x99)]=_0x5afcfd,this[_0x3a04e4(0x86)]=_0x3bae14,this[_0x3a04e4(0xe9)]=_0x15d13e,this[_0x3a04e4(0xd8)]());}async[_0x681412(0xd0)](_0x1d0d03){var _0x4d940d=_0x681412;return this[_0x4d940d(0x89)]['has'](_0x1d0d03)||await this[_0x4d940d(0x92)](_0x1d0d03),this[_0x4d940d(0x89)][_0x4d940d(0x11b)](_0x1d0d03);}[_0x681412(0xd8)](){var _0x1afb8d=_0x681412;this[_0x1afb8d(0x99)][_0x1afb8d(0x98)](_0x317cab[_0x1afb8d(0xf0)])['pipe'](_0x58f411(this[_0x1afb8d(0xa8)]))['subscribe'](async _0x50ddf7=>{var _0x15d4b3=_0x1afb8d;const _0x2acee1=_0x50ddf7[_0x15d4b3(0x70)]();this[_0x15d4b3(0x89)][_0x15d4b3(0xe2)](_0x2acee1)||this[_0x15d4b3(0x92)](_0x2acee1);}),this[_0x1afb8d(0x99)][_0x1afb8d(0xc6)](_0x317cab[_0x1afb8d(0xf0)])[_0x1afb8d(0x7d)](_0x58f411(this[_0x1afb8d(0xa8)]))['subscribe'](_0x58ccea=>{var _0x56aabf=_0x1afb8d;const _0x4a750b=_0x58ccea[_0x56aabf(0x70)](),_0x376e71=this[_0x56aabf(0x89)][_0x56aabf(0x11b)](_0x4a750b);_0x376e71==null||_0x376e71['dispose']();});}async['_startLiveShareCoordinator'](_0x31e398){var _0x1975c1=_0x681412;const _0x180ead=await this[_0x1975c1(0xe9)][_0x1975c1(0xaf)](_0x31e398),_0x14ee3d=this['_injector'][_0x1975c1(0x6b)](C,_0x31e398,_0x180ead);return _0x14ee3d[_0x1975c1(0x85)](),this[_0x1975c1(0x89)][_0x1975c1(0xe1)](_0x31e398,_0x14ee3d),_0x14ee3d;}};I=Z([f(0x0,_0x31b99c),f(0x1,_0x139ce6(_0x11080b)),f(0x2,_0x139ce6(_0x1faba0))],I);var h=(_0x2d92d9=>(_0x2d92d9[_0x681412(0xd1)]='offline',_0x2d92d9[_0x681412(0x77)]='idle',_0x2d92d9[_0x681412(0x7a)]=_0x681412(0x80),_0x2d92d9[_0x681412(0xf4)]=_0x681412(0xd5),_0x2d92d9[_0x681412(0x101)]=_0x681412(0xbc),_0x2d92d9))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x1c4ea5{constructor(_0x533541,_0x48b899,_0x6fb37f,_0x523583,_0x13f561){var _0x198503=_0x681412;super(),d(this,_0x198503(0x75),new _0x237136(_0x198503(0xad))),d(this,_0x198503(0x7f),this[_0x198503(0x75)][_0x198503(0xb8)]()),d(this,_0x198503(0xd8),!0x1),d(this,_0x198503(0xcf),null),d(this,_0x198503(0x9d),null),(this['_unitID']=_0x533541,this[_0x198503(0xed)]=_0x48b899,this[_0x198503(0xf7)]=_0x6fb37f,this[_0x198503(0xc7)]=_0x523583,this['_commandService']=_0x13f561);}get[_0x681412(0xf5)](){var _0xfb2aa0=_0x681412;return this[_0xfb2aa0(0x75)][_0xfb2aa0(0xdb)]();}[_0x681412(0xc1)](){var _0x2bf40b=_0x681412,_0x597bfa;(_0x597bfa=this[_0x2bf40b(0xcf)])==null||_0x597bfa[_0x2bf40b(0xc1)](),this[_0x2bf40b(0x75)][_0x2bf40b(0xfd)](_0x2bf40b(0xad)),this[_0x2bf40b(0x75)][_0x2bf40b(0xa3)]();}[_0x681412(0x85)](){var _0xcfdb57=_0x681412;this[_0xcfdb57(0xd8)]||(this[_0xcfdb57(0xd8)]=!0x0,this[_0xcfdb57(0xed)][_0xcfdb57(0xca)][_0xcfdb57(0x7d)](_0x58f411(this[_0xcfdb57(0xa8)]))['subscribe'](_0x2f550a=>{var _0x7ac6c6=_0xcfdb57;switch(_0x2f550a){case _0x38d8d9[_0x7ac6c6(0xd1)]:this[_0x7ac6c6(0xfb)]();break;case _0x38d8d9['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0xcfdb57(0x118)][_0xcfdb57(0x7d)](_0x58f411(this[_0xcfdb57(0xa8)]))['subscribe'](_0x5140e4=>{var _0x5a72ae=_0xcfdb57;const {eventID:_0x485d79}=_0x5140e4;switch(_0x485d79){case _0x2191a8[_0x5a72ae(0x11f)]:this['_handleNewHost'](_0x5140e4);break;case _0x2191a8[_0x5a72ae(0xb3)]:this[_0x5a72ae(0x11d)](_0x5140e4);break;case _0x2191a8[_0x5a72ae(0xf2)]:this[_0x5a72ae(0xc3)]();break;case _0x2191a8[_0x5a72ae(0x79)]:this[_0x5a72ae(0xd4)](_0x5140e4);break;}}));}[_0x681412(0x110)](){var _0x270741=_0x681412;this[_0x270741(0xed)][_0x270741(0xd9)]({'eventID':_0x2191a8[_0x270741(0xe3)],'data':{'unitID':this[_0x270741(0x84)],'userID':this['_collabSession'][_0x270741(0xbf)]()}},this[_0x270741(0x84)]);}[_0x681412(0xc0)](){var _0x5a3c8f=_0x681412;this[_0x5a3c8f(0xf5)]===_0x5a3c8f(0xbc)&&(this[_0x5a3c8f(0x75)]['next'](_0x5a3c8f(0xad)),this[_0x5a3c8f(0xed)]['send']({'eventID':_0x2191a8[_0x5a3c8f(0xf2)],'data':{'unitID':this[_0x5a3c8f(0x84)]}},this[_0x5a3c8f(0x84)]));}['startFollowing'](){var _0x37c38b=_0x681412;this[_0x37c38b(0xf5)]===_0x37c38b(0xd5)&&(this['_status$'][_0x37c38b(0xfd)](_0x37c38b(0x80)),this['_startFollowing']());}[_0x681412(0xff)](){var _0x293b24=_0x681412;this[_0x293b24(0xf5)]==='following'&&this[_0x293b24(0xcb)]();}[_0x681412(0x10b)](_0x45db8f){var _0x542f26=_0x681412;const {presenter:_0x3c7b77}=_0x45db8f[_0x542f26(0x69)],_0x2e81f8=this[_0x542f26(0xed)][_0x542f26(0xbf)]();this[_0x542f26(0x9d)]=_0x3c7b77,_0x3c7b77===_0x2e81f8?(this[_0x542f26(0xcb)](),this[_0x542f26(0x102)]()):this['_status']!==_0x542f26(0xd5)&&(this[_0x542f26(0xef)](),this[_0x542f26(0x8b)]());}['_fetchOperations'](){var _0x316b56=_0x681412;const _0x41bd8d={'eventID':_0x2191a8[_0x316b56(0xdc)]};this[_0x316b56(0xed)][_0x316b56(0xd9)](_0x41bd8d,this['_unitID']);}[_0x681412(0xc3)](){var _0x3fe8e4=_0x681412;this['_presenter']=null,this[_0x3fe8e4(0xf5)]!==_0x3fe8e4(0xbc)&&this['_beIdle']();}[_0x681412(0xd4)](_0x2105f3){var _0x3296c3=_0x681412;if(this[_0x3296c3(0xf5)]===_0x3296c3(0x80)&&this[_0x3296c3(0x9d)]===_0x2105f3[_0x3296c3(0x69)][_0x3296c3(0xb9)]){const _0x2d4a33=_0x2cd3d7(_0x2105f3['data'])[_0x3296c3(0xe4)]['reverse']()[_0x3296c3(0x119)](_0xc8fa64=>_0xc8fa64['id']===_0x26df3b['id']);if(_0x2d4a33){const _0x3328de=_0x2d4a33[_0x3296c3(0xee)][_0x3296c3(0x108)],_0x38897e=_0x2d4a33[_0x3296c3(0xee)][_0x3296c3(0xce)]['id'];setTimeout(()=>{var _0x46ec55=_0x3296c3;this[_0x46ec55(0x113)][_0x46ec55(0x10f)](_0x210f83['id'],{'unitId':_0x3328de,'subUnitId':_0x38897e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x51c299=_0x681412;this[_0x51c299(0x75)][_0x51c299(0xfd)]('presenting');const _0x5683d0=new Map(),_0x33e533=this[_0x51c299(0xcf)]=new _0xa86c30();_0x33e533[_0x51c299(0xe8)](_0x4f2dd9(()=>{var _0x134867=_0x51c299;_0x5683d0[_0x134867(0x97)](_0x5e47e5=>_0x5e47e5[_0x134867(0xa3)]()),_0x5683d0[_0x134867(0x8a)]();})),_0x33e533[_0x51c299(0xe8)](this[_0x51c299(0x113)][_0x51c299(0xdf)](_0x28d291=>{var _0x4d1b3e=_0x51c299,_0x19799c;if(_0x28d291[_0x4d1b3e(0xf9)]!==_0x23dae4[_0x4d1b3e(0x93)]||!this[_0x4d1b3e(0xc7)][_0x4d1b3e(0x68)](_0x28d291['id']))return;const {id:_0x348ce3}=_0x28d291;let _0x99dff0;_0x5683d0[_0x4d1b3e(0xe2)](_0x348ce3)?_0x99dff0=_0x5683d0[_0x4d1b3e(0x11b)](_0x348ce3):(_0x99dff0=new _0x2fe177(),_0x5683d0[_0x4d1b3e(0xe1)](_0x348ce3,_0x99dff0),_0x99dff0[_0x4d1b3e(0x7d)](_0x5eb38f((_0x19799c=this[_0x4d1b3e(0xf7)]['getConfig'](Pe))!=null?_0x19799c:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4d1b3e(0xd2)](_0x31ac21=>{var _0x48f302=_0x4d1b3e;this[_0x48f302(0xed)]['send']({'eventID':_0x2191a8['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x48f302(0x84)],'operations':{[_0x31ac21['id']]:{'id':_0x31ac21['id'],'params':JSON[_0x48f302(0x116)](_0x31ac21['params'])}}}},this[_0x48f302(0x84)]);})),_0x99dff0[_0x4d1b3e(0xfd)](_0x28d291);})),this[_0x51c299(0xc7)][_0x51c299(0x9c)](this[_0x51c299(0x84)])['forEach'](_0x44ead0=>this[_0x51c299(0xed)][_0x51c299(0xd9)]({'eventID':_0x2191a8[_0x51c299(0xb3)],'data':{'unitID':this[_0x51c299(0x84)],'operations':{[_0x44ead0['id']]:{'id':_0x44ead0['id'],'params':JSON['stringify'](_0x44ead0[_0x51c299(0xee)])}}}},this['_unitID']));}[_0x681412(0xef)](){var _0x134c3c=_0x681412,_0x24b137;this[_0x134c3c(0x75)][_0x134c3c(0xfd)](_0x134c3c(0xad)),(_0x24b137=this[_0x134c3c(0xcf)])==null||_0x24b137['dispose'](),this[_0x134c3c(0xcf)]=null;}[_0x681412(0x8b)](){var _0x13231d=_0x681412,_0x50ee1d;(_0x50ee1d=this[_0x13231d(0xcf)])==null||_0x50ee1d[_0x13231d(0xc1)](),this[_0x13231d(0x75)][_0x13231d(0xfd)](_0x13231d(0x80));}[_0x681412(0x90)](){var _0x6c3a34=_0x681412,_0x1e5704;this[_0x6c3a34(0x75)]['next'](_0x6c3a34(0xad)),(_0x1e5704=this[_0x6c3a34(0xcf)])==null||_0x1e5704['dispose'](),this['_commandDisposable']=null;}[_0x681412(0xcb)](){var _0x31692d=_0x681412,_0x57ea72;this[_0x31692d(0x75)]['next'](_0x31692d(0xd5)),(_0x57ea72=this[_0x31692d(0xcf)])==null||_0x57ea72[_0x31692d(0xc1)]();}[_0x681412(0x11d)](_0x268f8e){var _0x23bfc5=_0x681412;if([_0x23bfc5(0xbc),_0x23bfc5(0xd5),_0x23bfc5(0xb5)][_0x23bfc5(0xb1)](this[_0x23bfc5(0xf5)])||!_0x268f8e[_0x23bfc5(0x69)][_0x23bfc5(0x9a)]||_0x268f8e[_0x23bfc5(0x69)][_0x23bfc5(0x9a)]===this[_0x23bfc5(0xed)]['getMemberID']())return;this[_0x23bfc5(0xf5)]===_0x23bfc5(0xad)&&this[_0x23bfc5(0x8b)]();const _0x4d62e5=_0x268f8e[_0x23bfc5(0x69)][_0x23bfc5(0x6c)];Object[_0x23bfc5(0x8f)](_0x4d62e5)['forEach'](_0x23f50e=>{var _0x2a76e0=_0x23bfc5;this['_commandService'][_0x2a76e0(0x10f)](_0x23f50e['id'],_0x23f50e[_0x2a76e0(0xee)]?JSON[_0x2a76e0(0xa1)](_0x23f50e[_0x2a76e0(0xee)]):null,{'fromCollab':!0x0});});}[_0x681412(0xfb)](){var _0x2c8b9e=_0x681412,_0x5ca92a;this[_0x2c8b9e(0x75)][_0x2c8b9e(0xfd)]('offline'),(_0x5ca92a=this[_0x2c8b9e(0xcf)])==null||_0x5ca92a[_0x2c8b9e(0xc1)]();}[_0x681412(0x11e)](){var _0x8f38c5=_0x681412;this[_0x8f38c5(0x75)][_0x8f38c5(0xfd)](_0x8f38c5(0xad)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2337c9),f(0x3,_0x139ce6(L)),f(0x4,_0x48191d)],C);function Te(){var _0x3b61d5=_0x681412;const _0x986625=_0x3f1b3f(I),_0xfa34f9=_0x3f1b3f(_0x31b99c),_0x1908a3=_0xecba58(()=>_0xfa34f9['getCurrentTypeOfUnit$'](_0x317cab[_0x3b61d5(0xf0)]),void 0x0,!0x1,[]),[_0x217c74,_0x262478]=_0x447d4f(null),[_0x5b4540,_0x21482e]=_0x447d4f(h[_0x3b61d5(0x77)]),_0x1deb59=_0x1ab28e(null);return _0x47a9c7(()=>(_0x1908a3&&_0x986625[_0x3b61d5(0xd0)](_0x1908a3['getUnitId']())[_0x3b61d5(0xc8)](_0x1040e4=>{var _0x1a3fbd=_0x3b61d5;_0x262478(_0x1040e4),_0x1deb59['current']=_0x1040e4[_0x1a3fbd(0x7f)][_0x1a3fbd(0xd2)](_0x3e7e31=>{_0x21482e(_0x3e7e31);});}),()=>{var _0x411a6f=_0x3b61d5,_0x43eeca;(_0x43eeca=_0x1deb59[_0x411a6f(0x74)])==null||_0x43eeca[_0x411a6f(0xab)](),_0x1deb59[_0x411a6f(0x74)]=null;}),[_0x1908a3,_0x986625]),_0x217c74?_0xc4291b(_0x5d87c2,{'align':_0x3b61d5(0xa0),'disabled':_0x5b4540===h[_0x3b61d5(0xd1)],'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':_0xc4291b($e,{'status':_0x5b4540,'coordinator':_0x217c74}),'children':_0xc4291b(_0x3b61d5(0x107),{'className':_0x356cf3(_0x3b61d5(0x8c),{'univer-cursor-not-allowed':_0x5b4540===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b4540!==h[_0x3b61d5(0xd1)]}),'type':'button','children':_0xc4291b(B,{'className':_0x3b61d5(0x7b)})})}):null;}function _0x2404(_0x2537e6,_0x1c6139){var _0x51f408=_0x51f4();return _0x2404=function(_0x240454,_0x44da98){_0x240454=_0x240454-0x67;var _0x2790df=_0x51f408[_0x240454];return _0x2790df;},_0x2404(_0x2537e6,_0x1c6139);}function $e(_0x2f1ae1){var _0x1cf9a9=_0x681412;const {status:_0x5cfe3d,coordinator:_0x1193f9}=_0x2f1ae1;switch(_0x5cfe3d){case h['IDLE']:return _0xc4291b(Fe,{'coordinator':_0x1193f9});case h[_0x1cf9a9(0x7a)]:return _0xc4291b(He,{'coordinator':_0x1193f9});case h[_0x1cf9a9(0xf4)]:return _0xc4291b(je,{'coordinator':_0x1193f9});case h[_0x1cf9a9(0xd1)]:return _0xc4291b(Ve,{});case h[_0x1cf9a9(0x101)]:return _0xc4291b(Ue,{'coordinator':_0x1193f9});default:return null;}}function Fe(_0x19cdde){var _0x40c0f4=_0x681412;const {coordinator:_0x24b3f8}=_0x19cdde;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x40c0f4(0xda),{'className':_0x40c0f4(0x96),'children':_0x40c0f4(0x117)}),_0xc4291b(_0x5e8a86,{'onClick':()=>_0x24b3f8[_0x40c0f4(0x110)](),'children':'Start'})]});}function He(_0x534a1e){var _0x4e7444=_0x681412;const {coordinator:_0x1c9baa}=_0x534a1e;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x4e7444(0xda),{'className':_0x4e7444(0x96),'children':_0x4e7444(0x91)}),_0xc4291b(_0x5e8a86,{'onClick':()=>_0x1c9baa['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x41b09f){var _0x169506=_0x681412;const {coordinator:_0x584665}=_0x41b09f;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x169506(0xda),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x169506(0xc5)}),_0xc4291b(_0x5e8a86,{'variant':_0x169506(0x106),'onClick':()=>_0x584665[_0x169506(0xf1)](),'children':_0x169506(0xb2)})]});}function Ue(_0x2548b8){var _0x4a6aa3=_0x681412;const {coordinator:_0x4a19e4}=_0x2548b8;return _0x53f092(_0x5e51be,{'children':[_0xc4291b(_0x4a6aa3(0xda),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4a6aa3(0x112)}),_0xc4291b(_0x5e8a86,{'variant':_0x4a6aa3(0xe6),'onClick':()=>_0x4a19e4[_0x4a6aa3(0xc0)](),'children':_0x4a6aa3(0x73)})]});}function Ve(){var _0x5dc990=_0x681412;return _0xc4291b(_0x5e51be,{'children':_0x5dc990(0xaa)});}var Me=Object[_0x681412(0x87)],ke=(_0x409bad,_0x372924,_0x272893,_0x24b4d2)=>{var _0x4d2f35=_0x681412;for(var _0x5a5550=_0x24b4d2>0x1?void 0x0:_0x24b4d2?Me(_0x372924,_0x272893):_0x372924,_0x5cdfca=_0x409bad[_0x4d2f35(0x78)]-0x1,_0x5399e2;_0x5cdfca>=0x0;_0x5cdfca--)(_0x5399e2=_0x409bad[_0x5cdfca])&&(_0x5a5550=_0x5399e2(_0x5a5550)||_0x5a5550);return _0x5a5550;},$=(_0x2d3119,_0x30602d)=>(_0x17791d,_0x1b8139)=>_0x30602d(_0x17791d,_0x1b8139,_0x2d3119);let b=class extends _0x241051{constructor(_0x48d3c1,_0x32ccea){var _0x22026b=_0x681412;super(),this['_injector']=_0x48d3c1,this[_0x22026b(0x9e)]=_0x32ccea,this[_0x22026b(0x94)]();}[_0x681412(0x94)](){var _0x2fffa8=_0x681412;this['disposeWithMe'](this[_0x2fffa8(0x9e)][_0x2fffa8(0xb4)](_0x44de67['HEADER_MENU'],()=>_0x1718cd(Te,this['_injector'])));}};b=ke([$(0x0,_0x139ce6(_0x11080b)),$(0x1,_0x5bacad)],b);var Ge=Object[_0x681412(0x6a)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x5a672c,_0x5ef4b9,_0x41e901)=>_0x5ef4b9 in _0x5a672c?Ge(_0x5a672c,_0x5ef4b9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41e901}):_0x5a672c[_0x5ef4b9]=_0x41e901,Be=(_0x1bac39,_0x45ebda,_0x906f63,_0x341315)=>{for(var _0x360408=_0x341315>0x1?void 0x0:_0x341315?We(_0x45ebda,_0x906f63):_0x45ebda,_0x4e390a=_0x1bac39['length']-0x1,_0x424599;_0x4e390a>=0x0;_0x4e390a--)(_0x424599=_0x1bac39[_0x4e390a])&&(_0x360408=_0x424599(_0x360408)||_0x360408);return _0x360408;},F=(_0x4add43,_0xc01834)=>(_0xf90d18,_0x1706e1)=>_0xc01834(_0xf90d18,_0x1706e1,_0x4add43),J=(_0x2f1c65,_0xbc7e9,_0x10dc2d)=>Ye(_0x2f1c65,typeof _0xbc7e9!=_0x681412(0x10e)?_0xbc7e9+'':_0xbc7e9,_0x10dc2d);const Ze=_0x681412(0xb0);let O=class extends _0x848c35{constructor(_0x534930=T,_0x215bcd,_0x2a742b){var _0x18eaa3=_0x681412;super(),this[_0x18eaa3(0x88)]=_0x534930,this[_0x18eaa3(0x86)]=_0x215bcd,this[_0x18eaa3(0xf7)]=_0x2a742b;const {..._0xaf462d}=_0x3e099a({},T,this[_0x18eaa3(0x88)]);this[_0x18eaa3(0xf7)][_0x18eaa3(0xe0)](Oe,_0xaf462d);}[_0x681412(0xc9)](){var _0x1314f8=_0x681412;_0x4be35f(this['_injector'],_0x440c70([[L],[I],[m],[b]],this['_config'][_0x1314f8(0xa5)])),_0x1d6705(this[_0x1314f8(0x86)],[[m]]);}['onRendered'](){var _0x138ee0=_0x681412;_0x1d6705(this[_0x138ee0(0x86)],[[b]]);}};J(O,_0x681412(0xf9),_0x317cab[_0x681412(0x76)]),J(O,_0x681412(0x103),Ze),O=Be([_0x37ce8e(_0x57f446),F(0x1,_0x139ce6(_0x11080b)),F(0x2,_0x2337c9)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x512809=_0x18ad;(function(_0x522e3e,_0x560a95){var _0x163ba2=_0x18ad,_0x36df1f=_0x522e3e();while(!![]){try{var _0x40e2cf=-parseInt(_0x163ba2(0x1e3))/0x1*(parseInt(_0x163ba2(0x24a))/0x2)+-parseInt(_0x163ba2(0x223))/0x3*(parseInt(_0x163ba2(0x219))/0x4)+-parseInt(_0x163ba2(0x22c))/0x5*(parseInt(_0x163ba2(0x1f0))/0x6)+parseInt(_0x163ba2(0x1ba))/0x7+-parseInt(_0x163ba2(0x20e))/0x8*(-parseInt(_0x163ba2(0x1f6))/0x9)+parseInt(_0x163ba2(0x259))/0xa*(-parseInt(_0x163ba2(0x244))/0xb)+-parseInt(_0x163ba2(0x232))/0xc*(-parseInt(_0x163ba2(0x1d9))/0xd);if(_0x40e2cf===_0x560a95)break;else _0x36df1f['push'](_0x36df1f['shift']());}catch(_0x124fa1){_0x36df1f['push'](_0x36df1f['shift']());}}}(_0x61f5,0x67560));var q=Object['defineProperty'],z=(_0x68fa00,_0x26e74e,_0x33a528)=>_0x26e74e in _0x68fa00?q(_0x68fa00,_0x26e74e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33a528}):_0x68fa00[_0x26e74e]=_0x33a528,d=(_0x3b6272,_0xafedd1,_0x209c2f)=>z(_0x3b6272,typeof _0xafedd1!='symbol'?_0xafedd1+'':_0xafedd1,_0x209c2f);import{CollaborationSessionService as _0x1f7d72,SessionStatus as _0x3d4f4e,UniverCollaborationClientPlugin as _0xc07b40}from'@univerjs-pro/collaboration-client';import{Disposable as _0x53ac40,toDisposable as _0x526a75,Inject as _0x30a9c5,IUniverInstanceService as _0xa0d390,Injector as _0x21b692,IConfigService as _0x1caea7,ICommandService as _0x388a0d,RxDisposable as _0x3535cf,UniverInstanceType as _0x12828d,DisposableCollection as _0xd5101f,CommandType as _0x2ec5f9,DependentOn as _0x352ef8,Plugin as _0x2850ce,merge as _0x4a6d52,registerDependencies as _0x1f5629,mergeOverrideWithDependencies as _0x3defda,touchDependencies as _0x397a1f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x390ceb,InsertSheetMutation as _0x10745a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x60fb13,SetScrollOperation as _0x3a2380}from'@univerjs/sheets-ui';function _0x61f5(){var _0xe6bb77=['startFollowing','currentColor','path','51diWzYn','dispose$','_injector','UNIVER_UNKNOWN','univer-size-4','_commandDisposable','has','getValue','end','5MsckrV','pipe','trim','_beIdle','shouldShareOperation','stopFollowing','235344kpwNSU','get','getCurrentTypeOfUnit$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','propertyIsEnumerable','evenodd','hasOwnProperty','url(#$1','FOLLOWING','Stop\x20following','override','_startPresenting','_reporters','unsubscribe','complete','_handleNewHost','_status','IDLE','11SUGuYM','requireSession','delete','svg','0\x200\x2017\x2017','type','2XmIxfA','_stopPresenting','createInstance','current','getTypeOfUnitAdded$','defineProperty','entries','idSuffix','getMemberID','getOwnPropertySymbols','substring','symbol','OPERATION','unitId','sheet','5208270wjeQAS','LiveShareIcon','colorChannel1','_stopFollowing','getInitialStates','next','LIVESHARE_REQUEST_HOST','add','live-share-icon','not-following','random','extend','data','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','concat','_presenter','_status$','stringify','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','Stop\x20presenting','executeCommand','2063320ArzqQR','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_handleOperation','registerSharedOperation','_config','defIds','mask','HEADER_MENU','onRendered','_liveShareService','following','_mountLiveShare','memberID','default','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','_fetchOperations','_collabSessionService','displayName','icon','_startFollowing','LIVESHARE_TERMINATE','_sharedOperations','values','_unitID','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','idle','_init','715gDfhTV','univerjs-icon\x20univerjs-icon-','registerComponent','_handleOffline','OFFLINE','attrs','_handleTerminate','none','operations','status$','168323nolGAz','offline','_uiPartsService','params','length','_commandService','tag','live-share.config','parse','map','forEach','prototype','send','3601332gNYlWE','string','NOT_FOLLOWING','disposeWithMe','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','2745UEwChE','_configService','button','set','then','getOwnPropertyDescriptor','onStarting','className','_collabSession','subscribe','asObservable','init','1em','presenting','includes','presenter','replace','fill','setConfig','call','_handleOnline','div','getUnitId','http://www.w3.org/2000/svg','16472LfavXE','You\x27are\x20offline.','_univerInstanceService','LIVESHARE_OPERATION','getTypeOfUnitDisposed$','_entities','children','clear','ONLINE','Start','indexOf','67948uYCsQg','getConfig','_startLiveShareCoordinator','NEW_CHANGESETS','sessionStatus$','getLiveShareCoordinator','apply'];_0x61f5=function(){return _0xe6bb77;};return _0x61f5();}import{useDependency as _0x48897c,useObservable as _0x14654c,IUIPartsService as _0x44b862,BuiltInUIPart as _0x8c4c5d,connectInjector as _0x29aac4}from'@univerjs/ui';function _0x18ad(_0x12b7b8,_0x49ea19){var _0x61f580=_0x61f5();return _0x18ad=function(_0x18ad3e,_0x331913){_0x18ad3e=_0x18ad3e-0x1b5;var _0x51d98c=_0x61f580[_0x18ad3e];return _0x51d98c;},_0x18ad(_0x12b7b8,_0x49ea19);}import{jsx as _0xe2c74b,jsxs as _0x1774fb,Fragment as _0x315a05}from'react/jsx-runtime';import{Dropdown as _0x5212b4,clsx as _0x11bf78,Button as _0x461148}from'@univerjs/design';import{forwardRef as _0x23e84d,useRef as _0x9bf347,createElement as _0x2e64a6,useState as _0x5573ca,useEffect as _0x36bfdc}from'react';import{CollaborationEvent as _0x46c596,parseProtocolChangeset as _0x598281}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5d9b35,Subject as _0x2b4590}from'rxjs';import{takeUntil as _0x3267ce,throttleTime as _0x214502}from'rxjs/operators';const Oe=_0x512809(0x1ea),T={};class L extends _0x53ac40{constructor(){var _0x5ccad9=_0x512809;super(...arguments),d(this,_0x5ccad9(0x1d2),new Set()),d(this,_0x5ccad9(0x23e),new Set());}[_0x512809(0x1bf)](_0x504f1d){var _0x44866b=_0x512809;return this[_0x44866b(0x1d2)][_0x44866b(0x260)](_0x504f1d),_0x526a75(()=>this['_sharedOperations'][_0x44866b(0x246)](_0x504f1d));}['registerInitialStateReporter'](_0x4e099c){var _0x52ba54=_0x512809;return this[_0x52ba54(0x23e)][_0x52ba54(0x260)](_0x4e099c),_0x526a75(()=>this[_0x52ba54(0x23e)][_0x52ba54(0x246)](_0x4e099c));}[_0x512809(0x230)](_0xb69326){var _0x1bd05e=_0x512809;return this[_0x1bd05e(0x1d2)][_0x1bd05e(0x229)](_0xb69326);}[_0x512809(0x25d)](_0x154a4a){var _0x520ba7=_0x512809;return Array['from'](this['_reporters'])[_0x520ba7(0x1ec)](_0x27a6e6=>_0x27a6e6(_0x154a4a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x3e12d3,_0x24860c,_0x31faea,_0x100d8c)=>{var _0x126cb1=_0x512809;for(var _0x4432c9=_0x100d8c>0x1?void 0x0:_0x100d8c?Ee(_0x24860c,_0x31faea):_0x24860c,_0x1b71f0=_0x3e12d3[_0x126cb1(0x1e7)]-0x1,_0x11d99f;_0x1b71f0>=0x0;_0x1b71f0--)(_0x11d99f=_0x3e12d3[_0x1b71f0])&&(_0x4432c9=_0x11d99f(_0x4432c9)||_0x4432c9);return _0x4432c9;},Ne=(_0xfaafb,_0x11f4ea)=>(_0x18b947,_0x1d8d0d)=>_0x11f4ea(_0x18b947,_0x1d8d0d,_0xfaafb);let m=class extends _0x53ac40{constructor(_0x1fb8e8){var _0x3c159f=_0x512809;super(),this[_0x3c159f(0x1c5)]=_0x1fb8e8,this[_0x3c159f(0x1d8)]();}[_0x512809(0x1d8)](){var _0x353816=_0x512809;[_0x60fb13['id'],_0x3a2380['id'],_0x390ceb['id']][_0x353816(0x1ed)](_0x562e3c=>{var _0xbab10f=_0x353816;this['disposeWithMe'](this[_0xbab10f(0x1c5)][_0xbab10f(0x1bf)](_0x562e3c));});}};m=we([Ne(0x0,_0x30a9c5(L))],m);var c=function(){var _0x57d78e=_0x512809;return c=Object['assign']||function(_0x4ace82){var _0x67c959=_0x18ad;for(var _0x506049,_0x1b21fb=0x1,_0x4ecbf1=arguments['length'];_0x1b21fb<_0x4ecbf1;_0x1b21fb++){_0x506049=arguments[_0x1b21fb];for(var _0x2cac5b in _0x506049)Object[_0x67c959(0x1ee)][_0x67c959(0x238)][_0x67c959(0x209)](_0x506049,_0x2cac5b)&&(_0x4ace82[_0x2cac5b]=_0x506049[_0x2cac5b]);}return _0x4ace82;},c[_0x57d78e(0x21f)](this,arguments);},Ce=function(_0xaf3767,_0x4d9e48){var _0x179d21=_0x512809,_0x3452ba={};for(var _0x423d8e in _0xaf3767)Object[_0x179d21(0x1ee)][_0x179d21(0x238)][_0x179d21(0x209)](_0xaf3767,_0x423d8e)&&_0x4d9e48[_0x179d21(0x218)](_0x423d8e)<0x0&&(_0x3452ba[_0x423d8e]=_0xaf3767[_0x423d8e]);if(_0xaf3767!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5b4eb3=0x0,_0x423d8e=Object[_0x179d21(0x253)](_0xaf3767);_0x5b4eb3<_0x423d8e[_0x179d21(0x1e7)];_0x5b4eb3++)_0x4d9e48[_0x179d21(0x218)](_0x423d8e[_0x5b4eb3])<0x0&&Object['prototype'][_0x179d21(0x236)][_0x179d21(0x209)](_0xaf3767,_0x423d8e[_0x5b4eb3])&&(_0x3452ba[_0x423d8e[_0x5b4eb3]]=_0xaf3767[_0x423d8e[_0x5b4eb3]]);}return _0x3452ba;},W=_0x23e84d(function(_0x35eeb2,_0x252419){var _0x4c5a89=_0x512809,_0x5365af=_0x35eeb2[_0x4c5a89(0x1cf)],_0x5b1619=_0x35eeb2['id'],_0x436ecf=_0x35eeb2['className'],_0x19012d=_0x35eeb2[_0x4c5a89(0x264)],_0x5c0195=Ce(_0x35eeb2,['icon','id',_0x4c5a89(0x1fd),_0x4c5a89(0x264)]),_0x214dc1=_0x4c5a89(0x1da)[_0x4c5a89(0x268)](_0x5b1619,'\x20')[_0x4c5a89(0x268)](_0x436ecf||'')[_0x4c5a89(0x22e)](),_0x43cd7b=_0x9bf347('_'['concat'](Le()));return Y(_0x5365af,''[_0x4c5a89(0x268)](_0x5b1619),{'defIds':_0x5365af[_0x4c5a89(0x1c1)],'idSuffix':_0x43cd7b[_0x4c5a89(0x24d)]},c({'ref':_0x252419,'className':_0x214dc1},_0x5c0195),_0x19012d);});function Y(_0x2a805b,_0x38fc5b,_0x59ff1f,_0x35f12a,_0x32f42f){var _0x18223e=_0x512809;return _0x2e64a6(_0x2a805b[_0x18223e(0x1e9)],c(c({'key':_0x38fc5b},De(_0x2a805b,_0x59ff1f,_0x32f42f)),_0x35f12a),(xe(_0x2a805b,_0x59ff1f)['children']||[])[_0x18223e(0x1ec)](function(_0x44ab5e,_0x33eab0){var _0x400984=_0x18223e;return Y(_0x44ab5e,''[_0x400984(0x268)](_0x38fc5b,'-')[_0x400984(0x268)](_0x2a805b['tag'],'-')['concat'](_0x33eab0),_0x59ff1f,void 0x0,_0x32f42f);}));}function De(_0x539084,_0x1301e8,_0x3cf017){var _0x232a8e=_0x512809,_0x33cb35=c({},_0x539084['attrs']);_0x3cf017!=null&&_0x3cf017['colorChannel1']&&_0x33cb35[_0x232a8e(0x207)]===_0x232a8e(0x25b)&&(_0x33cb35[_0x232a8e(0x207)]=_0x3cf017[_0x232a8e(0x25b)]),_0x539084['tag']===_0x232a8e(0x1c2)&&_0x33cb35['id']&&(_0x33cb35['id']=_0x33cb35['id']+_0x1301e8['idSuffix']),Object[_0x232a8e(0x250)](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x30ed3f){var _0x2dd39f=_0x232a8e,_0x362da3=_0x30ed3f[0x0],_0x4fc163=_0x30ed3f[0x1];_0x362da3===_0x2dd39f(0x1c2)&&typeof _0x4fc163==_0x2dd39f(0x1f1)&&(_0x33cb35[_0x362da3]=_0x4fc163[_0x2dd39f(0x206)](/url\(#(.*)\)/,_0x2dd39f(0x239)[_0x2dd39f(0x268)](_0x1301e8['idSuffix'],')')));});var _0x1ce168=_0x1301e8[_0x232a8e(0x1c1)];return!_0x1ce168||_0x1ce168[_0x232a8e(0x1e7)]===0x0||(_0x539084[_0x232a8e(0x1e9)]==='use'&&_0x33cb35[_0x232a8e(0x1bd)]&&(_0x33cb35[_0x232a8e(0x1bd)]=_0x33cb35[_0x232a8e(0x1bd)]+_0x1301e8['idSuffix']),Object['entries'](_0x33cb35)[_0x232a8e(0x1ed)](function(_0x219945){var _0x12af84=_0x232a8e,_0x3298ad=_0x219945[0x0],_0x3e59a3=_0x219945[0x1];typeof _0x3e59a3==_0x12af84(0x1f1)&&(_0x33cb35[_0x3298ad]=_0x3e59a3['replace'](/url\(#(.*)\)/,_0x12af84(0x239)[_0x12af84(0x268)](_0x1301e8['idSuffix'],')')));})),_0x33cb35;}function xe(_0x2e02f4,_0x1688b5){var _0x15914f=_0x512809,_0x5600cd,_0x551177=_0x1688b5['defIds'];return!_0x551177||_0x551177['length']===0x0?_0x2e02f4:_0x2e02f4[_0x15914f(0x1e9)]==='defs'&&(!((_0x5600cd=_0x2e02f4['children'])===null||_0x5600cd===void 0x0)&&_0x5600cd[_0x15914f(0x1e7)])?c(c({},_0x2e02f4),{'children':_0x2e02f4[_0x15914f(0x214)][_0x15914f(0x1ec)](function(_0x5394b6){var _0xe30fcb=_0x15914f;return typeof _0x5394b6[_0xe30fcb(0x1de)]['id']=='string'&&_0x551177&&_0x551177[_0xe30fcb(0x204)](_0x5394b6[_0xe30fcb(0x1de)]['id'])?c(c({},_0x5394b6),{'attrs':c(c({},_0x5394b6[_0xe30fcb(0x1de)]),{'id':_0x5394b6[_0xe30fcb(0x1de)]['id']+_0x1688b5[_0xe30fcb(0x251)]})}):_0x5394b6;})}):_0x2e02f4;}function Le(){var _0x559577=_0x512809;return Math[_0x559577(0x263)]()['toString'](0x24)[_0x559577(0x254)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x512809(0x247),'attrs':{'xmlns':_0x512809(0x20d),'fill':_0x512809(0x1e0),'viewBox':_0x512809(0x248),'width':_0x512809(0x202),'height':_0x512809(0x202)},'children':[{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'d':_0x512809(0x1b7)}},{'tag':_0x512809(0x222),'attrs':{'fill':_0x512809(0x221),'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':_0x512809(0x237),'clipRule':_0x512809(0x237)}}]},B=_0x23e84d(function(_0x42c166,_0x47842e){var _0x398877=_0x512809;return _0x2e64a6(W,Object['assign']({},_0x42c166,{'id':_0x398877(0x261),'ref':_0x47842e,'icon':ye}));});B[_0x512809(0x1ce)]=_0x512809(0x25a);var Re=Object[_0x512809(0x1fb)],Z=(_0x5a0b21,_0x1b1996,_0x272cbc,_0x17e8e9)=>{var _0x4ee099=_0x512809;for(var _0x455e8e=_0x17e8e9>0x1?void 0x0:_0x17e8e9?Re(_0x1b1996,_0x272cbc):_0x1b1996,_0x7b7713=_0x5a0b21[_0x4ee099(0x1e7)]-0x1,_0x49ff6a;_0x7b7713>=0x0;_0x7b7713--)(_0x49ff6a=_0x5a0b21[_0x7b7713])&&(_0x455e8e=_0x49ff6a(_0x455e8e)||_0x455e8e);return _0x455e8e;},f=(_0x3a694d,_0x42c9d8)=>(_0x22a24b,_0x4d38d2)=>_0x42c9d8(_0x22a24b,_0x4d38d2,_0x3a694d);let I=class extends _0x3535cf{constructor(_0x24d818,_0x32303a,_0x20cb24){var _0x3feaed=_0x512809;super(),d(this,_0x3feaed(0x213),new Map()),(this[_0x3feaed(0x210)]=_0x24d818,this['_injector']=_0x32303a,this[_0x3feaed(0x1cd)]=_0x20cb24,this[_0x3feaed(0x1d8)]());}async[_0x512809(0x21e)](_0x5cdf3c){var _0x394492=_0x512809;return this[_0x394492(0x213)][_0x394492(0x229)](_0x5cdf3c)||await this[_0x394492(0x21b)](_0x5cdf3c),this[_0x394492(0x213)][_0x394492(0x233)](_0x5cdf3c);}['_init'](){var _0x7b76ac=_0x512809;this['_univerInstanceService'][_0x7b76ac(0x24e)](_0x12828d[_0x7b76ac(0x1bb)])['pipe'](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](async _0x316d0a=>{var _0xfdbc99=_0x7b76ac;const _0x560061=_0x316d0a[_0xfdbc99(0x20c)]();this[_0xfdbc99(0x213)][_0xfdbc99(0x229)](_0x560061)||this[_0xfdbc99(0x21b)](_0x560061);}),this[_0x7b76ac(0x210)][_0x7b76ac(0x212)](_0x12828d[_0x7b76ac(0x1bb)])[_0x7b76ac(0x22d)](_0x3267ce(this[_0x7b76ac(0x224)]))['subscribe'](_0x5a06eb=>{var _0xe40c16=_0x7b76ac;const _0x40e484=_0x5a06eb['getUnitId'](),_0x59b270=this['_entities']['get'](_0x40e484);_0x59b270==null||_0x59b270[_0xe40c16(0x1cb)]();});}async[_0x512809(0x21b)](_0x299e38){var _0x109118=_0x512809;const _0x897ae4=await this[_0x109118(0x1cd)][_0x109118(0x245)](_0x299e38),_0x5254d2=this[_0x109118(0x225)][_0x109118(0x24c)](C,_0x299e38,_0x897ae4);return _0x5254d2['init'](),this['_entities'][_0x109118(0x1f9)](_0x299e38,_0x5254d2),_0x5254d2;}};I=Z([f(0x0,_0xa0d390),f(0x1,_0x30a9c5(_0x21b692)),f(0x2,_0x30a9c5(_0x1f7d72))],I);var h=(_0x1bd8c6=>(_0x1bd8c6[_0x512809(0x1dd)]=_0x512809(0x1e4),_0x1bd8c6[_0x512809(0x243)]='idle',_0x1bd8c6[_0x512809(0x23a)]=_0x512809(0x1c6),_0x1bd8c6[_0x512809(0x1f2)]=_0x512809(0x262),_0x1bd8c6['PRESENTING']=_0x512809(0x203),_0x1bd8c6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x3535cf{constructor(_0x107549,_0x41b26f,_0x2ad2f6,_0xb42cdf,_0x46da28){var _0xc8f317=_0x512809;super(),d(this,_0xc8f317(0x1b5),new _0x5d9b35('idle')),d(this,_0xc8f317(0x1e2),this['_status$'][_0xc8f317(0x200)]()),d(this,_0xc8f317(0x1d8),!0x1),d(this,_0xc8f317(0x228),null),d(this,_0xc8f317(0x269),null),(this[_0xc8f317(0x1d4)]=_0x107549,this[_0xc8f317(0x1fe)]=_0x41b26f,this['_configService']=_0x2ad2f6,this[_0xc8f317(0x1c5)]=_0xb42cdf,this[_0xc8f317(0x1e8)]=_0x46da28);}get[_0x512809(0x242)](){var _0x3186b1=_0x512809;return this['_status$'][_0x3186b1(0x22a)]();}[_0x512809(0x1cb)](){var _0x4e97f7=_0x512809,_0x385e41;(_0x385e41=this[_0x4e97f7(0x228)])==null||_0x385e41[_0x4e97f7(0x1cb)](),this['_status$'][_0x4e97f7(0x25e)](_0x4e97f7(0x1d7)),this[_0x4e97f7(0x1b5)][_0x4e97f7(0x240)]();}[_0x512809(0x201)](){var _0x208335=_0x512809;this[_0x208335(0x1d8)]||(this[_0x208335(0x1d8)]=!0x0,this[_0x208335(0x1fe)][_0x208335(0x21d)][_0x208335(0x22d)](_0x3267ce(this[_0x208335(0x224)]))[_0x208335(0x1ff)](_0x3d663e=>{var _0x4bbee4=_0x208335;switch(_0x3d663e){case _0x3d4f4e[_0x4bbee4(0x1dd)]:this[_0x4bbee4(0x1dc)]();break;case _0x3d4f4e[_0x4bbee4(0x216)]:this[_0x4bbee4(0x20a)]();break;}}),this['_collabSession']['event$'][_0x208335(0x22d)](_0x3267ce(this['dispose$']))[_0x208335(0x1ff)](_0x49efb3=>{var _0x320493=_0x208335;const {eventID:_0x1349af}=_0x49efb3;switch(_0x1349af){case _0x46c596[_0x320493(0x1bc)]:this[_0x320493(0x241)](_0x49efb3);break;case _0x46c596[_0x320493(0x211)]:this['_handleOperation'](_0x49efb3);break;case _0x46c596[_0x320493(0x1d1)]:this[_0x320493(0x1df)]();break;case _0x46c596[_0x320493(0x21c)]:this['_handleNewChangeSets'](_0x49efb3);break;}}));}[_0x512809(0x1d6)](){var _0x544832=_0x512809;this[_0x544832(0x1fe)]['send']({'eventID':_0x46c596[_0x544832(0x25f)],'data':{'unitID':this['_unitID'],'userID':this[_0x544832(0x1fe)][_0x544832(0x252)]()}},this[_0x544832(0x1d4)]);}[_0x512809(0x1f4)](){var _0x3f6b43=_0x512809;this[_0x3f6b43(0x242)]===_0x3f6b43(0x203)&&(this['_status$'][_0x3f6b43(0x25e)]('idle'),this[_0x3f6b43(0x1fe)][_0x3f6b43(0x1ef)]({'eventID':_0x46c596[_0x3f6b43(0x1d1)],'data':{'unitID':this['_unitID']}},this[_0x3f6b43(0x1d4)]));}[_0x512809(0x220)](){var _0x362c40=_0x512809;this[_0x362c40(0x242)]==='not-following'&&(this[_0x362c40(0x1b5)]['next'](_0x362c40(0x1c6)),this[_0x362c40(0x1d0)]());}[_0x512809(0x231)](){var _0x165ed4=_0x512809;this['_status']==='following'&&this[_0x165ed4(0x25c)]();}['_handleNewHost'](_0x4ca3d9){var _0x4d07ff=_0x512809;const {presenter:_0x5b399d}=_0x4ca3d9['data'],_0x29677d=this[_0x4d07ff(0x1fe)]['getMemberID']();this[_0x4d07ff(0x269)]=_0x5b399d,_0x5b399d===_0x29677d?(this[_0x4d07ff(0x25c)](),this[_0x4d07ff(0x23d)]()):this['_status']!==_0x4d07ff(0x262)&&(this['_stopPresenting'](),this[_0x4d07ff(0x1d0)]());}[_0x512809(0x1cc)](){var _0xaf2e2f=_0x512809;const _0x2b23b2={'eventID':_0x46c596['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf2e2f(0x1fe)][_0xaf2e2f(0x1ef)](_0x2b23b2,this[_0xaf2e2f(0x1d4)]);}[_0x512809(0x1df)](){var _0x40965e=_0x512809;this[_0x40965e(0x269)]=null,this['_status']!=='presenting'&&this[_0x40965e(0x22f)]();}['_handleNewChangeSets'](_0x48983b){var _0x561f87=_0x512809;if(this[_0x561f87(0x242)]==='following'&&this['_presenter']===_0x48983b[_0x561f87(0x265)][_0x561f87(0x1c8)]){const _0x26cb02=_0x598281(_0x48983b[_0x561f87(0x265)])['mutations']['reverse']()['find'](_0x1941d1=>_0x1941d1['id']===_0x10745a['id']);if(_0x26cb02){const _0x5994b7=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x257)],_0x2ec8d6=_0x26cb02[_0x561f87(0x1e6)][_0x561f87(0x258)]['id'];setTimeout(()=>{var _0x344599=_0x561f87;this['_commandService'][_0x344599(0x1b9)](_0x390ceb['id'],{'unitId':_0x5994b7,'subUnitId':_0x2ec8d6},{'fromCollab':!0x0});});}}}[_0x512809(0x23d)](){var _0x27c8c2=_0x512809;this[_0x27c8c2(0x1b5)][_0x27c8c2(0x25e)](_0x27c8c2(0x203));const _0x21cdb3=new Map(),_0x22effa=this[_0x27c8c2(0x228)]=new _0xd5101f();_0x22effa[_0x27c8c2(0x260)](_0x526a75(()=>{var _0xe799c4=_0x27c8c2;_0x21cdb3['forEach'](_0x4c3f62=>_0x4c3f62[_0xe799c4(0x240)]()),_0x21cdb3[_0xe799c4(0x215)]();})),_0x22effa[_0x27c8c2(0x260)](this[_0x27c8c2(0x1e8)]['onCommandExecuted'](_0x1c30cc=>{var _0x48e5af=_0x27c8c2,_0x79a571;if(_0x1c30cc[_0x48e5af(0x249)]!==_0x2ec5f9[_0x48e5af(0x256)]||!this[_0x48e5af(0x1c5)][_0x48e5af(0x230)](_0x1c30cc['id']))return;const {id:_0x421485}=_0x1c30cc;let _0x235d41;_0x21cdb3[_0x48e5af(0x229)](_0x421485)?_0x235d41=_0x21cdb3[_0x48e5af(0x233)](_0x421485):(_0x235d41=new _0x2b4590(),_0x21cdb3['set'](_0x421485,_0x235d41),_0x235d41[_0x48e5af(0x22d)](_0x214502((_0x79a571=this[_0x48e5af(0x1f7)][_0x48e5af(0x21a)](Pe))!=null?_0x79a571:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x44163e=>{var _0xcd51c=_0x48e5af;this[_0xcd51c(0x1fe)]['send']({'eventID':_0x46c596[_0xcd51c(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x44163e['id']]:{'id':_0x44163e['id'],'params':JSON[_0xcd51c(0x1b6)](_0x44163e['params'])}}}},this[_0xcd51c(0x1d4)]);})),_0x235d41[_0x48e5af(0x25e)](_0x1c30cc);})),this[_0x27c8c2(0x1c5)][_0x27c8c2(0x25d)](this[_0x27c8c2(0x1d4)])[_0x27c8c2(0x1ed)](_0x5df21c=>this['_collabSession']['send']({'eventID':_0x46c596[_0x27c8c2(0x211)],'data':{'unitID':this['_unitID'],'operations':{[_0x5df21c['id']]:{'id':_0x5df21c['id'],'params':JSON['stringify'](_0x5df21c[_0x27c8c2(0x1e6)])}}}},this[_0x27c8c2(0x1d4)]));}[_0x512809(0x24b)](){var _0x4388fb=_0x512809,_0x35c0b0;this[_0x4388fb(0x1b5)]['next']('idle'),(_0x35c0b0=this[_0x4388fb(0x228)])==null||_0x35c0b0[_0x4388fb(0x1cb)](),this['_commandDisposable']=null;}[_0x512809(0x1d0)](){var _0x4b39ff=_0x512809,_0x2780a8;(_0x2780a8=this['_commandDisposable'])==null||_0x2780a8['dispose'](),this[_0x4b39ff(0x1b5)][_0x4b39ff(0x25e)](_0x4b39ff(0x1c6));}[_0x512809(0x22f)](){var _0x5e12a1=_0x512809,_0x3f90c5;this[_0x5e12a1(0x1b5)][_0x5e12a1(0x25e)](_0x5e12a1(0x1d7)),(_0x3f90c5=this['_commandDisposable'])==null||_0x3f90c5[_0x5e12a1(0x1cb)](),this[_0x5e12a1(0x228)]=null;}[_0x512809(0x25c)](){var _0x28613f=_0x512809,_0x290e6f;this[_0x28613f(0x1b5)][_0x28613f(0x25e)](_0x28613f(0x262)),(_0x290e6f=this[_0x28613f(0x228)])==null||_0x290e6f[_0x28613f(0x1cb)]();}[_0x512809(0x1be)](_0x1d3ed1){var _0xa81942=_0x512809;if([_0xa81942(0x203),_0xa81942(0x262),_0xa81942(0x1e4)][_0xa81942(0x204)](this[_0xa81942(0x242)])||!_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x205)]||_0x1d3ed1[_0xa81942(0x265)]['presenter']===this['_collabSession'][_0xa81942(0x252)]())return;this[_0xa81942(0x242)]===_0xa81942(0x1d7)&&this['_startFollowing']();const _0x2a9e98=_0x1d3ed1[_0xa81942(0x265)][_0xa81942(0x1e1)];Object[_0xa81942(0x1d3)](_0x2a9e98)[_0xa81942(0x1ed)](_0x27a2a8=>{var _0x28aef5=_0xa81942;this[_0x28aef5(0x1e8)]['executeCommand'](_0x27a2a8['id'],_0x27a2a8['params']?JSON[_0x28aef5(0x1eb)](_0x27a2a8['params']):null,{'fromCollab':!0x0});});}[_0x512809(0x1dc)](){var _0x4b31ef=_0x512809,_0x272ce4;this['_status$']['next'](_0x4b31ef(0x1e4)),(_0x272ce4=this[_0x4b31ef(0x228)])==null||_0x272ce4[_0x4b31ef(0x1cb)]();}[_0x512809(0x20a)](){var _0x4de46e=_0x512809;this[_0x4de46e(0x1b5)][_0x4de46e(0x25e)](_0x4de46e(0x1d7)),this[_0x4de46e(0x1cc)]();}};C=Z([f(0x2,_0x1caea7),f(0x3,_0x30a9c5(L)),f(0x4,_0x388a0d)],C);function Te(){var _0x27995f=_0x512809;const _0x39e5c7=_0x48897c(I),_0x64dfc6=_0x48897c(_0xa0d390),_0x19d5b0=_0x14654c(()=>_0x64dfc6[_0x27995f(0x234)](_0x12828d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48b90d,_0xa6caef]=_0x5573ca(null),[_0x4847db,_0x3b7014]=_0x5573ca(h[_0x27995f(0x243)]),_0x146e05=_0x9bf347(null);return _0x36bfdc(()=>(_0x19d5b0&&_0x39e5c7[_0x27995f(0x21e)](_0x19d5b0[_0x27995f(0x20c)]())[_0x27995f(0x1fa)](_0x416fc2=>{var _0x6b5fc0=_0x27995f;_0xa6caef(_0x416fc2),_0x146e05['current']=_0x416fc2[_0x6b5fc0(0x1e2)]['subscribe'](_0x21de69=>{_0x3b7014(_0x21de69);});}),()=>{var _0x3aabbc=_0x27995f,_0xd6fe6b;(_0xd6fe6b=_0x146e05[_0x3aabbc(0x24d)])==null||_0xd6fe6b[_0x3aabbc(0x23f)](),_0x146e05[_0x3aabbc(0x24d)]=null;}),[_0x19d5b0,_0x39e5c7]),_0x48b90d?_0xe2c74b(_0x5212b4,{'align':_0x27995f(0x22b),'disabled':_0x4847db===h[_0x27995f(0x1dd)],'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':_0xe2c74b($e,{'status':_0x4847db,'coordinator':_0x48b90d}),'children':_0xe2c74b('button',{'className':_0x11bf78(_0x27995f(0x235),{'univer-cursor-not-allowed':_0x4847db===h[_0x27995f(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4847db!==h[_0x27995f(0x1dd)]}),'type':_0x27995f(0x1f8),'children':_0xe2c74b(B,{'className':_0x27995f(0x227)})})}):null;}function $e(_0x37bc60){var _0x50aecc=_0x512809;const {status:_0x134775,coordinator:_0x5c5521}=_0x37bc60;switch(_0x134775){case h[_0x50aecc(0x243)]:return _0xe2c74b(Fe,{'coordinator':_0x5c5521});case h['FOLLOWING']:return _0xe2c74b(He,{'coordinator':_0x5c5521});case h[_0x50aecc(0x1f2)]:return _0xe2c74b(je,{'coordinator':_0x5c5521});case h['OFFLINE']:return _0xe2c74b(Ve,{});case h['PRESENTING']:return _0xe2c74b(Ue,{'coordinator':_0x5c5521});default:return null;}}function Fe(_0x1459d6){var _0x5f3141=_0x512809;const {coordinator:_0x3a6f64}=_0x1459d6;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x5f3141(0x20b),{'className':_0x5f3141(0x1ca),'children':_0x5f3141(0x267)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x3a6f64[_0x5f3141(0x1d6)](),'children':_0x5f3141(0x217)})]});}function He(_0x2b5142){var _0x113cba=_0x512809;const {coordinator:_0x4f9b71}=_0x2b5142;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b('div',{'className':_0x113cba(0x1ca),'children':_0x113cba(0x1d5)}),_0xe2c74b(_0x461148,{'onClick':()=>_0x4f9b71[_0x113cba(0x231)](),'children':_0x113cba(0x23b)})]});}function je(_0x1a0356){var _0x4bfadb=_0x512809;const {coordinator:_0x4f49e6}=_0x1a0356;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x4bfadb(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4bfadb(0x1f5)}),_0xe2c74b(_0x461148,{'variant':'text','onClick':()=>_0x4f49e6[_0x4bfadb(0x220)](),'children':'Start\x20following'})]});}function Ue(_0x51ed9b){var _0x62d2a3=_0x512809;const {coordinator:_0x275d7d}=_0x51ed9b;return _0x1774fb(_0x315a05,{'children':[_0xe2c74b(_0x62d2a3(0x20b),{'className':_0x62d2a3(0x1ca),'children':_0x62d2a3(0x266)}),_0xe2c74b(_0x461148,{'variant':_0x62d2a3(0x1c9),'onClick':()=>_0x275d7d[_0x62d2a3(0x1f4)](),'children':_0x62d2a3(0x1b8)})]});}function Ve(){var _0x58cca7=_0x512809;return _0xe2c74b(_0x315a05,{'children':_0x58cca7(0x20f)});}var Me=Object[_0x512809(0x1fb)],ke=(_0x502d5f,_0x13bef8,_0x156e38,_0x27d9fb)=>{var _0x1028d4=_0x512809;for(var _0x4276e3=_0x27d9fb>0x1?void 0x0:_0x27d9fb?Me(_0x13bef8,_0x156e38):_0x13bef8,_0x2a9604=_0x502d5f[_0x1028d4(0x1e7)]-0x1,_0x1fe59c;_0x2a9604>=0x0;_0x2a9604--)(_0x1fe59c=_0x502d5f[_0x2a9604])&&(_0x4276e3=_0x1fe59c(_0x4276e3)||_0x4276e3);return _0x4276e3;},$=(_0x33e621,_0x310d72)=>(_0xac02c0,_0x2732a9)=>_0x310d72(_0xac02c0,_0x2732a9,_0x33e621);let b=class extends _0x53ac40{constructor(_0x2d1c5c,_0x3d93ae){var _0x396b49=_0x512809;super(),this[_0x396b49(0x225)]=_0x2d1c5c,this[_0x396b49(0x1e5)]=_0x3d93ae,this[_0x396b49(0x1c7)]();}['_mountLiveShare'](){var _0x440d1b=_0x512809;this[_0x440d1b(0x1f3)](this[_0x440d1b(0x1e5)][_0x440d1b(0x1db)](_0x8c4c5d[_0x440d1b(0x1c3)],()=>_0x29aac4(Te,this['_injector'])));}};b=ke([$(0x0,_0x30a9c5(_0x21b692)),$(0x1,_0x44b862)],b);var Ge=Object[_0x512809(0x24f)],We=Object[_0x512809(0x1fb)],Ye=(_0x479959,_0x1e07c1,_0x5534af)=>_0x1e07c1 in _0x479959?Ge(_0x479959,_0x1e07c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5534af}):_0x479959[_0x1e07c1]=_0x5534af,Be=(_0x39d9de,_0x68c71,_0x3426f4,_0x4e020b)=>{var _0x4b52f8=_0x512809;for(var _0x3ba3da=_0x4e020b>0x1?void 0x0:_0x4e020b?We(_0x68c71,_0x3426f4):_0x68c71,_0x2b549f=_0x39d9de[_0x4b52f8(0x1e7)]-0x1,_0x589753;_0x2b549f>=0x0;_0x2b549f--)(_0x589753=_0x39d9de[_0x2b549f])&&(_0x3ba3da=_0x589753(_0x3ba3da)||_0x3ba3da);return _0x3ba3da;},F=(_0x564057,_0x5f2816)=>(_0x2203aa,_0x2480a2)=>_0x5f2816(_0x2203aa,_0x2480a2,_0x564057),J=(_0x3b23e4,_0x5b5b96,_0x594b84)=>Ye(_0x3b23e4,typeof _0x5b5b96!=_0x512809(0x255)?_0x5b5b96+'':_0x5b5b96,_0x594b84);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2850ce{constructor(_0x40eeaa=T,_0x5ea98d,_0x214f15){var _0x3ba965=_0x512809;super(),this[_0x3ba965(0x1c0)]=_0x40eeaa,this[_0x3ba965(0x225)]=_0x5ea98d,this[_0x3ba965(0x1f7)]=_0x214f15;const {..._0x59a5fd}=_0x4a6d52({},T,this[_0x3ba965(0x1c0)]);this[_0x3ba965(0x1f7)][_0x3ba965(0x208)](Oe,_0x59a5fd);}[_0x512809(0x1fc)](){var _0x25f4fc=_0x512809;_0x1f5629(this[_0x25f4fc(0x225)],_0x3defda([[L],[I],[m],[b]],this[_0x25f4fc(0x1c0)][_0x25f4fc(0x23c)])),_0x397a1f(this['_injector'],[[m]]);}[_0x512809(0x1c4)](){var _0x4f3f56=_0x512809;_0x397a1f(this[_0x4f3f56(0x225)],[[b]]);}};J(O,_0x512809(0x249),_0x12828d[_0x512809(0x226)]),J(O,'pluginName',Ze),O=Be([_0x352ef8(_0xc07b40),F(0x1,_0x30a9c5(_0x21b692)),F(0x2,_0x1caea7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1173(){var _0x480d67=['_status$','getOwnPropertyDescriptor','sessionStatus$','executeCommand','icon','onStarting','rxjs','IUIPartsService','path','_stopPresenting','complete','subscribe','values','univer-size-4','text','RxDisposable','children','1em','then','@univerjs/design','stopFollowing','startFollowing','UNIVER_UNKNOWN','LIVESHARE_FETCH_OPERATIONS','_handleOffline','toDisposable','Stop\x20following','extend','397796vgCodH','presenter','useDependency','has','getCurrentTypeOfUnit$','getLiveShareCoordinator','_univerInstanceService','1119048NMHpck','UniverUi','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_NEW_HOST','getOwnPropertySymbols','getTypeOfUnitAdded$','React','params','IUniverInstanceService','@univerjs-pro/collaboration','UniverInstanceType','_fetchOperations','36726EpkNhT','memberID','registerComponent','UniverLiveSharePlugin','UniverProCollaboration','_collabSession','732ioBwaA','You\x27re\x20following\x20the\x20presenter','setConfig','_startFollowing','_liveShareService','call','NEW_CHANGESETS','jsxs','current','_handleOnline','@univerjs-pro/collaboration-client','replace','onCommandExecuted','useRef','string','_handleOperation','getMemberID','527548MhzAih','defineProperty','Subject','svg','evenodd','LIVESHARE_OPERATION','LiveShareCoordinator','DisposableCollection','IDLE','throttleTime','takeUntil','clsx','_reporters','registerInitialStateReporter','init','UniverSheetsUi','from','_config','send','entries','UniverIcon','indexOf','Inject','react/jsx-runtime','toStringTag','_beIdle','http://www.w3.org/2000/svg','createElement','DependentOn','idSuffix','LiveShareService','_commandDisposable','OFFLINE','UniverCore','univerjs-icon\x20univerjs-icon-','createInstance','_handleNewChangeSets','operators','live-share-icon','fill','map','pluginName','_commandService','onRendered','BehaviorSubject','LiveShareController','useState','OPERATION','You\x27re\x20presenting\x20the\x20document','Start','prototype','HEADER_MENU','hasOwnProperty','_entities','UNIVER_SHEET','forwardRef','forEach','SessionStatus','Injector','Start\x20following','concat','UniverCollaborationClientPlugin','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','touchDependencies','LIVESHARE_REQUEST_HOST','shouldShareOperation','presenting','dispose$','exports','following','displayName','reverse','url(#$1','type','_presenter','LiveShare','CollaborationEvent','_startPresenting','unitId','NOT_FOLLOWING','_init','set','getTypeOfUnitDisposed$','assign','parseProtocolChangeset','UniverDesign','mutations','CommandType','_mountLiveShare','status$','_sharedOperations','LiveShareStatus','_startLiveShareCoordinator','tag','dispose','mask','attrs','Plugin','_injector','jsx','getValue','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','disposeWithMe','toString','Button','next','_handleTerminate','LIVESHARE_TERMINATE','PRESENTING','You\x27are\x20offline.','InsertSheetMutation','_collabSessionService','1123664TKRFMv','react','stopPresenting','colorChannel1','UniverProLiveShare','Stop\x20presenting','Dropdown','_configService','_status','Present\x20this\x20document','className','IConfigService','getUnitId','event$','defIds','114549jeDdJr','unsubscribe','@univerjs/sheets-ui','clear','currentColor','FOLLOWING','trim','delete','parse','useEffect','ONLINE','tryStartPresenting','add','getInitialStates','xlink:href','use','pipe','SetWorksheetActiveOperation','get','not-following','Fragment','DesktopLiveShareController','1265XcKNJx','SetZoomRatioOperation','idle','0\x200\x2017\x2017','UNIVER_LIVE_SHARE_PLUGIN','length','apply','SetScrollOperation','_handleNewHost','function','connectInjector','data','UniverProCollaborationClient','offline','includes','symbol','_stopFollowing','random','button','div','Disposable','_unitID','sheet','SAME_OPERATION_SHARE_INTERVAL'];_0x1173=function(){return _0x480d67;};return _0x1173();}function _0x5ccc(_0x1aac5e,_0x5f00ad){var _0x1173e8=_0x1173();return _0x5ccc=function(_0x5ccc91,_0x1062ad){_0x5ccc91=_0x5ccc91-0x126;var _0x573cae=_0x1173e8[_0x5ccc91];return _0x573cae;},_0x5ccc(_0x1aac5e,_0x5f00ad);}(function(_0x2458bd,_0xf80982){var _0x1bb594=_0x5ccc,_0x1752ba=_0x2458bd();while(!![]){try{var _0xc56727=parseInt(_0x1bb594(0x1a5))/0x1+parseInt(_0x1bb594(0x1ef))/0x2+-parseInt(_0x1bb594(0x202))/0x3+-parseInt(_0x1bb594(0x219))/0x4+parseInt(_0x1bb594(0x1bb))/0x5*(-parseInt(_0x1bb594(0x208))/0x6)+-parseInt(_0x1bb594(0x1f6))/0x7+parseInt(_0x1bb594(0x196))/0x8;if(_0xc56727===_0xf80982)break;else _0x1752ba['push'](_0x1752ba['shift']());}catch(_0x302fb6){_0x1752ba['push'](_0x1752ba['shift']());}}}(_0x1173,0x1d106),function(_0xcc3fa4,_0x2615fe){var _0x456aab=_0x5ccc;typeof exports=='object'&&typeof module<'u'?_0x2615fe(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x456aab(0x1c4)&&define['amd']?define([_0x456aab(0x16a),_0x456aab(0x212),'@univerjs/core','@univerjs/sheets',_0x456aab(0x1a7),'@univerjs/ui',_0x456aab(0x13c),_0x456aab(0x1e6),_0x456aab(0x197),_0x456aab(0x1ff),_0x456aab(0x1d9),'rxjs/operators'],_0x2615fe):(_0xcc3fa4=typeof globalThis<'u'?globalThis:_0xcc3fa4||self,_0x2615fe(_0xcc3fa4[_0x456aab(0x19a)]={},_0xcc3fa4[_0x456aab(0x1c7)],_0xcc3fa4[_0x456aab(0x146)],_0xcc3fa4['UniverSheets'],_0xcc3fa4[_0x456aab(0x134)],_0xcc3fa4[_0x456aab(0x1f7)],_0xcc3fa4[_0x456aab(0x1fc)],_0xcc3fa4[_0x456aab(0x17b)],_0xcc3fa4['React'],_0xcc3fa4[_0x456aab(0x206)],_0xcc3fa4[_0x456aab(0x1d9)],_0xcc3fa4[_0x456aab(0x1d9)][_0x456aab(0x14a)]));}(this,function(_0x3106a4,_0x5e1f05,_0x2995fe,_0x3d4270,_0x24843b,_0x2112c2,_0x3dd0e2,_0x560f6f,_0x23ed4b,_0x4f7ef0,_0x511b15,_0x20bce2){'use strict';var _0x1f0cd4=_0x5ccc;var _0xbe5bd8=Object[_0x1f0cd4(0x126)],_0x395d59=(_0x1da430,_0x3e4698,_0x13990b)=>_0x3e4698 in _0x1da430?_0xbe5bd8(_0x1da430,_0x3e4698,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13990b}):_0x1da430[_0x3e4698]=_0x13990b,_0x257d65=(_0x37faf5,_0x501b4b,_0x57d560)=>_0x395d59(_0x37faf5,typeof _0x501b4b!=_0x1f0cd4(0x1ca)?_0x501b4b+'':_0x501b4b,_0x57d560);const _0x5736dc='live-share.config',_0x3ac218={};class _0x2486d2 extends _0x2995fe[_0x1f0cd4(0x1cf)]{constructor(){var _0x131d1d=_0x1f0cd4;super(...arguments),_0x257d65(this,_0x131d1d(0x180),new Set()),_0x257d65(this,_0x131d1d(0x131),new Set());}['registerSharedOperation'](_0x3411b6){var _0x560895=_0x1f0cd4;return this[_0x560895(0x180)][_0x560895(0x1b1)](_0x3411b6),_0x2995fe[_0x560895(0x1ec)](()=>this['_sharedOperations'][_0x560895(0x1ac)](_0x3411b6));}[_0x1f0cd4(0x132)](_0x5822af){var _0x5c916f=_0x1f0cd4;return this['_reporters'][_0x5c916f(0x1b1)](_0x5822af),_0x2995fe[_0x5c916f(0x1ec)](()=>this['_reporters'][_0x5c916f(0x1ac)](_0x5822af));}[_0x1f0cd4(0x167)](_0x2a46eb){var _0xa3b034=_0x1f0cd4;return this[_0xa3b034(0x180)][_0xa3b034(0x1f2)](_0x2a46eb);}[_0x1f0cd4(0x1b2)](_0x407904){var _0x56185e=_0x1f0cd4;return Array[_0x56185e(0x135)](this[_0x56185e(0x131)])['map'](_0x2318f4=>_0x2318f4(_0x407904));}}var _0x9517e9=Object['getOwnPropertyDescriptor'],_0x51cffc=(_0x445d6c,_0x5cc5ab,_0x4350d9,_0xd40feb)=>{for(var _0x2a822c=_0xd40feb>0x1?void 0x0:_0xd40feb?_0x9517e9(_0x5cc5ab,_0x4350d9):_0x5cc5ab,_0x3bd857=_0x445d6c['length']-0x1,_0x3759f2;_0x3bd857>=0x0;_0x3bd857--)(_0x3759f2=_0x445d6c[_0x3bd857])&&(_0x2a822c=_0x3759f2(_0x2a822c)||_0x2a822c);return _0x2a822c;},_0x31b3e3=(_0x5da260,_0x1004a8)=>(_0x462df5,_0x38c59d)=>_0x1004a8(_0x462df5,_0x38c59d,_0x5da260);let _0xd5f213=class extends _0x2995fe[_0x1f0cd4(0x1cf)]{constructor(_0x1e8133){var _0x64c3a1=_0x1f0cd4;super(),this['_liveShareService']=_0x1e8133,this[_0x64c3a1(0x176)]();}[_0x1f0cd4(0x176)](){var _0x1bb2ec=_0x1f0cd4;[_0x24843b[_0x1bb2ec(0x1bc)]['id'],_0x24843b[_0x1bb2ec(0x1c2)]['id'],_0x3d4270['SetWorksheetActiveOperation']['id']][_0x1bb2ec(0x15d)](_0x66b59c=>{var _0x206114=_0x1bb2ec;this[_0x206114(0x18c)](this[_0x206114(0x20c)][_0x206114(0x163)](_0x66b59c));});}};_0xd5f213=_0x51cffc([_0x31b3e3(0x0,_0x2995fe[_0x1f0cd4(0x13b)](_0x2486d2))],_0xd5f213);var _0x28024e=function(){var _0xd71517=_0x1f0cd4;return _0x28024e=Object[_0xd71517(0x179)]||function(_0x5b9b20){var _0xe5f942=_0xd71517;for(var _0x210112,_0x2eb3f1=0x1,_0x26a61d=arguments[_0xe5f942(0x1c0)];_0x2eb3f1<_0x26a61d;_0x2eb3f1++){_0x210112=arguments[_0x2eb3f1];for(var _0x5a039f in _0x210112)Object[_0xe5f942(0x157)][_0xe5f942(0x159)][_0xe5f942(0x20d)](_0x210112,_0x5a039f)&&(_0x5b9b20[_0x5a039f]=_0x210112[_0x5a039f]);}return _0x5b9b20;},_0x28024e[_0xd71517(0x1c1)](this,arguments);},_0x38de7b=function(_0x3ac4ca,_0x107e75){var _0x243caa=_0x1f0cd4,_0x4fe9cb={};for(var _0x4e2e37 in _0x3ac4ca)Object[_0x243caa(0x157)][_0x243caa(0x159)][_0x243caa(0x20d)](_0x3ac4ca,_0x4e2e37)&&_0x107e75[_0x243caa(0x13a)](_0x4e2e37)<0x0&&(_0x4fe9cb[_0x4e2e37]=_0x3ac4ca[_0x4e2e37]);if(_0x3ac4ca!=null&&typeof Object[_0x243caa(0x1fa)]=='function'){for(var _0x207855=0x0,_0x4e2e37=Object[_0x243caa(0x1fa)](_0x3ac4ca);_0x207855<_0x4e2e37[_0x243caa(0x1c0)];_0x207855++)_0x107e75[_0x243caa(0x13a)](_0x4e2e37[_0x207855])<0x0&&Object[_0x243caa(0x157)]['propertyIsEnumerable'][_0x243caa(0x20d)](_0x3ac4ca,_0x4e2e37[_0x207855])&&(_0x4fe9cb[_0x4e2e37[_0x207855]]=_0x3ac4ca[_0x4e2e37[_0x207855]]);}return _0x4fe9cb;},_0x59c7cd=_0x23ed4b[_0x1f0cd4(0x15c)](function(_0x117b88,_0x2d7460){var _0x2eb78d=_0x1f0cd4,_0x29d6a2=_0x117b88['icon'],_0x25b3e5=_0x117b88['id'],_0x55e0bd=_0x117b88['className'],_0x328148=_0x117b88['extend'],_0x39f218=_0x38de7b(_0x117b88,[_0x2eb78d(0x1d7),'id',_0x2eb78d(0x1a0),_0x2eb78d(0x1ee)]),_0x35a36b=_0x2eb78d(0x147)[_0x2eb78d(0x161)](_0x25b3e5,'\x20')['concat'](_0x55e0bd||'')[_0x2eb78d(0x1ab)](),_0xc12cff=_0x23ed4b[_0x2eb78d(0x215)]('_'[_0x2eb78d(0x161)](_0x1d5347()));return _0x548107(_0x29d6a2,''['concat'](_0x25b3e5),{'defIds':_0x29d6a2[_0x2eb78d(0x1a4)],'idSuffix':_0xc12cff[_0x2eb78d(0x210)]},_0x28024e({'ref':_0x2d7460,'className':_0x35a36b},_0x39f218),_0x328148);});function _0x548107(_0x1378cf,_0x2f8dc2,_0x15e6a,_0x532511,_0x3bb4b1){var _0x286d6f=_0x1f0cd4;return _0x23ed4b[_0x286d6f(0x140)](_0x1378cf[_0x286d6f(0x183)],_0x28024e(_0x28024e({'key':_0x2f8dc2},_0x49677e(_0x1378cf,_0x15e6a,_0x3bb4b1)),_0x532511),(_0xff4334(_0x1378cf,_0x15e6a)[_0x286d6f(0x1e3)]||[])[_0x286d6f(0x14d)](function(_0x5005a8,_0x17ad67){var _0x333f9f=_0x286d6f;return _0x548107(_0x5005a8,''[_0x333f9f(0x161)](_0x2f8dc2,'-')[_0x333f9f(0x161)](_0x1378cf[_0x333f9f(0x183)],'-')[_0x333f9f(0x161)](_0x17ad67),_0x15e6a,void 0x0,_0x3bb4b1);}));}function _0x49677e(_0x45dfee,_0x1321eb,_0x4be8b3){var _0x543140=_0x1f0cd4,_0x5a2a57=_0x28024e({},_0x45dfee[_0x543140(0x186)]);_0x4be8b3!=null&&_0x4be8b3['colorChannel1']&&_0x5a2a57[_0x543140(0x14c)]==='colorChannel1'&&(_0x5a2a57['fill']=_0x4be8b3[_0x543140(0x199)]),_0x45dfee['tag']===_0x543140(0x185)&&_0x5a2a57['id']&&(_0x5a2a57['id']=_0x5a2a57['id']+_0x1321eb[_0x543140(0x142)]),Object[_0x543140(0x138)](_0x5a2a57)[_0x543140(0x15d)](function(_0x3eedc3){var _0x43695e=_0x543140,_0x114abf=_0x3eedc3[0x0],_0x8333be=_0x3eedc3[0x1];_0x114abf===_0x43695e(0x185)&&typeof _0x8333be==_0x43695e(0x216)&&(_0x5a2a57[_0x114abf]=_0x8333be[_0x43695e(0x213)](/url\(#(.*)\)/,_0x43695e(0x16e)[_0x43695e(0x161)](_0x1321eb[_0x43695e(0x142)],')')));});var _0x4a8825=_0x1321eb[_0x543140(0x1a4)];return!_0x4a8825||_0x4a8825[_0x543140(0x1c0)]===0x0||(_0x45dfee[_0x543140(0x183)]===_0x543140(0x1b4)&&_0x5a2a57[_0x543140(0x1b3)]&&(_0x5a2a57[_0x543140(0x1b3)]=_0x5a2a57[_0x543140(0x1b3)]+_0x1321eb['idSuffix']),Object[_0x543140(0x138)](_0x5a2a57)[_0x543140(0x15d)](function(_0x57220a){var _0x54d9f4=_0x543140,_0x537ff1=_0x57220a[0x0],_0x146c92=_0x57220a[0x1];typeof _0x146c92==_0x54d9f4(0x216)&&(_0x5a2a57[_0x537ff1]=_0x146c92[_0x54d9f4(0x213)](/url\(#(.*)\)/,_0x54d9f4(0x16e)[_0x54d9f4(0x161)](_0x1321eb['idSuffix'],')')));})),_0x5a2a57;}function _0xff4334(_0xfaa8a0,_0x38dd22){var _0x5c1a5b=_0x1f0cd4,_0x94da87,_0x28a97c=_0x38dd22[_0x5c1a5b(0x1a4)];return!_0x28a97c||_0x28a97c[_0x5c1a5b(0x1c0)]===0x0?_0xfaa8a0:_0xfaa8a0[_0x5c1a5b(0x183)]==='defs'&&(!((_0x94da87=_0xfaa8a0[_0x5c1a5b(0x1e3)])===null||_0x94da87===void 0x0)&&_0x94da87[_0x5c1a5b(0x1c0)])?_0x28024e(_0x28024e({},_0xfaa8a0),{'children':_0xfaa8a0[_0x5c1a5b(0x1e3)][_0x5c1a5b(0x14d)](function(_0x5c557b){var _0xc2567b=_0x5c1a5b;return typeof _0x5c557b[_0xc2567b(0x186)]['id']==_0xc2567b(0x216)&&_0x28a97c&&_0x28a97c[_0xc2567b(0x1c9)](_0x5c557b[_0xc2567b(0x186)]['id'])?_0x28024e(_0x28024e({},_0x5c557b),{'attrs':_0x28024e(_0x28024e({},_0x5c557b['attrs']),{'id':_0x5c557b[_0xc2567b(0x186)]['id']+_0x38dd22['idSuffix']})}):_0x5c557b;})}):_0xfaa8a0;}function _0x1d5347(){var _0x4fab8b=_0x1f0cd4;return Math[_0x4fab8b(0x1cc)]()[_0x4fab8b(0x18d)](0x24)['substring'](0x2,0x8);}_0x59c7cd[_0x1f0cd4(0x16c)]=_0x1f0cd4(0x139);var _0x46e94f={'tag':_0x1f0cd4(0x128),'attrs':{'xmlns':_0x1f0cd4(0x13f),'fill':'none','viewBox':_0x1f0cd4(0x1be),'width':_0x1f0cd4(0x1e4),'height':_0x1f0cd4(0x1e4)},'children':[{'tag':_0x1f0cd4(0x1db),'attrs':{'fill':_0x1f0cd4(0x1a9),'d':_0x1f0cd4(0x18b)}},{'tag':_0x1f0cd4(0x1db),'attrs':{'fill':_0x1f0cd4(0x1a9),'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':_0x1f0cd4(0x129),'clipRule':_0x1f0cd4(0x129)}}]},_0x50e747=_0x23ed4b[_0x1f0cd4(0x15c)](function(_0x1a6681,_0x2b19f6){var _0x255d99=_0x1f0cd4;return _0x23ed4b[_0x255d99(0x140)](_0x59c7cd,Object['assign']({},_0x1a6681,{'id':_0x255d99(0x14b),'ref':_0x2b19f6,'icon':_0x46e94f}));});_0x50e747[_0x1f0cd4(0x16c)]='LiveShareIcon';var _0x1b2bfc=Object['getOwnPropertyDescriptor'],_0xc3273f=(_0x40be66,_0x2f0994,_0x3be3e1,_0x2b30fc)=>{var _0x46b3fd=_0x1f0cd4;for(var _0x265648=_0x2b30fc>0x1?void 0x0:_0x2b30fc?_0x1b2bfc(_0x2f0994,_0x3be3e1):_0x2f0994,_0x25d23a=_0x40be66[_0x46b3fd(0x1c0)]-0x1,_0x2a886e;_0x25d23a>=0x0;_0x25d23a--)(_0x2a886e=_0x40be66[_0x25d23a])&&(_0x265648=_0x2a886e(_0x265648)||_0x265648);return _0x265648;},_0x309c89=(_0x339c9c,_0xb0d726)=>(_0xfe985d,_0x520b39)=>_0xb0d726(_0xfe985d,_0x520b39,_0x339c9c);_0x3106a4[_0x1f0cd4(0x152)]=class extends _0x2995fe[_0x1f0cd4(0x1e2)]{constructor(_0x5682d8,_0x475ecd,_0x4ed350){var _0x215b4b=_0x1f0cd4;super(),_0x257d65(this,_0x215b4b(0x15a),new Map()),(this[_0x215b4b(0x1f5)]=_0x5682d8,this[_0x215b4b(0x188)]=_0x475ecd,this[_0x215b4b(0x195)]=_0x4ed350,this[_0x215b4b(0x176)]());}async[_0x1f0cd4(0x1f4)](_0x1a72ad){var _0x8071e2=_0x1f0cd4;return this[_0x8071e2(0x15a)][_0x8071e2(0x1f2)](_0x1a72ad)||await this[_0x8071e2(0x182)](_0x1a72ad),this[_0x8071e2(0x15a)][_0x8071e2(0x1b7)](_0x1a72ad);}['_init'](){var _0x1e2a64=_0x1f0cd4;this[_0x1e2a64(0x1f5)][_0x1e2a64(0x1fb)](_0x2995fe[_0x1e2a64(0x200)][_0x1e2a64(0x15b)])[_0x1e2a64(0x1b5)](_0x20bce2[_0x1e2a64(0x12f)](this[_0x1e2a64(0x169)]))[_0x1e2a64(0x1de)](async _0x2d91fd=>{var _0xefb0d9=_0x1e2a64;const _0x575ba5=_0x2d91fd['getUnitId']();this[_0xefb0d9(0x15a)]['has'](_0x575ba5)||this['_startLiveShareCoordinator'](_0x575ba5);}),this['_univerInstanceService'][_0x1e2a64(0x178)](_0x2995fe['UniverInstanceType'][_0x1e2a64(0x15b)])[_0x1e2a64(0x1b5)](_0x20bce2[_0x1e2a64(0x12f)](this[_0x1e2a64(0x169)]))['subscribe'](_0x48a205=>{var _0x2101b3=_0x1e2a64;const _0x4b4afd=_0x48a205[_0x2101b3(0x1a2)](),_0x555c0e=this['_entities'][_0x2101b3(0x1b7)](_0x4b4afd);_0x555c0e==null||_0x555c0e[_0x2101b3(0x184)]();});}async[_0x1f0cd4(0x182)](_0x52617c){var _0x319730=_0x1f0cd4;const _0x38fe7b=await this['_collabSessionService']['requireSession'](_0x52617c),_0xbc9674=this[_0x319730(0x188)][_0x319730(0x148)](_0x3106a4[_0x319730(0x12b)],_0x52617c,_0x38fe7b);return _0xbc9674[_0x319730(0x133)](),this[_0x319730(0x15a)][_0x319730(0x177)](_0x52617c,_0xbc9674),_0xbc9674;}},_0x3106a4[_0x1f0cd4(0x152)]=_0xc3273f([_0x309c89(0x0,_0x2995fe[_0x1f0cd4(0x1fe)]),_0x309c89(0x1,_0x2995fe[_0x1f0cd4(0x13b)](_0x2995fe[_0x1f0cd4(0x15f)])),_0x309c89(0x2,_0x2995fe[_0x1f0cd4(0x13b)](_0x5e1f05['CollaborationSessionService']))],_0x3106a4[_0x1f0cd4(0x152)]);var _0x3d3753=(_0x3ee63d=>(_0x3ee63d[_0x1f0cd4(0x145)]=_0x1f0cd4(0x1c8),_0x3ee63d['IDLE']='idle',_0x3ee63d[_0x1f0cd4(0x1aa)]=_0x1f0cd4(0x16b),_0x3ee63d[_0x1f0cd4(0x175)]=_0x1f0cd4(0x1b8),_0x3ee63d['PRESENTING']='presenting',_0x3ee63d))(_0x3d3753||{});const _0xd491be=_0x1f0cd4(0x1d2),_0x3b96e9=0xc8;_0x3106a4['LiveShareCoordinator']=class extends _0x2995fe[_0x1f0cd4(0x1e2)]{constructor(_0x17b2fa,_0x665f28,_0x220715,_0x5bfc1a,_0x214861){var _0x312a2d=_0x1f0cd4;super(),_0x257d65(this,'_status$',new _0x511b15[(_0x312a2d(0x151))](_0x312a2d(0x1bd))),_0x257d65(this,_0x312a2d(0x17f),this['_status$']['asObservable']()),_0x257d65(this,_0x312a2d(0x176),!0x1),_0x257d65(this,_0x312a2d(0x144),null),_0x257d65(this,_0x312a2d(0x170),null),(this[_0x312a2d(0x1d0)]=_0x17b2fa,this['_collabSession']=_0x665f28,this[_0x312a2d(0x19d)]=_0x220715,this['_liveShareService']=_0x5bfc1a,this[_0x312a2d(0x14f)]=_0x214861);}get[_0x1f0cd4(0x19e)](){var _0x2661fa=_0x1f0cd4;return this[_0x2661fa(0x1d3)][_0x2661fa(0x18a)]();}[_0x1f0cd4(0x184)](){var _0x34afb7=_0x1f0cd4,_0x517b4c;(_0x517b4c=this['_commandDisposable'])==null||_0x517b4c[_0x34afb7(0x184)](),this[_0x34afb7(0x1d3)][_0x34afb7(0x18f)](_0x34afb7(0x1bd)),this[_0x34afb7(0x1d3)]['complete']();}[_0x1f0cd4(0x133)](){var _0x3f9736=_0x1f0cd4;this[_0x3f9736(0x176)]||(this['_init']=!0x0,this[_0x3f9736(0x207)][_0x3f9736(0x1d5)]['pipe'](_0x20bce2[_0x3f9736(0x12f)](this[_0x3f9736(0x169)]))[_0x3f9736(0x1de)](_0x175c3c=>{var _0x3b6ac9=_0x3f9736;switch(_0x175c3c){case _0x5e1f05['SessionStatus'][_0x3b6ac9(0x145)]:this[_0x3b6ac9(0x1eb)]();break;case _0x5e1f05[_0x3b6ac9(0x15e)][_0x3b6ac9(0x1af)]:this[_0x3b6ac9(0x211)]();break;}}),this[_0x3f9736(0x207)][_0x3f9736(0x1a3)]['pipe'](_0x20bce2[_0x3f9736(0x12f)](this[_0x3f9736(0x169)]))[_0x3f9736(0x1de)](_0x214585=>{var _0x18627f=_0x3f9736;const {eventID:_0x342c5e}=_0x214585;switch(_0x342c5e){case _0x4f7ef0['CollaborationEvent'][_0x18627f(0x1f9)]:this['_handleNewHost'](_0x214585);break;case _0x4f7ef0[_0x18627f(0x172)]['LIVESHARE_OPERATION']:this[_0x18627f(0x217)](_0x214585);break;case _0x4f7ef0['CollaborationEvent'][_0x18627f(0x191)]:this[_0x18627f(0x190)]();break;case _0x4f7ef0[_0x18627f(0x172)][_0x18627f(0x20e)]:this[_0x18627f(0x149)](_0x214585);break;}}));}['tryStartPresenting'](){var _0x505f92=_0x1f0cd4;this[_0x505f92(0x207)][_0x505f92(0x137)]({'eventID':_0x4f7ef0[_0x505f92(0x172)][_0x505f92(0x166)],'data':{'unitID':this['_unitID'],'userID':this[_0x505f92(0x207)]['getMemberID']()}},this[_0x505f92(0x1d0)]);}[_0x1f0cd4(0x198)](){var _0x14e596=_0x1f0cd4;this['_status']===_0x14e596(0x168)&&(this['_status$'][_0x14e596(0x18f)](_0x14e596(0x1bd)),this['_collabSession'][_0x14e596(0x137)]({'eventID':_0x4f7ef0[_0x14e596(0x172)][_0x14e596(0x191)],'data':{'unitID':this[_0x14e596(0x1d0)]}},this[_0x14e596(0x1d0)]));}[_0x1f0cd4(0x1e8)](){var _0x5c95de=_0x1f0cd4;this[_0x5c95de(0x19e)]===_0x5c95de(0x1b8)&&(this['_status$'][_0x5c95de(0x18f)]('following'),this[_0x5c95de(0x20b)]());}[_0x1f0cd4(0x1e7)](){var _0x44210f=_0x1f0cd4;this[_0x44210f(0x19e)]===_0x44210f(0x16b)&&this[_0x44210f(0x1cb)]();}[_0x1f0cd4(0x1c3)](_0x55e8af){var _0x498668=_0x1f0cd4;const {presenter:_0x4e5126}=_0x55e8af[_0x498668(0x1c6)],_0x446e61=this[_0x498668(0x207)][_0x498668(0x218)]();this[_0x498668(0x170)]=_0x4e5126,_0x4e5126===_0x446e61?(this['_stopFollowing'](),this[_0x498668(0x173)]()):this[_0x498668(0x19e)]!=='not-following'&&(this[_0x498668(0x1dc)](),this[_0x498668(0x20b)]());}[_0x1f0cd4(0x201)](){var _0x30338f=_0x1f0cd4;const _0xa05d81={'eventID':_0x4f7ef0[_0x30338f(0x172)][_0x30338f(0x1ea)]};this['_collabSession'][_0x30338f(0x137)](_0xa05d81,this[_0x30338f(0x1d0)]);}['_handleTerminate'](){var _0x2fa86a=_0x1f0cd4;this[_0x2fa86a(0x170)]=null,this[_0x2fa86a(0x19e)]!==_0x2fa86a(0x168)&&this[_0x2fa86a(0x13e)]();}[_0x1f0cd4(0x149)](_0x1b0a69){var _0xfca61e=_0x1f0cd4;if(this[_0xfca61e(0x19e)]===_0xfca61e(0x16b)&&this[_0xfca61e(0x170)]===_0x1b0a69[_0xfca61e(0x1c6)][_0xfca61e(0x203)]){const _0x5dec45=_0x4f7ef0[_0xfca61e(0x17a)](_0x1b0a69[_0xfca61e(0x1c6)])[_0xfca61e(0x17c)][_0xfca61e(0x16d)]()['find'](_0x16a041=>_0x16a041['id']===_0x3d4270[_0xfca61e(0x194)]['id']);if(_0x5dec45){const _0x1e9f76=_0x5dec45['params'][_0xfca61e(0x174)],_0x5e25dd=_0x5dec45[_0xfca61e(0x1fd)][_0xfca61e(0x1d1)]['id'];setTimeout(()=>{var _0x2f85f9=_0xfca61e;this['_commandService'][_0x2f85f9(0x1d6)](_0x3d4270[_0x2f85f9(0x1b6)]['id'],{'unitId':_0x1e9f76,'subUnitId':_0x5e25dd},{'fromCollab':!0x0});});}}}[_0x1f0cd4(0x173)](){var _0x1ed188=_0x1f0cd4;this[_0x1ed188(0x1d3)][_0x1ed188(0x18f)](_0x1ed188(0x168));const _0x45c267=new Map(),_0x1f0e5e=this[_0x1ed188(0x144)]=new _0x2995fe[(_0x1ed188(0x12c))]();_0x1f0e5e[_0x1ed188(0x1b1)](_0x2995fe[_0x1ed188(0x1ec)](()=>{var _0xf9fec4=_0x1ed188;_0x45c267[_0xf9fec4(0x15d)](_0x7d5e52=>_0x7d5e52[_0xf9fec4(0x1dd)]()),_0x45c267[_0xf9fec4(0x1a8)]();})),_0x1f0e5e['add'](this[_0x1ed188(0x14f)][_0x1ed188(0x214)](_0x5e4480=>{var _0x1670c4=_0x1ed188,_0x25db2d;if(_0x5e4480[_0x1670c4(0x16f)]!==_0x2995fe[_0x1670c4(0x17d)][_0x1670c4(0x154)]||!this[_0x1670c4(0x20c)]['shouldShareOperation'](_0x5e4480['id']))return;const {id:_0x60587e}=_0x5e4480;let _0x6c56f8;_0x45c267[_0x1670c4(0x1f2)](_0x60587e)?_0x6c56f8=_0x45c267[_0x1670c4(0x1b7)](_0x60587e):(_0x6c56f8=new _0x511b15[(_0x1670c4(0x127))](),_0x45c267[_0x1670c4(0x177)](_0x60587e,_0x6c56f8),_0x6c56f8[_0x1670c4(0x1b5)](_0x20bce2[_0x1670c4(0x12e)]((_0x25db2d=this[_0x1670c4(0x19d)]['getConfig'](_0xd491be))!=null?_0x25db2d:_0x3b96e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1670c4(0x1de)](_0x3f0082=>{var _0x9d909d=_0x1670c4;this[_0x9d909d(0x207)][_0x9d909d(0x137)]({'eventID':_0x4f7ef0['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x9d909d(0x1d0)],'operations':{[_0x3f0082['id']]:{'id':_0x3f0082['id'],'params':JSON['stringify'](_0x3f0082[_0x9d909d(0x1fd)])}}}},this[_0x9d909d(0x1d0)]);})),_0x6c56f8[_0x1670c4(0x18f)](_0x5e4480);})),this[_0x1ed188(0x20c)][_0x1ed188(0x1b2)](this[_0x1ed188(0x1d0)])[_0x1ed188(0x15d)](_0x5d4302=>this['_collabSession']['send']({'eventID':_0x4f7ef0[_0x1ed188(0x172)][_0x1ed188(0x12a)],'data':{'unitID':this[_0x1ed188(0x1d0)],'operations':{[_0x5d4302['id']]:{'id':_0x5d4302['id'],'params':JSON['stringify'](_0x5d4302[_0x1ed188(0x1fd)])}}}},this[_0x1ed188(0x1d0)]));}['_stopPresenting'](){var _0x59e49a=_0x1f0cd4,_0x279206;this[_0x59e49a(0x1d3)]['next'](_0x59e49a(0x1bd)),(_0x279206=this['_commandDisposable'])==null||_0x279206[_0x59e49a(0x184)](),this[_0x59e49a(0x144)]=null;}['_startFollowing'](){var _0x4a7c16=_0x1f0cd4,_0x2d2a90;(_0x2d2a90=this[_0x4a7c16(0x144)])==null||_0x2d2a90['dispose'](),this[_0x4a7c16(0x1d3)][_0x4a7c16(0x18f)](_0x4a7c16(0x16b));}['_beIdle'](){var _0xd8ffa1=_0x1f0cd4,_0x122ada;this[_0xd8ffa1(0x1d3)][_0xd8ffa1(0x18f)](_0xd8ffa1(0x1bd)),(_0x122ada=this[_0xd8ffa1(0x144)])==null||_0x122ada[_0xd8ffa1(0x184)](),this[_0xd8ffa1(0x144)]=null;}['_stopFollowing'](){var _0x451dbf=_0x1f0cd4,_0x21b5b5;this[_0x451dbf(0x1d3)][_0x451dbf(0x18f)](_0x451dbf(0x1b8)),(_0x21b5b5=this[_0x451dbf(0x144)])==null||_0x21b5b5[_0x451dbf(0x184)]();}['_handleOperation'](_0x18c151){var _0x336dcd=_0x1f0cd4;if([_0x336dcd(0x168),'not-following',_0x336dcd(0x1c8)][_0x336dcd(0x1c9)](this[_0x336dcd(0x19e)])||!_0x18c151[_0x336dcd(0x1c6)][_0x336dcd(0x1f0)]||_0x18c151[_0x336dcd(0x1c6)][_0x336dcd(0x1f0)]===this[_0x336dcd(0x207)][_0x336dcd(0x218)]())return;this[_0x336dcd(0x19e)]===_0x336dcd(0x1bd)&&this[_0x336dcd(0x20b)]();const _0x3f6371=_0x18c151[_0x336dcd(0x1c6)]['operations'];Object[_0x336dcd(0x1df)](_0x3f6371)[_0x336dcd(0x15d)](_0x2215f9=>{var _0x371301=_0x336dcd;this[_0x371301(0x14f)]['executeCommand'](_0x2215f9['id'],_0x2215f9[_0x371301(0x1fd)]?JSON[_0x371301(0x1ad)](_0x2215f9[_0x371301(0x1fd)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2d91a9=_0x1f0cd4,_0x2dea8b;this['_status$'][_0x2d91a9(0x18f)]('offline'),(_0x2dea8b=this[_0x2d91a9(0x144)])==null||_0x2dea8b[_0x2d91a9(0x184)]();}[_0x1f0cd4(0x211)](){var _0x420a4c=_0x1f0cd4;this[_0x420a4c(0x1d3)][_0x420a4c(0x18f)]('idle'),this[_0x420a4c(0x201)]();}},_0x3106a4[_0x1f0cd4(0x12b)]=_0xc3273f([_0x309c89(0x2,_0x2995fe[_0x1f0cd4(0x1a1)]),_0x309c89(0x3,_0x2995fe[_0x1f0cd4(0x13b)](_0x2486d2)),_0x309c89(0x4,_0x2995fe['ICommandService'])],_0x3106a4[_0x1f0cd4(0x12b)]);function _0x35ff26(){var _0x3ab6fc=_0x1f0cd4;const _0x51f030=_0x2112c2['useDependency'](_0x3106a4[_0x3ab6fc(0x152)]),_0x3c1227=_0x2112c2[_0x3ab6fc(0x1f1)](_0x2995fe['IUniverInstanceService']),_0x2753c4=_0x2112c2['useObservable'](()=>_0x3c1227[_0x3ab6fc(0x1f3)](_0x2995fe[_0x3ab6fc(0x200)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5602d3,_0x9f334a]=_0x23ed4b[_0x3ab6fc(0x153)](null),[_0x57a8e5,_0x1810ff]=_0x23ed4b['useState'](_0x3d3753[_0x3ab6fc(0x12d)]),_0x3d485f=_0x23ed4b[_0x3ab6fc(0x215)](null);return _0x23ed4b[_0x3ab6fc(0x1ae)](()=>(_0x2753c4&&_0x51f030['getLiveShareCoordinator'](_0x2753c4[_0x3ab6fc(0x1a2)]())[_0x3ab6fc(0x1e5)](_0x1fee37=>{var _0x2b2b4c=_0x3ab6fc;_0x9f334a(_0x1fee37),_0x3d485f[_0x2b2b4c(0x210)]=_0x1fee37[_0x2b2b4c(0x17f)]['subscribe'](_0x3e2e40=>{_0x1810ff(_0x3e2e40);});}),()=>{var _0x506cd0=_0x3ab6fc,_0x4ad736;(_0x4ad736=_0x3d485f[_0x506cd0(0x210)])==null||_0x4ad736[_0x506cd0(0x1a6)](),_0x3d485f[_0x506cd0(0x210)]=null;}),[_0x2753c4,_0x51f030]),_0x5602d3?_0x3dd0e2[_0x3ab6fc(0x189)](_0x560f6f[_0x3ab6fc(0x19c)],{'align':'end','disabled':_0x57a8e5===_0x3d3753[_0x3ab6fc(0x145)],'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':_0x3dd0e2[_0x3ab6fc(0x189)](_0x635fe,{'status':_0x57a8e5,'coordinator':_0x5602d3}),'children':_0x3dd0e2[_0x3ab6fc(0x189)](_0x3ab6fc(0x1cd),{'className':_0x560f6f[_0x3ab6fc(0x130)](_0x3ab6fc(0x1f8),{'univer-cursor-not-allowed':_0x57a8e5===_0x3d3753[_0x3ab6fc(0x145)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x57a8e5!==_0x3d3753['OFFLINE']}),'type':'button','children':_0x3dd0e2[_0x3ab6fc(0x189)](_0x50e747,{'className':_0x3ab6fc(0x1e0)})})}):null;}function _0x635fe(_0x4c7f79){var _0x476c59=_0x1f0cd4;const {status:_0x8ad4d3,coordinator:_0x2614ce}=_0x4c7f79;switch(_0x8ad4d3){case _0x3d3753[_0x476c59(0x12d)]:return _0x3dd0e2[_0x476c59(0x189)](_0x3ce838,{'coordinator':_0x2614ce});case _0x3d3753[_0x476c59(0x1aa)]:return _0x3dd0e2[_0x476c59(0x189)](_0xbb3f1a,{'coordinator':_0x2614ce});case _0x3d3753['NOT_FOLLOWING']:return _0x3dd0e2[_0x476c59(0x189)](_0xf6649b,{'coordinator':_0x2614ce});case _0x3d3753[_0x476c59(0x145)]:return _0x3dd0e2[_0x476c59(0x189)](_0x55964e,{});case _0x3d3753[_0x476c59(0x192)]:return _0x3dd0e2['jsx'](_0x58237d,{'coordinator':_0x2614ce});default:return null;}}function _0x3ce838(_0x551090){var _0x3bc385=_0x1f0cd4;const {coordinator:_0x20befd}=_0x551090;return _0x3dd0e2[_0x3bc385(0x20f)](_0x3dd0e2['Fragment'],{'children':[_0x3dd0e2['jsx'](_0x3bc385(0x1ce),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3bc385(0x19f)}),_0x3dd0e2['jsx'](_0x560f6f[_0x3bc385(0x18e)],{'onClick':()=>_0x20befd[_0x3bc385(0x1b0)](),'children':_0x3bc385(0x156)})]});}function _0xbb3f1a(_0x408fe6){var _0x2c292d=_0x1f0cd4;const {coordinator:_0xd346b3}=_0x408fe6;return _0x3dd0e2[_0x2c292d(0x20f)](_0x3dd0e2[_0x2c292d(0x1b9)],{'children':[_0x3dd0e2[_0x2c292d(0x189)](_0x2c292d(0x1ce),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2c292d(0x209)}),_0x3dd0e2[_0x2c292d(0x189)](_0x560f6f[_0x2c292d(0x18e)],{'onClick':()=>_0xd346b3[_0x2c292d(0x1e7)](),'children':_0x2c292d(0x1ed)})]});}function _0xf6649b(_0x1889c8){var _0x2684a3=_0x1f0cd4;const {coordinator:_0x7468ed}=_0x1889c8;return _0x3dd0e2['jsxs'](_0x3dd0e2['Fragment'],{'children':[_0x3dd0e2[_0x2684a3(0x189)](_0x2684a3(0x1ce),{'className':_0x2684a3(0x164),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3dd0e2[_0x2684a3(0x189)](_0x560f6f[_0x2684a3(0x18e)],{'variant':_0x2684a3(0x1e1),'onClick':()=>_0x7468ed['startFollowing'](),'children':_0x2684a3(0x160)})]});}function _0x58237d(_0x4d963e){var _0x2354ab=_0x1f0cd4;const {coordinator:_0x5d9f1b}=_0x4d963e;return _0x3dd0e2['jsxs'](_0x3dd0e2[_0x2354ab(0x1b9)],{'children':[_0x3dd0e2[_0x2354ab(0x189)](_0x2354ab(0x1ce),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2354ab(0x155)}),_0x3dd0e2[_0x2354ab(0x189)](_0x560f6f[_0x2354ab(0x18e)],{'variant':'default','onClick':()=>_0x5d9f1b[_0x2354ab(0x198)](),'children':_0x2354ab(0x19b)})]});}function _0x55964e(){var _0x4cce07=_0x1f0cd4;return _0x3dd0e2['jsx'](_0x3dd0e2['Fragment'],{'children':_0x4cce07(0x193)});}var _0x3c7d7a=Object['getOwnPropertyDescriptor'],_0x32e98d=(_0x1c410b,_0x47541d,_0x3f6997,_0x3a7464)=>{var _0x561865=_0x1f0cd4;for(var _0x577541=_0x3a7464>0x1?void 0x0:_0x3a7464?_0x3c7d7a(_0x47541d,_0x3f6997):_0x47541d,_0x214827=_0x1c410b[_0x561865(0x1c0)]-0x1,_0x54eab0;_0x214827>=0x0;_0x214827--)(_0x54eab0=_0x1c410b[_0x214827])&&(_0x577541=_0x54eab0(_0x577541)||_0x577541);return _0x577541;},_0x113152=(_0x2b1649,_0x33b083)=>(_0x4263f0,_0x38ed2a)=>_0x33b083(_0x4263f0,_0x38ed2a,_0x2b1649);_0x3106a4[_0x1f0cd4(0x1ba)]=class extends _0x2995fe[_0x1f0cd4(0x1cf)]{constructor(_0x25b2e1,_0x1d1aa7){super(),this['_injector']=_0x25b2e1,this['_uiPartsService']=_0x1d1aa7,this['_mountLiveShare']();}[_0x1f0cd4(0x17e)](){var _0x36f0b3=_0x1f0cd4;this[_0x36f0b3(0x18c)](this['_uiPartsService'][_0x36f0b3(0x204)](_0x2112c2['BuiltInUIPart'][_0x36f0b3(0x158)],()=>_0x2112c2[_0x36f0b3(0x1c5)](_0x35ff26,this[_0x36f0b3(0x188)])));}},_0x3106a4[_0x1f0cd4(0x1ba)]=_0x32e98d([_0x113152(0x0,_0x2995fe[_0x1f0cd4(0x13b)](_0x2995fe[_0x1f0cd4(0x15f)])),_0x113152(0x1,_0x2112c2[_0x1f0cd4(0x1da)])],_0x3106a4[_0x1f0cd4(0x1ba)]);var _0x151bc2=Object[_0x1f0cd4(0x126)],_0x480c14=Object[_0x1f0cd4(0x1d4)],_0x249a6f=(_0x32cd2d,_0xb77d68,_0x1e543f)=>_0xb77d68 in _0x32cd2d?_0x151bc2(_0x32cd2d,_0xb77d68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e543f}):_0x32cd2d[_0xb77d68]=_0x1e543f,_0x56356f=(_0x6e2e8e,_0x7b03c9,_0x2b66f7,_0x2eea65)=>{var _0x5943cb=_0x1f0cd4;for(var _0x3c8fe4=_0x2eea65>0x1?void 0x0:_0x2eea65?_0x480c14(_0x7b03c9,_0x2b66f7):_0x7b03c9,_0x20dbe4=_0x6e2e8e[_0x5943cb(0x1c0)]-0x1,_0x2fd17a;_0x20dbe4>=0x0;_0x20dbe4--)(_0x2fd17a=_0x6e2e8e[_0x20dbe4])&&(_0x3c8fe4=_0x2fd17a(_0x3c8fe4)||_0x3c8fe4);return _0x3c8fe4;},_0x5e6445=(_0x290f19,_0x58919c)=>(_0x3e6141,_0xc8b596)=>_0x58919c(_0x3e6141,_0xc8b596,_0x290f19),_0x254264=(_0x35f3b2,_0x2bd13a,_0x4d237a)=>_0x249a6f(_0x35f3b2,typeof _0x2bd13a!=_0x1f0cd4(0x1ca)?_0x2bd13a+'':_0x2bd13a,_0x4d237a);const _0xc2ff5=_0x1f0cd4(0x1bf);_0x3106a4['UniverLiveSharePlugin']=class extends _0x2995fe[_0x1f0cd4(0x187)]{constructor(_0x167fb1=_0x3ac218,_0x126d2e,_0x18aaf7){var _0x44b4d3=_0x1f0cd4;super(),this[_0x44b4d3(0x136)]=_0x167fb1,this[_0x44b4d3(0x188)]=_0x126d2e,this[_0x44b4d3(0x19d)]=_0x18aaf7;const {..._0x32acea}=_0x2995fe['merge']({},_0x3ac218,this[_0x44b4d3(0x136)]);this[_0x44b4d3(0x19d)][_0x44b4d3(0x20a)](_0x5736dc,_0x32acea);}[_0x1f0cd4(0x1d8)](){var _0xfb321b=_0x1f0cd4;_0x2995fe['registerDependencies'](this[_0xfb321b(0x188)],_0x2995fe['mergeOverrideWithDependencies']([[_0x2486d2],[_0x3106a4[_0xfb321b(0x152)]],[_0xd5f213],[_0x3106a4[_0xfb321b(0x1ba)]]],this[_0xfb321b(0x136)]['override'])),_0x2995fe[_0xfb321b(0x165)](this[_0xfb321b(0x188)],[[_0xd5f213]]);}[_0x1f0cd4(0x150)](){var _0x148968=_0x1f0cd4;_0x2995fe[_0x148968(0x165)](this[_0x148968(0x188)],[[_0x3106a4[_0x148968(0x1ba)]]]);}},_0x254264(_0x3106a4['UniverLiveSharePlugin'],_0x1f0cd4(0x16f),_0x2995fe[_0x1f0cd4(0x200)][_0x1f0cd4(0x1e9)]),_0x254264(_0x3106a4['UniverLiveSharePlugin'],_0x1f0cd4(0x14e),_0xc2ff5),_0x3106a4[_0x1f0cd4(0x205)]=_0x56356f([_0x2995fe[_0x1f0cd4(0x141)](_0x5e1f05[_0x1f0cd4(0x162)]),_0x5e6445(0x1,_0x2995fe[_0x1f0cd4(0x13b)](_0x2995fe[_0x1f0cd4(0x15f)])),_0x5e6445(0x2,_0x2995fe[_0x1f0cd4(0x1a1)])],_0x3106a4['UniverLiveSharePlugin']),_0x3106a4[_0x1f0cd4(0x171)]=_0x35ff26,_0x3106a4[_0x1f0cd4(0x143)]=_0x2486d2,_0x3106a4[_0x1f0cd4(0x181)]=_0x3d3753,Object[_0x1f0cd4(0x126)](_0x3106a4,Symbol[_0x1f0cd4(0x13d)],{'value':'Module'});}));
|
|
1
|
+
function _0x1fe8(_0x54ed86,_0x1debd1){var _0x5dc636=_0x5dc6();return _0x1fe8=function(_0x1fe81c,_0x907ba3){_0x1fe81c=_0x1fe81c-0x14c;var _0x4e022c=_0x5dc636[_0x1fe81c];return _0x4e022c;},_0x1fe8(_0x54ed86,_0x1debd1);}function _0x5dc6(){var _0x4f8fd7=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_mountLiveShare','merge','rxjs','then','_configService','_commandService','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','DependentOn','Start','_entities','not-following','svg','_injector','_handleTerminate','clsx','useDependency','concat','data','UNIVER_SHEET','_startPresenting','useState','registerDependencies','_univerInstanceService','disposeWithMe','Disposable','use','univer-size-4','1031552yvACTA','pluginName','4DCNcHF','getUnitId','xlink:href','NOT_FOLLOWING','_handleOnline','defIds','getValue','takeUntil','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','propertyIsEnumerable','1em','idle','CollaborationEvent','5pbSObY','complete','extend','substring','delete','RxDisposable','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','stringify','_liveShareService','string','getConfig','current','button','LiveShareStatus','jsxs','forwardRef','dispose$','UniverCore','_handleOffline','SetWorksheetActiveOperation','@univerjs-pro/collaboration-client','pipe','createElement','Dropdown','div','memberID','LiveShareIcon','set','replace','params','UniverCollaborationClientPlugin','className','map','tag','DesktopLiveShareController','You\x27re\x20presenting\x20the\x20document','_status$','@univerjs/ui','445194UsyMjP','_collabSessionService','Fragment','registerInitialStateReporter','exports','UNIVER_UNKNOWN','801051ZcwZDZ','defs','tryStartPresenting','univerjs-icon\x20univerjs-icon-','_reporters','length','IDLE','CollaborationSessionService','symbol','startFollowing','UniverProCollaborationClient','261765zPFTdI','You\x27re\x20not\x20following\x20the\x20presenter','React','includes','assign','shouldShareOperation','throttleTime','CommandType','LiveShareController','SAME_OPERATION_SHARE_INTERVAL','displayName','useObservable','getMemberID','colorChannel1','@univerjs/design','evenodd','end','getOwnPropertySymbols','asObservable','onCommandExecuted','Plugin','IUIPartsService','InsertSheetMutation','live-share-icon','LIVESHARE_OPERATION','PRESENTING','_fetchOperations','toStringTag','Subject','touchDependencies','HEADER_MENU','ICommandService','unitId','object','onRendered','Start\x20following','DisposableCollection','stopFollowing','init','@univerjs-pro/collaboration','call','rxjs/operators','UniverInstanceType','send','_collabSession','connectInjector','getLiveShareCoordinator','presenting','UniverSheets','children','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','attrs','fill','registerSharedOperation','SetZoomRatioOperation','_status','createInstance','getTypeOfUnitAdded$','currentColor','Injector','_init','next','mutations','indexOf','7110130QVixZS','useRef','@univerjs/sheets-ui','getCurrentTypeOfUnit$','reverse','status$','OPERATION','from','4498DnACCd','react/jsx-runtime','3459627xOOtqD','_handleNewChangeSets','LiveShareCoordinator','_stopPresenting','stopPresenting','_config','operations','add','parse','_startLiveShareCoordinator','react','forEach','random','idSuffix','LIVESHARE_TERMINATE','trim','_presenter','Module','get','_startFollowing','@univerjs/sheets','LIVESHARE_NEW_HOST','subscribe','path','BehaviorSubject','SessionStatus','presenter','icon','_sharedOperations','text','offline','jsx','@univerjs/core','UniverLiveSharePlugin','_stopFollowing','hasOwnProperty','ONLINE','has','mask','unsubscribe','_beIdle','IConfigService','prototype','LIVESHARE_REQUEST_HOST','BuiltInUIPart','_handleNewHost','0\x200\x2017\x2017','_unitID','You\x27are\x20offline.','sessionStatus$','defineProperty','_handleOperation','LiveShareService','apply','amd','none','operators','Inject','8EtBXNT','NEW_CHANGESETS','function','_commandDisposable','toDisposable','dispose','_uiPartsService','event$','OFFLINE','live-share.config','entries','Stop\x20presenting'];_0x5dc6=function(){return _0x4f8fd7;};return _0x5dc6();}(function(_0x33af02,_0x1aa6e6){var _0x98ac5d=_0x1fe8,_0x4ad44e=_0x33af02();while(!![]){try{var _0x1d87b2=parseInt(_0x98ac5d(0x20e))/0x1+-parseInt(_0x98ac5d(0x17d))/0x2+-parseInt(_0x98ac5d(0x1ba))/0x3*(parseInt(_0x98ac5d(0x17f))/0x4)+-parseInt(_0x98ac5d(0x18d))/0x5*(-parseInt(_0x98ac5d(0x1b4))/0x6)+parseInt(_0x98ac5d(0x1c5))/0x7+parseInt(_0x98ac5d(0x155))/0x8*(parseInt(_0x98ac5d(0x210))/0x9)+parseInt(_0x98ac5d(0x206))/0xa;if(_0x1d87b2===_0x1aa6e6)break;else _0x4ad44e['push'](_0x4ad44e['shift']());}catch(_0x151c30){_0x4ad44e['push'](_0x4ad44e['shift']());}}}(_0x5dc6,0x68aab),function(_0x374407,_0x3a06a5){var _0x3b3104=_0x1fe8;typeof exports==_0x3b3104(0x1e6)&&typeof module<'u'?_0x3a06a5(exports,require(_0x3b3104(0x1a2)),require(_0x3b3104(0x230)),require(_0x3b3104(0x224)),require(_0x3b3104(0x208)),require(_0x3b3104(0x1b3)),require('react/jsx-runtime'),require(_0x3b3104(0x1d3)),require(_0x3b3104(0x21a)),require('@univerjs-pro/collaboration'),require(_0x3b3104(0x164)),require(_0x3b3104(0x1ee))):typeof define==_0x3b3104(0x157)&&define[_0x3b3104(0x151)]?define([_0x3b3104(0x1b8),_0x3b3104(0x1a2),_0x3b3104(0x230),_0x3b3104(0x224),_0x3b3104(0x208),_0x3b3104(0x1b3),_0x3b3104(0x20f),_0x3b3104(0x1d3),_0x3b3104(0x21a),_0x3b3104(0x1ec),'rxjs',_0x3b3104(0x1ee)],_0x3a06a5):(_0x374407=typeof globalThis<'u'?globalThis:_0x374407||self,_0x3a06a5(_0x374407['UniverProLiveShare']={},_0x374407[_0x3b3104(0x1c4)],_0x374407[_0x3b3104(0x19f)],_0x374407[_0x3b3104(0x1f5)],_0x374407['UniverSheetsUi'],_0x374407['UniverUi'],_0x374407[_0x3b3104(0x1c7)],_0x374407['UniverDesign'],_0x374407[_0x3b3104(0x1c7)],_0x374407['UniverProCollaboration'],_0x374407[_0x3b3104(0x164)],_0x374407[_0x3b3104(0x164)][_0x3b3104(0x153)]));}(this,function(_0x12dabc,_0x5747cc,_0x3a9025,_0x1c2e44,_0x247577,_0x5436a1,_0x878fb2,_0x3d1390,_0x1cdf56,_0x44e43a,_0x51a3c4,_0x2c9909){'use strict';var _0x5c8a51=_0x1fe8;var _0x58d39b=Object[_0x5c8a51(0x14d)],_0x38fd6f=(_0x4cd867,_0x1f6273,_0x110783)=>_0x1f6273 in _0x4cd867?_0x58d39b(_0x4cd867,_0x1f6273,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110783}):_0x4cd867[_0x1f6273]=_0x110783,_0x71f325=(_0x2f705a,_0x405766,_0x56673a)=>_0x38fd6f(_0x2f705a,typeof _0x405766!=_0x5c8a51(0x1c2)?_0x405766+'':_0x405766,_0x56673a);const _0x524f5f=_0x5c8a51(0x15e),_0x215b3f={};class _0x210719 extends _0x3a9025['Disposable']{constructor(){var _0x56d2da=_0x5c8a51;super(...arguments),_0x71f325(this,_0x56d2da(0x22c),new Set()),_0x71f325(this,_0x56d2da(0x1be),new Set());}[_0x5c8a51(0x1fb)](_0x245bc1){var _0x1f7156=_0x5c8a51;return this[_0x1f7156(0x22c)][_0x1f7156(0x217)](_0x245bc1),_0x3a9025[_0x1f7156(0x159)](()=>this[_0x1f7156(0x22c)]['delete'](_0x245bc1));}[_0x5c8a51(0x1b7)](_0xce6eb5){var _0x495afd=_0x5c8a51;return this[_0x495afd(0x1be)][_0x495afd(0x217)](_0xce6eb5),_0x3a9025[_0x495afd(0x159)](()=>this[_0x495afd(0x1be)][_0x495afd(0x191)](_0xce6eb5));}[_0x5c8a51(0x1ca)](_0x3457fb){var _0x37a39a=_0x5c8a51;return this[_0x37a39a(0x22c)][_0x37a39a(0x235)](_0x3457fb);}['getInitialStates'](_0x117033){var _0x5e9603=_0x5c8a51;return Array[_0x5e9603(0x20d)](this['_reporters'])['map'](_0x2dcf96=>_0x2dcf96(_0x117033));}}var _0x2bf51c=Object['getOwnPropertyDescriptor'],_0x325238=(_0x360770,_0x2725d6,_0x232cf8,_0x1e92a2)=>{var _0x4b3548=_0x5c8a51;for(var _0x3b7093=_0x1e92a2>0x1?void 0x0:_0x1e92a2?_0x2bf51c(_0x2725d6,_0x232cf8):_0x2725d6,_0x6d7818=_0x360770[_0x4b3548(0x1bf)]-0x1,_0xa0f5f7;_0x6d7818>=0x0;_0x6d7818--)(_0xa0f5f7=_0x360770[_0x6d7818])&&(_0x3b7093=_0xa0f5f7(_0x3b7093)||_0x3b7093);return _0x3b7093;},_0x1ed23b=(_0x613dbe,_0x311000)=>(_0x25bde6,_0x10fc0d)=>_0x311000(_0x25bde6,_0x10fc0d,_0x613dbe);let _0x437956=class extends _0x3a9025[_0x5c8a51(0x17a)]{constructor(_0xb63e1a){var _0x588be9=_0x5c8a51;super(),this[_0x588be9(0x196)]=_0xb63e1a,this[_0x588be9(0x202)]();}[_0x5c8a51(0x202)](){var _0x7990aa=_0x5c8a51;[_0x247577[_0x7990aa(0x1fc)]['id'],_0x247577['SetScrollOperation']['id'],_0x1c2e44[_0x7990aa(0x1a1)]['id']][_0x7990aa(0x21b)](_0x5927c2=>{var _0x548fb6=_0x7990aa;this['disposeWithMe'](this[_0x548fb6(0x196)]['registerSharedOperation'](_0x5927c2));});}};_0x437956=_0x325238([_0x1ed23b(0x0,_0x3a9025[_0x5c8a51(0x154)](_0x210719))],_0x437956);var _0x426a46=function(){var _0x1209bc=_0x5c8a51;return _0x426a46=Object[_0x1209bc(0x1c9)]||function(_0xb8ac03){var _0x5cdfb3=_0x1209bc;for(var _0x9455ce,_0x586a03=0x1,_0x5176ea=arguments[_0x5cdfb3(0x1bf)];_0x586a03<_0x5176ea;_0x586a03++){_0x9455ce=arguments[_0x586a03];for(var _0x2fa172 in _0x9455ce)Object['prototype'][_0x5cdfb3(0x233)][_0x5cdfb3(0x1ed)](_0x9455ce,_0x2fa172)&&(_0xb8ac03[_0x2fa172]=_0x9455ce[_0x2fa172]);}return _0xb8ac03;},_0x426a46[_0x1209bc(0x150)](this,arguments);},_0x47c1c1=function(_0x3ca6e1,_0x49e36d){var _0x339320=_0x5c8a51,_0x302d8e={};for(var _0x150a78 in _0x3ca6e1)Object[_0x339320(0x23a)][_0x339320(0x233)][_0x339320(0x1ed)](_0x3ca6e1,_0x150a78)&&_0x49e36d['indexOf'](_0x150a78)<0x0&&(_0x302d8e[_0x150a78]=_0x3ca6e1[_0x150a78]);if(_0x3ca6e1!=null&&typeof Object[_0x339320(0x1d6)]==_0x339320(0x157)){for(var _0x3b0450=0x0,_0x150a78=Object[_0x339320(0x1d6)](_0x3ca6e1);_0x3b0450<_0x150a78[_0x339320(0x1bf)];_0x3b0450++)_0x49e36d[_0x339320(0x205)](_0x150a78[_0x3b0450])<0x0&&Object[_0x339320(0x23a)][_0x339320(0x189)][_0x339320(0x1ed)](_0x3ca6e1,_0x150a78[_0x3b0450])&&(_0x302d8e[_0x150a78[_0x3b0450]]=_0x3ca6e1[_0x150a78[_0x3b0450]]);}return _0x302d8e;},_0x27939e=_0x1cdf56[_0x5c8a51(0x19d)](function(_0x3b347e,_0x5668fc){var _0x1b790b=_0x5c8a51,_0x28d9fd=_0x3b347e['icon'],_0xa27ba1=_0x3b347e['id'],_0x1d0d6b=_0x3b347e[_0x1b790b(0x1ad)],_0x49d3fa=_0x3b347e[_0x1b790b(0x18f)],_0x41df6b=_0x47c1c1(_0x3b347e,[_0x1b790b(0x22b),'id',_0x1b790b(0x1ad),'extend']),_0xd73e2d=_0x1b790b(0x1bd)['concat'](_0xa27ba1,'\x20')[_0x1b790b(0x172)](_0x1d0d6b||'')[_0x1b790b(0x21f)](),_0x29f241=_0x1cdf56[_0x1b790b(0x207)]('_'[_0x1b790b(0x172)](_0x33bc37()));return _0x19f154(_0x28d9fd,''[_0x1b790b(0x172)](_0xa27ba1),{'defIds':_0x28d9fd[_0x1b790b(0x184)],'idSuffix':_0x29f241['current']},_0x426a46({'ref':_0x5668fc,'className':_0xd73e2d},_0x41df6b),_0x49d3fa);});function _0x19f154(_0x5d7a39,_0x4e3aa8,_0x443443,_0x3085e8,_0x5205ba){var _0x290339=_0x5c8a51;return _0x1cdf56[_0x290339(0x1a4)](_0x5d7a39[_0x290339(0x1af)],_0x426a46(_0x426a46({'key':_0x4e3aa8},_0x2e338e(_0x5d7a39,_0x443443,_0x5205ba)),_0x3085e8),(_0x42150e(_0x5d7a39,_0x443443)[_0x290339(0x1f6)]||[])[_0x290339(0x1ae)](function(_0x3091c3,_0x1e399a){var _0x37c6a8=_0x290339;return _0x19f154(_0x3091c3,''[_0x37c6a8(0x172)](_0x4e3aa8,'-')[_0x37c6a8(0x172)](_0x5d7a39[_0x37c6a8(0x1af)],'-')[_0x37c6a8(0x172)](_0x1e399a),_0x443443,void 0x0,_0x5205ba);}));}function _0x2e338e(_0xb09612,_0x5001e3,_0x4b190f){var _0xdc68f2=_0x5c8a51,_0x5eeae0=_0x426a46({},_0xb09612[_0xdc68f2(0x1f9)]);_0x4b190f!=null&&_0x4b190f[_0xdc68f2(0x1d2)]&&_0x5eeae0[_0xdc68f2(0x1fa)]===_0xdc68f2(0x1d2)&&(_0x5eeae0[_0xdc68f2(0x1fa)]=_0x4b190f[_0xdc68f2(0x1d2)]),_0xb09612[_0xdc68f2(0x1af)]===_0xdc68f2(0x236)&&_0x5eeae0['id']&&(_0x5eeae0['id']=_0x5eeae0['id']+_0x5001e3['idSuffix']),Object['entries'](_0x5eeae0)[_0xdc68f2(0x21b)](function(_0x190b86){var _0x30f362=_0xdc68f2,_0x124062=_0x190b86[0x0],_0x150d84=_0x190b86[0x1];_0x124062===_0x30f362(0x236)&&typeof _0x150d84=='string'&&(_0x5eeae0[_0x124062]=_0x150d84[_0x30f362(0x1aa)](/url\(#(.*)\)/,'url(#$1'[_0x30f362(0x172)](_0x5001e3[_0x30f362(0x21d)],')')));});var _0x4304f7=_0x5001e3[_0xdc68f2(0x184)];return!_0x4304f7||_0x4304f7[_0xdc68f2(0x1bf)]===0x0||(_0xb09612[_0xdc68f2(0x1af)]===_0xdc68f2(0x17b)&&_0x5eeae0[_0xdc68f2(0x181)]&&(_0x5eeae0['xlink:href']=_0x5eeae0['xlink:href']+_0x5001e3[_0xdc68f2(0x21d)]),Object[_0xdc68f2(0x15f)](_0x5eeae0)[_0xdc68f2(0x21b)](function(_0x37c9cf){var _0x567c8d=_0xdc68f2,_0x40f411=_0x37c9cf[0x0],_0x22b9ee=_0x37c9cf[0x1];typeof _0x22b9ee==_0x567c8d(0x197)&&(_0x5eeae0[_0x40f411]=_0x22b9ee[_0x567c8d(0x1aa)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x5001e3[_0x567c8d(0x21d)],')')));})),_0x5eeae0;}function _0x42150e(_0x3998a2,_0x2ce8bf){var _0x126a5f=_0x5c8a51,_0x4ca95f,_0x4cabc9=_0x2ce8bf[_0x126a5f(0x184)];return!_0x4cabc9||_0x4cabc9[_0x126a5f(0x1bf)]===0x0?_0x3998a2:_0x3998a2[_0x126a5f(0x1af)]===_0x126a5f(0x1bb)&&(!((_0x4ca95f=_0x3998a2[_0x126a5f(0x1f6)])===null||_0x4ca95f===void 0x0)&&_0x4ca95f[_0x126a5f(0x1bf)])?_0x426a46(_0x426a46({},_0x3998a2),{'children':_0x3998a2['children'][_0x126a5f(0x1ae)](function(_0x576f6a){var _0x4567c1=_0x126a5f;return typeof _0x576f6a['attrs']['id']==_0x4567c1(0x197)&&_0x4cabc9&&_0x4cabc9[_0x4567c1(0x1c8)](_0x576f6a[_0x4567c1(0x1f9)]['id'])?_0x426a46(_0x426a46({},_0x576f6a),{'attrs':_0x426a46(_0x426a46({},_0x576f6a['attrs']),{'id':_0x576f6a[_0x4567c1(0x1f9)]['id']+_0x2ce8bf['idSuffix']})}):_0x576f6a;})}):_0x3998a2;}function _0x33bc37(){var _0x410258=_0x5c8a51;return Math[_0x410258(0x21c)]()['toString'](0x24)[_0x410258(0x190)](0x2,0x8);}_0x27939e[_0x5c8a51(0x1cf)]='UniverIcon';var _0x343bbf={'tag':_0x5c8a51(0x16d),'attrs':{'xmlns':_0x5c8a51(0x1f7),'fill':_0x5c8a51(0x152),'viewBox':_0x5c8a51(0x23e),'width':_0x5c8a51(0x18a),'height':_0x5c8a51(0x18a)},'children':[{'tag':_0x5c8a51(0x227),'attrs':{'fill':_0x5c8a51(0x200),'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':_0x5c8a51(0x227),'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':_0x5c8a51(0x1d4),'clipRule':'evenodd'}}]},_0x12278c=_0x1cdf56['forwardRef'](function(_0xa2cd9c,_0x40f8ed){var _0x4648e0=_0x5c8a51;return _0x1cdf56[_0x4648e0(0x1a4)](_0x27939e,Object['assign']({},_0xa2cd9c,{'id':_0x4648e0(0x1dc),'ref':_0x40f8ed,'icon':_0x343bbf}));});_0x12278c[_0x5c8a51(0x1cf)]=_0x5c8a51(0x1a8);var _0x5c4c41=Object['getOwnPropertyDescriptor'],_0x177b29=(_0x11474a,_0x1bd58e,_0x5757c0,_0x5d94ae)=>{for(var _0x41fe43=_0x5d94ae>0x1?void 0x0:_0x5d94ae?_0x5c4c41(_0x1bd58e,_0x5757c0):_0x1bd58e,_0x242556=_0x11474a['length']-0x1,_0x1dd1eb;_0x242556>=0x0;_0x242556--)(_0x1dd1eb=_0x11474a[_0x242556])&&(_0x41fe43=_0x1dd1eb(_0x41fe43)||_0x41fe43);return _0x41fe43;},_0x508656=(_0x378ccd,_0x15a1af)=>(_0x102b64,_0x312b5e)=>_0x15a1af(_0x102b64,_0x312b5e,_0x378ccd);_0x12dabc[_0x5c8a51(0x1cd)]=class extends _0x3a9025[_0x5c8a51(0x192)]{constructor(_0x2b8909,_0x54603a,_0x37a163){var _0x334b60=_0x5c8a51;super(),_0x71f325(this,_0x334b60(0x16b),new Map()),(this[_0x334b60(0x178)]=_0x2b8909,this[_0x334b60(0x16e)]=_0x54603a,this[_0x334b60(0x1b5)]=_0x37a163,this[_0x334b60(0x202)]());}async[_0x5c8a51(0x1f3)](_0x16025e){var _0x457905=_0x5c8a51;return this[_0x457905(0x16b)][_0x457905(0x235)](_0x16025e)||await this['_startLiveShareCoordinator'](_0x16025e),this[_0x457905(0x16b)][_0x457905(0x222)](_0x16025e);}[_0x5c8a51(0x202)](){var _0x51a4b5=_0x5c8a51;this[_0x51a4b5(0x178)][_0x51a4b5(0x1ff)](_0x3a9025[_0x51a4b5(0x1ef)][_0x51a4b5(0x174)])['pipe'](_0x2c9909[_0x51a4b5(0x186)](this[_0x51a4b5(0x19e)]))[_0x51a4b5(0x226)](async _0x3be5d9=>{var _0x2f854f=_0x51a4b5;const _0x13a9b7=_0x3be5d9['getUnitId']();this['_entities'][_0x2f854f(0x235)](_0x13a9b7)||this[_0x2f854f(0x219)](_0x13a9b7);}),this[_0x51a4b5(0x178)]['getTypeOfUnitDisposed$'](_0x3a9025[_0x51a4b5(0x1ef)][_0x51a4b5(0x174)])[_0x51a4b5(0x1a3)](_0x2c9909[_0x51a4b5(0x186)](this[_0x51a4b5(0x19e)]))[_0x51a4b5(0x226)](_0x6b7a59=>{var _0x268add=_0x51a4b5;const _0x26ee6f=_0x6b7a59[_0x268add(0x180)](),_0x27bf64=this[_0x268add(0x16b)][_0x268add(0x222)](_0x26ee6f);_0x27bf64==null||_0x27bf64[_0x268add(0x15a)]();});}async[_0x5c8a51(0x219)](_0x52b114){var _0x59ecb3=_0x5c8a51;const _0x349c3b=await this[_0x59ecb3(0x1b5)]['requireSession'](_0x52b114),_0x23fdc3=this[_0x59ecb3(0x16e)][_0x59ecb3(0x1fe)](_0x12dabc[_0x59ecb3(0x212)],_0x52b114,_0x349c3b);return _0x23fdc3[_0x59ecb3(0x1eb)](),this[_0x59ecb3(0x16b)][_0x59ecb3(0x1a9)](_0x52b114,_0x23fdc3),_0x23fdc3;}},_0x12dabc[_0x5c8a51(0x1cd)]=_0x177b29([_0x508656(0x0,_0x3a9025[_0x5c8a51(0x188)]),_0x508656(0x1,_0x3a9025[_0x5c8a51(0x154)](_0x3a9025[_0x5c8a51(0x201)])),_0x508656(0x2,_0x3a9025[_0x5c8a51(0x154)](_0x5747cc[_0x5c8a51(0x1c1)]))],_0x12dabc[_0x5c8a51(0x1cd)]);var _0x2eb10d=(_0x2179d6=>(_0x2179d6[_0x5c8a51(0x15d)]=_0x5c8a51(0x22e),_0x2179d6['IDLE']='idle',_0x2179d6['FOLLOWING']=_0x5c8a51(0x193),_0x2179d6[_0x5c8a51(0x182)]=_0x5c8a51(0x16c),_0x2179d6[_0x5c8a51(0x1de)]=_0x5c8a51(0x1f4),_0x2179d6))(_0x2eb10d||{});const _0x5c396e=_0x5c8a51(0x1ce),_0x25b84d=0xc8;_0x12dabc[_0x5c8a51(0x212)]=class extends _0x3a9025['RxDisposable']{constructor(_0x30c61a,_0x3dc6e2,_0x21cd0c,_0x38793b,_0x41cc6b){var _0x167687=_0x5c8a51;super(),_0x71f325(this,_0x167687(0x1b2),new _0x51a3c4[(_0x167687(0x228))]('idle')),_0x71f325(this,_0x167687(0x20b),this[_0x167687(0x1b2)][_0x167687(0x1d7)]()),_0x71f325(this,'_init',!0x1),_0x71f325(this,_0x167687(0x158),null),_0x71f325(this,'_presenter',null),(this[_0x167687(0x23f)]=_0x30c61a,this['_collabSession']=_0x3dc6e2,this[_0x167687(0x166)]=_0x21cd0c,this[_0x167687(0x196)]=_0x38793b,this['_commandService']=_0x41cc6b);}get[_0x5c8a51(0x1fd)](){var _0x5a5feb=_0x5c8a51;return this[_0x5a5feb(0x1b2)][_0x5a5feb(0x185)]();}[_0x5c8a51(0x15a)](){var _0x50e081=_0x5c8a51,_0x501dd2;(_0x501dd2=this[_0x50e081(0x158)])==null||_0x501dd2['dispose'](),this[_0x50e081(0x1b2)]['next']('idle'),this['_status$'][_0x50e081(0x18e)]();}['init'](){var _0x310aea=_0x5c8a51;this['_init']||(this[_0x310aea(0x202)]=!0x0,this[_0x310aea(0x1f1)][_0x310aea(0x14c)][_0x310aea(0x1a3)](_0x2c9909['takeUntil'](this[_0x310aea(0x19e)]))[_0x310aea(0x226)](_0x500ac8=>{var _0x261635=_0x310aea;switch(_0x500ac8){case _0x5747cc['SessionStatus'][_0x261635(0x15d)]:this[_0x261635(0x1a0)]();break;case _0x5747cc[_0x261635(0x229)][_0x261635(0x234)]:this[_0x261635(0x183)]();break;}}),this[_0x310aea(0x1f1)][_0x310aea(0x15c)][_0x310aea(0x1a3)](_0x2c9909[_0x310aea(0x186)](this[_0x310aea(0x19e)]))['subscribe'](_0x5ab25b=>{var _0x2f0707=_0x310aea;const {eventID:_0xb46ad2}=_0x5ab25b;switch(_0xb46ad2){case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x225)]:this[_0x2f0707(0x23d)](_0x5ab25b);break;case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x1dd)]:this[_0x2f0707(0x14e)](_0x5ab25b);break;case _0x44e43a[_0x2f0707(0x18c)]['LIVESHARE_TERMINATE']:this[_0x2f0707(0x16f)]();break;case _0x44e43a[_0x2f0707(0x18c)][_0x2f0707(0x156)]:this['_handleNewChangeSets'](_0x5ab25b);break;}}));}[_0x5c8a51(0x1bc)](){var _0x3aab0f=_0x5c8a51;this['_collabSession']['send']({'eventID':_0x44e43a[_0x3aab0f(0x18c)][_0x3aab0f(0x23b)],'data':{'unitID':this['_unitID'],'userID':this[_0x3aab0f(0x1f1)][_0x3aab0f(0x1d1)]()}},this['_unitID']);}[_0x5c8a51(0x214)](){var _0x1683c2=_0x5c8a51;this[_0x1683c2(0x1fd)]==='presenting'&&(this['_status$'][_0x1683c2(0x203)](_0x1683c2(0x18b)),this[_0x1683c2(0x1f1)]['send']({'eventID':_0x44e43a['CollaborationEvent'][_0x1683c2(0x21e)],'data':{'unitID':this[_0x1683c2(0x23f)]}},this[_0x1683c2(0x23f)]));}[_0x5c8a51(0x1c3)](){var _0x5c1b91=_0x5c8a51;this[_0x5c1b91(0x1fd)]===_0x5c1b91(0x16c)&&(this[_0x5c1b91(0x1b2)][_0x5c1b91(0x203)]('following'),this['_startFollowing']());}[_0x5c8a51(0x1ea)](){var _0x694e12=_0x5c8a51;this[_0x694e12(0x1fd)]===_0x694e12(0x193)&&this[_0x694e12(0x232)]();}[_0x5c8a51(0x23d)](_0x429f8e){var _0x19f151=_0x5c8a51;const {presenter:_0xd9933}=_0x429f8e[_0x19f151(0x173)],_0x22c3d2=this['_collabSession'][_0x19f151(0x1d1)]();this[_0x19f151(0x220)]=_0xd9933,_0xd9933===_0x22c3d2?(this[_0x19f151(0x232)](),this[_0x19f151(0x175)]()):this['_status']!==_0x19f151(0x16c)&&(this[_0x19f151(0x213)](),this[_0x19f151(0x223)]());}[_0x5c8a51(0x1df)](){var _0x3e8f0a=_0x5c8a51;const _0x45781b={'eventID':_0x44e43a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x3e8f0a(0x1f1)]['send'](_0x45781b,this['_unitID']);}[_0x5c8a51(0x16f)](){var _0x2fd792=_0x5c8a51;this[_0x2fd792(0x220)]=null,this['_status']!==_0x2fd792(0x1f4)&&this[_0x2fd792(0x238)]();}[_0x5c8a51(0x211)](_0x1ff8f7){var _0xcf4134=_0x5c8a51;if(this['_status']===_0xcf4134(0x193)&&this[_0xcf4134(0x220)]===_0x1ff8f7[_0xcf4134(0x173)][_0xcf4134(0x1a7)]){const _0xddf9c8=_0x44e43a['parseProtocolChangeset'](_0x1ff8f7[_0xcf4134(0x173)])[_0xcf4134(0x204)][_0xcf4134(0x20a)]()['find'](_0x24d034=>_0x24d034['id']===_0x1c2e44[_0xcf4134(0x1db)]['id']);if(_0xddf9c8){const _0x2da6af=_0xddf9c8[_0xcf4134(0x1ab)][_0xcf4134(0x1e5)],_0x5070fc=_0xddf9c8[_0xcf4134(0x1ab)]['sheet']['id'];setTimeout(()=>{var _0x1405ec=_0xcf4134;this[_0x1405ec(0x167)]['executeCommand'](_0x1c2e44[_0x1405ec(0x1a1)]['id'],{'unitId':_0x2da6af,'subUnitId':_0x5070fc},{'fromCollab':!0x0});});}}}[_0x5c8a51(0x175)](){var _0x29e00d=_0x5c8a51;this['_status$'][_0x29e00d(0x203)](_0x29e00d(0x1f4));const _0x2bfcbb=new Map(),_0x3285a8=this[_0x29e00d(0x158)]=new _0x3a9025[(_0x29e00d(0x1e9))]();_0x3285a8[_0x29e00d(0x217)](_0x3a9025['toDisposable'](()=>{var _0x361217=_0x29e00d;_0x2bfcbb['forEach'](_0x2225a3=>_0x2225a3[_0x361217(0x18e)]()),_0x2bfcbb['clear']();})),_0x3285a8[_0x29e00d(0x217)](this[_0x29e00d(0x167)][_0x29e00d(0x1d8)](_0x21f14b=>{var _0x38fb70=_0x29e00d,_0x10904e;if(_0x21f14b['type']!==_0x3a9025[_0x38fb70(0x1cc)][_0x38fb70(0x20c)]||!this[_0x38fb70(0x196)][_0x38fb70(0x1ca)](_0x21f14b['id']))return;const {id:_0x2d535e}=_0x21f14b;let _0x28407a;_0x2bfcbb[_0x38fb70(0x235)](_0x2d535e)?_0x28407a=_0x2bfcbb[_0x38fb70(0x222)](_0x2d535e):(_0x28407a=new _0x51a3c4[(_0x38fb70(0x1e1))](),_0x2bfcbb[_0x38fb70(0x1a9)](_0x2d535e,_0x28407a),_0x28407a[_0x38fb70(0x1a3)](_0x2c9909[_0x38fb70(0x1cb)]((_0x10904e=this[_0x38fb70(0x166)][_0x38fb70(0x198)](_0x5c396e))!=null?_0x10904e:_0x25b84d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38fb70(0x226)](_0x1d2441=>{var _0xa11c3e=_0x38fb70;this[_0xa11c3e(0x1f1)]['send']({'eventID':_0x44e43a[_0xa11c3e(0x18c)][_0xa11c3e(0x1dd)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d2441['id']]:{'id':_0x1d2441['id'],'params':JSON[_0xa11c3e(0x195)](_0x1d2441[_0xa11c3e(0x1ab)])}}}},this[_0xa11c3e(0x23f)]);})),_0x28407a[_0x38fb70(0x203)](_0x21f14b);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x29e00d(0x21b)](_0x4d24af=>this[_0x29e00d(0x1f1)][_0x29e00d(0x1f0)]({'eventID':_0x44e43a[_0x29e00d(0x18c)][_0x29e00d(0x1dd)],'data':{'unitID':this[_0x29e00d(0x23f)],'operations':{[_0x4d24af['id']]:{'id':_0x4d24af['id'],'params':JSON['stringify'](_0x4d24af[_0x29e00d(0x1ab)])}}}},this[_0x29e00d(0x23f)]));}['_stopPresenting'](){var _0x336e37=_0x5c8a51,_0x2c464d;this[_0x336e37(0x1b2)]['next'](_0x336e37(0x18b)),(_0x2c464d=this[_0x336e37(0x158)])==null||_0x2c464d[_0x336e37(0x15a)](),this[_0x336e37(0x158)]=null;}[_0x5c8a51(0x223)](){var _0x3740e0=_0x5c8a51,_0x1dc743;(_0x1dc743=this[_0x3740e0(0x158)])==null||_0x1dc743[_0x3740e0(0x15a)](),this[_0x3740e0(0x1b2)][_0x3740e0(0x203)](_0x3740e0(0x193));}[_0x5c8a51(0x238)](){var _0x253c36=_0x5c8a51,_0x31f818;this['_status$'][_0x253c36(0x203)]('idle'),(_0x31f818=this[_0x253c36(0x158)])==null||_0x31f818[_0x253c36(0x15a)](),this[_0x253c36(0x158)]=null;}[_0x5c8a51(0x232)](){var _0x269020=_0x5c8a51,_0x80a522;this['_status$'][_0x269020(0x203)](_0x269020(0x16c)),(_0x80a522=this[_0x269020(0x158)])==null||_0x80a522[_0x269020(0x15a)]();}[_0x5c8a51(0x14e)](_0x49220d){var _0x2f473a=_0x5c8a51;if([_0x2f473a(0x1f4),_0x2f473a(0x16c),'offline'][_0x2f473a(0x1c8)](this[_0x2f473a(0x1fd)])||!_0x49220d[_0x2f473a(0x173)]['presenter']||_0x49220d[_0x2f473a(0x173)][_0x2f473a(0x22a)]===this[_0x2f473a(0x1f1)][_0x2f473a(0x1d1)]())return;this['_status']===_0x2f473a(0x18b)&&this['_startFollowing']();const _0x492293=_0x49220d['data'][_0x2f473a(0x216)];Object['values'](_0x492293)[_0x2f473a(0x21b)](_0x4ebce6=>{var _0x2a20eb=_0x2f473a;this[_0x2a20eb(0x167)]['executeCommand'](_0x4ebce6['id'],_0x4ebce6[_0x2a20eb(0x1ab)]?JSON[_0x2a20eb(0x218)](_0x4ebce6[_0x2a20eb(0x1ab)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x389924=_0x5c8a51,_0x21d037;this['_status$'][_0x389924(0x203)](_0x389924(0x22e)),(_0x21d037=this[_0x389924(0x158)])==null||_0x21d037[_0x389924(0x15a)]();}[_0x5c8a51(0x183)](){var _0x4f4485=_0x5c8a51;this[_0x4f4485(0x1b2)][_0x4f4485(0x203)](_0x4f4485(0x18b)),this['_fetchOperations']();}},_0x12dabc['LiveShareCoordinator']=_0x177b29([_0x508656(0x2,_0x3a9025['IConfigService']),_0x508656(0x3,_0x3a9025['Inject'](_0x210719)),_0x508656(0x4,_0x3a9025[_0x5c8a51(0x1e4)])],_0x12dabc['LiveShareCoordinator']);function _0x9644ef(){var _0x1a88c2=_0x5c8a51;const _0x338788=_0x5436a1[_0x1a88c2(0x171)](_0x12dabc[_0x1a88c2(0x1cd)]),_0x2260b0=_0x5436a1['useDependency'](_0x3a9025[_0x1a88c2(0x188)]),_0x1b1493=_0x5436a1[_0x1a88c2(0x1d0)](()=>_0x2260b0[_0x1a88c2(0x209)](_0x3a9025['UniverInstanceType'][_0x1a88c2(0x174)]),void 0x0,!0x1,[]),[_0x796fb2,_0x1520f2]=_0x1cdf56['useState'](null),[_0x51cbb,_0x1cea0b]=_0x1cdf56[_0x1a88c2(0x176)](_0x2eb10d[_0x1a88c2(0x1c0)]),_0x523394=_0x1cdf56[_0x1a88c2(0x207)](null);return _0x1cdf56['useEffect'](()=>(_0x1b1493&&_0x338788['getLiveShareCoordinator'](_0x1b1493[_0x1a88c2(0x180)]())[_0x1a88c2(0x165)](_0x23944e=>{var _0x3ba783=_0x1a88c2;_0x1520f2(_0x23944e),_0x523394['current']=_0x23944e[_0x3ba783(0x20b)][_0x3ba783(0x226)](_0x225b01=>{_0x1cea0b(_0x225b01);});}),()=>{var _0xddf67f=_0x1a88c2,_0xd3fe24;(_0xd3fe24=_0x523394[_0xddf67f(0x199)])==null||_0xd3fe24[_0xddf67f(0x237)](),_0x523394[_0xddf67f(0x199)]=null;}),[_0x1b1493,_0x338788]),_0x796fb2?_0x878fb2['jsx'](_0x3d1390[_0x1a88c2(0x1a5)],{'align':_0x1a88c2(0x1d5),'disabled':_0x51cbb===_0x2eb10d[_0x1a88c2(0x15d)],'className':_0x1a88c2(0x168),'overlay':_0x878fb2['jsx'](_0x19071d,{'status':_0x51cbb,'coordinator':_0x796fb2}),'children':_0x878fb2[_0x1a88c2(0x22f)]('button',{'className':_0x3d1390[_0x1a88c2(0x170)](_0x1a88c2(0x161),{'univer-cursor-not-allowed':_0x51cbb===_0x2eb10d[_0x1a88c2(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51cbb!==_0x2eb10d[_0x1a88c2(0x15d)]}),'type':_0x1a88c2(0x19a),'children':_0x878fb2[_0x1a88c2(0x22f)](_0x12278c,{'className':_0x1a88c2(0x17c)})})}):null;}function _0x19071d(_0x2e5e86){var _0xbe2080=_0x5c8a51;const {status:_0x34b816,coordinator:_0x5e0e88}=_0x2e5e86;switch(_0x34b816){case _0x2eb10d[_0xbe2080(0x1c0)]:return _0x878fb2[_0xbe2080(0x22f)](_0x2b3e45,{'coordinator':_0x5e0e88});case _0x2eb10d['FOLLOWING']:return _0x878fb2[_0xbe2080(0x22f)](_0x1249f6,{'coordinator':_0x5e0e88});case _0x2eb10d[_0xbe2080(0x182)]:return _0x878fb2[_0xbe2080(0x22f)](_0x22240f,{'coordinator':_0x5e0e88});case _0x2eb10d[_0xbe2080(0x15d)]:return _0x878fb2[_0xbe2080(0x22f)](_0x5fdd66,{});case _0x2eb10d['PRESENTING']:return _0x878fb2[_0xbe2080(0x22f)](_0x4ab776,{'coordinator':_0x5e0e88});default:return null;}}function _0x2b3e45(_0x1137c3){var _0x2f045f=_0x5c8a51;const {coordinator:_0x15cf0b}=_0x1137c3;return _0x878fb2[_0x2f045f(0x19c)](_0x878fb2['Fragment'],{'children':[_0x878fb2[_0x2f045f(0x22f)]('div',{'className':_0x2f045f(0x194),'children':'Present\x20this\x20document'}),_0x878fb2[_0x2f045f(0x22f)](_0x3d1390['Button'],{'onClick':()=>_0x15cf0b[_0x2f045f(0x1bc)](),'children':_0x2f045f(0x16a)})]});}function _0x1249f6(_0x4843f2){var _0x32c76d=_0x5c8a51;const {coordinator:_0x436bb0}=_0x4843f2;return _0x878fb2['jsxs'](_0x878fb2[_0x32c76d(0x1b6)],{'children':[_0x878fb2[_0x32c76d(0x22f)](_0x32c76d(0x1a6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x32c76d(0x187)}),_0x878fb2['jsx'](_0x3d1390['Button'],{'onClick':()=>_0x436bb0[_0x32c76d(0x1ea)](),'children':'Stop\x20following'})]});}function _0x22240f(_0x45bcf2){var _0x533090=_0x5c8a51;const {coordinator:_0x5c1954}=_0x45bcf2;return _0x878fb2[_0x533090(0x19c)](_0x878fb2[_0x533090(0x1b6)],{'children':[_0x878fb2[_0x533090(0x22f)](_0x533090(0x1a6),{'className':_0x533090(0x194),'children':_0x533090(0x1c6)}),_0x878fb2[_0x533090(0x22f)](_0x3d1390['Button'],{'variant':_0x533090(0x22d),'onClick':()=>_0x5c1954['startFollowing'](),'children':_0x533090(0x1e8)})]});}function _0x4ab776(_0x2f77aa){var _0xe2d90b=_0x5c8a51;const {coordinator:_0x426ddc}=_0x2f77aa;return _0x878fb2[_0xe2d90b(0x19c)](_0x878fb2['Fragment'],{'children':[_0x878fb2[_0xe2d90b(0x22f)](_0xe2d90b(0x1a6),{'className':_0xe2d90b(0x194),'children':_0xe2d90b(0x1b1)}),_0x878fb2[_0xe2d90b(0x22f)](_0x3d1390['Button'],{'variant':'default','onClick':()=>_0x426ddc[_0xe2d90b(0x214)](),'children':_0xe2d90b(0x160)})]});}function _0x5fdd66(){var _0x5aa466=_0x5c8a51;return _0x878fb2['jsx'](_0x878fb2[_0x5aa466(0x1b6)],{'children':_0x5aa466(0x240)});}var _0x1a7f2f=Object[_0x5c8a51(0x1f8)],_0x49ce25=(_0x4a5297,_0x935b9d,_0x11046b,_0x18c52f)=>{var _0x56334f=_0x5c8a51;for(var _0x4d7b42=_0x18c52f>0x1?void 0x0:_0x18c52f?_0x1a7f2f(_0x935b9d,_0x11046b):_0x935b9d,_0x361e74=_0x4a5297[_0x56334f(0x1bf)]-0x1,_0x43a5ef;_0x361e74>=0x0;_0x361e74--)(_0x43a5ef=_0x4a5297[_0x361e74])&&(_0x4d7b42=_0x43a5ef(_0x4d7b42)||_0x4d7b42);return _0x4d7b42;},_0x561ac3=(_0x28bd8c,_0x3a7db8)=>(_0xfd4db7,_0x717a53)=>_0x3a7db8(_0xfd4db7,_0x717a53,_0x28bd8c);_0x12dabc[_0x5c8a51(0x1b0)]=class extends _0x3a9025[_0x5c8a51(0x17a)]{constructor(_0x1f0b87,_0x18c8b1){var _0x5ab35e=_0x5c8a51;super(),this['_injector']=_0x1f0b87,this[_0x5ab35e(0x15b)]=_0x18c8b1,this['_mountLiveShare']();}[_0x5c8a51(0x162)](){var _0x405b10=_0x5c8a51;this[_0x405b10(0x179)](this[_0x405b10(0x15b)]['registerComponent'](_0x5436a1[_0x405b10(0x23c)][_0x405b10(0x1e3)],()=>_0x5436a1[_0x405b10(0x1f2)](_0x9644ef,this[_0x405b10(0x16e)])));}},_0x12dabc[_0x5c8a51(0x1b0)]=_0x49ce25([_0x561ac3(0x0,_0x3a9025['Inject'](_0x3a9025[_0x5c8a51(0x201)])),_0x561ac3(0x1,_0x5436a1[_0x5c8a51(0x1da)])],_0x12dabc[_0x5c8a51(0x1b0)]);var _0x2f905d=Object[_0x5c8a51(0x14d)],_0x56e38e=Object[_0x5c8a51(0x1f8)],_0x22d436=(_0x53d915,_0xcda42d,_0x1ee07c)=>_0xcda42d in _0x53d915?_0x2f905d(_0x53d915,_0xcda42d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ee07c}):_0x53d915[_0xcda42d]=_0x1ee07c,_0x20136c=(_0x4b1273,_0x55376e,_0x2e7fb7,_0x4e6b8b)=>{var _0x3f3943=_0x5c8a51;for(var _0x153cab=_0x4e6b8b>0x1?void 0x0:_0x4e6b8b?_0x56e38e(_0x55376e,_0x2e7fb7):_0x55376e,_0x32f881=_0x4b1273[_0x3f3943(0x1bf)]-0x1,_0x4c9a2a;_0x32f881>=0x0;_0x32f881--)(_0x4c9a2a=_0x4b1273[_0x32f881])&&(_0x153cab=_0x4c9a2a(_0x153cab)||_0x153cab);return _0x153cab;},_0x497cb3=(_0x17dedd,_0x46edf3)=>(_0x2c251d,_0x2668f4)=>_0x46edf3(_0x2c251d,_0x2668f4,_0x17dedd),_0xff52=(_0x177694,_0x5d3877,_0x3375e4)=>_0x22d436(_0x177694,typeof _0x5d3877!=_0x5c8a51(0x1c2)?_0x5d3877+'':_0x5d3877,_0x3375e4);const _0x25fdd0='UNIVER_LIVE_SHARE_PLUGIN';_0x12dabc[_0x5c8a51(0x231)]=class extends _0x3a9025[_0x5c8a51(0x1d9)]{constructor(_0x426dd7=_0x215b3f,_0x4dd274,_0x38623d){var _0x9c97bc=_0x5c8a51;super(),this[_0x9c97bc(0x215)]=_0x426dd7,this['_injector']=_0x4dd274,this[_0x9c97bc(0x166)]=_0x38623d;const {..._0x22fcba}=_0x3a9025[_0x9c97bc(0x163)]({},_0x215b3f,this[_0x9c97bc(0x215)]);this[_0x9c97bc(0x166)]['setConfig'](_0x524f5f,_0x22fcba);}['onStarting'](){var _0x2e4564=_0x5c8a51;_0x3a9025[_0x2e4564(0x177)](this['_injector'],_0x3a9025['mergeOverrideWithDependencies']([[_0x210719],[_0x12dabc[_0x2e4564(0x1cd)]],[_0x437956],[_0x12dabc['DesktopLiveShareController']]],this[_0x2e4564(0x215)]['override'])),_0x3a9025[_0x2e4564(0x1e2)](this[_0x2e4564(0x16e)],[[_0x437956]]);}[_0x5c8a51(0x1e7)](){var _0x24ea93=_0x5c8a51;_0x3a9025[_0x24ea93(0x1e2)](this[_0x24ea93(0x16e)],[[_0x12dabc[_0x24ea93(0x1b0)]]]);}},_0xff52(_0x12dabc['UniverLiveSharePlugin'],'type',_0x3a9025['UniverInstanceType'][_0x5c8a51(0x1b9)]),_0xff52(_0x12dabc[_0x5c8a51(0x231)],_0x5c8a51(0x17e),_0x25fdd0),_0x12dabc['UniverLiveSharePlugin']=_0x20136c([_0x3a9025[_0x5c8a51(0x169)](_0x5747cc[_0x5c8a51(0x1ac)]),_0x497cb3(0x1,_0x3a9025[_0x5c8a51(0x154)](_0x3a9025['Injector'])),_0x497cb3(0x2,_0x3a9025[_0x5c8a51(0x239)])],_0x12dabc['UniverLiveSharePlugin']),_0x12dabc['LiveShare']=_0x9644ef,_0x12dabc[_0x5c8a51(0x14f)]=_0x210719,_0x12dabc[_0x5c8a51(0x19b)]=_0x2eb10d,Object[_0x5c8a51(0x14d)](_0x12dabc,Symbol[_0x5c8a51(0x1e0)],{'value':_0x5c8a51(0x221)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.3
|
|
3
|
+
"version": "0.8.3",
|
|
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.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.3
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/design": "0.8.3
|
|
54
|
-
"@univerjs/sheets": "0.8.3
|
|
55
|
-
"@univerjs/ui": "0.8.3
|
|
56
|
-
"@univerjs/sheets-ui": "0.8.3
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.3",
|
|
51
|
+
"@univerjs/core": "0.8.3",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.8.3",
|
|
53
|
+
"@univerjs/design": "0.8.3",
|
|
54
|
+
"@univerjs/sheets": "0.8.3",
|
|
55
|
+
"@univerjs/ui": "0.8.3",
|
|
56
|
+
"@univerjs/sheets-ui": "0.8.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|