@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202505311606 → 0.8.0-nightly.202506011606

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 _0xc31851=_0x47f2;function _0x47f2(_0x1673ab,_0x14b5bb){const _0x334bc3=_0x334b();return _0x47f2=function(_0x47f2d0,_0x25e586){_0x47f2d0=_0x47f2d0-0x17b;let _0x465287=_0x334bc3[_0x47f2d0];return _0x465287;},_0x47f2(_0x1673ab,_0x14b5bb);}(function(_0x136ac3,_0xf9f489){const _0x277c3e=_0x47f2,_0x1d4936=_0x136ac3();while(!![]){try{const _0x3a179c=-parseInt(_0x277c3e(0x185))/0x1*(parseInt(_0x277c3e(0x181))/0x2)+parseInt(_0x277c3e(0x180))/0x3*(parseInt(_0x277c3e(0x18c))/0x4)+parseInt(_0x277c3e(0x186))/0x5+parseInt(_0x277c3e(0x184))/0x6*(-parseInt(_0x277c3e(0x182))/0x7)+-parseInt(_0x277c3e(0x183))/0x8+parseInt(_0x277c3e(0x18a))/0x9*(parseInt(_0x277c3e(0x188))/0xa)+parseInt(_0x277c3e(0x189))/0xb;if(_0x3a179c===_0xf9f489)break;else _0x1d4936['push'](_0x1d4936['shift']());}catch(_0x256d96){_0x1d4936['push'](_0x1d4936['shift']());}}}(_0x334b,0xe60eb));function _0x334b(){const _0x1666e6=['3634106PsbiEL','7QnnlFJ','9712144nCyLhW','7915740OoWgbS','1vTGWmV','414790HqHqDz','_injector','1880pYurUS','30408939GhBXtw','68616fBpywI','extend','28708QdRdDf','RemoteUniscriptService','@univerjs-pro/collaboration-client-ui','FUniver','get','runOnServer','423mkmqkE'];_0x334b=function(){return _0x1666e6;};return _0x334b();}const t=require(_0xc31851(0x17c)),e=require('@univerjs/core/facade');class c extends e[_0xc31851(0x17d)]{[_0xc31851(0x17f)](_0x1c24b6,_0x19dd04,..._0x31c6d4){const _0x4a7345=_0xc31851;return this[_0x4a7345(0x187)][_0x4a7345(0x17e)](t[_0x4a7345(0x17b)])[_0x4a7345(0x17f)](_0x1c24b6,_0x19dd04,{},..._0x31c6d4);}}e[_0xc31851(0x17d)][_0xc31851(0x18b)](c);
1
+ 'use strict';const _0x4e23fa=_0x13d8;(function(_0xbe2059,_0x2a492e){const _0x2e10a1=_0x13d8,_0x586894=_0xbe2059();while(!![]){try{const _0x23f0ba=-parseInt(_0x2e10a1(0xe9))/0x1*(-parseInt(_0x2e10a1(0xf2))/0x2)+parseInt(_0x2e10a1(0xf0))/0x3*(-parseInt(_0x2e10a1(0xec))/0x4)+-parseInt(_0x2e10a1(0xf3))/0x5+parseInt(_0x2e10a1(0xed))/0x6*(parseInt(_0x2e10a1(0xf1))/0x7)+parseInt(_0x2e10a1(0xef))/0x8+-parseInt(_0x2e10a1(0xf6))/0x9+-parseInt(_0x2e10a1(0xf7))/0xa*(-parseInt(_0x2e10a1(0xf9))/0xb);if(_0x23f0ba===_0x2a492e)break;else _0x586894['push'](_0x586894['shift']());}catch(_0x4474ec){_0x586894['push'](_0x586894['shift']());}}}(_0x1337,0x74caa));const t=require(_0x4e23fa(0xea)),e=require(_0x4e23fa(0xee));function _0x13d8(_0xb7698e,_0x37de37){const _0x133715=_0x1337();return _0x13d8=function(_0x13d8ff,_0x326054){_0x13d8ff=_0x13d8ff-0xe9;let _0x536ff1=_0x133715[_0x13d8ff];return _0x536ff1;},_0x13d8(_0xb7698e,_0x37de37);}function _0x1337(){const _0x3cdac7=['FUniver','11TwXHtp','213Ufqefd','@univerjs-pro/collaboration-client-ui','_injector','29000xelryb','19830JNJKTq','@univerjs/core/facade','5910392dYpeVF','363gRDkCW','2009LRdLaq','3726JBMdJR','2486065LaEBgX','extend','runOnServer','7957476wGhWMv','6528520FvfrKf'];_0x1337=function(){return _0x3cdac7;};return _0x1337();}class c extends e[_0x4e23fa(0xf8)]{['runOnServer'](_0x2e55b8,_0x560aab,..._0x46c950){const _0x535cc5=_0x4e23fa;return this[_0x535cc5(0xeb)]['get'](t['RemoteUniscriptService'])[_0x535cc5(0xf5)](_0x2e55b8,_0x560aab,{},..._0x46c950);}}e[_0x4e23fa(0xf8)][_0x4e23fa(0xf4)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4b8b84=_0xe05a;(function(_0x136eb1,_0x21bc5a){const _0x37fba2=_0xe05a,_0x15d8e2=_0x136eb1();while(!![]){try{const _0x10b207=parseInt(_0x37fba2(0x26f))/0x1+-parseInt(_0x37fba2(0x32c))/0x2*(-parseInt(_0x37fba2(0x3dc))/0x3)+-parseInt(_0x37fba2(0x275))/0x4+parseInt(_0x37fba2(0x297))/0x5*(-parseInt(_0x37fba2(0x342))/0x6)+-parseInt(_0x37fba2(0x322))/0x7*(parseInt(_0x37fba2(0x391))/0x8)+parseInt(_0x37fba2(0x1c7))/0x9+parseInt(_0x37fba2(0x3ae))/0xa*(parseInt(_0x37fba2(0x165))/0xb);if(_0x10b207===_0x21bc5a)break;else _0x15d8e2['push'](_0x15d8e2['shift']());}catch(_0x52c000){_0x15d8e2['push'](_0x15d8e2['shift']());}}}(_0x355b,0xb7eba));var Ve=Object[_0x4b8b84(0x2e2)],Xe=(_0x4c1e84,_0x1c6ad2,_0x396036)=>_0x1c6ad2 in _0x4c1e84?Ve(_0x4c1e84,_0x1c6ad2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x396036}):_0x4c1e84[_0x1c6ad2]=_0x396036,h=(_0x1f2258,_0x5cdb71,_0x4b440e)=>Xe(_0x1f2258,typeof _0x5cdb71!=_0x4b8b84(0x3a7)?_0x5cdb71+'':_0x5cdb71,_0x4b440e);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require(_0x4b8b84(0x359)),G=require(_0x4b8b84(0x236)),b=require('@univerjs/docs-ui'),Ge=require(_0x4b8b84(0x336)),d=require(_0x4b8b84(0x335)),Y=require(_0x4b8b84(0x286)),m=require('@univerjs-pro/collaboration'),Ee=require('@univerjs/engine-formula'),g=require(_0x4b8b84(0x2bc)),$=require(_0x4b8b84(0x3c4)),X=require('@univerjs/sheets-ui'),w=require(_0x4b8b84(0x34a)),T=require(_0x4b8b84(0x1c6)),D=require(_0x4b8b84(0x1c5)),M=require(_0x4b8b84(0x25d)),Ke=require(_0x4b8b84(0x198));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x27996e,_0x154b6f,_0x1c9bae,_0x38f5a1)=>{for(var _0x263b06=_0x38f5a1>0x1?void 0x0:_0x38f5a1?qe(_0x154b6f,_0x1c9bae):_0x154b6f,_0x276a31=_0x27996e['length']-0x1,_0x1f992a;_0x276a31>=0x0;_0x276a31--)(_0x1f992a=_0x27996e[_0x276a31])&&(_0x263b06=_0x1f992a(_0x263b06)||_0x263b06);return _0x263b06;},Te=(_0x454844,_0x1ae0b3)=>(_0x24d506,_0x81a6d3)=>_0x1ae0b3(_0x24d506,_0x81a6d3,_0x454844);let de=class extends a[_0x4b8b84(0x230)]{constructor(_0x404374,_0x1ac61e){const _0xf51877=_0x4b8b84;super(),this[_0xf51877(0x233)]=_0x404374,this[_0xf51877(0x290)]=_0x1ac61e,this['_init']();}['_init'](){const _0x728170=_0x4b8b84,_0x51273a=this;this[_0x728170(0x307)](this[_0x728170(0x233)][_0x728170(0x164)]({'onBeforePasteImage':async _0x473485=>{const _0x465c46=_0x728170,_0x291e32=await _0x51273a[_0x465c46(0x290)]['saveImage'](_0x473485);return _0x291e32?{'source':_0x291e32[_0x465c46(0x295)],'imageSourceType':_0x291e32[_0x465c46(0x232)]}:null;}}));}};de=ze([Te(0x0,b[_0x4b8b84(0x237)]),Te(0x1,Ge[_0x4b8b84(0x17e)])],de);const Oe=['purple.300','jiqing.500',_0x4b8b84(0x2ef),_0x4b8b84(0x2ee),'blue.400',_0x4b8b84(0x17f)];class me extends a[_0x4b8b84(0x3c2)]{constructor(){const _0x54283d=_0x4b8b84;super(...arguments),h(this,_0x54283d(0x2b5),new Map()),h(this,_0x54283d(0x234),0x0);}[_0x4b8b84(0x284)](_0x1d0a61){const _0x39efa5=_0x4b8b84;if(this[_0x39efa5(0x2b5)][_0x39efa5(0x315)](_0x1d0a61))return this['_assignedColors'][_0x39efa5(0x21c)](_0x1d0a61);const _0x6e346b=Oe[this['_colorIndex']];return this[_0x39efa5(0x234)]=(this[_0x39efa5(0x234)]+0x1)%Oe[_0x39efa5(0x33e)],this[_0x39efa5(0x2b5)][_0x39efa5(0x1b1)](_0x1d0a61,_0x6e346b),_0x6e346b;}}function we(_0x11fcba){const _0x56610a=_0x4b8b84;let _0x379c5c='';for(const _0x10d135 of _0x11fcba){const {startOffset:_0x4189f2,endOffset:_0x595ae9,isActive:_0x4cffe9,rangeType:_0x3b920b,segmentId:_0x5be02b,segmentPage:_0x5b1a41}=_0x10d135;_0x379c5c[_0x56610a(0x33e)]&&(_0x379c5c+=','),_0x379c5c+=_0x4189f2+':'+_0x595ae9+':'+(_0x4cffe9?'1':'0')+':'+_0x3b920b+':'+_0x5be02b+':'+_0x5b1a41;}return _0x379c5c;}function Je(_0x1a2a93){const _0x3c4ce8=_0x4b8b84,_0x8d671d=_0x1a2a93[_0x3c4ce8(0x3c5)](','),_0x25ced6=[];for(const _0xfeabcd of _0x8d671d){const [_0x184ec3,_0xc14bad,_0x2a3744,_0x2ce1a7,_0x29cf4c,_0x2fb9e8]=_0xfeabcd[_0x3c4ce8(0x3c5)](':');_0x25ced6[_0x3c4ce8(0x22d)]({'startOffset':Number(_0x184ec3),'endOffset':Number(_0xc14bad),'collapsed':_0x184ec3===_0xc14bad,'isActive':_0x2a3744==='1','rangeType':_0x2ce1a7===a[_0x3c4ce8(0x319)]['TEXT']?a[_0x3c4ce8(0x319)][_0x3c4ce8(0x3e7)]:a[_0x3c4ce8(0x319)][_0x3c4ce8(0x368)],'segmentId':typeof _0x29cf4c=='string'?String(_0x29cf4c):'','segmentPage':Number(_0x2fb9e8!=null?_0x2fb9e8:-0x1)});}return _0x25ced6[_0x3c4ce8(0x3e9)](_0x2a8c21=>_0x2a8c21[_0x3c4ce8(0x30e)])||(_0x25ced6[0x0][_0x3c4ce8(0x30e)]=!0x0),_0x25ced6;}class Ce extends a[_0x4b8b84(0x230)]{constructor(){const _0x40148a=_0x4b8b84;super(...arguments),h(this,_0x40148a(0x194),new d[(_0x40148a(0x17d))](null)),h(this,_0x40148a(0x3d0),this[_0x40148a(0x194)]['asObservable']());}[_0x4b8b84(0x2db)](_0x307f88){const _0x3891e7=_0x4b8b84,{unitID:_0x1ee2a6,memberID:_0x518266,textRanges:_0x5b103b}=_0x307f88,_0x223ac4=we(_0x5b103b);if(_0x223ac4==='')return;const _0x55dabd={'unitID':_0x1ee2a6,'memberID':_0x518266,'selection':_0x223ac4};this['_collabCursorState$'][_0x3891e7(0x1c4)](_0x55dabd);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x2f4084,_0x1b31b7,_0x9bfb4f,_0x9cfa43)=>{const _0xc3195b=_0x4b8b84;for(var _0x1c3586=_0x9cfa43>0x1?void 0x0:_0x9cfa43?Ze(_0x1b31b7,_0x9bfb4f):_0x1b31b7,_0x2a5b86=_0x2f4084[_0xc3195b(0x33e)]-0x1,_0x9195;_0x2a5b86>=0x0;_0x2a5b86--)(_0x9195=_0x2f4084[_0x2a5b86])&&(_0x1c3586=_0x9195(_0x1c3586)||_0x1c3586);return _0x1c3586;},L=(_0x2498f4,_0x5a02b0)=>(_0x15dec6,_0x43d6e8)=>_0x5a02b0(_0x15dec6,_0x43d6e8,_0x2498f4);const et=0x12c,tt=0x64;let fe=class extends a[_0x4b8b84(0x230)]{constructor(_0x2e81db,_0x5ab0ea,_0x7ebbe,_0x334949,_0x2aa74d,_0x963746,_0x515d51,_0x574122,_0x8899ff){const _0x267458=_0x4b8b84;super(),h(this,_0x267458(0x266),!0x1),h(this,'_init',!0x1),h(this,_0x267458(0x20b),new d[(_0x267458(0x17d))](new Map())),h(this,_0x267458(0x392),this[_0x267458(0x20b)][_0x267458(0x3ca)]()),h(this,_0x267458(0x190),new d[(_0x267458(0x17d))]([])),h(this,'roomMembers$',this[_0x267458(0x190)]['pipe'](d[_0x267458(0x31c)](et))),h(this,_0x267458(0x2fc),a[_0x267458(0x2cf)](_0x1d4d79=>{const _0x4a722e=_0x267458,_0x4352d5={'eventID':m[_0x4a722e(0x23e)][_0x4a722e(0x1e1)],'data':{'unitID':this[_0x4a722e(0x332)],'memberID':this[_0x4a722e(0x300)][_0x4a722e(0x1cc)](),'selection':we(_0x1d4d79)}};this['_session'][_0x4a722e(0x32f)](_0x4352d5,this[_0x4a722e(0x332)]);},tt)),(this[_0x267458(0x332)]=_0x2e81db,this['_session']=_0x5ab0ea,this['_injector']=_0x7ebbe,this[_0x267458(0x3d2)]=_0x334949,this['_memberService']=_0x2aa74d,this[_0x267458(0x20d)]=_0x963746,this[_0x267458(0x187)]=_0x515d51,this[_0x267458(0x1ac)]=_0x574122,this[_0x267458(0x244)]=_0x8899ff);}get[_0x4b8b84(0x2d4)](){const _0x2bc671=_0x4b8b84;return this[_0x2bc671(0x20b)][_0x2bc671(0x2b6)]();}get['roomMembers'](){const _0x556b33=_0x4b8b84;return this[_0x556b33(0x190)]['getValue']();}[_0x4b8b84(0x2ed)](){const _0x451ef1=_0x4b8b84;super[_0x451ef1(0x2ed)](),this['_cursorInfo$'][_0x451ef1(0x1c4)](new Map()),this[_0x451ef1(0x20b)]['complete'](),this[_0x451ef1(0x190)][_0x451ef1(0x1c4)]([]),this[_0x451ef1(0x190)][_0x451ef1(0x27a)]();}[_0x4b8b84(0x2e9)](){const _0x295422=_0x4b8b84;this[_0x295422(0x331)]||(this[_0x295422(0x331)]=!0x0,this[_0x295422(0x300)][_0x295422(0x366)][_0x295422(0x235)](d[_0x295422(0x218)](this['dispose$']))[_0x295422(0x2ea)](_0x1dfbf4=>{const _0x5d836e=_0x295422;_0x1dfbf4===u[_0x5d836e(0x353)][_0x5d836e(0x3e6)]?this[_0x5d836e(0x32b)]():this[_0x5d836e(0x24b)]();}),this[_0x295422(0x300)][_0x295422(0x209)][_0x295422(0x235)](d[_0x295422(0x218)](this[_0x295422(0x1a9)]))['subscribe'](_0x2f6580=>{const _0x32fb5f=_0x295422,_0x539f9e=_0x2f6580[_0x32fb5f(0x2e6)];_0x539f9e===m[_0x32fb5f(0x23e)][_0x32fb5f(0x1e1)]&&this[_0x32fb5f(0x27d)](_0x2f6580),_0x539f9e===m[_0x32fb5f(0x23e)][_0x32fb5f(0x367)]&&this['_onCursorDelete'](_0x2f6580);}),this[_0x295422(0x307)](this[_0x295422(0x244)]['onCommandExecuted'](_0x32f000=>{const _0x2278bd=_0x295422,_0x56af7b=_0x32f000[_0x2278bd(0x3b7)];_0x56af7b!=null&&this['_online']&&_0x32f000['id']===Y[_0x2278bd(0x31a)]['id']&&_0x56af7b[_0x2278bd(0x245)]===this['unitID']&&_0x56af7b['isEditing']===!0x1&&_0x56af7b[_0x2278bd(0x2d0)][_0x2278bd(0x33e)]>0x0&&this[_0x2278bd(0x2fc)](_0x56af7b['ranges']);})),this['_syncEditingCollabCursorService'][_0x295422(0x3d0)][_0x295422(0x235)](d[_0x295422(0x218)](this['dispose$']))[_0x295422(0x2ea)](_0x1dfe6e=>{const _0x4321b6=_0x295422;if((_0x1dfe6e==null?void 0x0:_0x1dfe6e['unitID'])!==this['unitID'])return;const _0xe2a55e={'eventID':m[_0x4321b6(0x23e)]['UPDATE_CURSOR'],'data':_0x1dfe6e};this[_0x4321b6(0x27d)](_0xe2a55e);}),this[_0x295422(0x307)](this[_0x295422(0x244)][_0x295422(0x2c5)](_0x344761=>{const _0x69df55=_0x295422;if(_0x344761['params']==null)return;const _0x553650=_0x344761[_0x69df55(0x3b7)];if(_0x344761['id']!==Y[_0x69df55(0x24a)]['id']||_0x553650[_0x69df55(0x245)]!==this[_0x69df55(0x332)])return;const _0x289ca0={'id':'doc.mutation.rich-text-editing','params':_0x553650},_0x56bf4c=this[_0x69df55(0x2d4)];for(const [_0x331217,_0x4b8e1e]of _0x56bf4c){const _0x38bd93={'id':_0x69df55(0x3cf),'params':{'unitId':this[_0x69df55(0x332)],'actions':null,'textRanges':_0x4b8e1e['ranges']}},_0x152119=this[_0x69df55(0x187)][_0x69df55(0x3ec)](_0x289ca0,_0x38bd93,!0x1);if(m[_0x69df55(0x37b)](_0x152119))throw _0x152119[_0x69df55(0x313)];_0x56bf4c['set'](_0x331217,{..._0x4b8e1e,'ranges':_0x152119[_0x69df55(0x260)]['params'][_0x69df55(0x215)]});}queueMicrotask(()=>{const _0x5ab155=_0x69df55;this['_cursorInfo$'][_0x5ab155(0x1c4)](_0x56bf4c);});})));}[_0x4b8b84(0x27d)](_0x5771fa){const _0x1712ee=_0x4b8b84;var _0xd9f27b,_0x363def;const {memberID:_0x14f5c3,selection:_0x23d8ee}=_0x5771fa['data'],_0x57e7bd=Je(_0x23d8ee),_0x463dc8=(_0x363def=(_0xd9f27b=this[_0x1712ee(0x193)][_0x1712ee(0x167)](this[_0x1712ee(0x332)],_0x14f5c3))==null?void 0x0:_0xd9f27b[_0x1712ee(0x1df)])!=null?_0x363def:_0x1712ee(0x3e0),_0x5ee807={'color':this[_0x1712ee(0x3d2)]['assignAColorForMemberID'](_0x14f5c3),'name':_0x463dc8,'ranges':_0x57e7bd},_0x56bc29=this[_0x1712ee(0x2d4)];_0x56bc29[_0x1712ee(0x1b1)](_0x14f5c3,_0x5ee807),this[_0x1712ee(0x20b)][_0x1712ee(0x1c4)](_0x56bc29);}[_0x4b8b84(0x3a0)](_0x33cb87){const _0x13c192=_0x4b8b84,{memberID:_0x2983b2}=_0x33cb87['data'],_0x45aebd=this[_0x13c192(0x2d4)];_0x45aebd['delete'](_0x2983b2),this[_0x13c192(0x20b)][_0x13c192(0x1c4)](_0x45aebd);}[_0x4b8b84(0x32b)](){const _0x2ee58f=_0x4b8b84;var _0xd67d33;if(this[_0x2ee58f(0x266)]=!0x0,((_0xd67d33=this[_0x2ee58f(0x1ac)][_0x2ee58f(0x26e)]())==null?void 0x0:_0xd67d33['getUnitId']())!==this[_0x2ee58f(0x332)])return;const _0x4c7352=this['_injector'][_0x2ee58f(0x21c)](Y[_0x2ee58f(0x323)])[_0x2ee58f(0x35a)]();Array[_0x2ee58f(0x1e6)](_0x4c7352)&&_0x4c7352[_0x2ee58f(0x33e)]>0x0&&this[_0x2ee58f(0x2fc)](_0x4c7352);}['_toggleOffline'](){const _0x52f646=_0x4b8b84;this[_0x52f646(0x266)]=!0x1;}};fe=Qe([L(0x2,a[_0x4b8b84(0x20f)](a[_0x4b8b84(0x258)])),L(0x3,a[_0x4b8b84(0x20f)](me)),L(0x4,a[_0x4b8b84(0x20f)](u[_0x4b8b84(0x1f3)])),L(0x5,a[_0x4b8b84(0x20f)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x4b8b84(0x333)]),L(0x8,a[_0x4b8b84(0x248)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x2d8fb8,_0x3fd6b1,_0x48f920,_0x2dba53)=>{for(var _0x578818=_0x2dba53>0x1?void 0x0:_0x2dba53?st(_0x3fd6b1,_0x48f920):_0x3fd6b1,_0x54ff9e=_0x2d8fb8['length']-0x1,_0x53bbe7;_0x54ff9e>=0x0;_0x54ff9e--)(_0x53bbe7=_0x2d8fb8[_0x54ff9e])&&(_0x578818=_0x53bbe7(_0x578818)||_0x578818);return _0x578818;},A=(_0xfd5c17,_0x5aab0a)=>(_0x28b774,_0x4454c4)=>_0x5aab0a(_0x28b774,_0x4454c4,_0xfd5c17);const nt=0x12c,rt=0x64,ot=()=>{let _0x4938e8=[],_0x191890=!0x1;return _0x52390a=>{_0x4938e8['push'](_0x52390a),_0x191890||(_0x191890=!0x0,setTimeout(()=>{_0x4938e8['forEach'](_0x327028=>_0x327028()),_0x4938e8=[],_0x191890=!0x1;}));};};let Se=class extends a[_0x4b8b84(0x230)]{constructor(_0x328289,_0x5dd332,_0xb48db6,_0x498f63,_0x683840,_0x21d6bf,_0x17f63f,_0x136ee6){const _0x3a4757=_0x4b8b84;super(),h(this,_0x3a4757(0x266),!0x1),h(this,_0x3a4757(0x331),!0x1),h(this,_0x3a4757(0x20b),new d[(_0x3a4757(0x17d))](new Map())),h(this,_0x3a4757(0x392),this[_0x3a4757(0x20b)]['asObservable']()),h(this,_0x3a4757(0x190),new d[(_0x3a4757(0x17d))]([])),h(this,_0x3a4757(0x33a),this['_roomMembers$'][_0x3a4757(0x235)](d[_0x3a4757(0x31c)](nt))),h(this,_0x3a4757(0x2fc),a[_0x3a4757(0x2cf)]((_0x2c0212,_0x29e344)=>{const _0x4b1ff8=_0x3a4757,_0x2f07e8={'eventID':m[_0x4b1ff8(0x23e)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x4b1ff8(0x1cc)](),'selection':Ee['serializeRangeWithSheet'](_0x2c0212,_0x29e344[_0x4b1ff8(0x2de)])}};this['_session'][_0x4b1ff8(0x32f)](_0x2f07e8,this[_0x4b1ff8(0x332)]);},rt)),(this[_0x3a4757(0x332)]=_0x328289,this[_0x3a4757(0x300)]=_0x5dd332,this[_0x3a4757(0x1fb)]=_0xb48db6,this[_0x3a4757(0x3d2)]=_0x498f63,this[_0x3a4757(0x193)]=_0x683840,this[_0x3a4757(0x1ac)]=_0x21d6bf,this[_0x3a4757(0x244)]=_0x17f63f,this['_refRangeService']=_0x136ee6);}get[_0x4b8b84(0x2d4)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x55d186=_0x4b8b84;return this[_0x55d186(0x190)][_0x55d186(0x2b6)]();}['dispose'](){const _0x47f444=_0x4b8b84;super[_0x47f444(0x2ed)](),this['_cursorInfo$']['next'](new Map()),this[_0x47f444(0x20b)][_0x47f444(0x27a)](),this[_0x47f444(0x190)]['next']([]),this[_0x47f444(0x190)][_0x47f444(0x27a)]();}[_0x4b8b84(0x2e9)](){const _0xabc024=_0x4b8b84;this[_0xabc024(0x331)]||(this['_init']=!0x0,this[_0xabc024(0x300)][_0xabc024(0x366)]['pipe'](d[_0xabc024(0x218)](this[_0xabc024(0x1a9)]))[_0xabc024(0x2ea)](_0x15ffd3=>{const _0x3c98c0=_0xabc024;_0x15ffd3===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x3c98c0(0x24b)]();}),this[_0xabc024(0x300)][_0xabc024(0x209)][_0xabc024(0x235)](d[_0xabc024(0x218)](this[_0xabc024(0x1a9)]))[_0xabc024(0x2ea)](_0xe7e516=>{const _0xb93eaf=_0xabc024,_0x16e144=_0xe7e516['eventID'];_0x16e144===m[_0xb93eaf(0x23e)][_0xb93eaf(0x1e1)]&&this[_0xb93eaf(0x27d)](_0xe7e516),_0x16e144===m[_0xb93eaf(0x23e)]['USERS_LEAVE']&&this[_0xb93eaf(0x3a0)](_0xe7e516);}),this[_0xabc024(0x178)](),this['disposeWithMe'](this['_commandService'][_0xabc024(0x2c5)](_0x529ec4=>{const _0x5bd712=_0xabc024;if(this[_0x5bd712(0x266)]&&_0x529ec4['id']===g[_0x5bd712(0x2f1)]['id']&&_0x529ec4[_0x5bd712(0x3b7)]['unitId']===this[_0x5bd712(0x332)]){const _0x3424ca=_0x529ec4[_0x5bd712(0x3b7)];this['_updateLocalCursor'](_0x3424ca['subUnitId'],_0x3424ca[_0x5bd712(0x1a0)][0x0]);}})));}[_0x4b8b84(0x27d)](_0x256f8b){const _0x3e6a0f=_0x4b8b84;var _0x29d0cf,_0x3868e9;const {memberID:_0x4bb355,selection:_0x66edc5}=_0x256f8b[_0x3e6a0f(0x191)],{sheetName:_0x3f5b5f,range:_0x4133aa}=Ee['deserializeRangeWithSheet'](_0x66edc5),_0x3e7951={'name':(_0x3868e9=(_0x29d0cf=this[_0x3e6a0f(0x193)]['getMember'](this[_0x3e6a0f(0x332)],_0x4bb355))==null?void 0x0:_0x29d0cf[_0x3e6a0f(0x1df)])!=null?_0x3868e9:_0x3e6a0f(0x3e0),'range':this['_getMergeRange'](_0x3f5b5f,_0x4133aa),'sheetID':_0x3f5b5f,'color':this[_0x3e6a0f(0x3d2)]['assignAColorForMemberID'](_0x4bb355),'selection':_0x66edc5},_0x1043ed=this[_0x3e6a0f(0x2d4)];_0x1043ed[_0x3e6a0f(0x1b1)](_0x4bb355,_0x3e7951),this['_cursorInfo$'][_0x3e6a0f(0x1c4)](_0x1043ed);}[_0x4b8b84(0x3a0)](_0x27d748){const _0x363f6a=_0x4b8b84,{memberID:_0x5767b4}=_0x27d748[_0x363f6a(0x191)],_0x589a40=this[_0x363f6a(0x2d4)];_0x589a40['delete'](_0x5767b4),this['_cursorInfo$']['next'](_0x589a40);}[_0x4b8b84(0x1cd)](_0x277700,_0x279cf7){const _0x1a9db6=_0x4b8b84;var _0x38194f,_0x572389;const _0x1233c4=(_0x572389=(_0x38194f=this[_0x1a9db6(0x1ac)][_0x1a9db6(0x202)](this[_0x1a9db6(0x332)]))==null?void 0x0:_0x38194f[_0x1a9db6(0x3cc)](_0x277700))==null?void 0x0:_0x572389['getMergeData']();return(_0x1233c4==null?void 0x0:_0x1233c4[_0x1a9db6(0x231)](_0x457cfc=>a['Rectangle'][_0x1a9db6(0x30c)](_0x457cfc,_0x279cf7)))||_0x279cf7;}[_0x4b8b84(0x178)](){const _0x33910a=_0x4b8b84,_0x310699=new a[(_0x33910a(0x18c))](),_0x442031=ot(),_0x16d88c=()=>{const _0x2dc8ab=_0x33910a;_0x310699['dispose']();const _0x851c24=(_0x4e3742,_0x1a75b8,_0x152026,_0x583950)=>{const _0x535bbe=_0xe05a;let _0x2c8cac=[];switch(_0x4e3742['id']){case g[_0x535bbe(0x20c)]['DeleteRangeMoveLeftCommandId']:{_0x2c8cac=g[_0x535bbe(0x3f1)](_0x4e3742,_0x583950);break;}case g[_0x535bbe(0x20c)][_0x535bbe(0x289)]:{_0x2c8cac=g[_0x535bbe(0x358)](_0x4e3742,_0x583950);break;}case g['EffectRefRangId'][_0x535bbe(0x2d1)]:{_0x2c8cac=g[_0x535bbe(0x2d2)](_0x4e3742,_0x583950);break;}case g[_0x535bbe(0x20c)][_0x535bbe(0x186)]:{_0x2c8cac=g[_0x535bbe(0x1bc)](_0x4e3742,_0x583950);break;}case g[_0x535bbe(0x20c)]['InsertRangeMoveRightCommandId']:{_0x2c8cac=g['handleInsertRangeMoveRight'](_0x4e3742,_0x583950);break;}case g[_0x535bbe(0x20c)][_0x535bbe(0x208)]:{_0x2c8cac=g[_0x535bbe(0x1dd)](_0x4e3742,_0x583950);break;}case g[_0x535bbe(0x20c)][_0x535bbe(0x1bb)]:{_0x2c8cac=g['handleMoveRange'](_0x4e3742,_0x583950);break;}case g['EffectRefRangId'][_0x535bbe(0x3bc)]:{_0x2c8cac=g['handleIRemoveCol'](_0x4e3742,_0x583950);break;}case g['EffectRefRangId'][_0x535bbe(0x343)]:{_0x2c8cac=g['handleIRemoveRow'](_0x4e3742,_0x583950);break;}}const _0x14ea54=g[_0x535bbe(0x29e)](_0x2c8cac,_0x583950),_0x141b6f=this[_0x535bbe(0x2d4)][_0x535bbe(0x21c)](_0x1a75b8);if(_0x141b6f&&_0x14ea54){const _0x7f0b8d={..._0x141b6f,'range':_0x14ea54};this[_0x535bbe(0x2d4)][_0x535bbe(0x1b1)](_0x1a75b8,_0x7f0b8d),_0x442031(()=>{const _0x40499d=_0x535bbe,_0x503d00=this[_0x40499d(0x36e)][_0x40499d(0x254)](_0x14ea54,_0x559d22=>(_0x503d00[_0x40499d(0x2ed)](),_0x851c24(_0x559d22,_0x1a75b8,_0x152026,_0x14ea54)));_0x310699['add'](_0x503d00);});}return{'redos':[],'undos':[]};};this[_0x2dc8ab(0x2d4)][_0x2dc8ab(0x287)]((_0x3f0dd7,_0x384a47)=>{const _0x8c4f7=_0x2dc8ab,{range:_0xc2626,sheetID:_0x4a30b9}=_0x3f0dd7,_0x50f5a7=this[_0x8c4f7(0x36e)][_0x8c4f7(0x254)](_0xc2626,_0x30e4bf=>(_0x50f5a7[_0x8c4f7(0x2ed)](),_0x851c24(_0x30e4bf,_0x384a47,_0x4a30b9,_0xc2626)));_0x310699[_0x8c4f7(0x220)](_0x50f5a7);});};this['disposeWithMe'](a[_0x33910a(0x2dc)](this['_cursorInfo$']['subscribe'](()=>{_0x16d88c();})));}['_toggleOnline'](){const _0x12c8d5=_0x4b8b84;var _0x12452c,_0x1bf97e;if(this['_online']=!0x0,((_0x12452c=this[_0x12c8d5(0x1ac)][_0x12c8d5(0x26e)]())==null?void 0x0:_0x12452c[_0x12c8d5(0x27b)]())!==this[_0x12c8d5(0x332)])return;const _0x467375=(_0x1bf97e=this[_0x12c8d5(0x1fb)]['get'](g[_0x12c8d5(0x1a2)])[_0x12c8d5(0x223)]())==null?void 0x0:_0x1bf97e[0x0],_0x2bc5ca=this[_0x12c8d5(0x1ac)][_0x12c8d5(0x1a1)](a[_0x12c8d5(0x1a8)][_0x12c8d5(0x2d7)])[_0x12c8d5(0x33d)]();_0x467375&&_0x2bc5ca&&this[_0x12c8d5(0x2fc)](_0x2bc5ca[_0x12c8d5(0x3a3)](),_0x467375);}[_0x4b8b84(0x24b)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x4b8b84(0x20f)](a['Injector'])),A(0x3,a['Inject'](me)),A(0x4,a[_0x4b8b84(0x20f)](u[_0x4b8b84(0x1f3)])),A(0x5,a[_0x4b8b84(0x333)]),A(0x6,a[_0x4b8b84(0x248)]),A(0x7,a[_0x4b8b84(0x20f)](g[_0x4b8b84(0x345)]))],Se);var at=Object[_0x4b8b84(0x39e)],ct=(_0x46495f,_0x33fa76,_0x407784,_0x1f1f8b)=>{const _0x3bb7bf=_0x4b8b84;for(var _0x24c616=_0x1f1f8b>0x1?void 0x0:_0x1f1f8b?at(_0x33fa76,_0x407784):_0x33fa76,_0x26d143=_0x46495f[_0x3bb7bf(0x33e)]-0x1,_0x5d7b75;_0x26d143>=0x0;_0x26d143--)(_0x5d7b75=_0x46495f[_0x26d143])&&(_0x24c616=_0x5d7b75(_0x24c616)||_0x24c616);return _0x24c616;},ie=(_0x366dd3,_0x612c26)=>(_0x18c160,_0x400d68)=>_0x612c26(_0x18c160,_0x400d68,_0x366dd3);let x=class extends a[_0x4b8b84(0x230)]{constructor(_0x2e91de,_0x1af45f,_0x457f86){const _0x52b993=_0x4b8b84;super(),h(this,_0x52b993(0x25a),new Map()),h(this,'_entityInit$',new d[(_0x52b993(0x1fe))]()),(this[_0x52b993(0x1ac)]=_0x2e91de,this['_injector']=_0x1af45f,this[_0x52b993(0x2f4)]=_0x457f86,this['_init']());}['dispose'](){const _0x421b72=_0x4b8b84;super['dispose'](),this['_entityInit$']['complete'](),this[_0x421b72(0x25a)]['forEach'](_0x8a1eb3=>_0x8a1eb3[_0x421b72(0x2ed)]());}['getCollabCursors$'](_0x104407){const _0x52ee8b=_0x4b8b84;return this[_0x52ee8b(0x25a)]['has'](_0x104407)?this['_entities']['get'](_0x104407)[_0x52ee8b(0x392)]:this[_0x52ee8b(0x35b)][_0x52ee8b(0x235)](d[_0x52ee8b(0x239)](_0x5267d6=>_0x5267d6[_0x52ee8b(0x332)]===_0x104407),d[_0x52ee8b(0x29b)](_0x3d64d2=>_0x3d64d2[_0x52ee8b(0x392)]));}[_0x4b8b84(0x331)](){const _0xf0ddd3=_0x4b8b84;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0xf0ddd3(0x1a8)][_0xf0ddd3(0x2d7)])[_0xf0ddd3(0x235)](d[_0xf0ddd3(0x218)](this[_0xf0ddd3(0x1a9)]))[_0xf0ddd3(0x2ea)](async _0x497886=>{const _0x395810=_0xf0ddd3,_0x4eda11=_0x497886[_0x395810(0x27b)](),_0x3ba893=await this[_0x395810(0x3a1)](_0x4eda11);this[_0x395810(0x35b)][_0x395810(0x1c4)](_0x3ba893),this[_0x395810(0x25a)][_0x395810(0x1b1)](_0x4eda11,_0x3ba893);}),this[_0xf0ddd3(0x1ac)][_0xf0ddd3(0x2e0)](a['UniverInstanceType']['UNIVER_DOC'])[_0xf0ddd3(0x235)](d[_0xf0ddd3(0x218)](this[_0xf0ddd3(0x1a9)]))[_0xf0ddd3(0x235)](d['filter'](_0x499e63=>!_0x499e63[_0xf0ddd3(0x27b)]()[_0xf0ddd3(0x34d)]('__')))[_0xf0ddd3(0x2ea)](async _0x5d3c67=>{const _0x430dc3=_0xf0ddd3,_0x4a8002=_0x5d3c67[_0x430dc3(0x27b)](),_0x1020d8=await this['_startDocCollabCursor'](_0x4a8002);this[_0x430dc3(0x35b)][_0x430dc3(0x1c4)](_0x1020d8),this[_0x430dc3(0x25a)][_0x430dc3(0x1b1)](_0x4a8002,_0x1020d8);}),d[_0xf0ddd3(0x1d3)](this[_0xf0ddd3(0x1ac)][_0xf0ddd3(0x25b)](a[_0xf0ddd3(0x1a8)][_0xf0ddd3(0x299)]),this[_0xf0ddd3(0x1ac)][_0xf0ddd3(0x25b)](a['UniverInstanceType'][_0xf0ddd3(0x2d7)]))[_0xf0ddd3(0x235)](d[_0xf0ddd3(0x218)](this[_0xf0ddd3(0x1a9)]))[_0xf0ddd3(0x2ea)](_0x1f6025=>{const _0x4bc5e3=_0xf0ddd3,_0xb0f504=_0x1f6025[_0x4bc5e3(0x27b)](),_0x2a9153=this[_0x4bc5e3(0x25a)]['get'](_0xb0f504);_0x2a9153&&(_0x2a9153[_0x4bc5e3(0x2ed)](),this['_entities']['delete'](_0xb0f504));});}async[_0x4b8b84(0x3a1)](_0x63758d){const _0x498dd9=_0x4b8b84,_0x3d82b9=await this['_collabSessionService'][_0x498dd9(0x23c)](_0x63758d),_0x8a4096=this[_0x498dd9(0x1fb)][_0x498dd9(0x1a3)](Se,_0x63758d,_0x3d82b9);return _0x8a4096['init'](),_0x8a4096;}async['_startDocCollabCursor'](_0x5c5e66){const _0x504056=_0x4b8b84,_0x3f4012=await this['_collabSessionService'][_0x504056(0x23c)](_0x5c5e66),_0x3f6fcc=this[_0x504056(0x1fb)][_0x504056(0x1a3)](fe,_0x5c5e66,_0x3f4012);return _0x3f6fcc[_0x504056(0x2e9)](),_0x3f6fcc;}};x=ct([ie(0x0,a[_0x4b8b84(0x333)]),ie(0x1,a[_0x4b8b84(0x20f)](a[_0x4b8b84(0x258)])),ie(0x2,a[_0x4b8b84(0x20f)](u[_0x4b8b84(0x203)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x510b67,_0xf5a10c){const _0x320548=_0x4b8b84;let {radius:_0x1e8346,width:_0x1f2513,height:_0xf736cd}=_0xf5a10c;_0x1e8346=_0x1e8346!=null?_0x1e8346:0x0,_0x1f2513=_0x1f2513!=null?_0x1f2513:0x1e,_0xf736cd=_0xf736cd!=null?_0xf736cd:0x1e;let _0x215324=0x0,_0x2dd4ef=0x0,_0xd52532=0x0;_0x215324=_0x2dd4ef=_0xd52532=Math['min'](_0x1e8346,_0x1f2513/0x2,_0xf736cd/0x2),_0x510b67['beginPath'](),_0x510b67[_0x320548(0x1e3)](_0x215324,0x0),_0x510b67[_0x320548(0x3e4)](_0x1f2513-_0x2dd4ef,0x0),_0x510b67['arc'](_0x1f2513-_0x2dd4ef,_0x2dd4ef,_0x2dd4ef,Math['PI']*0x3/0x2,0x0,!0x1),_0x510b67[_0x320548(0x3e4)](_0x1f2513,_0xf736cd-_0xd52532),_0x510b67[_0x320548(0x306)](_0x1f2513-_0xd52532,_0xf736cd-_0xd52532,_0xd52532,0x0,Math['PI']/0x2,!0x1),_0x510b67[_0x320548(0x3e4)](0x0,_0xf736cd),_0x510b67[_0x320548(0x3e4)](0x0,_0x215324),_0x510b67[_0x320548(0x306)](_0x215324,_0x215324,_0x215324,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x510b67[_0x320548(0x3ee)](),_0xf5a10c[_0x320548(0x399)]&&(_0x510b67['save'](),_0x510b67['fillStyle']=_0xf5a10c[_0x320548(0x399)],_0xf5a10c[_0x320548(0x2a5)]===_0x320548(0x2f0)?_0x510b67['fill'](_0x320548(0x2f0)):_0x510b67[_0x320548(0x399)](),_0x510b67[_0x320548(0x201)]());}class ee extends p[_0x4b8b84(0x2ca)]{constructor(_0x28b33a,_0x5f443c){const _0x48029d=_0x4b8b84;super(_0x28b33a,_0x5f443c),h(this,_0x48029d(0x39f)),h(this,'text'),(this[_0x48029d(0x39f)]=_0x5f443c==null?void 0x0:_0x5f443c[_0x48029d(0x39f)],this[_0x48029d(0x24e)]=_0x5f443c==null?void 0x0:_0x5f443c[_0x48029d(0x24e)]);}static[_0x4b8b84(0x1c8)](_0x29f8b6,_0x57c1dc){const _0x903dcf=_0x4b8b84,{text:_0x448744,color:_0x26a354}=_0x57c1dc;_0x29f8b6[_0x903dcf(0x318)](),_0x29f8b6[_0x903dcf(0x23a)]=_0x903dcf(0x347);const _0x2394ba=_0x29f8b6[_0x903dcf(0x2cc)](_0x448744)[_0x903dcf(0x1f4)],_0x3528aa=Math[_0x903dcf(0x28e)](_0x2394ba+0x2*ne,Re);_t(_0x29f8b6,{'height':K,'radius':0x4,'width':_0x3528aa,'fill':_0x26a354}),_0x29f8b6[_0x903dcf(0x265)]=_0x903dcf(0x246);const _0x52cad7=ne,_0x279aff=K-lt,_0x456a2f=Re-0x2*ne;if(_0x2394ba>_0x456a2f){let _0xc3c572='',_0x4c508b=0x0;for(const _0x29319c of _0x448744){const _0x5f0aae=_0x29f8b6['measureText'](_0x29319c)[_0x903dcf(0x1f4)];if(_0x4c508b+_0x5f0aae<=_0x456a2f-_0x29f8b6[_0x903dcf(0x2cc)](_0x903dcf(0x2b4))[_0x903dcf(0x1f4)])_0xc3c572+=_0x29319c,_0x4c508b+=_0x5f0aae;else{_0xc3c572+=_0x903dcf(0x2b4);break;}}_0x29f8b6[_0x903dcf(0x389)](_0xc3c572,_0x52cad7,_0x279aff);}else _0x29f8b6['fillText'](_0x448744,_0x52cad7,_0x279aff);_0x29f8b6['restore']();}[_0x4b8b84(0x177)](_0x25de72){ee['drawWith'](_0x25de72,this);}}const re=_0x4b8b84(0x2d3),ht=_0x4b8b84(0x3b0),ut=_0x4b8b84(0x199),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x2414a6,_0x3aa87e,_0x2dbf5e,_0x55c9e4){const _0x581303=_0x4b8b84;h(this,_0x581303(0x2d5),[]),h(this,_0x581303(0x377),null),h(this,'_textBubble',null),h(this,_0x581303(0x38b),null),h(this,_0x581303(0x3da),null),h(this,'_eventUnsubscribe',null),(this[_0x581303(0x3de)]=_0x2414a6,this[_0x581303(0x212)]=_0x3aa87e,this[_0x581303(0x3e5)]=_0x2dbf5e,this[_0x581303(0x33f)]=_0x55c9e4,this[_0x581303(0x267)]());}set[_0x4b8b84(0x369)](_0x19e93b){const _0x1776ec=_0x4b8b84;_0x19e93b?(this['_anchorDot']&&this['_anchorDot'][_0x1776ec(0x382)](),this[_0x1776ec(0x1f5)]&&this['_textBubble'][_0x1776ec(0x282)]()):(this[_0x1776ec(0x38b)]&&this['_anchorDot'][_0x1776ec(0x282)](),this[_0x1776ec(0x1f5)]&&this['_textBubble'][_0x1776ec(0x382)]());}[_0x4b8b84(0x2ed)](){const _0x5952cf=_0x4b8b84;for(const _0x589d8f of this[_0x5952cf(0x2d5)])_0x589d8f['dispose']();this[_0x5952cf(0x1f5)]&&this[_0x5952cf(0x1f5)][_0x5952cf(0x2ed)](),this[_0x5952cf(0x38b)]&&this[_0x5952cf(0x38b)][_0x5952cf(0x2ed)](),this[_0x5952cf(0x377)]&&this[_0x5952cf(0x377)][_0x5952cf(0x2ed)](),this[_0x5952cf(0x2d6)]&&this['_eventUnsubscribe']();}['_render'](){const _0xd0579b=_0x4b8b84;var _0x43d435;const {_docSkeleton:_0x1c53de,_document:_0x3b19f8}=this,{color:_0x526c1d,name:_0x5d9f0d,ranges:_0x3c6371}=this[_0xd0579b(0x3de)],_0x2bc0b4=_0x3b19f8[_0xd0579b(0x2c1)](),{docsLeft:_0x5b793d,docsTop:_0x325129}=_0x2bc0b4,_0x28fd97=new b[(_0xd0579b(0x3bb))](_0x2bc0b4,_0x1c53de);for(const {startOffset:_0x32ee78,endOffset:_0x24d25a,rangeType:_0x537a68,segmentId:_0x508e01,segmentPage:_0x40e068,collapsed:_0x8b128b,isActive:_0xec075d}of _0x3c6371){const _0x89315d=_0x1c53de['findNodePositionByCharIndex'](_0x32ee78,!0x0,_0x508e01,_0x40e068);let _0x5d198c=_0x1c53de[_0xd0579b(0x16c)](_0x24d25a,!0x0,_0x508e01,_0x40e068);if(_0x5d198c==null&&(_0x5d198c=_0x1c53de[_0xd0579b(0x16c)](_0x24d25a-0x1,!0x1,_0x508e01,_0x40e068)),_0xec075d){const {contentBoxPointGroup:_0x4ba1aa}=_0x28fd97['getRangePointData'](_0x5d198c,_0x5d198c);if(_0x4ba1aa[_0xd0579b(0x33e)]===0x0)continue;this[_0xd0579b(0x393)](_0x526c1d,_0x4ba1aa,_0x5b793d,_0x325129,_0x5d9f0d),this[_0xd0579b(0x2d6)]=this[_0xd0579b(0x2da)]();}if(_0x89315d&&_0x5d198c){if(_0x537a68===a[_0xd0579b(0x319)]['RECT']){const _0x2b7ebd=new b['NodePositionConvertToRectRange'](_0x2bc0b4,_0x1c53de),{pointGroup:_0x14bdf6}=(_0x43d435=_0x2b7ebd[_0xd0579b(0x31e)](_0x89315d,_0x5d198c))!=null?_0x43d435:{};if(_0x14bdf6==null||_0x14bdf6[_0xd0579b(0x33e)]===0x0)continue;this[_0xd0579b(0x276)](_0x526c1d,_0x14bdf6,_0x5b793d,_0x325129);}else{if(!_0x8b128b){const {borderBoxPointGroup:_0x1945eb}=_0x28fd97[_0xd0579b(0x31e)](_0x89315d,_0x5d198c);if(_0x1945eb[_0xd0579b(0x33e)]===0x0)continue;this[_0xd0579b(0x1a5)](_0x526c1d,_0x1945eb,_0x5b793d,_0x325129);}}}}}[_0x4b8b84(0x393)](_0x3a16d3,_0x59d687,_0x436659,_0x4f929e,_0x5454c2){const _0x5b151b=_0x4b8b84,_0xc78154=this['_getAnchorBounding'](_0x59d687),{left:_0x39ddf9,top:_0x5e7c15,height:_0x50c2e6}=_0xc78154,_0x13c5a0=this[_0x5b151b(0x30f)](),_0x220a59=ft/_0x13c5a0,_0x5d116d=new p[(_0x5b151b(0x288))](re+a[_0x5b151b(0x325)][_0x5b151b(0x184)](k),{'left':_0x39ddf9+_0x436659-_0x220a59,'top':_0x5e7c15+_0x4f929e,'height':_0x50c2e6,'width':dt,'fill':_0x3a16d3||p[_0x5b151b(0x3dd)](a[_0x5b151b(0x26a)][_0x5b151b(0x1ef)],0x0),'strokeWidth':_0x220a59,'stroke':St,'evented':!0x0});this['_anchor']=_0x5d116d,this['_scene'][_0x5b151b(0x1e0)](_0x5d116d,b['TEXT_RANGE_LAYER_INDEX']);const _0x45b117=new p[(_0x5b151b(0x288))](re+a['Tools']['generateRandomId'](k),{'left':_0x39ddf9+_0x436659-_0x220a59,'top':_0x5e7c15+_0x4f929e-oe/0x2,'height':oe,'width':oe,'fill':_0x3a16d3||p[_0x5b151b(0x3dd)](a[_0x5b151b(0x26a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x3a16d3||p[_0x5b151b(0x3dd)](a[_0x5b151b(0x26a)][_0x5b151b(0x1ef)],0x0),'evented':!0x1});this['_anchorDot']=_0x45b117,this[_0x5b151b(0x212)][_0x5b151b(0x1e0)](_0x45b117,b['TEXT_RANGE_LAYER_INDEX']);const _0x4920ed=new ee(re+a[_0x5b151b(0x325)][_0x5b151b(0x184)](k),{'left':_0x39ddf9+_0x436659-_0x220a59,'top':_0x5e7c15+_0x4f929e-K,'text':_0x5454c2,'color':_0x3a16d3});this[_0x5b151b(0x1f5)]=_0x4920ed,this[_0x5b151b(0x212)]['addObject'](_0x4920ed,b[_0x5b151b(0x3ab)]),this[_0x5b151b(0x369)]=!0x1;}['_handleHover'](){const _0x32d757=_0x4b8b84,_0x864c65=this[_0x32d757(0x377)][_0x32d757(0x321)][_0x32d757(0x21f)](()=>{this['_hover']=!0x0;}),_0x2ec183=this[_0x32d757(0x377)][_0x32d757(0x36d)][_0x32d757(0x21f)](()=>{const _0x447f7d=_0x32d757;this[_0x447f7d(0x3da)]&&clearTimeout(this[_0x447f7d(0x3da)]),this[_0x447f7d(0x3da)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x61cc98=_0x32d757;_0x864c65[_0x61cc98(0x293)](),_0x2ec183[_0x61cc98(0x293)]();};}[_0x4b8b84(0x1a5)](_0xdbd93a,_0xb95f11,_0x1f7c50,_0x262d1b){const _0x503988=_0x4b8b84,_0x197207=new a[(_0x503988(0x363))](_0xdbd93a)[_0x503988(0x35c)](0.2)[_0x503988(0x378)](),_0x319da1=new p[(_0x503988(0x316))](ht+a[_0x503988(0x325)]['generateRandomId'](k),{'pointsGroup':_0xb95f11,'fill':_0x197207||p[_0x503988(0x3dd)](a[_0x503988(0x26a)][_0x503988(0x1ef)],0.2),'left':_0x1f7c50,'top':_0x262d1b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x503988(0x2d5)][_0x503988(0x22d)](_0x319da1),this['_scene'][_0x503988(0x1e0)](_0x319da1,b[_0x503988(0x3ab)]);}[_0x4b8b84(0x276)](_0x45ee61,_0x152b57,_0x3fbabd,_0x1b7cfc){const _0x143afb=_0x4b8b84,_0x32cdec=new a[(_0x143afb(0x363))](_0x45ee61)[_0x143afb(0x35c)](0.2)[_0x143afb(0x378)](),_0x5928bc=new p[(_0x143afb(0x316))](ut+a[_0x143afb(0x325)][_0x143afb(0x184)](k),{'pointsGroup':_0x152b57,'fill':_0x32cdec||p['getColor'](a[_0x143afb(0x26a)]['black'],0.2),'left':_0x3fbabd,'top':_0x1b7cfc,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x143afb(0x22d)](_0x5928bc),this['_scene']['addObject'](_0x5928bc,b[_0x143afb(0x3ab)]);}[_0x4b8b84(0x1d8)](_0x2b7385){const _0x3c7dd5=_0x2b7385[0x0],_0x2758d0=_0x3c7dd5[0x0],_0x1cbe8e=_0x3c7dd5[0x2],{x:_0x40cf8b,y:_0x34585b}=_0x2758d0,{x:_0x32eea7,y:_0xef13ac}=_0x1cbe8e;return{'left':_0x40cf8b,'top':_0x34585b,'width':_0x32eea7-_0x40cf8b,'height':_0xef13ac-_0x34585b};}['_getScale'](){const _0x281ede=_0x4b8b84,{scaleX:_0x2ae82,scaleY:_0x459a39}=this[_0x281ede(0x212)]['getAncestorScale']();return Math[_0x281ede(0x1b5)](_0x2ae82,_0x459a39);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x4f7020,_0x3869be,_0x4a50dd,_0x1c03ed)=>{const _0x343806=_0x4b8b84;for(var _0x460d1c=_0x1c03ed>0x1?void 0x0:_0x1c03ed?It(_0x3869be,_0x4a50dd):_0x3869be,_0x595829=_0x4f7020[_0x343806(0x33e)]-0x1,_0x4d16b0;_0x595829>=0x0;_0x595829--)(_0x4d16b0=_0x4f7020[_0x595829])&&(_0x460d1c=_0x4d16b0(_0x460d1c)||_0x460d1c);return _0x460d1c;},W=(_0x451e33,_0x4e2f82)=>(_0x116b09,_0x5ede8a)=>_0x4e2f82(_0x116b09,_0x5ede8a,_0x451e33);let Ie=class extends a[_0x4b8b84(0x230)]{constructor(_0x3429b0,_0x42d6c9,_0x414ac1,_0x2d5cdb,_0x1d8c57){const _0x4b06db=_0x4b8b84;super(),h(this,_0x4b06db(0x384),[]),h(this,_0x4b06db(0x3c8),[]),(this[_0x4b06db(0x317)]=_0x3429b0,this[_0x4b06db(0x372)]=_0x42d6c9,this['_collabCursorController']=_0x414ac1,this[_0x4b06db(0x244)]=_0x2d5cdb,this[_0x4b06db(0x355)]=_0x1d8c57,this[_0x4b06db(0x331)]());}[_0x4b8b84(0x331)](){const _0x2a29fa=_0x4b8b84,_0x414fcc=this[_0x2a29fa(0x317)][_0x2a29fa(0x245)],_0x114803=this[_0x2a29fa(0x372)];this[_0x2a29fa(0x307)](d[_0x2a29fa(0x304)]([this[_0x2a29fa(0x312)][_0x2a29fa(0x3d5)](_0x414fcc),this['_themeService'][_0x2a29fa(0x21b)]])[_0x2a29fa(0x235)]($[_0x2a29fa(0x32a)](([_0x13a83b,_0x41526c])=>({'skeleton':_0x114803[_0x2a29fa(0x1c0)](),'cursors':[..._0x13a83b[_0x2a29fa(0x1ce)]()]['flatMap'](_0x1bafb5=>({..._0x1bafb5,'color':this[_0x2a29fa(0x355)][_0x2a29fa(0x3d7)](_0x1bafb5[_0x2a29fa(0x39f)])}))})))[_0x2a29fa(0x2ea)](_0x1e63b6=>{const _0x110ac8=_0x2a29fa;if(this[_0x110ac8(0x3a5)](),_0x1e63b6){const {skeleton:_0x1efb6a,cursors:_0x164257}=_0x1e63b6;this[_0x110ac8(0x302)](_0x1efb6a,_0x164257);}})),this['_initResize'](),this[_0x2a29fa(0x340)]();}['_updateCollabCursors'](_0x27d8de,_0x378978){const _0x2f7b60=_0x4b8b84,{scene:_0x10bca8,mainComponent:_0x59b981}=this[_0x2f7b60(0x317)],_0x367e8d=_0x378978[_0x2f7b60(0x32a)](_0x8ed452=>new De(_0x8ed452,_0x10bca8,_0x27d8de,_0x59b981));this[_0x2f7b60(0x384)]=_0x367e8d,this[_0x2f7b60(0x3c8)]=_0x378978;}[_0x4b8b84(0x273)](){const _0x46da5a=_0x4b8b84;this['_removeCollabCursors']();const {scene:_0x564f65,mainComponent:_0x5516e0}=this[_0x46da5a(0x317)],_0x41525b=this['_docSkeletonManagerService']['getSkeleton'](),_0x2b5443=this[_0x46da5a(0x3c8)][_0x46da5a(0x32a)](_0x3276c4=>new De(_0x3276c4,_0x564f65,_0x41525b,_0x5516e0));this[_0x46da5a(0x384)]=_0x2b5443;}[_0x4b8b84(0x3a5)](){const _0x128521=_0x4b8b84;this['_cursorShapes'][_0x128521(0x287)](_0x3fb7f1=>_0x3fb7f1['dispose']()),this[_0x128521(0x384)]=[];}['_initCommandExecutedListener'](){const _0x70e1e1=_0x4b8b84,_0x1122ae=[b[_0x70e1e1(0x1fd)]['id']];this['disposeWithMe'](this['_commandService'][_0x70e1e1(0x2c5)](_0x2601b9=>{const _0x332da1=_0x70e1e1;_0x1122ae[_0x332da1(0x1de)](_0x2601b9['id'])&&_0x2601b9[_0x332da1(0x3b7)][_0x332da1(0x245)]===this[_0x332da1(0x317)][_0x332da1(0x245)]&&this[_0x332da1(0x273)]();}));}[_0x4b8b84(0x1ed)](){const _0x2c2037=_0x4b8b84;this['disposeWithMe'](a['fromEventSubject'](this[_0x2c2037(0x317)][_0x2c2037(0x1be)][_0x2c2037(0x3c0)])['pipe']($[_0x2c2037(0x239)](_0x3eec71=>_0x3eec71[_0x2c2037(0x3d8)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2c2037(0x25f)]),$[_0x2c2037(0x326)](0x10))[_0x2c2037(0x2ea)](()=>{const _0x4caf12=_0x2c2037;this[_0x4caf12(0x273)]();}));}};Ie=vt([W(0x1,a[_0x4b8b84(0x20f)](Y['DocSkeletonManagerService'])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x4b8b84(0x20f)](a[_0x4b8b84(0x3c6)]))],Ie);function _0xe05a(_0x40fa6d,_0xab1964){const _0x355bcd=_0x355b();return _0xe05a=function(_0xe05a4b,_0x3476f0){_0xe05a4b=_0xe05a4b-0x163;let _0x173256=_0x355bcd[_0xe05a4b];return _0x173256;},_0xe05a(_0x40fa6d,_0xab1964);}const gt=0x1,mt=1.5;class Pe extends p[_0x4b8b84(0x2ca)]{constructor(_0x2a5f0f,_0x9fcb38){const _0x317e13=_0x4b8b84;super(_0x2a5f0f,_0x9fcb38),h(this,_0x317e13(0x2e8)),h(this,'_hovered',!0x1),h(this,_0x317e13(0x17c)),h(this,_0x317e13(0x22e),''),h(this,'_labelPosition',_0x317e13(0x3ba)),h(this,_0x317e13(0x1e9)),(_0x9fcb38&&this['setShapeProps'](_0x9fcb38),this[_0x317e13(0x321)][_0x317e13(0x21f)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x317e13(0x36d)][_0x317e13(0x21f)](()=>this[_0x317e13(0x2f7)]({'hovered':!0x1})));}['setShapeProps'](_0x31e4e5){const _0x4c3705=_0x4b8b84;var _0x57954d,_0x5ff78b,_0x56eaef,_0x15ee53,_0x8d13f6,_0x344de6;this[_0x4c3705(0x2e8)]=(_0x57954d=_0x31e4e5[_0x4c3705(0x39f)])!=null?_0x57954d:this['_color'],this[_0x4c3705(0x214)]=(_0x5ff78b=_0x31e4e5[_0x4c3705(0x195)])!=null?_0x5ff78b:this['_hovered'],this[_0x4c3705(0x17c)]=(_0x56eaef=_0x31e4e5[_0x4c3705(0x2de)])!=null?_0x56eaef:this[_0x4c3705(0x17c)],this[_0x4c3705(0x22e)]=(_0x15ee53=_0x31e4e5[_0x4c3705(0x1df)])!=null?_0x15ee53:this[_0x4c3705(0x22e)],this['_labelPosition']=(_0x8d13f6=_0x31e4e5['labelPosition'])!=null?_0x8d13f6:this[_0x4c3705(0x263)],this[_0x4c3705(0x1e9)]=(_0x344de6=_0x31e4e5[_0x4c3705(0x21a)])!=null?_0x344de6:this['_backgroundColor'],this[_0x4c3705(0x1f2)]({'width':_0x31e4e5[_0x4c3705(0x1f4)],'height':_0x31e4e5[_0x4c3705(0x24d)]});}[_0x4b8b84(0x2c7)](_0x1a147e){const _0x10a796=_0x4b8b84,{row:_0x9223df,column:_0xb5cb20}=_0x1a147e;if(_0x9223df>=this[_0x10a796(0x17c)][_0x10a796(0x381)]&&_0x9223df<=this['_range'][_0x10a796(0x2bf)]&&_0xb5cb20>=this['_range'][_0x10a796(0x25e)]&&_0xb5cb20<=this[_0x10a796(0x17c)][_0x10a796(0x206)]){this[_0x10a796(0x2f7)]({'hovered':!0x0});return;}this[_0x10a796(0x2f7)]({'hovered':!0x1});}[_0x4b8b84(0x2cd)](_0x444e8b){return!0x1;}[_0x4b8b84(0x177)](_0x5a1981){const _0x28bd65=_0x4b8b84;p['Rect']['drawWith'](_0x5a1981,{'width':this[_0x28bd65(0x1f4)],'height':this[_0x28bd65(0x24d)],'strokeWidth':mt,'stroke':this[_0x28bd65(0x2e8)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x28bd65(0x214)]&&(_0x5a1981['save'](),_0x5a1981['transform'](0x1,0x0,0x0,0x1,this[_0x28bd65(0x1f4)],this['_labelPosition']===_0x28bd65(0x18e)?0x0:-0x14),ee[_0x28bd65(0x1c8)](_0x5a1981,{'text':this['_name'],'color':this[_0x28bd65(0x2e8)]}),_0x5a1981[_0x28bd65(0x201)]());}}var Ct=Object[_0x4b8b84(0x39e)],pt=(_0x279d98,_0x284ce9,_0x58f54f,_0x32930d)=>{for(var _0x5f58b7=_0x32930d>0x1?void 0x0:_0x32930d?Ct(_0x284ce9,_0x58f54f):_0x284ce9,_0x581a57=_0x279d98['length']-0x1,_0x215bf0;_0x581a57>=0x0;_0x581a57--)(_0x215bf0=_0x279d98[_0x581a57])&&(_0x5f58b7=_0x215bf0(_0x5f58b7)||_0x5f58b7);return _0x5f58b7;},ae=(_0x17b9c5,_0x3b29c8)=>(_0x4dcb0f,_0x19c35c)=>_0x3b29c8(_0x4dcb0f,_0x19c35c,_0x17b9c5);const bt=0x1389;let ve=class extends a[_0x4b8b84(0x230)]{constructor(_0x10df18,_0x459fe8,_0x2d5c9a,_0x329141){const _0x4f7d44=_0x4b8b84;super(),h(this,'_cursors',new Set()),h(this,_0x4f7d44(0x29a),null),(this['_context']=_0x10df18,this['_sheetSkeletonManagerService']=_0x459fe8,this[_0x4f7d44(0x312)]=_0x2d5c9a,this[_0x4f7d44(0x355)]=_0x329141,this[_0x4f7d44(0x331)]());}[_0x4b8b84(0x331)](){const _0x2ca866=_0x4b8b84;this[_0x2ca866(0x173)][_0x2ca866(0x2ce)][_0x2ca866(0x235)]($[_0x2ca866(0x218)](this[_0x2ca866(0x1a9)]),$['switchMap'](_0x353a8d=>{const _0x4fa441=_0x2ca866;if(_0x353a8d){const _0x2e803a=_0x353a8d['sheetId'];return d[_0x4fa441(0x304)](this[_0x4fa441(0x312)][_0x4fa441(0x3d5)](this[_0x4fa441(0x317)][_0x4fa441(0x245)]),this[_0x4fa441(0x355)][_0x4fa441(0x21b)])[_0x4fa441(0x235)]($[_0x4fa441(0x32a)](([_0x39432b,_0x5c7de4])=>{const _0x5a0e33=_0x4fa441,_0x1370c7=new Map();return _0x39432b[_0x5a0e33(0x287)]((_0x3261a9,_0x5ce137)=>{const _0xd2d90f=_0x5a0e33;if(_0x3261a9[_0xd2d90f(0x166)]===_0x2e803a){const _0x1be202={..._0x3261a9};_0x1be202[_0xd2d90f(0x39f)]=this[_0xd2d90f(0x355)]['getColorFromTheme'](_0x3261a9[_0xd2d90f(0x39f)]),_0x1370c7['set'](_0x5ce137,_0x1be202);}}),{'skeleton':_0x353a8d,'cursors':_0x1370c7};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2ca866(0x2ea)](({skeleton:_0x5dbbae,cursors:_0x4b8da6})=>{const _0x3bccac=_0x2ca866;this[_0x3bccac(0x3a5)](),_0x5dbbae&&this[_0x3bccac(0x302)](_0x5dbbae,_0x4b8da6);}),this[_0x2ca866(0x173)]['currentSkeleton$']['subscribe'](_0x448347=>{const _0x236cd1=_0x2ca866;if(_0x448347==null)return;const {skeleton:_0x4d8467}=_0x448347,{scene:_0x49a19b}=this[_0x236cd1(0x317)];_0x49a19b[_0x236cd1(0x1e7)][_0x236cd1(0x21f)](a[_0x236cd1(0x2cf)](_0x1ecd9a=>{const _0x527ad9=_0x236cd1;var _0x31e2bd,_0x47f7bb;const {offsetX:_0x461be6,offsetY:_0x61df0b}=_0x1ecd9a,{x:_0x4f32ec,y:_0x200aeb}=_0x49a19b[_0x527ad9(0x1f1)](p[_0x527ad9(0x271)][_0x527ad9(0x2b8)]([_0x461be6,_0x61df0b])),{scaleX:_0x5d8dad,scaleY:_0x2f78b8}=_0x49a19b[_0x527ad9(0x1c9)](),_0x5b2deb=_0x49a19b[_0x527ad9(0x2fe)](p[_0x527ad9(0x2a3)][_0x527ad9(0x2c9)]),_0x201c39=_0x49a19b[_0x527ad9(0x30b)](p[_0x527ad9(0x271)][_0x527ad9(0x2b8)]([_0x4f32ec,_0x200aeb]),_0x5b2deb),_0x16e6c5=_0x4d8467[_0x527ad9(0x1b8)](_0x461be6,_0x61df0b,_0x5d8dad,_0x2f78b8,_0x201c39);((_0x31e2bd=this[_0x527ad9(0x29a)])==null?void 0x0:_0x31e2bd[_0x527ad9(0x394)])===_0x16e6c5[_0x527ad9(0x394)]&&((_0x47f7bb=this['_lastPointer'])==null?void 0x0:_0x47f7bb[_0x527ad9(0x259)])===_0x16e6c5[_0x527ad9(0x259)]||this[_0x527ad9(0x3c8)]['forEach'](_0x4458f=>{_0x4458f['onMouseMove'](_0x16e6c5);});},0x64));});}[_0x4b8b84(0x302)](_0x570e74,_0x5d68b4){const _0x1f9a77=_0x4b8b84;var _0x4a0608;const _0x1a8ee2=(_0x4a0608=this[_0x1f9a77(0x173)][_0x1f9a77(0x3c9)]())==null?void 0x0:_0x4a0608[_0x1f9a77(0x3d6)];if(!_0x1a8ee2)return;const _0x413682=this[_0x1f9a77(0x35f)]();if(!_0x413682)return;this[_0x1f9a77(0x3c8)][_0x1f9a77(0x287)](_0x28fd5b=>{const _0x1b83d8=_0x1f9a77;_0x28fd5b[_0x1b83d8(0x23d)]();});const {scene:_0x33c9ab}=_0x413682,_0x3dc943=Et(Array[_0x1f9a77(0x17a)](_0x5d68b4['values']()))[_0x1f9a77(0x32a)](_0x389168=>{const _0x254e6d=_0x1f9a77,{color:_0x1fc742,range:_0x4c0a0b,name:_0x2afd0e,selection:_0x1afab2,sheetID:_0x14d2f1}=_0x389168,{startColumn:_0x17fb14,startRow:_0x76398b,endColumn:_0x170018,endRow:_0x189b09}=_0x4c0a0b,_0x45ea47=X[_0x254e6d(0x3ce)](_0x76398b,_0x17fb14,_0x33c9ab,_0x1a8ee2),_0x112fa0=X[_0x254e6d(0x3ce)](_0x189b09,_0x170018,_0x33c9ab,_0x1a8ee2),{columnHeaderHeightAndMarginTop:_0x15b975}=_0x1a8ee2,{startX:_0x9e2f38,startY:_0x1be345}=_0x45ea47,{endX:_0x308241,endY:_0x470de}=_0x112fa0,_0x2b1fd0=_0x308241-_0x9e2f38,_0x4c4412=_0x470de-_0x1be345,_0x23164c={'labelPosition':_0x1be345-_0x15b975>=K?_0x254e6d(0x3ba):_0x254e6d(0x18e),'sheetID':_0x14d2f1,'range':_0x4c0a0b,'color':_0x1fc742,'name':_0x2afd0e,'selection':_0x1afab2,'left':_0x9e2f38,'top':_0x1be345,'width':_0x2b1fd0,'height':_0x4c4412,'evented':!0x1,'zIndex':bt};return new Pe(_0x2afd0e,_0x23164c);});_0x33c9ab[_0x1f9a77(0x1ad)](_0x3dc943,gt),this['_cursors']=new Set(_0x3dc943);}[_0x4b8b84(0x3a5)](){const _0x371dfa=_0x4b8b84;var _0x289f08;(_0x289f08=this[_0x371dfa(0x3c8)])==null||_0x289f08[_0x371dfa(0x287)](_0x772f2f=>_0x772f2f['dispose']());}['_getSheetObject'](){const _0x54f5bf=_0x4b8b84;return X[_0x54f5bf(0x1c3)](this[_0x54f5bf(0x317)][_0x54f5bf(0x1ab)],this[_0x54f5bf(0x317)]);}};ve=pt([ae(0x1,a['Inject'](X[_0x4b8b84(0x182)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x4b8b84(0x20f)](a['ThemeService']))],ve);function Et(_0x3ed6a5){const _0x13f909=_0x4b8b84,_0x24a779=new Map();return _0x3ed6a5['forEach'](_0x324f16=>{const _0x19e6b1=_0xe05a;if(_0x24a779[_0x19e6b1(0x315)](_0x324f16[_0x19e6b1(0x2ad)])){const _0x3b8470=_0x24a779[_0x19e6b1(0x21c)](_0x324f16[_0x19e6b1(0x2ad)]);_0x3b8470['name']+=',\x20'+_0x324f16[_0x19e6b1(0x1df)];}else _0x24a779['set'](_0x324f16[_0x19e6b1(0x2ad)],_0x324f16);}),Array['from'](_0x24a779[_0x13f909(0x1ce)]());}var E=function(){const _0xf2506a=_0x4b8b84;return E=Object['assign']||function(_0x55c858){const _0x223757=_0xe05a;for(var _0x4edf7d,_0x3d597e=0x1,_0x5927e3=arguments[_0x223757(0x33e)];_0x3d597e<_0x5927e3;_0x3d597e++){_0x4edf7d=arguments[_0x3d597e];for(var _0x2522d in _0x4edf7d)Object[_0x223757(0x364)][_0x223757(0x386)][_0x223757(0x29c)](_0x4edf7d,_0x2522d)&&(_0x55c858[_0x2522d]=_0x4edf7d[_0x2522d]);}return _0x55c858;},E[_0xf2506a(0x1ff)](this,arguments);},Tt=function(_0x517313,_0x7e390){const _0x4aa25a=_0x4b8b84;var _0x5961ed={};for(var _0x4c2f1f in _0x517313)Object[_0x4aa25a(0x364)][_0x4aa25a(0x386)][_0x4aa25a(0x29c)](_0x517313,_0x4c2f1f)&&_0x7e390[_0x4aa25a(0x2b2)](_0x4c2f1f)<0x0&&(_0x5961ed[_0x4c2f1f]=_0x517313[_0x4c2f1f]);if(_0x517313!=null&&typeof Object['getOwnPropertySymbols']==_0x4aa25a(0x2c0)){for(var _0x2a3d0c=0x0,_0x4c2f1f=Object['getOwnPropertySymbols'](_0x517313);_0x2a3d0c<_0x4c2f1f['length'];_0x2a3d0c++)_0x7e390[_0x4aa25a(0x2b2)](_0x4c2f1f[_0x2a3d0c])<0x0&&Object[_0x4aa25a(0x364)][_0x4aa25a(0x1ae)]['call'](_0x517313,_0x4c2f1f[_0x2a3d0c])&&(_0x5961ed[_0x4c2f1f[_0x2a3d0c]]=_0x517313[_0x4c2f1f[_0x2a3d0c]]);}return _0x5961ed;},pe=M[_0x4b8b84(0x396)](function(_0x8996f1,_0x4f59cc){const _0x2513a0=_0x4b8b84;var _0x916974=_0x8996f1[_0x2513a0(0x28f)],_0x4074c6=_0x8996f1['id'],_0x47a9e7=_0x8996f1[_0x2513a0(0x360)],_0x21eb5f=_0x8996f1[_0x2513a0(0x1bd)],_0x4256bd=Tt(_0x8996f1,[_0x2513a0(0x28f),'id',_0x2513a0(0x360),_0x2513a0(0x1bd)]),_0x2e5f80=_0x2513a0(0x1d2)['concat'](_0x4074c6,'\x20')[_0x2513a0(0x3d1)](_0x47a9e7||'')[_0x2513a0(0x285)](),_0x369b76=M[_0x2513a0(0x387)]('_'[_0x2513a0(0x3d1)](Dt()));return Ae(_0x916974,''[_0x2513a0(0x3d1)](_0x4074c6),{'defIds':_0x916974[_0x2513a0(0x17b)],'idSuffix':_0x369b76['current']},E({'ref':_0x4f59cc,'className':_0x2e5f80},_0x4256bd),_0x21eb5f);});function Ae(_0x7c45d0,_0x4f0a2d,_0x4f78a2,_0x1653a3,_0x25fdcd){const _0x249ed3=_0x4b8b84;return M['createElement'](_0x7c45d0[_0x249ed3(0x3ad)],E(E({'key':_0x4f0a2d},Ot(_0x7c45d0,_0x4f78a2,_0x25fdcd)),_0x1653a3),(Rt(_0x7c45d0,_0x4f78a2)[_0x249ed3(0x268)]||[])[_0x249ed3(0x32a)](function(_0x445d69,_0x596a92){const _0x563be5=_0x249ed3;return Ae(_0x445d69,''[_0x563be5(0x3d1)](_0x4f0a2d,'-')[_0x563be5(0x3d1)](_0x7c45d0[_0x563be5(0x3ad)],'-')[_0x563be5(0x3d1)](_0x596a92),_0x4f78a2,void 0x0,_0x25fdcd);}));}function Ot(_0x409bc4,_0x27f386,_0x1f1d41){const _0x27fd54=_0x4b8b84;var _0x1342f3=E({},_0x409bc4[_0x27fd54(0x228)]);_0x1f1d41!=null&&_0x1f1d41['colorChannel1']&&_0x1342f3['fill']===_0x27fd54(0x217)&&(_0x1342f3[_0x27fd54(0x399)]=_0x1f1d41[_0x27fd54(0x217)]),_0x409bc4[_0x27fd54(0x3ad)]===_0x27fd54(0x3a6)&&_0x1342f3['id']&&(_0x1342f3['id']=_0x1342f3['id']+_0x27f386[_0x27fd54(0x390)]),Object[_0x27fd54(0x37a)](_0x1342f3)[_0x27fd54(0x287)](function(_0x2fa3d7){const _0x32ac6a=_0x27fd54;var _0xddbab0=_0x2fa3d7[0x0],_0x27d689=_0x2fa3d7[0x1];_0xddbab0===_0x32ac6a(0x3a6)&&typeof _0x27d689==_0x32ac6a(0x19c)&&(_0x1342f3[_0xddbab0]=_0x27d689[_0x32ac6a(0x3aa)](/url\(#(.*)\)/,_0x32ac6a(0x2ab)['concat'](_0x27f386[_0x32ac6a(0x390)],')')));});var _0x33a9ad=_0x27f386['defIds'];return!_0x33a9ad||_0x33a9ad[_0x27fd54(0x33e)]===0x0||(_0x409bc4[_0x27fd54(0x3ad)]==='use'&&_0x1342f3[_0x27fd54(0x375)]&&(_0x1342f3[_0x27fd54(0x375)]=_0x1342f3[_0x27fd54(0x375)]+_0x27f386[_0x27fd54(0x390)]),Object[_0x27fd54(0x37a)](_0x1342f3)['forEach'](function(_0x5058cb){const _0x2a7947=_0x27fd54;var _0x5ef4a5=_0x5058cb[0x0],_0x23126c=_0x5058cb[0x1];typeof _0x23126c==_0x2a7947(0x19c)&&(_0x1342f3[_0x5ef4a5]=_0x23126c[_0x2a7947(0x3aa)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x27f386[_0x2a7947(0x390)],')')));})),_0x1342f3;}function Rt(_0xa0f607,_0x234a54){const _0x48018b=_0x4b8b84;var _0x2ff9ab,_0x36029d=_0x234a54[_0x48018b(0x17b)];return!_0x36029d||_0x36029d[_0x48018b(0x33e)]===0x0?_0xa0f607:_0xa0f607['tag']===_0x48018b(0x2e5)&&(!((_0x2ff9ab=_0xa0f607[_0x48018b(0x268)])===null||_0x2ff9ab===void 0x0)&&_0x2ff9ab[_0x48018b(0x33e)])?E(E({},_0xa0f607),{'children':_0xa0f607[_0x48018b(0x268)][_0x48018b(0x32a)](function(_0x2cb211){const _0x3773a0=_0x48018b;return typeof _0x2cb211[_0x3773a0(0x228)]['id']=='string'&&_0x36029d&&_0x36029d[_0x3773a0(0x1de)](_0x2cb211[_0x3773a0(0x228)]['id'])?E(E({},_0x2cb211),{'attrs':E(E({},_0x2cb211['attrs']),{'id':_0x2cb211[_0x3773a0(0x228)]['id']+_0x234a54[_0x3773a0(0x390)]})}):_0x2cb211;})}):_0xa0f607;}function Dt(){const _0x2bf17b=_0x4b8b84;return Math[_0x2bf17b(0x26c)]()[_0x2bf17b(0x36f)](0x24)[_0x2bf17b(0x34e)](0x2,0x8);}pe[_0x4b8b84(0x310)]=_0x4b8b84(0x3be);function _0x355b(){const _0x370acc=['Rect','DeleteRangeMoveUpCommandId','LOGIN_FAILED','_renderManagerService','setUndoRedoMutationParamsCache','none','min','icon','_imageIoService','transformMutationsWithChangeset','getStateCache','unsubscribe','DependentOn','source','OffLineIcon','10bXPwPG','OFFLINE','UNIVER_DOC','_lastPointer','switchMap','call','redoState','runRefRangeMutations','_docTransformSelectionsService','UNAUTHENTICATED','collaboration.closeRoom','_instanceService','SHEET_VIEWPORT_KEY','getUndoRedoMutationParamsCache','fillRule','YUUMI_AI_RUN_FAILED','_scheduleClearOtherTimer','session.connection-failed','createSocket','_docTransformStateCacheService','url(#$1','BrowserCollaborationSocketService','selection','_httpService','_docTransformIMECacheService','loadUnit','CollaborationUIEventService','indexOf','NOT_COLLAB','...','_assignedColors','getValue','unshift','FromArray','getConfig','stringify','DocStateChangeManagerService','@univerjs/sheets','wsSessionTicketUrl','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','endRow','function','getOffsetConfig','DocIMEInputManagerService','_registerRenderDependencies','onStarting','onCommandExecuted','activeSheet$','onMouseMove','_handleLeaveEvent','VIEW_MAIN','Shape','UniverCollaborationClientPlugin','measureText','triggerDblclick','currentSkeleton$','debounce','ranges','InsertColCommandId','handleInsertCol','collab-text-anchor-','cursorInfo','_shapes','_eventUnsubscribe','UNIVER_SHEET','NO_OTHER_CLIENTS_EDITING','YUUMI_URL_COL_OUT_OF_RANGE','_handleHover','syncEditingCollabCursor','toDisposable','CollaborationSocketService','range','CommandType','getTypeOfUnitAdded$','DEFAULT_WS_SESSION_TICKET_URL','defineProperty','permission.content','YUUMI_UNABLE_LOAD_URL','defs','eventID','origin','_color','init','subscribe','removeParam','_localStorageService','dispose','red.300','green.600','evenodd','SetSelectionsOperation','YUUMI_ALL_TABLES_IS_INVALID','http://www.w3.org/2000/svg','_collabSessionService','_dataLoaderService','IConfigService','setShapeProps','FETCH_MISS','permission.title','1em','docStateChange$','_updateLocalCursor','setItem','getViewport','sessionTicket','_session','getActiveRange','_updateCollabCursors','YUUMI_RATE_OVER_LIMIT','combineLatest','subunit','arc','disposeWithMe','body','[CollaborationDataLoaderController]','getItem','getVpScrollXYInfoByPosToVp','contains','_docStateChangeManagerService','isActive','_getScale','displayName','_notificationService','_collabCursorController','error','url(#on-line-icon_clip0_910_349)','has','RegularPolygon','_context','save','DOC_RANGE_TYPE','SetTextSelectionsOperation','href','debounceTime','_configService','getRangePointData','EMAIL_HAS_BEEN_BOUND','PENDING','onPointerEnter$','7JTWsvr','DocSelectionManagerService','registerComponent','Tools','throttleTime','history','OTHER_CLIENT_EDITING','Warning','map','_toggleOnline','902ktcmEO','UniverCollaborationClientUIPlugin','_initStatusListener','send','_localCacheService','_init','unitID','IUniverInstanceService','M0\x200H16V16H0z','rxjs','@univerjs/drawing','mutations','_localeService','INVALID_ARGUMENT','roomMembers$','_selfUnitIDs','_initDependencies','getActiveSheet','length','_document','_initCommandExecutedListener','clearTimeout','3087558ohIhMq','RemoveRowCommandId','_getSessionTicket','RefRangeService','CONNECTOR_DATA_TOO_LARGE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Workbook','MOBILE_HAS_BEEN_BOUND','react/jsx-runtime','key','JOIN_ROOM_FAILED','startsWith','substring','APPLY_REJECT','on-line-icon_clip0_910_349','CHANGESET_REVISION_CONFILICT','white','SessionStatus','ILocalCacheService','_themeService','_urlService','div','handleDeleteRangeMoveUp','@univerjs/engine-render','getDocRanges','_entityInit$','setAlpha','_initEntityListener','collabStatus.offline','_getSheetObject','className','_messageService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ColorKit','prototype','NOT_FOUND','sessionStatus$','USERS_LEAVE','RECT','_hover','entityInit$','collabStatus.syncing','DesktopCollaborationStatusDisplayController','onPointerLeave$','_refRangeService','toString','_saveTaskMap','enableLocalCache','_docSkeletonManagerService','getLocalCacheKey','storage','xlink:href','COMPLETION_FINISHED','_anchor','toRgbString','override','entries','isTransformMutationFailure','SNAPSHOT_INVALID_SNAPSHOT','IUIPartsService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','ENSURE_SNAPSHOT_EXECUTION','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','startRow','hide','setConfig','_cursorShapes','focused$','hasOwnProperty','useRef','WebBrowserSingleActiveUnitService','fillText','INotificationService','_anchorDot','_updateSubUnitFromURLParams','path','shareReplay','ISocketService','idSuffix','7184104RvzbFT','cursorInfo$','_drawAnchor','column','YUUMI_NO_CUBOID_FOR_QUESTION','forwardRef','collabStatus.conflict','SheetCollabCursorShape','fill','transformRemoteChangeset','_removeClearOtherTimer','getRenderById','executeCommand','getOwnPropertyDescriptor','color','_onCursorDelete','_startSheetCollabCursor','LOCAL_CACHE_INTERVAL_KEY','getSheetId','_handleEvent','_removeCollabCursors','mask','symbol','BuiltInUIPart','_collaborationUIEventService','replace','TEXT_RANGE_LAYER_INDEX','_setupSubUnitSync','tag','40260tXTcxk','url(#off-line-icon_clip0_910_343)','collab-text-range-','collaboration.single-unit.warning','newValue','Error','setStateCache','_handleHeartbeatEvent','CollaborationStatusDisplay','params','transformStateCache','translate(.97)','top','NodePositionConvertToCursor','RemoveColCommandId','_logService','UniverIcon','LocaleService','onTransformChange$','collaboration-client.offline-data-not-saved','Disposable','SOCKET_FAILED_RETRY','rxjs/operators','split','ThemeService','MessageType','_cursors','getCurrent','asObservable','_setupBeforeClosingHandler','getSheetBySheetId','IBeforeCloseService','getCoordByCell','doc.mutation.rich-text-editing','collabCursorState$','concat','_colorAssignService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','YUUMI_ASYNCIO_CANCELLED','getCollabCursors$','skeleton','getColorFromTheme','type','LICENSE_IMPORT_SIZE_EXCEEDED','_hideTimer','searchParams','717huczpP','getColor','_cursor','jsx','Unknown\x20user','transformSelections','mergeOverrideWithDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','lineTo','_docSkeleton','ONLINE','TEXT','_getSaveTimeout','some','_unitStatus','INTERNAL_ERROR','transformMutation','0\x200\x2017\x2016','closePath','addHandlerCallback','CONFLICT','handleDeleteRangeMoveLeft','m1Prime','useCallback','addClipboardHook','2596oAwbpm','sheetID','getMember','_initStatusComponent','CollaborationDataLoaderController','delete','pushState','findNodePositionByCharIndex','collabStatus.notCollab','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_transformPreviousActiveRange','application/json','RevisionService','registerBeforeClose','_sheetSkeletonManagerService','Tooltip','univer-flex\x20univer-items-center','executionId','_draw','_onRefRangeChange','createElement','from','defIds','_range','BehaviorSubject','IImageIoService','yellow.400','_unitOnClients','replaceDocRanges','SheetSkeletonManagerService','_heartbeatTimer','generateRandomId','fromEvent','InsertRangeMoveDownCommandId','_transformService','0\x200\x2016\x2016','reconnect','urlChange$','UnitStatus','DisposableCollection','collabStatus.fetchMiss','bottom','result','_roomMembers$','data','HTTPService','_memberService','_collabCursorState$','hovered','unload','PY_RUNTIME_SCRIPT_ERROR','@univerjs/rpc','collab-rect-range-','_initEvent','runId','string','debug','onLocalMutation','clipPath','selections','getCurrentUnitForType','SheetsSelectionsService','createInstance','getUnitStatus$','_drawTextRange','_saveCache','getParam','UniverInstanceType','dispose$','_updateURLWithCurrentState','unit','_univerInstanceService','addObjects','propertyIsEnumerable','UNRECOGNIZED','uni.network.url-service','set','session.will-retry','registerRenderModule','_transformHistoryAndStateStack','max','APPLY_NON_SEQUENTIAL_REVISION','CollaborationUIEventId','getCellPositionByOffset','svg','_config','MoveRangeCommandId','handleInsertRangeMoveDown','extend','engine','APPLY_DUPLICATED','getSkeleton','then','getCurrentRevOfUnit','getSheetObject','next','@univerjs/design','@univerjs/ui','6612624qISPRU','drawWith','getAncestorScale','_ensureSubject','SOCKET_FAILED','getMemberID','_getMergeRange','values','LICENSE_DISTRO_REJECTED','undoState','search','univerjs-icon\x20univerjs-icon-','merge','RemoteUniscriptService','WECHAT_HAS_BEEN_BOUND','_transformUndoRedoStack','_scheduleHeartbeat','_getAnchorBounding','AWAITING','connectInjector','APPLY_PERMISSION_DENIED','code','handleInsertRow','includes','name','addObject','UPDATE_CURSOR','useObservable','moveTo','ISnapshotServerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','isArray','onPointerMove$','_send','_backgroundColor','size','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_collaborationController','_initResize','ILocalStorageService','black','IRenderManagerService','getRelativeToViewportCoord','transformByState','MemberService','width','_textBubble','UNDEFINED','setInterval','session.collaboration-timeout','SetWorksheetActivateCommand','INVITE_CODE_HAS_BEEN_UES','_injector','APPLY_REVISION_CONFILICT','SetDocZoomRatioOperation','Subject','apply','collab-client.tooltip.reconnect','restore','getUniverSheetInstance','CollaborationSessionService','_beforeCloseService','isTransformMutationsWithChangesetSuccess','endColumn','YUUMI_SUBSCRIPTION_NOT_FOUND','InsertRowCommandId','event$','LICENSE_MAX_UNITS_EXCEEDED','_cursorInfo$','EffectRefRangId','_syncEditingCollabCursorService','deepClone','Inject','OTHER_CLIENTS_EDITING','Optional','_scene','currentColor','_hovered','textRanges','_createSocketURL','colorChannel1','takeUntil','TOO_MANY_REQUESTS','backgroundColor','currentTheme$','get','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_EXPORT_SIZE_EXCEEDED','subscribeEvent','add','whenReady','INVITE_CODE_ALREADY_BOUND','getCurrentSelections','_uiPartsService','_scheduleSaving','LOCAL_CACHE_INTERVAL','AWAITING_WITH_PENDING','attrs','ITransformService','_cachedData','USER_NOT_INVITED_CODE','IURLService','push','_name','setParam','RxDisposable','find','imageSourceType','_docClipboardService','_colorIndex','pipe','@univerjs/network','IDocClipboardService','ACTIVE_UNIT_EVENT_CHANNEL','filter','font','SUBMIT_CHANGESET_TIMEOUT','requireSession','makeDirty','CollaborationEvent','location','Failed','Plugin','saveTaskMap','_status$','_commandService','unitId','#FFF','collaboration-client-ui.config','ICommandService','IRemoteInstanceService','RichTextEditingMutation','_toggleOffline','INVITE_CODE_REQUIRED','height','text','_disabled','_clearOtherTimers','invokeId','DataLoaderService','transformIMECache','registerRefRange','INVALID_INVITE_CODE','disableLocalCache','_handleJoinEvent','Injector','row','_entities','getTypeOfUnitDisposed$','OnLineIcon','react','startColumn','resize','m2Prime','replaceState','assign','_labelPosition','status$','fillStyle','_online','_render','children','_doCreateSocket','COLORS','setActiveRange','random','round','getFocusedUnit','1356718TFSjZz','ticket','Vector2','CollaborationStatus','_refreshCollabCursors','addEventListener','1875368EIotNA','_drawRectRange','univer-flex\x20univer-mr-2\x20univer-text-xl','PERMISSION_DENIED','runOnServer','complete','getUnitId','memberID','_onCursorUpdate','_id','with','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','registerDependencies','show','WebSocketService','assignAColorForMemberID','trim','@univerjs/docs','forEach'];_0x355b=function(){return _0x370acc;};return _0x355b();}var Ut={'tag':_0x4b8b84(0x1b9),'attrs':{'xmlns':_0x4b8b84(0x2f3),'fill':_0x4b8b84(0x28d),'viewBox':_0x4b8b84(0x188),'width':'1em','height':_0x4b8b84(0x2fa)},'children':[{'tag':'g','attrs':{'clipPath':_0x4b8b84(0x3af)},'children':[{'tag':_0x4b8b84(0x38d),'attrs':{'stroke':_0x4b8b84(0x213),'d':_0x4b8b84(0x2be),'strokeLinecap':_0x4b8b84(0x26d),'strokeLinejoin':_0x4b8b84(0x26d),'strokeWidth':1.2}}]},{'tag':_0x4b8b84(0x2e5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4b8b84(0x38d),'attrs':{'fill':_0x4b8b84(0x352),'d':_0x4b8b84(0x334)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M['forwardRef'](function(_0x12a1e6,_0xf3a731){const _0x10d54a=_0x4b8b84;return M[_0x10d54a(0x179)](pe,Object[_0x10d54a(0x262)]({},_0x12a1e6,{'id':'off-line-icon','ref':_0xf3a731,'icon':Ut}));});ye[_0x4b8b84(0x310)]=_0x4b8b84(0x296);var Nt={'tag':_0x4b8b84(0x1b9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4b8b84(0x3ed),'width':'1em','height':_0x4b8b84(0x2fa)},'children':[{'tag':'g','attrs':{'clipPath':_0x4b8b84(0x314)},'children':[{'tag':_0x4b8b84(0x38d),'attrs':{'stroke':_0x4b8b84(0x213),'d':_0x4b8b84(0x280),'strokeLinecap':'round','strokeLinejoin':_0x4b8b84(0x26d),'strokeWidth':1.2}}]},{'tag':_0x4b8b84(0x2e5),'attrs':{},'children':[{'tag':_0x4b8b84(0x19f),'attrs':{'id':_0x4b8b84(0x350)},'children':[{'tag':_0x4b8b84(0x38d),'attrs':{'fill':_0x4b8b84(0x352),'d':_0x4b8b84(0x334),'transform':_0x4b8b84(0x3b9)}}]}]}],'defIds':[_0x4b8b84(0x350)]},$e=M[_0x4b8b84(0x396)](function(_0x202562,_0x4e6468){const _0x4b8b46=_0x4b8b84;return M['createElement'](pe,Object[_0x4b8b46(0x262)]({},_0x202562,{'id':'on-line-icon','ref':_0x4e6468,'icon':Nt}));});$e[_0x4b8b84(0x310)]=_0x4b8b84(0x25c);function Mt(_0x3f6a31){const _0x413118=_0x4b8b84;switch(_0x3f6a31){case u['CollaborationStatus']['OFFLINE']:return _0x413118(0x35e);case u[_0x413118(0x272)][_0x413118(0x3f0)]:return _0x413118(0x397);case u[_0x413118(0x272)][_0x413118(0x2f8)]:return _0x413118(0x18d);case u[_0x413118(0x272)][_0x413118(0x2b3)]:return _0x413118(0x16d);case u[_0x413118(0x272)][_0x413118(0x1d9)]:case u[_0x413118(0x272)][_0x413118(0x227)]:return _0x413118(0x36b);case u[_0x413118(0x272)]['SYNCED']:case u['CollaborationStatus'][_0x413118(0x320)]:return'collabStatus.synced';}}function xe(_0xc231d5){const _0x4e5683=_0x4b8b84,{status$:_0x1a20b0}=_0xc231d5,_0x1a5426=T[_0x4e5683(0x1e2)](_0x1a20b0,u[_0x4e5683(0x272)]['NOT_COLLAB']),_0x4b7448=T['useDependency'](a[_0x4e5683(0x3bf)]),_0xe75182=T['useDependency'](u[_0x4e5683(0x203)]),_0x16e829=_0x1a5426!==u[_0x4e5683(0x272)][_0x4e5683(0x298)],_0x310846=_0x4b7448['t'](Mt(_0x1a5426)),_0x280988=_0x16e829?w['jsx']($e,{}):w[_0x4e5683(0x3df)](ye,{}),_0xb8fd78=M[_0x4e5683(0x163)](()=>{const _0x40ffc9=_0x4e5683;_0x16e829||_0xe75182[_0x40ffc9(0x189)]();},[_0x16e829,_0xe75182]);function _0x3a89d9(){const _0x50caed=_0x4e5683;return w['jsxs'](_0x50caed(0x357),{'className':_0x50caed(0x175),'onClick':_0xb8fd78,'children':[w[_0x50caed(0x3df)](_0x50caed(0x357),{'className':D['clsx'](_0x50caed(0x277),{'univer-text-green-500':_0x16e829,'univer-text-red-500':!_0x16e829}),'children':_0x280988}),w[_0x50caed(0x3df)](_0x50caed(0x357),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x310846})]});}return _0x16e829?_0x3a89d9():w['jsx'](D[_0x4e5683(0x174)],{'title':_0x4b7448['t'](_0x4e5683(0x200)),'children':_0x3a89d9()});}var Lt=Object['getOwnPropertyDescriptor'],wt=(_0x237b1a,_0x4eb30d,_0x367610,_0x33fbf2)=>{const _0x4f4f08=_0x4b8b84;for(var _0x5ec403=_0x33fbf2>0x1?void 0x0:_0x33fbf2?Lt(_0x4eb30d,_0x367610):_0x4eb30d,_0x103a60=_0x237b1a[_0x4f4f08(0x33e)]-0x1,_0x30e1ff;_0x103a60>=0x0;_0x103a60--)(_0x30e1ff=_0x237b1a[_0x103a60])&&(_0x5ec403=_0x30e1ff(_0x5ec403)||_0x5ec403);return _0x5ec403;},V=(_0x136483,_0x29e455)=>(_0x51d736,_0x139022)=>_0x29e455(_0x51d736,_0x139022,_0x136483);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x34609a,_0x52da72,_0x19b7ba,_0x18f83b){const _0x2475e2=_0x4b8b84;super(),h(this,_0x2475e2(0x243),new d['BehaviorSubject'](u['CollaborationStatus'][_0x2475e2(0x2b3)])),(this[_0x2475e2(0x1ac)]=_0x34609a,this[_0x2475e2(0x1fb)]=_0x52da72,this['_collaborationController']=_0x19b7ba,this[_0x2475e2(0x224)]=_0x18f83b,this[_0x2475e2(0x168)](),this[_0x2475e2(0x32e)]());}[_0x4b8b84(0x32e)](){const _0x2d50e8=_0x4b8b84;this[_0x2d50e8(0x307)](this[_0x2d50e8(0x1ac)][_0x2d50e8(0x385)]['pipe'](d[_0x2d50e8(0x29b)](()=>{const _0x12a843=_0x2d50e8,_0x12cf07=this[_0x12a843(0x1ac)][_0x12a843(0x26e)]();return _0x12cf07?this[_0x12a843(0x1ec)]['getCollabEntity$'](_0x12cf07[_0x12a843(0x27b)]()):d['of'](null);}),d['switchMap'](_0xb9ed14=>_0xb9ed14?_0xb9ed14[_0x2d50e8(0x264)]:d['of'](u[_0x2d50e8(0x272)][_0x2d50e8(0x2b3)])))[_0x2d50e8(0x2ea)](_0x54c630=>{const _0x318b5d=_0x2d50e8;this[_0x318b5d(0x243)][_0x318b5d(0x1c4)](_0x54c630);}));}[_0x4b8b84(0x168)](){const _0x5a7fde=_0x4b8b84;this[_0x5a7fde(0x307)](this[_0x5a7fde(0x224)][_0x5a7fde(0x324)](T[_0x5a7fde(0x3a8)]['HEADER_MENU'],()=>T[_0x5a7fde(0x1da)](Pt({'status$':this['_status$'][_0x5a7fde(0x3ca)]()}),this[_0x5a7fde(0x1fb)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x4b8b84(0x258)])),V(0x2,a[_0x4b8b84(0x20f)](u['CollaborationController'])),V(0x3,T[_0x4b8b84(0x37d)])],exports[_0x4b8b84(0x36c)]);function Pt(_0x3cda0b){const {status$:_0x252336}=_0x3cda0b;return function(){const _0x3a15f9=_0xe05a;return w[_0x3a15f9(0x3df)](xe,{'status$':_0x252336});};}var At=Object[_0x4b8b84(0x39e)],yt=(_0x5ddaac,_0x52aebb,_0xedf22b,_0x431f08)=>{const _0x459c82=_0x4b8b84;for(var _0x435d4b=_0x431f08>0x1?void 0x0:_0x431f08?At(_0x52aebb,_0xedf22b):_0x52aebb,_0x227d16=_0x5ddaac[_0x459c82(0x33e)]-0x1,_0x28c852;_0x227d16>=0x0;_0x227d16--)(_0x28c852=_0x5ddaac[_0x227d16])&&(_0x435d4b=_0x28c852(_0x435d4b)||_0x435d4b);return _0x435d4b;},y=(_0x2bbc85,_0x33c6e8)=>(_0x145316,_0x27fa78)=>_0x33c6e8(_0x145316,_0x27fa78,_0x2bbc85);let q=class extends a[_0x4b8b84(0x3c2)]{constructor(_0x232d1a,_0x48b7b5,_0x5ecef8,_0x1ab019,_0xdbe10f,_0x2ad921){const _0x3f7926=_0x4b8b84;super(),this[_0x3f7926(0x204)]=_0x232d1a,this[_0x3f7926(0x330)]=_0x48b7b5,this['_collaborationUIEventService']=_0x5ecef8,this['_messageService']=_0x1ab019,this[_0x3f7926(0x311)]=_0xdbe10f,this[_0x3f7926(0x338)]=_0x2ad921,this[_0x3f7926(0x3cb)](),this[_0x3f7926(0x19a)]();}['_setupBeforeClosingHandler'](){const _0x230878=_0x4b8b84;this[_0x230878(0x307)](this[_0x230878(0x204)][_0x230878(0x172)](()=>{const _0x4b3321=_0x230878;if(this[_0x4b3321(0x330)][_0x4b3321(0x242)][_0x4b3321(0x1ea)])return this[_0x4b3321(0x338)]['t'](_0x4b3321(0x3c1));}));}[_0x4b8b84(0x19a)](){const _0x1c191f=_0x4b8b84;this[_0x1c191f(0x307)](this[_0x1c191f(0x3a9)][_0x1c191f(0x209)][_0x1c191f(0x2ea)](_0x5e476c=>{const _0x4ef31a=_0x1c191f;_0x5e476c['id']===u[_0x4ef31a(0x1b7)][_0x4ef31a(0x328)]&&this[_0x4ef31a(0x361)][_0x4ef31a(0x282)]({'type':D[_0x4ef31a(0x3c7)][_0x4ef31a(0x329)],'content':this[_0x4ef31a(0x338)]['t'](_0x4ef31a(0x3b1))}),_0x5e476c['id']===u[_0x4ef31a(0x1b7)]['CLOSE_ROOM']&&this[_0x4ef31a(0x361)][_0x4ef31a(0x282)]({'type':D[_0x4ef31a(0x3c7)]['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x5e476c['id']===u[_0x4ef31a(0x1b7)][_0x4ef31a(0x278)]&&this[_0x4ef31a(0x311)]['show']({'title':this[_0x4ef31a(0x338)]['t'](_0x4ef31a(0x2f9)),'content':this[_0x4ef31a(0x338)]['t'](_0x4ef31a(0x2e3)),'type':_0x4ef31a(0x313),'duration':0x0}),_0x5e476c['id']===u[_0x4ef31a(0x1b7)][_0x4ef31a(0x3f0)]&&this['_messageService'][_0x4ef31a(0x282)]({'type':D[_0x4ef31a(0x3c7)]['Error'],'content':this['_localeService']['t'](_0x4ef31a(0x2a1))+'('+_0x5e476c['data']+')'}),_0x5e476c['id']===u[_0x4ef31a(0x1b7)][_0x4ef31a(0x34c)]&&this[_0x4ef31a(0x361)][_0x4ef31a(0x282)]({'type':D[_0x4ef31a(0x3c7)][_0x4ef31a(0x329)],'content':this[_0x4ef31a(0x338)]['t'](_0x5e476c['data']||'')}),_0x5e476c['id']===u[_0x4ef31a(0x1b7)][_0x4ef31a(0x3c3)]&&this['_messageService'][_0x4ef31a(0x282)]({'type':D[_0x4ef31a(0x3c7)][_0x4ef31a(0x329)],'content':this[_0x4ef31a(0x338)]['t'](_0x4ef31a(0x1b2))}),_0x5e476c['id']===u[_0x4ef31a(0x1b7)][_0x4ef31a(0x1cb)]&&this[_0x4ef31a(0x361)][_0x4ef31a(0x282)]({'type':D[_0x4ef31a(0x3c7)]['Error'],'content':this[_0x4ef31a(0x338)]['t'](_0x4ef31a(0x2a8))}),_0x5e476c['id']===u[_0x4ef31a(0x1b7)][_0x4ef31a(0x23b)]&&this[_0x4ef31a(0x361)][_0x4ef31a(0x282)]({'type':D[_0x4ef31a(0x3c7)][_0x4ef31a(0x3b3)],'content':this[_0x4ef31a(0x338)]['t'](_0x4ef31a(0x1f8))});}));}};q=yt([y(0x0,T[_0x4b8b84(0x3cd)]),y(0x1,u[_0x4b8b84(0x354)]),y(0x2,a['Inject'](u[_0x4b8b84(0x2b1)])),y(0x3,T['IMessageService']),y(0x4,T[_0x4b8b84(0x38a)]),y(0x5,a['Inject'](a['LocaleService']))],q);const $t=_0x4b8b84(0x247),Ue={},be=a['createIdentifier'](_0x4b8b84(0x1b0));var xt=Object[_0x4b8b84(0x39e)],jt=(_0x11061d,_0x1d2628,_0x17e805,_0x10acec)=>{const _0x2dcae6=_0x4b8b84;for(var _0x2fd36b=_0x10acec>0x1?void 0x0:_0x10acec?xt(_0x1d2628,_0x17e805):_0x1d2628,_0x1f4910=_0x11061d[_0x2dcae6(0x33e)]-0x1,_0x3a6b26;_0x1f4910>=0x0;_0x1f4910--)(_0x3a6b26=_0x11061d[_0x1f4910])&&(_0x2fd36b=_0x3a6b26(_0x2fd36b)||_0x2fd36b);return _0x2fd36b;},H=(_0x5275ac,_0x447133)=>(_0x1fab11,_0xf69025)=>_0x447133(_0x1fab11,_0xf69025,_0x5275ac);exports['CollaborationDataLoaderController']=class extends a['RxDisposable']{constructor(_0x3662d0,_0x3e1819,_0x1fbfb0,_0x1c1188,_0x4bfffe){const _0x31f84d=_0x4b8b84;super(),this[_0x31f84d(0x356)]=_0x3662d0,this[_0x31f84d(0x3bd)]=_0x3e1819,this[_0x31f84d(0x244)]=_0x1fbfb0,this[_0x31f84d(0x2f5)]=_0x1c1188,_0x4bfffe?_0x4bfffe==null||_0x4bfffe[_0x31f84d(0x221)]()[_0x31f84d(0x1c1)](()=>this[_0x31f84d(0x331)]()):(this[_0x31f84d(0x3bd)][_0x31f84d(0x19d)](_0x31f84d(0x309),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x31f84d(0x331)]());}async['_init'](){const _0x33e302=_0x4b8b84,_0x33eac6=this[_0x33e302(0x356)][_0x33e302(0x1a7)]('unit'),_0x4de71c=this[_0x33e302(0x356)][_0x33e302(0x1a7)](_0x33e302(0x3d8)),_0x34041f=this[_0x33e302(0x356)][_0x33e302(0x1a7)](_0x33e302(0x305));if(!_0x33eac6||!_0x4de71c){this[_0x33e302(0x3bd)][_0x33e302(0x19d)]('[CollaborationDataLoaderController]',_0x33e302(0x380));return;}const _0x3891e5=await this[_0x33e302(0x2f5)][_0x33e302(0x2b0)](_0x33eac6,Number(_0x4de71c),_0x34041f);_0x3891e5&&_0x3891e5 instanceof a[_0x33e302(0x348)]&&this[_0x33e302(0x3ac)](_0x3891e5);}async[_0x4b8b84(0x3ac)](_0x5cc16c){const _0x22ba6e=_0x4b8b84;await this[_0x22ba6e(0x38c)](_0x5cc16c),_0x5cc16c[_0x22ba6e(0x2c6)][_0x22ba6e(0x235)](d[_0x22ba6e(0x218)](this[_0x22ba6e(0x1a9)]))[_0x22ba6e(0x2ea)](_0x9df3cb=>{const _0x4addfa=_0x22ba6e;_0x9df3cb&&this[_0x4addfa(0x1aa)](_0x9df3cb);}),this['_urlService'][_0x22ba6e(0x18a)]['pipe'](d['takeUntil'](this[_0x22ba6e(0x1a9)]))[_0x22ba6e(0x2ea)](()=>this[_0x22ba6e(0x38c)](_0x5cc16c));}['_updateURLWithCurrentState'](_0x4aedbb,_0x223414=!0x1){const _0x50601e=_0x4b8b84,_0x339b6b=this[_0x50601e(0x356)][_0x50601e(0x1a7)](_0x50601e(0x305));_0x4aedbb[_0x50601e(0x3a3)]()!==_0x339b6b&&this[_0x50601e(0x356)][_0x50601e(0x22f)](_0x50601e(0x305),_0x4aedbb[_0x50601e(0x3a3)](),_0x223414);}async[_0x4b8b84(0x38c)](_0x4addf5){const _0x1706f9=_0x4b8b84;var _0x102413;const _0x5c6ef2=this[_0x1706f9(0x356)][_0x1706f9(0x1a7)](_0x1706f9(0x305));if(!_0x5c6ef2||!_0x4addf5[_0x1706f9(0x3cc)](_0x5c6ef2)){const _0x133b03=_0x4addf5['getUnhiddenWorksheets']()[0x0],_0x519d57=_0x4addf5[_0x1706f9(0x3cc)](_0x133b03);if(!_0x519d57)return;this['_updateURLWithCurrentState'](_0x519d57,!0x0),await this[_0x1706f9(0x244)][_0x1706f9(0x39d)](g[_0x1706f9(0x1f9)]['id'],{'unitId':_0x4addf5[_0x1706f9(0x27b)](),'subUnitId':_0x133b03});return;}((_0x102413=_0x4addf5[_0x1706f9(0x33d)]())==null?void 0x0:_0x102413[_0x1706f9(0x3a3)]())!==_0x5c6ef2&&await this['_commandService'][_0x1706f9(0x39d)](g[_0x1706f9(0x1f9)]['id'],{'unitId':_0x4addf5['getUnitId'](),'subUnitId':_0x5c6ef2});}},exports[_0x4b8b84(0x169)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x4b8b84(0x248)]),H(0x3,a[_0x4b8b84(0x20f)](u[_0x4b8b84(0x252)])),H(0x4,a[_0x4b8b84(0x211)](Ke[_0x4b8b84(0x249)]))],exports[_0x4b8b84(0x169)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x1fa08f,_0xd53e35,_0x57607b,_0x1b53f0)=>{const _0x5c5808=_0x4b8b84;for(var _0x5b0432=_0x1b53f0>0x1?void 0x0:_0x1b53f0?Bt(_0xd53e35,_0x57607b):_0xd53e35,_0x163fb1=_0x1fa08f[_0x5c5808(0x33e)]-0x1,_0x34ac2b;_0x163fb1>=0x0;_0x163fb1--)(_0x34ac2b=_0x1fa08f[_0x163fb1])&&(_0x5b0432=_0x34ac2b(_0x5b0432)||_0x5b0432);return _0x5b0432;},ce=(_0x492cf0,_0x4fe2a4)=>(_0x18e2d5,_0x464306)=>_0x4fe2a4(_0x18e2d5,_0x464306,_0x492cf0);let z=class{constructor(_0x3bc2a4,_0x519f70,_0x781a6f){const _0x16da9e=_0x4b8b84;this[_0x16da9e(0x1fb)]=_0x3bc2a4,this[_0x16da9e(0x187)]=_0x519f70,this[_0x16da9e(0x28b)]=_0x781a6f;}[_0x4b8b84(0x253)](_0x328496){const _0x1e11cd=_0x4b8b84;this[_0x1e11cd(0x1d6)](_0x328496),this[_0x1e11cd(0x16f)](_0x328496);}[_0x4b8b84(0x39a)](_0x4ee779){const _0x3fd615=_0x4b8b84,{unitID:_0x1a0f63}=_0x4ee779,_0x38c8ee=this[_0x3fd615(0x28b)][_0x3fd615(0x39c)](_0x1a0f63)[_0x3fd615(0x27f)](b[_0x3fd615(0x2c2)]),{redoCache:_0x36a47d}=_0x38c8ee[_0x3fd615(0x2a4)]();if(_0x36a47d[_0x3fd615(0x33e)]===0x0)return _0x4ee779;let _0x5eb047=a[_0x3fd615(0x325)]['deepClone'](_0x4ee779['mutations'][0x0]);for(let _0x424ffc=0x0;_0x424ffc<_0x36a47d[_0x3fd615(0x33e)];_0x424ffc++){const _0x598dde={'id':_0x3fd615(0x3cf),'params':{..._0x36a47d[_0x424ffc]}},_0x58d381=this[_0x3fd615(0x187)][_0x3fd615(0x3ec)](_0x5eb047,_0x598dde,!0x1);if(m[_0x3fd615(0x37b)](_0x58d381))throw _0x58d381[_0x3fd615(0x313)];_0x5eb047=_0x58d381[_0x3fd615(0x3f2)];}return{...a[_0x3fd615(0x325)][_0x3fd615(0x20e)](_0x4ee779),'mutations':[_0x5eb047]};}[_0x4b8b84(0x1d6)](_0x16a742){const _0x5a3283=_0x4b8b84,{unitID:_0x4def8c}=_0x16a742,_0x1bc274=this[_0x5a3283(0x28b)][_0x5a3283(0x39c)](_0x4def8c)[_0x5a3283(0x27f)](b[_0x5a3283(0x2c2)]),{undoCache:_0x2edc33,redoCache:_0xeb3e78}=_0x1bc274[_0x5a3283(0x2a4)]();if(_0x2edc33[_0x5a3283(0x33e)]===0x0||_0xeb3e78[_0x5a3283(0x33e)]===0x0)return;const _0x46d787=[],_0x1cceca=[];let _0x2bb602=a[_0x5a3283(0x325)][_0x5a3283(0x20e)](_0x16a742['mutations'][0x0]),_0xa19230=a[_0x5a3283(0x325)][_0x5a3283(0x20e)](_0x16a742[_0x5a3283(0x337)][0x0]);for(let _0xb3b562=_0x2edc33[_0x5a3283(0x33e)]-0x1;_0xb3b562>=0x0;_0xb3b562--){const _0x2aa747={'id':_0x5a3283(0x3cf),'params':{..._0x2edc33[_0xb3b562]}},_0x589a32={'id':_0x5a3283(0x3cf),'params':{..._0xeb3e78[_0xb3b562]}},_0x54abf4=this['_transformService'][_0x5a3283(0x3ec)](_0x2bb602,_0x2aa747,!0x1),_0x3f95ae=this['_transformService'][_0x5a3283(0x3ec)](_0xa19230,_0x589a32,!0x1);if(m[_0x5a3283(0x37b)](_0x54abf4))throw _0x54abf4[_0x5a3283(0x313)];if(m[_0x5a3283(0x37b)](_0x3f95ae))throw _0x3f95ae['error'];_0x46d787[_0x5a3283(0x2b7)](_0x54abf4[_0x5a3283(0x260)][_0x5a3283(0x3b7)]),_0x1cceca['unshift'](_0x3f95ae[_0x5a3283(0x260)][_0x5a3283(0x3b7)]),_0x2bb602=_0x54abf4[_0x5a3283(0x3f2)],_0xa19230=_0x3f95ae[_0x5a3283(0x3f2)];}_0x1bc274[_0x5a3283(0x28c)]({'undoCache':_0x46d787,'redoCache':_0x1cceca});}[_0x4b8b84(0x16f)](_0x2ea47f){const _0x376c10=_0x4b8b84,{unitID:_0x3cb5f7}=_0x2ea47f,_0x2d95fe=this['_renderManagerService'][_0x376c10(0x39c)](_0x3cb5f7)[_0x376c10(0x27f)](b['DocIMEInputManagerService']),_0x2c094c=_0x2d95fe[_0x376c10(0x301)]();if(_0x2c094c==null)return;const _0x47f5e1=[{'id':_0x376c10(0x3cf),'params':{'unitId':_0x2ea47f['unitID'],'actions':null,'textRanges':[_0x2c094c]}}],_0x4a53ad=this[_0x376c10(0x187)][_0x376c10(0x291)](_0x2ea47f,_0x47f5e1);if(!m['isTransformMutationsWithChangesetSuccess'](_0x4a53ad))throw _0x4a53ad[_0x376c10(0x313)];const _0x20ceaa=_0x4a53ad[_0x376c10(0x260)][0x0][_0x376c10(0x3b7)][_0x376c10(0x215)];Array[_0x376c10(0x1e6)](_0x20ceaa)&&_0x20ceaa[_0x376c10(0x33e)]&&_0x2d95fe[_0x376c10(0x26b)](_0x20ceaa[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x4b8b84(0x258)])),ce(0x1,m[_0x4b8b84(0x229)]),ce(0x2,p[_0x4b8b84(0x1f0)])],z);var Ht=Object[_0x4b8b84(0x39e)],Ft=(_0x183b09,_0xe781c4,_0x213c73,_0x292a35)=>{const _0x4c776f=_0x4b8b84;for(var _0x41e376=_0x292a35>0x1?void 0x0:_0x292a35?Ht(_0xe781c4,_0x213c73):_0xe781c4,_0x83a3d7=_0x183b09[_0x4c776f(0x33e)]-0x1,_0x596835;_0x83a3d7>=0x0;_0x83a3d7--)(_0x596835=_0x183b09[_0x83a3d7])&&(_0x41e376=_0x596835(_0x41e376)||_0x41e376);return _0x41e376;},le=(_0x16bfd0,_0x12c49e)=>(_0x38bca0,_0x18860c)=>_0x12c49e(_0x38bca0,_0x18860c,_0x16bfd0);let J=class{constructor(_0x59a2f6,_0x4169da,_0x4b2080){const _0x1cf54c=_0x4b8b84;this[_0x1cf54c(0x1fb)]=_0x59a2f6,this[_0x1cf54c(0x187)]=_0x4169da,this[_0x1cf54c(0x30d)]=_0x4b2080;}[_0x4b8b84(0x3b8)](_0x447062){const _0x28c093=_0x4b8b84;this[_0x28c093(0x1b4)](_0x447062);}[_0x4b8b84(0x39a)](_0x52381d){const _0x214013=_0x4b8b84,{unitID:_0x90eaa1}=_0x52381d,{collaboration:_0x4d7d82}=this[_0x214013(0x30d)]['getStateCache'](_0x90eaa1);if(_0x4d7d82[_0x214013(0x33e)]===0x0)return _0x52381d;let _0x12f986=a[_0x214013(0x325)][_0x214013(0x20e)](_0x52381d[_0x214013(0x337)][0x0]);for(let _0x4ab851=0x0;_0x4ab851<_0x4d7d82['length'];_0x4ab851++){const _0x16328c={'id':_0x214013(0x3cf),'params':{'unitId':_0x4d7d82[_0x4ab851]['unitId'],..._0x4d7d82[_0x4ab851]['redoState']}},_0x49ff78=this[_0x214013(0x187)][_0x214013(0x3ec)](_0x12f986,_0x16328c,!0x1);if(m['isTransformMutationFailure'](_0x49ff78))throw _0x49ff78[_0x214013(0x313)];_0x12f986=_0x49ff78[_0x214013(0x3f2)];}return{...a['Tools'][_0x214013(0x20e)](_0x52381d),'mutations':[_0x12f986]};}['_transformHistoryAndStateStack'](_0xd239f9){const _0x1181c9=_0x4b8b84,{unitID:_0xe27e5c}=_0xd239f9,{history:_0x4359bc,collaboration:_0x2ed71f}=this[_0x1181c9(0x30d)][_0x1181c9(0x292)](_0xe27e5c);if(_0x4359bc['length']===0x0&&_0x2ed71f[_0x1181c9(0x33e)]===0x0)return;const _0x142d75=[],_0x673bd=[];let _0x3bf2ae=a[_0x1181c9(0x325)][_0x1181c9(0x20e)](_0xd239f9[_0x1181c9(0x337)][0x0]),_0x195322=a[_0x1181c9(0x325)][_0x1181c9(0x20e)](_0xd239f9[_0x1181c9(0x337)][0x0]);for(let _0x218914=_0x4359bc[_0x1181c9(0x33e)]-0x1;_0x218914>=0x0;_0x218914--){const _0x48ee31={'id':_0x1181c9(0x3cf),'params':{'unitId':_0x4359bc[_0x218914]['unitId'],..._0x4359bc[_0x218914][_0x1181c9(0x1d0)]}},_0x580b7b={'id':_0x1181c9(0x3cf),'params':{'unitId':_0x4359bc[_0x218914][_0x1181c9(0x245)],..._0x4359bc[_0x218914][_0x1181c9(0x29d)]}},_0x226a45=this[_0x1181c9(0x187)][_0x1181c9(0x3ec)](_0x3bf2ae,_0x48ee31,!0x1),_0x2f344a=this['_transformService'][_0x1181c9(0x3ec)](_0x195322,_0x580b7b,!0x1);if(m[_0x1181c9(0x37b)](_0x226a45))throw _0x226a45[_0x1181c9(0x313)];if(m[_0x1181c9(0x37b)](_0x2f344a))throw _0x2f344a[_0x1181c9(0x313)];_0x142d75[_0x1181c9(0x2b7)]({..._0x4359bc[_0x218914],'undoState':_0x226a45[_0x1181c9(0x260)][_0x1181c9(0x3b7)],'redoState':_0x2f344a[_0x1181c9(0x260)]['params']}),_0x3bf2ae=_0x226a45['m1Prime'],_0x195322=_0x2f344a[_0x1181c9(0x3f2)];}_0x3bf2ae=a[_0x1181c9(0x325)][_0x1181c9(0x20e)](_0xd239f9[_0x1181c9(0x337)][0x0]),_0x195322=a[_0x1181c9(0x325)][_0x1181c9(0x20e)](_0xd239f9[_0x1181c9(0x337)][0x0]);for(let _0x303540=_0x2ed71f['length']-0x1;_0x303540>=0x0;_0x303540--){const _0x3e8506={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ed71f[_0x303540][_0x1181c9(0x245)],..._0x2ed71f[_0x303540]['undoState']}},_0x2f4ead={'id':_0x1181c9(0x3cf),'params':{'unitId':_0x2ed71f[_0x303540][_0x1181c9(0x245)],..._0x2ed71f[_0x303540][_0x1181c9(0x29d)]}},_0x2ccc71=this[_0x1181c9(0x187)][_0x1181c9(0x3ec)](_0x3bf2ae,_0x3e8506,!0x1),_0x4a1efe=this[_0x1181c9(0x187)][_0x1181c9(0x3ec)](_0x195322,_0x2f4ead,!0x1);if(m[_0x1181c9(0x37b)](_0x2ccc71))throw _0x2ccc71[_0x1181c9(0x313)];if(m[_0x1181c9(0x37b)](_0x4a1efe))throw _0x4a1efe[_0x1181c9(0x313)];_0x673bd[_0x1181c9(0x2b7)]({..._0x2ed71f[_0x303540],'undoState':_0x2ccc71[_0x1181c9(0x260)][_0x1181c9(0x3b7)],'redoState':_0x4a1efe[_0x1181c9(0x260)][_0x1181c9(0x3b7)]}),_0x3bf2ae=_0x2ccc71['m1Prime'],_0x195322=_0x4a1efe[_0x1181c9(0x3f2)];}this[_0x1181c9(0x30d)][_0x1181c9(0x3b4)](_0xe27e5c,{'history':_0x142d75,'collaboration':_0x673bd});}};J=Ft([le(0x0,a[_0x4b8b84(0x20f)](a[_0x4b8b84(0x258)])),le(0x1,m[_0x4b8b84(0x229)]),le(0x2,a[_0x4b8b84(0x20f)](b[_0x4b8b84(0x2bb)]))],J);var Yt=Object[_0x4b8b84(0x39e)],Wt=(_0x1e9ca3,_0x5cb764,_0x5deb4e,_0x297211)=>{const _0x4ca677=_0x4b8b84;for(var _0x4678b9=_0x297211>0x1?void 0x0:_0x297211?Yt(_0x5cb764,_0x5deb4e):_0x5cb764,_0x495c4a=_0x1e9ca3[_0x4ca677(0x33e)]-0x1,_0xacf427;_0x495c4a>=0x0;_0x495c4a--)(_0xacf427=_0x1e9ca3[_0x495c4a])&&(_0x4678b9=_0xacf427(_0x4678b9)||_0x4678b9);return _0x4678b9;},Ne=(_0x3e367d,_0x28a0c3)=>(_0x44d461,_0x460d73)=>_0x28a0c3(_0x44d461,_0x460d73,_0x3e367d);let Z=class{constructor(_0x415264,_0x2e8200){const _0x53bb5a=_0x4b8b84;this[_0x53bb5a(0x1fb)]=_0x415264,this[_0x53bb5a(0x187)]=_0x2e8200;}[_0x4b8b84(0x3e1)](_0x258f5e){const _0x13a91b=_0x4b8b84;var _0x1fb70d;const _0x1d7698=this[_0x13a91b(0x1fb)][_0x13a91b(0x21c)](Y['DocSelectionManagerService']),_0x4d6c84=(_0x1fb70d=_0x1d7698[_0x13a91b(0x35a)]())!=null?_0x1fb70d:[];if(_0x4d6c84[_0x13a91b(0x33e)]===0x0)return;const _0x12782c=_0x258f5e[_0x13a91b(0x332)],_0x29dd15=[{'id':_0x13a91b(0x3cf),'params':{'unitId':_0x12782c,'actions':null,'textRanges':_0x4d6c84}}],_0x538e3d=this[_0x13a91b(0x187)][_0x13a91b(0x291)](_0x258f5e,_0x29dd15);if(!m[_0x13a91b(0x205)](_0x538e3d))throw _0x538e3d[_0x13a91b(0x313)];const _0x1c76f1=_0x538e3d[_0x13a91b(0x260)][0x0]['params'][_0x13a91b(0x215)];Array[_0x13a91b(0x1e6)](_0x1c76f1)&&_0x1c76f1['length']&&_0x1d7698[_0x13a91b(0x181)](_0x1c76f1,{'unitId':_0x12782c,'subUnitId':_0x12782c},!0x1);}};Z=Wt([Ne(0x0,a[_0x4b8b84(0x20f)](a[_0x4b8b84(0x258)])),Ne(0x1,m[_0x4b8b84(0x229)])],Z);var Vt=Object[_0x4b8b84(0x39e)],Xt=(_0x16054d,_0x485431,_0x4ed912,_0x4434aa)=>{for(var _0x299be8=_0x4434aa>0x1?void 0x0:_0x4434aa?Vt(_0x485431,_0x4ed912):_0x485431,_0x25bad2=_0x16054d['length']-0x1,_0x47c279;_0x25bad2>=0x0;_0x25bad2--)(_0x47c279=_0x16054d[_0x25bad2])&&(_0x299be8=_0x47c279(_0x299be8)||_0x299be8);return _0x299be8;},N=(_0x19ccfe,_0x102eab)=>(_0x29651f,_0x4e81ae)=>_0x102eab(_0x29651f,_0x4e81ae,_0x19ccfe);let Q=class extends a[_0x4b8b84(0x3c2)]{constructor(_0x1cfa57,_0x21b268,_0x22c869,_0x45d807,_0x4395b5,_0x4252ab,_0x5d8b33,_0x515e88){const _0x2d3e5a=_0x4b8b84;super(),h(this,_0x2d3e5a(0x243),new d[(_0x2d3e5a(0x17d))](u['CollaborationStatus'][_0x2d3e5a(0x2b3)])),(this[_0x2d3e5a(0x30d)]=_0x1cfa57,this[_0x2d3e5a(0x1ec)]=_0x21b268,this[_0x2d3e5a(0x2af)]=_0x22c869,this[_0x2d3e5a(0x2aa)]=_0x45d807,this[_0x2d3e5a(0x29f)]=_0x4395b5,this['_docSyncEditingCollabCursorService']=_0x4252ab,this[_0x2d3e5a(0x361)]=_0x5d8b33,this[_0x2d3e5a(0x338)]=_0x515e88,this[_0x2d3e5a(0x35d)]());}['_initEntityListener'](){const _0x1fe6d1=_0x4b8b84;this[_0x1fe6d1(0x307)](this[_0x1fe6d1(0x1ec)][_0x1fe6d1(0x36a)][_0x1fe6d1(0x2ea)](_0x504cd0=>{const _0x2b0c93=_0x1fe6d1,_0x53eb8c=this[_0x2b0c93(0x30d)][_0x2b0c93(0x2fb)][_0x2b0c93(0x2ea)](_0x152f49=>{const _0x2daaeb=_0x2b0c93;if(_0x152f49==null)return;const {unitId:_0x2bd540,redoState:_0x542050,commandId:_0x3a85f3}=_0x152f49;if(_0x2bd540!==_0x504cd0['unitID'])return;const _0x5e7dd9={'id':_0x3a85f3,'type':a[_0x2daaeb(0x2df)]['MUTATION'],'params':{'unitId':_0x2bd540,'actions':_0x542050['actions'],'textRanges':null}};_0x504cd0[_0x2daaeb(0x19e)](_0x5e7dd9);});if(_0x504cd0[_0x2b0c93(0x307)](_0x53eb8c),_0x504cd0 instanceof u['DocCollaborationEntity']){const _0x554681={'onTransformIME':_0x27f3a1=>this['_docTransformIMECacheService']['transformIMECache'](_0x27f3a1),'onTransformState':_0x1ce978=>this[_0x2b0c93(0x2aa)]['transformStateCache'](_0x1ce978),'onTransformSelections':_0x5f1975=>this['_docTransformSelectionsService']['transformSelections'](_0x5f1975),'onSyncEditingCollabCursor':_0x1ee083=>this['_docSyncEditingCollabCursorService'][_0x2b0c93(0x2db)](_0x1ee083),'onTransformRemoteChangesetByIMECache':_0x4653bd=>this[_0x2b0c93(0x2af)]['transformRemoteChangeset'](_0x4653bd),'onTransformRemoteChangesetByStateCache':_0x13e96f=>this[_0x2b0c93(0x2aa)]['transformRemoteChangeset'](_0x13e96f)};_0x504cd0[_0x2b0c93(0x3ef)](_0x554681);}}));}};Q=Xt([N(0x0,a[_0x4b8b84(0x20f)](b[_0x4b8b84(0x2bb)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x4b8b84(0x20f)](z)),N(0x3,a[_0x4b8b84(0x20f)](J)),N(0x4,a[_0x4b8b84(0x20f)](Z)),N(0x5,a[_0x4b8b84(0x20f)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x4b8b84(0x20f)](a[_0x4b8b84(0x3bf)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x3c1174,_0x47dbca,_0x2b7b53,_0x4f9c75)=>{const _0x104ed0=_0x4b8b84;for(var _0x4fd0b9=_0x4f9c75>0x1?void 0x0:_0x4f9c75?Gt(_0x47dbca,_0x2b7b53):_0x47dbca,_0x3d3989=_0x3c1174[_0x104ed0(0x33e)]-0x1,_0x454d15;_0x3d3989>=0x0;_0x3d3989--)(_0x454d15=_0x3c1174[_0x3d3989])&&(_0x4fd0b9=_0x454d15(_0x4fd0b9)||_0x4fd0b9);return _0x4fd0b9;},_e=(_0xb7fb74,_0x45efec)=>(_0x5cbb55,_0x11200f)=>_0x45efec(_0x5cbb55,_0x11200f,_0xb7fb74);let ge=class extends a[_0x4b8b84(0x3c2)]{constructor(_0x369b67,_0x424f79,_0x1d14b4){const _0x27272a=_0x4b8b84;super(),h(this,_0x27272a(0x22a),new Map()),h(this,_0x27272a(0x370),new Map()),h(this,_0x27272a(0x24f),!0x1),(this[_0x27272a(0x31d)]=_0x369b67,this['_localStorageService']=_0x424f79,this['_revisionService']=_0x1d14b4);}[_0x4b8b84(0x256)](){const _0x5b22fe=_0x4b8b84;this[_0x5b22fe(0x24f)]=!0x0;}[_0x4b8b84(0x371)](){const _0x31670c=_0x4b8b84;this[_0x31670c(0x24f)]=!0x1;}get[_0x4b8b84(0x242)](){const _0x28224d=_0x4b8b84;return this[_0x28224d(0x370)];}[_0x4b8b84(0x2ed)](){const _0x412770=_0x4b8b84;this['exhaustSavingTask']()[_0x412770(0x1c1)](()=>super[_0x412770(0x2ed)]());}async['loadOfflineData'](_0x544ffc){const _0x3ba0e4=_0x4b8b84;return this[_0x3ba0e4(0x24f)]?null:this[_0x3ba0e4(0x2ec)][_0x3ba0e4(0x30a)](u[_0x3ba0e4(0x373)](_0x544ffc));}async['saveOfflineData'](_0x11c9b2,_0x118448){const _0x15297b=_0x4b8b84;return!!this['_localStorageService'][_0x15297b(0x2fd)](_0x11c9b2,_0x118448);}['updateOfflineData'](_0x5527e2,_0x43cfd0,_0x3f2d54,_0x1ca6ab){const _0x3e1c19=_0x4b8b84,_0x435b32=this['_revisionService'][_0x3e1c19(0x1c2)](_0x5527e2);this[_0x3e1c19(0x22a)][_0x3e1c19(0x1b1)](_0x5527e2,{'unitID':_0x5527e2,'type':_0x43cfd0,'awaitingChangeset':_0x3f2d54,'mutations':_0x1ca6ab,'rev':_0x435b32}),this[_0x3e1c19(0x370)][_0x3e1c19(0x315)](_0x5527e2)||this[_0x3e1c19(0x225)](_0x5527e2);}[_0x4b8b84(0x225)](_0x2a39fd){const _0x12679d=_0x4b8b84,_0x4042ab=this['_getSaveTimeout']();_0x4042ab===0x0?this['_saveCache'](_0x2a39fd):this['_saveTaskMap'][_0x12679d(0x1b1)](_0x2a39fd,setTimeout(()=>this['_saveCache'](_0x2a39fd),_0x4042ab));}[_0x4b8b84(0x3e8)](){const _0xbb9bf=_0x4b8b84;var _0xcfac67;return(_0xcfac67=this[_0xbb9bf(0x31d)][_0xbb9bf(0x2b9)](u[_0xbb9bf(0x3a2)]))!=null?_0xcfac67:u[_0xbb9bf(0x226)];}[_0x4b8b84(0x1a6)](_0xdc4df1){const _0x426e59=_0x4b8b84,_0x4ac622=this[_0x426e59(0x370)]['get'](_0xdc4df1);return _0x4ac622!==void 0x0&&window['clearTimeout'](_0x4ac622),this[_0x426e59(0x2ec)][_0x426e59(0x2fd)](u[_0x426e59(0x373)](_0xdc4df1),this[_0x426e59(0x22a)]['get'](_0xdc4df1))['then'](()=>this[_0x426e59(0x370)][_0x426e59(0x16a)](_0xdc4df1));}async['exhaustSavingTask'](){const _0x472652=_0x4b8b84,_0x2e8d7b=[];this['_saveTaskMap'][_0x472652(0x287)]((_0x31ef04,_0x345910)=>{const _0x280aef=_0x472652;window['clearTimeout'](_0x31ef04),_0x2e8d7b[_0x280aef(0x22d)](this[_0x280aef(0x1a6)](_0x345910)[_0x280aef(0x1c1)](()=>{const _0x869f6d=_0x280aef;this[_0x869f6d(0x370)]['delete'](_0x345910);}));}),await Promise['all'](_0x2e8d7b);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x4b8b84(0x1ee)]),_e(0x2,a[_0x4b8b84(0x20f)](m[_0x4b8b84(0x171)]))],ge);class je extends a[_0x4b8b84(0x230)]{constructor(){const _0x27de4a=_0x4b8b84;super(),h(this,_0x27de4a(0x18a)),this[_0x27de4a(0x18a)]=d['fromEvent'](window,'popstate')['pipe'](d[_0x27de4a(0x218)](this['dispose$']),d[_0x27de4a(0x38e)](0x1),d['mapTo'](void 0x0));}[_0x4b8b84(0x22f)](_0x430ea4,_0x767352,_0x28c736=!0x1){const _0x202db1=_0x4b8b84,_0x11e900=new URL(window[_0x202db1(0x23f)][_0x202db1(0x31b)]);_0x11e900['searchParams'][_0x202db1(0x1b1)](_0x430ea4,_0x767352),_0x28c736?window[_0x202db1(0x327)]['replaceState']('','',_0x11e900[_0x202db1(0x36f)]()):window[_0x202db1(0x327)]['pushState']('','',_0x11e900[_0x202db1(0x36f)]());}[_0x4b8b84(0x2eb)](_0x132745,_0xdc23ed=!0x1){const _0x4daa50=_0x4b8b84,_0x2f54d4=new URL(window[_0x4daa50(0x23f)][_0x4daa50(0x31b)]);_0x2f54d4[_0x4daa50(0x3db)]['delete'](_0x132745),_0xdc23ed?window[_0x4daa50(0x327)][_0x4daa50(0x261)]('','',_0x2f54d4[_0x4daa50(0x36f)]()):window[_0x4daa50(0x327)][_0x4daa50(0x16b)]('','',_0x2f54d4[_0x4daa50(0x36f)]());}[_0x4b8b84(0x1a7)](_0x1c4a47){const _0x4271bd=_0x4b8b84;var _0x210049;return(_0x210049=new URL(window['location'][_0x4271bd(0x31b)])[_0x4271bd(0x3db)]['get'](_0x1c4a47))!=null?_0x210049:void 0x0;}}var qt=Object[_0x4b8b84(0x2e2)],zt=Object[_0x4b8b84(0x39e)],Jt=(_0x43aad4,_0x75cec7,_0x33f5d2)=>_0x75cec7 in _0x43aad4?qt(_0x43aad4,_0x75cec7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33f5d2}):_0x43aad4[_0x75cec7]=_0x33f5d2,Zt=(_0x323a61,_0x512dc6,_0x2e4a86,_0x298f99)=>{const _0x1523ee=_0x4b8b84;for(var _0x40a64d=_0x298f99>0x1?void 0x0:_0x298f99?zt(_0x512dc6,_0x2e4a86):_0x512dc6,_0x64ad82=_0x323a61[_0x1523ee(0x33e)]-0x1,_0x2b2a9b;_0x64ad82>=0x0;_0x64ad82--)(_0x2b2a9b=_0x323a61[_0x64ad82])&&(_0x40a64d=_0x2b2a9b(_0x40a64d)||_0x40a64d);return _0x40a64d;},he=(_0x44b0a4,_0x5b4b00)=>(_0x22116e,_0x1ebd42)=>_0x5b4b00(_0x22116e,_0x1ebd42,_0x44b0a4),Qt=(_0x344c80,_0x2f9675,_0x4d2037)=>Jt(_0x344c80,_0x2f9675+'',_0x4d2037);const es=_0x4b8b84(0x3d3);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x4b8b84(0x241)]{constructor(_0x1eb55e=Ue,_0x553b5a,_0x52352a,_0x55fac1){const _0x3d04d0=_0x4b8b84;super(),this[_0x3d04d0(0x1ba)]=_0x1eb55e,this[_0x3d04d0(0x28b)]=_0x553b5a,this[_0x3d04d0(0x1fb)]=_0x52352a,this['_configService']=_0x55fac1;const {..._0x4a7079}=a[_0x3d04d0(0x1d3)]({},Ue,this[_0x3d04d0(0x1ba)]);this['_configService'][_0x3d04d0(0x383)]($t,_0x4a7079);}[_0x4b8b84(0x2c4)](){const _0x33a5e4=_0x4b8b84;this['_registerDependencies'](),this[_0x33a5e4(0x33c)]();}['onRendered'](){const _0x32ce75=_0x4b8b84;this[_0x32ce75(0x2c3)]();}['_registerDependencies'](){const _0x5dbe5a=_0x4b8b84;var _0x1fd52e;const _0x376cbf=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5dbe5a(0x38f)],{'useClass':G[_0x5dbe5a(0x283)]}],[u[_0x5dbe5a(0x354)],{'useClass':ge}],[exports[_0x5dbe5a(0x36c)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x5dbe5a(0x281)](this[_0x5dbe5a(0x1fb)],a[_0x5dbe5a(0x3e2)](_0x376cbf,(_0x1fd52e=this['_config'])==null?void 0x0:_0x1fd52e[_0x5dbe5a(0x379)]));}['_registerRenderDependencies'](){const _0x1c894a=_0x4b8b84;this[_0x1c894a(0x307)](this[_0x1c894a(0x28b)][_0x1c894a(0x1b3)](a[_0x1c894a(0x1a8)]['UNIVER_DOC'],[Ie])),this[_0x1c894a(0x307)](this[_0x1c894a(0x28b)][_0x1c894a(0x1b3)](a['UniverInstanceType'][_0x1c894a(0x2d7)],[ve]));}[_0x4b8b84(0x33c)](){const _0x2b6203=_0x4b8b84;a['touchDependencies'](this['_injector'],[[x],[exports[_0x2b6203(0x36c)]],[Q],[q],[exports[_0x2b6203(0x169)]]]);}},Qt(exports[_0x4b8b84(0x32d)],'pluginName',es),exports[_0x4b8b84(0x32d)]=Zt([a[_0x4b8b84(0x294)](u[_0x4b8b84(0x2cb)]),he(0x1,p[_0x4b8b84(0x1f0)]),he(0x2,a[_0x4b8b84(0x20f)](a['Injector'])),he(0x3,a[_0x4b8b84(0x2f6)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x26e484,_0x111491,_0x55f26e,_0x583399)=>{for(var _0x36effd=_0x583399>0x1?void 0x0:_0x583399?ts(_0x111491,_0x55f26e):_0x111491,_0x47a308=_0x26e484['length']-0x1,_0x133f07;_0x47a308>=0x0;_0x47a308--)(_0x133f07=_0x26e484[_0x47a308])&&(_0x36effd=_0x133f07(_0x36effd)||_0x36effd);return _0x36effd;},F=(_0x2bf6ad,_0x404bd6)=>(_0x4087fa,_0x2b671d)=>_0x404bd6(_0x4087fa,_0x2b671d,_0x2bf6ad);exports[_0x4b8b84(0x2ac)]=class extends u[_0x4b8b84(0x2dd)]{constructor(_0x3fdd7f,_0x312ee0,_0x3de7a2,_0x1a4a61,_0x15d9d0){super(_0x3fdd7f,_0x312ee0,_0x3de7a2,_0x1a4a61,_0x15d9d0);}async[_0x4b8b84(0x2a9)](_0x2b1e33){const _0x3f409f=_0x4b8b84,_0x1b7885=await this[_0x3f409f(0x344)](),_0xda3f1a=this[_0x3f409f(0x216)](_0x2b1e33,_0x1b7885);return this[_0x3f409f(0x269)](_0xda3f1a);}[_0x4b8b84(0x216)](_0x1bad11,_0x2d1f46){const _0x49d337=_0x4b8b84,_0x2f123d=typeof window>'u'?new URL(_0x1bad11):new URL(_0x1bad11,window['location'][_0x49d337(0x2e7)]);_0x2f123d['searchParams']['set'](_0x49d337(0x2ff),_0x2d1f46);const _0x295260=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x49d337(0x23f)][_0x49d337(0x1d1)]);return _0x295260[_0x49d337(0x21c)](_0x49d337(0x19b))&&_0x2f123d[_0x49d337(0x3db)][_0x49d337(0x1b1)](_0x49d337(0x19b),_0x295260['get'](_0x49d337(0x19b))),_0x2f123d[_0x49d337(0x36f)]();}async[_0x4b8b84(0x344)](){const _0x5e2993=_0x4b8b84;var _0x221507,_0x49475c,_0x192e5c;const _0x4209d7=this[_0x5e2993(0x31d)][_0x5e2993(0x2b9)](u[_0x5e2993(0x3e3)]),_0x54339d=(_0x221507=_0x4209d7==null?void 0x0:_0x4209d7[_0x5e2993(0x2bd)])!=null?_0x221507:u[_0x5e2993(0x2e1)];return(_0x192e5c=(_0x49475c=(await this['_httpService']['get'](_0x54339d,{'headers':{'Content-Type':_0x5e2993(0x170)}}))[_0x5e2993(0x308)])==null?void 0x0:_0x49475c[_0x5e2993(0x270)])!=null?_0x192e5c:'';}},exports[_0x4b8b84(0x2ac)]=ss([F(0x0,a[_0x4b8b84(0x20f)](a[_0x4b8b84(0x258)])),F(0x1,a[_0x4b8b84(0x20f)](G[_0x4b8b84(0x192)])),F(0x2,a['IConfigService']),F(0x3,a['ILogService']),F(0x4,m[_0x4b8b84(0x1e4)])],exports[_0x4b8b84(0x2ac)]);const Me=0x7530,Le=_0x4b8b84(0x238);class is extends a[_0x4b8b84(0x3c2)]{constructor(){const _0x3f6f83=_0x4b8b84;super(),h(this,_0x3f6f83(0x27e),a[_0x3f6f83(0x184)]()),h(this,_0x3f6f83(0x33b),new Set()),h(this,_0x3f6f83(0x180),new Map()),h(this,_0x3f6f83(0x183),null),h(this,_0x3f6f83(0x250),new Map()),h(this,_0x3f6f83(0x3ea),new Map()),this[_0x3f6f83(0x331)]();}[_0x4b8b84(0x2ed)](){const _0x64e330=_0x4b8b84;super[_0x64e330(0x2ed)](),this[_0x64e330(0x250)][_0x64e330(0x287)]((_0x5aec12,_0x2eba03)=>this[_0x64e330(0x39b)](_0x2eba03)),this[_0x64e330(0x183)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4b8b84(0x1a4)](_0x116271){const _0xb581da=_0x4b8b84;return this[_0xb581da(0x1ca)](_0x116271)[_0xb581da(0x235)](d['distinctUntilChanged']());}['editingUnit'](_0x16f22c){const _0x547d8d=_0x4b8b84;this['_selfUnitIDs'][_0x547d8d(0x1ea)]===0x0&&this[_0x547d8d(0x1d7)](),this[_0x547d8d(0x33b)]['add'](_0x16f22c),this[_0x547d8d(0x1e8)]({'type':0x0,'memberID':this[_0x547d8d(0x27e)],'unitIDs':[_0x16f22c],'isForwarded':!0x1});}['disposeUnit'](_0x56ac5d){const _0xe594f9=_0x4b8b84;this[_0xe594f9(0x33b)][_0xe594f9(0x16a)](_0x56ac5d),this['_selfUnitIDs'][_0xe594f9(0x1ea)]===0x0&&this[_0xe594f9(0x183)]&&window['clearInterval'](this[_0xe594f9(0x183)]);}[_0x4b8b84(0x331)](){const _0x1b4484=_0x4b8b84;this[_0x1b4484(0x307)](a['toDisposable'](d[_0x1b4484(0x185)](window,_0x1b4484(0x374))['subscribe'](_0x4c3be3=>{const _0x5a133c=_0x1b4484;if(_0x4c3be3[_0x5a133c(0x34b)]!==Le||!_0x4c3be3[_0x5a133c(0x3b2)])return;const _0x512357=JSON['parse'](_0x4c3be3['newValue']);this[_0x5a133c(0x3a4)](_0x512357);}))),window[_0x1b4484(0x274)](_0x1b4484(0x196),()=>this['_send']({'type':0x1,'memberID':this[_0x1b4484(0x27e)],'unitIDs':Array['from'](this[_0x1b4484(0x33b)])}));}[_0x4b8b84(0x3a4)](_0x4583b0){const _0x259dca=_0x4b8b84;switch(_0x4583b0[_0x259dca(0x3d8)]){case 0x0:this[_0x259dca(0x257)](_0x4583b0);break;case 0x1:this[_0x259dca(0x2c8)](_0x4583b0);break;case 0x2:this['_handleHeartbeatEvent'](_0x4583b0);break;}}[_0x4b8b84(0x257)](_0x4f264d){const _0x13e45c=_0x4b8b84,{unitIDs:_0x10f807,memberID:_0x2ead47,isForwarded:_0x34178d}=_0x4f264d;_0x10f807[_0x13e45c(0x287)](_0x128779=>{const _0x2a2cf9=_0x13e45c;if(!_0x34178d&&this[_0x2a2cf9(0x180)][_0x2a2cf9(0x315)](_0x128779)&&this[_0x2a2cf9(0x1ca)](_0x128779)[_0x2a2cf9(0x1c4)](u[_0x2a2cf9(0x18b)][_0x2a2cf9(0x210)]),!this['_unitOnClients']['has'](_0x128779)||!this[_0x2a2cf9(0x180)]['get'](_0x128779)[_0x2a2cf9(0x315)](_0x2ead47)){const _0x5eb753=this[_0x2a2cf9(0x180)][_0x2a2cf9(0x21c)](_0x128779)||new Set();_0x5eb753[_0x2a2cf9(0x220)](_0x2ead47),this[_0x2a2cf9(0x180)][_0x2a2cf9(0x1b1)](_0x128779,_0x5eb753),this[_0x2a2cf9(0x2a7)](_0x2ead47);}}),_0x34178d||this[_0x13e45c(0x1e8)]({'type':0x0,'memberID':this[_0x13e45c(0x27e)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4b8b84(0x2a7)](_0x50d91){const _0x18dbf3=_0x4b8b84;this[_0x18dbf3(0x39b)](_0x50d91);const _0x1667ff=window['setTimeout'](()=>{const _0x2c64a8=_0x18dbf3;this['_unitOnClients'][_0x2c64a8(0x287)](_0x4d95e4=>{const _0x577109=_0x2c64a8;_0x4d95e4[_0x577109(0x16a)](_0x50d91);});},Me*0x2);this[_0x18dbf3(0x250)][_0x18dbf3(0x1b1)](_0x50d91,_0x1667ff);}[_0x4b8b84(0x39b)](_0xbd66f1){const _0x25a7ed=_0x4b8b84;if(this[_0x25a7ed(0x250)][_0x25a7ed(0x315)](_0xbd66f1)){const _0x74e4c2=this['_clearOtherTimers'][_0x25a7ed(0x21c)](_0xbd66f1);_0x74e4c2&&window[_0x25a7ed(0x341)](_0x74e4c2),this[_0x25a7ed(0x250)][_0x25a7ed(0x1b1)](_0xbd66f1,null);}}['_handleLeaveEvent'](_0x36dddb){const _0x5b6a79=_0x4b8b84,{memberID:_0x5b49ea,unitIDs:_0x5bdda3}=_0x36dddb;_0x5bdda3[_0x5b6a79(0x287)](_0x2a473f=>{const _0x1ce5f0=_0x5b6a79;var _0x579280;const _0x429ba4=this['_unitOnClients']['get'](_0x2a473f);_0x429ba4&&(_0x429ba4[_0x1ce5f0(0x16a)](_0x5b49ea),(_0x579280=this[_0x1ce5f0(0x1ca)](_0x2a473f))==null||_0x579280[_0x1ce5f0(0x1c4)](_0x429ba4['size']===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x1ce5f0(0x18b)][_0x1ce5f0(0x210)]));}),this[_0x5b6a79(0x39b)](_0x5b49ea);}[_0x4b8b84(0x3b5)](_0x1a13ca){const _0x3e0c0f=_0x4b8b84;this[_0x3e0c0f(0x2a7)](_0x1a13ca[_0x3e0c0f(0x27c)]);}[_0x4b8b84(0x1e8)](_0x532d97){const _0x12a243=_0x4b8b84;localStorage['setItem'](Le,JSON[_0x12a243(0x2ba)](_0x532d97));}[_0x4b8b84(0x1d7)](){const _0x48c05e=_0x4b8b84;this[_0x48c05e(0x183)]=window[_0x48c05e(0x1f7)](()=>{const _0x2e8ace=_0x48c05e;this['_send']({'type':0x2,'memberID':this[_0x2e8ace(0x27e)]});},Me);}[_0x4b8b84(0x1ca)](_0x23c7c6){const _0x30948d=_0x4b8b84;return this['_unitStatus'][_0x30948d(0x315)](_0x23c7c6)||this[_0x30948d(0x3ea)][_0x30948d(0x1b1)](_0x23c7c6,new d[(_0x30948d(0x17d))](u['UnitStatus'][_0x30948d(0x2d8)])),this[_0x30948d(0x3ea)][_0x30948d(0x21c)](_0x23c7c6);}}var Be=(_0x2071f0=>(_0x2071f0[_0x2071f0['UNDEFINED']=0x0]=_0x4b8b84(0x1f6),_0x2071f0[_0x2071f0['OK']=0x1]='OK',_0x2071f0[_0x2071f0['INTERNAL_ERROR']=0x2]=_0x4b8b84(0x3eb),_0x2071f0[_0x2071f0[_0x4b8b84(0x278)]=0x3]=_0x4b8b84(0x278),_0x2071f0[_0x2071f0[_0x4b8b84(0x365)]=0x4]=_0x4b8b84(0x365),_0x2071f0[_0x2071f0[_0x4b8b84(0x2a0)]=0x5]=_0x4b8b84(0x2a0),_0x2071f0[_0x2071f0['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2071f0[_0x2071f0['INVALID_ARGUMENT']=0x7]=_0x4b8b84(0x339),_0x2071f0[_0x2071f0[_0x4b8b84(0x219)]=0x8]='TOO_MANY_REQUESTS',_0x2071f0[_0x2071f0[_0x4b8b84(0x376)]=0x9]=_0x4b8b84(0x376),_0x2071f0[_0x2071f0[_0x4b8b84(0x28a)]=0xa]=_0x4b8b84(0x28a),_0x2071f0[_0x2071f0[_0x4b8b84(0x351)]=0x1389]=_0x4b8b84(0x351),_0x2071f0[_0x2071f0['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4b8b84(0x37c),_0x2071f0[_0x2071f0[_0x4b8b84(0x21d)]=0x1772]=_0x4b8b84(0x21d),_0x2071f0[_0x2071f0[_0x4b8b84(0x37f)]=0x1773]=_0x4b8b84(0x37f),_0x2071f0[_0x2071f0[_0x4b8b84(0x34f)]=0x1b59]=_0x4b8b84(0x34f),_0x2071f0[_0x2071f0[_0x4b8b84(0x1b6)]=0x1b5a]=_0x4b8b84(0x1b6),_0x2071f0[_0x2071f0[_0x4b8b84(0x1fc)]=0x1b5b]=_0x4b8b84(0x1fc),_0x2071f0[_0x2071f0[_0x4b8b84(0x1db)]=0x1b5c]=_0x4b8b84(0x1db),_0x2071f0[_0x2071f0[_0x4b8b84(0x1bf)]=0x1b5d]=_0x4b8b84(0x1bf),_0x2071f0[_0x2071f0[_0x4b8b84(0x346)]=0x1f41]=_0x4b8b84(0x346),_0x2071f0[_0x2071f0[_0x4b8b84(0x20a)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2071f0[_0x2071f0['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4b8b84(0x1e5),_0x2071f0[_0x2071f0[_0x4b8b84(0x3d9)]=0x232b]=_0x4b8b84(0x3d9),_0x2071f0[_0x2071f0[_0x4b8b84(0x21e)]=0x232c]=_0x4b8b84(0x21e),_0x2071f0[_0x2071f0[_0x4b8b84(0x1cf)]=0x232d]=_0x4b8b84(0x1cf),_0x2071f0[_0x2071f0[_0x4b8b84(0x2e4)]=0x2711]=_0x4b8b84(0x2e4),_0x2071f0[_0x2071f0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4b8b84(0x2d9),_0x2071f0[_0x2071f0[_0x4b8b84(0x303)]=0x2713]=_0x4b8b84(0x303),_0x2071f0[_0x2071f0[_0x4b8b84(0x207)]=0x2714]=_0x4b8b84(0x207),_0x2071f0[_0x2071f0['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x4b8b84(0x395),_0x2071f0[_0x2071f0[_0x4b8b84(0x3d4)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2071f0[_0x2071f0[_0x4b8b84(0x16e)]=0x271c]=_0x4b8b84(0x16e),_0x2071f0[_0x2071f0[_0x4b8b84(0x2f2)]=0x271d]=_0x4b8b84(0x2f2),_0x2071f0[_0x2071f0[_0x4b8b84(0x362)]=0x271e]=_0x4b8b84(0x362),_0x2071f0[_0x2071f0[_0x4b8b84(0x2a6)]=0x271f]=_0x4b8b84(0x2a6),_0x2071f0[_0x2071f0[_0x4b8b84(0x197)]=0x2af9]=_0x4b8b84(0x197),_0x2071f0[_0x2071f0[_0x4b8b84(0x1fa)]=0x2ee1]=_0x4b8b84(0x1fa),_0x2071f0[_0x2071f0[_0x4b8b84(0x255)]=0x2ee2]='INVALID_INVITE_CODE',_0x2071f0[_0x2071f0[_0x4b8b84(0x24c)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x2071f0[_0x2071f0[_0x4b8b84(0x22b)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x2071f0[_0x2071f0[_0x4b8b84(0x222)]=0x2ee5]=_0x4b8b84(0x222),_0x2071f0[_0x2071f0['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x4b8b84(0x1d5),_0x2071f0[_0x2071f0[_0x4b8b84(0x349)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2071f0[_0x2071f0[_0x4b8b84(0x31f)]=0x32cb]=_0x4b8b84(0x31f),_0x2071f0[_0x2071f0[_0x4b8b84(0x1af)]=-0x1]=_0x4b8b84(0x1af),_0x2071f0))(Be||{}),ns=Object[_0x4b8b84(0x39e)],rs=(_0x1c8dbd,_0x41a0ac,_0x3d402e,_0x3bea5e)=>{const _0x5aaf0b=_0x4b8b84;for(var _0xc31912=_0x3bea5e>0x1?void 0x0:_0x3bea5e?ns(_0x41a0ac,_0x3d402e):_0x41a0ac,_0x2749ce=_0x1c8dbd[_0x5aaf0b(0x33e)]-0x1,_0x3b8530;_0x2749ce>=0x0;_0x2749ce--)(_0x3b8530=_0x1c8dbd[_0x2749ce])&&(_0xc31912=_0x3b8530(_0xc31912)||_0xc31912);return _0xc31912;},ue=(_0xf6f7e5,_0x8a0caf)=>(_0x5d2eb9,_0x57d1d7)=>_0x8a0caf(_0x5d2eb9,_0x57d1d7,_0xf6f7e5);exports[_0x4b8b84(0x1d4)]=class extends a['Disposable']{constructor(_0x4c0e76,_0x4788eb,_0x20aaf4){const _0xc65834=_0x4b8b84;super(),this['_instanceService']=_0x4c0e76,this[_0xc65834(0x2ae)]=_0x4788eb,this[_0xc65834(0x31d)]=_0x20aaf4;}async[_0x4b8b84(0x279)](_0x11e7bb,_0x4c1610,_0x3d332b,..._0x27fa34){const _0xbf39e6=_0x4b8b84;var _0x447522,_0x4ebebb,_0x253449,_0x316365;const _0x3ebfad=this[_0xbf39e6(0x2a2)][_0xbf39e6(0x26e)]();if(!_0x3ebfad)throw new Error(_0xbf39e6(0x37e));const _0x210e27=((_0x447522=this['_configService']['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x447522:u[_0xbf39e6(0x1eb)])+'/'+_0x11e7bb+'/run/'+_0x4c1610,_0x112b7e=new URL(window[_0xbf39e6(0x23f)][_0xbf39e6(0x31b)]),_0x526b25={'scriptId':_0x11e7bb,'runId':(_0x4ebebb=_0x112b7e['searchParams'][_0xbf39e6(0x21c)]('runId'))!=null?_0x4ebebb:'','function':_0x4c1610,'unitId':_0x3ebfad[_0xbf39e6(0x27b)](),'argsOfFunction':JSON['stringify'](_0x27fa34),'invokeId':(_0x253449=_0x3d332b[_0xbf39e6(0x251)])!=null?_0x253449:'','executionId':(_0x316365=_0x3d332b[_0xbf39e6(0x176)])!=null?_0x316365:''};try{const _0x283356=await this[_0xbf39e6(0x2ae)]['post'](_0x210e27,{'body':_0x526b25});return _0x283356[_0xbf39e6(0x308)][_0xbf39e6(0x313)]&&_0x283356[_0xbf39e6(0x308)]['error'][_0xbf39e6(0x1dc)]!==Be['OK']?_0xbf39e6(0x240):_0x283356[_0xbf39e6(0x308)][_0xbf39e6(0x18f)];}catch{return _0xbf39e6(0x240);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x4b8b84(0x333)]),ue(0x1,a[_0x4b8b84(0x20f)](G[_0x4b8b84(0x192)])),ue(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports[_0x4b8b84(0x3b6)]=xe,exports[_0x4b8b84(0x22c)]=be,exports[_0x4b8b84(0x398)]=Pe,exports[_0x4b8b84(0x388)]=is,exports['WebURLService']=je;
1
+ 'use strict';const _0x4a9aaf=_0x7693;(function(_0x5ef72f,_0x109d0b){const _0x17aa04=_0x7693,_0x392fba=_0x5ef72f();while(!![]){try{const _0x3cba9f=-parseInt(_0x17aa04(0x226))/0x1+parseInt(_0x17aa04(0x2df))/0x2*(parseInt(_0x17aa04(0x1b5))/0x3)+-parseInt(_0x17aa04(0x1a4))/0x4*(parseInt(_0x17aa04(0x10c))/0x5)+parseInt(_0x17aa04(0x2f3))/0x6*(-parseInt(_0x17aa04(0x18f))/0x7)+parseInt(_0x17aa04(0x2a3))/0x8+-parseInt(_0x17aa04(0x16c))/0x9*(parseInt(_0x17aa04(0x11d))/0xa)+parseInt(_0x17aa04(0x2bd))/0xb*(parseInt(_0x17aa04(0x32c))/0xc);if(_0x3cba9f===_0x109d0b)break;else _0x392fba['push'](_0x392fba['shift']());}catch(_0x5d74d2){_0x392fba['push'](_0x392fba['shift']());}}}(_0x316a,0x36667));var Ve=Object[_0x4a9aaf(0x2ae)],Xe=(_0x1b59a6,_0x1e762d,_0x4b556f)=>_0x1e762d in _0x1b59a6?Ve(_0x1b59a6,_0x1e762d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b556f}):_0x1b59a6[_0x1e762d]=_0x4b556f,h=(_0x313f27,_0x4edba7,_0x5ac927)=>Xe(_0x313f27,typeof _0x4edba7!=_0x4a9aaf(0x1ff)?_0x4edba7+'':_0x4edba7,_0x5ac927);Object[_0x4a9aaf(0x2ae)](exports,Symbol[_0x4a9aaf(0x24b)],{'value':'Module'});const u=require(_0x4a9aaf(0x366)),a=require(_0x4a9aaf(0x12c)),p=require(_0x4a9aaf(0x271)),G=require(_0x4a9aaf(0x261)),b=require(_0x4a9aaf(0x12f)),Ge=require(_0x4a9aaf(0x266)),d=require(_0x4a9aaf(0x1e8)),Y=require(_0x4a9aaf(0x1fe)),m=require(_0x4a9aaf(0xf9)),Ee=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require(_0x4a9aaf(0x213)),X=require(_0x4a9aaf(0x2d0)),w=require(_0x4a9aaf(0x119)),T=require(_0x4a9aaf(0x1db)),D=require(_0x4a9aaf(0x16e)),M=require(_0x4a9aaf(0xf6)),Ke=require('@univerjs/rpc');function _0x316a(){const _0x5e779a=['_context','_univerInstanceService','m1Prime','MemberService','collabStatus.conflict','_saveTaskMap','forEach','defineProperty','[CollaborationDataLoaderController]','set','SYNCED','UniverCollaborationClientUIPlugin','none','NO_OTHER_CLIENTS_EDITING','onPointerMove$','_unitOnClients','subunit','_document','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_handleHeartbeatEvent','textRanges','_docTransformIMECacheService','97339iWSgKi','CollaborationStatus','storage','merge','_startDocCollabCursor','activeSheet$','data','on-line-icon_clip0_910_349','drawWith','isArray','getItem','IRenderManagerService','handleInsertRangeMoveDown','setInterval','_status$','Warning','parse','collab-text-anchor-','_disabled','@univerjs/sheets-ui','string','jsxs','translate(.97)','handleIRemoveCol','url(#off-line-icon_clip0_910_343)','removeParam','save','EMAIL_HAS_BEEN_BOUND','source','min','disposeWithMe','getConfig','INTERNAL_ERROR','isTransformMutationFailure','2646fiIBlM','_dataLoaderService','RevisionService','EffectRefRangId','IConfigService','M0\x200H16V16H0z','debounceTime','apply','_imageIoService','getUnhiddenWorksheets','INVITE_CODE_REQUIRED','all','setAlpha','doc.mutation.rich-text-editing','onMouseMove','getUndoRedoMutationParamsCache','collabStatus.syncing','_configService','clipPath','COMPLETION_FINISHED','3480nFZLZy','complete','purple.300','setConfig','fillRule','rgba(255,\x20255,\x20255,\x200.01)','body','search','_updateLocalCursor','saveImage','restore','find','off-line-icon','blue.400','Inject','_entities','addObjects','getCollabEntity$','post','fill','currentSkeleton$','UNDEFINED','DeleteRangeMoveUpCommandId','indexOf','current','next','newValue','send','getOffsetConfig','createElement','SOCKET_FAILED','_docTransformSelectionsService','AWAITING_WITH_PENDING','enableLocalCache','TEXT','svg','_ensureSubject','imageSourceType','href','DependentOn','call','_getAnchorBounding','wsSessionTicketUrl','TOO_MANY_REQUESTS','_colorAssignService','DocStateChangeManagerService','NodePositionConvertToCursor','name','generateRandomId','_cursorInfo$','selection','_cursor','OTHER_CLIENTS_EDITING','icon','url(#on-line-icon_clip0_910_349)','_updateCollabCursors','application/json','1044ZIkyDT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','replace','sessionTicket','unit','sessionStatus$','override','path','column','debug','_scheduleSaving','prototype','_draw','transformSelections','useRef','error','onPointerLeave$','_removeClearOtherTimer','NOT_COLLAB','concat','isTransformMutationsWithChangesetSuccess','IUIPartsService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','includes','filter','code','getSkeleton','_onCursorDelete','div','INVALID_INVITE_CODE','engine','history','_httpService','INotificationService','ITransformService','collaboration-client-ui.config','beginPath','_docClipboardService','size','displayName','switchMap','split','SOCKET_FAILED_RETRY','_render','MOBILE_HAS_BEEN_BOUND','eventID','flatMap','IImageIoService','_docSkeletonManagerService','collab-client.tooltip.reconnect','_saveCache','fromEvent','m2Prime','sheetID','dispose','getLocalCacheKey','_transformHistoryAndStateStack','_initResize','@univerjs-pro/collaboration-client','HEADER_MENU','clearTimeout','_scene','session.collaboration-timeout','ThemeService','addObject','_initDependencies','getOwnPropertyDescriptor','_localCacheService','USERS_LEAVE','subscribeEvent','_injector','getActiveRange','BrowserCollaborationSocketService','docStateChange$','takeUntil','YUUMI_RATE_OVER_LIMIT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_toggleOnline','getSheetId','setShapeProps','WebBrowserSingleActiveUnitService','LOCAL_CACHE_INTERVAL','from','handleInsertCol','push','measureText','DocIMEInputManagerService','RemoteUniscriptService','_labelPosition','toString','focused$','ICommandService','_initEntityListener','UniverInstanceType','then','_color','_setupSubUnitSync','pushState','react','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_onRefRangeChange','@univerjs-pro/collaboration','Shape','session.will-retry','onTransformChange$','unitID','useCallback','UNIVER_DOC','CollaborationController','CommandType','LocaleService','type','fillText','registerRenderModule','transformMutationsWithChangeset','APPLY_PERMISSION_DENIED','bottom','createSocket','toDisposable','pipe','608945xsWYgo','_assignedColors','YUUMI_ASYNCIO_CANCELLED','getSheetBySheetId','setUndoRedoMutationParamsCache','_collabCursorController','_memberService','loadUnit','init','APPLY_REVISION_CONFILICT','unshift','stringify','map','react/jsx-runtime','_hideTimer','RefRangeService','replaceDocRanges','70010WqOxXe','toRgbString','permission.content','_onCursorUpdate','debounce','PY_RUNTIME_SCRIPT_ERROR','_init','getMemberID','addClipboardHook','getRenderById','WebURLService','transformMutation','InsertColCommandId','_sheetSkeletonManagerService','RECT','@univerjs/core','_transformPreviousActiveRange','univerjs-icon\x20univerjs-icon-','@univerjs/docs-ui','updateOfflineData','white','PERMISSION_DENIED','_session','_messageService','transformRemoteChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','startColumn','YUUMI_ALL_TABLES_IS_INVALID','getCellPositionByOffset','_doCreateSocket','status$','YUUMI_UNABLE_LOAD_URL','UniverCollaborationClientPlugin','attrs','collaboration-client.offline-data-not-saved','_registerRenderDependencies','DisposableCollection','INVALID_ARGUMENT','createIdentifier','MessageType','registerDependencies','contains','_handleHover','max','Disposable','onCommandExecuted','CollaborationUIEventId','_handleEvent','LOCAL_CACHE_INTERVAL_KEY','_entityInit$','_docSkeleton','CollaborationUIEventService','endRow','useDependency','_drawRectRange','reconnect','throttleTime','_anchorDot','selections','_range','_docSyncEditingCollabCursorService','1em','syncEditingCollabCursor','deepClone','DocSelectionManagerService','_logService','touchDependencies','_config','unsubscribe','resize','CollaborationSocketService','_commandService','entries','startsWith','ranges','_startSheetCollabCursor','_colorIndex','createInstance','SNAPSHOT_INVALID_SNAPSHOT','162aFdjIx','tag','@univerjs/design','fromEventSubject','Vector2','setItem','BehaviorSubject','DeleteRangeMoveLeftCommandId','InsertRowCommandId','Subject','triggerDblclick','lineTo','_textBubble','_lastPointer','_updateSubUnitFromURLParams','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo','labelPosition','_drawAnchor','getDocRanges','getMember','unitId','getUnitId','onLocalMutation','transformByState','_transformUndoRedoStack','ISocketService','_initCommandExecutedListener','_heartbeatTimer','range','getColor','DesktopCollaborationStatusDisplayController','_removeCollabCursors','SheetSkeletonManagerService','getStateCache','1939NVgWnG','registerRefRange','CollaborationDataLoaderController','setActiveRange','SessionStatus','mapTo','FETCH_MISS','_anchor','transformIMECache','className','collabStatus.offline','LOGIN_FAILED','url(#$1','collab-text-range-','_cachedData','location','getActiveSheet','random','collabCursorState$','forwardRef','mutations','4fvlfKv','getCoordByCell','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','_roomMembers$','text','_collaborationUIEventService','with','getAncestorScale','Failed','OffLineIcon','startRow','saveTaskMap','CONFLICT','shareReplay','YUUMI_URL_COL_OUT_OF_RANGE','isActive','135UYwFQV','round','INVITE_CODE_HAS_BEEN_UES','CollaborationEvent','_selfUnitIDs','replaceState','row','length','getCurrentRevOfUnit','getRangePointData','ticket','_handleJoinEvent','SheetCollabCursorShape','_online','_localStorageService','color','APPLY_DUPLICATED','SNAPSHOT_HAS_BEEN_REMOVED','getTypeOfUnitDisposed$','roomMembers','hide','result','YUUMI_AI_RUN_FAILED','http://www.w3.org/2000/svg','WebSocketService','add','Injector','NodePositionConvertToRectRange','has','values','getValue','mask','UnitStatus','_hovered','setStateCache','runRefRangeMutations','_getSheetObject','CHANGESET_REVISION_CONFILICT','@univerjs/ui','CollaborationSessionService','RxDisposable','cursorInfo$','fillStyle','onPointerEnter$','getSheetObject','transformStateCache','propertyIsEnumerable','_updateURLWithCurrentState','HTTPService','getColorFromTheme','getRelativeToViewportCoord','rxjs','findNodePositionByCharIndex','get','_handleLeaveEvent','currentColor','handleInsertRow','IURLService','handleInsertRangeMoveRight','delete','APPLY_REJECT','ALREADY_EXISTS','getTypeOfUnitAdded$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ColorKit','clearInterval','xlink:href','_getSaveTimeout','endColumn','_eventUnsubscribe','distinctUntilChanged','COLORS','Rect','@univerjs/docs','symbol','getOwnPropertySymbols','jiqing.500','SetDocZoomRatioOperation','_createSocketURL','_scheduleClearOtherTimer','_revisionService','colorChannel1','_drawTextRange','defs','params','_getMergeRange','sheetId','pluginName','Tools','_name','_id','getFocusedUnit','IRemoteInstanceService','ENSURE_SNAPSHOT_EXECUTION','rxjs/operators','NOT_FOUND','_registerDependencies','IUniverInstanceService','_syncEditingCollabCursorService','disposeUnit','off-line-icon_clip0_910_343','CollaborationStatusDisplay','ILocalCacheService','_initStatusListener','clsx','_setupBeforeClosingHandler','runId','popstate','_send','width','whenReady','event$','SetSelectionsOperation','259576LnDtcn','height','SetWorksheetActivateCommand','JOIN_ROOM_FAILED','YUUMI_NO_CUBOID_FOR_QUESTION','jsx','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scheduleHeartbeat','_refreshCollabCursors','show','_refRangeService','onStarting','green.600','ACTIVE_UNIT_EVENT_CHANNEL','permission.title','_cursors','redoState','extend','FromArray','font','DOC_RANGE_TYPE','idSuffix','Tooltip','DocSkeletonManagerService','closePath','assignAColorForMemberID','_unitStatus','_uiPartsService','_notificationService','combineLatest','IDocClipboardService','hasOwnProperty','black','disableLocalCache','MoveRangeCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_renderManagerService','toStringTag','registerComponent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','searchParams','Error','_hover','subscribe','UNRECOGNIZED','hovered','...','INVITE_CODE_ALREADY_BOUND','connectInjector','actions','deserializeRangeWithSheet','getVpScrollXYInfoByPosToVp','onRendered','_collabSessionService','red.300','_backgroundColor','RegularPolygon','_urlService','subUnitId','@univerjs/network','makeDirty','IBeforeCloseService','undoState','Optional','@univerjs/drawing','currentTheme$','evenodd','collabStatus.notCollab','useObservable','_clearOtherTimers','arc','#FFF','requireSession','_getSessionTicket','handleDeleteRangeMoveLeft','@univerjs/engine-render','CONNECTOR_DATA_TOO_LARGE','SheetsSelectionsService','APPLY_NON_SEQUENTIAL_REVISION','TEXT_RANGE_LAYER_INDEX','_initStatusComponent','executeCommand','UNIVER_SHEET','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','YUUMI_SUBSCRIPTION_NOT_FOUND','_getScale','uni.network.url-service','USER_NOT_INVITED_CODE','dispose$','collaboration.closeRoom','asObservable','_localeService','LICENSE_EXPORT_SIZE_EXCEEDED','_cursorShapes','_docTransformStateCacheService','moveTo','exhaustSavingTask','_themeService','_toggleOffline','registerBeforeClose','children','OFFLINE','getCollabCursors$','invokeId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','defIds','addEventListener','_collabCursorState$','/run/','assign','setParam','ILocalStorageService','ILogService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UPDATE_CURSOR','function','_shapes','editingUnit','_initEvent','roomMembers$','origin','_transformService','OnLineIcon','_collaborationController','on-line-icon','491744oDbmol','IMessageService','urlChange$','getParam'];_0x316a=function(){return _0x5e779a;};return _0x316a();}var qe=Object[_0x4a9aaf(0x36e)],ze=(_0x31a4cb,_0x58db5f,_0x373883,_0x44d08d)=>{const _0x471c5a=_0x4a9aaf;for(var _0x4879be=_0x44d08d>0x1?void 0x0:_0x44d08d?qe(_0x58db5f,_0x373883):_0x58db5f,_0x2776e1=_0x31a4cb[_0x471c5a(0x1bc)]-0x1,_0x69268e;_0x2776e1>=0x0;_0x2776e1--)(_0x69268e=_0x31a4cb[_0x2776e1])&&(_0x4879be=_0x69268e(_0x4879be)||_0x4879be);return _0x4879be;},Te=(_0xb795b1,_0x535ed8)=>(_0x249649,_0x2f312e)=>_0x535ed8(_0x249649,_0x2f312e,_0xb795b1);let de=class extends a['RxDisposable']{constructor(_0x54d1ab,_0x94f556){const _0x18b014=_0x4a9aaf;super(),this['_docClipboardService']=_0x54d1ab,this[_0x18b014(0x2e7)]=_0x94f556,this['_init']();}[_0x4a9aaf(0x123)](){const _0x5cc27b=_0x4a9aaf,_0x16d852=this;this[_0x5cc27b(0x2db)](this[_0x5cc27b(0x351)][_0x5cc27b(0x125)]({'onBeforePasteImage':async _0x4e310c=>{const _0x58124e=_0x5cc27b,_0x3dd3f6=await _0x16d852[_0x58124e(0x2e7)][_0x58124e(0x2fc)](_0x4e310c);return _0x3dd3f6?{'source':_0x3dd3f6[_0x58124e(0x2d9)],'imageSourceType':_0x3dd3f6[_0x58124e(0x318)]}:null;}}));}};de=ze([Te(0x0,b[_0x4a9aaf(0x244)]),Te(0x1,Ge[_0x4a9aaf(0x35b)])],de);const Oe=[_0x4a9aaf(0x2f5),_0x4a9aaf(0x201),_0x4a9aaf(0x232),_0x4a9aaf(0x25c),_0x4a9aaf(0x300),'yellow.400'];class me extends a[_0x4a9aaf(0x149)]{constructor(){const _0x42581c=_0x4a9aaf;super(...arguments),h(this,_0x42581c(0x10d),new Map()),h(this,_0x42581c(0x169),0x0);}[_0x4a9aaf(0x23f)](_0x31ac61){const _0x4649d6=_0x4a9aaf;if(this[_0x4649d6(0x10d)]['has'](_0x31ac61))return this[_0x4649d6(0x10d)][_0x4649d6(0x1ea)](_0x31ac61);const _0x5a82f1=Oe[this[_0x4649d6(0x169)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Oe['length'],this[_0x4649d6(0x10d)][_0x4649d6(0x2b0)](_0x31ac61,_0x5a82f1),_0x5a82f1;}}function we(_0x310490){const _0xf62801=_0x4a9aaf;let _0x1b9543='';for(const _0x4eed1e of _0x310490){const {startOffset:_0x61a8f7,endOffset:_0x2fbcd5,isActive:_0x26372a,rangeType:_0x28071c,segmentId:_0x2fb4e1,segmentPage:_0x118b3b}=_0x4eed1e;_0x1b9543[_0xf62801(0x1bc)]&&(_0x1b9543+=','),_0x1b9543+=_0x61a8f7+':'+_0x2fbcd5+':'+(_0x26372a?'1':'0')+':'+_0x28071c+':'+_0x2fb4e1+':'+_0x118b3b;}return _0x1b9543;}function Je(_0x46cf54){const _0x394b4c=_0x4a9aaf,_0xcec2db=_0x46cf54[_0x394b4c(0x355)](','),_0x1ad50a=[];for(const _0x9fa528 of _0xcec2db){const [_0x15d2b9,_0x4abb8a,_0x1fc550,_0x51ae7d,_0x5bb74c,_0x31795d]=_0x9fa528['split'](':');_0x1ad50a[_0x394b4c(0x380)]({'startOffset':Number(_0x15d2b9),'endOffset':Number(_0x4abb8a),'collapsed':_0x15d2b9===_0x4abb8a,'isActive':_0x1fc550==='1','rangeType':_0x51ae7d===a[_0x394b4c(0x23a)][_0x394b4c(0x315)]?a['DOC_RANGE_TYPE'][_0x394b4c(0x315)]:a['DOC_RANGE_TYPE'][_0x394b4c(0x12b)],'segmentId':typeof _0x5bb74c==_0x394b4c(0x2d1)?String(_0x5bb74c):'','segmentPage':Number(_0x31795d!=null?_0x31795d:-0x1)});}return _0x1ad50a['some'](_0x2f6361=>_0x2f6361[_0x394b4c(0x1b4)])||(_0x1ad50a[0x0][_0x394b4c(0x1b4)]=!0x0),_0x1ad50a;}class Ce extends a[_0x4a9aaf(0x1dd)]{constructor(){const _0xff7085=_0x4a9aaf;super(...arguments),h(this,_0xff7085(0x291),new d['BehaviorSubject'](null)),h(this,_0xff7085(0x1a1),this[_0xff7085(0x291)]['asObservable']());}['syncEditingCollabCursor'](_0x56d69b){const _0x1707cb=_0x4a9aaf,{unitID:_0x331f39,memberID:_0x76e25,textRanges:_0x22c211}=_0x56d69b,_0x34aa5e=we(_0x22c211);if(_0x34aa5e==='')return;const _0x48313c={'unitID':_0x331f39,'memberID':_0x76e25,'selection':_0x34aa5e};this['_collabCursorState$'][_0x1707cb(0x30c)](_0x48313c);}}var Ze=Object[_0x4a9aaf(0x36e)],Qe=(_0x348181,_0x134165,_0x56983f,_0x391b85)=>{const _0x1c9bcc=_0x4a9aaf;for(var _0x36362d=_0x391b85>0x1?void 0x0:_0x391b85?Ze(_0x134165,_0x56983f):_0x134165,_0x186906=_0x348181[_0x1c9bcc(0x1bc)]-0x1,_0x5885db;_0x186906>=0x0;_0x186906--)(_0x5885db=_0x348181[_0x186906])&&(_0x36362d=_0x5885db(_0x36362d)||_0x36362d);return _0x36362d;},L=(_0x1b2137,_0xcbde42)=>(_0x548abd,_0x3e2e07)=>_0xcbde42(_0x548abd,_0x3e2e07,_0x1b2137);const et=0x12c,tt=0x64;let fe=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x36e434,_0x4b67ab,_0x2fab81,_0x554f55,_0x41143a,_0x1cd9ee,_0x453fc3,_0x525758,_0x5d12c3){const _0x612e12=_0x4a9aaf;super(),h(this,_0x612e12(0x1c2),!0x1),h(this,_0x612e12(0x123),!0x1),h(this,_0x612e12(0x324),new d[(_0x612e12(0x172))](new Map())),h(this,'cursorInfo$',this[_0x612e12(0x324)]['asObservable']()),h(this,_0x612e12(0x1a8),new d[(_0x612e12(0x172))]([])),h(this,_0x612e12(0x29d),this[_0x612e12(0x1a8)][_0x612e12(0x10b)](d[_0x612e12(0x2e5)](et))),h(this,_0x612e12(0x2fb),a[_0x612e12(0x121)](_0x1595fa=>{const _0x7f9525=_0x612e12,_0x4da212={'eventID':m[_0x7f9525(0x1b8)][_0x7f9525(0x298)],'data':{'unitID':this[_0x7f9525(0xfd)],'memberID':this[_0x7f9525(0x133)][_0x7f9525(0x124)](),'selection':we(_0x1595fa)}};this[_0x7f9525(0x133)][_0x7f9525(0x30e)](_0x4da212,this['unitID']);},tt)),(this[_0x612e12(0xfd)]=_0x36e434,this[_0x612e12(0x133)]=_0x4b67ab,this['_injector']=_0x2fab81,this[_0x612e12(0x31f)]=_0x554f55,this[_0x612e12(0x112)]=_0x41143a,this['_syncEditingCollabCursorService']=_0x1cd9ee,this[_0x612e12(0x29f)]=_0x453fc3,this[_0x612e12(0x2a8)]=_0x525758,this[_0x612e12(0x164)]=_0x5d12c3);}get[_0x4a9aaf(0x17c)](){const _0x52909f=_0x4a9aaf;return this['_cursorInfo$'][_0x52909f(0x1d3)]();}get[_0x4a9aaf(0x1c8)](){const _0x1a46c8=_0x4a9aaf;return this[_0x1a46c8(0x1a8)]['getValue']();}[_0x4a9aaf(0x362)](){const _0x1442b6=_0x4a9aaf;super['dispose'](),this[_0x1442b6(0x324)]['next'](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x1442b6(0x30c)]([]),this[_0x1442b6(0x1a8)][_0x1442b6(0x2f4)]();}[_0x4a9aaf(0x114)](){const _0x1f5b56=_0x4a9aaf;this[_0x1f5b56(0x123)]||(this[_0x1f5b56(0x123)]=!0x0,this[_0x1f5b56(0x133)][_0x1f5b56(0x331)]['pipe'](d['takeUntil'](this['dispose$']))[_0x1f5b56(0x251)](_0x42fdd5=>{const _0x4e16f0=_0x1f5b56;_0x42fdd5===u['SessionStatus']['ONLINE']?this[_0x4e16f0(0x379)]():this['_toggleOffline']();}),this[_0x1f5b56(0x133)][_0x1f5b56(0x224)][_0x1f5b56(0x10b)](d[_0x1f5b56(0x376)](this[_0x1f5b56(0x27e)]))[_0x1f5b56(0x251)](_0x378c05=>{const _0x2dd0cf=_0x1f5b56,_0x431def=_0x378c05['eventID'];_0x431def===m['CollaborationEvent'][_0x2dd0cf(0x298)]&&this[_0x2dd0cf(0x120)](_0x378c05),_0x431def===m[_0x2dd0cf(0x1b8)][_0x2dd0cf(0x370)]&&this[_0x2dd0cf(0x347)](_0x378c05);}),this[_0x1f5b56(0x2db)](this[_0x1f5b56(0x164)][_0x1f5b56(0x14a)](_0x4c166b=>{const _0x286a2e=_0x1f5b56,_0x58a655=_0x4c166b[_0x286a2e(0x209)];_0x58a655!=null&&this[_0x286a2e(0x1c2)]&&_0x4c166b['id']===Y['SetTextSelectionsOperation']['id']&&_0x58a655[_0x286a2e(0x181)]===this[_0x286a2e(0xfd)]&&_0x58a655['isEditing']===!0x1&&_0x58a655[_0x286a2e(0x167)][_0x286a2e(0x1bc)]>0x0&&this[_0x286a2e(0x2fb)](_0x58a655['ranges']);})),this[_0x1f5b56(0x217)]['collabCursorState$'][_0x1f5b56(0x10b)](d[_0x1f5b56(0x376)](this[_0x1f5b56(0x27e)]))[_0x1f5b56(0x251)](_0x57b552=>{const _0x2d5cc0=_0x1f5b56;if((_0x57b552==null?void 0x0:_0x57b552['unitID'])!==this[_0x2d5cc0(0xfd)])return;const _0x38307d={'eventID':m['CollaborationEvent'][_0x2d5cc0(0x298)],'data':_0x57b552};this[_0x2d5cc0(0x120)](_0x38307d);}),this[_0x1f5b56(0x2db)](this['_commandService']['onCommandExecuted'](_0x5bb5bf=>{const _0x3a4983=_0x1f5b56;if(_0x5bb5bf['params']==null)return;const _0x56aefc=_0x5bb5bf[_0x3a4983(0x209)];if(_0x5bb5bf['id']!==Y['RichTextEditingMutation']['id']||_0x56aefc[_0x3a4983(0x181)]!==this[_0x3a4983(0xfd)])return;const _0x23b421={'id':_0x3a4983(0x2ec),'params':_0x56aefc},_0x4283c8=this[_0x3a4983(0x17c)];for(const [_0x5a2f37,_0x14113f]of _0x4283c8){const _0x445b73={'id':_0x3a4983(0x2ec),'params':{'unitId':this[_0x3a4983(0xfd)],'actions':null,'textRanges':_0x14113f[_0x3a4983(0x167)]}},_0x5ecef9=this[_0x3a4983(0x29f)]['transformMutation'](_0x23b421,_0x445b73,!0x1);if(m[_0x3a4983(0x2de)](_0x5ecef9))throw _0x5ecef9['error'];_0x4283c8[_0x3a4983(0x2b0)](_0x5a2f37,{..._0x14113f,'ranges':_0x5ecef9[_0x3a4983(0x360)][_0x3a4983(0x209)][_0x3a4983(0x2bb)]});}queueMicrotask(()=>{const _0xcfa468=_0x3a4983;this[_0xcfa468(0x324)][_0xcfa468(0x30c)](_0x4283c8);});})));}[_0x4a9aaf(0x120)](_0x490310){const _0x14433a=_0x4a9aaf;var _0x36289b,_0x34897f;const {memberID:_0xe84cbd,selection:_0x49f0d4}=_0x490310[_0x14433a(0x2c3)],_0x202bfd=Je(_0x49f0d4),_0x30cbba=(_0x34897f=(_0x36289b=this[_0x14433a(0x112)][_0x14433a(0x180)](this['unitID'],_0xe84cbd))==null?void 0x0:_0x36289b[_0x14433a(0x322)])!=null?_0x34897f:'Unknown\x20user',_0x101ee6={'color':this[_0x14433a(0x31f)]['assignAColorForMemberID'](_0xe84cbd),'name':_0x30cbba,'ranges':_0x202bfd},_0x1e0a6b=this[_0x14433a(0x17c)];_0x1e0a6b[_0x14433a(0x2b0)](_0xe84cbd,_0x101ee6),this[_0x14433a(0x324)][_0x14433a(0x30c)](_0x1e0a6b);}[_0x4a9aaf(0x347)](_0x161239){const _0x2df661=_0x4a9aaf,{memberID:_0x2040e5}=_0x161239['data'],_0x4f7a8b=this[_0x2df661(0x17c)];_0x4f7a8b[_0x2df661(0x1f0)](_0x2040e5),this[_0x2df661(0x324)][_0x2df661(0x30c)](_0x4f7a8b);}[_0x4a9aaf(0x379)](){const _0x34e4a7=_0x4a9aaf;var _0x3a2e8d;if(this[_0x34e4a7(0x1c2)]=!0x0,((_0x3a2e8d=this[_0x34e4a7(0x2a8)][_0x34e4a7(0x210)]())==null?void 0x0:_0x3a2e8d['getUnitId']())!==this[_0x34e4a7(0xfd)])return;const _0x18fcc4=this[_0x34e4a7(0x372)][_0x34e4a7(0x1ea)](Y['DocSelectionManagerService'])[_0x34e4a7(0x17f)]();Array['isArray'](_0x18fcc4)&&_0x18fcc4[_0x34e4a7(0x1bc)]>0x0&&this[_0x34e4a7(0x2fb)](_0x18fcc4);}[_0x4a9aaf(0x288)](){const _0x309b2a=_0x4a9aaf;this[_0x309b2a(0x1c2)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x4a9aaf(0x1cf)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0x4a9aaf(0x301)](Ce)),L(0x6,m[_0x4a9aaf(0x34e)]),L(0x7,a[_0x4a9aaf(0x216)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x4a9aaf(0x36e)],it=(_0x5c5696,_0x54cedd,_0x58ed90,_0x5e2c93)=>{const _0x4f0c12=_0x4a9aaf;for(var _0x3e4d70=_0x5e2c93>0x1?void 0x0:_0x5e2c93?st(_0x54cedd,_0x58ed90):_0x54cedd,_0x4e08a7=_0x5c5696[_0x4f0c12(0x1bc)]-0x1,_0x4249ef;_0x4e08a7>=0x0;_0x4e08a7--)(_0x4249ef=_0x5c5696[_0x4e08a7])&&(_0x3e4d70=_0x4249ef(_0x3e4d70)||_0x3e4d70);return _0x3e4d70;},A=(_0x44aaf7,_0x1241e2)=>(_0x1aa7b8,_0x116162)=>_0x1241e2(_0x1aa7b8,_0x116162,_0x44aaf7);const nt=0x12c,rt=0x64,ot=()=>{let _0x1bd553=[],_0x5d61de=!0x1;return _0x1d6e2f=>{_0x1bd553['push'](_0x1d6e2f),_0x5d61de||(_0x5d61de=!0x0,setTimeout(()=>{const _0x29dce9=_0x7693;_0x1bd553[_0x29dce9(0x2ad)](_0x4e3a89=>_0x4e3a89()),_0x1bd553=[],_0x5d61de=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x48fc4a,_0x52ce4a,_0x51d8c4,_0x8d5a01,_0x3a59aa,_0x432406,_0x36742c,_0x461b19){const _0x5a477b=_0x4a9aaf;super(),h(this,_0x5a477b(0x1c2),!0x1),h(this,'_init',!0x1),h(this,_0x5a477b(0x324),new d['BehaviorSubject'](new Map())),h(this,_0x5a477b(0x1de),this[_0x5a477b(0x324)][_0x5a477b(0x280)]()),h(this,_0x5a477b(0x1a8),new d[(_0x5a477b(0x172))]([])),h(this,_0x5a477b(0x29d),this[_0x5a477b(0x1a8)][_0x5a477b(0x10b)](d[_0x5a477b(0x2e5)](nt))),h(this,_0x5a477b(0x2fb),a[_0x5a477b(0x121)]((_0x285d95,_0x4ae57c)=>{const _0xb855d2=_0x5a477b,_0x5dd4e3={'eventID':m[_0xb855d2(0x1b8)][_0xb855d2(0x298)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x285d95,_0x4ae57c[_0xb855d2(0x189)])}};this[_0xb855d2(0x133)]['send'](_0x5dd4e3,this[_0xb855d2(0xfd)]);},rt)),(this[_0x5a477b(0xfd)]=_0x48fc4a,this[_0x5a477b(0x133)]=_0x52ce4a,this['_injector']=_0x51d8c4,this[_0x5a477b(0x31f)]=_0x8d5a01,this[_0x5a477b(0x112)]=_0x3a59aa,this['_univerInstanceService']=_0x432406,this[_0x5a477b(0x164)]=_0x36742c,this[_0x5a477b(0x230)]=_0x461b19);}get[_0x4a9aaf(0x17c)](){const _0x210719=_0x4a9aaf;return this[_0x210719(0x324)]['getValue']();}get['roomMembers'](){const _0x485f8b=_0x4a9aaf;return this[_0x485f8b(0x1a8)]['getValue']();}[_0x4a9aaf(0x362)](){const _0x206979=_0x4a9aaf;super[_0x206979(0x362)](),this['_cursorInfo$'][_0x206979(0x30c)](new Map()),this[_0x206979(0x324)][_0x206979(0x2f4)](),this[_0x206979(0x1a8)][_0x206979(0x30c)]([]),this['_roomMembers$'][_0x206979(0x2f4)]();}['init'](){const _0x5b0123=_0x4a9aaf;this[_0x5b0123(0x123)]||(this[_0x5b0123(0x123)]=!0x0,this[_0x5b0123(0x133)][_0x5b0123(0x331)][_0x5b0123(0x10b)](d[_0x5b0123(0x376)](this['dispose$']))[_0x5b0123(0x251)](_0x54a577=>{const _0x33f137=_0x5b0123;_0x54a577===u[_0x33f137(0x193)]['ONLINE']?this[_0x33f137(0x379)]():this['_toggleOffline']();}),this[_0x5b0123(0x133)][_0x5b0123(0x224)][_0x5b0123(0x10b)](d[_0x5b0123(0x376)](this[_0x5b0123(0x27e)]))['subscribe'](_0x3da70c=>{const _0x28b9da=_0x5b0123,_0x1de484=_0x3da70c[_0x28b9da(0x359)];_0x1de484===m[_0x28b9da(0x1b8)][_0x28b9da(0x298)]&&this[_0x28b9da(0x120)](_0x3da70c),_0x1de484===m[_0x28b9da(0x1b8)]['USERS_LEAVE']&&this[_0x28b9da(0x347)](_0x3da70c);}),this[_0x5b0123(0xf8)](),this['disposeWithMe'](this[_0x5b0123(0x164)][_0x5b0123(0x14a)](_0x33ed50=>{const _0x4f4937=_0x5b0123;if(this[_0x4f4937(0x1c2)]&&_0x33ed50['id']===g[_0x4f4937(0x225)]['id']&&_0x33ed50['params']['unitId']===this[_0x4f4937(0xfd)]){const _0xb2a077=_0x33ed50[_0x4f4937(0x209)];this[_0x4f4937(0x2fb)](_0xb2a077[_0x4f4937(0x260)],_0xb2a077[_0x4f4937(0x157)][0x0]);}})));}[_0x4a9aaf(0x120)](_0x5250f6){const _0xc84123=_0x4a9aaf;var _0xb42275,_0x447dc6;const {memberID:_0x4846d4,selection:_0x4405b7}=_0x5250f6[_0xc84123(0x2c3)],{sheetName:_0x221afe,range:_0x348a0a}=Ee[_0xc84123(0x258)](_0x4405b7),_0x41f406={'name':(_0x447dc6=(_0xb42275=this[_0xc84123(0x112)]['getMember'](this[_0xc84123(0xfd)],_0x4846d4))==null?void 0x0:_0xb42275[_0xc84123(0x322)])!=null?_0x447dc6:'Unknown\x20user','range':this[_0xc84123(0x20a)](_0x221afe,_0x348a0a),'sheetID':_0x221afe,'color':this[_0xc84123(0x31f)][_0xc84123(0x23f)](_0x4846d4),'selection':_0x4405b7},_0x4e6d80=this['cursorInfo'];_0x4e6d80[_0xc84123(0x2b0)](_0x4846d4,_0x41f406),this[_0xc84123(0x324)]['next'](_0x4e6d80);}[_0x4a9aaf(0x347)](_0x25b492){const _0x3546a6=_0x4a9aaf,{memberID:_0x53795f}=_0x25b492[_0x3546a6(0x2c3)],_0x49467b=this[_0x3546a6(0x17c)];_0x49467b['delete'](_0x53795f),this['_cursorInfo$'][_0x3546a6(0x30c)](_0x49467b);}[_0x4a9aaf(0x20a)](_0x220983,_0x5b8bdc){const _0x2ef1a4=_0x4a9aaf;var _0x35b2bd,_0x15f727;const _0x5d269c=(_0x15f727=(_0x35b2bd=this[_0x2ef1a4(0x2a8)]['getUniverSheetInstance'](this[_0x2ef1a4(0xfd)]))==null?void 0x0:_0x35b2bd['getSheetBySheetId'](_0x220983))==null?void 0x0:_0x15f727['getMergeData']();return(_0x5d269c==null?void 0x0:_0x5d269c[_0x2ef1a4(0x2fe)](_0x1f31ac=>a['Rectangle'][_0x2ef1a4(0x146)](_0x1f31ac,_0x5b8bdc)))||_0x5b8bdc;}[_0x4a9aaf(0xf8)](){const _0xffc8f3=_0x4a9aaf,_0x141db8=new a[(_0xffc8f3(0x141))](),_0x5d41f6=ot(),_0x39e9eb=()=>{const _0x2e5831=_0xffc8f3;_0x141db8[_0x2e5831(0x362)]();const _0x11ccb3=(_0x4b3960,_0x66f76d,_0x293fee,_0x1b3160)=>{const _0x43d9e3=_0x2e5831;let _0x13737c=[];switch(_0x4b3960['id']){case g['EffectRefRangId'][_0x43d9e3(0x173)]:{_0x13737c=g[_0x43d9e3(0x270)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)][_0x43d9e3(0x309)]:{_0x13737c=g['handleDeleteRangeMoveUp'](_0x4b3960,_0x1b3160);break;}case g['EffectRefRangId'][_0x43d9e3(0x129)]:{_0x13737c=g[_0x43d9e3(0x37f)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['InsertRangeMoveDownCommandId']:{_0x13737c=g[_0x43d9e3(0x2c9)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['InsertRangeMoveRightCommandId']:{_0x13737c=g[_0x43d9e3(0x1ef)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)][_0x43d9e3(0x174)]:{_0x13737c=g[_0x43d9e3(0x1ed)](_0x4b3960,_0x1b3160);break;}case g['EffectRefRangId'][_0x43d9e3(0x248)]:{_0x13737c=g['handleMoveRange'](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['RemoveColCommandId']:{_0x13737c=g[_0x43d9e3(0x2d4)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['RemoveRowCommandId']:{_0x13737c=g['handleIRemoveRow'](_0x4b3960,_0x1b3160);break;}}const _0x492214=g[_0x43d9e3(0x1d8)](_0x13737c,_0x1b3160),_0x141e54=this[_0x43d9e3(0x17c)]['get'](_0x66f76d);if(_0x141e54&&_0x492214){const _0x4a3e22={..._0x141e54,'range':_0x492214};this[_0x43d9e3(0x17c)][_0x43d9e3(0x2b0)](_0x66f76d,_0x4a3e22),_0x5d41f6(()=>{const _0x12776f=_0x43d9e3,_0x122461=this[_0x12776f(0x230)][_0x12776f(0x190)](_0x492214,_0x23e7a7=>(_0x122461[_0x12776f(0x362)](),_0x11ccb3(_0x23e7a7,_0x66f76d,_0x293fee,_0x492214)));_0x141db8[_0x12776f(0x1ce)](_0x122461);});}return{'redos':[],'undos':[]};};this[_0x2e5831(0x17c)][_0x2e5831(0x2ad)]((_0x2f0734,_0x51b262)=>{const _0xb3ccf1=_0x2e5831,{range:_0x4a42cf,sheetID:_0x2c0b3f}=_0x2f0734,_0x223ecc=this[_0xb3ccf1(0x230)][_0xb3ccf1(0x190)](_0x4a42cf,_0x23d45a=>(_0x223ecc[_0xb3ccf1(0x362)](),_0x11ccb3(_0x23d45a,_0x51b262,_0x2c0b3f,_0x4a42cf)));_0x141db8[_0xb3ccf1(0x1ce)](_0x223ecc);});};this[_0xffc8f3(0x2db)](a['toDisposable'](this[_0xffc8f3(0x324)][_0xffc8f3(0x251)](()=>{_0x39e9eb();})));}[_0x4a9aaf(0x379)](){const _0x4e5c64=_0x4a9aaf;var _0x29b237,_0x15d800;if(this[_0x4e5c64(0x1c2)]=!0x0,((_0x29b237=this[_0x4e5c64(0x2a8)][_0x4e5c64(0x210)]())==null?void 0x0:_0x29b237[_0x4e5c64(0x182)]())!==this[_0x4e5c64(0xfd)])return;const _0xef88d3=(_0x15d800=this[_0x4e5c64(0x372)]['get'](g[_0x4e5c64(0x273)])['getCurrentSelections']())==null?void 0x0:_0x15d800[0x0],_0x33c70b=this[_0x4e5c64(0x2a8)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x4e5c64(0x278)])[_0x4e5c64(0x19f)]();_0xef88d3&&_0x33c70b&&this[_0x4e5c64(0x2fb)](_0x33c70b[_0x4e5c64(0x37a)](),_0xef88d3);}[_0x4a9aaf(0x288)](){const _0x5c04e9=_0x4a9aaf;this[_0x5c04e9(0x1c2)]=!0x1;}};Se=it([A(0x2,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),A(0x3,a[_0x4a9aaf(0x301)](me)),A(0x4,a['Inject'](u[_0x4a9aaf(0x2aa)])),A(0x5,a[_0x4a9aaf(0x216)]),A(0x6,a[_0x4a9aaf(0x387)]),A(0x7,a[_0x4a9aaf(0x301)](g[_0x4a9aaf(0x11b)]))],Se);var at=Object[_0x4a9aaf(0x36e)],ct=(_0x413ff8,_0x435e60,_0x539197,_0x241d36)=>{const _0x36dbaa=_0x4a9aaf;for(var _0x3662e8=_0x241d36>0x1?void 0x0:_0x241d36?at(_0x435e60,_0x539197):_0x435e60,_0x5816fc=_0x413ff8[_0x36dbaa(0x1bc)]-0x1,_0xd3227c;_0x5816fc>=0x0;_0x5816fc--)(_0xd3227c=_0x413ff8[_0x5816fc])&&(_0x3662e8=_0xd3227c(_0x3662e8)||_0x3662e8);return _0x3662e8;},ie=(_0x5ee514,_0x20159e)=>(_0x28c6f2,_0x2160bc)=>_0x20159e(_0x28c6f2,_0x2160bc,_0x5ee514);let x=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x4fcb69,_0x233685,_0x421988){const _0x1cfed8=_0x4a9aaf;super(),h(this,_0x1cfed8(0x302),new Map()),h(this,_0x1cfed8(0x14e),new d[(_0x1cfed8(0x175))]()),(this[_0x1cfed8(0x2a8)]=_0x4fcb69,this[_0x1cfed8(0x372)]=_0x233685,this[_0x1cfed8(0x25b)]=_0x421988,this[_0x1cfed8(0x123)]());}[_0x4a9aaf(0x362)](){const _0x587449=_0x4a9aaf;super[_0x587449(0x362)](),this[_0x587449(0x14e)][_0x587449(0x2f4)](),this[_0x587449(0x302)]['forEach'](_0x5ccddb=>_0x5ccddb[_0x587449(0x362)]());}[_0x4a9aaf(0x28c)](_0x3ceec0){const _0x4d39d0=_0x4a9aaf;return this[_0x4d39d0(0x302)][_0x4d39d0(0x1d1)](_0x3ceec0)?this['_entities'][_0x4d39d0(0x1ea)](_0x3ceec0)['cursorInfo$']:this[_0x4d39d0(0x14e)]['pipe'](d['filter'](_0x1e9fdc=>_0x1e9fdc['unitID']===_0x3ceec0),d[_0x4d39d0(0x354)](_0x3f2323=>_0x3f2323[_0x4d39d0(0x1de)]));}['_init'](){const _0x2c2ef8=_0x4a9aaf;this[_0x2c2ef8(0x2a8)][_0x2c2ef8(0x1f3)](a['UniverInstanceType'][_0x2c2ef8(0x278)])[_0x2c2ef8(0x10b)](d['takeUntil'](this[_0x2c2ef8(0x27e)]))[_0x2c2ef8(0x251)](async _0x43e7e7=>{const _0x4076b2=_0x2c2ef8,_0x1a44b1=_0x43e7e7['getUnitId'](),_0x559c94=await this['_startSheetCollabCursor'](_0x1a44b1);this[_0x4076b2(0x14e)][_0x4076b2(0x30c)](_0x559c94),this['_entities'][_0x4076b2(0x2b0)](_0x1a44b1,_0x559c94);}),this[_0x2c2ef8(0x2a8)][_0x2c2ef8(0x1f3)](a[_0x2c2ef8(0x389)][_0x2c2ef8(0xff)])[_0x2c2ef8(0x10b)](d[_0x2c2ef8(0x376)](this['dispose$']))[_0x2c2ef8(0x10b)](d[_0x2c2ef8(0x344)](_0x65b62c=>!_0x65b62c[_0x2c2ef8(0x182)]()[_0x2c2ef8(0x166)]('__')))[_0x2c2ef8(0x251)](async _0x3cdf25=>{const _0x13587e=_0x2c2ef8,_0x3edc77=_0x3cdf25[_0x13587e(0x182)](),_0x3fdafc=await this[_0x13587e(0x2c1)](_0x3edc77);this[_0x13587e(0x14e)][_0x13587e(0x30c)](_0x3fdafc),this[_0x13587e(0x302)][_0x13587e(0x2b0)](_0x3edc77,_0x3fdafc);}),d[_0x2c2ef8(0x2c0)](this[_0x2c2ef8(0x2a8)]['getTypeOfUnitDisposed$'](a[_0x2c2ef8(0x389)][_0x2c2ef8(0xff)]),this[_0x2c2ef8(0x2a8)][_0x2c2ef8(0x1c7)](a[_0x2c2ef8(0x389)][_0x2c2ef8(0x278)]))['pipe'](d['takeUntil'](this[_0x2c2ef8(0x27e)]))[_0x2c2ef8(0x251)](_0x51f96a=>{const _0x5a3d2f=_0x2c2ef8,_0x3fff31=_0x51f96a[_0x5a3d2f(0x182)](),_0x766a61=this['_entities']['get'](_0x3fff31);_0x766a61&&(_0x766a61[_0x5a3d2f(0x362)](),this[_0x5a3d2f(0x302)]['delete'](_0x3fff31));});}async[_0x4a9aaf(0x168)](_0x1b0935){const _0x3aafc4=_0x4a9aaf,_0x288826=await this[_0x3aafc4(0x25b)][_0x3aafc4(0x26e)](_0x1b0935),_0x43858e=this[_0x3aafc4(0x372)][_0x3aafc4(0x16a)](Se,_0x1b0935,_0x288826);return _0x43858e[_0x3aafc4(0x114)](),_0x43858e;}async[_0x4a9aaf(0x2c1)](_0x3f56af){const _0x55fe38=_0x4a9aaf,_0x17e3d5=await this[_0x55fe38(0x25b)]['requireSession'](_0x3f56af),_0x1c1265=this['_injector']['createInstance'](fe,_0x3f56af,_0x17e3d5);return _0x1c1265[_0x55fe38(0x114)](),_0x1c1265;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4ec4f0,_0x259ed3){const _0x95c480=_0x4a9aaf;let {radius:_0x2759a9,width:_0x2689ee,height:_0x30677e}=_0x259ed3;_0x2759a9=_0x2759a9!=null?_0x2759a9:0x0,_0x2689ee=_0x2689ee!=null?_0x2689ee:0x1e,_0x30677e=_0x30677e!=null?_0x30677e:0x1e;let _0x28f75e=0x0,_0x1adb14=0x0,_0x277f6b=0x0;_0x28f75e=_0x1adb14=_0x277f6b=Math[_0x95c480(0x2da)](_0x2759a9,_0x2689ee/0x2,_0x30677e/0x2),_0x4ec4f0[_0x95c480(0x350)](),_0x4ec4f0[_0x95c480(0x285)](_0x28f75e,0x0),_0x4ec4f0[_0x95c480(0x177)](_0x2689ee-_0x1adb14,0x0),_0x4ec4f0['arc'](_0x2689ee-_0x1adb14,_0x1adb14,_0x1adb14,Math['PI']*0x3/0x2,0x0,!0x1),_0x4ec4f0['lineTo'](_0x2689ee,_0x30677e-_0x277f6b),_0x4ec4f0[_0x95c480(0x26c)](_0x2689ee-_0x277f6b,_0x30677e-_0x277f6b,_0x277f6b,0x0,Math['PI']/0x2,!0x1),_0x4ec4f0['lineTo'](0x0,_0x30677e),_0x4ec4f0[_0x95c480(0x177)](0x0,_0x28f75e),_0x4ec4f0[_0x95c480(0x26c)](_0x28f75e,_0x28f75e,_0x28f75e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4ec4f0[_0x95c480(0x23e)](),_0x259ed3[_0x95c480(0x306)]&&(_0x4ec4f0['save'](),_0x4ec4f0[_0x95c480(0x1df)]=_0x259ed3[_0x95c480(0x306)],_0x259ed3[_0x95c480(0x2f7)]===_0x95c480(0x268)?_0x4ec4f0['fill']('evenodd'):_0x4ec4f0['fill'](),_0x4ec4f0[_0x95c480(0x2fd)]());}class ee extends p[_0x4a9aaf(0xfa)]{constructor(_0x39d66c,_0x47c83f){const _0x4fb331=_0x4a9aaf;super(_0x39d66c,_0x47c83f),h(this,_0x4fb331(0x1c4)),h(this,_0x4fb331(0x1a9)),(this[_0x4fb331(0x1c4)]=_0x47c83f==null?void 0x0:_0x47c83f[_0x4fb331(0x1c4)],this[_0x4fb331(0x1a9)]=_0x47c83f==null?void 0x0:_0x47c83f[_0x4fb331(0x1a9)]);}static[_0x4a9aaf(0x2c5)](_0x157d87,_0x33595c){const _0x1ecbaa=_0x4a9aaf,{text:_0x57a126,color:_0x56de66}=_0x33595c;_0x157d87[_0x1ecbaa(0x2d7)](),_0x157d87[_0x1ecbaa(0x239)]=_0x1ecbaa(0x1f4);const _0x4c7598=_0x157d87[_0x1ecbaa(0x381)](_0x57a126)[_0x1ecbaa(0x222)],_0x2190a3=Math['min'](_0x4c7598+0x2*ne,Re);_t(_0x157d87,{'height':K,'radius':0x4,'width':_0x2190a3,'fill':_0x56de66}),_0x157d87['fillStyle']=_0x1ecbaa(0x26d);const _0x4921ca=ne,_0x4855d8=K-lt,_0xaf9723=Re-0x2*ne;if(_0x4c7598>_0xaf9723){let _0x210453='',_0x5ddb9b=0x0;for(const _0x4b8f2b of _0x57a126){const _0x11d3ce=_0x157d87['measureText'](_0x4b8f2b)[_0x1ecbaa(0x222)];if(_0x5ddb9b+_0x11d3ce<=_0xaf9723-_0x157d87[_0x1ecbaa(0x381)](_0x1ecbaa(0x254))[_0x1ecbaa(0x222)])_0x210453+=_0x4b8f2b,_0x5ddb9b+=_0x11d3ce;else{_0x210453+=_0x1ecbaa(0x254);break;}}_0x157d87[_0x1ecbaa(0x104)](_0x210453,_0x4921ca,_0x4855d8);}else _0x157d87[_0x1ecbaa(0x104)](_0x57a126,_0x4921ca,_0x4855d8);_0x157d87[_0x1ecbaa(0x2fd)]();}[_0x4a9aaf(0x338)](_0xff46ae){const _0x538bef=_0x4a9aaf;ee[_0x538bef(0x2c5)](_0xff46ae,this);}}const re=_0x4a9aaf(0x2ce),ht=_0x4a9aaf(0x19c),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x4a9aaf(0x2f8);class De{constructor(_0x4f924a,_0x515bf2,_0x39cbad,_0x2598a6){const _0xb6d191=_0x4a9aaf;h(this,'_shapes',[]),h(this,_0xb6d191(0x196),null),h(this,_0xb6d191(0x178),null),h(this,'_anchorDot',null),h(this,_0xb6d191(0x11a),null),h(this,_0xb6d191(0x1fa),null),(this[_0xb6d191(0x326)]=_0x4f924a,this[_0xb6d191(0x369)]=_0x515bf2,this[_0xb6d191(0x14f)]=_0x39cbad,this[_0xb6d191(0x2b8)]=_0x2598a6,this[_0xb6d191(0x357)]());}set[_0x4a9aaf(0x250)](_0xf0ce29){const _0x200dfb=_0x4a9aaf;_0xf0ce29?(this['_anchorDot']&&this[_0x200dfb(0x156)][_0x200dfb(0x1c9)](),this[_0x200dfb(0x178)]&&this[_0x200dfb(0x178)][_0x200dfb(0x22f)]()):(this[_0x200dfb(0x156)]&&this['_anchorDot'][_0x200dfb(0x22f)](),this[_0x200dfb(0x178)]&&this[_0x200dfb(0x178)]['hide']());}['dispose'](){const _0x4daed4=_0x4a9aaf;for(const _0xd63e5c of this[_0x4daed4(0x29a)])_0xd63e5c['dispose']();this[_0x4daed4(0x178)]&&this[_0x4daed4(0x178)][_0x4daed4(0x362)](),this[_0x4daed4(0x156)]&&this[_0x4daed4(0x156)][_0x4daed4(0x362)](),this[_0x4daed4(0x196)]&&this[_0x4daed4(0x196)][_0x4daed4(0x362)](),this[_0x4daed4(0x1fa)]&&this['_eventUnsubscribe']();}[_0x4a9aaf(0x357)](){const _0x5d5ec7=_0x4a9aaf;var _0x27adef;const {_docSkeleton:_0xabfcba,_document:_0x441a81}=this,{color:_0x5b061e,name:_0x556ffc,ranges:_0x583278}=this['_cursor'],_0x477eb4=_0x441a81[_0x5d5ec7(0x30f)](),{docsLeft:_0x22d42f,docsTop:_0x45e052}=_0x477eb4,_0x3469e1=new b[(_0x5d5ec7(0x321))](_0x477eb4,_0xabfcba);for(const {startOffset:_0x15c3f0,endOffset:_0x4a408c,rangeType:_0x2968b0,segmentId:_0x3897c0,segmentPage:_0x9713b0,collapsed:_0x3de13e,isActive:_0x35e5df}of _0x583278){const _0x4b8906=_0xabfcba[_0x5d5ec7(0x1e9)](_0x15c3f0,!0x0,_0x3897c0,_0x9713b0);let _0x51552e=_0xabfcba[_0x5d5ec7(0x1e9)](_0x4a408c,!0x0,_0x3897c0,_0x9713b0);if(_0x51552e==null&&(_0x51552e=_0xabfcba[_0x5d5ec7(0x1e9)](_0x4a408c-0x1,!0x1,_0x3897c0,_0x9713b0)),_0x35e5df){const {contentBoxPointGroup:_0x199fd3}=_0x3469e1[_0x5d5ec7(0x1be)](_0x51552e,_0x51552e);if(_0x199fd3['length']===0x0)continue;this[_0x5d5ec7(0x17e)](_0x5b061e,_0x199fd3,_0x22d42f,_0x45e052,_0x556ffc),this[_0x5d5ec7(0x1fa)]=this[_0x5d5ec7(0x147)]();}if(_0x4b8906&&_0x51552e){if(_0x2968b0===a[_0x5d5ec7(0x23a)]['RECT']){const _0x365893=new b[(_0x5d5ec7(0x1d0))](_0x477eb4,_0xabfcba),{pointGroup:_0x30be05}=(_0x27adef=_0x365893[_0x5d5ec7(0x1be)](_0x4b8906,_0x51552e))!=null?_0x27adef:{};if(_0x30be05==null||_0x30be05[_0x5d5ec7(0x1bc)]===0x0)continue;this['_drawRectRange'](_0x5b061e,_0x30be05,_0x22d42f,_0x45e052);}else{if(!_0x3de13e){const {borderBoxPointGroup:_0x5b3102}=_0x3469e1[_0x5d5ec7(0x1be)](_0x4b8906,_0x51552e);if(_0x5b3102[_0x5d5ec7(0x1bc)]===0x0)continue;this[_0x5d5ec7(0x207)](_0x5b061e,_0x5b3102,_0x22d42f,_0x45e052);}}}}}['_drawAnchor'](_0x58a8a1,_0x548ee4,_0x389cd9,_0x2c94cf,_0x186d9d){const _0x318fcb=_0x4a9aaf,_0x5a2ff9=this[_0x318fcb(0x31c)](_0x548ee4),{left:_0x260442,top:_0x17e529,height:_0xdf8238}=_0x5a2ff9,_0x398eb8=this[_0x318fcb(0x27b)](),_0x2bd3bb=ft/_0x398eb8,_0x31c6bc=new p[(_0x318fcb(0x1fd))](re+a[_0x318fcb(0x20d)]['generateRandomId'](k),{'left':_0x260442+_0x389cd9-_0x2bd3bb,'top':_0x17e529+_0x2c94cf,'height':_0xdf8238,'width':dt,'fill':_0x58a8a1||p[_0x318fcb(0x18a)](a[_0x318fcb(0x1fc)][_0x318fcb(0x246)],0x0),'strokeWidth':_0x2bd3bb,'stroke':St,'evented':!0x0});this[_0x318fcb(0x196)]=_0x31c6bc,this['_scene'][_0x318fcb(0x36c)](_0x31c6bc,b[_0x318fcb(0x275)]);const _0x4cb245=new p[(_0x318fcb(0x1fd))](re+a[_0x318fcb(0x20d)][_0x318fcb(0x323)](k),{'left':_0x260442+_0x389cd9-_0x2bd3bb,'top':_0x17e529+_0x2c94cf-oe/0x2,'height':oe,'width':oe,'fill':_0x58a8a1||p[_0x318fcb(0x18a)](a[_0x318fcb(0x1fc)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x58a8a1||p[_0x318fcb(0x18a)](a[_0x318fcb(0x1fc)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x4cb245,this[_0x318fcb(0x369)]['addObject'](_0x4cb245,b[_0x318fcb(0x275)]);const _0x46033b=new ee(re+a[_0x318fcb(0x20d)]['generateRandomId'](k),{'left':_0x260442+_0x389cd9-_0x2bd3bb,'top':_0x17e529+_0x2c94cf-K,'text':_0x186d9d,'color':_0x58a8a1});this[_0x318fcb(0x178)]=_0x46033b,this[_0x318fcb(0x369)]['addObject'](_0x46033b,b[_0x318fcb(0x275)]),this[_0x318fcb(0x250)]=!0x1;}[_0x4a9aaf(0x147)](){const _0x3f3f96=_0x4a9aaf,_0x4f2b90=this[_0x3f3f96(0x196)][_0x3f3f96(0x1e0)][_0x3f3f96(0x371)](()=>{this['_hover']=!0x0;}),_0x391050=this[_0x3f3f96(0x196)][_0x3f3f96(0x33c)][_0x3f3f96(0x371)](()=>{const _0x56ea91=_0x3f3f96;this[_0x56ea91(0x11a)]&&clearTimeout(this[_0x56ea91(0x11a)]),this[_0x56ea91(0x11a)]=setTimeout(()=>{const _0x53bdbc=_0x56ea91;this[_0x53bdbc(0x250)]=!0x1;},0x7d0);});return()=>{const _0x5de81b=_0x3f3f96;_0x4f2b90[_0x5de81b(0x161)](),_0x391050[_0x5de81b(0x161)]();};}[_0x4a9aaf(0x207)](_0x196f1a,_0x54129b,_0x573bf1,_0x2e8376){const _0x4e0eee=_0x4a9aaf,_0x3cb4c6=new a[(_0x4e0eee(0x1f5))](_0x196f1a)[_0x4e0eee(0x2eb)](0.2)['toRgbString'](),_0x1e658c=new p[(_0x4e0eee(0x25e))](ht+a[_0x4e0eee(0x20d)][_0x4e0eee(0x323)](k),{'pointsGroup':_0x54129b,'fill':_0x3cb4c6||p[_0x4e0eee(0x18a)](a[_0x4e0eee(0x1fc)][_0x4e0eee(0x246)],0.2),'left':_0x573bf1,'top':_0x2e8376,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4e0eee(0x29a)]['push'](_0x1e658c),this[_0x4e0eee(0x369)][_0x4e0eee(0x36c)](_0x1e658c,b[_0x4e0eee(0x275)]);}[_0x4a9aaf(0x153)](_0x37684b,_0x4e3e80,_0x147cc0,_0x4582a7){const _0xb9949f=_0x4a9aaf,_0x244ce0=new a[(_0xb9949f(0x1f5))](_0x37684b)[_0xb9949f(0x2eb)](0.2)[_0xb9949f(0x11e)](),_0x299db7=new p[(_0xb9949f(0x25e))](ut+a['Tools'][_0xb9949f(0x323)](k),{'pointsGroup':_0x4e3e80,'fill':_0x244ce0||p[_0xb9949f(0x18a)](a[_0xb9949f(0x1fc)][_0xb9949f(0x246)],0.2),'left':_0x147cc0,'top':_0x4582a7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x299db7),this['_scene'][_0xb9949f(0x36c)](_0x299db7,b[_0xb9949f(0x275)]);}[_0x4a9aaf(0x31c)](_0x5c91a7){const _0x324094=_0x5c91a7[0x0],_0x18453d=_0x324094[0x0],_0x439665=_0x324094[0x2],{x:_0x1573c1,y:_0x25b850}=_0x18453d,{x:_0xccb0b,y:_0x50f07c}=_0x439665;return{'left':_0x1573c1,'top':_0x25b850,'width':_0xccb0b-_0x1573c1,'height':_0x50f07c-_0x25b850};}['_getScale'](){const _0x5d8371=_0x4a9aaf,{scaleX:_0x3cfede,scaleY:_0x52d22a}=this['_scene'][_0x5d8371(0x1ac)]();return Math[_0x5d8371(0x148)](_0x3cfede,_0x52d22a);}}var It=Object[_0x4a9aaf(0x36e)],vt=(_0x236bae,_0x7b9d83,_0x31ab62,_0x5d02f4)=>{const _0x3231f7=_0x4a9aaf;for(var _0x321063=_0x5d02f4>0x1?void 0x0:_0x5d02f4?It(_0x7b9d83,_0x31ab62):_0x7b9d83,_0x32b3ca=_0x236bae[_0x3231f7(0x1bc)]-0x1,_0x35b95b;_0x32b3ca>=0x0;_0x32b3ca--)(_0x35b95b=_0x236bae[_0x32b3ca])&&(_0x321063=_0x35b95b(_0x321063)||_0x321063);return _0x321063;},W=(_0x3b9157,_0x55873f)=>(_0x2397a2,_0xef1ca4)=>_0x55873f(_0x2397a2,_0xef1ca4,_0x3b9157);function _0x7693(_0x4ab6a6,_0x2df536){const _0x316ae3=_0x316a();return _0x7693=function(_0x7693b0,_0x4c7931){_0x7693b0=_0x7693b0-0xf4;let _0x4c9b31=_0x316ae3[_0x7693b0];return _0x4c9b31;},_0x7693(_0x4ab6a6,_0x2df536);}let Ie=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x3dc04c,_0x5cd273,_0x4b36a4,_0x31ec07,_0x8c7611){const _0x41cffa=_0x4a9aaf;super(),h(this,_0x41cffa(0x283),[]),h(this,'_cursors',[]),(this[_0x41cffa(0x2a7)]=_0x3dc04c,this['_docSkeletonManagerService']=_0x5cd273,this[_0x41cffa(0x111)]=_0x4b36a4,this[_0x41cffa(0x164)]=_0x31ec07,this['_themeService']=_0x8c7611,this['_init']());}[_0x4a9aaf(0x123)](){const _0x11e566=_0x4a9aaf,_0x5841ab=this[_0x11e566(0x2a7)]['unitId'],_0x445cbe=this['_docSkeletonManagerService'];this[_0x11e566(0x2db)](d[_0x11e566(0x243)]([this[_0x11e566(0x111)][_0x11e566(0x28c)](_0x5841ab),this[_0x11e566(0x287)]['currentTheme$']])['pipe']($['map'](([_0x4311cf,_0x3878ef])=>({'skeleton':_0x445cbe[_0x11e566(0x346)](),'cursors':[..._0x4311cf[_0x11e566(0x1d2)]()][_0x11e566(0x35a)](_0x16d49b=>({..._0x16d49b,'color':this[_0x11e566(0x287)][_0x11e566(0x1e6)](_0x16d49b[_0x11e566(0x1c4)])}))})))['subscribe'](_0x12edec=>{const _0x4b80c1=_0x11e566;if(this[_0x4b80c1(0x18c)](),_0x12edec){const {skeleton:_0x3b9781,cursors:_0x58f3a6}=_0x12edec;this[_0x4b80c1(0x32a)](_0x3b9781,_0x58f3a6);}})),this[_0x11e566(0x365)](),this[_0x11e566(0x187)]();}['_updateCollabCursors'](_0x2487a2,_0x116c13){const _0x548749=_0x4a9aaf,{scene:_0x1aa213,mainComponent:_0x594b64}=this[_0x548749(0x2a7)],_0x220d43=_0x116c13['map'](_0x3486f2=>new De(_0x3486f2,_0x1aa213,_0x2487a2,_0x594b64));this[_0x548749(0x283)]=_0x220d43,this['_cursors']=_0x116c13;}[_0x4a9aaf(0x22e)](){const _0x20b232=_0x4a9aaf;this['_removeCollabCursors']();const {scene:_0x55335b,mainComponent:_0x172024}=this['_context'],_0x4b732f=this[_0x20b232(0x35c)][_0x20b232(0x346)](),_0x1aecc6=this[_0x20b232(0x235)]['map'](_0x2caeaa=>new De(_0x2caeaa,_0x55335b,_0x4b732f,_0x172024));this['_cursorShapes']=_0x1aecc6;}[_0x4a9aaf(0x18c)](){const _0x10fb06=_0x4a9aaf;this[_0x10fb06(0x283)][_0x10fb06(0x2ad)](_0x31b4f5=>_0x31b4f5[_0x10fb06(0x362)]()),this[_0x10fb06(0x283)]=[];}[_0x4a9aaf(0x187)](){const _0xd68b7d=_0x4a9aaf,_0x1594cb=[b[_0xd68b7d(0x202)]['id']];this[_0xd68b7d(0x2db)](this[_0xd68b7d(0x164)][_0xd68b7d(0x14a)](_0x543ece=>{const _0x23670d=_0xd68b7d;_0x1594cb[_0x23670d(0x343)](_0x543ece['id'])&&_0x543ece[_0x23670d(0x209)][_0x23670d(0x181)]===this[_0x23670d(0x2a7)][_0x23670d(0x181)]&&this[_0x23670d(0x22e)]();}));}[_0x4a9aaf(0x365)](){const _0x549ccc=_0x4a9aaf;this[_0x549ccc(0x2db)](a[_0x549ccc(0x16f)](this['_context'][_0x549ccc(0x34a)][_0x549ccc(0xfc)])[_0x549ccc(0x10b)]($[_0x549ccc(0x344)](_0x49f4b1=>_0x49f4b1[_0x549ccc(0x103)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x549ccc(0x162)]),$[_0x549ccc(0x155)](0x10))[_0x549ccc(0x251)](()=>{const _0x508ab5=_0x549ccc;this[_0x508ab5(0x22e)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x4a9aaf(0x23d)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x4a9aaf(0x387)]),W(0x4,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x36b)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x4a9aaf(0xfa)]{constructor(_0x2731a0,_0xc932d2){const _0x52d594=_0x4a9aaf;super(_0x2731a0,_0xc932d2),h(this,'_color'),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x52d594(0x20e),''),h(this,_0x52d594(0x384),'top'),h(this,_0x52d594(0x25d)),(_0xc932d2&&this[_0x52d594(0x37b)](_0xc932d2),this[_0x52d594(0x1e0)][_0x52d594(0x371)](()=>this[_0x52d594(0x37b)]({'hovered':!0x0})),this[_0x52d594(0x33c)]['subscribeEvent'](()=>this[_0x52d594(0x37b)]({'hovered':!0x1})));}[_0x4a9aaf(0x37b)](_0x5ed52c){const _0x340edd=_0x4a9aaf;var _0x231135,_0x394f2e,_0xc97733,_0x1e55e8,_0x4d0292,_0x31870e;this[_0x340edd(0x38b)]=(_0x231135=_0x5ed52c[_0x340edd(0x1c4)])!=null?_0x231135:this[_0x340edd(0x38b)],this[_0x340edd(0x1d6)]=(_0x394f2e=_0x5ed52c[_0x340edd(0x253)])!=null?_0x394f2e:this[_0x340edd(0x1d6)],this[_0x340edd(0x158)]=(_0xc97733=_0x5ed52c[_0x340edd(0x189)])!=null?_0xc97733:this[_0x340edd(0x158)],this['_name']=(_0x1e55e8=_0x5ed52c[_0x340edd(0x322)])!=null?_0x1e55e8:this[_0x340edd(0x20e)],this['_labelPosition']=(_0x4d0292=_0x5ed52c[_0x340edd(0x17d)])!=null?_0x4d0292:this[_0x340edd(0x384)],this['_backgroundColor']=(_0x31870e=_0x5ed52c['backgroundColor'])!=null?_0x31870e:this[_0x340edd(0x25d)],this[_0x340edd(0x184)]({'width':_0x5ed52c[_0x340edd(0x222)],'height':_0x5ed52c['height']});}[_0x4a9aaf(0x2ed)](_0x42da65){const _0x380eea=_0x4a9aaf,{row:_0x4c2ca1,column:_0x2b37da}=_0x42da65;if(_0x4c2ca1>=this[_0x380eea(0x158)][_0x380eea(0x1af)]&&_0x4c2ca1<=this[_0x380eea(0x158)][_0x380eea(0x151)]&&_0x2b37da>=this[_0x380eea(0x158)][_0x380eea(0x137)]&&_0x2b37da<=this[_0x380eea(0x158)][_0x380eea(0x1f9)]){this[_0x380eea(0x37b)]({'hovered':!0x0});return;}this[_0x380eea(0x37b)]({'hovered':!0x1});}[_0x4a9aaf(0x176)](_0x544f4f){return!0x1;}[_0x4a9aaf(0x338)](_0x1d04a6){const _0x14a845=_0x4a9aaf;p[_0x14a845(0x1fd)][_0x14a845(0x2c5)](_0x1d04a6,{'width':this['width'],'height':this[_0x14a845(0x227)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x1d04a6['save'](),_0x1d04a6['transform'](0x1,0x0,0x0,0x1,this[_0x14a845(0x222)],this[_0x14a845(0x384)]==='bottom'?0x0:-0x14),ee[_0x14a845(0x2c5)](_0x1d04a6,{'text':this[_0x14a845(0x20e)],'color':this['_color']}),_0x1d04a6[_0x14a845(0x2fd)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x5c1223,_0x5d0b8,_0x1d386e,_0x1d2b94)=>{const _0x55c6e0=_0x4a9aaf;for(var _0x40e146=_0x1d2b94>0x1?void 0x0:_0x1d2b94?Ct(_0x5d0b8,_0x1d386e):_0x5d0b8,_0x2f308b=_0x5c1223[_0x55c6e0(0x1bc)]-0x1,_0x247852;_0x2f308b>=0x0;_0x2f308b--)(_0x247852=_0x5c1223[_0x2f308b])&&(_0x40e146=_0x247852(_0x40e146)||_0x40e146);return _0x40e146;},ae=(_0x4bd313,_0x14488d)=>(_0x592db0,_0xc65bb)=>_0x14488d(_0x592db0,_0xc65bb,_0x4bd313);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x21d357,_0x37f4c7,_0x22544a,_0xbb0be1){const _0x4bc080=_0x4a9aaf;super(),h(this,_0x4bc080(0x235),new Set()),h(this,_0x4bc080(0x179),null),(this[_0x4bc080(0x2a7)]=_0x21d357,this[_0x4bc080(0x12a)]=_0x37f4c7,this[_0x4bc080(0x111)]=_0x22544a,this[_0x4bc080(0x287)]=_0xbb0be1,this['_init']());}['_init'](){const _0x437229=_0x4a9aaf;this[_0x437229(0x12a)][_0x437229(0x307)][_0x437229(0x10b)]($[_0x437229(0x376)](this[_0x437229(0x27e)]),$[_0x437229(0x354)](_0x3eeb4d=>{const _0xa62b97=_0x437229;if(_0x3eeb4d){const _0x245269=_0x3eeb4d[_0xa62b97(0x20b)];return d[_0xa62b97(0x243)](this['_collabCursorController'][_0xa62b97(0x28c)](this[_0xa62b97(0x2a7)][_0xa62b97(0x181)]),this['_themeService'][_0xa62b97(0x267)])[_0xa62b97(0x10b)]($[_0xa62b97(0x118)](([_0x1f7df6,_0xa89068])=>{const _0x1cda46=new Map();return _0x1f7df6['forEach']((_0x57ec4f,_0x8b80c5)=>{const _0x248748=_0x7693;if(_0x57ec4f[_0x248748(0x361)]===_0x245269){const _0x239da5={..._0x57ec4f};_0x239da5[_0x248748(0x1c4)]=this['_themeService'][_0x248748(0x1e6)](_0x57ec4f[_0x248748(0x1c4)]),_0x1cda46[_0x248748(0x2b0)](_0x8b80c5,_0x239da5);}}),{'skeleton':_0x3eeb4d,'cursors':_0x1cda46};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x437229(0x251)](({skeleton:_0x346c11,cursors:_0x37f641})=>{const _0x222f12=_0x437229;this['_removeCollabCursors'](),_0x346c11&&this[_0x222f12(0x32a)](_0x346c11,_0x37f641);}),this[_0x437229(0x12a)][_0x437229(0x307)][_0x437229(0x251)](_0x468f9f=>{const _0x54c3e1=_0x437229;if(_0x468f9f==null)return;const {skeleton:_0x351366}=_0x468f9f,{scene:_0x11fb9b}=this[_0x54c3e1(0x2a7)];_0x11fb9b[_0x54c3e1(0x2b5)][_0x54c3e1(0x371)](a[_0x54c3e1(0x121)](_0x1e9f4b=>{const _0x1b0a2a=_0x54c3e1;var _0x17ca1c,_0xdd471d;const {offsetX:_0x5a2af5,offsetY:_0x4a2b87}=_0x1e9f4b,{x:_0x444b3a,y:_0x54f290}=_0x11fb9b[_0x1b0a2a(0x1e7)](p[_0x1b0a2a(0x170)][_0x1b0a2a(0x238)]([_0x5a2af5,_0x4a2b87])),{scaleX:_0x5634f4,scaleY:_0x4c008c}=_0x11fb9b['getAncestorScale'](),_0x5786ab=_0x11fb9b['getViewport'](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x302733=_0x11fb9b[_0x1b0a2a(0x259)](p[_0x1b0a2a(0x170)]['FromArray']([_0x444b3a,_0x54f290]),_0x5786ab),_0x34e4d1=_0x351366[_0x1b0a2a(0x139)](_0x5a2af5,_0x4a2b87,_0x5634f4,_0x4c008c,_0x302733);((_0x17ca1c=this[_0x1b0a2a(0x179)])==null?void 0x0:_0x17ca1c[_0x1b0a2a(0x334)])===_0x34e4d1['column']&&((_0xdd471d=this['_lastPointer'])==null?void 0x0:_0xdd471d['row'])===_0x34e4d1[_0x1b0a2a(0x1bb)]||this[_0x1b0a2a(0x235)][_0x1b0a2a(0x2ad)](_0x38a972=>{_0x38a972['onMouseMove'](_0x34e4d1);});},0x64));});}['_updateCollabCursors'](_0x545fbd,_0xef62ba){const _0x9608ce=_0x4a9aaf;var _0x25e55;const _0x56ff3d=(_0x25e55=this[_0x9608ce(0x12a)]['getCurrent']())==null?void 0x0:_0x25e55['skeleton'];if(!_0x56ff3d)return;const _0x51c0a7=this[_0x9608ce(0x1d9)]();if(!_0x51c0a7)return;this[_0x9608ce(0x235)][_0x9608ce(0x2ad)](_0x3b3a95=>{const _0x774346=_0x9608ce;_0x3b3a95[_0x774346(0x262)]();});const {scene:_0x4696e7}=_0x51c0a7,_0x3cde0c=Et(Array[_0x9608ce(0x37e)](_0xef62ba[_0x9608ce(0x1d2)]()))['map'](_0x2475a9=>{const _0x4bf3b4=_0x9608ce,{color:_0x4d3d8b,range:_0xa19fc,name:_0x18e17c,selection:_0x11ac85,sheetID:_0x5e9470}=_0x2475a9,{startColumn:_0x351029,startRow:_0x42bc1a,endColumn:_0x543541,endRow:_0x41b04c}=_0xa19fc,_0x45d1bd=X['getCoordByCell'](_0x42bc1a,_0x351029,_0x4696e7,_0x56ff3d),_0x3b2115=X[_0x4bf3b4(0x1a5)](_0x41b04c,_0x543541,_0x4696e7,_0x56ff3d),{columnHeaderHeightAndMarginTop:_0x5e9b67}=_0x56ff3d,{startX:_0x29f345,startY:_0x235982}=_0x45d1bd,{endX:_0x56bf4e,endY:_0x52beb3}=_0x3b2115,_0x4e7b0c=_0x56bf4e-_0x29f345,_0x2222c4=_0x52beb3-_0x235982,_0x3000c1={'labelPosition':_0x235982-_0x5e9b67>=K?'top':_0x4bf3b4(0x108),'sheetID':_0x5e9470,'range':_0xa19fc,'color':_0x4d3d8b,'name':_0x18e17c,'selection':_0x11ac85,'left':_0x29f345,'top':_0x235982,'width':_0x4e7b0c,'height':_0x2222c4,'evented':!0x1,'zIndex':bt};return new Pe(_0x18e17c,_0x3000c1);});_0x4696e7[_0x9608ce(0x303)](_0x3cde0c,gt),this[_0x9608ce(0x235)]=new Set(_0x3cde0c);}[_0x4a9aaf(0x18c)](){const _0x59caf7=_0x4a9aaf;var _0x420ce8;(_0x420ce8=this[_0x59caf7(0x235)])==null||_0x420ce8[_0x59caf7(0x2ad)](_0x3c5027=>_0x3c5027[_0x59caf7(0x362)]());}[_0x4a9aaf(0x1d9)](){const _0x5c9f2f=_0x4a9aaf;return X[_0x5c9f2f(0x1e1)](this[_0x5c9f2f(0x2a7)][_0x5c9f2f(0x330)],this[_0x5c9f2f(0x2a7)]);}};ve=pt([ae(0x1,a[_0x4a9aaf(0x301)](X[_0x4a9aaf(0x18d)])),ae(0x2,a[_0x4a9aaf(0x301)](x)),ae(0x3,a[_0x4a9aaf(0x301)](a['ThemeService']))],ve);function Et(_0x5e9238){const _0x500a5c=_0x4a9aaf,_0x5be56d=new Map();return _0x5e9238[_0x500a5c(0x2ad)](_0x4c9dbc=>{const _0x2e76dd=_0x500a5c;if(_0x5be56d[_0x2e76dd(0x1d1)](_0x4c9dbc['selection'])){const _0x5516a4=_0x5be56d[_0x2e76dd(0x1ea)](_0x4c9dbc['selection']);_0x5516a4[_0x2e76dd(0x322)]+=',\x20'+_0x4c9dbc[_0x2e76dd(0x322)];}else _0x5be56d[_0x2e76dd(0x2b0)](_0x4c9dbc[_0x2e76dd(0x325)],_0x4c9dbc);}),Array[_0x500a5c(0x37e)](_0x5be56d['values']());}var E=function(){const _0x200b2b=_0x4a9aaf;return E=Object[_0x200b2b(0x293)]||function(_0x3f2797){const _0x2a5806=_0x200b2b;for(var _0x8c5fed,_0x18e5fb=0x1,_0x25aaac=arguments[_0x2a5806(0x1bc)];_0x18e5fb<_0x25aaac;_0x18e5fb++){_0x8c5fed=arguments[_0x18e5fb];for(var _0x1c6bef in _0x8c5fed)Object[_0x2a5806(0x337)][_0x2a5806(0x245)]['call'](_0x8c5fed,_0x1c6bef)&&(_0x3f2797[_0x1c6bef]=_0x8c5fed[_0x1c6bef]);}return _0x3f2797;},E[_0x200b2b(0x2e6)](this,arguments);},Tt=function(_0x280ae6,_0x36e697){const _0x18d793=_0x4a9aaf;var _0x1824ea={};for(var _0x40640e in _0x280ae6)Object[_0x18d793(0x337)][_0x18d793(0x245)][_0x18d793(0x31b)](_0x280ae6,_0x40640e)&&_0x36e697[_0x18d793(0x30a)](_0x40640e)<0x0&&(_0x1824ea[_0x40640e]=_0x280ae6[_0x40640e]);if(_0x280ae6!=null&&typeof Object[_0x18d793(0x200)]==_0x18d793(0x299)){for(var _0x53c592=0x0,_0x40640e=Object['getOwnPropertySymbols'](_0x280ae6);_0x53c592<_0x40640e[_0x18d793(0x1bc)];_0x53c592++)_0x36e697[_0x18d793(0x30a)](_0x40640e[_0x53c592])<0x0&&Object[_0x18d793(0x337)][_0x18d793(0x1e3)][_0x18d793(0x31b)](_0x280ae6,_0x40640e[_0x53c592])&&(_0x1824ea[_0x40640e[_0x53c592]]=_0x280ae6[_0x40640e[_0x53c592]]);}return _0x1824ea;},pe=M['forwardRef'](function(_0x1b594e,_0x4a0344){const _0x3117c4=_0x4a9aaf;var _0x540806=_0x1b594e[_0x3117c4(0x328)],_0x15a325=_0x1b594e['id'],_0x5c628e=_0x1b594e['className'],_0x239f75=_0x1b594e[_0x3117c4(0x237)],_0x4b687b=Tt(_0x1b594e,['icon','id',_0x3117c4(0x198),_0x3117c4(0x237)]),_0x445398=_0x3117c4(0x12e)[_0x3117c4(0x33f)](_0x15a325,'\x20')[_0x3117c4(0x33f)](_0x5c628e||'')['trim'](),_0x4da94c=M[_0x3117c4(0x33a)]('_'[_0x3117c4(0x33f)](Dt()));return Ae(_0x540806,''[_0x3117c4(0x33f)](_0x15a325),{'defIds':_0x540806[_0x3117c4(0x28f)],'idSuffix':_0x4da94c[_0x3117c4(0x30b)]},E({'ref':_0x4a0344,'className':_0x445398},_0x4b687b),_0x239f75);});function Ae(_0x114f02,_0x472ae5,_0x5522d6,_0x33e5eb,_0xc4d8ae){const _0xa0dfb5=_0x4a9aaf;return M[_0xa0dfb5(0x310)](_0x114f02[_0xa0dfb5(0x16d)],E(E({'key':_0x472ae5},Ot(_0x114f02,_0x5522d6,_0xc4d8ae)),_0x33e5eb),(Rt(_0x114f02,_0x5522d6)[_0xa0dfb5(0x28a)]||[])['map'](function(_0x549c08,_0x45e5a3){const _0x22c180=_0xa0dfb5;return Ae(_0x549c08,''['concat'](_0x472ae5,'-')['concat'](_0x114f02[_0x22c180(0x16d)],'-')[_0x22c180(0x33f)](_0x45e5a3),_0x5522d6,void 0x0,_0xc4d8ae);}));}function Ot(_0xdba219,_0x3df6b6,_0x371108){const _0x5aef71=_0x4a9aaf;var _0x226bb0=E({},_0xdba219[_0x5aef71(0x13e)]);_0x371108!=null&&_0x371108['colorChannel1']&&_0x226bb0[_0x5aef71(0x306)]===_0x5aef71(0x206)&&(_0x226bb0[_0x5aef71(0x306)]=_0x371108['colorChannel1']),_0xdba219['tag']===_0x5aef71(0x1d4)&&_0x226bb0['id']&&(_0x226bb0['id']=_0x226bb0['id']+_0x3df6b6[_0x5aef71(0x23b)]),Object[_0x5aef71(0x165)](_0x226bb0)[_0x5aef71(0x2ad)](function(_0x5e4a49){const _0x3527ec=_0x5aef71;var _0xe025e7=_0x5e4a49[0x0],_0x4c1610=_0x5e4a49[0x1];_0xe025e7===_0x3527ec(0x1d4)&&typeof _0x4c1610==_0x3527ec(0x2d1)&&(_0x226bb0[_0xe025e7]=_0x4c1610[_0x3527ec(0x32e)](/url\(#(.*)\)/,_0x3527ec(0x19b)[_0x3527ec(0x33f)](_0x3df6b6[_0x3527ec(0x23b)],')')));});var _0x24270f=_0x3df6b6['defIds'];return!_0x24270f||_0x24270f['length']===0x0||(_0xdba219['tag']==='use'&&_0x226bb0[_0x5aef71(0x1f7)]&&(_0x226bb0[_0x5aef71(0x1f7)]=_0x226bb0['xlink:href']+_0x3df6b6[_0x5aef71(0x23b)]),Object['entries'](_0x226bb0)[_0x5aef71(0x2ad)](function(_0x123ccb){const _0x2acb12=_0x5aef71;var _0x8d7532=_0x123ccb[0x0],_0x119ce9=_0x123ccb[0x1];typeof _0x119ce9=='string'&&(_0x226bb0[_0x8d7532]=_0x119ce9[_0x2acb12(0x32e)](/url\(#(.*)\)/,_0x2acb12(0x19b)[_0x2acb12(0x33f)](_0x3df6b6[_0x2acb12(0x23b)],')')));})),_0x226bb0;}function Rt(_0x18d69e,_0xa0e192){const _0x18e94e=_0x4a9aaf;var _0xcb2404,_0x434715=_0xa0e192['defIds'];return!_0x434715||_0x434715['length']===0x0?_0x18d69e:_0x18d69e[_0x18e94e(0x16d)]===_0x18e94e(0x208)&&(!((_0xcb2404=_0x18d69e[_0x18e94e(0x28a)])===null||_0xcb2404===void 0x0)&&_0xcb2404[_0x18e94e(0x1bc)])?E(E({},_0x18d69e),{'children':_0x18d69e['children'][_0x18e94e(0x118)](function(_0x243511){const _0x3f9b14=_0x18e94e;return typeof _0x243511['attrs']['id']==_0x3f9b14(0x2d1)&&_0x434715&&_0x434715[_0x3f9b14(0x343)](_0x243511[_0x3f9b14(0x13e)]['id'])?E(E({},_0x243511),{'attrs':E(E({},_0x243511['attrs']),{'id':_0x243511[_0x3f9b14(0x13e)]['id']+_0xa0e192['idSuffix']})}):_0x243511;})}):_0x18d69e;}function Dt(){const _0x365b02=_0x4a9aaf;return Math[_0x365b02(0x1a0)]()[_0x365b02(0x385)](0x24)['substring'](0x2,0x8);}pe[_0x4a9aaf(0x353)]='UniverIcon';var Ut={'tag':_0x4a9aaf(0x316),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a9aaf(0x2b3),'viewBox':'0\x200\x2016\x2016','width':_0x4a9aaf(0x15a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4a9aaf(0x2d5)},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'stroke':_0x4a9aaf(0x1ec),'d':'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','strokeLinecap':_0x4a9aaf(0x1b6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4a9aaf(0x208),'attrs':{},'children':[{'tag':_0x4a9aaf(0x2f1),'attrs':{'id':_0x4a9aaf(0x219)},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'fill':'white','d':_0x4a9aaf(0x2e4)}}]}]}],'defIds':[_0x4a9aaf(0x219)]},ye=M['forwardRef'](function(_0x24744a,_0x242152){const _0x5a7f8d=_0x4a9aaf;return M[_0x5a7f8d(0x310)](pe,Object[_0x5a7f8d(0x293)]({},_0x24744a,{'id':_0x5a7f8d(0x2ff),'ref':_0x242152,'icon':Ut}));});ye['displayName']=_0x4a9aaf(0x1ae);var Nt={'tag':'svg','attrs':{'xmlns':_0x4a9aaf(0x1cc),'fill':_0x4a9aaf(0x2b3),'viewBox':'0\x200\x2017\x2016','width':_0x4a9aaf(0x15a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4a9aaf(0x329)},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x4a9aaf(0x1b6),'strokeLinejoin':_0x4a9aaf(0x1b6),'strokeWidth':1.2}}]},{'tag':_0x4a9aaf(0x208),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'fill':_0x4a9aaf(0x131),'d':_0x4a9aaf(0x2e4),'transform':_0x4a9aaf(0x2d3)}}]}]}],'defIds':[_0x4a9aaf(0x2c4)]},$e=M[_0x4a9aaf(0x1a2)](function(_0x626078,_0x4a5eb4){const _0x280c20=_0x4a9aaf;return M['createElement'](pe,Object[_0x280c20(0x293)]({},_0x626078,{'id':_0x280c20(0x2a2),'ref':_0x4a5eb4,'icon':Nt}));});$e[_0x4a9aaf(0x353)]=_0x4a9aaf(0x2a0);function Mt(_0x24e51d){const _0x5eaa3c=_0x4a9aaf;switch(_0x24e51d){case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x28b)]:return _0x5eaa3c(0x199);case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x1b1)]:return _0x5eaa3c(0x2ab);case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x195)]:return'collabStatus.fetchMiss';case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x33e)]:return _0x5eaa3c(0x269);case u['CollaborationStatus']['AWAITING']:case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x313)]:return _0x5eaa3c(0x2ef);case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x2b1)]:case u[_0x5eaa3c(0x2be)]['PENDING']:return'collabStatus.synced';}}function xe(_0xa60285){const _0x347ddb=_0x4a9aaf,{status$:_0x12486a}=_0xa60285,_0xfa2cc3=T[_0x347ddb(0x26a)](_0x12486a,u[_0x347ddb(0x2be)][_0x347ddb(0x33e)]),_0x101acc=T[_0x347ddb(0x152)](a[_0x347ddb(0x102)]),_0x527d5f=T[_0x347ddb(0x152)](u[_0x347ddb(0x1dc)]),_0x592e7e=_0xfa2cc3!==u['CollaborationStatus'][_0x347ddb(0x28b)],_0x2c2661=_0x101acc['t'](Mt(_0xfa2cc3)),_0x239707=_0x592e7e?w[_0x347ddb(0x22b)]($e,{}):w['jsx'](ye,{}),_0x4b6698=M[_0x347ddb(0xfe)](()=>{const _0x5e0540=_0x347ddb;_0x592e7e||_0x527d5f[_0x5e0540(0x154)]();},[_0x592e7e,_0x527d5f]);function _0x2afdf1(){const _0xac7bc6=_0x347ddb;return w[_0xac7bc6(0x2d2)](_0xac7bc6(0x348),{'className':'univer-flex\x20univer-items-center','onClick':_0x4b6698,'children':[w[_0xac7bc6(0x22b)]('div',{'className':D[_0xac7bc6(0x21d)]('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x592e7e,'univer-text-red-500':!_0x592e7e}),'children':_0x239707}),w['jsx'](_0xac7bc6(0x348),{'className':_0xac7bc6(0x32d),'children':_0x2c2661})]});}return _0x592e7e?_0x2afdf1():w[_0x347ddb(0x22b)](D[_0x347ddb(0x23c)],{'title':_0x101acc['t'](_0x347ddb(0x35d)),'children':_0x2afdf1()});}var Lt=Object[_0x4a9aaf(0x36e)],wt=(_0x37f4f7,_0x30afb0,_0x25b7c0,_0xeaec8a)=>{for(var _0x11f592=_0xeaec8a>0x1?void 0x0:_0xeaec8a?Lt(_0x30afb0,_0x25b7c0):_0x30afb0,_0x56328c=_0x37f4f7['length']-0x1,_0x16e585;_0x56328c>=0x0;_0x56328c--)(_0x16e585=_0x37f4f7[_0x56328c])&&(_0x11f592=_0x16e585(_0x11f592)||_0x11f592);return _0x11f592;},V=(_0x22f8a4,_0x2c595d)=>(_0x1b3e1b,_0x39f55d)=>_0x2c595d(_0x1b3e1b,_0x39f55d,_0x22f8a4);exports[_0x4a9aaf(0x18b)]=class extends a[_0x4a9aaf(0x149)]{constructor(_0x510f65,_0x26d100,_0x9fda2e,_0x44d048){const _0x501f2f=_0x4a9aaf;super(),h(this,_0x501f2f(0x2cb),new d['BehaviorSubject'](u[_0x501f2f(0x2be)]['NOT_COLLAB'])),(this[_0x501f2f(0x2a8)]=_0x510f65,this[_0x501f2f(0x372)]=_0x26d100,this['_collaborationController']=_0x9fda2e,this[_0x501f2f(0x241)]=_0x44d048,this[_0x501f2f(0x276)](),this['_initStatusListener']());}[_0x4a9aaf(0x21c)](){const _0x39a0b3=_0x4a9aaf;this[_0x39a0b3(0x2db)](this[_0x39a0b3(0x2a8)][_0x39a0b3(0x386)][_0x39a0b3(0x10b)](d[_0x39a0b3(0x354)](()=>{const _0x104e73=_0x39a0b3,_0x2b100a=this['_univerInstanceService'][_0x104e73(0x210)]();return _0x2b100a?this[_0x104e73(0x2a1)][_0x104e73(0x304)](_0x2b100a[_0x104e73(0x182)]()):d['of'](null);}),d['switchMap'](_0x3a5d97=>_0x3a5d97?_0x3a5d97[_0x39a0b3(0x13b)]:d['of'](u[_0x39a0b3(0x2be)][_0x39a0b3(0x33e)])))[_0x39a0b3(0x251)](_0x48d068=>{const _0x54d4c1=_0x39a0b3;this[_0x54d4c1(0x2cb)]['next'](_0x48d068);}));}[_0x4a9aaf(0x276)](){const _0x49e794=_0x4a9aaf;this[_0x49e794(0x2db)](this[_0x49e794(0x241)][_0x49e794(0x24c)](T['BuiltInUIPart'][_0x49e794(0x367)],()=>T[_0x49e794(0x256)](Pt({'status$':this[_0x49e794(0x2cb)]['asObservable']()}),this[_0x49e794(0x372)])));}},exports[_0x4a9aaf(0x18b)]=wt([V(0x0,a[_0x4a9aaf(0x216)]),V(0x1,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),V(0x2,a['Inject'](u[_0x4a9aaf(0x100)])),V(0x3,T[_0x4a9aaf(0x341)])],exports[_0x4a9aaf(0x18b)]);function Pt(_0x5c9dac){const {status$:_0x59d231}=_0x5c9dac;return function(){return w['jsx'](xe,{'status$':_0x59d231});};}var At=Object[_0x4a9aaf(0x36e)],yt=(_0x4b42e6,_0x250364,_0x40467a,_0x1c6663)=>{const _0x32f20b=_0x4a9aaf;for(var _0x434c50=_0x1c6663>0x1?void 0x0:_0x1c6663?At(_0x250364,_0x40467a):_0x250364,_0x4e8fbd=_0x4b42e6[_0x32f20b(0x1bc)]-0x1,_0x51f306;_0x4e8fbd>=0x0;_0x4e8fbd--)(_0x51f306=_0x4b42e6[_0x4e8fbd])&&(_0x434c50=_0x51f306(_0x434c50)||_0x434c50);return _0x434c50;},y=(_0x154c21,_0x4552c8)=>(_0x2ab59c,_0x3d34fc)=>_0x4552c8(_0x2ab59c,_0x3d34fc,_0x154c21);let q=class extends a[_0x4a9aaf(0x149)]{constructor(_0x50deba,_0x138593,_0x3d997e,_0x583c1b,_0x2fae27,_0xbcaba){const _0x1b3025=_0x4a9aaf;super(),this['_beforeCloseService']=_0x50deba,this[_0x1b3025(0x36f)]=_0x138593,this['_collaborationUIEventService']=_0x3d997e,this['_messageService']=_0x583c1b,this['_notificationService']=_0x2fae27,this[_0x1b3025(0x281)]=_0xbcaba,this[_0x1b3025(0x21e)](),this[_0x1b3025(0x29c)]();}[_0x4a9aaf(0x21e)](){const _0xcbb271=_0x4a9aaf;this[_0xcbb271(0x2db)](this['_beforeCloseService'][_0xcbb271(0x289)](()=>{const _0x502067=_0xcbb271;if(this[_0x502067(0x36f)][_0x502067(0x1b0)][_0x502067(0x352)])return this[_0x502067(0x281)]['t'](_0x502067(0x13f));}));}[_0x4a9aaf(0x29c)](){const _0x2a9f13=_0x4a9aaf;this[_0x2a9f13(0x2db)](this[_0x2a9f13(0x1aa)][_0x2a9f13(0x224)]['subscribe'](_0x111ffb=>{const _0x2f92c3=_0x2a9f13;_0x111ffb['id']===u[_0x2f92c3(0x14b)]['OTHER_CLIENT_EDITING']&&this[_0x2f92c3(0x134)][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x2cc)],'content':this[_0x2f92c3(0x281)]['t']('collaboration.single-unit.warning')}),_0x111ffb['id']===u[_0x2f92c3(0x14b)]['CLOSE_ROOM']&&this[_0x2f92c3(0x134)][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)]['Warning'],'content':this['_localeService']['t'](_0x2f92c3(0x27f))}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x132)]&&this[_0x2f92c3(0x242)]['show']({'title':this[_0x2f92c3(0x281)]['t'](_0x2f92c3(0x234)),'content':this[_0x2f92c3(0x281)]['t'](_0x2f92c3(0x11f)),'type':'error','duration':0x0}),_0x111ffb['id']===u['CollaborationUIEventId'][_0x2f92c3(0x1b1)]&&this[_0x2f92c3(0x134)][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x24f)],'content':this[_0x2f92c3(0x281)]['t']('collaboration.closeRoom')+'('+_0x111ffb[_0x2f92c3(0x2c3)]+')'}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x229)]&&this[_0x2f92c3(0x134)]['show']({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x2cc)],'content':this[_0x2f92c3(0x281)]['t'](_0x111ffb['data']||'')}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x356)]&&this['_messageService'][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)]['Warning'],'content':this['_localeService']['t'](_0x2f92c3(0xfb))}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x311)]&&this[_0x2f92c3(0x134)]['show']({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x24f)],'content':this[_0x2f92c3(0x281)]['t']('session.connection-failed')}),_0x111ffb['id']===u[_0x2f92c3(0x14b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x2f92c3(0x134)]['show']({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x24f)],'content':this[_0x2f92c3(0x281)]['t'](_0x2f92c3(0x36a))});}));}};q=yt([y(0x0,T[_0x4a9aaf(0x263)]),y(0x1,u[_0x4a9aaf(0x21b)]),y(0x2,a[_0x4a9aaf(0x301)](u[_0x4a9aaf(0x150)])),y(0x3,T[_0x4a9aaf(0x2a4)]),y(0x4,T[_0x4a9aaf(0x34d)]),y(0x5,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x102)]))],q);const $t=_0x4a9aaf(0x34f),Ue={},be=a[_0x4a9aaf(0x143)](_0x4a9aaf(0x27c));var xt=Object[_0x4a9aaf(0x36e)],jt=(_0x3fc888,_0x46f7aa,_0x299ab8,_0x253b96)=>{const _0x96dfdc=_0x4a9aaf;for(var _0x2e264d=_0x253b96>0x1?void 0x0:_0x253b96?xt(_0x46f7aa,_0x299ab8):_0x46f7aa,_0x733b25=_0x3fc888[_0x96dfdc(0x1bc)]-0x1,_0xb5b065;_0x733b25>=0x0;_0x733b25--)(_0xb5b065=_0x3fc888[_0x733b25])&&(_0x2e264d=_0xb5b065(_0x2e264d)||_0x2e264d);return _0x2e264d;},H=(_0x145d1c,_0x488090)=>(_0xce3ceb,_0x3d972b)=>_0x488090(_0xce3ceb,_0x3d972b,_0x145d1c);exports[_0x4a9aaf(0x191)]=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x5eeb9b,_0xd59410,_0xa332aa,_0x5a20c6,_0x4744c5){const _0xd13119=_0x4a9aaf;super(),this['_urlService']=_0x5eeb9b,this[_0xd13119(0x15e)]=_0xd59410,this[_0xd13119(0x164)]=_0xa332aa,this[_0xd13119(0x2e0)]=_0x5a20c6,_0x4744c5?_0x4744c5==null||_0x4744c5[_0xd13119(0x223)]()[_0xd13119(0x38a)](()=>this['_init']()):(this['_logService']['debug'](_0xd13119(0x2af),_0xd13119(0x279)),this['_init']());}async['_init'](){const _0xb68196=_0x4a9aaf,_0x1f2eee=this['_urlService'][_0xb68196(0x2a6)](_0xb68196(0x330)),_0x3b6567=this['_urlService']['getParam'](_0xb68196(0x103)),_0x1bbffe=this[_0xb68196(0x25f)][_0xb68196(0x2a6)](_0xb68196(0x2b7));if(!_0x1f2eee||!_0x3b6567){this['_logService'][_0xb68196(0x335)](_0xb68196(0x2af),_0xb68196(0x24d));return;}const _0x11f287=await this[_0xb68196(0x2e0)][_0xb68196(0x113)](_0x1f2eee,Number(_0x3b6567),_0x1bbffe);_0x11f287&&_0x11f287 instanceof a['Workbook']&&this[_0xb68196(0xf4)](_0x11f287);}async[_0x4a9aaf(0xf4)](_0x2a5812){const _0x31f460=_0x4a9aaf;await this[_0x31f460(0x17a)](_0x2a5812),_0x2a5812[_0x31f460(0x2c2)][_0x31f460(0x10b)](d['takeUntil'](this[_0x31f460(0x27e)]))[_0x31f460(0x251)](_0x1bad5c=>{const _0x5bc416=_0x31f460;_0x1bad5c&&this[_0x5bc416(0x1e4)](_0x1bad5c);}),this[_0x31f460(0x25f)][_0x31f460(0x2a5)][_0x31f460(0x10b)](d[_0x31f460(0x376)](this[_0x31f460(0x27e)]))['subscribe'](()=>this[_0x31f460(0x17a)](_0x2a5812));}[_0x4a9aaf(0x1e4)](_0x3d8228,_0x15888c=!0x1){const _0x2ba62d=_0x4a9aaf,_0xa44e01=this[_0x2ba62d(0x25f)]['getParam']('subunit');_0x3d8228[_0x2ba62d(0x37a)]()!==_0xa44e01&&this[_0x2ba62d(0x25f)]['setParam'](_0x2ba62d(0x2b7),_0x3d8228[_0x2ba62d(0x37a)](),_0x15888c);}async[_0x4a9aaf(0x17a)](_0x38447f){const _0x1053c5=_0x4a9aaf;var _0xee222c;const _0x567919=this[_0x1053c5(0x25f)][_0x1053c5(0x2a6)]('subunit');if(!_0x567919||!_0x38447f['getSheetBySheetId'](_0x567919)){const _0x13396e=_0x38447f[_0x1053c5(0x2e8)]()[0x0],_0x29d7bb=_0x38447f[_0x1053c5(0x10f)](_0x13396e);if(!_0x29d7bb)return;this[_0x1053c5(0x1e4)](_0x29d7bb,!0x0),await this[_0x1053c5(0x164)][_0x1053c5(0x277)](g[_0x1053c5(0x228)]['id'],{'unitId':_0x38447f[_0x1053c5(0x182)](),'subUnitId':_0x13396e});return;}((_0xee222c=_0x38447f[_0x1053c5(0x19f)]())==null?void 0x0:_0xee222c['getSheetId']())!==_0x567919&&await this['_commandService'][_0x1053c5(0x277)](g[_0x1053c5(0x228)]['id'],{'unitId':_0x38447f[_0x1053c5(0x182)](),'subUnitId':_0x567919});}},exports[_0x4a9aaf(0x191)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x4a9aaf(0x387)]),H(0x3,a[_0x4a9aaf(0x301)](u['DataLoaderService'])),H(0x4,a[_0x4a9aaf(0x265)](Ke[_0x4a9aaf(0x211)]))],exports[_0x4a9aaf(0x191)]);var Bt=Object[_0x4a9aaf(0x36e)],kt=(_0x249442,_0x56d84c,_0x2e4d5c,_0x14e725)=>{const _0x38ad36=_0x4a9aaf;for(var _0x36f54e=_0x14e725>0x1?void 0x0:_0x14e725?Bt(_0x56d84c,_0x2e4d5c):_0x56d84c,_0x16bd96=_0x249442[_0x38ad36(0x1bc)]-0x1,_0x198e11;_0x16bd96>=0x0;_0x16bd96--)(_0x198e11=_0x249442[_0x16bd96])&&(_0x36f54e=_0x198e11(_0x36f54e)||_0x36f54e);return _0x36f54e;},ce=(_0x2d7be1,_0xdb34b5)=>(_0x1582a9,_0x34b023)=>_0xdb34b5(_0x1582a9,_0x34b023,_0x2d7be1);let z=class{constructor(_0x319dca,_0x6ad4f8,_0x2a7a){const _0x151baa=_0x4a9aaf;this['_injector']=_0x319dca,this[_0x151baa(0x29f)]=_0x6ad4f8,this[_0x151baa(0x24a)]=_0x2a7a;}[_0x4a9aaf(0x197)](_0x30eda4){const _0x5ddbad=_0x4a9aaf;this[_0x5ddbad(0x185)](_0x30eda4),this[_0x5ddbad(0x12d)](_0x30eda4);}['transformRemoteChangeset'](_0x442034){const _0x383bed=_0x4a9aaf,{unitID:_0x39e63c}=_0x442034,_0x416a50=this[_0x383bed(0x24a)]['getRenderById'](_0x39e63c)['with'](b[_0x383bed(0x382)]),{redoCache:_0x172cda}=_0x416a50[_0x383bed(0x2ee)]();if(_0x172cda['length']===0x0)return _0x442034;let _0x452f9a=a['Tools'][_0x383bed(0x15c)](_0x442034[_0x383bed(0x1a3)][0x0]);for(let _0xfe5bc9=0x0;_0xfe5bc9<_0x172cda[_0x383bed(0x1bc)];_0xfe5bc9++){const _0x206a8b={'id':'doc.mutation.rich-text-editing','params':{..._0x172cda[_0xfe5bc9]}},_0x1c8e28=this[_0x383bed(0x29f)]['transformMutation'](_0x452f9a,_0x206a8b,!0x1);if(m['isTransformMutationFailure'](_0x1c8e28))throw _0x1c8e28['error'];_0x452f9a=_0x1c8e28[_0x383bed(0x2a9)];}return{...a[_0x383bed(0x20d)]['deepClone'](_0x442034),'mutations':[_0x452f9a]};}[_0x4a9aaf(0x185)](_0x523e4a){const _0x2479ba=_0x4a9aaf,{unitID:_0x2bb201}=_0x523e4a,_0x1613ef=this[_0x2479ba(0x24a)][_0x2479ba(0x126)](_0x2bb201)[_0x2479ba(0x1ab)](b['DocIMEInputManagerService']),{undoCache:_0x36f719,redoCache:_0x4b6b80}=_0x1613ef[_0x2479ba(0x2ee)]();if(_0x36f719[_0x2479ba(0x1bc)]===0x0||_0x4b6b80[_0x2479ba(0x1bc)]===0x0)return;const _0x2d54a6=[],_0x318935=[];let _0xab890c=a[_0x2479ba(0x20d)][_0x2479ba(0x15c)](_0x523e4a[_0x2479ba(0x1a3)][0x0]),_0x45a024=a['Tools']['deepClone'](_0x523e4a[_0x2479ba(0x1a3)][0x0]);for(let _0x574ebb=_0x36f719[_0x2479ba(0x1bc)]-0x1;_0x574ebb>=0x0;_0x574ebb--){const _0x3fd79d={'id':_0x2479ba(0x2ec),'params':{..._0x36f719[_0x574ebb]}},_0x42946d={'id':_0x2479ba(0x2ec),'params':{..._0x4b6b80[_0x574ebb]}},_0x4205c4=this['_transformService'][_0x2479ba(0x128)](_0xab890c,_0x3fd79d,!0x1),_0x29c2e9=this[_0x2479ba(0x29f)][_0x2479ba(0x128)](_0x45a024,_0x42946d,!0x1);if(m['isTransformMutationFailure'](_0x4205c4))throw _0x4205c4[_0x2479ba(0x33b)];if(m['isTransformMutationFailure'](_0x29c2e9))throw _0x29c2e9[_0x2479ba(0x33b)];_0x2d54a6[_0x2479ba(0x116)](_0x4205c4['m2Prime'][_0x2479ba(0x209)]),_0x318935[_0x2479ba(0x116)](_0x29c2e9['m2Prime'][_0x2479ba(0x209)]),_0xab890c=_0x4205c4[_0x2479ba(0x2a9)],_0x45a024=_0x29c2e9[_0x2479ba(0x2a9)];}_0x1613ef[_0x2479ba(0x110)]({'undoCache':_0x2d54a6,'redoCache':_0x318935});}[_0x4a9aaf(0x12d)](_0x2f9baa){const _0x5178e3=_0x4a9aaf,{unitID:_0x11148b}=_0x2f9baa,_0x5d207f=this['_renderManagerService']['getRenderById'](_0x11148b)[_0x5178e3(0x1ab)](b[_0x5178e3(0x382)]),_0x344a02=_0x5d207f[_0x5178e3(0x373)]();if(_0x344a02==null)return;const _0x1efc96=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f9baa[_0x5178e3(0xfd)],'actions':null,'textRanges':[_0x344a02]}}],_0x49e459=this[_0x5178e3(0x29f)]['transformMutationsWithChangeset'](_0x2f9baa,_0x1efc96);if(!m[_0x5178e3(0x340)](_0x49e459))throw _0x49e459[_0x5178e3(0x33b)];const _0x26cce5=_0x49e459['m2Prime'][0x0][_0x5178e3(0x209)][_0x5178e3(0x2bb)];Array[_0x5178e3(0x2c6)](_0x26cce5)&&_0x26cce5[_0x5178e3(0x1bc)]&&_0x5d207f[_0x5178e3(0x192)](_0x26cce5[0x0]);}};z=kt([ce(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),ce(0x1,m[_0x4a9aaf(0x34e)]),ce(0x2,p[_0x4a9aaf(0x2c8)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x4dd280,_0x2fb29b,_0x3294ea,_0x173280)=>{for(var _0x3479e0=_0x173280>0x1?void 0x0:_0x173280?Ht(_0x2fb29b,_0x3294ea):_0x2fb29b,_0xad2ce5=_0x4dd280['length']-0x1,_0x1a5eef;_0xad2ce5>=0x0;_0xad2ce5--)(_0x1a5eef=_0x4dd280[_0xad2ce5])&&(_0x3479e0=_0x1a5eef(_0x3479e0)||_0x3479e0);return _0x3479e0;},le=(_0x432c29,_0x578f81)=>(_0x3ac72d,_0xc2dca9)=>_0x578f81(_0x3ac72d,_0xc2dca9,_0x432c29);let J=class{constructor(_0x32c375,_0x3ac457,_0x20867c){const _0x3be7cb=_0x4a9aaf;this[_0x3be7cb(0x372)]=_0x32c375,this[_0x3be7cb(0x29f)]=_0x3ac457,this[_0x3be7cb(0x1a7)]=_0x20867c;}[_0x4a9aaf(0x1e2)](_0x29573f){const _0x474aea=_0x4a9aaf;this[_0x474aea(0x364)](_0x29573f);}[_0x4a9aaf(0x135)](_0x4c3fd9){const _0x4c86bc=_0x4a9aaf,{unitID:_0x2f71c6}=_0x4c3fd9,{collaboration:_0x45503d}=this['_docStateChangeManagerService'][_0x4c86bc(0x18e)](_0x2f71c6);if(_0x45503d[_0x4c86bc(0x1bc)]===0x0)return _0x4c3fd9;let _0x47823f=a['Tools'][_0x4c86bc(0x15c)](_0x4c3fd9[_0x4c86bc(0x1a3)][0x0]);for(let _0x8182cb=0x0;_0x8182cb<_0x45503d['length'];_0x8182cb++){const _0x881c82={'id':_0x4c86bc(0x2ec),'params':{'unitId':_0x45503d[_0x8182cb][_0x4c86bc(0x181)],..._0x45503d[_0x8182cb][_0x4c86bc(0x236)]}},_0x5ec29c=this['_transformService'][_0x4c86bc(0x128)](_0x47823f,_0x881c82,!0x1);if(m['isTransformMutationFailure'](_0x5ec29c))throw _0x5ec29c['error'];_0x47823f=_0x5ec29c['m1Prime'];}return{...a[_0x4c86bc(0x20d)]['deepClone'](_0x4c3fd9),'mutations':[_0x47823f]};}[_0x4a9aaf(0x364)](_0xbc7f81){const _0x335e03=_0x4a9aaf,{unitID:_0x3b5d12}=_0xbc7f81,{history:_0x434946,collaboration:_0x5ba462}=this['_docStateChangeManagerService']['getStateCache'](_0x3b5d12);if(_0x434946[_0x335e03(0x1bc)]===0x0&&_0x5ba462[_0x335e03(0x1bc)]===0x0)return;const _0x2c1946=[],_0x4437a4=[];let _0x48a417=a['Tools'][_0x335e03(0x15c)](_0xbc7f81[_0x335e03(0x1a3)][0x0]),_0x1395d8=a[_0x335e03(0x20d)][_0x335e03(0x15c)](_0xbc7f81[_0x335e03(0x1a3)][0x0]);for(let _0x431f81=_0x434946['length']-0x1;_0x431f81>=0x0;_0x431f81--){const _0x25a340={'id':_0x335e03(0x2ec),'params':{'unitId':_0x434946[_0x431f81][_0x335e03(0x181)],..._0x434946[_0x431f81][_0x335e03(0x264)]}},_0x390c6b={'id':_0x335e03(0x2ec),'params':{'unitId':_0x434946[_0x431f81][_0x335e03(0x181)],..._0x434946[_0x431f81][_0x335e03(0x236)]}},_0x31eb2b=this[_0x335e03(0x29f)][_0x335e03(0x128)](_0x48a417,_0x25a340,!0x1),_0xba3818=this[_0x335e03(0x29f)][_0x335e03(0x128)](_0x1395d8,_0x390c6b,!0x1);if(m['isTransformMutationFailure'](_0x31eb2b))throw _0x31eb2b[_0x335e03(0x33b)];if(m[_0x335e03(0x2de)](_0xba3818))throw _0xba3818['error'];_0x2c1946[_0x335e03(0x116)]({..._0x434946[_0x431f81],'undoState':_0x31eb2b[_0x335e03(0x360)]['params'],'redoState':_0xba3818[_0x335e03(0x360)]['params']}),_0x48a417=_0x31eb2b[_0x335e03(0x2a9)],_0x1395d8=_0xba3818[_0x335e03(0x2a9)];}_0x48a417=a['Tools'][_0x335e03(0x15c)](_0xbc7f81['mutations'][0x0]),_0x1395d8=a[_0x335e03(0x20d)]['deepClone'](_0xbc7f81[_0x335e03(0x1a3)][0x0]);for(let _0x465a3f=_0x5ba462['length']-0x1;_0x465a3f>=0x0;_0x465a3f--){const _0xf8bbd5={'id':_0x335e03(0x2ec),'params':{'unitId':_0x5ba462[_0x465a3f][_0x335e03(0x181)],..._0x5ba462[_0x465a3f][_0x335e03(0x264)]}},_0x1b6970={'id':_0x335e03(0x2ec),'params':{'unitId':_0x5ba462[_0x465a3f][_0x335e03(0x181)],..._0x5ba462[_0x465a3f]['redoState']}},_0x1b3380=this['_transformService'][_0x335e03(0x128)](_0x48a417,_0xf8bbd5,!0x1),_0x283e2d=this['_transformService'][_0x335e03(0x128)](_0x1395d8,_0x1b6970,!0x1);if(m['isTransformMutationFailure'](_0x1b3380))throw _0x1b3380[_0x335e03(0x33b)];if(m['isTransformMutationFailure'](_0x283e2d))throw _0x283e2d[_0x335e03(0x33b)];_0x4437a4['unshift']({..._0x5ba462[_0x465a3f],'undoState':_0x1b3380[_0x335e03(0x360)]['params'],'redoState':_0x283e2d[_0x335e03(0x360)]['params']}),_0x48a417=_0x1b3380[_0x335e03(0x2a9)],_0x1395d8=_0x283e2d['m1Prime'];}this[_0x335e03(0x1a7)][_0x335e03(0x1d7)](_0x3b5d12,{'history':_0x2c1946,'collaboration':_0x4437a4});}};J=Ft([le(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),le(0x1,m[_0x4a9aaf(0x34e)]),le(0x2,a[_0x4a9aaf(0x301)](b[_0x4a9aaf(0x320)]))],J);var Yt=Object[_0x4a9aaf(0x36e)],Wt=(_0x1c089a,_0x2efd6b,_0x5c0ec6,_0x299558)=>{const _0x4b07b0=_0x4a9aaf;for(var _0x1de980=_0x299558>0x1?void 0x0:_0x299558?Yt(_0x2efd6b,_0x5c0ec6):_0x2efd6b,_0x59882f=_0x1c089a[_0x4b07b0(0x1bc)]-0x1,_0xc33764;_0x59882f>=0x0;_0x59882f--)(_0xc33764=_0x1c089a[_0x59882f])&&(_0x1de980=_0xc33764(_0x1de980)||_0x1de980);return _0x1de980;},Ne=(_0x5a9822,_0xd0bc83)=>(_0x1900dd,_0x14fb87)=>_0xd0bc83(_0x1900dd,_0x14fb87,_0x5a9822);let Z=class{constructor(_0x1b4563,_0xda5836){const _0x2417d1=_0x4a9aaf;this['_injector']=_0x1b4563,this[_0x2417d1(0x29f)]=_0xda5836;}[_0x4a9aaf(0x339)](_0x5cb105){const _0x2beeca=_0x4a9aaf;var _0x36858e;const _0x37fe77=this[_0x2beeca(0x372)][_0x2beeca(0x1ea)](Y[_0x2beeca(0x15d)]),_0x5c4e6a=(_0x36858e=_0x37fe77[_0x2beeca(0x17f)]())!=null?_0x36858e:[];if(_0x5c4e6a[_0x2beeca(0x1bc)]===0x0)return;const _0x565054=_0x5cb105['unitID'],_0x423b65=[{'id':_0x2beeca(0x2ec),'params':{'unitId':_0x565054,'actions':null,'textRanges':_0x5c4e6a}}],_0xd72a22=this['_transformService'][_0x2beeca(0x106)](_0x5cb105,_0x423b65);if(!m[_0x2beeca(0x340)](_0xd72a22))throw _0xd72a22[_0x2beeca(0x33b)];const _0x1e3b42=_0xd72a22[_0x2beeca(0x360)][0x0][_0x2beeca(0x209)][_0x2beeca(0x2bb)];Array[_0x2beeca(0x2c6)](_0x1e3b42)&&_0x1e3b42[_0x2beeca(0x1bc)]&&_0x37fe77[_0x2beeca(0x11c)](_0x1e3b42,{'unitId':_0x565054,'subUnitId':_0x565054},!0x1);}};Z=Wt([Ne(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x4a9aaf(0x36e)],Xt=(_0x5090b3,_0x5a8d8b,_0x24065f,_0x45dd11)=>{const _0x245013=_0x4a9aaf;for(var _0x57198f=_0x45dd11>0x1?void 0x0:_0x45dd11?Vt(_0x5a8d8b,_0x24065f):_0x5a8d8b,_0x28c177=_0x5090b3[_0x245013(0x1bc)]-0x1,_0x49c47e;_0x28c177>=0x0;_0x28c177--)(_0x49c47e=_0x5090b3[_0x28c177])&&(_0x57198f=_0x49c47e(_0x57198f)||_0x57198f);return _0x57198f;},N=(_0x151259,_0x587f70)=>(_0x1e6430,_0x4d121e)=>_0x587f70(_0x1e6430,_0x4d121e,_0x151259);let Q=class extends a[_0x4a9aaf(0x149)]{constructor(_0x35d953,_0x3663fc,_0x2a97ff,_0x45230e,_0xa3bd72,_0x1a6e86,_0x54ce40,_0x592f80){const _0xb6f52d=_0x4a9aaf;super(),h(this,_0xb6f52d(0x2cb),new d[(_0xb6f52d(0x172))](u[_0xb6f52d(0x2be)][_0xb6f52d(0x33e)])),(this['_docStateChangeManagerService']=_0x35d953,this[_0xb6f52d(0x2a1)]=_0x3663fc,this[_0xb6f52d(0x2bc)]=_0x2a97ff,this['_docTransformStateCacheService']=_0x45230e,this['_docTransformSelectionsService']=_0xa3bd72,this[_0xb6f52d(0x159)]=_0x1a6e86,this[_0xb6f52d(0x134)]=_0x54ce40,this['_localeService']=_0x592f80,this[_0xb6f52d(0x388)]());}[_0x4a9aaf(0x388)](){const _0xb38e67=_0x4a9aaf;this[_0xb38e67(0x2db)](this[_0xb38e67(0x2a1)]['entityInit$']['subscribe'](_0x35dc8c=>{const _0x6537b3=_0xb38e67,_0x168805=this[_0x6537b3(0x1a7)][_0x6537b3(0x375)][_0x6537b3(0x251)](_0x34c534=>{const _0x363164=_0x6537b3;if(_0x34c534==null)return;const {unitId:_0x54db74,redoState:_0x1b5fd4,commandId:_0xe7485f}=_0x34c534;if(_0x54db74!==_0x35dc8c['unitID'])return;const _0x1bc52e={'id':_0xe7485f,'type':a[_0x363164(0x101)]['MUTATION'],'params':{'unitId':_0x54db74,'actions':_0x1b5fd4[_0x363164(0x257)],'textRanges':null}};_0x35dc8c[_0x363164(0x183)](_0x1bc52e);});if(_0x35dc8c['disposeWithMe'](_0x168805),_0x35dc8c instanceof u['DocCollaborationEntity']){const _0x38fb71={'onTransformIME':_0x2e1055=>this['_docTransformIMECacheService']['transformIMECache'](_0x2e1055),'onTransformState':_0x20bcaa=>this[_0x6537b3(0x284)][_0x6537b3(0x1e2)](_0x20bcaa),'onTransformSelections':_0x9723be=>this[_0x6537b3(0x312)]['transformSelections'](_0x9723be),'onSyncEditingCollabCursor':_0xd3b98f=>this[_0x6537b3(0x159)][_0x6537b3(0x15b)](_0xd3b98f),'onTransformRemoteChangesetByIMECache':_0x431099=>this[_0x6537b3(0x2bc)][_0x6537b3(0x135)](_0x431099),'onTransformRemoteChangesetByStateCache':_0x1c5194=>this[_0x6537b3(0x284)][_0x6537b3(0x135)](_0x1c5194)};_0x35dc8c['addHandlerCallback'](_0x38fb71);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0x4a9aaf(0x301)](u['CollaborationController'])),N(0x2,a[_0x4a9aaf(0x301)](z)),N(0x3,a[_0x4a9aaf(0x301)](J)),N(0x4,a[_0x4a9aaf(0x301)](Z)),N(0x5,a[_0x4a9aaf(0x301)](Ce)),N(0x6,T[_0x4a9aaf(0x2a4)]),N(0x7,a[_0x4a9aaf(0x301)](a['LocaleService']))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x2b10d4,_0x3ec25a,_0x12a5a9,_0x3b599c)=>{const _0x35e3df=_0x4a9aaf;for(var _0x4563bf=_0x3b599c>0x1?void 0x0:_0x3b599c?Gt(_0x3ec25a,_0x12a5a9):_0x3ec25a,_0x27ebad=_0x2b10d4[_0x35e3df(0x1bc)]-0x1,_0x2d67bd;_0x27ebad>=0x0;_0x27ebad--)(_0x2d67bd=_0x2b10d4[_0x27ebad])&&(_0x4563bf=_0x2d67bd(_0x4563bf)||_0x4563bf);return _0x4563bf;},_e=(_0x21d56f,_0x472676)=>(_0x5701ea,_0x291f2e)=>_0x472676(_0x5701ea,_0x291f2e,_0x21d56f);let ge=class extends a[_0x4a9aaf(0x149)]{constructor(_0x58cc65,_0x100c2d,_0x406c17){const _0x262be5=_0x4a9aaf;super(),h(this,_0x262be5(0x19d),new Map()),h(this,_0x262be5(0x2ac),new Map()),h(this,_0x262be5(0x2cf),!0x1),(this['_configService']=_0x58cc65,this[_0x262be5(0x1c3)]=_0x100c2d,this[_0x262be5(0x205)]=_0x406c17);}[_0x4a9aaf(0x247)](){this['_disabled']=!0x0;}[_0x4a9aaf(0x314)](){const _0x2d762d=_0x4a9aaf;this[_0x2d762d(0x2cf)]=!0x1;}get[_0x4a9aaf(0x1b0)](){const _0x3d0fc5=_0x4a9aaf;return this[_0x3d0fc5(0x2ac)];}[_0x4a9aaf(0x362)](){const _0x3823db=_0x4a9aaf;this[_0x3823db(0x286)]()[_0x3823db(0x38a)](()=>super['dispose']());}async['loadOfflineData'](_0x415007){const _0x17025b=_0x4a9aaf;return this[_0x17025b(0x2cf)]?null:this[_0x17025b(0x1c3)][_0x17025b(0x2c7)](u[_0x17025b(0x363)](_0x415007));}async['saveOfflineData'](_0xc5f27e,_0x4bc338){const _0x3b3d56=_0x4a9aaf;return!!this[_0x3b3d56(0x1c3)][_0x3b3d56(0x171)](_0xc5f27e,_0x4bc338);}[_0x4a9aaf(0x130)](_0x43b623,_0x112232,_0x3e62ba,_0x4803c3){const _0x402b5a=_0x4a9aaf,_0x351d11=this[_0x402b5a(0x205)][_0x402b5a(0x1bd)](_0x43b623);this[_0x402b5a(0x19d)]['set'](_0x43b623,{'unitID':_0x43b623,'type':_0x112232,'awaitingChangeset':_0x3e62ba,'mutations':_0x4803c3,'rev':_0x351d11}),this[_0x402b5a(0x2ac)][_0x402b5a(0x1d1)](_0x43b623)||this['_scheduleSaving'](_0x43b623);}[_0x4a9aaf(0x336)](_0x11f6cd){const _0x647d0f=_0x4a9aaf,_0x2bbf83=this[_0x647d0f(0x1f8)]();_0x2bbf83===0x0?this['_saveCache'](_0x11f6cd):this[_0x647d0f(0x2ac)][_0x647d0f(0x2b0)](_0x11f6cd,setTimeout(()=>this[_0x647d0f(0x35e)](_0x11f6cd),_0x2bbf83));}[_0x4a9aaf(0x1f8)](){const _0x3dcfc0=_0x4a9aaf;var _0x183f60;return(_0x183f60=this['_configService'][_0x3dcfc0(0x2dc)](u[_0x3dcfc0(0x14d)]))!=null?_0x183f60:u[_0x3dcfc0(0x37d)];}[_0x4a9aaf(0x35e)](_0x5b9cac){const _0xa98148=_0x4a9aaf,_0x17b830=this[_0xa98148(0x2ac)][_0xa98148(0x1ea)](_0x5b9cac);return _0x17b830!==void 0x0&&window[_0xa98148(0x368)](_0x17b830),this[_0xa98148(0x1c3)][_0xa98148(0x171)](u[_0xa98148(0x363)](_0x5b9cac),this[_0xa98148(0x19d)][_0xa98148(0x1ea)](_0x5b9cac))[_0xa98148(0x38a)](()=>this['_saveTaskMap'][_0xa98148(0x1f0)](_0x5b9cac));}async[_0x4a9aaf(0x286)](){const _0x1cc5c0=_0x4a9aaf,_0x5055a0=[];this[_0x1cc5c0(0x2ac)][_0x1cc5c0(0x2ad)]((_0x51a6aa,_0x70999d)=>{const _0x209124=_0x1cc5c0;window[_0x209124(0x368)](_0x51a6aa),_0x5055a0['push'](this[_0x209124(0x35e)](_0x70999d)['then'](()=>{const _0x1fb773=_0x209124;this[_0x1fb773(0x2ac)][_0x1fb773(0x1f0)](_0x70999d);}));}),await Promise[_0x1cc5c0(0x2ea)](_0x5055a0);}};ge=Kt([_e(0x0,a[_0x4a9aaf(0x2e3)]),_e(0x1,a[_0x4a9aaf(0x295)]),_e(0x2,a['Inject'](m[_0x4a9aaf(0x2e1)]))],ge);class je extends a[_0x4a9aaf(0x1dd)]{constructor(){const _0xaf5342=_0x4a9aaf;super(),h(this,_0xaf5342(0x2a5)),this[_0xaf5342(0x2a5)]=d[_0xaf5342(0x35f)](window,_0xaf5342(0x220))['pipe'](d[_0xaf5342(0x376)](this['dispose$']),d[_0xaf5342(0x1b2)](0x1),d[_0xaf5342(0x194)](void 0x0));}[_0x4a9aaf(0x294)](_0x43baf2,_0x5044e6,_0xede55b=!0x1){const _0x206177=_0x4a9aaf,_0x332356=new URL(window[_0x206177(0x19e)][_0x206177(0x319)]);_0x332356[_0x206177(0x24e)][_0x206177(0x2b0)](_0x43baf2,_0x5044e6),_0xede55b?window[_0x206177(0x34b)][_0x206177(0x1ba)]('','',_0x332356[_0x206177(0x385)]()):window['history']['pushState']('','',_0x332356[_0x206177(0x385)]());}[_0x4a9aaf(0x2d6)](_0x46bdd4,_0x1db732=!0x1){const _0x1f6d49=_0x4a9aaf,_0x315e93=new URL(window[_0x1f6d49(0x19e)][_0x1f6d49(0x319)]);_0x315e93[_0x1f6d49(0x24e)]['delete'](_0x46bdd4),_0x1db732?window[_0x1f6d49(0x34b)][_0x1f6d49(0x1ba)]('','',_0x315e93[_0x1f6d49(0x385)]()):window[_0x1f6d49(0x34b)][_0x1f6d49(0xf5)]('','',_0x315e93[_0x1f6d49(0x385)]());}['getParam'](_0x8e4e7){const _0x2f710f=_0x4a9aaf;var _0x9ced2c;return(_0x9ced2c=new URL(window[_0x2f710f(0x19e)]['href'])[_0x2f710f(0x24e)][_0x2f710f(0x1ea)](_0x8e4e7))!=null?_0x9ced2c:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x4a9aaf(0x36e)],Jt=(_0x3ab1f1,_0x5c223c,_0x50f863)=>_0x5c223c in _0x3ab1f1?qt(_0x3ab1f1,_0x5c223c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50f863}):_0x3ab1f1[_0x5c223c]=_0x50f863,Zt=(_0x5294fe,_0x46ea8b,_0x39502a,_0x38ddb7)=>{for(var _0x1dad1a=_0x38ddb7>0x1?void 0x0:_0x38ddb7?zt(_0x46ea8b,_0x39502a):_0x46ea8b,_0x2a0c4c=_0x5294fe['length']-0x1,_0x5ae870;_0x2a0c4c>=0x0;_0x2a0c4c--)(_0x5ae870=_0x5294fe[_0x2a0c4c])&&(_0x1dad1a=_0x5ae870(_0x1dad1a)||_0x1dad1a);return _0x1dad1a;},he=(_0xd30034,_0x156947)=>(_0x21dd77,_0x5e2f6f)=>_0x156947(_0x21dd77,_0x5e2f6f,_0xd30034),Qt=(_0x9c7d16,_0x40428d,_0x7c8d2b)=>Jt(_0x9c7d16,_0x40428d+'',_0x7c8d2b);const es=_0x4a9aaf(0x342);exports[_0x4a9aaf(0x2b2)]=class extends a['Plugin']{constructor(_0xd12b84=Ue,_0x1d2d13,_0x3c41e8,_0x32b103){const _0x4aec64=_0x4a9aaf;super(),this[_0x4aec64(0x160)]=_0xd12b84,this[_0x4aec64(0x24a)]=_0x1d2d13,this[_0x4aec64(0x372)]=_0x3c41e8,this['_configService']=_0x32b103;const {..._0x65293b}=a[_0x4aec64(0x2c0)]({},Ue,this[_0x4aec64(0x160)]);this[_0x4aec64(0x2f0)][_0x4aec64(0x2f6)]($t,_0x65293b);}[_0x4a9aaf(0x231)](){const _0x1ad0a8=_0x4a9aaf;this[_0x1ad0a8(0x215)](),this['_initDependencies']();}[_0x4a9aaf(0x25a)](){const _0x5b6b55=_0x4a9aaf;this[_0x5b6b55(0x140)]();}[_0x4a9aaf(0x215)](){const _0x39b92d=_0x4a9aaf;var _0x9051af;const _0x35c56b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x39b92d(0x186)],{'useClass':G[_0x39b92d(0x1cd)]}],[u[_0x39b92d(0x21b)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x39b92d(0x145)](this[_0x39b92d(0x372)],a['mergeOverrideWithDependencies'](_0x35c56b,(_0x9051af=this['_config'])==null?void 0x0:_0x9051af[_0x39b92d(0x332)]));}[_0x4a9aaf(0x140)](){const _0x22a4ab=_0x4a9aaf;this['disposeWithMe'](this['_renderManagerService'][_0x22a4ab(0x105)](a[_0x22a4ab(0x389)][_0x22a4ab(0xff)],[Ie])),this['disposeWithMe'](this['_renderManagerService'][_0x22a4ab(0x105)](a[_0x22a4ab(0x389)][_0x22a4ab(0x278)],[ve]));}[_0x4a9aaf(0x36d)](){const _0x91c5c3=_0x4a9aaf;a[_0x91c5c3(0x15f)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x91c5c3(0x191)]]]);}},Qt(exports[_0x4a9aaf(0x2b2)],_0x4a9aaf(0x20c),es),exports[_0x4a9aaf(0x2b2)]=Zt([a[_0x4a9aaf(0x31a)](u[_0x4a9aaf(0x13d)]),he(0x1,p[_0x4a9aaf(0x2c8)]),he(0x2,a[_0x4a9aaf(0x301)](a['Injector'])),he(0x3,a[_0x4a9aaf(0x2e3)])],exports[_0x4a9aaf(0x2b2)]);var ts=Object[_0x4a9aaf(0x36e)],ss=(_0x186fd3,_0x5a847e,_0x2a310a,_0x4b38f5)=>{const _0x34180c=_0x4a9aaf;for(var _0x20d111=_0x4b38f5>0x1?void 0x0:_0x4b38f5?ts(_0x5a847e,_0x2a310a):_0x5a847e,_0xc7a630=_0x186fd3[_0x34180c(0x1bc)]-0x1,_0x202665;_0xc7a630>=0x0;_0xc7a630--)(_0x202665=_0x186fd3[_0xc7a630])&&(_0x20d111=_0x202665(_0x20d111)||_0x20d111);return _0x20d111;},F=(_0xff7989,_0x130048)=>(_0x5e66ad,_0x5f2cbf)=>_0x130048(_0x5e66ad,_0x5f2cbf,_0xff7989);exports[_0x4a9aaf(0x374)]=class extends u[_0x4a9aaf(0x163)]{constructor(_0x29b987,_0x30a74f,_0x33bf65,_0x34317c,_0x908c8a){super(_0x29b987,_0x30a74f,_0x33bf65,_0x34317c,_0x908c8a);}async[_0x4a9aaf(0x109)](_0x44ecbe){const _0x3c4c3e=_0x4a9aaf,_0x2222ca=await this['_getSessionTicket'](),_0x48adb1=this[_0x3c4c3e(0x203)](_0x44ecbe,_0x2222ca);return this[_0x3c4c3e(0x13a)](_0x48adb1);}['_createSocketURL'](_0x2504a4,_0x240b8b){const _0x21eb9b=_0x4a9aaf,_0x4488a3=typeof window>'u'?new URL(_0x2504a4):new URL(_0x2504a4,window['location'][_0x21eb9b(0x29e)]);_0x4488a3[_0x21eb9b(0x24e)][_0x21eb9b(0x2b0)](_0x21eb9b(0x32f),_0x240b8b);const _0x3ed088=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x21eb9b(0x19e)][_0x21eb9b(0x2fa)]);return _0x3ed088['get'](_0x21eb9b(0x21f))&&_0x4488a3[_0x21eb9b(0x24e)][_0x21eb9b(0x2b0)](_0x21eb9b(0x21f),_0x3ed088[_0x21eb9b(0x1ea)](_0x21eb9b(0x21f))),_0x4488a3[_0x21eb9b(0x385)]();}async[_0x4a9aaf(0x26f)](){const _0x35f34f=_0x4a9aaf;var _0x92c5e0,_0x1ae1db,_0x41e618;const _0x5130b1=this[_0x35f34f(0x2f0)][_0x35f34f(0x2dc)](u[_0x35f34f(0x22c)]),_0x1a23c7=(_0x92c5e0=_0x5130b1==null?void 0x0:_0x5130b1[_0x35f34f(0x31d)])!=null?_0x92c5e0:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x41e618=(_0x1ae1db=(await this['_httpService'][_0x35f34f(0x1ea)](_0x1a23c7,{'headers':{'Content-Type':_0x35f34f(0x32b)}}))[_0x35f34f(0x2f9)])==null?void 0x0:_0x1ae1db[_0x35f34f(0x1bf)])!=null?_0x41e618:'';}},exports[_0x4a9aaf(0x374)]=ss([F(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),F(0x1,a[_0x4a9aaf(0x301)](G[_0x4a9aaf(0x1e5)])),F(0x2,a[_0x4a9aaf(0x2e3)]),F(0x3,a[_0x4a9aaf(0x296)]),F(0x4,m['ISnapshotServerService'])],exports[_0x4a9aaf(0x374)]);const Me=0x7530,Le=_0x4a9aaf(0x233);class is extends a['Disposable']{constructor(){const _0x2c319a=_0x4a9aaf;super(),h(this,_0x2c319a(0x20f),a[_0x2c319a(0x323)]()),h(this,_0x2c319a(0x1b9),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x2c319a(0x188),null),h(this,_0x2c319a(0x26b),new Map()),h(this,'_unitStatus',new Map()),this[_0x2c319a(0x123)]();}[_0x4a9aaf(0x362)](){const _0x2962b7=_0x4a9aaf;super[_0x2962b7(0x362)](),this[_0x2962b7(0x26b)][_0x2962b7(0x2ad)]((_0x1a22c4,_0x377675)=>this[_0x2962b7(0x33d)](_0x377675)),this[_0x2962b7(0x188)]&&window['clearInterval'](this[_0x2962b7(0x188)]);}['getUnitStatus$'](_0x138b41){const _0x5c7bf6=_0x4a9aaf;return this['_ensureSubject'](_0x138b41)[_0x5c7bf6(0x10b)](d[_0x5c7bf6(0x1fb)]());}[_0x4a9aaf(0x29b)](_0x54e517){const _0x2189b2=_0x4a9aaf;this[_0x2189b2(0x1b9)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x2189b2(0x1b9)][_0x2189b2(0x1ce)](_0x54e517),this['_send']({'type':0x0,'memberID':this[_0x2189b2(0x20f)],'unitIDs':[_0x54e517],'isForwarded':!0x1});}[_0x4a9aaf(0x218)](_0x313525){const _0x56f0c9=_0x4a9aaf;this['_selfUnitIDs'][_0x56f0c9(0x1f0)](_0x313525),this[_0x56f0c9(0x1b9)][_0x56f0c9(0x352)]===0x0&&this['_heartbeatTimer']&&window[_0x56f0c9(0x1f6)](this[_0x56f0c9(0x188)]);}['_init'](){const _0x446608=_0x4a9aaf;this[_0x446608(0x2db)](a[_0x446608(0x10a)](d[_0x446608(0x35f)](window,_0x446608(0x2bf))[_0x446608(0x251)](_0x34628d=>{const _0x4fbc3a=_0x446608;if(_0x34628d['key']!==Le||!_0x34628d[_0x4fbc3a(0x30d)])return;const _0x3f7f3e=JSON[_0x4fbc3a(0x2cd)](_0x34628d[_0x4fbc3a(0x30d)]);this[_0x4fbc3a(0x14c)](_0x3f7f3e);}))),window[_0x446608(0x290)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x446608(0x20f)],'unitIDs':Array[_0x446608(0x37e)](this[_0x446608(0x1b9)])}));}['_handleEvent'](_0x109e9d){const _0x1a4228=_0x4a9aaf;switch(_0x109e9d[_0x1a4228(0x103)]){case 0x0:this['_handleJoinEvent'](_0x109e9d);break;case 0x1:this[_0x1a4228(0x1eb)](_0x109e9d);break;case 0x2:this[_0x1a4228(0x2ba)](_0x109e9d);break;}}[_0x4a9aaf(0x1c0)](_0x19faa4){const _0x2cad94=_0x4a9aaf,{unitIDs:_0x3ad9b7,memberID:_0x468a4f,isForwarded:_0x4abcba}=_0x19faa4;_0x3ad9b7['forEach'](_0x4b8e11=>{const _0x1897ee=_0x7693;if(!_0x4abcba&&this[_0x1897ee(0x2b6)][_0x1897ee(0x1d1)](_0x4b8e11)&&this[_0x1897ee(0x317)](_0x4b8e11)['next'](u[_0x1897ee(0x1d5)][_0x1897ee(0x327)]),!this[_0x1897ee(0x2b6)][_0x1897ee(0x1d1)](_0x4b8e11)||!this[_0x1897ee(0x2b6)][_0x1897ee(0x1ea)](_0x4b8e11)[_0x1897ee(0x1d1)](_0x468a4f)){const _0x1135ed=this[_0x1897ee(0x2b6)][_0x1897ee(0x1ea)](_0x4b8e11)||new Set();_0x1135ed[_0x1897ee(0x1ce)](_0x468a4f),this[_0x1897ee(0x2b6)]['set'](_0x4b8e11,_0x1135ed),this[_0x1897ee(0x204)](_0x468a4f);}}),_0x4abcba||this[_0x2cad94(0x221)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4a9aaf(0x204)](_0x41b265){const _0x28660b=_0x4a9aaf;this['_removeClearOtherTimer'](_0x41b265);const _0xa13100=window['setTimeout'](()=>{const _0x5a0420=_0x7693;this[_0x5a0420(0x2b6)]['forEach'](_0x3bd41e=>{_0x3bd41e['delete'](_0x41b265);});},Me*0x2);this[_0x28660b(0x26b)][_0x28660b(0x2b0)](_0x41b265,_0xa13100);}['_removeClearOtherTimer'](_0x6d2ec1){const _0x245a21=_0x4a9aaf;if(this['_clearOtherTimers'][_0x245a21(0x1d1)](_0x6d2ec1)){const _0x4cc580=this[_0x245a21(0x26b)][_0x245a21(0x1ea)](_0x6d2ec1);_0x4cc580&&window[_0x245a21(0x368)](_0x4cc580),this[_0x245a21(0x26b)][_0x245a21(0x2b0)](_0x6d2ec1,null);}}[_0x4a9aaf(0x1eb)](_0x2c91c8){const _0x2b0973=_0x4a9aaf,{memberID:_0x143b78,unitIDs:_0x11b68b}=_0x2c91c8;_0x11b68b[_0x2b0973(0x2ad)](_0x43550e=>{const _0x30fb37=_0x2b0973;var _0x5c31ec;const _0x636cae=this[_0x30fb37(0x2b6)][_0x30fb37(0x1ea)](_0x43550e);_0x636cae&&(_0x636cae[_0x30fb37(0x1f0)](_0x143b78),(_0x5c31ec=this[_0x30fb37(0x317)](_0x43550e))==null||_0x5c31ec['next'](_0x636cae[_0x30fb37(0x352)]===0x0?u[_0x30fb37(0x1d5)][_0x30fb37(0x2b4)]:u[_0x30fb37(0x1d5)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x143b78);}[_0x4a9aaf(0x2ba)](_0x1a8cf3){this['_scheduleClearOtherTimer'](_0x1a8cf3['memberID']);}[_0x4a9aaf(0x221)](_0x5d6b56){const _0x30cc56=_0x4a9aaf;localStorage[_0x30cc56(0x171)](Le,JSON[_0x30cc56(0x117)](_0x5d6b56));}[_0x4a9aaf(0x22d)](){const _0x129859=_0x4a9aaf;this[_0x129859(0x188)]=window[_0x129859(0x2ca)](()=>{const _0x53ded0=_0x129859;this[_0x53ded0(0x221)]({'type':0x2,'memberID':this[_0x53ded0(0x20f)]});},Me);}[_0x4a9aaf(0x317)](_0xac4c44){const _0x54b0c5=_0x4a9aaf;return this['_unitStatus'][_0x54b0c5(0x1d1)](_0xac4c44)||this[_0x54b0c5(0x240)][_0x54b0c5(0x2b0)](_0xac4c44,new d[(_0x54b0c5(0x172))](u[_0x54b0c5(0x1d5)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x54b0c5(0x240)][_0x54b0c5(0x1ea)](_0xac4c44);}}var Be=(_0x3feece=>(_0x3feece[_0x3feece[_0x4a9aaf(0x308)]=0x0]=_0x4a9aaf(0x308),_0x3feece[_0x3feece['OK']=0x1]='OK',_0x3feece[_0x3feece[_0x4a9aaf(0x2dd)]=0x2]=_0x4a9aaf(0x2dd),_0x3feece[_0x3feece['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x3feece[_0x3feece[_0x4a9aaf(0x214)]=0x4]=_0x4a9aaf(0x214),_0x3feece[_0x3feece['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x3feece[_0x3feece['ALREADY_EXISTS']=0x6]=_0x4a9aaf(0x1f2),_0x3feece[_0x3feece[_0x4a9aaf(0x142)]=0x7]=_0x4a9aaf(0x142),_0x3feece[_0x3feece[_0x4a9aaf(0x31e)]=0x8]=_0x4a9aaf(0x31e),_0x3feece[_0x3feece[_0x4a9aaf(0x2f2)]=0x9]=_0x4a9aaf(0x2f2),_0x3feece[_0x3feece['LOGIN_FAILED']=0xa]=_0x4a9aaf(0x19a),_0x3feece[_0x3feece['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a9aaf(0x1da),_0x3feece[_0x3feece[_0x4a9aaf(0x16b)]=0x1771]=_0x4a9aaf(0x16b),_0x3feece[_0x3feece[_0x4a9aaf(0x1c6)]=0x1772]=_0x4a9aaf(0x1c6),_0x3feece[_0x3feece[_0x4a9aaf(0x212)]=0x1773]=_0x4a9aaf(0x212),_0x3feece[_0x3feece['APPLY_REJECT']=0x1b59]=_0x4a9aaf(0x1f1),_0x3feece[_0x3feece[_0x4a9aaf(0x274)]=0x1b5a]=_0x4a9aaf(0x274),_0x3feece[_0x3feece[_0x4a9aaf(0x115)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3feece[_0x3feece[_0x4a9aaf(0x107)]=0x1b5c]=_0x4a9aaf(0x107),_0x3feece[_0x3feece[_0x4a9aaf(0x1c5)]=0x1b5d]='APPLY_DUPLICATED',_0x3feece[_0x3feece['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4a9aaf(0x272),_0x3feece[_0x3feece[_0x4a9aaf(0x17b)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3feece[_0x3feece['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4a9aaf(0x297),_0x3feece[_0x3feece['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4a9aaf(0x136),_0x3feece[_0x3feece[_0x4a9aaf(0x282)]=0x232c]=_0x4a9aaf(0x282),_0x3feece[_0x3feece['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x3feece[_0x3feece['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4a9aaf(0x13c),_0x3feece[_0x3feece[_0x4a9aaf(0x1b3)]=0x2712]=_0x4a9aaf(0x1b3),_0x3feece[_0x3feece[_0x4a9aaf(0x377)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3feece[_0x3feece[_0x4a9aaf(0x27a)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3feece[_0x3feece[_0x4a9aaf(0x22a)]=0x271a]=_0x4a9aaf(0x22a),_0x3feece[_0x3feece[_0x4a9aaf(0x10e)]=0x271b]=_0x4a9aaf(0x10e),_0x3feece[_0x3feece['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4a9aaf(0x378),_0x3feece[_0x3feece[_0x4a9aaf(0x138)]=0x271d]=_0x4a9aaf(0x138),_0x3feece[_0x3feece[_0x4a9aaf(0x28e)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x3feece[_0x3feece[_0x4a9aaf(0x1cb)]=0x271f]=_0x4a9aaf(0x1cb),_0x3feece[_0x3feece['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a9aaf(0x122),_0x3feece[_0x3feece[_0x4a9aaf(0x1b7)]=0x2ee1]=_0x4a9aaf(0x1b7),_0x3feece[_0x3feece[_0x4a9aaf(0x349)]=0x2ee2]=_0x4a9aaf(0x349),_0x3feece[_0x3feece[_0x4a9aaf(0x2e9)]=0x2ee3]=_0x4a9aaf(0x2e9),_0x3feece[_0x3feece['USER_NOT_INVITED_CODE']=0x2ee4]=_0x4a9aaf(0x27d),_0x3feece[_0x3feece[_0x4a9aaf(0x255)]=0x2ee5]=_0x4a9aaf(0x255),_0x3feece[_0x3feece[_0x4a9aaf(0x1a6)]=0x32c9]=_0x4a9aaf(0x1a6),_0x3feece[_0x3feece[_0x4a9aaf(0x358)]=0x32ca]=_0x4a9aaf(0x358),_0x3feece[_0x3feece[_0x4a9aaf(0x2d8)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x3feece[_0x3feece[_0x4a9aaf(0x252)]=-0x1]=_0x4a9aaf(0x252),_0x3feece))(Be||{}),ns=Object[_0x4a9aaf(0x36e)],rs=(_0x38eb4a,_0x285e89,_0x15ebab,_0x241cc8)=>{const _0x137898=_0x4a9aaf;for(var _0xffad1f=_0x241cc8>0x1?void 0x0:_0x241cc8?ns(_0x285e89,_0x15ebab):_0x285e89,_0x5a5a09=_0x38eb4a[_0x137898(0x1bc)]-0x1,_0xd6f46d;_0x5a5a09>=0x0;_0x5a5a09--)(_0xd6f46d=_0x38eb4a[_0x5a5a09])&&(_0xffad1f=_0xd6f46d(_0xffad1f)||_0xffad1f);return _0xffad1f;},ue=(_0x42e57c,_0x57dbe8)=>(_0x4f0124,_0x3e802f)=>_0x57dbe8(_0x4f0124,_0x3e802f,_0x42e57c);exports[_0x4a9aaf(0x383)]=class extends a[_0x4a9aaf(0x149)]{constructor(_0x170096,_0x16ce67,_0x2a331e){const _0x62bcef=_0x4a9aaf;super(),this['_instanceService']=_0x170096,this[_0x62bcef(0x34c)]=_0x16ce67,this[_0x62bcef(0x2f0)]=_0x2a331e;}async['runOnServer'](_0x5a5242,_0x2eaef4,_0x4d0c91,..._0x3afc77){const _0x3e68c8=_0x4a9aaf;var _0x3be8b3,_0x5e9c70,_0x2f73dc,_0x1efaa7;const _0x4e7524=this['_instanceService']['getFocusedUnit']();if(!_0x4e7524)throw new Error(_0x3e68c8(0x249));const _0x1873c7=((_0x3be8b3=this[_0x3e68c8(0x2f0)][_0x3e68c8(0x2dc)](u[_0x3e68c8(0xf7)]))!=null?_0x3be8b3:u[_0x3e68c8(0x2b9)])+'/'+_0x5a5242+_0x3e68c8(0x292)+_0x2eaef4,_0x337799=new URL(window[_0x3e68c8(0x19e)][_0x3e68c8(0x319)]),_0x3a751b={'scriptId':_0x5a5242,'runId':(_0x5e9c70=_0x337799['searchParams'][_0x3e68c8(0x1ea)](_0x3e68c8(0x21f)))!=null?_0x5e9c70:'','function':_0x2eaef4,'unitId':_0x4e7524[_0x3e68c8(0x182)](),'argsOfFunction':JSON[_0x3e68c8(0x117)](_0x3afc77),'invokeId':(_0x2f73dc=_0x4d0c91[_0x3e68c8(0x28d)])!=null?_0x2f73dc:'','executionId':(_0x1efaa7=_0x4d0c91['executionId'])!=null?_0x1efaa7:''};try{const _0xa7b6e0=await this[_0x3e68c8(0x34c)][_0x3e68c8(0x305)](_0x1873c7,{'body':_0x3a751b});return _0xa7b6e0[_0x3e68c8(0x2f9)][_0x3e68c8(0x33b)]&&_0xa7b6e0[_0x3e68c8(0x2f9)][_0x3e68c8(0x33b)][_0x3e68c8(0x345)]!==Be['OK']?_0x3e68c8(0x1ad):_0xa7b6e0[_0x3e68c8(0x2f9)][_0x3e68c8(0x1ca)];}catch{return _0x3e68c8(0x1ad);}}},exports[_0x4a9aaf(0x383)]=rs([ue(0x0,a[_0x4a9aaf(0x216)]),ue(0x1,a[_0x4a9aaf(0x301)](G[_0x4a9aaf(0x1e5)])),ue(0x2,a[_0x4a9aaf(0x2e3)])],exports[_0x4a9aaf(0x383)]),exports[_0x4a9aaf(0x21a)]=xe,exports[_0x4a9aaf(0x1ee)]=be,exports[_0x4a9aaf(0x1c1)]=Pe,exports[_0x4a9aaf(0x37c)]=is,exports[_0x4a9aaf(0x127)]=je;