@univerjs-pro/collaboration-client-ui 0.9.1-nightly.202507071607 → 0.9.1-nightly.202507081607

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 _0x3d428b=_0x15bb;(function(_0x4d110b,_0x73ae86){const _0x96b66c=_0x15bb,_0x437f76=_0x4d110b();while(!![]){try{const _0x392cc3=-parseInt(_0x96b66c(0xc4))/0x1*(parseInt(_0x96b66c(0xc2))/0x2)+parseInt(_0x96b66c(0xc1))/0x3*(parseInt(_0x96b66c(0xba))/0x4)+parseInt(_0x96b66c(0xc5))/0x5+parseInt(_0x96b66c(0xbd))/0x6+-parseInt(_0x96b66c(0xb9))/0x7*(-parseInt(_0x96b66c(0xc0))/0x8)+parseInt(_0x96b66c(0xc3))/0x9+-parseInt(_0x96b66c(0xc6))/0xa;if(_0x392cc3===_0x73ae86)break;else _0x437f76['push'](_0x437f76['shift']());}catch(_0xa10e2d){_0x437f76['push'](_0x437f76['shift']());}}}(_0x345f,0xdd973));function _0x15bb(_0x569dc0,_0x5a658d){const _0x345fe1=_0x345f();return _0x15bb=function(_0x15bbb6,_0x39905e){_0x15bbb6=_0x15bbb6-0xb8;let _0x198709=_0x345fe1[_0x15bbb6];return _0x198709;},_0x15bb(_0x569dc0,_0x5a658d);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x345f(){const _0x5a992d=['2274wGTwxU','3223158TgtJFP','8609256UwsGtS','1lNIGBT','4365970RhSQnX','22954200zMeZvi','runOnServer','80234PlxXik','7892EJyzTP','FUniver','_injector','3915576aFhAMA','get','extend','584Bbnxps'];_0x345f=function(){return _0x5a992d;};return _0x345f();}class c extends e[_0x3d428b(0xbb)]{['runOnServer'](_0x5a3380,_0x38c6f9,..._0x3a2c27){const _0x354279=_0x3d428b;return this[_0x354279(0xbc)][_0x354279(0xbe)](t['RemoteUniscriptService'])[_0x354279(0xb8)](_0x5a3380,_0x38c6f9,{},..._0x3a2c27);}}e['FUniver'][_0x3d428b(0xbf)](c);
1
+ 'use strict';const _0x3e17e2=_0x1018;function _0x1018(_0x4b8cb6,_0x2554d4){const _0x5e9cf8=_0x5e9c();return _0x1018=function(_0x101833,_0x58de6e){_0x101833=_0x101833-0x1df;let _0x23bb4e=_0x5e9cf8[_0x101833];return _0x23bb4e;},_0x1018(_0x4b8cb6,_0x2554d4);}(function(_0x3a5a55,_0x1f0c7f){const _0x5bacc3=_0x1018,_0x29af09=_0x3a5a55();while(!![]){try{const _0x2487d7=-parseInt(_0x5bacc3(0x1e7))/0x1*(parseInt(_0x5bacc3(0x1e5))/0x2)+-parseInt(_0x5bacc3(0x1ec))/0x3+-parseInt(_0x5bacc3(0x1eb))/0x4+parseInt(_0x5bacc3(0x1e6))/0x5*(-parseInt(_0x5bacc3(0x1e1))/0x6)+-parseInt(_0x5bacc3(0x1e3))/0x7+parseInt(_0x5bacc3(0x1df))/0x8+parseInt(_0x5bacc3(0x1e0))/0x9*(parseInt(_0x5bacc3(0x1e9))/0xa);if(_0x2487d7===_0x1f0c7f)break;else _0x29af09['push'](_0x29af09['shift']());}catch(_0x1ab0b4){_0x29af09['push'](_0x29af09['shift']());}}}(_0x5e9c,0x2de26));function _0x5e9c(){const _0x42c0a9=['1459116jVOPvP','get','1479373xewvLd','FUniver','33938YvkgBX','5BdERjO','1bqsLGw','extend','5292470iOqily','_injector','336296ThaifU','340254kierlD','2621448VpGrEG','9calTsV'];_0x5e9c=function(){return _0x42c0a9;};return _0x5e9c();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{['runOnServer'](_0x232a66,_0x8caa20,..._0x35d0f0){const _0x1295f8=_0x1018;return this[_0x1295f8(0x1ea)][_0x1295f8(0x1e2)](t['RemoteUniscriptService'])['runOnServer'](_0x232a66,_0x8caa20,{},..._0x35d0f0);}}e[_0x3e17e2(0x1e4)][_0x3e17e2(0x1e8)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3d2806=_0x2d87;(function(_0x994e4e,_0x2f20ce){const _0x291929=_0x2d87,_0x24f5cc=_0x994e4e();while(!![]){try{const _0x439788=parseInt(_0x291929(0x1df))/0x1*(-parseInt(_0x291929(0x27a))/0x2)+-parseInt(_0x291929(0x185))/0x3+-parseInt(_0x291929(0x89))/0x4*(-parseInt(_0x291929(0x1dd))/0x5)+parseInt(_0x291929(0xf3))/0x6+parseInt(_0x291929(0x287))/0x7*(-parseInt(_0x291929(0x315))/0x8)+-parseInt(_0x291929(0x251))/0x9+-parseInt(_0x291929(0x174))/0xa*(-parseInt(_0x291929(0x18b))/0xb);if(_0x439788===_0x2f20ce)break;else _0x24f5cc['push'](_0x24f5cc['shift']());}catch(_0x1c987a){_0x24f5cc['push'](_0x24f5cc['shift']());}}}(_0x5e28,0x1d237));var Ve=Object[_0x3d2806(0x27d)],Xe=(_0xa9b2f0,_0x288d4f,_0x2fad46)=>_0x288d4f in _0xa9b2f0?Ve(_0xa9b2f0,_0x288d4f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fad46}):_0xa9b2f0[_0x288d4f]=_0x2fad46,h=(_0x470d28,_0xc99b4a,_0x19de42)=>Xe(_0x470d28,typeof _0xc99b4a!=_0x3d2806(0x253)?_0xc99b4a+'':_0xc99b4a,_0x19de42);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x3d2806(0x1f4)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x3d2806(0x19f)],ze=(_0x527e65,_0x2b39a8,_0x17b8b1,_0x228d40)=>{const _0x86cb48=_0x3d2806;for(var _0x5e8d78=_0x228d40>0x1?void 0x0:_0x228d40?qe(_0x2b39a8,_0x17b8b1):_0x2b39a8,_0x407c75=_0x527e65[_0x86cb48(0x83)]-0x1,_0x1992b8;_0x407c75>=0x0;_0x407c75--)(_0x1992b8=_0x527e65[_0x407c75])&&(_0x5e8d78=_0x1992b8(_0x5e8d78)||_0x5e8d78);return _0x5e8d78;},Oe=(_0x24fbd5,_0x2eec79)=>(_0x8f9d1d,_0x4c0a88)=>_0x2eec79(_0x8f9d1d,_0x4c0a88,_0x24fbd5);let de=class extends a['RxDisposable']{constructor(_0x5e3fdc,_0x4ef5a8){const _0x311bb5=_0x3d2806;super(),this['_docClipboardService']=_0x5e3fdc,this[_0x311bb5(0x16e)]=_0x4ef5a8,this[_0x311bb5(0x1ad)]();}[_0x3d2806(0x1ad)](){const _0x5bcb12=_0x3d2806,_0x5751ae=this;this[_0x5bcb12(0x94)](this[_0x5bcb12(0x1a0)][_0x5bcb12(0x2ca)]({'onBeforePasteImage':async _0x10f2b8=>{const _0x7972ec=_0x5bcb12,_0x20db14=await _0x5751ae[_0x7972ec(0x16e)][_0x7972ec(0x162)](_0x10f2b8);return _0x20db14?{'source':_0x20db14[_0x7972ec(0x204)],'imageSourceType':_0x20db14['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0x3d2806(0x146)]),Oe(0x1,Ge[_0x3d2806(0x2a5)])],de);const Te=[_0x3d2806(0x2a0),_0x3d2806(0x2f2),_0x3d2806(0x112),_0x3d2806(0x23d),_0x3d2806(0x9a),'yellow.400'];class me extends a[_0x3d2806(0x2c3)]{constructor(){const _0x119563=_0x3d2806;super(...arguments),h(this,_0x119563(0x291),new Map()),h(this,_0x119563(0x2a6),0x0);}[_0x3d2806(0x2d6)](_0x289524){const _0x27df4e=_0x3d2806;if(this['_assignedColors'][_0x27df4e(0x2c2)](_0x289524))return this[_0x27df4e(0x291)][_0x27df4e(0x107)](_0x289524);const _0x348384=Te[this[_0x27df4e(0x2a6)]];return this[_0x27df4e(0x2a6)]=(this['_colorIndex']+0x1)%Te[_0x27df4e(0x83)],this['_assignedColors'][_0x27df4e(0x8a)](_0x289524,_0x348384),_0x348384;}}function Pe(_0xa3f27b){let _0x2395b5='';for(const _0x4aa7b0 of _0xa3f27b){const {startOffset:_0x5cc84e,endOffset:_0x144568,isActive:_0x488c59,rangeType:_0x5dba39,segmentId:_0x14782a,segmentPage:_0x177312}=_0x4aa7b0;_0x2395b5['length']&&(_0x2395b5+=','),_0x2395b5+=_0x5cc84e+':'+_0x144568+':'+(_0x488c59?'1':'0')+':'+_0x5dba39+':'+_0x14782a+':'+_0x177312;}return _0x2395b5;}function Je(_0x4dc64f){const _0x253f67=_0x3d2806,_0x178da2=_0x4dc64f['split'](','),_0x132ad8=[];for(const _0x37f9f6 of _0x178da2){const [_0x63d198,_0x1b29d2,_0xb0694d,_0x1fd5be,_0x582b68,_0x235e3f]=_0x37f9f6[_0x253f67(0xf0)](':');_0x132ad8['push']({'startOffset':Number(_0x63d198),'endOffset':Number(_0x1b29d2),'collapsed':_0x63d198===_0x1b29d2,'isActive':_0xb0694d==='1','rangeType':_0x1fd5be===a[_0x253f67(0x101)][_0x253f67(0x8e)]?a[_0x253f67(0x101)][_0x253f67(0x8e)]:a[_0x253f67(0x101)][_0x253f67(0x21b)],'segmentId':typeof _0x582b68==_0x253f67(0x258)?String(_0x582b68):'','segmentPage':Number(_0x235e3f!=null?_0x235e3f:-0x1)});}return _0x132ad8[_0x253f67(0x1f7)](_0x2af3b7=>_0x2af3b7[_0x253f67(0x82)])||(_0x132ad8[0x0][_0x253f67(0x82)]=!0x0),_0x132ad8;}class Ce extends a[_0x3d2806(0x96)]{constructor(){const _0x2bcc1e=_0x3d2806;super(...arguments),h(this,'_collabCursorState$',new d[(_0x2bcc1e(0xec))](null)),h(this,'collabCursorState$',this[_0x2bcc1e(0x275)][_0x2bcc1e(0x2cd)]());}['syncEditingCollabCursor'](_0x593029){const _0x1b6dd1=_0x3d2806,{unitID:_0x3a9611,memberID:_0x23b84b,textRanges:_0x4ffb85}=_0x593029,_0x24cc0d=Pe(_0x4ffb85);if(_0x24cc0d==='')return;const _0x2077d6={'unitID':_0x3a9611,'memberID':_0x23b84b,'selection':_0x24cc0d};this[_0x1b6dd1(0x275)]['next'](_0x2077d6);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x4f01db,_0x73c4f3,_0x2f1ab0,_0xa63a6d)=>{const _0x4aa299=_0x3d2806;for(var _0x2f4a95=_0xa63a6d>0x1?void 0x0:_0xa63a6d?Ze(_0x73c4f3,_0x2f1ab0):_0x73c4f3,_0x399dc8=_0x4f01db[_0x4aa299(0x83)]-0x1,_0x91e30b;_0x399dc8>=0x0;_0x399dc8--)(_0x91e30b=_0x4f01db[_0x399dc8])&&(_0x2f4a95=_0x91e30b(_0x2f4a95)||_0x2f4a95);return _0x2f4a95;},L=(_0xd043fc,_0x3382fa)=>(_0x522c4c,_0x2ab384)=>_0x3382fa(_0x522c4c,_0x2ab384,_0xd043fc);const et=0x12c,tt=0x64;let Ie=class extends a[_0x3d2806(0x96)]{constructor(_0x2a3187,_0x4d92f9,_0x39f0f5,_0x32cbc2,_0x2971a3,_0xfba36d,_0xbfd599,_0x556342,_0x47141e){const _0x25d91c=_0x3d2806;super(),h(this,_0x25d91c(0x1aa),!0x1),h(this,_0x25d91c(0x1ad),!0x1),h(this,_0x25d91c(0x143),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),h(this,_0x25d91c(0x11d),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x25d91c(0x11d)]['pipe'](d[_0x25d91c(0x280)](et))),h(this,_0x25d91c(0x237),a[_0x25d91c(0x296)](_0x52e78d=>{const _0x49a8d9=_0x25d91c,_0x478934={'eventID':m[_0x49a8d9(0x28b)][_0x49a8d9(0xd0)],'data':{'unitID':this[_0x49a8d9(0x1ec)],'memberID':this[_0x49a8d9(0x29a)]['getMemberID'](),'selection':Pe(_0x52e78d)}};this[_0x49a8d9(0x29a)][_0x49a8d9(0x2dc)](_0x478934,this[_0x49a8d9(0x1ec)]);},tt)),(this['unitID']=_0x2a3187,this[_0x25d91c(0x29a)]=_0x4d92f9,this[_0x25d91c(0x193)]=_0x39f0f5,this[_0x25d91c(0x1af)]=_0x32cbc2,this[_0x25d91c(0x1ee)]=_0x2971a3,this[_0x25d91c(0x30d)]=_0xfba36d,this[_0x25d91c(0x13d)]=_0xbfd599,this[_0x25d91c(0x1a8)]=_0x556342,this[_0x25d91c(0xa3)]=_0x47141e);}get[_0x3d2806(0x27e)](){const _0x41d662=_0x3d2806;return this['_cursorInfo$'][_0x41d662(0x150)]();}get[_0x3d2806(0x25f)](){const _0xc8f1fd=_0x3d2806;return this[_0xc8f1fd(0x11d)]['getValue']();}['dispose'](){const _0x546309=_0x3d2806;super['dispose'](),this[_0x546309(0x143)][_0x546309(0x1bf)](new Map()),this[_0x546309(0x143)][_0x546309(0xa2)](),this['_roomMembers$']['next']([]),this[_0x546309(0x11d)]['complete']();}[_0x3d2806(0x106)](){const _0x466ff6=_0x3d2806;this[_0x466ff6(0x1ad)]||(this[_0x466ff6(0x1ad)]=!0x0,this[_0x466ff6(0x29a)][_0x466ff6(0xeb)][_0x466ff6(0x2c6)](d[_0x466ff6(0x189)](this[_0x466ff6(0x139)]))[_0x466ff6(0x124)](_0x1b7032=>{const _0x2f0775=_0x466ff6;_0x1b7032===u[_0x2f0775(0x99)][_0x2f0775(0x10d)]?this[_0x2f0775(0x21d)]():this[_0x2f0775(0x2df)]();}),this[_0x466ff6(0x29a)][_0x466ff6(0x19c)][_0x466ff6(0x2c6)](d[_0x466ff6(0x189)](this[_0x466ff6(0x139)]))[_0x466ff6(0x124)](_0x46710c=>{const _0x182187=_0x466ff6,_0x563ad8=_0x46710c['eventID'];_0x563ad8===m['CollaborationEvent'][_0x182187(0xd0)]&&this['_onCursorUpdate'](_0x46710c),_0x563ad8===m['CollaborationEvent'][_0x182187(0x301)]&&this[_0x182187(0x14c)](_0x46710c);}),this[_0x466ff6(0x94)](this[_0x466ff6(0xa3)]['onCommandExecuted'](_0x78cef=>{const _0x303f86=_0x466ff6,_0x4e3a94=_0x78cef['params'];_0x4e3a94!=null&&this[_0x303f86(0x1aa)]&&_0x78cef['id']===Y[_0x303f86(0xfb)]['id']&&_0x4e3a94[_0x303f86(0x211)]===this[_0x303f86(0x1ec)]&&_0x4e3a94[_0x303f86(0x29c)]===!0x1&&_0x4e3a94[_0x303f86(0x17d)][_0x303f86(0x83)]>0x0&&this['_updateLocalCursor'](_0x4e3a94[_0x303f86(0x17d)]);})),this[_0x466ff6(0x30d)][_0x466ff6(0xd1)][_0x466ff6(0x2c6)](d[_0x466ff6(0x189)](this[_0x466ff6(0x139)]))[_0x466ff6(0x124)](_0x2c595a=>{const _0x7874f9=_0x466ff6;if((_0x2c595a==null?void 0x0:_0x2c595a[_0x7874f9(0x1ec)])!==this['unitID'])return;const _0x33d8e2={'eventID':m[_0x7874f9(0x28b)][_0x7874f9(0xd0)],'data':_0x2c595a};this[_0x7874f9(0x16c)](_0x33d8e2);}),this[_0x466ff6(0x94)](this[_0x466ff6(0xa3)][_0x466ff6(0xf1)](_0x13e4bd=>{const _0x5b667a=_0x466ff6;if(_0x13e4bd[_0x5b667a(0x180)]==null)return;const _0x5e9ef6=_0x13e4bd[_0x5b667a(0x180)];if(_0x13e4bd['id']!==Y[_0x5b667a(0x114)]['id']||_0x5e9ef6[_0x5b667a(0x211)]!==this[_0x5b667a(0x1ec)])return;const _0x2dbf27={'id':'doc.mutation.rich-text-editing','params':_0x5e9ef6},_0x45cf84=this[_0x5b667a(0x27e)];for(const [_0x428ed7,_0x222aa6]of _0x45cf84){const _0x5530a9={'id':_0x5b667a(0x1d9),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x222aa6[_0x5b667a(0x17d)]}},_0x665c90=this['_transformService'][_0x5b667a(0x2cc)](_0x2dbf27,_0x5530a9,!0x1);if(m[_0x5b667a(0x2f7)](_0x665c90))throw _0x665c90['error'];_0x45cf84[_0x5b667a(0x8a)](_0x428ed7,{..._0x222aa6,'ranges':_0x665c90[_0x5b667a(0xb2)][_0x5b667a(0x180)]['textRanges']});}queueMicrotask(()=>{const _0x382ea4=_0x5b667a;this[_0x382ea4(0x143)]['next'](_0x45cf84);});})));}[_0x3d2806(0x16c)](_0x46e272){const _0x1696ea=_0x3d2806;var _0x15aaa6,_0x10fda6;const {memberID:_0x1b3524,selection:_0x8270c8}=_0x46e272['data'],_0x4137b1=Je(_0x8270c8),_0x526c47=(_0x10fda6=(_0x15aaa6=this[_0x1696ea(0x1ee)]['getMember'](this[_0x1696ea(0x1ec)],_0x1b3524))==null?void 0x0:_0x15aaa6[_0x1696ea(0x1b5)])!=null?_0x10fda6:_0x1696ea(0x1e7),_0x111804={'color':this['_colorAssignService'][_0x1696ea(0x2d6)](_0x1b3524),'name':_0x526c47,'ranges':_0x4137b1},_0x30303f=this['cursorInfo'];_0x30303f[_0x1696ea(0x8a)](_0x1b3524,_0x111804),this[_0x1696ea(0x143)][_0x1696ea(0x1bf)](_0x30303f);}['_onCursorDelete'](_0x5ef30f){const _0x261d17=_0x3d2806,{memberID:_0x570081}=_0x5ef30f[_0x261d17(0x87)],_0x580356=this[_0x261d17(0x27e)];_0x580356['delete'](_0x570081),this[_0x261d17(0x143)][_0x261d17(0x1bf)](_0x580356);}[_0x3d2806(0x21d)](){const _0x1828e0=_0x3d2806;var _0x1734bb;if(this[_0x1828e0(0x1aa)]=!0x0,((_0x1734bb=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1734bb['getUnitId']())!==this[_0x1828e0(0x1ec)])return;const _0x38609=this[_0x1828e0(0x193)][_0x1828e0(0x107)](Y[_0x1828e0(0x2d1)])[_0x1828e0(0x127)]();Array[_0x1828e0(0xf5)](_0x38609)&&_0x38609[_0x1828e0(0x83)]>0x0&&this['_updateLocalCursor'](_0x38609);}[_0x3d2806(0x2df)](){const _0x38996b=_0x3d2806;this[_0x38996b(0x1aa)]=!0x1;}};Ie=Qe([L(0x2,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),L(0x3,a[_0x3d2806(0xb9)](me)),L(0x4,a[_0x3d2806(0xb9)](u[_0x3d2806(0x130)])),L(0x5,a[_0x3d2806(0xb9)](Ce)),L(0x6,m[_0x3d2806(0xd9)]),L(0x7,a[_0x3d2806(0x15b)]),L(0x8,a[_0x3d2806(0xbb)])],Ie);var st=Object[_0x3d2806(0x19f)],it=(_0x2a2f13,_0x1ba6ff,_0x38bf7d,_0x568bbf)=>{const _0x1e05e9=_0x3d2806;for(var _0x1d15ed=_0x568bbf>0x1?void 0x0:_0x568bbf?st(_0x1ba6ff,_0x38bf7d):_0x1ba6ff,_0x46a7bc=_0x2a2f13[_0x1e05e9(0x83)]-0x1,_0x46d1e3;_0x46a7bc>=0x0;_0x46a7bc--)(_0x46d1e3=_0x2a2f13[_0x46a7bc])&&(_0x1d15ed=_0x46d1e3(_0x1d15ed)||_0x1d15ed);return _0x1d15ed;},A=(_0x1982be,_0x4cd84c)=>(_0x16256e,_0x555e62)=>_0x4cd84c(_0x16256e,_0x555e62,_0x1982be);function _0x2d87(_0x27a402,_0x1c6309){const _0x5e28c1=_0x5e28();return _0x2d87=function(_0x2d8783,_0xe83ea5){_0x2d8783=_0x2d8783-0x81;let _0xee8edd=_0x5e28c1[_0x2d8783];return _0xee8edd;},_0x2d87(_0x27a402,_0x1c6309);}const nt=0x12c,rt=0x64,ot=()=>{let _0x4c6e67=[],_0x1d5b81=!0x1;return _0x26ced8=>{const _0x17f35f=_0x2d87;_0x4c6e67[_0x17f35f(0x210)](_0x26ced8),_0x1d5b81||(_0x1d5b81=!0x0,setTimeout(()=>{const _0xb547db=_0x17f35f;_0x4c6e67[_0xb547db(0x246)](_0x15b5b4=>_0x15b5b4()),_0x4c6e67=[],_0x1d5b81=!0x1;}));};};let Se=class extends a[_0x3d2806(0x96)]{constructor(_0x3b499d,_0x7b37ff,_0x2215ce,_0x5ae87a,_0xac9df8,_0x4deeed,_0x5d85ad,_0x13f634){const _0xa964e=_0x3d2806;super(),h(this,'_online',!0x1),h(this,_0xa964e(0x1ad),!0x1),h(this,'_cursorInfo$',new d[(_0xa964e(0xec))](new Map())),h(this,_0xa964e(0x233),this[_0xa964e(0x143)][_0xa964e(0x2cd)]()),h(this,_0xa964e(0x11d),new d[(_0xa964e(0xec))]([])),h(this,_0xa964e(0x20b),this[_0xa964e(0x11d)]['pipe'](d[_0xa964e(0x280)](nt))),h(this,_0xa964e(0x237),a[_0xa964e(0x296)]((_0x74801c,_0x5ce019)=>{const _0x54fb03=_0xa964e,_0x55acda={'eventID':m['CollaborationEvent'][_0x54fb03(0xd0)],'data':{'unitID':this['unitID'],'memberID':this[_0x54fb03(0x29a)][_0x54fb03(0x24f)](),'selection':be[_0x54fb03(0x224)](_0x74801c,_0x5ce019[_0x54fb03(0x27b)])}};this[_0x54fb03(0x29a)][_0x54fb03(0x2dc)](_0x55acda,this[_0x54fb03(0x1ec)]);},rt)),(this[_0xa964e(0x1ec)]=_0x3b499d,this[_0xa964e(0x29a)]=_0x7b37ff,this[_0xa964e(0x193)]=_0x2215ce,this[_0xa964e(0x1af)]=_0x5ae87a,this[_0xa964e(0x1ee)]=_0xac9df8,this[_0xa964e(0x1a8)]=_0x4deeed,this[_0xa964e(0xa3)]=_0x5d85ad,this[_0xa964e(0xbe)]=_0x13f634);}get['cursorInfo'](){const _0x323244=_0x3d2806;return this[_0x323244(0x143)][_0x323244(0x150)]();}get[_0x3d2806(0x25f)](){const _0x360450=_0x3d2806;return this[_0x360450(0x11d)]['getValue']();}[_0x3d2806(0xe3)](){const _0x5b7349=_0x3d2806;super[_0x5b7349(0xe3)](),this[_0x5b7349(0x143)]['next'](new Map()),this['_cursorInfo$'][_0x5b7349(0xa2)](),this[_0x5b7349(0x11d)][_0x5b7349(0x1bf)]([]),this['_roomMembers$']['complete']();}[_0x3d2806(0x106)](){const _0x1b6bde=_0x3d2806;this[_0x1b6bde(0x1ad)]||(this[_0x1b6bde(0x1ad)]=!0x0,this[_0x1b6bde(0x29a)][_0x1b6bde(0xeb)]['pipe'](d['takeUntil'](this['dispose$']))[_0x1b6bde(0x124)](_0x4aa21d=>{const _0x27716b=_0x1b6bde;_0x4aa21d===u[_0x27716b(0x99)][_0x27716b(0x10d)]?this[_0x27716b(0x21d)]():this['_toggleOffline']();}),this[_0x1b6bde(0x29a)][_0x1b6bde(0x19c)][_0x1b6bde(0x2c6)](d[_0x1b6bde(0x189)](this['dispose$']))[_0x1b6bde(0x124)](_0x4490f0=>{const _0x4ef1c8=_0x1b6bde,_0x272f43=_0x4490f0['eventID'];_0x272f43===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x4ef1c8(0x16c)](_0x4490f0),_0x272f43===m[_0x4ef1c8(0x28b)][_0x4ef1c8(0x301)]&&this[_0x4ef1c8(0x14c)](_0x4490f0);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x1b6bde(0xa3)]['onCommandExecuted'](_0x268ba1=>{const _0x33c320=_0x1b6bde;if(this[_0x33c320(0x1aa)]&&_0x268ba1['id']===g['SetSelectionsOperation']['id']&&_0x268ba1[_0x33c320(0x180)][_0x33c320(0x211)]===this[_0x33c320(0x1ec)]){const _0x3d691c=_0x268ba1[_0x33c320(0x180)];this['_updateLocalCursor'](_0x3d691c[_0x33c320(0x271)],_0x3d691c[_0x33c320(0x12e)][0x0]);}})));}['_onCursorUpdate'](_0x3df231){const _0xdf51a0=_0x3d2806;var _0x2592f5,_0x4d670c;const {memberID:_0x5bbb1e,selection:_0x480dd8}=_0x3df231['data'],{sheetName:_0x4f5c4d,range:_0x1b0168}=be[_0xdf51a0(0x20e)](_0x480dd8),_0x517720={'name':(_0x4d670c=(_0x2592f5=this[_0xdf51a0(0x1ee)][_0xdf51a0(0x281)](this[_0xdf51a0(0x1ec)],_0x5bbb1e))==null?void 0x0:_0x2592f5[_0xdf51a0(0x1b5)])!=null?_0x4d670c:_0xdf51a0(0x1e7),'range':this[_0xdf51a0(0x1e1)](_0x4f5c4d,_0x1b0168),'sheetID':_0x4f5c4d,'color':this['_colorAssignService'][_0xdf51a0(0x2d6)](_0x5bbb1e),'selection':_0x480dd8},_0x5c9c8a=this[_0xdf51a0(0x27e)];_0x5c9c8a[_0xdf51a0(0x8a)](_0x5bbb1e,_0x517720),this[_0xdf51a0(0x143)]['next'](_0x5c9c8a);}[_0x3d2806(0x14c)](_0x190d20){const _0x4f97f9=_0x3d2806,{memberID:_0x250997}=_0x190d20[_0x4f97f9(0x87)],_0x182445=this['cursorInfo'];_0x182445[_0x4f97f9(0x2f8)](_0x250997),this[_0x4f97f9(0x143)][_0x4f97f9(0x1bf)](_0x182445);}[_0x3d2806(0x1e1)](_0x2673dc,_0x26eeee){const _0x241d23=_0x3d2806;var _0x7ae155,_0x5dc1b2;const _0x413ff9=(_0x5dc1b2=(_0x7ae155=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x241d23(0x1ec)]))==null?void 0x0:_0x7ae155[_0x241d23(0x2ac)](_0x2673dc))==null?void 0x0:_0x5dc1b2[_0x241d23(0x2ce)]();return(_0x413ff9==null?void 0x0:_0x413ff9[_0x241d23(0x247)](_0x37b41b=>a[_0x241d23(0x2c7)][_0x241d23(0x123)](_0x37b41b,_0x26eeee)))||_0x26eeee;}['_onRefRangeChange'](){const _0x39217c=_0x3d2806,_0x88bd5a=new a[(_0x39217c(0x266))](),_0x448780=ot(),_0x5d3c6c=()=>{const _0x52d0ef=_0x39217c;_0x88bd5a[_0x52d0ef(0xe3)]();const _0x43b4f1=(_0x3f0ef4,_0x2b319a,_0x5033de,_0x30963e)=>{const _0x4309ff=_0x52d0ef;let _0xe1fa32=[];switch(_0x3f0ef4['id']){case g[_0x4309ff(0x2be)][_0x4309ff(0x274)]:{_0xe1fa32=g['handleDeleteRangeMoveLeft'](_0x3f0ef4,_0x30963e);break;}case g['EffectRefRangId'][_0x4309ff(0x2b0)]:{_0xe1fa32=g[_0x4309ff(0x250)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x97)]:{_0xe1fa32=g[_0x4309ff(0x2dd)](_0x3f0ef4,_0x30963e);break;}case g['EffectRefRangId'][_0x4309ff(0x214)]:{_0xe1fa32=g[_0x4309ff(0x1b4)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x2f1)]:{_0xe1fa32=g['handleInsertRangeMoveRight'](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0xd5)]:{_0xe1fa32=g[_0x4309ff(0xed)](_0x3f0ef4,_0x30963e);break;}case g['EffectRefRangId'][_0x4309ff(0x118)]:{_0xe1fa32=g[_0x4309ff(0x21f)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x129)]:{_0xe1fa32=g[_0x4309ff(0x17a)](_0x3f0ef4,_0x30963e);break;}case g[_0x4309ff(0x2be)][_0x4309ff(0x105)]:{_0xe1fa32=g[_0x4309ff(0x13f)](_0x3f0ef4,_0x30963e);break;}}const _0x281e3a=g[_0x4309ff(0x2ba)](_0xe1fa32,_0x30963e),_0x360e3c=this[_0x4309ff(0x27e)][_0x4309ff(0x107)](_0x2b319a);if(_0x360e3c&&_0x281e3a){const _0x37d174={..._0x360e3c,'range':_0x281e3a};this['cursorInfo'][_0x4309ff(0x8a)](_0x2b319a,_0x37d174),_0x448780(()=>{const _0x28b272=_0x4309ff,_0x57e108=this[_0x28b272(0xbe)]['registerRefRange'](_0x281e3a,_0x3016ff=>(_0x57e108[_0x28b272(0xe3)](),_0x43b4f1(_0x3016ff,_0x2b319a,_0x5033de,_0x281e3a)));_0x88bd5a[_0x28b272(0x256)](_0x57e108);});}return{'redos':[],'undos':[]};};this[_0x52d0ef(0x27e)][_0x52d0ef(0x246)]((_0x1578bb,_0xe19c03)=>{const _0x33f68b=_0x52d0ef,{range:_0x224903,sheetID:_0x1ad597}=_0x1578bb,_0x4faf80=this[_0x33f68b(0xbe)]['registerRefRange'](_0x224903,_0xff98b9=>(_0x4faf80[_0x33f68b(0xe3)](),_0x43b4f1(_0xff98b9,_0xe19c03,_0x1ad597,_0x224903)));_0x88bd5a['add'](_0x4faf80);});};this[_0x39217c(0x94)](a[_0x39217c(0x1d6)](this['_cursorInfo$'][_0x39217c(0x124)](()=>{_0x5d3c6c();})));}[_0x3d2806(0x21d)](){const _0x3462fc=_0x3d2806;var _0x20f5cc,_0x31eb8b;if(this[_0x3462fc(0x1aa)]=!0x0,((_0x20f5cc=this[_0x3462fc(0x1a8)]['getFocusedUnit']())==null?void 0x0:_0x20f5cc[_0x3462fc(0x1ba)]())!==this[_0x3462fc(0x1ec)])return;const _0x43f93b=(_0x31eb8b=this[_0x3462fc(0x193)][_0x3462fc(0x107)](g[_0x3462fc(0x121)])[_0x3462fc(0x86)]())==null?void 0x0:_0x31eb8b[0x0],_0x1e3069=this[_0x3462fc(0x1a8)][_0x3462fc(0x1b7)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3462fc(0x12c)]();_0x43f93b&&_0x1e3069&&this['_updateLocalCursor'](_0x1e3069[_0x3462fc(0x144)](),_0x43f93b);}[_0x3d2806(0x2df)](){const _0x1525af=_0x3d2806;this[_0x1525af(0x1aa)]=!0x1;}};Se=it([A(0x2,a[_0x3d2806(0xb9)](a['Injector'])),A(0x3,a[_0x3d2806(0xb9)](me)),A(0x4,a['Inject'](u[_0x3d2806(0x130)])),A(0x5,a[_0x3d2806(0x15b)]),A(0x6,a[_0x3d2806(0xbb)]),A(0x7,a[_0x3d2806(0xb9)](g[_0x3d2806(0x270)]))],Se);var at=Object[_0x3d2806(0x19f)],ct=(_0x5280b0,_0x729b15,_0x90090a,_0x5ad6ee)=>{const _0x4c624a=_0x3d2806;for(var _0x2f9390=_0x5ad6ee>0x1?void 0x0:_0x5ad6ee?at(_0x729b15,_0x90090a):_0x729b15,_0x5ed1e3=_0x5280b0[_0x4c624a(0x83)]-0x1,_0x7f393d;_0x5ed1e3>=0x0;_0x5ed1e3--)(_0x7f393d=_0x5280b0[_0x5ed1e3])&&(_0x2f9390=_0x7f393d(_0x2f9390)||_0x2f9390);return _0x2f9390;},ie=(_0x56f99b,_0xd10953)=>(_0x5615f2,_0x5dbe47)=>_0xd10953(_0x5615f2,_0x5dbe47,_0x56f99b);let x=class extends a[_0x3d2806(0x96)]{constructor(_0x2f6497,_0x49ca96,_0x4747d6){const _0x39b040=_0x3d2806;super(),h(this,_0x39b040(0x1b3),new Map()),h(this,_0x39b040(0x16b),new d[(_0x39b040(0x119))]()),(this[_0x39b040(0x1a8)]=_0x2f6497,this[_0x39b040(0x193)]=_0x49ca96,this[_0x39b040(0xab)]=_0x4747d6,this['_init']());}[_0x3d2806(0xe3)](){const _0x13d87f=_0x3d2806;super[_0x13d87f(0xe3)](),this[_0x13d87f(0x16b)][_0x13d87f(0xa2)](),this[_0x13d87f(0x1b3)]['forEach'](_0xd6ef8d=>_0xd6ef8d[_0x13d87f(0xe3)]());}[_0x3d2806(0xe2)](_0x1f2cc9){const _0x44a181=_0x3d2806;return this[_0x44a181(0x1b3)]['has'](_0x1f2cc9)?this[_0x44a181(0x1b3)][_0x44a181(0x107)](_0x1f2cc9)[_0x44a181(0x233)]:this[_0x44a181(0x16b)]['pipe'](d['filter'](_0x4f01af=>_0x4f01af[_0x44a181(0x1ec)]===_0x1f2cc9),d[_0x44a181(0x88)](_0x3d125a=>_0x3d125a['cursorInfo$']));}['_init'](){const _0x7cbe36=_0x3d2806;this[_0x7cbe36(0x1a8)][_0x7cbe36(0x2b7)](a[_0x7cbe36(0x100)]['UNIVER_SHEET'])['pipe'](d['takeUntil'](this[_0x7cbe36(0x139)]))[_0x7cbe36(0x124)](async _0x3cb01a=>{const _0x11a856=_0x7cbe36,_0x40db94=_0x3cb01a['getUnitId'](),_0x53e227=await this[_0x11a856(0x175)](_0x40db94);this['_entityInit$'][_0x11a856(0x1bf)](_0x53e227),this['_entities']['set'](_0x40db94,_0x53e227);}),this[_0x7cbe36(0x1a8)][_0x7cbe36(0x2b7)](a[_0x7cbe36(0x100)]['UNIVER_DOC'])[_0x7cbe36(0x2c6)](d[_0x7cbe36(0x189)](this['dispose$']))[_0x7cbe36(0x2c6)](d[_0x7cbe36(0xda)](_0x26acb8=>!_0x26acb8['getUnitId']()[_0x7cbe36(0x1d8)]('__')))[_0x7cbe36(0x124)](async _0xddd0a=>{const _0x12daf5=_0x7cbe36,_0x1414f5=_0xddd0a[_0x12daf5(0x1ba)](),_0x121d4f=await this[_0x12daf5(0x10c)](_0x1414f5);this['_entityInit$']['next'](_0x121d4f),this[_0x12daf5(0x1b3)][_0x12daf5(0x8a)](_0x1414f5,_0x121d4f);}),d['merge'](this[_0x7cbe36(0x1a8)][_0x7cbe36(0x153)](a[_0x7cbe36(0x100)][_0x7cbe36(0x1a9)]),this[_0x7cbe36(0x1a8)][_0x7cbe36(0x153)](a[_0x7cbe36(0x100)]['UNIVER_SHEET']))[_0x7cbe36(0x2c6)](d[_0x7cbe36(0x189)](this[_0x7cbe36(0x139)]))[_0x7cbe36(0x124)](_0x431de8=>{const _0x5cce5d=_0x7cbe36,_0x23528d=_0x431de8[_0x5cce5d(0x1ba)](),_0x4a0717=this[_0x5cce5d(0x1b3)]['get'](_0x23528d);_0x4a0717&&(_0x4a0717[_0x5cce5d(0xe3)](),this[_0x5cce5d(0x1b3)][_0x5cce5d(0x2f8)](_0x23528d));});}async[_0x3d2806(0x175)](_0x5eb747){const _0x41d2ba=_0x3d2806,_0x14ff64=await this['_collabSessionService'][_0x41d2ba(0x151)](_0x5eb747),_0x813ef6=this['_injector'][_0x41d2ba(0x142)](Se,_0x5eb747,_0x14ff64);return _0x813ef6['init'](),_0x813ef6;}async[_0x3d2806(0x10c)](_0xf3abab){const _0x1f02e4=_0x3d2806,_0x42a97f=await this[_0x1f02e4(0xab)][_0x1f02e4(0x151)](_0xf3abab),_0x510fa7=this['_injector'][_0x1f02e4(0x142)](Ie,_0xf3abab,_0x42a97f);return _0x510fa7[_0x1f02e4(0x106)](),_0x510fa7;}};x=ct([ie(0x0,a[_0x3d2806(0x15b)]),ie(0x1,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),ie(0x2,a[_0x3d2806(0xb9)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3c99ba,_0x3049a9){const _0x2562f2=_0x3d2806;let {radius:_0x44637e,width:_0x36f5c7,height:_0x1fe5be}=_0x3049a9;_0x44637e=_0x44637e!=null?_0x44637e:0x0,_0x36f5c7=_0x36f5c7!=null?_0x36f5c7:0x1e,_0x1fe5be=_0x1fe5be!=null?_0x1fe5be:0x1e;let _0x2e0ce2=0x0,_0x523ca7=0x0,_0x331557=0x0;_0x2e0ce2=_0x523ca7=_0x331557=Math[_0x2562f2(0x113)](_0x44637e,_0x36f5c7/0x2,_0x1fe5be/0x2),_0x3c99ba[_0x2562f2(0x2af)](),_0x3c99ba[_0x2562f2(0x2d0)](_0x2e0ce2,0x0),_0x3c99ba['lineTo'](_0x36f5c7-_0x523ca7,0x0),_0x3c99ba[_0x2562f2(0x2e0)](_0x36f5c7-_0x523ca7,_0x523ca7,_0x523ca7,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c99ba[_0x2562f2(0x2b2)](_0x36f5c7,_0x1fe5be-_0x331557),_0x3c99ba[_0x2562f2(0x2e0)](_0x36f5c7-_0x331557,_0x1fe5be-_0x331557,_0x331557,0x0,Math['PI']/0x2,!0x1),_0x3c99ba[_0x2562f2(0x2b2)](0x0,_0x1fe5be),_0x3c99ba['lineTo'](0x0,_0x2e0ce2),_0x3c99ba[_0x2562f2(0x2e0)](_0x2e0ce2,_0x2e0ce2,_0x2e0ce2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c99ba[_0x2562f2(0xdf)](),_0x3049a9[_0x2562f2(0x304)]&&(_0x3c99ba['save'](),_0x3c99ba[_0x2562f2(0x2ed)]=_0x3049a9[_0x2562f2(0x304)],_0x3049a9[_0x2562f2(0x140)]===_0x2562f2(0x254)?_0x3c99ba[_0x2562f2(0x304)]('evenodd'):_0x3c99ba[_0x2562f2(0x304)](),_0x3c99ba['restore']());}class ee extends p[_0x3d2806(0x299)]{constructor(_0x31f3c8,_0xf86cc7){const _0x502e0c=_0x3d2806;super(_0x31f3c8,_0xf86cc7),h(this,_0x502e0c(0x22a)),h(this,'text'),(this[_0x502e0c(0x22a)]=_0xf86cc7==null?void 0x0:_0xf86cc7[_0x502e0c(0x22a)],this[_0x502e0c(0x9c)]=_0xf86cc7==null?void 0x0:_0xf86cc7['text']);}static[_0x3d2806(0xad)](_0x1cdea5,_0x22d47e){const _0x4f870f=_0x3d2806,{text:_0x5a2c09,color:_0x58371d}=_0x22d47e;_0x1cdea5[_0x4f870f(0x208)](),_0x1cdea5['font']=_0x4f870f(0x1d4);const _0x5c9713=_0x1cdea5[_0x4f870f(0x22f)](_0x5a2c09)['width'],_0x4260fe=Math['min'](_0x5c9713+0x2*ne,Re);_t(_0x1cdea5,{'height':K,'radius':0x4,'width':_0x4260fe,'fill':_0x58371d}),_0x1cdea5[_0x4f870f(0x2ed)]=_0x4f870f(0x29e);const _0x37fab6=ne,_0x350ca7=K-lt,_0x11376a=Re-0x2*ne;if(_0x5c9713>_0x11376a){let _0x5f38a1='',_0x3ed031=0x0;for(const _0x1ef4cb of _0x5a2c09){const _0x45ab5e=_0x1cdea5[_0x4f870f(0x22f)](_0x1ef4cb)[_0x4f870f(0x14d)];if(_0x3ed031+_0x45ab5e<=_0x11376a-_0x1cdea5[_0x4f870f(0x22f)]('...')[_0x4f870f(0x14d)])_0x5f38a1+=_0x1ef4cb,_0x3ed031+=_0x45ab5e;else{_0x5f38a1+='...';break;}}_0x1cdea5[_0x4f870f(0x26c)](_0x5f38a1,_0x37fab6,_0x350ca7);}else _0x1cdea5[_0x4f870f(0x26c)](_0x5a2c09,_0x37fab6,_0x350ca7);_0x1cdea5[_0x4f870f(0x1e9)]();}[_0x3d2806(0x203)](_0x2d7c0d){const _0x4e5a83=_0x3d2806;ee[_0x4e5a83(0xad)](_0x2d7c0d,this);}}const re=_0x3d2806(0xb0),ht=_0x3d2806(0x16d),ut=_0x3d2806(0x1bb),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x3d2806(0x25b);class De{constructor(_0x1e7b39,_0x52b3b8,_0x2f5752,_0xa666d2){const _0x311974=_0x3d2806;h(this,_0x311974(0x244),[]),h(this,_0x311974(0x2b9),null),h(this,'_textBubble',null),h(this,_0x311974(0x8c),null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x1e7b39,this[_0x311974(0x289)]=_0x52b3b8,this[_0x311974(0x28c)]=_0x2f5752,this[_0x311974(0x24c)]=_0xa666d2,this[_0x311974(0x24a)]());}set[_0x3d2806(0x156)](_0x5d470e){const _0x536ab6=_0x3d2806;_0x5d470e?(this[_0x536ab6(0x8c)]&&this['_anchorDot'][_0x536ab6(0x2cb)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x536ab6(0x8c)]&&this['_anchorDot'][_0x536ab6(0xbc)](),this[_0x536ab6(0xbf)]&&this['_textBubble'][_0x536ab6(0x2cb)]());}['dispose'](){const _0x2af642=_0x3d2806;for(const _0xfabb30 of this[_0x2af642(0x244)])_0xfabb30[_0x2af642(0xe3)]();this[_0x2af642(0xbf)]&&this[_0x2af642(0xbf)][_0x2af642(0xe3)](),this[_0x2af642(0x8c)]&&this[_0x2af642(0x8c)][_0x2af642(0xe3)](),this[_0x2af642(0x2b9)]&&this[_0x2af642(0x2b9)][_0x2af642(0xe3)](),this[_0x2af642(0x13a)]&&this[_0x2af642(0x13a)]();}['_render'](){const _0x2808ca=_0x3d2806;var _0x56a306;const {_docSkeleton:_0x4c6b21,_document:_0x2aba62}=this,{color:_0x1f2016,name:_0x4b6106,ranges:_0x4c56da}=this[_0x2808ca(0xee)],_0x39b7a8=_0x2aba62['getOffsetConfig'](),{docsLeft:_0x5264b6,docsTop:_0x5d66e9}=_0x39b7a8,_0x272138=new E[(_0x2808ca(0x84))](_0x39b7a8,_0x4c6b21);for(const {startOffset:_0x470934,endOffset:_0x2e0f0f,rangeType:_0x407f50,segmentId:_0x1d3085,segmentPage:_0x280c1a,collapsed:_0x1be881,isActive:_0x51f629}of _0x4c56da){const _0x233189=_0x4c6b21[_0x2808ca(0x1a7)](_0x470934,!0x0,_0x1d3085,_0x280c1a);let _0x218da5=_0x4c6b21[_0x2808ca(0x1a7)](_0x2e0f0f,!0x0,_0x1d3085,_0x280c1a);if(_0x218da5==null&&(_0x218da5=_0x4c6b21['findNodePositionByCharIndex'](_0x2e0f0f-0x1,!0x1,_0x1d3085,_0x280c1a)),_0x51f629){const {contentBoxPointGroup:_0x3bbc90}=_0x272138[_0x2808ca(0x2fc)](_0x218da5,_0x218da5);if(_0x3bbc90[_0x2808ca(0x83)]===0x0)continue;this[_0x2808ca(0xc9)](_0x1f2016,_0x3bbc90,_0x5264b6,_0x5d66e9,_0x4b6106),this[_0x2808ca(0x13a)]=this[_0x2808ca(0x12f)]();}if(_0x233189&&_0x218da5){if(_0x407f50===a[_0x2808ca(0x101)][_0x2808ca(0x21b)]){const _0x10621c=new E['NodePositionConvertToRectRange'](_0x39b7a8,_0x4c6b21),{pointGroup:_0xa61177}=(_0x56a306=_0x10621c[_0x2808ca(0x2fc)](_0x233189,_0x218da5))!=null?_0x56a306:{};if(_0xa61177==null||_0xa61177['length']===0x0)continue;this[_0x2808ca(0xba)](_0x1f2016,_0xa61177,_0x5264b6,_0x5d66e9);}else{if(!_0x1be881){const {borderBoxPointGroup:_0x5e0184}=_0x272138[_0x2808ca(0x2fc)](_0x233189,_0x218da5);if(_0x5e0184['length']===0x0)continue;this[_0x2808ca(0x10f)](_0x1f2016,_0x5e0184,_0x5264b6,_0x5d66e9);}}}}}[_0x3d2806(0xc9)](_0x1828bb,_0x591f83,_0x4357f8,_0x18ec3b,_0x3ed168){const _0x598ce0=_0x3d2806,_0x5853c6=this[_0x598ce0(0x1fd)](_0x591f83),{left:_0x874832,top:_0x2f9527,height:_0x3bc10a}=_0x5853c6,_0x59bfc8=this[_0x598ce0(0x11f)](),_0x1afe58=It/_0x59bfc8,_0x14fa7c=new p[(_0x598ce0(0x18e))](re+a[_0x598ce0(0x147)][_0x598ce0(0x202)](k),{'left':_0x874832+_0x4357f8-_0x1afe58,'top':_0x2f9527+_0x18ec3b,'height':_0x3bc10a,'width':dt,'fill':_0x1828bb||p[_0x598ce0(0x18c)](a['COLORS'][_0x598ce0(0x1ce)],0x0),'strokeWidth':_0x1afe58,'stroke':St,'evented':!0x0});this['_anchor']=_0x14fa7c,this[_0x598ce0(0x289)][_0x598ce0(0x232)](_0x14fa7c,E[_0x598ce0(0x228)]);const _0x3abcba=new p[(_0x598ce0(0x18e))](re+a['Tools'][_0x598ce0(0x202)](k),{'left':_0x874832+_0x4357f8-_0x1afe58,'top':_0x2f9527+_0x18ec3b-oe/0x2,'height':oe,'width':oe,'fill':_0x1828bb||p[_0x598ce0(0x18c)](a[_0x598ce0(0x182)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1828bb||p[_0x598ce0(0x18c)](a[_0x598ce0(0x182)][_0x598ce0(0x1ce)],0x0),'evented':!0x1});this[_0x598ce0(0x8c)]=_0x3abcba,this[_0x598ce0(0x289)]['addObject'](_0x3abcba,E['TEXT_RANGE_LAYER_INDEX']);const _0x4b4b2d=new ee(re+a[_0x598ce0(0x147)]['generateRandomId'](k),{'left':_0x874832+_0x4357f8-_0x1afe58,'top':_0x2f9527+_0x18ec3b-K,'text':_0x3ed168,'color':_0x1828bb});this[_0x598ce0(0xbf)]=_0x4b4b2d,this[_0x598ce0(0x289)][_0x598ce0(0x232)](_0x4b4b2d,E['TEXT_RANGE_LAYER_INDEX']),this[_0x598ce0(0x156)]=!0x1;}[_0x3d2806(0x12f)](){const _0x3960ff=_0x3d2806,_0x541ff3=this[_0x3960ff(0x2b9)][_0x3960ff(0x2b6)][_0x3960ff(0xf2)](()=>{const _0x18fb26=_0x3960ff;this[_0x18fb26(0x156)]=!0x0;}),_0x1cb1cd=this['_anchor'][_0x3960ff(0xfe)]['subscribeEvent'](()=>{const _0x409ca0=_0x3960ff;this[_0x409ca0(0xde)]&&clearTimeout(this['_hideTimer']),this[_0x409ca0(0xde)]=setTimeout(()=>{const _0x20b6bb=_0x409ca0;this[_0x20b6bb(0x156)]=!0x1;},0x7d0);});return()=>{const _0xe2a414=_0x3960ff;_0x541ff3['unsubscribe'](),_0x1cb1cd[_0xe2a414(0x14f)]();};}['_drawTextRange'](_0x56f95b,_0x3bc349,_0x195eaf,_0x38c412){const _0x2c900e=_0x3d2806,_0x2f0ee5=new a[(_0x2c900e(0x8b))](_0x56f95b)['setAlpha'](0.2)[_0x2c900e(0x273)](),_0x52c675=new p[(_0x2c900e(0x1eb))](ht+a['Tools'][_0x2c900e(0x202)](k),{'pointsGroup':_0x3bc349,'fill':_0x2f0ee5||p[_0x2c900e(0x18c)](a[_0x2c900e(0x182)]['black'],0.2),'left':_0x195eaf,'top':_0x38c412,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x52c675),this[_0x2c900e(0x289)][_0x2c900e(0x232)](_0x52c675,E[_0x2c900e(0x228)]);}['_drawRectRange'](_0x2c0e83,_0x41004a,_0xb4f415,_0x5e0768){const _0x210114=_0x3d2806,_0xa8d8b3=new a[(_0x210114(0x8b))](_0x2c0e83)[_0x210114(0x279)](0.2)[_0x210114(0x273)](),_0x1cbf77=new p[(_0x210114(0x1eb))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x41004a,'fill':_0xa8d8b3||p['getColor'](a[_0x210114(0x182)]['black'],0.2),'left':_0xb4f415,'top':_0x5e0768,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x210114(0x244)][_0x210114(0x210)](_0x1cbf77),this[_0x210114(0x289)][_0x210114(0x232)](_0x1cbf77,E[_0x210114(0x228)]);}[_0x3d2806(0x1fd)](_0x18fc67){const _0x400de1=_0x18fc67[0x0],_0x294bc4=_0x400de1[0x0],_0x4a5126=_0x400de1[0x2],{x:_0x3ee661,y:_0x309a1f}=_0x294bc4,{x:_0x12a2ca,y:_0x12e0c0}=_0x4a5126;return{'left':_0x3ee661,'top':_0x309a1f,'width':_0x12a2ca-_0x3ee661,'height':_0x12e0c0-_0x309a1f};}[_0x3d2806(0x11f)](){const _0x2f52e2=_0x3d2806,{scaleX:_0x33c8d3,scaleY:_0x4053c7}=this[_0x2f52e2(0x289)][_0x2f52e2(0x157)]();return Math[_0x2f52e2(0x2e9)](_0x33c8d3,_0x4053c7);}}var ft=Object[_0x3d2806(0x19f)],vt=(_0x2c2a7e,_0x4bb878,_0x308350,_0x2f90eb)=>{const _0x723359=_0x3d2806;for(var _0x4ce1d8=_0x2f90eb>0x1?void 0x0:_0x2f90eb?ft(_0x4bb878,_0x308350):_0x4bb878,_0x56bffc=_0x2c2a7e[_0x723359(0x83)]-0x1,_0x414fab;_0x56bffc>=0x0;_0x56bffc--)(_0x414fab=_0x2c2a7e[_0x56bffc])&&(_0x4ce1d8=_0x414fab(_0x4ce1d8)||_0x4ce1d8);return _0x4ce1d8;},W=(_0x5d3477,_0x41836d)=>(_0x2d17c8,_0x19abf2)=>_0x41836d(_0x2d17c8,_0x19abf2,_0x5d3477);let fe=class extends a[_0x3d2806(0x96)]{constructor(_0x45c8e3,_0x29b553,_0x15a458,_0x2cec8f,_0x182d24){const _0x1fb0db=_0x3d2806;super(),h(this,_0x1fb0db(0xa4),[]),h(this,'_cursors',[]),(this[_0x1fb0db(0x19d)]=_0x45c8e3,this[_0x1fb0db(0x312)]=_0x29b553,this['_collabCursorController']=_0x15a458,this[_0x1fb0db(0xa3)]=_0x2cec8f,this[_0x1fb0db(0xb3)]=_0x182d24,this['_init']());}[_0x3d2806(0x1ad)](){const _0x325fba=_0x3d2806,_0x1bb6fd=this[_0x325fba(0x19d)][_0x325fba(0x211)],_0x2c1f87=this[_0x325fba(0x312)];this[_0x325fba(0x94)](d[_0x325fba(0xbd)]([this[_0x325fba(0x1f9)][_0x325fba(0xe2)](_0x1bb6fd),this[_0x325fba(0xb3)][_0x325fba(0x155)]])[_0x325fba(0x2c6)]($[_0x325fba(0xc3)](([_0x359c9c,_0x59b2a4])=>({'skeleton':_0x2c1f87[_0x325fba(0x13b)](),'cursors':[..._0x359c9c['values']()][_0x325fba(0x24e)](_0x17630c=>({..._0x17630c,'color':this[_0x325fba(0xb3)]['getColorFromTheme'](_0x17630c[_0x325fba(0x22a)])}))})))[_0x325fba(0x124)](_0xe9e735=>{const _0x522c37=_0x325fba;if(this[_0x522c37(0x1f5)](),_0xe9e735){const {skeleton:_0x50b50c,cursors:_0x40306f}=_0xe9e735;this[_0x522c37(0xf7)](_0x50b50c,_0x40306f);}})),this[_0x325fba(0x117)](),this[_0x325fba(0x15f)]();}[_0x3d2806(0xf7)](_0x1e0d3e,_0x2a955a){const _0xe29035=_0x3d2806,{scene:_0x436ff4,mainComponent:_0xd37717}=this[_0xe29035(0x19d)],_0x56a542=_0x2a955a[_0xe29035(0xc3)](_0x30b404=>new De(_0x30b404,_0x436ff4,_0x1e0d3e,_0xd37717));this[_0xe29035(0xa4)]=_0x56a542,this[_0xe29035(0x1cc)]=_0x2a955a;}['_refreshCollabCursors'](){const _0x1c6d94=_0x3d2806;this[_0x1c6d94(0x1f5)]();const {scene:_0x39ac88,mainComponent:_0x42737c}=this['_context'],_0x40ef06=this['_docSkeletonManagerService'][_0x1c6d94(0x13b)](),_0x100ce0=this[_0x1c6d94(0x1cc)][_0x1c6d94(0xc3)](_0x3c646e=>new De(_0x3c646e,_0x39ac88,_0x40ef06,_0x42737c));this[_0x1c6d94(0xa4)]=_0x100ce0;}[_0x3d2806(0x1f5)](){const _0x4b31ed=_0x3d2806;this['_cursorShapes'][_0x4b31ed(0x246)](_0x2170cd=>_0x2170cd[_0x4b31ed(0xe3)]()),this[_0x4b31ed(0xa4)]=[];}[_0x3d2806(0x15f)](){const _0x55496a=_0x3d2806,_0x387056=[E[_0x55496a(0x2c5)]['id']];this[_0x55496a(0x94)](this[_0x55496a(0xa3)][_0x55496a(0xf1)](_0x47641f=>{const _0x20cd8c=_0x55496a;_0x387056['includes'](_0x47641f['id'])&&_0x47641f['params']['unitId']===this[_0x20cd8c(0x19d)][_0x20cd8c(0x211)]&&this[_0x20cd8c(0x1f6)]();}));}[_0x3d2806(0x117)](){const _0x4818d4=_0x3d2806;this[_0x4818d4(0x94)](a[_0x4818d4(0x300)](this['_context'][_0x4818d4(0x1c3)][_0x4818d4(0x2f9)])[_0x4818d4(0x2c6)]($[_0x4818d4(0xda)](_0x7501e2=>_0x7501e2['type']===p[_0x4818d4(0x1ae)][_0x4818d4(0x218)]),$['throttleTime'](0x10))[_0x4818d4(0x124)](()=>{const _0x5d702d=_0x4818d4;this[_0x5d702d(0x1f6)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x3d2806(0x1a5)])),W(0x2,a[_0x3d2806(0xb9)](x)),W(0x3,a[_0x3d2806(0xbb)]),W(0x4,a[_0x3d2806(0xb9)](a[_0x3d2806(0x137)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x3d2806(0x299)]{constructor(_0xd363e3,_0x2ac10e){const _0x5bb9ba=_0x3d2806;super(_0xd363e3,_0x2ac10e),h(this,_0x5bb9ba(0x303)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x5bb9ba(0xfa),_0x5bb9ba(0x1d5)),h(this,_0x5bb9ba(0x1c5)),(_0x2ac10e&&this['setShapeProps'](_0x2ac10e),this[_0x5bb9ba(0x2b6)][_0x5bb9ba(0xf2)](()=>this[_0x5bb9ba(0x15a)]({'hovered':!0x0})),this[_0x5bb9ba(0xfe)][_0x5bb9ba(0xf2)](()=>this[_0x5bb9ba(0x15a)]({'hovered':!0x1})));}[_0x3d2806(0x15a)](_0x3d1dfa){const _0x59ff85=_0x3d2806;var _0x277851,_0x3b689f,_0x2b0737,_0x24e3c2,_0x3f8060,_0x40ec03;this[_0x59ff85(0x303)]=(_0x277851=_0x3d1dfa['color'])!=null?_0x277851:this[_0x59ff85(0x303)],this[_0x59ff85(0x29d)]=(_0x3b689f=_0x3d1dfa['hovered'])!=null?_0x3b689f:this['_hovered'],this[_0x59ff85(0x2de)]=(_0x2b0737=_0x3d1dfa[_0x59ff85(0x27b)])!=null?_0x2b0737:this[_0x59ff85(0x2de)],this['_name']=(_0x24e3c2=_0x3d1dfa[_0x59ff85(0x1b5)])!=null?_0x24e3c2:this['_name'],this[_0x59ff85(0xfa)]=(_0x3f8060=_0x3d1dfa[_0x59ff85(0x1ef)])!=null?_0x3f8060:this[_0x59ff85(0xfa)],this[_0x59ff85(0x1c5)]=(_0x40ec03=_0x3d1dfa[_0x59ff85(0x1c1)])!=null?_0x40ec03:this[_0x59ff85(0x1c5)],this['transformByState']({'width':_0x3d1dfa[_0x59ff85(0x14d)],'height':_0x3d1dfa[_0x59ff85(0x18f)]});}[_0x3d2806(0x26f)](_0x54b2ff){const _0xb00e95=_0x3d2806,{row:_0x358c17,column:_0x539b74}=_0x54b2ff;if(_0x358c17>=this[_0xb00e95(0x2de)][_0xb00e95(0x14b)]&&_0x358c17<=this[_0xb00e95(0x2de)][_0xb00e95(0x178)]&&_0x539b74>=this[_0xb00e95(0x2de)][_0xb00e95(0x235)]&&_0x539b74<=this[_0xb00e95(0x2de)][_0xb00e95(0x30c)]){this[_0xb00e95(0x15a)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3d2806(0x134)](_0x2a57fd){return!0x1;}[_0x3d2806(0x203)](_0x4820b2){const _0x5b3549=_0x3d2806;p['Rect'][_0x5b3549(0xad)](_0x4820b2,{'width':this[_0x5b3549(0x14d)],'height':this[_0x5b3549(0x18f)],'strokeWidth':mt,'stroke':this[_0x5b3549(0x303)],'evented':!0x1,'fill':this[_0x5b3549(0x1c5)]}),this[_0x5b3549(0x29d)]&&(_0x4820b2[_0x5b3549(0x208)](),_0x4820b2[_0x5b3549(0x141)](0x1,0x0,0x0,0x1,this[_0x5b3549(0x14d)],this[_0x5b3549(0xfa)]==='bottom'?0x0:-0x14),ee[_0x5b3549(0xad)](_0x4820b2,{'text':this[_0x5b3549(0x297)],'color':this[_0x5b3549(0x303)]}),_0x4820b2[_0x5b3549(0x1e9)]());}}var Ct=Object[_0x3d2806(0x19f)],pt=(_0x284abe,_0xf1e0d1,_0x142685,_0x422d62)=>{const _0x3c1e99=_0x3d2806;for(var _0x24fe6f=_0x422d62>0x1?void 0x0:_0x422d62?Ct(_0xf1e0d1,_0x142685):_0xf1e0d1,_0x26db5c=_0x284abe[_0x3c1e99(0x83)]-0x1,_0x4b4fc2;_0x26db5c>=0x0;_0x26db5c--)(_0x4b4fc2=_0x284abe[_0x26db5c])&&(_0x24fe6f=_0x4b4fc2(_0x24fe6f)||_0x24fe6f);return _0x24fe6f;},ae=(_0x5f0c3c,_0x2dec03)=>(_0x29410a,_0x4884e2)=>_0x2dec03(_0x29410a,_0x4884e2,_0x5f0c3c);const Et=0x1389;let ve=class extends a[_0x3d2806(0x96)]{constructor(_0x5942d5,_0x3c6aa6,_0x209b9b,_0x7b4470){const _0x37510c=_0x3d2806;super(),h(this,_0x37510c(0x1cc),new Set()),h(this,_0x37510c(0x1ca),null),(this[_0x37510c(0x19d)]=_0x5942d5,this[_0x37510c(0x21a)]=_0x3c6aa6,this[_0x37510c(0x1f9)]=_0x209b9b,this[_0x37510c(0xb3)]=_0x7b4470,this[_0x37510c(0x1ad)]());}['_init'](){const _0xa4ab54=_0x3d2806;this[_0xa4ab54(0x21a)][_0xa4ab54(0xb5)][_0xa4ab54(0x2c6)]($['takeUntil'](this[_0xa4ab54(0x139)]),$[_0xa4ab54(0x88)](_0x181a42=>{const _0x43891b=_0xa4ab54;if(_0x181a42){const _0x598370=_0x181a42[_0x43891b(0x220)];return d[_0x43891b(0xbd)](this[_0x43891b(0x1f9)]['getCollabCursors$'](this[_0x43891b(0x19d)][_0x43891b(0x211)]),this[_0x43891b(0xb3)][_0x43891b(0x155)])[_0x43891b(0x2c6)]($[_0x43891b(0xc3)](([_0x458a45,_0x18ba97])=>{const _0xbae9bc=_0x43891b,_0x484def=new Map();return _0x458a45[_0xbae9bc(0x246)]((_0x73510a,_0x525197)=>{const _0x14ff4c=_0xbae9bc;if(_0x73510a[_0x14ff4c(0x2fd)]===_0x598370){const _0x56cc85={..._0x73510a};_0x56cc85[_0x14ff4c(0x22a)]=this['_themeService']['getColorFromTheme'](_0x73510a['color']),_0x484def['set'](_0x525197,_0x56cc85);}}),{'skeleton':_0x181a42,'cursors':_0x484def};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x33e627,cursors:_0x7bf794})=>{const _0x23835e=_0xa4ab54;this[_0x23835e(0x1f5)](),_0x33e627&&this[_0x23835e(0xf7)](_0x33e627,_0x7bf794);}),this[_0xa4ab54(0x21a)][_0xa4ab54(0xb5)]['subscribe'](_0x47ebc9=>{const _0xdd3f1d=_0xa4ab54;if(_0x47ebc9==null)return;const {skeleton:_0x84e2ac}=_0x47ebc9,{scene:_0x4f0bfb}=this[_0xdd3f1d(0x19d)];_0x4f0bfb[_0xdd3f1d(0x1d3)]['subscribeEvent'](a['debounce'](_0x4a9e7e=>{const _0x22303d=_0xdd3f1d;var _0x138feb,_0x425e6b;const {offsetX:_0x27d7ec,offsetY:_0x1d8cac}=_0x4a9e7e,{x:_0x25be1d,y:_0x302102}=_0x4f0bfb['getRelativeToViewportCoord'](p[_0x22303d(0xd6)][_0x22303d(0x192)]([_0x27d7ec,_0x1d8cac])),{scaleX:_0x388627,scaleY:_0xe58ed3}=_0x4f0bfb[_0x22303d(0x157)](),_0x32d74d=_0x4f0bfb['getViewport'](p[_0x22303d(0x1e8)][_0x22303d(0x1ff)]),_0x545599=_0x4f0bfb['getVpScrollXYInfoByPosToVp'](p[_0x22303d(0xd6)][_0x22303d(0x192)]([_0x25be1d,_0x302102]),_0x32d74d),_0x2b1f58=_0x84e2ac[_0x22303d(0x311)](_0x27d7ec,_0x1d8cac,_0x388627,_0xe58ed3,_0x545599);((_0x138feb=this['_lastPointer'])==null?void 0x0:_0x138feb['column'])===_0x2b1f58[_0x22303d(0x158)]&&((_0x425e6b=this[_0x22303d(0x1ca)])==null?void 0x0:_0x425e6b[_0x22303d(0x221)])===_0x2b1f58[_0x22303d(0x221)]||this[_0x22303d(0x1cc)][_0x22303d(0x246)](_0x5e13ca=>{const _0xc15c86=_0x22303d;_0x5e13ca[_0xc15c86(0x26f)](_0x2b1f58);});},0x64));});}[_0x3d2806(0xf7)](_0x6ece3f,_0x3145ad){const _0x11f728=_0x3d2806;var _0x151db6;const _0xe5331=(_0x151db6=this['_sheetSkeletonManagerService'][_0x11f728(0x276)]())==null?void 0x0:_0x151db6[_0x11f728(0x2e1)];if(!_0xe5331)return;const _0x1c0144=this[_0x11f728(0xc7)]();if(!_0x1c0144)return;this[_0x11f728(0x1cc)][_0x11f728(0x246)](_0x19a1a0=>{_0x19a1a0['makeDirty']();});const {scene:_0x3d179a}=_0x1c0144,_0x3e8cfa=bt(Array[_0x11f728(0x292)](_0x3145ad[_0x11f728(0x293)]()))[_0x11f728(0xc3)](_0x17998f=>{const _0x39cbd7=_0x11f728,{color:_0xcee21,range:_0x55c0d2,name:_0x182339,selection:_0x45ffc8,sheetID:_0x3f7837}=_0x17998f,{startColumn:_0x598878,startRow:_0x3bab77,endColumn:_0x2d570b,endRow:_0x3f04e9}=_0x55c0d2,_0x243fb9=X[_0x39cbd7(0x259)](_0x3bab77,_0x598878,_0x3d179a,_0xe5331),_0x16aa09=X[_0x39cbd7(0x259)](_0x3f04e9,_0x2d570b,_0x3d179a,_0xe5331),{columnHeaderHeightAndMarginTop:_0x10b32d}=_0xe5331,{startX:_0x242879,startY:_0x4a2589}=_0x243fb9,{endX:_0x123094,endY:_0x5d55e2}=_0x16aa09,_0x12f080=_0x123094-_0x242879,_0x3c528b=_0x5d55e2-_0x4a2589,_0x238866={'labelPosition':_0x4a2589-_0x10b32d>=K?_0x39cbd7(0x1d5):_0x39cbd7(0xb8),'sheetID':_0x3f7837,'range':_0x55c0d2,'color':_0xcee21,'name':_0x182339,'selection':_0x45ffc8,'left':_0x242879,'top':_0x4a2589,'width':_0x12f080,'height':_0x3c528b,'evented':!0x1,'zIndex':Et};return new we(_0x182339,_0x238866);});_0x3d179a['addObjects'](_0x3e8cfa,gt),this[_0x11f728(0x1cc)]=new Set(_0x3e8cfa);}[_0x3d2806(0x1f5)](){const _0x14a56e=_0x3d2806;var _0x21f877;(_0x21f877=this[_0x14a56e(0x1cc)])==null||_0x21f877['forEach'](_0x33cfb1=>_0x33cfb1[_0x14a56e(0xe3)]());}[_0x3d2806(0xc7)](){const _0x11a373=_0x3d2806;return X[_0x11a373(0x11a)](this[_0x11a373(0x19d)][_0x11a373(0x12a)],this[_0x11a373(0x19d)]);}};ve=pt([ae(0x1,a[_0x3d2806(0xb9)](X[_0x3d2806(0x1c6)])),ae(0x2,a[_0x3d2806(0xb9)](x)),ae(0x3,a[_0x3d2806(0xb9)](a['ThemeService']))],ve);function bt(_0x4a5e1a){const _0x5942a2=_0x3d2806,_0xc5d379=new Map();return _0x4a5e1a[_0x5942a2(0x246)](_0x33db2e=>{const _0x4fa5b0=_0x5942a2;if(_0xc5d379[_0x4fa5b0(0x2c2)](_0x33db2e[_0x4fa5b0(0x17b)])){const _0x52def7=_0xc5d379[_0x4fa5b0(0x107)](_0x33db2e[_0x4fa5b0(0x17b)]);_0x52def7[_0x4fa5b0(0x1b5)]+=',\x20'+_0x33db2e['name'];}else _0xc5d379['set'](_0x33db2e[_0x4fa5b0(0x17b)],_0x33db2e);}),Array['from'](_0xc5d379['values']());}var b=function(){const _0x2804fc=_0x3d2806;return b=Object[_0x2804fc(0x2a3)]||function(_0x4c80d0){const _0x3fd7c7=_0x2804fc;for(var _0x22d136,_0x3d4d0d=0x1,_0xbc182e=arguments[_0x3fd7c7(0x83)];_0x3d4d0d<_0xbc182e;_0x3d4d0d++){_0x22d136=arguments[_0x3d4d0d];for(var _0x47dd88 in _0x22d136)Object[_0x3fd7c7(0x21e)]['hasOwnProperty'][_0x3fd7c7(0x219)](_0x22d136,_0x47dd88)&&(_0x4c80d0[_0x47dd88]=_0x22d136[_0x47dd88]);}return _0x4c80d0;},b[_0x2804fc(0x13c)](this,arguments);},Ot=function(_0x20b40d,_0x38876c){const _0x130d96=_0x3d2806;var _0x578f77={};for(var _0x2cae56 in _0x20b40d)Object[_0x130d96(0x21e)][_0x130d96(0x2ee)][_0x130d96(0x219)](_0x20b40d,_0x2cae56)&&_0x38876c[_0x130d96(0x1d2)](_0x2cae56)<0x0&&(_0x578f77[_0x2cae56]=_0x20b40d[_0x2cae56]);if(_0x20b40d!=null&&typeof Object[_0x130d96(0x148)]=='function'){for(var _0x370599=0x0,_0x2cae56=Object[_0x130d96(0x148)](_0x20b40d);_0x370599<_0x2cae56['length'];_0x370599++)_0x38876c[_0x130d96(0x1d2)](_0x2cae56[_0x370599])<0x0&&Object[_0x130d96(0x21e)][_0x130d96(0x252)][_0x130d96(0x219)](_0x20b40d,_0x2cae56[_0x370599])&&(_0x578f77[_0x2cae56[_0x370599]]=_0x20b40d[_0x2cae56[_0x370599]]);}return _0x578f77;},pe=M[_0x3d2806(0x2ef)](function(_0x12571c,_0x259025){const _0x491c08=_0x3d2806;var _0x5285cf=_0x12571c[_0x491c08(0x9b)],_0x1ff0c5=_0x12571c['id'],_0x284961=_0x12571c['className'],_0x5a324a=_0x12571c[_0x491c08(0x1f8)],_0xc805b7=Ot(_0x12571c,[_0x491c08(0x9b),'id',_0x491c08(0xb4),'extend']),_0x27f88a=_0x491c08(0x169)[_0x491c08(0x1f3)](_0x1ff0c5,'\x20')[_0x491c08(0x1f3)](_0x284961||'')[_0x491c08(0x183)](),_0x57d9dd=M[_0x491c08(0xdc)]('_'[_0x491c08(0x1f3)](Dt()));return Ae(_0x5285cf,''[_0x491c08(0x1f3)](_0x1ff0c5),{'defIds':_0x5285cf[_0x491c08(0x278)],'idSuffix':_0x57d9dd[_0x491c08(0x199)]},b({'ref':_0x259025,'className':_0x27f88a},_0xc805b7),_0x5a324a);});function Ae(_0x57446a,_0x55b95b,_0x199655,_0x48e514,_0x574051){const _0x297345=_0x3d2806;return M['createElement'](_0x57446a[_0x297345(0x1dc)],b(b({'key':_0x55b95b},Tt(_0x57446a,_0x199655,_0x574051)),_0x48e514),(Rt(_0x57446a,_0x199655)['children']||[])[_0x297345(0xc3)](function(_0x74315d,_0x1ef996){const _0x1b78d5=_0x297345;return Ae(_0x74315d,''[_0x1b78d5(0x1f3)](_0x55b95b,'-')['concat'](_0x57446a[_0x1b78d5(0x1dc)],'-')[_0x1b78d5(0x1f3)](_0x1ef996),_0x199655,void 0x0,_0x574051);}));}function Tt(_0x5d9c1,_0x5d7d08,_0x15db0f){const _0x3d6923=_0x3d2806;var _0x2f1cb5=b({},_0x5d9c1[_0x3d6923(0x265)]);_0x15db0f!=null&&_0x15db0f[_0x3d6923(0x1f1)]&&_0x2f1cb5[_0x3d6923(0x304)]===_0x3d6923(0x1f1)&&(_0x2f1cb5[_0x3d6923(0x304)]=_0x15db0f[_0x3d6923(0x1f1)]),_0x5d9c1[_0x3d6923(0x1dc)]===_0x3d6923(0xe0)&&_0x2f1cb5['id']&&(_0x2f1cb5['id']=_0x2f1cb5['id']+_0x5d7d08['idSuffix']),Object[_0x3d6923(0x2eb)](_0x2f1cb5)[_0x3d6923(0x246)](function(_0x21a12d){const _0x1d8b14=_0x3d6923;var _0x293eb1=_0x21a12d[0x0],_0x42baba=_0x21a12d[0x1];_0x293eb1===_0x1d8b14(0xe0)&&typeof _0x42baba=='string'&&(_0x2f1cb5[_0x293eb1]=_0x42baba[_0x1d8b14(0x109)](/url\(#(.*)\)/,_0x1d8b14(0x179)['concat'](_0x5d7d08[_0x1d8b14(0x215)],')')));});var _0x2a85e0=_0x5d7d08[_0x3d6923(0x278)];return!_0x2a85e0||_0x2a85e0['length']===0x0||(_0x5d9c1[_0x3d6923(0x1dc)]===_0x3d6923(0x22c)&&_0x2f1cb5[_0x3d6923(0x149)]&&(_0x2f1cb5[_0x3d6923(0x149)]=_0x2f1cb5['xlink:href']+_0x5d7d08[_0x3d6923(0x215)]),Object[_0x3d6923(0x2eb)](_0x2f1cb5)[_0x3d6923(0x246)](function(_0x4b8138){const _0x88fe26=_0x3d6923;var _0x4dd6a8=_0x4b8138[0x0],_0x10a83c=_0x4b8138[0x1];typeof _0x10a83c==_0x88fe26(0x258)&&(_0x2f1cb5[_0x4dd6a8]=_0x10a83c[_0x88fe26(0x109)](/url\(#(.*)\)/,_0x88fe26(0x179)[_0x88fe26(0x1f3)](_0x5d7d08[_0x88fe26(0x215)],')')));})),_0x2f1cb5;}function Rt(_0x13b47a,_0x43cf51){const _0x3b6707=_0x3d2806;var _0x3128e4,_0x1409de=_0x43cf51[_0x3b6707(0x278)];return!_0x1409de||_0x1409de[_0x3b6707(0x83)]===0x0?_0x13b47a:_0x13b47a[_0x3b6707(0x1dc)]===_0x3b6707(0x1ac)&&(!((_0x3128e4=_0x13b47a[_0x3b6707(0x11c)])===null||_0x3128e4===void 0x0)&&_0x3128e4[_0x3b6707(0x83)])?b(b({},_0x13b47a),{'children':_0x13b47a[_0x3b6707(0x11c)][_0x3b6707(0xc3)](function(_0x1ec91c){const _0x6be1f7=_0x3b6707;return typeof _0x1ec91c[_0x6be1f7(0x265)]['id']==_0x6be1f7(0x258)&&_0x1409de&&_0x1409de[_0x6be1f7(0x255)](_0x1ec91c[_0x6be1f7(0x265)]['id'])?b(b({},_0x1ec91c),{'attrs':b(b({},_0x1ec91c['attrs']),{'id':_0x1ec91c[_0x6be1f7(0x265)]['id']+_0x43cf51['idSuffix']})}):_0x1ec91c;})}):_0x13b47a;}function Dt(){const _0x569ba4=_0x3d2806;return Math[_0x569ba4(0x2e7)]()[_0x569ba4(0x302)](0x24)[_0x569ba4(0x285)](0x2,0x8);}pe[_0x3d2806(0xf9)]=_0x3d2806(0x1b8);var Ut={'tag':_0x3d2806(0x1cb),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2806(0x125),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x3d2806(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x3d2806(0x26a),'attrs':{'stroke':'currentColor','d':_0x3d2806(0xf6),'strokeLinecap':_0x3d2806(0x2ff),'strokeLinejoin':_0x3d2806(0x2ff),'strokeWidth':1.2}}]},{'tag':_0x3d2806(0x1ac),'attrs':{},'children':[{'tag':_0x3d2806(0x241),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3d2806(0x26a),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M['forwardRef'](function(_0x591529,_0x53022d){const _0x843c5f=_0x3d2806;return M[_0x843c5f(0x16a)](pe,Object['assign']({},_0x591529,{'id':'off-line-icon','ref':_0x53022d,'icon':Ut}));});ye[_0x3d2806(0xf9)]=_0x3d2806(0x205);var Nt={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2806(0x125),'viewBox':_0x3d2806(0x170),'width':_0x3d2806(0x1c2),'height':_0x3d2806(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d2806(0x243)},'children':[{'tag':'path','attrs':{'stroke':_0x3d2806(0x262),'d':_0x3d2806(0x2ab),'strokeLinecap':'round','strokeLinejoin':_0x3d2806(0x2ff),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d2806(0x241),'attrs':{'id':_0x3d2806(0x1c9)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x3d2806(0x19e),'transform':_0x3d2806(0x2fe)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M['forwardRef'](function(_0x576c7a,_0x52157c){const _0x447e83=_0x3d2806;return M[_0x447e83(0x16a)](pe,Object['assign']({},_0x576c7a,{'id':_0x447e83(0x23f),'ref':_0x52157c,'icon':Nt}));});$e[_0x3d2806(0xf9)]=_0x3d2806(0x168);function Mt(_0x5c78c5){const _0x266694=_0x3d2806;switch(_0x5c78c5){case u['CollaborationStatus'][_0x266694(0x30f)]:return _0x266694(0x257);case u[_0x266694(0x1a4)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus']['FETCH_MISS']:return _0x266694(0x277);case u[_0x266694(0x1a4)]['NOT_COLLAB']:return _0x266694(0xcc);case u[_0x266694(0x1a4)][_0x266694(0x225)]:case u[_0x266694(0x1a4)][_0x266694(0x98)]:return'collabStatus.syncing';case u[_0x266694(0x1a4)][_0x266694(0x20d)]:case u[_0x266694(0x1a4)][_0x266694(0x2a4)]:return _0x266694(0x17f);}}function xe(_0x34f6e9){const _0x24afe2=_0x3d2806,{status$:_0x58b4b3}=_0x34f6e9,_0x3ddcc6=O[_0x24afe2(0x2cf)](_0x58b4b3,u['CollaborationStatus'][_0x24afe2(0xfd)]),_0x5da7d3=O[_0x24afe2(0x213)](a[_0x24afe2(0x26e)]),_0x37291e=O[_0x24afe2(0x213)](u[_0x24afe2(0x24d)]),_0x139829=_0x3ddcc6!==u[_0x24afe2(0x1a4)][_0x24afe2(0x30f)],_0x219259=_0x5da7d3['t'](Mt(_0x3ddcc6)),_0x5421c2=_0x139829?P[_0x24afe2(0x2e2)]($e,{}):P['jsx'](ye,{}),_0x335887=M[_0x24afe2(0xe6)](()=>{const _0x87ca0a=_0x24afe2;_0x139829||_0x37291e[_0x87ca0a(0x267)]();},[_0x139829,_0x37291e]);function _0x4674e6(){const _0x2bff46=_0x24afe2;return P[_0x2bff46(0x190)](_0x2bff46(0xac),{'className':_0x2bff46(0x1be),'onClick':_0x335887,'children':[P[_0x2bff46(0x2e2)](_0x2bff46(0xac),{'className':D['clsx'](_0x2bff46(0x173),{'univer-text-green-500':_0x139829,'univer-text-red-500':!_0x139829}),'children':_0x5421c2}),P[_0x2bff46(0x2e2)](_0x2bff46(0xac),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x219259})]});}return _0x139829?_0x4674e6():P[_0x24afe2(0x2e2)](D[_0x24afe2(0x2b3)],{'title':_0x5da7d3['t'](_0x24afe2(0x122)),'children':_0x4674e6()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x1a9646,_0x3dc581,_0x4746b4,_0x2be3d3)=>{const _0x10dd78=_0x3d2806;for(var _0x87231=_0x2be3d3>0x1?void 0x0:_0x2be3d3?Lt(_0x3dc581,_0x4746b4):_0x3dc581,_0x346c0e=_0x1a9646[_0x10dd78(0x83)]-0x1,_0x55063f;_0x346c0e>=0x0;_0x346c0e--)(_0x55063f=_0x1a9646[_0x346c0e])&&(_0x87231=_0x55063f(_0x87231)||_0x87231);return _0x87231;},V=(_0x3a26bb,_0x40d03b)=>(_0x2d4bba,_0x5caa95)=>_0x40d03b(_0x2d4bba,_0x5caa95,_0x3a26bb);exports[_0x3d2806(0x2e8)]=class extends a['Disposable']{constructor(_0x2d3ca2,_0x3880a2,_0x3d91fa,_0x395b33){const _0x51c8c0=_0x3d2806;super(),h(this,_0x51c8c0(0x2d4),new d[(_0x51c8c0(0xec))](u['CollaborationStatus'][_0x51c8c0(0xfd)])),(this[_0x51c8c0(0x1a8)]=_0x2d3ca2,this[_0x51c8c0(0x193)]=_0x3880a2,this[_0x51c8c0(0x30b)]=_0x3d91fa,this['_uiPartsService']=_0x395b33,this[_0x51c8c0(0x28d)](),this[_0x51c8c0(0xa7)]());}[_0x3d2806(0xa7)](){const _0x64b47d=_0x3d2806;this[_0x64b47d(0x94)](this['_univerInstanceService'][_0x64b47d(0x264)][_0x64b47d(0x2c6)](d[_0x64b47d(0x88)](()=>{const _0x28f11e=_0x64b47d,_0x9ed286=this[_0x28f11e(0x1a8)][_0x28f11e(0x136)]();return _0x9ed286?this[_0x28f11e(0x30b)]['getCollabEntity$'](_0x9ed286['getUnitId']()):d['of'](null);}),d[_0x64b47d(0x88)](_0x12523e=>_0x12523e?_0x12523e[_0x64b47d(0x29f)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x64b47d(0x124)](_0x407809=>{const _0x5ef6b9=_0x64b47d;this[_0x5ef6b9(0x2d4)]['next'](_0x407809);}));}[_0x3d2806(0x28d)](){const _0x5676fc=_0x3d2806;this[_0x5676fc(0x94)](this[_0x5676fc(0x309)][_0x5676fc(0x1a6)](O[_0x5676fc(0xea)]['HEADER_MENU'],()=>O[_0x5676fc(0x135)](wt({'status$':this[_0x5676fc(0x2d4)][_0x5676fc(0x2cd)]()}),this[_0x5676fc(0x193)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x3d2806(0x15b)]),V(0x1,a['Inject'](a['Injector'])),V(0x2,a[_0x3d2806(0xb9)](u[_0x3d2806(0xc8)])),V(0x3,O[_0x3d2806(0x1d1)])],exports[_0x3d2806(0x2e8)]);function wt(_0x4d4658){const {status$:_0x4e2357}=_0x4d4658;return function(){const _0x2c61dd=_0x2d87;return P[_0x2c61dd(0x2e2)](xe,{'status$':_0x4e2357});};}var At=Object[_0x3d2806(0x19f)],yt=(_0x2037a9,_0x3d637d,_0x5306b0,_0x9b39b)=>{const _0x2df8c4=_0x3d2806;for(var _0x4be32f=_0x9b39b>0x1?void 0x0:_0x9b39b?At(_0x3d637d,_0x5306b0):_0x3d637d,_0x2a0ca6=_0x2037a9[_0x2df8c4(0x83)]-0x1,_0x4b143a;_0x2a0ca6>=0x0;_0x2a0ca6--)(_0x4b143a=_0x2037a9[_0x2a0ca6])&&(_0x4be32f=_0x4b143a(_0x4be32f)||_0x4be32f);return _0x4be32f;},y=(_0x2c4d4a,_0x13a9f5)=>(_0x2f5a44,_0x13a44e)=>_0x13a9f5(_0x2f5a44,_0x13a44e,_0x2c4d4a);let q=class extends a['Disposable']{constructor(_0x27e9ec,_0xe58ff,_0x2c5047,_0x5bcd58,_0x2f6591,_0x495871){const _0x36a454=_0x3d2806;super(),this[_0x36a454(0x1b9)]=_0x27e9ec,this[_0x36a454(0x152)]=_0xe58ff,this[_0x36a454(0xd3)]=_0x2c5047,this[_0x36a454(0xe5)]=_0x5bcd58,this[_0x36a454(0x16f)]=_0x2f6591,this[_0x36a454(0x14a)]=_0x495871,this[_0x36a454(0xb7)](),this[_0x36a454(0x222)]();}['_setupBeforeClosingHandler'](){const _0x295f26=_0x3d2806;this[_0x295f26(0x94)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x5a8e6d=_0x295f26;if(this['_localCacheService'][_0x5a8e6d(0x1bc)]['size'])return this['_localeService']['t'](_0x5a8e6d(0x2ec));}));}[_0x3d2806(0x222)](){const _0x46a388=_0x3d2806;this[_0x46a388(0x94)](this[_0x46a388(0xd3)][_0x46a388(0x19c)][_0x46a388(0x124)](_0x300355=>{const _0x21ad07=_0x46a388;_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0xcb)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this[_0x21ad07(0x14a)]['t'](_0x21ad07(0x286))}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x19a)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this['_localeService']['t'](_0x21ad07(0x132))}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x1d7)]&&this[_0x21ad07(0x16f)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x21ad07(0x1fa)),'type':'error','duration':0x0}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x1a1)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)]['Error'],'content':this[_0x21ad07(0x14a)]['t'](_0x21ad07(0x132))+'('+_0x300355[_0x21ad07(0x87)]+')'}),_0x300355['id']===u['CollaborationUIEventId'][_0x21ad07(0x260)]&&this['_messageService']['show']({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this['_localeService']['t'](_0x300355[_0x21ad07(0x87)]||'')}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x200)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x20a)],'content':this[_0x21ad07(0x14a)]['t']('session.will-retry')}),_0x300355['id']===u[_0x21ad07(0x176)][_0x21ad07(0x2bb)]&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D[_0x21ad07(0x172)][_0x21ad07(0x1bd)],'content':this[_0x21ad07(0x14a)]['t']('session.connection-failed')}),_0x300355['id']===u[_0x21ad07(0x176)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x21ad07(0xe5)][_0x21ad07(0xbc)]({'type':D['MessageType'][_0x21ad07(0x1bd)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,O[_0x3d2806(0x196)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x3d2806(0xb9)](u[_0x3d2806(0x91)])),y(0x3,O[_0x3d2806(0x1cd)]),y(0x4,O[_0x3d2806(0x120)]),y(0x5,a['Inject'](a[_0x3d2806(0x26e)]))],q);const $t=_0x3d2806(0x181),Ue={},Ee=a['createIdentifier'](_0x3d2806(0x1ea));var xt=Object[_0x3d2806(0x19f)],Bt=(_0x43d5f5,_0x36bd1b,_0x4d50e9,_0x1c99fc)=>{const _0x5f131c=_0x3d2806;for(var _0x2055f4=_0x1c99fc>0x1?void 0x0:_0x1c99fc?xt(_0x36bd1b,_0x4d50e9):_0x36bd1b,_0x17a6e8=_0x43d5f5[_0x5f131c(0x83)]-0x1,_0x514f97;_0x17a6e8>=0x0;_0x17a6e8--)(_0x514f97=_0x43d5f5[_0x17a6e8])&&(_0x2055f4=_0x514f97(_0x2055f4)||_0x2055f4);return _0x2055f4;},F=(_0x37e67d,_0x3b5960)=>(_0x293e1e,_0x278aea)=>_0x3b5960(_0x293e1e,_0x278aea,_0x37e67d);exports[_0x3d2806(0x305)]=class extends a[_0x3d2806(0x96)]{constructor(_0xf1e4b,_0x32468a,_0x23ebe2,_0x5603af,_0x16e02a){const _0x10f1de=_0x3d2806;super(),this[_0x10f1de(0x171)]=_0xf1e4b,this['_logService']=_0x32468a,this['_commandService']=_0x23ebe2,this[_0x10f1de(0x25c)]=_0x5603af,_0x16e02a?_0x16e02a==null||_0x16e02a[_0x10f1de(0xa9)]()[_0x10f1de(0x201)](()=>this['_init']()):(this[_0x10f1de(0x2c8)][_0x10f1de(0x20c)]('[CollaborationDataLoaderController]',_0x10f1de(0x15e)),this[_0x10f1de(0x1ad)]());}async['_init'](){const _0x99b150=_0x3d2806,_0x975dfa=this[_0x99b150(0x171)][_0x99b150(0x223)](_0x99b150(0x12a)),_0x45b80c=this[_0x99b150(0x171)][_0x99b150(0x223)](_0x99b150(0x95)),_0x2c492b=this['_urlService'][_0x99b150(0x223)](_0x99b150(0xe8));if(!_0x975dfa||!_0x45b80c){this[_0x99b150(0x2c8)]['debug']('[CollaborationDataLoaderController]',_0x99b150(0x159));return;}const _0xbc93a8=await this[_0x99b150(0x25c)]['loadUnit'](_0x975dfa,Number(_0x45b80c),_0x2c492b);_0xbc93a8&&_0xbc93a8 instanceof a[_0x99b150(0xaa)]&&this[_0x99b150(0x187)](_0xbc93a8);}async[_0x3d2806(0x187)](_0x3ae702){const _0x1da551=_0x3d2806;await this['_updateSubUnitFromURLParams'](_0x3ae702),_0x3ae702[_0x1da551(0x242)]['pipe'](d[_0x1da551(0x189)](this[_0x1da551(0x139)]))['subscribe'](_0x4fce2a=>{_0x4fce2a&&this['_updateURLWithCurrentState'](_0x4fce2a);}),this['_urlService'][_0x1da551(0x2b5)][_0x1da551(0x2c6)](d[_0x1da551(0x189)](this[_0x1da551(0x139)]))[_0x1da551(0x124)](()=>this[_0x1da551(0x2d8)](_0x3ae702));}['_updateURLWithCurrentState'](_0x152e7a,_0x542d74=!0x1){const _0x2e2fb9=_0x3d2806,_0x2d7df7=this[_0x2e2fb9(0x171)]['getParam'](_0x2e2fb9(0xe8));_0x152e7a['getSheetId']()!==_0x2d7df7&&this['_urlService']['setParam'](_0x2e2fb9(0xe8),_0x152e7a['getSheetId'](),_0x542d74);}async[_0x3d2806(0x2d8)](_0x3d37ed){const _0x3ab85e=_0x3d2806;var _0x419b80;const _0x46c168=this['_urlService']['getParam'](_0x3ab85e(0xe8));if(!_0x46c168||!_0x3d37ed[_0x3ab85e(0x2ac)](_0x46c168)){const _0x3264ed=_0x3d37ed[_0x3ab85e(0xf8)]()[0x0],_0x35c57a=_0x3d37ed[_0x3ab85e(0x2ac)](_0x3264ed);if(!_0x35c57a)return;this[_0x3ab85e(0xd7)](_0x35c57a,!0x0),await this['_commandService']['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3d37ed[_0x3ab85e(0x1ba)](),'subUnitId':_0x3264ed});return;}((_0x419b80=_0x3d37ed[_0x3ab85e(0x12c)]())==null?void 0x0:_0x419b80[_0x3ab85e(0x144)]())!==_0x46c168&&await this[_0x3ab85e(0xa3)][_0x3ab85e(0x23e)](g[_0x3ab85e(0x207)]['id'],{'unitId':_0x3d37ed[_0x3ab85e(0x1ba)](),'subUnitId':_0x46c168});}},exports[_0x3d2806(0x305)]=Bt([F(0x0,Ee),F(0x1,a[_0x3d2806(0x1e4)]),F(0x2,a[_0x3d2806(0xbb)]),F(0x3,a[_0x3d2806(0xb9)](u[_0x3d2806(0x248)])),F(0x4,a['Optional'](Ke[_0x3d2806(0x15d)]))],exports[_0x3d2806(0x305)]);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x58f379,_0x4292aa,_0x53cd6b,_0x2bab33)=>{for(var _0x397014=_0x2bab33>0x1?void 0x0:_0x2bab33?jt(_0x4292aa,_0x53cd6b):_0x4292aa,_0x25a30a=_0x58f379['length']-0x1,_0x1d783d;_0x25a30a>=0x0;_0x25a30a--)(_0x1d783d=_0x58f379[_0x25a30a])&&(_0x397014=_0x1d783d(_0x397014)||_0x397014);return _0x397014;},ce=(_0x452b62,_0x48f45b)=>(_0x258304,_0x24fb54)=>_0x48f45b(_0x258304,_0x24fb54,_0x452b62);let z=class{constructor(_0x52cc84,_0x192bcf,_0x1b26a9){const _0x48eb02=_0x3d2806;this[_0x48eb02(0x193)]=_0x52cc84,this[_0x48eb02(0x13d)]=_0x192bcf,this[_0x48eb02(0x1c4)]=_0x1b26a9;}[_0x3d2806(0x24b)](_0xa9e449){const _0x31df8d=_0x3d2806;this[_0x31df8d(0x12b)](_0xa9e449),this[_0x31df8d(0x111)](_0xa9e449);}['transformRemoteChangeset'](_0x2912e9){const _0x41f098=_0x3d2806,{unitID:_0x41472f}=_0x2912e9,_0x53c4cb=this[_0x41f098(0x1c4)]['getRenderById'](_0x41472f)[_0x41f098(0x2f0)](E[_0x41f098(0xe4)]),{redoCache:_0x3c20e5}=_0x53c4cb[_0x41f098(0x2fb)]();if(_0x3c20e5['length']===0x0)return _0x2912e9;let _0x549236=a[_0x41f098(0x147)][_0x41f098(0x230)](_0x2912e9[_0x41f098(0x1de)][0x0]);for(let _0x1183fc=0x0;_0x1183fc<_0x3c20e5[_0x41f098(0x83)];_0x1183fc++){const _0x5dc107={'id':_0x41f098(0x1d9),'params':{..._0x3c20e5[_0x1183fc]}},_0x3d1555=this[_0x41f098(0x13d)][_0x41f098(0x2cc)](_0x549236,_0x5dc107,!0x1);if(m[_0x41f098(0x2f7)](_0x3d1555))throw _0x3d1555[_0x41f098(0x197)];_0x549236=_0x3d1555[_0x41f098(0x19b)];}return{...a[_0x41f098(0x147)]['deepClone'](_0x2912e9),'mutations':[_0x549236]};}['_transformUndoRedoStack'](_0x52be5a){const _0x2d611b=_0x3d2806,{unitID:_0x4c8512}=_0x52be5a,_0xb6c026=this['_renderManagerService'][_0x2d611b(0x1e2)](_0x4c8512)['with'](E[_0x2d611b(0xe4)]),{undoCache:_0x119199,redoCache:_0x3596d0}=_0xb6c026[_0x2d611b(0x2fb)]();if(_0x119199[_0x2d611b(0x83)]===0x0||_0x3596d0[_0x2d611b(0x83)]===0x0)return;const _0x118b8c=[],_0x1f942a=[];let _0x2d22db=a[_0x2d611b(0x147)][_0x2d611b(0x230)](_0x52be5a[_0x2d611b(0x1de)][0x0]),_0x905dd3=a[_0x2d611b(0x147)][_0x2d611b(0x230)](_0x52be5a['mutations'][0x0]);for(let _0x21d78c=_0x119199[_0x2d611b(0x83)]-0x1;_0x21d78c>=0x0;_0x21d78c--){const _0x16c090={'id':'doc.mutation.rich-text-editing','params':{..._0x119199[_0x21d78c]}},_0x3f6b64={'id':_0x2d611b(0x1d9),'params':{..._0x3596d0[_0x21d78c]}},_0x5b01c8=this[_0x2d611b(0x13d)]['transformMutation'](_0x2d22db,_0x16c090,!0x1),_0x55c851=this[_0x2d611b(0x13d)][_0x2d611b(0x2cc)](_0x905dd3,_0x3f6b64,!0x1);if(m[_0x2d611b(0x2f7)](_0x5b01c8))throw _0x5b01c8['error'];if(m['isTransformMutationFailure'](_0x55c851))throw _0x55c851[_0x2d611b(0x197)];_0x118b8c[_0x2d611b(0xa8)](_0x5b01c8[_0x2d611b(0xb2)]['params']),_0x1f942a[_0x2d611b(0xa8)](_0x55c851['m2Prime'][_0x2d611b(0x180)]),_0x2d22db=_0x5b01c8[_0x2d611b(0x19b)],_0x905dd3=_0x55c851[_0x2d611b(0x19b)];}_0xb6c026[_0x2d611b(0x1f0)]({'undoCache':_0x118b8c,'redoCache':_0x1f942a});}[_0x3d2806(0x111)](_0x2a362d){const _0x41a5ce=_0x3d2806,{unitID:_0x5cb0ea}=_0x2a362d,_0x4f59d7=this[_0x41a5ce(0x1c4)][_0x41a5ce(0x1e2)](_0x5cb0ea)[_0x41a5ce(0x2f0)](E[_0x41a5ce(0xe4)]),_0x476386=_0x4f59d7[_0x41a5ce(0x26b)]();if(_0x476386==null)return;const _0x277f71=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2a362d[_0x41a5ce(0x1ec)],'actions':null,'textRanges':[_0x476386]}}],_0x5df6b4=this['_transformService']['transformMutationsWithChangeset'](_0x2a362d,_0x277f71);if(!m[_0x41a5ce(0x104)](_0x5df6b4))throw _0x5df6b4[_0x41a5ce(0x197)];const _0x166fcc=_0x5df6b4[_0x41a5ce(0xb2)][0x0]['params'][_0x41a5ce(0x30e)];Array[_0x41a5ce(0xf5)](_0x166fcc)&&_0x166fcc[_0x41a5ce(0x83)]&&_0x4f59d7[_0x41a5ce(0x110)](_0x166fcc[0x0]);}};z=kt([ce(0x0,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),ce(0x1,m[_0x3d2806(0xd9)]),ce(0x2,p[_0x3d2806(0x2bf)])],z);var Ft=Object[_0x3d2806(0x19f)],Ht=(_0x491c50,_0x3bf89e,_0x18bdf6,_0x4ee8e2)=>{const _0xaa004=_0x3d2806;for(var _0x2c0850=_0x4ee8e2>0x1?void 0x0:_0x4ee8e2?Ft(_0x3bf89e,_0x18bdf6):_0x3bf89e,_0x3ee965=_0x491c50[_0xaa004(0x83)]-0x1,_0x151c8b;_0x3ee965>=0x0;_0x3ee965--)(_0x151c8b=_0x491c50[_0x3ee965])&&(_0x2c0850=_0x151c8b(_0x2c0850)||_0x2c0850);return _0x2c0850;},le=(_0x1138a3,_0x9d68af)=>(_0x302f51,_0x189478)=>_0x9d68af(_0x302f51,_0x189478,_0x1138a3);let J=class{constructor(_0x22f80e,_0x1d1f78,_0x562fe1){const _0x13e086=_0x3d2806;this[_0x13e086(0x193)]=_0x22f80e,this[_0x13e086(0x13d)]=_0x1d1f78,this[_0x13e086(0x231)]=_0x562fe1;}[_0x3d2806(0x102)](_0x45947c){const _0x12631c=_0x3d2806;this[_0x12631c(0x29b)](_0x45947c);}[_0x3d2806(0x2f3)](_0x2384a1){const _0x357b26=_0x3d2806,{unitID:_0x45d151}=_0x2384a1,{collaboration:_0x548aed}=this[_0x357b26(0x231)]['getStateCache'](_0x45d151);if(_0x548aed['length']===0x0)return _0x2384a1;let _0x23f68b=a[_0x357b26(0x147)][_0x357b26(0x230)](_0x2384a1[_0x357b26(0x1de)][0x0]);for(let _0x2a9c61=0x0;_0x2a9c61<_0x548aed[_0x357b26(0x83)];_0x2a9c61++){const _0x2460f3={'id':_0x357b26(0x1d9),'params':{'unitId':_0x548aed[_0x2a9c61][_0x357b26(0x211)],..._0x548aed[_0x2a9c61]['redoState']}},_0x3940b1=this[_0x357b26(0x13d)][_0x357b26(0x2cc)](_0x23f68b,_0x2460f3,!0x1);if(m[_0x357b26(0x2f7)](_0x3940b1))throw _0x3940b1[_0x357b26(0x197)];_0x23f68b=_0x3940b1['m1Prime'];}return{...a[_0x357b26(0x147)][_0x357b26(0x230)](_0x2384a1),'mutations':[_0x23f68b]};}['_transformHistoryAndStateStack'](_0x17d477){const _0x778725=_0x3d2806,{unitID:_0x137d0c}=_0x17d477,{history:_0xc2721c,collaboration:_0x2a7cb6}=this[_0x778725(0x231)][_0x778725(0x1b0)](_0x137d0c);if(_0xc2721c['length']===0x0&&_0x2a7cb6[_0x778725(0x83)]===0x0)return;const _0x4e0c00=[],_0x3f2a5c=[];let _0x5e757a=a['Tools'][_0x778725(0x230)](_0x17d477[_0x778725(0x1de)][0x0]),_0x105126=a[_0x778725(0x147)][_0x778725(0x230)](_0x17d477[_0x778725(0x1de)][0x0]);for(let _0x41dcda=_0xc2721c[_0x778725(0x83)]-0x1;_0x41dcda>=0x0;_0x41dcda--){const _0x4835cd={'id':_0x778725(0x1d9),'params':{'unitId':_0xc2721c[_0x41dcda]['unitId'],..._0xc2721c[_0x41dcda]['undoState']}},_0x379c7a={'id':_0x778725(0x1d9),'params':{'unitId':_0xc2721c[_0x41dcda]['unitId'],..._0xc2721c[_0x41dcda][_0x778725(0xd8)]}},_0x25b4c5=this[_0x778725(0x13d)]['transformMutation'](_0x5e757a,_0x4835cd,!0x1),_0x8e2c11=this[_0x778725(0x13d)]['transformMutation'](_0x105126,_0x379c7a,!0x1);if(m['isTransformMutationFailure'](_0x25b4c5))throw _0x25b4c5[_0x778725(0x197)];if(m['isTransformMutationFailure'](_0x8e2c11))throw _0x8e2c11[_0x778725(0x197)];_0x4e0c00[_0x778725(0xa8)]({..._0xc2721c[_0x41dcda],'undoState':_0x25b4c5[_0x778725(0xb2)][_0x778725(0x180)],'redoState':_0x8e2c11[_0x778725(0xb2)][_0x778725(0x180)]}),_0x5e757a=_0x25b4c5[_0x778725(0x19b)],_0x105126=_0x8e2c11[_0x778725(0x19b)];}_0x5e757a=a[_0x778725(0x147)][_0x778725(0x230)](_0x17d477['mutations'][0x0]),_0x105126=a[_0x778725(0x147)][_0x778725(0x230)](_0x17d477[_0x778725(0x1de)][0x0]);for(let _0x3c9cef=_0x2a7cb6[_0x778725(0x83)]-0x1;_0x3c9cef>=0x0;_0x3c9cef--){const _0x163b50={'id':_0x778725(0x1d9),'params':{'unitId':_0x2a7cb6[_0x3c9cef]['unitId'],..._0x2a7cb6[_0x3c9cef][_0x778725(0x184)]}},_0x5bcfc3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2a7cb6[_0x3c9cef][_0x778725(0x211)],..._0x2a7cb6[_0x3c9cef][_0x778725(0xd8)]}},_0x399052=this[_0x778725(0x13d)][_0x778725(0x2cc)](_0x5e757a,_0x163b50,!0x1),_0x1079b2=this[_0x778725(0x13d)][_0x778725(0x2cc)](_0x105126,_0x5bcfc3,!0x1);if(m[_0x778725(0x2f7)](_0x399052))throw _0x399052[_0x778725(0x197)];if(m['isTransformMutationFailure'](_0x1079b2))throw _0x1079b2['error'];_0x3f2a5c['unshift']({..._0x2a7cb6[_0x3c9cef],'undoState':_0x399052['m2Prime'][_0x778725(0x180)],'redoState':_0x1079b2[_0x778725(0xb2)]['params']}),_0x5e757a=_0x399052[_0x778725(0x19b)],_0x105126=_0x1079b2[_0x778725(0x19b)];}this['_docStateChangeManagerService'][_0x778725(0x1b6)](_0x137d0c,{'history':_0x4e0c00,'collaboration':_0x3f2a5c});}};J=Ht([le(0x0,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),le(0x1,m['ITransformService']),le(0x2,a[_0x3d2806(0xb9)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x3d2806(0x19f)],Wt=(_0x459e17,_0x45ed57,_0x4f53d7,_0x1f4d9d)=>{const _0x3d3661=_0x3d2806;for(var _0x54f493=_0x1f4d9d>0x1?void 0x0:_0x1f4d9d?Yt(_0x45ed57,_0x4f53d7):_0x45ed57,_0x2d8d98=_0x459e17[_0x3d3661(0x83)]-0x1,_0x46ee01;_0x2d8d98>=0x0;_0x2d8d98--)(_0x46ee01=_0x459e17[_0x2d8d98])&&(_0x54f493=_0x46ee01(_0x54f493)||_0x54f493);return _0x54f493;},Ne=(_0x553a08,_0x576797)=>(_0x403597,_0x1fbaf6)=>_0x576797(_0x403597,_0x1fbaf6,_0x553a08);let Z=class{constructor(_0x2ca968,_0x32890e){const _0xa90627=_0x3d2806;this['_injector']=_0x2ca968,this[_0xa90627(0x13d)]=_0x32890e;}[_0x3d2806(0x2d7)](_0x1a6eec){const _0x168842=_0x3d2806;var _0x3e5dcc;const _0xfe4839=this[_0x168842(0x193)][_0x168842(0x107)](Y[_0x168842(0x2d1)]),_0x180ae9=(_0x3e5dcc=_0xfe4839[_0x168842(0x127)]())!=null?_0x3e5dcc:[];if(_0x180ae9[_0x168842(0x83)]===0x0)return;const _0xae5db4=_0x1a6eec[_0x168842(0x1ec)],_0x74401c=[{'id':_0x168842(0x1d9),'params':{'unitId':_0xae5db4,'actions':null,'textRanges':_0x180ae9}}],_0x1ed681=this[_0x168842(0x13d)][_0x168842(0x164)](_0x1a6eec,_0x74401c);if(!m[_0x168842(0x104)](_0x1ed681))throw _0x1ed681[_0x168842(0x197)];const _0x653c84=_0x1ed681[_0x168842(0xb2)][0x0][_0x168842(0x180)][_0x168842(0x30e)];Array[_0x168842(0xf5)](_0x653c84)&&_0x653c84['length']&&_0xfe4839[_0x168842(0x2e4)](_0x653c84,{'unitId':_0xae5db4,'subUnitId':_0xae5db4},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x3d2806(0x145)])),Ne(0x1,m[_0x3d2806(0xd9)])],Z);var Vt=Object[_0x3d2806(0x19f)],Xt=(_0x2c5394,_0x227d5f,_0x37434e,_0x8ed30c)=>{for(var _0x3ca050=_0x8ed30c>0x1?void 0x0:_0x8ed30c?Vt(_0x227d5f,_0x37434e):_0x227d5f,_0x24fe5d=_0x2c5394['length']-0x1,_0x1c25b5;_0x24fe5d>=0x0;_0x24fe5d--)(_0x1c25b5=_0x2c5394[_0x24fe5d])&&(_0x3ca050=_0x1c25b5(_0x3ca050)||_0x3ca050);return _0x3ca050;},N=(_0xc80cf0,_0x297b10)=>(_0x21385b,_0x25c99f)=>_0x297b10(_0x21385b,_0x25c99f,_0xc80cf0);let Q=class extends a[_0x3d2806(0x2c3)]{constructor(_0x1db9fe,_0xe51786,_0x40c4d5,_0x410cca,_0x21002c,_0xae62ff,_0x4b828d,_0x409daa){const _0x4ea629=_0x3d2806;super(),h(this,_0x4ea629(0x2d4),new d[(_0x4ea629(0xec))](u[_0x4ea629(0x1a4)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x1db9fe,this['_collaborationController']=_0xe51786,this[_0x4ea629(0x2b8)]=_0x40c4d5,this[_0x4ea629(0x1c0)]=_0x410cca,this[_0x4ea629(0x194)]=_0x21002c,this[_0x4ea629(0x284)]=_0xae62ff,this[_0x4ea629(0xe5)]=_0x4b828d,this[_0x4ea629(0x14a)]=_0x409daa,this['_initEntityListener']());}[_0x3d2806(0x1b1)](){const _0x32cadf=_0x3d2806;this['disposeWithMe'](this[_0x32cadf(0x30b)][_0x32cadf(0x1da)][_0x32cadf(0x124)](_0x2b44f1=>{const _0x1d3f6a=_0x32cadf,_0x36bf4b=this[_0x1d3f6a(0x231)][_0x1d3f6a(0x2c9)][_0x1d3f6a(0x124)](_0x5e84ca=>{const _0x1bdecf=_0x1d3f6a;if(_0x5e84ca==null)return;const {unitId:_0x39bef0,redoState:_0x56e2d0,commandId:_0x41e7c9}=_0x5e84ca;if(_0x39bef0!==_0x2b44f1[_0x1bdecf(0x1ec)])return;const _0x509d5d={'id':_0x41e7c9,'type':a[_0x1bdecf(0x2ae)][_0x1bdecf(0x103)],'params':{'unitId':_0x39bef0,'actions':_0x56e2d0[_0x1bdecf(0x2f6)],'textRanges':null}};_0x2b44f1[_0x1bdecf(0xe7)](_0x509d5d);});if(_0x2b44f1[_0x1d3f6a(0x94)](_0x36bf4b),_0x2b44f1 instanceof u[_0x1d3f6a(0x17e)]){const _0x5609b1={'onTransformIME':_0x39f0c7=>this[_0x1d3f6a(0x2b8)][_0x1d3f6a(0x24b)](_0x39f0c7),'onTransformState':_0x3deb82=>this[_0x1d3f6a(0x1c0)]['transformStateCache'](_0x3deb82),'onTransformSelections':_0x1e5136=>this[_0x1d3f6a(0x194)][_0x1d3f6a(0x2d7)](_0x1e5136),'onSyncEditingCollabCursor':_0x13fc58=>this[_0x1d3f6a(0x284)][_0x1d3f6a(0x2bc)](_0x13fc58),'onTransformRemoteChangesetByIMECache':_0x46d2e2=>this[_0x1d3f6a(0x2b8)]['transformRemoteChangeset'](_0x46d2e2),'onTransformRemoteChangesetByStateCache':_0x45f3b7=>this[_0x1d3f6a(0x1c0)][_0x1d3f6a(0x2f3)](_0x45f3b7)};_0x2b44f1['addHandlerCallback'](_0x5609b1);}}));}};Q=Xt([N(0x0,a[_0x3d2806(0xb9)](E[_0x3d2806(0x8f)])),N(0x1,a['Inject'](u[_0x3d2806(0xc8)])),N(0x2,a[_0x3d2806(0xb9)](z)),N(0x3,a[_0x3d2806(0xb9)](J)),N(0x4,a[_0x3d2806(0xb9)](Z)),N(0x5,a[_0x3d2806(0xb9)](Ce)),N(0x6,O[_0x3d2806(0x1cd)]),N(0x7,a[_0x3d2806(0xb9)](a['LocaleService']))],Q);var Gt=Object[_0x3d2806(0x19f)],Kt=(_0x532ac9,_0x4dd3a6,_0x41828b,_0x57e89c)=>{const _0x47b59b=_0x3d2806;for(var _0x37d84a=_0x57e89c>0x1?void 0x0:_0x57e89c?Gt(_0x4dd3a6,_0x41828b):_0x4dd3a6,_0x2d8812=_0x532ac9[_0x47b59b(0x83)]-0x1,_0x45e69a;_0x2d8812>=0x0;_0x2d8812--)(_0x45e69a=_0x532ac9[_0x2d8812])&&(_0x37d84a=_0x45e69a(_0x37d84a)||_0x37d84a);return _0x37d84a;},_e=(_0x5dec98,_0xb47c36)=>(_0xf19f57,_0xcc5534)=>_0xb47c36(_0xf19f57,_0xcc5534,_0x5dec98);function _0x5e28(){const _0x4ba750=['_registerDependencies','TEXT_RANGE_LAYER_INDEX','getLocalCacheKey','color','_localStorageService','use','distinctUntilChanged','_handleJoinEvent','measureText','deepClone','_docStateChangeManagerService','addObject','cursorInfo$','setConfig','startColumn','APPLY_NON_SEQUENTIAL_REVISION','_updateLocalCursor','key','ILocalCacheService','disposeUnit','removeParam','APPLY_REVISION_CONFILICT','red.300','executeCommand','on-line-icon','YUUMI_TABLE_NOT_FOUND_IN_UNIT','clipPath','activeSheet$','url(#on-line-icon_clip0_910_349)','_shapes','UniverCollaborationClientUIPlugin','forEach','find','DataLoaderService','CHANGESET_REVISION_CONFILICT','_render','transformIMECache','_document','CollaborationSessionService','flatMap','getMemberID','handleDeleteRangeMoveUp','331128GQHznc','propertyIsEnumerable','symbol','evenodd','includes','add','collabStatus.offline','string','getCoordByCell','_doCreateSocket','rgba(255,\x20255,\x20255,\x200.01)','_dataLoaderService','YUUMI_URL_COL_OUT_OF_RANGE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','roomMembers','JOIN_ROOM_FAILED','SNAPSHOT_HAS_BEEN_REMOVED','currentColor','sessionTicket','focused$','attrs','DisposableCollection','reconnect','APPLY_PERMISSION_DENIED','parse','path','getActiveRange','fillText','_instanceService','LocaleService','onMouseMove','RefRangeService','subUnitId','runOnServer','toRgbString','DeleteRangeMoveLeftCommandId','_collabCursorState$','getCurrent','collabStatus.fetchMiss','defIds','setAlpha','2kiCuYy','range','all','defineProperty','cursorInfo','OTHER_CLIENTS_EDITING','debounceTime','getMember','invokeId','runId','_docSyncEditingCollabCursorService','substring','collaboration.single-unit.warning','1384411WsEBJq','UNDEFINED','_scene','registerRenderModule','CollaborationEvent','_docSkeleton','_initStatusComponent','LOCAL_CACHE_INTERVAL_KEY','_ensureSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_assignedColors','from','values','_initDependencies','YUUMI_UNABLE_LOAD_URL','debounce','_name','getUnitStatus$','Shape','_session','_transformHistoryAndStateStack','isEditing','_hovered','#FFF','status$','purple.300','TOO_MANY_REQUESTS','APPLY_REJECT','assign','PENDING','IImageIoService','_colorIndex','ISocketService','override','NOT_FOUND','_scheduleHeartbeat','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','getSheetBySheetId','_heartbeatTimer','CommandType','beginPath','DeleteRangeMoveUpCommandId','application/json','lineTo','Tooltip','INTERNAL_ERROR','urlChange$','onPointerEnter$','getTypeOfUnitAdded$','_docTransformIMECacheService','_anchor','runRefRangeMutations','SOCKET_FAILED','syncEditingCollabCursor','_id','EffectRefRangId','IRenderManagerService','clearTimeout','saveOfflineData','has','Disposable','HTTPService','SetDocZoomRatioOperation','pipe','Rectangle','_logService','docStateChange$','addClipboardHook','hide','transformMutation','asObservable','getMergeData','useObservable','moveTo','DocSelectionManagerService','EMAIL_VERIFY_CODE_MISMATCH','SNAPSHOT_INVALID_SNAPSHOT','_status$','YUUMI_CONNECTOR_URL_NOT_FOUND','assignAColorForMemberID','transformSelections','_updateSubUnitFromURLParams','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','_handleHeartbeatEvent','send','handleInsertCol','_range','_toggleOffline','arc','skeleton','jsx','setParam','replaceDocRanges','_send','history','random','DesktopCollaborationStatusDisplayController','max','_configService','entries','collaboration-client.offline-data-not-saved','fillStyle','hasOwnProperty','forwardRef','with','InsertRangeMoveRightCommandId','jiqing.500','transformRemoteChangeset','WebURLService','LICENSE_EXPORT_SIZE_EXCEEDED','actions','isTransformMutationFailure','delete','onTransformChange$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getUndoRedoMutationParamsCache','getRangePointData','sheetID','translate(.97)','round','fromEventSubject','USERS_LEAVE','toString','_color','fill','CollaborationDataLoaderController','_removeClearOtherTimer','_saveCache','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_uiPartsService','UnitStatus','_collaborationController','endColumn','_syncEditingCollabCursorService','textRanges','OFFLINE','_selfUnitIDs','getCellPositionByOffset','_docSkeletonManagerService','_disabled','_revisionService','8tXptcY','enableLocalCache','isActive','length','NodePositionConvertToCursor','popstate','getCurrentSelections','data','switchMap','20ANRvuP','set','ColorKit','_anchorDot','_getSessionTicket','TEXT','DocStateChangeManagerService','_cachedData','CollaborationUIEventService','href','_unitOnClients','disposeWithMe','type','RxDisposable','InsertColCommandId','AWAITING_WITH_PENDING','SessionStatus','blue.400','icon','text','CollaborationStatusDisplay','_createSocketURL','ENSURE_SNAPSHOT_EXECUTION','_handleLeaveEvent','LICENSE_DISTRO_REJECTED','complete','_commandService','_cursorShapes','result','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_initStatusListener','unshift','whenReady','Workbook','_collabSessionService','div','drawWith','YUUMI_RATE_OVER_LIMIT','USER_NOT_INVITED_CODE','collab-text-anchor-','size','m2Prime','_themeService','className','currentSkeleton$','UNRECOGNIZED','_setupBeforeClosingHandler','bottom','Inject','_drawRectRange','ICommandService','show','combineLatest','_refRangeService','_textBubble','_registerRenderDependencies','ISnapshotServerService','exhaustSavingTask','map','INVITE_CODE_HAS_BEEN_UES','searchParams','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_getSheetObject','CollaborationController','_drawAnchor','/run/','OTHER_CLIENT_EDITING','collabStatus.notCollab','ticket','replaceState','getCurrentRevOfUnit','UPDATE_CURSOR','collabCursorState$','UNIVER_SHEET','_collaborationUIEventService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','InsertRowCommandId','Vector2','_updateURLWithCurrentState','redoState','ITransformService','filter','onRendered','useRef','origin','_hideTimer','closePath','mask','INVITE_CODE_REQUIRED','getCollabCursors$','dispose','DocIMEInputManagerService','_messageService','useCallback','onLocalMutation','subunit','_httpService','BuiltInUIPart','sessionStatus$','BehaviorSubject','handleInsertRow','_cursor','WECHAT_HAS_BEEN_BOUND','split','onCommandExecuted','subscribeEvent','1250202LlEEeR','body','isArray','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','_updateCollabCursors','getUnhiddenWorksheets','displayName','_labelPosition','SetTextSelectionsOperation','editingUnit','NOT_COLLAB','onPointerLeave$','CollaborationSocketService','UniverInstanceType','DOC_RANGE_TYPE','transformStateCache','MUTATION','isTransformMutationsWithChangesetSuccess','RemoveRowCommandId','init','get','onStarting','replace','_handleEvent','IURLService','_startDocCollabCursor','ONLINE','memberID','_drawTextRange','setActiveRange','_transformPreviousActiveRange','green.600','min','RichTextEditingMutation','ILocalStorageService','_scheduleClearOtherTimer','_initResize','MoveRangeCommandId','Subject','getSheetObject','SheetCollabCursorShape','children','_roomMembers$','createSocket','_getScale','INotificationService','SheetsSelectionsService','collab-client.tooltip.reconnect','contains','subscribe','none','setTimeout','getDocRanges','RemoteUniscriptService','RemoveColCommandId','unit','_transformUndoRedoStack','getActiveSheet','fromEvent','selections','_handleHover','MemberService','_scheduleSaving','collaboration.closeRoom','pluginName','triggerDblclick','connectInjector','getFocusedUnit','ThemeService','mergeOverrideWithDependencies','dispose$','_eventUnsubscribe','getSkeleton','apply','_transformService','LOGIN_FAILED','handleIRemoveRow','fillRule','transform','createInstance','_cursorInfo$','getSheetId','Injector','IDocClipboardService','Tools','getOwnPropertySymbols','xlink:href','_localeService','startRow','_onCursorDelete','width','YUUMI_ALL_TABLES_IS_INVALID','unsubscribe','getValue','requireSession','_localCacheService','getTypeOfUnitDisposed$','IConfigService','currentTheme$','_hover','getAncestorScale','column','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','setShapeProps','IUniverInstanceService','LICENSE_MAX_UNITS_EXCEEDED','IRemoteInstanceService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_initCommandExecutedListener','ACTIVE_UNIT_EVENT_CHANNEL','MOBILE_HAS_BEEN_BOUND','saveImage','WebBrowserSingleActiveUnitService','transformMutationsWithChangeset','DEFAULT_WS_SESSION_TICKET_URL','YUUMI_SUBSCRIPTION_NOT_FOUND','loadOfflineData','OnLineIcon','univerjs-icon\x20univerjs-icon-','createElement','_entityInit$','_onCursorUpdate','collab-text-range-','_imageIoService','_notificationService','0\x200\x2017\x2016','_urlService','MessageType','univer-mr-2\x20univer-flex\x20univer-text-xl','10EKLCkW','_startSheetCollabCursor','CollaborationUIEventId','location','endRow','url(#$1','handleIRemoveCol','selection','mapTo','ranges','DocCollaborationEntity','collabStatus.synced','params','collaboration-client-ui.config','COLORS','trim','undoState','640608rgziEJ','APPLY_DUPLICATED','_setupSubUnitSync','code','takeUntil','UNAUTHENTICATED','4022898ZVoDaq','getColor','clearInterval','Rect','height','jsxs','_config','FromArray','_injector','_docTransformSelectionsService','EMAIL_HAS_BEEN_BOUND','IBeforeCloseService','error','executionId','current','CLOSE_ROOM','m1Prime','event$','_context','M0\x200H16V16H0z','getOwnPropertyDescriptor','_docClipboardService','CONFLICT','setItem','COMPLETION_FINISHED','CollaborationStatus','DocSkeletonManagerService','registerComponent','findNodePositionByCharIndex','_univerInstanceService','UNIVER_DOC','_online','search','defs','_init','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_colorAssignService','getStateCache','_initEntityListener','getConfig','_entities','handleInsertRangeMoveDown','name','setStateCache','getCurrentUnitForType','UniverIcon','_beforeCloseService','getUnitId','collab-rect-range-','saveTaskMap','Error','univer-flex\x20univer-items-center','next','_docTransformStateCacheService','backgroundColor','1em','engine','_renderManagerService','_backgroundColor','SheetSkeletonManagerService','shareReplay','NO_OTHER_CLIENTS_EDITING','on-line-icon_clip0_910_349','_lastPointer','svg','_cursors','IMessageService','black','YUUMI_NO_CUBOID_FOR_QUESTION','_clearOtherTimers','IUIPartsService','indexOf','onPointerMove$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','top','toDisposable','PERMISSION_DENIED','startsWith','doc.mutation.rich-text-editing','entityInit$','YUUMI_ASYNCIO_CANCELLED','tag','207355xflTHa','mutations','213988AgsXgP','LICENSE_IMPORT_SIZE_EXCEEDED','_getMergeRange','getRenderById','touchDependencies','ILogService','DependentOn','setInterval','Unknown\x20user','SHEET_VIEWPORT_KEY','restore','uni.network.url-service','RegularPolygon','unitID','BrowserCollaborationSocketService','_memberService','labelPosition','setUndoRedoMutationParamsCache','colorChannel1','stringify','concat','Module','_removeCollabCursors','_refreshCollabCursors','some','extend','_collabCursorController','permission.content','YUUMI_AI_RUN_FAILED','ALREADY_EXISTS','_getAnchorBounding','_saveTaskMap','VIEW_MAIN','SOCKET_FAILED_RETRY','then','generateRandomId','_draw','source','OffLineIcon','_unitStatus','SetWorksheetActivateCommand','save','CONNECTOR_DATA_TOO_LARGE','Warning','roomMembers$','debug','SYNCED','deserializeRangeWithSheet','addEventListener','push','unitId','MOBILE_VERIFY_CODE_MISMATCH','useDependency','InsertRangeMoveDownCommandId','idSuffix','newValue','INVALID_ARGUMENT','resize','call','_sheetSkeletonManagerService','RECT','Failed','_toggleOnline','prototype','handleMoveRange','sheetId','row','_initEvent','getParam','serializeRangeWithSheet','AWAITING','pushState'];_0x5e28=function(){return _0x4ba750;};return _0x5e28();}let ge=class extends a[_0x3d2806(0x2c3)]{constructor(_0xf72bac,_0x583ced,_0x38fa8b){const _0x409639=_0x3d2806;super(),h(this,'_cachedData',new Map()),h(this,_0x409639(0x1fe),new Map()),h(this,_0x409639(0x313),!0x1),(this[_0x409639(0x2ea)]=_0xf72bac,this[_0x409639(0x22b)]=_0x583ced,this[_0x409639(0x314)]=_0x38fa8b);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x3d2806(0x81)](){const _0x391efc=_0x3d2806;this[_0x391efc(0x313)]=!0x1;}get['saveTaskMap'](){const _0x3f1564=_0x3d2806;return this[_0x3f1564(0x1fe)];}[_0x3d2806(0xe3)](){const _0x48458c=_0x3d2806;this[_0x48458c(0xc2)]()[_0x48458c(0x201)](()=>super[_0x48458c(0xe3)]());}async[_0x3d2806(0x167)](_0x25462e){const _0xa272df=_0x3d2806;return this[_0xa272df(0x313)]?null:this['_localStorageService']['getItem'](u[_0xa272df(0x229)](_0x25462e));}async[_0x3d2806(0x2c1)](_0x5a0e0d,_0x25fa3b){const _0x277b52=_0x3d2806;return!!this['_localStorageService'][_0x277b52(0x1a2)](_0x5a0e0d,_0x25fa3b);}['updateOfflineData'](_0x460d3d,_0x2995fa,_0x25baa9,_0x76990e){const _0x3d52f3=_0x3d2806,_0x23bd60=this[_0x3d52f3(0x314)][_0x3d52f3(0xcf)](_0x460d3d);this[_0x3d52f3(0x90)][_0x3d52f3(0x8a)](_0x460d3d,{'unitID':_0x460d3d,'type':_0x2995fa,'awaitingChangeset':_0x25baa9,'mutations':_0x76990e,'rev':_0x23bd60}),this[_0x3d52f3(0x1fe)][_0x3d52f3(0x2c2)](_0x460d3d)||this[_0x3d52f3(0x131)](_0x460d3d);}[_0x3d2806(0x131)](_0x1f88d1){const _0x37d403=_0x3d2806,_0x318d32=this[_0x37d403(0x2d9)]();_0x318d32===0x0?this['_saveCache'](_0x1f88d1):this[_0x37d403(0x1fe)]['set'](_0x1f88d1,setTimeout(()=>this[_0x37d403(0x307)](_0x1f88d1),_0x318d32));}[_0x3d2806(0x2d9)](){const _0x226beb=_0x3d2806;var _0x4cdb9d;return(_0x4cdb9d=this['_configService'][_0x226beb(0x1b2)](u[_0x226beb(0x28e)]))!=null?_0x4cdb9d:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x3305a4){const _0x381176=_0x3d2806,_0xce7141=this[_0x381176(0x1fe)]['get'](_0x3305a4);return _0xce7141!==void 0x0&&window[_0x381176(0x2c0)](_0xce7141),this[_0x381176(0x22b)]['setItem'](u[_0x381176(0x229)](_0x3305a4),this[_0x381176(0x90)][_0x381176(0x107)](_0x3305a4))[_0x381176(0x201)](()=>this[_0x381176(0x1fe)][_0x381176(0x2f8)](_0x3305a4));}async[_0x3d2806(0xc2)](){const _0x536552=_0x3d2806,_0x40c07e=[];this['_saveTaskMap'][_0x536552(0x246)]((_0x52eeab,_0x3cfe7c)=>{const _0x45d700=_0x536552;window['clearTimeout'](_0x52eeab),_0x40c07e[_0x45d700(0x210)](this[_0x45d700(0x307)](_0x3cfe7c)['then'](()=>{const _0x77a350=_0x45d700;this[_0x77a350(0x1fe)][_0x77a350(0x2f8)](_0x3cfe7c);}));}),await Promise[_0x536552(0x27c)](_0x40c07e);}};ge=Kt([_e(0x0,a[_0x3d2806(0x154)]),_e(0x1,a[_0x3d2806(0x115)]),_e(0x2,a['Inject'](m['RevisionService']))],ge);class Be extends a['RxDisposable']{constructor(){const _0x59d2c2=_0x3d2806;super(),h(this,_0x59d2c2(0x2b5)),this[_0x59d2c2(0x2b5)]=d['fromEvent'](window,_0x59d2c2(0x85))[_0x59d2c2(0x2c6)](d[_0x59d2c2(0x189)](this['dispose$']),d[_0x59d2c2(0x1c7)](0x1),d[_0x59d2c2(0x17c)](void 0x0));}[_0x3d2806(0x2e3)](_0x253d93,_0x3adbaa,_0x3eead7=!0x1){const _0x346321=_0x3d2806,_0x54214e=new URL(window[_0x346321(0x177)][_0x346321(0x92)]);_0x54214e['searchParams'][_0x346321(0x8a)](_0x253d93,_0x3adbaa),_0x3eead7?window[_0x346321(0x2e6)]['replaceState']('','',_0x54214e[_0x346321(0x302)]()):window['history'][_0x346321(0x226)]('','',_0x54214e[_0x346321(0x302)]());}[_0x3d2806(0x23b)](_0x2bc616,_0x442b55=!0x1){const _0x1f2567=_0x3d2806,_0x5e75e3=new URL(window[_0x1f2567(0x177)][_0x1f2567(0x92)]);_0x5e75e3[_0x1f2567(0xc5)]['delete'](_0x2bc616),_0x442b55?window[_0x1f2567(0x2e6)][_0x1f2567(0xce)]('','',_0x5e75e3['toString']()):window[_0x1f2567(0x2e6)][_0x1f2567(0x226)]('','',_0x5e75e3[_0x1f2567(0x302)]());}[_0x3d2806(0x223)](_0x5439ed){const _0x32e286=_0x3d2806;var _0x12c225;return(_0x12c225=new URL(window[_0x32e286(0x177)][_0x32e286(0x92)])[_0x32e286(0xc5)][_0x32e286(0x107)](_0x5439ed))!=null?_0x12c225:void 0x0;}}var qt=Object[_0x3d2806(0x27d)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x411e52,_0x2fc15a,_0x3b1dd9)=>_0x2fc15a in _0x411e52?qt(_0x411e52,_0x2fc15a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1dd9}):_0x411e52[_0x2fc15a]=_0x3b1dd9,Zt=(_0x22714c,_0x269c96,_0x294680,_0x8f5837)=>{const _0x2ba465=_0x3d2806;for(var _0xfb6ee3=_0x8f5837>0x1?void 0x0:_0x8f5837?zt(_0x269c96,_0x294680):_0x269c96,_0x16f6da=_0x22714c[_0x2ba465(0x83)]-0x1,_0x4a4195;_0x16f6da>=0x0;_0x16f6da--)(_0x4a4195=_0x22714c[_0x16f6da])&&(_0xfb6ee3=_0x4a4195(_0xfb6ee3)||_0xfb6ee3);return _0xfb6ee3;},he=(_0x1a61bf,_0xd6a403)=>(_0x3dc521,_0x51df35)=>_0xd6a403(_0x3dc521,_0x51df35,_0x1a61bf),Qt=(_0x4dd9b7,_0x302488,_0x5008ec)=>Jt(_0x4dd9b7,_0x302488+'',_0x5008ec);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3d2806(0x245)]=class extends a['Plugin']{constructor(_0x47b7dd=Ue,_0x37b035,_0x190ba3,_0x25a931){const _0x23a7ba=_0x3d2806;super(),this[_0x23a7ba(0x191)]=_0x47b7dd,this['_renderManagerService']=_0x37b035,this[_0x23a7ba(0x193)]=_0x190ba3,this[_0x23a7ba(0x2ea)]=_0x25a931;const {..._0x3faace}=a['merge']({},Ue,this[_0x23a7ba(0x191)]);this['_configService'][_0x23a7ba(0x234)]($t,_0x3faace);}[_0x3d2806(0x108)](){const _0x513ba3=_0x3d2806;this[_0x513ba3(0x227)](),this[_0x513ba3(0x294)]();}[_0x3d2806(0xdb)](){const _0x53f8d6=_0x3d2806;this[_0x53f8d6(0xc0)]();}[_0x3d2806(0x227)](){const _0x365913=_0x3d2806;var _0xe8da0b;const _0x1a4292=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x365913(0x2a7)],{'useClass':G['WebSocketService']}],[u[_0x365913(0x239)],{'useClass':ge}],[exports[_0x365913(0x2e8)]],[Q],[q],[x],[de],[exports[_0x365913(0x305)]]];a['registerDependencies'](this['_injector'],a[_0x365913(0x138)](_0x1a4292,(_0xe8da0b=this['_config'])==null?void 0x0:_0xe8da0b[_0x365913(0x2a8)]));}[_0x3d2806(0xc0)](){const _0x11b8b7=_0x3d2806;this[_0x11b8b7(0x94)](this[_0x11b8b7(0x1c4)][_0x11b8b7(0x28a)](a[_0x11b8b7(0x100)]['UNIVER_DOC'],[fe])),this[_0x11b8b7(0x94)](this[_0x11b8b7(0x1c4)][_0x11b8b7(0x28a)](a[_0x11b8b7(0x100)][_0x11b8b7(0xd2)],[ve]));}[_0x3d2806(0x294)](){const _0x3dce5b=_0x3d2806;a[_0x3dce5b(0x1e3)](this[_0x3dce5b(0x193)],[[x],[exports[_0x3dce5b(0x2e8)]],[Q],[q],[exports[_0x3dce5b(0x305)]]]);}},Qt(exports[_0x3d2806(0x245)],_0x3d2806(0x133),es),exports[_0x3d2806(0x245)]=Zt([a[_0x3d2806(0x1e5)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x3d2806(0x2bf)]),he(0x2,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),he(0x3,a['IConfigService'])],exports[_0x3d2806(0x245)]);var ts=Object[_0x3d2806(0x19f)],ss=(_0x4bf294,_0x5cf097,_0x3cbd71,_0x499079)=>{const _0xb73927=_0x3d2806;for(var _0x4cf027=_0x499079>0x1?void 0x0:_0x499079?ts(_0x5cf097,_0x3cbd71):_0x5cf097,_0x6b0ad6=_0x4bf294[_0xb73927(0x83)]-0x1,_0x1c171f;_0x6b0ad6>=0x0;_0x6b0ad6--)(_0x1c171f=_0x4bf294[_0x6b0ad6])&&(_0x4cf027=_0x1c171f(_0x4cf027)||_0x4cf027);return _0x4cf027;},H=(_0x2073c0,_0x535fd0)=>(_0x3c083f,_0x28d197)=>_0x535fd0(_0x3c083f,_0x28d197,_0x2073c0);exports[_0x3d2806(0x1ed)]=class extends u[_0x3d2806(0xff)]{constructor(_0x5259c9,_0x49617f,_0x863cb5,_0x27cf74,_0x260bbe){super(_0x5259c9,_0x49617f,_0x863cb5,_0x27cf74,_0x260bbe);}async[_0x3d2806(0x11e)](_0x2795d1){const _0x2f78fe=_0x3d2806,_0x346642=await this[_0x2f78fe(0x8d)](),_0xaafa90=this[_0x2f78fe(0x9e)](_0x2795d1,_0x346642);return this[_0x2f78fe(0x25a)](_0xaafa90);}[_0x3d2806(0x9e)](_0x527e3f,_0x26dc8a){const _0x5f1ac0=_0x3d2806,_0x4a31b6=typeof window>'u'?new URL(_0x527e3f):new URL(_0x527e3f,window[_0x5f1ac0(0x177)][_0x5f1ac0(0xdd)]);_0x4a31b6[_0x5f1ac0(0xc5)]['set'](_0x5f1ac0(0x263),_0x26dc8a);const _0x53bc51=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5f1ac0(0x177)][_0x5f1ac0(0x1ab)]);return _0x53bc51[_0x5f1ac0(0x107)]('runId')&&_0x4a31b6[_0x5f1ac0(0xc5)][_0x5f1ac0(0x8a)](_0x5f1ac0(0x283),_0x53bc51[_0x5f1ac0(0x107)](_0x5f1ac0(0x283))),_0x4a31b6['toString']();}async[_0x3d2806(0x8d)](){const _0x5ee533=_0x3d2806;var _0x5edfeb,_0x1b07d7,_0x571235;const _0x396fc6=this[_0x5ee533(0x2ea)][_0x5ee533(0x1b2)](u[_0x5ee533(0xd4)]),_0x5e73ce=(_0x5edfeb=_0x396fc6==null?void 0x0:_0x396fc6['wsSessionTicketUrl'])!=null?_0x5edfeb:u[_0x5ee533(0x165)];return(_0x571235=(_0x1b07d7=(await this[_0x5ee533(0xe9)]['get'](_0x5e73ce,{'headers':{'Content-Type':_0x5ee533(0x2b1)}}))[_0x5ee533(0xf4)])==null?void 0x0:_0x1b07d7[_0x5ee533(0xcd)])!=null?_0x571235:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x3d2806(0xb9)](a[_0x3d2806(0x145)])),H(0x1,a[_0x3d2806(0xb9)](G[_0x3d2806(0x2c4)])),H(0x2,a[_0x3d2806(0x154)]),H(0x3,a[_0x3d2806(0x1e4)]),H(0x4,m[_0x3d2806(0xc1)])],exports[_0x3d2806(0x1ed)]);const Me=0x7530,Le=_0x3d2806(0x160);class is extends a[_0x3d2806(0x2c3)]{constructor(){const _0x5cfc5f=_0x3d2806;super(),h(this,_0x5cfc5f(0x2bd),a[_0x5cfc5f(0x202)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x5cfc5f(0x93),new Map()),h(this,_0x5cfc5f(0x2ad),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x3d2806(0xe3)](){const _0x3ccc1f=_0x3d2806;super[_0x3ccc1f(0xe3)](),this[_0x3ccc1f(0x1d0)][_0x3ccc1f(0x246)]((_0x16cb3f,_0x399a5d)=>this[_0x3ccc1f(0x306)](_0x399a5d)),this[_0x3ccc1f(0x2ad)]&&window[_0x3ccc1f(0x18d)](this[_0x3ccc1f(0x2ad)]);}[_0x3d2806(0x298)](_0x2b4cbc){const _0xb3b5a=_0x3d2806;return this[_0xb3b5a(0x28f)](_0x2b4cbc)['pipe'](d[_0xb3b5a(0x22d)]());}[_0x3d2806(0xfc)](_0x160c00){const _0x5b5e0d=_0x3d2806;this[_0x5b5e0d(0x310)][_0x5b5e0d(0xb1)]===0x0&&this[_0x5b5e0d(0x2aa)](),this[_0x5b5e0d(0x310)][_0x5b5e0d(0x256)](_0x160c00),this[_0x5b5e0d(0x2e5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x160c00],'isForwarded':!0x1});}[_0x3d2806(0x23a)](_0x479771){const _0x33a08f=_0x3d2806;this[_0x33a08f(0x310)]['delete'](_0x479771),this[_0x33a08f(0x310)][_0x33a08f(0xb1)]===0x0&&this['_heartbeatTimer']&&window[_0x33a08f(0x18d)](this[_0x33a08f(0x2ad)]);}[_0x3d2806(0x1ad)](){const _0x2f85d7=_0x3d2806;this[_0x2f85d7(0x94)](a['toDisposable'](d[_0x2f85d7(0x12d)](window,'storage')[_0x2f85d7(0x124)](_0x5da3a7=>{const _0x2decbb=_0x2f85d7;if(_0x5da3a7[_0x2decbb(0x238)]!==Le||!_0x5da3a7[_0x2decbb(0x216)])return;const _0x447e93=JSON[_0x2decbb(0x269)](_0x5da3a7[_0x2decbb(0x216)]);this[_0x2decbb(0x10a)](_0x447e93);}))),window[_0x2f85d7(0x20f)]('unload',()=>this[_0x2f85d7(0x2e5)]({'type':0x1,'memberID':this[_0x2f85d7(0x2bd)],'unitIDs':Array[_0x2f85d7(0x292)](this[_0x2f85d7(0x310)])}));}['_handleEvent'](_0xaf24b2){const _0x8fd010=_0x3d2806;switch(_0xaf24b2[_0x8fd010(0x95)]){case 0x0:this[_0x8fd010(0x22e)](_0xaf24b2);break;case 0x1:this['_handleLeaveEvent'](_0xaf24b2);break;case 0x2:this[_0x8fd010(0x2db)](_0xaf24b2);break;}}[_0x3d2806(0x22e)](_0x3761af){const _0x2369ed=_0x3d2806,{unitIDs:_0x3f03db,memberID:_0x1d0931,isForwarded:_0x540323}=_0x3761af;_0x3f03db[_0x2369ed(0x246)](_0x10453a=>{const _0x21378a=_0x2369ed;if(!_0x540323&&this['_unitOnClients']['has'](_0x10453a)&&this[_0x21378a(0x28f)](_0x10453a)[_0x21378a(0x1bf)](u[_0x21378a(0x30a)][_0x21378a(0x27f)]),!this[_0x21378a(0x93)][_0x21378a(0x2c2)](_0x10453a)||!this[_0x21378a(0x93)][_0x21378a(0x107)](_0x10453a)[_0x21378a(0x2c2)](_0x1d0931)){const _0x22b06a=this[_0x21378a(0x93)][_0x21378a(0x107)](_0x10453a)||new Set();_0x22b06a[_0x21378a(0x256)](_0x1d0931),this[_0x21378a(0x93)][_0x21378a(0x8a)](_0x10453a,_0x22b06a),this[_0x21378a(0x116)](_0x1d0931);}}),_0x540323||this[_0x2369ed(0x2e5)]({'type':0x0,'memberID':this[_0x2369ed(0x2bd)],'unitIDs':[...this[_0x2369ed(0x310)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x317cee){const _0x3cf2a2=_0x3d2806;this[_0x3cf2a2(0x306)](_0x317cee);const _0x20cf38=window[_0x3cf2a2(0x126)](()=>{const _0x57a74b=_0x3cf2a2;this[_0x57a74b(0x93)]['forEach'](_0x459953=>{const _0x56a7a9=_0x57a74b;_0x459953[_0x56a7a9(0x2f8)](_0x317cee);});},Me*0x2);this['_clearOtherTimers'][_0x3cf2a2(0x8a)](_0x317cee,_0x20cf38);}[_0x3d2806(0x306)](_0x4973e1){const _0x14c605=_0x3d2806;if(this['_clearOtherTimers'][_0x14c605(0x2c2)](_0x4973e1)){const _0x2fea5c=this[_0x14c605(0x1d0)][_0x14c605(0x107)](_0x4973e1);_0x2fea5c&&window[_0x14c605(0x2c0)](_0x2fea5c),this[_0x14c605(0x1d0)][_0x14c605(0x8a)](_0x4973e1,null);}}[_0x3d2806(0xa0)](_0x3e6eb2){const _0x444bb2=_0x3d2806,{memberID:_0x4f0109,unitIDs:_0x1d2e29}=_0x3e6eb2;_0x1d2e29[_0x444bb2(0x246)](_0x4b31e3=>{const _0x2d635b=_0x444bb2;var _0x254f8f;const _0x3186f7=this['_unitOnClients']['get'](_0x4b31e3);_0x3186f7&&(_0x3186f7[_0x2d635b(0x2f8)](_0x4f0109),(_0x254f8f=this['_ensureSubject'](_0x4b31e3))==null||_0x254f8f['next'](_0x3186f7[_0x2d635b(0xb1)]===0x0?u[_0x2d635b(0x30a)][_0x2d635b(0x1c8)]:u[_0x2d635b(0x30a)][_0x2d635b(0x27f)]));}),this[_0x444bb2(0x306)](_0x4f0109);}['_handleHeartbeatEvent'](_0x345b94){const _0x4356a7=_0x3d2806;this[_0x4356a7(0x116)](_0x345b94[_0x4356a7(0x10e)]);}['_send'](_0x2fd789){const _0x5d90e1=_0x3d2806;localStorage[_0x5d90e1(0x1a2)](Le,JSON[_0x5d90e1(0x1f2)](_0x2fd789));}[_0x3d2806(0x2aa)](){const _0x443dc4=_0x3d2806;this[_0x443dc4(0x2ad)]=window[_0x443dc4(0x1e6)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}[_0x3d2806(0x28f)](_0x415047){const _0x104cbe=_0x3d2806;return this[_0x104cbe(0x206)]['has'](_0x415047)||this[_0x104cbe(0x206)]['set'](_0x415047,new d[(_0x104cbe(0xec))](u[_0x104cbe(0x30a)][_0x104cbe(0x1c8)])),this[_0x104cbe(0x206)]['get'](_0x415047);}}var je=(_0x5bde05=>(_0x5bde05[_0x5bde05[_0x3d2806(0x288)]=0x0]='UNDEFINED',_0x5bde05[_0x5bde05['OK']=0x1]='OK',_0x5bde05[_0x5bde05[_0x3d2806(0x2b4)]=0x2]=_0x3d2806(0x2b4),_0x5bde05[_0x5bde05['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x5bde05[_0x5bde05[_0x3d2806(0x2a9)]=0x4]=_0x3d2806(0x2a9),_0x5bde05[_0x5bde05[_0x3d2806(0x18a)]=0x5]=_0x3d2806(0x18a),_0x5bde05[_0x5bde05[_0x3d2806(0x1fc)]=0x6]=_0x3d2806(0x1fc),_0x5bde05[_0x5bde05[_0x3d2806(0x217)]=0x7]=_0x3d2806(0x217),_0x5bde05[_0x5bde05[_0x3d2806(0x2a1)]=0x8]=_0x3d2806(0x2a1),_0x5bde05[_0x5bde05[_0x3d2806(0x1a3)]=0x9]=_0x3d2806(0x1a3),_0x5bde05[_0x5bde05[_0x3d2806(0x13e)]=0xa]=_0x3d2806(0x13e),_0x5bde05[_0x5bde05[_0x3d2806(0x212)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x5bde05[_0x5bde05[_0x3d2806(0xc6)]=0xc]=_0x3d2806(0xc6),_0x5bde05[_0x5bde05[_0x3d2806(0x2d2)]=0xd]=_0x3d2806(0x2d2),_0x5bde05[_0x5bde05[_0x3d2806(0x308)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5bde05[_0x5bde05[_0x3d2806(0x249)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5bde05[_0x5bde05[_0x3d2806(0x2d3)]=0x1771]=_0x3d2806(0x2d3),_0x5bde05[_0x5bde05[_0x3d2806(0x261)]=0x1772]=_0x3d2806(0x261),_0x5bde05[_0x5bde05[_0x3d2806(0x9f)]=0x1773]=_0x3d2806(0x9f),_0x5bde05[_0x5bde05[_0x3d2806(0x2a2)]=0x1b59]=_0x3d2806(0x2a2),_0x5bde05[_0x5bde05[_0x3d2806(0x236)]=0x1b5a]=_0x3d2806(0x236),_0x5bde05[_0x5bde05[_0x3d2806(0x23c)]=0x1b5b]=_0x3d2806(0x23c),_0x5bde05[_0x5bde05[_0x3d2806(0x268)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5bde05[_0x5bde05[_0x3d2806(0x186)]=0x1b5d]=_0x3d2806(0x186),_0x5bde05[_0x5bde05['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3d2806(0x209),_0x5bde05[_0x5bde05[_0x3d2806(0x15c)]=0x2329]=_0x3d2806(0x15c),_0x5bde05[_0x5bde05['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x3d2806(0x2fa),_0x5bde05[_0x5bde05[_0x3d2806(0x1e0)]=0x232b]=_0x3d2806(0x1e0),_0x5bde05[_0x5bde05[_0x3d2806(0x2f5)]=0x232c]=_0x3d2806(0x2f5),_0x5bde05[_0x5bde05[_0x3d2806(0xa1)]=0x232d]=_0x3d2806(0xa1),_0x5bde05[_0x5bde05[_0x3d2806(0x295)]=0x2711]=_0x3d2806(0x295),_0x5bde05[_0x5bde05[_0x3d2806(0x25d)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5bde05[_0x5bde05['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3d2806(0xae),_0x5bde05[_0x5bde05[_0x3d2806(0x166)]=0x2714]=_0x3d2806(0x166),_0x5bde05[_0x5bde05['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x3d2806(0x1cf),_0x5bde05[_0x5bde05[_0x3d2806(0x1db)]=0x271b]=_0x3d2806(0x1db),_0x5bde05[_0x5bde05[_0x3d2806(0x240)]=0x271c]=_0x3d2806(0x240),_0x5bde05[_0x5bde05[_0x3d2806(0x14e)]=0x271d]=_0x3d2806(0x14e),_0x5bde05[_0x5bde05[_0x3d2806(0x290)]=0x271e]=_0x3d2806(0x290),_0x5bde05[_0x5bde05[_0x3d2806(0x1fb)]=0x271f]=_0x3d2806(0x1fb),_0x5bde05[_0x5bde05[_0x3d2806(0x2d5)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5bde05[_0x5bde05['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x5bde05[_0x5bde05['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3d2806(0xc4),_0x5bde05[_0x5bde05['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x5bde05[_0x5bde05[_0x3d2806(0xe1)]=0x2ee3]=_0x3d2806(0xe1),_0x5bde05[_0x5bde05[_0x3d2806(0xaf)]=0x2ee4]=_0x3d2806(0xaf),_0x5bde05[_0x5bde05[_0x3d2806(0x2da)]=0x2ee5]=_0x3d2806(0x2da),_0x5bde05[_0x5bde05['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x3d2806(0xef),_0x5bde05[_0x5bde05[_0x3d2806(0x161)]=0x32ca]=_0x3d2806(0x161),_0x5bde05[_0x5bde05['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x3d2806(0x195),_0x5bde05[_0x5bde05[_0x3d2806(0xb6)]=-0x1]=_0x3d2806(0xb6),_0x5bde05))(je||{}),ns=Object[_0x3d2806(0x19f)],rs=(_0x3f2595,_0x2f923a,_0x325f9e,_0x278a0e)=>{const _0x23b7f2=_0x3d2806;for(var _0x372d1b=_0x278a0e>0x1?void 0x0:_0x278a0e?ns(_0x2f923a,_0x325f9e):_0x2f923a,_0x3a538f=_0x3f2595[_0x23b7f2(0x83)]-0x1,_0x2c5315;_0x3a538f>=0x0;_0x3a538f--)(_0x2c5315=_0x3f2595[_0x3a538f])&&(_0x372d1b=_0x2c5315(_0x372d1b)||_0x372d1b);return _0x372d1b;},ue=(_0x53d11c,_0x52cf76)=>(_0x29c1dc,_0x2c998a)=>_0x52cf76(_0x29c1dc,_0x2c998a,_0x53d11c);exports[_0x3d2806(0x128)]=class extends a[_0x3d2806(0x2c3)]{constructor(_0x1081a5,_0x2a0022,_0x2e1b31){const _0x429323=_0x3d2806;super(),this[_0x429323(0x26d)]=_0x1081a5,this['_httpService']=_0x2a0022,this['_configService']=_0x2e1b31;}async[_0x3d2806(0x272)](_0xbc0464,_0x2d4cb0,_0x5e0fe2,..._0xc02ec5){const _0x14dc11=_0x3d2806;var _0x5c9b2e,_0x559f69,_0x28cacf,_0x2329c6;const _0x4be6a9=this[_0x14dc11(0x26d)][_0x14dc11(0x136)]();if(!_0x4be6a9)throw new Error(_0x14dc11(0x25e));const _0x548761=((_0x5c9b2e=this[_0x14dc11(0x2ea)][_0x14dc11(0x1b2)](u[_0x14dc11(0xa6)]))!=null?_0x5c9b2e:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xbc0464+_0x14dc11(0xca)+_0x2d4cb0,_0x5c8a8a=new URL(window[_0x14dc11(0x177)]['href']),_0x225963={'scriptId':_0xbc0464,'runId':(_0x559f69=_0x5c8a8a[_0x14dc11(0xc5)][_0x14dc11(0x107)](_0x14dc11(0x283)))!=null?_0x559f69:'','function':_0x2d4cb0,'unitId':_0x4be6a9[_0x14dc11(0x1ba)](),'argsOfFunction':JSON[_0x14dc11(0x1f2)](_0xc02ec5),'invokeId':(_0x28cacf=_0x5e0fe2[_0x14dc11(0x282)])!=null?_0x28cacf:'','executionId':(_0x2329c6=_0x5e0fe2[_0x14dc11(0x198)])!=null?_0x2329c6:''};try{const _0x4c16cc=await this[_0x14dc11(0xe9)]['post'](_0x548761,{'body':_0x225963});return _0x4c16cc[_0x14dc11(0xf4)][_0x14dc11(0x197)]&&_0x4c16cc['body']['error'][_0x14dc11(0x188)]!==je['OK']?_0x14dc11(0x21c):_0x4c16cc[_0x14dc11(0xf4)][_0x14dc11(0xa5)];}catch{return _0x14dc11(0x21c);}}},exports[_0x3d2806(0x128)]=rs([ue(0x0,a[_0x3d2806(0x15b)]),ue(0x1,a[_0x3d2806(0xb9)](G[_0x3d2806(0x2c4)])),ue(0x2,a[_0x3d2806(0x154)])],exports[_0x3d2806(0x128)]),exports[_0x3d2806(0x9d)]=xe,exports[_0x3d2806(0x10b)]=Ee,exports[_0x3d2806(0x11b)]=we,exports[_0x3d2806(0x163)]=is,exports[_0x3d2806(0x2f4)]=Be;
1
+ 'use strict';const _0x598a0c=_0x43e9;(function(_0x198548,_0x3211d1){const _0x591e82=_0x43e9,_0x246c07=_0x198548();while(!![]){try{const _0x57139d=parseInt(_0x591e82(0x227))/0x1*(-parseInt(_0x591e82(0x18a))/0x2)+parseInt(_0x591e82(0x1b4))/0x3*(parseInt(_0x591e82(0x1d4))/0x4)+parseInt(_0x591e82(0x200))/0x5*(-parseInt(_0x591e82(0x1eb))/0x6)+-parseInt(_0x591e82(0x1d8))/0x7+-parseInt(_0x591e82(0x2d3))/0x8*(-parseInt(_0x591e82(0x222))/0x9)+parseInt(_0x591e82(0x375))/0xa+parseInt(_0x591e82(0x295))/0xb*(-parseInt(_0x591e82(0x247))/0xc);if(_0x57139d===_0x3211d1)break;else _0x246c07['push'](_0x246c07['shift']());}catch(_0x22dceb){_0x246c07['push'](_0x246c07['shift']());}}}(_0x47b5,0x18fff));var Ve=Object[_0x598a0c(0x2c4)],Xe=(_0xc1df70,_0x3285dc,_0x147288)=>_0x3285dc in _0xc1df70?Ve(_0xc1df70,_0x3285dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x147288}):_0xc1df70[_0x3285dc]=_0x147288,h=(_0x21e7b5,_0x2bb0dd,_0x5ae1f4)=>Xe(_0x21e7b5,typeof _0x2bb0dd!=_0x598a0c(0x304)?_0x2bb0dd+'':_0x2bb0dd,_0x5ae1f4);Object[_0x598a0c(0x2c4)](exports,Symbol[_0x598a0c(0x384)],{'value':'Module'});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x598a0c(0x356)],ze=(_0x20bcf1,_0x3570ce,_0xf99d15,_0x3235dc)=>{const _0x30ed62=_0x598a0c;for(var _0x284167=_0x3235dc>0x1?void 0x0:_0x3235dc?qe(_0x3570ce,_0xf99d15):_0x3570ce,_0x5f51ad=_0x20bcf1[_0x30ed62(0x15b)]-0x1,_0x3c23f1;_0x5f51ad>=0x0;_0x5f51ad--)(_0x3c23f1=_0x20bcf1[_0x5f51ad])&&(_0x284167=_0x3c23f1(_0x284167)||_0x284167);return _0x284167;},Oe=(_0x367bf9,_0x3ba344)=>(_0x258d97,_0x4546b3)=>_0x3ba344(_0x258d97,_0x4546b3,_0x367bf9);let de=class extends a[_0x598a0c(0x18f)]{constructor(_0x4e619d,_0xa1eb7a){const _0x4c422e=_0x598a0c;super(),this[_0x4c422e(0x305)]=_0x4e619d,this[_0x4c422e(0x1dc)]=_0xa1eb7a,this[_0x4c422e(0x323)]();}[_0x598a0c(0x323)](){const _0x5c905c=_0x598a0c,_0x3952f8=this;this[_0x5c905c(0x2f8)](this['_docClipboardService'][_0x5c905c(0x2da)]({'onBeforePasteImage':async _0x4841e9=>{const _0x3679fc=_0x5c905c,_0x423c0b=await _0x3952f8[_0x3679fc(0x1dc)]['saveImage'](_0x4841e9);return _0x423c0b?{'source':_0x423c0b[_0x3679fc(0x1c0)],'imageSourceType':_0x423c0b['imageSourceType']}:null;}}));}};de=ze([Oe(0x0,E[_0x598a0c(0x182)]),Oe(0x1,Ge[_0x598a0c(0x149)])],de);const Te=[_0x598a0c(0x2a4),_0x598a0c(0x348),_0x598a0c(0x272),_0x598a0c(0x2d4),_0x598a0c(0x1b0),_0x598a0c(0x31e)];class me extends a[_0x598a0c(0x1fb)]{constructor(){const _0x3fb878=_0x598a0c;super(...arguments),h(this,_0x3fb878(0x183),new Map()),h(this,_0x3fb878(0x2ad),0x0);}[_0x598a0c(0x1be)](_0x32c85e){const _0x88e107=_0x598a0c;if(this[_0x88e107(0x183)][_0x88e107(0x1d1)](_0x32c85e))return this[_0x88e107(0x183)][_0x88e107(0x265)](_0x32c85e);const _0x4edb71=Te[this['_colorIndex']];return this[_0x88e107(0x2ad)]=(this[_0x88e107(0x2ad)]+0x1)%Te[_0x88e107(0x15b)],this[_0x88e107(0x183)][_0x88e107(0x2e4)](_0x32c85e,_0x4edb71),_0x4edb71;}}function Pe(_0x53dff1){const _0x180409=_0x598a0c;let _0x1d7535='';for(const _0x339bea of _0x53dff1){const {startOffset:_0x74ad24,endOffset:_0x312cfa,isActive:_0x27579e,rangeType:_0x5ba1b2,segmentId:_0x688d1b,segmentPage:_0x25c049}=_0x339bea;_0x1d7535[_0x180409(0x15b)]&&(_0x1d7535+=','),_0x1d7535+=_0x74ad24+':'+_0x312cfa+':'+(_0x27579e?'1':'0')+':'+_0x5ba1b2+':'+_0x688d1b+':'+_0x25c049;}return _0x1d7535;}function Je(_0x1789d1){const _0x319550=_0x598a0c,_0x26a917=_0x1789d1['split'](','),_0x1c8bc6=[];for(const _0x2ded3a of _0x26a917){const [_0x47c40b,_0x1acca2,_0x36b67b,_0x48abd9,_0x303a27,_0x293815]=_0x2ded3a[_0x319550(0x24d)](':');_0x1c8bc6['push']({'startOffset':Number(_0x47c40b),'endOffset':Number(_0x1acca2),'collapsed':_0x47c40b===_0x1acca2,'isActive':_0x36b67b==='1','rangeType':_0x48abd9===a[_0x319550(0x2c9)]['TEXT']?a['DOC_RANGE_TYPE'][_0x319550(0x2b5)]:a['DOC_RANGE_TYPE'][_0x319550(0x15c)],'segmentId':typeof _0x303a27==_0x319550(0x212)?String(_0x303a27):'','segmentPage':Number(_0x293815!=null?_0x293815:-0x1)});}return _0x1c8bc6['some'](_0x21b52e=>_0x21b52e[_0x319550(0x347)])||(_0x1c8bc6[0x0][_0x319550(0x347)]=!0x0),_0x1c8bc6;}class Ce extends a[_0x598a0c(0x18f)]{constructor(){const _0x17bf6f=_0x598a0c;super(...arguments),h(this,_0x17bf6f(0x3a3),new d[(_0x17bf6f(0x163))](null)),h(this,_0x17bf6f(0x1a4),this[_0x17bf6f(0x3a3)][_0x17bf6f(0x143)]());}['syncEditingCollabCursor'](_0x373646){const _0x422323=_0x598a0c,{unitID:_0x1b9cf3,memberID:_0x382541,textRanges:_0x137284}=_0x373646,_0x3cf794=Pe(_0x137284);if(_0x3cf794==='')return;const _0xdf9f5={'unitID':_0x1b9cf3,'memberID':_0x382541,'selection':_0x3cf794};this[_0x422323(0x3a3)]['next'](_0xdf9f5);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x42f9ef,_0xbd28fb,_0x542952,_0x42632a)=>{for(var _0x362f50=_0x42632a>0x1?void 0x0:_0x42632a?Ze(_0xbd28fb,_0x542952):_0xbd28fb,_0x90a1c6=_0x42f9ef['length']-0x1,_0x5a0647;_0x90a1c6>=0x0;_0x90a1c6--)(_0x5a0647=_0x42f9ef[_0x90a1c6])&&(_0x362f50=_0x5a0647(_0x362f50)||_0x362f50);return _0x362f50;},L=(_0x2ea12b,_0x43cb0e)=>(_0x58c1d1,_0x36b0dc)=>_0x43cb0e(_0x58c1d1,_0x36b0dc,_0x2ea12b);const et=0x12c,tt=0x64;let Ie=class extends a[_0x598a0c(0x18f)]{constructor(_0x44a2ee,_0x160787,_0x4528e3,_0x31b6a2,_0x475006,_0x9d8c7c,_0x412506,_0xb5af7e,_0x3b7666){const _0x5a5231=_0x598a0c;super(),h(this,_0x5a5231(0x1f6),!0x1),h(this,_0x5a5231(0x323),!0x1),h(this,_0x5a5231(0x16d),new d[(_0x5a5231(0x163))](new Map())),h(this,_0x5a5231(0x1bb),this[_0x5a5231(0x16d)][_0x5a5231(0x143)]()),h(this,'_roomMembers$',new d[(_0x5a5231(0x163))]([])),h(this,_0x5a5231(0x390),this['_roomMembers$'][_0x5a5231(0x215)](d['debounceTime'](et))),h(this,_0x5a5231(0x249),a[_0x5a5231(0x36f)](_0x24c674=>{const _0x135289=_0x5a5231,_0x14d9e5={'eventID':m[_0x135289(0x2f7)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x135289(0x1ab)][_0x135289(0x2f1)](),'selection':Pe(_0x24c674)}};this['_session'][_0x135289(0x18b)](_0x14d9e5,this[_0x135289(0x396)]);},tt)),(this['unitID']=_0x44a2ee,this[_0x5a5231(0x1ab)]=_0x160787,this[_0x5a5231(0x226)]=_0x4528e3,this[_0x5a5231(0x22c)]=_0x31b6a2,this['_memberService']=_0x475006,this['_syncEditingCollabCursorService']=_0x9d8c7c,this[_0x5a5231(0x19c)]=_0x412506,this[_0x5a5231(0x254)]=_0xb5af7e,this[_0x5a5231(0x2ee)]=_0x3b7666);}get[_0x598a0c(0x380)](){const _0x5cc8f5=_0x598a0c;return this[_0x5cc8f5(0x16d)][_0x5cc8f5(0x29f)]();}get[_0x598a0c(0x17d)](){return this['_roomMembers$']['getValue']();}[_0x598a0c(0x221)](){const _0x3394f8=_0x598a0c;super[_0x3394f8(0x221)](),this[_0x3394f8(0x16d)][_0x3394f8(0x26e)](new Map()),this['_cursorInfo$'][_0x3394f8(0x1f8)](),this[_0x3394f8(0x2fe)]['next']([]),this[_0x3394f8(0x2fe)][_0x3394f8(0x1f8)]();}[_0x598a0c(0x1da)](){const _0x4a33fa=_0x598a0c;this['_init']||(this[_0x4a33fa(0x323)]=!0x0,this['_session'][_0x4a33fa(0x2af)][_0x4a33fa(0x215)](d[_0x4a33fa(0x1ef)](this['dispose$']))[_0x4a33fa(0x36b)](_0x4eabd2=>{const _0x43625f=_0x4a33fa;_0x4eabd2===u[_0x43625f(0x280)][_0x43625f(0x232)]?this[_0x43625f(0x1b3)]():this[_0x43625f(0x1f2)]();}),this[_0x4a33fa(0x1ab)][_0x4a33fa(0x1a1)][_0x4a33fa(0x215)](d[_0x4a33fa(0x1ef)](this[_0x4a33fa(0x33e)]))[_0x4a33fa(0x36b)](_0x588d0c=>{const _0x18038c=_0x4a33fa,_0x2a9040=_0x588d0c[_0x18038c(0x144)];_0x2a9040===m[_0x18038c(0x2f7)][_0x18038c(0x1a3)]&&this[_0x18038c(0x34d)](_0x588d0c),_0x2a9040===m[_0x18038c(0x2f7)]['USERS_LEAVE']&&this[_0x18038c(0x26a)](_0x588d0c);}),this[_0x4a33fa(0x2f8)](this['_commandService'][_0x4a33fa(0x308)](_0x2a0d16=>{const _0x1a2e86=_0x4a33fa,_0x71e662=_0x2a0d16[_0x1a2e86(0x2ce)];_0x71e662!=null&&this[_0x1a2e86(0x1f6)]&&_0x2a0d16['id']===Y[_0x1a2e86(0x30b)]['id']&&_0x71e662[_0x1a2e86(0x351)]===this[_0x1a2e86(0x396)]&&_0x71e662['isEditing']===!0x1&&_0x71e662[_0x1a2e86(0x26f)][_0x1a2e86(0x15b)]>0x0&&this[_0x1a2e86(0x249)](_0x71e662[_0x1a2e86(0x26f)]);})),this[_0x4a33fa(0x174)][_0x4a33fa(0x1a4)][_0x4a33fa(0x215)](d[_0x4a33fa(0x1ef)](this[_0x4a33fa(0x33e)]))[_0x4a33fa(0x36b)](_0x46d703=>{const _0x2d7ebd=_0x4a33fa;if((_0x46d703==null?void 0x0:_0x46d703['unitID'])!==this[_0x2d7ebd(0x396)])return;const _0x29efa2={'eventID':m[_0x2d7ebd(0x2f7)][_0x2d7ebd(0x1a3)],'data':_0x46d703};this[_0x2d7ebd(0x34d)](_0x29efa2);}),this[_0x4a33fa(0x2f8)](this[_0x4a33fa(0x2ee)][_0x4a33fa(0x308)](_0xb43cc9=>{const _0x1f1647=_0x4a33fa;if(_0xb43cc9['params']==null)return;const _0x1e3f25=_0xb43cc9['params'];if(_0xb43cc9['id']!==Y[_0x1f1647(0x397)]['id']||_0x1e3f25[_0x1f1647(0x351)]!==this[_0x1f1647(0x396)])return;const _0x44510d={'id':_0x1f1647(0x14c),'params':_0x1e3f25},_0x4a133f=this[_0x1f1647(0x380)];for(const [_0x56f949,_0x186e61]of _0x4a133f){const _0x380445={'id':_0x1f1647(0x14c),'params':{'unitId':this[_0x1f1647(0x396)],'actions':null,'textRanges':_0x186e61[_0x1f1647(0x26f)]}},_0x2a417=this[_0x1f1647(0x19c)]['transformMutation'](_0x44510d,_0x380445,!0x1);if(m[_0x1f1647(0x29c)](_0x2a417))throw _0x2a417['error'];_0x4a133f[_0x1f1647(0x2e4)](_0x56f949,{..._0x186e61,'ranges':_0x2a417[_0x1f1647(0x27d)][_0x1f1647(0x2ce)][_0x1f1647(0x1b1)]});}queueMicrotask(()=>{const _0x110041=_0x1f1647;this[_0x110041(0x16d)][_0x110041(0x26e)](_0x4a133f);});})));}[_0x598a0c(0x34d)](_0x17159a){const _0x33dfc2=_0x598a0c;var _0x28da2b,_0x5d0f8f;const {memberID:_0x320409,selection:_0x4feb43}=_0x17159a[_0x33dfc2(0x2fc)],_0x5cd137=Je(_0x4feb43),_0x35035e=(_0x5d0f8f=(_0x28da2b=this[_0x33dfc2(0x2cd)][_0x33dfc2(0x22f)](this[_0x33dfc2(0x396)],_0x320409))==null?void 0x0:_0x28da2b['name'])!=null?_0x5d0f8f:'Unknown\x20user',_0x20d24a={'color':this['_colorAssignService'][_0x33dfc2(0x1be)](_0x320409),'name':_0x35035e,'ranges':_0x5cd137},_0x3ce179=this[_0x33dfc2(0x380)];_0x3ce179['set'](_0x320409,_0x20d24a),this[_0x33dfc2(0x16d)]['next'](_0x3ce179);}[_0x598a0c(0x26a)](_0x58196c){const _0x5415c1=_0x598a0c,{memberID:_0x5713f9}=_0x58196c[_0x5415c1(0x2fc)],_0x500ea9=this[_0x5415c1(0x380)];_0x500ea9[_0x5415c1(0x260)](_0x5713f9),this[_0x5415c1(0x16d)]['next'](_0x500ea9);}[_0x598a0c(0x1b3)](){const _0xa9aa0c=_0x598a0c;var _0x12c6f4;if(this[_0xa9aa0c(0x1f6)]=!0x0,((_0x12c6f4=this[_0xa9aa0c(0x254)]['getFocusedUnit']())==null?void 0x0:_0x12c6f4[_0xa9aa0c(0x38c)]())!==this[_0xa9aa0c(0x396)])return;const _0xf49c9=this[_0xa9aa0c(0x226)]['get'](Y[_0xa9aa0c(0x32f)])[_0xa9aa0c(0x36e)]();Array[_0xa9aa0c(0x372)](_0xf49c9)&&_0xf49c9[_0xa9aa0c(0x15b)]>0x0&&this['_updateLocalCursor'](_0xf49c9);}[_0x598a0c(0x1f2)](){const _0x5a955e=_0x598a0c;this[_0x5a955e(0x1f6)]=!0x1;}};Ie=Qe([L(0x2,a[_0x598a0c(0x33b)](a[_0x598a0c(0x1e5)])),L(0x3,a[_0x598a0c(0x33b)](me)),L(0x4,a[_0x598a0c(0x33b)](u[_0x598a0c(0x37f)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x598a0c(0x2f5)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x598a0c(0x1ac)])],Ie);var st=Object['getOwnPropertyDescriptor'],it=(_0x45db75,_0x3fd317,_0x1997bf,_0x23f4fb)=>{const _0x386eb8=_0x598a0c;for(var _0x4f7c8f=_0x23f4fb>0x1?void 0x0:_0x23f4fb?st(_0x3fd317,_0x1997bf):_0x3fd317,_0x551f25=_0x45db75[_0x386eb8(0x15b)]-0x1,_0x1f3def;_0x551f25>=0x0;_0x551f25--)(_0x1f3def=_0x45db75[_0x551f25])&&(_0x4f7c8f=_0x1f3def(_0x4f7c8f)||_0x4f7c8f);return _0x4f7c8f;},A=(_0x201cf0,_0x59f4e8)=>(_0x5aa538,_0x112e57)=>_0x59f4e8(_0x5aa538,_0x112e57,_0x201cf0);const nt=0x12c,rt=0x64,ot=()=>{let _0x536b5c=[],_0x23e90e=!0x1;return _0x986e7f=>{const _0x4c5dc2=_0x43e9;_0x536b5c[_0x4c5dc2(0x19b)](_0x986e7f),_0x23e90e||(_0x23e90e=!0x0,setTimeout(()=>{_0x536b5c['forEach'](_0x277691=>_0x277691()),_0x536b5c=[],_0x23e90e=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x5386cd,_0xd6aeae,_0x30602d,_0x58d410,_0xf664bf,_0x270af6,_0xc1824d,_0x3899f7){const _0x4a9b4a=_0x598a0c;super(),h(this,_0x4a9b4a(0x1f6),!0x1),h(this,_0x4a9b4a(0x323),!0x1),h(this,_0x4a9b4a(0x16d),new d[(_0x4a9b4a(0x163))](new Map())),h(this,'cursorInfo$',this[_0x4a9b4a(0x16d)][_0x4a9b4a(0x143)]()),h(this,_0x4a9b4a(0x2fe),new d['BehaviorSubject']([])),h(this,_0x4a9b4a(0x390),this['_roomMembers$'][_0x4a9b4a(0x215)](d[_0x4a9b4a(0x277)](nt))),h(this,'_updateLocalCursor',a['debounce']((_0x270d9b,_0x121e7a)=>{const _0x558e0d=_0x4a9b4a,_0x4c2c4c={'eventID':m['CollaborationEvent'][_0x558e0d(0x1a3)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x558e0d(0x2f1)](),'selection':be[_0x558e0d(0x235)](_0x270d9b,_0x121e7a['range'])}};this['_session']['send'](_0x4c2c4c,this[_0x558e0d(0x396)]);},rt)),(this[_0x4a9b4a(0x396)]=_0x5386cd,this[_0x4a9b4a(0x1ab)]=_0xd6aeae,this[_0x4a9b4a(0x226)]=_0x30602d,this[_0x4a9b4a(0x22c)]=_0x58d410,this['_memberService']=_0xf664bf,this[_0x4a9b4a(0x254)]=_0x270af6,this['_commandService']=_0xc1824d,this['_refRangeService']=_0x3899f7);}get[_0x598a0c(0x380)](){const _0x55d072=_0x598a0c;return this[_0x55d072(0x16d)]['getValue']();}get[_0x598a0c(0x17d)](){const _0x48194d=_0x598a0c;return this[_0x48194d(0x2fe)][_0x48194d(0x29f)]();}[_0x598a0c(0x221)](){const _0x56259a=_0x598a0c;super[_0x56259a(0x221)](),this[_0x56259a(0x16d)][_0x56259a(0x26e)](new Map()),this[_0x56259a(0x16d)][_0x56259a(0x1f8)](),this[_0x56259a(0x2fe)][_0x56259a(0x26e)]([]),this[_0x56259a(0x2fe)][_0x56259a(0x1f8)]();}[_0x598a0c(0x1da)](){const _0x60a1c3=_0x598a0c;this[_0x60a1c3(0x323)]||(this[_0x60a1c3(0x323)]=!0x0,this[_0x60a1c3(0x1ab)][_0x60a1c3(0x2af)][_0x60a1c3(0x215)](d[_0x60a1c3(0x1ef)](this[_0x60a1c3(0x33e)]))[_0x60a1c3(0x36b)](_0x243367=>{const _0x155808=_0x60a1c3;_0x243367===u[_0x155808(0x280)][_0x155808(0x232)]?this[_0x155808(0x1b3)]():this[_0x155808(0x1f2)]();}),this[_0x60a1c3(0x1ab)]['event$'][_0x60a1c3(0x215)](d[_0x60a1c3(0x1ef)](this['dispose$']))[_0x60a1c3(0x36b)](_0x363e8f=>{const _0x218531=_0x60a1c3,_0x478058=_0x363e8f['eventID'];_0x478058===m[_0x218531(0x2f7)][_0x218531(0x1a3)]&&this[_0x218531(0x34d)](_0x363e8f),_0x478058===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x218531(0x26a)](_0x363e8f);}),this[_0x60a1c3(0x172)](),this[_0x60a1c3(0x2f8)](this[_0x60a1c3(0x2ee)][_0x60a1c3(0x308)](_0xa84076=>{const _0x55a5c1=_0x60a1c3;if(this[_0x55a5c1(0x1f6)]&&_0xa84076['id']===g[_0x55a5c1(0x223)]['id']&&_0xa84076[_0x55a5c1(0x2ce)][_0x55a5c1(0x351)]===this[_0x55a5c1(0x396)]){const _0x14391e=_0xa84076[_0x55a5c1(0x2ce)];this[_0x55a5c1(0x249)](_0x14391e[_0x55a5c1(0x2bf)],_0x14391e[_0x55a5c1(0x24a)][0x0]);}})));}['_onCursorUpdate'](_0x24dad3){const _0xd3cfcb=_0x598a0c;var _0x58f4c8,_0x1730e8;const {memberID:_0x563970,selection:_0xb9199d}=_0x24dad3['data'],{sheetName:_0x386043,range:_0x1f2e6d}=be[_0xd3cfcb(0x1aa)](_0xb9199d),_0x4bbbd0={'name':(_0x1730e8=(_0x58f4c8=this[_0xd3cfcb(0x2cd)]['getMember'](this[_0xd3cfcb(0x396)],_0x563970))==null?void 0x0:_0x58f4c8[_0xd3cfcb(0x1b8)])!=null?_0x1730e8:'Unknown\x20user','range':this[_0xd3cfcb(0x1ff)](_0x386043,_0x1f2e6d),'sheetID':_0x386043,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x563970),'selection':_0xb9199d},_0x53a7b7=this[_0xd3cfcb(0x380)];_0x53a7b7[_0xd3cfcb(0x2e4)](_0x563970,_0x4bbbd0),this[_0xd3cfcb(0x16d)][_0xd3cfcb(0x26e)](_0x53a7b7);}[_0x598a0c(0x26a)](_0x2ec971){const _0x2087e4=_0x598a0c,{memberID:_0x4a0619}=_0x2ec971[_0x2087e4(0x2fc)],_0xfdbbc4=this[_0x2087e4(0x380)];_0xfdbbc4[_0x2087e4(0x260)](_0x4a0619),this['_cursorInfo$']['next'](_0xfdbbc4);}[_0x598a0c(0x1ff)](_0x298ec1,_0x2cb327){const _0x9320a1=_0x598a0c;var _0x28e541,_0x201fac;const _0x1dd181=(_0x201fac=(_0x28e541=this[_0x9320a1(0x254)]['getUniverSheetInstance'](this[_0x9320a1(0x396)]))==null?void 0x0:_0x28e541['getSheetBySheetId'](_0x298ec1))==null?void 0x0:_0x201fac[_0x9320a1(0x153)]();return(_0x1dd181==null?void 0x0:_0x1dd181[_0x9320a1(0x142)](_0xcb3f52=>a[_0x9320a1(0x373)]['contains'](_0xcb3f52,_0x2cb327)))||_0x2cb327;}[_0x598a0c(0x172)](){const _0x24f066=_0x598a0c,_0x3b04eb=new a[(_0x24f066(0x288))](),_0x36e897=ot(),_0x2a1318=()=>{const _0x3f80e5=_0x24f066;_0x3b04eb[_0x3f80e5(0x221)]();const _0x30aa89=(_0x31ce08,_0x15e7c6,_0x3b7233,_0x1e693a)=>{const _0x2bc792=_0x3f80e5;let _0xd85527=[];switch(_0x31ce08['id']){case g[_0x2bc792(0x2bd)]['DeleteRangeMoveLeftCommandId']:{_0xd85527=g[_0x2bc792(0x27a)](_0x31ce08,_0x1e693a);break;}case g[_0x2bc792(0x2bd)][_0x2bc792(0x141)]:{_0xd85527=g[_0x2bc792(0x30a)](_0x31ce08,_0x1e693a);break;}case g[_0x2bc792(0x2bd)][_0x2bc792(0x386)]:{_0xd85527=g[_0x2bc792(0x320)](_0x31ce08,_0x1e693a);break;}case g[_0x2bc792(0x2bd)][_0x2bc792(0x15e)]:{_0xd85527=g['handleInsertRangeMoveDown'](_0x31ce08,_0x1e693a);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0xd85527=g['handleInsertRangeMoveRight'](_0x31ce08,_0x1e693a);break;}case g[_0x2bc792(0x2bd)][_0x2bc792(0x2dd)]:{_0xd85527=g[_0x2bc792(0x16c)](_0x31ce08,_0x1e693a);break;}case g['EffectRefRangId'][_0x2bc792(0x2c2)]:{_0xd85527=g['handleMoveRange'](_0x31ce08,_0x1e693a);break;}case g[_0x2bc792(0x2bd)][_0x2bc792(0x17b)]:{_0xd85527=g[_0x2bc792(0x282)](_0x31ce08,_0x1e693a);break;}case g[_0x2bc792(0x2bd)][_0x2bc792(0x2a0)]:{_0xd85527=g[_0x2bc792(0x330)](_0x31ce08,_0x1e693a);break;}}const _0xc8e88f=g[_0x2bc792(0x229)](_0xd85527,_0x1e693a),_0x1e89a7=this[_0x2bc792(0x380)][_0x2bc792(0x265)](_0x15e7c6);if(_0x1e89a7&&_0xc8e88f){const _0x45fb94={..._0x1e89a7,'range':_0xc8e88f};this[_0x2bc792(0x380)]['set'](_0x15e7c6,_0x45fb94),_0x36e897(()=>{const _0x331f30=_0x2bc792,_0x5569c0=this['_refRangeService']['registerRefRange'](_0xc8e88f,_0x18ede1=>(_0x5569c0[_0x331f30(0x221)](),_0x30aa89(_0x18ede1,_0x15e7c6,_0x3b7233,_0xc8e88f)));_0x3b04eb[_0x331f30(0x35a)](_0x5569c0);});}return{'redos':[],'undos':[]};};this[_0x3f80e5(0x380)][_0x3f80e5(0x2e0)]((_0x3be645,_0x588f3c)=>{const _0x47ea76=_0x3f80e5,{range:_0x3b5046,sheetID:_0x5df8d2}=_0x3be645,_0x1df82c=this[_0x47ea76(0x1b9)][_0x47ea76(0x327)](_0x3b5046,_0x4fb8fc=>(_0x1df82c[_0x47ea76(0x221)](),_0x30aa89(_0x4fb8fc,_0x588f3c,_0x5df8d2,_0x3b5046)));_0x3b04eb[_0x47ea76(0x35a)](_0x1df82c);});};this[_0x24f066(0x2f8)](a[_0x24f066(0x379)](this['_cursorInfo$'][_0x24f066(0x36b)](()=>{_0x2a1318();})));}[_0x598a0c(0x1b3)](){const _0x40ab6a=_0x598a0c;var _0x45199e,_0x425d4b;if(this[_0x40ab6a(0x1f6)]=!0x0,((_0x45199e=this[_0x40ab6a(0x254)][_0x40ab6a(0x1a6)]())==null?void 0x0:_0x45199e[_0x40ab6a(0x38c)]())!==this['unitID'])return;const _0x1f2723=(_0x425d4b=this['_injector'][_0x40ab6a(0x265)](g[_0x40ab6a(0x1dd)])[_0x40ab6a(0x173)]())==null?void 0x0:_0x425d4b[0x0],_0x492f15=this['_univerInstanceService'][_0x40ab6a(0x238)](a[_0x40ab6a(0x34e)][_0x40ab6a(0x271)])[_0x40ab6a(0x1f0)]();_0x1f2723&&_0x492f15&&this[_0x40ab6a(0x249)](_0x492f15['getSheetId'](),_0x1f2723);}[_0x598a0c(0x1f2)](){const _0x2c2404=_0x598a0c;this[_0x2c2404(0x1f6)]=!0x1;}};Se=it([A(0x2,a[_0x598a0c(0x33b)](a[_0x598a0c(0x1e5)])),A(0x3,a[_0x598a0c(0x33b)](me)),A(0x4,a['Inject'](u[_0x598a0c(0x37f)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x598a0c(0x1ac)]),A(0x7,a[_0x598a0c(0x33b)](g['RefRangeService']))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x40e4f0,_0x3a97cc,_0x550d63,_0x3b64a3)=>{const _0x5e897f=_0x598a0c;for(var _0x16fae8=_0x3b64a3>0x1?void 0x0:_0x3b64a3?at(_0x3a97cc,_0x550d63):_0x3a97cc,_0x46b94a=_0x40e4f0[_0x5e897f(0x15b)]-0x1,_0x1bde12;_0x46b94a>=0x0;_0x46b94a--)(_0x1bde12=_0x40e4f0[_0x46b94a])&&(_0x16fae8=_0x1bde12(_0x16fae8)||_0x16fae8);return _0x16fae8;},ie=(_0x31dbee,_0xeee4f7)=>(_0x42abea,_0x2191e6)=>_0xeee4f7(_0x42abea,_0x2191e6,_0x31dbee);let x=class extends a['RxDisposable']{constructor(_0x507177,_0x54fccb,_0x53931f){const _0x4d4a18=_0x598a0c;super(),h(this,_0x4d4a18(0x219),new Map()),h(this,_0x4d4a18(0x2df),new d[(_0x4d4a18(0x211))]()),(this[_0x4d4a18(0x254)]=_0x507177,this['_injector']=_0x54fccb,this[_0x4d4a18(0x199)]=_0x53931f,this[_0x4d4a18(0x323)]());}['dispose'](){const _0x281f93=_0x598a0c;super[_0x281f93(0x221)](),this[_0x281f93(0x2df)][_0x281f93(0x1f8)](),this[_0x281f93(0x219)][_0x281f93(0x2e0)](_0x3a9ca1=>_0x3a9ca1[_0x281f93(0x221)]());}[_0x598a0c(0x1ae)](_0x4e11d1){const _0x42f4b6=_0x598a0c;return this[_0x42f4b6(0x219)][_0x42f4b6(0x1d1)](_0x4e11d1)?this[_0x42f4b6(0x219)][_0x42f4b6(0x265)](_0x4e11d1)[_0x42f4b6(0x1bb)]:this[_0x42f4b6(0x2df)]['pipe'](d[_0x42f4b6(0x28b)](_0x3748db=>_0x3748db[_0x42f4b6(0x396)]===_0x4e11d1),d[_0x42f4b6(0x385)](_0x42d37e=>_0x42d37e['cursorInfo$']));}['_init'](){const _0x35f0d7=_0x598a0c;this[_0x35f0d7(0x254)]['getTypeOfUnitAdded$'](a[_0x35f0d7(0x34e)][_0x35f0d7(0x271)])[_0x35f0d7(0x215)](d[_0x35f0d7(0x1ef)](this[_0x35f0d7(0x33e)]))[_0x35f0d7(0x36b)](async _0x16d173=>{const _0x4b1d85=_0x35f0d7,_0x27e0e7=_0x16d173[_0x4b1d85(0x38c)](),_0x1483b5=await this[_0x4b1d85(0x218)](_0x27e0e7);this[_0x4b1d85(0x2df)]['next'](_0x1483b5),this[_0x4b1d85(0x219)][_0x4b1d85(0x2e4)](_0x27e0e7,_0x1483b5);}),this[_0x35f0d7(0x254)]['getTypeOfUnitAdded$'](a[_0x35f0d7(0x34e)][_0x35f0d7(0x25f)])[_0x35f0d7(0x215)](d[_0x35f0d7(0x1ef)](this[_0x35f0d7(0x33e)]))[_0x35f0d7(0x215)](d[_0x35f0d7(0x28b)](_0x47b034=>!_0x47b034[_0x35f0d7(0x38c)]()['startsWith']('__')))[_0x35f0d7(0x36b)](async _0x251aaf=>{const _0x282890=_0x35f0d7,_0x1ebc1e=_0x251aaf[_0x282890(0x38c)](),_0xf877ee=await this['_startDocCollabCursor'](_0x1ebc1e);this['_entityInit$']['next'](_0xf877ee),this['_entities'][_0x282890(0x2e4)](_0x1ebc1e,_0xf877ee);}),d[_0x35f0d7(0x1d9)](this['_univerInstanceService'][_0x35f0d7(0x302)](a[_0x35f0d7(0x34e)]['UNIVER_DOC']),this[_0x35f0d7(0x254)][_0x35f0d7(0x302)](a[_0x35f0d7(0x34e)][_0x35f0d7(0x271)]))[_0x35f0d7(0x215)](d[_0x35f0d7(0x1ef)](this[_0x35f0d7(0x33e)]))[_0x35f0d7(0x36b)](_0x18df61=>{const _0x2c94af=_0x35f0d7,_0x27c4ac=_0x18df61[_0x2c94af(0x38c)](),_0x5820b0=this[_0x2c94af(0x219)][_0x2c94af(0x265)](_0x27c4ac);_0x5820b0&&(_0x5820b0['dispose'](),this[_0x2c94af(0x219)]['delete'](_0x27c4ac));});}async[_0x598a0c(0x218)](_0x2ed462){const _0x5d0095=_0x598a0c,_0x2474c3=await this['_collabSessionService'][_0x5d0095(0x37b)](_0x2ed462),_0x4f4337=this['_injector']['createInstance'](Se,_0x2ed462,_0x2474c3);return _0x4f4337[_0x5d0095(0x1da)](),_0x4f4337;}async['_startDocCollabCursor'](_0x20ac2f){const _0x19501a=_0x598a0c,_0x1a174a=await this['_collabSessionService'][_0x19501a(0x37b)](_0x20ac2f),_0x520020=this[_0x19501a(0x226)]['createInstance'](Ie,_0x20ac2f,_0x1a174a);return _0x520020[_0x19501a(0x1da)](),_0x520020;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a['Inject'](u[_0x598a0c(0x1a0)]))],x);function _0x43e9(_0x5b05e9,_0x5bbd2d){const _0x47b5dc=_0x47b5();return _0x43e9=function(_0x43e95a,_0xdfb54b){_0x43e95a=_0x43e95a-0x13e;let _0x1ce553=_0x47b5dc[_0x43e95a];return _0x1ce553;},_0x43e9(_0x5b05e9,_0x5bbd2d);}const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x74c8ed,_0x115dd9){const _0x346e9b=_0x598a0c;let {radius:_0x22a4e8,width:_0x2af5e5,height:_0x3596e3}=_0x115dd9;_0x22a4e8=_0x22a4e8!=null?_0x22a4e8:0x0,_0x2af5e5=_0x2af5e5!=null?_0x2af5e5:0x1e,_0x3596e3=_0x3596e3!=null?_0x3596e3:0x1e;let _0x3edfb2=0x0,_0x4ede50=0x0,_0x204fcc=0x0;_0x3edfb2=_0x4ede50=_0x204fcc=Math[_0x346e9b(0x39a)](_0x22a4e8,_0x2af5e5/0x2,_0x3596e3/0x2),_0x74c8ed['beginPath'](),_0x74c8ed[_0x346e9b(0x344)](_0x3edfb2,0x0),_0x74c8ed[_0x346e9b(0x31d)](_0x2af5e5-_0x4ede50,0x0),_0x74c8ed[_0x346e9b(0x364)](_0x2af5e5-_0x4ede50,_0x4ede50,_0x4ede50,Math['PI']*0x3/0x2,0x0,!0x1),_0x74c8ed[_0x346e9b(0x31d)](_0x2af5e5,_0x3596e3-_0x204fcc),_0x74c8ed['arc'](_0x2af5e5-_0x204fcc,_0x3596e3-_0x204fcc,_0x204fcc,0x0,Math['PI']/0x2,!0x1),_0x74c8ed[_0x346e9b(0x31d)](0x0,_0x3596e3),_0x74c8ed[_0x346e9b(0x31d)](0x0,_0x3edfb2),_0x74c8ed[_0x346e9b(0x364)](_0x3edfb2,_0x3edfb2,_0x3edfb2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x74c8ed[_0x346e9b(0x306)](),_0x115dd9[_0x346e9b(0x3a8)]&&(_0x74c8ed['save'](),_0x74c8ed[_0x346e9b(0x264)]=_0x115dd9[_0x346e9b(0x3a8)],_0x115dd9[_0x346e9b(0x274)]===_0x346e9b(0x197)?_0x74c8ed['fill'](_0x346e9b(0x197)):_0x74c8ed[_0x346e9b(0x3a8)](),_0x74c8ed[_0x346e9b(0x2ae)]());}class ee extends p['Shape']{constructor(_0x3d3794,_0x4eb4bc){const _0x19925b=_0x598a0c;super(_0x3d3794,_0x4eb4bc),h(this,_0x19925b(0x325)),h(this,_0x19925b(0x328)),(this[_0x19925b(0x325)]=_0x4eb4bc==null?void 0x0:_0x4eb4bc[_0x19925b(0x325)],this[_0x19925b(0x328)]=_0x4eb4bc==null?void 0x0:_0x4eb4bc[_0x19925b(0x328)]);}static[_0x598a0c(0x1fa)](_0x487c8f,_0x30407a){const _0x3de186=_0x598a0c,{text:_0x3cd342,color:_0x2202e6}=_0x30407a;_0x487c8f[_0x3de186(0x206)](),_0x487c8f[_0x3de186(0x23f)]=_0x3de186(0x275);const _0x452d66=_0x487c8f[_0x3de186(0x365)](_0x3cd342)['width'],_0x2f657f=Math[_0x3de186(0x39a)](_0x452d66+0x2*ne,Re);_t(_0x487c8f,{'height':K,'radius':0x4,'width':_0x2f657f,'fill':_0x2202e6}),_0x487c8f[_0x3de186(0x264)]=_0x3de186(0x30e);const _0x1f5b7a=ne,_0x30759e=K-lt,_0x4ac3d8=Re-0x2*ne;if(_0x452d66>_0x4ac3d8){let _0x24da68='',_0x4c2b18=0x0;for(const _0x52696c of _0x3cd342){const _0x3acdfc=_0x487c8f['measureText'](_0x52696c)[_0x3de186(0x27f)];if(_0x4c2b18+_0x3acdfc<=_0x4ac3d8-_0x487c8f[_0x3de186(0x365)](_0x3de186(0x399))[_0x3de186(0x27f)])_0x24da68+=_0x52696c,_0x4c2b18+=_0x3acdfc;else{_0x24da68+=_0x3de186(0x399);break;}}_0x487c8f[_0x3de186(0x241)](_0x24da68,_0x1f5b7a,_0x30759e);}else _0x487c8f[_0x3de186(0x241)](_0x3cd342,_0x1f5b7a,_0x30759e);_0x487c8f[_0x3de186(0x2ae)]();}[_0x598a0c(0x145)](_0x31cc62){const _0x46e1c9=_0x598a0c;ee[_0x46e1c9(0x1fa)](_0x31cc62,this);}}const re='collab-text-anchor-',ht=_0x598a0c(0x21b),ut=_0x598a0c(0x3ad),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x598a0c(0x32d);class De{constructor(_0x55098f,_0x367cee,_0xe87155,_0x438791){const _0xf80a6c=_0x598a0c;h(this,_0xf80a6c(0x291),[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0xf80a6c(0x15f),null),h(this,_0xf80a6c(0x2d8),null),h(this,_0xf80a6c(0x2d9),null),(this['_cursor']=_0x55098f,this['_scene']=_0x367cee,this['_docSkeleton']=_0xe87155,this[_0xf80a6c(0x1a5)]=_0x438791,this[_0xf80a6c(0x217)]());}set['_hover'](_0x29f675){const _0x45b5fd=_0x598a0c;_0x29f675?(this[_0x45b5fd(0x15f)]&&this[_0x45b5fd(0x15f)][_0x45b5fd(0x26d)](),this[_0x45b5fd(0x187)]&&this[_0x45b5fd(0x187)][_0x45b5fd(0x2e5)]()):(this[_0x45b5fd(0x15f)]&&this[_0x45b5fd(0x15f)][_0x45b5fd(0x2e5)](),this[_0x45b5fd(0x187)]&&this['_textBubble'][_0x45b5fd(0x26d)]());}[_0x598a0c(0x221)](){const _0xb49f10=_0x598a0c;for(const _0x509e2a of this[_0xb49f10(0x291)])_0x509e2a[_0xb49f10(0x221)]();this[_0xb49f10(0x187)]&&this[_0xb49f10(0x187)][_0xb49f10(0x221)](),this[_0xb49f10(0x15f)]&&this[_0xb49f10(0x15f)][_0xb49f10(0x221)](),this[_0xb49f10(0x289)]&&this[_0xb49f10(0x289)][_0xb49f10(0x221)](),this[_0xb49f10(0x2d9)]&&this[_0xb49f10(0x2d9)]();}[_0x598a0c(0x217)](){const _0x514af9=_0x598a0c;var _0x112a80;const {_docSkeleton:_0x1f311f,_document:_0x1c8b3c}=this,{color:_0x362e3a,name:_0x3b8568,ranges:_0x1fc3b1}=this[_0x514af9(0x34f)],_0x17a68f=_0x1c8b3c[_0x514af9(0x204)](),{docsLeft:_0x1273b3,docsTop:_0x335bf4}=_0x17a68f,_0x1027d1=new E[(_0x514af9(0x1cd))](_0x17a68f,_0x1f311f);for(const {startOffset:_0x5085da,endOffset:_0x4ad423,rangeType:_0x2b53de,segmentId:_0x180a59,segmentPage:_0x11a9aa,collapsed:_0x3c4c97,isActive:_0x220c25}of _0x1fc3b1){const _0x33f4eb=_0x1f311f[_0x514af9(0x1cc)](_0x5085da,!0x0,_0x180a59,_0x11a9aa);let _0x2f8779=_0x1f311f[_0x514af9(0x1cc)](_0x4ad423,!0x0,_0x180a59,_0x11a9aa);if(_0x2f8779==null&&(_0x2f8779=_0x1f311f[_0x514af9(0x1cc)](_0x4ad423-0x1,!0x1,_0x180a59,_0x11a9aa)),_0x220c25){const {contentBoxPointGroup:_0x1797dd}=_0x1027d1[_0x514af9(0x2eb)](_0x2f8779,_0x2f8779);if(_0x1797dd['length']===0x0)continue;this[_0x514af9(0x1c9)](_0x362e3a,_0x1797dd,_0x1273b3,_0x335bf4,_0x3b8568),this[_0x514af9(0x2d9)]=this[_0x514af9(0x31b)]();}if(_0x33f4eb&&_0x2f8779){if(_0x2b53de===a[_0x514af9(0x2c9)][_0x514af9(0x15c)]){const _0x474899=new E['NodePositionConvertToRectRange'](_0x17a68f,_0x1f311f),{pointGroup:_0x52b700}=(_0x112a80=_0x474899['getRangePointData'](_0x33f4eb,_0x2f8779))!=null?_0x112a80:{};if(_0x52b700==null||_0x52b700[_0x514af9(0x15b)]===0x0)continue;this[_0x514af9(0x202)](_0x362e3a,_0x52b700,_0x1273b3,_0x335bf4);}else{if(!_0x3c4c97){const {borderBoxPointGroup:_0x41c209}=_0x1027d1[_0x514af9(0x2eb)](_0x33f4eb,_0x2f8779);if(_0x41c209[_0x514af9(0x15b)]===0x0)continue;this['_drawTextRange'](_0x362e3a,_0x41c209,_0x1273b3,_0x335bf4);}}}}}[_0x598a0c(0x1c9)](_0x4172b4,_0x42efe1,_0x37b88d,_0x20611f,_0x4f62fa){const _0x1a173d=_0x598a0c,_0x45770d=this['_getAnchorBounding'](_0x42efe1),{left:_0x342ce2,top:_0x3cf957,height:_0x97bf4b}=_0x45770d,_0x3e96a9=this[_0x1a173d(0x2d1)](),_0x2b5b46=It/_0x3e96a9,_0x327c7d=new p[(_0x1a173d(0x394))](re+a[_0x1a173d(0x2c1)][_0x1a173d(0x146)](k),{'left':_0x342ce2+_0x37b88d-_0x2b5b46,'top':_0x3cf957+_0x20611f,'height':_0x97bf4b,'width':dt,'fill':_0x4172b4||p[_0x1a173d(0x300)](a['COLORS'][_0x1a173d(0x185)],0x0),'strokeWidth':_0x2b5b46,'stroke':St,'evented':!0x0});this[_0x1a173d(0x289)]=_0x327c7d,this[_0x1a173d(0x361)][_0x1a173d(0x376)](_0x327c7d,E[_0x1a173d(0x20a)]);const _0x407bd1=new p[(_0x1a173d(0x394))](re+a[_0x1a173d(0x2c1)]['generateRandomId'](k),{'left':_0x342ce2+_0x37b88d-_0x2b5b46,'top':_0x3cf957+_0x20611f-oe/0x2,'height':oe,'width':oe,'fill':_0x4172b4||p[_0x1a173d(0x300)](a['COLORS'][_0x1a173d(0x185)],0x0),'strokeWidth':0x0,'stroke':_0x4172b4||p[_0x1a173d(0x300)](a[_0x1a173d(0x1ad)][_0x1a173d(0x185)],0x0),'evented':!0x1});this[_0x1a173d(0x15f)]=_0x407bd1,this[_0x1a173d(0x361)][_0x1a173d(0x376)](_0x407bd1,E[_0x1a173d(0x20a)]);const _0x1f245f=new ee(re+a[_0x1a173d(0x2c1)][_0x1a173d(0x146)](k),{'left':_0x342ce2+_0x37b88d-_0x2b5b46,'top':_0x3cf957+_0x20611f-K,'text':_0x4f62fa,'color':_0x4172b4});this[_0x1a173d(0x187)]=_0x1f245f,this[_0x1a173d(0x361)]['addObject'](_0x1f245f,E['TEXT_RANGE_LAYER_INDEX']),this[_0x1a173d(0x256)]=!0x1;}[_0x598a0c(0x31b)](){const _0x31447b=_0x598a0c,_0x4bbbe9=this[_0x31447b(0x289)][_0x31447b(0x18e)][_0x31447b(0x35e)](()=>{const _0x1c2d86=_0x31447b;this[_0x1c2d86(0x256)]=!0x0;}),_0x164029=this[_0x31447b(0x289)][_0x31447b(0x250)][_0x31447b(0x35e)](()=>{const _0xe7a716=_0x31447b;this[_0xe7a716(0x2d8)]&&clearTimeout(this[_0xe7a716(0x2d8)]),this[_0xe7a716(0x2d8)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x307054=_0x31447b;_0x4bbbe9[_0x307054(0x317)](),_0x164029[_0x307054(0x317)]();};}['_drawTextRange'](_0x43cac6,_0x38b067,_0x1900d3,_0x3e4492){const _0x1faf01=_0x598a0c,_0x3ab664=new a[(_0x1faf01(0x2be))](_0x43cac6)['setAlpha'](0.2)[_0x1faf01(0x36d)](),_0x8da8fb=new p[(_0x1faf01(0x33c))](ht+a[_0x1faf01(0x2c1)][_0x1faf01(0x146)](k),{'pointsGroup':_0x38b067,'fill':_0x3ab664||p[_0x1faf01(0x300)](a[_0x1faf01(0x1ad)][_0x1faf01(0x185)],0.2),'left':_0x1900d3,'top':_0x3e4492,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1faf01(0x291)][_0x1faf01(0x19b)](_0x8da8fb),this['_scene'][_0x1faf01(0x376)](_0x8da8fb,E[_0x1faf01(0x20a)]);}['_drawRectRange'](_0x4574ec,_0xe7d3a6,_0x3a60b7,_0x3e854f){const _0x22db26=_0x598a0c,_0x4bf5e6=new a[(_0x22db26(0x2be))](_0x4574ec)[_0x22db26(0x1b5)](0.2)[_0x22db26(0x36d)](),_0x3132cf=new p['RegularPolygon'](ut+a[_0x22db26(0x2c1)][_0x22db26(0x146)](k),{'pointsGroup':_0xe7d3a6,'fill':_0x4bf5e6||p[_0x22db26(0x300)](a[_0x22db26(0x1ad)]['black'],0.2),'left':_0x3a60b7,'top':_0x3e854f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x22db26(0x291)][_0x22db26(0x19b)](_0x3132cf),this['_scene'][_0x22db26(0x376)](_0x3132cf,E[_0x22db26(0x20a)]);}['_getAnchorBounding'](_0x3d98db){const _0x361430=_0x3d98db[0x0],_0x3834e9=_0x361430[0x0],_0x258530=_0x361430[0x2],{x:_0x4e4685,y:_0x377142}=_0x3834e9,{x:_0x5a41f7,y:_0x2e11b9}=_0x258530;return{'left':_0x4e4685,'top':_0x377142,'width':_0x5a41f7-_0x4e4685,'height':_0x2e11b9-_0x377142};}[_0x598a0c(0x2d1)](){const _0x27a4fc=_0x598a0c,{scaleX:_0xec2f1f,scaleY:_0x76eac6}=this['_scene'][_0x27a4fc(0x177)]();return Math['max'](_0xec2f1f,_0x76eac6);}}var ft=Object[_0x598a0c(0x356)],vt=(_0x3e5c09,_0x4d8e4f,_0x14ae6a,_0x65a369)=>{const _0x408eba=_0x598a0c;for(var _0x3dda92=_0x65a369>0x1?void 0x0:_0x65a369?ft(_0x4d8e4f,_0x14ae6a):_0x4d8e4f,_0x5318b3=_0x3e5c09[_0x408eba(0x15b)]-0x1,_0x568397;_0x5318b3>=0x0;_0x5318b3--)(_0x568397=_0x3e5c09[_0x5318b3])&&(_0x3dda92=_0x568397(_0x3dda92)||_0x3dda92);return _0x3dda92;},W=(_0x1b0668,_0x174351)=>(_0x2f39f5,_0xe6b091)=>_0x174351(_0x2f39f5,_0xe6b091,_0x1b0668);let fe=class extends a[_0x598a0c(0x18f)]{constructor(_0xe4a02f,_0xe52a5f,_0x1da8ae,_0x5bde7d,_0x4baac6){const _0x91c521=_0x598a0c;super(),h(this,_0x91c521(0x292),[]),h(this,_0x91c521(0x1d3),[]),(this[_0x91c521(0x2f9)]=_0xe4a02f,this[_0x91c521(0x279)]=_0xe52a5f,this[_0x91c521(0x1d7)]=_0x1da8ae,this[_0x91c521(0x2ee)]=_0x5bde7d,this[_0x91c521(0x1ee)]=_0x4baac6,this[_0x91c521(0x323)]());}[_0x598a0c(0x323)](){const _0x3dcdec=_0x598a0c,_0x216dff=this[_0x3dcdec(0x2f9)][_0x3dcdec(0x351)],_0x3753d8=this[_0x3dcdec(0x279)];this['disposeWithMe'](d[_0x3dcdec(0x2c8)]([this['_collabCursorController'][_0x3dcdec(0x1ae)](_0x216dff),this[_0x3dcdec(0x1ee)]['currentTheme$']])[_0x3dcdec(0x215)]($[_0x3dcdec(0x30f)](([_0x4fbbee,_0x1071ed])=>({'skeleton':_0x3753d8['getSkeleton'](),'cursors':[..._0x4fbbee[_0x3dcdec(0x23b)]()][_0x3dcdec(0x329)](_0x5d74cc=>({..._0x5d74cc,'color':this[_0x3dcdec(0x1ee)]['getColorFromTheme'](_0x5d74cc['color'])}))})))[_0x3dcdec(0x36b)](_0x581d0a=>{const _0x3a1093=_0x3dcdec;if(this[_0x3a1093(0x2b3)](),_0x581d0a){const {skeleton:_0x5c2213,cursors:_0x206f4e}=_0x581d0a;this['_updateCollabCursors'](_0x5c2213,_0x206f4e);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0xee7e4e,_0x45eac9){const _0xc15fa4=_0x598a0c,{scene:_0x2934fe,mainComponent:_0x146a75}=this['_context'],_0x5b2f33=_0x45eac9[_0xc15fa4(0x30f)](_0x2575d1=>new De(_0x2575d1,_0x2934fe,_0xee7e4e,_0x146a75));this[_0xc15fa4(0x292)]=_0x5b2f33,this[_0xc15fa4(0x1d3)]=_0x45eac9;}[_0x598a0c(0x334)](){const _0x4b019f=_0x598a0c;this[_0x4b019f(0x2b3)]();const {scene:_0x4a49cc,mainComponent:_0x290cb8}=this[_0x4b019f(0x2f9)],_0xd6d465=this[_0x4b019f(0x279)][_0x4b019f(0x321)](),_0x171dfb=this[_0x4b019f(0x1d3)][_0x4b019f(0x30f)](_0x19c9ec=>new De(_0x19c9ec,_0x4a49cc,_0xd6d465,_0x290cb8));this[_0x4b019f(0x292)]=_0x171dfb;}['_removeCollabCursors'](){const _0x429fdc=_0x598a0c;this['_cursorShapes']['forEach'](_0x40b85d=>_0x40b85d[_0x429fdc(0x221)]()),this[_0x429fdc(0x292)]=[];}[_0x598a0c(0x1d6)](){const _0x5ef7fb=_0x598a0c,_0x22cde0=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x5ef7fb(0x2ee)][_0x5ef7fb(0x308)](_0x3ba61e=>{const _0x5acde1=_0x5ef7fb;_0x22cde0['includes'](_0x3ba61e['id'])&&_0x3ba61e[_0x5acde1(0x2ce)]['unitId']===this['_context'][_0x5acde1(0x351)]&&this[_0x5acde1(0x334)]();}));}[_0x598a0c(0x1fe)](){const _0x3029f1=_0x598a0c;this[_0x3029f1(0x2f8)](a['fromEventSubject'](this[_0x3029f1(0x2f9)][_0x3029f1(0x169)]['onTransformChange$'])[_0x3029f1(0x215)]($[_0x3029f1(0x28b)](_0x573708=>_0x573708['type']===p[_0x3029f1(0x2cc)][_0x3029f1(0x25b)]),$[_0x3029f1(0x224)](0x10))['subscribe'](()=>{const _0x50ac94=_0x3029f1;this[_0x50ac94(0x334)]();}));}};fe=vt([W(0x1,a[_0x598a0c(0x33b)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x598a0c(0x33b)](x)),W(0x3,a[_0x598a0c(0x1ac)]),W(0x4,a['Inject'](a[_0x598a0c(0x258)]))],fe);const gt=0x1,mt=1.5;class we extends p[_0x598a0c(0x316)]{constructor(_0x360006,_0x406542){const _0x17c0ec=_0x598a0c;super(_0x360006,_0x406542),h(this,_0x17c0ec(0x20e)),h(this,_0x17c0ec(0x1ec),!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x17c0ec(0x16e),_0x17c0ec(0x2e3)),h(this,_0x17c0ec(0x207)),(_0x406542&&this['setShapeProps'](_0x406542),this[_0x17c0ec(0x18e)][_0x17c0ec(0x35e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x17c0ec(0x250)][_0x17c0ec(0x35e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x598a0c(0x25d)](_0x429496){const _0x57630e=_0x598a0c;var _0x37b922,_0x288ff6,_0x355400,_0x153d42,_0x1e7f17,_0x1e8859;this['_color']=(_0x37b922=_0x429496[_0x57630e(0x325)])!=null?_0x37b922:this[_0x57630e(0x20e)],this[_0x57630e(0x1ec)]=(_0x288ff6=_0x429496['hovered'])!=null?_0x288ff6:this[_0x57630e(0x1ec)],this[_0x57630e(0x3a2)]=(_0x355400=_0x429496['range'])!=null?_0x355400:this[_0x57630e(0x3a2)],this[_0x57630e(0x35c)]=(_0x153d42=_0x429496[_0x57630e(0x1b8)])!=null?_0x153d42:this[_0x57630e(0x35c)],this[_0x57630e(0x16e)]=(_0x1e7f17=_0x429496['labelPosition'])!=null?_0x1e7f17:this[_0x57630e(0x16e)],this['_backgroundColor']=(_0x1e8859=_0x429496['backgroundColor'])!=null?_0x1e8859:this['_backgroundColor'],this[_0x57630e(0x165)]({'width':_0x429496[_0x57630e(0x27f)],'height':_0x429496[_0x57630e(0x1fc)]});}[_0x598a0c(0x337)](_0x5bec12){const _0x43cff6=_0x598a0c,{row:_0x5d7b64,column:_0x168b67}=_0x5bec12;if(_0x5d7b64>=this['_range'][_0x43cff6(0x1df)]&&_0x5d7b64<=this[_0x43cff6(0x3a2)][_0x43cff6(0x32b)]&&_0x168b67>=this[_0x43cff6(0x3a2)][_0x43cff6(0x2a8)]&&_0x168b67<=this[_0x43cff6(0x3a2)][_0x43cff6(0x25c)]){this[_0x43cff6(0x25d)]({'hovered':!0x0});return;}this[_0x43cff6(0x25d)]({'hovered':!0x1});}[_0x598a0c(0x3ac)](_0x49e54f){return!0x1;}[_0x598a0c(0x145)](_0x1b3ca8){const _0x3e56ea=_0x598a0c;p[_0x3e56ea(0x394)]['drawWith'](_0x1b3ca8,{'width':this[_0x3e56ea(0x27f)],'height':this[_0x3e56ea(0x1fc)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3e56ea(0x207)]}),this[_0x3e56ea(0x1ec)]&&(_0x1b3ca8['save'](),_0x1b3ca8['transform'](0x1,0x0,0x0,0x1,this[_0x3e56ea(0x27f)],this[_0x3e56ea(0x16e)]===_0x3e56ea(0x239)?0x0:-0x14),ee[_0x3e56ea(0x1fa)](_0x1b3ca8,{'text':this['_name'],'color':this['_color']}),_0x1b3ca8[_0x3e56ea(0x2ae)]());}}var Ct=Object[_0x598a0c(0x356)],pt=(_0x1574f3,_0x2a430e,_0x1334f1,_0x58dee1)=>{for(var _0x74c589=_0x58dee1>0x1?void 0x0:_0x58dee1?Ct(_0x2a430e,_0x1334f1):_0x2a430e,_0xfcdb31=_0x1574f3['length']-0x1,_0x145940;_0xfcdb31>=0x0;_0xfcdb31--)(_0x145940=_0x1574f3[_0xfcdb31])&&(_0x74c589=_0x145940(_0x74c589)||_0x74c589);return _0x74c589;},ae=(_0x542c41,_0x233f24)=>(_0x108aac,_0x35803d)=>_0x233f24(_0x108aac,_0x35803d,_0x542c41);const Et=0x1389;let ve=class extends a[_0x598a0c(0x18f)]{constructor(_0x1a1781,_0x5f511c,_0x1cf07f,_0x470d1d){const _0x3631e0=_0x598a0c;super(),h(this,'_cursors',new Set()),h(this,_0x3631e0(0x252),null),(this[_0x3631e0(0x2f9)]=_0x1a1781,this[_0x3631e0(0x2ff)]=_0x5f511c,this[_0x3631e0(0x1d7)]=_0x1cf07f,this[_0x3631e0(0x1ee)]=_0x470d1d,this[_0x3631e0(0x323)]());}['_init'](){const _0x152c6d=_0x598a0c;this[_0x152c6d(0x2ff)]['currentSkeleton$']['pipe']($[_0x152c6d(0x1ef)](this[_0x152c6d(0x33e)]),$[_0x152c6d(0x385)](_0x158ba8=>{const _0x301541=_0x152c6d;if(_0x158ba8){const _0x3bf82f=_0x158ba8['sheetId'];return d[_0x301541(0x2c8)](this[_0x301541(0x1d7)]['getCollabCursors$'](this[_0x301541(0x2f9)][_0x301541(0x351)]),this[_0x301541(0x1ee)][_0x301541(0x3a9)])[_0x301541(0x215)]($['map'](([_0x1a2a03,_0x3d5914])=>{const _0x4a3ad3=new Map();return _0x1a2a03['forEach']((_0x4cb6e1,_0x24923e)=>{const _0x3d3312=_0x43e9;if(_0x4cb6e1[_0x3d3312(0x38e)]===_0x3bf82f){const _0x453186={..._0x4cb6e1};_0x453186[_0x3d3312(0x325)]=this[_0x3d3312(0x1ee)][_0x3d3312(0x192)](_0x4cb6e1[_0x3d3312(0x325)]),_0x4a3ad3[_0x3d3312(0x2e4)](_0x24923e,_0x453186);}}),{'skeleton':_0x158ba8,'cursors':_0x4a3ad3};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x820d19,cursors:_0x1deae2})=>{const _0x562419=_0x152c6d;this[_0x562419(0x2b3)](),_0x820d19&&this[_0x562419(0x2bb)](_0x820d19,_0x1deae2);}),this[_0x152c6d(0x2ff)][_0x152c6d(0x34b)][_0x152c6d(0x36b)](_0x4fb9aa=>{const _0x44293f=_0x152c6d;if(_0x4fb9aa==null)return;const {skeleton:_0x3faaf6}=_0x4fb9aa,{scene:_0x366019}=this['_context'];_0x366019['onPointerMove$'][_0x44293f(0x35e)](a[_0x44293f(0x36f)](_0x42c346=>{const _0x30235e=_0x44293f;var _0x4cb4a6,_0x984af3;const {offsetX:_0x4dfdf8,offsetY:_0x25a4e2}=_0x42c346,{x:_0x1a28ce,y:_0x1a269f}=_0x366019[_0x30235e(0x1de)](p[_0x30235e(0x39f)]['FromArray']([_0x4dfdf8,_0x25a4e2])),{scaleX:_0x20d106,scaleY:_0x571130}=_0x366019['getAncestorScale'](),_0x525934=_0x366019[_0x30235e(0x312)](p[_0x30235e(0x287)]['VIEW_MAIN']),_0x5e4986=_0x366019[_0x30235e(0x350)](p[_0x30235e(0x39f)][_0x30235e(0x32a)]([_0x1a28ce,_0x1a269f]),_0x525934),_0x8f951=_0x3faaf6['getCellPositionByOffset'](_0x4dfdf8,_0x25a4e2,_0x20d106,_0x571130,_0x5e4986);((_0x4cb4a6=this[_0x30235e(0x252)])==null?void 0x0:_0x4cb4a6['column'])===_0x8f951[_0x30235e(0x152)]&&((_0x984af3=this[_0x30235e(0x252)])==null?void 0x0:_0x984af3[_0x30235e(0x322)])===_0x8f951['row']||this[_0x30235e(0x1d3)][_0x30235e(0x2e0)](_0x271bc9=>{const _0x1d0a36=_0x30235e;_0x271bc9[_0x1d0a36(0x337)](_0x8f951);});},0x64));});}[_0x598a0c(0x2bb)](_0x3d9fba,_0x2977e6){const _0x42684f=_0x598a0c;var _0x2b21b5;const _0x59706f=(_0x2b21b5=this[_0x42684f(0x2ff)]['getCurrent']())==null?void 0x0:_0x2b21b5['skeleton'];if(!_0x59706f)return;const _0x21417c=this[_0x42684f(0x357)]();if(!_0x21417c)return;this[_0x42684f(0x1d3)]['forEach'](_0xdf4121=>{_0xdf4121['makeDirty']();});const {scene:_0x2a09d8}=_0x21417c,_0x326d8d=bt(Array[_0x42684f(0x18c)](_0x2977e6['values']()))['map'](_0x17f083=>{const _0x10a60d=_0x42684f,{color:_0x3bef22,range:_0x2959b5,name:_0x5b1eeb,selection:_0x288927,sheetID:_0x1a4d5c}=_0x17f083,{startColumn:_0x4a53a7,startRow:_0x3b7cd7,endColumn:_0x14b389,endRow:_0x34e79a}=_0x2959b5,_0x5d2e04=X[_0x10a60d(0x17c)](_0x3b7cd7,_0x4a53a7,_0x2a09d8,_0x59706f),_0x1df8f4=X['getCoordByCell'](_0x34e79a,_0x14b389,_0x2a09d8,_0x59706f),{columnHeaderHeightAndMarginTop:_0x2c3dbe}=_0x59706f,{startX:_0x43faf7,startY:_0xfe0e35}=_0x5d2e04,{endX:_0x3313c0,endY:_0x2fc2bb}=_0x1df8f4,_0x37d125=_0x3313c0-_0x43faf7,_0x14d7ec=_0x2fc2bb-_0xfe0e35,_0x28553e={'labelPosition':_0xfe0e35-_0x2c3dbe>=K?_0x10a60d(0x2e3):_0x10a60d(0x239),'sheetID':_0x1a4d5c,'range':_0x2959b5,'color':_0x3bef22,'name':_0x5b1eeb,'selection':_0x288927,'left':_0x43faf7,'top':_0xfe0e35,'width':_0x37d125,'height':_0x14d7ec,'evented':!0x1,'zIndex':Et};return new we(_0x5b1eeb,_0x28553e);});_0x2a09d8['addObjects'](_0x326d8d,gt),this['_cursors']=new Set(_0x326d8d);}[_0x598a0c(0x2b3)](){const _0x58ae02=_0x598a0c;var _0x16c3db;(_0x16c3db=this[_0x58ae02(0x1d3)])==null||_0x16c3db[_0x58ae02(0x2e0)](_0x1e637e=>_0x1e637e[_0x58ae02(0x221)]());}[_0x598a0c(0x357)](){const _0x21db99=_0x598a0c;return X[_0x21db99(0x2e9)](this['_context'][_0x21db99(0x341)],this[_0x21db99(0x2f9)]);}};ve=pt([ae(0x1,a[_0x598a0c(0x33b)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x598a0c(0x33b)](x)),ae(0x3,a[_0x598a0c(0x33b)](a[_0x598a0c(0x258)]))],ve);function bt(_0x1581b4){const _0xbb0317=_0x598a0c,_0x5dea65=new Map();return _0x1581b4[_0xbb0317(0x2e0)](_0x1d8c48=>{const _0x904341=_0xbb0317;if(_0x5dea65[_0x904341(0x1d1)](_0x1d8c48[_0x904341(0x2ef)])){const _0x5e6add=_0x5dea65[_0x904341(0x265)](_0x1d8c48[_0x904341(0x2ef)]);_0x5e6add[_0x904341(0x1b8)]+=',\x20'+_0x1d8c48['name'];}else _0x5dea65[_0x904341(0x2e4)](_0x1d8c48[_0x904341(0x2ef)],_0x1d8c48);}),Array[_0xbb0317(0x18c)](_0x5dea65[_0xbb0317(0x23b)]());}var b=function(){const _0x272006=_0x598a0c;return b=Object['assign']||function(_0x49e149){const _0x2394af=_0x43e9;for(var _0x25124d,_0xb41f3a=0x1,_0x1a795c=arguments['length'];_0xb41f3a<_0x1a795c;_0xb41f3a++){_0x25124d=arguments[_0xb41f3a];for(var _0x51f55c in _0x25124d)Object[_0x2394af(0x20c)][_0x2394af(0x36c)][_0x2394af(0x170)](_0x25124d,_0x51f55c)&&(_0x49e149[_0x51f55c]=_0x25124d[_0x51f55c]);}return _0x49e149;},b[_0x272006(0x2e8)](this,arguments);},Ot=function(_0x345da6,_0x240623){const _0x256113=_0x598a0c;var _0x49b05b={};for(var _0x5c040a in _0x345da6)Object[_0x256113(0x20c)][_0x256113(0x36c)][_0x256113(0x170)](_0x345da6,_0x5c040a)&&_0x240623[_0x256113(0x193)](_0x5c040a)<0x0&&(_0x49b05b[_0x5c040a]=_0x345da6[_0x5c040a]);if(_0x345da6!=null&&typeof Object[_0x256113(0x19f)]==_0x256113(0x150)){for(var _0x556bf1=0x0,_0x5c040a=Object['getOwnPropertySymbols'](_0x345da6);_0x556bf1<_0x5c040a[_0x256113(0x15b)];_0x556bf1++)_0x240623[_0x256113(0x193)](_0x5c040a[_0x556bf1])<0x0&&Object[_0x256113(0x20c)][_0x256113(0x1cf)][_0x256113(0x170)](_0x345da6,_0x5c040a[_0x556bf1])&&(_0x49b05b[_0x5c040a[_0x556bf1]]=_0x345da6[_0x5c040a[_0x556bf1]]);}return _0x49b05b;},pe=M[_0x598a0c(0x158)](function(_0x1906fd,_0x541827){const _0x3cb366=_0x598a0c;var _0x47a039=_0x1906fd[_0x3cb366(0x30c)],_0x1d01d5=_0x1906fd['id'],_0x261301=_0x1906fd[_0x3cb366(0x2fd)],_0x53c31e=_0x1906fd[_0x3cb366(0x27c)],_0x59dc42=Ot(_0x1906fd,['icon','id',_0x3cb366(0x2fd),_0x3cb366(0x27c)]),_0x9afebd=_0x3cb366(0x1d0)['concat'](_0x1d01d5,'\x20')['concat'](_0x261301||'')[_0x3cb366(0x155)](),_0x5ab7aa=M[_0x3cb366(0x23c)]('_'['concat'](Dt()));return Ae(_0x47a039,''[_0x3cb366(0x22b)](_0x1d01d5),{'defIds':_0x47a039[_0x3cb366(0x1ce)],'idSuffix':_0x5ab7aa['current']},b({'ref':_0x541827,'className':_0x9afebd},_0x59dc42),_0x53c31e);});function Ae(_0x55f031,_0x1a0b3c,_0x55ad47,_0x1b0242,_0x126256){const _0x48a811=_0x598a0c;return M[_0x48a811(0x2f4)](_0x55f031['tag'],b(b({'key':_0x1a0b3c},Tt(_0x55f031,_0x55ad47,_0x126256)),_0x1b0242),(Rt(_0x55f031,_0x55ad47)[_0x48a811(0x2a6)]||[])['map'](function(_0x5cbe89,_0x42e6c7){const _0x549018=_0x48a811;return Ae(_0x5cbe89,''[_0x549018(0x22b)](_0x1a0b3c,'-')[_0x549018(0x22b)](_0x55f031[_0x549018(0x283)],'-')[_0x549018(0x22b)](_0x42e6c7),_0x55ad47,void 0x0,_0x126256);}));}function Tt(_0x193dde,_0x4a09a8,_0x488dfd){const _0x535afa=_0x598a0c;var _0x3ed14f=b({},_0x193dde[_0x535afa(0x370)]);_0x488dfd!=null&&_0x488dfd[_0x535afa(0x2e7)]&&_0x3ed14f['fill']==='colorChannel1'&&(_0x3ed14f['fill']=_0x488dfd[_0x535afa(0x2e7)]),_0x193dde['tag']===_0x535afa(0x154)&&_0x3ed14f['id']&&(_0x3ed14f['id']=_0x3ed14f['id']+_0x4a09a8[_0x535afa(0x28c)]),Object['entries'](_0x3ed14f)[_0x535afa(0x2e0)](function(_0x32301d){const _0x1135f5=_0x535afa;var _0x5dd6af=_0x32301d[0x0],_0x474799=_0x32301d[0x1];_0x5dd6af===_0x1135f5(0x154)&&typeof _0x474799==_0x1135f5(0x212)&&(_0x3ed14f[_0x5dd6af]=_0x474799[_0x1135f5(0x374)](/url\(#(.*)\)/,_0x1135f5(0x336)[_0x1135f5(0x22b)](_0x4a09a8[_0x1135f5(0x28c)],')')));});var _0x47a626=_0x4a09a8[_0x535afa(0x1ce)];return!_0x47a626||_0x47a626['length']===0x0||(_0x193dde[_0x535afa(0x283)]===_0x535afa(0x273)&&_0x3ed14f[_0x535afa(0x3a0)]&&(_0x3ed14f[_0x535afa(0x3a0)]=_0x3ed14f['xlink:href']+_0x4a09a8[_0x535afa(0x28c)]),Object[_0x535afa(0x1e3)](_0x3ed14f)[_0x535afa(0x2e0)](function(_0x201547){const _0x1f10d9=_0x535afa;var _0x2ec77d=_0x201547[0x0],_0x484cab=_0x201547[0x1];typeof _0x484cab==_0x1f10d9(0x212)&&(_0x3ed14f[_0x2ec77d]=_0x484cab[_0x1f10d9(0x374)](/url\(#(.*)\)/,_0x1f10d9(0x336)['concat'](_0x4a09a8[_0x1f10d9(0x28c)],')')));})),_0x3ed14f;}function Rt(_0x514192,_0x615386){const _0x11b5e4=_0x598a0c;var _0x228b8c,_0x3e3af1=_0x615386[_0x11b5e4(0x1ce)];return!_0x3e3af1||_0x3e3af1[_0x11b5e4(0x15b)]===0x0?_0x514192:_0x514192[_0x11b5e4(0x283)]===_0x11b5e4(0x220)&&(!((_0x228b8c=_0x514192[_0x11b5e4(0x2a6)])===null||_0x228b8c===void 0x0)&&_0x228b8c[_0x11b5e4(0x15b)])?b(b({},_0x514192),{'children':_0x514192['children'][_0x11b5e4(0x30f)](function(_0xd21f66){const _0x3c648a=_0x11b5e4;return typeof _0xd21f66[_0x3c648a(0x370)]['id']==_0x3c648a(0x212)&&_0x3e3af1&&_0x3e3af1['includes'](_0xd21f66[_0x3c648a(0x370)]['id'])?b(b({},_0xd21f66),{'attrs':b(b({},_0xd21f66[_0x3c648a(0x370)]),{'id':_0xd21f66['attrs']['id']+_0x615386[_0x3c648a(0x28c)]})}):_0xd21f66;})}):_0x514192;}function Dt(){const _0xd39337=_0x598a0c;return Math[_0xd39337(0x262)]()[_0xd39337(0x22a)](0x24)['substring'](0x2,0x8);}pe[_0x598a0c(0x16a)]=_0x598a0c(0x1c8);var Ut={'tag':'svg','attrs':{'xmlns':_0x598a0c(0x2c6),'fill':_0x598a0c(0x387),'viewBox':'0\x200\x2016\x2016','width':_0x598a0c(0x35f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x598a0c(0x286)},'children':[{'tag':'path','attrs':{'stroke':_0x598a0c(0x161),'d':_0x598a0c(0x318),'strokeLinecap':_0x598a0c(0x2d5),'strokeLinejoin':_0x598a0c(0x2d5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x598a0c(0x2f0),'attrs':{'id':_0x598a0c(0x378)},'children':[{'tag':_0x598a0c(0x26b),'attrs':{'fill':'white','d':_0x598a0c(0x1e6)}}]}]}],'defIds':[_0x598a0c(0x378)]},ye=M['forwardRef'](function(_0x3badb5,_0x19b04b){const _0x10db5d=_0x598a0c;return M[_0x10db5d(0x2f4)](pe,Object['assign']({},_0x3badb5,{'id':'off-line-icon','ref':_0x19b04b,'icon':Ut}));});ye[_0x598a0c(0x16a)]=_0x598a0c(0x1a9);var Nt={'tag':_0x598a0c(0x1db),'attrs':{'xmlns':_0x598a0c(0x2c6),'fill':_0x598a0c(0x387),'viewBox':_0x598a0c(0x284),'width':'1em','height':_0x598a0c(0x35f)},'children':[{'tag':'g','attrs':{'clipPath':_0x598a0c(0x2a5)},'children':[{'tag':_0x598a0c(0x26b),'attrs':{'stroke':'currentColor','d':_0x598a0c(0x2b1),'strokeLinecap':'round','strokeLinejoin':_0x598a0c(0x2d5),'strokeWidth':1.2}}]},{'tag':_0x598a0c(0x220),'attrs':{},'children':[{'tag':_0x598a0c(0x2f0),'attrs':{'id':_0x598a0c(0x17a)},'children':[{'tag':_0x598a0c(0x26b),'attrs':{'fill':_0x598a0c(0x369),'d':_0x598a0c(0x1e6),'transform':_0x598a0c(0x2ec)}}]}]}],'defIds':[_0x598a0c(0x17a)]},$e=M[_0x598a0c(0x158)](function(_0x5548c9,_0x2a022f){const _0x50622e=_0x598a0c;return M[_0x50622e(0x2f4)](pe,Object[_0x50622e(0x2cf)]({},_0x5548c9,{'id':_0x50622e(0x381),'ref':_0x2a022f,'icon':Nt}));});$e[_0x598a0c(0x16a)]='OnLineIcon';function Mt(_0x36cfd8){const _0x57ef58=_0x598a0c;switch(_0x36cfd8){case u[_0x57ef58(0x32e)][_0x57ef58(0x31a)]:return _0x57ef58(0x269);case u[_0x57ef58(0x32e)]['CONFLICT']:return'collabStatus.conflict';case u[_0x57ef58(0x32e)]['FETCH_MISS']:return _0x57ef58(0x2de);case u['CollaborationStatus']['NOT_COLLAB']:return _0x57ef58(0x160);case u['CollaborationStatus']['AWAITING']:case u[_0x57ef58(0x32e)]['AWAITING_WITH_PENDING']:return _0x57ef58(0x2d7);case u[_0x57ef58(0x32e)][_0x57ef58(0x276)]:case u[_0x57ef58(0x32e)]['PENDING']:return _0x57ef58(0x1cb);}}function xe(_0x109c20){const _0x112d18=_0x598a0c,{status$:_0x3a478e}=_0x109c20,_0x1f0eb5=O[_0x112d18(0x2ab)](_0x3a478e,u[_0x112d18(0x32e)][_0x112d18(0x2a1)]),_0xfe0802=O[_0x112d18(0x20d)](a[_0x112d18(0x2c3)]),_0x10db03=O[_0x112d18(0x20d)](u[_0x112d18(0x1a0)]),_0x249cad=_0x1f0eb5!==u['CollaborationStatus'][_0x112d18(0x31a)],_0x1751f4=_0xfe0802['t'](Mt(_0x1f0eb5)),_0x2de681=_0x249cad?P['jsx']($e,{}):P['jsx'](ye,{}),_0x349494=M[_0x112d18(0x2c7)](()=>{_0x249cad||_0x10db03['reconnect']();},[_0x249cad,_0x10db03]);function _0x210dd0(){const _0x32afa4=_0x112d18;return P[_0x32afa4(0x335)](_0x32afa4(0x366),{'className':_0x32afa4(0x31f),'onClick':_0x349494,'children':[P[_0x32afa4(0x157)]('div',{'className':D[_0x32afa4(0x27b)](_0x32afa4(0x310),{'univer-text-green-500':_0x249cad,'univer-text-red-500':!_0x249cad}),'children':_0x2de681}),P[_0x32afa4(0x157)](_0x32afa4(0x366),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1751f4})]});}return _0x249cad?_0x210dd0():P[_0x112d18(0x157)](D[_0x112d18(0x1a8)],{'title':_0xfe0802['t'](_0x112d18(0x1ca)),'children':_0x210dd0()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x360d5a,_0x4b5b33,_0x392ac3,_0x5ee3b2)=>{for(var _0x101f59=_0x5ee3b2>0x1?void 0x0:_0x5ee3b2?Lt(_0x4b5b33,_0x392ac3):_0x4b5b33,_0x4a17bf=_0x360d5a['length']-0x1,_0x22e664;_0x4a17bf>=0x0;_0x4a17bf--)(_0x22e664=_0x360d5a[_0x4a17bf])&&(_0x101f59=_0x22e664(_0x101f59)||_0x101f59);return _0x101f59;},V=(_0x13764a,_0x27362d)=>(_0x368640,_0x345c59)=>_0x27362d(_0x368640,_0x345c59,_0x13764a);exports[_0x598a0c(0x230)]=class extends a[_0x598a0c(0x1fb)]{constructor(_0x23ccaf,_0x52b2d9,_0x2175de,_0x3e7ae3){const _0x1e34ad=_0x598a0c;super(),h(this,_0x1e34ad(0x24b),new d[(_0x1e34ad(0x163))](u['CollaborationStatus'][_0x1e34ad(0x2a1)])),(this[_0x1e34ad(0x254)]=_0x23ccaf,this[_0x1e34ad(0x226)]=_0x52b2d9,this[_0x1e34ad(0x255)]=_0x2175de,this[_0x1e34ad(0x2ea)]=_0x3e7ae3,this[_0x1e34ad(0x15a)](),this[_0x1e34ad(0x2d6)]());}['_initStatusListener'](){const _0x566963=_0x598a0c;this['disposeWithMe'](this[_0x566963(0x254)][_0x566963(0x251)]['pipe'](d[_0x566963(0x385)](()=>{const _0x2fcc1f=_0x566963,_0x71de67=this[_0x2fcc1f(0x254)][_0x2fcc1f(0x1a6)]();return _0x71de67?this[_0x2fcc1f(0x255)][_0x2fcc1f(0x368)](_0x71de67[_0x2fcc1f(0x38c)]()):d['of'](null);}),d['switchMap'](_0xb03174=>_0xb03174?_0xb03174[_0x566963(0x2c5)]:d['of'](u[_0x566963(0x32e)][_0x566963(0x2a1)])))[_0x566963(0x36b)](_0x372106=>{const _0x9c60bd=_0x566963;this[_0x9c60bd(0x24b)]['next'](_0x372106);}));}[_0x598a0c(0x15a)](){const _0x4c8d46=_0x598a0c;this[_0x4c8d46(0x2f8)](this[_0x4c8d46(0x2ea)][_0x4c8d46(0x2f6)](O['BuiltInUIPart'][_0x4c8d46(0x3ab)],()=>O[_0x4c8d46(0x340)](wt({'status$':this[_0x4c8d46(0x24b)]['asObservable']()}),this['_injector'])));}},exports[_0x598a0c(0x230)]=Pt([V(0x0,a[_0x598a0c(0x345)]),V(0x1,a[_0x598a0c(0x33b)](a['Injector'])),V(0x2,a[_0x598a0c(0x33b)](u['CollaborationController'])),V(0x3,O[_0x598a0c(0x294)])],exports[_0x598a0c(0x230)]);function wt(_0x14ce73){const {status$:_0x42cfb8}=_0x14ce73;return function(){const _0x4e9dc3=_0x43e9;return P[_0x4e9dc3(0x157)](xe,{'status$':_0x42cfb8});};}function _0x47b5(){const _0xc99c8b=['LocaleService','defineProperty','status$','http://www.w3.org/2000/svg','useCallback','combineLatest','DOC_RANGE_TYPE','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_CONNECTOR_URL_NOT_FOUND','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_memberService','params','assign','newValue','_getScale','IRenderManagerService','944072KOHtNU','red.300','round','_initStatusListener','collabStatus.syncing','_hideTimer','_eventUnsubscribe','addClipboardHook','INotificationService','YUUMI_NO_CUBOID_FOR_QUESTION','InsertRowCommandId','collabStatus.fetchMiss','_entityInit$','forEach','CollaborationSocketService','pushState','top','set','show','_docTransformStateCacheService','colorChannel1','apply','getSheetObject','_uiPartsService','getRangePointData','translate(.97)','INVITE_CODE_REQUIRED','_commandService','selection','clipPath','getMemberID','touchDependencies','UniverCollaborationClientUIPlugin','createElement','ITransformService','registerComponent','CollaborationEvent','disposeWithMe','_context','activeSheet$','_localCacheService','data','className','_roomMembers$','_sheetSkeletonManagerService','getColor','CollaborationUIEventId','getTypeOfUnitDisposed$','body','symbol','_docClipboardService','closePath','_renderManagerService','onCommandExecuted','m1Prime','handleDeleteRangeMoveUp','SetTextSelectionsOperation','icon','_handleHeartbeatEvent','#FFF','map','univer-mr-2\x20univer-flex\x20univer-text-xl','popstate','getViewport','undoState','getSheetBySheetId','_saveTaskMap','Shape','unsubscribe','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','YUUMI_ALL_TABLES_IS_INVALID','OFFLINE','_handleHover','_beforeCloseService','lineTo','yellow.400','univer-flex\x20univer-items-center','handleInsertCol','getSkeleton','row','_init','addEventListener','color','WebSocketService','registerRefRange','text','flatMap','FromArray','endRow','SetWorksheetActivateCommand','rgba(255,\x20255,\x20255,\x200.01)','CollaborationStatus','DocSelectionManagerService','handleIRemoveRow','with','updateOfflineData','executionId','_refreshCollabCursors','jsxs','url(#$1','onMouseMove','shareReplay','_messageService','_updateSubUnitFromURLParams','Inject','RegularPolygon','transformSelections','dispose$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','connectInjector','unit','EMAIL_VERIFY_CODE_MISMATCH','_urlService','moveTo','IUniverInstanceService','Failed','isActive','jiqing.500','transformIMECache','ENSURE_SNAPSHOT_EXECUTION','currentSkeleton$','_id','_onCursorUpdate','UniverInstanceType','_cursor','getVpScrollXYInfoByPosToVp','unitId','isTransformMutationsWithChangesetSuccess','invokeId','actions','APPLY_REVISION_CONFILICT','getOwnPropertyDescriptor','_getSheetObject','getParam','SNAPSHOT_INVALID_SNAPSHOT','add','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_name','getSheetId','subscribeEvent','1em','LICENSE_MAX_UNITS_EXCEEDED','_scene','CollaborationUIEventService','INVALID_ARGUMENT','arc','measureText','div','stringify','getCollabEntity$','white','size','subscribe','hasOwnProperty','toRgbString','getDocRanges','debounce','attrs','_initEntityListener','isArray','Rectangle','replace','1534460CQMtyt','addObject','YUUMI_RATE_OVER_LIMIT','off-line-icon_clip0_910_343','toDisposable','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','requireSession','IMessageService','[CollaborationDataLoaderController]','collaboration-client.offline-data-not-saved','MemberService','cursorInfo','on-line-icon','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','subunit','toStringTag','switchMap','InsertColCommandId','none','whenReady','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','href','_setupSubUnitSync','getUnitId','disposeUnit','sheetID','_getSaveTimeout','roomMembers$','transformRemoteChangeset','registerDependencies','[RemoteUniscriptService]:\x20no\x20focused\x20unit','Rect','_localStorageService','unitID','RichTextEditingMutation','LICENSE_EXPORT_SIZE_EXCEEDED','...','min','_initEvent','setParam','HTTPService','LICENSE_DISTRO_REJECTED','Vector2','xlink:href','_registerRenderDependencies','_range','_collabCursorState$','CollaborationDataLoaderController','CONNECTOR_DATA_TOO_LARGE','WebBrowserSingleActiveUnitService','IBeforeCloseService','fill','currentTheme$','_registerDependencies','HEADER_MENU','triggerDblclick','collab-rect-range-','saveOfflineData','key','DataLoaderService','DeleteRangeMoveUpCommandId','find','asObservable','eventID','_draw','generateRandomId','Error','_selfUnitIDs','IImageIoService','search','history','doc.mutation.rich-text-editing','_handleEvent','_docTransformIMECacheService','CONFLICT','function','getLocalCacheKey','column','getMergeData','mask','trim','EMAIL_HAS_BEEN_BOUND','jsx','forwardRef','runOnServer','_initStatusComponent','length','RECT','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','InsertRangeMoveDownCommandId','_anchorDot','collabStatus.notCollab','currentColor','deepClone','BehaviorSubject','TOO_MANY_REQUESTS','transformByState','searchParams','YUUMI_ASYNCIO_CANCELLED','urlChange$','engine','displayName','setItem','handleInsertRow','_cursorInfo$','_labelPosition','_scheduleHeartbeat','call','transformMutation','_onRefRangeChange','getCurrentSelections','_syncEditingCollabCursorService','LOGIN_FAILED','Optional','getAncestorScale','INTERNAL_ERROR','memberID','on-line-icon_clip0_910_349','RemoveColCommandId','getCoordByCell','roomMembers','addHandlerCallback','transformStateCache','_saveCache','removeParam','IDocClipboardService','_assignedColors','_transformPreviousActiveRange','black','registerRenderModule','_textBubble','YUUMI_URL_COL_OUT_OF_RANGE','DocIMEInputManagerService','118uTAcxO','send','from','Warning','onPointerEnter$','RxDisposable','_doCreateSocket','setStateCache','getColorFromTheme','indexOf','YUUMI_SUBSCRIPTION_NOT_FOUND','UNAUTHENTICATED','INVITE_CODE_HAS_BEEN_UES','evenodd','setUndoRedoMutationParamsCache','_collabSessionService','getCurrentRevOfUnit','push','_transformService','wsSessionTicketUrl','then','getOwnPropertySymbols','CollaborationSessionService','event$','BrowserCollaborationSocketService','UPDATE_CURSOR','collabCursorState$','_document','getFocusedUnit','_logService','Tooltip','OffLineIcon','deserializeRangeWithSheet','_session','ICommandService','COLORS','getCollabCursors$','executeCommand','blue.400','textRanges','CommandType','_toggleOnline','126rPuTlD','setAlpha','getUnhiddenWorksheets','mutations','name','_refRangeService','getActiveRange','cursorInfo$','onLocalMutation','_revisionService','assignAColorForMemberID','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','source','CLOSE_ROOM','YUUMI_UNABLE_LOAD_URL','_localeService','APPLY_DUPLICATED','disableLocalCache','_config','entityInit$','UniverIcon','_drawAnchor','collab-client.tooltip.reconnect','collabStatus.synced','findNodePositionByCharIndex','NodePositionConvertToCursor','defIds','propertyIsEnumerable','univerjs-icon\x20univerjs-icon-','has','getUndoRedoMutationParamsCache','_cursors','1180kBGelk','_createSocketURL','_initCommandExecutedListener','_collabCursorController','738927VMDtTG','merge','init','svg','_imageIoService','SheetsSelectionsService','getRelativeToViewportCoord','startRow','_setupBeforeClosingHandler','setConfig','_docTransformSelectionsService','entries','ALREADY_EXISTS','Injector','M0\x200H16V16H0z','_docSyncEditingCollabCursorService','OTHER_CLIENTS_EDITING','UnitStatus','ILogService','822jHoMSh','_hovered','MOBILE_HAS_BEEN_BOUND','_themeService','takeUntil','getActiveSheet','onStarting','_toggleOffline','RemoteUniscriptService','enableLocalCache','LICENSE_IMPORT_SIZE_EXCEEDED','_online','session.connection-failed','complete','storage','drawWith','Disposable','height','PY_RUNTIME_SCRIPT_ERROR','_initResize','_getMergeRange','695ZAOGdX','post','_drawRectRange','_notificationService','getOffsetConfig','_handleLeaveEvent','save','_backgroundColor','type','application/json','TEXT_RANGE_LAYER_INDEX','ILocalCacheService','prototype','useDependency','_color','location','UNDEFINED','Subject','string','INVITE_CODE_ALREADY_BOUND','collaboration.closeRoom','pipe','PERMISSION_DENIED','_render','_startSheetCollabCursor','_entities','YUUMI_AI_RUN_FAILED','collab-text-range-','ILocalStorageService','_scheduleSaving','NO_OTHER_CLIENTS_EDITING','replaceDocRanges','defs','dispose','9lIJMUZ','SetSelectionsOperation','throttleTime','_unitStatus','_injector','399avGTMH','error','runRefRangeMutations','toString','concat','_colorAssignService','session.collaboration-timeout','DEFAULT_WS_SESSION_TICKET_URL','getMember','DesktopCollaborationStatusDisplayController','_httpService','ONLINE','runId','_configService','serializeRangeWithSheet','getStateCache','IConfigService','getCurrentUnitForType','bottom','_unitOnClients','values','useRef','_handleJoinEvent','UniverCollaborationClientPlugin','font','MessageType','fillText','_scheduleClearOtherTimer','getRenderById','_send','fromEvent','DocStateChangeManagerService','399612xrHESs','loadUnit','_updateLocalCursor','selections','_status$','mapTo','split','SheetCollabCursorShape','INVALID_INVITE_CODE','onPointerLeave$','focused$','_lastPointer','saveTaskMap','_univerInstanceService','_collaborationController','_hover','COMPLETION_FINISHED','ThemeService','APPLY_REJECT','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','resize','endColumn','setShapeProps','_initDependencies','UNIVER_DOC','delete','_transformUndoRedoStack','random','WebURLService','fillStyle','get','WECHAT_HAS_BEEN_BOUND','NOT_FOUND','unshift','collabStatus.offline','_onCursorDelete','path','_ensureSubject','hide','next','ranges','result','UNIVER_SHEET','green.600','use','fillRule','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','SYNCED','debounceTime','clearTimeout','_docSkeletonManagerService','handleDeleteRangeMoveLeft','clsx','extend','m2Prime','transformMutationsWithChangeset','width','SessionStatus','_disabled','handleIRemoveCol','tag','0\x200\x2017\x2016','DependentOn','url(#off-line-icon_clip0_910_343)','SHEET_VIEWPORT_KEY','DisposableCollection','_anchor','docStateChange$','filter','idSuffix','registerBeforeClose','exhaustSavingTask','_heartbeatTimer','UNRECOGNIZED','_shapes','_cursorShapes','USER_NOT_INVITED_CODE','IUIPartsService','11VNFoXE','APPLY_PERMISSION_DENIED','collaboration-client-ui.config','getUnitStatus$','_docStateChangeManagerService','sessionTicket','_transformHistoryAndStateStack','isTransformMutationFailure','MOBILE_VERIFY_CODE_MISMATCH','replaceState','getValue','RemoveRowCommandId','NOT_COLLAB','_getSessionTicket','APPLY_NON_SEQUENTIAL_REVISION','purple.300','url(#on-line-icon_clip0_910_349)','children','_updateURLWithCurrentState','startColumn','debug','/run/','useObservable','_dataLoaderService','_colorIndex','restore','sessionStatus$','setInterval','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','override','_removeCollabCursors','_clearOtherTimers','TEXT','_collaborationUIEventService','redoState','collaboration.single-unit.warning','getItem','CHANGESET_REVISION_CONFILICT','_updateCollabCursors','pluginName','EffectRefRangId','ColorKit','subUnitId','_cachedData','Tools','MoveRangeCommandId'];_0x47b5=function(){return _0xc99c8b;};return _0x47b5();}var At=Object['getOwnPropertyDescriptor'],yt=(_0x441c1a,_0x5beaab,_0x4d8db3,_0x317e76)=>{const _0x9c15ff=_0x598a0c;for(var _0x187234=_0x317e76>0x1?void 0x0:_0x317e76?At(_0x5beaab,_0x4d8db3):_0x5beaab,_0x35e792=_0x441c1a[_0x9c15ff(0x15b)]-0x1,_0x1595a1;_0x35e792>=0x0;_0x35e792--)(_0x1595a1=_0x441c1a[_0x35e792])&&(_0x187234=_0x1595a1(_0x187234)||_0x187234);return _0x187234;},y=(_0x2d1ad5,_0x33e99f)=>(_0x3cdc2a,_0x243f81)=>_0x33e99f(_0x3cdc2a,_0x243f81,_0x2d1ad5);let q=class extends a[_0x598a0c(0x1fb)]{constructor(_0x52525d,_0x11558a,_0x5cf38d,_0x38553b,_0x212b60,_0x109f85){const _0x14637d=_0x598a0c;super(),this[_0x14637d(0x31c)]=_0x52525d,this[_0x14637d(0x2fb)]=_0x11558a,this[_0x14637d(0x2b6)]=_0x5cf38d,this[_0x14637d(0x339)]=_0x38553b,this['_notificationService']=_0x212b60,this[_0x14637d(0x1c3)]=_0x109f85,this['_setupBeforeClosingHandler'](),this[_0x14637d(0x39b)]();}[_0x598a0c(0x1e0)](){const _0x236f8a=_0x598a0c;this['disposeWithMe'](this[_0x236f8a(0x31c)][_0x236f8a(0x28d)](()=>{const _0x40ec70=_0x236f8a;if(this[_0x40ec70(0x2fb)][_0x40ec70(0x253)][_0x40ec70(0x36a)])return this[_0x40ec70(0x1c3)]['t'](_0x40ec70(0x37e));}));}[_0x598a0c(0x39b)](){const _0x4dca33=_0x598a0c;this[_0x4dca33(0x2f8)](this['_collaborationUIEventService']['event$'][_0x4dca33(0x36b)](_0x1d91c1=>{const _0x2418f0=_0x4dca33;_0x1d91c1['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':D[_0x2418f0(0x240)][_0x2418f0(0x18d)],'content':this[_0x2418f0(0x1c3)]['t'](_0x2418f0(0x2b8))}),_0x1d91c1['id']===u[_0x2418f0(0x301)][_0x2418f0(0x1c1)]&&this['_messageService'][_0x2418f0(0x2e5)]({'type':D['MessageType'][_0x2418f0(0x18d)],'content':this['_localeService']['t'](_0x2418f0(0x214))}),_0x1d91c1['id']===u[_0x2418f0(0x301)][_0x2418f0(0x216)]&&this[_0x2418f0(0x203)][_0x2418f0(0x2e5)]({'title':this[_0x2418f0(0x1c3)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':_0x2418f0(0x228),'duration':0x0}),_0x1d91c1['id']===u[_0x2418f0(0x301)][_0x2418f0(0x14f)]&&this['_messageService'][_0x2418f0(0x2e5)]({'type':D[_0x2418f0(0x240)][_0x2418f0(0x147)],'content':this[_0x2418f0(0x1c3)]['t']('collaboration.closeRoom')+'('+_0x1d91c1[_0x2418f0(0x2fc)]+')'}),_0x1d91c1['id']===u[_0x2418f0(0x301)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x2418f0(0x2e5)]({'type':D[_0x2418f0(0x240)][_0x2418f0(0x18d)],'content':this[_0x2418f0(0x1c3)]['t'](_0x1d91c1[_0x2418f0(0x2fc)]||'')}),_0x1d91c1['id']===u[_0x2418f0(0x301)]['SOCKET_FAILED_RETRY']&&this[_0x2418f0(0x339)][_0x2418f0(0x2e5)]({'type':D[_0x2418f0(0x240)][_0x2418f0(0x18d)],'content':this[_0x2418f0(0x1c3)]['t']('session.will-retry')}),_0x1d91c1['id']===u[_0x2418f0(0x301)]['SOCKET_FAILED']&&this[_0x2418f0(0x339)][_0x2418f0(0x2e5)]({'type':D[_0x2418f0(0x240)]['Error'],'content':this[_0x2418f0(0x1c3)]['t'](_0x2418f0(0x1f7))}),_0x1d91c1['id']===u[_0x2418f0(0x301)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x2418f0(0x339)][_0x2418f0(0x2e5)]({'type':D[_0x2418f0(0x240)][_0x2418f0(0x147)],'content':this[_0x2418f0(0x1c3)]['t'](_0x2418f0(0x22d))});}));}};q=yt([y(0x0,O[_0x598a0c(0x3a7)]),y(0x1,u[_0x598a0c(0x20b)]),y(0x2,a['Inject'](u[_0x598a0c(0x362)])),y(0x3,O[_0x598a0c(0x37c)]),y(0x4,O[_0x598a0c(0x2db)]),y(0x5,a[_0x598a0c(0x33b)](a[_0x598a0c(0x2c3)]))],q);const $t=_0x598a0c(0x297),Ue={},Ee=a['createIdentifier']('uni.network.url-service');var xt=Object[_0x598a0c(0x356)],Bt=(_0x5ee2e7,_0x560796,_0x3e757d,_0x43bf42)=>{const _0x492bf1=_0x598a0c;for(var _0x2acf00=_0x43bf42>0x1?void 0x0:_0x43bf42?xt(_0x560796,_0x3e757d):_0x560796,_0xf5080d=_0x5ee2e7[_0x492bf1(0x15b)]-0x1,_0x25382f;_0xf5080d>=0x0;_0xf5080d--)(_0x25382f=_0x5ee2e7[_0xf5080d])&&(_0x2acf00=_0x25382f(_0x2acf00)||_0x2acf00);return _0x2acf00;},F=(_0x2cc3c3,_0x1ef4f3)=>(_0x6fac3b,_0x591867)=>_0x1ef4f3(_0x6fac3b,_0x591867,_0x2cc3c3);exports[_0x598a0c(0x3a4)]=class extends a['RxDisposable']{constructor(_0x3f5da2,_0x593464,_0x38e9bc,_0x5ca116,_0x14cc98){const _0x11c570=_0x598a0c;super(),this[_0x11c570(0x343)]=_0x3f5da2,this[_0x11c570(0x1a7)]=_0x593464,this[_0x11c570(0x2ee)]=_0x38e9bc,this[_0x11c570(0x2ac)]=_0x5ca116,_0x14cc98?_0x14cc98==null||_0x14cc98[_0x11c570(0x388)]()['then'](()=>this[_0x11c570(0x323)]()):(this[_0x11c570(0x1a7)]['debug'](_0x11c570(0x37d),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x11c570(0x323)]());}async[_0x598a0c(0x323)](){const _0x111228=_0x598a0c,_0x1ca952=this[_0x111228(0x343)]['getParam'](_0x111228(0x341)),_0x757397=this[_0x111228(0x343)][_0x111228(0x358)](_0x111228(0x208)),_0x5f1555=this[_0x111228(0x343)]['getParam'](_0x111228(0x383));if(!_0x1ca952||!_0x757397){this['_logService'][_0x111228(0x2a9)](_0x111228(0x37d),_0x111228(0x15d));return;}const _0x57a74b=await this['_dataLoaderService'][_0x111228(0x248)](_0x1ca952,Number(_0x757397),_0x5f1555);_0x57a74b&&_0x57a74b instanceof a['Workbook']&&this[_0x111228(0x38b)](_0x57a74b);}async[_0x598a0c(0x38b)](_0x2b06b7){const _0x4d8bf1=_0x598a0c;await this[_0x4d8bf1(0x33a)](_0x2b06b7),_0x2b06b7[_0x4d8bf1(0x2fa)][_0x4d8bf1(0x215)](d[_0x4d8bf1(0x1ef)](this[_0x4d8bf1(0x33e)]))[_0x4d8bf1(0x36b)](_0x21f6d8=>{_0x21f6d8&&this['_updateURLWithCurrentState'](_0x21f6d8);}),this['_urlService']['urlChange$'][_0x4d8bf1(0x215)](d['takeUntil'](this[_0x4d8bf1(0x33e)]))[_0x4d8bf1(0x36b)](()=>this[_0x4d8bf1(0x33a)](_0x2b06b7));}[_0x598a0c(0x2a7)](_0x4a32f8,_0x592aa9=!0x1){const _0x8c82b7=_0x598a0c,_0x4d5022=this[_0x8c82b7(0x343)]['getParam'](_0x8c82b7(0x383));_0x4a32f8[_0x8c82b7(0x35d)]()!==_0x4d5022&&this[_0x8c82b7(0x343)][_0x8c82b7(0x39c)]('subunit',_0x4a32f8['getSheetId'](),_0x592aa9);}async[_0x598a0c(0x33a)](_0x52d546){const _0x22fc71=_0x598a0c;var _0x47ac0e;const _0x4d84c3=this[_0x22fc71(0x343)][_0x22fc71(0x358)]('subunit');if(!_0x4d84c3||!_0x52d546['getSheetBySheetId'](_0x4d84c3)){const _0x21633b=_0x52d546[_0x22fc71(0x1b6)]()[0x0],_0x3809f1=_0x52d546[_0x22fc71(0x314)](_0x21633b);if(!_0x3809f1)return;this[_0x22fc71(0x2a7)](_0x3809f1,!0x0),await this['_commandService']['executeCommand'](g[_0x22fc71(0x32c)]['id'],{'unitId':_0x52d546[_0x22fc71(0x38c)](),'subUnitId':_0x21633b});return;}((_0x47ac0e=_0x52d546['getActiveSheet']())==null?void 0x0:_0x47ac0e[_0x22fc71(0x35d)]())!==_0x4d84c3&&await this['_commandService'][_0x22fc71(0x1af)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x52d546[_0x22fc71(0x38c)](),'subUnitId':_0x4d84c3});}},exports[_0x598a0c(0x3a4)]=Bt([F(0x0,Ee),F(0x1,a[_0x598a0c(0x1ea)]),F(0x2,a[_0x598a0c(0x1ac)]),F(0x3,a[_0x598a0c(0x33b)](u[_0x598a0c(0x140)])),F(0x4,a[_0x598a0c(0x176)](Ke['IRemoteInstanceService']))],exports[_0x598a0c(0x3a4)]);var jt=Object[_0x598a0c(0x356)],kt=(_0x539f3b,_0x901920,_0x280358,_0x737cbe)=>{const _0x5c2ce0=_0x598a0c;for(var _0x34c44d=_0x737cbe>0x1?void 0x0:_0x737cbe?jt(_0x901920,_0x280358):_0x901920,_0x219ef1=_0x539f3b[_0x5c2ce0(0x15b)]-0x1,_0x341616;_0x219ef1>=0x0;_0x219ef1--)(_0x341616=_0x539f3b[_0x219ef1])&&(_0x34c44d=_0x341616(_0x34c44d)||_0x34c44d);return _0x34c44d;},ce=(_0x26114c,_0x59c03f)=>(_0xc0d77b,_0x5baad0)=>_0x59c03f(_0xc0d77b,_0x5baad0,_0x26114c);let z=class{constructor(_0x3d9ceb,_0x476354,_0x3f769a){const _0x35a95c=_0x598a0c;this[_0x35a95c(0x226)]=_0x3d9ceb,this[_0x35a95c(0x19c)]=_0x476354,this['_renderManagerService']=_0x3f769a;}[_0x598a0c(0x349)](_0xb4569c){const _0x3aa241=_0x598a0c;this[_0x3aa241(0x261)](_0xb4569c),this[_0x3aa241(0x184)](_0xb4569c);}[_0x598a0c(0x391)](_0x1eb338){const _0x3a9af2=_0x598a0c,{unitID:_0x54e69a}=_0x1eb338,_0x2c2b47=this[_0x3a9af2(0x307)][_0x3a9af2(0x243)](_0x54e69a)[_0x3a9af2(0x331)](E[_0x3a9af2(0x189)]),{redoCache:_0x1752f7}=_0x2c2b47['getUndoRedoMutationParamsCache']();if(_0x1752f7[_0x3a9af2(0x15b)]===0x0)return _0x1eb338;let _0x4ce93d=a[_0x3a9af2(0x2c1)][_0x3a9af2(0x162)](_0x1eb338[_0x3a9af2(0x1b7)][0x0]);for(let _0x4f76ec=0x0;_0x4f76ec<_0x1752f7[_0x3a9af2(0x15b)];_0x4f76ec++){const _0x2123ce={'id':'doc.mutation.rich-text-editing','params':{..._0x1752f7[_0x4f76ec]}},_0x36fc6f=this['_transformService']['transformMutation'](_0x4ce93d,_0x2123ce,!0x1);if(m[_0x3a9af2(0x29c)](_0x36fc6f))throw _0x36fc6f[_0x3a9af2(0x228)];_0x4ce93d=_0x36fc6f[_0x3a9af2(0x309)];}return{...a[_0x3a9af2(0x2c1)][_0x3a9af2(0x162)](_0x1eb338),'mutations':[_0x4ce93d]};}[_0x598a0c(0x261)](_0x3c6f82){const _0x5e2a2a=_0x598a0c,{unitID:_0x14c3a9}=_0x3c6f82,_0x25f6db=this[_0x5e2a2a(0x307)][_0x5e2a2a(0x243)](_0x14c3a9)['with'](E[_0x5e2a2a(0x189)]),{undoCache:_0x8bfa26,redoCache:_0x9cfcc6}=_0x25f6db[_0x5e2a2a(0x1d2)]();if(_0x8bfa26[_0x5e2a2a(0x15b)]===0x0||_0x9cfcc6['length']===0x0)return;const _0x51bee2=[],_0x1f7512=[];let _0x34eb93=a[_0x5e2a2a(0x2c1)]['deepClone'](_0x3c6f82['mutations'][0x0]),_0x399952=a[_0x5e2a2a(0x2c1)]['deepClone'](_0x3c6f82[_0x5e2a2a(0x1b7)][0x0]);for(let _0x579cb5=_0x8bfa26['length']-0x1;_0x579cb5>=0x0;_0x579cb5--){const _0x9ffcf={'id':'doc.mutation.rich-text-editing','params':{..._0x8bfa26[_0x579cb5]}},_0x401cbd={'id':_0x5e2a2a(0x14c),'params':{..._0x9cfcc6[_0x579cb5]}},_0x401ca5=this['_transformService'][_0x5e2a2a(0x171)](_0x34eb93,_0x9ffcf,!0x1),_0x69992d=this[_0x5e2a2a(0x19c)][_0x5e2a2a(0x171)](_0x399952,_0x401cbd,!0x1);if(m[_0x5e2a2a(0x29c)](_0x401ca5))throw _0x401ca5[_0x5e2a2a(0x228)];if(m[_0x5e2a2a(0x29c)](_0x69992d))throw _0x69992d[_0x5e2a2a(0x228)];_0x51bee2[_0x5e2a2a(0x268)](_0x401ca5['m2Prime'][_0x5e2a2a(0x2ce)]),_0x1f7512[_0x5e2a2a(0x268)](_0x69992d['m2Prime'][_0x5e2a2a(0x2ce)]),_0x34eb93=_0x401ca5[_0x5e2a2a(0x309)],_0x399952=_0x69992d[_0x5e2a2a(0x309)];}_0x25f6db[_0x5e2a2a(0x198)]({'undoCache':_0x51bee2,'redoCache':_0x1f7512});}[_0x598a0c(0x184)](_0x90286f){const _0x3d50c7=_0x598a0c,{unitID:_0x2281de}=_0x90286f,_0x3d4643=this[_0x3d50c7(0x307)][_0x3d50c7(0x243)](_0x2281de)[_0x3d50c7(0x331)](E[_0x3d50c7(0x189)]),_0x1e9a1d=_0x3d4643[_0x3d50c7(0x1ba)]();if(_0x1e9a1d==null)return;const _0x1cf8da=[{'id':_0x3d50c7(0x14c),'params':{'unitId':_0x90286f[_0x3d50c7(0x396)],'actions':null,'textRanges':[_0x1e9a1d]}}],_0x3482bb=this[_0x3d50c7(0x19c)]['transformMutationsWithChangeset'](_0x90286f,_0x1cf8da);if(!m[_0x3d50c7(0x352)](_0x3482bb))throw _0x3482bb[_0x3d50c7(0x228)];const _0x2f5de4=_0x3482bb[_0x3d50c7(0x27d)][0x0][_0x3d50c7(0x2ce)]['textRanges'];Array[_0x3d50c7(0x372)](_0x2f5de4)&&_0x2f5de4[_0x3d50c7(0x15b)]&&_0x3d4643['setActiveRange'](_0x2f5de4[0x0]);}};z=kt([ce(0x0,a[_0x598a0c(0x33b)](a['Injector'])),ce(0x1,m[_0x598a0c(0x2f5)]),ce(0x2,p[_0x598a0c(0x2d2)])],z);var Ft=Object[_0x598a0c(0x356)],Ht=(_0x7f5eca,_0x169b15,_0x2e9189,_0x12885a)=>{const _0x4f4523=_0x598a0c;for(var _0xe6a862=_0x12885a>0x1?void 0x0:_0x12885a?Ft(_0x169b15,_0x2e9189):_0x169b15,_0x42633a=_0x7f5eca[_0x4f4523(0x15b)]-0x1,_0x101cc1;_0x42633a>=0x0;_0x42633a--)(_0x101cc1=_0x7f5eca[_0x42633a])&&(_0xe6a862=_0x101cc1(_0xe6a862)||_0xe6a862);return _0xe6a862;},le=(_0x295002,_0x5b36e7)=>(_0xdc9172,_0x18d0eb)=>_0x5b36e7(_0xdc9172,_0x18d0eb,_0x295002);let J=class{constructor(_0x32c834,_0x358b91,_0x56a207){const _0x19f96b=_0x598a0c;this[_0x19f96b(0x226)]=_0x32c834,this[_0x19f96b(0x19c)]=_0x358b91,this[_0x19f96b(0x299)]=_0x56a207;}[_0x598a0c(0x17f)](_0x3fdbbb){const _0x3e7596=_0x598a0c;this[_0x3e7596(0x29b)](_0x3fdbbb);}[_0x598a0c(0x391)](_0x5aa0fb){const _0x1761b1=_0x598a0c,{unitID:_0x4e626d}=_0x5aa0fb,{collaboration:_0x1394d3}=this[_0x1761b1(0x299)][_0x1761b1(0x236)](_0x4e626d);if(_0x1394d3['length']===0x0)return _0x5aa0fb;let _0x3feca8=a[_0x1761b1(0x2c1)]['deepClone'](_0x5aa0fb[_0x1761b1(0x1b7)][0x0]);for(let _0x2d2d9f=0x0;_0x2d2d9f<_0x1394d3['length'];_0x2d2d9f++){const _0x13acee={'id':_0x1761b1(0x14c),'params':{'unitId':_0x1394d3[_0x2d2d9f][_0x1761b1(0x351)],..._0x1394d3[_0x2d2d9f][_0x1761b1(0x2b7)]}},_0x5b4d3e=this[_0x1761b1(0x19c)][_0x1761b1(0x171)](_0x3feca8,_0x13acee,!0x1);if(m[_0x1761b1(0x29c)](_0x5b4d3e))throw _0x5b4d3e[_0x1761b1(0x228)];_0x3feca8=_0x5b4d3e[_0x1761b1(0x309)];}return{...a[_0x1761b1(0x2c1)][_0x1761b1(0x162)](_0x5aa0fb),'mutations':[_0x3feca8]};}[_0x598a0c(0x29b)](_0x186f58){const _0x22658c=_0x598a0c,{unitID:_0x12f9e9}=_0x186f58,{history:_0x13d9bf,collaboration:_0x7e1195}=this[_0x22658c(0x299)][_0x22658c(0x236)](_0x12f9e9);if(_0x13d9bf['length']===0x0&&_0x7e1195[_0x22658c(0x15b)]===0x0)return;const _0x35de1d=[],_0x1236f0=[];let _0x276b53=a['Tools'][_0x22658c(0x162)](_0x186f58[_0x22658c(0x1b7)][0x0]),_0x381590=a[_0x22658c(0x2c1)][_0x22658c(0x162)](_0x186f58[_0x22658c(0x1b7)][0x0]);for(let _0x4c763e=_0x13d9bf[_0x22658c(0x15b)]-0x1;_0x4c763e>=0x0;_0x4c763e--){const _0x5e2bf0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x13d9bf[_0x4c763e][_0x22658c(0x351)],..._0x13d9bf[_0x4c763e][_0x22658c(0x313)]}},_0x2abbd8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x13d9bf[_0x4c763e][_0x22658c(0x351)],..._0x13d9bf[_0x4c763e][_0x22658c(0x2b7)]}},_0x369f17=this['_transformService'][_0x22658c(0x171)](_0x276b53,_0x5e2bf0,!0x1),_0xfe0d8=this[_0x22658c(0x19c)][_0x22658c(0x171)](_0x381590,_0x2abbd8,!0x1);if(m[_0x22658c(0x29c)](_0x369f17))throw _0x369f17[_0x22658c(0x228)];if(m[_0x22658c(0x29c)](_0xfe0d8))throw _0xfe0d8[_0x22658c(0x228)];_0x35de1d['unshift']({..._0x13d9bf[_0x4c763e],'undoState':_0x369f17[_0x22658c(0x27d)][_0x22658c(0x2ce)],'redoState':_0xfe0d8[_0x22658c(0x27d)]['params']}),_0x276b53=_0x369f17[_0x22658c(0x309)],_0x381590=_0xfe0d8[_0x22658c(0x309)];}_0x276b53=a['Tools'][_0x22658c(0x162)](_0x186f58['mutations'][0x0]),_0x381590=a[_0x22658c(0x2c1)][_0x22658c(0x162)](_0x186f58[_0x22658c(0x1b7)][0x0]);for(let _0x3539a2=_0x7e1195[_0x22658c(0x15b)]-0x1;_0x3539a2>=0x0;_0x3539a2--){const _0x3e8910={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7e1195[_0x3539a2][_0x22658c(0x351)],..._0x7e1195[_0x3539a2][_0x22658c(0x313)]}},_0x4c3e51={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7e1195[_0x3539a2][_0x22658c(0x351)],..._0x7e1195[_0x3539a2][_0x22658c(0x2b7)]}},_0x3cf43c=this['_transformService'][_0x22658c(0x171)](_0x276b53,_0x3e8910,!0x1),_0x5a20c6=this[_0x22658c(0x19c)]['transformMutation'](_0x381590,_0x4c3e51,!0x1);if(m[_0x22658c(0x29c)](_0x3cf43c))throw _0x3cf43c[_0x22658c(0x228)];if(m['isTransformMutationFailure'](_0x5a20c6))throw _0x5a20c6[_0x22658c(0x228)];_0x1236f0[_0x22658c(0x268)]({..._0x7e1195[_0x3539a2],'undoState':_0x3cf43c['m2Prime']['params'],'redoState':_0x5a20c6[_0x22658c(0x27d)][_0x22658c(0x2ce)]}),_0x276b53=_0x3cf43c[_0x22658c(0x309)],_0x381590=_0x5a20c6['m1Prime'];}this['_docStateChangeManagerService'][_0x22658c(0x191)](_0x12f9e9,{'history':_0x35de1d,'collaboration':_0x1236f0});}};J=Ht([le(0x0,a['Inject'](a[_0x598a0c(0x1e5)])),le(0x1,m[_0x598a0c(0x2f5)]),le(0x2,a['Inject'](E[_0x598a0c(0x246)]))],J);var Yt=Object[_0x598a0c(0x356)],Wt=(_0x4444af,_0x66a81e,_0x54d7ad,_0x3fc5aa)=>{const _0x12383e=_0x598a0c;for(var _0x10c1d8=_0x3fc5aa>0x1?void 0x0:_0x3fc5aa?Yt(_0x66a81e,_0x54d7ad):_0x66a81e,_0x388fab=_0x4444af[_0x12383e(0x15b)]-0x1,_0x5d0013;_0x388fab>=0x0;_0x388fab--)(_0x5d0013=_0x4444af[_0x388fab])&&(_0x10c1d8=_0x5d0013(_0x10c1d8)||_0x10c1d8);return _0x10c1d8;},Ne=(_0x47a653,_0x49c0c9)=>(_0x4ed251,_0x8ba5b7)=>_0x49c0c9(_0x4ed251,_0x8ba5b7,_0x47a653);let Z=class{constructor(_0x361e32,_0x527c14){const _0x4a6d27=_0x598a0c;this[_0x4a6d27(0x226)]=_0x361e32,this[_0x4a6d27(0x19c)]=_0x527c14;}[_0x598a0c(0x33d)](_0x398b51){const _0x10bea5=_0x598a0c;var _0x376fe6;const _0x4cce59=this[_0x10bea5(0x226)]['get'](Y[_0x10bea5(0x32f)]),_0x18ca2c=(_0x376fe6=_0x4cce59[_0x10bea5(0x36e)]())!=null?_0x376fe6:[];if(_0x18ca2c[_0x10bea5(0x15b)]===0x0)return;const _0xd3bb61=_0x398b51[_0x10bea5(0x396)],_0x2196be=[{'id':_0x10bea5(0x14c),'params':{'unitId':_0xd3bb61,'actions':null,'textRanges':_0x18ca2c}}],_0xe57dbd=this[_0x10bea5(0x19c)][_0x10bea5(0x27e)](_0x398b51,_0x2196be);if(!m['isTransformMutationsWithChangesetSuccess'](_0xe57dbd))throw _0xe57dbd[_0x10bea5(0x228)];const _0x3dd68c=_0xe57dbd[_0x10bea5(0x27d)][0x0]['params'][_0x10bea5(0x1b1)];Array[_0x10bea5(0x372)](_0x3dd68c)&&_0x3dd68c['length']&&_0x4cce59[_0x10bea5(0x21f)](_0x3dd68c,{'unitId':_0xd3bb61,'subUnitId':_0xd3bb61},!0x1);}};Z=Wt([Ne(0x0,a[_0x598a0c(0x33b)](a[_0x598a0c(0x1e5)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x598a0c(0x356)],Xt=(_0x354136,_0x4b70a5,_0x16f18e,_0x50c140)=>{for(var _0x54152b=_0x50c140>0x1?void 0x0:_0x50c140?Vt(_0x4b70a5,_0x16f18e):_0x4b70a5,_0x321b8a=_0x354136['length']-0x1,_0x146642;_0x321b8a>=0x0;_0x321b8a--)(_0x146642=_0x354136[_0x321b8a])&&(_0x54152b=_0x146642(_0x54152b)||_0x54152b);return _0x54152b;},N=(_0x9a82bf,_0x30bcac)=>(_0x136d10,_0x39c20b)=>_0x30bcac(_0x136d10,_0x39c20b,_0x9a82bf);let Q=class extends a[_0x598a0c(0x1fb)]{constructor(_0x548e94,_0x6b5ec2,_0x468f01,_0x558937,_0xf660c4,_0x21ee2d,_0x403d41,_0x22902e){const _0x9c02d7=_0x598a0c;super(),h(this,_0x9c02d7(0x24b),new d[(_0x9c02d7(0x163))](u['CollaborationStatus'][_0x9c02d7(0x2a1)])),(this[_0x9c02d7(0x299)]=_0x548e94,this[_0x9c02d7(0x255)]=_0x6b5ec2,this[_0x9c02d7(0x14e)]=_0x468f01,this[_0x9c02d7(0x2e6)]=_0x558937,this[_0x9c02d7(0x1e2)]=_0xf660c4,this[_0x9c02d7(0x1e7)]=_0x21ee2d,this['_messageService']=_0x403d41,this[_0x9c02d7(0x1c3)]=_0x22902e,this[_0x9c02d7(0x371)]());}[_0x598a0c(0x371)](){const _0x27ff18=_0x598a0c;this['disposeWithMe'](this[_0x27ff18(0x255)][_0x27ff18(0x1c7)][_0x27ff18(0x36b)](_0x2c0ecd=>{const _0x52be2c=_0x27ff18,_0x3f8307=this['_docStateChangeManagerService'][_0x52be2c(0x28a)][_0x52be2c(0x36b)](_0x2758b9=>{const _0x3e44d3=_0x52be2c;if(_0x2758b9==null)return;const {unitId:_0x23b695,redoState:_0x1bce20,commandId:_0x56c838}=_0x2758b9;if(_0x23b695!==_0x2c0ecd[_0x3e44d3(0x396)])return;const _0x554f63={'id':_0x56c838,'type':a[_0x3e44d3(0x1b2)]['MUTATION'],'params':{'unitId':_0x23b695,'actions':_0x1bce20[_0x3e44d3(0x354)],'textRanges':null}};_0x2c0ecd[_0x3e44d3(0x1bc)](_0x554f63);});if(_0x2c0ecd['disposeWithMe'](_0x3f8307),_0x2c0ecd instanceof u['DocCollaborationEntity']){const _0x215c4f={'onTransformIME':_0x482eb0=>this[_0x52be2c(0x14e)][_0x52be2c(0x349)](_0x482eb0),'onTransformState':_0x386262=>this['_docTransformStateCacheService']['transformStateCache'](_0x386262),'onTransformSelections':_0x4f28e4=>this['_docTransformSelectionsService'][_0x52be2c(0x33d)](_0x4f28e4),'onSyncEditingCollabCursor':_0x8bc3f2=>this[_0x52be2c(0x1e7)]['syncEditingCollabCursor'](_0x8bc3f2),'onTransformRemoteChangesetByIMECache':_0x1ac9f3=>this['_docTransformIMECacheService'][_0x52be2c(0x391)](_0x1ac9f3),'onTransformRemoteChangesetByStateCache':_0x4112e6=>this[_0x52be2c(0x2e6)]['transformRemoteChangeset'](_0x4112e6)};_0x2c0ecd[_0x52be2c(0x17e)](_0x215c4f);}}));}};Q=Xt([N(0x0,a['Inject'](E[_0x598a0c(0x246)])),N(0x1,a[_0x598a0c(0x33b)](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a[_0x598a0c(0x33b)](J)),N(0x4,a[_0x598a0c(0x33b)](Z)),N(0x5,a[_0x598a0c(0x33b)](Ce)),N(0x6,O[_0x598a0c(0x37c)]),N(0x7,a[_0x598a0c(0x33b)](a[_0x598a0c(0x2c3)]))],Q);var Gt=Object[_0x598a0c(0x356)],Kt=(_0x9cf9be,_0x3b484a,_0x5b6250,_0x38b2ef)=>{for(var _0x4a9fb5=_0x38b2ef>0x1?void 0x0:_0x38b2ef?Gt(_0x3b484a,_0x5b6250):_0x3b484a,_0x59aa8d=_0x9cf9be['length']-0x1,_0x218c3c;_0x59aa8d>=0x0;_0x59aa8d--)(_0x218c3c=_0x9cf9be[_0x59aa8d])&&(_0x4a9fb5=_0x218c3c(_0x4a9fb5)||_0x4a9fb5);return _0x4a9fb5;},_e=(_0x19aa24,_0x47a215)=>(_0x4029df,_0x4d9985)=>_0x47a215(_0x4029df,_0x4d9985,_0x19aa24);let ge=class extends a[_0x598a0c(0x1fb)]{constructor(_0x110380,_0x14132d,_0x5d0b5f){const _0x43704b=_0x598a0c;super(),h(this,_0x43704b(0x2c0),new Map()),h(this,_0x43704b(0x315),new Map()),h(this,_0x43704b(0x281),!0x1),(this[_0x43704b(0x234)]=_0x110380,this[_0x43704b(0x395)]=_0x14132d,this['_revisionService']=_0x5d0b5f);}[_0x598a0c(0x1c5)](){const _0x293c8b=_0x598a0c;this[_0x293c8b(0x281)]=!0x0;}[_0x598a0c(0x1f4)](){const _0x1275d7=_0x598a0c;this[_0x1275d7(0x281)]=!0x1;}get[_0x598a0c(0x253)](){const _0x201854=_0x598a0c;return this[_0x201854(0x315)];}[_0x598a0c(0x221)](){const _0x4bc807=_0x598a0c;this[_0x4bc807(0x28e)]()[_0x4bc807(0x19e)](()=>super[_0x4bc807(0x221)]());}async['loadOfflineData'](_0xec0d91){const _0x3ffb6e=_0x598a0c;return this[_0x3ffb6e(0x281)]?null:this[_0x3ffb6e(0x395)][_0x3ffb6e(0x2b9)](u[_0x3ffb6e(0x151)](_0xec0d91));}async[_0x598a0c(0x13e)](_0x38e5a9,_0x47cb23){const _0x424057=_0x598a0c;return!!this[_0x424057(0x395)][_0x424057(0x16b)](_0x38e5a9,_0x47cb23);}[_0x598a0c(0x332)](_0x31b3a1,_0x52a2a1,_0x514d2a,_0x6bcc58){const _0x2ca461=_0x598a0c,_0x45d9fd=this[_0x2ca461(0x1bd)][_0x2ca461(0x19a)](_0x31b3a1);this['_cachedData'][_0x2ca461(0x2e4)](_0x31b3a1,{'unitID':_0x31b3a1,'type':_0x52a2a1,'awaitingChangeset':_0x514d2a,'mutations':_0x6bcc58,'rev':_0x45d9fd}),this[_0x2ca461(0x315)]['has'](_0x31b3a1)||this['_scheduleSaving'](_0x31b3a1);}[_0x598a0c(0x21d)](_0x520724){const _0x2ce809=_0x598a0c,_0x27c4fd=this[_0x2ce809(0x38f)]();_0x27c4fd===0x0?this[_0x2ce809(0x180)](_0x520724):this[_0x2ce809(0x315)][_0x2ce809(0x2e4)](_0x520724,setTimeout(()=>this[_0x2ce809(0x180)](_0x520724),_0x27c4fd));}[_0x598a0c(0x38f)](){const _0x1f31e6=_0x598a0c;var _0x691df1;return(_0x691df1=this[_0x1f31e6(0x234)]['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x691df1:u['LOCAL_CACHE_INTERVAL'];}[_0x598a0c(0x180)](_0x5c71c0){const _0x5680c8=_0x598a0c,_0xbd6b2a=this[_0x5680c8(0x315)][_0x5680c8(0x265)](_0x5c71c0);return _0xbd6b2a!==void 0x0&&window['clearTimeout'](_0xbd6b2a),this['_localStorageService']['setItem'](u[_0x5680c8(0x151)](_0x5c71c0),this[_0x5680c8(0x2c0)][_0x5680c8(0x265)](_0x5c71c0))[_0x5680c8(0x19e)](()=>this[_0x5680c8(0x315)][_0x5680c8(0x260)](_0x5c71c0));}async['exhaustSavingTask'](){const _0x359594=_0x598a0c,_0x4c5b90=[];this[_0x359594(0x315)][_0x359594(0x2e0)]((_0x5e4eab,_0x17457d)=>{const _0x451cfb=_0x359594;window[_0x451cfb(0x278)](_0x5e4eab),_0x4c5b90['push'](this[_0x451cfb(0x180)](_0x17457d)[_0x451cfb(0x19e)](()=>{const _0x5037d3=_0x451cfb;this[_0x5037d3(0x315)][_0x5037d3(0x260)](_0x17457d);}));}),await Promise['all'](_0x4c5b90);}};ge=Kt([_e(0x0,a[_0x598a0c(0x237)]),_e(0x1,a[_0x598a0c(0x21c)]),_e(0x2,a[_0x598a0c(0x33b)](m['RevisionService']))],ge);class Be extends a['RxDisposable']{constructor(){const _0x5b34e5=_0x598a0c;super(),h(this,_0x5b34e5(0x168)),this[_0x5b34e5(0x168)]=d['fromEvent'](window,_0x5b34e5(0x311))['pipe'](d[_0x5b34e5(0x1ef)](this[_0x5b34e5(0x33e)]),d[_0x5b34e5(0x338)](0x1),d[_0x5b34e5(0x24c)](void 0x0));}[_0x598a0c(0x39c)](_0x358c78,_0x253d54,_0x10760d=!0x1){const _0x1031ee=_0x598a0c,_0x3b0b3e=new URL(window[_0x1031ee(0x20f)][_0x1031ee(0x38a)]);_0x3b0b3e[_0x1031ee(0x166)][_0x1031ee(0x2e4)](_0x358c78,_0x253d54),_0x10760d?window['history'][_0x1031ee(0x29e)]('','',_0x3b0b3e[_0x1031ee(0x22a)]()):window['history'][_0x1031ee(0x2e2)]('','',_0x3b0b3e['toString']());}[_0x598a0c(0x181)](_0x4dfe23,_0x141ff2=!0x1){const _0x122b74=_0x598a0c,_0x98fcca=new URL(window[_0x122b74(0x20f)][_0x122b74(0x38a)]);_0x98fcca['searchParams']['delete'](_0x4dfe23),_0x141ff2?window[_0x122b74(0x14b)][_0x122b74(0x29e)]('','',_0x98fcca[_0x122b74(0x22a)]()):window[_0x122b74(0x14b)][_0x122b74(0x2e2)]('','',_0x98fcca[_0x122b74(0x22a)]());}['getParam'](_0x3ef47d){const _0x3be9dd=_0x598a0c;var _0x315be0;return(_0x315be0=new URL(window['location'][_0x3be9dd(0x38a)])[_0x3be9dd(0x166)]['get'](_0x3ef47d))!=null?_0x315be0:void 0x0;}}var qt=Object[_0x598a0c(0x2c4)],zt=Object[_0x598a0c(0x356)],Jt=(_0x136c13,_0xb80cbf,_0x4a5f42)=>_0xb80cbf in _0x136c13?qt(_0x136c13,_0xb80cbf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a5f42}):_0x136c13[_0xb80cbf]=_0x4a5f42,Zt=(_0x2de7d3,_0x4b3504,_0xb89d86,_0x547c64)=>{const _0x5c42a2=_0x598a0c;for(var _0x4dbfe8=_0x547c64>0x1?void 0x0:_0x547c64?zt(_0x4b3504,_0xb89d86):_0x4b3504,_0x2b2516=_0x2de7d3[_0x5c42a2(0x15b)]-0x1,_0x4750ca;_0x2b2516>=0x0;_0x2b2516--)(_0x4750ca=_0x2de7d3[_0x2b2516])&&(_0x4dbfe8=_0x4750ca(_0x4dbfe8)||_0x4dbfe8);return _0x4dbfe8;},he=(_0x420754,_0x202c78)=>(_0x5341a7,_0x17a491)=>_0x202c78(_0x5341a7,_0x17a491,_0x420754),Qt=(_0x1c82c5,_0xfe5cfd,_0x960725)=>Jt(_0x1c82c5,_0xfe5cfd+'',_0x960725);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x230097=Ue,_0x3f62e4,_0x1564d1,_0x629dfe){const _0x43e7d1=_0x598a0c;super(),this[_0x43e7d1(0x1c6)]=_0x230097,this['_renderManagerService']=_0x3f62e4,this[_0x43e7d1(0x226)]=_0x1564d1,this[_0x43e7d1(0x234)]=_0x629dfe;const {..._0xf27a6d}=a[_0x43e7d1(0x1d9)]({},Ue,this[_0x43e7d1(0x1c6)]);this['_configService'][_0x43e7d1(0x1e1)]($t,_0xf27a6d);}[_0x598a0c(0x1f1)](){const _0x589400=_0x598a0c;this[_0x589400(0x3aa)](),this['_initDependencies']();}['onRendered'](){const _0x1c677f=_0x598a0c;this[_0x1c677f(0x3a1)]();}[_0x598a0c(0x3aa)](){const _0x2dc5bf=_0x598a0c;var _0x48e558;const _0x4423ee=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G[_0x2dc5bf(0x326)]}],[u[_0x2dc5bf(0x20b)],{'useClass':ge}],[exports[_0x2dc5bf(0x230)]],[Q],[q],[x],[de],[exports[_0x2dc5bf(0x3a4)]]];a[_0x2dc5bf(0x392)](this['_injector'],a['mergeOverrideWithDependencies'](_0x4423ee,(_0x48e558=this['_config'])==null?void 0x0:_0x48e558[_0x2dc5bf(0x2b2)]));}['_registerRenderDependencies'](){const _0x4f958d=_0x598a0c;this[_0x4f958d(0x2f8)](this[_0x4f958d(0x307)][_0x4f958d(0x186)](a['UniverInstanceType']['UNIVER_DOC'],[fe])),this[_0x4f958d(0x2f8)](this[_0x4f958d(0x307)][_0x4f958d(0x186)](a[_0x4f958d(0x34e)][_0x4f958d(0x271)],[ve]));}[_0x598a0c(0x25e)](){const _0x2f173b=_0x598a0c;a[_0x2f173b(0x2f2)](this[_0x2f173b(0x226)],[[x],[exports[_0x2f173b(0x230)]],[Q],[q],[exports[_0x2f173b(0x3a4)]]]);}},Qt(exports[_0x598a0c(0x2f3)],_0x598a0c(0x2bc),es),exports[_0x598a0c(0x2f3)]=Zt([a[_0x598a0c(0x285)](u[_0x598a0c(0x23e)]),he(0x1,p[_0x598a0c(0x2d2)]),he(0x2,a[_0x598a0c(0x33b)](a[_0x598a0c(0x1e5)])),he(0x3,a[_0x598a0c(0x237)])],exports[_0x598a0c(0x2f3)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x4d24dc,_0x2e2c7c,_0x4f3626,_0x2d0fbe)=>{const _0x255b7=_0x598a0c;for(var _0x82def3=_0x2d0fbe>0x1?void 0x0:_0x2d0fbe?ts(_0x2e2c7c,_0x4f3626):_0x2e2c7c,_0x9c0cce=_0x4d24dc[_0x255b7(0x15b)]-0x1,_0x23e2e4;_0x9c0cce>=0x0;_0x9c0cce--)(_0x23e2e4=_0x4d24dc[_0x9c0cce])&&(_0x82def3=_0x23e2e4(_0x82def3)||_0x82def3);return _0x82def3;},H=(_0xf7b5c7,_0x4c6176)=>(_0x58bdcc,_0x3114af)=>_0x4c6176(_0x58bdcc,_0x3114af,_0xf7b5c7);exports[_0x598a0c(0x1a2)]=class extends u[_0x598a0c(0x2e1)]{constructor(_0x1ca1e0,_0x2edb57,_0x16de85,_0x58a172,_0x15a98d){super(_0x1ca1e0,_0x2edb57,_0x16de85,_0x58a172,_0x15a98d);}async['createSocket'](_0x4d1133){const _0x1a747e=_0x598a0c,_0x33b334=await this['_getSessionTicket'](),_0x3456dd=this[_0x1a747e(0x1d5)](_0x4d1133,_0x33b334);return this[_0x1a747e(0x190)](_0x3456dd);}[_0x598a0c(0x1d5)](_0xa5538e,_0x128db9){const _0x1e4e01=_0x598a0c,_0x322742=typeof window>'u'?new URL(_0xa5538e):new URL(_0xa5538e,window[_0x1e4e01(0x20f)]['origin']);_0x322742[_0x1e4e01(0x166)][_0x1e4e01(0x2e4)](_0x1e4e01(0x29a),_0x128db9);const _0x42e2a4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1e4e01(0x20f)][_0x1e4e01(0x14a)]);return _0x42e2a4[_0x1e4e01(0x265)](_0x1e4e01(0x233))&&_0x322742[_0x1e4e01(0x166)][_0x1e4e01(0x2e4)](_0x1e4e01(0x233),_0x42e2a4['get'](_0x1e4e01(0x233))),_0x322742[_0x1e4e01(0x22a)]();}async[_0x598a0c(0x2a2)](){const _0x38720a=_0x598a0c;var _0x1a7f0e,_0x4a1ed2,_0x18e077;const _0x3085d6=this[_0x38720a(0x234)]['getConfig'](u[_0x38720a(0x33f)]),_0x41e654=(_0x1a7f0e=_0x3085d6==null?void 0x0:_0x3085d6[_0x38720a(0x19d)])!=null?_0x1a7f0e:u[_0x38720a(0x22e)];return(_0x18e077=(_0x4a1ed2=(await this[_0x38720a(0x231)][_0x38720a(0x265)](_0x41e654,{'headers':{'Content-Type':_0x38720a(0x209)}}))[_0x38720a(0x303)])==null?void 0x0:_0x4a1ed2['ticket'])!=null?_0x18e077:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x598a0c(0x33b)](a[_0x598a0c(0x1e5)])),H(0x1,a[_0x598a0c(0x33b)](G[_0x598a0c(0x39d)])),H(0x2,a[_0x598a0c(0x237)]),H(0x3,a['ILogService']),H(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a['Disposable']{constructor(){const _0xbfc727=_0x598a0c;super(),h(this,'_id',a[_0xbfc727(0x146)]()),h(this,_0xbfc727(0x148),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0xbfc727(0x28f),null),h(this,_0xbfc727(0x2b4),new Map()),h(this,_0xbfc727(0x225),new Map()),this['_init']();}[_0x598a0c(0x221)](){const _0x26a5c6=_0x598a0c;super['dispose'](),this[_0x26a5c6(0x2b4)][_0x26a5c6(0x2e0)]((_0x28f316,_0x5c42e7)=>this['_removeClearOtherTimer'](_0x5c42e7)),this[_0x26a5c6(0x28f)]&&window['clearInterval'](this[_0x26a5c6(0x28f)]);}[_0x598a0c(0x298)](_0x1c7d3c){const _0x5820bf=_0x598a0c;return this[_0x5820bf(0x26c)](_0x1c7d3c)[_0x5820bf(0x215)](d['distinctUntilChanged']());}['editingUnit'](_0x3a88cc){const _0x26157c=_0x598a0c;this['_selfUnitIDs']['size']===0x0&&this[_0x26157c(0x16f)](),this['_selfUnitIDs'][_0x26157c(0x35a)](_0x3a88cc),this[_0x26157c(0x244)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3a88cc],'isForwarded':!0x1});}[_0x598a0c(0x38d)](_0x1d4a9f){const _0x5af9f8=_0x598a0c;this[_0x5af9f8(0x148)][_0x5af9f8(0x260)](_0x1d4a9f),this[_0x5af9f8(0x148)][_0x5af9f8(0x36a)]===0x0&&this[_0x5af9f8(0x28f)]&&window['clearInterval'](this[_0x5af9f8(0x28f)]);}[_0x598a0c(0x323)](){const _0x95ee5d=_0x598a0c;this['disposeWithMe'](a[_0x95ee5d(0x379)](d[_0x95ee5d(0x245)](window,_0x95ee5d(0x1f9))['subscribe'](_0xc26c9f=>{const _0x27093d=_0x95ee5d;if(_0xc26c9f[_0x27093d(0x13f)]!==Le||!_0xc26c9f[_0x27093d(0x2d0)])return;const _0x43e3c4=JSON['parse'](_0xc26c9f[_0x27093d(0x2d0)]);this['_handleEvent'](_0x43e3c4);}))),window[_0x95ee5d(0x324)]('unload',()=>this[_0x95ee5d(0x244)]({'type':0x1,'memberID':this[_0x95ee5d(0x34c)],'unitIDs':Array[_0x95ee5d(0x18c)](this['_selfUnitIDs'])}));}[_0x598a0c(0x14d)](_0x2ac12d){const _0x473e17=_0x598a0c;switch(_0x2ac12d[_0x473e17(0x208)]){case 0x0:this[_0x473e17(0x23d)](_0x2ac12d);break;case 0x1:this[_0x473e17(0x205)](_0x2ac12d);break;case 0x2:this[_0x473e17(0x30d)](_0x2ac12d);break;}}[_0x598a0c(0x23d)](_0x1b643e){const _0x42c896=_0x598a0c,{unitIDs:_0x4f6c8b,memberID:_0x3758d8,isForwarded:_0x59981d}=_0x1b643e;_0x4f6c8b[_0x42c896(0x2e0)](_0x20a60f=>{const _0x51d2ed=_0x42c896;if(!_0x59981d&&this[_0x51d2ed(0x23a)]['has'](_0x20a60f)&&this['_ensureSubject'](_0x20a60f)['next'](u['UnitStatus'][_0x51d2ed(0x1e8)]),!this[_0x51d2ed(0x23a)][_0x51d2ed(0x1d1)](_0x20a60f)||!this[_0x51d2ed(0x23a)][_0x51d2ed(0x265)](_0x20a60f)['has'](_0x3758d8)){const _0x424777=this[_0x51d2ed(0x23a)][_0x51d2ed(0x265)](_0x20a60f)||new Set();_0x424777[_0x51d2ed(0x35a)](_0x3758d8),this[_0x51d2ed(0x23a)][_0x51d2ed(0x2e4)](_0x20a60f,_0x424777),this[_0x51d2ed(0x242)](_0x3758d8);}}),_0x59981d||this[_0x42c896(0x244)]({'type':0x0,'memberID':this[_0x42c896(0x34c)],'unitIDs':[...this[_0x42c896(0x148)]],'isForwarded':!0x0});}[_0x598a0c(0x242)](_0x52d79d){const _0x59b208=_0x598a0c;this['_removeClearOtherTimer'](_0x52d79d);const _0x203011=window['setTimeout'](()=>{const _0x122c1b=_0x43e9;this['_unitOnClients'][_0x122c1b(0x2e0)](_0x45a6d0=>{_0x45a6d0['delete'](_0x52d79d);});},Me*0x2);this['_clearOtherTimers'][_0x59b208(0x2e4)](_0x52d79d,_0x203011);}['_removeClearOtherTimer'](_0x5d049e){const _0x3c5864=_0x598a0c;if(this['_clearOtherTimers'][_0x3c5864(0x1d1)](_0x5d049e)){const _0xaae2b4=this[_0x3c5864(0x2b4)][_0x3c5864(0x265)](_0x5d049e);_0xaae2b4&&window[_0x3c5864(0x278)](_0xaae2b4),this[_0x3c5864(0x2b4)][_0x3c5864(0x2e4)](_0x5d049e,null);}}[_0x598a0c(0x205)](_0x4074ea){const _0x401b6a=_0x598a0c,{memberID:_0x4df05c,unitIDs:_0x5d3e49}=_0x4074ea;_0x5d3e49[_0x401b6a(0x2e0)](_0x36d9ec=>{const _0x171c0d=_0x401b6a;var _0x8fa89;const _0x52db35=this['_unitOnClients'][_0x171c0d(0x265)](_0x36d9ec);_0x52db35&&(_0x52db35[_0x171c0d(0x260)](_0x4df05c),(_0x8fa89=this[_0x171c0d(0x26c)](_0x36d9ec))==null||_0x8fa89[_0x171c0d(0x26e)](_0x52db35[_0x171c0d(0x36a)]===0x0?u[_0x171c0d(0x1e9)][_0x171c0d(0x21e)]:u[_0x171c0d(0x1e9)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x4df05c);}[_0x598a0c(0x30d)](_0x2b2493){const _0x30870f=_0x598a0c;this[_0x30870f(0x242)](_0x2b2493[_0x30870f(0x179)]);}['_send'](_0x152944){const _0x383b65=_0x598a0c;localStorage[_0x383b65(0x16b)](Le,JSON[_0x383b65(0x367)](_0x152944));}['_scheduleHeartbeat'](){const _0xa23997=_0x598a0c;this['_heartbeatTimer']=window[_0xa23997(0x2b0)](()=>{const _0x222115=_0xa23997;this[_0x222115(0x244)]({'type':0x2,'memberID':this[_0x222115(0x34c)]});},Me);}[_0x598a0c(0x26c)](_0x32adca){const _0x103187=_0x598a0c;return this[_0x103187(0x225)][_0x103187(0x1d1)](_0x32adca)||this[_0x103187(0x225)][_0x103187(0x2e4)](_0x32adca,new d['BehaviorSubject'](u[_0x103187(0x1e9)][_0x103187(0x21e)])),this[_0x103187(0x225)]['get'](_0x32adca);}}var je=(_0x91e5ff=>(_0x91e5ff[_0x91e5ff[_0x598a0c(0x210)]=0x0]=_0x598a0c(0x210),_0x91e5ff[_0x91e5ff['OK']=0x1]='OK',_0x91e5ff[_0x91e5ff[_0x598a0c(0x178)]=0x2]=_0x598a0c(0x178),_0x91e5ff[_0x91e5ff[_0x598a0c(0x216)]=0x3]=_0x598a0c(0x216),_0x91e5ff[_0x91e5ff[_0x598a0c(0x267)]=0x4]=_0x598a0c(0x267),_0x91e5ff[_0x91e5ff['UNAUTHENTICATED']=0x5]=_0x598a0c(0x195),_0x91e5ff[_0x91e5ff[_0x598a0c(0x1e4)]=0x6]='ALREADY_EXISTS',_0x91e5ff[_0x91e5ff[_0x598a0c(0x363)]=0x7]=_0x598a0c(0x363),_0x91e5ff[_0x91e5ff[_0x598a0c(0x164)]=0x8]=_0x598a0c(0x164),_0x91e5ff[_0x91e5ff['COMPLETION_FINISHED']=0x9]=_0x598a0c(0x257),_0x91e5ff[_0x91e5ff['LOGIN_FAILED']=0xa]=_0x598a0c(0x175),_0x91e5ff[_0x91e5ff[_0x598a0c(0x29d)]=0xb]=_0x598a0c(0x29d),_0x91e5ff[_0x91e5ff[_0x598a0c(0x389)]=0xc]=_0x598a0c(0x389),_0x91e5ff[_0x91e5ff[_0x598a0c(0x342)]=0xd]=_0x598a0c(0x342),_0x91e5ff[_0x91e5ff['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x91e5ff[_0x91e5ff[_0x598a0c(0x2ba)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x91e5ff[_0x91e5ff[_0x598a0c(0x359)]=0x1771]=_0x598a0c(0x359),_0x91e5ff[_0x91e5ff['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x598a0c(0x2ca),_0x91e5ff[_0x91e5ff[_0x598a0c(0x34a)]=0x1773]=_0x598a0c(0x34a),_0x91e5ff[_0x91e5ff[_0x598a0c(0x259)]=0x1b59]=_0x598a0c(0x259),_0x91e5ff[_0x91e5ff[_0x598a0c(0x2a3)]=0x1b5a]=_0x598a0c(0x2a3),_0x91e5ff[_0x91e5ff[_0x598a0c(0x355)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x91e5ff[_0x91e5ff[_0x598a0c(0x296)]=0x1b5c]=_0x598a0c(0x296),_0x91e5ff[_0x91e5ff[_0x598a0c(0x1c4)]=0x1b5d]=_0x598a0c(0x1c4),_0x91e5ff[_0x91e5ff[_0x598a0c(0x3a5)]=0x1f41]=_0x598a0c(0x3a5),_0x91e5ff[_0x91e5ff['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x598a0c(0x360),_0x91e5ff[_0x91e5ff['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x598a0c(0x37a),_0x91e5ff[_0x91e5ff['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x598a0c(0x1f5),_0x91e5ff[_0x91e5ff[_0x598a0c(0x398)]=0x232c]=_0x598a0c(0x398),_0x91e5ff[_0x91e5ff[_0x598a0c(0x39e)]=0x232d]=_0x598a0c(0x39e),_0x91e5ff[_0x91e5ff[_0x598a0c(0x1c2)]=0x2711]=_0x598a0c(0x1c2),_0x91e5ff[_0x91e5ff[_0x598a0c(0x188)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x91e5ff[_0x91e5ff[_0x598a0c(0x377)]=0x2713]=_0x598a0c(0x377),_0x91e5ff[_0x91e5ff[_0x598a0c(0x194)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x91e5ff[_0x91e5ff[_0x598a0c(0x2dc)]=0x271a]=_0x598a0c(0x2dc),_0x91e5ff[_0x91e5ff[_0x598a0c(0x167)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x91e5ff[_0x91e5ff[_0x598a0c(0x35b)]=0x271c]=_0x598a0c(0x35b),_0x91e5ff[_0x91e5ff[_0x598a0c(0x319)]=0x271d]=_0x598a0c(0x319),_0x91e5ff[_0x91e5ff[_0x598a0c(0x382)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x91e5ff[_0x91e5ff[_0x598a0c(0x21a)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x91e5ff[_0x91e5ff[_0x598a0c(0x2cb)]=0x2720]=_0x598a0c(0x2cb),_0x91e5ff[_0x91e5ff[_0x598a0c(0x1fd)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x91e5ff[_0x91e5ff[_0x598a0c(0x196)]=0x2ee1]=_0x598a0c(0x196),_0x91e5ff[_0x91e5ff[_0x598a0c(0x24f)]=0x2ee2]=_0x598a0c(0x24f),_0x91e5ff[_0x91e5ff[_0x598a0c(0x2ed)]=0x2ee3]=_0x598a0c(0x2ed),_0x91e5ff[_0x91e5ff[_0x598a0c(0x293)]=0x2ee4]=_0x598a0c(0x293),_0x91e5ff[_0x91e5ff[_0x598a0c(0x213)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x91e5ff[_0x91e5ff[_0x598a0c(0x266)]=0x32c9]=_0x598a0c(0x266),_0x91e5ff[_0x91e5ff[_0x598a0c(0x1ed)]=0x32ca]=_0x598a0c(0x1ed),_0x91e5ff[_0x91e5ff['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x598a0c(0x156),_0x91e5ff[_0x91e5ff[_0x598a0c(0x290)]=-0x1]=_0x598a0c(0x290),_0x91e5ff))(je||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x311e90,_0x1f055b,_0x1bf953,_0x1d5b95)=>{const _0x4dad05=_0x598a0c;for(var _0x56990a=_0x1d5b95>0x1?void 0x0:_0x1d5b95?ns(_0x1f055b,_0x1bf953):_0x1f055b,_0x5d3c74=_0x311e90[_0x4dad05(0x15b)]-0x1,_0x69b8f0;_0x5d3c74>=0x0;_0x5d3c74--)(_0x69b8f0=_0x311e90[_0x5d3c74])&&(_0x56990a=_0x69b8f0(_0x56990a)||_0x56990a);return _0x56990a;},ue=(_0x148481,_0x31afec)=>(_0x1874e3,_0x130ee5)=>_0x31afec(_0x1874e3,_0x130ee5,_0x148481);exports[_0x598a0c(0x1f3)]=class extends a[_0x598a0c(0x1fb)]{constructor(_0x5e8210,_0x30680b,_0x4cbf88){const _0x4d120f=_0x598a0c;super(),this['_instanceService']=_0x5e8210,this[_0x4d120f(0x231)]=_0x30680b,this[_0x4d120f(0x234)]=_0x4cbf88;}async[_0x598a0c(0x159)](_0x119355,_0x211601,_0x50ab7d,..._0xcac419){const _0x3babdf=_0x598a0c;var _0x32203e,_0x381e87,_0x2571a2,_0x2c4c96;const _0x52cd43=this['_instanceService'][_0x3babdf(0x1a6)]();if(!_0x52cd43)throw new Error(_0x3babdf(0x393));const _0x51802d=((_0x32203e=this['_configService']['getConfig'](u[_0x3babdf(0x1bf)]))!=null?_0x32203e:u[_0x3babdf(0x25a)])+'/'+_0x119355+_0x3babdf(0x2aa)+_0x211601,_0x5946cd=new URL(window[_0x3babdf(0x20f)][_0x3babdf(0x38a)]),_0x49f51d={'scriptId':_0x119355,'runId':(_0x381e87=_0x5946cd[_0x3babdf(0x166)]['get']('runId'))!=null?_0x381e87:'','function':_0x211601,'unitId':_0x52cd43['getUnitId'](),'argsOfFunction':JSON[_0x3babdf(0x367)](_0xcac419),'invokeId':(_0x2571a2=_0x50ab7d[_0x3babdf(0x353)])!=null?_0x2571a2:'','executionId':(_0x2c4c96=_0x50ab7d[_0x3babdf(0x333)])!=null?_0x2c4c96:''};try{const _0x39df9c=await this[_0x3babdf(0x231)][_0x3babdf(0x201)](_0x51802d,{'body':_0x49f51d});return _0x39df9c[_0x3babdf(0x303)][_0x3babdf(0x228)]&&_0x39df9c[_0x3babdf(0x303)][_0x3babdf(0x228)]['code']!==je['OK']?_0x3babdf(0x346):_0x39df9c[_0x3babdf(0x303)][_0x3babdf(0x270)];}catch{return _0x3babdf(0x346);}}},exports[_0x598a0c(0x1f3)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x598a0c(0x39d)])),ue(0x2,a[_0x598a0c(0x237)])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports['IURLService']=Ee,exports[_0x598a0c(0x24e)]=we,exports[_0x598a0c(0x3a6)]=is,exports[_0x598a0c(0x263)]=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x5f00ba=_0x19f3;function _0x19f3(_0x346bc7,_0x51d121){const _0x4ef303=_0x4ef3();return _0x19f3=function(_0x19f3ce,_0x27f8db){_0x19f3ce=_0x19f3ce-0x1d3;let _0x2ead1a=_0x4ef303[_0x19f3ce];return _0x2ead1a;},_0x19f3(_0x346bc7,_0x51d121);}(function(_0x8e74b4,_0x3d2fd8){const _0xd39694=_0x19f3,_0x1476cc=_0x8e74b4();while(!![]){try{const _0x5282e2=parseInt(_0xd39694(0x1e0))/0x1*(-parseInt(_0xd39694(0x1ea))/0x2)+parseInt(_0xd39694(0x1d4))/0x3*(-parseInt(_0xd39694(0x1dd))/0x4)+parseInt(_0xd39694(0x1e1))/0x5+parseInt(_0xd39694(0x1d6))/0x6*(parseInt(_0xd39694(0x1df))/0x7)+-parseInt(_0xd39694(0x1de))/0x8+-parseInt(_0xd39694(0x1e5))/0x9*(parseInt(_0xd39694(0x1d3))/0xa)+parseInt(_0xd39694(0x1d8))/0xb;if(_0x5282e2===_0x3d2fd8)break;else _0x1476cc['push'](_0x1476cc['shift']());}catch(_0x479d84){_0x1476cc['push'](_0x1476cc['shift']());}}}(_0x4ef3,0x891c1));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x5f00ba(0x1d5),'conflict':_0x5f00ba(0x1e9),'notCollab':_0x5f00ba(0x1e8),'synced':_0x5f00ba(0x1e7),'syncing':_0x5f00ba(0x1db),'offline':_0x5f00ba(0x1e6)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x5f00ba(0x1e4),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x5f00ba(0x1d7),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x5f00ba(0x1dc),'content':_0x5f00ba(0x1e3)},'collaboration':{'single-unit':{'warning':_0x5f00ba(0x1e2)},'closeRoom':_0x5f00ba(0x1d9)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x4ef3(){const _0x2e3e4d=['1535547UnzswH','Syncing\x20server\x20data...','12SBavLN','Collaboration\x20Conflict','9913486LmIZyl','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','exports','Syncing...','Authentication\x20Error','4cpOmGH','6550248ngnIpt','1002519AIOsmc','31dJmlvT','4858720BPYUQi','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','18vGkKnu','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced','Local\x20file','Edit\x20conflicts','18CjVTLI','1334470tIZiiv'];_0x4ef3=function(){return _0x2e3e4d;};return _0x4ef3();}module[_0x5f00ba(0x1da)]=e;
1
+ 'use strict';const _0x4ceeef=_0x24b4;(function(_0x5ebe7a,_0x43d208){const _0x5e7765=_0x24b4,_0x5a0330=_0x5ebe7a();while(!![]){try{const _0x42d5be=-parseInt(_0x5e7765(0x13e))/0x1+-parseInt(_0x5e7765(0x13a))/0x2*(-parseInt(_0x5e7765(0x140))/0x3)+parseInt(_0x5e7765(0x13c))/0x4+-parseInt(_0x5e7765(0x137))/0x5*(parseInt(_0x5e7765(0x13f))/0x6)+-parseInt(_0x5e7765(0x12e))/0x7*(-parseInt(_0x5e7765(0x143))/0x8)+-parseInt(_0x5e7765(0x13b))/0x9*(-parseInt(_0x5e7765(0x138))/0xa)+-parseInt(_0x5e7765(0x135))/0xb;if(_0x42d5be===_0x43d208)break;else _0x5a0330['push'](_0x5a0330['shift']());}catch(_0x231ade){_0x5a0330['push'](_0x5a0330['shift']());}}}(_0x2312,0xda5a0));const e={'collab-client':{'tooltip':{'reconnect':_0x4ceeef(0x13d)}},'collabStatus':{'fetchMiss':_0x4ceeef(0x131),'conflict':_0x4ceeef(0x136),'notCollab':_0x4ceeef(0x141),'synced':_0x4ceeef(0x12f),'syncing':_0x4ceeef(0x147),'offline':_0x4ceeef(0x144)},'session':{'connection-failed':_0x4ceeef(0x130),'will-retry':_0x4ceeef(0x142),'room-full':_0x4ceeef(0x139),'collaboration-timeout':_0x4ceeef(0x146)},'conflict':{'title':_0x4ceeef(0x133),'content':_0x4ceeef(0x134)},'permission':{'title':_0x4ceeef(0x132),'content':_0x4ceeef(0x145)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x2312(){const _0x40d946=['Synced','Connection\x20failed,\x20please\x20check\x20your\x20network.','Syncing\x20server\x20data...','Authentication\x20Error','Collaboration\x20Conflict','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','8492429rBghqg','Edit\x20conflicts','5jCqZin','20FKjrrb','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','102uIuQFq','802125IQpGDh','2943696GyByiQ','Click\x20to\x20Reconnect','157244HuOmvh','10489398kDnTDR','60486nNENmt','Local\x20file','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1629448tzFpvp','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Syncing...','56NOZsgV'];_0x2312=function(){return _0x40d946;};return _0x2312();}function _0x24b4(_0x289e01,_0x344e6a){const _0x23128a=_0x2312();return _0x24b4=function(_0x24b48f,_0x334c87){_0x24b48f=_0x24b48f-0x12e;let _0x2489b4=_0x23128a[_0x24b48f];return _0x2489b4;},_0x24b4(_0x289e01,_0x344e6a);}module['exports']=e;