@univerjs-pro/collaboration-client-ui 0.8.3-nightly.202507021607 → 0.8.3-nightly.202507031607

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';function _0x17ee(){const _0x34d293=['extend','14795528DdVXUQ','1088QMkNxg','1920149JzBGYU','869626TniBVQ','1043907dmQojD','get','FUniver','runOnServer','18hASzFo','5552695UNOTdV','11152710UwBtPd','_injector','6rdqLLD','75483nShEWB','4arrNEO'];_0x17ee=function(){return _0x34d293;};return _0x17ee();}const _0x3b0284=_0x31cb;function _0x31cb(_0x3b0abc,_0x336384){const _0x17ee59=_0x17ee();return _0x31cb=function(_0x31cb60,_0x468dc1){_0x31cb60=_0x31cb60-0x1da;let _0x9ec164=_0x17ee59[_0x31cb60];return _0x9ec164;},_0x31cb(_0x3b0abc,_0x336384);}(function(_0x168e03,_0x3392e3){const _0x4d152a=_0x31cb,_0x429ade=_0x168e03();while(!![]){try{const _0x3fe253=-parseInt(_0x4d152a(0x1df))/0x1+parseInt(_0x4d152a(0x1e8))/0x2*(parseInt(_0x4d152a(0x1e0))/0x3)+parseInt(_0x4d152a(0x1da))/0x4*(parseInt(_0x4d152a(0x1e5))/0x5)+parseInt(_0x4d152a(0x1e4))/0x6*(parseInt(_0x4d152a(0x1de))/0x7)+parseInt(_0x4d152a(0x1dd))/0x8*(parseInt(_0x4d152a(0x1e9))/0x9)+-parseInt(_0x4d152a(0x1e6))/0xa+-parseInt(_0x4d152a(0x1dc))/0xb;if(_0x3fe253===_0x3392e3)break;else _0x429ade['push'](_0x429ade['shift']());}catch(_0x5a72c6){_0x429ade['push'](_0x429ade['shift']());}}}(_0x17ee,0xc0656));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x3b0284(0x1e2)]{[_0x3b0284(0x1e3)](_0x105951,_0x37ce24,..._0x4d3537){const _0x1e6e9a=_0x3b0284;return this[_0x1e6e9a(0x1e7)][_0x1e6e9a(0x1e1)](t['RemoteUniscriptService'])[_0x1e6e9a(0x1e3)](_0x105951,_0x37ce24,{},..._0x4d3537);}}e[_0x3b0284(0x1e2)][_0x3b0284(0x1db)](c);
1
+ 'use strict';function _0x1c18(_0x20c079,_0x3cc054){const _0x23063a=_0x2306();return _0x1c18=function(_0x1c18de,_0x24ad9d){_0x1c18de=_0x1c18de-0x15a;let _0x179b69=_0x23063a[_0x1c18de];return _0x179b69;},_0x1c18(_0x20c079,_0x3cc054);}const _0x111514=_0x1c18;(function(_0x48012a,_0x11b4a2){const _0xdfcaf5=_0x1c18,_0x49d714=_0x48012a();while(!![]){try{const _0x2843b6=-parseInt(_0xdfcaf5(0x15a))/0x1+parseInt(_0xdfcaf5(0x164))/0x2*(parseInt(_0xdfcaf5(0x168))/0x3)+-parseInt(_0xdfcaf5(0x162))/0x4*(parseInt(_0xdfcaf5(0x15b))/0x5)+parseInt(_0xdfcaf5(0x167))/0x6+parseInt(_0xdfcaf5(0x161))/0x7*(-parseInt(_0xdfcaf5(0x15f))/0x8)+-parseInt(_0xdfcaf5(0x166))/0x9+parseInt(_0xdfcaf5(0x15e))/0xa;if(_0x2843b6===_0x11b4a2)break;else _0x49d714['push'](_0x49d714['shift']());}catch(_0xad2647){_0x49d714['push'](_0x49d714['shift']());}}}(_0x2306,0x3c902));function _0x2306(){const _0x1534ba=['4zklZns','get','5528XgZpQJ','runOnServer','899190Coluvv','1738770QbvIol','240nGcndj','188691TJOyfP','6505YmnnmT','_injector','FUniver','2062850SeASjK','44808StImin','extend','224zizvoz'];_0x2306=function(){return _0x1534ba;};return _0x2306();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x111514(0x15d)]{[_0x111514(0x165)](_0x15e561,_0xf0b7e1,..._0x593b79){const _0x53a122=_0x111514;return this[_0x53a122(0x15c)][_0x53a122(0x163)](t['RemoteUniscriptService'])[_0x53a122(0x165)](_0x15e561,_0xf0b7e1,{},..._0x593b79);}}e[_0x111514(0x15d)][_0x111514(0x160)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2b1a47=_0x2e62;(function(_0x26f82d,_0x7a0566){const _0x346be4=_0x2e62,_0x4dd0e4=_0x26f82d();while(!![]){try{const _0x195f42=-parseInt(_0x346be4(0x463))/0x1*(-parseInt(_0x346be4(0x467))/0x2)+-parseInt(_0x346be4(0x377))/0x3+parseInt(_0x346be4(0x43d))/0x4*(-parseInt(_0x346be4(0x212))/0x5)+parseInt(_0x346be4(0x2d1))/0x6*(-parseInt(_0x346be4(0x25a))/0x7)+parseInt(_0x346be4(0x3df))/0x8*(-parseInt(_0x346be4(0x296))/0x9)+-parseInt(_0x346be4(0x448))/0xa+parseInt(_0x346be4(0x415))/0xb;if(_0x195f42===_0x7a0566)break;else _0x4dd0e4['push'](_0x4dd0e4['shift']());}catch(_0x48c914){_0x4dd0e4['push'](_0x4dd0e4['shift']());}}}(_0x4c68,0xc61dc));var Ve=Object[_0x2b1a47(0x246)],Xe=(_0xe5e328,_0x5b49f5,_0x33aca0)=>_0x5b49f5 in _0xe5e328?Ve(_0xe5e328,_0x5b49f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33aca0}):_0xe5e328[_0x5b49f5]=_0x33aca0,h=(_0x758d67,_0x2c986f,_0x5b7bae)=>Xe(_0x758d67,typeof _0x2c986f!='symbol'?_0x2c986f+'':_0x2c986f,_0x5b7bae);Object[_0x2b1a47(0x246)](exports,Symbol[_0x2b1a47(0x218)],{'value':_0x2b1a47(0x3ff)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x2b1a47(0x462)],ze=(_0x5166e4,_0x215ecf,_0x34b5c7,_0x24abc6)=>{const _0x36db35=_0x2b1a47;for(var _0x13c5b8=_0x24abc6>0x1?void 0x0:_0x24abc6?qe(_0x215ecf,_0x34b5c7):_0x215ecf,_0x5e5549=_0x5166e4[_0x36db35(0x3d8)]-0x1,_0x5afda8;_0x5e5549>=0x0;_0x5e5549--)(_0x5afda8=_0x5166e4[_0x5e5549])&&(_0x13c5b8=_0x5afda8(_0x13c5b8)||_0x13c5b8);return _0x13c5b8;},Oe=(_0x15bfc5,_0x88364c)=>(_0x5a3199,_0x29a35a)=>_0x88364c(_0x5a3199,_0x29a35a,_0x15bfc5);let de=class extends a[_0x2b1a47(0x21d)]{constructor(_0x490613,_0x52433c){const _0x35c311=_0x2b1a47;super(),this[_0x35c311(0x35d)]=_0x490613,this[_0x35c311(0x252)]=_0x52433c,this['_init']();}[_0x2b1a47(0x29d)](){const _0x3c9bb9=_0x2b1a47,_0x587f75=this;this[_0x3c9bb9(0x20b)](this[_0x3c9bb9(0x35d)][_0x3c9bb9(0x376)]({'onBeforePasteImage':async _0x588ba6=>{const _0x5d0a87=_0x3c9bb9,_0x5dcfab=await _0x587f75['_imageIoService']['saveImage'](_0x588ba6);return _0x5dcfab?{'source':_0x5dcfab[_0x5d0a87(0x2cf)],'imageSourceType':_0x5dcfab[_0x5d0a87(0x2e3)]}:null;}}));}};de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge['IImageIoService'])],de);const Te=['purple.300','jiqing.500',_0x2b1a47(0x2b0),'red.300','blue.400',_0x2b1a47(0x26f)];function _0x2e62(_0x112b09,_0x43e450){const _0x4c68bf=_0x4c68();return _0x2e62=function(_0x2e6242,_0x6982dc){_0x2e6242=_0x2e6242-0x1e8;let _0x5c208d=_0x4c68bf[_0x2e6242];return _0x5c208d;},_0x2e62(_0x112b09,_0x43e450);}class me extends a[_0x2b1a47(0x412)]{constructor(){const _0xe6de1e=_0x2b1a47;super(...arguments),h(this,_0xe6de1e(0x3f0),new Map()),h(this,_0xe6de1e(0x30c),0x0);}['assignAColorForMemberID'](_0x1924d2){const _0x4ed160=_0x2b1a47;if(this[_0x4ed160(0x3f0)][_0x4ed160(0x264)](_0x1924d2))return this[_0x4ed160(0x3f0)][_0x4ed160(0x219)](_0x1924d2);const _0x487ae2=Te[this[_0x4ed160(0x30c)]];return this[_0x4ed160(0x30c)]=(this[_0x4ed160(0x30c)]+0x1)%Te[_0x4ed160(0x3d8)],this['_assignedColors'][_0x4ed160(0x25b)](_0x1924d2,_0x487ae2),_0x487ae2;}}function Pe(_0xfc3bc3){let _0x206bf7='';for(const _0x3bad91 of _0xfc3bc3){const {startOffset:_0x29cb67,endOffset:_0xccd36c,isActive:_0x3a6291,rangeType:_0x299003,segmentId:_0x52cae2,segmentPage:_0x111792}=_0x3bad91;_0x206bf7['length']&&(_0x206bf7+=','),_0x206bf7+=_0x29cb67+':'+_0xccd36c+':'+(_0x3a6291?'1':'0')+':'+_0x299003+':'+_0x52cae2+':'+_0x111792;}return _0x206bf7;}function Je(_0x4231c6){const _0x26dff0=_0x2b1a47,_0x56d973=_0x4231c6[_0x26dff0(0x361)](','),_0x5f0ae2=[];for(const _0x43506a of _0x56d973){const [_0xe0bdca,_0x2e24aa,_0x238eba,_0x2ae0b4,_0x59d405,_0x2dd9c2]=_0x43506a[_0x26dff0(0x361)](':');_0x5f0ae2[_0x26dff0(0x354)]({'startOffset':Number(_0xe0bdca),'endOffset':Number(_0x2e24aa),'collapsed':_0xe0bdca===_0x2e24aa,'isActive':_0x238eba==='1','rangeType':_0x2ae0b4===a[_0x26dff0(0x28f)][_0x26dff0(0x3dd)]?a[_0x26dff0(0x28f)][_0x26dff0(0x3dd)]:a[_0x26dff0(0x28f)][_0x26dff0(0x3cd)],'segmentId':typeof _0x59d405==_0x26dff0(0x206)?String(_0x59d405):'','segmentPage':Number(_0x2dd9c2!=null?_0x2dd9c2:-0x1)});}return _0x5f0ae2[_0x26dff0(0x1f4)](_0x4bcc54=>_0x4bcc54[_0x26dff0(0x46b)])||(_0x5f0ae2[0x0][_0x26dff0(0x46b)]=!0x0),_0x5f0ae2;}class Ce extends a[_0x2b1a47(0x21d)]{constructor(){const _0x2544c1=_0x2b1a47;super(...arguments),h(this,_0x2544c1(0x258),new d['BehaviorSubject'](null)),h(this,_0x2544c1(0x44c),this[_0x2544c1(0x258)][_0x2544c1(0x2d7)]());}['syncEditingCollabCursor'](_0x2ccaf8){const _0xba19e1=_0x2b1a47,{unitID:_0x55f632,memberID:_0x30f0d2,textRanges:_0x29ee49}=_0x2ccaf8,_0x1e3812=Pe(_0x29ee49);if(_0x1e3812==='')return;const _0x38a932={'unitID':_0x55f632,'memberID':_0x30f0d2,'selection':_0x1e3812};this[_0xba19e1(0x258)][_0xba19e1(0x2d0)](_0x38a932);}}var Ze=Object[_0x2b1a47(0x462)],Qe=(_0x2ccd30,_0x5603bd,_0x23e9cb,_0x57892c)=>{const _0x3386e1=_0x2b1a47;for(var _0x391a29=_0x57892c>0x1?void 0x0:_0x57892c?Ze(_0x5603bd,_0x23e9cb):_0x5603bd,_0x13cf2e=_0x2ccd30[_0x3386e1(0x3d8)]-0x1,_0x53e285;_0x13cf2e>=0x0;_0x13cf2e--)(_0x53e285=_0x2ccd30[_0x13cf2e])&&(_0x391a29=_0x53e285(_0x391a29)||_0x391a29);return _0x391a29;},L=(_0x5e4b41,_0x3113ad)=>(_0xf21b91,_0x47fde2)=>_0x3113ad(_0xf21b91,_0x47fde2,_0x5e4b41);const et=0x12c,tt=0x64;let Ie=class extends a[_0x2b1a47(0x21d)]{constructor(_0x133382,_0xa0b8c4,_0xca0075,_0x47da2f,_0x397e1c,_0x5f4ab0,_0x581563,_0x12672c,_0x647b7b){const _0x120de0=_0x2b1a47;super(),h(this,_0x120de0(0x263),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x120de0(0x2e6))](new Map())),h(this,_0x120de0(0x276),this[_0x120de0(0x3ce)][_0x120de0(0x2d7)]()),h(this,'_roomMembers$',new d[(_0x120de0(0x2e6))]([])),h(this,_0x120de0(0x358),this['_roomMembers$']['pipe'](d[_0x120de0(0x253)](et))),h(this,_0x120de0(0x44d),a[_0x120de0(0x2c7)](_0x49e210=>{const _0x983ebb=_0x120de0,_0x215e3e={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x983ebb(0x242)][_0x983ebb(0x278)](),'selection':Pe(_0x49e210)}};this[_0x983ebb(0x242)][_0x983ebb(0x38c)](_0x215e3e,this[_0x983ebb(0x275)]);},tt)),(this[_0x120de0(0x275)]=_0x133382,this[_0x120de0(0x242)]=_0xa0b8c4,this[_0x120de0(0x312)]=_0xca0075,this[_0x120de0(0x46a)]=_0x47da2f,this[_0x120de0(0x450)]=_0x397e1c,this[_0x120de0(0x39f)]=_0x5f4ab0,this[_0x120de0(0x2bf)]=_0x581563,this[_0x120de0(0x35a)]=_0x12672c,this[_0x120de0(0x386)]=_0x647b7b);}get[_0x2b1a47(0x3e0)](){const _0x4318a8=_0x2b1a47;return this['_cursorInfo$'][_0x4318a8(0x3e9)]();}get[_0x2b1a47(0x350)](){const _0x1d8060=_0x2b1a47;return this[_0x1d8060(0x439)][_0x1d8060(0x3e9)]();}[_0x2b1a47(0x307)](){const _0x3ed861=_0x2b1a47;super[_0x3ed861(0x307)](),this['_cursorInfo$']['next'](new Map()),this[_0x3ed861(0x3ce)][_0x3ed861(0x1fc)](),this[_0x3ed861(0x439)][_0x3ed861(0x2d0)]([]),this['_roomMembers$'][_0x3ed861(0x1fc)]();}[_0x2b1a47(0x410)](){const _0xaef16b=_0x2b1a47;this[_0xaef16b(0x29d)]||(this[_0xaef16b(0x29d)]=!0x0,this[_0xaef16b(0x242)][_0xaef16b(0x39c)]['pipe'](d[_0xaef16b(0x431)](this[_0xaef16b(0x23f)]))['subscribe'](_0x5d7b99=>{const _0x1e38f7=_0xaef16b;_0x5d7b99===u[_0x1e38f7(0x33e)][_0x1e38f7(0x24c)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xaef16b(0x242)][_0xaef16b(0x39e)]['pipe'](d[_0xaef16b(0x431)](this[_0xaef16b(0x23f)]))['subscribe'](_0x483875=>{const _0x5cbca0=_0xaef16b,_0x431833=_0x483875['eventID'];_0x431833===m[_0x5cbca0(0x346)][_0x5cbca0(0x3cc)]&&this[_0x5cbca0(0x202)](_0x483875),_0x431833===m['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x483875);}),this['disposeWithMe'](this[_0xaef16b(0x386)][_0xaef16b(0x23c)](_0x49743b=>{const _0x15d526=_0xaef16b,_0x2dffb5=_0x49743b['params'];_0x2dffb5!=null&&this[_0x15d526(0x263)]&&_0x49743b['id']===Y[_0x15d526(0x3b0)]['id']&&_0x2dffb5[_0x15d526(0x2d4)]===this[_0x15d526(0x275)]&&_0x2dffb5[_0x15d526(0x1e9)]===!0x1&&_0x2dffb5['ranges'][_0x15d526(0x3d8)]>0x0&&this[_0x15d526(0x44d)](_0x2dffb5[_0x15d526(0x27e)]);})),this['_syncEditingCollabCursorService'][_0xaef16b(0x44c)][_0xaef16b(0x221)](d[_0xaef16b(0x431)](this[_0xaef16b(0x23f)]))[_0xaef16b(0x3a8)](_0x39544c=>{const _0x5314e9=_0xaef16b;if((_0x39544c==null?void 0x0:_0x39544c['unitID'])!==this[_0x5314e9(0x275)])return;const _0x424180={'eventID':m[_0x5314e9(0x346)][_0x5314e9(0x3cc)],'data':_0x39544c};this[_0x5314e9(0x202)](_0x424180);}),this['disposeWithMe'](this[_0xaef16b(0x386)][_0xaef16b(0x23c)](_0x17d9ed=>{const _0x3cac5d=_0xaef16b;if(_0x17d9ed[_0x3cac5d(0x2f0)]==null)return;const _0x18f010=_0x17d9ed['params'];if(_0x17d9ed['id']!==Y[_0x3cac5d(0x3e6)]['id']||_0x18f010[_0x3cac5d(0x2d4)]!==this[_0x3cac5d(0x275)])return;const _0x3324cf={'id':_0x3cac5d(0x373),'params':_0x18f010},_0x59ac12=this[_0x3cac5d(0x3e0)];for(const [_0x36a4f8,_0x58e65c]of _0x59ac12){const _0x286586={'id':_0x3cac5d(0x373),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x58e65c['ranges']}},_0x4838a2=this[_0x3cac5d(0x2bf)][_0x3cac5d(0x2cc)](_0x3324cf,_0x286586,!0x1);if(m[_0x3cac5d(0x45b)](_0x4838a2))throw _0x4838a2[_0x3cac5d(0x290)];_0x59ac12[_0x3cac5d(0x25b)](_0x36a4f8,{..._0x58e65c,'ranges':_0x4838a2[_0x3cac5d(0x3b1)]['params'][_0x3cac5d(0x3b7)]});}queueMicrotask(()=>{const _0xf7a4b9=_0x3cac5d;this[_0xf7a4b9(0x3ce)][_0xf7a4b9(0x2d0)](_0x59ac12);});})));}[_0x2b1a47(0x202)](_0x26e835){const _0x3bde5a=_0x2b1a47;var _0x4829de,_0x3d4e62;const {memberID:_0x296862,selection:_0x1b780d}=_0x26e835[_0x3bde5a(0x419)],_0x36c21a=Je(_0x1b780d),_0x1720fd=(_0x3d4e62=(_0x4829de=this[_0x3bde5a(0x450)][_0x3bde5a(0x2f7)](this[_0x3bde5a(0x275)],_0x296862))==null?void 0x0:_0x4829de['name'])!=null?_0x3d4e62:'Unknown\x20user',_0x366a13={'color':this[_0x3bde5a(0x46a)][_0x3bde5a(0x2ee)](_0x296862),'name':_0x1720fd,'ranges':_0x36c21a},_0x4cea5d=this[_0x3bde5a(0x3e0)];_0x4cea5d['set'](_0x296862,_0x366a13),this['_cursorInfo$'][_0x3bde5a(0x2d0)](_0x4cea5d);}[_0x2b1a47(0x308)](_0x2822ee){const _0x2f4c7f=_0x2b1a47,{memberID:_0x265c9e}=_0x2822ee['data'],_0x2293b2=this[_0x2f4c7f(0x3e0)];_0x2293b2[_0x2f4c7f(0x42a)](_0x265c9e),this['_cursorInfo$'][_0x2f4c7f(0x2d0)](_0x2293b2);}['_toggleOnline'](){const _0x417519=_0x2b1a47;var _0x49c025;if(this[_0x417519(0x263)]=!0x0,((_0x49c025=this[_0x417519(0x35a)][_0x417519(0x42b)]())==null?void 0x0:_0x49c025['getUnitId']())!==this[_0x417519(0x275)])return;const _0x4bf187=this['_injector']['get'](Y[_0x417519(0x2f6)])[_0x417519(0x2bb)]();Array['isArray'](_0x4bf187)&&_0x4bf187[_0x417519(0x3d8)]>0x0&&this['_updateLocalCursor'](_0x4bf187);}['_toggleOffline'](){const _0x8c04b9=_0x2b1a47;this[_0x8c04b9(0x263)]=!0x1;}};Ie=Qe([L(0x2,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x3e1)])),L(0x3,a[_0x2b1a47(0x2bd)](me)),L(0x4,a[_0x2b1a47(0x2bd)](u['MemberService'])),L(0x5,a[_0x2b1a47(0x2bd)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x2b1a47(0x2a3)]),L(0x8,a[_0x2b1a47(0x29f)])],Ie);var st=Object[_0x2b1a47(0x462)],it=(_0x33868b,_0x5b3b05,_0x44af48,_0x4165eb)=>{const _0x535bc4=_0x2b1a47;for(var _0x53a3e6=_0x4165eb>0x1?void 0x0:_0x4165eb?st(_0x5b3b05,_0x44af48):_0x5b3b05,_0xe16009=_0x33868b[_0x535bc4(0x3d8)]-0x1,_0x481bca;_0xe16009>=0x0;_0xe16009--)(_0x481bca=_0x33868b[_0xe16009])&&(_0x53a3e6=_0x481bca(_0x53a3e6)||_0x53a3e6);return _0x53a3e6;},A=(_0x5a9392,_0x4cb714)=>(_0x541b9a,_0x5e5190)=>_0x4cb714(_0x541b9a,_0x5e5190,_0x5a9392);const nt=0x12c,rt=0x64,ot=()=>{let _0x1f3513=[],_0x183040=!0x1;return _0x3b43cf=>{_0x1f3513['push'](_0x3b43cf),_0x183040||(_0x183040=!0x0,setTimeout(()=>{const _0x2759bc=_0x2e62;_0x1f3513[_0x2759bc(0x2fd)](_0x4ec59f=>_0x4ec59f()),_0x1f3513=[],_0x183040=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x55f6ee,_0x537560,_0x86cd17,_0x4f7220,_0x22c746,_0x140aba,_0x20d667,_0x291c8a){const _0x1fcbf6=_0x2b1a47;super(),h(this,'_online',!0x1),h(this,_0x1fcbf6(0x29d),!0x1),h(this,_0x1fcbf6(0x3ce),new d[(_0x1fcbf6(0x2e6))](new Map())),h(this,_0x1fcbf6(0x276),this['_cursorInfo$'][_0x1fcbf6(0x2d7)]()),h(this,'_roomMembers$',new d[(_0x1fcbf6(0x2e6))]([])),h(this,_0x1fcbf6(0x358),this[_0x1fcbf6(0x439)]['pipe'](d[_0x1fcbf6(0x253)](nt))),h(this,_0x1fcbf6(0x44d),a['debounce']((_0x3abb75,_0x38df9b)=>{const _0x40809b=_0x1fcbf6,_0x1c62ad={'eventID':m[_0x40809b(0x346)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x40809b(0x275)],'memberID':this[_0x40809b(0x242)][_0x40809b(0x278)](),'selection':be[_0x40809b(0x257)](_0x3abb75,_0x38df9b[_0x40809b(0x20e)])}};this[_0x40809b(0x242)][_0x40809b(0x38c)](_0x1c62ad,this[_0x40809b(0x275)]);},rt)),(this[_0x1fcbf6(0x275)]=_0x55f6ee,this[_0x1fcbf6(0x242)]=_0x537560,this[_0x1fcbf6(0x312)]=_0x86cd17,this[_0x1fcbf6(0x46a)]=_0x4f7220,this['_memberService']=_0x22c746,this[_0x1fcbf6(0x35a)]=_0x140aba,this[_0x1fcbf6(0x386)]=_0x20d667,this['_refRangeService']=_0x291c8a);}get[_0x2b1a47(0x3e0)](){const _0x2be6c6=_0x2b1a47;return this['_cursorInfo$'][_0x2be6c6(0x3e9)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x2b1a47(0x307)](){const _0x8f0b1f=_0x2b1a47;super['dispose'](),this[_0x8f0b1f(0x3ce)][_0x8f0b1f(0x2d0)](new Map()),this[_0x8f0b1f(0x3ce)][_0x8f0b1f(0x1fc)](),this[_0x8f0b1f(0x439)][_0x8f0b1f(0x2d0)]([]),this['_roomMembers$'][_0x8f0b1f(0x1fc)]();}[_0x2b1a47(0x410)](){const _0x4f6d9d=_0x2b1a47;this[_0x4f6d9d(0x29d)]||(this[_0x4f6d9d(0x29d)]=!0x0,this[_0x4f6d9d(0x242)][_0x4f6d9d(0x39c)]['pipe'](d['takeUntil'](this[_0x4f6d9d(0x23f)]))['subscribe'](_0x5e1274=>{const _0x212fca=_0x4f6d9d;_0x5e1274===u[_0x212fca(0x33e)]['ONLINE']?this[_0x212fca(0x2c8)]():this[_0x212fca(0x23e)]();}),this[_0x4f6d9d(0x242)]['event$']['pipe'](d[_0x4f6d9d(0x431)](this[_0x4f6d9d(0x23f)]))[_0x4f6d9d(0x3a8)](_0x42cc5d=>{const _0x2d402f=_0x4f6d9d,_0x1bda44=_0x42cc5d[_0x2d402f(0x367)];_0x1bda44===m[_0x2d402f(0x346)][_0x2d402f(0x3cc)]&&this['_onCursorUpdate'](_0x42cc5d),_0x1bda44===m[_0x2d402f(0x346)][_0x2d402f(0x43c)]&&this[_0x2d402f(0x308)](_0x42cc5d);}),this[_0x4f6d9d(0x33d)](),this[_0x4f6d9d(0x20b)](this[_0x4f6d9d(0x386)][_0x4f6d9d(0x23c)](_0x5c2389=>{const _0x191f69=_0x4f6d9d;if(this[_0x191f69(0x263)]&&_0x5c2389['id']===g['SetSelectionsOperation']['id']&&_0x5c2389[_0x191f69(0x2f0)][_0x191f69(0x2d4)]===this[_0x191f69(0x275)]){const _0x32b2e4=_0x5c2389[_0x191f69(0x2f0)];this[_0x191f69(0x44d)](_0x32b2e4['subUnitId'],_0x32b2e4[_0x191f69(0x3af)][0x0]);}})));}[_0x2b1a47(0x202)](_0x19faaf){const _0x19b1a1=_0x2b1a47;var _0x11306c,_0x3c6325;const {memberID:_0x3ce44e,selection:_0x9d8d05}=_0x19faaf[_0x19b1a1(0x419)],{sheetName:_0x2bbf7d,range:_0x3751fa}=be[_0x19b1a1(0x22e)](_0x9d8d05),_0x4fcec5={'name':(_0x3c6325=(_0x11306c=this[_0x19b1a1(0x450)][_0x19b1a1(0x2f7)](this[_0x19b1a1(0x275)],_0x3ce44e))==null?void 0x0:_0x11306c['name'])!=null?_0x3c6325:_0x19b1a1(0x395),'range':this[_0x19b1a1(0x2a5)](_0x2bbf7d,_0x3751fa),'sheetID':_0x2bbf7d,'color':this[_0x19b1a1(0x46a)]['assignAColorForMemberID'](_0x3ce44e),'selection':_0x9d8d05},_0x3baf4e=this['cursorInfo'];_0x3baf4e[_0x19b1a1(0x25b)](_0x3ce44e,_0x4fcec5),this[_0x19b1a1(0x3ce)][_0x19b1a1(0x2d0)](_0x3baf4e);}[_0x2b1a47(0x308)](_0x50f6f0){const _0x2db564=_0x2b1a47,{memberID:_0x4b0dfa}=_0x50f6f0['data'],_0x7deec2=this[_0x2db564(0x3e0)];_0x7deec2['delete'](_0x4b0dfa),this['_cursorInfo$'][_0x2db564(0x2d0)](_0x7deec2);}[_0x2b1a47(0x2a5)](_0x24463d,_0x48e9f9){const _0x47b53d=_0x2b1a47;var _0x251706,_0x751709;const _0x95febb=(_0x751709=(_0x251706=this[_0x47b53d(0x35a)][_0x47b53d(0x35e)](this[_0x47b53d(0x275)]))==null?void 0x0:_0x251706[_0x47b53d(0x466)](_0x24463d))==null?void 0x0:_0x751709[_0x47b53d(0x213)]();return(_0x95febb==null?void 0x0:_0x95febb[_0x47b53d(0x25f)](_0x5cd9a0=>a['Rectangle'][_0x47b53d(0x32c)](_0x5cd9a0,_0x48e9f9)))||_0x48e9f9;}[_0x2b1a47(0x33d)](){const _0x23e696=_0x2b1a47,_0x4fa51e=new a[(_0x23e696(0x2a7))](),_0x1fd77c=ot(),_0x19e95e=()=>{const _0xc4b7f7=_0x23e696;_0x4fa51e['dispose']();const _0x3944a4=(_0x56ca74,_0x2a8cae,_0x36f8ea,_0x5d622d)=>{const _0x5300b4=_0x2e62;let _0x30c2c2=[];switch(_0x56ca74['id']){case g[_0x5300b4(0x390)][_0x5300b4(0x430)]:{_0x30c2c2=g[_0x5300b4(0x385)](_0x56ca74,_0x5d622d);break;}case g[_0x5300b4(0x390)][_0x5300b4(0x325)]:{_0x30c2c2=g[_0x5300b4(0x2e4)](_0x56ca74,_0x5d622d);break;}case g[_0x5300b4(0x390)][_0x5300b4(0x267)]:{_0x30c2c2=g[_0x5300b4(0x3ad)](_0x56ca74,_0x5d622d);break;}case g['EffectRefRangId'][_0x5300b4(0x2f2)]:{_0x30c2c2=g['handleInsertRangeMoveDown'](_0x56ca74,_0x5d622d);break;}case g['EffectRefRangId'][_0x5300b4(0x387)]:{_0x30c2c2=g['handleInsertRangeMoveRight'](_0x56ca74,_0x5d622d);break;}case g[_0x5300b4(0x390)][_0x5300b4(0x323)]:{_0x30c2c2=g[_0x5300b4(0x3c2)](_0x56ca74,_0x5d622d);break;}case g[_0x5300b4(0x390)][_0x5300b4(0x3bb)]:{_0x30c2c2=g['handleMoveRange'](_0x56ca74,_0x5d622d);break;}case g['EffectRefRangId'][_0x5300b4(0x310)]:{_0x30c2c2=g[_0x5300b4(0x3c8)](_0x56ca74,_0x5d622d);break;}case g[_0x5300b4(0x390)]['RemoveRowCommandId']:{_0x30c2c2=g[_0x5300b4(0x31d)](_0x56ca74,_0x5d622d);break;}}const _0x4444c3=g['runRefRangeMutations'](_0x30c2c2,_0x5d622d),_0x2ca97e=this[_0x5300b4(0x3e0)][_0x5300b4(0x219)](_0x2a8cae);if(_0x2ca97e&&_0x4444c3){const _0x59e3a1={..._0x2ca97e,'range':_0x4444c3};this[_0x5300b4(0x3e0)][_0x5300b4(0x25b)](_0x2a8cae,_0x59e3a1),_0x1fd77c(()=>{const _0x43f7e3=_0x5300b4,_0x34c894=this[_0x43f7e3(0x375)][_0x43f7e3(0x228)](_0x4444c3,_0x373fa0=>(_0x34c894[_0x43f7e3(0x307)](),_0x3944a4(_0x373fa0,_0x2a8cae,_0x36f8ea,_0x4444c3)));_0x4fa51e[_0x43f7e3(0x3f9)](_0x34c894);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xc4b7f7(0x2fd)]((_0x293efd,_0x4de750)=>{const _0x2f197f=_0xc4b7f7,{range:_0x60896a,sheetID:_0x5d7a8a}=_0x293efd,_0x17c2b7=this[_0x2f197f(0x375)]['registerRefRange'](_0x60896a,_0x33a4a5=>(_0x17c2b7[_0x2f197f(0x307)](),_0x3944a4(_0x33a4a5,_0x4de750,_0x5d7a8a,_0x60896a)));_0x4fa51e['add'](_0x17c2b7);});};this[_0x23e696(0x20b)](a['toDisposable'](this[_0x23e696(0x3ce)][_0x23e696(0x3a8)](()=>{_0x19e95e();})));}['_toggleOnline'](){const _0x26ec29=_0x2b1a47;var _0x9560c4,_0x21e98f;if(this[_0x26ec29(0x263)]=!0x0,((_0x9560c4=this['_univerInstanceService'][_0x26ec29(0x42b)]())==null?void 0x0:_0x9560c4[_0x26ec29(0x3ee)]())!==this['unitID'])return;const _0x237a85=(_0x21e98f=this[_0x26ec29(0x312)][_0x26ec29(0x219)](g[_0x26ec29(0x301)])[_0x26ec29(0x31c)]())==null?void 0x0:_0x21e98f[0x0],_0x1224d7=this[_0x26ec29(0x35a)]['getCurrentUnitForType'](a[_0x26ec29(0x383)]['UNIVER_SHEET'])[_0x26ec29(0x3c0)]();_0x237a85&&_0x1224d7&&this[_0x26ec29(0x44d)](_0x1224d7[_0x26ec29(0x2cd)](),_0x237a85);}['_toggleOffline'](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x3e1)])),A(0x3,a[_0x2b1a47(0x2bd)](me)),A(0x4,a[_0x2b1a47(0x2bd)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x2b1a47(0x29f)]),A(0x7,a[_0x2b1a47(0x2bd)](g[_0x2b1a47(0x417)]))],Se);var at=Object[_0x2b1a47(0x462)],ct=(_0x15df85,_0x4b1831,_0x1d0220,_0x8dd13f)=>{for(var _0x3a9e76=_0x8dd13f>0x1?void 0x0:_0x8dd13f?at(_0x4b1831,_0x1d0220):_0x4b1831,_0x34badd=_0x15df85['length']-0x1,_0x28f4;_0x34badd>=0x0;_0x34badd--)(_0x28f4=_0x15df85[_0x34badd])&&(_0x3a9e76=_0x28f4(_0x3a9e76)||_0x3a9e76);return _0x3a9e76;},ie=(_0x2bda41,_0x3fb71d)=>(_0x6b97bb,_0x34a1b9)=>_0x3fb71d(_0x6b97bb,_0x34a1b9,_0x2bda41);let x=class extends a[_0x2b1a47(0x21d)]{constructor(_0x530cfa,_0x517ac2,_0x546215){const _0x48ef5b=_0x2b1a47;super(),h(this,_0x48ef5b(0x270),new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x48ef5b(0x35a)]=_0x530cfa,this['_injector']=_0x517ac2,this['_collabSessionService']=_0x546215,this[_0x48ef5b(0x29d)]());}[_0x2b1a47(0x307)](){const _0x1a0de8=_0x2b1a47;super[_0x1a0de8(0x307)](),this[_0x1a0de8(0x3e8)]['complete'](),this[_0x1a0de8(0x270)][_0x1a0de8(0x2fd)](_0x4be3de=>_0x4be3de['dispose']());}[_0x2b1a47(0x347)](_0x5ce6ae){const _0x1a66ea=_0x2b1a47;return this['_entities'][_0x1a66ea(0x264)](_0x5ce6ae)?this[_0x1a66ea(0x270)][_0x1a66ea(0x219)](_0x5ce6ae)[_0x1a66ea(0x276)]:this[_0x1a66ea(0x3e8)][_0x1a66ea(0x221)](d['filter'](_0x866114=>_0x866114[_0x1a66ea(0x275)]===_0x5ce6ae),d[_0x1a66ea(0x2be)](_0x1a7773=>_0x1a7773[_0x1a66ea(0x276)]));}[_0x2b1a47(0x29d)](){const _0x3a890d=_0x2b1a47;this['_univerInstanceService'][_0x3a890d(0x41d)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3a890d(0x221)](d[_0x3a890d(0x431)](this[_0x3a890d(0x23f)]))[_0x3a890d(0x3a8)](async _0x3e2a0=>{const _0x147c11=_0x3a890d,_0x5698aa=_0x3e2a0['getUnitId'](),_0x3e0bcb=await this[_0x147c11(0x292)](_0x5698aa);this['_entityInit$'][_0x147c11(0x2d0)](_0x3e0bcb),this['_entities'][_0x147c11(0x25b)](_0x5698aa,_0x3e0bcb);}),this['_univerInstanceService'][_0x3a890d(0x41d)](a[_0x3a890d(0x383)][_0x3a890d(0x21a)])[_0x3a890d(0x221)](d[_0x3a890d(0x431)](this[_0x3a890d(0x23f)]))[_0x3a890d(0x221)](d[_0x3a890d(0x3f5)](_0x188af8=>!_0x188af8[_0x3a890d(0x3ee)]()[_0x3a890d(0x21c)]('__')))[_0x3a890d(0x3a8)](async _0x4e1f22=>{const _0x7fcc28=_0x3a890d,_0x31e7df=_0x4e1f22[_0x7fcc28(0x3ee)](),_0x5a08c3=await this[_0x7fcc28(0x469)](_0x31e7df);this[_0x7fcc28(0x3e8)][_0x7fcc28(0x2d0)](_0x5a08c3),this[_0x7fcc28(0x270)][_0x7fcc28(0x25b)](_0x31e7df,_0x5a08c3);}),d[_0x3a890d(0x287)](this[_0x3a890d(0x35a)][_0x3a890d(0x416)](a['UniverInstanceType'][_0x3a890d(0x21a)]),this[_0x3a890d(0x35a)][_0x3a890d(0x416)](a[_0x3a890d(0x383)][_0x3a890d(0x35f)]))[_0x3a890d(0x221)](d['takeUntil'](this['dispose$']))[_0x3a890d(0x3a8)](_0x3c87a3=>{const _0x2ec797=_0x3a890d,_0x587925=_0x3c87a3['getUnitId'](),_0xd1a278=this['_entities'][_0x2ec797(0x219)](_0x587925);_0xd1a278&&(_0xd1a278[_0x2ec797(0x307)](),this[_0x2ec797(0x270)][_0x2ec797(0x42a)](_0x587925));});}async[_0x2b1a47(0x292)](_0x59cf49){const _0x454845=_0x2b1a47,_0x1b8430=await this['_collabSessionService'][_0x454845(0x20a)](_0x59cf49),_0x220529=this[_0x454845(0x312)][_0x454845(0x2ea)](Se,_0x59cf49,_0x1b8430);return _0x220529[_0x454845(0x410)](),_0x220529;}async[_0x2b1a47(0x469)](_0x18769f){const _0x3e5a28=_0x2b1a47,_0x250913=await this['_collabSessionService']['requireSession'](_0x18769f),_0x11cea3=this[_0x3e5a28(0x312)][_0x3e5a28(0x2ea)](Ie,_0x18769f,_0x250913);return _0x11cea3[_0x3e5a28(0x410)](),_0x11cea3;}};x=ct([ie(0x0,a[_0x2b1a47(0x2a3)]),ie(0x1,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x3e1)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x25e664,_0x5d4e3a){const _0x2895c9=_0x2b1a47;let {radius:_0x238d8e,width:_0x422836,height:_0x101e15}=_0x5d4e3a;_0x238d8e=_0x238d8e!=null?_0x238d8e:0x0,_0x422836=_0x422836!=null?_0x422836:0x1e,_0x101e15=_0x101e15!=null?_0x101e15:0x1e;let _0x4676be=0x0,_0x43e288=0x0,_0xf3929e=0x0;_0x4676be=_0x43e288=_0xf3929e=Math['min'](_0x238d8e,_0x422836/0x2,_0x101e15/0x2),_0x25e664[_0x2895c9(0x30b)](),_0x25e664['moveTo'](_0x4676be,0x0),_0x25e664[_0x2895c9(0x40e)](_0x422836-_0x43e288,0x0),_0x25e664[_0x2895c9(0x2cb)](_0x422836-_0x43e288,_0x43e288,_0x43e288,Math['PI']*0x3/0x2,0x0,!0x1),_0x25e664['lineTo'](_0x422836,_0x101e15-_0xf3929e),_0x25e664[_0x2895c9(0x2cb)](_0x422836-_0xf3929e,_0x101e15-_0xf3929e,_0xf3929e,0x0,Math['PI']/0x2,!0x1),_0x25e664['lineTo'](0x0,_0x101e15),_0x25e664[_0x2895c9(0x40e)](0x0,_0x4676be),_0x25e664[_0x2895c9(0x2cb)](_0x4676be,_0x4676be,_0x4676be,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x25e664['closePath'](),_0x5d4e3a[_0x2895c9(0x2ef)]&&(_0x25e664[_0x2895c9(0x3c7)](),_0x25e664[_0x2895c9(0x250)]=_0x5d4e3a['fill'],_0x5d4e3a[_0x2895c9(0x3ef)]===_0x2895c9(0x40f)?_0x25e664[_0x2895c9(0x2ef)]('evenodd'):_0x25e664[_0x2895c9(0x2ef)](),_0x25e664[_0x2895c9(0x2e5)]());}class ee extends p[_0x2b1a47(0x24b)]{constructor(_0xd55d0f,_0x23518f){const _0x1d6210=_0x2b1a47;super(_0xd55d0f,_0x23518f),h(this,_0x1d6210(0x406)),h(this,_0x1d6210(0x3d5)),(this[_0x1d6210(0x406)]=_0x23518f==null?void 0x0:_0x23518f[_0x1d6210(0x406)],this[_0x1d6210(0x3d5)]=_0x23518f==null?void 0x0:_0x23518f[_0x1d6210(0x3d5)]);}static[_0x2b1a47(0x2c1)](_0x1a2a5d,_0x230434){const _0x40c9c7=_0x2b1a47,{text:_0xeff530,color:_0x3c07fd}=_0x230434;_0x1a2a5d[_0x40c9c7(0x3c7)](),_0x1a2a5d[_0x40c9c7(0x271)]=_0x40c9c7(0x1f2);const _0x18b286=_0x1a2a5d[_0x40c9c7(0x34b)](_0xeff530)[_0x40c9c7(0x3d2)],_0x345bba=Math[_0x40c9c7(0x2aa)](_0x18b286+0x2*ne,Re);_t(_0x1a2a5d,{'height':K,'radius':0x4,'width':_0x345bba,'fill':_0x3c07fd}),_0x1a2a5d[_0x40c9c7(0x250)]=_0x40c9c7(0x28a);const _0x367cf1=ne,_0x3ec662=K-lt,_0x37b96a=Re-0x2*ne;if(_0x18b286>_0x37b96a){let _0x5465b3='',_0x4d166f=0x0;for(const _0x51cc14 of _0xeff530){const _0x34cfff=_0x1a2a5d[_0x40c9c7(0x34b)](_0x51cc14)[_0x40c9c7(0x3d2)];if(_0x4d166f+_0x34cfff<=_0x37b96a-_0x1a2a5d[_0x40c9c7(0x34b)](_0x40c9c7(0x315))['width'])_0x5465b3+=_0x51cc14,_0x4d166f+=_0x34cfff;else{_0x5465b3+=_0x40c9c7(0x315);break;}}_0x1a2a5d[_0x40c9c7(0x402)](_0x5465b3,_0x367cf1,_0x3ec662);}else _0x1a2a5d['fillText'](_0xeff530,_0x367cf1,_0x3ec662);_0x1a2a5d[_0x40c9c7(0x2e5)]();}[_0x2b1a47(0x1fa)](_0x24600f){const _0x41f5c8=_0x2b1a47;ee[_0x41f5c8(0x2c1)](_0x24600f,this);}}const re=_0x2b1a47(0x2a6),ht=_0x2b1a47(0x266),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,It=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x23766a,_0xe20346,_0x4fed8d,_0x53f7ac){const _0x3e99ee=_0x2b1a47;h(this,'_shapes',[]),h(this,_0x3e99ee(0x249),null),h(this,_0x3e99ee(0x32e),null),h(this,_0x3e99ee(0x233),null),h(this,_0x3e99ee(0x3fe),null),h(this,_0x3e99ee(0x465),null),(this[_0x3e99ee(0x2c3)]=_0x23766a,this[_0x3e99ee(0x2e2)]=_0xe20346,this[_0x3e99ee(0x22f)]=_0x4fed8d,this['_document']=_0x53f7ac,this[_0x3e99ee(0x2b2)]());}set[_0x2b1a47(0x3f7)](_0x40a094){const _0x428c94=_0x2b1a47;_0x40a094?(this[_0x428c94(0x233)]&&this[_0x428c94(0x233)]['hide'](),this[_0x428c94(0x32e)]&&this[_0x428c94(0x32e)]['show']()):(this[_0x428c94(0x233)]&&this[_0x428c94(0x233)][_0x428c94(0x3b2)](),this[_0x428c94(0x32e)]&&this[_0x428c94(0x32e)]['hide']());}[_0x2b1a47(0x307)](){const _0x553b32=_0x2b1a47;for(const _0x238f9a of this[_0x553b32(0x229)])_0x238f9a['dispose']();this['_textBubble']&&this['_textBubble'][_0x553b32(0x307)](),this[_0x553b32(0x233)]&&this[_0x553b32(0x233)][_0x553b32(0x307)](),this[_0x553b32(0x249)]&&this[_0x553b32(0x249)][_0x553b32(0x307)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2b1a47(0x2b2)](){const _0x79a6d0=_0x2b1a47;var _0x424ba7;const {_docSkeleton:_0x5481a8,_document:_0xe49232}=this,{color:_0x5fad47,name:_0xd38cbf,ranges:_0x2de489}=this['_cursor'],_0x2dda20=_0xe49232[_0x79a6d0(0x2b1)](),{docsLeft:_0x3f2324,docsTop:_0x28cf3b}=_0x2dda20,_0x2f2e55=new E[(_0x79a6d0(0x45c))](_0x2dda20,_0x5481a8);for(const {startOffset:_0x5aea4c,endOffset:_0x5a2abf,rangeType:_0x4a870f,segmentId:_0x5e3e47,segmentPage:_0x3a27a8,collapsed:_0xa6ef5f,isActive:_0x476cee}of _0x2de489){const _0x1b6fb1=_0x5481a8[_0x79a6d0(0x427)](_0x5aea4c,!0x0,_0x5e3e47,_0x3a27a8);let _0x5c72d2=_0x5481a8[_0x79a6d0(0x427)](_0x5a2abf,!0x0,_0x5e3e47,_0x3a27a8);if(_0x5c72d2==null&&(_0x5c72d2=_0x5481a8[_0x79a6d0(0x427)](_0x5a2abf-0x1,!0x1,_0x5e3e47,_0x3a27a8)),_0x476cee){const {contentBoxPointGroup:_0x57c8a5}=_0x2f2e55['getRangePointData'](_0x5c72d2,_0x5c72d2);if(_0x57c8a5['length']===0x0)continue;this['_drawAnchor'](_0x5fad47,_0x57c8a5,_0x3f2324,_0x28cf3b,_0xd38cbf),this[_0x79a6d0(0x465)]=this[_0x79a6d0(0x409)]();}if(_0x1b6fb1&&_0x5c72d2){if(_0x4a870f===a[_0x79a6d0(0x28f)][_0x79a6d0(0x3cd)]){const _0x29f504=new E['NodePositionConvertToRectRange'](_0x2dda20,_0x5481a8),{pointGroup:_0xdfed60}=(_0x424ba7=_0x29f504[_0x79a6d0(0x42e)](_0x1b6fb1,_0x5c72d2))!=null?_0x424ba7:{};if(_0xdfed60==null||_0xdfed60['length']===0x0)continue;this['_drawRectRange'](_0x5fad47,_0xdfed60,_0x3f2324,_0x28cf3b);}else{if(!_0xa6ef5f){const {borderBoxPointGroup:_0x365651}=_0x2f2e55[_0x79a6d0(0x42e)](_0x1b6fb1,_0x5c72d2);if(_0x365651[_0x79a6d0(0x3d8)]===0x0)continue;this[_0x79a6d0(0x371)](_0x5fad47,_0x365651,_0x3f2324,_0x28cf3b);}}}}}[_0x2b1a47(0x39a)](_0x3f1f55,_0x3af6b7,_0x707da2,_0x181871,_0x2ec357){const _0x26e167=_0x2b1a47,_0x4daf7e=this[_0x26e167(0x43f)](_0x3af6b7),{left:_0xcd8ccd,top:_0x4b4b5e,height:_0x5173b0}=_0x4daf7e,_0x529bdb=this['_getScale'](),_0x2c035c=It/_0x529bdb,_0x133668=new p[(_0x26e167(0x338))](re+a[_0x26e167(0x283)][_0x26e167(0x34c)](k),{'left':_0xcd8ccd+_0x707da2-_0x2c035c,'top':_0x4b4b5e+_0x181871,'height':_0x5173b0,'width':dt,'fill':_0x3f1f55||p[_0x26e167(0x222)](a[_0x26e167(0x37c)]['black'],0x0),'strokeWidth':_0x2c035c,'stroke':St,'evented':!0x0});this['_anchor']=_0x133668,this[_0x26e167(0x2e2)]['addObject'](_0x133668,E[_0x26e167(0x2ce)]);const _0xd95107=new p['Rect'](re+a['Tools'][_0x26e167(0x34c)](k),{'left':_0xcd8ccd+_0x707da2-_0x2c035c,'top':_0x4b4b5e+_0x181871-oe/0x2,'height':oe,'width':oe,'fill':_0x3f1f55||p[_0x26e167(0x222)](a['COLORS'][_0x26e167(0x349)],0x0),'strokeWidth':0x0,'stroke':_0x3f1f55||p[_0x26e167(0x222)](a[_0x26e167(0x37c)][_0x26e167(0x349)],0x0),'evented':!0x1});this[_0x26e167(0x233)]=_0xd95107,this[_0x26e167(0x2e2)][_0x26e167(0x468)](_0xd95107,E[_0x26e167(0x2ce)]);const _0x5dd580=new ee(re+a[_0x26e167(0x283)][_0x26e167(0x34c)](k),{'left':_0xcd8ccd+_0x707da2-_0x2c035c,'top':_0x4b4b5e+_0x181871-K,'text':_0x2ec357,'color':_0x3f1f55});this[_0x26e167(0x32e)]=_0x5dd580,this[_0x26e167(0x2e2)]['addObject'](_0x5dd580,E['TEXT_RANGE_LAYER_INDEX']),this[_0x26e167(0x3f7)]=!0x1;}['_handleHover'](){const _0x4ca89d=_0x2b1a47,_0x1e3b25=this['_anchor'][_0x4ca89d(0x33c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x14437d=this[_0x4ca89d(0x249)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x11e496=_0x4ca89d;this[_0x11e496(0x3fe)]&&clearTimeout(this[_0x11e496(0x3fe)]),this[_0x11e496(0x3fe)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4396da=_0x4ca89d;_0x1e3b25[_0x4396da(0x421)](),_0x14437d[_0x4396da(0x421)]();};}[_0x2b1a47(0x371)](_0x366e46,_0x3b192d,_0x52fe55,_0x4adeeb){const _0x535234=_0x2b1a47,_0x1c83d9=new a[(_0x535234(0x26b))](_0x366e46)[_0x535234(0x244)](0.2)[_0x535234(0x348)](),_0x5d0b04=new p[(_0x535234(0x23d))](ht+a[_0x535234(0x283)][_0x535234(0x34c)](k),{'pointsGroup':_0x3b192d,'fill':_0x1c83d9||p[_0x535234(0x222)](a['COLORS'][_0x535234(0x349)],0.2),'left':_0x52fe55,'top':_0x4adeeb,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x535234(0x354)](_0x5d0b04),this[_0x535234(0x2e2)][_0x535234(0x468)](_0x5d0b04,E[_0x535234(0x2ce)]);}[_0x2b1a47(0x339)](_0x222d63,_0x30b657,_0x21ad94,_0x2ca710){const _0x4c00b6=_0x2b1a47,_0x2d0b61=new a[(_0x4c00b6(0x26b))](_0x222d63)[_0x4c00b6(0x244)](0.2)[_0x4c00b6(0x348)](),_0x4a0e1e=new p['RegularPolygon'](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x30b657,'fill':_0x2d0b61||p[_0x4c00b6(0x222)](a[_0x4c00b6(0x37c)][_0x4c00b6(0x349)],0.2),'left':_0x21ad94,'top':_0x2ca710,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c00b6(0x229)][_0x4c00b6(0x354)](_0x4a0e1e),this[_0x4c00b6(0x2e2)][_0x4c00b6(0x468)](_0x4a0e1e,E['TEXT_RANGE_LAYER_INDEX']);}[_0x2b1a47(0x43f)](_0xa70034){const _0x2c5227=_0xa70034[0x0],_0x2151d4=_0x2c5227[0x0],_0x1e68a7=_0x2c5227[0x2],{x:_0x38dfeb,y:_0x29de6c}=_0x2151d4,{x:_0x39f573,y:_0x5928f1}=_0x1e68a7;return{'left':_0x38dfeb,'top':_0x29de6c,'width':_0x39f573-_0x38dfeb,'height':_0x5928f1-_0x29de6c};}[_0x2b1a47(0x3b3)](){const _0x47ca10=_0x2b1a47,{scaleX:_0x3147c3,scaleY:_0x41f5da}=this[_0x47ca10(0x2e2)]['getAncestorScale']();return Math[_0x47ca10(0x237)](_0x3147c3,_0x41f5da);}}var ft=Object['getOwnPropertyDescriptor'],vt=(_0x27df2d,_0x29a77c,_0x25d24c,_0x534394)=>{for(var _0x5271e5=_0x534394>0x1?void 0x0:_0x534394?ft(_0x29a77c,_0x25d24c):_0x29a77c,_0x1a7bbd=_0x27df2d['length']-0x1,_0x4429c4;_0x1a7bbd>=0x0;_0x1a7bbd--)(_0x4429c4=_0x27df2d[_0x1a7bbd])&&(_0x5271e5=_0x4429c4(_0x5271e5)||_0x5271e5);return _0x5271e5;},W=(_0x43bf92,_0x307011)=>(_0x17f8fb,_0x35f52c)=>_0x307011(_0x17f8fb,_0x35f52c,_0x43bf92);let fe=class extends a[_0x2b1a47(0x21d)]{constructor(_0x1bdc7f,_0x2ff069,_0x62cdde,_0x4c3213,_0x191132){const _0x5262ae=_0x2b1a47;super(),h(this,_0x5262ae(0x3b9),[]),h(this,_0x5262ae(0x3c1),[]),(this[_0x5262ae(0x2c6)]=_0x1bdc7f,this[_0x5262ae(0x2bc)]=_0x2ff069,this[_0x5262ae(0x2f8)]=_0x62cdde,this[_0x5262ae(0x386)]=_0x4c3213,this[_0x5262ae(0x25e)]=_0x191132,this[_0x5262ae(0x29d)]());}[_0x2b1a47(0x29d)](){const _0x390f1f=_0x2b1a47,_0x382604=this[_0x390f1f(0x2c6)][_0x390f1f(0x2d4)],_0x206b31=this[_0x390f1f(0x2bc)];this[_0x390f1f(0x20b)](d[_0x390f1f(0x1ea)]([this[_0x390f1f(0x2f8)][_0x390f1f(0x347)](_0x382604),this['_themeService'][_0x390f1f(0x2d6)]])['pipe']($[_0x390f1f(0x204)](([_0x55c2bc,_0x380fb7])=>({'skeleton':_0x206b31[_0x390f1f(0x28c)](),'cursors':[..._0x55c2bc[_0x390f1f(0x274)]()]['flatMap'](_0x431c97=>({..._0x431c97,'color':this[_0x390f1f(0x25e)]['getColorFromTheme'](_0x431c97['color'])}))})))[_0x390f1f(0x3a8)](_0x3d517b=>{const _0x12175f=_0x390f1f;if(this[_0x12175f(0x368)](),_0x3d517b){const {skeleton:_0x35abca,cursors:_0x58160d}=_0x3d517b;this[_0x12175f(0x340)](_0x35abca,_0x58160d);}})),this[_0x390f1f(0x27b)](),this[_0x390f1f(0x2db)]();}[_0x2b1a47(0x340)](_0x2832af,_0x51fcd5){const _0x4f924a=_0x2b1a47,{scene:_0x553911,mainComponent:_0x43021e}=this[_0x4f924a(0x2c6)],_0x1fd286=_0x51fcd5[_0x4f924a(0x204)](_0x1afae7=>new De(_0x1afae7,_0x553911,_0x2832af,_0x43021e));this[_0x4f924a(0x3b9)]=_0x1fd286,this[_0x4f924a(0x3c1)]=_0x51fcd5;}[_0x2b1a47(0x21f)](){const _0x99601b=_0x2b1a47;this['_removeCollabCursors']();const {scene:_0x20cb51,mainComponent:_0x36b757}=this[_0x99601b(0x2c6)],_0x3c0660=this[_0x99601b(0x2bc)]['getSkeleton'](),_0x73433e=this[_0x99601b(0x3c1)][_0x99601b(0x204)](_0x424a1f=>new De(_0x424a1f,_0x20cb51,_0x3c0660,_0x36b757));this[_0x99601b(0x3b9)]=_0x73433e;}[_0x2b1a47(0x368)](){const _0x3faa4d=_0x2b1a47;this[_0x3faa4d(0x3b9)]['forEach'](_0x417b08=>_0x417b08[_0x3faa4d(0x307)]()),this[_0x3faa4d(0x3b9)]=[];}[_0x2b1a47(0x2db)](){const _0x11a28f=_0x2b1a47,_0x21fa01=[E[_0x11a28f(0x449)]['id']];this['disposeWithMe'](this[_0x11a28f(0x386)][_0x11a28f(0x23c)](_0x5ccdf9=>{const _0x3e929a=_0x11a28f;_0x21fa01[_0x3e929a(0x226)](_0x5ccdf9['id'])&&_0x5ccdf9[_0x3e929a(0x2f0)][_0x3e929a(0x2d4)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x18fddf=_0x2b1a47;this[_0x18fddf(0x20b)](a[_0x18fddf(0x3f4)](this[_0x18fddf(0x2c6)]['engine'][_0x18fddf(0x217)])['pipe']($[_0x18fddf(0x3f5)](_0x3209a5=>_0x3209a5[_0x18fddf(0x299)]===p[_0x18fddf(0x24f)][_0x18fddf(0x460)]),$['throttleTime'](0x10))[_0x18fddf(0x3a8)](()=>{const _0x2a02ca=_0x18fddf;this[_0x2a02ca(0x21f)]();}));}};fe=vt([W(0x1,a[_0x2b1a47(0x2bd)](Y[_0x2b1a47(0x41a)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x2b1a47(0x29f)]),W(0x4,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x272)]))],fe);const gt=0x1,mt=1.5;function _0x4c68(){const _0x261c89=['_removeClearOtherTimer','_context','debounce','_toggleOnline','_transformPreviousActiveRange','_handleLeaveEvent','arc','transformMutation','getSheetId','TEXT_RANGE_LAYER_INDEX','source','next','1662HdROuM','onStarting','white','unitId','LICENSE_DISTRO_REJECTED','currentTheme$','asObservable','application/json','YUUMI_UNABLE_LOAD_URL','EMAIL_VERIFY_CODE_MISMATCH','_initCommandExecutedListener','_uiPartsService','href','CONFLICT','0\x200\x2017\x2016','EMAIL_HAS_BEEN_BOUND','onPointerLeave$','_scene','imageSourceType','handleDeleteRangeMoveUp','restore','BehaviorSubject','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','onPointerMove$','YUUMI_AI_RUN_FAILED','createInstance','transformRemoteChangeset','_localeService','TOO_MANY_REQUESTS','assignAColorForMemberID','fill','params','createSocket','InsertRangeMoveDownCommandId','SUBMIT_CHANGESET_TIMEOUT','startRow','COMPLETION_FINISHED','DocSelectionManagerService','getMember','_collabCursorController','MOBILE_VERIFY_CODE_MISMATCH','INVALID_INVITE_CODE','DataLoaderService','focused$','forEach','JOIN_ROOM_FAILED','collabStatus.syncing','makeDirty','SheetsSelectionsService','_notificationService','clearInterval','jsx','CollaborationDataLoaderController','call','dispose','_onCursorDelete','setInterval','endColumn','beginPath','_colorIndex','from','YUUMI_RATE_OVER_LIMIT','Error','RemoveColCommandId','all','_injector','setConfig','post','...','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_setupSubUnitSync','getUnitStatus$','SYNCED','CONNECTOR_DATA_TOO_LARGE','_registerRenderDependencies','getCurrentSelections','handleIRemoveRow','disableLocalCache','currentSkeleton$','UNAUTHENTICATED','_updateSubUnitFromURLParams','DocIMEInputManagerService','InsertRowCommandId','path','DeleteRangeMoveUpCommandId','session.collaboration-timeout','SheetCollabCursorShape','_scheduleSaving','activeSheet$','onLocalMutation','hasOwnProperty','contains','result','_textBubble','startColumn','registerComponent','defs','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','replaceDocRanges','OffLineIcon','M0\x200H16V16H0z','APPLY_DUPLICATED','subscribeEvent','Rect','_drawRectRange','http://www.w3.org/2000/svg','_lastPointer','onPointerEnter$','_onRefRangeChange','SessionStatus','_id','_updateCollabCursors','onRendered','_hovered','UNDEFINED','LICENSE_MAX_UNITS_EXCEEDED','RevisionService','CollaborationEvent','getCollabCursors$','toRgbString','black','[CollaborationDataLoaderController]','measureText','generateRandomId','_scheduleClearOtherTimer','trim','1em','roomMembers','_heartbeatTimer','OTHER_CLIENT_EDITING','history','push','executionId','collabStatus.fetchMiss','tag','roomMembers$','INVITE_CODE_REQUIRED','_univerInstanceService','transformSelections','HTTPService','_docClipboardService','getUniverSheetInstance','UNIVER_SHEET','MessageType','split','INVITE_CODE_ALREADY_BOUND','toString','CollaborationSocketService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','Optional','eventID','_removeCollabCursors','getCoordByCell','NO_OTHER_CLIENTS_EDITING','univerjs-icon\x20univerjs-icon-','_disabled','UnitStatus','/run/','_logService','LICENSE_EXPORT_SIZE_EXCEEDED','_drawTextRange','popstate','doc.mutation.rich-text-editing','isTransformMutationsWithChangesetSuccess','_refRangeService','addClipboardHook','3214260DjZjyG','function','unshift','YUUMI_TABLE_NOT_FOUND_IN_UNIT','DependentOn','COLORS','_initStatusListener','origin','entityInit$','WebURLService','_localStorageService','ENSURE_SNAPSHOT_EXECUTION','UniverInstanceType','collabStatus.conflict','handleDeleteRangeMoveLeft','_commandService','InsertRangeMoveRightCommandId','IBeforeCloseService','USER_NOT_INVITED_CODE','_docTransformIMECacheService','mutations','send','stringify','setUndoRedoMutationParamsCache','_handleHeartbeatEvent','EffectRefRangId','PERMISSION_DENIED','_labelPosition','getConfig','getVpScrollXYInfoByPosToVp','Unknown\x20user','distinctUntilChanged','_initEvent','collaboration.single-unit.warning','PY_RUNTIME_SCRIPT_ERROR','_drawAnchor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','sessionStatus$','_collaborationUIEventService','event$','_syncEditingCollabCursorService','wsSessionTicketUrl','SNAPSHOT_INVALID_SNAPSHOT','_unitStatus','AWAITING_WITH_PENDING','_docTransformSelectionsService','_unitOnClients','memberID','clearTimeout','subscribe','_messageService','session.will-retry','bottom','Tooltip','handleInsertCol','_handleJoinEvent','selections','SetTextSelectionsOperation','m2Prime','show','_getScale','transformMutationsWithChangeset','_scheduleHeartbeat','FromArray','textRanges','url(#off-line-icon_clip0_910_343)','_cursorShapes','IRenderManagerService','MoveRangeCommandId','_createSocketURL','_docStateChangeManagerService','setParam','assign','getActiveSheet','_cursors','handleInsertRow','fromEvent','clipPath','round','permission.title','save','handleIRemoveCol','endRow','getCollabEntity$','subunit','UPDATE_CURSOR','RECT','_cursorInfo$','univer-mr-2\x20univer-flex\x20univer-text-xl','urlChange$','currentColor','width','collabStatus.synced','m1Prime','text','FETCH_MISS','LOCAL_CACHE_INTERVAL','length','_initEntityListener','getSheetObject','mergeOverrideWithDependencies','_collaborationController','TEXT','APPLY_PERMISSION_DENIED','2799280CnjliD','cursorInfo','Injector','IMessageService','ALREADY_EXISTS','colorChannel1','addHandlerCallback','RichTextEditingMutation','collabStatus.offline','_entityInit$','getValue','_doCreateSocket','replace','LOGIN_FAILED','svg','getUnitId','fillRule','_assignedColors','DocStateChangeManagerService','replaceState','triggerDblclick','fromEventSubject','filter','OnLineIcon','_hover','getUndoRedoMutationParamsCache','add','current','mapTo','useObservable','createIdentifier','_hideTimer','Module','with','then','fillText','location','collaboration-client.offline-data-not-saved','WECHAT_HAS_BEEN_BOUND','color','_selfUnitIDs','propertyIsEnumerable','_handleHover','debug','createElement','CollaborationController','apply','lineTo','evenodd','init','off-line-icon','Disposable','_registerDependencies','undoState','49226001rUCKNK','getTypeOfUnitDisposed$','RefRangeService','registerDependencies','data','DocSkeletonManagerService','YUUMI_CONNECTOR_URL_NOT_FOUND','prototype','getTypeOfUnitAdded$','YUUMI_ASYNCIO_CANCELLED','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','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','unsubscribe','Failed','hovered','setItem','random','ILogService','findNodePositionByCharIndex','_initStatusComponent','icon','delete','getFocusedUnit','exhaustSavingTask','CLOSE_ROOM','getRangePointData','CHANGESET_REVISION_CONFILICT','DeleteRangeMoveLeftCommandId','takeUntil','IUIPartsService','registerRenderModule','touchDependencies','skeleton','_configService','div','uni.network.url-service','_roomMembers$','_transformUndoRedoStack','UniverIcon','USERS_LEAVE','12aZzkQC','DesktopCollaborationStatusDisplayController','_getAnchorBounding','_transformHistoryAndStateStack','OFFLINE','_status$','useDependency','DocCollaborationEntity','getRenderById','parse','Warning','6460230ANLdtH','SetDocZoomRatioOperation','code','runId','collabCursorState$','_updateLocalCursor','className','name','_memberService','_clearOtherTimers','permission.content','xlink:href','_config','_urlService','enableLocalCache','saveOfflineData','SetWorksheetActivateCommand','INVITE_CODE_HAS_BEEN_UES','row','isTransformMutationFailure','NodePositionConvertToCursor','pushState','_saveTaskMap','OTHER_CLIENTS_EDITING','resize','column','getOwnPropertyDescriptor','10973nzsWBn','key','_eventUnsubscribe','getSheetBySheetId','62xJGTol','addObject','_startDocCollabCursor','_colorAssignService','isActive','setShapeProps','isEditing','combineLatest','executeCommand','getActiveRange','session.connection-failed','getStateCache','children','concat','clsx','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_name','some','removeParam','collab-client.tooltip.reconnect','_localCacheService','body','ILocalStorageService','_draw','useRef','complete','_getSaveTimeout','transformByState','getOwnPropertySymbols','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','IURLService','_onCursorUpdate','override','map','NOT_COLLAB','string','_docTransformStateCacheService','shareReplay','LICENSE_IMPORT_SIZE_EXCEEDED','requireSession','disposeWithMe','mask','UniverCollaborationClientPlugin','range','extend','_renderManagerService','_updateURLWithCurrentState','2388415eyFZBx','getMergeData','collaboration.closeRoom','sheetId','none','onTransformChange$','toStringTag','get','UNIVER_DOC','_getSessionTicket','startsWith','RxDisposable','transformIMECache','_refreshCollabCursors','on-line-icon_clip0_910_349','pipe','getColor','_setupBeforeClosingHandler','_send','setActiveRange','includes','YUUMI_SUBSCRIPTION_NOT_FOUND','registerRefRange','_shapes','_backgroundColor','ticket','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','MUTATION','deserializeRangeWithSheet','_docSkeleton','YUUMI_NO_CUBOID_FOR_QUESTION','search','_getSheetObject','_anchorDot','_ensureSubject','backgroundColor','height','max','LOCAL_CACHE_INTERVAL_KEY','RemoteUniscriptService','setTimeout','_docSyncEditingCollabCursorService','onCommandExecuted','RegularPolygon','_toggleOffline','dispose$','storage','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','_session','url(#$1','setAlpha','CollaborationUIEventId','defineProperty','top','_initDependencies','_anchor','PENDING','Shape','ONLINE','off-line-icon_clip0_910_343','onMouseMove','TRANSFORM_CHANGE_OBSERVABLE_TYPE','fillStyle','getLocalCacheKey','_imageIoService','debounceTime','url(#on-line-icon_clip0_910_349)','INotificationService','_instanceService','serializeRangeWithSheet','_collabCursorState$','ACTIVE_UNIT_EVENT_CHANNEL','3878VVTlxg','set','0\x200\x2016\x2016','getParam','_themeService','find','indexOf','APPLY_NON_SEQUENTIAL_REVISION','IConfigService','_online','has','getAncestorScale','collab-text-range-','InsertColCommandId','idSuffix','transformStateCache','getCellPositionByOffset','ColorKit','SNAPSHOT_HAS_BEEN_REMOVED','NOT_FOUND','YUUMI_URL_COL_OUT_OF_RANGE','yellow.400','_entities','font','ThemeService','newValue','values','unitID','cursorInfo$','_range','getMemberID','_handleEvent','YUUMI_ALL_TABLES_IS_INVALID','_initResize','selection','updateOfflineData','ranges','CollaborationSessionService','use','Vector2','MOBILE_HAS_BEEN_BOUND','Tools','SOCKET_FAILED_RETRY','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','merge','_saveCache','BuiltInUIPart','#FFF','Plugin','getSkeleton','VIEW_MAIN','APPLY_REVISION_CONFILICT','DOC_RANGE_TYPE','error','entries','_startSheetCollabCursor','_beforeCloseService','INVALID_ARGUMENT','editingUnit','18wEYYcJ','_revisionService','APPLY_REJECT','type','collaboration-client-ui.config','displayName','BrowserCollaborationSocketService','_init','_cachedData','ICommandService','_color','saveTaskMap','searchParams','IUniverInstanceService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getMergeRange','collab-text-anchor-','DisposableCollection','disposeUnit','UniverCollaborationClientUIPlugin','min','redoState','unload','unit','size','forwardRef','green.600','getOffsetConfig','_render','_httpService','CollaborationStatus','ITransformService','LocaleService','isArray','attrs','_sheetSkeletonManagerService','addObjects','getDocRanges','_docSkeletonManagerService','Inject','switchMap','_transformService','deepClone','drawWith','defIds','_cursor','ILocalCacheService'];_0x4c68=function(){return _0x261c89;};return _0x4c68();}class we extends p[_0x2b1a47(0x24b)]{constructor(_0x44c26,_0x49515e){const _0xd820ea=_0x2b1a47;super(_0x44c26,_0x49515e),h(this,_0xd820ea(0x2a0)),h(this,_0xd820ea(0x342),!0x1),h(this,'_range'),h(this,_0xd820ea(0x1f3),''),h(this,_0xd820ea(0x392),_0xd820ea(0x247)),h(this,_0xd820ea(0x22a)),(_0x49515e&&this[_0xd820ea(0x1e8)](_0x49515e),this['onPointerEnter$'][_0xd820ea(0x337)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0xd820ea(0x2e1)][_0xd820ea(0x337)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2b1a47(0x1e8)](_0x21ec58){const _0x463ae=_0x2b1a47;var _0xe855cb,_0xf525f3,_0x2bdc81,_0x5a0c91,_0x7dec45,_0x1462d9;this[_0x463ae(0x2a0)]=(_0xe855cb=_0x21ec58[_0x463ae(0x406)])!=null?_0xe855cb:this[_0x463ae(0x2a0)],this['_hovered']=(_0xf525f3=_0x21ec58[_0x463ae(0x423)])!=null?_0xf525f3:this[_0x463ae(0x342)],this[_0x463ae(0x277)]=(_0x2bdc81=_0x21ec58['range'])!=null?_0x2bdc81:this[_0x463ae(0x277)],this['_name']=(_0x5a0c91=_0x21ec58[_0x463ae(0x44f)])!=null?_0x5a0c91:this[_0x463ae(0x1f3)],this[_0x463ae(0x392)]=(_0x7dec45=_0x21ec58['labelPosition'])!=null?_0x7dec45:this[_0x463ae(0x392)],this[_0x463ae(0x22a)]=(_0x1462d9=_0x21ec58[_0x463ae(0x235)])!=null?_0x1462d9:this['_backgroundColor'],this[_0x463ae(0x1fe)]({'width':_0x21ec58[_0x463ae(0x3d2)],'height':_0x21ec58[_0x463ae(0x236)]});}[_0x2b1a47(0x24e)](_0x519b7a){const _0x221125=_0x2b1a47,{row:_0x48342c,column:_0x4af8ab}=_0x519b7a;if(_0x48342c>=this['_range'][_0x221125(0x2f4)]&&_0x48342c<=this[_0x221125(0x277)][_0x221125(0x3c9)]&&_0x4af8ab>=this['_range'][_0x221125(0x32f)]&&_0x4af8ab<=this[_0x221125(0x277)][_0x221125(0x30a)]){this[_0x221125(0x1e8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2b1a47(0x3f3)](_0x545691){return!0x1;}[_0x2b1a47(0x1fa)](_0x253703){const _0x23539b=_0x2b1a47;p[_0x23539b(0x338)][_0x23539b(0x2c1)](_0x253703,{'width':this[_0x23539b(0x3d2)],'height':this[_0x23539b(0x236)],'strokeWidth':mt,'stroke':this[_0x23539b(0x2a0)],'evented':!0x1,'fill':this[_0x23539b(0x22a)]}),this[_0x23539b(0x342)]&&(_0x253703[_0x23539b(0x3c7)](),_0x253703['transform'](0x1,0x0,0x0,0x1,this[_0x23539b(0x3d2)],this[_0x23539b(0x392)]==='bottom'?0x0:-0x14),ee[_0x23539b(0x2c1)](_0x253703,{'text':this['_name'],'color':this[_0x23539b(0x2a0)]}),_0x253703['restore']());}}var Ct=Object[_0x2b1a47(0x462)],pt=(_0x5491ea,_0x108bf7,_0x1e8f90,_0x890d1e)=>{const _0x25c214=_0x2b1a47;for(var _0x536df7=_0x890d1e>0x1?void 0x0:_0x890d1e?Ct(_0x108bf7,_0x1e8f90):_0x108bf7,_0x254ff5=_0x5491ea[_0x25c214(0x3d8)]-0x1,_0x4d2a20;_0x254ff5>=0x0;_0x254ff5--)(_0x4d2a20=_0x5491ea[_0x254ff5])&&(_0x536df7=_0x4d2a20(_0x536df7)||_0x536df7);return _0x536df7;},ae=(_0xa95b9,_0x534cfa)=>(_0x157075,_0x3cfe58)=>_0x534cfa(_0x157075,_0x3cfe58,_0xa95b9);const Et=0x1389;let ve=class extends a['RxDisposable']{constructor(_0xec2b5f,_0x5cd4b5,_0x2aa026,_0x10dbfd){const _0x5c1059=_0x2b1a47;super(),h(this,_0x5c1059(0x3c1),new Set()),h(this,_0x5c1059(0x33b),null),(this['_context']=_0xec2b5f,this['_sheetSkeletonManagerService']=_0x5cd4b5,this[_0x5c1059(0x2f8)]=_0x2aa026,this[_0x5c1059(0x25e)]=_0x10dbfd,this['_init']());}[_0x2b1a47(0x29d)](){const _0x34397d=_0x2b1a47;this[_0x34397d(0x2b9)]['currentSkeleton$'][_0x34397d(0x221)]($['takeUntil'](this['dispose$']),$[_0x34397d(0x2be)](_0x471d91=>{const _0x267925=_0x34397d;if(_0x471d91){const _0x53f8f1=_0x471d91[_0x267925(0x215)];return d[_0x267925(0x1ea)](this[_0x267925(0x2f8)]['getCollabCursors$'](this[_0x267925(0x2c6)]['unitId']),this[_0x267925(0x25e)][_0x267925(0x2d6)])[_0x267925(0x221)]($[_0x267925(0x204)](([_0x2070da,_0x5d1d34])=>{const _0x477fdd=new Map();return _0x2070da['forEach']((_0x1dbfa8,_0x3223df)=>{const _0x5aa651=_0x2e62;if(_0x1dbfa8['sheetID']===_0x53f8f1){const _0x32edef={..._0x1dbfa8};_0x32edef[_0x5aa651(0x406)]=this[_0x5aa651(0x25e)]['getColorFromTheme'](_0x1dbfa8[_0x5aa651(0x406)]),_0x477fdd[_0x5aa651(0x25b)](_0x3223df,_0x32edef);}}),{'skeleton':_0x471d91,'cursors':_0x477fdd};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x4f7dbc,cursors:_0x2e8a7a})=>{const _0x1aec8a=_0x34397d;this['_removeCollabCursors'](),_0x4f7dbc&&this[_0x1aec8a(0x340)](_0x4f7dbc,_0x2e8a7a);}),this[_0x34397d(0x2b9)][_0x34397d(0x31f)]['subscribe'](_0x234f18=>{const _0x2f9dc9=_0x34397d;if(_0x234f18==null)return;const {skeleton:_0x11297a}=_0x234f18,{scene:_0x4bedd4}=this[_0x2f9dc9(0x2c6)];_0x4bedd4[_0x2f9dc9(0x2e8)][_0x2f9dc9(0x337)](a[_0x2f9dc9(0x2c7)](_0x2596fb=>{const _0x523ff8=_0x2f9dc9;var _0x5ba35,_0x1b9f45;const {offsetX:_0x2c1261,offsetY:_0x23de48}=_0x2596fb,{x:_0x5e729e,y:_0x1ec2b9}=_0x4bedd4['getRelativeToViewportCoord'](p[_0x523ff8(0x281)][_0x523ff8(0x3b6)]([_0x2c1261,_0x23de48])),{scaleX:_0x2fc9d5,scaleY:_0x4ee8ca}=_0x4bedd4[_0x523ff8(0x265)](),_0x337dca=_0x4bedd4['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x523ff8(0x28d)]),_0x37f6c6=_0x4bedd4[_0x523ff8(0x394)](p[_0x523ff8(0x281)]['FromArray']([_0x5e729e,_0x1ec2b9]),_0x337dca),_0x1b02b9=_0x11297a[_0x523ff8(0x26a)](_0x2c1261,_0x23de48,_0x2fc9d5,_0x4ee8ca,_0x37f6c6);((_0x5ba35=this[_0x523ff8(0x33b)])==null?void 0x0:_0x5ba35[_0x523ff8(0x461)])===_0x1b02b9[_0x523ff8(0x461)]&&((_0x1b9f45=this[_0x523ff8(0x33b)])==null?void 0x0:_0x1b9f45[_0x523ff8(0x45a)])===_0x1b02b9[_0x523ff8(0x45a)]||this['_cursors'][_0x523ff8(0x2fd)](_0x53fb7b=>{const _0x4a4a9c=_0x523ff8;_0x53fb7b[_0x4a4a9c(0x24e)](_0x1b02b9);});},0x64));});}['_updateCollabCursors'](_0xbdd8ca,_0x2ebeb0){const _0x43c02c=_0x2b1a47;var _0x391459;const _0x3518a0=(_0x391459=this[_0x43c02c(0x2b9)]['getCurrent']())==null?void 0x0:_0x391459[_0x43c02c(0x435)];if(!_0x3518a0)return;const _0x48215f=this[_0x43c02c(0x232)]();if(!_0x48215f)return;this[_0x43c02c(0x3c1)]['forEach'](_0x244e02=>{const _0x4739c1=_0x43c02c;_0x244e02[_0x4739c1(0x300)]();});const {scene:_0x24753a}=_0x48215f,_0xaddd6c=bt(Array[_0x43c02c(0x30d)](_0x2ebeb0['values']()))[_0x43c02c(0x204)](_0x50170f=>{const _0xfdb2a5=_0x43c02c,{color:_0x24ce1a,range:_0xe6d2b2,name:_0x21cffd,selection:_0x3a61f8,sheetID:_0x1c6c6a}=_0x50170f,{startColumn:_0x5998ca,startRow:_0x18ba4a,endColumn:_0x2ff5ed,endRow:_0x1efca1}=_0xe6d2b2,_0x541bf8=X[_0xfdb2a5(0x369)](_0x18ba4a,_0x5998ca,_0x24753a,_0x3518a0),_0x4f90e6=X[_0xfdb2a5(0x369)](_0x1efca1,_0x2ff5ed,_0x24753a,_0x3518a0),{columnHeaderHeightAndMarginTop:_0x5693c9}=_0x3518a0,{startX:_0x13ef30,startY:_0x3e94e8}=_0x541bf8,{endX:_0x2f6bdb,endY:_0x18382a}=_0x4f90e6,_0x246184=_0x2f6bdb-_0x13ef30,_0xc5f7f8=_0x18382a-_0x3e94e8,_0x5c55af={'labelPosition':_0x3e94e8-_0x5693c9>=K?_0xfdb2a5(0x247):_0xfdb2a5(0x3ab),'sheetID':_0x1c6c6a,'range':_0xe6d2b2,'color':_0x24ce1a,'name':_0x21cffd,'selection':_0x3a61f8,'left':_0x13ef30,'top':_0x3e94e8,'width':_0x246184,'height':_0xc5f7f8,'evented':!0x1,'zIndex':Et};return new we(_0x21cffd,_0x5c55af);});_0x24753a[_0x43c02c(0x2ba)](_0xaddd6c,gt),this['_cursors']=new Set(_0xaddd6c);}[_0x2b1a47(0x368)](){const _0x1518cc=_0x2b1a47;var _0x39fead;(_0x39fead=this[_0x1518cc(0x3c1)])==null||_0x39fead['forEach'](_0x50007b=>_0x50007b['dispose']());}[_0x2b1a47(0x232)](){const _0x18facf=_0x2b1a47;return X[_0x18facf(0x3da)](this[_0x18facf(0x2c6)][_0x18facf(0x2ad)],this[_0x18facf(0x2c6)]);}};ve=pt([ae(0x1,a[_0x2b1a47(0x2bd)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a['Inject'](a[_0x2b1a47(0x272)]))],ve);function bt(_0x80690e){const _0x4c9a17=_0x2b1a47,_0x406436=new Map();return _0x80690e[_0x4c9a17(0x2fd)](_0x2ef48c=>{const _0x1f7678=_0x4c9a17;if(_0x406436['has'](_0x2ef48c[_0x1f7678(0x27c)])){const _0x1d1588=_0x406436[_0x1f7678(0x219)](_0x2ef48c[_0x1f7678(0x27c)]);_0x1d1588[_0x1f7678(0x44f)]+=',\x20'+_0x2ef48c[_0x1f7678(0x44f)];}else _0x406436[_0x1f7678(0x25b)](_0x2ef48c['selection'],_0x2ef48c);}),Array[_0x4c9a17(0x30d)](_0x406436[_0x4c9a17(0x274)]());}var b=function(){const _0x33c99b=_0x2b1a47;return b=Object[_0x33c99b(0x3bf)]||function(_0x11d40b){const _0x4e642c=_0x33c99b;for(var _0x52410f,_0x4f97ec=0x1,_0x3ac708=arguments[_0x4e642c(0x3d8)];_0x4f97ec<_0x3ac708;_0x4f97ec++){_0x52410f=arguments[_0x4f97ec];for(var _0x148e95 in _0x52410f)Object[_0x4e642c(0x41c)][_0x4e642c(0x32b)][_0x4e642c(0x306)](_0x52410f,_0x148e95)&&(_0x11d40b[_0x148e95]=_0x52410f[_0x148e95]);}return _0x11d40b;},b[_0x33c99b(0x40d)](this,arguments);},Ot=function(_0x594419,_0x1b4ad8){const _0x46b342=_0x2b1a47;var _0x41bf9c={};for(var _0x418f23 in _0x594419)Object[_0x46b342(0x41c)][_0x46b342(0x32b)][_0x46b342(0x306)](_0x594419,_0x418f23)&&_0x1b4ad8['indexOf'](_0x418f23)<0x0&&(_0x41bf9c[_0x418f23]=_0x594419[_0x418f23]);if(_0x594419!=null&&typeof Object['getOwnPropertySymbols']==_0x46b342(0x378)){for(var _0x3753f1=0x0,_0x418f23=Object[_0x46b342(0x1ff)](_0x594419);_0x3753f1<_0x418f23[_0x46b342(0x3d8)];_0x3753f1++)_0x1b4ad8[_0x46b342(0x260)](_0x418f23[_0x3753f1])<0x0&&Object['prototype'][_0x46b342(0x408)][_0x46b342(0x306)](_0x594419,_0x418f23[_0x3753f1])&&(_0x41bf9c[_0x418f23[_0x3753f1]]=_0x594419[_0x418f23[_0x3753f1]]);}return _0x41bf9c;},pe=M[_0x2b1a47(0x2af)](function(_0x327f1f,_0x427cb8){const _0x36fbcf=_0x2b1a47;var _0x5f29ae=_0x327f1f[_0x36fbcf(0x429)],_0x4864fc=_0x327f1f['id'],_0x5c063f=_0x327f1f[_0x36fbcf(0x44e)],_0x4de0f5=_0x327f1f[_0x36fbcf(0x20f)],_0x5bc2f9=Ot(_0x327f1f,[_0x36fbcf(0x429),'id',_0x36fbcf(0x44e),_0x36fbcf(0x20f)]),_0x59ae5d=_0x36fbcf(0x36b)[_0x36fbcf(0x1f0)](_0x4864fc,'\x20')[_0x36fbcf(0x1f0)](_0x5c063f||'')[_0x36fbcf(0x34e)](),_0x27d0b8=M[_0x36fbcf(0x1fb)]('_'[_0x36fbcf(0x1f0)](Dt()));return Ae(_0x5f29ae,''[_0x36fbcf(0x1f0)](_0x4864fc),{'defIds':_0x5f29ae['defIds'],'idSuffix':_0x27d0b8[_0x36fbcf(0x3fa)]},b({'ref':_0x427cb8,'className':_0x59ae5d},_0x5bc2f9),_0x4de0f5);});function Ae(_0x1d9fc9,_0x1502c0,_0x2a669,_0x30662c,_0xff3704){const _0x2a4169=_0x2b1a47;return M['createElement'](_0x1d9fc9[_0x2a4169(0x357)],b(b({'key':_0x1502c0},Tt(_0x1d9fc9,_0x2a669,_0xff3704)),_0x30662c),(Rt(_0x1d9fc9,_0x2a669)[_0x2a4169(0x1ef)]||[])[_0x2a4169(0x204)](function(_0x54673c,_0x407071){const _0x3f5185=_0x2a4169;return Ae(_0x54673c,''[_0x3f5185(0x1f0)](_0x1502c0,'-')[_0x3f5185(0x1f0)](_0x1d9fc9[_0x3f5185(0x357)],'-')[_0x3f5185(0x1f0)](_0x407071),_0x2a669,void 0x0,_0xff3704);}));}function Tt(_0x3206ad,_0x1c50d1,_0x199f7f){const _0x10f83e=_0x2b1a47;var _0x1b3b55=b({},_0x3206ad[_0x10f83e(0x2b8)]);_0x199f7f!=null&&_0x199f7f['colorChannel1']&&_0x1b3b55[_0x10f83e(0x2ef)]==='colorChannel1'&&(_0x1b3b55[_0x10f83e(0x2ef)]=_0x199f7f[_0x10f83e(0x3e4)]),_0x3206ad[_0x10f83e(0x357)]==='mask'&&_0x1b3b55['id']&&(_0x1b3b55['id']=_0x1b3b55['id']+_0x1c50d1[_0x10f83e(0x268)]),Object[_0x10f83e(0x291)](_0x1b3b55)['forEach'](function(_0x1c57dc){const _0x5cf28d=_0x10f83e;var _0x4b5e77=_0x1c57dc[0x0],_0x1ddb1b=_0x1c57dc[0x1];_0x4b5e77===_0x5cf28d(0x20c)&&typeof _0x1ddb1b=='string'&&(_0x1b3b55[_0x4b5e77]=_0x1ddb1b[_0x5cf28d(0x3eb)](/url\(#(.*)\)/,_0x5cf28d(0x243)[_0x5cf28d(0x1f0)](_0x1c50d1['idSuffix'],')')));});var _0xcd047b=_0x1c50d1[_0x10f83e(0x2c2)];return!_0xcd047b||_0xcd047b[_0x10f83e(0x3d8)]===0x0||(_0x3206ad['tag']===_0x10f83e(0x280)&&_0x1b3b55[_0x10f83e(0x453)]&&(_0x1b3b55[_0x10f83e(0x453)]=_0x1b3b55[_0x10f83e(0x453)]+_0x1c50d1[_0x10f83e(0x268)]),Object[_0x10f83e(0x291)](_0x1b3b55)['forEach'](function(_0x1eb204){const _0x2603cf=_0x10f83e;var _0x5152b4=_0x1eb204[0x0],_0x2e1f74=_0x1eb204[0x1];typeof _0x2e1f74==_0x2603cf(0x206)&&(_0x1b3b55[_0x5152b4]=_0x2e1f74[_0x2603cf(0x3eb)](/url\(#(.*)\)/,_0x2603cf(0x243)[_0x2603cf(0x1f0)](_0x1c50d1[_0x2603cf(0x268)],')')));})),_0x1b3b55;}function Rt(_0x4b4bf0,_0xb3c165){const _0x292499=_0x2b1a47;var _0x495440,_0xfa4b03=_0xb3c165['defIds'];return!_0xfa4b03||_0xfa4b03[_0x292499(0x3d8)]===0x0?_0x4b4bf0:_0x4b4bf0[_0x292499(0x357)]===_0x292499(0x331)&&(!((_0x495440=_0x4b4bf0[_0x292499(0x1ef)])===null||_0x495440===void 0x0)&&_0x495440[_0x292499(0x3d8)])?b(b({},_0x4b4bf0),{'children':_0x4b4bf0[_0x292499(0x1ef)][_0x292499(0x204)](function(_0x19d16b){const _0x5e6202=_0x292499;return typeof _0x19d16b[_0x5e6202(0x2b8)]['id']==_0x5e6202(0x206)&&_0xfa4b03&&_0xfa4b03[_0x5e6202(0x226)](_0x19d16b[_0x5e6202(0x2b8)]['id'])?b(b({},_0x19d16b),{'attrs':b(b({},_0x19d16b[_0x5e6202(0x2b8)]),{'id':_0x19d16b[_0x5e6202(0x2b8)]['id']+_0xb3c165[_0x5e6202(0x268)]})}):_0x19d16b;})}):_0x4b4bf0;}function Dt(){const _0x3d97c=_0x2b1a47;return Math[_0x3d97c(0x425)]()[_0x3d97c(0x363)](0x24)['substring'](0x2,0x8);}pe[_0x2b1a47(0x29b)]=_0x2b1a47(0x43b);var Ut={'tag':_0x2b1a47(0x3ed),'attrs':{'xmlns':_0x2b1a47(0x33a),'fill':_0x2b1a47(0x216),'viewBox':_0x2b1a47(0x25c),'width':'1em','height':_0x2b1a47(0x34f)},'children':[{'tag':'g','attrs':{'clipPath':_0x2b1a47(0x3b8)},'children':[{'tag':_0x2b1a47(0x324),'attrs':{'stroke':_0x2b1a47(0x3d1),'d':_0x2b1a47(0x241),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2b1a47(0x331),'attrs':{},'children':[{'tag':_0x2b1a47(0x3c4),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2b1a47(0x324),'attrs':{'fill':_0x2b1a47(0x2d3),'d':_0x2b1a47(0x335)}}]}]}],'defIds':[_0x2b1a47(0x24d)]},ye=M['forwardRef'](function(_0x4b0943,_0x350472){const _0x16e77d=_0x2b1a47;return M[_0x16e77d(0x40b)](pe,Object[_0x16e77d(0x3bf)]({},_0x4b0943,{'id':_0x16e77d(0x411),'ref':_0x350472,'icon':Ut}));});ye[_0x2b1a47(0x29b)]=_0x2b1a47(0x334);var Nt={'tag':'svg','attrs':{'xmlns':_0x2b1a47(0x33a),'fill':_0x2b1a47(0x216),'viewBox':_0x2b1a47(0x2df),'width':_0x2b1a47(0x34f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2b1a47(0x254)},'children':[{'tag':_0x2b1a47(0x324),'attrs':{'stroke':_0x2b1a47(0x3d1),'d':_0x2b1a47(0x41f),'strokeLinecap':_0x2b1a47(0x3c5),'strokeLinejoin':_0x2b1a47(0x3c5),'strokeWidth':1.2}}]},{'tag':_0x2b1a47(0x331),'attrs':{},'children':[{'tag':_0x2b1a47(0x3c4),'attrs':{'id':_0x2b1a47(0x220)},'children':[{'tag':_0x2b1a47(0x324),'attrs':{'fill':_0x2b1a47(0x2d3),'d':_0x2b1a47(0x335),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2b1a47(0x220)]},$e=M[_0x2b1a47(0x2af)](function(_0x1ccfce,_0x5393b7){const _0x5df839=_0x2b1a47;return M[_0x5df839(0x40b)](pe,Object[_0x5df839(0x3bf)]({},_0x1ccfce,{'id':'on-line-icon','ref':_0x5393b7,'icon':Nt}));});$e[_0x2b1a47(0x29b)]=_0x2b1a47(0x3f6);function Mt(_0x59c7da){const _0x54ce5f=_0x2b1a47;switch(_0x59c7da){case u[_0x54ce5f(0x2b4)][_0x54ce5f(0x441)]:return _0x54ce5f(0x3e7);case u['CollaborationStatus'][_0x54ce5f(0x2de)]:return _0x54ce5f(0x384);case u[_0x54ce5f(0x2b4)][_0x54ce5f(0x3d6)]:return _0x54ce5f(0x356);case u['CollaborationStatus'][_0x54ce5f(0x205)]:return'collabStatus.notCollab';case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus'][_0x54ce5f(0x3a3)]:return _0x54ce5f(0x2ff);case u[_0x54ce5f(0x2b4)][_0x54ce5f(0x319)]:case u['CollaborationStatus'][_0x54ce5f(0x24a)]:return _0x54ce5f(0x3d3);}}function xe(_0xde6a84){const _0x597bc2=_0x2b1a47,{status$:_0xc43355}=_0xde6a84,_0x21938a=O[_0x597bc2(0x3fc)](_0xc43355,u[_0x597bc2(0x2b4)]['NOT_COLLAB']),_0x370297=O[_0x597bc2(0x443)](a[_0x597bc2(0x2b6)]),_0x299fa3=O[_0x597bc2(0x443)](u[_0x597bc2(0x27f)]),_0x2ed981=_0x21938a!==u[_0x597bc2(0x2b4)][_0x597bc2(0x441)],_0xe56de8=_0x370297['t'](Mt(_0x21938a)),_0x3d5e95=_0x2ed981?P[_0x597bc2(0x304)]($e,{}):P['jsx'](ye,{}),_0x1e8af1=M['useCallback'](()=>{_0x2ed981||_0x299fa3['reconnect']();},[_0x2ed981,_0x299fa3]);function _0x147853(){const _0x5719ba=_0x597bc2;return P['jsxs'](_0x5719ba(0x437),{'className':'univer-flex\x20univer-items-center','onClick':_0x1e8af1,'children':[P[_0x5719ba(0x304)](_0x5719ba(0x437),{'className':D[_0x5719ba(0x1f1)](_0x5719ba(0x3cf),{'univer-text-green-500':_0x2ed981,'univer-text-red-500':!_0x2ed981}),'children':_0x3d5e95}),P['jsx'](_0x5719ba(0x437),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xe56de8})]});}return _0x2ed981?_0x147853():P[_0x597bc2(0x304)](D[_0x597bc2(0x3ac)],{'title':_0x370297['t'](_0x597bc2(0x1f6)),'children':_0x147853()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x6ae2a5,_0x5c7fb1,_0x156729,_0x210966)=>{for(var _0x36ca05=_0x210966>0x1?void 0x0:_0x210966?Lt(_0x5c7fb1,_0x156729):_0x5c7fb1,_0x9852e2=_0x6ae2a5['length']-0x1,_0x186e84;_0x9852e2>=0x0;_0x9852e2--)(_0x186e84=_0x6ae2a5[_0x9852e2])&&(_0x36ca05=_0x186e84(_0x36ca05)||_0x36ca05);return _0x36ca05;},V=(_0x51beed,_0x129032)=>(_0x30e7e7,_0x19f010)=>_0x129032(_0x30e7e7,_0x19f010,_0x51beed);exports[_0x2b1a47(0x43e)]=class extends a['Disposable']{constructor(_0x4efd83,_0x11fc8a,_0x8436dc,_0x5ecbee){const _0x22b196=_0x2b1a47;super(),h(this,_0x22b196(0x442),new d[(_0x22b196(0x2e6))](u[_0x22b196(0x2b4)][_0x22b196(0x205)])),(this[_0x22b196(0x35a)]=_0x4efd83,this[_0x22b196(0x312)]=_0x11fc8a,this[_0x22b196(0x3dc)]=_0x8436dc,this['_uiPartsService']=_0x5ecbee,this[_0x22b196(0x428)](),this[_0x22b196(0x37d)]());}['_initStatusListener'](){const _0x14de06=_0x2b1a47;this['disposeWithMe'](this[_0x14de06(0x35a)][_0x14de06(0x2fc)][_0x14de06(0x221)](d[_0x14de06(0x2be)](()=>{const _0x5f52bb=_0x14de06,_0x52ddce=this[_0x5f52bb(0x35a)][_0x5f52bb(0x42b)]();return _0x52ddce?this[_0x5f52bb(0x3dc)][_0x5f52bb(0x3ca)](_0x52ddce[_0x5f52bb(0x3ee)]()):d['of'](null);}),d[_0x14de06(0x2be)](_0x45e8e0=>_0x45e8e0?_0x45e8e0['status$']:d['of'](u[_0x14de06(0x2b4)][_0x14de06(0x205)])))['subscribe'](_0x48be38=>{const _0x4c1d04=_0x14de06;this[_0x4c1d04(0x442)][_0x4c1d04(0x2d0)](_0x48be38);}));}[_0x2b1a47(0x428)](){const _0x4d202e=_0x2b1a47;this[_0x4d202e(0x20b)](this[_0x4d202e(0x2dc)][_0x4d202e(0x330)](O[_0x4d202e(0x289)]['HEADER_MENU'],()=>O['connectInjector'](wt({'status$':this[_0x4d202e(0x442)]['asObservable']()}),this[_0x4d202e(0x312)])));}},exports[_0x2b1a47(0x43e)]=Pt([V(0x0,a[_0x2b1a47(0x2a3)]),V(0x1,a[_0x2b1a47(0x2bd)](a['Injector'])),V(0x2,a['Inject'](u[_0x2b1a47(0x40c)])),V(0x3,O[_0x2b1a47(0x432)])],exports[_0x2b1a47(0x43e)]);function wt(_0x1d7f86){const {status$:_0x237285}=_0x1d7f86;return function(){const _0x5568c8=_0x2e62;return P[_0x5568c8(0x304)](xe,{'status$':_0x237285});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x49543c,_0x415fc0,_0x4c4fc8,_0x4207b2)=>{for(var _0x17f135=_0x4207b2>0x1?void 0x0:_0x4207b2?At(_0x415fc0,_0x4c4fc8):_0x415fc0,_0x3f0866=_0x49543c['length']-0x1,_0x3418b6;_0x3f0866>=0x0;_0x3f0866--)(_0x3418b6=_0x49543c[_0x3f0866])&&(_0x17f135=_0x3418b6(_0x17f135)||_0x17f135);return _0x17f135;},y=(_0x3b3173,_0x27ae8d)=>(_0x1bba8b,_0x4cf85d)=>_0x27ae8d(_0x1bba8b,_0x4cf85d,_0x3b3173);let q=class extends a[_0x2b1a47(0x412)]{constructor(_0x374b3f,_0x10c503,_0x37e9cd,_0x4d4ef9,_0x54fb57,_0x50e977){const _0x12e5cc=_0x2b1a47;super(),this[_0x12e5cc(0x293)]=_0x374b3f,this[_0x12e5cc(0x1f7)]=_0x10c503,this[_0x12e5cc(0x39d)]=_0x37e9cd,this[_0x12e5cc(0x3a9)]=_0x4d4ef9,this[_0x12e5cc(0x302)]=_0x54fb57,this[_0x12e5cc(0x2ec)]=_0x50e977,this[_0x12e5cc(0x223)](),this[_0x12e5cc(0x397)]();}[_0x2b1a47(0x223)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x265f09=_0x2e62;if(this['_localCacheService']['saveTaskMap'][_0x265f09(0x2ae)])return this['_localeService']['t'](_0x265f09(0x404));}));}['_initEvent'](){const _0x30ae09=_0x2b1a47;this[_0x30ae09(0x20b)](this[_0x30ae09(0x39d)][_0x30ae09(0x39e)]['subscribe'](_0x5c2621=>{const _0x37c3c8=_0x30ae09;_0x5c2621['id']===u[_0x37c3c8(0x245)][_0x37c3c8(0x352)]&&this[_0x37c3c8(0x3a9)][_0x37c3c8(0x3b2)]({'type':D[_0x37c3c8(0x360)]['Warning'],'content':this[_0x37c3c8(0x2ec)]['t'](_0x37c3c8(0x398))}),_0x5c2621['id']===u[_0x37c3c8(0x245)][_0x37c3c8(0x42d)]&&this[_0x37c3c8(0x3a9)][_0x37c3c8(0x3b2)]({'type':D[_0x37c3c8(0x360)][_0x37c3c8(0x447)],'content':this[_0x37c3c8(0x2ec)]['t'](_0x37c3c8(0x214))}),_0x5c2621['id']===u[_0x37c3c8(0x245)][_0x37c3c8(0x391)]&&this['_notificationService']['show']({'title':this['_localeService']['t'](_0x37c3c8(0x3c6)),'content':this[_0x37c3c8(0x2ec)]['t'](_0x37c3c8(0x452)),'type':_0x37c3c8(0x290),'duration':0x0}),_0x5c2621['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0x37c3c8(0x3a9)][_0x37c3c8(0x3b2)]({'type':D[_0x37c3c8(0x360)][_0x37c3c8(0x30f)],'content':this['_localeService']['t'](_0x37c3c8(0x214))+'('+_0x5c2621['data']+')'}),_0x5c2621['id']===u[_0x37c3c8(0x245)][_0x37c3c8(0x2fe)]&&this[_0x37c3c8(0x3a9)][_0x37c3c8(0x3b2)]({'type':D[_0x37c3c8(0x360)]['Warning'],'content':this['_localeService']['t'](_0x5c2621[_0x37c3c8(0x419)]||'')}),_0x5c2621['id']===u['CollaborationUIEventId'][_0x37c3c8(0x284)]&&this[_0x37c3c8(0x3a9)]['show']({'type':D[_0x37c3c8(0x360)][_0x37c3c8(0x447)],'content':this[_0x37c3c8(0x2ec)]['t'](_0x37c3c8(0x3aa))}),_0x5c2621['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x37c3c8(0x3b2)]({'type':D[_0x37c3c8(0x360)][_0x37c3c8(0x30f)],'content':this[_0x37c3c8(0x2ec)]['t'](_0x37c3c8(0x1ed))}),_0x5c2621['id']===u[_0x37c3c8(0x245)][_0x37c3c8(0x2f3)]&&this[_0x37c3c8(0x3a9)][_0x37c3c8(0x3b2)]({'type':D['MessageType'][_0x37c3c8(0x30f)],'content':this[_0x37c3c8(0x2ec)]['t'](_0x37c3c8(0x326))});}));}};q=yt([y(0x0,O[_0x2b1a47(0x388)]),y(0x1,u[_0x2b1a47(0x2c4)]),y(0x2,a[_0x2b1a47(0x2bd)](u['CollaborationUIEventService'])),y(0x3,O[_0x2b1a47(0x3e2)]),y(0x4,O[_0x2b1a47(0x255)]),y(0x5,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x2b6)]))],q);const $t=_0x2b1a47(0x29a),Ue={},Ee=a[_0x2b1a47(0x3fd)](_0x2b1a47(0x438));var xt=Object['getOwnPropertyDescriptor'],Bt=(_0x59280d,_0x3066e5,_0x218b30,_0x2ea4b8)=>{const _0x33d0ba=_0x2b1a47;for(var _0x596097=_0x2ea4b8>0x1?void 0x0:_0x2ea4b8?xt(_0x3066e5,_0x218b30):_0x3066e5,_0x220cee=_0x59280d[_0x33d0ba(0x3d8)]-0x1,_0x7be018;_0x220cee>=0x0;_0x220cee--)(_0x7be018=_0x59280d[_0x220cee])&&(_0x596097=_0x7be018(_0x596097)||_0x596097);return _0x596097;},F=(_0x376c70,_0x72d95a)=>(_0x1b03c0,_0x504e37)=>_0x72d95a(_0x1b03c0,_0x504e37,_0x376c70);exports[_0x2b1a47(0x305)]=class extends a[_0x2b1a47(0x21d)]{constructor(_0x1a8d1d,_0x463554,_0x3a7b6d,_0x323e7c,_0x269909){const _0x37bff7=_0x2b1a47;super(),this[_0x37bff7(0x455)]=_0x1a8d1d,this['_logService']=_0x463554,this['_commandService']=_0x3a7b6d,this['_dataLoaderService']=_0x323e7c,_0x269909?_0x269909==null||_0x269909['whenReady']()[_0x37bff7(0x401)](()=>this[_0x37bff7(0x29d)]()):(this[_0x37bff7(0x36f)][_0x37bff7(0x40a)](_0x37bff7(0x34a),_0x37bff7(0x22c)),this[_0x37bff7(0x29d)]());}async[_0x2b1a47(0x29d)](){const _0x276e74=_0x2b1a47,_0xfc4c92=this[_0x276e74(0x455)][_0x276e74(0x25d)](_0x276e74(0x2ad)),_0x310b07=this['_urlService'][_0x276e74(0x25d)](_0x276e74(0x299)),_0x1a615b=this[_0x276e74(0x455)][_0x276e74(0x25d)]('subunit');if(!_0xfc4c92||!_0x310b07){this[_0x276e74(0x36f)][_0x276e74(0x40a)](_0x276e74(0x34a),_0x276e74(0x39b));return;}const _0x12ff82=await this['_dataLoaderService']['loadUnit'](_0xfc4c92,Number(_0x310b07),_0x1a615b);_0x12ff82&&_0x12ff82 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x12ff82);}async[_0x2b1a47(0x317)](_0x4241c7){const _0x29a071=_0x2b1a47;await this[_0x29a071(0x321)](_0x4241c7),_0x4241c7[_0x29a071(0x329)][_0x29a071(0x221)](d[_0x29a071(0x431)](this[_0x29a071(0x23f)]))[_0x29a071(0x3a8)](_0x2c6a2d=>{const _0x9097d5=_0x29a071;_0x2c6a2d&&this[_0x9097d5(0x211)](_0x2c6a2d);}),this['_urlService'][_0x29a071(0x3d0)][_0x29a071(0x221)](d[_0x29a071(0x431)](this['dispose$']))['subscribe'](()=>this[_0x29a071(0x321)](_0x4241c7));}[_0x2b1a47(0x211)](_0x339d2b,_0x471686=!0x1){const _0x430005=_0x2b1a47,_0x1ef67b=this[_0x430005(0x455)]['getParam'](_0x430005(0x3cb));_0x339d2b['getSheetId']()!==_0x1ef67b&&this[_0x430005(0x455)][_0x430005(0x3be)]('subunit',_0x339d2b[_0x430005(0x2cd)](),_0x471686);}async[_0x2b1a47(0x321)](_0x3f7aa2){const _0x1d5dfe=_0x2b1a47;var _0x4f53a7;const _0x2d00e4=this[_0x1d5dfe(0x455)][_0x1d5dfe(0x25d)](_0x1d5dfe(0x3cb));if(!_0x2d00e4||!_0x3f7aa2[_0x1d5dfe(0x466)](_0x2d00e4)){const _0x333753=_0x3f7aa2['getUnhiddenWorksheets']()[0x0],_0x56426e=_0x3f7aa2['getSheetBySheetId'](_0x333753);if(!_0x56426e)return;this[_0x1d5dfe(0x211)](_0x56426e,!0x0),await this[_0x1d5dfe(0x386)][_0x1d5dfe(0x1eb)](g[_0x1d5dfe(0x458)]['id'],{'unitId':_0x3f7aa2[_0x1d5dfe(0x3ee)](),'subUnitId':_0x333753});return;}((_0x4f53a7=_0x3f7aa2[_0x1d5dfe(0x3c0)]())==null?void 0x0:_0x4f53a7['getSheetId']())!==_0x2d00e4&&await this['_commandService'][_0x1d5dfe(0x1eb)](g[_0x1d5dfe(0x458)]['id'],{'unitId':_0x3f7aa2[_0x1d5dfe(0x3ee)](),'subUnitId':_0x2d00e4});}},exports[_0x2b1a47(0x305)]=Bt([F(0x0,Ee),F(0x1,a[_0x2b1a47(0x426)]),F(0x2,a[_0x2b1a47(0x29f)]),F(0x3,a[_0x2b1a47(0x2bd)](u[_0x2b1a47(0x2fb)])),F(0x4,a[_0x2b1a47(0x366)](Ke['IRemoteInstanceService']))],exports[_0x2b1a47(0x305)]);var jt=Object[_0x2b1a47(0x462)],kt=(_0x3b0440,_0x1628d0,_0x583342,_0x449a94)=>{const _0x59b36b=_0x2b1a47;for(var _0x1fd604=_0x449a94>0x1?void 0x0:_0x449a94?jt(_0x1628d0,_0x583342):_0x1628d0,_0x269ac0=_0x3b0440[_0x59b36b(0x3d8)]-0x1,_0x11a8d7;_0x269ac0>=0x0;_0x269ac0--)(_0x11a8d7=_0x3b0440[_0x269ac0])&&(_0x1fd604=_0x11a8d7(_0x1fd604)||_0x1fd604);return _0x1fd604;},ce=(_0x5ad70c,_0x2cc1ff)=>(_0x2875fe,_0x34cb04)=>_0x2cc1ff(_0x2875fe,_0x34cb04,_0x5ad70c);let z=class{constructor(_0x4f7c37,_0x54f7f9,_0x253c99){const _0x2bf18e=_0x2b1a47;this[_0x2bf18e(0x312)]=_0x4f7c37,this[_0x2bf18e(0x2bf)]=_0x54f7f9,this['_renderManagerService']=_0x253c99;}[_0x2b1a47(0x21e)](_0x5ba203){const _0x199cca=_0x2b1a47;this[_0x199cca(0x43a)](_0x5ba203),this[_0x199cca(0x2c9)](_0x5ba203);}['transformRemoteChangeset'](_0x32f304){const _0xda2077=_0x2b1a47,{unitID:_0x13c405}=_0x32f304,_0x147a38=this[_0xda2077(0x210)][_0xda2077(0x445)](_0x13c405)[_0xda2077(0x400)](E[_0xda2077(0x322)]),{redoCache:_0x385553}=_0x147a38[_0xda2077(0x3f8)]();if(_0x385553['length']===0x0)return _0x32f304;let _0x5b0d95=a['Tools']['deepClone'](_0x32f304[_0xda2077(0x38b)][0x0]);for(let _0x3de6bd=0x0;_0x3de6bd<_0x385553[_0xda2077(0x3d8)];_0x3de6bd++){const _0x3f42e9={'id':_0xda2077(0x373),'params':{..._0x385553[_0x3de6bd]}},_0x3b3b8a=this[_0xda2077(0x2bf)][_0xda2077(0x2cc)](_0x5b0d95,_0x3f42e9,!0x1);if(m['isTransformMutationFailure'](_0x3b3b8a))throw _0x3b3b8a[_0xda2077(0x290)];_0x5b0d95=_0x3b3b8a[_0xda2077(0x3d4)];}return{...a[_0xda2077(0x283)][_0xda2077(0x2c0)](_0x32f304),'mutations':[_0x5b0d95]};}[_0x2b1a47(0x43a)](_0x24bbfe){const _0x3b16f7=_0x2b1a47,{unitID:_0x4d0df7}=_0x24bbfe,_0x38bb0d=this[_0x3b16f7(0x210)][_0x3b16f7(0x445)](_0x4d0df7)[_0x3b16f7(0x400)](E[_0x3b16f7(0x322)]),{undoCache:_0x175cb4,redoCache:_0x42fbb0}=_0x38bb0d['getUndoRedoMutationParamsCache']();if(_0x175cb4[_0x3b16f7(0x3d8)]===0x0||_0x42fbb0[_0x3b16f7(0x3d8)]===0x0)return;const _0x1aa025=[],_0x592012=[];let _0x5d3879=a[_0x3b16f7(0x283)][_0x3b16f7(0x2c0)](_0x24bbfe[_0x3b16f7(0x38b)][0x0]),_0x2d4d71=a[_0x3b16f7(0x283)][_0x3b16f7(0x2c0)](_0x24bbfe[_0x3b16f7(0x38b)][0x0]);for(let _0x2f712d=_0x175cb4['length']-0x1;_0x2f712d>=0x0;_0x2f712d--){const _0x189e0d={'id':_0x3b16f7(0x373),'params':{..._0x175cb4[_0x2f712d]}},_0x2062ab={'id':_0x3b16f7(0x373),'params':{..._0x42fbb0[_0x2f712d]}},_0x4b000f=this['_transformService']['transformMutation'](_0x5d3879,_0x189e0d,!0x1),_0x32aa91=this[_0x3b16f7(0x2bf)][_0x3b16f7(0x2cc)](_0x2d4d71,_0x2062ab,!0x1);if(m['isTransformMutationFailure'](_0x4b000f))throw _0x4b000f[_0x3b16f7(0x290)];if(m['isTransformMutationFailure'](_0x32aa91))throw _0x32aa91[_0x3b16f7(0x290)];_0x1aa025[_0x3b16f7(0x379)](_0x4b000f[_0x3b16f7(0x3b1)]['params']),_0x592012[_0x3b16f7(0x379)](_0x32aa91[_0x3b16f7(0x3b1)][_0x3b16f7(0x2f0)]),_0x5d3879=_0x4b000f[_0x3b16f7(0x3d4)],_0x2d4d71=_0x32aa91['m1Prime'];}_0x38bb0d[_0x3b16f7(0x38e)]({'undoCache':_0x1aa025,'redoCache':_0x592012});}['_transformPreviousActiveRange'](_0x58c07b){const _0x2805d3=_0x2b1a47,{unitID:_0x3502a3}=_0x58c07b,_0x257fec=this[_0x2805d3(0x210)]['getRenderById'](_0x3502a3)['with'](E['DocIMEInputManagerService']),_0x1c53ed=_0x257fec[_0x2805d3(0x1ec)]();if(_0x1c53ed==null)return;const _0x5248e5=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58c07b[_0x2805d3(0x275)],'actions':null,'textRanges':[_0x1c53ed]}}],_0x507e99=this[_0x2805d3(0x2bf)][_0x2805d3(0x3b4)](_0x58c07b,_0x5248e5);if(!m[_0x2805d3(0x374)](_0x507e99))throw _0x507e99[_0x2805d3(0x290)];const _0x1caf92=_0x507e99[_0x2805d3(0x3b1)][0x0][_0x2805d3(0x2f0)][_0x2805d3(0x3b7)];Array['isArray'](_0x1caf92)&&_0x1caf92['length']&&_0x257fec[_0x2805d3(0x225)](_0x1caf92[0x0]);}};z=kt([ce(0x0,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x3e1)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x2b1a47(0x3ba)])],z);var Ft=Object[_0x2b1a47(0x462)],Ht=(_0x1a6219,_0xefcdec,_0x281587,_0x3117d5)=>{for(var _0x51bcdf=_0x3117d5>0x1?void 0x0:_0x3117d5?Ft(_0xefcdec,_0x281587):_0xefcdec,_0x1a524b=_0x1a6219['length']-0x1,_0x5f2ee3;_0x1a524b>=0x0;_0x1a524b--)(_0x5f2ee3=_0x1a6219[_0x1a524b])&&(_0x51bcdf=_0x5f2ee3(_0x51bcdf)||_0x51bcdf);return _0x51bcdf;},le=(_0x111355,_0x5a55fd)=>(_0x7cf650,_0x230cfa)=>_0x5a55fd(_0x7cf650,_0x230cfa,_0x111355);let J=class{constructor(_0x2bc1fb,_0x299f11,_0x5991a7){const _0x5ed3e8=_0x2b1a47;this[_0x5ed3e8(0x312)]=_0x2bc1fb,this[_0x5ed3e8(0x2bf)]=_0x299f11,this[_0x5ed3e8(0x3bd)]=_0x5991a7;}[_0x2b1a47(0x269)](_0x5933d0){const _0x12701a=_0x2b1a47;this[_0x12701a(0x440)](_0x5933d0);}[_0x2b1a47(0x2eb)](_0x214005){const _0x59cc68=_0x2b1a47,{unitID:_0x33193b}=_0x214005,{collaboration:_0x68bb12}=this['_docStateChangeManagerService'][_0x59cc68(0x1ee)](_0x33193b);if(_0x68bb12[_0x59cc68(0x3d8)]===0x0)return _0x214005;let _0x1aac9a=a['Tools'][_0x59cc68(0x2c0)](_0x214005[_0x59cc68(0x38b)][0x0]);for(let _0x30b7e6=0x0;_0x30b7e6<_0x68bb12[_0x59cc68(0x3d8)];_0x30b7e6++){const _0x3fb65e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x68bb12[_0x30b7e6][_0x59cc68(0x2d4)],..._0x68bb12[_0x30b7e6][_0x59cc68(0x2ab)]}},_0x2019d3=this[_0x59cc68(0x2bf)][_0x59cc68(0x2cc)](_0x1aac9a,_0x3fb65e,!0x1);if(m[_0x59cc68(0x45b)](_0x2019d3))throw _0x2019d3['error'];_0x1aac9a=_0x2019d3[_0x59cc68(0x3d4)];}return{...a[_0x59cc68(0x283)]['deepClone'](_0x214005),'mutations':[_0x1aac9a]};}[_0x2b1a47(0x440)](_0x71d2b4){const _0x691414=_0x2b1a47,{unitID:_0x560bfd}=_0x71d2b4,{history:_0x6397a4,collaboration:_0x645e3f}=this[_0x691414(0x3bd)][_0x691414(0x1ee)](_0x560bfd);if(_0x6397a4['length']===0x0&&_0x645e3f['length']===0x0)return;const _0x1505c8=[],_0x5a77db=[];let _0x54559e=a['Tools']['deepClone'](_0x71d2b4[_0x691414(0x38b)][0x0]),_0x47fa65=a[_0x691414(0x283)][_0x691414(0x2c0)](_0x71d2b4[_0x691414(0x38b)][0x0]);for(let _0x4b9bc7=_0x6397a4[_0x691414(0x3d8)]-0x1;_0x4b9bc7>=0x0;_0x4b9bc7--){const _0x31b62f={'id':_0x691414(0x373),'params':{'unitId':_0x6397a4[_0x4b9bc7][_0x691414(0x2d4)],..._0x6397a4[_0x4b9bc7][_0x691414(0x414)]}},_0x1bbd43={'id':_0x691414(0x373),'params':{'unitId':_0x6397a4[_0x4b9bc7][_0x691414(0x2d4)],..._0x6397a4[_0x4b9bc7][_0x691414(0x2ab)]}},_0x3e5229=this[_0x691414(0x2bf)][_0x691414(0x2cc)](_0x54559e,_0x31b62f,!0x1),_0x27671a=this[_0x691414(0x2bf)]['transformMutation'](_0x47fa65,_0x1bbd43,!0x1);if(m[_0x691414(0x45b)](_0x3e5229))throw _0x3e5229['error'];if(m[_0x691414(0x45b)](_0x27671a))throw _0x27671a['error'];_0x1505c8[_0x691414(0x379)]({..._0x6397a4[_0x4b9bc7],'undoState':_0x3e5229[_0x691414(0x3b1)][_0x691414(0x2f0)],'redoState':_0x27671a['m2Prime'][_0x691414(0x2f0)]}),_0x54559e=_0x3e5229['m1Prime'],_0x47fa65=_0x27671a[_0x691414(0x3d4)];}_0x54559e=a[_0x691414(0x283)][_0x691414(0x2c0)](_0x71d2b4[_0x691414(0x38b)][0x0]),_0x47fa65=a[_0x691414(0x283)][_0x691414(0x2c0)](_0x71d2b4['mutations'][0x0]);for(let _0x4c4f8c=_0x645e3f['length']-0x1;_0x4c4f8c>=0x0;_0x4c4f8c--){const _0x397131={'id':_0x691414(0x373),'params':{'unitId':_0x645e3f[_0x4c4f8c][_0x691414(0x2d4)],..._0x645e3f[_0x4c4f8c][_0x691414(0x414)]}},_0x1b538e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x645e3f[_0x4c4f8c]['unitId'],..._0x645e3f[_0x4c4f8c][_0x691414(0x2ab)]}},_0x50eb7a=this['_transformService'][_0x691414(0x2cc)](_0x54559e,_0x397131,!0x1),_0x1ae654=this['_transformService']['transformMutation'](_0x47fa65,_0x1b538e,!0x1);if(m['isTransformMutationFailure'](_0x50eb7a))throw _0x50eb7a[_0x691414(0x290)];if(m['isTransformMutationFailure'](_0x1ae654))throw _0x1ae654[_0x691414(0x290)];_0x5a77db[_0x691414(0x379)]({..._0x645e3f[_0x4c4f8c],'undoState':_0x50eb7a[_0x691414(0x3b1)][_0x691414(0x2f0)],'redoState':_0x1ae654[_0x691414(0x3b1)][_0x691414(0x2f0)]}),_0x54559e=_0x50eb7a[_0x691414(0x3d4)],_0x47fa65=_0x1ae654[_0x691414(0x3d4)];}this[_0x691414(0x3bd)]['setStateCache'](_0x560bfd,{'history':_0x1505c8,'collaboration':_0x5a77db});}};J=Ht([le(0x0,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x3e1)])),le(0x1,m[_0x2b1a47(0x2b5)]),le(0x2,a[_0x2b1a47(0x2bd)](E[_0x2b1a47(0x3f1)]))],J);var Yt=Object[_0x2b1a47(0x462)],Wt=(_0x37454d,_0x1eaf31,_0xb08b4a,_0x84809f)=>{const _0x3d8b02=_0x2b1a47;for(var _0x2078ed=_0x84809f>0x1?void 0x0:_0x84809f?Yt(_0x1eaf31,_0xb08b4a):_0x1eaf31,_0x122749=_0x37454d[_0x3d8b02(0x3d8)]-0x1,_0x7f2dc0;_0x122749>=0x0;_0x122749--)(_0x7f2dc0=_0x37454d[_0x122749])&&(_0x2078ed=_0x7f2dc0(_0x2078ed)||_0x2078ed);return _0x2078ed;},Ne=(_0x1a893e,_0x33a8bb)=>(_0x206907,_0x1796bc)=>_0x33a8bb(_0x206907,_0x1796bc,_0x1a893e);let Z=class{constructor(_0x1a3593,_0x554d19){const _0x3126a2=_0x2b1a47;this[_0x3126a2(0x312)]=_0x1a3593,this['_transformService']=_0x554d19;}[_0x2b1a47(0x35b)](_0x6f60af){const _0x4edf66=_0x2b1a47;var _0x3a6de9;const _0x32cbd6=this['_injector'][_0x4edf66(0x219)](Y[_0x4edf66(0x2f6)]),_0x2e51c9=(_0x3a6de9=_0x32cbd6[_0x4edf66(0x2bb)]())!=null?_0x3a6de9:[];if(_0x2e51c9[_0x4edf66(0x3d8)]===0x0)return;const _0xa28320=_0x6f60af[_0x4edf66(0x275)],_0xe27fef=[{'id':_0x4edf66(0x373),'params':{'unitId':_0xa28320,'actions':null,'textRanges':_0x2e51c9}}],_0x3f565e=this[_0x4edf66(0x2bf)][_0x4edf66(0x3b4)](_0x6f60af,_0xe27fef);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3f565e))throw _0x3f565e['error'];const _0xd21242=_0x3f565e[_0x4edf66(0x3b1)][0x0][_0x4edf66(0x2f0)][_0x4edf66(0x3b7)];Array[_0x4edf66(0x2b7)](_0xd21242)&&_0xd21242[_0x4edf66(0x3d8)]&&_0x32cbd6[_0x4edf66(0x333)](_0xd21242,{'unitId':_0xa28320,'subUnitId':_0xa28320},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x2b1a47(0x3e1)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x2b1a47(0x462)],Xt=(_0x548b3c,_0x3c681f,_0x24bf0e,_0x2ba949)=>{for(var _0x3a85d2=_0x2ba949>0x1?void 0x0:_0x2ba949?Vt(_0x3c681f,_0x24bf0e):_0x3c681f,_0x1a322d=_0x548b3c['length']-0x1,_0x273b37;_0x1a322d>=0x0;_0x1a322d--)(_0x273b37=_0x548b3c[_0x1a322d])&&(_0x3a85d2=_0x273b37(_0x3a85d2)||_0x3a85d2);return _0x3a85d2;},N=(_0x5a2ea7,_0x5807aa)=>(_0x506263,_0x4efbd5)=>_0x5807aa(_0x506263,_0x4efbd5,_0x5a2ea7);let Q=class extends a[_0x2b1a47(0x412)]{constructor(_0x528dc5,_0x425b2d,_0x29feaa,_0x3a0aa9,_0x55fd2c,_0x34da9c,_0x3742d8,_0x241a75){const _0x1360a6=_0x2b1a47;super(),h(this,_0x1360a6(0x442),new d['BehaviorSubject'](u[_0x1360a6(0x2b4)]['NOT_COLLAB'])),(this[_0x1360a6(0x3bd)]=_0x528dc5,this[_0x1360a6(0x3dc)]=_0x425b2d,this[_0x1360a6(0x38a)]=_0x29feaa,this[_0x1360a6(0x207)]=_0x3a0aa9,this[_0x1360a6(0x3a4)]=_0x55fd2c,this['_docSyncEditingCollabCursorService']=_0x34da9c,this['_messageService']=_0x3742d8,this[_0x1360a6(0x2ec)]=_0x241a75,this[_0x1360a6(0x3d9)]());}['_initEntityListener'](){const _0x377ed2=_0x2b1a47;this[_0x377ed2(0x20b)](this[_0x377ed2(0x3dc)][_0x377ed2(0x37f)][_0x377ed2(0x3a8)](_0x4a2a9a=>{const _0xf3abbe=_0x377ed2,_0x2cb364=this[_0xf3abbe(0x3bd)]['docStateChange$'][_0xf3abbe(0x3a8)](_0x35acf1=>{const _0x28f89b=_0xf3abbe;if(_0x35acf1==null)return;const {unitId:_0x58dbd9,redoState:_0x286479,commandId:_0x219f7d}=_0x35acf1;if(_0x58dbd9!==_0x4a2a9a[_0x28f89b(0x275)])return;const _0x22394e={'id':_0x219f7d,'type':a['CommandType'][_0x28f89b(0x22d)],'params':{'unitId':_0x58dbd9,'actions':_0x286479['actions'],'textRanges':null}};_0x4a2a9a[_0x28f89b(0x32a)](_0x22394e);});if(_0x4a2a9a[_0xf3abbe(0x20b)](_0x2cb364),_0x4a2a9a instanceof u[_0xf3abbe(0x444)]){const _0x576721={'onTransformIME':_0x2f742b=>this[_0xf3abbe(0x38a)][_0xf3abbe(0x21e)](_0x2f742b),'onTransformState':_0x3c1d7a=>this[_0xf3abbe(0x207)][_0xf3abbe(0x269)](_0x3c1d7a),'onTransformSelections':_0x3a7d62=>this['_docTransformSelectionsService']['transformSelections'](_0x3a7d62),'onSyncEditingCollabCursor':_0x3ebd80=>this[_0xf3abbe(0x23b)]['syncEditingCollabCursor'](_0x3ebd80),'onTransformRemoteChangesetByIMECache':_0x54c9b8=>this[_0xf3abbe(0x38a)]['transformRemoteChangeset'](_0x54c9b8),'onTransformRemoteChangesetByStateCache':_0x18a023=>this[_0xf3abbe(0x207)][_0xf3abbe(0x2eb)](_0x18a023)};_0x4a2a9a[_0xf3abbe(0x3e5)](_0x576721);}}));}};Q=Xt([N(0x0,a[_0x2b1a47(0x2bd)](E[_0x2b1a47(0x3f1)])),N(0x1,a[_0x2b1a47(0x2bd)](u[_0x2b1a47(0x40c)])),N(0x2,a[_0x2b1a47(0x2bd)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x2b1a47(0x2bd)](Z)),N(0x5,a[_0x2b1a47(0x2bd)](Ce)),N(0x6,O[_0x2b1a47(0x3e2)]),N(0x7,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x2b6)]))],Q);var Gt=Object[_0x2b1a47(0x462)],Kt=(_0x24fcc2,_0x41bcbc,_0x19e91d,_0x10ee61)=>{const _0xedffcc=_0x2b1a47;for(var _0xd518b5=_0x10ee61>0x1?void 0x0:_0x10ee61?Gt(_0x41bcbc,_0x19e91d):_0x41bcbc,_0x331791=_0x24fcc2[_0xedffcc(0x3d8)]-0x1,_0x44333f;_0x331791>=0x0;_0x331791--)(_0x44333f=_0x24fcc2[_0x331791])&&(_0xd518b5=_0x44333f(_0xd518b5)||_0xd518b5);return _0xd518b5;},_e=(_0x25ccfc,_0x5b666c)=>(_0x3b3505,_0x4a1d11)=>_0x5b666c(_0x3b3505,_0x4a1d11,_0x25ccfc);let ge=class extends a[_0x2b1a47(0x412)]{constructor(_0x4b0fd0,_0x507fb5,_0x5e8c9e){const _0x42745e=_0x2b1a47;super(),h(this,_0x42745e(0x29e),new Map()),h(this,_0x42745e(0x45e),new Map()),h(this,_0x42745e(0x36c),!0x1),(this[_0x42745e(0x436)]=_0x4b0fd0,this[_0x42745e(0x381)]=_0x507fb5,this[_0x42745e(0x297)]=_0x5e8c9e);}[_0x2b1a47(0x31e)](){const _0x4ae9d5=_0x2b1a47;this[_0x4ae9d5(0x36c)]=!0x0;}[_0x2b1a47(0x456)](){const _0x4916b5=_0x2b1a47;this[_0x4916b5(0x36c)]=!0x1;}get[_0x2b1a47(0x2a1)](){return this['_saveTaskMap'];}[_0x2b1a47(0x307)](){const _0x4c4e8f=_0x2b1a47;this[_0x4c4e8f(0x42c)]()[_0x4c4e8f(0x401)](()=>super[_0x4c4e8f(0x307)]());}async['loadOfflineData'](_0x2e0af0){const _0x1a0dbb=_0x2b1a47;return this['_disabled']?null:this[_0x1a0dbb(0x381)]['getItem'](u[_0x1a0dbb(0x251)](_0x2e0af0));}async[_0x2b1a47(0x457)](_0x319aa5,_0x5dab92){const _0x44e8ce=_0x2b1a47;return!!this[_0x44e8ce(0x381)][_0x44e8ce(0x424)](_0x319aa5,_0x5dab92);}[_0x2b1a47(0x27d)](_0x26d36e,_0x438430,_0x205064,_0x1beddb){const _0x6f7f15=_0x2b1a47,_0x1cc9dc=this[_0x6f7f15(0x297)]['getCurrentRevOfUnit'](_0x26d36e);this[_0x6f7f15(0x29e)][_0x6f7f15(0x25b)](_0x26d36e,{'unitID':_0x26d36e,'type':_0x438430,'awaitingChangeset':_0x205064,'mutations':_0x1beddb,'rev':_0x1cc9dc}),this['_saveTaskMap'][_0x6f7f15(0x264)](_0x26d36e)||this[_0x6f7f15(0x328)](_0x26d36e);}[_0x2b1a47(0x328)](_0x384406){const _0x292672=_0x2b1a47,_0x42d8f1=this['_getSaveTimeout']();_0x42d8f1===0x0?this[_0x292672(0x288)](_0x384406):this[_0x292672(0x45e)][_0x292672(0x25b)](_0x384406,setTimeout(()=>this[_0x292672(0x288)](_0x384406),_0x42d8f1));}[_0x2b1a47(0x1fd)](){const _0x29e63e=_0x2b1a47;var _0x48718f;return(_0x48718f=this[_0x29e63e(0x436)][_0x29e63e(0x393)](u[_0x29e63e(0x238)]))!=null?_0x48718f:u[_0x29e63e(0x3d7)];}[_0x2b1a47(0x288)](_0x2b7552){const _0xe786bc=_0x2b1a47,_0x18eb17=this['_saveTaskMap']['get'](_0x2b7552);return _0x18eb17!==void 0x0&&window['clearTimeout'](_0x18eb17),this[_0xe786bc(0x381)]['setItem'](u[_0xe786bc(0x251)](_0x2b7552),this[_0xe786bc(0x29e)]['get'](_0x2b7552))[_0xe786bc(0x401)](()=>this[_0xe786bc(0x45e)][_0xe786bc(0x42a)](_0x2b7552));}async[_0x2b1a47(0x42c)](){const _0x18b6e6=_0x2b1a47,_0x1499cb=[];this[_0x18b6e6(0x45e)][_0x18b6e6(0x2fd)]((_0x20fb9b,_0x1f6372)=>{const _0x493d8c=_0x18b6e6;window[_0x493d8c(0x3a7)](_0x20fb9b),_0x1499cb['push'](this[_0x493d8c(0x288)](_0x1f6372)[_0x493d8c(0x401)](()=>{const _0x2dbaf5=_0x493d8c;this['_saveTaskMap'][_0x2dbaf5(0x42a)](_0x1f6372);}));}),await Promise[_0x18b6e6(0x311)](_0x1499cb);}};ge=Kt([_e(0x0,a[_0x2b1a47(0x262)]),_e(0x1,a[_0x2b1a47(0x1f9)]),_e(0x2,a[_0x2b1a47(0x2bd)](m[_0x2b1a47(0x345)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x12cb7b=_0x2b1a47;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x12cb7b(0x3c3)](window,_0x12cb7b(0x372))[_0x12cb7b(0x221)](d['takeUntil'](this['dispose$']),d[_0x12cb7b(0x208)](0x1),d[_0x12cb7b(0x3fb)](void 0x0));}[_0x2b1a47(0x3be)](_0x3df317,_0x1afaf7,_0x48e169=!0x1){const _0x418ddc=_0x2b1a47,_0x54915e=new URL(window['location']['href']);_0x54915e[_0x418ddc(0x2a2)][_0x418ddc(0x25b)](_0x3df317,_0x1afaf7),_0x48e169?window[_0x418ddc(0x353)][_0x418ddc(0x3f2)]('','',_0x54915e[_0x418ddc(0x363)]()):window['history'][_0x418ddc(0x45d)]('','',_0x54915e[_0x418ddc(0x363)]());}[_0x2b1a47(0x1f5)](_0x422039,_0x1171ba=!0x1){const _0x337952=_0x2b1a47,_0x27d0e8=new URL(window['location'][_0x337952(0x2dd)]);_0x27d0e8[_0x337952(0x2a2)]['delete'](_0x422039),_0x1171ba?window['history'][_0x337952(0x3f2)]('','',_0x27d0e8[_0x337952(0x363)]()):window[_0x337952(0x353)][_0x337952(0x45d)]('','',_0x27d0e8[_0x337952(0x363)]());}[_0x2b1a47(0x25d)](_0x3ddee1){const _0x3c7f18=_0x2b1a47;var _0xdc370e;return(_0xdc370e=new URL(window[_0x3c7f18(0x403)][_0x3c7f18(0x2dd)])['searchParams']['get'](_0x3ddee1))!=null?_0xdc370e:void 0x0;}}var qt=Object[_0x2b1a47(0x246)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x1047d9,_0x28404d,_0x23bb91)=>_0x28404d in _0x1047d9?qt(_0x1047d9,_0x28404d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23bb91}):_0x1047d9[_0x28404d]=_0x23bb91,Zt=(_0x579492,_0x510ecd,_0x1ef26d,_0x519ac5)=>{const _0x562a2d=_0x2b1a47;for(var _0x80b111=_0x519ac5>0x1?void 0x0:_0x519ac5?zt(_0x510ecd,_0x1ef26d):_0x510ecd,_0x342bff=_0x579492[_0x562a2d(0x3d8)]-0x1,_0x150def;_0x342bff>=0x0;_0x342bff--)(_0x150def=_0x579492[_0x342bff])&&(_0x80b111=_0x150def(_0x80b111)||_0x80b111);return _0x80b111;},he=(_0x23cc5d,_0x42080d)=>(_0x58d8ce,_0x4f8838)=>_0x42080d(_0x58d8ce,_0x4f8838,_0x23cc5d),Qt=(_0x4933b6,_0x1b7895,_0x19aa99)=>Jt(_0x4933b6,_0x1b7895+'',_0x19aa99);const es=_0x2b1a47(0x200);exports[_0x2b1a47(0x2a9)]=class extends a[_0x2b1a47(0x28b)]{constructor(_0x85512d=Ue,_0xdb7abf,_0x46179f,_0x4486d9){const _0x59865c=_0x2b1a47;super(),this['_config']=_0x85512d,this['_renderManagerService']=_0xdb7abf,this['_injector']=_0x46179f,this['_configService']=_0x4486d9;const {..._0x6b9f56}=a[_0x59865c(0x287)]({},Ue,this[_0x59865c(0x454)]);this[_0x59865c(0x436)][_0x59865c(0x313)]($t,_0x6b9f56);}[_0x2b1a47(0x2d2)](){const _0x28388e=_0x2b1a47;this[_0x28388e(0x413)](),this[_0x28388e(0x248)]();}[_0x2b1a47(0x341)](){this['_registerRenderDependencies']();}[_0x2b1a47(0x413)](){const _0x3d5df0=_0x2b1a47;var _0xba0027;const _0x53225c=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G['WebSocketService']}],[u[_0x3d5df0(0x2c4)],{'useClass':ge}],[exports[_0x3d5df0(0x43e)]],[Q],[q],[x],[de],[exports[_0x3d5df0(0x305)]]];a[_0x3d5df0(0x418)](this[_0x3d5df0(0x312)],a[_0x3d5df0(0x3db)](_0x53225c,(_0xba0027=this['_config'])==null?void 0x0:_0xba0027[_0x3d5df0(0x203)]));}[_0x2b1a47(0x31b)](){const _0x133f5b=_0x2b1a47;this['disposeWithMe'](this[_0x133f5b(0x210)][_0x133f5b(0x433)](a[_0x133f5b(0x383)][_0x133f5b(0x21a)],[fe])),this[_0x133f5b(0x20b)](this[_0x133f5b(0x210)]['registerRenderModule'](a[_0x133f5b(0x383)][_0x133f5b(0x35f)],[ve]));}[_0x2b1a47(0x248)](){const _0x2c97d1=_0x2b1a47;a[_0x2c97d1(0x434)](this['_injector'],[[x],[exports[_0x2c97d1(0x43e)]],[Q],[q],[exports[_0x2c97d1(0x305)]]]);}},Qt(exports[_0x2b1a47(0x2a9)],'pluginName',es),exports[_0x2b1a47(0x2a9)]=Zt([a[_0x2b1a47(0x37b)](u[_0x2b1a47(0x20d)]),he(0x1,p[_0x2b1a47(0x3ba)]),he(0x2,a[_0x2b1a47(0x2bd)](a['Injector'])),he(0x3,a[_0x2b1a47(0x262)])],exports[_0x2b1a47(0x2a9)]);var ts=Object[_0x2b1a47(0x462)],ss=(_0x1329da,_0x1dc334,_0x3108af,_0x567439)=>{const _0x2e8555=_0x2b1a47;for(var _0x5a2cf1=_0x567439>0x1?void 0x0:_0x567439?ts(_0x1dc334,_0x3108af):_0x1dc334,_0x105bff=_0x1329da[_0x2e8555(0x3d8)]-0x1,_0xf9c2fd;_0x105bff>=0x0;_0x105bff--)(_0xf9c2fd=_0x1329da[_0x105bff])&&(_0x5a2cf1=_0xf9c2fd(_0x5a2cf1)||_0x5a2cf1);return _0x5a2cf1;},H=(_0x8b3335,_0x881f38)=>(_0x299047,_0x3dc13f)=>_0x881f38(_0x299047,_0x3dc13f,_0x8b3335);exports[_0x2b1a47(0x29c)]=class extends u[_0x2b1a47(0x364)]{constructor(_0x4bd71e,_0x44601b,_0xa9bb61,_0x3519ef,_0x11bf63){super(_0x4bd71e,_0x44601b,_0xa9bb61,_0x3519ef,_0x11bf63);}async[_0x2b1a47(0x2f1)](_0x419e04){const _0x3a0310=_0x2b1a47,_0x51cea6=await this['_getSessionTicket'](),_0x90be83=this[_0x3a0310(0x3bc)](_0x419e04,_0x51cea6);return this[_0x3a0310(0x3ea)](_0x90be83);}[_0x2b1a47(0x3bc)](_0x100d8f,_0x1518ed){const _0x377a42=_0x2b1a47,_0x4b4799=typeof window>'u'?new URL(_0x100d8f):new URL(_0x100d8f,window[_0x377a42(0x403)][_0x377a42(0x37e)]);_0x4b4799['searchParams']['set']('sessionTicket',_0x1518ed);const _0xbaf723=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x377a42(0x403)][_0x377a42(0x231)]);return _0xbaf723[_0x377a42(0x219)](_0x377a42(0x44b))&&_0x4b4799[_0x377a42(0x2a2)][_0x377a42(0x25b)](_0x377a42(0x44b),_0xbaf723[_0x377a42(0x219)](_0x377a42(0x44b))),_0x4b4799[_0x377a42(0x363)]();}async[_0x2b1a47(0x21b)](){const _0x1a8b1b=_0x2b1a47;var _0x5cc4b6,_0x3b22c9,_0x3df230;const _0xa8b86b=this[_0x1a8b1b(0x436)][_0x1a8b1b(0x393)](u[_0x1a8b1b(0x420)]),_0x2ac8ae=(_0x5cc4b6=_0xa8b86b==null?void 0x0:_0xa8b86b[_0x1a8b1b(0x3a0)])!=null?_0x5cc4b6:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3df230=(_0x3b22c9=(await this[_0x1a8b1b(0x2b3)][_0x1a8b1b(0x219)](_0x2ac8ae,{'headers':{'Content-Type':_0x1a8b1b(0x2d8)}}))[_0x1a8b1b(0x1f8)])==null?void 0x0:_0x3b22c9[_0x1a8b1b(0x22b)])!=null?_0x3df230:'';}},exports[_0x2b1a47(0x29c)]=ss([H(0x0,a[_0x2b1a47(0x2bd)](a[_0x2b1a47(0x3e1)])),H(0x1,a[_0x2b1a47(0x2bd)](G[_0x2b1a47(0x35c)])),H(0x2,a[_0x2b1a47(0x262)]),H(0x3,a[_0x2b1a47(0x426)]),H(0x4,m['ISnapshotServerService'])],exports[_0x2b1a47(0x29c)]);const Me=0x7530,Le=_0x2b1a47(0x259);class is extends a[_0x2b1a47(0x412)]{constructor(){const _0x478f77=_0x2b1a47;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x478f77(0x407),new Set()),h(this,_0x478f77(0x3a5),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x478f77(0x451),new Map()),h(this,_0x478f77(0x3a2),new Map()),this[_0x478f77(0x29d)]();}[_0x2b1a47(0x307)](){const _0x3c0516=_0x2b1a47;super['dispose'](),this[_0x3c0516(0x451)][_0x3c0516(0x2fd)]((_0x42abf6,_0x31fd23)=>this['_removeClearOtherTimer'](_0x31fd23)),this[_0x3c0516(0x351)]&&window[_0x3c0516(0x303)](this['_heartbeatTimer']);}[_0x2b1a47(0x318)](_0x2da661){const _0xa2b01b=_0x2b1a47;return this[_0xa2b01b(0x234)](_0x2da661)['pipe'](d[_0xa2b01b(0x396)]());}[_0x2b1a47(0x295)](_0x429fc7){const _0x18508c=_0x2b1a47;this[_0x18508c(0x407)]['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x429fc7),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x429fc7],'isForwarded':!0x1});}[_0x2b1a47(0x2a8)](_0x144166){const _0x3b2720=_0x2b1a47;this['_selfUnitIDs'][_0x3b2720(0x42a)](_0x144166),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window[_0x3b2720(0x303)](this[_0x3b2720(0x351)]);}[_0x2b1a47(0x29d)](){const _0x147ea7=_0x2b1a47;this[_0x147ea7(0x20b)](a['toDisposable'](d[_0x147ea7(0x3c3)](window,_0x147ea7(0x240))[_0x147ea7(0x3a8)](_0x46095e=>{const _0x2c0216=_0x147ea7;if(_0x46095e[_0x2c0216(0x464)]!==Le||!_0x46095e[_0x2c0216(0x273)])return;const _0x2c1ce8=JSON[_0x2c0216(0x446)](_0x46095e['newValue']);this[_0x2c0216(0x279)](_0x2c1ce8);}))),window['addEventListener'](_0x147ea7(0x2ac),()=>this[_0x147ea7(0x224)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x147ea7(0x30d)](this['_selfUnitIDs'])}));}[_0x2b1a47(0x279)](_0x22de56){const _0x234815=_0x2b1a47;switch(_0x22de56[_0x234815(0x299)]){case 0x0:this[_0x234815(0x3ae)](_0x22de56);break;case 0x1:this['_handleLeaveEvent'](_0x22de56);break;case 0x2:this[_0x234815(0x38f)](_0x22de56);break;}}[_0x2b1a47(0x3ae)](_0x5900ee){const _0x134689=_0x2b1a47,{unitIDs:_0x1f7d6f,memberID:_0x4ae2bc,isForwarded:_0x5abbbe}=_0x5900ee;_0x1f7d6f[_0x134689(0x2fd)](_0x306569=>{const _0x4886b2=_0x134689;if(!_0x5abbbe&&this['_unitOnClients'][_0x4886b2(0x264)](_0x306569)&&this[_0x4886b2(0x234)](_0x306569)['next'](u['UnitStatus'][_0x4886b2(0x45f)]),!this[_0x4886b2(0x3a5)][_0x4886b2(0x264)](_0x306569)||!this[_0x4886b2(0x3a5)][_0x4886b2(0x219)](_0x306569)[_0x4886b2(0x264)](_0x4ae2bc)){const _0x3856e0=this['_unitOnClients']['get'](_0x306569)||new Set();_0x3856e0[_0x4886b2(0x3f9)](_0x4ae2bc),this[_0x4886b2(0x3a5)][_0x4886b2(0x25b)](_0x306569,_0x3856e0),this['_scheduleClearOtherTimer'](_0x4ae2bc);}}),_0x5abbbe||this[_0x134689(0x224)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x134689(0x407)]],'isForwarded':!0x0});}[_0x2b1a47(0x34d)](_0x479333){const _0x466580=_0x2b1a47;this['_removeClearOtherTimer'](_0x479333);const _0x1d9556=window[_0x466580(0x23a)](()=>{const _0x2e9673=_0x466580;this[_0x2e9673(0x3a5)][_0x2e9673(0x2fd)](_0x183e95=>{const _0x380167=_0x2e9673;_0x183e95[_0x380167(0x42a)](_0x479333);});},Me*0x2);this[_0x466580(0x451)][_0x466580(0x25b)](_0x479333,_0x1d9556);}['_removeClearOtherTimer'](_0x246706){const _0x2d19ca=_0x2b1a47;if(this['_clearOtherTimers'][_0x2d19ca(0x264)](_0x246706)){const _0x287f32=this[_0x2d19ca(0x451)][_0x2d19ca(0x219)](_0x246706);_0x287f32&&window[_0x2d19ca(0x3a7)](_0x287f32),this[_0x2d19ca(0x451)][_0x2d19ca(0x25b)](_0x246706,null);}}[_0x2b1a47(0x2ca)](_0x26a4b2){const _0x34c4e0=_0x2b1a47,{memberID:_0x1eb72,unitIDs:_0x127df5}=_0x26a4b2;_0x127df5[_0x34c4e0(0x2fd)](_0x433c93=>{const _0x111f3e=_0x34c4e0;var _0x1a816d;const _0x2e3550=this[_0x111f3e(0x3a5)][_0x111f3e(0x219)](_0x433c93);_0x2e3550&&(_0x2e3550['delete'](_0x1eb72),(_0x1a816d=this[_0x111f3e(0x234)](_0x433c93))==null||_0x1a816d['next'](_0x2e3550[_0x111f3e(0x2ae)]===0x0?u[_0x111f3e(0x36d)]['NO_OTHER_CLIENTS_EDITING']:u[_0x111f3e(0x36d)]['OTHER_CLIENTS_EDITING']));}),this[_0x34c4e0(0x2c5)](_0x1eb72);}['_handleHeartbeatEvent'](_0x23474f){const _0x4732fd=_0x2b1a47;this[_0x4732fd(0x34d)](_0x23474f[_0x4732fd(0x3a6)]);}[_0x2b1a47(0x224)](_0xbb0d5f){const _0x3b41b3=_0x2b1a47;localStorage[_0x3b41b3(0x424)](Le,JSON[_0x3b41b3(0x38d)](_0xbb0d5f));}[_0x2b1a47(0x3b5)](){const _0x5a4dbf=_0x2b1a47;this[_0x5a4dbf(0x351)]=window[_0x5a4dbf(0x309)](()=>{const _0x4bdf20=_0x5a4dbf;this[_0x4bdf20(0x224)]({'type':0x2,'memberID':this[_0x4bdf20(0x33f)]});},Me);}['_ensureSubject'](_0x20b4f1){const _0x424e00=_0x2b1a47;return this[_0x424e00(0x3a2)]['has'](_0x20b4f1)||this['_unitStatus'][_0x424e00(0x25b)](_0x20b4f1,new d[(_0x424e00(0x2e6))](u['UnitStatus'][_0x424e00(0x36a)])),this['_unitStatus'][_0x424e00(0x219)](_0x20b4f1);}}var je=(_0x4401d3=>(_0x4401d3[_0x4401d3[_0x2b1a47(0x343)]=0x0]='UNDEFINED',_0x4401d3[_0x4401d3['OK']=0x1]='OK',_0x4401d3[_0x4401d3['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x4401d3[_0x4401d3[_0x2b1a47(0x391)]=0x3]='PERMISSION_DENIED',_0x4401d3[_0x4401d3[_0x2b1a47(0x26d)]=0x4]=_0x2b1a47(0x26d),_0x4401d3[_0x4401d3[_0x2b1a47(0x320)]=0x5]=_0x2b1a47(0x320),_0x4401d3[_0x4401d3[_0x2b1a47(0x3e3)]=0x6]=_0x2b1a47(0x3e3),_0x4401d3[_0x4401d3[_0x2b1a47(0x294)]=0x7]=_0x2b1a47(0x294),_0x4401d3[_0x4401d3[_0x2b1a47(0x2ed)]=0x8]=_0x2b1a47(0x2ed),_0x4401d3[_0x4401d3[_0x2b1a47(0x2f5)]=0x9]='COMPLETION_FINISHED',_0x4401d3[_0x4401d3[_0x2b1a47(0x3ec)]=0xa]=_0x2b1a47(0x3ec),_0x4401d3[_0x4401d3['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x2b1a47(0x2f9),_0x4401d3[_0x4401d3[_0x2b1a47(0x316)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4401d3[_0x4401d3[_0x2b1a47(0x2da)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x4401d3[_0x4401d3[_0x2b1a47(0x2e7)]=0xe]=_0x2b1a47(0x2e7),_0x4401d3[_0x4401d3[_0x2b1a47(0x42f)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4401d3[_0x4401d3[_0x2b1a47(0x3a1)]=0x1771]=_0x2b1a47(0x3a1),_0x4401d3[_0x4401d3[_0x2b1a47(0x26c)]=0x1772]=_0x2b1a47(0x26c),_0x4401d3[_0x4401d3[_0x2b1a47(0x382)]=0x1773]=_0x2b1a47(0x382),_0x4401d3[_0x4401d3[_0x2b1a47(0x298)]=0x1b59]=_0x2b1a47(0x298),_0x4401d3[_0x4401d3[_0x2b1a47(0x261)]=0x1b5a]=_0x2b1a47(0x261),_0x4401d3[_0x4401d3[_0x2b1a47(0x28e)]=0x1b5b]=_0x2b1a47(0x28e),_0x4401d3[_0x4401d3[_0x2b1a47(0x3de)]=0x1b5c]=_0x2b1a47(0x3de),_0x4401d3[_0x4401d3[_0x2b1a47(0x336)]=0x1b5d]=_0x2b1a47(0x336),_0x4401d3[_0x4401d3[_0x2b1a47(0x31a)]=0x1f41]=_0x2b1a47(0x31a),_0x4401d3[_0x4401d3[_0x2b1a47(0x344)]=0x2329]=_0x2b1a47(0x344),_0x4401d3[_0x4401d3[_0x2b1a47(0x2a4)]=0x232a]=_0x2b1a47(0x2a4),_0x4401d3[_0x4401d3[_0x2b1a47(0x209)]=0x232b]=_0x2b1a47(0x209),_0x4401d3[_0x4401d3[_0x2b1a47(0x370)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4401d3[_0x4401d3[_0x2b1a47(0x2d5)]=0x232d]=_0x2b1a47(0x2d5),_0x4401d3[_0x4401d3[_0x2b1a47(0x2d9)]=0x2711]=_0x2b1a47(0x2d9),_0x4401d3[_0x4401d3[_0x2b1a47(0x26e)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4401d3[_0x4401d3['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2b1a47(0x30e),_0x4401d3[_0x4401d3[_0x2b1a47(0x227)]=0x2714]=_0x2b1a47(0x227),_0x4401d3[_0x4401d3[_0x2b1a47(0x230)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x4401d3[_0x4401d3[_0x2b1a47(0x41e)]=0x271b]=_0x2b1a47(0x41e),_0x4401d3[_0x4401d3[_0x2b1a47(0x37a)]=0x271c]=_0x2b1a47(0x37a),_0x4401d3[_0x4401d3[_0x2b1a47(0x27a)]=0x271d]=_0x2b1a47(0x27a),_0x4401d3[_0x4401d3[_0x2b1a47(0x332)]=0x271e]=_0x2b1a47(0x332),_0x4401d3[_0x4401d3[_0x2b1a47(0x2e9)]=0x271f]=_0x2b1a47(0x2e9),_0x4401d3[_0x4401d3['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2b1a47(0x41b),_0x4401d3[_0x4401d3['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x2b1a47(0x399),_0x4401d3[_0x4401d3[_0x2b1a47(0x459)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4401d3[_0x4401d3[_0x2b1a47(0x2fa)]=0x2ee2]='INVALID_INVITE_CODE',_0x4401d3[_0x4401d3['INVITE_CODE_REQUIRED']=0x2ee3]=_0x2b1a47(0x359),_0x4401d3[_0x4401d3[_0x2b1a47(0x389)]=0x2ee4]=_0x2b1a47(0x389),_0x4401d3[_0x4401d3[_0x2b1a47(0x362)]=0x2ee5]=_0x2b1a47(0x362),_0x4401d3[_0x4401d3[_0x2b1a47(0x405)]=0x32c9]=_0x2b1a47(0x405),_0x4401d3[_0x4401d3[_0x2b1a47(0x282)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4401d3[_0x4401d3[_0x2b1a47(0x2e0)]=0x32cb]=_0x2b1a47(0x2e0),_0x4401d3[_0x4401d3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4401d3))(je||{}),ns=Object[_0x2b1a47(0x462)],rs=(_0x7c7dc2,_0x5222e9,_0x24da6b,_0x433705)=>{const _0x2efadd=_0x2b1a47;for(var _0x1883fe=_0x433705>0x1?void 0x0:_0x433705?ns(_0x5222e9,_0x24da6b):_0x5222e9,_0x4af81a=_0x7c7dc2[_0x2efadd(0x3d8)]-0x1,_0x4fd9d3;_0x4af81a>=0x0;_0x4af81a--)(_0x4fd9d3=_0x7c7dc2[_0x4af81a])&&(_0x1883fe=_0x4fd9d3(_0x1883fe)||_0x1883fe);return _0x1883fe;},ue=(_0x4af1dd,_0x2f38ae)=>(_0x37656c,_0x4b714c)=>_0x2f38ae(_0x37656c,_0x4b714c,_0x4af1dd);exports[_0x2b1a47(0x239)]=class extends a[_0x2b1a47(0x412)]{constructor(_0x18e5d6,_0x32cc4c,_0x1b24e1){const _0x4b2a49=_0x2b1a47;super(),this['_instanceService']=_0x18e5d6,this['_httpService']=_0x32cc4c,this[_0x4b2a49(0x436)]=_0x1b24e1;}async['runOnServer'](_0x3d2269,_0x47e4bf,_0x19e27b,..._0x517221){const _0x16a1fc=_0x2b1a47;var _0x4b9987,_0x31a876,_0x32f3de,_0x2770ff;const _0x387f63=this[_0x16a1fc(0x256)][_0x16a1fc(0x42b)]();if(!_0x387f63)throw new Error(_0x16a1fc(0x365));const _0x170a33=((_0x4b9987=this[_0x16a1fc(0x436)][_0x16a1fc(0x393)](u[_0x16a1fc(0x286)]))!=null?_0x4b9987:u[_0x16a1fc(0x285)])+'/'+_0x3d2269+_0x16a1fc(0x36e)+_0x47e4bf,_0x10bfd5=new URL(window[_0x16a1fc(0x403)][_0x16a1fc(0x2dd)]),_0x60601={'scriptId':_0x3d2269,'runId':(_0x31a876=_0x10bfd5[_0x16a1fc(0x2a2)]['get'](_0x16a1fc(0x44b)))!=null?_0x31a876:'','function':_0x47e4bf,'unitId':_0x387f63[_0x16a1fc(0x3ee)](),'argsOfFunction':JSON[_0x16a1fc(0x38d)](_0x517221),'invokeId':(_0x32f3de=_0x19e27b['invokeId'])!=null?_0x32f3de:'','executionId':(_0x2770ff=_0x19e27b[_0x16a1fc(0x355)])!=null?_0x2770ff:''};try{const _0x3746e7=await this['_httpService'][_0x16a1fc(0x314)](_0x170a33,{'body':_0x60601});return _0x3746e7[_0x16a1fc(0x1f8)][_0x16a1fc(0x290)]&&_0x3746e7['body']['error'][_0x16a1fc(0x44a)]!==je['OK']?_0x16a1fc(0x422):_0x3746e7[_0x16a1fc(0x1f8)][_0x16a1fc(0x32d)];}catch{return _0x16a1fc(0x422);}}},exports[_0x2b1a47(0x239)]=rs([ue(0x0,a[_0x2b1a47(0x2a3)]),ue(0x1,a['Inject'](G[_0x2b1a47(0x35c)])),ue(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports[_0x2b1a47(0x201)]=Ee,exports[_0x2b1a47(0x327)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x2b1a47(0x380)]=Be;
1
+ 'use strict';const _0xabc553=_0x520f;(function(_0x142ee9,_0x4c1181){const _0x1a9948=_0x520f,_0x4aa9fb=_0x142ee9();while(!![]){try{const _0x40b169=-parseInt(_0x1a9948(0x233))/0x1*(parseInt(_0x1a9948(0x1ef))/0x2)+-parseInt(_0x1a9948(0x249))/0x3+-parseInt(_0x1a9948(0x1ba))/0x4+parseInt(_0x1a9948(0x32e))/0x5+-parseInt(_0x1a9948(0x140))/0x6*(-parseInt(_0x1a9948(0x2a1))/0x7)+-parseInt(_0x1a9948(0x250))/0x8+parseInt(_0x1a9948(0x134))/0x9*(parseInt(_0x1a9948(0x1dd))/0xa);if(_0x40b169===_0x4c1181)break;else _0x4aa9fb['push'](_0x4aa9fb['shift']());}catch(_0x50c46b){_0x4aa9fb['push'](_0x4aa9fb['shift']());}}}(_0x41d8,0x235c7));var Ve=Object[_0xabc553(0x343)],Xe=(_0x40a853,_0x3f28df,_0x11fcfd)=>_0x3f28df in _0x40a853?Ve(_0x40a853,_0x3f28df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11fcfd}):_0x40a853[_0x3f28df]=_0x11fcfd,h=(_0x1a775a,_0x1c6f67,_0x6f75e7)=>Xe(_0x1a775a,typeof _0x1c6f67!=_0xabc553(0x110)?_0x1c6f67+'':_0x1c6f67,_0x6f75e7);Object[_0xabc553(0x343)](exports,Symbol[_0xabc553(0x109)],{'value':_0xabc553(0x202)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0xabc553(0x170)],ze=(_0x4b8bac,_0x123ae4,_0x2edd61,_0x47158c)=>{const _0x15b06b=_0xabc553;for(var _0x2b688e=_0x47158c>0x1?void 0x0:_0x47158c?qe(_0x123ae4,_0x2edd61):_0x123ae4,_0xe081ce=_0x4b8bac[_0x15b06b(0x24f)]-0x1,_0x103d62;_0xe081ce>=0x0;_0xe081ce--)(_0x103d62=_0x4b8bac[_0xe081ce])&&(_0x2b688e=_0x103d62(_0x2b688e)||_0x2b688e);return _0x2b688e;},Oe=(_0x51f502,_0x310d6a)=>(_0x134ffe,_0x3706eb)=>_0x310d6a(_0x134ffe,_0x3706eb,_0x51f502);let de=class extends a[_0xabc553(0x1e9)]{constructor(_0x18ef32,_0x25c103){const _0x1cf6ab=_0xabc553;super(),this[_0x1cf6ab(0x183)]=_0x18ef32,this[_0x1cf6ab(0x26b)]=_0x25c103,this[_0x1cf6ab(0x364)]();}['_init'](){const _0xf52421=_0xabc553,_0x363712=this;this[_0xf52421(0x225)](this['_docClipboardService'][_0xf52421(0x12d)]({'onBeforePasteImage':async _0x1f399e=>{const _0x4d056d=_0xf52421,_0x33ba35=await _0x363712[_0x4d056d(0x26b)][_0x4d056d(0x281)](_0x1f399e);return _0x33ba35?{'source':_0x33ba35[_0x4d056d(0x1cf)],'imageSourceType':_0x33ba35['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0xabc553(0x31c)]),Oe(0x1,Ge[_0xabc553(0x35a)])],de);const Te=[_0xabc553(0x133),_0xabc553(0x2e6),_0xabc553(0x2f4),'red.300','blue.400',_0xabc553(0x1d8)];class me extends a[_0xabc553(0x150)]{constructor(){const _0x2ca314=_0xabc553;super(...arguments),h(this,_0x2ca314(0x1ec),new Map()),h(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x2b75b9){const _0x1f8a1b=_0xabc553;if(this[_0x1f8a1b(0x1ec)][_0x1f8a1b(0x17f)](_0x2b75b9))return this['_assignedColors'][_0x1f8a1b(0x299)](_0x2b75b9);const _0xbeaeb9=Te[this[_0x1f8a1b(0x32a)]];return this[_0x1f8a1b(0x32a)]=(this[_0x1f8a1b(0x32a)]+0x1)%Te[_0x1f8a1b(0x24f)],this[_0x1f8a1b(0x1ec)][_0x1f8a1b(0x1d9)](_0x2b75b9,_0xbeaeb9),_0xbeaeb9;}}function Pe(_0x19926b){let _0x120189='';for(const _0x29bc58 of _0x19926b){const {startOffset:_0x3a483e,endOffset:_0x1978c5,isActive:_0x3161f5,rangeType:_0x199e78,segmentId:_0x168a84,segmentPage:_0x5168f0}=_0x29bc58;_0x120189['length']&&(_0x120189+=','),_0x120189+=_0x3a483e+':'+_0x1978c5+':'+(_0x3161f5?'1':'0')+':'+_0x199e78+':'+_0x168a84+':'+_0x5168f0;}return _0x120189;}function Je(_0x4a9372){const _0x3df350=_0xabc553,_0x24dde7=_0x4a9372[_0x3df350(0x332)](','),_0x46eb87=[];for(const _0x332baf of _0x24dde7){const [_0x491274,_0x5e9725,_0x165eb2,_0x43b096,_0x1f0989,_0x500d3c]=_0x332baf[_0x3df350(0x332)](':');_0x46eb87[_0x3df350(0x317)]({'startOffset':Number(_0x491274),'endOffset':Number(_0x5e9725),'collapsed':_0x491274===_0x5e9725,'isActive':_0x165eb2==='1','rangeType':_0x43b096===a[_0x3df350(0x1e3)][_0x3df350(0x201)]?a[_0x3df350(0x1e3)][_0x3df350(0x201)]:a[_0x3df350(0x1e3)]['RECT'],'segmentId':typeof _0x1f0989==_0x3df350(0x2b8)?String(_0x1f0989):'','segmentPage':Number(_0x500d3c!=null?_0x500d3c:-0x1)});}return _0x46eb87[_0x3df350(0x17e)](_0xc6231c=>_0xc6231c[_0x3df350(0x319)])||(_0x46eb87[0x0][_0x3df350(0x319)]=!0x0),_0x46eb87;}class Ce extends a[_0xabc553(0x1e9)]{constructor(){const _0x3c4ae2=_0xabc553;super(...arguments),h(this,_0x3c4ae2(0x13f),new d['BehaviorSubject'](null)),h(this,_0x3c4ae2(0x1f9),this[_0x3c4ae2(0x13f)][_0x3c4ae2(0x25a)]());}[_0xabc553(0x2d6)](_0xe39858){const _0x41b6cd=_0xabc553,{unitID:_0x5d288d,memberID:_0x3076ba,textRanges:_0x36690b}=_0xe39858,_0x3bb2bc=Pe(_0x36690b);if(_0x3bb2bc==='')return;const _0x17ab4d={'unitID':_0x5d288d,'memberID':_0x3076ba,'selection':_0x3bb2bc};this['_collabCursorState$'][_0x41b6cd(0x1a8)](_0x17ab4d);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x4b4246,_0x32a741,_0x572c1d,_0x249511)=>{for(var _0x4ccf5e=_0x249511>0x1?void 0x0:_0x249511?Ze(_0x32a741,_0x572c1d):_0x32a741,_0x46987c=_0x4b4246['length']-0x1,_0x2a5f8a;_0x46987c>=0x0;_0x46987c--)(_0x2a5f8a=_0x4b4246[_0x46987c])&&(_0x4ccf5e=_0x2a5f8a(_0x4ccf5e)||_0x4ccf5e);return _0x4ccf5e;},L=(_0x10bda6,_0x34790c)=>(_0x494f93,_0x17677a)=>_0x34790c(_0x494f93,_0x17677a,_0x10bda6);const et=0x12c,tt=0x64;function _0x520f(_0xe48318,_0xd2c9e0){const _0x41d872=_0x41d8();return _0x520f=function(_0x520f26,_0x539c08){_0x520f26=_0x520f26-0xee;let _0x4dc4b=_0x41d872[_0x520f26];return _0x4dc4b;},_0x520f(_0xe48318,_0xd2c9e0);}let Ie=class extends a[_0xabc553(0x1e9)]{constructor(_0x43fc96,_0x252c68,_0x55029,_0x124339,_0xd9a713,_0x406ec6,_0x571d58,_0x4a3996,_0x51895c){const _0x18948a=_0xabc553;super(),h(this,_0x18948a(0x2fe),!0x1),h(this,_0x18948a(0x364),!0x1),h(this,_0x18948a(0x267),new d[(_0x18948a(0x2ab))](new Map())),h(this,_0x18948a(0x1be),this[_0x18948a(0x267)]['asObservable']()),h(this,_0x18948a(0x16e),new d[(_0x18948a(0x2ab))]([])),h(this,_0x18948a(0xf2),this[_0x18948a(0x16e)]['pipe'](d[_0x18948a(0x2ec)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x4a6213=>{const _0x812c26=_0x18948a,_0x9a54cc={'eventID':m[_0x812c26(0x247)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x812c26(0x32b)],'memberID':this[_0x812c26(0x284)][_0x812c26(0x297)](),'selection':Pe(_0x4a6213)}};this[_0x812c26(0x284)][_0x812c26(0x351)](_0x9a54cc,this[_0x812c26(0x32b)]);},tt)),(this[_0x18948a(0x32b)]=_0x43fc96,this[_0x18948a(0x284)]=_0x252c68,this[_0x18948a(0x21c)]=_0x55029,this[_0x18948a(0x258)]=_0x124339,this['_memberService']=_0xd9a713,this[_0x18948a(0x182)]=_0x406ec6,this[_0x18948a(0x17b)]=_0x571d58,this[_0x18948a(0x104)]=_0x4a3996,this[_0x18948a(0x2b6)]=_0x51895c);}get[_0xabc553(0x1a0)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x2a00ae=_0xabc553;return this[_0x2a00ae(0x16e)][_0x2a00ae(0x112)]();}[_0xabc553(0x34d)](){const _0x142bcb=_0xabc553;super[_0x142bcb(0x34d)](),this['_cursorInfo$']['next'](new Map()),this[_0x142bcb(0x267)][_0x142bcb(0x24b)](),this['_roomMembers$']['next']([]),this[_0x142bcb(0x16e)][_0x142bcb(0x24b)]();}[_0xabc553(0x198)](){const _0x316372=_0xabc553;this[_0x316372(0x364)]||(this[_0x316372(0x364)]=!0x0,this[_0x316372(0x284)][_0x316372(0x135)][_0x316372(0x30b)](d[_0x316372(0x21a)](this[_0x316372(0x19b)]))[_0x316372(0x29b)](_0x4a2af5=>{const _0x381ba5=_0x316372;_0x4a2af5===u['SessionStatus'][_0x381ba5(0x22b)]?this[_0x381ba5(0x2d8)]():this['_toggleOffline']();}),this[_0x316372(0x284)]['event$'][_0x316372(0x30b)](d[_0x316372(0x21a)](this[_0x316372(0x19b)]))[_0x316372(0x29b)](_0xd4720d=>{const _0x36545d=_0x316372,_0x185ec3=_0xd4720d['eventID'];_0x185ec3===m['CollaborationEvent'][_0x36545d(0x30a)]&&this['_onCursorUpdate'](_0xd4720d),_0x185ec3===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x36545d(0x2a2)](_0xd4720d);}),this[_0x316372(0x225)](this[_0x316372(0x2b6)][_0x316372(0x2a8)](_0x5bf08d=>{const _0x17a20c=_0x316372,_0xe12db6=_0x5bf08d[_0x17a20c(0xfc)];_0xe12db6!=null&&this['_online']&&_0x5bf08d['id']===Y[_0x17a20c(0x2c0)]['id']&&_0xe12db6[_0x17a20c(0x29d)]===this[_0x17a20c(0x32b)]&&_0xe12db6[_0x17a20c(0x181)]===!0x1&&_0xe12db6[_0x17a20c(0x1d1)]['length']>0x0&&this[_0x17a20c(0x2f2)](_0xe12db6[_0x17a20c(0x1d1)]);})),this[_0x316372(0x182)]['collabCursorState$'][_0x316372(0x30b)](d[_0x316372(0x21a)](this[_0x316372(0x19b)]))[_0x316372(0x29b)](_0x2f08c1=>{const _0x42a887=_0x316372;if((_0x2f08c1==null?void 0x0:_0x2f08c1[_0x42a887(0x32b)])!==this[_0x42a887(0x32b)])return;const _0x4c2d20={'eventID':m[_0x42a887(0x247)]['UPDATE_CURSOR'],'data':_0x2f08c1};this[_0x42a887(0x136)](_0x4c2d20);}),this[_0x316372(0x225)](this[_0x316372(0x2b6)][_0x316372(0x2a8)](_0x20167a=>{const _0x472bcc=_0x316372;if(_0x20167a[_0x472bcc(0xfc)]==null)return;const _0x1abe5e=_0x20167a['params'];if(_0x20167a['id']!==Y['RichTextEditingMutation']['id']||_0x1abe5e['unitId']!==this['unitID'])return;const _0x4de57a={'id':_0x472bcc(0x159),'params':_0x1abe5e},_0x30202c=this[_0x472bcc(0x1a0)];for(const [_0x4e1a07,_0x4593fd]of _0x30202c){const _0x1ae0fb={'id':_0x472bcc(0x159),'params':{'unitId':this[_0x472bcc(0x32b)],'actions':null,'textRanges':_0x4593fd['ranges']}},_0x1c3b06=this['_transformService'][_0x472bcc(0x172)](_0x4de57a,_0x1ae0fb,!0x1);if(m[_0x472bcc(0x352)](_0x1c3b06))throw _0x1c3b06['error'];_0x30202c[_0x472bcc(0x1d9)](_0x4e1a07,{..._0x4593fd,'ranges':_0x1c3b06['m2Prime'][_0x472bcc(0xfc)][_0x472bcc(0x2ae)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x30202c);});})));}[_0xabc553(0x136)](_0x4efd78){const _0x6712c5=_0xabc553;var _0x36b0bf,_0x3d49e4;const {memberID:_0x22eecc,selection:_0x1f8def}=_0x4efd78[_0x6712c5(0x357)],_0x348297=Je(_0x1f8def),_0x59be9d=(_0x3d49e4=(_0x36b0bf=this['_memberService'][_0x6712c5(0x28a)](this[_0x6712c5(0x32b)],_0x22eecc))==null?void 0x0:_0x36b0bf[_0x6712c5(0x1f7)])!=null?_0x3d49e4:_0x6712c5(0x1db),_0x375a27={'color':this[_0x6712c5(0x258)][_0x6712c5(0x28c)](_0x22eecc),'name':_0x59be9d,'ranges':_0x348297},_0x55acaf=this[_0x6712c5(0x1a0)];_0x55acaf['set'](_0x22eecc,_0x375a27),this[_0x6712c5(0x267)][_0x6712c5(0x1a8)](_0x55acaf);}[_0xabc553(0x2a2)](_0x4f6b5c){const _0x20f7ff=_0xabc553,{memberID:_0xf55b}=_0x4f6b5c[_0x20f7ff(0x357)],_0x2b06e8=this[_0x20f7ff(0x1a0)];_0x2b06e8['delete'](_0xf55b),this[_0x20f7ff(0x267)][_0x20f7ff(0x1a8)](_0x2b06e8);}[_0xabc553(0x2d8)](){const _0x2597cf=_0xabc553;var _0x281851;if(this['_online']=!0x0,((_0x281851=this[_0x2597cf(0x104)][_0x2597cf(0x2c7)]())==null?void 0x0:_0x281851['getUnitId']())!==this[_0x2597cf(0x32b)])return;const _0x22cf4c=this['_injector']['get'](Y[_0x2597cf(0x2fb)])[_0x2597cf(0x2ef)]();Array[_0x2597cf(0x1c5)](_0x22cf4c)&&_0x22cf4c[_0x2597cf(0x24f)]>0x0&&this[_0x2597cf(0x2f2)](_0x22cf4c);}[_0xabc553(0x1c9)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a['Inject'](a[_0xabc553(0x268)])),L(0x3,a[_0xabc553(0xf6)](me)),L(0x4,a[_0xabc553(0xf6)](u[_0xabc553(0x124)])),L(0x5,a[_0xabc553(0xf6)](Ce)),L(0x6,m[_0xabc553(0xf5)]),L(0x7,a[_0xabc553(0x323)]),L(0x8,a['ICommandService'])],Ie);var st=Object[_0xabc553(0x170)],it=(_0x203328,_0x414c01,_0xf9cf87,_0x18e307)=>{const _0x158cf1=_0xabc553;for(var _0x5c2434=_0x18e307>0x1?void 0x0:_0x18e307?st(_0x414c01,_0xf9cf87):_0x414c01,_0x438204=_0x203328[_0x158cf1(0x24f)]-0x1,_0x3da7e8;_0x438204>=0x0;_0x438204--)(_0x3da7e8=_0x203328[_0x438204])&&(_0x5c2434=_0x3da7e8(_0x5c2434)||_0x5c2434);return _0x5c2434;},A=(_0x268197,_0x2ee3ef)=>(_0x5787b0,_0x45e741)=>_0x2ee3ef(_0x5787b0,_0x45e741,_0x268197);const nt=0x12c,rt=0x64,ot=()=>{let _0x412be0=[],_0x13b124=!0x1;return _0x1d77de=>{_0x412be0['push'](_0x1d77de),_0x13b124||(_0x13b124=!0x0,setTimeout(()=>{_0x412be0['forEach'](_0x4675ff=>_0x4675ff()),_0x412be0=[],_0x13b124=!0x1;}));};};let Se=class extends a[_0xabc553(0x1e9)]{constructor(_0x147622,_0x10280f,_0x2aa911,_0x1b066a,_0x34ee90,_0x16f024,_0x471760,_0x54bd18){const _0xebf904=_0xabc553;super(),h(this,'_online',!0x1),h(this,_0xebf904(0x364),!0x1),h(this,_0xebf904(0x267),new d['BehaviorSubject'](new Map())),h(this,_0xebf904(0x1be),this[_0xebf904(0x267)][_0xebf904(0x25a)]()),h(this,_0xebf904(0x16e),new d[(_0xebf904(0x2ab))]([])),h(this,'roomMembers$',this[_0xebf904(0x16e)][_0xebf904(0x30b)](d[_0xebf904(0x2ec)](nt))),h(this,'_updateLocalCursor',a[_0xebf904(0x2ce)]((_0x57b772,_0x1640b2)=>{const _0x57eeae=_0xebf904,_0x3e0769={'eventID':m[_0x57eeae(0x247)][_0x57eeae(0x30a)],'data':{'unitID':this[_0x57eeae(0x32b)],'memberID':this['_session'][_0x57eeae(0x297)](),'selection':be['serializeRangeWithSheet'](_0x57b772,_0x1640b2[_0x57eeae(0x122)])}};this[_0x57eeae(0x284)][_0x57eeae(0x351)](_0x3e0769,this['unitID']);},rt)),(this[_0xebf904(0x32b)]=_0x147622,this[_0xebf904(0x284)]=_0x10280f,this[_0xebf904(0x21c)]=_0x2aa911,this['_colorAssignService']=_0x1b066a,this[_0xebf904(0x21d)]=_0x34ee90,this[_0xebf904(0x104)]=_0x16f024,this[_0xebf904(0x2b6)]=_0x471760,this[_0xebf904(0x27b)]=_0x54bd18);}get[_0xabc553(0x1a0)](){const _0x31b83a=_0xabc553;return this[_0x31b83a(0x267)][_0x31b83a(0x112)]();}get['roomMembers'](){const _0x599ef1=_0xabc553;return this[_0x599ef1(0x16e)]['getValue']();}['dispose'](){const _0x29053f=_0xabc553;super[_0x29053f(0x34d)](),this[_0x29053f(0x267)][_0x29053f(0x1a8)](new Map()),this[_0x29053f(0x267)][_0x29053f(0x24b)](),this[_0x29053f(0x16e)][_0x29053f(0x1a8)]([]),this[_0x29053f(0x16e)][_0x29053f(0x24b)]();}[_0xabc553(0x198)](){const _0x5928c3=_0xabc553;this[_0x5928c3(0x364)]||(this[_0x5928c3(0x364)]=!0x0,this[_0x5928c3(0x284)]['sessionStatus$']['pipe'](d[_0x5928c3(0x21a)](this[_0x5928c3(0x19b)]))[_0x5928c3(0x29b)](_0x1f16a2=>{const _0xd76902=_0x5928c3;_0x1f16a2===u[_0xd76902(0x200)][_0xd76902(0x22b)]?this[_0xd76902(0x2d8)]():this[_0xd76902(0x1c9)]();}),this[_0x5928c3(0x284)][_0x5928c3(0x12b)]['pipe'](d[_0x5928c3(0x21a)](this[_0x5928c3(0x19b)]))[_0x5928c3(0x29b)](_0x331542=>{const _0x3effd8=_0x5928c3,_0x2f1a25=_0x331542[_0x3effd8(0x27d)];_0x2f1a25===m[_0x3effd8(0x247)][_0x3effd8(0x30a)]&&this['_onCursorUpdate'](_0x331542),_0x2f1a25===m[_0x3effd8(0x247)][_0x3effd8(0x11f)]&&this[_0x3effd8(0x2a2)](_0x331542);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x5928c3(0x2b6)][_0x5928c3(0x2a8)](_0x16cf03=>{const _0x184f0f=_0x5928c3;if(this[_0x184f0f(0x2fe)]&&_0x16cf03['id']===g[_0x184f0f(0x15d)]['id']&&_0x16cf03['params']['unitId']===this[_0x184f0f(0x32b)]){const _0x1a889e=_0x16cf03[_0x184f0f(0xfc)];this['_updateLocalCursor'](_0x1a889e[_0x184f0f(0x203)],_0x1a889e['selections'][0x0]);}})));}[_0xabc553(0x136)](_0x3421db){const _0x37ecea=_0xabc553;var _0x30e270,_0x1bde33;const {memberID:_0x312681,selection:_0x49882f}=_0x3421db[_0x37ecea(0x357)],{sheetName:_0x5b56a8,range:_0x3796fa}=be['deserializeRangeWithSheet'](_0x49882f),_0x33e9f0={'name':(_0x1bde33=(_0x30e270=this['_memberService'][_0x37ecea(0x28a)](this[_0x37ecea(0x32b)],_0x312681))==null?void 0x0:_0x30e270[_0x37ecea(0x1f7)])!=null?_0x1bde33:_0x37ecea(0x1db),'range':this[_0x37ecea(0x2c4)](_0x5b56a8,_0x3796fa),'sheetID':_0x5b56a8,'color':this[_0x37ecea(0x258)]['assignAColorForMemberID'](_0x312681),'selection':_0x49882f},_0x57ef6e=this[_0x37ecea(0x1a0)];_0x57ef6e['set'](_0x312681,_0x33e9f0),this[_0x37ecea(0x267)]['next'](_0x57ef6e);}[_0xabc553(0x2a2)](_0x3eac8c){const _0x26cfab=_0xabc553,{memberID:_0x2774c6}=_0x3eac8c[_0x26cfab(0x357)],_0x14d6e9=this[_0x26cfab(0x1a0)];_0x14d6e9[_0x26cfab(0x173)](_0x2774c6),this[_0x26cfab(0x267)][_0x26cfab(0x1a8)](_0x14d6e9);}[_0xabc553(0x2c4)](_0x3e9133,_0x34e871){const _0x2b7a78=_0xabc553;var _0x9edee2,_0x3fd536;const _0x48ae84=(_0x3fd536=(_0x9edee2=this[_0x2b7a78(0x104)][_0x2b7a78(0x192)](this['unitID']))==null?void 0x0:_0x9edee2[_0x2b7a78(0x1b7)](_0x3e9133))==null?void 0x0:_0x3fd536[_0x2b7a78(0x244)]();return(_0x48ae84==null?void 0x0:_0x48ae84[_0x2b7a78(0x2eb)](_0x26b2d6=>a[_0x2b7a78(0x149)]['contains'](_0x26b2d6,_0x34e871)))||_0x34e871;}['_onRefRangeChange'](){const _0x27778b=_0xabc553,_0x1f8aba=new a['DisposableCollection'](),_0x2ac2d7=ot(),_0x26b786=()=>{const _0x875fd6=_0x520f;_0x1f8aba[_0x875fd6(0x34d)]();const _0x5453c0=(_0x30a776,_0x858b98,_0x185b4c,_0x29369e)=>{const _0x3611be=_0x875fd6;let _0xc9f794=[];switch(_0x30a776['id']){case g[_0x3611be(0x21b)][_0x3611be(0x17c)]:{_0xc9f794=g[_0x3611be(0x33c)](_0x30a776,_0x29369e);break;}case g[_0x3611be(0x21b)][_0x3611be(0x11e)]:{_0xc9f794=g[_0x3611be(0x35d)](_0x30a776,_0x29369e);break;}case g[_0x3611be(0x21b)]['InsertColCommandId']:{_0xc9f794=g[_0x3611be(0x127)](_0x30a776,_0x29369e);break;}case g[_0x3611be(0x21b)][_0x3611be(0x221)]:{_0xc9f794=g['handleInsertRangeMoveDown'](_0x30a776,_0x29369e);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0xc9f794=g[_0x3611be(0x26a)](_0x30a776,_0x29369e);break;}case g['EffectRefRangId'][_0x3611be(0x353)]:{_0xc9f794=g[_0x3611be(0x1ca)](_0x30a776,_0x29369e);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0xc9f794=g[_0x3611be(0x35b)](_0x30a776,_0x29369e);break;}case g[_0x3611be(0x21b)][_0x3611be(0x164)]:{_0xc9f794=g[_0x3611be(0x2f6)](_0x30a776,_0x29369e);break;}case g[_0x3611be(0x21b)][_0x3611be(0x18b)]:{_0xc9f794=g[_0x3611be(0x120)](_0x30a776,_0x29369e);break;}}const _0x1ac9c9=g[_0x3611be(0xfd)](_0xc9f794,_0x29369e),_0x5ebe45=this['cursorInfo'][_0x3611be(0x299)](_0x858b98);if(_0x5ebe45&&_0x1ac9c9){const _0x8cdaf1={..._0x5ebe45,'range':_0x1ac9c9};this[_0x3611be(0x1a0)][_0x3611be(0x1d9)](_0x858b98,_0x8cdaf1),_0x2ac2d7(()=>{const _0x254806=_0x3611be,_0x5ae542=this['_refRangeService'][_0x254806(0x2b1)](_0x1ac9c9,_0x4584e3=>(_0x5ae542[_0x254806(0x34d)](),_0x5453c0(_0x4584e3,_0x858b98,_0x185b4c,_0x1ac9c9)));_0x1f8aba[_0x254806(0x22c)](_0x5ae542);});}return{'redos':[],'undos':[]};};this[_0x875fd6(0x1a0)][_0x875fd6(0x1b9)]((_0x2ba5c5,_0xf2f4e4)=>{const _0x42cce2=_0x875fd6,{range:_0x2c93db,sheetID:_0x166b3b}=_0x2ba5c5,_0x16a005=this[_0x42cce2(0x27b)][_0x42cce2(0x2b1)](_0x2c93db,_0x167d52=>(_0x16a005[_0x42cce2(0x34d)](),_0x5453c0(_0x167d52,_0xf2f4e4,_0x166b3b,_0x2c93db)));_0x1f8aba[_0x42cce2(0x22c)](_0x16a005);});};this['disposeWithMe'](a[_0x27778b(0x20b)](this[_0x27778b(0x267)][_0x27778b(0x29b)](()=>{_0x26b786();})));}[_0xabc553(0x2d8)](){const _0x1ac132=_0xabc553;var _0x57cd4b,_0x17e6ed;if(this[_0x1ac132(0x2fe)]=!0x0,((_0x57cd4b=this[_0x1ac132(0x104)][_0x1ac132(0x2c7)]())==null?void 0x0:_0x57cd4b[_0x1ac132(0x1e7)]())!==this[_0x1ac132(0x32b)])return;const _0x29af56=(_0x17e6ed=this[_0x1ac132(0x21c)][_0x1ac132(0x299)](g[_0x1ac132(0x2e3)])[_0x1ac132(0x325)]())==null?void 0x0:_0x17e6ed[0x0],_0xb2e933=this[_0x1ac132(0x104)][_0x1ac132(0x291)](a['UniverInstanceType'][_0x1ac132(0x264)])[_0x1ac132(0x286)]();_0x29af56&&_0xb2e933&&this[_0x1ac132(0x2f2)](_0xb2e933['getSheetId'](),_0x29af56);}[_0xabc553(0x1c9)](){const _0x1c11bb=_0xabc553;this[_0x1c11bb(0x2fe)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0xabc553(0x268)])),A(0x3,a[_0xabc553(0xf6)](me)),A(0x4,a[_0xabc553(0xf6)](u[_0xabc553(0x124)])),A(0x5,a[_0xabc553(0x323)]),A(0x6,a[_0xabc553(0x11a)]),A(0x7,a['Inject'](g['RefRangeService']))],Se);var at=Object[_0xabc553(0x170)],ct=(_0x43292a,_0x575d63,_0x293aaf,_0x2442ac)=>{for(var _0x5ecfc0=_0x2442ac>0x1?void 0x0:_0x2442ac?at(_0x575d63,_0x293aaf):_0x575d63,_0x3ca9d0=_0x43292a['length']-0x1,_0x4f515b;_0x3ca9d0>=0x0;_0x3ca9d0--)(_0x4f515b=_0x43292a[_0x3ca9d0])&&(_0x5ecfc0=_0x4f515b(_0x5ecfc0)||_0x5ecfc0);return _0x5ecfc0;},ie=(_0x9e24d8,_0xf20ef3)=>(_0xcc876a,_0x11a02b)=>_0xf20ef3(_0xcc876a,_0x11a02b,_0x9e24d8);let x=class extends a[_0xabc553(0x1e9)]{constructor(_0x540030,_0x46937f,_0x509043){const _0x12c04a=_0xabc553;super(),h(this,_0x12c04a(0x313),new Map()),h(this,_0x12c04a(0x2f5),new d[(_0x12c04a(0x113))]()),(this[_0x12c04a(0x104)]=_0x540030,this[_0x12c04a(0x21c)]=_0x46937f,this['_collabSessionService']=_0x509043,this[_0x12c04a(0x364)]());}[_0xabc553(0x34d)](){const _0x4df14c=_0xabc553;super[_0x4df14c(0x34d)](),this[_0x4df14c(0x2f5)][_0x4df14c(0x24b)](),this[_0x4df14c(0x313)][_0x4df14c(0x1b9)](_0x14612e=>_0x14612e['dispose']());}['getCollabCursors$'](_0x315098){const _0x913c10=_0xabc553;return this[_0x913c10(0x313)][_0x913c10(0x17f)](_0x315098)?this['_entities'][_0x913c10(0x299)](_0x315098)[_0x913c10(0x1be)]:this[_0x913c10(0x2f5)][_0x913c10(0x30b)](d[_0x913c10(0x262)](_0x30fcfd=>_0x30fcfd[_0x913c10(0x32b)]===_0x315098),d['switchMap'](_0x59c95c=>_0x59c95c['cursorInfo$']));}['_init'](){const _0xe93bdf=_0xabc553;this[_0xe93bdf(0x104)][_0xe93bdf(0x195)](a[_0xe93bdf(0x26e)][_0xe93bdf(0x264)])[_0xe93bdf(0x30b)](d[_0xe93bdf(0x21a)](this['dispose$']))[_0xe93bdf(0x29b)](async _0x32afc6=>{const _0x49379a=_0xe93bdf,_0x6d2d38=_0x32afc6[_0x49379a(0x1e7)](),_0x4a9cdc=await this[_0x49379a(0x2c2)](_0x6d2d38);this[_0x49379a(0x2f5)][_0x49379a(0x1a8)](_0x4a9cdc),this[_0x49379a(0x313)][_0x49379a(0x1d9)](_0x6d2d38,_0x4a9cdc);}),this[_0xe93bdf(0x104)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0xe93bdf(0x2bb)])['pipe'](d[_0xe93bdf(0x21a)](this[_0xe93bdf(0x19b)]))['pipe'](d['filter'](_0x26c4d2=>!_0x26c4d2[_0xe93bdf(0x1e7)]()[_0xe93bdf(0x2bd)]('__')))[_0xe93bdf(0x29b)](async _0x4e4a36=>{const _0x445768=_0xe93bdf,_0x5398bb=_0x4e4a36['getUnitId'](),_0x3fe90a=await this[_0x445768(0x210)](_0x5398bb);this[_0x445768(0x2f5)][_0x445768(0x1a8)](_0x3fe90a),this[_0x445768(0x313)][_0x445768(0x1d9)](_0x5398bb,_0x3fe90a);}),d[_0xe93bdf(0x2e9)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0xe93bdf(0x26e)]['UNIVER_DOC']),this[_0xe93bdf(0x104)][_0xe93bdf(0x2b4)](a[_0xe93bdf(0x26e)][_0xe93bdf(0x264)]))['pipe'](d['takeUntil'](this[_0xe93bdf(0x19b)]))[_0xe93bdf(0x29b)](_0x1d24c5=>{const _0x2b190b=_0xe93bdf,_0x480fb6=_0x1d24c5[_0x2b190b(0x1e7)](),_0x56137b=this[_0x2b190b(0x313)][_0x2b190b(0x299)](_0x480fb6);_0x56137b&&(_0x56137b[_0x2b190b(0x34d)](),this[_0x2b190b(0x313)][_0x2b190b(0x173)](_0x480fb6));});}async[_0xabc553(0x2c2)](_0x554680){const _0x2c1681=_0xabc553,_0x271a7f=await this[_0x2c1681(0x2cc)]['requireSession'](_0x554680),_0x1a41e5=this[_0x2c1681(0x21c)][_0x2c1681(0x242)](Se,_0x554680,_0x271a7f);return _0x1a41e5[_0x2c1681(0x198)](),_0x1a41e5;}async[_0xabc553(0x210)](_0x5222cb){const _0x2a9487=_0xabc553,_0x3a0ff9=await this[_0x2a9487(0x2cc)]['requireSession'](_0x5222cb),_0x60f20e=this[_0x2a9487(0x21c)][_0x2a9487(0x242)](Ie,_0x5222cb,_0x3a0ff9);return _0x60f20e[_0x2a9487(0x198)](),_0x60f20e;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0xabc553(0xf6)](a[_0xabc553(0x268)])),ie(0x2,a[_0xabc553(0xf6)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4c6a5e,_0x47424f){const _0x1ec14e=_0xabc553;let {radius:_0xc2b57d,width:_0x1a6645,height:_0x5d5596}=_0x47424f;_0xc2b57d=_0xc2b57d!=null?_0xc2b57d:0x0,_0x1a6645=_0x1a6645!=null?_0x1a6645:0x1e,_0x5d5596=_0x5d5596!=null?_0x5d5596:0x1e;let _0x4c065a=0x0,_0x933f8b=0x0,_0x1badd0=0x0;_0x4c065a=_0x933f8b=_0x1badd0=Math['min'](_0xc2b57d,_0x1a6645/0x2,_0x5d5596/0x2),_0x4c6a5e['beginPath'](),_0x4c6a5e[_0x1ec14e(0x235)](_0x4c065a,0x0),_0x4c6a5e[_0x1ec14e(0x1e6)](_0x1a6645-_0x933f8b,0x0),_0x4c6a5e[_0x1ec14e(0x197)](_0x1a6645-_0x933f8b,_0x933f8b,_0x933f8b,Math['PI']*0x3/0x2,0x0,!0x1),_0x4c6a5e['lineTo'](_0x1a6645,_0x5d5596-_0x1badd0),_0x4c6a5e[_0x1ec14e(0x197)](_0x1a6645-_0x1badd0,_0x5d5596-_0x1badd0,_0x1badd0,0x0,Math['PI']/0x2,!0x1),_0x4c6a5e['lineTo'](0x0,_0x5d5596),_0x4c6a5e[_0x1ec14e(0x1e6)](0x0,_0x4c065a),_0x4c6a5e[_0x1ec14e(0x197)](_0x4c065a,_0x4c065a,_0x4c065a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4c6a5e[_0x1ec14e(0x2c8)](),_0x47424f[_0x1ec14e(0xf7)]&&(_0x4c6a5e[_0x1ec14e(0x1ee)](),_0x4c6a5e[_0x1ec14e(0x22d)]=_0x47424f['fill'],_0x47424f[_0x1ec14e(0x184)]===_0x1ec14e(0x234)?_0x4c6a5e[_0x1ec14e(0xf7)](_0x1ec14e(0x234)):_0x4c6a5e[_0x1ec14e(0xf7)](),_0x4c6a5e[_0x1ec14e(0x1a1)]());}class ee extends p[_0xabc553(0x2de)]{constructor(_0xe04839,_0x4879f2){const _0xaf2c2b=_0xabc553;super(_0xe04839,_0x4879f2),h(this,_0xaf2c2b(0x213)),h(this,_0xaf2c2b(0x163)),(this[_0xaf2c2b(0x213)]=_0x4879f2==null?void 0x0:_0x4879f2[_0xaf2c2b(0x213)],this[_0xaf2c2b(0x163)]=_0x4879f2==null?void 0x0:_0x4879f2[_0xaf2c2b(0x163)]);}static[_0xabc553(0x23c)](_0x52564f,_0x3ae8c6){const _0x5adac2=_0xabc553,{text:_0x5c6d2b,color:_0x1e5636}=_0x3ae8c6;_0x52564f[_0x5adac2(0x1ee)](),_0x52564f[_0x5adac2(0x260)]=_0x5adac2(0x215);const _0x4a2ac3=_0x52564f[_0x5adac2(0x305)](_0x5c6d2b)['width'],_0x2f9b64=Math[_0x5adac2(0x22a)](_0x4a2ac3+0x2*ne,Re);_t(_0x52564f,{'height':K,'radius':0x4,'width':_0x2f9b64,'fill':_0x1e5636}),_0x52564f[_0x5adac2(0x22d)]=_0x5adac2(0x1a6);const _0x1ae0b8=ne,_0x269b3c=K-lt,_0xe89258=Re-0x2*ne;if(_0x4a2ac3>_0xe89258){let _0x59a322='',_0x518d18=0x0;for(const _0x6d4f7 of _0x5c6d2b){const _0x43da53=_0x52564f[_0x5adac2(0x305)](_0x6d4f7)['width'];if(_0x518d18+_0x43da53<=_0xe89258-_0x52564f[_0x5adac2(0x305)](_0x5adac2(0x2d5))[_0x5adac2(0x131)])_0x59a322+=_0x6d4f7,_0x518d18+=_0x43da53;else{_0x59a322+=_0x5adac2(0x2d5);break;}}_0x52564f[_0x5adac2(0x2b0)](_0x59a322,_0x1ae0b8,_0x269b3c);}else _0x52564f[_0x5adac2(0x2b0)](_0x5c6d2b,_0x1ae0b8,_0x269b3c);_0x52564f[_0x5adac2(0x1a1)]();}[_0xabc553(0x1c7)](_0x3a61b0){ee['drawWith'](_0x3a61b0,this);}}const re='collab-text-anchor-',ht=_0xabc553(0x169),ut=_0xabc553(0x26d),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0xabc553(0xf1);class De{constructor(_0x1af0f8,_0x6144d4,_0xae0287,_0x469a4b){const _0x42c883=_0xabc553;h(this,_0x42c883(0x32d),[]),h(this,_0x42c883(0x178),null),h(this,_0x42c883(0x2aa),null),h(this,_0x42c883(0x2dd),null),h(this,_0x42c883(0x228),null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x1af0f8,this['_scene']=_0x6144d4,this[_0x42c883(0x2d4)]=_0xae0287,this[_0x42c883(0x240)]=_0x469a4b,this[_0x42c883(0x25c)]());}set[_0xabc553(0x265)](_0x2de2ee){const _0x5bebd0=_0xabc553;_0x2de2ee?(this['_anchorDot']&&this[_0x5bebd0(0x2dd)][_0x5bebd0(0x1b3)](),this[_0x5bebd0(0x2aa)]&&this[_0x5bebd0(0x2aa)][_0x5bebd0(0x34e)]()):(this[_0x5bebd0(0x2dd)]&&this[_0x5bebd0(0x2dd)][_0x5bebd0(0x34e)](),this[_0x5bebd0(0x2aa)]&&this['_textBubble'][_0x5bebd0(0x1b3)]());}[_0xabc553(0x34d)](){const _0x581433=_0xabc553;for(const _0x169b1b of this['_shapes'])_0x169b1b[_0x581433(0x34d)]();this[_0x581433(0x2aa)]&&this[_0x581433(0x2aa)][_0x581433(0x34d)](),this['_anchorDot']&&this[_0x581433(0x2dd)][_0x581433(0x34d)](),this[_0x581433(0x178)]&&this['_anchor'][_0x581433(0x34d)](),this[_0x581433(0x227)]&&this['_eventUnsubscribe']();}['_render'](){const _0x221c0f=_0xabc553;var _0x4fb0f2;const {_docSkeleton:_0x2cf112,_document:_0x234af5}=this,{color:_0x34a8a5,name:_0x1e78fd,ranges:_0x4ecaa2}=this[_0x221c0f(0x117)],_0x4bbab1=_0x234af5['getOffsetConfig'](),{docsLeft:_0x15f61f,docsTop:_0x3499c2}=_0x4bbab1,_0x47b588=new E['NodePositionConvertToCursor'](_0x4bbab1,_0x2cf112);for(const {startOffset:_0x353c64,endOffset:_0x539e28,rangeType:_0x20f719,segmentId:_0x3f6d3e,segmentPage:_0xa7e175,collapsed:_0x4d29fc,isActive:_0x1e68a0}of _0x4ecaa2){const _0x266dda=_0x2cf112[_0x221c0f(0x1b8)](_0x353c64,!0x0,_0x3f6d3e,_0xa7e175);let _0x4b4025=_0x2cf112[_0x221c0f(0x1b8)](_0x539e28,!0x0,_0x3f6d3e,_0xa7e175);if(_0x4b4025==null&&(_0x4b4025=_0x2cf112[_0x221c0f(0x1b8)](_0x539e28-0x1,!0x1,_0x3f6d3e,_0xa7e175)),_0x1e68a0){const {contentBoxPointGroup:_0x6a55b0}=_0x47b588[_0x221c0f(0x334)](_0x4b4025,_0x4b4025);if(_0x6a55b0[_0x221c0f(0x24f)]===0x0)continue;this['_drawAnchor'](_0x34a8a5,_0x6a55b0,_0x15f61f,_0x3499c2,_0x1e78fd),this[_0x221c0f(0x227)]=this[_0x221c0f(0x28b)]();}if(_0x266dda&&_0x4b4025){if(_0x20f719===a[_0x221c0f(0x1e3)]['RECT']){const _0x420df4=new E['NodePositionConvertToRectRange'](_0x4bbab1,_0x2cf112),{pointGroup:_0x4a87ee}=(_0x4fb0f2=_0x420df4['getRangePointData'](_0x266dda,_0x4b4025))!=null?_0x4fb0f2:{};if(_0x4a87ee==null||_0x4a87ee[_0x221c0f(0x24f)]===0x0)continue;this[_0x221c0f(0x365)](_0x34a8a5,_0x4a87ee,_0x15f61f,_0x3499c2);}else{if(!_0x4d29fc){const {borderBoxPointGroup:_0x4ce6ff}=_0x47b588[_0x221c0f(0x334)](_0x266dda,_0x4b4025);if(_0x4ce6ff['length']===0x0)continue;this[_0x221c0f(0x1df)](_0x34a8a5,_0x4ce6ff,_0x15f61f,_0x3499c2);}}}}}[_0xabc553(0x16d)](_0x45d42f,_0x291f83,_0x334e4c,_0x301d64,_0xb32ecf){const _0x5ced1e=_0xabc553,_0x374b4e=this[_0x5ced1e(0x278)](_0x291f83),{left:_0x5f6f07,top:_0x304f54,height:_0xaae877}=_0x374b4e,_0x40ab36=this[_0x5ced1e(0x1d6)](),_0x55ff68=It/_0x40ab36,_0x151ae2=new p['Rect'](re+a[_0x5ced1e(0x28f)][_0x5ced1e(0x26f)](k),{'left':_0x5f6f07+_0x334e4c-_0x55ff68,'top':_0x304f54+_0x301d64,'height':_0xaae877,'width':dt,'fill':_0x45d42f||p[_0x5ced1e(0x239)](a[_0x5ced1e(0x2ee)]['black'],0x0),'strokeWidth':_0x55ff68,'stroke':St,'evented':!0x0});this['_anchor']=_0x151ae2,this[_0x5ced1e(0x25e)][_0x5ced1e(0xf3)](_0x151ae2,E['TEXT_RANGE_LAYER_INDEX']);const _0x5f2a1b=new p[(_0x5ced1e(0x1d5))](re+a[_0x5ced1e(0x28f)][_0x5ced1e(0x26f)](k),{'left':_0x5f6f07+_0x334e4c-_0x55ff68,'top':_0x304f54+_0x301d64-oe/0x2,'height':oe,'width':oe,'fill':_0x45d42f||p[_0x5ced1e(0x239)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x45d42f||p['getColor'](a['COLORS'][_0x5ced1e(0x168)],0x0),'evented':!0x1});this[_0x5ced1e(0x2dd)]=_0x5f2a1b,this[_0x5ced1e(0x25e)][_0x5ced1e(0xf3)](_0x5f2a1b,E[_0x5ced1e(0x126)]);const _0x52a0af=new ee(re+a[_0x5ced1e(0x28f)][_0x5ced1e(0x26f)](k),{'left':_0x5f6f07+_0x334e4c-_0x55ff68,'top':_0x304f54+_0x301d64-K,'text':_0xb32ecf,'color':_0x45d42f});this[_0x5ced1e(0x2aa)]=_0x52a0af,this['_scene']['addObject'](_0x52a0af,E[_0x5ced1e(0x126)]),this[_0x5ced1e(0x265)]=!0x1;}[_0xabc553(0x28b)](){const _0x4c196e=_0xabc553,_0x847150=this[_0x4c196e(0x178)][_0x4c196e(0x2d3)][_0x4c196e(0x194)](()=>{const _0x3199bc=_0x4c196e;this[_0x3199bc(0x265)]=!0x0;}),_0x468376=this[_0x4c196e(0x178)][_0x4c196e(0xfa)]['subscribeEvent'](()=>{const _0xf8e7b4=_0x4c196e;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0xf8e7b4(0x228)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3f31e8=_0x4c196e;_0x847150[_0x3f31e8(0x19d)](),_0x468376[_0x3f31e8(0x19d)]();};}['_drawTextRange'](_0x622658,_0x264996,_0x4d4ea9,_0x14cbe6){const _0x56f1fb=_0xabc553,_0x3b7f7e=new a['ColorKit'](_0x622658)[_0x56f1fb(0x2d9)](0.2)['toRgbString'](),_0x1b91eb=new p[(_0x56f1fb(0x1bb))](ht+a[_0x56f1fb(0x28f)][_0x56f1fb(0x26f)](k),{'pointsGroup':_0x264996,'fill':_0x3b7f7e||p[_0x56f1fb(0x239)](a[_0x56f1fb(0x2ee)]['black'],0.2),'left':_0x4d4ea9,'top':_0x14cbe6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x56f1fb(0x317)](_0x1b91eb),this['_scene']['addObject'](_0x1b91eb,E[_0x56f1fb(0x126)]);}[_0xabc553(0x365)](_0xe695b4,_0x2b27a1,_0x21dbd8,_0x1740fe){const _0x598274=_0xabc553,_0x3c235c=new a[(_0x598274(0x35f))](_0xe695b4)['setAlpha'](0.2)[_0x598274(0x251)](),_0x26fcd9=new p[(_0x598274(0x1bb))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x2b27a1,'fill':_0x3c235c||p[_0x598274(0x239)](a[_0x598274(0x2ee)][_0x598274(0x168)],0.2),'left':_0x21dbd8,'top':_0x1740fe,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x598274(0x317)](_0x26fcd9),this[_0x598274(0x25e)][_0x598274(0xf3)](_0x26fcd9,E['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x4c6521){const _0x3f7a9=_0x4c6521[0x0],_0x2a1f70=_0x3f7a9[0x0],_0x487c35=_0x3f7a9[0x2],{x:_0x13f824,y:_0x1e78e9}=_0x2a1f70,{x:_0x145f52,y:_0x234882}=_0x487c35;return{'left':_0x13f824,'top':_0x1e78e9,'width':_0x145f52-_0x13f824,'height':_0x234882-_0x1e78e9};}[_0xabc553(0x1d6)](){const _0x2fe6df=_0xabc553,{scaleX:_0x179476,scaleY:_0x4a4841}=this[_0x2fe6df(0x25e)][_0x2fe6df(0x154)]();return Math[_0x2fe6df(0x190)](_0x179476,_0x4a4841);}}var ft=Object['getOwnPropertyDescriptor'],vt=(_0x2ef2a6,_0x189cb5,_0x52b371,_0x443a48)=>{const _0x3b047e=_0xabc553;for(var _0x1297bf=_0x443a48>0x1?void 0x0:_0x443a48?ft(_0x189cb5,_0x52b371):_0x189cb5,_0x4d3d20=_0x2ef2a6[_0x3b047e(0x24f)]-0x1,_0xa34f12;_0x4d3d20>=0x0;_0x4d3d20--)(_0xa34f12=_0x2ef2a6[_0x4d3d20])&&(_0x1297bf=_0xa34f12(_0x1297bf)||_0x1297bf);return _0x1297bf;},W=(_0x43a6d4,_0x2b98b2)=>(_0x3c425b,_0x1f40bb)=>_0x2b98b2(_0x3c425b,_0x1f40bb,_0x43a6d4);let fe=class extends a[_0xabc553(0x1e9)]{constructor(_0x7658cc,_0x1a3574,_0x5c9871,_0x7c461c,_0x1692a7){const _0x47727a=_0xabc553;super(),h(this,_0x47727a(0x1b4),[]),h(this,'_cursors',[]),(this[_0x47727a(0x1e2)]=_0x7658cc,this[_0x47727a(0x158)]=_0x1a3574,this[_0x47727a(0x11b)]=_0x5c9871,this[_0x47727a(0x2b6)]=_0x7c461c,this[_0x47727a(0x2c3)]=_0x1692a7,this[_0x47727a(0x364)]());}[_0xabc553(0x364)](){const _0x92fa81=_0xabc553,_0x119be1=this['_context']['unitId'],_0x467888=this[_0x92fa81(0x158)];this['disposeWithMe'](d[_0x92fa81(0x121)]([this[_0x92fa81(0x11b)][_0x92fa81(0x295)](_0x119be1),this[_0x92fa81(0x2c3)][_0x92fa81(0x219)]])[_0x92fa81(0x30b)]($[_0x92fa81(0x17a)](([_0x2a6209,_0x550d7e])=>({'skeleton':_0x467888[_0x92fa81(0x1aa)](),'cursors':[..._0x2a6209[_0x92fa81(0x20a)]()][_0x92fa81(0xf4)](_0x301aa8=>({..._0x301aa8,'color':this[_0x92fa81(0x2c3)][_0x92fa81(0x307)](_0x301aa8['color'])}))})))[_0x92fa81(0x29b)](_0x5acd6e=>{const _0xefe4ba=_0x92fa81;if(this[_0xefe4ba(0x1b5)](),_0x5acd6e){const {skeleton:_0x3966d0,cursors:_0x5e54ea}=_0x5acd6e;this[_0xefe4ba(0x10e)](_0x3966d0,_0x5e54ea);}})),this[_0x92fa81(0x2f9)](),this[_0x92fa81(0x161)]();}[_0xabc553(0x10e)](_0x523e8b,_0x46dd0e){const _0x12adcd=_0xabc553,{scene:_0x26894e,mainComponent:_0xb266c8}=this[_0x12adcd(0x1e2)],_0x4eb9ca=_0x46dd0e[_0x12adcd(0x17a)](_0x5bd61c=>new De(_0x5bd61c,_0x26894e,_0x523e8b,_0xb266c8));this[_0x12adcd(0x1b4)]=_0x4eb9ca,this['_cursors']=_0x46dd0e;}[_0xabc553(0x17d)](){const _0x4e30c3=_0xabc553;this[_0x4e30c3(0x1b5)]();const {scene:_0x33d2f7,mainComponent:_0xc6724f}=this[_0x4e30c3(0x1e2)],_0x64fd17=this['_docSkeletonManagerService'][_0x4e30c3(0x1aa)](),_0x30ad72=this[_0x4e30c3(0x111)][_0x4e30c3(0x17a)](_0x279c2b=>new De(_0x279c2b,_0x33d2f7,_0x64fd17,_0xc6724f));this[_0x4e30c3(0x1b4)]=_0x30ad72;}[_0xabc553(0x1b5)](){const _0x51510f=_0xabc553;this[_0x51510f(0x1b4)]['forEach'](_0xd48090=>_0xd48090[_0x51510f(0x34d)]()),this[_0x51510f(0x1b4)]=[];}[_0xabc553(0x161)](){const _0x33583e=_0xabc553,_0x56aa36=[E[_0x33583e(0x15b)]['id']];this[_0x33583e(0x225)](this['_commandService'][_0x33583e(0x2a8)](_0x53b777=>{const _0x239f6c=_0x33583e;_0x56aa36[_0x239f6c(0x1fd)](_0x53b777['id'])&&_0x53b777[_0x239f6c(0xfc)][_0x239f6c(0x29d)]===this[_0x239f6c(0x1e2)][_0x239f6c(0x29d)]&&this[_0x239f6c(0x17d)]();}));}['_initResize'](){const _0x20767e=_0xabc553;this['disposeWithMe'](a[_0x20767e(0x2af)](this[_0x20767e(0x1e2)][_0x20767e(0x2ac)][_0x20767e(0x2e1)])[_0x20767e(0x30b)]($[_0x20767e(0x262)](_0xc0e650=>_0xc0e650[_0x20767e(0x309)]===p[_0x20767e(0x1a4)]['resize']),$[_0x20767e(0x2a9)](0x10))[_0x20767e(0x29b)](()=>{this['_refreshCollabCursors']();}));}};fe=vt([W(0x1,a[_0xabc553(0xf6)](Y[_0xabc553(0x24d)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a['Inject'](a[_0xabc553(0x261)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0xabc553(0x2de)]{constructor(_0x4aba03,_0x47cfa7){const _0x3e7f32=_0xabc553;super(_0x4aba03,_0x47cfa7),h(this,_0x3e7f32(0x187)),h(this,_0x3e7f32(0x2df),!0x1),h(this,_0x3e7f32(0x11c)),h(this,'_name',''),h(this,_0x3e7f32(0x346),'top'),h(this,_0x3e7f32(0x289)),(_0x47cfa7&&this[_0x3e7f32(0x1e8)](_0x47cfa7),this[_0x3e7f32(0x2d3)][_0x3e7f32(0x194)](()=>this[_0x3e7f32(0x1e8)]({'hovered':!0x0})),this[_0x3e7f32(0xfa)][_0x3e7f32(0x194)](()=>this[_0x3e7f32(0x1e8)]({'hovered':!0x1})));}[_0xabc553(0x1e8)](_0x2be0a6){const _0x2ff406=_0xabc553;var _0x111a24,_0x2ea060,_0x25ef83,_0x4e1ea6,_0x3aacbf,_0x4c0bef;this[_0x2ff406(0x187)]=(_0x111a24=_0x2be0a6['color'])!=null?_0x111a24:this[_0x2ff406(0x187)],this[_0x2ff406(0x2df)]=(_0x2ea060=_0x2be0a6['hovered'])!=null?_0x2ea060:this[_0x2ff406(0x2df)],this[_0x2ff406(0x11c)]=(_0x25ef83=_0x2be0a6[_0x2ff406(0x122)])!=null?_0x25ef83:this[_0x2ff406(0x11c)],this[_0x2ff406(0x245)]=(_0x4e1ea6=_0x2be0a6['name'])!=null?_0x4e1ea6:this[_0x2ff406(0x245)],this['_labelPosition']=(_0x3aacbf=_0x2be0a6[_0x2ff406(0x15f)])!=null?_0x3aacbf:this[_0x2ff406(0x346)],this[_0x2ff406(0x289)]=(_0x4c0bef=_0x2be0a6['backgroundColor'])!=null?_0x4c0bef:this['_backgroundColor'],this[_0x2ff406(0x2c6)]({'width':_0x2be0a6[_0x2ff406(0x131)],'height':_0x2be0a6['height']});}[_0xabc553(0x333)](_0x4d0b69){const _0x206349=_0xabc553,{row:_0x420a22,column:_0x46ccca}=_0x4d0b69;if(_0x420a22>=this[_0x206349(0x11c)][_0x206349(0x326)]&&_0x420a22<=this[_0x206349(0x11c)][_0x206349(0x10c)]&&_0x46ccca>=this[_0x206349(0x11c)][_0x206349(0x29c)]&&_0x46ccca<=this[_0x206349(0x11c)][_0x206349(0x2a3)]){this[_0x206349(0x1e8)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x536562){return!0x1;}[_0xabc553(0x1c7)](_0x563715){const _0x143417=_0xabc553;p[_0x143417(0x1d5)]['drawWith'](_0x563715,{'width':this['width'],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x143417(0x187)],'evented':!0x1,'fill':this[_0x143417(0x289)]}),this[_0x143417(0x2df)]&&(_0x563715[_0x143417(0x1ee)](),_0x563715[_0x143417(0x257)](0x1,0x0,0x0,0x1,this['width'],this[_0x143417(0x346)]===_0x143417(0x33a)?0x0:-0x14),ee[_0x143417(0x23c)](_0x563715,{'text':this['_name'],'color':this[_0x143417(0x187)]}),_0x563715[_0x143417(0x1a1)]());}}var Ct=Object[_0xabc553(0x170)],pt=(_0x59e638,_0x3f64b1,_0x591d6f,_0x4b03a4)=>{const _0x298161=_0xabc553;for(var _0x3bf1ce=_0x4b03a4>0x1?void 0x0:_0x4b03a4?Ct(_0x3f64b1,_0x591d6f):_0x3f64b1,_0x1dfea2=_0x59e638[_0x298161(0x24f)]-0x1,_0x39b8cc;_0x1dfea2>=0x0;_0x1dfea2--)(_0x39b8cc=_0x59e638[_0x1dfea2])&&(_0x3bf1ce=_0x39b8cc(_0x3bf1ce)||_0x3bf1ce);return _0x3bf1ce;},ae=(_0x4ea69f,_0x183401)=>(_0x451fba,_0x37b983)=>_0x183401(_0x451fba,_0x37b983,_0x4ea69f);const Et=0x1389;let ve=class extends a[_0xabc553(0x1e9)]{constructor(_0xee5132,_0x4abf13,_0x46e2b5,_0x48c362){const _0x20f0c2=_0xabc553;super(),h(this,_0x20f0c2(0x111),new Set()),h(this,'_lastPointer',null),(this[_0x20f0c2(0x1e2)]=_0xee5132,this[_0x20f0c2(0x315)]=_0x4abf13,this['_collabCursorController']=_0x46e2b5,this['_themeService']=_0x48c362,this[_0x20f0c2(0x364)]());}[_0xabc553(0x364)](){const _0xb048fb=_0xabc553;this[_0xb048fb(0x315)][_0xb048fb(0x31f)][_0xb048fb(0x30b)]($['takeUntil'](this[_0xb048fb(0x19b)]),$['switchMap'](_0x441f12=>{const _0x4e58a0=_0xb048fb;if(_0x441f12){const _0x56a9de=_0x441f12[_0x4e58a0(0x175)];return d[_0x4e58a0(0x121)](this[_0x4e58a0(0x11b)][_0x4e58a0(0x295)](this[_0x4e58a0(0x1e2)]['unitId']),this['_themeService']['currentTheme$'])[_0x4e58a0(0x30b)]($[_0x4e58a0(0x17a)](([_0x27a638,_0x32226a])=>{const _0x50ebc4=_0x4e58a0,_0x4d909a=new Map();return _0x27a638[_0x50ebc4(0x1b9)]((_0x16171e,_0x3ed1e5)=>{const _0x1b0123=_0x50ebc4;if(_0x16171e[_0x1b0123(0x24a)]===_0x56a9de){const _0x3c004d={..._0x16171e};_0x3c004d['color']=this[_0x1b0123(0x2c3)][_0x1b0123(0x307)](_0x16171e[_0x1b0123(0x213)]),_0x4d909a['set'](_0x3ed1e5,_0x3c004d);}}),{'skeleton':_0x441f12,'cursors':_0x4d909a};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0xb048fb(0x29b)](({skeleton:_0x327392,cursors:_0xf103d5})=>{const _0x5243d5=_0xb048fb;this[_0x5243d5(0x1b5)](),_0x327392&&this[_0x5243d5(0x10e)](_0x327392,_0xf103d5);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0xb048fb(0x29b)](_0x371c75=>{const _0x5db13f=_0xb048fb;if(_0x371c75==null)return;const {skeleton:_0x28f494}=_0x371c75,{scene:_0x3b9e8b}=this['_context'];_0x3b9e8b[_0x5db13f(0x193)][_0x5db13f(0x194)](a[_0x5db13f(0x2ce)](_0x22a648=>{const _0x5bb9ae=_0x5db13f;var _0x284979,_0x29d993;const {offsetX:_0x296e43,offsetY:_0xfe0495}=_0x22a648,{x:_0x7f9479,y:_0x35cbd8}=_0x3b9e8b['getRelativeToViewportCoord'](p[_0x5bb9ae(0x2e8)][_0x5bb9ae(0x211)]([_0x296e43,_0xfe0495])),{scaleX:_0xec2659,scaleY:_0x18e3a0}=_0x3b9e8b[_0x5bb9ae(0x154)](),_0x5059c7=_0x3b9e8b[_0x5bb9ae(0x1c0)](p[_0x5bb9ae(0x362)]['VIEW_MAIN']),_0x4934eb=_0x3b9e8b[_0x5bb9ae(0x1bf)](p[_0x5bb9ae(0x2e8)][_0x5bb9ae(0x211)]([_0x7f9479,_0x35cbd8]),_0x5059c7),_0x3ffcfe=_0x28f494[_0x5bb9ae(0x1c1)](_0x296e43,_0xfe0495,_0xec2659,_0x18e3a0,_0x4934eb);((_0x284979=this[_0x5bb9ae(0x2e4)])==null?void 0x0:_0x284979[_0x5bb9ae(0x340)])===_0x3ffcfe[_0x5bb9ae(0x340)]&&((_0x29d993=this[_0x5bb9ae(0x2e4)])==null?void 0x0:_0x29d993[_0x5bb9ae(0x10d)])===_0x3ffcfe[_0x5bb9ae(0x10d)]||this[_0x5bb9ae(0x111)][_0x5bb9ae(0x1b9)](_0x552fa6=>{const _0x4598b0=_0x5bb9ae;_0x552fa6[_0x4598b0(0x333)](_0x3ffcfe);});},0x64));});}[_0xabc553(0x10e)](_0x56d266,_0x2dbd16){const _0x574276=_0xabc553;var _0x53f41f;const _0x3ab62b=(_0x53f41f=this[_0x574276(0x315)]['getCurrent']())==null?void 0x0:_0x53f41f[_0x574276(0x223)];if(!_0x3ab62b)return;const _0x4d9890=this[_0x574276(0x27e)]();if(!_0x4d9890)return;this[_0x574276(0x111)][_0x574276(0x1b9)](_0x207dc1=>{const _0xe0fc62=_0x574276;_0x207dc1[_0xe0fc62(0x283)]();});const {scene:_0x3432ca}=_0x4d9890,_0xf997e3=bt(Array[_0x574276(0x2e5)](_0x2dbd16[_0x574276(0x20a)]()))[_0x574276(0x17a)](_0x5a2884=>{const _0x47f78b=_0x574276,{color:_0x461947,range:_0x15ca7d,name:_0x1ac4cd,selection:_0x7e5b6d,sheetID:_0x22cc21}=_0x5a2884,{startColumn:_0x7d4d78,startRow:_0x5e277b,endColumn:_0x4f4d77,endRow:_0x5b5f86}=_0x15ca7d,_0x4e7157=X[_0x47f78b(0x14b)](_0x5e277b,_0x7d4d78,_0x3432ca,_0x3ab62b),_0x401976=X[_0x47f78b(0x14b)](_0x5b5f86,_0x4f4d77,_0x3432ca,_0x3ab62b),{columnHeaderHeightAndMarginTop:_0x4735af}=_0x3ab62b,{startX:_0x154dcb,startY:_0x23b13d}=_0x4e7157,{endX:_0x1aff4f,endY:_0xbd4e0b}=_0x401976,_0x5da8f1=_0x1aff4f-_0x154dcb,_0x4c1fdc=_0xbd4e0b-_0x23b13d,_0xcbb0aa={'labelPosition':_0x23b13d-_0x4735af>=K?_0x47f78b(0x2ba):_0x47f78b(0x33a),'sheetID':_0x22cc21,'range':_0x15ca7d,'color':_0x461947,'name':_0x1ac4cd,'selection':_0x7e5b6d,'left':_0x154dcb,'top':_0x23b13d,'width':_0x5da8f1,'height':_0x4c1fdc,'evented':!0x1,'zIndex':Et};return new we(_0x1ac4cd,_0xcbb0aa);});_0x3432ca['addObjects'](_0xf997e3,gt),this[_0x574276(0x111)]=new Set(_0xf997e3);}[_0xabc553(0x1b5)](){const _0x51b428=_0xabc553;var _0xe596ef;(_0xe596ef=this['_cursors'])==null||_0xe596ef[_0x51b428(0x1b9)](_0x31d4cd=>_0x31d4cd['dispose']());}[_0xabc553(0x27e)](){const _0x38d536=_0xabc553;return X[_0x38d536(0x246)](this['_context'][_0x38d536(0x34f)],this[_0x38d536(0x1e2)]);}};ve=pt([ae(0x1,a[_0xabc553(0xf6)](X[_0xabc553(0x16a)])),ae(0x2,a[_0xabc553(0xf6)](x)),ae(0x3,a['Inject'](a[_0xabc553(0x261)]))],ve);function bt(_0xc8fdb5){const _0x31f38e=_0xabc553,_0x2ac3ae=new Map();return _0xc8fdb5[_0x31f38e(0x1b9)](_0x582d68=>{const _0x5e944c=_0x31f38e;if(_0x2ac3ae[_0x5e944c(0x17f)](_0x582d68['selection'])){const _0x30d6a0=_0x2ac3ae[_0x5e944c(0x299)](_0x582d68[_0x5e944c(0x160)]);_0x30d6a0[_0x5e944c(0x1f7)]+=',\x20'+_0x582d68[_0x5e944c(0x1f7)];}else _0x2ac3ae[_0x5e944c(0x1d9)](_0x582d68[_0x5e944c(0x160)],_0x582d68);}),Array[_0x31f38e(0x2e5)](_0x2ac3ae[_0x31f38e(0x20a)]());}var b=function(){const _0x48cedb=_0xabc553;return b=Object[_0x48cedb(0x2c1)]||function(_0x13899a){const _0x97b277=_0x48cedb;for(var _0x2901e0,_0x20d650=0x1,_0x17302=arguments[_0x97b277(0x24f)];_0x20d650<_0x17302;_0x20d650++){_0x2901e0=arguments[_0x20d650];for(var _0xc39bd1 in _0x2901e0)Object[_0x97b277(0x23e)][_0x97b277(0x226)]['call'](_0x2901e0,_0xc39bd1)&&(_0x13899a[_0xc39bd1]=_0x2901e0[_0xc39bd1]);}return _0x13899a;},b[_0x48cedb(0x259)](this,arguments);},Ot=function(_0x3b5f6f,_0x44ff76){const _0x481ccf=_0xabc553;var _0x16001d={};for(var _0x2f887f in _0x3b5f6f)Object[_0x481ccf(0x23e)][_0x481ccf(0x226)][_0x481ccf(0xf8)](_0x3b5f6f,_0x2f887f)&&_0x44ff76['indexOf'](_0x2f887f)<0x0&&(_0x16001d[_0x2f887f]=_0x3b5f6f[_0x2f887f]);if(_0x3b5f6f!=null&&typeof Object[_0x481ccf(0x1a3)]==_0x481ccf(0x293)){for(var _0x10c23c=0x0,_0x2f887f=Object[_0x481ccf(0x1a3)](_0x3b5f6f);_0x10c23c<_0x2f887f[_0x481ccf(0x24f)];_0x10c23c++)_0x44ff76[_0x481ccf(0x27f)](_0x2f887f[_0x10c23c])<0x0&&Object[_0x481ccf(0x23e)][_0x481ccf(0x324)][_0x481ccf(0xf8)](_0x3b5f6f,_0x2f887f[_0x10c23c])&&(_0x16001d[_0x2f887f[_0x10c23c]]=_0x3b5f6f[_0x2f887f[_0x10c23c]]);}return _0x16001d;},pe=M[_0xabc553(0x2bf)](function(_0x385df6,_0x23d68a){const _0x100f57=_0xabc553;var _0x4203eb=_0x385df6[_0x100f57(0x166)],_0x3c9e68=_0x385df6['id'],_0x3764d4=_0x385df6[_0x100f57(0x106)],_0x12aaff=_0x385df6[_0x100f57(0x2dc)],_0x5f0db3=Ot(_0x385df6,[_0x100f57(0x166),'id',_0x100f57(0x106),'extend']),_0x36db4f=_0x100f57(0x2cb)[_0x100f57(0x2cd)](_0x3c9e68,'\x20')[_0x100f57(0x2cd)](_0x3764d4||'')[_0x100f57(0x19c)](),_0x5f015a=M['useRef']('_'[_0x100f57(0x2cd)](Dt()));return Ae(_0x4203eb,''['concat'](_0x3c9e68),{'defIds':_0x4203eb[_0x100f57(0x237)],'idSuffix':_0x5f015a['current']},b({'ref':_0x23d68a,'className':_0x36db4f},_0x5f0db3),_0x12aaff);});function Ae(_0x388485,_0x39d9ed,_0x2ed9b5,_0x2ccadb,_0x56104b){const _0x33b489=_0xabc553;return M[_0x33b489(0x100)](_0x388485[_0x33b489(0x266)],b(b({'key':_0x39d9ed},Tt(_0x388485,_0x2ed9b5,_0x56104b)),_0x2ccadb),(Rt(_0x388485,_0x2ed9b5)[_0x33b489(0x1d3)]||[])[_0x33b489(0x17a)](function(_0x1a4538,_0x277e31){const _0x3ca764=_0x33b489;return Ae(_0x1a4538,''[_0x3ca764(0x2cd)](_0x39d9ed,'-')[_0x3ca764(0x2cd)](_0x388485[_0x3ca764(0x266)],'-')[_0x3ca764(0x2cd)](_0x277e31),_0x2ed9b5,void 0x0,_0x56104b);}));}function Tt(_0x486e30,_0x4780b1,_0xe97fd4){const _0x197e7f=_0xabc553;var _0x3d33fe=b({},_0x486e30[_0x197e7f(0x174)]);_0xe97fd4!=null&&_0xe97fd4[_0x197e7f(0x180)]&&_0x3d33fe[_0x197e7f(0xf7)]===_0x197e7f(0x180)&&(_0x3d33fe[_0x197e7f(0xf7)]=_0xe97fd4[_0x197e7f(0x180)]),_0x486e30[_0x197e7f(0x266)]===_0x197e7f(0x1ed)&&_0x3d33fe['id']&&(_0x3d33fe['id']=_0x3d33fe['id']+_0x4780b1[_0x197e7f(0x179)]),Object[_0x197e7f(0x16c)](_0x3d33fe)[_0x197e7f(0x1b9)](function(_0x28c525){const _0x266f0d=_0x197e7f;var _0x54988b=_0x28c525[0x0],_0x44528a=_0x28c525[0x1];_0x54988b==='mask'&&typeof _0x44528a==_0x266f0d(0x2b8)&&(_0x3d33fe[_0x54988b]=_0x44528a['replace'](/url\(#(.*)\)/,'url(#$1'[_0x266f0d(0x2cd)](_0x4780b1[_0x266f0d(0x179)],')')));});var _0xa7ddf2=_0x4780b1[_0x197e7f(0x237)];return!_0xa7ddf2||_0xa7ddf2[_0x197e7f(0x24f)]===0x0||(_0x486e30['tag']===_0x197e7f(0x204)&&_0x3d33fe[_0x197e7f(0x191)]&&(_0x3d33fe['xlink:href']=_0x3d33fe['xlink:href']+_0x4780b1[_0x197e7f(0x179)]),Object[_0x197e7f(0x16c)](_0x3d33fe)[_0x197e7f(0x1b9)](function(_0x318fc4){const _0x50a269=_0x197e7f;var _0x447910=_0x318fc4[0x0],_0x399624=_0x318fc4[0x1];typeof _0x399624==_0x50a269(0x2b8)&&(_0x3d33fe[_0x447910]=_0x399624[_0x50a269(0x20e)](/url\(#(.*)\)/,'url(#$1'[_0x50a269(0x2cd)](_0x4780b1[_0x50a269(0x179)],')')));})),_0x3d33fe;}function Rt(_0x9b0490,_0x10ae09){const _0x3cf18b=_0xabc553;var _0x5cb687,_0x4c2dd9=_0x10ae09[_0x3cf18b(0x237)];return!_0x4c2dd9||_0x4c2dd9['length']===0x0?_0x9b0490:_0x9b0490[_0x3cf18b(0x266)]===_0x3cf18b(0x358)&&(!((_0x5cb687=_0x9b0490['children'])===null||_0x5cb687===void 0x0)&&_0x5cb687['length'])?b(b({},_0x9b0490),{'children':_0x9b0490[_0x3cf18b(0x1d3)][_0x3cf18b(0x17a)](function(_0x5a7259){const _0x40ffef=_0x3cf18b;return typeof _0x5a7259[_0x40ffef(0x174)]['id']==_0x40ffef(0x2b8)&&_0x4c2dd9&&_0x4c2dd9[_0x40ffef(0x1fd)](_0x5a7259['attrs']['id'])?b(b({},_0x5a7259),{'attrs':b(b({},_0x5a7259[_0x40ffef(0x174)]),{'id':_0x5a7259[_0x40ffef(0x174)]['id']+_0x10ae09[_0x40ffef(0x179)]})}):_0x5a7259;})}):_0x9b0490;}function Dt(){const _0x422eb5=_0xabc553;return Math[_0x422eb5(0x222)]()[_0x422eb5(0x15c)](0x24)[_0x422eb5(0x144)](0x2,0x8);}pe[_0xabc553(0x15a)]='UniverIcon';var Ut={'tag':_0xabc553(0x24c),'attrs':{'xmlns':_0xabc553(0x2e7),'fill':_0xabc553(0x329),'viewBox':_0xabc553(0x361),'width':_0xabc553(0x14f),'height':_0xabc553(0x14f)},'children':[{'tag':'g','attrs':{'clipPath':_0xabc553(0x350)},'children':[{'tag':_0xabc553(0x367),'attrs':{'stroke':_0xabc553(0x368),'d':_0xabc553(0x33f),'strokeLinecap':_0xabc553(0x285),'strokeLinejoin':_0xabc553(0x285),'strokeWidth':1.2}}]},{'tag':_0xabc553(0x358),'attrs':{},'children':[{'tag':_0xabc553(0x360),'attrs':{'id':_0xabc553(0x1ac)},'children':[{'tag':_0xabc553(0x367),'attrs':{'fill':_0xabc553(0x29e),'d':_0xabc553(0xff)}}]}]}],'defIds':[_0xabc553(0x1ac)]},ye=M[_0xabc553(0x2bf)](function(_0x4f3afe,_0x291ffe){const _0x13aa0c=_0xabc553;return M[_0x13aa0c(0x100)](pe,Object[_0x13aa0c(0x2c1)]({},_0x4f3afe,{'id':_0x13aa0c(0x1cc),'ref':_0x291ffe,'icon':Ut}));});ye[_0xabc553(0x15a)]=_0xabc553(0x31b);function _0x41d8(){const _0x35550c=['_transformHistoryAndStateStack','CHANGESET_REVISION_CONFILICT','setActiveRange','RemoveRowCommandId','_scheduleClearOtherTimer','CLOSE_ROOM','CollaborationUIEventService','_collaborationController','max','xlink:href','getUniverSheetInstance','onPointerMove$','subscribeEvent','getTypeOfUnitAdded$','_status$','arc','init','CollaborationStatus','ILogService','dispose$','trim','unsubscribe','MUTATION','_updateURLWithCurrentState','cursorInfo','restore','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getOwnPropertySymbols','TRANSFORM_CHANGE_OBSERVABLE_TYPE','UniverCollaborationClientUIPlugin','#FFF','_transformPreviousActiveRange','next','debug','getSkeleton','_getSessionTicket','off-line-icon_clip0_910_343','_removeClearOtherTimer','CONFLICT','PY_RUNTIME_SCRIPT_ERROR','_httpService','COMPLETION_FINISHED','SOCKET_FAILED_RETRY','hide','_cursorShapes','_removeCollabCursors','href','getSheetBySheetId','findNodePositionByCharIndex','forEach','580728srFTax','RegularPolygon','transformRemoteChangeset','useCallback','cursorInfo$','getVpScrollXYInfoByPosToVp','getViewport','getCellPositionByOffset','ENSURE_SNAPSHOT_EXECUTION','APPLY_REJECT','executionId','isArray','LICENSE_MAX_UNITS_EXCEEDED','_draw','BrowserCollaborationSocketService','_toggleOffline','handleInsertRow','div','off-line-icon','_handleLeaveEvent','_beforeCloseService','source','redoState','ranges','DocCollaborationEntity','children','univer-flex\x20univer-items-center','Rect','_getScale','m2Prime','yellow.400','set','parse','Unknown\x20user','YUUMI_SUBSCRIPTION_NOT_FOUND','30zUnNaa','transformStateCache','_drawTextRange','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_notificationService','_context','DOC_RANGE_TYPE','disposeUnit','_config','lineTo','getUnitId','setShapeProps','RxDisposable','error','_docTransformIMECacheService','_assignedColors','mask','save','31118RkkCFQ','collaboration.closeRoom','_instanceService','clearTimeout','ALREADY_EXISTS','permission.content','_unitOnClients','_registerRenderDependencies','name','session.collaboration-timeout','collabCursorState$','transformMutationsWithChangeset','ISnapshotServerService','IUIPartsService','includes','_clearOtherTimers','jsxs','SessionStatus','TEXT','Module','subUnitId','use','transformSelections','activeSheet$','NOT_COLLAB','_createSocketURL','isTransformMutationsWithChangesetSuccess','values','toDisposable','_renderManagerService','post','replace','docStateChange$','_startDocCollabCursor','FromArray','NOT_FOUND','color','_localStorageService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PERMISSION_DENIED','LOCAL_CACHE_INTERVAL','currentTheme$','takeUntil','EffectRefRangId','_injector','_memberService','getStateCache','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ACTIVE_UNIT_EVENT_CHANNEL','InsertRangeMoveDownCommandId','random','skeleton','history','disposeWithMe','hasOwnProperty','_eventUnsubscribe','_hideTimer','CommandType','min','ONLINE','add','fillStyle','saveTaskMap','collabStatus.offline','_saveCache','_scheduleHeartbeat','uni.network.url-service','10GExgtc','evenodd','moveTo','INVALID_INVITE_CODE','defIds','registerBeforeClose','getColor','DataLoaderService','/run/','drawWith','MessageType','prototype','WebURLService','_document','_handleEvent','createInstance','YUUMI_RATE_OVER_LIMIT','getMergeData','_name','getSheetObject','CollaborationEvent','registerRenderModule','374793uwLduA','sheetID','complete','svg','DocSkeletonManagerService','DesktopCollaborationStatusDisplayController','length','578480CuPJCx','toRgbString','CollaborationSocketService','newValue','YUUMI_NO_CUBOID_FOR_QUESTION','getConfig','pluginName','transform','_colorAssignService','apply','asObservable','AWAITING','_render','setItem','_scene','disableLocalCache','font','ThemeService','filter','YUUMI_URL_COL_OUT_OF_RANGE','UNIVER_SHEET','_hover','tag','_cursorInfo$','Injector','RevisionService','handleInsertRangeMoveRight','_imageIoService','whenReady','collab-rect-range-','UniverInstanceType','generateRandomId','LICENSE_DISTRO_REJECTED','CollaborationDataLoaderController','SNAPSHOT_HAS_BEEN_REMOVED','_saveTaskMap','urlChange$','useObservable','replaceState','WebBrowserSingleActiveUnitService','_getAnchorBounding','_logService','on-line-icon_clip0_910_349','_refRangeService','SNAPSHOT_INVALID_SNAPSHOT','eventID','_getSheetObject','indexOf','translate(.97)','saveImage','SUBMIT_CHANGESET_TIMEOUT','makeDirty','_session','round','getActiveSheet','wsSessionTicketUrl','deepClone','_backgroundColor','getMember','_handleHover','assignAColorForMemberID','univer-mr-2\x20univer-flex\x20univer-text-xl','Workbook','Tools','setParam','getCurrentUnitForType','JOIN_ROOM_FAILED','function','searchParams','getCollabCursors$','exhaustSavingTask','getMemberID','onRendered','get','setTimeout','subscribe','startColumn','unitId','white','IConfigService','INVITE_CODE_ALREADY_BOUND','184156YbZJmx','_onCursorDelete','endColumn','m1Prime','AWAITING_WITH_PENDING','clearInterval','actions','onCommandExecuted','throttleTime','_textBubble','BehaviorSubject','engine','_initEvent','textRanges','fromEventSubject','fillText','registerRefRange','OFFLINE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getTypeOfUnitDisposed$','unshift','_commandService','_doCreateSocket','string','mutations','top','UNIVER_DOC','on-line-icon','startsWith','_docTransformStateCacheService','forwardRef','SetTextSelectionsOperation','assign','_startSheetCollabCursor','_themeService','_getMergeRange','getUnitStatus$','transformByState','getFocusedUnit','closePath','_cachedData','MOBILE_VERIFY_CODE_MISMATCH','univerjs-icon\x20univerjs-icon-','_collabSessionService','concat','debounce','APPLY_PERMISSION_DENIED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','search','_selfUnitIDs','onPointerEnter$','_docSkeleton','...','syncEditingCollabCursor','popstate','_toggleOnline','setAlpha','OTHER_CLIENT_EDITING','_transformUndoRedoStack','extend','_anchorDot','Shape','_hovered','sessionTicket','onTransformChange$','Error','SheetsSelectionsService','_lastPointer','from','jiqing.500','http://www.w3.org/2000/svg','Vector2','merge','_getSaveTimeout','find','debounceTime','UnitStatus','COLORS','getDocRanges','_initStatusListener','_revisionService','_updateLocalCursor','memberID','green.600','_entityInit$','handleIRemoveCol','clsx','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initResize','storage','DocSelectionManagerService','INVALID_ARGUMENT','UNRECOGNIZED','_online','Warning','HTTPService','location','removeParam','onLocalMutation','TOO_MANY_REQUESTS','measureText','size','getColorFromTheme','touchDependencies','type','UPDATE_CURSOR','pipe','UNDEFINED','YUUMI_UNABLE_LOAD_URL','getUnhiddenWorksheets','DocStateChangeManagerService','_updateSubUnitFromURLParams','invokeId','updateOfflineData','_entities','_disabled','_sheetSkeletonManagerService','HEADER_MENU','push','session.connection-failed','isActive','EMAIL_VERIFY_CODE_MISMATCH','OffLineIcon','IDocClipboardService','YUUMI_AI_RUN_FAILED','_dataLoaderService','currentSkeleton$','_messageService','_ensureSubject','collaboration.single-unit.warning','IUniverInstanceService','propertyIsEnumerable','getCurrentSelections','startRow','OTHER_CLIENTS_EDITING','getCollabEntity$','none','_colorIndex','unitID','session.will-retry','_shapes','464285NDMRWt','UNAUTHENTICATED','WECHAT_HAS_BEEN_BOUND','_send','split','onMouseMove','getRangePointData','_configService','body','collabStatus.conflict','runId','collabStatus.synced','bottom','getItem','handleDeleteRangeMoveLeft','getActiveRange','getUndoRedoMutationParamsCache','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','column','createSocket','origin','defineProperty','reconnect','INVITE_CODE_HAS_BEEN_UES','_labelPosition','DEFAULT_WS_SESSION_TICKET_URL','INTERNAL_ERROR','getParam','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_scheduleSaving','addHandlerCallback','dispose','show','unit','url(#off-line-icon_clip0_910_343)','send','isTransformMutationFailure','InsertRowCommandId','_initStatusComponent','APPLY_REVISION_CONFILICT','CollaborationUIEventId','data','defs','permission.title','IImageIoService','handleMoveRange','shareReplay','handleDeleteRangeMoveUp','loadOfflineData','ColorKit','clipPath','0\x200\x2016\x2016','SHEET_VIEWPORT_KEY','ILocalStorageService','_init','_drawRectRange','code','path','currentColor','_handleJoinEvent','YUUMI_ALL_TABLES_IS_INVALID','Failed','rgba(255,\x20255,\x20255,\x200.01)','roomMembers$','addObject','flatMap','ITransformService','Inject','fill','call','_localeService','onPointerLeave$','_initDependencies','params','runRefRangeMutations','loadUnit','M0\x200H16V16H0z','createElement','_unitStatus','ticket','IRenderManagerService','_univerInstanceService','RemoteUniscriptService','className','_uiPartsService','_urlService','toStringTag','collaboration-client.offline-data-not-saved','_docStateChangeManagerService','endRow','row','_updateCollabCursors','getSheetId','symbol','_cursors','getValue','Subject','getRenderById','YUUMI_ASYNCIO_CANCELLED','getCurrentRevOfUnit','_cursor','NO_OTHER_CLIENTS_EDITING','useDependency','ICommandService','_collabCursorController','_range','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','DeleteRangeMoveUpCommandId','USERS_LEAVE','handleIRemoveRow','combineLatest','range','FETCH_MISS','MemberService','_localCacheService','TEXT_RANGE_LAYER_INDEX','handleInsertCol','Optional','setConfig','addEventListener','event$','_initEntityListener','addClipboardHook','stringify','ISocketService','LICENSE_IMPORT_SIZE_EXCEEDED','width','_docSyncEditingCollabCursorService','purple.300','781821Xsnsbm','sessionStatus$','_onCursorUpdate','_id','connectInjector','registerComponent','MOBILE_HAS_BEEN_BOUND','_setupSubUnitSync','_registerDependencies','BuiltInUIPart','then','_collabCursorState$','66DBFqYD','_collaborationUIEventService','CONNECTOR_DATA_TOO_LARGE','_docTransformSelectionsService','substring','distinctUntilChanged','DependentOn','OnLineIcon','SetWorksheetActivateCommand','Rectangle','_handleHeartbeatEvent','getCoordByCell','enableLocalCache','with','all','1em','Disposable','subunit','IURLService','executeCommand','getAncestorScale','jsx','DocIMEInputManagerService','getLocalCacheKey','_docSkeletonManagerService','doc.mutation.rich-text-editing','displayName','SetDocZoomRatioOperation','toString','SetSelectionsOperation','EMAIL_HAS_BEEN_BOUND','labelPosition','selection','_initCommandExecutedListener','transformIMECache','text','RemoveColCommandId','unload','icon','_heartbeatTimer','black','collab-text-range-','SheetSkeletonManagerService','USER_NOT_INVITED_CODE','entries','_drawAnchor','_roomMembers$','setStateCache','getOwnPropertyDescriptor','fromEvent','transformMutation','delete','attrs','sheetId','LOGIN_FAILED','status$','_anchor','idSuffix','map','_transformService','DeleteRangeMoveLeftCommandId','_refreshCollabCursors','some','has','colorChannel1','isEditing','_syncEditingCollabCursorService','_docClipboardService','fillRule','ILocalCacheService','LICENSE_EXPORT_SIZE_EXCEEDED','_color'];_0x41d8=function(){return _0x35550c;};return _0x41d8();}var Nt={'tag':_0xabc553(0x24c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xabc553(0x329),'viewBox':'0\x200\x2017\x2016','width':_0xabc553(0x14f),'height':_0xabc553(0x14f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xabc553(0x367),'attrs':{'stroke':_0xabc553(0x368),'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':_0xabc553(0x285),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xabc553(0x358),'attrs':{},'children':[{'tag':_0xabc553(0x360),'attrs':{'id':_0xabc553(0x27a)},'children':[{'tag':_0xabc553(0x367),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0xabc553(0x280)}}]}]}],'defIds':[_0xabc553(0x27a)]},$e=M[_0xabc553(0x2bf)](function(_0x27d3dd,_0x402c71){const _0x5c691e=_0xabc553;return M[_0x5c691e(0x100)](pe,Object[_0x5c691e(0x2c1)]({},_0x27d3dd,{'id':_0x5c691e(0x2bc),'ref':_0x402c71,'icon':Nt}));});$e[_0xabc553(0x15a)]=_0xabc553(0x147);function Mt(_0x3aa3d9){const _0x56e9af=_0xabc553;switch(_0x3aa3d9){case u[_0x56e9af(0x199)][_0x56e9af(0x2b2)]:return _0x56e9af(0x22f);case u[_0x56e9af(0x199)][_0x56e9af(0x1ae)]:return _0x56e9af(0x337);case u[_0x56e9af(0x199)][_0x56e9af(0x123)]:return'collabStatus.fetchMiss';case u[_0x56e9af(0x199)][_0x56e9af(0x207)]:return'collabStatus.notCollab';case u[_0x56e9af(0x199)][_0x56e9af(0x25b)]:case u[_0x56e9af(0x199)][_0x56e9af(0x2a5)]:return'collabStatus.syncing';case u[_0x56e9af(0x199)]['SYNCED']:case u[_0x56e9af(0x199)]['PENDING']:return _0x56e9af(0x339);}}function xe(_0x1159e5){const _0x402fdc=_0xabc553,{status$:_0x4eadd7}=_0x1159e5,_0x3ba179=O[_0x402fdc(0x275)](_0x4eadd7,u[_0x402fdc(0x199)][_0x402fdc(0x207)]),_0x390ed1=O[_0x402fdc(0x119)](a['LocaleService']),_0x159385=O[_0x402fdc(0x119)](u['CollaborationSessionService']),_0x53f6cb=_0x3ba179!==u[_0x402fdc(0x199)][_0x402fdc(0x2b2)],_0x161071=_0x390ed1['t'](Mt(_0x3ba179)),_0x46da60=_0x53f6cb?P[_0x402fdc(0x155)]($e,{}):P['jsx'](ye,{}),_0x41d8d9=M[_0x402fdc(0x1bd)](()=>{const _0x451f67=_0x402fdc;_0x53f6cb||_0x159385[_0x451f67(0x344)]();},[_0x53f6cb,_0x159385]);function _0x592340(){const _0x307a9b=_0x402fdc;return P[_0x307a9b(0x1ff)](_0x307a9b(0x1cb),{'className':_0x307a9b(0x1d4),'onClick':_0x41d8d9,'children':[P[_0x307a9b(0x155)]('div',{'className':D[_0x307a9b(0x2f7)](_0x307a9b(0x28d),{'univer-text-green-500':_0x53f6cb,'univer-text-red-500':!_0x53f6cb}),'children':_0x46da60}),P['jsx'](_0x307a9b(0x1cb),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x161071})]});}return _0x53f6cb?_0x592340():P[_0x402fdc(0x155)](D['Tooltip'],{'title':_0x390ed1['t']('collab-client.tooltip.reconnect'),'children':_0x592340()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x22f329,_0x9591a9,_0x10a8f9,_0xca0b1a)=>{for(var _0x1c8992=_0xca0b1a>0x1?void 0x0:_0xca0b1a?Lt(_0x9591a9,_0x10a8f9):_0x9591a9,_0x54bf38=_0x22f329['length']-0x1,_0x104f95;_0x54bf38>=0x0;_0x54bf38--)(_0x104f95=_0x22f329[_0x54bf38])&&(_0x1c8992=_0x104f95(_0x1c8992)||_0x1c8992);return _0x1c8992;},V=(_0x3710fc,_0xb67839)=>(_0x4e985d,_0x52b90c)=>_0xb67839(_0x4e985d,_0x52b90c,_0x3710fc);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0xabc553(0x150)]{constructor(_0x58cd16,_0xdbb2eb,_0xb1be76,_0x482adc){const _0x48696d=_0xabc553;super(),h(this,_0x48696d(0x196),new d['BehaviorSubject'](u[_0x48696d(0x199)][_0x48696d(0x207)])),(this['_univerInstanceService']=_0x58cd16,this[_0x48696d(0x21c)]=_0xdbb2eb,this[_0x48696d(0x18f)]=_0xb1be76,this[_0x48696d(0x107)]=_0x482adc,this[_0x48696d(0x354)](),this[_0x48696d(0x2f0)]());}[_0xabc553(0x2f0)](){const _0x1f69b3=_0xabc553;this[_0x1f69b3(0x225)](this[_0x1f69b3(0x104)]['focused$'][_0x1f69b3(0x30b)](d['switchMap'](()=>{const _0x4ba367=_0x1f69b3,_0x5bb77e=this['_univerInstanceService'][_0x4ba367(0x2c7)]();return _0x5bb77e?this['_collaborationController'][_0x4ba367(0x328)](_0x5bb77e[_0x4ba367(0x1e7)]()):d['of'](null);}),d['switchMap'](_0x2ce662=>_0x2ce662?_0x2ce662[_0x1f69b3(0x177)]:d['of'](u['CollaborationStatus'][_0x1f69b3(0x207)])))[_0x1f69b3(0x29b)](_0x5dc188=>{const _0xf6218a=_0x1f69b3;this[_0xf6218a(0x196)]['next'](_0x5dc188);}));}[_0xabc553(0x354)](){const _0x320c5a=_0xabc553;this[_0x320c5a(0x225)](this[_0x320c5a(0x107)][_0x320c5a(0x139)](O[_0x320c5a(0x13d)][_0x320c5a(0x316)],()=>O[_0x320c5a(0x138)](wt({'status$':this[_0x320c5a(0x196)][_0x320c5a(0x25a)]()}),this[_0x320c5a(0x21c)])));}},exports[_0xabc553(0x24e)]=Pt([V(0x0,a[_0xabc553(0x323)]),V(0x1,a['Inject'](a['Injector'])),V(0x2,a[_0xabc553(0xf6)](u['CollaborationController'])),V(0x3,O[_0xabc553(0x1fc)])],exports[_0xabc553(0x24e)]);function wt(_0x1f0c29){const {status$:_0x5950cc}=_0x1f0c29;return function(){const _0x2021ef=_0x520f;return P[_0x2021ef(0x155)](xe,{'status$':_0x5950cc});};}var At=Object[_0xabc553(0x170)],yt=(_0x52d4eb,_0x2835b8,_0x1f2284,_0x1c562e)=>{const _0x136da0=_0xabc553;for(var _0x254858=_0x1c562e>0x1?void 0x0:_0x1c562e?At(_0x2835b8,_0x1f2284):_0x2835b8,_0x1ca381=_0x52d4eb[_0x136da0(0x24f)]-0x1,_0x25df06;_0x1ca381>=0x0;_0x1ca381--)(_0x25df06=_0x52d4eb[_0x1ca381])&&(_0x254858=_0x25df06(_0x254858)||_0x254858);return _0x254858;},y=(_0x306f76,_0x40478f)=>(_0x1f5166,_0x3f5a2a)=>_0x40478f(_0x1f5166,_0x3f5a2a,_0x306f76);let q=class extends a['Disposable']{constructor(_0x978c1c,_0x1ac17a,_0x1b220e,_0x526e09,_0x1ef7de,_0x4fac08){const _0xf8656b=_0xabc553;super(),this['_beforeCloseService']=_0x978c1c,this[_0xf8656b(0x125)]=_0x1ac17a,this[_0xf8656b(0x141)]=_0x1b220e,this[_0xf8656b(0x320)]=_0x526e09,this[_0xf8656b(0x1e1)]=_0x1ef7de,this[_0xf8656b(0xf9)]=_0x4fac08,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x8df52f=_0xabc553;this['disposeWithMe'](this[_0x8df52f(0x1ce)][_0x8df52f(0x238)](()=>{const _0x5ee51a=_0x8df52f;if(this[_0x5ee51a(0x125)][_0x5ee51a(0x22e)][_0x5ee51a(0x306)])return this[_0x5ee51a(0xf9)]['t'](_0x5ee51a(0x10a));}));}[_0xabc553(0x2ad)](){const _0x155def=_0xabc553;this[_0x155def(0x225)](this['_collaborationUIEventService'][_0x155def(0x12b)]['subscribe'](_0x40c388=>{const _0x18f61a=_0x155def;_0x40c388['id']===u[_0x18f61a(0x356)][_0x18f61a(0x2da)]&&this[_0x18f61a(0x320)][_0x18f61a(0x34e)]({'type':D[_0x18f61a(0x23d)][_0x18f61a(0x2ff)],'content':this['_localeService']['t'](_0x18f61a(0x322))}),_0x40c388['id']===u[_0x18f61a(0x356)][_0x18f61a(0x18d)]&&this['_messageService'][_0x18f61a(0x34e)]({'type':D['MessageType'][_0x18f61a(0x2ff)],'content':this[_0x18f61a(0xf9)]['t'](_0x18f61a(0x1f0))}),_0x40c388['id']===u['CollaborationUIEventId'][_0x18f61a(0x217)]&&this[_0x18f61a(0x1e1)][_0x18f61a(0x34e)]({'title':this['_localeService']['t'](_0x18f61a(0x359)),'content':this['_localeService']['t'](_0x18f61a(0x1f4)),'type':_0x18f61a(0x1ea),'duration':0x0}),_0x40c388['id']===u['CollaborationUIEventId'][_0x18f61a(0x1ae)]&&this[_0x18f61a(0x320)][_0x18f61a(0x34e)]({'type':D['MessageType'][_0x18f61a(0x2e2)],'content':this[_0x18f61a(0xf9)]['t'](_0x18f61a(0x1f0))+'('+_0x40c388[_0x18f61a(0x357)]+')'}),_0x40c388['id']===u[_0x18f61a(0x356)][_0x18f61a(0x292)]&&this[_0x18f61a(0x320)][_0x18f61a(0x34e)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x40c388[_0x18f61a(0x357)]||'')}),_0x40c388['id']===u[_0x18f61a(0x356)][_0x18f61a(0x1b2)]&&this['_messageService'][_0x18f61a(0x34e)]({'type':D[_0x18f61a(0x23d)]['Warning'],'content':this[_0x18f61a(0xf9)]['t'](_0x18f61a(0x32c))}),_0x40c388['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x18f61a(0x320)]['show']({'type':D[_0x18f61a(0x23d)][_0x18f61a(0x2e2)],'content':this[_0x18f61a(0xf9)]['t'](_0x18f61a(0x318))}),_0x40c388['id']===u[_0x18f61a(0x356)][_0x18f61a(0x282)]&&this[_0x18f61a(0x320)][_0x18f61a(0x34e)]({'type':D[_0x18f61a(0x23d)][_0x18f61a(0x2e2)],'content':this[_0x18f61a(0xf9)]['t'](_0x18f61a(0x1f8))});}));}};q=yt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0xabc553(0x185)]),y(0x2,a['Inject'](u[_0xabc553(0x18e)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0xabc553(0xf6)](a['LocaleService']))],q);const $t='collaboration-client-ui.config',Ue={},Ee=a['createIdentifier'](_0xabc553(0x232));var xt=Object[_0xabc553(0x170)],Bt=(_0x6aa076,_0x3b0eb6,_0x59c47b,_0xe7710e)=>{const _0x5cf9fd=_0xabc553;for(var _0xfe35b5=_0xe7710e>0x1?void 0x0:_0xe7710e?xt(_0x3b0eb6,_0x59c47b):_0x3b0eb6,_0x20166d=_0x6aa076[_0x5cf9fd(0x24f)]-0x1,_0x1cf235;_0x20166d>=0x0;_0x20166d--)(_0x1cf235=_0x6aa076[_0x20166d])&&(_0xfe35b5=_0x1cf235(_0xfe35b5)||_0xfe35b5);return _0xfe35b5;},F=(_0x3fb1dc,_0x2436f0)=>(_0x207155,_0x5b7ced)=>_0x2436f0(_0x207155,_0x5b7ced,_0x3fb1dc);exports[_0xabc553(0x271)]=class extends a[_0xabc553(0x1e9)]{constructor(_0x3b9343,_0x4f6e28,_0x41e11b,_0x13d232,_0xf1cbb2){const _0xa93e70=_0xabc553;super(),this[_0xa93e70(0x108)]=_0x3b9343,this['_logService']=_0x4f6e28,this[_0xa93e70(0x2b6)]=_0x41e11b,this[_0xa93e70(0x31e)]=_0x13d232,_0xf1cbb2?_0xf1cbb2==null||_0xf1cbb2[_0xa93e70(0x26c)]()[_0xa93e70(0x13e)](()=>this[_0xa93e70(0x364)]()):(this[_0xa93e70(0x279)][_0xa93e70(0x1a9)]('[CollaborationDataLoaderController]',_0xa93e70(0x2b3)),this[_0xa93e70(0x364)]());}async[_0xabc553(0x364)](){const _0x4a1090=_0xabc553,_0x4e953c=this[_0x4a1090(0x108)][_0x4a1090(0x349)](_0x4a1090(0x34f)),_0x20a2dc=this['_urlService'][_0x4a1090(0x349)]('type'),_0x1102a4=this[_0x4a1090(0x108)]['getParam'](_0x4a1090(0x151));if(!_0x4e953c||!_0x20a2dc){this[_0x4a1090(0x279)][_0x4a1090(0x1a9)]('[CollaborationDataLoaderController]',_0x4a1090(0x1e0));return;}const _0x2c53e2=await this[_0x4a1090(0x31e)][_0x4a1090(0xfe)](_0x4e953c,Number(_0x20a2dc),_0x1102a4);_0x2c53e2&&_0x2c53e2 instanceof a[_0x4a1090(0x28e)]&&this[_0x4a1090(0x13b)](_0x2c53e2);}async[_0xabc553(0x13b)](_0x58371c){const _0x514cd2=_0xabc553;await this[_0x514cd2(0x310)](_0x58371c),_0x58371c[_0x514cd2(0x206)][_0x514cd2(0x30b)](d[_0x514cd2(0x21a)](this[_0x514cd2(0x19b)]))[_0x514cd2(0x29b)](_0x5453fc=>{const _0x2f841d=_0x514cd2;_0x5453fc&&this[_0x2f841d(0x19f)](_0x5453fc);}),this[_0x514cd2(0x108)]['urlChange$'][_0x514cd2(0x30b)](d['takeUntil'](this[_0x514cd2(0x19b)]))[_0x514cd2(0x29b)](()=>this[_0x514cd2(0x310)](_0x58371c));}[_0xabc553(0x19f)](_0x28d450,_0x1b120e=!0x1){const _0x1f0589=_0xabc553,_0xa574ac=this[_0x1f0589(0x108)]['getParam']('subunit');_0x28d450[_0x1f0589(0x10f)]()!==_0xa574ac&&this['_urlService'][_0x1f0589(0x290)]('subunit',_0x28d450[_0x1f0589(0x10f)](),_0x1b120e);}async[_0xabc553(0x310)](_0x305996){const _0x267b02=_0xabc553;var _0x56a13c;const _0x4a94fe=this['_urlService'][_0x267b02(0x349)](_0x267b02(0x151));if(!_0x4a94fe||!_0x305996[_0x267b02(0x1b7)](_0x4a94fe)){const _0x3d60bb=_0x305996[_0x267b02(0x30e)]()[0x0],_0x2602b2=_0x305996['getSheetBySheetId'](_0x3d60bb);if(!_0x2602b2)return;this[_0x267b02(0x19f)](_0x2602b2,!0x0),await this[_0x267b02(0x2b6)][_0x267b02(0x153)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x305996[_0x267b02(0x1e7)](),'subUnitId':_0x3d60bb});return;}((_0x56a13c=_0x305996[_0x267b02(0x286)]())==null?void 0x0:_0x56a13c[_0x267b02(0x10f)]())!==_0x4a94fe&&await this['_commandService'][_0x267b02(0x153)](g[_0x267b02(0x148)]['id'],{'unitId':_0x305996[_0x267b02(0x1e7)](),'subUnitId':_0x4a94fe});}},exports[_0xabc553(0x271)]=Bt([F(0x0,Ee),F(0x1,a[_0xabc553(0x19a)]),F(0x2,a[_0xabc553(0x11a)]),F(0x3,a[_0xabc553(0xf6)](u[_0xabc553(0x23a)])),F(0x4,a[_0xabc553(0x128)](Ke['IRemoteInstanceService']))],exports[_0xabc553(0x271)]);var jt=Object[_0xabc553(0x170)],kt=(_0x2416f2,_0x508ba9,_0x46fcf2,_0x365135)=>{const _0x517b18=_0xabc553;for(var _0x5ee553=_0x365135>0x1?void 0x0:_0x365135?jt(_0x508ba9,_0x46fcf2):_0x508ba9,_0x2a9e2d=_0x2416f2[_0x517b18(0x24f)]-0x1,_0x2f9fb4;_0x2a9e2d>=0x0;_0x2a9e2d--)(_0x2f9fb4=_0x2416f2[_0x2a9e2d])&&(_0x5ee553=_0x2f9fb4(_0x5ee553)||_0x5ee553);return _0x5ee553;},ce=(_0x259736,_0x14d4d0)=>(_0xd3033c,_0xba5c93)=>_0x14d4d0(_0xd3033c,_0xba5c93,_0x259736);let z=class{constructor(_0x2ee0f8,_0x53fee7,_0x3ca86f){const _0x4c48a4=_0xabc553;this[_0x4c48a4(0x21c)]=_0x2ee0f8,this[_0x4c48a4(0x17b)]=_0x53fee7,this['_renderManagerService']=_0x3ca86f;}[_0xabc553(0x162)](_0x44c1a4){const _0x2037d0=_0xabc553;this[_0x2037d0(0x2db)](_0x44c1a4),this[_0x2037d0(0x1a7)](_0x44c1a4);}[_0xabc553(0x1bc)](_0x39e1b3){const _0x1f0055=_0xabc553,{unitID:_0x52fe90}=_0x39e1b3,_0x21510e=this['_renderManagerService'][_0x1f0055(0x114)](_0x52fe90)[_0x1f0055(0x14d)](E[_0x1f0055(0x156)]),{redoCache:_0x3a5875}=_0x21510e['getUndoRedoMutationParamsCache']();if(_0x3a5875[_0x1f0055(0x24f)]===0x0)return _0x39e1b3;let _0x5c144a=a[_0x1f0055(0x28f)][_0x1f0055(0x288)](_0x39e1b3['mutations'][0x0]);for(let _0x24e57c=0x0;_0x24e57c<_0x3a5875[_0x1f0055(0x24f)];_0x24e57c++){const _0x4c83be={'id':_0x1f0055(0x159),'params':{..._0x3a5875[_0x24e57c]}},_0x38b740=this[_0x1f0055(0x17b)][_0x1f0055(0x172)](_0x5c144a,_0x4c83be,!0x1);if(m[_0x1f0055(0x352)](_0x38b740))throw _0x38b740[_0x1f0055(0x1ea)];_0x5c144a=_0x38b740['m1Prime'];}return{...a['Tools'][_0x1f0055(0x288)](_0x39e1b3),'mutations':[_0x5c144a]};}[_0xabc553(0x2db)](_0x510cda){const _0x3f34ed=_0xabc553,{unitID:_0x40cb68}=_0x510cda,_0x260125=this[_0x3f34ed(0x20c)][_0x3f34ed(0x114)](_0x40cb68)[_0x3f34ed(0x14d)](E[_0x3f34ed(0x156)]),{undoCache:_0x53b2ae,redoCache:_0x5c917e}=_0x260125[_0x3f34ed(0x33e)]();if(_0x53b2ae['length']===0x0||_0x5c917e[_0x3f34ed(0x24f)]===0x0)return;const _0x164c44=[],_0x45fe29=[];let _0x57f254=a[_0x3f34ed(0x28f)][_0x3f34ed(0x288)](_0x510cda[_0x3f34ed(0x2b9)][0x0]),_0x56a212=a[_0x3f34ed(0x28f)][_0x3f34ed(0x288)](_0x510cda[_0x3f34ed(0x2b9)][0x0]);for(let _0x3e6d2e=_0x53b2ae['length']-0x1;_0x3e6d2e>=0x0;_0x3e6d2e--){const _0x3033ac={'id':'doc.mutation.rich-text-editing','params':{..._0x53b2ae[_0x3e6d2e]}},_0x439046={'id':'doc.mutation.rich-text-editing','params':{..._0x5c917e[_0x3e6d2e]}},_0x124ec5=this['_transformService'][_0x3f34ed(0x172)](_0x57f254,_0x3033ac,!0x1),_0x12c052=this['_transformService']['transformMutation'](_0x56a212,_0x439046,!0x1);if(m[_0x3f34ed(0x352)](_0x124ec5))throw _0x124ec5[_0x3f34ed(0x1ea)];if(m[_0x3f34ed(0x352)](_0x12c052))throw _0x12c052[_0x3f34ed(0x1ea)];_0x164c44[_0x3f34ed(0x2b5)](_0x124ec5[_0x3f34ed(0x1d7)]['params']),_0x45fe29[_0x3f34ed(0x2b5)](_0x12c052[_0x3f34ed(0x1d7)][_0x3f34ed(0xfc)]),_0x57f254=_0x124ec5[_0x3f34ed(0x2a4)],_0x56a212=_0x12c052[_0x3f34ed(0x2a4)];}_0x260125['setUndoRedoMutationParamsCache']({'undoCache':_0x164c44,'redoCache':_0x45fe29});}[_0xabc553(0x1a7)](_0x21c941){const _0x2ba0fd=_0xabc553,{unitID:_0xc48c36}=_0x21c941,_0x21d885=this[_0x2ba0fd(0x20c)][_0x2ba0fd(0x114)](_0xc48c36)['with'](E[_0x2ba0fd(0x156)]),_0x35527b=_0x21d885[_0x2ba0fd(0x33d)]();if(_0x35527b==null)return;const _0x49143d=[{'id':_0x2ba0fd(0x159),'params':{'unitId':_0x21c941[_0x2ba0fd(0x32b)],'actions':null,'textRanges':[_0x35527b]}}],_0x37003e=this['_transformService'][_0x2ba0fd(0x1fa)](_0x21c941,_0x49143d);if(!m[_0x2ba0fd(0x209)](_0x37003e))throw _0x37003e[_0x2ba0fd(0x1ea)];const _0x5a660c=_0x37003e['m2Prime'][0x0]['params'][_0x2ba0fd(0x2ae)];Array['isArray'](_0x5a660c)&&_0x5a660c[_0x2ba0fd(0x24f)]&&_0x21d885[_0x2ba0fd(0x18a)](_0x5a660c[0x0]);}};z=kt([ce(0x0,a[_0xabc553(0xf6)](a[_0xabc553(0x268)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0xabc553(0x103)])],z);var Ft=Object[_0xabc553(0x170)],Ht=(_0x5dfc43,_0x4d33ae,_0x108d8a,_0x5d1c28)=>{for(var _0x1edb04=_0x5d1c28>0x1?void 0x0:_0x5d1c28?Ft(_0x4d33ae,_0x108d8a):_0x4d33ae,_0x425ca0=_0x5dfc43['length']-0x1,_0x41cbe3;_0x425ca0>=0x0;_0x425ca0--)(_0x41cbe3=_0x5dfc43[_0x425ca0])&&(_0x1edb04=_0x41cbe3(_0x1edb04)||_0x1edb04);return _0x1edb04;},le=(_0x4395e1,_0x4fd96b)=>(_0xc82fe8,_0x4e52ea)=>_0x4fd96b(_0xc82fe8,_0x4e52ea,_0x4395e1);let J=class{constructor(_0x47c1a,_0x3fdc73,_0x3c54a3){const _0x2e21f8=_0xabc553;this[_0x2e21f8(0x21c)]=_0x47c1a,this[_0x2e21f8(0x17b)]=_0x3fdc73,this[_0x2e21f8(0x10b)]=_0x3c54a3;}[_0xabc553(0x1de)](_0x45c79b){this['_transformHistoryAndStateStack'](_0x45c79b);}[_0xabc553(0x1bc)](_0x1bf7d2){const _0x3def3d=_0xabc553,{unitID:_0x171145}=_0x1bf7d2,{collaboration:_0x5aa9a3}=this[_0x3def3d(0x10b)]['getStateCache'](_0x171145);if(_0x5aa9a3[_0x3def3d(0x24f)]===0x0)return _0x1bf7d2;let _0x378afa=a['Tools'][_0x3def3d(0x288)](_0x1bf7d2[_0x3def3d(0x2b9)][0x0]);for(let _0x908751=0x0;_0x908751<_0x5aa9a3[_0x3def3d(0x24f)];_0x908751++){const _0x15cfab={'id':_0x3def3d(0x159),'params':{'unitId':_0x5aa9a3[_0x908751][_0x3def3d(0x29d)],..._0x5aa9a3[_0x908751][_0x3def3d(0x1d0)]}},_0x2d7eea=this[_0x3def3d(0x17b)][_0x3def3d(0x172)](_0x378afa,_0x15cfab,!0x1);if(m[_0x3def3d(0x352)](_0x2d7eea))throw _0x2d7eea[_0x3def3d(0x1ea)];_0x378afa=_0x2d7eea['m1Prime'];}return{...a[_0x3def3d(0x28f)][_0x3def3d(0x288)](_0x1bf7d2),'mutations':[_0x378afa]};}[_0xabc553(0x188)](_0xb54ef7){const _0x1d666e=_0xabc553,{unitID:_0x34a883}=_0xb54ef7,{history:_0x8ec239,collaboration:_0x383070}=this[_0x1d666e(0x10b)][_0x1d666e(0x21e)](_0x34a883);if(_0x8ec239[_0x1d666e(0x24f)]===0x0&&_0x383070['length']===0x0)return;const _0x290797=[],_0x489352=[];let _0x48a951=a[_0x1d666e(0x28f)]['deepClone'](_0xb54ef7[_0x1d666e(0x2b9)][0x0]),_0x25b24a=a[_0x1d666e(0x28f)][_0x1d666e(0x288)](_0xb54ef7[_0x1d666e(0x2b9)][0x0]);for(let _0x5d1202=_0x8ec239[_0x1d666e(0x24f)]-0x1;_0x5d1202>=0x0;_0x5d1202--){const _0x518df4={'id':_0x1d666e(0x159),'params':{'unitId':_0x8ec239[_0x5d1202][_0x1d666e(0x29d)],..._0x8ec239[_0x5d1202]['undoState']}},_0x53f697={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x8ec239[_0x5d1202][_0x1d666e(0x29d)],..._0x8ec239[_0x5d1202][_0x1d666e(0x1d0)]}},_0x19b9ec=this[_0x1d666e(0x17b)][_0x1d666e(0x172)](_0x48a951,_0x518df4,!0x1),_0x3dffbd=this['_transformService'][_0x1d666e(0x172)](_0x25b24a,_0x53f697,!0x1);if(m['isTransformMutationFailure'](_0x19b9ec))throw _0x19b9ec[_0x1d666e(0x1ea)];if(m[_0x1d666e(0x352)](_0x3dffbd))throw _0x3dffbd[_0x1d666e(0x1ea)];_0x290797[_0x1d666e(0x2b5)]({..._0x8ec239[_0x5d1202],'undoState':_0x19b9ec[_0x1d666e(0x1d7)][_0x1d666e(0xfc)],'redoState':_0x3dffbd[_0x1d666e(0x1d7)][_0x1d666e(0xfc)]}),_0x48a951=_0x19b9ec[_0x1d666e(0x2a4)],_0x25b24a=_0x3dffbd[_0x1d666e(0x2a4)];}_0x48a951=a[_0x1d666e(0x28f)][_0x1d666e(0x288)](_0xb54ef7['mutations'][0x0]),_0x25b24a=a[_0x1d666e(0x28f)][_0x1d666e(0x288)](_0xb54ef7[_0x1d666e(0x2b9)][0x0]);for(let _0x4851de=_0x383070[_0x1d666e(0x24f)]-0x1;_0x4851de>=0x0;_0x4851de--){const _0x5a7077={'id':_0x1d666e(0x159),'params':{'unitId':_0x383070[_0x4851de][_0x1d666e(0x29d)],..._0x383070[_0x4851de]['undoState']}},_0x6c2b3a={'id':_0x1d666e(0x159),'params':{'unitId':_0x383070[_0x4851de]['unitId'],..._0x383070[_0x4851de][_0x1d666e(0x1d0)]}},_0x4ad05d=this[_0x1d666e(0x17b)][_0x1d666e(0x172)](_0x48a951,_0x5a7077,!0x1),_0x33b6c9=this['_transformService'][_0x1d666e(0x172)](_0x25b24a,_0x6c2b3a,!0x1);if(m[_0x1d666e(0x352)](_0x4ad05d))throw _0x4ad05d[_0x1d666e(0x1ea)];if(m['isTransformMutationFailure'](_0x33b6c9))throw _0x33b6c9[_0x1d666e(0x1ea)];_0x489352[_0x1d666e(0x2b5)]({..._0x383070[_0x4851de],'undoState':_0x4ad05d['m2Prime']['params'],'redoState':_0x33b6c9[_0x1d666e(0x1d7)][_0x1d666e(0xfc)]}),_0x48a951=_0x4ad05d['m1Prime'],_0x25b24a=_0x33b6c9[_0x1d666e(0x2a4)];}this[_0x1d666e(0x10b)][_0x1d666e(0x16f)](_0x34a883,{'history':_0x290797,'collaboration':_0x489352});}};J=Ht([le(0x0,a[_0xabc553(0xf6)](a['Injector'])),le(0x1,m[_0xabc553(0xf5)]),le(0x2,a['Inject'](E[_0xabc553(0x30f)]))],J);var Yt=Object[_0xabc553(0x170)],Wt=(_0x3de3e4,_0x261740,_0x1781a7,_0x21a792)=>{const _0x10b4e0=_0xabc553;for(var _0x7f9afe=_0x21a792>0x1?void 0x0:_0x21a792?Yt(_0x261740,_0x1781a7):_0x261740,_0x3c5fe1=_0x3de3e4[_0x10b4e0(0x24f)]-0x1,_0xb9568;_0x3c5fe1>=0x0;_0x3c5fe1--)(_0xb9568=_0x3de3e4[_0x3c5fe1])&&(_0x7f9afe=_0xb9568(_0x7f9afe)||_0x7f9afe);return _0x7f9afe;},Ne=(_0x50f1db,_0x4267c6)=>(_0x49770d,_0x3d457b)=>_0x4267c6(_0x49770d,_0x3d457b,_0x50f1db);let Z=class{constructor(_0x1e830b,_0x1791dc){const _0x3416d5=_0xabc553;this[_0x3416d5(0x21c)]=_0x1e830b,this[_0x3416d5(0x17b)]=_0x1791dc;}[_0xabc553(0x205)](_0x37a5b2){const _0x27bba7=_0xabc553;var _0x5c68d3;const _0x4bf6cd=this[_0x27bba7(0x21c)][_0x27bba7(0x299)](Y[_0x27bba7(0x2fb)]),_0x27535f=(_0x5c68d3=_0x4bf6cd['getDocRanges']())!=null?_0x5c68d3:[];if(_0x27535f[_0x27bba7(0x24f)]===0x0)return;const _0x5f3cd5=_0x37a5b2[_0x27bba7(0x32b)],_0x1ce2be=[{'id':_0x27bba7(0x159),'params':{'unitId':_0x5f3cd5,'actions':null,'textRanges':_0x27535f}}],_0x1c4ca4=this[_0x27bba7(0x17b)]['transformMutationsWithChangeset'](_0x37a5b2,_0x1ce2be);if(!m[_0x27bba7(0x209)](_0x1c4ca4))throw _0x1c4ca4[_0x27bba7(0x1ea)];const _0x2b7e84=_0x1c4ca4['m2Prime'][0x0][_0x27bba7(0xfc)]['textRanges'];Array[_0x27bba7(0x1c5)](_0x2b7e84)&&_0x2b7e84[_0x27bba7(0x24f)]&&_0x4bf6cd['replaceDocRanges'](_0x2b7e84,{'unitId':_0x5f3cd5,'subUnitId':_0x5f3cd5},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a['Injector'])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0xabc553(0x170)],Xt=(_0x452a94,_0x1c1772,_0x1ba4dd,_0x4f359e)=>{const _0x522052=_0xabc553;for(var _0x115121=_0x4f359e>0x1?void 0x0:_0x4f359e?Vt(_0x1c1772,_0x1ba4dd):_0x1c1772,_0x9acf5d=_0x452a94[_0x522052(0x24f)]-0x1,_0x5381b6;_0x9acf5d>=0x0;_0x9acf5d--)(_0x5381b6=_0x452a94[_0x9acf5d])&&(_0x115121=_0x5381b6(_0x115121)||_0x115121);return _0x115121;},N=(_0x363f13,_0x262416)=>(_0x453760,_0x2545e8)=>_0x262416(_0x453760,_0x2545e8,_0x363f13);let Q=class extends a[_0xabc553(0x150)]{constructor(_0x5c5055,_0x5174a2,_0xb22cf7,_0x377bb2,_0x40191e,_0x13456c,_0x4097b0,_0x2efd0a){const _0xe0fdac=_0xabc553;super(),h(this,_0xe0fdac(0x196),new d[(_0xe0fdac(0x2ab))](u[_0xe0fdac(0x199)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x5c5055,this[_0xe0fdac(0x18f)]=_0x5174a2,this[_0xe0fdac(0x1eb)]=_0xb22cf7,this[_0xe0fdac(0x2be)]=_0x377bb2,this['_docTransformSelectionsService']=_0x40191e,this[_0xe0fdac(0x132)]=_0x13456c,this['_messageService']=_0x4097b0,this['_localeService']=_0x2efd0a,this[_0xe0fdac(0x12c)]());}[_0xabc553(0x12c)](){const _0x560b0d=_0xabc553;this[_0x560b0d(0x225)](this[_0x560b0d(0x18f)]['entityInit$'][_0x560b0d(0x29b)](_0x1ab792=>{const _0x5e1886=_0x560b0d,_0x497592=this[_0x5e1886(0x10b)][_0x5e1886(0x20f)]['subscribe'](_0x14bb62=>{const _0x47ad08=_0x5e1886;if(_0x14bb62==null)return;const {unitId:_0x17d804,redoState:_0x1d6fa4,commandId:_0x3d870b}=_0x14bb62;if(_0x17d804!==_0x1ab792[_0x47ad08(0x32b)])return;const _0x4cc09b={'id':_0x3d870b,'type':a[_0x47ad08(0x229)][_0x47ad08(0x19e)],'params':{'unitId':_0x17d804,'actions':_0x1d6fa4[_0x47ad08(0x2a7)],'textRanges':null}};_0x1ab792[_0x47ad08(0x303)](_0x4cc09b);});if(_0x1ab792[_0x5e1886(0x225)](_0x497592),_0x1ab792 instanceof u[_0x5e1886(0x1d2)]){const _0x349491={'onTransformIME':_0x17ccee=>this[_0x5e1886(0x1eb)]['transformIMECache'](_0x17ccee),'onTransformState':_0x9fed6=>this[_0x5e1886(0x2be)][_0x5e1886(0x1de)](_0x9fed6),'onTransformSelections':_0x42701b=>this[_0x5e1886(0x143)][_0x5e1886(0x205)](_0x42701b),'onSyncEditingCollabCursor':_0x155fee=>this['_docSyncEditingCollabCursorService'][_0x5e1886(0x2d6)](_0x155fee),'onTransformRemoteChangesetByIMECache':_0x5b63ec=>this[_0x5e1886(0x1eb)][_0x5e1886(0x1bc)](_0x5b63ec),'onTransformRemoteChangesetByStateCache':_0x3f8fcc=>this[_0x5e1886(0x2be)][_0x5e1886(0x1bc)](_0x3f8fcc)};_0x1ab792[_0x5e1886(0x34c)](_0x349491);}}));}};Q=Xt([N(0x0,a[_0xabc553(0xf6)](E[_0xabc553(0x30f)])),N(0x1,a[_0xabc553(0xf6)](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a[_0xabc553(0xf6)](J)),N(0x4,a[_0xabc553(0xf6)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O['IMessageService']),N(0x7,a[_0xabc553(0xf6)](a['LocaleService']))],Q);var Gt=Object[_0xabc553(0x170)],Kt=(_0x3347ad,_0x5a8fa8,_0x5dbf40,_0x4ad20c)=>{const _0x3c18e8=_0xabc553;for(var _0x51c5a1=_0x4ad20c>0x1?void 0x0:_0x4ad20c?Gt(_0x5a8fa8,_0x5dbf40):_0x5a8fa8,_0x4f1d90=_0x3347ad[_0x3c18e8(0x24f)]-0x1,_0x762ecd;_0x4f1d90>=0x0;_0x4f1d90--)(_0x762ecd=_0x3347ad[_0x4f1d90])&&(_0x51c5a1=_0x762ecd(_0x51c5a1)||_0x51c5a1);return _0x51c5a1;},_e=(_0x202d8f,_0x263b02)=>(_0x279c84,_0xd96939)=>_0x263b02(_0x279c84,_0xd96939,_0x202d8f);let ge=class extends a[_0xabc553(0x150)]{constructor(_0x25f087,_0x3b094a,_0x118eb4){const _0x4dbb19=_0xabc553;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x4dbb19(0x314),!0x1),(this[_0x4dbb19(0x335)]=_0x25f087,this[_0x4dbb19(0x214)]=_0x3b094a,this[_0x4dbb19(0x2f1)]=_0x118eb4);}[_0xabc553(0x25f)](){const _0x165a32=_0xabc553;this[_0x165a32(0x314)]=!0x0;}[_0xabc553(0x14c)](){const _0x101ea8=_0xabc553;this[_0x101ea8(0x314)]=!0x1;}get[_0xabc553(0x22e)](){const _0x199f9c=_0xabc553;return this[_0x199f9c(0x273)];}[_0xabc553(0x34d)](){const _0xcd0df0=_0xabc553;this[_0xcd0df0(0x296)]()[_0xcd0df0(0x13e)](()=>super[_0xcd0df0(0x34d)]());}async[_0xabc553(0x35e)](_0x2dd48e){const _0x4f8656=_0xabc553;return this['_disabled']?null:this['_localStorageService'][_0x4f8656(0x33b)](u[_0x4f8656(0x157)](_0x2dd48e));}async['saveOfflineData'](_0x3fcaab,_0x38ae12){const _0xf925f8=_0xabc553;return!!this['_localStorageService'][_0xf925f8(0x25d)](_0x3fcaab,_0x38ae12);}[_0xabc553(0x312)](_0x3eda38,_0x52bd48,_0x1742ca,_0x357a74){const _0x4299af=_0xabc553,_0x36f896=this[_0x4299af(0x2f1)][_0x4299af(0x116)](_0x3eda38);this[_0x4299af(0x2c9)][_0x4299af(0x1d9)](_0x3eda38,{'unitID':_0x3eda38,'type':_0x52bd48,'awaitingChangeset':_0x1742ca,'mutations':_0x357a74,'rev':_0x36f896}),this[_0x4299af(0x273)][_0x4299af(0x17f)](_0x3eda38)||this[_0x4299af(0x34b)](_0x3eda38);}[_0xabc553(0x34b)](_0xbadc78){const _0x2760e7=_0xabc553,_0x3e6363=this[_0x2760e7(0x2ea)]();_0x3e6363===0x0?this['_saveCache'](_0xbadc78):this['_saveTaskMap'][_0x2760e7(0x1d9)](_0xbadc78,setTimeout(()=>this[_0x2760e7(0x230)](_0xbadc78),_0x3e6363));}['_getSaveTimeout'](){const _0x25b3a0=_0xabc553;var _0x47a0c8;return(_0x47a0c8=this[_0x25b3a0(0x335)][_0x25b3a0(0x255)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x47a0c8:u[_0x25b3a0(0x218)];}[_0xabc553(0x230)](_0x12b3d8){const _0x4268b1=_0xabc553,_0x302a41=this['_saveTaskMap'][_0x4268b1(0x299)](_0x12b3d8);return _0x302a41!==void 0x0&&window[_0x4268b1(0x1f2)](_0x302a41),this[_0x4268b1(0x214)][_0x4268b1(0x25d)](u[_0x4268b1(0x157)](_0x12b3d8),this[_0x4268b1(0x2c9)][_0x4268b1(0x299)](_0x12b3d8))[_0x4268b1(0x13e)](()=>this[_0x4268b1(0x273)][_0x4268b1(0x173)](_0x12b3d8));}async[_0xabc553(0x296)](){const _0x369c0d=_0xabc553,_0x90385f=[];this['_saveTaskMap'][_0x369c0d(0x1b9)]((_0x21549d,_0x454f8b)=>{const _0x2b75f3=_0x369c0d;window[_0x2b75f3(0x1f2)](_0x21549d),_0x90385f[_0x2b75f3(0x317)](this[_0x2b75f3(0x230)](_0x454f8b)[_0x2b75f3(0x13e)](()=>{const _0x1d1ac0=_0x2b75f3;this[_0x1d1ac0(0x273)][_0x1d1ac0(0x173)](_0x454f8b);}));}),await Promise[_0x369c0d(0x14e)](_0x90385f);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0xabc553(0x363)]),_e(0x2,a['Inject'](m[_0xabc553(0x269)]))],ge);class Be extends a[_0xabc553(0x1e9)]{constructor(){const _0x2c68b1=_0xabc553;super(),h(this,_0x2c68b1(0x274)),this['urlChange$']=d[_0x2c68b1(0x171)](window,_0x2c68b1(0x2d7))[_0x2c68b1(0x30b)](d[_0x2c68b1(0x21a)](this[_0x2c68b1(0x19b)]),d[_0x2c68b1(0x35c)](0x1),d['mapTo'](void 0x0));}[_0xabc553(0x290)](_0x1320a4,_0xdcd102,_0x543ca6=!0x1){const _0x530f86=_0xabc553,_0x4d8d6a=new URL(window[_0x530f86(0x301)][_0x530f86(0x1b6)]);_0x4d8d6a[_0x530f86(0x294)]['set'](_0x1320a4,_0xdcd102),_0x543ca6?window[_0x530f86(0x224)]['replaceState']('','',_0x4d8d6a[_0x530f86(0x15c)]()):window['history']['pushState']('','',_0x4d8d6a[_0x530f86(0x15c)]());}[_0xabc553(0x302)](_0x4db94d,_0x58f9f5=!0x1){const _0x46e79e=_0xabc553,_0x3f1db2=new URL(window[_0x46e79e(0x301)]['href']);_0x3f1db2[_0x46e79e(0x294)][_0x46e79e(0x173)](_0x4db94d),_0x58f9f5?window[_0x46e79e(0x224)][_0x46e79e(0x276)]('','',_0x3f1db2[_0x46e79e(0x15c)]()):window[_0x46e79e(0x224)]['pushState']('','',_0x3f1db2[_0x46e79e(0x15c)]());}[_0xabc553(0x349)](_0x373ecc){const _0x39bdc3=_0xabc553;var _0x4ed3ea;return(_0x4ed3ea=new URL(window[_0x39bdc3(0x301)]['href'])['searchParams'][_0x39bdc3(0x299)](_0x373ecc))!=null?_0x4ed3ea:void 0x0;}}var qt=Object[_0xabc553(0x343)],zt=Object[_0xabc553(0x170)],Jt=(_0x5d1fe3,_0x45b3aa,_0x35f517)=>_0x45b3aa in _0x5d1fe3?qt(_0x5d1fe3,_0x45b3aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35f517}):_0x5d1fe3[_0x45b3aa]=_0x35f517,Zt=(_0x578e4e,_0x4ac924,_0x54760b,_0x28a9fd)=>{const _0x12d5d3=_0xabc553;for(var _0x5b0759=_0x28a9fd>0x1?void 0x0:_0x28a9fd?zt(_0x4ac924,_0x54760b):_0x4ac924,_0x19ede4=_0x578e4e[_0x12d5d3(0x24f)]-0x1,_0x3fbf33;_0x19ede4>=0x0;_0x19ede4--)(_0x3fbf33=_0x578e4e[_0x19ede4])&&(_0x5b0759=_0x3fbf33(_0x5b0759)||_0x5b0759);return _0x5b0759;},he=(_0x31a29c,_0x4ede34)=>(_0x1d2c61,_0x3f8a51)=>_0x4ede34(_0x1d2c61,_0x3f8a51,_0x31a29c),Qt=(_0x424abf,_0x538683,_0x3afa13)=>Jt(_0x424abf,_0x538683+'',_0x3afa13);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x57f4b5=Ue,_0x136fe8,_0x12ac90,_0x5e0107){const _0x315d08=_0xabc553;super(),this['_config']=_0x57f4b5,this[_0x315d08(0x20c)]=_0x136fe8,this['_injector']=_0x12ac90,this['_configService']=_0x5e0107;const {..._0x24ba31}=a['merge']({},Ue,this[_0x315d08(0x1e5)]);this[_0x315d08(0x335)][_0x315d08(0x129)]($t,_0x24ba31);}['onStarting'](){const _0x4e30ff=_0xabc553;this[_0x4e30ff(0x13c)](),this[_0x4e30ff(0xfb)]();}[_0xabc553(0x298)](){const _0x5cd032=_0xabc553;this[_0x5cd032(0x1f6)]();}['_registerDependencies'](){const _0x5bd371=_0xabc553;var _0x535d5c;const _0x150d4c=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x5bd371(0x12f)],{'useClass':G['WebSocketService']}],[u['ILocalCacheService'],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x5bd371(0x271)]]];a['registerDependencies'](this['_injector'],a['mergeOverrideWithDependencies'](_0x150d4c,(_0x535d5c=this['_config'])==null?void 0x0:_0x535d5c['override']));}[_0xabc553(0x1f6)](){const _0x45af6e=_0xabc553;this[_0x45af6e(0x225)](this[_0x45af6e(0x20c)][_0x45af6e(0x248)](a[_0x45af6e(0x26e)][_0x45af6e(0x2bb)],[fe])),this[_0x45af6e(0x225)](this[_0x45af6e(0x20c)]['registerRenderModule'](a[_0x45af6e(0x26e)]['UNIVER_SHEET'],[ve]));}[_0xabc553(0xfb)](){const _0x1159e1=_0xabc553;a[_0x1159e1(0x308)](this[_0x1159e1(0x21c)],[[x],[exports[_0x1159e1(0x24e)]],[Q],[q],[exports[_0x1159e1(0x271)]]]);}},Qt(exports[_0xabc553(0x1a5)],_0xabc553(0x256),es),exports[_0xabc553(0x1a5)]=Zt([a[_0xabc553(0x146)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0xabc553(0x103)]),he(0x2,a[_0xabc553(0xf6)](a[_0xabc553(0x268)])),he(0x3,a[_0xabc553(0x29f)])],exports[_0xabc553(0x1a5)]);var ts=Object[_0xabc553(0x170)],ss=(_0x5261f4,_0xb57331,_0x1a14ca,_0xa98c9b)=>{const _0x5ede48=_0xabc553;for(var _0x3ae40f=_0xa98c9b>0x1?void 0x0:_0xa98c9b?ts(_0xb57331,_0x1a14ca):_0xb57331,_0x3316bd=_0x5261f4[_0x5ede48(0x24f)]-0x1,_0x4032fa;_0x3316bd>=0x0;_0x3316bd--)(_0x4032fa=_0x5261f4[_0x3316bd])&&(_0x3ae40f=_0x4032fa(_0x3ae40f)||_0x3ae40f);return _0x3ae40f;},H=(_0x2c1bb3,_0x14a02c)=>(_0x30d145,_0x539b1b)=>_0x14a02c(_0x30d145,_0x539b1b,_0x2c1bb3);exports['BrowserCollaborationSocketService']=class extends u[_0xabc553(0x252)]{constructor(_0x131b1a,_0x168374,_0x59da02,_0x181088,_0x41c6b2){super(_0x131b1a,_0x168374,_0x59da02,_0x181088,_0x41c6b2);}async[_0xabc553(0x341)](_0x5b9731){const _0xa9334b=_0xabc553,_0x162d67=await this[_0xa9334b(0x1ab)](),_0xf675ee=this[_0xa9334b(0x208)](_0x5b9731,_0x162d67);return this[_0xa9334b(0x2b7)](_0xf675ee);}[_0xabc553(0x208)](_0x37fc74,_0x42ec70){const _0x2874c3=_0xabc553,_0x5edf24=typeof window>'u'?new URL(_0x37fc74):new URL(_0x37fc74,window[_0x2874c3(0x301)][_0x2874c3(0x342)]);_0x5edf24[_0x2874c3(0x294)][_0x2874c3(0x1d9)](_0x2874c3(0x2e0),_0x42ec70);const _0x117ede=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2874c3(0x2d1)]);return _0x117ede[_0x2874c3(0x299)](_0x2874c3(0x338))&&_0x5edf24[_0x2874c3(0x294)][_0x2874c3(0x1d9)](_0x2874c3(0x338),_0x117ede['get'](_0x2874c3(0x338))),_0x5edf24[_0x2874c3(0x15c)]();}async['_getSessionTicket'](){const _0x3760c1=_0xabc553;var _0x42596f,_0x5b8c6d,_0x257034;const _0x390f64=this['_configService'][_0x3760c1(0x255)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x27fa9a=(_0x42596f=_0x390f64==null?void 0x0:_0x390f64[_0x3760c1(0x287)])!=null?_0x42596f:u[_0x3760c1(0x347)];return(_0x257034=(_0x5b8c6d=(await this[_0x3760c1(0x1b0)]['get'](_0x27fa9a,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5b8c6d[_0x3760c1(0x102)])!=null?_0x257034:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a['Inject'](a[_0xabc553(0x268)])),H(0x1,a['Inject'](G['HTTPService'])),H(0x2,a['IConfigService']),H(0x3,a[_0xabc553(0x19a)]),H(0x4,m[_0xabc553(0x1fb)])],exports[_0xabc553(0x1c8)]);const Me=0x7530,Le=_0xabc553(0x220);class is extends a[_0xabc553(0x150)]{constructor(){const _0x7fbd0a=_0xabc553;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x7fbd0a(0x2d2),new Set()),h(this,_0x7fbd0a(0x1f5),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x7fbd0a(0x1fe),new Map()),h(this,_0x7fbd0a(0x101),new Map()),this['_init']();}[_0xabc553(0x34d)](){const _0x4c20aa=_0xabc553;super[_0x4c20aa(0x34d)](),this[_0x4c20aa(0x1fe)][_0x4c20aa(0x1b9)]((_0x47d52f,_0x2e3313)=>this[_0x4c20aa(0x1ad)](_0x2e3313)),this[_0x4c20aa(0x167)]&&window['clearInterval'](this[_0x4c20aa(0x167)]);}[_0xabc553(0x2c5)](_0x42d048){const _0x46e524=_0xabc553;return this[_0x46e524(0x321)](_0x42d048)[_0x46e524(0x30b)](d[_0x46e524(0x145)]());}['editingUnit'](_0x37895b){const _0x253f81=_0xabc553;this['_selfUnitIDs'][_0x253f81(0x306)]===0x0&&this[_0x253f81(0x231)](),this[_0x253f81(0x2d2)][_0x253f81(0x22c)](_0x37895b),this[_0x253f81(0x331)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37895b],'isForwarded':!0x1});}[_0xabc553(0x1e4)](_0x3381cd){const _0x33ca31=_0xabc553;this[_0x33ca31(0x2d2)]['delete'](_0x3381cd),this[_0x33ca31(0x2d2)]['size']===0x0&&this[_0x33ca31(0x167)]&&window[_0x33ca31(0x2a6)](this[_0x33ca31(0x167)]);}[_0xabc553(0x364)](){const _0x221c30=_0xabc553;this[_0x221c30(0x225)](a[_0x221c30(0x20b)](d['fromEvent'](window,_0x221c30(0x2fa))[_0x221c30(0x29b)](_0xc79b43=>{const _0x4d0582=_0x221c30;if(_0xc79b43['key']!==Le||!_0xc79b43[_0x4d0582(0x253)])return;const _0xc06b16=JSON[_0x4d0582(0x1da)](_0xc79b43['newValue']);this[_0x4d0582(0x241)](_0xc06b16);}))),window[_0x221c30(0x12a)](_0x221c30(0x165),()=>this[_0x221c30(0x331)]({'type':0x1,'memberID':this[_0x221c30(0x137)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0xabc553(0x241)](_0x5d06d3){const _0x36f27c=_0xabc553;switch(_0x5d06d3[_0x36f27c(0x309)]){case 0x0:this['_handleJoinEvent'](_0x5d06d3);break;case 0x1:this[_0x36f27c(0x1cd)](_0x5d06d3);break;case 0x2:this[_0x36f27c(0x14a)](_0x5d06d3);break;}}[_0xabc553(0xee)](_0x318ac3){const _0x920e34=_0xabc553,{unitIDs:_0x5da074,memberID:_0x2e784c,isForwarded:_0x5a4313}=_0x318ac3;_0x5da074[_0x920e34(0x1b9)](_0x41adc2=>{const _0x53dcfa=_0x920e34;if(!_0x5a4313&&this[_0x53dcfa(0x1f5)][_0x53dcfa(0x17f)](_0x41adc2)&&this[_0x53dcfa(0x321)](_0x41adc2)[_0x53dcfa(0x1a8)](u[_0x53dcfa(0x2ed)][_0x53dcfa(0x327)]),!this['_unitOnClients'][_0x53dcfa(0x17f)](_0x41adc2)||!this[_0x53dcfa(0x1f5)][_0x53dcfa(0x299)](_0x41adc2)[_0x53dcfa(0x17f)](_0x2e784c)){const _0x5531f0=this['_unitOnClients']['get'](_0x41adc2)||new Set();_0x5531f0[_0x53dcfa(0x22c)](_0x2e784c),this['_unitOnClients'][_0x53dcfa(0x1d9)](_0x41adc2,_0x5531f0),this[_0x53dcfa(0x18c)](_0x2e784c);}}),_0x5a4313||this[_0x920e34(0x331)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x920e34(0x2d2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x258498){const _0x1fe2df=_0xabc553;this['_removeClearOtherTimer'](_0x258498);const _0x5217cd=window[_0x1fe2df(0x29a)](()=>{const _0x2ec82c=_0x1fe2df;this[_0x2ec82c(0x1f5)]['forEach'](_0x5248f7=>{const _0x3c233e=_0x2ec82c;_0x5248f7[_0x3c233e(0x173)](_0x258498);});},Me*0x2);this[_0x1fe2df(0x1fe)][_0x1fe2df(0x1d9)](_0x258498,_0x5217cd);}[_0xabc553(0x1ad)](_0x508238){const _0x394862=_0xabc553;if(this[_0x394862(0x1fe)][_0x394862(0x17f)](_0x508238)){const _0x37887d=this[_0x394862(0x1fe)][_0x394862(0x299)](_0x508238);_0x37887d&&window[_0x394862(0x1f2)](_0x37887d),this['_clearOtherTimers']['set'](_0x508238,null);}}['_handleLeaveEvent'](_0x15972f){const _0x1beba5=_0xabc553,{memberID:_0x5f43b8,unitIDs:_0x57c162}=_0x15972f;_0x57c162['forEach'](_0x187129=>{const _0x35188b=_0x520f;var _0x3fbc24;const _0x29c872=this[_0x35188b(0x1f5)][_0x35188b(0x299)](_0x187129);_0x29c872&&(_0x29c872[_0x35188b(0x173)](_0x5f43b8),(_0x3fbc24=this[_0x35188b(0x321)](_0x187129))==null||_0x3fbc24[_0x35188b(0x1a8)](_0x29c872['size']===0x0?u[_0x35188b(0x2ed)]['NO_OTHER_CLIENTS_EDITING']:u[_0x35188b(0x2ed)][_0x35188b(0x327)]));}),this[_0x1beba5(0x1ad)](_0x5f43b8);}[_0xabc553(0x14a)](_0x3b4b8f){const _0xe391eb=_0xabc553;this['_scheduleClearOtherTimer'](_0x3b4b8f[_0xe391eb(0x2f3)]);}[_0xabc553(0x331)](_0x323c0a){const _0x372e2c=_0xabc553;localStorage[_0x372e2c(0x25d)](Le,JSON['stringify'](_0x323c0a));}[_0xabc553(0x231)](){const _0x3f7d13=_0xabc553;this[_0x3f7d13(0x167)]=window['setInterval'](()=>{const _0xc7d1e2=_0x3f7d13;this['_send']({'type':0x2,'memberID':this[_0xc7d1e2(0x137)]});},Me);}[_0xabc553(0x321)](_0x17fa75){const _0x2bc487=_0xabc553;return this[_0x2bc487(0x101)][_0x2bc487(0x17f)](_0x17fa75)||this[_0x2bc487(0x101)][_0x2bc487(0x1d9)](_0x17fa75,new d['BehaviorSubject'](u[_0x2bc487(0x2ed)][_0x2bc487(0x118)])),this[_0x2bc487(0x101)][_0x2bc487(0x299)](_0x17fa75);}}var je=(_0x217627=>(_0x217627[_0x217627['UNDEFINED']=0x0]=_0xabc553(0x30c),_0x217627[_0x217627['OK']=0x1]='OK',_0x217627[_0x217627[_0xabc553(0x348)]=0x2]=_0xabc553(0x348),_0x217627[_0x217627[_0xabc553(0x217)]=0x3]=_0xabc553(0x217),_0x217627[_0x217627[_0xabc553(0x212)]=0x4]=_0xabc553(0x212),_0x217627[_0x217627[_0xabc553(0x32f)]=0x5]=_0xabc553(0x32f),_0x217627[_0x217627[_0xabc553(0x1f3)]=0x6]=_0xabc553(0x1f3),_0x217627[_0x217627[_0xabc553(0x2fc)]=0x7]=_0xabc553(0x2fc),_0x217627[_0x217627[_0xabc553(0x304)]=0x8]=_0xabc553(0x304),_0x217627[_0x217627['COMPLETION_FINISHED']=0x9]=_0xabc553(0x1b1),_0x217627[_0x217627[_0xabc553(0x176)]=0xa]=_0xabc553(0x176),_0x217627[_0x217627['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0xabc553(0x2ca),_0x217627[_0x217627[_0xabc553(0x34a)]=0xc]=_0xabc553(0x34a),_0x217627[_0x217627[_0xabc553(0x31a)]=0xd]=_0xabc553(0x31a),_0x217627[_0x217627[_0xabc553(0x21f)]=0xe]=_0xabc553(0x21f),_0x217627[_0x217627[_0xabc553(0x189)]=0x1389]=_0xabc553(0x189),_0x217627[_0x217627['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0xabc553(0x27c),_0x217627[_0x217627[_0xabc553(0x272)]=0x1772]=_0xabc553(0x272),_0x217627[_0x217627['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xabc553(0x1c2),_0x217627[_0x217627[_0xabc553(0x1c3)]=0x1b59]='APPLY_REJECT',_0x217627[_0x217627['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x217627[_0x217627['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xabc553(0x355),_0x217627[_0x217627[_0xabc553(0x2cf)]=0x1b5c]=_0xabc553(0x2cf),_0x217627[_0x217627['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x217627[_0x217627[_0xabc553(0x142)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x217627[_0x217627['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0xabc553(0x1c6),_0x217627[_0x217627['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xabc553(0x216),_0x217627[_0x217627['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xabc553(0x130),_0x217627[_0x217627['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0xabc553(0x186),_0x217627[_0x217627[_0xabc553(0x270)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x217627[_0x217627[_0xabc553(0x30d)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x217627[_0x217627[_0xabc553(0x263)]=0x2712]=_0xabc553(0x263),_0x217627[_0x217627['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xabc553(0x243),_0x217627[_0x217627[_0xabc553(0x1dc)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x217627[_0x217627[_0xabc553(0x254)]=0x271a]=_0xabc553(0x254),_0x217627[_0x217627[_0xabc553(0x115)]=0x271b]=_0xabc553(0x115),_0x217627[_0x217627[_0xabc553(0x1a2)]=0x271c]=_0xabc553(0x1a2),_0x217627[_0x217627[_0xabc553(0xef)]=0x271d]=_0xabc553(0xef),_0x217627[_0x217627[_0xabc553(0x11d)]=0x271e]=_0xabc553(0x11d),_0x217627[_0x217627[_0xabc553(0x31d)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x217627[_0x217627['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x217627[_0x217627['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0xabc553(0x1af),_0x217627[_0x217627[_0xabc553(0x345)]=0x2ee1]=_0xabc553(0x345),_0x217627[_0x217627[_0xabc553(0x236)]=0x2ee2]=_0xabc553(0x236),_0x217627[_0x217627['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x217627[_0x217627['USER_NOT_INVITED_CODE']=0x2ee4]=_0xabc553(0x16b),_0x217627[_0x217627[_0xabc553(0x2a0)]=0x2ee5]=_0xabc553(0x2a0),_0x217627[_0x217627[_0xabc553(0x330)]=0x32c9]=_0xabc553(0x330),_0x217627[_0x217627[_0xabc553(0x13a)]=0x32ca]=_0xabc553(0x13a),_0x217627[_0x217627[_0xabc553(0x15e)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x217627[_0x217627[_0xabc553(0x2fd)]=-0x1]=_0xabc553(0x2fd),_0x217627))(je||{}),ns=Object[_0xabc553(0x170)],rs=(_0x1439c4,_0x10c7ce,_0x5a5acd,_0x54fd37)=>{const _0x386223=_0xabc553;for(var _0x2e3fa8=_0x54fd37>0x1?void 0x0:_0x54fd37?ns(_0x10c7ce,_0x5a5acd):_0x10c7ce,_0x1b5546=_0x1439c4[_0x386223(0x24f)]-0x1,_0x3ff8d1;_0x1b5546>=0x0;_0x1b5546--)(_0x3ff8d1=_0x1439c4[_0x1b5546])&&(_0x2e3fa8=_0x3ff8d1(_0x2e3fa8)||_0x2e3fa8);return _0x2e3fa8;},ue=(_0xd52426,_0x58b6ab)=>(_0x3aa076,_0x548f37)=>_0x58b6ab(_0x3aa076,_0x548f37,_0xd52426);exports[_0xabc553(0x105)]=class extends a[_0xabc553(0x150)]{constructor(_0x5c28ea,_0x2b2708,_0xbf6779){const _0x31cdcf=_0xabc553;super(),this[_0x31cdcf(0x1f1)]=_0x5c28ea,this['_httpService']=_0x2b2708,this[_0x31cdcf(0x335)]=_0xbf6779;}async['runOnServer'](_0x294939,_0x353ed0,_0x790f12,..._0x42536d){const _0x21aae7=_0xabc553;var _0x358d3a,_0x4bc0a6,_0x1d0439,_0x58aeba;const _0x42d84a=this[_0x21aae7(0x1f1)][_0x21aae7(0x2c7)]();if(!_0x42d84a)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x4ff52e=((_0x358d3a=this[_0x21aae7(0x335)][_0x21aae7(0x255)](u[_0x21aae7(0x2d0)]))!=null?_0x358d3a:u[_0x21aae7(0x2f8)])+'/'+_0x294939+_0x21aae7(0x23b)+_0x353ed0,_0x2dc0a3=new URL(window['location'][_0x21aae7(0x1b6)]),_0x183d8e={'scriptId':_0x294939,'runId':(_0x4bc0a6=_0x2dc0a3[_0x21aae7(0x294)]['get'](_0x21aae7(0x338)))!=null?_0x4bc0a6:'','function':_0x353ed0,'unitId':_0x42d84a[_0x21aae7(0x1e7)](),'argsOfFunction':JSON[_0x21aae7(0x12e)](_0x42536d),'invokeId':(_0x1d0439=_0x790f12[_0x21aae7(0x311)])!=null?_0x1d0439:'','executionId':(_0x58aeba=_0x790f12[_0x21aae7(0x1c4)])!=null?_0x58aeba:''};try{const _0x2c2d66=await this[_0x21aae7(0x1b0)][_0x21aae7(0x20d)](_0x4ff52e,{'body':_0x183d8e});return _0x2c2d66[_0x21aae7(0x336)][_0x21aae7(0x1ea)]&&_0x2c2d66[_0x21aae7(0x336)][_0x21aae7(0x1ea)][_0x21aae7(0x366)]!==je['OK']?_0x21aae7(0xf0):_0x2c2d66[_0x21aae7(0x336)]['result'];}catch{return _0x21aae7(0xf0);}}},exports[_0xabc553(0x105)]=rs([ue(0x0,a[_0xabc553(0x323)]),ue(0x1,a[_0xabc553(0xf6)](G[_0xabc553(0x300)])),ue(0x2,a[_0xabc553(0x29f)])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports[_0xabc553(0x152)]=Ee,exports['SheetCollabCursorShape']=we,exports[_0xabc553(0x277)]=is,exports[_0xabc553(0x23f)]=Be;