@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506071606 → 0.8.0-nightly.202506091607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x43fc02=_0x23fc;(function(_0x5314c5,_0x4a5d51){const _0x5b94c3=_0x23fc,_0x4f65b0=_0x5314c5();while(!![]){try{const _0x328087=-parseInt(_0x5b94c3(0x77))/0x1+parseInt(_0x5b94c3(0x85))/0x2*(parseInt(_0x5b94c3(0x79))/0x3)+parseInt(_0x5b94c3(0x87))/0x4+parseInt(_0x5b94c3(0x81))/0x5*(parseInt(_0x5b94c3(0x78))/0x6)+parseInt(_0x5b94c3(0x83))/0x7+-parseInt(_0x5b94c3(0x86))/0x8*(parseInt(_0x5b94c3(0x88))/0x9)+parseInt(_0x5b94c3(0x82))/0xa*(-parseInt(_0x5b94c3(0x7a))/0xb);if(_0x328087===_0x4a5d51)break;else _0x4f65b0['push'](_0x4f65b0['shift']());}catch(_0x298a98){_0x4f65b0['push'](_0x4f65b0['shift']());}}}(_0x26d8,0x61ef1));function _0x23fc(_0x4ac78d,_0x4f450a){const _0x26d8a4=_0x26d8();return _0x23fc=function(_0x23fc31,_0x20d2e9){_0x23fc31=_0x23fc31-0x76;let _0x34dcd1=_0x26d8a4[_0x23fc31];return _0x34dcd1;},_0x23fc(_0x4ac78d,_0x4f450a);}const t=require(_0x43fc02(0x7f)),e=require(_0x43fc02(0x7c));class c extends e[_0x43fc02(0x76)]{[_0x43fc02(0x84)](_0x12ef28,_0x343248,..._0x9f2649){const _0x16ebd8=_0x43fc02;return this[_0x16ebd8(0x80)][_0x16ebd8(0x7b)](t[_0x16ebd8(0x7d)])['runOnServer'](_0x12ef28,_0x343248,{},..._0x9f2649);}}function _0x26d8(){const _0x348ab4=['FUniver','737737IvQxjJ','10050RbNOGj','2304507MnvXYS','4494446UVSqZa','get','@univerjs/core/facade','RemoteUniscriptService','extend','@univerjs-pro/collaboration-client-ui','_injector','1445PRBkXO','20uRZqfs','4618299xrNIfU','runOnServer','2MTApDv','422424UUAjoX','809816VMJphK','27bWOWcX'];_0x26d8=function(){return _0x348ab4;};return _0x26d8();}e[_0x43fc02(0x76)][_0x43fc02(0x7e)](c);
1
+ 'use strict';const _0x408584=_0x26c7;(function(_0x12d882,_0x2c9f7d){const _0x1da4f6=_0x26c7,_0x3a7067=_0x12d882();while(!![]){try{const _0x19582b=parseInt(_0x1da4f6(0xaf))/0x1*(-parseInt(_0x1da4f6(0xb3))/0x2)+-parseInt(_0x1da4f6(0xad))/0x3*(parseInt(_0x1da4f6(0xa7))/0x4)+-parseInt(_0x1da4f6(0xa9))/0x5*(parseInt(_0x1da4f6(0xaa))/0x6)+-parseInt(_0x1da4f6(0xab))/0x7*(-parseInt(_0x1da4f6(0xb1))/0x8)+parseInt(_0x1da4f6(0xb5))/0x9*(parseInt(_0x1da4f6(0xb6))/0xa)+parseInt(_0x1da4f6(0xae))/0xb*(-parseInt(_0x1da4f6(0xa5))/0xc)+parseInt(_0x1da4f6(0xac))/0xd*(parseInt(_0x1da4f6(0xa8))/0xe);if(_0x19582b===_0x2c9f7d)break;else _0x3a7067['push'](_0x3a7067['shift']());}catch(_0x3778ca){_0x3a7067['push'](_0x3a7067['shift']());}}}(_0x31f7,0x33c79));function _0x26c7(_0x4110e9,_0x46aa43){const _0x31f707=_0x31f7();return _0x26c7=function(_0x26c72f,_0x7c2fc9){_0x26c72f=_0x26c72f-0xa5;let _0x252f59=_0x31f707[_0x26c72f];return _0x252f59;},_0x26c7(_0x4110e9,_0x46aa43);}const t=require(_0x408584(0xb0)),e=require(_0x408584(0xa6));class c extends e[_0x408584(0xb2)]{[_0x408584(0xb7)](_0x3d7b66,_0x5a4b21,..._0x3ff479){const _0x210ea9=_0x408584;return this['_injector']['get'](t[_0x210ea9(0xb4)])[_0x210ea9(0xb7)](_0x3d7b66,_0x5a4b21,{},..._0x3ff479);}}e[_0x408584(0xb2)]['extend'](c);function _0x31f7(){const _0x4a016e=['4668tYOudx','@univerjs/core/facade','16RlODeR','658UwGRiD','55FNlwUh','60366XkwUKP','91rrfxPb','252733xsqXtm','175749MahtUs','8371aSIKHP','16644AaTDwW','@univerjs-pro/collaboration-client-ui','70728TUQAkk','FUniver','34LAjKng','RemoteUniscriptService','9FULibA','1074090GctAOx','runOnServer'];_0x31f7=function(){return _0x4a016e;};return _0x31f7();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x18db4e=_0x4661;(function(_0x17a3f0,_0x42b343){const _0x2987ac=_0x4661,_0x36624d=_0x17a3f0();while(!![]){try{const _0xb7a280=parseInt(_0x2987ac(0x3a4))/0x1*(-parseInt(_0x2987ac(0x2a2))/0x2)+parseInt(_0x2987ac(0x373))/0x3+parseInt(_0x2987ac(0x1ac))/0x4*(parseInt(_0x2987ac(0x247))/0x5)+-parseInt(_0x2987ac(0x2fe))/0x6*(parseInt(_0x2987ac(0x3ed))/0x7)+-parseInt(_0x2987ac(0x33c))/0x8*(-parseInt(_0x2987ac(0x3e6))/0x9)+-parseInt(_0x2987ac(0x2c2))/0xa+parseInt(_0x2987ac(0x28b))/0xb;if(_0xb7a280===_0x42b343)break;else _0x36624d['push'](_0x36624d['shift']());}catch(_0x15b9ac){_0x36624d['push'](_0x36624d['shift']());}}}(_0x4111,0x37a88));var Ve=Object['defineProperty'],Xe=(_0x201740,_0x414215,_0x478009)=>_0x414215 in _0x201740?Ve(_0x201740,_0x414215,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x478009}):_0x201740[_0x414215]=_0x478009,h=(_0x35208c,_0x32e97f,_0x455963)=>Xe(_0x35208c,typeof _0x32e97f!=_0x18db4e(0x1bb)?_0x32e97f+'':_0x32e97f,_0x455963);Object[_0x18db4e(0x33e)](exports,Symbol[_0x18db4e(0x252)],{'value':_0x18db4e(0x35a)});const u=require(_0x18db4e(0x3eb)),a=require(_0x18db4e(0x2bb)),p=require(_0x18db4e(0x37f)),G=require(_0x18db4e(0x1a2)),b=require('@univerjs/docs-ui'),Ge=require(_0x18db4e(0x401)),d=require('rxjs'),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x18db4e(0x331)),g=require(_0x18db4e(0x1e1)),$=require(_0x18db4e(0x31a)),X=require(_0x18db4e(0x210)),w=require(_0x18db4e(0x34c)),T=require(_0x18db4e(0x1f1)),D=require(_0x18db4e(0x1bc)),M=require('react'),Ke=require(_0x18db4e(0x18d));var qe=Object[_0x18db4e(0x25b)],ze=(_0x371f99,_0xdc9bd6,_0x55db40,_0x3dbdd2)=>{const _0x3c5791=_0x18db4e;for(var _0x56ca92=_0x3dbdd2>0x1?void 0x0:_0x3dbdd2?qe(_0xdc9bd6,_0x55db40):_0xdc9bd6,_0x32e224=_0x371f99[_0x3c5791(0x3f7)]-0x1,_0x2fecf6;_0x32e224>=0x0;_0x32e224--)(_0x2fecf6=_0x371f99[_0x32e224])&&(_0x56ca92=_0x2fecf6(_0x56ca92)||_0x56ca92);return _0x56ca92;},Te=(_0x47d8f4,_0x55fa3c)=>(_0x13d6c3,_0x1ce40b)=>_0x55fa3c(_0x13d6c3,_0x1ce40b,_0x47d8f4);let de=class extends a[_0x18db4e(0x387)]{constructor(_0x1257d7,_0x3a5db7){const _0x170813=_0x18db4e;super(),this[_0x170813(0x329)]=_0x1257d7,this[_0x170813(0x1c0)]=_0x3a5db7,this[_0x170813(0x35e)]();}['_init'](){const _0x3a4253=_0x18db4e,_0x20656b=this;this[_0x3a4253(0x3ae)](this[_0x3a4253(0x329)][_0x3a4253(0x3c0)]({'onBeforePasteImage':async _0x39ada7=>{const _0x250491=_0x3a4253,_0x2aa6cc=await _0x20656b[_0x250491(0x1c0)][_0x250491(0x345)](_0x39ada7);return _0x2aa6cc?{'source':_0x2aa6cc[_0x250491(0x19f)],'imageSourceType':_0x2aa6cc[_0x250491(0x2ff)]}:null;}}));}};de=ze([Te(0x0,b[_0x18db4e(0x3d7)]),Te(0x1,Ge[_0x18db4e(0x366)])],de);const Oe=[_0x18db4e(0x232),_0x18db4e(0x2a3),_0x18db4e(0x2b3),_0x18db4e(0x285),_0x18db4e(0x3b5),_0x18db4e(0x1a8)];class me extends a[_0x18db4e(0x378)]{constructor(){const _0x47fed7=_0x18db4e;super(...arguments),h(this,_0x47fed7(0x323),new Map()),h(this,_0x47fed7(0x346),0x0);}[_0x18db4e(0x286)](_0x1a06c5){const _0x280ac7=_0x18db4e;if(this[_0x280ac7(0x323)][_0x280ac7(0x3f3)](_0x1a06c5))return this[_0x280ac7(0x323)][_0x280ac7(0x3b3)](_0x1a06c5);const _0x5dc3ba=Oe[this['_colorIndex']];return this[_0x280ac7(0x346)]=(this[_0x280ac7(0x346)]+0x1)%Oe[_0x280ac7(0x3f7)],this['_assignedColors'][_0x280ac7(0x26b)](_0x1a06c5,_0x5dc3ba),_0x5dc3ba;}}function we(_0x159733){const _0x1b4d68=_0x18db4e;let _0x5e92db='';for(const _0x42d7d4 of _0x159733){const {startOffset:_0x523e7d,endOffset:_0x33e51f,isActive:_0x5c905c,rangeType:_0x1aef89,segmentId:_0x92099b,segmentPage:_0x307881}=_0x42d7d4;_0x5e92db[_0x1b4d68(0x3f7)]&&(_0x5e92db+=','),_0x5e92db+=_0x523e7d+':'+_0x33e51f+':'+(_0x5c905c?'1':'0')+':'+_0x1aef89+':'+_0x92099b+':'+_0x307881;}return _0x5e92db;}function Je(_0x30aef8){const _0x7beecc=_0x18db4e,_0x2fc80b=_0x30aef8['split'](','),_0x5d3177=[];for(const _0x2b71cd of _0x2fc80b){const [_0x4e4329,_0x1e2397,_0x495b7a,_0x467754,_0x2c6857,_0x434179]=_0x2b71cd[_0x7beecc(0x337)](':');_0x5d3177[_0x7beecc(0x342)]({'startOffset':Number(_0x4e4329),'endOffset':Number(_0x1e2397),'collapsed':_0x4e4329===_0x1e2397,'isActive':_0x495b7a==='1','rangeType':_0x467754===a[_0x7beecc(0x383)][_0x7beecc(0x3c8)]?a[_0x7beecc(0x383)][_0x7beecc(0x3c8)]:a[_0x7beecc(0x383)][_0x7beecc(0x222)],'segmentId':typeof _0x2c6857==_0x7beecc(0x3b1)?String(_0x2c6857):'','segmentPage':Number(_0x434179!=null?_0x434179:-0x1)});}return _0x5d3177[_0x7beecc(0x2d7)](_0x217cc4=>_0x217cc4['isActive'])||(_0x5d3177[0x0][_0x7beecc(0x319)]=!0x0),_0x5d3177;}class Ce extends a['RxDisposable']{constructor(){const _0x12c34d=_0x18db4e;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x12c34d(0x3cf),this[_0x12c34d(0x300)][_0x12c34d(0x369)]());}[_0x18db4e(0x28d)](_0x1d38fa){const _0x1e0a9b=_0x18db4e,{unitID:_0x210f36,memberID:_0x269a9e,textRanges:_0x4f3ae7}=_0x1d38fa,_0x4ebbfd=we(_0x4f3ae7);if(_0x4ebbfd==='')return;const _0x54983e={'unitID':_0x210f36,'memberID':_0x269a9e,'selection':_0x4ebbfd};this['_collabCursorState$'][_0x1e0a9b(0x187)](_0x54983e);}}var Ze=Object[_0x18db4e(0x25b)],Qe=(_0x4b545b,_0x57d3a9,_0x12f200,_0x59e363)=>{const _0x19ee17=_0x18db4e;for(var _0x355a72=_0x59e363>0x1?void 0x0:_0x59e363?Ze(_0x57d3a9,_0x12f200):_0x57d3a9,_0x472794=_0x4b545b[_0x19ee17(0x3f7)]-0x1,_0x5f1786;_0x472794>=0x0;_0x472794--)(_0x5f1786=_0x4b545b[_0x472794])&&(_0x355a72=_0x5f1786(_0x355a72)||_0x355a72);return _0x355a72;},L=(_0x369ddd,_0x3999bc)=>(_0x2e5815,_0x4bc18b)=>_0x3999bc(_0x2e5815,_0x4bc18b,_0x369ddd);const et=0x12c,tt=0x64;let fe=class extends a[_0x18db4e(0x387)]{constructor(_0x596d02,_0x2c5130,_0x252e28,_0x2778b0,_0x5d09db,_0x1f990b,_0x453873,_0x1530ba,_0x509a76){const _0x2ea437=_0x18db4e;super(),h(this,_0x2ea437(0x1a9),!0x1),h(this,'_init',!0x1),h(this,_0x2ea437(0x2ba),new d['BehaviorSubject'](new Map())),h(this,_0x2ea437(0x22c),this[_0x2ea437(0x2ba)][_0x2ea437(0x369)]()),h(this,'_roomMembers$',new d[(_0x2ea437(0x2bd))]([])),h(this,_0x2ea437(0x36e),this[_0x2ea437(0x2c0)][_0x2ea437(0x376)](d[_0x2ea437(0x2ed)](et))),h(this,_0x2ea437(0x18b),a[_0x2ea437(0x251)](_0x1cb40d=>{const _0x2dbf44=_0x2ea437,_0x38f6cb={'eventID':m[_0x2dbf44(0x233)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2dbf44(0x208)],'memberID':this['_session'][_0x2dbf44(0x29d)](),'selection':we(_0x1cb40d)}};this[_0x2dbf44(0x390)]['send'](_0x38f6cb,this['unitID']);},tt)),(this[_0x2ea437(0x208)]=_0x596d02,this[_0x2ea437(0x390)]=_0x2c5130,this[_0x2ea437(0x1d3)]=_0x252e28,this[_0x2ea437(0x3b8)]=_0x2778b0,this[_0x2ea437(0x3e0)]=_0x5d09db,this[_0x2ea437(0x408)]=_0x1f990b,this[_0x2ea437(0x33d)]=_0x453873,this[_0x2ea437(0x184)]=_0x1530ba,this['_commandService']=_0x509a76);}get[_0x18db4e(0x347)](){const _0x20a0b0=_0x18db4e;return this[_0x20a0b0(0x2ba)][_0x20a0b0(0x197)]();}get[_0x18db4e(0x1ea)](){const _0x20622f=_0x18db4e;return this[_0x20622f(0x2c0)]['getValue']();}[_0x18db4e(0x2d3)](){const _0x35333b=_0x18db4e;super[_0x35333b(0x2d3)](),this[_0x35333b(0x2ba)][_0x35333b(0x187)](new Map()),this[_0x35333b(0x2ba)][_0x35333b(0x29f)](),this[_0x35333b(0x2c0)]['next']([]),this[_0x35333b(0x2c0)][_0x35333b(0x29f)]();}['init'](){const _0x51d3ce=_0x18db4e;this[_0x51d3ce(0x35e)]||(this[_0x51d3ce(0x35e)]=!0x0,this[_0x51d3ce(0x390)][_0x51d3ce(0x338)][_0x51d3ce(0x376)](d['takeUntil'](this['dispose$']))[_0x51d3ce(0x3d8)](_0x564660=>{const _0x4e4d30=_0x51d3ce;_0x564660===u[_0x4e4d30(0x1ee)][_0x4e4d30(0x2de)]?this[_0x4e4d30(0x321)]():this[_0x4e4d30(0x328)]();}),this['_session'][_0x51d3ce(0x1c4)][_0x51d3ce(0x376)](d[_0x51d3ce(0x36a)](this[_0x51d3ce(0x20c)]))[_0x51d3ce(0x3d8)](_0x3d5c26=>{const _0x5e3e1c=_0x51d3ce,_0x15703b=_0x3d5c26[_0x5e3e1c(0x32f)];_0x15703b===m[_0x5e3e1c(0x233)]['UPDATE_CURSOR']&&this[_0x5e3e1c(0x27c)](_0x3d5c26),_0x15703b===m[_0x5e3e1c(0x233)]['USERS_LEAVE']&&this[_0x5e3e1c(0x29b)](_0x3d5c26);}),this[_0x51d3ce(0x3ae)](this['_commandService'][_0x51d3ce(0x1d5)](_0xada8=>{const _0x408daa=_0x51d3ce,_0x56bcb4=_0xada8['params'];_0x56bcb4!=null&&this[_0x408daa(0x1a9)]&&_0xada8['id']===Y[_0x408daa(0x3d6)]['id']&&_0x56bcb4[_0x408daa(0x356)]===this['unitID']&&_0x56bcb4[_0x408daa(0x1ad)]===!0x1&&_0x56bcb4[_0x408daa(0x40f)][_0x408daa(0x3f7)]>0x0&&this['_updateLocalCursor'](_0x56bcb4[_0x408daa(0x40f)]);})),this['_syncEditingCollabCursorService'][_0x51d3ce(0x3cf)][_0x51d3ce(0x376)](d[_0x51d3ce(0x36a)](this[_0x51d3ce(0x20c)]))['subscribe'](_0x1ccda0=>{const _0x240ac7=_0x51d3ce;if((_0x1ccda0==null?void 0x0:_0x1ccda0[_0x240ac7(0x208)])!==this[_0x240ac7(0x208)])return;const _0x2632e7={'eventID':m[_0x240ac7(0x233)][_0x240ac7(0x2cd)],'data':_0x1ccda0};this[_0x240ac7(0x27c)](_0x2632e7);}),this[_0x51d3ce(0x3ae)](this[_0x51d3ce(0x17f)][_0x51d3ce(0x1d5)](_0x3bcc15=>{const _0x49b871=_0x51d3ce;if(_0x3bcc15[_0x49b871(0x223)]==null)return;const _0x5bc618=_0x3bcc15[_0x49b871(0x223)];if(_0x3bcc15['id']!==Y['RichTextEditingMutation']['id']||_0x5bc618[_0x49b871(0x356)]!==this[_0x49b871(0x208)])return;const _0x262318={'id':_0x49b871(0x2d6),'params':_0x5bc618},_0x37c09c=this[_0x49b871(0x347)];for(const [_0x36b8b8,_0x4d5cbf]of _0x37c09c){const _0x36d09f={'id':_0x49b871(0x2d6),'params':{'unitId':this[_0x49b871(0x208)],'actions':null,'textRanges':_0x4d5cbf['ranges']}},_0x34e6b2=this['_transformService'][_0x49b871(0x340)](_0x262318,_0x36d09f,!0x1);if(m[_0x49b871(0x2fc)](_0x34e6b2))throw _0x34e6b2['error'];_0x37c09c['set'](_0x36b8b8,{..._0x4d5cbf,'ranges':_0x34e6b2[_0x49b871(0x1c5)][_0x49b871(0x223)][_0x49b871(0x3b9)]});}queueMicrotask(()=>{const _0x25bdc5=_0x49b871;this[_0x25bdc5(0x2ba)][_0x25bdc5(0x187)](_0x37c09c);});})));}[_0x18db4e(0x27c)](_0x2f0ca4){const _0x218754=_0x18db4e;var _0x1dc702,_0x1b75a5;const {memberID:_0x1eda33,selection:_0xc658db}=_0x2f0ca4['data'],_0x2ece01=Je(_0xc658db),_0x41e4dc=(_0x1b75a5=(_0x1dc702=this[_0x218754(0x3e0)][_0x218754(0x1b3)](this[_0x218754(0x208)],_0x1eda33))==null?void 0x0:_0x1dc702[_0x218754(0x276)])!=null?_0x1b75a5:_0x218754(0x400),_0x32ab44={'color':this[_0x218754(0x3b8)][_0x218754(0x286)](_0x1eda33),'name':_0x41e4dc,'ranges':_0x2ece01},_0x349c57=this[_0x218754(0x347)];_0x349c57[_0x218754(0x26b)](_0x1eda33,_0x32ab44),this[_0x218754(0x2ba)][_0x218754(0x187)](_0x349c57);}[_0x18db4e(0x29b)](_0x1084fe){const _0x12d745=_0x18db4e,{memberID:_0x449d30}=_0x1084fe['data'],_0x32b014=this[_0x12d745(0x347)];_0x32b014[_0x12d745(0x3c6)](_0x449d30),this[_0x12d745(0x2ba)][_0x12d745(0x187)](_0x32b014);}[_0x18db4e(0x321)](){const _0x2fc67a=_0x18db4e;var _0x349162;if(this[_0x2fc67a(0x1a9)]=!0x0,((_0x349162=this['_univerInstanceService'][_0x2fc67a(0x3a3)]())==null?void 0x0:_0x349162[_0x2fc67a(0x2ce)]())!==this[_0x2fc67a(0x208)])return;const _0x9d8cf9=this[_0x2fc67a(0x1d3)][_0x2fc67a(0x3b3)](Y[_0x2fc67a(0x392)])[_0x2fc67a(0x336)]();Array[_0x2fc67a(0x246)](_0x9d8cf9)&&_0x9d8cf9[_0x2fc67a(0x3f7)]>0x0&&this[_0x2fc67a(0x18b)](_0x9d8cf9);}[_0x18db4e(0x328)](){const _0x47bb10=_0x18db4e;this[_0x47bb10(0x1a9)]=!0x1;}};fe=Qe([L(0x2,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),L(0x3,a[_0x18db4e(0x1ff)](me)),L(0x4,a[_0x18db4e(0x1ff)](u['MemberService'])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x18db4e(0x324)]),L(0x8,a[_0x18db4e(0x39d)])],fe);var st=Object[_0x18db4e(0x25b)],it=(_0x2e76ff,_0x14b090,_0x4a66b9,_0xddae35)=>{for(var _0x2b864a=_0xddae35>0x1?void 0x0:_0xddae35?st(_0x14b090,_0x4a66b9):_0x14b090,_0x568471=_0x2e76ff['length']-0x1,_0x3cbd3b;_0x568471>=0x0;_0x568471--)(_0x3cbd3b=_0x2e76ff[_0x568471])&&(_0x2b864a=_0x3cbd3b(_0x2b864a)||_0x2b864a);return _0x2b864a;},A=(_0x211eb8,_0x22039d)=>(_0x22c41c,_0x2d73ed)=>_0x22039d(_0x22c41c,_0x2d73ed,_0x211eb8);const nt=0x12c,rt=0x64,ot=()=>{let _0x5884b1=[],_0x1f66e0=!0x1;return _0x42ff67=>{const _0x207768=_0x4661;_0x5884b1[_0x207768(0x342)](_0x42ff67),_0x1f66e0||(_0x1f66e0=!0x0,setTimeout(()=>{const _0x4f6f43=_0x207768;_0x5884b1[_0x4f6f43(0x281)](_0x209151=>_0x209151()),_0x5884b1=[],_0x1f66e0=!0x1;}));};};let Se=class extends a[_0x18db4e(0x387)]{constructor(_0xb84588,_0x1c7f65,_0x1aba3f,_0x21c7e0,_0x367c1f,_0x427d0e,_0x461866,_0x68f5bf){const _0x552074=_0x18db4e;super(),h(this,_0x552074(0x1a9),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x552074(0x2bd))](new Map())),h(this,'cursorInfo$',this[_0x552074(0x2ba)]['asObservable']()),h(this,_0x552074(0x2c0),new d['BehaviorSubject']([])),h(this,'roomMembers$',this['_roomMembers$'][_0x552074(0x376)](d[_0x552074(0x2ed)](nt))),h(this,_0x552074(0x18b),a[_0x552074(0x251)]((_0x3549fa,_0x309fd9)=>{const _0x1ed8b9=_0x552074,_0x361fb3={'eventID':m[_0x1ed8b9(0x233)][_0x1ed8b9(0x2cd)],'data':{'unitID':this['unitID'],'memberID':this[_0x1ed8b9(0x390)]['getMemberID'](),'selection':Ee[_0x1ed8b9(0x3e4)](_0x3549fa,_0x309fd9['range'])}};this[_0x1ed8b9(0x390)][_0x1ed8b9(0x192)](_0x361fb3,this[_0x1ed8b9(0x208)]);},rt)),(this[_0x552074(0x208)]=_0xb84588,this[_0x552074(0x390)]=_0x1c7f65,this[_0x552074(0x1d3)]=_0x1aba3f,this[_0x552074(0x3b8)]=_0x21c7e0,this[_0x552074(0x3e0)]=_0x367c1f,this['_univerInstanceService']=_0x427d0e,this['_commandService']=_0x461866,this[_0x552074(0x279)]=_0x68f5bf);}get[_0x18db4e(0x347)](){const _0x44bff1=_0x18db4e;return this[_0x44bff1(0x2ba)]['getValue']();}get['roomMembers'](){const _0x295f1d=_0x18db4e;return this[_0x295f1d(0x2c0)][_0x295f1d(0x197)]();}[_0x18db4e(0x2d3)](){const _0x5d58e7=_0x18db4e;super['dispose'](),this['_cursorInfo$'][_0x5d58e7(0x187)](new Map()),this[_0x5d58e7(0x2ba)][_0x5d58e7(0x29f)](),this[_0x5d58e7(0x2c0)][_0x5d58e7(0x187)]([]),this[_0x5d58e7(0x2c0)][_0x5d58e7(0x29f)]();}[_0x18db4e(0x258)](){const _0x342793=_0x18db4e;this[_0x342793(0x35e)]||(this[_0x342793(0x35e)]=!0x0,this['_session'][_0x342793(0x338)][_0x342793(0x376)](d['takeUntil'](this[_0x342793(0x20c)]))['subscribe'](_0x5d6bf7=>{const _0xfcfa4d=_0x342793;_0x5d6bf7===u[_0xfcfa4d(0x1ee)]['ONLINE']?this['_toggleOnline']():this[_0xfcfa4d(0x328)]();}),this['_session'][_0x342793(0x1c4)]['pipe'](d['takeUntil'](this['dispose$']))['subscribe'](_0x29baf7=>{const _0x1afc68=_0x342793,_0x306b67=_0x29baf7[_0x1afc68(0x32f)];_0x306b67===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x1afc68(0x27c)](_0x29baf7),_0x306b67===m[_0x1afc68(0x233)][_0x1afc68(0x242)]&&this['_onCursorDelete'](_0x29baf7);}),this[_0x342793(0x3bd)](),this[_0x342793(0x3ae)](this['_commandService']['onCommandExecuted'](_0x2d057f=>{const _0x7b543f=_0x342793;if(this['_online']&&_0x2d057f['id']===g[_0x7b543f(0x403)]['id']&&_0x2d057f[_0x7b543f(0x223)][_0x7b543f(0x356)]===this['unitID']){const _0x253027=_0x2d057f[_0x7b543f(0x223)];this[_0x7b543f(0x18b)](_0x253027['subUnitId'],_0x253027[_0x7b543f(0x396)][0x0]);}})));}[_0x18db4e(0x27c)](_0x40b620){const _0x581aae=_0x18db4e;var _0x5a1a30,_0x528c9b;const {memberID:_0x3c81c2,selection:_0x2bce5c}=_0x40b620['data'],{sheetName:_0x193529,range:_0x45caec}=Ee[_0x581aae(0x314)](_0x2bce5c),_0x246a65={'name':(_0x528c9b=(_0x5a1a30=this[_0x581aae(0x3e0)][_0x581aae(0x1b3)](this[_0x581aae(0x208)],_0x3c81c2))==null?void 0x0:_0x5a1a30[_0x581aae(0x276)])!=null?_0x528c9b:_0x581aae(0x400),'range':this['_getMergeRange'](_0x193529,_0x45caec),'sheetID':_0x193529,'color':this[_0x581aae(0x3b8)][_0x581aae(0x286)](_0x3c81c2),'selection':_0x2bce5c},_0x38d0a1=this[_0x581aae(0x347)];_0x38d0a1[_0x581aae(0x26b)](_0x3c81c2,_0x246a65),this[_0x581aae(0x2ba)][_0x581aae(0x187)](_0x38d0a1);}[_0x18db4e(0x29b)](_0x543436){const _0x10c130=_0x18db4e,{memberID:_0x10c4ee}=_0x543436[_0x10c130(0x318)],_0x1fbbe0=this['cursorInfo'];_0x1fbbe0[_0x10c130(0x3c6)](_0x10c4ee),this[_0x10c130(0x2ba)]['next'](_0x1fbbe0);}[_0x18db4e(0x3cc)](_0x14f0ab,_0x5f4d0a){const _0x4fb994=_0x18db4e;var _0x301b8e,_0x188521;const _0x5c4d98=(_0x188521=(_0x301b8e=this['_univerInstanceService'][_0x4fb994(0x3df)](this[_0x4fb994(0x208)]))==null?void 0x0:_0x301b8e[_0x4fb994(0x1af)](_0x14f0ab))==null?void 0x0:_0x188521['getMergeData']();return(_0x5c4d98==null?void 0x0:_0x5c4d98[_0x4fb994(0x3fd)](_0x38847c=>a[_0x4fb994(0x1ca)][_0x4fb994(0x275)](_0x38847c,_0x5f4d0a)))||_0x5f4d0a;}[_0x18db4e(0x3bd)](){const _0x55a603=_0x18db4e,_0x45e894=new a[(_0x55a603(0x216))](),_0x39dbd6=ot(),_0x4119fa=()=>{const _0x420278=_0x55a603;_0x45e894['dispose']();const _0x48750b=(_0x54496b,_0x5398cd,_0x4dd1e3,_0x5589ab)=>{const _0x53c3a0=_0x4661;let _0x447b94=[];switch(_0x54496b['id']){case g[_0x53c3a0(0x30d)][_0x53c3a0(0x316)]:{_0x447b94=g['handleDeleteRangeMoveLeft'](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)][_0x53c3a0(0x406)]:{_0x447b94=g[_0x53c3a0(0x307)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)]['InsertColCommandId']:{_0x447b94=g[_0x53c3a0(0x23e)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)][_0x53c3a0(0x3c3)]:{_0x447b94=g[_0x53c3a0(0x2b2)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)][_0x53c3a0(0x257)]:{_0x447b94=g[_0x53c3a0(0x385)](_0x54496b,_0x5589ab);break;}case g['EffectRefRangId'][_0x53c3a0(0x37b)]:{_0x447b94=g[_0x53c3a0(0x1fa)](_0x54496b,_0x5589ab);break;}case g['EffectRefRangId'][_0x53c3a0(0x294)]:{_0x447b94=g[_0x53c3a0(0x3be)](_0x54496b,_0x5589ab);break;}case g['EffectRefRangId'][_0x53c3a0(0x354)]:{_0x447b94=g[_0x53c3a0(0x3f5)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)]['RemoveRowCommandId']:{_0x447b94=g[_0x53c3a0(0x3b0)](_0x54496b,_0x5589ab);break;}}const _0x54853c=g['runRefRangeMutations'](_0x447b94,_0x5589ab),_0x4a3416=this[_0x53c3a0(0x347)][_0x53c3a0(0x3b3)](_0x5398cd);if(_0x4a3416&&_0x54853c){const _0x204d5e={..._0x4a3416,'range':_0x54853c};this['cursorInfo'][_0x53c3a0(0x26b)](_0x5398cd,_0x204d5e),_0x39dbd6(()=>{const _0x2303c9=_0x53c3a0,_0x3ca361=this[_0x2303c9(0x279)][_0x2303c9(0x362)](_0x54853c,_0x21076c=>(_0x3ca361[_0x2303c9(0x2d3)](),_0x48750b(_0x21076c,_0x5398cd,_0x4dd1e3,_0x54853c)));_0x45e894[_0x2303c9(0x245)](_0x3ca361);});}return{'redos':[],'undos':[]};};this[_0x420278(0x347)][_0x420278(0x281)]((_0x2a2ec4,_0x18b417)=>{const _0x5d0b86=_0x420278,{range:_0x5b1f6a,sheetID:_0x10fb49}=_0x2a2ec4,_0x1d2a7e=this['_refRangeService']['registerRefRange'](_0x5b1f6a,_0x23985c=>(_0x1d2a7e[_0x5d0b86(0x2d3)](),_0x48750b(_0x23985c,_0x18b417,_0x10fb49,_0x5b1f6a)));_0x45e894[_0x5d0b86(0x245)](_0x1d2a7e);});};this['disposeWithMe'](a[_0x55a603(0x3e7)](this[_0x55a603(0x2ba)][_0x55a603(0x3d8)](()=>{_0x4119fa();})));}['_toggleOnline'](){const _0x1743ff=_0x18db4e;var _0x237f1a,_0x5e72a6;if(this[_0x1743ff(0x1a9)]=!0x0,((_0x237f1a=this[_0x1743ff(0x184)]['getFocusedUnit']())==null?void 0x0:_0x237f1a[_0x1743ff(0x2ce)]())!==this[_0x1743ff(0x208)])return;const _0x468bab=(_0x5e72a6=this[_0x1743ff(0x1d3)][_0x1743ff(0x3b3)](g[_0x1743ff(0x2a9)])['getCurrentSelections']())==null?void 0x0:_0x5e72a6[0x0],_0x1d2414=this[_0x1743ff(0x184)][_0x1743ff(0x3fe)](a[_0x1743ff(0x1b7)][_0x1743ff(0x2c8)])[_0x1743ff(0x24b)]();_0x468bab&&_0x1d2414&&this[_0x1743ff(0x18b)](_0x1d2414['getSheetId'](),_0x468bab);}['_toggleOffline'](){const _0x17caf1=_0x18db4e;this[_0x17caf1(0x1a9)]=!0x1;}};Se=it([A(0x2,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),A(0x3,a[_0x18db4e(0x1ff)](me)),A(0x4,a[_0x18db4e(0x1ff)](u['MemberService'])),A(0x5,a[_0x18db4e(0x324)]),A(0x6,a[_0x18db4e(0x39d)]),A(0x7,a[_0x18db4e(0x1ff)](g[_0x18db4e(0x327)]))],Se);var at=Object[_0x18db4e(0x25b)],ct=(_0x3149c5,_0x7ee193,_0x47c30e,_0x4285c7)=>{for(var _0x7f8906=_0x4285c7>0x1?void 0x0:_0x4285c7?at(_0x7ee193,_0x47c30e):_0x7ee193,_0x196e1a=_0x3149c5['length']-0x1,_0x25614f;_0x196e1a>=0x0;_0x196e1a--)(_0x25614f=_0x3149c5[_0x196e1a])&&(_0x7f8906=_0x25614f(_0x7f8906)||_0x7f8906);return _0x7f8906;},ie=(_0x599688,_0x20cf74)=>(_0x22b68e,_0x170ca3)=>_0x20cf74(_0x22b68e,_0x170ca3,_0x599688);let x=class extends a['RxDisposable']{constructor(_0x164717,_0x2b9e0f,_0x46ea2c){const _0xb778dc=_0x18db4e;super(),h(this,_0xb778dc(0x1e6),new Map()),h(this,_0xb778dc(0x2d5),new d[(_0xb778dc(0x1db))]()),(this['_univerInstanceService']=_0x164717,this[_0xb778dc(0x1d3)]=_0x2b9e0f,this[_0xb778dc(0x320)]=_0x46ea2c,this[_0xb778dc(0x35e)]());}[_0x18db4e(0x2d3)](){const _0x220c00=_0x18db4e;super[_0x220c00(0x2d3)](),this['_entityInit$'][_0x220c00(0x29f)](),this[_0x220c00(0x1e6)]['forEach'](_0x26b9c4=>_0x26b9c4['dispose']());}[_0x18db4e(0x2b4)](_0x21c6e2){const _0x4504ac=_0x18db4e;return this[_0x4504ac(0x1e6)]['has'](_0x21c6e2)?this[_0x4504ac(0x1e6)][_0x4504ac(0x3b3)](_0x21c6e2)[_0x4504ac(0x22c)]:this[_0x4504ac(0x2d5)]['pipe'](d[_0x4504ac(0x261)](_0x3ca50a=>_0x3ca50a[_0x4504ac(0x208)]===_0x21c6e2),d[_0x4504ac(0x3ca)](_0x397f2d=>_0x397f2d[_0x4504ac(0x22c)]));}[_0x18db4e(0x35e)](){const _0xc75f6e=_0x18db4e;this['_univerInstanceService'][_0xc75f6e(0x351)](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x2c8)])[_0xc75f6e(0x376)](d['takeUntil'](this[_0xc75f6e(0x20c)]))[_0xc75f6e(0x3d8)](async _0x5f46db=>{const _0x186afc=_0xc75f6e,_0x19886c=_0x5f46db[_0x186afc(0x2ce)](),_0x5e252d=await this[_0x186afc(0x237)](_0x19886c);this[_0x186afc(0x2d5)]['next'](_0x5e252d),this['_entities'][_0x186afc(0x26b)](_0x19886c,_0x5e252d);}),this[_0xc75f6e(0x184)]['getTypeOfUnitAdded$'](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x226)])['pipe'](d[_0xc75f6e(0x36a)](this[_0xc75f6e(0x20c)]))[_0xc75f6e(0x376)](d[_0xc75f6e(0x261)](_0x58a049=>!_0x58a049[_0xc75f6e(0x2ce)]()[_0xc75f6e(0x3c2)]('__')))['subscribe'](async _0x2d5663=>{const _0x5f165b=_0xc75f6e,_0x33b323=_0x2d5663[_0x5f165b(0x2ce)](),_0x28088c=await this['_startDocCollabCursor'](_0x33b323);this[_0x5f165b(0x2d5)][_0x5f165b(0x187)](_0x28088c),this['_entities']['set'](_0x33b323,_0x28088c);}),d[_0xc75f6e(0x1ab)](this[_0xc75f6e(0x184)]['getTypeOfUnitDisposed$'](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x226)]),this[_0xc75f6e(0x184)][_0xc75f6e(0x1e2)](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x2c8)]))[_0xc75f6e(0x376)](d[_0xc75f6e(0x36a)](this['dispose$']))[_0xc75f6e(0x3d8)](_0x5a85f2=>{const _0x47b9c2=_0xc75f6e,_0x313f00=_0x5a85f2[_0x47b9c2(0x2ce)](),_0x49f614=this[_0x47b9c2(0x1e6)][_0x47b9c2(0x3b3)](_0x313f00);_0x49f614&&(_0x49f614[_0x47b9c2(0x2d3)](),this[_0x47b9c2(0x1e6)][_0x47b9c2(0x3c6)](_0x313f00));});}async[_0x18db4e(0x237)](_0x28768d){const _0x5ba3b9=_0x18db4e,_0x511874=await this[_0x5ba3b9(0x320)][_0x5ba3b9(0x2d0)](_0x28768d),_0x47fc24=this['_injector']['createInstance'](Se,_0x28768d,_0x511874);return _0x47fc24[_0x5ba3b9(0x258)](),_0x47fc24;}async['_startDocCollabCursor'](_0x3804f8){const _0x45f29b=_0x18db4e,_0x280bde=await this[_0x45f29b(0x320)][_0x45f29b(0x2d0)](_0x3804f8),_0x41ea44=this[_0x45f29b(0x1d3)][_0x45f29b(0x3d4)](fe,_0x3804f8,_0x280bde);return _0x41ea44[_0x45f29b(0x258)](),_0x41ea44;}};x=ct([ie(0x0,a[_0x18db4e(0x324)]),ie(0x1,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),ie(0x2,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x3a5)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x2e915f,_0x674ba1){const _0x5560e2=_0x18db4e;let {radius:_0x3565c8,width:_0x1e41b8,height:_0x3b8fae}=_0x674ba1;_0x3565c8=_0x3565c8!=null?_0x3565c8:0x0,_0x1e41b8=_0x1e41b8!=null?_0x1e41b8:0x1e,_0x3b8fae=_0x3b8fae!=null?_0x3b8fae:0x1e;let _0x418324=0x0,_0x3ec895=0x0,_0x422dac=0x0;_0x418324=_0x3ec895=_0x422dac=Math['min'](_0x3565c8,_0x1e41b8/0x2,_0x3b8fae/0x2),_0x2e915f[_0x5560e2(0x393)](),_0x2e915f[_0x5560e2(0x2d4)](_0x418324,0x0),_0x2e915f[_0x5560e2(0x39c)](_0x1e41b8-_0x3ec895,0x0),_0x2e915f[_0x5560e2(0x29c)](_0x1e41b8-_0x3ec895,_0x3ec895,_0x3ec895,Math['PI']*0x3/0x2,0x0,!0x1),_0x2e915f[_0x5560e2(0x39c)](_0x1e41b8,_0x3b8fae-_0x422dac),_0x2e915f[_0x5560e2(0x29c)](_0x1e41b8-_0x422dac,_0x3b8fae-_0x422dac,_0x422dac,0x0,Math['PI']/0x2,!0x1),_0x2e915f[_0x5560e2(0x39c)](0x0,_0x3b8fae),_0x2e915f[_0x5560e2(0x39c)](0x0,_0x418324),_0x2e915f[_0x5560e2(0x29c)](_0x418324,_0x418324,_0x418324,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2e915f[_0x5560e2(0x288)](),_0x674ba1[_0x5560e2(0x35c)]&&(_0x2e915f[_0x5560e2(0x33f)](),_0x2e915f[_0x5560e2(0x1da)]=_0x674ba1[_0x5560e2(0x35c)],_0x674ba1[_0x5560e2(0x1f8)]===_0x5560e2(0x388)?_0x2e915f[_0x5560e2(0x35c)](_0x5560e2(0x388)):_0x2e915f[_0x5560e2(0x35c)](),_0x2e915f[_0x5560e2(0x26e)]());}class ee extends p[_0x18db4e(0x278)]{constructor(_0x1d3445,_0x2b49ba){const _0x2818b5=_0x18db4e;super(_0x1d3445,_0x2b49ba),h(this,'color'),h(this,'text'),(this['color']=_0x2b49ba==null?void 0x0:_0x2b49ba[_0x2818b5(0x296)],this[_0x2818b5(0x2d9)]=_0x2b49ba==null?void 0x0:_0x2b49ba['text']);}static[_0x18db4e(0x293)](_0x181673,_0x47817b){const _0x43f51e=_0x18db4e,{text:_0x4bd8f3,color:_0x549fa2}=_0x47817b;_0x181673[_0x43f51e(0x33f)](),_0x181673['font']=_0x43f51e(0x1e5);const _0x475346=_0x181673[_0x43f51e(0x27a)](_0x4bd8f3)['width'],_0x474f4c=Math[_0x43f51e(0x23f)](_0x475346+0x2*ne,Re);_t(_0x181673,{'height':K,'radius':0x4,'width':_0x474f4c,'fill':_0x549fa2}),_0x181673[_0x43f51e(0x1da)]=_0x43f51e(0x21c);const _0x2dbbdf=ne,_0x289e76=K-lt,_0x5b8495=Re-0x2*ne;if(_0x475346>_0x5b8495){let _0x65cc40='',_0x14da8e=0x0;for(const _0x5eb768 of _0x4bd8f3){const _0x1b2936=_0x181673[_0x43f51e(0x27a)](_0x5eb768)[_0x43f51e(0x2ae)];if(_0x14da8e+_0x1b2936<=_0x5b8495-_0x181673[_0x43f51e(0x27a)](_0x43f51e(0x189))[_0x43f51e(0x2ae)])_0x65cc40+=_0x5eb768,_0x14da8e+=_0x1b2936;else{_0x65cc40+=_0x43f51e(0x189);break;}}_0x181673[_0x43f51e(0x248)](_0x65cc40,_0x2dbbdf,_0x289e76);}else _0x181673[_0x43f51e(0x248)](_0x4bd8f3,_0x2dbbdf,_0x289e76);_0x181673[_0x43f51e(0x26e)]();}[_0x18db4e(0x310)](_0x216790){ee['drawWith'](_0x216790,this);}}function _0x4111(){const _0x3544c9=['column','getDocRanges','split','sessionStatus$','INVITE_CODE_REQUIRED','/run/','_document','5160HPooMu','_transformService','defineProperty','save','transformMutation','actions','push','translate(.97)','setConfig','saveImage','_colorIndex','cursorInfo','deepClone','memberID','USER_NOT_INVITED_CODE','mask','react/jsx-runtime','Vector2','_scheduleSaving','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_backgroundColor','getTypeOfUnitAdded$','saveTaskMap','CONFLICT','RemoveColCommandId','searchParams','unitId','_scene','useRef','fromEvent','Module','INotificationService','fill','flatMap','_init','Failed','ENSURE_SNAPSHOT_EXECUTION','urlChange$','registerRefRange','getParam','getUnhiddenWorksheets','_getSessionTicket','IImageIoService','onPointerEnter$','_collaborationUIEventService','asObservable','takeUntil','sheetId','collaboration.closeRoom','TEXT_RANGE_LAYER_INDEX','roomMembers$','PERMISSION_DENIED','startColumn','prototype','from','234666UjSiji','FETCH_MISS','disableLocalCache','pipe','_urlService','Disposable','body','MOBILE_HAS_BEEN_BOUND','InsertRowCommandId','triggerDblclick','_handleHover','_transformPreviousActiveRange','@univerjs/engine-render','SheetCollabCursorShape','white','_collabCursorController','DOC_RANGE_TYPE','current','handleInsertRangeMoveRight','url(#off-line-icon_clip0_910_343)','RxDisposable','evenodd','concat','clearInterval','max','history','session.collaboration-timeout','transformIMECache','entityInit$','_session','black','DocSelectionManagerService','beginPath','COLORS','newValue','selections','executeCommand','permission.title','none','values','with','lineTo','ICommandService','error','attrs','hovered','_anchor','_getSheetObject','getFocusedUnit','1NqshAP','CollaborationSessionService','_logService','connectInjector','loadOfflineData','map','status$','createSocket','INVALID_INVITE_CODE','getOffsetConfig','disposeWithMe','labelPosition','handleIRemoveRow','string','call','get','BrowserCollaborationSocketService','blue.400','substring','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_colorAssignService','textRanges','_context','_render','UniverCollaborationClientUIPlugin','_onRefRangeChange','handleMoveRange','hide','addClipboardHook','MessageType','startsWith','InsertRangeMoveDownCommandId','_localCacheService','location','delete','forwardRef','TEXT','_instanceService','switchMap','_docStateChangeManagerService','_getMergeRange','CLOSE_ROOM','NodePositionConvertToRectRange','collabCursorState$','apply','subscribeEvent','_renderManagerService','getConfig','createInstance','UniverCollaborationClientPlugin','SetTextSelectionsOperation','IDocClipboardService','subscribe','UNRECOGNIZED','LICENSE_MAX_UNITS_EXCEEDED','session.will-retry','show','origin','transformRemoteChangeset','getUniverSheetInstance','_memberService','path','APPLY_REJECT','collaboration-client.offline-data-not-saved','serializeRangeWithSheet','DocIMEInputManagerService','1530AwkPFH','toDisposable','_setupSubUnitSync','m1Prime','_removeClearOtherTimer','@univerjs-pro/collaboration-client','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','238zqmcVT','invokeId','_cursors','createIdentifier','_shapes','subunit','has','pluginName','handleIRemoveCol','DocStateChangeManagerService','length','LICENSE_IMPORT_SIZE_EXCEEDED','ACTIVE_UNIT_EVENT_CHANNEL','registerDependencies','onMouseMove','CollaborationUIEventId','find','getCurrentUnitForType','touchDependencies','Unknown\x20user','@univerjs/drawing','APPLY_NON_SEQUENTIAL_REVISION','SetSelectionsOperation','pushState','_docSkeletonManagerService','DeleteRangeMoveUpCommandId','clsx','_syncEditingCollabCursorService','DataLoaderService','collabStatus.synced','popstate','_cachedData','replaceState','YUUMI_TABLE_NOT_FOUND_IN_UNIT','ranges','range','_registerRenderDependencies','WECHAT_HAS_BEEN_BOUND','executionId','OTHER_CLIENT_EDITING','_commandService','YUUMI_ALL_TABLES_IS_INVALID','isTransformMutationsWithChangesetSuccess','[CollaborationDataLoaderController]','clipPath','_univerInstanceService','unit','_updateCollabCursors','next','_collaborationController','...','_initEntityListener','_updateLocalCursor','combineLatest','@univerjs/rpc','IURLService','currentTheme$','ILocalCacheService','onPointerMove$','send','CollaborationSocketService','_drawTextRange','YUUMI_URL_COL_OUT_OF_RANGE','docStateChange$','getValue','getSkeleton','OnLineIcon','DocCollaborationEntity','_cursorShapes','on-line-icon','CollaborationUIEventService','MUTATION','source','UNAUTHENTICATED','undoState','@univerjs/network','useDependency','DependentOn','url(#on-line-icon_clip0_910_349)','_sheetSkeletonManagerService','hasOwnProperty','yellow.400','_online','redoState','merge','4660QBQYcC','isEditing','_textBubble','getSheetBySheetId','ThemeService','LOGIN_FAILED','_initEvent','getMember','CollaborationStatus','transformMutationsWithChangeset','collabStatus.fetchMiss','UniverInstanceType','collab-rect-range-','replaceDocRanges','_updateURLWithCurrentState','symbol','@univerjs/design','IUIPartsService','getItem','getCollabEntity$','_imageIoService','tag','setParam','ColorKit','event$','m2Prime','useObservable','_hover','NOT_COLLAB','href','Rectangle','NOT_FOUND','univer-flex\x20univer-mr-2\x20univer-text-xl','_initCommandExecutedListener','_setupBeforeClosingHandler','toString','getColorFromTheme','colorChannel1','entries','_injector','transformSelections','onCommandExecuted','round','FromArray','LICENSE_DISTRO_REJECTED','_localeService','fillStyle','Subject','disposeUnit','setItem','YUUMI_NO_CUBOID_FOR_QUESTION','_getAnchorBounding','on-line-icon_clip0_910_349','@univerjs/sheets','getTypeOfUnitDisposed$','http://www.w3.org/2000/svg','resize','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_entities','getStateCache','setUndoRedoMutationParamsCache','jsx','roomMembers','makeDirty','children','getCurrentRevOfUnit','SessionStatus','off-line-icon','_initDependencies','@univerjs/ui','type','_refreshCollabCursors','icon','endRow','mutations','sheetID','fillRule','_drawRectRange','handleInsertRow','_handleJoinEvent','OTHER_CLIENTS_EDITING','_eventUnsubscribe','selection','Inject','code','_disabled','CHANGESET_REVISION_CONFILICT','displayName','setAlpha','YUUMI_RATE_OVER_LIMIT','sessionTicket','propertyIsEnumerable','unitID','storage','_beforeCloseService','setTimeout','dispose$','collabStatus.notCollab','Injector','WebBrowserSingleActiveUnitService','@univerjs/sheets-ui','addEventListener','IBeforeCloseService','INVITE_CODE_ALREADY_BOUND','_docTransformStateCacheService','getVpScrollXYInfoByPosToVp','DisposableCollection','className','SNAPSHOT_INVALID_SNAPSHOT','YUUMI_SUBSCRIPTION_NOT_FOUND','SheetSkeletonManagerService','toRgbString','#FFF','getCurrent','xlink:href','_removeCollabCursors','_selfUnitIDs','transform','RECT','params','all','Rect','UNIVER_DOC','_status$','IRenderManagerService','collaboration-client-ui.config','collaboration.single-unit.warning','transformByState','cursorInfo$','_httpService','_anchorDot','_registerDependencies','_handleEvent','univerjs-icon\x20univerjs-icon-','purple.300','CollaborationEvent','activeSheet$','Tooltip','generateRandomId','_startSheetCollabCursor','clearTimeout','_transformHistoryAndStateStack','_getScale','BuiltInUIPart','0\x200\x2016\x2016','url(#$1','handleInsertCol','min','getSheetId','collabStatus.syncing','USERS_LEAVE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_initStatusListener','add','isArray','1875NaeUde','fillText','random','DEFAULT_WS_SESSION_TICKET_URL','getActiveSheet','TRANSFORM_CHANGE_OBSERVABLE_TYPE','currentSkeleton$','_hovered','runId','SOCKET_FAILED_RETRY','debounce','toStringTag','then','ISnapshotServerService','WebSocketService','_scheduleClearOtherTimer','InsertRangeMoveRightCommandId','init','COMPLETION_FINISHED','unsubscribe','getOwnPropertyDescriptor','getRelativeToViewportCoord','debug','useCallback','rgba(255,\x20255,\x20255,\x200.01)','TOO_MANY_REQUESTS','filter','_messageService','NO_OTHER_CLIENTS_EDITING','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_docTransformIMECacheService','saveOfflineData','defIds','mergeOverrideWithDependencies','OFFLINE','YUUMI_AI_RUN_FAILED','set','DesktopCollaborationStatusDisplayController','JOIN_ROOM_FAILED','restore','idSuffix','updateOfflineData','_send','getLocalCacheKey','CollaborationDataLoaderController','_dataLoaderService','contains','name','jsxs','Shape','_refRangeService','measureText','_docSyncEditingCollabCursorService','_onCursorUpdate','SYNCED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UNDEFINED','_handleHeartbeatEvent','forEach','indexOf','addHandlerCallback','_transformUndoRedoStack','red.300','assignAColorForMemberID','collab-client.tooltip.reconnect','closePath','_saveCache','UnitStatus','5515675YAfwLb','YUUMI_ASYNCIO_CANCELLED','syncEditingCollabCursor','_notificationService','collab-text-range-','getActiveRange','replace','trim','drawWith','MoveRangeCommandId','_range','color','AWAITING_WITH_PENDING','svg','INVITE_CODE_HAS_BEEN_UES','YUUMI_UNABLE_LOAD_URL','_onCursorDelete','arc','getMemberID','Error','complete','bottom','ILogService','738102GNoMzQ','jiqing.500','unload','registerBeforeClose','currentColor','_id','getAncestorScale','SheetsSelectionsService','LICENSE_EXPORT_SIZE_EXCEEDED','top','defs','Warning','width','getRangePointData','fromEventSubject','_unitStatus','handleInsertRangeMoveDown','green.600','getCollabCursors$','INVALID_ARGUMENT','_color','CONNECTOR_DATA_TOO_LARGE','reconnect','_revisionService','_cursorInfo$','@univerjs/core','_getSaveTimeout','BehaviorSubject','includes','addObject','_roomMembers$','onRendered','2980810YjzrWj','off-line-icon_clip0_910_343','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','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','_localStorageService','_configService','UNIVER_SHEET','_themeService','stringify','_scheduleHeartbeat','RegularPolygon','UPDATE_CURSOR','getUnitId','Tools','requireSession','function','registerComponent','dispose','moveTo','_entityInit$','doc.mutation.rich-text-editing','some','session.connection-failed','text','getUnitStatus$','ITransformService','LocaleService','getOwnPropertySymbols','ONLINE','_uiPartsService','div','endColumn','onPointerLeave$','throttleTime','collabStatus.offline','1em','transformStateCache','shareReplay','assign','_initStatusComponent','_docTransformSelectionsService','engine','findNodePositionByCharIndex','debounceTime','getCoordByCell','runOnServer','_saveTaskMap','HTTPService','_hideTimer','_config','_initResize','_name','setInterval','uni.network.url-service','createElement','exhaustSavingTask','_labelPosition','row','isTransformMutationFailure','skeleton','40776naCpKy','imageSourceType','_collabCursorState$','EMAIL_HAS_BEEN_BOUND','univer-flex\x20univer-items-center','use','APPLY_DUPLICATED','getColor','OffLineIcon','handleDeleteRangeMoveUp','CollaborationController','IConfigService','size','Workbook','ALREADY_EXISTS','EffectRefRangId','INTERNAL_ERROR','getRenderById','_draw','_lastPointer','permission.content','height','deserializeRangeWithSheet','RemoteUniscriptService','DeleteRangeMoveLeftCommandId','_ensureSubject','data','isActive','rxjs/operators','0\x200\x2017\x2016','_clearOtherTimers','collab-text-anchor-','ticket','getSheetObject','_collabSessionService','_toggleOnline','_heartbeatTimer','_assignedColors','IUniverInstanceService','SNAPSHOT_HAS_BEEN_REMOVED','whenReady','RefRangeService','_toggleOffline','_docClipboardService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setShapeProps','removeParam','unshift','IRemoteInstanceService','eventID','_unitOnClients','@univerjs/engine-formula','SUBMIT_CHANGESET_TIMEOUT','setStateCache','CollaborationStatusDisplay'];_0x4111=function(){return _0x3544c9;};return _0x4111();}const re=_0x18db4e(0x31d),ht=_0x18db4e(0x28f),ut=_0x18db4e(0x1b8),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x18db4e(0x25f);class De{constructor(_0xed7743,_0x17ae86,_0x130d48,_0x4356bb){const _0x29120a=_0x18db4e;h(this,_0x29120a(0x3f1),[]),h(this,_0x29120a(0x3a1),null),h(this,_0x29120a(0x1ae),null),h(this,_0x29120a(0x22e),null),h(this,'_hideTimer',null),h(this,_0x29120a(0x1fd),null),(this['_cursor']=_0xed7743,this[_0x29120a(0x357)]=_0x17ae86,this['_docSkeleton']=_0x130d48,this[_0x29120a(0x33b)]=_0x4356bb,this['_render']());}set['_hover'](_0x3b707a){const _0x21bf2b=_0x18db4e;_0x3b707a?(this['_anchorDot']&&this[_0x21bf2b(0x22e)][_0x21bf2b(0x3bf)](),this['_textBubble']&&this[_0x21bf2b(0x1ae)][_0x21bf2b(0x3dc)]()):(this[_0x21bf2b(0x22e)]&&this[_0x21bf2b(0x22e)][_0x21bf2b(0x3dc)](),this[_0x21bf2b(0x1ae)]&&this[_0x21bf2b(0x1ae)][_0x21bf2b(0x3bf)]());}[_0x18db4e(0x2d3)](){const _0x22a495=_0x18db4e;for(const _0x570192 of this[_0x22a495(0x3f1)])_0x570192['dispose']();this[_0x22a495(0x1ae)]&&this[_0x22a495(0x1ae)][_0x22a495(0x2d3)](),this['_anchorDot']&&this[_0x22a495(0x22e)][_0x22a495(0x2d3)](),this[_0x22a495(0x3a1)]&&this[_0x22a495(0x3a1)][_0x22a495(0x2d3)](),this[_0x22a495(0x1fd)]&&this[_0x22a495(0x1fd)]();}[_0x18db4e(0x3bb)](){const _0x4a5283=_0x18db4e;var _0x34df00;const {_docSkeleton:_0x541d9f,_document:_0x4ec1df}=this,{color:_0x5d29b5,name:_0x1025a9,ranges:_0x83d759}=this['_cursor'],_0xd8f778=_0x4ec1df[_0x4a5283(0x3ad)](),{docsLeft:_0x56aa44,docsTop:_0x5458d3}=_0xd8f778,_0x269882=new b['NodePositionConvertToCursor'](_0xd8f778,_0x541d9f);for(const {startOffset:_0x278ece,endOffset:_0x2f2d3d,rangeType:_0xbf22a3,segmentId:_0x11d9de,segmentPage:_0x3924e8,collapsed:_0x444bdd,isActive:_0x3410d7}of _0x83d759){const _0x586060=_0x541d9f[_0x4a5283(0x2ec)](_0x278ece,!0x0,_0x11d9de,_0x3924e8);let _0x48e0b7=_0x541d9f['findNodePositionByCharIndex'](_0x2f2d3d,!0x0,_0x11d9de,_0x3924e8);if(_0x48e0b7==null&&(_0x48e0b7=_0x541d9f['findNodePositionByCharIndex'](_0x2f2d3d-0x1,!0x1,_0x11d9de,_0x3924e8)),_0x3410d7){const {contentBoxPointGroup:_0x2063be}=_0x269882['getRangePointData'](_0x48e0b7,_0x48e0b7);if(_0x2063be[_0x4a5283(0x3f7)]===0x0)continue;this['_drawAnchor'](_0x5d29b5,_0x2063be,_0x56aa44,_0x5458d3,_0x1025a9),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x586060&&_0x48e0b7){if(_0xbf22a3===a['DOC_RANGE_TYPE'][_0x4a5283(0x222)]){const _0x35fe15=new b[(_0x4a5283(0x3ce))](_0xd8f778,_0x541d9f),{pointGroup:_0x736fc2}=(_0x34df00=_0x35fe15[_0x4a5283(0x2af)](_0x586060,_0x48e0b7))!=null?_0x34df00:{};if(_0x736fc2==null||_0x736fc2['length']===0x0)continue;this[_0x4a5283(0x1f9)](_0x5d29b5,_0x736fc2,_0x56aa44,_0x5458d3);}else{if(!_0x444bdd){const {borderBoxPointGroup:_0x31a0e0}=_0x269882[_0x4a5283(0x2af)](_0x586060,_0x48e0b7);if(_0x31a0e0[_0x4a5283(0x3f7)]===0x0)continue;this[_0x4a5283(0x194)](_0x5d29b5,_0x31a0e0,_0x56aa44,_0x5458d3);}}}}}['_drawAnchor'](_0x567443,_0x41b944,_0xddbee7,_0x485160,_0x28a7ab){const _0x17ad5e=_0x18db4e,_0x310843=this[_0x17ad5e(0x1df)](_0x41b944),{left:_0x490f56,top:_0x22c04a,height:_0xcb7dbd}=_0x310843,_0x4b19e0=this[_0x17ad5e(0x23a)](),_0x40b79f=ft/_0x4b19e0,_0x5d8480=new p[(_0x17ad5e(0x225))](re+a['Tools'][_0x17ad5e(0x236)](k),{'left':_0x490f56+_0xddbee7-_0x40b79f,'top':_0x22c04a+_0x485160,'height':_0xcb7dbd,'width':dt,'fill':_0x567443||p['getColor'](a['COLORS'][_0x17ad5e(0x391)],0x0),'strokeWidth':_0x40b79f,'stroke':St,'evented':!0x0});this[_0x17ad5e(0x3a1)]=_0x5d8480,this['_scene'][_0x17ad5e(0x2bf)](_0x5d8480,b['TEXT_RANGE_LAYER_INDEX']);const _0x4d955b=new p[(_0x17ad5e(0x225))](re+a[_0x17ad5e(0x2cf)][_0x17ad5e(0x236)](k),{'left':_0x490f56+_0xddbee7-_0x40b79f,'top':_0x22c04a+_0x485160-oe/0x2,'height':oe,'width':oe,'fill':_0x567443||p[_0x17ad5e(0x305)](a[_0x17ad5e(0x394)][_0x17ad5e(0x391)],0x0),'strokeWidth':0x0,'stroke':_0x567443||p[_0x17ad5e(0x305)](a[_0x17ad5e(0x394)][_0x17ad5e(0x391)],0x0),'evented':!0x1});this[_0x17ad5e(0x22e)]=_0x4d955b,this[_0x17ad5e(0x357)][_0x17ad5e(0x2bf)](_0x4d955b,b[_0x17ad5e(0x36d)]);const _0xa38d12=new ee(re+a[_0x17ad5e(0x2cf)][_0x17ad5e(0x236)](k),{'left':_0x490f56+_0xddbee7-_0x40b79f,'top':_0x22c04a+_0x485160-K,'text':_0x28a7ab,'color':_0x567443});this[_0x17ad5e(0x1ae)]=_0xa38d12,this['_scene'][_0x17ad5e(0x2bf)](_0xa38d12,b[_0x17ad5e(0x36d)]),this[_0x17ad5e(0x1c7)]=!0x1;}[_0x18db4e(0x37d)](){const _0x469f9=_0x18db4e,_0x3825ff=this[_0x469f9(0x3a1)][_0x469f9(0x367)][_0x469f9(0x3d1)](()=>{const _0x3b0ea8=_0x469f9;this[_0x3b0ea8(0x1c7)]=!0x0;}),_0x12d20a=this['_anchor'][_0x469f9(0x2e2)]['subscribeEvent'](()=>{const _0x4577eb=_0x469f9;this[_0x4577eb(0x2f2)]&&clearTimeout(this['_hideTimer']),this[_0x4577eb(0x2f2)]=setTimeout(()=>{const _0x5ba24=_0x4577eb;this[_0x5ba24(0x1c7)]=!0x1;},0x7d0);});return()=>{const _0x180704=_0x469f9;_0x3825ff[_0x180704(0x25a)](),_0x12d20a['unsubscribe']();};}['_drawTextRange'](_0x42033f,_0x210a35,_0x43b80c,_0x21d61d){const _0x439b88=_0x18db4e,_0x4bc769=new a[(_0x439b88(0x1c3))](_0x42033f)[_0x439b88(0x204)](0.2)[_0x439b88(0x21b)](),_0x1ca5b6=new p[(_0x439b88(0x2cc))](ht+a['Tools'][_0x439b88(0x236)](k),{'pointsGroup':_0x210a35,'fill':_0x4bc769||p['getColor'](a[_0x439b88(0x394)][_0x439b88(0x391)],0.2),'left':_0x43b80c,'top':_0x21d61d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x439b88(0x3f1)]['push'](_0x1ca5b6),this[_0x439b88(0x357)][_0x439b88(0x2bf)](_0x1ca5b6,b[_0x439b88(0x36d)]);}[_0x18db4e(0x1f9)](_0x27cf56,_0x557f53,_0x259278,_0x20062c){const _0x4c06e7=_0x18db4e,_0x225b29=new a[(_0x4c06e7(0x1c3))](_0x27cf56)[_0x4c06e7(0x204)](0.2)[_0x4c06e7(0x21b)](),_0x455320=new p[(_0x4c06e7(0x2cc))](ut+a['Tools'][_0x4c06e7(0x236)](k),{'pointsGroup':_0x557f53,'fill':_0x225b29||p[_0x4c06e7(0x305)](a[_0x4c06e7(0x394)]['black'],0.2),'left':_0x259278,'top':_0x20062c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c06e7(0x3f1)][_0x4c06e7(0x342)](_0x455320),this['_scene']['addObject'](_0x455320,b[_0x4c06e7(0x36d)]);}[_0x18db4e(0x1df)](_0x389470){const _0x2e396c=_0x389470[0x0],_0x216f06=_0x2e396c[0x0],_0x4cd33d=_0x2e396c[0x2],{x:_0x252c41,y:_0xf63925}=_0x216f06,{x:_0x27a264,y:_0x5e22c3}=_0x4cd33d;return{'left':_0x252c41,'top':_0xf63925,'width':_0x27a264-_0x252c41,'height':_0x5e22c3-_0xf63925};}[_0x18db4e(0x23a)](){const _0x444760=_0x18db4e,{scaleX:_0x5863b3,scaleY:_0x47f7de}=this[_0x444760(0x357)][_0x444760(0x2a8)]();return Math[_0x444760(0x38b)](_0x5863b3,_0x47f7de);}}var It=Object[_0x18db4e(0x25b)],vt=(_0x56dc56,_0x152760,_0x17ea5c,_0x3406b6)=>{const _0x100220=_0x18db4e;for(var _0x3b3c1a=_0x3406b6>0x1?void 0x0:_0x3406b6?It(_0x152760,_0x17ea5c):_0x152760,_0x1e8d71=_0x56dc56[_0x100220(0x3f7)]-0x1,_0x4c36f8;_0x1e8d71>=0x0;_0x1e8d71--)(_0x4c36f8=_0x56dc56[_0x1e8d71])&&(_0x3b3c1a=_0x4c36f8(_0x3b3c1a)||_0x3b3c1a);return _0x3b3c1a;},W=(_0x58d5d5,_0x23c5e7)=>(_0x3535dc,_0x546dd0)=>_0x23c5e7(_0x3535dc,_0x546dd0,_0x58d5d5);let Ie=class extends a[_0x18db4e(0x387)]{constructor(_0xce2fb1,_0x99db79,_0x18db70,_0x537973,_0x266967){const _0x47778b=_0x18db4e;super(),h(this,_0x47778b(0x19b),[]),h(this,'_cursors',[]),(this[_0x47778b(0x3ba)]=_0xce2fb1,this[_0x47778b(0x405)]=_0x99db79,this['_collabCursorController']=_0x18db70,this[_0x47778b(0x17f)]=_0x537973,this[_0x47778b(0x2c9)]=_0x266967,this[_0x47778b(0x35e)]());}[_0x18db4e(0x35e)](){const _0x203015=_0x18db4e,_0x296899=this[_0x203015(0x3ba)][_0x203015(0x356)],_0xd9d8b9=this['_docSkeletonManagerService'];this[_0x203015(0x3ae)](d['combineLatest']([this[_0x203015(0x382)][_0x203015(0x2b4)](_0x296899),this[_0x203015(0x2c9)]['currentTheme$']])[_0x203015(0x376)]($[_0x203015(0x3a9)](([_0x30b4c3,_0x39a2f])=>({'skeleton':_0xd9d8b9['getSkeleton'](),'cursors':[..._0x30b4c3[_0x203015(0x39a)]()][_0x203015(0x35d)](_0x4afe49=>({..._0x4afe49,'color':this[_0x203015(0x2c9)][_0x203015(0x1d0)](_0x4afe49['color'])}))})))[_0x203015(0x3d8)](_0x4a6a32=>{const _0x45aa64=_0x203015;if(this['_removeCollabCursors'](),_0x4a6a32){const {skeleton:_0x43d07d,cursors:_0x56077f}=_0x4a6a32;this[_0x45aa64(0x186)](_0x43d07d,_0x56077f);}})),this[_0x203015(0x2f4)](),this[_0x203015(0x1cd)]();}['_updateCollabCursors'](_0x35b683,_0x214b4c){const _0x32751e=_0x18db4e,{scene:_0xe43ffb,mainComponent:_0x17c93f}=this['_context'],_0x962210=_0x214b4c[_0x32751e(0x3a9)](_0x3cf24c=>new De(_0x3cf24c,_0xe43ffb,_0x35b683,_0x17c93f));this['_cursorShapes']=_0x962210,this['_cursors']=_0x214b4c;}[_0x18db4e(0x1f3)](){const _0x4576e0=_0x18db4e;this[_0x4576e0(0x21f)]();const {scene:_0x567789,mainComponent:_0x2080b4}=this[_0x4576e0(0x3ba)],_0x35a9c4=this[_0x4576e0(0x405)][_0x4576e0(0x198)](),_0x5a7486=this[_0x4576e0(0x3ef)][_0x4576e0(0x3a9)](_0x5636b5=>new De(_0x5636b5,_0x567789,_0x35a9c4,_0x2080b4));this[_0x4576e0(0x19b)]=_0x5a7486;}[_0x18db4e(0x21f)](){const _0x1722d1=_0x18db4e;this[_0x1722d1(0x19b)][_0x1722d1(0x281)](_0x1aa4cc=>_0x1aa4cc[_0x1722d1(0x2d3)]()),this['_cursorShapes']=[];}[_0x18db4e(0x1cd)](){const _0x2d9429=_0x18db4e,_0x281b4e=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x2d9429(0x17f)][_0x2d9429(0x1d5)](_0xb72d62=>{const _0x50ce58=_0x2d9429;_0x281b4e[_0x50ce58(0x2be)](_0xb72d62['id'])&&_0xb72d62['params'][_0x50ce58(0x356)]===this[_0x50ce58(0x3ba)][_0x50ce58(0x356)]&&this[_0x50ce58(0x1f3)]();}));}['_initResize'](){const _0x2b0084=_0x18db4e;this[_0x2b0084(0x3ae)](a[_0x2b0084(0x2b0)](this[_0x2b0084(0x3ba)][_0x2b0084(0x2eb)]['onTransformChange$'])[_0x2b0084(0x376)]($[_0x2b0084(0x261)](_0xf3a4db=>_0xf3a4db['type']===p[_0x2b0084(0x24c)][_0x2b0084(0x1e4)]),$[_0x2b0084(0x2e3)](0x10))[_0x2b0084(0x3d8)](()=>{const _0x48b926=_0x2b0084;this[_0x48b926(0x1f3)]();}));}};Ie=vt([W(0x1,a[_0x18db4e(0x1ff)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x18db4e(0x1ff)](x)),W(0x3,a[_0x18db4e(0x39d)]),W(0x4,a['Inject'](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x5725fc,_0x427c7f){const _0x324a24=_0x18db4e;super(_0x5725fc,_0x427c7f),h(this,_0x324a24(0x2b6)),h(this,_0x324a24(0x24e),!0x1),h(this,'_range'),h(this,_0x324a24(0x2f5),''),h(this,_0x324a24(0x2fa),_0x324a24(0x2ab)),h(this,'_backgroundColor'),(_0x427c7f&&this['setShapeProps'](_0x427c7f),this['onPointerEnter$'][_0x324a24(0x3d1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x324a24(0x2e2)][_0x324a24(0x3d1)](()=>this[_0x324a24(0x32b)]({'hovered':!0x1})));}[_0x18db4e(0x32b)](_0x5eda88){const _0x476c8d=_0x18db4e;var _0x35547c,_0x55c4c1,_0x243975,_0x1322ce,_0x45ab7c,_0x5e705e;this[_0x476c8d(0x2b6)]=(_0x35547c=_0x5eda88[_0x476c8d(0x296)])!=null?_0x35547c:this[_0x476c8d(0x2b6)],this[_0x476c8d(0x24e)]=(_0x55c4c1=_0x5eda88[_0x476c8d(0x3a0)])!=null?_0x55c4c1:this[_0x476c8d(0x24e)],this['_range']=(_0x243975=_0x5eda88[_0x476c8d(0x410)])!=null?_0x243975:this['_range'],this[_0x476c8d(0x2f5)]=(_0x1322ce=_0x5eda88['name'])!=null?_0x1322ce:this['_name'],this[_0x476c8d(0x2fa)]=(_0x45ab7c=_0x5eda88[_0x476c8d(0x3af)])!=null?_0x45ab7c:this['_labelPosition'],this[_0x476c8d(0x350)]=(_0x5e705e=_0x5eda88['backgroundColor'])!=null?_0x5e705e:this['_backgroundColor'],this[_0x476c8d(0x22b)]({'width':_0x5eda88[_0x476c8d(0x2ae)],'height':_0x5eda88[_0x476c8d(0x313)]});}['onMouseMove'](_0x378666){const _0xacd0df=_0x18db4e,{row:_0x5e0d33,column:_0x35566e}=_0x378666;if(_0x5e0d33>=this['_range']['startRow']&&_0x5e0d33<=this[_0xacd0df(0x295)][_0xacd0df(0x1f5)]&&_0x35566e>=this[_0xacd0df(0x295)][_0xacd0df(0x370)]&&_0x35566e<=this[_0xacd0df(0x295)][_0xacd0df(0x2e1)]){this[_0xacd0df(0x32b)]({'hovered':!0x0});return;}this[_0xacd0df(0x32b)]({'hovered':!0x1});}[_0x18db4e(0x37c)](_0x37ffca){return!0x1;}[_0x18db4e(0x310)](_0xff4b2f){const _0x2ac5e3=_0x18db4e;p[_0x2ac5e3(0x225)][_0x2ac5e3(0x293)](_0xff4b2f,{'width':this[_0x2ac5e3(0x2ae)],'height':this[_0x2ac5e3(0x313)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2ac5e3(0x24e)]&&(_0xff4b2f[_0x2ac5e3(0x33f)](),_0xff4b2f[_0x2ac5e3(0x221)](0x1,0x0,0x0,0x1,this['width'],this[_0x2ac5e3(0x2fa)]===_0x2ac5e3(0x2a0)?0x0:-0x14),ee[_0x2ac5e3(0x293)](_0xff4b2f,{'text':this[_0x2ac5e3(0x2f5)],'color':this[_0x2ac5e3(0x2b6)]}),_0xff4b2f[_0x2ac5e3(0x26e)]());}}var Ct=Object[_0x18db4e(0x25b)],pt=(_0x772807,_0x3fb8d0,_0x4c7464,_0x44ae56)=>{const _0x2c2295=_0x18db4e;for(var _0x24b5bf=_0x44ae56>0x1?void 0x0:_0x44ae56?Ct(_0x3fb8d0,_0x4c7464):_0x3fb8d0,_0x1e69bd=_0x772807[_0x2c2295(0x3f7)]-0x1,_0x39c4a4;_0x1e69bd>=0x0;_0x1e69bd--)(_0x39c4a4=_0x772807[_0x1e69bd])&&(_0x24b5bf=_0x39c4a4(_0x24b5bf)||_0x24b5bf);return _0x24b5bf;},ae=(_0x492c72,_0x46d527)=>(_0x509039,_0x322591)=>_0x46d527(_0x509039,_0x322591,_0x492c72);const bt=0x1389;let ve=class extends a[_0x18db4e(0x387)]{constructor(_0x53c499,_0x3f9515,_0x4a0ba3,_0x322da2){const _0x59a2f2=_0x18db4e;super(),h(this,_0x59a2f2(0x3ef),new Set()),h(this,_0x59a2f2(0x311),null),(this[_0x59a2f2(0x3ba)]=_0x53c499,this[_0x59a2f2(0x1a6)]=_0x3f9515,this['_collabCursorController']=_0x4a0ba3,this[_0x59a2f2(0x2c9)]=_0x322da2,this[_0x59a2f2(0x35e)]());}[_0x18db4e(0x35e)](){const _0x4c08df=_0x18db4e;this[_0x4c08df(0x1a6)]['currentSkeleton$']['pipe']($[_0x4c08df(0x36a)](this['dispose$']),$['switchMap'](_0x4555cc=>{const _0x2441b8=_0x4c08df;if(_0x4555cc){const _0x40e951=_0x4555cc[_0x2441b8(0x36b)];return d[_0x2441b8(0x18c)](this[_0x2441b8(0x382)][_0x2441b8(0x2b4)](this[_0x2441b8(0x3ba)]['unitId']),this[_0x2441b8(0x2c9)][_0x2441b8(0x18f)])[_0x2441b8(0x376)]($[_0x2441b8(0x3a9)](([_0x36aa03,_0x270cb0])=>{const _0x502e16=new Map();return _0x36aa03['forEach']((_0x2fa029,_0x447e63)=>{const _0x2ff981=_0x4661;if(_0x2fa029[_0x2ff981(0x1f7)]===_0x40e951){const _0x48e23f={..._0x2fa029};_0x48e23f[_0x2ff981(0x296)]=this[_0x2ff981(0x2c9)]['getColorFromTheme'](_0x2fa029['color']),_0x502e16[_0x2ff981(0x26b)](_0x447e63,_0x48e23f);}}),{'skeleton':_0x4555cc,'cursors':_0x502e16};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4c08df(0x3d8)](({skeleton:_0x31f3e3,cursors:_0x3d234f})=>{const _0x17191d=_0x4c08df;this['_removeCollabCursors'](),_0x31f3e3&&this[_0x17191d(0x186)](_0x31f3e3,_0x3d234f);}),this[_0x4c08df(0x1a6)][_0x4c08df(0x24d)][_0x4c08df(0x3d8)](_0x1f7033=>{const _0x99aa31=_0x4c08df;if(_0x1f7033==null)return;const {skeleton:_0x513e26}=_0x1f7033,{scene:_0x2882d9}=this[_0x99aa31(0x3ba)];_0x2882d9[_0x99aa31(0x191)][_0x99aa31(0x3d1)](a[_0x99aa31(0x251)](_0xf2960d=>{const _0x4020c5=_0x99aa31;var _0xd76c98,_0x111534;const {offsetX:_0x441fa6,offsetY:_0x4972f9}=_0xf2960d,{x:_0xf376e6,y:_0x2640fe}=_0x2882d9[_0x4020c5(0x25c)](p[_0x4020c5(0x34d)][_0x4020c5(0x1d7)]([_0x441fa6,_0x4972f9])),{scaleX:_0x346b2c,scaleY:_0xcfc968}=_0x2882d9[_0x4020c5(0x2a8)](),_0x3cdb7e=_0x2882d9['getViewport'](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x541684=_0x2882d9[_0x4020c5(0x215)](p[_0x4020c5(0x34d)]['FromArray']([_0xf376e6,_0x2640fe]),_0x3cdb7e),_0x2c6be2=_0x513e26['getCellPositionByOffset'](_0x441fa6,_0x4972f9,_0x346b2c,_0xcfc968,_0x541684);((_0xd76c98=this[_0x4020c5(0x311)])==null?void 0x0:_0xd76c98[_0x4020c5(0x335)])===_0x2c6be2[_0x4020c5(0x335)]&&((_0x111534=this[_0x4020c5(0x311)])==null?void 0x0:_0x111534[_0x4020c5(0x2fb)])===_0x2c6be2['row']||this[_0x4020c5(0x3ef)]['forEach'](_0x3d0956=>{const _0xdf2db7=_0x4020c5;_0x3d0956[_0xdf2db7(0x3fb)](_0x2c6be2);});},0x64));});}[_0x18db4e(0x186)](_0x6b014d,_0x4666a2){const _0x5f4651=_0x18db4e;var _0x2d740b;const _0x272b1b=(_0x2d740b=this[_0x5f4651(0x1a6)][_0x5f4651(0x21d)]())==null?void 0x0:_0x2d740b[_0x5f4651(0x2fd)];if(!_0x272b1b)return;const _0x1465a4=this[_0x5f4651(0x3a2)]();if(!_0x1465a4)return;this[_0x5f4651(0x3ef)][_0x5f4651(0x281)](_0x43540d=>{const _0x414c4c=_0x5f4651;_0x43540d[_0x414c4c(0x1eb)]();});const {scene:_0x4674e4}=_0x1465a4,_0x2f7853=Et(Array[_0x5f4651(0x372)](_0x4666a2[_0x5f4651(0x39a)]()))[_0x5f4651(0x3a9)](_0x3d3ff2=>{const _0x218937=_0x5f4651,{color:_0x5f2902,range:_0x50ae05,name:_0x4e0037,selection:_0xae4ce,sheetID:_0x46f4fd}=_0x3d3ff2,{startColumn:_0x538a52,startRow:_0xf13899,endColumn:_0x289761,endRow:_0x3a3d99}=_0x50ae05,_0x1a0075=X['getCoordByCell'](_0xf13899,_0x538a52,_0x4674e4,_0x272b1b),_0x5d94e2=X[_0x218937(0x2ee)](_0x3a3d99,_0x289761,_0x4674e4,_0x272b1b),{columnHeaderHeightAndMarginTop:_0x16b8b9}=_0x272b1b,{startX:_0x442230,startY:_0x768930}=_0x1a0075,{endX:_0x4cc3cf,endY:_0x44bdc2}=_0x5d94e2,_0x2ae541=_0x4cc3cf-_0x442230,_0x28dbbc=_0x44bdc2-_0x768930,_0x5188e8={'labelPosition':_0x768930-_0x16b8b9>=K?'top':'bottom','sheetID':_0x46f4fd,'range':_0x50ae05,'color':_0x5f2902,'name':_0x4e0037,'selection':_0xae4ce,'left':_0x442230,'top':_0x768930,'width':_0x2ae541,'height':_0x28dbbc,'evented':!0x1,'zIndex':bt};return new Pe(_0x4e0037,_0x5188e8);});_0x4674e4['addObjects'](_0x2f7853,gt),this['_cursors']=new Set(_0x2f7853);}[_0x18db4e(0x21f)](){const _0x41acd2=_0x18db4e;var _0x4dcdf8;(_0x4dcdf8=this[_0x41acd2(0x3ef)])==null||_0x4dcdf8[_0x41acd2(0x281)](_0x3ec1e6=>_0x3ec1e6['dispose']());}[_0x18db4e(0x3a2)](){const _0x43c263=_0x18db4e;return X[_0x43c263(0x31f)](this[_0x43c263(0x3ba)][_0x43c263(0x185)],this['_context']);}};ve=pt([ae(0x1,a['Inject'](X[_0x18db4e(0x21a)])),ae(0x2,a[_0x18db4e(0x1ff)](x)),ae(0x3,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x1b0)]))],ve);function Et(_0x4d4ef0){const _0x5a7e1d=_0x18db4e,_0x3d599a=new Map();return _0x4d4ef0[_0x5a7e1d(0x281)](_0x4c8355=>{const _0x3e4b51=_0x5a7e1d;if(_0x3d599a[_0x3e4b51(0x3f3)](_0x4c8355['selection'])){const _0x2c7965=_0x3d599a['get'](_0x4c8355[_0x3e4b51(0x1fe)]);_0x2c7965[_0x3e4b51(0x276)]+=',\x20'+_0x4c8355['name'];}else _0x3d599a[_0x3e4b51(0x26b)](_0x4c8355[_0x3e4b51(0x1fe)],_0x4c8355);}),Array['from'](_0x3d599a[_0x5a7e1d(0x39a)]());}var E=function(){const _0x41df07=_0x18db4e;return E=Object['assign']||function(_0x49e6fb){const _0x394a98=_0x4661;for(var _0xd248d3,_0x229d3d=0x1,_0x15ba58=arguments[_0x394a98(0x3f7)];_0x229d3d<_0x15ba58;_0x229d3d++){_0xd248d3=arguments[_0x229d3d];for(var _0x216f99 in _0xd248d3)Object[_0x394a98(0x371)][_0x394a98(0x1a7)][_0x394a98(0x3b2)](_0xd248d3,_0x216f99)&&(_0x49e6fb[_0x216f99]=_0xd248d3[_0x216f99]);}return _0x49e6fb;},E[_0x41df07(0x3d0)](this,arguments);},Tt=function(_0x37bb01,_0x397372){const _0x1aaf39=_0x18db4e;var _0x3245dd={};for(var _0x434f84 in _0x37bb01)Object[_0x1aaf39(0x371)]['hasOwnProperty']['call'](_0x37bb01,_0x434f84)&&_0x397372['indexOf'](_0x434f84)<0x0&&(_0x3245dd[_0x434f84]=_0x37bb01[_0x434f84]);if(_0x37bb01!=null&&typeof Object[_0x1aaf39(0x2dd)]==_0x1aaf39(0x2d1)){for(var _0x577600=0x0,_0x434f84=Object['getOwnPropertySymbols'](_0x37bb01);_0x577600<_0x434f84['length'];_0x577600++)_0x397372[_0x1aaf39(0x282)](_0x434f84[_0x577600])<0x0&&Object[_0x1aaf39(0x371)][_0x1aaf39(0x207)][_0x1aaf39(0x3b2)](_0x37bb01,_0x434f84[_0x577600])&&(_0x3245dd[_0x434f84[_0x577600]]=_0x37bb01[_0x434f84[_0x577600]]);}return _0x3245dd;},pe=M[_0x18db4e(0x3c7)](function(_0xa13162,_0x5394a6){const _0x6f2ca1=_0x18db4e;var _0x3d72c5=_0xa13162['icon'],_0x4761e0=_0xa13162['id'],_0xcfe1b5=_0xa13162[_0x6f2ca1(0x217)],_0x9ed75c=_0xa13162['extend'],_0x195986=Tt(_0xa13162,[_0x6f2ca1(0x1f4),'id',_0x6f2ca1(0x217),'extend']),_0x34c2b3=_0x6f2ca1(0x231)['concat'](_0x4761e0,'\x20')[_0x6f2ca1(0x389)](_0xcfe1b5||'')[_0x6f2ca1(0x292)](),_0x3a5b55=M[_0x6f2ca1(0x358)]('_'['concat'](Dt()));return Ae(_0x3d72c5,''[_0x6f2ca1(0x389)](_0x4761e0),{'defIds':_0x3d72c5['defIds'],'idSuffix':_0x3a5b55[_0x6f2ca1(0x384)]},E({'ref':_0x5394a6,'className':_0x34c2b3},_0x195986),_0x9ed75c);});function Ae(_0x4f7105,_0x3071c5,_0x4d47dd,_0x1bd151,_0x19f912){const _0xe59eeb=_0x18db4e;return M[_0xe59eeb(0x2f8)](_0x4f7105['tag'],E(E({'key':_0x3071c5},Ot(_0x4f7105,_0x4d47dd,_0x19f912)),_0x1bd151),(Rt(_0x4f7105,_0x4d47dd)[_0xe59eeb(0x1ec)]||[])['map'](function(_0x574a9a,_0x44634f){const _0x3ec2df=_0xe59eeb;return Ae(_0x574a9a,''[_0x3ec2df(0x389)](_0x3071c5,'-')[_0x3ec2df(0x389)](_0x4f7105[_0x3ec2df(0x1c1)],'-')['concat'](_0x44634f),_0x4d47dd,void 0x0,_0x19f912);}));}function Ot(_0x8a6d8b,_0xbe1c39,_0x1d58f4){const _0x398766=_0x18db4e;var _0xd8e655=E({},_0x8a6d8b[_0x398766(0x39f)]);_0x1d58f4!=null&&_0x1d58f4['colorChannel1']&&_0xd8e655[_0x398766(0x35c)]===_0x398766(0x1d1)&&(_0xd8e655[_0x398766(0x35c)]=_0x1d58f4['colorChannel1']),_0x8a6d8b[_0x398766(0x1c1)]==='mask'&&_0xd8e655['id']&&(_0xd8e655['id']=_0xd8e655['id']+_0xbe1c39[_0x398766(0x26f)]),Object[_0x398766(0x1d2)](_0xd8e655)[_0x398766(0x281)](function(_0x32fb51){const _0x582513=_0x398766;var _0x3c9a08=_0x32fb51[0x0],_0x3985e1=_0x32fb51[0x1];_0x3c9a08===_0x582513(0x34b)&&typeof _0x3985e1==_0x582513(0x3b1)&&(_0xd8e655[_0x3c9a08]=_0x3985e1[_0x582513(0x291)](/url\(#(.*)\)/,_0x582513(0x23d)[_0x582513(0x389)](_0xbe1c39[_0x582513(0x26f)],')')));});var _0x3d20e4=_0xbe1c39[_0x398766(0x267)];return!_0x3d20e4||_0x3d20e4[_0x398766(0x3f7)]===0x0||(_0x8a6d8b[_0x398766(0x1c1)]===_0x398766(0x303)&&_0xd8e655['xlink:href']&&(_0xd8e655[_0x398766(0x21e)]=_0xd8e655[_0x398766(0x21e)]+_0xbe1c39[_0x398766(0x26f)]),Object[_0x398766(0x1d2)](_0xd8e655)['forEach'](function(_0x417f46){const _0x24d368=_0x398766;var _0x2e92d9=_0x417f46[0x0],_0x14a1f8=_0x417f46[0x1];typeof _0x14a1f8==_0x24d368(0x3b1)&&(_0xd8e655[_0x2e92d9]=_0x14a1f8[_0x24d368(0x291)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xbe1c39[_0x24d368(0x26f)],')')));})),_0xd8e655;}function Rt(_0x115070,_0x28305f){const _0x1c8a5d=_0x18db4e;var _0x2e8f8c,_0x8bf9f=_0x28305f[_0x1c8a5d(0x267)];return!_0x8bf9f||_0x8bf9f['length']===0x0?_0x115070:_0x115070[_0x1c8a5d(0x1c1)]===_0x1c8a5d(0x2ac)&&(!((_0x2e8f8c=_0x115070['children'])===null||_0x2e8f8c===void 0x0)&&_0x2e8f8c['length'])?E(E({},_0x115070),{'children':_0x115070['children'][_0x1c8a5d(0x3a9)](function(_0x3ef726){const _0xa1c21e=_0x1c8a5d;return typeof _0x3ef726[_0xa1c21e(0x39f)]['id']==_0xa1c21e(0x3b1)&&_0x8bf9f&&_0x8bf9f[_0xa1c21e(0x2be)](_0x3ef726[_0xa1c21e(0x39f)]['id'])?E(E({},_0x3ef726),{'attrs':E(E({},_0x3ef726[_0xa1c21e(0x39f)]),{'id':_0x3ef726[_0xa1c21e(0x39f)]['id']+_0x28305f['idSuffix']})}):_0x3ef726;})}):_0x115070;}function Dt(){const _0x2b9a7e=_0x18db4e;return Math[_0x2b9a7e(0x249)]()[_0x2b9a7e(0x1cf)](0x24)[_0x2b9a7e(0x3b6)](0x2,0x8);}pe[_0x18db4e(0x203)]='UniverIcon';var Ut={'tag':_0x18db4e(0x298),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x18db4e(0x23c),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x18db4e(0x386)},'children':[{'tag':_0x18db4e(0x3e1),'attrs':{'stroke':_0x18db4e(0x2a6),'d':_0x18db4e(0x2c5),'strokeLinecap':_0x18db4e(0x1d6),'strokeLinejoin':_0x18db4e(0x1d6),'strokeWidth':1.2}}]},{'tag':_0x18db4e(0x2ac),'attrs':{},'children':[{'tag':_0x18db4e(0x183),'attrs':{'id':_0x18db4e(0x2c3)},'children':[{'tag':_0x18db4e(0x3e1),'attrs':{'fill':_0x18db4e(0x381),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x18db4e(0x2c3)]},ye=M['forwardRef'](function(_0x1c580a,_0x3fe30d){const _0x182afc=_0x18db4e;return M[_0x182afc(0x2f8)](pe,Object[_0x182afc(0x2e8)]({},_0x1c580a,{'id':_0x182afc(0x1ef),'ref':_0x3fe30d,'icon':Ut}));});ye['displayName']=_0x18db4e(0x306);var Nt={'tag':_0x18db4e(0x298),'attrs':{'xmlns':_0x18db4e(0x1e3),'fill':_0x18db4e(0x399),'viewBox':_0x18db4e(0x31b),'width':_0x18db4e(0x2e5),'height':_0x18db4e(0x2e5)},'children':[{'tag':'g','attrs':{'clipPath':_0x18db4e(0x1a5)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x18db4e(0x1d6),'strokeWidth':1.2}}]},{'tag':_0x18db4e(0x2ac),'attrs':{},'children':[{'tag':_0x18db4e(0x183),'attrs':{'id':_0x18db4e(0x1e0)},'children':[{'tag':'path','attrs':{'fill':_0x18db4e(0x381),'d':'M0\x200H16V16H0z','transform':_0x18db4e(0x343)}}]}]}],'defIds':[_0x18db4e(0x1e0)]},$e=M[_0x18db4e(0x3c7)](function(_0x24416f,_0x53a558){const _0x239a5c=_0x18db4e;return M[_0x239a5c(0x2f8)](pe,Object[_0x239a5c(0x2e8)]({},_0x24416f,{'id':_0x239a5c(0x19c),'ref':_0x53a558,'icon':Nt}));});$e[_0x18db4e(0x203)]=_0x18db4e(0x199);function Mt(_0x171bab){const _0x57c316=_0x18db4e;switch(_0x171bab){case u[_0x57c316(0x1b4)][_0x57c316(0x269)]:return _0x57c316(0x2e4);case u[_0x57c316(0x1b4)][_0x57c316(0x353)]:return'collabStatus.conflict';case u[_0x57c316(0x1b4)][_0x57c316(0x374)]:return _0x57c316(0x1b6);case u[_0x57c316(0x1b4)]['NOT_COLLAB']:return _0x57c316(0x20d);case u[_0x57c316(0x1b4)]['AWAITING']:case u['CollaborationStatus'][_0x57c316(0x297)]:return _0x57c316(0x241);case u[_0x57c316(0x1b4)][_0x57c316(0x27d)]:case u[_0x57c316(0x1b4)]['PENDING']:return _0x57c316(0x40a);}}function xe(_0x488d21){const _0x283a91=_0x18db4e,{status$:_0x40e14a}=_0x488d21,_0x4bb737=T[_0x283a91(0x1c6)](_0x40e14a,u[_0x283a91(0x1b4)][_0x283a91(0x1c8)]),_0x2048f4=T[_0x283a91(0x1a3)](a['LocaleService']),_0x3ae8e8=T[_0x283a91(0x1a3)](u[_0x283a91(0x3a5)]),_0x24a3ca=_0x4bb737!==u[_0x283a91(0x1b4)]['OFFLINE'],_0x235304=_0x2048f4['t'](Mt(_0x4bb737)),_0x2bae54=_0x24a3ca?w[_0x283a91(0x1e9)]($e,{}):w[_0x283a91(0x1e9)](ye,{}),_0x59e9af=M[_0x283a91(0x25e)](()=>{const _0x578bf2=_0x283a91;_0x24a3ca||_0x3ae8e8[_0x578bf2(0x2b8)]();},[_0x24a3ca,_0x3ae8e8]);function _0x2cac34(){const _0x32b011=_0x283a91;return w[_0x32b011(0x277)](_0x32b011(0x2e0),{'className':_0x32b011(0x302),'onClick':_0x59e9af,'children':[w['jsx'](_0x32b011(0x2e0),{'className':D[_0x32b011(0x407)](_0x32b011(0x1cc),{'univer-text-green-500':_0x24a3ca,'univer-text-red-500':!_0x24a3ca}),'children':_0x2bae54}),w['jsx'](_0x32b011(0x2e0),{'className':_0x32b011(0x32a),'children':_0x235304})]});}return _0x24a3ca?_0x2cac34():w[_0x283a91(0x1e9)](D[_0x283a91(0x235)],{'title':_0x2048f4['t'](_0x283a91(0x287)),'children':_0x2cac34()});}var Lt=Object[_0x18db4e(0x25b)],wt=(_0x5d2ce1,_0x169d21,_0x4591be,_0x18339d)=>{const _0x4931ab=_0x18db4e;for(var _0x20393d=_0x18339d>0x1?void 0x0:_0x18339d?Lt(_0x169d21,_0x4591be):_0x169d21,_0x2605bd=_0x5d2ce1[_0x4931ab(0x3f7)]-0x1,_0x3a9f5b;_0x2605bd>=0x0;_0x2605bd--)(_0x3a9f5b=_0x5d2ce1[_0x2605bd])&&(_0x20393d=_0x3a9f5b(_0x20393d)||_0x20393d);return _0x20393d;},V=(_0x30da80,_0x2b87ae)=>(_0x3436de,_0x1ef36f)=>_0x2b87ae(_0x3436de,_0x1ef36f,_0x30da80);exports[_0x18db4e(0x26c)]=class extends a[_0x18db4e(0x378)]{constructor(_0x598388,_0xe18add,_0x2d2679,_0x236b10){const _0x144e19=_0x18db4e;super(),h(this,_0x144e19(0x227),new d[(_0x144e19(0x2bd))](u['CollaborationStatus'][_0x144e19(0x1c8)])),(this[_0x144e19(0x184)]=_0x598388,this[_0x144e19(0x1d3)]=_0xe18add,this[_0x144e19(0x188)]=_0x2d2679,this[_0x144e19(0x2df)]=_0x236b10,this['_initStatusComponent'](),this[_0x144e19(0x244)]());}[_0x18db4e(0x244)](){const _0x1f29ac=_0x18db4e;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x1f29ac(0x376)](d[_0x1f29ac(0x3ca)](()=>{const _0xa2bf5a=_0x1f29ac,_0x3ea52e=this[_0xa2bf5a(0x184)][_0xa2bf5a(0x3a3)]();return _0x3ea52e?this[_0xa2bf5a(0x188)][_0xa2bf5a(0x1bf)](_0x3ea52e[_0xa2bf5a(0x2ce)]()):d['of'](null);}),d[_0x1f29ac(0x3ca)](_0x209a2c=>_0x209a2c?_0x209a2c[_0x1f29ac(0x3aa)]:d['of'](u[_0x1f29ac(0x1b4)][_0x1f29ac(0x1c8)])))[_0x1f29ac(0x3d8)](_0xf11d9=>{const _0x58652e=_0x1f29ac;this[_0x58652e(0x227)]['next'](_0xf11d9);}));}[_0x18db4e(0x2e9)](){const _0x29222c=_0x18db4e;this[_0x29222c(0x3ae)](this[_0x29222c(0x2df)][_0x29222c(0x2d2)](T[_0x29222c(0x23b)]['HEADER_MENU'],()=>T[_0x29222c(0x3a7)](Pt({'status$':this[_0x29222c(0x227)][_0x29222c(0x369)]()}),this['_injector'])));}},exports[_0x18db4e(0x26c)]=wt([V(0x0,a[_0x18db4e(0x324)]),V(0x1,a[_0x18db4e(0x1ff)](a['Injector'])),V(0x2,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x308)])),V(0x3,T[_0x18db4e(0x1bd)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0x34d0e6){const {status$:_0x6aadea}=_0x34d0e6;return function(){const _0x19e6bb=_0x4661;return w[_0x19e6bb(0x1e9)](xe,{'status$':_0x6aadea});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x192d58,_0x295ca0,_0x1325b1,_0x10bea2)=>{const _0x173e34=_0x18db4e;for(var _0xdde33=_0x10bea2>0x1?void 0x0:_0x10bea2?At(_0x295ca0,_0x1325b1):_0x295ca0,_0x1bdc1d=_0x192d58[_0x173e34(0x3f7)]-0x1,_0x208387;_0x1bdc1d>=0x0;_0x1bdc1d--)(_0x208387=_0x192d58[_0x1bdc1d])&&(_0xdde33=_0x208387(_0xdde33)||_0xdde33);return _0xdde33;},y=(_0x56be2f,_0x42b2ad)=>(_0x2ebdc3,_0x4c3783)=>_0x42b2ad(_0x2ebdc3,_0x4c3783,_0x56be2f);let q=class extends a['Disposable']{constructor(_0x1509ba,_0x40a06f,_0x402753,_0x2e0ef6,_0x362859,_0x9c988d){const _0x24d05c=_0x18db4e;super(),this[_0x24d05c(0x20a)]=_0x1509ba,this[_0x24d05c(0x3c4)]=_0x40a06f,this[_0x24d05c(0x368)]=_0x402753,this[_0x24d05c(0x262)]=_0x2e0ef6,this[_0x24d05c(0x28e)]=_0x362859,this[_0x24d05c(0x1d9)]=_0x9c988d,this[_0x24d05c(0x1ce)](),this[_0x24d05c(0x1b2)]();}[_0x18db4e(0x1ce)](){const _0x5e1ea2=_0x18db4e;this[_0x5e1ea2(0x3ae)](this[_0x5e1ea2(0x20a)][_0x5e1ea2(0x2a5)](()=>{const _0xa93286=_0x5e1ea2;if(this[_0xa93286(0x3c4)][_0xa93286(0x352)][_0xa93286(0x30a)])return this[_0xa93286(0x1d9)]['t'](_0xa93286(0x3e3));}));}[_0x18db4e(0x1b2)](){const _0x33358b=_0x18db4e;this[_0x33358b(0x3ae)](this[_0x33358b(0x368)][_0x33358b(0x1c4)]['subscribe'](_0x3b1c24=>{const _0x316333=_0x33358b;_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x17e)]&&this['_messageService'][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x2ad)],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x22a))}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x3cd)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)]['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x3b1c24['id']===u['CollaborationUIEventId'][_0x316333(0x36f)]&&this['_notificationService'][_0x316333(0x3dc)]({'title':this[_0x316333(0x1d9)]['t'](_0x316333(0x398)),'content':this['_localeService']['t'](_0x316333(0x312)),'type':'error','duration':0x0}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x353)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x29e)],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x36c))+'('+_0x3b1c24[_0x316333(0x318)]+')'}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x26d)]&&this['_messageService'][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x2ad)],'content':this[_0x316333(0x1d9)]['t'](_0x3b1c24[_0x316333(0x318)]||'')}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x250)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x2ad)],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x3db))}),_0x3b1c24['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)]['Error'],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x2d8))}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x332)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)]['Error'],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x38d))});}));}};q=yt([y(0x0,T[_0x18db4e(0x212)]),y(0x1,u[_0x18db4e(0x190)]),y(0x2,a['Inject'](u[_0x18db4e(0x19d)])),y(0x3,T['IMessageService']),y(0x4,T[_0x18db4e(0x35b)]),y(0x5,a['Inject'](a[_0x18db4e(0x2dc)]))],q);const $t=_0x18db4e(0x229),Ue={},be=a[_0x18db4e(0x3f0)](_0x18db4e(0x2f7));var xt=Object[_0x18db4e(0x25b)],jt=(_0x15f1cd,_0x3283df,_0x178e2c,_0x30cd57)=>{const _0xbec79d=_0x18db4e;for(var _0x27b6ad=_0x30cd57>0x1?void 0x0:_0x30cd57?xt(_0x3283df,_0x178e2c):_0x3283df,_0x447fbd=_0x15f1cd[_0xbec79d(0x3f7)]-0x1,_0x40ea21;_0x447fbd>=0x0;_0x447fbd--)(_0x40ea21=_0x15f1cd[_0x447fbd])&&(_0x27b6ad=_0x40ea21(_0x27b6ad)||_0x27b6ad);return _0x27b6ad;},H=(_0x529a29,_0x4ff18c)=>(_0x5572fe,_0x1fdd61)=>_0x4ff18c(_0x5572fe,_0x1fdd61,_0x529a29);exports['CollaborationDataLoaderController']=class extends a[_0x18db4e(0x387)]{constructor(_0x27309a,_0x2536e3,_0x1426ed,_0xc47abd,_0x2ee9d4){const _0x2af75e=_0x18db4e;super(),this['_urlService']=_0x27309a,this[_0x2af75e(0x3a6)]=_0x2536e3,this['_commandService']=_0x1426ed,this[_0x2af75e(0x274)]=_0xc47abd,_0x2ee9d4?_0x2ee9d4==null||_0x2ee9d4[_0x2af75e(0x326)]()['then'](()=>this[_0x2af75e(0x35e)]()):(this[_0x2af75e(0x3a6)][_0x2af75e(0x25d)](_0x2af75e(0x182),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x18db4e(0x35e)](){const _0x3abd73=_0x18db4e,_0xcf4290=this[_0x3abd73(0x377)][_0x3abd73(0x363)](_0x3abd73(0x185)),_0x48bb98=this[_0x3abd73(0x377)][_0x3abd73(0x363)]('type'),_0x177364=this['_urlService']['getParam'](_0x3abd73(0x3f2));if(!_0xcf4290||!_0x48bb98){this[_0x3abd73(0x3a6)][_0x3abd73(0x25d)](_0x3abd73(0x182),_0x3abd73(0x3ec));return;}const _0x216896=await this['_dataLoaderService']['loadUnit'](_0xcf4290,Number(_0x48bb98),_0x177364);_0x216896&&_0x216896 instanceof a[_0x3abd73(0x30b)]&&this[_0x3abd73(0x3e8)](_0x216896);}async[_0x18db4e(0x3e8)](_0x5d8e34){const _0x294e84=_0x18db4e;await this['_updateSubUnitFromURLParams'](_0x5d8e34),_0x5d8e34[_0x294e84(0x234)][_0x294e84(0x376)](d[_0x294e84(0x36a)](this[_0x294e84(0x20c)]))[_0x294e84(0x3d8)](_0x1fdb76=>{const _0x453d00=_0x294e84;_0x1fdb76&&this[_0x453d00(0x1ba)](_0x1fdb76);}),this['_urlService']['urlChange$'][_0x294e84(0x376)](d[_0x294e84(0x36a)](this[_0x294e84(0x20c)]))[_0x294e84(0x3d8)](()=>this['_updateSubUnitFromURLParams'](_0x5d8e34));}[_0x18db4e(0x1ba)](_0x35c332,_0x374c57=!0x1){const _0x16a1a1=_0x18db4e,_0x18d890=this['_urlService'][_0x16a1a1(0x363)]('subunit');_0x35c332[_0x16a1a1(0x240)]()!==_0x18d890&&this[_0x16a1a1(0x377)][_0x16a1a1(0x1c2)](_0x16a1a1(0x3f2),_0x35c332[_0x16a1a1(0x240)](),_0x374c57);}async['_updateSubUnitFromURLParams'](_0x5b34d2){const _0x2934d5=_0x18db4e;var _0x24fd3f;const _0x205958=this[_0x2934d5(0x377)]['getParam'](_0x2934d5(0x3f2));if(!_0x205958||!_0x5b34d2['getSheetBySheetId'](_0x205958)){const _0x26f376=_0x5b34d2[_0x2934d5(0x364)]()[0x0],_0x4667c8=_0x5b34d2[_0x2934d5(0x1af)](_0x26f376);if(!_0x4667c8)return;this[_0x2934d5(0x1ba)](_0x4667c8,!0x0),await this[_0x2934d5(0x17f)][_0x2934d5(0x397)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b34d2[_0x2934d5(0x2ce)](),'subUnitId':_0x26f376});return;}((_0x24fd3f=_0x5b34d2[_0x2934d5(0x24b)]())==null?void 0x0:_0x24fd3f[_0x2934d5(0x240)]())!==_0x205958&&await this[_0x2934d5(0x17f)][_0x2934d5(0x397)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b34d2[_0x2934d5(0x2ce)](),'subUnitId':_0x205958});}},exports[_0x18db4e(0x273)]=jt([H(0x0,be),H(0x1,a[_0x18db4e(0x2a1)]),H(0x2,a[_0x18db4e(0x39d)]),H(0x3,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x409)])),H(0x4,a['Optional'](Ke[_0x18db4e(0x32e)]))],exports[_0x18db4e(0x273)]);var Bt=Object[_0x18db4e(0x25b)],kt=(_0x50e500,_0x3fbcb1,_0xe37b70,_0x1713a5)=>{const _0x3c0c93=_0x18db4e;for(var _0x1025ee=_0x1713a5>0x1?void 0x0:_0x1713a5?Bt(_0x3fbcb1,_0xe37b70):_0x3fbcb1,_0x34ee68=_0x50e500[_0x3c0c93(0x3f7)]-0x1,_0x54e0a6;_0x34ee68>=0x0;_0x34ee68--)(_0x54e0a6=_0x50e500[_0x34ee68])&&(_0x1025ee=_0x54e0a6(_0x1025ee)||_0x1025ee);return _0x1025ee;},ce=(_0x11d349,_0x104d00)=>(_0x2d6f7d,_0x33e60a)=>_0x104d00(_0x2d6f7d,_0x33e60a,_0x11d349);let z=class{constructor(_0x2af5f0,_0x4527ba,_0x381ba5){const _0x178afe=_0x18db4e;this[_0x178afe(0x1d3)]=_0x2af5f0,this[_0x178afe(0x33d)]=_0x4527ba,this[_0x178afe(0x3d2)]=_0x381ba5;}['transformIMECache'](_0xa4e8e1){const _0x28c83d=_0x18db4e;this[_0x28c83d(0x284)](_0xa4e8e1),this[_0x28c83d(0x37e)](_0xa4e8e1);}[_0x18db4e(0x3de)](_0x1f8372){const _0x10735c=_0x18db4e,{unitID:_0xf4a3ba}=_0x1f8372,_0x4c1bd2=this[_0x10735c(0x3d2)][_0x10735c(0x30f)](_0xf4a3ba)[_0x10735c(0x39b)](b[_0x10735c(0x3e5)]),{redoCache:_0x595b29}=_0x4c1bd2['getUndoRedoMutationParamsCache']();if(_0x595b29['length']===0x0)return _0x1f8372;let _0xa34257=a[_0x10735c(0x2cf)]['deepClone'](_0x1f8372['mutations'][0x0]);for(let _0x357a94=0x0;_0x357a94<_0x595b29[_0x10735c(0x3f7)];_0x357a94++){const _0x36d249={'id':_0x10735c(0x2d6),'params':{..._0x595b29[_0x357a94]}},_0x5ddd44=this['_transformService']['transformMutation'](_0xa34257,_0x36d249,!0x1);if(m[_0x10735c(0x2fc)](_0x5ddd44))throw _0x5ddd44[_0x10735c(0x39e)];_0xa34257=_0x5ddd44['m1Prime'];}return{...a[_0x10735c(0x2cf)][_0x10735c(0x348)](_0x1f8372),'mutations':[_0xa34257]};}[_0x18db4e(0x284)](_0x4c0caa){const _0x3c8441=_0x18db4e,{unitID:_0x108c27}=_0x4c0caa,_0x3a2c23=this[_0x3c8441(0x3d2)]['getRenderById'](_0x108c27)[_0x3c8441(0x39b)](b[_0x3c8441(0x3e5)]),{undoCache:_0x13d70a,redoCache:_0x361474}=_0x3a2c23['getUndoRedoMutationParamsCache']();if(_0x13d70a[_0x3c8441(0x3f7)]===0x0||_0x361474[_0x3c8441(0x3f7)]===0x0)return;const _0x5d338a=[],_0x38a76b=[];let _0x2e4ddf=a[_0x3c8441(0x2cf)][_0x3c8441(0x348)](_0x4c0caa[_0x3c8441(0x1f6)][0x0]),_0x5c7e53=a['Tools']['deepClone'](_0x4c0caa['mutations'][0x0]);for(let _0x1bd6eb=_0x13d70a['length']-0x1;_0x1bd6eb>=0x0;_0x1bd6eb--){const _0x3907c1={'id':_0x3c8441(0x2d6),'params':{..._0x13d70a[_0x1bd6eb]}},_0x5147c6={'id':_0x3c8441(0x2d6),'params':{..._0x361474[_0x1bd6eb]}},_0x4c9338=this['_transformService'][_0x3c8441(0x340)](_0x2e4ddf,_0x3907c1,!0x1),_0x42a8b0=this[_0x3c8441(0x33d)][_0x3c8441(0x340)](_0x5c7e53,_0x5147c6,!0x1);if(m[_0x3c8441(0x2fc)](_0x4c9338))throw _0x4c9338['error'];if(m['isTransformMutationFailure'](_0x42a8b0))throw _0x42a8b0['error'];_0x5d338a['unshift'](_0x4c9338[_0x3c8441(0x1c5)][_0x3c8441(0x223)]),_0x38a76b[_0x3c8441(0x32d)](_0x42a8b0[_0x3c8441(0x1c5)]['params']),_0x2e4ddf=_0x4c9338[_0x3c8441(0x3e9)],_0x5c7e53=_0x42a8b0[_0x3c8441(0x3e9)];}_0x3a2c23[_0x3c8441(0x1e8)]({'undoCache':_0x5d338a,'redoCache':_0x38a76b});}['_transformPreviousActiveRange'](_0x100a59){const _0xbf5b66=_0x18db4e,{unitID:_0x33f415}=_0x100a59,_0x312188=this[_0xbf5b66(0x3d2)][_0xbf5b66(0x30f)](_0x33f415)[_0xbf5b66(0x39b)](b[_0xbf5b66(0x3e5)]),_0x503c52=_0x312188[_0xbf5b66(0x290)]();if(_0x503c52==null)return;const _0x8ef680=[{'id':_0xbf5b66(0x2d6),'params':{'unitId':_0x100a59[_0xbf5b66(0x208)],'actions':null,'textRanges':[_0x503c52]}}],_0x3d8358=this[_0xbf5b66(0x33d)]['transformMutationsWithChangeset'](_0x100a59,_0x8ef680);if(!m[_0xbf5b66(0x181)](_0x3d8358))throw _0x3d8358[_0xbf5b66(0x39e)];const _0x51290e=_0x3d8358[_0xbf5b66(0x1c5)][0x0][_0xbf5b66(0x223)]['textRanges'];Array[_0xbf5b66(0x246)](_0x51290e)&&_0x51290e[_0xbf5b66(0x3f7)]&&_0x312188['setActiveRange'](_0x51290e[0x0]);}};z=kt([ce(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),ce(0x1,m[_0x18db4e(0x2db)]),ce(0x2,p[_0x18db4e(0x228)])],z);function _0x4661(_0xfb9770,_0x1a100d){const _0x411116=_0x4111();return _0x4661=function(_0x466131,_0x528a93){_0x466131=_0x466131-0x17e;let _0x483669=_0x411116[_0x466131];return _0x483669;},_0x4661(_0xfb9770,_0x1a100d);}var Ht=Object[_0x18db4e(0x25b)],Ft=(_0x2c2676,_0x56cde5,_0x46b271,_0x336eb7)=>{for(var _0x8a5062=_0x336eb7>0x1?void 0x0:_0x336eb7?Ht(_0x56cde5,_0x46b271):_0x56cde5,_0x437d9b=_0x2c2676['length']-0x1,_0x1a68eb;_0x437d9b>=0x0;_0x437d9b--)(_0x1a68eb=_0x2c2676[_0x437d9b])&&(_0x8a5062=_0x1a68eb(_0x8a5062)||_0x8a5062);return _0x8a5062;},le=(_0xe8ddd4,_0x5bd9ee)=>(_0x2ebabb,_0x148b16)=>_0x5bd9ee(_0x2ebabb,_0x148b16,_0xe8ddd4);let J=class{constructor(_0x181951,_0x59ae1a,_0x378be0){const _0x2fad14=_0x18db4e;this[_0x2fad14(0x1d3)]=_0x181951,this[_0x2fad14(0x33d)]=_0x59ae1a,this[_0x2fad14(0x3cb)]=_0x378be0;}['transformStateCache'](_0x3487fe){this['_transformHistoryAndStateStack'](_0x3487fe);}[_0x18db4e(0x3de)](_0x2f964b){const _0x253159=_0x18db4e,{unitID:_0xd08d78}=_0x2f964b,{collaboration:_0x3b10ab}=this[_0x253159(0x3cb)][_0x253159(0x1e7)](_0xd08d78);if(_0x3b10ab['length']===0x0)return _0x2f964b;let _0x1f7115=a[_0x253159(0x2cf)][_0x253159(0x348)](_0x2f964b[_0x253159(0x1f6)][0x0]);for(let _0x485e92=0x0;_0x485e92<_0x3b10ab[_0x253159(0x3f7)];_0x485e92++){const _0x2bae90={'id':_0x253159(0x2d6),'params':{'unitId':_0x3b10ab[_0x485e92][_0x253159(0x356)],..._0x3b10ab[_0x485e92][_0x253159(0x1aa)]}},_0x590d2b=this[_0x253159(0x33d)][_0x253159(0x340)](_0x1f7115,_0x2bae90,!0x1);if(m[_0x253159(0x2fc)](_0x590d2b))throw _0x590d2b[_0x253159(0x39e)];_0x1f7115=_0x590d2b[_0x253159(0x3e9)];}return{...a[_0x253159(0x2cf)][_0x253159(0x348)](_0x2f964b),'mutations':[_0x1f7115]};}[_0x18db4e(0x239)](_0x40baf9){const _0x4fd10b=_0x18db4e,{unitID:_0x33e150}=_0x40baf9,{history:_0x430b0e,collaboration:_0x2557cb}=this[_0x4fd10b(0x3cb)][_0x4fd10b(0x1e7)](_0x33e150);if(_0x430b0e[_0x4fd10b(0x3f7)]===0x0&&_0x2557cb[_0x4fd10b(0x3f7)]===0x0)return;const _0x4929b2=[],_0x313777=[];let _0x346e08=a[_0x4fd10b(0x2cf)][_0x4fd10b(0x348)](_0x40baf9[_0x4fd10b(0x1f6)][0x0]),_0x51b70c=a[_0x4fd10b(0x2cf)]['deepClone'](_0x40baf9[_0x4fd10b(0x1f6)][0x0]);for(let _0xbb3db=_0x430b0e[_0x4fd10b(0x3f7)]-0x1;_0xbb3db>=0x0;_0xbb3db--){const _0x5c63a7={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x430b0e[_0xbb3db][_0x4fd10b(0x356)],..._0x430b0e[_0xbb3db]['undoState']}},_0x5d13e8={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x430b0e[_0xbb3db]['unitId'],..._0x430b0e[_0xbb3db][_0x4fd10b(0x1aa)]}},_0x24323e=this[_0x4fd10b(0x33d)][_0x4fd10b(0x340)](_0x346e08,_0x5c63a7,!0x1),_0x358cab=this[_0x4fd10b(0x33d)]['transformMutation'](_0x51b70c,_0x5d13e8,!0x1);if(m[_0x4fd10b(0x2fc)](_0x24323e))throw _0x24323e[_0x4fd10b(0x39e)];if(m[_0x4fd10b(0x2fc)](_0x358cab))throw _0x358cab[_0x4fd10b(0x39e)];_0x4929b2['unshift']({..._0x430b0e[_0xbb3db],'undoState':_0x24323e[_0x4fd10b(0x1c5)]['params'],'redoState':_0x358cab[_0x4fd10b(0x1c5)][_0x4fd10b(0x223)]}),_0x346e08=_0x24323e[_0x4fd10b(0x3e9)],_0x51b70c=_0x358cab[_0x4fd10b(0x3e9)];}_0x346e08=a[_0x4fd10b(0x2cf)][_0x4fd10b(0x348)](_0x40baf9[_0x4fd10b(0x1f6)][0x0]),_0x51b70c=a['Tools'][_0x4fd10b(0x348)](_0x40baf9[_0x4fd10b(0x1f6)][0x0]);for(let _0x186d58=_0x2557cb[_0x4fd10b(0x3f7)]-0x1;_0x186d58>=0x0;_0x186d58--){const _0x288032={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x2557cb[_0x186d58][_0x4fd10b(0x356)],..._0x2557cb[_0x186d58][_0x4fd10b(0x1a1)]}},_0x244d92={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x2557cb[_0x186d58][_0x4fd10b(0x356)],..._0x2557cb[_0x186d58][_0x4fd10b(0x1aa)]}},_0x422bb6=this['_transformService'][_0x4fd10b(0x340)](_0x346e08,_0x288032,!0x1),_0x93c5c8=this[_0x4fd10b(0x33d)][_0x4fd10b(0x340)](_0x51b70c,_0x244d92,!0x1);if(m[_0x4fd10b(0x2fc)](_0x422bb6))throw _0x422bb6[_0x4fd10b(0x39e)];if(m[_0x4fd10b(0x2fc)](_0x93c5c8))throw _0x93c5c8['error'];_0x313777[_0x4fd10b(0x32d)]({..._0x2557cb[_0x186d58],'undoState':_0x422bb6['m2Prime'][_0x4fd10b(0x223)],'redoState':_0x93c5c8[_0x4fd10b(0x1c5)][_0x4fd10b(0x223)]}),_0x346e08=_0x422bb6[_0x4fd10b(0x3e9)],_0x51b70c=_0x93c5c8[_0x4fd10b(0x3e9)];}this[_0x4fd10b(0x3cb)][_0x4fd10b(0x333)](_0x33e150,{'history':_0x4929b2,'collaboration':_0x313777});}};J=Ft([le(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),le(0x1,m['ITransformService']),le(0x2,a[_0x18db4e(0x1ff)](b[_0x18db4e(0x3f6)]))],J);var Yt=Object[_0x18db4e(0x25b)],Wt=(_0x966051,_0x2390d9,_0x359014,_0xcd2861)=>{const _0x3cfd2a=_0x18db4e;for(var _0x37c67c=_0xcd2861>0x1?void 0x0:_0xcd2861?Yt(_0x2390d9,_0x359014):_0x2390d9,_0x50587e=_0x966051[_0x3cfd2a(0x3f7)]-0x1,_0x49b5d9;_0x50587e>=0x0;_0x50587e--)(_0x49b5d9=_0x966051[_0x50587e])&&(_0x37c67c=_0x49b5d9(_0x37c67c)||_0x37c67c);return _0x37c67c;},Ne=(_0x2cf4cb,_0x597063)=>(_0x14aac5,_0x3df4f0)=>_0x597063(_0x14aac5,_0x3df4f0,_0x2cf4cb);let Z=class{constructor(_0x113c2d,_0x3c27e6){const _0x236a92=_0x18db4e;this[_0x236a92(0x1d3)]=_0x113c2d,this[_0x236a92(0x33d)]=_0x3c27e6;}[_0x18db4e(0x1d4)](_0x47f062){const _0xa01bdf=_0x18db4e;var _0x182647;const _0x41e32e=this['_injector'][_0xa01bdf(0x3b3)](Y['DocSelectionManagerService']),_0x1d07f7=(_0x182647=_0x41e32e[_0xa01bdf(0x336)]())!=null?_0x182647:[];if(_0x1d07f7['length']===0x0)return;const _0x31ef86=_0x47f062['unitID'],_0x47c5ac=[{'id':_0xa01bdf(0x2d6),'params':{'unitId':_0x31ef86,'actions':null,'textRanges':_0x1d07f7}}],_0x367ae3=this[_0xa01bdf(0x33d)][_0xa01bdf(0x1b5)](_0x47f062,_0x47c5ac);if(!m['isTransformMutationsWithChangesetSuccess'](_0x367ae3))throw _0x367ae3['error'];const _0x550a28=_0x367ae3[_0xa01bdf(0x1c5)][0x0]['params']['textRanges'];Array[_0xa01bdf(0x246)](_0x550a28)&&_0x550a28['length']&&_0x41e32e[_0xa01bdf(0x1b9)](_0x550a28,{'unitId':_0x31ef86,'subUnitId':_0x31ef86},!0x1);}};Z=Wt([Ne(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),Ne(0x1,m[_0x18db4e(0x2db)])],Z);var Vt=Object[_0x18db4e(0x25b)],Xt=(_0x174643,_0xe51d70,_0x57d542,_0x3eaa1c)=>{for(var _0x5716e3=_0x3eaa1c>0x1?void 0x0:_0x3eaa1c?Vt(_0xe51d70,_0x57d542):_0xe51d70,_0x23919f=_0x174643['length']-0x1,_0x158d33;_0x23919f>=0x0;_0x23919f--)(_0x158d33=_0x174643[_0x23919f])&&(_0x5716e3=_0x158d33(_0x5716e3)||_0x5716e3);return _0x5716e3;},N=(_0x9c7fa,_0x47e69e)=>(_0x420e96,_0x2bbb52)=>_0x47e69e(_0x420e96,_0x2bbb52,_0x9c7fa);let Q=class extends a[_0x18db4e(0x378)]{constructor(_0x1f8cf3,_0x2f3c4d,_0x493509,_0x577b3d,_0x3202ff,_0x2e19fe,_0x17244c,_0x16128b){const _0x501665=_0x18db4e;super(),h(this,_0x501665(0x227),new d[(_0x501665(0x2bd))](u[_0x501665(0x1b4)][_0x501665(0x1c8)])),(this[_0x501665(0x3cb)]=_0x1f8cf3,this[_0x501665(0x188)]=_0x2f3c4d,this['_docTransformIMECacheService']=_0x493509,this[_0x501665(0x214)]=_0x577b3d,this[_0x501665(0x2ea)]=_0x3202ff,this[_0x501665(0x27b)]=_0x2e19fe,this[_0x501665(0x262)]=_0x17244c,this[_0x501665(0x1d9)]=_0x16128b,this[_0x501665(0x18a)]());}['_initEntityListener'](){const _0xc61072=_0x18db4e;this[_0xc61072(0x3ae)](this['_collaborationController'][_0xc61072(0x38f)][_0xc61072(0x3d8)](_0x37aa20=>{const _0x2e8478=_0xc61072,_0x54827b=this[_0x2e8478(0x3cb)][_0x2e8478(0x196)][_0x2e8478(0x3d8)](_0x30b68b=>{const _0x13a3fb=_0x2e8478;if(_0x30b68b==null)return;const {unitId:_0x381a9b,redoState:_0x5c2657,commandId:_0x5268fa}=_0x30b68b;if(_0x381a9b!==_0x37aa20[_0x13a3fb(0x208)])return;const _0x43f6b0={'id':_0x5268fa,'type':a['CommandType'][_0x13a3fb(0x19e)],'params':{'unitId':_0x381a9b,'actions':_0x5c2657[_0x13a3fb(0x341)],'textRanges':null}};_0x37aa20['onLocalMutation'](_0x43f6b0);});if(_0x37aa20[_0x2e8478(0x3ae)](_0x54827b),_0x37aa20 instanceof u[_0x2e8478(0x19a)]){const _0x5575cb={'onTransformIME':_0x44b774=>this[_0x2e8478(0x265)][_0x2e8478(0x38e)](_0x44b774),'onTransformState':_0x2e2c3f=>this['_docTransformStateCacheService'][_0x2e8478(0x2e6)](_0x2e2c3f),'onTransformSelections':_0x1ebbde=>this['_docTransformSelectionsService'][_0x2e8478(0x1d4)](_0x1ebbde),'onSyncEditingCollabCursor':_0x49d133=>this['_docSyncEditingCollabCursorService'][_0x2e8478(0x28d)](_0x49d133),'onTransformRemoteChangesetByIMECache':_0x39b7d4=>this[_0x2e8478(0x265)][_0x2e8478(0x3de)](_0x39b7d4),'onTransformRemoteChangesetByStateCache':_0x19fbb6=>this[_0x2e8478(0x214)]['transformRemoteChangeset'](_0x19fbb6)};_0x37aa20[_0x2e8478(0x283)](_0x5575cb);}}));}};Q=Xt([N(0x0,a[_0x18db4e(0x1ff)](b['DocStateChangeManagerService'])),N(0x1,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x308)])),N(0x2,a[_0x18db4e(0x1ff)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x18db4e(0x1ff)](Z)),N(0x5,a[_0x18db4e(0x1ff)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x2dc)]))],Q);var Gt=Object[_0x18db4e(0x25b)],Kt=(_0x51c8a7,_0x2340bb,_0x57b285,_0x9dbd16)=>{const _0x3fd3d0=_0x18db4e;for(var _0x54db39=_0x9dbd16>0x1?void 0x0:_0x9dbd16?Gt(_0x2340bb,_0x57b285):_0x2340bb,_0x21d25b=_0x51c8a7[_0x3fd3d0(0x3f7)]-0x1,_0x4d1ae3;_0x21d25b>=0x0;_0x21d25b--)(_0x4d1ae3=_0x51c8a7[_0x21d25b])&&(_0x54db39=_0x4d1ae3(_0x54db39)||_0x54db39);return _0x54db39;},_e=(_0x43118c,_0x1c90cc)=>(_0x3415bb,_0x49e485)=>_0x1c90cc(_0x3415bb,_0x49e485,_0x43118c);let ge=class extends a[_0x18db4e(0x378)]{constructor(_0x10e67a,_0x3c1522,_0x47f2c1){const _0x2d74e1=_0x18db4e;super(),h(this,_0x2d74e1(0x40c),new Map()),h(this,_0x2d74e1(0x2f0),new Map()),h(this,'_disabled',!0x1),(this[_0x2d74e1(0x2c7)]=_0x10e67a,this[_0x2d74e1(0x2c6)]=_0x3c1522,this[_0x2d74e1(0x2b9)]=_0x47f2c1);}[_0x18db4e(0x375)](){const _0x502d49=_0x18db4e;this[_0x502d49(0x201)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x18db4e(0x352)](){const _0x1ffd47=_0x18db4e;return this[_0x1ffd47(0x2f0)];}['dispose'](){const _0x31d525=_0x18db4e;this[_0x31d525(0x2f9)]()[_0x31d525(0x253)](()=>super[_0x31d525(0x2d3)]());}async[_0x18db4e(0x3a8)](_0xee43e8){const _0x2da4ca=_0x18db4e;return this['_disabled']?null:this[_0x2da4ca(0x2c6)][_0x2da4ca(0x1be)](u[_0x2da4ca(0x272)](_0xee43e8));}async[_0x18db4e(0x266)](_0xf328ff,_0x14024c){const _0x7c4ebd=_0x18db4e;return!!this[_0x7c4ebd(0x2c6)][_0x7c4ebd(0x1dd)](_0xf328ff,_0x14024c);}[_0x18db4e(0x270)](_0x13e62d,_0x1ad3a3,_0x469889,_0x5e3018){const _0x3f6b74=_0x18db4e,_0x4eb230=this[_0x3f6b74(0x2b9)][_0x3f6b74(0x1ed)](_0x13e62d);this[_0x3f6b74(0x40c)][_0x3f6b74(0x26b)](_0x13e62d,{'unitID':_0x13e62d,'type':_0x1ad3a3,'awaitingChangeset':_0x469889,'mutations':_0x5e3018,'rev':_0x4eb230}),this[_0x3f6b74(0x2f0)][_0x3f6b74(0x3f3)](_0x13e62d)||this[_0x3f6b74(0x34e)](_0x13e62d);}[_0x18db4e(0x34e)](_0x12f75f){const _0x2c82de=_0x18db4e,_0x5b4742=this[_0x2c82de(0x2bc)]();_0x5b4742===0x0?this[_0x2c82de(0x289)](_0x12f75f):this['_saveTaskMap']['set'](_0x12f75f,setTimeout(()=>this[_0x2c82de(0x289)](_0x12f75f),_0x5b4742));}[_0x18db4e(0x2bc)](){const _0x4f04c5=_0x18db4e;var _0x2c7fa6;return(_0x2c7fa6=this['_configService'][_0x4f04c5(0x3d3)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2c7fa6:u['LOCAL_CACHE_INTERVAL'];}[_0x18db4e(0x289)](_0x1a5a9e){const _0x118d2a=_0x18db4e,_0x25e396=this[_0x118d2a(0x2f0)][_0x118d2a(0x3b3)](_0x1a5a9e);return _0x25e396!==void 0x0&&window[_0x118d2a(0x238)](_0x25e396),this[_0x118d2a(0x2c6)][_0x118d2a(0x1dd)](u[_0x118d2a(0x272)](_0x1a5a9e),this[_0x118d2a(0x40c)][_0x118d2a(0x3b3)](_0x1a5a9e))['then'](()=>this[_0x118d2a(0x2f0)][_0x118d2a(0x3c6)](_0x1a5a9e));}async[_0x18db4e(0x2f9)](){const _0x12490b=_0x18db4e,_0x3cc485=[];this[_0x12490b(0x2f0)][_0x12490b(0x281)]((_0x3216dc,_0x40c3b9)=>{const _0x2a89e5=_0x12490b;window[_0x2a89e5(0x238)](_0x3216dc),_0x3cc485[_0x2a89e5(0x342)](this[_0x2a89e5(0x289)](_0x40c3b9)[_0x2a89e5(0x253)](()=>{const _0x15d76a=_0x2a89e5;this[_0x15d76a(0x2f0)][_0x15d76a(0x3c6)](_0x40c3b9);}));}),await Promise[_0x12490b(0x224)](_0x3cc485);}};ge=Kt([_e(0x0,a[_0x18db4e(0x309)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m['RevisionService']))],ge);class je extends a[_0x18db4e(0x387)]{constructor(){const _0x16b2ad=_0x18db4e;super(),h(this,_0x16b2ad(0x361)),this[_0x16b2ad(0x361)]=d[_0x16b2ad(0x359)](window,_0x16b2ad(0x40b))[_0x16b2ad(0x376)](d[_0x16b2ad(0x36a)](this[_0x16b2ad(0x20c)]),d[_0x16b2ad(0x2e7)](0x1),d['mapTo'](void 0x0));}[_0x18db4e(0x1c2)](_0xb25978,_0x3597af,_0xb8ab8b=!0x1){const _0x4db8ac=_0x18db4e,_0x75d260=new URL(window[_0x4db8ac(0x3c5)][_0x4db8ac(0x1c9)]);_0x75d260[_0x4db8ac(0x355)][_0x4db8ac(0x26b)](_0xb25978,_0x3597af),_0xb8ab8b?window[_0x4db8ac(0x38c)][_0x4db8ac(0x40d)]('','',_0x75d260['toString']()):window[_0x4db8ac(0x38c)][_0x4db8ac(0x404)]('','',_0x75d260[_0x4db8ac(0x1cf)]());}[_0x18db4e(0x32c)](_0x447bf2,_0x51005f=!0x1){const _0x862c82=_0x18db4e,_0x138a74=new URL(window['location'][_0x862c82(0x1c9)]);_0x138a74[_0x862c82(0x355)][_0x862c82(0x3c6)](_0x447bf2),_0x51005f?window[_0x862c82(0x38c)]['replaceState']('','',_0x138a74[_0x862c82(0x1cf)]()):window[_0x862c82(0x38c)]['pushState']('','',_0x138a74[_0x862c82(0x1cf)]());}['getParam'](_0x54a667){const _0xe0ed2d=_0x18db4e;var _0x492003;return(_0x492003=new URL(window[_0xe0ed2d(0x3c5)][_0xe0ed2d(0x1c9)])['searchParams']['get'](_0x54a667))!=null?_0x492003:void 0x0;}}var qt=Object[_0x18db4e(0x33e)],zt=Object[_0x18db4e(0x25b)],Jt=(_0x3594a3,_0x4ceae9,_0x202867)=>_0x4ceae9 in _0x3594a3?qt(_0x3594a3,_0x4ceae9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x202867}):_0x3594a3[_0x4ceae9]=_0x202867,Zt=(_0x509dac,_0xf644aa,_0x6b4cee,_0x30ee31)=>{const _0x3a612a=_0x18db4e;for(var _0x14595f=_0x30ee31>0x1?void 0x0:_0x30ee31?zt(_0xf644aa,_0x6b4cee):_0xf644aa,_0x1e8610=_0x509dac[_0x3a612a(0x3f7)]-0x1,_0x1cfea7;_0x1e8610>=0x0;_0x1e8610--)(_0x1cfea7=_0x509dac[_0x1e8610])&&(_0x14595f=_0x1cfea7(_0x14595f)||_0x14595f);return _0x14595f;},he=(_0x15e7db,_0x5a6792)=>(_0x15c515,_0xbec82d)=>_0x5a6792(_0x15c515,_0xbec82d,_0x15e7db),Qt=(_0x4d23ac,_0x4c305a,_0x35fb33)=>Jt(_0x4d23ac,_0x4c305a+'',_0x35fb33);const es=_0x18db4e(0x243);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x456f7d=Ue,_0x48d3ba,_0x4fe802,_0x5f191f){const _0x3fdee1=_0x18db4e;super(),this[_0x3fdee1(0x2f3)]=_0x456f7d,this[_0x3fdee1(0x3d2)]=_0x48d3ba,this['_injector']=_0x4fe802,this[_0x3fdee1(0x2c7)]=_0x5f191f;const {..._0x18c376}=a[_0x3fdee1(0x1ab)]({},Ue,this[_0x3fdee1(0x2f3)]);this[_0x3fdee1(0x2c7)][_0x3fdee1(0x344)]($t,_0x18c376);}['onStarting'](){const _0x1f0102=_0x18db4e;this[_0x1f0102(0x22f)](),this[_0x1f0102(0x1f0)]();}[_0x18db4e(0x2c1)](){const _0x583d47=_0x18db4e;this[_0x583d47(0x411)]();}[_0x18db4e(0x22f)](){const _0x478d84=_0x18db4e;var _0x9abd0a;const _0x35ae79=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x478d84(0x255)]}],[u[_0x478d84(0x190)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x478d84(0x273)]]];a[_0x478d84(0x3fa)](this[_0x478d84(0x1d3)],a[_0x478d84(0x268)](_0x35ae79,(_0x9abd0a=this[_0x478d84(0x2f3)])==null?void 0x0:_0x9abd0a['override']));}[_0x18db4e(0x411)](){const _0x176cad=_0x18db4e;this['disposeWithMe'](this[_0x176cad(0x3d2)]['registerRenderModule'](a[_0x176cad(0x1b7)]['UNIVER_DOC'],[Ie])),this[_0x176cad(0x3ae)](this[_0x176cad(0x3d2)]['registerRenderModule'](a[_0x176cad(0x1b7)][_0x176cad(0x2c8)],[ve]));}[_0x18db4e(0x1f0)](){const _0x241283=_0x18db4e;a[_0x241283(0x3ff)](this[_0x241283(0x1d3)],[[x],[exports[_0x241283(0x26c)]],[Q],[q],[exports[_0x241283(0x273)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x18db4e(0x3f4),es),exports[_0x18db4e(0x3bc)]=Zt([a[_0x18db4e(0x1a4)](u[_0x18db4e(0x3d5)]),he(0x1,p[_0x18db4e(0x228)]),he(0x2,a[_0x18db4e(0x1ff)](a['Injector'])),he(0x3,a[_0x18db4e(0x309)])],exports[_0x18db4e(0x3bc)]);var ts=Object[_0x18db4e(0x25b)],ss=(_0x1b23d2,_0x26a3a1,_0x290842,_0x13f3be)=>{const _0x5799a7=_0x18db4e;for(var _0x42d306=_0x13f3be>0x1?void 0x0:_0x13f3be?ts(_0x26a3a1,_0x290842):_0x26a3a1,_0x452192=_0x1b23d2[_0x5799a7(0x3f7)]-0x1,_0x2b197a;_0x452192>=0x0;_0x452192--)(_0x2b197a=_0x1b23d2[_0x452192])&&(_0x42d306=_0x2b197a(_0x42d306)||_0x42d306);return _0x42d306;},F=(_0x14efaa,_0x4e4189)=>(_0x43b61a,_0x279087)=>_0x4e4189(_0x43b61a,_0x279087,_0x14efaa);exports[_0x18db4e(0x3b4)]=class extends u[_0x18db4e(0x193)]{constructor(_0x19c6c9,_0x43266a,_0x559fe1,_0xcaa066,_0x341444){super(_0x19c6c9,_0x43266a,_0x559fe1,_0xcaa066,_0x341444);}async[_0x18db4e(0x3ab)](_0x3b229f){const _0x7374bd=await this['_getSessionTicket'](),_0x362b65=this['_createSocketURL'](_0x3b229f,_0x7374bd);return this['_doCreateSocket'](_0x362b65);}['_createSocketURL'](_0x7a9381,_0x59fb63){const _0x5cf11f=_0x18db4e,_0x591320=typeof window>'u'?new URL(_0x7a9381):new URL(_0x7a9381,window[_0x5cf11f(0x3c5)][_0x5cf11f(0x3dd)]);_0x591320['searchParams'][_0x5cf11f(0x26b)](_0x5cf11f(0x206),_0x59fb63);const _0x424e15=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5cf11f(0x3c5)]['search']);return _0x424e15['get'](_0x5cf11f(0x24f))&&_0x591320['searchParams'][_0x5cf11f(0x26b)](_0x5cf11f(0x24f),_0x424e15['get']('runId')),_0x591320[_0x5cf11f(0x1cf)]();}async[_0x18db4e(0x365)](){const _0x836d26=_0x18db4e;var _0x2cecaa,_0xaee4c1,_0x3b6d88;const _0x378fe0=this['_configService']['getConfig'](u[_0x836d26(0x2c4)]),_0x571af6=(_0x2cecaa=_0x378fe0==null?void 0x0:_0x378fe0['wsSessionTicketUrl'])!=null?_0x2cecaa:u[_0x836d26(0x24a)];return(_0x3b6d88=(_0xaee4c1=(await this[_0x836d26(0x22d)][_0x836d26(0x3b3)](_0x571af6,{'headers':{'Content-Type':'application/json'}}))[_0x836d26(0x379)])==null?void 0x0:_0xaee4c1[_0x836d26(0x31e)])!=null?_0x3b6d88:'';}},exports[_0x18db4e(0x3b4)]=ss([F(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),F(0x1,a[_0x18db4e(0x1ff)](G['HTTPService'])),F(0x2,a[_0x18db4e(0x309)]),F(0x3,a[_0x18db4e(0x2a1)]),F(0x4,m[_0x18db4e(0x254)])],exports[_0x18db4e(0x3b4)]);const Me=0x7530,Le=_0x18db4e(0x3f9);class is extends a[_0x18db4e(0x378)]{constructor(){const _0x2284bb=_0x18db4e;super(),h(this,_0x2284bb(0x2a7),a['generateRandomId']()),h(this,_0x2284bb(0x220),new Set()),h(this,_0x2284bb(0x330),new Map()),h(this,_0x2284bb(0x322),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x2284bb(0x2b1),new Map()),this[_0x2284bb(0x35e)]();}[_0x18db4e(0x2d3)](){const _0x387377=_0x18db4e;super[_0x387377(0x2d3)](),this[_0x387377(0x31c)][_0x387377(0x281)]((_0x92a259,_0x39009d)=>this['_removeClearOtherTimer'](_0x39009d)),this[_0x387377(0x322)]&&window[_0x387377(0x38a)](this[_0x387377(0x322)]);}[_0x18db4e(0x2da)](_0x23b024){return this['_ensureSubject'](_0x23b024)['pipe'](d['distinctUntilChanged']());}['editingUnit'](_0x2c0ff2){const _0x12909f=_0x18db4e;this[_0x12909f(0x220)][_0x12909f(0x30a)]===0x0&&this[_0x12909f(0x2cb)](),this[_0x12909f(0x220)]['add'](_0x2c0ff2),this[_0x12909f(0x271)]({'type':0x0,'memberID':this[_0x12909f(0x2a7)],'unitIDs':[_0x2c0ff2],'isForwarded':!0x1});}[_0x18db4e(0x1dc)](_0x1fb5ed){const _0x4a5946=_0x18db4e;this[_0x4a5946(0x220)][_0x4a5946(0x3c6)](_0x1fb5ed),this[_0x4a5946(0x220)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x22b6a3=_0x18db4e;this[_0x22b6a3(0x3ae)](a['toDisposable'](d[_0x22b6a3(0x359)](window,_0x22b6a3(0x209))['subscribe'](_0x974ea=>{const _0x2acdb2=_0x22b6a3;if(_0x974ea['key']!==Le||!_0x974ea['newValue'])return;const _0x3dfae9=JSON['parse'](_0x974ea[_0x2acdb2(0x395)]);this['_handleEvent'](_0x3dfae9);}))),window[_0x22b6a3(0x211)](_0x22b6a3(0x2a4),()=>this[_0x22b6a3(0x271)]({'type':0x1,'memberID':this[_0x22b6a3(0x2a7)],'unitIDs':Array[_0x22b6a3(0x372)](this[_0x22b6a3(0x220)])}));}[_0x18db4e(0x230)](_0x9ebbc6){const _0x1d0ac9=_0x18db4e;switch(_0x9ebbc6[_0x1d0ac9(0x1f2)]){case 0x0:this[_0x1d0ac9(0x1fb)](_0x9ebbc6);break;case 0x1:this['_handleLeaveEvent'](_0x9ebbc6);break;case 0x2:this['_handleHeartbeatEvent'](_0x9ebbc6);break;}}[_0x18db4e(0x1fb)](_0x4fec94){const _0x371c35=_0x18db4e,{unitIDs:_0x42fa5c,memberID:_0x47cc0b,isForwarded:_0x3ccc65}=_0x4fec94;_0x42fa5c['forEach'](_0x5f23cc=>{const _0x27a61a=_0x4661;if(!_0x3ccc65&&this['_unitOnClients']['has'](_0x5f23cc)&&this[_0x27a61a(0x317)](_0x5f23cc)[_0x27a61a(0x187)](u[_0x27a61a(0x28a)][_0x27a61a(0x1fc)]),!this[_0x27a61a(0x330)][_0x27a61a(0x3f3)](_0x5f23cc)||!this[_0x27a61a(0x330)]['get'](_0x5f23cc)[_0x27a61a(0x3f3)](_0x47cc0b)){const _0x41af08=this[_0x27a61a(0x330)][_0x27a61a(0x3b3)](_0x5f23cc)||new Set();_0x41af08[_0x27a61a(0x245)](_0x47cc0b),this[_0x27a61a(0x330)][_0x27a61a(0x26b)](_0x5f23cc,_0x41af08),this[_0x27a61a(0x256)](_0x47cc0b);}}),_0x3ccc65||this[_0x371c35(0x271)]({'type':0x0,'memberID':this[_0x371c35(0x2a7)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3221f0){const _0x18e90e=_0x18db4e;this[_0x18e90e(0x3ea)](_0x3221f0);const _0x5026f5=window[_0x18e90e(0x20b)](()=>{this['_unitOnClients']['forEach'](_0x20d2fa=>{const _0x43a162=_0x4661;_0x20d2fa[_0x43a162(0x3c6)](_0x3221f0);});},Me*0x2);this[_0x18e90e(0x31c)][_0x18e90e(0x26b)](_0x3221f0,_0x5026f5);}[_0x18db4e(0x3ea)](_0x1f220f){const _0x1dc242=_0x18db4e;if(this[_0x1dc242(0x31c)]['has'](_0x1f220f)){const _0x5f1d71=this[_0x1dc242(0x31c)][_0x1dc242(0x3b3)](_0x1f220f);_0x5f1d71&&window[_0x1dc242(0x238)](_0x5f1d71),this[_0x1dc242(0x31c)]['set'](_0x1f220f,null);}}['_handleLeaveEvent'](_0xe94930){const _0x3f36c3=_0x18db4e,{memberID:_0x379142,unitIDs:_0xe9a63d}=_0xe94930;_0xe9a63d[_0x3f36c3(0x281)](_0x54eadf=>{const _0x116491=_0x3f36c3;var _0x4c5155;const _0x41f273=this[_0x116491(0x330)][_0x116491(0x3b3)](_0x54eadf);_0x41f273&&(_0x41f273[_0x116491(0x3c6)](_0x379142),(_0x4c5155=this[_0x116491(0x317)](_0x54eadf))==null||_0x4c5155[_0x116491(0x187)](_0x41f273[_0x116491(0x30a)]===0x0?u[_0x116491(0x28a)][_0x116491(0x263)]:u['UnitStatus'][_0x116491(0x1fc)]));}),this['_removeClearOtherTimer'](_0x379142);}[_0x18db4e(0x280)](_0x4e3ac0){const _0x74581b=_0x18db4e;this['_scheduleClearOtherTimer'](_0x4e3ac0[_0x74581b(0x349)]);}[_0x18db4e(0x271)](_0x38c8b9){localStorage['setItem'](Le,JSON['stringify'](_0x38c8b9));}['_scheduleHeartbeat'](){const _0x7b654a=_0x18db4e;this[_0x7b654a(0x322)]=window[_0x7b654a(0x2f6)](()=>{const _0x44cc30=_0x7b654a;this[_0x44cc30(0x271)]({'type':0x2,'memberID':this[_0x44cc30(0x2a7)]});},Me);}[_0x18db4e(0x317)](_0x46e30d){const _0x21b82c=_0x18db4e;return this['_unitStatus'][_0x21b82c(0x3f3)](_0x46e30d)||this[_0x21b82c(0x2b1)]['set'](_0x46e30d,new d['BehaviorSubject'](u[_0x21b82c(0x28a)][_0x21b82c(0x263)])),this[_0x21b82c(0x2b1)]['get'](_0x46e30d);}}var Be=(_0x95ad07=>(_0x95ad07[_0x95ad07[_0x18db4e(0x27f)]=0x0]=_0x18db4e(0x27f),_0x95ad07[_0x95ad07['OK']=0x1]='OK',_0x95ad07[_0x95ad07[_0x18db4e(0x30e)]=0x2]=_0x18db4e(0x30e),_0x95ad07[_0x95ad07[_0x18db4e(0x36f)]=0x3]=_0x18db4e(0x36f),_0x95ad07[_0x95ad07['NOT_FOUND']=0x4]=_0x18db4e(0x1cb),_0x95ad07[_0x95ad07['UNAUTHENTICATED']=0x5]=_0x18db4e(0x1a0),_0x95ad07[_0x95ad07[_0x18db4e(0x30c)]=0x6]=_0x18db4e(0x30c),_0x95ad07[_0x95ad07['INVALID_ARGUMENT']=0x7]=_0x18db4e(0x2b5),_0x95ad07[_0x95ad07[_0x18db4e(0x260)]=0x8]=_0x18db4e(0x260),_0x95ad07[_0x95ad07[_0x18db4e(0x259)]=0x9]=_0x18db4e(0x259),_0x95ad07[_0x95ad07[_0x18db4e(0x1b1)]=0xa]='LOGIN_FAILED',_0x95ad07[_0x95ad07[_0x18db4e(0x202)]=0x1389]=_0x18db4e(0x202),_0x95ad07[_0x95ad07[_0x18db4e(0x218)]=0x1771]=_0x18db4e(0x218),_0x95ad07[_0x95ad07[_0x18db4e(0x325)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x95ad07[_0x95ad07[_0x18db4e(0x360)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x95ad07[_0x95ad07['APPLY_REJECT']=0x1b59]=_0x18db4e(0x3e2),_0x95ad07[_0x95ad07[_0x18db4e(0x402)]=0x1b5a]=_0x18db4e(0x402),_0x95ad07[_0x95ad07['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x95ad07[_0x95ad07['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x95ad07[_0x95ad07[_0x18db4e(0x304)]=0x1b5d]='APPLY_DUPLICATED',_0x95ad07[_0x95ad07['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x18db4e(0x2b7),_0x95ad07[_0x95ad07[_0x18db4e(0x3da)]=0x2329]=_0x18db4e(0x3da),_0x95ad07[_0x95ad07[_0x18db4e(0x3b7)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x95ad07[_0x95ad07[_0x18db4e(0x3f8)]=0x232b]=_0x18db4e(0x3f8),_0x95ad07[_0x95ad07[_0x18db4e(0x2aa)]=0x232c]=_0x18db4e(0x2aa),_0x95ad07[_0x95ad07[_0x18db4e(0x1d8)]=0x232d]=_0x18db4e(0x1d8),_0x95ad07[_0x95ad07[_0x18db4e(0x29a)]=0x2711]=_0x18db4e(0x29a),_0x95ad07[_0x95ad07['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x18db4e(0x195),_0x95ad07[_0x95ad07[_0x18db4e(0x205)]=0x2713]=_0x18db4e(0x205),_0x95ad07[_0x95ad07[_0x18db4e(0x219)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x95ad07[_0x95ad07[_0x18db4e(0x1de)]=0x271a]=_0x18db4e(0x1de),_0x95ad07[_0x95ad07[_0x18db4e(0x28c)]=0x271b]=_0x18db4e(0x28c),_0x95ad07[_0x95ad07[_0x18db4e(0x40e)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x95ad07[_0x95ad07[_0x18db4e(0x180)]=0x271d]=_0x18db4e(0x180),_0x95ad07[_0x95ad07['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x18db4e(0x264),_0x95ad07[_0x95ad07[_0x18db4e(0x26a)]=0x271f]=_0x18db4e(0x26a),_0x95ad07[_0x95ad07['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x95ad07[_0x95ad07['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x18db4e(0x299),_0x95ad07[_0x95ad07['INVALID_INVITE_CODE']=0x2ee2]=_0x18db4e(0x3ac),_0x95ad07[_0x95ad07[_0x18db4e(0x339)]=0x2ee3]=_0x18db4e(0x339),_0x95ad07[_0x95ad07[_0x18db4e(0x34a)]=0x2ee4]=_0x18db4e(0x34a),_0x95ad07[_0x95ad07['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x18db4e(0x213),_0x95ad07[_0x95ad07[_0x18db4e(0x412)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x95ad07[_0x95ad07['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x18db4e(0x37a),_0x95ad07[_0x95ad07[_0x18db4e(0x301)]=0x32cb]=_0x18db4e(0x301),_0x95ad07[_0x95ad07[_0x18db4e(0x3d9)]=-0x1]=_0x18db4e(0x3d9),_0x95ad07))(Be||{}),ns=Object[_0x18db4e(0x25b)],rs=(_0x254a80,_0x40724f,_0x538c1b,_0x5bf76a)=>{for(var _0x448c53=_0x5bf76a>0x1?void 0x0:_0x5bf76a?ns(_0x40724f,_0x538c1b):_0x40724f,_0x4401ec=_0x254a80['length']-0x1,_0x54ff28;_0x4401ec>=0x0;_0x4401ec--)(_0x54ff28=_0x254a80[_0x4401ec])&&(_0x448c53=_0x54ff28(_0x448c53)||_0x448c53);return _0x448c53;},ue=(_0x2aafd6,_0x3e33dd)=>(_0x3f5153,_0x3851e8)=>_0x3e33dd(_0x3f5153,_0x3851e8,_0x2aafd6);exports[_0x18db4e(0x315)]=class extends a[_0x18db4e(0x378)]{constructor(_0x4af0cc,_0x2bd162,_0x1894f6){const _0x56c8e1=_0x18db4e;super(),this[_0x56c8e1(0x3c9)]=_0x4af0cc,this['_httpService']=_0x2bd162,this[_0x56c8e1(0x2c7)]=_0x1894f6;}async[_0x18db4e(0x2ef)](_0x5efc24,_0xeab753,_0x1e0e2d,..._0x2bab9e){const _0x3fde9d=_0x18db4e;var _0x15db08,_0x5488e5,_0x464d17,_0x12bbc9;const _0x1e84ef=this[_0x3fde9d(0x3c9)][_0x3fde9d(0x3a3)]();if(!_0x1e84ef)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x404543=((_0x15db08=this[_0x3fde9d(0x2c7)][_0x3fde9d(0x3d3)](u[_0x3fde9d(0x27e)]))!=null?_0x15db08:u[_0x3fde9d(0x34f)])+'/'+_0x5efc24+_0x3fde9d(0x33a)+_0xeab753,_0x3af039=new URL(window['location'][_0x3fde9d(0x1c9)]),_0x384e3e={'scriptId':_0x5efc24,'runId':(_0x5488e5=_0x3af039[_0x3fde9d(0x355)][_0x3fde9d(0x3b3)](_0x3fde9d(0x24f)))!=null?_0x5488e5:'','function':_0xeab753,'unitId':_0x1e84ef[_0x3fde9d(0x2ce)](),'argsOfFunction':JSON[_0x3fde9d(0x2ca)](_0x2bab9e),'invokeId':(_0x464d17=_0x1e0e2d[_0x3fde9d(0x3ee)])!=null?_0x464d17:'','executionId':(_0x12bbc9=_0x1e0e2d[_0x3fde9d(0x413)])!=null?_0x12bbc9:''};try{const _0x4f6d0c=await this[_0x3fde9d(0x22d)]['post'](_0x404543,{'body':_0x384e3e});return _0x4f6d0c[_0x3fde9d(0x379)][_0x3fde9d(0x39e)]&&_0x4f6d0c[_0x3fde9d(0x379)][_0x3fde9d(0x39e)][_0x3fde9d(0x200)]!==Be['OK']?_0x3fde9d(0x35f):_0x4f6d0c['body']['result'];}catch{return _0x3fde9d(0x35f);}}},exports[_0x18db4e(0x315)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x18db4e(0x1ff)](G[_0x18db4e(0x2f1)])),ue(0x2,a[_0x18db4e(0x309)])],exports[_0x18db4e(0x315)]),exports[_0x18db4e(0x334)]=xe,exports[_0x18db4e(0x18e)]=be,exports[_0x18db4e(0x380)]=Pe,exports[_0x18db4e(0x20f)]=is,exports['WebURLService']=je;
1
+ 'use strict';const _0x51cf5f=_0x406e;(function(_0x1c9e1f,_0xc8dae7){const _0x39dc3f=_0x406e,_0x109420=_0x1c9e1f();while(!![]){try{const _0x446d49=parseInt(_0x39dc3f(0x330))/0x1+parseInt(_0x39dc3f(0x1ac))/0x2+-parseInt(_0x39dc3f(0x2cf))/0x3*(-parseInt(_0x39dc3f(0x336))/0x4)+parseInt(_0x39dc3f(0x290))/0x5+parseInt(_0x39dc3f(0x23e))/0x6+parseInt(_0x39dc3f(0x1b3))/0x7+-parseInt(_0x39dc3f(0x33f))/0x8*(parseInt(_0x39dc3f(0x2d5))/0x9);if(_0x446d49===_0xc8dae7)break;else _0x109420['push'](_0x109420['shift']());}catch(_0x257801){_0x109420['push'](_0x109420['shift']());}}}(_0x65eb,0xf036e));var Ve=Object[_0x51cf5f(0x348)],Xe=(_0x4126a1,_0x2d1228,_0x516455)=>_0x2d1228 in _0x4126a1?Ve(_0x4126a1,_0x2d1228,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x516455}):_0x4126a1[_0x2d1228]=_0x516455,h=(_0x299af4,_0x4c1b06,_0x262882)=>Xe(_0x299af4,typeof _0x4c1b06!='symbol'?_0x4c1b06+'':_0x4c1b06,_0x262882);Object[_0x51cf5f(0x348)](exports,Symbol[_0x51cf5f(0x2e5)],{'value':_0x51cf5f(0x17d)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x51cf5f(0x24e)),p=require(_0x51cf5f(0x23a)),G=require(_0x51cf5f(0x14d)),b=require(_0x51cf5f(0x397)),Ge=require('@univerjs/drawing'),d=require('rxjs'),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x51cf5f(0x2af)),g=require(_0x51cf5f(0x137)),$=require(_0x51cf5f(0x1fe)),X=require(_0x51cf5f(0x3ae)),w=require('react/jsx-runtime'),T=require(_0x51cf5f(0x232)),D=require('@univerjs/design'),M=require(_0x51cf5f(0x320)),Ke=require(_0x51cf5f(0x166));var qe=Object[_0x51cf5f(0x377)],ze=(_0x30b602,_0x8d4aaf,_0x419f5a,_0xf1f080)=>{const _0xc6bcf0=_0x51cf5f;for(var _0x413540=_0xf1f080>0x1?void 0x0:_0xf1f080?qe(_0x8d4aaf,_0x419f5a):_0x8d4aaf,_0x1e5c0c=_0x30b602[_0xc6bcf0(0x296)]-0x1,_0x22841c;_0x1e5c0c>=0x0;_0x1e5c0c--)(_0x22841c=_0x30b602[_0x1e5c0c])&&(_0x413540=_0x22841c(_0x413540)||_0x413540);return _0x413540;},Te=(_0x334292,_0x22e618)=>(_0x4a7c37,_0x133792)=>_0x22e618(_0x4a7c37,_0x133792,_0x334292);let de=class extends a['RxDisposable']{constructor(_0x30cf4a,_0x34442e){const _0xb9415f=_0x51cf5f;super(),this[_0xb9415f(0x12b)]=_0x30cf4a,this[_0xb9415f(0x31c)]=_0x34442e,this[_0xb9415f(0x2f4)]();}[_0x51cf5f(0x2f4)](){const _0x49b6bc=_0x51cf5f,_0x268ca2=this;this[_0x49b6bc(0x1fa)](this['_docClipboardService'][_0x49b6bc(0x26a)]({'onBeforePasteImage':async _0x48c7c1=>{const _0x5b2ad2=_0x49b6bc,_0x1f28d2=await _0x268ca2[_0x5b2ad2(0x31c)][_0x5b2ad2(0x12d)](_0x48c7c1);return _0x1f28d2?{'source':_0x1f28d2[_0x5b2ad2(0x1cc)],'imageSourceType':_0x1f28d2[_0x5b2ad2(0x13d)]}:null;}}));}};de=ze([Te(0x0,b[_0x51cf5f(0x163)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=['purple.300',_0x51cf5f(0x286),_0x51cf5f(0x1b4),_0x51cf5f(0x18b),_0x51cf5f(0x1ab),_0x51cf5f(0x2ce)];class me extends a[_0x51cf5f(0x188)]{constructor(){const _0xfe8f8a=_0x51cf5f;super(...arguments),h(this,_0xfe8f8a(0x223),new Map()),h(this,_0xfe8f8a(0x1c5),0x0);}['assignAColorForMemberID'](_0x511e35){const _0x2c3cf1=_0x51cf5f;if(this['_assignedColors'][_0x2c3cf1(0x2e2)](_0x511e35))return this['_assignedColors'][_0x2c3cf1(0x214)](_0x511e35);const _0xbe41ef=Oe[this[_0x2c3cf1(0x1c5)]];return this[_0x2c3cf1(0x1c5)]=(this[_0x2c3cf1(0x1c5)]+0x1)%Oe['length'],this['_assignedColors'][_0x2c3cf1(0x2e8)](_0x511e35,_0xbe41ef),_0xbe41ef;}}function we(_0x5f0dcc){const _0x11a3b4=_0x51cf5f;let _0x413952='';for(const _0x45e0df of _0x5f0dcc){const {startOffset:_0x1c7d90,endOffset:_0x2c28ac,isActive:_0x3f1eed,rangeType:_0x266775,segmentId:_0x5bd16b,segmentPage:_0x1a9a35}=_0x45e0df;_0x413952[_0x11a3b4(0x296)]&&(_0x413952+=','),_0x413952+=_0x1c7d90+':'+_0x2c28ac+':'+(_0x3f1eed?'1':'0')+':'+_0x266775+':'+_0x5bd16b+':'+_0x1a9a35;}return _0x413952;}function Je(_0x35cb32){const _0x17eeb9=_0x51cf5f,_0x3b614d=_0x35cb32[_0x17eeb9(0x1d4)](','),_0x484746=[];for(const _0x22cd87 of _0x3b614d){const [_0x53f97e,_0x1b37bd,_0x23ab33,_0x59c969,_0x33c45c,_0x15a83b]=_0x22cd87['split'](':');_0x484746[_0x17eeb9(0x326)]({'startOffset':Number(_0x53f97e),'endOffset':Number(_0x1b37bd),'collapsed':_0x53f97e===_0x1b37bd,'isActive':_0x23ab33==='1','rangeType':_0x59c969===a[_0x17eeb9(0x2ad)]['TEXT']?a[_0x17eeb9(0x2ad)][_0x17eeb9(0x28c)]:a[_0x17eeb9(0x2ad)]['RECT'],'segmentId':typeof _0x33c45c==_0x17eeb9(0x308)?String(_0x33c45c):'','segmentPage':Number(_0x15a83b!=null?_0x15a83b:-0x1)});}return _0x484746[_0x17eeb9(0x355)](_0x57df18=>_0x57df18[_0x17eeb9(0x268)])||(_0x484746[0x0][_0x17eeb9(0x268)]=!0x0),_0x484746;}class Ce extends a[_0x51cf5f(0x298)]{constructor(){const _0x228119=_0x51cf5f;super(...arguments),h(this,_0x228119(0x13e),new d[(_0x228119(0x365))](null)),h(this,_0x228119(0x331),this[_0x228119(0x13e)][_0x228119(0x387)]());}[_0x51cf5f(0x245)](_0x4683b0){const _0x4b0b17=_0x51cf5f,{unitID:_0x397368,memberID:_0x17efeb,textRanges:_0x445064}=_0x4683b0,_0x2e8556=we(_0x445064);if(_0x2e8556==='')return;const _0x3f9762={'unitID':_0x397368,'memberID':_0x17efeb,'selection':_0x2e8556};this[_0x4b0b17(0x13e)][_0x4b0b17(0x19c)](_0x3f9762);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x357c41,_0x2ca4d0,_0x222805,_0x50f1cd)=>{const _0x51b80c=_0x51cf5f;for(var _0x53b392=_0x50f1cd>0x1?void 0x0:_0x50f1cd?Ze(_0x2ca4d0,_0x222805):_0x2ca4d0,_0x1baabb=_0x357c41[_0x51b80c(0x296)]-0x1,_0x1b46f1;_0x1baabb>=0x0;_0x1baabb--)(_0x1b46f1=_0x357c41[_0x1baabb])&&(_0x53b392=_0x1b46f1(_0x53b392)||_0x53b392);return _0x53b392;},L=(_0x51fe7e,_0x233fcf)=>(_0x4e5965,_0x4d9e65)=>_0x233fcf(_0x4e5965,_0x4d9e65,_0x51fe7e);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5322ef,_0x207351,_0x47b0d2,_0x3f6581,_0x4897ec,_0x2d1938,_0x4d6c3f,_0x21a8ac,_0x32e3cf){const _0x2d9da4=_0x51cf5f;super(),h(this,_0x2d9da4(0x17c),!0x1),h(this,_0x2d9da4(0x2f4),!0x1),h(this,_0x2d9da4(0x1ed),new d[(_0x2d9da4(0x365))](new Map())),h(this,'cursorInfo$',this[_0x2d9da4(0x1ed)][_0x2d9da4(0x387)]()),h(this,_0x2d9da4(0x2e1),new d[(_0x2d9da4(0x365))]([])),h(this,_0x2d9da4(0x3b9),this[_0x2d9da4(0x2e1)][_0x2d9da4(0x3a7)](d[_0x2d9da4(0x238)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x3e3280=>{const _0x3937e8=_0x2d9da4,_0x339488={'eventID':m[_0x3937e8(0x16b)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3937e8(0x191)][_0x3937e8(0x3aa)](),'selection':we(_0x3e3280)}};this['_session'][_0x3937e8(0x220)](_0x339488,this[_0x3937e8(0x1f4)]);},tt)),(this[_0x2d9da4(0x1f4)]=_0x5322ef,this[_0x2d9da4(0x191)]=_0x207351,this['_injector']=_0x47b0d2,this[_0x2d9da4(0x215)]=_0x3f6581,this[_0x2d9da4(0x18c)]=_0x4897ec,this[_0x2d9da4(0x247)]=_0x2d1938,this[_0x2d9da4(0x1a4)]=_0x4d6c3f,this[_0x2d9da4(0x28d)]=_0x21a8ac,this['_commandService']=_0x32e3cf);}get[_0x51cf5f(0x38c)](){const _0xae0130=_0x51cf5f;return this[_0xae0130(0x1ed)][_0xae0130(0x329)]();}get['roomMembers'](){const _0x2960d0=_0x51cf5f;return this[_0x2960d0(0x2e1)]['getValue']();}[_0x51cf5f(0x277)](){const _0x1b2e74=_0x51cf5f;super[_0x1b2e74(0x277)](),this['_cursorInfo$']['next'](new Map()),this[_0x1b2e74(0x1ed)][_0x1b2e74(0x21c)](),this['_roomMembers$'][_0x1b2e74(0x19c)]([]),this['_roomMembers$']['complete']();}[_0x51cf5f(0x22e)](){const _0x626536=_0x51cf5f;this['_init']||(this[_0x626536(0x2f4)]=!0x0,this['_session']['sessionStatus$'][_0x626536(0x3a7)](d[_0x626536(0x20d)](this['dispose$']))[_0x626536(0x254)](_0x43a3ff=>{const _0x1c8bff=_0x626536;_0x43a3ff===u[_0x1c8bff(0x23d)][_0x1c8bff(0x145)]?this[_0x1c8bff(0x26b)]():this[_0x1c8bff(0x207)]();}),this['_session']['event$'][_0x626536(0x3a7)](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x5bd0c9=>{const _0x156d49=_0x626536,_0x58a140=_0x5bd0c9[_0x156d49(0x253)];_0x58a140===m[_0x156d49(0x16b)][_0x156d49(0x32a)]&&this[_0x156d49(0x210)](_0x5bd0c9),_0x58a140===m['CollaborationEvent'][_0x156d49(0x187)]&&this[_0x156d49(0x370)](_0x5bd0c9);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)]['onCommandExecuted'](_0x45d742=>{const _0x54d7ed=_0x626536,_0x82c5e3=_0x45d742[_0x54d7ed(0x3b5)];_0x82c5e3!=null&&this['_online']&&_0x45d742['id']===Y[_0x54d7ed(0x274)]['id']&&_0x82c5e3[_0x54d7ed(0x395)]===this['unitID']&&_0x82c5e3[_0x54d7ed(0x2bd)]===!0x1&&_0x82c5e3[_0x54d7ed(0x287)][_0x54d7ed(0x296)]>0x0&&this[_0x54d7ed(0x27e)](_0x82c5e3[_0x54d7ed(0x287)]);})),this[_0x626536(0x247)][_0x626536(0x331)]['pipe'](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x1dbb1d=>{const _0x47c427=_0x626536;if((_0x1dbb1d==null?void 0x0:_0x1dbb1d['unitID'])!==this[_0x47c427(0x1f4)])return;const _0x30d0ba={'eventID':m[_0x47c427(0x16b)]['UPDATE_CURSOR'],'data':_0x1dbb1d};this[_0x47c427(0x210)](_0x30d0ba);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)][_0x626536(0x1a3)](_0x35af14=>{const _0x247e6b=_0x626536;if(_0x35af14[_0x247e6b(0x3b5)]==null)return;const _0x5897cf=_0x35af14[_0x247e6b(0x3b5)];if(_0x35af14['id']!==Y[_0x247e6b(0x26c)]['id']||_0x5897cf[_0x247e6b(0x395)]!==this[_0x247e6b(0x1f4)])return;const _0x171a41={'id':_0x247e6b(0x292),'params':_0x5897cf},_0x487d3c=this[_0x247e6b(0x38c)];for(const [_0xdca5a1,_0x38f962]of _0x487d3c){const _0x2f0a15={'id':_0x247e6b(0x292),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x38f962['ranges']}},_0x274339=this[_0x247e6b(0x1a4)][_0x247e6b(0x148)](_0x171a41,_0x2f0a15,!0x1);if(m[_0x247e6b(0x201)](_0x274339))throw _0x274339['error'];_0x487d3c[_0x247e6b(0x2e8)](_0xdca5a1,{..._0x38f962,'ranges':_0x274339[_0x247e6b(0x3af)]['params'][_0x247e6b(0x225)]});}queueMicrotask(()=>{const _0x3cc912=_0x247e6b;this[_0x3cc912(0x1ed)][_0x3cc912(0x19c)](_0x487d3c);});})));}[_0x51cf5f(0x210)](_0x1fa907){const _0x37d1ad=_0x51cf5f;var _0x2706fd,_0xdeefe7;const {memberID:_0x48eca1,selection:_0x43b91e}=_0x1fa907['data'],_0x1e276c=Je(_0x43b91e),_0x48b960=(_0xdeefe7=(_0x2706fd=this[_0x37d1ad(0x18c)][_0x37d1ad(0x282)](this[_0x37d1ad(0x1f4)],_0x48eca1))==null?void 0x0:_0x2706fd['name'])!=null?_0xdeefe7:'Unknown\x20user',_0x564f9d={'color':this[_0x37d1ad(0x215)][_0x37d1ad(0x35f)](_0x48eca1),'name':_0x48b960,'ranges':_0x1e276c},_0x19e89b=this['cursorInfo'];_0x19e89b[_0x37d1ad(0x2e8)](_0x48eca1,_0x564f9d),this['_cursorInfo$'][_0x37d1ad(0x19c)](_0x19e89b);}[_0x51cf5f(0x370)](_0x21b74a){const _0x2cf34e=_0x51cf5f,{memberID:_0x222e63}=_0x21b74a[_0x2cf34e(0x2eb)],_0x17ac89=this[_0x2cf34e(0x38c)];_0x17ac89[_0x2cf34e(0x1cb)](_0x222e63),this['_cursorInfo$'][_0x2cf34e(0x19c)](_0x17ac89);}[_0x51cf5f(0x26b)](){const _0x2ad857=_0x51cf5f;var _0x201859;if(this['_online']=!0x0,((_0x201859=this[_0x2ad857(0x28d)][_0x2ad857(0x340)]())==null?void 0x0:_0x201859[_0x2ad857(0x14f)]())!==this[_0x2ad857(0x1f4)])return;const _0x3e1960=this['_injector'][_0x2ad857(0x214)](Y['DocSelectionManagerService'])[_0x2ad857(0x1e8)]();Array[_0x2ad857(0x273)](_0x3e1960)&&_0x3e1960[_0x2ad857(0x296)]>0x0&&this[_0x2ad857(0x27e)](_0x3e1960);}[_0x51cf5f(0x207)](){const _0x3273bc=_0x51cf5f;this[_0x3273bc(0x17c)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x51cf5f(0x2be)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),L(0x5,a[_0x51cf5f(0x249)](Ce)),L(0x6,m[_0x51cf5f(0x339)]),L(0x7,a[_0x51cf5f(0x185)]),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x1fa032,_0x3cc087,_0x2048b4,_0x3c1f13)=>{const _0x1a1c70=_0x51cf5f;for(var _0x103e9a=_0x3c1f13>0x1?void 0x0:_0x3c1f13?st(_0x3cc087,_0x2048b4):_0x3cc087,_0x55e56f=_0x1fa032[_0x1a1c70(0x296)]-0x1,_0x662391;_0x55e56f>=0x0;_0x55e56f--)(_0x662391=_0x1fa032[_0x55e56f])&&(_0x103e9a=_0x662391(_0x103e9a)||_0x103e9a);return _0x103e9a;},A=(_0x749382,_0x43fcac)=>(_0x4e582f,_0x54d070)=>_0x43fcac(_0x4e582f,_0x54d070,_0x749382);const nt=0x12c,rt=0x64,ot=()=>{let _0x1efe6b=[],_0x352af6=!0x1;return _0x5a6cba=>{const _0x39c04=_0x406e;_0x1efe6b[_0x39c04(0x326)](_0x5a6cba),_0x352af6||(_0x352af6=!0x0,setTimeout(()=>{_0x1efe6b['forEach'](_0x5071a8=>_0x5071a8()),_0x1efe6b=[],_0x352af6=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x5c2ef7,_0x4020a6,_0x1fcbe0,_0x56177c,_0x1b4ebe,_0x1ee3c8,_0x2b1765,_0x190ba0){const _0x4b27ba=_0x51cf5f;super(),h(this,_0x4b27ba(0x17c),!0x1),h(this,_0x4b27ba(0x2f4),!0x1),h(this,'_cursorInfo$',new d[(_0x4b27ba(0x365))](new Map())),h(this,_0x4b27ba(0x3ac),this[_0x4b27ba(0x1ed)]['asObservable']()),h(this,_0x4b27ba(0x2e1),new d[(_0x4b27ba(0x365))]([])),h(this,_0x4b27ba(0x3b9),this['_roomMembers$'][_0x4b27ba(0x3a7)](d[_0x4b27ba(0x238)](nt))),h(this,_0x4b27ba(0x27e),a[_0x4b27ba(0x246)]((_0x481c3b,_0x3da4be)=>{const _0x9eb8b2=_0x4b27ba,_0x2e63f7={'eventID':m[_0x9eb8b2(0x16b)][_0x9eb8b2(0x32a)],'data':{'unitID':this[_0x9eb8b2(0x1f4)],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x481c3b,_0x3da4be[_0x9eb8b2(0x271)])}};this['_session'][_0x9eb8b2(0x220)](_0x2e63f7,this['unitID']);},rt)),(this[_0x4b27ba(0x1f4)]=_0x5c2ef7,this[_0x4b27ba(0x191)]=_0x4020a6,this[_0x4b27ba(0x382)]=_0x1fcbe0,this[_0x4b27ba(0x215)]=_0x56177c,this[_0x4b27ba(0x18c)]=_0x1b4ebe,this['_univerInstanceService']=_0x1ee3c8,this[_0x4b27ba(0x362)]=_0x2b1765,this['_refRangeService']=_0x190ba0);}get[_0x51cf5f(0x38c)](){const _0x15c22b=_0x51cf5f;return this[_0x15c22b(0x1ed)]['getValue']();}get[_0x51cf5f(0x343)](){const _0x5e7b43=_0x51cf5f;return this['_roomMembers$'][_0x5e7b43(0x329)]();}[_0x51cf5f(0x277)](){const _0x570c6b=_0x51cf5f;super[_0x570c6b(0x277)](),this['_cursorInfo$'][_0x570c6b(0x19c)](new Map()),this[_0x570c6b(0x1ed)][_0x570c6b(0x21c)](),this['_roomMembers$'][_0x570c6b(0x19c)]([]),this[_0x570c6b(0x2e1)][_0x570c6b(0x21c)]();}[_0x51cf5f(0x22e)](){const _0x33dd0d=_0x51cf5f;this[_0x33dd0d(0x2f4)]||(this['_init']=!0x0,this['_session'][_0x33dd0d(0x354)][_0x33dd0d(0x3a7)](d[_0x33dd0d(0x20d)](this['dispose$']))[_0x33dd0d(0x254)](_0x316d0d=>{const _0x2268f1=_0x33dd0d;_0x316d0d===u['SessionStatus'][_0x2268f1(0x145)]?this['_toggleOnline']():this[_0x2268f1(0x207)]();}),this[_0x33dd0d(0x191)][_0x33dd0d(0x341)][_0x33dd0d(0x3a7)](d['takeUntil'](this[_0x33dd0d(0x28a)]))[_0x33dd0d(0x254)](_0x19aee9=>{const _0xddc0b0=_0x33dd0d,_0xc42298=_0x19aee9[_0xddc0b0(0x253)];_0xc42298===m[_0xddc0b0(0x16b)]['UPDATE_CURSOR']&&this[_0xddc0b0(0x210)](_0x19aee9),_0xc42298===m[_0xddc0b0(0x16b)][_0xddc0b0(0x187)]&&this[_0xddc0b0(0x370)](_0x19aee9);}),this['_onRefRangeChange'](),this[_0x33dd0d(0x1fa)](this['_commandService']['onCommandExecuted'](_0x54bcd5=>{const _0x2060fd=_0x33dd0d;if(this[_0x2060fd(0x17c)]&&_0x54bcd5['id']===g[_0x2060fd(0x17f)]['id']&&_0x54bcd5['params'][_0x2060fd(0x395)]===this[_0x2060fd(0x1f4)]){const _0x1dcf18=_0x54bcd5[_0x2060fd(0x3b5)];this[_0x2060fd(0x27e)](_0x1dcf18[_0x2060fd(0x32c)],_0x1dcf18[_0x2060fd(0x195)][0x0]);}})));}[_0x51cf5f(0x210)](_0x510931){const _0xfbab32=_0x51cf5f;var _0x553e9c,_0x39b48b;const {memberID:_0x5ce682,selection:_0x327146}=_0x510931['data'],{sheetName:_0xfd1b55,range:_0x1281f7}=Ee['deserializeRangeWithSheet'](_0x327146),_0x491e89={'name':(_0x39b48b=(_0x553e9c=this[_0xfbab32(0x18c)][_0xfbab32(0x282)](this[_0xfbab32(0x1f4)],_0x5ce682))==null?void 0x0:_0x553e9c[_0xfbab32(0x2e6)])!=null?_0x39b48b:_0xfbab32(0x2f1),'range':this['_getMergeRange'](_0xfd1b55,_0x1281f7),'sheetID':_0xfd1b55,'color':this[_0xfbab32(0x215)][_0xfbab32(0x35f)](_0x5ce682),'selection':_0x327146},_0x3b35ff=this[_0xfbab32(0x38c)];_0x3b35ff[_0xfbab32(0x2e8)](_0x5ce682,_0x491e89),this['_cursorInfo$'][_0xfbab32(0x19c)](_0x3b35ff);}[_0x51cf5f(0x370)](_0x42db7f){const _0x39d84b=_0x51cf5f,{memberID:_0x9a3642}=_0x42db7f[_0x39d84b(0x2eb)],_0x54d2fc=this[_0x39d84b(0x38c)];_0x54d2fc[_0x39d84b(0x1cb)](_0x9a3642),this['_cursorInfo$'][_0x39d84b(0x19c)](_0x54d2fc);}[_0x51cf5f(0x180)](_0x12121f,_0x1bb165){const _0x48aea5=_0x51cf5f;var _0x15abaf,_0xae6f81;const _0xa3a3fc=(_0xae6f81=(_0x15abaf=this[_0x48aea5(0x28d)][_0x48aea5(0x305)](this['unitID']))==null?void 0x0:_0x15abaf[_0x48aea5(0x2ec)](_0x12121f))==null?void 0x0:_0xae6f81[_0x48aea5(0x24c)]();return(_0xa3a3fc==null?void 0x0:_0xa3a3fc['find'](_0x4e1481=>a[_0x48aea5(0x173)][_0x48aea5(0x1e9)](_0x4e1481,_0x1bb165)))||_0x1bb165;}['_onRefRangeChange'](){const _0x13de0c=_0x51cf5f,_0x315432=new a[(_0x13de0c(0x193))](),_0x535d62=ot(),_0x52e055=()=>{const _0x35e45b=_0x13de0c;_0x315432['dispose']();const _0x232a12=(_0x5f090e,_0x2a9410,_0x3bccb2,_0x3eba40)=>{const _0x3b1cc3=_0x406e;let _0x54f620=[];switch(_0x5f090e['id']){case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x135)]:{_0x54f620=g[_0x3b1cc3(0x300)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x14e)]:{_0x54f620=g[_0x3b1cc3(0x359)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1e0)]:{_0x54f620=g[_0x3b1cc3(0x168)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x208)]:{_0x54f620=g[_0x3b1cc3(0x250)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x38f)]:{_0x54f620=g['handleInsertRangeMoveRight'](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x27b)]:{_0x54f620=g[_0x3b1cc3(0x3a2)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1d8)]:{_0x54f620=g[_0x3b1cc3(0x2de)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)]['RemoveColCommandId']:{_0x54f620=g[_0x3b1cc3(0x375)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x33e)]:{_0x54f620=g[_0x3b1cc3(0x28b)](_0x5f090e,_0x3eba40);break;}}const _0x1c8fc7=g[_0x3b1cc3(0x156)](_0x54f620,_0x3eba40),_0x395b5f=this['cursorInfo'][_0x3b1cc3(0x214)](_0x2a9410);if(_0x395b5f&&_0x1c8fc7){const _0xea599e={..._0x395b5f,'range':_0x1c8fc7};this[_0x3b1cc3(0x38c)][_0x3b1cc3(0x2e8)](_0x2a9410,_0xea599e),_0x535d62(()=>{const _0x1d8efb=_0x3b1cc3,_0x18e406=this[_0x1d8efb(0x3a3)][_0x1d8efb(0x1b6)](_0x1c8fc7,_0x533085=>(_0x18e406['dispose'](),_0x232a12(_0x533085,_0x2a9410,_0x3bccb2,_0x1c8fc7)));_0x315432['add'](_0x18e406);});}return{'redos':[],'undos':[]};};this[_0x35e45b(0x38c)]['forEach']((_0x2b670c,_0x46deb9)=>{const _0x16b4b5=_0x35e45b,{range:_0x29a154,sheetID:_0x1e6ad1}=_0x2b670c,_0x18b67d=this['_refRangeService']['registerRefRange'](_0x29a154,_0x5c8467=>(_0x18b67d[_0x16b4b5(0x277)](),_0x232a12(_0x5c8467,_0x46deb9,_0x1e6ad1,_0x29a154)));_0x315432[_0x16b4b5(0x1e2)](_0x18b67d);});};this[_0x13de0c(0x1fa)](a[_0x13de0c(0x30a)](this['_cursorInfo$'][_0x13de0c(0x254)](()=>{_0x52e055();})));}[_0x51cf5f(0x26b)](){const _0x3494c7=_0x51cf5f;var _0x4d15a6,_0x2efe53;if(this[_0x3494c7(0x17c)]=!0x0,((_0x4d15a6=this[_0x3494c7(0x28d)][_0x3494c7(0x340)]())==null?void 0x0:_0x4d15a6[_0x3494c7(0x14f)]())!==this[_0x3494c7(0x1f4)])return;const _0x3672bd=(_0x2efe53=this['_injector'][_0x3494c7(0x214)](g[_0x3494c7(0x39b)])[_0x3494c7(0x237)]())==null?void 0x0:_0x2efe53[0x0],_0x496bc9=this['_univerInstanceService'][_0x3494c7(0x2c8)](a[_0x3494c7(0x304)][_0x3494c7(0x2fd)])[_0x3494c7(0x171)]();_0x3672bd&&_0x496bc9&&this[_0x3494c7(0x27e)](_0x496bc9['getSheetId'](),_0x3672bd);}['_toggleOffline'](){const _0x419655=_0x51cf5f;this[_0x419655(0x17c)]=!0x1;}};Se=it([A(0x2,a[_0x51cf5f(0x249)](a['Injector'])),A(0x3,a[_0x51cf5f(0x249)](me)),A(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),A(0x5,a[_0x51cf5f(0x185)]),A(0x6,a[_0x51cf5f(0x36e)]),A(0x7,a[_0x51cf5f(0x249)](g[_0x51cf5f(0x384)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1d0b39,_0x5da8be,_0x476082,_0x45587f)=>{const _0x4cc240=_0x51cf5f;for(var _0xe3d928=_0x45587f>0x1?void 0x0:_0x45587f?at(_0x5da8be,_0x476082):_0x5da8be,_0x457624=_0x1d0b39[_0x4cc240(0x296)]-0x1,_0x16ee72;_0x457624>=0x0;_0x457624--)(_0x16ee72=_0x1d0b39[_0x457624])&&(_0xe3d928=_0x16ee72(_0xe3d928)||_0xe3d928);return _0xe3d928;},ie=(_0x2f367c,_0x272923)=>(_0x2bc554,_0x56cfca)=>_0x272923(_0x2bc554,_0x56cfca,_0x2f367c);let x=class extends a[_0x51cf5f(0x298)]{constructor(_0x38b4a2,_0x199ead,_0xfad773){const _0x4008ac=_0x51cf5f;super(),h(this,_0x4008ac(0x1ca),new Map()),h(this,_0x4008ac(0x1c2),new d[(_0x4008ac(0x37e))]()),(this[_0x4008ac(0x28d)]=_0x38b4a2,this[_0x4008ac(0x382)]=_0x199ead,this[_0x4008ac(0x192)]=_0xfad773,this[_0x4008ac(0x2f4)]());}[_0x51cf5f(0x277)](){const _0xa0d7b6=_0x51cf5f;super[_0xa0d7b6(0x277)](),this[_0xa0d7b6(0x1c2)]['complete'](),this[_0xa0d7b6(0x1ca)][_0xa0d7b6(0x2ba)](_0x1603d4=>_0x1603d4['dispose']());}[_0x51cf5f(0x2a4)](_0x2fc904){const _0x3ebbbf=_0x51cf5f;return this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x2e2)](_0x2fc904)?this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x214)](_0x2fc904)['cursorInfo$']:this[_0x3ebbbf(0x1c2)]['pipe'](d[_0x3ebbbf(0x1d0)](_0x57e45d=>_0x57e45d[_0x3ebbbf(0x1f4)]===_0x2fc904),d[_0x3ebbbf(0x1d5)](_0x17b17f=>_0x17b17f['cursorInfo$']));}['_init'](){const _0x21f428=_0x51cf5f;this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x2fd)])[_0x21f428(0x3a7)](d['takeUntil'](this['dispose$']))[_0x21f428(0x254)](async _0x29ff36=>{const _0x4b3590=_0x21f428,_0x21f92e=_0x29ff36[_0x4b3590(0x14f)](),_0x22a407=await this[_0x4b3590(0x1b2)](_0x21f92e);this[_0x4b3590(0x1c2)][_0x4b3590(0x19c)](_0x22a407),this[_0x4b3590(0x1ca)][_0x4b3590(0x2e8)](_0x21f92e,_0x22a407);}),this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x288)])[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))[_0x21f428(0x3a7)](d['filter'](_0x99cc9b=>!_0x99cc9b['getUnitId']()[_0x21f428(0x142)]('__')))[_0x21f428(0x254)](async _0x4b4ae3=>{const _0x23306=_0x21f428,_0x520eef=_0x4b4ae3['getUnitId'](),_0x3217e8=await this['_startDocCollabCursor'](_0x520eef);this['_entityInit$'][_0x23306(0x19c)](_0x3217e8),this['_entities'][_0x23306(0x2e8)](_0x520eef,_0x3217e8);}),d[_0x21f428(0x2fc)](this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)][_0x21f428(0x288)]),this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)]['UNIVER_SHEET']))[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))['subscribe'](_0x3dffea=>{const _0x26fb62=_0x21f428,_0x34449a=_0x3dffea[_0x26fb62(0x14f)](),_0x2f6f4b=this[_0x26fb62(0x1ca)]['get'](_0x34449a);_0x2f6f4b&&(_0x2f6f4b[_0x26fb62(0x277)](),this['_entities'][_0x26fb62(0x1cb)](_0x34449a));});}async[_0x51cf5f(0x1b2)](_0x4f8e5b){const _0xfee5ee=_0x51cf5f,_0x565cb1=await this['_collabSessionService'][_0xfee5ee(0x2fe)](_0x4f8e5b),_0x370b73=this[_0xfee5ee(0x382)][_0xfee5ee(0x30f)](Se,_0x4f8e5b,_0x565cb1);return _0x370b73[_0xfee5ee(0x22e)](),_0x370b73;}async[_0x51cf5f(0x1eb)](_0x43339e){const _0x5683d9=_0x51cf5f,_0x1eaf9d=await this[_0x5683d9(0x192)][_0x5683d9(0x2fe)](_0x43339e),_0x223e33=this[_0x5683d9(0x382)][_0x5683d9(0x30f)](fe,_0x43339e,_0x1eaf9d);return _0x223e33['init'](),_0x223e33;}};x=ct([ie(0x0,a[_0x51cf5f(0x185)]),ie(0x1,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),ie(0x2,a['Inject'](u[_0x51cf5f(0x386)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x450f53,_0x28ddf3){const _0x25e9a3=_0x51cf5f;let {radius:_0x10bb36,width:_0x41d167,height:_0x9ea3d3}=_0x28ddf3;_0x10bb36=_0x10bb36!=null?_0x10bb36:0x0,_0x41d167=_0x41d167!=null?_0x41d167:0x1e,_0x9ea3d3=_0x9ea3d3!=null?_0x9ea3d3:0x1e;let _0x5ec22b=0x0,_0x15ab57=0x0,_0x13fb4f=0x0;_0x5ec22b=_0x15ab57=_0x13fb4f=Math[_0x25e9a3(0x217)](_0x10bb36,_0x41d167/0x2,_0x9ea3d3/0x2),_0x450f53[_0x25e9a3(0x257)](),_0x450f53[_0x25e9a3(0x31f)](_0x5ec22b,0x0),_0x450f53[_0x25e9a3(0x147)](_0x41d167-_0x15ab57,0x0),_0x450f53['arc'](_0x41d167-_0x15ab57,_0x15ab57,_0x15ab57,Math['PI']*0x3/0x2,0x0,!0x1),_0x450f53[_0x25e9a3(0x147)](_0x41d167,_0x9ea3d3-_0x13fb4f),_0x450f53[_0x25e9a3(0x202)](_0x41d167-_0x13fb4f,_0x9ea3d3-_0x13fb4f,_0x13fb4f,0x0,Math['PI']/0x2,!0x1),_0x450f53['lineTo'](0x0,_0x9ea3d3),_0x450f53[_0x25e9a3(0x147)](0x0,_0x5ec22b),_0x450f53['arc'](_0x5ec22b,_0x5ec22b,_0x5ec22b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x450f53[_0x25e9a3(0x1a1)](),_0x28ddf3[_0x25e9a3(0x2ff)]&&(_0x450f53['save'](),_0x450f53[_0x25e9a3(0x34b)]=_0x28ddf3['fill'],_0x28ddf3[_0x25e9a3(0x2bb)]==='evenodd'?_0x450f53[_0x25e9a3(0x2ff)](_0x25e9a3(0x2b7)):_0x450f53[_0x25e9a3(0x2ff)](),_0x450f53[_0x25e9a3(0x143)]());}class ee extends p[_0x51cf5f(0x189)]{constructor(_0x3ac461,_0x2699a7){const _0x1e335d=_0x51cf5f;super(_0x3ac461,_0x2699a7),h(this,_0x1e335d(0x39f)),h(this,_0x1e335d(0x36a)),(this['color']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x39f)],this['text']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x36a)]);}static[_0x51cf5f(0x28f)](_0x2c7975,_0x459ba9){const _0x16f6db=_0x51cf5f,{text:_0x3f0fb6,color:_0x46b91a}=_0x459ba9;_0x2c7975[_0x16f6db(0x14a)](),_0x2c7975[_0x16f6db(0x2a9)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5e704f=_0x2c7975['measureText'](_0x3f0fb6)[_0x16f6db(0x1bc)],_0x2e611f=Math[_0x16f6db(0x217)](_0x5e704f+0x2*ne,Re);_t(_0x2c7975,{'height':K,'radius':0x4,'width':_0x2e611f,'fill':_0x46b91a}),_0x2c7975[_0x16f6db(0x34b)]=_0x16f6db(0x2b0);const _0x5c6ed2=ne,_0x115ce5=K-lt,_0x542b5f=Re-0x2*ne;if(_0x5e704f>_0x542b5f){let _0x15f2fd='',_0x376e34=0x0;for(const _0x1d3f93 of _0x3f0fb6){const _0x35d8df=_0x2c7975[_0x16f6db(0x36d)](_0x1d3f93)['width'];if(_0x376e34+_0x35d8df<=_0x542b5f-_0x2c7975['measureText'](_0x16f6db(0x165))[_0x16f6db(0x1bc)])_0x15f2fd+=_0x1d3f93,_0x376e34+=_0x35d8df;else{_0x15f2fd+=_0x16f6db(0x165);break;}}_0x2c7975['fillText'](_0x15f2fd,_0x5c6ed2,_0x115ce5);}else _0x2c7975[_0x16f6db(0x252)](_0x3f0fb6,_0x5c6ed2,_0x115ce5);_0x2c7975[_0x16f6db(0x143)]();}[_0x51cf5f(0x16c)](_0x1ff4ab){const _0x2d2b2c=_0x51cf5f;ee[_0x2d2b2c(0x28f)](_0x1ff4ab,this);}}const re='collab-text-anchor-',ht=_0x51cf5f(0x381),ut=_0x51cf5f(0x345),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x51cf5f(0x18e);class De{constructor(_0x33b1f,_0x5a51ba,_0x1fe078,_0x4ab1a){const _0x4bc176=_0x51cf5f;h(this,_0x4bc176(0x2f2),[]),h(this,'_anchor',null),h(this,_0x4bc176(0x266),null),h(this,_0x4bc176(0x19f),null),h(this,'_hideTimer',null),h(this,_0x4bc176(0x172),null),(this[_0x4bc176(0x20e)]=_0x33b1f,this[_0x4bc176(0x12e)]=_0x5a51ba,this[_0x4bc176(0x25a)]=_0x1fe078,this[_0x4bc176(0x322)]=_0x4ab1a,this['_render']());}set[_0x51cf5f(0x29a)](_0x25a13f){const _0x341a9a=_0x51cf5f;_0x25a13f?(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)][_0x341a9a(0x2a0)](),this['_textBubble']&&this[_0x341a9a(0x266)][_0x341a9a(0x356)]()):(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)]['show'](),this['_textBubble']&&this[_0x341a9a(0x266)]['hide']());}[_0x51cf5f(0x277)](){const _0x2b8150=_0x51cf5f;for(const _0x3ec2ea of this['_shapes'])_0x3ec2ea[_0x2b8150(0x277)]();this[_0x2b8150(0x266)]&&this['_textBubble'][_0x2b8150(0x277)](),this[_0x2b8150(0x19f)]&&this[_0x2b8150(0x19f)][_0x2b8150(0x277)](),this['_anchor']&&this[_0x2b8150(0x2b6)][_0x2b8150(0x277)](),this[_0x2b8150(0x172)]&&this[_0x2b8150(0x172)]();}[_0x51cf5f(0x34d)](){const _0xa32359=_0x51cf5f;var _0x122512;const {_docSkeleton:_0x416c0b,_document:_0x20b77f}=this,{color:_0x16b05b,name:_0x53af48,ranges:_0x3e849f}=this['_cursor'],_0x133a7a=_0x20b77f[_0xa32359(0x1f3)](),{docsLeft:_0x8a3760,docsTop:_0x3b22ed}=_0x133a7a,_0x58df71=new b[(_0xa32359(0x175))](_0x133a7a,_0x416c0b);for(const {startOffset:_0x423276,endOffset:_0x19e12b,rangeType:_0xb75ea2,segmentId:_0x383456,segmentPage:_0xe526e0,collapsed:_0xc09131,isActive:_0x4ba9c7}of _0x3e849f){const _0xe27b27=_0x416c0b[_0xa32359(0x167)](_0x423276,!0x0,_0x383456,_0xe526e0);let _0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b,!0x0,_0x383456,_0xe526e0);if(_0x556fd8==null&&(_0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b-0x1,!0x1,_0x383456,_0xe526e0)),_0x4ba9c7){const {contentBoxPointGroup:_0x411ea3}=_0x58df71[_0xa32359(0x316)](_0x556fd8,_0x556fd8);if(_0x411ea3[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x393)](_0x16b05b,_0x411ea3,_0x8a3760,_0x3b22ed,_0x53af48),this[_0xa32359(0x172)]=this['_handleHover']();}if(_0xe27b27&&_0x556fd8){if(_0xb75ea2===a[_0xa32359(0x2ad)][_0xa32359(0x146)]){const _0x407fec=new b['NodePositionConvertToRectRange'](_0x133a7a,_0x416c0b),{pointGroup:_0x3d0b49}=(_0x122512=_0x407fec[_0xa32359(0x316)](_0xe27b27,_0x556fd8))!=null?_0x122512:{};if(_0x3d0b49==null||_0x3d0b49[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x281)](_0x16b05b,_0x3d0b49,_0x8a3760,_0x3b22ed);}else{if(!_0xc09131){const {borderBoxPointGroup:_0x4d78a7}=_0x58df71[_0xa32359(0x316)](_0xe27b27,_0x556fd8);if(_0x4d78a7[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x14b)](_0x16b05b,_0x4d78a7,_0x8a3760,_0x3b22ed);}}}}}[_0x51cf5f(0x393)](_0x58df96,_0x4bd9fa,_0x4cd7ab,_0x350458,_0x27351d){const _0x25b0d5=_0x51cf5f,_0x333da5=this[_0x25b0d5(0x3a1)](_0x4bd9fa),{left:_0x26394c,top:_0x27d377,height:_0x546360}=_0x333da5,_0x4b4814=this['_getScale'](),_0x48d969=ft/_0x4b4814,_0x474156=new p[(_0x25b0d5(0x378))](re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458,'height':_0x546360,'width':dt,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':_0x48d969,'stroke':St,'evented':!0x0});this[_0x25b0d5(0x2b6)]=_0x474156,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x474156,b[_0x25b0d5(0x361)]);const _0x43c0cc=new p[(_0x25b0d5(0x378))](re+a[_0x25b0d5(0x311)][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-oe/0x2,'height':oe,'width':oe,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':0x0,'stroke':_0x58df96||p[_0x25b0d5(0x200)](a[_0x25b0d5(0x388)][_0x25b0d5(0x206)],0x0),'evented':!0x1});this[_0x25b0d5(0x19f)]=_0x43c0cc,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x43c0cc,b[_0x25b0d5(0x361)]);const _0x12656a=new ee(re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-K,'text':_0x27351d,'color':_0x58df96});this[_0x25b0d5(0x266)]=_0x12656a,this[_0x25b0d5(0x12e)]['addObject'](_0x12656a,b['TEXT_RANGE_LAYER_INDEX']),this[_0x25b0d5(0x29a)]=!0x1;}[_0x51cf5f(0x13c)](){const _0x390c3c=_0x51cf5f,_0x52b040=this['_anchor'][_0x390c3c(0x1a9)][_0x390c3c(0x13b)](()=>{const _0x34096c=_0x390c3c;this[_0x34096c(0x29a)]=!0x0;}),_0x4b1db2=this[_0x390c3c(0x2b6)]['onPointerLeave$'][_0x390c3c(0x13b)](()=>{const _0x37c886=_0x390c3c;this[_0x37c886(0x366)]&&clearTimeout(this[_0x37c886(0x366)]),this['_hideTimer']=setTimeout(()=>{const _0x5df5f6=_0x37c886;this[_0x5df5f6(0x29a)]=!0x1;},0x7d0);});return()=>{const _0x52c314=_0x390c3c;_0x52b040[_0x52c314(0x26f)](),_0x4b1db2['unsubscribe']();};}[_0x51cf5f(0x14b)](_0x3ba318,_0x3556e1,_0x3fb631,_0xad2f45){const _0x25f10b=_0x51cf5f,_0x2f5ea3=new a['ColorKit'](_0x3ba318)[_0x25f10b(0x2e3)](0.2)[_0x25f10b(0x33c)](),_0x3babd3=new p[(_0x25f10b(0x364))](ht+a['Tools'][_0x25f10b(0x22c)](k),{'pointsGroup':_0x3556e1,'fill':_0x2f5ea3||p[_0x25f10b(0x200)](a[_0x25f10b(0x388)]['black'],0.2),'left':_0x3fb631,'top':_0xad2f45,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25f10b(0x326)](_0x3babd3),this[_0x25f10b(0x12e)][_0x25f10b(0x182)](_0x3babd3,b[_0x25f10b(0x361)]);}[_0x51cf5f(0x281)](_0x3d212d,_0x348cc4,_0x34b073,_0x4fda1f){const _0x4906d5=_0x51cf5f,_0x28523c=new a[(_0x4906d5(0x16a))](_0x3d212d)[_0x4906d5(0x2e3)](0.2)[_0x4906d5(0x33c)](),_0x297931=new p['RegularPolygon'](ut+a[_0x4906d5(0x311)]['generateRandomId'](k),{'pointsGroup':_0x348cc4,'fill':_0x28523c||p[_0x4906d5(0x200)](a[_0x4906d5(0x388)][_0x4906d5(0x206)],0.2),'left':_0x34b073,'top':_0x4fda1f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4906d5(0x2f2)][_0x4906d5(0x326)](_0x297931),this[_0x4906d5(0x12e)][_0x4906d5(0x182)](_0x297931,b['TEXT_RANGE_LAYER_INDEX']);}[_0x51cf5f(0x3a1)](_0x374919){const _0x52345a=_0x374919[0x0],_0x58a905=_0x52345a[0x0],_0x2beab5=_0x52345a[0x2],{x:_0x1bf9f1,y:_0x233568}=_0x58a905,{x:_0xd989d1,y:_0x536238}=_0x2beab5;return{'left':_0x1bf9f1,'top':_0x233568,'width':_0xd989d1-_0x1bf9f1,'height':_0x536238-_0x233568};}[_0x51cf5f(0x37f)](){const _0x8263d9=_0x51cf5f,{scaleX:_0x21eaeb,scaleY:_0x23ce96}=this['_scene'][_0x8263d9(0x30d)]();return Math[_0x8263d9(0x317)](_0x21eaeb,_0x23ce96);}}var It=Object[_0x51cf5f(0x377)],vt=(_0x131922,_0x4389f7,_0x4d4631,_0x465c13)=>{for(var _0x35c346=_0x465c13>0x1?void 0x0:_0x465c13?It(_0x4389f7,_0x4d4631):_0x4389f7,_0x4ace7e=_0x131922['length']-0x1,_0x424291;_0x4ace7e>=0x0;_0x4ace7e--)(_0x424291=_0x131922[_0x4ace7e])&&(_0x35c346=_0x424291(_0x35c346)||_0x35c346);return _0x35c346;},W=(_0x559a00,_0x1ba0bd)=>(_0x59f03d,_0x57256e)=>_0x1ba0bd(_0x59f03d,_0x57256e,_0x559a00);let Ie=class extends a[_0x51cf5f(0x298)]{constructor(_0x15b3a5,_0x563c3e,_0x225f1c,_0xfa7b71,_0x49deac){const _0x14059f=_0x51cf5f;super(),h(this,'_cursorShapes',[]),h(this,_0x14059f(0x258),[]),(this[_0x14059f(0x318)]=_0x15b3a5,this['_docSkeletonManagerService']=_0x563c3e,this[_0x14059f(0x262)]=_0x225f1c,this['_commandService']=_0xfa7b71,this[_0x14059f(0x1ea)]=_0x49deac,this['_init']());}[_0x51cf5f(0x2f4)](){const _0x5353ba=_0x51cf5f,_0x26f32e=this[_0x5353ba(0x318)]['unitId'],_0x4f06c1=this[_0x5353ba(0x1ef)];this[_0x5353ba(0x1fa)](d[_0x5353ba(0x34e)]([this[_0x5353ba(0x262)]['getCollabCursors$'](_0x26f32e),this['_themeService']['currentTheme$']])[_0x5353ba(0x3a7)]($['map'](([_0x4c1848,_0x1cd994])=>({'skeleton':_0x4f06c1[_0x5353ba(0x23c)](),'cursors':[..._0x4c1848[_0x5353ba(0x1d3)]()][_0x5353ba(0x2a2)](_0x1ab44c=>({..._0x1ab44c,'color':this[_0x5353ba(0x1ea)][_0x5353ba(0x2c1)](_0x1ab44c[_0x5353ba(0x39f)])}))})))[_0x5353ba(0x254)](_0x5e69b2=>{const _0xe61cf6=_0x5353ba;if(this[_0xe61cf6(0x312)](),_0x5e69b2){const {skeleton:_0x312bff,cursors:_0x5e60e5}=_0x5e69b2;this[_0xe61cf6(0x1db)](_0x312bff,_0x5e60e5);}})),this[_0x5353ba(0x13a)](),this[_0x5353ba(0x2f7)]();}[_0x51cf5f(0x1db)](_0x5b1477,_0x23326b){const _0x3acc58=_0x51cf5f,{scene:_0x5155f8,mainComponent:_0x620fce}=this[_0x3acc58(0x318)],_0x508ccb=_0x23326b['map'](_0x16d0c4=>new De(_0x16d0c4,_0x5155f8,_0x5b1477,_0x620fce));this[_0x3acc58(0x38e)]=_0x508ccb,this[_0x3acc58(0x258)]=_0x23326b;}['_refreshCollabCursors'](){const _0x54f367=_0x51cf5f;this[_0x54f367(0x312)]();const {scene:_0x30422f,mainComponent:_0x51f816}=this[_0x54f367(0x318)],_0x566a92=this[_0x54f367(0x1ef)][_0x54f367(0x23c)](),_0x44f22d=this['_cursors'][_0x54f367(0x307)](_0x2ee618=>new De(_0x2ee618,_0x30422f,_0x566a92,_0x51f816));this['_cursorShapes']=_0x44f22d;}[_0x51cf5f(0x312)](){const _0x191b59=_0x51cf5f;this[_0x191b59(0x38e)][_0x191b59(0x2ba)](_0x28d0a2=>_0x28d0a2[_0x191b59(0x277)]()),this[_0x191b59(0x38e)]=[];}[_0x51cf5f(0x2f7)](){const _0x5a1dd9=_0x51cf5f,_0x2d1abe=[b['SetDocZoomRatioOperation']['id']];this[_0x5a1dd9(0x1fa)](this[_0x5a1dd9(0x362)][_0x5a1dd9(0x1a3)](_0xab7b8e=>{const _0x225865=_0x5a1dd9;_0x2d1abe[_0x225865(0x37b)](_0xab7b8e['id'])&&_0xab7b8e[_0x225865(0x3b5)]['unitId']===this[_0x225865(0x318)]['unitId']&&this[_0x225865(0x350)]();}));}[_0x51cf5f(0x13a)](){const _0x435d37=_0x51cf5f;this[_0x435d37(0x1fa)](a['fromEventSubject'](this[_0x435d37(0x318)]['engine'][_0x435d37(0x260)])[_0x435d37(0x3a7)]($[_0x435d37(0x1d0)](_0x131b56=>_0x131b56['type']===p[_0x435d37(0x2dc)][_0x435d37(0x2a6)]),$[_0x435d37(0x32d)](0x10))[_0x435d37(0x254)](()=>{const _0x6955b9=_0x435d37;this[_0x6955b9(0x350)]();}));}};Ie=vt([W(0x1,a[_0x51cf5f(0x249)](Y[_0x51cf5f(0x334)])),W(0x2,a[_0x51cf5f(0x249)](x)),W(0x3,a[_0x51cf5f(0x36e)]),W(0x4,a['Inject'](a[_0x51cf5f(0x39e)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x51cf5f(0x189)]{constructor(_0xf2aa9c,_0x2e3e21){const _0x421466=_0x51cf5f;super(_0xf2aa9c,_0x2e3e21),h(this,_0x421466(0x2c5)),h(this,'_hovered',!0x1),h(this,_0x421466(0x209)),h(this,_0x421466(0x2d2),''),h(this,_0x421466(0x265),_0x421466(0x1c9)),h(this,_0x421466(0x310)),(_0x2e3e21&&this['setShapeProps'](_0x2e3e21),this[_0x421466(0x1a9)][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x0})),this['onPointerLeave$'][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x1})));}[_0x51cf5f(0x3a4)](_0x3c9e0c){const _0x1b7958=_0x51cf5f;var _0x2bbb0f,_0xa86e25,_0x635c81,_0x435665,_0x2547cd,_0x340cf2;this[_0x1b7958(0x2c5)]=(_0x2bbb0f=_0x3c9e0c['color'])!=null?_0x2bbb0f:this[_0x1b7958(0x2c5)],this['_hovered']=(_0xa86e25=_0x3c9e0c[_0x1b7958(0x133)])!=null?_0xa86e25:this[_0x1b7958(0x138)],this['_range']=(_0x635c81=_0x3c9e0c['range'])!=null?_0x635c81:this[_0x1b7958(0x209)],this[_0x1b7958(0x2d2)]=(_0x435665=_0x3c9e0c[_0x1b7958(0x2e6)])!=null?_0x435665:this[_0x1b7958(0x2d2)],this['_labelPosition']=(_0x2547cd=_0x3c9e0c['labelPosition'])!=null?_0x2547cd:this[_0x1b7958(0x265)],this['_backgroundColor']=(_0x340cf2=_0x3c9e0c[_0x1b7958(0x3a9)])!=null?_0x340cf2:this[_0x1b7958(0x310)],this['transformByState']({'width':_0x3c9e0c[_0x1b7958(0x1bc)],'height':_0x3c9e0c[_0x1b7958(0x22b)]});}['onMouseMove'](_0x2cc55a){const _0x1e27fa=_0x51cf5f,{row:_0x4929cd,column:_0x4d9ca9}=_0x2cc55a;if(_0x4929cd>=this[_0x1e27fa(0x209)][_0x1e27fa(0x233)]&&_0x4929cd<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1f8)]&&_0x4d9ca9>=this[_0x1e27fa(0x209)][_0x1e27fa(0x2f9)]&&_0x4d9ca9<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1e3)]){this[_0x1e27fa(0x3a4)]({'hovered':!0x0});return;}this[_0x1e27fa(0x3a4)]({'hovered':!0x1});}[_0x51cf5f(0x1a0)](_0x186743){return!0x1;}['_draw'](_0x40651c){const _0x1f6685=_0x51cf5f;p['Rect'][_0x1f6685(0x28f)](_0x40651c,{'width':this[_0x1f6685(0x1bc)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x1f6685(0x2c5)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x1f6685(0x138)]&&(_0x40651c[_0x1f6685(0x14a)](),_0x40651c['transform'](0x1,0x0,0x0,0x1,this[_0x1f6685(0x1bc)],this[_0x1f6685(0x265)]===_0x1f6685(0x349)?0x0:-0x14),ee[_0x1f6685(0x28f)](_0x40651c,{'text':this[_0x1f6685(0x2d2)],'color':this[_0x1f6685(0x2c5)]}),_0x40651c[_0x1f6685(0x143)]());}}var Ct=Object[_0x51cf5f(0x377)],pt=(_0x5c1351,_0x644aad,_0x3a8bb6,_0x2a1b9f)=>{const _0x29b97b=_0x51cf5f;for(var _0x51109d=_0x2a1b9f>0x1?void 0x0:_0x2a1b9f?Ct(_0x644aad,_0x3a8bb6):_0x644aad,_0x4cd2f5=_0x5c1351[_0x29b97b(0x296)]-0x1,_0x1a6eec;_0x4cd2f5>=0x0;_0x4cd2f5--)(_0x1a6eec=_0x5c1351[_0x4cd2f5])&&(_0x51109d=_0x1a6eec(_0x51109d)||_0x51109d);return _0x51109d;},ae=(_0x13c8a6,_0x1d2e40)=>(_0x417a08,_0x4171c9)=>_0x1d2e40(_0x417a08,_0x4171c9,_0x13c8a6);const bt=0x1389;let ve=class extends a[_0x51cf5f(0x298)]{constructor(_0x11f66a,_0x2c48d9,_0x396fa2,_0x5dbf37){const _0x34f8d5=_0x51cf5f;super(),h(this,_0x34f8d5(0x258),new Set()),h(this,'_lastPointer',null),(this[_0x34f8d5(0x318)]=_0x11f66a,this[_0x34f8d5(0x1a7)]=_0x2c48d9,this[_0x34f8d5(0x262)]=_0x396fa2,this[_0x34f8d5(0x1ea)]=_0x5dbf37,this['_init']());}['_init'](){const _0x2b3fd9=_0x51cf5f;this[_0x2b3fd9(0x1a7)][_0x2b3fd9(0x184)][_0x2b3fd9(0x3a7)]($[_0x2b3fd9(0x20d)](this[_0x2b3fd9(0x28a)]),$[_0x2b3fd9(0x1d5)](_0x41e596=>{const _0x281584=_0x2b3fd9;if(_0x41e596){const _0x2d6d38=_0x41e596[_0x281584(0x256)];return d[_0x281584(0x34e)](this[_0x281584(0x262)][_0x281584(0x2a4)](this['_context'][_0x281584(0x395)]),this[_0x281584(0x1ea)][_0x281584(0x242)])['pipe']($['map'](([_0x24adbd,_0xfd6433])=>{const _0x5386ca=_0x281584,_0x45f0b5=new Map();return _0x24adbd[_0x5386ca(0x2ba)]((_0x2f4edc,_0x5f5916)=>{const _0x118db8=_0x5386ca;if(_0x2f4edc['sheetID']===_0x2d6d38){const _0x563590={..._0x2f4edc};_0x563590[_0x118db8(0x39f)]=this[_0x118db8(0x1ea)][_0x118db8(0x2c1)](_0x2f4edc[_0x118db8(0x39f)]),_0x45f0b5['set'](_0x5f5916,_0x563590);}}),{'skeleton':_0x41e596,'cursors':_0x45f0b5};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3da971,cursors:_0x35ec40})=>{this['_removeCollabCursors'](),_0x3da971&&this['_updateCollabCursors'](_0x3da971,_0x35ec40);}),this[_0x2b3fd9(0x1a7)]['currentSkeleton$'][_0x2b3fd9(0x254)](_0x211b59=>{const _0x538361=_0x2b3fd9;if(_0x211b59==null)return;const {skeleton:_0x7be27b}=_0x211b59,{scene:_0x57d936}=this[_0x538361(0x318)];_0x57d936['onPointerMove$'][_0x538361(0x13b)](a['debounce'](_0x11ee46=>{const _0x727b2d=_0x538361;var _0xb7adb8,_0x2c1538;const {offsetX:_0x417606,offsetY:_0x4b0423}=_0x11ee46,{x:_0x35dbd7,y:_0x39a85d}=_0x57d936[_0x727b2d(0x33b)](p[_0x727b2d(0x132)][_0x727b2d(0x13f)]([_0x417606,_0x4b0423])),{scaleX:_0xb3c127,scaleY:_0x3b40ff}=_0x57d936[_0x727b2d(0x30d)](),_0x53241c=_0x57d936[_0x727b2d(0x327)](p[_0x727b2d(0x21d)][_0x727b2d(0x224)]),_0x2c4467=_0x57d936['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x727b2d(0x13f)]([_0x35dbd7,_0x39a85d]),_0x53241c),_0x4ca306=_0x7be27b[_0x727b2d(0x1a2)](_0x417606,_0x4b0423,_0xb3c127,_0x3b40ff,_0x2c4467);((_0xb7adb8=this[_0x727b2d(0x357)])==null?void 0x0:_0xb7adb8[_0x727b2d(0x222)])===_0x4ca306[_0x727b2d(0x222)]&&((_0x2c1538=this[_0x727b2d(0x357)])==null?void 0x0:_0x2c1538[_0x727b2d(0x1fd)])===_0x4ca306[_0x727b2d(0x1fd)]||this[_0x727b2d(0x258)][_0x727b2d(0x2ba)](_0x316a61=>{const _0x494b60=_0x727b2d;_0x316a61[_0x494b60(0x23b)](_0x4ca306);});},0x64));});}[_0x51cf5f(0x1db)](_0x50c8b8,_0x26eb85){const _0x119c0c=_0x51cf5f;var _0x2c1af3;const _0x3957d3=(_0x2c1af3=this[_0x119c0c(0x1a7)][_0x119c0c(0x2dd)]())==null?void 0x0:_0x2c1af3[_0x119c0c(0x24d)];if(!_0x3957d3)return;const _0xfc2998=this[_0x119c0c(0x179)]();if(!_0xfc2998)return;this['_cursors'][_0x119c0c(0x2ba)](_0x52b4e6=>{const _0x241bf3=_0x119c0c;_0x52b4e6[_0x241bf3(0x21f)]();});const {scene:_0x3682a5}=_0xfc2998,_0x2873e0=Et(Array[_0x119c0c(0x1f0)](_0x26eb85[_0x119c0c(0x1d3)]()))[_0x119c0c(0x307)](_0x338dca=>{const _0x20a714=_0x119c0c,{color:_0x1e64ae,range:_0x58ec11,name:_0x53e920,selection:_0x54a107,sheetID:_0x1070d3}=_0x338dca,{startColumn:_0x1ac2a9,startRow:_0x3c173c,endColumn:_0x5b45e9,endRow:_0x31b46f}=_0x58ec11,_0x2fad32=X[_0x20a714(0x2c9)](_0x3c173c,_0x1ac2a9,_0x3682a5,_0x3957d3),_0x4fe6b0=X[_0x20a714(0x2c9)](_0x31b46f,_0x5b45e9,_0x3682a5,_0x3957d3),{columnHeaderHeightAndMarginTop:_0x267f73}=_0x3957d3,{startX:_0x416ed1,startY:_0x9539ac}=_0x2fad32,{endX:_0x125e17,endY:_0x2f6e56}=_0x4fe6b0,_0x17c97e=_0x125e17-_0x416ed1,_0x1accb0=_0x2f6e56-_0x9539ac,_0x14ae2e={'labelPosition':_0x9539ac-_0x267f73>=K?'top':_0x20a714(0x349),'sheetID':_0x1070d3,'range':_0x58ec11,'color':_0x1e64ae,'name':_0x53e920,'selection':_0x54a107,'left':_0x416ed1,'top':_0x9539ac,'width':_0x17c97e,'height':_0x1accb0,'evented':!0x1,'zIndex':bt};return new Pe(_0x53e920,_0x14ae2e);});_0x3682a5[_0x119c0c(0x1f9)](_0x2873e0,gt),this[_0x119c0c(0x258)]=new Set(_0x2873e0);}[_0x51cf5f(0x312)](){const _0x475cdc=_0x51cf5f;var _0x1e574e;(_0x1e574e=this[_0x475cdc(0x258)])==null||_0x1e574e[_0x475cdc(0x2ba)](_0x544786=>_0x544786['dispose']());}[_0x51cf5f(0x179)](){const _0x2f9db5=_0x51cf5f;return X['getSheetObject'](this[_0x2f9db5(0x318)][_0x2f9db5(0x31e)],this[_0x2f9db5(0x318)]);}};ve=pt([ae(0x1,a[_0x51cf5f(0x249)](X[_0x51cf5f(0x373)])),ae(0x2,a[_0x51cf5f(0x249)](x)),ae(0x3,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x39e)]))],ve);function Et(_0x3a87fe){const _0x40550c=_0x51cf5f,_0x515592=new Map();return _0x3a87fe[_0x40550c(0x2ba)](_0x186903=>{const _0x24ec77=_0x40550c;if(_0x515592[_0x24ec77(0x2e2)](_0x186903['selection'])){const _0x3aacc4=_0x515592[_0x24ec77(0x214)](_0x186903[_0x24ec77(0x38a)]);_0x3aacc4[_0x24ec77(0x2e6)]+=',\x20'+_0x186903[_0x24ec77(0x2e6)];}else _0x515592[_0x24ec77(0x2e8)](_0x186903[_0x24ec77(0x38a)],_0x186903);}),Array[_0x40550c(0x1f0)](_0x515592[_0x40550c(0x1d3)]());}var E=function(){const _0x10219d=_0x51cf5f;return E=Object[_0x10219d(0x181)]||function(_0x16a1e4){const _0x36c406=_0x10219d;for(var _0xac90bb,_0x1d2b03=0x1,_0x2b6e27=arguments[_0x36c406(0x296)];_0x1d2b03<_0x2b6e27;_0x1d2b03++){_0xac90bb=arguments[_0x1d2b03];for(var _0x224f7b in _0xac90bb)Object['prototype']['hasOwnProperty']['call'](_0xac90bb,_0x224f7b)&&(_0x16a1e4[_0x224f7b]=_0xac90bb[_0x224f7b]);}return _0x16a1e4;},E[_0x10219d(0x24f)](this,arguments);},Tt=function(_0x3bb10e,_0x53406d){const _0x3e21ec=_0x51cf5f;var _0x4e6384={};for(var _0x4c4f82 in _0x3bb10e)Object['prototype'][_0x3e21ec(0x28e)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82)&&_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82)<0x0&&(_0x4e6384[_0x4c4f82]=_0x3bb10e[_0x4c4f82]);if(_0x3bb10e!=null&&typeof Object[_0x3e21ec(0x3b2)]==_0x3e21ec(0x37d)){for(var _0x4e1da7=0x0,_0x4c4f82=Object['getOwnPropertySymbols'](_0x3bb10e);_0x4e1da7<_0x4c4f82[_0x3e21ec(0x296)];_0x4e1da7++)_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82[_0x4e1da7])<0x0&&Object[_0x3e21ec(0x160)][_0x3e21ec(0x1be)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82[_0x4e1da7])&&(_0x4e6384[_0x4c4f82[_0x4e1da7]]=_0x3bb10e[_0x4c4f82[_0x4e1da7]]);}return _0x4e6384;},pe=M[_0x51cf5f(0x3b8)](function(_0x1fc6e4,_0x8da0c3){const _0x231e47=_0x51cf5f;var _0x436ac0=_0x1fc6e4[_0x231e47(0x338)],_0x5980ce=_0x1fc6e4['id'],_0x47b912=_0x1fc6e4[_0x231e47(0x303)],_0x455995=_0x1fc6e4[_0x231e47(0x27a)],_0x162d03=Tt(_0x1fc6e4,[_0x231e47(0x338),'id',_0x231e47(0x303),'extend']),_0x16ccac=_0x231e47(0x2b9)[_0x231e47(0x1ce)](_0x5980ce,'\x20')[_0x231e47(0x1ce)](_0x47b912||'')['trim'](),_0x5c1094=M[_0x231e47(0x150)]('_'[_0x231e47(0x1ce)](Dt()));return Ae(_0x436ac0,''[_0x231e47(0x1ce)](_0x5980ce),{'defIds':_0x436ac0[_0x231e47(0x369)],'idSuffix':_0x5c1094[_0x231e47(0x2d7)]},E({'ref':_0x8da0c3,'className':_0x16ccac},_0x162d03),_0x455995);});function Ae(_0x5de706,_0x41bdbf,_0x107330,_0x632bf2,_0x25038b){const _0x2cf17c=_0x51cf5f;return M[_0x2cf17c(0x30b)](_0x5de706[_0x2cf17c(0x29f)],E(E({'key':_0x41bdbf},Ot(_0x5de706,_0x107330,_0x25038b)),_0x632bf2),(Rt(_0x5de706,_0x107330)['children']||[])[_0x2cf17c(0x307)](function(_0x3527b0,_0x477bc1){const _0x1a18bb=_0x2cf17c;return Ae(_0x3527b0,''['concat'](_0x41bdbf,'-')[_0x1a18bb(0x1ce)](_0x5de706[_0x1a18bb(0x29f)],'-')['concat'](_0x477bc1),_0x107330,void 0x0,_0x25038b);}));}function Ot(_0xe26fbe,_0x50e4fc,_0x3984e3){const _0x5476a2=_0x51cf5f;var _0x5499f4=E({},_0xe26fbe[_0x5476a2(0x32b)]);_0x3984e3!=null&&_0x3984e3['colorChannel1']&&_0x5499f4[_0x5476a2(0x2ff)]==='colorChannel1'&&(_0x5499f4[_0x5476a2(0x2ff)]=_0x3984e3[_0x5476a2(0x204)]),_0xe26fbe['tag']==='mask'&&_0x5499f4['id']&&(_0x5499f4['id']=_0x5499f4['id']+_0x50e4fc[_0x5476a2(0x20c)]),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x1ea39a){const _0xca0e28=_0x5476a2;var _0x35b175=_0x1ea39a[0x0],_0x29dc03=_0x1ea39a[0x1];_0x35b175==='mask'&&typeof _0x29dc03==_0xca0e28(0x308)&&(_0x5499f4[_0x35b175]=_0x29dc03[_0xca0e28(0x1d9)](/url\(#(.*)\)/,_0xca0e28(0x2d4)['concat'](_0x50e4fc[_0xca0e28(0x20c)],')')));});var _0x4014cf=_0x50e4fc[_0x5476a2(0x369)];return!_0x4014cf||_0x4014cf[_0x5476a2(0x296)]===0x0||(_0xe26fbe['tag']===_0x5476a2(0x301)&&_0x5499f4['xlink:href']&&(_0x5499f4[_0x5476a2(0x251)]=_0x5499f4[_0x5476a2(0x251)]+_0x50e4fc['idSuffix']),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x3d52f5){const _0x9cd9b1=_0x5476a2;var _0xb1b29e=_0x3d52f5[0x0],_0x2c4aaf=_0x3d52f5[0x1];typeof _0x2c4aaf==_0x9cd9b1(0x308)&&(_0x5499f4[_0xb1b29e]=_0x2c4aaf[_0x9cd9b1(0x1d9)](/url\(#(.*)\)/,_0x9cd9b1(0x2d4)[_0x9cd9b1(0x1ce)](_0x50e4fc[_0x9cd9b1(0x20c)],')')));})),_0x5499f4;}function Rt(_0x44deee,_0xfa5c2e){const _0x2f51aa=_0x51cf5f;var _0x5e0a8b,_0x11b7a4=_0xfa5c2e[_0x2f51aa(0x369)];return!_0x11b7a4||_0x11b7a4[_0x2f51aa(0x296)]===0x0?_0x44deee:_0x44deee[_0x2f51aa(0x29f)]===_0x2f51aa(0x239)&&(!((_0x5e0a8b=_0x44deee['children'])===null||_0x5e0a8b===void 0x0)&&_0x5e0a8b[_0x2f51aa(0x296)])?E(E({},_0x44deee),{'children':_0x44deee[_0x2f51aa(0x1f5)][_0x2f51aa(0x307)](function(_0x418c8b){const _0x5a2f08=_0x2f51aa;return typeof _0x418c8b[_0x5a2f08(0x32b)]['id']=='string'&&_0x11b7a4&&_0x11b7a4['includes'](_0x418c8b[_0x5a2f08(0x32b)]['id'])?E(E({},_0x418c8b),{'attrs':E(E({},_0x418c8b[_0x5a2f08(0x32b)]),{'id':_0x418c8b[_0x5a2f08(0x32b)]['id']+_0xfa5c2e['idSuffix']})}):_0x418c8b;})}):_0x44deee;}function Dt(){const _0x181869=_0x51cf5f;return Math[_0x181869(0x374)]()[_0x181869(0x2f3)](0x24)[_0x181869(0x157)](0x2,0x8);}pe[_0x51cf5f(0x1d6)]=_0x51cf5f(0x2d3);var Ut={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2016\x2016','width':_0x51cf5f(0x313),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x2b3)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x51cf5f(0x196),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':_0x51cf5f(0x1ad),'attrs':{'id':_0x51cf5f(0x1f6)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M['forwardRef'](function(_0x1c96bf,_0x3f05ba){const _0x3b4a05=_0x51cf5f;return M['createElement'](pe,Object[_0x3b4a05(0x181)]({},_0x1c96bf,{'id':_0x3b4a05(0x243),'ref':_0x3f05ba,'icon':Ut}));});ye[_0x51cf5f(0x1d6)]=_0x51cf5f(0x389);var Nt={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2017\x2016','width':_0x51cf5f(0x313),'height':_0x51cf5f(0x313)},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x186)},'children':[{'tag':_0x51cf5f(0x3b0),'attrs':{'stroke':_0x51cf5f(0x2c7),'d':_0x51cf5f(0x2ef),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':_0x51cf5f(0x177),'strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51cf5f(0x32e)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x51cf5f(0x32e)]},$e=M['forwardRef'](function(_0x43c29e,_0xe0745e){const _0x3271f5=_0x51cf5f;return M[_0x3271f5(0x30b)](pe,Object[_0x3271f5(0x181)]({},_0x43c29e,{'id':_0x3271f5(0x1fb),'ref':_0xe0745e,'icon':Nt}));});$e[_0x51cf5f(0x1d6)]=_0x51cf5f(0x36b);function Mt(_0x1385c7){const _0x33d734=_0x51cf5f;switch(_0x1385c7){case u[_0x33d734(0x198)][_0x33d734(0x3a8)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x33d734(0x244)]:return'collabStatus.conflict';case u[_0x33d734(0x198)][_0x33d734(0x29c)]:return _0x33d734(0x34a);case u[_0x33d734(0x198)][_0x33d734(0x1cf)]:return _0x33d734(0x248);case u[_0x33d734(0x198)][_0x33d734(0x30c)]:case u[_0x33d734(0x198)]['AWAITING_WITH_PENDING']:return _0x33d734(0x2cb);case u['CollaborationStatus']['SYNCED']:case u[_0x33d734(0x198)][_0x33d734(0x27c)]:return _0x33d734(0x280);}}function xe(_0x576c68){const _0x5c7bb3=_0x51cf5f,{status$:_0x494575}=_0x576c68,_0x51ad1f=T[_0x5c7bb3(0x2bf)](_0x494575,u[_0x5c7bb3(0x198)]['NOT_COLLAB']),_0x4f91d6=T['useDependency'](a[_0x5c7bb3(0x306)]),_0x3a7249=T['useDependency'](u[_0x5c7bb3(0x386)]),_0x53b73b=_0x51ad1f!==u[_0x5c7bb3(0x198)]['OFFLINE'],_0x38b954=_0x4f91d6['t'](Mt(_0x51ad1f)),_0x2c5263=_0x53b73b?w[_0x5c7bb3(0x392)]($e,{}):w['jsx'](ye,{}),_0x52cbeb=M[_0x5c7bb3(0x2ab)](()=>{_0x53b73b||_0x3a7249['reconnect']();},[_0x53b73b,_0x3a7249]);function _0x51bac8(){const _0x362335=_0x5c7bb3;return w['jsxs'](_0x362335(0x205),{'className':'univer-flex\x20univer-items-center','onClick':_0x52cbeb,'children':[w[_0x362335(0x392)](_0x362335(0x205),{'className':D['clsx'](_0x362335(0x2f5),{'univer-text-green-500':_0x53b73b,'univer-text-red-500':!_0x53b73b}),'children':_0x2c5263}),w[_0x362335(0x392)]('div',{'className':_0x362335(0x1af),'children':_0x38b954})]});}return _0x53b73b?_0x51bac8():w[_0x5c7bb3(0x392)](D[_0x5c7bb3(0x333)],{'title':_0x4f91d6['t']('collab-client.tooltip.reconnect'),'children':_0x51bac8()});}var Lt=Object[_0x51cf5f(0x377)],wt=(_0x218584,_0x4a7c5d,_0x35588e,_0x5800d6)=>{const _0x1e0e7a=_0x51cf5f;for(var _0x1e1333=_0x5800d6>0x1?void 0x0:_0x5800d6?Lt(_0x4a7c5d,_0x35588e):_0x4a7c5d,_0x328c7c=_0x218584[_0x1e0e7a(0x296)]-0x1,_0x5da06c;_0x328c7c>=0x0;_0x328c7c--)(_0x5da06c=_0x218584[_0x328c7c])&&(_0x1e1333=_0x5da06c(_0x1e1333)||_0x1e1333);return _0x1e1333;},V=(_0x222b94,_0x47e494)=>(_0x394f17,_0x467f15)=>_0x47e494(_0x394f17,_0x467f15,_0x222b94);exports[_0x51cf5f(0x1ba)]=class extends a[_0x51cf5f(0x188)]{constructor(_0x1a6b11,_0x64ac2d,_0x266334,_0x44a814){const _0xc4890f=_0x51cf5f;super(),h(this,_0xc4890f(0x1ec),new d[(_0xc4890f(0x365))](u['CollaborationStatus'][_0xc4890f(0x1cf)])),(this[_0xc4890f(0x28d)]=_0x1a6b11,this['_injector']=_0x64ac2d,this[_0xc4890f(0x3b6)]=_0x266334,this[_0xc4890f(0x263)]=_0x44a814,this[_0xc4890f(0x15b)](),this[_0xc4890f(0x1b9)]());}[_0x51cf5f(0x1b9)](){const _0x14fbf4=_0x51cf5f;this[_0x14fbf4(0x1fa)](this[_0x14fbf4(0x28d)][_0x14fbf4(0x321)][_0x14fbf4(0x3a7)](d[_0x14fbf4(0x1d5)](()=>{const _0x2f0f0d=_0x14fbf4,_0x5993ec=this['_univerInstanceService'][_0x2f0f0d(0x340)]();return _0x5993ec?this[_0x2f0f0d(0x3b6)][_0x2f0f0d(0x3ad)](_0x5993ec[_0x2f0f0d(0x14f)]()):d['of'](null);}),d['switchMap'](_0x342d49=>_0x342d49?_0x342d49[_0x14fbf4(0x234)]:d['of'](u[_0x14fbf4(0x198)][_0x14fbf4(0x1cf)])))['subscribe'](_0xe9e5b3=>{const _0x366c70=_0x14fbf4;this[_0x366c70(0x1ec)][_0x366c70(0x19c)](_0xe9e5b3);}));}[_0x51cf5f(0x15b)](){const _0x416cb6=_0x51cf5f;this[_0x416cb6(0x1fa)](this[_0x416cb6(0x263)]['registerComponent'](T[_0x416cb6(0x1a5)][_0x416cb6(0x161)],()=>T['connectInjector'](Pt({'status$':this[_0x416cb6(0x1ec)][_0x416cb6(0x387)]()}),this[_0x416cb6(0x382)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x51cf5f(0x2be)])),V(0x2,a['Inject'](u[_0x51cf5f(0x162)])),V(0x3,T[_0x51cf5f(0x3a6)])],exports[_0x51cf5f(0x1ba)]);function Pt(_0x3eda08){const {status$:_0x412cba}=_0x3eda08;return function(){const _0x2744bd=_0x406e;return w[_0x2744bd(0x392)](xe,{'status$':_0x412cba});};}var At=Object[_0x51cf5f(0x377)],yt=(_0x3b8089,_0x49e7e1,_0x42bd50,_0x4535d0)=>{const _0x22c50b=_0x51cf5f;for(var _0x27a46c=_0x4535d0>0x1?void 0x0:_0x4535d0?At(_0x49e7e1,_0x42bd50):_0x49e7e1,_0x3b80f6=_0x3b8089[_0x22c50b(0x296)]-0x1,_0x133195;_0x3b80f6>=0x0;_0x3b80f6--)(_0x133195=_0x3b8089[_0x3b80f6])&&(_0x27a46c=_0x133195(_0x27a46c)||_0x27a46c);return _0x27a46c;},y=(_0xf8c425,_0x44e5d9)=>(_0x1af55f,_0x38195b)=>_0x44e5d9(_0x1af55f,_0x38195b,_0xf8c425);let q=class extends a[_0x51cf5f(0x188)]{constructor(_0x35a31b,_0x2a4fbb,_0x54cfff,_0x199c06,_0x1d4640,_0x3edd5d){const _0x138ba3=_0x51cf5f;super(),this[_0x138ba3(0x1d1)]=_0x35a31b,this['_localCacheService']=_0x2a4fbb,this[_0x138ba3(0x21b)]=_0x54cfff,this[_0x138ba3(0x1a8)]=_0x199c06,this[_0x138ba3(0x15a)]=_0x1d4640,this[_0x138ba3(0x1e5)]=_0x3edd5d,this[_0x138ba3(0x35a)](),this[_0x138ba3(0x35e)]();}[_0x51cf5f(0x35a)](){const _0x3ab1dd=_0x51cf5f;this[_0x3ab1dd(0x1fa)](this[_0x3ab1dd(0x1d1)][_0x3ab1dd(0x391)](()=>{const _0x52952c=_0x3ab1dd;if(this['_localCacheService'][_0x52952c(0x15d)][_0x52952c(0x335)])return this[_0x52952c(0x1e5)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x41fc97=_0x51cf5f;this['disposeWithMe'](this[_0x41fc97(0x21b)][_0x41fc97(0x341)][_0x41fc97(0x254)](_0x57a416=>{const _0x5be16a=_0x41fc97;_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x276)]&&this['_messageService'][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x35c))}),_0x57a416['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t']('collaboration.closeRoom')}),_0x57a416['id']===u[_0x5be16a(0x15e)]['PERMISSION_DENIED']&&this[_0x5be16a(0x15a)]['show']({'title':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2ae)),'content':this[_0x5be16a(0x1e5)]['t']('permission.content'),'type':_0x5be16a(0x2d9),'duration':0x0}),_0x57a416['id']===u['CollaborationUIEventId'][_0x5be16a(0x244)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x12c))+'('+_0x57a416[_0x5be16a(0x2eb)]+')'}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x2a8)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this['_localeService']['t'](_0x57a416[_0x5be16a(0x2eb)]||'')}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x190)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x270))}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x1e7)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)]['Error'],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2d0))}),_0x57a416['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x21e))});}));}};q=yt([y(0x0,T[_0x51cf5f(0x291)]),y(0x1,u[_0x51cf5f(0x278)]),y(0x2,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x3b3)])),y(0x3,T[_0x51cf5f(0x35d)]),y(0x4,T[_0x51cf5f(0x332)]),y(0x5,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x306)]))],q);const $t=_0x51cf5f(0x213),Ue={},be=a[_0x51cf5f(0x23f)](_0x51cf5f(0x314));var xt=Object[_0x51cf5f(0x377)],jt=(_0x28b395,_0x31eded,_0x1b5de5,_0x12bbf5)=>{const _0x5c1966=_0x51cf5f;for(var _0x5e9efb=_0x12bbf5>0x1?void 0x0:_0x12bbf5?xt(_0x31eded,_0x1b5de5):_0x31eded,_0xa63a4c=_0x28b395[_0x5c1966(0x296)]-0x1,_0xc8dade;_0xa63a4c>=0x0;_0xa63a4c--)(_0xc8dade=_0x28b395[_0xa63a4c])&&(_0x5e9efb=_0xc8dade(_0x5e9efb)||_0x5e9efb);return _0x5e9efb;},H=(_0x19acc5,_0x1604e4)=>(_0x24a8fd,_0x4ed6d5)=>_0x1604e4(_0x24a8fd,_0x4ed6d5,_0x19acc5);exports['CollaborationDataLoaderController']=class extends a[_0x51cf5f(0x298)]{constructor(_0x160fbc,_0x41e3fb,_0x2a603e,_0x2e3f84,_0x184899){const _0x1eca94=_0x51cf5f;super(),this['_urlService']=_0x160fbc,this['_logService']=_0x41e3fb,this[_0x1eca94(0x362)]=_0x2a603e,this['_dataLoaderService']=_0x2e3f84,_0x184899?_0x184899==null||_0x184899['whenReady']()[_0x1eca94(0x2b1)](()=>this[_0x1eca94(0x2f4)]()):(this[_0x1eca94(0x309)][_0x1eca94(0x353)]('[CollaborationDataLoaderController]',_0x1eca94(0x390)),this[_0x1eca94(0x2f4)]());}async['_init'](){const _0x21bbf7=_0x51cf5f,_0x1346bc=this['_urlService']['getParam'](_0x21bbf7(0x31e)),_0xabe503=this['_urlService'][_0x21bbf7(0x39d)](_0x21bbf7(0x1ae)),_0x5e334c=this[_0x21bbf7(0x1aa)][_0x21bbf7(0x39d)](_0x21bbf7(0x1c7));if(!_0x1346bc||!_0xabe503){this[_0x21bbf7(0x309)][_0x21bbf7(0x353)](_0x21bbf7(0x1b7),_0x21bbf7(0x2f0));return;}const _0x16e532=await this[_0x21bbf7(0x275)][_0x21bbf7(0x236)](_0x1346bc,Number(_0xabe503),_0x5e334c);_0x16e532&&_0x16e532 instanceof a[_0x21bbf7(0x2cc)]&&this['_setupSubUnitSync'](_0x16e532);}async[_0x51cf5f(0x211)](_0x519cde){const _0x57351a=_0x51cf5f;await this[_0x57351a(0x279)](_0x519cde),_0x519cde[_0x57351a(0x12f)]['pipe'](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](_0x1313a4=>{_0x1313a4&&this['_updateURLWithCurrentState'](_0x1313a4);}),this[_0x57351a(0x1aa)][_0x57351a(0x25e)][_0x57351a(0x3a7)](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](()=>this[_0x57351a(0x279)](_0x519cde));}[_0x51cf5f(0x344)](_0x1b02ed,_0x21cf13=!0x1){const _0x2eba21=_0x51cf5f,_0x34eb94=this[_0x2eba21(0x1aa)]['getParam'](_0x2eba21(0x1c7));_0x1b02ed['getSheetId']()!==_0x34eb94&&this[_0x2eba21(0x1aa)][_0x2eba21(0x141)]('subunit',_0x1b02ed[_0x2eba21(0x399)](),_0x21cf13);}async[_0x51cf5f(0x279)](_0x2355ee){const _0x2062ae=_0x51cf5f;var _0x4fee57;const _0x128a85=this[_0x2062ae(0x1aa)]['getParam'](_0x2062ae(0x1c7));if(!_0x128a85||!_0x2355ee[_0x2062ae(0x2ec)](_0x128a85)){const _0x2cc81e=_0x2355ee['getUnhiddenWorksheets']()[0x0],_0x5d92d8=_0x2355ee[_0x2062ae(0x2ec)](_0x2cc81e);if(!_0x5d92d8)return;this[_0x2062ae(0x344)](_0x5d92d8,!0x0),await this[_0x2062ae(0x362)][_0x2062ae(0x170)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x2cc81e});return;}((_0x4fee57=_0x2355ee['getActiveSheet']())==null?void 0x0:_0x4fee57[_0x2062ae(0x399)]())!==_0x128a85&&await this['_commandService'][_0x2062ae(0x170)](g[_0x2062ae(0x319)]['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x128a85});}},exports[_0x51cf5f(0x363)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x51cf5f(0x36e)]),H(0x3,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x2c4)])),H(0x4,a[_0x51cf5f(0x2e4)](Ke['IRemoteInstanceService']))],exports[_0x51cf5f(0x363)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x274193,_0x1a8102,_0x425233,_0x38f088)=>{const _0x2b3de3=_0x51cf5f;for(var _0x33b0e5=_0x38f088>0x1?void 0x0:_0x38f088?Bt(_0x1a8102,_0x425233):_0x1a8102,_0x12b2e3=_0x274193[_0x2b3de3(0x296)]-0x1,_0x383b4e;_0x12b2e3>=0x0;_0x12b2e3--)(_0x383b4e=_0x274193[_0x12b2e3])&&(_0x33b0e5=_0x383b4e(_0x33b0e5)||_0x33b0e5);return _0x33b0e5;},ce=(_0x531d29,_0x50f2dc)=>(_0x5cd163,_0x1cbd7d)=>_0x50f2dc(_0x5cd163,_0x1cbd7d,_0x531d29);let z=class{constructor(_0x10a184,_0x2fa638,_0x46c52e){const _0x54acb2=_0x51cf5f;this[_0x54acb2(0x382)]=_0x10a184,this[_0x54acb2(0x1a4)]=_0x2fa638,this[_0x54acb2(0x152)]=_0x46c52e;}[_0x51cf5f(0x136)](_0xf8cd9e){const _0x30dcdf=_0x51cf5f;this[_0x30dcdf(0x2b2)](_0xf8cd9e),this['_transformPreviousActiveRange'](_0xf8cd9e);}['transformRemoteChangeset'](_0x4d20ef){const _0x1ab388=_0x51cf5f,{unitID:_0x19c757}=_0x4d20ef,_0x2cf20f=this['_renderManagerService'][_0x1ab388(0x1bd)](_0x19c757)[_0x1ab388(0x1f2)](b[_0x1ab388(0x2db)]),{redoCache:_0x30d4d5}=_0x2cf20f[_0x1ab388(0x230)]();if(_0x30d4d5[_0x1ab388(0x296)]===0x0)return _0x4d20ef;let _0x21a92f=a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef[_0x1ab388(0x297)][0x0]);for(let _0x11dcdd=0x0;_0x11dcdd<_0x30d4d5[_0x1ab388(0x296)];_0x11dcdd++){const _0x5783fa={'id':_0x1ab388(0x292),'params':{..._0x30d4d5[_0x11dcdd]}},_0x1fb6ee=this[_0x1ab388(0x1a4)][_0x1ab388(0x148)](_0x21a92f,_0x5783fa,!0x1);if(m['isTransformMutationFailure'](_0x1fb6ee))throw _0x1fb6ee[_0x1ab388(0x2d9)];_0x21a92f=_0x1fb6ee[_0x1ab388(0x33a)];}return{...a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef),'mutations':[_0x21a92f]};}[_0x51cf5f(0x2b2)](_0x653b72){const _0x1fc9f0=_0x51cf5f,{unitID:_0x54dba3}=_0x653b72,_0x245ff8=this[_0x1fc9f0(0x152)][_0x1fc9f0(0x1bd)](_0x54dba3)[_0x1fc9f0(0x1f2)](b[_0x1fc9f0(0x2db)]),{undoCache:_0x3a856d,redoCache:_0x2e02e1}=_0x245ff8[_0x1fc9f0(0x230)]();if(_0x3a856d[_0x1fc9f0(0x296)]===0x0||_0x2e02e1[_0x1fc9f0(0x296)]===0x0)return;const _0x354251=[],_0x14de46=[];let _0xae34c0=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72[_0x1fc9f0(0x297)][0x0]),_0x34d313=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72['mutations'][0x0]);for(let _0x29ceba=_0x3a856d[_0x1fc9f0(0x296)]-0x1;_0x29ceba>=0x0;_0x29ceba--){const _0x22b3b4={'id':_0x1fc9f0(0x292),'params':{..._0x3a856d[_0x29ceba]}},_0xaecc1a={'id':_0x1fc9f0(0x292),'params':{..._0x2e02e1[_0x29ceba]}},_0x2d3b64=this[_0x1fc9f0(0x1a4)][_0x1fc9f0(0x148)](_0xae34c0,_0x22b3b4,!0x1),_0x3e9216=this[_0x1fc9f0(0x1a4)]['transformMutation'](_0x34d313,_0xaecc1a,!0x1);if(m[_0x1fc9f0(0x201)](_0x2d3b64))throw _0x2d3b64[_0x1fc9f0(0x2d9)];if(m[_0x1fc9f0(0x201)](_0x3e9216))throw _0x3e9216['error'];_0x354251[_0x1fc9f0(0x1de)](_0x2d3b64[_0x1fc9f0(0x3af)]['params']),_0x14de46[_0x1fc9f0(0x1de)](_0x3e9216[_0x1fc9f0(0x3af)][_0x1fc9f0(0x3b5)]),_0xae34c0=_0x2d3b64['m1Prime'],_0x34d313=_0x3e9216[_0x1fc9f0(0x33a)];}_0x245ff8[_0x1fc9f0(0x3b7)]({'undoCache':_0x354251,'redoCache':_0x14de46});}[_0x51cf5f(0x218)](_0xeece57){const _0x1739ae=_0x51cf5f,{unitID:_0x57a29b}=_0xeece57,_0x5c27f7=this[_0x1739ae(0x152)][_0x1739ae(0x1bd)](_0x57a29b)['with'](b['DocIMEInputManagerService']),_0x424e1a=_0x5c27f7[_0x1739ae(0x18d)]();if(_0x424e1a==null)return;const _0x3889db=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xeece57[_0x1739ae(0x1f4)],'actions':null,'textRanges':[_0x424e1a]}}],_0x2970cc=this['_transformService'][_0x1739ae(0x169)](_0xeece57,_0x3889db);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2970cc))throw _0x2970cc[_0x1739ae(0x2d9)];const _0xd3f1b0=_0x2970cc[_0x1739ae(0x3af)][0x0]['params'][_0x1739ae(0x225)];Array[_0x1739ae(0x273)](_0xd3f1b0)&&_0xd3f1b0['length']&&_0x5c27f7[_0x1739ae(0x295)](_0xd3f1b0[0x0]);}};z=kt([ce(0x0,a[_0x51cf5f(0x249)](a['Injector'])),ce(0x1,m[_0x51cf5f(0x339)]),ce(0x2,p[_0x51cf5f(0x18a)])],z);var Ht=Object[_0x51cf5f(0x377)],Ft=(_0x4cf21f,_0x4a490b,_0x4d9c82,_0x3545a3)=>{const _0x11d148=_0x51cf5f;for(var _0x12c82c=_0x3545a3>0x1?void 0x0:_0x3545a3?Ht(_0x4a490b,_0x4d9c82):_0x4a490b,_0x38ab76=_0x4cf21f[_0x11d148(0x296)]-0x1,_0xb8d997;_0x38ab76>=0x0;_0x38ab76--)(_0xb8d997=_0x4cf21f[_0x38ab76])&&(_0x12c82c=_0xb8d997(_0x12c82c)||_0x12c82c);return _0x12c82c;},le=(_0x4942c8,_0x10035c)=>(_0x4748b8,_0x245c2f)=>_0x10035c(_0x4748b8,_0x245c2f,_0x4942c8);let J=class{constructor(_0x175d44,_0x1399cd,_0x2a71f6){const _0x3d3ead=_0x51cf5f;this[_0x3d3ead(0x382)]=_0x175d44,this['_transformService']=_0x1399cd,this['_docStateChangeManagerService']=_0x2a71f6;}['transformStateCache'](_0x230137){const _0x593967=_0x51cf5f;this[_0x593967(0x1df)](_0x230137);}['transformRemoteChangeset'](_0xf0e5e0){const _0x2c39b2=_0x51cf5f,{unitID:_0x44e8c2}=_0xf0e5e0,{collaboration:_0x195c81}=this[_0x2c39b2(0x2e0)]['getStateCache'](_0x44e8c2);if(_0x195c81['length']===0x0)return _0xf0e5e0;let _0x561acf=a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0[_0x2c39b2(0x297)][0x0]);for(let _0x36d5ee=0x0;_0x36d5ee<_0x195c81[_0x2c39b2(0x296)];_0x36d5ee++){const _0x349646={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x195c81[_0x36d5ee]['unitId'],..._0x195c81[_0x36d5ee][_0x2c39b2(0x18f)]}},_0x3c3085=this['_transformService'][_0x2c39b2(0x148)](_0x561acf,_0x349646,!0x1);if(m['isTransformMutationFailure'](_0x3c3085))throw _0x3c3085['error'];_0x561acf=_0x3c3085[_0x2c39b2(0x33a)];}return{...a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0),'mutations':[_0x561acf]};}[_0x51cf5f(0x1df)](_0x44851f){const _0x16cd79=_0x51cf5f,{unitID:_0x355b1e}=_0x44851f,{history:_0x105e06,collaboration:_0xcf963e}=this[_0x16cd79(0x2e0)][_0x16cd79(0x1ee)](_0x355b1e);if(_0x105e06[_0x16cd79(0x296)]===0x0&&_0xcf963e[_0x16cd79(0x296)]===0x0)return;const _0x3e7f23=[],_0x5c5e56=[];let _0x5aea9d=a['Tools']['deepClone'](_0x44851f[_0x16cd79(0x297)][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x5d0fa6=_0x105e06[_0x16cd79(0x296)]-0x1;_0x5d0fa6>=0x0;_0x5d0fa6--){const _0x23316b={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x22a)]}},_0x49d9cf={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x18f)]}},_0x1cd216=this[_0x16cd79(0x1a4)]['transformMutation'](_0x5aea9d,_0x23316b,!0x1),_0x1e6c44=this['_transformService']['transformMutation'](_0x5b1536,_0x49d9cf,!0x1);if(m[_0x16cd79(0x201)](_0x1cd216))throw _0x1cd216['error'];if(m[_0x16cd79(0x201)](_0x1e6c44))throw _0x1e6c44[_0x16cd79(0x2d9)];_0x3e7f23['unshift']({..._0x105e06[_0x5d0fa6],'undoState':_0x1cd216['m2Prime'][_0x16cd79(0x3b5)],'redoState':_0x1e6c44[_0x16cd79(0x3af)][_0x16cd79(0x3b5)]}),_0x5aea9d=_0x1cd216[_0x16cd79(0x33a)],_0x5b1536=_0x1e6c44['m1Prime'];}_0x5aea9d=a[_0x16cd79(0x311)]['deepClone'](_0x44851f['mutations'][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x208d96=_0xcf963e[_0x16cd79(0x296)]-0x1;_0x208d96>=0x0;_0x208d96--){const _0x11b2e2={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x22a)]}},_0x4e5a28={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x18f)]}},_0xd887d3=this['_transformService'][_0x16cd79(0x148)](_0x5aea9d,_0x11b2e2,!0x1),_0x286a87=this['_transformService']['transformMutation'](_0x5b1536,_0x4e5a28,!0x1);if(m[_0x16cd79(0x201)](_0xd887d3))throw _0xd887d3[_0x16cd79(0x2d9)];if(m['isTransformMutationFailure'](_0x286a87))throw _0x286a87[_0x16cd79(0x2d9)];_0x5c5e56['unshift']({..._0xcf963e[_0x208d96],'undoState':_0xd887d3[_0x16cd79(0x3af)][_0x16cd79(0x3b5)],'redoState':_0x286a87['m2Prime'][_0x16cd79(0x3b5)]}),_0x5aea9d=_0xd887d3[_0x16cd79(0x33a)],_0x5b1536=_0x286a87[_0x16cd79(0x33a)];}this[_0x16cd79(0x2e0)]['setStateCache'](_0x355b1e,{'history':_0x3e7f23,'collaboration':_0x5c5e56});}};J=Ft([le(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),le(0x1,m[_0x51cf5f(0x339)]),le(0x2,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)]))],J);var Yt=Object[_0x51cf5f(0x377)],Wt=(_0x53b47d,_0x400779,_0x4472a9,_0x108f07)=>{const _0x393d95=_0x51cf5f;for(var _0x3d2738=_0x108f07>0x1?void 0x0:_0x108f07?Yt(_0x400779,_0x4472a9):_0x400779,_0x2c97dd=_0x53b47d[_0x393d95(0x296)]-0x1,_0x5c3200;_0x2c97dd>=0x0;_0x2c97dd--)(_0x5c3200=_0x53b47d[_0x2c97dd])&&(_0x3d2738=_0x5c3200(_0x3d2738)||_0x3d2738);return _0x3d2738;},Ne=(_0x22c0de,_0x534d12)=>(_0x2a5aa2,_0xa7b4c5)=>_0x534d12(_0x2a5aa2,_0xa7b4c5,_0x22c0de);let Z=class{constructor(_0x44e5d3,_0x28dd30){const _0x2cf251=_0x51cf5f;this[_0x2cf251(0x382)]=_0x44e5d3,this[_0x2cf251(0x1a4)]=_0x28dd30;}[_0x51cf5f(0x153)](_0x1feea5){const _0x8bd2fd=_0x51cf5f;var _0xa5600a;const _0x4a7249=this['_injector']['get'](Y[_0x8bd2fd(0x398)]),_0x5557c3=(_0xa5600a=_0x4a7249[_0x8bd2fd(0x1e8)]())!=null?_0xa5600a:[];if(_0x5557c3[_0x8bd2fd(0x296)]===0x0)return;const _0x82df78=_0x1feea5['unitID'],_0x54fe4e=[{'id':_0x8bd2fd(0x292),'params':{'unitId':_0x82df78,'actions':null,'textRanges':_0x5557c3}}],_0x5599b1=this[_0x8bd2fd(0x1a4)][_0x8bd2fd(0x169)](_0x1feea5,_0x54fe4e);if(!m[_0x8bd2fd(0x337)](_0x5599b1))throw _0x5599b1['error'];const _0x553464=_0x5599b1[_0x8bd2fd(0x3af)][0x0][_0x8bd2fd(0x3b5)][_0x8bd2fd(0x225)];Array[_0x8bd2fd(0x273)](_0x553464)&&_0x553464[_0x8bd2fd(0x296)]&&_0x4a7249['replaceDocRanges'](_0x553464,{'unitId':_0x82df78,'subUnitId':_0x82df78},!0x1);}};Z=Wt([Ne(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0xbdc317,_0x24269d,_0x10c8bf,_0x21a855)=>{for(var _0x30d14a=_0x21a855>0x1?void 0x0:_0x21a855?Vt(_0x24269d,_0x10c8bf):_0x24269d,_0x39f72e=_0xbdc317['length']-0x1,_0xaf4323;_0x39f72e>=0x0;_0x39f72e--)(_0xaf4323=_0xbdc317[_0x39f72e])&&(_0x30d14a=_0xaf4323(_0x30d14a)||_0x30d14a);return _0x30d14a;},N=(_0x307820,_0x3c3312)=>(_0x4220f9,_0x3f7bb6)=>_0x3c3312(_0x4220f9,_0x3f7bb6,_0x307820);let Q=class extends a[_0x51cf5f(0x188)]{constructor(_0xf481c9,_0xaadec4,_0x4a8aaa,_0x584b6a,_0x1c95f8,_0x1b5d7e,_0x490475,_0x22a62c){const _0x1d6e25=_0x51cf5f;super(),h(this,'_status$',new d[(_0x1d6e25(0x365))](u[_0x1d6e25(0x198)][_0x1d6e25(0x1cf)])),(this[_0x1d6e25(0x2e0)]=_0xf481c9,this[_0x1d6e25(0x3b6)]=_0xaadec4,this[_0x1d6e25(0x15c)]=_0x4a8aaa,this[_0x1d6e25(0x131)]=_0x584b6a,this[_0x1d6e25(0x1c8)]=_0x1c95f8,this[_0x1d6e25(0x2c2)]=_0x1b5d7e,this[_0x1d6e25(0x1a8)]=_0x490475,this[_0x1d6e25(0x1e5)]=_0x22a62c,this[_0x1d6e25(0x17b)]());}['_initEntityListener'](){const _0x164de9=_0x51cf5f;this[_0x164de9(0x1fa)](this[_0x164de9(0x3b6)][_0x164de9(0x183)][_0x164de9(0x254)](_0x1a0744=>{const _0x122ac0=_0x164de9,_0x3552fc=this[_0x122ac0(0x2e0)][_0x122ac0(0x174)][_0x122ac0(0x254)](_0x4236a6=>{const _0x2f9918=_0x122ac0;if(_0x4236a6==null)return;const {unitId:_0x1c956f,redoState:_0x4c0799,commandId:_0xa4d9a6}=_0x4236a6;if(_0x1c956f!==_0x1a0744[_0x2f9918(0x1f4)])return;const _0x2a9c5e={'id':_0xa4d9a6,'type':a[_0x2f9918(0x199)]['MUTATION'],'params':{'unitId':_0x1c956f,'actions':_0x4c0799[_0x2f9918(0x324)],'textRanges':null}};_0x1a0744[_0x2f9918(0x34f)](_0x2a9c5e);});if(_0x1a0744[_0x122ac0(0x1fa)](_0x3552fc),_0x1a0744 instanceof u[_0x122ac0(0x219)]){const _0xccae07={'onTransformIME':_0x35b660=>this[_0x122ac0(0x15c)]['transformIMECache'](_0x35b660),'onTransformState':_0x13c2bc=>this[_0x122ac0(0x131)][_0x122ac0(0x2a1)](_0x13c2bc),'onTransformSelections':_0xa4c6fe=>this[_0x122ac0(0x1c8)]['transformSelections'](_0xa4c6fe),'onSyncEditingCollabCursor':_0x45bf98=>this[_0x122ac0(0x2c2)][_0x122ac0(0x245)](_0x45bf98),'onTransformRemoteChangesetByIMECache':_0x4829fe=>this[_0x122ac0(0x15c)][_0x122ac0(0x17e)](_0x4829fe),'onTransformRemoteChangesetByStateCache':_0x29b833=>this['_docTransformStateCacheService'][_0x122ac0(0x17e)](_0x29b833)};_0x1a0744[_0x122ac0(0x2da)](_0xccae07);}}));}};Q=Xt([N(0x0,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)])),N(0x1,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x162)])),N(0x2,a[_0x51cf5f(0x249)](z)),N(0x3,a[_0x51cf5f(0x249)](J)),N(0x4,a[_0x51cf5f(0x249)](Z)),N(0x5,a[_0x51cf5f(0x249)](Ce)),N(0x6,T['IMessageService']),N(0x7,a['Inject'](a[_0x51cf5f(0x306)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x5b6e62,_0x3651c1,_0x3c611e,_0x397a5b)=>{const _0x2980d8=_0x51cf5f;for(var _0x1038d5=_0x397a5b>0x1?void 0x0:_0x397a5b?Gt(_0x3651c1,_0x3c611e):_0x3651c1,_0x10af21=_0x5b6e62[_0x2980d8(0x296)]-0x1,_0x2c7dce;_0x10af21>=0x0;_0x10af21--)(_0x2c7dce=_0x5b6e62[_0x10af21])&&(_0x1038d5=_0x2c7dce(_0x1038d5)||_0x1038d5);return _0x1038d5;},_e=(_0x2900c6,_0x19991e)=>(_0x574079,_0x2307aa)=>_0x19991e(_0x574079,_0x2307aa,_0x2900c6);let ge=class extends a[_0x51cf5f(0x188)]{constructor(_0x26d355,_0x51d2f7,_0x79c7bb){const _0x993b81=_0x51cf5f;super(),h(this,_0x993b81(0x130),new Map()),h(this,_0x993b81(0x2d6),new Map()),h(this,_0x993b81(0x385),!0x1),(this['_configService']=_0x26d355,this[_0x993b81(0x15f)]=_0x51d2f7,this[_0x993b81(0x372)]=_0x79c7bb);}[_0x51cf5f(0x302)](){this['_disabled']=!0x0;}[_0x51cf5f(0x158)](){const _0x1554d0=_0x51cf5f;this[_0x1554d0(0x385)]=!0x1;}get[_0x51cf5f(0x15d)](){const _0x1a878e=_0x51cf5f;return this[_0x1a878e(0x2d6)];}[_0x51cf5f(0x277)](){const _0x4404b7=_0x51cf5f;this[_0x4404b7(0x25c)]()[_0x4404b7(0x2b1)](()=>super[_0x4404b7(0x277)]());}async[_0x51cf5f(0x2c0)](_0x9f2725){const _0x2f46b1=_0x51cf5f;return this[_0x2f46b1(0x385)]?null:this[_0x2f46b1(0x15f)][_0x2f46b1(0x255)](u['getLocalCacheKey'](_0x9f2725));}async[_0x51cf5f(0x17a)](_0x2d9b59,_0x5ed866){const _0x31878b=_0x51cf5f;return!!this[_0x31878b(0x15f)][_0x31878b(0x1d7)](_0x2d9b59,_0x5ed866);}[_0x51cf5f(0x289)](_0x4ad92e,_0x5deed4,_0x577d67,_0x46155c){const _0x54f39a=_0x51cf5f,_0xcf8af1=this[_0x54f39a(0x372)][_0x54f39a(0x351)](_0x4ad92e);this[_0x54f39a(0x130)][_0x54f39a(0x2e8)](_0x4ad92e,{'unitID':_0x4ad92e,'type':_0x5deed4,'awaitingChangeset':_0x577d67,'mutations':_0x46155c,'rev':_0xcf8af1}),this[_0x54f39a(0x2d6)]['has'](_0x4ad92e)||this[_0x54f39a(0x26e)](_0x4ad92e);}[_0x51cf5f(0x26e)](_0x875c86){const _0x2af2c5=_0x51cf5f,_0x46f274=this[_0x2af2c5(0x264)]();_0x46f274===0x0?this['_saveCache'](_0x875c86):this[_0x2af2c5(0x2d6)][_0x2af2c5(0x2e8)](_0x875c86,setTimeout(()=>this[_0x2af2c5(0x35b)](_0x875c86),_0x46f274));}[_0x51cf5f(0x264)](){const _0x4c0eb5=_0x51cf5f;var _0x38867b;return(_0x38867b=this[_0x4c0eb5(0x178)][_0x4c0eb5(0x2aa)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x38867b:u[_0x4c0eb5(0x20f)];}[_0x51cf5f(0x35b)](_0x50b774){const _0x140850=_0x51cf5f,_0x2a6e6d=this[_0x140850(0x2d6)][_0x140850(0x214)](_0x50b774);return _0x2a6e6d!==void 0x0&&window[_0x140850(0x259)](_0x2a6e6d),this[_0x140850(0x15f)][_0x140850(0x1d7)](u[_0x140850(0x1b1)](_0x50b774),this[_0x140850(0x130)][_0x140850(0x214)](_0x50b774))[_0x140850(0x2b1)](()=>this[_0x140850(0x2d6)][_0x140850(0x1cb)](_0x50b774));}async[_0x51cf5f(0x25c)](){const _0x101c8d=_0x51cf5f,_0x21312a=[];this[_0x101c8d(0x2d6)][_0x101c8d(0x2ba)]((_0x48a2d6,_0x9801bf)=>{const _0x357eae=_0x101c8d;window[_0x357eae(0x259)](_0x48a2d6),_0x21312a['push'](this['_saveCache'](_0x9801bf)['then'](()=>{const _0x5dfd97=_0x357eae;this[_0x5dfd97(0x2d6)]['delete'](_0x9801bf);}));}),await Promise[_0x101c8d(0x19b)](_0x21312a);}};ge=Kt([_e(0x0,a[_0x51cf5f(0x293)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x51cf5f(0x284)]))],ge);function _0x406e(_0x221920,_0x3f57bd){const _0x65eb63=_0x65eb();return _0x406e=function(_0x406e5f,_0x2eb395){_0x406e5f=_0x406e5f-0x12b;let _0x83b5b3=_0x65eb63[_0x406e5f];return _0x83b5b3;},_0x406e(_0x221920,_0x3f57bd);}class je extends a[_0x51cf5f(0x298)]{constructor(){const _0x36b5a6=_0x51cf5f;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x36b5a6(0x29e)](window,_0x36b5a6(0x360))['pipe'](d['takeUntil'](this[_0x36b5a6(0x28a)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}['setParam'](_0x1c607f,_0x4336ac,_0x337b7c=!0x1){const _0x2532c6=_0x51cf5f,_0x4521d9=new URL(window['location'][_0x2532c6(0x1e4)]);_0x4521d9[_0x2532c6(0x3a5)][_0x2532c6(0x2e8)](_0x1c607f,_0x4336ac),_0x337b7c?window[_0x2532c6(0x19a)][_0x2532c6(0x227)]('','',_0x4521d9[_0x2532c6(0x2f3)]()):window[_0x2532c6(0x19a)][_0x2532c6(0x1c3)]('','',_0x4521d9['toString']());}[_0x51cf5f(0x22f)](_0x41af90,_0x4207c3=!0x1){const _0x2a2485=_0x51cf5f,_0x4ba64b=new URL(window[_0x2a2485(0x396)][_0x2a2485(0x1e4)]);_0x4ba64b[_0x2a2485(0x3a5)][_0x2a2485(0x1cb)](_0x41af90),_0x4207c3?window[_0x2a2485(0x19a)][_0x2a2485(0x227)]('','',_0x4ba64b[_0x2a2485(0x2f3)]()):window[_0x2a2485(0x19a)][_0x2a2485(0x1c3)]('','',_0x4ba64b[_0x2a2485(0x2f3)]());}['getParam'](_0x2ab996){const _0x5dca9b=_0x51cf5f;var _0x29e4b5;return(_0x29e4b5=new URL(window[_0x5dca9b(0x396)][_0x5dca9b(0x1e4)])[_0x5dca9b(0x3a5)][_0x5dca9b(0x214)](_0x2ab996))!=null?_0x29e4b5:void 0x0;}}var qt=Object[_0x51cf5f(0x348)],zt=Object[_0x51cf5f(0x377)],Jt=(_0x4e0cfa,_0xbbc363,_0x346b8d)=>_0xbbc363 in _0x4e0cfa?qt(_0x4e0cfa,_0xbbc363,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x346b8d}):_0x4e0cfa[_0xbbc363]=_0x346b8d,Zt=(_0xd07a1a,_0x39c204,_0x5037c5,_0x199d60)=>{const _0x358147=_0x51cf5f;for(var _0x1f8f2b=_0x199d60>0x1?void 0x0:_0x199d60?zt(_0x39c204,_0x5037c5):_0x39c204,_0x45022b=_0xd07a1a[_0x358147(0x296)]-0x1,_0x2b964e;_0x45022b>=0x0;_0x45022b--)(_0x2b964e=_0xd07a1a[_0x45022b])&&(_0x1f8f2b=_0x2b964e(_0x1f8f2b)||_0x1f8f2b);return _0x1f8f2b;},he=(_0x4bc2cd,_0x2944e1)=>(_0x439054,_0x381bee)=>_0x2944e1(_0x439054,_0x381bee,_0x4bc2cd),Qt=(_0x3fe019,_0x58b63c,_0xdf855d)=>Jt(_0x3fe019,_0x58b63c+'',_0xdf855d);const es=_0x51cf5f(0x380);exports[_0x51cf5f(0x3ab)]=class extends a[_0x51cf5f(0x342)]{constructor(_0x5d8cd5=Ue,_0x3bb1cd,_0x15493c,_0x2bff52){const _0x520eca=_0x51cf5f;super(),this[_0x520eca(0x31b)]=_0x5d8cd5,this[_0x520eca(0x152)]=_0x3bb1cd,this[_0x520eca(0x382)]=_0x15493c,this[_0x520eca(0x178)]=_0x2bff52;const {..._0x4c8988}=a[_0x520eca(0x2fc)]({},Ue,this['_config']);this[_0x520eca(0x178)][_0x520eca(0x368)]($t,_0x4c8988);}[_0x51cf5f(0x140)](){const _0x443ada=_0x51cf5f;this[_0x443ada(0x3b4)](),this[_0x443ada(0x31d)]();}[_0x51cf5f(0x383)](){const _0x12c672=_0x51cf5f;this[_0x12c672(0x29b)]();}[_0x51cf5f(0x3b4)](){const _0x213265=_0x51cf5f;var _0x5b09d6;const _0x147389=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x213265(0x25d)],{'useClass':G['WebSocketService']}],[u[_0x213265(0x278)],{'useClass':ge}],[exports[_0x213265(0x1ba)]],[Q],[q],[x],[de],[exports[_0x213265(0x363)]]];a['registerDependencies'](this['_injector'],a['mergeOverrideWithDependencies'](_0x147389,(_0x5b09d6=this['_config'])==null?void 0x0:_0x5b09d6[_0x213265(0x352)]));}[_0x51cf5f(0x29b)](){const _0x17e949=_0x51cf5f;this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a[_0x17e949(0x304)][_0x17e949(0x288)],[Ie])),this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a['UniverInstanceType'][_0x17e949(0x2fd)],[ve]));}[_0x51cf5f(0x31d)](){const _0x1fb496=_0x51cf5f;a['touchDependencies'](this['_injector'],[[x],[exports[_0x1fb496(0x1ba)]],[Q],[q],[exports[_0x1fb496(0x363)]]]);}},Qt(exports[_0x51cf5f(0x3ab)],_0x51cf5f(0x347),es),exports[_0x51cf5f(0x3ab)]=Zt([a[_0x51cf5f(0x25b)](u[_0x51cf5f(0x37a)]),he(0x1,p[_0x51cf5f(0x18a)]),he(0x2,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),he(0x3,a[_0x51cf5f(0x293)])],exports[_0x51cf5f(0x3ab)]);var ts=Object[_0x51cf5f(0x377)],ss=(_0x1f09c2,_0x283bd3,_0x3fdab8,_0x3cf6e0)=>{const _0x25890d=_0x51cf5f;for(var _0x17cdbe=_0x3cf6e0>0x1?void 0x0:_0x3cf6e0?ts(_0x283bd3,_0x3fdab8):_0x283bd3,_0x118236=_0x1f09c2[_0x25890d(0x296)]-0x1,_0x22eaab;_0x118236>=0x0;_0x118236--)(_0x22eaab=_0x1f09c2[_0x118236])&&(_0x17cdbe=_0x22eaab(_0x17cdbe)||_0x17cdbe);return _0x17cdbe;},F=(_0x118eff,_0x421fb4)=>(_0x4cbb99,_0x4666a6)=>_0x421fb4(_0x4cbb99,_0x4666a6,_0x118eff);exports[_0x51cf5f(0x37c)]=class extends u[_0x51cf5f(0x371)]{constructor(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c){super(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c);}async[_0x51cf5f(0x39c)](_0x331e58){const _0x2ae202=_0x51cf5f,_0x339389=await this['_getSessionTicket'](),_0x4218af=this[_0x2ae202(0x24a)](_0x331e58,_0x339389);return this['_doCreateSocket'](_0x4218af);}['_createSocketURL'](_0x228f82,_0xdc83c8){const _0x1308dc=_0x51cf5f,_0x29f161=typeof window>'u'?new URL(_0x228f82):new URL(_0x228f82,window[_0x1308dc(0x396)]['origin']);_0x29f161[_0x1308dc(0x3a5)][_0x1308dc(0x2e8)](_0x1308dc(0x22d),_0xdc83c8);const _0x35492f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1308dc(0x285)]);return _0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))&&_0x29f161[_0x1308dc(0x3a5)]['set'](_0x1308dc(0x20b),_0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))),_0x29f161['toString']();}async[_0x51cf5f(0x367)](){const _0x534bc9=_0x51cf5f;var _0x36e699,_0x5cbba8,_0x1abed6;const _0x10dd2e=this['_configService'][_0x534bc9(0x2aa)](u[_0x534bc9(0x1ff)]),_0x11ce10=(_0x36e699=_0x10dd2e==null?void 0x0:_0x10dd2e[_0x534bc9(0x203)])!=null?_0x36e699:u[_0x534bc9(0x1f7)];return(_0x1abed6=(_0x5cbba8=(await this[_0x534bc9(0x2cd)][_0x534bc9(0x214)](_0x11ce10,{'headers':{'Content-Type':'application/json'}}))[_0x534bc9(0x226)])==null?void 0x0:_0x5cbba8[_0x534bc9(0x26d)])!=null?_0x1abed6:'';}},exports[_0x51cf5f(0x37c)]=ss([F(0x0,a['Inject'](a[_0x51cf5f(0x2be)])),F(0x1,a[_0x51cf5f(0x249)](G[_0x51cf5f(0x20a)])),F(0x2,a['IConfigService']),F(0x3,a[_0x51cf5f(0x1b5)]),F(0x4,m[_0x51cf5f(0x16f)])],exports[_0x51cf5f(0x37c)]);const Me=0x7530,Le=_0x51cf5f(0x376);function _0x65eb(){const _0x44a4ce=['sessionTicket','init','removeParam','getUndoRedoMutationParamsCache','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/ui','startRow','status$','ENSURE_SNAPSHOT_EXECUTION','loadUnit','getCurrentSelections','debounceTime','defs','@univerjs/engine-render','onMouseMove','getSkeleton','SessionStatus','6549462UlDfvX','createIdentifier','_selfUnitIDs','RemoteUniscriptService','currentTheme$','off-line-icon','CONFLICT','syncEditingCollabCursor','debounce','_syncEditingCollabCursorService','collabStatus.notCollab','Inject','_createSocketURL','YUUMI_UNABLE_LOAD_URL','getMergeData','skeleton','@univerjs/core','apply','handleInsertRangeMoveDown','xlink:href','fillText','eventID','subscribe','getItem','sheetId','beginPath','_cursors','clearTimeout','_docSkeleton','DependentOn','exhaustSavingTask','ISocketService','urlChange$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','onTransformChange$','executionId','_collabCursorController','_uiPartsService','_getSaveTimeout','_labelPosition','_textBubble','MemberService','isActive','NO_OTHER_CLIENTS_EDITING','addClipboardHook','_toggleOnline','RichTextEditingMutation','ticket','_scheduleSaving','unsubscribe','session.will-retry','range','/run/','isArray','SetTextSelectionsOperation','_dataLoaderService','OTHER_CLIENT_EDITING','dispose','ILocalCacheService','_updateSubUnitFromURLParams','extend','InsertRowCommandId','PENDING','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','getUnitStatus$','collabStatus.synced','_drawRectRange','getMember','APPLY_REJECT','RevisionService','search','jiqing.500','ranges','UNIVER_DOC','updateOfflineData','dispose$','handleIRemoveRow','TEXT','_univerInstanceService','hasOwnProperty','drawWith','7108465qBnXOl','IBeforeCloseService','doc.mutation.rich-text-editing','IConfigService','memberID','setActiveRange','length','mutations','RxDisposable','_handleLeaveEvent','_hover','_registerRenderDependencies','FETCH_MISS','getTypeOfUnitDisposed$','fromEvent','tag','hide','transformStateCache','flatMap','INVITE_CODE_HAS_BEEN_UES','getCollabCursors$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','resize','_heartbeatTimer','JOIN_ROOM_FAILED','font','getConfig','useCallback','COMPLETION_FINISHED','DOC_RANGE_TYPE','permission.title','@univerjs/engine-formula','#FFF','then','_transformUndoRedoStack','url(#off-line-icon_clip0_910_343)','_handleHeartbeatEvent','stringify','_anchor','evenodd','YUUMI_URL_COL_OUT_OF_RANGE','univerjs-icon\x20univerjs-icon-','forEach','fillRule','_instanceService','isEditing','Injector','useObservable','loadOfflineData','getColorFromTheme','_docSyncEditingCollabCursorService','_unitOnClients','DataLoaderService','_color','PERMISSION_DENIED','currentColor','getCurrentUnitForType','getCoordByCell','Error','collabStatus.syncing','Workbook','_httpService','yellow.400','48rciBxH','session.connection-failed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_name','UniverIcon','url(#$1','46809aRMcDU','_saveTaskMap','current','YUUMI_NO_CUBOID_FOR_QUESTION','error','addHandlerCallback','DocIMEInputManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCurrent','handleMoveRange','LICENSE_IMPORT_SIZE_EXCEEDED','_docStateChangeManagerService','_roomMembers$','has','setAlpha','Optional','toStringTag','name','UNRECOGNIZED','set','invokeId','LICENSE_MAX_UNITS_EXCEEDED','data','getSheetBySheetId','UNDEFINED','LOGIN_FAILED','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','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Unknown\x20user','_shapes','toString','_init','univer-flex\x20univer-mr-2\x20univer-text-xl','deepClone','_initCommandExecutedListener','CollaborationStatusDisplay','startColumn','UnitStatus','Failed','merge','UNIVER_SHEET','requireSession','fill','handleDeleteRangeMoveLeft','use','disableLocalCache','className','UniverInstanceType','getUniverSheetInstance','LocaleService','map','string','_logService','toDisposable','createElement','AWAITING','getAncestorScale','_id','createInstance','_backgroundColor','Tools','_removeCollabCursors','1em','uni.network.url-service','WebURLService','getRangePointData','max','_context','SetWorksheetActivateCommand','_handleEvent','_config','_imageIoService','_initDependencies','unit','moveTo','react','focused$','_document','WECHAT_HAS_BEEN_BOUND','actions','call','push','getViewport','http://www.w3.org/2000/svg','getValue','UPDATE_CURSOR','attrs','subUnitId','throttleTime','on-line-icon_clip0_910_349','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','853580OCntKE','collabCursorState$','INotificationService','Tooltip','DocSkeletonManagerService','size','38604KmCgXd','isTransformMutationsWithChangesetSuccess','icon','ITransformService','m1Prime','getRelativeToViewportCoord','toRgbString','WebBrowserSingleActiveUnitService','RemoveRowCommandId','5048MlEKwv','getFocusedUnit','event$','Plugin','roomMembers','_updateURLWithCurrentState','collab-rect-range-','INVITE_CODE_REQUIRED','pluginName','defineProperty','bottom','collabStatus.fetchMiss','fillStyle','OTHER_CLIENTS_EDITING','_render','combineLatest','onLocalMutation','_refreshCollabCursors','getCurrentRevOfUnit','override','debug','sessionStatus$','some','show','_lastPointer','DocStateChangeManagerService','handleDeleteRangeMoveUp','_setupBeforeClosingHandler','_saveCache','collaboration.single-unit.warning','IMessageService','_initEvent','assignAColorForMemberID','popstate','TEXT_RANGE_LAYER_INDEX','_commandService','CollaborationDataLoaderController','RegularPolygon','BehaviorSubject','_hideTimer','_getSessionTicket','setConfig','defIds','text','OnLineIcon','indexOf','measureText','ICommandService','INTERNAL_ERROR','_onCursorDelete','CollaborationSocketService','_revisionService','SheetSkeletonManagerService','random','handleIRemoveCol','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertyDescriptor','Rect','UNAUTHENTICATED','UniverCollaborationClientPlugin','includes','BrowserCollaborationSocketService','function','Subject','_getScale','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collab-text-range-','_injector','onRendered','RefRangeService','_disabled','CollaborationSessionService','asObservable','COLORS','OffLineIcon','selection','_removeClearOtherTimer','cursorInfo','INVITE_CODE_ALREADY_BOUND','_cursorShapes','InsertRangeMoveRightCommandId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerBeforeClose','jsx','_drawAnchor','APPLY_REVISION_CONFILICT','unitId','location','@univerjs/docs-ui','DocSelectionManagerService','getSheetId','none','SheetsSelectionsService','createSocket','getParam','ThemeService','color','_scheduleHeartbeat','_getAnchorBounding','handleInsertRow','_refRangeService','setShapeProps','searchParams','IUIPartsService','pipe','OFFLINE','backgroundColor','getMemberID','UniverCollaborationClientUIPlugin','cursorInfo$','getCollabEntity$','@univerjs/sheets-ui','m2Prime','path','white','getOwnPropertySymbols','CollaborationUIEventService','_registerDependencies','params','_collaborationController','setUndoRedoMutationParamsCache','forwardRef','roomMembers$','_docClipboardService','collaboration.closeRoom','saveImage','_scene','activeSheet$','_cachedData','_docTransformStateCacheService','Vector2','hovered','clearInterval','DeleteRangeMoveLeftCommandId','transformIMECache','@univerjs/sheets','_hovered','USER_NOT_INVITED_CODE','_initResize','subscribeEvent','_handleHover','imageSourceType','_collabCursorState$','FromArray','onStarting','setParam','startsWith','restore','MOBILE_HAS_BEEN_BOUND','ONLINE','RECT','lineTo','transformMutation','distinctUntilChanged','save','_drawTextRange','svg','@univerjs/network','DeleteRangeMoveUpCommandId','getUnitId','useRef','MessageType','_renderManagerService','transformSelections','_ensureSubject','CHANGESET_REVISION_CONFILICT','runRefRangeMutations','substring','enableLocalCache','ALREADY_EXISTS','_notificationService','_initStatusComponent','_docTransformIMECacheService','saveTaskMap','CollaborationUIEventId','_localStorageService','prototype','HEADER_MENU','CollaborationController','IDocClipboardService','setInterval','...','@univerjs/rpc','findNodePositionByCharIndex','handleInsertCol','transformMutationsWithChangeset','ColorKit','CollaborationEvent','_draw','EffectRefRangId','code','ISnapshotServerService','executeCommand','getActiveSheet','_eventUnsubscribe','Rectangle','docStateChange$','NodePositionConvertToCursor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','round','_configService','_getSheetObject','saveOfflineData','_initEntityListener','_online','Module','transformRemoteChangeset','SetSelectionsOperation','_getMergeRange','assign','addObject','entityInit$','currentSkeleton$','IUniverInstanceService','url(#on-line-icon_clip0_910_349)','USERS_LEAVE','Disposable','Shape','IRenderManagerService','red.300','_memberService','getActiveRange','rgba(255,\x20255,\x20255,\x200.01)','redoState','SOCKET_FAILED_RETRY','_session','_collabSessionService','DisposableCollection','YUUMI_RATE_OVER_LIMIT','selections','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','setTimeout','CollaborationStatus','CommandType','history','all','next','YUUMI_SUBSCRIPTION_NOT_FOUND','disposeUnit','_anchorDot','triggerDblclick','closePath','getCellPositionByOffset','onCommandExecuted','_transformService','BuiltInUIPart','Warning','_sheetSkeletonManagerService','_messageService','onPointerEnter$','_urlService','blue.400','1106232CGxHrH','clipPath','type','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','getLocalCacheKey','_startSheetCollabCursor','1339569gAGyoy','green.600','ILogService','registerRefRange','[CollaborationDataLoaderController]','newValue','_initStatusListener','DesktopCollaborationStatusDisplayController','EMAIL_HAS_BEEN_BOUND','width','getRenderById','propertyIsEnumerable','INVALID_INVITE_CODE','_handleJoinEvent','registerRenderModule','_entityInit$','pushState','_scheduleClearOtherTimer','_colorIndex','YUUMI_ALL_TABLES_IS_INVALID','subunit','_docTransformSelectionsService','top','_entities','delete','source','NOT_FOUND','concat','NOT_COLLAB','filter','_beforeCloseService','_send','values','split','switchMap','displayName','setItem','MoveRangeCommandId','replace','_clearOtherTimers','_updateCollabCursors','YUUMI_AI_RUN_FAILED','storage','unshift','_transformHistoryAndStateStack','InsertColCommandId','getTypeOfUnitAdded$','add','endColumn','href','_localeService','APPLY_DUPLICATED','SOCKET_FAILED','getDocRanges','contains','_themeService','_startDocCollabCursor','_status$','_cursorInfo$','getStateCache','_docSkeletonManagerService','from','SNAPSHOT_INVALID_SNAPSHOT','with','getOffsetConfig','unitID','children','off-line-icon_clip0_910_343','DEFAULT_WS_SESSION_TICKET_URL','endRow','addObjects','disposeWithMe','on-line-icon','CONNECTOR_DATA_TOO_LARGE','row','rxjs/operators','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getColor','isTransformMutationFailure','arc','wsSessionTicketUrl','colorChannel1','div','black','_toggleOffline','InsertRangeMoveDownCommandId','_range','HTTPService','runId','idSuffix','takeUntil','_cursor','LOCAL_CACHE_INTERVAL','_onCursorUpdate','_setupSubUnitSync','TOO_MANY_REQUESTS','collaboration-client-ui.config','get','_colorAssignService','INVALID_ARGUMENT','min','_transformPreviousActiveRange','DocCollaborationEntity','post','_collaborationUIEventService','complete','SHEET_VIEWPORT_KEY','session.collaboration-timeout','makeDirty','send','unload','column','_assignedColors','VIEW_MAIN','textRanges','body','replaceState','_unitStatus','APPLY_NON_SEQUENTIAL_REVISION','undoState','height','generateRandomId'];_0x65eb=function(){return _0x44a4ce;};return _0x65eb();}class is extends a[_0x51cf5f(0x188)]{constructor(){const _0x18b3ee=_0x51cf5f;super(),h(this,_0x18b3ee(0x30e),a['generateRandomId']()),h(this,_0x18b3ee(0x240),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x18b3ee(0x2a7),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x18b3ee(0x2f4)]();}[_0x51cf5f(0x277)](){const _0x15802c=_0x51cf5f;super['dispose'](),this[_0x15802c(0x1da)][_0x15802c(0x2ba)]((_0x1ac13c,_0xb70df1)=>this[_0x15802c(0x38b)](_0xb70df1)),this[_0x15802c(0x2a7)]&&window['clearInterval'](this[_0x15802c(0x2a7)]);}[_0x51cf5f(0x27f)](_0x48d2ee){const _0x53de53=_0x51cf5f;return this[_0x53de53(0x154)](_0x48d2ee)[_0x53de53(0x3a7)](d[_0x53de53(0x149)]());}['editingUnit'](_0x45f6c9){const _0x391cbe=_0x51cf5f;this[_0x391cbe(0x240)][_0x391cbe(0x335)]===0x0&&this[_0x391cbe(0x3a0)](),this['_selfUnitIDs'][_0x391cbe(0x1e2)](_0x45f6c9),this[_0x391cbe(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x45f6c9],'isForwarded':!0x1});}[_0x51cf5f(0x19e)](_0xd2b7ef){const _0x4c6b89=_0x51cf5f;this['_selfUnitIDs'][_0x4c6b89(0x1cb)](_0xd2b7ef),this[_0x4c6b89(0x240)][_0x4c6b89(0x335)]===0x0&&this[_0x4c6b89(0x2a7)]&&window[_0x4c6b89(0x134)](this[_0x4c6b89(0x2a7)]);}[_0x51cf5f(0x2f4)](){const _0x2c7e57=_0x51cf5f;this[_0x2c7e57(0x1fa)](a['toDisposable'](d['fromEvent'](window,_0x2c7e57(0x1dd))[_0x2c7e57(0x254)](_0x4ee341=>{const _0x188140=_0x2c7e57;if(_0x4ee341['key']!==Le||!_0x4ee341['newValue'])return;const _0x5bbba2=JSON['parse'](_0x4ee341[_0x188140(0x1b8)]);this[_0x188140(0x31a)](_0x5bbba2);}))),window['addEventListener'](_0x2c7e57(0x221),()=>this[_0x2c7e57(0x1d2)]({'type':0x1,'memberID':this[_0x2c7e57(0x30e)],'unitIDs':Array[_0x2c7e57(0x1f0)](this['_selfUnitIDs'])}));}[_0x51cf5f(0x31a)](_0x5cb10f){const _0x53eee2=_0x51cf5f;switch(_0x5cb10f['type']){case 0x0:this[_0x53eee2(0x1c0)](_0x5cb10f);break;case 0x1:this['_handleLeaveEvent'](_0x5cb10f);break;case 0x2:this[_0x53eee2(0x2b4)](_0x5cb10f);break;}}[_0x51cf5f(0x1c0)](_0x2f18a7){const _0x5ab6d3=_0x51cf5f,{unitIDs:_0x461230,memberID:_0x4a83a1,isForwarded:_0x3d2341}=_0x2f18a7;_0x461230[_0x5ab6d3(0x2ba)](_0x4047db=>{const _0x19a7f8=_0x5ab6d3;if(!_0x3d2341&&this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)&&this[_0x19a7f8(0x154)](_0x4047db)[_0x19a7f8(0x19c)](u[_0x19a7f8(0x2fa)][_0x19a7f8(0x34c)]),!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)||!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x214)](_0x4047db)[_0x19a7f8(0x2e2)](_0x4a83a1)){const _0x51fe6e=this['_unitOnClients']['get'](_0x4047db)||new Set();_0x51fe6e[_0x19a7f8(0x1e2)](_0x4a83a1),this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e8)](_0x4047db,_0x51fe6e),this[_0x19a7f8(0x1c4)](_0x4a83a1);}}),_0x3d2341||this[_0x5ab6d3(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5ab6d3(0x240)]],'isForwarded':!0x0});}[_0x51cf5f(0x1c4)](_0x3d735c){const _0x18fa86=_0x51cf5f;this[_0x18fa86(0x38b)](_0x3d735c);const _0x343266=window[_0x18fa86(0x197)](()=>{const _0x5397af=_0x18fa86;this[_0x5397af(0x2c3)][_0x5397af(0x2ba)](_0x304bcf=>{const _0x68fac3=_0x5397af;_0x304bcf[_0x68fac3(0x1cb)](_0x3d735c);});},Me*0x2);this['_clearOtherTimers'][_0x18fa86(0x2e8)](_0x3d735c,_0x343266);}[_0x51cf5f(0x38b)](_0x5c369b){const _0x18978c=_0x51cf5f;if(this[_0x18978c(0x1da)][_0x18978c(0x2e2)](_0x5c369b)){const _0x38d323=this[_0x18978c(0x1da)]['get'](_0x5c369b);_0x38d323&&window[_0x18978c(0x259)](_0x38d323),this[_0x18978c(0x1da)][_0x18978c(0x2e8)](_0x5c369b,null);}}[_0x51cf5f(0x299)](_0x151fea){const _0x5023e5=_0x51cf5f,{memberID:_0x4d562a,unitIDs:_0x26928b}=_0x151fea;_0x26928b[_0x5023e5(0x2ba)](_0x255fda=>{const _0x3af136=_0x5023e5;var _0x198475;const _0x32a91a=this[_0x3af136(0x2c3)][_0x3af136(0x214)](_0x255fda);_0x32a91a&&(_0x32a91a[_0x3af136(0x1cb)](_0x4d562a),(_0x198475=this[_0x3af136(0x154)](_0x255fda))==null||_0x198475[_0x3af136(0x19c)](_0x32a91a['size']===0x0?u[_0x3af136(0x2fa)][_0x3af136(0x269)]:u[_0x3af136(0x2fa)][_0x3af136(0x34c)]));}),this[_0x5023e5(0x38b)](_0x4d562a);}[_0x51cf5f(0x2b4)](_0x33abd0){const _0xc43a89=_0x51cf5f;this['_scheduleClearOtherTimer'](_0x33abd0[_0xc43a89(0x294)]);}['_send'](_0x3be96e){const _0x102112=_0x51cf5f;localStorage[_0x102112(0x1d7)](Le,JSON[_0x102112(0x2b5)](_0x3be96e));}[_0x51cf5f(0x3a0)](){const _0x198ab0=_0x51cf5f;this[_0x198ab0(0x2a7)]=window[_0x198ab0(0x164)](()=>{const _0x2ce30e=_0x198ab0;this[_0x2ce30e(0x1d2)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x478062){const _0x4cb1a2=_0x51cf5f;return this['_unitStatus']['has'](_0x478062)||this[_0x4cb1a2(0x228)][_0x4cb1a2(0x2e8)](_0x478062,new d['BehaviorSubject'](u[_0x4cb1a2(0x2fa)][_0x4cb1a2(0x269)])),this[_0x4cb1a2(0x228)][_0x4cb1a2(0x214)](_0x478062);}}var Be=(_0x1f5a85=>(_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ed)]=0x0]=_0x51cf5f(0x2ed),_0x1f5a85[_0x1f5a85['OK']=0x1]='OK',_0x1f5a85[_0x1f5a85['INTERNAL_ERROR']=0x2]=_0x51cf5f(0x36f),_0x1f5a85[_0x1f5a85['PERMISSION_DENIED']=0x3]=_0x51cf5f(0x2c6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1cd)]=0x4]='NOT_FOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x379)]=0x5]=_0x51cf5f(0x379),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x159)]=0x6]=_0x51cf5f(0x159),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x216)]=0x7]=_0x51cf5f(0x216),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x212)]=0x8]=_0x51cf5f(0x212),_0x1f5a85[_0x1f5a85['COMPLETION_FINISHED']=0x9]=_0x51cf5f(0x2ac),_0x1f5a85[_0x1f5a85['LOGIN_FAILED']=0xa]=_0x51cf5f(0x2ee),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x155)]=0x1389]=_0x51cf5f(0x155),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1f1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x231)]=0x1772]=_0x51cf5f(0x231),_0x1f5a85[_0x1f5a85['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x51cf5f(0x235),_0x1f5a85[_0x1f5a85['APPLY_REJECT']=0x1b59]=_0x51cf5f(0x283),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x229)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x394)]=0x1b5b]=_0x51cf5f(0x394),_0x1f5a85[_0x1f5a85['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1e6)]=0x1b5d]=_0x51cf5f(0x1e6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1fc)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ea)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1f5a85[_0x1f5a85['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x51cf5f(0x2d1),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2df)]=0x232b]=_0x51cf5f(0x2df),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x27d)]=0x232c]=_0x51cf5f(0x27d),_0x1f5a85[_0x1f5a85['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x24b)]=0x2711]=_0x51cf5f(0x24b),_0x1f5a85[_0x1f5a85['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x51cf5f(0x2b8),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x194)]=0x2713]=_0x51cf5f(0x194),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x19d)]=0x2714]=_0x51cf5f(0x19d),_0x1f5a85[_0x1f5a85['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x51cf5f(0x2d8),_0x1f5a85[_0x1f5a85['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1f5a85[_0x1f5a85['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x51cf5f(0x176),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1c6)]=0x271d]=_0x51cf5f(0x1c6),_0x1f5a85[_0x1f5a85['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x51cf5f(0x32f),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1dc)]=0x271f]=_0x51cf5f(0x1dc),_0x1f5a85[_0x1f5a85['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2a3)]=0x2ee1]=_0x51cf5f(0x2a3),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bf)]=0x2ee2]=_0x51cf5f(0x1bf),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x346)]=0x2ee3]=_0x51cf5f(0x346),_0x1f5a85[_0x1f5a85['USER_NOT_INVITED_CODE']=0x2ee4]=_0x51cf5f(0x139),_0x1f5a85[_0x1f5a85['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x51cf5f(0x38d),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x323)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x144)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bb)]=0x32cb]=_0x51cf5f(0x1bb),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2e7)]=-0x1]=_0x51cf5f(0x2e7),_0x1f5a85))(Be||{}),ns=Object[_0x51cf5f(0x377)],rs=(_0xb0af4f,_0x11dd70,_0x5c315a,_0x52f3b8)=>{for(var _0x23af05=_0x52f3b8>0x1?void 0x0:_0x52f3b8?ns(_0x11dd70,_0x5c315a):_0x11dd70,_0x1a9b51=_0xb0af4f['length']-0x1,_0x2ce73e;_0x1a9b51>=0x0;_0x1a9b51--)(_0x2ce73e=_0xb0af4f[_0x1a9b51])&&(_0x23af05=_0x2ce73e(_0x23af05)||_0x23af05);return _0x23af05;},ue=(_0x5e37eb,_0x732b01)=>(_0x41e585,_0x10490f)=>_0x732b01(_0x41e585,_0x10490f,_0x5e37eb);exports['RemoteUniscriptService']=class extends a[_0x51cf5f(0x188)]{constructor(_0x5e22e9,_0x30c350,_0x2a71db){const _0x146c20=_0x51cf5f;super(),this[_0x146c20(0x2bc)]=_0x5e22e9,this[_0x146c20(0x2cd)]=_0x30c350,this[_0x146c20(0x178)]=_0x2a71db;}async['runOnServer'](_0x359a60,_0x2738b9,_0x2bed64,..._0x20a722){const _0x3ce64d=_0x51cf5f;var _0x51aa08,_0x2bae18,_0xb8a74b,_0x3ceab7;const _0x8a1507=this[_0x3ce64d(0x2bc)][_0x3ce64d(0x340)]();if(!_0x8a1507)throw new Error(_0x3ce64d(0x25f));const _0x289b86=((_0x51aa08=this[_0x3ce64d(0x178)][_0x3ce64d(0x2aa)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x51aa08:u[_0x3ce64d(0x2a5)])+'/'+_0x359a60+_0x3ce64d(0x272)+_0x2738b9,_0x461b42=new URL(window[_0x3ce64d(0x396)][_0x3ce64d(0x1e4)]),_0x4774fc={'scriptId':_0x359a60,'runId':(_0x2bae18=_0x461b42[_0x3ce64d(0x3a5)][_0x3ce64d(0x214)]('runId'))!=null?_0x2bae18:'','function':_0x2738b9,'unitId':_0x8a1507[_0x3ce64d(0x14f)](),'argsOfFunction':JSON['stringify'](_0x20a722),'invokeId':(_0xb8a74b=_0x2bed64[_0x3ce64d(0x2e9)])!=null?_0xb8a74b:'','executionId':(_0x3ceab7=_0x2bed64[_0x3ce64d(0x261)])!=null?_0x3ceab7:''};try{const _0xf3322e=await this[_0x3ce64d(0x2cd)][_0x3ce64d(0x21a)](_0x289b86,{'body':_0x4774fc});return _0xf3322e['body'][_0x3ce64d(0x2d9)]&&_0xf3322e[_0x3ce64d(0x226)][_0x3ce64d(0x2d9)][_0x3ce64d(0x16e)]!==Be['OK']?_0x3ce64d(0x2fb):_0xf3322e[_0x3ce64d(0x226)]['result'];}catch{return _0x3ce64d(0x2fb);}}},exports[_0x51cf5f(0x241)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x51cf5f(0x249)](G['HTTPService'])),ue(0x2,a[_0x51cf5f(0x293)])],exports['RemoteUniscriptService']),exports[_0x51cf5f(0x2f8)]=xe,exports['IURLService']=be,exports['SheetCollabCursorShape']=Pe,exports[_0x51cf5f(0x33d)]=is,exports[_0x51cf5f(0x315)]=je;