@univerjs-pro/collaboration-client-ui 0.15.2 → 0.15.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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xde5e7f=_0x3cd0;(function(_0x46a4b3,_0xc7d42d){const _0xda7a31=_0x3cd0,_0x192385=_0x46a4b3();while(!![]){try{const _0x6ef97d=-parseInt(_0xda7a31(0x318))/0x1+-parseInt(_0xda7a31(0x27f))/0x2*(parseInt(_0xda7a31(0x246))/0x3)+-parseInt(_0xda7a31(0x2d6))/0x4*(parseInt(_0xda7a31(0x2f1))/0x5)+-parseInt(_0xda7a31(0x2fd))/0x6+-parseInt(_0xda7a31(0x173))/0x7+parseInt(_0xda7a31(0x2e0))/0x8*(-parseInt(_0xda7a31(0x1d3))/0x9)+parseInt(_0xda7a31(0x1d5))/0xa*(parseInt(_0xda7a31(0xb1))/0xb);if(_0x6ef97d===_0xc7d42d)break;else _0x192385['push'](_0x192385['shift']());}catch(_0x5c310a){_0x192385['push'](_0x192385['shift']());}}}(_0x1c85,0xa5f29));var Xe=Object[_0xde5e7f(0x2d3)],Ke=(_0x510171,_0x56b7b0,_0x465d03)=>_0x56b7b0 in _0x510171?Xe(_0x510171,_0x56b7b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x465d03}):_0x510171[_0x56b7b0]=_0x465d03,_=(_0x11c988,_0x59c9b1,_0x37b96d)=>Ke(_0x11c988,typeof _0x59c9b1!='symbol'?_0x59c9b1+'':_0x59c9b1,_0x37b96d);Object['defineProperty'](exports,Symbol[_0xde5e7f(0x164)],{'value':_0xde5e7f(0x302)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x78f10f,..._0x513925}){const _0x59e3a3=_0xde5e7f,{icon:_0x26a722,id:_0xee6e23,className:_0xd0919a,extend:_0x5e8c48,..._0x44e7f0}=_0x513925,_0x23fae9=(_0x59e3a3(0x28f)+_0xee6e23+'\x20'+(_0xd0919a||''))[_0x59e3a3(0x33d)](),_0x4f4666=A[_0x59e3a3(0x21e)]('_'+Qe());return $e(_0x26a722,''+_0xee6e23,{'defIds':_0x26a722[_0x59e3a3(0x312)],'idSuffix':_0x4f4666[_0x59e3a3(0x2c2)]},{'ref':_0x78f10f,'className':_0x23fae9,..._0x44e7f0},_0x5e8c48);}function $e(_0x274192,_0x511131,_0x2f7c90,_0x123e74,_0xd96527){const _0x359030=_0xde5e7f;return A[_0x359030(0x105)](_0x274192[_0x359030(0xc6)],{'key':_0x511131,...Je(_0x274192,_0x2f7c90,_0xd96527),..._0x123e74},(Ze(_0x274192,_0x2f7c90)['children']||[])['map']((_0x2bbf3e,_0x52b1cf)=>$e(_0x2bbf3e,_0x511131+'-'+_0x274192['tag']+'-'+_0x52b1cf,_0x2f7c90,void 0x0,_0xd96527)));}function Je(_0xb69439,_0x2719e1,_0x1a5f2e){const _0x20d614=_0xde5e7f,_0x322336={..._0xb69439[_0x20d614(0x204)]};_0x1a5f2e!=null&&_0x1a5f2e[_0x20d614(0x144)]&&_0x322336[_0x20d614(0x121)]===_0x20d614(0x144)&&(_0x322336[_0x20d614(0x121)]=_0x1a5f2e[_0x20d614(0x144)]),_0xb69439[_0x20d614(0xc6)]==='mask'&&_0x322336['id']&&(_0x322336['id']=_0x322336['id']+_0x2719e1[_0x20d614(0x2ed)]),Object[_0x20d614(0xff)](_0x322336)[_0x20d614(0x1a7)](([_0x5cb3fe,_0x7c1b99])=>{const _0x55ab8b=_0x20d614;_0x5cb3fe===_0x55ab8b(0x22f)&&typeof _0x7c1b99=='string'&&(_0x322336[_0x5cb3fe]=_0x7c1b99['replace'](/url\(#(.*)\)/,_0x55ab8b(0xe2)+_0x2719e1[_0x55ab8b(0x2ed)]+')'));});const {defIds:_0x9e4acd}=_0x2719e1;return!_0x9e4acd||_0x9e4acd[_0x20d614(0x1ef)]===0x0||(_0xb69439['tag']===_0x20d614(0x1ca)&&_0x322336[_0x20d614(0x20a)]&&(_0x322336[_0x20d614(0x20a)]=_0x322336[_0x20d614(0x20a)]+_0x2719e1[_0x20d614(0x2ed)]),Object[_0x20d614(0xff)](_0x322336)[_0x20d614(0x1a7)](([_0x592333,_0x9ff5c6])=>{const _0x193a3a=_0x20d614;typeof _0x9ff5c6==_0x193a3a(0x29c)&&(_0x322336[_0x592333]=_0x9ff5c6[_0x193a3a(0x31a)](/url\(#(.*)\)/,_0x193a3a(0xe2)+_0x2719e1[_0x193a3a(0x2ed)]+')'));})),_0x322336;}function Ze(_0x5af6bc,_0x3f4fa6){const _0x561637=_0xde5e7f;var _0x58a307;const {defIds:_0x518fde}=_0x3f4fa6;return!_0x518fde||_0x518fde[_0x561637(0x1ef)]===0x0?_0x5af6bc:_0x5af6bc[_0x561637(0xc6)]===_0x561637(0x18a)&&((_0x58a307=_0x5af6bc['children'])!=null&&_0x58a307[_0x561637(0x1ef)])?{..._0x5af6bc,'children':_0x5af6bc[_0x561637(0x195)][_0x561637(0x2b8)](_0x21f72e=>typeof _0x21f72e[_0x561637(0x204)]['id']==_0x561637(0x29c)&&_0x518fde&&_0x518fde[_0x561637(0x342)](_0x21f72e[_0x561637(0x204)]['id'])?{..._0x21f72e,'attrs':{..._0x21f72e[_0x561637(0x204)],'id':_0x21f72e['attrs']['id']+_0x3f4fa6[_0x561637(0x2ed)]}}:_0x21f72e)}:_0x5af6bc;}function Qe(){const _0x5bbaed=_0xde5e7f;return Math['random']()[_0x5bbaed(0x13b)](0x24)['substring'](0x2,0x8);}pe['displayName']='UniverIcon';const et={'tag':_0xde5e7f(0xc3),'attrs':{'xmlns':_0xde5e7f(0x243),'fill':_0xde5e7f(0x2a2),'viewBox':_0xde5e7f(0x170),'width':_0xde5e7f(0x274),'height':_0xde5e7f(0x274)},'children':[{'tag':'g','attrs':{'clipPath':_0xde5e7f(0x19c)},'children':[{'tag':_0xde5e7f(0x2ad),'attrs':{'stroke':'currentColor','d':_0xde5e7f(0x1a4),'strokeLinecap':_0xde5e7f(0x306),'strokeLinejoin':_0xde5e7f(0x306),'strokeWidth':1.2}}]},{'tag':_0xde5e7f(0x18a),'attrs':{},'children':[{'tag':_0xde5e7f(0x253),'attrs':{'id':_0xde5e7f(0x82)},'children':[{'tag':'path','attrs':{'fill':_0xde5e7f(0xc9),'d':_0xde5e7f(0x2c9)}}]}]}],'defIds':[_0xde5e7f(0x82)]},xe=A[_0xde5e7f(0xa1)](function(_0xd3b22a,_0x15250c){const _0x14ab05=_0xde5e7f;return A[_0x14ab05(0x105)](pe,Object[_0x14ab05(0x2a6)]({},_0xd3b22a,{'id':'off-line-icon','ref':_0x15250c,'icon':et}));});xe[_0xde5e7f(0x2e4)]='OffLineIcon';const tt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xde5e7f(0x2a2),'viewBox':'0\x200\x2017\x2016','width':_0xde5e7f(0x274),'height':_0xde5e7f(0x274)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xde5e7f(0x2ad),'attrs':{'stroke':_0xde5e7f(0x276),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0xde5e7f(0x306),'strokeWidth':1.2}}]},{'tag':_0xde5e7f(0x18a),'attrs':{},'children':[{'tag':_0xde5e7f(0x253),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0xde5e7f(0xc9),'d':_0xde5e7f(0x2c9),'transform':_0xde5e7f(0x123)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0xde5e7f(0xa1)](function(_0x3d7fa4,_0x4770f6){const _0x54d454=_0xde5e7f;return A[_0x54d454(0x105)](pe,Object['assign']({},_0x3d7fa4,{'id':_0x54d454(0x1ff),'ref':_0x4770f6,'icon':tt}));});Be[_0xde5e7f(0x2e4)]='OnLineIcon';function st(_0x3177f2){const _0x790154=_0xde5e7f;switch(_0x3177f2){case u[_0x790154(0x7d)][_0x790154(0x1ea)]:return _0x790154(0xb0);case u[_0x790154(0x7d)][_0x790154(0xae)]:return _0x790154(0x31b);case u[_0x790154(0x7d)][_0x790154(0x185)]:return'collabStatus.fetchMiss';case u[_0x790154(0x7d)][_0x790154(0xcc)]:return _0x790154(0x25b);case u['CollaborationStatus']['AWAITING']:case u[_0x790154(0x7d)][_0x790154(0x98)]:return'collabStatus.syncing';case u[_0x790154(0x7d)][_0x790154(0xa5)]:case u[_0x790154(0x7d)][_0x790154(0xf6)]:return _0x790154(0x1bf);}}function it(_0xad0c5a){const _0x3568ee=_0xde5e7f,{status$:_0x2a0e08}=_0xad0c5a,_0x4340e7=O[_0x3568ee(0x18d)](_0x2a0e08,u[_0x3568ee(0x7d)][_0x3568ee(0xcc)]),_0x2faaa7=O[_0x3568ee(0x11e)](a[_0x3568ee(0x1b5)]),_0x385ee5=O[_0x3568ee(0x11e)](u[_0x3568ee(0x2da)]),_0x124aa5=_0x4340e7!==u[_0x3568ee(0x7d)][_0x3568ee(0x1ea)],_0x20b224=_0x2faaa7['t'](st(_0x4340e7)),_0x145bdc=_0x124aa5?M[_0x3568ee(0x2be)](Be,{}):M[_0x3568ee(0x2be)](xe,{}),_0x403d90=A['useCallback'](()=>{_0x124aa5||_0x385ee5['reconnect']();},[_0x124aa5,_0x385ee5]);function _0x4d2e58(){const _0x2d44e4=_0x3568ee;return M[_0x2d44e4(0x290)](_0x2d44e4(0x1c8),{'className':_0x2d44e4(0x115),'onClick':_0x403d90,'children':[M[_0x2d44e4(0x2be)]('div',{'className':p['clsx'](_0x2d44e4(0x1f4),{'univer-text-green-500':_0x124aa5,'univer-text-red-500':!_0x124aa5}),'children':_0x145bdc}),M[_0x2d44e4(0x2be)](_0x2d44e4(0x1c8),{'className':_0x2d44e4(0x279),'children':_0x20b224})]});}return _0x124aa5?_0x4d2e58():M['jsx'](p['Tooltip'],{'title':_0x2faaa7['t'](_0x3568ee(0x132)),'children':_0x4d2e58()});}var nt=Object[_0xde5e7f(0x100)],rt=(_0x3c0673,_0x25dbfc,_0x4e4232,_0x42fbfa)=>{const _0x3fac0f=_0xde5e7f;for(var _0x1f8118=_0x42fbfa>0x1?void 0x0:_0x42fbfa?nt(_0x25dbfc,_0x4e4232):_0x25dbfc,_0x19dedb=_0x3c0673[_0x3fac0f(0x1ef)]-0x1,_0x3f9b5e;_0x19dedb>=0x0;_0x19dedb--)(_0x3f9b5e=_0x3c0673[_0x19dedb])&&(_0x1f8118=_0x3f9b5e(_0x1f8118)||_0x1f8118);return _0x1f8118;},K=(_0x1a3299,_0x5d975a)=>(_0x5bdfde,_0x324102)=>_0x5d975a(_0x5bdfde,_0x324102,_0x1a3299);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0xde5e7f(0x109)]{constructor(_0x5dddab,_0x5b6629,_0x15dd57,_0x549214){const _0xa8e077=_0xde5e7f;super(),_(this,_0xa8e077(0x304),new I[(_0xa8e077(0x1b3))](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0xa8e077(0x1e1)]=_0x5dddab,this['_injector']=_0x5b6629,this[_0xa8e077(0xb4)]=_0x15dd57,this[_0xa8e077(0xb8)]=_0x549214,this[_0xa8e077(0x2c8)](),this[_0xa8e077(0x1b1)]());}['_initStatusListener'](){const _0x54b2ab=_0xde5e7f;this[_0x54b2ab(0x19e)](this[_0x54b2ab(0x1e1)][_0x54b2ab(0x13d)][_0x54b2ab(0x27a)](I[_0x54b2ab(0x2aa)](()=>{const _0x26c67f=_0x54b2ab,_0x2767e7=this['_univerInstanceService'][_0x26c67f(0x15b)]();return _0x2767e7?this[_0x26c67f(0xb4)][_0x26c67f(0x1fb)](_0x2767e7[_0x26c67f(0x317)]()):I['of'](null);}),I[_0x54b2ab(0x2aa)](_0x5d2c2f=>_0x5d2c2f?_0x5d2c2f[_0x54b2ab(0x230)]:I['of'](u[_0x54b2ab(0x7d)][_0x54b2ab(0xcc)])))[_0x54b2ab(0x272)](_0x31c70b=>{const _0x42ab90=_0x54b2ab;this[_0x42ab90(0x304)][_0x42ab90(0x271)](_0x31c70b);}));}[_0xde5e7f(0x2c8)](){const _0xe23af4=_0xde5e7f;this[_0xe23af4(0x19e)](this[_0xe23af4(0xb8)][_0xe23af4(0x32a)](O[_0xe23af4(0x180)]['HEADER_MENU'],()=>O[_0xe23af4(0x298)](ot({'status$':this[_0xe23af4(0x304)][_0xe23af4(0xa3)]()}),this[_0xe23af4(0x2eb)])));}},exports[_0xde5e7f(0x28c)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0xde5e7f(0x300)](a['Injector'])),K(0x2,a[_0xde5e7f(0x300)](u[_0xde5e7f(0xcd)])),K(0x3,O[_0xde5e7f(0x33b)])],exports[_0xde5e7f(0x28c)]);function ot(_0x85b0c8){const {status$:_0x2e1103}=_0x85b0c8;return function(){const _0x3af479=_0x3cd0;return M[_0x3af479(0x2be)](it,{'status$':_0x2e1103});};}const Oe=a[_0xde5e7f(0x17d)](_0xde5e7f(0x328));var at=Object['getOwnPropertyDescriptor'],ct=(_0x268285,_0x549b6c,_0x2dc253,_0x48e343)=>{const _0x1c5c9b=_0xde5e7f;for(var _0x14497c=_0x48e343>0x1?void 0x0:_0x48e343?at(_0x549b6c,_0x2dc253):_0x549b6c,_0x4a5635=_0x268285[_0x1c5c9b(0x1ef)]-0x1,_0x518513;_0x4a5635>=0x0;_0x4a5635--)(_0x518513=_0x268285[_0x4a5635])&&(_0x14497c=_0x518513(_0x14497c)||_0x14497c);return _0x14497c;},Y=(_0x33c02c,_0x7a959d)=>(_0x2d0bd0,_0x1c4dfe)=>_0x7a959d(_0x2d0bd0,_0x1c4dfe,_0x33c02c);exports[_0xde5e7f(0x313)]=class extends a['RxDisposable']{constructor(_0x17f044,_0x382255,_0x7fc99,_0x5a1caa,_0x499ffa){const _0x16cc30=_0xde5e7f;super(),this[_0x16cc30(0x345)]=_0x17f044,this[_0x16cc30(0x1cf)]=_0x382255,this[_0x16cc30(0x220)]=_0x7fc99,this[_0x16cc30(0x89)]=_0x5a1caa,_0x499ffa?_0x499ffa==null||_0x499ffa[_0x16cc30(0x159)]()['then'](()=>this[_0x16cc30(0x8c)]()):(this[_0x16cc30(0x1cf)]['debug'](_0x16cc30(0x295),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x16cc30(0x8c)]());}async['_init'](){const _0x6649c6=_0xde5e7f,_0x4244df=this[_0x6649c6(0x345)][_0x6649c6(0x168)]('unit'),_0x438764=this[_0x6649c6(0x345)][_0x6649c6(0x168)](_0x6649c6(0x1ab)),_0x16584d=this['_urlService']['getParam'](_0x6649c6(0x2af));if(!_0x4244df||!_0x438764){this['_logService']['debug'](_0x6649c6(0x295),_0x6649c6(0x8e));return;}const _0x6c4852=await this[_0x6649c6(0x89)][_0x6649c6(0x2ba)](_0x4244df,Number(_0x438764),_0x16584d);_0x6c4852&&_0x6c4852 instanceof a[_0x6649c6(0x1b8)]&&this['_setupSubUnitSync'](_0x6c4852);}async[_0xde5e7f(0x347)](_0x2f1270){const _0x561ad2=_0xde5e7f;await this[_0x561ad2(0x1af)](_0x2f1270),_0x2f1270[_0x561ad2(0xd8)][_0x561ad2(0x27a)](I[_0x561ad2(0x2c7)](this[_0x561ad2(0x307)]))[_0x561ad2(0x272)](_0x2e6814=>{const _0x1b13ae=_0x561ad2;_0x2e6814&&this[_0x1b13ae(0x155)](_0x2e6814);}),this[_0x561ad2(0x345)][_0x561ad2(0x224)][_0x561ad2(0x27a)](I['takeUntil'](this[_0x561ad2(0x307)]))[_0x561ad2(0x272)](()=>this[_0x561ad2(0x1af)](_0x2f1270));}[_0xde5e7f(0x155)](_0x1c3108,_0x36511b=!0x1){const _0xb70757=_0xde5e7f,_0x4a12c6=this[_0xb70757(0x345)]['getParam']('subunit');_0x1c3108[_0xb70757(0x2f5)]()!==_0x4a12c6&&this[_0xb70757(0x345)]['setParam'](_0xb70757(0x2af),_0x1c3108['getSheetId'](),_0x36511b);}async[_0xde5e7f(0x1af)](_0x2b7614){const _0x37b8c8=_0xde5e7f;var _0x576e54;const _0x1beba1=this[_0x37b8c8(0x345)][_0x37b8c8(0x168)](_0x37b8c8(0x2af));if(!_0x1beba1||!_0x2b7614['getSheetBySheetId'](_0x1beba1)){const _0x18c180=_0x2b7614[_0x37b8c8(0x128)]()[0x0],_0x181777=_0x2b7614['getSheetBySheetId'](_0x18c180);if(!_0x181777)return;this[_0x37b8c8(0x155)](_0x181777,!0x0),await this['_commandService'][_0x37b8c8(0x1cc)](v[_0x37b8c8(0xe5)]['id'],{'unitId':_0x2b7614[_0x37b8c8(0x317)](),'subUnitId':_0x18c180});return;}((_0x576e54=_0x2b7614[_0x37b8c8(0x2ca)]())==null?void 0x0:_0x576e54[_0x37b8c8(0x2f5)]())!==_0x1beba1&&await this[_0x37b8c8(0x220)][_0x37b8c8(0x1cc)](v[_0x37b8c8(0xe5)]['id'],{'unitId':_0x2b7614[_0x37b8c8(0x317)](),'subUnitId':_0x1beba1});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0xde5e7f(0x32c)]),Y(0x3,a[_0xde5e7f(0x300)](u['DataLoaderService'])),Y(0x4,a[_0xde5e7f(0x287)](qe['IRemoteInstanceService']))],exports[_0xde5e7f(0x313)]);var lt=Object[_0xde5e7f(0x100)],_t=(_0x208641,_0x4795b5,_0xc1800d,_0x1d6911)=>{const _0x400772=_0xde5e7f;for(var _0x3d69a6=_0x1d6911>0x1?void 0x0:_0x1d6911?lt(_0x4795b5,_0xc1800d):_0x4795b5,_0x4cfc56=_0x208641[_0x400772(0x1ef)]-0x1,_0x577b84;_0x4cfc56>=0x0;_0x4cfc56--)(_0x577b84=_0x208641[_0x4cfc56])&&(_0x3d69a6=_0x577b84(_0x3d69a6)||_0x3d69a6);return _0x3d69a6;},De=(_0x581562,_0x22b4ec)=>(_0x54c22d,_0x327ca3)=>_0x22b4ec(_0x54c22d,_0x327ca3,_0x581562);let me=class extends a[_0xde5e7f(0x286)]{constructor(_0x15449f,_0x5b9e83){const _0x5bf165=_0xde5e7f;super(),this[_0x5bf165(0x17e)]=_0x15449f,this[_0x5bf165(0x235)]=_0x5b9e83,this['_init']();}[_0xde5e7f(0x8c)](){const _0x512619=_0xde5e7f,_0x2d2bc4=this;this['disposeWithMe'](this[_0x512619(0x17e)]['addClipboardHook']({'onBeforePasteImage':async _0x2aa39a=>{const _0x50bb3c=_0x512619,_0x397215=await _0x2d2bc4[_0x50bb3c(0x235)][_0x50bb3c(0x189)](_0x2aa39a);return _0x397215?{'source':_0x397215[_0x50bb3c(0x242)],'imageSourceType':_0x397215[_0x50bb3c(0x2f3)]}:null;}}));}};me=_t([De(0x0,T[_0xde5e7f(0x120)]),De(0x1,ze[_0xde5e7f(0x268)])],me);const Ne=[_0xde5e7f(0x2fe),_0xde5e7f(0x28b),_0xde5e7f(0x1db),_0xde5e7f(0x1ad),'blue.400',_0xde5e7f(0x2db)];class Re extends a[_0xde5e7f(0x109)]{constructor(){const _0x242112=_0xde5e7f;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x242112(0x85),0x0);}['assignAColorForMemberID'](_0x2a821a){const _0x1cb99e=_0xde5e7f;if(this['_assignedColors']['has'](_0x2a821a))return this[_0x1cb99e(0x28e)][_0x1cb99e(0x247)](_0x2a821a);const _0x48a501=Ne[this[_0x1cb99e(0x85)]];return this[_0x1cb99e(0x85)]=(this[_0x1cb99e(0x85)]+0x1)%Ne[_0x1cb99e(0x1ef)],this[_0x1cb99e(0x28e)][_0x1cb99e(0x258)](_0x2a821a,_0x48a501),_0x48a501;}}function Fe(_0x2e7d98){let _0x44fa52='';for(const _0x2e0b3d of _0x2e7d98){const {startOffset:_0x6726fd,endOffset:_0x3e779e,isActive:_0xfe95c8,rangeType:_0x6858da,segmentId:_0x32e960,segmentPage:_0x54d82d}=_0x2e0b3d;_0x44fa52['length']&&(_0x44fa52+=','),_0x44fa52+=_0x6726fd+':'+_0x3e779e+':'+(_0xfe95c8?'1':'0')+':'+_0x6858da+':'+_0x32e960+':'+_0x54d82d;}return _0x44fa52;}function ht(_0x12b1b8){const _0x5ab54a=_0xde5e7f,_0x4e9ab6=_0x12b1b8[_0x5ab54a(0x146)](','),_0x774842=[];for(const _0x3102a7 of _0x4e9ab6){const [_0x56ca22,_0x257a83,_0x5c6529,_0xc160d8,_0x114323,_0x228d55]=_0x3102a7[_0x5ab54a(0x146)](':');_0x774842[_0x5ab54a(0x32f)]({'startOffset':Number(_0x56ca22),'endOffset':Number(_0x257a83),'collapsed':_0x56ca22===_0x257a83,'isActive':_0x5c6529==='1','rangeType':_0xc160d8===a['DOC_RANGE_TYPE'][_0x5ab54a(0x1bd)]?a['DOC_RANGE_TYPE'][_0x5ab54a(0x1bd)]:a['DOC_RANGE_TYPE'][_0x5ab54a(0x228)],'segmentId':typeof _0x114323==_0x5ab54a(0x29c)?String(_0x114323):'','segmentPage':Number(_0x228d55!=null?_0x228d55:-0x1)});}return _0x774842['some'](_0x232f6d=>_0x232f6d[_0x5ab54a(0xb9)])||(_0x774842[0x0][_0x5ab54a(0xb9)]=!0x0),_0x774842;}class be extends a['RxDisposable']{constructor(){const _0x4ef46a=_0xde5e7f;super(...arguments),_(this,_0x4ef46a(0x1e5),new I[(_0x4ef46a(0x1b3))](null)),_(this,_0x4ef46a(0x2e8),this[_0x4ef46a(0x1e5)][_0x4ef46a(0xa3)]());}[_0xde5e7f(0x241)](_0x19a5d0){const _0x223515=_0xde5e7f,{unitID:_0x25b529,memberID:_0x4b0d17,textRanges:_0x53a1c7}=_0x19a5d0,_0x3a68fe=Fe(_0x53a1c7);if(_0x3a68fe==='')return;const _0x467f55={'unitID':_0x25b529,'memberID':_0x4b0d17,'selection':_0x3a68fe};this[_0x223515(0x1e5)][_0x223515(0x271)](_0x467f55);}}function _0x1c85(){const _0x1b72cc=['Warning','startColumn','evenodd','RECT','black','DocIMEInputManagerService','delete','_startCalculationLimit','_docTransformIMECacheService','ILocalStorageService','mask','status$','Tools','_eventUnsubscribe','_config','init','_imageIoService','_anchor','_selfUnitIDs','error','AUTHORIZE_CODE_ILLEGAL','REDEMPTION_USER_REDEEM_TIMES_EXCEED','hovered','Loading','_shapes','#FFF','YUUMI_UNABLE_LOAD_URL','RegularPolygon','syncEditingCollabCursor','source','http://www.w3.org/2000/svg','undoState','UNDEFINED','453909KkfmUn','get','_getSheetObject','ITransformService','_getAnchorBounding','_drawRectRange','getSheetObject','name','UNIVER_SHEET','SUBMIT_CHANGESET_TIMEOUT','mutations','getCollabCursors$','_collaborationSessionService','clipPath','onTransformChange$','/universer-api/license/formula/limit/start','PY_RUNTIME_SCRIPT_ERROR','_handleHeartbeatEvent','set','key','ILocalCacheService','collabStatus.notCollab','_showGuardMessage','Subject','_range','SetTextSelectionsOperation','from','contains','setConfig','DeleteRangeMoveLeftCommandId','MessageType','isTransformMutationFailure','replaceState','REDEMPTION_USER_NOT_ELIGIBLE','IImageIoService','onPointerMove$','setStateCache','FormulaExecuteStageType','IBeforeCloseService','ENSURE_SNAPSHOT_EXECUTION','_initDependencies','searchParams','DocSkeletonManagerService','next','subscribe','filter','1em','getRangePointData','currentColor','unshift','_localStorageService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','pipe','onPointerEnter$','RichTextEditingMutation','ENTITLE_CAN_NOT_BUY_LOWER_OTP','onPointerLeave$','2bUFbqm','handleDeleteRangeMoveUp','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','ENTITLE_NEED_BILLING_ADDRESS','find','_initCommandExecutedListener','origin','RxDisposable','Optional','ALREADY_EXISTS','FormulaExecutedStateType','INVITE_CODE_REQUIRED','jiqing.500','DesktopCollaborationStatusDisplayController','InsertRangeMoveRightCommandId','_assignedColors','univerjs-icon\x20univerjs-icon-','jsxs','YUUMI_RATE_OVER_LIMIT','pushState','width','Rectangle','[CollaborationDataLoaderController]','setParam','measureText','connectInjector','save','setInterval','dispose','string','_transformPreviousActiveRange','_setFormulaLimitStatus','_docTransformSelectionsService','CollaborationUIEventId','_collabCursorController','none','text','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','startsWith','assign','_docTransformStateCacheService','_refreshCollabCursors','transformMutation','switchMap','sheetId','Shape','path','UNRECOGNIZED','subunit','YUUMI_NO_CUBOID_FOR_QUESTION','totalFormulasToCalculate','SessionStatus','_id','MOBILE_HAS_BEEN_BOUND','arc','lineTo','_memberID','map','complete','loadUnit','actions','dirtyRanges','column','jsx','getOffsetConfig','_colorAssignService','Vector2','current','getLocalCacheKey','catch','_getFormulaLimitStatus','ColorKit','takeUntil','_initStatusComponent','M0\x200H16V16H0z','getActiveSheet','_initResize','MoveRangeCommandId','_revisionService','getSkeleton','runId','collab-rect-range-','bottom','onMouseMove','defineProperty','moveTo','_lastResponseTimestamp','174368XsdCry','ERROR_AGAIN','handleDeleteRangeMoveLeft','EMAIL_HAS_BEEN_BOUND','CollaborationSessionService','yellow.400','ENTITLE_CHAT_LIMIT_EXCEED','DocStateChangeManagerService','_hasFormulaInDirtyRanges','event$','5162048vBGOJJ','_getScale','SOCKET_FAILED_RETRY','IUniverInstanceService','displayName','INVALID_ARGUMENT','SNAPSHOT_INVALID_SNAPSHOT','UNIVER_DOC','collabCursorState$','BrowserCollaborationSocketService','getCellPositionByOffset','_injector','...','idSuffix','_color','cursorInfo$','ENTITLE_DUP_SUBSCRIPTION','110rZGZuc','_transformService','imageSourceType','ILogService','getSheetId','_initEvent','createInstance','collab-text-anchor-','_taskIds','_currentUsage','_handleEvent','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','7643988iongDE','purple.300','doc.mutation.rich-text-editing','Inject','onLocalMutation','Module','_renderManagerService','_status$','debounceTime','round','dispose$','range','OTHER_CLIENTS_EDITING','_lastPointer','IMessageService','MemberService','_cachedData','SetFormulaCalculationStartMutation','YUUMI_ALL_TABLES_IS_INVALID','CONNECTOR_DATA_TOO_LARGE','LOGIN_FAILED','defIds','CollaborationDataLoaderController','getCurrentSelections','invokeId','_initUnhandledRejectionListener','getUnitId','554429iktrbB','_session','replace','collabStatus.conflict','_saveCache','_checkAndWaitForCalculationPermission','getUnitStatus$','_releaseCalculationLimit','_pollingInterval','COLORS','getStateCache','_scene','parse','with','CollaborationEvent','selection','uni.network.url-service','WebBrowserSingleActiveUnitService','registerComponent','_cursorInfo$','ICommandService','post','height','push','_localCacheService','collaboration.closeRoom','_entityInit$','currentTheme$','_initWindowErrorListener','_onRefRangeChange','_anchorDot','SheetCollabCursorShape','_scheduleClearOtherTimer','getSheetBySheetId','_maxFormulaLimit','IUIPartsService','subUnitId','trim','isArray','editingUnit','FromArray','InsertRangeMoveDownCommandId','includes','transformRemoteChangeset','colno','_urlService','WECHAT_HAS_BEEN_BOUND','_setupSubUnitSync','getAncestorScale','_getSessionTicket','RefRangeService','NodePositionConvertToRectRange','parseInt','_drawAnchor','CollaborationStatus','ENTITLE_COUPON_USED_UP','transformByState','?taskId=','handleInsertRow','off-line-icon_clip0_910_343','entityInit$','_collaborationUIEventService','_colorIndex','_textBubble','currentUsage','transformMutationsWithChangeset','_dataLoaderService','newValue','_removeCollabCursors','_init','YUUMI_SUBSCRIPTION_NOT_FOUND','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','INVITE_CODE_ALREADY_BOUND','restore','_registerDependencies','removeParam','REDEMPTION_CODE_INACTIVE','redoState','IURLService','params','executionId','AWAITING_WITH_PENDING','sheetID','_hover','ISnapshotServerService','CURRENT_STATUS_CANNOT_OPERATE','_hideTimer','LICENSE_MAX_UNITS_EXCEEDED','_registerRenderDependencies','_docSyncEditingCollabCursorService','forwardRef','SUCCESS','asObservable','top','SYNCED','generateRandomId','ACTIVE_UNIT_EVENT_CHANNEL','LICENSE_IMPORT_SIZE_EXCEEDED','fromEvent','isEditing','_removeClearOtherTimer','collaboration.single-unit.warning','_online','CONFLICT','clearTimeout','collabStatus.offline','44bchujx','getUniverSheetInstance','setTimeout','_collaborationController','Error','_hovered','ENTITLE_COUPON_EXPIRED','_uiPartsService','isActive','max','flatMap','_initUserListener','_handleJoinEvent','INVALID_INVITE_CODE','fillRule','handleInsertRangeMoveDown','m2Prime','stack','svg','TEXT_RANGE_LAYER_INDEX','fillStyle','tag','APPLY_PERMISSION_DENIED','_labelPosition','white','setAlpha','getColor','NOT_COLLAB','CollaborationController','collab-text-range-','NO_OTHER_CLIENTS_EDITING','getMergeData','UniverCollaborationClientPlugin','toRgbString','closePath','search','roomMembers','RevisionService','getCurrent','activeSheet$','UniverInstanceType','releaseFormulaLimitUrl','getMember','ONLINE','all','START_CALCULATION','permission.content','_handleHover','OTHER_CLIENT_EDITING','url(#$1','_unitOnClients','_updateLocalCursor','SetWorksheetActivateCommand','subscribeEvent','labelPosition','wsSessionTicketUrl','PAYMENT_CHANNEL_NOT_SUPPORT','has','startRow','APPLY_DUPLICATED','_context','eventID','_configService','_drawTextRange','deserializeRangeWithSheet','docStateChange$','socket$','endRow','session.collaboration-timeout','PENDING','_cursorShapes','REDEMPTION_CODE_HAS_BEEN_CREATED','ranges','REDEMPTION_CODE_NOT_STARTED','collaboration-client-ui.config','hide','LOGIN_TOKEN_PROCESSING_FAILED','triggerDblclick','entries','getOwnPropertyDescriptor','engine','[Window\x20Error]:\x20','values','UnitStatus','createElement','SHEET_VIEWPORT_KEY','_disabled','INotificationService','Disposable','getMemberID','saveTaskMap','ThemeService','MOBILE_VERIFY_CODE_MISMATCH','CHANGESET_REVISION_CONFILICT','_cursor','limitInfo','onRendered','_onCursorUpdate','unhandledrejection','handleIRemoveRow','univer-flex\x20univer-items-center','toDisposable','getItem','WebURLService','getViewport','m1Prime','session.connection-failed','InsertColCommandId','merge','useDependency','REDEMPTION_INVALID_CODE','IDocClipboardService','fill','formula.calculation.unable','translate(.97)','cursorInfo','_unitStatus','CanceledError','APPLY_NON_SEQUENTIAL_REVISION','getUnhiddenWorksheets','DocSelectionManagerService','stage','[RemoteUniscriptService]:\x20no\x20focused\x20unit','USER_NOT_INVITED_CODE','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_initCommandInterceptor','unitId','transformStateCache','_handleLeaveEvent','collab-client.tooltip.reconnect','_clearPolling','_startDocCollabCursor','DisposableCollection','_render','_sheetSkeletonManagerService','application/json','handleInsertCol','unload','toString','MUTATION','focused$','addObject','ENTITLE_REPORT_LIMIT_EXCEED','updateOfflineData','history','Rect','stringify','colorChannel1','getUndoRedoMutationParamsCache','split','_getMergeRange','getCoordByCell','lineno','serializeRangeWithSheet','unsubscribe','APPLY_REVISION_CONFILICT','_roomMembers$','_entities','_memberService','CollaborationUIEventService','RemoteUniscriptService','COMPLETION_FINISHED','[Unhandled\x20Rejection]:\x20','send','_updateURLWithCurrentState','drawWith','ENTITLE_INVALID_COUPON_CODE','sessionTicket','whenReady','location','getFocusedUnit','_messageService','exhaustSavingTask','requireSession','_createSocketURL','ENTITLE_USE_COUPON_NOT_1ST_TRADE','unitID','row','YUUMI_URL_COL_OUT_OF_RANGE','toStringTag','add','isFormulaString','stageInfo','getParam','_onCursorDelete','memberID','registerRenderModule','IConfigService','pluginName','LICENSE_EXPORT_SIZE_EXCEEDED','roomMembers$','0\x200\x2016\x2016','getVpScrollXYInfoByPosToVp','getTypeOfUnitAdded$','5956055dYcDdJ','_applyCommand','_document','getformulaLimitStatusUrl','_docStateChangeManagerService','min','_scheduleSaving','getColorFromTheme','formula.calculation.started','_collabSessionService','createIdentifier','_docClipboardService','_monkeyPatchLogService','BuiltInUIPart','code','USER_NOT_FOUND','SheetSkeletonManagerService','combineLatest','FETCH_MISS','APPLY_REJECT','_updateCollabCursors','transform','saveImage','defs','_toggleOnline','_themeService','useObservable','addEventListener','[LogService\x20Error]:\x20','deepClone','endColumn','storage','unit','CommandType','children','show','ENTITLE_INSUFFICIENT_QUOTA','LOCAL_CACHE_INTERVAL','USERS_LEAVE','shift','makeDirty','url(#off-line-icon_clip0_910_343)','handleInsertRangeMoveRight','disposeWithMe','findNodePositionByCharIndex','RemoveColCommandId','isFormulaId','Failed','_getSaveTimeout','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','EMAIL_VERIFY_CODE_MISMATCH','_beforeCloseService','forEach','_transformHistoryAndStateStack','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','skeleton','type','setActiveRange','red.300','size','_updateSubUnitFromURLParams','setShapeProps','_initStatusListener','_refRangeService','BehaviorSubject','_notificationService','LocaleService','maxFormulaLimit','HTTPService','Workbook','INVITE_CODE_HAS_BEEN_UES','registerDependencies','TOO_MANY_REQUESTS','_backgroundColor','TEXT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collabStatus.synced','EffectRefRangId','now','_startSheetCollabCursor','_draw','getValue','data','REDEMPTION_CODE_FULLY_REDEEMED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','div','NOT_FOUND','use','DOC_RANGE_TYPE','executeCommand','removeEventListener','IRenderManagerService','_logService','_checkCalculationAvailable','_httpService','_send','9ZKvuBl','_clearOtherTimers','12786490guteAF','UNAUTHENTICATED','color','loadOfflineData','_heartbeatTimer','body','green.600','saveOfflineData','PERMISSION_DENIED','clearInterval','addHandlerCallback','transformSelections','_univerInstanceService','UPDATE_CURSOR','_doCreateSocket','_uploadLog','_collabCursorState$','DATA_SOURCE_TOO_LARGE','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','DeleteRangeMoveUpCommandId','disposeUnit','OFFLINE','JOIN_ROOM_FAILED','href','mapTo','SetFormulaCalculationNotificationMutation','length','INTERNAL_ERROR','setUndoRedoMutationParamsCache','Injector','getCurrentRevOfUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','SOCKET_FAILED','_syncEditingCollabCursorService','getRenderById','_ensureSubject','USER_IS_ANONYMOUS','Unknown\x20user','getCollabEntity$','message','_docSkeletonManagerService','onCommandExecuted','on-line-icon','getConfig','disableLocalCache','InsertRowCommandId','getDocRanges','attrs','then','_localeService','fillText','assignAColorForMemberID','VIEW_MAIN','xlink:href','currentSkeleton$','session.will-retry','_cursors','_setupBeforeClosingHandler','_saveTaskMap','sessionStatus$','_initEntityListener','UniverCollaborationClientUIPlugin','startFormulaLimitUrl','distinctUntilChanged','DocCollaborationEntity','isTransformMutationsWithChangesetSuccess','_name','_toggleOffline','transformIMECache','getTypeOfUnitDisposed$','filename','_instanceService','fromEventSubject','useRef','textRanges','_commandService','mergeOverrideWithDependencies','_scheduleHeartbeat','SNAPSHOT_HAS_BEEN_REMOVED','urlChange$'];_0x1c85=function(){return _0x1b72cc;};return _0x1c85();}var ut=Object['getOwnPropertyDescriptor'],It=(_0x2b0a1d,_0x305347,_0x5e0219,_0x9776d4)=>{const _0x18797e=_0xde5e7f;for(var _0x18475c=_0x9776d4>0x1?void 0x0:_0x9776d4?ut(_0x305347,_0x5e0219):_0x305347,_0xa2ded1=_0x2b0a1d[_0x18797e(0x1ef)]-0x1,_0x1f7042;_0xa2ded1>=0x0;_0xa2ded1--)(_0x1f7042=_0x2b0a1d[_0xa2ded1])&&(_0x18475c=_0x1f7042(_0x18475c)||_0x18475c);return _0x18475c;},U=(_0x4de4a7,_0x51cb05)=>(_0x1a31b1,_0x3b5f1c)=>_0x51cb05(_0x1a31b1,_0x3b5f1c,_0x4de4a7);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x2e71c8,_0x12830d,_0x435cde,_0x3d77a9,_0x228a33,_0x3fb547,_0x4dde46,_0x326019,_0x239f9e){const _0x2af43b=_0xde5e7f;super(),_(this,'_online',!0x1),_(this,_0x2af43b(0x8c),!0x1),_(this,_0x2af43b(0x32b),new I['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this[_0x2af43b(0x32b)][_0x2af43b(0xa3)]()),_(this,_0x2af43b(0x14d),new I[(_0x2af43b(0x1b3))]([])),_(this,_0x2af43b(0x16f),this[_0x2af43b(0x14d)][_0x2af43b(0x27a)](I[_0x2af43b(0x305)](St))),_(this,_0x2af43b(0xe4),a['debounce'](_0x4d72b4=>{const _0x5ece21=_0x2af43b,_0x22bde0={'eventID':g[_0x5ece21(0x326)][_0x5ece21(0x1e2)],'data':{'unitID':this[_0x5ece21(0x161)],'memberID':this[_0x5ece21(0x319)][_0x5ece21(0x10a)](),'selection':Fe(_0x4d72b4)}};this[_0x5ece21(0x319)][_0x5ece21(0x154)](_0x22bde0,this[_0x5ece21(0x161)]);},dt)),(this[_0x2af43b(0x161)]=_0x2e71c8,this[_0x2af43b(0x319)]=_0x12830d,this[_0x2af43b(0x2eb)]=_0x435cde,this['_colorAssignService']=_0x3d77a9,this[_0x2af43b(0x14f)]=_0x228a33,this['_syncEditingCollabCursorService']=_0x3fb547,this[_0x2af43b(0x2f2)]=_0x4dde46,this['_univerInstanceService']=_0x326019,this['_commandService']=_0x239f9e);}get[_0xde5e7f(0x124)](){const _0x3652b1=_0xde5e7f;return this['_cursorInfo$'][_0x3652b1(0x1c4)]();}get['roomMembers'](){const _0x1ed7af=_0xde5e7f;return this['_roomMembers$'][_0x1ed7af(0x1c4)]();}[_0xde5e7f(0x29b)](){const _0x46af54=_0xde5e7f;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x46af54(0x32b)][_0x46af54(0x2b9)](),this['_roomMembers$'][_0x46af54(0x271)]([]),this[_0x46af54(0x14d)][_0x46af54(0x2b9)]();}[_0xde5e7f(0x234)](){const _0x50adff=_0xde5e7f;this[_0x50adff(0x8c)]||(this[_0x50adff(0x8c)]=!0x0,this[_0x50adff(0x319)][_0x50adff(0x210)][_0x50adff(0x27a)](I[_0x50adff(0x2c7)](this[_0x50adff(0x307)]))[_0x50adff(0x272)](_0x5405f7=>{const _0x1ba41a=_0x50adff;_0x5405f7===u[_0x1ba41a(0x2b2)][_0x1ba41a(0xdc)]?this[_0x1ba41a(0x18b)]():this['_toggleOffline']();}),this[_0x50adff(0x319)][_0x50adff(0x2df)][_0x50adff(0x27a)](I['takeUntil'](this[_0x50adff(0x307)]))[_0x50adff(0x272)](_0x5d7a4c=>{const _0x561ec8=_0x50adff,_0x655cd0=_0x5d7a4c[_0x561ec8(0xee)];_0x655cd0===g[_0x561ec8(0x326)][_0x561ec8(0x1e2)]&&this[_0x561ec8(0x112)](_0x5d7a4c),_0x655cd0===g[_0x561ec8(0x326)][_0x561ec8(0x199)]&&this['_onCursorDelete'](_0x5d7a4c);}),this['disposeWithMe'](this['_commandService'][_0x50adff(0x1fe)](_0x102d72=>{const _0x276df3=_0x50adff,_0x450d4d=_0x102d72[_0x276df3(0x96)];_0x450d4d!=null&&this[_0x276df3(0xad)]&&_0x102d72['id']===V[_0x276df3(0x25f)]['id']&&_0x450d4d[_0x276df3(0x12f)]===this[_0x276df3(0x161)]&&_0x450d4d[_0x276df3(0xaa)]===!0x1&&_0x450d4d[_0x276df3(0xf9)][_0x276df3(0x1ef)]>0x0&&this[_0x276df3(0xe4)](_0x450d4d[_0x276df3(0xf9)]);})),this[_0x50adff(0x1f6)][_0x50adff(0x2e8)][_0x50adff(0x27a)](I[_0x50adff(0x2c7)](this[_0x50adff(0x307)]))[_0x50adff(0x272)](_0x3e2065=>{const _0x209093=_0x50adff;if((_0x3e2065==null?void 0x0:_0x3e2065[_0x209093(0x161)])!==this[_0x209093(0x161)])return;const _0x575ee2={'eventID':g[_0x209093(0x326)][_0x209093(0x1e2)],'data':_0x3e2065};this['_onCursorUpdate'](_0x575ee2);}),this[_0x50adff(0x19e)](this[_0x50adff(0x220)][_0x50adff(0x1fe)](_0x32f846=>{const _0x2c3886=_0x50adff;if(_0x32f846[_0x2c3886(0x96)]==null)return;const _0x2d0896=_0x32f846[_0x2c3886(0x96)];if(_0x32f846['id']!==V[_0x2c3886(0x27c)]['id']||_0x2d0896[_0x2c3886(0x12f)]!==this[_0x2c3886(0x161)])return;const _0x487ce2={'id':_0x2c3886(0x2ff),'params':_0x2d0896},_0x49d5e9=this[_0x2c3886(0x124)];for(const [_0x2d9d9e,_0x584446]of _0x49d5e9){const _0x4aaca1={'id':_0x2c3886(0x2ff),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x584446[_0x2c3886(0xf9)]}},_0x23e834=this['_transformService'][_0x2c3886(0x2a9)](_0x487ce2,_0x4aaca1,!0x1);if(g[_0x2c3886(0x265)](_0x23e834))throw _0x23e834['error'];_0x49d5e9[_0x2c3886(0x258)](_0x2d9d9e,{..._0x584446,'ranges':_0x23e834['m2Prime']['params'][_0x2c3886(0x21f)]});}queueMicrotask(()=>{const _0x41a65b=_0x2c3886;this[_0x41a65b(0x32b)][_0x41a65b(0x271)](_0x49d5e9);});})));}['_onCursorUpdate'](_0xa7f3db){const _0x7a08b8=_0xde5e7f;var _0xcb67a5,_0x3cc32f;const {memberID:_0x5e001d,selection:_0x683f92}=_0xa7f3db['data'],_0x2b6f4e=ht(_0x683f92),_0x312719=(_0x3cc32f=(_0xcb67a5=this[_0x7a08b8(0x14f)][_0x7a08b8(0xdb)](this[_0x7a08b8(0x161)],_0x5e001d))==null?void 0x0:_0xcb67a5[_0x7a08b8(0x24d)])!=null?_0x3cc32f:'Unknown\x20user',_0xb94622={'color':this[_0x7a08b8(0x2c0)][_0x7a08b8(0x208)](_0x5e001d),'name':_0x312719,'ranges':_0x2b6f4e},_0x4e501d=this['cursorInfo'];_0x4e501d[_0x7a08b8(0x258)](_0x5e001d,_0xb94622),this[_0x7a08b8(0x32b)][_0x7a08b8(0x271)](_0x4e501d);}['_onCursorDelete'](_0x49993a){const _0x261bfc=_0xde5e7f,{memberID:_0x38828e}=_0x49993a[_0x261bfc(0x1c5)],_0x26d3f5=this[_0x261bfc(0x124)];_0x26d3f5[_0x261bfc(0x22b)](_0x38828e),this[_0x261bfc(0x32b)]['next'](_0x26d3f5);}[_0xde5e7f(0x18b)](){const _0x23117a=_0xde5e7f;var _0x211831;if(this[_0x23117a(0xad)]=!0x0,((_0x211831=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x211831[_0x23117a(0x317)]())!==this[_0x23117a(0x161)])return;const _0x198f11=this[_0x23117a(0x2eb)][_0x23117a(0x247)](V[_0x23117a(0x129)])['getDocRanges']();Array['isArray'](_0x198f11)&&_0x198f11[_0x23117a(0x1ef)]>0x0&&this[_0x23117a(0xe4)](_0x198f11);}[_0xde5e7f(0x218)](){const _0x58453a=_0xde5e7f;this[_0x58453a(0xad)]=!0x1;}};ve=It([U(0x2,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),U(0x3,a[_0xde5e7f(0x300)](Re)),U(0x4,a[_0xde5e7f(0x300)](u[_0xde5e7f(0x30c)])),U(0x5,a[_0xde5e7f(0x300)](be)),U(0x6,g[_0xde5e7f(0x249)]),U(0x7,a[_0xde5e7f(0x2e3)]),U(0x8,a[_0xde5e7f(0x32c)])],ve);var ft=Object[_0xde5e7f(0x100)],mt=(_0x2a9c54,_0x5c02ee,_0x7b4dea,_0x40cc42)=>{const _0x5a60e2=_0xde5e7f;for(var _0xf9a925=_0x40cc42>0x1?void 0x0:_0x40cc42?ft(_0x5c02ee,_0x7b4dea):_0x5c02ee,_0x2d1d7f=_0x2a9c54[_0x5a60e2(0x1ef)]-0x1,_0x31a257;_0x2d1d7f>=0x0;_0x2d1d7f--)(_0x31a257=_0x2a9c54[_0x2d1d7f])&&(_0xf9a925=_0x31a257(_0xf9a925)||_0xf9a925);return _0xf9a925;},w=(_0x1024ed,_0x1a99ff)=>(_0x39e78c,_0x5d4f08)=>_0x1a99ff(_0x39e78c,_0x5d4f08,_0x1024ed);const vt=0x12c,gt=0x64,Et=()=>{let _0x12f4a0=[],_0x6d7992=!0x1;return _0x5daf0b=>{const _0x5d4d17=_0x3cd0;_0x12f4a0[_0x5d4d17(0x32f)](_0x5daf0b),_0x6d7992||(_0x6d7992=!0x0,setTimeout(()=>{const _0x1ddcf3=_0x5d4d17;_0x12f4a0[_0x1ddcf3(0x1a7)](_0x210301=>_0x210301()),_0x12f4a0=[],_0x6d7992=!0x1;}));};};let ge=class extends a[_0xde5e7f(0x286)]{constructor(_0xbefe88,_0x22343d,_0xc93b05,_0x12b2df,_0x467066,_0x159b15,_0x577e1e,_0x5e3ce7){const _0x40dc9c=_0xde5e7f;super(),_(this,_0x40dc9c(0xad),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x40dc9c(0x1b3))](new Map())),_(this,_0x40dc9c(0x2ef),this['_cursorInfo$'][_0x40dc9c(0xa3)]()),_(this,'_roomMembers$',new I[(_0x40dc9c(0x1b3))]([])),_(this,_0x40dc9c(0x16f),this[_0x40dc9c(0x14d)][_0x40dc9c(0x27a)](I[_0x40dc9c(0x305)](vt))),_(this,_0x40dc9c(0xe4),a['debounce']((_0x147c03,_0x23e925)=>{const _0xcfb414=_0x40dc9c,_0x5187e6={'eventID':g[_0xcfb414(0x326)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xcfb414(0x161)],'memberID':this[_0xcfb414(0x319)][_0xcfb414(0x10a)](),'selection':B[_0xcfb414(0x14a)](_0x147c03,_0x23e925['range'])}};this[_0xcfb414(0x319)]['send'](_0x5187e6,this[_0xcfb414(0x161)]);},gt)),(this['unitID']=_0xbefe88,this['_session']=_0x22343d,this[_0x40dc9c(0x2eb)]=_0xc93b05,this[_0x40dc9c(0x2c0)]=_0x12b2df,this[_0x40dc9c(0x14f)]=_0x467066,this[_0x40dc9c(0x1e1)]=_0x159b15,this[_0x40dc9c(0x220)]=_0x577e1e,this[_0x40dc9c(0x1b2)]=_0x5e3ce7);}get[_0xde5e7f(0x124)](){const _0x4d0c93=_0xde5e7f;return this['_cursorInfo$'][_0x4d0c93(0x1c4)]();}get[_0xde5e7f(0xd5)](){const _0x1ecca0=_0xde5e7f;return this[_0x1ecca0(0x14d)]['getValue']();}['dispose'](){const _0x3532f9=_0xde5e7f;super['dispose'](),this[_0x3532f9(0x32b)][_0x3532f9(0x271)](new Map()),this[_0x3532f9(0x32b)]['complete'](),this[_0x3532f9(0x14d)]['next']([]),this['_roomMembers$'][_0x3532f9(0x2b9)]();}[_0xde5e7f(0x234)](){const _0x2b8010=_0xde5e7f;this[_0x2b8010(0x8c)]||(this[_0x2b8010(0x8c)]=!0x0,this['_session'][_0x2b8010(0x210)]['pipe'](I['takeUntil'](this[_0x2b8010(0x307)]))[_0x2b8010(0x272)](_0x5f25ba=>{const _0x344212=_0x2b8010;_0x5f25ba===u[_0x344212(0x2b2)][_0x344212(0xdc)]?this[_0x344212(0x18b)]():this[_0x344212(0x218)]();}),this['_session'][_0x2b8010(0x2df)][_0x2b8010(0x27a)](I[_0x2b8010(0x2c7)](this['dispose$']))[_0x2b8010(0x272)](_0x3a6ddc=>{const _0xf73b6a=_0x2b8010,_0x22c1d5=_0x3a6ddc[_0xf73b6a(0xee)];_0x22c1d5===g[_0xf73b6a(0x326)][_0xf73b6a(0x1e2)]&&this[_0xf73b6a(0x112)](_0x3a6ddc),_0x22c1d5===g[_0xf73b6a(0x326)][_0xf73b6a(0x199)]&&this[_0xf73b6a(0x169)](_0x3a6ddc);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x2b8010(0x220)]['onCommandExecuted'](_0x224c27=>{const _0x51630c=_0x2b8010;if(this['_online']&&_0x224c27['id']===v['SetSelectionsOperation']['id']&&_0x224c27[_0x51630c(0x96)][_0x51630c(0x12f)]===this[_0x51630c(0x161)]){const _0x3250dd=_0x224c27[_0x51630c(0x96)];this[_0x51630c(0xe4)](_0x3250dd[_0x51630c(0x33c)],_0x3250dd['selections'][0x0]);}})));}[_0xde5e7f(0x112)](_0x1c6f50){const _0x4295b2=_0xde5e7f;var _0xefedc5,_0x5f330f;const {memberID:_0x407786,selection:_0x5017d9}=_0x1c6f50[_0x4295b2(0x1c5)],{sheetName:_0x26d25a,range:_0x59d2f4}=B[_0x4295b2(0xf1)](_0x5017d9),_0x56d59f={'name':(_0x5f330f=(_0xefedc5=this[_0x4295b2(0x14f)][_0x4295b2(0xdb)](this[_0x4295b2(0x161)],_0x407786))==null?void 0x0:_0xefedc5[_0x4295b2(0x24d)])!=null?_0x5f330f:_0x4295b2(0x1fa),'range':this[_0x4295b2(0x147)](_0x26d25a,_0x59d2f4),'sheetID':_0x26d25a,'color':this[_0x4295b2(0x2c0)][_0x4295b2(0x208)](_0x407786),'selection':_0x5017d9},_0x5d71a5=this[_0x4295b2(0x124)];_0x5d71a5[_0x4295b2(0x258)](_0x407786,_0x56d59f),this[_0x4295b2(0x32b)][_0x4295b2(0x271)](_0x5d71a5);}[_0xde5e7f(0x169)](_0x17c67c){const _0x3c223a=_0xde5e7f,{memberID:_0x37e0a3}=_0x17c67c[_0x3c223a(0x1c5)],_0x58be72=this[_0x3c223a(0x124)];_0x58be72[_0x3c223a(0x22b)](_0x37e0a3),this[_0x3c223a(0x32b)][_0x3c223a(0x271)](_0x58be72);}[_0xde5e7f(0x147)](_0x180887,_0x3bd293){const _0x3eddad=_0xde5e7f;var _0x5dc5d1,_0x431f00;const _0x3dacfe=(_0x431f00=(_0x5dc5d1=this[_0x3eddad(0x1e1)][_0x3eddad(0xb2)](this[_0x3eddad(0x161)]))==null?void 0x0:_0x5dc5d1[_0x3eddad(0x339)](_0x180887))==null?void 0x0:_0x431f00[_0x3eddad(0xd0)]();return(_0x3dacfe==null?void 0x0:_0x3dacfe[_0x3eddad(0x283)](_0x4f16bb=>a[_0x3eddad(0x294)][_0x3eddad(0x261)](_0x4f16bb,_0x3bd293)))||_0x3bd293;}[_0xde5e7f(0x335)](){const _0x1d0d47=_0xde5e7f,_0x574dc9=new a[(_0x1d0d47(0x135))](),_0x546692=Et(),_0x2e0b72=()=>{const _0x2343cc=_0x1d0d47;_0x574dc9[_0x2343cc(0x29b)]();const _0x12908a=(_0xa01820,_0x56836c,_0x2ddce1,_0x554e3a)=>{const _0x2d5e74=_0x2343cc;let _0x2b62bb=[];switch(_0xa01820['id']){case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x263)]:{_0x2b62bb=v[_0x2d5e74(0x2d8)](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x1e8)]:{_0x2b62bb=v[_0x2d5e74(0x280)](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x11c)]:{_0x2b62bb=v[_0x2d5e74(0x139)](_0xa01820,_0x554e3a);break;}case v['EffectRefRangId'][_0x2d5e74(0x341)]:{_0x2b62bb=v[_0x2d5e74(0xc0)](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x28d)]:{_0x2b62bb=v[_0x2d5e74(0x19d)](_0xa01820,_0x554e3a);break;}case v['EffectRefRangId'][_0x2d5e74(0x202)]:{_0x2b62bb=v[_0x2d5e74(0x81)](_0xa01820,_0x554e3a);break;}case v['EffectRefRangId'][_0x2d5e74(0x2cc)]:{_0x2b62bb=v['handleMoveRange'](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)][_0x2d5e74(0x1a0)]:{_0x2b62bb=v['handleIRemoveCol'](_0xa01820,_0x554e3a);break;}case v[_0x2d5e74(0x1c0)]['RemoveRowCommandId']:{_0x2b62bb=v[_0x2d5e74(0x114)](_0xa01820,_0x554e3a);break;}}const _0x56a73a=v['runRefRangeMutations'](_0x2b62bb,_0x554e3a),_0x2842a0=this[_0x2d5e74(0x124)]['get'](_0x56836c);if(_0x2842a0&&_0x56a73a){const _0x5ab26d={..._0x2842a0,'range':_0x56a73a};this[_0x2d5e74(0x124)]['set'](_0x56836c,_0x5ab26d),_0x546692(()=>{const _0x2601bf=_0x2d5e74,_0x41312b=this[_0x2601bf(0x1b2)]['registerRefRange'](_0x56a73a,_0x3f78d2=>(_0x41312b[_0x2601bf(0x29b)](),_0x12908a(_0x3f78d2,_0x56836c,_0x2ddce1,_0x56a73a)));_0x574dc9[_0x2601bf(0x165)](_0x41312b);});}return{'redos':[],'undos':[]};};this[_0x2343cc(0x124)]['forEach']((_0x448e5d,_0x36a29d)=>{const _0x1a56bc=_0x2343cc,{range:_0x59d9dd,sheetID:_0x4e9df8}=_0x448e5d,_0x5420ee=this[_0x1a56bc(0x1b2)]['registerRefRange'](_0x59d9dd,_0x389e16=>(_0x5420ee[_0x1a56bc(0x29b)](),_0x12908a(_0x389e16,_0x36a29d,_0x4e9df8,_0x59d9dd)));_0x574dc9[_0x1a56bc(0x165)](_0x5420ee);});};this[_0x1d0d47(0x19e)](a[_0x1d0d47(0x116)](this[_0x1d0d47(0x32b)]['subscribe'](()=>{_0x2e0b72();})));}[_0xde5e7f(0x18b)](){const _0x333aeb=_0xde5e7f;var _0x20fb91,_0x49bd50;if(this['_online']=!0x0,((_0x20fb91=this[_0x333aeb(0x1e1)]['getFocusedUnit']())==null?void 0x0:_0x20fb91[_0x333aeb(0x317)]())!==this[_0x333aeb(0x161)])return;const _0x4d5923=(_0x49bd50=this[_0x333aeb(0x2eb)]['get'](v['SheetsSelectionsService'])[_0x333aeb(0x314)]())==null?void 0x0:_0x49bd50[0x0],_0xcb37c0=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x333aeb(0xd9)]['UNIVER_SHEET'])[_0x333aeb(0x2ca)]();_0x4d5923&&_0xcb37c0&&this[_0x333aeb(0xe4)](_0xcb37c0[_0x333aeb(0x2f5)](),_0x4d5923);}[_0xde5e7f(0x218)](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),w(0x3,a[_0xde5e7f(0x300)](Re)),w(0x4,a['Inject'](u[_0xde5e7f(0x30c)])),w(0x5,a[_0xde5e7f(0x2e3)]),w(0x6,a[_0xde5e7f(0x32c)]),w(0x7,a[_0xde5e7f(0x300)](v[_0xde5e7f(0x79)]))],ge);var Ct=Object[_0xde5e7f(0x100)],Tt=(_0x574785,_0x246fb7,_0x3191f9,_0x5c530c)=>{const _0x418912=_0xde5e7f;for(var _0x3b852d=_0x5c530c>0x1?void 0x0:_0x5c530c?Ct(_0x246fb7,_0x3191f9):_0x246fb7,_0x4af298=_0x574785[_0x418912(0x1ef)]-0x1,_0x36d599;_0x4af298>=0x0;_0x4af298--)(_0x36d599=_0x574785[_0x4af298])&&(_0x3b852d=_0x36d599(_0x3b852d)||_0x3b852d);return _0x3b852d;},ce=(_0x5c3b1b,_0x3b3e0c)=>(_0x279bdd,_0x39978f)=>_0x3b3e0c(_0x279bdd,_0x39978f,_0x5c3b1b);let F=class extends a['RxDisposable']{constructor(_0x5dff17,_0x44eedf,_0x4acc22){const _0x246cb2=_0xde5e7f;super(),_(this,_0x246cb2(0x14e),new Map()),_(this,_0x246cb2(0x332),new I[(_0x246cb2(0x25d))]()),(this['_univerInstanceService']=_0x5dff17,this[_0x246cb2(0x2eb)]=_0x44eedf,this[_0x246cb2(0x17c)]=_0x4acc22,this[_0x246cb2(0x8c)]());}[_0xde5e7f(0x29b)](){const _0x25a335=_0xde5e7f;super['dispose'](),this[_0x25a335(0x332)][_0x25a335(0x2b9)](),this[_0x25a335(0x14e)][_0x25a335(0x1a7)](_0x221aca=>_0x221aca[_0x25a335(0x29b)]());}[_0xde5e7f(0x251)](_0x564f71){const _0x50b612=_0xde5e7f;return this[_0x50b612(0x14e)][_0x50b612(0xea)](_0x564f71)?this['_entities'][_0x50b612(0x247)](_0x564f71)[_0x50b612(0x2ef)]:this[_0x50b612(0x332)][_0x50b612(0x27a)](I['filter'](_0x37ba22=>_0x37ba22[_0x50b612(0x161)]===_0x564f71),I[_0x50b612(0x2aa)](_0x1d6a30=>_0x1d6a30[_0x50b612(0x2ef)]));}['_init'](){const _0x4fb681=_0xde5e7f;this[_0x4fb681(0x1e1)][_0x4fb681(0x172)](a['UniverInstanceType'][_0x4fb681(0x24e)])['pipe'](I[_0x4fb681(0x2c7)](this[_0x4fb681(0x307)]))[_0x4fb681(0x272)](async _0x66fc6e=>{const _0x572bbe=_0x4fb681,_0x510da6=_0x66fc6e[_0x572bbe(0x317)](),_0x5c82c7=await this[_0x572bbe(0x1c2)](_0x510da6);this[_0x572bbe(0x332)][_0x572bbe(0x271)](_0x5c82c7),this[_0x572bbe(0x14e)][_0x572bbe(0x258)](_0x510da6,_0x5c82c7);}),this[_0x4fb681(0x1e1)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC'])[_0x4fb681(0x27a)](I['takeUntil'](this[_0x4fb681(0x307)]))[_0x4fb681(0x27a)](I['filter'](_0x2c1c6d=>!_0x2c1c6d[_0x4fb681(0x317)]()[_0x4fb681(0x2a5)]('__')))[_0x4fb681(0x272)](async _0x4317f3=>{const _0x3dfea8=_0x4fb681,_0x260d48=_0x4317f3[_0x3dfea8(0x317)](),_0x4869a3=await this[_0x3dfea8(0x134)](_0x260d48);this[_0x3dfea8(0x332)][_0x3dfea8(0x271)](_0x4869a3),this[_0x3dfea8(0x14e)][_0x3dfea8(0x258)](_0x260d48,_0x4869a3);}),I[_0x4fb681(0x11d)](this[_0x4fb681(0x1e1)][_0x4fb681(0x21a)](a[_0x4fb681(0xd9)]['UNIVER_DOC']),this[_0x4fb681(0x1e1)]['getTypeOfUnitDisposed$'](a[_0x4fb681(0xd9)][_0x4fb681(0x24e)]))[_0x4fb681(0x27a)](I[_0x4fb681(0x2c7)](this['dispose$']))[_0x4fb681(0x272)](_0x1f6c11=>{const _0x3ea82f=_0x4fb681,_0x51606f=_0x1f6c11[_0x3ea82f(0x317)](),_0x2e206c=this['_entities'][_0x3ea82f(0x247)](_0x51606f);_0x2e206c&&(_0x2e206c[_0x3ea82f(0x29b)](),this[_0x3ea82f(0x14e)][_0x3ea82f(0x22b)](_0x51606f));});}async[_0xde5e7f(0x1c2)](_0x194004){const _0x92f70=_0xde5e7f,_0x17ae7e=await this[_0x92f70(0x17c)][_0x92f70(0x15e)](_0x194004),_0x55ade2=this['_injector'][_0x92f70(0x2f7)](ge,_0x194004,_0x17ae7e);return _0x55ade2[_0x92f70(0x234)](),_0x55ade2;}async['_startDocCollabCursor'](_0x1b2c15){const _0x38063a=_0xde5e7f,_0x39f5d6=await this[_0x38063a(0x17c)]['requireSession'](_0x1b2c15),_0x117f7a=this[_0x38063a(0x2eb)]['createInstance'](ve,_0x1b2c15,_0x39f5d6);return _0x117f7a[_0x38063a(0x234)](),_0x117f7a;}};F=Tt([ce(0x0,a[_0xde5e7f(0x2e3)]),ce(0x1,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x52dbb4,_0x3b6e48){const _0x365ec1=_0xde5e7f;let {radius:_0x33358c,width:_0x159272,height:_0x44068a}=_0x3b6e48;_0x33358c=_0x33358c!=null?_0x33358c:0x0,_0x159272=_0x159272!=null?_0x159272:0x1e,_0x44068a=_0x44068a!=null?_0x44068a:0x1e;let _0x120c4d=0x0,_0x59cb31=0x0,_0x5e804c=0x0;_0x120c4d=_0x59cb31=_0x5e804c=Math[_0x365ec1(0x178)](_0x33358c,_0x159272/0x2,_0x44068a/0x2),_0x52dbb4['beginPath'](),_0x52dbb4[_0x365ec1(0x2d4)](_0x120c4d,0x0),_0x52dbb4[_0x365ec1(0x2b6)](_0x159272-_0x59cb31,0x0),_0x52dbb4[_0x365ec1(0x2b5)](_0x159272-_0x59cb31,_0x59cb31,_0x59cb31,Math['PI']*0x3/0x2,0x0,!0x1),_0x52dbb4[_0x365ec1(0x2b6)](_0x159272,_0x44068a-_0x5e804c),_0x52dbb4[_0x365ec1(0x2b5)](_0x159272-_0x5e804c,_0x44068a-_0x5e804c,_0x5e804c,0x0,Math['PI']/0x2,!0x1),_0x52dbb4[_0x365ec1(0x2b6)](0x0,_0x44068a),_0x52dbb4[_0x365ec1(0x2b6)](0x0,_0x120c4d),_0x52dbb4[_0x365ec1(0x2b5)](_0x120c4d,_0x120c4d,_0x120c4d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x52dbb4[_0x365ec1(0xd3)](),_0x3b6e48[_0x365ec1(0x121)]&&(_0x52dbb4[_0x365ec1(0x299)](),_0x52dbb4[_0x365ec1(0xc5)]=_0x3b6e48[_0x365ec1(0x121)],_0x3b6e48[_0x365ec1(0xbf)]===_0x365ec1(0x227)?_0x52dbb4[_0x365ec1(0x121)](_0x365ec1(0x227)):_0x52dbb4['fill'](),_0x52dbb4[_0x365ec1(0x90)]());}class re extends C[_0xde5e7f(0x2ac)]{constructor(_0x2b576a,_0x23006c){const _0x26138d=_0xde5e7f;super(_0x2b576a,_0x23006c),_(this,_0x26138d(0x1d7)),_(this,_0x26138d(0x2a3)),(this[_0x26138d(0x1d7)]=_0x23006c==null?void 0x0:_0x23006c[_0x26138d(0x1d7)],this[_0x26138d(0x2a3)]=_0x23006c==null?void 0x0:_0x23006c['text']);}static['drawWith'](_0x38b351,_0x41de1d){const _0x162a3a=_0xde5e7f,{text:_0x383db3,color:_0x52de36}=_0x41de1d;_0x38b351[_0x162a3a(0x299)](),_0x38b351['font']=_0x162a3a(0x1c7);const _0x194e82=_0x38b351[_0x162a3a(0x297)](_0x383db3)[_0x162a3a(0x293)],_0x21aab0=Math[_0x162a3a(0x178)](_0x194e82+0x2*le,Ue);Ot(_0x38b351,{'height':X,'radius':0x4,'width':_0x21aab0,'fill':_0x52de36}),_0x38b351[_0x162a3a(0xc5)]=_0x162a3a(0x23e);const _0x3c65ce=le,_0x3d7dc3=X-pt,_0x48ac78=Ue-0x2*le;if(_0x194e82>_0x48ac78){let _0x4cd277='',_0x1c0a8a=0x0;for(const _0x195498 of _0x383db3){const _0x302e03=_0x38b351[_0x162a3a(0x297)](_0x195498)['width'];if(_0x1c0a8a+_0x302e03<=_0x48ac78-_0x38b351['measureText'](_0x162a3a(0x2ec))[_0x162a3a(0x293)])_0x4cd277+=_0x195498,_0x1c0a8a+=_0x302e03;else{_0x4cd277+=_0x162a3a(0x2ec);break;}}_0x38b351[_0x162a3a(0x207)](_0x4cd277,_0x3c65ce,_0x3d7dc3);}else _0x38b351[_0x162a3a(0x207)](_0x383db3,_0x3c65ce,_0x3d7dc3);_0x38b351[_0x162a3a(0x90)]();}[_0xde5e7f(0x1c3)](_0xeb81db){const _0x19de90=_0xde5e7f;re[_0x19de90(0x156)](_0xeb81db,this);}}const _e=_0xde5e7f(0x2f8),Rt=_0xde5e7f(0xce),bt=_0xde5e7f(0x2d0),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x15278a,_0x3b383b,_0x22285d,_0x493f6c){const _0x3a6663=_0xde5e7f;_(this,_0x3a6663(0x23d),[]),_(this,_0x3a6663(0x236),null),_(this,'_textBubble',null),_(this,_0x3a6663(0x336),null),_(this,_0x3a6663(0x9d),null),_(this,'_eventUnsubscribe',null),(this['_cursor']=_0x15278a,this[_0x3a6663(0x323)]=_0x3b383b,this['_docSkeleton']=_0x22285d,this[_0x3a6663(0x175)]=_0x493f6c,this[_0x3a6663(0x136)]());}set[_0xde5e7f(0x9a)](_0x461296){const _0x5b7604=_0xde5e7f;_0x461296?(this[_0x5b7604(0x336)]&&this['_anchorDot']['hide'](),this[_0x5b7604(0x86)]&&this[_0x5b7604(0x86)][_0x5b7604(0x196)]()):(this['_anchorDot']&&this[_0x5b7604(0x336)]['show'](),this['_textBubble']&&this[_0x5b7604(0x86)][_0x5b7604(0xfc)]());}[_0xde5e7f(0x29b)](){const _0x3c4fd4=_0xde5e7f;for(const _0x49bc67 of this[_0x3c4fd4(0x23d)])_0x49bc67[_0x3c4fd4(0x29b)]();this['_textBubble']&&this[_0x3c4fd4(0x86)][_0x3c4fd4(0x29b)](),this[_0x3c4fd4(0x336)]&&this[_0x3c4fd4(0x336)]['dispose'](),this['_anchor']&&this[_0x3c4fd4(0x236)][_0x3c4fd4(0x29b)](),this[_0x3c4fd4(0x232)]&&this[_0x3c4fd4(0x232)]();}['_render'](){const _0x40bc7a=_0xde5e7f;var _0x563370;const {_docSkeleton:_0x3ec6cb,_document:_0x3607d1}=this,{color:_0x487de1,name:_0x35bc11,ranges:_0x481af6}=this[_0x40bc7a(0x10f)],_0x18a7c5=_0x3607d1[_0x40bc7a(0x2bf)](),{docsLeft:_0xc056c9,docsTop:_0x22294b}=_0x18a7c5,_0x52beea=new T['NodePositionConvertToCursor'](_0x18a7c5,_0x3ec6cb);for(const {startOffset:_0x191b88,endOffset:_0x50c32d,rangeType:_0x5255fe,segmentId:_0x3df415,segmentPage:_0x22f7b1,collapsed:_0xaee092,isActive:_0x525910}of _0x481af6){const _0x404635=_0x3ec6cb[_0x40bc7a(0x19f)](_0x191b88,!0x0,_0x3df415,_0x22f7b1);let _0x13580b=_0x3ec6cb[_0x40bc7a(0x19f)](_0x50c32d,!0x0,_0x3df415,_0x22f7b1);if(_0x13580b==null&&(_0x13580b=_0x3ec6cb[_0x40bc7a(0x19f)](_0x50c32d-0x1,!0x1,_0x3df415,_0x22f7b1)),_0x525910){const {contentBoxPointGroup:_0x4e98a3}=_0x52beea[_0x40bc7a(0x275)](_0x13580b,_0x13580b);if(_0x4e98a3[_0x40bc7a(0x1ef)]===0x0)continue;this[_0x40bc7a(0x7c)](_0x487de1,_0x4e98a3,_0xc056c9,_0x22294b,_0x35bc11),this[_0x40bc7a(0x232)]=this[_0x40bc7a(0xe0)]();}if(_0x404635&&_0x13580b){if(_0x5255fe===a[_0x40bc7a(0x1cb)][_0x40bc7a(0x228)]){const _0x5e8e2d=new T[(_0x40bc7a(0x7a))](_0x18a7c5,_0x3ec6cb),{pointGroup:_0x156823}=(_0x563370=_0x5e8e2d['getRangePointData'](_0x404635,_0x13580b))!=null?_0x563370:{};if(_0x156823==null||_0x156823[_0x40bc7a(0x1ef)]===0x0)continue;this[_0x40bc7a(0x24b)](_0x487de1,_0x156823,_0xc056c9,_0x22294b);}else{if(!_0xaee092){const {borderBoxPointGroup:_0x543409}=_0x52beea[_0x40bc7a(0x275)](_0x404635,_0x13580b);if(_0x543409[_0x40bc7a(0x1ef)]===0x0)continue;this['_drawTextRange'](_0x487de1,_0x543409,_0xc056c9,_0x22294b);}}}}}['_drawAnchor'](_0x3156ea,_0x3efae8,_0x39b98e,_0xf81e67,_0x5f4e16){const _0x597c38=_0xde5e7f,_0x5d1135=this[_0x597c38(0x24a)](_0x3efae8),{left:_0x6059c5,top:_0x414859,height:_0x413db3}=_0x5d1135,_0x28741f=this[_0x597c38(0x2e1)](),_0x847de4=Nt/_0x28741f,_0x4386c0=new C[(_0x597c38(0x142))](_e+a[_0x597c38(0xa6)](H),{'left':_0x6059c5+_0x39b98e-_0x847de4,'top':_0x414859+_0xf81e67,'height':_0x413db3,'width':Dt,'fill':_0x3156ea||C['getColor'](a['COLORS'][_0x597c38(0x229)],0x0),'strokeWidth':_0x847de4,'stroke':Ut,'evented':!0x0});this[_0x597c38(0x236)]=_0x4386c0,this[_0x597c38(0x323)][_0x597c38(0x13e)](_0x4386c0,T[_0x597c38(0xc4)]);const _0x2718da=new C[(_0x597c38(0x142))](_e+a['generateRandomId'](H),{'left':_0x6059c5+_0x39b98e-_0x847de4,'top':_0x414859+_0xf81e67-he/0x2,'height':he,'width':he,'fill':_0x3156ea||C[_0x597c38(0xcb)](a[_0x597c38(0x321)][_0x597c38(0x229)],0x0),'strokeWidth':0x0,'stroke':_0x3156ea||C[_0x597c38(0xcb)](a[_0x597c38(0x321)][_0x597c38(0x229)],0x0),'evented':!0x1});this[_0x597c38(0x336)]=_0x2718da,this[_0x597c38(0x323)][_0x597c38(0x13e)](_0x2718da,T[_0x597c38(0xc4)]);const _0x7812f=new re(_e+a[_0x597c38(0xa6)](H),{'left':_0x6059c5+_0x39b98e-_0x847de4,'top':_0x414859+_0xf81e67-X,'text':_0x5f4e16,'color':_0x3156ea});this[_0x597c38(0x86)]=_0x7812f,this['_scene'][_0x597c38(0x13e)](_0x7812f,T['TEXT_RANGE_LAYER_INDEX']),this[_0x597c38(0x9a)]=!0x1;}['_handleHover'](){const _0x32ab56=_0xde5e7f,_0x4636f6=this[_0x32ab56(0x236)][_0x32ab56(0x27b)][_0x32ab56(0xe6)](()=>{const _0x5584a6=_0x32ab56;this[_0x5584a6(0x9a)]=!0x0;}),_0x5557f9=this[_0x32ab56(0x236)][_0x32ab56(0x27e)]['subscribeEvent'](()=>{const _0x3b9d60=_0x32ab56;this[_0x3b9d60(0x9d)]&&clearTimeout(this[_0x3b9d60(0x9d)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x108c5c=_0x32ab56;_0x4636f6[_0x108c5c(0x14b)](),_0x5557f9[_0x108c5c(0x14b)]();};}[_0xde5e7f(0xf0)](_0x3b67c5,_0xc977d8,_0x492410,_0x3f2d42){const _0x4efa30=_0xde5e7f,_0x536063=new a[(_0x4efa30(0x2c6))](_0x3b67c5)[_0x4efa30(0xca)](0.2)[_0x4efa30(0xd2)](),_0x145fb4=new C[(_0x4efa30(0x240))](Rt+a[_0x4efa30(0xa6)](H),{'pointsGroup':_0xc977d8,'fill':_0x536063||C[_0x4efa30(0xcb)](a[_0x4efa30(0x321)]['black'],0.2),'left':_0x492410,'top':_0x3f2d42,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4efa30(0x23d)][_0x4efa30(0x32f)](_0x145fb4),this['_scene']['addObject'](_0x145fb4,T['TEXT_RANGE_LAYER_INDEX']);}[_0xde5e7f(0x24b)](_0xa4923d,_0x3bdbc3,_0x4240d6,_0x169665){const _0x24d84a=_0xde5e7f,_0x1cdcc1=new a[(_0x24d84a(0x2c6))](_0xa4923d)[_0x24d84a(0xca)](0.2)[_0x24d84a(0xd2)](),_0x18fef3=new C[(_0x24d84a(0x240))](bt+a['generateRandomId'](H),{'pointsGroup':_0x3bdbc3,'fill':_0x1cdcc1||C[_0x24d84a(0xcb)](a[_0x24d84a(0x321)]['black'],0.2),'left':_0x4240d6,'top':_0x169665,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x24d84a(0x32f)](_0x18fef3),this[_0x24d84a(0x323)][_0x24d84a(0x13e)](_0x18fef3,T[_0x24d84a(0xc4)]);}[_0xde5e7f(0x24a)](_0x6ad43a){const _0x2b5fdd=_0x6ad43a[0x0],_0x4e330c=_0x2b5fdd[0x0],_0x265c8c=_0x2b5fdd[0x2],{x:_0x1455df,y:_0x308941}=_0x4e330c,{x:_0x1605e7,y:_0x86c7ac}=_0x265c8c;return{'left':_0x1455df,'top':_0x308941,'width':_0x1605e7-_0x1455df,'height':_0x86c7ac-_0x308941};}[_0xde5e7f(0x2e1)](){const _0x501833=_0xde5e7f,{scaleX:_0x9e1dfb,scaleY:_0x4f337b}=this[_0x501833(0x323)][_0x501833(0x348)]();return Math[_0x501833(0xba)](_0x9e1dfb,_0x4f337b);}}var Lt=Object[_0xde5e7f(0x100)],Mt=(_0x211d44,_0x408144,_0x47e572,_0x13b79e)=>{const _0x924458=_0xde5e7f;for(var _0x245685=_0x13b79e>0x1?void 0x0:_0x13b79e?Lt(_0x408144,_0x47e572):_0x408144,_0x22ee5e=_0x211d44[_0x924458(0x1ef)]-0x1,_0x3007d2;_0x22ee5e>=0x0;_0x22ee5e--)(_0x3007d2=_0x211d44[_0x22ee5e])&&(_0x245685=_0x3007d2(_0x245685)||_0x245685);return _0x245685;},q=(_0x5cc11c,_0x471cb3)=>(_0x2f251a,_0x1d146b)=>_0x471cb3(_0x2f251a,_0x1d146b,_0x5cc11c);let Ee=class extends a[_0xde5e7f(0x286)]{constructor(_0xfe215c,_0x4b5921,_0x3e1da7,_0x2c936f,_0x31aafa){const _0x475c95=_0xde5e7f;super(),_(this,_0x475c95(0xf7),[]),_(this,_0x475c95(0x20d),[]),(this[_0x475c95(0xed)]=_0xfe215c,this[_0x475c95(0x1fd)]=_0x4b5921,this[_0x475c95(0x2a1)]=_0x3e1da7,this[_0x475c95(0x220)]=_0x2c936f,this[_0x475c95(0x18c)]=_0x31aafa,this[_0x475c95(0x8c)]());}[_0xde5e7f(0x8c)](){const _0x1f513d=_0xde5e7f,_0x7a0a1d=this['_context'][_0x1f513d(0x12f)],_0x5b0e9c=this['_docSkeletonManagerService'];this[_0x1f513d(0x19e)](I[_0x1f513d(0x184)]([this[_0x1f513d(0x2a1)][_0x1f513d(0x251)](_0x7a0a1d),this['_themeService'][_0x1f513d(0x333)]])[_0x1f513d(0x27a)]($[_0x1f513d(0x2b8)](([_0x23515d,_0x252dad])=>({'skeleton':_0x5b0e9c[_0x1f513d(0x2ce)](),'cursors':[..._0x23515d[_0x1f513d(0x103)]()][_0x1f513d(0xbb)](_0x54bf82=>({..._0x54bf82,'color':this['_themeService'][_0x1f513d(0x17a)](_0x54bf82[_0x1f513d(0x1d7)])}))})))[_0x1f513d(0x272)](_0x19907c=>{const _0x354194=_0x1f513d;if(this[_0x354194(0x8b)](),_0x19907c){const {skeleton:_0x3bbad9,cursors:_0x175553}=_0x19907c;this[_0x354194(0x187)](_0x3bbad9,_0x175553);}})),this[_0x1f513d(0x2cb)](),this[_0x1f513d(0x284)]();}[_0xde5e7f(0x187)](_0x31eb3a,_0x7f86e6){const _0x15ab8a=_0xde5e7f,{scene:_0x346aea,mainComponent:_0x4afc55}=this[_0x15ab8a(0xed)],_0x397291=_0x7f86e6[_0x15ab8a(0x2b8)](_0x527e47=>new Le(_0x527e47,_0x346aea,_0x31eb3a,_0x4afc55));this[_0x15ab8a(0xf7)]=_0x397291,this[_0x15ab8a(0x20d)]=_0x7f86e6;}[_0xde5e7f(0x2a8)](){const _0x32a049=_0xde5e7f;this[_0x32a049(0x8b)]();const {scene:_0x257c95,mainComponent:_0x18bf68}=this['_context'],_0x18e14d=this[_0x32a049(0x1fd)][_0x32a049(0x2ce)](),_0x3a935c=this[_0x32a049(0x20d)][_0x32a049(0x2b8)](_0x42811f=>new Le(_0x42811f,_0x257c95,_0x18e14d,_0x18bf68));this[_0x32a049(0xf7)]=_0x3a935c;}[_0xde5e7f(0x8b)](){const _0xc4a54c=_0xde5e7f;this['_cursorShapes'][_0xc4a54c(0x1a7)](_0x276a2d=>_0x276a2d['dispose']()),this[_0xc4a54c(0xf7)]=[];}['_initCommandExecutedListener'](){const _0x55ebe5=_0xde5e7f,_0x5f0c77=[T['SetDocZoomRatioOperation']['id']];this[_0x55ebe5(0x19e)](this['_commandService']['onCommandExecuted'](_0x3311b9=>{const _0x2d01b6=_0x55ebe5;_0x5f0c77[_0x2d01b6(0x342)](_0x3311b9['id'])&&_0x3311b9[_0x2d01b6(0x96)]['unitId']===this[_0x2d01b6(0xed)][_0x2d01b6(0x12f)]&&this[_0x2d01b6(0x2a8)]();}));}[_0xde5e7f(0x2cb)](){const _0x1e9dda=_0xde5e7f;this[_0x1e9dda(0x19e)](a[_0x1e9dda(0x21d)](this[_0x1e9dda(0xed)][_0x1e9dda(0x101)][_0x1e9dda(0x254)])[_0x1e9dda(0x27a)]($[_0x1e9dda(0x273)](_0x4429cb=>_0x4429cb[_0x1e9dda(0x1ab)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$['throttleTime'](0x10))[_0x1e9dda(0x272)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0xde5e7f(0x300)](V[_0xde5e7f(0x270)])),q(0x2,a[_0xde5e7f(0x300)](F)),q(0x3,a[_0xde5e7f(0x32c)]),q(0x4,a['Inject'](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C[_0xde5e7f(0x2ac)]{constructor(_0x4b19cf,_0x545a5d){const _0x4d091c=_0xde5e7f;super(_0x4b19cf,_0x545a5d),_(this,_0x4d091c(0x2ee)),_(this,_0x4d091c(0xb6),!0x1),_(this,'_range'),_(this,_0x4d091c(0x217),''),_(this,'_labelPosition',_0x4d091c(0xa4)),_(this,'_backgroundColor'),(_0x545a5d&&this[_0x4d091c(0x1b0)](_0x545a5d),this[_0x4d091c(0x27b)][_0x4d091c(0xe6)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4d091c(0x27e)][_0x4d091c(0xe6)](()=>this[_0x4d091c(0x1b0)]({'hovered':!0x1})));}[_0xde5e7f(0x1b0)](_0x580954){const _0x2c9d79=_0xde5e7f;var _0x3418ed,_0x3c087a,_0x296009,_0x496ab9,_0x5a3620,_0x5de1da;this[_0x2c9d79(0x2ee)]=(_0x3418ed=_0x580954[_0x2c9d79(0x1d7)])!=null?_0x3418ed:this[_0x2c9d79(0x2ee)],this['_hovered']=(_0x3c087a=_0x580954[_0x2c9d79(0x23b)])!=null?_0x3c087a:this['_hovered'],this[_0x2c9d79(0x25e)]=(_0x296009=_0x580954[_0x2c9d79(0x308)])!=null?_0x296009:this[_0x2c9d79(0x25e)],this['_name']=(_0x496ab9=_0x580954[_0x2c9d79(0x24d)])!=null?_0x496ab9:this['_name'],this['_labelPosition']=(_0x5a3620=_0x580954[_0x2c9d79(0xe7)])!=null?_0x5a3620:this[_0x2c9d79(0xc8)],this[_0x2c9d79(0x1bc)]=(_0x5de1da=_0x580954['backgroundColor'])!=null?_0x5de1da:this[_0x2c9d79(0x1bc)],this[_0x2c9d79(0x7f)]({'width':_0x580954['width'],'height':_0x580954[_0x2c9d79(0x32e)]});}[_0xde5e7f(0x2d2)](_0x3d36e6){const _0x1f398e=_0xde5e7f,{row:_0x304522,column:_0x1d08cd}=_0x3d36e6;if(_0x304522>=this[_0x1f398e(0x25e)][_0x1f398e(0xeb)]&&_0x304522<=this[_0x1f398e(0x25e)][_0x1f398e(0xf4)]&&_0x1d08cd>=this[_0x1f398e(0x25e)][_0x1f398e(0x226)]&&_0x1d08cd<=this[_0x1f398e(0x25e)][_0x1f398e(0x191)]){this[_0x1f398e(0x1b0)]({'hovered':!0x0});return;}this[_0x1f398e(0x1b0)]({'hovered':!0x1});}[_0xde5e7f(0xfe)](_0x39230a){return!0x1;}[_0xde5e7f(0x1c3)](_0x4b6dfd){const _0x340cfe=_0xde5e7f;C[_0x340cfe(0x142)]['drawWith'](_0x4b6dfd,{'width':this[_0x340cfe(0x293)],'height':this[_0x340cfe(0x32e)],'strokeWidth':Pt,'stroke':this[_0x340cfe(0x2ee)],'evented':!0x1,'fill':this[_0x340cfe(0x1bc)]}),this[_0x340cfe(0xb6)]&&(_0x4b6dfd[_0x340cfe(0x299)](),_0x4b6dfd[_0x340cfe(0x188)](0x1,0x0,0x0,0x1,this[_0x340cfe(0x293)],this[_0x340cfe(0xc8)]===_0x340cfe(0x2d1)?0x0:-X),re[_0x340cfe(0x156)](_0x4b6dfd,{'text':this[_0x340cfe(0x217)],'color':this[_0x340cfe(0x2ee)]}),_0x4b6dfd[_0x340cfe(0x90)]());}}var wt=Object[_0xde5e7f(0x100)],yt=(_0x277760,_0xfe2f58,_0x1062a1,_0x7a78d)=>{const _0x4e71f8=_0xde5e7f;for(var _0x394554=_0x7a78d>0x1?void 0x0:_0x7a78d?wt(_0xfe2f58,_0x1062a1):_0xfe2f58,_0x2f4a71=_0x277760[_0x4e71f8(0x1ef)]-0x1,_0x2d79a2;_0x2f4a71>=0x0;_0x2f4a71--)(_0x2d79a2=_0x277760[_0x2f4a71])&&(_0x394554=_0x2d79a2(_0x394554)||_0x394554);return _0x394554;},ue=(_0x3fa5c2,_0x2058c2)=>(_0xcbd33c,_0x11ada1)=>_0x2058c2(_0xcbd33c,_0x11ada1,_0x3fa5c2);const $t=0x1389;let Ce=class extends a[_0xde5e7f(0x286)]{constructor(_0x2f254a,_0xdb934b,_0x509acf,_0x8d5cfa){const _0x44a646=_0xde5e7f;super(),_(this,_0x44a646(0x20d),new Set()),_(this,'_lastPointer',null),(this[_0x44a646(0xed)]=_0x2f254a,this[_0x44a646(0x137)]=_0xdb934b,this[_0x44a646(0x2a1)]=_0x509acf,this['_themeService']=_0x8d5cfa,this['_init']());}['_init'](){const _0x3ba14e=_0xde5e7f;this[_0x3ba14e(0x137)][_0x3ba14e(0x20b)][_0x3ba14e(0x27a)]($['takeUntil'](this[_0x3ba14e(0x307)]),$['switchMap'](_0x263d67=>{const _0x107aa6=_0x3ba14e;if(_0x263d67){const _0x24e939=_0x263d67[_0x107aa6(0x2ab)];return I[_0x107aa6(0x184)](this[_0x107aa6(0x2a1)]['getCollabCursors$'](this['_context'][_0x107aa6(0x12f)]),this[_0x107aa6(0x18c)]['currentTheme$'])[_0x107aa6(0x27a)]($[_0x107aa6(0x2b8)](([_0x458c0f,_0x2c9735])=>{const _0x131e63=_0x107aa6,_0x153a1f=new Map();return _0x458c0f[_0x131e63(0x1a7)]((_0x11b82e,_0x35a943)=>{const _0x3cc3ed=_0x131e63;if(_0x11b82e[_0x3cc3ed(0x99)]===_0x24e939){const _0x377129={..._0x11b82e};_0x377129[_0x3cc3ed(0x1d7)]=this['_themeService']['getColorFromTheme'](_0x11b82e['color']),_0x153a1f[_0x3cc3ed(0x258)](_0x35a943,_0x377129);}}),{'skeleton':_0x263d67,'cursors':_0x153a1f};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3ba14e(0x272)](({skeleton:_0xaf9bc1,cursors:_0xad562a})=>{this['_removeCollabCursors'](),_0xaf9bc1&&this['_updateCollabCursors'](_0xaf9bc1,_0xad562a);}),this['_sheetSkeletonManagerService'][_0x3ba14e(0x20b)][_0x3ba14e(0x272)](_0x55097a=>{const _0x88613b=_0x3ba14e;if(_0x55097a==null)return;const {skeleton:_0x39250d}=_0x55097a,{scene:_0x38c538}=this[_0x88613b(0xed)];_0x38c538[_0x88613b(0x269)][_0x88613b(0xe6)](a['debounce'](_0x523a8e=>{const _0xb9051b=_0x88613b;var _0xaf8805,_0x15a7f1;const {offsetX:_0x346773,offsetY:_0x418cfc}=_0x523a8e,{x:_0x39436d,y:_0xeec39a}=_0x38c538['getRelativeToViewportCoord'](C[_0xb9051b(0x2c1)][_0xb9051b(0x340)]([_0x346773,_0x418cfc])),{scaleX:_0x352401,scaleY:_0x4a5201}=_0x38c538[_0xb9051b(0x348)](),_0x5f315b=_0x38c538[_0xb9051b(0x119)](C[_0xb9051b(0x106)][_0xb9051b(0x209)]),_0x1bcaef=_0x38c538[_0xb9051b(0x171)](C[_0xb9051b(0x2c1)][_0xb9051b(0x340)]([_0x39436d,_0xeec39a]),_0x5f315b),_0x158e1c=_0x39250d[_0xb9051b(0x2ea)](_0x346773,_0x418cfc,_0x352401,_0x4a5201,_0x1bcaef);((_0xaf8805=this['_lastPointer'])==null?void 0x0:_0xaf8805['column'])===_0x158e1c[_0xb9051b(0x2bd)]&&((_0x15a7f1=this[_0xb9051b(0x30a)])==null?void 0x0:_0x15a7f1[_0xb9051b(0x162)])===_0x158e1c[_0xb9051b(0x162)]||this['_cursors'][_0xb9051b(0x1a7)](_0x9f053b=>{const _0x158bc5=_0xb9051b;_0x9f053b[_0x158bc5(0x2d2)](_0x158e1c);});},0x64));});}[_0xde5e7f(0x187)](_0x550d52,_0xbd88cb){const _0x1def96=_0xde5e7f;var _0x5e1c64;const _0x2360d0=(_0x5e1c64=this[_0x1def96(0x137)][_0x1def96(0xd7)]())==null?void 0x0:_0x5e1c64[_0x1def96(0x1aa)];if(!_0x2360d0)return;const _0x11d3bd=this[_0x1def96(0x248)]();if(!_0x11d3bd)return;this[_0x1def96(0x20d)]['forEach'](_0x55f0a7=>{const _0x297a76=_0x1def96;_0x55f0a7[_0x297a76(0x19b)]();});const {scene:_0x2440cd}=_0x11d3bd,_0x2c8fa6=xt(Array[_0x1def96(0x260)](_0xbd88cb[_0x1def96(0x103)]()))[_0x1def96(0x2b8)](_0x5e84c6=>{const _0x1025ea=_0x1def96,{color:_0x3792ea,range:_0xf08ded,name:_0x1de669,selection:_0x1cbbbf,sheetID:_0x41a499}=_0x5e84c6,{startColumn:_0x52faef,startRow:_0x326f6f,endColumn:_0x2ae9cb,endRow:_0x1c26d8}=_0xf08ded,_0xf792ce=J[_0x1025ea(0x148)](_0x326f6f,_0x52faef,_0x2440cd,_0x2360d0),_0x3ac693=J[_0x1025ea(0x148)](_0x1c26d8,_0x2ae9cb,_0x2440cd,_0x2360d0),{columnHeaderHeightAndMarginTop:_0x5457f9}=_0x2360d0,{startX:_0x4d33d2,startY:_0x4bebf1}=_0xf792ce,{endX:_0x3608b4,endY:_0x346b17}=_0x3ac693,_0x456dea=_0x3608b4-_0x4d33d2,_0x16267f=_0x346b17-_0x4bebf1,_0x22af19={'labelPosition':_0x4bebf1-_0x5457f9>=X?_0x1025ea(0xa4):_0x1025ea(0x2d1),'sheetID':_0x41a499,'range':_0xf08ded,'color':_0x3792ea,'name':_0x1de669,'selection':_0x1cbbbf,'left':_0x4d33d2,'top':_0x4bebf1,'width':_0x456dea,'height':_0x16267f,'evented':!0x1,'zIndex':$t};return new je(_0x1de669,_0x22af19);});_0x2440cd['addObjects'](_0x2c8fa6,At),this[_0x1def96(0x20d)]=new Set(_0x2c8fa6);}[_0xde5e7f(0x8b)](){const _0x4dd199=_0xde5e7f;var _0x2a93a8;(_0x2a93a8=this[_0x4dd199(0x20d)])==null||_0x2a93a8[_0x4dd199(0x1a7)](_0x59f3c9=>_0x59f3c9[_0x4dd199(0x29b)]());}['_getSheetObject'](){const _0x40d69a=_0xde5e7f;return J[_0x40d69a(0x24c)](this['_context'][_0x40d69a(0x193)],this[_0x40d69a(0xed)]);}};Ce=yt([ue(0x1,a[_0xde5e7f(0x300)](J[_0xde5e7f(0x183)])),ue(0x2,a[_0xde5e7f(0x300)](F)),ue(0x3,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x10c)]))],Ce);function xt(_0x58064f){const _0xb0280f=_0xde5e7f,_0x36118e=new Map();return _0x58064f['forEach'](_0x3ece58=>{const _0x5d947a=_0x3cd0;if(_0x36118e[_0x5d947a(0xea)](_0x3ece58[_0x5d947a(0x327)])){const _0x56b734=_0x36118e[_0x5d947a(0x247)](_0x3ece58[_0x5d947a(0x327)]);_0x56b734[_0x5d947a(0x24d)]+=',\x20'+_0x3ece58[_0x5d947a(0x24d)];}else _0x36118e[_0x5d947a(0x258)](_0x3ece58[_0x5d947a(0x327)],_0x3ece58);}),Array[_0xb0280f(0x260)](_0x36118e['values']());}var Bt=Object[_0xde5e7f(0x100)],Ft=(_0x36608e,_0x325ba0,_0x59897a,_0x4118d0)=>{const _0x11e0a5=_0xde5e7f;for(var _0x3bd9c8=_0x4118d0>0x1?void 0x0:_0x4118d0?Bt(_0x325ba0,_0x59897a):_0x325ba0,_0x264dd4=_0x36608e[_0x11e0a5(0x1ef)]-0x1,_0x487a87;_0x264dd4>=0x0;_0x264dd4--)(_0x487a87=_0x36608e[_0x264dd4])&&(_0x3bd9c8=_0x487a87(_0x3bd9c8)||_0x3bd9c8);return _0x3bd9c8;},y=(_0xd70dd1,_0x41bd94)=>(_0x5183dd,_0x48721f)=>_0x41bd94(_0x5183dd,_0x48721f,_0xd70dd1);let Z=class extends a[_0xde5e7f(0x109)]{constructor(_0x1cedda,_0x3e0600,_0x163f58,_0x34f0ae,_0x23034c,_0x3a1241){const _0x4ea8de=_0xde5e7f;super(),this[_0x4ea8de(0x1a6)]=_0x1cedda,this[_0x4ea8de(0x330)]=_0x3e0600,this[_0x4ea8de(0x84)]=_0x163f58,this['_messageService']=_0x34f0ae,this[_0x4ea8de(0x1b4)]=_0x23034c,this[_0x4ea8de(0x206)]=_0x3a1241,this[_0x4ea8de(0x20e)](),this[_0x4ea8de(0x2f6)]();}[_0xde5e7f(0x20e)](){const _0x4fd7b3=_0xde5e7f;this[_0x4fd7b3(0x19e)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x692542=_0x4fd7b3;if(this[_0x692542(0x330)][_0x692542(0x10b)]['size'])return this[_0x692542(0x206)]['t']('collaboration.offline-data-not-saved');}));}[_0xde5e7f(0x2f6)](){const _0x3e9ce2=_0xde5e7f;this[_0x3e9ce2(0x19e)](this[_0x3e9ce2(0x84)][_0x3e9ce2(0x2df)][_0x3e9ce2(0x272)](_0x18674f=>{const _0x3d5856=_0x3e9ce2;_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0xe1)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)]['Warning'],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0xac))}),_0x18674f['id']===u[_0x3d5856(0x2a0)]['CLOSE_ROOM']&&this['_messageService']['show']({'type':p['MessageType'][_0x3d5856(0x225)],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0x331))}),_0x18674f['id']===u[_0x3d5856(0x2a0)]['PERMISSION_DENIED']&&this[_0x3d5856(0x1b4)][_0x3d5856(0x196)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0xdf)),'type':_0x3d5856(0x238),'duration':0x0}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0xae)]&&this['_messageService'][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)]['Error'],'content':this['_localeService']['t'](_0x3d5856(0x331))+'('+_0x18674f[_0x3d5856(0x1c5)]+')'}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x1eb)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)][_0x3d5856(0x225)],'content':this[_0x3d5856(0x206)]['t'](_0x18674f[_0x3d5856(0x1c5)]||'')}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x2e2)]&&this[_0x3d5856(0x15c)]['show']({'type':p['MessageType'][_0x3d5856(0x225)],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0x20c))}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x1f5)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)][_0x3d5856(0xb5)],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0x11b))}),_0x18674f['id']===u[_0x3d5856(0x2a0)][_0x3d5856(0x24f)]&&this[_0x3d5856(0x15c)][_0x3d5856(0x196)]({'type':p[_0x3d5856(0x264)]['Error'],'content':this[_0x3d5856(0x206)]['t'](_0x3d5856(0xf5))});}));}};Z=Ft([y(0x0,O[_0xde5e7f(0x26c)]),y(0x1,u[_0xde5e7f(0x25a)]),y(0x2,a[_0xde5e7f(0x300)](u[_0xde5e7f(0x150)])),y(0x3,O[_0xde5e7f(0x30b)]),y(0x4,O[_0xde5e7f(0x108)]),y(0x5,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1b5)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x5449fc,_0x29d6b8,_0x4948d8,_0x118f64)=>{const _0x3dbc39=_0xde5e7f;for(var _0x2f2e38=_0x118f64>0x1?void 0x0:_0x118f64?jt(_0x29d6b8,_0x4948d8):_0x29d6b8,_0x5ed872=_0x5449fc[_0x3dbc39(0x1ef)]-0x1,_0x1469d5;_0x5ed872>=0x0;_0x5ed872--)(_0x1469d5=_0x5449fc[_0x5ed872])&&(_0x2f2e38=_0x1469d5(_0x2f2e38)||_0x2f2e38);return _0x2f2e38;},z=(_0x3576cf,_0x2bd6f5)=>(_0x54379,_0x4bd21b)=>_0x2bd6f5(_0x54379,_0x4bd21b,_0x3576cf);let Q=class extends a[_0xde5e7f(0x109)]{constructor(_0x19aa0c,_0x4f67de,_0x40d3f3,_0x38ddde){const _0x29a2e1=_0xde5e7f;super(),_(this,'_memberID'),(this[_0x29a2e1(0x2eb)]=_0x19aa0c,this[_0x29a2e1(0x1d1)]=_0x4f67de,this['_logService']=_0x40d3f3,this[_0x29a2e1(0x252)]=_0x38ddde,this[_0x29a2e1(0x8c)]());}[_0xde5e7f(0x8c)](){const _0xc5569c=_0xde5e7f;this[_0xc5569c(0x334)](),this[_0xc5569c(0x316)](),this['_monkeyPatchLogService'](),this[_0xc5569c(0xbc)]();}['_initUserListener'](){const _0x1cdde5=_0xde5e7f;this[_0x1cdde5(0x19e)](this[_0x1cdde5(0x252)][_0x1cdde5(0xf3)]['subscribe'](_0x4179ca=>{const _0xad465f=_0x1cdde5;this[_0xad465f(0x2b7)]=_0x4179ca==null?void 0x0:_0x4179ca[_0xad465f(0x16a)];}));}['_initWindowErrorListener'](){const _0x19f664=_0xde5e7f,_0x4cd2a5=_0x35b7a9=>{const _0x359fd2=_0x3cd0;var _0x3d65b1;this[_0x359fd2(0x1e4)](_0x359fd2(0x238),_0x359fd2(0x102)+_0x35b7a9[_0x359fd2(0x1fc)]+'\x20at\x20'+_0x35b7a9[_0x359fd2(0x21b)]+':'+_0x35b7a9[_0x359fd2(0x149)]+':'+_0x35b7a9[_0x359fd2(0x344)]+'\x0a'+(((_0x3d65b1=_0x35b7a9[_0x359fd2(0x238)])==null?void 0x0:_0x3d65b1[_0x359fd2(0xc2)])||''));};window[_0x19f664(0x18e)]('error',_0x4cd2a5),this[_0x19f664(0x19e)](()=>{const _0x36e7c5=_0x19f664;window['removeEventListener'](_0x36e7c5(0x238),_0x4cd2a5);});}['_initUnhandledRejectionListener'](){const _0x33ccee=_0xde5e7f,_0x18d63b=_0x18ae8f=>{const _0x3746bf=_0x3cd0;this[_0x3746bf(0x1e4)](_0x3746bf(0x238),_0x3746bf(0x153)+_0x18ae8f['reason']);};window[_0x33ccee(0x18e)](_0x33ccee(0x113),_0x18d63b),this['disposeWithMe'](()=>{const _0x5377af=_0x33ccee;window[_0x5377af(0x1cd)]('unhandledrejection',_0x18d63b);});}[_0xde5e7f(0x17f)](){const _0x15e605=_0xde5e7f,_0xe69d96=this[_0x15e605(0x1cf)][_0x15e605(0x238)]['bind'](this[_0x15e605(0x1cf)]);this[_0x15e605(0x1cf)][_0x15e605(0x238)]=(..._0x4e3ecd)=>{const _0x9cb122=_0x15e605,_0x4e05a4=_0x4e3ecd[_0x9cb122(0x2b8)](_0x18e812=>_0x18e812 instanceof Error?_0x18e812[_0x9cb122(0x1fc)]+'\x0a'+_0x18e812['stack']:String(_0x18e812))['join']('\x20');this['_uploadLog'](_0x9cb122(0x238),_0x9cb122(0x18f)+_0x4e05a4),_0xe69d96(..._0x4e3ecd);},this[_0x15e605(0x19e)](()=>{const _0xbb614c=_0x15e605;this['_logService'][_0xbb614c(0x238)]=_0xe69d96;});}['_uploadLog'](_0x9be7b3,_0x1e2234){const _0x4fff66=_0xde5e7f;try{const _0x29b81c={'userId':this[_0x4fff66(0x2b7)],'logLabel':_0x9be7b3,'content':_0x1e2234};this[_0x4fff66(0x1d1)][_0x4fff66(0x32d)]('/universer-api/frontend/logs',{'body':_0x29b81c})[_0x4fff66(0x2c4)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),z(0x1,a[_0xde5e7f(0x300)](x[_0xde5e7f(0x1b7)])),z(0x2,a[_0xde5e7f(0x2f4)]),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0xde5e7f(0xfb),Me={};var Ht=Object[_0xde5e7f(0x100)],Wt=(_0x42d1e8,_0x5211e6,_0x8a85ce,_0x233cd3)=>{const _0x3c3722=_0xde5e7f;for(var _0x18a4fd=_0x233cd3>0x1?void 0x0:_0x233cd3?Ht(_0x5211e6,_0x8a85ce):_0x5211e6,_0x565ab1=_0x42d1e8[_0x3c3722(0x1ef)]-0x1,_0x2683f2;_0x565ab1>=0x0;_0x565ab1--)(_0x2683f2=_0x42d1e8[_0x565ab1])&&(_0x18a4fd=_0x2683f2(_0x18a4fd)||_0x18a4fd);return _0x18a4fd;},Ae=(_0x3597bf,_0x4c738a)=>(_0x2f51bb,_0xbba90)=>_0x4c738a(_0x2f51bb,_0xbba90,_0x3597bf);let ee=class{constructor(_0x5e3a92,_0x410114){const _0x57a502=_0xde5e7f;this[_0x57a502(0x2f2)]=_0x5e3a92,this[_0x57a502(0x303)]=_0x410114;}['transformIMECache'](_0x491dc2){const _0x1093ae=_0xde5e7f;this['_transformUndoRedoStack'](_0x491dc2),this[_0x1093ae(0x29d)](_0x491dc2);}[_0xde5e7f(0x343)](_0x3827d4){const _0x21a355=_0xde5e7f,{unitID:_0x4bbcb7}=_0x3827d4,_0x777ae5=this['_renderManagerService']['getRenderById'](_0x4bbcb7)[_0x21a355(0x325)](T[_0x21a355(0x22a)]),{redoCache:_0x12872f}=_0x777ae5[_0x21a355(0x145)]();if(_0x12872f[_0x21a355(0x1ef)]===0x0)return _0x3827d4;let _0x1e221d=a[_0x21a355(0x231)]['deepClone'](_0x3827d4[_0x21a355(0x250)][0x0]);for(let _0xa5b6b2=0x0;_0xa5b6b2<_0x12872f[_0x21a355(0x1ef)];_0xa5b6b2++){const _0xed2bc0={'id':_0x21a355(0x2ff),'params':{..._0x12872f[_0xa5b6b2]}},_0x3667a6=this[_0x21a355(0x2f2)][_0x21a355(0x2a9)](_0x1e221d,_0xed2bc0,!0x1);if(g[_0x21a355(0x265)](_0x3667a6))throw _0x3667a6[_0x21a355(0x238)];_0x1e221d=_0x3667a6[_0x21a355(0x11a)];}return{...a[_0x21a355(0x231)][_0x21a355(0x190)](_0x3827d4),'mutations':[_0x1e221d]};}['_transformUndoRedoStack'](_0x342d9f){const _0x2af529=_0xde5e7f,{unitID:_0x69398d}=_0x342d9f,_0x340c9d=this[_0x2af529(0x303)][_0x2af529(0x1f7)](_0x69398d)[_0x2af529(0x325)](T['DocIMEInputManagerService']),{undoCache:_0x4aab49,redoCache:_0x2bd688}=_0x340c9d['getUndoRedoMutationParamsCache']();if(_0x4aab49['length']===0x0||_0x2bd688[_0x2af529(0x1ef)]===0x0)return;const _0x40f7da=[],_0x177b08=[];let _0x517154=a[_0x2af529(0x231)][_0x2af529(0x190)](_0x342d9f[_0x2af529(0x250)][0x0]),_0x349e4a=a[_0x2af529(0x231)][_0x2af529(0x190)](_0x342d9f[_0x2af529(0x250)][0x0]);for(let _0x218916=_0x4aab49[_0x2af529(0x1ef)]-0x1;_0x218916>=0x0;_0x218916--){const _0x58f4ae={'id':'doc.mutation.rich-text-editing','params':{..._0x4aab49[_0x218916]}},_0x1ae522={'id':_0x2af529(0x2ff),'params':{..._0x2bd688[_0x218916]}},_0x5acf58=this['_transformService'][_0x2af529(0x2a9)](_0x517154,_0x58f4ae,!0x1),_0xa1e60d=this['_transformService'][_0x2af529(0x2a9)](_0x349e4a,_0x1ae522,!0x1);if(g[_0x2af529(0x265)](_0x5acf58))throw _0x5acf58['error'];if(g[_0x2af529(0x265)](_0xa1e60d))throw _0xa1e60d[_0x2af529(0x238)];_0x40f7da[_0x2af529(0x277)](_0x5acf58['m2Prime'][_0x2af529(0x96)]),_0x177b08[_0x2af529(0x277)](_0xa1e60d[_0x2af529(0xc1)][_0x2af529(0x96)]),_0x517154=_0x5acf58[_0x2af529(0x11a)],_0x349e4a=_0xa1e60d[_0x2af529(0x11a)];}_0x340c9d[_0x2af529(0x1f1)]({'undoCache':_0x40f7da,'redoCache':_0x177b08});}[_0xde5e7f(0x29d)](_0x27ce87){const _0x286bb4=_0xde5e7f,{unitID:_0x1e5490}=_0x27ce87,_0x4a636c=this['_renderManagerService']['getRenderById'](_0x1e5490)[_0x286bb4(0x325)](T[_0x286bb4(0x22a)]),_0x442c29=_0x4a636c['getActiveRange']();if(_0x442c29==null)return;const _0x5dad24=[{'id':_0x286bb4(0x2ff),'params':{'unitId':_0x27ce87[_0x286bb4(0x161)],'actions':null,'textRanges':[_0x442c29]}}],_0x616ca7=this[_0x286bb4(0x2f2)]['transformMutationsWithChangeset'](_0x27ce87,_0x5dad24);if(!g[_0x286bb4(0x216)](_0x616ca7))throw _0x616ca7[_0x286bb4(0x238)];const _0x4cddf4=_0x616ca7[_0x286bb4(0xc1)][0x0][_0x286bb4(0x96)][_0x286bb4(0x21f)];Array[_0x286bb4(0x33e)](_0x4cddf4)&&_0x4cddf4[_0x286bb4(0x1ef)]&&_0x4a636c[_0x286bb4(0x1ac)](_0x4cddf4[0x0]);}};ee=Wt([Ae(0x0,g[_0xde5e7f(0x249)]),Ae(0x1,C[_0xde5e7f(0x1ce)])],ee);var Vt=Object[_0xde5e7f(0x100)],Gt=(_0x27dad0,_0x342203,_0x3ac24a,_0x121926)=>{const _0x3e8027=_0xde5e7f;for(var _0x4d6d2a=_0x121926>0x1?void 0x0:_0x121926?Vt(_0x342203,_0x3ac24a):_0x342203,_0x59ec67=_0x27dad0[_0x3e8027(0x1ef)]-0x1,_0x3b929e;_0x59ec67>=0x0;_0x59ec67--)(_0x3b929e=_0x27dad0[_0x59ec67])&&(_0x4d6d2a=_0x3b929e(_0x4d6d2a)||_0x4d6d2a);return _0x4d6d2a;},Ie=(_0x4fd901,_0x59064d)=>(_0x31fac8,_0x1571ff)=>_0x59064d(_0x31fac8,_0x1571ff,_0x4fd901);let te=class{constructor(_0x41b00a,_0x5ec72d,_0x3049d2){const _0x550f5b=_0xde5e7f;this[_0x550f5b(0x2eb)]=_0x41b00a,this['_transformService']=_0x5ec72d,this[_0x550f5b(0x177)]=_0x3049d2;}['transformStateCache'](_0x31ae78){this['_transformHistoryAndStateStack'](_0x31ae78);}[_0xde5e7f(0x343)](_0x4eafb0){const _0x5ed1b3=_0xde5e7f,{unitID:_0x4213ac}=_0x4eafb0,{collaboration:_0x5946f8}=this[_0x5ed1b3(0x177)][_0x5ed1b3(0x322)](_0x4213ac);if(_0x5946f8[_0x5ed1b3(0x1ef)]===0x0)return _0x4eafb0;let _0x2f0700=a[_0x5ed1b3(0x231)][_0x5ed1b3(0x190)](_0x4eafb0[_0x5ed1b3(0x250)][0x0]);for(let _0x357655=0x0;_0x357655<_0x5946f8['length'];_0x357655++){const _0x5775ad={'id':_0x5ed1b3(0x2ff),'params':{'unitId':_0x5946f8[_0x357655][_0x5ed1b3(0x12f)],..._0x5946f8[_0x357655]['redoState']}},_0x5eb10a=this['_transformService'][_0x5ed1b3(0x2a9)](_0x2f0700,_0x5775ad,!0x1);if(g[_0x5ed1b3(0x265)](_0x5eb10a))throw _0x5eb10a[_0x5ed1b3(0x238)];_0x2f0700=_0x5eb10a['m1Prime'];}return{...a[_0x5ed1b3(0x231)][_0x5ed1b3(0x190)](_0x4eafb0),'mutations':[_0x2f0700]};}[_0xde5e7f(0x1a8)](_0x55709d){const _0x37f3b0=_0xde5e7f,{unitID:_0x386a80}=_0x55709d,{history:_0x59c471,collaboration:_0x53612e}=this['_docStateChangeManagerService'][_0x37f3b0(0x322)](_0x386a80);if(_0x59c471['length']===0x0&&_0x53612e[_0x37f3b0(0x1ef)]===0x0)return;const _0x501526=[],_0x289165=[];let _0x19fd8e=a['Tools'][_0x37f3b0(0x190)](_0x55709d[_0x37f3b0(0x250)][0x0]),_0x1cf935=a['Tools'][_0x37f3b0(0x190)](_0x55709d[_0x37f3b0(0x250)][0x0]);for(let _0x307ed3=_0x59c471['length']-0x1;_0x307ed3>=0x0;_0x307ed3--){const _0x13e1ca={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x59c471[_0x307ed3]['unitId'],..._0x59c471[_0x307ed3][_0x37f3b0(0x244)]}},_0x2e9433={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x59c471[_0x307ed3][_0x37f3b0(0x12f)],..._0x59c471[_0x307ed3][_0x37f3b0(0x94)]}},_0x3e4c9b=this[_0x37f3b0(0x2f2)][_0x37f3b0(0x2a9)](_0x19fd8e,_0x13e1ca,!0x1),_0x6f8507=this[_0x37f3b0(0x2f2)][_0x37f3b0(0x2a9)](_0x1cf935,_0x2e9433,!0x1);if(g['isTransformMutationFailure'](_0x3e4c9b))throw _0x3e4c9b['error'];if(g['isTransformMutationFailure'](_0x6f8507))throw _0x6f8507[_0x37f3b0(0x238)];_0x501526[_0x37f3b0(0x277)]({..._0x59c471[_0x307ed3],'undoState':_0x3e4c9b[_0x37f3b0(0xc1)][_0x37f3b0(0x96)],'redoState':_0x6f8507[_0x37f3b0(0xc1)][_0x37f3b0(0x96)]}),_0x19fd8e=_0x3e4c9b[_0x37f3b0(0x11a)],_0x1cf935=_0x6f8507[_0x37f3b0(0x11a)];}_0x19fd8e=a['Tools'][_0x37f3b0(0x190)](_0x55709d[_0x37f3b0(0x250)][0x0]),_0x1cf935=a['Tools']['deepClone'](_0x55709d[_0x37f3b0(0x250)][0x0]);for(let _0x292268=_0x53612e[_0x37f3b0(0x1ef)]-0x1;_0x292268>=0x0;_0x292268--){const _0x54fbaf={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x53612e[_0x292268]['unitId'],..._0x53612e[_0x292268][_0x37f3b0(0x244)]}},_0x1cc605={'id':_0x37f3b0(0x2ff),'params':{'unitId':_0x53612e[_0x292268][_0x37f3b0(0x12f)],..._0x53612e[_0x292268]['redoState']}},_0xb86b4c=this['_transformService']['transformMutation'](_0x19fd8e,_0x54fbaf,!0x1),_0xfd2d2e=this[_0x37f3b0(0x2f2)][_0x37f3b0(0x2a9)](_0x1cf935,_0x1cc605,!0x1);if(g[_0x37f3b0(0x265)](_0xb86b4c))throw _0xb86b4c['error'];if(g[_0x37f3b0(0x265)](_0xfd2d2e))throw _0xfd2d2e[_0x37f3b0(0x238)];_0x289165[_0x37f3b0(0x277)]({..._0x53612e[_0x292268],'undoState':_0xb86b4c[_0x37f3b0(0xc1)]['params'],'redoState':_0xfd2d2e['m2Prime'][_0x37f3b0(0x96)]}),_0x19fd8e=_0xb86b4c[_0x37f3b0(0x11a)],_0x1cf935=_0xfd2d2e[_0x37f3b0(0x11a)];}this[_0x37f3b0(0x177)][_0x37f3b0(0x26a)](_0x386a80,{'history':_0x501526,'collaboration':_0x289165});}};te=Gt([Ie(0x0,a[_0xde5e7f(0x300)](a['Injector'])),Ie(0x1,g['ITransformService']),Ie(0x2,a['Inject'](T['DocStateChangeManagerService']))],te);function _0x3cd0(_0x2bd83f,_0x570957){_0x2bd83f=_0x2bd83f-0x78;const _0x1c85ac=_0x1c85();let _0x3cd0d3=_0x1c85ac[_0x2bd83f];return _0x3cd0d3;}var Xt=Object[_0xde5e7f(0x100)],Kt=(_0x46301f,_0x45b08f,_0x2b8b53,_0x502619)=>{const _0x45a09f=_0xde5e7f;for(var _0x51248f=_0x502619>0x1?void 0x0:_0x502619?Xt(_0x45b08f,_0x2b8b53):_0x45b08f,_0xe584c0=_0x46301f[_0x45a09f(0x1ef)]-0x1,_0x3765a4;_0xe584c0>=0x0;_0xe584c0--)(_0x3765a4=_0x46301f[_0xe584c0])&&(_0x51248f=_0x3765a4(_0x51248f)||_0x51248f);return _0x51248f;},Pe=(_0x11f7f4,_0x1d1cad)=>(_0x52fb02,_0x48a02a)=>_0x1d1cad(_0x52fb02,_0x48a02a,_0x11f7f4);let se=class{constructor(_0x230102,_0x11e7a1){const _0x1834f0=_0xde5e7f;this[_0x1834f0(0x2eb)]=_0x230102,this[_0x1834f0(0x2f2)]=_0x11e7a1;}[_0xde5e7f(0x1e0)](_0x1750fb){const _0x18de96=_0xde5e7f;var _0x37fe74;const _0x1541db=this[_0x18de96(0x2eb)]['get'](V['DocSelectionManagerService']),_0x31349c=(_0x37fe74=_0x1541db[_0x18de96(0x203)]())!=null?_0x37fe74:[];if(_0x31349c[_0x18de96(0x1ef)]===0x0)return;const _0x384496=_0x1750fb[_0x18de96(0x161)],_0x50e212=[{'id':_0x18de96(0x2ff),'params':{'unitId':_0x384496,'actions':null,'textRanges':_0x31349c}}],_0x509ed2=this[_0x18de96(0x2f2)][_0x18de96(0x88)](_0x1750fb,_0x50e212);if(!g[_0x18de96(0x216)](_0x509ed2))throw _0x509ed2[_0x18de96(0x238)];const _0x380e51=_0x509ed2[_0x18de96(0xc1)][0x0][_0x18de96(0x96)][_0x18de96(0x21f)];Array['isArray'](_0x380e51)&&_0x380e51[_0x18de96(0x1ef)]&&_0x1541db['replaceDocRanges'](_0x380e51,{'unitId':_0x384496,'subUnitId':_0x384496},!0x1);}};se=Kt([Pe(0x0,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),Pe(0x1,g[_0xde5e7f(0x249)])],se);var qt=Object[_0xde5e7f(0x100)],zt=(_0x4cb3dd,_0x3bf21f,_0x5395e7,_0x11333b)=>{const _0x83f1a9=_0xde5e7f;for(var _0x1b0e39=_0x11333b>0x1?void 0x0:_0x11333b?qt(_0x3bf21f,_0x5395e7):_0x3bf21f,_0x298e8a=_0x4cb3dd[_0x83f1a9(0x1ef)]-0x1,_0x468a1d;_0x298e8a>=0x0;_0x298e8a--)(_0x468a1d=_0x4cb3dd[_0x298e8a])&&(_0x1b0e39=_0x468a1d(_0x1b0e39)||_0x1b0e39);return _0x1b0e39;},N=(_0xe02db1,_0x418131)=>(_0xe3f0b1,_0x2d84e2)=>_0x418131(_0xe3f0b1,_0x2d84e2,_0xe02db1);let ie=class extends a['Disposable']{constructor(_0x4346de,_0x4c784f,_0x2928dc,_0x33f37f,_0x49e35b,_0x781645,_0x42d29c,_0x286fa0){const _0x348b54=_0xde5e7f;super(),_(this,_0x348b54(0x304),new I[(_0x348b54(0x1b3))](u[_0x348b54(0x7d)][_0x348b54(0xcc)])),(this['_docStateChangeManagerService']=_0x4346de,this['_collaborationController']=_0x4c784f,this[_0x348b54(0x22d)]=_0x2928dc,this[_0x348b54(0x2a7)]=_0x33f37f,this[_0x348b54(0x29f)]=_0x49e35b,this[_0x348b54(0xa0)]=_0x781645,this[_0x348b54(0x15c)]=_0x42d29c,this[_0x348b54(0x206)]=_0x286fa0,this[_0x348b54(0x211)]());}['_initEntityListener'](){const _0x2e0214=_0xde5e7f;this[_0x2e0214(0x19e)](this[_0x2e0214(0xb4)][_0x2e0214(0x83)][_0x2e0214(0x272)](_0x5f71ba=>{const _0x4dbb95=_0x2e0214,_0x32af00=this[_0x4dbb95(0x177)][_0x4dbb95(0xf2)]['subscribe'](_0x33d9d7=>{const _0x6105fc=_0x4dbb95;if(_0x33d9d7==null)return;const {unitId:_0x52c460,redoState:_0x2671d4,commandId:_0x4e1e43}=_0x33d9d7;if(_0x52c460!==_0x5f71ba[_0x6105fc(0x161)])return;const _0x9d383c={'id':_0x4e1e43,'type':a[_0x6105fc(0x194)][_0x6105fc(0x13c)],'params':{'unitId':_0x52c460,'actions':_0x2671d4[_0x6105fc(0x2bb)],'textRanges':null}};_0x5f71ba[_0x6105fc(0x301)](_0x9d383c);});if(_0x5f71ba[_0x4dbb95(0x19e)](_0x32af00),_0x5f71ba instanceof u[_0x4dbb95(0x215)]){const _0x3dedd0={'onTransformIME':_0x18cec9=>this[_0x4dbb95(0x22d)][_0x4dbb95(0x219)](_0x18cec9),'onTransformState':_0x34d2dd=>this[_0x4dbb95(0x2a7)][_0x4dbb95(0x130)](_0x34d2dd),'onTransformSelections':_0x1b0887=>this[_0x4dbb95(0x29f)]['transformSelections'](_0x1b0887),'onSyncEditingCollabCursor':_0x5a3c05=>this[_0x4dbb95(0xa0)][_0x4dbb95(0x241)](_0x5a3c05),'onTransformRemoteChangesetByIMECache':_0x25123a=>this[_0x4dbb95(0x22d)][_0x4dbb95(0x343)](_0x25123a),'onTransformRemoteChangesetByStateCache':_0x123e87=>this[_0x4dbb95(0x2a7)][_0x4dbb95(0x343)](_0x123e87)};_0x5f71ba[_0x4dbb95(0x1df)](_0x3dedd0);}}));}};ie=zt([N(0x0,a[_0xde5e7f(0x300)](T[_0xde5e7f(0x2dd)])),N(0x1,a[_0xde5e7f(0x300)](u[_0xde5e7f(0xcd)])),N(0x2,a[_0xde5e7f(0x300)](ee)),N(0x3,a[_0xde5e7f(0x300)](te)),N(0x4,a[_0xde5e7f(0x300)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0xde5e7f(0x30b)]),N(0x7,a['Inject'](a['LocaleService']))],ie);var G=(_0x5e7e9e=>(_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x245)]=0x0]=_0xde5e7f(0x245),_0x5e7e9e[_0x5e7e9e['OK']=0x1]='OK',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1f0)]=0x2]=_0xde5e7f(0x1f0),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1dd)]=0x3]=_0xde5e7f(0x1dd),_0x5e7e9e[_0x5e7e9e['NOT_FOUND']=0x4]=_0xde5e7f(0x1c9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1d6)]=0x5]=_0xde5e7f(0x1d6),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x288)]=0x6]='ALREADY_EXISTS',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2e5)]=0x7]=_0xde5e7f(0x2e5),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1bb)]=0x8]=_0xde5e7f(0x1bb),_0x5e7e9e[_0x5e7e9e['COMPLETION_FINISHED']=0x9]=_0xde5e7f(0x152),_0x5e7e9e[_0x5e7e9e['LOGIN_FAILED']=0xa]=_0xde5e7f(0x311),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x10d)]=0xb]=_0xde5e7f(0x10d),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2a4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1a5)]=0xd]=_0xde5e7f(0x1a5),_0x5e7e9e[_0x5e7e9e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0xde5e7f(0x1e7),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x239)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5e7e9e[_0x5e7e9e['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0xde5e7f(0xfd),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x9c)]=0x64]=_0xde5e7f(0x9c),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2d7)]=0x65]=_0xde5e7f(0x2d7),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x182)]=0xc9]=_0xde5e7f(0x182),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1f9)]=0xca]=_0xde5e7f(0x1f9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x10e)]=0x1389]=_0xde5e7f(0x10e),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2e6)]=0x1771]=_0xde5e7f(0x2e6),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x223)]=0x1772]=_0xde5e7f(0x223),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x26d)]=0x1773]=_0xde5e7f(0x26d),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x186)]=0x1b59]='APPLY_REJECT',_0x5e7e9e[_0x5e7e9e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0xde5e7f(0x127),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x14c)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xc7)]=0x1b5c]=_0xde5e7f(0xc7),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xec)]=0x1b5d]=_0xde5e7f(0xec),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x310)]=0x1f41]=_0xde5e7f(0x310),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x9e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5e7e9e[_0x5e7e9e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xde5e7f(0x1a9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xa8)]=0x232b]=_0xde5e7f(0xa8),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x16e)]=0x232c]=_0xde5e7f(0x16e),_0x5e7e9e[_0x5e7e9e['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x23f)]=0x2711]=_0xde5e7f(0x23f),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x163)]=0x2712]=_0xde5e7f(0x163),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x291)]=0x2713]=_0xde5e7f(0x291),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x8d)]=0x2714]=_0xde5e7f(0x8d),_0x5e7e9e[_0x5e7e9e['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0xde5e7f(0x2b0),_0x5e7e9e[_0x5e7e9e['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1be)]=0x271c]=_0xde5e7f(0x1be),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x30f)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2fc)]=0x271e]=_0xde5e7f(0x2fc),_0x5e7e9e[_0x5e7e9e['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x5e7e9e[_0x5e7e9e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x256)]=0x2af9]=_0xde5e7f(0x256),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1b9)]=0x2ee1]=_0xde5e7f(0x1b9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xbe)]=0x2ee2]='INVALID_INVITE_CODE',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x28a)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x12c)]=0x2ee4]=_0xde5e7f(0x12c),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x8f)]=0x2ee5]=_0xde5e7f(0x8f),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x346)]=0x32c9]=_0xde5e7f(0x346),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2b4)]=0x32ca]=_0xde5e7f(0x2b4),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2d9)]=0x32cb]=_0xde5e7f(0x2d9),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x27d)]=0x36b1]=_0xde5e7f(0x27d),_0x5e7e9e[_0x5e7e9e['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0xde5e7f(0x281),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2f0)]=0x36b3]=_0xde5e7f(0x2f0),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xe9)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x157)]=0x36b5]=_0xde5e7f(0x157),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xb7)]=0x36b6]=_0xde5e7f(0xb7),_0x5e7e9e[_0x5e7e9e['ENTITLE_COUPON_USED_UP']=0x36b7]=_0xde5e7f(0x7e),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x160)]=0x36b8]=_0xde5e7f(0x160),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2dc)]=0x3715]=_0xde5e7f(0x2dc),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x13f)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5e7e9e[_0x5e7e9e['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0xde5e7f(0x197),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x282)]=0x37dd]=_0xde5e7f(0x282),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x11f)]=0x3a99]=_0xde5e7f(0x11f),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x93)]=0x3a9a]=_0xde5e7f(0x93),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1c6)]=0x3a9b]=_0xde5e7f(0x1c6),_0x5e7e9e[_0x5e7e9e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0xde5e7f(0xfa),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x267)]=0x3a9d]=_0xde5e7f(0x267),_0x5e7e9e[_0x5e7e9e['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0xde5e7f(0x23a),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0xf8)]=0x3a9f]=_0xde5e7f(0xf8),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x1e6)]=0x3e81]=_0xde5e7f(0x1e6),_0x5e7e9e[_0x5e7e9e[_0xde5e7f(0x2ae)]=-0x1]=_0xde5e7f(0x2ae),_0x5e7e9e))(G||{});function Jt(_0x2c91ae){const _0x5b9e51=_0xde5e7f;var _0x426997,_0x42bba8;const _0x51d71c=(_0x426997=_0x2c91ae[_0x5b9e51(0x167)])==null?void 0x0:_0x426997[_0x5b9e51(0x12a)],_0x44dc43=((_0x42bba8=_0x2c91ae[_0x5b9e51(0x167)])==null?void 0x0:_0x42bba8[_0x5b9e51(0x2b1)])||0x0;return _0x51d71c===B[_0x5b9e51(0x26b)][_0x5b9e51(0xde)]&&_0x44dc43>0x0;}function Zt(_0x3b62a8){const _0x4c1236=_0xde5e7f;return _0x3b62a8['functionsExecutedState']===B[_0x4c1236(0x289)][_0x4c1236(0xa2)];}var Qt=Object[_0xde5e7f(0x100)],es=(_0x1f8a15,_0xe9ee76,_0x20d509,_0x381880)=>{for(var _0x382e97=_0x381880>0x1?void 0x0:_0x381880?Qt(_0xe9ee76,_0x20d509):_0xe9ee76,_0x13fd64=_0x1f8a15['length']-0x1,_0x2c8803;_0x13fd64>=0x0;_0x13fd64--)(_0x2c8803=_0x1f8a15[_0x13fd64])&&(_0x382e97=_0x2c8803(_0x382e97)||_0x382e97);return _0x382e97;},L=(_0x13b8f0,_0x2ce5cc)=>(_0x4dd886,_0x4d7e88)=>_0x2ce5cc(_0x4dd886,_0x4d7e88,_0x13b8f0);const ts='/universer-api/license/formula/limit/status',ss=_0xde5e7f(0x255),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0xde5e7f(0x109)]{constructor(_0x74d78e,_0x5273e4,_0x2bdec5,_0x56bb43,_0x1618a6,_0x262f9f,_0x2221ca){const _0x4313b4=_0xde5e7f;super(),_(this,'_pollingInterval',null),_(this,_0x4313b4(0x33a),0x0),_(this,_0x4313b4(0x2fa),0x0),_(this,_0x4313b4(0x2f9),[]),_(this,_0x4313b4(0x2d5),0x0),(this[_0x4313b4(0x15c)]=_0x74d78e,this['_commandService']=_0x5273e4,this[_0x4313b4(0xef)]=_0x2bdec5,this[_0x4313b4(0x1d1)]=_0x56bb43,this[_0x4313b4(0x1e1)]=_0x1618a6,this['_logService']=_0x262f9f,this[_0x4313b4(0x206)]=_0x2221ca,this['_initCommandInterceptor']());}[_0xde5e7f(0x12e)](){const _0x46920f=_0xde5e7f;this[_0x46920f(0x19e)](this['_commandService']['beforeCommandExecuted']((_0x52cd31,_0x1ddcb8)=>{const _0x24962b=_0x46920f;var _0x373f4e;if(_0x52cd31['id']!==B[_0x24962b(0x30e)]['id'])return;const _0x1eeb72=_0x52cd31['params'];if(!this[_0x24962b(0x2de)]((_0x373f4e=_0x1eeb72[_0x24962b(0x2bc)])!=null?_0x373f4e:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x24962b(0x31d)](_0x52cd31,_0x1ddcb8),this[_0x24962b(0x25c)](),new a[(_0x24962b(0x126))]();})),this[_0x46920f(0x19e)](this[_0x46920f(0x220)][_0x46920f(0x1fe)]((_0xe315fb,_0x213fd5)=>{const _0x3bfd77=_0x46920f;if(_0xe315fb['id']!==B[_0x3bfd77(0x1ee)]['id'])return;const _0x39b2e5=_0xe315fb[_0x3bfd77(0x96)];if(Jt(_0x39b2e5)){const _0x6cecbc=a[_0x3bfd77(0xa6)]();this[_0x3bfd77(0x2f9)][_0x3bfd77(0x32f)](_0x6cecbc),this[_0x3bfd77(0x22c)](_0x6cecbc);}else{if(Zt(_0x39b2e5)&&this[_0x3bfd77(0x2f9)][_0x3bfd77(0x1ef)]>0x0){const _0x19de8f=this[_0x3bfd77(0x2f9)][_0x3bfd77(0x19a)]();this[_0x3bfd77(0x31f)](_0x19de8f);}}}));}[_0xde5e7f(0x29b)](){const _0x2517d4=_0xde5e7f;super['dispose'](),this[_0x2517d4(0x133)](),this[_0x2517d4(0x2f9)]=[],this['_currentUsage']=0x0,this[_0x2517d4(0x33a)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xde5e7f(0x31d)](_0x5764cf,_0x20c1e2){const _0x11880e=_0xde5e7f;for(let _0xb04be1=0x0;_0xb04be1<0x1e;_0xb04be1++)try{if(await this[_0x11880e(0x2c5)](),this[_0x11880e(0x1d0)]()){this[_0x11880e(0x174)](_0x5764cf,_0x20c1e2),this['_messageService'][_0x11880e(0x196)]({'content':this[_0x11880e(0x206)]['t'](_0x11880e(0x17b)),'type':p[_0x11880e(0x264)]['Success']});return;}await new Promise(_0x3af917=>{const _0x4978d1=_0x11880e;this['_pollingInterval']=window[_0x4978d1(0xb3)](_0x3af917,0x3e8);});}catch(_0x53e633){this[_0x11880e(0x1cf)]['error'](_0x53e633);}this[_0x11880e(0x15c)][_0x11880e(0x196)]({'content':this[_0x11880e(0x206)]['t'](_0x11880e(0x122)),'type':p[_0x11880e(0x264)]['Error']});}['_applyCommand'](_0x4c134b,_0x347bf4){const _0x383cac=_0xde5e7f;try{this[_0x383cac(0x220)][_0x383cac(0x1cc)](_0x4c134b['id'],_0x4c134b['params'],_0x347bf4);}catch(_0x457f44){this[_0x383cac(0x1cf)]['error'](_0x457f44);}}[_0xde5e7f(0x29e)](_0x508529,_0x267979){const _0x84ce42=_0xde5e7f;_0x267979<this[_0x84ce42(0x2d5)]||(this['_lastResponseTimestamp']=_0x267979,this[_0x84ce42(0x33a)]=Number['parseInt'](_0x508529[_0x84ce42(0x1b6)]),this[_0x84ce42(0x2fa)]=Number[_0x84ce42(0x7b)](_0x508529[_0x84ce42(0x87)]));}async[_0xde5e7f(0x22c)](_0x4734ed){const _0x2753ec=_0xde5e7f;var _0x1ad16e,_0x107caf;const _0x33006c=Date[_0x2753ec(0x1c1)]();try{const _0x37e41e=((_0x1ad16e=this['_configService']['getConfig'](u[_0x2753ec(0x12d)]))==null?void 0x0:_0x1ad16e[_0x2753ec(0x213)])||ss,_0x2ef5d0=(await this[_0x2753ec(0x1d1)][_0x2753ec(0x32d)](_0x37e41e,{'body':JSON['stringify']({'taskId':_0x4734ed})}))[_0x2753ec(0x1da)];if(((_0x107caf=_0x2ef5d0[_0x2753ec(0x238)])==null?void 0x0:_0x107caf[_0x2753ec(0x181)])!==G['OK'])return;this[_0x2753ec(0x29e)](_0x2ef5d0[_0x2753ec(0x110)],_0x33006c);}catch(_0x330fa0){this[_0x2753ec(0x1cf)][_0x2753ec(0x238)](_0x330fa0);}}async[_0xde5e7f(0x2c5)](_0x40184b){const _0x3031a1=_0xde5e7f;var _0x46f77b,_0x3188cf;const _0x313078=Date[_0x3031a1(0x1c1)]();try{const _0x5715e5=((_0x46f77b=this['_configService']['getConfig'](u[_0x3031a1(0x12d)]))==null?void 0x0:_0x46f77b[_0x3031a1(0x176)])||ts,_0x4b9e14=_0x40184b?_0x5715e5+_0x3031a1(0x80)+encodeURIComponent(_0x40184b):_0x5715e5,_0x3adcc7=(await this['_httpService'][_0x3031a1(0x247)](_0x4b9e14))[_0x3031a1(0x1da)];if(((_0x3188cf=_0x3adcc7[_0x3031a1(0x238)])==null?void 0x0:_0x3188cf[_0x3031a1(0x181)])!==G['OK'])return;this[_0x3031a1(0x29e)](_0x3adcc7[_0x3031a1(0x110)],_0x313078);}catch(_0x51719b){this['_logService'][_0x3031a1(0x238)](_0x51719b);}}async['_releaseCalculationLimit'](_0x54a2f7){const _0x28ba61=_0xde5e7f;var _0x51e305,_0x476100;const _0x306de2=Date['now']();try{const _0x147c5e=((_0x51e305=this[_0x28ba61(0xef)][_0x28ba61(0x200)](u[_0x28ba61(0x12d)]))==null?void 0x0:_0x51e305[_0x28ba61(0xda)])||is,_0x23404b=(await this[_0x28ba61(0x1d1)][_0x28ba61(0x32d)](_0x147c5e,{'body':JSON[_0x28ba61(0x143)]({'taskId':_0x54a2f7})}))['body'];if(((_0x476100=_0x23404b[_0x28ba61(0x238)])==null?void 0x0:_0x476100[_0x28ba61(0x181)])!==G['OK'])return;this[_0x28ba61(0x29e)](_0x23404b[_0x28ba61(0x110)],_0x306de2);}catch(_0x26d1b2){this[_0x28ba61(0x1cf)][_0x28ba61(0x238)](_0x26d1b2);}}[_0xde5e7f(0x1d0)](){const _0x21fd26=_0xde5e7f;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x21fd26(0x2fa)]>0x0;}[_0xde5e7f(0x133)](){const _0x143b0e=_0xde5e7f;this[_0x143b0e(0x320)]&&(clearTimeout(this[_0x143b0e(0x320)]),this[_0x143b0e(0x320)]=null);}['_showGuardMessage'](){const _0x2968b9=_0xde5e7f;this[_0x2968b9(0x15c)][_0x2968b9(0x196)]({'content':this[_0x2968b9(0x206)]['t']('formula.calculation.waiting'),'type':p['MessageType'][_0x2968b9(0x23c)]});}[_0xde5e7f(0x2de)](_0x361413){const _0x32b756=_0xde5e7f;for(const _0x491349 of _0x361413){const {unitId:_0x402c64,sheetId:_0x32ede8,range:_0x5ad021}=_0x491349,_0x5b8102=this[_0x32b756(0x1e1)]['getUnit'](_0x402c64);if(!_0x5b8102)continue;const _0x3b36b=_0x5b8102[_0x32b756(0x339)](_0x32ede8);if(!_0x3b36b)continue;const _0x37b771=_0x3b36b['getCellMatrix']();for(let _0x4ca8b0=_0x5ad021[_0x32b756(0xeb)];_0x4ca8b0<=_0x5ad021['endRow'];_0x4ca8b0++)for(let _0x5a929d=_0x5ad021['startColumn'];_0x5a929d<=_0x5ad021[_0x32b756(0x191)];_0x5a929d++){const _0x46bcd7=_0x37b771[_0x32b756(0x1c4)](_0x4ca8b0,_0x5a929d);if(_0x46bcd7&&(a[_0x32b756(0x166)](_0x46bcd7['f'])||a[_0x32b756(0x1a1)](_0x46bcd7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0xde5e7f(0x300)](O['IMessageService'])),L(0x1,a[_0xde5e7f(0x32c)]),L(0x2,a[_0xde5e7f(0x16c)]),L(0x3,a[_0xde5e7f(0x300)](x['HTTPService'])),L(0x4,a[_0xde5e7f(0x2e3)]),L(0x5,a['ILogService']),L(0x6,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1b5)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x16312f,_0x5d9e9f,_0x1d3dd8,_0x2cfbc4)=>{for(var _0x2d30ff=_0x2cfbc4>0x1?void 0x0:_0x2cfbc4?ns(_0x5d9e9f,_0x1d3dd8):_0x5d9e9f,_0x4e6cd9=_0x16312f['length']-0x1,_0x5e0cb9;_0x4e6cd9>=0x0;_0x4e6cd9--)(_0x5e0cb9=_0x16312f[_0x4e6cd9])&&(_0x2d30ff=_0x5e0cb9(_0x2d30ff)||_0x2d30ff);return _0x2d30ff;},Se=(_0x56f8fe,_0x21392b)=>(_0x274ddf,_0x194f87)=>_0x21392b(_0x274ddf,_0x194f87,_0x56f8fe);let Te=class extends a['Disposable']{constructor(_0x3188ef,_0x1c4ba9,_0x25af3f){const _0x51fd56=_0xde5e7f;super(),_(this,_0x51fd56(0x30d),new Map()),_(this,_0x51fd56(0x20f),new Map()),_(this,_0x51fd56(0x107),!0x1),(this[_0x51fd56(0xef)]=_0x3188ef,this[_0x51fd56(0x278)]=_0x1c4ba9,this[_0x51fd56(0x2cd)]=_0x25af3f);}[_0xde5e7f(0x201)](){const _0x894cd6=_0xde5e7f;this[_0x894cd6(0x107)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0xde5e7f(0x10b)](){return this['_saveTaskMap'];}[_0xde5e7f(0x29b)](){const _0x3f0b33=_0xde5e7f;this['exhaustSavingTask']()[_0x3f0b33(0x205)](()=>super[_0x3f0b33(0x29b)]());}async[_0xde5e7f(0x1d8)](_0x2d8078){const _0x10de42=_0xde5e7f;return this['_disabled']?null:this['_localStorageService'][_0x10de42(0x117)](u[_0x10de42(0x2c3)](_0x2d8078));}async[_0xde5e7f(0x1dc)](_0x570175,_0x33b8b1){const _0x46c822=_0xde5e7f;return!!this[_0x46c822(0x278)]['setItem'](_0x570175,_0x33b8b1);}[_0xde5e7f(0x140)](_0x3ac41c,_0x2b50d1,_0x122ae7,_0x3d3f2c){const _0x29e061=_0xde5e7f,_0x137ace=this['_revisionService'][_0x29e061(0x1f3)](_0x3ac41c);this[_0x29e061(0x30d)]['set'](_0x3ac41c,{'unitID':_0x3ac41c,'type':_0x2b50d1,'awaitingChangeset':_0x122ae7,'mutations':_0x3d3f2c,'rev':_0x137ace}),this[_0x29e061(0x20f)][_0x29e061(0xea)](_0x3ac41c)||this[_0x29e061(0x179)](_0x3ac41c);}[_0xde5e7f(0x179)](_0x4ede4f){const _0x22badb=_0xde5e7f,_0x30b45c=this[_0x22badb(0x1a3)]();_0x30b45c===0x0?this[_0x22badb(0x31c)](_0x4ede4f):this[_0x22badb(0x20f)][_0x22badb(0x258)](_0x4ede4f,setTimeout(()=>this[_0x22badb(0x31c)](_0x4ede4f),_0x30b45c));}[_0xde5e7f(0x1a3)](){const _0x70a8f5=_0xde5e7f;var _0xdbfd1d;return(_0xdbfd1d=this[_0x70a8f5(0xef)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xdbfd1d:u[_0x70a8f5(0x198)];}[_0xde5e7f(0x31c)](_0x1e7cde){const _0x153eef=_0xde5e7f,_0x2e1b1e=this[_0x153eef(0x20f)][_0x153eef(0x247)](_0x1e7cde);return _0x2e1b1e!==void 0x0&&window['clearTimeout'](_0x2e1b1e),this['_localStorageService']['setItem'](u[_0x153eef(0x2c3)](_0x1e7cde),this[_0x153eef(0x30d)][_0x153eef(0x247)](_0x1e7cde))[_0x153eef(0x205)](()=>this[_0x153eef(0x20f)][_0x153eef(0x22b)](_0x1e7cde));}async[_0xde5e7f(0x15d)](){const _0x2a3b1b=_0xde5e7f,_0x1af1b6=[];this[_0x2a3b1b(0x20f)]['forEach']((_0x291ba9,_0x20159d)=>{const _0x852aec=_0x2a3b1b;window[_0x852aec(0xaf)](_0x291ba9),_0x1af1b6[_0x852aec(0x32f)](this[_0x852aec(0x31c)](_0x20159d)[_0x852aec(0x205)](()=>{const _0x762f15=_0x852aec;this[_0x762f15(0x20f)][_0x762f15(0x22b)](_0x20159d);}));}),await Promise[_0x2a3b1b(0xdd)](_0x1af1b6);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0xde5e7f(0x22e)]),Se(0x2,a['Inject'](g[_0xde5e7f(0xd6)]))],Te);class ke extends a[_0xde5e7f(0x286)]{constructor(){const _0x4b24ba=_0xde5e7f;super(),_(this,_0x4b24ba(0x224)),this[_0x4b24ba(0x224)]=I['fromEvent'](window,'popstate')['pipe'](I['takeUntil'](this[_0x4b24ba(0x307)]),I['shareReplay'](0x1),I[_0x4b24ba(0x1ed)](void 0x0));}[_0xde5e7f(0x296)](_0x3dfaf8,_0x472cbc,_0x373721=!0x1){const _0x2644cd=_0xde5e7f,_0x25893f=new URL(window[_0x2644cd(0x15a)]['href']);_0x25893f['searchParams'][_0x2644cd(0x258)](_0x3dfaf8,_0x472cbc),_0x373721?window[_0x2644cd(0x141)][_0x2644cd(0x266)]('','',_0x25893f[_0x2644cd(0x13b)]()):window[_0x2644cd(0x141)][_0x2644cd(0x292)]('','',_0x25893f['toString']());}[_0xde5e7f(0x92)](_0x39be42,_0x18011e=!0x1){const _0x37ed4a=_0xde5e7f,_0x31e7a0=new URL(window[_0x37ed4a(0x15a)]['href']);_0x31e7a0['searchParams']['delete'](_0x39be42),_0x18011e?window[_0x37ed4a(0x141)]['replaceState']('','',_0x31e7a0[_0x37ed4a(0x13b)]()):window['history'][_0x37ed4a(0x292)]('','',_0x31e7a0[_0x37ed4a(0x13b)]());}[_0xde5e7f(0x168)](_0x2e0035){const _0x14d048=_0xde5e7f;var _0x1555b1;return(_0x1555b1=new URL(window['location'][_0x14d048(0x1ec)])[_0x14d048(0x26f)][_0x14d048(0x247)](_0x2e0035))!=null?_0x1555b1:void 0x0;}}var os=Object[_0xde5e7f(0x2d3)],as=Object[_0xde5e7f(0x100)],cs=(_0x392198,_0x2a1a3b,_0x33ac4c)=>_0x2a1a3b in _0x392198?os(_0x392198,_0x2a1a3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33ac4c}):_0x392198[_0x2a1a3b]=_0x33ac4c,ls=(_0x10bbb1,_0x1741ad,_0x4a0c6e,_0x439b27)=>{const _0x1372f3=_0xde5e7f;for(var _0x40cc9e=_0x439b27>0x1?void 0x0:_0x439b27?as(_0x1741ad,_0x4a0c6e):_0x1741ad,_0x4c5063=_0x10bbb1[_0x1372f3(0x1ef)]-0x1,_0xb8854f;_0x4c5063>=0x0;_0x4c5063--)(_0xb8854f=_0x10bbb1[_0x4c5063])&&(_0x40cc9e=_0xb8854f(_0x40cc9e)||_0x40cc9e);return _0x40cc9e;},de=(_0x314d34,_0x2a1078)=>(_0x2a2b50,_0x2a105e)=>_0x2a1078(_0x2a2b50,_0x2a105e,_0x314d34),_s=(_0x5289b0,_0x3e5f3d,_0x44d7d1)=>cs(_0x5289b0,_0x3e5f3d+'',_0x44d7d1);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0xde5e7f(0x212)]=class extends a['Plugin']{constructor(_0x33b555=Me,_0x2c6462,_0x4b0b12,_0x2d497d){const _0x1dae0a=_0xde5e7f;super(),this['_config']=_0x33b555,this[_0x1dae0a(0x303)]=_0x2c6462,this[_0x1dae0a(0x2eb)]=_0x4b0b12,this[_0x1dae0a(0xef)]=_0x2d497d;const {..._0x14e0f6}=a[_0x1dae0a(0x11d)]({},Me,this[_0x1dae0a(0x233)]);this[_0x1dae0a(0xef)][_0x1dae0a(0x262)](Yt,_0x14e0f6);}['onStarting'](){const _0x27a3c8=_0xde5e7f;this[_0x27a3c8(0x91)](),this[_0x27a3c8(0x26e)]();}[_0xde5e7f(0x111)](){const _0x3dc845=_0xde5e7f;this[_0x3dc845(0x9f)]();}[_0xde5e7f(0x91)](){const _0x35bac9=_0xde5e7f;var _0x1c711c;const _0x50f64c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x['WebSocketService']}],[u[_0x35bac9(0x25a)],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports[_0x35bac9(0x313)]]];this[_0x35bac9(0x233)]['enableFrontendLog']&&_0x50f64c[_0x35bac9(0x32f)]([Q]),a[_0x35bac9(0x1ba)](this[_0x35bac9(0x2eb)],a[_0x35bac9(0x221)](_0x50f64c,(_0x1c711c=this[_0x35bac9(0x233)])==null?void 0x0:_0x1c711c['override']));}[_0xde5e7f(0x9f)](){const _0x4a0289=_0xde5e7f;this[_0x4a0289(0x19e)](this[_0x4a0289(0x303)][_0x4a0289(0x16b)](a[_0x4a0289(0xd9)][_0x4a0289(0x2e7)],[Ee])),this[_0x4a0289(0x19e)](this[_0x4a0289(0x303)][_0x4a0289(0x16b)](a[_0x4a0289(0xd9)][_0x4a0289(0x24e)],[Ce]));}['_initDependencies'](){const _0x5987e0=_0xde5e7f;a['touchDependencies'](this['_injector'],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x5987e0(0x313)]],[ne]]),this[_0x5987e0(0x233)]['enableFrontendLog']&&a['touchDependencies'](this[_0x5987e0(0x2eb)],[[Q]]);}},_s(exports[_0xde5e7f(0x212)],_0xde5e7f(0x16d),hs),exports[_0xde5e7f(0x212)]=ls([a['DependentOn'](u[_0xde5e7f(0xd1)]),de(0x1,C[_0xde5e7f(0x1ce)]),de(0x2,a[_0xde5e7f(0x300)](a['Injector'])),de(0x3,a[_0xde5e7f(0x16c)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0xde5e7f(0x100)],Is=(_0x3c85a7,_0x372974,_0x2079e3,_0x39e836)=>{const _0x1f66b9=_0xde5e7f;for(var _0xf1f138=_0x39e836>0x1?void 0x0:_0x39e836?us(_0x372974,_0x2079e3):_0x372974,_0x2836df=_0x3c85a7[_0x1f66b9(0x1ef)]-0x1,_0x3c5368;_0x2836df>=0x0;_0x2836df--)(_0x3c5368=_0x3c85a7[_0x2836df])&&(_0xf1f138=_0x3c5368(_0xf1f138)||_0xf1f138);return _0xf1f138;},W=(_0x32179d,_0x501bc2)=>(_0x351bc0,_0x17cc35)=>_0x501bc2(_0x351bc0,_0x17cc35,_0x32179d);exports[_0xde5e7f(0x2e9)]=class extends u['CollaborationSocketService']{constructor(_0x2b91e4,_0x12e3dd,_0x336a13,_0x2e0f80,_0x2ad84d){super(_0x2b91e4,_0x12e3dd,_0x336a13,_0x2e0f80,_0x2ad84d);}async['createSocket'](_0x59b091){const _0x431c10=_0xde5e7f,_0x39b39e=await this[_0x431c10(0x78)](),_0x8fceaa=this[_0x431c10(0x15f)](_0x59b091,_0x39b39e);return this[_0x431c10(0x1e3)](_0x8fceaa);}[_0xde5e7f(0x15f)](_0x1ca378,_0x3f80dc){const _0x1eb86e=_0xde5e7f,_0x559289=typeof window>'u'?new URL(_0x1ca378):new URL(_0x1ca378,window[_0x1eb86e(0x15a)][_0x1eb86e(0x285)]);_0x559289[_0x1eb86e(0x26f)][_0x1eb86e(0x258)](_0x1eb86e(0x158),_0x3f80dc);const _0x455e2d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1eb86e(0xd4)]);return _0x455e2d[_0x1eb86e(0x247)](_0x1eb86e(0x2cf))&&_0x559289[_0x1eb86e(0x26f)][_0x1eb86e(0x258)](_0x1eb86e(0x2cf),_0x455e2d[_0x1eb86e(0x247)](_0x1eb86e(0x2cf))),_0x559289['toString']();}async[_0xde5e7f(0x78)](){const _0x3825c7=_0xde5e7f;var _0x541e89,_0x5b0d21,_0x3d50dc;const _0x2b2e13=this['_configService'][_0x3825c7(0x200)](u[_0x3825c7(0x12d)]),_0x34a8ed=(_0x541e89=_0x2b2e13==null?void 0x0:_0x2b2e13[_0x3825c7(0xe8)])!=null?_0x541e89:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3d50dc=(_0x5b0d21=(await this[_0x3825c7(0x1d1)][_0x3825c7(0x247)](_0x34a8ed,{'headers':{'Content-Type':_0x3825c7(0x138)}}))[_0x3825c7(0x1da)])==null?void 0x0:_0x5b0d21['ticket'])!=null?_0x3d50dc:'';}},exports[_0xde5e7f(0x2e9)]=Is([W(0x0,a[_0xde5e7f(0x300)](a[_0xde5e7f(0x1f2)])),W(0x1,a[_0xde5e7f(0x300)](x[_0xde5e7f(0x1b7)])),W(0x2,a['IConfigService']),W(0x3,a[_0xde5e7f(0x2f4)]),W(0x4,g[_0xde5e7f(0x9b)])],exports[_0xde5e7f(0x2e9)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x36dc71,_0x15573e,_0x4cb475,_0x48176b)=>{const _0x4b1906=_0xde5e7f;for(var _0x2b9376=_0x48176b>0x1?void 0x0:_0x48176b?Ss(_0x15573e,_0x4cb475):_0x15573e,_0xaa7b68=_0x36dc71[_0x4b1906(0x1ef)]-0x1,_0x215f4f;_0xaa7b68>=0x0;_0xaa7b68--)(_0x215f4f=_0x36dc71[_0xaa7b68])&&(_0x2b9376=_0x215f4f(_0x2b9376)||_0x2b9376);return _0x2b9376;},fe=(_0x56aa3d,_0x93e29)=>(_0x4ece11,_0x41c8a3)=>_0x93e29(_0x4ece11,_0x41c8a3,_0x56aa3d);exports[_0xde5e7f(0x151)]=class extends a[_0xde5e7f(0x109)]{constructor(_0x4735f4,_0x601898,_0x478ac2){const _0x16bca5=_0xde5e7f;super(),this[_0x16bca5(0x21c)]=_0x4735f4,this[_0x16bca5(0x1d1)]=_0x601898,this['_configService']=_0x478ac2;}async['runOnServer'](_0x3d9ffa,_0x2115ce,_0x3c6f5a,..._0xf3fd34){const _0x42cbbb=_0xde5e7f;var _0x56f772,_0x1a4ccc,_0x3df428,_0x1c8694;const _0x257552=this['_instanceService'][_0x42cbbb(0x15b)]();if(!_0x257552)throw new Error(_0x42cbbb(0x12b));const _0x297537=((_0x56f772=this['_configService'][_0x42cbbb(0x200)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x56f772:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x3d9ffa+'/run/'+_0x2115ce,_0x22351e=new URL(window['location'][_0x42cbbb(0x1ec)]),_0x3370ee={'scriptId':_0x3d9ffa,'runId':(_0x1a4ccc=_0x22351e[_0x42cbbb(0x26f)][_0x42cbbb(0x247)]('runId'))!=null?_0x1a4ccc:'','function':_0x2115ce,'unitId':_0x257552['getUnitId'](),'argsOfFunction':JSON[_0x42cbbb(0x143)](_0xf3fd34),'invokeId':(_0x3df428=_0x3c6f5a[_0x42cbbb(0x315)])!=null?_0x3df428:'','executionId':(_0x1c8694=_0x3c6f5a[_0x42cbbb(0x97)])!=null?_0x1c8694:''};try{const _0x2a3b8a=await this[_0x42cbbb(0x1d1)][_0x42cbbb(0x32d)](_0x297537,{'body':_0x3370ee});return _0x2a3b8a[_0x42cbbb(0x1da)][_0x42cbbb(0x238)]&&_0x2a3b8a[_0x42cbbb(0x1da)][_0x42cbbb(0x238)][_0x42cbbb(0x181)]!==G['OK']?_0x42cbbb(0x1a2):_0x2a3b8a['body']['result'];}catch{return'Failed';}}},exports[_0xde5e7f(0x151)]=ds([fe(0x0,a[_0xde5e7f(0x2e3)]),fe(0x1,a[_0xde5e7f(0x300)](x[_0xde5e7f(0x1b7)])),fe(0x2,a[_0xde5e7f(0x16c)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0xde5e7f(0xa7);class fs extends a[_0xde5e7f(0x109)]{constructor(){const _0x194e54=_0xde5e7f;super(),_(this,_0x194e54(0x2b3),a[_0x194e54(0xa6)]()),_(this,_0x194e54(0x237),new Set()),_(this,_0x194e54(0xe3),new Map()),_(this,_0x194e54(0x1d9),null),_(this,_0x194e54(0x1d4),new Map()),_(this,_0x194e54(0x125),new Map()),this['_init']();}[_0xde5e7f(0x29b)](){const _0x2118e3=_0xde5e7f;super['dispose'](),this[_0x2118e3(0x1d4)][_0x2118e3(0x1a7)]((_0x574920,_0x30ea94)=>this[_0x2118e3(0xab)](_0x30ea94)),this[_0x2118e3(0x1d9)]&&window[_0x2118e3(0x1de)](this['_heartbeatTimer']);}[_0xde5e7f(0x31e)](_0x1ee9bf){const _0x4874a1=_0xde5e7f;return this[_0x4874a1(0x1f8)](_0x1ee9bf)[_0x4874a1(0x27a)](I[_0x4874a1(0x214)]());}[_0xde5e7f(0x33f)](_0x24c295){const _0x5ac835=_0xde5e7f;this[_0x5ac835(0x237)][_0x5ac835(0x1ae)]===0x0&&this[_0x5ac835(0x222)](),this[_0x5ac835(0x237)][_0x5ac835(0x165)](_0x24c295),this[_0x5ac835(0x1d2)]({'type':0x0,'memberID':this[_0x5ac835(0x2b3)],'unitIDs':[_0x24c295],'isForwarded':!0x1});}[_0xde5e7f(0x1e9)](_0xd8d6f3){const _0x5d6fab=_0xde5e7f;this['_selfUnitIDs'][_0x5d6fab(0x22b)](_0xd8d6f3),this[_0x5d6fab(0x237)][_0x5d6fab(0x1ae)]===0x0&&this[_0x5d6fab(0x1d9)]&&window['clearInterval'](this[_0x5d6fab(0x1d9)]);}[_0xde5e7f(0x8c)](){const _0x29876c=_0xde5e7f;this[_0x29876c(0x19e)](a[_0x29876c(0x116)](I[_0x29876c(0xa9)](window,_0x29876c(0x192))['subscribe'](_0x244ba8=>{const _0xd4be43=_0x29876c;if(_0x244ba8[_0xd4be43(0x259)]!==ye||!_0x244ba8[_0xd4be43(0x8a)])return;const _0x3fd9b9=JSON[_0xd4be43(0x324)](_0x244ba8['newValue']);this[_0xd4be43(0x2fb)](_0x3fd9b9);}))),window['addEventListener'](_0x29876c(0x13a),()=>this['_send']({'type':0x1,'memberID':this[_0x29876c(0x2b3)],'unitIDs':Array[_0x29876c(0x260)](this[_0x29876c(0x237)])}));}[_0xde5e7f(0x2fb)](_0x5cf80d){const _0x328a7c=_0xde5e7f;switch(_0x5cf80d[_0x328a7c(0x1ab)]){case 0x0:this[_0x328a7c(0xbd)](_0x5cf80d);break;case 0x1:this[_0x328a7c(0x131)](_0x5cf80d);break;case 0x2:this[_0x328a7c(0x257)](_0x5cf80d);break;}}[_0xde5e7f(0xbd)](_0x34b4f1){const _0x50cd43=_0xde5e7f,{unitIDs:_0x32100a,memberID:_0x48cf8a,isForwarded:_0x587363}=_0x34b4f1;_0x32100a[_0x50cd43(0x1a7)](_0x21323a=>{const _0x134440=_0x50cd43;if(!_0x587363&&this[_0x134440(0xe3)][_0x134440(0xea)](_0x21323a)&&this[_0x134440(0x1f8)](_0x21323a)['next'](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x134440(0xe3)][_0x134440(0xea)](_0x21323a)||!this[_0x134440(0xe3)][_0x134440(0x247)](_0x21323a)[_0x134440(0xea)](_0x48cf8a)){const _0xfab1fa=this[_0x134440(0xe3)][_0x134440(0x247)](_0x21323a)||new Set();_0xfab1fa['add'](_0x48cf8a),this['_unitOnClients'][_0x134440(0x258)](_0x21323a,_0xfab1fa),this[_0x134440(0x338)](_0x48cf8a);}}),_0x587363||this[_0x50cd43(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x50cd43(0x237)]],'isForwarded':!0x0});}[_0xde5e7f(0x338)](_0x570f79){const _0x4ec381=_0xde5e7f;this[_0x4ec381(0xab)](_0x570f79);const _0x5ccf3a=window[_0x4ec381(0xb3)](()=>{const _0x175f80=_0x4ec381;this[_0x175f80(0xe3)]['forEach'](_0x8d5d35=>{const _0x48e698=_0x175f80;_0x8d5d35[_0x48e698(0x22b)](_0x570f79);});},we*0x2);this[_0x4ec381(0x1d4)]['set'](_0x570f79,_0x5ccf3a);}[_0xde5e7f(0xab)](_0x27f77a){const _0x2ae152=_0xde5e7f;if(this[_0x2ae152(0x1d4)][_0x2ae152(0xea)](_0x27f77a)){const _0x1968c4=this[_0x2ae152(0x1d4)][_0x2ae152(0x247)](_0x27f77a);_0x1968c4&&window[_0x2ae152(0xaf)](_0x1968c4),this[_0x2ae152(0x1d4)][_0x2ae152(0x258)](_0x27f77a,null);}}[_0xde5e7f(0x131)](_0x40ce22){const _0x2841f1=_0xde5e7f,{memberID:_0x5a042d,unitIDs:_0x1b871c}=_0x40ce22;_0x1b871c[_0x2841f1(0x1a7)](_0x51ce84=>{const _0x3e845e=_0x2841f1;var _0x5b7ccd;const _0x2e0677=this['_unitOnClients']['get'](_0x51ce84);_0x2e0677&&(_0x2e0677['delete'](_0x5a042d),(_0x5b7ccd=this[_0x3e845e(0x1f8)](_0x51ce84))==null||_0x5b7ccd['next'](_0x2e0677[_0x3e845e(0x1ae)]===0x0?u[_0x3e845e(0x104)][_0x3e845e(0xcf)]:u[_0x3e845e(0x104)][_0x3e845e(0x309)]));}),this[_0x2841f1(0xab)](_0x5a042d);}[_0xde5e7f(0x257)](_0x315b08){const _0x310300=_0xde5e7f;this[_0x310300(0x338)](_0x315b08[_0x310300(0x16a)]);}[_0xde5e7f(0x1d2)](_0x51fa3d){const _0x1d072d=_0xde5e7f;localStorage['setItem'](ye,JSON[_0x1d072d(0x143)](_0x51fa3d));}['_scheduleHeartbeat'](){const _0x78abbb=_0xde5e7f;this[_0x78abbb(0x1d9)]=window[_0x78abbb(0x29a)](()=>{const _0xfbf1db=_0x78abbb;this[_0xfbf1db(0x1d2)]({'type':0x2,'memberID':this[_0xfbf1db(0x2b3)]});},we);}[_0xde5e7f(0x1f8)](_0x4101ff){const _0x5227fd=_0xde5e7f;return this[_0x5227fd(0x125)]['has'](_0x4101ff)||this['_unitStatus'][_0x5227fd(0x258)](_0x4101ff,new I[(_0x5227fd(0x1b3))](u[_0x5227fd(0x104)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x5227fd(0x125)][_0x5227fd(0x247)](_0x4101ff);}}exports[_0xde5e7f(0x95)]=Oe,exports[_0xde5e7f(0x337)]=je,exports[_0xde5e7f(0x329)]=fs,exports[_0xde5e7f(0x118)]=ke;
|
|
1
|
+
'use strict';const _0x2369fc=_0x8c2a;(function(_0x5d3429,_0x3b6b61){const _0x374a0c=_0x8c2a,_0x3a62de=_0x5d3429();while(!![]){try{const _0x30fcf6=parseInt(_0x374a0c(0x240))/0x1*(parseInt(_0x374a0c(0x285))/0x2)+parseInt(_0x374a0c(0x232))/0x3+-parseInt(_0x374a0c(0x341))/0x4+parseInt(_0x374a0c(0x1f4))/0x5+-parseInt(_0x374a0c(0x368))/0x6*(parseInt(_0x374a0c(0x144))/0x7)+-parseInt(_0x374a0c(0x264))/0x8+-parseInt(_0x374a0c(0x2e9))/0x9;if(_0x30fcf6===_0x3b6b61)break;else _0x3a62de['push'](_0x3a62de['shift']());}catch(_0x9368db){_0x3a62de['push'](_0x3a62de['shift']());}}}(_0x4655,0xf3220));var Xe=Object[_0x2369fc(0x202)],Ke=(_0x2454ab,_0x327667,_0x2e6822)=>_0x327667 in _0x2454ab?Xe(_0x2454ab,_0x327667,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e6822}):_0x2454ab[_0x327667]=_0x2e6822,_=(_0x468a63,_0x201957,_0x13dcb5)=>Ke(_0x468a63,typeof _0x201957!='symbol'?_0x201957+'':_0x201957,_0x13dcb5);Object[_0x2369fc(0x202)](exports,Symbol[_0x2369fc(0x2a2)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x359da7,..._0x5b76f9}){const _0x580a49=_0x2369fc,{icon:_0x19aa52,id:_0x16d7ac,className:_0x1c3760,extend:_0xeded02,..._0x985933}=_0x5b76f9,_0x1ff95b=('univerjs-icon\x20univerjs-icon-'+_0x16d7ac+'\x20'+(_0x1c3760||''))[_0x580a49(0x1b6)](),_0x367d25=A[_0x580a49(0x1ac)]('_'+Qe());return $e(_0x19aa52,''+_0x16d7ac,{'defIds':_0x19aa52[_0x580a49(0x21e)],'idSuffix':_0x367d25[_0x580a49(0x317)]},{'ref':_0x359da7,'className':_0x1ff95b,..._0x985933},_0xeded02);}function $e(_0x3ac5bb,_0x3f29c3,_0x5532bd,_0x36027e,_0x537a3e){const _0x113d48=_0x2369fc;return A[_0x113d48(0x137)](_0x3ac5bb[_0x113d48(0x251)],{'key':_0x3f29c3,...Je(_0x3ac5bb,_0x5532bd,_0x537a3e),..._0x36027e},(Ze(_0x3ac5bb,_0x5532bd)[_0x113d48(0x260)]||[])[_0x113d48(0x22c)]((_0x5e925d,_0x240f46)=>$e(_0x5e925d,_0x3f29c3+'-'+_0x3ac5bb[_0x113d48(0x251)]+'-'+_0x240f46,_0x5532bd,void 0x0,_0x537a3e)));}function Je(_0x45553c,_0x45b7c1,_0x2b035a){const _0xbae77e=_0x2369fc,_0x47ca3d={..._0x45553c[_0xbae77e(0x371)]};_0x2b035a!=null&&_0x2b035a[_0xbae77e(0x1f6)]&&_0x47ca3d['fill']===_0xbae77e(0x1f6)&&(_0x47ca3d[_0xbae77e(0x126)]=_0x2b035a['colorChannel1']),_0x45553c['tag']==='mask'&&_0x47ca3d['id']&&(_0x47ca3d['id']=_0x47ca3d['id']+_0x45b7c1[_0xbae77e(0x247)]),Object[_0xbae77e(0x197)](_0x47ca3d)[_0xbae77e(0x1a4)](([_0x33d8d6,_0xeec0a])=>{const _0x1e9e3e=_0xbae77e;_0x33d8d6===_0x1e9e3e(0xe8)&&typeof _0xeec0a==_0x1e9e3e(0x2c5)&&(_0x47ca3d[_0x33d8d6]=_0xeec0a[_0x1e9e3e(0x3a4)](/url\(#(.*)\)/,_0x1e9e3e(0x398)+_0x45b7c1[_0x1e9e3e(0x247)]+')'));});const {defIds:_0x573c6c}=_0x45b7c1;return!_0x573c6c||_0x573c6c['length']===0x0||(_0x45553c[_0xbae77e(0x251)]===_0xbae77e(0x241)&&_0x47ca3d[_0xbae77e(0x231)]&&(_0x47ca3d['xlink:href']=_0x47ca3d['xlink:href']+_0x45b7c1[_0xbae77e(0x247)]),Object[_0xbae77e(0x197)](_0x47ca3d)[_0xbae77e(0x1a4)](([_0x2e764d,_0x470b66])=>{const _0x4a557e=_0xbae77e;typeof _0x470b66==_0x4a557e(0x2c5)&&(_0x47ca3d[_0x2e764d]=_0x470b66[_0x4a557e(0x3a4)](/url\(#(.*)\)/,_0x4a557e(0x398)+_0x45b7c1[_0x4a557e(0x247)]+')'));})),_0x47ca3d;}function Ze(_0x40fce6,_0x21f295){const _0x4efa26=_0x2369fc;var _0x3adbf8;const {defIds:_0x38c2b2}=_0x21f295;return!_0x38c2b2||_0x38c2b2[_0x4efa26(0x236)]===0x0?_0x40fce6:_0x40fce6[_0x4efa26(0x251)]===_0x4efa26(0x17c)&&((_0x3adbf8=_0x40fce6[_0x4efa26(0x260)])!=null&&_0x3adbf8[_0x4efa26(0x236)])?{..._0x40fce6,'children':_0x40fce6[_0x4efa26(0x260)][_0x4efa26(0x22c)](_0x2b435a=>typeof _0x2b435a[_0x4efa26(0x371)]['id']==_0x4efa26(0x2c5)&&_0x38c2b2&&_0x38c2b2['includes'](_0x2b435a[_0x4efa26(0x371)]['id'])?{..._0x2b435a,'attrs':{..._0x2b435a['attrs'],'id':_0x2b435a[_0x4efa26(0x371)]['id']+_0x21f295[_0x4efa26(0x247)]}}:_0x2b435a)}:_0x40fce6;}function Qe(){const _0x2eb43d=_0x2369fc;return Math['random']()[_0x2eb43d(0x138)](0x24)['substring'](0x2,0x8);}pe[_0x2369fc(0x1a2)]=_0x2369fc(0x1b1);const et={'tag':_0x2369fc(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2369fc(0x16d),'viewBox':_0x2369fc(0x119),'width':_0x2369fc(0x190),'height':_0x2369fc(0x190)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2369fc(0x244),'attrs':{'stroke':_0x2369fc(0x19c),'d':_0x2369fc(0x298),'strokeLinecap':_0x2369fc(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2369fc(0x17c),'attrs':{},'children':[{'tag':_0x2369fc(0x227),'attrs':{'id':_0x2369fc(0x35c)},'children':[{'tag':_0x2369fc(0x244),'attrs':{'fill':_0x2369fc(0x254),'d':_0x2369fc(0x2b1)}}]}]}],'defIds':[_0x2369fc(0x35c)]},xe=A[_0x2369fc(0x36e)](function(_0x4a2528,_0x49833a){const _0x24024f=_0x2369fc;return A[_0x24024f(0x137)](pe,Object[_0x24024f(0x3a6)]({},_0x4a2528,{'id':_0x24024f(0x2d8),'ref':_0x49833a,'icon':et}));});xe[_0x2369fc(0x1a2)]='OffLineIcon';const tt={'tag':_0x2369fc(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2369fc(0x100),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2369fc(0x383)},'children':[{'tag':'path','attrs':{'stroke':_0x2369fc(0x19c),'d':_0x2369fc(0x282),'strokeLinecap':'round','strokeLinejoin':_0x2369fc(0x2fc),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2369fc(0x227),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x2369fc(0x254),'d':_0x2369fc(0x2b1),'transform':_0x2369fc(0x339)}}]}]}],'defIds':[_0x2369fc(0xff)]},Be=A['forwardRef'](function(_0x7b04b4,_0x25fae8){const _0x5bb3d1=_0x2369fc;return A[_0x5bb3d1(0x137)](pe,Object[_0x5bb3d1(0x3a6)]({},_0x7b04b4,{'id':'on-line-icon','ref':_0x25fae8,'icon':tt}));});Be[_0x2369fc(0x1a2)]=_0x2369fc(0x128);function st(_0x52f10c){const _0x3280f6=_0x2369fc;switch(_0x52f10c){case u['CollaborationStatus'][_0x3280f6(0x1dd)]:return _0x3280f6(0x1d4);case u['CollaborationStatus'][_0x3280f6(0x19b)]:return _0x3280f6(0xee);case u[_0x3280f6(0x30b)][_0x3280f6(0x2c8)]:return _0x3280f6(0x238);case u[_0x3280f6(0x30b)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x3280f6(0x30b)][_0x3280f6(0x373)]:case u[_0x3280f6(0x30b)][_0x3280f6(0x24d)]:return _0x3280f6(0x279);case u['CollaborationStatus'][_0x3280f6(0x391)]:case u[_0x3280f6(0x30b)][_0x3280f6(0x2d4)]:return'collabStatus.synced';}}function it(_0x55c39a){const _0x413587=_0x2369fc,{status$:_0x2fe453}=_0x55c39a,_0x513e7c=O['useObservable'](_0x2fe453,u[_0x413587(0x30b)][_0x413587(0x200)]),_0x3d5370=O[_0x413587(0x16f)](a[_0x413587(0x20e)]),_0x3db2c4=O[_0x413587(0x16f)](u[_0x413587(0xf0)]),_0x1eeb49=_0x513e7c!==u['CollaborationStatus'][_0x413587(0x1dd)],_0x47dd38=_0x3d5370['t'](st(_0x513e7c)),_0x439584=_0x1eeb49?M['jsx'](Be,{}):M[_0x413587(0x101)](xe,{}),_0x3d8829=A[_0x413587(0x3af)](()=>{const _0x597f80=_0x413587;_0x1eeb49||_0x3db2c4[_0x597f80(0x129)]();},[_0x1eeb49,_0x3db2c4]);function _0x5bb0a6(){const _0x4915da=_0x413587;return M[_0x4915da(0x262)](_0x4915da(0x14b),{'className':_0x4915da(0x342),'onClick':_0x3d8829,'children':[M[_0x4915da(0x101)]('div',{'className':p[_0x4915da(0x187)](_0x4915da(0x2b9),{'univer-text-green-500':_0x1eeb49,'univer-text-red-500':!_0x1eeb49}),'children':_0x439584}),M['jsx'](_0x4915da(0x14b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x47dd38})]});}return _0x1eeb49?_0x5bb0a6():M[_0x413587(0x101)](p[_0x413587(0x10c)],{'title':_0x3d5370['t']('collab-client.tooltip.reconnect'),'children':_0x5bb0a6()});}var nt=Object[_0x2369fc(0x219)],rt=(_0x24f666,_0x406eb6,_0x34eb9a,_0x4b7e37)=>{const _0x2046fd=_0x2369fc;for(var _0x1519a3=_0x4b7e37>0x1?void 0x0:_0x4b7e37?nt(_0x406eb6,_0x34eb9a):_0x406eb6,_0xcdf357=_0x24f666[_0x2046fd(0x236)]-0x1,_0x56459d;_0xcdf357>=0x0;_0xcdf357--)(_0x56459d=_0x24f666[_0xcdf357])&&(_0x1519a3=_0x56459d(_0x1519a3)||_0x1519a3);return _0x1519a3;},K=(_0x584d14,_0x357733)=>(_0x42a74d,_0x4d6bae)=>_0x357733(_0x42a74d,_0x4d6bae,_0x584d14);exports[_0x2369fc(0x18e)]=class extends a[_0x2369fc(0x189)]{constructor(_0x54c6c0,_0xd5d67d,_0x30a5f6,_0x5888c2){const _0x445ab9=_0x2369fc;super(),_(this,_0x445ab9(0x11c),new I[(_0x445ab9(0x121))](u[_0x445ab9(0x30b)][_0x445ab9(0x200)])),(this[_0x445ab9(0x1ff)]=_0x54c6c0,this[_0x445ab9(0x2bc)]=_0xd5d67d,this[_0x445ab9(0x2e7)]=_0x30a5f6,this[_0x445ab9(0x29e)]=_0x5888c2,this[_0x445ab9(0x1bc)](),this['_initStatusListener']());}[_0x2369fc(0x176)](){const _0x4b58e6=_0x2369fc;this[_0x4b58e6(0x237)](this['_univerInstanceService'][_0x4b58e6(0x243)]['pipe'](I['switchMap'](()=>{const _0x58757c=_0x4b58e6,_0x25d9f0=this[_0x58757c(0x1ff)]['getFocusedUnit']();return _0x25d9f0?this[_0x58757c(0x2e7)][_0x58757c(0x1c0)](_0x25d9f0[_0x58757c(0x253)]()):I['of'](null);}),I['switchMap'](_0x5a5f14=>_0x5a5f14?_0x5a5f14['status$']:I['of'](u['CollaborationStatus'][_0x4b58e6(0x200)])))[_0x4b58e6(0x1e3)](_0x3c805f=>{const _0x161ead=_0x4b58e6;this['_status$'][_0x161ead(0x2b7)](_0x3c805f);}));}['_initStatusComponent'](){const _0x45f0d0=_0x2369fc;this[_0x45f0d0(0x237)](this[_0x45f0d0(0x29e)][_0x45f0d0(0x32d)](O['BuiltInUIPart'][_0x45f0d0(0x319)],()=>O[_0x45f0d0(0x1f0)](ot({'status$':this[_0x45f0d0(0x11c)][_0x45f0d0(0xf4)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x2369fc(0x24a)]),K(0x1,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),K(0x2,a['Inject'](u[_0x2369fc(0x26e)])),K(0x3,O['IUIPartsService'])],exports[_0x2369fc(0x18e)]);function ot(_0x54792b){const {status$:_0x40e3ff}=_0x54792b;return function(){const _0xdf7167=_0x8c2a;return M[_0xdf7167(0x101)](it,{'status$':_0x40e3ff});};}const Oe=a[_0x2369fc(0x155)](_0x2369fc(0x375));var at=Object[_0x2369fc(0x219)],ct=(_0x5797ca,_0x57b27f,_0x222a01,_0x58fa70)=>{const _0x5a5aff=_0x2369fc;for(var _0x2d594f=_0x58fa70>0x1?void 0x0:_0x58fa70?at(_0x57b27f,_0x222a01):_0x57b27f,_0x3e7f68=_0x5797ca[_0x5a5aff(0x236)]-0x1,_0x3c2996;_0x3e7f68>=0x0;_0x3e7f68--)(_0x3c2996=_0x5797ca[_0x3e7f68])&&(_0x2d594f=_0x3c2996(_0x2d594f)||_0x2d594f);return _0x2d594f;},Y=(_0x5d8bfa,_0x2f3da7)=>(_0x4f6b65,_0x58e062)=>_0x2f3da7(_0x4f6b65,_0x58e062,_0x5d8bfa);exports['CollaborationDataLoaderController']=class extends a[_0x2369fc(0x37f)]{constructor(_0x2de99c,_0x4fb173,_0x25f815,_0x5c77fd,_0x2d6eb8){const _0x8ba264=_0x2369fc;super(),this[_0x8ba264(0x33f)]=_0x2de99c,this[_0x8ba264(0x17d)]=_0x4fb173,this[_0x8ba264(0x24c)]=_0x25f815,this[_0x8ba264(0x27b)]=_0x5c77fd,_0x2d6eb8?_0x2d6eb8==null||_0x2d6eb8[_0x8ba264(0x301)]()[_0x8ba264(0x39a)](()=>this[_0x8ba264(0x2d3)]()):(this[_0x8ba264(0x17d)][_0x8ba264(0x325)](_0x8ba264(0x25b),_0x8ba264(0x30f)),this['_init']());}async[_0x2369fc(0x2d3)](){const _0x6e59ef=_0x2369fc,_0x2656c6=this[_0x6e59ef(0x33f)][_0x6e59ef(0x34a)](_0x6e59ef(0x15c)),_0x19800c=this[_0x6e59ef(0x33f)][_0x6e59ef(0x34a)](_0x6e59ef(0x230)),_0xa4d6=this[_0x6e59ef(0x33f)]['getParam'](_0x6e59ef(0x2a1));if(!_0x2656c6||!_0x19800c){this[_0x6e59ef(0x17d)]['debug'](_0x6e59ef(0x25b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4af4f5=await this[_0x6e59ef(0x27b)][_0x6e59ef(0x2c0)](_0x2656c6,Number(_0x19800c),_0xa4d6);_0x4af4f5&&_0x4af4f5 instanceof a['Workbook']&&this[_0x6e59ef(0x239)](_0x4af4f5);}async[_0x2369fc(0x239)](_0x27f3af){const _0x3ef1a4=_0x2369fc;await this[_0x3ef1a4(0x204)](_0x27f3af),_0x27f3af['activeSheet$']['pipe'](I[_0x3ef1a4(0x1e2)](this[_0x3ef1a4(0x131)]))['subscribe'](_0x5335aa=>{const _0x413533=_0x3ef1a4;_0x5335aa&&this[_0x413533(0x2a5)](_0x5335aa);}),this[_0x3ef1a4(0x33f)]['urlChange$'][_0x3ef1a4(0x28a)](I[_0x3ef1a4(0x1e2)](this[_0x3ef1a4(0x131)]))['subscribe'](()=>this[_0x3ef1a4(0x204)](_0x27f3af));}[_0x2369fc(0x2a5)](_0x12412b,_0x207ac4=!0x1){const _0x579fab=_0x2369fc,_0x2c212a=this['_urlService'][_0x579fab(0x34a)](_0x579fab(0x2a1));_0x12412b[_0x579fab(0x2b0)]()!==_0x2c212a&&this['_urlService'][_0x579fab(0x226)]('subunit',_0x12412b[_0x579fab(0x2b0)](),_0x207ac4);}async[_0x2369fc(0x204)](_0x4dfe05){const _0x2ee5e4=_0x2369fc;var _0x2aadc3;const _0x47ef7b=this['_urlService'][_0x2ee5e4(0x34a)]('subunit');if(!_0x47ef7b||!_0x4dfe05[_0x2ee5e4(0x26b)](_0x47ef7b)){const _0x442a98=_0x4dfe05[_0x2ee5e4(0x16b)]()[0x0],_0x47b16d=_0x4dfe05[_0x2ee5e4(0x26b)](_0x442a98);if(!_0x47b16d)return;this[_0x2ee5e4(0x2a5)](_0x47b16d,!0x0),await this[_0x2ee5e4(0x24c)][_0x2ee5e4(0x308)](v[_0x2ee5e4(0x25a)]['id'],{'unitId':_0x4dfe05[_0x2ee5e4(0x253)](),'subUnitId':_0x442a98});return;}((_0x2aadc3=_0x4dfe05[_0x2ee5e4(0x363)]())==null?void 0x0:_0x2aadc3['getSheetId']())!==_0x47ef7b&&await this[_0x2ee5e4(0x24c)][_0x2ee5e4(0x308)](v[_0x2ee5e4(0x25a)]['id'],{'unitId':_0x4dfe05[_0x2ee5e4(0x253)](),'subUnitId':_0x47ef7b});}},exports[_0x2369fc(0x296)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x2369fc(0x164)]),Y(0x3,a['Inject'](u[_0x2369fc(0x311)])),Y(0x4,a[_0x2369fc(0x19f)](qe[_0x2369fc(0x2ee)]))],exports[_0x2369fc(0x296)]);var lt=Object[_0x2369fc(0x219)],_t=(_0xb24bf1,_0xb75bff,_0x51ffa4,_0x3f6529)=>{const _0x34251d=_0x2369fc;for(var _0x2fb1da=_0x3f6529>0x1?void 0x0:_0x3f6529?lt(_0xb75bff,_0x51ffa4):_0xb75bff,_0x36e436=_0xb24bf1[_0x34251d(0x236)]-0x1,_0x342df9;_0x36e436>=0x0;_0x36e436--)(_0x342df9=_0xb24bf1[_0x36e436])&&(_0x2fb1da=_0x342df9(_0x2fb1da)||_0x2fb1da);return _0x2fb1da;},De=(_0x5a8a4f,_0x293683)=>(_0x1be77f,_0x42bf92)=>_0x293683(_0x1be77f,_0x42bf92,_0x5a8a4f);let me=class extends a['RxDisposable']{constructor(_0x3fdb0f,_0x3024d4){const _0x2af5d9=_0x2369fc;super(),this['_docClipboardService']=_0x3fdb0f,this[_0x2af5d9(0x354)]=_0x3024d4,this[_0x2af5d9(0x2d3)]();}[_0x2369fc(0x2d3)](){const _0x50842c=_0x2369fc,_0x378f9c=this;this[_0x50842c(0x237)](this[_0x50842c(0x291)][_0x50842c(0x380)]({'onBeforePasteImage':async _0xa2e553=>{const _0x4c6f65=_0x50842c,_0x51daeb=await _0x378f9c[_0x4c6f65(0x354)][_0x4c6f65(0x1d6)](_0xa2e553);return _0x51daeb?{'source':_0x51daeb[_0x4c6f65(0x148)],'imageSourceType':_0x51daeb[_0x4c6f65(0x193)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x2369fc(0x2a3)])],me);const Ne=['purple.300','jiqing.500',_0x2369fc(0x12f),'red.300','blue.400',_0x2369fc(0x26c)];class Re extends a['Disposable']{constructor(){const _0x38befd=_0x2369fc;super(...arguments),_(this,_0x38befd(0x1ef),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x10aacf){const _0x27ea9c=_0x2369fc;if(this[_0x27ea9c(0x1ef)][_0x27ea9c(0x17a)](_0x10aacf))return this[_0x27ea9c(0x1ef)][_0x27ea9c(0x30d)](_0x10aacf);const _0x38b42d=Ne[this[_0x27ea9c(0x159)]];return this[_0x27ea9c(0x159)]=(this[_0x27ea9c(0x159)]+0x1)%Ne[_0x27ea9c(0x236)],this[_0x27ea9c(0x1ef)][_0x27ea9c(0x2c6)](_0x10aacf,_0x38b42d),_0x38b42d;}}function Fe(_0x190ee7){const _0x3c17ab=_0x2369fc;let _0x18cc84='';for(const _0x55ded2 of _0x190ee7){const {startOffset:_0x52c1f9,endOffset:_0x59417e,isActive:_0x1efae5,rangeType:_0x53e0ec,segmentId:_0x3825ba,segmentPage:_0x105faf}=_0x55ded2;_0x18cc84[_0x3c17ab(0x236)]&&(_0x18cc84+=','),_0x18cc84+=_0x52c1f9+':'+_0x59417e+':'+(_0x1efae5?'1':'0')+':'+_0x53e0ec+':'+_0x3825ba+':'+_0x105faf;}return _0x18cc84;}function ht(_0xde0c52){const _0x5d7f73=_0x2369fc,_0x432891=_0xde0c52['split'](','),_0x2182e0=[];for(const _0x11560e of _0x432891){const [_0x433445,_0x4d39d4,_0x515d37,_0x1bb900,_0x591fcd,_0x1b2685]=_0x11560e[_0x5d7f73(0x2b2)](':');_0x2182e0[_0x5d7f73(0x1a0)]({'startOffset':Number(_0x433445),'endOffset':Number(_0x4d39d4),'collapsed':_0x433445===_0x4d39d4,'isActive':_0x515d37==='1','rangeType':_0x1bb900===a[_0x5d7f73(0x23f)][_0x5d7f73(0x321)]?a[_0x5d7f73(0x23f)][_0x5d7f73(0x321)]:a[_0x5d7f73(0x23f)][_0x5d7f73(0x302)],'segmentId':typeof _0x591fcd=='string'?String(_0x591fcd):'','segmentPage':Number(_0x1b2685!=null?_0x1b2685:-0x1)});}return _0x2182e0[_0x5d7f73(0x259)](_0x568ea4=>_0x568ea4[_0x5d7f73(0x266)])||(_0x2182e0[0x0][_0x5d7f73(0x266)]=!0x0),_0x2182e0;}class be extends a['RxDisposable']{constructor(){const _0x48d0ac=_0x2369fc;super(...arguments),_(this,_0x48d0ac(0x29c),new I[(_0x48d0ac(0x121))](null)),_(this,_0x48d0ac(0x278),this[_0x48d0ac(0x29c)][_0x48d0ac(0xf4)]());}[_0x2369fc(0x217)](_0x40f28f){const {unitID:_0x13eeec,memberID:_0x3e9b72,textRanges:_0x63d08c}=_0x40f28f,_0x1bcdfd=Fe(_0x63d08c);if(_0x1bcdfd==='')return;const _0x1196cd={'unitID':_0x13eeec,'memberID':_0x3e9b72,'selection':_0x1bcdfd};this['_collabCursorState$']['next'](_0x1196cd);}}var ut=Object[_0x2369fc(0x219)],It=(_0x4938dc,_0x5a56e2,_0x49de73,_0x2c15bc)=>{const _0x41bca7=_0x2369fc;for(var _0xf076b5=_0x2c15bc>0x1?void 0x0:_0x2c15bc?ut(_0x5a56e2,_0x49de73):_0x5a56e2,_0x531a09=_0x4938dc[_0x41bca7(0x236)]-0x1,_0x1411bb;_0x531a09>=0x0;_0x531a09--)(_0x1411bb=_0x4938dc[_0x531a09])&&(_0xf076b5=_0x1411bb(_0xf076b5)||_0xf076b5);return _0xf076b5;},U=(_0x4b881a,_0x224348)=>(_0xd7aab4,_0x5ab75f)=>_0x224348(_0xd7aab4,_0x5ab75f,_0x4b881a);const St=0x12c,dt=0x64;let ve=class extends a[_0x2369fc(0x37f)]{constructor(_0xf61b79,_0x3568e9,_0x32525a,_0x578bbc,_0x46b399,_0x255cc9,_0x36b778,_0x400024,_0x2b4ae3){const _0x337e84=_0x2369fc;super(),_(this,_0x337e84(0x2e3),!0x1),_(this,_0x337e84(0x2d3),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x337e84(0x27d),this[_0x337e84(0x1f1)]['asObservable']()),_(this,_0x337e84(0x352),new I[(_0x337e84(0x121))]([])),_(this,_0x337e84(0x37c),this[_0x337e84(0x352)][_0x337e84(0x28a)](I[_0x337e84(0x2d9)](St))),_(this,'_updateLocalCursor',a[_0x337e84(0x16a)](_0x4e9892=>{const _0x22ee50=_0x337e84,_0x373856={'eventID':g[_0x22ee50(0x22a)][_0x22ee50(0x24b)],'data':{'unitID':this[_0x22ee50(0x1ca)],'memberID':this[_0x22ee50(0x376)][_0x22ee50(0x38d)](),'selection':Fe(_0x4e9892)}};this[_0x22ee50(0x376)][_0x22ee50(0x2e2)](_0x373856,this[_0x22ee50(0x1ca)]);},dt)),(this[_0x337e84(0x1ca)]=_0xf61b79,this[_0x337e84(0x376)]=_0x3568e9,this[_0x337e84(0x2bc)]=_0x32525a,this[_0x337e84(0x28d)]=_0x578bbc,this[_0x337e84(0x338)]=_0x46b399,this[_0x337e84(0x32a)]=_0x255cc9,this['_transformService']=_0x36b778,this[_0x337e84(0x1ff)]=_0x400024,this[_0x337e84(0x24c)]=_0x2b4ae3);}get[_0x2369fc(0x374)](){const _0x3a7531=_0x2369fc;return this[_0x3a7531(0x1f1)]['getValue']();}get[_0x2369fc(0x284)](){const _0x6e1224=_0x2369fc;return this[_0x6e1224(0x352)][_0x6e1224(0x23e)]();}[_0x2369fc(0x31e)](){const _0xdebe4b=_0x2369fc;super[_0xdebe4b(0x31e)](),this[_0xdebe4b(0x1f1)][_0xdebe4b(0x2b7)](new Map()),this[_0xdebe4b(0x1f1)][_0xdebe4b(0x36f)](),this[_0xdebe4b(0x352)][_0xdebe4b(0x2b7)]([]),this[_0xdebe4b(0x352)][_0xdebe4b(0x36f)]();}[_0x2369fc(0xe9)](){const _0x5959be=_0x2369fc;this[_0x5959be(0x2d3)]||(this[_0x5959be(0x2d3)]=!0x0,this[_0x5959be(0x376)]['sessionStatus$']['pipe'](I[_0x5959be(0x1e2)](this[_0x5959be(0x131)]))[_0x5959be(0x1e3)](_0x3723ab=>{const _0x2feb75=_0x5959be;_0x3723ab===u[_0x2feb75(0x1d7)][_0x2feb75(0x357)]?this[_0x2feb75(0x35e)]():this[_0x2feb75(0x19d)]();}),this[_0x5959be(0x376)][_0x5959be(0x37d)][_0x5959be(0x28a)](I[_0x5959be(0x1e2)](this[_0x5959be(0x131)]))['subscribe'](_0x1cce42=>{const _0x980260=_0x5959be,_0x43c789=_0x1cce42[_0x980260(0x2bf)];_0x43c789===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x980260(0x367)](_0x1cce42),_0x43c789===g[_0x980260(0x22a)][_0x980260(0x133)]&&this[_0x980260(0x1cd)](_0x1cce42);}),this[_0x5959be(0x237)](this[_0x5959be(0x24c)]['onCommandExecuted'](_0x3c0c33=>{const _0x5ad06f=_0x5959be,_0x332f00=_0x3c0c33[_0x5ad06f(0x38c)];_0x332f00!=null&&this[_0x5ad06f(0x2e3)]&&_0x3c0c33['id']===V[_0x5ad06f(0x183)]['id']&&_0x332f00[_0x5ad06f(0x3a9)]===this['unitID']&&_0x332f00[_0x5ad06f(0x12c)]===!0x1&&_0x332f00[_0x5ad06f(0x33c)][_0x5ad06f(0x236)]>0x0&&this[_0x5ad06f(0x2a7)](_0x332f00['ranges']);})),this['_syncEditingCollabCursorService'][_0x5959be(0x278)][_0x5959be(0x28a)](I[_0x5959be(0x1e2)](this['dispose$']))[_0x5959be(0x1e3)](_0x1e3c82=>{const _0x66717a=_0x5959be;if((_0x1e3c82==null?void 0x0:_0x1e3c82['unitID'])!==this[_0x66717a(0x1ca)])return;const _0x1c8e20={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1e3c82};this['_onCursorUpdate'](_0x1c8e20);}),this[_0x5959be(0x237)](this[_0x5959be(0x24c)][_0x5959be(0x2dc)](_0x29a9d6=>{const _0x5d34c8=_0x5959be;if(_0x29a9d6[_0x5d34c8(0x38c)]==null)return;const _0x29a2dd=_0x29a9d6[_0x5d34c8(0x38c)];if(_0x29a9d6['id']!==V[_0x5d34c8(0x30a)]['id']||_0x29a2dd[_0x5d34c8(0x3a9)]!==this[_0x5d34c8(0x1ca)])return;const _0x4d6d47={'id':_0x5d34c8(0x272),'params':_0x29a2dd},_0x182ac0=this['cursorInfo'];for(const [_0x5bcd55,_0x1ede04]of _0x182ac0){const _0x55c19d={'id':_0x5d34c8(0x272),'params':{'unitId':this[_0x5d34c8(0x1ca)],'actions':null,'textRanges':_0x1ede04[_0x5d34c8(0x33c)]}},_0x1cedb2=this['_transformService']['transformMutation'](_0x4d6d47,_0x55c19d,!0x1);if(g[_0x5d34c8(0x1c5)](_0x1cedb2))throw _0x1cedb2['error'];_0x182ac0[_0x5d34c8(0x2c6)](_0x5bcd55,{..._0x1ede04,'ranges':_0x1cedb2[_0x5d34c8(0x33a)][_0x5d34c8(0x38c)][_0x5d34c8(0x358)]});}queueMicrotask(()=>{const _0x31021f=_0x5d34c8;this[_0x31021f(0x1f1)][_0x31021f(0x2b7)](_0x182ac0);});})));}[_0x2369fc(0x367)](_0x179ec5){const _0x3c6f08=_0x2369fc;var _0x382f18,_0x2e700c;const {memberID:_0x1be972,selection:_0x16094b}=_0x179ec5[_0x3c6f08(0x2ce)],_0x35e108=ht(_0x16094b),_0x4cc78c=(_0x2e700c=(_0x382f18=this['_memberService'][_0x3c6f08(0x1e0)](this[_0x3c6f08(0x1ca)],_0x1be972))==null?void 0x0:_0x382f18[_0x3c6f08(0x2e0)])!=null?_0x2e700c:_0x3c6f08(0x106),_0x2c29af={'color':this['_colorAssignService'][_0x3c6f08(0x2d6)](_0x1be972),'name':_0x4cc78c,'ranges':_0x35e108},_0x175a1e=this['cursorInfo'];_0x175a1e['set'](_0x1be972,_0x2c29af),this[_0x3c6f08(0x1f1)][_0x3c6f08(0x2b7)](_0x175a1e);}[_0x2369fc(0x1cd)](_0x39df7e){const _0x188423=_0x2369fc,{memberID:_0x2d3042}=_0x39df7e['data'],_0x20f13d=this[_0x188423(0x374)];_0x20f13d[_0x188423(0x10a)](_0x2d3042),this[_0x188423(0x1f1)][_0x188423(0x2b7)](_0x20f13d);}[_0x2369fc(0x35e)](){const _0x11070c=_0x2369fc;var _0x44247a;if(this[_0x11070c(0x2e3)]=!0x0,((_0x44247a=this[_0x11070c(0x1ff)][_0x11070c(0x347)]())==null?void 0x0:_0x44247a['getUnitId']())!==this[_0x11070c(0x1ca)])return;const _0x3c868f=this[_0x11070c(0x2bc)]['get'](V[_0x11070c(0x191)])['getDocRanges']();Array['isArray'](_0x3c868f)&&_0x3c868f[_0x11070c(0x236)]>0x0&&this['_updateLocalCursor'](_0x3c868f);}[_0x2369fc(0x19d)](){const _0x52c32d=_0x2369fc;this[_0x52c32d(0x2e3)]=!0x1;}};ve=It([U(0x2,a[_0x2369fc(0x2ab)](a['Injector'])),U(0x3,a[_0x2369fc(0x2ab)](Re)),U(0x4,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xef)])),U(0x5,a[_0x2369fc(0x2ab)](be)),U(0x6,g[_0x2369fc(0x192)]),U(0x7,a[_0x2369fc(0x24a)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x2369fc(0x219)],mt=(_0x5e3c6c,_0x2f5bb4,_0x2a73c6,_0x2edf8b)=>{const _0x4e5a31=_0x2369fc;for(var _0x3baafd=_0x2edf8b>0x1?void 0x0:_0x2edf8b?ft(_0x2f5bb4,_0x2a73c6):_0x2f5bb4,_0xb4bf52=_0x5e3c6c[_0x4e5a31(0x236)]-0x1,_0x12b6a9;_0xb4bf52>=0x0;_0xb4bf52--)(_0x12b6a9=_0x5e3c6c[_0xb4bf52])&&(_0x3baafd=_0x12b6a9(_0x3baafd)||_0x3baafd);return _0x3baafd;},w=(_0x23c37b,_0x135530)=>(_0xd8db72,_0x21519d)=>_0x135530(_0xd8db72,_0x21519d,_0x23c37b);const vt=0x12c,gt=0x64,Et=()=>{let _0x1feab4=[],_0x43670a=!0x1;return _0x48a77b=>{const _0x53b0ed=_0x8c2a;_0x1feab4[_0x53b0ed(0x1a0)](_0x48a77b),_0x43670a||(_0x43670a=!0x0,setTimeout(()=>{const _0xec044e=_0x53b0ed;_0x1feab4[_0xec044e(0x1a4)](_0x380937=>_0x380937()),_0x1feab4=[],_0x43670a=!0x1;}));};};let ge=class extends a[_0x2369fc(0x37f)]{constructor(_0x52c974,_0xa81df0,_0x25d5b1,_0x2e62d6,_0x15b4c7,_0x29047b,_0x1ce607,_0x394db7){const _0x2ae60a=_0x2369fc;super(),_(this,'_online',!0x1),_(this,_0x2ae60a(0x2d3),!0x1),_(this,'_cursorInfo$',new I[(_0x2ae60a(0x121))](new Map())),_(this,_0x2ae60a(0x27d),this['_cursorInfo$']['asObservable']()),_(this,_0x2ae60a(0x352),new I['BehaviorSubject']([])),_(this,_0x2ae60a(0x37c),this[_0x2ae60a(0x352)]['pipe'](I[_0x2ae60a(0x2d9)](vt))),_(this,_0x2ae60a(0x2a7),a['debounce']((_0x577d10,_0x21e120)=>{const _0xdbe021=_0x2ae60a,_0x4560e5={'eventID':g[_0xdbe021(0x22a)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xdbe021(0x376)][_0xdbe021(0x38d)](),'selection':B[_0xdbe021(0x299)](_0x577d10,_0x21e120[_0xdbe021(0xf5)])}};this[_0xdbe021(0x376)][_0xdbe021(0x2e2)](_0x4560e5,this[_0xdbe021(0x1ca)]);},gt)),(this['unitID']=_0x52c974,this[_0x2ae60a(0x376)]=_0xa81df0,this[_0x2ae60a(0x2bc)]=_0x25d5b1,this[_0x2ae60a(0x28d)]=_0x2e62d6,this[_0x2ae60a(0x338)]=_0x15b4c7,this[_0x2ae60a(0x1ff)]=_0x29047b,this[_0x2ae60a(0x24c)]=_0x1ce607,this[_0x2ae60a(0x1fc)]=_0x394db7);}get['cursorInfo'](){const _0x31d1e0=_0x2369fc;return this['_cursorInfo$'][_0x31d1e0(0x23e)]();}get[_0x2369fc(0x284)](){const _0x26baca=_0x2369fc;return this[_0x26baca(0x352)][_0x26baca(0x23e)]();}['dispose'](){const _0xc1b08e=_0x2369fc;super[_0xc1b08e(0x31e)](),this[_0xc1b08e(0x1f1)][_0xc1b08e(0x2b7)](new Map()),this[_0xc1b08e(0x1f1)][_0xc1b08e(0x36f)](),this[_0xc1b08e(0x352)][_0xc1b08e(0x2b7)]([]),this['_roomMembers$']['complete']();}[_0x2369fc(0xe9)](){const _0x48abd1=_0x2369fc;this[_0x48abd1(0x2d3)]||(this[_0x48abd1(0x2d3)]=!0x0,this['_session'][_0x48abd1(0x1f8)][_0x48abd1(0x28a)](I['takeUntil'](this[_0x48abd1(0x131)]))[_0x48abd1(0x1e3)](_0x467833=>{const _0x3116fe=_0x48abd1;_0x467833===u[_0x3116fe(0x1d7)]['ONLINE']?this[_0x3116fe(0x35e)]():this[_0x3116fe(0x19d)]();}),this[_0x48abd1(0x376)][_0x48abd1(0x37d)][_0x48abd1(0x28a)](I[_0x48abd1(0x1e2)](this[_0x48abd1(0x131)]))[_0x48abd1(0x1e3)](_0x541e4f=>{const _0x2a6521=_0x48abd1,_0x30e628=_0x541e4f[_0x2a6521(0x2bf)];_0x30e628===g[_0x2a6521(0x22a)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x541e4f),_0x30e628===g[_0x2a6521(0x22a)][_0x2a6521(0x133)]&&this['_onCursorDelete'](_0x541e4f);}),this[_0x48abd1(0x12d)](),this['disposeWithMe'](this[_0x48abd1(0x24c)][_0x48abd1(0x2dc)](_0x460de9=>{const _0x1c4f9c=_0x48abd1;if(this[_0x1c4f9c(0x2e3)]&&_0x460de9['id']===v[_0x1c4f9c(0x1c9)]['id']&&_0x460de9[_0x1c4f9c(0x38c)][_0x1c4f9c(0x3a9)]===this[_0x1c4f9c(0x1ca)]){const _0x35f70c=_0x460de9[_0x1c4f9c(0x38c)];this[_0x1c4f9c(0x2a7)](_0x35f70c['subUnitId'],_0x35f70c[_0x1c4f9c(0x211)][0x0]);}})));}[_0x2369fc(0x367)](_0x1f7027){const _0x472c1d=_0x2369fc;var _0x172da5,_0x4167d3;const {memberID:_0x100b17,selection:_0x432f1f}=_0x1f7027[_0x472c1d(0x2ce)],{sheetName:_0x80f913,range:_0x268142}=B[_0x472c1d(0x201)](_0x432f1f),_0x3e167c={'name':(_0x4167d3=(_0x172da5=this[_0x472c1d(0x338)][_0x472c1d(0x1e0)](this[_0x472c1d(0x1ca)],_0x100b17))==null?void 0x0:_0x172da5[_0x472c1d(0x2e0)])!=null?_0x4167d3:_0x472c1d(0x106),'range':this[_0x472c1d(0x1c2)](_0x80f913,_0x268142),'sheetID':_0x80f913,'color':this['_colorAssignService'][_0x472c1d(0x2d6)](_0x100b17),'selection':_0x432f1f},_0x3ea9c2=this[_0x472c1d(0x374)];_0x3ea9c2[_0x472c1d(0x2c6)](_0x100b17,_0x3e167c),this[_0x472c1d(0x1f1)][_0x472c1d(0x2b7)](_0x3ea9c2);}[_0x2369fc(0x1cd)](_0x4231d2){const _0x43cb68=_0x2369fc,{memberID:_0x2633dd}=_0x4231d2['data'],_0x58cf70=this[_0x43cb68(0x374)];_0x58cf70['delete'](_0x2633dd),this[_0x43cb68(0x1f1)][_0x43cb68(0x2b7)](_0x58cf70);}['_getMergeRange'](_0x26d513,_0x383d63){const _0x2da29b=_0x2369fc;var _0x45e88c,_0x5ac7a3;const _0x206093=(_0x5ac7a3=(_0x45e88c=this[_0x2da29b(0x1ff)][_0x2da29b(0x15b)](this[_0x2da29b(0x1ca)]))==null?void 0x0:_0x45e88c['getSheetBySheetId'](_0x26d513))==null?void 0x0:_0x5ac7a3[_0x2da29b(0x22d)]();return(_0x206093==null?void 0x0:_0x206093['find'](_0x9cf95=>a['Rectangle'][_0x2da29b(0x19a)](_0x9cf95,_0x383d63)))||_0x383d63;}[_0x2369fc(0x12d)](){const _0x2cefa3=_0x2369fc,_0x4f8180=new a[(_0x2cefa3(0x2e4))](),_0x41ad5a=Et(),_0x3ef154=()=>{const _0x428539=_0x2cefa3;_0x4f8180[_0x428539(0x31e)]();const _0x2c9deb=(_0x42db0e,_0x132e34,_0x586561,_0x363323)=>{const _0x25e1cf=_0x428539;let _0x1074bc=[];switch(_0x42db0e['id']){case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x120)]:{_0x1074bc=v[_0x25e1cf(0x134)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)]['DeleteRangeMoveUpCommandId']:{_0x1074bc=v[_0x25e1cf(0x116)](_0x42db0e,_0x363323);break;}case v['EffectRefRangId'][_0x25e1cf(0x36a)]:{_0x1074bc=v[_0x25e1cf(0x3a1)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x1f5)]:{_0x1074bc=v['handleInsertRangeMoveDown'](_0x42db0e,_0x363323);break;}case v['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1074bc=v['handleInsertRangeMoveRight'](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x2ef)]:{_0x1074bc=v['handleInsertRow'](_0x42db0e,_0x363323);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x1074bc=v[_0x25e1cf(0x2fe)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x167)]:{_0x1074bc=v[_0x25e1cf(0x288)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x315)]:{_0x1074bc=v[_0x25e1cf(0x21d)](_0x42db0e,_0x363323);break;}}const _0x41f2ad=v[_0x25e1cf(0x306)](_0x1074bc,_0x363323),_0x26f81b=this[_0x25e1cf(0x374)][_0x25e1cf(0x30d)](_0x132e34);if(_0x26f81b&&_0x41f2ad){const _0x1792f5={..._0x26f81b,'range':_0x41f2ad};this[_0x25e1cf(0x374)][_0x25e1cf(0x2c6)](_0x132e34,_0x1792f5),_0x41ad5a(()=>{const _0x2a13a8=_0x25e1cf,_0x22a10e=this['_refRangeService'][_0x2a13a8(0x36b)](_0x41f2ad,_0x2c41ab=>(_0x22a10e[_0x2a13a8(0x31e)](),_0x2c9deb(_0x2c41ab,_0x132e34,_0x586561,_0x41f2ad)));_0x4f8180[_0x2a13a8(0x161)](_0x22a10e);});}return{'redos':[],'undos':[]};};this[_0x428539(0x374)][_0x428539(0x1a4)]((_0x456122,_0x515bb9)=>{const _0x4193cd=_0x428539,{range:_0x580805,sheetID:_0x4d8c54}=_0x456122,_0x55fcfc=this[_0x4193cd(0x1fc)][_0x4193cd(0x36b)](_0x580805,_0x6493d4=>(_0x55fcfc[_0x4193cd(0x31e)](),_0x2c9deb(_0x6493d4,_0x515bb9,_0x4d8c54,_0x580805)));_0x4f8180[_0x4193cd(0x161)](_0x55fcfc);});};this['disposeWithMe'](a[_0x2cefa3(0x199)](this['_cursorInfo$'][_0x2cefa3(0x1e3)](()=>{_0x3ef154();})));}[_0x2369fc(0x35e)](){const _0x2fea14=_0x2369fc;var _0x340e08,_0x5300fc;if(this[_0x2fea14(0x2e3)]=!0x0,((_0x340e08=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x340e08[_0x2fea14(0x253)]())!==this['unitID'])return;const _0x4c1e61=(_0x5300fc=this[_0x2fea14(0x2bc)][_0x2fea14(0x30d)](v[_0x2fea14(0x39f)])['getCurrentSelections']())==null?void 0x0:_0x5300fc[0x0],_0x5853f2=this[_0x2fea14(0x1ff)]['getCurrentUnitForType'](a[_0x2fea14(0x392)]['UNIVER_SHEET'])[_0x2fea14(0x363)]();_0x4c1e61&&_0x5853f2&&this[_0x2fea14(0x2a7)](_0x5853f2[_0x2fea14(0x2b0)](),_0x4c1e61);}[_0x2369fc(0x19d)](){const _0x446ff6=_0x2369fc;this[_0x446ff6(0x2e3)]=!0x1;}};ge=mt([w(0x2,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),w(0x3,a[_0x2369fc(0x2ab)](Re)),w(0x4,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xef)])),w(0x5,a['IUniverInstanceService']),w(0x6,a['ICommandService']),w(0x7,a[_0x2369fc(0x2ab)](v[_0x2369fc(0x269)]))],ge);var Ct=Object[_0x2369fc(0x219)],Tt=(_0x431715,_0x1783c4,_0x4b00da,_0x362d07)=>{const _0x3c3502=_0x2369fc;for(var _0x2dcd1e=_0x362d07>0x1?void 0x0:_0x362d07?Ct(_0x1783c4,_0x4b00da):_0x1783c4,_0x304b00=_0x431715[_0x3c3502(0x236)]-0x1,_0x59088c;_0x304b00>=0x0;_0x304b00--)(_0x59088c=_0x431715[_0x304b00])&&(_0x2dcd1e=_0x59088c(_0x2dcd1e)||_0x2dcd1e);return _0x2dcd1e;},ce=(_0x30ab56,_0x1f2d8c)=>(_0x3c9680,_0x58b0b9)=>_0x1f2d8c(_0x3c9680,_0x58b0b9,_0x30ab56);let F=class extends a[_0x2369fc(0x37f)]{constructor(_0x4399e9,_0x18ae3c,_0x5eb800){const _0x5ae095=_0x2369fc;super(),_(this,_0x5ae095(0x2cf),new Map()),_(this,_0x5ae095(0x389),new I[(_0x5ae095(0x310))]()),(this['_univerInstanceService']=_0x4399e9,this[_0x5ae095(0x2bc)]=_0x18ae3c,this[_0x5ae095(0x16c)]=_0x5eb800,this[_0x5ae095(0x2d3)]());}[_0x2369fc(0x31e)](){const _0xafd8b6=_0x2369fc;super[_0xafd8b6(0x31e)](),this[_0xafd8b6(0x389)][_0xafd8b6(0x36f)](),this[_0xafd8b6(0x2cf)]['forEach'](_0x50ca55=>_0x50ca55['dispose']());}[_0x2369fc(0xe3)](_0x5c4502){const _0x55a520=_0x2369fc;return this[_0x55a520(0x2cf)][_0x55a520(0x17a)](_0x5c4502)?this[_0x55a520(0x2cf)][_0x55a520(0x30d)](_0x5c4502)[_0x55a520(0x27d)]:this[_0x55a520(0x389)][_0x55a520(0x28a)](I[_0x55a520(0x21c)](_0x202527=>_0x202527[_0x55a520(0x1ca)]===_0x5c4502),I[_0x55a520(0x280)](_0x353760=>_0x353760['cursorInfo$']));}[_0x2369fc(0x2d3)](){const _0x15ecd9=_0x2369fc;this[_0x15ecd9(0x1ff)][_0x15ecd9(0x1a1)](a['UniverInstanceType'][_0x15ecd9(0x2b8)])[_0x15ecd9(0x28a)](I['takeUntil'](this[_0x15ecd9(0x131)]))[_0x15ecd9(0x1e3)](async _0x1740b6=>{const _0x43825d=_0x15ecd9,_0x246fec=_0x1740b6[_0x43825d(0x253)](),_0x1cf8a9=await this[_0x43825d(0x343)](_0x246fec);this[_0x43825d(0x389)][_0x43825d(0x2b7)](_0x1cf8a9),this[_0x43825d(0x2cf)][_0x43825d(0x2c6)](_0x246fec,_0x1cf8a9);}),this[_0x15ecd9(0x1ff)][_0x15ecd9(0x1a1)](a[_0x15ecd9(0x392)][_0x15ecd9(0xf2)])['pipe'](I['takeUntil'](this[_0x15ecd9(0x131)]))[_0x15ecd9(0x28a)](I[_0x15ecd9(0x21c)](_0x4a24f3=>!_0x4a24f3['getUnitId']()[_0x15ecd9(0x1c7)]('__')))[_0x15ecd9(0x1e3)](async _0x22f191=>{const _0x2a9d62=_0x15ecd9,_0x2aa447=_0x22f191['getUnitId'](),_0x30b4fe=await this[_0x2a9d62(0x294)](_0x2aa447);this[_0x2a9d62(0x389)][_0x2a9d62(0x2b7)](_0x30b4fe),this['_entities']['set'](_0x2aa447,_0x30b4fe);}),I[_0x15ecd9(0x224)](this[_0x15ecd9(0x1ff)]['getTypeOfUnitDisposed$'](a[_0x15ecd9(0x392)]['UNIVER_DOC']),this[_0x15ecd9(0x1ff)][_0x15ecd9(0x14c)](a[_0x15ecd9(0x392)][_0x15ecd9(0x2b8)]))[_0x15ecd9(0x28a)](I[_0x15ecd9(0x1e2)](this[_0x15ecd9(0x131)]))['subscribe'](_0x334909=>{const _0x1548cc=_0x15ecd9,_0x157cc2=_0x334909[_0x1548cc(0x253)](),_0x4289f5=this['_entities']['get'](_0x157cc2);_0x4289f5&&(_0x4289f5[_0x1548cc(0x31e)](),this['_entities'][_0x1548cc(0x10a)](_0x157cc2));});}async[_0x2369fc(0x343)](_0x496603){const _0x4edd45=_0x2369fc,_0x541767=await this['_collabSessionService']['requireSession'](_0x496603),_0x3dfb28=this[_0x4edd45(0x2bc)][_0x4edd45(0x365)](ge,_0x496603,_0x541767);return _0x3dfb28['init'](),_0x3dfb28;}async[_0x2369fc(0x294)](_0x39f2d7){const _0xd6d815=_0x2369fc,_0x2895c5=await this[_0xd6d815(0x16c)][_0xd6d815(0x2a8)](_0x39f2d7),_0x47d55e=this[_0xd6d815(0x2bc)][_0xd6d815(0x365)](ve,_0x39f2d7,_0x2895c5);return _0x47d55e[_0xd6d815(0xe9)](),_0x47d55e;}};F=Tt([ce(0x0,a[_0x2369fc(0x24a)]),ce(0x1,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),ce(0x2,a['Inject'](u[_0x2369fc(0xf0)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x1694f7,_0x1c67c2){const _0x1d26f9=_0x2369fc;let {radius:_0x4f3e26,width:_0x376a04,height:_0x22bffd}=_0x1c67c2;_0x4f3e26=_0x4f3e26!=null?_0x4f3e26:0x0,_0x376a04=_0x376a04!=null?_0x376a04:0x1e,_0x22bffd=_0x22bffd!=null?_0x22bffd:0x1e;let _0x493eba=0x0,_0x5abafd=0x0,_0x563d31=0x0;_0x493eba=_0x5abafd=_0x563d31=Math[_0x1d26f9(0x151)](_0x4f3e26,_0x376a04/0x2,_0x22bffd/0x2),_0x1694f7['beginPath'](),_0x1694f7['moveTo'](_0x493eba,0x0),_0x1694f7[_0x1d26f9(0x27e)](_0x376a04-_0x5abafd,0x0),_0x1694f7['arc'](_0x376a04-_0x5abafd,_0x5abafd,_0x5abafd,Math['PI']*0x3/0x2,0x0,!0x1),_0x1694f7['lineTo'](_0x376a04,_0x22bffd-_0x563d31),_0x1694f7[_0x1d26f9(0x135)](_0x376a04-_0x563d31,_0x22bffd-_0x563d31,_0x563d31,0x0,Math['PI']/0x2,!0x1),_0x1694f7[_0x1d26f9(0x27e)](0x0,_0x22bffd),_0x1694f7[_0x1d26f9(0x27e)](0x0,_0x493eba),_0x1694f7[_0x1d26f9(0x135)](_0x493eba,_0x493eba,_0x493eba,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1694f7[_0x1d26f9(0x1e1)](),_0x1c67c2[_0x1d26f9(0x126)]&&(_0x1694f7[_0x1d26f9(0x112)](),_0x1694f7[_0x1d26f9(0x13b)]=_0x1c67c2[_0x1d26f9(0x126)],_0x1c67c2[_0x1d26f9(0x2ec)]===_0x1d26f9(0x11f)?_0x1694f7[_0x1d26f9(0x126)]('evenodd'):_0x1694f7[_0x1d26f9(0x126)](),_0x1694f7['restore']());}class re extends C['Shape']{constructor(_0x5ca66b,_0x378a88){const _0x22d921=_0x2369fc;super(_0x5ca66b,_0x378a88),_(this,_0x22d921(0x123)),_(this,_0x22d921(0x13e)),(this[_0x22d921(0x123)]=_0x378a88==null?void 0x0:_0x378a88['color'],this['text']=_0x378a88==null?void 0x0:_0x378a88[_0x22d921(0x13e)]);}static[_0x2369fc(0x263)](_0x372d1b,_0x41f6e1){const _0x25ccae=_0x2369fc,{text:_0x3cc0bb,color:_0x5dc2e8}=_0x41f6e1;_0x372d1b[_0x25ccae(0x112)](),_0x372d1b[_0x25ccae(0x39b)]=_0x25ccae(0x114);const _0x34e9d3=_0x372d1b[_0x25ccae(0x223)](_0x3cc0bb)[_0x25ccae(0xf7)],_0x5882ee=Math[_0x25ccae(0x151)](_0x34e9d3+0x2*le,Ue);Ot(_0x372d1b,{'height':X,'radius':0x4,'width':_0x5882ee,'fill':_0x5dc2e8}),_0x372d1b[_0x25ccae(0x13b)]=_0x25ccae(0x1d3);const _0x33b93b=le,_0x2a0702=X-pt,_0x20d106=Ue-0x2*le;if(_0x34e9d3>_0x20d106){let _0x2a40b0='',_0x137e5e=0x0;for(const _0x5baf8a of _0x3cc0bb){const _0x1bae7e=_0x372d1b[_0x25ccae(0x223)](_0x5baf8a)['width'];if(_0x137e5e+_0x1bae7e<=_0x20d106-_0x372d1b[_0x25ccae(0x223)](_0x25ccae(0x2f6))[_0x25ccae(0xf7)])_0x2a40b0+=_0x5baf8a,_0x137e5e+=_0x1bae7e;else{_0x2a40b0+=_0x25ccae(0x2f6);break;}}_0x372d1b[_0x25ccae(0x2a6)](_0x2a40b0,_0x33b93b,_0x2a0702);}else _0x372d1b[_0x25ccae(0x2a6)](_0x3cc0bb,_0x33b93b,_0x2a0702);_0x372d1b[_0x25ccae(0x1fb)]();}[_0x2369fc(0x1ad)](_0x1c9215){const _0x29dd47=_0x2369fc;re[_0x29dd47(0x263)](_0x1c9215,this);}}const _e=_0x2369fc(0x169),Rt=_0x2369fc(0x35f),bt=_0x2369fc(0x378),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2369fc(0xf6);class Le{constructor(_0x461695,_0x900680,_0x79d213,_0x13edf0){const _0x39f4e1=_0x2369fc;_(this,_0x39f4e1(0x2c3),[]),_(this,_0x39f4e1(0x1e9),null),_(this,_0x39f4e1(0x265),null),_(this,_0x39f4e1(0x2bb),null),_(this,'_hideTimer',null),_(this,_0x39f4e1(0x318),null),(this[_0x39f4e1(0x1ce)]=_0x461695,this[_0x39f4e1(0x163)]=_0x900680,this[_0x39f4e1(0x127)]=_0x79d213,this[_0x39f4e1(0x399)]=_0x13edf0,this[_0x39f4e1(0x274)]());}set[_0x2369fc(0x21b)](_0x392158){const _0x567edb=_0x2369fc;_0x392158?(this[_0x567edb(0x2bb)]&&this[_0x567edb(0x2bb)]['hide'](),this[_0x567edb(0x265)]&&this[_0x567edb(0x265)][_0x567edb(0x1c4)]()):(this['_anchorDot']&&this['_anchorDot'][_0x567edb(0x1c4)](),this[_0x567edb(0x265)]&&this['_textBubble']['hide']());}[_0x2369fc(0x31e)](){const _0x204a91=_0x2369fc;for(const _0x6b86d9 of this[_0x204a91(0x2c3)])_0x6b86d9['dispose']();this[_0x204a91(0x265)]&&this[_0x204a91(0x265)]['dispose'](),this[_0x204a91(0x2bb)]&&this[_0x204a91(0x2bb)][_0x204a91(0x31e)](),this['_anchor']&&this[_0x204a91(0x1e9)]['dispose'](),this['_eventUnsubscribe']&&this[_0x204a91(0x318)]();}[_0x2369fc(0x274)](){const _0x16f917=_0x2369fc;var _0x4eec24;const {_docSkeleton:_0x2bbe27,_document:_0x4bb0d2}=this,{color:_0x329340,name:_0x12c250,ranges:_0x11add5}=this[_0x16f917(0x1ce)],_0x4c39eb=_0x4bb0d2[_0x16f917(0x304)](),{docsLeft:_0x4f6458,docsTop:_0x333b58}=_0x4c39eb,_0x5e40da=new T[(_0x16f917(0x158))](_0x4c39eb,_0x2bbe27);for(const {startOffset:_0x1899d4,endOffset:_0xdfee3c,rangeType:_0x846f12,segmentId:_0x5d27c5,segmentPage:_0x53cde7,collapsed:_0xa8dffc,isActive:_0x24672e}of _0x11add5){const _0x2614f7=_0x2bbe27[_0x16f917(0x18d)](_0x1899d4,!0x0,_0x5d27c5,_0x53cde7);let _0x4e53f0=_0x2bbe27[_0x16f917(0x18d)](_0xdfee3c,!0x0,_0x5d27c5,_0x53cde7);if(_0x4e53f0==null&&(_0x4e53f0=_0x2bbe27[_0x16f917(0x18d)](_0xdfee3c-0x1,!0x1,_0x5d27c5,_0x53cde7)),_0x24672e){const {contentBoxPointGroup:_0x1f9f99}=_0x5e40da[_0x16f917(0x2fd)](_0x4e53f0,_0x4e53f0);if(_0x1f9f99[_0x16f917(0x236)]===0x0)continue;this[_0x16f917(0x1ec)](_0x329340,_0x1f9f99,_0x4f6458,_0x333b58,_0x12c250),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x2614f7&&_0x4e53f0){if(_0x846f12===a[_0x16f917(0x23f)]['RECT']){const _0x33e95f=new T['NodePositionConvertToRectRange'](_0x4c39eb,_0x2bbe27),{pointGroup:_0x4a33c9}=(_0x4eec24=_0x33e95f[_0x16f917(0x2fd)](_0x2614f7,_0x4e53f0))!=null?_0x4eec24:{};if(_0x4a33c9==null||_0x4a33c9[_0x16f917(0x236)]===0x0)continue;this['_drawRectRange'](_0x329340,_0x4a33c9,_0x4f6458,_0x333b58);}else{if(!_0xa8dffc){const {borderBoxPointGroup:_0x2b5e0d}=_0x5e40da[_0x16f917(0x2fd)](_0x2614f7,_0x4e53f0);if(_0x2b5e0d[_0x16f917(0x236)]===0x0)continue;this[_0x16f917(0x2f8)](_0x329340,_0x2b5e0d,_0x4f6458,_0x333b58);}}}}}[_0x2369fc(0x1ec)](_0x40c8ef,_0x8c2019,_0x265cdb,_0x593891,_0x28a1a4){const _0x1b89c5=_0x2369fc,_0x3374ee=this[_0x1b89c5(0x1dc)](_0x8c2019),{left:_0x3b0d05,top:_0xb9cb7d,height:_0x4c8b9a}=_0x3374ee,_0x2c477c=this[_0x1b89c5(0x142)](),_0x3a6721=Nt/_0x2c477c,_0x1d3a7b=new C['Rect'](_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891,'height':_0x4c8b9a,'width':Dt,'fill':_0x40c8ef||C[_0x1b89c5(0x1fe)](a[_0x1b89c5(0x225)][_0x1b89c5(0x3ab)],0x0),'strokeWidth':_0x3a6721,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x1d3a7b,this[_0x1b89c5(0x163)][_0x1b89c5(0x221)](_0x1d3a7b,T[_0x1b89c5(0x388)]);const _0x273611=new C['Rect'](_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891-he/0x2,'height':he,'width':he,'fill':_0x40c8ef||C[_0x1b89c5(0x1fe)](a[_0x1b89c5(0x225)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x40c8ef||C[_0x1b89c5(0x1fe)](a['COLORS'][_0x1b89c5(0x3ab)],0x0),'evented':!0x1});this['_anchorDot']=_0x273611,this[_0x1b89c5(0x163)][_0x1b89c5(0x221)](_0x273611,T[_0x1b89c5(0x388)]);const _0x404e9d=new re(_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891-X,'text':_0x28a1a4,'color':_0x40c8ef});this[_0x1b89c5(0x265)]=_0x404e9d,this[_0x1b89c5(0x163)]['addObject'](_0x404e9d,T[_0x1b89c5(0x388)]),this['_hover']=!0x1;}[_0x2369fc(0x1ab)](){const _0x2070dc=_0x2369fc,_0x33b217=this[_0x2070dc(0x1e9)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x306cc2=this[_0x2070dc(0x1e9)][_0x2070dc(0x113)]['subscribeEvent'](()=>{const _0x3173f6=_0x2070dc;this[_0x3173f6(0x1ea)]&&clearTimeout(this[_0x3173f6(0x1ea)]),this[_0x3173f6(0x1ea)]=setTimeout(()=>{const _0x4c743c=_0x3173f6;this[_0x4c743c(0x21b)]=!0x1;},0x7d0);});return()=>{const _0x447df0=_0x2070dc;_0x33b217['unsubscribe'](),_0x306cc2[_0x447df0(0xe7)]();};}[_0x2369fc(0x2f8)](_0x14040a,_0x2bc485,_0x6f997f,_0x5a0fc2){const _0x4b1617=_0x2369fc,_0x965ae0=new a[(_0x4b1617(0x1d8))](_0x14040a)[_0x4b1617(0x2da)](0.2)[_0x4b1617(0x394)](),_0x4ee1d6=new C[(_0x4b1617(0xfb))](Rt+a[_0x4b1617(0x2f7)](H),{'pointsGroup':_0x2bc485,'fill':_0x965ae0||C[_0x4b1617(0x1fe)](a[_0x4b1617(0x225)][_0x4b1617(0x3ab)],0.2),'left':_0x6f997f,'top':_0x5a0fc2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4b1617(0x2c3)][_0x4b1617(0x1a0)](_0x4ee1d6),this['_scene'][_0x4b1617(0x221)](_0x4ee1d6,T[_0x4b1617(0x388)]);}[_0x2369fc(0x322)](_0x16b990,_0x379caa,_0x1d71d6,_0xd57617){const _0xc26e03=_0x2369fc,_0x2ec394=new a[(_0xc26e03(0x1d8))](_0x16b990)[_0xc26e03(0x2da)](0.2)[_0xc26e03(0x394)](),_0x310311=new C['RegularPolygon'](bt+a[_0xc26e03(0x2f7)](H),{'pointsGroup':_0x379caa,'fill':_0x2ec394||C['getColor'](a['COLORS'][_0xc26e03(0x3ab)],0.2),'left':_0x1d71d6,'top':_0xd57617,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xc26e03(0x1a0)](_0x310311),this[_0xc26e03(0x163)][_0xc26e03(0x221)](_0x310311,T[_0xc26e03(0x388)]);}[_0x2369fc(0x1dc)](_0x4a35e6){const _0x3edc20=_0x4a35e6[0x0],_0x11824e=_0x3edc20[0x0],_0x43495f=_0x3edc20[0x2],{x:_0x17e92e,y:_0x11b68c}=_0x11824e,{x:_0x423b84,y:_0x1a3a38}=_0x43495f;return{'left':_0x17e92e,'top':_0x11b68c,'width':_0x423b84-_0x17e92e,'height':_0x1a3a38-_0x11b68c};}[_0x2369fc(0x142)](){const _0x11e34c=_0x2369fc,{scaleX:_0xe0c71b,scaleY:_0x2ba433}=this['_scene'][_0x11e34c(0x1b0)]();return Math[_0x11e34c(0x1d5)](_0xe0c71b,_0x2ba433);}}var Lt=Object[_0x2369fc(0x219)],Mt=(_0x5abb22,_0x4b7132,_0x1d0c72,_0x37c7a5)=>{const _0x5cc0f5=_0x2369fc;for(var _0x393ac4=_0x37c7a5>0x1?void 0x0:_0x37c7a5?Lt(_0x4b7132,_0x1d0c72):_0x4b7132,_0xf150c6=_0x5abb22[_0x5cc0f5(0x236)]-0x1,_0x4d4927;_0xf150c6>=0x0;_0xf150c6--)(_0x4d4927=_0x5abb22[_0xf150c6])&&(_0x393ac4=_0x4d4927(_0x393ac4)||_0x393ac4);return _0x393ac4;},q=(_0x19883d,_0x60d5ff)=>(_0x3381c5,_0xb06fba)=>_0x60d5ff(_0x3381c5,_0xb06fba,_0x19883d);let Ee=class extends a[_0x2369fc(0x37f)]{constructor(_0x596262,_0x58e4e3,_0x24496c,_0x3e3e0d,_0x4f9347){const _0x47faeb=_0x2369fc;super(),_(this,_0x47faeb(0x20c),[]),_(this,_0x47faeb(0x18a),[]),(this['_context']=_0x596262,this[_0x47faeb(0x30c)]=_0x58e4e3,this[_0x47faeb(0x102)]=_0x24496c,this[_0x47faeb(0x24c)]=_0x3e3e0d,this[_0x47faeb(0x324)]=_0x4f9347,this[_0x47faeb(0x2d3)]());}[_0x2369fc(0x2d3)](){const _0x1f9d86=_0x2369fc,_0x646286=this[_0x1f9d86(0x1e8)][_0x1f9d86(0x3a9)],_0x4fc05f=this['_docSkeletonManagerService'];this['disposeWithMe'](I[_0x1f9d86(0x11a)]([this[_0x1f9d86(0x102)][_0x1f9d86(0xe3)](_0x646286),this[_0x1f9d86(0x324)][_0x1f9d86(0x184)]])['pipe']($[_0x1f9d86(0x22c)](([_0x1a35a2,_0x3bcca5])=>({'skeleton':_0x4fc05f['getSkeleton'](),'cursors':[..._0x1a35a2['values']()][_0x1f9d86(0x38f)](_0x323227=>({..._0x323227,'color':this['_themeService'][_0x1f9d86(0x2b5)](_0x323227[_0x1f9d86(0x123)])}))})))[_0x1f9d86(0x1e3)](_0xb86bc4=>{const _0x321dad=_0x1f9d86;if(this[_0x321dad(0x258)](),_0xb86bc4){const {skeleton:_0x390cdd,cursors:_0x49126b}=_0xb86bc4;this[_0x321dad(0x382)](_0x390cdd,_0x49126b);}})),this[_0x1f9d86(0x2cc)](),this[_0x1f9d86(0x300)]();}['_updateCollabCursors'](_0x341897,_0x1e63c5){const _0x3b4c94=_0x2369fc,{scene:_0x499fad,mainComponent:_0x122e34}=this['_context'],_0x4b1eda=_0x1e63c5[_0x3b4c94(0x22c)](_0x290a0b=>new Le(_0x290a0b,_0x499fad,_0x341897,_0x122e34));this[_0x3b4c94(0x20c)]=_0x4b1eda,this[_0x3b4c94(0x18a)]=_0x1e63c5;}['_refreshCollabCursors'](){const _0x4ede2a=_0x2369fc;this['_removeCollabCursors']();const {scene:_0x242229,mainComponent:_0x33a172}=this['_context'],_0x41a699=this['_docSkeletonManagerService'][_0x4ede2a(0x3ac)](),_0x3475f6=this[_0x4ede2a(0x18a)][_0x4ede2a(0x22c)](_0x40ad51=>new Le(_0x40ad51,_0x242229,_0x41a699,_0x33a172));this['_cursorShapes']=_0x3475f6;}[_0x2369fc(0x258)](){const _0x4ce305=_0x2369fc;this[_0x4ce305(0x20c)][_0x4ce305(0x1a4)](_0x19d689=>_0x19d689[_0x4ce305(0x31e)]()),this[_0x4ce305(0x20c)]=[];}[_0x2369fc(0x300)](){const _0x25ef47=_0x2369fc,_0x325f85=[T[_0x25ef47(0x228)]['id']];this[_0x25ef47(0x237)](this[_0x25ef47(0x24c)][_0x25ef47(0x2dc)](_0x3c7aed=>{const _0x327909=_0x25ef47;_0x325f85[_0x327909(0x11d)](_0x3c7aed['id'])&&_0x3c7aed['params'][_0x327909(0x3a9)]===this[_0x327909(0x1e8)][_0x327909(0x3a9)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x3562c7=_0x2369fc;this['disposeWithMe'](a[_0x3562c7(0x17f)](this[_0x3562c7(0x1e8)][_0x3562c7(0x1ee)][_0x3562c7(0x1a5)])[_0x3562c7(0x28a)]($['filter'](_0x855a54=>_0x855a54[_0x3562c7(0x230)]===C[_0x3562c7(0x147)][_0x3562c7(0x21f)]),$[_0x3562c7(0x141)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};function _0x4655(){const _0x1cc157=['_init','PENDING','getCurrentRevOfUnit','assignAColorForMemberID','sessionTicket','off-line-icon','debounceTime','setAlpha','DocStateChangeManagerService','onCommandExecuted','_saveTaskMap','UNAUTHENTICATED','setActiveRange','name','YUUMI_RATE_OVER_LIMIT','send','_online','DisposableCollection','/universer-api/license/formula/limit/start','Failed','_collaborationController','ILogService','19530090dTVVHG','_unitOnClients','_configService','fillRule','setItem','IRemoteInstanceService','InsertRowCommandId','_getSaveTimeout','_setupBeforeClosingHandler','unshift','_selfUnitIDs','EffectRefRangId','entityInit$','...','generateRandomId','_drawTextRange','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_cachedData','touchDependencies','round','getRangePointData','handleMoveRange','collaboration.closeRoom','_initCommandExecutedListener','whenReady','RECT','onPointerMove$','getOffsetConfig','sheetID','runRefRangeMutations','shift','executeCommand','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RichTextEditingMutation','CollaborationStatus','_docSkeletonManagerService','get','_pollingInterval','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Subject','DataLoaderService','disposeUnit','Shape','MessageType','RemoveRowCommandId','setUndoRedoMutationParamsCache','current','_eventUnsubscribe','HEADER_MENU','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_setFormulaLimitStatus','SHEET_VIEWPORT_KEY','dispose','YUUMI_NO_CUBOID_FOR_QUESTION','FromArray','TEXT','_drawRectRange','_initDependencies','_themeService','debug','onStarting','INVALID_INVITE_CODE','ENTITLE_CAN_NOT_BUY_LOWER_OTP','releaseFormulaLimitUrl','_syncEditingCollabCursorService','subscribeEvent','permission.title','registerComponent','currentSkeleton$','MOBILE_VERIFY_CODE_MISMATCH','skeleton','SetFormulaCalculationNotificationMutation','CONNECTOR_DATA_TOO_LARGE','functionsExecutedState','_range','_docTransformSelectionsService','_checkAndWaitForCalculationPermission','_transformHistoryAndStateStack','_memberService','translate(.97)','m2Prime','ENTITLE_USE_COUPON_NOT_1ST_TRADE','ranges','ThemeService','searchParams','_urlService','_instanceService','1749976zetQSz','univer-flex\x20univer-items-center','_startSheetCollabCursor','clearInterval','INVITE_CODE_REQUIRED','_handleJoinEvent','getFocusedUnit','ENTITLE_COUPON_USED_UP','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getParam','INVALID_ARGUMENT','replaceState','transformSelections','SUBMIT_CHANGESET_TIMEOUT','_transformService','newValue','ILocalCacheService','_roomMembers$','height','_imageIoService','bottom','transformMutation','ONLINE','textRanges','_initUnhandledRejectionListener','INVITE_CODE_HAS_BEEN_UES','Plugin','off-line-icon_clip0_910_343','updateOfflineData','_toggleOnline','collab-text-range-','override','_initUserListener','APPLY_PERMISSION_DENIED','getActiveSheet','INotificationService','createInstance','_getFormulaLimitStatus','_onCursorUpdate','6asdGbM','_scheduleSaving','InsertColCommandId','registerRefRange','unhandledrejection','_monkeyPatchLogService','forwardRef','complete','with','attrs','ISocketService','AWAITING','cursorInfo','uni.network.url-service','_session','REDEMPTION_CODE_HAS_BEEN_CREATED','collab-rect-range-','post','TOO_MANY_REQUESTS','endColumn','roomMembers$','event$','_labelPosition','RxDisposable','addClipboardHook','ERROR_AGAIN','_updateCollabCursors','url(#on-line-icon_clip0_910_349)','join','colno','YUUMI_AI_RUN_FAILED','LICENSE_IMPORT_SIZE_EXCEEDED','TEXT_RANGE_LAYER_INDEX','_entityInit$','parseInt','CanceledError','params','getMemberID','ENTITLE_REPORT_LIMIT_EXCEED','flatMap','sheetId','SYNCED','UniverInstanceType','collaboration.single-unit.warning','toRgbString','shareReplay','disableLocalCache','VIEW_MAIN','url(#$1','_document','then','font','_unitStatus','key','transformMutationsWithChangeset','SheetsSelectionsService','runOnServer','handleInsertCol','_getSessionTicket','top','replace','mapTo','assign','now','/universer-api/frontend/logs','unitId','values','black','getSkeleton','_docStateChangeManagerService','endRow','useCallback','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_maxFormulaLimit','OTHER_CLIENT_EDITING','getCollabCursors$','href','_transformPreviousActiveRange','_httpService','unsubscribe','mask','init','setInterval','YUUMI_URL_COL_OUT_OF_RANGE','formula.calculation.started','_messageService','collabStatus.conflict','MemberService','CollaborationSessionService','Error','UNIVER_DOC','dirtyRanges','asObservable','range','rgba(255,\x20255,\x20255,\x200.01)','width','LOGIN_TOKEN_PROCESSING_FAILED','CollaborationUIEventId','IMessageService','RegularPolygon','stageInfo','_heartbeatTimer','getConfig','on-line-icon_clip0_910_349','0\x200\x2017\x2016','jsx','_collabCursorController','totalFormulasToCalculate','removeParam','LICENSE_DISTRO_REJECTED','Unknown\x20user','YUUMI_ASYNCIO_CANCELLED','YUUMI_ALL_TABLES_IS_INVALID','LICENSE_EXPORT_SIZE_EXCEEDED','delete','CollaborationUIEventService','Tooltip','pushState','code','CommandType','_renderManagerService','storage','save','onPointerLeave$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','replaceDocRanges','handleDeleteRangeMoveUp','history','_collaborationUIEventService','0\x200\x2016\x2016','combineLatest','_disabled','_status$','includes','message','evenodd','DeleteRangeMoveLeftCommandId','BehaviorSubject','pluginName','color','_send','permission.content','fill','_docSkeleton','OnLineIcon','reconnect','_clearOtherTimers','isTransformMutationsWithChangesetSuccess','isEditing','_onRefRangeChange','transformByState','green.600','limitInfo','dispose$','enableFrontendLog','USERS_LEAVE','handleDeleteRangeMoveLeft','arc','ACTIVE_UNIT_EVENT_CHANNEL','createElement','toString','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docTransformIMECacheService','fillStyle','actions','[Window\x20Error]:\x20','text','setStateCache','USER_NOT_FOUND','throttleTime','_getScale','ticket','1313354VWNgAh','PY_RUNTIME_SCRIPT_ERROR','getVpScrollXYInfoByPosToVp','TRANSFORM_CHANGE_OBSERVABLE_TYPE','source','[LogService\x20Error]:\x20','WebURLService','div','getTypeOfUnitDisposed$','getCoordByCell','getUnitStatus$','DATA_SOURCE_TOO_LARGE','INTERNAL_ERROR','min','registerRenderModule','_currentUsage','SheetCollabCursorShape','createIdentifier','PERMISSION_DENIED','[Unhandled\x20Rejection]:\x20','NodePositionConvertToCursor','_colorIndex','IConfigService','getUniverSheetInstance','unit','APPLY_DUPLICATED','getSheetObject','urlChange$','_handleHeartbeatEvent','add','ENTITLE_CHAT_LIMIT_EXCEED','_scene','ICommandService','m1Prime','getStateCache','RemoveColCommandId','row','collab-text-anchor-','debounce','getUnhiddenWorksheets','_collabSessionService','none','wsSessionTicketUrl','useDependency','Injector','Warning','getItem','currentUsage','backgroundColor','UniverCollaborationClientPlugin','_initStatusListener','reason','stack','UnitStatus','has','LICENSE_MAX_UNITS_EXCEEDED','defs','_logService','PAYMENT_CHANNEL_NOT_SUPPORT','fromEventSubject','NO_OTHER_CLIENTS_EDITING','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LOCAL_CACHE_INTERVAL_KEY','SetTextSelectionsOperation','currentTheme$','REDEMPTION_USER_NOT_ELIGIBLE','collaboration-client-ui.config','clsx','_scheduleHeartbeat','Disposable','_cursors','CLOSE_ROOM','_uploadLog','findNodePositionByCharIndex','DesktopCollaborationStatusDisplayController','registerBeforeClose','1em','DocSelectionManagerService','ITransformService','imageSourceType','_initWindowErrorListener','svg','location','entries','ENTITLE_INSUFFICIENT_QUOTA','toDisposable','contains','CONFLICT','currentColor','_toggleOffline','executionId','Optional','push','getTypeOfUnitAdded$','displayName','_localeService','forEach','onTransformChange$','_taskIds','_handleLeaveEvent','memberID','NOT_FOUND','_collaborationSessionService','_handleHover','useRef','_draw','DocCollaborationEntity','error','getAncestorScale','UniverIcon','getLocalCacheKey','editingUnit','Tools','mergeOverrideWithDependencies','trim','collaboration.offline-data-not-saved','YUUMI_UNABLE_LOAD_URL','session.will-retry','getRenderById','_checkCalculationAvailable','_initStatusComponent','IBeforeCloseService','_initEntityListener','result','getCollabEntity$','_showGuardMessage','_getMergeRange','body','show','isTransformMutationFailure','selection','startsWith','onMouseMove','SetSelectionsOperation','unitID','_lastPointer','ENTITLE_NEED_BILLING_ADDRESS','_onCursorDelete','_cursor','LOCAL_CACHE_INTERVAL','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','size','stage','#FFF','collabStatus.offline','max','saveImage','SessionStatus','ColorKit','mutations','DependentOn','ALREADY_EXISTS','_getAnchorBounding','OFFLINE','beforeCommandExecuted','CHANGESET_REVISION_CONFILICT','getMember','closePath','takeUntil','subscribe','labelPosition','_localCacheService','catch','_scheduleClearOtherTimer','_context','_anchor','_hideTimer','deepClone','_drawAnchor','getCellMatrix','engine','_assignedColors','connectInjector','_cursorInfo$','UniverCollaborationClientUIPlugin','REDEMPTION_CODE_FULLY_REDEEMED','6450680Bhixhv','InsertRangeMoveDownCommandId','colorChannel1','_localStorageService','sessionStatus$','BrowserCollaborationSocketService','undoState','restore','_refRangeService','_hovered','getColor','_univerInstanceService','NOT_COLLAB','deserializeRangeWithSheet','defineProperty','_initCommandInterceptor','_updateSubUnitFromURLParams','_memberID','_saveCache','isFormulaId','_docSyncEditingCollabCursorService','_getSheetObject','IURLService','runId','_cursorShapes','_id','LocaleService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','?taskId=','selections','MOBILE_HAS_BEEN_BOUND','FormulaExecuteStageType','onRendered','/run/','_color','syncEditingCollabCursor','transformIMECache','getOwnPropertyDescriptor','registerDependencies','_hover','filter','handleIRemoveRow','defIds','resize','invokeId','addObject','getCellPositionByOffset','measureText','merge','COLORS','setParam','clipPath','SetDocZoomRatioOperation','_beforeCloseService','CollaborationEvent','UNRECOGNIZED','map','getMergeData','_notificationService','_clearPolling','type','xlink:href','5317509qWWbOd','USER_IS_ANONYMOUS','transformRemoteChangeset','DocIMEInputManagerService','length','disposeWithMe','collabStatus.fetchMiss','_setupSubUnitSync','from','getUndoRedoMutationParamsCache','_registerDependencies','CURRENT_STATUS_CANNOT_OPERATE','getValue','DOC_RANGE_TYPE','71HItjCS','use','docStateChange$','focused$','path','APPLY_NON_SEQUENTIAL_REVISION','column','idSuffix','_applyCommand','HTTPService','IUniverInstanceService','UPDATE_CURSOR','_commandService','AWAITING_WITH_PENDING','ENTITLE_COUPON_EXPIRED','_lastResponseTimestamp','WECHAT_HAS_BEEN_BOUND','tag','getActiveRange','getUnitId','white','_removeClearOtherTimer','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REVISION_CONFILICT','_removeCollabCursors','some','SetWorksheetActivateCommand','[CollaborationDataLoaderController]','clearTimeout','COMPLETION_FINISHED','Rect','startRow','children','setTimeout','jsxs','drawWith','8625320UBuEFn','_textBubble','isActive','getCurrent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','RefRangeService','redoState','getSheetBySheetId','yellow.400','FormulaExecutedStateType','CollaborationController','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformUndoRedoStack','DocSkeletonManagerService','doc.mutation.rich-text-editing','_doCreateSocket','_render','startFormulaLimitUrl','setShapeProps','WebBrowserSingleActiveUnitService','collabCursorState$','collabStatus.syncing','onPointerEnter$','_dataLoaderService','ILocalStorageService','cursorInfo$','lineTo','_name','switchMap','\x20at\x20','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','INVITE_CODE_ALREADY_BOUND','roomMembers','50888Loirmg','LOGIN_FAILED','REDEMPTION_CODE_INACTIVE','handleIRemoveCol','_createSocketURL','pipe','ENSURE_SNAPSHOT_EXECUTION','_backgroundColor','_colorAssignService','_releaseCalculationLimit','SNAPSHOT_HAS_BEEN_REMOVED','getFormulaLimitStatusUrl','_docClipboardService','removeEventListener','isArray','_startDocCollabCursor','fromEvent','CollaborationDataLoaderController','REDEMPTION_INVALID_CODE','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','serializeRangeWithSheet','transformStateCache','lineno','_collabCursorState$','SNAPSHOT_INVALID_SNAPSHOT','_uiPartsService','CollaborationSocketService','USER_NOT_INVITED_CODE','subunit','toStringTag','IImageIoService','addEventListener','_updateURLWithCurrentState','fillText','_updateLocalCursor','requireSession','ISnapshotServerService','_docTransformStateCacheService','Inject','stringify','_config','ENTITLE_INVALID_COUPON_CODE','SOCKET_FAILED_RETRY','getSheetId','M0\x200H16V16H0z','split','_hasFormulaInDirtyRanges','REDEMPTION_CODE_NOT_STARTED','getColorFromTheme','_registerRenderDependencies','next','UNIVER_SHEET','univer-mr-2\x20univer-flex\x20univer-text-xl','maxFormulaLimit','_anchorDot','_injector','saveTaskMap','RemoteUniscriptService','eventID','loadUnit','UNDEFINED','EMAIL_HAS_BEEN_BOUND','_shapes','OTHER_CLIENTS_EDITING','string','set','_sheetSkeletonManagerService','FETCH_MISS','getViewport','SetFormulaCalculationStartMutation','YUUMI_SUBSCRIPTION_NOT_FOUND','_initResize','triggerDblclick','data','_entities','_initEvent','_ensureSubject','AUTHORIZE_CODE_ILLEGAL'];_0x4655=function(){return _0x1cc157;};return _0x4655();}Ee=Mt([q(0x1,a['Inject'](V[_0x2369fc(0x271)])),q(0x2,a[_0x2369fc(0x2ab)](F)),q(0x3,a[_0x2369fc(0x164)]),q(0x4,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x33d)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x2369fc(0x313)]{constructor(_0x59bd2b,_0x8afcc4){const _0x18aceb=_0x2369fc;super(_0x59bd2b,_0x8afcc4),_(this,'_color'),_(this,_0x18aceb(0x1fd),!0x1),_(this,_0x18aceb(0x334)),_(this,_0x18aceb(0x27f),''),_(this,_0x18aceb(0x37e),_0x18aceb(0x3a3)),_(this,_0x18aceb(0x28c)),(_0x8afcc4&&this[_0x18aceb(0x276)](_0x8afcc4),this[_0x18aceb(0x27a)][_0x18aceb(0x32b)](()=>this[_0x18aceb(0x276)]({'hovered':!0x0})),this[_0x18aceb(0x113)][_0x18aceb(0x32b)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2369fc(0x276)](_0x220ae7){const _0x104b4f=_0x2369fc;var _0x4f01d3,_0x3f685d,_0x1c8cf8,_0x50a7ed,_0x5e124e,_0x542496;this[_0x104b4f(0x216)]=(_0x4f01d3=_0x220ae7['color'])!=null?_0x4f01d3:this[_0x104b4f(0x216)],this['_hovered']=(_0x3f685d=_0x220ae7['hovered'])!=null?_0x3f685d:this[_0x104b4f(0x1fd)],this[_0x104b4f(0x334)]=(_0x1c8cf8=_0x220ae7[_0x104b4f(0xf5)])!=null?_0x1c8cf8:this[_0x104b4f(0x334)],this[_0x104b4f(0x27f)]=(_0x50a7ed=_0x220ae7[_0x104b4f(0x2e0)])!=null?_0x50a7ed:this[_0x104b4f(0x27f)],this[_0x104b4f(0x37e)]=(_0x5e124e=_0x220ae7[_0x104b4f(0x1e4)])!=null?_0x5e124e:this[_0x104b4f(0x37e)],this[_0x104b4f(0x28c)]=(_0x542496=_0x220ae7[_0x104b4f(0x174)])!=null?_0x542496:this[_0x104b4f(0x28c)],this[_0x104b4f(0x12e)]({'width':_0x220ae7[_0x104b4f(0xf7)],'height':_0x220ae7['height']});}['onMouseMove'](_0x35ceac){const _0x3a0768=_0x2369fc,{row:_0x3afdd6,column:_0x10ada8}=_0x35ceac;if(_0x3afdd6>=this[_0x3a0768(0x334)]['startRow']&&_0x3afdd6<=this[_0x3a0768(0x334)][_0x3a0768(0x3ae)]&&_0x10ada8>=this[_0x3a0768(0x334)]['startColumn']&&_0x10ada8<=this['_range'][_0x3a0768(0x37b)]){this[_0x3a0768(0x276)]({'hovered':!0x0});return;}this[_0x3a0768(0x276)]({'hovered':!0x1});}[_0x2369fc(0x2cd)](_0x113490){return!0x1;}[_0x2369fc(0x1ad)](_0x3ab64a){const _0x5a0eb1=_0x2369fc;C[_0x5a0eb1(0x25e)][_0x5a0eb1(0x263)](_0x3ab64a,{'width':this[_0x5a0eb1(0xf7)],'height':this[_0x5a0eb1(0x353)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5a0eb1(0x28c)]}),this[_0x5a0eb1(0x1fd)]&&(_0x3ab64a[_0x5a0eb1(0x112)](),_0x3ab64a['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x5a0eb1(0x355)?0x0:-X),re[_0x5a0eb1(0x263)](_0x3ab64a,{'text':this[_0x5a0eb1(0x27f)],'color':this[_0x5a0eb1(0x216)]}),_0x3ab64a['restore']());}}var wt=Object[_0x2369fc(0x219)],yt=(_0x526607,_0x19ebcd,_0xa344d9,_0x100456)=>{const _0x3b8b50=_0x2369fc;for(var _0x4f923a=_0x100456>0x1?void 0x0:_0x100456?wt(_0x19ebcd,_0xa344d9):_0x19ebcd,_0x1d4dbd=_0x526607[_0x3b8b50(0x236)]-0x1,_0x33b203;_0x1d4dbd>=0x0;_0x1d4dbd--)(_0x33b203=_0x526607[_0x1d4dbd])&&(_0x4f923a=_0x33b203(_0x4f923a)||_0x4f923a);return _0x4f923a;},ue=(_0x43deba,_0xb64775)=>(_0x5bd08f,_0x2ad1d8)=>_0xb64775(_0x5bd08f,_0x2ad1d8,_0x43deba);const $t=0x1389;let Ce=class extends a[_0x2369fc(0x37f)]{constructor(_0x30ccad,_0x2b0753,_0x34883c,_0x5ab4e5){const _0x56a8a5=_0x2369fc;super(),_(this,'_cursors',new Set()),_(this,_0x56a8a5(0x1cb),null),(this[_0x56a8a5(0x1e8)]=_0x30ccad,this['_sheetSkeletonManagerService']=_0x2b0753,this[_0x56a8a5(0x102)]=_0x34883c,this['_themeService']=_0x5ab4e5,this[_0x56a8a5(0x2d3)]());}[_0x2369fc(0x2d3)](){const _0x28caa0=_0x2369fc;this[_0x28caa0(0x2c7)]['currentSkeleton$']['pipe']($[_0x28caa0(0x1e2)](this[_0x28caa0(0x131)]),$[_0x28caa0(0x280)](_0x5eb626=>{const _0x301511=_0x28caa0;if(_0x5eb626){const _0x1af02f=_0x5eb626[_0x301511(0x390)];return I['combineLatest'](this[_0x301511(0x102)][_0x301511(0xe3)](this['_context'][_0x301511(0x3a9)]),this[_0x301511(0x324)]['currentTheme$'])[_0x301511(0x28a)]($[_0x301511(0x22c)](([_0x4d35c0,_0x58a3ed])=>{const _0x1b68ed=new Map();return _0x4d35c0['forEach']((_0x412d20,_0x542fd0)=>{const _0x2e85b8=_0x8c2a;if(_0x412d20[_0x2e85b8(0x305)]===_0x1af02f){const _0x3b8ed6={..._0x412d20};_0x3b8ed6['color']=this[_0x2e85b8(0x324)][_0x2e85b8(0x2b5)](_0x412d20[_0x2e85b8(0x123)]),_0x1b68ed['set'](_0x542fd0,_0x3b8ed6);}}),{'skeleton':_0x5eb626,'cursors':_0x1b68ed};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x28caa0(0x1e3)](({skeleton:_0x585842,cursors:_0x3159dd})=>{const _0x5a2f69=_0x28caa0;this[_0x5a2f69(0x258)](),_0x585842&&this[_0x5a2f69(0x382)](_0x585842,_0x3159dd);}),this['_sheetSkeletonManagerService'][_0x28caa0(0x32e)]['subscribe'](_0x2ac8b2=>{const _0x5e97ed=_0x28caa0;if(_0x2ac8b2==null)return;const {skeleton:_0x1266ba}=_0x2ac8b2,{scene:_0x6ed087}=this[_0x5e97ed(0x1e8)];_0x6ed087[_0x5e97ed(0x303)][_0x5e97ed(0x32b)](a['debounce'](_0x3b69d9=>{const _0xc62488=_0x5e97ed;var _0x560a68,_0x4e29bb;const {offsetX:_0x383df5,offsetY:_0x98000d}=_0x3b69d9,{x:_0x9252e4,y:_0x187007}=_0x6ed087['getRelativeToViewportCoord'](C['Vector2'][_0xc62488(0x320)]([_0x383df5,_0x98000d])),{scaleX:_0x509bdf,scaleY:_0x5d090d}=_0x6ed087[_0xc62488(0x1b0)](),_0x24830a=_0x6ed087[_0xc62488(0x2c9)](C[_0xc62488(0x31d)][_0xc62488(0x397)]),_0x148861=_0x6ed087[_0xc62488(0x146)](C['Vector2']['FromArray']([_0x9252e4,_0x187007]),_0x24830a),_0x20bb51=_0x1266ba[_0xc62488(0x222)](_0x383df5,_0x98000d,_0x509bdf,_0x5d090d,_0x148861);((_0x560a68=this[_0xc62488(0x1cb)])==null?void 0x0:_0x560a68['column'])===_0x20bb51[_0xc62488(0x246)]&&((_0x4e29bb=this[_0xc62488(0x1cb)])==null?void 0x0:_0x4e29bb['row'])===_0x20bb51[_0xc62488(0x168)]||this[_0xc62488(0x18a)][_0xc62488(0x1a4)](_0x2e6acc=>{const _0x2133b8=_0xc62488;_0x2e6acc[_0x2133b8(0x1c8)](_0x20bb51);});},0x64));});}['_updateCollabCursors'](_0xe24fbd,_0x2b2192){const _0x558db1=_0x2369fc;var _0x41de1;const _0x5a62d8=(_0x41de1=this[_0x558db1(0x2c7)][_0x558db1(0x267)]())==null?void 0x0:_0x41de1[_0x558db1(0x330)];if(!_0x5a62d8)return;const _0x4d06b3=this[_0x558db1(0x209)]();if(!_0x4d06b3)return;this[_0x558db1(0x18a)][_0x558db1(0x1a4)](_0x3d6aaf=>{_0x3d6aaf['makeDirty']();});const {scene:_0x367d6a}=_0x4d06b3,_0x503868=xt(Array[_0x558db1(0x23a)](_0x2b2192[_0x558db1(0x3aa)]()))[_0x558db1(0x22c)](_0x5011ab=>{const _0x23fde1=_0x558db1,{color:_0x1eb2fb,range:_0x250fc0,name:_0x42e33b,selection:_0x44a398,sheetID:_0x4aaf7f}=_0x5011ab,{startColumn:_0x3b6930,startRow:_0x23fd34,endColumn:_0x4b7e19,endRow:_0xccb695}=_0x250fc0,_0x3ff209=J[_0x23fde1(0x14d)](_0x23fd34,_0x3b6930,_0x367d6a,_0x5a62d8),_0x528af5=J[_0x23fde1(0x14d)](_0xccb695,_0x4b7e19,_0x367d6a,_0x5a62d8),{columnHeaderHeightAndMarginTop:_0xaa6f48}=_0x5a62d8,{startX:_0x501808,startY:_0x2e414a}=_0x3ff209,{endX:_0x3f3884,endY:_0x5861c2}=_0x528af5,_0x5f56f3=_0x3f3884-_0x501808,_0x2275c4=_0x5861c2-_0x2e414a,_0x3af645={'labelPosition':_0x2e414a-_0xaa6f48>=X?'top':'bottom','sheetID':_0x4aaf7f,'range':_0x250fc0,'color':_0x1eb2fb,'name':_0x42e33b,'selection':_0x44a398,'left':_0x501808,'top':_0x2e414a,'width':_0x5f56f3,'height':_0x2275c4,'evented':!0x1,'zIndex':$t};return new je(_0x42e33b,_0x3af645);});_0x367d6a['addObjects'](_0x503868,At),this[_0x558db1(0x18a)]=new Set(_0x503868);}['_removeCollabCursors'](){const _0x3cdf27=_0x2369fc;var _0xb54e3e;(_0xb54e3e=this[_0x3cdf27(0x18a)])==null||_0xb54e3e['forEach'](_0x1420a3=>_0x1420a3[_0x3cdf27(0x31e)]());}[_0x2369fc(0x209)](){const _0x2fa758=_0x2369fc;return J[_0x2fa758(0x15e)](this[_0x2fa758(0x1e8)][_0x2fa758(0x15c)],this[_0x2fa758(0x1e8)]);}};Ce=yt([ue(0x1,a[_0x2369fc(0x2ab)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x2369fc(0x2ab)](F)),ue(0x3,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x33d)]))],Ce);function xt(_0x571d14){const _0x18c62f=_0x2369fc,_0x127399=new Map();return _0x571d14[_0x18c62f(0x1a4)](_0x4fb24c=>{const _0x34e383=_0x18c62f;if(_0x127399[_0x34e383(0x17a)](_0x4fb24c[_0x34e383(0x1c6)])){const _0x4ff380=_0x127399['get'](_0x4fb24c[_0x34e383(0x1c6)]);_0x4ff380['name']+=',\x20'+_0x4fb24c[_0x34e383(0x2e0)];}else _0x127399[_0x34e383(0x2c6)](_0x4fb24c[_0x34e383(0x1c6)],_0x4fb24c);}),Array[_0x18c62f(0x23a)](_0x127399[_0x18c62f(0x3aa)]());}var Bt=Object[_0x2369fc(0x219)],Ft=(_0x2de132,_0x54f56c,_0x427668,_0x296d1c)=>{for(var _0x3632bd=_0x296d1c>0x1?void 0x0:_0x296d1c?Bt(_0x54f56c,_0x427668):_0x54f56c,_0x3fe745=_0x2de132['length']-0x1,_0x4c6360;_0x3fe745>=0x0;_0x3fe745--)(_0x4c6360=_0x2de132[_0x3fe745])&&(_0x3632bd=_0x4c6360(_0x3632bd)||_0x3632bd);return _0x3632bd;},y=(_0x2743ed,_0x12eeae)=>(_0x2a9c35,_0x277c0f)=>_0x12eeae(_0x2a9c35,_0x277c0f,_0x2743ed);let Z=class extends a[_0x2369fc(0x189)]{constructor(_0x3b1af9,_0x3ec1d7,_0xc981dd,_0x273fe1,_0x55b74e,_0x2704d2){const _0x583468=_0x2369fc;super(),this[_0x583468(0x229)]=_0x3b1af9,this[_0x583468(0x1e5)]=_0x3ec1d7,this[_0x583468(0x118)]=_0xc981dd,this['_messageService']=_0x273fe1,this[_0x583468(0x22e)]=_0x55b74e,this['_localeService']=_0x2704d2,this[_0x583468(0x2f1)](),this[_0x583468(0x2d0)]();}['_setupBeforeClosingHandler'](){const _0x538f1f=_0x2369fc;this[_0x538f1f(0x237)](this[_0x538f1f(0x229)][_0x538f1f(0x18f)](()=>{const _0x149ce0=_0x538f1f;if(this[_0x149ce0(0x1e5)][_0x149ce0(0x2bd)][_0x149ce0(0x1d1)])return this['_localeService']['t'](_0x149ce0(0x1b7));}));}[_0x2369fc(0x2d0)](){const _0x3afdca=_0x2369fc;this[_0x3afdca(0x237)](this[_0x3afdca(0x118)]['event$']['subscribe'](_0x1f445c=>{const _0x366d82=_0x3afdca;_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0xe2)]&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x393))}),_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0x18b)]&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this['_localeService']['t'](_0x366d82(0x2ff))}),_0x1f445c['id']===u[_0x366d82(0xf9)][_0x366d82(0x156)]&&this[_0x366d82(0x22e)][_0x366d82(0x1c4)]({'title':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x32c)),'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x125)),'type':_0x366d82(0x1af),'duration':0x0}),_0x1f445c['id']===u[_0x366d82(0xf9)]['CONFLICT']&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p[_0x366d82(0x314)][_0x366d82(0xf1)],'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x2ff))+'('+_0x1f445c[_0x366d82(0x2ce)]+')'}),_0x1f445c['id']===u[_0x366d82(0xf9)]['JOIN_ROOM_FAILED']&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this[_0x366d82(0x1a3)]['t'](_0x1f445c['data']||'')}),_0x1f445c['id']===u[_0x366d82(0xf9)][_0x366d82(0x2af)]&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this['_localeService']['t'](_0x366d82(0x1b9))}),_0x1f445c['id']===u[_0x366d82(0xf9)]['SOCKET_FAILED']&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p['MessageType']['Error'],'content':this[_0x366d82(0x1a3)]['t']('session.connection-failed')}),_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0x34e)]&&this['_messageService'][_0x366d82(0x1c4)]({'type':p['MessageType'][_0x366d82(0xf1)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x2369fc(0x1bd)]),y(0x1,u[_0x2369fc(0x351)]),y(0x2,a[_0x2369fc(0x2ab)](u[_0x2369fc(0x10b)])),y(0x3,O[_0x2369fc(0xfa)]),y(0x4,O[_0x2369fc(0x364)]),y(0x5,a[_0x2369fc(0x2ab)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x11e2c,_0x4f5cd1,_0x51982f,_0x1a2257)=>{const _0x4c82cb=_0x2369fc;for(var _0x2d2521=_0x1a2257>0x1?void 0x0:_0x1a2257?jt(_0x4f5cd1,_0x51982f):_0x4f5cd1,_0x18079e=_0x11e2c[_0x4c82cb(0x236)]-0x1,_0x5b2f4b;_0x18079e>=0x0;_0x18079e--)(_0x5b2f4b=_0x11e2c[_0x18079e])&&(_0x2d2521=_0x5b2f4b(_0x2d2521)||_0x2d2521);return _0x2d2521;},z=(_0x53db70,_0x4c1069)=>(_0x314c2d,_0x25f75f)=>_0x4c1069(_0x314c2d,_0x25f75f,_0x53db70);let Q=class extends a[_0x2369fc(0x189)]{constructor(_0x114372,_0x4e6c3a,_0x1f6a76,_0x3df539){const _0x13186e=_0x2369fc;super(),_(this,_0x13186e(0x205)),(this[_0x13186e(0x2bc)]=_0x114372,this['_httpService']=_0x4e6c3a,this[_0x13186e(0x17d)]=_0x1f6a76,this[_0x13186e(0x1aa)]=_0x3df539,this['_init']());}[_0x2369fc(0x2d3)](){const _0x2ac75b=_0x2369fc;this[_0x2ac75b(0x194)](),this[_0x2ac75b(0x359)](),this[_0x2ac75b(0x36d)](),this[_0x2ac75b(0x361)]();}[_0x2369fc(0x361)](){const _0x20ad71=_0x2369fc;this[_0x20ad71(0x237)](this[_0x20ad71(0x1aa)]['socket$'][_0x20ad71(0x1e3)](_0x258d48=>{const _0x58e65c=_0x20ad71;this['_memberID']=_0x258d48==null?void 0x0:_0x258d48[_0x58e65c(0x1a8)];}));}[_0x2369fc(0x194)](){const _0x4243f6=_0x2369fc,_0xa21811=_0x4a2024=>{const _0x391760=_0x8c2a;var _0x2c144f;this[_0x391760(0x18c)](_0x391760(0x1af),_0x391760(0x13d)+_0x4a2024[_0x391760(0x11e)]+_0x391760(0x281)+_0x4a2024['filename']+':'+_0x4a2024[_0x391760(0x29b)]+':'+_0x4a2024[_0x391760(0x385)]+'\x0a'+(((_0x2c144f=_0x4a2024[_0x391760(0x1af)])==null?void 0x0:_0x2c144f['stack'])||''));};window[_0x4243f6(0x2a4)](_0x4243f6(0x1af),_0xa21811),this['disposeWithMe'](()=>{const _0x38b93e=_0x4243f6;window[_0x38b93e(0x292)]('error',_0xa21811);});}[_0x2369fc(0x359)](){const _0x22837f=_0x2369fc,_0x374867=_0x5e4efe=>{const _0x57b748=_0x8c2a;this['_uploadLog'](_0x57b748(0x1af),_0x57b748(0x157)+_0x5e4efe[_0x57b748(0x177)]);};window[_0x22837f(0x2a4)]('unhandledrejection',_0x374867),this[_0x22837f(0x237)](()=>{const _0x4d279b=_0x22837f;window['removeEventListener'](_0x4d279b(0x36c),_0x374867);});}[_0x2369fc(0x36d)](){const _0x56e08b=_0x2369fc,_0x55e12b=this[_0x56e08b(0x17d)][_0x56e08b(0x1af)]['bind'](this[_0x56e08b(0x17d)]);this[_0x56e08b(0x17d)][_0x56e08b(0x1af)]=(..._0x20f371)=>{const _0x2a93e4=_0x56e08b,_0x44c4db=_0x20f371[_0x2a93e4(0x22c)](_0x4b9e11=>_0x4b9e11 instanceof Error?_0x4b9e11[_0x2a93e4(0x11e)]+'\x0a'+_0x4b9e11[_0x2a93e4(0x178)]:String(_0x4b9e11))[_0x2a93e4(0x384)]('\x20');this[_0x2a93e4(0x18c)](_0x2a93e4(0x1af),_0x2a93e4(0x149)+_0x44c4db),_0x55e12b(..._0x20f371);},this[_0x56e08b(0x237)](()=>{const _0x181107=_0x56e08b;this[_0x181107(0x17d)]['error']=_0x55e12b;});}[_0x2369fc(0x18c)](_0x2fe8b2,_0x139665){const _0x330855=_0x2369fc;try{const _0x59aa7f={'userId':this[_0x330855(0x205)],'logLabel':_0x2fe8b2,'content':_0x139665};this['_httpService']['post'](_0x330855(0x3a8),{'body':_0x59aa7f})[_0x330855(0x1e6)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),z(0x1,a[_0x2369fc(0x2ab)](x['HTTPService'])),z(0x2,a[_0x2369fc(0x2e8)]),z(0x3,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xf0)]))],Q);const Yt=_0x2369fc(0x186),Me={};var Ht=Object[_0x2369fc(0x219)],Wt=(_0x4af169,_0x1809b4,_0x43567c,_0x5605d3)=>{const _0x291721=_0x2369fc;for(var _0x4cda57=_0x5605d3>0x1?void 0x0:_0x5605d3?Ht(_0x1809b4,_0x43567c):_0x1809b4,_0xd1c9bd=_0x4af169[_0x291721(0x236)]-0x1,_0x9b726;_0xd1c9bd>=0x0;_0xd1c9bd--)(_0x9b726=_0x4af169[_0xd1c9bd])&&(_0x4cda57=_0x9b726(_0x4cda57)||_0x4cda57);return _0x4cda57;},Ae=(_0x469fa9,_0x20ed6c)=>(_0x40e3ae,_0x3a51ef)=>_0x20ed6c(_0x40e3ae,_0x3a51ef,_0x469fa9);let ee=class{constructor(_0x5e2f46,_0x5d78d9){const _0xf31627=_0x2369fc;this['_transformService']=_0x5e2f46,this[_0xf31627(0x110)]=_0x5d78d9;}[_0x2369fc(0x218)](_0x5d2624){const _0x4a5dae=_0x2369fc;this[_0x4a5dae(0x270)](_0x5d2624),this['_transformPreviousActiveRange'](_0x5d2624);}[_0x2369fc(0x234)](_0x5debf7){const _0x38b04e=_0x2369fc,{unitID:_0x59d953}=_0x5debf7,_0x2390b5=this[_0x38b04e(0x110)][_0x38b04e(0x1ba)](_0x59d953)[_0x38b04e(0x370)](T[_0x38b04e(0x235)]),{redoCache:_0x16119e}=_0x2390b5[_0x38b04e(0x23b)]();if(_0x16119e[_0x38b04e(0x236)]===0x0)return _0x5debf7;let _0x101666=a[_0x38b04e(0x1b4)]['deepClone'](_0x5debf7[_0x38b04e(0x1d9)][0x0]);for(let _0x5939ed=0x0;_0x5939ed<_0x16119e[_0x38b04e(0x236)];_0x5939ed++){const _0xae44eb={'id':_0x38b04e(0x272),'params':{..._0x16119e[_0x5939ed]}},_0x123a5a=this[_0x38b04e(0x34f)][_0x38b04e(0x356)](_0x101666,_0xae44eb,!0x1);if(g['isTransformMutationFailure'](_0x123a5a))throw _0x123a5a[_0x38b04e(0x1af)];_0x101666=_0x123a5a[_0x38b04e(0x165)];}return{...a['Tools'][_0x38b04e(0x1eb)](_0x5debf7),'mutations':[_0x101666]};}['_transformUndoRedoStack'](_0x2897d2){const _0x4d6b00=_0x2369fc,{unitID:_0x164409}=_0x2897d2,_0x91824d=this[_0x4d6b00(0x110)][_0x4d6b00(0x1ba)](_0x164409)['with'](T['DocIMEInputManagerService']),{undoCache:_0xd29d40,redoCache:_0x25534f}=_0x91824d[_0x4d6b00(0x23b)]();if(_0xd29d40[_0x4d6b00(0x236)]===0x0||_0x25534f[_0x4d6b00(0x236)]===0x0)return;const _0x58466e=[],_0x550f67=[];let _0x52e6c0=a[_0x4d6b00(0x1b4)][_0x4d6b00(0x1eb)](_0x2897d2[_0x4d6b00(0x1d9)][0x0]),_0xc8253a=a[_0x4d6b00(0x1b4)][_0x4d6b00(0x1eb)](_0x2897d2[_0x4d6b00(0x1d9)][0x0]);for(let _0x1039ac=_0xd29d40['length']-0x1;_0x1039ac>=0x0;_0x1039ac--){const _0xda8189={'id':_0x4d6b00(0x272),'params':{..._0xd29d40[_0x1039ac]}},_0x1e13eb={'id':'doc.mutation.rich-text-editing','params':{..._0x25534f[_0x1039ac]}},_0x2f0e06=this['_transformService']['transformMutation'](_0x52e6c0,_0xda8189,!0x1),_0x54e419=this[_0x4d6b00(0x34f)][_0x4d6b00(0x356)](_0xc8253a,_0x1e13eb,!0x1);if(g[_0x4d6b00(0x1c5)](_0x2f0e06))throw _0x2f0e06['error'];if(g[_0x4d6b00(0x1c5)](_0x54e419))throw _0x54e419[_0x4d6b00(0x1af)];_0x58466e['unshift'](_0x2f0e06[_0x4d6b00(0x33a)][_0x4d6b00(0x38c)]),_0x550f67[_0x4d6b00(0x2f2)](_0x54e419[_0x4d6b00(0x33a)][_0x4d6b00(0x38c)]),_0x52e6c0=_0x2f0e06[_0x4d6b00(0x165)],_0xc8253a=_0x54e419[_0x4d6b00(0x165)];}_0x91824d[_0x4d6b00(0x316)]({'undoCache':_0x58466e,'redoCache':_0x550f67});}[_0x2369fc(0xe5)](_0x35a163){const _0x442b93=_0x2369fc,{unitID:_0x2320a4}=_0x35a163,_0x11fb3b=this[_0x442b93(0x110)][_0x442b93(0x1ba)](_0x2320a4)[_0x442b93(0x370)](T[_0x442b93(0x235)]),_0x5b87be=_0x11fb3b[_0x442b93(0x252)]();if(_0x5b87be==null)return;const _0x8d318f=[{'id':_0x442b93(0x272),'params':{'unitId':_0x35a163[_0x442b93(0x1ca)],'actions':null,'textRanges':[_0x5b87be]}}],_0x24ef00=this[_0x442b93(0x34f)][_0x442b93(0x39e)](_0x35a163,_0x8d318f);if(!g['isTransformMutationsWithChangesetSuccess'](_0x24ef00))throw _0x24ef00[_0x442b93(0x1af)];const _0x45743a=_0x24ef00['m2Prime'][0x0][_0x442b93(0x38c)]['textRanges'];Array[_0x442b93(0x293)](_0x45743a)&&_0x45743a[_0x442b93(0x236)]&&_0x11fb3b[_0x442b93(0x2df)](_0x45743a[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x2369fc(0x219)],Gt=(_0x9e2d58,_0x3c31fd,_0x26758b,_0x52a64f)=>{const _0x7c45a2=_0x2369fc;for(var _0x31acd9=_0x52a64f>0x1?void 0x0:_0x52a64f?Vt(_0x3c31fd,_0x26758b):_0x3c31fd,_0x216994=_0x9e2d58[_0x7c45a2(0x236)]-0x1,_0x90d7e7;_0x216994>=0x0;_0x216994--)(_0x90d7e7=_0x9e2d58[_0x216994])&&(_0x31acd9=_0x90d7e7(_0x31acd9)||_0x31acd9);return _0x31acd9;},Ie=(_0x172382,_0x586d49)=>(_0x1ac554,_0x55a0bd)=>_0x586d49(_0x1ac554,_0x55a0bd,_0x172382);let te=class{constructor(_0x1caf36,_0x326354,_0x4c1ee6){const _0x319dc1=_0x2369fc;this[_0x319dc1(0x2bc)]=_0x1caf36,this[_0x319dc1(0x34f)]=_0x326354,this[_0x319dc1(0x3ad)]=_0x4c1ee6;}['transformStateCache'](_0x2c6d51){this['_transformHistoryAndStateStack'](_0x2c6d51);}[_0x2369fc(0x234)](_0xd170dc){const _0x550d21=_0x2369fc,{unitID:_0x36c61c}=_0xd170dc,{collaboration:_0x2350f6}=this[_0x550d21(0x3ad)][_0x550d21(0x166)](_0x36c61c);if(_0x2350f6['length']===0x0)return _0xd170dc;let _0x4d9494=a[_0x550d21(0x1b4)]['deepClone'](_0xd170dc['mutations'][0x0]);for(let _0x4b437e=0x0;_0x4b437e<_0x2350f6[_0x550d21(0x236)];_0x4b437e++){const _0x21935d={'id':_0x550d21(0x272),'params':{'unitId':_0x2350f6[_0x4b437e][_0x550d21(0x3a9)],..._0x2350f6[_0x4b437e]['redoState']}},_0x29b23a=this[_0x550d21(0x34f)][_0x550d21(0x356)](_0x4d9494,_0x21935d,!0x1);if(g[_0x550d21(0x1c5)](_0x29b23a))throw _0x29b23a[_0x550d21(0x1af)];_0x4d9494=_0x29b23a['m1Prime'];}return{...a[_0x550d21(0x1b4)][_0x550d21(0x1eb)](_0xd170dc),'mutations':[_0x4d9494]};}[_0x2369fc(0x337)](_0x1b5917){const _0x4808a0=_0x2369fc,{unitID:_0x4a89fa}=_0x1b5917,{history:_0x44a85b,collaboration:_0x2ea179}=this[_0x4808a0(0x3ad)][_0x4808a0(0x166)](_0x4a89fa);if(_0x44a85b[_0x4808a0(0x236)]===0x0&&_0x2ea179[_0x4808a0(0x236)]===0x0)return;const _0x432c71=[],_0x30da9c=[];let _0x4b1a7f=a[_0x4808a0(0x1b4)][_0x4808a0(0x1eb)](_0x1b5917[_0x4808a0(0x1d9)][0x0]),_0xe37b30=a['Tools']['deepClone'](_0x1b5917['mutations'][0x0]);for(let _0x1f9126=_0x44a85b[_0x4808a0(0x236)]-0x1;_0x1f9126>=0x0;_0x1f9126--){const _0x11b1e4={'id':_0x4808a0(0x272),'params':{'unitId':_0x44a85b[_0x1f9126][_0x4808a0(0x3a9)],..._0x44a85b[_0x1f9126][_0x4808a0(0x1fa)]}},_0x1ff7d7={'id':_0x4808a0(0x272),'params':{'unitId':_0x44a85b[_0x1f9126]['unitId'],..._0x44a85b[_0x1f9126][_0x4808a0(0x26a)]}},_0x19e218=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0x4b1a7f,_0x11b1e4,!0x1),_0x1c35c4=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0xe37b30,_0x1ff7d7,!0x1);if(g[_0x4808a0(0x1c5)](_0x19e218))throw _0x19e218['error'];if(g['isTransformMutationFailure'](_0x1c35c4))throw _0x1c35c4[_0x4808a0(0x1af)];_0x432c71[_0x4808a0(0x2f2)]({..._0x44a85b[_0x1f9126],'undoState':_0x19e218['m2Prime']['params'],'redoState':_0x1c35c4[_0x4808a0(0x33a)][_0x4808a0(0x38c)]}),_0x4b1a7f=_0x19e218['m1Prime'],_0xe37b30=_0x1c35c4[_0x4808a0(0x165)];}_0x4b1a7f=a[_0x4808a0(0x1b4)]['deepClone'](_0x1b5917[_0x4808a0(0x1d9)][0x0]),_0xe37b30=a[_0x4808a0(0x1b4)][_0x4808a0(0x1eb)](_0x1b5917['mutations'][0x0]);for(let _0x4f05a3=_0x2ea179[_0x4808a0(0x236)]-0x1;_0x4f05a3>=0x0;_0x4f05a3--){const _0x293291={'id':_0x4808a0(0x272),'params':{'unitId':_0x2ea179[_0x4f05a3][_0x4808a0(0x3a9)],..._0x2ea179[_0x4f05a3][_0x4808a0(0x1fa)]}},_0x376b92={'id':_0x4808a0(0x272),'params':{'unitId':_0x2ea179[_0x4f05a3][_0x4808a0(0x3a9)],..._0x2ea179[_0x4f05a3][_0x4808a0(0x26a)]}},_0x88c46d=this['_transformService'][_0x4808a0(0x356)](_0x4b1a7f,_0x293291,!0x1),_0x5ca504=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0xe37b30,_0x376b92,!0x1);if(g[_0x4808a0(0x1c5)](_0x88c46d))throw _0x88c46d[_0x4808a0(0x1af)];if(g[_0x4808a0(0x1c5)](_0x5ca504))throw _0x5ca504[_0x4808a0(0x1af)];_0x30da9c[_0x4808a0(0x2f2)]({..._0x2ea179[_0x4f05a3],'undoState':_0x88c46d['m2Prime'][_0x4808a0(0x38c)],'redoState':_0x5ca504[_0x4808a0(0x33a)][_0x4808a0(0x38c)]}),_0x4b1a7f=_0x88c46d['m1Prime'],_0xe37b30=_0x5ca504[_0x4808a0(0x165)];}this['_docStateChangeManagerService'][_0x4808a0(0x13f)](_0x4a89fa,{'history':_0x432c71,'collaboration':_0x30da9c});}};te=Gt([Ie(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x2369fc(0x2ab)](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x30b2e3,_0x2a88a4,_0x1141cf,_0x43ce83)=>{const _0x4fd04f=_0x2369fc;for(var _0x365b6c=_0x43ce83>0x1?void 0x0:_0x43ce83?Xt(_0x2a88a4,_0x1141cf):_0x2a88a4,_0x4afc2e=_0x30b2e3[_0x4fd04f(0x236)]-0x1,_0x129268;_0x4afc2e>=0x0;_0x4afc2e--)(_0x129268=_0x30b2e3[_0x4afc2e])&&(_0x365b6c=_0x129268(_0x365b6c)||_0x365b6c);return _0x365b6c;},Pe=(_0x1e28e5,_0x2a09b3)=>(_0x593f02,_0x58c1e7)=>_0x2a09b3(_0x593f02,_0x58c1e7,_0x1e28e5);let se=class{constructor(_0xd2511f,_0x2243f1){const _0x378458=_0x2369fc;this[_0x378458(0x2bc)]=_0xd2511f,this['_transformService']=_0x2243f1;}['transformSelections'](_0x157be4){const _0xb9268d=_0x2369fc;var _0x2fa0bf;const _0x33bdee=this[_0xb9268d(0x2bc)][_0xb9268d(0x30d)](V[_0xb9268d(0x191)]),_0x4cb861=(_0x2fa0bf=_0x33bdee['getDocRanges']())!=null?_0x2fa0bf:[];if(_0x4cb861[_0xb9268d(0x236)]===0x0)return;const _0x19d42c=_0x157be4[_0xb9268d(0x1ca)],_0x1db773=[{'id':_0xb9268d(0x272),'params':{'unitId':_0x19d42c,'actions':null,'textRanges':_0x4cb861}}],_0x234fc6=this['_transformService'][_0xb9268d(0x39e)](_0x157be4,_0x1db773);if(!g[_0xb9268d(0x12b)](_0x234fc6))throw _0x234fc6[_0xb9268d(0x1af)];const _0xd8ea3d=_0x234fc6[_0xb9268d(0x33a)][0x0][_0xb9268d(0x38c)][_0xb9268d(0x358)];Array[_0xb9268d(0x293)](_0xd8ea3d)&&_0xd8ea3d[_0xb9268d(0x236)]&&_0x33bdee[_0xb9268d(0x115)](_0xd8ea3d,{'unitId':_0x19d42c,'subUnitId':_0x19d42c},!0x1);}};se=Kt([Pe(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),Pe(0x1,g[_0x2369fc(0x192)])],se);var qt=Object[_0x2369fc(0x219)],zt=(_0x29c1,_0x3c65a9,_0xc73bff,_0x3e72d3)=>{const _0x2985bb=_0x2369fc;for(var _0x25b694=_0x3e72d3>0x1?void 0x0:_0x3e72d3?qt(_0x3c65a9,_0xc73bff):_0x3c65a9,_0x41e21b=_0x29c1[_0x2985bb(0x236)]-0x1,_0x20edea;_0x41e21b>=0x0;_0x41e21b--)(_0x20edea=_0x29c1[_0x41e21b])&&(_0x25b694=_0x20edea(_0x25b694)||_0x25b694);return _0x25b694;},N=(_0x47fed0,_0x87a851)=>(_0x41d3d2,_0xb9160b)=>_0x87a851(_0x41d3d2,_0xb9160b,_0x47fed0);let ie=class extends a[_0x2369fc(0x189)]{constructor(_0x101598,_0x3bb58f,_0x2ac636,_0x14cccf,_0x37cbdd,_0xcdc08f,_0x1eff9b,_0x184c04){const _0x5e32be=_0x2369fc;super(),_(this,_0x5e32be(0x11c),new I[(_0x5e32be(0x121))](u[_0x5e32be(0x30b)][_0x5e32be(0x200)])),(this['_docStateChangeManagerService']=_0x101598,this['_collaborationController']=_0x3bb58f,this[_0x5e32be(0x13a)]=_0x2ac636,this[_0x5e32be(0x2aa)]=_0x14cccf,this[_0x5e32be(0x335)]=_0x37cbdd,this[_0x5e32be(0x208)]=_0xcdc08f,this['_messageService']=_0x1eff9b,this[_0x5e32be(0x1a3)]=_0x184c04,this[_0x5e32be(0x1be)]());}[_0x2369fc(0x1be)](){const _0x525c6d=_0x2369fc;this[_0x525c6d(0x237)](this[_0x525c6d(0x2e7)][_0x525c6d(0x2f5)][_0x525c6d(0x1e3)](_0x4d2e3e=>{const _0x5e17f0=_0x525c6d,_0xbb092d=this[_0x5e17f0(0x3ad)][_0x5e17f0(0x242)][_0x5e17f0(0x1e3)](_0x2ce065=>{const _0x26a5da=_0x5e17f0;if(_0x2ce065==null)return;const {unitId:_0x2e0188,redoState:_0x57d6e6,commandId:_0x46aacd}=_0x2ce065;if(_0x2e0188!==_0x4d2e3e['unitID'])return;const _0x1b2d5c={'id':_0x46aacd,'type':a[_0x26a5da(0x10f)]['MUTATION'],'params':{'unitId':_0x2e0188,'actions':_0x57d6e6[_0x26a5da(0x13c)],'textRanges':null}};_0x4d2e3e['onLocalMutation'](_0x1b2d5c);});if(_0x4d2e3e[_0x5e17f0(0x237)](_0xbb092d),_0x4d2e3e instanceof u[_0x5e17f0(0x1ae)]){const _0x16b80={'onTransformIME':_0x3f5b10=>this[_0x5e17f0(0x13a)][_0x5e17f0(0x218)](_0x3f5b10),'onTransformState':_0x2edfb4=>this[_0x5e17f0(0x2aa)][_0x5e17f0(0x29a)](_0x2edfb4),'onTransformSelections':_0x120529=>this[_0x5e17f0(0x335)][_0x5e17f0(0x34d)](_0x120529),'onSyncEditingCollabCursor':_0x554d65=>this[_0x5e17f0(0x208)][_0x5e17f0(0x217)](_0x554d65),'onTransformRemoteChangesetByIMECache':_0x6aea9c=>this[_0x5e17f0(0x13a)]['transformRemoteChangeset'](_0x6aea9c),'onTransformRemoteChangesetByStateCache':_0x2f8107=>this[_0x5e17f0(0x2aa)][_0x5e17f0(0x234)](_0x2f8107)};_0x4d2e3e['addHandlerCallback'](_0x16b80);}}));}};ie=zt([N(0x0,a[_0x2369fc(0x2ab)](T[_0x2369fc(0x2db)])),N(0x1,a[_0x2369fc(0x2ab)](u[_0x2369fc(0x26e)])),N(0x2,a[_0x2369fc(0x2ab)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x2369fc(0x2ab)](se)),N(0x5,a[_0x2369fc(0x2ab)](be)),N(0x6,O[_0x2369fc(0xfa)]),N(0x7,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x20e)]))],ie);var G=(_0x7da79d=>(_0x7da79d[_0x7da79d[_0x2369fc(0x2c1)]=0x0]=_0x2369fc(0x2c1),_0x7da79d[_0x7da79d['OK']=0x1]='OK',_0x7da79d[_0x7da79d[_0x2369fc(0x150)]=0x2]=_0x2369fc(0x150),_0x7da79d[_0x7da79d['PERMISSION_DENIED']=0x3]=_0x2369fc(0x156),_0x7da79d[_0x7da79d[_0x2369fc(0x1a9)]=0x4]='NOT_FOUND',_0x7da79d[_0x7da79d[_0x2369fc(0x2de)]=0x5]=_0x2369fc(0x2de),_0x7da79d[_0x7da79d[_0x2369fc(0x1db)]=0x6]='ALREADY_EXISTS',_0x7da79d[_0x7da79d['INVALID_ARGUMENT']=0x7]=_0x2369fc(0x34b),_0x7da79d[_0x7da79d[_0x2369fc(0x37a)]=0x8]='TOO_MANY_REQUESTS',_0x7da79d[_0x7da79d[_0x2369fc(0x25d)]=0x9]='COMPLETION_FINISHED',_0x7da79d[_0x7da79d[_0x2369fc(0x286)]=0xa]=_0x2369fc(0x286),_0x7da79d[_0x7da79d[_0x2369fc(0x32f)]=0xb]=_0x2369fc(0x32f),_0x7da79d[_0x7da79d[_0x2369fc(0x256)]=0xc]=_0x2369fc(0x256),_0x7da79d[_0x7da79d['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2369fc(0x31a),_0x7da79d[_0x7da79d[_0x2369fc(0x20f)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x7da79d[_0x7da79d['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2369fc(0x2d2),_0x7da79d[_0x7da79d[_0x2369fc(0xf8)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x7da79d[_0x7da79d[_0x2369fc(0x23d)]=0x64]=_0x2369fc(0x23d),_0x7da79d[_0x7da79d[_0x2369fc(0x381)]=0x65]=_0x2369fc(0x381),_0x7da79d[_0x7da79d[_0x2369fc(0x140)]=0xc9]=_0x2369fc(0x140),_0x7da79d[_0x7da79d[_0x2369fc(0x233)]=0xca]='USER_IS_ANONYMOUS',_0x7da79d[_0x7da79d[_0x2369fc(0x1df)]=0x1389]=_0x2369fc(0x1df),_0x7da79d[_0x7da79d[_0x2369fc(0x29d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x7da79d[_0x7da79d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2369fc(0x28f),_0x7da79d[_0x7da79d[_0x2369fc(0x28b)]=0x1773]=_0x2369fc(0x28b),_0x7da79d[_0x7da79d['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x7da79d[_0x7da79d[_0x2369fc(0x245)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x7da79d[_0x7da79d[_0x2369fc(0x257)]=0x1b5b]=_0x2369fc(0x257),_0x7da79d[_0x7da79d[_0x2369fc(0x362)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x7da79d[_0x7da79d[_0x2369fc(0x15d)]=0x1b5d]=_0x2369fc(0x15d),_0x7da79d[_0x7da79d[_0x2369fc(0x332)]=0x1f41]=_0x2369fc(0x332),_0x7da79d[_0x7da79d['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2369fc(0x17b),_0x7da79d[_0x7da79d['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2369fc(0x268),_0x7da79d[_0x7da79d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2369fc(0x387),_0x7da79d[_0x7da79d[_0x2369fc(0x109)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x7da79d[_0x7da79d[_0x2369fc(0x105)]=0x232d]=_0x2369fc(0x105),_0x7da79d[_0x7da79d[_0x2369fc(0x1b8)]=0x2711]=_0x2369fc(0x1b8),_0x7da79d[_0x7da79d[_0x2369fc(0xeb)]=0x2712]=_0x2369fc(0xeb),_0x7da79d[_0x7da79d[_0x2369fc(0x2e1)]=0x2713]=_0x2369fc(0x2e1),_0x7da79d[_0x7da79d[_0x2369fc(0x2cb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x7da79d[_0x7da79d[_0x2369fc(0x31f)]=0x271a]=_0x2369fc(0x31f),_0x7da79d[_0x7da79d[_0x2369fc(0x107)]=0x271b]=_0x2369fc(0x107),_0x7da79d[_0x7da79d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2369fc(0x349),_0x7da79d[_0x7da79d['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x2369fc(0x108),_0x7da79d[_0x7da79d['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x7da79d[_0x7da79d[_0x2369fc(0x386)]=0x271f]=_0x2369fc(0x386),_0x7da79d[_0x7da79d['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2369fc(0x26f),_0x7da79d[_0x7da79d[_0x2369fc(0x145)]=0x2af9]=_0x2369fc(0x145),_0x7da79d[_0x7da79d[_0x2369fc(0x35a)]=0x2ee1]=_0x2369fc(0x35a),_0x7da79d[_0x7da79d[_0x2369fc(0x327)]=0x2ee2]=_0x2369fc(0x327),_0x7da79d[_0x7da79d[_0x2369fc(0x345)]=0x2ee3]=_0x2369fc(0x345),_0x7da79d[_0x7da79d['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2369fc(0x2a0),_0x7da79d[_0x7da79d[_0x2369fc(0x283)]=0x2ee5]=_0x2369fc(0x283),_0x7da79d[_0x7da79d[_0x2369fc(0x250)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x7da79d[_0x7da79d['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2369fc(0x212),_0x7da79d[_0x7da79d[_0x2369fc(0x2c2)]=0x32cb]=_0x2369fc(0x2c2),_0x7da79d[_0x7da79d[_0x2369fc(0x328)]=0x36b1]=_0x2369fc(0x328),_0x7da79d[_0x7da79d[_0x2369fc(0x31b)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x7da79d[_0x7da79d['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x7da79d[_0x7da79d['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x2369fc(0x17e),_0x7da79d[_0x7da79d['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x2369fc(0x2ae),_0x7da79d[_0x7da79d[_0x2369fc(0x24e)]=0x36b6]=_0x2369fc(0x24e),_0x7da79d[_0x7da79d['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x2369fc(0x348),_0x7da79d[_0x7da79d['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x2369fc(0x33b),_0x7da79d[_0x7da79d[_0x2369fc(0x162)]=0x3715]=_0x2369fc(0x162),_0x7da79d[_0x7da79d[_0x2369fc(0x38e)]=0x3716]=_0x2369fc(0x38e),_0x7da79d[_0x7da79d[_0x2369fc(0x198)]=0x3717]=_0x2369fc(0x198),_0x7da79d[_0x7da79d[_0x2369fc(0x1cc)]=0x37dd]=_0x2369fc(0x1cc),_0x7da79d[_0x7da79d[_0x2369fc(0x297)]=0x3a99]=_0x2369fc(0x297),_0x7da79d[_0x7da79d[_0x2369fc(0x287)]=0x3a9a]=_0x2369fc(0x287),_0x7da79d[_0x7da79d[_0x2369fc(0x1f3)]=0x3a9b]=_0x2369fc(0x1f3),_0x7da79d[_0x7da79d['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x2369fc(0x2b4),_0x7da79d[_0x7da79d[_0x2369fc(0x185)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x7da79d[_0x7da79d[_0x2369fc(0x139)]=0x3a9e]=_0x2369fc(0x139),_0x7da79d[_0x7da79d['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x2369fc(0x377),_0x7da79d[_0x7da79d[_0x2369fc(0x14f)]=0x3e81]=_0x2369fc(0x14f),_0x7da79d[_0x7da79d[_0x2369fc(0x22b)]=-0x1]=_0x2369fc(0x22b),_0x7da79d))(G||{});function Jt(_0x4a57f6){const _0x206c34=_0x2369fc;var _0x301762,_0xf95e5d;const _0xe3bbc3=(_0x301762=_0x4a57f6[_0x206c34(0xfc)])==null?void 0x0:_0x301762[_0x206c34(0x1d2)],_0x3c1cae=((_0xf95e5d=_0x4a57f6[_0x206c34(0xfc)])==null?void 0x0:_0xf95e5d[_0x206c34(0x103)])||0x0;return _0xe3bbc3===B[_0x206c34(0x213)]['START_CALCULATION']&&_0x3c1cae>0x0;}function Zt(_0xab70c8){const _0x13a2f7=_0x2369fc;return _0xab70c8[_0x13a2f7(0x333)]===B[_0x13a2f7(0x26d)]['SUCCESS'];}var Qt=Object[_0x2369fc(0x219)],es=(_0x393d2b,_0x2d9a51,_0x4d9e4d,_0x28f850)=>{const _0x454bc2=_0x2369fc;for(var _0x3a6e41=_0x28f850>0x1?void 0x0:_0x28f850?Qt(_0x2d9a51,_0x4d9e4d):_0x2d9a51,_0x4929e5=_0x393d2b[_0x454bc2(0x236)]-0x1,_0x1cea03;_0x4929e5>=0x0;_0x4929e5--)(_0x1cea03=_0x393d2b[_0x4929e5])&&(_0x3a6e41=_0x1cea03(_0x3a6e41)||_0x3a6e41);return _0x3a6e41;},L=(_0x5374f8,_0x270533)=>(_0x54ef4b,_0x377bdc)=>_0x270533(_0x54ef4b,_0x377bdc,_0x5374f8);const ts='/universer-api/license/formula/limit/status',ss=_0x2369fc(0x2e5),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x2369fc(0x189)]{constructor(_0xeba15,_0x1e5f6e,_0x387b9d,_0x49baad,_0x40e5d3,_0x508ac6,_0x5b3a36){const _0x452897=_0x2369fc;super(),_(this,_0x452897(0x30e),null),_(this,_0x452897(0xe1),0x0),_(this,_0x452897(0x153),0x0),_(this,_0x452897(0x1a6),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x452897(0xed)]=_0xeba15,this[_0x452897(0x24c)]=_0x1e5f6e,this[_0x452897(0x2eb)]=_0x387b9d,this[_0x452897(0xe6)]=_0x49baad,this[_0x452897(0x1ff)]=_0x40e5d3,this[_0x452897(0x17d)]=_0x508ac6,this[_0x452897(0x1a3)]=_0x5b3a36,this[_0x452897(0x203)]());}['_initCommandInterceptor'](){const _0x2dfb26=_0x2369fc;this['disposeWithMe'](this['_commandService'][_0x2dfb26(0x1de)]((_0x49fe7c,_0x2d2aba)=>{const _0x9969fe=_0x2dfb26;var _0x2446db;if(_0x49fe7c['id']!==B[_0x9969fe(0x2ca)]['id'])return;const _0x157070=_0x49fe7c['params'];if(!this[_0x9969fe(0x2b3)]((_0x2446db=_0x157070[_0x9969fe(0xf3)])!=null?_0x2446db:[]))return;if(!this[_0x9969fe(0x1bb)]())throw this[_0x9969fe(0x336)](_0x49fe7c,_0x2d2aba),this['_showGuardMessage'](),new a[(_0x9969fe(0x38b))]();})),this[_0x2dfb26(0x237)](this['_commandService'][_0x2dfb26(0x2dc)]((_0x250f5d,_0x1e6b13)=>{const _0x1809e7=_0x2dfb26;if(_0x250f5d['id']!==B[_0x1809e7(0x331)]['id'])return;const _0x36b6f6=_0x250f5d[_0x1809e7(0x38c)];if(Jt(_0x36b6f6)){const _0xddbb65=a['generateRandomId']();this[_0x1809e7(0x1a6)][_0x1809e7(0x1a0)](_0xddbb65),this['_startCalculationLimit'](_0xddbb65);}else{if(Zt(_0x36b6f6)&&this[_0x1809e7(0x1a6)][_0x1809e7(0x236)]>0x0){const _0x1798ab=this[_0x1809e7(0x1a6)][_0x1809e7(0x307)]();this['_releaseCalculationLimit'](_0x1798ab);}}}));}['dispose'](){const _0x5edf4b=_0x2369fc;super[_0x5edf4b(0x31e)](),this[_0x5edf4b(0x22f)](),this['_taskIds']=[],this[_0x5edf4b(0x153)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x2369fc(0x336)](_0x5de99f,_0xafc3bd){const _0x246359=_0x2369fc;for(let _0x2a0e11=0x0;_0x2a0e11<0x1e;_0x2a0e11++)try{if(await this[_0x246359(0x366)](),this[_0x246359(0x1bb)]()){this[_0x246359(0x248)](_0x5de99f,_0xafc3bd),this['_messageService'][_0x246359(0x1c4)]({'content':this[_0x246359(0x1a3)]['t'](_0x246359(0xec)),'type':p[_0x246359(0x314)]['Success']});return;}await new Promise(_0x4388cf=>{const _0x208c96=_0x246359;this['_pollingInterval']=window[_0x208c96(0x261)](_0x4388cf,0x3e8);});}catch(_0x373aec){this[_0x246359(0x17d)][_0x246359(0x1af)](_0x373aec);}this['_messageService'][_0x246359(0x1c4)]({'content':this[_0x246359(0x1a3)]['t']('formula.calculation.unable'),'type':p[_0x246359(0x314)][_0x246359(0xf1)]});}[_0x2369fc(0x248)](_0x136e4f,_0x3c8fad){const _0x36f620=_0x2369fc;try{this['_commandService'][_0x36f620(0x308)](_0x136e4f['id'],_0x136e4f[_0x36f620(0x38c)],_0x3c8fad);}catch(_0x437adb){this[_0x36f620(0x17d)][_0x36f620(0x1af)](_0x437adb);}}['_setFormulaLimitStatus'](_0x562f87,_0x174871){const _0x2782df=_0x2369fc;_0x174871<this['_lastResponseTimestamp']||(this[_0x2782df(0x24f)]=_0x174871,this[_0x2782df(0xe1)]=Number[_0x2782df(0x38a)](_0x562f87[_0x2782df(0x2ba)]),this['_currentUsage']=Number[_0x2782df(0x38a)](_0x562f87[_0x2782df(0x173)]));}async['_startCalculationLimit'](_0x9ad17a){const _0x19a7e0=_0x2369fc;var _0x703e74,_0x422d98;const _0x471bf3=Date[_0x19a7e0(0x3a7)]();try{const _0x4b9e76=((_0x703e74=this[_0x19a7e0(0x2eb)][_0x19a7e0(0xfe)](u[_0x19a7e0(0x2f9)]))==null?void 0x0:_0x703e74[_0x19a7e0(0x275)])||ss,_0xd92182=(await this['_httpService'][_0x19a7e0(0x379)](_0x4b9e76,{'body':JSON[_0x19a7e0(0x2ac)]({'taskId':_0x9ad17a})}))[_0x19a7e0(0x1c3)];if(((_0x422d98=_0xd92182[_0x19a7e0(0x1af)])==null?void 0x0:_0x422d98['code'])!==G['OK'])return;this[_0x19a7e0(0x31c)](_0xd92182[_0x19a7e0(0x130)],_0x471bf3);}catch(_0x6e3616){this[_0x19a7e0(0x17d)][_0x19a7e0(0x1af)](_0x6e3616);}}async[_0x2369fc(0x366)](_0x5237a5){const _0x2de34f=_0x2369fc;var _0x52dfa2,_0x37321b;const _0x4429fa=Date[_0x2de34f(0x3a7)]();try{const _0x15e2e8=((_0x52dfa2=this[_0x2de34f(0x2eb)][_0x2de34f(0xfe)](u[_0x2de34f(0x2f9)]))==null?void 0x0:_0x52dfa2[_0x2de34f(0x290)])||ts,_0x5dcb92=_0x5237a5?_0x15e2e8+_0x2de34f(0x210)+encodeURIComponent(_0x5237a5):_0x15e2e8,_0x446cc4=(await this[_0x2de34f(0xe6)][_0x2de34f(0x30d)](_0x5dcb92))[_0x2de34f(0x1c3)];if(((_0x37321b=_0x446cc4[_0x2de34f(0x1af)])==null?void 0x0:_0x37321b[_0x2de34f(0x10e)])!==G['OK'])return;this[_0x2de34f(0x31c)](_0x446cc4[_0x2de34f(0x130)],_0x4429fa);}catch(_0x402c93){this[_0x2de34f(0x17d)][_0x2de34f(0x1af)](_0x402c93);}}async[_0x2369fc(0x28e)](_0x57de86){const _0x218a3d=_0x2369fc;var _0x3eb598,_0x4bed19;const _0x1e715b=Date['now']();try{const _0x1adf6f=((_0x3eb598=this[_0x218a3d(0x2eb)][_0x218a3d(0xfe)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3eb598[_0x218a3d(0x329)])||is,_0x32b289=(await this[_0x218a3d(0xe6)][_0x218a3d(0x379)](_0x1adf6f,{'body':JSON[_0x218a3d(0x2ac)]({'taskId':_0x57de86})}))['body'];if(((_0x4bed19=_0x32b289[_0x218a3d(0x1af)])==null?void 0x0:_0x4bed19[_0x218a3d(0x10e)])!==G['OK'])return;this[_0x218a3d(0x31c)](_0x32b289[_0x218a3d(0x130)],_0x1e715b);}catch(_0x7d0154){this[_0x218a3d(0x17d)][_0x218a3d(0x1af)](_0x7d0154);}}[_0x2369fc(0x1bb)](){const _0x1dc8cd=_0x2369fc;return this[_0x1dc8cd(0xe1)]===0x0?!0x0:this[_0x1dc8cd(0xe1)]-this[_0x1dc8cd(0x153)]>0x0;}[_0x2369fc(0x22f)](){const _0x387a1b=_0x2369fc;this[_0x387a1b(0x30e)]&&(clearTimeout(this['_pollingInterval']),this[_0x387a1b(0x30e)]=null);}[_0x2369fc(0x1c1)](){const _0x5f1493=_0x2369fc;this[_0x5f1493(0xed)][_0x5f1493(0x1c4)]({'content':this[_0x5f1493(0x1a3)]['t']('formula.calculation.waiting'),'type':p[_0x5f1493(0x314)]['Loading']});}[_0x2369fc(0x2b3)](_0x24732b){const _0x6971aa=_0x2369fc;for(const _0x4ad822 of _0x24732b){const {unitId:_0x373359,sheetId:_0x3d0d90,range:_0x525577}=_0x4ad822,_0x2af5f6=this['_univerInstanceService']['getUnit'](_0x373359);if(!_0x2af5f6)continue;const _0x46ce2f=_0x2af5f6['getSheetBySheetId'](_0x3d0d90);if(!_0x46ce2f)continue;const _0x2efcfe=_0x46ce2f[_0x6971aa(0x1ed)]();for(let _0x15bd10=_0x525577[_0x6971aa(0x25f)];_0x15bd10<=_0x525577[_0x6971aa(0x3ae)];_0x15bd10++)for(let _0x47cc2a=_0x525577['startColumn'];_0x47cc2a<=_0x525577[_0x6971aa(0x37b)];_0x47cc2a++){const _0x2eb805=_0x2efcfe['getValue'](_0x15bd10,_0x47cc2a);if(_0x2eb805&&(a['isFormulaString'](_0x2eb805['f'])||a[_0x6971aa(0x207)](_0x2eb805['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x2369fc(0x2ab)](O[_0x2369fc(0xfa)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x2369fc(0x2e8)]),L(0x6,a['Inject'](a[_0x2369fc(0x20e)]))],ne);var ns=Object[_0x2369fc(0x219)],rs=(_0x167321,_0x5b746c,_0x2439fa,_0x29373c)=>{const _0x1eaef5=_0x2369fc;for(var _0x347e77=_0x29373c>0x1?void 0x0:_0x29373c?ns(_0x5b746c,_0x2439fa):_0x5b746c,_0x23925b=_0x167321[_0x1eaef5(0x236)]-0x1,_0x463a7a;_0x23925b>=0x0;_0x23925b--)(_0x463a7a=_0x167321[_0x23925b])&&(_0x347e77=_0x463a7a(_0x347e77)||_0x347e77);return _0x347e77;},Se=(_0xdc49fe,_0x16daf0)=>(_0x34d459,_0x3a4498)=>_0x16daf0(_0x34d459,_0x3a4498,_0xdc49fe);let Te=class extends a[_0x2369fc(0x189)]{constructor(_0x673115,_0xa78d66,_0x5ad6c7){const _0x241a31=_0x2369fc;super(),_(this,_0x241a31(0x2fa),new Map()),_(this,_0x241a31(0x2dd),new Map()),_(this,_0x241a31(0x11b),!0x1),(this[_0x241a31(0x2eb)]=_0x673115,this[_0x241a31(0x1f7)]=_0xa78d66,this['_revisionService']=_0x5ad6c7);}[_0x2369fc(0x396)](){const _0x2d1c1c=_0x2369fc;this[_0x2d1c1c(0x11b)]=!0x0;}['enableLocalCache'](){const _0x4a21d2=_0x2369fc;this[_0x4a21d2(0x11b)]=!0x1;}get[_0x2369fc(0x2bd)](){const _0x1b016e=_0x2369fc;return this[_0x1b016e(0x2dd)];}[_0x2369fc(0x31e)](){const _0x445543=_0x2369fc;this['exhaustSavingTask']()[_0x445543(0x39a)](()=>super[_0x445543(0x31e)]());}async['loadOfflineData'](_0x567e29){const _0x5993ef=_0x2369fc;return this[_0x5993ef(0x11b)]?null:this[_0x5993ef(0x1f7)][_0x5993ef(0x172)](u[_0x5993ef(0x1b2)](_0x567e29));}async['saveOfflineData'](_0x235d95,_0x5d1850){return!!this['_localStorageService']['setItem'](_0x235d95,_0x5d1850);}[_0x2369fc(0x35d)](_0x5769a9,_0x2a19ec,_0x35c542,_0x28252c){const _0x242827=_0x2369fc,_0x308a16=this['_revisionService'][_0x242827(0x2d5)](_0x5769a9);this[_0x242827(0x2fa)][_0x242827(0x2c6)](_0x5769a9,{'unitID':_0x5769a9,'type':_0x2a19ec,'awaitingChangeset':_0x35c542,'mutations':_0x28252c,'rev':_0x308a16}),this[_0x242827(0x2dd)][_0x242827(0x17a)](_0x5769a9)||this[_0x242827(0x369)](_0x5769a9);}[_0x2369fc(0x369)](_0x30b005){const _0x339cb6=_0x2369fc,_0x39dcdc=this[_0x339cb6(0x2f0)]();_0x39dcdc===0x0?this[_0x339cb6(0x206)](_0x30b005):this[_0x339cb6(0x2dd)][_0x339cb6(0x2c6)](_0x30b005,setTimeout(()=>this[_0x339cb6(0x206)](_0x30b005),_0x39dcdc));}[_0x2369fc(0x2f0)](){const _0x34042b=_0x2369fc;var _0x58e7d2;return(_0x58e7d2=this['_configService'][_0x34042b(0xfe)](u[_0x34042b(0x182)]))!=null?_0x58e7d2:u[_0x34042b(0x1cf)];}[_0x2369fc(0x206)](_0xa686a7){const _0x369663=_0x2369fc,_0x369126=this[_0x369663(0x2dd)][_0x369663(0x30d)](_0xa686a7);return _0x369126!==void 0x0&&window[_0x369663(0x25c)](_0x369126),this[_0x369663(0x1f7)][_0x369663(0x2ed)](u['getLocalCacheKey'](_0xa686a7),this[_0x369663(0x2fa)][_0x369663(0x30d)](_0xa686a7))[_0x369663(0x39a)](()=>this[_0x369663(0x2dd)][_0x369663(0x10a)](_0xa686a7));}async['exhaustSavingTask'](){const _0x59bc5c=_0x2369fc,_0xb2312a=[];this['_saveTaskMap'][_0x59bc5c(0x1a4)]((_0x51607f,_0x1dab78)=>{const _0x2639f2=_0x59bc5c;window['clearTimeout'](_0x51607f),_0xb2312a[_0x2639f2(0x1a0)](this['_saveCache'](_0x1dab78)[_0x2639f2(0x39a)](()=>{const _0x1b9777=_0x2639f2;this['_saveTaskMap'][_0x1b9777(0x10a)](_0x1dab78);}));}),await Promise['all'](_0xb2312a);}};Te=rs([Se(0x0,a[_0x2369fc(0x15a)]),Se(0x1,a[_0x2369fc(0x27c)]),Se(0x2,a[_0x2369fc(0x2ab)](g['RevisionService']))],Te);function _0x8c2a(_0x1bedeb,_0x503aad){_0x1bedeb=_0x1bedeb-0xe0;const _0x465539=_0x4655();let _0x8c2a19=_0x465539[_0x1bedeb];return _0x8c2a19;}class ke extends a['RxDisposable']{constructor(){const _0xcee922=_0x2369fc;super(),_(this,_0xcee922(0x15f)),this[_0xcee922(0x15f)]=I['fromEvent'](window,'popstate')[_0xcee922(0x28a)](I['takeUntil'](this[_0xcee922(0x131)]),I[_0xcee922(0x395)](0x1),I[_0xcee922(0x3a5)](void 0x0));}[_0x2369fc(0x226)](_0x8d8bd9,_0x1b85ce,_0x2f80e9=!0x1){const _0x253c32=_0x2369fc,_0x2f0809=new URL(window[_0x253c32(0x196)][_0x253c32(0xe4)]);_0x2f0809[_0x253c32(0x33e)]['set'](_0x8d8bd9,_0x1b85ce),_0x2f80e9?window[_0x253c32(0x117)][_0x253c32(0x34c)]('','',_0x2f0809[_0x253c32(0x138)]()):window[_0x253c32(0x117)][_0x253c32(0x10d)]('','',_0x2f0809[_0x253c32(0x138)]());}[_0x2369fc(0x104)](_0x3792a8,_0x39f3fa=!0x1){const _0x5c17ed=_0x2369fc,_0x3c1631=new URL(window[_0x5c17ed(0x196)]['href']);_0x3c1631[_0x5c17ed(0x33e)][_0x5c17ed(0x10a)](_0x3792a8),_0x39f3fa?window[_0x5c17ed(0x117)]['replaceState']('','',_0x3c1631[_0x5c17ed(0x138)]()):window['history'][_0x5c17ed(0x10d)]('','',_0x3c1631[_0x5c17ed(0x138)]());}[_0x2369fc(0x34a)](_0x28d433){const _0x2cbd22=_0x2369fc;var _0x302838;return(_0x302838=new URL(window['location']['href'])[_0x2cbd22(0x33e)]['get'](_0x28d433))!=null?_0x302838:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x2369fc(0x219)],cs=(_0x41354c,_0x4f6f9a,_0x3a3af1)=>_0x4f6f9a in _0x41354c?os(_0x41354c,_0x4f6f9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a3af1}):_0x41354c[_0x4f6f9a]=_0x3a3af1,ls=(_0x31d556,_0x1d2d84,_0x34ea43,_0x52803c)=>{const _0x40010a=_0x2369fc;for(var _0x301fc7=_0x52803c>0x1?void 0x0:_0x52803c?as(_0x1d2d84,_0x34ea43):_0x1d2d84,_0x42431e=_0x31d556[_0x40010a(0x236)]-0x1,_0x3a5bc0;_0x42431e>=0x0;_0x42431e--)(_0x3a5bc0=_0x31d556[_0x42431e])&&(_0x301fc7=_0x3a5bc0(_0x301fc7)||_0x301fc7);return _0x301fc7;},de=(_0x37ba2d,_0xfdee91)=>(_0x3c51be,_0xfbd0b0)=>_0xfdee91(_0x3c51be,_0xfbd0b0,_0x37ba2d),_s=(_0x5c676f,_0x25d42a,_0x3045c6)=>cs(_0x5c676f,_0x25d42a+'',_0x3045c6);const hs=_0x2369fc(0xe0);exports[_0x2369fc(0x1f2)]=class extends a[_0x2369fc(0x35b)]{constructor(_0x390230=Me,_0x388ce7,_0x34e59b,_0x23b53c){const _0x11208f=_0x2369fc;super(),this[_0x11208f(0x2ad)]=_0x390230,this[_0x11208f(0x110)]=_0x388ce7,this[_0x11208f(0x2bc)]=_0x34e59b,this['_configService']=_0x23b53c;const {..._0x416783}=a[_0x11208f(0x224)]({},Me,this[_0x11208f(0x2ad)]);this[_0x11208f(0x2eb)]['setConfig'](Yt,_0x416783);}[_0x2369fc(0x326)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x2369fc(0x214)](){const _0x2b6b91=_0x2369fc;this[_0x2b6b91(0x2b6)]();}[_0x2369fc(0x23c)](){const _0x5076da=_0x2369fc;var _0x34e906;const _0x4c898e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5076da(0x372)],{'useClass':x['WebSocketService']}],[u[_0x5076da(0x351)],{'useClass':Te}],[exports[_0x5076da(0x18e)]],[ie],[Z],[F],[me],[exports[_0x5076da(0x296)]]];this[_0x5076da(0x2ad)][_0x5076da(0x132)]&&_0x4c898e[_0x5076da(0x1a0)]([Q]),a[_0x5076da(0x21a)](this['_injector'],a[_0x5076da(0x1b5)](_0x4c898e,(_0x34e906=this[_0x5076da(0x2ad)])==null?void 0x0:_0x34e906[_0x5076da(0x360)]));}[_0x2369fc(0x2b6)](){const _0x52650b=_0x2369fc;this['disposeWithMe'](this['_renderManagerService'][_0x52650b(0x152)](a[_0x52650b(0x392)]['UNIVER_DOC'],[Ee])),this[_0x52650b(0x237)](this[_0x52650b(0x110)][_0x52650b(0x152)](a[_0x52650b(0x392)]['UNIVER_SHEET'],[Ce]));}[_0x2369fc(0x323)](){const _0x4b9592=_0x2369fc;a[_0x4b9592(0x2fb)](this['_injector'],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x4b9592(0x296)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x4b9592(0x2fb)](this[_0x4b9592(0x2bc)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x2369fc(0x122),hs),exports[_0x2369fc(0x1f2)]=ls([a[_0x2369fc(0x1da)](u[_0x2369fc(0x175)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x2369fc(0x2ab)](a['Injector'])),de(0x3,a[_0x2369fc(0x15a)])],exports[_0x2369fc(0x1f2)]);var us=Object[_0x2369fc(0x219)],Is=(_0x64959d,_0x4a014f,_0x131db4,_0x3a3d06)=>{const _0x360380=_0x2369fc;for(var _0x30dd56=_0x3a3d06>0x1?void 0x0:_0x3a3d06?us(_0x4a014f,_0x131db4):_0x4a014f,_0x3bc514=_0x64959d[_0x360380(0x236)]-0x1,_0x82140d;_0x3bc514>=0x0;_0x3bc514--)(_0x82140d=_0x64959d[_0x3bc514])&&(_0x30dd56=_0x82140d(_0x30dd56)||_0x30dd56);return _0x30dd56;},W=(_0x4567c1,_0x207871)=>(_0x3b1830,_0x5eb078)=>_0x207871(_0x3b1830,_0x5eb078,_0x4567c1);exports[_0x2369fc(0x1f9)]=class extends u[_0x2369fc(0x29f)]{constructor(_0x31b865,_0x27c853,_0x246b78,_0x3eed56,_0x12fdc3){super(_0x31b865,_0x27c853,_0x246b78,_0x3eed56,_0x12fdc3);}async['createSocket'](_0x5ed18c){const _0x507e9c=_0x2369fc,_0x4164c6=await this[_0x507e9c(0x3a2)](),_0xa95b19=this[_0x507e9c(0x289)](_0x5ed18c,_0x4164c6);return this[_0x507e9c(0x273)](_0xa95b19);}[_0x2369fc(0x289)](_0x4d2221,_0x156ce5){const _0x1e8ff1=_0x2369fc,_0x4d6bfe=typeof window>'u'?new URL(_0x4d2221):new URL(_0x4d2221,window['location']['origin']);_0x4d6bfe[_0x1e8ff1(0x33e)]['set'](_0x1e8ff1(0x2d7),_0x156ce5);const _0x579c3a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x579c3a[_0x1e8ff1(0x30d)](_0x1e8ff1(0x20b))&&_0x4d6bfe[_0x1e8ff1(0x33e)][_0x1e8ff1(0x2c6)]('runId',_0x579c3a[_0x1e8ff1(0x30d)](_0x1e8ff1(0x20b))),_0x4d6bfe[_0x1e8ff1(0x138)]();}async['_getSessionTicket'](){const _0x41f446=_0x2369fc;var _0x26ec91,_0x218172,_0x476532;const _0xb4e29=this['_configService'][_0x41f446(0xfe)](u[_0x41f446(0x2f9)]),_0x4392c0=(_0x26ec91=_0xb4e29==null?void 0x0:_0xb4e29[_0x41f446(0x16e)])!=null?_0x26ec91:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x476532=(_0x218172=(await this['_httpService'][_0x41f446(0x30d)](_0x4392c0,{'headers':{'Content-Type':'application/json'}}))[_0x41f446(0x1c3)])==null?void 0x0:_0x218172[_0x41f446(0x143)])!=null?_0x476532:'';}},exports[_0x2369fc(0x1f9)]=Is([W(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),W(0x1,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),W(0x2,a[_0x2369fc(0x15a)]),W(0x3,a['ILogService']),W(0x4,g[_0x2369fc(0x2a9)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x2369fc(0x219)],ds=(_0x5e1d59,_0x1d47d3,_0x242aef,_0x5ddad2)=>{const _0x41ec08=_0x2369fc;for(var _0x466c77=_0x5ddad2>0x1?void 0x0:_0x5ddad2?Ss(_0x1d47d3,_0x242aef):_0x1d47d3,_0x45537d=_0x5e1d59[_0x41ec08(0x236)]-0x1,_0x13600d;_0x45537d>=0x0;_0x45537d--)(_0x13600d=_0x5e1d59[_0x45537d])&&(_0x466c77=_0x13600d(_0x466c77)||_0x466c77);return _0x466c77;},fe=(_0x13af53,_0xf834eb)=>(_0x3d9698,_0x57f54c)=>_0xf834eb(_0x3d9698,_0x57f54c,_0x13af53);exports[_0x2369fc(0x2be)]=class extends a['Disposable']{constructor(_0x2461f3,_0x2372f4,_0x35a4de){const _0xa4d59c=_0x2369fc;super(),this[_0xa4d59c(0x340)]=_0x2461f3,this[_0xa4d59c(0xe6)]=_0x2372f4,this[_0xa4d59c(0x2eb)]=_0x35a4de;}async[_0x2369fc(0x3a0)](_0x1c9071,_0x4c98ab,_0x158a79,..._0x4fed72){const _0x1eb246=_0x2369fc;var _0x26a23b,_0xf04cef,_0x50fce2,_0x27be01;const _0x3ba8f1=this['_instanceService'][_0x1eb246(0x347)]();if(!_0x3ba8f1)throw new Error(_0x1eb246(0x309));const _0x4de0ee=((_0x26a23b=this[_0x1eb246(0x2eb)][_0x1eb246(0xfe)](u[_0x1eb246(0x1d0)]))!=null?_0x26a23b:u[_0x1eb246(0x181)])+'/'+_0x1c9071+_0x1eb246(0x215)+_0x4c98ab,_0x527430=new URL(window['location']['href']),_0x2e8317={'scriptId':_0x1c9071,'runId':(_0xf04cef=_0x527430[_0x1eb246(0x33e)][_0x1eb246(0x30d)](_0x1eb246(0x20b)))!=null?_0xf04cef:'','function':_0x4c98ab,'unitId':_0x3ba8f1['getUnitId'](),'argsOfFunction':JSON[_0x1eb246(0x2ac)](_0x4fed72),'invokeId':(_0x50fce2=_0x158a79[_0x1eb246(0x220)])!=null?_0x50fce2:'','executionId':(_0x27be01=_0x158a79[_0x1eb246(0x19e)])!=null?_0x27be01:''};try{const _0x3e84b7=await this[_0x1eb246(0xe6)][_0x1eb246(0x379)](_0x4de0ee,{'body':_0x2e8317});return _0x3e84b7[_0x1eb246(0x1c3)][_0x1eb246(0x1af)]&&_0x3e84b7[_0x1eb246(0x1c3)][_0x1eb246(0x1af)][_0x1eb246(0x10e)]!==G['OK']?_0x1eb246(0x2e6):_0x3e84b7['body'][_0x1eb246(0x1bf)];}catch{return _0x1eb246(0x2e6);}}},exports[_0x2369fc(0x2be)]=ds([fe(0x0,a[_0x2369fc(0x24a)]),fe(0x1,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),fe(0x2,a[_0x2369fc(0x15a)])],exports[_0x2369fc(0x2be)]);const we=0x7530,ye=_0x2369fc(0x136);class fs extends a['Disposable']{constructor(){const _0x1ab608=_0x2369fc;super(),_(this,_0x1ab608(0x20d),a[_0x1ab608(0x2f7)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x1ab608(0x2ea),new Map()),_(this,_0x1ab608(0xfd),null),_(this,_0x1ab608(0x12a),new Map()),_(this,_0x1ab608(0x39c),new Map()),this['_init']();}['dispose'](){const _0x1e8718=_0x2369fc;super[_0x1e8718(0x31e)](),this['_clearOtherTimers']['forEach']((_0x5884c4,_0x3b92d0)=>this[_0x1e8718(0x255)](_0x3b92d0)),this[_0x1e8718(0xfd)]&&window[_0x1e8718(0x344)](this[_0x1e8718(0xfd)]);}[_0x2369fc(0x14e)](_0xfa32d6){const _0x4f30d0=_0x2369fc;return this[_0x4f30d0(0x2d1)](_0xfa32d6)['pipe'](I['distinctUntilChanged']());}[_0x2369fc(0x1b3)](_0x5eeaff){const _0x2ce71f=_0x2369fc;this[_0x2ce71f(0x2f3)][_0x2ce71f(0x1d1)]===0x0&&this[_0x2ce71f(0x188)](),this[_0x2ce71f(0x2f3)][_0x2ce71f(0x161)](_0x5eeaff),this[_0x2ce71f(0x124)]({'type':0x0,'memberID':this[_0x2ce71f(0x20d)],'unitIDs':[_0x5eeaff],'isForwarded':!0x1});}[_0x2369fc(0x312)](_0x27be4e){const _0x195ce3=_0x2369fc;this[_0x195ce3(0x2f3)]['delete'](_0x27be4e),this[_0x195ce3(0x2f3)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x195ce3(0xfd)]);}[_0x2369fc(0x2d3)](){const _0x4b1311=_0x2369fc;this[_0x4b1311(0x237)](a[_0x4b1311(0x199)](I[_0x4b1311(0x295)](window,_0x4b1311(0x111))['subscribe'](_0x45114d=>{const _0x28ea06=_0x4b1311;if(_0x45114d[_0x28ea06(0x39d)]!==ye||!_0x45114d[_0x28ea06(0x350)])return;const _0x4ad16e=JSON['parse'](_0x45114d[_0x28ea06(0x350)]);this['_handleEvent'](_0x4ad16e);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x4b1311(0x20d)],'unitIDs':Array[_0x4b1311(0x23a)](this[_0x4b1311(0x2f3)])}));}['_handleEvent'](_0x599df1){const _0x254bfa=_0x2369fc;switch(_0x599df1[_0x254bfa(0x230)]){case 0x0:this[_0x254bfa(0x346)](_0x599df1);break;case 0x1:this[_0x254bfa(0x1a7)](_0x599df1);break;case 0x2:this[_0x254bfa(0x160)](_0x599df1);break;}}['_handleJoinEvent'](_0xaaef86){const _0x4c128e=_0x2369fc,{unitIDs:_0x4755ea,memberID:_0x246c47,isForwarded:_0x2136fd}=_0xaaef86;_0x4755ea[_0x4c128e(0x1a4)](_0x5425ef=>{const _0x1b5f36=_0x4c128e;if(!_0x2136fd&&this[_0x1b5f36(0x2ea)][_0x1b5f36(0x17a)](_0x5425ef)&&this[_0x1b5f36(0x2d1)](_0x5425ef)[_0x1b5f36(0x2b7)](u[_0x1b5f36(0x179)][_0x1b5f36(0x2c4)]),!this[_0x1b5f36(0x2ea)][_0x1b5f36(0x17a)](_0x5425ef)||!this[_0x1b5f36(0x2ea)][_0x1b5f36(0x30d)](_0x5425ef)[_0x1b5f36(0x17a)](_0x246c47)){const _0x516e92=this[_0x1b5f36(0x2ea)][_0x1b5f36(0x30d)](_0x5425ef)||new Set();_0x516e92[_0x1b5f36(0x161)](_0x246c47),this[_0x1b5f36(0x2ea)][_0x1b5f36(0x2c6)](_0x5425ef,_0x516e92),this['_scheduleClearOtherTimer'](_0x246c47);}}),_0x2136fd||this[_0x4c128e(0x124)]({'type':0x0,'memberID':this[_0x4c128e(0x20d)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2369fc(0x1e7)](_0x3c4bda){const _0x37eb76=_0x2369fc;this[_0x37eb76(0x255)](_0x3c4bda);const _0x5996b5=window[_0x37eb76(0x261)](()=>{const _0x3fa051=_0x37eb76;this[_0x3fa051(0x2ea)][_0x3fa051(0x1a4)](_0x526e2e=>{const _0x2079da=_0x3fa051;_0x526e2e[_0x2079da(0x10a)](_0x3c4bda);});},we*0x2);this[_0x37eb76(0x12a)][_0x37eb76(0x2c6)](_0x3c4bda,_0x5996b5);}[_0x2369fc(0x255)](_0x27f140){const _0x39b971=_0x2369fc;if(this[_0x39b971(0x12a)][_0x39b971(0x17a)](_0x27f140)){const _0x3c8c49=this[_0x39b971(0x12a)]['get'](_0x27f140);_0x3c8c49&&window['clearTimeout'](_0x3c8c49),this[_0x39b971(0x12a)][_0x39b971(0x2c6)](_0x27f140,null);}}['_handleLeaveEvent'](_0x19669b){const _0x358181=_0x2369fc,{memberID:_0xf9f949,unitIDs:_0x534270}=_0x19669b;_0x534270[_0x358181(0x1a4)](_0x436e9b=>{const _0xbdcdbd=_0x358181;var _0x2da717;const _0x182dba=this[_0xbdcdbd(0x2ea)][_0xbdcdbd(0x30d)](_0x436e9b);_0x182dba&&(_0x182dba[_0xbdcdbd(0x10a)](_0xf9f949),(_0x2da717=this[_0xbdcdbd(0x2d1)](_0x436e9b))==null||_0x2da717['next'](_0x182dba[_0xbdcdbd(0x1d1)]===0x0?u['UnitStatus'][_0xbdcdbd(0x180)]:u[_0xbdcdbd(0x179)][_0xbdcdbd(0x2c4)]));}),this[_0x358181(0x255)](_0xf9f949);}[_0x2369fc(0x160)](_0xf1be7){const _0x219c93=_0x2369fc;this['_scheduleClearOtherTimer'](_0xf1be7[_0x219c93(0x1a8)]);}[_0x2369fc(0x124)](_0x1c84f6){const _0x4e42ac=_0x2369fc;localStorage[_0x4e42ac(0x2ed)](ye,JSON['stringify'](_0x1c84f6));}[_0x2369fc(0x188)](){const _0x4f28da=_0x2369fc;this[_0x4f28da(0xfd)]=window[_0x4f28da(0xea)](()=>{const _0x2e83ec=_0x4f28da;this[_0x2e83ec(0x124)]({'type':0x2,'memberID':this[_0x2e83ec(0x20d)]});},we);}['_ensureSubject'](_0x58987c){const _0x26460c=_0x2369fc;return this[_0x26460c(0x39c)][_0x26460c(0x17a)](_0x58987c)||this[_0x26460c(0x39c)]['set'](_0x58987c,new I[(_0x26460c(0x121))](u[_0x26460c(0x179)][_0x26460c(0x180)])),this[_0x26460c(0x39c)][_0x26460c(0x30d)](_0x58987c);}}exports[_0x2369fc(0x20a)]=Oe,exports[_0x2369fc(0x154)]=je,exports[_0x2369fc(0x277)]=fs,exports[_0x2369fc(0x14a)]=ke;
|