@univerjs-pro/collaboration-client 0.25.0 → 0.25.2
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1de16c=_0x3896;(function(_0x11be8d,_0x49e442){const _0x1fad69=_0x3896,_0x51ca26=_0x11be8d();while(!![]){try{const _0x1a2d2b=parseInt(_0x1fad69(0x276))/0x1+-parseInt(_0x1fad69(0x1d6))/0x2+-parseInt(_0x1fad69(0x13b))/0x3*(-parseInt(_0x1fad69(0x345))/0x4)+parseInt(_0x1fad69(0x304))/0x5+parseInt(_0x1fad69(0x323))/0x6+-parseInt(_0x1fad69(0x3b3))/0x7*(-parseInt(_0x1fad69(0x290))/0x8)+parseInt(_0x1fad69(0x17e))/0x9*(-parseInt(_0x1fad69(0x319))/0xa);if(_0x1a2d2b===_0x49e442)break;else _0x51ca26['push'](_0x51ca26['shift']());}catch(_0x101902){_0x51ca26['push'](_0x51ca26['shift']());}}}(_0x4f3f,0x567d8),Object[_0x1de16c(0x310)](exports,Symbol[_0x1de16c(0x2b2)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs/network'),l=require('@univerjs-pro/license'),u=require('@univerjs/drawing'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js');const p='ws://127.0.0.1:8000/universer-api/comb/connect',m=0x4e20;function ee(_0x3581ae){const _0x197530=_0x1de16c;return JSON[_0x197530(0x2d8)](_0x3581ae)[_0x197530(0x3c7)];}function h(_0x198375){'@babel/helpers - typeof';const _0x39b50b=_0x1de16c;return h=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x39b50b(0x1b3)?function(_0x4ef208){return typeof _0x4ef208;}:function(_0x5a162b){const _0x5c935e=_0x39b50b;return _0x5a162b&&typeof Symbol==_0x5c935e(0x31e)&&_0x5a162b[_0x5c935e(0x340)]===Symbol&&_0x5a162b!==Symbol['prototype']?_0x5c935e(0x1b3):typeof _0x5a162b;},h(_0x198375);}function te(_0x381074,_0x465623){const _0x4ccc24=_0x1de16c;if(h(_0x381074)!=_0x4ccc24(0x29f)||!_0x381074)return _0x381074;var _0x59407b=_0x381074[Symbol[_0x4ccc24(0x228)]];if(_0x59407b!==void 0x0){var _0x50a718=_0x59407b[_0x4ccc24(0x21c)](_0x381074,_0x465623||_0x4ccc24(0x1aa));if(h(_0x50a718)!=_0x4ccc24(0x29f))return _0x50a718;throw TypeError(_0x4ccc24(0x24c));}return(_0x465623===_0x4ccc24(0x239)?String:Number)(_0x381074);}function ne(_0x4c9768){const _0x2c3804=_0x1de16c;var _0x1076ee=te(_0x4c9768,_0x2c3804(0x239));return h(_0x1076ee)==_0x2c3804(0x1b3)?_0x1076ee:_0x1076ee+'';}function g(_0x237c9a,_0x5f5901,_0xa78bc8){const _0x1a697a=_0x1de16c;return(_0x5f5901=ne(_0x5f5901))in _0x237c9a?Object[_0x1a697a(0x310)](_0x237c9a,_0x5f5901,{'value':_0xa78bc8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x237c9a[_0x5f5901]=_0xa78bc8,_0x237c9a;}let re=function(_0x464dda){const _0x15f4c3=_0x1de16c;return _0x464dda[_0x15f4c3(0x3c6)]='OTHER_CLIENT_EDITING',_0x464dda['PERMISSION_DENIED']=_0x15f4c3(0x147),_0x464dda[_0x15f4c3(0x171)]=_0x15f4c3(0x171),_0x464dda['CLOSE_ROOM']='CLOSE_ROOM',_0x464dda[_0x15f4c3(0x21a)]=_0x15f4c3(0x21a),_0x464dda[_0x15f4c3(0x29a)]=_0x15f4c3(0x29a),_0x464dda[_0x15f4c3(0x1fa)]=_0x15f4c3(0x1fa),_0x464dda['SUBMIT_CHANGESET_TIMEOUT']=_0x15f4c3(0x2b3),_0x464dda;}({});var _=class{constructor(){const _0x16b318=_0x1de16c;g(this,'_event$',new i[(_0x16b318(0x3c5))]()),g(this,'event$',this[_0x16b318(0x3e5)]['asObservable']());}[_0x1de16c(0x262)](_0x1f8946){const _0x4ff7a4=_0x1de16c;this[_0x4ff7a4(0x3e5)][_0x4ff7a4(0x286)](_0x1f8946);}},ie=class{constructor(){const _0x55cbf6=_0x1de16c;g(this,_0x55cbf6(0x230),new i[(_0x55cbf6(0x3c5))]()),g(this,_0x55cbf6(0x2ff),this[_0x55cbf6(0x230)][_0x55cbf6(0x1ea)]());}[_0x1de16c(0x26e)](_0x2e5e27){const _0x788472=_0x1de16c;this['_commentUpdate$'][_0x788472(0x286)](_0x2e5e27);}};function v(_0x1a136c,_0x356cac){return function(_0x29faac,_0x40d199){_0x356cac(_0x29faac,_0x40d199,_0x1a136c);};}function y(_0xcd9312,_0x560e9e,_0x3573d8,_0x5d62c7){const _0x593fdd=_0x1de16c;var _0xcde944=arguments['length'],_0x45c2d6=_0xcde944<0x3?_0x560e9e:_0x5d62c7===null?_0x5d62c7=Object[_0x593fdd(0x3aa)](_0x560e9e,_0x3573d8):_0x5d62c7,_0x2925e2;if(typeof Reflect=='object'&&typeof Reflect[_0x593fdd(0x22e)]=='function')_0x45c2d6=Reflect[_0x593fdd(0x22e)](_0xcd9312,_0x560e9e,_0x3573d8,_0x5d62c7);else{for(var _0x4f64f6=_0xcd9312[_0x593fdd(0x3c7)]-0x1;_0x4f64f6>=0x0;_0x4f64f6--)(_0x2925e2=_0xcd9312[_0x4f64f6])&&(_0x45c2d6=(_0xcde944<0x3?_0x2925e2(_0x45c2d6):_0xcde944>0x3?_0x2925e2(_0x560e9e,_0x3573d8,_0x45c2d6):_0x2925e2(_0x560e9e,_0x3573d8))||_0x45c2d6);}return _0xcde944>0x3&&_0x45c2d6&&Object[_0x593fdd(0x310)](_0x560e9e,_0x3573d8,_0x45c2d6),_0x45c2d6;}let b=class extends t[_0x1de16c(0x1d2)]{constructor(_0x17460f,_0x2bd7bd){const _0x11e222=_0x1de16c;super(),this[_0x11e222(0x2a7)]=_0x17460f,this[_0x11e222(0x2fe)]=_0x2bd7bd,g(this,_0x11e222(0x2ae),new Map()),g(this,_0x11e222(0x225),new i[(_0x11e222(0x3c5))]()),this[_0x11e222(0x3b8)]((0x0,i['merge'])(this[_0x11e222(0x2a7)][_0x11e222(0x232)](t[_0x11e222(0x20a)]['UNIVER_SHEET'])[_0x11e222(0x200)]((0x0,s[_0x11e222(0x2fc)])(_0x3dc7a9=>_0x3dc7a9['getUnitId']())),this['_univerInstanceService'][_0x11e222(0x232)](t['UniverInstanceType'][_0x11e222(0x198)])[_0x11e222(0x200)]((0x0,s[_0x11e222(0x2fc)])(_0x4cbb3d=>_0x4cbb3d[_0x11e222(0x270)]())))['subscribe'](_0x4eb96c=>this[_0x11e222(0x35c)](_0x4eb96c)));}[_0x1de16c(0x1f4)](_0x58e1ca){const _0x4e3476=_0x1de16c;return this[_0x4e3476(0x2ae)]['has'](_0x58e1ca)?(0x0,i['of'])(this['_roomMembers'][_0x4e3476(0x373)](_0x58e1ca)):this[_0x4e3476(0x225)][_0x4e3476(0x200)]((0x0,s[_0x4e3476(0x2fc)])(_0x4f5fb4=>{const _0x2702ec=_0x4e3476;if(_0x4f5fb4===_0x58e1ca)return this[_0x2702ec(0x2ae)][_0x2702ec(0x373)](_0x4f5fb4);}));}['setCurrentUser'](_0x1514c0){const _0x4063b1=_0x1de16c;this[_0x4063b1(0x2fe)][_0x4063b1(0x178)](_0x1514c0);}[_0x1de16c(0x325)](){return this['_userManagerService']['getCurrentUser']();}[_0x1de16c(0x3dc)](_0x475dfe,_0xc461ad){const _0x32b6df=_0x1de16c;let _0x55be3d=this[_0x32b6df(0x2ae)][_0x32b6df(0x373)](_0x475dfe);_0x55be3d||(_0x55be3d=new ae(),this[_0x32b6df(0x2ae)][_0x32b6df(0x248)](_0x475dfe,_0x55be3d),this[_0x32b6df(0x225)][_0x32b6df(0x286)](_0x475dfe)),_0x55be3d[_0x32b6df(0x3dc)](_0xc461ad);}['removeMember'](_0x4e0166,_0xad7d41){const _0x35f0d=_0x1de16c;let _0x51ca7b=this['_roomMembers'][_0x35f0d(0x373)](_0x4e0166);_0x51ca7b&&_0x51ca7b[_0x35f0d(0x3ad)](_0xad7d41);}[_0x1de16c(0x138)](_0x577c94){const _0x206598=_0x1de16c;return this[_0x206598(0x2ae)]['get'](_0x577c94);}[_0x1de16c(0x269)](_0x487d55,_0x297282){const _0x1b4129=_0x1de16c;let _0x3d75d7=this['_roomMembers'][_0x1b4129(0x373)](_0x487d55);if(_0x3d75d7)return _0x3d75d7['getMember'](_0x297282);}[_0x1de16c(0x35c)](_0x5ab907){const _0x493b31=_0x1de16c;let _0x10fa23=this[_0x493b31(0x2ae)][_0x493b31(0x373)](_0x5ab907);_0x10fa23&&(_0x10fa23[_0x493b31(0x317)](),this[_0x493b31(0x2ae)][_0x493b31(0x1d7)](_0x5ab907));}[_0x1de16c(0x317)](){const _0x244735=_0x1de16c;this['_roomMembers'][_0x244735(0x2f3)](_0x4f863a=>_0x4f863a[_0x244735(0x317)]()),this[_0x244735(0x2ae)][_0x244735(0x12f)](),this[_0x244735(0x225)][_0x244735(0x183)]();}};b=y([v(0x0,t[_0x1de16c(0x1ca)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x13e)]))],b);var ae=class extends t[_0x1de16c(0x1d2)]{constructor(..._0x20cb0c){const _0x5ee2cc=_0x1de16c;super(..._0x20cb0c),g(this,_0x5ee2cc(0x1df),new Map()),g(this,'_members$',new i[(_0x5ee2cc(0x19f))](this[_0x5ee2cc(0x1df)])),g(this,_0x5ee2cc(0x18c),this[_0x5ee2cc(0x2b0)]['asObservable']());}[_0x1de16c(0x317)](){const _0x4d6408=_0x1de16c;this['_members']['clear'](),this[_0x4d6408(0x2b0)][_0x4d6408(0x183)]();}[_0x1de16c(0x3dc)](_0x82943d){const _0x20aae2=_0x1de16c;this[_0x20aae2(0x1df)][_0x20aae2(0x248)](_0x82943d[_0x20aae2(0x33e)],_0x82943d),this['_emitMembers']();}[_0x1de16c(0x3ad)](_0x5a034a){this['_members']['delete'](_0x5a034a),this['_emitMembers']();}[_0x1de16c(0x269)](_0x5c4359){const _0xeeab6b=_0x1de16c;return this[_0xeeab6b(0x1df)][_0xeeab6b(0x373)](_0x5c4359);}[_0x1de16c(0x363)](){const _0x37d3ac=_0x1de16c;return Array[_0x37d3ac(0x2a6)](this['_members'][_0x37d3ac(0x3f9)]());}[_0x1de16c(0x162)](){const _0x5ef064=_0x1de16c;this[_0x5ef064(0x2b0)]['next'](this['_members']);}};let oe=function(_0x598088){const _0xb878c=_0x1de16c;return _0x598088[_0x598088[_0xb878c(0x1b8)]=0x0]=_0xb878c(0x1b8),_0x598088[_0x598088[_0xb878c(0x12b)]=0x1]=_0xb878c(0x12b),_0x598088[_0x598088[_0xb878c(0x2d7)]=0x2]='OFFLINE',_0x598088[_0x598088[_0xb878c(0x28c)]=0x3]=_0xb878c(0x28c),_0x598088;}({});const se={[a[_0x1de16c(0x343)]['FAIL']]:_0x1de16c(0x1ad),[a[_0x1de16c(0x343)][_0x1de16c(0x209)]]:_0x1de16c(0x293),[a[_0x1de16c(0x343)][_0x1de16c(0x27e)]]:'session.room-not-exists',[a[_0x1de16c(0x343)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x1de16c(0x3fb),[a['CmdRspCode'][_0x1de16c(0x314)]]:_0x1de16c(0x3ef)};let x=class extends t[_0x1de16c(0x1f0)]{get[_0x1de16c(0x36b)](){return this['_sessionStatus$']['getValue']();}constructor(_0x3e6122,_0x524c0f,_0x25d906,_0x2cf5d9,_0x2649e4,_0x59819d,_0x552129,_0x2f483b){const _0x41fc44=_0x1de16c;super(),this[_0x41fc44(0x1d3)]=_0x3e6122,this['_logService']=_0x25d906,this[_0x41fc44(0x2aa)]=_0x2cf5d9,this['_memberService']=_0x2649e4,this['_commentService']=_0x59819d,this['_collaborationUIEventService']=_0x552129,this[_0x41fc44(0x19b)]=_0x2f483b,g(this,_0x41fc44(0x2af),new i[(_0x41fc44(0x19f))](0x0)),g(this,'sessionStatus$',this[_0x41fc44(0x2af)][_0x41fc44(0x1ea)]()),g(this,_0x41fc44(0x3e5),new i[(_0x41fc44(0x3c5))]()),g(this,_0x41fc44(0x201),this[_0x41fc44(0x3e5)][_0x41fc44(0x1ea)]()),g(this,_0x41fc44(0x260),void 0x0),g(this,_0x41fc44(0x21b),void 0x0),g(this,_0x41fc44(0x278),void 0x0),g(this,_0x41fc44(0x1cb),!0x1),g(this,_0x41fc44(0x22b),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x524c0f[_0x41fc44(0x200)]((0x0,i[_0x41fc44(0x3ba)])(this['dispose$']))[_0x41fc44(0x15c)](_0x52fce4=>{const _0x4020a7=_0x41fc44;if(_0x52fce4!==void 0x0){if(this[_0x4020a7(0x260)]=_0x52fce4,_0x52fce4)this['_joinRoom'](_0x52fce4),this[_0x4020a7(0x21b)]=_0x52fce4[_0x4020a7(0x252)][_0x4020a7(0x15c)](_0x5ae439=>{const _0x1e6c87=_0x4020a7;_0x5ae439[_0x1e6c87(0x3f8)]===this[_0x1e6c87(0x1d3)]&&this[_0x1e6c87(0x3fd)](_0x5ae439);});else{var _0x362cd0;this[_0x4020a7(0x161)](),this['_sessionStatus$']['next'](0x2),(_0x362cd0=this['_socketMessageSubscription'])==null||_0x362cd0['unsubscribe'](),this[_0x4020a7(0x21b)]=null;}}});}['getMemberID'](){const _0x11ea9a=_0x1de16c;var _0x3de1ca,_0xeaecc3;return(_0x3de1ca=(_0xeaecc3=this['_socket'])==null?void 0x0:_0xeaecc3[_0x11ea9a(0x33e)])==null?null:_0x3de1ca;}[_0x1de16c(0x317)](){const _0x105d6e=_0x1de16c;super[_0x105d6e(0x317)](),this['close'](),this['dispose$'][_0x105d6e(0x286)](),this['dispose$'][_0x105d6e(0x183)]();}[_0x1de16c(0x261)](){const _0x227b5a=_0x1de16c;var _0x2863c6,_0x202196;this[_0x227b5a(0x161)](),(_0x2863c6=this[_0x227b5a(0x260)])==null||_0x2863c6[_0x227b5a(0x2d5)]({'cmd':a['CombCmd'][_0x227b5a(0x2bd)],'data':{'roomID':this[_0x227b5a(0x1d3)]}}),(_0x202196=this[_0x227b5a(0x260)])==null||_0x202196[_0x227b5a(0x261)](),this['_event$'][_0x227b5a(0x183)](),this['_sessionStatus$']['complete']();}['_onCombEvent'](_0x294fb4){const _0x551700=_0x1de16c;_0x294fb4[_0x551700(0x2e6)]===a[_0x551700(0x3ae)]['JOIN']?this[_0x551700(0x134)](_0x294fb4):_0x294fb4['cmd']===a[_0x551700(0x3ae)]['RECV']&&this[_0x551700(0x39d)](_0x294fb4);}['_joinRoom'](_0x50fe6e){const _0x5af88b=_0x1de16c;this[_0x5af88b(0x2af)][_0x5af88b(0x286)](0x1),_0x50fe6e['send']({'cmd':a[_0x5af88b(0x3ae)][_0x5af88b(0x220)],'routeKey':this[_0x5af88b(0x1d3)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5af88b(0x1d3)]}]}});}['_onJoinRoomEvent'](_0xa98b47){const _0x5621c9=_0x1de16c;var _0x2731a7;if(_0xa98b47[_0x5621c9(0x308)]in se){this[_0x5621c9(0x3f4)][_0x5621c9(0x262)]({'id':'JOIN_ROOM_FAILED','data':se[_0xa98b47['code']]}),this[_0x5621c9(0x2af)][_0x5621c9(0x286)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x3f4ce6=(_0x2731a7=_0xa98b47[_0x5621c9(0x2d2)][_0x5621c9(0x1ac)][this[_0x5621c9(0x1d3)]])==null?void 0x0:_0x2731a7['members'];_0x3f4ce6&&_0x3f4ce6[_0x5621c9(0x2f3)](_0x53ce8c=>this[_0x5621c9(0x231)][_0x5621c9(0x3dc)](this[_0x5621c9(0x1d3)],_0x53ce8c));}[_0x1de16c(0x39d)](_0x570981){const _0x204baa=_0x1de16c;try{let _0x588df7=_0x570981[_0x204baa(0x2d2)];switch(_0x588df7['eventID']){case e[_0x204baa(0x255)]['USERS_ENTER']:this[_0x204baa(0x3df)](_0x588df7),this[_0x204baa(0x3e5)][_0x204baa(0x286)](_0x588df7);break;case e[_0x204baa(0x255)][_0x204baa(0x2dc)]:this['_onUserLeave'](_0x588df7),this[_0x204baa(0x3e5)][_0x204baa(0x286)](_0x588df7);break;case e[_0x204baa(0x255)]['CHANGESET_ACK']:case e['CollaborationEvent'][_0x204baa(0x18b)]:this[_0x204baa(0x1a3)](),this[_0x204baa(0x3d4)](),this[_0x204baa(0x3e5)][_0x204baa(0x286)](_0x588df7);break;case e[_0x204baa(0x255)][_0x204baa(0x3f2)]:this[_0x204baa(0x30d)][_0x204baa(0x1e3)](_0x204baa(0x150)+JSON[_0x204baa(0x2d8)](_0x588df7)),this['_event$']['next'](_0x588df7);break;case e['CollaborationEvent'][_0x204baa(0x1e7)]:this['_commentService']['onCommentUpdate'](_0x588df7['data']),this['_event$']['next'](_0x588df7);break;default:this['_event$']['next'](_0x588df7);}}catch(_0x3dd0cc){this['_logService'][_0x204baa(0x1e3)](_0x3dd0cc,_0x570981);}}['_onUserJoin'](_0x56d6cc){const _0x33136a=_0x1de16c;this[_0x33136a(0x231)][_0x33136a(0x3dc)](this[_0x33136a(0x1d3)],_0x56d6cc[_0x33136a(0x2d2)]);}['_onUserLeave'](_0x5c7828){const _0x16e60a=_0x1de16c;this[_0x16e60a(0x231)][_0x16e60a(0x3ad)](this[_0x16e60a(0x1d3)],_0x5c7828['data'][_0x16e60a(0x33e)]);}async[_0x1de16c(0x2d5)](_0x5734cb,_0x2a2ebd){const _0xa21978=_0x1de16c;if(this[_0xa21978(0x36b)]!==0x3||!this[_0xa21978(0x260)])throw Error(_0xa21978(0x27b));try{_0x5734cb[_0xa21978(0x26d)]===e[_0xa21978(0x255)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x5734cb)),this[_0xa21978(0x260)]['send']({'cmd':a[_0xa21978(0x3ae)][_0xa21978(0x212)],'routeKey':_0x2a2ebd,'routeType':'','data':_0x5734cb});}catch(_0x8b4417){this[_0xa21978(0x30d)][_0xa21978(0x1e3)](_0x8b4417);}}[_0x1de16c(0x22f)](){const _0x4226c4=_0x1de16c;var _0x131d83;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x51ed25=_0x3896;this['_collaborationTimeoutTimer']=null,this[_0x51ed25(0x3f4)][_0x51ed25(0x262)]({'id':_0x51ed25(0x2b3)});},(_0x131d83=this[_0x4226c4(0x2aa)]['getConfig']('HEARTBEAT_TIMEOUT'))==null?m:_0x131d83);}[_0x1de16c(0x3d4)](){const _0x32c64e=_0x1de16c;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x32c64e(0x278)]),this['_collaborationTimeoutTimer']=null);}[_0x1de16c(0x2a5)](_0x92635a){const _0x2cbc3c=_0x1de16c;if(!this[_0x2cbc3c(0x1cb)])return;let {data:_0x345954}=_0x92635a,{unitID:_0x2c6fc7,changeset:_0x275745}=_0x345954,{mutations:_0x2f670b,type:_0x226f3a}=_0x275745;this['_telemetryInfo']={'unitId':_0x2c6fc7,'type':_0x226f3a,'startTime':performance[_0x2cbc3c(0x322)](),'stopTime':0x0,'duration':0x0,'size':ee(_0x2f670b)};}[_0x1de16c(0x1a3)](){const _0x37139d=_0x1de16c;if(this[_0x37139d(0x1cb)]){if(!this[_0x37139d(0x22b)]){this[_0x37139d(0x30d)][_0x37139d(0x1e3)](_0x37139d(0x12e),_0x37139d(0x289));return;}this[_0x37139d(0x22b)][_0x37139d(0x1ab)]=performance[_0x37139d(0x322)](),this[_0x37139d(0x22b)]['duration']=this[_0x37139d(0x22b)][_0x37139d(0x1ab)]-this['_telemetryInfo'][_0x37139d(0x148)],this[_0x37139d(0x19b)]['capture']('collaboration_new_changeset',this[_0x37139d(0x22b)]),this[_0x37139d(0x22b)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};function _0x3896(_0x263bc3,_0x35d897){_0x263bc3=_0x263bc3-0x127;const _0x4f3fac=_0x4f3f();let _0x389663=_0x4f3fac[_0x263bc3];return _0x389663;}x=y([v(0x2,t[_0x1de16c(0x243)]),v(0x3,t[_0x1de16c(0x3cb)]),v(0x4,(0x0,t[_0x1de16c(0x20f)])(b)),v(0x5,(0x0,t[_0x1de16c(0x20f)])(ie)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x1de16c(0x37e)])(o[_0x1de16c(0x379)]))],x);const S=(0x0,t[_0x1de16c(0x26b)])(_0x1de16c(0x172));function ce(_0x284af6){return'unit-cache-'+_0x284af6;}function le(_0xeee939){const _0x1f377d=_0x1de16c;let {unitID:_0x4ebc25,mutations:_0x17ac59}=_0xeee939;return{'unitId':_0x4ebc25,'subUnitId':_0x17ac59[_0x1f377d(0x3c7)]>0x0?_0x17ac59[0x0]['params'][_0x1f377d(0x206)]:null};}let C=class{constructor(_0x274586,_0x39bf48,_0x3a3c15){const _0x399cf3=_0x1de16c;this[_0x399cf3(0x16d)]=_0x274586,this[_0x399cf3(0x226)]=_0x39bf48,this[_0x399cf3(0x330)]=_0x3a3c15;}[_0x1de16c(0x3ea)](_0x39a27e){const _0x13bad7=_0x1de16c;var _0xd5d5a0,_0x15c22c;let _0x6dc447=this['_injector'][_0x13bad7(0x373)](r[_0x13bad7(0x3cc)]),{unitId:_0x4e21ed,subUnitId:_0x4bc997}=le(_0x39a27e),_0x135ff0=_0x6dc447==null?void 0x0:_0x6dc447['getWorkbookSelections'](_0x4e21ed)['getCurrentSelections'](),_0x32adf0=(_0xd5d5a0=this[_0x13bad7(0x330)][_0x13bad7(0x309)](_0x4e21ed))==null||(_0xd5d5a0=_0xd5d5a0[_0x13bad7(0x388)]())==null?void 0x0:_0xd5d5a0['getSheetId']();if(_0x135ff0[_0x13bad7(0x3c7)]===0x0||!_0x4e21ed||!_0x4bc997)return;let _0xe94348=[{'id':r[_0x13bad7(0x17f)]['id'],'params':{'unitId':_0x4e21ed,'subUnitId':_0x32adf0,'selections':t[_0x13bad7(0x20e)][_0x13bad7(0x273)](_0x135ff0)}}],_0x58e226=this[_0x13bad7(0x226)][_0x13bad7(0x307)](_0x39a27e,_0xe94348);if(!(0x0,e[_0x13bad7(0x2f1)])(_0x58e226))throw _0x58e226['error'];let _0x1c54c8=(_0x15c22c=_0x58e226[_0x13bad7(0x249)][0x0])==null||(_0x15c22c=_0x15c22c[_0x13bad7(0x3ce)])==null?void 0x0:_0x15c22c[_0x13bad7(0x190)];if(Array['isArray'](_0x1c54c8)&&_0x1c54c8[_0x13bad7(0x3c7)]){if(_0x1c54c8[_0x13bad7(0x3c7)]===_0xe94348[0x0]['params'][_0x13bad7(0x190)][_0x13bad7(0x3c7)]&&_0x1c54c8[_0x13bad7(0x2ea)]((_0x3658b3,_0x2412e9)=>t['Rectangle'][_0x13bad7(0x3b0)](_0x3658b3['range'],_0xe94348[0x0][_0x13bad7(0x3ce)]['selections'][_0x2412e9][_0x13bad7(0x292)])))return;this[_0x13bad7(0x16d)][_0x13bad7(0x373)](t[_0x13bad7(0x2a8)])['executeCommand'](r[_0x13bad7(0x17f)]['id'],{'unitId':_0x4e21ed,'subUnitId':_0x32adf0,'selections':_0x1c54c8});}}};C=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x1,e[_0x1de16c(0x13c)]),v(0x2,t[_0x1de16c(0x1ca)])],C);const w=(0x0,t[_0x1de16c(0x26b)])(_0x1de16c(0x159));let ue=function(_0x384e3e){const _0x3e6140=_0x1de16c;return _0x384e3e[_0x384e3e['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x384e3e[_0x384e3e[_0x3e6140(0x3e3)]=0x1]=_0x3e6140(0x3e3),_0x384e3e;}({});const T=_0x1de16c(0x2dd),de={};function fe(_0x423e95){const _0x11e1ab=_0x1de16c;var _0x16b4f0;return!!((_0x16b4f0=_0x423e95[_0x11e1ab(0x3ce)])!=null&&_0x16b4f0[_0x11e1ab(0x3a0)]);}const pe=new Set([r[_0x1de16c(0x2c3)]['id']]);function me(_0xd84832,_0x126d11,_0x31281d,_0x542616,_0x3f896f){const _0x159fef=_0x1de16c;var _0x5ad98b,_0x4d9fe,_0x49e87d,_0x2d9b00;let _0x1e9d9c=[];for(let _0x20c977 of _0xd84832){if(pe[_0x159fef(0x1c7)](_0x20c977['id'])){if(_0x1e9d9c[_0x159fef(0x3c7)]>0x0)break;_0x1e9d9c[_0x159fef(0x186)](_0x20c977);break;}if(fe(_0x20c977)){if(_0x1e9d9c[_0x159fef(0x3c7)]>0x0)break;_0x1e9d9c[_0x159fef(0x186)](_0x20c977);break;}_0x1e9d9c['push'](_0x20c977);}let _0x2b38b3=(_0x5ad98b=(_0x4d9fe=_0x3f896f[_0x159fef(0x325)]())==null?void 0x0:_0x4d9fe[_0x159fef(0x237)])==null?_0x159fef(0x1a7):_0x5ad98b,_0x39fdd5=(_0x49e87d=(_0x2d9b00=_0x3f896f['getCurrentUser']())==null?void 0x0:_0x2d9b00[_0x159fef(0x33e)])==null?'unknown':_0x49e87d;return{'changeset':{'unitID':_0x126d11,'type':(0x0,e[_0x159fef(0x194)])(_0x31281d['getUnitType'](_0x126d11)),'baseRev':_0x542616[_0x159fef(0x295)](_0x126d11),'revision':0x0,'userID':_0x2b38b3,'memberID':_0x39fdd5,'mutations':_0x1e9d9c},'pendingMutations':_0xd84832[_0x159fef(0x381)](_0x1e9d9c['length'])};}function he(_0x31332c,_0x22a126,_0x202929,_0x3a6cf4,_0x17afc5){const _0x5862d6=_0x1de16c;var _0x570c47,_0x28e898,_0x36bd1c,_0x2b99e6;let _0x1e60cd=_0x31332c[_0x5862d6(0x3ee)]((_0x3b7a52,_0x5ed8fa)=>{const _0x2e8d4e=_0x5862d6;let _0x10c2dd=_0x3b7a52[_0x3b7a52[_0x2e8d4e(0x3c7)]-0x1],{id:_0x5d38c5}=_0x10c2dd==null?{}:_0x10c2dd,{id:_0x29f7ab,type:_0x1c4c07}=_0x5ed8fa,_0x5df15a=_0x5ed8fa['params'];if(_0x5d38c5&&_0x5d38c5!==_0x29f7ab)throw Error(_0x2e8d4e(0x321)+_0x5d38c5+_0x2e8d4e(0x189)+_0x29f7ab+'.');if(!_0x10c2dd)return[{'id':_0x29f7ab,'type':_0x1c4c07,'params':{'unitId':_0x5df15a[_0x2e8d4e(0x2c9)],'textRanges':_0x5df15a['textRanges'],'actions':_0x5df15a[_0x2e8d4e(0x17c)]}}];let _0x3717e1=_0x10c2dd['params'];return ge(_0x3717e1[_0x2e8d4e(0x17c)],_0x5df15a[_0x2e8d4e(0x17c)])?[..._0x3b7a52[_0x2e8d4e(0x381)](0x0,-0x1),{..._0x10c2dd,'id':_0x29f7ab,'type':_0x1c4c07,'params':{'unitId':_0x5df15a[_0x2e8d4e(0x2c9)],'textRanges':_0x5df15a[_0x2e8d4e(0x12d)],'actions':t[_0x2e8d4e(0x1bf)][_0x2e8d4e(0x2ab)](_0x3717e1[_0x2e8d4e(0x17c)],_0x5df15a[_0x2e8d4e(0x17c)])}}]:[..._0x3b7a52,{'id':_0x29f7ab,'type':_0x1c4c07,'params':{'unitId':_0x5df15a['unitId'],'textRanges':_0x5df15a[_0x2e8d4e(0x12d)],'actions':_0x5df15a['actions']}}];},[]),_0x261b12=(_0x570c47=(_0x28e898=_0x17afc5[_0x5862d6(0x325)]())==null?void 0x0:_0x28e898[_0x5862d6(0x237)])==null?_0x5862d6(0x1a7):_0x570c47,_0x569100=(_0x36bd1c=(_0x2b99e6=_0x17afc5[_0x5862d6(0x325)]())==null?void 0x0:_0x2b99e6[_0x5862d6(0x33e)])==null?_0x5862d6(0x1a7):_0x36bd1c;return{'changeset':{'unitID':_0x22a126,'type':(0x0,e[_0x5862d6(0x194)])(_0x202929[_0x5862d6(0x3c9)](_0x22a126)),'baseRev':_0x3a6cf4[_0x5862d6(0x295)](_0x22a126),'revision':0x0,'userID':_0x261b12,'memberID':_0x569100,'mutations':_0x1e60cd},'pendingMutations':_0x31332c[_0x5862d6(0x381)](_0x31332c[_0x5862d6(0x3c7)])};}function ge(_0x2583c3,_0x59307d){return!(_e(_0x2583c3)&&ve(_0x59307d)||ve(_0x2583c3)&&_e(_0x59307d));}function _e(_0x2cb178){const _0x51cfc4=_0x1de16c;return ye(_0x2cb178)[_0x51cfc4(0x3c2)](_0x3928ec=>be(_0x3928ec)&&_0x3928ec['et']===_0x51cfc4(0x1e2));}function ve(_0xfd6ede){const _0x1f82dd=_0x1de16c;return ye(_0xfd6ede)['some'](_0x453d8a=>Array['isArray'](_0x453d8a)||typeof _0x453d8a==_0x1f82dd(0x239)||typeof _0x453d8a==_0x1f82dd(0x272));}function ye(_0x213039){const _0x48d2fd=_0x1de16c;if(!Array[_0x48d2fd(0x3db)](_0x213039))return[];let _0x113c52=_0x213039[_0x48d2fd(0x39f)](_0x48d2fd(0x401))?_0x213039:_0x213039[_0x48d2fd(0x38b)](_0x892d6b=>Array[_0x48d2fd(0x3db)](_0x892d6b)&&_0x892d6b[_0x48d2fd(0x39f)]('body'));if(!Array['isArray'](_0x113c52))return[];let _0x12032b=_0x113c52[_0x48d2fd(0x21d)](_0x48d2fd(0x401));return _0x12032b===-0x1?[]:_0x113c52['slice'](_0x12032b+0x1);}function be(_0x5216f8){const _0x22fbd2=_0x1de16c;return typeof _0x5216f8=='object'&&!!_0x5216f8&&!Array[_0x22fbd2(0x3db)](_0x5216f8);}function xe(_0x37e729,_0x1170d2){const _0x36f75d=_0x1de16c;let _0x1ab6b0=new i[(_0x36f75d(0x1b7))](0x1);return setTimeout(()=>_0x1ab6b0[_0x36f75d(0x286)](_0x1170d2),_0x37e729),_0x1ab6b0[_0x36f75d(0x1ea)]()[_0x36f75d(0x200)]((0x0,i[_0x36f75d(0x2ed)])(0x1));}var E,D,O;let Se=function(_0x465441){const _0x5275fd=_0x1de16c;return _0x465441[_0x5275fd(0x257)]=_0x5275fd(0x3e0),_0x465441[_0x5275fd(0x2f8)]='synced',_0x465441[_0x5275fd(0x360)]='pending',_0x465441[_0x5275fd(0x29c)]=_0x5275fd(0x197),_0x465441[_0x5275fd(0x3e1)]=_0x5275fd(0x355),_0x465441['FETCH_MISS']=_0x5275fd(0x3f5),_0x465441[_0x5275fd(0x171)]=_0x5275fd(0x326),_0x465441[_0x5275fd(0x2d7)]=_0x5275fd(0x2fa),_0x465441;}({});const Ce=0x4e20,we=0x2bf20;var k=class{constructor(_0xd4940,_0x180084,_0x341e7c,_0x373261,_0x518d08,_0x4f330a,_0x1d477c,_0x567da8,_0xf57098){const _0x1bcdeb=_0x1de16c;this[_0x1bcdeb(0x378)]=_0xd4940,this[_0x1bcdeb(0x1a0)]=_0x180084,this['_handler']=_0x518d08,this['_commandService']=_0x4f330a,this[_0x1bcdeb(0x217)]=_0x1d477c,this[_0x1bcdeb(0x20b)]=_0x567da8,this[_0x1bcdeb(0x2e1)]=_0xf57098,g(this,'_awaitingChangeset',null),g(this,_0x1bcdeb(0x256),[]),this[_0x1bcdeb(0x1c3)]=_0x341e7c,this[_0x1bcdeb(0x256)]=_0x373261;}[_0x1de16c(0x402)](_0x592ae6){const _0x45fc79=_0x1de16c;let _0x27feb6=this[_0x45fc79(0x20b)][_0x45fc79(0x295)](this['unitID']);return _0x592ae6[_0x45fc79(0x3be)]>_0x27feb6+0x1?(this['_handler']['onMissingChangesets']({'from':_0x27feb6,'to':_0x592ae6[_0x45fc79(0x3be)]-0x1}),!0x0):!0x1;}[_0x1de16c(0x139)](_0x3754c0){const _0x2d1260=_0x1de16c;this[_0x2d1260(0x217)][_0x2d1260(0x2e9)](this[_0x2d1260(0x378)],_0x3754c0);}[_0x1de16c(0x2f4)](_0x1f6f86){const _0x149142=_0x1de16c;var _0x1afcb3,_0x50166f;(_0x1afcb3=(_0x50166f=this[_0x149142(0x36f)])[_0x149142(0x2cc)])==null||_0x1afcb3['call'](_0x50166f,_0x1f6f86);}['_transformIMECache'](_0x6f8484){const _0x4c3485=_0x1de16c;var _0x5f4c76,_0xedaabd;return(_0x5f4c76=(_0xedaabd=this[_0x4c3485(0x36f)])[_0x4c3485(0x364)])==null?void 0x0:_0x5f4c76[_0x4c3485(0x21c)](_0xedaabd,_0x6f8484);}[_0x1de16c(0x335)](_0x141c36){const _0x82c903=_0x1de16c;var _0x3538b5,_0x1173d6;return(_0x3538b5=(_0x1173d6=this[_0x82c903(0x36f)])[_0x82c903(0x32d)])==null?void 0x0:_0x3538b5[_0x82c903(0x21c)](_0x1173d6,_0x141c36);}[_0x1de16c(0x18a)](_0x7cb79f){const _0x4f8a8e=_0x1de16c;var _0x4e2263,_0x214732,_0x4f11c0;return(_0x4e2263=(_0x214732=(_0x4f11c0=this[_0x4f8a8e(0x36f)])[_0x4f8a8e(0x1d4)])==null?void 0x0:_0x214732[_0x4f8a8e(0x21c)](_0x4f11c0,_0x7cb79f))==null?_0x7cb79f:_0x4e2263;}[_0x1de16c(0x356)](_0x1b8d10){const _0x278ac8=_0x1de16c;var _0x1c93ca,_0x11cff4,_0x3d56c3;return(_0x1c93ca=(_0x11cff4=(_0x3d56c3=this[_0x278ac8(0x36f)])[_0x278ac8(0x3d8)])==null?void 0x0:_0x11cff4['call'](_0x3d56c3,_0x1b8d10))==null?_0x1b8d10:_0x1c93ca;}[_0x1de16c(0x140)](_0x5182fa){const _0x225c42=_0x1de16c;if(this[_0x225c42(0x1a0)]===t['UniverInstanceType'][_0x225c42(0x198)]){let {unitID:_0x13a47f,mutations:_0x414819,memberID:_0x19eed3}=_0x5182fa,_0x3c15ff=_0x414819['length']>0x0?_0x414819[0x0][_0x225c42(0x3ce)]['textRanges']:[];if(Array[_0x225c42(0x3db)](_0x3c15ff)&&_0x3c15ff[_0x225c42(0x3c7)]>0x0){var _0x429c2d,_0x20249b;(_0x429c2d=(_0x20249b=this[_0x225c42(0x36f)])['onSyncEditingCollabCursor'])==null||_0x429c2d[_0x225c42(0x21c)](_0x20249b,{'unitID':_0x13a47f,'memberID':_0x19eed3,'textRanges':_0x3c15ff});}}}[_0x1de16c(0x394)](){const _0x476c41=_0x1de16c;var _0x1a7334;(_0x1a7334=this[_0x476c41(0x2e1)])==null||_0x1a7334[_0x476c41(0x152)](this[_0x476c41(0x378)],this[_0x476c41(0x1a0)],this[_0x476c41(0x1c3)],this['_pendingMutations']);}[_0x1de16c(0x170)](){const _0x2f952d=_0x1de16c;return this['_revisionService'][_0x2f952d(0x295)](this[_0x2f952d(0x378)]);}[_0x1de16c(0x3a3)](){this['_revisionService']['incrementRevOfUnit'](this['unitID']);}[_0x1de16c(0x1f3)](_0x1acdf1){const _0x5bcc46=_0x1de16c;let _0x2204ca=this['_transformRemoteChangesetByIMECache'](_0x1acdf1);_0x2204ca=this[_0x5bcc46(0x356)](_0x2204ca);let _0x500c36=(0x0,t['sequenceExecute'])(_0x2204ca[_0x5bcc46(0x13f)],this[_0x5bcc46(0x3ab)],{'fromCollab':!0x0});if(!_0x500c36['result']){var _0x52567b;throw _0x500c36[_0x5bcc46(0x1e3)]instanceof Error?_0x500c36[_0x5bcc46(0x1e3)]:Error((_0x52567b=_0x500c36[_0x5bcc46(0x1e3)])==null?_0x5bcc46(0x131):_0x52567b);}this[_0x5bcc46(0x1d1)](_0x2204ca),this[_0x5bcc46(0x335)](_0x2204ca),this[_0x5bcc46(0x139)](_0x1acdf1),this[_0x5bcc46(0x2f4)](_0x2204ca),this['_syncEditingCollabCursor'](_0x2204ca),this[_0x5bcc46(0x3a3)]();}};let A=class extends k{constructor(_0x4d70a4,_0xea0274,_0x229c49,_0x1ea1af,_0x1280b3,_0x1309d0,_0x4255a5,_0x5cf209,_0xbe04c5,_0x41eef2){const _0x34ec9e=_0x1de16c;super(_0x4d70a4,_0xea0274,null,[],_0x229c49,_0x4255a5,_0x1309d0,_0x1ea1af,_0x41eef2),this['_injector']=_0x1280b3,this[_0x34ec9e(0x30d)]=_0x5cf209,this['_transformService']=_0xbe04c5,this[_0x34ec9e(0x30c)]=_0x41eef2,g(this,_0x34ec9e(0x218),_0x34ec9e(0x31c));}[_0x1de16c(0x21e)](_0x35769c){const _0xd8b379=_0x1de16c;let _0x2d1592=this[_0xd8b379(0x16d)][_0xd8b379(0x215)](j,this['unitID'],this[_0xd8b379(0x1a0)],[_0x35769c],this['_handler']);return _0x2d1592[_0xd8b379(0x35e)](),_0x2d1592[_0xd8b379(0x394)](),_0x2d1592;}['onRemoteChangeset'](_0x5f448f){const _0x2fe15b=_0x1de16c;if(this['_checkMissing'](_0x5f448f))return this[_0x2fe15b(0x16d)][_0x2fe15b(0x215)](I,this[_0x2fe15b(0x378)],this[_0x2fe15b(0x1a0)],null,[],null,[_0x5f448f],this['_handler']);try{let _0x3ece6e=this[_0x2fe15b(0x226)][_0x2fe15b(0x307)](_0x5f448f,[e[_0x2fe15b(0x247)]]);if((0x0,e[_0x2fe15b(0x2f1)])(_0x3ece6e)){let {c1Prime:_0x15cd3e}=_0x3ece6e;return this[_0x2fe15b(0x1f3)](_0x15cd3e),this;}throw _0x3ece6e['error'];}catch(_0x2db83e){return this['_logService'][_0x2fe15b(0x1e3)](_0x2db83e),this['_onConflict'](!0x1);}}['_onConflict'](_0x4bcb27){const _0x396337=_0x1de16c;return this[_0x396337(0x16d)][_0x396337(0x215)](P,this['unitID'],this[_0x396337(0x1a0)],null,[],this[_0x396337(0x36f)],_0x4bcb27);}[_0x1de16c(0x2ca)](_0x4c35fd){const _0x3308a6=_0x1de16c;if(_0x4c35fd[_0x3308a6(0x3be)]<=this[_0x3308a6(0x170)]())return this;throw Error(_0x3308a6(0x332));}['onRemoteRej'](){const _0x2efb93=_0x1de16c;throw Error(_0x2efb93(0x386));}[_0x1de16c(0x28f)](){return this;}['toggleOffline'](){const _0x4aeac5=_0x1de16c;return this[_0x4aeac5(0x16d)]['createInstance'](F,this['unitID'],this['type'],null,[],this[_0x4aeac5(0x36f)]);}[_0x1de16c(0x127)](){return this;}[_0x1de16c(0x1be)](){const _0x5a3c90=_0x1de16c;throw Error(_0x5a3c90(0x32c));}[_0x1de16c(0x14e)](){const _0x3bfc55=_0x1de16c;let _0x53dfe3=this[_0x3bfc55(0x20b)][_0x3bfc55(0x295)](this['unitID']);return this[_0x3bfc55(0x36f)][_0x3bfc55(0x3da)]({'from':_0x53dfe3,'to':0x0}),this[_0x3bfc55(0x16d)]['createInstance'](I,this[_0x3bfc55(0x378)],this[_0x3bfc55(0x1a0)],null,[],null,[],this[_0x3bfc55(0x36f)]);}};A=y([v(0x3,(0x0,t['Inject'])(e[_0x1de16c(0x2eb)])),v(0x4,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x1de16c(0x2a8)]),v(0x7,t[_0x1de16c(0x243)]),v(0x8,e[_0x1de16c(0x13c)]),v(0x9,(0x0,t[_0x1de16c(0x37e)])(S))],A);let j=E=class extends k{constructor(_0x4a5514,_0x1e7c4e,_0x4c1f03,_0x4edd4f,_0x112fc3,_0x3b5c92,_0x4432f1,_0x538ecf,_0x2ece2b,_0x1c746e,_0x3b6415,_0x496782,_0x55e9a2,_0x253813){const _0x234d39=_0x1de16c;super(_0x4a5514,_0x1e7c4e,null,_0x4c1f03,_0x4edd4f,_0x2ece2b,_0x55e9a2,_0x3b5c92,_0x253813),this['_injector']=_0x112fc3,this[_0x234d39(0x231)]=_0x4432f1,this[_0x234d39(0x30d)]=_0x538ecf,this[_0x234d39(0x2aa)]=_0x1c746e,this[_0x234d39(0x226)]=_0x3b6415,this['_univerInstanceService']=_0x496782,g(this,_0x234d39(0x218),_0x234d39(0x375)),g(this,_0x234d39(0x271),null),g(this,_0x234d39(0x366),null);}['appendMutation'](_0x15d359){const _0x9e4c45=_0x1de16c;return this[_0x9e4c45(0x256)][_0x9e4c45(0x186)](_0x15d359),this['_updateLocalCache'](),this;}[_0x1de16c(0x2e0)](_0x25145b){const _0x14b2b7=_0x1de16c;if(this[_0x14b2b7(0x402)](_0x25145b))return this[_0x14b2b7(0x338)](),this[_0x14b2b7(0x16d)][_0x14b2b7(0x215)](I,this[_0x14b2b7(0x378)],this['type'],null,this[_0x14b2b7(0x256)],null,[_0x25145b],this['_handler']);try{let _0x2b54fe=this[_0x14b2b7(0x226)][_0x14b2b7(0x307)](_0x25145b,this['_pendingMutations']);if((0x0,e[_0x14b2b7(0x2f1)])(_0x2b54fe)){let {c1Prime:_0x1ab778,m2Prime:_0x179d64}=_0x2b54fe;this[_0x14b2b7(0x1f3)](_0x1ab778);let _0x21aede=this['_injector'][_0x14b2b7(0x215)](E,this[_0x14b2b7(0x378)],this[_0x14b2b7(0x1a0)],_0x179d64,this[_0x14b2b7(0x36f)]);this[_0x14b2b7(0x338)]();let _0x4e2661=new Date()[_0x14b2b7(0x3f6)](),_0x7e7b18=this[_0x14b2b7(0x271)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x4e2661,0x0):this[_0x14b2b7(0x3c4)]();return _0x21aede[_0x14b2b7(0x35e)](_0x7e7b18),_0x21aede;}throw _0x2b54fe[_0x14b2b7(0x1e3)];}catch(_0x254188){return this[_0x14b2b7(0x30d)][_0x14b2b7(0x1e3)](_0x254188),this[_0x14b2b7(0x369)](!0x1);}}['onRemoteAck'](_0x5069f8){const _0x9df6c8=_0x1de16c;if(_0x5069f8['revision']<=this[_0x9df6c8(0x170)]())return this;throw Error(_0x9df6c8(0x2f7));}[_0x1de16c(0x3a5)](){const _0x250c7a=_0x1de16c;throw Error(_0x250c7a(0x2e2));}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){const _0x5698fc=_0x1de16c;return this[_0x5698fc(0x338)](),this['_injector'][_0x5698fc(0x215)](F,this[_0x5698fc(0x378)],this[_0x5698fc(0x1a0)],null,this[_0x5698fc(0x256)],this['_handler']);}['toggleOnline'](){return this;}['_schedule'](_0x52b9bb){const _0x4bf15f=_0x1de16c;let _0x374b9d=_0x52b9bb==null?this[_0x4bf15f(0x3c4)]():_0x52b9bb;this[_0x4bf15f(0x271)]=new Date()['getTime']()+_0x374b9d,this[_0x4bf15f(0x366)]=setTimeout(()=>{const _0x329055=_0x4bf15f;this[_0x329055(0x338)]();let _0x1dc146=null;switch(this[_0x329055(0x1a0)]){case t[_0x329055(0x20a)]['UNIVER_SHEET']:_0x1dc146=me(this[_0x329055(0x256)],this[_0x329055(0x378)],this[_0x329055(0x2a7)],this[_0x329055(0x20b)],this[_0x329055(0x231)]);break;case t[_0x329055(0x20a)][_0x329055(0x198)]:_0x1dc146=this[_0x329055(0x256)][_0x329055(0x2ea)](_0x12b053=>_0x12b053['id']===n[_0x329055(0x142)]['id'])?he(this[_0x329055(0x256)],this[_0x329055(0x378)],this['_univerInstanceService'],this['_revisionService'],this[_0x329055(0x231)]):me(this['_pendingMutations'],this[_0x329055(0x378)],this['_univerInstanceService'],this[_0x329055(0x20b)],this[_0x329055(0x231)]);break;default:throw Error(_0x329055(0x39a)+this['type']+_0x329055(0x30a));}let {changeset:_0x1e3e7d,pendingMutations:_0x541163}=_0x1dc146;this[_0x329055(0x36f)]['onSendChangeset'](_0x1e3e7d);let _0x4dca21=_0x541163[_0x329055(0x3c7)]?this['_injector'][_0x329055(0x215)](N,this['unitID'],this[_0x329055(0x1a0)],_0x1e3e7d,_0x541163,this[_0x329055(0x36f)],void 0x0):this[_0x329055(0x16d)][_0x329055(0x215)](M,this[_0x329055(0x378)],this[_0x329055(0x1a0)],_0x1e3e7d,this[_0x329055(0x36f)]);_0x4dca21[_0x329055(0x394)](),this[_0x329055(0x36f)][_0x329055(0x135)](this,_0x4dca21);},_0x374b9d);}[_0x1de16c(0x3c4)](){const _0x394457=_0x1de16c;var _0x223151;let _0x3b9c22=this[_0x394457(0x2aa)][_0x394457(0x26a)](T);return(_0x223151=_0x3b9c22==null?void 0x0:_0x3b9c22['sendChangesetTimeout'])==null?0x7d0:_0x223151;}[_0x1de16c(0x1be)](){const _0x3236f5=_0x1de16c;throw Error(_0x3236f5(0x213));}['_clearScheduledTask'](){const _0x335eca=_0x1de16c;this[_0x335eca(0x366)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x335eca(0x366)]=null);}['_onConflict'](_0x1a331f){const _0x38c0f4=_0x1de16c;return this[_0x38c0f4(0x338)](),this[_0x38c0f4(0x16d)][_0x38c0f4(0x215)](P,this[_0x38c0f4(0x378)],this[_0x38c0f4(0x1a0)],null,this[_0x38c0f4(0x256)],this[_0x38c0f4(0x36f)],_0x1a331f);}};j=E=y([v(0x4,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x5,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x6,(0x0,t['Inject'])(b)),v(0x7,t[_0x1de16c(0x243)]),v(0x8,t['ICommandService']),v(0x9,t['IConfigService']),v(0xa,e[_0x1de16c(0x13c)]),v(0xb,t[_0x1de16c(0x1ca)]),v(0xc,t[_0x1de16c(0x374)]),v(0xd,(0x0,t['Optional'])(S))],j);let M=D=class extends k{constructor(_0x4072bc,_0x99185a,_0x3afdb0,_0x7bf4dc,_0x35c678,_0x5e4ef2,_0x42e823,_0x19a858,_0x5d9d39,_0x26dd95,_0x354101){const _0x4370ed=_0x1de16c;super(_0x4072bc,_0x99185a,_0x3afdb0,[],_0x7bf4dc,_0x42e823,_0x26dd95,_0x5e4ef2,_0x354101),this[_0x4370ed(0x16d)]=_0x35c678,this[_0x4370ed(0x30d)]=_0x19a858,this[_0x4370ed(0x226)]=_0x5d9d39,g(this,_0x4370ed(0x218),'awaiting'),g(this,_0x4370ed(0x1eb),0x0),g(this,_0x4370ed(0x39e),0x0),g(this,_0x4370ed(0x3a8),void 0x0),g(this,_0x4370ed(0x22a),void 0x0);}['appendMutation'](_0xd5f9a){const _0x42d9e8=_0x1de16c;this[_0x42d9e8(0x338)]();let _0x522233=this[_0x42d9e8(0x16d)][_0x42d9e8(0x215)](N,this[_0x42d9e8(0x378)],this[_0x42d9e8(0x1a0)],this[_0x42d9e8(0x1c3)],[_0xd5f9a],this[_0x42d9e8(0x36f)],this[_0x42d9e8(0x3a8)]);return _0x522233[_0x42d9e8(0x394)](),_0x522233;}[_0x1de16c(0x2e0)](_0x1861f6){const _0x385d21=_0x1de16c;if(this['_checkMissing'](_0x1861f6))return this[_0x385d21(0x338)](),this[_0x385d21(0x16d)][_0x385d21(0x215)](I,this[_0x385d21(0x378)],this[_0x385d21(0x1a0)],this[_0x385d21(0x1c3)],[],null,[_0x1861f6],this[_0x385d21(0x36f)]);try{let _0x39cdd2=this['_transformService'][_0x385d21(0x34d)]([_0x1861f6],[this[_0x385d21(0x1c3)]],!0x1);if((0x0,e[_0x385d21(0x20c)])(_0x39cdd2)){let {c1Prime:_0x131417,c2Prime:_0x2a584a}=_0x39cdd2;this['_executeRemoteChangeset'](_0x131417[0x0]),_0x2a584a[0x0][_0x385d21(0x336)]=this[_0x385d21(0x170)](),this[_0x385d21(0x338)]();let _0x7f60bf=this[_0x385d21(0x16d)]['createInstance'](D,this[_0x385d21(0x378)],this[_0x385d21(0x1a0)],_0x2a584a[0x0],this['_handler']);return _0x7f60bf[_0x385d21(0x394)](),_0x7f60bf;}throw _0x39cdd2[_0x385d21(0x1e3)];}catch(_0x4342ed){return this[_0x385d21(0x30d)]['error'](_0x4342ed),this[_0x385d21(0x369)](!0x1);}}[_0x1de16c(0x2ca)](_0x5234b8){const _0x5df9fa=_0x1de16c;this[_0x5df9fa(0x338)]();let _0x230a80=this[_0x5df9fa(0x20b)][_0x5df9fa(0x295)](this[_0x5df9fa(0x378)]);if(_0x5234b8[_0x5df9fa(0x3be)]<=_0x230a80)return this;if(this[_0x5df9fa(0x402)](_0x5234b8))return this[_0x5df9fa(0x16d)][_0x5df9fa(0x215)](I,this[_0x5df9fa(0x378)],this[_0x5df9fa(0x1a0)],this[_0x5df9fa(0x1c3)],[],_0x5234b8[_0x5df9fa(0x3be)],[],this[_0x5df9fa(0x36f)]);this[_0x5df9fa(0x3a3)]();let _0x17fb24=this[_0x5df9fa(0x16d)][_0x5df9fa(0x215)](A,this[_0x5df9fa(0x378)],this[_0x5df9fa(0x1a0)],this['_handler']);return _0x17fb24['_updateLocalCache'](),_0x17fb24;}[_0x1de16c(0x3a5)](_0xdc1b30){const _0x5de53d=_0x1de16c;return this['_onConflict'](!!(_0xdc1b30!=null&&_0xdc1b30[_0x5de53d(0x3e2)]));}[_0x1de16c(0x28f)](_0x50ec03){const _0x189e0a=_0x1de16c;return this['_maxTotalRetryTimeout']>we?this[_0x189e0a(0x315)]():(this[_0x189e0a(0x3a8)]=xe(this[_0x189e0a(0x1eb)],{'timeout':this[_0x189e0a(0x1eb)],'reqId':_0x50ec03[_0x189e0a(0x163)]}),this[_0x189e0a(0x22a)]=this[_0x189e0a(0x3a8)][_0x189e0a(0x15c)](({reqId:_0xf8516c,timeout:_0x175435})=>{this['_resendWithTimeout'](_0xf8516c,_0x175435);}),this);}[_0x1de16c(0x315)](){const _0x2c05df=_0x1de16c;return this[_0x2c05df(0x338)](),this[_0x2c05df(0x16d)]['createInstance'](F,this[_0x2c05df(0x378)],this[_0x2c05df(0x1a0)],this['_awaitingChangeset'],[],this[_0x2c05df(0x36f)]);}['toggleOnline'](){return this;}[_0x1de16c(0x1be)](){const _0x558022=_0x1de16c;this['_handler']['onSendChangeset'](this[_0x558022(0x1c3)]);}[_0x1de16c(0x369)](_0x65bf39){const _0x476678=_0x1de16c;return this[_0x476678(0x338)](),this[_0x476678(0x16d)][_0x476678(0x215)](P,this[_0x476678(0x378)],this[_0x476678(0x1a0)],this[_0x476678(0x1c3)],[],this[_0x476678(0x36f)],_0x65bf39);}[_0x1de16c(0x16c)](_0x2aa40a,_0x1a2370){const _0x1687ad=_0x1de16c;var _0x5181c6;_0x2aa40a===((_0x5181c6=this[_0x1687ad(0x1c3)])==null?void 0x0:_0x5181c6[_0x1687ad(0x163)])&&(this[_0x1687ad(0x1be)](),this[_0x1687ad(0x1eb)]=_0x1a2370===0x0?0x3e8:Math[_0x1687ad(0x34b)](_0x1a2370*0x2,Ce),this['_maxTotalRetryTimeout']+=this[_0x1687ad(0x1eb)]);}[_0x1de16c(0x338)](){const _0x1c0b6b=_0x1de16c;var _0x2abe7e;(_0x2abe7e=this[_0x1c0b6b(0x22a)])==null||_0x2abe7e[_0x1c0b6b(0x21f)](),this[_0x1c0b6b(0x1eb)]=0x0,this[_0x1c0b6b(0x39e)]=0x0;}};M=D=y([v(0x4,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x5,(0x0,t['Inject'])(e[_0x1de16c(0x2eb)])),v(0x6,t[_0x1de16c(0x2a8)]),v(0x7,t['ILogService']),v(0x8,e[_0x1de16c(0x13c)]),v(0x9,t[_0x1de16c(0x374)]),v(0xa,(0x0,t['Optional'])(S))],M);let N=O=class extends k{constructor(_0x332984,_0x3d556b,_0x994c7e,_0xa1621d,_0x596df2,_0x1fa8e6,_0x4bdf9c,_0x1fac70,_0x4ecbf6,_0x259592,_0x4e2247,_0x57b1c2,_0x332d03){const _0x204c1a=_0x1de16c;super(_0x332984,_0x3d556b,_0x994c7e,_0xa1621d,_0x596df2,_0x4ecbf6,_0x57b1c2,_0x1fac70,_0x332d03),this[_0x204c1a(0x16d)]=_0x4bdf9c,this[_0x204c1a(0x30d)]=_0x259592,this[_0x204c1a(0x226)]=_0x4e2247,this[_0x204c1a(0x30c)]=_0x332d03,g(this,_0x204c1a(0x218),_0x204c1a(0x355)),g(this,_0x204c1a(0x1eb),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x204c1a(0x3a8),void 0x0),g(this,'_sender',void 0x0),_0x1fa8e6&&(this[_0x204c1a(0x3a8)]=_0x1fa8e6,this['_sender']=this[_0x204c1a(0x3a8)][_0x204c1a(0x15c)](({reqId:_0x2d2ae4,timeout:_0x53c089})=>{const _0x47b334=_0x204c1a;this[_0x47b334(0x16c)](_0x2d2ae4,_0x53c089);}));}['appendMutation'](_0x299400){const _0x33031d=_0x1de16c;return this[_0x33031d(0x256)]['push'](_0x299400),this;}[_0x1de16c(0x2e0)](_0x1150fa){const _0x2f8d3c=_0x1de16c;if(this[_0x2f8d3c(0x402)](_0x1150fa))return this['_clearScheduledTask'](),this['_injector']['createInstance'](I,this[_0x2f8d3c(0x378)],this[_0x2f8d3c(0x1a0)],this[_0x2f8d3c(0x1c3)],this['_pendingMutations'],null,[_0x1150fa],this[_0x2f8d3c(0x36f)]);try{let _0x323c9d=this['_transformService']['transformChangesets']([_0x1150fa],[this[_0x2f8d3c(0x1c3)]],!0x1);if((0x0,e[_0x2f8d3c(0x20c)])(_0x323c9d)){let {c1Prime:_0x19dfcb,c2Prime:_0x3b595e}=_0x323c9d,_0x1ef9e7=this[_0x2f8d3c(0x226)][_0x2f8d3c(0x307)](_0x19dfcb[0x0],this[_0x2f8d3c(0x256)]);if((0x0,e[_0x2f8d3c(0x2f1)])(_0x1ef9e7)){let {c1Prime:_0x437c70,m2Prime:_0x35131d}=_0x1ef9e7;return this[_0x2f8d3c(0x1f3)](_0x437c70),_0x3b595e[0x0][_0x2f8d3c(0x336)]=this[_0x2f8d3c(0x170)](),this[_0x2f8d3c(0x338)](),this[_0x2f8d3c(0x16d)][_0x2f8d3c(0x215)](O,this[_0x2f8d3c(0x378)],this[_0x2f8d3c(0x1a0)],_0x3b595e[0x0],_0x35131d,this['_handler'],void 0x0);}throw _0x1ef9e7['error'];}throw _0x323c9d[_0x2f8d3c(0x1e3)];}catch(_0x7e89fd){return this[_0x2f8d3c(0x30d)]['error'](_0x7e89fd),this[_0x2f8d3c(0x369)](!0x1);}}['onRemoteAck'](_0x3ecc3d){const _0x120e45=_0x1de16c;this[_0x120e45(0x338)]();let _0x1cb73a=this[_0x120e45(0x170)]();if(_0x3ecc3d['revision']<=_0x1cb73a)return this;if(this[_0x120e45(0x402)](_0x3ecc3d))return this['_injector'][_0x120e45(0x215)](I,this[_0x120e45(0x378)],this[_0x120e45(0x1a0)],this[_0x120e45(0x1c3)],this[_0x120e45(0x256)],_0x3ecc3d[_0x120e45(0x3be)],[],this[_0x120e45(0x36f)]);this[_0x120e45(0x3a3)]();let _0x49fadd=this[_0x120e45(0x16d)]['createInstance'](j,this[_0x120e45(0x378)],this[_0x120e45(0x1a0)],this[_0x120e45(0x256)],this[_0x120e45(0x36f)]);return _0x49fadd[_0x120e45(0x35e)](),_0x49fadd[_0x120e45(0x394)](),_0x49fadd;}['onRemoteRej'](_0x140d9c){const _0x1d3119=_0x1de16c;return this[_0x1d3119(0x369)](!!(_0x140d9c!=null&&_0x140d9c[_0x1d3119(0x3e2)]));}[_0x1de16c(0x28f)](_0x4e1150){const _0x289916=_0x1de16c;return this[_0x289916(0x39e)]>we?this[_0x289916(0x315)]():(this[_0x289916(0x3a8)]=xe(this[_0x289916(0x1eb)],{'timeout':this[_0x289916(0x1eb)],'reqId':_0x4e1150[_0x289916(0x163)]}),this[_0x289916(0x22a)]=this[_0x289916(0x3a8)][_0x289916(0x15c)](({reqId:_0x2ac1a6,timeout:_0x5d6af8})=>{this['_resendWithTimeout'](_0x2ac1a6,_0x5d6af8);}),this);}[_0x1de16c(0x315)](){const _0x7dc3f0=_0x1de16c;return this[_0x7dc3f0(0x338)](),this[_0x7dc3f0(0x16d)][_0x7dc3f0(0x215)](F,this['unitID'],this[_0x7dc3f0(0x1a0)],this[_0x7dc3f0(0x1c3)],this['_pendingMutations'],this[_0x7dc3f0(0x36f)]);}[_0x1de16c(0x127)](){return this;}['resend'](){const _0x479daf=_0x1de16c;this['_handler'][_0x479daf(0x219)](this['_awaitingChangeset']);}[_0x1de16c(0x369)](_0x11f474){const _0x15ec88=_0x1de16c;return this[_0x15ec88(0x338)](),this[_0x15ec88(0x16d)]['createInstance'](P,this[_0x15ec88(0x378)],this[_0x15ec88(0x1a0)],null,this[_0x15ec88(0x256)],this[_0x15ec88(0x36f)],_0x11f474);}[_0x1de16c(0x16c)](_0xdf29b4,_0x8aedd8){const _0x5e36fa=_0x1de16c;var _0x38356a;_0xdf29b4===((_0x38356a=this[_0x5e36fa(0x1c3)])==null?void 0x0:_0x38356a[_0x5e36fa(0x163)])&&(this[_0x5e36fa(0x1be)](),this[_0x5e36fa(0x1eb)]=_0x8aedd8===0x0?0x3e8:Math['min'](_0x8aedd8*0x2,Ce),this[_0x5e36fa(0x39e)]+=this[_0x5e36fa(0x1eb)]);}[_0x1de16c(0x338)](){const _0x1194e9=_0x1de16c;var _0x43dd66;(_0x43dd66=this['_sender'])==null||_0x43dd66[_0x1194e9(0x21f)](),this[_0x1194e9(0x1eb)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};N=O=y([v(0x6,(0x0,t['Inject'])(t[_0x1de16c(0x25d)])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x8,t[_0x1de16c(0x2a8)]),v(0x9,t[_0x1de16c(0x243)]),v(0xa,e['ITransformService']),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x1de16c(0x37e)])(S))],N);let P=class extends k{constructor(_0x377909,_0x4e3d56,_0x4d0348,_0x317747,_0xc067ac,_0x12d490=!0x1,_0x5d90a2,_0x5ad27c,_0x47e6f3,_0x45425e,_0x4dd96f,_0x1a7ab3,_0x40b1ec){const _0x4c5d37=_0x1de16c;super(_0x377909,_0x4e3d56,_0x4d0348,_0x317747,_0xc067ac,_0x5ad27c,_0x47e6f3,_0x45425e,_0x40b1ec),this[_0x4c5d37(0x16f)]=_0x12d490,this[_0x4c5d37(0x2c5)]=_0x5d90a2,this[_0x4c5d37(0x3ff)]=_0x4dd96f,this['_collaborationUIEventService']=_0x1a7ab3,this[_0x4c5d37(0x30c)]=_0x40b1ec,g(this,_0x4c5d37(0x218),_0x4c5d37(0x326)),this[_0x4c5d37(0x1f6)](),this['_clearLocalCache'](),this[_0x4c5d37(0x407)]();}[_0x1de16c(0x21e)](){return this;}[_0x1de16c(0x2e0)](){return this;}[_0x1de16c(0x2ca)](){return this;}['onRemoteRej'](){return this;}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){return this;}[_0x1de16c(0x127)](){return this;}[_0x1de16c(0x1be)](){const _0x536b4f=_0x1de16c;throw Error(_0x536b4f(0x387));}[_0x1de16c(0x266)](){const _0x53d2d1=_0x1de16c;var _0x497395;(_0x497395=this[_0x53d2d1(0x2e1)])==null||_0x497395[_0x53d2d1(0x152)](this[_0x53d2d1(0x378)],this[_0x53d2d1(0x1a0)],null,[]);}[_0x1de16c(0x1f6)](){const _0x49d0e8=_0x1de16c;this[_0x49d0e8(0x16f)]?this[_0x49d0e8(0x3f4)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x49d0e8(0x3f4)][_0x49d0e8(0x262)]({'id':_0x49d0e8(0x171)});}[_0x1de16c(0x407)](){const _0x5b2ab3=_0x1de16c;this[_0x5b2ab3(0x2c5)]['updatePermissionPoint'](new r[(_0x5b2ab3(0x316))](this[_0x5b2ab3(0x378)])['id'],!0x1);}};P=y([v(0x6,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x3e7)])),v(0x7,t[_0x1de16c(0x2a8)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0xa,(0x0,t['Inject'])(t[_0x1de16c(0x297)])),v(0xb,(0x0,t[_0x1de16c(0x20f)])(_)),v(0xc,(0x0,t['Optional'])(S))],P);let F=class extends k{constructor(_0x3368b8,_0x13fced,_0x3c569e,_0xa75bf7,_0x2525f6,_0x351f61,_0x3a777e,_0x593c98,_0x83a10f,_0x1c4209){const _0x25d7ed=_0x1de16c;super(_0x3368b8,_0x13fced,_0x3c569e,_0xa75bf7,_0x2525f6,_0x593c98,_0x83a10f,_0x3a777e,_0x1c4209),this['_injector']=_0x351f61,g(this,_0x25d7ed(0x218),_0x25d7ed(0x2fa));}[_0x1de16c(0x21e)](_0x6743e1){const _0x3f6b20=_0x1de16c;return this[_0x3f6b20(0x256)][_0x3f6b20(0x186)](_0x6743e1),this[_0x3f6b20(0x394)](),this;}[_0x1de16c(0x2e0)](_0x25b1b9){const _0x121130=_0x1de16c;throw Error(_0x121130(0x34f));}['onRemoteAck'](){const _0x3bab05=_0x1de16c;throw Error(_0x3bab05(0x37a));}[_0x1de16c(0x3a5)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){return this;}[_0x1de16c(0x127)](){const _0x2e8a64=_0x1de16c;let {_injector:_0x4f563d,_pendingMutations:_0x56104f,_awaitingChangeset:_0x84e893,unitID:_0x56abd5,_handler:_0x157f88,type:_0x5596f8}=this,_0x17b3f5=Te(_0x4f563d,_0x56abd5,_0x5596f8,_0x84e893,_0x56104f,_0x157f88);return _0x17b3f5 instanceof j?_0x17b3f5[_0x2e8a64(0x35e)]():(_0x17b3f5 instanceof N||_0x17b3f5 instanceof M)&&_0x17b3f5[_0x2e8a64(0x1be)](),_0x17b3f5;}['resend'](){const _0x2a615c=_0x1de16c;throw Error(_0x2a615c(0x38f));}};F=y([v(0x5,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x6,(0x0,t[_0x1de16c(0x20f)])(e['RevisionService'])),v(0x7,t[_0x1de16c(0x2a8)]),v(0x8,t[_0x1de16c(0x374)]),v(0x9,(0x0,t[_0x1de16c(0x37e)])(S))],F);let I=class extends k{constructor(_0x294574,_0x94ab04,_0x41d18d,_0x125c28,_0x4c3fa4,_0x10d6fd,_0x54342b,_0x570435,_0x257ee7,_0xe06725,_0x1ec77b,_0x475f8a,_0x4e9580,_0x5a84de){const _0x585b37=_0x1de16c;super(_0x294574,_0x94ab04,_0x41d18d,_0x125c28,_0x54342b,_0x1ec77b,_0x475f8a,_0x257ee7,_0x5a84de),this[_0x585b37(0x385)]=_0x4c3fa4,this[_0x585b37(0x298)]=_0x10d6fd,this[_0x585b37(0x16d)]=_0x570435,this[_0x585b37(0x30d)]=_0xe06725,this[_0x585b37(0x226)]=_0x4e9580,this[_0x585b37(0x30c)]=_0x5a84de,g(this,'status',_0x585b37(0x3f5));}['onMissedChangesetFetched'](_0x44ecd0){const _0x3ac8ff=_0x1de16c;try{if(this['_handleRemoteChangesets'](_0x44ecd0)[_0x3ac8ff(0x3ec)])throw Error(_0x3ac8ff(0x283));if(this[_0x3ac8ff(0x18f)]([...this[_0x3ac8ff(0x298)]][_0x3ac8ff(0x24f)]((_0x3232a5,_0x542704)=>_0x3232a5[_0x3ac8ff(0x3be)]-_0x542704[_0x3ac8ff(0x3be)]))[_0x3ac8ff(0x3ec)])return this['_queuedRemoteChangesets']=[],this[_0x3ac8ff(0x394)](),this[_0x3ac8ff(0x36f)][_0x3ac8ff(0x3da)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x1646d3=this['_awaitingChangeset'],_0x8e2d25=this[_0x3ac8ff(0x256)],_0x21cb2e;if(_0x1646d3&&_0x8e2d25['length']!==0x0)_0x21cb2e=this[_0x3ac8ff(0x16d)][_0x3ac8ff(0x215)](N,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],_0x1646d3,_0x8e2d25,this[_0x3ac8ff(0x36f)],void 0x0);else{if(_0x1646d3&&_0x8e2d25[_0x3ac8ff(0x3c7)]===0x0)_0x1646d3[_0x3ac8ff(0x336)]=this['_getCurrentRevision'](),_0x21cb2e=this[_0x3ac8ff(0x16d)][_0x3ac8ff(0x215)](M,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],_0x1646d3,this[_0x3ac8ff(0x36f)]);else{if(_0x8e2d25['length']!==0x0){let _0x5583de=this[_0x3ac8ff(0x16d)]['createInstance'](j,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],_0x8e2d25,this[_0x3ac8ff(0x36f)]);_0x5583de[_0x3ac8ff(0x35e)](),_0x21cb2e=_0x5583de;}else _0x21cb2e=this[_0x3ac8ff(0x16d)]['createInstance'](A,this[_0x3ac8ff(0x378)],this['type'],this[_0x3ac8ff(0x36f)]);}}return _0x21cb2e[_0x3ac8ff(0x394)](),_0x21cb2e;}catch(_0x504fd3){return this[_0x3ac8ff(0x30d)][_0x3ac8ff(0x1e3)]('[FetchMissState]',_0x3ac8ff(0x2d9),_0x504fd3),this['_injector'][_0x3ac8ff(0x215)](P,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3ac8ff(0x36f)],!0x1);}}[_0x1de16c(0x18f)](_0x5494a3){const _0x345e6c=_0x1de16c;this[_0x345e6c(0x1cc)]();for(let _0x41fe70=0x0;_0x41fe70<_0x5494a3[_0x345e6c(0x3c7)];_0x41fe70++){let _0x118d0f=_0x5494a3[_0x41fe70],_0x2572f7=this[_0x345e6c(0x170)]();if(!(_0x118d0f[_0x345e6c(0x3be)]<=_0x2572f7)){if(_0x118d0f['revision']>_0x2572f7+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x118d0f)){this[_0x345e6c(0x24a)]();continue;}this[_0x345e6c(0x346)](_0x118d0f),this[_0x345e6c(0x1cc)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x69eb26){const _0x16faef=_0x1de16c;let _0x4f14e7=_0x69eb26,_0x57ef82=this[_0x16faef(0x1c3)];if(_0x57ef82){let _0x216bb3=this['_transformService']['transformChangesets']([_0x69eb26],[_0x57ef82],!0x1);if(!(0x0,e[_0x16faef(0x20c)])(_0x216bb3))throw _0x216bb3['error'];_0x4f14e7=_0x216bb3['c1Prime'][0x0],_0x57ef82=_0x216bb3[_0x16faef(0x324)][0x0];}let _0x19473e=this[_0x16faef(0x256)];if(_0x19473e['length']){let _0x3f4312=this[_0x16faef(0x226)][_0x16faef(0x307)](_0x4f14e7,_0x19473e);if(!(0x0,e[_0x16faef(0x2f1)])(_0x3f4312))throw _0x3f4312[_0x16faef(0x1e3)];_0x4f14e7=_0x3f4312[_0x16faef(0x38e)],_0x19473e=_0x3f4312[_0x16faef(0x249)];}this[_0x16faef(0x1f3)](_0x4f14e7),_0x57ef82&&(_0x57ef82[_0x16faef(0x336)]=this['_getCurrentRevision']()),this[_0x16faef(0x1c3)]=_0x57ef82,this[_0x16faef(0x256)]=_0x19473e;}[_0x1de16c(0x1cc)](){const _0x3baec5=_0x1de16c;if(!this[_0x3baec5(0x1c3)]||this[_0x3baec5(0x385)]==null)return;let _0x3cde16=this[_0x3baec5(0x170)]();if(this[_0x3baec5(0x385)]<=_0x3cde16)throw Error(_0x3baec5(0x285)+this[_0x3baec5(0x385)]+'.');this[_0x3baec5(0x385)]===_0x3cde16+0x1&&this[_0x3baec5(0x24a)]();}[_0x1de16c(0x24a)](){const _0x507d98=_0x1de16c;this['_incrementRevisionNumber'](),this[_0x507d98(0x1c3)]=null,this[_0x507d98(0x385)]=null;}['_isEchoedAwaitingChangeset'](_0x570a61){const _0x18701f=_0x1de16c;let _0x279e1d=this[_0x18701f(0x1c3)];return!_0x279e1d||!_0x279e1d['sid']||_0x279e1d[_0x18701f(0x163)]===null||_0x279e1d[_0x18701f(0x163)]===void 0x0?!0x1:_0x570a61[_0x18701f(0x378)]===_0x279e1d[_0x18701f(0x378)]&&_0x570a61[_0x18701f(0x3d2)]===_0x279e1d['sid']&&_0x570a61[_0x18701f(0x163)]===_0x279e1d['reqId'];}[_0x1de16c(0x1be)](){const _0x24280c=_0x1de16c;throw Error(_0x24280c(0x348));}[_0x1de16c(0x21e)](_0x242a50){const _0x5ab464=_0x1de16c;return this[_0x5ab464(0x256)]['push'](_0x242a50),this;}[_0x1de16c(0x2e0)](_0x1e03c1){const _0x504c81=_0x1de16c;return this[_0x504c81(0x298)]['push'](_0x1e03c1),this;}['onRemoteAck'](_0x6c67af){const _0x3099b4=_0x1de16c;if(this[_0x3099b4(0x1c3)]){let _0x5f240e=this[_0x3099b4(0x170)]();return _0x6c67af[_0x3099b4(0x3be)]<=_0x5f240e||(_0x5f240e+0x1===_0x6c67af[_0x3099b4(0x3be)]?(this[_0x3099b4(0x3a3)](),this[_0x3099b4(0x1c3)]=null,this[_0x3099b4(0x385)]=null):this['_acknowledgedAwaitingRevision']=_0x6c67af[_0x3099b4(0x3be)]),this;}if(_0x6c67af['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x3099b4(0x36e));}[_0x1de16c(0x3a5)](_0x4e4f6a){const _0x134b17=_0x1de16c;return this['_onConflict'](!!(_0x4e4f6a!=null&&_0x4e4f6a[_0x134b17(0x3e2)]));}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){const _0x176fd8=_0x1de16c;return this[_0x176fd8(0x16d)]['createInstance'](F,this[_0x176fd8(0x378)],this[_0x176fd8(0x1a0)],this[_0x176fd8(0x1c3)],this[_0x176fd8(0x256)],this[_0x176fd8(0x36f)]);}['toggleOnline'](){return this;}[_0x1de16c(0x369)](_0x104583){const _0x250aa4=_0x1de16c;return this[_0x250aa4(0x16d)][_0x250aa4(0x215)](P,this['unitID'],this[_0x250aa4(0x1a0)],this[_0x250aa4(0x1c3)],this[_0x250aa4(0x256)],this[_0x250aa4(0x36f)],_0x104583);}};I=y([v(0x7,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x8,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x9,t[_0x1de16c(0x243)]),v(0xa,t[_0x1de16c(0x2a8)]),v(0xb,t[_0x1de16c(0x374)]),v(0xc,e[_0x1de16c(0x13c)]),v(0xd,(0x0,t[_0x1de16c(0x37e)])(S))],I);function Te(_0x22175d,_0x2ddb0e,_0x4b49de,_0x4f6c1e,_0x213c9a,_0x4642bd){const _0x5e6026=_0x1de16c;return _0x4f6c1e&&_0x213c9a[_0x5e6026(0x3c7)]?_0x22175d[_0x5e6026(0x215)](N,_0x2ddb0e,_0x4b49de,_0x4f6c1e,_0x213c9a,_0x4642bd,void 0x0):_0x4f6c1e?_0x22175d[_0x5e6026(0x215)](M,_0x2ddb0e,_0x4b49de,_0x4f6c1e,_0x4642bd):_0x213c9a[_0x5e6026(0x3c7)]?_0x22175d[_0x5e6026(0x215)](j,_0x2ddb0e,_0x4b49de,_0x213c9a,_0x4642bd):_0x22175d[_0x5e6026(0x215)](A,_0x2ddb0e,_0x4b49de,_0x4642bd);}let L=class extends t['RxDisposable']{get['state'](){const _0x2638b5=_0x1de16c;return this[_0x2638b5(0x404)];}constructor(_0x4e040a,_0x130f9e,_0x4b03de,_0x385ffc,_0x1eeea3,_0x11b56e,_0x42d9e3,_0x35c6df,_0x2e876b,_0x2302c0,_0x33d700,_0x5219a9,_0x44c0f5,_0xf74dce){const _0x584baa=_0x1de16c;super(),this[_0x584baa(0x378)]=_0x4e040a,this[_0x584baa(0x380)]=_0x130f9e,this[_0x584baa(0x2ac)]=_0x4b03de,this[_0x584baa(0x16d)]=_0x385ffc,this[_0x584baa(0x1ba)]=_0x1eeea3,this[_0x584baa(0x3ff)]=_0x11b56e,this['_revisionService']=_0x42d9e3,this[_0x584baa(0x37d)]=_0x35c6df,this['_univerInstanceService']=_0x2e876b,this[_0x584baa(0x30d)]=_0x2302c0,this[_0x584baa(0x3ab)]=_0x33d700,this[_0x584baa(0x2c5)]=_0x5219a9,this[_0x584baa(0x238)]=_0x44c0f5,this[_0x584baa(0x2e1)]=_0xf74dce,g(this,_0x584baa(0x1cf),new i[(_0x584baa(0x19f))](null)),g(this,_0x584baa(0x2f6),this[_0x584baa(0x1cf)]['asObservable']()),g(this,_0x584baa(0x404),void 0x0),g(this,_0x584baa(0x38a),!0x1),g(this,_0x584baa(0x23e),''),g(this,_0x584baa(0x1f2),0x0),g(this,_0x584baa(0x1b6),this[_0x584baa(0x2f6)][_0x584baa(0x200)]((0x0,i[_0x584baa(0x2fc)])(_0x72fbda=>_0x72fbda?_0x72fbda[_0x584baa(0x218)]:_0x584baa(0x2fa)),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x584baa(0x33f),!0x1),g(this,_0x584baa(0x265),[]);}async[_0x1de16c(0x399)](){if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x1de16c(0x2ef)](){const _0x10454a=_0x1de16c;return this['_collaborationPaused']=!0x0,(0x0,t[_0x10454a(0x1db)])(()=>{const _0x272dda=_0x10454a;this[_0x272dda(0x38a)]=!0x1,this[_0x272dda(0x25b)]();});}[_0x1de16c(0x32e)](_0xce831b){const _0x3d1d0c=_0x1de16c;this[_0x3d1d0c(0x1fe)](_0xce831b);}['_updateState'](_0x382200){const _0x3d37f7=_0x1de16c;this[_0x3d37f7(0x404)]=_0x382200,this[_0x3d37f7(0x1cf)][_0x3d37f7(0x286)](_0x382200);}async[_0x1de16c(0x208)](){const _0x9a3175=_0x1de16c;if(this[_0x9a3175(0x3b7)](await this[_0x9a3175(0x263)]()),this[_0x9a3175(0x238)]){var _0x510519;(_0x510519=this[_0x9a3175(0x238)])==null||_0x510519[_0x9a3175(0x392)](this[_0x9a3175(0x378)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x9a3175(0x132)](this[_0x9a3175(0x378)])[_0x9a3175(0x15c)](_0x442e13=>{const _0x5fbe92=_0x9a3175;this[_0x5fbe92(0x30d)][_0x5fbe92(0x2f2)](_0x5fbe92(0x156),_0x5fbe92(0x33c),_0x442e13),_0x442e13===0x1?(this[_0x5fbe92(0x37d)][_0x5fbe92(0x262)]({'id':_0x5fbe92(0x3c6)}),this[_0x5fbe92(0x2c5)][_0x5fbe92(0x301)](new r['WorkbookEditablePermission'](this[_0x5fbe92(0x378)])['id'],!0x1),this[_0x5fbe92(0x2c5)]['setShowComponents'](!0x1)):(this[_0x5fbe92(0x2c5)]['updatePermissionPoint'](new r['WorkbookEditablePermission'](this['unitID'])['id'],!0x0),this[_0x5fbe92(0x2c5)]['setShowComponents'](!0x0));}));}let _0x56779e=!0x1;return this['disposeWithMe'](this[_0x9a3175(0x380)]['sessionStatus$'][_0x9a3175(0x15c)](_0x1f8cc0=>{const _0x28965b=_0x9a3175;_0x1f8cc0===0x3?this[_0x28965b(0x3dd)](_0x56779e):_0x1f8cc0===0x2&&(_0x56779e=!0x0,this[_0x28965b(0x30e)]());})),this[_0x9a3175(0x3b8)](this[_0x9a3175(0x380)][_0x9a3175(0x201)]['subscribe'](_0x7ad1a8=>{const _0x362456=_0x9a3175;try{switch(_0x7ad1a8['eventID']){case e[_0x362456(0x255)]['NEW_CHANGESETS']:this['_onRemoteChangeset']((0x0,e[_0x362456(0x320)])(_0x7ad1a8[_0x362456(0x2d2)]));break;case e[_0x362456(0x255)][_0x362456(0x3bf)]:this[_0x362456(0x2de)](_0x7ad1a8[_0x362456(0x2d2)]);break;case e[_0x362456(0x255)][_0x362456(0x357)]:this[_0x362456(0x2c1)]();break;case e[_0x362456(0x255)][_0x362456(0x18b)]:this['_onRemoteRetry'](_0x7ad1a8[_0x362456(0x2d2)]);break;case e[_0x362456(0x255)][_0x362456(0x2c8)]:this[_0x362456(0x19a)](_0x7ad1a8[_0x362456(0x2d2)]['changesets'][_0x362456(0x2fc)](_0x52c38e=>(0x0,e[_0x362456(0x320)])(_0x52c38e)));break;case e[_0x362456(0x255)]['PERMISSION_REJ']:this[_0x362456(0x2c1)]({'isPermissionRej':!0x0});break;case e[_0x362456(0x255)][_0x362456(0x26f)]:break;}}catch(_0x4e92ae){throw console['error'](_0x362456(0x409),_0x4e92ae),_0x4e92ae;}})),this['_state'];}[_0x1de16c(0x23f)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3a7207=_0x1de16c;if(this[_0x3a7207(0x33f)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x3a7207(0x33f)]=!0x0;}[_0x1de16c(0x1fe)](_0x5f707){const _0x2bdd14=_0x1de16c;this[_0x2bdd14(0x1bb)](),this[_0x2bdd14(0x3b7)](this[_0x2bdd14(0x404)][_0x2bdd14(0x21e)](_0x5f707)),this[_0x2bdd14(0x23f)]();}[_0x1de16c(0x376)](_0x48fd39){const _0xb0e5bb=_0x1de16c;if(!(_0x48fd39['revision']<=this[_0xb0e5bb(0x20b)][_0xb0e5bb(0x295)](this[_0xb0e5bb(0x378)]))){if(this[_0xb0e5bb(0x38a)]){this['_remoteChangesetQueue'][_0xb0e5bb(0x186)](_0x48fd39);return;}this['_applyRemoteChangeset'](_0x48fd39);}}[_0x1de16c(0x25b)](){const _0x46f095=_0x1de16c;this[_0x46f095(0x265)]['forEach'](_0x3d03ab=>this[_0x46f095(0x2d1)](_0x3d03ab)),this[_0x46f095(0x265)]=[];}[_0x1de16c(0x2d1)](_0x3d817e){const _0x5b1ed5=_0x1de16c;let _0x76a0a6=this['_compressMutationService'][_0x5b1ed5(0x1c5)][_0x5b1ed5(0x14a)](this[_0x5b1ed5(0x1ba)][_0x5b1ed5(0x1c5)]['getInterceptPoints']()[_0x5b1ed5(0x128)])(_0x3d817e[_0x5b1ed5(0x13f)],null)||_0x3d817e['mutations'],_0x540241={..._0x3d817e,'mutations':_0x76a0a6};this['_lockTransition'](),this[_0x5b1ed5(0x3b7)](this[_0x5b1ed5(0x404)][_0x5b1ed5(0x2e0)](_0x540241)),this[_0x5b1ed5(0x23f)]();}[_0x1de16c(0x2de)](_0x1ef428){const _0x373de5=_0x1de16c;this[_0x373de5(0x1bb)](),this[_0x373de5(0x3b7)](this['_state']['onRemoteAck'](_0x1ef428)),this[_0x373de5(0x23f)]();}[_0x1de16c(0x2c1)](_0x5a2a16){const _0x4c8125=_0x1de16c;this[_0x4c8125(0x1bb)](),this[_0x4c8125(0x3b7)](this['_state'][_0x4c8125(0x3a5)](_0x5a2a16)),this[_0x4c8125(0x23f)]();}['_onRemoteRetry'](_0x4adb34){const _0x50adba=_0x1de16c;this['_lockTransition'](),this[_0x50adba(0x3b7)](this['_state'][_0x50adba(0x28f)](_0x4adb34)),this[_0x50adba(0x23f)]();}['_onFetchMissResult'](_0x36ed0d){const _0x540574=_0x1de16c;if(!(this[_0x540574(0x404)]instanceof I))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x13594c=_0x36ed0d[_0x540574(0x2fc)](_0x442626=>{const _0xef6a5=_0x540574;let _0x19fe62=this[_0xef6a5(0x1ba)][_0xef6a5(0x1c5)][_0xef6a5(0x14a)](this[_0xef6a5(0x1ba)]['interceptor'][_0xef6a5(0x368)]()[_0xef6a5(0x128)])(_0x442626['mutations'],null)||_0x442626[_0xef6a5(0x13f)];return{..._0x442626,'mutations':_0x19fe62};});this[_0x540574(0x1bb)](),this['_updateState'](this[_0x540574(0x404)][_0x540574(0x329)](_0x13594c)),this[_0x540574(0x23f)]();}['_toggleOffline'](){const _0x2af132=_0x1de16c;this[_0x2af132(0x1bb)](),this[_0x2af132(0x3b7)](this[_0x2af132(0x404)]['toggleOffline']()),this['_unlockTransition']();}[_0x1de16c(0x3dd)](_0x1e04e8=!0x1){const _0x5a60a1=_0x1de16c;this[_0x5a60a1(0x1bb)](),this[_0x5a60a1(0x3b7)](this[_0x5a60a1(0x404)][_0x5a60a1(0x127)]()),this[_0x5a60a1(0x23f)]();let _0x194db4=this[_0x5a60a1(0x404)];_0x1e04e8&&_0x194db4 instanceof A&&(this[_0x5a60a1(0x1bb)](),this['_updateState'](_0x194db4[_0x5a60a1(0x14e)]()),this[_0x5a60a1(0x23f)]());}async[_0x1de16c(0x263)](){return new Promise(_0x289a53=>{const _0x333776=_0x3896;this[_0x333776(0x380)]['sessionStatus$'][_0x333776(0x200)]((0x0,i[_0x333776(0x2ed)])(0x1))[_0x333776(0x15c)](async _0x49b754=>{const _0x43bf41=_0x333776;_0x289a53(await this[_0x43bf41(0x223)](_0x49b754===0x3));});});}['_createHandler'](){const _0x3cd7cf=_0x1de16c;let _0x51ab23=this[_0x3cd7cf(0x378)];return{'onStateChange':(_0x5d962c,_0x21cd31)=>{const _0x257ac3=_0x3cd7cf;if(_0x5d962c!==this[_0x257ac3(0x404)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5d962c[_0x257ac3(0x218)]+_0x257ac3(0x137)+_0x21cd31[_0x257ac3(0x218)]+_0x257ac3(0x2bc)+this['_state'][_0x257ac3(0x218)]);this['_updateState'](_0x21cd31);},'onSendChangeset':_0xa8b839=>{const _0x1b157c=_0x3cd7cf;_0xa8b839[_0x1b157c(0x3d2)]||(_0xa8b839[_0x1b157c(0x3d2)]=this['_changesetSessionId'],_0xa8b839['reqId']=++this[_0x1b157c(0x1f2)]);let _0x255296={'eventID':e[_0x1b157c(0x255)][_0x1b157c(0x32b)],'data':{'unitID':_0xa8b839[_0x1b157c(0x378)],'unitType':this[_0x1b157c(0x2ac)],'changeset':_0xa8b839,'memberID':this[_0x1b157c(0x380)]['getMemberID']()}};this[_0x1b157c(0x380)][_0x1b157c(0x2d5)](_0x255296,this['unitID']);},'onMissingChangesets':({from:_0x1ae612,to:_0x4486a9})=>{const _0x580078=_0x3cd7cf;this[_0x580078(0x30d)]['debug'](_0x580078(0x156),_0x580078(0x3c1)+_0x1ae612+_0x580078(0x396)+_0x4486a9);let _0x57fad6={'eventID':e[_0x580078(0x255)]['FETCH_MISSING'],'data':{'unitID':_0x51ab23,'unitType':this[_0x580078(0x2ac)],'from':_0x1ae612,'to':_0x4486a9}};this[_0x580078(0x380)]['send'](_0x57fad6,this[_0x580078(0x378)]);}};}async['_createInitialStateImpl'](_0x129552){const _0x53eefe=_0x1de16c;var _0x59ad39,_0x15c913,_0x31e12a;let _0x361cd4=await((_0x59ad39=this[_0x53eefe(0x2e1)])==null?void 0x0:_0x59ad39['loadOfflineData'](this[_0x53eefe(0x378)])),_0x29e58=(_0x15c913=_0x361cd4==null?void 0x0:_0x361cd4['mutations'])==null?[]:_0x15c913,_0x3e21b9=(_0x31e12a=_0x361cd4==null?void 0x0:_0x361cd4[_0x53eefe(0x2f5)])==null?null:_0x31e12a,_0x5b73e2=!!(_0x3e21b9!=null&&_0x3e21b9[_0x53eefe(0x3d2)])&&!!(_0x3e21b9!=null&&_0x3e21b9['reqId']);this[_0x53eefe(0x23e)]=_0x5b73e2?_0x3e21b9[_0x53eefe(0x3d2)]:(0x0,e[_0x53eefe(0x333)])(),this[_0x53eefe(0x1f2)]=_0x5b73e2?_0x3e21b9['reqId']:0x0;let _0x15e7e3=this[_0x53eefe(0x378)];try{this[_0x53eefe(0x3bc)](_0x3e21b9,_0x29e58);}catch(_0x3c3f55){this[_0x53eefe(0x30d)]['error'](_0x3c3f55);}let _0xaede08=this[_0x53eefe(0x312)]();if(_0x129552){let _0x156061=Te(this[_0x53eefe(0x16d)],_0x15e7e3,this[_0x53eefe(0x2ac)],_0x3e21b9,_0x29e58,_0xaede08);return _0x156061 instanceof j?_0x156061[_0x53eefe(0x35e)]():(_0x156061 instanceof N||_0x156061 instanceof M)&&_0x156061[_0x53eefe(0x1be)](),_0x156061;}return this[_0x53eefe(0x16d)][_0x53eefe(0x215)](F,_0x15e7e3,this[_0x53eefe(0x2ac)],_0x3e21b9,_0x29e58,_0xaede08);}['_replayCachedMutations'](_0x41d9d9,_0x39d976){const _0x41c856=_0x1de16c;var _0x2fe3c3,_0x117df6;let _0x1e3b34=this[_0x41c856(0x1ba)][_0x41c856(0x1c5)]['fetchThroughInterceptors'](this[_0x41c856(0x1ba)][_0x41c856(0x1c5)][_0x41c856(0x368)]()[_0x41c856(0x128)]);(_0x2fe3c3=_0x1e3b34((_0x41d9d9==null?void 0x0:_0x41d9d9[_0x41c856(0x13f)])||[],null))==null||_0x2fe3c3['forEach'](_0x2f2ba2=>this['_commandService'][_0x41c856(0x300)](_0x2f2ba2['id'],_0x2f2ba2[_0x41c856(0x3ce)])),(_0x117df6=_0x1e3b34(_0x39d976||[],null))==null||_0x117df6[_0x41c856(0x2f3)](_0x300c3e=>this['_commandService'][_0x41c856(0x300)](_0x300c3e['id'],_0x300c3e[_0x41c856(0x3ce)]));}};L=y([v(0x3,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x4,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x160)])),v(0x5,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x297)])),v(0x6,(0x0,t['Inject'])(e[_0x1de16c(0x2eb)])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x8,t[_0x1de16c(0x1ca)]),v(0x9,t[_0x1de16c(0x243)]),v(0xa,t[_0x1de16c(0x2a8)]),v(0xb,t[_0x1de16c(0x3e7)]),v(0xc,(0x0,t[_0x1de16c(0x37e)])(w)),v(0xd,(0x0,t[_0x1de16c(0x37e)])(S))],L);let R=class extends L{constructor(_0x6a7698,_0x1e029,_0xcb3351,_0x3105ff,_0x4b0b36,_0x3f2f98,_0x1a908f,_0x3c1a0e,_0xb1c8b7,_0x36f4f4,_0x304784,_0x3b7e58,_0x33b4d1,_0x329c5f){const _0x37b5f6=_0x1de16c;super(_0x6a7698,_0xcb3351,_0x1e029,_0x3105ff,_0x4b0b36,_0x3f2f98,_0x1a908f,_0x3c1a0e,_0xb1c8b7,_0x36f4f4,_0x304784,_0x3b7e58,_0x33b4d1,_0x329c5f),this[_0x37b5f6(0x378)]=_0x6a7698,this[_0x37b5f6(0x1a0)]=_0x1e029,g(this,_0x37b5f6(0x1f9),null);}[_0x1de16c(0x181)](_0x1eef9e){const _0x29a11d=_0x1de16c;this[_0x29a11d(0x1f9)]=_0x1eef9e;}['dispose'](){const _0xebd947=_0x1de16c;this[_0xebd947(0x1f9)]=null,super['dispose']();}['_createHandler'](){const _0x37443d=_0x1de16c;let _0x3ebf0f=super[_0x37443d(0x312)]();return _0x3ebf0f['onTransformIME']=_0x12e020=>{const _0x3a1f9b=_0x37443d;var _0x54ce6f,_0x5363f5;return(_0x54ce6f=this['_handlerCallback'])==null||(_0x5363f5=_0x54ce6f[_0x3a1f9b(0x364)])==null?void 0x0:_0x5363f5[_0x3a1f9b(0x21c)](_0x54ce6f,_0x12e020);},_0x3ebf0f[_0x37443d(0x32d)]=_0x57996e=>{const _0x9cad59=_0x37443d;var _0x1a6bf9,_0x3c971f;return(_0x1a6bf9=this[_0x9cad59(0x1f9)])==null||(_0x3c971f=_0x1a6bf9[_0x9cad59(0x32d)])==null?void 0x0:_0x3c971f[_0x9cad59(0x21c)](_0x1a6bf9,_0x57996e);},_0x3ebf0f[_0x37443d(0x2cc)]=_0x1affe9=>{const _0x34409a=_0x37443d;var _0x5b8feb,_0x32cb23;return(_0x5b8feb=this[_0x34409a(0x1f9)])==null||(_0x32cb23=_0x5b8feb[_0x34409a(0x2cc)])==null?void 0x0:_0x32cb23[_0x34409a(0x21c)](_0x5b8feb,_0x1affe9);},_0x3ebf0f[_0x37443d(0x204)]=_0x14e1ca=>{const _0x3df518=_0x37443d;var _0xd95b2e,_0x3fcdbb;return(_0xd95b2e=this[_0x3df518(0x1f9)])==null||(_0x3fcdbb=_0xd95b2e['onSyncEditingCollabCursor'])==null?void 0x0:_0x3fcdbb[_0x3df518(0x21c)](_0xd95b2e,_0x14e1ca);},_0x3ebf0f[_0x37443d(0x1d4)]=_0x30694e=>{const _0x2729b8=_0x37443d;var _0x361719,_0x3b1f33,_0x31628c;if(!((_0x361719=this[_0x2729b8(0x1f9)])!=null&&_0x361719[_0x2729b8(0x1d4)]))throw Error(_0x2729b8(0x241));return(_0x3b1f33=this['_handlerCallback'])==null||(_0x31628c=_0x3b1f33[_0x2729b8(0x1d4)])==null?void 0x0:_0x31628c[_0x2729b8(0x21c)](_0x3b1f33,_0x30694e);},_0x3ebf0f['onTransformRemoteChangesetByStateCache']=_0x5ec831=>{const _0x16b77d=_0x37443d;var _0x596e8b,_0x26a2b4,_0x2d3865;if(!((_0x596e8b=this[_0x16b77d(0x1f9)])!=null&&_0x596e8b[_0x16b77d(0x3d8)]))throw Error(_0x16b77d(0x2fd));return(_0x26a2b4=this[_0x16b77d(0x1f9)])==null||(_0x2d3865=_0x26a2b4[_0x16b77d(0x3d8)])==null?void 0x0:_0x2d3865[_0x16b77d(0x21c)](_0x26a2b4,_0x5ec831);},_0x3ebf0f;}async[_0x1de16c(0x208)](){const _0x50a0af=_0x1de16c;let _0x3850cd=await super[_0x50a0af(0x208)]();return this[_0x50a0af(0x3b8)](this['_commandService'][_0x50a0af(0x313)]((_0x437e6f,_0x3bab39)=>{const _0xb01300=_0x50a0af;if(_0x437e6f['type']!==t[_0xb01300(0x267)][_0xb01300(0x37c)]||_0x3bab39!=null&&_0x3bab39[_0xb01300(0x299)]||_0x3bab39!=null&&_0x3bab39[_0xb01300(0x296)]||_0x437e6f['id']===n['RichTextEditingMutation']['id'])return;let _0x38a228=_0x437e6f[_0xb01300(0x3ce)];if((_0x38a228==null?void 0x0:_0x38a228[_0xb01300(0x2c9)])!==this['unitID'])return;let _0x587383=_0x437e6f,_0x69312d=this['_compressMutationService'][_0xb01300(0x1c5)][_0xb01300(0x14a)](this[_0xb01300(0x1ba)][_0xb01300(0x1c5)][_0xb01300(0x368)]()['COMPRESS_MUTATION_SEND'])([_0x587383],this[_0xb01300(0x2a7)])||[_0x587383];this[_0xb01300(0x1fe)](_0x69312d[0x0]);})),_0x3850cd;}};R=y([v(0x3,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x4,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x160)])),v(0x5,(0x0,t['Inject'])(t[_0x1de16c(0x297)])),v(0x6,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x8,t[_0x1de16c(0x1ca)]),v(0x9,t[_0x1de16c(0x243)]),v(0xa,t[_0x1de16c(0x2a8)]),v(0xb,t[_0x1de16c(0x3e7)]),v(0xc,(0x0,t['Optional'])(w)),v(0xd,(0x0,t[_0x1de16c(0x37e)])(S))],R);let z=class extends L{constructor(_0x2e7a91,_0x1b4f5d,_0x19bf01,_0x486c3d,_0x58d054,_0x20f3a0,_0x1fb48c,_0x4439a5,_0x37e1e8,_0x353ddb,_0x59b6b0,_0x3c8d82,_0x4c0158,_0x5bcb09,_0x35adba){const _0xf0dbe=_0x1de16c;super(_0x2e7a91,_0x19bf01,_0x1b4f5d,_0x486c3d,_0x58d054,_0x20f3a0,_0x1fb48c,_0x37e1e8,_0x353ddb,_0x59b6b0,_0x3c8d82,_0x4c0158,_0x5bcb09,_0x35adba),this['unitID']=_0x2e7a91,this[_0xf0dbe(0x1a0)]=_0x1b4f5d,this[_0xf0dbe(0x221)]=_0x4439a5;}['_createHandler'](){const _0x472d6e=_0x1de16c;let _0x33026d=super[_0x472d6e(0x312)]();return _0x33026d[_0x472d6e(0x2cc)]=_0x10d9f2=>this[_0x472d6e(0x221)][_0x472d6e(0x3ea)](_0x10d9f2),_0x33026d;}async[_0x1de16c(0x208)](){const _0x15e563=_0x1de16c;let _0x27225d=await super[_0x15e563(0x208)]();return this['disposeWithMe'](this[_0x15e563(0x3ab)][_0x15e563(0x313)]((_0x3cbd84,_0x21f3f1)=>{const _0x18356f=_0x15e563;if(_0x3cbd84['type']!==t[_0x18356f(0x267)][_0x18356f(0x37c)]||_0x21f3f1!=null&&_0x21f3f1['fromCollab']||_0x21f3f1!=null&&_0x21f3f1[_0x18356f(0x296)])return;let _0x536928=_0x3cbd84[_0x18356f(0x3ce)];if((_0x536928==null?void 0x0:_0x536928[_0x18356f(0x2c9)])!==this[_0x18356f(0x378)])return;let _0x47451f=_0x3cbd84,_0x2e513d=this[_0x18356f(0x1ba)][_0x18356f(0x1c5)][_0x18356f(0x14a)](this[_0x18356f(0x1ba)][_0x18356f(0x1c5)][_0x18356f(0x368)]()['COMPRESS_MUTATION_SEND'])([_0x47451f],this['_univerInstanceService'])||[_0x47451f];this[_0x18356f(0x1fe)](_0x2e513d[0x0]);})),_0x27225d;}};z=y([v(0x3,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x4,(0x0,t['Inject'])(e[_0x1de16c(0x160)])),v(0x5,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x297)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(C)),v(0x8,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x9,t[_0x1de16c(0x1ca)]),v(0xa,t[_0x1de16c(0x243)]),v(0xb,t[_0x1de16c(0x2a8)]),v(0xc,t[_0x1de16c(0x3e7)]),v(0xd,(0x0,t[_0x1de16c(0x37e)])(w)),v(0xe,(0x0,t['Optional'])(S))],z);const Ee=(0x0,t[_0x1de16c(0x26b)])(_0x1de16c(0x30b));function De(_0x3ae757){const _0x4b89ce=_0x1de16c;let _0x1ff9e5=_0x3ae757[_0x4b89ce(0x2d2)],_0x1e1c6c=JSON[_0x4b89ce(0x28b)](_0x1ff9e5);switch(_0x1e1c6c['cmd']){case a['CombCmd']['HEARTBEAT']:case a['CombCmd'][_0x4b89ce(0x354)]:{let _0x153540=_0x1e1c6c[_0x4b89ce(0x1dd)];return{..._0x1e1c6c,'data':_0x153540,'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};}case a[_0x4b89ce(0x3ae)][_0x4b89ce(0x220)]:{let _0x57f7d0=_0x1e1c6c[_0x4b89ce(0x2f9)];return{..._0x1e1c6c,'data':_0x57f7d0,'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};}case a[_0x4b89ce(0x3ae)][_0x4b89ce(0x3f7)]:{let _0x38be0e=_0x1e1c6c[_0x4b89ce(0x25f)];switch(_0x38be0e['eventID']){case e[_0x4b89ce(0x255)][_0x4b89ce(0x195)]:var _0x95cf62;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x95cf62=_0x38be0e['permissionRejEvent'])==null?void 0x0:_0x95cf62['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x3bf)]:var _0x5fd1a4;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x5fd1a4=_0x38be0e[_0x4b89ce(0x193)])==null?void 0x0:_0x5fd1a4['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['NEW_CHANGESETS']:var _0x573266;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x573266=_0x38be0e[_0x4b89ce(0x251)])==null?void 0x0:_0x573266['cs']},'cmd':_0x1e1c6c['cmd']};case e[_0x4b89ce(0x255)]['CHANGESET_REJ']:var _0x3a3e9c;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x3a3e9c=_0x38be0e[_0x4b89ce(0x2df)])==null?void 0x0:_0x3a3e9c['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x18b)]:var _0x56297c;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x56297c=_0x38be0e[_0x4b89ce(0x244)])==null?void 0x0:_0x56297c['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['UPDATE_CURSOR']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x37b)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['USERS_ENTER']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x141)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x2dc)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x165)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['LIVESHARE_NEW_HOST']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e['liveShareNewHost']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x264)]:case e[_0x4b89ce(0x255)]['LIVESHARE_OPERATION']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x1e5)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x3cd)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e['liveShareNewHost']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e['CollaborationEvent'][_0x4b89ce(0x3f2)]:return{..._0x1e1c6c,'data':_0x38be0e,'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e['CollaborationEvent'][_0x4b89ce(0x1e7)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x34a)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e['CollaborationEvent'][_0x4b89ce(0x344)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x268)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x3fe)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x2e3)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x26f)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x287)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};default:return _0x1e1c6c;}}default:return _0x1e1c6c;}}function Oe(_0x2f64ee){const _0x15ee8a=_0x1de16c;switch(_0x2f64ee[_0x15ee8a(0x2e6)]){case a[_0x15ee8a(0x3ae)][_0x15ee8a(0x3d0)]:case a[_0x15ee8a(0x3ae)][_0x15ee8a(0x354)]:return JSON[_0x15ee8a(0x2d8)]({'cmd':_0x2f64ee['cmd'],'routeKey':_0x2f64ee[_0x15ee8a(0x3f8)]});case a[_0x15ee8a(0x3ae)][_0x15ee8a(0x212)]:{let _0x1732d0;switch(_0x2f64ee['data'][_0x15ee8a(0x26d)]){case e[_0x15ee8a(0x255)][_0x15ee8a(0x3b1)]:_0x1732d0={'eventID':e['CollaborationEvent'][_0x15ee8a(0x3b1)],'updateCursorEvent':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x2dc)]:_0x1732d0={'eventID':e[_0x15ee8a(0x255)]['USERS_LEAVE'],'leaveEvent':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x318)]:_0x1732d0={'eventID':e['CollaborationEvent'][_0x15ee8a(0x318)],'joinEvent':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x3b9)]:_0x1732d0={'eventID':e['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x20d)]:_0x1732d0={'eventID':e[_0x15ee8a(0x255)][_0x15ee8a(0x20d)],'liveShareOperation':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)]['LIVESHARE_TERMINATE']:_0x1732d0={'eventID':e[_0x15ee8a(0x255)][_0x15ee8a(0x3cd)],'liveShareTerminate':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x1bd)]:_0x1732d0={'eventID':e['CollaborationEvent'][_0x15ee8a(0x1bd)],'liveShareRequestHost':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x264)]:_0x1732d0={'eventID':e[_0x15ee8a(0x255)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x1732d0={'eventID':_0x2f64ee['data'][_0x15ee8a(0x26d)]};}return JSON[_0x15ee8a(0x2d8)]({'cmd':_0x2f64ee[_0x15ee8a(0x2e6)],'routeKey':_0x2f64ee[_0x15ee8a(0x3f8)],'collaMsg':_0x1732d0});}case a['CombCmd']['JOIN']:return JSON[_0x15ee8a(0x2d8)]({'cmd':_0x2f64ee[_0x15ee8a(0x2e6)],'routeKey':_0x2f64ee['routeKey'],'joinReq':_0x2f64ee['data']});case a[_0x15ee8a(0x3ae)]['LEAVE']:return JSON['stringify']({'cmd':_0x2f64ee['cmd'],'routeKey':_0x2f64ee['routeKey'],'leaveReq':_0x2f64ee[_0x15ee8a(0x2d2)]});default:throw Error(_0x15ee8a(0x191));}}const B=(0x0,t['createIdentifier'])(_0x1de16c(0x3ca));function ke(_0x2fd6b3,_0x47e019,_0x11a8eb){const _0x485d2b=_0x1de16c;return _0x2fd6b3+'/'+_0x47e019+_0x485d2b(0x192)+_0x11a8eb+_0x485d2b(0x1f1);}let V=class extends t['Disposable']{constructor(_0x5c980f,_0x1f8556,_0x1561fc,_0x3b2fa2,_0x57b143){const _0x16867d=_0x1de16c;super(),this[_0x16867d(0x16d)]=_0x5c980f,this[_0x16867d(0x367)]=_0x1f8556,this[_0x16867d(0x2aa)]=_0x1561fc,this[_0x16867d(0x30d)]=_0x3b2fa2,this[_0x16867d(0x229)]=_0x57b143;}[_0x1de16c(0x205)](_0x19c4ab){const _0x5dc969=_0x1de16c;let _0x46c011=this[_0x5dc969(0x16d)][_0x5dc969(0x373)](c['ISocketService']);if(!_0x46c011)throw Error(_0x5dc969(0x1c8));let _0x4b1387=_0x46c011[_0x5dc969(0x1a1)](_0x19c4ab);if(!_0x4b1387)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x341001=new t[(_0x5dc969(0x157))](),_0x214276=new i['Subject']();_0x341001[_0x5dc969(0x27f)](_0x4b1387[_0x5dc969(0x26c)][_0x5dc969(0x15c)](_0x47999f=>_0x214276[_0x5dc969(0x286)](_0x47999f))),_0x341001[_0x5dc969(0x27f)]((0x0,t[_0x5dc969(0x1db)])(()=>_0x214276[_0x5dc969(0x183)]()));let _0xb38224=new i[(_0x5dc969(0x3c5))]();_0x341001[_0x5dc969(0x27f)](_0x4b1387['error$'][_0x5dc969(0x15c)](_0x240fe1=>_0xb38224[_0x5dc969(0x286)](_0x240fe1))),_0x341001[_0x5dc969(0x27f)]((0x0,t['toDisposable'])(()=>_0xb38224[_0x5dc969(0x183)]()));let _0x1295b4=new i[(_0x5dc969(0x3c5))]();_0x341001[_0x5dc969(0x27f)](_0x4b1387['message$'][_0x5dc969(0x15c)](_0x392365=>{const _0x33c86e=_0x5dc969;let _0x357e8e=De(_0x392365);_0x1295b4[_0x33c86e(0x286)](_0x357e8e);})),_0x341001[_0x5dc969(0x27f)]((0x0,t[_0x5dc969(0x1db)])(()=>_0x1295b4[_0x5dc969(0x183)]()));let _0x2531fa,_0x12d7bf=()=>{const _0x220560=_0x5dc969;_0xb38224[_0x220560(0x286)](new Event(_0x220560(0x23d))),_0x214276[_0x220560(0x286)](new Event(_0x220560(0x23d))),_0x2531fa[_0x220560(0x261)]();};return _0x2531fa={'memberID':'','close$':_0x214276[_0x5dc969(0x1ea)](),'error$':_0xb38224[_0x5dc969(0x1ea)](),'open$':_0x4b1387[_0x5dc969(0x327)],'message$':_0x1295b4[_0x5dc969(0x1ea)](),'send':_0x4e8561=>{const _0x5f1563=_0x5dc969;if(_0x4e8561[_0x5f1563(0x2e6)]===a[_0x5f1563(0x3ae)]['INGEST']){if(_0x4e8561[_0x5f1563(0x2d2)][_0x5f1563(0x26d)]===e[_0x5f1563(0x255)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x2531fa,_0x4e8561[_0x5f1563(0x2d2)])[_0x5f1563(0x158)](_0x33fafd=>{const _0x27bcc0=_0x5f1563;this[_0x27bcc0(0x30d)][_0x27bcc0(0x1e3)](_0x33fafd),_0x12d7bf();});return;}if(_0x4e8561[_0x5f1563(0x2d2)][_0x5f1563(0x26d)]===e[_0x5f1563(0x255)][_0x5f1563(0x24b)]){let _0x945b39=_0x4e8561[_0x5f1563(0x2d2)];this[_0x5f1563(0x224)](_0x945b39)[_0x5f1563(0x129)](_0x3d77fc=>{const _0x3b8a0b=_0x5f1563;_0x1295b4[_0x3b8a0b(0x286)]({'cmd':a[_0x3b8a0b(0x3ae)]['RECV'],'code':a['CmdRspCode']['OK'],'routeKey':_0x945b39['data'][_0x3b8a0b(0x378)],'routeType':'','data':{'eventID':e[_0x3b8a0b(0x255)][_0x3b8a0b(0x2c8)],'data':{'changesets':_0x3d77fc}}});})[_0x5f1563(0x158)](_0x5dad21=>{const _0x24e1c9=_0x5f1563;this[_0x24e1c9(0x30d)][_0x24e1c9(0x1e3)](_0x5dad21),_0x12d7bf();});return;}}_0x4b1387[_0x5f1563(0x2d5)](Oe(_0x4e8561));},'close':()=>{const _0x31ae67=_0x5dc969;_0x4b1387[_0x31ae67(0x261)](),_0x341001[_0x31ae67(0x317)]();}},_0x2531fa;}async[_0x1de16c(0x33a)](_0x53d791,_0x4a0fb0){const _0x2942a8=_0x1de16c;var _0x1531c8;let {unitType:_0x3667a4,unitID:_0xd45dac,changeset:_0x5bdb74}=_0x4a0fb0[_0x2942a8(0x2d2)],_0x402c25={'unitID':_0xd45dac,'memberID':_0x53d791[_0x2942a8(0x33e)],'type':_0x3667a4,'changeset':(0x0,e[_0x2942a8(0x339)])(_0x5bdb74)},_0x45fdb8=this[_0x2942a8(0x2aa)][_0x2942a8(0x26a)](T),_0x37f199=ke((_0x1531c8=_0x45fdb8==null?void 0x0:_0x45fdb8[_0x2942a8(0x24e)])==null?'/universer-api/comb':_0x1531c8,_0x3667a4,_0xd45dac);try{await this[_0x2942a8(0x367)][_0x2942a8(0x154)](_0x37f199,{'body':_0x402c25});}catch(_0x66aa70){throw this['_logService']['error'](_0x2942a8(0x12e),'submit\x20changeset\x20error!'),_0x66aa70;}}async[_0x1de16c(0x224)](_0x1a6cd8){const _0x41c314=_0x1de16c;let {unitID:_0x329e9b,from:_0x3d9606,to:_0x3258b5,unitType:_0x2910bb}=_0x1a6cd8['data'];return(await this[_0x41c314(0x229)][_0x41c314(0x1b9)]({'metadata':void 0x0},{'unitID':_0x329e9b,'type':_0x2910bb,'from':_0x3d9606,'to':_0x3258b5}))['changesets']['map'](_0x3f7a55=>((_0x3f7a55[_0x41c314(0x13f)]===null||_0x3f7a55[_0x41c314(0x13f)]===void 0x0)&&(_0x3f7a55['mutations']=[]),_0x3f7a55));}};V=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x1,(0x0,t['Inject'])(c[_0x1de16c(0x14d)])),v(0x2,t[_0x1de16c(0x3cb)]),v(0x3,t[_0x1de16c(0x243)]),v(0x4,e[_0x1de16c(0x35a)])],V);let H=class extends t[_0x1de16c(0x1d2)]{get['_socket'](){return this['_socket$']['getValue']();}constructor(_0x1430b0,_0x103065,_0x43b11b,_0x419d0c,_0x18353e,_0x3a9d7e){const _0xc258cc=_0x1de16c;super(),this[_0xc258cc(0x16d)]=_0x1430b0,this[_0xc258cc(0x30d)]=_0x103065,this['_configService']=_0x43b11b,this[_0xc258cc(0x17a)]=_0x419d0c,this[_0xc258cc(0x3f4)]=_0x18353e,this[_0xc258cc(0x164)]=_0x3a9d7e,g(this,_0xc258cc(0x246),new i['BehaviorSubject'](void 0x0)),g(this,_0xc258cc(0x25e),this[_0xc258cc(0x246)]['asObservable']()),g(this,_0xc258cc(0x390),null),g(this,'_sessions',new Map()),g(this,_0xc258cc(0x1a2),new i[(_0xc258cc(0x19f))](0x0)),g(this,_0xc258cc(0x1b6),this[_0xc258cc(0x1a2)][_0xc258cc(0x1ea)]()),g(this,'_socketReady',!0x1),g(this,_0xc258cc(0x38d),void 0x0),g(this,_0xc258cc(0x12a),0x0),g(this,_0xc258cc(0x21b),null),g(this,'_sendHeartbeatTimer',void 0x0),g(this,_0xc258cc(0x328),void 0x0),this[_0xc258cc(0x3c0)]();}[_0x1de16c(0x3c0)](){const _0x3934f8=_0x1de16c;this[_0x3934f8(0x164)]&&this[_0x3934f8(0x3b8)](this['_networkConditionService'][_0x3934f8(0x3d5)][_0x3934f8(0x15c)](_0x254dff=>{const _0xe00e6e=_0x3934f8;_0x254dff&&!this[_0xe00e6e(0x260)]&&this['reconnect'](),_0x254dff||this[_0xe00e6e(0x29d)]();}));}['dispose'](){const _0x1173fa=_0x1de16c;var _0x1f55db;super[_0x1173fa(0x317)](),(_0x1f55db=this['_socketMessageSubscription'])==null||_0x1f55db[_0x1173fa(0x21f)](),this['_socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](),this[_0x1173fa(0x361)](),this[_0x1173fa(0x2bf)](),this[_0x1173fa(0x2b9)][_0x1173fa(0x2f3)](_0x385d36=>_0x385d36[_0x1173fa(0x317)]()),this[_0x1173fa(0x2b9)]['clear'](),this['_status$']['complete']();}async['requireSession'](_0x58b369){const _0x5e1722=_0x1de16c;if(this[_0x5e1722(0x2b9)][_0x5e1722(0x1c7)](_0x58b369))return this[_0x5e1722(0x2b9)]['get'](_0x58b369);this[_0x5e1722(0x1e9)]();let _0x1ef680=this[_0x5e1722(0x16d)][_0x5e1722(0x215)](x,_0x58b369,this[_0x5e1722(0x246)]['asObservable']());return this[_0x5e1722(0x2b9)][_0x5e1722(0x248)](_0x58b369,_0x1ef680),_0x1ef680;}['closeSession'](_0x35b74b){const _0x283f53=_0x1de16c;let _0x27f914=this['_sessions']['get'](_0x35b74b);if(_0x27f914&&(this['_sessions'][_0x283f53(0x1d7)](_0x35b74b),_0x27f914[_0x283f53(0x261)]()),!this[_0x283f53(0x2b9)][_0x283f53(0x372)]){var _0x17875e;(_0x17875e=this[_0x283f53(0x260)])==null||_0x17875e[_0x283f53(0x261)]();}}['reconnect'](){const _0x415738=_0x1de16c;this[_0x415738(0x12a)]=0x0,this[_0x415738(0x203)](),this[_0x415738(0x2cf)]();}[_0x1de16c(0x203)](){const _0xd01b64=_0x1de16c;this[_0xd01b64(0x38d)]!=null&&(clearTimeout(this[_0xd01b64(0x38d)]),this['_retryConnectingTimer']=null);}async[_0x1de16c(0x199)](){const _0x1a019d=_0x1de16c;var _0x46a296;let _0x511446=this[_0x1a019d(0x2aa)]['getConfig'](T),_0xa3caa1=(_0x46a296=_0x511446==null?void 0x0:_0x511446['collabWebSocketUrl'])==null?p:_0x46a296,_0x33aedf=await this[_0x1a019d(0x17a)][_0x1a019d(0x1a1)](_0xa3caa1);return this[_0x1a019d(0x390)]=_0x33aedf,_0x33aedf;}async[_0x1de16c(0x1e9)](){const _0x57e28b=_0x1de16c;try{var _0xda6eea,_0x889418;let _0x4e829f=(_0xda6eea=(_0x889418=this[_0x57e28b(0x260)])==null?this[_0x57e28b(0x390)]:_0x889418)==null?await this[_0x57e28b(0x199)]():_0xda6eea;if(_0x4e829f){var _0x33a407;let _0x6bc1dd=_0x4e829f[_0x57e28b(0x2d5)];_0x4e829f['send']=_0x431fae=>(_0x431fae[_0x57e28b(0x2e6)]!==a[_0x57e28b(0x3ae)]['LEAVE']&&this['_rescheduleHeartbeat'](),_0x6bc1dd[_0x57e28b(0x245)](_0x4e829f,[_0x431fae])),(_0x33a407=this[_0x57e28b(0x21b)])==null||_0x33a407['unsubscribe'](),this[_0x57e28b(0x21b)]=null,this[_0x57e28b(0x21b)]=_0x4e829f[_0x57e28b(0x252)][_0x57e28b(0x15c)](_0x14adb0=>this[_0x57e28b(0x32f)](_0x4e829f,_0x14adb0)),_0x4e829f['error$'][_0x57e28b(0x200)]((0x0,s[_0x57e28b(0x2ed)])(0x1))[_0x57e28b(0x15c)](_0x4a1220=>this['_logService'][_0x57e28b(0x1e3)](_0x57e28b(0x393),_0x4a1220)),_0x4e829f['open$'][_0x57e28b(0x200)]((0x0,s['take'])(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x4e829f);}),_0x4e829f[_0x57e28b(0x26c)][_0x57e28b(0x200)]((0x0,s[_0x57e28b(0x2ed)])(0x1))['subscribe'](_0xe4bdaa=>{const _0x111648=_0x57e28b;this[_0x111648(0x30d)][_0x111648(0x2f2)](_0x111648(0x1c6),_0x111648(0x2cd),_0xe4bdaa),this['_onConnectionFailed']();});}}catch(_0x17e9e9){this[_0x57e28b(0x30d)]['error'](_0x17e9e9),this[_0x57e28b(0x250)]();}}['_onConnectionOpen'](_0x92d643){const _0x409b59=_0x1de16c;this[_0x409b59(0x30d)][_0x409b59(0x2f2)](_0x409b59(0x1c6),_0x409b59(0x1a5)),_0x92d643[_0x409b59(0x2d5)]({'cmd':a[_0x409b59(0x3ae)][_0x409b59(0x354)]}),this[_0x409b59(0x38c)]();}[_0x1de16c(0x29d)](){const _0x14251c=_0x1de16c;this[_0x14251c(0x384)]=!0x1,this[_0x14251c(0x390)]=null,this[_0x14251c(0x1a2)][_0x14251c(0x286)](0x2),this[_0x14251c(0x246)][_0x14251c(0x286)](null),this[_0x14251c(0x361)](),this[_0x14251c(0x2bf)]();}['_onConnectionFailed'](){const _0x3649a6=_0x1de16c;var _0x3dfa8b;this[_0x3649a6(0x29d)](),this['_retryCount']<((_0x3dfa8b=this[_0x3649a6(0x2aa)][_0x3649a6(0x26a)](_0x3649a6(0x358)))==null?0x3:_0x3dfa8b)?(this[_0x3649a6(0x3f4)][_0x3649a6(0x262)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect']()):this[_0x3649a6(0x3f4)][_0x3649a6(0x262)]({'id':_0x3649a6(0x1fa)});}[_0x1de16c(0x2cf)](){const _0x57da91=_0x1de16c;var _0x40251d;let _0x325cbe=this[_0x57da91(0x12a)],_0x1088cd=this[_0x57da91(0x2aa)]['getConfig'](T),_0xcde651=_0x325cbe===0x0?0x0:((_0x40251d=_0x1088cd==null?void 0x0:_0x1088cd[_0x57da91(0x1fd)])==null?0x4e20:_0x40251d)*0x2**_0x325cbe;this[_0x57da91(0x38d)]=setTimeout(()=>{const _0x26433f=_0x57da91;clearTimeout(this['_retryConnectingTimer']),this[_0x26433f(0x38d)]=null,this['_tryEnsureSocket']();},_0xcde651),this[_0x57da91(0x12a)]+=0x1;}[_0x1de16c(0x32f)](_0x367408,_0x2f6ba6){const _0x1ccda8=_0x1de16c;let {cmd:_0x3cf819}=_0x2f6ba6;_0x3cf819===a[_0x1ccda8(0x3ae)][_0x1ccda8(0x354)]&&!this[_0x1ccda8(0x384)]&&(_0x367408[_0x1ccda8(0x33e)]=_0x2f6ba6[_0x1ccda8(0x2d2)][_0x1ccda8(0x33e)],this[_0x1ccda8(0x246)]['next'](_0x367408),this['_status$']['next'](0x3),this[_0x1ccda8(0x384)]=!0x0,this[_0x1ccda8(0x390)]=null),_0x3cf819===a[_0x1ccda8(0x3ae)][_0x1ccda8(0x3d0)]&&this[_0x1ccda8(0x361)](),this[_0x1ccda8(0x38c)]();}[_0x1de16c(0x38c)](){const _0x4417b9=_0x1de16c;var _0x36176c;this[_0x4417b9(0x2bf)](),this[_0x4417b9(0x1ec)]=setTimeout(()=>this[_0x4417b9(0x1ee)](),(_0x36176c=this[_0x4417b9(0x2aa)][_0x4417b9(0x26a)](_0x4417b9(0x143)))==null?0x7530:_0x36176c);}[_0x1de16c(0x1ee)](){const _0x5a1cfd=_0x1de16c;this['_socket'][_0x5a1cfd(0x2d5)]({'cmd':a[_0x5a1cfd(0x3ae)][_0x5a1cfd(0x3d0)]}),this[_0x5a1cfd(0x28d)]();}[_0x1de16c(0x28d)](){const _0xf497ef=_0x1de16c;var _0x9f5212;this[_0xf497ef(0x328)]=setTimeout(()=>this[_0xf497ef(0x250)](),(_0x9f5212=this[_0xf497ef(0x2aa)][_0xf497ef(0x26a)]('HEARTBEAT_TIMEOUT'))==null?m:_0x9f5212);}['_clearHeartbeatTimer'](){const _0x354d30=_0x1de16c;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x354d30(0x1ec)]),this['_sendHeartbeatTimer']=null);}[_0x1de16c(0x361)](){const _0x171f9b=_0x1de16c;this[_0x171f9b(0x328)]!=null&&(clearTimeout(this[_0x171f9b(0x328)]),this[_0x171f9b(0x328)]=null);}};H=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x1,t['ILogService']),v(0x2,t[_0x1de16c(0x3cb)]),v(0x3,B),v(0x4,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x5,(0x0,t['Optional'])(Ee))],H);let U=class extends t[_0x1de16c(0x1f0)]{constructor(_0x29cfc0,_0x542124,_0x52280e,_0x2440c6){const _0x34d5b2=_0x1de16c;var _0x192a07;super(),this['_injector']=_0x29cfc0,this[_0x34d5b2(0x32a)]=_0x542124,this[_0x34d5b2(0x2aa)]=_0x52280e,this[_0x34d5b2(0x2a7)]=_0x2440c6,g(this,'_entities',new Map()),g(this,_0x34d5b2(0x352),new i[(_0x34d5b2(0x3c5))]()),g(this,'entityInit$',this[_0x34d5b2(0x352)][_0x34d5b2(0x1ea)]()),((_0x192a07=this['_configService'][_0x34d5b2(0x26a)](_0x34d5b2(0x2dd)))==null?void 0x0:_0x192a07[_0x34d5b2(0x1dc)])!==!0x1&&this[_0x34d5b2(0x208)]();}[_0x1de16c(0x317)](){const _0x2115d4=_0x1de16c;super[_0x2115d4(0x317)](),this[_0x2115d4(0x27a)]['forEach'](_0x473863=>_0x473863[_0x2115d4(0x317)]()),this[_0x2115d4(0x27a)][_0x2115d4(0x12f)]();}[_0x1de16c(0x306)](_0x3e039c){const _0x33bcfb=_0x1de16c;var _0x3babad;return(_0x3babad=this[_0x33bcfb(0x27a)][_0x33bcfb(0x373)](_0x3e039c))==null?null:_0x3babad;}[_0x1de16c(0x3a6)](_0x1d6baf){const _0x2ba52c=_0x1de16c;let _0x37dd0c=this[_0x2ba52c(0x306)](_0x1d6baf);return _0x37dd0c?(0x0,i['of'])(_0x37dd0c):this[_0x2ba52c(0x352)][_0x2ba52c(0x200)]((0x0,s[_0x2ba52c(0x15e)])(_0x1cf695=>_0x1cf695[_0x2ba52c(0x378)]===_0x1d6baf));}[_0x1de16c(0x2c7)](_0x2acae2){const _0x19febe=_0x1de16c;return(0x0,i['firstValueFrom'])(this[_0x19febe(0x3a6)](_0x2acae2)[_0x19febe(0x200)]((0x0,s['map'])(()=>void 0x0)));}[_0x1de16c(0x208)](){const _0x50f0ca=_0x1de16c;this[_0x50f0ca(0x2a7)][_0x50f0ca(0x13d)](t[_0x50f0ca(0x20a)][_0x50f0ca(0x2b5)])[_0x50f0ca(0x200)]((0x0,i[_0x50f0ca(0x3ba)])(this[_0x50f0ca(0x155)]),(0x0,s[_0x50f0ca(0x187)])(0x10))[_0x50f0ca(0x15c)](async _0x436725=>{const _0x560a8d=_0x50f0ca;let _0x498a79=_0x436725[_0x560a8d(0x341)]['getUnitId'](),_0x30cebe=await this[_0x560a8d(0x1c0)](_0x498a79,t[_0x560a8d(0x20a)]['UNIVER_SHEET']);this['_entities'][_0x560a8d(0x248)](_0x498a79,_0x30cebe);}),this[_0x50f0ca(0x2a7)][_0x50f0ca(0x13d)](t[_0x50f0ca(0x20a)][_0x50f0ca(0x198)])[_0x50f0ca(0x200)]((0x0,i[_0x50f0ca(0x3ba)])(this[_0x50f0ca(0x155)]),(0x0,s[_0x50f0ca(0x187)])(0x10))['pipe']((0x0,s['filter'])(_0x4d8b91=>!_0x4d8b91[_0x50f0ca(0x341)][_0x50f0ca(0x270)]()[_0x50f0ca(0x169)]('__')))[_0x50f0ca(0x15c)](async _0x7ca4a1=>{const _0x1737d6=_0x50f0ca;let _0x5f4ee5=_0x7ca4a1['unit'][_0x1737d6(0x270)](),_0x21f441=await this[_0x1737d6(0x1c0)](_0x5f4ee5,t[_0x1737d6(0x20a)]['UNIVER_DOC']);this['_entities']['set'](_0x5f4ee5,_0x21f441);}),(0x0,i[_0x50f0ca(0x391)])(this[_0x50f0ca(0x2a7)][_0x50f0ca(0x232)](t[_0x50f0ca(0x20a)][_0x50f0ca(0x2b5)]),this[_0x50f0ca(0x2a7)][_0x50f0ca(0x232)](t['UniverInstanceType'][_0x50f0ca(0x198)]))['pipe']((0x0,i['takeUntil'])(this[_0x50f0ca(0x155)]))[_0x50f0ca(0x15c)](_0x5aab70=>{const _0x329b54=_0x50f0ca;let _0x53eee1=_0x5aab70[_0x329b54(0x270)](),_0x679c85=this[_0x329b54(0x27a)]['get'](_0x53eee1);_0x679c85&&(_0x679c85[_0x329b54(0x317)](),this[_0x329b54(0x27a)][_0x329b54(0x1d7)](_0x53eee1));});}async[_0x1de16c(0x1c0)](_0x5a96d8,_0x1c8823){const _0x58f5d5=_0x1de16c;let _0x46ce31=await this['_collabSessionService']['requireSession'](_0x5a96d8),_0x2a72c1=this[_0x58f5d5(0x16d)][_0x58f5d5(0x215)](this[_0x58f5d5(0x1a8)](_0x1c8823),_0x5a96d8,_0x1c8823,_0x46ce31);return await _0x2a72c1[_0x58f5d5(0x399)](),this[_0x58f5d5(0x352)][_0x58f5d5(0x286)](_0x2a72c1),_0x2a72c1;}[_0x1de16c(0x1a8)](_0x2f7e3e){const _0x29d5f8=_0x1de16c;switch(_0x2f7e3e){case t[_0x29d5f8(0x20a)][_0x29d5f8(0x198)]:return R;case t[_0x29d5f8(0x20a)][_0x29d5f8(0x2b5)]:return z;default:throw Error(_0x29d5f8(0x2be)+_0x2f7e3e);}}};U=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t['Injector'])),v(0x1,(0x0,t[_0x1de16c(0x20f)])(H)),v(0x2,t['IConfigService']),v(0x3,t[_0x1de16c(0x1ca)])],U);var Ae=_0x1de16c(0x182),je=_0x1de16c(0x1ef);function _0x4f3f(){const _0x4b9d72=['HELLO','awaiting_with_pending','_transformRemoteChangesetByStateCache','CHANGESET_REJ','RETRY_CONNECTING_MAX_COUNT','unitId\x20is\x20not\x20found','ISnapshotServerService','[CollaborationUndoRedoService]','_removeRoom','LOCAL_CACHE_INTERVAL','_schedule','subject','PENDING','_clearTimeoutTimer','resourceIDs','getAllMembers','onTransformIME','fromCharCode','_sendingTimer','_httpService','getInterceptPoints','_onConflict','loginUrlKey','sessionStatus','method','headers','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_handler','url','DependentOn','size','get','IUndoRedoService','pending','_onRemoteChangeset','refreshPermission','unitID','ITelemetryService','[OfflineState]:\x20received\x20acknowledgement.','updateCursorEvent','MUTATION','_eventService','Optional','registerDependencies','session','slice','CollaborationImageIoService','deleteCollaborator','_socketReady','_acknowledgedAwaitingRevision','[SyncedState]:\x20received\x20rejection.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getActiveSheet','_clearUndo','_collaborationPaused','find','_rescheduleHeartbeat','_retryConnectingTimer','c1Prime','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_candidateSocket','merge','editingUnit','[CollaborationSessionService]:\x20socket\x20error','_updateLocalCache','onload','\x20to\x20','SheetTransformSelectionsService','POST','init','[PendingState]:\x20unhandled\x20univer\x20type:\x20','OPTIONAL','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_onRecvEvent','_maxTotalRetryTimeout','includes','__splitChunk__','reject','collaborators','_incrementRevisionNumber','rev','onRemoteRej','getCollabEntity$','/-/object/-/batch_allowed','_resendTimer','putCollaborators','getOwnPropertyDescriptor','_commandService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','removeMember','CombCmd','/universer-api/user/session-ticket','equals','UPDATE_CURSOR','_cfgEnableObjInherit','1771609QmGPdS','put','loadUnitOfRevision','BASE64','_updateState','disposeWithMe','LIVESHARE_NEW_HOST','takeUntil','MentionType','_replayCachedMutations','IContextService','revision','CHANGESET_ACK','_listenToNetworkCondition','fetching\x20missing\x20changesets\x20from\x20','some','_decreaseWaiting','_getSendChangesetTimeout','Subject','OTHER_CLIENT_EDITING','length','Failed\x20to\x20update\x20permission\x20point','getUnitType','univer-pro.collaboration-client-socket-service','IConfigService','SheetsSelectionsService','LIVESHARE_TERMINATE','params','setCfgEnableObjInherit','HEARTBEAT','src','sid','origin','_clearCollaborationTimeoutTimer','online$','CollaborationUIEventId','encrypt','onTransformRemoteChangesetByStateCache','getResourcesRequest','onMissingChangesets','isArray','updateMember','_toggleOnline','getFocusedUnit','_onUserJoin','not_collab','AWAITING_WITH_PENDING','isPermissionRej','OTHER_CLIENTS_EDITING','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_event$','requireSession','IPermissionService','_transformStack','randomBytes','transformSelections','href','missingChangesets','getImageSourceCache','reduce','session.room-cnt-exceeds','requestParams','/allowed','MSG_FOR_ERROR','{fileID}','_collaborationUIEventService','fetch_missing','getTime','RECV','routeKey','values','objectActions','session.room-permission-denied','findIndex','_onCombEvent','SHOULD_CLOSE_CONN','_localeService','registerHTTPInterceptor','body','_checkMissing','enableAuthServer','_state','_config','DataLoaderService','_disableEditing','Workbook','Error\x20on\x20receiving\x20event','toggleOnline','COMPRESS_MUTATION_APPLY','then','_retryCount','JOINING','entries','textRanges','[CollaborationSession]','clear','_getSignURL','[CollaborationState]:\x20apply\x20error!','getUnitStatus$','confirm','_onJoinRoomEvent','onStateChange','saveSheetBlock','\x0aAfter:\x20','getRoom','_transformUndoredo','sheets','253569uQAsQw','ITransformService','getTypeOfUnitAdded$','UserManagerService','mutations','_syncEditingCollabCursor','joinEvent','RichTextEditingMutation','HEARTBEAT_INTERVAL','CollaborationEntity','snapshotServerUrl','action','PERMISSION_DENIED','startTime','[UniverCollaborationClientPlugin]','fetchThroughInterceptors','readAsDataURL','getCfgEnableObjInherit','HTTPService','fetchMiss','localeService','save\x20fail\x20reason\x20is\x20','createCollaborator','updateOfflineData','concatBytes','post','dispose$','[CollaborationEntity]','DisposableCollection','catch','univer-pro.collaboration-client.single-active-unit-service','_initDependencies','IMentionIOService','subscribe','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','filter','?size=','CompressMutationService','_throwTelemetryCollaborationNewChangeset','_emitMembers','reqId','_networkConditionService','leaveEvent','SNAPSHOT_URL_KEY','_getUploadFileURL','_waitCount','startsWith','CollaborationStatus','MemberService','_resendWithTimeout','_injector','objectID','_isPermissionRej','_getCurrentRevision','CONFLICT','collaboration-client.local-cache-service','CollaborationUIEventService','floor','cfgEnableObjInherit','x-univer-host','FileId','setCurrentUser','_substituteUndoStack','_socketService','CollaborationSocketService','actions','getSheetBlock','909leoHUh','SetSelectionsOperation','OfflineState','addHandlerCallback','@univerjs-pro/collaboration-client','complete','closeSession','setWaitCount','push','delay','roles','\x20-\x20','_transformRemoteChangesetByIMECache','CHANGESET_SHOULD_RETRY','members$','SheetPermissionInitController','ICollaborationSocketService','_handleRemoteChangesets','selections','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','/unit/','csAckEvent','mapDocumentTypeToUniverInstanceType','PERMISSION_REJ','DEFAULT_COLLAB_WEB_SOCKET_URL','awaiting','UNIVER_DOC','_createSocket','_onFetchMissResult','_telemetryService','saveSnapshot','allowed','name','BehaviorSubject','type','createSocket','_status$','_stopTelemetryCollaborationNewChangeset','_replaceFileID','socket\x20open.','objectType','unknown','_getCtorByUniverInstanceType','textEncoder','default','stopTime','roomInfos','session.join-failed','/rev/','collaboratorID','CollaborativeUndoRedoService','override','initWorkbookPermissionChange','symbol','SheetCollaborationEntity','loadDoc','status$','ReplaySubject','IDLE','fetchMissingChangesets','_compressMutationService','_lockTransition','objects','LIVESHARE_REQUEST_HOST','resend','JSONX','_startCollaboration','charCodeAt','PendingState','_awaitingChangeset','collaboration-client.auth.needGotoLoginAlert','interceptor','[CollaborationSessionService]','has','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','ERROR_IMAGE','IUniverInstanceService','_shouldReportTelemetry','_acknowledgeAwaitingIfReady','AwaitingState','authzUrl','_state$','/universer-api/uniscript','_transformIMECache','Disposable','_unitID','onTransformRemoteChangesetByIMECache','/universer-api/authz','622422DpevWa','delete','focused$','__Key__','hostname','toDisposable','enableCollaboration','infoRsp','IImageIoService','_members','UniverLicensePlugin','uploadFileServerUrl','text-x','error','_imageSourceCache','liveShareOperation','b64DecodeUnicode','COMMENT_UPDATE','workbook','_tryEnsureSocket','asObservable','_resendTimeout','_sendHeartbeatTimer','/resources','_sendHeartbeat','0.25.0','RxDisposable','/new_changes','_changesetReqId','_executeRemoteChangeset','waitForRoom$','packageName','_showConflictNotification','/object/','AwaitingWithPendingState','_handlerCallback','SOCKET_FAILED','&assign=','CollaborationSessionService','retryConnectingInterval','_onLocalMutation','UUID','pipe','event$','downloadEndpointUrl','_clearRetryConnectingTimer','onSyncEditingCollabCursor','_doCreateSocket','subUnitId','getLatestCsReqIdBySid','_init','JOIN_ROOM_FULL','UniverInstanceType','_revisionService','isTransformChangesetsSuccess','LIVESHARE_OPERATION','Tools','Inject','utf8ToBytes','deserializeToCombResponse','INGEST','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getAPIPrefixPath','createInstance','listRoles','_undoRedoService','status','onSendChangeset','JOIN_ROOM_FAILED','_socketMessageSubscription','call','indexOf','appendMutation','unsubscribe','JOIN','_sheetTransformSelectionsService','_updateStatus','_createInitialStateImpl','_fetchMissChangesets','_roomCreated$','_transformService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','toPrimitive','_snapshotServerService','_sender','_telemetryInfo','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','file','decorate','_scheduleCollaborationTimeoutTimer','_commentUpdate$','_memberService','getTypeOfUnitDisposed$','/block/','list','SessionStatus','_getRedoStack','userID','_singleActiveUnitService','string','_getLoginPath','version','Quantity','connection\x20error','_changesetSessionId','_unlockTransition','ErrorCode','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','updateSnapshot','ILogService','csShouldRetryEvent','apply','_socket$','EmptyMutationInfo','set','m2Prime','_acknowledgeAwaiting','FETCH_MISSING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DEFAULT_FILE_NAME','collabSubmitChangesetUrl','sort','_onConnectionFailed','newCsEvent','message$','RETRY_CONNECTING_MAX_COUNT_KEY','HTTPRequest','CollaborationEvent','_pendingMutations','NOT_COLLAB','_snapshotService','/collaborator','_change$','_exhaustRemoteChangesetQueue','change$','Injector','socket$','collaMsg','_socket','close','emitEvent','_createInitialState','LIVESHARE_FETCH_OPERATIONS','_remoteChangesetQueue','_clearLocalCache','CommandType','updatePermissionObjEvent','getMember','getConfig','createIdentifier','close$','eventID','onCommentUpdate','UNISCRIPT_RUN','getUnitId','_scheduleCompleteTimestamp','number','deepClone','result','SyncedState','154260fVphOW','loadUnit','_collaborationTimeoutTimer','CommentService','_entities','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','CollaborationSession','/universer-api/file/{fileID}/sign-url','JOIN_ROOM_NOT_EXISTS','add','isTransformMutationsWithChangesetFailure','batchAllowed','/fetchmissing?from=','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','splice','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','next','uniscriptRunEvent','mergeOverrideWithDependencies','telemetry\x20info\x20is\x20not\x20initialized','copyFileMeta','parse','ONLINE','_waitForHeartbeatResponse','getGlobalObject','onRemoteRetry','16caxoBy','FileSource','range','session.room-full','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','getCurrentRevOfUnit','onlyLocal','LocaleService','_queuedRemoteChangesets','fromCollab','SOCKET_FAILED_RETRY','saveChangeset','AWAITING','_onOffline','PERSON','object','loadOfflineData','_unitInfo$','HEARTBEAT_TIMEOUT_KEY','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_initCloseConn','_startTelemetryCollaborationNewChangeset','from','_univerInstanceService','ICommandService','_getUndoStack','_configService','compose','_type','DEFAULT_WS_SESSION_TICKET_URL','_roomMembers','_sessionStatus$','_members$','_registerDependencies','toStringTag','SUBMIT_CHANGESET_TIMEOUT','IAuthzIoService','UNIVER_SHEET','responseType','/universer-api/snapshot','withCredentials','_sessions','&source=','replace','\x0aCurrent:\x20','LEAVE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_clearHeartbeatTimer','HEARTBEAT_TIMEOUT','_onRemoteRejected','getSnapshotAPIPath','InsertSheetMutation','getUnitOnRev','_permissionService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','readyForCollab','PSEUDO_FETCH_MISSING_RESULT','unitId','onRemoteAck','_clearRedo','onTransformSelections','socket\x20close','update','_tryReconnect','_substituteRedoStack','_applyRemoteChangeset','data','_HTTPService','isInternalEditorID','send','LOCAL_CACHE_INTERVAL_KEY','OFFLINE','stringify','failed\x20to\x20apply\x20missed\x20changesets!','transformStack\x20failed!','updateCollaborator','USERS_LEAVE','collaboration-client.config','_onRemoteACK','csRejEvent','onRemoteChangeset','_localCacheService','[PendingState]:\x20received\x20rejection.','shouldCloseConn','/-/object/list','getDrawingImageAllowSize','cmd','signUrlServerUrl','ThresholdInterceptorFactory','transformUndoRedo','every','RevisionService','CollaborationController','take','ERROR_IMAGE_TYPE','pauseCollaboration','originalMeta','isTransformMutationsWithChangesetSuccess','debug','forEach','_transformSelections','awaitingChangeset','state$','[PendingState]:\x20received\x20acknowledgement.','SYNCED','joinRsp','offline','_initMergeInterceptor','map','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_userManagerService','commentUpdate$','executeCommand','updatePermissionPoint','UniverCollaborationPlugin','_getDownloadEndpointURL','1883465WrQpjU','_initRequestHeader','getCollabEntity','transformMutationsWithChangeset','code','getUnit','\x20in\x20_schedule.','univer-pro.collaboration-client.network-condition.service','localCacheService','_logService','_toggleOffline','reverse','defineProperty','location','_createHandler','onMutationExecutedForCollab','GLOBAL_ROOMS_CNT_EXCEEDS','toggleOffline','WorkbookEditablePermission','dispose','USERS_ENTER','97010NZDoVt','ImageSourceType','ImageUploadStatusType','synced','generateRandomId','function','/object','parseProtocolChangeset','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','now','2634618azNqNo','c2Prime','getCurrentUser','conflict','open$','_timeoutTimer','onMissedChangesetFetched','_collabSessionService','SUBMIT_CHANGESET','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformState','onLocalMutation','_onMessage','_instanceService','_getAPIPrefix','[SyncedState]:\x20received\x20acknowledgement.','uuidv4','onStarting','_transformStateCache','baseRev','getDeserializedSheetBlock','_clearScheduledTask','parseChangesetToProtocol','_submitChangeset','encode','editing\x20status\x20changed\x20to','patch','memberID','_transitionLocked','constructor','unit','loadSheet','CmdRspCode','UPDATE_PERMISSION_OBJ','8DDvQVn','_transformAndApplyRemoteChangeset','pluginName','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','CLOSE_ROOM','commentUpdateEvent','min','UnitEmbedded','transformChangesets','touchDependencies','[OfflineState]:\x20received\x20changeset.','_collaborationSessionService','FetchingMissState','_entityInit$','avatar'];_0x4f3f=function(){return _0x4b9d72;};return _0x4f3f();}let Me=class extends t['Disposable']{constructor(_0x418a3f,_0x521d99){const _0x21d749=_0x1de16c;super(),this['_univerInstanceService']=_0x418a3f,this[_0x21d749(0x2aa)]=_0x521d99,this['_init']();}['_init'](){const _0x1769cf=_0x1de16c;this['disposeWithMe'](this[_0x1769cf(0x2a7)][_0x1769cf(0x1d8)][_0x1769cf(0x15c)](()=>{const _0x21a152=_0x1769cf;var _0x5046a6;let _0xc4ddaa=this[_0x21a152(0x2a7)][_0x21a152(0x3de)](),_0x562907=(_0x5046a6=this['_configService']['getConfig'](_0x21a152(0x24d)))==null?'Univer':_0x5046a6;_0xc4ddaa instanceof t[_0x21a152(0x408)]&&(_0x562907=_0xc4ddaa[_0x21a152(0x19e)]),document['title']=_0x562907;}));}};Me=y([v(0x0,t[_0x1de16c(0x1ca)]),v(0x1,t[_0x1de16c(0x3cb)])],Me);let W=class{constructor(_0x4aa04e,_0x490be0,_0x2d30f3){const _0x41ec05=_0x1de16c;this['_configService']=_0x4aa04e,this['_httpService']=_0x490be0,this[_0x41ec05(0x14f)]=_0x2d30f3,this['init']();}[_0x1de16c(0x399)](){const _0x2515e4=_0x1de16c;this[_0x2515e4(0x367)][_0x2515e4(0x400)]({'priority':0x1,'interceptor':(_0x29264e,_0x147ba5)=>_0x147ba5(_0x29264e)[_0x2515e4(0x200)]((0x0,i['concatMap'])(async _0x3cb0ca=>{const _0x159740=_0x2515e4;let _0x3cc282=_0x3cb0ca;if(_0x3cc282['status']===0x191){if(typeof window>'u')throw Error(_0x159740(0x294));if(window[_0x159740(0x133)](this['localeService']['t'](_0x159740(0x1c4)))){let _0x2935f9=window['encodeURIComponent'](window[_0x159740(0x311)]['href']);window['location'][_0x159740(0x3eb)]=this[_0x159740(0x23a)]()+'?url='+_0x2935f9;}}return _0x3cc282;}))});}['_getLoginPath'](){const _0x5910f4=_0x1de16c;var _0x240c00;let _0x37f238=this[_0x5910f4(0x2aa)][_0x5910f4(0x26a)](T);return(_0x240c00=_0x37f238==null?void 0x0:_0x37f238[_0x5910f4(0x36a)])==null?'/universer-api/oidc/authpage':_0x240c00;}};W=y([v(0x0,t[_0x1de16c(0x3cb)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)])),v(0x2,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x297)]))],W);let G=class extends t[_0x1de16c(0x1d2)]{constructor(_0x3e5caa,_0x452ad5){const _0x40c0b2=_0x1de16c;super(),this[_0x40c0b2(0x2d3)]=_0x3e5caa,this[_0x40c0b2(0x2aa)]=_0x452ad5,g(this,_0x40c0b2(0x3b2),!0x1),this[_0x40c0b2(0x2fb)]();}[_0x1de16c(0x2fb)](){const _0x30c0d1=_0x1de16c;let _0x4b60aa=this;this[_0x30c0d1(0x3b8)](this[_0x30c0d1(0x2d3)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,c['MergeInterceptorFactory'])({'isMatch'(_0x19e05b){const _0x32f7b4=_0x30c0d1;var _0xb6adc4;if(_0x19e05b[_0x32f7b4(0x36c)]===_0x32f7b4(0x398)&&(_0xb6adc4=_0x19e05b['requestParams'])!=null&&_0xb6adc4[_0x32f7b4(0x401)]){let {objectID:_0x17405c,objectType:_0x2c1ae1}=_0x19e05b[_0x32f7b4(0x3f0)]['body']||{};if(!_0x17405c||_0x2c1ae1===void 0x0)return!0x1;let _0x203c3b=_0x4b60aa[_0x32f7b4(0x214)]()+'/'+_0x2c1ae1+_0x32f7b4(0x1f7)+_0x17405c+_0x32f7b4(0x3f1);if(_0x19e05b['url']===_0x203c3b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2fdd2f){const _0x2ee978=_0x30c0d1;var _0x3900d7;return(_0x3900d7=_0x2fdd2f[_0x2ee978(0x3f0)])==null?void 0x0:_0x3900d7[_0x2ee978(0x401)];},'mergeParamsToRequest'(_0x1e90bb,_0x2c483e){const _0xf8bc70=_0x30c0d1;let _0x36a6c7=_0x4b60aa[_0xf8bc70(0x214)]()+_0xf8bc70(0x3a7),_0x3af6e6=_0x1e90bb[_0xf8bc70(0x3ee)]((_0x2ea1f7,_0x399214)=>{const _0x16a34f=_0xf8bc70;let {unitID:_0x4a5d80,objectID:_0x33f2d0,objectType:_0x5084fe,actions:_0x13dd93}=_0x399214;return _0x2ea1f7[_0x4a5d80]||(_0x2ea1f7[_0x4a5d80]={}),_0x2ea1f7[_0x4a5d80][_0x33f2d0]||(_0x2ea1f7[_0x4a5d80][_0x33f2d0]={'objectID':_0x33f2d0,'objectType':_0x5084fe,'actions':[]}),_0x2ea1f7[_0x4a5d80][_0x33f2d0][_0x16a34f(0x17c)]['push'](..._0x13dd93),_0x2ea1f7;},{}),_0x7ce58d=[];for(let _0x2dbe26 in _0x3af6e6)for(let _0x1a8dc5 in _0x3af6e6[_0x2dbe26]){let {actions:_0x4d28d8,objectType:_0x1b8cf6}=_0x3af6e6[_0x2dbe26][_0x1a8dc5],_0x345a5f=[...new Set(_0x4d28d8)];_0x7ce58d[_0xf8bc70(0x186)]({'unitID':_0x2dbe26,'objectID':_0x1a8dc5,'objectType':_0x1b8cf6,'actions':_0x345a5f});}return new c[(_0xf8bc70(0x254))](_0xf8bc70(0x398),_0x36a6c7,{'headers':_0x2c483e[_0xf8bc70(0x36d)],'withCredentials':_0x2c483e[_0xf8bc70(0x2b8)],'responseType':_0x2c483e[_0xf8bc70(0x2b6)],'body':{'requests':_0x7ce58d}});}},{'distributeResult'(_0x332b06,_0x1b6a91){const _0x2cb50c=_0x30c0d1;let {objectActions:_0x402f9e}=_0x332b06;return _0x1b6a91[_0x2cb50c(0x2fc)](_0x26873e=>{const _0x229d24=_0x2cb50c;let {unitID:_0x3d5f69,objectID:_0x4ab380,actions:_0x174b06}=_0x26873e,_0x449753=_0x402f9e['find'](_0x1a666c=>_0x1a666c[_0x229d24(0x378)]===_0x3d5f69&&_0x1a666c[_0x229d24(0x16e)]===_0x4ab380);return{'config':_0x26873e,'result':{'actions':_0x174b06[_0x229d24(0x2fc)](_0x12f409=>_0x449753==null?void 0x0:_0x449753[_0x229d24(0x17c)][_0x229d24(0x38b)](_0x29ed1d=>_0x29ed1d[_0x229d24(0x146)]===_0x12f409))['filter'](_0x2720f8=>!!_0x2720f8),'error':_0x332b06[_0x229d24(0x1e3)]}};});}})}));}[_0x1de16c(0x214)](){const _0x3c74df=_0x1de16c;var _0x5f536d;let _0x3d107c=this[_0x3c74df(0x2aa)][_0x3c74df(0x26a)](T);return(_0x5f536d=_0x3d107c==null?void 0x0:_0x3d107c['authzUrl'])==null?'/universer-api/authz':_0x5f536d;}async['create'](_0xdf7ce4){const _0x74f464=_0x1de16c;let _0x27d3ed=this[_0x74f464(0x214)]()+'/'+_0xdf7ce4[_0x74f464(0x1a6)]+_0x74f464(0x31f);return(await this[_0x74f464(0x2d3)][_0x74f464(0x154)](_0x27d3ed,{'body':_0xdf7ce4}))[_0x74f464(0x401)]['objectID']||'';}async[_0x1de16c(0x234)](_0x3a54c8){const _0x3a13f3=_0x1de16c;let _0x26a9e4=this[_0x3a13f3(0x214)]()+_0x3a13f3(0x2e4);return(await this[_0x3a13f3(0x2d3)]['post'](_0x26a9e4,{'body':_0x3a54c8}))[_0x3a13f3(0x401)][_0x3a13f3(0x1bc)];}async[_0x1de16c(0x2ce)](_0x179a69){const _0x55deef=_0x1de16c;var _0x1bb44e;let _0x47e612=this[_0x55deef(0x214)]()+'/'+_0x179a69[_0x55deef(0x1a6)]+'/object/'+_0x179a69[_0x55deef(0x16e)],_0xa09177=await this[_0x55deef(0x2d3)][_0x55deef(0x3b4)](_0x47e612,{'body':_0x179a69});if((_0xa09177==null||(_0x1bb44e=_0xa09177[_0x55deef(0x401)])==null||(_0x1bb44e=_0x1bb44e[_0x55deef(0x1e3)])==null?void 0x0:_0x1bb44e[_0x55deef(0x308)])!==0x1)throw Error(_0x55deef(0x3c8));}async[_0x1de16c(0x19d)](_0x2f1311){const _0x2e5f39=_0x1de16c;let _0x53db53=this[_0x2e5f39(0x214)]()+'/'+_0x2f1311[_0x2e5f39(0x1a6)]+_0x2e5f39(0x1f7)+_0x2f1311['objectID']+_0x2e5f39(0x3f1);return(await this[_0x2e5f39(0x2d3)][_0x2e5f39(0x154)](_0x53db53,{'body':_0x2f1311}))[_0x2e5f39(0x401)]['actions'];}async[_0x1de16c(0x281)](_0x43afb1){const _0x332a14=_0x1de16c;let _0x49bb90=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x332a14(0x2d3)][_0x332a14(0x154)](_0x49bb90,{'body':{'requests':_0x43afb1}}))[_0x332a14(0x401)][_0x332a14(0x3fa)];}async[_0x1de16c(0x216)](_0x3e9d30){const _0x5f2f2b=_0x1de16c;let _0x3009d3=this[_0x5f2f2b(0x214)]()+'/'+_0x3e9d30[_0x5f2f2b(0x1a6)]+'/role',_0x3a3d6a=await this[_0x5f2f2b(0x2d3)]['post'](_0x3009d3,{'body':_0x3e9d30});return{'roles':_0x3a3d6a['body'][_0x5f2f2b(0x188)],'actions':_0x3a3d6a[_0x5f2f2b(0x401)][_0x5f2f2b(0x17c)]};}async[_0x1de16c(0x383)](_0xa22e83){const _0x3e6f25=_0x1de16c;let _0x44ce2e=this[_0x3e6f25(0x214)]()+'/collaborator';await this[_0x3e6f25(0x2d3)]['delete'](_0x44ce2e,{'params':{'collaboratorID':_0xa22e83[_0x3e6f25(0x1af)],'objectID':_0xa22e83['objectID'],'unitID':_0xa22e83[_0x3e6f25(0x378)]}});}async[_0x1de16c(0x2db)](_0x1ab065){const _0x4c53a8=_0x1de16c;let _0x526478=this[_0x4c53a8(0x214)]()+_0x4c53a8(0x259);await this[_0x4c53a8(0x2d3)][_0x4c53a8(0x33d)](_0x526478,{'body':_0x1ab065});}async[_0x1de16c(0x151)](_0x26e2fe){const _0x381efd=_0x1de16c;let _0x2ae48d=this[_0x381efd(0x214)]()+_0x381efd(0x259);await this[_0x381efd(0x2d3)][_0x381efd(0x154)](_0x2ae48d,{'body':_0x26e2fe});}async['listCollaborators'](_0x15012c){const _0x4272fb=_0x1de16c;var _0x210afa;let _0x4c3c03=this[_0x4272fb(0x214)]()+'/collaborator',_0x2d787b=await this[_0x4272fb(0x2d3)][_0x4272fb(0x373)](_0x4c3c03,{'params':{'objectID':_0x15012c[_0x4272fb(0x16e)],'unitID':_0x15012c[_0x4272fb(0x378)]}});return this[_0x4272fb(0x3cf)]((_0x210afa=_0x2d787b[_0x4272fb(0x401)][_0x4272fb(0x175)])==null?!0x1:_0x210afa),_0x2d787b[_0x4272fb(0x401)][_0x4272fb(0x3a2)];}async[_0x1de16c(0x3a9)](_0x318af9){const _0x5998a9=_0x1de16c;let _0x4627a6=this[_0x5998a9(0x214)]()+_0x5998a9(0x259);await this[_0x5998a9(0x2d3)][_0x5998a9(0x3b4)](_0x4627a6,{'body':_0x318af9});}[_0x1de16c(0x3cf)](_0x2410a9){this['_cfgEnableObjInherit']=_0x2410a9;}[_0x1de16c(0x14c)](){const _0xdb5a2a=_0x1de16c;return this[_0xdb5a2a(0x3b2)];}};G=y([v(0x0,(0x0,t['Inject'])(c[_0x1de16c(0x14d)])),v(0x1,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x3cb)]))],G);function Ne(_0x53ef06){const _0x2d66ba=_0x1de16c;let _0x4acf96=atob(_0x53ef06),_0x323e92=new Uint8Array(_0x4acf96[_0x2d66ba(0x3c7)]);for(let _0x10af90=0x0;_0x10af90<_0x4acf96['length'];_0x10af90++)_0x323e92[_0x10af90]=_0x4acf96[_0x2d66ba(0x1c1)](_0x10af90);return _0x323e92;}function Pe(_0x1ec8ad){const _0x4df657=_0x1de16c;let _0x174868='';for(let _0x1e83bc=0x0;_0x1e83bc<_0x1ec8ad[_0x4df657(0x3c7)];_0x1e83bc++)_0x174868+=String[_0x4df657(0x365)](_0x1ec8ad[_0x1e83bc]);return btoa(_0x174868);}function Fe(_0x455f2d,_0x3aae9e){const _0x1470ca=_0x1de16c;let _0x573f68=Ne(_0x3aae9e),_0x8a4ec0=(0x0,f[_0x1470ca(0x3e9)])(0x10);return Pe((0x0,f[_0x1470ca(0x153)])(_0x8a4ec0,(0x0,d['cbc'])(_0x573f68,_0x8a4ec0)[_0x1470ca(0x3d7)]((0x0,f[_0x1470ca(0x210)])(_0x455f2d))));}function Ie(){const _0x2b33d2=_0x1de16c;let _0x1868a3=(0x0,l[_0x2b33d2(0x28e)])()[_0x2b33d2(0x1d9)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x1868a3){let _0x1b35fb={'time':Math[_0x2b33d2(0x174)](Date['now']()/0x3e8),'domain':location[_0x2b33d2(0x1da)]};return Fe(JSON[_0x2b33d2(0x2d8)](_0x1b35fb),_0x1868a3);}}let K=class{constructor(_0x15f5c3){const _0x2588c7=_0x1de16c;this[_0x2588c7(0x367)]=_0x15f5c3,this['_initRequestHeader']();}[_0x1de16c(0x305)](){const _0x26719a=_0x1de16c;this['_httpService'][_0x26719a(0x400)]({'interceptor':(_0x1dfd5b,_0x3c5f4a)=>{const _0xd3ce52=_0x26719a;let _0x44de7d=Ie();return _0x44de7d&&_0x1dfd5b[_0xd3ce52(0x36d)][_0xd3ce52(0x248)](_0xd3ce52(0x176),_0x44de7d),_0x3c5f4a(_0x1dfd5b);}});}};K=y([v(0x0,(0x0,t['Inject'])(c['HTTPService']))],K);let q=class extends t['RxDisposable']{constructor(_0x4447e8,_0x39b3b5,_0x2f7f5f){const _0x2b24f1=_0x1de16c;super(),this[_0x2b24f1(0x30d)]=_0x4447e8,this[_0x2b24f1(0x258)]=_0x39b3b5,this[_0x2b24f1(0x2e1)]=_0x2f7f5f,g(this,_0x2b24f1(0x2a1),new i[(_0x2b24f1(0x19f))](null)),g(this,'unitInfo$',this['_unitInfo$'][_0x2b24f1(0x1ea)]());}async[_0x1de16c(0x3b5)](_0x4e57d5,_0x1bda22,_0x34476f){const _0xc8995c=_0x1de16c;this[_0xc8995c(0x2a1)][_0xc8995c(0x286)]({'unitId':_0x4e57d5,'type':_0x1bda22});let _0x5a1afb=null;switch(_0x1bda22){case t[_0xc8995c(0x20a)][_0xc8995c(0x2b5)]:_0x5a1afb=await this[_0xc8995c(0x258)][_0xc8995c(0x342)](_0x4e57d5,_0x34476f);break;case t[_0xc8995c(0x20a)][_0xc8995c(0x198)]:_0x5a1afb=await this['_snapshotService'][_0xc8995c(0x1b5)](_0x4e57d5,_0x34476f);break;default:this['_logService'][_0xc8995c(0x1e3)]('[DataLoaderService]',_0xc8995c(0x39c));break;}return _0x5a1afb;}async[_0x1de16c(0x277)](_0x1bdc57,_0x2938e9,_0x2a5398){const _0xb75861=_0x1de16c;var _0x1563cb;this[_0xb75861(0x2a1)][_0xb75861(0x286)]({'unitId':_0x1bdc57,'type':_0x2938e9,'subUnitId':_0x2a5398});let _0x17806e=0x0,_0x21b87d=await((_0x1563cb=this[_0xb75861(0x2e1)])==null?void 0x0:_0x1563cb[_0xb75861(0x2a0)](_0x1bdc57));return _0x21b87d&&(_0x21b87d[_0xb75861(0x2f5)]||_0x21b87d[_0xb75861(0x13f)][_0xb75861(0x3c7)]!==0x0)&&(_0x17806e=_0x21b87d[_0xb75861(0x3a4)]),_0x17806e===0x0&&this['_logService'][_0xb75861(0x2f2)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xb75861(0x3b5)](_0x1bdc57,_0x2938e9,_0x17806e);}};q=y([v(0x0,t[_0x1de16c(0x243)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(e['SnapshotService'])),v(0x2,(0x0,t[_0x1de16c(0x37e)])(S))],q);let J=class{constructor(_0x3c1489,_0x554d65,_0x555304){const _0x27644f=_0x1de16c;this['_httpService']=_0x3c1489,this[_0x27644f(0x2aa)]=_0x554d65,this[_0x27644f(0x2a7)]=_0x555304,g(this,_0x27644f(0x168),0x0),g(this,'_change$',new i[(_0x27644f(0x3c5))]()),g(this,_0x27644f(0x25c),this['_change$']),g(this,_0x27644f(0x1e4),new Map());}[_0x1de16c(0x185)](_0xff52a7){const _0x58ee2e=_0x1de16c;this[_0x58ee2e(0x168)]=_0xff52a7,this['_change$'][_0x58ee2e(0x286)](_0xff52a7);}[_0x1de16c(0x3ed)](_0x799307,_0x5ced72){const _0x2cb3f6=_0x1de16c;if(_0x5ced72===u['ImageSourceType'][_0x2cb3f6(0x3b6)]){let _0x4fefb1=new Image();return _0x4fefb1[_0x2cb3f6(0x3d1)]=_0x799307,_0x4fefb1;}return this[_0x2cb3f6(0x1e4)][_0x2cb3f6(0x373)](_0x799307);}['addImageSourceCache'](_0x127188,_0x5b2321,_0x573736){const _0x14f90f=_0x1de16c;_0x5b2321===u[_0x14f90f(0x31a)][_0x14f90f(0x3b6)]||_0x573736==null||this[_0x14f90f(0x1e4)][_0x14f90f(0x248)](_0x127188,_0x573736);}async['getImage'](_0x4ed21a){const _0x1b2392=_0x1de16c;try{let _0x4e3313=this[_0x1b2392(0x1a4)](this[_0x1b2392(0x130)](),''+_0x4ed21a),_0x33d28e=(await this['_httpService']['get'](_0x4e3313))[_0x1b2392(0x401)];if(_0x33d28e[_0x1b2392(0x1e3)]&&_0x33d28e[_0x1b2392(0x1e3)][_0x1b2392(0x308)]===a[_0x1b2392(0x240)]['OK']){let _0x389915=(0x0,t['resolveWithBasePath'])(_0x33d28e[_0x1b2392(0x370)],this[_0x1b2392(0x303)]());return Promise['resolve'](_0x389915);}return Promise['reject'](_0x33d28e[_0x1b2392(0x1e3)]);}catch(_0x1d44de){return Promise[_0x1b2392(0x3a1)](_0x1d44de);}}async['saveImage'](_0x13c6c6){const _0x4fd577=_0x1de16c;let _0x33b77b='';if(!u[_0x4fd577(0x3e4)][_0x4fd577(0x39f)](_0x13c6c6[_0x4fd577(0x1a0)]))return this[_0x4fd577(0x3c3)](),Promise[_0x4fd577(0x3a1)](Error(u['ImageUploadStatusType'][_0x4fd577(0x2ee)]));if(_0x13c6c6[_0x4fd577(0x372)]>(0x0,u[_0x4fd577(0x2e5)])())return this[_0x4fd577(0x3c3)](),Promise[_0x4fd577(0x3a1)](Error(u[_0x4fd577(0x31b)]['ERROR_EXCEED_SIZE']));try{let _0x53e7a7=new FormData();_0x53e7a7['append'](_0x4fd577(0x22d),_0x13c6c6);let _0x4270e1=this[_0x4fd577(0x2a7)]['getFocusedUnit'](),_0x34842b=_0x4270e1==null?void 0x0:_0x4270e1[_0x4fd577(0x270)]();if(!_0x34842b)throw Error(_0x4fd577(0x359));let _0x5936b8=this[_0x4fd577(0x167)]()+_0x4fd577(0x15f)+_0x13c6c6[_0x4fd577(0x372)]['toString']()+_0x4fd577(0x2ba)+a[_0x4fd577(0x291)][_0x4fd577(0x34c)]+_0x4fd577(0x1fb)+encodeURIComponent(_0x34842b),_0x302ec8={'body':_0x53e7a7},_0x5b0548=(await this[_0x4fd577(0x367)][_0x4fd577(0x154)](_0x5936b8,_0x302ec8))[_0x4fd577(0x401)];if(typeof _0x5b0548[_0x4fd577(0x177)]!=_0x4fd577(0x239))return this['_decreaseWaiting'](),Promise[_0x4fd577(0x3a1)](Error(u[_0x4fd577(0x31b)][_0x4fd577(0x1c9)]));_0x33b77b=_0x5b0548[_0x4fd577(0x177)];}catch{return this[_0x4fd577(0x3c3)](),Promise[_0x4fd577(0x3a1)](Error(u[_0x4fd577(0x31b)][_0x4fd577(0x1c9)]));}return new Promise((_0x41d04f,_0x33b520)=>{const _0x222396=_0x4fd577;let _0x5827a3=new FileReader();_0x5827a3[_0x222396(0x14b)](_0x13c6c6),_0x5827a3[_0x222396(0x395)]=_0x4ef3a0=>{const _0x25fe3b=_0x222396;var _0x3965a8;let _0x3b71d3=(_0x3965a8=_0x4ef3a0['target'])==null?void 0x0:_0x3965a8[_0x25fe3b(0x274)];if(_0x3b71d3==null){this[_0x25fe3b(0x3c3)](),_0x33b520(Error(u['ImageUploadStatusType']['ERROR_IMAGE']));return;}_0x41d04f({'imageId':(0x0,t[_0x25fe3b(0x31d)])(0x6),'imageSourceType':u[_0x25fe3b(0x31a)][_0x25fe3b(0x1ff)],'source':_0x33b77b,'base64Cache':_0x3b71d3,'status':u[_0x25fe3b(0x31b)]['SUCCUSS']}),this[_0x25fe3b(0x3c3)]();};});}[_0x1de16c(0x167)](){const _0x25f9b8=_0x1de16c;var _0x39d888;let _0x12b1bc=this['_configService'][_0x25f9b8(0x26a)](T);return(_0x39d888=_0x12b1bc==null?void 0x0:_0x12b1bc[_0x25f9b8(0x1e1)])==null?'/universer-api/stream/file/upload':_0x39d888;}[_0x1de16c(0x130)](){const _0x30feec=_0x1de16c;var _0xb84d8e;let _0x33b975=this['_configService'][_0x30feec(0x26a)](T);return(_0xb84d8e=_0x33b975==null?void 0x0:_0x33b975[_0x30feec(0x2e7)])==null?_0x30feec(0x27d):_0xb84d8e;}[_0x1de16c(0x303)](){const _0x14e616=_0x1de16c;var _0x44e041;let _0x547722=this['_configService'][_0x14e616(0x26a)](T);return(_0x44e041=_0x547722==null?void 0x0:_0x547722[_0x14e616(0x202)])==null?location[_0x14e616(0x3d3)]:_0x44e041;}[_0x1de16c(0x1a4)](_0x396db8,_0x55fafc){const _0x47522d=_0x1de16c;return _0x396db8[_0x47522d(0x2bb)](_0x47522d(0x3f3),_0x55fafc);}[_0x1de16c(0x3c3)](){const _0x1623bd=_0x1de16c;--this['_waitCount'],this[_0x1623bd(0x25a)][_0x1623bd(0x286)](this[_0x1623bd(0x168)]);}};J=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)])),v(0x1,t[_0x1de16c(0x3cb)]),v(0x2,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x1ca)]))],J);let Y=class{constructor(_0x5558ad,_0x3488ce){const _0x7f943f=_0x1de16c;this[_0x7f943f(0x2aa)]=_0x5558ad,this[_0x7f943f(0x2d3)]=_0x3488ce;}[_0x1de16c(0x214)](){const _0x1dbdaf=_0x1de16c;var _0x5d17a2;let _0x555631=this[_0x1dbdaf(0x2aa)][_0x1dbdaf(0x26a)](T);return(_0x5d17a2=_0x555631==null?void 0x0:_0x555631[_0x1dbdaf(0x1ce)])==null?_0x1dbdaf(0x1d5):_0x5d17a2;}async[_0x1de16c(0x234)](_0x3778d9){const _0x401c94=_0x1de16c;let _0x3698f8=this[_0x401c94(0x214)]()+_0x401c94(0x259);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x401c94(0x373)](_0x3698f8,{'params':{'objectID':_0x3778d9[_0x401c94(0x2c9)],'unitID':_0x3778d9['unitId']}}))[_0x401c94(0x401)][_0x401c94(0x3a2)][_0x401c94(0x2fc)](_0x29d44d=>({'objectId':_0x29d44d['id'],'name':_0x29d44d['subject'][_0x401c94(0x19e)],'metadata':{'icon':_0x29d44d[_0x401c94(0x35f)][_0x401c94(0x353)]},'label':_0x29d44d[_0x401c94(0x35f)][_0x401c94(0x19e)],'objectType':t['MentionType'][_0x401c94(0x29e)]})),'metadata':{},'type':t[_0x401c94(0x3bb)][_0x401c94(0x29e)]}]};}};Y=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x3cb)])),v(0x1,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)]))],Y);let X=class extends t['RxDisposable']{constructor(_0x290b75,_0x9c5691,_0x5a6769,_0x56d680,_0x357b2d){const _0x1af5fe=_0x1de16c;super(),this[_0x1af5fe(0x16d)]=_0x290b75,this[_0x1af5fe(0x2a7)]=_0x9c5691,this['_permissionService']=_0x5a6769,this[_0x1af5fe(0x350)]=_0x56d680,this[_0x1af5fe(0x3f4)]=_0x357b2d,this['_initUnitPermissionChange'](),this[_0x1af5fe(0x2a4)]();}[_0x1de16c(0x2a4)](){const _0x42eaf9=_0x1de16c;let _0x2fb33d=async _0x2ea2cc=>{const _0x55d5f6=_0x3896;(await this[_0x55d5f6(0x350)][_0x55d5f6(0x3e6)](_0x2ea2cc))[_0x55d5f6(0x201)][_0x55d5f6(0x200)]((0x0,s['filter'])(_0x2ffecb=>_0x2ffecb[_0x55d5f6(0x26d)]===e[_0x55d5f6(0x255)][_0x55d5f6(0x3fe)]),(0x0,s[_0x55d5f6(0x3ba)])(this[_0x55d5f6(0x155)]))[_0x55d5f6(0x15c)](_0x55119a=>{const _0x4c4380=_0x55d5f6;let {reason:_0x273415}=_0x55119a[_0x4c4380(0x2d2)];this['_collaborationUIEventService'][_0x4c4380(0x262)]({'id':_0x4c4380(0x349),'data':_0x273415}),this[_0x4c4380(0x2c5)][_0x4c4380(0x301)](new r[(_0x4c4380(0x316))](_0x2ea2cc)['id'],!0x1),this[_0x4c4380(0x350)][_0x4c4380(0x184)](_0x2ea2cc);});};(0x0,i[_0x42eaf9(0x391)])(this['_univerInstanceService'][_0x42eaf9(0x13d)](t[_0x42eaf9(0x20a)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x42eaf9(0x13d)](t[_0x42eaf9(0x20a)][_0x42eaf9(0x198)]))[_0x42eaf9(0x200)]((0x0,s[_0x42eaf9(0x2fc)])(_0x7630f9=>_0x7630f9[_0x42eaf9(0x341)][_0x42eaf9(0x270)]()),(0x0,s[_0x42eaf9(0x15e)])(_0x3467c8=>!(0x0,t[_0x42eaf9(0x2d4)])(_0x3467c8)),(0x0,s['takeUntil'])(this[_0x42eaf9(0x155)]))[_0x42eaf9(0x15c)](_0x2df618=>{_0x2fb33d(_0x2df618);});}['_initUnitPermissionChange'](){const _0x1280af=_0x1de16c;let _0x160efa=async _0x56b370=>{const _0x82923=_0x3896;let _0x5277cb=await this[_0x82923(0x350)][_0x82923(0x3e6)](_0x56b370),_0x417eab=this[_0x82923(0x16d)][_0x82923(0x373)](r[_0x82923(0x18d)]);_0x5277cb['event$'][_0x82923(0x200)]((0x0,s[_0x82923(0x15e)])(_0x557124=>_0x557124[_0x82923(0x26d)]===e[_0x82923(0x255)][_0x82923(0x344)]),(0x0,s[_0x82923(0x3ba)])(this[_0x82923(0x155)]))['subscribe'](_0x2a45e2=>{const _0x37070a=_0x82923;let {objectId:_0x19872e}=_0x2a45e2[_0x37070a(0x2d2)];_0x19872e===_0x56b370?_0x417eab[_0x37070a(0x1b2)](_0x56b370):_0x417eab[_0x37070a(0x377)](_0x56b370,_0x19872e);});};(0x0,i[_0x1280af(0x391)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType']['UNIVER_SHEET']))[_0x1280af(0x200)]((0x0,s[_0x1280af(0x2fc)])(_0x30a179=>_0x30a179[_0x1280af(0x341)]['getUnitId']()),(0x0,s[_0x1280af(0x15e)])(_0x46f2c4=>!(0x0,t[_0x1280af(0x2d4)])(_0x46f2c4)),(0x0,s[_0x1280af(0x3ba)])(this['dispose$']))[_0x1280af(0x15c)](_0x29327b=>{_0x160efa(_0x29327b);});}};X=y([v(0x0,(0x0,t['Inject'])(t[_0x1de16c(0x25d)])),v(0x1,t[_0x1de16c(0x1ca)]),v(0x2,t[_0x1de16c(0x3e7)]),v(0x3,(0x0,t['Inject'])(H)),v(0x4,(0x0,t[_0x1de16c(0x20f)])(_))],X);let Z=class{constructor(_0x29f3ef,_0x37c022){const _0x49af95=_0x1de16c;this['_configService']=_0x29f3ef,this[_0x49af95(0x367)]=_0x37c022;}async[_0x1de16c(0x2c4)](_0x38e878,_0x2c8f38){const _0x2a7b81=_0x1de16c;var _0x512277;let {unitID:_0xb3335f,type:_0x1a2e1c,revision:_0x5da00d=0x0}=_0x2c8f38,_0x3bf189=this[_0x2a7b81(0x2c2)]()+'/'+_0x1a2e1c+_0x2a7b81(0x192)+_0xb3335f+_0x2a7b81(0x1ae)+_0x5da00d,_0x438a95=(await this['_httpService']['get'](_0x3bf189))[_0x2a7b81(0x401)],_0x1f1357=(_0x512277=_0x438a95['snapshot'])==null?void 0x0:_0x512277[_0x2a7b81(0x1e8)];if(_0x1f1357){let _0x4790f9=_0x1f1357==null?void 0x0:_0x1f1357[_0x2a7b81(0x2f0)];_0x1f1357[_0x2a7b81(0x2f0)]=e[_0x2a7b81(0x1a9)][_0x2a7b81(0x33b)]((0x0,e[_0x2a7b81(0x1e6)])(_0x4790f9)),Object[_0x2a7b81(0x12c)](_0x1f1357[_0x2a7b81(0x13a)])[_0x2a7b81(0x2f3)](([,_0x3f3be2])=>{const _0x246bc6=_0x2a7b81;let _0x23f490=_0x3f3be2[_0x246bc6(0x2f0)];_0x3f3be2[_0x246bc6(0x2f0)]=e[_0x246bc6(0x1a9)]['encode']((0x0,e['b64DecodeUnicode'])(_0x23f490));});}return _0x438a95;}async[_0x1de16c(0x17d)](_0x29c1cd,_0x524b18){const _0x1ad95d=_0x1de16c;let {unitID:_0x5a82c6,type:_0x5cab7b,blockID:_0x471dcd}=_0x524b18,_0x1ecb98=this[_0x1ad95d(0x331)]()+'/'+_0x5cab7b+'/unit/'+_0x5a82c6+'/block/'+_0x471dcd;return(await this['_httpService'][_0x1ad95d(0x373)](_0x1ecb98))[_0x1ad95d(0x401)];}async[_0x1de16c(0x337)](_0x4b3528,_0x4e7156){const _0x2c2238=_0x1de16c;let {unitID:_0x2d9b7f,type:_0x386e3e,blockID:_0x471b85}=_0x4e7156,_0x484c46=this[_0x2c2238(0x331)]()+_0x2c2238(0x233)+_0x386e3e+_0x2c2238(0x192)+_0x2d9b7f+'/block/'+_0x471b85;return(await this[_0x2c2238(0x367)][_0x2c2238(0x373)](_0x484c46))[_0x2c2238(0x401)];}async[_0x1de16c(0x1b9)](_0x31ed54,_0x244fe4){const _0x32bc8f=_0x1de16c;let {unitID:_0x5e7636,type:_0x47ec18,from:_0x4376f1,to:_0x57ada5}=_0x244fe4,_0x3f4607=this[_0x32bc8f(0x331)]()+'/'+_0x47ec18+'/unit/'+_0x5e7636+_0x32bc8f(0x282)+_0x4376f1+'&to='+_0x57ada5;return(await this['_httpService'][_0x32bc8f(0x373)](_0x3f4607))['body'];}[_0x1de16c(0x2c2)](){const _0x2991a7=_0x1de16c;var _0x309140;return(_0x309140=this[_0x2991a7(0x2aa)][_0x2991a7(0x26a)](_0x2991a7(0x166)))==null?this[_0x2991a7(0x331)]():_0x309140;}[_0x1de16c(0x331)](){const _0x5a4be8=_0x1de16c;var _0xe2cd2;let _0x6c95a8=this['_configService'][_0x5a4be8(0x26a)](T);return(_0xe2cd2=_0x6c95a8==null?void 0x0:_0x6c95a8[_0x5a4be8(0x145)])==null?_0x5a4be8(0x2b7):_0xe2cd2;}async[_0x1de16c(0x3d9)](_0x219be6,_0x53cfc8){const _0x28fdb9=_0x1de16c;let _0x447ab3='/universer-api/snapshot/'+_0x53cfc8[_0x28fdb9(0x1a0)]+_0x28fdb9(0x192)+_0x53cfc8[_0x28fdb9(0x378)]+_0x28fdb9(0x1ed);return(await this[_0x28fdb9(0x367)][_0x28fdb9(0x373)](_0x447ab3,{'params':{'resourceId':JSON[_0x28fdb9(0x2d8)](_0x53cfc8[_0x28fdb9(0x362)])}}))[_0x28fdb9(0x401)];}[_0x1de16c(0x19c)](){const _0x649aa6=_0x1de16c;throw Error(_0x649aa6(0x22c));}[_0x1de16c(0x242)](){const _0x507c64=_0x1de16c;throw Error(_0x507c64(0x22c));}[_0x1de16c(0x136)](){const _0x29c764=_0x1de16c;throw Error(_0x29c764(0x22c));}[_0x1de16c(0x29b)](){const _0x46094d=_0x1de16c;throw Error(_0x46094d(0x22c));}[_0x1de16c(0x28a)](){const _0x2d5ea1=_0x1de16c;throw Error(_0x2d5ea1(0x22c));}[_0x1de16c(0x207)](){const _0x23b0fd=_0x1de16c;throw Error(_0x23b0fd(0x22c));}};Z=y([v(0x0,t[_0x1de16c(0x3cb)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)]))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x1c1f8b,_0x45085e,_0x1f8ef8,_0x2d9161,_0x305b5c){const _0x2377f0=_0x1de16c;super(_0x1c1f8b,_0x45085e,_0x1f8ef8),this['_transformService']=_0x2d9161,this[_0x2377f0(0x30d)]=_0x305b5c;}['transformUndoRedo'](_0x2c21e6,_0x2732b5){const _0x3b326c=_0x1de16c;let _0x89aa77=this[_0x3b326c(0x2a9)](_0x2c21e6);if(_0x89aa77)try{let _0x51a58b=this[_0x3b326c(0x3e8)](_0x89aa77,_0x2732b5);this[_0x3b326c(0x179)](_0x2c21e6,_0x51a58b);}catch(_0x330c0c){this[_0x3b326c(0x30d)]['error'](_0x3b326c(0x35b),_0x330c0c),this[_0x3b326c(0x389)](_0x2c21e6);}let _0x429ad0=this['_getRedoStack'](_0x2c21e6);if(_0x429ad0)try{let _0x16c1c9=this[_0x3b326c(0x3e8)](_0x429ad0,_0x2732b5);this[_0x3b326c(0x2d0)](_0x2c21e6,_0x16c1c9);}catch(_0x5994b8){this['_logService'][_0x3b326c(0x1e3)](_0x5994b8),this[_0x3b326c(0x2cb)](_0x2c21e6);}}[_0x1de16c(0x389)](_0x3a2f78){const _0x152f21=_0x1de16c;let _0x20edaa=this[_0x152f21(0x2a9)](_0x3a2f78);_0x20edaa&&(_0x20edaa['length']=0x0,this['_updateStatus']());}[_0x1de16c(0x2cb)](_0x5011d2){const _0x406c75=_0x1de16c;let _0x442ee2=this[_0x406c75(0x236)](_0x5011d2);_0x442ee2&&(_0x442ee2['length']=0x0,this[_0x406c75(0x222)]());}['_substituteUndoStack'](_0x568944,_0x28d381){const _0x444eea=_0x1de16c;this['_undoStacks'][_0x444eea(0x248)](_0x568944,_0x28d381),this['_updateStatus']();}['_substituteRedoStack'](_0x21bc79,_0x7c58ad){const _0xe15f9d=_0x1de16c;this['_redoStacks'][_0xe15f9d(0x248)](_0x21bc79,_0x7c58ad),this[_0xe15f9d(0x222)]();}['_transformStack'](_0xba5873,_0x17a590){const _0x4354e2=_0x1de16c;let _0x19cfc0=[],_0x2d2327=_0x17a590,_0xe93503=_0x17a590;for(let _0x2ba8cb=_0xba5873[_0x4354e2(0x3c7)]-0x1;_0x2ba8cb>=0x0;_0x2ba8cb--){let {unitID:_0x10faa8,undoMutations:_0x4fb8c7,redoMutations:_0x215636}=_0xba5873[_0x2ba8cb],_0x54cf07=this[_0x4354e2(0x226)]['transformMutationsWithChangeset'](_0x2d2327,_0x4fb8c7),_0x46780d=this[_0x4354e2(0x226)][_0x4354e2(0x307)](_0xe93503,_0x215636);if((0x0,e[_0x4354e2(0x280)])(_0x54cf07)||(0x0,e[_0x4354e2(0x280)])(_0x46780d)){this[_0x4354e2(0x30d)]['error'](_0x4354e2(0x35b),_0x4354e2(0x2da),_0x54cf07,_0x46780d);break;}_0x2d2327=_0x54cf07[_0x4354e2(0x38e)],_0xe93503=_0x46780d[_0x4354e2(0x38e)],_0x19cfc0[_0x4354e2(0x186)]({'unitID':_0x10faa8,'undoMutations':_0x54cf07['m2Prime'],'redoMutations':_0x46780d[_0x4354e2(0x249)]});}return _0x19cfc0[_0x4354e2(0x30f)]();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x1de16c(0x2a8)]),v(0x2,t[_0x1de16c(0x3bd)]),v(0x3,e[_0x1de16c(0x13c)]),v(0x4,t[_0x1de16c(0x243)])],Q);let $=class extends t['Plugin']{constructor(_0x3d804d={},_0x5920d9,_0x245574,_0x263dfa){const _0x2327f1=_0x1de16c;super(),this[_0x2327f1(0x405)]=_0x3d804d,this[_0x2327f1(0x30d)]=_0x5920d9,this[_0x2327f1(0x16d)]=_0x245574,this['_configService']=_0x263dfa;let {..._0x1d95eb}=(0x0,t[_0x2327f1(0x391)])({},de,_0x3d804d);if(!_0x1d95eb['socketService'])throw Error(_0x2327f1(0x2a3));this[_0x2327f1(0x405)]=_0x1d95eb,this[_0x2327f1(0x2aa)]['setConfig'](T,_0x1d95eb);}[_0x1de16c(0x334)](){const _0x3eb148=_0x1de16c;this[_0x3eb148(0x2b1)](),this[_0x3eb148(0x15a)]();}[_0x1de16c(0x2b1)](){const _0x1b7024=_0x1de16c;var _0x1bc7a2,_0x1d219e;this[_0x1b7024(0x16d)][_0x1b7024(0x1c7)](t[_0x1b7024(0x374)])&&this['_logService'][_0x1b7024(0x1e3)](_0x1b7024(0x149),_0x1b7024(0x2c6));let _0x3e5a3c=(0x0,t[_0x1b7024(0x288)])([[t[_0x1b7024(0x374)],{'useClass':Q}],[H],[b],[C],[W],[K],[ie],[X],[_],[q],[B,{'useClass':this[_0x1b7024(0x405)]['socketService']}],[e['ISnapshotServerService'],{'useClass':Z}],[t[_0x1b7024(0x2b4)],{'useClass':G}],[u[_0x1b7024(0x1de)],{'useClass':J}],[t[_0x1b7024(0x15b)],{'useClass':Y}],[U],[Me]],(_0x1bc7a2=this[_0x1b7024(0x405)])==null?void 0x0:_0x1bc7a2[_0x1b7024(0x1b1)]);if(!((_0x1d219e=this[_0x1b7024(0x405)])!=null&&_0x1d219e['enableSingleActiveInstanceLock'])){let _0x1630ef=_0x3e5a3c[_0x1b7024(0x3fc)](([_0x11c30b])=>_0x11c30b===w);_0x1630ef!==-0x1&&_0x3e5a3c[_0x1b7024(0x284)](_0x1630ef,0x1);}(0x0,t[_0x1b7024(0x37f)])(this[_0x1b7024(0x16d)],_0x3e5a3c);}[_0x1de16c(0x15a)](){const _0x417d7e=_0x1de16c;var _0x17e78e,_0x373a91;if(this[_0x417d7e(0x16d)][_0x417d7e(0x373)](c['HTTPService'])[_0x417d7e(0x400)]({'priority':0x14,'interceptor':(0x0,c[_0x417d7e(0x2e8)])({'maxParallel':0x6})}),!((_0x17e78e=this[_0x417d7e(0x405)])!=null&&_0x17e78e['enableOfflineEditing'])){var _0x24ad6e;(_0x24ad6e=this[_0x417d7e(0x16d)][_0x417d7e(0x373)](S,t[_0x417d7e(0x23c)][_0x417d7e(0x39b)]))==null||_0x24ad6e['disableLocalCache']();}(_0x373a91=this[_0x417d7e(0x405)])!=null&&_0x373a91[_0x417d7e(0x403)]&&(0x0,t[_0x417d7e(0x34e)])(this[_0x417d7e(0x16d)],[[W]]),(0x0,t['touchDependencies'])(this[_0x417d7e(0x16d)],[[K],[U],[X]]);}};g($,_0x1de16c(0x347),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),g($,_0x1de16c(0x1f5),Ae),g($,_0x1de16c(0x23b),je),$=y([(0x0,t[_0x1de16c(0x371)])(l[_0x1de16c(0x1e0)],e[_0x1de16c(0x302)],c['UniverNetworkPlugin']),v(0x1,t[_0x1de16c(0x243)]),v(0x2,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x3,t['IConfigService'])],$),Object[_0x1de16c(0x310)](exports,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x1cd),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x1de16c(0x1f8),{'enumerable':!0x0,'get':function(){return N;}}),exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=T,Object[_0x1de16c(0x310)](exports,_0x1de16c(0x2ec),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x144),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x382),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x27c),{'enumerable':!0x0,'get':function(){return x;}}),Object['defineProperty'](exports,_0x1de16c(0x1fc),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x1de16c(0x17b),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x1de16c(0x16a)]=Se,exports[_0x1de16c(0x3d6)]=re,exports[_0x1de16c(0x173)]=_,Object[_0x1de16c(0x310)](exports,_0x1de16c(0x1b0),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x1de16c(0x279)]=ie,Object[_0x1de16c(0x310)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x1de16c(0x196)]=p,exports[_0x1de16c(0x3ac)]=_0x1de16c(0x1d0),exports[_0x1de16c(0x2ad)]=_0x1de16c(0x3af),Object['defineProperty'](exports,_0x1de16c(0x406),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x1de16c(0x310)](exports,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x351),{'enumerable':!0x0,'get':function(){return I;}}),exports['HEARTBEAT_INTERVAL_KEY']=_0x1de16c(0x143),exports[_0x1de16c(0x2a2)]=_0x1de16c(0x2c0),exports[_0x1de16c(0x18e)]=B,exports['ILocalCacheService']=S,exports['INetworkConditionService']=Ee,exports['ISingleActiveUnitService']=w,exports[_0x1de16c(0x35d)]=0x3e8,exports[_0x1de16c(0x2d6)]=_0x1de16c(0x35d),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x16b),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x1de16c(0x310)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x180),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x1de16c(0x1c2),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x1de16c(0x15d)]=_0x1de16c(0x227),exports[_0x1de16c(0x253)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x1de16c(0x235)]=oe,Object['defineProperty'](exports,_0x1de16c(0x1b4),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x397),{'enumerable':!0x0,'get':function(){return C;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x1de16c(0x275),{'enumerable':!0x0,'get':function(){return A;}}),exports['UnitStatus']=ue,Object['defineProperty'](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1de16c(0x211)]=De,exports['getLocalCacheKey']=ce,exports['serializeCombRequest']=Oe;
|
|
1
|
+
const _0x1abb79=_0x37da;(function(_0x5875ac,_0x599a13){const _0x2d43b0=_0x37da,_0x278cef=_0x5875ac();while(!![]){try{const _0x48c544=-parseInt(_0x2d43b0(0x410))/0x1*(parseInt(_0x2d43b0(0x1ad))/0x2)+parseInt(_0x2d43b0(0x1fe))/0x3*(parseInt(_0x2d43b0(0x351))/0x4)+-parseInt(_0x2d43b0(0x23e))/0x5*(parseInt(_0x2d43b0(0x353))/0x6)+parseInt(_0x2d43b0(0x2f4))/0x7+-parseInt(_0x2d43b0(0x24f))/0x8+parseInt(_0x2d43b0(0x425))/0x9+parseInt(_0x2d43b0(0x3ee))/0xa;if(_0x48c544===_0x599a13)break;else _0x278cef['push'](_0x278cef['shift']());}catch(_0x567554){_0x278cef['push'](_0x278cef['shift']());}}}(_0x4130,0xb2e67),Object['defineProperty'](exports,Symbol[_0x1abb79(0x28e)],{'value':_0x1abb79(0x1ef)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs/network'),l=require('@univerjs-pro/license'),u=require('@univerjs/drawing'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js');const p=_0x1abb79(0x21a),m=0x4e20;function ee(_0x23d3db){const _0x42a9ac=_0x1abb79;return JSON[_0x42a9ac(0x20e)](_0x23d3db)[_0x42a9ac(0x2b3)];}function h(_0x31c8dc){'@babel/helpers - typeof';const _0x1520fa=_0x1abb79;return h=typeof Symbol==_0x1520fa(0x1bd)&&typeof Symbol[_0x1520fa(0x30b)]=='symbol'?function(_0x39b996){return typeof _0x39b996;}:function(_0xd96c5a){const _0xa8e41=_0x1520fa;return _0xd96c5a&&typeof Symbol==_0xa8e41(0x1bd)&&_0xd96c5a[_0xa8e41(0x264)]===Symbol&&_0xd96c5a!==Symbol[_0xa8e41(0x227)]?'symbol':typeof _0xd96c5a;},h(_0x31c8dc);}function te(_0xd1c1d2,_0x15287b){const _0x1d1aa0=_0x1abb79;if(h(_0xd1c1d2)!=_0x1d1aa0(0x223)||!_0xd1c1d2)return _0xd1c1d2;var _0x201e90=_0xd1c1d2[Symbol['toPrimitive']];if(_0x201e90!==void 0x0){var _0x331ec0=_0x201e90[_0x1d1aa0(0x25c)](_0xd1c1d2,_0x15287b||_0x1d1aa0(0x203));if(h(_0x331ec0)!=_0x1d1aa0(0x223))return _0x331ec0;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x15287b===_0x1d1aa0(0x298)?String:Number)(_0xd1c1d2);}function ne(_0x3b1d8f){const _0x39f599=_0x1abb79;var _0x15c867=te(_0x3b1d8f,'string');return h(_0x15c867)==_0x39f599(0x2fe)?_0x15c867:_0x15c867+'';}function g(_0xb4deb9,_0x27d0fb,_0x50a76d){const _0x35c027=_0x1abb79;return(_0x27d0fb=ne(_0x27d0fb))in _0xb4deb9?Object[_0x35c027(0x3b7)](_0xb4deb9,_0x27d0fb,{'value':_0x50a76d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb4deb9[_0x27d0fb]=_0x50a76d,_0xb4deb9;}let re=function(_0x5a02c9){const _0x53225e=_0x1abb79;return _0x5a02c9[_0x53225e(0x1b9)]=_0x53225e(0x1b9),_0x5a02c9[_0x53225e(0x3c8)]=_0x53225e(0x3c8),_0x5a02c9['CONFLICT']=_0x53225e(0x369),_0x5a02c9['CLOSE_ROOM']=_0x53225e(0x465),_0x5a02c9[_0x53225e(0x200)]=_0x53225e(0x200),_0x5a02c9[_0x53225e(0x35a)]='SOCKET_FAILED_RETRY',_0x5a02c9[_0x53225e(0x31e)]=_0x53225e(0x31e),_0x5a02c9[_0x53225e(0x217)]=_0x53225e(0x217),_0x5a02c9;}({});var _=class{constructor(){const _0x1ed778=_0x1abb79;g(this,_0x1ed778(0x45c),new i[(_0x1ed778(0x3b3))]()),g(this,'event$',this[_0x1ed778(0x45c)][_0x1ed778(0x234)]());}[_0x1abb79(0x1f5)](_0x3976a2){const _0x3793d9=_0x1abb79;this['_event$'][_0x3793d9(0x343)](_0x3976a2);}},ie=class{constructor(){const _0xc1ce46=_0x1abb79;g(this,'_commentUpdate$',new i[(_0xc1ce46(0x3b3))]()),g(this,_0xc1ce46(0x235),this['_commentUpdate$']['asObservable']());}[_0x1abb79(0x48b)](_0x2fd88d){const _0x3292c2=_0x1abb79;this['_commentUpdate$'][_0x3292c2(0x343)](_0x2fd88d);}};function v(_0x107fba,_0x38628b){return function(_0x5eebaf,_0x4c78a8){_0x38628b(_0x5eebaf,_0x4c78a8,_0x107fba);};}function y(_0x4c1dc5,_0x5a7d60,_0x2d9d6e,_0x586cd7){const _0x3a0f47=_0x1abb79;var _0x18dc8f=arguments[_0x3a0f47(0x2b3)],_0x305b81=_0x18dc8f<0x3?_0x5a7d60:_0x586cd7===null?_0x586cd7=Object[_0x3a0f47(0x44e)](_0x5a7d60,_0x2d9d6e):_0x586cd7,_0x4e0b7f;if(typeof Reflect=='object'&&typeof Reflect[_0x3a0f47(0x3c6)]==_0x3a0f47(0x1bd))_0x305b81=Reflect['decorate'](_0x4c1dc5,_0x5a7d60,_0x2d9d6e,_0x586cd7);else{for(var _0x3cec4e=_0x4c1dc5[_0x3a0f47(0x2b3)]-0x1;_0x3cec4e>=0x0;_0x3cec4e--)(_0x4e0b7f=_0x4c1dc5[_0x3cec4e])&&(_0x305b81=(_0x18dc8f<0x3?_0x4e0b7f(_0x305b81):_0x18dc8f>0x3?_0x4e0b7f(_0x5a7d60,_0x2d9d6e,_0x305b81):_0x4e0b7f(_0x5a7d60,_0x2d9d6e))||_0x305b81);}return _0x18dc8f>0x3&&_0x305b81&&Object[_0x3a0f47(0x3b7)](_0x5a7d60,_0x2d9d6e,_0x305b81),_0x305b81;}let b=class extends t[_0x1abb79(0x378)]{constructor(_0x267b8f,_0x4fbe92){const _0x28556e=_0x1abb79;super(),this[_0x28556e(0x489)]=_0x267b8f,this['_userManagerService']=_0x4fbe92,g(this,_0x28556e(0x329),new Map()),g(this,_0x28556e(0x468),new i['Subject']()),this[_0x28556e(0x2d3)]((0x0,i[_0x28556e(0x295)])(this[_0x28556e(0x489)][_0x28556e(0x292)](t[_0x28556e(0x3b9)]['UNIVER_SHEET'])[_0x28556e(0x3a1)]((0x0,s['map'])(_0x2dfec4=>_0x2dfec4['getUnitId']())),this[_0x28556e(0x489)][_0x28556e(0x292)](t[_0x28556e(0x3b9)][_0x28556e(0x3d3)])[_0x28556e(0x3a1)]((0x0,s[_0x28556e(0x41d)])(_0x54fce4=>_0x54fce4[_0x28556e(0x261)]())))[_0x28556e(0x2ed)](_0x3d2296=>this[_0x28556e(0x263)](_0x3d2296)));}['waitForRoom$'](_0x2c03a8){const _0x1f1148=_0x1abb79;return this[_0x1f1148(0x329)][_0x1f1148(0x38d)](_0x2c03a8)?(0x0,i['of'])(this[_0x1f1148(0x329)]['get'](_0x2c03a8)):this[_0x1f1148(0x468)][_0x1f1148(0x3a1)]((0x0,s[_0x1f1148(0x41d)])(_0x8b5069=>{const _0x19a982=_0x1f1148;if(_0x8b5069===_0x2c03a8)return this[_0x19a982(0x329)][_0x19a982(0x277)](_0x8b5069);}));}[_0x1abb79(0x30c)](_0x1105fe){const _0x15169f=_0x1abb79;this['_userManagerService'][_0x15169f(0x30c)](_0x1105fe);}[_0x1abb79(0x312)](){const _0xdfffcf=_0x1abb79;return this[_0xdfffcf(0x3b2)][_0xdfffcf(0x312)]();}[_0x1abb79(0x40e)](_0x54a89c,_0x18108c){const _0x1b4c22=_0x1abb79;let _0x523219=this['_roomMembers'][_0x1b4c22(0x277)](_0x54a89c);_0x523219||(_0x523219=new ae(),this[_0x1b4c22(0x329)][_0x1b4c22(0x35b)](_0x54a89c,_0x523219),this[_0x1b4c22(0x468)]['next'](_0x54a89c)),_0x523219[_0x1b4c22(0x40e)](_0x18108c);}[_0x1abb79(0x26c)](_0x4667c2,_0x319787){const _0x5d504e=_0x1abb79;let _0xe8e458=this['_roomMembers'][_0x5d504e(0x277)](_0x4667c2);_0xe8e458&&_0xe8e458[_0x5d504e(0x26c)](_0x319787);}[_0x1abb79(0x3e2)](_0x689a84){const _0xa8598f=_0x1abb79;return this[_0xa8598f(0x329)][_0xa8598f(0x277)](_0x689a84);}['getMember'](_0xc56c0f,_0x5b6e3d){const _0x5cb718=_0x1abb79;let _0x162716=this[_0x5cb718(0x329)]['get'](_0xc56c0f);if(_0x162716)return _0x162716[_0x5cb718(0x385)](_0x5b6e3d);}['_removeRoom'](_0x3daf22){const _0x307e9d=_0x1abb79;let _0x2da9db=this[_0x307e9d(0x329)][_0x307e9d(0x277)](_0x3daf22);_0x2da9db&&(_0x2da9db['dispose'](),this[_0x307e9d(0x329)]['delete'](_0x3daf22));}[_0x1abb79(0x370)](){const _0x3e2ba8=_0x1abb79;this[_0x3e2ba8(0x329)][_0x3e2ba8(0x222)](_0x101aa5=>_0x101aa5['dispose']()),this['_roomMembers']['clear'](),this['_roomCreated$'][_0x3e2ba8(0x23c)]();}};b=y([v(0x0,t['IUniverInstanceService']),v(0x1,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x23f)]))],b);var ae=class extends t[_0x1abb79(0x378)]{constructor(..._0xf6a072){const _0x99969d=_0x1abb79;super(..._0xf6a072),g(this,_0x99969d(0x282),new Map()),g(this,_0x99969d(0x2bd),new i['BehaviorSubject'](this[_0x99969d(0x282)])),g(this,_0x99969d(0x423),this[_0x99969d(0x2bd)]['asObservable']());}[_0x1abb79(0x370)](){const _0x230d98=_0x1abb79;this[_0x230d98(0x282)]['clear'](),this[_0x230d98(0x2bd)][_0x230d98(0x23c)]();}['updateMember'](_0x107817){const _0x85ceab=_0x1abb79;this[_0x85ceab(0x282)][_0x85ceab(0x35b)](_0x107817[_0x85ceab(0x1fd)],_0x107817),this[_0x85ceab(0x1ea)]();}[_0x1abb79(0x26c)](_0x13a8be){const _0x46963a=_0x1abb79;this[_0x46963a(0x282)][_0x46963a(0x3a3)](_0x13a8be),this['_emitMembers']();}[_0x1abb79(0x385)](_0x463d78){const _0x4aba6b=_0x1abb79;return this['_members'][_0x4aba6b(0x277)](_0x463d78);}[_0x1abb79(0x2fc)](){const _0x5cff22=_0x1abb79;return Array['from'](this['_members'][_0x5cff22(0x1c1)]());}[_0x1abb79(0x1ea)](){const _0x4aa835=_0x1abb79;this[_0x4aa835(0x2bd)]['next'](this['_members']);}};let oe=function(_0x1a92af){const _0x33d8ad=_0x1abb79;return _0x1a92af[_0x1a92af[_0x33d8ad(0x202)]=0x0]=_0x33d8ad(0x202),_0x1a92af[_0x1a92af[_0x33d8ad(0x32c)]=0x1]='JOINING',_0x1a92af[_0x1a92af[_0x33d8ad(0x3d4)]=0x2]=_0x33d8ad(0x3d4),_0x1a92af[_0x1a92af['ONLINE']=0x3]='ONLINE',_0x1a92af;}({});const se={[a['CmdRspCode'][_0x1abb79(0x2b7)]]:_0x1abb79(0x3a6),[a[_0x1abb79(0x47a)][_0x1abb79(0x272)]]:_0x1abb79(0x36d),[a['CmdRspCode'][_0x1abb79(0x2bb)]]:'session.room-not-exists',[a[_0x1abb79(0x47a)][_0x1abb79(0x376)]]:'session.room-permission-denied',[a[_0x1abb79(0x47a)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x1abb79(0x34b)};let x=class extends t['RxDisposable']{get[_0x1abb79(0x1e8)](){const _0x4231d2=_0x1abb79;return this[_0x4231d2(0x3f5)][_0x4231d2(0x3b6)]();}constructor(_0x3c6dff,_0x4ce702,_0x48fe1f,_0xbbc2f9,_0x37e221,_0x57914b,_0x54f0d3,_0x28c1a1){const _0x48b81f=_0x1abb79;super(),this[_0x48b81f(0x3ec)]=_0x3c6dff,this[_0x48b81f(0x204)]=_0x48fe1f,this[_0x48b81f(0x1c0)]=_0xbbc2f9,this[_0x48b81f(0x21b)]=_0x37e221,this[_0x48b81f(0x48f)]=_0x57914b,this[_0x48b81f(0x420)]=_0x54f0d3,this[_0x48b81f(0x3a4)]=_0x28c1a1,g(this,_0x48b81f(0x3f5),new i['BehaviorSubject'](0x0)),g(this,_0x48b81f(0x3c0),this[_0x48b81f(0x3f5)]['asObservable']()),g(this,'_event$',new i[(_0x48b81f(0x3b3))]()),g(this,_0x48b81f(0x36b),this['_event$'][_0x48b81f(0x234)]()),g(this,'_socket',void 0x0),g(this,_0x48b81f(0x1e6),void 0x0),g(this,_0x48b81f(0x27e),void 0x0),g(this,_0x48b81f(0x1f0),!0x1),g(this,_0x48b81f(0x27c),null),this[_0x48b81f(0x1f0)]=!!this[_0x48b81f(0x3a4)],_0x4ce702['pipe']((0x0,i[_0x48b81f(0x299)])(this[_0x48b81f(0x3ba)]))[_0x48b81f(0x2ed)](_0x33efc8=>{const _0x491c4d=_0x48b81f;if(_0x33efc8!==void 0x0){if(this[_0x491c4d(0x1c4)]=_0x33efc8,_0x33efc8)this[_0x491c4d(0x2f9)](_0x33efc8),this[_0x491c4d(0x1e6)]=_0x33efc8[_0x491c4d(0x273)][_0x491c4d(0x2ed)](_0x7e1fbb=>{const _0x55b0a=_0x491c4d;_0x7e1fbb[_0x55b0a(0x459)]===this[_0x55b0a(0x3ec)]&&this[_0x55b0a(0x3f4)](_0x7e1fbb);});else{var _0x39c139;this[_0x491c4d(0x30a)](),this[_0x491c4d(0x3f5)][_0x491c4d(0x343)](0x2),(_0x39c139=this[_0x491c4d(0x1e6)])==null||_0x39c139[_0x491c4d(0x1db)](),this['_socketMessageSubscription']=null;}}});}[_0x1abb79(0x358)](){const _0x5162fb=_0x1abb79;var _0x7c579d,_0x414822;return(_0x7c579d=(_0x414822=this[_0x5162fb(0x1c4)])==null?void 0x0:_0x414822[_0x5162fb(0x1fd)])==null?null:_0x7c579d;}['dispose'](){const _0x2f28cd=_0x1abb79;super[_0x2f28cd(0x370)](),this[_0x2f28cd(0x28b)](),this[_0x2f28cd(0x3ba)][_0x2f28cd(0x343)](),this[_0x2f28cd(0x3ba)][_0x2f28cd(0x23c)]();}[_0x1abb79(0x28b)](){const _0x3be631=_0x1abb79;var _0xc58266,_0x61434c;this[_0x3be631(0x30a)](),(_0xc58266=this[_0x3be631(0x1c4)])==null||_0xc58266[_0x3be631(0x357)]({'cmd':a['CombCmd'][_0x3be631(0x390)],'data':{'roomID':this['_unitID']}}),(_0x61434c=this[_0x3be631(0x1c4)])==null||_0x61434c[_0x3be631(0x28b)](),this[_0x3be631(0x45c)]['complete'](),this[_0x3be631(0x3f5)][_0x3be631(0x23c)]();}[_0x1abb79(0x3f4)](_0xf73844){const _0x49b4f8=_0x1abb79;_0xf73844['cmd']===a[_0x49b4f8(0x279)][_0x49b4f8(0x1c2)]?this[_0x49b4f8(0x3ae)](_0xf73844):_0xf73844[_0x49b4f8(0x2d2)]===a['CombCmd'][_0x49b4f8(0x3e7)]&&this[_0x49b4f8(0x29e)](_0xf73844);}[_0x1abb79(0x2f9)](_0x9be95e){const _0x2a53a9=_0x1abb79;this[_0x2a53a9(0x3f5)][_0x2a53a9(0x343)](0x1),_0x9be95e[_0x2a53a9(0x357)]({'cmd':a[_0x2a53a9(0x279)][_0x2a53a9(0x1c2)],'routeKey':this[_0x2a53a9(0x3ec)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2a53a9(0x3ec)]}]}});}[_0x1abb79(0x3ae)](_0x14c0af){const _0xc76666=_0x1abb79;var _0x2f8f9d;if(_0x14c0af[_0xc76666(0x485)]in se){this[_0xc76666(0x420)][_0xc76666(0x1f5)]({'id':_0xc76666(0x200),'data':se[_0x14c0af['code']]}),this[_0xc76666(0x3f5)][_0xc76666(0x343)](0x2);return;}this[_0xc76666(0x3f5)][_0xc76666(0x343)](0x3);let _0x39e4b8=(_0x2f8f9d=_0x14c0af[_0xc76666(0x471)][_0xc76666(0x480)][this['_unitID']])==null?void 0x0:_0x2f8f9d[_0xc76666(0x3e5)];_0x39e4b8&&_0x39e4b8[_0xc76666(0x222)](_0x3d6c56=>this[_0xc76666(0x21b)][_0xc76666(0x40e)](this['_unitID'],_0x3d6c56));}[_0x1abb79(0x29e)](_0x283e5a){const _0x1b29b3=_0x1abb79;try{let _0xb1e98a=_0x283e5a[_0x1b29b3(0x471)];switch(_0xb1e98a[_0x1b29b3(0x20b)]){case e[_0x1b29b3(0x380)][_0x1b29b3(0x3be)]:this[_0x1b29b3(0x1e4)](_0xb1e98a),this[_0x1b29b3(0x45c)][_0x1b29b3(0x343)](_0xb1e98a);break;case e[_0x1b29b3(0x380)]['USERS_LEAVE']:this[_0x1b29b3(0x398)](_0xb1e98a),this[_0x1b29b3(0x45c)][_0x1b29b3(0x343)](_0xb1e98a);break;case e[_0x1b29b3(0x380)]['CHANGESET_ACK']:case e[_0x1b29b3(0x380)][_0x1b29b3(0x2d1)]:this[_0x1b29b3(0x211)](),this[_0x1b29b3(0x3d0)](),this['_event$'][_0x1b29b3(0x343)](_0xb1e98a);break;case e[_0x1b29b3(0x380)]['MSG_FOR_ERROR']:this['_logService'][_0x1b29b3(0x1ec)](_0x1b29b3(0x33b)+JSON[_0x1b29b3(0x20e)](_0xb1e98a)),this[_0x1b29b3(0x45c)][_0x1b29b3(0x343)](_0xb1e98a);break;case e[_0x1b29b3(0x380)][_0x1b29b3(0x46d)]:this[_0x1b29b3(0x48f)][_0x1b29b3(0x48b)](_0xb1e98a[_0x1b29b3(0x471)]),this[_0x1b29b3(0x45c)][_0x1b29b3(0x343)](_0xb1e98a);break;default:this[_0x1b29b3(0x45c)]['next'](_0xb1e98a);}}catch(_0xf4ba59){this[_0x1b29b3(0x204)]['error'](_0xf4ba59,_0x283e5a);}}[_0x1abb79(0x1e4)](_0x315a2c){const _0x4d22ed=_0x1abb79;this[_0x4d22ed(0x21b)][_0x4d22ed(0x40e)](this[_0x4d22ed(0x3ec)],_0x315a2c['data']);}[_0x1abb79(0x398)](_0x215eb6){const _0x2730dd=_0x1abb79;this[_0x2730dd(0x21b)][_0x2730dd(0x26c)](this['_unitID'],_0x215eb6[_0x2730dd(0x471)][_0x2730dd(0x1fd)]);}async[_0x1abb79(0x357)](_0x59f386,_0x147855){const _0x1b8de9=_0x1abb79;if(this[_0x1b8de9(0x1e8)]!==0x3||!this['_socket'])throw Error(_0x1b8de9(0x31b));try{_0x59f386[_0x1b8de9(0x20b)]===e[_0x1b8de9(0x380)][_0x1b8de9(0x3e6)]&&(this[_0x1b8de9(0x45f)](),this[_0x1b8de9(0x455)](_0x59f386)),this[_0x1b8de9(0x1c4)]['send']({'cmd':a['CombCmd'][_0x1b8de9(0x37e)],'routeKey':_0x147855,'routeType':'','data':_0x59f386});}catch(_0x4dfd98){this[_0x1b8de9(0x204)][_0x1b8de9(0x1ec)](_0x4dfd98);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2f8799=_0x1abb79;var _0x497b22;this[_0x2f8799(0x27e)]=setTimeout(()=>{const _0x3ab1a3=_0x2f8799;this['_collaborationTimeoutTimer']=null,this[_0x3ab1a3(0x420)][_0x3ab1a3(0x1f5)]({'id':_0x3ab1a3(0x217)});},(_0x497b22=this[_0x2f8799(0x1c0)][_0x2f8799(0x300)]('HEARTBEAT_TIMEOUT'))==null?m:_0x497b22);}[_0x1abb79(0x3d0)](){const _0x12dec3=_0x1abb79;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x12dec3(0x27e)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x215eec){const _0x51908e=_0x1abb79;if(!this['_shouldReportTelemetry'])return;let {data:_0x68c2dc}=_0x215eec,{unitID:_0x2405b3,changeset:_0x66d7e4}=_0x68c2dc,{mutations:_0x324e31,type:_0x57dd70}=_0x66d7e4;this['_telemetryInfo']={'unitId':_0x2405b3,'type':_0x57dd70,'startTime':performance[_0x51908e(0x25e)](),'stopTime':0x0,'duration':0x0,'size':ee(_0x324e31)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5d53c8=_0x1abb79;if(this['_shouldReportTelemetry']){if(!this[_0x5d53c8(0x27c)]){this[_0x5d53c8(0x204)][_0x5d53c8(0x1ec)]('[CollaborationSession]',_0x5d53c8(0x1e2));return;}this[_0x5d53c8(0x27c)][_0x5d53c8(0x3d9)]=performance[_0x5d53c8(0x25e)](),this['_telemetryInfo']['duration']=this[_0x5d53c8(0x27c)][_0x5d53c8(0x3d9)]-this[_0x5d53c8(0x27c)][_0x5d53c8(0x402)],this[_0x5d53c8(0x3a4)][_0x5d53c8(0x1f8)](_0x5d53c8(0x2ae),this[_0x5d53c8(0x27c)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x44e480=_0x1abb79;this[_0x44e480(0x27c)]=null;}};x=y([v(0x2,t[_0x1abb79(0x22c)]),v(0x3,t[_0x1abb79(0x2b4)]),v(0x4,(0x0,t[_0x1abb79(0x3cc)])(b)),v(0x5,(0x0,t[_0x1abb79(0x3cc)])(ie)),v(0x6,(0x0,t[_0x1abb79(0x3cc)])(_)),v(0x7,(0x0,t[_0x1abb79(0x323)])(o[_0x1abb79(0x339)]))],x);const S=(0x0,t[_0x1abb79(0x205)])(_0x1abb79(0x281));function _0x4130(){const _0x446c03=['put','_unitID','push','9042310PJFQqs','_undoStacks','commentUpdateEvent','_transformStateCache','[CollaborationSessionService]','getTime','_onCombEvent','_sessionStatus$','c1Prime','HEARTBEAT_TIMEOUT','@univerjs-pro/collaboration-client','online$','[CollaborationState]:\x20apply\x20error!','getCurrentRevOfUnit','_resendWithTimeout','reconnect','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CollaborationSession','uploadFileServerUrl','href','startTime','csAckEvent','_acknowledgedAwaitingRevision','_instanceService','collaboration-client.auth.needGotoLoginAlert','_revisionService','getLocalCacheKey','NO_OTHER_CLIENTS_EDITING','OfflineState','deepClone','SUCCUSS','PSEUDO_FETCH_MISSING_RESULT','updateMember','_queuedRemoteChangesets','120626efsTls','transformMutationsWithChangeset','People','_createSocket','COMPRESS_MUTATION_SEND','FETCH_MISS','open$','getCollabEntity','JSONX','loadOfflineData','IAuthzIoService','/universer-api/stream/file/upload','entityInit$','map','sheets','onTransformSelections','_collaborationUIEventService','_initDependencies','HTTPService','members$','CollaborationController','685971ofsGgk','ICommandService','createInstance','BehaviorSubject','CommandType','_singleActiveUnitService','subUnitId','HEARTBEAT_TIMEOUT_KEY','IUndoRedoService','deserializeToCombResponse','onTransformIME','withCredentials','toDisposable','updateCollaborator','fromCharCode','init','_imageSourceCache','onStateChange','_initCloseConn','localCacheService','firstValueFrom','IImageIoService','_collaborationPaused','_submitChangeset','getInterceptPoints','LIVESHARE_OPERATION','_eventService','onMissedChangesetFetched','_startCollaboration','cfgEnableObjInherit','awaitingChangeset','\x20in\x20_schedule.','revision','_handleRemoteChangesets','_localeService','onRemoteChangeset','BASE64','_isEchoedAwaitingChangeset','change$','HELLO','loadSheet','getOwnPropertyDescriptor','getTypeOfUnitAdded$','addHandlerCallback','_rescheduleHeartbeat','_onConnectionOpen','_createInitialState','putCollaborators','_startTelemetryCollaborationNewChangeset','initWorkbookPermissionChange','&assign=','resourceIDs','routeKey','/universer-api/file/{fileID}/sign-url','UNIVER_SHEET','_event$','UniverCollaborationPlugin','univer-pro.collaboration-client.network-condition.service','_scheduleCollaborationTimeoutTimer','OPTIONAL','getSheetBlock','/object/','_collaborationSessionService','RxDisposable','CLOSE_ROOM','[CollaborationSession]','&source=','_roomCreated$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','AWAITING','SNAPSHOT_URL_KEY','append','COMMENT_UPDATE','DRAWING_IMAGE_ALLOW_IMAGE_LIST','SheetsSelectionsService','_httpService','data','LIVESHARE_REQUEST_HOST','updateOfflineData','max','_getUploadFileURL','ConflictState','loadUnitOfRevision','[PendingState]:\x20received\x20acknowledgement.','_snapshotServerService','CmdRspCode','CollaborationUIEventService','/new_changes','min','_onRemoteRetry','editing\x20status\x20changed\x20to','roomInfos','_clearLocalCache','method','_onFetchMissResult','compose','code','NEW_CHANGESETS','pluginName','_getDownloadEndpointURL','_univerInstanceService','failed\x20to\x20apply\x20missed\x20changesets!','onCommentUpdate','sid','UnitEmbedded','objectActions','_commentService','debug','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','MentionType','listCollaborators','_tryEnsureSocket','closeSession','ERROR_IMAGE','6yAqVox','type','POST','parseChangesetToProtocol','_changesetReqId','socketService','generateRandomId','CHANGESET_REJ','encode','incrementRevOfUnit','_getAPIPrefix','_sender','OTHER_CLIENT_EDITING','_updateState','getGlobalObject','rev','function','{fileID}','_getSignURL','_configService','values','JOIN','CompressMutationService','_socket','_entities','update','roles','_toggleOffline','_localCacheService','requestParams','/universer-api/snapshot/','UNISCRIPT_RUN','origin','setShowComponents','_transformStack','headers','_onConflict','getUnitOnRev','parse','text-x','Injector','_transformIMECache','_candidateSocket','_snapshotService','/rev/','_transformUndoredo','unsubscribe','create','updateSnapshot','_decreaseWaiting','_clearRedo','onTransformRemoteChangesetByStateCache','_unitInfo$','telemetry\x20info\x20is\x20not\x20initialized','MSG_FOR_ERROR','_onUserJoin','AwaitingWithPendingState','_socketMessageSubscription','ImageUploadStatusType','sessionStatus','LIVESHARE_NEW_HOST','_emitMembers','/block/','error','readyForCollab','Failed\x20to\x20update\x20permission\x20point','Module','_shouldReportTelemetry','UPDATE_CURSOR','_transformAndApplyRemoteChangeset','ThresholdInterceptorFactory','FileId','emitEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','loadUnit','capture','__Key__','DEFAULT_COLLAB_WEB_SOCKET_URL','_timeoutTimer','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','memberID','2648004XRJaOf','LocalUndoRedoService','JOIN_ROOM_FAILED','patch','IDLE','default','_logService','createIdentifier','[DataLoaderService]','_substituteRedoStack','[OfflineState]:\x20received\x20rejection.','WorkbookEditablePermission','onRemoteRetry','eventID','LocaleService','_initRequestHeader','stringify','_transformService','collaboration-client.config','_stopTelemetryCollaborationNewChangeset','appendMutation','MemberService','onload','every','_init','SUBMIT_CHANGESET_TIMEOUT','_getRedoStack','csRejEvent','ws://127.0.0.1:8000/universer-api/comb/connect','_memberService','Error\x20on\x20receiving\x20event','MergeInterceptorFactory','mergeOverrideWithDependencies','/-/object/-/batch_allowed','_unlockTransition','collaborators','forEach','object','PERMISSION_REJ','ICollaborationSocketService','SyncedState','prototype','isArray','result','size','originalMeta','ILogService','_waitForHeartbeatResponse','getImageSourceCache','_onConnectionFailed','body','allowed','_socketReady','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','asObservable','commentUpdate$','status$','ILocalCacheService','LIVESHARE_TERMINATE','IContextService','[FetchMissState]','DataLoaderService','complete','ISnapshotServerService','22035TVgBcK','UserManagerService','getDrawingImageAllowSize','submit\x20changeset\x20error!','_clearRetryConnectingTimer','joinRsp','_permissionService','not_collab','_networkConditionService','equals','/universer-api/uniscript','offline','_incrementRevisionNumber','saveImage','HEARTBEAT_INTERVAL','AwaitingState','collaboratorID','8457624PvbMTM','utf8ToBytes','fetchMissingChangesets','onTransformState','executeCommand','touchDependencies','textEncoder','conflict','status','onSyncEditingCollabCursor','_tryReconnect','_compressMutationService','UniverNetworkPlugin','call','actions','now','_clearHeartbeatTimer','\x20-\x20','getUnitId','shouldCloseConn','_removeRoom','constructor','unknown','_sendHeartbeat','range','ISocketService','_disableEditing','_status$','INetworkConditionService','removeMember','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_doCreateSocket','updateCursorEvent','workbook','USERS_LEAVE','JOIN_ROOM_FULL','message$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_resendTimer','resend','get','_transformRemoteChangesetByIMECache','CombCmd','toggleOnline','_onRemoteRejected','_telemetryInfo','enableOfflineEditing','_collaborationTimeoutTimer','onTransformRemoteChangesetByIMECache','connection\x20error','collaboration-client.local-cache-service','_members','onRemoteAck','ERROR_EXCEED_SIZE','_applyRemoteChangeset','ReplaySubject','FetchingMissState','collaMsg','entries','\x20to\x20','close','reqId','_lockTransition','toStringTag','[SyncedState]:\x20received\x20rejection.','reverse','_scheduleCompleteTimestamp','getTypeOfUnitDisposed$','file','delay','merge','socket$','_transformRemoteChangesetByStateCache','string','takeUntil','_handlerCallback','name','title','_schedule','_onRecvEvent','error$','_state','getFocusedUnit','_commandService','AWAITING_WITH_PENDING','\x0aCurrent:\x20','_checkMissing','listRoles','/universer-api/comb','_retryCount','COMPRESS_MUTATION_APPLY','enableCollaboration','_onOffline','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','IPermissionService','collaboration_new_changeset','_change$','collabSubmitChangesetUrl','onMutationExecutedForCollab','RevisionService','length','IConfigService','confirm','_config','FAIL','localeService','_maxTotalRetryTimeout','CollaborationSocketService','JOIN_ROOM_NOT_EXISTS','add','_members$','updatePermissionPoint','then','DisposableCollection','changesets','CommentService','isTransformMutationsWithChangesetFailure','registerHTTPInterceptor','_replaceFileID','userID','_getSendChangesetTimeout','DEFAULT_WS_SESSION_TICKET_URL','CollaborativeUndoRedoService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','RichTextEditingMutation','/role','getCollabEntity$','getUnitType','_entityInit$','action','CHANGESET_SHOULD_RETRY','cmd','disposeWithMe','LIVESHARE_FETCH_OPERATIONS','onMissingChangesets','PERSON','_transitionLocked','_handler','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','HEARTBEAT_INTERVAL_KEY','_waitCount','params','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getUnit','getImage','batchAllowed','_toggleOnline','_sendingTimer','isTransformMutationsWithChangesetSuccess','CHANGESET_ACK','&to=','_retryConnectingTimer','_executeRemoteChangeset','CollaborationStatus','encodeURIComponent','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','find','SHOULD_CLOSE_CONN','subscribe','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','createSocket','objectType','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','mutations','MentionIoHttpService','2730693oRDtCS','HEARTBEAT','catch','ITransformService','FETCH_MISSING','_joinRoom','_initUnitPermissionChange','registerDependencies','getAllMembers','src','symbol','EmptyMutationInfo','getConfig','_injector','onLocalMutation','synced','_acknowledgeAwaiting','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','newCsEvent','_pendingMutations','_initMergeInterceptor','_showConflictNotification','_throwTelemetryCollaborationNewChangeset','iterator','setCurrentUser','[UniverCollaborationClientPlugin]','_cfgEnableObjInherit','session','HTTPRequest','_state$','getCurrentUser','focused$','_collabSessionService','_sheetTransformSelectionsService','_isPermissionRej','__splitChunk__','_HTTPService','hostname','IUniverInstanceService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_onRemoteACK','sequenceExecute','SOCKET_FAILED','liveShareOperation','UnitStatus','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','x-univer-host','Optional','onSendChangeset','_onRemoteChangeset','DocCollaborationEntity','parseProtocolChangeset','socket\x20close','_roomMembers','/resources','take','JOINING','concatBytes','DependentOn','_getLoginPath','[CollaborationUndoRedoService]','subject','InsertSheetMutation','SheetTransformSelectionsService','toggleOffline','transformUndoRedo','_syncEditingCollabCursor','_redoStacks','unit','ITelemetryService','getLatestCsReqIdBySid','save\x20fail\x20reason\x20is\x20','authzUrl','getWorkbookSelections','fetching\x20missing\x20changesets\x20from\x20','LOCAL_CACHE_INTERVAL','UNIVER_COLLABORATION_CLIENT_PLUGIN','OTHER_CLIENTS_EDITING','/collaborator','next','concatMap','_changesetSessionId','_clearScheduledTask','_getCtorByUniverInstanceType','setConfig','avatar','_exhaustRemoteChangesetQueue','session.room-cnt-exceeds','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','awaiting_with_pending','some','m2Prime','awaiting','4GzGDBl','_socket$','138rMZjKJ','_undoRedoService','unitId','_getAPIPrefixPath','send','getMemberID','getUnitStatus$','SOCKET_FAILED_RETRY','set','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_registerDependencies','_substituteUndoStack','interceptor','MUTATION','reject','isTransformChangesetsSuccess','_onLocalMutation','setCfgEnableObjInherit','\x0aAfter:\x20','isInternalEditorID','getSheetId','[PendingState]:\x20received\x20rejection.','CONFLICT','_updateStatus','event$','transformSelections','session.room-full','UUID','pauseCollaboration','dispose','/universer-api/authz','ImageSourceType','unit-cache-','0.25.2','number','JOIN_ROOM_PERMISSION_DENIED','RETRY_CONNECTING_MAX_COUNT','Disposable','_sessions','_createInitialStateImpl','onRemoteRej','UniverCollaborationClientPlugin','startsWith','INGEST','filter','CollaborationEvent','_listenToNetworkCondition','enableAuthServer','unitID','charCodeAt','getMember','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','objectID','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','url','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','getResourcesRequest','_clearTimeoutTimer','has','indexOf','FileSource','LEAVE','Plugin','selections','packageName','_remoteChangesetQueue','resolve','getCfgEnableObjInherit','IMentionIOService','_onUserLeave','slice','findIndex','transformChangesets','/-/object/list','serializeCombRequest','[CollaborationSessionService]:\x20socket\x20error','textRanges','location','pipe','retryConnectingInterval','delete','_telemetryService','_awaitingChangeset','session.join-failed','missingChangesets','_createHandler','includes','clear','[CollaborationEntity]','/allowed','transformStack\x20failed!','_onJoinRoomEvent','_onMessage','Quantity','LOCAL_CACHE_INTERVAL_KEY','_userManagerService','Subject','copyFileMeta','baseRev','getValue','defineProperty','post','UniverInstanceType','dispose$','isPermissionRej','_transformSelections','ISingleActiveUnitService','USERS_ENTER','_type','sessionStatus$','requireSession','cbc','target','_resendTimeout','_updateLocalCache','decorate','_socketService','PERMISSION_DENIED','univer-pro.collaboration-client-socket-service','_clearUndo','leaveEvent','Inject','_sendHeartbeatTimer','SetSelectionsOperation','unitInfo$','_clearCollaborationTimeoutTimer','_getUndoStack','state','UNIVER_DOC','OFFLINE','PendingState','saveSheetBlock','resolveWithBasePath','/unit/','stopTime','liveShareNewHost','infoRsp','fetchThroughInterceptors','Univer','b64DecodeUnicode','UPDATE_PERMISSION_OBJ','enableSingleActiveInstanceLock','createCollaborator','getRoom','mapDocumentTypeToUniverInstanceType','_getCurrentRevision','members','SUBMIT_CHANGESET','RECV','_acknowledgeAwaitingIfReady','[SyncedState]:\x20received\x20acknowledgement.','permissionRejEvent'];_0x4130=function(){return _0x446c03;};return _0x4130();}function ce(_0x4a38c3){const _0x54d3ba=_0x1abb79;return _0x54d3ba(0x373)+_0x4a38c3;}function le(_0x15bc29){const _0x367c9c=_0x1abb79;let {unitID:_0x23f72c,mutations:_0x33c5be}=_0x15bc29;return{'unitId':_0x23f72c,'subUnitId':_0x33c5be[_0x367c9c(0x2b3)]>0x0?_0x33c5be[0x0][_0x367c9c(0x2dc)][_0x367c9c(0x42b)]:null};}let C=class{constructor(_0x3166d4,_0x1cf584,_0x259cdc){const _0x3b1b81=_0x1abb79;this[_0x3b1b81(0x301)]=_0x3166d4,this['_transformService']=_0x1cf584,this['_instanceService']=_0x259cdc;}[_0x1abb79(0x36c)](_0x5d3452){const _0xc928b2=_0x1abb79;var _0x55e7a3,_0xf45563;let _0x19ff63=this[_0xc928b2(0x301)]['get'](r[_0xc928b2(0x46f)]),{unitId:_0x13e19f,subUnitId:_0x2701ed}=le(_0x5d3452),_0x2b3611=_0x19ff63==null?void 0x0:_0x19ff63[_0xc928b2(0x33d)](_0x13e19f)['getCurrentSelections'](),_0x54f268=(_0x55e7a3=this[_0xc928b2(0x405)][_0xc928b2(0x2de)](_0x13e19f))==null||(_0x55e7a3=_0x55e7a3['getActiveSheet']())==null?void 0x0:_0x55e7a3[_0xc928b2(0x367)]();if(_0x2b3611[_0xc928b2(0x2b3)]===0x0||!_0x13e19f||!_0x2701ed)return;let _0x1d1a95=[{'id':r[_0xc928b2(0x3ce)]['id'],'params':{'unitId':_0x13e19f,'subUnitId':_0x54f268,'selections':t['Tools'][_0xc928b2(0x40b)](_0x2b3611)}}],_0x471b40=this[_0xc928b2(0x20f)]['transformMutationsWithChangeset'](_0x5d3452,_0x1d1a95);if(!(0x0,e[_0xc928b2(0x2e3)])(_0x471b40))throw _0x471b40[_0xc928b2(0x1ec)];let _0x380a5a=(_0xf45563=_0x471b40[_0xc928b2(0x34f)][0x0])==null||(_0xf45563=_0xf45563['params'])==null?void 0x0:_0xf45563['selections'];if(Array[_0xc928b2(0x228)](_0x380a5a)&&_0x380a5a[_0xc928b2(0x2b3)]){if(_0x380a5a[_0xc928b2(0x2b3)]===_0x1d1a95[0x0]['params']['selections']['length']&&_0x380a5a[_0xc928b2(0x215)]((_0x5bca93,_0x5b830f)=>t['Rectangle'][_0xc928b2(0x247)](_0x5bca93[_0xc928b2(0x267)],_0x1d1a95[0x0]['params'][_0xc928b2(0x392)][_0x5b830f][_0xc928b2(0x267)])))return;this['_injector'][_0xc928b2(0x277)](t[_0xc928b2(0x426)])[_0xc928b2(0x253)](r['SetSelectionsOperation']['id'],{'unitId':_0x13e19f,'subUnitId':_0x54f268,'selections':_0x380a5a});}}};C=y([v(0x0,(0x0,t['Inject'])(t[_0x1abb79(0x1d5)])),v(0x1,e[_0x1abb79(0x2f7)]),v(0x2,t['IUniverInstanceService'])],C);const w=(0x0,t[_0x1abb79(0x205)])('univer-pro.collaboration-client.single-active-unit-service');let ue=function(_0x2f9f9f){const _0x22812b=_0x1abb79;return _0x2f9f9f[_0x2f9f9f[_0x22812b(0x409)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2f9f9f[_0x2f9f9f['OTHER_CLIENTS_EDITING']=0x1]=_0x22812b(0x341),_0x2f9f9f;}({});const T=_0x1abb79(0x210),de={};function fe(_0x5733dd){const _0x4d221f=_0x1abb79;var _0x179ea2;return!!((_0x179ea2=_0x5733dd[_0x4d221f(0x2dc)])!=null&&_0x179ea2[_0x4d221f(0x317)]);}const pe=new Set([r[_0x1abb79(0x332)]['id']]);function me(_0x48eec8,_0x5928e5,_0x89a0dd,_0x47a33a,_0x3cf21c){const _0x373d45=_0x1abb79;var _0x51ed3f,_0x25d5dd,_0x40df95,_0x291a0a;let _0x4d1c1b=[];for(let _0x192d3d of _0x48eec8){if(pe[_0x373d45(0x38d)](_0x192d3d['id'])){if(_0x4d1c1b[_0x373d45(0x2b3)]>0x0)break;_0x4d1c1b[_0x373d45(0x3ed)](_0x192d3d);break;}if(fe(_0x192d3d)){if(_0x4d1c1b[_0x373d45(0x2b3)]>0x0)break;_0x4d1c1b[_0x373d45(0x3ed)](_0x192d3d);break;}_0x4d1c1b[_0x373d45(0x3ed)](_0x192d3d);}let _0x2abafb=(_0x51ed3f=(_0x25d5dd=_0x3cf21c[_0x373d45(0x312)]())==null?void 0x0:_0x25d5dd[_0x373d45(0x2c6)])==null?_0x373d45(0x265):_0x51ed3f,_0x3bc41e=(_0x40df95=(_0x291a0a=_0x3cf21c[_0x373d45(0x312)]())==null?void 0x0:_0x291a0a['memberID'])==null?_0x373d45(0x265):_0x40df95;return{'changeset':{'unitID':_0x5928e5,'type':(0x0,e[_0x373d45(0x3e3)])(_0x89a0dd[_0x373d45(0x2ce)](_0x5928e5)),'baseRev':_0x47a33a[_0x373d45(0x3fb)](_0x5928e5),'revision':0x0,'userID':_0x2abafb,'memberID':_0x3bc41e,'mutations':_0x4d1c1b},'pendingMutations':_0x48eec8[_0x373d45(0x399)](_0x4d1c1b[_0x373d45(0x2b3)])};}function he(_0x265446,_0x9c9b5b,_0x2e538e,_0x226964,_0x31fc5e){const _0x549d6a=_0x1abb79;var _0x531c9c,_0x396325,_0x46876c,_0x4a2dbf;let _0x194e2e=_0x265446['reduce']((_0x5c6d9d,_0x407864)=>{const _0x12237b=_0x37da;let _0x2d9cfd=_0x5c6d9d[_0x5c6d9d[_0x12237b(0x2b3)]-0x1],{id:_0x541da6}=_0x2d9cfd==null?{}:_0x2d9cfd,{id:_0x2e3804,type:_0x18ade6}=_0x407864,_0x17e7c5=_0x407864['params'];if(_0x541da6&&_0x541da6!==_0x2e3804)throw Error(_0x12237b(0x321)+_0x541da6+_0x12237b(0x260)+_0x2e3804+'.');if(!_0x2d9cfd)return[{'id':_0x2e3804,'type':_0x18ade6,'params':{'unitId':_0x17e7c5['unitId'],'textRanges':_0x17e7c5[_0x12237b(0x39f)],'actions':_0x17e7c5[_0x12237b(0x25d)]}}];let _0x10a55c=_0x2d9cfd['params'];return ge(_0x10a55c[_0x12237b(0x25d)],_0x17e7c5[_0x12237b(0x25d)])?[..._0x5c6d9d['slice'](0x0,-0x1),{..._0x2d9cfd,'id':_0x2e3804,'type':_0x18ade6,'params':{'unitId':_0x17e7c5[_0x12237b(0x355)],'textRanges':_0x17e7c5['textRanges'],'actions':t[_0x12237b(0x418)][_0x12237b(0x484)](_0x10a55c[_0x12237b(0x25d)],_0x17e7c5['actions'])}}]:[..._0x5c6d9d,{'id':_0x2e3804,'type':_0x18ade6,'params':{'unitId':_0x17e7c5['unitId'],'textRanges':_0x17e7c5[_0x12237b(0x39f)],'actions':_0x17e7c5['actions']}}];},[]),_0x10639c=(_0x531c9c=(_0x396325=_0x31fc5e[_0x549d6a(0x312)]())==null?void 0x0:_0x396325[_0x549d6a(0x2c6)])==null?_0x549d6a(0x265):_0x531c9c,_0x566173=(_0x46876c=(_0x4a2dbf=_0x31fc5e[_0x549d6a(0x312)]())==null?void 0x0:_0x4a2dbf[_0x549d6a(0x1fd)])==null?_0x549d6a(0x265):_0x46876c;return{'changeset':{'unitID':_0x9c9b5b,'type':(0x0,e[_0x549d6a(0x3e3)])(_0x2e538e[_0x549d6a(0x2ce)](_0x9c9b5b)),'baseRev':_0x226964[_0x549d6a(0x3fb)](_0x9c9b5b),'revision':0x0,'userID':_0x10639c,'memberID':_0x566173,'mutations':_0x194e2e},'pendingMutations':_0x265446[_0x549d6a(0x399)](_0x265446[_0x549d6a(0x2b3)])};}function ge(_0x4805c5,_0xd36886){return!(_e(_0x4805c5)&&ve(_0xd36886)||ve(_0x4805c5)&&_e(_0xd36886));}function _e(_0x29e0d7){const _0xc0fe8=_0x1abb79;return ye(_0x29e0d7)[_0xc0fe8(0x34e)](_0x3911fd=>be(_0x3911fd)&&_0x3911fd['et']===_0xc0fe8(0x1d4));}function ve(_0x12065c){const _0x35c9f4=_0x1abb79;return ye(_0x12065c)[_0x35c9f4(0x34e)](_0x5a1b59=>Array['isArray'](_0x5a1b59)||typeof _0x5a1b59==_0x35c9f4(0x298)||typeof _0x5a1b59==_0x35c9f4(0x375));}function ye(_0x128f10){const _0x494765=_0x1abb79;if(!Array['isArray'](_0x128f10))return[];let _0x5d9d31=_0x128f10['includes'](_0x494765(0x230))?_0x128f10:_0x128f10['find'](_0x3ce931=>Array[_0x494765(0x228)](_0x3ce931)&&_0x3ce931[_0x494765(0x3a9)](_0x494765(0x230)));if(!Array[_0x494765(0x228)](_0x5d9d31))return[];let _0x339221=_0x5d9d31[_0x494765(0x38e)]('body');return _0x339221===-0x1?[]:_0x5d9d31[_0x494765(0x399)](_0x339221+0x1);}function be(_0x554792){const _0x13dff6=_0x1abb79;return typeof _0x554792==_0x13dff6(0x223)&&!!_0x554792&&!Array[_0x13dff6(0x228)](_0x554792);}function xe(_0x317f77,_0x7b9fc3){const _0x11a939=_0x1abb79;let _0x24539d=new i[(_0x11a939(0x286))](0x1);return setTimeout(()=>_0x24539d[_0x11a939(0x343)](_0x7b9fc3),_0x317f77),_0x24539d['asObservable']()[_0x11a939(0x3a1)]((0x0,i['take'])(0x1));}var E,D,O;let Se=function(_0x469741){const _0x35e575=_0x1abb79;return _0x469741['NOT_COLLAB']=_0x35e575(0x245),_0x469741['SYNCED']=_0x35e575(0x303),_0x469741['PENDING']='pending',_0x469741[_0x35e575(0x46a)]='awaiting',_0x469741[_0x35e575(0x2a3)]=_0x35e575(0x34d),_0x469741[_0x35e575(0x415)]='fetch_missing',_0x469741[_0x35e575(0x369)]=_0x35e575(0x256),_0x469741[_0x35e575(0x3d4)]=_0x35e575(0x249),_0x469741;}({});const Ce=0x4e20,we=0x2bf20;var k=class{constructor(_0x5e4bf1,_0x354596,_0x2e284e,_0x58042d,_0xf04db1,_0x937c34,_0x5f37b9,_0x4211ed,_0x28b1e3){const _0x88345=_0x1abb79;this[_0x88345(0x383)]=_0x5e4bf1,this[_0x88345(0x1ae)]=_0x354596,this['_handler']=_0xf04db1,this['_commandService']=_0x937c34,this[_0x88345(0x354)]=_0x5f37b9,this['_revisionService']=_0x4211ed,this['_localCacheService']=_0x28b1e3,g(this,'_awaitingChangeset',null),g(this,_0x88345(0x307),[]),this[_0x88345(0x3a5)]=_0x2e284e,this[_0x88345(0x307)]=_0x58042d;}['_checkMissing'](_0x137aec){const _0x3979a7=_0x1abb79;let _0x1c7539=this[_0x3979a7(0x407)]['getCurrentRevOfUnit'](this['unitID']);return _0x137aec['revision']>_0x1c7539+0x1?(this['_handler'][_0x3979a7(0x2d5)]({'from':_0x1c7539,'to':_0x137aec[_0x3979a7(0x445)]-0x1}),!0x0):!0x1;}[_0x1abb79(0x1da)](_0x5b0db9){const _0x5d9e0e=_0x1abb79;this[_0x5d9e0e(0x354)][_0x5d9e0e(0x335)](this[_0x5d9e0e(0x383)],_0x5b0db9);}[_0x1abb79(0x3bc)](_0x446ebf){const _0x512004=_0x1abb79;var _0x1ffc9f,_0xd26e5d;(_0x1ffc9f=(_0xd26e5d=this[_0x512004(0x2d8)])[_0x512004(0x41f)])==null||_0x1ffc9f[_0x512004(0x25c)](_0xd26e5d,_0x446ebf);}[_0x1abb79(0x1d6)](_0x28a926){const _0x46e55b=_0x1abb79;var _0x396816,_0xea2bb9;return(_0x396816=(_0xea2bb9=this[_0x46e55b(0x2d8)])[_0x46e55b(0x42f)])==null?void 0x0:_0x396816['call'](_0xea2bb9,_0x28a926);}[_0x1abb79(0x3f1)](_0x1897ce){const _0x262349=_0x1abb79;var _0x1646d0,_0x2f9df7;return(_0x1646d0=(_0x2f9df7=this[_0x262349(0x2d8)])['onTransformState'])==null?void 0x0:_0x1646d0[_0x262349(0x25c)](_0x2f9df7,_0x1897ce);}[_0x1abb79(0x278)](_0x2e8008){const _0x5e1288=_0x1abb79;var _0x26005d,_0x2a68b0,_0x3178e4;return(_0x26005d=(_0x2a68b0=(_0x3178e4=this['_handler'])[_0x5e1288(0x27f)])==null?void 0x0:_0x2a68b0[_0x5e1288(0x25c)](_0x3178e4,_0x2e8008))==null?_0x2e8008:_0x26005d;}['_transformRemoteChangesetByStateCache'](_0x2b8b77){const _0x35d3c1=_0x1abb79;var _0x18ff2e,_0x19b5d2,_0x123f45;return(_0x18ff2e=(_0x19b5d2=(_0x123f45=this[_0x35d3c1(0x2d8)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x19b5d2[_0x35d3c1(0x25c)](_0x123f45,_0x2b8b77))==null?_0x2b8b77:_0x18ff2e;}[_0x1abb79(0x336)](_0xe430d0){const _0x520dc0=_0x1abb79;if(this[_0x520dc0(0x1ae)]===t[_0x520dc0(0x3b9)][_0x520dc0(0x3d3)]){let {unitID:_0x5c57c7,mutations:_0x3f1e46,memberID:_0xfa4660}=_0xe430d0,_0x58bc5c=_0x3f1e46[_0x520dc0(0x2b3)]>0x0?_0x3f1e46[0x0]['params'][_0x520dc0(0x39f)]:[];if(Array[_0x520dc0(0x228)](_0x58bc5c)&&_0x58bc5c[_0x520dc0(0x2b3)]>0x0){var _0x44a82f,_0x42d062;(_0x44a82f=(_0x42d062=this[_0x520dc0(0x2d8)])[_0x520dc0(0x258)])==null||_0x44a82f[_0x520dc0(0x25c)](_0x42d062,{'unitID':_0x5c57c7,'memberID':_0xfa4660,'textRanges':_0x58bc5c});}}}[_0x1abb79(0x3c5)](){const _0x2f3256=_0x1abb79;var _0x59126e;(_0x59126e=this[_0x2f3256(0x1c9)])==null||_0x59126e[_0x2f3256(0x473)](this[_0x2f3256(0x383)],this['type'],this[_0x2f3256(0x3a5)],this['_pendingMutations']);}[_0x1abb79(0x3e4)](){const _0x354796=_0x1abb79;return this[_0x354796(0x407)][_0x354796(0x3fb)](this[_0x354796(0x383)]);}[_0x1abb79(0x24a)](){const _0x3114f5=_0x1abb79;this[_0x3114f5(0x407)][_0x3114f5(0x1b6)](this[_0x3114f5(0x383)]);}['_executeRemoteChangeset'](_0x232d3e){const _0xb52857=_0x1abb79;let _0x125520=this[_0xb52857(0x278)](_0x232d3e);_0x125520=this[_0xb52857(0x297)](_0x125520);let _0xf654e3=(0x0,t[_0xb52857(0x31d)])(_0x125520[_0xb52857(0x2f2)],this['_commandService'],{'fromCollab':!0x0});if(!_0xf654e3[_0xb52857(0x229)]){var _0x1f570b;throw _0xf654e3[_0xb52857(0x1ec)]instanceof Error?_0xf654e3['error']:Error((_0x1f570b=_0xf654e3[_0xb52857(0x1ec)])==null?_0xb52857(0x3fa):_0x1f570b);}this[_0xb52857(0x1d6)](_0x125520),this['_transformStateCache'](_0x125520),this[_0xb52857(0x1da)](_0x232d3e),this['_transformSelections'](_0x125520),this[_0xb52857(0x336)](_0x125520),this['_incrementRevisionNumber']();}};let A=class extends k{constructor(_0x1ff248,_0x463e18,_0x227343,_0x43d926,_0x494c11,_0x5f4b79,_0x46b73e,_0x1ed8e0,_0x474daf,_0x3822fb){const _0x3c3529=_0x1abb79;super(_0x1ff248,_0x463e18,null,[],_0x227343,_0x46b73e,_0x5f4b79,_0x43d926,_0x3822fb),this[_0x3c3529(0x301)]=_0x494c11,this[_0x3c3529(0x204)]=_0x1ed8e0,this[_0x3c3529(0x20f)]=_0x474daf,this['localCacheService']=_0x3822fb,g(this,'status',_0x3c3529(0x303));}[_0x1abb79(0x212)](_0x9591fc){const _0x4cac89=_0x1abb79;let _0x2d4aba=this['_injector'][_0x4cac89(0x427)](j,this[_0x4cac89(0x383)],this['type'],[_0x9591fc],this[_0x4cac89(0x2d8)]);return _0x2d4aba['_schedule'](),_0x2d4aba[_0x4cac89(0x3c5)](),_0x2d4aba;}[_0x1abb79(0x448)](_0x35667d){const _0x1cc3c2=_0x1abb79;if(this[_0x1cc3c2(0x2a5)](_0x35667d))return this[_0x1cc3c2(0x301)][_0x1cc3c2(0x427)](I,this[_0x1cc3c2(0x383)],this['type'],null,[],null,[_0x35667d],this['_handler']);try{let _0x29a4e9=this[_0x1cc3c2(0x20f)][_0x1cc3c2(0x411)](_0x35667d,[e[_0x1cc3c2(0x2ff)]]);if((0x0,e[_0x1cc3c2(0x2e3)])(_0x29a4e9)){let {c1Prime:_0x50b013}=_0x29a4e9;return this[_0x1cc3c2(0x2e7)](_0x50b013),this;}throw _0x29a4e9[_0x1cc3c2(0x1ec)];}catch(_0x1cb564){return this[_0x1cc3c2(0x204)][_0x1cc3c2(0x1ec)](_0x1cb564),this[_0x1cc3c2(0x1d1)](!0x1);}}['_onConflict'](_0x393447){const _0x3049c5=_0x1abb79;return this['_injector'][_0x3049c5(0x427)](P,this[_0x3049c5(0x383)],this[_0x3049c5(0x1ae)],null,[],this['_handler'],_0x393447);}[_0x1abb79(0x283)](_0xf33fb5){const _0x2ca889=_0x1abb79;if(_0xf33fb5[_0x2ca889(0x445)]<=this['_getCurrentRevision']())return this;throw Error(_0x2ca889(0x3e9));}[_0x1abb79(0x37b)](){const _0x246e7b=_0x1abb79;throw Error(_0x246e7b(0x28f));}[_0x1abb79(0x20a)](){return this;}[_0x1abb79(0x334)](){const _0x16911e=_0x1abb79;return this['_injector'][_0x16911e(0x427)](F,this[_0x16911e(0x383)],this['type'],null,[],this[_0x16911e(0x2d8)]);}[_0x1abb79(0x27a)](){return this;}[_0x1abb79(0x276)](){const _0x4b90ef=_0x1abb79;throw Error(_0x4b90ef(0x1fc));}['fetchMiss'](){const _0x3e0a06=_0x1abb79;let _0x50bb6d=this[_0x3e0a06(0x407)][_0x3e0a06(0x3fb)](this[_0x3e0a06(0x383)]);return this[_0x3e0a06(0x2d8)][_0x3e0a06(0x2d5)]({'from':_0x50bb6d,'to':0x0}),this[_0x3e0a06(0x301)]['createInstance'](I,this[_0x3e0a06(0x383)],this[_0x3e0a06(0x1ae)],null,[],null,[],this[_0x3e0a06(0x2d8)]);}};A=y([v(0x3,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x2b2)])),v(0x4,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x1d5)])),v(0x5,t[_0x1abb79(0x42d)]),v(0x6,t[_0x1abb79(0x426)]),v(0x7,t[_0x1abb79(0x22c)]),v(0x8,e[_0x1abb79(0x2f7)]),v(0x9,(0x0,t[_0x1abb79(0x323)])(S))],A);let j=E=class extends k{constructor(_0x40dd13,_0x565b92,_0x2a93df,_0x3be5f0,_0x5becc8,_0x32e7b3,_0x42c62d,_0x42e6b7,_0x574042,_0x50bdd7,_0x357429,_0x39ab70,_0x4e8bf2,_0x2da049){const _0x459f2a=_0x1abb79;super(_0x40dd13,_0x565b92,null,_0x2a93df,_0x3be5f0,_0x574042,_0x4e8bf2,_0x32e7b3,_0x2da049),this[_0x459f2a(0x301)]=_0x5becc8,this[_0x459f2a(0x21b)]=_0x42c62d,this['_logService']=_0x42e6b7,this[_0x459f2a(0x1c0)]=_0x50bdd7,this[_0x459f2a(0x20f)]=_0x357429,this['_univerInstanceService']=_0x39ab70,g(this,_0x459f2a(0x257),'pending'),g(this,_0x459f2a(0x291),null),g(this,_0x459f2a(0x2e2),null);}['appendMutation'](_0x5a5ca2){const _0x1144c1=_0x1abb79;return this['_pendingMutations'][_0x1144c1(0x3ed)](_0x5a5ca2),this[_0x1144c1(0x3c5)](),this;}['onRemoteChangeset'](_0x315742){const _0x595952=_0x1abb79;if(this[_0x595952(0x2a5)](_0x315742))return this['_clearScheduledTask'](),this[_0x595952(0x301)][_0x595952(0x427)](I,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x315742],this[_0x595952(0x2d8)]);try{let _0x367a32=this['_transformService'][_0x595952(0x411)](_0x315742,this[_0x595952(0x307)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x367a32)){let {c1Prime:_0x15528a,m2Prime:_0x136e69}=_0x367a32;this[_0x595952(0x2e7)](_0x15528a);let _0x56a44a=this[_0x595952(0x301)][_0x595952(0x427)](E,this[_0x595952(0x383)],this[_0x595952(0x1ae)],_0x136e69,this[_0x595952(0x2d8)]);this[_0x595952(0x346)]();let _0x316847=new Date()['getTime'](),_0x3fff34=this['_scheduleCompleteTimestamp']?Math[_0x595952(0x474)](this['_scheduleCompleteTimestamp']-_0x316847,0x0):this['_getSendChangesetTimeout']();return _0x56a44a[_0x595952(0x29d)](_0x3fff34),_0x56a44a;}throw _0x367a32[_0x595952(0x1ec)];}catch(_0x202742){return this[_0x595952(0x204)][_0x595952(0x1ec)](_0x202742),this[_0x595952(0x1d1)](!0x1);}}['onRemoteAck'](_0x449387){const _0x51368f=_0x1abb79;if(_0x449387[_0x51368f(0x445)]<=this[_0x51368f(0x3e4)]())return this;throw Error(_0x51368f(0x478));}[_0x1abb79(0x37b)](){const _0x2805c1=_0x1abb79;throw Error(_0x2805c1(0x368));}[_0x1abb79(0x20a)](){return this;}[_0x1abb79(0x334)](){const _0x315c4f=_0x1abb79;return this[_0x315c4f(0x346)](),this[_0x315c4f(0x301)]['createInstance'](F,this['unitID'],this[_0x315c4f(0x1ae)],null,this[_0x315c4f(0x307)],this[_0x315c4f(0x2d8)]);}[_0x1abb79(0x27a)](){return this;}[_0x1abb79(0x29d)](_0x43a0b){const _0x41c881=_0x1abb79;let _0xb0a6c8=_0x43a0b==null?this[_0x41c881(0x2c7)]():_0x43a0b;this[_0x41c881(0x291)]=new Date()[_0x41c881(0x3f3)]()+_0xb0a6c8,this[_0x41c881(0x2e2)]=setTimeout(()=>{const _0x36a3b4=_0x41c881;this[_0x36a3b4(0x346)]();let _0x4b3087=null;switch(this['type']){case t[_0x36a3b4(0x3b9)][_0x36a3b4(0x45b)]:_0x4b3087=me(this['_pendingMutations'],this[_0x36a3b4(0x383)],this['_univerInstanceService'],this[_0x36a3b4(0x407)],this[_0x36a3b4(0x21b)]);break;case t[_0x36a3b4(0x3b9)][_0x36a3b4(0x3d3)]:_0x4b3087=this[_0x36a3b4(0x307)][_0x36a3b4(0x215)](_0x301381=>_0x301381['id']===n[_0x36a3b4(0x2cb)]['id'])?he(this[_0x36a3b4(0x307)],this[_0x36a3b4(0x383)],this['_univerInstanceService'],this[_0x36a3b4(0x407)],this['_memberService']):me(this[_0x36a3b4(0x307)],this[_0x36a3b4(0x383)],this[_0x36a3b4(0x489)],this[_0x36a3b4(0x407)],this['_memberService']);break;default:throw Error(_0x36a3b4(0x274)+this['type']+_0x36a3b4(0x444));}let {changeset:_0x443006,pendingMutations:_0x36338d}=_0x4b3087;this[_0x36a3b4(0x2d8)][_0x36a3b4(0x324)](_0x443006);let _0x252c6e=_0x36338d[_0x36a3b4(0x2b3)]?this['_injector'][_0x36a3b4(0x427)](N,this[_0x36a3b4(0x383)],this[_0x36a3b4(0x1ae)],_0x443006,_0x36338d,this['_handler'],void 0x0):this[_0x36a3b4(0x301)][_0x36a3b4(0x427)](M,this[_0x36a3b4(0x383)],this[_0x36a3b4(0x1ae)],_0x443006,this[_0x36a3b4(0x2d8)]);_0x252c6e['_updateLocalCache'](),this[_0x36a3b4(0x2d8)][_0x36a3b4(0x436)](this,_0x252c6e);},_0xb0a6c8);}[_0x1abb79(0x2c7)](){const _0x4a3dab=_0x1abb79;var _0x219f34;let _0x32644c=this[_0x4a3dab(0x1c0)]['getConfig'](T);return(_0x219f34=_0x32644c==null?void 0x0:_0x32644c['sendChangesetTimeout'])==null?0x7d0:_0x219f34;}[_0x1abb79(0x276)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1abb79(0x346)](){const _0x34cbbe=_0x1abb79;this[_0x34cbbe(0x2e2)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x34cbbe(0x2e2)]=null);}['_onConflict'](_0x4d2762){const _0x381e83=_0x1abb79;return this['_clearScheduledTask'](),this[_0x381e83(0x301)][_0x381e83(0x427)](P,this['unitID'],this['type'],null,this[_0x381e83(0x307)],this['_handler'],_0x4d2762);}};j=E=y([v(0x4,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x1d5)])),v(0x5,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x2b2)])),v(0x6,(0x0,t[_0x1abb79(0x3cc)])(b)),v(0x7,t['ILogService']),v(0x8,t[_0x1abb79(0x426)]),v(0x9,t[_0x1abb79(0x2b4)]),v(0xa,e[_0x1abb79(0x2f7)]),v(0xb,t['IUniverInstanceService']),v(0xc,t[_0x1abb79(0x42d)]),v(0xd,(0x0,t[_0x1abb79(0x323)])(S))],j);let M=D=class extends k{constructor(_0x214222,_0x35683e,_0x365cef,_0x214662,_0x47a4cc,_0x143efb,_0xe2a714,_0x582658,_0x436cfc,_0x3d117b,_0x1352b2){const _0xa58867=_0x1abb79;super(_0x214222,_0x35683e,_0x365cef,[],_0x214662,_0xe2a714,_0x3d117b,_0x143efb,_0x1352b2),this[_0xa58867(0x301)]=_0x47a4cc,this[_0xa58867(0x204)]=_0x582658,this[_0xa58867(0x20f)]=_0x436cfc,g(this,_0xa58867(0x257),_0xa58867(0x350)),g(this,_0xa58867(0x3c4),0x0),g(this,_0xa58867(0x2b9),0x0),g(this,_0xa58867(0x275),void 0x0),g(this,'_sender',void 0x0);}[_0x1abb79(0x212)](_0x5a2ecf){const _0x31300e=_0x1abb79;this['_clearScheduledTask']();let _0x48ebeb=this[_0x31300e(0x301)][_0x31300e(0x427)](N,this[_0x31300e(0x383)],this[_0x31300e(0x1ae)],this[_0x31300e(0x3a5)],[_0x5a2ecf],this[_0x31300e(0x2d8)],this[_0x31300e(0x275)]);return _0x48ebeb[_0x31300e(0x3c5)](),_0x48ebeb;}[_0x1abb79(0x448)](_0x3790d2){const _0x41f243=_0x1abb79;if(this['_checkMissing'](_0x3790d2))return this[_0x41f243(0x346)](),this['_injector']['createInstance'](I,this[_0x41f243(0x383)],this[_0x41f243(0x1ae)],this[_0x41f243(0x3a5)],[],null,[_0x3790d2],this[_0x41f243(0x2d8)]);try{let _0x1c59be=this[_0x41f243(0x20f)]['transformChangesets']([_0x3790d2],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x41f243(0x362)])(_0x1c59be)){let {c1Prime:_0x50fcc8,c2Prime:_0x489b49}=_0x1c59be;this[_0x41f243(0x2e7)](_0x50fcc8[0x0]),_0x489b49[0x0][_0x41f243(0x3b5)]=this[_0x41f243(0x3e4)](),this[_0x41f243(0x346)]();let _0x3f4386=this['_injector'][_0x41f243(0x427)](D,this[_0x41f243(0x383)],this[_0x41f243(0x1ae)],_0x489b49[0x0],this[_0x41f243(0x2d8)]);return _0x3f4386[_0x41f243(0x3c5)](),_0x3f4386;}throw _0x1c59be['error'];}catch(_0x13e5cf){return this[_0x41f243(0x204)]['error'](_0x13e5cf),this['_onConflict'](!0x1);}}[_0x1abb79(0x283)](_0x5eb990){const _0xf59478=_0x1abb79;this[_0xf59478(0x346)]();let _0x35e9c4=this[_0xf59478(0x407)][_0xf59478(0x3fb)](this[_0xf59478(0x383)]);if(_0x5eb990[_0xf59478(0x445)]<=_0x35e9c4)return this;if(this['_checkMissing'](_0x5eb990))return this['_injector'][_0xf59478(0x427)](I,this[_0xf59478(0x383)],this['type'],this[_0xf59478(0x3a5)],[],_0x5eb990[_0xf59478(0x445)],[],this['_handler']);this[_0xf59478(0x24a)]();let _0x1c4e0e=this['_injector']['createInstance'](A,this['unitID'],this[_0xf59478(0x1ae)],this[_0xf59478(0x2d8)]);return _0x1c4e0e[_0xf59478(0x3c5)](),_0x1c4e0e;}[_0x1abb79(0x37b)](_0x52bf5d){const _0x1a64e4=_0x1abb79;return this['_onConflict'](!!(_0x52bf5d!=null&&_0x52bf5d[_0x1a64e4(0x3bb)]));}['onRemoteRetry'](_0x1e2958){const _0x734764=_0x1abb79;return this[_0x734764(0x2b9)]>we?this['toggleOffline']():(this[_0x734764(0x275)]=xe(this[_0x734764(0x3c4)],{'timeout':this['_resendTimeout'],'reqId':_0x1e2958[_0x734764(0x28c)]}),this['_sender']=this[_0x734764(0x275)]['subscribe'](({reqId:_0x283abe,timeout:_0x5aee08})=>{this['_resendWithTimeout'](_0x283abe,_0x5aee08);}),this);}[_0x1abb79(0x334)](){const _0x29a13e=_0x1abb79;return this['_clearScheduledTask'](),this[_0x29a13e(0x301)][_0x29a13e(0x427)](F,this[_0x29a13e(0x383)],this[_0x29a13e(0x1ae)],this[_0x29a13e(0x3a5)],[],this[_0x29a13e(0x2d8)]);}[_0x1abb79(0x27a)](){return this;}[_0x1abb79(0x276)](){const _0x1483ac=_0x1abb79;this[_0x1483ac(0x2d8)][_0x1483ac(0x324)](this[_0x1483ac(0x3a5)]);}[_0x1abb79(0x1d1)](_0x41d87d){const _0x3a104c=_0x1abb79;return this[_0x3a104c(0x346)](),this[_0x3a104c(0x301)]['createInstance'](P,this[_0x3a104c(0x383)],this[_0x3a104c(0x1ae)],this['_awaitingChangeset'],[],this[_0x3a104c(0x2d8)],_0x41d87d);}[_0x1abb79(0x3fc)](_0x4e0486,_0x2c480e){const _0x1bcb7a=_0x1abb79;var _0x46c186;_0x4e0486===((_0x46c186=this['_awaitingChangeset'])==null?void 0x0:_0x46c186[_0x1bcb7a(0x28c)])&&(this[_0x1bcb7a(0x276)](),this[_0x1bcb7a(0x3c4)]=_0x2c480e===0x0?0x3e8:Math[_0x1bcb7a(0x47d)](_0x2c480e*0x2,Ce),this[_0x1bcb7a(0x2b9)]+=this['_resendTimeout']);}[_0x1abb79(0x346)](){const _0x4c44c3=_0x1abb79;var _0x5f0534;(_0x5f0534=this[_0x4c44c3(0x1b8)])==null||_0x5f0534['unsubscribe'](),this[_0x4c44c3(0x3c4)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};M=D=y([v(0x4,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x1d5)])),v(0x5,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x2b2)])),v(0x6,t[_0x1abb79(0x426)]),v(0x7,t[_0x1abb79(0x22c)]),v(0x8,e[_0x1abb79(0x2f7)]),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x1abb79(0x323)])(S))],M);let N=O=class extends k{constructor(_0x57b33d,_0x4165a1,_0x1cf704,_0x32c6c5,_0x47a780,_0x835e76,_0x21f8c6,_0x4b35b7,_0x36641b,_0x33eafb,_0x282ef7,_0x5d8dc8,_0x3339da){const _0x1f03d9=_0x1abb79;super(_0x57b33d,_0x4165a1,_0x1cf704,_0x32c6c5,_0x47a780,_0x36641b,_0x5d8dc8,_0x4b35b7,_0x3339da),this[_0x1f03d9(0x301)]=_0x21f8c6,this[_0x1f03d9(0x204)]=_0x33eafb,this[_0x1f03d9(0x20f)]=_0x282ef7,this[_0x1f03d9(0x438)]=_0x3339da,g(this,_0x1f03d9(0x257),'awaiting_with_pending'),g(this,'_resendTimeout',0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x1f03d9(0x275),void 0x0),g(this,_0x1f03d9(0x1b8),void 0x0),_0x835e76&&(this[_0x1f03d9(0x275)]=_0x835e76,this[_0x1f03d9(0x1b8)]=this[_0x1f03d9(0x275)][_0x1f03d9(0x2ed)](({reqId:_0x532016,timeout:_0x97b67})=>{this['_resendWithTimeout'](_0x532016,_0x97b67);}));}[_0x1abb79(0x212)](_0x58ad73){const _0x4e67fc=_0x1abb79;return this[_0x4e67fc(0x307)][_0x4e67fc(0x3ed)](_0x58ad73),this;}[_0x1abb79(0x448)](_0x35ea07){const _0x27135d=_0x1abb79;if(this['_checkMissing'](_0x35ea07))return this[_0x27135d(0x346)](),this[_0x27135d(0x301)]['createInstance'](I,this[_0x27135d(0x383)],this[_0x27135d(0x1ae)],this[_0x27135d(0x3a5)],this[_0x27135d(0x307)],null,[_0x35ea07],this['_handler']);try{let _0x4c1912=this[_0x27135d(0x20f)][_0x27135d(0x39b)]([_0x35ea07],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x27135d(0x362)])(_0x4c1912)){let {c1Prime:_0x56b8bb,c2Prime:_0x2aa4fa}=_0x4c1912,_0x375d61=this[_0x27135d(0x20f)][_0x27135d(0x411)](_0x56b8bb[0x0],this[_0x27135d(0x307)]);if((0x0,e[_0x27135d(0x2e3)])(_0x375d61)){let {c1Prime:_0x5d7d84,m2Prime:_0x10161e}=_0x375d61;return this['_executeRemoteChangeset'](_0x5d7d84),_0x2aa4fa[0x0][_0x27135d(0x3b5)]=this['_getCurrentRevision'](),this[_0x27135d(0x346)](),this[_0x27135d(0x301)][_0x27135d(0x427)](O,this[_0x27135d(0x383)],this[_0x27135d(0x1ae)],_0x2aa4fa[0x0],_0x10161e,this[_0x27135d(0x2d8)],void 0x0);}throw _0x375d61[_0x27135d(0x1ec)];}throw _0x4c1912[_0x27135d(0x1ec)];}catch(_0x4bb48c){return this[_0x27135d(0x204)][_0x27135d(0x1ec)](_0x4bb48c),this[_0x27135d(0x1d1)](!0x1);}}['onRemoteAck'](_0x3104d2){const _0x4bd3cc=_0x1abb79;this[_0x4bd3cc(0x346)]();let _0x49bf9f=this[_0x4bd3cc(0x3e4)]();if(_0x3104d2[_0x4bd3cc(0x445)]<=_0x49bf9f)return this;if(this[_0x4bd3cc(0x2a5)](_0x3104d2))return this[_0x4bd3cc(0x301)][_0x4bd3cc(0x427)](I,this['unitID'],this[_0x4bd3cc(0x1ae)],this['_awaitingChangeset'],this[_0x4bd3cc(0x307)],_0x3104d2[_0x4bd3cc(0x445)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x267b0a=this[_0x4bd3cc(0x301)][_0x4bd3cc(0x427)](j,this['unitID'],this[_0x4bd3cc(0x1ae)],this[_0x4bd3cc(0x307)],this[_0x4bd3cc(0x2d8)]);return _0x267b0a[_0x4bd3cc(0x29d)](),_0x267b0a[_0x4bd3cc(0x3c5)](),_0x267b0a;}[_0x1abb79(0x37b)](_0x226137){const _0x11e95a=_0x1abb79;return this['_onConflict'](!!(_0x226137!=null&&_0x226137[_0x11e95a(0x3bb)]));}[_0x1abb79(0x20a)](_0x493140){const _0x1ace12=_0x1abb79;return this['_maxTotalRetryTimeout']>we?this[_0x1ace12(0x334)]():(this[_0x1ace12(0x275)]=xe(this[_0x1ace12(0x3c4)],{'timeout':this['_resendTimeout'],'reqId':_0x493140['reqId']}),this[_0x1ace12(0x1b8)]=this['_resendTimer']['subscribe'](({reqId:_0x499b3d,timeout:_0x81c3e7})=>{const _0x90fdd1=_0x1ace12;this[_0x90fdd1(0x3fc)](_0x499b3d,_0x81c3e7);}),this);}[_0x1abb79(0x334)](){const _0x1ffa6a=_0x1abb79;return this[_0x1ffa6a(0x346)](),this[_0x1ffa6a(0x301)][_0x1ffa6a(0x427)](F,this[_0x1ffa6a(0x383)],this[_0x1ffa6a(0x1ae)],this[_0x1ffa6a(0x3a5)],this['_pendingMutations'],this['_handler']);}[_0x1abb79(0x27a)](){return this;}['resend'](){const _0x226d1f=_0x1abb79;this[_0x226d1f(0x2d8)][_0x226d1f(0x324)](this[_0x226d1f(0x3a5)]);}[_0x1abb79(0x1d1)](_0x43a0f1){const _0xab0899=_0x1abb79;return this[_0xab0899(0x346)](),this['_injector']['createInstance'](P,this[_0xab0899(0x383)],this[_0xab0899(0x1ae)],null,this[_0xab0899(0x307)],this[_0xab0899(0x2d8)],_0x43a0f1);}[_0x1abb79(0x3fc)](_0x5ba8c1,_0x582a02){const _0x383746=_0x1abb79;var _0x25d036;_0x5ba8c1===((_0x25d036=this[_0x383746(0x3a5)])==null?void 0x0:_0x25d036[_0x383746(0x28c)])&&(this[_0x383746(0x276)](),this[_0x383746(0x3c4)]=_0x582a02===0x0?0x3e8:Math['min'](_0x582a02*0x2,Ce),this[_0x383746(0x2b9)]+=this[_0x383746(0x3c4)]);}[_0x1abb79(0x346)](){const _0x48e97d=_0x1abb79;var _0x1ada1f;(_0x1ada1f=this[_0x48e97d(0x1b8)])==null||_0x1ada1f[_0x48e97d(0x1db)](),this[_0x48e97d(0x3c4)]=0x0,this[_0x48e97d(0x2b9)]=0x0;}};N=O=y([v(0x6,(0x0,t[_0x1abb79(0x3cc)])(t['Injector'])),v(0x7,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x2b2)])),v(0x8,t[_0x1abb79(0x426)]),v(0x9,t[_0x1abb79(0x22c)]),v(0xa,e[_0x1abb79(0x2f7)]),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x1abb79(0x323)])(S))],N);let P=class extends k{constructor(_0x54c776,_0x240fac,_0x3cb3b7,_0x1fe00b,_0x22d0d7,_0x382283=!0x1,_0x3d9034,_0x45bab3,_0x475721,_0x43932d,_0x3402e3,_0x9e8ae0,_0x2ae564){const _0x3da35c=_0x1abb79;super(_0x54c776,_0x240fac,_0x3cb3b7,_0x1fe00b,_0x22d0d7,_0x45bab3,_0x475721,_0x43932d,_0x2ae564),this[_0x3da35c(0x316)]=_0x382283,this['_permissionService']=_0x3d9034,this[_0x3da35c(0x447)]=_0x3402e3,this[_0x3da35c(0x420)]=_0x9e8ae0,this[_0x3da35c(0x438)]=_0x2ae564,g(this,_0x3da35c(0x257),_0x3da35c(0x256)),this[_0x3da35c(0x309)](),this[_0x3da35c(0x481)](),this[_0x3da35c(0x269)]();}['appendMutation'](){return this;}[_0x1abb79(0x448)](){return this;}['onRemoteAck'](){return this;}[_0x1abb79(0x37b)](){return this;}[_0x1abb79(0x20a)](){return this;}[_0x1abb79(0x334)](){return this;}[_0x1abb79(0x27a)](){return this;}[_0x1abb79(0x276)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1abb79(0x481)](){const _0x22bcdb=_0x1abb79;var _0x2d328b;(_0x2d328b=this['_localCacheService'])==null||_0x2d328b[_0x22bcdb(0x473)](this[_0x22bcdb(0x383)],this[_0x22bcdb(0x1ae)],null,[]);}['_showConflictNotification'](){const _0x5f4522=_0x1abb79;this[_0x5f4522(0x316)]?this['_collaborationUIEventService'][_0x5f4522(0x1f5)]({'id':_0x5f4522(0x3c8)}):this['_collaborationUIEventService'][_0x5f4522(0x1f5)]({'id':'CONFLICT'});}['_disableEditing'](){const _0x371280=_0x1abb79;this['_permissionService']['updatePermissionPoint'](new r[(_0x371280(0x209))](this[_0x371280(0x383)])['id'],!0x1);}};P=y([v(0x6,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x2ad)])),v(0x7,t[_0x1abb79(0x426)]),v(0x8,t[_0x1abb79(0x42d)]),v(0x9,(0x0,t[_0x1abb79(0x3cc)])(e['RevisionService'])),v(0xa,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x20c)])),v(0xb,(0x0,t[_0x1abb79(0x3cc)])(_)),v(0xc,(0x0,t[_0x1abb79(0x323)])(S))],P);let F=class extends k{constructor(_0x50a408,_0x8f5d05,_0xc1acec,_0x1e918a,_0x2a7ea4,_0x536ee3,_0x465879,_0x15de49,_0x42d808,_0x2dc718){const _0x27f708=_0x1abb79;super(_0x50a408,_0x8f5d05,_0xc1acec,_0x1e918a,_0x2a7ea4,_0x15de49,_0x42d808,_0x465879,_0x2dc718),this[_0x27f708(0x301)]=_0x536ee3,g(this,_0x27f708(0x257),_0x27f708(0x249));}[_0x1abb79(0x212)](_0x2e45dc){const _0x2b6340=_0x1abb79;return this[_0x2b6340(0x307)][_0x2b6340(0x3ed)](_0x2e45dc),this[_0x2b6340(0x3c5)](),this;}[_0x1abb79(0x448)](_0x217a5f){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x188a01=_0x1abb79;throw Error(_0x188a01(0x208));}[_0x1abb79(0x20a)](){return this;}[_0x1abb79(0x334)](){return this;}[_0x1abb79(0x27a)](){const _0x2ad24c=_0x1abb79;let {_injector:_0x392004,_pendingMutations:_0x23b76,_awaitingChangeset:_0x2b6aa5,unitID:_0x53a852,_handler:_0x3a5252,type:_0x3f2cb4}=this,_0x5c26d6=Te(_0x392004,_0x53a852,_0x3f2cb4,_0x2b6aa5,_0x23b76,_0x3a5252);return _0x5c26d6 instanceof j?_0x5c26d6[_0x2ad24c(0x29d)]():(_0x5c26d6 instanceof N||_0x5c26d6 instanceof M)&&_0x5c26d6[_0x2ad24c(0x276)](),_0x5c26d6;}[_0x1abb79(0x276)](){const _0x51a463=_0x1abb79;throw Error(_0x51a463(0x35c));}};F=y([v(0x5,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x1d5)])),v(0x6,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x2b2)])),v(0x7,t[_0x1abb79(0x426)]),v(0x8,t[_0x1abb79(0x42d)]),v(0x9,(0x0,t[_0x1abb79(0x323)])(S))],F);let I=class extends k{constructor(_0x20e83,_0x207df9,_0xe1d197,_0x3ef813,_0x3d6d8a,_0x1b42fe,_0x500dc8,_0x368a6c,_0x35f92d,_0xbddf7a,_0x1c8d90,_0x4c4e6e,_0x2dea63,_0x567ef9){const _0x540904=_0x1abb79;super(_0x20e83,_0x207df9,_0xe1d197,_0x3ef813,_0x500dc8,_0x1c8d90,_0x4c4e6e,_0x35f92d,_0x567ef9),this[_0x540904(0x404)]=_0x3d6d8a,this[_0x540904(0x40f)]=_0x1b42fe,this[_0x540904(0x301)]=_0x368a6c,this['_logService']=_0xbddf7a,this[_0x540904(0x20f)]=_0x2dea63,this[_0x540904(0x438)]=_0x567ef9,g(this,_0x540904(0x257),'fetch_missing');}[_0x1abb79(0x440)](_0x530361){const _0x29f844=_0x1abb79;try{if(this[_0x29f844(0x446)](_0x530361)[_0x29f844(0x3a7)])throw Error(_0x29f844(0x2ca));if(this[_0x29f844(0x446)]([...this[_0x29f844(0x40f)]]['sort']((_0x5312b2,_0x10369e)=>_0x5312b2['revision']-_0x10369e[_0x29f844(0x445)]))[_0x29f844(0x3a7)])return this[_0x29f844(0x40f)]=[],this[_0x29f844(0x3c5)](),this['_handler'][_0x29f844(0x2d5)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x45cc1e=this[_0x29f844(0x3a5)],_0x1727d9=this[_0x29f844(0x307)],_0xf1714;if(_0x45cc1e&&_0x1727d9[_0x29f844(0x2b3)]!==0x0)_0xf1714=this[_0x29f844(0x301)][_0x29f844(0x427)](N,this['unitID'],this[_0x29f844(0x1ae)],_0x45cc1e,_0x1727d9,this['_handler'],void 0x0);else{if(_0x45cc1e&&_0x1727d9[_0x29f844(0x2b3)]===0x0)_0x45cc1e[_0x29f844(0x3b5)]=this[_0x29f844(0x3e4)](),_0xf1714=this[_0x29f844(0x301)][_0x29f844(0x427)](M,this['unitID'],this[_0x29f844(0x1ae)],_0x45cc1e,this['_handler']);else{if(_0x1727d9['length']!==0x0){let _0x440cda=this[_0x29f844(0x301)][_0x29f844(0x427)](j,this['unitID'],this[_0x29f844(0x1ae)],_0x1727d9,this['_handler']);_0x440cda[_0x29f844(0x29d)](),_0xf1714=_0x440cda;}else _0xf1714=this['_injector'][_0x29f844(0x427)](A,this[_0x29f844(0x383)],this[_0x29f844(0x1ae)],this[_0x29f844(0x2d8)]);}}return _0xf1714['_updateLocalCache'](),_0xf1714;}catch(_0x55f791){return this[_0x29f844(0x204)][_0x29f844(0x1ec)](_0x29f844(0x23a),_0x29f844(0x48a),_0x55f791),this[_0x29f844(0x301)]['createInstance'](P,this[_0x29f844(0x383)],this['type'],this[_0x29f844(0x3a5)],this['_pendingMutations'],this[_0x29f844(0x2d8)],!0x1);}}[_0x1abb79(0x446)](_0x59be97){const _0x4b5586=_0x1abb79;this[_0x4b5586(0x3e8)]();for(let _0x538c6b=0x0;_0x538c6b<_0x59be97[_0x4b5586(0x2b3)];_0x538c6b++){let _0x147c93=_0x59be97[_0x538c6b],_0x3d6fa2=this[_0x4b5586(0x3e4)]();if(!(_0x147c93[_0x4b5586(0x445)]<=_0x3d6fa2)){if(_0x147c93[_0x4b5586(0x445)]>_0x3d6fa2+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x147c93)){this[_0x4b5586(0x304)]();continue;}this[_0x4b5586(0x1f2)](_0x147c93),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x1abb79(0x1f2)](_0xb59a6c){const _0x1a21f0=_0x1abb79;let _0x11d155=_0xb59a6c,_0x5490cf=this[_0x1a21f0(0x3a5)];if(_0x5490cf){let _0x1c005=this[_0x1a21f0(0x20f)][_0x1a21f0(0x39b)]([_0xb59a6c],[_0x5490cf],!0x1);if(!(0x0,e['isTransformChangesetsSuccess'])(_0x1c005))throw _0x1c005[_0x1a21f0(0x1ec)];_0x11d155=_0x1c005[_0x1a21f0(0x3f6)][0x0],_0x5490cf=_0x1c005['c2Prime'][0x0];}let _0xc63e2a=this[_0x1a21f0(0x307)];if(_0xc63e2a[_0x1a21f0(0x2b3)]){let _0x2b75ba=this['_transformService'][_0x1a21f0(0x411)](_0x11d155,_0xc63e2a);if(!(0x0,e[_0x1a21f0(0x2e3)])(_0x2b75ba))throw _0x2b75ba['error'];_0x11d155=_0x2b75ba[_0x1a21f0(0x3f6)],_0xc63e2a=_0x2b75ba['m2Prime'];}this[_0x1a21f0(0x2e7)](_0x11d155),_0x5490cf&&(_0x5490cf['baseRev']=this[_0x1a21f0(0x3e4)]()),this[_0x1a21f0(0x3a5)]=_0x5490cf,this[_0x1a21f0(0x307)]=_0xc63e2a;}[_0x1abb79(0x3e8)](){const _0x16ba2d=_0x1abb79;if(!this['_awaitingChangeset']||this[_0x16ba2d(0x404)]==null)return;let _0x3eca88=this[_0x16ba2d(0x3e4)]();if(this[_0x16ba2d(0x404)]<=_0x3eca88)throw Error(_0x16ba2d(0x2ea)+this['_acknowledgedAwaitingRevision']+'.');this[_0x16ba2d(0x404)]===_0x3eca88+0x1&&this['_acknowledgeAwaiting']();}['_acknowledgeAwaiting'](){const _0x2b72ff=_0x1abb79;this['_incrementRevisionNumber'](),this[_0x2b72ff(0x3a5)]=null,this[_0x2b72ff(0x404)]=null;}[_0x1abb79(0x44a)](_0x596531){const _0x497eac=_0x1abb79;let _0x15852b=this[_0x497eac(0x3a5)];return!_0x15852b||!_0x15852b[_0x497eac(0x48c)]||_0x15852b['reqId']===null||_0x15852b['reqId']===void 0x0?!0x1:_0x596531[_0x497eac(0x383)]===_0x15852b[_0x497eac(0x383)]&&_0x596531[_0x497eac(0x48c)]===_0x15852b[_0x497eac(0x48c)]&&_0x596531[_0x497eac(0x28c)]===_0x15852b[_0x497eac(0x28c)];}[_0x1abb79(0x276)](){const _0x2b82dd=_0x1abb79;throw Error(_0x2b82dd(0x26d));}[_0x1abb79(0x212)](_0x16f889){const _0x11555a=_0x1abb79;return this[_0x11555a(0x307)]['push'](_0x16f889),this;}[_0x1abb79(0x448)](_0x3db979){const _0x4623fc=_0x1abb79;return this[_0x4623fc(0x40f)]['push'](_0x3db979),this;}[_0x1abb79(0x283)](_0xfec982){const _0x36f62d=_0x1abb79;if(this[_0x36f62d(0x3a5)]){let _0x2a7360=this[_0x36f62d(0x3e4)]();return _0xfec982[_0x36f62d(0x445)]<=_0x2a7360||(_0x2a7360+0x1===_0xfec982[_0x36f62d(0x445)]?(this[_0x36f62d(0x24a)](),this[_0x36f62d(0x3a5)]=null,this[_0x36f62d(0x404)]=null):this[_0x36f62d(0x404)]=_0xfec982[_0x36f62d(0x445)]),this;}if(_0xfec982['revision']<=this[_0x36f62d(0x3e4)]())return this;throw Error(_0x36f62d(0x34c));}[_0x1abb79(0x37b)](_0x56726b){const _0x310baa=_0x1abb79;return this['_onConflict'](!!(_0x56726b!=null&&_0x56726b[_0x310baa(0x3bb)]));}[_0x1abb79(0x20a)](){return this;}[_0x1abb79(0x334)](){const _0x40f6c0=_0x1abb79;return this[_0x40f6c0(0x301)][_0x40f6c0(0x427)](F,this[_0x40f6c0(0x383)],this[_0x40f6c0(0x1ae)],this['_awaitingChangeset'],this[_0x40f6c0(0x307)],this[_0x40f6c0(0x2d8)]);}[_0x1abb79(0x27a)](){return this;}['_onConflict'](_0xa687bd){const _0xb349c5=_0x1abb79;return this['_injector'][_0xb349c5(0x427)](P,this[_0xb349c5(0x383)],this[_0xb349c5(0x1ae)],this[_0xb349c5(0x3a5)],this[_0xb349c5(0x307)],this['_handler'],_0xa687bd);}};I=y([v(0x7,(0x0,t[_0x1abb79(0x3cc)])(t['Injector'])),v(0x8,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x2b2)])),v(0x9,t[_0x1abb79(0x22c)]),v(0xa,t[_0x1abb79(0x426)]),v(0xb,t[_0x1abb79(0x42d)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t[_0x1abb79(0x323)])(S))],I);function Te(_0x5f4466,_0x55c090,_0x4edc40,_0x5ed28a,_0x417e68,_0x381c72){const _0x351b12=_0x1abb79;return _0x5ed28a&&_0x417e68[_0x351b12(0x2b3)]?_0x5f4466['createInstance'](N,_0x55c090,_0x4edc40,_0x5ed28a,_0x417e68,_0x381c72,void 0x0):_0x5ed28a?_0x5f4466[_0x351b12(0x427)](M,_0x55c090,_0x4edc40,_0x5ed28a,_0x381c72):_0x417e68['length']?_0x5f4466[_0x351b12(0x427)](j,_0x55c090,_0x4edc40,_0x417e68,_0x381c72):_0x5f4466['createInstance'](A,_0x55c090,_0x4edc40,_0x381c72);}let L=class extends t[_0x1abb79(0x464)]{get['state'](){return this['_state'];}constructor(_0x4643a9,_0x3578dd,_0x2d6060,_0x25e17f,_0x5a7dae,_0x1cf4aa,_0x14d722,_0x1cbf83,_0x2b5c12,_0x1ef983,_0x4fb0f8,_0x4d4e7e,_0x8d97a8,_0xe78f37){const _0x2b2e9a=_0x1abb79;super(),this[_0x2b2e9a(0x383)]=_0x4643a9,this[_0x2b2e9a(0x30f)]=_0x3578dd,this[_0x2b2e9a(0x3bf)]=_0x2d6060,this[_0x2b2e9a(0x301)]=_0x25e17f,this[_0x2b2e9a(0x25a)]=_0x5a7dae,this[_0x2b2e9a(0x447)]=_0x1cf4aa,this[_0x2b2e9a(0x407)]=_0x14d722,this[_0x2b2e9a(0x43f)]=_0x1cbf83,this[_0x2b2e9a(0x489)]=_0x2b5c12,this[_0x2b2e9a(0x204)]=_0x1ef983,this[_0x2b2e9a(0x2a2)]=_0x4fb0f8,this[_0x2b2e9a(0x244)]=_0x4d4e7e,this[_0x2b2e9a(0x42a)]=_0x8d97a8,this[_0x2b2e9a(0x1c9)]=_0xe78f37,g(this,_0x2b2e9a(0x311),new i[(_0x2b2e9a(0x428))](null)),g(this,'state$',this[_0x2b2e9a(0x311)][_0x2b2e9a(0x234)]()),g(this,'_state',void 0x0),g(this,_0x2b2e9a(0x43b),!0x1),g(this,_0x2b2e9a(0x345),''),g(this,_0x2b2e9a(0x1b1),0x0),g(this,'status$',this['state$'][_0x2b2e9a(0x3a1)]((0x0,i['map'])(_0x513b01=>_0x513b01?_0x513b01[_0x2b2e9a(0x257)]:_0x2b2e9a(0x249)),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x2b2e9a(0x2d7),!0x1),g(this,'_remoteChangesetQueue',[]);}async[_0x1abb79(0x434)](){const _0x2e936f=_0x1abb79;if(this[_0x2e936f(0x3d2)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x2e936f(0x216)]();}[_0x1abb79(0x36f)](){const _0x3139ae=_0x1abb79;return this[_0x3139ae(0x43b)]=!0x0,(0x0,t['toDisposable'])(()=>{const _0x3e46f1=_0x3139ae;this['_collaborationPaused']=!0x1,this[_0x3e46f1(0x34a)]();});}[_0x1abb79(0x302)](_0x4ced13){const _0x56569f=_0x1abb79;this[_0x56569f(0x363)](_0x4ced13);}[_0x1abb79(0x1ba)](_0x4678a8){const _0xc0e2af=_0x1abb79;this[_0xc0e2af(0x2a0)]=_0x4678a8,this[_0xc0e2af(0x311)][_0xc0e2af(0x343)](_0x4678a8);}async[_0x1abb79(0x216)](){const _0x5dcfd4=_0x1abb79;if(this[_0x5dcfd4(0x1ba)](await this['_createInitialState']()),this[_0x5dcfd4(0x42a)]){var _0x3da8f3;(_0x3da8f3=this[_0x5dcfd4(0x42a)])==null||_0x3da8f3['editingUnit'](this['unitID']),this[_0x5dcfd4(0x2d3)](this['_singleActiveUnitService'][_0x5dcfd4(0x359)](this['unitID'])[_0x5dcfd4(0x2ed)](_0x4b06dc=>{const _0x118fc8=_0x5dcfd4;this[_0x118fc8(0x204)][_0x118fc8(0x490)](_0x118fc8(0x3ab),_0x118fc8(0x47f),_0x4b06dc),_0x4b06dc===0x1?(this[_0x118fc8(0x43f)][_0x118fc8(0x1f5)]({'id':_0x118fc8(0x1b9)}),this[_0x118fc8(0x244)]['updatePermissionPoint'](new r['WorkbookEditablePermission'](this[_0x118fc8(0x383)])['id'],!0x1),this[_0x118fc8(0x244)][_0x118fc8(0x1ce)](!0x1)):(this[_0x118fc8(0x244)][_0x118fc8(0x2be)](new r['WorkbookEditablePermission'](this[_0x118fc8(0x383)])['id'],!0x0),this['_permissionService'][_0x118fc8(0x1ce)](!0x0));}));}let _0x397fa2=!0x1;return this[_0x5dcfd4(0x2d3)](this[_0x5dcfd4(0x30f)][_0x5dcfd4(0x3c0)][_0x5dcfd4(0x2ed)](_0x3afb85=>{const _0x1c5342=_0x5dcfd4;_0x3afb85===0x3?this[_0x1c5342(0x2e1)](_0x397fa2):_0x3afb85===0x2&&(_0x397fa2=!0x0,this[_0x1c5342(0x1c8)]());})),this[_0x5dcfd4(0x2d3)](this[_0x5dcfd4(0x30f)][_0x5dcfd4(0x36b)]['subscribe'](_0x4e68a7=>{const _0x3c0985=_0x5dcfd4;try{switch(_0x4e68a7[_0x3c0985(0x20b)]){case e['CollaborationEvent'][_0x3c0985(0x486)]:this['_onRemoteChangeset']((0x0,e[_0x3c0985(0x327)])(_0x4e68a7['data']));break;case e[_0x3c0985(0x380)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x4e68a7[_0x3c0985(0x471)]);break;case e[_0x3c0985(0x380)][_0x3c0985(0x1b4)]:this[_0x3c0985(0x27b)]();break;case e[_0x3c0985(0x380)][_0x3c0985(0x2d1)]:this[_0x3c0985(0x47e)](_0x4e68a7[_0x3c0985(0x471)]);break;case e[_0x3c0985(0x380)]['PSEUDO_FETCH_MISSING_RESULT']:this['_onFetchMissResult'](_0x4e68a7['data'][_0x3c0985(0x2c1)][_0x3c0985(0x41d)](_0x238ab4=>(0x0,e['parseProtocolChangeset'])(_0x238ab4)));break;case e[_0x3c0985(0x380)][_0x3c0985(0x224)]:this[_0x3c0985(0x27b)]({'isPermissionRej':!0x0});break;case e[_0x3c0985(0x380)][_0x3c0985(0x1cc)]:break;}}catch(_0x11d7e3){throw console[_0x3c0985(0x1ec)](_0x3c0985(0x21c),_0x11d7e3),_0x11d7e3;}})),this[_0x5dcfd4(0x2a0)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x1abb79(0x28d)](){if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}[_0x1abb79(0x363)](_0x211693){const _0x2c17cb=_0x1abb79;this[_0x2c17cb(0x28d)](),this[_0x2c17cb(0x1ba)](this[_0x2c17cb(0x2a0)]['appendMutation'](_0x211693)),this[_0x2c17cb(0x220)]();}[_0x1abb79(0x325)](_0x21a0ef){const _0x3b8427=_0x1abb79;if(!(_0x21a0ef[_0x3b8427(0x445)]<=this[_0x3b8427(0x407)]['getCurrentRevOfUnit'](this[_0x3b8427(0x383)]))){if(this[_0x3b8427(0x43b)]){this[_0x3b8427(0x394)]['push'](_0x21a0ef);return;}this[_0x3b8427(0x285)](_0x21a0ef);}}[_0x1abb79(0x34a)](){const _0x458591=_0x1abb79;this[_0x458591(0x394)][_0x458591(0x222)](_0x38a75b=>this[_0x458591(0x285)](_0x38a75b)),this[_0x458591(0x394)]=[];}[_0x1abb79(0x285)](_0x56156e){const _0x1e77f3=_0x1abb79;let _0x22bd58=this[_0x1e77f3(0x25a)][_0x1e77f3(0x35f)]['fetchThroughInterceptors'](this[_0x1e77f3(0x25a)][_0x1e77f3(0x35f)][_0x1e77f3(0x43d)]()[_0x1e77f3(0x2a9)])(_0x56156e['mutations'],null)||_0x56156e[_0x1e77f3(0x2f2)],_0x6beac7={..._0x56156e,'mutations':_0x22bd58};this['_lockTransition'](),this[_0x1e77f3(0x1ba)](this[_0x1e77f3(0x2a0)][_0x1e77f3(0x448)](_0x6beac7)),this[_0x1e77f3(0x220)]();}[_0x1abb79(0x31c)](_0x4001ec){const _0x116f9e=_0x1abb79;this[_0x116f9e(0x28d)](),this[_0x116f9e(0x1ba)](this['_state'][_0x116f9e(0x283)](_0x4001ec)),this['_unlockTransition']();}[_0x1abb79(0x27b)](_0x1b3e4c){const _0x504fd6=_0x1abb79;this[_0x504fd6(0x28d)](),this[_0x504fd6(0x1ba)](this[_0x504fd6(0x2a0)][_0x504fd6(0x37b)](_0x1b3e4c)),this[_0x504fd6(0x220)]();}['_onRemoteRetry'](_0x2b6f68){const _0x21f706=_0x1abb79;this[_0x21f706(0x28d)](),this[_0x21f706(0x1ba)](this[_0x21f706(0x2a0)][_0x21f706(0x20a)](_0x2b6f68)),this['_unlockTransition']();}[_0x1abb79(0x483)](_0x3ee119){const _0x146507=_0x1abb79;if(!(this[_0x146507(0x2a0)]instanceof I))throw TypeError(_0x146507(0x2f1));let _0x2ed1bb=_0x3ee119[_0x146507(0x41d)](_0x38ac41=>{const _0x499954=_0x146507;let _0x19b36b=this[_0x499954(0x25a)][_0x499954(0x35f)][_0x499954(0x3dc)](this['_compressMutationService'][_0x499954(0x35f)]['getInterceptPoints']()[_0x499954(0x2a9)])(_0x38ac41[_0x499954(0x2f2)],null)||_0x38ac41['mutations'];return{..._0x38ac41,'mutations':_0x19b36b};});this[_0x146507(0x28d)](),this['_updateState'](this[_0x146507(0x2a0)][_0x146507(0x440)](_0x2ed1bb)),this['_unlockTransition']();}['_toggleOffline'](){const _0x28b222=_0x1abb79;this[_0x28b222(0x28d)](),this[_0x28b222(0x1ba)](this['_state'][_0x28b222(0x334)]()),this[_0x28b222(0x220)]();}[_0x1abb79(0x2e1)](_0x514fd2=!0x1){const _0x111277=_0x1abb79;this['_lockTransition'](),this[_0x111277(0x1ba)](this['_state'][_0x111277(0x27a)]()),this[_0x111277(0x220)]();let _0x25b7bc=this[_0x111277(0x2a0)];_0x514fd2&&_0x25b7bc instanceof A&&(this['_lockTransition'](),this[_0x111277(0x1ba)](_0x25b7bc['fetchMiss']()),this[_0x111277(0x220)]());}async[_0x1abb79(0x453)](){return new Promise(_0x1be902=>{const _0x5be689=_0x37da;this['session'][_0x5be689(0x3c0)][_0x5be689(0x3a1)]((0x0,i['take'])(0x1))[_0x5be689(0x2ed)](async _0x4fb033=>{const _0x5333cd=_0x5be689;_0x1be902(await this[_0x5333cd(0x37a)](_0x4fb033===0x3));});});}[_0x1abb79(0x3a8)](){const _0x11f16d=_0x1abb79;let _0x2029ea=this[_0x11f16d(0x383)];return{'onStateChange':(_0x395ae9,_0x57f91e)=>{const _0x3e3107=_0x11f16d;if(_0x395ae9!==this[_0x3e3107(0x2a0)])throw Error(_0x3e3107(0x2ac)+_0x395ae9[_0x3e3107(0x257)]+_0x3e3107(0x365)+_0x57f91e[_0x3e3107(0x257)]+_0x3e3107(0x2a4)+this[_0x3e3107(0x2a0)][_0x3e3107(0x257)]);this[_0x3e3107(0x1ba)](_0x57f91e);},'onSendChangeset':_0x34b460=>{const _0x5cd1fe=_0x11f16d;_0x34b460[_0x5cd1fe(0x48c)]||(_0x34b460[_0x5cd1fe(0x48c)]=this[_0x5cd1fe(0x345)],_0x34b460[_0x5cd1fe(0x28c)]=++this[_0x5cd1fe(0x1b1)]);let _0x4a9a74={'eventID':e[_0x5cd1fe(0x380)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x34b460['unitID'],'unitType':this[_0x5cd1fe(0x3bf)],'changeset':_0x34b460,'memberID':this[_0x5cd1fe(0x30f)][_0x5cd1fe(0x358)]()}};this[_0x5cd1fe(0x30f)]['send'](_0x4a9a74,this[_0x5cd1fe(0x383)]);},'onMissingChangesets':({from:_0x5793e0,to:_0x45f1db})=>{const _0x42c49d=_0x11f16d;this[_0x42c49d(0x204)][_0x42c49d(0x490)](_0x42c49d(0x3ab),_0x42c49d(0x33e)+_0x5793e0+_0x42c49d(0x28a)+_0x45f1db);let _0x38db58={'eventID':e[_0x42c49d(0x380)][_0x42c49d(0x2f8)],'data':{'unitID':_0x2029ea,'unitType':this[_0x42c49d(0x3bf)],'from':_0x5793e0,'to':_0x45f1db}};this['session'][_0x42c49d(0x357)](_0x38db58,this[_0x42c49d(0x383)]);}};}async[_0x1abb79(0x37a)](_0x446d87){const _0xf22361=_0x1abb79;var _0x12979e,_0x20a093,_0xcdd03f;let _0x2de704=await((_0x12979e=this[_0xf22361(0x1c9)])==null?void 0x0:_0x12979e[_0xf22361(0x419)](this[_0xf22361(0x383)])),_0x16133d=(_0x20a093=_0x2de704==null?void 0x0:_0x2de704[_0xf22361(0x2f2)])==null?[]:_0x20a093,_0x222ea9=(_0xcdd03f=_0x2de704==null?void 0x0:_0x2de704[_0xf22361(0x443)])==null?null:_0xcdd03f,_0x295cbe=!!(_0x222ea9!=null&&_0x222ea9['sid'])&&!!(_0x222ea9!=null&&_0x222ea9['reqId']);this['_changesetSessionId']=_0x295cbe?_0x222ea9[_0xf22361(0x48c)]:(0x0,e['uuidv4'])(),this[_0xf22361(0x1b1)]=_0x295cbe?_0x222ea9[_0xf22361(0x28c)]:0x0;let _0x55f5bc=this[_0xf22361(0x383)];try{this['_replayCachedMutations'](_0x222ea9,_0x16133d);}catch(_0x50d193){this[_0xf22361(0x204)][_0xf22361(0x1ec)](_0x50d193);}let _0x3fc855=this[_0xf22361(0x3a8)]();if(_0x446d87){let _0x2010b5=Te(this['_injector'],_0x55f5bc,this[_0xf22361(0x3bf)],_0x222ea9,_0x16133d,_0x3fc855);return _0x2010b5 instanceof j?_0x2010b5[_0xf22361(0x29d)]():(_0x2010b5 instanceof N||_0x2010b5 instanceof M)&&_0x2010b5[_0xf22361(0x276)](),_0x2010b5;}return this[_0xf22361(0x301)][_0xf22361(0x427)](F,_0x55f5bc,this[_0xf22361(0x3bf)],_0x222ea9,_0x16133d,_0x3fc855);}['_replayCachedMutations'](_0x58fd2f,_0x2cb610){const _0x2e96ee=_0x1abb79;var _0xe1b0e2,_0x12b1e1;let _0x25b371=this[_0x2e96ee(0x25a)][_0x2e96ee(0x35f)][_0x2e96ee(0x3dc)](this[_0x2e96ee(0x25a)][_0x2e96ee(0x35f)][_0x2e96ee(0x43d)]()['COMPRESS_MUTATION_APPLY']);(_0xe1b0e2=_0x25b371((_0x58fd2f==null?void 0x0:_0x58fd2f[_0x2e96ee(0x2f2)])||[],null))==null||_0xe1b0e2[_0x2e96ee(0x222)](_0x19aa69=>this['_commandService'][_0x2e96ee(0x253)](_0x19aa69['id'],_0x19aa69['params'])),(_0x12b1e1=_0x25b371(_0x2cb610||[],null))==null||_0x12b1e1[_0x2e96ee(0x222)](_0x2b8a91=>this['_commandService'][_0x2e96ee(0x253)](_0x2b8a91['id'],_0x2b8a91['params']));}};L=y([v(0x3,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x1d5)])),v(0x4,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x1c3)])),v(0x5,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x20c)])),v(0x6,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x2b2)])),v(0x7,(0x0,t[_0x1abb79(0x3cc)])(_)),v(0x8,t[_0x1abb79(0x31a)]),v(0x9,t[_0x1abb79(0x22c)]),v(0xa,t[_0x1abb79(0x426)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x1abb79(0x323)])(w)),v(0xd,(0x0,t[_0x1abb79(0x323)])(S))],L);let R=class extends L{constructor(_0xd0caed,_0x4e7fad,_0x4600c2,_0x33bde5,_0x3c5868,_0x3f33b5,_0x91035c,_0x26d783,_0x5422b6,_0x233894,_0x1624bb,_0xd2e542,_0x531066,_0x283d22){const _0x4424e0=_0x1abb79;super(_0xd0caed,_0x4600c2,_0x4e7fad,_0x33bde5,_0x3c5868,_0x3f33b5,_0x91035c,_0x26d783,_0x5422b6,_0x233894,_0x1624bb,_0xd2e542,_0x531066,_0x283d22),this[_0x4424e0(0x383)]=_0xd0caed,this[_0x4424e0(0x1ae)]=_0x4e7fad,g(this,'_handlerCallback',null);}[_0x1abb79(0x450)](_0x3b8778){const _0xbe610c=_0x1abb79;this[_0xbe610c(0x29a)]=_0x3b8778;}[_0x1abb79(0x370)](){const _0x1ac8ec=_0x1abb79;this[_0x1ac8ec(0x29a)]=null,super[_0x1ac8ec(0x370)]();}[_0x1abb79(0x3a8)](){const _0x18c8c7=_0x1abb79;let _0x1a68c3=super['_createHandler']();return _0x1a68c3[_0x18c8c7(0x42f)]=_0x2ce620=>{const _0x348d3c=_0x18c8c7;var _0x2ca444,_0xbb5421;return(_0x2ca444=this[_0x348d3c(0x29a)])==null||(_0xbb5421=_0x2ca444['onTransformIME'])==null?void 0x0:_0xbb5421[_0x348d3c(0x25c)](_0x2ca444,_0x2ce620);},_0x1a68c3[_0x18c8c7(0x252)]=_0x4cbe08=>{const _0x4ef3db=_0x18c8c7;var _0xf2b00,_0x875fd2;return(_0xf2b00=this[_0x4ef3db(0x29a)])==null||(_0x875fd2=_0xf2b00[_0x4ef3db(0x252)])==null?void 0x0:_0x875fd2[_0x4ef3db(0x25c)](_0xf2b00,_0x4cbe08);},_0x1a68c3[_0x18c8c7(0x41f)]=_0x504457=>{const _0x1a2ee0=_0x18c8c7;var _0x2cc262,_0x31c4a5;return(_0x2cc262=this[_0x1a2ee0(0x29a)])==null||(_0x31c4a5=_0x2cc262[_0x1a2ee0(0x41f)])==null?void 0x0:_0x31c4a5[_0x1a2ee0(0x25c)](_0x2cc262,_0x504457);},_0x1a68c3['onSyncEditingCollabCursor']=_0x473ea6=>{const _0x1f1872=_0x18c8c7;var _0x4f4a01,_0xcefc8a;return(_0x4f4a01=this['_handlerCallback'])==null||(_0xcefc8a=_0x4f4a01[_0x1f1872(0x258)])==null?void 0x0:_0xcefc8a[_0x1f1872(0x25c)](_0x4f4a01,_0x473ea6);},_0x1a68c3[_0x18c8c7(0x27f)]=_0x3d2f98=>{const _0x2c14b9=_0x18c8c7;var _0x366579,_0x1686f8,_0x4d801f;if(!((_0x366579=this[_0x2c14b9(0x29a)])!=null&&_0x366579[_0x2c14b9(0x27f)]))throw Error(_0x2c14b9(0x38a));return(_0x1686f8=this[_0x2c14b9(0x29a)])==null||(_0x4d801f=_0x1686f8[_0x2c14b9(0x27f)])==null?void 0x0:_0x4d801f['call'](_0x1686f8,_0x3d2f98);},_0x1a68c3[_0x18c8c7(0x1e0)]=_0x4ef689=>{const _0xb356b2=_0x18c8c7;var _0x1e399a,_0x2178ea,_0x5d11ab;if(!((_0x1e399a=this[_0xb356b2(0x29a)])!=null&&_0x1e399a[_0xb356b2(0x1e0)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x2178ea=this['_handlerCallback'])==null||(_0x5d11ab=_0x2178ea[_0xb356b2(0x1e0)])==null?void 0x0:_0x5d11ab[_0xb356b2(0x25c)](_0x2178ea,_0x4ef689);},_0x1a68c3;}async[_0x1abb79(0x216)](){const _0x743a1a=_0x1abb79;let _0x594492=await super[_0x743a1a(0x216)]();return this[_0x743a1a(0x2d3)](this['_commandService'][_0x743a1a(0x2b1)]((_0x357056,_0x5b5cfd)=>{const _0x50ebb6=_0x743a1a;if(_0x357056[_0x50ebb6(0x1ae)]!==t[_0x50ebb6(0x429)][_0x50ebb6(0x360)]||_0x5b5cfd!=null&&_0x5b5cfd['fromCollab']||_0x5b5cfd!=null&&_0x5b5cfd['onlyLocal']||_0x357056['id']===n[_0x50ebb6(0x2cb)]['id'])return;let _0x227199=_0x357056[_0x50ebb6(0x2dc)];if((_0x227199==null?void 0x0:_0x227199[_0x50ebb6(0x355)])!==this[_0x50ebb6(0x383)])return;let _0x13a6c7=_0x357056,_0x570784=this[_0x50ebb6(0x25a)][_0x50ebb6(0x35f)][_0x50ebb6(0x3dc)](this['_compressMutationService'][_0x50ebb6(0x35f)]['getInterceptPoints']()[_0x50ebb6(0x414)])([_0x13a6c7],this[_0x50ebb6(0x489)])||[_0x13a6c7];this[_0x50ebb6(0x363)](_0x570784[0x0]);})),_0x594492;}};R=y([v(0x3,(0x0,t[_0x1abb79(0x3cc)])(t['Injector'])),v(0x4,(0x0,t[_0x1abb79(0x3cc)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x20c)])),v(0x6,(0x0,t['Inject'])(e[_0x1abb79(0x2b2)])),v(0x7,(0x0,t[_0x1abb79(0x3cc)])(_)),v(0x8,t[_0x1abb79(0x31a)]),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t['IPermissionService']),v(0xc,(0x0,t['Optional'])(w)),v(0xd,(0x0,t[_0x1abb79(0x323)])(S))],R);let z=class extends L{constructor(_0x3d3b4c,_0x16d366,_0x287e98,_0x26f898,_0x2a232e,_0xf8f2eb,_0x51ca73,_0x12eb81,_0x42fbe8,_0x8be63a,_0x36903a,_0x469593,_0x5b63a9,_0x2ce7f9,_0x31ee3b){const _0x471843=_0x1abb79;super(_0x3d3b4c,_0x287e98,_0x16d366,_0x26f898,_0x2a232e,_0xf8f2eb,_0x51ca73,_0x42fbe8,_0x8be63a,_0x36903a,_0x469593,_0x5b63a9,_0x2ce7f9,_0x31ee3b),this[_0x471843(0x383)]=_0x3d3b4c,this[_0x471843(0x1ae)]=_0x16d366,this[_0x471843(0x315)]=_0x12eb81;}[_0x1abb79(0x3a8)](){const _0x22e5b1=_0x1abb79;let _0x507a94=super[_0x22e5b1(0x3a8)]();return _0x507a94['onTransformSelections']=_0x3021bd=>this[_0x22e5b1(0x315)][_0x22e5b1(0x36c)](_0x3021bd),_0x507a94;}async[_0x1abb79(0x216)](){const _0x575215=_0x1abb79;let _0x3aeb82=await super[_0x575215(0x216)]();return this['disposeWithMe'](this[_0x575215(0x2a2)][_0x575215(0x2b1)]((_0x28b95f,_0x57662d)=>{const _0x112ef5=_0x575215;if(_0x28b95f['type']!==t[_0x112ef5(0x429)][_0x112ef5(0x360)]||_0x57662d!=null&&_0x57662d['fromCollab']||_0x57662d!=null&&_0x57662d['onlyLocal'])return;let _0x202b01=_0x28b95f[_0x112ef5(0x2dc)];if((_0x202b01==null?void 0x0:_0x202b01[_0x112ef5(0x355)])!==this[_0x112ef5(0x383)])return;let _0xed88d2=_0x28b95f,_0x5d560b=this[_0x112ef5(0x25a)]['interceptor'][_0x112ef5(0x3dc)](this[_0x112ef5(0x25a)]['interceptor'][_0x112ef5(0x43d)]()[_0x112ef5(0x414)])([_0xed88d2],this[_0x112ef5(0x489)])||[_0xed88d2];this[_0x112ef5(0x363)](_0x5d560b[0x0]);})),_0x3aeb82;}};z=y([v(0x3,(0x0,t['Inject'])(t[_0x1abb79(0x1d5)])),v(0x4,(0x0,t[_0x1abb79(0x3cc)])(e[_0x1abb79(0x1c3)])),v(0x5,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x20c)])),v(0x6,(0x0,t[_0x1abb79(0x3cc)])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(C)),v(0x8,(0x0,t[_0x1abb79(0x3cc)])(_)),v(0x9,t['IUniverInstanceService']),v(0xa,t[_0x1abb79(0x22c)]),v(0xb,t[_0x1abb79(0x426)]),v(0xc,t[_0x1abb79(0x2ad)]),v(0xd,(0x0,t[_0x1abb79(0x323)])(w)),v(0xe,(0x0,t[_0x1abb79(0x323)])(S))],z);const Ee=(0x0,t[_0x1abb79(0x205)])(_0x1abb79(0x45e));function De(_0x5a927d){const _0xada70f=_0x1abb79;let _0x4b6f12=_0x5a927d[_0xada70f(0x471)],_0x6d39e0=JSON[_0xada70f(0x1d3)](_0x4b6f12);switch(_0x6d39e0[_0xada70f(0x2d2)]){case a[_0xada70f(0x279)][_0xada70f(0x2f5)]:case a[_0xada70f(0x279)][_0xada70f(0x44c)]:{let _0x416f02=_0x6d39e0[_0xada70f(0x3db)];return{..._0x6d39e0,'data':_0x416f02,'cmd':_0x6d39e0[_0xada70f(0x2d2)]};}case a['CombCmd'][_0xada70f(0x1c2)]:{let _0x4d565f=_0x6d39e0[_0xada70f(0x243)];return{..._0x6d39e0,'data':_0x4d565f,'cmd':_0x6d39e0[_0xada70f(0x2d2)]};}case a['CombCmd']['RECV']:{let _0x4bf81a=_0x6d39e0[_0xada70f(0x288)];switch(_0x4bf81a['eventID']){case e[_0xada70f(0x380)][_0xada70f(0x224)]:var _0x5ebd81;return{..._0x6d39e0,'data':{..._0x4bf81a,'data':(_0x5ebd81=_0x4bf81a[_0xada70f(0x3ea)])==null?void 0x0:_0x5ebd81['cs']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)][_0xada70f(0x2e4)]:var _0xb1f2e6;return{..._0x6d39e0,'data':{..._0x4bf81a,'data':(_0xb1f2e6=_0x4bf81a[_0xada70f(0x403)])==null?void 0x0:_0xb1f2e6['cs']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)][_0xada70f(0x486)]:var _0xe31b1b;return{..._0x6d39e0,'data':{..._0x4bf81a,'data':(_0xe31b1b=_0x4bf81a[_0xada70f(0x306)])==null?void 0x0:_0xe31b1b['cs']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)]['CHANGESET_REJ']:var _0xdc1448;return{..._0x6d39e0,'data':{..._0x4bf81a,'data':(_0xdc1448=_0x4bf81a[_0xada70f(0x219)])==null?void 0x0:_0xdc1448['cs']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)][_0xada70f(0x2d1)]:var _0x202dc9;return{..._0x6d39e0,'data':{..._0x4bf81a,'data':(_0x202dc9=_0x4bf81a['csShouldRetryEvent'])==null?void 0x0:_0x202dc9['cs']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)][_0xada70f(0x1f1)]:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a[_0xada70f(0x26f)]},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e['CollaborationEvent'][_0xada70f(0x3be)]:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a['joinEvent']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)][_0xada70f(0x271)]:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a[_0xada70f(0x3cb)]},'cmd':_0x6d39e0['cmd']};case e[_0xada70f(0x380)][_0xada70f(0x1e9)]:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a[_0xada70f(0x3da)]},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case e['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a[_0xada70f(0x31f)]},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e['CollaborationEvent'][_0xada70f(0x238)]:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a[_0xada70f(0x3da)]},'cmd':_0x6d39e0['cmd']};case e[_0xada70f(0x380)][_0xada70f(0x1e3)]:return{..._0x6d39e0,'data':_0x4bf81a,'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)]['COMMENT_UPDATE']:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a[_0xada70f(0x3f0)]},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)]['UPDATE_PERMISSION_OBJ']:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a['updatePermissionObjEvent']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)][_0xada70f(0x2ec)]:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a[_0xada70f(0x262)]},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};case e[_0xada70f(0x380)][_0xada70f(0x1cc)]:return{..._0x6d39e0,'data':{..._0x4bf81a,'data':_0x4bf81a['uniscriptRunEvent']},'cmd':_0x6d39e0[_0xada70f(0x2d2)]};default:return _0x6d39e0;}}default:return _0x6d39e0;}}function Oe(_0xf144cb){const _0x3c0618=_0x1abb79;switch(_0xf144cb[_0x3c0618(0x2d2)]){case a['CombCmd'][_0x3c0618(0x2f5)]:case a[_0x3c0618(0x279)][_0x3c0618(0x44c)]:return JSON['stringify']({'cmd':_0xf144cb[_0x3c0618(0x2d2)],'routeKey':_0xf144cb[_0x3c0618(0x459)]});case a['CombCmd']['INGEST']:{let _0x14bb12;switch(_0xf144cb[_0x3c0618(0x471)][_0x3c0618(0x20b)]){case e[_0x3c0618(0x380)][_0x3c0618(0x1f1)]:_0x14bb12={'eventID':e['CollaborationEvent'][_0x3c0618(0x1f1)],'updateCursorEvent':_0xf144cb[_0x3c0618(0x471)][_0x3c0618(0x471)]};break;case e[_0x3c0618(0x380)][_0x3c0618(0x271)]:_0x14bb12={'eventID':e[_0x3c0618(0x380)][_0x3c0618(0x271)],'leaveEvent':_0xf144cb[_0x3c0618(0x471)][_0x3c0618(0x471)]};break;case e[_0x3c0618(0x380)][_0x3c0618(0x3be)]:_0x14bb12={'eventID':e['CollaborationEvent'][_0x3c0618(0x3be)],'joinEvent':_0xf144cb[_0x3c0618(0x471)]['data']};break;case e['CollaborationEvent'][_0x3c0618(0x1e9)]:_0x14bb12={'eventID':e[_0x3c0618(0x380)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0xf144cb[_0x3c0618(0x471)][_0x3c0618(0x471)]};break;case e[_0x3c0618(0x380)][_0x3c0618(0x43e)]:_0x14bb12={'eventID':e[_0x3c0618(0x380)][_0x3c0618(0x43e)],'liveShareOperation':_0xf144cb[_0x3c0618(0x471)][_0x3c0618(0x471)]};break;case e['CollaborationEvent'][_0x3c0618(0x238)]:_0x14bb12={'eventID':e[_0x3c0618(0x380)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xf144cb[_0x3c0618(0x471)][_0x3c0618(0x471)]};break;case e[_0x3c0618(0x380)]['LIVESHARE_REQUEST_HOST']:_0x14bb12={'eventID':e[_0x3c0618(0x380)][_0x3c0618(0x472)],'liveShareRequestHost':_0xf144cb['data'][_0x3c0618(0x471)]};break;case e['CollaborationEvent'][_0x3c0618(0x2d4)]:_0x14bb12={'eventID':e[_0x3c0618(0x380)][_0x3c0618(0x2d4)]};break;default:_0x14bb12={'eventID':_0xf144cb[_0x3c0618(0x471)][_0x3c0618(0x20b)]};}return JSON[_0x3c0618(0x20e)]({'cmd':_0xf144cb['cmd'],'routeKey':_0xf144cb[_0x3c0618(0x459)],'collaMsg':_0x14bb12});}case a[_0x3c0618(0x279)][_0x3c0618(0x1c2)]:return JSON['stringify']({'cmd':_0xf144cb[_0x3c0618(0x2d2)],'routeKey':_0xf144cb['routeKey'],'joinReq':_0xf144cb[_0x3c0618(0x471)]});case a[_0x3c0618(0x279)][_0x3c0618(0x390)]:return JSON[_0x3c0618(0x20e)]({'cmd':_0xf144cb[_0x3c0618(0x2d2)],'routeKey':_0xf144cb[_0x3c0618(0x459)],'leaveReq':_0xf144cb[_0x3c0618(0x471)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const B=(0x0,t[_0x1abb79(0x205)])(_0x1abb79(0x3c9));function ke(_0x1bcacc,_0x160e09,_0x5e086d){const _0x25758d=_0x1abb79;return _0x1bcacc+'/'+_0x160e09+_0x25758d(0x3d8)+_0x5e086d+_0x25758d(0x47c);}let V=class extends t[_0x1abb79(0x378)]{constructor(_0x3ba9f3,_0x537f09,_0xef58e3,_0x9848e,_0x22a614){const _0x728983=_0x1abb79;super(),this['_injector']=_0x3ba9f3,this[_0x728983(0x470)]=_0x537f09,this[_0x728983(0x1c0)]=_0xef58e3,this[_0x728983(0x204)]=_0x9848e,this[_0x728983(0x479)]=_0x22a614;}[_0x1abb79(0x26e)](_0x490c6c){const _0x45e5ec=_0x1abb79;let _0x660d9a=this[_0x45e5ec(0x301)]['get'](c[_0x45e5ec(0x268)]);if(!_0x660d9a)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x1edd6b=_0x660d9a[_0x45e5ec(0x2ef)](_0x490c6c);if(!_0x1edd6b)throw Error(_0x45e5ec(0x469));let _0x21d3bc=new t[(_0x45e5ec(0x2c0))](),_0x51197b=new i[(_0x45e5ec(0x3b3))]();_0x21d3bc['add'](_0x1edd6b['close$'][_0x45e5ec(0x2ed)](_0x5378aa=>_0x51197b[_0x45e5ec(0x343)](_0x5378aa))),_0x21d3bc[_0x45e5ec(0x2bc)]((0x0,t[_0x45e5ec(0x431)])(()=>_0x51197b['complete']()));let _0x504a3d=new i[(_0x45e5ec(0x3b3))]();_0x21d3bc[_0x45e5ec(0x2bc)](_0x1edd6b['error$'][_0x45e5ec(0x2ed)](_0x443041=>_0x504a3d[_0x45e5ec(0x343)](_0x443041))),_0x21d3bc[_0x45e5ec(0x2bc)]((0x0,t[_0x45e5ec(0x431)])(()=>_0x504a3d[_0x45e5ec(0x23c)]()));let _0x1c5a15=new i['Subject']();_0x21d3bc[_0x45e5ec(0x2bc)](_0x1edd6b['message$'][_0x45e5ec(0x2ed)](_0x47f522=>{const _0x34d042=_0x45e5ec;let _0xc48c7=De(_0x47f522);_0x1c5a15[_0x34d042(0x343)](_0xc48c7);})),_0x21d3bc[_0x45e5ec(0x2bc)]((0x0,t['toDisposable'])(()=>_0x1c5a15[_0x45e5ec(0x23c)]()));let _0x4b14bb,_0x214cca=()=>{const _0x46f324=_0x45e5ec;_0x504a3d[_0x46f324(0x343)](new Event(_0x46f324(0x280))),_0x51197b['next'](new Event(_0x46f324(0x280))),_0x4b14bb[_0x46f324(0x28b)]();};return _0x4b14bb={'memberID':'','close$':_0x51197b[_0x45e5ec(0x234)](),'error$':_0x504a3d[_0x45e5ec(0x234)](),'open$':_0x1edd6b[_0x45e5ec(0x416)],'message$':_0x1c5a15['asObservable'](),'send':_0x5e40fa=>{const _0xf29519=_0x45e5ec;if(_0x5e40fa[_0xf29519(0x2d2)]===a[_0xf29519(0x279)][_0xf29519(0x37e)]){if(_0x5e40fa[_0xf29519(0x471)]['eventID']===e[_0xf29519(0x380)][_0xf29519(0x3e6)]){this[_0xf29519(0x43c)](_0x4b14bb,_0x5e40fa[_0xf29519(0x471)])[_0xf29519(0x2f6)](_0x4dc9b5=>{const _0x2a5f09=_0xf29519;this[_0x2a5f09(0x204)]['error'](_0x4dc9b5),_0x214cca();});return;}if(_0x5e40fa[_0xf29519(0x471)][_0xf29519(0x20b)]===e[_0xf29519(0x380)][_0xf29519(0x2f8)]){let _0x44f2f1=_0x5e40fa[_0xf29519(0x471)];this['_fetchMissChangesets'](_0x44f2f1)[_0xf29519(0x2bf)](_0x494690=>{const _0x2fd2ae=_0xf29519;_0x1c5a15[_0x2fd2ae(0x343)]({'cmd':a[_0x2fd2ae(0x279)][_0x2fd2ae(0x3e7)],'code':a[_0x2fd2ae(0x47a)]['OK'],'routeKey':_0x44f2f1[_0x2fd2ae(0x471)][_0x2fd2ae(0x383)],'routeType':'','data':{'eventID':e[_0x2fd2ae(0x380)][_0x2fd2ae(0x40d)],'data':{'changesets':_0x494690}}});})['catch'](_0x2c82d2=>{const _0x323b87=_0xf29519;this[_0x323b87(0x204)]['error'](_0x2c82d2),_0x214cca();});return;}}_0x1edd6b[_0xf29519(0x357)](Oe(_0x5e40fa));},'close':()=>{const _0x1a40eb=_0x45e5ec;_0x1edd6b[_0x1a40eb(0x28b)](),_0x21d3bc['dispose']();}},_0x4b14bb;}async[_0x1abb79(0x43c)](_0x214147,_0x1282d8){const _0x36631a=_0x1abb79;var _0x40553e;let {unitType:_0x2b0c70,unitID:_0x4c2d17,changeset:_0x49c53f}=_0x1282d8['data'],_0x3c36d0={'unitID':_0x4c2d17,'memberID':_0x214147[_0x36631a(0x1fd)],'type':_0x2b0c70,'changeset':(0x0,e[_0x36631a(0x1b0)])(_0x49c53f)},_0x41437a=this[_0x36631a(0x1c0)][_0x36631a(0x300)](T),_0x73973e=ke((_0x40553e=_0x41437a==null?void 0x0:_0x41437a[_0x36631a(0x2b0)])==null?_0x36631a(0x2a7):_0x40553e,_0x2b0c70,_0x4c2d17);try{await this[_0x36631a(0x470)]['post'](_0x73973e,{'body':_0x3c36d0});}catch(_0x5bf81c){throw this[_0x36631a(0x204)]['error'](_0x36631a(0x466),_0x36631a(0x241)),_0x5bf81c;}}async['_fetchMissChangesets'](_0x2d9805){const _0x2b8768=_0x1abb79;let {unitID:_0x29acf3,from:_0x560a9b,to:_0x515d4e,unitType:_0xa9c73f}=_0x2d9805['data'];return(await this[_0x2b8768(0x479)][_0x2b8768(0x251)]({'metadata':void 0x0},{'unitID':_0x29acf3,'type':_0xa9c73f,'from':_0x560a9b,'to':_0x515d4e}))[_0x2b8768(0x2c1)]['map'](_0x4adeb7=>((_0x4adeb7['mutations']===null||_0x4adeb7[_0x2b8768(0x2f2)]===void 0x0)&&(_0x4adeb7['mutations']=[]),_0x4adeb7));}};V=y([v(0x0,(0x0,t[_0x1abb79(0x3cc)])(t['Injector'])),v(0x1,(0x0,t[_0x1abb79(0x3cc)])(c[_0x1abb79(0x422)])),v(0x2,t['IConfigService']),v(0x3,t[_0x1abb79(0x22c)]),v(0x4,e[_0x1abb79(0x23d)])],V);let H=class extends t[_0x1abb79(0x378)]{get[_0x1abb79(0x1c4)](){const _0xf2d24c=_0x1abb79;return this['_socket$'][_0xf2d24c(0x3b6)]();}constructor(_0x29aa61,_0x2f1f90,_0x273e71,_0x1af6be,_0xa715f,_0xb84deb){const _0x1df220=_0x1abb79;super(),this[_0x1df220(0x301)]=_0x29aa61,this[_0x1df220(0x204)]=_0x2f1f90,this[_0x1df220(0x1c0)]=_0x273e71,this[_0x1df220(0x3c7)]=_0x1af6be,this[_0x1df220(0x420)]=_0xa715f,this[_0x1df220(0x246)]=_0xb84deb,g(this,_0x1df220(0x352),new i[(_0x1df220(0x428))](void 0x0)),g(this,_0x1df220(0x296),this['_socket$'][_0x1df220(0x234)]()),g(this,_0x1df220(0x1d7),null),g(this,_0x1df220(0x379),new Map()),g(this,_0x1df220(0x26a),new i[(_0x1df220(0x428))](0x0)),g(this,_0x1df220(0x236),this[_0x1df220(0x26a)][_0x1df220(0x234)]()),g(this,_0x1df220(0x232),!0x1),g(this,_0x1df220(0x2e6),void 0x0),g(this,_0x1df220(0x2a8),0x0),g(this,_0x1df220(0x1e6),null),g(this,'_sendHeartbeatTimer',void 0x0),g(this,_0x1df220(0x1fb),void 0x0),this[_0x1df220(0x381)]();}[_0x1abb79(0x381)](){const _0x7a01f8=_0x1abb79;this[_0x7a01f8(0x246)]&&this['disposeWithMe'](this['_networkConditionService'][_0x7a01f8(0x3f9)][_0x7a01f8(0x2ed)](_0x25cc35=>{const _0x4a2171=_0x7a01f8;_0x25cc35&&!this[_0x4a2171(0x1c4)]&&this[_0x4a2171(0x3fd)](),_0x25cc35||this[_0x4a2171(0x2ab)]();}));}[_0x1abb79(0x370)](){const _0x53f77e=_0x1abb79;var _0x11d420;super[_0x53f77e(0x370)](),(_0x11d420=this[_0x53f77e(0x1e6)])==null||_0x11d420[_0x53f77e(0x1db)](),this['_socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](),this[_0x53f77e(0x38c)](),this[_0x53f77e(0x25f)](),this[_0x53f77e(0x379)][_0x53f77e(0x222)](_0x206627=>_0x206627[_0x53f77e(0x370)]()),this['_sessions'][_0x53f77e(0x3aa)](),this['_status$']['complete']();}async[_0x1abb79(0x3c1)](_0x385327){const _0x38f085=_0x1abb79;if(this['_sessions']['has'](_0x385327))return this['_sessions'][_0x38f085(0x277)](_0x385327);this[_0x38f085(0x1aa)]();let _0x2e60da=this[_0x38f085(0x301)][_0x38f085(0x427)](x,_0x385327,this[_0x38f085(0x352)][_0x38f085(0x234)]());return this[_0x38f085(0x379)]['set'](_0x385327,_0x2e60da),_0x2e60da;}['closeSession'](_0x5a0921){const _0x3e8313=_0x1abb79;let _0x28c023=this['_sessions'][_0x3e8313(0x277)](_0x5a0921);if(_0x28c023&&(this[_0x3e8313(0x379)]['delete'](_0x5a0921),_0x28c023[_0x3e8313(0x28b)]()),!this[_0x3e8313(0x379)][_0x3e8313(0x22a)]){var _0x59a48a;(_0x59a48a=this[_0x3e8313(0x1c4)])==null||_0x59a48a['close']();}}[_0x1abb79(0x3fd)](){const _0x43e810=_0x1abb79;this[_0x43e810(0x2a8)]=0x0,this[_0x43e810(0x242)](),this[_0x43e810(0x259)]();}[_0x1abb79(0x242)](){const _0x5f952a=_0x1abb79;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x5f952a(0x2e6)]),this[_0x5f952a(0x2e6)]=null);}async[_0x1abb79(0x413)](){const _0x53f076=_0x1abb79;var _0xfb21db;let _0x3e34d3=this[_0x53f076(0x1c0)][_0x53f076(0x300)](T),_0x379ee4=(_0xfb21db=_0x3e34d3==null?void 0x0:_0x3e34d3['collabWebSocketUrl'])==null?p:_0xfb21db,_0x257cfd=await this[_0x53f076(0x3c7)]['createSocket'](_0x379ee4);return this['_candidateSocket']=_0x257cfd,_0x257cfd;}async[_0x1abb79(0x1aa)](){const _0x3d5f4f=_0x1abb79;try{var _0x4f51e3,_0x300943;let _0x305b2c=(_0x4f51e3=(_0x300943=this[_0x3d5f4f(0x1c4)])==null?this['_candidateSocket']:_0x300943)==null?await this['_createSocket']():_0x4f51e3;if(_0x305b2c){var _0x520447;let _0x1098e9=_0x305b2c[_0x3d5f4f(0x357)];_0x305b2c['send']=_0xfb02f6=>(_0xfb02f6[_0x3d5f4f(0x2d2)]!==a[_0x3d5f4f(0x279)][_0x3d5f4f(0x390)]&&this[_0x3d5f4f(0x451)](),_0x1098e9['apply'](_0x305b2c,[_0xfb02f6])),(_0x520447=this[_0x3d5f4f(0x1e6)])==null||_0x520447[_0x3d5f4f(0x1db)](),this[_0x3d5f4f(0x1e6)]=null,this[_0x3d5f4f(0x1e6)]=_0x305b2c[_0x3d5f4f(0x273)][_0x3d5f4f(0x2ed)](_0x32d080=>this[_0x3d5f4f(0x3af)](_0x305b2c,_0x32d080)),_0x305b2c[_0x3d5f4f(0x29f)][_0x3d5f4f(0x3a1)]((0x0,s[_0x3d5f4f(0x32b)])(0x1))[_0x3d5f4f(0x2ed)](_0x5e31c9=>this['_logService'][_0x3d5f4f(0x1ec)](_0x3d5f4f(0x39e),_0x5e31c9)),_0x305b2c[_0x3d5f4f(0x416)]['pipe']((0x0,s['take'])(0x1))['subscribe'](()=>{const _0x8416c4=_0x3d5f4f;this[_0x8416c4(0x452)](_0x305b2c);}),_0x305b2c['close$'][_0x3d5f4f(0x3a1)]((0x0,s[_0x3d5f4f(0x32b)])(0x1))['subscribe'](_0x3c189b=>{const _0xc5ed41=_0x3d5f4f;this[_0xc5ed41(0x204)][_0xc5ed41(0x490)](_0xc5ed41(0x3f2),_0xc5ed41(0x328),_0x3c189b),this[_0xc5ed41(0x22f)]();});}}catch(_0x6f946b){this[_0x3d5f4f(0x204)][_0x3d5f4f(0x1ec)](_0x6f946b),this['_onConnectionFailed']();}}[_0x1abb79(0x452)](_0x130078){const _0x5359af=_0x1abb79;this[_0x5359af(0x204)][_0x5359af(0x490)](_0x5359af(0x3f2),'socket\x20open.'),_0x130078[_0x5359af(0x357)]({'cmd':a[_0x5359af(0x279)][_0x5359af(0x44c)]}),this['_rescheduleHeartbeat']();}[_0x1abb79(0x2ab)](){const _0x4b3142=_0x1abb79;this['_socketReady']=!0x1,this[_0x4b3142(0x1d7)]=null,this['_status$']['next'](0x2),this[_0x4b3142(0x352)][_0x4b3142(0x343)](null),this[_0x4b3142(0x38c)](),this['_clearHeartbeatTimer']();}[_0x1abb79(0x22f)](){const _0x3bca76=_0x1abb79;var _0x10e5d5;this['_onOffline'](),this[_0x3bca76(0x2a8)]<((_0x10e5d5=this['_configService'][_0x3bca76(0x300)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x10e5d5)?(this['_collaborationUIEventService'][_0x3bca76(0x1f5)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x3bca76(0x259)]()):this[_0x3bca76(0x420)][_0x3bca76(0x1f5)]({'id':_0x3bca76(0x31e)});}[_0x1abb79(0x259)](){const _0x112b9b=_0x1abb79;var _0xa9b0d2;let _0x463a52=this['_retryCount'],_0x3979f2=this[_0x112b9b(0x1c0)][_0x112b9b(0x300)](T),_0xda6b0b=_0x463a52===0x0?0x0:((_0xa9b0d2=_0x3979f2==null?void 0x0:_0x3979f2[_0x112b9b(0x3a2)])==null?0x4e20:_0xa9b0d2)*0x2**_0x463a52;this['_retryConnectingTimer']=setTimeout(()=>{const _0x4242a6=_0x112b9b;clearTimeout(this[_0x4242a6(0x2e6)]),this['_retryConnectingTimer']=null,this[_0x4242a6(0x1aa)]();},_0xda6b0b),this['_retryCount']+=0x1;}['_onMessage'](_0x232a89,_0x46ddcb){const _0x500d3d=_0x1abb79;let {cmd:_0x1c5d2b}=_0x46ddcb;_0x1c5d2b===a[_0x500d3d(0x279)][_0x500d3d(0x44c)]&&!this['_socketReady']&&(_0x232a89['memberID']=_0x46ddcb[_0x500d3d(0x471)][_0x500d3d(0x1fd)],this[_0x500d3d(0x352)][_0x500d3d(0x343)](_0x232a89),this[_0x500d3d(0x26a)][_0x500d3d(0x343)](0x3),this[_0x500d3d(0x232)]=!0x0,this[_0x500d3d(0x1d7)]=null),_0x1c5d2b===a[_0x500d3d(0x279)][_0x500d3d(0x2f5)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x1abb79(0x451)](){const _0x1d56cc=_0x1abb79;var _0x5090f5;this[_0x1d56cc(0x25f)](),this[_0x1d56cc(0x3cd)]=setTimeout(()=>this[_0x1d56cc(0x266)](),(_0x5090f5=this['_configService'][_0x1d56cc(0x300)](_0x1d56cc(0x24c)))==null?0x7530:_0x5090f5);}['_sendHeartbeat'](){const _0x1db07f=_0x1abb79;this[_0x1db07f(0x1c4)][_0x1db07f(0x357)]({'cmd':a[_0x1db07f(0x279)][_0x1db07f(0x2f5)]}),this[_0x1db07f(0x22d)]();}[_0x1abb79(0x22d)](){const _0x1a7529=_0x1abb79;var _0x267d94;this[_0x1a7529(0x1fb)]=setTimeout(()=>this[_0x1a7529(0x22f)](),(_0x267d94=this[_0x1a7529(0x1c0)][_0x1a7529(0x300)]('HEARTBEAT_TIMEOUT'))==null?m:_0x267d94);}['_clearHeartbeatTimer'](){const _0x4ba779=_0x1abb79;this[_0x4ba779(0x3cd)]!=null&&(clearTimeout(this[_0x4ba779(0x3cd)]),this[_0x4ba779(0x3cd)]=null);}[_0x1abb79(0x38c)](){const _0x317001=_0x1abb79;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x317001(0x1fb)]),this[_0x317001(0x1fb)]=null);}};H=y([v(0x0,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x1d5)])),v(0x1,t[_0x1abb79(0x22c)]),v(0x2,t[_0x1abb79(0x2b4)]),v(0x3,B),v(0x4,(0x0,t[_0x1abb79(0x3cc)])(_)),v(0x5,(0x0,t[_0x1abb79(0x323)])(Ee))],H);let U=class extends t['RxDisposable']{constructor(_0x2cf3cb,_0xb032f9,_0x190b50,_0x210692){const _0x1defa6=_0x1abb79;var _0x535a71;super(),this['_injector']=_0x2cf3cb,this[_0x1defa6(0x314)]=_0xb032f9,this['_configService']=_0x190b50,this['_univerInstanceService']=_0x210692,g(this,'_entities',new Map()),g(this,_0x1defa6(0x2cf),new i[(_0x1defa6(0x3b3))]()),g(this,_0x1defa6(0x41c),this[_0x1defa6(0x2cf)][_0x1defa6(0x234)]()),((_0x535a71=this[_0x1defa6(0x1c0)][_0x1defa6(0x300)](_0x1defa6(0x210)))==null?void 0x0:_0x535a71[_0x1defa6(0x2aa)])!==!0x1&&this[_0x1defa6(0x216)]();}['dispose'](){const _0x29d050=_0x1abb79;super[_0x29d050(0x370)](),this[_0x29d050(0x1c5)]['forEach'](_0x4d9a8a=>_0x4d9a8a[_0x29d050(0x370)]()),this[_0x29d050(0x1c5)]['clear']();}[_0x1abb79(0x417)](_0x3bccf5){const _0x5f0cc0=_0x1abb79;var _0x249957;return(_0x249957=this[_0x5f0cc0(0x1c5)][_0x5f0cc0(0x277)](_0x3bccf5))==null?null:_0x249957;}[_0x1abb79(0x2cd)](_0x595ffe){const _0x277649=_0x1abb79;let _0x4d89a1=this[_0x277649(0x417)](_0x595ffe);return _0x4d89a1?(0x0,i['of'])(_0x4d89a1):this[_0x277649(0x2cf)][_0x277649(0x3a1)]((0x0,s[_0x277649(0x37f)])(_0x468cc8=>_0x468cc8[_0x277649(0x383)]===_0x595ffe));}[_0x1abb79(0x1ed)](_0x28ffa1){const _0x310ab3=_0x1abb79;return(0x0,i[_0x310ab3(0x439)])(this['getCollabEntity$'](_0x28ffa1)[_0x310ab3(0x3a1)]((0x0,s[_0x310ab3(0x41d)])(()=>void 0x0)));}[_0x1abb79(0x216)](){const _0x4dcc4c=_0x1abb79;this[_0x4dcc4c(0x489)][_0x4dcc4c(0x44f)](t['UniverInstanceType']['UNIVER_SHEET'])[_0x4dcc4c(0x3a1)]((0x0,i[_0x4dcc4c(0x299)])(this[_0x4dcc4c(0x3ba)]),(0x0,s[_0x4dcc4c(0x294)])(0x10))[_0x4dcc4c(0x2ed)](async _0x398517=>{const _0x56f186=_0x4dcc4c;let _0x4d5b72=_0x398517[_0x56f186(0x338)][_0x56f186(0x261)](),_0x1ad781=await this[_0x56f186(0x441)](_0x4d5b72,t[_0x56f186(0x3b9)][_0x56f186(0x45b)]);this[_0x56f186(0x1c5)][_0x56f186(0x35b)](_0x4d5b72,_0x1ad781);}),this[_0x4dcc4c(0x489)][_0x4dcc4c(0x44f)](t[_0x4dcc4c(0x3b9)][_0x4dcc4c(0x3d3)])[_0x4dcc4c(0x3a1)]((0x0,i['takeUntil'])(this[_0x4dcc4c(0x3ba)]),(0x0,s[_0x4dcc4c(0x294)])(0x10))[_0x4dcc4c(0x3a1)]((0x0,s[_0x4dcc4c(0x37f)])(_0x3834f3=>!_0x3834f3[_0x4dcc4c(0x338)][_0x4dcc4c(0x261)]()[_0x4dcc4c(0x37d)]('__')))['subscribe'](async _0x235d74=>{const _0x5618ac=_0x4dcc4c;let _0xd27992=_0x235d74[_0x5618ac(0x338)]['getUnitId'](),_0xf6bae6=await this['_startCollaboration'](_0xd27992,t[_0x5618ac(0x3b9)][_0x5618ac(0x3d3)]);this[_0x5618ac(0x1c5)][_0x5618ac(0x35b)](_0xd27992,_0xf6bae6);}),(0x0,i[_0x4dcc4c(0x295)])(this[_0x4dcc4c(0x489)][_0x4dcc4c(0x292)](t['UniverInstanceType'][_0x4dcc4c(0x45b)]),this[_0x4dcc4c(0x489)][_0x4dcc4c(0x292)](t[_0x4dcc4c(0x3b9)]['UNIVER_DOC']))['pipe']((0x0,i[_0x4dcc4c(0x299)])(this['dispose$']))['subscribe'](_0x58d1e6=>{const _0x1efd73=_0x4dcc4c;let _0x3adcc2=_0x58d1e6[_0x1efd73(0x261)](),_0x43d99c=this[_0x1efd73(0x1c5)][_0x1efd73(0x277)](_0x3adcc2);_0x43d99c&&(_0x43d99c['dispose'](),this[_0x1efd73(0x1c5)][_0x1efd73(0x3a3)](_0x3adcc2));});}async[_0x1abb79(0x441)](_0x3aa843,_0x34af02){const _0x4b148a=_0x1abb79;let _0x55d5cb=await this[_0x4b148a(0x314)][_0x4b148a(0x3c1)](_0x3aa843),_0x2ebb6b=this[_0x4b148a(0x301)][_0x4b148a(0x427)](this[_0x4b148a(0x347)](_0x34af02),_0x3aa843,_0x34af02,_0x55d5cb);return await _0x2ebb6b[_0x4b148a(0x434)](),this['_entityInit$'][_0x4b148a(0x343)](_0x2ebb6b),_0x2ebb6b;}[_0x1abb79(0x347)](_0x53138b){const _0x25cecb=_0x1abb79;switch(_0x53138b){case t[_0x25cecb(0x3b9)][_0x25cecb(0x3d3)]:return R;case t[_0x25cecb(0x3b9)][_0x25cecb(0x45b)]:return z;default:throw Error(_0x25cecb(0x2d9)+_0x53138b);}}};U=y([v(0x0,(0x0,t['Inject'])(t[_0x1abb79(0x1d5)])),v(0x1,(0x0,t[_0x1abb79(0x3cc)])(H)),v(0x2,t[_0x1abb79(0x2b4)]),v(0x3,t['IUniverInstanceService'])],U);var Ae=_0x1abb79(0x3f8),je=_0x1abb79(0x374);let Me=class extends t[_0x1abb79(0x378)]{constructor(_0x239da9,_0x453bc6){const _0x2f52b6=_0x1abb79;super(),this[_0x2f52b6(0x489)]=_0x239da9,this[_0x2f52b6(0x1c0)]=_0x453bc6,this[_0x2f52b6(0x216)]();}[_0x1abb79(0x216)](){const _0x5ef26e=_0x1abb79;this[_0x5ef26e(0x2d3)](this[_0x5ef26e(0x489)][_0x5ef26e(0x313)]['subscribe'](()=>{const _0x3386fa=_0x5ef26e;var _0xfd6af9;let _0x4f0182=this[_0x3386fa(0x489)][_0x3386fa(0x2a1)](),_0x381e04=(_0xfd6af9=this[_0x3386fa(0x1c0)]['getConfig']('DEFAULT_FILE_NAME'))==null?_0x3386fa(0x3dd):_0xfd6af9;_0x4f0182 instanceof t['Workbook']&&(_0x381e04=_0x4f0182[_0x3386fa(0x29b)]),document[_0x3386fa(0x29c)]=_0x381e04;}));}};Me=y([v(0x0,t[_0x1abb79(0x31a)]),v(0x1,t[_0x1abb79(0x2b4)])],Me);let W=class{constructor(_0x2b04b4,_0x1b4511,_0x177adf){const _0x4f0c03=_0x1abb79;this[_0x4f0c03(0x1c0)]=_0x2b04b4,this[_0x4f0c03(0x470)]=_0x1b4511,this[_0x4f0c03(0x2b8)]=_0x177adf,this[_0x4f0c03(0x434)]();}[_0x1abb79(0x434)](){const _0x279e19=_0x1abb79;this[_0x279e19(0x470)][_0x279e19(0x2c4)]({'priority':0x1,'interceptor':(_0x20e3de,_0x30fa12)=>_0x30fa12(_0x20e3de)[_0x279e19(0x3a1)]((0x0,i[_0x279e19(0x344)])(async _0x1db42f=>{const _0x453f45=_0x279e19;let _0x10a088=_0x1db42f;if(_0x10a088['status']===0x191){if(typeof window>'u')throw Error(_0x453f45(0x2ee));if(window[_0x453f45(0x2b5)](this['localeService']['t'](_0x453f45(0x406)))){let _0x6b894c=window[_0x453f45(0x2e9)](window[_0x453f45(0x3a0)][_0x453f45(0x401)]);window['location'][_0x453f45(0x401)]=this[_0x453f45(0x32f)]()+'?url='+_0x6b894c;}}return _0x10a088;}))});}[_0x1abb79(0x32f)](){const _0x40cdf9=_0x1abb79;var _0x48d6c6;let _0x5ebb12=this[_0x40cdf9(0x1c0)][_0x40cdf9(0x300)](T);return(_0x48d6c6=_0x5ebb12==null?void 0x0:_0x5ebb12['loginUrlKey'])==null?'/universer-api/oidc/authpage':_0x48d6c6;}};function _0x37da(_0x1f5e94,_0x355f7c){_0x1f5e94=_0x1f5e94-0x1aa;const _0x4130d5=_0x4130();let _0x37dac2=_0x4130d5[_0x1f5e94];return _0x37dac2;}W=y([v(0x0,t[_0x1abb79(0x2b4)]),v(0x1,(0x0,t['Inject'])(c[_0x1abb79(0x422)])),v(0x2,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x20c)]))],W);let G=class extends t[_0x1abb79(0x378)]{constructor(_0x243bb8,_0x157560){const _0x46efc1=_0x1abb79;super(),this[_0x46efc1(0x318)]=_0x243bb8,this[_0x46efc1(0x1c0)]=_0x157560,g(this,_0x46efc1(0x30e),!0x1),this[_0x46efc1(0x308)]();}[_0x1abb79(0x308)](){const _0x1947e6=_0x1abb79;let _0x3efc46=this;this[_0x1947e6(0x2d3)](this[_0x1947e6(0x318)][_0x1947e6(0x2c4)]({'priority':0x3e7,'interceptor':(0x0,c[_0x1947e6(0x21d)])({'isMatch'(_0x12b53e){const _0xbbf1d5=_0x1947e6;var _0x8a2e85;if(_0x12b53e[_0xbbf1d5(0x482)]===_0xbbf1d5(0x1af)&&(_0x8a2e85=_0x12b53e[_0xbbf1d5(0x1ca)])!=null&&_0x8a2e85['body']){let {objectID:_0xf98bf7,objectType:_0xc4ef48}=_0x12b53e['requestParams'][_0xbbf1d5(0x230)]||{};if(!_0xf98bf7||_0xc4ef48===void 0x0)return!0x1;let _0xb3b1f4=_0x3efc46[_0xbbf1d5(0x356)]()+'/'+_0xc4ef48+'/object/'+_0xf98bf7+_0xbbf1d5(0x3ac);if(_0x12b53e[_0xbbf1d5(0x389)]===_0xb3b1f4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4f2a24){const _0x13adcb=_0x1947e6;var _0x39fb76;return(_0x39fb76=_0x4f2a24[_0x13adcb(0x1ca)])==null?void 0x0:_0x39fb76[_0x13adcb(0x230)];},'mergeParamsToRequest'(_0x2cb69b,_0x1bf4d3){const _0x537926=_0x1947e6;let _0x3c6312=_0x3efc46[_0x537926(0x356)]()+_0x537926(0x21f),_0x44cb5b=_0x2cb69b['reduce']((_0x289898,_0x3e6bce)=>{const _0x3dcd75=_0x537926;let {unitID:_0x44aafe,objectID:_0x424017,objectType:_0x23690e,actions:_0x13bf5a}=_0x3e6bce;return _0x289898[_0x44aafe]||(_0x289898[_0x44aafe]=Object[_0x3dcd75(0x1dc)](null)),_0x289898[_0x44aafe][_0x424017]||(_0x289898[_0x44aafe][_0x424017]={'objectID':_0x424017,'objectType':_0x23690e,'actions':[]}),_0x289898[_0x44aafe][_0x424017][_0x3dcd75(0x25d)][_0x3dcd75(0x3ed)](..._0x13bf5a),_0x289898;},Object['create'](null)),_0xaf1348=[];for(let _0x3b8758 in _0x44cb5b)for(let _0x34efc4 in _0x44cb5b[_0x3b8758]){let {actions:_0x2ef748,objectType:_0x15f9a9}=_0x44cb5b[_0x3b8758][_0x34efc4],_0x2839a6=[...new Set(_0x2ef748)];_0xaf1348[_0x537926(0x3ed)]({'unitID':_0x3b8758,'objectID':_0x34efc4,'objectType':_0x15f9a9,'actions':_0x2839a6});}return new c[(_0x537926(0x310))]('POST',_0x3c6312,{'headers':_0x1bf4d3['headers'],'withCredentials':_0x1bf4d3[_0x537926(0x430)],'responseType':_0x1bf4d3['responseType'],'body':{'requests':_0xaf1348}});}},{'distributeResult'(_0x3578ef,_0x1d1b3e){const _0x44e4ef=_0x1947e6;let {objectActions:_0x4e694e}=_0x3578ef;return _0x1d1b3e[_0x44e4ef(0x41d)](_0x3a6138=>{const _0x1c94f5=_0x44e4ef;let {unitID:_0x3a2d49,objectID:_0x5f56a4,actions:_0x26a09c}=_0x3a6138,_0x365e10=_0x4e694e[_0x1c94f5(0x2eb)](_0x3da4ed=>_0x3da4ed[_0x1c94f5(0x383)]===_0x3a2d49&&_0x3da4ed['objectID']===_0x5f56a4);return{'config':_0x3a6138,'result':{'actions':_0x26a09c[_0x1c94f5(0x41d)](_0x243a82=>_0x365e10==null?void 0x0:_0x365e10[_0x1c94f5(0x25d)]['find'](_0x57cc4a=>_0x57cc4a[_0x1c94f5(0x2d0)]===_0x243a82))[_0x1c94f5(0x37f)](_0x265f76=>!!_0x265f76),'error':_0x3578ef[_0x1c94f5(0x1ec)]}};});}})}));}['_getAPIPrefixPath'](){const _0x47fca7=_0x1abb79;var _0x2b2218;let _0x463faf=this['_configService'][_0x47fca7(0x300)](T);return(_0x2b2218=_0x463faf==null?void 0x0:_0x463faf[_0x47fca7(0x33c)])==null?_0x47fca7(0x371):_0x2b2218;}async[_0x1abb79(0x1dc)](_0x4c8ef1){const _0x353fa3=_0x1abb79;let _0x312d67=this[_0x353fa3(0x356)]()+'/'+_0x4c8ef1[_0x353fa3(0x2f0)]+'/object';return(await this['_HTTPService'][_0x353fa3(0x3b8)](_0x312d67,{'body':_0x4c8ef1}))[_0x353fa3(0x230)]['objectID']||'';}async['list'](_0x2ffa82){const _0x1f478f=_0x1abb79;let _0x2b2202=this[_0x1f478f(0x356)]()+_0x1f478f(0x39c);return(await this[_0x1f478f(0x318)][_0x1f478f(0x3b8)](_0x2b2202,{'body':_0x2ffa82}))['body']['objects'];}async[_0x1abb79(0x1c6)](_0x255ff6){const _0x205b07=_0x1abb79;var _0x3e1f64;let _0x3a8a41=this[_0x205b07(0x356)]()+'/'+_0x255ff6[_0x205b07(0x2f0)]+'/object/'+_0x255ff6[_0x205b07(0x387)],_0x57ba29=await this[_0x205b07(0x318)][_0x205b07(0x3eb)](_0x3a8a41,{'body':_0x255ff6});if((_0x57ba29==null||(_0x3e1f64=_0x57ba29[_0x205b07(0x230)])==null||(_0x3e1f64=_0x3e1f64[_0x205b07(0x1ec)])==null?void 0x0:_0x3e1f64[_0x205b07(0x485)])!==0x1)throw Error(_0x205b07(0x1ee));}async[_0x1abb79(0x231)](_0x4600f4){const _0x588289=_0x1abb79;let _0x15047e=this[_0x588289(0x356)]()+'/'+_0x4600f4['objectType']+_0x588289(0x462)+_0x4600f4[_0x588289(0x387)]+'/allowed';return(await this[_0x588289(0x318)][_0x588289(0x3b8)](_0x15047e,{'body':_0x4600f4}))[_0x588289(0x230)][_0x588289(0x25d)];}async[_0x1abb79(0x2e0)](_0x2e88dd){const _0x4f70c9=_0x1abb79;let _0x407b40=this[_0x4f70c9(0x356)]()+_0x4f70c9(0x21f);return(await this['_HTTPService']['post'](_0x407b40,{'body':{'requests':_0x2e88dd}}))[_0x4f70c9(0x230)][_0x4f70c9(0x48e)];}async[_0x1abb79(0x2a6)](_0x2d85db){const _0x5a55aa=_0x1abb79;let _0x3228ce=this[_0x5a55aa(0x356)]()+'/'+_0x2d85db[_0x5a55aa(0x2f0)]+_0x5a55aa(0x2cc),_0x3ab0be=await this[_0x5a55aa(0x318)][_0x5a55aa(0x3b8)](_0x3228ce,{'body':_0x2d85db});return{'roles':_0x3ab0be[_0x5a55aa(0x230)][_0x5a55aa(0x1c7)],'actions':_0x3ab0be['body'][_0x5a55aa(0x25d)]};}async['deleteCollaborator'](_0x4dcdfa){const _0x51034d=_0x1abb79;let _0x309504=this[_0x51034d(0x356)]()+'/collaborator';await this[_0x51034d(0x318)][_0x51034d(0x3a3)](_0x309504,{'params':{'collaboratorID':_0x4dcdfa[_0x51034d(0x24e)],'objectID':_0x4dcdfa[_0x51034d(0x387)],'unitID':_0x4dcdfa[_0x51034d(0x383)]}});}async[_0x1abb79(0x432)](_0x5b656e){const _0x264318=_0x1abb79;let _0x2b8343=this[_0x264318(0x356)]()+'/collaborator';await this['_HTTPService'][_0x264318(0x201)](_0x2b8343,{'body':_0x5b656e});}async[_0x1abb79(0x3e1)](_0x1dd0a5){const _0x3266b6=_0x1abb79;let _0x1c7efa=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x3266b6(0x318)]['post'](_0x1c7efa,{'body':_0x1dd0a5});}async[_0x1abb79(0x493)](_0x1f1ecc){const _0x4bff62=_0x1abb79;var _0x2f94b2;let _0x1d9bc1=this[_0x4bff62(0x356)]()+'/collaborator',_0xda9e9d=await this[_0x4bff62(0x318)][_0x4bff62(0x277)](_0x1d9bc1,{'params':{'objectID':_0x1f1ecc[_0x4bff62(0x387)],'unitID':_0x1f1ecc[_0x4bff62(0x383)]}});return this['setCfgEnableObjInherit']((_0x2f94b2=_0xda9e9d[_0x4bff62(0x230)][_0x4bff62(0x442)])==null?!0x1:_0x2f94b2),_0xda9e9d['body'][_0x4bff62(0x221)];}async[_0x1abb79(0x454)](_0x2161cb){const _0x4e5969=_0x1abb79;let _0x1fe494=this[_0x4e5969(0x356)]()+'/collaborator';await this[_0x4e5969(0x318)][_0x4e5969(0x3eb)](_0x1fe494,{'body':_0x2161cb});}[_0x1abb79(0x364)](_0x3cdc76){const _0x28a934=_0x1abb79;this[_0x28a934(0x30e)]=_0x3cdc76;}[_0x1abb79(0x396)](){const _0x15c8e5=_0x1abb79;return this[_0x15c8e5(0x30e)];}};G=y([v(0x0,(0x0,t[_0x1abb79(0x3cc)])(c[_0x1abb79(0x422)])),v(0x1,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x2b4)]))],G);function Ne(_0x43da9a){const _0x55b57c=_0x1abb79;let _0x3182d4=atob(_0x43da9a),_0x5983b4=new Uint8Array(_0x3182d4[_0x55b57c(0x2b3)]);for(let _0x17a8bd=0x0;_0x17a8bd<_0x3182d4['length'];_0x17a8bd++)_0x5983b4[_0x17a8bd]=_0x3182d4[_0x55b57c(0x384)](_0x17a8bd);return _0x5983b4;}function Pe(_0x13ac2c){const _0x193558=_0x1abb79;let _0x37fa53='';for(let _0x57444f=0x0;_0x57444f<_0x13ac2c['length'];_0x57444f++)_0x37fa53+=String[_0x193558(0x433)](_0x13ac2c[_0x57444f]);return btoa(_0x37fa53);}function Fe(_0x2dbd87,_0x4e1733){const _0x20dd14=_0x1abb79;let _0x30d590=Ne(_0x4e1733),_0x470bef=(0x0,f['randomBytes'])(0x10);return Pe((0x0,f[_0x20dd14(0x32d)])(_0x470bef,(0x0,d[_0x20dd14(0x3c2)])(_0x30d590,_0x470bef)['encrypt']((0x0,f[_0x20dd14(0x250)])(_0x2dbd87))));}function Ie(){const _0x79343c=_0x1abb79;let _0x30a4d5=(0x0,l[_0x79343c(0x1bb)])()[_0x79343c(0x1f9)];if(typeof window<'u'&&window[_0x79343c(0x3a0)]!==void 0x0&&_0x30a4d5){let _0x56425e={'time':Math['floor'](Date[_0x79343c(0x25e)]()/0x3e8),'domain':location[_0x79343c(0x319)]};return Fe(JSON[_0x79343c(0x20e)](_0x56425e),_0x30a4d5);}}let K=class{constructor(_0xd2b57d){const _0x155d74=_0x1abb79;this[_0x155d74(0x470)]=_0xd2b57d,this[_0x155d74(0x20d)]();}[_0x1abb79(0x20d)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x4a5951,_0x14cff9)=>{const _0x208e23=_0x37da;let _0x559391=Ie();return _0x559391&&_0x4a5951[_0x208e23(0x1d0)][_0x208e23(0x35b)](_0x208e23(0x322),_0x559391),_0x14cff9(_0x4a5951);}});}};K=y([v(0x0,(0x0,t['Inject'])(c['HTTPService']))],K);let q=class extends t['RxDisposable']{constructor(_0x4b4ff6,_0x154410,_0x4777f7){const _0x3617c8=_0x1abb79;super(),this[_0x3617c8(0x204)]=_0x4b4ff6,this['_snapshotService']=_0x154410,this[_0x3617c8(0x1c9)]=_0x4777f7,g(this,_0x3617c8(0x1e1),new i['BehaviorSubject'](null)),g(this,_0x3617c8(0x3cf),this['_unitInfo$'][_0x3617c8(0x234)]());}async[_0x1abb79(0x477)](_0x2204d6,_0x5621d1,_0x4c58ae){const _0x2d6dbb=_0x1abb79;this[_0x2d6dbb(0x1e1)][_0x2d6dbb(0x343)]({'unitId':_0x2204d6,'type':_0x5621d1});let _0x3eab1b=null;switch(_0x5621d1){case t['UniverInstanceType'][_0x2d6dbb(0x45b)]:_0x3eab1b=await this[_0x2d6dbb(0x1d8)][_0x2d6dbb(0x44d)](_0x2204d6,_0x4c58ae);break;case t[_0x2d6dbb(0x3b9)][_0x2d6dbb(0x3d3)]:_0x3eab1b=await this[_0x2d6dbb(0x1d8)]['loadDoc'](_0x2204d6,_0x4c58ae);break;default:this[_0x2d6dbb(0x204)]['error'](_0x2d6dbb(0x206),_0x2d6dbb(0x386));break;}return _0x3eab1b;}async[_0x1abb79(0x1f7)](_0x326b5b,_0x217aa4,_0x32f21b){const _0x293b5b=_0x1abb79;var _0x551a22;this[_0x293b5b(0x1e1)]['next']({'unitId':_0x326b5b,'type':_0x217aa4,'subUnitId':_0x32f21b});let _0x5a997c=0x0,_0x2372bf=await((_0x551a22=this[_0x293b5b(0x1c9)])==null?void 0x0:_0x551a22[_0x293b5b(0x419)](_0x326b5b));return _0x2372bf&&(_0x2372bf[_0x293b5b(0x443)]||_0x2372bf[_0x293b5b(0x2f2)]['length']!==0x0)&&(_0x5a997c=_0x2372bf[_0x293b5b(0x1bc)]),_0x5a997c===0x0&&this[_0x293b5b(0x204)][_0x293b5b(0x490)](_0x293b5b(0x206),_0x293b5b(0x1f6)),this[_0x293b5b(0x477)](_0x326b5b,_0x217aa4,_0x5a997c);}};q=y([v(0x0,t[_0x1abb79(0x22c)]),v(0x1,(0x0,t[_0x1abb79(0x3cc)])(e['SnapshotService'])),v(0x2,(0x0,t[_0x1abb79(0x323)])(S))],q);let J=class{constructor(_0x298436,_0x2a269e,_0x5b2485){const _0x2f93b6=_0x1abb79;this[_0x2f93b6(0x470)]=_0x298436,this[_0x2f93b6(0x1c0)]=_0x2a269e,this['_univerInstanceService']=_0x5b2485,g(this,_0x2f93b6(0x2db),0x0),g(this,_0x2f93b6(0x2af),new i['Subject']()),g(this,_0x2f93b6(0x44b),this[_0x2f93b6(0x2af)]),g(this,_0x2f93b6(0x435),new Map());}['setWaitCount'](_0x143056){const _0x25cf19=_0x1abb79;this[_0x25cf19(0x2db)]=_0x143056,this[_0x25cf19(0x2af)][_0x25cf19(0x343)](_0x143056);}[_0x1abb79(0x22e)](_0x16d7e2,_0x1c94b7){const _0x1ee62c=_0x1abb79;if(_0x1c94b7===u[_0x1ee62c(0x372)][_0x1ee62c(0x449)]){let _0x1ff8c3=new Image();return _0x1ff8c3[_0x1ee62c(0x2fd)]=_0x16d7e2,_0x1ff8c3;}return this[_0x1ee62c(0x435)][_0x1ee62c(0x277)](_0x16d7e2);}['addImageSourceCache'](_0x3ce5b2,_0x27765b,_0x566703){const _0x3d8a5d=_0x1abb79;_0x27765b===u[_0x3d8a5d(0x372)][_0x3d8a5d(0x449)]||_0x566703==null||this[_0x3d8a5d(0x435)][_0x3d8a5d(0x35b)](_0x3ce5b2,_0x566703);}async[_0x1abb79(0x2df)](_0x2abfce){const _0x2730df=_0x1abb79;try{let _0x3b1a70=this['_replaceFileID'](this[_0x2730df(0x1bf)](),''+_0x2abfce),_0x3331d6=(await this[_0x2730df(0x470)][_0x2730df(0x277)](_0x3b1a70))[_0x2730df(0x230)];if(_0x3331d6[_0x2730df(0x1ec)]&&_0x3331d6[_0x2730df(0x1ec)]['code']===a['ErrorCode']['OK']){let _0x21c5f0=(0x0,t[_0x2730df(0x3d7)])(_0x3331d6['url'],this[_0x2730df(0x488)]());return Promise[_0x2730df(0x395)](_0x21c5f0);}return Promise[_0x2730df(0x361)](_0x3331d6[_0x2730df(0x1ec)]);}catch(_0x3cd001){return Promise[_0x2730df(0x361)](_0x3cd001);}}async[_0x1abb79(0x24b)](_0x3ecb23){const _0x38a9d1=_0x1abb79;let _0x32af7e='';if(!u[_0x38a9d1(0x46e)][_0x38a9d1(0x3a9)](_0x3ecb23[_0x38a9d1(0x1ae)]))return this[_0x38a9d1(0x1de)](),Promise['reject'](Error(u['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0x3ecb23[_0x38a9d1(0x22a)]>(0x0,u[_0x38a9d1(0x240)])())return this[_0x38a9d1(0x1de)](),Promise[_0x38a9d1(0x361)](Error(u[_0x38a9d1(0x1e7)][_0x38a9d1(0x284)]));try{let _0x15b9d1=new FormData();_0x15b9d1[_0x38a9d1(0x46c)](_0x38a9d1(0x293),_0x3ecb23);let _0x2bb685=this['_univerInstanceService'][_0x38a9d1(0x2a1)](),_0x3ea581=_0x2bb685==null?void 0x0:_0x2bb685[_0x38a9d1(0x261)]();if(!_0x3ea581)throw Error('unitId\x20is\x20not\x20found');let _0x51b214=this[_0x38a9d1(0x475)]()+'?size='+_0x3ecb23[_0x38a9d1(0x22a)]['toString']()+_0x38a9d1(0x467)+a[_0x38a9d1(0x38f)][_0x38a9d1(0x48d)]+_0x38a9d1(0x457)+encodeURIComponent(_0x3ea581),_0x186d4={'body':_0x15b9d1},_0x143f6b=(await this['_httpService'][_0x38a9d1(0x3b8)](_0x51b214,_0x186d4))[_0x38a9d1(0x230)];if(typeof _0x143f6b[_0x38a9d1(0x1f4)]!='string')return this[_0x38a9d1(0x1de)](),Promise[_0x38a9d1(0x361)](Error(u['ImageUploadStatusType'][_0x38a9d1(0x1ac)]));_0x32af7e=_0x143f6b[_0x38a9d1(0x1f4)];}catch{return this['_decreaseWaiting'](),Promise[_0x38a9d1(0x361)](Error(u[_0x38a9d1(0x1e7)][_0x38a9d1(0x1ac)]));}return new Promise((_0x2e5bd9,_0x40fc87)=>{const _0x1c67a2=_0x38a9d1;let _0x51158b=new FileReader();_0x51158b['readAsDataURL'](_0x3ecb23),_0x51158b[_0x1c67a2(0x214)]=_0x1f2a38=>{const _0x54451f=_0x1c67a2;var _0x4ff300;let _0x2a94fb=(_0x4ff300=_0x1f2a38[_0x54451f(0x3c3)])==null?void 0x0:_0x4ff300[_0x54451f(0x229)];if(_0x2a94fb==null){this[_0x54451f(0x1de)](),_0x40fc87(Error(u[_0x54451f(0x1e7)][_0x54451f(0x1ac)]));return;}_0x2e5bd9({'imageId':(0x0,t[_0x54451f(0x1b3)])(0x6),'imageSourceType':u[_0x54451f(0x372)][_0x54451f(0x36e)],'source':_0x32af7e,'base64Cache':_0x2a94fb,'status':u[_0x54451f(0x1e7)][_0x54451f(0x40c)]}),this[_0x54451f(0x1de)]();};});}['_getUploadFileURL'](){const _0x5b47ba=_0x1abb79;var _0x1b3c9c;let _0x3d676b=this['_configService'][_0x5b47ba(0x300)](T);return(_0x1b3c9c=_0x3d676b==null?void 0x0:_0x3d676b[_0x5b47ba(0x400)])==null?_0x5b47ba(0x41b):_0x1b3c9c;}['_getSignURL'](){const _0x569ff1=_0x1abb79;var _0x95b91;let _0x5d1781=this[_0x569ff1(0x1c0)][_0x569ff1(0x300)](T);return(_0x95b91=_0x5d1781==null?void 0x0:_0x5d1781['signUrlServerUrl'])==null?_0x569ff1(0x45a):_0x95b91;}[_0x1abb79(0x488)](){const _0xb9b2d0=_0x1abb79;var _0x5a19d9;let _0x2f6216=this[_0xb9b2d0(0x1c0)][_0xb9b2d0(0x300)](T);return(_0x5a19d9=_0x2f6216==null?void 0x0:_0x2f6216['downloadEndpointUrl'])==null?location[_0xb9b2d0(0x1cd)]:_0x5a19d9;}[_0x1abb79(0x2c5)](_0x1591be,_0x78b86d){const _0x386945=_0x1abb79;return _0x1591be['replace'](_0x386945(0x1be),_0x78b86d);}[_0x1abb79(0x1de)](){const _0x22a798=_0x1abb79;--this[_0x22a798(0x2db)],this[_0x22a798(0x2af)][_0x22a798(0x343)](this['_waitCount']);}};J=y([v(0x0,(0x0,t['Inject'])(c['HTTPService'])),v(0x1,t['IConfigService']),v(0x2,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x31a)]))],J);let Y=class{constructor(_0x4ed3e1,_0x31b024){const _0x3ccfc7=_0x1abb79;this[_0x3ccfc7(0x1c0)]=_0x4ed3e1,this[_0x3ccfc7(0x318)]=_0x31b024;}[_0x1abb79(0x356)](){const _0x5954a7=_0x1abb79;var _0x24adca;let _0x291aa1=this[_0x5954a7(0x1c0)]['getConfig'](T);return(_0x24adca=_0x291aa1==null?void 0x0:_0x291aa1[_0x5954a7(0x33c)])==null?_0x5954a7(0x371):_0x24adca;}async['list'](_0x44b87d){const _0x1315f6=_0x1abb79;let _0x1a39ce=this[_0x1315f6(0x356)]()+_0x1315f6(0x342);return{'list':[{'title':_0x1315f6(0x412),'mentions':(await this[_0x1315f6(0x318)]['get'](_0x1a39ce,{'params':{'objectID':_0x44b87d[_0x1315f6(0x355)],'unitID':_0x44b87d['unitId']}}))[_0x1315f6(0x230)][_0x1315f6(0x221)][_0x1315f6(0x41d)](_0x4470cf=>({'objectId':_0x4470cf['id'],'name':_0x4470cf[_0x1315f6(0x331)][_0x1315f6(0x29b)],'metadata':{'icon':_0x4470cf['subject'][_0x1315f6(0x349)]},'label':_0x4470cf[_0x1315f6(0x331)]['name'],'objectType':t[_0x1315f6(0x492)][_0x1315f6(0x2d6)]})),'metadata':{},'type':t[_0x1315f6(0x492)][_0x1315f6(0x2d6)]}]};}};Y=y([v(0x0,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x2b4)])),v(0x1,(0x0,t['Inject'])(c['HTTPService']))],Y);let X=class extends t[_0x1abb79(0x464)]{constructor(_0x55f5cd,_0x4265ae,_0x4d80d9,_0x279594,_0x5f10d6){const _0x2fe618=_0x1abb79;super(),this[_0x2fe618(0x301)]=_0x55f5cd,this[_0x2fe618(0x489)]=_0x4265ae,this[_0x2fe618(0x244)]=_0x4d80d9,this['_collaborationSessionService']=_0x279594,this[_0x2fe618(0x420)]=_0x5f10d6,this[_0x2fe618(0x2fa)](),this[_0x2fe618(0x437)]();}[_0x1abb79(0x437)](){const _0x2ad968=_0x1abb79;let _0x508b88=async _0x5881ca=>{const _0x110372=_0x37da;(await this['_collaborationSessionService'][_0x110372(0x3c1)](_0x5881ca))[_0x110372(0x36b)][_0x110372(0x3a1)]((0x0,s[_0x110372(0x37f)])(_0x416dc5=>_0x416dc5['eventID']===e[_0x110372(0x380)][_0x110372(0x2ec)]),(0x0,s[_0x110372(0x299)])(this['dispose$']))[_0x110372(0x2ed)](_0x529013=>{const _0x355b80=_0x110372;let {reason:_0x4ba871}=_0x529013[_0x355b80(0x471)];this['_collaborationUIEventService']['emitEvent']({'id':_0x355b80(0x465),'data':_0x4ba871}),this['_permissionService'][_0x355b80(0x2be)](new r[(_0x355b80(0x209))](_0x5881ca)['id'],!0x1),this[_0x355b80(0x463)][_0x355b80(0x1ab)](_0x5881ca);});};(0x0,i[_0x2ad968(0x295)])(this[_0x2ad968(0x489)][_0x2ad968(0x44f)](t[_0x2ad968(0x3b9)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType']['UNIVER_DOC']))[_0x2ad968(0x3a1)]((0x0,s[_0x2ad968(0x41d)])(_0x5c5e4f=>_0x5c5e4f[_0x2ad968(0x338)][_0x2ad968(0x261)]()),(0x0,s['filter'])(_0x2237de=>!(0x0,t['isInternalEditorID'])(_0x2237de)),(0x0,s[_0x2ad968(0x299)])(this[_0x2ad968(0x3ba)]))[_0x2ad968(0x2ed)](_0x19b118=>{_0x508b88(_0x19b118);});}['_initUnitPermissionChange'](){const _0x3d415b=_0x1abb79;let _0x203a3c=async _0x5c6a20=>{const _0x1ca00f=_0x37da;let _0x5b8753=await this[_0x1ca00f(0x463)][_0x1ca00f(0x3c1)](_0x5c6a20),_0x2bf25f=this[_0x1ca00f(0x301)][_0x1ca00f(0x277)](r['SheetPermissionInitController']);_0x5b8753[_0x1ca00f(0x36b)][_0x1ca00f(0x3a1)]((0x0,s[_0x1ca00f(0x37f)])(_0x38f2a2=>_0x38f2a2[_0x1ca00f(0x20b)]===e[_0x1ca00f(0x380)][_0x1ca00f(0x3df)]),(0x0,s[_0x1ca00f(0x299)])(this[_0x1ca00f(0x3ba)]))[_0x1ca00f(0x2ed)](_0x1f74ee=>{const _0x1387fe=_0x1ca00f;let {objectId:_0x140213}=_0x1f74ee[_0x1387fe(0x471)];_0x140213===_0x5c6a20?_0x2bf25f[_0x1387fe(0x456)](_0x5c6a20):_0x2bf25f['refreshPermission'](_0x5c6a20,_0x140213);});};(0x0,i[_0x3d415b(0x295)])(this[_0x3d415b(0x489)]['getTypeOfUnitAdded$'](t[_0x3d415b(0x3b9)][_0x3d415b(0x45b)]))['pipe']((0x0,s[_0x3d415b(0x41d)])(_0x3194d9=>_0x3194d9[_0x3d415b(0x338)][_0x3d415b(0x261)]()),(0x0,s[_0x3d415b(0x37f)])(_0x2612bd=>!(0x0,t[_0x3d415b(0x366)])(_0x2612bd)),(0x0,s[_0x3d415b(0x299)])(this['dispose$']))[_0x3d415b(0x2ed)](_0x5adb12=>{_0x203a3c(_0x5adb12);});}};X=y([v(0x0,(0x0,t[_0x1abb79(0x3cc)])(t[_0x1abb79(0x1d5)])),v(0x1,t[_0x1abb79(0x31a)]),v(0x2,t[_0x1abb79(0x2ad)]),v(0x3,(0x0,t[_0x1abb79(0x3cc)])(H)),v(0x4,(0x0,t[_0x1abb79(0x3cc)])(_))],X);let Z=class{constructor(_0x4d611a,_0x52874b){const _0x2fe268=_0x1abb79;this[_0x2fe268(0x1c0)]=_0x4d611a,this[_0x2fe268(0x470)]=_0x52874b;}async[_0x1abb79(0x1d2)](_0x438973,_0x646072){const _0x10df29=_0x1abb79;var _0x44a052;let {unitID:_0x6162e7,type:_0x5de2be,revision:_0x21f012=0x0}=_0x646072,_0x5d8a72=this['getSnapshotAPIPath']()+'/'+_0x5de2be+_0x10df29(0x3d8)+_0x6162e7+_0x10df29(0x1d9)+_0x21f012,_0x13aa77=(await this[_0x10df29(0x470)]['get'](_0x5d8a72))[_0x10df29(0x230)],_0xcc02b0=(_0x44a052=_0x13aa77['snapshot'])==null?void 0x0:_0x44a052[_0x10df29(0x270)];if(_0xcc02b0){let _0x216b23=_0xcc02b0==null?void 0x0:_0xcc02b0[_0x10df29(0x22b)];_0xcc02b0[_0x10df29(0x22b)]=e[_0x10df29(0x255)][_0x10df29(0x1b5)]((0x0,e[_0x10df29(0x3de)])(_0x216b23)),Object[_0x10df29(0x289)](_0xcc02b0[_0x10df29(0x41e)])[_0x10df29(0x222)](([,_0x105e3b])=>{const _0x52ded4=_0x10df29;let _0x2b4505=_0x105e3b['originalMeta'];_0x105e3b['originalMeta']=e['textEncoder'][_0x52ded4(0x1b5)]((0x0,e[_0x52ded4(0x3de)])(_0x2b4505));});}return _0x13aa77;}async[_0x1abb79(0x461)](_0x11532a,_0x41a05a){const _0x4cf2c1=_0x1abb79;let {unitID:_0x58cdaa,type:_0x2a4922,blockID:_0x2be550}=_0x41a05a,_0x446f5b=this[_0x4cf2c1(0x1b7)]()+'/'+_0x2a4922+'/unit/'+_0x58cdaa+_0x4cf2c1(0x1eb)+_0x2be550;return(await this[_0x4cf2c1(0x470)]['get'](_0x446f5b))['body'];}async['getDeserializedSheetBlock'](_0x2fae3f,_0x153ed0){const _0x53306a=_0x1abb79;let {unitID:_0x5b009f,type:_0x180f9e,blockID:_0x3d022c}=_0x153ed0,_0x5a7708=this[_0x53306a(0x1b7)]()+_0x53306a(0x1eb)+_0x180f9e+_0x53306a(0x3d8)+_0x5b009f+_0x53306a(0x1eb)+_0x3d022c;return(await this[_0x53306a(0x470)][_0x53306a(0x277)](_0x5a7708))[_0x53306a(0x230)];}async['fetchMissingChangesets'](_0x1dd2af,_0x4377d1){const _0xc98d51=_0x1abb79;let {unitID:_0xed5d9c,type:_0x421f52,from:_0x503685,to:_0x45a5cf}=_0x4377d1,_0x3d4321=this[_0xc98d51(0x1b7)]()+'/'+_0x421f52+_0xc98d51(0x3d8)+_0xed5d9c+'/fetchmissing?from='+_0x503685+_0xc98d51(0x2e5)+_0x45a5cf;return(await this[_0xc98d51(0x470)][_0xc98d51(0x277)](_0x3d4321))[_0xc98d51(0x230)];}['getSnapshotAPIPath'](){const _0x23356f=_0x1abb79;var _0x48ea9b;return(_0x48ea9b=this[_0x23356f(0x1c0)]['getConfig'](_0x23356f(0x46b)))==null?this['_getAPIPrefix']():_0x48ea9b;}[_0x1abb79(0x1b7)](){const _0x39d734=_0x1abb79;var _0x34a7fd;let _0x3ebffc=this[_0x39d734(0x1c0)][_0x39d734(0x300)](T);return(_0x34a7fd=_0x3ebffc==null?void 0x0:_0x3ebffc['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x34a7fd;}async[_0x1abb79(0x38b)](_0x5e5d5a,_0x1638e4){const _0x3cd26c=_0x1abb79;let _0x580fec=_0x3cd26c(0x1cb)+_0x1638e4[_0x3cd26c(0x1ae)]+_0x3cd26c(0x3d8)+_0x1638e4[_0x3cd26c(0x383)]+_0x3cd26c(0x32a);return(await this[_0x3cd26c(0x470)][_0x3cd26c(0x277)](_0x580fec,{'params':{'resourceId':JSON[_0x3cd26c(0x20e)](_0x1638e4[_0x3cd26c(0x458)])}}))[_0x3cd26c(0x230)];}['saveSnapshot'](){const _0x5cb9b4=_0x1abb79;throw Error(_0x5cb9b4(0x233));}[_0x1abb79(0x1dd)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1abb79(0x3d6)](){const _0x1cbde8=_0x1abb79;throw Error(_0x1cbde8(0x233));}['saveChangeset'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1abb79(0x3b4)](){const _0x1e4a14=_0x1abb79;throw Error(_0x1e4a14(0x233));}[_0x1abb79(0x33a)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Z=y([v(0x0,t[_0x1abb79(0x2b4)]),v(0x1,(0x0,t[_0x1abb79(0x3cc)])(c[_0x1abb79(0x422)]))],Z);let Q=class extends t[_0x1abb79(0x1ff)]{constructor(_0x1df5f9,_0x3c0697,_0x274691,_0x4bc162,_0xfab0a7){const _0x2902c8=_0x1abb79;super(_0x1df5f9,_0x3c0697,_0x274691),this[_0x2902c8(0x20f)]=_0x4bc162,this[_0x2902c8(0x204)]=_0xfab0a7;}[_0x1abb79(0x335)](_0x3f7fe2,_0x2b8471){const _0x1d3099=_0x1abb79;let _0x56a745=this[_0x1d3099(0x3d1)](_0x3f7fe2);if(_0x56a745)try{let _0x36de39=this[_0x1d3099(0x1cf)](_0x56a745,_0x2b8471);this[_0x1d3099(0x35e)](_0x3f7fe2,_0x36de39);}catch(_0x500354){this[_0x1d3099(0x204)][_0x1d3099(0x1ec)](_0x1d3099(0x330),_0x500354),this[_0x1d3099(0x3ca)](_0x3f7fe2);}let _0x435e30=this[_0x1d3099(0x218)](_0x3f7fe2);if(_0x435e30)try{let _0x199ee0=this[_0x1d3099(0x1cf)](_0x435e30,_0x2b8471);this[_0x1d3099(0x207)](_0x3f7fe2,_0x199ee0);}catch(_0x460bce){this[_0x1d3099(0x204)]['error'](_0x460bce),this['_clearRedo'](_0x3f7fe2);}}['_clearUndo'](_0x377b8f){const _0x301491=_0x1abb79;let _0x30157f=this[_0x301491(0x3d1)](_0x377b8f);_0x30157f&&(_0x30157f[_0x301491(0x2b3)]=0x0,this[_0x301491(0x36a)]());}[_0x1abb79(0x1df)](_0x5fb659){const _0x41afc0=_0x1abb79;let _0x5e97e9=this[_0x41afc0(0x218)](_0x5fb659);_0x5e97e9&&(_0x5e97e9[_0x41afc0(0x2b3)]=0x0,this[_0x41afc0(0x36a)]());}[_0x1abb79(0x35e)](_0x14bdbd,_0x59c74e){const _0x3de628=_0x1abb79;this[_0x3de628(0x3ef)][_0x3de628(0x35b)](_0x14bdbd,_0x59c74e),this[_0x3de628(0x36a)]();}[_0x1abb79(0x207)](_0x2ebffd,_0x535fda){const _0x4597de=_0x1abb79;this[_0x4597de(0x337)]['set'](_0x2ebffd,_0x535fda),this['_updateStatus']();}[_0x1abb79(0x1cf)](_0x2c6934,_0x543c00){const _0x232494=_0x1abb79;let _0x20cfd1=[],_0x6d8e15=_0x543c00,_0x2b423a=_0x543c00;for(let _0x2a0d14=_0x2c6934[_0x232494(0x2b3)]-0x1;_0x2a0d14>=0x0;_0x2a0d14--){let {unitID:_0x1f579c,undoMutations:_0x5c0562,redoMutations:_0x1fe215}=_0x2c6934[_0x2a0d14],_0x522d29=this[_0x232494(0x20f)][_0x232494(0x411)](_0x6d8e15,_0x5c0562),_0x208271=this[_0x232494(0x20f)][_0x232494(0x411)](_0x2b423a,_0x1fe215);if((0x0,e[_0x232494(0x2c3)])(_0x522d29)||(0x0,e[_0x232494(0x2c3)])(_0x208271)){this[_0x232494(0x204)][_0x232494(0x1ec)](_0x232494(0x330),_0x232494(0x3ad),_0x522d29,_0x208271);break;}_0x6d8e15=_0x522d29[_0x232494(0x3f6)],_0x2b423a=_0x208271[_0x232494(0x3f6)],_0x20cfd1['push']({'unitID':_0x1f579c,'undoMutations':_0x522d29[_0x232494(0x34f)],'redoMutations':_0x208271[_0x232494(0x34f)]});}return _0x20cfd1[_0x232494(0x290)]();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x1abb79(0x426)]),v(0x2,t[_0x1abb79(0x239)]),v(0x3,e[_0x1abb79(0x2f7)]),v(0x4,t[_0x1abb79(0x22c)])],Q);let $=class extends t[_0x1abb79(0x391)]{constructor(_0x3a5668={},_0x4a952b,_0x3c173a,_0x1395cc){const _0x17ef49=_0x1abb79;super(),this['_config']=_0x3a5668,this[_0x17ef49(0x204)]=_0x4a952b,this[_0x17ef49(0x301)]=_0x3c173a,this['_configService']=_0x1395cc;let {..._0x47d770}=(0x0,t[_0x17ef49(0x295)])({},de,_0x3a5668);if(!_0x47d770[_0x17ef49(0x1b2)])throw Error(_0x17ef49(0x388));this['_config']=_0x47d770,this[_0x17ef49(0x1c0)][_0x17ef49(0x348)](T,_0x47d770);}['onStarting'](){const _0x3ef4d3=_0x1abb79;this[_0x3ef4d3(0x35d)](),this[_0x3ef4d3(0x421)]();}[_0x1abb79(0x35d)](){const _0x348f5b=_0x1abb79;var _0x3d483e,_0xe1ca3a;this[_0x348f5b(0x301)][_0x348f5b(0x38d)](t[_0x348f5b(0x42d)])&&this[_0x348f5b(0x204)][_0x348f5b(0x1ec)](_0x348f5b(0x30d),_0x348f5b(0x491));let _0x1b8fb9=(0x0,t[_0x348f5b(0x21e)])([[t[_0x348f5b(0x42d)],{'useClass':Q}],[H],[b],[C],[W],[K],[ie],[X],[_],[q],[B,{'useClass':this['_config'][_0x348f5b(0x1b2)]}],[e[_0x348f5b(0x23d)],{'useClass':Z}],[t[_0x348f5b(0x41a)],{'useClass':G}],[u[_0x348f5b(0x43a)],{'useClass':J}],[t[_0x348f5b(0x397)],{'useClass':Y}],[U],[Me]],(_0x3d483e=this[_0x348f5b(0x2b6)])==null?void 0x0:_0x3d483e['override']);if(!((_0xe1ca3a=this['_config'])!=null&&_0xe1ca3a[_0x348f5b(0x3e0)])){let _0x5c9795=_0x1b8fb9[_0x348f5b(0x39a)](([_0x3a48c7])=>_0x3a48c7===w);_0x5c9795!==-0x1&&_0x1b8fb9['splice'](_0x5c9795,0x1);}(0x0,t[_0x348f5b(0x2fb)])(this[_0x348f5b(0x301)],_0x1b8fb9);}[_0x1abb79(0x421)](){const _0x302ee9=_0x1abb79;var _0x3aae19,_0x1919eb;if(this[_0x302ee9(0x301)][_0x302ee9(0x277)](c['HTTPService'])[_0x302ee9(0x2c4)]({'priority':0x14,'interceptor':(0x0,c[_0x302ee9(0x1f3)])({'maxParallel':0x6})}),!((_0x3aae19=this['_config'])!=null&&_0x3aae19[_0x302ee9(0x27d)])){var _0x32cf23;(_0x32cf23=this['_injector'][_0x302ee9(0x277)](S,t[_0x302ee9(0x3b0)][_0x302ee9(0x460)]))==null||_0x32cf23['disableLocalCache']();}(_0x1919eb=this['_config'])!=null&&_0x1919eb[_0x302ee9(0x382)]&&(0x0,t['touchDependencies'])(this[_0x302ee9(0x301)],[[W]]),(0x0,t[_0x302ee9(0x254)])(this['_injector'],[[K],[U],[X]]);}};g($,_0x1abb79(0x487),_0x1abb79(0x340)),g($,_0x1abb79(0x393),Ae),g($,'version',je),$=y([(0x0,t[_0x1abb79(0x32e)])(l['UniverLicensePlugin'],e[_0x1abb79(0x45d)],c[_0x1abb79(0x25b)]),v(0x1,t[_0x1abb79(0x22c)]),v(0x2,(0x0,t['Inject'])(t[_0x1abb79(0x1d5)])),v(0x3,t[_0x1abb79(0x2b4)])],$),Object[_0x1abb79(0x3b7)](exports,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x24d),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x1abb79(0x1e5),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x1abb79(0x305)]=T,Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x424),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x1abb79(0x3b7)](exports,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x3ff),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x1abb79(0x3b7)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x1abb79(0x2ba),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x1abb79(0x2e8)]=Se,exports['CollaborationUIEventId']=re,exports[_0x1abb79(0x47b)]=_,Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x2c9),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x1abb79(0x2c2)]=ie,Object['defineProperty'](exports,_0x1abb79(0x476),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x1abb79(0x1fa)]=p,exports[_0x1abb79(0x3fe)]=_0x1abb79(0x248),exports[_0x1abb79(0x2c8)]='/universer-api/user/session-ticket',Object['defineProperty'](exports,_0x1abb79(0x23b),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x326),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x287),{'enumerable':!0x0,'get':function(){return I;}}),exports[_0x1abb79(0x2da)]=_0x1abb79(0x24c),exports[_0x1abb79(0x42c)]=_0x1abb79(0x3f7),exports[_0x1abb79(0x225)]=B,exports[_0x1abb79(0x237)]=S,exports[_0x1abb79(0x26b)]=Ee,exports[_0x1abb79(0x3bd)]=w,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x1abb79(0x3b1)]=_0x1abb79(0x33f),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x213),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x2f3),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x40a),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x3d5),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x1abb79(0x2dd)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x1abb79(0x377),exports['SessionStatus']=oe,Object[_0x1abb79(0x3b7)](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,_0x1abb79(0x333),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x1abb79(0x3b7)](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x226),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x1abb79(0x320)]=ue,Object[_0x1abb79(0x3b7)](exports,_0x1abb79(0x37c),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1abb79(0x42e)]=De,exports[_0x1abb79(0x408)]=ce,exports[_0x1abb79(0x39d)]=Oe;
|