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

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 _0x4bc869=_0x5250;(function(_0x2d18c2,_0x74c6ea){const _0x3c973a=_0x5250,_0x456c9f=_0x2d18c2();while(!![]){try{const _0x3a0794=-parseInt(_0x3c973a(0xe5))/0x1+parseInt(_0x3c973a(0xe3))/0x2*(-parseInt(_0x3c973a(0xe2))/0x3)+-parseInt(_0x3c973a(0xe8))/0x4+parseInt(_0x3c973a(0xe6))/0x5*(parseInt(_0x3c973a(0xe9))/0x6)+parseInt(_0x3c973a(0xdd))/0x7+-parseInt(_0x3c973a(0xe4))/0x8+-parseInt(_0x3c973a(0xe0))/0x9*(-parseInt(_0x3c973a(0xe7))/0xa);if(_0x3a0794===_0x74c6ea)break;else _0x456c9f['push'](_0x456c9f['shift']());}catch(_0x3dfb5b){_0x456c9f['push'](_0x456c9f['shift']());}}}(_0x7192,0xd19bf));function _0x7192(){const _0x525ba3=['5954676nfXKrx','6pNCWTA','get','FUniver','4784213XSDcnS','RemoteUniscriptService','runOnServer','36hFQLIK','_injector','6fyBkZU','1463098qLxCAv','7286200jTtTOC','20763TZDpsa','3272765QCJjHg','8509630CRMaLV'];_0x7192=function(){return _0x525ba3;};return _0x7192();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x4bc869(0xdc)]{['runOnServer'](_0x25b6af,_0x2f5620,..._0xf400d1){const _0x4d6b6f=_0x4bc869;return this[_0x4d6b6f(0xe1)][_0x4d6b6f(0xea)](t[_0x4d6b6f(0xde)])[_0x4d6b6f(0xdf)](_0x25b6af,_0x2f5620,{},..._0xf400d1);}}function _0x5250(_0x3e3159,_0x4072c8){const _0x719296=_0x7192();return _0x5250=function(_0x52500c,_0x177965){_0x52500c=_0x52500c-0xdc;let _0x4bd9c2=_0x719296[_0x52500c];return _0x4bd9c2;},_0x5250(_0x3e3159,_0x4072c8);}e[_0x4bc869(0xdc)]['extend'](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 _0x863d24=_0x4e19;(function(_0x1dee9f,_0x49c4a5){const _0x2f6225=_0x4e19,_0x24b4ca=_0x1dee9f();while(!![]){try{const _0x30ab6d=parseInt(_0x2f6225(0x227))/0x1+-parseInt(_0x2f6225(0x3c3))/0x2+-parseInt(_0x2f6225(0x368))/0x3+-parseInt(_0x2f6225(0x1e8))/0x4*(-parseInt(_0x2f6225(0x326))/0x5)+-parseInt(_0x2f6225(0x2f2))/0x6+parseInt(_0x2f6225(0x267))/0x7+parseInt(_0x2f6225(0x1f9))/0x8*(parseInt(_0x2f6225(0x346))/0x9);if(_0x30ab6d===_0x49c4a5)break;else _0x24b4ca['push'](_0x24b4ca['shift']());}catch(_0x38a46c){_0x24b4ca['push'](_0x24b4ca['shift']());}}}(_0x16e5,0x8fc8e));var Ve=Object[_0x863d24(0x2d7)],Xe=(_0x1114e8,_0x36e6ba,_0x25e5a2)=>_0x36e6ba in _0x1114e8?Ve(_0x1114e8,_0x36e6ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25e5a2}):_0x1114e8[_0x36e6ba]=_0x25e5a2,h=(_0x3dcea0,_0x3ac9ee,_0x1a70b0)=>Xe(_0x3dcea0,typeof _0x3ac9ee!=_0x863d24(0x35f)?_0x3ac9ee+'':_0x3ac9ee,_0x1a70b0);Object[_0x863d24(0x2d7)](exports,Symbol[_0x863d24(0x302)],{'value':_0x863d24(0x204)});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[_0x863d24(0x2b7)],ze=(_0x1b62e3,_0x43cc68,_0x6311ac,_0x1ff33a)=>{const _0x4b983b=_0x863d24;for(var _0x1acb65=_0x1ff33a>0x1?void 0x0:_0x1ff33a?qe(_0x43cc68,_0x6311ac):_0x43cc68,_0x2ef7f5=_0x1b62e3[_0x4b983b(0x2a3)]-0x1,_0x4c8d9e;_0x2ef7f5>=0x0;_0x2ef7f5--)(_0x4c8d9e=_0x1b62e3[_0x2ef7f5])&&(_0x1acb65=_0x4c8d9e(_0x1acb65)||_0x1acb65);return _0x1acb65;},Oe=(_0x445456,_0x596615)=>(_0x5b39ea,_0x23e378)=>_0x596615(_0x5b39ea,_0x23e378,_0x445456);let de=class extends a[_0x863d24(0x1a4)]{constructor(_0x11435a,_0x578192){const _0xb2dfcb=_0x863d24;super(),this[_0xb2dfcb(0x317)]=_0x11435a,this['_imageIoService']=_0x578192,this[_0xb2dfcb(0x3cd)]();}[_0x863d24(0x3cd)](){const _0xbdb618=_0x863d24,_0xb20954=this;this['disposeWithMe'](this['_docClipboardService'][_0xbdb618(0x2ba)]({'onBeforePasteImage':async _0x409f5b=>{const _0x591018=_0xbdb618,_0x4868ec=await _0xb20954[_0x591018(0x404)][_0x591018(0x246)](_0x409f5b);return _0x4868ec?{'source':_0x4868ec['source'],'imageSourceType':_0x4868ec[_0x591018(0x2c1)]}:null;}}));}};de=ze([Oe(0x0,E['IDocClipboardService']),Oe(0x1,Ge[_0x863d24(0x373)])],de);const Te=[_0x863d24(0x21a),_0x863d24(0x276),_0x863d24(0x2b1),'red.300',_0x863d24(0x22d),_0x863d24(0x22a)];class me extends a[_0x863d24(0x312)]{constructor(){const _0x28dd1f=_0x863d24;super(...arguments),h(this,_0x28dd1f(0x279),new Map()),h(this,_0x28dd1f(0x1c9),0x0);}[_0x863d24(0x29a)](_0x549ea6){const _0x5d82d9=_0x863d24;if(this[_0x5d82d9(0x279)][_0x5d82d9(0x1a9)](_0x549ea6))return this[_0x5d82d9(0x279)][_0x5d82d9(0x1d2)](_0x549ea6);const _0x2c815c=Te[this['_colorIndex']];return this[_0x5d82d9(0x1c9)]=(this['_colorIndex']+0x1)%Te[_0x5d82d9(0x2a3)],this[_0x5d82d9(0x279)][_0x5d82d9(0x3b4)](_0x549ea6,_0x2c815c),_0x2c815c;}}function Pe(_0x7fe5a8){let _0x3fa9ae='';for(const _0x2c8e9d of _0x7fe5a8){const {startOffset:_0x4fe221,endOffset:_0x4d38d9,isActive:_0x588c36,rangeType:_0xa648cb,segmentId:_0x3bf43b,segmentPage:_0x58325d}=_0x2c8e9d;_0x3fa9ae['length']&&(_0x3fa9ae+=','),_0x3fa9ae+=_0x4fe221+':'+_0x4d38d9+':'+(_0x588c36?'1':'0')+':'+_0xa648cb+':'+_0x3bf43b+':'+_0x58325d;}return _0x3fa9ae;}function Je(_0x14c7ba){const _0x1c351d=_0x863d24,_0x16a8a8=_0x14c7ba['split'](','),_0x281fcc=[];for(const _0x21d1af of _0x16a8a8){const [_0x20a28a,_0x4e1b30,_0x10685a,_0x46b3c4,_0x50d069,_0x474250]=_0x21d1af[_0x1c351d(0x1a7)](':');_0x281fcc['push']({'startOffset':Number(_0x20a28a),'endOffset':Number(_0x4e1b30),'collapsed':_0x20a28a===_0x4e1b30,'isActive':_0x10685a==='1','rangeType':_0x46b3c4===a[_0x1c351d(0x209)][_0x1c351d(0x1b1)]?a[_0x1c351d(0x209)][_0x1c351d(0x1b1)]:a[_0x1c351d(0x209)]['RECT'],'segmentId':typeof _0x50d069==_0x1c351d(0x2ff)?String(_0x50d069):'','segmentPage':Number(_0x474250!=null?_0x474250:-0x1)});}return _0x281fcc['some'](_0x37c676=>_0x37c676[_0x1c351d(0x290)])||(_0x281fcc[0x0][_0x1c351d(0x290)]=!0x0),_0x281fcc;}class Ce extends a[_0x863d24(0x1a4)]{constructor(){const _0x3ddf68=_0x863d24;super(...arguments),h(this,_0x3ddf68(0x1c2),new d[(_0x3ddf68(0x199))](null)),h(this,'collabCursorState$',this[_0x3ddf68(0x1c2)]['asObservable']());}['syncEditingCollabCursor'](_0x4b2e5b){const _0x5c8e01=_0x863d24,{unitID:_0x1ad8cf,memberID:_0x45a3d2,textRanges:_0x4bfb85}=_0x4b2e5b,_0x5317a1=Pe(_0x4bfb85);if(_0x5317a1==='')return;const _0x1ccd7a={'unitID':_0x1ad8cf,'memberID':_0x45a3d2,'selection':_0x5317a1};this[_0x5c8e01(0x1c2)][_0x5c8e01(0x1d6)](_0x1ccd7a);}}var Ze=Object[_0x863d24(0x2b7)],Qe=(_0x464f4d,_0x3ef615,_0x2c4a94,_0x21233f)=>{for(var _0x33f1e0=_0x21233f>0x1?void 0x0:_0x21233f?Ze(_0x3ef615,_0x2c4a94):_0x3ef615,_0x539eba=_0x464f4d['length']-0x1,_0x3cce36;_0x539eba>=0x0;_0x539eba--)(_0x3cce36=_0x464f4d[_0x539eba])&&(_0x33f1e0=_0x3cce36(_0x33f1e0)||_0x33f1e0);return _0x33f1e0;},L=(_0x264d9b,_0x4dbe4f)=>(_0x36e481,_0x369e00)=>_0x4dbe4f(_0x36e481,_0x369e00,_0x264d9b);const et=0x12c,tt=0x64;let Ie=class extends a[_0x863d24(0x1a4)]{constructor(_0x4b2a1e,_0x5469ea,_0x19fbf4,_0x45d1cb,_0x2a464a,_0x5a55a3,_0x1547e9,_0x3411b6,_0x52aca6){const _0x16e0e8=_0x863d24;super(),h(this,_0x16e0e8(0x1cf),!0x1),h(this,_0x16e0e8(0x3cd),!0x1),h(this,_0x16e0e8(0x39e),new d[(_0x16e0e8(0x199))](new Map())),h(this,_0x16e0e8(0x38d),this[_0x16e0e8(0x39e)][_0x16e0e8(0x22f)]()),h(this,_0x16e0e8(0x3e4),new d['BehaviorSubject']([])),h(this,'roomMembers$',this['_roomMembers$'][_0x16e0e8(0x340)](d[_0x16e0e8(0x359)](et))),h(this,_0x16e0e8(0x39f),a['debounce'](_0x3da0be=>{const _0x4ed849=_0x16e0e8,_0x5dba58={'eventID':m[_0x4ed849(0x1d1)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x4ed849(0x32b)](),'selection':Pe(_0x3da0be)}};this[_0x4ed849(0x19b)][_0x4ed849(0x2bf)](_0x5dba58,this[_0x4ed849(0x1f2)]);},tt)),(this[_0x16e0e8(0x1f2)]=_0x4b2a1e,this[_0x16e0e8(0x19b)]=_0x5469ea,this[_0x16e0e8(0x2d6)]=_0x19fbf4,this['_colorAssignService']=_0x45d1cb,this[_0x16e0e8(0x2de)]=_0x2a464a,this[_0x16e0e8(0x237)]=_0x5a55a3,this[_0x16e0e8(0x29f)]=_0x1547e9,this[_0x16e0e8(0x1b4)]=_0x3411b6,this['_commandService']=_0x52aca6);}get[_0x863d24(0x2c3)](){const _0x4516c2=_0x863d24;return this[_0x4516c2(0x39e)][_0x4516c2(0x3e0)]();}get[_0x863d24(0x2ef)](){const _0x2c2ef5=_0x863d24;return this[_0x2c2ef5(0x3e4)]['getValue']();}[_0x863d24(0x2c0)](){const _0x5b50b6=_0x863d24;super['dispose'](),this['_cursorInfo$'][_0x5b50b6(0x1d6)](new Map()),this[_0x5b50b6(0x39e)][_0x5b50b6(0x3f1)](),this[_0x5b50b6(0x3e4)]['next']([]),this[_0x5b50b6(0x3e4)][_0x5b50b6(0x3f1)]();}[_0x863d24(0x29d)](){const _0x522a31=_0x863d24;this[_0x522a31(0x3cd)]||(this[_0x522a31(0x3cd)]=!0x0,this[_0x522a31(0x19b)]['sessionStatus$'][_0x522a31(0x340)](d[_0x522a31(0x393)](this['dispose$']))[_0x522a31(0x1fa)](_0x326140=>{_0x326140===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x522a31(0x19b)][_0x522a31(0x371)]['pipe'](d[_0x522a31(0x393)](this[_0x522a31(0x1cc)]))['subscribe'](_0x56ab37=>{const _0x259200=_0x522a31,_0x3d6046=_0x56ab37[_0x259200(0x31e)];_0x3d6046===m[_0x259200(0x1d1)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x56ab37),_0x3d6046===m[_0x259200(0x1d1)][_0x259200(0x36a)]&&this[_0x259200(0x338)](_0x56ab37);}),this['disposeWithMe'](this[_0x522a31(0x384)][_0x522a31(0x242)](_0x2f37be=>{const _0xb8060c=_0x522a31,_0x37b482=_0x2f37be[_0xb8060c(0x2b8)];_0x37b482!=null&&this['_online']&&_0x2f37be['id']===Y[_0xb8060c(0x297)]['id']&&_0x37b482[_0xb8060c(0x1ad)]===this[_0xb8060c(0x1f2)]&&_0x37b482[_0xb8060c(0x2a4)]===!0x1&&_0x37b482['ranges'][_0xb8060c(0x2a3)]>0x0&&this[_0xb8060c(0x39f)](_0x37b482['ranges']);})),this[_0x522a31(0x237)]['collabCursorState$'][_0x522a31(0x340)](d['takeUntil'](this[_0x522a31(0x1cc)]))[_0x522a31(0x1fa)](_0x3057d1=>{const _0x30e30e=_0x522a31;if((_0x3057d1==null?void 0x0:_0x3057d1[_0x30e30e(0x1f2)])!==this[_0x30e30e(0x1f2)])return;const _0x45b9d9={'eventID':m[_0x30e30e(0x1d1)][_0x30e30e(0x3f8)],'data':_0x3057d1};this[_0x30e30e(0x381)](_0x45b9d9);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x3ff129=>{const _0x5cbec5=_0x522a31;if(_0x3ff129[_0x5cbec5(0x2b8)]==null)return;const _0x34db30=_0x3ff129[_0x5cbec5(0x2b8)];if(_0x3ff129['id']!==Y['RichTextEditingMutation']['id']||_0x34db30[_0x5cbec5(0x1ad)]!==this[_0x5cbec5(0x1f2)])return;const _0x57fca0={'id':_0x5cbec5(0x3ce),'params':_0x34db30},_0x2347fb=this[_0x5cbec5(0x2c3)];for(const [_0x7f7b49,_0x5a66bc]of _0x2347fb){const _0x4f64de={'id':_0x5cbec5(0x3ce),'params':{'unitId':this[_0x5cbec5(0x1f2)],'actions':null,'textRanges':_0x5a66bc[_0x5cbec5(0x370)]}},_0x5067f7=this[_0x5cbec5(0x29f)]['transformMutation'](_0x57fca0,_0x4f64de,!0x1);if(m[_0x5cbec5(0x2e5)](_0x5067f7))throw _0x5067f7[_0x5cbec5(0x3ca)];_0x2347fb[_0x5cbec5(0x3b4)](_0x7f7b49,{..._0x5a66bc,'ranges':_0x5067f7[_0x5cbec5(0x19f)][_0x5cbec5(0x2b8)][_0x5cbec5(0x34f)]});}queueMicrotask(()=>{const _0x38369f=_0x5cbec5;this[_0x38369f(0x39e)][_0x38369f(0x1d6)](_0x2347fb);});})));}[_0x863d24(0x381)](_0x38c7e2){const _0x4d0af9=_0x863d24;var _0x5a2d3e,_0x496306;const {memberID:_0x22b05b,selection:_0x22f460}=_0x38c7e2[_0x4d0af9(0x21b)],_0x4be2c4=Je(_0x22f460),_0x4a2d10=(_0x496306=(_0x5a2d3e=this[_0x4d0af9(0x2de)][_0x4d0af9(0x3a9)](this[_0x4d0af9(0x1f2)],_0x22b05b))==null?void 0x0:_0x5a2d3e[_0x4d0af9(0x3fd)])!=null?_0x496306:_0x4d0af9(0x293),_0x5b6a8c={'color':this[_0x4d0af9(0x3ee)][_0x4d0af9(0x29a)](_0x22b05b),'name':_0x4a2d10,'ranges':_0x4be2c4},_0x2aabc6=this[_0x4d0af9(0x2c3)];_0x2aabc6[_0x4d0af9(0x3b4)](_0x22b05b,_0x5b6a8c),this[_0x4d0af9(0x39e)][_0x4d0af9(0x1d6)](_0x2aabc6);}['_onCursorDelete'](_0x49ecab){const _0x597a78=_0x863d24,{memberID:_0x249e80}=_0x49ecab[_0x597a78(0x21b)],_0x5ca2e4=this['cursorInfo'];_0x5ca2e4[_0x597a78(0x30a)](_0x249e80),this['_cursorInfo$'][_0x597a78(0x1d6)](_0x5ca2e4);}[_0x863d24(0x3d3)](){const _0x2c0a15=_0x863d24;var _0x3fe6fe;if(this[_0x2c0a15(0x1cf)]=!0x0,((_0x3fe6fe=this[_0x2c0a15(0x1b4)][_0x2c0a15(0x2af)]())==null?void 0x0:_0x3fe6fe[_0x2c0a15(0x1ef)]())!==this[_0x2c0a15(0x1f2)])return;const _0x4b3616=this[_0x2c0a15(0x2d6)][_0x2c0a15(0x1d2)](Y[_0x2c0a15(0x3a4)])[_0x2c0a15(0x20a)]();Array['isArray'](_0x4b3616)&&_0x4b3616[_0x2c0a15(0x2a3)]>0x0&&this[_0x2c0a15(0x39f)](_0x4b3616);}[_0x863d24(0x37e)](){const _0x40cdd4=_0x863d24;this[_0x40cdd4(0x1cf)]=!0x1;}};Ie=Qe([L(0x2,a[_0x863d24(0x37c)](a[_0x863d24(0x401)])),L(0x3,a[_0x863d24(0x37c)](me)),L(0x4,a['Inject'](u[_0x863d24(0x20f)])),L(0x5,a[_0x863d24(0x37c)](Ce)),L(0x6,m[_0x863d24(0x24a)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x863d24(0x343)])],Ie);var st=Object[_0x863d24(0x2b7)],it=(_0x569c5b,_0x49fa74,_0x14fbdf,_0x466cf1)=>{const _0x783f3a=_0x863d24;for(var _0x203f73=_0x466cf1>0x1?void 0x0:_0x466cf1?st(_0x49fa74,_0x14fbdf):_0x49fa74,_0x184541=_0x569c5b[_0x783f3a(0x2a3)]-0x1,_0x368461;_0x184541>=0x0;_0x184541--)(_0x368461=_0x569c5b[_0x184541])&&(_0x203f73=_0x368461(_0x203f73)||_0x203f73);return _0x203f73;},A=(_0x3cf170,_0x99d1ae)=>(_0x8dba91,_0x5e6854)=>_0x99d1ae(_0x8dba91,_0x5e6854,_0x3cf170);const nt=0x12c,rt=0x64,ot=()=>{let _0x18fbf7=[],_0x4199f0=!0x1;return _0x4adaa0=>{const _0x23f76b=_0x4e19;_0x18fbf7[_0x23f76b(0x34e)](_0x4adaa0),_0x4199f0||(_0x4199f0=!0x0,setTimeout(()=>{const _0x45ce32=_0x23f76b;_0x18fbf7[_0x45ce32(0x26d)](_0x4e2f1b=>_0x4e2f1b()),_0x18fbf7=[],_0x4199f0=!0x1;}));};};function _0x16e5(){const _0x58ca2a=['url(#on-line-icon_clip0_910_349)','CollaborationDataLoaderController','SessionStatus','children','collaboration.closeRoom','isArray','...','updateOfflineData','getFocusedUnit','sessionStatus$','green.600','INVITE_CODE_REQUIRED','LICENSE_IMPORT_SIZE_EXCEEDED','collab-text-anchor-','map','sessionTicket','getOwnPropertyDescriptor','params','getActiveSheet','addClipboardHook','random','values','entries','MoveRangeCommandId','send','dispose','imageSourceType','_refRangeService','cursorInfo','body','0\x200\x2016\x2016','registerRefRange','includes','http://www.w3.org/2000/svg','RemoveRowCommandId','_ensureSubject','touchDependencies','[CollaborationDataLoaderController]','INTERNAL_ERROR','MOBILE_VERIFY_CODE_MISMATCH','OTHER_CLIENTS_EDITING','registerBeforeClose','fillRule','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','labelPosition','syncEditingCollabCursor','_document','_injector','defineProperty','UniverInstanceType','unload','Workbook','SheetsSelectionsService','svg','apply','_memberService','whenReady','toDisposable','currentTheme$','setStateCache','FromArray','pushState','isTransformMutationFailure','MUTATION','_startSheetCollabCursor','_selfUnitIDs','registerRenderModule','executeCommand','WebSocketService','collabStatus.fetchMiss','_initStatusListener','_docSkeleton','roomMembers','createElement','moveTo','3553518vWYeJP','disposeWithMe','UniverCollaborationClientUIPlugin','_clearOtherTimers','isTransformMutationsWithChangesetSuccess','unshift','max','WECHAT_HAS_BEEN_BOUND','_status$','activeSheet$','selection','drawWith','className','string','connectInjector','setItem','toStringTag','getColorFromTheme','runOnServer','_heartbeatTimer','0\x200\x2017\x2016','useCallback','_getAnchorBounding','_getSheetObject','delete','_updateCollabCursors','_cursors','endColumn','RECT','key','_createSocketURL','getTypeOfUnitAdded$','Disposable','INVALID_INVITE_CODE','saveOfflineData','getCoordByCell','YUUMI_ASYNCIO_CANCELLED','_docClipboardService','Failed','_initCommandExecutedListener','_updateSubUnitFromURLParams','transformSelections','_scheduleSaving','serializeRangeWithSheet','eventID','fillText','UnitStatus','IRenderManagerService','size','location','all','_updateURLWithCurrentState','5iRWEhe','ILogService','LICENSE_EXPORT_SIZE_EXCEEDED','NodePositionConvertToRectRange','currentSkeleton$','getMemberID','_collabSessionService','attrs','NO_OTHER_CLIENTS_EDITING','_cachedData','CollaborationUIEventId','addObject','handleIRemoveCol','urlChange$','_dataLoaderService','addObjects','CONFLICT','_collabCursorController','_onCursorDelete','subunit','INVITE_CODE_ALREADY_BOUND','_anchorDot','getCurrentUnitForType','MessageType','INVALID_ARGUMENT','PERMISSION_DENIED','pipe','TOO_MANY_REQUESTS','onStarting','ICommandService','ONLINE','bottom','10909341zUHjil','CLOSE_ROOM','RefRangeService','selections','addHandlerCallback','YUUMI_ALL_TABLES_IS_INVALID','Error','INotificationService','push','textRanges','off-line-icon','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LOGIN_FAILED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','BuiltInUIPart','stringify','Rectangle','type','width','debounceTime','triggerDblclick','colorChannel1','fillStyle','_config','text','symbol','endRow','getCollabCursors$','_startDocCollabCursor','PY_RUNTIME_SCRIPT_ERROR','SetDocZoomRatioOperation','useDependency','UniverIcon','_cursor','1179069Pqwegj','_cursorShapes','USERS_LEAVE','findNodePositionByCharIndex','_initEvent','DocStateChangeManagerService','_localeService','startColumn','ranges','event$','/run/','IImageIoService','code','clsx','pluginName','YUUMI_CONNECTOR_URL_NOT_FOUND','LOCAL_CACHE_INTERVAL_KEY','font','assign','prototype','Inject','FETCH_MISS','_toggleOffline','onPointerLeave$','_lastPointer','_onCursorUpdate','_color','currentColor','_commandService','univer-flex\x20univer-items-center','_docStateChangeManagerService','_render','YUUMI_NO_CUBOID_FOR_QUESTION','toString','_handleEvent','MOBILE_HAS_BEEN_BOUND','filter','cursorInfo$','application/json','_transformHistoryAndStateStack','combineLatest','getItem','beginPath','takeUntil','ThemeService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','find','RemoveColCommandId','CollaborationStatus','setUndoRedoMutationParamsCache','Optional','_handleHover','result','_messageService','_cursorInfo$','_updateLocalCursor','handleInsertRangeMoveDown','_initEntityListener','_scene','defIds','DocSelectionManagerService','_disabled','getUnhiddenWorksheets','merge','_collaborationUIEventService','getMember','LOCAL_CACHE_INTERVAL','EMAIL_HAS_BEEN_BOUND','url(#off-line-icon_clip0_910_343)','indexOf','_transformPreviousActiveRange','COLORS','APPLY_DUPLICATED','_hover','_logService','UNIVER_SHEET','set','SetSelectionsOperation','CollaborationSessionService','min','fromEvent','Vector2','on-line-icon_clip0_910_349','Rect','_backgroundColor','_handleLeaveEvent','setShapeProps','handleInsertRangeMoveRight','NOT_COLLAB','_drawRectRange','createInstance','1709496qgPTDR','collab-rect-range-','arc','_beforeCloseService','transformMutationsWithChangeset','measureText','add','error','getAncestorScale','transformStateCache','_init','doc.mutation.rich-text-editing','call','searchParams','Tools','IMessageService','_toggleOnline','IBeforeCloseService','_drawTextRange','then','CollaborationController','_anchor','toRgbString','ticket','DeleteRangeMoveUpCommandId','_id','_getSessionTicket','_removeCollabCursors','USER_NOT_INVITED_CODE','getValue','loadOfflineData','OffLineIcon','_configService','_roomMembers$','INVITE_CODE_HAS_BEEN_UES','getOwnPropertySymbols','AWAITING','white','_revisionService','sheetId','Shape','EffectRefRangId','SUBMIT_CHANGESET_TIMEOUT','_colorAssignService','_initStatusComponent','CHANGESET_REVISION_CONFILICT','complete','SNAPSHOT_INVALID_SNAPSHOT','round','RegularPolygon','YUUMI_TABLE_NOT_FOUND_IN_UNIT','hasOwnProperty','APPLY_NON_SEQUENTIAL_REVISION','UPDATE_CURSOR','UniverCollaborationClientPlugin','_handleJoinEvent','actions','getCurrentRevOfUnit','name','CONNECTOR_DATA_TOO_LARGE','_themeService','handleDeleteRangeMoveUp','Injector','onMouseMove','_urlService','_imageIoService','save','_name','getSheetId','PENDING','mask','icon','none','DependentOn','getStateCache','_labelPosition','OFFLINE','YUUMI_AI_RUN_FAILED','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','evenodd','popstate','_drawAnchor','permission.title','_registerDependencies','transformMutation','getUnitStatus$','BehaviorSubject','AWAITING_WITH_PENDING','_session','onLocalMutation','propertyIsEnumerable','DesktopCollaborationStatusDisplayController','m2Prime','setActiveRange','mutations','getViewport','YUUMI_UNABLE_LOAD_URL','RxDisposable','unsubscribe','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','split','_docSyncEditingCollabCursorService','has','getParam','_range','entityInit$','unitId','createSocket','_context','editingUnit','TEXT','SNAPSHOT_HAS_BEEN_REMOVED','getUndoRedoMutationParamsCache','_univerInstanceService','univer-mr-2\x20univer-flex\x20univer-text-xl','debounce','session.collaboration-timeout','BrowserCollaborationSocketService','_localCacheService','on-line-icon','InsertRowCommandId','m1Prime','_getSaveTimeout','_saveCache','path','transformRemoteChangeset','IUniverInstanceService','_collabCursorState$','_textBubble','exhaustSavingTask','ENSURE_SNAPSHOT_EXECUTION','createIdentifier','transform','switchMap','_colorIndex','getConfig','url(#$1','dispose$','getActiveRange','deserializeRangeWithSheet','_online','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CollaborationEvent','get','clipPath','black','runId','next','UNIVER_DOC','_setupBeforeClosingHandler','onRendered','_draw','M0\x200H16V16H0z','onPointerEnter$','YUUMI_URL_COL_OUT_OF_RANGE','debug','ILocalCacheService','disposeUnit','startRow','_handleHeartbeatEvent','_docTransformIMECacheService','useRef','clearTimeout','collabStatus.syncing','UNDEFINED','2923164RMAWhC','row','unit','translate(.97)','href','_eventUnsubscribe','_docSkeletonManagerService','getUnitId','tag','ACTIVE_UNIT_EVENT_CHANNEL','unitID','replace','EMAIL_VERIFY_CODE_MISMATCH','from','CommandType','getTypeOfUnitDisposed$','substring','8GHDjLr','subscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_registerRenderDependencies','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','requireSession','idSuffix','UNAUTHENTICATED','getLocalCacheKey','transformByState','range','Module','IRemoteInstanceService','setInterval','defs','_renderManagerService','DOC_RANGE_TYPE','getDocRanges','closePath','_docTransformStateCacheService','getRenderById','getRangePointData','MemberService','flatMap','_scheduleHeartbeat','getSheetBySheetId','fill','ISnapshotServerService','_entityInit$','invokeId','origin','subscribeEvent','extend','purple.300','data','status$','docStateChange$','APPLY_REVISION_CONFILICT','YUUMI_RATE_OVER_LIMIT','_shapes','DocSkeletonManagerService','_scheduleClearOtherTimer','_localStorageService','saveTaskMap','SOCKET_FAILED','_unitOnClients','270706BQhHZq','skeleton','getMergeData','yellow.400','LICENSE_DISTRO_REJECTED','parse','blue.400','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','asObservable','_saveTaskMap','HEADER_MENU','OnLineIcon','SetWorksheetActivateCommand','Plugin','jsxs','_getMergeRange','_syncEditingCollabCursorService','enableLocalCache','off-line-icon_clip0_910_343','InsertRangeMoveRightCommandId','loadUnit','history','div','setTimeout','_notificationService','_hideTimer','getCellPositionByOffset','onCommandExecuted','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collabStatus.synced','InsertRangeMoveDownCommandId','saveImage','_unitStatus','RevisionService','displayName','ITransformService','show','useObservable','restore','COMPLETION_FINISHED','_hovered','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','override','_initDependencies','replaceState','ALREADY_EXISTS','LICENSE_MAX_UNITS_EXCEEDED','forwardRef','IConfigService','HTTPService','generateRandomId','column','CollaborationUIEventService','focused$','univerjs-icon\x20univerjs-icon-','registerComponent','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','registerDependencies','_sheetSkeletonManagerService','SheetCollabCursorShape','deepClone','APPLY_PERMISSION_DENIED','redoState','xlink:href','1507240arIimE','jsx','LocaleService','NodePositionConvertToCursor','_refreshCollabCursors','top','forEach','setAlpha','_send','collaboration-client.offline-data-not-saved','ColorKit','getColor','clearInterval','_getScale','_httpService','jiqing.500','lineTo','SHEET_VIEWPORT_KEY','_assignedColors','storage','color','session.will-retry','_onRefRangeChange','_entities','session.connection-failed','getSkeleton','OTHER_CLIENT_EDITING','_setupSubUnitSync','_transformUndoRedoStack','_docTransformSelectionsService','YUUMI_SUBSCRIPTION_NOT_FOUND','DataLoaderService','APPLY_REJECT','height','_collaborationController','fromEventSubject','_removeClearOtherTimer','_initResize','with','shareReplay','permission.content','isActive','NOT_FOUND','Warning','Unknown\x20user','RemoteUniscriptService','mergeOverrideWithDependencies','startsWith','SetTextSelectionsOperation','TEXT_RANGE_LAYER_INDEX','_instanceService','assignAColorForMemberID','IUIPartsService','1em','init','rgba(255,\x20255,\x20255,\x200.01)','_transformService','concat','_uiPartsService','DocIMEInputManagerService','length','isEditing','undoState','collabStatus.notCollab'];_0x16e5=function(){return _0x58ca2a;};return _0x16e5();}let Se=class extends a[_0x863d24(0x1a4)]{constructor(_0x37343c,_0x1522c2,_0x265097,_0x5e443d,_0x12238c,_0x1f4fb3,_0x254cc9,_0x176233){const _0x2bd315=_0x863d24;super(),h(this,_0x2bd315(0x1cf),!0x1),h(this,'_init',!0x1),h(this,_0x2bd315(0x39e),new d[(_0x2bd315(0x199))](new Map())),h(this,_0x2bd315(0x38d),this[_0x2bd315(0x39e)][_0x2bd315(0x22f)]()),h(this,_0x2bd315(0x3e4),new d[(_0x2bd315(0x199))]([])),h(this,'roomMembers$',this[_0x2bd315(0x3e4)][_0x2bd315(0x340)](d[_0x2bd315(0x359)](nt))),h(this,_0x2bd315(0x39f),a[_0x2bd315(0x1b6)]((_0x9c7cb4,_0x34d421)=>{const _0x58b551=_0x2bd315,_0x14a29e={'eventID':m[_0x58b551(0x1d1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x58b551(0x1f2)],'memberID':this[_0x58b551(0x19b)][_0x58b551(0x32b)](),'selection':be[_0x58b551(0x31d)](_0x9c7cb4,_0x34d421[_0x58b551(0x203)])}};this[_0x58b551(0x19b)]['send'](_0x14a29e,this['unitID']);},rt)),(this['unitID']=_0x37343c,this[_0x2bd315(0x19b)]=_0x1522c2,this[_0x2bd315(0x2d6)]=_0x265097,this[_0x2bd315(0x3ee)]=_0x5e443d,this['_memberService']=_0x12238c,this[_0x2bd315(0x1b4)]=_0x1f4fb3,this['_commandService']=_0x254cc9,this[_0x2bd315(0x2c2)]=_0x176233);}get[_0x863d24(0x2c3)](){return this['_cursorInfo$']['getValue']();}get[_0x863d24(0x2ef)](){const _0x551fd4=_0x863d24;return this[_0x551fd4(0x3e4)][_0x551fd4(0x3e0)]();}[_0x863d24(0x2c0)](){const _0x18d646=_0x863d24;super[_0x18d646(0x2c0)](),this[_0x18d646(0x39e)][_0x18d646(0x1d6)](new Map()),this[_0x18d646(0x39e)][_0x18d646(0x3f1)](),this[_0x18d646(0x3e4)][_0x18d646(0x1d6)]([]),this[_0x18d646(0x3e4)][_0x18d646(0x3f1)]();}['init'](){const _0x132426=_0x863d24;this[_0x132426(0x3cd)]||(this[_0x132426(0x3cd)]=!0x0,this['_session'][_0x132426(0x2b0)][_0x132426(0x340)](d[_0x132426(0x393)](this[_0x132426(0x1cc)]))[_0x132426(0x1fa)](_0x3ee2a0=>{const _0x493e28=_0x132426;_0x3ee2a0===u[_0x493e28(0x2a9)][_0x493e28(0x344)]?this[_0x493e28(0x3d3)]():this[_0x493e28(0x37e)]();}),this[_0x132426(0x19b)][_0x132426(0x371)][_0x132426(0x340)](d[_0x132426(0x393)](this[_0x132426(0x1cc)]))[_0x132426(0x1fa)](_0x50967b=>{const _0x3eb013=_0x132426,_0x1cb67f=_0x50967b[_0x3eb013(0x31e)];_0x1cb67f===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x3eb013(0x381)](_0x50967b),_0x1cb67f===m['CollaborationEvent'][_0x3eb013(0x36a)]&&this[_0x3eb013(0x338)](_0x50967b);}),this[_0x132426(0x27d)](),this[_0x132426(0x2f3)](this[_0x132426(0x384)][_0x132426(0x242)](_0x2d15de=>{const _0x1c759b=_0x132426;if(this['_online']&&_0x2d15de['id']===g[_0x1c759b(0x3b5)]['id']&&_0x2d15de['params'][_0x1c759b(0x1ad)]===this['unitID']){const _0x4d5566=_0x2d15de[_0x1c759b(0x2b8)];this[_0x1c759b(0x39f)](_0x4d5566['subUnitId'],_0x4d5566[_0x1c759b(0x349)][0x0]);}})));}[_0x863d24(0x381)](_0x3694c0){const _0x33dd00=_0x863d24;var _0x20102c,_0x25c005;const {memberID:_0x5bb264,selection:_0x33f4f7}=_0x3694c0[_0x33dd00(0x21b)],{sheetName:_0x2fd927,range:_0x730b8d}=be[_0x33dd00(0x1ce)](_0x33f4f7),_0x9b6b8={'name':(_0x25c005=(_0x20102c=this[_0x33dd00(0x2de)]['getMember'](this[_0x33dd00(0x1f2)],_0x5bb264))==null?void 0x0:_0x20102c['name'])!=null?_0x25c005:'Unknown\x20user','range':this[_0x33dd00(0x236)](_0x2fd927,_0x730b8d),'sheetID':_0x2fd927,'color':this[_0x33dd00(0x3ee)][_0x33dd00(0x29a)](_0x5bb264),'selection':_0x33f4f7},_0x3733cf=this[_0x33dd00(0x2c3)];_0x3733cf[_0x33dd00(0x3b4)](_0x5bb264,_0x9b6b8),this[_0x33dd00(0x39e)]['next'](_0x3733cf);}[_0x863d24(0x338)](_0x4a3896){const _0x214791=_0x863d24,{memberID:_0x9711d}=_0x4a3896[_0x214791(0x21b)],_0x4869d7=this[_0x214791(0x2c3)];_0x4869d7[_0x214791(0x30a)](_0x9711d),this[_0x214791(0x39e)][_0x214791(0x1d6)](_0x4869d7);}[_0x863d24(0x236)](_0x183251,_0x542b6f){const _0x3f6da7=_0x863d24;var _0x46f8d4,_0xdea52d;const _0x18d9f3=(_0xdea52d=(_0x46f8d4=this[_0x3f6da7(0x1b4)]['getUniverSheetInstance'](this[_0x3f6da7(0x1f2)]))==null?void 0x0:_0x46f8d4[_0x3f6da7(0x212)](_0x183251))==null?void 0x0:_0xdea52d[_0x3f6da7(0x229)]();return(_0x18d9f3==null?void 0x0:_0x18d9f3[_0x3f6da7(0x396)](_0x1b98cb=>a[_0x3f6da7(0x356)]['contains'](_0x1b98cb,_0x542b6f)))||_0x542b6f;}[_0x863d24(0x27d)](){const _0x293328=_0x863d24,_0x5889b4=new a['DisposableCollection'](),_0x5e0ae0=ot(),_0x52b9aa=()=>{const _0x57fa95=_0x4e19;_0x5889b4['dispose']();const _0x47c624=(_0x26df2f,_0xd75ecd,_0x490933,_0x454181)=>{const _0x1310ca=_0x4e19;let _0x333774=[];switch(_0x26df2f['id']){case g[_0x1310ca(0x3ec)]['DeleteRangeMoveLeftCommandId']:{_0x333774=g['handleDeleteRangeMoveLeft'](_0x26df2f,_0x454181);break;}case g[_0x1310ca(0x3ec)][_0x1310ca(0x3db)]:{_0x333774=g[_0x1310ca(0x400)](_0x26df2f,_0x454181);break;}case g[_0x1310ca(0x3ec)]['InsertColCommandId']:{_0x333774=g['handleInsertCol'](_0x26df2f,_0x454181);break;}case g[_0x1310ca(0x3ec)][_0x1310ca(0x245)]:{_0x333774=g[_0x1310ca(0x3a0)](_0x26df2f,_0x454181);break;}case g['EffectRefRangId'][_0x1310ca(0x23a)]:{_0x333774=g[_0x1310ca(0x3bf)](_0x26df2f,_0x454181);break;}case g[_0x1310ca(0x3ec)][_0x1310ca(0x1bb)]:{_0x333774=g['handleInsertRow'](_0x26df2f,_0x454181);break;}case g['EffectRefRangId'][_0x1310ca(0x2be)]:{_0x333774=g['handleMoveRange'](_0x26df2f,_0x454181);break;}case g[_0x1310ca(0x3ec)][_0x1310ca(0x397)]:{_0x333774=g[_0x1310ca(0x332)](_0x26df2f,_0x454181);break;}case g[_0x1310ca(0x3ec)][_0x1310ca(0x2c9)]:{_0x333774=g['handleIRemoveRow'](_0x26df2f,_0x454181);break;}}const _0x13f395=g['runRefRangeMutations'](_0x333774,_0x454181),_0x579e53=this[_0x1310ca(0x2c3)][_0x1310ca(0x1d2)](_0xd75ecd);if(_0x579e53&&_0x13f395){const _0xfe2b5={..._0x579e53,'range':_0x13f395};this[_0x1310ca(0x2c3)][_0x1310ca(0x3b4)](_0xd75ecd,_0xfe2b5),_0x5e0ae0(()=>{const _0x2ef04f=_0x1310ca,_0x489bac=this['_refRangeService'][_0x2ef04f(0x2c6)](_0x13f395,_0x509e3f=>(_0x489bac[_0x2ef04f(0x2c0)](),_0x47c624(_0x509e3f,_0xd75ecd,_0x490933,_0x13f395)));_0x5889b4[_0x2ef04f(0x3c9)](_0x489bac);});}return{'redos':[],'undos':[]};};this[_0x57fa95(0x2c3)][_0x57fa95(0x26d)]((_0x33b4ee,_0x140d0f)=>{const _0x5a8486=_0x57fa95,{range:_0x27af71,sheetID:_0x706add}=_0x33b4ee,_0x175e97=this[_0x5a8486(0x2c2)][_0x5a8486(0x2c6)](_0x27af71,_0x318ab9=>(_0x175e97[_0x5a8486(0x2c0)](),_0x47c624(_0x318ab9,_0x140d0f,_0x706add,_0x27af71)));_0x5889b4[_0x5a8486(0x3c9)](_0x175e97);});};this[_0x293328(0x2f3)](a[_0x293328(0x2e0)](this[_0x293328(0x39e)]['subscribe'](()=>{_0x52b9aa();})));}[_0x863d24(0x3d3)](){const _0x4e3195=_0x863d24;var _0x28b019,_0x4c3361;if(this[_0x4e3195(0x1cf)]=!0x0,((_0x28b019=this[_0x4e3195(0x1b4)][_0x4e3195(0x2af)]())==null?void 0x0:_0x28b019['getUnitId']())!==this[_0x4e3195(0x1f2)])return;const _0x4f76de=(_0x4c3361=this[_0x4e3195(0x2d6)]['get'](g[_0x4e3195(0x2db)])['getCurrentSelections']())==null?void 0x0:_0x4c3361[0x0],_0x182f86=this[_0x4e3195(0x1b4)][_0x4e3195(0x33c)](a[_0x4e3195(0x2d8)][_0x4e3195(0x3b3)])['getActiveSheet']();_0x4f76de&&_0x182f86&&this[_0x4e3195(0x39f)](_0x182f86['getSheetId'](),_0x4f76de);}[_0x863d24(0x37e)](){const _0x256b73=_0x863d24;this[_0x256b73(0x1cf)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x863d24(0x401)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x863d24(0x37c)](u[_0x863d24(0x20f)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x863d24(0x343)]),A(0x7,a[_0x863d24(0x37c)](g[_0x863d24(0x348)]))],Se);var at=Object[_0x863d24(0x2b7)],ct=(_0x1dd2b9,_0x23c0e3,_0x460e1d,_0x48217b)=>{const _0x1842f6=_0x863d24;for(var _0x2eae78=_0x48217b>0x1?void 0x0:_0x48217b?at(_0x23c0e3,_0x460e1d):_0x23c0e3,_0x184a21=_0x1dd2b9[_0x1842f6(0x2a3)]-0x1,_0x30ad93;_0x184a21>=0x0;_0x184a21--)(_0x30ad93=_0x1dd2b9[_0x184a21])&&(_0x2eae78=_0x30ad93(_0x2eae78)||_0x2eae78);return _0x2eae78;},ie=(_0x5ae697,_0x515370)=>(_0x12e1d9,_0x69414a)=>_0x515370(_0x12e1d9,_0x69414a,_0x5ae697);let x=class extends a[_0x863d24(0x1a4)]{constructor(_0x5d475a,_0x14e544,_0x1ca1eb){const _0x4a4716=_0x863d24;super(),h(this,_0x4a4716(0x27e),new Map()),h(this,_0x4a4716(0x215),new d['Subject']()),(this[_0x4a4716(0x1b4)]=_0x5d475a,this[_0x4a4716(0x2d6)]=_0x14e544,this['_collabSessionService']=_0x1ca1eb,this['_init']());}[_0x863d24(0x2c0)](){const _0x3837d=_0x863d24;super[_0x3837d(0x2c0)](),this[_0x3837d(0x215)]['complete'](),this[_0x3837d(0x27e)][_0x3837d(0x26d)](_0x292985=>_0x292985[_0x3837d(0x2c0)]());}[_0x863d24(0x361)](_0x3815fb){const _0x1f85f6=_0x863d24;return this[_0x1f85f6(0x27e)][_0x1f85f6(0x1a9)](_0x3815fb)?this[_0x1f85f6(0x27e)]['get'](_0x3815fb)['cursorInfo$']:this['_entityInit$'][_0x1f85f6(0x340)](d[_0x1f85f6(0x38c)](_0x50942f=>_0x50942f['unitID']===_0x3815fb),d[_0x1f85f6(0x1c8)](_0x1449a9=>_0x1449a9[_0x1f85f6(0x38d)]));}['_init'](){const _0x18c6d8=_0x863d24;this['_univerInstanceService'][_0x18c6d8(0x311)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](d[_0x18c6d8(0x393)](this[_0x18c6d8(0x1cc)]))[_0x18c6d8(0x1fa)](async _0x1698b5=>{const _0x114a19=_0x18c6d8,_0x38362f=_0x1698b5[_0x114a19(0x1ef)](),_0x1c3580=await this[_0x114a19(0x2e7)](_0x38362f);this[_0x114a19(0x215)][_0x114a19(0x1d6)](_0x1c3580),this[_0x114a19(0x27e)][_0x114a19(0x3b4)](_0x38362f,_0x1c3580);}),this[_0x18c6d8(0x1b4)][_0x18c6d8(0x311)](a[_0x18c6d8(0x2d8)][_0x18c6d8(0x1d7)])[_0x18c6d8(0x340)](d['takeUntil'](this[_0x18c6d8(0x1cc)]))[_0x18c6d8(0x340)](d[_0x18c6d8(0x38c)](_0x56faa8=>!_0x56faa8[_0x18c6d8(0x1ef)]()[_0x18c6d8(0x296)]('__')))[_0x18c6d8(0x1fa)](async _0x413542=>{const _0x12e99b=_0x18c6d8,_0x1aca1f=_0x413542[_0x12e99b(0x1ef)](),_0x11e04e=await this[_0x12e99b(0x362)](_0x1aca1f);this[_0x12e99b(0x215)]['next'](_0x11e04e),this[_0x12e99b(0x27e)][_0x12e99b(0x3b4)](_0x1aca1f,_0x11e04e);}),d[_0x18c6d8(0x3a7)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x18c6d8(0x1f7)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d['takeUntil'](this[_0x18c6d8(0x1cc)]))[_0x18c6d8(0x1fa)](_0x422bd2=>{const _0xff2f7=_0x18c6d8,_0x57ca33=_0x422bd2[_0xff2f7(0x1ef)](),_0x308a7b=this[_0xff2f7(0x27e)][_0xff2f7(0x1d2)](_0x57ca33);_0x308a7b&&(_0x308a7b['dispose'](),this[_0xff2f7(0x27e)][_0xff2f7(0x30a)](_0x57ca33));});}async[_0x863d24(0x2e7)](_0x28b273){const _0x4f6eb1=_0x863d24,_0x299b18=await this[_0x4f6eb1(0x32c)][_0x4f6eb1(0x1fe)](_0x28b273),_0xb7594=this[_0x4f6eb1(0x2d6)]['createInstance'](Se,_0x28b273,_0x299b18);return _0xb7594[_0x4f6eb1(0x29d)](),_0xb7594;}async[_0x863d24(0x362)](_0x353fe3){const _0x3dc89a=_0x863d24,_0x5b17b8=await this[_0x3dc89a(0x32c)]['requireSession'](_0x353fe3),_0x149e27=this['_injector'][_0x3dc89a(0x3c2)](Ie,_0x353fe3,_0x5b17b8);return _0x149e27['init'](),_0x149e27;}};x=ct([ie(0x0,a[_0x863d24(0x1c1)]),ie(0x1,a[_0x863d24(0x37c)](a[_0x863d24(0x401)])),ie(0x2,a[_0x863d24(0x37c)](u[_0x863d24(0x3b6)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x128c10,_0x370c33){const _0x5a66f5=_0x863d24;let {radius:_0x39f77e,width:_0x4b3deb,height:_0x285a75}=_0x370c33;_0x39f77e=_0x39f77e!=null?_0x39f77e:0x0,_0x4b3deb=_0x4b3deb!=null?_0x4b3deb:0x1e,_0x285a75=_0x285a75!=null?_0x285a75:0x1e;let _0x329029=0x0,_0x20c22a=0x0,_0x2d2131=0x0;_0x329029=_0x20c22a=_0x2d2131=Math[_0x5a66f5(0x3b7)](_0x39f77e,_0x4b3deb/0x2,_0x285a75/0x2),_0x128c10[_0x5a66f5(0x392)](),_0x128c10[_0x5a66f5(0x2f1)](_0x329029,0x0),_0x128c10[_0x5a66f5(0x277)](_0x4b3deb-_0x20c22a,0x0),_0x128c10[_0x5a66f5(0x3c5)](_0x4b3deb-_0x20c22a,_0x20c22a,_0x20c22a,Math['PI']*0x3/0x2,0x0,!0x1),_0x128c10[_0x5a66f5(0x277)](_0x4b3deb,_0x285a75-_0x2d2131),_0x128c10[_0x5a66f5(0x3c5)](_0x4b3deb-_0x2d2131,_0x285a75-_0x2d2131,_0x2d2131,0x0,Math['PI']/0x2,!0x1),_0x128c10[_0x5a66f5(0x277)](0x0,_0x285a75),_0x128c10[_0x5a66f5(0x277)](0x0,_0x329029),_0x128c10['arc'](_0x329029,_0x329029,_0x329029,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x128c10[_0x5a66f5(0x20b)](),_0x370c33[_0x5a66f5(0x213)]&&(_0x128c10[_0x5a66f5(0x405)](),_0x128c10[_0x5a66f5(0x35c)]=_0x370c33[_0x5a66f5(0x213)],_0x370c33[_0x5a66f5(0x2d1)]===_0x5a66f5(0x192)?_0x128c10[_0x5a66f5(0x213)](_0x5a66f5(0x192)):_0x128c10[_0x5a66f5(0x213)](),_0x128c10[_0x5a66f5(0x24d)]());}class ee extends p[_0x863d24(0x3eb)]{constructor(_0x24cf18,_0xf199b7){const _0x4ceb1c=_0x863d24;super(_0x24cf18,_0xf199b7),h(this,'color'),h(this,_0x4ceb1c(0x35e)),(this[_0x4ceb1c(0x27b)]=_0xf199b7==null?void 0x0:_0xf199b7[_0x4ceb1c(0x27b)],this[_0x4ceb1c(0x35e)]=_0xf199b7==null?void 0x0:_0xf199b7[_0x4ceb1c(0x35e)]);}static[_0x863d24(0x2fd)](_0x319fc4,_0x23ea6f){const _0xed5e7d=_0x863d24,{text:_0x33f1df,color:_0x3ce51e}=_0x23ea6f;_0x319fc4[_0xed5e7d(0x405)](),_0x319fc4[_0xed5e7d(0x379)]=_0xed5e7d(0x1fb);const _0x1506d=_0x319fc4[_0xed5e7d(0x3c8)](_0x33f1df)[_0xed5e7d(0x358)],_0x4f8204=Math['min'](_0x1506d+0x2*ne,Re);_t(_0x319fc4,{'height':K,'radius':0x4,'width':_0x4f8204,'fill':_0x3ce51e}),_0x319fc4['fillStyle']='#FFF';const _0x4d8bd6=ne,_0x101a29=K-lt,_0x2d68c9=Re-0x2*ne;if(_0x1506d>_0x2d68c9){let _0x4eb38b='',_0x418c69=0x0;for(const _0x2b55e9 of _0x33f1df){const _0x1928eb=_0x319fc4[_0xed5e7d(0x3c8)](_0x2b55e9)[_0xed5e7d(0x358)];if(_0x418c69+_0x1928eb<=_0x2d68c9-_0x319fc4[_0xed5e7d(0x3c8)]('...')['width'])_0x4eb38b+=_0x2b55e9,_0x418c69+=_0x1928eb;else{_0x4eb38b+=_0xed5e7d(0x2ad);break;}}_0x319fc4[_0xed5e7d(0x31f)](_0x4eb38b,_0x4d8bd6,_0x101a29);}else _0x319fc4[_0xed5e7d(0x31f)](_0x33f1df,_0x4d8bd6,_0x101a29);_0x319fc4['restore']();}[_0x863d24(0x1da)](_0x2581e2){const _0x3d8861=_0x863d24;ee[_0x3d8861(0x2fd)](_0x2581e2,this);}}const re=_0x863d24(0x2b4),ht='collab-text-range-',ut=_0x863d24(0x3c4),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x863d24(0x29e);class De{constructor(_0x580729,_0xf3a1cb,_0x440b7e,_0x4277c5){const _0x273e73=_0x863d24;h(this,_0x273e73(0x220),[]),h(this,_0x273e73(0x3d8),null),h(this,_0x273e73(0x1c3),null),h(this,_0x273e73(0x33b),null),h(this,_0x273e73(0x240),null),h(this,_0x273e73(0x1ed),null),(this[_0x273e73(0x367)]=_0x580729,this[_0x273e73(0x3a2)]=_0xf3a1cb,this[_0x273e73(0x2ee)]=_0x440b7e,this[_0x273e73(0x2d5)]=_0x4277c5,this[_0x273e73(0x387)]());}set[_0x863d24(0x3b1)](_0x4237ff){const _0x56c1ef=_0x863d24;_0x4237ff?(this[_0x56c1ef(0x33b)]&&this[_0x56c1ef(0x33b)]['hide'](),this[_0x56c1ef(0x1c3)]&&this[_0x56c1ef(0x1c3)][_0x56c1ef(0x24b)]()):(this[_0x56c1ef(0x33b)]&&this['_anchorDot'][_0x56c1ef(0x24b)](),this[_0x56c1ef(0x1c3)]&&this[_0x56c1ef(0x1c3)]['hide']());}[_0x863d24(0x2c0)](){const _0x26cff0=_0x863d24;for(const _0x3625c9 of this[_0x26cff0(0x220)])_0x3625c9[_0x26cff0(0x2c0)]();this[_0x26cff0(0x1c3)]&&this[_0x26cff0(0x1c3)][_0x26cff0(0x2c0)](),this['_anchorDot']&&this['_anchorDot'][_0x26cff0(0x2c0)](),this[_0x26cff0(0x3d8)]&&this[_0x26cff0(0x3d8)][_0x26cff0(0x2c0)](),this[_0x26cff0(0x1ed)]&&this[_0x26cff0(0x1ed)]();}[_0x863d24(0x387)](){const _0x5a4d6f=_0x863d24;var _0x51eab8;const {_docSkeleton:_0x24c4b4,_document:_0x151c93}=this,{color:_0x199e1a,name:_0x5652f6,ranges:_0x384348}=this[_0x5a4d6f(0x367)],_0x3e64e0=_0x151c93['getOffsetConfig'](),{docsLeft:_0xcb9f4a,docsTop:_0x1d4db6}=_0x3e64e0,_0x4c35fe=new E[(_0x5a4d6f(0x26a))](_0x3e64e0,_0x24c4b4);for(const {startOffset:_0x5e4cfc,endOffset:_0x46bae0,rangeType:_0x23abd7,segmentId:_0x58278f,segmentPage:_0x4dd9a7,collapsed:_0x4b2097,isActive:_0x24bc9d}of _0x384348){const _0x4f1e48=_0x24c4b4[_0x5a4d6f(0x36b)](_0x5e4cfc,!0x0,_0x58278f,_0x4dd9a7);let _0x1b6cde=_0x24c4b4[_0x5a4d6f(0x36b)](_0x46bae0,!0x0,_0x58278f,_0x4dd9a7);if(_0x1b6cde==null&&(_0x1b6cde=_0x24c4b4[_0x5a4d6f(0x36b)](_0x46bae0-0x1,!0x1,_0x58278f,_0x4dd9a7)),_0x24bc9d){const {contentBoxPointGroup:_0x41d895}=_0x4c35fe[_0x5a4d6f(0x20e)](_0x1b6cde,_0x1b6cde);if(_0x41d895[_0x5a4d6f(0x2a3)]===0x0)continue;this[_0x5a4d6f(0x194)](_0x199e1a,_0x41d895,_0xcb9f4a,_0x1d4db6,_0x5652f6),this[_0x5a4d6f(0x1ed)]=this['_handleHover']();}if(_0x4f1e48&&_0x1b6cde){if(_0x23abd7===a['DOC_RANGE_TYPE'][_0x5a4d6f(0x30e)]){const _0x3b2ab3=new E[(_0x5a4d6f(0x329))](_0x3e64e0,_0x24c4b4),{pointGroup:_0x154658}=(_0x51eab8=_0x3b2ab3[_0x5a4d6f(0x20e)](_0x4f1e48,_0x1b6cde))!=null?_0x51eab8:{};if(_0x154658==null||_0x154658['length']===0x0)continue;this[_0x5a4d6f(0x3c1)](_0x199e1a,_0x154658,_0xcb9f4a,_0x1d4db6);}else{if(!_0x4b2097){const {borderBoxPointGroup:_0x4f6f52}=_0x4c35fe[_0x5a4d6f(0x20e)](_0x4f1e48,_0x1b6cde);if(_0x4f6f52[_0x5a4d6f(0x2a3)]===0x0)continue;this[_0x5a4d6f(0x3d5)](_0x199e1a,_0x4f6f52,_0xcb9f4a,_0x1d4db6);}}}}}['_drawAnchor'](_0x1cf59f,_0x4359e5,_0x22fd0b,_0x1e2af0,_0x369517){const _0x5e8578=_0x863d24,_0x5b2555=this[_0x5e8578(0x308)](_0x4359e5),{left:_0x2997ab,top:_0x451d82,height:_0xd831ac}=_0x5b2555,_0x3c5ccb=this['_getScale'](),_0x2a16ed=It/_0x3c5ccb,_0x927226=new p[(_0x5e8578(0x3bb))](re+a[_0x5e8578(0x3d1)][_0x5e8578(0x259)](k),{'left':_0x2997ab+_0x22fd0b-_0x2a16ed,'top':_0x451d82+_0x1e2af0,'height':_0xd831ac,'width':dt,'fill':_0x1cf59f||p['getColor'](a[_0x5e8578(0x3af)][_0x5e8578(0x1d4)],0x0),'strokeWidth':_0x2a16ed,'stroke':St,'evented':!0x0});this[_0x5e8578(0x3d8)]=_0x927226,this['_scene'][_0x5e8578(0x331)](_0x927226,E[_0x5e8578(0x298)]);const _0x1aa52b=new p[(_0x5e8578(0x3bb))](re+a[_0x5e8578(0x3d1)][_0x5e8578(0x259)](k),{'left':_0x2997ab+_0x22fd0b-_0x2a16ed,'top':_0x451d82+_0x1e2af0-oe/0x2,'height':oe,'width':oe,'fill':_0x1cf59f||p['getColor'](a[_0x5e8578(0x3af)][_0x5e8578(0x1d4)],0x0),'strokeWidth':0x0,'stroke':_0x1cf59f||p[_0x5e8578(0x272)](a[_0x5e8578(0x3af)]['black'],0x0),'evented':!0x1});this[_0x5e8578(0x33b)]=_0x1aa52b,this[_0x5e8578(0x3a2)][_0x5e8578(0x331)](_0x1aa52b,E['TEXT_RANGE_LAYER_INDEX']);const _0x2d82e4=new ee(re+a[_0x5e8578(0x3d1)][_0x5e8578(0x259)](k),{'left':_0x2997ab+_0x22fd0b-_0x2a16ed,'top':_0x451d82+_0x1e2af0-K,'text':_0x369517,'color':_0x1cf59f});this['_textBubble']=_0x2d82e4,this[_0x5e8578(0x3a2)]['addObject'](_0x2d82e4,E[_0x5e8578(0x298)]),this['_hover']=!0x1;}[_0x863d24(0x39b)](){const _0x4591f4=_0x863d24,_0x2e1810=this[_0x4591f4(0x3d8)][_0x4591f4(0x1dc)][_0x4591f4(0x218)](()=>{const _0x49c358=_0x4591f4;this[_0x49c358(0x3b1)]=!0x0;}),_0x314df2=this[_0x4591f4(0x3d8)][_0x4591f4(0x37f)][_0x4591f4(0x218)](()=>{const _0x4c63e1=_0x4591f4;this[_0x4c63e1(0x240)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x504d82=_0x4c63e1;this[_0x504d82(0x3b1)]=!0x1;},0x7d0);});return()=>{const _0x2562b0=_0x4591f4;_0x2e1810[_0x2562b0(0x1a5)](),_0x314df2['unsubscribe']();};}[_0x863d24(0x3d5)](_0x258f50,_0x3f6766,_0x3720df,_0x51406a){const _0x4601ef=_0x863d24,_0x490e07=new a['ColorKit'](_0x258f50)[_0x4601ef(0x26e)](0.2)[_0x4601ef(0x3d9)](),_0x215d3b=new p['RegularPolygon'](ht+a[_0x4601ef(0x3d1)][_0x4601ef(0x259)](k),{'pointsGroup':_0x3f6766,'fill':_0x490e07||p[_0x4601ef(0x272)](a['COLORS'][_0x4601ef(0x1d4)],0.2),'left':_0x3720df,'top':_0x51406a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4601ef(0x220)]['push'](_0x215d3b),this['_scene'][_0x4601ef(0x331)](_0x215d3b,E[_0x4601ef(0x298)]);}[_0x863d24(0x3c1)](_0x11061a,_0x49d803,_0x5dddaf,_0x303d0e){const _0x484ebd=_0x863d24,_0x5963fe=new a[(_0x484ebd(0x271))](_0x11061a)[_0x484ebd(0x26e)](0.2)['toRgbString'](),_0x45e81e=new p[(_0x484ebd(0x3f4))](ut+a[_0x484ebd(0x3d1)]['generateRandomId'](k),{'pointsGroup':_0x49d803,'fill':_0x5963fe||p[_0x484ebd(0x272)](a[_0x484ebd(0x3af)][_0x484ebd(0x1d4)],0.2),'left':_0x5dddaf,'top':_0x303d0e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x484ebd(0x220)][_0x484ebd(0x34e)](_0x45e81e),this[_0x484ebd(0x3a2)][_0x484ebd(0x331)](_0x45e81e,E[_0x484ebd(0x298)]);}[_0x863d24(0x308)](_0x24b640){const _0x3de366=_0x24b640[0x0],_0x342b1b=_0x3de366[0x0],_0x182ba7=_0x3de366[0x2],{x:_0xa7840d,y:_0x566385}=_0x342b1b,{x:_0x25790a,y:_0x21e921}=_0x182ba7;return{'left':_0xa7840d,'top':_0x566385,'width':_0x25790a-_0xa7840d,'height':_0x21e921-_0x566385};}[_0x863d24(0x274)](){const _0x28a6d6=_0x863d24,{scaleX:_0xb0ffc5,scaleY:_0x3348b1}=this[_0x28a6d6(0x3a2)][_0x28a6d6(0x3cb)]();return Math[_0x28a6d6(0x2f8)](_0xb0ffc5,_0x3348b1);}}var ft=Object[_0x863d24(0x2b7)],vt=(_0x3285f6,_0x2ef12,_0x57d866,_0x2e2501)=>{const _0x2233fe=_0x863d24;for(var _0x24d117=_0x2e2501>0x1?void 0x0:_0x2e2501?ft(_0x2ef12,_0x57d866):_0x2ef12,_0x903d7a=_0x3285f6[_0x2233fe(0x2a3)]-0x1,_0x2f423d;_0x903d7a>=0x0;_0x903d7a--)(_0x2f423d=_0x3285f6[_0x903d7a])&&(_0x24d117=_0x2f423d(_0x24d117)||_0x24d117);return _0x24d117;},W=(_0x5e9697,_0x47e0d8)=>(_0x5d3ecf,_0x2ae74a)=>_0x47e0d8(_0x5d3ecf,_0x2ae74a,_0x5e9697);let fe=class extends a[_0x863d24(0x1a4)]{constructor(_0x5ba950,_0x138ebe,_0x5873da,_0x1d1d48,_0x3f640e){const _0x6ccb09=_0x863d24;super(),h(this,_0x6ccb09(0x369),[]),h(this,_0x6ccb09(0x30c),[]),(this[_0x6ccb09(0x1af)]=_0x5ba950,this[_0x6ccb09(0x1ee)]=_0x138ebe,this[_0x6ccb09(0x337)]=_0x5873da,this[_0x6ccb09(0x384)]=_0x1d1d48,this[_0x6ccb09(0x3ff)]=_0x3f640e,this[_0x6ccb09(0x3cd)]());}[_0x863d24(0x3cd)](){const _0x2b68cb=_0x863d24,_0x30e005=this[_0x2b68cb(0x1af)][_0x2b68cb(0x1ad)],_0x11a9c0=this[_0x2b68cb(0x1ee)];this[_0x2b68cb(0x2f3)](d[_0x2b68cb(0x390)]([this[_0x2b68cb(0x337)][_0x2b68cb(0x361)](_0x30e005),this[_0x2b68cb(0x3ff)][_0x2b68cb(0x2e1)]])[_0x2b68cb(0x340)]($[_0x2b68cb(0x2b5)](([_0x2a84c7,_0x2d1711])=>({'skeleton':_0x11a9c0[_0x2b68cb(0x280)](),'cursors':[..._0x2a84c7[_0x2b68cb(0x2bc)]()][_0x2b68cb(0x210)](_0x2cab40=>({..._0x2cab40,'color':this[_0x2b68cb(0x3ff)][_0x2b68cb(0x303)](_0x2cab40[_0x2b68cb(0x27b)])}))})))[_0x2b68cb(0x1fa)](_0x596d86=>{const _0x41e99c=_0x2b68cb;if(this[_0x41e99c(0x3de)](),_0x596d86){const {skeleton:_0x3b2e36,cursors:_0x583b0c}=_0x596d86;this[_0x41e99c(0x30b)](_0x3b2e36,_0x583b0c);}})),this[_0x2b68cb(0x28c)](),this['_initCommandExecutedListener']();}[_0x863d24(0x30b)](_0x40ef34,_0x31fed4){const _0x30aee6=_0x863d24,{scene:_0x57547e,mainComponent:_0x31616e}=this[_0x30aee6(0x1af)],_0x5a3e69=_0x31fed4[_0x30aee6(0x2b5)](_0x5c5fac=>new De(_0x5c5fac,_0x57547e,_0x40ef34,_0x31616e));this['_cursorShapes']=_0x5a3e69,this[_0x30aee6(0x30c)]=_0x31fed4;}[_0x863d24(0x26b)](){const _0x308ae9=_0x863d24;this['_removeCollabCursors']();const {scene:_0x1e4e82,mainComponent:_0x4f6119}=this[_0x308ae9(0x1af)],_0x185ab7=this['_docSkeletonManagerService'][_0x308ae9(0x280)](),_0x4161f1=this[_0x308ae9(0x30c)]['map'](_0x369c4e=>new De(_0x369c4e,_0x1e4e82,_0x185ab7,_0x4f6119));this['_cursorShapes']=_0x4161f1;}[_0x863d24(0x3de)](){const _0x5d6258=_0x863d24;this[_0x5d6258(0x369)][_0x5d6258(0x26d)](_0x18ac40=>_0x18ac40[_0x5d6258(0x2c0)]()),this[_0x5d6258(0x369)]=[];}[_0x863d24(0x319)](){const _0x31da90=_0x863d24,_0x4a5ec3=[E[_0x31da90(0x364)]['id']];this[_0x31da90(0x2f3)](this[_0x31da90(0x384)][_0x31da90(0x242)](_0xe7314=>{const _0x5241f4=_0x31da90;_0x4a5ec3[_0x5241f4(0x2c7)](_0xe7314['id'])&&_0xe7314[_0x5241f4(0x2b8)][_0x5241f4(0x1ad)]===this[_0x5241f4(0x1af)]['unitId']&&this[_0x5241f4(0x26b)]();}));}[_0x863d24(0x28c)](){const _0x3affb3=_0x863d24;this[_0x3affb3(0x2f3)](a[_0x3affb3(0x28a)](this[_0x3affb3(0x1af)]['engine']['onTransformChange$'])['pipe']($[_0x3affb3(0x38c)](_0x3c4915=>_0x3c4915[_0x3affb3(0x357)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$['throttleTime'](0x10))[_0x3affb3(0x1fa)](()=>{const _0x55a6e0=_0x3affb3;this[_0x55a6e0(0x26b)]();}));}};fe=vt([W(0x1,a[_0x863d24(0x37c)](Y[_0x863d24(0x221)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x863d24(0x343)]),W(0x4,a[_0x863d24(0x37c)](a['ThemeService']))],fe);const gt=0x1,mt=1.5;class we extends p[_0x863d24(0x3eb)]{constructor(_0x4c799e,_0x16dc24){const _0x379e89=_0x863d24;super(_0x4c799e,_0x16dc24),h(this,_0x379e89(0x382)),h(this,_0x379e89(0x24f),!0x1),h(this,_0x379e89(0x1ab)),h(this,_0x379e89(0x406),''),h(this,_0x379e89(0x18e),_0x379e89(0x26c)),h(this,_0x379e89(0x3bc)),(_0x16dc24&&this['setShapeProps'](_0x16dc24),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x379e89(0x37f)][_0x379e89(0x218)](()=>this[_0x379e89(0x3be)]({'hovered':!0x1})));}[_0x863d24(0x3be)](_0xa3dff3){const _0x150348=_0x863d24;var _0xf2b24a,_0x2c5530,_0x415dd2,_0x57a0db,_0x9066d9,_0x23498e;this[_0x150348(0x382)]=(_0xf2b24a=_0xa3dff3[_0x150348(0x27b)])!=null?_0xf2b24a:this[_0x150348(0x382)],this[_0x150348(0x24f)]=(_0x2c5530=_0xa3dff3['hovered'])!=null?_0x2c5530:this[_0x150348(0x24f)],this[_0x150348(0x1ab)]=(_0x415dd2=_0xa3dff3['range'])!=null?_0x415dd2:this[_0x150348(0x1ab)],this[_0x150348(0x406)]=(_0x57a0db=_0xa3dff3[_0x150348(0x3fd)])!=null?_0x57a0db:this['_name'],this[_0x150348(0x18e)]=(_0x9066d9=_0xa3dff3[_0x150348(0x2d3)])!=null?_0x9066d9:this[_0x150348(0x18e)],this[_0x150348(0x3bc)]=(_0x23498e=_0xa3dff3['backgroundColor'])!=null?_0x23498e:this[_0x150348(0x3bc)],this[_0x150348(0x202)]({'width':_0xa3dff3[_0x150348(0x358)],'height':_0xa3dff3[_0x150348(0x288)]});}['onMouseMove'](_0x12e3ba){const _0x21357c=_0x863d24,{row:_0x236663,column:_0x28b7e6}=_0x12e3ba;if(_0x236663>=this[_0x21357c(0x1ab)][_0x21357c(0x1e1)]&&_0x236663<=this[_0x21357c(0x1ab)][_0x21357c(0x360)]&&_0x28b7e6>=this[_0x21357c(0x1ab)][_0x21357c(0x36f)]&&_0x28b7e6<=this[_0x21357c(0x1ab)][_0x21357c(0x30d)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x21357c(0x3be)]({'hovered':!0x1});}[_0x863d24(0x35a)](_0x2531a3){return!0x1;}[_0x863d24(0x1da)](_0x36cda5){const _0x9d5254=_0x863d24;p[_0x9d5254(0x3bb)]['drawWith'](_0x36cda5,{'width':this[_0x9d5254(0x358)],'height':this[_0x9d5254(0x288)],'strokeWidth':mt,'stroke':this[_0x9d5254(0x382)],'evented':!0x1,'fill':this[_0x9d5254(0x3bc)]}),this[_0x9d5254(0x24f)]&&(_0x36cda5[_0x9d5254(0x405)](),_0x36cda5[_0x9d5254(0x1c7)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x9d5254(0x345)?0x0:-0x14),ee[_0x9d5254(0x2fd)](_0x36cda5,{'text':this['_name'],'color':this[_0x9d5254(0x382)]}),_0x36cda5['restore']());}}var Ct=Object[_0x863d24(0x2b7)],pt=(_0x50ae5c,_0x9a344e,_0x5e25dd,_0x4a147b)=>{const _0x548dac=_0x863d24;for(var _0x2d940c=_0x4a147b>0x1?void 0x0:_0x4a147b?Ct(_0x9a344e,_0x5e25dd):_0x9a344e,_0x1b4348=_0x50ae5c[_0x548dac(0x2a3)]-0x1,_0x4b6ea3;_0x1b4348>=0x0;_0x1b4348--)(_0x4b6ea3=_0x50ae5c[_0x1b4348])&&(_0x2d940c=_0x4b6ea3(_0x2d940c)||_0x2d940c);return _0x2d940c;},ae=(_0x38cd88,_0x5ca282)=>(_0x48ff3e,_0x5286cb)=>_0x5ca282(_0x48ff3e,_0x5286cb,_0x38cd88);const Et=0x1389;let ve=class extends a[_0x863d24(0x1a4)]{constructor(_0x5cf229,_0x168df2,_0x5b0110,_0x42cd9b){const _0x26d3e1=_0x863d24;super(),h(this,'_cursors',new Set()),h(this,_0x26d3e1(0x380),null),(this[_0x26d3e1(0x1af)]=_0x5cf229,this[_0x26d3e1(0x261)]=_0x168df2,this[_0x26d3e1(0x337)]=_0x5b0110,this[_0x26d3e1(0x3ff)]=_0x42cd9b,this['_init']());}['_init'](){const _0x26c490=_0x863d24;this[_0x26c490(0x261)][_0x26c490(0x32a)]['pipe']($[_0x26c490(0x393)](this['dispose$']),$['switchMap'](_0x3a0845=>{const _0x4825a1=_0x26c490;if(_0x3a0845){const _0x430e59=_0x3a0845[_0x4825a1(0x3ea)];return d[_0x4825a1(0x390)](this[_0x4825a1(0x337)][_0x4825a1(0x361)](this[_0x4825a1(0x1af)][_0x4825a1(0x1ad)]),this[_0x4825a1(0x3ff)][_0x4825a1(0x2e1)])[_0x4825a1(0x340)]($['map'](([_0x47669b,_0x5d8ff9])=>{const _0x186436=_0x4825a1,_0x10b7f4=new Map();return _0x47669b[_0x186436(0x26d)]((_0x32c5e2,_0x1d48ba)=>{const _0x2d6b2a=_0x186436;if(_0x32c5e2['sheetID']===_0x430e59){const _0x506eb5={..._0x32c5e2};_0x506eb5['color']=this[_0x2d6b2a(0x3ff)][_0x2d6b2a(0x303)](_0x32c5e2[_0x2d6b2a(0x27b)]),_0x10b7f4[_0x2d6b2a(0x3b4)](_0x1d48ba,_0x506eb5);}}),{'skeleton':_0x3a0845,'cursors':_0x10b7f4};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x26c490(0x1fa)](({skeleton:_0x2b4d6a,cursors:_0x353204})=>{const _0x2dc2f3=_0x26c490;this['_removeCollabCursors'](),_0x2b4d6a&&this[_0x2dc2f3(0x30b)](_0x2b4d6a,_0x353204);}),this[_0x26c490(0x261)][_0x26c490(0x32a)]['subscribe'](_0x597474=>{const _0x3c2eae=_0x26c490;if(_0x597474==null)return;const {skeleton:_0x39d831}=_0x597474,{scene:_0x20601e}=this[_0x3c2eae(0x1af)];_0x20601e['onPointerMove$']['subscribeEvent'](a[_0x3c2eae(0x1b6)](_0x179bcf=>{const _0x527ead=_0x3c2eae;var _0x206681,_0x381ce7;const {offsetX:_0xd7f224,offsetY:_0x2d3184}=_0x179bcf,{x:_0x4901cc,y:_0x3a0ea9}=_0x20601e['getRelativeToViewportCoord'](p[_0x527ead(0x3b9)][_0x527ead(0x2e3)]([_0xd7f224,_0x2d3184])),{scaleX:_0x286998,scaleY:_0x8c85b9}=_0x20601e[_0x527ead(0x3cb)](),_0x41e0dd=_0x20601e[_0x527ead(0x1a2)](p[_0x527ead(0x278)]['VIEW_MAIN']),_0x4f12ab=_0x20601e['getVpScrollXYInfoByPosToVp'](p[_0x527ead(0x3b9)][_0x527ead(0x2e3)]([_0x4901cc,_0x3a0ea9]),_0x41e0dd),_0x4942d0=_0x39d831[_0x527ead(0x241)](_0xd7f224,_0x2d3184,_0x286998,_0x8c85b9,_0x4f12ab);((_0x206681=this[_0x527ead(0x380)])==null?void 0x0:_0x206681[_0x527ead(0x25a)])===_0x4942d0[_0x527ead(0x25a)]&&((_0x381ce7=this[_0x527ead(0x380)])==null?void 0x0:_0x381ce7[_0x527ead(0x1e9)])===_0x4942d0[_0x527ead(0x1e9)]||this['_cursors']['forEach'](_0x52985a=>{const _0x31fde8=_0x527ead;_0x52985a[_0x31fde8(0x402)](_0x4942d0);});},0x64));});}[_0x863d24(0x30b)](_0xadbdbf,_0x311e5c){const _0x177557=_0x863d24;var _0x2a5771;const _0xcfc307=(_0x2a5771=this[_0x177557(0x261)]['getCurrent']())==null?void 0x0:_0x2a5771[_0x177557(0x228)];if(!_0xcfc307)return;const _0x1c8cad=this[_0x177557(0x309)]();if(!_0x1c8cad)return;this[_0x177557(0x30c)]['forEach'](_0x174361=>{_0x174361['makeDirty']();});const {scene:_0x73efca}=_0x1c8cad,_0x463c97=bt(Array[_0x177557(0x1f5)](_0x311e5c[_0x177557(0x2bc)]()))[_0x177557(0x2b5)](_0x18f7d3=>{const _0x12fcc7=_0x177557,{color:_0x537e37,range:_0x2cfa9b,name:_0x4eb661,selection:_0x15c111,sheetID:_0x430ea7}=_0x18f7d3,{startColumn:_0x30aa9e,startRow:_0xd72ca2,endColumn:_0x44508c,endRow:_0x5380bb}=_0x2cfa9b,_0x5a12ac=X['getCoordByCell'](_0xd72ca2,_0x30aa9e,_0x73efca,_0xcfc307),_0x3e3773=X[_0x12fcc7(0x315)](_0x5380bb,_0x44508c,_0x73efca,_0xcfc307),{columnHeaderHeightAndMarginTop:_0x13f484}=_0xcfc307,{startX:_0x4a6a3b,startY:_0x3eb827}=_0x5a12ac,{endX:_0x446566,endY:_0x2a23c4}=_0x3e3773,_0x3cda7b=_0x446566-_0x4a6a3b,_0x1d9301=_0x2a23c4-_0x3eb827,_0xb12e6d={'labelPosition':_0x3eb827-_0x13f484>=K?_0x12fcc7(0x26c):_0x12fcc7(0x345),'sheetID':_0x430ea7,'range':_0x2cfa9b,'color':_0x537e37,'name':_0x4eb661,'selection':_0x15c111,'left':_0x4a6a3b,'top':_0x3eb827,'width':_0x3cda7b,'height':_0x1d9301,'evented':!0x1,'zIndex':Et};return new we(_0x4eb661,_0xb12e6d);});_0x73efca[_0x177557(0x335)](_0x463c97,gt),this[_0x177557(0x30c)]=new Set(_0x463c97);}[_0x863d24(0x3de)](){const _0x2fdc39=_0x863d24;var _0x4b35d9;(_0x4b35d9=this[_0x2fdc39(0x30c)])==null||_0x4b35d9['forEach'](_0x157d2f=>_0x157d2f[_0x2fdc39(0x2c0)]());}['_getSheetObject'](){const _0x2c30bd=_0x863d24;return X['getSheetObject'](this[_0x2c30bd(0x1af)][_0x2c30bd(0x1ea)],this['_context']);}};ve=pt([ae(0x1,a[_0x863d24(0x37c)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x863d24(0x37c)](x)),ae(0x3,a[_0x863d24(0x37c)](a[_0x863d24(0x394)]))],ve);function bt(_0x598e8b){const _0x2ba53c=_0x863d24,_0xd5b354=new Map();return _0x598e8b[_0x2ba53c(0x26d)](_0x12f467=>{const _0x3e2ad7=_0x2ba53c;if(_0xd5b354['has'](_0x12f467[_0x3e2ad7(0x2fc)])){const _0x802dde=_0xd5b354[_0x3e2ad7(0x1d2)](_0x12f467['selection']);_0x802dde[_0x3e2ad7(0x3fd)]+=',\x20'+_0x12f467[_0x3e2ad7(0x3fd)];}else _0xd5b354[_0x3e2ad7(0x3b4)](_0x12f467[_0x3e2ad7(0x2fc)],_0x12f467);}),Array['from'](_0xd5b354[_0x2ba53c(0x2bc)]());}var b=function(){const _0x3d7bc5=_0x863d24;return b=Object['assign']||function(_0x1272ef){const _0x69b62a=_0x4e19;for(var _0x438b4e,_0x2d626b=0x1,_0x246773=arguments[_0x69b62a(0x2a3)];_0x2d626b<_0x246773;_0x2d626b++){_0x438b4e=arguments[_0x2d626b];for(var _0x4fbef8 in _0x438b4e)Object['prototype'][_0x69b62a(0x3f6)][_0x69b62a(0x3cf)](_0x438b4e,_0x4fbef8)&&(_0x1272ef[_0x4fbef8]=_0x438b4e[_0x4fbef8]);}return _0x1272ef;},b[_0x3d7bc5(0x2dd)](this,arguments);},Ot=function(_0x29cb0b,_0x542e10){const _0x443e19=_0x863d24;var _0x49d28c={};for(var _0xf87485 in _0x29cb0b)Object[_0x443e19(0x37b)]['hasOwnProperty'][_0x443e19(0x3cf)](_0x29cb0b,_0xf87485)&&_0x542e10[_0x443e19(0x3ad)](_0xf87485)<0x0&&(_0x49d28c[_0xf87485]=_0x29cb0b[_0xf87485]);if(_0x29cb0b!=null&&typeof Object[_0x443e19(0x3e6)]=='function'){for(var _0x1fdb71=0x0,_0xf87485=Object[_0x443e19(0x3e6)](_0x29cb0b);_0x1fdb71<_0xf87485[_0x443e19(0x2a3)];_0x1fdb71++)_0x542e10[_0x443e19(0x3ad)](_0xf87485[_0x1fdb71])<0x0&&Object[_0x443e19(0x37b)][_0x443e19(0x19d)][_0x443e19(0x3cf)](_0x29cb0b,_0xf87485[_0x1fdb71])&&(_0x49d28c[_0xf87485[_0x1fdb71]]=_0x29cb0b[_0xf87485[_0x1fdb71]]);}return _0x49d28c;},pe=M[_0x863d24(0x256)](function(_0xb983da,_0x5c2406){const _0x3d6265=_0x863d24;var _0xc1860e=_0xb983da['icon'],_0x1356bc=_0xb983da['id'],_0x538120=_0xb983da[_0x3d6265(0x2fe)],_0x32dbdd=_0xb983da[_0x3d6265(0x219)],_0x860641=Ot(_0xb983da,[_0x3d6265(0x40a),'id',_0x3d6265(0x2fe),_0x3d6265(0x219)]),_0x37ac3f=_0x3d6265(0x25d)[_0x3d6265(0x2a0)](_0x1356bc,'\x20')[_0x3d6265(0x2a0)](_0x538120||'')['trim'](),_0x3cd5bd=M[_0x3d6265(0x1e4)]('_'['concat'](Dt()));return Ae(_0xc1860e,''['concat'](_0x1356bc),{'defIds':_0xc1860e['defIds'],'idSuffix':_0x3cd5bd['current']},b({'ref':_0x5c2406,'className':_0x37ac3f},_0x860641),_0x32dbdd);});function Ae(_0x3b4a55,_0x13a01a,_0x1e9084,_0x5b6108,_0x696ea8){const _0x2a9da3=_0x863d24;return M[_0x2a9da3(0x2f0)](_0x3b4a55[_0x2a9da3(0x1f0)],b(b({'key':_0x13a01a},Tt(_0x3b4a55,_0x1e9084,_0x696ea8)),_0x5b6108),(Rt(_0x3b4a55,_0x1e9084)[_0x2a9da3(0x2aa)]||[])['map'](function(_0x56458e,_0x17f366){const _0x34ea43=_0x2a9da3;return Ae(_0x56458e,''[_0x34ea43(0x2a0)](_0x13a01a,'-')['concat'](_0x3b4a55['tag'],'-')[_0x34ea43(0x2a0)](_0x17f366),_0x1e9084,void 0x0,_0x696ea8);}));}function Tt(_0x2fb985,_0x595aba,_0x1b546c){const _0x714c03=_0x863d24;var _0x51a30d=b({},_0x2fb985[_0x714c03(0x32d)]);_0x1b546c!=null&&_0x1b546c[_0x714c03(0x35b)]&&_0x51a30d[_0x714c03(0x213)]==='colorChannel1'&&(_0x51a30d[_0x714c03(0x213)]=_0x1b546c[_0x714c03(0x35b)]),_0x2fb985[_0x714c03(0x1f0)]===_0x714c03(0x409)&&_0x51a30d['id']&&(_0x51a30d['id']=_0x51a30d['id']+_0x595aba[_0x714c03(0x1ff)]),Object['entries'](_0x51a30d)['forEach'](function(_0x1aee92){const _0x3a0f93=_0x714c03;var _0x576d7f=_0x1aee92[0x0],_0x55ecee=_0x1aee92[0x1];_0x576d7f===_0x3a0f93(0x409)&&typeof _0x55ecee==_0x3a0f93(0x2ff)&&(_0x51a30d[_0x576d7f]=_0x55ecee[_0x3a0f93(0x1f3)](/url\(#(.*)\)/,_0x3a0f93(0x1cb)[_0x3a0f93(0x2a0)](_0x595aba[_0x3a0f93(0x1ff)],')')));});var _0x23d0bd=_0x595aba['defIds'];return!_0x23d0bd||_0x23d0bd[_0x714c03(0x2a3)]===0x0||(_0x2fb985[_0x714c03(0x1f0)]==='use'&&_0x51a30d['xlink:href']&&(_0x51a30d[_0x714c03(0x266)]=_0x51a30d[_0x714c03(0x266)]+_0x595aba[_0x714c03(0x1ff)]),Object[_0x714c03(0x2bd)](_0x51a30d)[_0x714c03(0x26d)](function(_0x366172){const _0x21c570=_0x714c03;var _0x1fb70a=_0x366172[0x0],_0x3c274c=_0x366172[0x1];typeof _0x3c274c=='string'&&(_0x51a30d[_0x1fb70a]=_0x3c274c[_0x21c570(0x1f3)](/url\(#(.*)\)/,_0x21c570(0x1cb)['concat'](_0x595aba['idSuffix'],')')));})),_0x51a30d;}function Rt(_0x547e5a,_0x50a353){const _0x2b98a5=_0x863d24;var _0x9c66b8,_0x4ed250=_0x50a353[_0x2b98a5(0x3a3)];return!_0x4ed250||_0x4ed250[_0x2b98a5(0x2a3)]===0x0?_0x547e5a:_0x547e5a[_0x2b98a5(0x1f0)]===_0x2b98a5(0x207)&&(!((_0x9c66b8=_0x547e5a[_0x2b98a5(0x2aa)])===null||_0x9c66b8===void 0x0)&&_0x9c66b8[_0x2b98a5(0x2a3)])?b(b({},_0x547e5a),{'children':_0x547e5a['children']['map'](function(_0xe158a){const _0x44926a=_0x2b98a5;return typeof _0xe158a[_0x44926a(0x32d)]['id']==_0x44926a(0x2ff)&&_0x4ed250&&_0x4ed250[_0x44926a(0x2c7)](_0xe158a[_0x44926a(0x32d)]['id'])?b(b({},_0xe158a),{'attrs':b(b({},_0xe158a[_0x44926a(0x32d)]),{'id':_0xe158a[_0x44926a(0x32d)]['id']+_0x50a353[_0x44926a(0x1ff)]})}):_0xe158a;})}):_0x547e5a;}function Dt(){const _0x164121=_0x863d24;return Math[_0x164121(0x2bb)]()[_0x164121(0x389)](0x24)[_0x164121(0x1f8)](0x2,0x8);}pe[_0x863d24(0x249)]=_0x863d24(0x366);var Ut={'tag':_0x863d24(0x2dc),'attrs':{'xmlns':_0x863d24(0x2c8),'fill':_0x863d24(0x18b),'viewBox':_0x863d24(0x2c5),'width':_0x863d24(0x29c),'height':_0x863d24(0x29c)},'children':[{'tag':'g','attrs':{'clipPath':_0x863d24(0x3ac)},'children':[{'tag':_0x863d24(0x1bf),'attrs':{'stroke':'currentColor','d':_0x863d24(0x25f),'strokeLinecap':'round','strokeLinejoin':_0x863d24(0x3f3),'strokeWidth':1.2}}]},{'tag':_0x863d24(0x207),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x863d24(0x239)},'children':[{'tag':_0x863d24(0x1bf),'attrs':{'fill':_0x863d24(0x3e8),'d':_0x863d24(0x1db)}}]}]}],'defIds':[_0x863d24(0x239)]},ye=M[_0x863d24(0x256)](function(_0x509ee3,_0x9e7947){const _0x56ac2e=_0x863d24;return M[_0x56ac2e(0x2f0)](pe,Object[_0x56ac2e(0x37a)]({},_0x509ee3,{'id':_0x56ac2e(0x350),'ref':_0x9e7947,'icon':Ut}));});ye[_0x863d24(0x249)]=_0x863d24(0x3e2);var Nt={'tag':'svg','attrs':{'xmlns':_0x863d24(0x2c8),'fill':_0x863d24(0x18b),'viewBox':_0x863d24(0x306),'width':_0x863d24(0x29c),'height':_0x863d24(0x29c)},'children':[{'tag':'g','attrs':{'clipPath':_0x863d24(0x2a7)},'children':[{'tag':_0x863d24(0x1bf),'attrs':{'stroke':_0x863d24(0x383),'d':_0x863d24(0x191),'strokeLinecap':_0x863d24(0x3f3),'strokeLinejoin':_0x863d24(0x3f3),'strokeWidth':1.2}}]},{'tag':_0x863d24(0x207),'attrs':{},'children':[{'tag':_0x863d24(0x1d3),'attrs':{'id':_0x863d24(0x3ba)},'children':[{'tag':_0x863d24(0x1bf),'attrs':{'fill':_0x863d24(0x3e8),'d':'M0\x200H16V16H0z','transform':_0x863d24(0x1eb)}}]}]}],'defIds':[_0x863d24(0x3ba)]},$e=M['forwardRef'](function(_0x10b7a3,_0x599f83){const _0x5e56b7=_0x863d24;return M[_0x5e56b7(0x2f0)](pe,Object[_0x5e56b7(0x37a)]({},_0x10b7a3,{'id':_0x5e56b7(0x1ba),'ref':_0x599f83,'icon':Nt}));});$e[_0x863d24(0x249)]=_0x863d24(0x232);function Mt(_0xff31a8){const _0x169ae7=_0x863d24;switch(_0xff31a8){case u[_0x169ae7(0x398)]['OFFLINE']:return'collabStatus.offline';case u[_0x169ae7(0x398)]['CONFLICT']:return'collabStatus.conflict';case u[_0x169ae7(0x398)][_0x169ae7(0x37d)]:return _0x169ae7(0x2ec);case u[_0x169ae7(0x398)]['NOT_COLLAB']:return _0x169ae7(0x2a6);case u[_0x169ae7(0x398)][_0x169ae7(0x3e7)]:case u['CollaborationStatus'][_0x169ae7(0x19a)]:return _0x169ae7(0x1e6);case u[_0x169ae7(0x398)]['SYNCED']:case u[_0x169ae7(0x398)][_0x169ae7(0x408)]:return _0x169ae7(0x244);}}function xe(_0x5364c2){const _0x1d54e8=_0x863d24,{status$:_0x5ed1e6}=_0x5364c2,_0x43886f=O[_0x1d54e8(0x24c)](_0x5ed1e6,u[_0x1d54e8(0x398)][_0x1d54e8(0x3c0)]),_0x3a0e9a=O[_0x1d54e8(0x365)](a[_0x1d54e8(0x269)]),_0x257237=O[_0x1d54e8(0x365)](u[_0x1d54e8(0x3b6)]),_0x263494=_0x43886f!==u[_0x1d54e8(0x398)][_0x1d54e8(0x18f)],_0x400a8d=_0x3a0e9a['t'](Mt(_0x43886f)),_0x4a8adc=_0x263494?P[_0x1d54e8(0x268)]($e,{}):P[_0x1d54e8(0x268)](ye,{}),_0x506611=M[_0x1d54e8(0x307)](()=>{_0x263494||_0x257237['reconnect']();},[_0x263494,_0x257237]);function _0x1f0d96(){const _0x10b436=_0x1d54e8;return P[_0x10b436(0x235)]('div',{'className':_0x10b436(0x385),'onClick':_0x506611,'children':[P[_0x10b436(0x268)](_0x10b436(0x23d),{'className':D[_0x10b436(0x375)](_0x10b436(0x1b5),{'univer-text-green-500':_0x263494,'univer-text-red-500':!_0x263494}),'children':_0x4a8adc}),P[_0x10b436(0x268)](_0x10b436(0x23d),{'className':_0x10b436(0x1d0),'children':_0x400a8d})]});}return _0x263494?_0x1f0d96():P[_0x1d54e8(0x268)](D['Tooltip'],{'title':_0x3a0e9a['t']('collab-client.tooltip.reconnect'),'children':_0x1f0d96()});}var Lt=Object[_0x863d24(0x2b7)],Pt=(_0x5b87b6,_0x485bd1,_0x227ede,_0x4475a8)=>{for(var _0x6d7b2a=_0x4475a8>0x1?void 0x0:_0x4475a8?Lt(_0x485bd1,_0x227ede):_0x485bd1,_0x3c6631=_0x5b87b6['length']-0x1,_0x41762e;_0x3c6631>=0x0;_0x3c6631--)(_0x41762e=_0x5b87b6[_0x3c6631])&&(_0x6d7b2a=_0x41762e(_0x6d7b2a)||_0x6d7b2a);return _0x6d7b2a;},V=(_0x25bafd,_0x162ca4)=>(_0x25e007,_0x169d22)=>_0x162ca4(_0x25e007,_0x169d22,_0x25bafd);exports[_0x863d24(0x19e)]=class extends a[_0x863d24(0x312)]{constructor(_0xde24dc,_0x3591bd,_0x5c9fa4,_0x4b4680){const _0xc7e3dd=_0x863d24;super(),h(this,_0xc7e3dd(0x2fa),new d[(_0xc7e3dd(0x199))](u[_0xc7e3dd(0x398)][_0xc7e3dd(0x3c0)])),(this[_0xc7e3dd(0x1b4)]=_0xde24dc,this[_0xc7e3dd(0x2d6)]=_0x3591bd,this[_0xc7e3dd(0x289)]=_0x5c9fa4,this[_0xc7e3dd(0x2a1)]=_0x4b4680,this[_0xc7e3dd(0x3ef)](),this[_0xc7e3dd(0x2ed)]());}[_0x863d24(0x2ed)](){const _0x55c123=_0x863d24;this[_0x55c123(0x2f3)](this[_0x55c123(0x1b4)][_0x55c123(0x25c)][_0x55c123(0x340)](d[_0x55c123(0x1c8)](()=>{const _0x4e1fe9=_0x55c123,_0x2bcd93=this[_0x4e1fe9(0x1b4)][_0x4e1fe9(0x2af)]();return _0x2bcd93?this[_0x4e1fe9(0x289)]['getCollabEntity$'](_0x2bcd93[_0x4e1fe9(0x1ef)]()):d['of'](null);}),d[_0x55c123(0x1c8)](_0x3fce7b=>_0x3fce7b?_0x3fce7b[_0x55c123(0x21c)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x55c123(0x1fa)](_0x3f1264=>{const _0x497ac2=_0x55c123;this['_status$'][_0x497ac2(0x1d6)](_0x3f1264);}));}[_0x863d24(0x3ef)](){const _0x55366a=_0x863d24;this[_0x55366a(0x2f3)](this[_0x55366a(0x2a1)][_0x55366a(0x25e)](O[_0x55366a(0x354)][_0x55366a(0x231)],()=>O[_0x55366a(0x300)](wt({'status$':this[_0x55366a(0x2fa)][_0x55366a(0x22f)]()}),this[_0x55366a(0x2d6)])));}},exports[_0x863d24(0x19e)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x863d24(0x401)])),V(0x2,a[_0x863d24(0x37c)](u['CollaborationController'])),V(0x3,O[_0x863d24(0x29b)])],exports[_0x863d24(0x19e)]);function wt(_0x1c50be){const {status$:_0x2de675}=_0x1c50be;return function(){const _0x3b6980=_0x4e19;return P[_0x3b6980(0x268)](xe,{'status$':_0x2de675});};}var At=Object[_0x863d24(0x2b7)],yt=(_0x31b385,_0xbb26c0,_0x1b9e5c,_0x19a167)=>{for(var _0x5918a5=_0x19a167>0x1?void 0x0:_0x19a167?At(_0xbb26c0,_0x1b9e5c):_0xbb26c0,_0xcc4b6c=_0x31b385['length']-0x1,_0x1ba20f;_0xcc4b6c>=0x0;_0xcc4b6c--)(_0x1ba20f=_0x31b385[_0xcc4b6c])&&(_0x5918a5=_0x1ba20f(_0x5918a5)||_0x5918a5);return _0x5918a5;},y=(_0x2e7014,_0x37252d)=>(_0x48d181,_0x2ff409)=>_0x37252d(_0x48d181,_0x2ff409,_0x2e7014);let q=class extends a[_0x863d24(0x312)]{constructor(_0x4fea02,_0x1c443d,_0x4eb868,_0x5b2f75,_0x424cfb,_0x81147){const _0x63b049=_0x863d24;super(),this[_0x63b049(0x3c6)]=_0x4fea02,this[_0x63b049(0x1b9)]=_0x1c443d,this[_0x63b049(0x3a8)]=_0x4eb868,this[_0x63b049(0x39d)]=_0x5b2f75,this[_0x63b049(0x23f)]=_0x424cfb,this['_localeService']=_0x81147,this[_0x63b049(0x1d8)](),this[_0x63b049(0x36c)]();}[_0x863d24(0x1d8)](){const _0x26faa9=_0x863d24;this[_0x26faa9(0x2f3)](this[_0x26faa9(0x3c6)][_0x26faa9(0x2d0)](()=>{const _0x2c7921=_0x26faa9;if(this[_0x2c7921(0x1b9)][_0x2c7921(0x224)]['size'])return this[_0x2c7921(0x36e)]['t'](_0x2c7921(0x270));}));}[_0x863d24(0x36c)](){const _0x1f11c7=_0x863d24;this['disposeWithMe'](this[_0x1f11c7(0x3a8)]['event$'][_0x1f11c7(0x1fa)](_0x4e5574=>{const _0x5bae3e=_0x1f11c7;_0x4e5574['id']===u[_0x5bae3e(0x330)][_0x5bae3e(0x281)]&&this[_0x5bae3e(0x39d)][_0x5bae3e(0x24b)]({'type':D[_0x5bae3e(0x33d)][_0x5bae3e(0x292)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x4e5574['id']===u[_0x5bae3e(0x330)][_0x5bae3e(0x347)]&&this['_messageService'][_0x5bae3e(0x24b)]({'type':D[_0x5bae3e(0x33d)]['Warning'],'content':this[_0x5bae3e(0x36e)]['t'](_0x5bae3e(0x2ab))}),_0x4e5574['id']===u[_0x5bae3e(0x330)][_0x5bae3e(0x33f)]&&this[_0x5bae3e(0x23f)][_0x5bae3e(0x24b)]({'title':this['_localeService']['t'](_0x5bae3e(0x195)),'content':this[_0x5bae3e(0x36e)]['t'](_0x5bae3e(0x28f)),'type':'error','duration':0x0}),_0x4e5574['id']===u[_0x5bae3e(0x330)][_0x5bae3e(0x336)]&&this[_0x5bae3e(0x39d)][_0x5bae3e(0x24b)]({'type':D['MessageType'][_0x5bae3e(0x34c)],'content':this[_0x5bae3e(0x36e)]['t'](_0x5bae3e(0x2ab))+'('+_0x4e5574[_0x5bae3e(0x21b)]+')'}),_0x4e5574['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x5bae3e(0x39d)][_0x5bae3e(0x24b)]({'type':D['MessageType'][_0x5bae3e(0x292)],'content':this[_0x5bae3e(0x36e)]['t'](_0x4e5574[_0x5bae3e(0x21b)]||'')}),_0x4e5574['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x5bae3e(0x24b)]({'type':D[_0x5bae3e(0x33d)][_0x5bae3e(0x292)],'content':this['_localeService']['t'](_0x5bae3e(0x27c))}),_0x4e5574['id']===u[_0x5bae3e(0x330)][_0x5bae3e(0x225)]&&this['_messageService'][_0x5bae3e(0x24b)]({'type':D[_0x5bae3e(0x33d)]['Error'],'content':this['_localeService']['t'](_0x5bae3e(0x27f))}),_0x4e5574['id']===u[_0x5bae3e(0x330)][_0x5bae3e(0x3ed)]&&this[_0x5bae3e(0x39d)]['show']({'type':D[_0x5bae3e(0x33d)]['Error'],'content':this[_0x5bae3e(0x36e)]['t'](_0x5bae3e(0x1b7))});}));}};q=yt([y(0x0,O[_0x863d24(0x3d4)]),y(0x1,u[_0x863d24(0x1df)]),y(0x2,a[_0x863d24(0x37c)](u[_0x863d24(0x25b)])),y(0x3,O[_0x863d24(0x3d2)]),y(0x4,O[_0x863d24(0x34d)]),y(0x5,a[_0x863d24(0x37c)](a[_0x863d24(0x269)]))],q);const $t='collaboration-client-ui.config',Ue={},Ee=a[_0x863d24(0x1c6)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],Bt=(_0x2588b0,_0x5d3661,_0x20ff4a,_0x33c11d)=>{const _0x30fe82=_0x863d24;for(var _0x578909=_0x33c11d>0x1?void 0x0:_0x33c11d?xt(_0x5d3661,_0x20ff4a):_0x5d3661,_0x36fa23=_0x2588b0[_0x30fe82(0x2a3)]-0x1,_0x51b9b4;_0x36fa23>=0x0;_0x36fa23--)(_0x51b9b4=_0x2588b0[_0x36fa23])&&(_0x578909=_0x51b9b4(_0x578909)||_0x578909);return _0x578909;},F=(_0x5774fe,_0x3a59bb)=>(_0xe588b4,_0x4c61d1)=>_0x3a59bb(_0xe588b4,_0x4c61d1,_0x5774fe);exports[_0x863d24(0x2a8)]=class extends a[_0x863d24(0x1a4)]{constructor(_0x3f58d2,_0x337448,_0x4c7728,_0x34d7b2,_0x1b8b12){const _0x1ccd6b=_0x863d24;super(),this['_urlService']=_0x3f58d2,this[_0x1ccd6b(0x3b2)]=_0x337448,this[_0x1ccd6b(0x384)]=_0x4c7728,this['_dataLoaderService']=_0x34d7b2,_0x1b8b12?_0x1b8b12==null||_0x1b8b12[_0x1ccd6b(0x2df)]()[_0x1ccd6b(0x3d6)](()=>this[_0x1ccd6b(0x3cd)]()):(this['_logService']['debug'](_0x1ccd6b(0x2cc),_0x1ccd6b(0x250)),this['_init']());}async['_init'](){const _0x22c024=_0x863d24,_0x4fa74a=this[_0x22c024(0x403)][_0x22c024(0x1aa)](_0x22c024(0x1ea)),_0x52190b=this[_0x22c024(0x403)][_0x22c024(0x1aa)](_0x22c024(0x357)),_0x46be2b=this[_0x22c024(0x403)][_0x22c024(0x1aa)](_0x22c024(0x339));if(!_0x4fa74a||!_0x52190b){this[_0x22c024(0x3b2)][_0x22c024(0x1de)](_0x22c024(0x2cc),_0x22c024(0x395));return;}const _0x4d0d08=await this[_0x22c024(0x334)][_0x22c024(0x23b)](_0x4fa74a,Number(_0x52190b),_0x46be2b);_0x4d0d08&&_0x4d0d08 instanceof a[_0x22c024(0x2da)]&&this[_0x22c024(0x282)](_0x4d0d08);}async['_setupSubUnitSync'](_0x56a055){const _0x3d6319=_0x863d24;await this[_0x3d6319(0x31a)](_0x56a055),_0x56a055[_0x3d6319(0x2fb)]['pipe'](d[_0x3d6319(0x393)](this['dispose$']))[_0x3d6319(0x1fa)](_0x41b947=>{const _0x1dae25=_0x3d6319;_0x41b947&&this[_0x1dae25(0x325)](_0x41b947);}),this['_urlService'][_0x3d6319(0x333)][_0x3d6319(0x340)](d[_0x3d6319(0x393)](this[_0x3d6319(0x1cc)]))[_0x3d6319(0x1fa)](()=>this[_0x3d6319(0x31a)](_0x56a055));}[_0x863d24(0x325)](_0x1e8640,_0x3d4463=!0x1){const _0x12ae3e=_0x863d24,_0x1be063=this[_0x12ae3e(0x403)][_0x12ae3e(0x1aa)]('subunit');_0x1e8640[_0x12ae3e(0x407)]()!==_0x1be063&&this[_0x12ae3e(0x403)]['setParam'](_0x12ae3e(0x339),_0x1e8640['getSheetId'](),_0x3d4463);}async[_0x863d24(0x31a)](_0x3842fe){const _0x3a1516=_0x863d24;var _0x15438b;const _0x257f1a=this['_urlService'][_0x3a1516(0x1aa)](_0x3a1516(0x339));if(!_0x257f1a||!_0x3842fe['getSheetBySheetId'](_0x257f1a)){const _0x56c274=_0x3842fe[_0x3a1516(0x3a6)]()[0x0],_0x48c092=_0x3842fe['getSheetBySheetId'](_0x56c274);if(!_0x48c092)return;this[_0x3a1516(0x325)](_0x48c092,!0x0),await this[_0x3a1516(0x384)][_0x3a1516(0x2ea)](g[_0x3a1516(0x233)]['id'],{'unitId':_0x3842fe[_0x3a1516(0x1ef)](),'subUnitId':_0x56c274});return;}((_0x15438b=_0x3842fe[_0x3a1516(0x2b9)]())==null?void 0x0:_0x15438b[_0x3a1516(0x407)]())!==_0x257f1a&&await this[_0x3a1516(0x384)][_0x3a1516(0x2ea)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3842fe['getUnitId'](),'subUnitId':_0x257f1a});}},exports[_0x863d24(0x2a8)]=Bt([F(0x0,Ee),F(0x1,a[_0x863d24(0x327)]),F(0x2,a[_0x863d24(0x343)]),F(0x3,a['Inject'](u[_0x863d24(0x286)])),F(0x4,a[_0x863d24(0x39a)](Ke[_0x863d24(0x205)]))],exports['CollaborationDataLoaderController']);var jt=Object[_0x863d24(0x2b7)],kt=(_0x3dcdb4,_0x5d428e,_0x52cddb,_0x2e5308)=>{for(var _0x4c3e2d=_0x2e5308>0x1?void 0x0:_0x2e5308?jt(_0x5d428e,_0x52cddb):_0x5d428e,_0x186a40=_0x3dcdb4['length']-0x1,_0x20134a;_0x186a40>=0x0;_0x186a40--)(_0x20134a=_0x3dcdb4[_0x186a40])&&(_0x4c3e2d=_0x20134a(_0x4c3e2d)||_0x4c3e2d);return _0x4c3e2d;},ce=(_0x5581d2,_0x570578)=>(_0x5c2143,_0xf9236f)=>_0x570578(_0x5c2143,_0xf9236f,_0x5581d2);let z=class{constructor(_0x19d8ee,_0x3b1db9,_0x5c215a){const _0x463079=_0x863d24;this[_0x463079(0x2d6)]=_0x19d8ee,this['_transformService']=_0x3b1db9,this[_0x463079(0x208)]=_0x5c215a;}['transformIMECache'](_0xaeb3d0){const _0x3e5efb=_0x863d24;this[_0x3e5efb(0x283)](_0xaeb3d0),this[_0x3e5efb(0x3ae)](_0xaeb3d0);}[_0x863d24(0x1c0)](_0x30ff5b){const _0x53d05f=_0x863d24,{unitID:_0x3e5f53}=_0x30ff5b,_0x314444=this[_0x53d05f(0x208)]['getRenderById'](_0x3e5f53)[_0x53d05f(0x28d)](E[_0x53d05f(0x2a2)]),{redoCache:_0x1eb1d4}=_0x314444['getUndoRedoMutationParamsCache']();if(_0x1eb1d4[_0x53d05f(0x2a3)]===0x0)return _0x30ff5b;let _0x2abaf6=a['Tools'][_0x53d05f(0x263)](_0x30ff5b[_0x53d05f(0x1a1)][0x0]);for(let _0x4ddf91=0x0;_0x4ddf91<_0x1eb1d4[_0x53d05f(0x2a3)];_0x4ddf91++){const _0x246ad1={'id':_0x53d05f(0x3ce),'params':{..._0x1eb1d4[_0x4ddf91]}},_0x1ff945=this[_0x53d05f(0x29f)][_0x53d05f(0x197)](_0x2abaf6,_0x246ad1,!0x1);if(m['isTransformMutationFailure'](_0x1ff945))throw _0x1ff945[_0x53d05f(0x3ca)];_0x2abaf6=_0x1ff945[_0x53d05f(0x1bc)];}return{...a['Tools'][_0x53d05f(0x263)](_0x30ff5b),'mutations':[_0x2abaf6]};}[_0x863d24(0x283)](_0x49a547){const _0x480358=_0x863d24,{unitID:_0x5de632}=_0x49a547,_0x3a0bb7=this[_0x480358(0x208)][_0x480358(0x20d)](_0x5de632)['with'](E[_0x480358(0x2a2)]),{undoCache:_0x383af1,redoCache:_0x284828}=_0x3a0bb7[_0x480358(0x1b3)]();if(_0x383af1[_0x480358(0x2a3)]===0x0||_0x284828[_0x480358(0x2a3)]===0x0)return;const _0x2fc61b=[],_0x3c8d43=[];let _0x314000=a['Tools'][_0x480358(0x263)](_0x49a547['mutations'][0x0]),_0x347043=a[_0x480358(0x3d1)][_0x480358(0x263)](_0x49a547['mutations'][0x0]);for(let _0x11a118=_0x383af1[_0x480358(0x2a3)]-0x1;_0x11a118>=0x0;_0x11a118--){const _0x23ced5={'id':_0x480358(0x3ce),'params':{..._0x383af1[_0x11a118]}},_0x2bd62f={'id':_0x480358(0x3ce),'params':{..._0x284828[_0x11a118]}},_0x2aaab4=this[_0x480358(0x29f)][_0x480358(0x197)](_0x314000,_0x23ced5,!0x1),_0xbed076=this[_0x480358(0x29f)][_0x480358(0x197)](_0x347043,_0x2bd62f,!0x1);if(m[_0x480358(0x2e5)](_0x2aaab4))throw _0x2aaab4[_0x480358(0x3ca)];if(m[_0x480358(0x2e5)](_0xbed076))throw _0xbed076[_0x480358(0x3ca)];_0x2fc61b['unshift'](_0x2aaab4[_0x480358(0x19f)][_0x480358(0x2b8)]),_0x3c8d43[_0x480358(0x2f7)](_0xbed076[_0x480358(0x19f)][_0x480358(0x2b8)]),_0x314000=_0x2aaab4[_0x480358(0x1bc)],_0x347043=_0xbed076[_0x480358(0x1bc)];}_0x3a0bb7[_0x480358(0x399)]({'undoCache':_0x2fc61b,'redoCache':_0x3c8d43});}[_0x863d24(0x3ae)](_0x4e9abe){const _0x2d77a4=_0x863d24,{unitID:_0x40d1b3}=_0x4e9abe,_0x5ee46c=this[_0x2d77a4(0x208)]['getRenderById'](_0x40d1b3)['with'](E[_0x2d77a4(0x2a2)]),_0x5dd1bc=_0x5ee46c[_0x2d77a4(0x1cd)]();if(_0x5dd1bc==null)return;const _0x22d377=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e9abe[_0x2d77a4(0x1f2)],'actions':null,'textRanges':[_0x5dd1bc]}}],_0x5cb42f=this['_transformService']['transformMutationsWithChangeset'](_0x4e9abe,_0x22d377);if(!m[_0x2d77a4(0x2f6)](_0x5cb42f))throw _0x5cb42f[_0x2d77a4(0x3ca)];const _0x16447f=_0x5cb42f[_0x2d77a4(0x19f)][0x0][_0x2d77a4(0x2b8)][_0x2d77a4(0x34f)];Array['isArray'](_0x16447f)&&_0x16447f[_0x2d77a4(0x2a3)]&&_0x5ee46c[_0x2d77a4(0x1a0)](_0x16447f[0x0]);}};z=kt([ce(0x0,a[_0x863d24(0x37c)](a['Injector'])),ce(0x1,m[_0x863d24(0x24a)]),ce(0x2,p[_0x863d24(0x321)])],z);var Ft=Object[_0x863d24(0x2b7)],Ht=(_0x537844,_0x129e37,_0x86d27e,_0x863614)=>{const _0x3dc60a=_0x863d24;for(var _0x15a4ed=_0x863614>0x1?void 0x0:_0x863614?Ft(_0x129e37,_0x86d27e):_0x129e37,_0x3d0ada=_0x537844[_0x3dc60a(0x2a3)]-0x1,_0x4beed4;_0x3d0ada>=0x0;_0x3d0ada--)(_0x4beed4=_0x537844[_0x3d0ada])&&(_0x15a4ed=_0x4beed4(_0x15a4ed)||_0x15a4ed);return _0x15a4ed;},le=(_0x1d2909,_0x3b469d)=>(_0x4340a6,_0x159b48)=>_0x3b469d(_0x4340a6,_0x159b48,_0x1d2909);let J=class{constructor(_0x5293b1,_0xf824eb,_0xa10cad){const _0x42f3d1=_0x863d24;this['_injector']=_0x5293b1,this[_0x42f3d1(0x29f)]=_0xf824eb,this[_0x42f3d1(0x386)]=_0xa10cad;}[_0x863d24(0x3cc)](_0x5c0a05){const _0xc99375=_0x863d24;this[_0xc99375(0x38f)](_0x5c0a05);}[_0x863d24(0x1c0)](_0x16ff84){const _0x1bff42=_0x863d24,{unitID:_0x225ef9}=_0x16ff84,{collaboration:_0x3e2fc2}=this[_0x1bff42(0x386)]['getStateCache'](_0x225ef9);if(_0x3e2fc2[_0x1bff42(0x2a3)]===0x0)return _0x16ff84;let _0x3d5675=a[_0x1bff42(0x3d1)][_0x1bff42(0x263)](_0x16ff84[_0x1bff42(0x1a1)][0x0]);for(let _0x4a9a29=0x0;_0x4a9a29<_0x3e2fc2['length'];_0x4a9a29++){const _0x55b5ed={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e2fc2[_0x4a9a29][_0x1bff42(0x1ad)],..._0x3e2fc2[_0x4a9a29][_0x1bff42(0x265)]}},_0x4540f7=this[_0x1bff42(0x29f)][_0x1bff42(0x197)](_0x3d5675,_0x55b5ed,!0x1);if(m['isTransformMutationFailure'](_0x4540f7))throw _0x4540f7[_0x1bff42(0x3ca)];_0x3d5675=_0x4540f7[_0x1bff42(0x1bc)];}return{...a[_0x1bff42(0x3d1)][_0x1bff42(0x263)](_0x16ff84),'mutations':[_0x3d5675]};}['_transformHistoryAndStateStack'](_0x29b6a7){const _0x3cd365=_0x863d24,{unitID:_0x363180}=_0x29b6a7,{history:_0x4d3325,collaboration:_0x2229bc}=this[_0x3cd365(0x386)][_0x3cd365(0x18d)](_0x363180);if(_0x4d3325[_0x3cd365(0x2a3)]===0x0&&_0x2229bc[_0x3cd365(0x2a3)]===0x0)return;const _0x88139=[],_0x1825b4=[];let _0x37b7c6=a[_0x3cd365(0x3d1)][_0x3cd365(0x263)](_0x29b6a7[_0x3cd365(0x1a1)][0x0]),_0x32ed69=a[_0x3cd365(0x3d1)][_0x3cd365(0x263)](_0x29b6a7['mutations'][0x0]);for(let _0x32d0a7=_0x4d3325['length']-0x1;_0x32d0a7>=0x0;_0x32d0a7--){const _0x1f44dd={'id':_0x3cd365(0x3ce),'params':{'unitId':_0x4d3325[_0x32d0a7][_0x3cd365(0x1ad)],..._0x4d3325[_0x32d0a7]['undoState']}},_0x4ec5e0={'id':_0x3cd365(0x3ce),'params':{'unitId':_0x4d3325[_0x32d0a7][_0x3cd365(0x1ad)],..._0x4d3325[_0x32d0a7][_0x3cd365(0x265)]}},_0x5aaba0=this[_0x3cd365(0x29f)][_0x3cd365(0x197)](_0x37b7c6,_0x1f44dd,!0x1),_0x47cf2c=this[_0x3cd365(0x29f)][_0x3cd365(0x197)](_0x32ed69,_0x4ec5e0,!0x1);if(m[_0x3cd365(0x2e5)](_0x5aaba0))throw _0x5aaba0['error'];if(m[_0x3cd365(0x2e5)](_0x47cf2c))throw _0x47cf2c[_0x3cd365(0x3ca)];_0x88139['unshift']({..._0x4d3325[_0x32d0a7],'undoState':_0x5aaba0[_0x3cd365(0x19f)][_0x3cd365(0x2b8)],'redoState':_0x47cf2c['m2Prime']['params']}),_0x37b7c6=_0x5aaba0[_0x3cd365(0x1bc)],_0x32ed69=_0x47cf2c[_0x3cd365(0x1bc)];}_0x37b7c6=a[_0x3cd365(0x3d1)][_0x3cd365(0x263)](_0x29b6a7[_0x3cd365(0x1a1)][0x0]),_0x32ed69=a[_0x3cd365(0x3d1)][_0x3cd365(0x263)](_0x29b6a7[_0x3cd365(0x1a1)][0x0]);for(let _0x218d07=_0x2229bc['length']-0x1;_0x218d07>=0x0;_0x218d07--){const _0x2fde4d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2229bc[_0x218d07][_0x3cd365(0x1ad)],..._0x2229bc[_0x218d07][_0x3cd365(0x2a5)]}},_0xbcbf51={'id':_0x3cd365(0x3ce),'params':{'unitId':_0x2229bc[_0x218d07][_0x3cd365(0x1ad)],..._0x2229bc[_0x218d07][_0x3cd365(0x265)]}},_0x415b6f=this[_0x3cd365(0x29f)]['transformMutation'](_0x37b7c6,_0x2fde4d,!0x1),_0x5731ca=this[_0x3cd365(0x29f)][_0x3cd365(0x197)](_0x32ed69,_0xbcbf51,!0x1);if(m[_0x3cd365(0x2e5)](_0x415b6f))throw _0x415b6f[_0x3cd365(0x3ca)];if(m[_0x3cd365(0x2e5)](_0x5731ca))throw _0x5731ca[_0x3cd365(0x3ca)];_0x1825b4[_0x3cd365(0x2f7)]({..._0x2229bc[_0x218d07],'undoState':_0x415b6f['m2Prime'][_0x3cd365(0x2b8)],'redoState':_0x5731ca['m2Prime']['params']}),_0x37b7c6=_0x415b6f[_0x3cd365(0x1bc)],_0x32ed69=_0x5731ca[_0x3cd365(0x1bc)];}this['_docStateChangeManagerService'][_0x3cd365(0x2e2)](_0x363180,{'history':_0x88139,'collaboration':_0x1825b4});}};J=Ht([le(0x0,a[_0x863d24(0x37c)](a['Injector'])),le(0x1,m[_0x863d24(0x24a)]),le(0x2,a[_0x863d24(0x37c)](E[_0x863d24(0x36d)]))],J);var Yt=Object[_0x863d24(0x2b7)],Wt=(_0x59e33c,_0x5a27c0,_0x36d213,_0x2c7adb)=>{for(var _0x4254cf=_0x2c7adb>0x1?void 0x0:_0x2c7adb?Yt(_0x5a27c0,_0x36d213):_0x5a27c0,_0x1de6d5=_0x59e33c['length']-0x1,_0x390b37;_0x1de6d5>=0x0;_0x1de6d5--)(_0x390b37=_0x59e33c[_0x1de6d5])&&(_0x4254cf=_0x390b37(_0x4254cf)||_0x4254cf);return _0x4254cf;},Ne=(_0x29211a,_0x273d60)=>(_0x372f40,_0x281919)=>_0x273d60(_0x372f40,_0x281919,_0x29211a);let Z=class{constructor(_0xf970cc,_0x111740){const _0x2d3c95=_0x863d24;this[_0x2d3c95(0x2d6)]=_0xf970cc,this['_transformService']=_0x111740;}[_0x863d24(0x31b)](_0x548b51){const _0x1c279f=_0x863d24;var _0xb22028;const _0x1d5cfc=this[_0x1c279f(0x2d6)][_0x1c279f(0x1d2)](Y[_0x1c279f(0x3a4)]),_0x407516=(_0xb22028=_0x1d5cfc[_0x1c279f(0x20a)]())!=null?_0xb22028:[];if(_0x407516[_0x1c279f(0x2a3)]===0x0)return;const _0x34d0c1=_0x548b51['unitID'],_0x289cd1=[{'id':_0x1c279f(0x3ce),'params':{'unitId':_0x34d0c1,'actions':null,'textRanges':_0x407516}}],_0x1e9209=this[_0x1c279f(0x29f)][_0x1c279f(0x3c7)](_0x548b51,_0x289cd1);if(!m[_0x1c279f(0x2f6)](_0x1e9209))throw _0x1e9209[_0x1c279f(0x3ca)];const _0x1eac65=_0x1e9209['m2Prime'][0x0][_0x1c279f(0x2b8)][_0x1c279f(0x34f)];Array[_0x1c279f(0x2ac)](_0x1eac65)&&_0x1eac65[_0x1c279f(0x2a3)]&&_0x1d5cfc['replaceDocRanges'](_0x1eac65,{'unitId':_0x34d0c1,'subUnitId':_0x34d0c1},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a['Injector'])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x863d24(0x2b7)],Xt=(_0x3dd48c,_0x4d8a90,_0x1530a1,_0x3c1640)=>{const _0x1be9d2=_0x863d24;for(var _0x254a21=_0x3c1640>0x1?void 0x0:_0x3c1640?Vt(_0x4d8a90,_0x1530a1):_0x4d8a90,_0x143a8e=_0x3dd48c[_0x1be9d2(0x2a3)]-0x1,_0x263a6f;_0x143a8e>=0x0;_0x143a8e--)(_0x263a6f=_0x3dd48c[_0x143a8e])&&(_0x254a21=_0x263a6f(_0x254a21)||_0x254a21);return _0x254a21;},N=(_0x3c03dd,_0x1aba43)=>(_0x10a3e8,_0x5dcc48)=>_0x1aba43(_0x10a3e8,_0x5dcc48,_0x3c03dd);let Q=class extends a[_0x863d24(0x312)]{constructor(_0x39a732,_0x259df0,_0x2f7a15,_0x33e877,_0x5db114,_0x4e0dc5,_0x1c6fe0,_0x5d0093){const _0x383296=_0x863d24;super(),h(this,'_status$',new d[(_0x383296(0x199))](u[_0x383296(0x398)]['NOT_COLLAB'])),(this[_0x383296(0x386)]=_0x39a732,this[_0x383296(0x289)]=_0x259df0,this[_0x383296(0x1e3)]=_0x2f7a15,this[_0x383296(0x20c)]=_0x33e877,this[_0x383296(0x284)]=_0x5db114,this[_0x383296(0x1a8)]=_0x4e0dc5,this[_0x383296(0x39d)]=_0x1c6fe0,this[_0x383296(0x36e)]=_0x5d0093,this[_0x383296(0x3a1)]());}[_0x863d24(0x3a1)](){const _0x45edb6=_0x863d24;this['disposeWithMe'](this[_0x45edb6(0x289)][_0x45edb6(0x1ac)]['subscribe'](_0x3b698e=>{const _0x5487f5=_0x45edb6,_0x202117=this[_0x5487f5(0x386)][_0x5487f5(0x21d)]['subscribe'](_0x19bfc5=>{const _0x53e8e3=_0x5487f5;if(_0x19bfc5==null)return;const {unitId:_0x34701b,redoState:_0x2795d9,commandId:_0x37ff0a}=_0x19bfc5;if(_0x34701b!==_0x3b698e['unitID'])return;const _0x474d07={'id':_0x37ff0a,'type':a[_0x53e8e3(0x1f6)][_0x53e8e3(0x2e6)],'params':{'unitId':_0x34701b,'actions':_0x2795d9[_0x53e8e3(0x3fb)],'textRanges':null}};_0x3b698e[_0x53e8e3(0x19c)](_0x474d07);});if(_0x3b698e[_0x5487f5(0x2f3)](_0x202117),_0x3b698e instanceof u['DocCollaborationEntity']){const _0x27baf1={'onTransformIME':_0x5eda01=>this[_0x5487f5(0x1e3)]['transformIMECache'](_0x5eda01),'onTransformState':_0x2ff3c6=>this['_docTransformStateCacheService'][_0x5487f5(0x3cc)](_0x2ff3c6),'onTransformSelections':_0x40a0de=>this[_0x5487f5(0x284)][_0x5487f5(0x31b)](_0x40a0de),'onSyncEditingCollabCursor':_0x2e48d1=>this[_0x5487f5(0x1a8)][_0x5487f5(0x2d4)](_0x2e48d1),'onTransformRemoteChangesetByIMECache':_0x4aec98=>this['_docTransformIMECacheService'][_0x5487f5(0x1c0)](_0x4aec98),'onTransformRemoteChangesetByStateCache':_0x154db5=>this[_0x5487f5(0x20c)][_0x5487f5(0x1c0)](_0x154db5)};_0x3b698e[_0x5487f5(0x34a)](_0x27baf1);}}));}};Q=Xt([N(0x0,a[_0x863d24(0x37c)](E[_0x863d24(0x36d)])),N(0x1,a[_0x863d24(0x37c)](u[_0x863d24(0x3d7)])),N(0x2,a[_0x863d24(0x37c)](z)),N(0x3,a[_0x863d24(0x37c)](J)),N(0x4,a[_0x863d24(0x37c)](Z)),N(0x5,a[_0x863d24(0x37c)](Ce)),N(0x6,O[_0x863d24(0x3d2)]),N(0x7,a['Inject'](a[_0x863d24(0x269)]))],Q);function _0x4e19(_0x13cddc,_0x1ebaa0){const _0x16e5e8=_0x16e5();return _0x4e19=function(_0x4e1951,_0x4b5aec){_0x4e1951=_0x4e1951-0x18b;let _0x1b7dc0=_0x16e5e8[_0x4e1951];return _0x1b7dc0;},_0x4e19(_0x13cddc,_0x1ebaa0);}var Gt=Object[_0x863d24(0x2b7)],Kt=(_0x5454d2,_0x131527,_0x213af3,_0x12b98d)=>{const _0x37b348=_0x863d24;for(var _0x48a7fd=_0x12b98d>0x1?void 0x0:_0x12b98d?Gt(_0x131527,_0x213af3):_0x131527,_0x1623ca=_0x5454d2[_0x37b348(0x2a3)]-0x1,_0x41f771;_0x1623ca>=0x0;_0x1623ca--)(_0x41f771=_0x5454d2[_0x1623ca])&&(_0x48a7fd=_0x41f771(_0x48a7fd)||_0x48a7fd);return _0x48a7fd;},_e=(_0xd2dc23,_0x1cdb87)=>(_0x4221ba,_0x41caf5)=>_0x1cdb87(_0x4221ba,_0x41caf5,_0xd2dc23);let ge=class extends a[_0x863d24(0x312)]{constructor(_0x59d24e,_0x3326f0,_0x195aab){const _0xbae923=_0x863d24;super(),h(this,_0xbae923(0x32f),new Map()),h(this,_0xbae923(0x230),new Map()),h(this,_0xbae923(0x3a5),!0x1),(this[_0xbae923(0x3e3)]=_0x59d24e,this[_0xbae923(0x223)]=_0x3326f0,this[_0xbae923(0x3e9)]=_0x195aab);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x863d24(0x238)](){const _0x226fb1=_0x863d24;this[_0x226fb1(0x3a5)]=!0x1;}get[_0x863d24(0x224)](){const _0x315291=_0x863d24;return this[_0x315291(0x230)];}[_0x863d24(0x2c0)](){const _0x444891=_0x863d24;this[_0x444891(0x1c4)]()[_0x444891(0x3d6)](()=>super[_0x444891(0x2c0)]());}async[_0x863d24(0x3e1)](_0x415dab){const _0x1f2eeb=_0x863d24;return this[_0x1f2eeb(0x3a5)]?null:this[_0x1f2eeb(0x223)][_0x1f2eeb(0x391)](u[_0x1f2eeb(0x201)](_0x415dab));}async[_0x863d24(0x314)](_0x3d47d0,_0x55c45e){const _0x5142e2=_0x863d24;return!!this['_localStorageService'][_0x5142e2(0x301)](_0x3d47d0,_0x55c45e);}[_0x863d24(0x2ae)](_0x461f38,_0x4333ec,_0x53ec37,_0x2d74e2){const _0x3147c1=_0x863d24,_0x346e79=this[_0x3147c1(0x3e9)][_0x3147c1(0x3fc)](_0x461f38);this[_0x3147c1(0x32f)][_0x3147c1(0x3b4)](_0x461f38,{'unitID':_0x461f38,'type':_0x4333ec,'awaitingChangeset':_0x53ec37,'mutations':_0x2d74e2,'rev':_0x346e79}),this[_0x3147c1(0x230)]['has'](_0x461f38)||this['_scheduleSaving'](_0x461f38);}[_0x863d24(0x31c)](_0x2d3cc1){const _0x41b9f5=_0x863d24,_0x384064=this[_0x41b9f5(0x1bd)]();_0x384064===0x0?this['_saveCache'](_0x2d3cc1):this[_0x41b9f5(0x230)][_0x41b9f5(0x3b4)](_0x2d3cc1,setTimeout(()=>this['_saveCache'](_0x2d3cc1),_0x384064));}[_0x863d24(0x1bd)](){const _0x109862=_0x863d24;var _0x191307;return(_0x191307=this['_configService'][_0x109862(0x1ca)](u[_0x109862(0x378)]))!=null?_0x191307:u[_0x109862(0x3aa)];}[_0x863d24(0x1be)](_0x27520a){const _0x48594f=_0x863d24,_0x42db1d=this[_0x48594f(0x230)][_0x48594f(0x1d2)](_0x27520a);return _0x42db1d!==void 0x0&&window['clearTimeout'](_0x42db1d),this['_localStorageService'][_0x48594f(0x301)](u['getLocalCacheKey'](_0x27520a),this['_cachedData'][_0x48594f(0x1d2)](_0x27520a))[_0x48594f(0x3d6)](()=>this[_0x48594f(0x230)]['delete'](_0x27520a));}async['exhaustSavingTask'](){const _0x47e445=_0x863d24,_0x357a8c=[];this[_0x47e445(0x230)]['forEach']((_0x5d9e0b,_0x4810e0)=>{const _0x5ef128=_0x47e445;window[_0x5ef128(0x1e5)](_0x5d9e0b),_0x357a8c[_0x5ef128(0x34e)](this[_0x5ef128(0x1be)](_0x4810e0)[_0x5ef128(0x3d6)](()=>{const _0x4f3e75=_0x5ef128;this[_0x4f3e75(0x230)][_0x4f3e75(0x30a)](_0x4810e0);}));}),await Promise[_0x47e445(0x324)](_0x357a8c);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x863d24(0x248)]))],ge);class Be extends a[_0x863d24(0x1a4)]{constructor(){const _0x2c93ac=_0x863d24;super(),h(this,_0x2c93ac(0x333)),this['urlChange$']=d[_0x2c93ac(0x3b8)](window,_0x2c93ac(0x193))[_0x2c93ac(0x340)](d['takeUntil'](this[_0x2c93ac(0x1cc)]),d[_0x2c93ac(0x28e)](0x1),d['mapTo'](void 0x0));}['setParam'](_0x3b2e11,_0xa51d41,_0x10285a=!0x1){const _0x464e59=_0x863d24,_0x5377af=new URL(window['location']['href']);_0x5377af[_0x464e59(0x3d0)][_0x464e59(0x3b4)](_0x3b2e11,_0xa51d41),_0x10285a?window['history'][_0x464e59(0x253)]('','',_0x5377af[_0x464e59(0x389)]()):window['history'][_0x464e59(0x2e4)]('','',_0x5377af['toString']());}['removeParam'](_0x2e2148,_0x4f49e7=!0x1){const _0x183e21=_0x863d24,_0x4a3c41=new URL(window[_0x183e21(0x323)]['href']);_0x4a3c41['searchParams'][_0x183e21(0x30a)](_0x2e2148),_0x4f49e7?window[_0x183e21(0x23c)]['replaceState']('','',_0x4a3c41[_0x183e21(0x389)]()):window[_0x183e21(0x23c)][_0x183e21(0x2e4)]('','',_0x4a3c41[_0x183e21(0x389)]());}[_0x863d24(0x1aa)](_0x358afc){const _0x8c6cca=_0x863d24;var _0x2d6fe6;return(_0x2d6fe6=new URL(window[_0x8c6cca(0x323)][_0x8c6cca(0x1ec)])['searchParams']['get'](_0x358afc))!=null?_0x2d6fe6:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x863d24(0x2b7)],Jt=(_0x59f010,_0x1ca652,_0x314fad)=>_0x1ca652 in _0x59f010?qt(_0x59f010,_0x1ca652,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x314fad}):_0x59f010[_0x1ca652]=_0x314fad,Zt=(_0x146d6b,_0x4420bf,_0x5342a3,_0x1e3d2b)=>{const _0x4c5b6d=_0x863d24;for(var _0x24f5f1=_0x1e3d2b>0x1?void 0x0:_0x1e3d2b?zt(_0x4420bf,_0x5342a3):_0x4420bf,_0x11c3a8=_0x146d6b[_0x4c5b6d(0x2a3)]-0x1,_0x396471;_0x11c3a8>=0x0;_0x11c3a8--)(_0x396471=_0x146d6b[_0x11c3a8])&&(_0x24f5f1=_0x396471(_0x24f5f1)||_0x24f5f1);return _0x24f5f1;},he=(_0x248f4d,_0x575303)=>(_0x426fc5,_0x5cb23d)=>_0x575303(_0x426fc5,_0x5cb23d,_0x248f4d),Qt=(_0x7030fa,_0x42007c,_0x11c612)=>Jt(_0x7030fa,_0x42007c+'',_0x11c612);const es=_0x863d24(0x1a6);exports[_0x863d24(0x2f4)]=class extends a[_0x863d24(0x234)]{constructor(_0xa50f77=Ue,_0x24002b,_0x37386b,_0x38e566){const _0x50c240=_0x863d24;super(),this[_0x50c240(0x35d)]=_0xa50f77,this['_renderManagerService']=_0x24002b,this[_0x50c240(0x2d6)]=_0x37386b,this['_configService']=_0x38e566;const {..._0x27dc96}=a['merge']({},Ue,this[_0x50c240(0x35d)]);this[_0x50c240(0x3e3)]['setConfig']($t,_0x27dc96);}[_0x863d24(0x342)](){const _0x1a8ad7=_0x863d24;this[_0x1a8ad7(0x196)](),this[_0x1a8ad7(0x252)]();}[_0x863d24(0x1d9)](){const _0xffa1b6=_0x863d24;this[_0xffa1b6(0x1fc)]();}['_registerDependencies'](){const _0x480d9f=_0x863d24;var _0x3d98b7;const _0x23d2a2=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G['ISocketService'],{'useClass':G[_0x480d9f(0x2eb)]}],[u[_0x480d9f(0x1df)],{'useClass':ge}],[exports[_0x480d9f(0x19e)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x480d9f(0x260)](this[_0x480d9f(0x2d6)],a[_0x480d9f(0x295)](_0x23d2a2,(_0x3d98b7=this[_0x480d9f(0x35d)])==null?void 0x0:_0x3d98b7[_0x480d9f(0x251)]));}[_0x863d24(0x1fc)](){const _0x56031d=_0x863d24;this[_0x56031d(0x2f3)](this[_0x56031d(0x208)]['registerRenderModule'](a[_0x56031d(0x2d8)][_0x56031d(0x1d7)],[fe])),this[_0x56031d(0x2f3)](this['_renderManagerService'][_0x56031d(0x2e9)](a['UniverInstanceType']['UNIVER_SHEET'],[ve]));}[_0x863d24(0x252)](){const _0x394bd5=_0x863d24;a[_0x394bd5(0x2cb)](this[_0x394bd5(0x2d6)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x394bd5(0x2a8)]]]);}},Qt(exports[_0x863d24(0x2f4)],_0x863d24(0x376),es),exports[_0x863d24(0x2f4)]=Zt([a[_0x863d24(0x18c)](u[_0x863d24(0x3f9)]),he(0x1,p[_0x863d24(0x321)]),he(0x2,a[_0x863d24(0x37c)](a[_0x863d24(0x401)])),he(0x3,a[_0x863d24(0x257)])],exports[_0x863d24(0x2f4)]);var ts=Object[_0x863d24(0x2b7)],ss=(_0x967f29,_0x474c28,_0xfaae9e,_0x7114c5)=>{const _0x172d34=_0x863d24;for(var _0x167725=_0x7114c5>0x1?void 0x0:_0x7114c5?ts(_0x474c28,_0xfaae9e):_0x474c28,_0x1af112=_0x967f29[_0x172d34(0x2a3)]-0x1,_0x17f4e8;_0x1af112>=0x0;_0x1af112--)(_0x17f4e8=_0x967f29[_0x1af112])&&(_0x167725=_0x17f4e8(_0x167725)||_0x167725);return _0x167725;},H=(_0x4dc7cb,_0x39186e)=>(_0x5bf696,_0xe05af7)=>_0x39186e(_0x5bf696,_0xe05af7,_0x4dc7cb);exports['BrowserCollaborationSocketService']=class extends u['CollaborationSocketService']{constructor(_0x2d896a,_0x4aa366,_0xbc27fc,_0x230d87,_0x4570f7){super(_0x2d896a,_0x4aa366,_0xbc27fc,_0x230d87,_0x4570f7);}async[_0x863d24(0x1ae)](_0x514b7d){const _0x306587=_0x863d24,_0x2227b2=await this[_0x306587(0x3dd)](),_0x326596=this[_0x306587(0x310)](_0x514b7d,_0x2227b2);return this['_doCreateSocket'](_0x326596);}['_createSocketURL'](_0x126500,_0x3b5dcb){const _0x34c710=_0x863d24,_0x2860eb=typeof window>'u'?new URL(_0x126500):new URL(_0x126500,window[_0x34c710(0x323)][_0x34c710(0x217)]);_0x2860eb[_0x34c710(0x3d0)][_0x34c710(0x3b4)](_0x34c710(0x2b6),_0x3b5dcb);const _0x4d06d4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x34c710(0x323)]['search']);return _0x4d06d4[_0x34c710(0x1d2)](_0x34c710(0x1d5))&&_0x2860eb[_0x34c710(0x3d0)]['set']('runId',_0x4d06d4['get'](_0x34c710(0x1d5))),_0x2860eb['toString']();}async[_0x863d24(0x3dd)](){const _0x1c217f=_0x863d24;var _0x17ad0b,_0x58da7,_0x570373;const _0x4951cc=this['_configService'][_0x1c217f(0x1ca)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x4cba6f=(_0x17ad0b=_0x4951cc==null?void 0x0:_0x4951cc['wsSessionTicketUrl'])!=null?_0x17ad0b:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x570373=(_0x58da7=(await this[_0x1c217f(0x275)][_0x1c217f(0x1d2)](_0x4cba6f,{'headers':{'Content-Type':_0x1c217f(0x38e)}}))[_0x1c217f(0x2c4)])==null?void 0x0:_0x58da7[_0x1c217f(0x3da)])!=null?_0x570373:'';}},exports[_0x863d24(0x1b8)]=ss([H(0x0,a[_0x863d24(0x37c)](a['Injector'])),H(0x1,a[_0x863d24(0x37c)](G[_0x863d24(0x258)])),H(0x2,a[_0x863d24(0x257)]),H(0x3,a[_0x863d24(0x327)]),H(0x4,m[_0x863d24(0x214)])],exports[_0x863d24(0x1b8)]);const Me=0x7530,Le=_0x863d24(0x1f1);class is extends a[_0x863d24(0x312)]{constructor(){const _0x5822e5=_0x863d24;super(),h(this,_0x5822e5(0x3dc),a[_0x5822e5(0x259)]()),h(this,_0x5822e5(0x2e8),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x5822e5(0x305),null),h(this,_0x5822e5(0x2f5),new Map()),h(this,_0x5822e5(0x247),new Map()),this['_init']();}[_0x863d24(0x2c0)](){const _0x3d5d6f=_0x863d24;super[_0x3d5d6f(0x2c0)](),this['_clearOtherTimers'][_0x3d5d6f(0x26d)]((_0x1bfdd7,_0x302bdf)=>this[_0x3d5d6f(0x28b)](_0x302bdf)),this[_0x3d5d6f(0x305)]&&window[_0x3d5d6f(0x273)](this[_0x3d5d6f(0x305)]);}[_0x863d24(0x198)](_0x56d727){const _0x9cca48=_0x863d24;return this[_0x9cca48(0x2ca)](_0x56d727)['pipe'](d['distinctUntilChanged']());}[_0x863d24(0x1b0)](_0x11196c){const _0x4b9603=_0x863d24;this['_selfUnitIDs']['size']===0x0&&this[_0x4b9603(0x211)](),this[_0x4b9603(0x2e8)][_0x4b9603(0x3c9)](_0x11196c),this[_0x4b9603(0x26f)]({'type':0x0,'memberID':this[_0x4b9603(0x3dc)],'unitIDs':[_0x11196c],'isForwarded':!0x1});}[_0x863d24(0x1e0)](_0x1b6546){const _0x53db25=_0x863d24;this[_0x53db25(0x2e8)][_0x53db25(0x30a)](_0x1b6546),this[_0x53db25(0x2e8)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x53db25(0x273)](this['_heartbeatTimer']);}[_0x863d24(0x3cd)](){const _0x2f297c=_0x863d24;this[_0x2f297c(0x2f3)](a[_0x2f297c(0x2e0)](d['fromEvent'](window,_0x2f297c(0x27a))['subscribe'](_0x4500b0=>{const _0x949621=_0x2f297c;if(_0x4500b0[_0x949621(0x30f)]!==Le||!_0x4500b0['newValue'])return;const _0x54329=JSON[_0x949621(0x22c)](_0x4500b0['newValue']);this[_0x949621(0x38a)](_0x54329);}))),window['addEventListener'](_0x2f297c(0x2d9),()=>this['_send']({'type':0x1,'memberID':this[_0x2f297c(0x3dc)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x2426ec){const _0x18c031=_0x863d24;switch(_0x2426ec[_0x18c031(0x357)]){case 0x0:this[_0x18c031(0x3fa)](_0x2426ec);break;case 0x1:this['_handleLeaveEvent'](_0x2426ec);break;case 0x2:this[_0x18c031(0x1e2)](_0x2426ec);break;}}[_0x863d24(0x3fa)](_0x81888f){const _0x49eb47=_0x863d24,{unitIDs:_0x15fba1,memberID:_0x31567b,isForwarded:_0x59dd0e}=_0x81888f;_0x15fba1[_0x49eb47(0x26d)](_0x7d4232=>{const _0x122c23=_0x49eb47;if(!_0x59dd0e&&this['_unitOnClients'][_0x122c23(0x1a9)](_0x7d4232)&&this[_0x122c23(0x2ca)](_0x7d4232)['next'](u[_0x122c23(0x320)][_0x122c23(0x2cf)]),!this[_0x122c23(0x226)][_0x122c23(0x1a9)](_0x7d4232)||!this[_0x122c23(0x226)]['get'](_0x7d4232)[_0x122c23(0x1a9)](_0x31567b)){const _0x15e8fe=this[_0x122c23(0x226)][_0x122c23(0x1d2)](_0x7d4232)||new Set();_0x15e8fe['add'](_0x31567b),this['_unitOnClients']['set'](_0x7d4232,_0x15e8fe),this[_0x122c23(0x222)](_0x31567b);}}),_0x59dd0e||this['_send']({'type':0x0,'memberID':this[_0x49eb47(0x3dc)],'unitIDs':[...this[_0x49eb47(0x2e8)]],'isForwarded':!0x0});}[_0x863d24(0x222)](_0x41693c){const _0x3f669e=_0x863d24;this[_0x3f669e(0x28b)](_0x41693c);const _0x1816ca=window[_0x3f669e(0x23e)](()=>{const _0x3552af=_0x3f669e;this[_0x3552af(0x226)][_0x3552af(0x26d)](_0x5beb4d=>{const _0x502f03=_0x3552af;_0x5beb4d[_0x502f03(0x30a)](_0x41693c);});},Me*0x2);this[_0x3f669e(0x2f5)][_0x3f669e(0x3b4)](_0x41693c,_0x1816ca);}[_0x863d24(0x28b)](_0x39c643){const _0x1061f1=_0x863d24;if(this[_0x1061f1(0x2f5)][_0x1061f1(0x1a9)](_0x39c643)){const _0x273636=this[_0x1061f1(0x2f5)][_0x1061f1(0x1d2)](_0x39c643);_0x273636&&window[_0x1061f1(0x1e5)](_0x273636),this[_0x1061f1(0x2f5)][_0x1061f1(0x3b4)](_0x39c643,null);}}[_0x863d24(0x3bd)](_0x137ec4){const _0x11ea03=_0x863d24,{memberID:_0x6075cf,unitIDs:_0x505e6c}=_0x137ec4;_0x505e6c[_0x11ea03(0x26d)](_0x5710dd=>{const _0xd86cf7=_0x11ea03;var _0x216519;const _0x165bdc=this[_0xd86cf7(0x226)][_0xd86cf7(0x1d2)](_0x5710dd);_0x165bdc&&(_0x165bdc[_0xd86cf7(0x30a)](_0x6075cf),(_0x216519=this[_0xd86cf7(0x2ca)](_0x5710dd))==null||_0x216519[_0xd86cf7(0x1d6)](_0x165bdc[_0xd86cf7(0x322)]===0x0?u[_0xd86cf7(0x320)][_0xd86cf7(0x32e)]:u['UnitStatus'][_0xd86cf7(0x2cf)]));}),this['_removeClearOtherTimer'](_0x6075cf);}['_handleHeartbeatEvent'](_0x291915){this['_scheduleClearOtherTimer'](_0x291915['memberID']);}[_0x863d24(0x26f)](_0xfbc50e){const _0x23460b=_0x863d24;localStorage[_0x23460b(0x301)](Le,JSON[_0x23460b(0x355)](_0xfbc50e));}[_0x863d24(0x211)](){const _0x89c6a8=_0x863d24;this[_0x89c6a8(0x305)]=window[_0x89c6a8(0x206)](()=>{const _0x6d5906=_0x89c6a8;this[_0x6d5906(0x26f)]({'type':0x2,'memberID':this[_0x6d5906(0x3dc)]});},Me);}['_ensureSubject'](_0x3ba859){const _0x2d3ded=_0x863d24;return this['_unitStatus'][_0x2d3ded(0x1a9)](_0x3ba859)||this[_0x2d3ded(0x247)]['set'](_0x3ba859,new d[(_0x2d3ded(0x199))](u[_0x2d3ded(0x320)][_0x2d3ded(0x32e)])),this[_0x2d3ded(0x247)][_0x2d3ded(0x1d2)](_0x3ba859);}}var je=(_0x462d45=>(_0x462d45[_0x462d45[_0x863d24(0x1e7)]=0x0]='UNDEFINED',_0x462d45[_0x462d45['OK']=0x1]='OK',_0x462d45[_0x462d45['INTERNAL_ERROR']=0x2]=_0x863d24(0x2cd),_0x462d45[_0x462d45[_0x863d24(0x33f)]=0x3]='PERMISSION_DENIED',_0x462d45[_0x462d45[_0x863d24(0x291)]=0x4]=_0x863d24(0x291),_0x462d45[_0x462d45['UNAUTHENTICATED']=0x5]=_0x863d24(0x200),_0x462d45[_0x462d45['ALREADY_EXISTS']=0x6]=_0x863d24(0x254),_0x462d45[_0x462d45[_0x863d24(0x33e)]=0x7]=_0x863d24(0x33e),_0x462d45[_0x462d45['TOO_MANY_REQUESTS']=0x8]=_0x863d24(0x341),_0x462d45[_0x462d45['COMPLETION_FINISHED']=0x9]=_0x863d24(0x24e),_0x462d45[_0x462d45[_0x863d24(0x352)]=0xa]=_0x863d24(0x352),_0x462d45[_0x462d45[_0x863d24(0x2ce)]=0xb]=_0x863d24(0x2ce),_0x462d45[_0x462d45[_0x863d24(0x2d2)]=0xc]=_0x863d24(0x2d2),_0x462d45[_0x462d45[_0x863d24(0x1f4)]=0xd]=_0x863d24(0x1f4),_0x462d45[_0x462d45[_0x863d24(0x22e)]=0xe]=_0x863d24(0x22e),_0x462d45[_0x462d45[_0x863d24(0x3f0)]=0x1389]=_0x863d24(0x3f0),_0x462d45[_0x462d45[_0x863d24(0x3f2)]=0x1771]=_0x863d24(0x3f2),_0x462d45[_0x462d45[_0x863d24(0x1b2)]=0x1772]=_0x863d24(0x1b2),_0x462d45[_0x462d45[_0x863d24(0x1c5)]=0x1773]=_0x863d24(0x1c5),_0x462d45[_0x462d45[_0x863d24(0x287)]=0x1b59]=_0x863d24(0x287),_0x462d45[_0x462d45['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x863d24(0x3f7),_0x462d45[_0x462d45[_0x863d24(0x21e)]=0x1b5b]=_0x863d24(0x21e),_0x462d45[_0x462d45['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x863d24(0x264),_0x462d45[_0x462d45[_0x863d24(0x3b0)]=0x1b5d]=_0x863d24(0x3b0),_0x462d45[_0x462d45['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x863d24(0x3fe),_0x462d45[_0x462d45['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x863d24(0x255),_0x462d45[_0x462d45[_0x863d24(0x243)]=0x232a]=_0x863d24(0x243),_0x462d45[_0x462d45[_0x863d24(0x2b3)]=0x232b]=_0x863d24(0x2b3),_0x462d45[_0x462d45[_0x863d24(0x328)]=0x232c]=_0x863d24(0x328),_0x462d45[_0x462d45[_0x863d24(0x22b)]=0x232d]=_0x863d24(0x22b),_0x462d45[_0x462d45[_0x863d24(0x1a3)]=0x2711]=_0x863d24(0x1a3),_0x462d45[_0x462d45[_0x863d24(0x1dd)]=0x2712]=_0x863d24(0x1dd),_0x462d45[_0x462d45[_0x863d24(0x21f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x462d45[_0x462d45[_0x863d24(0x285)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x462d45[_0x462d45[_0x863d24(0x388)]=0x271a]=_0x863d24(0x388),_0x462d45[_0x462d45['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x863d24(0x316),_0x462d45[_0x462d45[_0x863d24(0x3f5)]=0x271c]=_0x863d24(0x3f5),_0x462d45[_0x462d45[_0x863d24(0x34b)]=0x271d]=_0x863d24(0x34b),_0x462d45[_0x462d45['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x462d45[_0x462d45['YUUMI_AI_RUN_FAILED']=0x271f]=_0x863d24(0x190),_0x462d45[_0x462d45[_0x863d24(0x377)]=0x2720]=_0x863d24(0x377),_0x462d45[_0x462d45[_0x863d24(0x363)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x462d45[_0x462d45[_0x863d24(0x3e5)]=0x2ee1]=_0x863d24(0x3e5),_0x462d45[_0x462d45[_0x863d24(0x313)]=0x2ee2]=_0x863d24(0x313),_0x462d45[_0x462d45[_0x863d24(0x2b2)]=0x2ee3]=_0x863d24(0x2b2),_0x462d45[_0x462d45['USER_NOT_INVITED_CODE']=0x2ee4]=_0x863d24(0x3df),_0x462d45[_0x462d45[_0x863d24(0x33a)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x462d45[_0x462d45[_0x863d24(0x2f9)]=0x32c9]=_0x863d24(0x2f9),_0x462d45[_0x462d45[_0x863d24(0x38b)]=0x32ca]=_0x863d24(0x38b),_0x462d45[_0x462d45[_0x863d24(0x3ab)]=0x32cb]=_0x863d24(0x3ab),_0x462d45[_0x462d45['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x462d45))(je||{}),ns=Object[_0x863d24(0x2b7)],rs=(_0x4f98b1,_0x30f9ca,_0x1fe415,_0x314c9e)=>{for(var _0xe1d572=_0x314c9e>0x1?void 0x0:_0x314c9e?ns(_0x30f9ca,_0x1fe415):_0x30f9ca,_0x28d9d4=_0x4f98b1['length']-0x1,_0x288362;_0x28d9d4>=0x0;_0x28d9d4--)(_0x288362=_0x4f98b1[_0x28d9d4])&&(_0xe1d572=_0x288362(_0xe1d572)||_0xe1d572);return _0xe1d572;},ue=(_0x54f8a9,_0xc1b1c6)=>(_0x3d99ae,_0x50f4f7)=>_0xc1b1c6(_0x3d99ae,_0x50f4f7,_0x54f8a9);exports[_0x863d24(0x294)]=class extends a[_0x863d24(0x312)]{constructor(_0x377227,_0x36f895,_0x9a82b4){const _0x1251d6=_0x863d24;super(),this[_0x1251d6(0x299)]=_0x377227,this[_0x1251d6(0x275)]=_0x36f895,this['_configService']=_0x9a82b4;}async[_0x863d24(0x304)](_0x5ca05e,_0x4e97d7,_0x4d090d,..._0x20b0ae){const _0x53e6d1=_0x863d24;var _0x20d34e,_0x2e6769,_0x2bfcbf,_0x5112b0;const _0x55bba9=this['_instanceService'][_0x53e6d1(0x2af)]();if(!_0x55bba9)throw new Error(_0x53e6d1(0x353));const _0x4c9a2e=((_0x20d34e=this[_0x53e6d1(0x3e3)][_0x53e6d1(0x1ca)](u[_0x53e6d1(0x1fd)]))!=null?_0x20d34e:u[_0x53e6d1(0x351)])+'/'+_0x5ca05e+_0x53e6d1(0x372)+_0x4e97d7,_0x2cf3d6=new URL(window[_0x53e6d1(0x323)]['href']),_0x133202={'scriptId':_0x5ca05e,'runId':(_0x2e6769=_0x2cf3d6[_0x53e6d1(0x3d0)][_0x53e6d1(0x1d2)](_0x53e6d1(0x1d5)))!=null?_0x2e6769:'','function':_0x4e97d7,'unitId':_0x55bba9[_0x53e6d1(0x1ef)](),'argsOfFunction':JSON['stringify'](_0x20b0ae),'invokeId':(_0x2bfcbf=_0x4d090d[_0x53e6d1(0x216)])!=null?_0x2bfcbf:'','executionId':(_0x5112b0=_0x4d090d['executionId'])!=null?_0x5112b0:''};try{const _0x5801cd=await this[_0x53e6d1(0x275)]['post'](_0x4c9a2e,{'body':_0x133202});return _0x5801cd[_0x53e6d1(0x2c4)]['error']&&_0x5801cd[_0x53e6d1(0x2c4)][_0x53e6d1(0x3ca)][_0x53e6d1(0x374)]!==je['OK']?_0x53e6d1(0x318):_0x5801cd[_0x53e6d1(0x2c4)][_0x53e6d1(0x39c)];}catch{return'Failed';}}},exports[_0x863d24(0x294)]=rs([ue(0x0,a[_0x863d24(0x1c1)]),ue(0x1,a[_0x863d24(0x37c)](G[_0x863d24(0x258)])),ue(0x2,a[_0x863d24(0x257)])],exports[_0x863d24(0x294)]),exports['CollaborationStatusDisplay']=xe,exports['IURLService']=Ee,exports[_0x863d24(0x262)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=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 _0x51c506=_0x3e66;function _0x58b2(){const _0x492643=['Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20Conflict','Edit\x20conflicts','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Syncing\x20server\x20data...','325948xbBBnC','2115312aGfNGw','Connection\x20failed,\x20please\x20check\x20your\x20network.','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.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','2423529qwZjDN','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','52692XNInOt','1015965eHrmlZ','6vfJGBU','82670vlWdyk','exports','Syncing...','Click\x20to\x20Reconnect','1199807EEbfcS','6ZfHhPB','Local\x20file'];_0x58b2=function(){return _0x492643;};return _0x58b2();}(function(_0x56f8c6,_0x108e39){const _0x77298d=_0x3e66,_0x3feb8d=_0x56f8c6();while(!![]){try{const _0x490c66=parseInt(_0x77298d(0x7d))/0x1*(-parseInt(_0x77298d(0x82))/0x2)+-parseInt(_0x77298d(0x7a))/0x3+-parseInt(_0x77298d(0x72))/0x4+-parseInt(_0x77298d(0x7b))/0x5+parseInt(_0x77298d(0x7c))/0x6*(parseInt(_0x77298d(0x81))/0x7)+parseInt(_0x77298d(0x73))/0x8+parseInt(_0x77298d(0x78))/0x9;if(_0x490c66===_0x108e39)break;else _0x3feb8d['push'](_0x3feb8d['shift']());}catch(_0x220474){_0x3feb8d['push'](_0x3feb8d['shift']());}}}(_0x58b2,0x25cda));const e={'collab-client':{'tooltip':{'reconnect':_0x51c506(0x80)}},'collabStatus':{'fetchMiss':_0x51c506(0x71),'conflict':_0x51c506(0x6f),'notCollab':_0x51c506(0x83),'synced':'Synced','syncing':_0x51c506(0x7f),'offline':_0x51c506(0x6d)},'session':{'connection-failed':_0x51c506(0x74),'will-retry':_0x51c506(0x84),'room-full':_0x51c506(0x70),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x51c506(0x6e),'content':_0x51c506(0x75)},'permission':{'title':'Authentication\x20Error','content':_0x51c506(0x76)},'collaboration':{'single-unit':{'warning':_0x51c506(0x79)},'closeRoom':_0x51c506(0x77)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x3e66(_0x331ed5,_0x58bf21){const _0x58b240=_0x58b2();return _0x3e66=function(_0x3e66b6,_0x4ae635){_0x3e66b6=_0x3e66b6-0x6d;let _0x239201=_0x58b240[_0x3e66b6];return _0x239201;},_0x3e66(_0x331ed5,_0x58bf21);}module[_0x51c506(0x7e)]=e;