@univerjs-pro/collaboration-client-ui 0.8.2-nightly.202506241607 → 0.8.2-nightly.202506251607

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x10cf50=_0x3e00;(function(_0x8cefd8,_0x150bf0){const _0x532160=_0x3e00,_0x14018c=_0x8cefd8();while(!![]){try{const _0x182780=-parseInt(_0x532160(0xc8))/0x1*(parseInt(_0x532160(0xd1))/0x2)+-parseInt(_0x532160(0xd6))/0x3*(parseInt(_0x532160(0xd2))/0x4)+-parseInt(_0x532160(0xcc))/0x5+-parseInt(_0x532160(0xcb))/0x6*(parseInt(_0x532160(0xd5))/0x7)+-parseInt(_0x532160(0xce))/0x8+-parseInt(_0x532160(0xd3))/0x9+parseInt(_0x532160(0xcd))/0xa;if(_0x182780===_0x150bf0)break;else _0x14018c['push'](_0x14018c['shift']());}catch(_0x12ae0f){_0x14018c['push'](_0x14018c['shift']());}}}(_0x2fd8,0x9501a));function _0x2fd8(){const _0x542acc=['extend','784XNguNV','8MEHfQX','3359106sVtEan','get','1282701Vrjrwa','1432641raUEHP','229anBjDw','runOnServer','FUniver','30zfbNoK','382915CbBEcn','33590810kIEzQo','2702856uVhgIp','@univerjs/core/facade'];_0x2fd8=function(){return _0x542acc;};return _0x2fd8();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x10cf50(0xcf));function _0x3e00(_0x496908,_0x231feb){const _0x2fd8d1=_0x2fd8();return _0x3e00=function(_0x3e00a6,_0x47690d){_0x3e00a6=_0x3e00a6-0xc8;let _0x26dbd7=_0x2fd8d1[_0x3e00a6];return _0x26dbd7;},_0x3e00(_0x496908,_0x231feb);}class c extends e[_0x10cf50(0xca)]{['runOnServer'](_0x48b3e9,_0x3000fb,..._0x17caec){const _0x3f592c=_0x10cf50;return this['_injector'][_0x3f592c(0xd4)](t['RemoteUniscriptService'])[_0x3f592c(0xc9)](_0x48b3e9,_0x3000fb,{},..._0x17caec);}}e[_0x10cf50(0xca)][_0x10cf50(0xd0)](c);
1
+ 'use strict';const _0x57a65f=_0x3c6f;(function(_0x391f92,_0x200758){const _0x3cf047=_0x3c6f,_0x25b914=_0x391f92();while(!![]){try{const _0x5b71dc=parseInt(_0x3cf047(0xd5))/0x1*(-parseInt(_0x3cf047(0xda))/0x2)+parseInt(_0x3cf047(0xd7))/0x3*(parseInt(_0x3cf047(0xd9))/0x4)+parseInt(_0x3cf047(0xdb))/0x5+parseInt(_0x3cf047(0xe2))/0x6+-parseInt(_0x3cf047(0xe1))/0x7*(parseInt(_0x3cf047(0xe4))/0x8)+parseInt(_0x3cf047(0xd2))/0x9*(parseInt(_0x3cf047(0xd6))/0xa)+parseInt(_0x3cf047(0xdc))/0xb*(-parseInt(_0x3cf047(0xdd))/0xc);if(_0x5b71dc===_0x200758)break;else _0x25b914['push'](_0x25b914['shift']());}catch(_0x1d5929){_0x25b914['push'](_0x25b914['shift']());}}}(_0x2aea,0x7414e));const t=require(_0x57a65f(0xd4)),e=require(_0x57a65f(0xe3));function _0x3c6f(_0x2bd093,_0x30bef3){const _0x2aea18=_0x2aea();return _0x3c6f=function(_0x3c6f38,_0x6768ed){_0x3c6f38=_0x3c6f38-0xd2;let _0x585011=_0x2aea18[_0x3c6f38];return _0x585011;},_0x3c6f(_0x2bd093,_0x30bef3);}class c extends e[_0x57a65f(0xd3)]{[_0x57a65f(0xdf)](_0x4c2c49,_0x4181a2,..._0x199db7){const _0x47dd6b=_0x57a65f;return this[_0x47dd6b(0xde)]['get'](t[_0x47dd6b(0xd8)])[_0x47dd6b(0xdf)](_0x4c2c49,_0x4181a2,{},..._0x199db7);}}e[_0x57a65f(0xd3)][_0x57a65f(0xe0)](c);function _0x2aea(){const _0xb701e7=['FUniver','@univerjs-pro/collaboration-client-ui','9hTMwxc','11670FgowCu','3XJuFYx','RemoteUniscriptService','2676084OIfELW','15798ZRwYMq','1138720ORXGwO','11LCePNE','2241732OXxOno','_injector','runOnServer','extend','3869005BLIduT','816498MAvUhz','@univerjs/core/facade','8oZIhod','1953jmLshk'];_0x2aea=function(){return _0xb701e7;};return _0x2aea();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1e9432=_0xa492;(function(_0x5c4095,_0x393aa6){const _0x4c9f00=_0xa492,_0x4fab07=_0x5c4095();while(!![]){try{const _0x1c08fc=-parseInt(_0x4c9f00(0x169))/0x1*(-parseInt(_0x4c9f00(0x340))/0x2)+parseInt(_0x4c9f00(0xcd))/0x3*(-parseInt(_0x4c9f00(0x2fa))/0x4)+-parseInt(_0x4c9f00(0x334))/0x5+parseInt(_0x4c9f00(0x18c))/0x6*(-parseInt(_0x4c9f00(0x267))/0x7)+parseInt(_0x4c9f00(0x136))/0x8+-parseInt(_0x4c9f00(0x32e))/0x9*(parseInt(_0x4c9f00(0x174))/0xa)+parseInt(_0x4c9f00(0x14c))/0xb;if(_0x1c08fc===_0x393aa6)break;else _0x4fab07['push'](_0x4fab07['shift']());}catch(_0x2e60e8){_0x4fab07['push'](_0x4fab07['shift']());}}}(_0x59d6,0x90516));var Ve=Object[_0x1e9432(0x143)],Xe=(_0x82ac63,_0x125daa,_0x21c77a)=>_0x125daa in _0x82ac63?Ve(_0x82ac63,_0x125daa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21c77a}):_0x82ac63[_0x125daa]=_0x21c77a,h=(_0x1ea0eb,_0x5bd880,_0x297aaa)=>Xe(_0x1ea0eb,typeof _0x5bd880!=_0x1e9432(0x341)?_0x5bd880+'':_0x5bd880,_0x297aaa);Object['defineProperty'](exports,Symbol[_0x1e9432(0x30e)],{'value':_0x1e9432(0x133)});const u=require(_0x1e9432(0x296)),a=require('@univerjs/core'),p=require(_0x1e9432(0x26c)),G=require('@univerjs/network'),E=require(_0x1e9432(0x26b)),Ge=require(_0x1e9432(0xe1)),d=require(_0x1e9432(0x2e6)),m=require(_0x1e9432(0xd5)),Y=require(_0x1e9432(0x328)),be=require(_0x1e9432(0x221)),g=require(_0x1e9432(0x32c)),$=require(_0x1e9432(0x137)),X=require(_0x1e9432(0x1cc)),P=require(_0x1e9432(0x23e)),O=require(_0x1e9432(0x2f7)),D=require(_0x1e9432(0x2e7)),M=require(_0x1e9432(0x242)),Ke=require(_0x1e9432(0x160));var qe=Object[_0x1e9432(0x18e)],ze=(_0x1fd0c7,_0x110321,_0xd2fbd,_0x212c83)=>{for(var _0x4b9345=_0x212c83>0x1?void 0x0:_0x212c83?qe(_0x110321,_0xd2fbd):_0x110321,_0x321a61=_0x1fd0c7['length']-0x1,_0x56c486;_0x321a61>=0x0;_0x321a61--)(_0x56c486=_0x1fd0c7[_0x321a61])&&(_0x4b9345=_0x56c486(_0x4b9345)||_0x4b9345);return _0x4b9345;},Oe=(_0x76c550,_0x308a9f)=>(_0x47e1e8,_0xcebf7d)=>_0x308a9f(_0x47e1e8,_0xcebf7d,_0x76c550);let de=class extends a[_0x1e9432(0x30f)]{constructor(_0x5b05f7,_0x106e29){const _0x281b95=_0x1e9432;super(),this[_0x281b95(0x183)]=_0x5b05f7,this[_0x281b95(0x193)]=_0x106e29,this[_0x281b95(0x1f2)]();}[_0x1e9432(0x1f2)](){const _0x38cd40=_0x1e9432,_0x47bf12=this;this[_0x38cd40(0x21d)](this[_0x38cd40(0x183)][_0x38cd40(0x2b3)]({'onBeforePasteImage':async _0x5cfc1a=>{const _0x2fff79=_0x38cd40,_0x4f35f0=await _0x47bf12['_imageIoService'][_0x2fff79(0x251)](_0x5cfc1a);return _0x4f35f0?{'source':_0x4f35f0[_0x2fff79(0x15e)],'imageSourceType':_0x4f35f0[_0x2fff79(0x2f6)]}:null;}}));}};de=ze([Oe(0x0,E[_0x1e9432(0x2a4)]),Oe(0x1,Ge[_0x1e9432(0x13a)])],de);const Te=['purple.300',_0x1e9432(0x22f),_0x1e9432(0x18b),_0x1e9432(0x264),'blue.400',_0x1e9432(0xc3)];class me extends a[_0x1e9432(0x2ab)]{constructor(){const _0x4ddf22=_0x1e9432;super(...arguments),h(this,_0x4ddf22(0x129),new Map()),h(this,'_colorIndex',0x0);}[_0x1e9432(0x1f4)](_0x450cd){const _0x329dcd=_0x1e9432;if(this[_0x329dcd(0x129)][_0x329dcd(0x312)](_0x450cd))return this[_0x329dcd(0x129)]['get'](_0x450cd);const _0x3f887f=Te[this[_0x329dcd(0x17e)]];return this['_colorIndex']=(this[_0x329dcd(0x17e)]+0x1)%Te[_0x329dcd(0x1c4)],this[_0x329dcd(0x129)][_0x329dcd(0x12f)](_0x450cd,_0x3f887f),_0x3f887f;}}function Pe(_0x43393f){let _0x2f9ac6='';for(const _0x30bd2f of _0x43393f){const {startOffset:_0xaa8272,endOffset:_0x3e2f74,isActive:_0x4e49a8,rangeType:_0x555d12,segmentId:_0x212e36,segmentPage:_0x2e0217}=_0x30bd2f;_0x2f9ac6['length']&&(_0x2f9ac6+=','),_0x2f9ac6+=_0xaa8272+':'+_0x3e2f74+':'+(_0x4e49a8?'1':'0')+':'+_0x555d12+':'+_0x212e36+':'+_0x2e0217;}return _0x2f9ac6;}function Je(_0xefb05d){const _0x2b806e=_0x1e9432,_0x413f69=_0xefb05d[_0x2b806e(0x1ae)](','),_0x584501=[];for(const _0x37f235 of _0x413f69){const [_0x278b34,_0x15d538,_0x45c0e5,_0x43a41b,_0x10ac7a,_0x4a4053]=_0x37f235[_0x2b806e(0x1ae)](':');_0x584501['push']({'startOffset':Number(_0x278b34),'endOffset':Number(_0x15d538),'collapsed':_0x278b34===_0x15d538,'isActive':_0x45c0e5==='1','rangeType':_0x43a41b===a[_0x2b806e(0x1b7)]['TEXT']?a[_0x2b806e(0x1b7)][_0x2b806e(0x1e1)]:a['DOC_RANGE_TYPE'][_0x2b806e(0x18f)],'segmentId':typeof _0x10ac7a=='string'?String(_0x10ac7a):'','segmentPage':Number(_0x4a4053!=null?_0x4a4053:-0x1)});}return _0x584501[_0x2b806e(0xc5)](_0x16de8e=>_0x16de8e[_0x2b806e(0x349)])||(_0x584501[0x0][_0x2b806e(0x349)]=!0x0),_0x584501;}class Ce extends a[_0x1e9432(0x30f)]{constructor(){const _0x358769=_0x1e9432;super(...arguments),h(this,_0x358769(0x10b),new d[(_0x358769(0x155))](null)),h(this,_0x358769(0x1c6),this[_0x358769(0x10b)][_0x358769(0x27a)]());}[_0x1e9432(0x2da)](_0xcfda3b){const _0x4a6925=_0x1e9432,{unitID:_0x50668c,memberID:_0x5e61b8,textRanges:_0x24a879}=_0xcfda3b,_0x2b7697=Pe(_0x24a879);if(_0x2b7697==='')return;const _0x5ac042={'unitID':_0x50668c,'memberID':_0x5e61b8,'selection':_0x2b7697};this[_0x4a6925(0x10b)][_0x4a6925(0x1ba)](_0x5ac042);}}var Ze=Object[_0x1e9432(0x18e)],Qe=(_0x1a6cd9,_0x4d2608,_0x32caa7,_0x5d31dc)=>{for(var _0x2dc0dc=_0x5d31dc>0x1?void 0x0:_0x5d31dc?Ze(_0x4d2608,_0x32caa7):_0x4d2608,_0x25dc28=_0x1a6cd9['length']-0x1,_0x7d5642;_0x25dc28>=0x0;_0x25dc28--)(_0x7d5642=_0x1a6cd9[_0x25dc28])&&(_0x2dc0dc=_0x7d5642(_0x2dc0dc)||_0x2dc0dc);return _0x2dc0dc;},L=(_0x12bcfc,_0x558e82)=>(_0xa8bdf9,_0x3016ad)=>_0x558e82(_0xa8bdf9,_0x3016ad,_0x12bcfc);const et=0x12c,tt=0x64;let Ie=class extends a[_0x1e9432(0x30f)]{constructor(_0x5801f5,_0x1f27ba,_0x10908d,_0x52201d,_0x41f7e5,_0x2dd95b,_0x15a098,_0x367830,_0x248e76){const _0x3d8eff=_0x1e9432;super(),h(this,_0x3d8eff(0x1c5),!0x1),h(this,'_init',!0x1),h(this,_0x3d8eff(0x28b),new d['BehaviorSubject'](new Map())),h(this,_0x3d8eff(0xfb),this['_cursorInfo$'][_0x3d8eff(0x27a)]()),h(this,_0x3d8eff(0x165),new d[(_0x3d8eff(0x155))]([])),h(this,_0x3d8eff(0x249),this['_roomMembers$'][_0x3d8eff(0x12b)](d[_0x3d8eff(0x149)](et))),h(this,_0x3d8eff(0x34d),a['debounce'](_0x248a0d=>{const _0x267757=_0x3d8eff,_0x445041={'eventID':m[_0x267757(0x2ca)][_0x267757(0x11d)],'data':{'unitID':this['unitID'],'memberID':this[_0x267757(0x199)][_0x267757(0x286)](),'selection':Pe(_0x248a0d)}};this[_0x267757(0x199)][_0x267757(0x2ed)](_0x445041,this[_0x267757(0xc1)]);},tt)),(this[_0x3d8eff(0xc1)]=_0x5801f5,this[_0x3d8eff(0x199)]=_0x1f27ba,this[_0x3d8eff(0x131)]=_0x10908d,this[_0x3d8eff(0x122)]=_0x52201d,this['_memberService']=_0x41f7e5,this['_syncEditingCollabCursorService']=_0x2dd95b,this[_0x3d8eff(0x1c3)]=_0x15a098,this[_0x3d8eff(0xdc)]=_0x367830,this['_commandService']=_0x248e76);}get[_0x1e9432(0xe7)](){const _0x103bea=_0x1e9432;return this['_cursorInfo$'][_0x103bea(0x22c)]();}get[_0x1e9432(0x27d)](){return this['_roomMembers$']['getValue']();}[_0x1e9432(0x2c8)](){const _0x4f824f=_0x1e9432;super[_0x4f824f(0x2c8)](),this[_0x4f824f(0x28b)][_0x4f824f(0x1ba)](new Map()),this[_0x4f824f(0x28b)]['complete'](),this[_0x4f824f(0x165)][_0x4f824f(0x1ba)]([]),this['_roomMembers$'][_0x4f824f(0x148)]();}['init'](){const _0xdc47c8=_0x1e9432;this[_0xdc47c8(0x1f2)]||(this[_0xdc47c8(0x1f2)]=!0x0,this[_0xdc47c8(0x199)][_0xdc47c8(0x198)][_0xdc47c8(0x12b)](d[_0xdc47c8(0x1fb)](this[_0xdc47c8(0x269)]))['subscribe'](_0x2727c6=>{const _0x5ce2c3=_0xdc47c8;_0x2727c6===u['SessionStatus'][_0x5ce2c3(0x1fd)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xdc47c8(0x199)]['event$'][_0xdc47c8(0x12b)](d['takeUntil'](this[_0xdc47c8(0x269)]))[_0xdc47c8(0x259)](_0x55abe7=>{const _0x1cdac2=_0xdc47c8,_0x2183a0=_0x55abe7[_0x1cdac2(0xca)];_0x2183a0===m[_0x1cdac2(0x2ca)][_0x1cdac2(0x11d)]&&this[_0x1cdac2(0x112)](_0x55abe7),_0x2183a0===m[_0x1cdac2(0x2ca)][_0x1cdac2(0x1f6)]&&this['_onCursorDelete'](_0x55abe7);}),this[_0xdc47c8(0x21d)](this[_0xdc47c8(0xdf)][_0xdc47c8(0x154)](_0x213da0=>{const _0x103baf=_0xdc47c8,_0x5de1b9=_0x213da0[_0x103baf(0x30c)];_0x5de1b9!=null&&this[_0x103baf(0x1c5)]&&_0x213da0['id']===Y[_0x103baf(0x1d4)]['id']&&_0x5de1b9['unitId']===this['unitID']&&_0x5de1b9[_0x103baf(0x1ad)]===!0x1&&_0x5de1b9[_0x103baf(0x315)][_0x103baf(0x1c4)]>0x0&&this[_0x103baf(0x34d)](_0x5de1b9[_0x103baf(0x315)]);})),this[_0xdc47c8(0x118)]['collabCursorState$'][_0xdc47c8(0x12b)](d[_0xdc47c8(0x1fb)](this[_0xdc47c8(0x269)]))[_0xdc47c8(0x259)](_0x41d9a8=>{const _0x5597ff=_0xdc47c8;if((_0x41d9a8==null?void 0x0:_0x41d9a8[_0x5597ff(0xc1)])!==this[_0x5597ff(0xc1)])return;const _0x2823fa={'eventID':m[_0x5597ff(0x2ca)]['UPDATE_CURSOR'],'data':_0x41d9a8};this['_onCursorUpdate'](_0x2823fa);}),this[_0xdc47c8(0x21d)](this['_commandService'][_0xdc47c8(0x154)](_0x565e2f=>{const _0x37b9fa=_0xdc47c8;if(_0x565e2f[_0x37b9fa(0x30c)]==null)return;const _0x374ad1=_0x565e2f[_0x37b9fa(0x30c)];if(_0x565e2f['id']!==Y['RichTextEditingMutation']['id']||_0x374ad1[_0x37b9fa(0x202)]!==this[_0x37b9fa(0xc1)])return;const _0x249970={'id':'doc.mutation.rich-text-editing','params':_0x374ad1},_0x6ca897=this[_0x37b9fa(0xe7)];for(const [_0x3af1ab,_0x4c7de1]of _0x6ca897){const _0x166f38={'id':_0x37b9fa(0xd6),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4c7de1[_0x37b9fa(0x315)]}},_0x3c4d81=this[_0x37b9fa(0x1c3)]['transformMutation'](_0x249970,_0x166f38,!0x1);if(m[_0x37b9fa(0x2f1)](_0x3c4d81))throw _0x3c4d81['error'];_0x6ca897['set'](_0x3af1ab,{..._0x4c7de1,'ranges':_0x3c4d81[_0x37b9fa(0x2fb)][_0x37b9fa(0x30c)][_0x37b9fa(0x130)]});}queueMicrotask(()=>{const _0x122253=_0x37b9fa;this['_cursorInfo$'][_0x122253(0x1ba)](_0x6ca897);});})));}['_onCursorUpdate'](_0x12e0d5){const _0x56ae9a=_0x1e9432;var _0x697d93,_0x2abb42;const {memberID:_0x2cc700,selection:_0x200a3d}=_0x12e0d5[_0x56ae9a(0x338)],_0x5f144d=Je(_0x200a3d),_0x4b8dd2=(_0x2abb42=(_0x697d93=this[_0x56ae9a(0x29a)]['getMember'](this[_0x56ae9a(0xc1)],_0x2cc700))==null?void 0x0:_0x697d93[_0x56ae9a(0x2c5)])!=null?_0x2abb42:'Unknown\x20user',_0x44e822={'color':this[_0x56ae9a(0x122)][_0x56ae9a(0x1f4)](_0x2cc700),'name':_0x4b8dd2,'ranges':_0x5f144d},_0x19f279=this[_0x56ae9a(0xe7)];_0x19f279['set'](_0x2cc700,_0x44e822),this['_cursorInfo$'][_0x56ae9a(0x1ba)](_0x19f279);}[_0x1e9432(0x2ac)](_0x12da62){const _0x381e44=_0x1e9432,{memberID:_0x3f20f1}=_0x12da62[_0x381e44(0x338)],_0x3c7d86=this[_0x381e44(0xe7)];_0x3c7d86['delete'](_0x3f20f1),this[_0x381e44(0x28b)][_0x381e44(0x1ba)](_0x3c7d86);}[_0x1e9432(0x301)](){const _0x49bcc9=_0x1e9432;var _0x11eb1e;if(this[_0x49bcc9(0x1c5)]=!0x0,((_0x11eb1e=this[_0x49bcc9(0xdc)][_0x49bcc9(0x11e)]())==null?void 0x0:_0x11eb1e[_0x49bcc9(0x168)]())!==this[_0x49bcc9(0xc1)])return;const _0x94af5d=this[_0x49bcc9(0x131)]['get'](Y['DocSelectionManagerService'])[_0x49bcc9(0x1ac)]();Array[_0x49bcc9(0x17a)](_0x94af5d)&&_0x94af5d[_0x49bcc9(0x1c4)]>0x0&&this['_updateLocalCursor'](_0x94af5d);}[_0x1e9432(0x1b3)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a[_0x1e9432(0x205)](a[_0x1e9432(0x1bb)])),L(0x3,a[_0x1e9432(0x205)](me)),L(0x4,a[_0x1e9432(0x205)](u[_0x1e9432(0x178)])),L(0x5,a[_0x1e9432(0x205)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x1e9432(0x16a)]),L(0x8,a[_0x1e9432(0x25c)])],Ie);var st=Object[_0x1e9432(0x18e)],it=(_0x5c8b3c,_0x143a5a,_0x5dc14e,_0x1e075a)=>{const _0x574108=_0x1e9432;for(var _0x393404=_0x1e075a>0x1?void 0x0:_0x1e075a?st(_0x143a5a,_0x5dc14e):_0x143a5a,_0x1ff833=_0x5c8b3c[_0x574108(0x1c4)]-0x1,_0x48ed11;_0x1ff833>=0x0;_0x1ff833--)(_0x48ed11=_0x5c8b3c[_0x1ff833])&&(_0x393404=_0x48ed11(_0x393404)||_0x393404);return _0x393404;},A=(_0x2ff497,_0x27faf5)=>(_0x293951,_0x5be8f9)=>_0x27faf5(_0x293951,_0x5be8f9,_0x2ff497);const nt=0x12c,rt=0x64,ot=()=>{let _0x1d6392=[],_0x460dbe=!0x1;return _0x8a363a=>{const _0x5abf12=_0xa492;_0x1d6392[_0x5abf12(0x257)](_0x8a363a),_0x460dbe||(_0x460dbe=!0x0,setTimeout(()=>{const _0x291357=_0x5abf12;_0x1d6392[_0x291357(0xcb)](_0x23b9e6=>_0x23b9e6()),_0x1d6392=[],_0x460dbe=!0x1;}));};};let Se=class extends a[_0x1e9432(0x30f)]{constructor(_0x581348,_0x5aa2bb,_0x2db258,_0x3237a9,_0x12063f,_0x1ff47b,_0x388096,_0x133201){const _0x3670b5=_0x1e9432;super(),h(this,_0x3670b5(0x1c5),!0x1),h(this,_0x3670b5(0x1f2),!0x1),h(this,'_cursorInfo$',new d[(_0x3670b5(0x155))](new Map())),h(this,_0x3670b5(0xfb),this[_0x3670b5(0x28b)][_0x3670b5(0x27a)]()),h(this,_0x3670b5(0x165),new d[(_0x3670b5(0x155))]([])),h(this,_0x3670b5(0x249),this[_0x3670b5(0x165)][_0x3670b5(0x12b)](d[_0x3670b5(0x149)](nt))),h(this,_0x3670b5(0x34d),a[_0x3670b5(0x311)]((_0x2a08a8,_0xc7c195)=>{const _0x4da3b4=_0x3670b5,_0x11864f={'eventID':m[_0x4da3b4(0x2ca)][_0x4da3b4(0x11d)],'data':{'unitID':this['unitID'],'memberID':this[_0x4da3b4(0x199)]['getMemberID'](),'selection':be[_0x4da3b4(0x1a5)](_0x2a08a8,_0xc7c195['range'])}};this[_0x4da3b4(0x199)]['send'](_0x11864f,this['unitID']);},rt)),(this[_0x3670b5(0xc1)]=_0x581348,this['_session']=_0x5aa2bb,this[_0x3670b5(0x131)]=_0x2db258,this[_0x3670b5(0x122)]=_0x3237a9,this['_memberService']=_0x12063f,this[_0x3670b5(0xdc)]=_0x1ff47b,this[_0x3670b5(0xdf)]=_0x388096,this[_0x3670b5(0x1b9)]=_0x133201);}get[_0x1e9432(0xe7)](){const _0x27e330=_0x1e9432;return this[_0x27e330(0x28b)][_0x27e330(0x22c)]();}get[_0x1e9432(0x27d)](){const _0x450f71=_0x1e9432;return this[_0x450f71(0x165)]['getValue']();}[_0x1e9432(0x2c8)](){const _0x563ea5=_0x1e9432;super[_0x563ea5(0x2c8)](),this[_0x563ea5(0x28b)]['next'](new Map()),this['_cursorInfo$'][_0x563ea5(0x148)](),this[_0x563ea5(0x165)][_0x563ea5(0x1ba)]([]),this['_roomMembers$'][_0x563ea5(0x148)]();}['init'](){const _0x5dbf57=_0x1e9432;this['_init']||(this[_0x5dbf57(0x1f2)]=!0x0,this[_0x5dbf57(0x199)][_0x5dbf57(0x198)][_0x5dbf57(0x12b)](d[_0x5dbf57(0x1fb)](this[_0x5dbf57(0x269)]))[_0x5dbf57(0x259)](_0x4d6166=>{const _0x26dc24=_0x5dbf57;_0x4d6166===u[_0x26dc24(0x1be)][_0x26dc24(0x1fd)]?this[_0x26dc24(0x301)]():this[_0x26dc24(0x1b3)]();}),this['_session'][_0x5dbf57(0x290)][_0x5dbf57(0x12b)](d[_0x5dbf57(0x1fb)](this[_0x5dbf57(0x269)]))['subscribe'](_0x38ad12=>{const _0x5a608b=_0x5dbf57,_0x35d5c5=_0x38ad12[_0x5a608b(0xca)];_0x35d5c5===m[_0x5a608b(0x2ca)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x38ad12),_0x35d5c5===m[_0x5a608b(0x2ca)][_0x5a608b(0x1f6)]&&this[_0x5a608b(0x2ac)](_0x38ad12);}),this[_0x5dbf57(0xc0)](),this[_0x5dbf57(0x21d)](this[_0x5dbf57(0xdf)][_0x5dbf57(0x154)](_0x2032b6=>{const _0x3f83fd=_0x5dbf57;if(this[_0x3f83fd(0x1c5)]&&_0x2032b6['id']===g[_0x3f83fd(0x1b2)]['id']&&_0x2032b6['params']['unitId']===this[_0x3f83fd(0xc1)]){const _0x447a17=_0x2032b6[_0x3f83fd(0x30c)];this[_0x3f83fd(0x34d)](_0x447a17[_0x3f83fd(0x2a2)],_0x447a17['selections'][0x0]);}})));}['_onCursorUpdate'](_0x2b3ccb){const _0x30ad8a=_0x1e9432;var _0xf48773,_0x47f07c;const {memberID:_0x54bc20,selection:_0x42fa21}=_0x2b3ccb['data'],{sheetName:_0x4ee185,range:_0x53b535}=be['deserializeRangeWithSheet'](_0x42fa21),_0x6727af={'name':(_0x47f07c=(_0xf48773=this[_0x30ad8a(0x29a)][_0x30ad8a(0xb3)](this[_0x30ad8a(0xc1)],_0x54bc20))==null?void 0x0:_0xf48773[_0x30ad8a(0x2c5)])!=null?_0x47f07c:_0x30ad8a(0xcc),'range':this['_getMergeRange'](_0x4ee185,_0x53b535),'sheetID':_0x4ee185,'color':this['_colorAssignService'][_0x30ad8a(0x1f4)](_0x54bc20),'selection':_0x42fa21},_0x30f77c=this[_0x30ad8a(0xe7)];_0x30f77c[_0x30ad8a(0x12f)](_0x54bc20,_0x6727af),this[_0x30ad8a(0x28b)][_0x30ad8a(0x1ba)](_0x30f77c);}[_0x1e9432(0x2ac)](_0x43f8f3){const _0x1ce645=_0x1e9432,{memberID:_0x204a7c}=_0x43f8f3[_0x1ce645(0x338)],_0x13b755=this[_0x1ce645(0xe7)];_0x13b755[_0x1ce645(0xe6)](_0x204a7c),this[_0x1ce645(0x28b)][_0x1ce645(0x1ba)](_0x13b755);}['_getMergeRange'](_0x2d7cd4,_0x37bed4){const _0x2ec1a5=_0x1e9432;var _0xeda66e,_0x1b98a0;const _0x1882c4=(_0x1b98a0=(_0xeda66e=this['_univerInstanceService'][_0x2ec1a5(0x1ed)](this[_0x2ec1a5(0xc1)]))==null?void 0x0:_0xeda66e['getSheetBySheetId'](_0x2d7cd4))==null?void 0x0:_0x1b98a0[_0x2ec1a5(0x30b)]();return(_0x1882c4==null?void 0x0:_0x1882c4[_0x2ec1a5(0x316)](_0x2e546d=>a[_0x2ec1a5(0x218)][_0x2ec1a5(0x1ff)](_0x2e546d,_0x37bed4)))||_0x37bed4;}[_0x1e9432(0xc0)](){const _0x299312=_0x1e9432,_0x353568=new a[(_0x299312(0x2a5))](),_0x50e3e4=ot(),_0x40337d=()=>{const _0x84e6f0=_0x299312;_0x353568[_0x84e6f0(0x2c8)]();const _0x38e83a=(_0x4d2424,_0x33a50b,_0xec4ff1,_0x30d158)=>{const _0x4f52bb=_0x84e6f0;let _0x2ee755=[];switch(_0x4d2424['id']){case g['EffectRefRangId'][_0x4f52bb(0x1b5)]:{_0x2ee755=g['handleDeleteRangeMoveLeft'](_0x4d2424,_0x30d158);break;}case g[_0x4f52bb(0xb9)][_0x4f52bb(0x304)]:{_0x2ee755=g[_0x4f52bb(0x206)](_0x4d2424,_0x30d158);break;}case g[_0x4f52bb(0xb9)][_0x4f52bb(0x20e)]:{_0x2ee755=g[_0x4f52bb(0x124)](_0x4d2424,_0x30d158);break;}case g['EffectRefRangId'][_0x4f52bb(0x2aa)]:{_0x2ee755=g['handleInsertRangeMoveDown'](_0x4d2424,_0x30d158);break;}case g[_0x4f52bb(0xb9)]['InsertRangeMoveRightCommandId']:{_0x2ee755=g[_0x4f52bb(0x261)](_0x4d2424,_0x30d158);break;}case g[_0x4f52bb(0xb9)]['InsertRowCommandId']:{_0x2ee755=g[_0x4f52bb(0x2fd)](_0x4d2424,_0x30d158);break;}case g[_0x4f52bb(0xb9)][_0x4f52bb(0x14b)]:{_0x2ee755=g[_0x4f52bb(0x1f3)](_0x4d2424,_0x30d158);break;}case g[_0x4f52bb(0xb9)][_0x4f52bb(0x11a)]:{_0x2ee755=g[_0x4f52bb(0x2b0)](_0x4d2424,_0x30d158);break;}case g[_0x4f52bb(0xb9)][_0x4f52bb(0x117)]:{_0x2ee755=g['handleIRemoveRow'](_0x4d2424,_0x30d158);break;}}const _0x5361ec=g[_0x4f52bb(0xb8)](_0x2ee755,_0x30d158),_0xa51b1=this['cursorInfo'][_0x4f52bb(0x2ff)](_0x33a50b);if(_0xa51b1&&_0x5361ec){const _0x11e201={..._0xa51b1,'range':_0x5361ec};this['cursorInfo'][_0x4f52bb(0x12f)](_0x33a50b,_0x11e201),_0x50e3e4(()=>{const _0x119dbd=_0x4f52bb,_0xdf4f00=this[_0x119dbd(0x1b9)][_0x119dbd(0x20f)](_0x5361ec,_0x22052d=>(_0xdf4f00[_0x119dbd(0x2c8)](),_0x38e83a(_0x22052d,_0x33a50b,_0xec4ff1,_0x5361ec)));_0x353568[_0x119dbd(0x13f)](_0xdf4f00);});}return{'redos':[],'undos':[]};};this[_0x84e6f0(0xe7)][_0x84e6f0(0xcb)]((_0x4abffd,_0x19664c)=>{const _0x3344bb=_0x84e6f0,{range:_0x3418ad,sheetID:_0x31af5d}=_0x4abffd,_0x35c083=this[_0x3344bb(0x1b9)][_0x3344bb(0x20f)](_0x3418ad,_0x243a71=>(_0x35c083[_0x3344bb(0x2c8)](),_0x38e83a(_0x243a71,_0x19664c,_0x31af5d,_0x3418ad)));_0x353568['add'](_0x35c083);});};this[_0x299312(0x21d)](a[_0x299312(0x208)](this['_cursorInfo$']['subscribe'](()=>{_0x40337d();})));}[_0x1e9432(0x301)](){const _0x251dc1=_0x1e9432;var _0xd5c2e8,_0x4c4319;if(this['_online']=!0x0,((_0xd5c2e8=this[_0x251dc1(0xdc)][_0x251dc1(0x11e)]())==null?void 0x0:_0xd5c2e8['getUnitId']())!==this[_0x251dc1(0xc1)])return;const _0x2c3fb1=(_0x4c4319=this['_injector'][_0x251dc1(0x2ff)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x4c4319[0x0],_0x2bfc13=this['_univerInstanceService'][_0x251dc1(0x196)](a[_0x251dc1(0x1a1)][_0x251dc1(0x210)])['getActiveSheet']();_0x2c3fb1&&_0x2bfc13&&this['_updateLocalCursor'](_0x2bfc13[_0x251dc1(0x10f)](),_0x2c3fb1);}[_0x1e9432(0x1b3)](){const _0x16dba1=_0x1e9432;this[_0x16dba1(0x1c5)]=!0x1;}};Se=it([A(0x2,a[_0x1e9432(0x205)](a[_0x1e9432(0x1bb)])),A(0x3,a[_0x1e9432(0x205)](me)),A(0x4,a['Inject'](u['MemberService'])),A(0x5,a[_0x1e9432(0x16a)]),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x1e9432(0x2fc)]))],Se);var at=Object[_0x1e9432(0x18e)],ct=(_0x5f3b47,_0x38a8b8,_0x1078db,_0x4a7c32)=>{const _0x241f5d=_0x1e9432;for(var _0x593f26=_0x4a7c32>0x1?void 0x0:_0x4a7c32?at(_0x38a8b8,_0x1078db):_0x38a8b8,_0x204ff2=_0x5f3b47[_0x241f5d(0x1c4)]-0x1,_0xba04fe;_0x204ff2>=0x0;_0x204ff2--)(_0xba04fe=_0x5f3b47[_0x204ff2])&&(_0x593f26=_0xba04fe(_0x593f26)||_0x593f26);return _0x593f26;},ie=(_0x1e49bb,_0x2afa6f)=>(_0x5e7adb,_0x256535)=>_0x2afa6f(_0x5e7adb,_0x256535,_0x1e49bb);let x=class extends a[_0x1e9432(0x30f)]{constructor(_0x5012cc,_0x589741,_0x3739b0){const _0x56c551=_0x1e9432;super(),h(this,_0x56c551(0x31b),new Map()),h(this,_0x56c551(0x28e),new d['Subject']()),(this['_univerInstanceService']=_0x5012cc,this[_0x56c551(0x131)]=_0x589741,this[_0x56c551(0x1f1)]=_0x3739b0,this[_0x56c551(0x1f2)]());}['dispose'](){const _0x39dc23=_0x1e9432;super[_0x39dc23(0x2c8)](),this[_0x39dc23(0x28e)][_0x39dc23(0x148)](),this['_entities'][_0x39dc23(0xcb)](_0x112da0=>_0x112da0[_0x39dc23(0x2c8)]());}['getCollabCursors$'](_0x293c3a){const _0x4e7756=_0x1e9432;return this[_0x4e7756(0x31b)][_0x4e7756(0x312)](_0x293c3a)?this[_0x4e7756(0x31b)][_0x4e7756(0x2ff)](_0x293c3a)['cursorInfo$']:this[_0x4e7756(0x28e)][_0x4e7756(0x12b)](d[_0x4e7756(0x2e1)](_0x58de0e=>_0x58de0e['unitID']===_0x293c3a),d['switchMap'](_0x7cfd3c=>_0x7cfd3c[_0x4e7756(0xfb)]));}[_0x1e9432(0x1f2)](){const _0x2ba864=_0x1e9432;this[_0x2ba864(0xdc)][_0x2ba864(0x2c6)](a[_0x2ba864(0x1a1)][_0x2ba864(0x210)])[_0x2ba864(0x12b)](d['takeUntil'](this[_0x2ba864(0x269)]))[_0x2ba864(0x259)](async _0x2aa426=>{const _0x5bc9d7=_0x2ba864,_0x1c2112=_0x2aa426[_0x5bc9d7(0x168)](),_0x3b4848=await this[_0x5bc9d7(0x254)](_0x1c2112);this[_0x5bc9d7(0x28e)]['next'](_0x3b4848),this['_entities'][_0x5bc9d7(0x12f)](_0x1c2112,_0x3b4848);}),this[_0x2ba864(0xdc)]['getTypeOfUnitAdded$'](a[_0x2ba864(0x1a1)]['UNIVER_DOC'])[_0x2ba864(0x12b)](d[_0x2ba864(0x1fb)](this['dispose$']))['pipe'](d[_0x2ba864(0x2e1)](_0x511aef=>!_0x511aef[_0x2ba864(0x168)]()['startsWith']('__')))[_0x2ba864(0x259)](async _0x5490de=>{const _0x260098=_0x2ba864,_0x212c1a=_0x5490de['getUnitId'](),_0x22e2e3=await this[_0x260098(0xff)](_0x212c1a);this[_0x260098(0x28e)][_0x260098(0x1ba)](_0x22e2e3),this['_entities']['set'](_0x212c1a,_0x22e2e3);}),d[_0x2ba864(0x16c)](this[_0x2ba864(0xdc)][_0x2ba864(0x1ec)](a[_0x2ba864(0x1a1)][_0x2ba864(0x2b2)]),this[_0x2ba864(0xdc)][_0x2ba864(0x1ec)](a[_0x2ba864(0x1a1)][_0x2ba864(0x210)]))[_0x2ba864(0x12b)](d[_0x2ba864(0x1fb)](this[_0x2ba864(0x269)]))[_0x2ba864(0x259)](_0x3f4295=>{const _0x194b0c=_0x2ba864,_0x199bb9=_0x3f4295['getUnitId'](),_0x44895b=this[_0x194b0c(0x31b)][_0x194b0c(0x2ff)](_0x199bb9);_0x44895b&&(_0x44895b['dispose'](),this[_0x194b0c(0x31b)][_0x194b0c(0xe6)](_0x199bb9));});}async[_0x1e9432(0x254)](_0x31af20){const _0x421f01=_0x1e9432,_0x5879c5=await this['_collabSessionService'][_0x421f01(0x2c3)](_0x31af20),_0xfdcd3e=this[_0x421f01(0x131)][_0x421f01(0x278)](Se,_0x31af20,_0x5879c5);return _0xfdcd3e[_0x421f01(0x11c)](),_0xfdcd3e;}async['_startDocCollabCursor'](_0x5760dd){const _0x198ffc=_0x1e9432,_0x2a03ea=await this[_0x198ffc(0x1f1)]['requireSession'](_0x5760dd),_0x5118a3=this[_0x198ffc(0x131)][_0x198ffc(0x278)](Ie,_0x5760dd,_0x2a03ea);return _0x5118a3['init'](),_0x5118a3;}};x=ct([ie(0x0,a[_0x1e9432(0x16a)]),ie(0x1,a[_0x1e9432(0x205)](a[_0x1e9432(0x1bb)])),ie(0x2,a[_0x1e9432(0x205)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x15e465,_0x4a65dc){const _0x131b85=_0x1e9432;let {radius:_0x24ac71,width:_0x2ac95c,height:_0x13549f}=_0x4a65dc;_0x24ac71=_0x24ac71!=null?_0x24ac71:0x0,_0x2ac95c=_0x2ac95c!=null?_0x2ac95c:0x1e,_0x13549f=_0x13549f!=null?_0x13549f:0x1e;let _0x11df8f=0x0,_0x296352=0x0,_0x3fb0b4=0x0;_0x11df8f=_0x296352=_0x3fb0b4=Math[_0x131b85(0x25a)](_0x24ac71,_0x2ac95c/0x2,_0x13549f/0x2),_0x15e465[_0x131b85(0x1e3)](),_0x15e465[_0x131b85(0xbd)](_0x11df8f,0x0),_0x15e465[_0x131b85(0x13b)](_0x2ac95c-_0x296352,0x0),_0x15e465[_0x131b85(0x119)](_0x2ac95c-_0x296352,_0x296352,_0x296352,Math['PI']*0x3/0x2,0x0,!0x1),_0x15e465['lineTo'](_0x2ac95c,_0x13549f-_0x3fb0b4),_0x15e465['arc'](_0x2ac95c-_0x3fb0b4,_0x13549f-_0x3fb0b4,_0x3fb0b4,0x0,Math['PI']/0x2,!0x1),_0x15e465[_0x131b85(0x13b)](0x0,_0x13549f),_0x15e465['lineTo'](0x0,_0x11df8f),_0x15e465['arc'](_0x11df8f,_0x11df8f,_0x11df8f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x15e465[_0x131b85(0xf4)](),_0x4a65dc['fill']&&(_0x15e465[_0x131b85(0x235)](),_0x15e465['fillStyle']=_0x4a65dc[_0x131b85(0x1a0)],_0x4a65dc['fillRule']===_0x131b85(0x21e)?_0x15e465[_0x131b85(0x1a0)]('evenodd'):_0x15e465['fill'](),_0x15e465['restore']());}class ee extends p['Shape']{constructor(_0x30ce18,_0x2e8bb7){const _0x521681=_0x1e9432;super(_0x30ce18,_0x2e8bb7),h(this,_0x521681(0x2ae)),h(this,'text'),(this['color']=_0x2e8bb7==null?void 0x0:_0x2e8bb7[_0x521681(0x2ae)],this['text']=_0x2e8bb7==null?void 0x0:_0x2e8bb7[_0x521681(0x127)]);}static[_0x1e9432(0x2a3)](_0x2a2e91,_0x4e760a){const _0x1593c2=_0x1e9432,{text:_0x3f21aa,color:_0x2d052e}=_0x4e760a;_0x2a2e91['save'](),_0x2a2e91[_0x1593c2(0x27f)]=_0x1593c2(0x245);const _0x45b009=_0x2a2e91[_0x1593c2(0x2d2)](_0x3f21aa)[_0x1593c2(0x28d)],_0x3e16d5=Math[_0x1593c2(0x25a)](_0x45b009+0x2*ne,Re);_t(_0x2a2e91,{'height':K,'radius':0x4,'width':_0x3e16d5,'fill':_0x2d052e}),_0x2a2e91[_0x1593c2(0x27c)]=_0x1593c2(0x22a);const _0x51a174=ne,_0x53b9a6=K-lt,_0x5152f5=Re-0x2*ne;if(_0x45b009>_0x5152f5){let _0x3a1061='',_0x2e16d5=0x0;for(const _0x63365e of _0x3f21aa){const _0x46e08f=_0x2a2e91['measureText'](_0x63365e)['width'];if(_0x2e16d5+_0x46e08f<=_0x5152f5-_0x2a2e91[_0x1593c2(0x2d2)]('...')[_0x1593c2(0x28d)])_0x3a1061+=_0x63365e,_0x2e16d5+=_0x46e08f;else{_0x3a1061+='...';break;}}_0x2a2e91[_0x1593c2(0x125)](_0x3a1061,_0x51a174,_0x53b9a6);}else _0x2a2e91[_0x1593c2(0x125)](_0x3f21aa,_0x51a174,_0x53b9a6);_0x2a2e91[_0x1593c2(0x226)]();}[_0x1e9432(0x244)](_0x475bb1){const _0x529c99=_0x1e9432;ee[_0x529c99(0x2a3)](_0x475bb1,this);}}const re='collab-text-anchor-',ht=_0x1e9432(0x314),ut=_0x1e9432(0x2b6),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x1e9432(0x22e);class De{constructor(_0x340874,_0x5cc2dd,_0x2cb4a9,_0x46ca1b){const _0x2fcabc=_0x1e9432;h(this,_0x2fcabc(0x2f2),[]),h(this,'_anchor',null),h(this,_0x2fcabc(0x307),null),h(this,'_anchorDot',null),h(this,_0x2fcabc(0x1d0),null),h(this,_0x2fcabc(0x26d),null),(this['_cursor']=_0x340874,this[_0x2fcabc(0x10c)]=_0x5cc2dd,this[_0x2fcabc(0x153)]=_0x2cb4a9,this[_0x2fcabc(0x1dd)]=_0x46ca1b,this[_0x2fcabc(0x186)]());}set[_0x1e9432(0x161)](_0x34e0a0){const _0x3a83fc=_0x1e9432;_0x34e0a0?(this[_0x3a83fc(0x263)]&&this[_0x3a83fc(0x263)][_0x3a83fc(0xbf)](),this[_0x3a83fc(0x307)]&&this[_0x3a83fc(0x307)]['show']()):(this[_0x3a83fc(0x263)]&&this[_0x3a83fc(0x263)][_0x3a83fc(0x1a8)](),this[_0x3a83fc(0x307)]&&this[_0x3a83fc(0x307)][_0x3a83fc(0xbf)]());}[_0x1e9432(0x2c8)](){const _0x4da57a=_0x1e9432;for(const _0x1ec94d of this[_0x4da57a(0x2f2)])_0x1ec94d[_0x4da57a(0x2c8)]();this['_textBubble']&&this[_0x4da57a(0x307)][_0x4da57a(0x2c8)](),this[_0x4da57a(0x263)]&&this['_anchorDot'][_0x4da57a(0x2c8)](),this[_0x4da57a(0x20b)]&&this[_0x4da57a(0x20b)]['dispose'](),this[_0x4da57a(0x26d)]&&this[_0x4da57a(0x26d)]();}[_0x1e9432(0x186)](){const _0xe52452=_0x1e9432;var _0x9953ae;const {_docSkeleton:_0x182bbd,_document:_0x5d6dd7}=this,{color:_0x37ed1b,name:_0x355654,ranges:_0x3dcc7d}=this[_0xe52452(0x225)],_0x52c1fa=_0x5d6dd7[_0xe52452(0x2b9)](),{docsLeft:_0x4c35fb,docsTop:_0xa56942}=_0x52c1fa,_0x583f9b=new E[(_0xe52452(0x1e9))](_0x52c1fa,_0x182bbd);for(const {startOffset:_0x51e55c,endOffset:_0x27ab0a,rangeType:_0x7588ee,segmentId:_0x43630c,segmentPage:_0x275f2a,collapsed:_0x12c873,isActive:_0x92b59b}of _0x3dcc7d){const _0x5667f0=_0x182bbd['findNodePositionByCharIndex'](_0x51e55c,!0x0,_0x43630c,_0x275f2a);let _0xacb7aa=_0x182bbd['findNodePositionByCharIndex'](_0x27ab0a,!0x0,_0x43630c,_0x275f2a);if(_0xacb7aa==null&&(_0xacb7aa=_0x182bbd[_0xe52452(0x30a)](_0x27ab0a-0x1,!0x1,_0x43630c,_0x275f2a)),_0x92b59b){const {contentBoxPointGroup:_0x4af62c}=_0x583f9b[_0xe52452(0x325)](_0xacb7aa,_0xacb7aa);if(_0x4af62c[_0xe52452(0x1c4)]===0x0)continue;this[_0xe52452(0x33a)](_0x37ed1b,_0x4af62c,_0x4c35fb,_0xa56942,_0x355654),this['_eventUnsubscribe']=this[_0xe52452(0xf7)]();}if(_0x5667f0&&_0xacb7aa){if(_0x7588ee===a[_0xe52452(0x1b7)]['RECT']){const _0x387022=new E[(_0xe52452(0x24e))](_0x52c1fa,_0x182bbd),{pointGroup:_0x509518}=(_0x9953ae=_0x387022[_0xe52452(0x325)](_0x5667f0,_0xacb7aa))!=null?_0x9953ae:{};if(_0x509518==null||_0x509518[_0xe52452(0x1c4)]===0x0)continue;this[_0xe52452(0x146)](_0x37ed1b,_0x509518,_0x4c35fb,_0xa56942);}else{if(!_0x12c873){const {borderBoxPointGroup:_0x4b6f32}=_0x583f9b['getRangePointData'](_0x5667f0,_0xacb7aa);if(_0x4b6f32[_0xe52452(0x1c4)]===0x0)continue;this[_0xe52452(0x1d8)](_0x37ed1b,_0x4b6f32,_0x4c35fb,_0xa56942);}}}}}[_0x1e9432(0x33a)](_0x1c10b5,_0x49c8b0,_0xb11e4c,_0x4e4e9a,_0x124403){const _0x2ff068=_0x1e9432,_0x1d6fc4=this['_getAnchorBounding'](_0x49c8b0),{left:_0x98ff21,top:_0x4facf6,height:_0x1a9ae0}=_0x1d6fc4,_0x1661c3=this[_0x2ff068(0x15a)](),_0x1dfa4b=It/_0x1661c3,_0x1cc74b=new p[(_0x2ff068(0x2c4))](re+a[_0x2ff068(0xd9)][_0x2ff068(0x335)](k),{'left':_0x98ff21+_0xb11e4c-_0x1dfa4b,'top':_0x4facf6+_0x4e4e9a,'height':_0x1a9ae0,'width':dt,'fill':_0x1c10b5||p[_0x2ff068(0xe5)](a[_0x2ff068(0x16f)]['black'],0x0),'strokeWidth':_0x1dfa4b,'stroke':St,'evented':!0x0});this['_anchor']=_0x1cc74b,this[_0x2ff068(0x10c)]['addObject'](_0x1cc74b,E[_0x2ff068(0x2c1)]);const _0x46a2e0=new p['Rect'](re+a['Tools'][_0x2ff068(0x335)](k),{'left':_0x98ff21+_0xb11e4c-_0x1dfa4b,'top':_0x4facf6+_0x4e4e9a-oe/0x2,'height':oe,'width':oe,'fill':_0x1c10b5||p['getColor'](a[_0x2ff068(0x16f)][_0x2ff068(0x299)],0x0),'strokeWidth':0x0,'stroke':_0x1c10b5||p[_0x2ff068(0xe5)](a['COLORS'][_0x2ff068(0x299)],0x0),'evented':!0x1});this[_0x2ff068(0x263)]=_0x46a2e0,this[_0x2ff068(0x10c)][_0x2ff068(0x195)](_0x46a2e0,E['TEXT_RANGE_LAYER_INDEX']);const _0x28c30f=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x98ff21+_0xb11e4c-_0x1dfa4b,'top':_0x4facf6+_0x4e4e9a-K,'text':_0x124403,'color':_0x1c10b5});this[_0x2ff068(0x307)]=_0x28c30f,this[_0x2ff068(0x10c)][_0x2ff068(0x195)](_0x28c30f,E[_0x2ff068(0x2c1)]),this[_0x2ff068(0x161)]=!0x1;}[_0x1e9432(0xf7)](){const _0x30c277=_0x1e9432,_0x4002b3=this[_0x30c277(0x20b)][_0x30c277(0x113)]['subscribeEvent'](()=>{const _0x105e3f=_0x30c277;this[_0x105e3f(0x161)]=!0x0;}),_0x34c54c=this[_0x30c277(0x20b)][_0x30c277(0x2b7)][_0x30c277(0x238)](()=>{const _0x648f0b=_0x30c277;this[_0x648f0b(0x1d0)]&&clearTimeout(this['_hideTimer']),this[_0x648f0b(0x1d0)]=setTimeout(()=>{const _0x28fd86=_0x648f0b;this[_0x28fd86(0x161)]=!0x1;},0x7d0);});return()=>{const _0x5894dd=_0x30c277;_0x4002b3['unsubscribe'](),_0x34c54c[_0x5894dd(0x285)]();};}[_0x1e9432(0x1d8)](_0x58a9c2,_0xa7db0f,_0x50f72f,_0x5892af){const _0x2967b8=_0x1e9432,_0x6f4659=new a['ColorKit'](_0x58a9c2)[_0x2967b8(0x24d)](0.2)[_0x2967b8(0x243)](),_0xb648fb=new p[(_0x2967b8(0x189))](ht+a[_0x2967b8(0xd9)][_0x2967b8(0x335)](k),{'pointsGroup':_0xa7db0f,'fill':_0x6f4659||p[_0x2967b8(0xe5)](a[_0x2967b8(0x16f)]['black'],0.2),'left':_0x50f72f,'top':_0x5892af,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2967b8(0x2f2)]['push'](_0xb648fb),this[_0x2967b8(0x10c)][_0x2967b8(0x195)](_0xb648fb,E[_0x2967b8(0x2c1)]);}[_0x1e9432(0x146)](_0x1120d1,_0x5bdf60,_0x4af7ab,_0x5c1d05){const _0x30af9d=_0x1e9432,_0x20cb8c=new a[(_0x30af9d(0x230))](_0x1120d1)[_0x30af9d(0x24d)](0.2)[_0x30af9d(0x243)](),_0x46caa1=new p[(_0x30af9d(0x189))](ut+a['Tools'][_0x30af9d(0x335)](k),{'pointsGroup':_0x5bdf60,'fill':_0x20cb8c||p[_0x30af9d(0xe5)](a[_0x30af9d(0x16f)][_0x30af9d(0x299)],0.2),'left':_0x4af7ab,'top':_0x5c1d05,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x30af9d(0x257)](_0x46caa1),this[_0x30af9d(0x10c)]['addObject'](_0x46caa1,E[_0x30af9d(0x2c1)]);}[_0x1e9432(0x1f8)](_0x14999b){const _0x3c966a=_0x14999b[0x0],_0x117816=_0x3c966a[0x0],_0x28cfc1=_0x3c966a[0x2],{x:_0x4df34c,y:_0x1c9070}=_0x117816,{x:_0xdb8c52,y:_0x5cde14}=_0x28cfc1;return{'left':_0x4df34c,'top':_0x1c9070,'width':_0xdb8c52-_0x4df34c,'height':_0x5cde14-_0x1c9070};}[_0x1e9432(0x15a)](){const _0x46bca4=_0x1e9432,{scaleX:_0x29b370,scaleY:_0x219f44}=this[_0x46bca4(0x10c)][_0x46bca4(0x1c0)]();return Math[_0x46bca4(0x170)](_0x29b370,_0x219f44);}}var ft=Object[_0x1e9432(0x18e)],vt=(_0x4bfd7c,_0x4d1e4a,_0x369764,_0x35236f)=>{const _0x1d8074=_0x1e9432;for(var _0x5cc65c=_0x35236f>0x1?void 0x0:_0x35236f?ft(_0x4d1e4a,_0x369764):_0x4d1e4a,_0x57c7bd=_0x4bfd7c[_0x1d8074(0x1c4)]-0x1,_0x4028e5;_0x57c7bd>=0x0;_0x57c7bd--)(_0x4028e5=_0x4bfd7c[_0x57c7bd])&&(_0x5cc65c=_0x4028e5(_0x5cc65c)||_0x5cc65c);return _0x5cc65c;},W=(_0x334cce,_0x1a3c32)=>(_0x2e3c07,_0xce732c)=>_0x1a3c32(_0x2e3c07,_0xce732c,_0x334cce);let fe=class extends a[_0x1e9432(0x30f)]{constructor(_0x5860dd,_0x1899da,_0x45fe9d,_0xb8f96e,_0x57715b){const _0x5d8b50=_0x1e9432;super(),h(this,'_cursorShapes',[]),h(this,_0x5d8b50(0x23d),[]),(this[_0x5d8b50(0xea)]=_0x5860dd,this[_0x5d8b50(0xba)]=_0x1899da,this[_0x5d8b50(0x110)]=_0x45fe9d,this[_0x5d8b50(0xdf)]=_0xb8f96e,this['_themeService']=_0x57715b,this['_init']());}[_0x1e9432(0x1f2)](){const _0x330849=_0x1e9432,_0x8b04ed=this[_0x330849(0xea)][_0x330849(0x202)],_0x2b2847=this[_0x330849(0xba)];this[_0x330849(0x21d)](d['combineLatest']([this['_collabCursorController']['getCollabCursors$'](_0x8b04ed),this[_0x330849(0x2ef)][_0x330849(0x103)]])[_0x330849(0x12b)]($[_0x330849(0x16d)](([_0x49706d,_0x385017])=>({'skeleton':_0x2b2847[_0x330849(0x185)](),'cursors':[..._0x49706d[_0x330849(0x16b)]()]['flatMap'](_0x490d9a=>({..._0x490d9a,'color':this[_0x330849(0x2ef)][_0x330849(0x162)](_0x490d9a[_0x330849(0x2ae)])}))})))['subscribe'](_0x4dda0b=>{const _0x2739ac=_0x330849;if(this[_0x2739ac(0x333)](),_0x4dda0b){const {skeleton:_0x55e401,cursors:_0x519b12}=_0x4dda0b;this[_0x2739ac(0x216)](_0x55e401,_0x519b12);}})),this['_initResize'](),this[_0x330849(0x2c9)]();}[_0x1e9432(0x216)](_0x474202,_0x5bd2e6){const _0x320d99=_0x1e9432,{scene:_0x193041,mainComponent:_0x2b47f0}=this[_0x320d99(0xea)],_0x531edd=_0x5bd2e6[_0x320d99(0x16d)](_0x11252e=>new De(_0x11252e,_0x193041,_0x474202,_0x2b47f0));this['_cursorShapes']=_0x531edd,this[_0x320d99(0x23d)]=_0x5bd2e6;}['_refreshCollabCursors'](){const _0x1f2e0d=_0x1e9432;this[_0x1f2e0d(0x333)]();const {scene:_0x538b81,mainComponent:_0x407553}=this[_0x1f2e0d(0xea)],_0x1a1a6a=this['_docSkeletonManagerService']['getSkeleton'](),_0x509918=this[_0x1f2e0d(0x23d)][_0x1f2e0d(0x16d)](_0x57f727=>new De(_0x57f727,_0x538b81,_0x1a1a6a,_0x407553));this[_0x1f2e0d(0xbb)]=_0x509918;}[_0x1e9432(0x333)](){const _0x5dd04b=_0x1e9432;this[_0x5dd04b(0xbb)][_0x5dd04b(0xcb)](_0x2dcf5a=>_0x2dcf5a[_0x5dd04b(0x2c8)]()),this[_0x5dd04b(0xbb)]=[];}[_0x1e9432(0x2c9)](){const _0x4fae5a=_0x1e9432,_0x5c2ee8=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x4fae5a(0xdf)][_0x4fae5a(0x154)](_0x1b61db=>{const _0x350644=_0x4fae5a;_0x5c2ee8[_0x350644(0x2f8)](_0x1b61db['id'])&&_0x1b61db[_0x350644(0x30c)][_0x350644(0x202)]===this[_0x350644(0xea)][_0x350644(0x202)]&&this[_0x350644(0xf2)]();}));}[_0x1e9432(0x1f7)](){const _0x5c0b30=_0x1e9432;this[_0x5c0b30(0x21d)](a[_0x5c0b30(0x13e)](this[_0x5c0b30(0xea)][_0x5c0b30(0x253)][_0x5c0b30(0x252)])['pipe']($[_0x5c0b30(0x2e1)](_0x51b016=>_0x51b016[_0x5c0b30(0x23b)]===p[_0x5c0b30(0x2a1)][_0x5c0b30(0x1c8)]),$[_0x5c0b30(0x1c2)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a['Inject'](Y['DocSkeletonManagerService'])),W(0x2,a[_0x1e9432(0x205)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x1e9432(0x205)](a[_0x1e9432(0xb4)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x1e9432(0x17d)]{constructor(_0x3de1e7,_0x45a3d5){const _0x5527bc=_0x1e9432;super(_0x3de1e7,_0x45a3d5),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x5527bc(0x172)),h(this,'_name',''),h(this,_0x5527bc(0x240),_0x5527bc(0x1e2)),h(this,_0x5527bc(0x1e7)),(_0x45a3d5&&this['setShapeProps'](_0x45a3d5),this[_0x5527bc(0x113)][_0x5527bc(0x238)](()=>this[_0x5527bc(0x23a)]({'hovered':!0x0})),this[_0x5527bc(0x2b7)][_0x5527bc(0x238)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x1e9432(0x23a)](_0x3bb855){const _0x5066c6=_0x1e9432;var _0x29f9b0,_0xd329dc,_0x47d953,_0xe641d3,_0xb6966a,_0x16f23f;this[_0x5066c6(0x268)]=(_0x29f9b0=_0x3bb855[_0x5066c6(0x2ae)])!=null?_0x29f9b0:this[_0x5066c6(0x268)],this['_hovered']=(_0xd329dc=_0x3bb855[_0x5066c6(0x102)])!=null?_0xd329dc:this[_0x5066c6(0x241)],this[_0x5066c6(0x172)]=(_0x47d953=_0x3bb855['range'])!=null?_0x47d953:this['_range'],this['_name']=(_0xe641d3=_0x3bb855[_0x5066c6(0x2c5)])!=null?_0xe641d3:this['_name'],this['_labelPosition']=(_0xb6966a=_0x3bb855[_0x5066c6(0xbc)])!=null?_0xb6966a:this['_labelPosition'],this[_0x5066c6(0x1e7)]=(_0x16f23f=_0x3bb855[_0x5066c6(0xf8)])!=null?_0x16f23f:this['_backgroundColor'],this[_0x5066c6(0x2f3)]({'width':_0x3bb855[_0x5066c6(0x28d)],'height':_0x3bb855[_0x5066c6(0xd1)]});}['onMouseMove'](_0x45ded4){const _0x2deea0=_0x1e9432,{row:_0x19c436,column:_0x44de09}=_0x45ded4;if(_0x19c436>=this[_0x2deea0(0x172)]['startRow']&&_0x19c436<=this[_0x2deea0(0x172)][_0x2deea0(0x320)]&&_0x44de09>=this[_0x2deea0(0x172)][_0x2deea0(0xd4)]&&_0x44de09<=this[_0x2deea0(0x172)][_0x2deea0(0x1bc)]){this[_0x2deea0(0x23a)]({'hovered':!0x0});return;}this[_0x2deea0(0x23a)]({'hovered':!0x1});}[_0x1e9432(0x2f9)](_0x175642){return!0x1;}['_draw'](_0x5c6a5d){const _0x2d6cce=_0x1e9432;p['Rect'][_0x2d6cce(0x2a3)](_0x5c6a5d,{'width':this[_0x2d6cce(0x28d)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x2d6cce(0x268)],'evented':!0x1,'fill':this[_0x2d6cce(0x1e7)]}),this[_0x2d6cce(0x241)]&&(_0x5c6a5d[_0x2d6cce(0x235)](),_0x5c6a5d[_0x2d6cce(0x109)](0x1,0x0,0x0,0x1,this[_0x2d6cce(0x28d)],this[_0x2d6cce(0x240)]===_0x2d6cce(0x2d1)?0x0:-0x14),ee[_0x2d6cce(0x2a3)](_0x5c6a5d,{'text':this[_0x2d6cce(0x2bc)],'color':this['_color']}),_0x5c6a5d[_0x2d6cce(0x226)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0xdc954c,_0x12e8c3,_0x12dd0d,_0x28740f)=>{const _0x4e94c7=_0x1e9432;for(var _0x227c33=_0x28740f>0x1?void 0x0:_0x28740f?Ct(_0x12e8c3,_0x12dd0d):_0x12e8c3,_0x4df1e3=_0xdc954c[_0x4e94c7(0x1c4)]-0x1,_0x2b5804;_0x4df1e3>=0x0;_0x4df1e3--)(_0x2b5804=_0xdc954c[_0x4df1e3])&&(_0x227c33=_0x2b5804(_0x227c33)||_0x227c33);return _0x227c33;},ae=(_0x28b39e,_0x33107f)=>(_0x89b9e5,_0x143512)=>_0x33107f(_0x89b9e5,_0x143512,_0x28b39e);const Et=0x1389;let ve=class extends a[_0x1e9432(0x30f)]{constructor(_0x241438,_0x436b77,_0x2ac8a7,_0x982be4){const _0x485581=_0x1e9432;super(),h(this,_0x485581(0x23d),new Set()),h(this,_0x485581(0x256),null),(this['_context']=_0x241438,this['_sheetSkeletonManagerService']=_0x436b77,this[_0x485581(0x110)]=_0x2ac8a7,this[_0x485581(0x2ef)]=_0x982be4,this[_0x485581(0x1f2)]());}[_0x1e9432(0x1f2)](){const _0x457b5b=_0x1e9432;this[_0x457b5b(0x306)][_0x457b5b(0xe3)][_0x457b5b(0x12b)]($['takeUntil'](this['dispose$']),$['switchMap'](_0x338bba=>{const _0x415ab7=_0x457b5b;if(_0x338bba){const _0x317955=_0x338bba[_0x415ab7(0x177)];return d[_0x415ab7(0x1d5)](this[_0x415ab7(0x110)][_0x415ab7(0x26a)](this[_0x415ab7(0xea)][_0x415ab7(0x202)]),this['_themeService']['currentTheme$'])['pipe']($[_0x415ab7(0x16d)](([_0x590edd,_0x9d6620])=>{const _0x1dad6f=new Map();return _0x590edd['forEach']((_0x2e6320,_0x2aced0)=>{const _0x244526=_0xa492;if(_0x2e6320[_0x244526(0x232)]===_0x317955){const _0x26a10f={..._0x2e6320};_0x26a10f[_0x244526(0x2ae)]=this[_0x244526(0x2ef)]['getColorFromTheme'](_0x2e6320[_0x244526(0x2ae)]),_0x1dad6f[_0x244526(0x12f)](_0x2aced0,_0x26a10f);}}),{'skeleton':_0x338bba,'cursors':_0x1dad6f};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x457b5b(0x259)](({skeleton:_0xf5dc7e,cursors:_0x48a5a9})=>{const _0x3927cf=_0x457b5b;this['_removeCollabCursors'](),_0xf5dc7e&&this[_0x3927cf(0x216)](_0xf5dc7e,_0x48a5a9);}),this[_0x457b5b(0x306)][_0x457b5b(0xe3)][_0x457b5b(0x259)](_0x3ced4b=>{const _0x142c6c=_0x457b5b;if(_0x3ced4b==null)return;const {skeleton:_0x6c4c3}=_0x3ced4b,{scene:_0x554ad4}=this['_context'];_0x554ad4[_0x142c6c(0x15d)]['subscribeEvent'](a[_0x142c6c(0x311)](_0x4f2b9e=>{const _0x5c03ff=_0x142c6c;var _0x39b456,_0x1d521a;const {offsetX:_0x430bcd,offsetY:_0x5e8285}=_0x4f2b9e,{x:_0x1e9e9f,y:_0x2b253a}=_0x554ad4[_0x5c03ff(0x291)](p[_0x5c03ff(0x128)][_0x5c03ff(0x1ef)]([_0x430bcd,_0x5e8285])),{scaleX:_0x4c446f,scaleY:_0x27c918}=_0x554ad4[_0x5c03ff(0x1c0)](),_0x26613b=_0x554ad4[_0x5c03ff(0x2af)](p[_0x5c03ff(0x1fe)][_0x5c03ff(0x302)]),_0xdc8878=_0x554ad4['getVpScrollXYInfoByPosToVp'](p[_0x5c03ff(0x128)][_0x5c03ff(0x1ef)]([_0x1e9e9f,_0x2b253a]),_0x26613b),_0x568c3d=_0x6c4c3[_0x5c03ff(0x34c)](_0x430bcd,_0x5e8285,_0x4c446f,_0x27c918,_0xdc8878);((_0x39b456=this[_0x5c03ff(0x256)])==null?void 0x0:_0x39b456[_0x5c03ff(0x14a)])===_0x568c3d[_0x5c03ff(0x14a)]&&((_0x1d521a=this[_0x5c03ff(0x256)])==null?void 0x0:_0x1d521a['row'])===_0x568c3d[_0x5c03ff(0x10e)]||this[_0x5c03ff(0x23d)][_0x5c03ff(0xcb)](_0x28d29c=>{const _0x1a90f5=_0x5c03ff;_0x28d29c[_0x1a90f5(0x258)](_0x568c3d);});},0x64));});}[_0x1e9432(0x216)](_0x317a6d,_0x5b6de4){const _0x3a6f87=_0x1e9432;var _0x5d4493;const _0x16cee3=(_0x5d4493=this[_0x3a6f87(0x306)]['getCurrent']())==null?void 0x0:_0x5d4493[_0x3a6f87(0x32f)];if(!_0x16cee3)return;const _0x3d9d9a=this[_0x3a6f87(0x347)]();if(!_0x3d9d9a)return;this[_0x3a6f87(0x23d)][_0x3a6f87(0xcb)](_0x17d394=>{const _0x17b8e6=_0x3a6f87;_0x17d394[_0x17b8e6(0x330)]();});const {scene:_0x26b7db}=_0x3d9d9a,_0x5c2cc1=bt(Array[_0x3a6f87(0xb6)](_0x5b6de4['values']()))[_0x3a6f87(0x16d)](_0x50cd63=>{const _0x130ff2=_0x3a6f87,{color:_0x18ac1e,range:_0x392754,name:_0x2d4837,selection:_0x2cd805,sheetID:_0xe0e893}=_0x50cd63,{startColumn:_0xded289,startRow:_0x2b1b3e,endColumn:_0x19c426,endRow:_0x2a51b5}=_0x392754,_0x100641=X[_0x130ff2(0x156)](_0x2b1b3e,_0xded289,_0x26b7db,_0x16cee3),_0x2635cf=X['getCoordByCell'](_0x2a51b5,_0x19c426,_0x26b7db,_0x16cee3),{columnHeaderHeightAndMarginTop:_0x50bcc1}=_0x16cee3,{startX:_0x33fb5b,startY:_0x70e548}=_0x100641,{endX:_0x429b80,endY:_0x1cbf53}=_0x2635cf,_0x70022e=_0x429b80-_0x33fb5b,_0x418c20=_0x1cbf53-_0x70e548,_0x1de836={'labelPosition':_0x70e548-_0x50bcc1>=K?'top':_0x130ff2(0x2d1),'sheetID':_0xe0e893,'range':_0x392754,'color':_0x18ac1e,'name':_0x2d4837,'selection':_0x2cd805,'left':_0x33fb5b,'top':_0x70e548,'width':_0x70022e,'height':_0x418c20,'evented':!0x1,'zIndex':Et};return new we(_0x2d4837,_0x1de836);});_0x26b7db[_0x3a6f87(0x173)](_0x5c2cc1,gt),this[_0x3a6f87(0x23d)]=new Set(_0x5c2cc1);}[_0x1e9432(0x333)](){const _0x1a980f=_0x1e9432;var _0x3048d1;(_0x3048d1=this[_0x1a980f(0x23d)])==null||_0x3048d1[_0x1a980f(0xcb)](_0xd40a1f=>_0xd40a1f[_0x1a980f(0x2c8)]());}['_getSheetObject'](){const _0x139c45=_0x1e9432;return X[_0x139c45(0x1de)](this[_0x139c45(0xea)][_0x139c45(0x105)],this['_context']);}};ve=pt([ae(0x1,a[_0x1e9432(0x205)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x1e9432(0x205)](x)),ae(0x3,a[_0x1e9432(0x205)](a[_0x1e9432(0xb4)]))],ve);function bt(_0x58ceb0){const _0x25fefa=_0x1e9432,_0x5058b0=new Map();return _0x58ceb0[_0x25fefa(0xcb)](_0x24b524=>{const _0x3d8ef4=_0x25fefa;if(_0x5058b0[_0x3d8ef4(0x312)](_0x24b524[_0x3d8ef4(0x204)])){const _0x5c0d6c=_0x5058b0[_0x3d8ef4(0x2ff)](_0x24b524[_0x3d8ef4(0x204)]);_0x5c0d6c[_0x3d8ef4(0x2c5)]+=',\x20'+_0x24b524[_0x3d8ef4(0x2c5)];}else _0x5058b0[_0x3d8ef4(0x12f)](_0x24b524[_0x3d8ef4(0x204)],_0x24b524);}),Array[_0x25fefa(0xb6)](_0x5058b0[_0x25fefa(0x16b)]());}var b=function(){const _0x467f18=_0x1e9432;return b=Object[_0x467f18(0x116)]||function(_0x50b6ae){const _0x882840=_0x467f18;for(var _0x100252,_0x5d7aa7=0x1,_0x3d5415=arguments['length'];_0x5d7aa7<_0x3d5415;_0x5d7aa7++){_0x100252=arguments[_0x5d7aa7];for(var _0x227a7a in _0x100252)Object[_0x882840(0xd8)][_0x882840(0x271)][_0x882840(0x1cd)](_0x100252,_0x227a7a)&&(_0x50b6ae[_0x227a7a]=_0x100252[_0x227a7a]);}return _0x50b6ae;},b[_0x467f18(0x142)](this,arguments);},Ot=function(_0x19f206,_0xa492d5){const _0x477507=_0x1e9432;var _0x161fab={};for(var _0x32c36a in _0x19f206)Object['prototype'][_0x477507(0x271)][_0x477507(0x1cd)](_0x19f206,_0x32c36a)&&_0xa492d5[_0x477507(0x191)](_0x32c36a)<0x0&&(_0x161fab[_0x32c36a]=_0x19f206[_0x32c36a]);if(_0x19f206!=null&&typeof Object[_0x477507(0xc2)]=='function'){for(var _0x40ba8e=0x0,_0x32c36a=Object['getOwnPropertySymbols'](_0x19f206);_0x40ba8e<_0x32c36a[_0x477507(0x1c4)];_0x40ba8e++)_0xa492d5[_0x477507(0x191)](_0x32c36a[_0x40ba8e])<0x0&&Object['prototype'][_0x477507(0x282)]['call'](_0x19f206,_0x32c36a[_0x40ba8e])&&(_0x161fab[_0x32c36a[_0x40ba8e]]=_0x19f206[_0x32c36a[_0x40ba8e]]);}return _0x161fab;},pe=M[_0x1e9432(0x224)](function(_0x29df66,_0x298ef6){const _0x506aad=_0x1e9432;var _0x47fd79=_0x29df66['icon'],_0x4e352f=_0x29df66['id'],_0x220e66=_0x29df66['className'],_0x29ab62=_0x29df66[_0x506aad(0x1df)],_0x33a311=Ot(_0x29df66,[_0x506aad(0x123),'id',_0x506aad(0x31f),_0x506aad(0x1df)]),_0x55593f=_0x506aad(0x2ee)[_0x506aad(0x157)](_0x4e352f,'\x20')[_0x506aad(0x157)](_0x220e66||'')[_0x506aad(0x12e)](),_0x4e2be2=M['useRef']('_'['concat'](Dt()));return Ae(_0x47fd79,''[_0x506aad(0x157)](_0x4e352f),{'defIds':_0x47fd79[_0x506aad(0x101)],'idSuffix':_0x4e2be2[_0x506aad(0x343)]},b({'ref':_0x298ef6,'className':_0x55593f},_0x33a311),_0x29ab62);});function Ae(_0x5300c,_0xa17034,_0x2d285a,_0x4e2282,_0x1e88ee){const _0x52aa2b=_0x1e9432;return M[_0x52aa2b(0x33c)](_0x5300c[_0x52aa2b(0x348)],b(b({'key':_0xa17034},Tt(_0x5300c,_0x2d285a,_0x1e88ee)),_0x4e2282),(Rt(_0x5300c,_0x2d285a)['children']||[])[_0x52aa2b(0x16d)](function(_0x5d7583,_0x22f96c){const _0x44f2f0=_0x52aa2b;return Ae(_0x5d7583,''['concat'](_0xa17034,'-')['concat'](_0x5300c[_0x44f2f0(0x348)],'-')[_0x44f2f0(0x157)](_0x22f96c),_0x2d285a,void 0x0,_0x1e88ee);}));}function Tt(_0xdc335e,_0x722951,_0x30817c){const _0x594717=_0x1e9432;var _0x1f029a=b({},_0xdc335e[_0x594717(0xfa)]);_0x30817c!=null&&_0x30817c['colorChannel1']&&_0x1f029a[_0x594717(0x1a0)]===_0x594717(0x1f5)&&(_0x1f029a[_0x594717(0x1a0)]=_0x30817c[_0x594717(0x1f5)]),_0xdc335e[_0x594717(0x348)]===_0x594717(0x2f4)&&_0x1f029a['id']&&(_0x1f029a['id']=_0x1f029a['id']+_0x722951[_0x594717(0x223)]),Object[_0x594717(0x293)](_0x1f029a)[_0x594717(0xcb)](function(_0x5d05e4){const _0x2dbd39=_0x594717;var _0x1aa7ea=_0x5d05e4[0x0],_0x6351e9=_0x5d05e4[0x1];_0x1aa7ea===_0x2dbd39(0x2f4)&&typeof _0x6351e9=='string'&&(_0x1f029a[_0x1aa7ea]=_0x6351e9[_0x2dbd39(0x272)](/url\(#(.*)\)/,'url(#$1'[_0x2dbd39(0x157)](_0x722951[_0x2dbd39(0x223)],')')));});var _0x5f03e8=_0x722951[_0x594717(0x101)];return!_0x5f03e8||_0x5f03e8[_0x594717(0x1c4)]===0x0||(_0xdc335e[_0x594717(0x348)]==='use'&&_0x1f029a['xlink:href']&&(_0x1f029a['xlink:href']=_0x1f029a[_0x594717(0x1e0)]+_0x722951[_0x594717(0x223)]),Object[_0x594717(0x293)](_0x1f029a)[_0x594717(0xcb)](function(_0x573cdc){const _0x21f7ad=_0x594717;var _0x495989=_0x573cdc[0x0],_0x26cb4d=_0x573cdc[0x1];typeof _0x26cb4d==_0x21f7ad(0x2fe)&&(_0x1f029a[_0x495989]=_0x26cb4d['replace'](/url\(#(.*)\)/,_0x21f7ad(0x11f)[_0x21f7ad(0x157)](_0x722951[_0x21f7ad(0x223)],')')));})),_0x1f029a;}function Rt(_0xfa2ab1,_0x58cdbe){const _0x4f95ca=_0x1e9432;var _0x423d4d,_0x4156e5=_0x58cdbe[_0x4f95ca(0x101)];return!_0x4156e5||_0x4156e5[_0x4f95ca(0x1c4)]===0x0?_0xfa2ab1:_0xfa2ab1[_0x4f95ca(0x348)]==='defs'&&(!((_0x423d4d=_0xfa2ab1['children'])===null||_0x423d4d===void 0x0)&&_0x423d4d[_0x4f95ca(0x1c4)])?b(b({},_0xfa2ab1),{'children':_0xfa2ab1[_0x4f95ca(0x175)][_0x4f95ca(0x16d)](function(_0x333961){const _0x299dcc=_0x4f95ca;return typeof _0x333961[_0x299dcc(0xfa)]['id']==_0x299dcc(0x2fe)&&_0x4156e5&&_0x4156e5[_0x299dcc(0x2f8)](_0x333961[_0x299dcc(0xfa)]['id'])?b(b({},_0x333961),{'attrs':b(b({},_0x333961[_0x299dcc(0xfa)]),{'id':_0x333961[_0x299dcc(0xfa)]['id']+_0x58cdbe[_0x299dcc(0x223)]})}):_0x333961;})}):_0xfa2ab1;}function Dt(){const _0x95025b=_0x1e9432;return Math[_0x95025b(0x14f)]()[_0x95025b(0x166)](0x24)['substring'](0x2,0x8);}pe[_0x1e9432(0x188)]=_0x1e9432(0x32a);var Ut={'tag':_0x1e9432(0x108),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1e9432(0x181),'viewBox':_0x1e9432(0xde),'width':_0x1e9432(0x32d),'height':_0x1e9432(0x32d)},'children':[{'tag':'g','attrs':{'clipPath':_0x1e9432(0x19b)},'children':[{'tag':'path','attrs':{'stroke':_0x1e9432(0x209),'d':_0x1e9432(0x176),'strokeLinecap':_0x1e9432(0x182),'strokeLinejoin':_0x1e9432(0x182),'strokeWidth':1.2}}]},{'tag':_0x1e9432(0x23f),'attrs':{},'children':[{'tag':_0x1e9432(0x2be),'attrs':{'id':_0x1e9432(0x297)},'children':[{'tag':_0x1e9432(0x139),'attrs':{'fill':_0x1e9432(0x2cd),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1e9432(0x297)]},ye=M[_0x1e9432(0x224)](function(_0x19dabf,_0x3a6a6c){const _0x3238be=_0x1e9432;return M[_0x3238be(0x33c)](pe,Object[_0x3238be(0x116)]({},_0x19dabf,{'id':_0x3238be(0xe4),'ref':_0x3a6a6c,'icon':Ut}));});ye[_0x1e9432(0x188)]=_0x1e9432(0x2e2);var Nt={'tag':'svg','attrs':{'xmlns':_0x1e9432(0x24c),'fill':_0x1e9432(0x181),'viewBox':_0x1e9432(0xfe),'width':_0x1e9432(0x32d),'height':_0x1e9432(0x32d)},'children':[{'tag':'g','attrs':{'clipPath':_0x1e9432(0x1cf)},'children':[{'tag':'path','attrs':{'stroke':_0x1e9432(0x209),'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':_0x1e9432(0x182),'strokeLinejoin':_0x1e9432(0x182),'strokeWidth':1.2}}]},{'tag':_0x1e9432(0x23f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1e9432(0x139),'attrs':{'fill':'white','d':_0x1e9432(0x219),'transform':_0x1e9432(0x231)}}]}]}],'defIds':[_0x1e9432(0x1c1)]},$e=M[_0x1e9432(0x224)](function(_0x511825,_0x2f7e9a){const _0xdc7f6f=_0x1e9432;return M[_0xdc7f6f(0x33c)](pe,Object[_0xdc7f6f(0x116)]({},_0x511825,{'id':_0xdc7f6f(0x1eb),'ref':_0x2f7e9a,'icon':Nt}));});$e['displayName']=_0x1e9432(0x33b);function Mt(_0x56e110){const _0x3e5553=_0x1e9432;switch(_0x56e110){case u[_0x3e5553(0x1c9)]['OFFLINE']:return _0x3e5553(0x1ca);case u[_0x3e5553(0x1c9)][_0x3e5553(0x2e8)]:return'collabStatus.conflict';case u['CollaborationStatus']['FETCH_MISS']:return _0x3e5553(0x2de);case u[_0x3e5553(0x1c9)][_0x3e5553(0xda)]:return _0x3e5553(0x1b0);case u[_0x3e5553(0x1c9)][_0x3e5553(0x319)]:case u['CollaborationStatus'][_0x3e5553(0x28c)]:return'collabStatus.syncing';case u[_0x3e5553(0x1c9)]['SYNCED']:case u[_0x3e5553(0x1c9)][_0x3e5553(0x171)]:return _0x3e5553(0xce);}}function xe(_0x37ef09){const _0x144499=_0x1e9432,{status$:_0x22dedc}=_0x37ef09,_0x2cc394=O[_0x144499(0x19d)](_0x22dedc,u['CollaborationStatus'][_0x144499(0xda)]),_0x2e918d=O[_0x144499(0x21c)](a['LocaleService']),_0xd5f499=O[_0x144499(0x21c)](u['CollaborationSessionService']),_0x1531b2=_0x2cc394!==u[_0x144499(0x1c9)][_0x144499(0xc9)],_0xf84eae=_0x2e918d['t'](Mt(_0x2cc394)),_0x27ce38=_0x1531b2?P['jsx']($e,{}):P[_0x144499(0x2d5)](ye,{}),_0x5e22d8=M[_0x144499(0x2ea)](()=>{const _0x3b82ca=_0x144499;_0x1531b2||_0xd5f499[_0x3b82ca(0x32b)]();},[_0x1531b2,_0xd5f499]);function _0x21a2c3(){const _0xa0fa4d=_0x144499;return P[_0xa0fa4d(0x329)](_0xa0fa4d(0x2e3),{'className':'univer-flex\x20univer-items-center','onClick':_0x5e22d8,'children':[P[_0xa0fa4d(0x2d5)](_0xa0fa4d(0x2e3),{'className':D['clsx'](_0xa0fa4d(0x2b1),{'univer-text-green-500':_0x1531b2,'univer-text-red-500':!_0x1531b2}),'children':_0x27ce38}),P[_0xa0fa4d(0x2d5)]('div',{'className':_0xa0fa4d(0x26e),'children':_0xf84eae})]});}return _0x1531b2?_0x21a2c3():P[_0x144499(0x2d5)](D[_0x144499(0x207)],{'title':_0x2e918d['t']('collab-client.tooltip.reconnect'),'children':_0x21a2c3()});}var Lt=Object[_0x1e9432(0x18e)],Pt=(_0x14fbea,_0x1265b7,_0x4e2f8d,_0x3430fe)=>{const _0x59481e=_0x1e9432;for(var _0x3d2e3d=_0x3430fe>0x1?void 0x0:_0x3430fe?Lt(_0x1265b7,_0x4e2f8d):_0x1265b7,_0x52884b=_0x14fbea[_0x59481e(0x1c4)]-0x1,_0x285339;_0x52884b>=0x0;_0x52884b--)(_0x285339=_0x14fbea[_0x52884b])&&(_0x3d2e3d=_0x285339(_0x3d2e3d)||_0x3d2e3d);return _0x3d2e3d;},V=(_0x512f23,_0x28280d)=>(_0x5e603d,_0x1eebd8)=>_0x28280d(_0x5e603d,_0x1eebd8,_0x512f23);function _0xa492(_0x5e242a,_0x3daae3){const _0x59d623=_0x59d6();return _0xa492=function(_0xa49257,_0x160c82){_0xa49257=_0xa49257-0xb3;let _0x104f2b=_0x59d623[_0xa49257];return _0x104f2b;},_0xa492(_0x5e242a,_0x3daae3);}exports[_0x1e9432(0x2bd)]=class extends a[_0x1e9432(0x2ab)]{constructor(_0x19161d,_0x19b9b6,_0x4ab9ed,_0x2b8d63){const _0x1dbe5e=_0x1e9432;super(),h(this,_0x1dbe5e(0x215),new d[(_0x1dbe5e(0x155))](u[_0x1dbe5e(0x1c9)]['NOT_COLLAB'])),(this[_0x1dbe5e(0xdc)]=_0x19161d,this[_0x1dbe5e(0x131)]=_0x19b9b6,this['_collaborationController']=_0x4ab9ed,this[_0x1dbe5e(0x28f)]=_0x2b8d63,this[_0x1dbe5e(0x19f)](),this[_0x1dbe5e(0x2bf)]());}[_0x1e9432(0x2bf)](){const _0x222401=_0x1e9432;this['disposeWithMe'](this[_0x222401(0xdc)][_0x222401(0x29c)]['pipe'](d[_0x222401(0x18a)](()=>{const _0x372989=_0x222401,_0x4299f8=this[_0x372989(0xdc)][_0x372989(0x11e)]();return _0x4299f8?this['_collaborationController'][_0x372989(0x107)](_0x4299f8[_0x372989(0x168)]()):d['of'](null);}),d[_0x222401(0x18a)](_0xccd300=>_0xccd300?_0xccd300[_0x222401(0x14d)]:d['of'](u[_0x222401(0x1c9)][_0x222401(0xda)])))[_0x222401(0x259)](_0x25baca=>{const _0x3e73ce=_0x222401;this[_0x3e73ce(0x215)][_0x3e73ce(0x1ba)](_0x25baca);}));}[_0x1e9432(0x19f)](){const _0x38b9f8=_0x1e9432;this[_0x38b9f8(0x21d)](this[_0x38b9f8(0x28f)][_0x38b9f8(0x12c)](O[_0x38b9f8(0x1af)][_0x38b9f8(0x19a)],()=>O[_0x38b9f8(0x20d)](wt({'status$':this['_status$'][_0x38b9f8(0x27a)]()}),this[_0x38b9f8(0x131)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x1e9432(0x205)](a[_0x1e9432(0x1bb)])),V(0x2,a[_0x1e9432(0x205)](u['CollaborationController'])),V(0x3,O[_0x1e9432(0x2a6)])],exports[_0x1e9432(0x2bd)]);function wt(_0x317236){const {status$:_0x318893}=_0x317236;return function(){return P['jsx'](xe,{'status$':_0x318893});};}function _0x59d6(){const _0x4aebe8=['syncEditingCollabCursor','activeSheet$','Optional','INVITE_CODE_HAS_BEEN_UES','collabStatus.fetchMiss','APPLY_PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','filter','OffLineIcon','div','onLocalMutation','createSocket','rxjs','@univerjs/design','CONFLICT','_logService','useCallback','registerDependencies','INVALID_INVITE_CODE','send','univerjs-icon\x20univerjs-icon-','_themeService','_send','isTransformMutationFailure','_shapes','transformByState','mask','transformMutation','imageSourceType','@univerjs/ui','includes','triggerDblclick','764IBupiF','m2Prime','RefRangeService','handleInsertRow','string','get','YUUMI_NO_CUBOID_FOR_QUESTION','_toggleOnline','VIEW_MAIN','_beforeCloseService','DeleteRangeMoveUpCommandId','LocaleService','_sheetSkeletonManagerService','_textBubble','_dataLoaderService','ticket','findNodePositionByCharIndex','getMergeData','params','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','toStringTag','RxDisposable','key','debounce','has','setActiveRange','collab-text-range-','ranges','find','MOBILE_HAS_BEEN_BOUND','_configService','AWAITING','getConfig','_entities','invokeId','IMessageService','YUUMI_ALL_TABLES_IS_INVALID','className','endRow','YUUMI_TABLE_NOT_FOUND_IN_UNIT','CollaborationController','registerRenderModule','UniverCollaborationClientUIPlugin','getRangePointData','debug','replaceState','@univerjs/docs','jsxs','UniverIcon','reconnect','@univerjs/sheets','1em','1293831toxWEd','skeleton','makeDirty','storage','popstate','_removeCollabCursors','4064495HWcgNZ','generateRandomId','_handleLeaveEvent','_getSessionTicket','data','disposeUnit','_drawAnchor','OnLineIcon','createElement','body','getItem','setItem','116522ynnuRg','symbol','getActiveSheet','current','setConfig','MOBILE_VERIFY_CODE_MISMATCH','CONNECTOR_DATA_TOO_LARGE','_getSheetObject','tag','isActive','_config','_docTransformSelectionsService','getCellPositionByOffset','_updateLocalCursor','getMember','ThemeService','YUUMI_AI_RUN_FAILED','from','INTERNAL_ERROR','runRefRangeMutations','EffectRefRangId','_docSkeletonManagerService','_cursorShapes','labelPosition','moveTo','transformMutationsWithChangeset','hide','_onRefRangeChange','unitID','getOwnPropertySymbols','yellow.400','DocIMEInputManagerService','some','MUTATION','_revisionService','ENSURE_SNAPSHOT_EXECUTION','OFFLINE','eventID','forEach','Unknown\x20user','3981VZtLOU','collabStatus.synced','YUUMI_UNABLE_LOAD_URL','SOCKET_FAILED','height','result','_initDependencies','startColumn','@univerjs-pro/collaboration','doc.mutation.rich-text-editing','_localCacheService','prototype','Tools','NOT_COLLAB','_docSyncEditingCollabCursorService','_univerInstanceService','_transformHistoryAndStateStack','0\x200\x2016\x2016','_commandService','_initEntityListener','@univerjs/drawing','collaboration-client-ui.config','currentSkeleton$','off-line-icon','getColor','delete','cursorInfo','APPLY_REJECT','_handleHeartbeatEvent','_context','DependentOn','entityInit$','_notificationService','HTTPService','_localeService','addEventListener','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_refreshCollabCursors','_setupSubUnitSync','closePath','IRemoteInstanceService','CollaborationUIEventId','_handleHover','backgroundColor','SOCKET_FAILED_RETRY','attrs','cursorInfo$','origin','DataLoaderService','0\x200\x2017\x2016','_startDocCollabCursor','Error','defIds','hovered','currentTheme$','ALREADY_EXISTS','unit','INVALID_ARGUMENT','getCollabEntity$','svg','transform','_createSocketURL','_collabCursorState$','_scene','LICENSE_DISTRO_REJECTED','row','getSheetId','_collabCursorController','history','_onCursorUpdate','onPointerEnter$','_cachedData','stringify','assign','RemoveRowCommandId','_syncEditingCollabCursorService','arc','RemoveColCommandId','NOT_FOUND','init','UPDATE_CURSOR','getFocusedUnit','url(#$1','m1Prime','runId','_colorAssignService','icon','handleInsertCol','fillText','session.will-retry','text','Vector2','_assignedColors','registerBeforeClose','pipe','registerComponent','CollaborationSocketService','trim','set','textRanges','_injector','loadOfflineData','Module','WebBrowserSingleActiveUnitService','getParam','2301120CzpQRu','rxjs/operators','Warning','path','IImageIoService','lineTo','[CollaborationDataLoaderController]','MessageType','fromEventSubject','add','YUUMI_ASYNCIO_CANCELLED','ILocalStorageService','apply','defineProperty','setParam','code','_drawRectRange','pluginName','complete','debounceTime','column','MoveRangeCommandId','15731045seGOMU','status$','IBeforeCloseService','random','_scheduleClearOtherTimer','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_registerRenderDependencies','_docSkeleton','onCommandExecuted','BehaviorSubject','getCoordByCell','concat','_updateURLWithCurrentState','_updateSubUnitFromURLParams','_getScale','mergeOverrideWithDependencies','/run/','onPointerMove$','source','UNDEFINED','@univerjs/rpc','_hover','getColorFromTheme','INVITE_CODE_ALREADY_BOUND','unshift','_roomMembers$','toString','Workbook','getUnitId','14ftCccA','IUniverInstanceService','values','merge','map','searchParams','COLORS','max','PENDING','_range','addObjects','50SRVBRi','children','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','sheetId','MemberService','ISocketService','isArray','DocStateChangeManagerService','getRenderById','Shape','_colorIndex','then','loadUnit','none','round','_docClipboardService','getCurrentRevOfUnit','getSkeleton','_render','_unitOnClients','displayName','RegularPolygon','switchMap','green.600','48jjJTIy','_selfUnitIDs','getOwnPropertyDescriptor','RECT','_initEvent','indexOf','session.collaboration-timeout','_imageIoService','location','addObject','getCurrentUnitForType','UnitStatus','sessionStatus$','_session','HEADER_MENU','url(#off-line-icon_clip0_910_343)','unload','useObservable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_initStatusComponent','fill','UniverInstanceType','createIdentifier','collaboration.closeRoom','getStateCache','serializeRangeWithSheet','_setupBeforeClosingHandler','NO_OTHER_CLIENTS_EDITING','show','pushState','COMPLETION_FINISHED','_localStorageService','getDocRanges','isEditing','split','BuiltInUIPart','collabStatus.notCollab','RevisionService','SetSelectionsOperation','_toggleOffline','subunit','DeleteRangeMoveLeftCommandId','urlChange$','DOC_RANGE_TYPE','_transformUndoRedoStack','_refRangeService','next','Injector','endColumn','getUndoRedoMutationParamsCache','SessionStatus','_scheduleSaving','getAncestorScale','on-line-icon_clip0_910_349','throttleTime','_transformService','length','_online','collabCursorState$','LOCAL_CACHE_INTERVAL_KEY','resize','CollaborationStatus','collabStatus.offline','UniverCollaborationClientPlugin','@univerjs/sheets-ui','call','collaboration.single-unit.warning','url(#on-line-icon_clip0_910_349)','_hideTimer','_heartbeatTimer','DocCollaborationEntity','onRendered','SetTextSelectionsOperation','combineLatest','newValue','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_drawTextRange','getSheetBySheetId','transformIMECache','IURLService','_docStateChangeManagerService','_document','getSheetObject','extend','xlink:href','TEXT','top','beginPath','clearTimeout','IConfigService','_scheduleHeartbeat','_backgroundColor','error','NodePositionConvertToCursor','OTHER_CLIENTS_EDITING','on-line-icon','getTypeOfUnitDisposed$','getUniverSheetInstance','APPLY_DUPLICATED','FromArray','saveTaskMap','_collabSessionService','_init','handleMoveRange','assignAColorForMemberID','colorChannel1','USERS_LEAVE','_initResize','_getAnchorBounding','_docTransformIMECacheService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','takeUntil','Failed','ONLINE','SHEET_VIEWPORT_KEY','contains','transformStateCache','_collaborationController','unitId','YUUMI_CONNECTOR_URL_NOT_FOUND','selection','Inject','handleDeleteRangeMoveUp','Tooltip','toDisposable','currentColor','DEFAULT_WS_SESSION_TICKET_URL','_anchor','_handleEvent','connectInjector','InsertColCommandId','registerRefRange','UNIVER_SHEET','redoState','setInterval','CollaborationDataLoaderController','setTimeout','_status$','_updateCollabCursors','mapTo','Rectangle','M0\x200H16V16H0z','mutations','undoState','useDependency','disposeWithMe','evenodd','LOGIN_FAILED','_removeClearOtherTimer','@univerjs/engine-formula','_id','idSuffix','forwardRef','_cursor','restore','_getSaveTimeout','fromEvent','size','#FFF','_unitStatus','getValue','BrowserCollaborationSocketService','rgba(255,\x20255,\x20255,\x200.01)','jiqing.500','ColorKit','translate(.97)','sheetID','LICENSE_MAX_UNITS_EXCEEDED','CHANGESET_REVISION_CONFILICT','save','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','subscribeEvent','sessionTicket','setShapeProps','type','_urlService','_cursors','react/jsx-runtime','defs','_labelPosition','_hovered','react','toRgbString','_draw','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_transformPreviousActiveRange','override','ILocalCacheService','roomMembers$','ISnapshotServerService','getLocalCacheKey','http://www.w3.org/2000/svg','setAlpha','NodePositionConvertToRectRange','_clearOtherTimers','USER_NOT_INVITED_CODE','saveImage','onTransformChange$','engine','_startSheetCollabCursor','APPLY_NON_SEQUENTIAL_REVISION','_lastPointer','push','onMouseMove','subscribe','min','JOIN_ROOM_FAILED','ICommandService','touchDependencies','all','docStateChange$','_saveTaskMap','handleInsertRangeMoveRight','memberID','_anchorDot','red.300','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','permission.title','137473eILTGw','_color','dispose$','getCollabCursors$','@univerjs/docs-ui','@univerjs/engine-render','_eventUnsubscribe','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','SetWorksheetActivateCommand','INotificationService','hasOwnProperty','replace','executionId','setStateCache','PERMISSION_DENIED','saveOfflineData','UNRECOGNIZED','createInstance','distinctUntilChanged','asObservable','PY_RUNTIME_SCRIPT_ERROR','fillStyle','roomMembers','ILogService','font','_disabled','href','propertyIsEnumerable','permission.content','_saveCache','unsubscribe','getMemberID','SNAPSHOT_HAS_BEEN_REMOVED','_registerDependencies','executeCommand','updateOfflineData','_cursorInfo$','AWAITING_WITH_PENDING','width','_entityInit$','_uiPartsService','event$','getRelativeToViewportCoord','[RemoteUniscriptService]:\x20no\x20focused\x20unit','entries','getUnitStatus$','_renderManagerService','@univerjs-pro/collaboration-client','off-line-icon_clip0_910_343','ACTIVE_UNIT_EVENT_CHANNEL','black','_memberService','collaboration-client.offline-data-not-saved','focused$','LICENSE_EXPORT_SIZE_EXCEEDED','IRenderManagerService','application/json','ITransformService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','subUnitId','drawWith','IDocClipboardService','DisposableCollection','IUIPartsService','_collaborationUIEventService','getActiveRange','deepClone','InsertRangeMoveDownCommandId','Disposable','_onCursorDelete','_instanceService','color','getViewport','handleIRemoveCol','univer-mr-2\x20univer-flex\x20univer-text-xl','UNIVER_DOC','addClipboardHook','RemoteUniscriptService','_messageService','collab-rect-range-','onPointerLeave$','whenReady','getOffsetConfig','APPLY_REVISION_CONFILICT','WebSocketService','_name','DesktopCollaborationStatusDisplayController','clipPath','_initStatusListener','transformSelections','TEXT_RANGE_LAYER_INDEX','_httpService','requireSession','Rect','name','getTypeOfUnitAdded$','_docTransformStateCacheService','dispose','_initCommandExecutedListener','CollaborationEvent','_ensureSubject','parse','white','EMAIL_VERIFY_CODE_MISMATCH','editingUnit','addHandlerCallback','bottom','measureText','WECHAT_HAS_BEEN_BOUND','SNAPSHOT_INVALID_SNAPSHOT','jsx','YUUMI_SUBSCRIPTION_NOT_FOUND','clearInterval','UNAUTHENTICATED','transformRemoteChangeset'];_0x59d6=function(){return _0x4aebe8;};return _0x59d6();}var At=Object['getOwnPropertyDescriptor'],yt=(_0x318887,_0xb40abd,_0x31cb9d,_0xf13e50)=>{const _0x4665a8=_0x1e9432;for(var _0x28655d=_0xf13e50>0x1?void 0x0:_0xf13e50?At(_0xb40abd,_0x31cb9d):_0xb40abd,_0x30ad82=_0x318887[_0x4665a8(0x1c4)]-0x1,_0x10914e;_0x30ad82>=0x0;_0x30ad82--)(_0x10914e=_0x318887[_0x30ad82])&&(_0x28655d=_0x10914e(_0x28655d)||_0x28655d);return _0x28655d;},y=(_0x4c8918,_0xc969e)=>(_0x1c12d3,_0x3c277e)=>_0xc969e(_0x1c12d3,_0x3c277e,_0x4c8918);let q=class extends a[_0x1e9432(0x2ab)]{constructor(_0x4080ee,_0x40176b,_0x5bdb97,_0x3e0a14,_0x306bb1,_0x343176){const _0xeceec=_0x1e9432;super(),this[_0xeceec(0x303)]=_0x4080ee,this['_localCacheService']=_0x40176b,this['_collaborationUIEventService']=_0x5bdb97,this[_0xeceec(0x2b5)]=_0x3e0a14,this['_notificationService']=_0x306bb1,this[_0xeceec(0xef)]=_0x343176,this[_0xeceec(0x1a6)](),this[_0xeceec(0x190)]();}[_0x1e9432(0x1a6)](){const _0x55b706=_0x1e9432;this['disposeWithMe'](this[_0x55b706(0x303)][_0x55b706(0x12a)](()=>{const _0x5cdca7=_0x55b706;if(this[_0x5cdca7(0xd7)][_0x5cdca7(0x1f0)][_0x5cdca7(0x229)])return this[_0x5cdca7(0xef)]['t'](_0x5cdca7(0x29b));}));}['_initEvent'](){const _0x289494=_0x1e9432;this['disposeWithMe'](this[_0x289494(0x2a7)][_0x289494(0x290)][_0x289494(0x259)](_0x4d916a=>{const _0x33eb38=_0x289494;_0x4d916a['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x33eb38(0x2b5)][_0x33eb38(0x1a8)]({'type':D['MessageType']['Warning'],'content':this[_0x33eb38(0xef)]['t'](_0x33eb38(0x1ce))}),_0x4d916a['id']===u[_0x33eb38(0xf6)]['CLOSE_ROOM']&&this[_0x33eb38(0x2b5)]['show']({'type':D[_0x33eb38(0x13d)][_0x33eb38(0x138)],'content':this[_0x33eb38(0xef)]['t'](_0x33eb38(0x1a3))}),_0x4d916a['id']===u[_0x33eb38(0xf6)][_0x33eb38(0x275)]&&this[_0x33eb38(0xed)][_0x33eb38(0x1a8)]({'title':this[_0x33eb38(0xef)]['t'](_0x33eb38(0x266)),'content':this[_0x33eb38(0xef)]['t'](_0x33eb38(0x283)),'type':_0x33eb38(0x1e8),'duration':0x0}),_0x4d916a['id']===u[_0x33eb38(0xf6)][_0x33eb38(0x2e8)]&&this['_messageService']['show']({'type':D[_0x33eb38(0x13d)][_0x33eb38(0x100)],'content':this[_0x33eb38(0xef)]['t'](_0x33eb38(0x1a3))+'('+_0x4d916a[_0x33eb38(0x338)]+')'}),_0x4d916a['id']===u[_0x33eb38(0xf6)][_0x33eb38(0x25b)]&&this['_messageService'][_0x33eb38(0x1a8)]({'type':D[_0x33eb38(0x13d)][_0x33eb38(0x138)],'content':this['_localeService']['t'](_0x4d916a[_0x33eb38(0x338)]||'')}),_0x4d916a['id']===u['CollaborationUIEventId'][_0x33eb38(0xf9)]&&this[_0x33eb38(0x2b5)][_0x33eb38(0x1a8)]({'type':D['MessageType'][_0x33eb38(0x138)],'content':this[_0x33eb38(0xef)]['t'](_0x33eb38(0x126))}),_0x4d916a['id']===u[_0x33eb38(0xf6)][_0x33eb38(0xd0)]&&this[_0x33eb38(0x2b5)]['show']({'type':D[_0x33eb38(0x13d)][_0x33eb38(0x100)],'content':this[_0x33eb38(0xef)]['t']('session.connection-failed')}),_0x4d916a['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x33eb38(0x2b5)]['show']({'type':D[_0x33eb38(0x13d)][_0x33eb38(0x100)],'content':this['_localeService']['t'](_0x33eb38(0x192))});}));}};q=yt([y(0x0,O[_0x1e9432(0x14e)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x1e9432(0x31d)]),y(0x4,O[_0x1e9432(0x270)]),y(0x5,a[_0x1e9432(0x205)](a[_0x1e9432(0x305)]))],q);const $t=_0x1e9432(0xe2),Ue={},Ee=a[_0x1e9432(0x1a2)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],Bt=(_0x1afe1a,_0x1efef0,_0x3644cc,_0x3b9687)=>{const _0x3a9b58=_0x1e9432;for(var _0x135a2f=_0x3b9687>0x1?void 0x0:_0x3b9687?xt(_0x1efef0,_0x3644cc):_0x1efef0,_0xb522ab=_0x1afe1a[_0x3a9b58(0x1c4)]-0x1,_0x6375ba;_0xb522ab>=0x0;_0xb522ab--)(_0x6375ba=_0x1afe1a[_0xb522ab])&&(_0x135a2f=_0x6375ba(_0x135a2f)||_0x135a2f);return _0x135a2f;},F=(_0x3af8f6,_0x422b36)=>(_0xd1ee80,_0x2be5d2)=>_0x422b36(_0xd1ee80,_0x2be5d2,_0x3af8f6);exports[_0x1e9432(0x213)]=class extends a[_0x1e9432(0x30f)]{constructor(_0x3fb801,_0x5978d1,_0x306f29,_0x50ee2e,_0x5ad576){const _0x3db672=_0x1e9432;super(),this[_0x3db672(0x23c)]=_0x3fb801,this[_0x3db672(0x2e9)]=_0x5978d1,this[_0x3db672(0xdf)]=_0x306f29,this[_0x3db672(0x308)]=_0x50ee2e,_0x5ad576?_0x5ad576==null||_0x5ad576[_0x3db672(0x2b8)]()[_0x3db672(0x17f)](()=>this[_0x3db672(0x1f2)]()):(this[_0x3db672(0x2e9)]['debug'](_0x3db672(0x13c),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x3db672(0x1f2)]());}async[_0x1e9432(0x1f2)](){const _0x14ebfe=_0x1e9432,_0x13618c=this[_0x14ebfe(0x23c)][_0x14ebfe(0x135)]('unit'),_0x99ef01=this[_0x14ebfe(0x23c)][_0x14ebfe(0x135)](_0x14ebfe(0x23b)),_0x29147c=this[_0x14ebfe(0x23c)][_0x14ebfe(0x135)](_0x14ebfe(0x1b4));if(!_0x13618c||!_0x99ef01){this[_0x14ebfe(0x2e9)][_0x14ebfe(0x326)](_0x14ebfe(0x13c),_0x14ebfe(0x151));return;}const _0x38ca16=await this[_0x14ebfe(0x308)][_0x14ebfe(0x180)](_0x13618c,Number(_0x99ef01),_0x29147c);_0x38ca16&&_0x38ca16 instanceof a[_0x14ebfe(0x167)]&&this[_0x14ebfe(0xf3)](_0x38ca16);}async['_setupSubUnitSync'](_0x4ebbb8){const _0x4b12cb=_0x1e9432;await this[_0x4b12cb(0x159)](_0x4ebbb8),_0x4ebbb8[_0x4b12cb(0x2db)][_0x4b12cb(0x12b)](d[_0x4b12cb(0x1fb)](this[_0x4b12cb(0x269)]))[_0x4b12cb(0x259)](_0x17d404=>{const _0x2f97b8=_0x4b12cb;_0x17d404&&this[_0x2f97b8(0x158)](_0x17d404);}),this[_0x4b12cb(0x23c)][_0x4b12cb(0x1b6)][_0x4b12cb(0x12b)](d[_0x4b12cb(0x1fb)](this['dispose$']))['subscribe'](()=>this[_0x4b12cb(0x159)](_0x4ebbb8));}[_0x1e9432(0x158)](_0x3640ac,_0x10df6e=!0x1){const _0x2a847e=_0x1e9432,_0x27df19=this[_0x2a847e(0x23c)][_0x2a847e(0x135)](_0x2a847e(0x1b4));_0x3640ac[_0x2a847e(0x10f)]()!==_0x27df19&&this['_urlService'][_0x2a847e(0x144)](_0x2a847e(0x1b4),_0x3640ac['getSheetId'](),_0x10df6e);}async['_updateSubUnitFromURLParams'](_0x18596e){const _0x5bcaec=_0x1e9432;var _0x4ba819;const _0x58c654=this[_0x5bcaec(0x23c)]['getParam']('subunit');if(!_0x58c654||!_0x18596e[_0x5bcaec(0x1d9)](_0x58c654)){const _0x41c8f4=_0x18596e['getUnhiddenWorksheets']()[0x0],_0x5ea78e=_0x18596e['getSheetBySheetId'](_0x41c8f4);if(!_0x5ea78e)return;this[_0x5bcaec(0x158)](_0x5ea78e,!0x0),await this[_0x5bcaec(0xdf)][_0x5bcaec(0x289)](g[_0x5bcaec(0x26f)]['id'],{'unitId':_0x18596e[_0x5bcaec(0x168)](),'subUnitId':_0x41c8f4});return;}((_0x4ba819=_0x18596e[_0x5bcaec(0x342)]())==null?void 0x0:_0x4ba819[_0x5bcaec(0x10f)]())!==_0x58c654&&await this[_0x5bcaec(0xdf)][_0x5bcaec(0x289)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x18596e[_0x5bcaec(0x168)](),'subUnitId':_0x58c654});}},exports[_0x1e9432(0x213)]=Bt([F(0x0,Ee),F(0x1,a[_0x1e9432(0x27e)]),F(0x2,a[_0x1e9432(0x25c)]),F(0x3,a['Inject'](u[_0x1e9432(0xfd)])),F(0x4,a[_0x1e9432(0x2dc)](Ke[_0x1e9432(0xf5)]))],exports[_0x1e9432(0x213)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x10baa3,_0x223890,_0x3d1469,_0x585c60)=>{const _0x3b78a4=_0x1e9432;for(var _0x14558a=_0x585c60>0x1?void 0x0:_0x585c60?jt(_0x223890,_0x3d1469):_0x223890,_0x39bc57=_0x10baa3[_0x3b78a4(0x1c4)]-0x1,_0x5f32d9;_0x39bc57>=0x0;_0x39bc57--)(_0x5f32d9=_0x10baa3[_0x39bc57])&&(_0x14558a=_0x5f32d9(_0x14558a)||_0x14558a);return _0x14558a;},ce=(_0x4ec721,_0x5091cf)=>(_0x4a0579,_0x22e397)=>_0x5091cf(_0x4a0579,_0x22e397,_0x4ec721);let z=class{constructor(_0x1658ba,_0x237ebf,_0x20241d){const _0x13aae7=_0x1e9432;this[_0x13aae7(0x131)]=_0x1658ba,this[_0x13aae7(0x1c3)]=_0x237ebf,this['_renderManagerService']=_0x20241d;}[_0x1e9432(0x1da)](_0x226b7f){const _0x2f9424=_0x1e9432;this[_0x2f9424(0x1b8)](_0x226b7f),this[_0x2f9424(0x246)](_0x226b7f);}[_0x1e9432(0x2d9)](_0x65a4c6){const _0x58af2b=_0x1e9432,{unitID:_0x1b496b}=_0x65a4c6,_0x32ee68=this[_0x58af2b(0x295)]['getRenderById'](_0x1b496b)['with'](E[_0x58af2b(0xc4)]),{redoCache:_0x109047}=_0x32ee68[_0x58af2b(0x1bd)]();if(_0x109047[_0x58af2b(0x1c4)]===0x0)return _0x65a4c6;let _0x4cd1fa=a[_0x58af2b(0xd9)][_0x58af2b(0x2a9)](_0x65a4c6[_0x58af2b(0x21a)][0x0]);for(let _0x295311=0x0;_0x295311<_0x109047[_0x58af2b(0x1c4)];_0x295311++){const _0x2a6cd3={'id':'doc.mutation.rich-text-editing','params':{..._0x109047[_0x295311]}},_0xf8c229=this[_0x58af2b(0x1c3)][_0x58af2b(0x2f5)](_0x4cd1fa,_0x2a6cd3,!0x1);if(m[_0x58af2b(0x2f1)](_0xf8c229))throw _0xf8c229[_0x58af2b(0x1e8)];_0x4cd1fa=_0xf8c229['m1Prime'];}return{...a[_0x58af2b(0xd9)][_0x58af2b(0x2a9)](_0x65a4c6),'mutations':[_0x4cd1fa]};}[_0x1e9432(0x1b8)](_0x44f004){const _0x4686b2=_0x1e9432,{unitID:_0x20e7c8}=_0x44f004,_0x1a047c=this[_0x4686b2(0x295)][_0x4686b2(0x17c)](_0x20e7c8)['with'](E[_0x4686b2(0xc4)]),{undoCache:_0x78a6f9,redoCache:_0x2707df}=_0x1a047c['getUndoRedoMutationParamsCache']();if(_0x78a6f9[_0x4686b2(0x1c4)]===0x0||_0x2707df[_0x4686b2(0x1c4)]===0x0)return;const _0x53074f=[],_0x3a0480=[];let _0x55ae9c=a[_0x4686b2(0xd9)][_0x4686b2(0x2a9)](_0x44f004[_0x4686b2(0x21a)][0x0]),_0x3da5fe=a[_0x4686b2(0xd9)]['deepClone'](_0x44f004[_0x4686b2(0x21a)][0x0]);for(let _0x557956=_0x78a6f9[_0x4686b2(0x1c4)]-0x1;_0x557956>=0x0;_0x557956--){const _0x3e2af2={'id':_0x4686b2(0xd6),'params':{..._0x78a6f9[_0x557956]}},_0x51d070={'id':'doc.mutation.rich-text-editing','params':{..._0x2707df[_0x557956]}},_0x596d46=this[_0x4686b2(0x1c3)]['transformMutation'](_0x55ae9c,_0x3e2af2,!0x1),_0x50eeb5=this[_0x4686b2(0x1c3)][_0x4686b2(0x2f5)](_0x3da5fe,_0x51d070,!0x1);if(m[_0x4686b2(0x2f1)](_0x596d46))throw _0x596d46[_0x4686b2(0x1e8)];if(m[_0x4686b2(0x2f1)](_0x50eeb5))throw _0x50eeb5[_0x4686b2(0x1e8)];_0x53074f[_0x4686b2(0x164)](_0x596d46[_0x4686b2(0x2fb)][_0x4686b2(0x30c)]),_0x3a0480['unshift'](_0x50eeb5[_0x4686b2(0x2fb)][_0x4686b2(0x30c)]),_0x55ae9c=_0x596d46[_0x4686b2(0x120)],_0x3da5fe=_0x50eeb5['m1Prime'];}_0x1a047c['setUndoRedoMutationParamsCache']({'undoCache':_0x53074f,'redoCache':_0x3a0480});}[_0x1e9432(0x246)](_0x40654b){const _0x5c046f=_0x1e9432,{unitID:_0x2b8e2d}=_0x40654b,_0x282d24=this[_0x5c046f(0x295)][_0x5c046f(0x17c)](_0x2b8e2d)['with'](E['DocIMEInputManagerService']),_0x4c41aa=_0x282d24[_0x5c046f(0x2a8)]();if(_0x4c41aa==null)return;const _0xefe0df=[{'id':_0x5c046f(0xd6),'params':{'unitId':_0x40654b[_0x5c046f(0xc1)],'actions':null,'textRanges':[_0x4c41aa]}}],_0x15f9bd=this[_0x5c046f(0x1c3)][_0x5c046f(0xbe)](_0x40654b,_0xefe0df);if(!m['isTransformMutationsWithChangesetSuccess'](_0x15f9bd))throw _0x15f9bd[_0x5c046f(0x1e8)];const _0x19b44f=_0x15f9bd[_0x5c046f(0x2fb)][0x0][_0x5c046f(0x30c)]['textRanges'];Array[_0x5c046f(0x17a)](_0x19b44f)&&_0x19b44f[_0x5c046f(0x1c4)]&&_0x282d24[_0x5c046f(0x313)](_0x19b44f[0x0]);}};z=kt([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m[_0x1e9432(0x2a0)]),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0x1e9432(0x18e)],Ht=(_0x1def35,_0x489f76,_0x320558,_0x4ba66c)=>{const _0x3a5854=_0x1e9432;for(var _0x163100=_0x4ba66c>0x1?void 0x0:_0x4ba66c?Ft(_0x489f76,_0x320558):_0x489f76,_0x42c248=_0x1def35[_0x3a5854(0x1c4)]-0x1,_0x50f474;_0x42c248>=0x0;_0x42c248--)(_0x50f474=_0x1def35[_0x42c248])&&(_0x163100=_0x50f474(_0x163100)||_0x163100);return _0x163100;},le=(_0x2b9280,_0x5b1703)=>(_0x5200e8,_0x2d641d)=>_0x5b1703(_0x5200e8,_0x2d641d,_0x2b9280);let J=class{constructor(_0x50e9ec,_0x241f2f,_0x231e88){const _0x4dbb15=_0x1e9432;this[_0x4dbb15(0x131)]=_0x50e9ec,this[_0x4dbb15(0x1c3)]=_0x241f2f,this['_docStateChangeManagerService']=_0x231e88;}[_0x1e9432(0x200)](_0x60fa44){const _0x41ca4a=_0x1e9432;this[_0x41ca4a(0xdd)](_0x60fa44);}['transformRemoteChangeset'](_0x45532f){const _0x5298a3=_0x1e9432,{unitID:_0x58810f}=_0x45532f,{collaboration:_0x4dbb14}=this[_0x5298a3(0x1dc)]['getStateCache'](_0x58810f);if(_0x4dbb14[_0x5298a3(0x1c4)]===0x0)return _0x45532f;let _0x4a3de8=a[_0x5298a3(0xd9)]['deepClone'](_0x45532f[_0x5298a3(0x21a)][0x0]);for(let _0x1db0f3=0x0;_0x1db0f3<_0x4dbb14[_0x5298a3(0x1c4)];_0x1db0f3++){const _0x2e1a98={'id':_0x5298a3(0xd6),'params':{'unitId':_0x4dbb14[_0x1db0f3][_0x5298a3(0x202)],..._0x4dbb14[_0x1db0f3][_0x5298a3(0x211)]}},_0xb82b0b=this[_0x5298a3(0x1c3)]['transformMutation'](_0x4a3de8,_0x2e1a98,!0x1);if(m[_0x5298a3(0x2f1)](_0xb82b0b))throw _0xb82b0b['error'];_0x4a3de8=_0xb82b0b[_0x5298a3(0x120)];}return{...a[_0x5298a3(0xd9)][_0x5298a3(0x2a9)](_0x45532f),'mutations':[_0x4a3de8]};}['_transformHistoryAndStateStack'](_0xb504bc){const _0x392aab=_0x1e9432,{unitID:_0x56fc69}=_0xb504bc,{history:_0x33b604,collaboration:_0x5ae7aa}=this[_0x392aab(0x1dc)][_0x392aab(0x1a4)](_0x56fc69);if(_0x33b604[_0x392aab(0x1c4)]===0x0&&_0x5ae7aa[_0x392aab(0x1c4)]===0x0)return;const _0x354b9e=[],_0x2ab9b8=[];let _0x12e2c2=a[_0x392aab(0xd9)][_0x392aab(0x2a9)](_0xb504bc[_0x392aab(0x21a)][0x0]),_0x48907d=a[_0x392aab(0xd9)][_0x392aab(0x2a9)](_0xb504bc[_0x392aab(0x21a)][0x0]);for(let _0x162976=_0x33b604[_0x392aab(0x1c4)]-0x1;_0x162976>=0x0;_0x162976--){const _0x17c949={'id':_0x392aab(0xd6),'params':{'unitId':_0x33b604[_0x162976][_0x392aab(0x202)],..._0x33b604[_0x162976]['undoState']}},_0x568e15={'id':_0x392aab(0xd6),'params':{'unitId':_0x33b604[_0x162976][_0x392aab(0x202)],..._0x33b604[_0x162976][_0x392aab(0x211)]}},_0x1651d2=this[_0x392aab(0x1c3)]['transformMutation'](_0x12e2c2,_0x17c949,!0x1),_0x5ce4a1=this[_0x392aab(0x1c3)][_0x392aab(0x2f5)](_0x48907d,_0x568e15,!0x1);if(m[_0x392aab(0x2f1)](_0x1651d2))throw _0x1651d2[_0x392aab(0x1e8)];if(m['isTransformMutationFailure'](_0x5ce4a1))throw _0x5ce4a1[_0x392aab(0x1e8)];_0x354b9e['unshift']({..._0x33b604[_0x162976],'undoState':_0x1651d2[_0x392aab(0x2fb)][_0x392aab(0x30c)],'redoState':_0x5ce4a1[_0x392aab(0x2fb)]['params']}),_0x12e2c2=_0x1651d2['m1Prime'],_0x48907d=_0x5ce4a1['m1Prime'];}_0x12e2c2=a[_0x392aab(0xd9)]['deepClone'](_0xb504bc[_0x392aab(0x21a)][0x0]),_0x48907d=a[_0x392aab(0xd9)][_0x392aab(0x2a9)](_0xb504bc[_0x392aab(0x21a)][0x0]);for(let _0x436cdf=_0x5ae7aa[_0x392aab(0x1c4)]-0x1;_0x436cdf>=0x0;_0x436cdf--){const _0x371e02={'id':_0x392aab(0xd6),'params':{'unitId':_0x5ae7aa[_0x436cdf][_0x392aab(0x202)],..._0x5ae7aa[_0x436cdf][_0x392aab(0x21b)]}},_0x51982a={'id':_0x392aab(0xd6),'params':{'unitId':_0x5ae7aa[_0x436cdf][_0x392aab(0x202)],..._0x5ae7aa[_0x436cdf][_0x392aab(0x211)]}},_0x584b36=this[_0x392aab(0x1c3)][_0x392aab(0x2f5)](_0x12e2c2,_0x371e02,!0x1),_0x52324d=this[_0x392aab(0x1c3)][_0x392aab(0x2f5)](_0x48907d,_0x51982a,!0x1);if(m[_0x392aab(0x2f1)](_0x584b36))throw _0x584b36[_0x392aab(0x1e8)];if(m['isTransformMutationFailure'](_0x52324d))throw _0x52324d[_0x392aab(0x1e8)];_0x2ab9b8['unshift']({..._0x5ae7aa[_0x436cdf],'undoState':_0x584b36[_0x392aab(0x2fb)]['params'],'redoState':_0x52324d[_0x392aab(0x2fb)][_0x392aab(0x30c)]}),_0x12e2c2=_0x584b36['m1Prime'],_0x48907d=_0x52324d[_0x392aab(0x120)];}this[_0x392aab(0x1dc)][_0x392aab(0x274)](_0x56fc69,{'history':_0x354b9e,'collaboration':_0x2ab9b8});}};J=Ht([le(0x0,a[_0x1e9432(0x205)](a[_0x1e9432(0x1bb)])),le(0x1,m[_0x1e9432(0x2a0)]),le(0x2,a[_0x1e9432(0x205)](E[_0x1e9432(0x17b)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x25cfe0,_0x198351,_0x382ffa,_0x2248b2)=>{for(var _0x449b57=_0x2248b2>0x1?void 0x0:_0x2248b2?Yt(_0x198351,_0x382ffa):_0x198351,_0x34fd1d=_0x25cfe0['length']-0x1,_0x201e7b;_0x34fd1d>=0x0;_0x34fd1d--)(_0x201e7b=_0x25cfe0[_0x34fd1d])&&(_0x449b57=_0x201e7b(_0x449b57)||_0x449b57);return _0x449b57;},Ne=(_0x354608,_0x58e117)=>(_0x1b7d79,_0xbd610f)=>_0x58e117(_0x1b7d79,_0xbd610f,_0x354608);let Z=class{constructor(_0x306973,_0x1f8d40){const _0x483204=_0x1e9432;this['_injector']=_0x306973,this[_0x483204(0x1c3)]=_0x1f8d40;}[_0x1e9432(0x2c0)](_0x4e44a9){const _0x6f9848=_0x1e9432;var _0x391c9d;const _0x144ba1=this[_0x6f9848(0x131)]['get'](Y['DocSelectionManagerService']),_0x4737d2=(_0x391c9d=_0x144ba1[_0x6f9848(0x1ac)]())!=null?_0x391c9d:[];if(_0x4737d2['length']===0x0)return;const _0x4e8b3e=_0x4e44a9[_0x6f9848(0xc1)],_0x50fd2a=[{'id':_0x6f9848(0xd6),'params':{'unitId':_0x4e8b3e,'actions':null,'textRanges':_0x4737d2}}],_0x3623dd=this[_0x6f9848(0x1c3)][_0x6f9848(0xbe)](_0x4e44a9,_0x50fd2a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3623dd))throw _0x3623dd['error'];const _0x488cfa=_0x3623dd[_0x6f9848(0x2fb)][0x0][_0x6f9848(0x30c)][_0x6f9848(0x130)];Array['isArray'](_0x488cfa)&&_0x488cfa[_0x6f9848(0x1c4)]&&_0x144ba1['replaceDocRanges'](_0x488cfa,{'unitId':_0x4e8b3e,'subUnitId':_0x4e8b3e},!0x1);}};Z=Wt([Ne(0x0,a[_0x1e9432(0x205)](a['Injector'])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x1e9432(0x18e)],Xt=(_0x3cd799,_0x33fcd5,_0x412515,_0x53ad28)=>{const _0x4bdcf7=_0x1e9432;for(var _0x1915da=_0x53ad28>0x1?void 0x0:_0x53ad28?Vt(_0x33fcd5,_0x412515):_0x33fcd5,_0x55f8fb=_0x3cd799[_0x4bdcf7(0x1c4)]-0x1,_0x397e2c;_0x55f8fb>=0x0;_0x55f8fb--)(_0x397e2c=_0x3cd799[_0x55f8fb])&&(_0x1915da=_0x397e2c(_0x1915da)||_0x1915da);return _0x1915da;},N=(_0x110431,_0x5e7634)=>(_0x56f305,_0x519587)=>_0x5e7634(_0x56f305,_0x519587,_0x110431);let Q=class extends a['Disposable']{constructor(_0x4cdf5d,_0x20cbfc,_0x5bfede,_0x47471e,_0x1f86cd,_0x774066,_0x32e1ab,_0x190993){const _0x357d12=_0x1e9432;super(),h(this,_0x357d12(0x215),new d[(_0x357d12(0x155))](u[_0x357d12(0x1c9)][_0x357d12(0xda)])),(this['_docStateChangeManagerService']=_0x4cdf5d,this[_0x357d12(0x201)]=_0x20cbfc,this[_0x357d12(0x1f9)]=_0x5bfede,this[_0x357d12(0x2c7)]=_0x47471e,this[_0x357d12(0x34b)]=_0x1f86cd,this[_0x357d12(0xdb)]=_0x774066,this['_messageService']=_0x32e1ab,this[_0x357d12(0xef)]=_0x190993,this[_0x357d12(0xe0)]());}[_0x1e9432(0xe0)](){const _0x1de122=_0x1e9432;this[_0x1de122(0x21d)](this[_0x1de122(0x201)][_0x1de122(0xec)][_0x1de122(0x259)](_0x5c46b2=>{const _0x391059=_0x1de122,_0x397a9f=this['_docStateChangeManagerService'][_0x391059(0x25f)][_0x391059(0x259)](_0x270a9a=>{const _0x33ddba=_0x391059;if(_0x270a9a==null)return;const {unitId:_0x5a86b1,redoState:_0x525233,commandId:_0x957c76}=_0x270a9a;if(_0x5a86b1!==_0x5c46b2[_0x33ddba(0xc1)])return;const _0x1ebe89={'id':_0x957c76,'type':a['CommandType'][_0x33ddba(0xc6)],'params':{'unitId':_0x5a86b1,'actions':_0x525233['actions'],'textRanges':null}};_0x5c46b2[_0x33ddba(0x2e4)](_0x1ebe89);});if(_0x5c46b2[_0x391059(0x21d)](_0x397a9f),_0x5c46b2 instanceof u[_0x391059(0x1d2)]){const _0x54d244={'onTransformIME':_0xf2e637=>this[_0x391059(0x1f9)][_0x391059(0x1da)](_0xf2e637),'onTransformState':_0x52ab44=>this[_0x391059(0x2c7)][_0x391059(0x200)](_0x52ab44),'onTransformSelections':_0x50d980=>this[_0x391059(0x34b)][_0x391059(0x2c0)](_0x50d980),'onSyncEditingCollabCursor':_0x308630=>this['_docSyncEditingCollabCursorService'][_0x391059(0x2da)](_0x308630),'onTransformRemoteChangesetByIMECache':_0x4a6764=>this[_0x391059(0x1f9)][_0x391059(0x2d9)](_0x4a6764),'onTransformRemoteChangesetByStateCache':_0x55c013=>this[_0x391059(0x2c7)][_0x391059(0x2d9)](_0x55c013)};_0x5c46b2[_0x391059(0x2d0)](_0x54d244);}}));}};Q=Xt([N(0x0,a[_0x1e9432(0x205)](E[_0x1e9432(0x17b)])),N(0x1,a[_0x1e9432(0x205)](u[_0x1e9432(0x322)])),N(0x2,a[_0x1e9432(0x205)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x1e9432(0x205)](Z)),N(0x5,a[_0x1e9432(0x205)](Ce)),N(0x6,O['IMessageService']),N(0x7,a[_0x1e9432(0x205)](a[_0x1e9432(0x305)]))],Q);var Gt=Object[_0x1e9432(0x18e)],Kt=(_0x35369c,_0xbd33b7,_0x32e124,_0x54ae3c)=>{const _0x47a376=_0x1e9432;for(var _0x475280=_0x54ae3c>0x1?void 0x0:_0x54ae3c?Gt(_0xbd33b7,_0x32e124):_0xbd33b7,_0x5a8b46=_0x35369c[_0x47a376(0x1c4)]-0x1,_0x3811d9;_0x5a8b46>=0x0;_0x5a8b46--)(_0x3811d9=_0x35369c[_0x5a8b46])&&(_0x475280=_0x3811d9(_0x475280)||_0x475280);return _0x475280;},_e=(_0x472aae,_0x69e8e7)=>(_0x2c0428,_0x2f65c9)=>_0x69e8e7(_0x2c0428,_0x2f65c9,_0x472aae);let ge=class extends a[_0x1e9432(0x2ab)]{constructor(_0x15f39d,_0x55d47c,_0x1d64ed){const _0x520b0a=_0x1e9432;super(),h(this,_0x520b0a(0x114),new Map()),h(this,_0x520b0a(0x260),new Map()),h(this,'_disabled',!0x1),(this[_0x520b0a(0x318)]=_0x15f39d,this[_0x520b0a(0x1ab)]=_0x55d47c,this[_0x520b0a(0xc7)]=_0x1d64ed);}['disableLocalCache'](){const _0x47783e=_0x1e9432;this[_0x47783e(0x280)]=!0x0;}['enableLocalCache'](){const _0x2f8b14=_0x1e9432;this[_0x2f8b14(0x280)]=!0x1;}get[_0x1e9432(0x1f0)](){const _0x7adf43=_0x1e9432;return this[_0x7adf43(0x260)];}['dispose'](){const _0x28369b=_0x1e9432;this['exhaustSavingTask']()[_0x28369b(0x17f)](()=>super[_0x28369b(0x2c8)]());}async[_0x1e9432(0x132)](_0x444b9a){const _0x1bad28=_0x1e9432;return this[_0x1bad28(0x280)]?null:this[_0x1bad28(0x1ab)][_0x1bad28(0x33e)](u[_0x1bad28(0x24b)](_0x444b9a));}async[_0x1e9432(0x276)](_0x1d0092,_0xa7e3a8){const _0x3b9e42=_0x1e9432;return!!this['_localStorageService'][_0x3b9e42(0x33f)](_0x1d0092,_0xa7e3a8);}[_0x1e9432(0x28a)](_0x487ec1,_0x188300,_0x1c6af9,_0x102fd6){const _0x2c720b=_0x1e9432,_0x220366=this['_revisionService'][_0x2c720b(0x184)](_0x487ec1);this[_0x2c720b(0x114)]['set'](_0x487ec1,{'unitID':_0x487ec1,'type':_0x188300,'awaitingChangeset':_0x1c6af9,'mutations':_0x102fd6,'rev':_0x220366}),this['_saveTaskMap'][_0x2c720b(0x312)](_0x487ec1)||this[_0x2c720b(0x1bf)](_0x487ec1);}[_0x1e9432(0x1bf)](_0xd7e066){const _0x54eec0=_0x1e9432,_0x5b8c2a=this[_0x54eec0(0x227)]();_0x5b8c2a===0x0?this[_0x54eec0(0x284)](_0xd7e066):this['_saveTaskMap'][_0x54eec0(0x12f)](_0xd7e066,setTimeout(()=>this[_0x54eec0(0x284)](_0xd7e066),_0x5b8c2a));}[_0x1e9432(0x227)](){const _0x3c827f=_0x1e9432;var _0x271eb7;return(_0x271eb7=this[_0x3c827f(0x318)][_0x3c827f(0x31a)](u[_0x3c827f(0x1c7)]))!=null?_0x271eb7:u['LOCAL_CACHE_INTERVAL'];}[_0x1e9432(0x284)](_0x241431){const _0x5dff11=_0x1e9432,_0x3e6c84=this[_0x5dff11(0x260)][_0x5dff11(0x2ff)](_0x241431);return _0x3e6c84!==void 0x0&&window['clearTimeout'](_0x3e6c84),this[_0x5dff11(0x1ab)]['setItem'](u[_0x5dff11(0x24b)](_0x241431),this[_0x5dff11(0x114)][_0x5dff11(0x2ff)](_0x241431))[_0x5dff11(0x17f)](()=>this['_saveTaskMap']['delete'](_0x241431));}async['exhaustSavingTask'](){const _0xdc542f=_0x1e9432,_0x244c8c=[];this[_0xdc542f(0x260)]['forEach']((_0x51cba4,_0x5c901d)=>{const _0x40bed0=_0xdc542f;window[_0x40bed0(0x1e4)](_0x51cba4),_0x244c8c[_0x40bed0(0x257)](this[_0x40bed0(0x284)](_0x5c901d)['then'](()=>{this['_saveTaskMap']['delete'](_0x5c901d);}));}),await Promise[_0xdc542f(0x25e)](_0x244c8c);}};ge=Kt([_e(0x0,a[_0x1e9432(0x1e5)]),_e(0x1,a[_0x1e9432(0x141)]),_e(0x2,a[_0x1e9432(0x205)](m[_0x1e9432(0x1b1)]))],ge);class Be extends a[_0x1e9432(0x30f)]{constructor(){const _0x2f0e99=_0x1e9432;super(),h(this,'urlChange$'),this[_0x2f0e99(0x1b6)]=d[_0x2f0e99(0x228)](window,_0x2f0e99(0x332))[_0x2f0e99(0x12b)](d[_0x2f0e99(0x1fb)](this[_0x2f0e99(0x269)]),d['shareReplay'](0x1),d[_0x2f0e99(0x217)](void 0x0));}[_0x1e9432(0x144)](_0x4fd512,_0x2e7008,_0x57be68=!0x1){const _0x2c494f=_0x1e9432,_0x14cde7=new URL(window[_0x2c494f(0x194)][_0x2c494f(0x281)]);_0x14cde7['searchParams'][_0x2c494f(0x12f)](_0x4fd512,_0x2e7008),_0x57be68?window['history']['replaceState']('','',_0x14cde7['toString']()):window['history']['pushState']('','',_0x14cde7[_0x2c494f(0x166)]());}['removeParam'](_0x3e2e56,_0x396e52=!0x1){const _0x51da1a=_0x1e9432,_0x282e69=new URL(window['location'][_0x51da1a(0x281)]);_0x282e69['searchParams'][_0x51da1a(0xe6)](_0x3e2e56),_0x396e52?window[_0x51da1a(0x111)][_0x51da1a(0x327)]('','',_0x282e69[_0x51da1a(0x166)]()):window[_0x51da1a(0x111)][_0x51da1a(0x1a9)]('','',_0x282e69[_0x51da1a(0x166)]());}[_0x1e9432(0x135)](_0x25583b){const _0x2ae8ed=_0x1e9432;var _0x45819c;return(_0x45819c=new URL(window[_0x2ae8ed(0x194)][_0x2ae8ed(0x281)])[_0x2ae8ed(0x16e)][_0x2ae8ed(0x2ff)](_0x25583b))!=null?_0x45819c:void 0x0;}}var qt=Object[_0x1e9432(0x143)],zt=Object[_0x1e9432(0x18e)],Jt=(_0x268f5c,_0x5c1e14,_0xd62a0d)=>_0x5c1e14 in _0x268f5c?qt(_0x268f5c,_0x5c1e14,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd62a0d}):_0x268f5c[_0x5c1e14]=_0xd62a0d,Zt=(_0x217a2d,_0x1c1b1c,_0xc7fa76,_0x2d1668)=>{const _0x28b37f=_0x1e9432;for(var _0x324a58=_0x2d1668>0x1?void 0x0:_0x2d1668?zt(_0x1c1b1c,_0xc7fa76):_0x1c1b1c,_0x2fe2eb=_0x217a2d[_0x28b37f(0x1c4)]-0x1,_0x5bd74e;_0x2fe2eb>=0x0;_0x2fe2eb--)(_0x5bd74e=_0x217a2d[_0x2fe2eb])&&(_0x324a58=_0x5bd74e(_0x324a58)||_0x324a58);return _0x324a58;},he=(_0x441fbb,_0x32c572)=>(_0x92ef82,_0x2655a3)=>_0x32c572(_0x92ef82,_0x2655a3,_0x441fbb),Qt=(_0x257a68,_0xa61067,_0x519ec7)=>Jt(_0x257a68,_0xa61067+'',_0x519ec7);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x1e9432(0x324)]=class extends a['Plugin']{constructor(_0x1e1002=Ue,_0xa2c78d,_0x1b2f16,_0x38e9d1){const _0x589fe5=_0x1e9432;super(),this[_0x589fe5(0x34a)]=_0x1e1002,this[_0x589fe5(0x295)]=_0xa2c78d,this[_0x589fe5(0x131)]=_0x1b2f16,this[_0x589fe5(0x318)]=_0x38e9d1;const {..._0x20a2e4}=a['merge']({},Ue,this[_0x589fe5(0x34a)]);this[_0x589fe5(0x318)][_0x589fe5(0x344)]($t,_0x20a2e4);}['onStarting'](){const _0x25521c=_0x1e9432;this[_0x25521c(0x288)](),this['_initDependencies']();}[_0x1e9432(0x1d3)](){const _0x95087a=_0x1e9432;this[_0x95087a(0x152)]();}[_0x1e9432(0x288)](){const _0x28fb16=_0x1e9432;var _0x408411;const _0x3950aa=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x28fb16(0x179)],{'useClass':G[_0x28fb16(0x2bb)]}],[u[_0x28fb16(0x248)],{'useClass':ge}],[exports[_0x28fb16(0x2bd)]],[Q],[q],[x],[de],[exports[_0x28fb16(0x213)]]];a[_0x28fb16(0x2eb)](this[_0x28fb16(0x131)],a[_0x28fb16(0x15b)](_0x3950aa,(_0x408411=this['_config'])==null?void 0x0:_0x408411[_0x28fb16(0x247)]));}[_0x1e9432(0x152)](){const _0x21e433=_0x1e9432;this[_0x21e433(0x21d)](this[_0x21e433(0x295)][_0x21e433(0x323)](a[_0x21e433(0x1a1)][_0x21e433(0x2b2)],[fe])),this[_0x21e433(0x21d)](this[_0x21e433(0x295)][_0x21e433(0x323)](a[_0x21e433(0x1a1)][_0x21e433(0x210)],[ve]));}[_0x1e9432(0xd3)](){const _0x318654=_0x1e9432;a[_0x318654(0x25d)](this[_0x318654(0x131)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x318654(0x213)]]]);}},Qt(exports[_0x1e9432(0x324)],_0x1e9432(0x147),es),exports[_0x1e9432(0x324)]=Zt([a[_0x1e9432(0xeb)](u[_0x1e9432(0x1cb)]),he(0x1,p[_0x1e9432(0x29e)]),he(0x2,a['Inject'](a[_0x1e9432(0x1bb)])),he(0x3,a[_0x1e9432(0x1e5)])],exports[_0x1e9432(0x324)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x4675b1,_0x31f574,_0x1e71fe,_0x171e92)=>{const _0x47d78f=_0x1e9432;for(var _0x457b05=_0x171e92>0x1?void 0x0:_0x171e92?ts(_0x31f574,_0x1e71fe):_0x31f574,_0x5d7906=_0x4675b1[_0x47d78f(0x1c4)]-0x1,_0x3ecba2;_0x5d7906>=0x0;_0x5d7906--)(_0x3ecba2=_0x4675b1[_0x5d7906])&&(_0x457b05=_0x3ecba2(_0x457b05)||_0x457b05);return _0x457b05;},H=(_0x38b50c,_0x34e835)=>(_0x3df8c4,_0x713ab0)=>_0x34e835(_0x3df8c4,_0x713ab0,_0x38b50c);exports[_0x1e9432(0x22d)]=class extends u[_0x1e9432(0x12d)]{constructor(_0x5e0cdb,_0x3d5359,_0x2fdef7,_0x34d722,_0x47bb51){super(_0x5e0cdb,_0x3d5359,_0x2fdef7,_0x34d722,_0x47bb51);}async[_0x1e9432(0x2e5)](_0x281feb){const _0x20233b=_0x1e9432,_0xf5a8cf=await this[_0x20233b(0x337)](),_0x27db2d=this[_0x20233b(0x10a)](_0x281feb,_0xf5a8cf);return this['_doCreateSocket'](_0x27db2d);}['_createSocketURL'](_0x3be95e,_0xd29dfe){const _0x3e67ef=_0x1e9432,_0x54a812=typeof window>'u'?new URL(_0x3be95e):new URL(_0x3be95e,window[_0x3e67ef(0x194)][_0x3e67ef(0xfc)]);_0x54a812[_0x3e67ef(0x16e)]['set'](_0x3e67ef(0x239),_0xd29dfe);const _0x20ca7d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3e67ef(0x194)]['search']);return _0x20ca7d[_0x3e67ef(0x2ff)](_0x3e67ef(0x121))&&_0x54a812['searchParams'][_0x3e67ef(0x12f)]('runId',_0x20ca7d[_0x3e67ef(0x2ff)](_0x3e67ef(0x121))),_0x54a812[_0x3e67ef(0x166)]();}async[_0x1e9432(0x337)](){const _0x2c49a0=_0x1e9432;var _0x1183e0,_0x1b1fa0,_0x1995c3;const _0x1829d4=this[_0x2c49a0(0x318)]['getConfig'](u[_0x2c49a0(0x19e)]),_0x5ef602=(_0x1183e0=_0x1829d4==null?void 0x0:_0x1829d4['wsSessionTicketUrl'])!=null?_0x1183e0:u[_0x2c49a0(0x20a)];return(_0x1995c3=(_0x1b1fa0=(await this[_0x2c49a0(0x2c2)]['get'](_0x5ef602,{'headers':{'Content-Type':_0x2c49a0(0x29f)}}))[_0x2c49a0(0x33d)])==null?void 0x0:_0x1b1fa0[_0x2c49a0(0x309)])!=null?_0x1995c3:'';}},exports[_0x1e9432(0x22d)]=ss([H(0x0,a[_0x1e9432(0x205)](a[_0x1e9432(0x1bb)])),H(0x1,a[_0x1e9432(0x205)](G['HTTPService'])),H(0x2,a['IConfigService']),H(0x3,a['ILogService']),H(0x4,m[_0x1e9432(0x24a)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x1e9432(0x298);class is extends a[_0x1e9432(0x2ab)]{constructor(){const _0x260528=_0x1e9432;super(),h(this,_0x260528(0x222),a['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x260528(0x187),new Map()),h(this,_0x260528(0x1d1),null),h(this,_0x260528(0x24f),new Map()),h(this,'_unitStatus',new Map()),this[_0x260528(0x1f2)]();}[_0x1e9432(0x2c8)](){const _0x4e00e5=_0x1e9432;super[_0x4e00e5(0x2c8)](),this['_clearOtherTimers'][_0x4e00e5(0xcb)]((_0xcc30fe,_0x51f830)=>this['_removeClearOtherTimer'](_0x51f830)),this[_0x4e00e5(0x1d1)]&&window[_0x4e00e5(0x2d7)](this[_0x4e00e5(0x1d1)]);}[_0x1e9432(0x294)](_0xca56f6){const _0x527252=_0x1e9432;return this[_0x527252(0x2cb)](_0xca56f6)[_0x527252(0x12b)](d[_0x527252(0x279)]());}[_0x1e9432(0x2cf)](_0x39e20e){const _0x4c11aa=_0x1e9432;this[_0x4c11aa(0x18d)][_0x4c11aa(0x229)]===0x0&&this[_0x4c11aa(0x1e6)](),this[_0x4c11aa(0x18d)][_0x4c11aa(0x13f)](_0x39e20e),this[_0x4c11aa(0x2f0)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x39e20e],'isForwarded':!0x1});}[_0x1e9432(0x339)](_0x47be7d){const _0x2b5275=_0x1e9432;this[_0x2b5275(0x18d)][_0x2b5275(0xe6)](_0x47be7d),this[_0x2b5275(0x18d)][_0x2b5275(0x229)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x2b5275(0x1d1)]);}[_0x1e9432(0x1f2)](){const _0x1059dd=_0x1e9432;this[_0x1059dd(0x21d)](a[_0x1059dd(0x208)](d[_0x1059dd(0x228)](window,_0x1059dd(0x331))[_0x1059dd(0x259)](_0xcf9ec=>{const _0x3f46e1=_0x1059dd;if(_0xcf9ec[_0x3f46e1(0x310)]!==Le||!_0xcf9ec[_0x3f46e1(0x1d6)])return;const _0x1bbf57=JSON[_0x3f46e1(0x2cc)](_0xcf9ec[_0x3f46e1(0x1d6)]);this[_0x3f46e1(0x20c)](_0x1bbf57);}))),window[_0x1059dd(0xf0)](_0x1059dd(0x19c),()=>this[_0x1059dd(0x2f0)]({'type':0x1,'memberID':this[_0x1059dd(0x222)],'unitIDs':Array[_0x1059dd(0xb6)](this[_0x1059dd(0x18d)])}));}[_0x1e9432(0x20c)](_0x3b99dc){const _0x5ae0f8=_0x1e9432;switch(_0x3b99dc[_0x5ae0f8(0x23b)]){case 0x0:this['_handleJoinEvent'](_0x3b99dc);break;case 0x1:this[_0x5ae0f8(0x336)](_0x3b99dc);break;case 0x2:this[_0x5ae0f8(0xe9)](_0x3b99dc);break;}}['_handleJoinEvent'](_0xe3813c){const _0x3a719d=_0x1e9432,{unitIDs:_0x1e3a61,memberID:_0x4fdd25,isForwarded:_0x2b2a73}=_0xe3813c;_0x1e3a61['forEach'](_0x37f1e4=>{const _0x4ee005=_0xa492;if(!_0x2b2a73&&this[_0x4ee005(0x187)]['has'](_0x37f1e4)&&this[_0x4ee005(0x2cb)](_0x37f1e4)[_0x4ee005(0x1ba)](u[_0x4ee005(0x197)]['OTHER_CLIENTS_EDITING']),!this[_0x4ee005(0x187)][_0x4ee005(0x312)](_0x37f1e4)||!this['_unitOnClients'][_0x4ee005(0x2ff)](_0x37f1e4)[_0x4ee005(0x312)](_0x4fdd25)){const _0x370d2e=this['_unitOnClients'][_0x4ee005(0x2ff)](_0x37f1e4)||new Set();_0x370d2e['add'](_0x4fdd25),this[_0x4ee005(0x187)][_0x4ee005(0x12f)](_0x37f1e4,_0x370d2e),this[_0x4ee005(0x150)](_0x4fdd25);}}),_0x2b2a73||this[_0x3a719d(0x2f0)]({'type':0x0,'memberID':this[_0x3a719d(0x222)],'unitIDs':[...this[_0x3a719d(0x18d)]],'isForwarded':!0x0});}[_0x1e9432(0x150)](_0x59765a){const _0x199b29=_0x1e9432;this[_0x199b29(0x220)](_0x59765a);const _0x4fac52=window[_0x199b29(0x214)](()=>{const _0x3717c0=_0x199b29;this['_unitOnClients'][_0x3717c0(0xcb)](_0x1f0892=>{const _0x3f9f24=_0x3717c0;_0x1f0892[_0x3f9f24(0xe6)](_0x59765a);});},Me*0x2);this[_0x199b29(0x24f)][_0x199b29(0x12f)](_0x59765a,_0x4fac52);}[_0x1e9432(0x220)](_0x20d3ce){const _0x149445=_0x1e9432;if(this[_0x149445(0x24f)][_0x149445(0x312)](_0x20d3ce)){const _0x59034f=this[_0x149445(0x24f)][_0x149445(0x2ff)](_0x20d3ce);_0x59034f&&window['clearTimeout'](_0x59034f),this[_0x149445(0x24f)]['set'](_0x20d3ce,null);}}[_0x1e9432(0x336)](_0x235464){const _0x532dc4=_0x1e9432,{memberID:_0x1a3d12,unitIDs:_0x3cc41a}=_0x235464;_0x3cc41a[_0x532dc4(0xcb)](_0x2827c0=>{const _0x114ab0=_0x532dc4;var _0x21211f;const _0x3d64c0=this['_unitOnClients'][_0x114ab0(0x2ff)](_0x2827c0);_0x3d64c0&&(_0x3d64c0['delete'](_0x1a3d12),(_0x21211f=this[_0x114ab0(0x2cb)](_0x2827c0))==null||_0x21211f[_0x114ab0(0x1ba)](_0x3d64c0['size']===0x0?u[_0x114ab0(0x197)][_0x114ab0(0x1a7)]:u[_0x114ab0(0x197)][_0x114ab0(0x1ea)]));}),this[_0x532dc4(0x220)](_0x1a3d12);}[_0x1e9432(0xe9)](_0x56e986){const _0x547d68=_0x1e9432;this[_0x547d68(0x150)](_0x56e986[_0x547d68(0x262)]);}[_0x1e9432(0x2f0)](_0x381e94){const _0x24718c=_0x1e9432;localStorage['setItem'](Le,JSON[_0x24718c(0x115)](_0x381e94));}[_0x1e9432(0x1e6)](){const _0x631641=_0x1e9432;this[_0x631641(0x1d1)]=window[_0x631641(0x212)](()=>{const _0x586d22=_0x631641;this['_send']({'type':0x2,'memberID':this[_0x586d22(0x222)]});},Me);}['_ensureSubject'](_0x3ae728){const _0x501fae=_0x1e9432;return this[_0x501fae(0x22b)][_0x501fae(0x312)](_0x3ae728)||this[_0x501fae(0x22b)][_0x501fae(0x12f)](_0x3ae728,new d[(_0x501fae(0x155))](u[_0x501fae(0x197)][_0x501fae(0x1a7)])),this['_unitStatus'][_0x501fae(0x2ff)](_0x3ae728);}}var je=(_0x282047=>(_0x282047[_0x282047['UNDEFINED']=0x0]=_0x1e9432(0x15f),_0x282047[_0x282047['OK']=0x1]='OK',_0x282047[_0x282047[_0x1e9432(0xb7)]=0x2]=_0x1e9432(0xb7),_0x282047[_0x282047['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x282047[_0x282047[_0x1e9432(0x11b)]=0x4]=_0x1e9432(0x11b),_0x282047[_0x282047[_0x1e9432(0x2d8)]=0x5]=_0x1e9432(0x2d8),_0x282047[_0x282047[_0x1e9432(0x104)]=0x6]=_0x1e9432(0x104),_0x282047[_0x282047[_0x1e9432(0x106)]=0x7]='INVALID_ARGUMENT',_0x282047[_0x282047['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x282047[_0x282047[_0x1e9432(0x1aa)]=0x9]='COMPLETION_FINISHED',_0x282047[_0x282047['LOGIN_FAILED']=0xa]=_0x1e9432(0x21f),_0x282047[_0x282047[_0x1e9432(0x345)]=0xb]=_0x1e9432(0x345),_0x282047[_0x282047[_0x1e9432(0x1d7)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x282047[_0x282047[_0x1e9432(0x2ce)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x282047[_0x282047[_0x1e9432(0xf1)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x282047[_0x282047[_0x1e9432(0x234)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x282047[_0x282047[_0x1e9432(0x2d4)]=0x1771]=_0x1e9432(0x2d4),_0x282047[_0x282047[_0x1e9432(0x287)]=0x1772]=_0x1e9432(0x287),_0x282047[_0x282047[_0x1e9432(0xc8)]=0x1773]=_0x1e9432(0xc8),_0x282047[_0x282047[_0x1e9432(0xe8)]=0x1b59]=_0x1e9432(0xe8),_0x282047[_0x282047[_0x1e9432(0x255)]=0x1b5a]=_0x1e9432(0x255),_0x282047[_0x282047[_0x1e9432(0x2ba)]=0x1b5b]=_0x1e9432(0x2ba),_0x282047[_0x282047[_0x1e9432(0x2df)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x282047[_0x282047[_0x1e9432(0x1ee)]=0x1b5d]=_0x1e9432(0x1ee),_0x282047[_0x282047['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1e9432(0x346),_0x282047[_0x282047[_0x1e9432(0x233)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x282047[_0x282047[_0x1e9432(0x265)]=0x232a]=_0x1e9432(0x265),_0x282047[_0x282047[_0x1e9432(0x237)]=0x232b]=_0x1e9432(0x237),_0x282047[_0x282047[_0x1e9432(0x29d)]=0x232c]=_0x1e9432(0x29d),_0x282047[_0x282047[_0x1e9432(0x10d)]=0x232d]=_0x1e9432(0x10d),_0x282047[_0x282047[_0x1e9432(0xcf)]=0x2711]=_0x1e9432(0xcf),_0x282047[_0x282047['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x282047[_0x282047[_0x1e9432(0x2e0)]=0x2713]=_0x1e9432(0x2e0),_0x282047[_0x282047[_0x1e9432(0x2d6)]=0x2714]=_0x1e9432(0x2d6),_0x282047[_0x282047['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x1e9432(0x300),_0x282047[_0x282047[_0x1e9432(0x140)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x282047[_0x282047[_0x1e9432(0x321)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x282047[_0x282047[_0x1e9432(0x31e)]=0x271d]=_0x1e9432(0x31e),_0x282047[_0x282047[_0x1e9432(0x236)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x282047[_0x282047[_0x1e9432(0xb5)]=0x271f]=_0x1e9432(0xb5),_0x282047[_0x282047[_0x1e9432(0x203)]=0x2720]=_0x1e9432(0x203),_0x282047[_0x282047[_0x1e9432(0x27b)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x282047[_0x282047[_0x1e9432(0x2dd)]=0x2ee1]=_0x1e9432(0x2dd),_0x282047[_0x282047[_0x1e9432(0x2ec)]=0x2ee2]=_0x1e9432(0x2ec),_0x282047[_0x282047['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x282047[_0x282047[_0x1e9432(0x250)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x282047[_0x282047['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x1e9432(0x163),_0x282047[_0x282047[_0x1e9432(0x2d3)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x282047[_0x282047[_0x1e9432(0x317)]=0x32ca]=_0x1e9432(0x317),_0x282047[_0x282047['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x282047[_0x282047[_0x1e9432(0x277)]=-0x1]=_0x1e9432(0x277),_0x282047))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x2317ab,_0x55a40c,_0x41324f,_0x3e8812)=>{const _0x1bf9e4=_0x1e9432;for(var _0x1beefe=_0x3e8812>0x1?void 0x0:_0x3e8812?ns(_0x55a40c,_0x41324f):_0x55a40c,_0x5d6b96=_0x2317ab[_0x1bf9e4(0x1c4)]-0x1,_0x45e620;_0x5d6b96>=0x0;_0x5d6b96--)(_0x45e620=_0x2317ab[_0x5d6b96])&&(_0x1beefe=_0x45e620(_0x1beefe)||_0x1beefe);return _0x1beefe;},ue=(_0x514277,_0x51ba48)=>(_0x1365ce,_0x428213)=>_0x51ba48(_0x1365ce,_0x428213,_0x514277);exports[_0x1e9432(0x2b4)]=class extends a['Disposable']{constructor(_0x1c6460,_0x49aad7,_0x11155b){const _0x134ac4=_0x1e9432;super(),this[_0x134ac4(0x2ad)]=_0x1c6460,this[_0x134ac4(0x2c2)]=_0x49aad7,this['_configService']=_0x11155b;}async['runOnServer'](_0x3e1f1c,_0x58833d,_0x3fbe57,..._0x3eafae){const _0x1bb43f=_0x1e9432;var _0xf4b5b4,_0x58fd6a,_0x467035,_0x5f248e;const _0x53e126=this[_0x1bb43f(0x2ad)]['getFocusedUnit']();if(!_0x53e126)throw new Error(_0x1bb43f(0x292));const _0x424839=((_0xf4b5b4=this[_0x1bb43f(0x318)][_0x1bb43f(0x31a)](u[_0x1bb43f(0x30d)]))!=null?_0xf4b5b4:u[_0x1bb43f(0x1fa)])+'/'+_0x3e1f1c+_0x1bb43f(0x15c)+_0x58833d,_0x3749b8=new URL(window[_0x1bb43f(0x194)][_0x1bb43f(0x281)]),_0x2b10d4={'scriptId':_0x3e1f1c,'runId':(_0x58fd6a=_0x3749b8[_0x1bb43f(0x16e)]['get'](_0x1bb43f(0x121)))!=null?_0x58fd6a:'','function':_0x58833d,'unitId':_0x53e126[_0x1bb43f(0x168)](),'argsOfFunction':JSON[_0x1bb43f(0x115)](_0x3eafae),'invokeId':(_0x467035=_0x3fbe57[_0x1bb43f(0x31c)])!=null?_0x467035:'','executionId':(_0x5f248e=_0x3fbe57[_0x1bb43f(0x273)])!=null?_0x5f248e:''};try{const _0x4928ef=await this['_httpService']['post'](_0x424839,{'body':_0x2b10d4});return _0x4928ef['body']['error']&&_0x4928ef['body']['error'][_0x1bb43f(0x145)]!==je['OK']?_0x1bb43f(0x1fc):_0x4928ef[_0x1bb43f(0x33d)][_0x1bb43f(0xd2)];}catch{return _0x1bb43f(0x1fc);}}},exports[_0x1e9432(0x2b4)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x1e9432(0x205)](G[_0x1e9432(0xee)])),ue(0x2,a[_0x1e9432(0x1e5)])],exports[_0x1e9432(0x2b4)]),exports['CollaborationStatusDisplay']=xe,exports[_0x1e9432(0x1db)]=Ee,exports['SheetCollabCursorShape']=we,exports[_0x1e9432(0x134)]=is,exports['WebURLService']=Be;
1
+ 'use strict';const _0x511f53=_0x543b;(function(_0x28ea6d,_0x33bd1e){const _0x3152b7=_0x543b,_0xf9fb6b=_0x28ea6d();while(!![]){try{const _0x3ac38d=parseInt(_0x3152b7(0x3eb))/0x1+parseInt(_0x3152b7(0x261))/0x2+-parseInt(_0x3152b7(0x2f6))/0x3+parseInt(_0x3152b7(0x346))/0x4+parseInt(_0x3152b7(0x239))/0x5*(parseInt(_0x3152b7(0x19b))/0x6)+parseInt(_0x3152b7(0x2cc))/0x7*(parseInt(_0x3152b7(0x3b7))/0x8)+parseInt(_0x3152b7(0x283))/0x9*(-parseInt(_0x3152b7(0x1f0))/0xa);if(_0x3ac38d===_0x33bd1e)break;else _0xf9fb6b['push'](_0xf9fb6b['shift']());}catch(_0xd7d0b9){_0xf9fb6b['push'](_0xf9fb6b['shift']());}}}(_0x5a22,0xbe51d));var Ve=Object['defineProperty'],Xe=(_0x46151d,_0x4320c4,_0x33be17)=>_0x4320c4 in _0x46151d?Ve(_0x46151d,_0x4320c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33be17}):_0x46151d[_0x4320c4]=_0x33be17,h=(_0x39f35b,_0x59f448,_0x4df6e4)=>Xe(_0x39f35b,typeof _0x59f448!=_0x511f53(0x1e1)?_0x59f448+'':_0x59f448,_0x4df6e4);Object['defineProperty'](exports,Symbol[_0x511f53(0x3ec)],{'value':_0x511f53(0x3f1)});const u=require(_0x511f53(0x391)),a=require(_0x511f53(0x343)),p=require(_0x511f53(0x3e3)),G=require(_0x511f53(0x310)),E=require('@univerjs/docs-ui'),Ge=require(_0x511f53(0x32f)),d=require(_0x511f53(0x3fb)),m=require('@univerjs-pro/collaboration'),Y=require(_0x511f53(0x408)),be=require(_0x511f53(0x3ac)),g=require(_0x511f53(0x19d)),$=require(_0x511f53(0x226)),X=require(_0x511f53(0x384)),P=require(_0x511f53(0x357)),O=require(_0x511f53(0x2c4)),D=require(_0x511f53(0x410)),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x170fe6,_0x43b8e4,_0xfa03c6,_0x40e770)=>{const _0x10fd3c=_0x511f53;for(var _0x3a16a9=_0x40e770>0x1?void 0x0:_0x40e770?qe(_0x43b8e4,_0xfa03c6):_0x43b8e4,_0x4532a1=_0x170fe6[_0x10fd3c(0x1dc)]-0x1,_0x53d685;_0x4532a1>=0x0;_0x4532a1--)(_0x53d685=_0x170fe6[_0x4532a1])&&(_0x3a16a9=_0x53d685(_0x3a16a9)||_0x3a16a9);return _0x3a16a9;},Oe=(_0x14fc13,_0x168a6c)=>(_0x3caf31,_0x28c4d1)=>_0x168a6c(_0x3caf31,_0x28c4d1,_0x14fc13);let de=class extends a[_0x511f53(0x1e5)]{constructor(_0x447ef5,_0x34d9cb){const _0x1aa401=_0x511f53;super(),this['_docClipboardService']=_0x447ef5,this[_0x1aa401(0x28b)]=_0x34d9cb,this[_0x1aa401(0x3e8)]();}[_0x511f53(0x3e8)](){const _0x402ad0=_0x511f53,_0x533416=this;this[_0x402ad0(0x203)](this[_0x402ad0(0x24f)][_0x402ad0(0x404)]({'onBeforePasteImage':async _0x16a749=>{const _0x1c4ae4=_0x402ad0,_0x5f3af6=await _0x533416[_0x1c4ae4(0x28b)][_0x1c4ae4(0x30b)](_0x16a749);return _0x5f3af6?{'source':_0x5f3af6[_0x1c4ae4(0x2a7)],'imageSourceType':_0x5f3af6[_0x1c4ae4(0x1f6)]}:null;}}));}};de=ze([Oe(0x0,E[_0x511f53(0x228)]),Oe(0x1,Ge[_0x511f53(0x1b6)])],de);const Te=[_0x511f53(0x1ed),_0x511f53(0x34e),_0x511f53(0x31b),_0x511f53(0x246),_0x511f53(0x315),'yellow.400'];class me extends a[_0x511f53(0x22b)]{constructor(){const _0x4e66c7=_0x511f53;super(...arguments),h(this,_0x4e66c7(0x31a),new Map()),h(this,_0x4e66c7(0x211),0x0);}['assignAColorForMemberID'](_0xd21bcf){const _0x2fcd94=_0x511f53;if(this[_0x2fcd94(0x31a)][_0x2fcd94(0x2bd)](_0xd21bcf))return this[_0x2fcd94(0x31a)]['get'](_0xd21bcf);const _0x4961c2=Te[this[_0x2fcd94(0x211)]];return this[_0x2fcd94(0x211)]=(this[_0x2fcd94(0x211)]+0x1)%Te[_0x2fcd94(0x1dc)],this[_0x2fcd94(0x31a)][_0x2fcd94(0x3c7)](_0xd21bcf,_0x4961c2),_0x4961c2;}}function Pe(_0x23ec90){const _0x58ea7a=_0x511f53;let _0x4271fa='';for(const _0x410093 of _0x23ec90){const {startOffset:_0x5eec81,endOffset:_0x12057a,isActive:_0x1a8563,rangeType:_0x406133,segmentId:_0xae90bd,segmentPage:_0x2632ea}=_0x410093;_0x4271fa[_0x58ea7a(0x1dc)]&&(_0x4271fa+=','),_0x4271fa+=_0x5eec81+':'+_0x12057a+':'+(_0x1a8563?'1':'0')+':'+_0x406133+':'+_0xae90bd+':'+_0x2632ea;}return _0x4271fa;}function Je(_0x124d99){const _0x503b5a=_0x511f53,_0x1d6f05=_0x124d99[_0x503b5a(0x300)](','),_0x172667=[];for(const _0x37b69f of _0x1d6f05){const [_0x5edd95,_0x48249b,_0x3b4593,_0x50725e,_0x13f661,_0x546c90]=_0x37b69f[_0x503b5a(0x300)](':');_0x172667[_0x503b5a(0x23b)]({'startOffset':Number(_0x5edd95),'endOffset':Number(_0x48249b),'collapsed':_0x5edd95===_0x48249b,'isActive':_0x3b4593==='1','rangeType':_0x50725e===a[_0x503b5a(0x23d)][_0x503b5a(0x37f)]?a[_0x503b5a(0x23d)][_0x503b5a(0x37f)]:a[_0x503b5a(0x23d)]['RECT'],'segmentId':typeof _0x13f661==_0x503b5a(0x240)?String(_0x13f661):'','segmentPage':Number(_0x546c90!=null?_0x546c90:-0x1)});}return _0x172667[_0x503b5a(0x265)](_0x32b04a=>_0x32b04a[_0x503b5a(0x291)])||(_0x172667[0x0][_0x503b5a(0x291)]=!0x0),_0x172667;}class Ce extends a[_0x511f53(0x1e5)]{constructor(){const _0x107e70=_0x511f53;super(...arguments),h(this,'_collabCursorState$',new d[(_0x107e70(0x263))](null)),h(this,_0x107e70(0x319),this[_0x107e70(0x24a)][_0x107e70(0x3bc)]());}[_0x511f53(0x33f)](_0x59055b){const _0x32ed0b=_0x511f53,{unitID:_0xde6ccd,memberID:_0x34f9a6,textRanges:_0x170ad1}=_0x59055b,_0xdfb228=Pe(_0x170ad1);if(_0xdfb228==='')return;const _0x143aa7={'unitID':_0xde6ccd,'memberID':_0x34f9a6,'selection':_0xdfb228};this[_0x32ed0b(0x24a)][_0x32ed0b(0x262)](_0x143aa7);}}var Ze=Object[_0x511f53(0x1d6)],Qe=(_0x5c9408,_0x3110e9,_0x1de186,_0x4d5c8a)=>{const _0x525747=_0x511f53;for(var _0x5f1eee=_0x4d5c8a>0x1?void 0x0:_0x4d5c8a?Ze(_0x3110e9,_0x1de186):_0x3110e9,_0x3c9d4d=_0x5c9408[_0x525747(0x1dc)]-0x1,_0x4df1a7;_0x3c9d4d>=0x0;_0x3c9d4d--)(_0x4df1a7=_0x5c9408[_0x3c9d4d])&&(_0x5f1eee=_0x4df1a7(_0x5f1eee)||_0x5f1eee);return _0x5f1eee;},L=(_0x5d7ba0,_0x375347)=>(_0x327ba2,_0x5deb57)=>_0x375347(_0x327ba2,_0x5deb57,_0x5d7ba0);const et=0x12c,tt=0x64;let Ie=class extends a[_0x511f53(0x1e5)]{constructor(_0x112c5f,_0x394579,_0x479cc0,_0x3a6003,_0x4c89e1,_0x3a61cf,_0x4ee851,_0x586ff8,_0xd711fe){const _0x29b807=_0x511f53;super(),h(this,_0x29b807(0x28e),!0x1),h(this,_0x29b807(0x3e8),!0x1),h(this,_0x29b807(0x326),new d[(_0x29b807(0x263))](new Map())),h(this,_0x29b807(0x400),this[_0x29b807(0x326)][_0x29b807(0x3bc)]()),h(this,_0x29b807(0x251),new d[(_0x29b807(0x263))]([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](d['debounceTime'](et))),h(this,_0x29b807(0x20f),a[_0x29b807(0x288)](_0x1eec96=>{const _0x3f647a=_0x29b807,_0x220f1c={'eventID':m['CollaborationEvent'][_0x3f647a(0x2c1)],'data':{'unitID':this[_0x3f647a(0x2ef)],'memberID':this['_session'][_0x3f647a(0x26c)](),'selection':Pe(_0x1eec96)}};this[_0x3f647a(0x271)]['send'](_0x220f1c,this[_0x3f647a(0x2ef)]);},tt)),(this[_0x29b807(0x2ef)]=_0x112c5f,this[_0x29b807(0x271)]=_0x394579,this[_0x29b807(0x32e)]=_0x479cc0,this[_0x29b807(0x3fc)]=_0x3a6003,this[_0x29b807(0x3da)]=_0x4c89e1,this[_0x29b807(0x236)]=_0x3a61cf,this[_0x29b807(0x2b4)]=_0x4ee851,this[_0x29b807(0x1d5)]=_0x586ff8,this['_commandService']=_0xd711fe);}get[_0x511f53(0x26e)](){const _0x8be488=_0x511f53;return this[_0x8be488(0x326)]['getValue']();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x408dfd=_0x511f53;super[_0x408dfd(0x23a)](),this['_cursorInfo$'][_0x408dfd(0x262)](new Map()),this[_0x408dfd(0x326)][_0x408dfd(0x2f8)](),this[_0x408dfd(0x251)][_0x408dfd(0x262)]([]),this[_0x408dfd(0x251)]['complete']();}[_0x511f53(0x341)](){const _0x13ec27=_0x511f53;this[_0x13ec27(0x3e8)]||(this['_init']=!0x0,this['_session'][_0x13ec27(0x37a)][_0x13ec27(0x33d)](d['takeUntil'](this[_0x13ec27(0x1cb)]))[_0x13ec27(0x2d0)](_0x1c0288=>{const _0xc86c3=_0x13ec27;_0x1c0288===u['SessionStatus'][_0xc86c3(0x3d7)]?this[_0xc86c3(0x1e8)]():this[_0xc86c3(0x3d4)]();}),this[_0x13ec27(0x271)][_0x13ec27(0x259)][_0x13ec27(0x33d)](d[_0x13ec27(0x207)](this[_0x13ec27(0x1cb)]))['subscribe'](_0x1e0792=>{const _0x1019e8=_0x13ec27,_0x101f76=_0x1e0792['eventID'];_0x101f76===m[_0x1019e8(0x189)]['UPDATE_CURSOR']&&this[_0x1019e8(0x33e)](_0x1e0792),_0x101f76===m[_0x1019e8(0x189)][_0x1019e8(0x329)]&&this[_0x1019e8(0x229)](_0x1e0792);}),this[_0x13ec27(0x203)](this['_commandService'][_0x13ec27(0x32d)](_0xdf48fa=>{const _0x552305=_0x13ec27,_0xafd4da=_0xdf48fa[_0x552305(0x411)];_0xafd4da!=null&&this['_online']&&_0xdf48fa['id']===Y[_0x552305(0x1b3)]['id']&&_0xafd4da[_0x552305(0x32c)]===this[_0x552305(0x2ef)]&&_0xafd4da[_0x552305(0x2bc)]===!0x1&&_0xafd4da[_0x552305(0x2ab)][_0x552305(0x1dc)]>0x0&&this[_0x552305(0x20f)](_0xafd4da[_0x552305(0x2ab)]);})),this[_0x13ec27(0x236)][_0x13ec27(0x319)][_0x13ec27(0x33d)](d[_0x13ec27(0x207)](this[_0x13ec27(0x1cb)]))[_0x13ec27(0x2d0)](_0x2f1be4=>{const _0x5a35f8=_0x13ec27;if((_0x2f1be4==null?void 0x0:_0x2f1be4[_0x5a35f8(0x2ef)])!==this[_0x5a35f8(0x2ef)])return;const _0x36d477={'eventID':m[_0x5a35f8(0x189)][_0x5a35f8(0x2c1)],'data':_0x2f1be4};this['_onCursorUpdate'](_0x36d477);}),this[_0x13ec27(0x203)](this[_0x13ec27(0x1b9)][_0x13ec27(0x32d)](_0x862c0b=>{const _0x21edc2=_0x13ec27;if(_0x862c0b[_0x21edc2(0x411)]==null)return;const _0x34fc29=_0x862c0b[_0x21edc2(0x411)];if(_0x862c0b['id']!==Y['RichTextEditingMutation']['id']||_0x34fc29[_0x21edc2(0x32c)]!==this[_0x21edc2(0x2ef)])return;const _0x424d97={'id':_0x21edc2(0x2f4),'params':_0x34fc29},_0x2cb329=this[_0x21edc2(0x26e)];for(const [_0x515fce,_0x33acc5]of _0x2cb329){const _0xb0d783={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x33acc5[_0x21edc2(0x2ab)]}},_0xd61c7e=this[_0x21edc2(0x2b4)]['transformMutation'](_0x424d97,_0xb0d783,!0x1);if(m[_0x21edc2(0x322)](_0xd61c7e))throw _0xd61c7e[_0x21edc2(0x1bc)];_0x2cb329[_0x21edc2(0x3c7)](_0x515fce,{..._0x33acc5,'ranges':_0xd61c7e['m2Prime'][_0x21edc2(0x411)]['textRanges']});}queueMicrotask(()=>{const _0x13b62d=_0x21edc2;this[_0x13b62d(0x326)][_0x13b62d(0x262)](_0x2cb329);});})));}['_onCursorUpdate'](_0x19c3f2){const _0xaaf93b=_0x511f53;var _0x43dcc0,_0x1d2e58;const {memberID:_0x647eb9,selection:_0x135154}=_0x19c3f2[_0xaaf93b(0x278)],_0x2bb282=Je(_0x135154),_0x1942ca=(_0x1d2e58=(_0x43dcc0=this[_0xaaf93b(0x3da)][_0xaaf93b(0x26d)](this[_0xaaf93b(0x2ef)],_0x647eb9))==null?void 0x0:_0x43dcc0[_0xaaf93b(0x205)])!=null?_0x1d2e58:_0xaaf93b(0x31e),_0x578059={'color':this[_0xaaf93b(0x3fc)]['assignAColorForMemberID'](_0x647eb9),'name':_0x1942ca,'ranges':_0x2bb282},_0x1a1e1d=this['cursorInfo'];_0x1a1e1d[_0xaaf93b(0x3c7)](_0x647eb9,_0x578059),this[_0xaaf93b(0x326)][_0xaaf93b(0x262)](_0x1a1e1d);}['_onCursorDelete'](_0x4431fb){const _0x1b6040=_0x511f53,{memberID:_0x5c5e97}=_0x4431fb[_0x1b6040(0x278)],_0x45194e=this[_0x1b6040(0x26e)];_0x45194e[_0x1b6040(0x2dc)](_0x5c5e97),this[_0x1b6040(0x326)][_0x1b6040(0x262)](_0x45194e);}[_0x511f53(0x1e8)](){const _0x8c83ca=_0x511f53;var _0x279c5d;if(this[_0x8c83ca(0x28e)]=!0x0,((_0x279c5d=this[_0x8c83ca(0x1d5)]['getFocusedUnit']())==null?void 0x0:_0x279c5d[_0x8c83ca(0x22f)]())!==this['unitID'])return;const _0x412f80=this['_injector'][_0x8c83ca(0x21f)](Y[_0x8c83ca(0x215)])[_0x8c83ca(0x3b3)]();Array[_0x8c83ca(0x287)](_0x412f80)&&_0x412f80[_0x8c83ca(0x1dc)]>0x0&&this[_0x8c83ca(0x20f)](_0x412f80);}[_0x511f53(0x3d4)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a[_0x511f53(0x3be)](a['Injector'])),L(0x3,a[_0x511f53(0x3be)](me)),L(0x4,a[_0x511f53(0x3be)](u['MemberService'])),L(0x5,a[_0x511f53(0x3be)](Ce)),L(0x6,m[_0x511f53(0x214)]),L(0x7,a[_0x511f53(0x1be)]),L(0x8,a[_0x511f53(0x27b)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x2c0dc5,_0x1a2d5c,_0x4980c0,_0xe9c4f3)=>{const _0x2e7383=_0x511f53;for(var _0x99af4a=_0xe9c4f3>0x1?void 0x0:_0xe9c4f3?st(_0x1a2d5c,_0x4980c0):_0x1a2d5c,_0x263310=_0x2c0dc5[_0x2e7383(0x1dc)]-0x1,_0x1cddb2;_0x263310>=0x0;_0x263310--)(_0x1cddb2=_0x2c0dc5[_0x263310])&&(_0x99af4a=_0x1cddb2(_0x99af4a)||_0x99af4a);return _0x99af4a;},A=(_0x7bb7ce,_0x46bb9c)=>(_0x5d9e71,_0x40be95)=>_0x46bb9c(_0x5d9e71,_0x40be95,_0x7bb7ce);const nt=0x12c,rt=0x64,ot=()=>{let _0x37c737=[],_0x32da59=!0x1;return _0x488259=>{const _0x5290ac=_0x543b;_0x37c737[_0x5290ac(0x23b)](_0x488259),_0x32da59||(_0x32da59=!0x0,setTimeout(()=>{_0x37c737['forEach'](_0x32f9dd=>_0x32f9dd()),_0x37c737=[],_0x32da59=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x3a0a9f,_0x408bdb,_0x611466,_0x57f5d7,_0x30b0f8,_0x252e6f,_0x450414,_0x206bfb){const _0x5b2461=_0x511f53;super(),h(this,_0x5b2461(0x28e),!0x1),h(this,_0x5b2461(0x3e8),!0x1),h(this,_0x5b2461(0x326),new d[(_0x5b2461(0x263))](new Map())),h(this,_0x5b2461(0x400),this[_0x5b2461(0x326)][_0x5b2461(0x3bc)]()),h(this,_0x5b2461(0x251),new d['BehaviorSubject']([])),h(this,_0x5b2461(0x256),this[_0x5b2461(0x251)]['pipe'](d[_0x5b2461(0x3f6)](nt))),h(this,_0x5b2461(0x20f),a[_0x5b2461(0x288)]((_0x4e175f,_0x459b6b)=>{const _0x22f0cf=_0x5b2461,_0x2cb9bd={'eventID':m[_0x22f0cf(0x189)][_0x22f0cf(0x2c1)],'data':{'unitID':this['unitID'],'memberID':this[_0x22f0cf(0x271)]['getMemberID'](),'selection':be['serializeRangeWithSheet'](_0x4e175f,_0x459b6b['range'])}};this[_0x22f0cf(0x271)][_0x22f0cf(0x3a0)](_0x2cb9bd,this['unitID']);},rt)),(this['unitID']=_0x3a0a9f,this[_0x5b2461(0x271)]=_0x408bdb,this[_0x5b2461(0x32e)]=_0x611466,this[_0x5b2461(0x3fc)]=_0x57f5d7,this[_0x5b2461(0x3da)]=_0x30b0f8,this[_0x5b2461(0x1d5)]=_0x252e6f,this['_commandService']=_0x450414,this[_0x5b2461(0x23f)]=_0x206bfb);}get[_0x511f53(0x26e)](){const _0x3c5041=_0x511f53;return this[_0x3c5041(0x326)][_0x3c5041(0x378)]();}get[_0x511f53(0x353)](){const _0x5c1bfa=_0x511f53;return this[_0x5c1bfa(0x251)][_0x5c1bfa(0x378)]();}['dispose'](){const _0x5f524d=_0x511f53;super[_0x5f524d(0x23a)](),this['_cursorInfo$'][_0x5f524d(0x262)](new Map()),this[_0x5f524d(0x326)]['complete'](),this[_0x5f524d(0x251)][_0x5f524d(0x262)]([]),this[_0x5f524d(0x251)][_0x5f524d(0x2f8)]();}['init'](){const _0x5d768e=_0x511f53;this[_0x5d768e(0x3e8)]||(this[_0x5d768e(0x3e8)]=!0x0,this[_0x5d768e(0x271)]['sessionStatus$'][_0x5d768e(0x33d)](d['takeUntil'](this[_0x5d768e(0x1cb)]))[_0x5d768e(0x2d0)](_0x5b5216=>{const _0x16fcb0=_0x5d768e;_0x5b5216===u['SessionStatus'][_0x16fcb0(0x3d7)]?this[_0x16fcb0(0x1e8)]():this[_0x16fcb0(0x3d4)]();}),this[_0x5d768e(0x271)][_0x5d768e(0x259)][_0x5d768e(0x33d)](d[_0x5d768e(0x207)](this[_0x5d768e(0x1cb)]))[_0x5d768e(0x2d0)](_0x3c7ff0=>{const _0x4687b4=_0x5d768e,_0x509b6a=_0x3c7ff0[_0x4687b4(0x27d)];_0x509b6a===m[_0x4687b4(0x189)][_0x4687b4(0x2c1)]&&this[_0x4687b4(0x33e)](_0x3c7ff0),_0x509b6a===m[_0x4687b4(0x189)][_0x4687b4(0x329)]&&this['_onCursorDelete'](_0x3c7ff0);}),this[_0x5d768e(0x209)](),this[_0x5d768e(0x203)](this[_0x5d768e(0x1b9)][_0x5d768e(0x32d)](_0x48ab26=>{const _0x4a8935=_0x5d768e;if(this[_0x4a8935(0x28e)]&&_0x48ab26['id']===g[_0x4a8935(0x3d6)]['id']&&_0x48ab26[_0x4a8935(0x411)][_0x4a8935(0x32c)]===this[_0x4a8935(0x2ef)]){const _0x113697=_0x48ab26[_0x4a8935(0x411)];this['_updateLocalCursor'](_0x113697[_0x4a8935(0x25e)],_0x113697[_0x4a8935(0x2e6)][0x0]);}})));}['_onCursorUpdate'](_0x5e7176){const _0x33ec3e=_0x511f53;var _0x2047cb,_0x119484;const {memberID:_0x5e3bc1,selection:_0x5c51f4}=_0x5e7176[_0x33ec3e(0x278)],{sheetName:_0x1107ab,range:_0x3ec40a}=be['deserializeRangeWithSheet'](_0x5c51f4),_0x9723b6={'name':(_0x119484=(_0x2047cb=this['_memberService'][_0x33ec3e(0x26d)](this['unitID'],_0x5e3bc1))==null?void 0x0:_0x2047cb['name'])!=null?_0x119484:'Unknown\x20user','range':this['_getMergeRange'](_0x1107ab,_0x3ec40a),'sheetID':_0x1107ab,'color':this[_0x33ec3e(0x3fc)][_0x33ec3e(0x2fc)](_0x5e3bc1),'selection':_0x5c51f4},_0x1ea6eb=this['cursorInfo'];_0x1ea6eb[_0x33ec3e(0x3c7)](_0x5e3bc1,_0x9723b6),this[_0x33ec3e(0x326)][_0x33ec3e(0x262)](_0x1ea6eb);}['_onCursorDelete'](_0x381f39){const _0x59ab66=_0x511f53,{memberID:_0x2d2239}=_0x381f39['data'],_0x8d7ac5=this[_0x59ab66(0x26e)];_0x8d7ac5[_0x59ab66(0x2dc)](_0x2d2239),this[_0x59ab66(0x326)]['next'](_0x8d7ac5);}['_getMergeRange'](_0x44224d,_0x1f1fb0){const _0x22899e=_0x511f53;var _0x4b257e,_0x492973;const _0x1f19d4=(_0x492973=(_0x4b257e=this[_0x22899e(0x1d5)][_0x22899e(0x2b5)](this[_0x22899e(0x2ef)]))==null?void 0x0:_0x4b257e[_0x22899e(0x359)](_0x44224d))==null?void 0x0:_0x492973[_0x22899e(0x3e2)]();return(_0x1f19d4==null?void 0x0:_0x1f19d4['find'](_0x4d80c0=>a['Rectangle']['contains'](_0x4d80c0,_0x1f1fb0)))||_0x1f1fb0;}['_onRefRangeChange'](){const _0x21de86=_0x511f53,_0x2cc8e8=new a['DisposableCollection'](),_0x567663=ot(),_0x5b6467=()=>{const _0x16278f=_0x543b;_0x2cc8e8['dispose']();const _0x1c0b47=(_0x57e34a,_0x3ab624,_0x7fd273,_0x120f64)=>{const _0x2dbe9a=_0x543b;let _0x4074cf=[];switch(_0x57e34a['id']){case g[_0x2dbe9a(0x18d)][_0x2dbe9a(0x1fb)]:{_0x4074cf=g[_0x2dbe9a(0x1aa)](_0x57e34a,_0x120f64);break;}case g[_0x2dbe9a(0x18d)]['DeleteRangeMoveUpCommandId']:{_0x4074cf=g[_0x2dbe9a(0x266)](_0x57e34a,_0x120f64);break;}case g[_0x2dbe9a(0x18d)][_0x2dbe9a(0x18c)]:{_0x4074cf=g[_0x2dbe9a(0x3a8)](_0x57e34a,_0x120f64);break;}case g['EffectRefRangId'][_0x2dbe9a(0x27c)]:{_0x4074cf=g[_0x2dbe9a(0x234)](_0x57e34a,_0x120f64);break;}case g[_0x2dbe9a(0x18d)][_0x2dbe9a(0x191)]:{_0x4074cf=g[_0x2dbe9a(0x277)](_0x57e34a,_0x120f64);break;}case g[_0x2dbe9a(0x18d)][_0x2dbe9a(0x2a0)]:{_0x4074cf=g[_0x2dbe9a(0x2d5)](_0x57e34a,_0x120f64);break;}case g['EffectRefRangId'][_0x2dbe9a(0x377)]:{_0x4074cf=g[_0x2dbe9a(0x3bd)](_0x57e34a,_0x120f64);break;}case g[_0x2dbe9a(0x18d)][_0x2dbe9a(0x1c2)]:{_0x4074cf=g['handleIRemoveCol'](_0x57e34a,_0x120f64);break;}case g[_0x2dbe9a(0x18d)]['RemoveRowCommandId']:{_0x4074cf=g['handleIRemoveRow'](_0x57e34a,_0x120f64);break;}}const _0x4da4be=g[_0x2dbe9a(0x1e3)](_0x4074cf,_0x120f64),_0x2edb40=this[_0x2dbe9a(0x26e)][_0x2dbe9a(0x21f)](_0x3ab624);if(_0x2edb40&&_0x4da4be){const _0x44bed5={..._0x2edb40,'range':_0x4da4be};this['cursorInfo'][_0x2dbe9a(0x3c7)](_0x3ab624,_0x44bed5),_0x567663(()=>{const _0x125168=_0x2dbe9a,_0x4fe177=this[_0x125168(0x23f)][_0x125168(0x1af)](_0x4da4be,_0x4fde0f=>(_0x4fe177[_0x125168(0x23a)](),_0x1c0b47(_0x4fde0f,_0x3ab624,_0x7fd273,_0x4da4be)));_0x2cc8e8[_0x125168(0x2d4)](_0x4fe177);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x16278f(0x29b)]((_0x3db421,_0x216f96)=>{const _0x323bb3=_0x16278f,{range:_0x4c07ae,sheetID:_0x29ff81}=_0x3db421,_0x259f0b=this['_refRangeService'][_0x323bb3(0x1af)](_0x4c07ae,_0x4d01e7=>(_0x259f0b[_0x323bb3(0x23a)](),_0x1c0b47(_0x4d01e7,_0x216f96,_0x29ff81,_0x4c07ae)));_0x2cc8e8[_0x323bb3(0x2d4)](_0x259f0b);});};this[_0x21de86(0x203)](a['toDisposable'](this[_0x21de86(0x326)][_0x21de86(0x2d0)](()=>{_0x5b6467();})));}['_toggleOnline'](){const _0x28d6f1=_0x511f53;var _0x4f4d80,_0x56ca0a;if(this['_online']=!0x0,((_0x4f4d80=this[_0x28d6f1(0x1d5)][_0x28d6f1(0x1f1)]())==null?void 0x0:_0x4f4d80['getUnitId']())!==this[_0x28d6f1(0x2ef)])return;const _0x25dc69=(_0x56ca0a=this[_0x28d6f1(0x32e)]['get'](g[_0x28d6f1(0x19f)])[_0x28d6f1(0x3d3)]())==null?void 0x0:_0x56ca0a[0x0],_0x4015b4=this[_0x28d6f1(0x1d5)]['getCurrentUnitForType'](a[_0x28d6f1(0x19e)]['UNIVER_SHEET'])['getActiveSheet']();_0x25dc69&&_0x4015b4&&this['_updateLocalCursor'](_0x4015b4[_0x28d6f1(0x365)](),_0x25dc69);}[_0x511f53(0x3d4)](){const _0x588691=_0x511f53;this[_0x588691(0x28e)]=!0x1;}};Se=it([A(0x2,a[_0x511f53(0x3be)](a['Injector'])),A(0x3,a[_0x511f53(0x3be)](me)),A(0x4,a[_0x511f53(0x3be)](u['MemberService'])),A(0x5,a[_0x511f53(0x1be)]),A(0x6,a[_0x511f53(0x27b)]),A(0x7,a[_0x511f53(0x3be)](g[_0x511f53(0x2b1)]))],Se);var at=Object[_0x511f53(0x1d6)],ct=(_0x232d0f,_0x388bb4,_0x39fcbf,_0x26d340)=>{const _0x3e59e9=_0x511f53;for(var _0x542f63=_0x26d340>0x1?void 0x0:_0x26d340?at(_0x388bb4,_0x39fcbf):_0x388bb4,_0x5b44f7=_0x232d0f[_0x3e59e9(0x1dc)]-0x1,_0xfbf334;_0x5b44f7>=0x0;_0x5b44f7--)(_0xfbf334=_0x232d0f[_0x5b44f7])&&(_0x542f63=_0xfbf334(_0x542f63)||_0x542f63);return _0x542f63;},ie=(_0x2fcfb9,_0x16ea12)=>(_0x230557,_0x5b5583)=>_0x16ea12(_0x230557,_0x5b5583,_0x2fcfb9);let x=class extends a[_0x511f53(0x1e5)]{constructor(_0x449b15,_0x338a9b,_0x349ba9){const _0x4fa67a=_0x511f53;super(),h(this,_0x4fa67a(0x3fd),new Map()),h(this,'_entityInit$',new d[(_0x4fa67a(0x23e))]()),(this[_0x4fa67a(0x1d5)]=_0x449b15,this[_0x4fa67a(0x32e)]=_0x338a9b,this['_collabSessionService']=_0x349ba9,this['_init']());}[_0x511f53(0x23a)](){const _0x366b7e=_0x511f53;super['dispose'](),this['_entityInit$'][_0x366b7e(0x2f8)](),this[_0x366b7e(0x3fd)][_0x366b7e(0x29b)](_0xe3742f=>_0xe3742f['dispose']());}[_0x511f53(0x345)](_0x243114){const _0x303216=_0x511f53;return this[_0x303216(0x3fd)][_0x303216(0x2bd)](_0x243114)?this[_0x303216(0x3fd)][_0x303216(0x21f)](_0x243114)[_0x303216(0x400)]:this[_0x303216(0x31f)][_0x303216(0x33d)](d['filter'](_0x56b2f5=>_0x56b2f5[_0x303216(0x2ef)]===_0x243114),d[_0x303216(0x258)](_0x41c40e=>_0x41c40e[_0x303216(0x400)]));}[_0x511f53(0x3e8)](){const _0x269d58=_0x511f53;this[_0x269d58(0x1d5)][_0x269d58(0x30d)](a[_0x269d58(0x19e)]['UNIVER_SHEET'])[_0x269d58(0x33d)](d[_0x269d58(0x207)](this[_0x269d58(0x1cb)]))[_0x269d58(0x2d0)](async _0x47d9b9=>{const _0x5d143d=_0x269d58,_0x5de397=_0x47d9b9[_0x5d143d(0x22f)](),_0x5b8681=await this['_startSheetCollabCursor'](_0x5de397);this[_0x5d143d(0x31f)]['next'](_0x5b8681),this[_0x5d143d(0x3fd)][_0x5d143d(0x3c7)](_0x5de397,_0x5b8681);}),this['_univerInstanceService'][_0x269d58(0x30d)](a['UniverInstanceType']['UNIVER_DOC'])[_0x269d58(0x33d)](d[_0x269d58(0x207)](this[_0x269d58(0x1cb)]))['pipe'](d[_0x269d58(0x3bf)](_0xb58892=>!_0xb58892[_0x269d58(0x22f)]()['startsWith']('__')))['subscribe'](async _0x2e731c=>{const _0x38d861=_0x269d58,_0x44eac0=_0x2e731c[_0x38d861(0x22f)](),_0x13c695=await this[_0x38d861(0x3a7)](_0x44eac0);this[_0x38d861(0x31f)][_0x38d861(0x262)](_0x13c695),this[_0x38d861(0x3fd)][_0x38d861(0x3c7)](_0x44eac0,_0x13c695);}),d[_0x269d58(0x33c)](this[_0x269d58(0x1d5)]['getTypeOfUnitDisposed$'](a[_0x269d58(0x19e)][_0x269d58(0x2e4)]),this[_0x269d58(0x1d5)][_0x269d58(0x2e9)](a[_0x269d58(0x19e)][_0x269d58(0x22c)]))[_0x269d58(0x33d)](d[_0x269d58(0x207)](this[_0x269d58(0x1cb)]))[_0x269d58(0x2d0)](_0x4b9417=>{const _0xd13812=_0x269d58,_0x500e7c=_0x4b9417[_0xd13812(0x22f)](),_0x4a1b14=this['_entities'][_0xd13812(0x21f)](_0x500e7c);_0x4a1b14&&(_0x4a1b14[_0xd13812(0x23a)](),this[_0xd13812(0x3fd)][_0xd13812(0x2dc)](_0x500e7c));});}async['_startSheetCollabCursor'](_0x427144){const _0x597c54=_0x511f53,_0x35a236=await this['_collabSessionService'][_0x597c54(0x26b)](_0x427144),_0x309126=this[_0x597c54(0x32e)][_0x597c54(0x2d7)](Se,_0x427144,_0x35a236);return _0x309126[_0x597c54(0x341)](),_0x309126;}async[_0x511f53(0x3a7)](_0x1bd484){const _0x1af2ad=_0x511f53,_0x1ce9f3=await this[_0x1af2ad(0x2d8)]['requireSession'](_0x1bd484),_0x35ee82=this[_0x1af2ad(0x32e)][_0x1af2ad(0x2d7)](Ie,_0x1bd484,_0x1ce9f3);return _0x35ee82[_0x1af2ad(0x341)](),_0x35ee82;}};x=ct([ie(0x0,a[_0x511f53(0x1be)]),ie(0x1,a['Inject'](a[_0x511f53(0x1d8)])),ie(0x2,a[_0x511f53(0x3be)](u[_0x511f53(0x3e0)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1005db,_0x532596){const _0x49d960=_0x511f53;let {radius:_0x4dfd9a,width:_0x8648d3,height:_0x2ffb98}=_0x532596;_0x4dfd9a=_0x4dfd9a!=null?_0x4dfd9a:0x0,_0x8648d3=_0x8648d3!=null?_0x8648d3:0x1e,_0x2ffb98=_0x2ffb98!=null?_0x2ffb98:0x1e;let _0x3ef0b3=0x0,_0xafd676=0x0,_0x46f047=0x0;_0x3ef0b3=_0xafd676=_0x46f047=Math['min'](_0x4dfd9a,_0x8648d3/0x2,_0x2ffb98/0x2),_0x1005db[_0x49d960(0x37e)](),_0x1005db[_0x49d960(0x3c6)](_0x3ef0b3,0x0),_0x1005db[_0x49d960(0x3b1)](_0x8648d3-_0xafd676,0x0),_0x1005db[_0x49d960(0x2ea)](_0x8648d3-_0xafd676,_0xafd676,_0xafd676,Math['PI']*0x3/0x2,0x0,!0x1),_0x1005db[_0x49d960(0x3b1)](_0x8648d3,_0x2ffb98-_0x46f047),_0x1005db[_0x49d960(0x2ea)](_0x8648d3-_0x46f047,_0x2ffb98-_0x46f047,_0x46f047,0x0,Math['PI']/0x2,!0x1),_0x1005db[_0x49d960(0x3b1)](0x0,_0x2ffb98),_0x1005db[_0x49d960(0x3b1)](0x0,_0x3ef0b3),_0x1005db[_0x49d960(0x2ea)](_0x3ef0b3,_0x3ef0b3,_0x3ef0b3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1005db[_0x49d960(0x338)](),_0x532596[_0x49d960(0x243)]&&(_0x1005db[_0x49d960(0x31d)](),_0x1005db[_0x49d960(0x1c3)]=_0x532596[_0x49d960(0x243)],_0x532596[_0x49d960(0x187)]===_0x49d960(0x1f4)?_0x1005db[_0x49d960(0x243)](_0x49d960(0x1f4)):_0x1005db[_0x49d960(0x243)](),_0x1005db['restore']());}class ee extends p['Shape']{constructor(_0x21a78c,_0x6932f8){const _0x2420fa=_0x511f53;super(_0x21a78c,_0x6932f8),h(this,_0x2420fa(0x2fd)),h(this,_0x2420fa(0x184)),(this[_0x2420fa(0x2fd)]=_0x6932f8==null?void 0x0:_0x6932f8[_0x2420fa(0x2fd)],this[_0x2420fa(0x184)]=_0x6932f8==null?void 0x0:_0x6932f8[_0x2420fa(0x184)]);}static[_0x511f53(0x188)](_0x1e4b69,_0x3383b3){const _0x4c027f=_0x511f53,{text:_0x2ca053,color:_0x1ed424}=_0x3383b3;_0x1e4b69[_0x4c027f(0x31d)](),_0x1e4b69[_0x4c027f(0x27e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x329f47=_0x1e4b69['measureText'](_0x2ca053)['width'],_0x4a50a2=Math[_0x4c027f(0x1ba)](_0x329f47+0x2*ne,Re);_t(_0x1e4b69,{'height':K,'radius':0x4,'width':_0x4a50a2,'fill':_0x1ed424}),_0x1e4b69[_0x4c027f(0x1c3)]='#FFF';const _0x2728ad=ne,_0x24a2c9=K-lt,_0x1970f4=Re-0x2*ne;if(_0x329f47>_0x1970f4){let _0x281d26='',_0x8c71df=0x0;for(const _0x3d1db8 of _0x2ca053){const _0x44ba91=_0x1e4b69[_0x4c027f(0x1c0)](_0x3d1db8)['width'];if(_0x8c71df+_0x44ba91<=_0x1970f4-_0x1e4b69[_0x4c027f(0x1c0)]('...')[_0x4c027f(0x302)])_0x281d26+=_0x3d1db8,_0x8c71df+=_0x44ba91;else{_0x281d26+='...';break;}}_0x1e4b69[_0x4c027f(0x185)](_0x281d26,_0x2728ad,_0x24a2c9);}else _0x1e4b69['fillText'](_0x2ca053,_0x2728ad,_0x24a2c9);_0x1e4b69['restore']();}[_0x511f53(0x1db)](_0xd0f5f6){const _0x252037=_0x511f53;ee[_0x252037(0x188)](_0xd0f5f6,this);}}const re='collab-text-anchor-',ht=_0x511f53(0x279),ut=_0x511f53(0x2ff),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x511f53(0x324);class De{constructor(_0x27d2f0,_0x590057,_0x1c6ad4,_0x3d80fd){const _0x483213=_0x511f53;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0x483213(0x1d9),null),h(this,_0x483213(0x1f5),null),h(this,'_eventUnsubscribe',null),(this[_0x483213(0x1a0)]=_0x27d2f0,this[_0x483213(0x386)]=_0x590057,this[_0x483213(0x36a)]=_0x1c6ad4,this['_document']=_0x3d80fd,this[_0x483213(0x2f5)]());}set['_hover'](_0x2b49a6){const _0x5c4a26=_0x511f53;_0x2b49a6?(this[_0x5c4a26(0x1d9)]&&this['_anchorDot'][_0x5c4a26(0x27a)](),this[_0x5c4a26(0x3ea)]&&this['_textBubble'][_0x5c4a26(0x225)]()):(this[_0x5c4a26(0x1d9)]&&this[_0x5c4a26(0x1d9)][_0x5c4a26(0x225)](),this[_0x5c4a26(0x3ea)]&&this[_0x5c4a26(0x3ea)]['hide']());}[_0x511f53(0x23a)](){const _0xf7b8da=_0x511f53;for(const _0x2c42f9 of this[_0xf7b8da(0x2cb)])_0x2c42f9['dispose']();this[_0xf7b8da(0x3ea)]&&this[_0xf7b8da(0x3ea)][_0xf7b8da(0x23a)](),this[_0xf7b8da(0x1d9)]&&this['_anchorDot'][_0xf7b8da(0x23a)](),this[_0xf7b8da(0x1ae)]&&this[_0xf7b8da(0x1ae)]['dispose'](),this[_0xf7b8da(0x362)]&&this[_0xf7b8da(0x362)]();}[_0x511f53(0x2f5)](){const _0x340655=_0x511f53;var _0x506d01;const {_docSkeleton:_0x550c60,_document:_0x504de8}=this,{color:_0x10a7a2,name:_0x148d9f,ranges:_0x42dcc8}=this[_0x340655(0x1a0)],_0x417a7f=_0x504de8[_0x340655(0x317)](),{docsLeft:_0x40ff0d,docsTop:_0x2b59dd}=_0x417a7f,_0x3c1ef4=new E[(_0x340655(0x255))](_0x417a7f,_0x550c60);for(const {startOffset:_0x152306,endOffset:_0x5e680c,rangeType:_0x21ea09,segmentId:_0x3714b3,segmentPage:_0x596e78,collapsed:_0xdb4752,isActive:_0xf7b22f}of _0x42dcc8){const _0x4593e8=_0x550c60[_0x340655(0x350)](_0x152306,!0x0,_0x3714b3,_0x596e78);let _0x4b343f=_0x550c60[_0x340655(0x350)](_0x5e680c,!0x0,_0x3714b3,_0x596e78);if(_0x4b343f==null&&(_0x4b343f=_0x550c60[_0x340655(0x350)](_0x5e680c-0x1,!0x1,_0x3714b3,_0x596e78)),_0xf7b22f){const {contentBoxPointGroup:_0x1978f0}=_0x3c1ef4[_0x340655(0x403)](_0x4b343f,_0x4b343f);if(_0x1978f0[_0x340655(0x1dc)]===0x0)continue;this[_0x340655(0x2d2)](_0x10a7a2,_0x1978f0,_0x40ff0d,_0x2b59dd,_0x148d9f),this[_0x340655(0x362)]=this[_0x340655(0x316)]();}if(_0x4593e8&&_0x4b343f){if(_0x21ea09===a['DOC_RANGE_TYPE'][_0x340655(0x340)]){const _0x1f6d62=new E[(_0x340655(0x18f))](_0x417a7f,_0x550c60),{pointGroup:_0x54ae39}=(_0x506d01=_0x1f6d62[_0x340655(0x403)](_0x4593e8,_0x4b343f))!=null?_0x506d01:{};if(_0x54ae39==null||_0x54ae39[_0x340655(0x1dc)]===0x0)continue;this[_0x340655(0x1a2)](_0x10a7a2,_0x54ae39,_0x40ff0d,_0x2b59dd);}else{if(!_0xdb4752){const {borderBoxPointGroup:_0x3126d7}=_0x3c1ef4[_0x340655(0x403)](_0x4593e8,_0x4b343f);if(_0x3126d7['length']===0x0)continue;this['_drawTextRange'](_0x10a7a2,_0x3126d7,_0x40ff0d,_0x2b59dd);}}}}}[_0x511f53(0x2d2)](_0x51207c,_0x4c725a,_0x5f000f,_0x3ec95f,_0xb3e95a){const _0x2cbf20=_0x511f53,_0x446133=this[_0x2cbf20(0x2b0)](_0x4c725a),{left:_0x4f37f4,top:_0x34dfe1,height:_0x106404}=_0x446133,_0x52c305=this['_getScale'](),_0x1b13bb=It/_0x52c305,_0x2fd333=new p[(_0x2cbf20(0x1df))](re+a['Tools'][_0x2cbf20(0x227)](k),{'left':_0x4f37f4+_0x5f000f-_0x1b13bb,'top':_0x34dfe1+_0x3ec95f,'height':_0x106404,'width':dt,'fill':_0x51207c||p[_0x2cbf20(0x3f4)](a[_0x2cbf20(0x1a9)]['black'],0x0),'strokeWidth':_0x1b13bb,'stroke':St,'evented':!0x0});this[_0x2cbf20(0x1ae)]=_0x2fd333,this[_0x2cbf20(0x386)][_0x2cbf20(0x280)](_0x2fd333,E[_0x2cbf20(0x3fa)]);const _0x40161d=new p[(_0x2cbf20(0x1df))](re+a[_0x2cbf20(0x193)][_0x2cbf20(0x227)](k),{'left':_0x4f37f4+_0x5f000f-_0x1b13bb,'top':_0x34dfe1+_0x3ec95f-oe/0x2,'height':oe,'width':oe,'fill':_0x51207c||p[_0x2cbf20(0x3f4)](a[_0x2cbf20(0x1a9)][_0x2cbf20(0x200)],0x0),'strokeWidth':0x0,'stroke':_0x51207c||p[_0x2cbf20(0x3f4)](a[_0x2cbf20(0x1a9)][_0x2cbf20(0x200)],0x0),'evented':!0x1});this[_0x2cbf20(0x1d9)]=_0x40161d,this[_0x2cbf20(0x386)][_0x2cbf20(0x280)](_0x40161d,E[_0x2cbf20(0x3fa)]);const _0x4c9549=new ee(re+a[_0x2cbf20(0x193)][_0x2cbf20(0x227)](k),{'left':_0x4f37f4+_0x5f000f-_0x1b13bb,'top':_0x34dfe1+_0x3ec95f-K,'text':_0xb3e95a,'color':_0x51207c});this[_0x2cbf20(0x3ea)]=_0x4c9549,this[_0x2cbf20(0x386)][_0x2cbf20(0x280)](_0x4c9549,E[_0x2cbf20(0x3fa)]),this[_0x2cbf20(0x1bf)]=!0x1;}[_0x511f53(0x316)](){const _0x16f442=_0x511f53,_0x23865d=this[_0x16f442(0x1ae)][_0x16f442(0x2b9)][_0x16f442(0x36f)](()=>{const _0xe46e04=_0x16f442;this[_0xe46e04(0x1bf)]=!0x0;}),_0x3dd61f=this[_0x16f442(0x1ae)][_0x16f442(0x383)][_0x16f442(0x36f)](()=>{const _0x4a65ce=_0x16f442;this[_0x4a65ce(0x1f5)]&&clearTimeout(this[_0x4a65ce(0x1f5)]),this[_0x4a65ce(0x1f5)]=setTimeout(()=>{const _0x3ed8eb=_0x4a65ce;this[_0x3ed8eb(0x1bf)]=!0x1;},0x7d0);});return()=>{const _0x446ea2=_0x16f442;_0x23865d[_0x446ea2(0x38b)](),_0x3dd61f[_0x446ea2(0x38b)]();};}[_0x511f53(0x2e1)](_0x405cab,_0x23507a,_0xf7e7f3,_0x36d90d){const _0x419159=_0x511f53,_0x10219f=new a[(_0x419159(0x20b))](_0x405cab)[_0x419159(0x358)](0.2)[_0x419159(0x269)](),_0x2184d7=new p['RegularPolygon'](ht+a[_0x419159(0x193)]['generateRandomId'](k),{'pointsGroup':_0x23507a,'fill':_0x10219f||p[_0x419159(0x3f4)](a['COLORS'][_0x419159(0x200)],0.2),'left':_0xf7e7f3,'top':_0x36d90d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x419159(0x2cb)][_0x419159(0x23b)](_0x2184d7),this['_scene']['addObject'](_0x2184d7,E[_0x419159(0x3fa)]);}['_drawRectRange'](_0x58b314,_0x1a6076,_0x5a92e6,_0x2e7e66){const _0x26f82d=_0x511f53,_0x2cb980=new a[(_0x26f82d(0x20b))](_0x58b314)['setAlpha'](0.2)[_0x26f82d(0x269)](),_0x448ff4=new p[(_0x26f82d(0x32a))](ut+a['Tools'][_0x26f82d(0x227)](k),{'pointsGroup':_0x1a6076,'fill':_0x2cb980||p[_0x26f82d(0x3f4)](a[_0x26f82d(0x1a9)]['black'],0.2),'left':_0x5a92e6,'top':_0x2e7e66,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x26f82d(0x2cb)]['push'](_0x448ff4),this[_0x26f82d(0x386)][_0x26f82d(0x280)](_0x448ff4,E[_0x26f82d(0x3fa)]);}[_0x511f53(0x2b0)](_0x1a7a37){const _0xb2dabf=_0x1a7a37[0x0],_0x9eb1dd=_0xb2dabf[0x0],_0x437b7f=_0xb2dabf[0x2],{x:_0x3239da,y:_0x187ca5}=_0x9eb1dd,{x:_0x19563b,y:_0x4b4ebc}=_0x437b7f;return{'left':_0x3239da,'top':_0x187ca5,'width':_0x19563b-_0x3239da,'height':_0x4b4ebc-_0x187ca5};}[_0x511f53(0x2e3)](){const _0x33d7de=_0x511f53,{scaleX:_0x4eb6e5,scaleY:_0x45f64d}=this['_scene'][_0x33d7de(0x38f)]();return Math['max'](_0x4eb6e5,_0x45f64d);}}var ft=Object['getOwnPropertyDescriptor'],vt=(_0x34697d,_0x107358,_0x4cda01,_0x3c8ef6)=>{const _0x2637de=_0x511f53;for(var _0x4a6f24=_0x3c8ef6>0x1?void 0x0:_0x3c8ef6?ft(_0x107358,_0x4cda01):_0x107358,_0x5f00f4=_0x34697d[_0x2637de(0x1dc)]-0x1,_0x15eedf;_0x5f00f4>=0x0;_0x5f00f4--)(_0x15eedf=_0x34697d[_0x5f00f4])&&(_0x4a6f24=_0x15eedf(_0x4a6f24)||_0x4a6f24);return _0x4a6f24;},W=(_0x28ac89,_0x3563d7)=>(_0x175c17,_0x1c43a4)=>_0x3563d7(_0x175c17,_0x1c43a4,_0x28ac89);let fe=class extends a[_0x511f53(0x1e5)]{constructor(_0xd01974,_0x2fdb32,_0x551cc0,_0x14fccb,_0x5d2c26){const _0x4b6b37=_0x511f53;super(),h(this,_0x4b6b37(0x210),[]),h(this,_0x4b6b37(0x17c),[]),(this[_0x4b6b37(0x331)]=_0xd01974,this[_0x4b6b37(0x2e5)]=_0x2fdb32,this[_0x4b6b37(0x181)]=_0x551cc0,this[_0x4b6b37(0x1b9)]=_0x14fccb,this['_themeService']=_0x5d2c26,this[_0x4b6b37(0x3e8)]());}[_0x511f53(0x3e8)](){const _0x55b138=_0x511f53,_0x3b65e6=this[_0x55b138(0x331)][_0x55b138(0x32c)],_0x22a73c=this['_docSkeletonManagerService'];this['disposeWithMe'](d[_0x55b138(0x405)]([this[_0x55b138(0x181)][_0x55b138(0x345)](_0x3b65e6),this[_0x55b138(0x1ef)][_0x55b138(0x275)]])[_0x55b138(0x33d)]($[_0x55b138(0x39e)](([_0x3487fa,_0x5ef893])=>({'skeleton':_0x22a73c[_0x55b138(0x3df)](),'cursors':[..._0x3487fa[_0x55b138(0x38d)]()]['flatMap'](_0xa9eb41=>({..._0xa9eb41,'color':this[_0x55b138(0x1ef)][_0x55b138(0x2b2)](_0xa9eb41[_0x55b138(0x2fd)])}))})))[_0x55b138(0x2d0)](_0x52b52f=>{if(this['_removeCollabCursors'](),_0x52b52f){const {skeleton:_0x5889bf,cursors:_0x480993}=_0x52b52f;this['_updateCollabCursors'](_0x5889bf,_0x480993);}})),this[_0x55b138(0x1ce)](),this[_0x55b138(0x216)]();}[_0x511f53(0x1ad)](_0x52f618,_0x4e9452){const _0x28db0b=_0x511f53,{scene:_0x2997a0,mainComponent:_0x40c846}=this[_0x28db0b(0x331)],_0x4596ce=_0x4e9452[_0x28db0b(0x39e)](_0x3f833c=>new De(_0x3f833c,_0x2997a0,_0x52f618,_0x40c846));this['_cursorShapes']=_0x4596ce,this[_0x28db0b(0x17c)]=_0x4e9452;}[_0x511f53(0x237)](){const _0x4a3e07=_0x511f53;this['_removeCollabCursors']();const {scene:_0x3948c7,mainComponent:_0x6f5761}=this[_0x4a3e07(0x331)],_0x55452d=this['_docSkeletonManagerService']['getSkeleton'](),_0x274fe8=this[_0x4a3e07(0x17c)][_0x4a3e07(0x39e)](_0x4b93fa=>new De(_0x4b93fa,_0x3948c7,_0x55452d,_0x6f5761));this[_0x4a3e07(0x210)]=_0x274fe8;}['_removeCollabCursors'](){const _0x2f1c4b=_0x511f53;this[_0x2f1c4b(0x210)]['forEach'](_0x4cd8db=>_0x4cd8db[_0x2f1c4b(0x23a)]()),this['_cursorShapes']=[];}[_0x511f53(0x216)](){const _0x19947c=_0x511f53,_0xfcefdd=[E[_0x19947c(0x39b)]['id']];this['disposeWithMe'](this[_0x19947c(0x1b9)][_0x19947c(0x32d)](_0xac59a=>{const _0x30598e=_0x19947c;_0xfcefdd[_0x30598e(0x2c2)](_0xac59a['id'])&&_0xac59a[_0x30598e(0x411)][_0x30598e(0x32c)]===this['_context'][_0x30598e(0x32c)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x2bd7bb=_0x511f53;this[_0x2bd7bb(0x203)](a[_0x2bd7bb(0x2a3)](this['_context'][_0x2bd7bb(0x2f2)][_0x2bd7bb(0x20c)])[_0x2bd7bb(0x33d)]($[_0x2bd7bb(0x3bf)](_0x2d2cfe=>_0x2d2cfe['type']===p[_0x2bd7bb(0x409)][_0x2bd7bb(0x3e5)]),$[_0x2bd7bb(0x272)](0x10))[_0x2bd7bb(0x2d0)](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a[_0x511f53(0x3be)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x511f53(0x3be)](x)),W(0x3,a[_0x511f53(0x27b)]),W(0x4,a[_0x511f53(0x3be)](a['ThemeService']))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x2bbcfc,_0x5104f3){const _0x9ee1de=_0x511f53;super(_0x2bbcfc,_0x5104f3),h(this,'_color'),h(this,_0x9ee1de(0x366),!0x1),h(this,_0x9ee1de(0x3d1)),h(this,_0x9ee1de(0x25c),''),h(this,_0x9ee1de(0x2a8),_0x9ee1de(0x17d)),h(this,_0x9ee1de(0x390)),(_0x5104f3&&this[_0x9ee1de(0x273)](_0x5104f3),this['onPointerEnter$'][_0x9ee1de(0x36f)](()=>this[_0x9ee1de(0x273)]({'hovered':!0x0})),this['onPointerLeave$'][_0x9ee1de(0x36f)](()=>this[_0x9ee1de(0x273)]({'hovered':!0x1})));}[_0x511f53(0x273)](_0x5e3b35){const _0x35c710=_0x511f53;var _0x2f999c,_0x484a4f,_0x2b7a8e,_0x5d832f,_0x212034,_0x380089;this[_0x35c710(0x1b5)]=(_0x2f999c=_0x5e3b35[_0x35c710(0x2fd)])!=null?_0x2f999c:this['_color'],this[_0x35c710(0x366)]=(_0x484a4f=_0x5e3b35[_0x35c710(0x212)])!=null?_0x484a4f:this[_0x35c710(0x366)],this[_0x35c710(0x3d1)]=(_0x2b7a8e=_0x5e3b35[_0x35c710(0x242)])!=null?_0x2b7a8e:this['_range'],this['_name']=(_0x5d832f=_0x5e3b35[_0x35c710(0x205)])!=null?_0x5d832f:this[_0x35c710(0x25c)],this[_0x35c710(0x2a8)]=(_0x212034=_0x5e3b35['labelPosition'])!=null?_0x212034:this['_labelPosition'],this['_backgroundColor']=(_0x380089=_0x5e3b35[_0x35c710(0x1e0)])!=null?_0x380089:this[_0x35c710(0x390)],this[_0x35c710(0x354)]({'width':_0x5e3b35[_0x35c710(0x302)],'height':_0x5e3b35[_0x35c710(0x1c6)]});}['onMouseMove'](_0x16abfc){const _0x5cfc49=_0x511f53,{row:_0x13bbfe,column:_0xcd4469}=_0x16abfc;if(_0x13bbfe>=this[_0x5cfc49(0x3d1)][_0x5cfc49(0x35f)]&&_0x13bbfe<=this['_range'][_0x5cfc49(0x320)]&&_0xcd4469>=this['_range'][_0x5cfc49(0x2a4)]&&_0xcd4469<=this['_range']['endColumn']){this[_0x5cfc49(0x273)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x511f53(0x2d6)](_0x103778){return!0x1;}[_0x511f53(0x1db)](_0x38f9a7){const _0x1f0fde=_0x511f53;p[_0x1f0fde(0x1df)][_0x1f0fde(0x188)](_0x38f9a7,{'width':this['width'],'height':this[_0x1f0fde(0x1c6)],'strokeWidth':mt,'stroke':this[_0x1f0fde(0x1b5)],'evented':!0x1,'fill':this[_0x1f0fde(0x390)]}),this['_hovered']&&(_0x38f9a7['save'](),_0x38f9a7[_0x1f0fde(0x295)](0x1,0x0,0x0,0x1,this['width'],this[_0x1f0fde(0x2a8)]==='bottom'?0x0:-0x14),ee[_0x1f0fde(0x188)](_0x38f9a7,{'text':this[_0x1f0fde(0x25c)],'color':this['_color']}),_0x38f9a7[_0x1f0fde(0x3f9)]());}}var Ct=Object[_0x511f53(0x1d6)],pt=(_0x41b24b,_0x551161,_0x551686,_0x1b9c86)=>{const _0x1fb754=_0x511f53;for(var _0x2682ff=_0x1b9c86>0x1?void 0x0:_0x1b9c86?Ct(_0x551161,_0x551686):_0x551161,_0x474a65=_0x41b24b[_0x1fb754(0x1dc)]-0x1,_0x365742;_0x474a65>=0x0;_0x474a65--)(_0x365742=_0x41b24b[_0x474a65])&&(_0x2682ff=_0x365742(_0x2682ff)||_0x2682ff);return _0x2682ff;},ae=(_0x2264c0,_0x19e3a2)=>(_0x15d9c8,_0xa60581)=>_0x19e3a2(_0x15d9c8,_0xa60581,_0x2264c0);const Et=0x1389;let ve=class extends a[_0x511f53(0x1e5)]{constructor(_0x505ed1,_0x2d33c3,_0x919c6d,_0x4c292f){const _0x345be0=_0x511f53;super(),h(this,_0x345be0(0x17c),new Set()),h(this,_0x345be0(0x199),null),(this[_0x345be0(0x331)]=_0x505ed1,this[_0x345be0(0x344)]=_0x2d33c3,this['_collabCursorController']=_0x919c6d,this[_0x345be0(0x1ef)]=_0x4c292f,this[_0x345be0(0x3e8)]());}['_init'](){const _0x1883d6=_0x511f53;this[_0x1883d6(0x344)]['currentSkeleton$'][_0x1883d6(0x33d)]($[_0x1883d6(0x207)](this[_0x1883d6(0x1cb)]),$[_0x1883d6(0x258)](_0x14234f=>{const _0x6cfed5=_0x1883d6;if(_0x14234f){const _0x401e5f=_0x14234f[_0x6cfed5(0x332)];return d['combineLatest'](this[_0x6cfed5(0x181)][_0x6cfed5(0x345)](this[_0x6cfed5(0x331)][_0x6cfed5(0x32c)]),this['_themeService'][_0x6cfed5(0x275)])[_0x6cfed5(0x33d)]($[_0x6cfed5(0x39e)](([_0x5e28ea,_0x55c6d7])=>{const _0x1b06e2=_0x6cfed5,_0x1f0486=new Map();return _0x5e28ea[_0x1b06e2(0x29b)]((_0x4889e3,_0xa58a7c)=>{const _0x45c199=_0x1b06e2;if(_0x4889e3[_0x45c199(0x286)]===_0x401e5f){const _0xbff486={..._0x4889e3};_0xbff486[_0x45c199(0x2fd)]=this['_themeService'][_0x45c199(0x2b2)](_0x4889e3[_0x45c199(0x2fd)]),_0x1f0486[_0x45c199(0x3c7)](_0xa58a7c,_0xbff486);}}),{'skeleton':_0x14234f,'cursors':_0x1f0486};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x1883d6(0x2d0)](({skeleton:_0x325c87,cursors:_0x3d4f45})=>{const _0x176775=_0x1883d6;this[_0x176775(0x1e9)](),_0x325c87&&this['_updateCollabCursors'](_0x325c87,_0x3d4f45);}),this[_0x1883d6(0x344)][_0x1883d6(0x3ef)][_0x1883d6(0x2d0)](_0x2c8280=>{const _0x52b052=_0x1883d6;if(_0x2c8280==null)return;const {skeleton:_0x45f729}=_0x2c8280,{scene:_0x3f8277}=this['_context'];_0x3f8277[_0x52b052(0x351)][_0x52b052(0x36f)](a['debounce'](_0xa69e0c=>{const _0x2476cb=_0x52b052;var _0x29d842,_0x4b32b7;const {offsetX:_0x370dc7,offsetY:_0x5104ba}=_0xa69e0c,{x:_0x29c9ad,y:_0x2ea913}=_0x3f8277[_0x2476cb(0x396)](p[_0x2476cb(0x1a1)][_0x2476cb(0x3c3)]([_0x370dc7,_0x5104ba])),{scaleX:_0x58aa2f,scaleY:_0x5ae0bd}=_0x3f8277[_0x2476cb(0x38f)](),_0x4822b6=_0x3f8277[_0x2476cb(0x389)](p[_0x2476cb(0x197)][_0x2476cb(0x1f7)]),_0x4dcf74=_0x3f8277[_0x2476cb(0x3d9)](p['Vector2'][_0x2476cb(0x3c3)]([_0x29c9ad,_0x2ea913]),_0x4822b6),_0x133c48=_0x45f729[_0x2476cb(0x224)](_0x370dc7,_0x5104ba,_0x58aa2f,_0x5ae0bd,_0x4dcf74);((_0x29d842=this[_0x2476cb(0x199)])==null?void 0x0:_0x29d842[_0x2476cb(0x22e)])===_0x133c48['column']&&((_0x4b32b7=this[_0x2476cb(0x199)])==null?void 0x0:_0x4b32b7['row'])===_0x133c48[_0x2476cb(0x2e2)]||this['_cursors'][_0x2476cb(0x29b)](_0xdd5af2=>{const _0x33beb2=_0x2476cb;_0xdd5af2[_0x33beb2(0x35d)](_0x133c48);});},0x64));});}[_0x511f53(0x1ad)](_0x1da7ae,_0x54d606){const _0x47ed59=_0x511f53;var _0x3aacf8;const _0x177c23=(_0x3aacf8=this[_0x47ed59(0x344)]['getCurrent']())==null?void 0x0:_0x3aacf8[_0x47ed59(0x394)];if(!_0x177c23)return;const _0x1402cf=this['_getSheetObject']();if(!_0x1402cf)return;this[_0x47ed59(0x17c)][_0x47ed59(0x29b)](_0x5c35f6=>{const _0x4fe907=_0x47ed59;_0x5c35f6[_0x4fe907(0x3dd)]();});const {scene:_0x5596ee}=_0x1402cf,_0x15824b=bt(Array['from'](_0x54d606[_0x47ed59(0x38d)]()))[_0x47ed59(0x39e)](_0x1d376e=>{const _0x1a4503=_0x47ed59,{color:_0x330aae,range:_0x263d70,name:_0x10e803,selection:_0x585a81,sheetID:_0x506bfd}=_0x1d376e,{startColumn:_0x4ea88a,startRow:_0x776108,endColumn:_0x3f357c,endRow:_0x3192db}=_0x263d70,_0xf0f02a=X['getCoordByCell'](_0x776108,_0x4ea88a,_0x5596ee,_0x177c23),_0x1df43f=X[_0x1a4503(0x2c5)](_0x3192db,_0x3f357c,_0x5596ee,_0x177c23),{columnHeaderHeightAndMarginTop:_0x57bd02}=_0x177c23,{startX:_0x6c40b4,startY:_0x5ee47e}=_0xf0f02a,{endX:_0x5df502,endY:_0x1e2d71}=_0x1df43f,_0x2e9ad1=_0x5df502-_0x6c40b4,_0x2eed52=_0x1e2d71-_0x5ee47e,_0x1e1aec={'labelPosition':_0x5ee47e-_0x57bd02>=K?_0x1a4503(0x17d):'bottom','sheetID':_0x506bfd,'range':_0x263d70,'color':_0x330aae,'name':_0x10e803,'selection':_0x585a81,'left':_0x6c40b4,'top':_0x5ee47e,'width':_0x2e9ad1,'height':_0x2eed52,'evented':!0x1,'zIndex':Et};return new we(_0x10e803,_0x1e1aec);});_0x5596ee[_0x47ed59(0x217)](_0x15824b,gt),this[_0x47ed59(0x17c)]=new Set(_0x15824b);}[_0x511f53(0x1e9)](){const _0x182e71=_0x511f53;var _0x210d92;(_0x210d92=this[_0x182e71(0x17c)])==null||_0x210d92[_0x182e71(0x29b)](_0x495505=>_0x495505['dispose']());}[_0x511f53(0x20d)](){const _0x2f19b7=_0x511f53;return X[_0x2f19b7(0x25b)](this[_0x2f19b7(0x331)][_0x2f19b7(0x1fa)],this[_0x2f19b7(0x331)]);}};ve=pt([ae(0x1,a[_0x511f53(0x3be)](X[_0x511f53(0x330)])),ae(0x2,a[_0x511f53(0x3be)](x)),ae(0x3,a[_0x511f53(0x3be)](a[_0x511f53(0x40d)]))],ve);function bt(_0x22cf44){const _0x27036c=_0x511f53,_0x11e0e2=new Map();return _0x22cf44['forEach'](_0x39aff7=>{const _0x589505=_0x543b;if(_0x11e0e2[_0x589505(0x2bd)](_0x39aff7[_0x589505(0x314)])){const _0x57f188=_0x11e0e2[_0x589505(0x21f)](_0x39aff7[_0x589505(0x314)]);_0x57f188[_0x589505(0x205)]+=',\x20'+_0x39aff7['name'];}else _0x11e0e2[_0x589505(0x3c7)](_0x39aff7[_0x589505(0x314)],_0x39aff7);}),Array[_0x27036c(0x19a)](_0x11e0e2[_0x27036c(0x38d)]());}var b=function(){const _0x5662fa=_0x511f53;return b=Object[_0x5662fa(0x19c)]||function(_0x5bec1e){const _0x4daa3b=_0x5662fa;for(var _0x3eb45d,_0x163270=0x1,_0x60ab92=arguments[_0x4daa3b(0x1dc)];_0x163270<_0x60ab92;_0x163270++){_0x3eb45d=arguments[_0x163270];for(var _0x5751f3 in _0x3eb45d)Object['prototype']['hasOwnProperty'][_0x4daa3b(0x1d1)](_0x3eb45d,_0x5751f3)&&(_0x5bec1e[_0x5751f3]=_0x3eb45d[_0x5751f3]);}return _0x5bec1e;},b[_0x5662fa(0x367)](this,arguments);},Ot=function(_0x46479e,_0xd3fd3f){const _0x6a16e3=_0x511f53;var _0x3eea59={};for(var _0x26850e in _0x46479e)Object[_0x6a16e3(0x3db)][_0x6a16e3(0x29d)][_0x6a16e3(0x1d1)](_0x46479e,_0x26850e)&&_0xd3fd3f[_0x6a16e3(0x18a)](_0x26850e)<0x0&&(_0x3eea59[_0x26850e]=_0x46479e[_0x26850e]);if(_0x46479e!=null&&typeof Object[_0x6a16e3(0x2f0)]==_0x6a16e3(0x34d)){for(var _0x4115c9=0x0,_0x26850e=Object[_0x6a16e3(0x2f0)](_0x46479e);_0x4115c9<_0x26850e[_0x6a16e3(0x1dc)];_0x4115c9++)_0xd3fd3f['indexOf'](_0x26850e[_0x4115c9])<0x0&&Object[_0x6a16e3(0x3db)][_0x6a16e3(0x2a5)]['call'](_0x46479e,_0x26850e[_0x4115c9])&&(_0x3eea59[_0x26850e[_0x4115c9]]=_0x46479e[_0x26850e[_0x4115c9]]);}return _0x3eea59;},pe=M[_0x511f53(0x194)](function(_0x5ed3d1,_0x1646cb){const _0x27f527=_0x511f53;var _0x1f9f9c=_0x5ed3d1[_0x27f527(0x3a9)],_0x21541a=_0x5ed3d1['id'],_0x2726b1=_0x5ed3d1[_0x27f527(0x379)],_0x38fc8c=_0x5ed3d1[_0x27f527(0x37c)],_0x46adba=Ot(_0x5ed3d1,[_0x27f527(0x3a9),'id',_0x27f527(0x379),_0x27f527(0x37c)]),_0x118ad2=_0x27f527(0x2d9)[_0x27f527(0x34b)](_0x21541a,'\x20')[_0x27f527(0x34b)](_0x2726b1||'')[_0x27f527(0x282)](),_0x484424=M['useRef']('_'[_0x27f527(0x34b)](Dt()));return Ae(_0x1f9f9c,''[_0x27f527(0x34b)](_0x21541a),{'defIds':_0x1f9f9c[_0x27f527(0x1ff)],'idSuffix':_0x484424[_0x27f527(0x2cd)]},b({'ref':_0x1646cb,'className':_0x118ad2},_0x46adba),_0x38fc8c);});function Ae(_0x15a15a,_0x2adf22,_0x35a1c9,_0x449e94,_0x78fef2){const _0x6692db=_0x511f53;return M['createElement'](_0x15a15a[_0x6692db(0x305)],b(b({'key':_0x2adf22},Tt(_0x15a15a,_0x35a1c9,_0x78fef2)),_0x449e94),(Rt(_0x15a15a,_0x35a1c9)[_0x6692db(0x2ca)]||[])[_0x6692db(0x39e)](function(_0x145389,_0x180861){const _0x3db124=_0x6692db;return Ae(_0x145389,''[_0x3db124(0x34b)](_0x2adf22,'-')['concat'](_0x15a15a[_0x3db124(0x305)],'-')[_0x3db124(0x34b)](_0x180861),_0x35a1c9,void 0x0,_0x78fef2);}));}function Tt(_0x197998,_0xb20195,_0x1962de){const _0x45cc65=_0x511f53;var _0x59656b=b({},_0x197998['attrs']);_0x1962de!=null&&_0x1962de[_0x45cc65(0x22d)]&&_0x59656b['fill']==='colorChannel1'&&(_0x59656b[_0x45cc65(0x243)]=_0x1962de['colorChannel1']),_0x197998[_0x45cc65(0x305)]===_0x45cc65(0x198)&&_0x59656b['id']&&(_0x59656b['id']=_0x59656b['id']+_0xb20195[_0x45cc65(0x3ad)]),Object[_0x45cc65(0x355)](_0x59656b)[_0x45cc65(0x29b)](function(_0x110d94){const _0x53f7d1=_0x45cc65;var _0x2cd014=_0x110d94[0x0],_0x1bc4ba=_0x110d94[0x1];_0x2cd014===_0x53f7d1(0x198)&&typeof _0x1bc4ba=='string'&&(_0x59656b[_0x2cd014]=_0x1bc4ba['replace'](/url\(#(.*)\)/,'url(#$1'[_0x53f7d1(0x34b)](_0xb20195['idSuffix'],')')));});var _0x422fae=_0xb20195[_0x45cc65(0x1ff)];return!_0x422fae||_0x422fae['length']===0x0||(_0x197998['tag']===_0x45cc65(0x1a6)&&_0x59656b['xlink:href']&&(_0x59656b[_0x45cc65(0x23c)]=_0x59656b[_0x45cc65(0x23c)]+_0xb20195[_0x45cc65(0x3ad)]),Object[_0x45cc65(0x355)](_0x59656b)[_0x45cc65(0x29b)](function(_0x5d109f){const _0x39a4d8=_0x45cc65;var _0x988fe4=_0x5d109f[0x0],_0x2c3849=_0x5d109f[0x1];typeof _0x2c3849==_0x39a4d8(0x240)&&(_0x59656b[_0x988fe4]=_0x2c3849['replace'](/url\(#(.*)\)/,_0x39a4d8(0x368)[_0x39a4d8(0x34b)](_0xb20195[_0x39a4d8(0x3ad)],')')));})),_0x59656b;}function Rt(_0x3307e2,_0x59aacd){const _0x3f7058=_0x511f53;var _0x30903c,_0x1ef5fe=_0x59aacd[_0x3f7058(0x1ff)];return!_0x1ef5fe||_0x1ef5fe[_0x3f7058(0x1dc)]===0x0?_0x3307e2:_0x3307e2[_0x3f7058(0x305)]===_0x3f7058(0x1d3)&&(!((_0x30903c=_0x3307e2[_0x3f7058(0x2ca)])===null||_0x30903c===void 0x0)&&_0x30903c[_0x3f7058(0x1dc)])?b(b({},_0x3307e2),{'children':_0x3307e2[_0x3f7058(0x2ca)][_0x3f7058(0x39e)](function(_0x393ebd){const _0x26c00a=_0x3f7058;return typeof _0x393ebd['attrs']['id']==_0x26c00a(0x240)&&_0x1ef5fe&&_0x1ef5fe[_0x26c00a(0x2c2)](_0x393ebd[_0x26c00a(0x301)]['id'])?b(b({},_0x393ebd),{'attrs':b(b({},_0x393ebd[_0x26c00a(0x301)]),{'id':_0x393ebd[_0x26c00a(0x301)]['id']+_0x59aacd[_0x26c00a(0x3ad)]})}):_0x393ebd;})}):_0x3307e2;}function Dt(){const _0x11fe7d=_0x511f53;return Math['random']()[_0x11fe7d(0x312)](0x24)['substring'](0x2,0x8);}pe['displayName']=_0x511f53(0x2d3);var Ut={'tag':_0x511f53(0x21d),'attrs':{'xmlns':_0x511f53(0x3ca),'fill':_0x511f53(0x363),'viewBox':_0x511f53(0x40b),'width':'1em','height':_0x511f53(0x260)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x511f53(0x3a2),'attrs':{'stroke':_0x511f53(0x232),'d':_0x511f53(0x382),'strokeLinecap':_0x511f53(0x1cc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x511f53(0x1d3),'attrs':{},'children':[{'tag':_0x511f53(0x2fb),'attrs':{'id':_0x511f53(0x2ee)},'children':[{'tag':_0x511f53(0x3a2),'attrs':{'fill':_0x511f53(0x267),'d':_0x511f53(0x2f9)}}]}]}],'defIds':[_0x511f53(0x2ee)]},ye=M['forwardRef'](function(_0x3ab75b,_0x43d379){const _0x4ddcd2=_0x511f53;return M['createElement'](pe,Object['assign']({},_0x3ab75b,{'id':_0x4ddcd2(0x2e7),'ref':_0x43d379,'icon':Ut}));});ye[_0x511f53(0x392)]=_0x511f53(0x334);var Nt={'tag':'svg','attrs':{'xmlns':_0x511f53(0x3ca),'fill':_0x511f53(0x363),'viewBox':_0x511f53(0x252),'width':'1em','height':_0x511f53(0x260)},'children':[{'tag':'g','attrs':{'clipPath':_0x511f53(0x2eb)},'children':[{'tag':_0x511f53(0x3a2),'attrs':{'stroke':'currentColor','d':_0x511f53(0x311),'strokeLinecap':_0x511f53(0x1cc),'strokeLinejoin':_0x511f53(0x1cc),'strokeWidth':1.2}}]},{'tag':_0x511f53(0x1d3),'attrs':{},'children':[{'tag':_0x511f53(0x2fb),'attrs':{'id':_0x511f53(0x3cb)},'children':[{'tag':_0x511f53(0x3a2),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x511f53(0x1fc)}}]}]}],'defIds':[_0x511f53(0x3cb)]},$e=M[_0x511f53(0x194)](function(_0x1d28de,_0x424c58){const _0x235f06=_0x511f53;return M[_0x235f06(0x2f1)](pe,Object[_0x235f06(0x19c)]({},_0x1d28de,{'id':_0x235f06(0x1c4),'ref':_0x424c58,'icon':Nt}));});function _0x543b(_0x1e8d4e,_0x4b289a){const _0x5a220a=_0x5a22();return _0x543b=function(_0x543b7b,_0x3ba0d1){_0x543b7b=_0x543b7b-0x17c;let _0xf47f78=_0x5a220a[_0x543b7b];return _0xf47f78;},_0x543b(_0x1e8d4e,_0x4b289a);}$e[_0x511f53(0x392)]=_0x511f53(0x206);function Mt(_0x6e7e08){const _0x47b8a0=_0x511f53;switch(_0x6e7e08){case u[_0x47b8a0(0x192)]['OFFLINE']:return _0x47b8a0(0x373);case u['CollaborationStatus'][_0x47b8a0(0x35c)]:return _0x47b8a0(0x364);case u['CollaborationStatus'][_0x47b8a0(0x2c0)]:return _0x47b8a0(0x339);case u[_0x47b8a0(0x192)][_0x47b8a0(0x2c7)]:return _0x47b8a0(0x230);case u[_0x47b8a0(0x192)][_0x47b8a0(0x3c0)]:case u[_0x47b8a0(0x192)][_0x47b8a0(0x2e0)]:return _0x47b8a0(0x374);case u[_0x47b8a0(0x192)][_0x47b8a0(0x31c)]:case u[_0x47b8a0(0x192)][_0x47b8a0(0x1e6)]:return _0x47b8a0(0x292);}}function xe(_0x46dc3d){const _0x100a06=_0x511f53,{status$:_0x126edd}=_0x46dc3d,_0x11f225=O['useObservable'](_0x126edd,u[_0x100a06(0x192)][_0x100a06(0x2c7)]),_0x4eb1cb=O[_0x100a06(0x281)](a['LocaleService']),_0x10b7a7=O[_0x100a06(0x281)](u[_0x100a06(0x3e0)]),_0x487144=_0x11f225!==u[_0x100a06(0x192)][_0x100a06(0x244)],_0x2dbc6e=_0x4eb1cb['t'](Mt(_0x11f225)),_0x5735c2=_0x487144?P[_0x100a06(0x36c)]($e,{}):P[_0x100a06(0x36c)](ye,{}),_0x3d9886=M['useCallback'](()=>{const _0x4dbdb1=_0x100a06;_0x487144||_0x10b7a7[_0x4dbdb1(0x371)]();},[_0x487144,_0x10b7a7]);function _0x3474cd(){const _0x286d5f=_0x100a06;return P['jsxs'](_0x286d5f(0x182),{'className':_0x286d5f(0x1c7),'onClick':_0x3d9886,'children':[P['jsx'](_0x286d5f(0x182),{'className':D[_0x286d5f(0x289)](_0x286d5f(0x1fd),{'univer-text-green-500':_0x487144,'univer-text-red-500':!_0x487144}),'children':_0x5735c2}),P['jsx'](_0x286d5f(0x182),{'className':_0x286d5f(0x1f9),'children':_0x2dbc6e})]});}return _0x487144?_0x3474cd():P['jsx'](D['Tooltip'],{'title':_0x4eb1cb['t'](_0x100a06(0x21b)),'children':_0x3474cd()});}var Lt=Object[_0x511f53(0x1d6)],Pt=(_0x1f5839,_0x617db4,_0xef89c3,_0x21410e)=>{for(var _0x42a3b3=_0x21410e>0x1?void 0x0:_0x21410e?Lt(_0x617db4,_0xef89c3):_0x617db4,_0x4ed017=_0x1f5839['length']-0x1,_0x265b95;_0x4ed017>=0x0;_0x4ed017--)(_0x265b95=_0x1f5839[_0x4ed017])&&(_0x42a3b3=_0x265b95(_0x42a3b3)||_0x42a3b3);return _0x42a3b3;},V=(_0xab9048,_0x285fff)=>(_0x17244c,_0x4fb641)=>_0x285fff(_0x17244c,_0x4fb641,_0xab9048);exports[_0x511f53(0x2bb)]=class extends a[_0x511f53(0x22b)]{constructor(_0x4dfb79,_0x5bd9ee,_0x45fbd3,_0x4ba1de){const _0x8f4362=_0x511f53;super(),h(this,_0x8f4362(0x3aa),new d[(_0x8f4362(0x263))](u[_0x8f4362(0x192)]['NOT_COLLAB'])),(this[_0x8f4362(0x1d5)]=_0x4dfb79,this[_0x8f4362(0x32e)]=_0x5bd9ee,this[_0x8f4362(0x250)]=_0x45fbd3,this['_uiPartsService']=_0x4ba1de,this[_0x8f4362(0x3c2)](),this[_0x8f4362(0x1f3)]());}['_initStatusListener'](){const _0x3f18d7=_0x511f53;this[_0x3f18d7(0x203)](this['_univerInstanceService'][_0x3f18d7(0x183)]['pipe'](d[_0x3f18d7(0x258)](()=>{const _0x5b9042=_0x3f18d7,_0x540955=this['_univerInstanceService'][_0x5b9042(0x1f1)]();return _0x540955?this[_0x5b9042(0x250)]['getCollabEntity$'](_0x540955[_0x5b9042(0x22f)]()):d['of'](null);}),d[_0x3f18d7(0x258)](_0x3d3292=>_0x3d3292?_0x3d3292['status$']:d['of'](u[_0x3f18d7(0x192)][_0x3f18d7(0x2c7)])))[_0x3f18d7(0x2d0)](_0x39248a=>{const _0x51e323=_0x3f18d7;this[_0x51e323(0x3aa)][_0x51e323(0x262)](_0x39248a);}));}['_initStatusComponent'](){const _0x2d1381=_0x511f53;this['disposeWithMe'](this[_0x2d1381(0x2a9)][_0x2d1381(0x2af)](O[_0x2d1381(0x39d)]['HEADER_MENU'],()=>O[_0x2d1381(0x1a3)](wt({'status$':this[_0x2d1381(0x3aa)][_0x2d1381(0x3bc)]()}),this[_0x2d1381(0x32e)])));}},exports[_0x511f53(0x2bb)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x511f53(0x3be)](a['Injector'])),V(0x2,a[_0x511f53(0x3be)](u[_0x511f53(0x376)])),V(0x3,O[_0x511f53(0x38e)])],exports[_0x511f53(0x2bb)]);function wt(_0x1e84e2){const {status$:_0x961241}=_0x1e84e2;return function(){const _0x56f063=_0x543b;return P[_0x56f063(0x36c)](xe,{'status$':_0x961241});};}var At=Object[_0x511f53(0x1d6)],yt=(_0x293ca2,_0x139def,_0x3870d8,_0x2982e2)=>{const _0x46f1d1=_0x511f53;for(var _0x4613ff=_0x2982e2>0x1?void 0x0:_0x2982e2?At(_0x139def,_0x3870d8):_0x139def,_0x19212b=_0x293ca2[_0x46f1d1(0x1dc)]-0x1,_0x402424;_0x19212b>=0x0;_0x19212b--)(_0x402424=_0x293ca2[_0x19212b])&&(_0x4613ff=_0x402424(_0x4613ff)||_0x4613ff);return _0x4613ff;},y=(_0x4e3f7e,_0x163216)=>(_0x113c0c,_0x42f499)=>_0x163216(_0x113c0c,_0x42f499,_0x4e3f7e);let q=class extends a[_0x511f53(0x22b)]{constructor(_0xf8c4f1,_0x429744,_0xc9815b,_0xd22f1a,_0x2bca34,_0x5346ca){const _0x294162=_0x511f53;super(),this[_0x294162(0x3c8)]=_0xf8c4f1,this[_0x294162(0x1d0)]=_0x429744,this[_0x294162(0x1f2)]=_0xc9815b,this[_0x294162(0x2ba)]=_0xd22f1a,this[_0x294162(0x299)]=_0x2bca34,this[_0x294162(0x290)]=_0x5346ca,this[_0x294162(0x249)](),this[_0x294162(0x30c)]();}[_0x511f53(0x249)](){const _0xb9ed35=_0x511f53;this[_0xb9ed35(0x203)](this[_0xb9ed35(0x3c8)][_0xb9ed35(0x38a)](()=>{const _0x41015d=_0xb9ed35;if(this[_0x41015d(0x1d0)][_0x41015d(0x248)][_0x41015d(0x17e)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x511f53(0x30c)](){const _0x59cd32=_0x511f53;this['disposeWithMe'](this[_0x59cd32(0x1f2)]['event$']['subscribe'](_0x164c85=>{const _0x305c96=_0x59cd32;_0x164c85['id']===u['CollaborationUIEventId'][_0x305c96(0x35b)]&&this[_0x305c96(0x2ba)]['show']({'type':D[_0x305c96(0x2f3)][_0x305c96(0x1c8)],'content':this[_0x305c96(0x290)]['t'](_0x305c96(0x2ac))}),_0x164c85['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this['_messageService'][_0x305c96(0x225)]({'type':D[_0x305c96(0x2f3)][_0x305c96(0x1c8)],'content':this[_0x305c96(0x290)]['t'](_0x305c96(0x223))}),_0x164c85['id']===u[_0x305c96(0x356)][_0x305c96(0x2ec)]&&this[_0x305c96(0x299)][_0x305c96(0x225)]({'title':this[_0x305c96(0x290)]['t'](_0x305c96(0x1f8)),'content':this[_0x305c96(0x290)]['t']('permission.content'),'type':_0x305c96(0x1bc),'duration':0x0}),_0x164c85['id']===u[_0x305c96(0x356)][_0x305c96(0x35c)]&&this[_0x305c96(0x2ba)][_0x305c96(0x225)]({'type':D[_0x305c96(0x2f3)]['Error'],'content':this['_localeService']['t'](_0x305c96(0x223))+'('+_0x164c85[_0x305c96(0x278)]+')'}),_0x164c85['id']===u[_0x305c96(0x356)][_0x305c96(0x29a)]&&this[_0x305c96(0x2ba)][_0x305c96(0x225)]({'type':D[_0x305c96(0x2f3)][_0x305c96(0x1c8)],'content':this['_localeService']['t'](_0x164c85['data']||'')}),_0x164c85['id']===u['CollaborationUIEventId'][_0x305c96(0x24e)]&&this[_0x305c96(0x2ba)][_0x305c96(0x225)]({'type':D[_0x305c96(0x2f3)][_0x305c96(0x1c8)],'content':this['_localeService']['t'](_0x305c96(0x3ed))}),_0x164c85['id']===u[_0x305c96(0x356)][_0x305c96(0x335)]&&this[_0x305c96(0x2ba)][_0x305c96(0x225)]({'type':D[_0x305c96(0x2f3)]['Error'],'content':this['_localeService']['t'](_0x305c96(0x3b4))}),_0x164c85['id']===u['CollaborationUIEventId'][_0x305c96(0x34c)]&&this[_0x305c96(0x2ba)][_0x305c96(0x225)]({'type':D[_0x305c96(0x2f3)][_0x305c96(0x1bb)],'content':this[_0x305c96(0x290)]['t'](_0x305c96(0x2b3))});}));}};q=yt([y(0x0,O[_0x511f53(0x1e2)]),y(0x1,u[_0x511f53(0x328)]),y(0x2,a[_0x511f53(0x3be)](u[_0x511f53(0x3cd)])),y(0x3,O[_0x511f53(0x1d4)]),y(0x4,O['INotificationService']),y(0x5,a[_0x511f53(0x3be)](a[_0x511f53(0x349)]))],q);const $t=_0x511f53(0x3bb),Ue={},Ee=a[_0x511f53(0x39c)](_0x511f53(0x2ad));var xt=Object['getOwnPropertyDescriptor'],Bt=(_0x275a67,_0xbc14c0,_0xd79701,_0x43cf1b)=>{const _0x24db01=_0x511f53;for(var _0x1762ab=_0x43cf1b>0x1?void 0x0:_0x43cf1b?xt(_0xbc14c0,_0xd79701):_0xbc14c0,_0xb887ae=_0x275a67[_0x24db01(0x1dc)]-0x1,_0x236939;_0xb887ae>=0x0;_0xb887ae--)(_0x236939=_0x275a67[_0xb887ae])&&(_0x1762ab=_0x236939(_0x1762ab)||_0x1762ab);return _0x1762ab;},F=(_0x1a8ed4,_0x4e5493)=>(_0x4eed2e,_0x43a5fd)=>_0x4e5493(_0x4eed2e,_0x43a5fd,_0x1a8ed4);exports[_0x511f53(0x3a1)]=class extends a[_0x511f53(0x1e5)]{constructor(_0x387474,_0x41c359,_0x51298c,_0x370535,_0x3f5007){const _0x53a2be=_0x511f53;super(),this[_0x53a2be(0x2de)]=_0x387474,this['_logService']=_0x41c359,this[_0x53a2be(0x1b9)]=_0x51298c,this[_0x53a2be(0x2e8)]=_0x370535,_0x3f5007?_0x3f5007==null||_0x3f5007['whenReady']()[_0x53a2be(0x36e)](()=>this['_init']()):(this['_logService'][_0x53a2be(0x407)](_0x53a2be(0x1c5),_0x53a2be(0x3a6)),this['_init']());}async['_init'](){const _0x10d87e=_0x511f53,_0x172aab=this[_0x10d87e(0x2de)][_0x10d87e(0x1b1)](_0x10d87e(0x1fa)),_0x29eb56=this[_0x10d87e(0x2de)]['getParam']('type'),_0xb31584=this['_urlService'][_0x10d87e(0x1b1)](_0x10d87e(0x39a));if(!_0x172aab||!_0x29eb56){this[_0x10d87e(0x406)][_0x10d87e(0x407)]('[CollaborationDataLoaderController]',_0x10d87e(0x1d7));return;}const _0x35fba0=await this[_0x10d87e(0x2e8)][_0x10d87e(0x40f)](_0x172aab,Number(_0x29eb56),_0xb31584);_0x35fba0&&_0x35fba0 instanceof a[_0x10d87e(0x247)]&&this[_0x10d87e(0x253)](_0x35fba0);}async[_0x511f53(0x253)](_0x42b14b){const _0xfee848=_0x511f53;await this['_updateSubUnitFromURLParams'](_0x42b14b),_0x42b14b[_0xfee848(0x313)][_0xfee848(0x33d)](d[_0xfee848(0x207)](this['dispose$']))[_0xfee848(0x2d0)](_0x12951f=>{const _0x41c137=_0xfee848;_0x12951f&&this[_0x41c137(0x21c)](_0x12951f);}),this[_0xfee848(0x2de)][_0xfee848(0x24c)][_0xfee848(0x33d)](d[_0xfee848(0x207)](this[_0xfee848(0x1cb)]))[_0xfee848(0x2d0)](()=>this[_0xfee848(0x3fe)](_0x42b14b));}[_0x511f53(0x21c)](_0xf40192,_0x3f5af6=!0x1){const _0x383cc6=_0x511f53,_0x5a8a7d=this[_0x383cc6(0x2de)][_0x383cc6(0x1b1)](_0x383cc6(0x39a));_0xf40192[_0x383cc6(0x365)]()!==_0x5a8a7d&&this[_0x383cc6(0x2de)][_0x383cc6(0x303)]('subunit',_0xf40192[_0x383cc6(0x365)](),_0x3f5af6);}async[_0x511f53(0x3fe)](_0x116855){const _0xebeeb8=_0x511f53;var _0x1963c5;const _0x50b8e2=this[_0xebeeb8(0x2de)][_0xebeeb8(0x1b1)](_0xebeeb8(0x39a));if(!_0x50b8e2||!_0x116855[_0xebeeb8(0x359)](_0x50b8e2)){const _0x2bda0d=_0x116855[_0xebeeb8(0x1ac)]()[0x0],_0x357981=_0x116855[_0xebeeb8(0x359)](_0x2bda0d);if(!_0x357981)return;this['_updateURLWithCurrentState'](_0x357981,!0x0),await this[_0xebeeb8(0x1b9)][_0xebeeb8(0x372)](g[_0xebeeb8(0x1d2)]['id'],{'unitId':_0x116855[_0xebeeb8(0x22f)](),'subUnitId':_0x2bda0d});return;}((_0x1963c5=_0x116855[_0xebeeb8(0x308)]())==null?void 0x0:_0x1963c5[_0xebeeb8(0x365)]())!==_0x50b8e2&&await this['_commandService']['executeCommand'](g[_0xebeeb8(0x1d2)]['id'],{'unitId':_0x116855[_0xebeeb8(0x22f)](),'subUnitId':_0x50b8e2});}},exports[_0x511f53(0x3a1)]=Bt([F(0x0,Ee),F(0x1,a[_0x511f53(0x3c9)]),F(0x2,a[_0x511f53(0x27b)]),F(0x3,a['Inject'](u['DataLoaderService'])),F(0x4,a[_0x511f53(0x235)](Ke[_0x511f53(0x3d5)]))],exports[_0x511f53(0x3a1)]);var jt=Object[_0x511f53(0x1d6)],kt=(_0x29bd52,_0x1cedcb,_0x3c13c8,_0x23f6ab)=>{const _0x5a2d5b=_0x511f53;for(var _0x3f9651=_0x23f6ab>0x1?void 0x0:_0x23f6ab?jt(_0x1cedcb,_0x3c13c8):_0x1cedcb,_0x1735bc=_0x29bd52[_0x5a2d5b(0x1dc)]-0x1,_0x5c6f37;_0x1735bc>=0x0;_0x1735bc--)(_0x5c6f37=_0x29bd52[_0x1735bc])&&(_0x3f9651=_0x5c6f37(_0x3f9651)||_0x3f9651);return _0x3f9651;},ce=(_0x47a39b,_0x28e757)=>(_0x27d656,_0xb4fb00)=>_0x28e757(_0x27d656,_0xb4fb00,_0x47a39b);let z=class{constructor(_0x5d77e3,_0x24ad47,_0x5595a0){const _0x2beb0b=_0x511f53;this[_0x2beb0b(0x32e)]=_0x5d77e3,this[_0x2beb0b(0x2b4)]=_0x24ad47,this[_0x2beb0b(0x201)]=_0x5595a0;}[_0x511f53(0x28f)](_0x38f35b){const _0x5cfa95=_0x511f53;this['_transformUndoRedoStack'](_0x38f35b),this[_0x5cfa95(0x2cf)](_0x38f35b);}[_0x511f53(0x323)](_0x3ff248){const _0x5023d5=_0x511f53,{unitID:_0x256ae4}=_0x3ff248,_0x42c75e=this[_0x5023d5(0x201)][_0x5023d5(0x309)](_0x256ae4)[_0x5023d5(0x1c1)](E[_0x5023d5(0x34a)]),{redoCache:_0x4c52fe}=_0x42c75e[_0x5023d5(0x2df)]();if(_0x4c52fe[_0x5023d5(0x1dc)]===0x0)return _0x3ff248;let _0x51117f=a[_0x5023d5(0x193)]['deepClone'](_0x3ff248['mutations'][0x0]);for(let _0x2e00a4=0x0;_0x2e00a4<_0x4c52fe[_0x5023d5(0x1dc)];_0x2e00a4++){const _0x31517f={'id':_0x5023d5(0x2f4),'params':{..._0x4c52fe[_0x2e00a4]}},_0x339716=this['_transformService'][_0x5023d5(0x381)](_0x51117f,_0x31517f,!0x1);if(m['isTransformMutationFailure'](_0x339716))throw _0x339716[_0x5023d5(0x1bc)];_0x51117f=_0x339716[_0x5023d5(0x2aa)];}return{...a[_0x5023d5(0x193)]['deepClone'](_0x3ff248),'mutations':[_0x51117f]};}[_0x511f53(0x36b)](_0x564850){const _0x53c54c=_0x511f53,{unitID:_0x479c15}=_0x564850,_0x416a61=this[_0x53c54c(0x201)][_0x53c54c(0x309)](_0x479c15)[_0x53c54c(0x1c1)](E[_0x53c54c(0x34a)]),{undoCache:_0x317f1c,redoCache:_0x4cffee}=_0x416a61[_0x53c54c(0x2df)]();if(_0x317f1c[_0x53c54c(0x1dc)]===0x0||_0x4cffee[_0x53c54c(0x1dc)]===0x0)return;const _0x19d3f1=[],_0x5b6418=[];let _0x407ee0=a['Tools'][_0x53c54c(0x2bf)](_0x564850[_0x53c54c(0x294)][0x0]),_0x187ab7=a[_0x53c54c(0x193)][_0x53c54c(0x2bf)](_0x564850[_0x53c54c(0x294)][0x0]);for(let _0x1a6550=_0x317f1c['length']-0x1;_0x1a6550>=0x0;_0x1a6550--){const _0x4adc56={'id':_0x53c54c(0x2f4),'params':{..._0x317f1c[_0x1a6550]}},_0x14eb66={'id':_0x53c54c(0x2f4),'params':{..._0x4cffee[_0x1a6550]}},_0xcec39f=this[_0x53c54c(0x2b4)][_0x53c54c(0x381)](_0x407ee0,_0x4adc56,!0x1),_0x772325=this[_0x53c54c(0x2b4)][_0x53c54c(0x381)](_0x187ab7,_0x14eb66,!0x1);if(m['isTransformMutationFailure'](_0xcec39f))throw _0xcec39f[_0x53c54c(0x1bc)];if(m[_0x53c54c(0x322)](_0x772325))throw _0x772325[_0x53c54c(0x1bc)];_0x19d3f1[_0x53c54c(0x3b0)](_0xcec39f[_0x53c54c(0x3d8)][_0x53c54c(0x411)]),_0x5b6418[_0x53c54c(0x3b0)](_0x772325[_0x53c54c(0x3d8)][_0x53c54c(0x411)]),_0x407ee0=_0xcec39f[_0x53c54c(0x2aa)],_0x187ab7=_0x772325[_0x53c54c(0x2aa)];}_0x416a61[_0x53c54c(0x3dc)]({'undoCache':_0x19d3f1,'redoCache':_0x5b6418});}['_transformPreviousActiveRange'](_0x4a0049){const _0x5161bd=_0x511f53,{unitID:_0x6adca}=_0x4a0049,_0x4c0fcd=this[_0x5161bd(0x201)][_0x5161bd(0x309)](_0x6adca)['with'](E[_0x5161bd(0x34a)]),_0x31309c=_0x4c0fcd[_0x5161bd(0x3f3)]();if(_0x31309c==null)return;const _0x1a4dd2=[{'id':_0x5161bd(0x2f4),'params':{'unitId':_0x4a0049[_0x5161bd(0x2ef)],'actions':null,'textRanges':[_0x31309c]}}],_0x40d52d=this[_0x5161bd(0x2b4)][_0x5161bd(0x307)](_0x4a0049,_0x1a4dd2);if(!m['isTransformMutationsWithChangesetSuccess'](_0x40d52d))throw _0x40d52d[_0x5161bd(0x1bc)];const _0x2ce02b=_0x40d52d[_0x5161bd(0x3d8)][0x0][_0x5161bd(0x411)][_0x5161bd(0x30a)];Array[_0x5161bd(0x287)](_0x2ce02b)&&_0x2ce02b['length']&&_0x4c0fcd[_0x5161bd(0x254)](_0x2ce02b[0x0]);}};z=kt([ce(0x0,a[_0x511f53(0x3be)](a[_0x511f53(0x1d8)])),ce(0x1,m[_0x511f53(0x214)]),ce(0x2,p[_0x511f53(0x3e7)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x2f5360,_0x33da19,_0x4056b2,_0x47685d)=>{const _0x524d36=_0x511f53;for(var _0x187d41=_0x47685d>0x1?void 0x0:_0x47685d?Ft(_0x33da19,_0x4056b2):_0x33da19,_0x212750=_0x2f5360[_0x524d36(0x1dc)]-0x1,_0x3e10a9;_0x212750>=0x0;_0x212750--)(_0x3e10a9=_0x2f5360[_0x212750])&&(_0x187d41=_0x3e10a9(_0x187d41)||_0x187d41);return _0x187d41;},le=(_0x27703d,_0x265c8e)=>(_0x3301ad,_0x181a7d)=>_0x265c8e(_0x3301ad,_0x181a7d,_0x27703d);let J=class{constructor(_0x547024,_0x19b1ce,_0x486e80){const _0x57fcbe=_0x511f53;this[_0x57fcbe(0x32e)]=_0x547024,this['_transformService']=_0x19b1ce,this[_0x57fcbe(0x3a4)]=_0x486e80;}[_0x511f53(0x37b)](_0xc230ac){const _0x300025=_0x511f53;this[_0x300025(0x231)](_0xc230ac);}[_0x511f53(0x323)](_0x5eb657){const _0x403075=_0x511f53,{unitID:_0x344fac}=_0x5eb657,{collaboration:_0x432ad5}=this[_0x403075(0x3a4)][_0x403075(0x3de)](_0x344fac);if(_0x432ad5[_0x403075(0x1dc)]===0x0)return _0x5eb657;let _0x3cdb65=a['Tools'][_0x403075(0x2bf)](_0x5eb657[_0x403075(0x294)][0x0]);for(let _0x49fa6d=0x0;_0x49fa6d<_0x432ad5['length'];_0x49fa6d++){const _0x5b3cd2={'id':_0x403075(0x2f4),'params':{'unitId':_0x432ad5[_0x49fa6d][_0x403075(0x32c)],..._0x432ad5[_0x49fa6d][_0x403075(0x3f5)]}},_0x669c2e=this['_transformService'][_0x403075(0x381)](_0x3cdb65,_0x5b3cd2,!0x1);if(m[_0x403075(0x322)](_0x669c2e))throw _0x669c2e[_0x403075(0x1bc)];_0x3cdb65=_0x669c2e[_0x403075(0x2aa)];}return{...a[_0x403075(0x193)][_0x403075(0x2bf)](_0x5eb657),'mutations':[_0x3cdb65]};}['_transformHistoryAndStateStack'](_0x33a41a){const _0x9b432c=_0x511f53,{unitID:_0x4dda5b}=_0x33a41a,{history:_0x19c6ca,collaboration:_0x3bb08b}=this[_0x9b432c(0x3a4)][_0x9b432c(0x3de)](_0x4dda5b);if(_0x19c6ca[_0x9b432c(0x1dc)]===0x0&&_0x3bb08b[_0x9b432c(0x1dc)]===0x0)return;const _0xa25d97=[],_0x343446=[];let _0x2788bd=a[_0x9b432c(0x193)][_0x9b432c(0x2bf)](_0x33a41a[_0x9b432c(0x294)][0x0]),_0x4e8724=a[_0x9b432c(0x193)][_0x9b432c(0x2bf)](_0x33a41a[_0x9b432c(0x294)][0x0]);for(let _0x4ff343=_0x19c6ca[_0x9b432c(0x1dc)]-0x1;_0x4ff343>=0x0;_0x4ff343--){const _0x23e4ad={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x19c6ca[_0x4ff343][_0x9b432c(0x32c)],..._0x19c6ca[_0x4ff343][_0x9b432c(0x3a3)]}},_0x27f5a8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x19c6ca[_0x4ff343][_0x9b432c(0x32c)],..._0x19c6ca[_0x4ff343][_0x9b432c(0x3f5)]}},_0x101c98=this[_0x9b432c(0x2b4)][_0x9b432c(0x381)](_0x2788bd,_0x23e4ad,!0x1),_0x4cf69c=this[_0x9b432c(0x2b4)][_0x9b432c(0x381)](_0x4e8724,_0x27f5a8,!0x1);if(m['isTransformMutationFailure'](_0x101c98))throw _0x101c98[_0x9b432c(0x1bc)];if(m[_0x9b432c(0x322)](_0x4cf69c))throw _0x4cf69c[_0x9b432c(0x1bc)];_0xa25d97['unshift']({..._0x19c6ca[_0x4ff343],'undoState':_0x101c98[_0x9b432c(0x3d8)][_0x9b432c(0x411)],'redoState':_0x4cf69c[_0x9b432c(0x3d8)][_0x9b432c(0x411)]}),_0x2788bd=_0x101c98[_0x9b432c(0x2aa)],_0x4e8724=_0x4cf69c['m1Prime'];}_0x2788bd=a[_0x9b432c(0x193)][_0x9b432c(0x2bf)](_0x33a41a[_0x9b432c(0x294)][0x0]),_0x4e8724=a[_0x9b432c(0x193)]['deepClone'](_0x33a41a['mutations'][0x0]);for(let _0x835226=_0x3bb08b[_0x9b432c(0x1dc)]-0x1;_0x835226>=0x0;_0x835226--){const _0xd014d2={'id':_0x9b432c(0x2f4),'params':{'unitId':_0x3bb08b[_0x835226][_0x9b432c(0x32c)],..._0x3bb08b[_0x835226][_0x9b432c(0x3a3)]}},_0x3b8358={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3bb08b[_0x835226][_0x9b432c(0x32c)],..._0x3bb08b[_0x835226][_0x9b432c(0x3f5)]}},_0x4fe686=this[_0x9b432c(0x2b4)][_0x9b432c(0x381)](_0x2788bd,_0xd014d2,!0x1),_0x535138=this['_transformService']['transformMutation'](_0x4e8724,_0x3b8358,!0x1);if(m['isTransformMutationFailure'](_0x4fe686))throw _0x4fe686[_0x9b432c(0x1bc)];if(m[_0x9b432c(0x322)](_0x535138))throw _0x535138[_0x9b432c(0x1bc)];_0x343446['unshift']({..._0x3bb08b[_0x835226],'undoState':_0x4fe686[_0x9b432c(0x3d8)][_0x9b432c(0x411)],'redoState':_0x535138[_0x9b432c(0x3d8)][_0x9b432c(0x411)]}),_0x2788bd=_0x4fe686[_0x9b432c(0x2aa)],_0x4e8724=_0x535138[_0x9b432c(0x2aa)];}this[_0x9b432c(0x3a4)]['setStateCache'](_0x4dda5b,{'history':_0xa25d97,'collaboration':_0x343446});}};J=Ht([le(0x0,a[_0x511f53(0x3be)](a[_0x511f53(0x1d8)])),le(0x1,m[_0x511f53(0x214)]),le(0x2,a[_0x511f53(0x3be)](E[_0x511f53(0x34f)]))],J);var Yt=Object[_0x511f53(0x1d6)],Wt=(_0x7f6a47,_0x15bfc0,_0x100109,_0x5baaa6)=>{for(var _0x21ed21=_0x5baaa6>0x1?void 0x0:_0x5baaa6?Yt(_0x15bfc0,_0x100109):_0x15bfc0,_0x50a629=_0x7f6a47['length']-0x1,_0x5e7214;_0x50a629>=0x0;_0x50a629--)(_0x5e7214=_0x7f6a47[_0x50a629])&&(_0x21ed21=_0x5e7214(_0x21ed21)||_0x21ed21);return _0x21ed21;},Ne=(_0x1f50bb,_0xad3d70)=>(_0x35a7f8,_0x265b40)=>_0xad3d70(_0x35a7f8,_0x265b40,_0x1f50bb);let Z=class{constructor(_0x5434a3,_0x76ea18){const _0x3693ce=_0x511f53;this[_0x3693ce(0x32e)]=_0x5434a3,this[_0x3693ce(0x2b4)]=_0x76ea18;}[_0x511f53(0x1a5)](_0x54a827){const _0x5c820c=_0x511f53;var _0x2d239c;const _0x1e54a7=this['_injector']['get'](Y[_0x5c820c(0x215)]),_0x5a1ae1=(_0x2d239c=_0x1e54a7[_0x5c820c(0x3b3)]())!=null?_0x2d239c:[];if(_0x5a1ae1[_0x5c820c(0x1dc)]===0x0)return;const _0x3238d2=_0x54a827[_0x5c820c(0x2ef)],_0x371be1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3238d2,'actions':null,'textRanges':_0x5a1ae1}}],_0x36fb1a=this[_0x5c820c(0x2b4)]['transformMutationsWithChangeset'](_0x54a827,_0x371be1);if(!m['isTransformMutationsWithChangesetSuccess'](_0x36fb1a))throw _0x36fb1a['error'];const _0x21e1be=_0x36fb1a[_0x5c820c(0x3d8)][0x0][_0x5c820c(0x411)][_0x5c820c(0x30a)];Array[_0x5c820c(0x287)](_0x21e1be)&&_0x21e1be[_0x5c820c(0x1dc)]&&_0x1e54a7[_0x5c820c(0x33a)](_0x21e1be,{'unitId':_0x3238d2,'subUnitId':_0x3238d2},!0x1);}};Z=Wt([Ne(0x0,a[_0x511f53(0x3be)](a[_0x511f53(0x1d8)])),Ne(0x1,m[_0x511f53(0x214)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x165b7f,_0x2c3f21,_0x2e29b6,_0x3835f2)=>{const _0x5cd82f=_0x511f53;for(var _0x35ed07=_0x3835f2>0x1?void 0x0:_0x3835f2?Vt(_0x2c3f21,_0x2e29b6):_0x2c3f21,_0x152d66=_0x165b7f[_0x5cd82f(0x1dc)]-0x1,_0x4fac7a;_0x152d66>=0x0;_0x152d66--)(_0x4fac7a=_0x165b7f[_0x152d66])&&(_0x35ed07=_0x4fac7a(_0x35ed07)||_0x35ed07);return _0x35ed07;},N=(_0x567049,_0x407eb9)=>(_0x2fec82,_0x5ebd9d)=>_0x407eb9(_0x2fec82,_0x5ebd9d,_0x567049);function _0x5a22(){const _0x1dd549=['path','undoState','_docStateChangeManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_startDocCollabCursor','handleInsertCol','icon','_status$','result','@univerjs/engine-formula','idSuffix','_send','_cachedData','unshift','lineTo','type','getDocRanges','session.connection-failed','entityInit$','LOCAL_CACHE_INTERVAL','1450776rIluod','[RemoteUniscriptService]:\x20no\x20focused\x20unit','DependentOn','distinctUntilChanged','collaboration-client-ui.config','asObservable','handleMoveRange','Inject','filter','AWAITING','LICENSE_IMPORT_SIZE_EXCEEDED','_initStatusComponent','FromArray','newValue','_selfUnitIDs','moveTo','set','_beforeCloseService','ILogService','http://www.w3.org/2000/svg','on-line-icon_clip0_910_349','exhaustSavingTask','CollaborationUIEventService','INVALID_ARGUMENT','override','onLocalMutation','_range','BrowserCollaborationSocketService','getCurrentSelections','_toggleOffline','IRemoteInstanceService','SetSelectionsOperation','ONLINE','m2Prime','getVpScrollXYInfoByPosToVp','_memberService','prototype','setUndoRedoMutationParamsCache','makeDirty','getStateCache','getSkeleton','CollaborationSessionService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getMergeData','@univerjs/engine-render','_registerRenderDependencies','resize','getUnitStatus$','IRenderManagerService','_init','_heartbeatTimer','_textBubble','750615ILXwsz','toStringTag','session.will-retry','RevisionService','currentSkeleton$','mergeOverrideWithDependencies','Module','NO_OTHER_CLIENTS_EDITING','getActiveRange','getColor','redoState','debounceTime','APPLY_DUPLICATED','executionId','restore','TEXT_RANGE_LAYER_INDEX','rxjs','_colorAssignService','_entities','_updateSubUnitFromURLParams','SNAPSHOT_HAS_BEEN_REMOVED','cursorInfo$','history','RemoteUniscriptService','getRangePointData','addClipboardHook','combineLatest','_logService','debug','@univerjs/docs','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_registerDependencies','0\x200\x2016\x2016','MOBILE_HAS_BEEN_BOUND','ThemeService','key','loadUnit','@univerjs/design','params','_cursors','top','size','LICENSE_DISTRO_REJECTED','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorController','div','focused$','text','fillText','_initEntityListener','fillRule','drawWith','CollaborationEvent','indexOf','all','InsertColCommandId','EffectRefRangId','invokeId','NodePositionConvertToRectRange','INVALID_INVITE_CODE','InsertRangeMoveRightCommandId','CollaborationStatus','Tools','forwardRef','saveOfflineData','HTTPService','SHEET_VIEWPORT_KEY','mask','_lastPointer','from','18kGAdLg','assign','@univerjs/sheets','UniverInstanceType','SheetsSelectionsService','_cursor','Vector2','_drawRectRange','connectInjector','_ensureSubject','transformSelections','use','NOT_FOUND','OTHER_CLIENTS_EDITING','COLORS','handleDeleteRangeMoveLeft','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getUnhiddenWorksheets','_updateCollabCursors','_anchor','registerRefRange','WebBrowserSingleActiveUnitService','getParam','Failed','SetTextSelectionsOperation','setTimeout','_color','IImageIoService','editingUnit','mapTo','_commandService','min','Error','error','YUUMI_AI_RUN_FAILED','IUniverInstanceService','_hover','measureText','with','RemoveColCommandId','fillStyle','on-line-icon','[CollaborationDataLoaderController]','height','univer-flex\x20univer-items-center','Warning','registerRenderModule','APPLY_REJECT','dispose$','round','_removeClearOtherTimer','_initResize','replaceState','_localCacheService','call','SetWorksheetActivateCommand','defs','IMessageService','_univerInstanceService','getOwnPropertyDescriptor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Injector','_anchorDot','_handleEvent','_draw','length','docStateChange$','UNRECOGNIZED','Rect','backgroundColor','symbol','IBeforeCloseService','runRefRangeMutations','YUUMI_RATE_OVER_LIMIT','RxDisposable','PENDING','SNAPSHOT_INVALID_SNAPSHOT','_toggleOnline','_removeCollabCursors','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UNAUTHENTICATED','APPLY_NON_SEQUENTIAL_REVISION','purple.300','_handleHeartbeatEvent','_themeService','13011690NWSpyO','getFocusedUnit','_collaborationUIEventService','_initStatusListener','evenodd','_hideTimer','imageSourceType','VIEW_MAIN','permission.title','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','unit','DeleteRangeMoveLeftCommandId','translate(.97)','univer-mr-2\x20univer-flex\x20univer-text-xl','_handleLeaveEvent','defIds','black','_renderManagerService','stringify','disposeWithMe','UniverCollaborationClientUIPlugin','name','OnLineIcon','takeUntil','USER_NOT_INVITED_CODE','_onRefRangeChange','ISnapshotServerService','ColorKit','onTransformChange$','_getSheetObject','_scheduleHeartbeat','_updateLocalCursor','_cursorShapes','_colorIndex','hovered','_getSessionTicket','ITransformService','DocSelectionManagerService','_initCommandExecutedListener','addObjects','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationSocketService','pushState','collab-client.tooltip.reconnect','_updateURLWithCurrentState','svg','YUUMI_CONNECTOR_URL_NOT_FOUND','get','disableLocalCache','_id','origin','collaboration.closeRoom','getCellPositionByOffset','show','rxjs/operators','generateRandomId','IDocClipboardService','_onCursorDelete','/run/','Disposable','UNIVER_SHEET','colorChannel1','column','getUnitId','collabStatus.notCollab','_transformHistoryAndStateStack','currentColor','INVITE_CODE_ALREADY_BOUND','handleInsertRangeMoveDown','Optional','_syncEditingCollabCursorService','_refreshCollabCursors','toDisposable','651810SkcVfb','dispose','push','xlink:href','DOC_RANGE_TYPE','Subject','_refRangeService','string','CONNECTOR_DATA_TOO_LARGE','range','fill','OFFLINE','application/json','red.300','Workbook','saveTaskMap','_setupBeforeClosingHandler','_collabCursorState$','shareReplay','urlChange$','IURLService','SOCKET_FAILED_RETRY','_docClipboardService','_collaborationController','_roomMembers$','0\x200\x2017\x2016','_setupSubUnitSync','setActiveRange','NodePositionConvertToCursor','roomMembers$','INTERNAL_ERROR','switchMap','event$','YUUMI_ALL_TABLES_IS_INVALID','getSheetObject','_name','addEventListener','subUnitId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','1em','2114174azSIZn','next','BehaviorSubject','YUUMI_UNABLE_LOAD_URL','some','handleDeleteRangeMoveUp','white','_unitOnClients','toRgbString','unload','requireSession','getMemberID','getMember','cursorInfo','CollaborationStatusDisplay','getCurrentRevOfUnit','_session','throttleTime','setShapeProps','_instanceService','currentTheme$','_createSocketURL','handleInsertRangeMoveRight','data','collab-text-range-','hide','ICommandService','InsertRangeMoveDownCommandId','eventID','font','YUUMI_NO_CUBOID_FOR_QUESTION','addObject','useDependency','trim','9xGJdUo','LOCAL_CACHE_INTERVAL_KEY','enableLocalCache','sheetID','isArray','debounce','clsx','APPLY_REVISION_CONFILICT','_imageIoService','CommandType','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_online','transformIMECache','_localeService','isActive','collabStatus.synced','disposeUnit','mutations','transform','_saveCache','Plugin','UNDEFINED','_notificationService','JOIN_ROOM_FAILED','forEach','_clearOtherTimers','hasOwnProperty','_docTransformStateCacheService','SheetCollabCursorShape','InsertRowCommandId','_saveTaskMap','_localStorageService','fromEventSubject','startColumn','propertyIsEnumerable','setConfig','source','_labelPosition','_uiPartsService','m1Prime','ranges','collaboration.single-unit.warning','uni.network.url-service','_docTransformIMECacheService','registerComponent','_getAnchorBounding','RefRangeService','getColorFromTheme','session.collaboration-timeout','_transformService','getUniverSheetInstance','_doCreateSocket','_httpService','_unitStatus','onPointerEnter$','_messageService','DesktopCollaborationStatusDisplayController','isEditing','has','CHANGESET_REVISION_CONFILICT','deepClone','FETCH_MISS','UPDATE_CURSOR','includes','runId','@univerjs/ui','getCoordByCell','LICENSE_MAX_UNITS_EXCEEDED','NOT_COLLAB','body','_disabled','children','_shapes','49rzRdfh','current','memberID','_transformPreviousActiveRange','subscribe','_revisionService','_drawAnchor','UniverIcon','add','handleInsertRow','triggerDblclick','createInstance','_collabSessionService','univerjs-icon\x20univerjs-icon-','MUTATION','YUUMI_ASYNCIO_CANCELLED','delete','YUUMI_URL_COL_OUT_OF_RANGE','_urlService','getUndoRedoMutationParamsCache','AWAITING_WITH_PENDING','_drawTextRange','row','_getScale','UNIVER_DOC','_docSkeletonManagerService','selections','off-line-icon','_dataLoaderService','getTypeOfUnitDisposed$','arc','url(#on-line-icon_clip0_910_349)','PERMISSION_DENIED','pluginName','off-line-icon_clip0_910_343','unitID','getOwnPropertySymbols','createElement','engine','MessageType','doc.mutation.rich-text-editing','_render','4557408BqvfTH','runOnServer','complete','M0\x200H16V16H0z','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','clipPath','assignAColorForMemberID','color','_getSaveTimeout','collab-rect-range-','split','attrs','width','setParam','_scheduleClearOtherTimer','tag','sessionTicket','transformMutationsWithChangeset','getActiveSheet','getRenderById','textRanges','saveImage','_initEvent','getTypeOfUnitAdded$','createSocket','EMAIL_VERIFY_CODE_MISMATCH','@univerjs/network','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','toString','activeSheet$','selection','blue.400','_handleHover','getOffsetConfig','WebURLService','collabCursorState$','_assignedColors','green.600','SYNCED','save','Unknown\x20user','_entityInit$','endRow','_docTransformSelectionsService','isTransformMutationFailure','transformRemoteChangeset','rgba(255,\x20255,\x20255,\x200.01)','UnitStatus','_cursorInfo$','setItem','ILocalCacheService','USERS_LEAVE','RegularPolygon','ENSURE_SNAPSHOT_EXECUTION','unitId','onCommandExecuted','_injector','@univerjs/drawing','SheetSkeletonManagerService','_context','sheetId','INVITE_CODE_HAS_BEEN_UES','OffLineIcon','SOCKET_FAILED','_configService','COMPLETION_FINISHED','closePath','collabStatus.fetchMiss','replaceDocRanges','_config','merge','pipe','_onCursorUpdate','syncEditingCollabCursor','RECT','init','addHandlerCallback','@univerjs/core','_sheetSkeletonManagerService','getCollabCursors$','526548ZOvWcU','clearInterval','WECHAT_HAS_BEEN_BOUND','LocaleService','DocIMEInputManagerService','concat','SUBMIT_CHANGESET_TIMEOUT','function','jiqing.500','DocStateChangeManagerService','findNodePositionByCharIndex','onPointerMove$','getLocalCacheKey','roomMembers','transformByState','entries','CollaborationUIEventId','react/jsx-runtime','setAlpha','getSheetBySheetId','_initDependencies','OTHER_CLIENT_EDITING','CONFLICT','onMouseMove','ACTIVE_UNIT_EVENT_CHANNEL','startRow','TOO_MANY_REQUESTS','LOGIN_FAILED','_eventUnsubscribe','none','collabStatus.conflict','getSheetId','_hovered','apply','url(#$1','location','_docSkeleton','_transformUndoRedoStack','jsx','IConfigService','then','subscribeEvent','popstate','reconnect','executeCommand','collabStatus.offline','collabStatus.syncing','updateOfflineData','CollaborationController','MoveRangeCommandId','getValue','className','sessionStatus$','transformStateCache','extend','MOBILE_VERIFY_CODE_MISMATCH','beginPath','TEXT','wsSessionTicketUrl','transformMutation','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','onPointerLeave$','@univerjs/sheets-ui','_handleJoinEvent','_scene','fromEvent','getItem','getViewport','registerBeforeClose','unsubscribe','code','values','IUIPartsService','getAncestorScale','_backgroundColor','@univerjs-pro/collaboration-client','displayName','EMAIL_HAS_BEEN_BOUND','skeleton','searchParams','getRelativeToViewportCoord','href','getConfig','loadOfflineData','subunit','SetDocZoomRatioOperation','createIdentifier','BuiltInUIPart','map','_docSyncEditingCollabCursorService','send','CollaborationDataLoaderController'];_0x5a22=function(){return _0x1dd549;};return _0x5a22();}let Q=class extends a[_0x511f53(0x22b)]{constructor(_0x74cfe3,_0x32ad63,_0x4068f7,_0x5a6356,_0x45ac0f,_0x4e192d,_0x4786ed,_0x3b9885){const _0x4672fb=_0x511f53;super(),h(this,_0x4672fb(0x3aa),new d[(_0x4672fb(0x263))](u[_0x4672fb(0x192)]['NOT_COLLAB'])),(this[_0x4672fb(0x3a4)]=_0x74cfe3,this['_collaborationController']=_0x32ad63,this[_0x4672fb(0x2ae)]=_0x4068f7,this[_0x4672fb(0x29e)]=_0x5a6356,this[_0x4672fb(0x321)]=_0x45ac0f,this[_0x4672fb(0x39f)]=_0x4e192d,this[_0x4672fb(0x2ba)]=_0x4786ed,this[_0x4672fb(0x290)]=_0x3b9885,this[_0x4672fb(0x186)]());}[_0x511f53(0x186)](){const _0x269540=_0x511f53;this[_0x269540(0x203)](this[_0x269540(0x250)][_0x269540(0x3b5)]['subscribe'](_0xa77fe8=>{const _0x334c25=_0x269540,_0x44f011=this[_0x334c25(0x3a4)][_0x334c25(0x1dd)][_0x334c25(0x2d0)](_0x277131=>{const _0xc98e0c=_0x334c25;if(_0x277131==null)return;const {unitId:_0x12608e,redoState:_0x3225b4,commandId:_0x48b73f}=_0x277131;if(_0x12608e!==_0xa77fe8[_0xc98e0c(0x2ef)])return;const _0xacf79c={'id':_0x48b73f,'type':a[_0xc98e0c(0x28c)][_0xc98e0c(0x2da)],'params':{'unitId':_0x12608e,'actions':_0x3225b4['actions'],'textRanges':null}};_0xa77fe8[_0xc98e0c(0x3d0)](_0xacf79c);});if(_0xa77fe8['disposeWithMe'](_0x44f011),_0xa77fe8 instanceof u['DocCollaborationEntity']){const _0x378053={'onTransformIME':_0x1852c1=>this[_0x334c25(0x2ae)][_0x334c25(0x28f)](_0x1852c1),'onTransformState':_0x238bcf=>this[_0x334c25(0x29e)][_0x334c25(0x37b)](_0x238bcf),'onTransformSelections':_0x7100a=>this[_0x334c25(0x321)][_0x334c25(0x1a5)](_0x7100a),'onSyncEditingCollabCursor':_0x1db6bd=>this[_0x334c25(0x39f)]['syncEditingCollabCursor'](_0x1db6bd),'onTransformRemoteChangesetByIMECache':_0x1c80f1=>this[_0x334c25(0x2ae)]['transformRemoteChangeset'](_0x1c80f1),'onTransformRemoteChangesetByStateCache':_0x1d47f2=>this[_0x334c25(0x29e)]['transformRemoteChangeset'](_0x1d47f2)};_0xa77fe8[_0x334c25(0x342)](_0x378053);}}));}};Q=Xt([N(0x0,a[_0x511f53(0x3be)](E[_0x511f53(0x34f)])),N(0x1,a[_0x511f53(0x3be)](u[_0x511f53(0x376)])),N(0x2,a[_0x511f53(0x3be)](z)),N(0x3,a[_0x511f53(0x3be)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x511f53(0x3be)](Ce)),N(0x6,O[_0x511f53(0x1d4)]),N(0x7,a['Inject'](a['LocaleService']))],Q);var Gt=Object[_0x511f53(0x1d6)],Kt=(_0x44db79,_0xbc453e,_0x37ceec,_0x32a66c)=>{for(var _0xef15b0=_0x32a66c>0x1?void 0x0:_0x32a66c?Gt(_0xbc453e,_0x37ceec):_0xbc453e,_0x195d73=_0x44db79['length']-0x1,_0x2426d4;_0x195d73>=0x0;_0x195d73--)(_0x2426d4=_0x44db79[_0x195d73])&&(_0xef15b0=_0x2426d4(_0xef15b0)||_0xef15b0);return _0xef15b0;},_e=(_0x463ec6,_0xd80fcc)=>(_0x50b5ce,_0x72a9f9)=>_0xd80fcc(_0x50b5ce,_0x72a9f9,_0x463ec6);let ge=class extends a[_0x511f53(0x22b)]{constructor(_0x3fe9fb,_0x4727d7,_0x1f9286){const _0x38eb42=_0x511f53;super(),h(this,_0x38eb42(0x3af),new Map()),h(this,_0x38eb42(0x2a1),new Map()),h(this,'_disabled',!0x1),(this[_0x38eb42(0x336)]=_0x3fe9fb,this[_0x38eb42(0x2a2)]=_0x4727d7,this[_0x38eb42(0x2d1)]=_0x1f9286);}[_0x511f53(0x220)](){const _0x5a0e8c=_0x511f53;this[_0x5a0e8c(0x2c9)]=!0x0;}[_0x511f53(0x285)](){const _0x150cc3=_0x511f53;this[_0x150cc3(0x2c9)]=!0x1;}get[_0x511f53(0x248)](){return this['_saveTaskMap'];}[_0x511f53(0x23a)](){const _0x5c2cf0=_0x511f53;this[_0x5c2cf0(0x3cc)]()[_0x5c2cf0(0x36e)](()=>super['dispose']());}async[_0x511f53(0x399)](_0x45f62d){const _0x12ff9a=_0x511f53;return this['_disabled']?null:this[_0x12ff9a(0x2a2)][_0x12ff9a(0x388)](u[_0x12ff9a(0x352)](_0x45f62d));}async[_0x511f53(0x195)](_0x588aa2,_0x258853){const _0x575668=_0x511f53;return!!this[_0x575668(0x2a2)][_0x575668(0x327)](_0x588aa2,_0x258853);}[_0x511f53(0x375)](_0x4c0837,_0x232d6f,_0x1fe59d,_0xb67088){const _0x4e4b44=_0x511f53,_0x3e4758=this['_revisionService'][_0x4e4b44(0x270)](_0x4c0837);this['_cachedData'][_0x4e4b44(0x3c7)](_0x4c0837,{'unitID':_0x4c0837,'type':_0x232d6f,'awaitingChangeset':_0x1fe59d,'mutations':_0xb67088,'rev':_0x3e4758}),this['_saveTaskMap'][_0x4e4b44(0x2bd)](_0x4c0837)||this['_scheduleSaving'](_0x4c0837);}['_scheduleSaving'](_0x52d98a){const _0x214a56=_0x511f53,_0x296013=this[_0x214a56(0x2fe)]();_0x296013===0x0?this['_saveCache'](_0x52d98a):this['_saveTaskMap'][_0x214a56(0x3c7)](_0x52d98a,setTimeout(()=>this[_0x214a56(0x296)](_0x52d98a),_0x296013));}[_0x511f53(0x2fe)](){const _0x56389f=_0x511f53;var _0xccedc5;return(_0xccedc5=this['_configService'][_0x56389f(0x398)](u[_0x56389f(0x284)]))!=null?_0xccedc5:u[_0x56389f(0x3b6)];}[_0x511f53(0x296)](_0x486f8a){const _0x5931f9=_0x511f53,_0x422ee1=this[_0x5931f9(0x2a1)][_0x5931f9(0x21f)](_0x486f8a);return _0x422ee1!==void 0x0&&window['clearTimeout'](_0x422ee1),this[_0x5931f9(0x2a2)][_0x5931f9(0x327)](u[_0x5931f9(0x352)](_0x486f8a),this[_0x5931f9(0x3af)]['get'](_0x486f8a))[_0x5931f9(0x36e)](()=>this['_saveTaskMap']['delete'](_0x486f8a));}async['exhaustSavingTask'](){const _0x5b78dd=_0x511f53,_0x49905c=[];this[_0x5b78dd(0x2a1)][_0x5b78dd(0x29b)]((_0x4aa935,_0x71e446)=>{const _0x351c88=_0x5b78dd;window['clearTimeout'](_0x4aa935),_0x49905c[_0x351c88(0x23b)](this['_saveCache'](_0x71e446)[_0x351c88(0x36e)](()=>{const _0x2183ab=_0x351c88;this[_0x2183ab(0x2a1)]['delete'](_0x71e446);}));}),await Promise[_0x5b78dd(0x18b)](_0x49905c);}};ge=Kt([_e(0x0,a[_0x511f53(0x36d)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x511f53(0x3be)](m[_0x511f53(0x3ee)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x2cc6a9=_0x511f53;super(),h(this,'urlChange$'),this[_0x2cc6a9(0x24c)]=d[_0x2cc6a9(0x387)](window,_0x2cc6a9(0x370))[_0x2cc6a9(0x33d)](d[_0x2cc6a9(0x207)](this[_0x2cc6a9(0x1cb)]),d[_0x2cc6a9(0x24b)](0x1),d[_0x2cc6a9(0x1b8)](void 0x0));}['setParam'](_0x214149,_0x2bf680,_0x408573=!0x1){const _0x410739=_0x511f53,_0x2c6e60=new URL(window[_0x410739(0x369)]['href']);_0x2c6e60[_0x410739(0x395)][_0x410739(0x3c7)](_0x214149,_0x2bf680),_0x408573?window[_0x410739(0x401)][_0x410739(0x1cf)]('','',_0x2c6e60[_0x410739(0x312)]()):window['history']['pushState']('','',_0x2c6e60['toString']());}['removeParam'](_0x36fcbd,_0x424097=!0x1){const _0x3e8b17=_0x511f53,_0x105681=new URL(window[_0x3e8b17(0x369)][_0x3e8b17(0x397)]);_0x105681['searchParams']['delete'](_0x36fcbd),_0x424097?window['history'][_0x3e8b17(0x1cf)]('','',_0x105681['toString']()):window['history'][_0x3e8b17(0x21a)]('','',_0x105681['toString']());}[_0x511f53(0x1b1)](_0x36cc58){const _0x372b86=_0x511f53;var _0x42243f;return(_0x42243f=new URL(window[_0x372b86(0x369)][_0x372b86(0x397)])[_0x372b86(0x395)]['get'](_0x36cc58))!=null?_0x42243f:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2c7da6,_0x57a49d,_0x455c11)=>_0x57a49d in _0x2c7da6?qt(_0x2c7da6,_0x57a49d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x455c11}):_0x2c7da6[_0x57a49d]=_0x455c11,Zt=(_0x4a220b,_0x4e0e21,_0x53870e,_0x14ffbf)=>{const _0x27c87f=_0x511f53;for(var _0x44033b=_0x14ffbf>0x1?void 0x0:_0x14ffbf?zt(_0x4e0e21,_0x53870e):_0x4e0e21,_0x10b92f=_0x4a220b[_0x27c87f(0x1dc)]-0x1,_0x4e9848;_0x10b92f>=0x0;_0x10b92f--)(_0x4e9848=_0x4a220b[_0x10b92f])&&(_0x44033b=_0x4e9848(_0x44033b)||_0x44033b);return _0x44033b;},he=(_0x4a798e,_0x19e65f)=>(_0x519c65,_0xa1f4b5)=>_0x19e65f(_0x519c65,_0xa1f4b5,_0x4a798e),Qt=(_0x56586b,_0x376f95,_0x5e9152)=>Jt(_0x56586b,_0x376f95+'',_0x5e9152);const es=_0x511f53(0x3e1);exports[_0x511f53(0x204)]=class extends a[_0x511f53(0x297)]{constructor(_0x4b9bc2=Ue,_0x3393dd,_0x41e17b,_0x1ec6c8){const _0x2dcf98=_0x511f53;super(),this[_0x2dcf98(0x33b)]=_0x4b9bc2,this[_0x2dcf98(0x201)]=_0x3393dd,this[_0x2dcf98(0x32e)]=_0x41e17b,this['_configService']=_0x1ec6c8;const {..._0x403d9c}=a['merge']({},Ue,this[_0x2dcf98(0x33b)]);this[_0x2dcf98(0x336)][_0x2dcf98(0x2a6)]($t,_0x403d9c);}['onStarting'](){const _0x5c20d1=_0x511f53;this[_0x5c20d1(0x40a)](),this[_0x5c20d1(0x35a)]();}['onRendered'](){const _0x8ab5f2=_0x511f53;this[_0x8ab5f2(0x3e4)]();}[_0x511f53(0x40a)](){const _0x50af2e=_0x511f53;var _0x391c7d;const _0x3aaebc=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G['WebSocketService']}],[u[_0x50af2e(0x328)],{'useClass':ge}],[exports[_0x50af2e(0x2bb)]],[Q],[q],[x],[de],[exports[_0x50af2e(0x3a1)]]];a['registerDependencies'](this[_0x50af2e(0x32e)],a[_0x50af2e(0x3f0)](_0x3aaebc,(_0x391c7d=this[_0x50af2e(0x33b)])==null?void 0x0:_0x391c7d[_0x50af2e(0x3cf)]));}[_0x511f53(0x3e4)](){const _0x19ee52=_0x511f53;this[_0x19ee52(0x203)](this[_0x19ee52(0x201)][_0x19ee52(0x1c9)](a['UniverInstanceType']['UNIVER_DOC'],[fe])),this[_0x19ee52(0x203)](this[_0x19ee52(0x201)][_0x19ee52(0x1c9)](a[_0x19ee52(0x19e)][_0x19ee52(0x22c)],[ve]));}[_0x511f53(0x35a)](){const _0x8da914=_0x511f53;a['touchDependencies'](this['_injector'],[[x],[exports[_0x8da914(0x2bb)]],[Q],[q],[exports[_0x8da914(0x3a1)]]]);}},Qt(exports[_0x511f53(0x204)],_0x511f53(0x2ed),es),exports[_0x511f53(0x204)]=Zt([a[_0x511f53(0x3b9)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x511f53(0x3e7)]),he(0x2,a['Inject'](a[_0x511f53(0x1d8)])),he(0x3,a[_0x511f53(0x36d)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x33c8ae,_0xf40481,_0x4bc894,_0x859a3d)=>{const _0x151327=_0x511f53;for(var _0x2224e5=_0x859a3d>0x1?void 0x0:_0x859a3d?ts(_0xf40481,_0x4bc894):_0xf40481,_0x5d3092=_0x33c8ae[_0x151327(0x1dc)]-0x1,_0x5a24a9;_0x5d3092>=0x0;_0x5d3092--)(_0x5a24a9=_0x33c8ae[_0x5d3092])&&(_0x2224e5=_0x5a24a9(_0x2224e5)||_0x2224e5);return _0x2224e5;},H=(_0x57d35f,_0x422be1)=>(_0x5f327f,_0x10fa09)=>_0x422be1(_0x5f327f,_0x10fa09,_0x57d35f);exports[_0x511f53(0x3d2)]=class extends u[_0x511f53(0x219)]{constructor(_0xc689ab,_0x15c441,_0x194144,_0x12d2d8,_0x1ddcd4){super(_0xc689ab,_0x15c441,_0x194144,_0x12d2d8,_0x1ddcd4);}async[_0x511f53(0x30e)](_0x4abd4f){const _0x51afbd=_0x511f53,_0x3fe695=await this[_0x51afbd(0x213)](),_0x45bea3=this[_0x51afbd(0x276)](_0x4abd4f,_0x3fe695);return this[_0x51afbd(0x2b6)](_0x45bea3);}[_0x511f53(0x276)](_0x3676d7,_0x1aff59){const _0x407b21=_0x511f53,_0x26fccb=typeof window>'u'?new URL(_0x3676d7):new URL(_0x3676d7,window['location'][_0x407b21(0x222)]);_0x26fccb['searchParams'][_0x407b21(0x3c7)](_0x407b21(0x306),_0x1aff59);const _0x4fed8b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4fed8b[_0x407b21(0x21f)](_0x407b21(0x2c3))&&_0x26fccb[_0x407b21(0x395)][_0x407b21(0x3c7)]('runId',_0x4fed8b['get']('runId')),_0x26fccb[_0x407b21(0x312)]();}async[_0x511f53(0x213)](){const _0x219f0e=_0x511f53;var _0x498c09,_0x50a1bb,_0xee106b;const _0x493723=this[_0x219f0e(0x336)][_0x219f0e(0x398)](u[_0x219f0e(0x2fa)]),_0x2fa3d5=(_0x498c09=_0x493723==null?void 0x0:_0x493723[_0x219f0e(0x380)])!=null?_0x498c09:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0xee106b=(_0x50a1bb=(await this[_0x219f0e(0x2b7)][_0x219f0e(0x21f)](_0x2fa3d5,{'headers':{'Content-Type':_0x219f0e(0x245)}}))[_0x219f0e(0x2c8)])==null?void 0x0:_0x50a1bb['ticket'])!=null?_0xee106b:'';}},exports[_0x511f53(0x3d2)]=ss([H(0x0,a[_0x511f53(0x3be)](a['Injector'])),H(0x1,a['Inject'](G[_0x511f53(0x196)])),H(0x2,a[_0x511f53(0x36d)]),H(0x3,a['ILogService']),H(0x4,m[_0x511f53(0x20a)])],exports[_0x511f53(0x3d2)]);const Me=0x7530,Le=_0x511f53(0x35e);class is extends a[_0x511f53(0x22b)]{constructor(){const _0x21c0c0=_0x511f53;super(),h(this,_0x21c0c0(0x221),a[_0x21c0c0(0x227)]()),h(this,'_selfUnitIDs',new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x21c0c0(0x3e9),null),h(this,_0x21c0c0(0x29c),new Map()),h(this,_0x21c0c0(0x2b8),new Map()),this[_0x21c0c0(0x3e8)]();}[_0x511f53(0x23a)](){const _0x29192b=_0x511f53;super[_0x29192b(0x23a)](),this[_0x29192b(0x29c)][_0x29192b(0x29b)]((_0x193fc6,_0x2f16cc)=>this[_0x29192b(0x1cd)](_0x2f16cc)),this[_0x29192b(0x3e9)]&&window[_0x29192b(0x347)](this[_0x29192b(0x3e9)]);}[_0x511f53(0x3e6)](_0x20a1bf){const _0x1888a0=_0x511f53;return this[_0x1888a0(0x1a4)](_0x20a1bf)[_0x1888a0(0x33d)](d[_0x1888a0(0x3ba)]());}[_0x511f53(0x1b7)](_0x2eff33){const _0x4e15c0=_0x511f53;this[_0x4e15c0(0x3c5)]['size']===0x0&&this[_0x4e15c0(0x20e)](),this[_0x4e15c0(0x3c5)][_0x4e15c0(0x2d4)](_0x2eff33),this[_0x4e15c0(0x3ae)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2eff33],'isForwarded':!0x1});}[_0x511f53(0x293)](_0x6b1e12){const _0x2ec9f1=_0x511f53;this[_0x2ec9f1(0x3c5)][_0x2ec9f1(0x2dc)](_0x6b1e12),this[_0x2ec9f1(0x3c5)][_0x2ec9f1(0x17e)]===0x0&&this[_0x2ec9f1(0x3e9)]&&window['clearInterval'](this[_0x2ec9f1(0x3e9)]);}[_0x511f53(0x3e8)](){const _0x46afa9=_0x511f53;this[_0x46afa9(0x203)](a[_0x46afa9(0x238)](d[_0x46afa9(0x387)](window,'storage')[_0x46afa9(0x2d0)](_0x3f59ef=>{const _0x4ec996=_0x46afa9;if(_0x3f59ef[_0x4ec996(0x40e)]!==Le||!_0x3f59ef['newValue'])return;const _0x14ffaa=JSON['parse'](_0x3f59ef[_0x4ec996(0x3c4)]);this[_0x4ec996(0x1da)](_0x14ffaa);}))),window[_0x46afa9(0x25d)](_0x46afa9(0x26a),()=>this[_0x46afa9(0x3ae)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x46afa9(0x3c5)])}));}[_0x511f53(0x1da)](_0x5451bd){const _0x522062=_0x511f53;switch(_0x5451bd[_0x522062(0x3b2)]){case 0x0:this[_0x522062(0x385)](_0x5451bd);break;case 0x1:this[_0x522062(0x1fe)](_0x5451bd);break;case 0x2:this[_0x522062(0x1ee)](_0x5451bd);break;}}[_0x511f53(0x385)](_0x23994c){const _0x1a1766=_0x511f53,{unitIDs:_0x3b14f6,memberID:_0xd89d64,isForwarded:_0x47ffcc}=_0x23994c;_0x3b14f6[_0x1a1766(0x29b)](_0x338881=>{const _0x53399b=_0x1a1766;if(!_0x47ffcc&&this[_0x53399b(0x268)]['has'](_0x338881)&&this['_ensureSubject'](_0x338881)[_0x53399b(0x262)](u[_0x53399b(0x325)][_0x53399b(0x1a8)]),!this[_0x53399b(0x268)][_0x53399b(0x2bd)](_0x338881)||!this[_0x53399b(0x268)][_0x53399b(0x21f)](_0x338881)[_0x53399b(0x2bd)](_0xd89d64)){const _0x375d34=this['_unitOnClients'][_0x53399b(0x21f)](_0x338881)||new Set();_0x375d34['add'](_0xd89d64),this[_0x53399b(0x268)][_0x53399b(0x3c7)](_0x338881,_0x375d34),this[_0x53399b(0x304)](_0xd89d64);}}),_0x47ffcc||this[_0x1a1766(0x3ae)]({'type':0x0,'memberID':this[_0x1a1766(0x221)],'unitIDs':[...this[_0x1a1766(0x3c5)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x462a87){const _0x11a5c6=_0x511f53;this[_0x11a5c6(0x1cd)](_0x462a87);const _0x5bad95=window[_0x11a5c6(0x1b4)](()=>{const _0x38b595=_0x11a5c6;this[_0x38b595(0x268)][_0x38b595(0x29b)](_0xdff3fa=>{const _0x32a292=_0x38b595;_0xdff3fa[_0x32a292(0x2dc)](_0x462a87);});},Me*0x2);this[_0x11a5c6(0x29c)]['set'](_0x462a87,_0x5bad95);}[_0x511f53(0x1cd)](_0x2e8ee5){const _0x75c1ba=_0x511f53;if(this[_0x75c1ba(0x29c)]['has'](_0x2e8ee5)){const _0x444769=this[_0x75c1ba(0x29c)][_0x75c1ba(0x21f)](_0x2e8ee5);_0x444769&&window['clearTimeout'](_0x444769),this[_0x75c1ba(0x29c)][_0x75c1ba(0x3c7)](_0x2e8ee5,null);}}[_0x511f53(0x1fe)](_0x345131){const _0x4e71e1=_0x511f53,{memberID:_0x46d5ef,unitIDs:_0x318559}=_0x345131;_0x318559['forEach'](_0x1e7f3b=>{const _0x354f1d=_0x543b;var _0x187712;const _0x115436=this[_0x354f1d(0x268)][_0x354f1d(0x21f)](_0x1e7f3b);_0x115436&&(_0x115436[_0x354f1d(0x2dc)](_0x46d5ef),(_0x187712=this[_0x354f1d(0x1a4)](_0x1e7f3b))==null||_0x187712[_0x354f1d(0x262)](_0x115436[_0x354f1d(0x17e)]===0x0?u[_0x354f1d(0x325)][_0x354f1d(0x3f2)]:u['UnitStatus'][_0x354f1d(0x1a8)]));}),this[_0x4e71e1(0x1cd)](_0x46d5ef);}[_0x511f53(0x1ee)](_0x3d5f69){const _0x3c2348=_0x511f53;this[_0x3c2348(0x304)](_0x3d5f69[_0x3c2348(0x2ce)]);}['_send'](_0x434f8d){const _0x1c675=_0x511f53;localStorage['setItem'](Le,JSON[_0x1c675(0x202)](_0x434f8d));}['_scheduleHeartbeat'](){const _0x506583=_0x511f53;this[_0x506583(0x3e9)]=window['setInterval'](()=>{const _0x3639f1=_0x506583;this[_0x3639f1(0x3ae)]({'type':0x2,'memberID':this[_0x3639f1(0x221)]});},Me);}['_ensureSubject'](_0x6a77a7){const _0x378f58=_0x511f53;return this['_unitStatus'][_0x378f58(0x2bd)](_0x6a77a7)||this[_0x378f58(0x2b8)][_0x378f58(0x3c7)](_0x6a77a7,new d[(_0x378f58(0x263))](u[_0x378f58(0x325)][_0x378f58(0x3f2)])),this[_0x378f58(0x2b8)][_0x378f58(0x21f)](_0x6a77a7);}}var je=(_0x203af0=>(_0x203af0[_0x203af0[_0x511f53(0x298)]=0x0]=_0x511f53(0x298),_0x203af0[_0x203af0['OK']=0x1]='OK',_0x203af0[_0x203af0['INTERNAL_ERROR']=0x2]=_0x511f53(0x257),_0x203af0[_0x203af0['PERMISSION_DENIED']=0x3]=_0x511f53(0x2ec),_0x203af0[_0x203af0[_0x511f53(0x1a7)]=0x4]=_0x511f53(0x1a7),_0x203af0[_0x203af0[_0x511f53(0x1eb)]=0x5]=_0x511f53(0x1eb),_0x203af0[_0x203af0['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x203af0[_0x203af0[_0x511f53(0x3ce)]=0x7]=_0x511f53(0x3ce),_0x203af0[_0x203af0[_0x511f53(0x360)]=0x8]='TOO_MANY_REQUESTS',_0x203af0[_0x203af0['COMPLETION_FINISHED']=0x9]=_0x511f53(0x337),_0x203af0[_0x203af0[_0x511f53(0x361)]=0xa]=_0x511f53(0x361),_0x203af0[_0x203af0[_0x511f53(0x37d)]=0xb]=_0x511f53(0x37d),_0x203af0[_0x203af0[_0x511f53(0x1ea)]=0xc]=_0x511f53(0x1ea),_0x203af0[_0x203af0[_0x511f53(0x30f)]=0xd]=_0x511f53(0x30f),_0x203af0[_0x203af0[_0x511f53(0x218)]=0xe]=_0x511f53(0x218),_0x203af0[_0x203af0['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x511f53(0x2be),_0x203af0[_0x203af0[_0x511f53(0x1e7)]=0x1771]=_0x511f53(0x1e7),_0x203af0[_0x203af0['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x511f53(0x3ff),_0x203af0[_0x203af0['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x511f53(0x32b),_0x203af0[_0x203af0[_0x511f53(0x1ca)]=0x1b59]='APPLY_REJECT',_0x203af0[_0x203af0[_0x511f53(0x1ec)]=0x1b5a]=_0x511f53(0x1ec),_0x203af0[_0x203af0[_0x511f53(0x28a)]=0x1b5b]=_0x511f53(0x28a),_0x203af0[_0x203af0['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x203af0[_0x203af0[_0x511f53(0x3f7)]=0x1b5d]=_0x511f53(0x3f7),_0x203af0[_0x203af0[_0x511f53(0x241)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x203af0[_0x203af0[_0x511f53(0x2c6)]=0x2329]=_0x511f53(0x2c6),_0x203af0[_0x203af0[_0x511f53(0x28d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x203af0[_0x203af0[_0x511f53(0x3c1)]=0x232b]=_0x511f53(0x3c1),_0x203af0[_0x203af0[_0x511f53(0x180)]=0x232c]=_0x511f53(0x180),_0x203af0[_0x203af0[_0x511f53(0x17f)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x203af0[_0x203af0[_0x511f53(0x264)]=0x2711]=_0x511f53(0x264),_0x203af0[_0x203af0[_0x511f53(0x2dd)]=0x2712]=_0x511f53(0x2dd),_0x203af0[_0x203af0[_0x511f53(0x1e4)]=0x2713]=_0x511f53(0x1e4),_0x203af0[_0x203af0[_0x511f53(0x3a5)]=0x2714]=_0x511f53(0x3a5),_0x203af0[_0x203af0[_0x511f53(0x27f)]=0x271a]=_0x511f53(0x27f),_0x203af0[_0x203af0[_0x511f53(0x2db)]=0x271b]=_0x511f53(0x2db),_0x203af0[_0x203af0['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x203af0[_0x203af0[_0x511f53(0x25a)]=0x271d]=_0x511f53(0x25a),_0x203af0[_0x203af0[_0x511f53(0x25f)]=0x271e]=_0x511f53(0x25f),_0x203af0[_0x203af0[_0x511f53(0x1bd)]=0x271f]=_0x511f53(0x1bd),_0x203af0[_0x203af0['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x511f53(0x21e),_0x203af0[_0x203af0['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x203af0[_0x203af0['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x511f53(0x333),_0x203af0[_0x203af0[_0x511f53(0x190)]=0x2ee2]='INVALID_INVITE_CODE',_0x203af0[_0x203af0['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x203af0[_0x203af0['USER_NOT_INVITED_CODE']=0x2ee4]=_0x511f53(0x208),_0x203af0[_0x203af0[_0x511f53(0x233)]=0x2ee5]=_0x511f53(0x233),_0x203af0[_0x203af0[_0x511f53(0x348)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x203af0[_0x203af0[_0x511f53(0x40c)]=0x32ca]=_0x511f53(0x40c),_0x203af0[_0x203af0[_0x511f53(0x393)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x203af0[_0x203af0['UNRECOGNIZED']=-0x1]=_0x511f53(0x1de),_0x203af0))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x5a85cd,_0x127a24,_0x138d9c,_0x21246e)=>{for(var _0x39ea3a=_0x21246e>0x1?void 0x0:_0x21246e?ns(_0x127a24,_0x138d9c):_0x127a24,_0x436952=_0x5a85cd['length']-0x1,_0x4655ff;_0x436952>=0x0;_0x436952--)(_0x4655ff=_0x5a85cd[_0x436952])&&(_0x39ea3a=_0x4655ff(_0x39ea3a)||_0x39ea3a);return _0x39ea3a;},ue=(_0x441db7,_0x5b69df)=>(_0x3d77cf,_0x94ae87)=>_0x5b69df(_0x3d77cf,_0x94ae87,_0x441db7);exports[_0x511f53(0x402)]=class extends a[_0x511f53(0x22b)]{constructor(_0x73957b,_0x54091b,_0x701a3b){const _0x4e33c0=_0x511f53;super(),this[_0x4e33c0(0x274)]=_0x73957b,this[_0x4e33c0(0x2b7)]=_0x54091b,this[_0x4e33c0(0x336)]=_0x701a3b;}async[_0x511f53(0x2f7)](_0x267b23,_0x597083,_0x5cf8a1,..._0xbd5d7a){const _0xc2cde4=_0x511f53;var _0x94a902,_0x1dadb5,_0x4e8518,_0x57b0b4;const _0x1702f5=this[_0xc2cde4(0x274)][_0xc2cde4(0x1f1)]();if(!_0x1702f5)throw new Error(_0xc2cde4(0x3b8));const _0x427c25=((_0x94a902=this[_0xc2cde4(0x336)][_0xc2cde4(0x398)](u[_0xc2cde4(0x1ab)]))!=null?_0x94a902:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x267b23+_0xc2cde4(0x22a)+_0x597083,_0x276a44=new URL(window['location']['href']),_0x422bea={'scriptId':_0x267b23,'runId':(_0x1dadb5=_0x276a44[_0xc2cde4(0x395)][_0xc2cde4(0x21f)](_0xc2cde4(0x2c3)))!=null?_0x1dadb5:'','function':_0x597083,'unitId':_0x1702f5[_0xc2cde4(0x22f)](),'argsOfFunction':JSON[_0xc2cde4(0x202)](_0xbd5d7a),'invokeId':(_0x4e8518=_0x5cf8a1[_0xc2cde4(0x18e)])!=null?_0x4e8518:'','executionId':(_0x57b0b4=_0x5cf8a1[_0xc2cde4(0x3f8)])!=null?_0x57b0b4:''};try{const _0x55f302=await this['_httpService']['post'](_0x427c25,{'body':_0x422bea});return _0x55f302[_0xc2cde4(0x2c8)][_0xc2cde4(0x1bc)]&&_0x55f302[_0xc2cde4(0x2c8)][_0xc2cde4(0x1bc)][_0xc2cde4(0x38c)]!==je['OK']?_0xc2cde4(0x1b2):_0x55f302[_0xc2cde4(0x2c8)][_0xc2cde4(0x3ab)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x511f53(0x1be)]),ue(0x1,a['Inject'](G[_0x511f53(0x196)])),ue(0x2,a[_0x511f53(0x36d)])],exports['RemoteUniscriptService']),exports[_0x511f53(0x26f)]=xe,exports[_0x511f53(0x24d)]=Ee,exports[_0x511f53(0x29f)]=we,exports[_0x511f53(0x1b0)]=is,exports[_0x511f53(0x318)]=Be;