@univerjs-pro/collaboration-client 0.4.1 → 0.4.2-nightly.202410291606
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +5 -3
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +32 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/auth-server/util.d.ts +1 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -4
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
- package/lib/types/services/member/member.service.d.ts +39 -0
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +12 -0
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +1 -1
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +20 -18
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x4d97e8=_0x4a0f;(function(_0x1d7149,_0x27e3fe){const _0x5f5544=_0x4a0f,_0x398439=_0x1d7149();while(!![]){try{const _0x1299ba=parseInt(_0x5f5544(0x101))/0x1*(-parseInt(_0x5f5544(0x14b))/0x2)+parseInt(_0x5f5544(0x8f))/0x3+-parseInt(_0x5f5544(0x236))/0x4+parseInt(_0x5f5544(0x1ce))/0x5+parseInt(_0x5f5544(0x3c3))/0x6*(parseInt(_0x5f5544(0xbb))/0x7)+parseInt(_0x5f5544(0xb2))/0x8*(-parseInt(_0x5f5544(0x387))/0x9)+-parseInt(_0x5f5544(0x390))/0xa;if(_0x1299ba===_0x27e3fe)break;else _0x398439['push'](_0x398439['shift']());}catch(_0x55e1ae){_0x398439['push'](_0x398439['shift']());}}}(_0x2530,0xbfc1e));var Ft=Object[_0x4d97e8(0x8e)],Gt=(_0x4eac90,_0x530d26,_0x405135)=>_0x530d26 in _0x4eac90?Ft(_0x4eac90,_0x530d26,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x405135}):_0x4eac90[_0x530d26]=_0x405135,u=(_0x20c67e,_0x138655,_0x3db59c)=>Gt(_0x20c67e,typeof _0x138655!=_0x4d97e8(0x2cc)?_0x138655+'':_0x138655,_0x3db59c);Object['defineProperty'](exports,Symbol[_0x4d97e8(0x13c)],{'value':_0x4d97e8(0x2b4)});const a=require(_0x4d97e8(0x3d3)),v=require('rxjs'),E=require(_0x4d97e8(0x399)),X=require(_0x4d97e8(0x4ab)),A=require(_0x4d97e8(0x23c)),w=require(_0x4d97e8(0xd2)),_=require(_0x4d97e8(0x12c)),Yt=require(_0x4d97e8(0x33e)),N=require(_0x4d97e8(0x219)),C=require(_0x4d97e8(0x2db)),D=require(_0x4d97e8(0x1b3)),se=require('@univerjs/docs'),j=require(_0x4d97e8(0x442)),et=require(_0x4d97e8(0x174)),te=require(_0x4d97e8(0x233)),P=require(_0x4d97e8(0x295)),Kt=require(_0x4d97e8(0x39a)),Xt=require(_0x4d97e8(0x12f)),St=_0x4d97e8(0x2c4),qt='/universer-api/snapshot',vt='SNAPSHOT_URL_KEY',zt=_0x4d97e8(0x2a8),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt=_0x4d97e8(0x2f4),mt=_0x4d97e8(0x446),Qt=0x7530,Ge=_0x4d97e8(0x1db),ft=0x4e20,es=0x4e20,It=_0x4d97e8(0x4b1),ts=0x3,pt=_0x4d97e8(0x44b),ss=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',is=_0x4d97e8(0x2a6),Et=_0x4d97e8(0x467),ns=_0x4d97e8(0x496);var bt=(_0x44e307=>(_0x44e307[_0x44e307[_0x4d97e8(0x158)]=0x0]='UNDEFINED',_0x44e307[_0x44e307['OK']=0x1]='OK',_0x44e307[_0x44e307[_0x4d97e8(0x2dd)]=0x2]=_0x4d97e8(0x2dd),_0x44e307[_0x44e307[_0x4d97e8(0x11f)]=0x3]='PERMISSION_DENIED',_0x44e307[_0x44e307[_0x4d97e8(0x39e)]=0x4]=_0x4d97e8(0x39e),_0x44e307[_0x44e307[_0x4d97e8(0xf0)]=0x5]=_0x4d97e8(0xf0),_0x44e307[_0x44e307['ALREADY_EXISTS']=0x6]=_0x4d97e8(0x154),_0x44e307[_0x44e307[_0x4d97e8(0x204)]=0x7]='INVALID_ARGUMENT',_0x44e307[_0x44e307[_0x4d97e8(0x157)]=0x8]=_0x4d97e8(0x157),_0x44e307[_0x44e307[_0x4d97e8(0x139)]=0x9]='COMPLETION_FINISHED',_0x44e307[_0x44e307[_0x4d97e8(0x2c9)]=0x1389]=_0x4d97e8(0x2c9),_0x44e307[_0x44e307[_0x4d97e8(0x40b)]=0x1771]=_0x4d97e8(0x40b),_0x44e307[_0x44e307[_0x4d97e8(0x260)]=0x1772]=_0x4d97e8(0x260),_0x44e307[_0x44e307[_0x4d97e8(0x393)]=0x1773]=_0x4d97e8(0x393),_0x44e307[_0x44e307['APPLY_REJECT']=0x1b59]=_0x4d97e8(0x476),_0x44e307[_0x44e307[_0x4d97e8(0x9d)]=0x1b5a]=_0x4d97e8(0x9d),_0x44e307[_0x44e307[_0x4d97e8(0x153)]=0x1b5b]=_0x4d97e8(0x153),_0x44e307[_0x44e307[_0x4d97e8(0x31b)]=0x1b5c]=_0x4d97e8(0x31b),_0x44e307[_0x44e307[_0x4d97e8(0x91)]=0x1b5d]=_0x4d97e8(0x91),_0x44e307[_0x44e307[_0x4d97e8(0x171)]=0x1f41]=_0x4d97e8(0x171),_0x44e307[_0x44e307[_0x4d97e8(0x243)]=0x2329]=_0x4d97e8(0x243),_0x44e307[_0x44e307[_0x4d97e8(0x400)]=0x232a]=_0x4d97e8(0x400),_0x44e307[_0x44e307['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4d97e8(0x39b),_0x44e307[_0x44e307[_0x4d97e8(0x2c0)]=0x232c]=_0x4d97e8(0x2c0),_0x44e307[_0x44e307[_0x4d97e8(0x4ac)]=0x232d]=_0x4d97e8(0x4ac),_0x44e307[_0x44e307[_0x4d97e8(0x263)]=0x2711]=_0x4d97e8(0x263),_0x44e307[_0x44e307['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4d97e8(0x32e),_0x44e307[_0x44e307[_0x4d97e8(0x34e)]=0x2713]=_0x4d97e8(0x34e),_0x44e307[_0x44e307[_0x4d97e8(0xea)]=0x2714]=_0x4d97e8(0xea),_0x44e307[_0x44e307[_0x4d97e8(0x2b8)]=-0x1]=_0x4d97e8(0x2b8),_0x44e307))(bt||{}),$=(_0x438571=>(_0x438571[_0x438571['UNIVER_UNKNOWN']=0x0]=_0x4d97e8(0x16f),_0x438571[_0x438571[_0x4d97e8(0x15d)]=0x1]=_0x4d97e8(0x15d),_0x438571[_0x438571[_0x4d97e8(0x15c)]=0x2]=_0x4d97e8(0x15c),_0x438571[_0x438571[_0x4d97e8(0x1b8)]=0x3]=_0x4d97e8(0x1b8),_0x438571[_0x438571['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x438571[_0x438571[_0x4d97e8(0x2b8)]=-0x1]='UNRECOGNIZED',_0x438571))($||{}),b=(_0x1bbea5=>(_0x1bbea5[_0x1bbea5[_0x4d97e8(0x24a)]=0x0]=_0x4d97e8(0x24a),_0x1bbea5[_0x1bbea5[_0x4d97e8(0x208)]=0x1]=_0x4d97e8(0x208),_0x1bbea5[_0x1bbea5['JOIN']=0x2]='JOIN',_0x1bbea5[_0x1bbea5['LEAVE']=0x3]=_0x4d97e8(0x461),_0x1bbea5[_0x1bbea5['INGEST']=0x4]=_0x4d97e8(0x43e),_0x1bbea5[_0x1bbea5['HEARTBEAT']=0x5]='HEARTBEAT',_0x1bbea5[_0x1bbea5[_0x4d97e8(0x140)]=0x6]='RECV',_0x1bbea5[_0x1bbea5[_0x4d97e8(0x2b8)]=-0x1]=_0x4d97e8(0x2b8),_0x1bbea5))(b||{}),Ye=(_0x5cf09a=>(_0x5cf09a[_0x5cf09a['UNKNOWN_CODE']=0x0]=_0x4d97e8(0x28e),_0x5cf09a[_0x5cf09a['OK']=0x1]='OK',_0x5cf09a[_0x5cf09a['FAIL']=0x2]=_0x4d97e8(0x32d),_0x5cf09a[_0x5cf09a['UNRECOGNIZED']=-0x1]=_0x4d97e8(0x2b8),_0x5cf09a))(Ye||{}),Tt=(_0x50eedc=>(_0x50eedc[_0x50eedc['Undefined']=0x0]=_0x4d97e8(0x353),_0x50eedc[_0x50eedc['HttpImport']=0x1]='HttpImport',_0x50eedc[_0x50eedc[_0x4d97e8(0x198)]=0x2]=_0x4d97e8(0x198),_0x50eedc[_0x50eedc[_0x4d97e8(0x1d6)]=0x3]=_0x4d97e8(0x1d6),_0x50eedc[_0x50eedc['UnitSnapshot']=0x4]='UnitSnapshot',_0x50eedc[_0x50eedc['UNRECOGNIZED']=-0x1]=_0x4d97e8(0x2b8),_0x50eedc))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x40c451){const _0x1440e4=_0x4d97e8;var _0x2c3c07,_0x59fd2d,_0x3e2124,_0xc5c4eb;const _0x3269c8=_0x40c451[_0x1440e4(0x201)],_0x96c2c9=JSON[_0x1440e4(0x234)](_0x3269c8);switch(_0x96c2c9[_0x1440e4(0x335)]){case b[_0x1440e4(0x341)]:case b['HELLO']:{const _0x53dda3=_0x96c2c9['infoRsp'];return{..._0x96c2c9,'data':_0x53dda3,'cmd':_0x96c2c9[_0x1440e4(0x335)]};}case b[_0x1440e4(0xd3)]:{const _0x3f7c5a=_0x96c2c9[_0x1440e4(0x150)];return{..._0x96c2c9,'data':_0x3f7c5a,'cmd':_0x96c2c9['cmd']};}case b[_0x1440e4(0x140)]:{const _0x3625a8=_0x96c2c9[_0x1440e4(0x1a7)];switch(_0x3625a8[_0x1440e4(0x445)]){case _[_0x1440e4(0x49e)]['PERMISSION_REJ']:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0x2c3c07=_0x3625a8[_0x1440e4(0x1d7)])==null?void 0x0:_0x2c3c07['cs']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _['CollaborationEvent'][_0x1440e4(0x94)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0x59fd2d=_0x3625a8[_0x1440e4(0xec)])==null?void 0x0:_0x59fd2d['cs']},'cmd':_0x96c2c9['cmd']};case _[_0x1440e4(0x49e)][_0x1440e4(0x148)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0x3e2124=_0x3625a8[_0x1440e4(0x280)])==null?void 0x0:_0x3e2124['cs']},'cmd':_0x96c2c9['cmd']};case _['CollaborationEvent'][_0x1440e4(0x1bd)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0xc5c4eb=_0x3625a8[_0x1440e4(0xc4)])==null?void 0x0:_0xc5c4eb['cs']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x415)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8['updateCursorEvent']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _['CollaborationEvent']['USERS_ENTER']:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x316)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0xf4)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x36b)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x432)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0xfb)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x253)]:case _['CollaborationEvent'][_0x1440e4(0x195)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8['liveShareOperation']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x2a7)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0xfb)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x9c)]:return{..._0x96c2c9,'data':_0x3625a8,'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)]['COMMENT_UPDATE']:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x35e)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x3f0)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x2bc)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0xdb)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8['shouldCloseConn']},'cmd':_0x96c2c9['cmd']};default:return _0x96c2c9;}}default:return _0x96c2c9;}}function Ot(_0x2b4ff4){const _0x37ee91=_0x4d97e8;switch(_0x2b4ff4[_0x37ee91(0x335)]){case b[_0x37ee91(0x341)]:case b[_0x37ee91(0x208)]:return JSON['stringify']({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4[_0x37ee91(0x336)]});case b['INGEST']:{let _0x1bde28;switch(_0x2b4ff4['data'][_0x37ee91(0x445)]){case _['CollaborationEvent'][_0x37ee91(0x415)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x415)],'updateCursorEvent':_0x2b4ff4['data'][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0xf4)]:{_0x1bde28={'eventID':_['CollaborationEvent'][_0x37ee91(0xf4)],'leaveEvent':_0x2b4ff4[_0x37ee91(0x201)]['data']};break;}case _[_0x37ee91(0x49e)]['USERS_ENTER']:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)]['USERS_ENTER'],'joinEvent':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)]['LIVESHARE_NEW_HOST']:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _['CollaborationEvent'][_0x37ee91(0x195)]:{_0x1bde28={'eventID':_['CollaborationEvent'][_0x37ee91(0x195)],'liveShareOperation':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0x2a7)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x2a7)],'liveShareTerminate':_0x2b4ff4['data']['data']};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0x2d3)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x2d3)],'liveShareRequestHost':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0x253)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x253)]};break;}default:_0x1bde28={'eventID':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x445)]};}return JSON[_0x37ee91(0x1f8)]({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4[_0x37ee91(0x336)],'collaMsg':_0x1bde28});}case b['JOIN']:return JSON[_0x37ee91(0x1f8)]({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4[_0x37ee91(0x336)],'joinReq':_0x2b4ff4[_0x37ee91(0x201)]});case b[_0x37ee91(0x461)]:return JSON['stringify']({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4['routeKey'],'leaveReq':_0x2b4ff4[_0x37ee91(0x201)]});default:throw new Error(_0x37ee91(0x244));}}var os=Object[_0x4d97e8(0x8e)],as=Object[_0x4d97e8(0x100)],cs=(_0xfc120b,_0x3dcaec,_0x5b91ae,_0x205b3f)=>{const _0x1a7654=_0x4d97e8;for(var _0x4c3d60=_0x205b3f>0x1?void 0x0:_0x205b3f?as(_0x3dcaec,_0x5b91ae):_0x3dcaec,_0x149d35=_0xfc120b[_0x1a7654(0x424)]-0x1,_0x2af480;_0x149d35>=0x0;_0x149d35--)(_0x2af480=_0xfc120b[_0x149d35])&&(_0x4c3d60=(_0x205b3f?_0x2af480(_0x3dcaec,_0x5b91ae,_0x4c3d60):_0x2af480(_0x4c3d60))||_0x4c3d60);return _0x205b3f&&_0x4c3d60&&os(_0x3dcaec,_0x5b91ae,_0x4c3d60),_0x4c3d60;},ae=(_0x186280,_0x2c7926)=>(_0x3b4fd6,_0x56b4d6)=>_0x2c7926(_0x3b4fd6,_0x56b4d6,_0x186280);const Ke=a[_0x4d97e8(0x290)](_0x4d97e8(0x30d));function ls(_0x3e4d2c,_0x3f352e,_0xd3643e){const _0x3478e4=_0x4d97e8;return _0x3e4d2c+'/'+_0x3f352e+_0x3478e4(0x218)+_0xd3643e+_0x3478e4(0x470);}exports[_0x4d97e8(0x443)]=class extends a['Disposable']{constructor(_0x490b70,_0x517c93,_0x5ce4e3,_0x55baf7,_0x109f91){const _0x6717b4=_0x4d97e8;super(),this[_0x6717b4(0x176)]=_0x490b70,this['_ws']=_0x517c93,this[_0x6717b4(0xbd)]=_0x5ce4e3,this[_0x6717b4(0x188)]=_0x55baf7,this[_0x6717b4(0x42f)]=_0x109f91;}[_0x4d97e8(0x13e)](_0x2baae1){const _0x286775=_0x4d97e8,_0x37c4e1=this['_ws'][_0x286775(0x13e)](_0x2baae1);if(!_0x37c4e1)throw new Error(_0x286775(0x121));const _0x215bac=new a[(_0x286775(0x1bf))](),_0x34f735=new v[(_0x286775(0xba))]();_0x215bac[_0x286775(0x471)](_0x37c4e1[_0x286775(0x3bb)][_0x286775(0x1c4)](_0xc1493c=>_0x34f735[_0x286775(0x120)](_0xc1493c))),_0x215bac['add'](a[_0x286775(0x257)](()=>_0x34f735[_0x286775(0x370)]()));const _0x13ef53=new v[(_0x286775(0xba))]();_0x215bac['add'](_0x37c4e1[_0x286775(0x37a)]['subscribe'](_0x291633=>_0x13ef53[_0x286775(0x120)](_0x291633))),_0x215bac[_0x286775(0x471)](a[_0x286775(0x257)](()=>_0x13ef53[_0x286775(0x370)]()));const _0x3a41ec=new v[(_0x286775(0xba))]();_0x215bac[_0x286775(0x471)](_0x37c4e1['message$']['subscribe'](_0x31708c=>{const _0x3b8f9a=_0x286775,_0x2ab26c=Rt(_0x31708c);_0x3a41ec[_0x3b8f9a(0x120)](_0x2ab26c);})),_0x215bac['add'](a[_0x286775(0x257)](()=>_0x3a41ec[_0x286775(0x370)]()));let _0x1b981e;const _0x17cc43=()=>{const _0x26d155=_0x286775;_0x13ef53[_0x26d155(0x120)](new Event('connection\x20error')),_0x34f735[_0x26d155(0x120)](new CloseEvent(_0x26d155(0xfe))),_0x1b981e['close']();};return _0x1b981e={'memberID':'','close$':_0x34f735[_0x286775(0x144)](),'error$':_0x13ef53[_0x286775(0x144)](),'open$':_0x37c4e1[_0x286775(0xd6)],'message$':_0x3a41ec['asObservable'](),'send':_0x21e9e7=>{const _0x2a6547=_0x286775;if(_0x21e9e7['cmd']===b['INGEST']){if(_0x21e9e7[_0x2a6547(0x201)]['eventID']===_[_0x2a6547(0x49e)][_0x2a6547(0x312)]){this['_submitChangeset'](_0x1b981e,_0x21e9e7[_0x2a6547(0x201)])[_0x2a6547(0x3c6)](_0x55ee0a=>{const _0x30c6c1=_0x2a6547;this[_0x30c6c1(0x188)]['error'](_0x55ee0a),_0x17cc43();});return;}if(_0x21e9e7['data'][_0x2a6547(0x445)]===_[_0x2a6547(0x49e)][_0x2a6547(0x2f3)]){const _0xa8c536=_0x21e9e7[_0x2a6547(0x201)];this[_0x2a6547(0x19f)](_0xa8c536)[_0x2a6547(0x4b7)](_0xfb72a5=>{const _0x461b7e=_0x2a6547;_0x3a41ec[_0x461b7e(0x120)]({'cmd':b[_0x461b7e(0x140)],'code':Ye['OK'],'routeKey':_0xa8c536[_0x461b7e(0x201)][_0x461b7e(0x331)],'routeType':'','data':{'eventID':_[_0x461b7e(0x49e)][_0x461b7e(0xf3)],'data':{'changesets':_0xfb72a5}}});})[_0x2a6547(0x3c6)](_0xf6eff=>{const _0x2f0483=_0x2a6547;this[_0x2f0483(0x188)]['error'](_0xf6eff),_0x17cc43();});return;}}_0x37c4e1[_0x2a6547(0x3d6)](Ot(_0x21e9e7));},'close':()=>{const _0x74bde=_0x286775;_0x37c4e1[_0x74bde(0x3fe)](),_0x215bac[_0x74bde(0x337)]();}},_0x1b981e;}async[_0x4d97e8(0x28d)](_0x399f5e,_0x174a65){const _0x320782=_0x4d97e8;var _0x9cc7f6,_0x1457d9;const {unitType:_0x4d05b4,unitID:_0x56361f,changeset:_0x35d1f8}=_0x174a65[_0x320782(0x201)],_0x567248={'unitID':_0x56361f,'memberID':_0x399f5e[_0x320782(0x2ef)],'type':_0x4d05b4,'changeset':_[_0x320782(0x3e5)](_0x35d1f8)},_0x58ae32=this[_0x320782(0xbd)][_0x320782(0x1f4)](Ct),_0x211e18=this[_0x320782(0xbd)]['getConfig'](L),_0x218944=ls((_0x1457d9=(_0x9cc7f6=_0x211e18==null?void 0x0:_0x211e18['collabSubmitChangesetUrl'])!=null?_0x9cc7f6:_0x58ae32)!=null?_0x1457d9:is,_0x4d05b4,_0x56361f);try{await this[_0x320782(0x176)][_0x320782(0x43b)](_0x218944,{'body':_0x567248});}catch(_0x12b310){throw this[_0x320782(0x188)][_0x320782(0x497)](_0x320782(0x258),_0x320782(0x464)),_0x12b310;}}async[_0x4d97e8(0x19f)](_0x404269){const _0x41443c=_0x4d97e8,{unitID:_0xb5852a,from:_0x566fd8,to:_0x295c6c,unitType:_0x598120}=_0x404269[_0x41443c(0x201)];return(await this[_0x41443c(0x42f)][_0x41443c(0xee)]({'metadata':void 0x0},{'unitID':_0xb5852a,'type':_0x598120,'from':_0x566fd8,'to':_0x295c6c}))[_0x41443c(0x3eb)];}},exports[_0x4d97e8(0x443)]=cs([ae(0x0,a[_0x4d97e8(0x13d)](w['HTTPService'])),ae(0x1,a[_0x4d97e8(0x13d)](w['WebSocketService'])),ae(0x2,a[_0x4d97e8(0x332)]),ae(0x3,a[_0x4d97e8(0xeb)]),ae(0x4,_[_0x4d97e8(0x135)])],exports[_0x4d97e8(0x443)]);const hs='collaboration_new_changeset';function _s(_0x17fa7a){const _0x4595ea=_0x4d97e8;return JSON[_0x4595ea(0x1f8)](_0x17fa7a)[_0x4595ea(0x424)];}class Xe{constructor(){const _0x4e3afa=_0x4d97e8;u(this,_0x4e3afa(0x3ca),new v['Subject']()),u(this,_0x4e3afa(0x23a),this[_0x4e3afa(0x3ca)]['asObservable']());}[_0x4d97e8(0x30e)](_0x79fb70){this['_commentUpdate$']['next'](_0x79fb70);}}var us=Object[_0x4d97e8(0x8e)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x577370,_0x1b3e78,_0x48e826,_0x472162)=>{const _0x4560b4=_0x4d97e8;for(var _0x18fdc7=_0x472162>0x1?void 0x0:_0x472162?ds(_0x1b3e78,_0x48e826):_0x1b3e78,_0x26d557=_0x577370[_0x4560b4(0x424)]-0x1,_0xf3c9b9;_0x26d557>=0x0;_0x26d557--)(_0xf3c9b9=_0x577370[_0x26d557])&&(_0x18fdc7=(_0x472162?_0xf3c9b9(_0x1b3e78,_0x48e826,_0x18fdc7):_0xf3c9b9(_0x18fdc7))||_0x18fdc7);return _0x472162&&_0x18fdc7&&us(_0x1b3e78,_0x48e826,_0x18fdc7),_0x18fdc7;},tt=(_0x2f164a,_0xaf40a9)=>(_0x4a0d2d,_0x316eaa)=>_0xaf40a9(_0x4a0d2d,_0x316eaa,_0x2f164a);let q=class extends a[_0x4d97e8(0x39c)]{constructor(_0x468e6c,_0x2f9f5c){const _0x3162fb=_0x4d97e8;super(),u(this,_0x3162fb(0x2a0),new Map()),(this[_0x3162fb(0x85)]=_0x468e6c,this[_0x3162fb(0x2cb)]=_0x2f9f5c,this['disposeWithMe'](a['toDisposable'](v[_0x3162fb(0x1c8)](this[_0x3162fb(0x85)][_0x3162fb(0x89)](a[_0x3162fb(0x262)][_0x3162fb(0x15c)])['pipe'](E[_0x3162fb(0x12b)](_0x3160f0=>_0x3160f0[_0x3162fb(0x46c)]())),this[_0x3162fb(0x85)][_0x3162fb(0x89)](a[_0x3162fb(0x262)][_0x3162fb(0x15d)])[_0x3162fb(0x488)](E[_0x3162fb(0x12b)](_0x2396d9=>_0x2396d9[_0x3162fb(0x46c)]())),this[_0x3162fb(0x85)][_0x3162fb(0x89)](a[_0x3162fb(0x262)][_0x3162fb(0x1b8)])['pipe'](E['map'](_0x53b456=>_0x53b456[_0x3162fb(0x46c)]())))['subscribe'](_0x3a6468=>this[_0x3162fb(0x17f)](_0x3a6468)))));}[_0x4d97e8(0x3a4)](_0x263261){this['_userManagerService']['setCurrentUser'](_0x263261);}[_0x4d97e8(0x238)](){const _0x104f90=_0x4d97e8;return this[_0x104f90(0x2cb)][_0x104f90(0x238)]();}[_0x4d97e8(0xb3)](_0x5739e0,_0x2f56cd){const _0x34a99e=_0x4d97e8;let _0x5ee96b=this[_0x34a99e(0x2a0)][_0x34a99e(0x491)](_0x5739e0);_0x5ee96b||(_0x5ee96b=new vs(),this[_0x34a99e(0x2a0)][_0x34a99e(0x24d)](_0x5739e0,_0x5ee96b)),_0x5ee96b[_0x34a99e(0xb3)](_0x2f56cd);}[_0x4d97e8(0x3f5)](_0x53f54b,_0x3f88ec){const _0x4a8b08=_0x4d97e8,_0x29b8b2=this['_roomMembers'][_0x4a8b08(0x491)](_0x53f54b);_0x29b8b2&&_0x29b8b2[_0x4a8b08(0x3f5)](_0x3f88ec);}[_0x4d97e8(0x3af)](_0x44671b){const _0x39b555=_0x4d97e8;return this['_roomMembers'][_0x39b555(0x491)](_0x44671b);}[_0x4d97e8(0x14a)](_0x337433,_0x52d5c7){const _0x2cd724=_0x4d97e8,_0x1e158e=this[_0x2cd724(0x2a0)][_0x2cd724(0x491)](_0x337433);if(_0x1e158e)return _0x1e158e[_0x2cd724(0x14a)](_0x52d5c7);}['_removeRoom'](_0x262a68){const _0x93f2ff=_0x4d97e8,_0xed9f9d=this[_0x93f2ff(0x2a0)][_0x93f2ff(0x491)](_0x262a68);_0xed9f9d&&(_0xed9f9d[_0x93f2ff(0x337)](),this[_0x93f2ff(0x2a0)][_0x93f2ff(0x1b2)](_0x262a68));}[_0x4d97e8(0x337)](){const _0x1d23f9=_0x4d97e8;this[_0x1d23f9(0x2a0)]['forEach'](_0x433f69=>_0x433f69[_0x1d23f9(0x337)]()),this[_0x1d23f9(0x2a0)][_0x1d23f9(0x456)]();}};q=Ss([tt(0x0,a[_0x4d97e8(0x248)]),tt(0x1,a['Inject'](a[_0x4d97e8(0x347)]))],q);class vs extends a[_0x4d97e8(0x39c)]{constructor(){const _0x2fadcf=_0x4d97e8;super(...arguments),u(this,_0x2fadcf(0xf1),new Map());}['dispose'](){const _0x19d207=_0x4d97e8;this[_0x19d207(0xf1)][_0x19d207(0x456)]();}[_0x4d97e8(0xb3)](_0x56f152){const _0x41e887=_0x4d97e8;this[_0x41e887(0xf1)][_0x41e887(0x24d)](_0x56f152[_0x41e887(0x2ef)],_0x56f152);}[_0x4d97e8(0x3f5)](_0x421fb4){const _0x126745=_0x4d97e8;this[_0x126745(0xf1)][_0x126745(0x1b2)](_0x421fb4);}[_0x4d97e8(0x14a)](_0x7079e1){const _0xa20f46=_0x4d97e8;return this[_0xa20f46(0xf1)][_0xa20f46(0x491)](_0x7079e1);}}var gs=Object[_0x4d97e8(0x8e)],ms=Object[_0x4d97e8(0x100)],fs=(_0x21fbc6,_0xced562,_0x39ce32,_0x323906)=>{for(var _0x5bdd12=_0x323906>0x1?void 0x0:_0x323906?ms(_0xced562,_0x39ce32):_0xced562,_0x34ba5f=_0x21fbc6['length']-0x1,_0x391db6;_0x34ba5f>=0x0;_0x34ba5f--)(_0x391db6=_0x21fbc6[_0x34ba5f])&&(_0x5bdd12=(_0x323906?_0x391db6(_0xced562,_0x39ce32,_0x5bdd12):_0x391db6(_0x5bdd12))||_0x5bdd12);return _0x323906&&_0x5bdd12&&gs(_0xced562,_0x39ce32,_0x5bdd12),_0x5bdd12;},V=(_0x490498,_0x5b4c04)=>(_0x4f5f41,_0xe4a065)=>_0x5b4c04(_0x4f5f41,_0xe4a065,_0x490498),H=(_0x40e0df=>(_0x40e0df[_0x40e0df[_0x4d97e8(0x143)]=0x0]=_0x4d97e8(0x143),_0x40e0df[_0x40e0df[_0x4d97e8(0x349)]=0x1]='JOINING',_0x40e0df[_0x40e0df[_0x4d97e8(0x283)]=0x2]=_0x4d97e8(0x283),_0x40e0df[_0x40e0df[_0x4d97e8(0x2ee)]=0x3]='ONLINE',_0x40e0df))(H||{});exports[_0x4d97e8(0x44c)]=class extends a['RxDisposable']{constructor(_0x1793b6,_0x13a783,_0x474cfa,_0x34e0fe,_0x7d1b4f,_0x2af84f,_0x15182d,_0x3d08b6,_0x1ccb79,_0x3e8e0e){const _0x476016=_0x4d97e8;super(),u(this,'_sessionStatus$',new v[(_0x476016(0x114))](0x0)),u(this,_0x476016(0x13f),this['_sessionStatus$']['asObservable']()),u(this,_0x476016(0x287),new v[(_0x476016(0xba))]()),u(this,_0x476016(0x3e4),this[_0x476016(0x287)][_0x476016(0x144)]()),u(this,_0x476016(0x438)),u(this,'_socketMessageSubscription'),u(this,_0x476016(0x187)),u(this,'_shouldReportTelemetry',!0x1),u(this,_0x476016(0x38f),null),(this[_0x476016(0x2e7)]=_0x1793b6,this[_0x476016(0x188)]=_0x474cfa,this[_0x476016(0x2e0)]=_0x34e0fe,this[_0x476016(0x213)]=_0x7d1b4f,this['_configService']=_0x2af84f,this[_0x476016(0x40e)]=_0x15182d,this[_0x476016(0x3a7)]=_0x3d08b6,this['_commentService']=_0x1ccb79,this[_0x476016(0x1fb)]=_0x3e8e0e,this[_0x476016(0x3ee)]=!!this['_telemetryService'],_0x13a783[_0x476016(0x488)](v['takeUntil'](this[_0x476016(0x498)]))[_0x476016(0x1c4)](_0x5dd413=>{const _0xbc24fe=_0x476016;var _0x1e1f86;typeof _0x5dd413>'u'||(this[_0xbc24fe(0x438)]=_0x5dd413,_0x5dd413?(this[_0xbc24fe(0x2ad)](_0x5dd413),this[_0xbc24fe(0x190)]=_0x5dd413['message$']['subscribe'](_0x374030=>{const _0x2d595f=_0xbc24fe;_0x374030[_0x2d595f(0x336)]===this[_0x2d595f(0x2e7)]&&this[_0x2d595f(0xb7)](_0x374030);})):(this[_0xbc24fe(0xfa)](),this[_0xbc24fe(0x412)][_0xbc24fe(0x120)](0x2),(_0x1e1f86=this[_0xbc24fe(0x190)])==null||_0x1e1f86[_0xbc24fe(0xf5)](),this[_0xbc24fe(0x190)]=null));}),this[_0x476016(0x1e2)](this['_beforeCloseService'][_0x476016(0x3ef)](()=>{const _0x26124f=_0x476016;var _0x585c4c;(_0x585c4c=this[_0x26124f(0x438)])==null||_0x585c4c[_0x26124f(0x3d6)]({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x4d97e8(0x2da)](){const _0x2308ee=_0x4d97e8;return this[_0x2308ee(0x412)]['getValue']();}[_0x4d97e8(0x346)](){const _0x591201=_0x4d97e8;var _0x765eb4,_0x491876;return(_0x491876=(_0x765eb4=this[_0x591201(0x438)])==null?void 0x0:_0x765eb4[_0x591201(0x2ef)])!=null?_0x491876:null;}['dispose'](){const _0x8028c3=_0x4d97e8;super[_0x8028c3(0x337)](),this[_0x8028c3(0x498)][_0x8028c3(0x120)](),this[_0x8028c3(0x498)][_0x8028c3(0x370)]();}['close'](){const _0x103574=_0x4d97e8;var _0x482523,_0x1b4fe5;this[_0x103574(0xfa)](),(_0x482523=this[_0x103574(0x438)])==null||_0x482523['send']({'cmd':b[_0x103574(0x461)],'data':{'roomID':this[_0x103574(0x2e7)]}}),(_0x1b4fe5=this['_socket'])==null||_0x1b4fe5[_0x103574(0x3fe)](),this['_event$'][_0x103574(0x370)](),this[_0x103574(0x412)][_0x103574(0x370)](),this['dispose']();}[_0x4d97e8(0xb7)](_0xd0139f){const _0x236a97=_0x4d97e8;_0xd0139f['cmd']===b[_0x236a97(0xd3)]?this[_0x236a97(0x2b0)](_0xd0139f):_0xd0139f[_0x236a97(0x335)]===b[_0x236a97(0x140)]&&this[_0x236a97(0xe9)](_0xd0139f);}['_joinRoom'](_0x39c422){const _0x11edf1=_0x4d97e8;this[_0x11edf1(0x412)][_0x11edf1(0x120)](0x1),_0x39c422['send']({'cmd':b[_0x11edf1(0xd3)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x11edf1(0x2e7)]}]}});}['_onJoinRoomEvent'](_0x562c46){const _0xa2cb45=_0x4d97e8;var _0x17efd6;if(_0x562c46['code']===Ye[_0xa2cb45(0x32d)]){this['_messageService']['show']({'type':X[_0xa2cb45(0xa0)][_0xa2cb45(0x25a)],'content':this[_0xa2cb45(0x40e)]['t'](_0xa2cb45(0x1ba))}),this[_0xa2cb45(0x412)][_0xa2cb45(0x120)](0x2);return;}this[_0xa2cb45(0x412)][_0xa2cb45(0x120)](0x3);const _0x1b17d9=(_0x17efd6=_0x562c46[_0xa2cb45(0x201)][_0xa2cb45(0x40c)][this[_0xa2cb45(0x2e7)]])==null?void 0x0:_0x17efd6[_0xa2cb45(0x4b5)];_0x1b17d9&&_0x1b17d9[_0xa2cb45(0x373)](_0x31361a=>this[_0xa2cb45(0x3a7)]['updateMember'](this[_0xa2cb45(0x2e7)],_0x31361a));}[_0x4d97e8(0xe9)](_0x26366d){const _0x26c0ea=_0x4d97e8;try{const _0x35631f=_0x26366d[_0x26c0ea(0x201)];switch(_0x35631f[_0x26c0ea(0x445)]){case _[_0x26c0ea(0x49e)][_0x26c0ea(0x30a)]:this[_0x26c0ea(0x483)](_0x35631f),this['_event$'][_0x26c0ea(0x120)](_0x35631f);break;case _[_0x26c0ea(0x49e)][_0x26c0ea(0xf4)]:this[_0x26c0ea(0x460)](_0x35631f),this[_0x26c0ea(0x287)][_0x26c0ea(0x120)](_0x35631f);break;case _[_0x26c0ea(0x49e)][_0x26c0ea(0x94)]:this[_0x26c0ea(0x3cf)](),this[_0x26c0ea(0x83)](),this[_0x26c0ea(0x287)][_0x26c0ea(0x120)](_0x35631f);break;case _['CollaborationEvent'][_0x26c0ea(0x9c)]:this[_0x26c0ea(0x188)][_0x26c0ea(0x497)](_0x26c0ea(0x222)+JSON[_0x26c0ea(0x1f8)](_0x35631f)),this[_0x26c0ea(0x287)]['next'](_0x35631f);break;case _[_0x26c0ea(0x49e)]['COMMENT_UPDATE']:this['_commentService']['onCommentUpdate'](_0x35631f['data']),this['_event$'][_0x26c0ea(0x120)](_0x35631f);break;default:this[_0x26c0ea(0x287)][_0x26c0ea(0x120)](_0x35631f);}}catch(_0x507203){this[_0x26c0ea(0x188)]['error'](_0x507203,_0x26366d);}}[_0x4d97e8(0x483)](_0xc7f611){const _0x5248b1=_0x4d97e8;this[_0x5248b1(0x3a7)][_0x5248b1(0xb3)](this[_0x5248b1(0x2e7)],_0xc7f611[_0x5248b1(0x201)]);}[_0x4d97e8(0x460)](_0x5a28e3){const _0x114624=_0x4d97e8;this['_memberService'][_0x114624(0x3f5)](this[_0x114624(0x2e7)],_0x5a28e3[_0x114624(0x201)][_0x114624(0x2ef)]);}async[_0x4d97e8(0x3d6)](_0x1badf7,_0x5e5e43){const _0xe66db=_0x4d97e8;if(this[_0xe66db(0x2da)]!==0x3||!this['_socket'])throw new Error(_0xe66db(0x275));try{_0x1badf7[_0xe66db(0x445)]===_[_0xe66db(0x49e)][_0xe66db(0x312)]&&(this[_0xe66db(0x308)](),this[_0xe66db(0x413)](_0x1badf7)),this[_0xe66db(0x438)][_0xe66db(0x3d6)]({'cmd':b[_0xe66db(0x43e)],'routeKey':_0x5e5e43,'routeType':'','data':_0x1badf7});}catch(_0x2746ed){this['_logService'][_0xe66db(0x497)](_0x2746ed);}}[_0x4d97e8(0x308)](){const _0x5491d4=_0x4d97e8;var _0x18c383;this[_0x5491d4(0x187)]=window[_0x5491d4(0x3c4)](()=>{const _0x2c820a=_0x5491d4;this[_0x2c820a(0x187)]=null,this[_0x2c820a(0x213)][_0x2c820a(0x207)]({'type':X['MessageType'][_0x2c820a(0x1ff)],'content':this['_localeService']['t'](_0x2c820a(0x41b))});},(_0x18c383=this['_configService'][_0x5491d4(0x1f4)](Ge))!=null?_0x18c383:ft);}['_clearCollaborationTimeoutTimer'](){const _0x3b7327=_0x4d97e8;this[_0x3b7327(0x187)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x5b069a){const _0xe0e053=_0x4d97e8;if(!this[_0xe0e053(0x3ee)])return;const {data:_0x4ca4ae}=_0x5b069a,{unitID:_0x29d287,changeset:_0x2b0724}=_0x4ca4ae,{mutations:_0x216dad,type:_0x13e5ac}=_0x2b0724;this[_0xe0e053(0x38f)]={'unitId':_0x29d287,'type':_0x13e5ac,'startTime':performance[_0xe0e053(0x19b)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x216dad)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x35f4f9=_0x4d97e8;if(this[_0x35f4f9(0x3ee)]){if(!this[_0x35f4f9(0x38f)]){this[_0x35f4f9(0x188)][_0x35f4f9(0x497)](_0x35f4f9(0x258),_0x35f4f9(0x90));return;}this[_0x35f4f9(0x38f)][_0x35f4f9(0x344)]=performance[_0x35f4f9(0x19b)](),this[_0x35f4f9(0x38f)][_0x35f4f9(0x92)]=this[_0x35f4f9(0x38f)]['stopTime']-this[_0x35f4f9(0x38f)]['startTime'],this[_0x35f4f9(0x1fb)][_0x35f4f9(0xcb)](hs,this[_0x35f4f9(0x38f)]),this[_0x35f4f9(0x38f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3152aa=_0x4d97e8;this[_0x3152aa(0x38f)]=null;}},exports[_0x4d97e8(0x44c)]=fs([V(0x2,a[_0x4d97e8(0xeb)]),V(0x3,A['IBeforeCloseService']),V(0x4,A[_0x4d97e8(0x318)]),V(0x5,a[_0x4d97e8(0x332)]),V(0x6,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)])),V(0x7,a[_0x4d97e8(0x13d)](q)),V(0x8,a[_0x4d97e8(0x13d)](Xe)),V(0x9,a[_0x4d97e8(0x444)](Yt[_0x4d97e8(0x19a)]))],exports[_0x4d97e8(0x44c)]);var Is=Object[_0x4d97e8(0x8e)],ps=Object[_0x4d97e8(0x100)],Cs=(_0x2970bf,_0x1685b4,_0x4f28cd,_0x1727a2)=>{const _0x125468=_0x4d97e8;for(var _0x3c6a5f=_0x1727a2>0x1?void 0x0:_0x1727a2?ps(_0x1685b4,_0x4f28cd):_0x1685b4,_0xc9bcfc=_0x2970bf[_0x125468(0x424)]-0x1,_0x23ffab;_0xc9bcfc>=0x0;_0xc9bcfc--)(_0x23ffab=_0x2970bf[_0xc9bcfc])&&(_0x3c6a5f=(_0x1727a2?_0x23ffab(_0x1685b4,_0x4f28cd,_0x3c6a5f):_0x23ffab(_0x3c6a5f))||_0x3c6a5f);return _0x1727a2&&_0x3c6a5f&&Is(_0x1685b4,_0x4f28cd,_0x3c6a5f),_0x3c6a5f;},Z=(_0x4df897,_0x1557fd)=>(_0x429439,_0xa07af8)=>_0x1557fd(_0x429439,_0xa07af8,_0x4df897);exports[_0x4d97e8(0x270)]=class extends a[_0x4d97e8(0x39c)]{constructor(_0x316ee6,_0x15345d,_0x2cee61,_0x297536,_0x17e038,_0x2f8e49){const _0x512a0b=_0x4d97e8;super(),u(this,_0x512a0b(0x14d),new v[(_0x512a0b(0x114))](void 0x0)),u(this,_0x512a0b(0x348),this[_0x512a0b(0x14d)]['asObservable']()),u(this,_0x512a0b(0x31f),null),u(this,_0x512a0b(0x490),new Map()),u(this,_0x512a0b(0x408),new v['BehaviorSubject'](H[_0x512a0b(0x143)])),u(this,_0x512a0b(0x1dc),this[_0x512a0b(0x408)][_0x512a0b(0x144)]()),u(this,_0x512a0b(0x2cf),!0x1),u(this,_0x512a0b(0x417)),u(this,_0x512a0b(0x323),0x0),u(this,_0x512a0b(0x10d)),u(this,'_timeoutTimer'),(this[_0x512a0b(0x2cd)]=_0x316ee6,this[_0x512a0b(0x40e)]=_0x15345d,this[_0x512a0b(0x213)]=_0x2cee61,this[_0x512a0b(0x188)]=_0x297536,this[_0x512a0b(0xbd)]=_0x17e038,this[_0x512a0b(0x10b)]=_0x2f8e49,this['_initEventListeners']());}get[_0x4d97e8(0x438)](){const _0x5c99f1=_0x4d97e8;return this[_0x5c99f1(0x14d)][_0x5c99f1(0x2af)]();}[_0x4d97e8(0x26b)](){const _0x182307=_0x4d97e8;this[_0x182307(0x330)](),this[_0x182307(0xe4)]();}['dispose'](){const _0x178898=_0x4d97e8;super[_0x178898(0x337)](),this[_0x178898(0x490)][_0x178898(0x373)](_0x534020=>_0x534020[_0x178898(0x337)]()),this['_sessions'][_0x178898(0x456)](),this['_status$'][_0x178898(0x370)]();}async[_0x4d97e8(0x1e1)](_0x241086){const _0x49a22f=_0x4d97e8;if(this['_sessions'][_0x49a22f(0x477)](_0x241086))return this[_0x49a22f(0x490)][_0x49a22f(0x491)](_0x241086);this[_0x49a22f(0x1bb)]();const _0x37e56b=this['_injector'][_0x49a22f(0x309)](exports[_0x49a22f(0x44c)],_0x241086,this['_socket$'][_0x49a22f(0x144)]());return this[_0x49a22f(0x490)][_0x49a22f(0x24d)](_0x241086,_0x37e56b),_0x37e56b;}[_0x4d97e8(0x364)](_0xb1327a){const _0x4f2d93=_0x4d97e8;var _0x2b8015;const _0x310d91=this[_0x4f2d93(0x490)][_0x4f2d93(0x491)](_0xb1327a);_0x310d91&&(this[_0x4f2d93(0x490)][_0x4f2d93(0x1b2)](_0xb1327a),_0x310d91[_0x4f2d93(0x3fe)]()),this[_0x4f2d93(0x490)][_0x4f2d93(0x26e)]||(_0x2b8015=this['_socket'])==null||_0x2b8015[_0x4f2d93(0x3fe)]();}[_0x4d97e8(0x229)](){const _0xde9653=_0x4d97e8;this[_0xde9653(0x323)]=0x0,this[_0xde9653(0x417)]!=null&&(clearTimeout(this[_0xde9653(0x417)]),this[_0xde9653(0x417)]=null),this['_tryReconnect']();}[_0x4d97e8(0x3fc)](){const _0x39a006=_0x4d97e8;var _0x448926,_0x2db6b6;const _0x1899a2=this[_0x39a006(0xbd)][_0x39a006(0x1f4)](gt),_0x55ccbe=this['_configService'][_0x39a006(0x1f4)](L),_0x3b1943=(_0x2db6b6=(_0x448926=_0x55ccbe==null?void 0x0:_0x55ccbe['collabWebSocketUrl'])!=null?_0x448926:_0x1899a2)!=null?_0x2db6b6:Zt,_0xb8f686=this['_socketService'][_0x39a006(0x13e)](_0x3b1943);return this[_0x39a006(0x31f)]=_0xb8f686,_0xb8f686;}[_0x4d97e8(0x1bb)](){const _0x1916b5=_0x4d97e8;var _0x492899,_0x4c8174;try{const _0x3c9f42=(_0x4c8174=(_0x492899=this['_socket'])!=null?_0x492899:this[_0x1916b5(0x31f)])!=null?_0x4c8174:this[_0x1916b5(0x3fc)]();if(_0x3c9f42){const _0x1078b1=_0x3c9f42[_0x1916b5(0x3d6)];_0x3c9f42[_0x1916b5(0x3d6)]=_0x4f2fd1=>(this[_0x1916b5(0x2ab)](),_0x1078b1[_0x1916b5(0x37d)](_0x3c9f42,[_0x4f2fd1])),_0x3c9f42[_0x1916b5(0x41c)][_0x1916b5(0x1c4)](_0x3a1e1e=>this[_0x1916b5(0x3b0)](_0x3c9f42,_0x3a1e1e)),_0x3c9f42['error$'][_0x1916b5(0x488)](E['take'](0x1))[_0x1916b5(0x1c4)](_0xf06341=>this[_0x1916b5(0x188)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0xf06341)),_0x3c9f42['open$'][_0x1916b5(0x488)](E[_0x1916b5(0x463)](0x1))[_0x1916b5(0x1c4)](()=>{const _0xb1437f=_0x1916b5;this[_0xb1437f(0x386)](_0x3c9f42);}),_0x3c9f42[_0x1916b5(0x3bb)][_0x1916b5(0x488)](E['take'](0x1))[_0x1916b5(0x1c4)](_0x49b101=>{const _0x3289cf=_0x1916b5;this[_0x3289cf(0x188)]['debug'](_0x3289cf(0x22d),_0x3289cf(0x340),_0x49b101),this[_0x3289cf(0x128)]();});}}catch(_0x1db7f3){this['_logService']['error'](_0x1db7f3),this[_0x1916b5(0x128)]();}}[_0x4d97e8(0x386)](_0x3764ae){const _0x46f0ed=_0x4d97e8;this[_0x46f0ed(0x188)][_0x46f0ed(0x403)]('[CollaborationSessionService]','socket\x20open.'),_0x3764ae['send']({'cmd':b[_0x46f0ed(0x208)]}),this[_0x46f0ed(0x2ab)]();}['_listenToOfflineEvent'](){const _0x2320b0=_0x4d97e8;window[_0x2320b0(0x226)](_0x2320b0(0x27a),()=>this['_onOffline']());}[_0x4d97e8(0x48f)](){const _0x4626a6=_0x4d97e8;this[_0x4626a6(0x2cf)]=!0x1,this['_candidateSocket']=null,this['_status$']['next'](H[_0x4626a6(0x283)]),this[_0x4626a6(0x14d)][_0x4626a6(0x120)](null),this[_0x4626a6(0x437)](),this[_0x4626a6(0x369)]();}[_0x4d97e8(0x128)](){const _0x25660d=_0x4d97e8;var _0x497e1a;this[_0x25660d(0x48f)](),this[_0x25660d(0x323)]<((_0x497e1a=this['_configService'][_0x25660d(0x1f4)](It))!=null?_0x497e1a:ts)?(this[_0x25660d(0x213)][_0x25660d(0x207)]({'key':_0x25660d(0x116),'type':X['MessageType'][_0x25660d(0x25a)],'content':this[_0x25660d(0x40e)]['t'](_0x25660d(0x11e))}),this['_tryReconnect']()):this['_messageService'][_0x25660d(0x207)]({'key':_0x25660d(0x116),'type':X[_0x25660d(0xa0)][_0x25660d(0x1ff)],'content':this[_0x25660d(0x40e)]['t'](_0x25660d(0x42d))});}['_listenToOnlineEvent'](){const _0x13e5c7=_0x4d97e8,_0x2486e8=()=>{const _0x21a583=_0x4a0f;this[_0x21a583(0x438)]||this[_0x21a583(0x229)]();},_0x51ade3=()=>{const _0x54eb4b=_0x4a0f;this[_0x54eb4b(0x438)]||document['visibilityState']===_0x54eb4b(0xab)||this[_0x54eb4b(0x229)]();};window['addEventListener'](_0x13e5c7(0x186),_0x2486e8),document[_0x13e5c7(0x226)]('visibilitychange',_0x51ade3);}[_0x4d97e8(0x3b5)](){const _0x1ba8a3=_0x4d97e8;var _0x5f2fd0;const _0x589548=this['_retryCount'],_0x33a542=this['_configService'][_0x1ba8a3(0x1f4)](L),_0x58ca36=_0x589548===0x0?0x0:((_0x5f2fd0=_0x33a542==null?void 0x0:_0x33a542[_0x1ba8a3(0x2d1)])!=null?_0x5f2fd0:es)*0x2**_0x589548;this[_0x1ba8a3(0x417)]=window[_0x1ba8a3(0x3c4)](()=>{const _0x30cc3a=_0x1ba8a3;clearTimeout(this[_0x30cc3a(0x417)]),this[_0x30cc3a(0x417)]=null,this[_0x30cc3a(0x1bb)]();},_0x58ca36),this['_retryCount']+=0x1;}[_0x4d97e8(0x3b0)](_0x4663f5,_0x19d356){const _0x491e01=_0x4d97e8,{cmd:_0x5da306}=_0x19d356;_0x5da306===b[_0x491e01(0x208)]&&!this[_0x491e01(0x2cf)]&&(_0x4663f5[_0x491e01(0x2ef)]=_0x19d356[_0x491e01(0x201)][_0x491e01(0x2ef)],this['_socket$']['next'](_0x4663f5),this['_status$']['next'](H['ONLINE']),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x5da306===b[_0x491e01(0x341)]&&this[_0x491e01(0x437)](),this[_0x491e01(0x2ab)]();}[_0x4d97e8(0x2ab)](){const _0x507fc5=_0x4d97e8;var _0x1810fb;this[_0x507fc5(0x369)](),this[_0x507fc5(0x10d)]=window[_0x507fc5(0x3c4)](()=>this[_0x507fc5(0x4a6)](),(_0x1810fb=this[_0x507fc5(0xbd)][_0x507fc5(0x1f4)](mt))!=null?_0x1810fb:Qt);}['_sendHeartbeat'](){const _0x396379=_0x4d97e8;this[_0x396379(0x438)][_0x396379(0x3d6)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x4d97e8(0x45f)](){const _0x443a69=_0x4d97e8;var _0x51f9ed;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x443a69(0x128)](),(_0x51f9ed=this[_0x443a69(0xbd)][_0x443a69(0x1f4)](Ge))!=null?_0x51f9ed:ft);}[_0x4d97e8(0x369)](){const _0x2a0700=_0x4d97e8;this[_0x2a0700(0x10d)]!=null&&(clearTimeout(this[_0x2a0700(0x10d)]),this[_0x2a0700(0x10d)]=null);}[_0x4d97e8(0x437)](){const _0x47fc91=_0x4d97e8;this[_0x47fc91(0x29a)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x47fc91(0x29a)]=null);}},exports['CollaborationSessionService']=Cs([Z(0x0,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Z(0x1,a['Inject'](a[_0x4d97e8(0x10a)])),Z(0x2,A[_0x4d97e8(0x318)]),Z(0x3,a[_0x4d97e8(0xeb)]),Z(0x4,a[_0x4d97e8(0x332)]),Z(0x5,Ke)],exports[_0x4d97e8(0x270)]);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x4d97e8(0x29b)]((Ue+0x100)['toString'](0x10)[_0x4d97e8(0x1ac)](0x1));function Es(_0x366cb3,_0xf197bf=0x0){const _0x3d1332=_0x4d97e8;return(O[_0x366cb3[_0xf197bf+0x0]]+O[_0x366cb3[_0xf197bf+0x1]]+O[_0x366cb3[_0xf197bf+0x2]]+O[_0x366cb3[_0xf197bf+0x3]]+'-'+O[_0x366cb3[_0xf197bf+0x4]]+O[_0x366cb3[_0xf197bf+0x5]]+'-'+O[_0x366cb3[_0xf197bf+0x6]]+O[_0x366cb3[_0xf197bf+0x7]]+'-'+O[_0x366cb3[_0xf197bf+0x8]]+O[_0x366cb3[_0xf197bf+0x9]]+'-'+O[_0x366cb3[_0xf197bf+0xa]]+O[_0x366cb3[_0xf197bf+0xb]]+O[_0x366cb3[_0xf197bf+0xc]]+O[_0x366cb3[_0xf197bf+0xd]]+O[_0x366cb3[_0xf197bf+0xe]]+O[_0x366cb3[_0xf197bf+0xf]])[_0x3d1332(0x203)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x558079=_0x4d97e8;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x558079(0x314)]&&crypto[_0x558079(0x314)][_0x558079(0xb5)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x4d97e8(0x49a)]&&crypto['randomUUID'][_0x4d97e8(0xb5)](crypto);const st={'randomUUID':Rs};function Os(_0x227936,_0x216b45,_0x41f16f){const _0x2c4c87=_0x4d97e8;if(st[_0x2c4c87(0x49a)]&&!_0x216b45&&!_0x227936)return st['randomUUID']();_0x227936=_0x227936||{};var _0x1ffa30=_0x227936[_0x2c4c87(0x2a2)]||(_0x227936['rng']||Ts)();return _0x1ffa30[0x6]=_0x1ffa30[0x6]&0xf|0x40,_0x1ffa30[0x8]=_0x1ffa30[0x8]&0x3f|0x80,Es(_0x1ffa30);}var Ds=Object[_0x4d97e8(0x8e)],ys=Object[_0x4d97e8(0x100)],Us=(_0x490975,_0x192004,_0x5b211c,_0x36bcdd)=>{const _0x1f03cf=_0x4d97e8;for(var _0x595479=_0x36bcdd>0x1?void 0x0:_0x36bcdd?ys(_0x192004,_0x5b211c):_0x192004,_0x3e80c2=_0x490975[_0x1f03cf(0x424)]-0x1,_0x304e6f;_0x3e80c2>=0x0;_0x3e80c2--)(_0x304e6f=_0x490975[_0x3e80c2])&&(_0x595479=(_0x36bcdd?_0x304e6f(_0x192004,_0x5b211c,_0x595479):_0x304e6f(_0x595479))||_0x595479);return _0x36bcdd&&_0x595479&&Ds(_0x192004,_0x5b211c,_0x595479),_0x595479;},Pe=(_0x2d40d8,_0x5c3806)=>(_0x29d949,_0x3ecbae)=>_0x5c3806(_0x29d949,_0x3ecbae,_0x2d40d8);let fe=class{constructor(_0x166589,_0x2a9b0c,_0x3f00eb){const _0x32bf79=_0x4d97e8;this[_0x32bf79(0x2cd)]=_0x166589,this['_transformService']=_0x2a9b0c,this[_0x32bf79(0x404)]=_0x3f00eb;}[_0x4d97e8(0x3f1)](_0x24edca){const _0x1e5190=_0x4d97e8;this[_0x1e5190(0x87)](_0x24edca),this[_0x1e5190(0x3da)](_0x24edca);}[_0x4d97e8(0x23b)](_0x3eca1d){const _0x5d7c21=_0x4d97e8,{unitID:_0x29e635}=_0x3eca1d,_0x3be998=this[_0x5d7c21(0x404)][_0x5d7c21(0x43c)](_0x29e635)['with'](N[_0x5d7c21(0x130)]),{redoCache:_0x2e2afe}=_0x3be998[_0x5d7c21(0x95)]();if(_0x2e2afe[_0x5d7c21(0x424)]===0x0)return _0x3eca1d;let _0x11e2d3=a[_0x5d7c21(0x378)]['deepClone'](_0x3eca1d[_0x5d7c21(0x20f)][0x0]);for(let _0x5be557=0x0;_0x5be557<_0x2e2afe[_0x5d7c21(0x424)];_0x5be557++){const _0x3dd401={'id':_0x5d7c21(0x242),'params':{..._0x2e2afe[_0x5be557]}},_0x34577b=this['_transformService'][_0x5d7c21(0x84)](_0x11e2d3,_0x3dd401,!0x1);if(_['isTransformMutationFailure'](_0x34577b))throw _0x34577b[_0x5d7c21(0x497)];_0x11e2d3=_0x34577b['m1Prime'];}return{...a[_0x5d7c21(0x378)][_0x5d7c21(0x1a6)](_0x3eca1d),'mutations':[_0x11e2d3]};}[_0x4d97e8(0x87)](_0x12e662){const _0x2a40bb=_0x4d97e8,{unitID:_0x39a8f5}=_0x12e662,_0x283a6f=this[_0x2a40bb(0x404)]['getRenderById'](_0x39a8f5)[_0x2a40bb(0x36a)](N[_0x2a40bb(0x130)]),{undoCache:_0x27b191,redoCache:_0x2bc72d}=_0x283a6f[_0x2a40bb(0x95)]();if(_0x27b191[_0x2a40bb(0x424)]===0x0||_0x2bc72d[_0x2a40bb(0x424)]===0x0)return;const _0x3c77b3=[],_0x3d40bd=[];let _0x13a4f7=a[_0x2a40bb(0x378)][_0x2a40bb(0x1a6)](_0x12e662[_0x2a40bb(0x20f)][0x0]),_0x530756=a[_0x2a40bb(0x378)][_0x2a40bb(0x1a6)](_0x12e662['mutations'][0x0]);for(let _0x19fb3c=_0x27b191[_0x2a40bb(0x424)]-0x1;_0x19fb3c>=0x0;_0x19fb3c--){const _0x11ce70={'id':'doc.mutation.rich-text-editing','params':{..._0x27b191[_0x19fb3c]}},_0x317649={'id':_0x2a40bb(0x242),'params':{..._0x2bc72d[_0x19fb3c]}},_0x6bc8ec=this[_0x2a40bb(0x165)][_0x2a40bb(0x84)](_0x13a4f7,_0x11ce70,!0x1),_0x3f9983=this[_0x2a40bb(0x165)][_0x2a40bb(0x84)](_0x530756,_0x317649,!0x1);if(_['isTransformMutationFailure'](_0x6bc8ec))throw _0x6bc8ec['error'];if(_[_0x2a40bb(0x20c)](_0x3f9983))throw _0x3f9983[_0x2a40bb(0x497)];_0x3c77b3[_0x2a40bb(0x40a)](_0x6bc8ec[_0x2a40bb(0x1a9)][_0x2a40bb(0x141)]),_0x3d40bd[_0x2a40bb(0x40a)](_0x3f9983['m2Prime'][_0x2a40bb(0x141)]),_0x13a4f7=_0x6bc8ec[_0x2a40bb(0x215)],_0x530756=_0x3f9983[_0x2a40bb(0x215)];}_0x283a6f[_0x2a40bb(0x2a1)]({'undoCache':_0x3c77b3,'redoCache':_0x3d40bd});}['_transformPreviousActiveRange'](_0x577523){const _0x2084fd=_0x4d97e8,{unitID:_0x1c9488}=_0x577523,_0x255b33=this[_0x2084fd(0x404)][_0x2084fd(0x43c)](_0x1c9488)[_0x2084fd(0x36a)](N[_0x2084fd(0x130)]),_0x52b70f=_0x255b33[_0x2084fd(0x426)]();if(_0x52b70f==null)return;const _0x1f6e28=[{'id':_0x2084fd(0x242),'params':{'unitId':_0x577523['unitID'],'actions':null,'textRanges':[_0x52b70f]}}],_0x3cb1d0=this[_0x2084fd(0x165)][_0x2084fd(0x2a5)](_0x577523,_0x1f6e28);if(!_['isTransformMutationsWithChangesetSuccess'](_0x3cb1d0))throw _0x3cb1d0[_0x2084fd(0x497)];const _0x4cac13=_0x3cb1d0[_0x2084fd(0x1a9)][0x0][_0x2084fd(0x141)][_0x2084fd(0x339)];Array[_0x2084fd(0x38a)](_0x4cac13)&&_0x4cac13[_0x2084fd(0x424)]&&_0x255b33[_0x2084fd(0x3f7)](_0x4cac13[0x0]);}};fe=Us([Pe(0x0,a[_0x4d97e8(0x13d)](a['Injector'])),Pe(0x1,_['ITransformService']),Pe(0x2,D['IRenderManagerService'])],fe);var Ps=Object[_0x4d97e8(0x8e)],ws=Object[_0x4d97e8(0x100)],Ns=(_0xddec95,_0x3b1977,_0x25d677,_0x203e8e)=>{const _0x3671fe=_0x4d97e8;for(var _0x525f75=_0x203e8e>0x1?void 0x0:_0x203e8e?ws(_0x3b1977,_0x25d677):_0x3b1977,_0x58a943=_0xddec95[_0x3671fe(0x424)]-0x1,_0x493f04;_0x58a943>=0x0;_0x58a943--)(_0x493f04=_0xddec95[_0x58a943])&&(_0x525f75=(_0x203e8e?_0x493f04(_0x3b1977,_0x25d677,_0x525f75):_0x493f04(_0x525f75))||_0x525f75);return _0x203e8e&&_0x525f75&&Ps(_0x3b1977,_0x25d677,_0x525f75),_0x525f75;},ce=(_0x5cf1bd,_0x54f2b0)=>(_0x433db7,_0x471f22)=>_0x54f2b0(_0x433db7,_0x471f22,_0x5cf1bd);exports[_0x4d97e8(0x18f)]=class extends a['Disposable']{constructor(_0x51edfd,_0x54fb4b,_0x1a88f7,_0x1e693a,_0x3267d4){const _0x47a631=_0x4d97e8;super(),u(this,'_cachedData',new Map()),u(this,_0x47a631(0x96),new Map()),u(this,_0x47a631(0xe5),!0x1),(this[_0x47a631(0xbd)]=_0x51edfd,this[_0x47a631(0x3dd)]=_0x54fb4b,this['_beforeCloseService']=_0x1a88f7,this['_localeService']=_0x1e693a,this[_0x47a631(0x205)]=_0x3267d4,this['_setupBeforeClosingHandler']());}[_0x4d97e8(0xf7)](){this['_disabled']=!0x0;}[_0x4d97e8(0x25c)](){this['_disabled']=!0x1;}['dispose'](){const _0x5d7d8f=_0x4d97e8;this[_0x5d7d8f(0x299)]()[_0x5d7d8f(0x4b7)](()=>super[_0x5d7d8f(0x337)]());}async[_0x4d97e8(0x35b)](_0x25ca89){const _0x2c521d=_0x4d97e8;return this[_0x2c521d(0xe5)]?null:this['_localStorageService'][_0x2c521d(0x469)](it(_0x25ca89));}async[_0x4d97e8(0x4b4)](_0x46ad3e,_0x2e9dd1){return!!this['_localStorageService']['setItem'](_0x46ad3e,_0x2e9dd1);}[_0x4d97e8(0xcf)](_0x3ba49b,_0x29fecc,_0x1dca30,_0x28860b){const _0x37f546=_0x4d97e8,_0x14c6ae=this[_0x37f546(0x205)][_0x37f546(0x402)](_0x3ba49b);this[_0x37f546(0x478)][_0x37f546(0x24d)](_0x3ba49b,{'unitID':_0x3ba49b,'type':_0x29fecc,'awaitingChangeset':_0x1dca30,'mutations':_0x28860b,'rev':_0x14c6ae}),this[_0x37f546(0x96)]['has'](_0x3ba49b)||this['_scheduleSaving'](_0x3ba49b);}['_scheduleSaving'](_0x1cfb5b){const _0x40611e=_0x4d97e8,_0x5dae76=this[_0x40611e(0x4a9)]();_0x5dae76===0x0?this[_0x40611e(0x112)](_0x1cfb5b):this[_0x40611e(0x96)][_0x40611e(0x24d)](_0x1cfb5b,setTimeout(()=>this[_0x40611e(0x112)](_0x1cfb5b),_0x5dae76));}[_0x4d97e8(0x4a9)](){const _0x4f6a46=_0x4d97e8;var _0xb5e7ce;return(_0xb5e7ce=this[_0x4f6a46(0xbd)]['getConfig'](pt))!=null?_0xb5e7ce:ss;}[_0x4d97e8(0x112)](_0x46f413){const _0x31c655=_0x4d97e8,_0x26bc29=this[_0x31c655(0x96)][_0x31c655(0x491)](_0x46f413);return _0x26bc29!==void 0x0&&window[_0x31c655(0x3a3)](_0x26bc29),this[_0x31c655(0x3dd)][_0x31c655(0x36e)](it(_0x46f413),this['_cachedData'][_0x31c655(0x491)](_0x46f413))[_0x31c655(0x4b7)](()=>this[_0x31c655(0x96)][_0x31c655(0x1b2)](_0x46f413));}async[_0x4d97e8(0x299)](){const _0x316047=_0x4d97e8,_0x5233a7=[];this['_saveTaskMap'][_0x316047(0x373)]((_0x5980b5,_0x2f6cb3)=>{const _0x3a8b3a=_0x316047;window['clearTimeout'](_0x5980b5),_0x5233a7[_0x3a8b3a(0x29b)](this[_0x3a8b3a(0x112)](_0x2f6cb3)[_0x3a8b3a(0x4b7)](()=>{const _0x578400=_0x3a8b3a;this[_0x578400(0x96)][_0x578400(0x1b2)](_0x2f6cb3);}));}),await Promise['all'](_0x5233a7);}['_setupBeforeClosingHandler'](){const _0xb17a47=_0x4d97e8;this[_0xb17a47(0x1e2)](this[_0xb17a47(0x2e0)]['registerBeforeClose'](()=>{const _0x3c2365=_0xb17a47;if(this[_0x3c2365(0x96)][_0x3c2365(0x26e)])return this[_0x3c2365(0x40e)]['t'](_0x3c2365(0x3d5));}));}},exports[_0x4d97e8(0x18f)]=Ns([ce(0x0,a[_0x4d97e8(0x332)]),ce(0x1,a[_0x4d97e8(0x286)]),ce(0x2,A[_0x4d97e8(0xca)]),ce(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)])),ce(0x4,a[_0x4d97e8(0x13d)](_['RevisionService']))],exports['LocalCacheService']);function it(_0x40221d){const _0x37e368=_0x4d97e8;return _0x37e368(0xdd)+_0x40221d;}var Ms=Object[_0x4d97e8(0x8e)],As=Object['getOwnPropertyDescriptor'],Ls=(_0x5e1edc,_0x4b51d7,_0xa64206,_0x2024c2)=>{const _0x25505c=_0x4d97e8;for(var _0x3da7e3=_0x2024c2>0x1?void 0x0:_0x2024c2?As(_0x4b51d7,_0xa64206):_0x4b51d7,_0x4d3d70=_0x5e1edc[_0x25505c(0x424)]-0x1,_0x58d7bf;_0x4d3d70>=0x0;_0x4d3d70--)(_0x58d7bf=_0x5e1edc[_0x4d3d70])&&(_0x3da7e3=(_0x2024c2?_0x58d7bf(_0x4b51d7,_0xa64206,_0x3da7e3):_0x58d7bf(_0x3da7e3))||_0x3da7e3);return _0x2024c2&&_0x3da7e3&&Ms(_0x4b51d7,_0xa64206,_0x3da7e3),_0x3da7e3;},we=(_0x550623,_0x5f38e1)=>(_0x480a22,_0x745150)=>_0x5f38e1(_0x480a22,_0x745150,_0x550623);function js(_0x36bee2){const _0x2fa54b=_0x4d97e8,{unitID:_0xde5afb,mutations:_0x2a6993}=_0x36bee2;return{'unitId':_0xde5afb,'subUnitId':_0x2a6993[0x0][_0x2fa54b(0x141)][_0x2fa54b(0xa3)]};}let Ie=class{constructor(_0x4fbd00,_0x488501,_0x5453ad){const _0x9b97f=_0x4d97e8;this['_injector']=_0x4fbd00,this[_0x9b97f(0x165)]=_0x488501,this[_0x9b97f(0x368)]=_0x5453ad;}[_0x4d97e8(0x117)](_0x124db0){const _0x321729=_0x4d97e8;var _0x511dd5,_0x2bfeac,_0x19ced9,_0x378847;const _0x1a37c1=this[_0x321729(0x2cd)][_0x321729(0x491)](C[_0x321729(0x1e8)]),{unitId:_0x327ee5,subUnitId:_0x568167}=js(_0x124db0),_0x5b7f37=_0x1a37c1['getWorkbookSelections'](_0x327ee5)[_0x321729(0x12e)](),_0x16542a=(_0x2bfeac=(_0x511dd5=this[_0x321729(0x368)][_0x321729(0x47c)](_0x327ee5))==null?void 0x0:_0x511dd5[_0x321729(0x1fe)]())==null?void 0x0:_0x2bfeac[_0x321729(0x436)]();if(_0x5b7f37[_0x321729(0x424)]===0x0||!_0x327ee5||!_0x568167)return;const _0x346507=[{'id':C[_0x321729(0x420)]['id'],'params':{'unitId':_0x327ee5,'subUnitId':_0x16542a,'selections':a['Tools'][_0x321729(0x1a6)](_0x5b7f37)}}],_0xdd16db=this[_0x321729(0x165)][_0x321729(0x2a5)](_0x124db0,_0x346507);if(!_['isTransformMutationsWithChangesetSuccess'](_0xdd16db))throw _0xdd16db[_0x321729(0x497)];const _0x58a2e7=(_0x378847=(_0x19ced9=_0xdd16db[_0x321729(0x1a9)][0x0])==null?void 0x0:_0x19ced9[_0x321729(0x141)])==null?void 0x0:_0x378847[_0x321729(0x44e)];if(Array['isArray'](_0x58a2e7)&&_0x58a2e7[_0x321729(0x424)]){if(_0x58a2e7['length']===_0x346507[0x0]['params']['selections'][_0x321729(0x424)]&&_0x58a2e7[_0x321729(0x145)]((_0x1c3445,_0x16d85f)=>a['Rectangle'][_0x321729(0x93)](_0x1c3445['range'],_0x346507[0x0]['params']['selections'][_0x16d85f][_0x321729(0x3b9)])))return;this[_0x321729(0x2cd)]['get'](a[_0x321729(0x433)])['executeCommand'](C[_0x321729(0x420)]['id'],{'unitId':_0x327ee5,'subUnitId':_0x16542a,'selections':_0x58a2e7});}}};Ie=Ls([we(0x0,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),we(0x1,_[_0x4d97e8(0x18d)]),we(0x2,a['IUniverInstanceService'])],Ie);const Re=a[_0x4d97e8(0x290)](_0x4d97e8(0x48e));var Dt=(_0x1f7962=>(_0x1f7962[_0x1f7962[_0x4d97e8(0x1f1)]=0x0]=_0x4d97e8(0x1f1),_0x1f7962[_0x1f7962[_0x4d97e8(0x3a8)]=0x1]=_0x4d97e8(0x3a8),_0x1f7962))(Dt||{});const nt=0x7530,rt=_0x4d97e8(0xb4);class $s extends a[_0x4d97e8(0x39c)]{constructor(){const _0x2e0357=_0x4d97e8;super(),u(this,_0x2e0357(0x1cf),a[_0x2e0357(0x378)][_0x2e0357(0x423)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x2e0357(0x2aa),new Map()),u(this,_0x2e0357(0x184),null),u(this,_0x2e0357(0x3c2),new Map()),u(this,_0x2e0357(0x455),new Map()),this[_0x2e0357(0x27e)]();}[_0x4d97e8(0x337)](){const _0x50622d=_0x4d97e8;super['dispose'](),this[_0x50622d(0x3c2)][_0x50622d(0x373)]((_0x436f91,_0x33c234)=>this[_0x50622d(0x98)](_0x33c234)),this[_0x50622d(0x184)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4d97e8(0x388)](_0x3a6c0a){const _0x59f415=_0x4d97e8;return this[_0x59f415(0x391)](_0x3a6c0a)['pipe'](v[_0x59f415(0x164)]());}['editingUnit'](_0x35a69c){const _0x532371=_0x4d97e8;this[_0x532371(0x3bf)][_0x532371(0x26e)]===0x0&&this[_0x532371(0x1c9)](),this[_0x532371(0x3bf)][_0x532371(0x471)](_0x35a69c),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x35a69c],'isForwarded':!0x1});}[_0x4d97e8(0x447)](_0x3ba2d5){const _0x5f0c9d=_0x4d97e8;this[_0x5f0c9d(0x3bf)]['delete'](_0x3ba2d5),this[_0x5f0c9d(0x3bf)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x5f0c9d(0x301)](this['_heartbeatTimer']);}[_0x4d97e8(0x27e)](){const _0x1d1785=_0x4d97e8;this[_0x1d1785(0x1e2)](a['toDisposable'](v[_0x1d1785(0x99)](window,_0x1d1785(0x25b))[_0x1d1785(0x1c4)](_0x23c359=>{const _0x48d0da=_0x1d1785;if(_0x23c359[_0x48d0da(0x427)]!==rt||!_0x23c359[_0x48d0da(0xfc)])return;const _0x36e322=JSON[_0x48d0da(0x234)](_0x23c359[_0x48d0da(0xfc)]);this['_handleEvent'](_0x36e322);}))),window[_0x1d1785(0x226)]('unload',()=>this[_0x1d1785(0x362)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1d1785(0x3bf)])}));}['_handleEvent'](_0x10e05b){const _0x22ff69=_0x4d97e8;switch(_0x10e05b[_0x22ff69(0x366)]){case 0x0:this[_0x22ff69(0x3c0)](_0x10e05b);break;case 0x1:this[_0x22ff69(0x32a)](_0x10e05b);break;case 0x2:this[_0x22ff69(0x1cc)](_0x10e05b);break;}}[_0x4d97e8(0x3c0)](_0x76e61c){const _0x38380f=_0x4d97e8,{unitIDs:_0xaad4ef,memberID:_0x107094,isForwarded:_0x3b9c7b}=_0x76e61c;_0xaad4ef['forEach'](_0x45ceab=>{const _0x939b52=_0x4a0f;if(!_0x3b9c7b&&this[_0x939b52(0x2aa)][_0x939b52(0x477)](_0x45ceab)&&this['_ensureSubject'](_0x45ceab)[_0x939b52(0x120)](0x1),!this[_0x939b52(0x2aa)][_0x939b52(0x477)](_0x45ceab)||!this[_0x939b52(0x2aa)][_0x939b52(0x491)](_0x45ceab)['has'](_0x107094)){const _0x2c904e=this[_0x939b52(0x2aa)][_0x939b52(0x491)](_0x45ceab)||new Set();_0x2c904e[_0x939b52(0x471)](_0x107094),this[_0x939b52(0x2aa)][_0x939b52(0x24d)](_0x45ceab,_0x2c904e),this[_0x939b52(0x166)](_0x107094);}}),_0x3b9c7b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x38380f(0x3bf)]],'isForwarded':!0x0});}[_0x4d97e8(0x166)](_0x328506){const _0x3140b1=_0x4d97e8;this['_removeClearOtherTimer'](_0x328506);const _0x40c7c7=window['setTimeout'](()=>{const _0x5aec6a=_0x4a0f;this[_0x5aec6a(0x2aa)][_0x5aec6a(0x373)](_0x578c0c=>{const _0x1a1b85=_0x5aec6a;_0x578c0c[_0x1a1b85(0x1b2)](_0x328506);});},nt*0x2);this[_0x3140b1(0x3c2)]['set'](_0x328506,_0x40c7c7);}[_0x4d97e8(0x98)](_0x406061){const _0x37bbb8=_0x4d97e8;if(this[_0x37bbb8(0x3c2)][_0x37bbb8(0x477)](_0x406061)){const _0x24c54f=this['_clearOtherTimers']['get'](_0x406061);_0x24c54f&&window[_0x37bbb8(0x3a3)](_0x24c54f),this[_0x37bbb8(0x3c2)][_0x37bbb8(0x24d)](_0x406061,null);}}[_0x4d97e8(0x32a)](_0x474d88){const _0x2b48c7=_0x4d97e8,{memberID:_0x1ec0c7,unitIDs:_0x57e1bf}=_0x474d88;_0x57e1bf['forEach'](_0x539209=>{const _0x533824=_0x4a0f;var _0xcbe2b3;const _0x5366a7=this['_unitOnClients'][_0x533824(0x491)](_0x539209);_0x5366a7&&(_0x5366a7[_0x533824(0x1b2)](_0x1ec0c7),(_0xcbe2b3=this[_0x533824(0x391)](_0x539209))==null||_0xcbe2b3[_0x533824(0x120)](_0x5366a7[_0x533824(0x26e)]===0x0?0x0:0x1));}),this[_0x2b48c7(0x98)](_0x1ec0c7);}[_0x4d97e8(0x1cc)](_0x2bc049){const _0x4a533e=_0x4d97e8;this[_0x4a533e(0x166)](_0x2bc049[_0x4a533e(0x2ef)]);}['_send'](_0xda1019){const _0x1059e9=_0x4d97e8;localStorage['setItem'](rt,JSON[_0x1059e9(0x1f8)](_0xda1019));}[_0x4d97e8(0x1c9)](){const _0x4a3614=_0x4d97e8;this['_heartbeatTimer']=window[_0x4a3614(0x356)](()=>{const _0x25d999=_0x4a3614;this[_0x25d999(0x362)]({'type':0x2,'memberID':this[_0x25d999(0x1cf)]});},nt);}[_0x4d97e8(0x391)](_0x55d764){const _0x5557f6=_0x4d97e8;return this['_unitStatus'][_0x5557f6(0x477)](_0x55d764)||this[_0x5557f6(0x455)]['set'](_0x55d764,new v['BehaviorSubject'](0x0)),this[_0x5557f6(0x455)][_0x5557f6(0x491)](_0x55d764);}}function yt(_0x26cf6f){const _0x289a1c=_0x4d97e8;let _0x3ed7e8='';for(const _0x26c2a3 of _0x26cf6f){const {startOffset:_0x2d3f3a,endOffset:_0x281904,isActive:_0xe38fd7}=_0x26c2a3;_0x3ed7e8[_0x289a1c(0x424)]&&(_0x3ed7e8+=','),_0x3ed7e8+=_0x2d3f3a+':'+_0x281904+':'+(_0xe38fd7?'1':'0');}return _0x3ed7e8;}function Hs(_0x4862b1){const _0x1a8ae7=_0x4d97e8,_0x438ccd=_0x4862b1[_0x1a8ae7(0x146)](','),_0x4ac6ce=[];for(const _0x596212 of _0x438ccd){const [_0x50722d,_0x4d0444,_0x45e8cb]=_0x596212['split'](':');_0x4ac6ce[_0x1a8ae7(0x29b)]({'startOffset':Number(_0x50722d),'endOffset':Number(_0x4d0444),'collapsed':_0x50722d===_0x4d0444,'isActive':_0x45e8cb==='1'});}return _0x4ac6ce[_0x1a8ae7(0x291)](_0x4d4042=>_0x4d4042[_0x1a8ae7(0x272)])||(_0x4ac6ce[0x0]['isActive']=!0x0),_0x4ac6ce;}class qe extends a['RxDisposable']{constructor(){const _0x440149=_0x4d97e8;super(...arguments),u(this,_0x440149(0x396),new v[(_0x440149(0x114))](null)),u(this,_0x440149(0xbc),this[_0x440149(0x396)]['asObservable']());}[_0x4d97e8(0x2f8)](_0x342d3d){const _0x4068cc=_0x4d97e8,{unitID:_0x7ea7db,memberID:_0x472b69,textRanges:_0x53aec2}=_0x342d3d,_0x1482e2=yt(_0x53aec2),_0x2c0007={'unitID':_0x7ea7db,'memberID':_0x472b69,'selection':_0x1482e2};this[_0x4068cc(0x396)][_0x4068cc(0x120)](_0x2c0007);}}var xs=Object['defineProperty'],ks=Object[_0x4d97e8(0x100)],Bs=(_0x5d8ecd,_0x2fe7c0,_0x560ab3,_0x45c05e)=>{const _0x3e5e4e=_0x4d97e8;for(var _0x5a490d=_0x45c05e>0x1?void 0x0:_0x45c05e?ks(_0x2fe7c0,_0x560ab3):_0x2fe7c0,_0x189728=_0x5d8ecd[_0x3e5e4e(0x424)]-0x1,_0x10d1ea;_0x189728>=0x0;_0x189728--)(_0x10d1ea=_0x5d8ecd[_0x189728])&&(_0x5a490d=(_0x45c05e?_0x10d1ea(_0x2fe7c0,_0x560ab3,_0x5a490d):_0x10d1ea(_0x5a490d))||_0x5a490d);return _0x45c05e&&_0x5a490d&&xs(_0x2fe7c0,_0x560ab3,_0x5a490d),_0x5a490d;},ot=(_0x993a40,_0x263b2f)=>(_0x262f0e,_0x2376b4)=>_0x263b2f(_0x262f0e,_0x2376b4,_0x993a40);let pe=class{constructor(_0x2b5a36,_0x3c4956){const _0x31c208=_0x4d97e8;this[_0x31c208(0x2cd)]=_0x2b5a36,this[_0x31c208(0x165)]=_0x3c4956;}[_0x4d97e8(0x117)](_0x495e81){const _0xb7ff7c=_0x4d97e8;var _0x21dfdf;const _0x1dd95d=this[_0xb7ff7c(0x2cd)][_0xb7ff7c(0x491)](se[_0xb7ff7c(0x428)]),_0x4547c6=(_0x21dfdf=_0x1dd95d[_0xb7ff7c(0x46b)]())!=null?_0x21dfdf:[];if(_0x4547c6[_0xb7ff7c(0x424)]===0x0)return;const _0xc0abcf=[{'id':_0xb7ff7c(0x242),'params':{'unitId':_0x495e81[_0xb7ff7c(0x331)],'actions':null,'textRanges':_0x4547c6}}],_0x5a08ae=this[_0xb7ff7c(0x165)][_0xb7ff7c(0x2a5)](_0x495e81,_0xc0abcf);if(!_[_0xb7ff7c(0x33d)](_0x5a08ae))throw _0x5a08ae[_0xb7ff7c(0x497)];const _0x44721d=_0x5a08ae[_0xb7ff7c(0x1a9)][0x0]['params'][_0xb7ff7c(0x339)];Array['isArray'](_0x44721d)&&_0x44721d[_0xb7ff7c(0x424)]&&_0x1dd95d[_0xb7ff7c(0xe8)](_0x44721d,!0x1);}};pe=Bs([ot(0x0,a['Inject'](a[_0x4d97e8(0xd0)])),ot(0x1,_['ITransformService'])],pe);const Vs=new Set([C[_0x4d97e8(0x245)]['id']]);function at(_0x4542fb,_0x3838c2,_0x3c5d63,_0x540db9,_0x1ce083){const _0x3d1b74=_0x4d97e8;var _0xbef492,_0x150365,_0x211eac,_0xf2395e;const _0x137212=[];for(const _0x43dc9b of _0x4542fb)if(Vs[_0x3d1b74(0x477)](_0x43dc9b['id'])){if(_0x137212[_0x3d1b74(0x424)]>0x0)break;_0x137212['push'](_0x43dc9b);break;}else _0x137212[_0x3d1b74(0x29b)](_0x43dc9b);const _0x43fd4a=(_0x150365=(_0xbef492=_0x1ce083['getCurrentUser']())==null?void 0x0:_0xbef492['userID'])!=null?_0x150365:_0x3d1b74(0x38d),_0x3b989d=(_0xf2395e=(_0x211eac=_0x1ce083[_0x3d1b74(0x238)]())==null?void 0x0:_0x211eac[_0x3d1b74(0x2ef)])!=null?_0xf2395e:_0x3d1b74(0x38d);return{'changeset':{'unitID':_0x3838c2,'type':_[_0x3d1b74(0x133)](_0x3c5d63['getUnitType'](_0x3838c2)),'baseRev':_0x540db9['getCurrentRevOfUnit'](_0x3838c2),'revision':0x0,'userID':_0x43fd4a,'memberID':_0x3b989d,'mutations':_0x137212},'pendingMutations':_0x4542fb[_0x3d1b74(0x1ac)](_0x137212[_0x3d1b74(0x424)])};}function Ws(_0x286d7f,_0x5795dd,_0x509228,_0x535eaf,_0x593264){const _0x5d0393=_0x4d97e8;var _0x35143e,_0x515890,_0x1cce0d,_0x23b0df;const _0xb21474=[_0x286d7f[_0x5d0393(0x359)]((_0x3ca69e,_0x5c7390)=>{const _0x1c89c2=_0x5d0393;var _0x175f0a;const {id:_0x2346e3}=_0x3ca69e,{id:_0x360103,type:_0x111235}=_0x5c7390,_0x25c114=(_0x175f0a=_0x3ca69e[_0x1c89c2(0x141)])!=null?_0x175f0a:{'actions':null},_0x413ffe=_0x5c7390[_0x1c89c2(0x141)];if(_0x2346e3&&_0x2346e3!==_0x360103)throw new Error(_0x1c89c2(0x142)+_0x2346e3+_0x1c89c2(0x247)+_0x360103+'.');return{..._0x3ca69e,'id':_0x360103,'type':_0x111235,'params':{'unitId':_0x413ffe[_0x1c89c2(0x3f2)],'textRanges':_0x413ffe[_0x1c89c2(0x339)],'actions':a[_0x1c89c2(0x30f)]['compose'](_0x25c114[_0x1c89c2(0x189)],_0x413ffe[_0x1c89c2(0x189)])}};},{})],_0x266ec4=(_0x515890=(_0x35143e=_0x593264['getCurrentUser']())==null?void 0x0:_0x35143e[_0x5d0393(0x1f7)])!=null?_0x515890:_0x5d0393(0x38d),_0x46551d=(_0x23b0df=(_0x1cce0d=_0x593264[_0x5d0393(0x238)]())==null?void 0x0:_0x1cce0d[_0x5d0393(0x2ef)])!=null?_0x23b0df:_0x5d0393(0x38d);return{'changeset':{'unitID':_0x5795dd,'type':_[_0x5d0393(0x133)](_0x509228[_0x5d0393(0xda)](_0x5795dd)),'baseRev':_0x535eaf[_0x5d0393(0x402)](_0x5795dd),'revision':0x0,'userID':_0x266ec4,'memberID':_0x46551d,'mutations':_0xb21474},'pendingMutations':[]};}const Fs={'id':C['EmptyMutation']['id'],'type':a['CommandType'][_0x4d97e8(0x363)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x4d97e8(0x100)],z=(_0x140427,_0x3cd403,_0x581c1c,_0x183e32)=>{for(var _0x236cde=_0x183e32>0x1?void 0x0:_0x183e32?Ys(_0x3cd403,_0x581c1c):_0x3cd403,_0x290669=_0x140427['length']-0x1,_0x34865c;_0x290669>=0x0;_0x290669--)(_0x34865c=_0x140427[_0x290669])&&(_0x236cde=(_0x183e32?_0x34865c(_0x3cd403,_0x581c1c,_0x236cde):_0x34865c(_0x236cde))||_0x236cde);return _0x183e32&&_0x236cde&&Gs(_0x3cd403,_0x581c1c,_0x236cde),_0x236cde;},m=(_0x1646e4,_0x5530a3)=>(_0x1033e2,_0x4b15bb)=>_0x5530a3(_0x1033e2,_0x4b15bb,_0x1646e4),U=(_0xdb3144=>(_0xdb3144[_0x4d97e8(0x306)]=_0x4d97e8(0x239),_0xdb3144[_0x4d97e8(0x2d5)]='synced',_0xdb3144[_0x4d97e8(0x21a)]=_0x4d97e8(0x16c),_0xdb3144['AWAITING']=_0x4d97e8(0x326),_0xdb3144[_0x4d97e8(0x380)]='awaiting_with_pending',_0xdb3144[_0x4d97e8(0x310)]=_0x4d97e8(0x199),_0xdb3144[_0x4d97e8(0x4b6)]=_0x4d97e8(0x254),_0xdb3144[_0x4d97e8(0x283)]=_0x4d97e8(0x27a),_0xdb3144))(U||{});class J{constructor(_0xa27fd,_0x505add,_0x4da3fc,_0x43de14,_0x590c57,_0x41ab8f,_0x150fb3,_0x31e512,_0x4b290e){const _0x24afef=_0x4d97e8;u(this,_0x24afef(0x3ad),null),u(this,_0x24afef(0x485),[]),(this[_0x24afef(0x331)]=_0xa27fd,this[_0x24afef(0x366)]=_0x505add,this[_0x24afef(0xc9)]=_0x590c57,this[_0x24afef(0x1c7)]=_0x41ab8f,this['_undoRedoService']=_0x150fb3,this[_0x24afef(0x205)]=_0x31e512,this[_0x24afef(0x28a)]=_0x4b290e,this[_0x24afef(0x3ad)]=_0x4da3fc,this['_pendingMutations']=_0x43de14);}[_0x4d97e8(0x34a)](_0x5c2a6d){const _0x5d13d3=_0x4d97e8,_0x3c269f=this[_0x5d13d3(0x205)][_0x5d13d3(0x402)](this[_0x5d13d3(0x331)]);return _0x5c2a6d[_0x5d13d3(0x398)]>_0x3c269f+0x1?(this[_0x5d13d3(0xc9)][_0x5d13d3(0x45e)]({'from':_0x3c269f,'to':_0x5c2a6d[_0x5d13d3(0x398)]-0x1}),!0x0):!0x1;}[_0x4d97e8(0x3cd)](_0x32ea69){const _0x3f1bfa=_0x4d97e8;this[_0x3f1bfa(0x17c)][_0x3f1bfa(0x26c)](this[_0x3f1bfa(0x331)],_0x32ea69);}[_0x4d97e8(0x448)](_0x131814){const _0xef3525=_0x4d97e8;var _0xa70e89,_0x5bee81;(_0x5bee81=(_0xa70e89=this[_0xef3525(0xc9)])[_0xef3525(0x292)])==null||_0x5bee81[_0xef3525(0x1da)](_0xa70e89,_0x131814);}[_0x4d97e8(0x29c)](_0xafc401){const _0x3b3f2a=_0x4d97e8;var _0x1d5dd2,_0x5ba99b;return(_0x5ba99b=(_0x1d5dd2=this['_handler'])[_0x3b3f2a(0x3d0)])==null?void 0x0:_0x5ba99b[_0x3b3f2a(0x1da)](_0x1d5dd2,_0xafc401);}[_0x4d97e8(0x374)](_0x104f37){const _0xe58f84=_0x4d97e8;var _0xaef1e3,_0x287980,_0x26edc7;return(_0x26edc7=(_0x287980=(_0xaef1e3=this[_0xe58f84(0xc9)])[_0xe58f84(0x1fa)])==null?void 0x0:_0x287980[_0xe58f84(0x1da)](_0xaef1e3,_0x104f37))!=null?_0x26edc7:_0x104f37;}[_0x4d97e8(0x269)](_0x3a0a1b){const _0x334b7c=_0x4d97e8;var _0x144a84,_0x5d1cee;if(this[_0x334b7c(0x366)]===$['UNIVER_DOC']){const {unitID:_0x1834b1,mutations:_0x365343,memberID:_0x9b28f2}=_0x3a0a1b,_0x5cec6d=_0x365343[0x0]['params'][_0x334b7c(0x339)];Array[_0x334b7c(0x38a)](_0x5cec6d)&&_0x5cec6d[_0x334b7c(0x424)]>0x0&&((_0x5d1cee=(_0x144a84=this[_0x334b7c(0xc9)])[_0x334b7c(0x18a)])==null||_0x5d1cee[_0x334b7c(0x1da)](_0x144a84,{'unitID':_0x1834b1,'memberID':_0x9b28f2,'textRanges':_0x5cec6d}));}}['_updateLocalCache'](){const _0x1b8d35=_0x4d97e8;this[_0x1b8d35(0x28a)]['updateOfflineData'](this[_0x1b8d35(0x331)],this[_0x1b8d35(0x366)],this['_awaitingChangeset'],this[_0x1b8d35(0x485)]);}[_0x4d97e8(0x1e5)](){const _0x3af313=_0x4d97e8;return this[_0x3af313(0x205)][_0x3af313(0x402)](this[_0x3af313(0x331)]);}[_0x4d97e8(0x2ff)](){const _0x5a1e23=_0x4d97e8;this['_revisionService'][_0x5a1e23(0x4a3)](this['unitID']);}[_0x4d97e8(0x2f5)](_0x5141d1){const _0x5061ab=_0x4d97e8;var _0x4871a4;const _0x2e00e4=this[_0x5061ab(0x374)](_0x5141d1),_0x437fe8=a[_0x5061ab(0x322)](_0x2e00e4[_0x5061ab(0x20f)],this[_0x5061ab(0x1c7)],{'fromCollab':!0x0});if(!_0x437fe8[_0x5061ab(0x3bd)])throw _0x437fe8['error']instanceof Error?_0x437fe8[_0x5061ab(0x497)]:new Error((_0x4871a4=_0x437fe8['error'])!=null?_0x4871a4:_0x5061ab(0x110));this[_0x5061ab(0x29c)](_0x2e00e4),this[_0x5061ab(0x3cd)](_0x5141d1),this[_0x5061ab(0x448)](_0x2e00e4),this[_0x5061ab(0x269)](_0x2e00e4),this[_0x5061ab(0x2ff)]();}}let ie=class extends J{constructor(_0x325cba,_0x4b4794,_0x19b2d7,_0xaaceb7,_0x4a8c53,_0x28ec2e,_0x4033f8,_0x32ee3a,_0x5ad2ff,_0x2d950){const _0x242cce=_0x4d97e8;super(_0x325cba,_0x4b4794,null,[],_0x19b2d7,_0x32ee3a,_0x4033f8,_0xaaceb7,_0x4a8c53),u(this,'status',_0x242cce(0x26f)),(this[_0x242cce(0x2cd)]=_0x28ec2e,this[_0x242cce(0x188)]=_0x5ad2ff,this[_0x242cce(0x165)]=_0x2d950);}['appendMutation'](_0x2a1d5e){const _0x1ebd9b=_0x4d97e8,_0x2763c6=this[_0x1ebd9b(0x2cd)][_0x1ebd9b(0x309)](k,this[_0x1ebd9b(0x331)],this[_0x1ebd9b(0x366)],[_0x2a1d5e],this[_0x1ebd9b(0xc9)]);return _0x2763c6[_0x1ebd9b(0x36c)](),_0x2763c6[_0x1ebd9b(0x1b6)](),_0x2763c6;}[_0x4d97e8(0x10c)](_0x34021b){const _0x7d2706=_0x4d97e8;if(this['_checkMissing'](_0x34021b))return this[_0x7d2706(0x2cd)][_0x7d2706(0x309)](x,this[_0x7d2706(0x331)],this[_0x7d2706(0x366)],null,[],null,[_0x34021b],this[_0x7d2706(0xc9)]);try{const _0x304677=this[_0x7d2706(0x165)]['transformMutationsWithChangeset'](_0x34021b,[Fs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x304677)){const {c1Prime:_0x2904ea}=_0x304677;return this[_0x7d2706(0x2f5)](_0x2904ea),this;}throw _0x304677['error'];}catch(_0x403ade){return this[_0x7d2706(0x188)][_0x7d2706(0x497)](_0x403ade),this[_0x7d2706(0x46d)](!0x1);}}['_onConflict'](_0x4c8e14){const _0x5346b1=_0x4d97e8;return this[_0x5346b1(0x2cd)][_0x5346b1(0x309)](F,this['unitID'],this[_0x5346b1(0x366)],null,[],this[_0x5346b1(0xc9)],_0x4c8e14);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4d97e8(0x313)](){const _0x1ed58f=_0x4d97e8;throw new Error(_0x1ed58f(0x1d1));}[_0x4d97e8(0x38c)](){const _0x38333b=_0x4d97e8;return this[_0x38333b(0x2cd)][_0x38333b(0x309)](G,this['unitID'],this[_0x38333b(0x366)],null,[],this[_0x38333b(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}['resend'](){const _0x58da5f=_0x4d97e8;throw new Error(_0x58da5f(0x48a));}['fetchMiss'](){const _0x3b163e=_0x4d97e8,_0x20511a=this[_0x3b163e(0x205)][_0x3b163e(0x402)](this[_0x3b163e(0x331)]);return this[_0x3b163e(0xc9)][_0x3b163e(0x45e)]({'from':_0x20511a,'to':0x0}),this[_0x3b163e(0x2cd)][_0x3b163e(0x309)](x,this[_0x3b163e(0x331)],this[_0x3b163e(0x366)],null,[],null,[],this[_0x3b163e(0xc9)]);}};ie=z([m(0x3,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0x4,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0x5,a['Inject'](a[_0x4d97e8(0xd0)])),m(0x6,a[_0x4d97e8(0x2fd)]),m(0x7,a['ICommandService']),m(0x8,a['ILogService']),m(0x9,_[_0x4d97e8(0x18d)])],ie);let k=class extends J{constructor(_0xc71a3d,_0x5e79a8,_0x30cc9b,_0x1699a0,_0x172b20,_0x59d1c,_0x3e9bdd,_0x25a97b,_0x2f8e73,_0x2fea42,_0x16b588,_0x364666,_0x1706a2,_0x383ca4){const _0x25d6c1=_0x4d97e8;super(_0xc71a3d,_0x5e79a8,null,_0x30cc9b,_0x1699a0,_0x2fea42,_0x383ca4,_0x59d1c,_0x3e9bdd),u(this,_0x25d6c1(0x2f1),'pending'),u(this,_0x25d6c1(0x224),null),u(this,_0x25d6c1(0xaa),null),(this['_injector']=_0x172b20,this[_0x25d6c1(0x3a7)]=_0x25a97b,this[_0x25d6c1(0x188)]=_0x2f8e73,this[_0x25d6c1(0xbd)]=_0x16b588,this[_0x25d6c1(0x165)]=_0x364666,this[_0x25d6c1(0x85)]=_0x1706a2);}[_0x4d97e8(0x232)](_0x5543bf){const _0x3c074b=_0x4d97e8;return this[_0x3c074b(0x485)]['push'](_0x5543bf),this[_0x3c074b(0x1b6)](),this;}[_0x4d97e8(0x10c)](_0x448df5){const _0x2f5b67=_0x4d97e8;if(this['_checkMissing'](_0x448df5))return this['_clearScheduledTask'](),this[_0x2f5b67(0x2cd)][_0x2f5b67(0x309)](x,this['unitID'],this[_0x2f5b67(0x366)],null,this[_0x2f5b67(0x485)],null,[_0x448df5],this[_0x2f5b67(0xc9)]);try{const _0x311266=this['_transformService']['transformMutationsWithChangeset'](_0x448df5,this[_0x2f5b67(0x485)]);if(_[_0x2f5b67(0x33d)](_0x311266)){const {c1Prime:_0x2695be,m2Prime:_0x35fb49}=_0x311266;this['_executeRemoteChangeset'](_0x2695be);const _0x1047f4=this[_0x2f5b67(0x2cd)][_0x2f5b67(0x309)](k,this['unitID'],this['type'],_0x35fb49,this[_0x2f5b67(0xc9)]);return this['_clearScheduledTask'](),_0x1047f4[_0x2f5b67(0x36c)](this[_0x2f5b67(0x224)]?Math[_0x2f5b67(0x379)](0x0,new Date()[_0x2f5b67(0x3e1)]()-this[_0x2f5b67(0x224)]):this['_getSendChangesetTimeout']()),_0x1047f4;}throw _0x311266[_0x2f5b67(0x497)];}catch(_0x35b25b){return this[_0x2f5b67(0x188)]['error'](_0x35b25b),this['_onConflict'](!0x1);}}[_0x4d97e8(0x431)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x4d97e8(0x313)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x4d97e8(0x38c)](){const _0x56f624=_0x4d97e8;return this[_0x56f624(0x4a5)](),this[_0x56f624(0x2cd)][_0x56f624(0x309)](G,this['unitID'],this[_0x56f624(0x366)],null,this[_0x56f624(0x485)],this[_0x56f624(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x36c)](_0x15ebc1){const _0x4e69b7=_0x4d97e8,_0x148937=_0x15ebc1!=null?_0x15ebc1:this[_0x4e69b7(0x2c6)]();this[_0x4e69b7(0x224)]=new Date()[_0x4e69b7(0x3e1)](),this[_0x4e69b7(0xaa)]=window[_0x4e69b7(0x3c4)](()=>{const _0x5000f0=_0x4e69b7;this['_clearScheduledTask']();let _0x42d312=null;switch(this[_0x5000f0(0x366)]){case $[_0x5000f0(0x15c)]:{_0x42d312=at(this[_0x5000f0(0x485)],this['unitID'],this[_0x5000f0(0x85)],this['_revisionService'],this['_memberService']);break;}case $['UNIVER_DOC']:{this[_0x5000f0(0x485)][_0x5000f0(0x145)](_0x5e34f7=>_0x5e34f7['id']===se['RichTextEditingMutation']['id'])?_0x42d312=Ws(this[_0x5000f0(0x485)],this[_0x5000f0(0x331)],this['_univerInstanceService'],this[_0x5000f0(0x205)],this['_memberService']):_0x42d312=at(this[_0x5000f0(0x485)],this[_0x5000f0(0x331)],this[_0x5000f0(0x85)],this[_0x5000f0(0x205)],this[_0x5000f0(0x3a7)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x5000f0(0x366)]+_0x5000f0(0x1ed));}const {changeset:_0xaefb85,pendingMutations:_0x1a92d8}=_0x42d312;this[_0x5000f0(0xc9)][_0x5000f0(0x284)](_0xaefb85);const _0xb3c2cf=_0x1a92d8[_0x5000f0(0x424)]?this[_0x5000f0(0x2cd)][_0x5000f0(0x309)](B,this['unitID'],this['type'],_0xaefb85,_0x1a92d8,this[_0x5000f0(0xc9)]):this['_injector'][_0x5000f0(0x309)](W,this[_0x5000f0(0x331)],this[_0x5000f0(0x366)],_0xaefb85,this[_0x5000f0(0xc9)]);_0xb3c2cf[_0x5000f0(0x1b6)](),this[_0x5000f0(0xc9)]['onStateChange'](this,_0xb3c2cf);},_0x148937);}[_0x4d97e8(0x2c6)](){const _0x1c0e8e=_0x4d97e8;var _0xabd885;const _0x400d93=this[_0x1c0e8e(0xbd)][_0x1c0e8e(0x1f4)](L);return(_0xabd885=_0x400d93==null?void 0x0:_0x400d93[_0x1c0e8e(0x17b)])!=null?_0xabd885:Jt;}['resend'](){const _0x5ce0af=_0x4d97e8;throw new Error(_0x5ce0af(0x327));}[_0x4d97e8(0x4a5)](){const _0x574ff5=_0x4d97e8;this['_sendingTimer']!=null&&(clearTimeout(this[_0x574ff5(0xaa)]),this[_0x574ff5(0xaa)]=null);}[_0x4d97e8(0x46d)](_0x28979f){const _0x5a5a52=_0x4d97e8;return this[_0x5a5a52(0x4a5)](),this['_injector'][_0x5a5a52(0x309)](F,this[_0x5a5a52(0x331)],this[_0x5a5a52(0x366)],null,this[_0x5a5a52(0x485)],this['_handler'],_0x28979f);}};k=z([m(0x4,a['Inject'](a[_0x4d97e8(0xd0)])),m(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0x6,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x4d97e8(0xeb)]),m(0x9,a[_0x4d97e8(0x433)]),m(0xa,a[_0x4d97e8(0x332)]),m(0xb,_[_0x4d97e8(0x18d)]),m(0xc,a[_0x4d97e8(0x248)]),m(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x3665e9,_0x118bb1,_0x5605ba,_0x14aa23,_0x5328af,_0x14d5f2,_0x1cc77e,_0x12ea53,_0x3c9b13,_0x499670,_0x5d6fb1){const _0x21aefa=_0x4d97e8;super(_0x3665e9,_0x118bb1,_0x5605ba,[],_0x14aa23,_0x12ea53,_0x5d6fb1,_0x14d5f2,_0x1cc77e),u(this,_0x21aefa(0x2f1),_0x21aefa(0x326)),(this[_0x21aefa(0x2cd)]=_0x5328af,this[_0x21aefa(0x188)]=_0x3c9b13,this[_0x21aefa(0x165)]=_0x499670);}[_0x4d97e8(0x232)](_0x35d082){const _0x28e557=_0x4d97e8,_0x3579c1=this[_0x28e557(0x2cd)][_0x28e557(0x309)](B,this[_0x28e557(0x331)],this['type'],this[_0x28e557(0x3ad)],[_0x35d082],this[_0x28e557(0xc9)]);return _0x3579c1[_0x28e557(0x1b6)](),_0x3579c1;}['onRemoteChangeset'](_0x34e874){const _0x4f22c3=_0x4d97e8;if(this[_0x4f22c3(0x34a)](_0x34e874))return this[_0x4f22c3(0x2cd)][_0x4f22c3(0x309)](x,this[_0x4f22c3(0x331)],this[_0x4f22c3(0x366)],this[_0x4f22c3(0x3ad)],[],null,[_0x34e874],this['_handler']);try{const _0x17e4fa=this['_transformService'][_0x4f22c3(0x15a)]([_0x34e874],[this['_awaitingChangeset']],!0x1);if(_[_0x4f22c3(0x317)](_0x17e4fa)){const {c1Prime:_0x56b37a,c2Prime:_0x96d370}=_0x17e4fa;this[_0x4f22c3(0x2f5)](_0x56b37a[0x0]),_0x96d370[0x0][_0x4f22c3(0x20a)]=this[_0x4f22c3(0x1e5)]();const _0x540a2d=this[_0x4f22c3(0x2cd)]['createInstance'](W,this[_0x4f22c3(0x331)],this['type'],_0x96d370[0x0],this[_0x4f22c3(0xc9)]);return _0x540a2d[_0x4f22c3(0x1b6)](),_0x540a2d;}return this[_0x4f22c3(0x46d)](!0x1);}catch(_0xfdc29c){return this[_0x4f22c3(0x188)][_0x4f22c3(0x497)](_0xfdc29c),this[_0x4f22c3(0x46d)](!0x1);}}[_0x4d97e8(0x431)](_0x58920b){const _0x10ac7c=_0x4d97e8,_0xd3c9a8=this[_0x10ac7c(0x205)][_0x10ac7c(0x402)](this[_0x10ac7c(0x331)]);if(_0x58920b[_0x10ac7c(0x398)]<_0xd3c9a8-0x1)return this;if(this['_checkMissing'](_0x58920b))return this['_injector'][_0x10ac7c(0x309)](x,this['unitID'],this[_0x10ac7c(0x366)],null,[],this['_awaitingChangeset'],[],this[_0x10ac7c(0xc9)]);this[_0x10ac7c(0x2ff)]();const _0x447c17=this[_0x10ac7c(0x2cd)][_0x10ac7c(0x309)](ie,this['unitID'],this['type'],this['_handler']);return _0x447c17[_0x10ac7c(0x1b6)](),_0x447c17;}[_0x4d97e8(0x313)](_0x41c4f4){const _0x3829ee=_0x4d97e8;return this[_0x3829ee(0x46d)](!!(_0x41c4f4!=null&&_0x41c4f4[_0x3829ee(0x350)]));}[_0x4d97e8(0x38c)](){const _0x212e14=_0x4d97e8;return this[_0x212e14(0x2cd)][_0x212e14(0x309)](G,this[_0x212e14(0x331)],this[_0x212e14(0x366)],this[_0x212e14(0x3ad)],[],this[_0x212e14(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x3d1)](){const _0x3fc2a2=_0x4d97e8;this[_0x3fc2a2(0xc9)][_0x3fc2a2(0x284)](this[_0x3fc2a2(0x3ad)]);}[_0x4d97e8(0x46d)](_0x2ef0dc){const _0x2fbce9=_0x4d97e8;return this['_injector']['createInstance'](F,this[_0x2fbce9(0x331)],this[_0x2fbce9(0x366)],this[_0x2fbce9(0x3ad)],[],this[_0x2fbce9(0xc9)],_0x2ef0dc);}};W=z([m(0x4,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),m(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0x6,a[_0x4d97e8(0x13d)](exports['LocalCacheService'])),m(0x7,a['ICommandService']),m(0x8,a['ILogService']),m(0x9,_[_0x4d97e8(0x18d)]),m(0xa,a[_0x4d97e8(0x2fd)])],W);let B=class extends J{constructor(_0xaab6ec,_0x559e7f,_0x32c6c3,_0x2b8dab,_0x41dbc5,_0x16e06e,_0x554f07,_0x60b174,_0x234119,_0x2f0967,_0x9e920f,_0xcd4e36){const _0x142362=_0x4d97e8;super(_0xaab6ec,_0x559e7f,_0x32c6c3,_0x2b8dab,_0x41dbc5,_0x234119,_0xcd4e36,_0x554f07,_0x60b174),u(this,'status',_0x142362(0xb6)),(this['_injector']=_0x16e06e,this[_0x142362(0x188)]=_0x2f0967,this[_0x142362(0x165)]=_0x9e920f);}[_0x4d97e8(0x232)](_0x1dbd12){const _0x1add56=_0x4d97e8;return this[_0x1add56(0x485)][_0x1add56(0x29b)](_0x1dbd12),this;}[_0x4d97e8(0x10c)](_0x18803e){const _0x441475=_0x4d97e8;if(this[_0x441475(0x34a)](_0x18803e))return this[_0x441475(0x2cd)][_0x441475(0x309)](x,this[_0x441475(0x331)],this['type'],this[_0x441475(0x3ad)],this[_0x441475(0x485)],null,[_0x18803e],this[_0x441475(0xc9)]);try{const _0x43b6cd=this[_0x441475(0x165)][_0x441475(0x15a)]([_0x18803e],[this[_0x441475(0x3ad)]],!0x1);if(_[_0x441475(0x317)](_0x43b6cd)){const {c1Prime:_0x1b6807,c2Prime:_0x2b699f}=_0x43b6cd,_0x4c6991=this[_0x441475(0x165)][_0x441475(0x2a5)](_0x1b6807[0x0],this[_0x441475(0x485)]);if(_[_0x441475(0x33d)](_0x4c6991)){const {c1Prime:_0x2bf94e,m2Prime:_0x1bd89c}=_0x4c6991;return this[_0x441475(0x2f5)](_0x2bf94e),_0x2b699f[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x441475(0x2cd)][_0x441475(0x309)](B,this[_0x441475(0x331)],this['type'],_0x2b699f[0x0],_0x1bd89c,this['_handler']);}throw _0x4c6991[_0x441475(0x497)];}throw _0x43b6cd[_0x441475(0x497)];}catch(_0x36d29d){return this[_0x441475(0x188)][_0x441475(0x497)](_0x36d29d),this[_0x441475(0x46d)](!0x1);}}['onRemoteAck'](_0x4ff33b){const _0x443516=_0x4d97e8;if(this[_0x443516(0x34a)](_0x4ff33b))return this[_0x443516(0x2cd)][_0x443516(0x309)](x,this[_0x443516(0x331)],this[_0x443516(0x366)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x443516(0xc9)]);this[_0x443516(0x2ff)]();const _0x4cc333=this[_0x443516(0x2cd)][_0x443516(0x309)](k,this[_0x443516(0x331)],this['type'],this[_0x443516(0x485)],this[_0x443516(0xc9)]);return _0x4cc333[_0x443516(0x36c)](),_0x4cc333['_updateLocalCache'](),_0x4cc333;}[_0x4d97e8(0x313)](_0x5aecea){const _0x5711db=_0x4d97e8;return this[_0x5711db(0x46d)](!!(_0x5aecea!=null&&_0x5aecea[_0x5711db(0x350)]));}['toggleOffline'](){const _0x35c238=_0x4d97e8;return this['_injector'][_0x35c238(0x309)](G,this[_0x35c238(0x331)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x4d97e8(0x3ce)](){return this;}['resend'](){const _0x5c8f04=_0x4d97e8;this[_0x5c8f04(0xc9)]['onSendChangeset'](this[_0x5c8f04(0x3ad)]);}[_0x4d97e8(0x46d)](_0x309d1c){const _0x191a86=_0x4d97e8;return this[_0x191a86(0x2cd)][_0x191a86(0x309)](F,this[_0x191a86(0x331)],this[_0x191a86(0x366)],null,this[_0x191a86(0x485)],this[_0x191a86(0xc9)],_0x309d1c);}};B=z([m(0x5,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),m(0x6,a[_0x4d97e8(0x13d)](_['RevisionService'])),m(0x7,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0x8,a[_0x4d97e8(0x433)]),m(0x9,a[_0x4d97e8(0xeb)]),m(0xa,_[_0x4d97e8(0x18d)]),m(0xb,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0xd04204,_0x4eb580,_0x1b839a,_0x55a6ad,_0xb65377,_0x40c7a8=!0x1,_0x478671,_0x1f3245,_0x3b9ebf,_0x299e44,_0x2c335b,_0xae8f6b,_0x4a1809){const _0x2e20f5=_0x4d97e8;super(_0xd04204,_0x4eb580,_0x1b839a,_0x55a6ad,_0xb65377,_0x1f3245,_0x3b9ebf,_0x2c335b,_0x299e44),u(this,_0x2e20f5(0x2f1),_0x2e20f5(0x254)),(this[_0x2e20f5(0x484)]=_0x40c7a8,this[_0x2e20f5(0xf8)]=_0x478671,this[_0x2e20f5(0x40e)]=_0xae8f6b,this[_0x2e20f5(0x2d4)]=_0x4a1809,this[_0x2e20f5(0x289)](),this[_0x2e20f5(0x163)](),this[_0x2e20f5(0x2fa)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4d97e8(0x431)](){return this;}[_0x4d97e8(0x313)](){return this;}[_0x4d97e8(0x38c)](){return this;}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x3d1)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d97e8(0x163)](){const _0x4ae8d8=_0x4d97e8;this[_0x4ae8d8(0x28a)][_0x4ae8d8(0xcf)](this[_0x4ae8d8(0x331)],this['type'],null,[]);}[_0x4d97e8(0x289)](){const _0x3b45c6=_0x4d97e8;this[_0x3b45c6(0x484)]?this[_0x3b45c6(0x2d4)]['show']({'title':this[_0x3b45c6(0x40e)]['t'](_0x3b45c6(0x13b)),'content':this['_localeService']['t'](_0x3b45c6(0x42c)),'type':_0x3b45c6(0x497),'duration':0x0}):this[_0x3b45c6(0x2d4)][_0x3b45c6(0x207)]({'title':this[_0x3b45c6(0x40e)]['t']('conflict.title'),'content':this['_localeService']['t'](_0x3b45c6(0x173)),'type':'error','duration':0x0});}[_0x4d97e8(0x2fa)](){const _0x45ed63=_0x4d97e8;this[_0x45ed63(0xf8)][_0x45ed63(0xc7)](new C[(_0x45ed63(0xa6))](this[_0x45ed63(0x331)])['id'],!0x1);}};F=z([m(0x6,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x294)])),m(0x7,a[_0x4d97e8(0x433)]),m(0x8,a[_0x4d97e8(0x2fd)]),m(0x9,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0xa,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0xb,a['Inject'](a[_0x4d97e8(0x10a)])),m(0xc,A[_0x4d97e8(0xd9)])],F);let G=class extends J{constructor(_0x2e000f,_0x58b252,_0x3b3f0c,_0x5eb6fd,_0x42fb31,_0x2f35cb,_0x208018,_0x45bc55,_0x3bf99a,_0x3e855a){const _0x622cbb=_0x4d97e8;super(_0x2e000f,_0x58b252,_0x3b3f0c,_0x5eb6fd,_0x42fb31,_0x3bf99a,_0x3e855a,_0x208018,_0x45bc55),u(this,'status',_0x622cbb(0x27a)),this[_0x622cbb(0x2cd)]=_0x2f35cb;}[_0x4d97e8(0x232)](_0x74a3e7){const _0x5069ab=_0x4d97e8;return this[_0x5069ab(0x485)]['push'](_0x74a3e7),this[_0x5069ab(0x1b6)](),this;}[_0x4d97e8(0x10c)](_0x36c48e){const _0x3dcb63=_0x4d97e8;throw new Error(_0x3dcb63(0x3e7));}['onRemoteAck'](){const _0xf7ec62=_0x4d97e8;throw new Error(_0xf7ec62(0x279));}[_0x4d97e8(0x313)](){const _0x170bb7=_0x4d97e8;throw new Error(_0x170bb7(0x151));}[_0x4d97e8(0x38c)](){return this;}[_0x4d97e8(0x3ce)](){const _0x43adc3=_0x4d97e8,{_injector:_0x2d93b2,_pendingMutations:_0xc1b2f1,_awaitingChangeset:_0x55c2e1,unitID:_0x4d220f,_handler:_0x6b72f9,type:_0x1c59d4}=this,_0x10e387=Ut(_0x2d93b2,_0x4d220f,_0x1c59d4,_0x55c2e1,_0xc1b2f1,_0x6b72f9);return _0x10e387 instanceof k?_0x10e387[_0x43adc3(0x36c)]():(_0x10e387 instanceof B||_0x10e387 instanceof W)&&_0x10e387['resend'](),_0x10e387;}['resend'](){const _0x1705bc=_0x4d97e8;throw new Error(_0x1705bc(0x4a2));}};G=z([m(0x5,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),m(0x6,a['Inject'](_['RevisionService'])),m(0x7,a[_0x4d97e8(0x13d)](exports['LocalCacheService'])),m(0x8,a[_0x4d97e8(0x433)]),m(0x9,a['IUndoRedoService'])],G);let x=class extends J{constructor(_0x3f28ca,_0x1a8c4c,_0x4840c5,_0xc0edb9,_0x3d396f,_0x145a84,_0x16c564,_0x43f9b4,_0x506de5,_0x317d0c,_0x17fd6a,_0x40792c,_0x25f17d,_0xecd37a){const _0x474c79=_0x4d97e8;super(_0x3f28ca,_0x1a8c4c,_0x4840c5,_0xc0edb9,_0x16c564,_0x40792c,_0x25f17d,_0x506de5,_0x317d0c),u(this,_0x474c79(0x2f1),_0x474c79(0x199)),(this[_0x474c79(0x45d)]=_0x3d396f,this[_0x474c79(0x3dc)]=_0x145a84,this[_0x474c79(0x2cd)]=_0x43f9b4,this[_0x474c79(0x188)]=_0x17fd6a,this['_transformService']=_0xecd37a);}['onMissedChangesetFetched'](_0x1431ae){const _0x307079=_0x4d97e8;try{const _0x297d6a=[..._0x1431ae,...this['_queuedRemoteChangesets']],_0x5689fd=[this[_0x307079(0x3ad)]||this[_0x307079(0x45d)]][_0x307079(0x355)](_0x431943=>!!_0x431943);let _0x45dc1b,_0xcf57e3;if(_0x5689fd[_0x307079(0x424)]){const _0x37503b=this[_0x307079(0x165)]['transformChangesets'](_0x297d6a,_0x5689fd,!0x1);if(!_['isTransformChangesetsSuccess'](_0x37503b))throw _0x37503b[_0x307079(0x497)];_0x45dc1b=_0x37503b[_0x307079(0x126)],_0xcf57e3=_0x37503b[_0x307079(0x3b6)];}else _0x45dc1b=_0x297d6a,_0xcf57e3=[];let _0x3bed0f=this[_0x307079(0x485)];_0x45dc1b[_0x307079(0x373)](_0x16821b=>{const _0x27f35b=_0x307079;let _0x3d0e59;if(_0x3bed0f['length']){const _0x487a1a=this[_0x27f35b(0x165)]['transformMutationsWithChangeset'](_0x16821b,_0x3bed0f);if(!_[_0x27f35b(0x33d)](_0x487a1a))throw _0x487a1a[_0x27f35b(0x497)];_0x3d0e59=_0x487a1a[_0x27f35b(0x126)],_0x3bed0f=_0x487a1a[_0x27f35b(0x1a9)];}else _0x3d0e59=_0x16821b;this[_0x27f35b(0x2f5)](_0x3d0e59);}),this[_0x307079(0x45d)]&&this[_0x307079(0x2ff)](),this['_awaitingChangeset']&&_0xcf57e3[_0x307079(0x424)]&&(_0xcf57e3[0x0][_0x307079(0x20a)]=this[_0x307079(0x1e5)]());let _0x56494b;if(this[_0x307079(0x3ad)]&&_0x3bed0f[_0x307079(0x424)]!==0x0)_0x56494b=this['_injector'][_0x307079(0x309)](B,this[_0x307079(0x331)],this[_0x307079(0x366)],_0xcf57e3[0x0],_0x3bed0f,this[_0x307079(0xc9)]);else{if(this[_0x307079(0x3ad)]&&_0x3bed0f[_0x307079(0x424)]===0x0)_0xcf57e3[0x0]['baseRev']=this['_getCurrentRevision'](),_0x56494b=this[_0x307079(0x2cd)][_0x307079(0x309)](W,this[_0x307079(0x331)],this[_0x307079(0x366)],_0xcf57e3[0x0],this['_handler']);else{if(_0x3bed0f[_0x307079(0x424)]!==0x0){const _0x2121c3=this['_injector'][_0x307079(0x309)](k,this[_0x307079(0x331)],this['type'],_0x3bed0f,this[_0x307079(0xc9)]);_0x2121c3[_0x307079(0x36c)](),_0x56494b=_0x2121c3;}else _0x56494b=this[_0x307079(0x2cd)]['createInstance'](ie,this[_0x307079(0x331)],this['type'],this[_0x307079(0xc9)]);}}return _0x56494b[_0x307079(0x1b6)](),_0x56494b;}catch(_0xf58108){return this['_logService'][_0x307079(0x497)](_0x307079(0x45c),_0x307079(0x492),_0xf58108),this['_injector'][_0x307079(0x309)](F,this['unitID'],this[_0x307079(0x366)],this[_0x307079(0x3ad)],this[_0x307079(0x485)],this[_0x307079(0xc9)],!0x1);}}[_0x4d97e8(0x3d1)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d97e8(0x232)](_0x4f985b){const _0x4a8b81=_0x4d97e8;return this[_0x4a8b81(0x485)][_0x4a8b81(0x29b)](_0x4f985b),this;}[_0x4d97e8(0x10c)](_0x17aad9){const _0x503436=_0x4d97e8;return this[_0x503436(0x3dc)][_0x503436(0x29b)](_0x17aad9),this;}[_0x4d97e8(0x431)](_0xc3acb9){const _0x5241c0=_0x4d97e8;if(this[_0x5241c0(0x3ad)])return this[_0x5241c0(0x45d)]=this[_0x5241c0(0x3ad)],this[_0x5241c0(0x3ad)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4d97e8(0x313)](_0x1718a5){const _0xf2e467=_0x4d97e8;return this[_0xf2e467(0x46d)](!!(_0x1718a5!=null&&_0x1718a5[_0xf2e467(0x350)]));}[_0x4d97e8(0x38c)](){const _0x2c8cab=_0x4d97e8;return this['_injector'][_0x2c8cab(0x309)](G,this[_0x2c8cab(0x331)],this[_0x2c8cab(0x366)],this[_0x2c8cab(0x3ad)],this[_0x2c8cab(0x485)],this[_0x2c8cab(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x46d)](_0x4af97e){const _0x50d1bf=_0x4d97e8;return this[_0x50d1bf(0x2cd)]['createInstance'](F,this[_0x50d1bf(0x331)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x50d1bf(0xc9)],_0x4af97e);}};x=z([m(0x7,a['Inject'](a[_0x4d97e8(0xd0)])),m(0x8,a['Inject'](_['RevisionService'])),m(0x9,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0xa,a[_0x4d97e8(0xeb)]),m(0xb,a['ICommandService']),m(0xc,a[_0x4d97e8(0x2fd)]),m(0xd,_[_0x4d97e8(0x18d)])],x);function Ut(_0x4057c2,_0x4f06e3,_0x731b,_0x11f30d,_0x406327,_0x31e698){const _0xfa649c=_0x4d97e8;return _0x11f30d&&_0x406327[_0xfa649c(0x424)]?_0x4057c2[_0xfa649c(0x309)](B,_0x4f06e3,_0x731b,_0x11f30d,_0x406327,_0x31e698):_0x11f30d?_0x4057c2[_0xfa649c(0x309)](W,_0x4f06e3,_0x731b,_0x11f30d,_0x31e698):_0x406327['length']?_0x4057c2[_0xfa649c(0x309)](k,_0x4f06e3,_0x731b,_0x406327,_0x31e698):_0x4057c2[_0xfa649c(0x309)](ie,_0x4f06e3,_0x731b,_0x31e698);}var Ks=Object['defineProperty'],Xs=Object[_0x4d97e8(0x100)],ze=(_0x4d387b,_0x84d0a6,_0x3cc0e6,_0x1165d2)=>{const _0x20f3d1=_0x4d97e8;for(var _0x433b7b=_0x1165d2>0x1?void 0x0:_0x1165d2?Xs(_0x84d0a6,_0x3cc0e6):_0x84d0a6,_0x4c5f70=_0x4d387b[_0x20f3d1(0x424)]-0x1,_0x588c64;_0x4c5f70>=0x0;_0x4c5f70--)(_0x588c64=_0x4d387b[_0x4c5f70])&&(_0x433b7b=(_0x1165d2?_0x588c64(_0x84d0a6,_0x3cc0e6,_0x433b7b):_0x588c64(_0x433b7b))||_0x433b7b);return _0x1165d2&&_0x433b7b&&Ks(_0x84d0a6,_0x3cc0e6,_0x433b7b),_0x433b7b;},p=(_0x7c4861,_0x2b84d8)=>(_0x2e87ec,_0xd34276)=>_0x2b84d8(_0x2e87ec,_0xd34276,_0x7c4861);exports[_0x4d97e8(0x17a)]=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x479e94,_0x48af68,_0x1e870b,_0x34945e,_0x2fc3b4,_0x39f387,_0x470641,_0x48ce95,_0x3e19d6,_0xf18d3b,_0x2dae5d,_0x39117f,_0xeab8ad){const _0x5c9bf4=_0x4d97e8;super(),u(this,_0x5c9bf4(0x3f8),new v[(_0x5c9bf4(0x114))](null)),u(this,'state$',this[_0x5c9bf4(0x3f8)]['asObservable']()),u(this,'_state'),u(this,_0x5c9bf4(0x499),!0x1),u(this,_0x5c9bf4(0x468),''),u(this,'_changesetReqId',0x0),u(this,_0x5c9bf4(0x1dc),this[_0x5c9bf4(0x324)]['pipe'](v[_0x5c9bf4(0x12b)](_0x4bb08f=>_0x4bb08f?_0x4bb08f[_0x5c9bf4(0x2f1)]:U[_0x5c9bf4(0x283)]),v['shareReplay'](0x1))),u(this,_0x5c9bf4(0x351),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x5c9bf4(0x331)]=_0x479e94,this[_0x5c9bf4(0x86)]=_0x48af68,this[_0x5c9bf4(0x405)]=_0x1e870b,this[_0x5c9bf4(0x2cd)]=_0x34945e,this['_localCacheService']=_0x2fc3b4,this[_0x5c9bf4(0x3a2)]=_0x39f387,this['_localeService']=_0x470641,this[_0x5c9bf4(0x205)]=_0x48ce95,this[_0x5c9bf4(0x188)]=_0x3e19d6,this[_0x5c9bf4(0x1c7)]=_0xf18d3b,this[_0x5c9bf4(0x213)]=_0x2dae5d,this['_permissionService']=_0x39117f,this[_0x5c9bf4(0xe1)]=_0xeab8ad);}get[_0x4d97e8(0x8b)](){return this['_state'];}async['init'](){const _0xb0fbd2=_0x4d97e8;if(this[_0xb0fbd2(0x8b)])throw new Error(_0xb0fbd2(0xc6));await this['_init']();}[_0x4d97e8(0x4a7)](){const _0x35a3e3=_0x4d97e8;return this[_0x35a3e3(0x499)]=!0x0,a[_0x35a3e3(0x257)](()=>{const _0x405521=_0x35a3e3;this[_0x405521(0x499)]=!0x1,this[_0x405521(0x8c)]();});}[_0x4d97e8(0x3d4)](_0x2421d1){const _0xdde3ae=_0x4d97e8;this[_0xdde3ae(0x1dd)]=_0x2421d1,this[_0xdde3ae(0x3f8)][_0xdde3ae(0x120)](_0x2421d1);}async[_0x4d97e8(0x27e)](){const _0x3eee2c=_0x4d97e8;var _0x7b4844;this[_0x3eee2c(0x3d4)](await this[_0x3eee2c(0x20d)]()),this['_singleActiveUnitService']&&((_0x7b4844=this[_0x3eee2c(0xe1)])==null||_0x7b4844['editingUnit'](this[_0x3eee2c(0x331)]),this[_0x3eee2c(0x1e2)](this['_singleActiveUnitService'][_0x3eee2c(0x388)](this[_0x3eee2c(0x331)])[_0x3eee2c(0x1c4)](_0x6edfc7=>{const _0x49f542=_0x3eee2c;this['_logService'][_0x49f542(0x403)]('[CollaborationEntity]',_0x49f542(0x3c1),_0x6edfc7),_0x6edfc7===Dt[_0x49f542(0x3a8)]?(this[_0x49f542(0x213)][_0x49f542(0x207)]({'content':this[_0x49f542(0x40e)]['t'](_0x49f542(0x2ed)),'type':X['MessageType'][_0x49f542(0x25a)]}),this[_0x49f542(0xf8)][_0x49f542(0xc7)](new C[(_0x49f542(0xa6))](this[_0x49f542(0x331)])['id'],!0x1)):this[_0x49f542(0xf8)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x0);})));let _0x343ae2=!0x1;return this[_0x3eee2c(0x1e2)](this['session']['sessionStatus$'][_0x3eee2c(0x1c4)](_0x1ca656=>{const _0x464464=_0x3eee2c;_0x1ca656===H[_0x464464(0x2ee)]?this[_0x464464(0x3ea)](_0x343ae2):_0x1ca656===H['OFFLINE']&&(_0x343ae2=!0x0,this[_0x464464(0x191)]());})),this[_0x3eee2c(0x1e2)](this[_0x3eee2c(0x86)]['event$'][_0x3eee2c(0x1c4)](_0x313fda=>{const _0x231afd=_0x3eee2c;try{switch(_0x313fda[_0x231afd(0x445)]){case _[_0x231afd(0x49e)][_0x231afd(0x148)]:{this[_0x231afd(0x422)](_[_0x231afd(0x1b7)](_0x313fda[_0x231afd(0x201)]));break;}case _['CollaborationEvent'][_0x231afd(0x94)]:{this[_0x231afd(0x2c8)](_0x313fda[_0x231afd(0x201)]);break;}case _[_0x231afd(0x49e)][_0x231afd(0x1bd)]:{this[_0x231afd(0x1ec)]();break;}case _[_0x231afd(0x49e)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x231afd(0x167)](_0x313fda[_0x231afd(0x201)][_0x231afd(0x3eb)]['map'](_0x5e0bd7=>_[_0x231afd(0x1b7)](_0x5e0bd7)));break;}case _[_0x231afd(0x49e)][_0x231afd(0x197)]:this[_0x231afd(0x1ec)]({'isPermissionRej':!0x0});}}catch(_0xf91408){throw console[_0x231afd(0x497)](_0x231afd(0x481),_0xf91408),_0xf91408;}})),this['_state'];}[_0x4d97e8(0x169)](){const _0x4c3500=_0x4d97e8;this[_0x4c3500(0x351)]=!0x1;}[_0x4d97e8(0x1df)](){const _0x5c9376=_0x4d97e8;if(this[_0x5c9376(0x351)])throw new Error(_0x5c9376(0x2fc));this[_0x5c9376(0x351)]=!0x0;}[_0x4d97e8(0x482)](_0x461ba5){const _0x4182d9=_0x4d97e8;this[_0x4182d9(0x1df)](),this[_0x4182d9(0x3d4)](this[_0x4182d9(0x1dd)]['appendMutation'](_0x461ba5)),this[_0x4182d9(0x169)]();}[_0x4d97e8(0x422)](_0x4ced7f){const _0x4685e1=_0x4d97e8;if(!(_0x4ced7f[_0x4685e1(0x398)]<=this['_revisionService'][_0x4685e1(0x402)](this[_0x4685e1(0x331)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x4685e1(0x29b)](_0x4ced7f);return;}this[_0x4685e1(0x206)](_0x4ced7f);}}[_0x4d97e8(0x8c)](){const _0x596bd9=_0x4d97e8;this[_0x596bd9(0x410)][_0x596bd9(0x373)](_0x4472e5=>this[_0x596bd9(0x206)](_0x4472e5)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x519fab){const _0x342600=_0x4d97e8,_0x548ccf=this['_compressMutationService']['interceptor'][_0x342600(0x1d9)](this[_0x342600(0x3a2)][_0x342600(0x36d)][_0x342600(0x3a1)]()['COMPRESS_MUTATION_APPLY'])(_0x519fab['mutations'],null)||_0x519fab['mutations'],_0x14a66a={..._0x519fab,'mutations':_0x548ccf};this[_0x342600(0x1df)](),this[_0x342600(0x3d4)](this[_0x342600(0x1dd)][_0x342600(0x10c)](_0x14a66a)),this[_0x342600(0x169)]();}[_0x4d97e8(0x2c8)](_0x4caa44){const _0x5419b4=_0x4d97e8;this[_0x5419b4(0x1df)](),this['_updateState'](this[_0x5419b4(0x1dd)][_0x5419b4(0x431)](_0x4caa44)),this['_unlockTransition']();}['_onRemoteRejected'](_0x4212fa){const _0x481ee4=_0x4d97e8;this[_0x481ee4(0x1df)](),this[_0x481ee4(0x3d4)](this[_0x481ee4(0x1dd)][_0x481ee4(0x313)](_0x4212fa)),this[_0x481ee4(0x169)]();}['_onFetchMissResult'](_0x2308bb){const _0x5d1ac1=_0x4d97e8;if(!(this[_0x5d1ac1(0x1dd)]instanceof x))throw new TypeError(_0x5d1ac1(0x36f));const _0x3e6a73=_0x2308bb[_0x5d1ac1(0x12b)](_0x4ce143=>{const _0x5c46e2=_0x5d1ac1,_0x2396d5=this['_compressMutationService'][_0x5c46e2(0x36d)]['fetchThroughInterceptors'](this[_0x5c46e2(0x3a2)]['interceptor']['getInterceptPoints']()[_0x5c46e2(0xac)])(_0x4ce143[_0x5c46e2(0x20f)],null)||_0x4ce143[_0x5c46e2(0x20f)];return{..._0x4ce143,'mutations':_0x2396d5};});this[_0x5d1ac1(0x1df)](),this[_0x5d1ac1(0x3d4)](this[_0x5d1ac1(0x1dd)][_0x5d1ac1(0xad)](_0x3e6a73)),this['_unlockTransition']();}['_toggleOffline'](){const _0x5f2a61=_0x4d97e8;this['_lockTransition'](),this[_0x5f2a61(0x3d4)](this[_0x5f2a61(0x1dd)]['toggleOffline']()),this['_unlockTransition']();}[_0x4d97e8(0x3ea)](_0xba6481=!0x1){const _0x5b0674=_0x4d97e8;this[_0x5b0674(0x1df)](),this['_updateState'](this[_0x5b0674(0x1dd)][_0x5b0674(0x3ce)]()),this['_unlockTransition']();const _0x1bc9e7=this[_0x5b0674(0x1dd)];_0xba6481&&_0x1bc9e7 instanceof ie&&(this[_0x5b0674(0x1df)](),this[_0x5b0674(0x3d4)](_0x1bc9e7[_0x5b0674(0x3c8)]()),this['_unlockTransition']());}async[_0x4d97e8(0x20d)](){return new Promise(_0xa735da=>{const _0x46b60f=_0x4a0f;this[_0x46b60f(0x86)]['sessionStatus$']['pipe'](v[_0x46b60f(0x463)](0x1))[_0x46b60f(0x1c4)](async _0x20dc9c=>{const _0x5376aa=_0x46b60f;_0xa735da(await this[_0x5376aa(0x288)](_0x20dc9c===H[_0x5376aa(0x2ee)]));});});}[_0x4d97e8(0x3bc)](){const _0x4aaf92=_0x4d97e8,_0xe60def=this[_0x4aaf92(0x331)];return{'onStateChange':(_0x8a1e9e,_0xaea6b6)=>{const _0xee08d0=_0x4aaf92;if(_0x8a1e9e!==this[_0xee08d0(0x1dd)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x8a1e9e[_0xee08d0(0x2f1)]+_0xee08d0(0x49d)+_0xaea6b6['status']+_0xee08d0(0x28c)+this[_0xee08d0(0x1dd)][_0xee08d0(0x2f1)]);this[_0xee08d0(0x3d4)](_0xaea6b6);},'onSendChangeset':_0x3a43b7=>{const _0x20d5df=_0x4aaf92;_0x3a43b7['sid']||(_0x3a43b7[_0x20d5df(0x9f)]=this[_0x20d5df(0x468)],_0x3a43b7[_0x20d5df(0xdf)]=++this[_0x20d5df(0xb0)]);const _0xc7d77c={'eventID':_['CollaborationEvent'][_0x20d5df(0x312)],'data':{'unitID':_0x3a43b7[_0x20d5df(0x331)],'unitType':this[_0x20d5df(0x405)],'changeset':_0x3a43b7,'memberID':this['session'][_0x20d5df(0x346)]()}};this[_0x20d5df(0x86)][_0x20d5df(0x3d6)](_0xc7d77c,this[_0x20d5df(0x331)]);},'onMissingChangesets':({from:_0x406574,to:_0x206a7b})=>{const _0x395872=_0x4aaf92;this['_logService']['debug'](_0x395872(0xcc),_0x395872(0x182)+_0x406574+_0x395872(0xff)+_0x206a7b);const _0x36482d={'eventID':_[_0x395872(0x49e)][_0x395872(0x2f3)],'data':{'unitID':_0xe60def,'unitType':this[_0x395872(0x405)],'from':_0x406574,'to':_0x206a7b}};this['session'][_0x395872(0x3d6)](_0x36482d,this[_0x395872(0x331)]);}};}async['_createInitialStateImpl'](_0x399876){const _0x1bbd0a=_0x4d97e8;var _0x556f28,_0x30868c;const _0x25b472=await this['_localCacheService'][_0x1bbd0a(0x35b)](this['unitID']),_0x1437ca=(_0x556f28=_0x25b472==null?void 0x0:_0x25b472[_0x1bbd0a(0x20f)])!=null?_0x556f28:[],_0x2347d7=(_0x30868c=_0x25b472==null?void 0x0:_0x25b472['awaitingChangeset'])!=null?_0x30868c:null,_0x15b1be=!!(_0x2347d7!=null&&_0x2347d7['sid'])&&!!(_0x2347d7!=null&&_0x2347d7[_0x1bbd0a(0xdf)]);this[_0x1bbd0a(0x468)]=_0x15b1be?_0x2347d7[_0x1bbd0a(0x9f)]:Os(),this[_0x1bbd0a(0xb0)]=_0x15b1be?_0x2347d7['reqId']:0x0;const _0x30f733=this[_0x1bbd0a(0x331)];try{this[_0x1bbd0a(0x325)](_0x2347d7,_0x1437ca);}catch(_0x393061){this[_0x1bbd0a(0x188)]['error'](_0x393061);}const _0x572b4c=this[_0x1bbd0a(0x3bc)]();if(_0x399876){const _0x474ae3=Ut(this[_0x1bbd0a(0x2cd)],_0x30f733,this[_0x1bbd0a(0x405)],_0x2347d7,_0x1437ca,_0x572b4c);return _0x474ae3 instanceof k?_0x474ae3[_0x1bbd0a(0x36c)]():(_0x474ae3 instanceof B||_0x474ae3 instanceof W)&&_0x474ae3[_0x1bbd0a(0x3d1)](),_0x474ae3;}return this[_0x1bbd0a(0x2cd)][_0x1bbd0a(0x309)](G,_0x30f733,this['_type'],_0x2347d7,_0x1437ca,_0x572b4c);}[_0x4d97e8(0x325)](_0x4a8f23,_0x575e9c){const _0x58a839=_0x4d97e8;var _0x1173e6,_0x1cfd0e;const _0x5d6195=this[_0x58a839(0x3a2)][_0x58a839(0x36d)][_0x58a839(0x1d9)](this['_compressMutationService'][_0x58a839(0x36d)][_0x58a839(0x3a1)]()['COMPRESS_MUTATION_APPLY']);(_0x1173e6=_0x5d6195((_0x4a8f23==null?void 0x0:_0x4a8f23[_0x58a839(0x20f)])||[],null))==null||_0x1173e6['forEach'](_0x5d2982=>this['_commandService'][_0x58a839(0x1b5)](_0x5d2982['id'],_0x5d2982[_0x58a839(0x141)])),(_0x1cfd0e=_0x5d6195(_0x575e9c||[],null))==null||_0x1cfd0e[_0x58a839(0x373)](_0x8b51ef=>this['_commandService']['executeCommand'](_0x8b51ef['id'],_0x8b51ef[_0x58a839(0x141)]));}},exports[_0x4d97e8(0x17a)]=ze([p(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),p(0x4,a[_0x4d97e8(0x13d)](exports['LocalCacheService'])),p(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x41d)])),p(0x6,a['Inject'](a[_0x4d97e8(0x10a)])),p(0x7,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),p(0x8,a[_0x4d97e8(0xeb)]),p(0x9,a[_0x4d97e8(0x433)]),p(0xa,A[_0x4d97e8(0x318)]),p(0xb,a[_0x4d97e8(0x294)]),p(0xc,a[_0x4d97e8(0x444)](Re))],exports[_0x4d97e8(0x17a)]),exports[_0x4d97e8(0x21b)]=class extends exports[_0x4d97e8(0x17a)]{constructor(_0x542f16,_0x47f2f8,_0x248f98,_0x3450ce,_0x401d49,_0xc2ed07,_0x2ed6f1,_0x576ecf,_0x2f9a71,_0x9e96b3,_0x17f1cc,_0xca9b7d,_0x78d7f0,_0x577d9,_0x45e47c,_0x41d34b,_0x537bd4){const _0xddcaa9=_0x4d97e8;super(_0x542f16,_0x248f98,_0x47f2f8,_0x3450ce,_0x401d49,_0xc2ed07,_0x2ed6f1,_0x576ecf,_0x78d7f0,_0x577d9,_0x45e47c,_0x41d34b,_0x537bd4),this[_0xddcaa9(0x331)]=_0x542f16,this[_0xddcaa9(0x366)]=_0x47f2f8,this[_0xddcaa9(0x2ce)]=_0x2f9a71,this[_0xddcaa9(0x115)]=_0x9e96b3,this['_docTransformSelectionsService']=_0x17f1cc,this[_0xddcaa9(0xbe)]=_0xca9b7d;}[_0x4d97e8(0x3bc)](){const _0x2cc561=_0x4d97e8,_0x1f290b=super[_0x2cc561(0x3bc)]();return _0x1f290b[_0x2cc561(0x3d0)]=_0x3dbbc6=>this[_0x2cc561(0x115)][_0x2cc561(0x3f1)](_0x3dbbc6),_0x1f290b[_0x2cc561(0x292)]=_0x2185bf=>this[_0x2cc561(0x2b7)][_0x2cc561(0x117)](_0x2185bf),_0x1f290b['onSyncEditingCollabCursor']=_0x3958f1=>this['_docSyncEditingCollabCursorService'][_0x2cc561(0x2f8)](_0x3958f1),_0x1f290b[_0x2cc561(0x1fa)]=_0x431e19=>this[_0x2cc561(0x115)]['transformRemoteChangeset'](_0x431e19),_0x1f290b;}async['_init'](){const _0x3ce174=_0x4d97e8,_0x367396=await super[_0x3ce174(0x27e)]();return this['_docStateChangeManagerService'][_0x3ce174(0x293)][_0x3ce174(0x488)](v[_0x3ce174(0x439)](this[_0x3ce174(0x498)]))[_0x3ce174(0x1c4)](_0x4f1769=>{const _0xb2e695=_0x3ce174;if(_0x4f1769==null)return;const {unitId:_0x3e6234,redoState:_0x39d1a6,commandId:_0x49a5b1}=_0x4f1769;if(_0x3e6234!==this['unitID'])return;const _0x3a0f8e={'id':_0x49a5b1,'type':a[_0xb2e695(0x303)]['MUTATION'],'params':{'unitId':_0x3e6234,'actions':_0x39d1a6[_0xb2e695(0x189)],'textRanges':null}};this['_onLocalMutation'](_0x3a0f8e);}),_0x367396;}},exports[_0x4d97e8(0x21b)]=ze([p(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),p(0x4,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),p(0x5,a[_0x4d97e8(0x13d)](_['CompressMutationService'])),p(0x6,a[_0x4d97e8(0x13d)](a['LocaleService'])),p(0x7,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),p(0x8,a['Inject'](N[_0x4d97e8(0x2a3)])),p(0x9,a[_0x4d97e8(0x13d)](fe)),p(0xa,a[_0x4d97e8(0x13d)](pe)),p(0xb,a['Inject'](qe)),p(0xc,a['ILogService']),p(0xd,a['ICommandService']),p(0xe,A[_0x4d97e8(0x318)]),p(0xf,a['IPermissionService']),p(0x10,a[_0x4d97e8(0x444)](Re))],exports['DocCollaborationEntity']),exports[_0x4d97e8(0x1eb)]=class extends exports[_0x4d97e8(0x17a)]{constructor(_0x5cef03,_0x120510,_0x44dd9a,_0x47583d,_0x5f5393,_0x170d74,_0x1a45da,_0x21733b,_0x595da5,_0x3fc8de,_0x28a720,_0x47512b,_0x532eb9,_0x11a108){const _0x7a5429=_0x4d97e8;super(_0x5cef03,_0x44dd9a,_0x120510,_0x47583d,_0x5f5393,_0x170d74,_0x1a45da,_0x21733b,_0x3fc8de,_0x28a720,_0x47512b,_0x532eb9,_0x11a108),this[_0x7a5429(0x331)]=_0x5cef03,this['type']=_0x120510,this[_0x7a5429(0x305)]=_0x595da5;}['_createHandler'](){const _0x48cf0e=_0x4d97e8,_0x451142=super[_0x48cf0e(0x3bc)]();return _0x451142[_0x48cf0e(0x292)]=_0xddf008=>this['_sheetTransformSelectionsService'][_0x48cf0e(0x117)](_0xddf008),_0x451142;}async[_0x4d97e8(0x27e)](){const _0x39f795=_0x4d97e8,_0x132a77=await super[_0x39f795(0x27e)]();return this[_0x39f795(0x1e2)](this[_0x39f795(0x1c7)][_0x39f795(0x106)]((_0x38654b,_0x56541a)=>{const _0x4634aa=_0x39f795;if(_0x38654b[_0x4634aa(0x366)]!==a[_0x4634aa(0x303)][_0x4634aa(0x363)]||_0x56541a!=null&&_0x56541a['fromCollab']||_0x56541a!=null&&_0x56541a[_0x4634aa(0x401)])return;const _0x29cf4b=_0x38654b['params'];if((_0x29cf4b==null?void 0x0:_0x29cf4b[_0x4634aa(0x3f2)])!==this[_0x4634aa(0x331)])return;const _0x3b01f8=_0x38654b,_0x49409b=this[_0x4634aa(0x3a2)][_0x4634aa(0x36d)]['fetchThroughInterceptors'](this[_0x4634aa(0x3a2)][_0x4634aa(0x36d)][_0x4634aa(0x3a1)]()[_0x4634aa(0x211)])([_0x3b01f8],null)||[_0x3b01f8];this[_0x4634aa(0x482)](_0x49409b[0x0]);})),_0x132a77;}},exports[_0x4d97e8(0x1eb)]=ze([p(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),p(0x4,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),p(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x41d)])),p(0x6,a[_0x4d97e8(0x13d)](a['LocaleService'])),p(0x7,a['Inject'](_['RevisionService'])),p(0x8,a[_0x4d97e8(0x13d)](Ie)),p(0x9,a['ILogService']),p(0xa,a[_0x4d97e8(0x433)]),p(0xb,A[_0x4d97e8(0x318)]),p(0xc,a['IPermissionService']),p(0xd,a['Optional'](Re))],exports['SheetCollaborationEntity']);function _0x4a0f(_0x17d491,_0xf2c52e){const _0x253085=_0x2530();return _0x4a0f=function(_0x4a0f58,_0xc6a14a){_0x4a0f58=_0x4a0f58-0x83;let _0x480f1c=_0x253085[_0x4a0f58];return _0x480f1c;},_0x4a0f(_0x17d491,_0xf2c52e);}var qs=Object['defineProperty'],zs=Object[_0x4d97e8(0x100)],Js=(_0x4d6c0c,_0x190085,_0x1e73ba,_0x3d1d76)=>{const _0x2bc476=_0x4d97e8;for(var _0x5f352d=_0x3d1d76>0x1?void 0x0:_0x3d1d76?zs(_0x190085,_0x1e73ba):_0x190085,_0xf4c745=_0x4d6c0c[_0x2bc476(0x424)]-0x1,_0x42933e;_0xf4c745>=0x0;_0xf4c745--)(_0x42933e=_0x4d6c0c[_0xf4c745])&&(_0x5f352d=(_0x3d1d76?_0x42933e(_0x190085,_0x1e73ba,_0x5f352d):_0x42933e(_0x5f352d))||_0x5f352d);return _0x3d1d76&&_0x5f352d&&qs(_0x190085,_0x1e73ba,_0x5f352d),_0x5f352d;},Ne=(_0x49c75e,_0x28c9b6)=>(_0x1b3912,_0x327515)=>_0x28c9b6(_0x1b3912,_0x327515,_0x49c75e);exports[_0x4d97e8(0x458)]=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x294e21,_0xe8dd41,_0x4e0894){const _0x19bedb=_0x4d97e8;super(),u(this,_0x19bedb(0x42a),new Map()),u(this,'_entityInit$',new v[(_0x19bedb(0xba))]()),(this['_injector']=_0x294e21,this[_0x19bedb(0x328)]=_0xe8dd41,this[_0x19bedb(0x85)]=_0x4e0894,this['_init']());}[_0x4d97e8(0x337)](){const _0x3bfa42=_0x4d97e8;super[_0x3bfa42(0x337)](),this[_0x3bfa42(0x42a)][_0x3bfa42(0x373)](_0x26ef96=>_0x26ef96[_0x3bfa42(0x337)]()),this[_0x3bfa42(0x42a)][_0x3bfa42(0x456)]();}['getCollabEntity'](_0x470eed){const _0x248997=_0x4d97e8;var _0xb11c14;return(_0xb11c14=this[_0x248997(0x42a)][_0x248997(0x491)](_0x470eed))!=null?_0xb11c14:null;}[_0x4d97e8(0x26a)](_0x4b9ef5){const _0x38429f=_0x4d97e8,_0x372371=this[_0x38429f(0x43f)](_0x4b9ef5);return _0x372371?v['of'](_0x372371):this[_0x38429f(0x3ae)][_0x38429f(0x488)](E[_0x38429f(0x355)](_0x10edd9=>_0x10edd9[_0x38429f(0x331)]===_0x4b9ef5));}[_0x4d97e8(0x27e)](){const _0x4ae706=_0x4d97e8;this[_0x4ae706(0x85)]['getTypeOfUnitAdded$'](a[_0x4ae706(0x262)][_0x4ae706(0x15c)])[_0x4ae706(0x488)](v[_0x4ae706(0x439)](this[_0x4ae706(0x498)]),E[_0x4ae706(0x457)](0x10))[_0x4ae706(0x1c4)](async _0x6f0c00=>{const _0x64ab0b=_0x4ae706,_0x151a0e=_0x6f0c00[_0x64ab0b(0x46c)](),_0x4944fa=await this[_0x64ab0b(0x2d9)](_0x151a0e,$[_0x64ab0b(0x15c)]);this[_0x64ab0b(0x42a)]['set'](_0x151a0e,_0x4944fa);}),this[_0x4ae706(0x85)][_0x4ae706(0x24b)](a[_0x4ae706(0x262)][_0x4ae706(0x15d)])[_0x4ae706(0x488)](v[_0x4ae706(0x439)](this[_0x4ae706(0x498)]),E[_0x4ae706(0x457)](0x10))[_0x4ae706(0x488)](E['filter'](_0x568217=>!_0x568217['getUnitId']()['startsWith']('__')))[_0x4ae706(0x1c4)](async _0x1b1387=>{const _0x591e36=_0x4ae706,_0x4881c8=_0x1b1387['getUnitId'](),_0x33c638=await this[_0x591e36(0x2d9)](_0x4881c8,$[_0x591e36(0x15d)]);this[_0x591e36(0x42a)][_0x591e36(0x24d)](_0x4881c8,_0x33c638);}),v[_0x4ae706(0x1c8)](this['_univerInstanceService'][_0x4ae706(0x89)](a[_0x4ae706(0x262)][_0x4ae706(0x15c)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4ae706(0x262)][_0x4ae706(0x15d)]))[_0x4ae706(0x488)](v[_0x4ae706(0x439)](this['dispose$']))['subscribe'](_0x1e7776=>{const _0x31b40e=_0x4ae706,_0x5ae922=_0x1e7776[_0x31b40e(0x46c)](),_0x41832c=this[_0x31b40e(0x42a)]['get'](_0x5ae922);_0x41832c&&(_0x41832c[_0x31b40e(0x337)](),this[_0x31b40e(0x42a)]['delete'](_0x5ae922));});}async[_0x4d97e8(0x2d9)](_0x4bd38f,_0x1a5a30){const _0x428a4d=_0x4d97e8,_0x34fcda=await this[_0x428a4d(0x328)][_0x428a4d(0x1e1)](_0x4bd38f),_0x2b7a63=this['_injector'][_0x428a4d(0x309)](this[_0x428a4d(0x47b)](_0x1a5a30),_0x4bd38f,_0x1a5a30,_0x34fcda);return await _0x2b7a63[_0x428a4d(0x32b)](),this[_0x428a4d(0x3ae)]['next'](_0x2b7a63),_0x2b7a63;}[_0x4d97e8(0x47b)](_0x173552){const _0x12d9c3=_0x4d97e8;switch(_0x173552){case $[_0x12d9c3(0x15d)]:return exports[_0x12d9c3(0x21b)];case $['UNIVER_SHEET']:return exports[_0x12d9c3(0x1eb)];default:throw new Error(_0x12d9c3(0x123)+_0x173552);}}},exports[_0x4d97e8(0x458)]=Js([Ne(0x0,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Ne(0x1,a[_0x4d97e8(0x13d)](exports['CollaborationSessionService'])),Ne(0x2,a[_0x4d97e8(0x248)])],exports[_0x4d97e8(0x458)]);const ct=['purple300',_0x4d97e8(0x281),'verdancy600',_0x4d97e8(0x15f),_0x4d97e8(0x277),_0x4d97e8(0xed)];class Je extends a[_0x4d97e8(0x39c)]{constructor(){const _0x1ed9ac=_0x4d97e8;super(...arguments),u(this,_0x1ed9ac(0x42e),new Map()),u(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x20b53b){const _0x1ec11f=_0x4d97e8;if(this[_0x1ec11f(0x42e)][_0x1ec11f(0x477)](_0x20b53b))return this[_0x1ec11f(0x42e)]['get'](_0x20b53b);const _0x129946=ct[this[_0x1ec11f(0x147)]];return this[_0x1ec11f(0x147)]=(this[_0x1ec11f(0x147)]+0x1)%ct[_0x1ec11f(0x424)],this['_assignedColors'][_0x1ec11f(0x24d)](_0x20b53b,_0x129946),_0x129946;}}var Zs=Object['defineProperty'],Qs=Object['getOwnPropertyDescriptor'],ei=(_0x18d280,_0x1eb6e6,_0x4284d5,_0x209236)=>{const _0x482021=_0x4d97e8;for(var _0x540532=_0x209236>0x1?void 0x0:_0x209236?Qs(_0x1eb6e6,_0x4284d5):_0x1eb6e6,_0x10e996=_0x18d280[_0x482021(0x424)]-0x1,_0x322954;_0x10e996>=0x0;_0x10e996--)(_0x322954=_0x18d280[_0x10e996])&&(_0x540532=(_0x209236?_0x322954(_0x1eb6e6,_0x4284d5,_0x540532):_0x322954(_0x540532))||_0x540532);return _0x209236&&_0x540532&&Zs(_0x1eb6e6,_0x4284d5,_0x540532),_0x540532;},K=(_0x188067,_0x1660e9)=>(_0x178fbf,_0x3d457c)=>_0x1660e9(_0x178fbf,_0x3d457c,_0x188067);const ti=0x12c,si=0x64;let ke=class extends a['RxDisposable']{constructor(_0x40dbc4,_0x4e1f1a,_0x18d0e5,_0x3f55bc,_0x51bfe4,_0x4bf41c,_0x2bfc0f,_0x5e80f6,_0x4be608){const _0x185217=_0x4d97e8;super(),u(this,_0x185217(0x44d),!0x1),u(this,'_init',!0x1),u(this,_0x185217(0x4aa),new v[(_0x185217(0x114))](new Map())),u(this,'cursorInfo$',this[_0x185217(0x4aa)][_0x185217(0x144)]()),u(this,_0x185217(0x494),new v['BehaviorSubject']([])),u(this,_0x185217(0x227),this[_0x185217(0x494)][_0x185217(0x488)](v['debounceTime'](ti))),u(this,_0x185217(0x256),a[_0x185217(0x395)](_0x336fc1=>{const _0x225a69=_0x185217,_0x37b706={'eventID':_[_0x225a69(0x49e)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x225a69(0x331)],'memberID':this[_0x225a69(0x31e)][_0x225a69(0x346)](),'selection':yt(_0x336fc1)}};this['_session']['send'](_0x37b706,this[_0x225a69(0x331)]);},si)),(this[_0x185217(0x331)]=_0x40dbc4,this[_0x185217(0x31e)]=_0x4e1f1a,this[_0x185217(0x2cd)]=_0x18d0e5,this[_0x185217(0x1cd)]=_0x3f55bc,this[_0x185217(0x3a7)]=_0x51bfe4,this[_0x185217(0xa4)]=_0x4bf41c,this['_transformService']=_0x2bfc0f,this[_0x185217(0x85)]=_0x5e80f6,this[_0x185217(0x1c7)]=_0x4be608);}get[_0x4d97e8(0x473)](){const _0x5c7581=_0x4d97e8;return this['_cursorInfo$'][_0x5c7581(0x2af)]();}get['roomMembers'](){const _0x385ba7=_0x4d97e8;return this['_roomMembers$'][_0x385ba7(0x2af)]();}['dispose'](){const _0x57a4d1=_0x4d97e8;super['dispose'](),this[_0x57a4d1(0x4aa)][_0x57a4d1(0x120)](new Map()),this[_0x57a4d1(0x4aa)][_0x57a4d1(0x370)](),this['_roomMembers$'][_0x57a4d1(0x120)]([]),this[_0x57a4d1(0x494)][_0x57a4d1(0x370)]();}[_0x4d97e8(0x32b)](){const _0x492dad=_0x4d97e8;this[_0x492dad(0x27e)]||(this[_0x492dad(0x27e)]=!0x0,this['_session']['sessionStatus$'][_0x492dad(0x488)](v[_0x492dad(0x439)](this[_0x492dad(0x498)]))[_0x492dad(0x1c4)](_0x349d4d=>{const _0x16e276=_0x492dad;_0x349d4d===H[_0x16e276(0x2ee)]?this[_0x16e276(0x3ea)]():this[_0x16e276(0x191)]();}),this[_0x492dad(0x31e)]['event$']['pipe'](v['takeUntil'](this[_0x492dad(0x498)]))['subscribe'](_0x5ec018=>{const _0x4b0583=_0x492dad,_0x5c6113=_0x5ec018[_0x4b0583(0x445)];_0x5c6113===_[_0x4b0583(0x49e)][_0x4b0583(0x415)]&&this[_0x4b0583(0x15b)](_0x5ec018),_0x5c6113===_['CollaborationEvent'][_0x4b0583(0xf4)]&&this[_0x4b0583(0x365)](_0x5ec018);}),this[_0x492dad(0x1e2)](this[_0x492dad(0x1c7)]['onCommandExecuted'](_0x55cb69=>{const _0x1b5ac7=_0x492dad,_0x458695=_0x55cb69['params'];_0x458695!=null&&this['_online']&&_0x55cb69['id']===se[_0x1b5ac7(0x1f3)]['id']&&_0x458695[_0x1b5ac7(0x3f2)]===this['unitID']&&_0x458695['isEditing']===!0x1&&this['_updateLocalCursor'](_0x458695[_0x1b5ac7(0x16e)]);})),this['_syncEditingCollabCursorService'][_0x492dad(0xbc)][_0x492dad(0x488)](v['takeUntil'](this[_0x492dad(0x498)]))[_0x492dad(0x1c4)](_0x5cdce3=>{const _0x4e7ab7=_0x492dad;if((_0x5cdce3==null?void 0x0:_0x5cdce3[_0x4e7ab7(0x331)])!==this[_0x4e7ab7(0x331)])return;const _0x456bf3={'eventID':_[_0x4e7ab7(0x49e)][_0x4e7ab7(0x415)],'data':_0x5cdce3};this[_0x4e7ab7(0x15b)](_0x456bf3);}),this['disposeWithMe'](this[_0x492dad(0x1c7)][_0x492dad(0x106)](_0x249c99=>{const _0x38d3c3=_0x492dad;if(_0x249c99[_0x38d3c3(0x141)]==null)return;const _0x46cf97=_0x249c99[_0x38d3c3(0x141)];if(_0x249c99['id']!==se[_0x38d3c3(0x454)]['id']||_0x46cf97[_0x38d3c3(0x3f2)]!==this['unitID'])return;const _0x18f64d={'id':_0x38d3c3(0x242),'params':_0x46cf97},_0x278bf9=this[_0x38d3c3(0x473)];for(const [_0x12409c,_0x207b26]of _0x278bf9){const _0x38330f={'id':_0x38d3c3(0x242),'params':{'unitId':this[_0x38d3c3(0x331)],'actions':null,'textRanges':_0x207b26['ranges']}},_0x54d8e4=this[_0x38d3c3(0x165)][_0x38d3c3(0x84)](_0x18f64d,_0x38330f,!0x1);if(_[_0x38d3c3(0x20c)](_0x54d8e4))throw _0x54d8e4[_0x38d3c3(0x497)];_0x278bf9[_0x38d3c3(0x24d)](_0x12409c,{..._0x207b26,'ranges':_0x54d8e4[_0x38d3c3(0x1a9)][_0x38d3c3(0x141)][_0x38d3c3(0x339)]});}queueMicrotask(()=>{const _0x12a766=_0x38d3c3;this[_0x12a766(0x4aa)]['next'](_0x278bf9);});})));}[_0x4d97e8(0x15b)](_0x563ece){const _0x607890=_0x4d97e8;var _0x26c856,_0x389350;const {memberID:_0xbac1e,selection:_0x133e2b}=_0x563ece[_0x607890(0x201)],_0xa5cf0f=Hs(_0x133e2b),_0x1a5153=(_0x389350=(_0x26c856=this['_memberService'][_0x607890(0x14a)](this[_0x607890(0x331)],_0xbac1e))==null?void 0x0:_0x26c856[_0x607890(0x10f)])!=null?_0x389350:_0x607890(0x3aa),_0x5ea2a2={'color':this[_0x607890(0x1cd)][_0x607890(0x1c2)](_0xbac1e),'name':_0x1a5153,'ranges':_0xa5cf0f},_0x33ac57=this[_0x607890(0x473)];_0x33ac57['set'](_0xbac1e,_0x5ea2a2),this[_0x607890(0x4aa)]['next'](_0x33ac57);}['_onCursorDelete'](_0x33cf22){const _0x33d849=_0x4d97e8,{memberID:_0x428b97}=_0x33cf22[_0x33d849(0x201)],_0x142dcc=this[_0x33d849(0x473)];_0x142dcc[_0x33d849(0x1b2)](_0x428b97),this[_0x33d849(0x4aa)][_0x33d849(0x120)](_0x142dcc);}[_0x4d97e8(0x3ea)](){const _0x568fdb=_0x4d97e8;var _0x41d6d8;if(this[_0x568fdb(0x44d)]=!0x0,((_0x41d6d8=this[_0x568fdb(0x85)]['getFocusedUnit']())==null?void 0x0:_0x41d6d8[_0x568fdb(0x46c)]())!==this[_0x568fdb(0x331)])return;const _0x41f087=this[_0x568fdb(0x2cd)]['get'](se[_0x568fdb(0x428)])['getDocRanges']();Array['isArray'](_0x41f087)&&_0x41f087['length']>0x0&&this[_0x568fdb(0x256)](_0x41f087);}[_0x4d97e8(0x191)](){const _0x5c64bb=_0x4d97e8;this[_0x5c64bb(0x44d)]=!0x1;}};ke=ei([K(0x2,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),K(0x3,a[_0x4d97e8(0x13d)](Je)),K(0x4,a[_0x4d97e8(0x13d)](q)),K(0x5,a[_0x4d97e8(0x13d)](qe)),K(0x6,_['ITransformService']),K(0x7,a[_0x4d97e8(0x248)]),K(0x8,a[_0x4d97e8(0x433)])],ke);var ii=Object[_0x4d97e8(0x8e)],ni=Object[_0x4d97e8(0x100)],ri=(_0x1f7464,_0x47673b,_0x2ca54e,_0x54d5a1)=>{const _0x34e69b=_0x4d97e8;for(var _0x622867=_0x54d5a1>0x1?void 0x0:_0x54d5a1?ni(_0x47673b,_0x2ca54e):_0x47673b,_0x378a50=_0x1f7464[_0x34e69b(0x424)]-0x1,_0x5a53e8;_0x378a50>=0x0;_0x378a50--)(_0x5a53e8=_0x1f7464[_0x378a50])&&(_0x622867=(_0x54d5a1?_0x5a53e8(_0x47673b,_0x2ca54e,_0x622867):_0x5a53e8(_0x622867))||_0x622867);return _0x54d5a1&&_0x622867&&ii(_0x47673b,_0x2ca54e,_0x622867),_0x622867;},Q=(_0x47098c,_0xe9b18d)=>(_0x459509,_0x57f19c)=>_0xe9b18d(_0x459509,_0x57f19c,_0x47098c);const oi=0x12c,ai=0x64,ci=()=>{let _0xecf1be=[],_0x497d63=!0x1;return _0x3b5675=>{const _0x348874=_0x4a0f;_0xecf1be[_0x348874(0x29b)](_0x3b5675),_0x497d63||(_0x497d63=!0x0,setTimeout(()=>{const _0x22a68c=_0x348874;_0xecf1be[_0x22a68c(0x373)](_0x284e20=>_0x284e20()),_0xecf1be=[],_0x497d63=!0x1;}));};};let Be=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x29ccfc,_0x2d40ce,_0x354585,_0x47c188,_0x3f2652,_0x423230,_0x48e54b,_0x469be3){const _0x292881=_0x4d97e8;super(),u(this,'_online',!0x1),u(this,_0x292881(0x27e),!0x1),u(this,_0x292881(0x4aa),new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this['_cursorInfo$'][_0x292881(0x144)]()),u(this,_0x292881(0x494),new v[(_0x292881(0x114))]([])),u(this,'roomMembers$',this[_0x292881(0x494)][_0x292881(0x488)](v[_0x292881(0x231)](oi))),u(this,_0x292881(0x256),a['debounce']((_0x39218d,_0x161f74)=>{const _0x25ebbf=_0x292881,_0x58b4c3={'eventID':_[_0x25ebbf(0x49e)][_0x25ebbf(0x415)],'data':{'unitID':this['unitID'],'memberID':this[_0x25ebbf(0x31e)][_0x25ebbf(0x346)](),'selection':et[_0x25ebbf(0x14c)](_0x39218d,_0x161f74['range'])}};this[_0x25ebbf(0x31e)][_0x25ebbf(0x3d6)](_0x58b4c3,this[_0x25ebbf(0x331)]);},ai)),(this[_0x292881(0x331)]=_0x29ccfc,this['_session']=_0x2d40ce,this[_0x292881(0x2cd)]=_0x354585,this[_0x292881(0x1cd)]=_0x47c188,this['_memberService']=_0x3f2652,this[_0x292881(0x85)]=_0x423230,this['_commandService']=_0x48e54b,this[_0x292881(0x9b)]=_0x469be3);}get[_0x4d97e8(0x473)](){const _0x1b2a72=_0x4d97e8;return this['_cursorInfo$'][_0x1b2a72(0x2af)]();}get[_0x4d97e8(0x2be)](){const _0x4e4d47=_0x4d97e8;return this[_0x4e4d47(0x494)]['getValue']();}['dispose'](){const _0x197594=_0x4d97e8;super[_0x197594(0x337)](),this[_0x197594(0x4aa)][_0x197594(0x120)](new Map()),this[_0x197594(0x4aa)][_0x197594(0x370)](),this[_0x197594(0x494)][_0x197594(0x120)]([]),this[_0x197594(0x494)][_0x197594(0x370)]();}[_0x4d97e8(0x32b)](){const _0x4a56b8=_0x4d97e8;this[_0x4a56b8(0x27e)]||(this[_0x4a56b8(0x27e)]=!0x0,this[_0x4a56b8(0x31e)][_0x4a56b8(0x13f)]['pipe'](v[_0x4a56b8(0x439)](this['dispose$']))[_0x4a56b8(0x1c4)](_0x2dac28=>{const _0xe32ff9=_0x4a56b8;_0x2dac28===H[_0xe32ff9(0x2ee)]?this[_0xe32ff9(0x3ea)]():this[_0xe32ff9(0x191)]();}),this[_0x4a56b8(0x31e)][_0x4a56b8(0x3e4)][_0x4a56b8(0x488)](v[_0x4a56b8(0x439)](this[_0x4a56b8(0x498)]))[_0x4a56b8(0x1c4)](_0x29c71b=>{const _0x26d1db=_0x4a56b8,_0x28e05b=_0x29c71b[_0x26d1db(0x445)];_0x28e05b===_[_0x26d1db(0x49e)][_0x26d1db(0x415)]&&this['_onCursorUpdate'](_0x29c71b),_0x28e05b===_[_0x26d1db(0x49e)][_0x26d1db(0xf4)]&&this['_onCursorDelete'](_0x29c71b);}),this[_0x4a56b8(0x2c3)](),this[_0x4a56b8(0x1e2)](this[_0x4a56b8(0x1c7)]['onCommandExecuted'](_0x5457b3=>{const _0x1f8b3b=_0x4a56b8;if(this[_0x1f8b3b(0x44d)]&&_0x5457b3['id']===C[_0x1f8b3b(0x420)]['id']&&_0x5457b3[_0x1f8b3b(0x141)][_0x1f8b3b(0x3f2)]===this['unitID']){const _0x1108d2=_0x5457b3[_0x1f8b3b(0x141)];this[_0x1f8b3b(0x256)](_0x1108d2['subUnitId'],_0x1108d2['selections'][0x0]);}})));}[_0x4d97e8(0x15b)](_0x50cc1f){const _0x20242e=_0x4d97e8;var _0xd6f2c,_0x58054c;const {memberID:_0x2e0914,selection:_0x197a03}=_0x50cc1f[_0x20242e(0x201)],{sheetName:_0x15f01d,range:_0x704cc5}=et[_0x20242e(0x2a4)](_0x197a03),_0x19779d={'name':(_0x58054c=(_0xd6f2c=this[_0x20242e(0x3a7)]['getMember'](this[_0x20242e(0x331)],_0x2e0914))==null?void 0x0:_0xd6f2c[_0x20242e(0x10f)])!=null?_0x58054c:_0x20242e(0x3aa),'range':this['_getMergeRange'](_0x15f01d,_0x704cc5),'sheetID':_0x15f01d,'color':this['_colorAssignService'][_0x20242e(0x1c2)](_0x2e0914),'selection':_0x197a03},_0x407f03=this[_0x20242e(0x473)];_0x407f03[_0x20242e(0x24d)](_0x2e0914,_0x19779d),this['_cursorInfo$'][_0x20242e(0x120)](_0x407f03);}['_onCursorDelete'](_0x2943c9){const _0x33298b=_0x4d97e8,{memberID:_0x1733ce}=_0x2943c9['data'],_0x5ae80b=this['cursorInfo'];_0x5ae80b[_0x33298b(0x1b2)](_0x1733ce),this[_0x33298b(0x4aa)][_0x33298b(0x120)](_0x5ae80b);}[_0x4d97e8(0x1c5)](_0x95377f,_0x4f4226){const _0x54e17a=_0x4d97e8;var _0x3b86cc,_0x287e5a;const _0x1e0579=(_0x287e5a=(_0x3b86cc=this[_0x54e17a(0x85)][_0x54e17a(0x34d)](this['unitID']))==null?void 0x0:_0x3b86cc['getSheetBySheetId'](_0x95377f))==null?void 0x0:_0x287e5a[_0x54e17a(0x35d)]();return(_0x1e0579==null?void 0x0:_0x1e0579['find'](_0x1983f1=>a['Rectangle'][_0x54e17a(0x1c1)](_0x1983f1,_0x4f4226)))||_0x4f4226;}[_0x4d97e8(0x2c3)](){const _0x2c92ee=_0x4d97e8,_0x49a80f=new a[(_0x2c92ee(0x1bf))](),_0x4622be=ci(),_0x5cf569=()=>{const _0x4df510=_0x2c92ee;_0x49a80f['dispose']();const _0x58ecd3=(_0x5b0eb7,_0x3af1c3,_0x2be28e,_0x4b4825)=>{const _0x40fff0=_0x4a0f;let _0x542fca=[];switch(_0x5b0eb7['id']){case C['EffectRefRangId'][_0x40fff0(0x33a)]:{_0x542fca=C[_0x40fff0(0x241)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)]['DeleteRangeMoveUpCommandId']:{_0x542fca=C[_0x40fff0(0x392)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x1de)]:{_0x542fca=C[_0x40fff0(0x486)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x2fb)]:{_0x542fca=C[_0x40fff0(0x18c)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x18e)]:{_0x542fca=C[_0x40fff0(0x1ef)](_0x5b0eb7,_0x4b4825);break;}case C['EffectRefRangId'][_0x40fff0(0x175)]:{_0x542fca=C['handleInsertRow'](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x20b)]:{_0x542fca=C['handleMoveRange'](_0x5b0eb7,_0x4b4825);break;}case C['EffectRefRangId']['RemoveColCommandId']:{_0x542fca=C[_0x40fff0(0x2b2)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x1ca)]:{_0x542fca=C[_0x40fff0(0x159)](_0x5b0eb7,_0x4b4825);break;}}const _0x6df89c=C['runRefRangeMutations'](_0x542fca,_0x4b4825),_0x22f660=this[_0x40fff0(0x473)][_0x40fff0(0x491)](_0x3af1c3);if(_0x22f660&&_0x6df89c){const _0x77f595={..._0x22f660,'range':_0x6df89c};this[_0x40fff0(0x473)][_0x40fff0(0x24d)](_0x3af1c3,_0x77f595),_0x4622be(()=>{const _0x2ef62a=_0x40fff0,_0x7aff9a=this[_0x2ef62a(0x9b)][_0x2ef62a(0x39d)](_0x6df89c,_0x28c79e=>(_0x7aff9a['dispose'](),_0x58ecd3(_0x28c79e,_0x3af1c3,_0x2be28e,_0x6df89c)));_0x49a80f['add'](_0x7aff9a);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x4df510(0x373)]((_0x22642e,_0x439555)=>{const _0x330fb1=_0x4df510,{range:_0x27bf8f,sheetID:_0x5dd801}=_0x22642e,_0xfb597d=this['_refRangeService'][_0x330fb1(0x39d)](_0x27bf8f,_0x169ec7=>(_0xfb597d[_0x330fb1(0x337)](),_0x58ecd3(_0x169ec7,_0x439555,_0x5dd801,_0x27bf8f)));_0x49a80f[_0x330fb1(0x471)](_0xfb597d);});};this[_0x2c92ee(0x1e2)](a[_0x2c92ee(0x257)](this[_0x2c92ee(0x4aa)]['subscribe'](()=>{_0x5cf569();})));}[_0x4d97e8(0x3ea)](){const _0x36b5f9=_0x4d97e8;var _0x3a0a85,_0x711a38;if(this[_0x36b5f9(0x44d)]=!0x0,((_0x3a0a85=this[_0x36b5f9(0x85)]['getFocusedUnit']())==null?void 0x0:_0x3a0a85[_0x36b5f9(0x46c)]())!==this[_0x36b5f9(0x331)])return;const _0x503061=(_0x711a38=this['_injector'][_0x36b5f9(0x491)](C['SheetsSelectionsService'])[_0x36b5f9(0x12e)]())==null?void 0x0:_0x711a38[0x0],_0xfab99d=this['_univerInstanceService'][_0x36b5f9(0xdc)](a[_0x36b5f9(0x262)][_0x36b5f9(0x15c)])[_0x36b5f9(0x1fe)]();_0x503061&&_0xfab99d&&this[_0x36b5f9(0x256)](_0xfab99d['getSheetId'](),_0x503061);}['_toggleOffline'](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Q(0x3,a[_0x4d97e8(0x13d)](Je)),Q(0x4,a[_0x4d97e8(0x13d)](q)),Q(0x5,a[_0x4d97e8(0x248)]),Q(0x6,a[_0x4d97e8(0x433)]),Q(0x7,a['Inject'](C[_0x4d97e8(0x47e)]))],Be);var li=Object[_0x4d97e8(0x8e)],hi=Object['getOwnPropertyDescriptor'],_i=(_0x498269,_0x41516d,_0x273525,_0x16f6fb)=>{for(var _0xf7c000=_0x16f6fb>0x1?void 0x0:_0x16f6fb?hi(_0x41516d,_0x273525):_0x41516d,_0x1aec5f=_0x498269['length']-0x1,_0x4d0085;_0x1aec5f>=0x0;_0x1aec5f--)(_0x4d0085=_0x498269[_0x1aec5f])&&(_0xf7c000=(_0x16f6fb?_0x4d0085(_0x41516d,_0x273525,_0xf7c000):_0x4d0085(_0xf7c000))||_0xf7c000);return _0x16f6fb&&_0xf7c000&&li(_0x41516d,_0x273525,_0xf7c000),_0xf7c000;},Me=(_0x161a2d,_0x15a261)=>(_0x307570,_0x31d6e5)=>_0x15a261(_0x307570,_0x31d6e5,_0x161a2d);let ne=class extends a['RxDisposable']{constructor(_0x2ba799,_0x45ff76,_0x49adba){const _0x311ead=_0x4d97e8;super(),u(this,'_entities',new Map()),u(this,_0x311ead(0x3ae),new v[(_0x311ead(0xba))]()),(this['_univerInstanceService']=_0x2ba799,this[_0x311ead(0x2cd)]=_0x45ff76,this[_0x311ead(0x328)]=_0x49adba,this['_init']());}[_0x4d97e8(0x337)](){const _0x378739=_0x4d97e8;super[_0x378739(0x337)](),this[_0x378739(0x3ae)][_0x378739(0x370)](),this[_0x378739(0x42a)][_0x378739(0x373)](_0x3df6c1=>_0x3df6c1[_0x378739(0x337)]());}[_0x4d97e8(0x2bd)](_0x5e8c32){const _0x57ba69=_0x4d97e8;return this[_0x57ba69(0x42a)][_0x57ba69(0x477)](_0x5e8c32)?this[_0x57ba69(0x42a)][_0x57ba69(0x491)](_0x5e8c32)[_0x57ba69(0x3d7)]:this[_0x57ba69(0x3ae)]['pipe'](v[_0x57ba69(0x355)](_0x57e1e2=>_0x57e1e2[_0x57ba69(0x331)]===_0x5e8c32),v[_0x57ba69(0x8a)](_0x2a4a92=>_0x2a4a92['cursorInfo$']));}[_0x4d97e8(0x27e)](){const _0x2a5fb2=_0x4d97e8;this[_0x2a5fb2(0x85)]['getTypeOfUnitAdded$'](a[_0x2a5fb2(0x262)][_0x2a5fb2(0x15c)])[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x439)](this[_0x2a5fb2(0x498)]))[_0x2a5fb2(0x1c4)](async _0x410cbb=>{const _0x4dad14=_0x2a5fb2,_0x484fb8=_0x410cbb[_0x4dad14(0x46c)](),_0x1cac1d=await this[_0x4dad14(0x3f4)](_0x484fb8);this[_0x4dad14(0x3ae)]['next'](_0x1cac1d),this[_0x4dad14(0x42a)][_0x4dad14(0x24d)](_0x484fb8,_0x1cac1d);}),this['_univerInstanceService'][_0x2a5fb2(0x24b)](a[_0x2a5fb2(0x262)]['UNIVER_DOC'])[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x439)](this[_0x2a5fb2(0x498)]))[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x355)](_0x1e2429=>!_0x1e2429['getUnitId']()[_0x2a5fb2(0x367)]('__')))[_0x2a5fb2(0x1c4)](async _0x16b9eb=>{const _0x16acea=_0x2a5fb2,_0x3d2982=_0x16b9eb[_0x16acea(0x46c)](),_0x386c4f=await this['_startDocCollabCursor'](_0x3d2982);this[_0x16acea(0x3ae)][_0x16acea(0x120)](_0x386c4f),this[_0x16acea(0x42a)][_0x16acea(0x24d)](_0x3d2982,_0x386c4f);}),v[_0x2a5fb2(0x1c8)](this[_0x2a5fb2(0x85)][_0x2a5fb2(0x89)](a[_0x2a5fb2(0x262)][_0x2a5fb2(0x15d)]),this[_0x2a5fb2(0x85)][_0x2a5fb2(0x89)](a[_0x2a5fb2(0x262)][_0x2a5fb2(0x15c)]))[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x439)](this[_0x2a5fb2(0x498)]))[_0x2a5fb2(0x1c4)](_0x19581d=>{const _0x58f81f=_0x2a5fb2,_0x4be27c=_0x19581d[_0x58f81f(0x46c)](),_0x5761c8=this[_0x58f81f(0x42a)][_0x58f81f(0x491)](_0x4be27c);_0x5761c8&&(_0x5761c8[_0x58f81f(0x337)](),this['_entities']['delete'](_0x4be27c));});}async[_0x4d97e8(0x3f4)](_0x53606e){const _0x580f88=_0x4d97e8,_0x411d2e=await this['_collabSessionService'][_0x580f88(0x1e1)](_0x53606e),_0x5d0e80=this[_0x580f88(0x2cd)][_0x580f88(0x309)](Be,_0x53606e,_0x411d2e);return _0x5d0e80[_0x580f88(0x32b)](),_0x5d0e80;}async[_0x4d97e8(0x3a9)](_0x7b45fb){const _0x5e4671=_0x4d97e8,_0x1cabce=await this[_0x5e4671(0x328)][_0x5e4671(0x1e1)](_0x7b45fb),_0x238634=this['_injector']['createInstance'](ke,_0x7b45fb,_0x1cabce);return _0x238634[_0x5e4671(0x32b)](),_0x238634;}};ne=_i([Me(0x0,a[_0x4d97e8(0x248)]),Me(0x1,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Me(0x2,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x270)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x210ec9,_0x306d74){const _0x212b19=_0x4d97e8;let {radius:_0x10409b,width:_0x1f1ae7,height:_0x772550}=_0x306d74;_0x10409b=_0x10409b!=null?_0x10409b:0x0,_0x1f1ae7=_0x1f1ae7!=null?_0x1f1ae7:0x1e,_0x772550=_0x772550!=null?_0x772550:0x1e;let _0x566a3e=0x0,_0xa7b56c=0x0,_0x6ab4f8=0x0;_0x566a3e=_0xa7b56c=_0x6ab4f8=Math[_0x212b19(0x18b)](_0x10409b,_0x1f1ae7/0x2,_0x772550/0x2),_0x210ec9[_0x212b19(0x136)](),_0x210ec9[_0x212b19(0x3fa)](_0x566a3e,0x0),_0x210ec9[_0x212b19(0x3b8)](_0x1f1ae7-_0xa7b56c,0x0),_0x210ec9[_0x212b19(0x24f)](_0x1f1ae7-_0xa7b56c,_0xa7b56c,_0xa7b56c,Math['PI']*0x3/0x2,0x0,!0x1),_0x210ec9['lineTo'](_0x1f1ae7,_0x772550-_0x6ab4f8),_0x210ec9[_0x212b19(0x24f)](_0x1f1ae7-_0x6ab4f8,_0x772550-_0x6ab4f8,_0x6ab4f8,0x0,Math['PI']/0x2,!0x1),_0x210ec9[_0x212b19(0x3b8)](0x0,_0x772550),_0x210ec9[_0x212b19(0x3b8)](0x0,_0x566a3e),_0x210ec9[_0x212b19(0x24f)](_0x566a3e,_0x566a3e,_0x566a3e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x210ec9[_0x212b19(0x333)](),_0x306d74[_0x212b19(0x45b)]&&(_0x210ec9[_0x212b19(0x23e)](),_0x210ec9[_0x212b19(0x1ee)]=_0x306d74[_0x212b19(0x45b)],_0x306d74[_0x212b19(0x22e)]===_0x212b19(0x2e2)?_0x210ec9['fill'](_0x212b19(0x2e2)):_0x210ec9[_0x212b19(0x45b)](),_0x210ec9[_0x212b19(0x3fd)]());}class Oe extends D[_0x4d97e8(0xa2)]{constructor(_0x2a0557,_0x40ec8d){const _0x5d51c9=_0x4d97e8;super(_0x2a0557,_0x40ec8d),u(this,'color'),u(this,_0x5d51c9(0x149)),(this[_0x5d51c9(0x441)]=_0x40ec8d==null?void 0x0:_0x40ec8d['color'],this['text']=_0x40ec8d==null?void 0x0:_0x40ec8d['text']);}static[_0x4d97e8(0x17d)](_0x2b6ad9,_0x56f2e5){const _0x46791f=_0x4d97e8,{text:_0x50434e,color:_0x566b51}=_0x56f2e5;_0x2b6ad9['save'](),_0x2b6ad9[_0x46791f(0x2c5)]=_0x46791f(0x296);const _0x24e653=_0x2b6ad9[_0x46791f(0x30c)](_0x50434e)[_0x46791f(0x2fe)],_0x42f673=Math[_0x46791f(0x18b)](_0x24e653+0x2*Ae,lt);di(_0x2b6ad9,{'height':de,'radius':0x4,'width':_0x42f673,'fill':_0x566b51,'evented':!0x1}),_0x2b6ad9[_0x46791f(0x1ee)]='#FFF';const _0x16a62c=Ae,_0x47b98f=de-ui,_0x37505b=lt-0x2*Ae;if(_0x24e653>_0x37505b){let _0x41540a='',_0x3e0a3c=0x0;for(const _0xc5992c of _0x50434e){const _0x10cd0d=_0x2b6ad9['measureText'](_0xc5992c)[_0x46791f(0x2fe)];if(_0x3e0a3c+_0x10cd0d<=_0x37505b-_0x2b6ad9[_0x46791f(0x30c)](_0x46791f(0x259))['width'])_0x41540a+=_0xc5992c,_0x3e0a3c+=_0x10cd0d;else{_0x41540a+=_0x46791f(0x259);break;}}_0x2b6ad9['fillText'](_0x41540a,_0x16a62c,_0x47b98f);}else _0x2b6ad9[_0x46791f(0x304)](_0x50434e,_0x16a62c,_0x47b98f);_0x2b6ad9[_0x46791f(0x3fd)]();}[_0x4d97e8(0x22a)](_0x5311b4){const _0xf0a049=_0x4d97e8;Oe[_0xf0a049(0x17d)](_0x5311b4,this);}}const Le='collab-text-anchor-',Si=_0x4d97e8(0x25e),vi='collab-rect-range-',le=0x6,gi=1.5,je=0x4,mi=1.5,fi='rgba(255,\x20255,\x20255,\x200.01)';class ht{constructor(_0x1d59be,_0x28e208,_0x425923,_0x3e9f36){const _0xc1e05d=_0x4d97e8;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0xc1e05d(0x156),null),u(this,'_anchorDot',null),u(this,'_hideTimer',null),u(this,'_eventUnsubscribe',null),(this[_0xc1e05d(0x193)]=_0x1d59be,this[_0xc1e05d(0x389)]=_0x28e208,this[_0xc1e05d(0x1c0)]=_0x425923,this[_0xc1e05d(0x2c7)]=_0x3e9f36,this[_0xc1e05d(0xde)]());}set['_hover'](_0x49db16){const _0x2d0844=_0x4d97e8;_0x49db16?(this[_0x2d0844(0x1d3)]&&this[_0x2d0844(0x1d3)][_0x2d0844(0x202)](),this[_0x2d0844(0x156)]&&this[_0x2d0844(0x156)][_0x2d0844(0x207)]()):(this['_anchorDot']&&this[_0x2d0844(0x1d3)]['show'](),this[_0x2d0844(0x156)]&&this[_0x2d0844(0x156)][_0x2d0844(0x202)]());}[_0x4d97e8(0x337)](){const _0x28cebf=_0x4d97e8;for(const _0x306279 of this[_0x28cebf(0x2b1)])_0x306279[_0x28cebf(0x337)]();this[_0x28cebf(0x156)]&&this[_0x28cebf(0x156)]['dispose'](),this[_0x28cebf(0x1d3)]&&this[_0x28cebf(0x1d3)][_0x28cebf(0x337)](),this[_0x28cebf(0x12a)]&&this[_0x28cebf(0x12a)]['dispose'](),this[_0x28cebf(0x329)]&&this['_eventUnsubscribe']();}[_0x4d97e8(0xde)](){const _0x584f3a=_0x4d97e8;var _0x1e71b8;const {_docSkeleton:_0x3cf149,_document:_0x781ed6}=this,{color:_0x52ebcd,name:_0x1b39c4,ranges:_0x348669}=this['_cursor'],_0x530907=_0x781ed6['getOffsetConfig'](),{docsLeft:_0x1f362b,docsTop:_0x4ef870}=_0x530907,_0xe15019=new N[(_0x584f3a(0x97))](_0x530907,_0x3cf149);for(const {startOffset:_0x3a4f16,endOffset:_0x3d7cd4,collapsed:_0x3a8867,isActive:_0x34f4be}of _0x348669){const _0x25c415=_0x3cf149['findNodePositionByCharIndex'](_0x3a4f16),_0x162599=_0x3cf149[_0x584f3a(0x1e3)](_0x3d7cd4);if(_0x34f4be){const {contentBoxPointGroup:_0x2117b1}=_0xe15019[_0x584f3a(0x2f0)](_0x162599,_0x162599);if(_0x2117b1[_0x584f3a(0x424)]===0x0)continue;this[_0x584f3a(0x3d2)](_0x52ebcd,_0x2117b1,_0x1f362b,_0x4ef870,_0x1b39c4),this[_0x584f3a(0x329)]=this[_0x584f3a(0x3d8)]();}if(!_0x3a8867&&_0x25c415&&_0x162599){if(N[_0x584f3a(0x3ed)](_0x25c415,_0x162599)){const _0x11d041=new N['NodePositionConvertToRectRange'](_0x530907,_0x3cf149),{pointGroup:_0x32929b}=(_0x1e71b8=_0x11d041['getRangePointData'](_0x25c415,_0x162599))!=null?_0x1e71b8:{};if(_0x32929b==null||_0x32929b['length']===0x0)continue;this[_0x584f3a(0xd5)](_0x52ebcd,_0x32929b,_0x1f362b,_0x4ef870);}else{const {contentBoxPointGroup:_0x39fdec}=_0xe15019['getRangePointData'](_0x25c415,_0x162599);if(_0x39fdec[_0x584f3a(0x424)]===0x0)continue;this[_0x584f3a(0x2ae)](_0x52ebcd,_0x39fdec,_0x1f362b,_0x4ef870);}}}}[_0x4d97e8(0x3d2)](_0x5654ee,_0x13b69d,_0x5c9e9d,_0x20a340,_0x5df4e9){const _0x44f8bc=_0x4d97e8,_0x20f66c=this[_0x44f8bc(0x2e5)](_0x13b69d),{left:_0x2dd8f5,top:_0x331a84,height:_0x217379}=_0x20f66c,_0x2e17a9=this['_getScale'](),_0xbbd719=mi/_0x2e17a9,_0x20b70b=new D[(_0x44f8bc(0x4ad))](Le+a['Tools'][_0x44f8bc(0x423)](le),{'left':_0x2dd8f5+_0x5c9e9d-_0xbbd719,'top':_0x331a84+_0x20a340,'height':_0x217379,'width':gi,'fill':_0x5654ee||D[_0x44f8bc(0x34b)](a['COLORS'][_0x44f8bc(0x161)],0x0),'strokeWidth':_0xbbd719,'stroke':fi,'evented':!0x0});this[_0x44f8bc(0x12a)]=_0x20b70b,this['_scene'][_0x44f8bc(0x246)](_0x20b70b,N[_0x44f8bc(0x119)]);const _0x30970d=new D[(_0x44f8bc(0x4ad))](Le+a[_0x44f8bc(0x378)][_0x44f8bc(0x423)](le),{'left':_0x2dd8f5+_0x5c9e9d-_0xbbd719,'top':_0x331a84+_0x20a340-je/0x2,'height':je,'width':je,'fill':_0x5654ee||D['getColor'](a['COLORS'][_0x44f8bc(0x161)],0x0),'strokeWidth':0x0,'stroke':_0x5654ee||D[_0x44f8bc(0x34b)](a['COLORS'][_0x44f8bc(0x161)],0x0),'evented':!0x1});this[_0x44f8bc(0x1d3)]=_0x30970d,this['_scene']['addObject'](_0x30970d,N[_0x44f8bc(0x119)]);const _0xbbab52=new Oe(Le+a[_0x44f8bc(0x378)][_0x44f8bc(0x423)](le),{'left':_0x2dd8f5+_0x5c9e9d-_0xbbd719,'top':_0x331a84+_0x20a340-de,'text':_0x5df4e9,'color':_0x5654ee});this[_0x44f8bc(0x156)]=_0xbbab52,this[_0x44f8bc(0x389)][_0x44f8bc(0x246)](_0xbbab52,N[_0x44f8bc(0x119)]),this['_hover']=!0x1;}[_0x4d97e8(0x3d8)](){const _0x1d9c96=_0x4d97e8,_0x1eb43d=this[_0x1d9c96(0x12a)][_0x1d9c96(0x46e)]['subscribeEvent'](()=>{const _0x4c19d2=_0x1d9c96;this[_0x4c19d2(0x1aa)]=!0x0;}),_0x25da13=this[_0x1d9c96(0x12a)][_0x1d9c96(0x274)]['subscribeEvent'](()=>{const _0x45edb4=_0x1d9c96;this[_0x45edb4(0x102)]&&clearTimeout(this[_0x45edb4(0x102)]),this[_0x45edb4(0x102)]=setTimeout(()=>{const _0x18a6cb=_0x45edb4;this[_0x18a6cb(0x1aa)]=!0x1;},0x7d0);});return()=>{const _0x604ec1=_0x1d9c96;_0x1eb43d[_0x604ec1(0xf5)](),_0x25da13[_0x604ec1(0xf5)]();};}[_0x4d97e8(0x2ae)](_0x1567c5,_0x3c0713,_0x47d43c,_0x48eafc){const _0x440770=_0x4d97e8,_0x2706d2=new a['ColorKit'](_0x1567c5)[_0x440770(0x137)](0.2)[_0x440770(0x29e)](),_0x4f1c9d=new D['RegularPolygon'](Si+a[_0x440770(0x378)]['generateRandomId'](le),{'pointsGroup':_0x3c0713,'fill':_0x2706d2||D[_0x440770(0x34b)](a[_0x440770(0x419)][_0x440770(0x161)],0.2),'left':_0x47d43c,'top':_0x48eafc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x440770(0x2b1)][_0x440770(0x29b)](_0x4f1c9d),this['_scene'][_0x440770(0x246)](_0x4f1c9d,N[_0x440770(0x119)]);}[_0x4d97e8(0xd5)](_0x419a0c,_0x47375c,_0x2675bb,_0x62c26b){const _0x13d487=_0x4d97e8,_0x121a70=new a[(_0x13d487(0x230))](_0x419a0c)[_0x13d487(0x137)](0.2)[_0x13d487(0x29e)](),_0x424bca=new D[(_0x13d487(0x35f))](vi+a[_0x13d487(0x378)][_0x13d487(0x423)](le),{'pointsGroup':_0x47375c,'fill':_0x121a70||D[_0x13d487(0x34b)](a[_0x13d487(0x419)][_0x13d487(0x161)],0.2),'left':_0x2675bb,'top':_0x62c26b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13d487(0x2b1)][_0x13d487(0x29b)](_0x424bca),this[_0x13d487(0x389)]['addObject'](_0x424bca,N[_0x13d487(0x119)]);}[_0x4d97e8(0x2e5)](_0xe9cd47){const _0x3d1076=_0xe9cd47[0x0],_0x3270ce=_0x3d1076[0x0],_0x262ce3=_0x3d1076[0x2],{x:_0x23b982,y:_0x24527e}=_0x3270ce,{x:_0x120c3b,y:_0x51da34}=_0x262ce3;return{'left':_0x23b982,'top':_0x24527e,'width':_0x120c3b-_0x23b982,'height':_0x51da34-_0x24527e};}['_getScale'](){const _0x538fd5=_0x4d97e8,{scaleX:_0x2a1311,scaleY:_0x5b345b}=this[_0x538fd5(0x389)][_0x538fd5(0x223)]();return Math['max'](_0x2a1311,_0x5b345b);}}var Ii=Object[_0x4d97e8(0x8e)],pi=Object[_0x4d97e8(0x100)],Ci=(_0x383fec,_0x19e169,_0x4c1a99,_0x242309)=>{for(var _0x21d08f=_0x242309>0x1?void 0x0:_0x242309?pi(_0x19e169,_0x4c1a99):_0x19e169,_0x57f9eb=_0x383fec['length']-0x1,_0x24dceb;_0x57f9eb>=0x0;_0x57f9eb--)(_0x24dceb=_0x383fec[_0x57f9eb])&&(_0x21d08f=(_0x242309?_0x24dceb(_0x19e169,_0x4c1a99,_0x21d08f):_0x24dceb(_0x21d08f))||_0x21d08f);return _0x242309&&_0x21d08f&&Ii(_0x19e169,_0x4c1a99,_0x21d08f),_0x21d08f;},ve=(_0x1acc0e,_0x2fe499)=>(_0x59ce98,_0x324171)=>_0x2fe499(_0x59ce98,_0x324171,_0x1acc0e);let Ve=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x4c47d1,_0x3bb9b7,_0x63ef25,_0x2835a6,_0xe2fa7b){const _0x516fb1=_0x4d97e8;super(),u(this,'_cursorShapes',[]),u(this,_0x516fb1(0x27c),[]),(this['_context']=_0x4c47d1,this['_docSkeletonManagerService']=_0x3bb9b7,this['_collabCursorController']=_0x63ef25,this[_0x516fb1(0x1c7)]=_0x2835a6,this[_0x516fb1(0x1d2)]=_0xe2fa7b,this['_init']());}[_0x4d97e8(0x27e)](){const _0xe29874=_0x4d97e8,_0x2101ed=this[_0xe29874(0x2bf)][_0xe29874(0x3f2)],_0x29d44e=this[_0xe29874(0x125)];this['disposeWithMe'](v['combineLatest']([this[_0xe29874(0x33c)][_0xe29874(0x2bd)](_0x2101ed),this['_themeService'][_0xe29874(0x47d)]])[_0xe29874(0x488)](E['map'](([_0x4040f9,_0x436602])=>({'skeleton':_0x29d44e[_0xe29874(0x375)](),'cursors':[..._0x4040f9[_0xe29874(0x108)]()][_0xe29874(0x181)](_0x753e5b=>({..._0x753e5b,'color':_0x436602[_0x753e5b[_0xe29874(0x441)]]}))})))['subscribe'](_0x5e6cff=>{const _0x18148d=_0xe29874;if(this[_0x18148d(0x451)](),_0x5e6cff){const {skeleton:_0x2a9915,cursors:_0x1185a8}=_0x5e6cff;this[_0x18148d(0x440)](_0x2a9915,_0x1185a8);}})),this['_initResize'](),this[_0xe29874(0x134)]();}[_0x4d97e8(0x440)](_0x4c668e,_0x30f997){const _0x3db43e=_0x4d97e8,{scene:_0x5e7b53,mainComponent:_0x58d606}=this[_0x3db43e(0x2bf)],_0x1ae424=_0x30f997[_0x3db43e(0x12b)](_0x1a4675=>new ht(_0x1a4675,_0x5e7b53,_0x4c668e,_0x58d606));this[_0x3db43e(0x271)]=_0x1ae424,this[_0x3db43e(0x27c)]=_0x30f997;}[_0x4d97e8(0x1e0)](){const _0x43a55d=_0x4d97e8;this[_0x43a55d(0x451)]();const {scene:_0x1c1077,mainComponent:_0x3e5f5c}=this[_0x43a55d(0x2bf)],_0xb2e1bf=this['_docSkeletonManagerService'][_0x43a55d(0x375)](),_0x77f1a=this[_0x43a55d(0x27c)][_0x43a55d(0x12b)](_0x457bc0=>new ht(_0x457bc0,_0x1c1077,_0xb2e1bf,_0x3e5f5c));this[_0x43a55d(0x271)]=_0x77f1a;}[_0x4d97e8(0x451)](){const _0x3ac168=_0x4d97e8;this[_0x3ac168(0x271)][_0x3ac168(0x373)](_0x1a4598=>_0x1a4598[_0x3ac168(0x337)]()),this[_0x3ac168(0x271)]=[];}[_0x4d97e8(0x134)](){const _0x1d7f0b=_0x4d97e8,_0x56ec23=[N['SetDocZoomRatioOperation']['id']];this[_0x1d7f0b(0x1e2)](this[_0x1d7f0b(0x1c7)]['onCommandExecuted'](_0x436101=>{const _0x1590e5=_0x1d7f0b;_0x56ec23['includes'](_0x436101['id'])&&_0x436101['params'][_0x1590e5(0x3f2)]===this['_context'][_0x1590e5(0x3f2)]&&this[_0x1590e5(0x1e0)]();}));}[_0x4d97e8(0x345)](){const _0x18b56f=_0x4d97e8;this[_0x18b56f(0x1e2)](a[_0x18b56f(0x273)](this[_0x18b56f(0x2bf)]['engine'][_0x18b56f(0x1a5)])[_0x18b56f(0x488)](E[_0x18b56f(0x355)](_0x296039=>_0x296039[_0x18b56f(0x366)]===D['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),E[_0x18b56f(0x13a)](0x10))[_0x18b56f(0x1c4)](()=>{const _0x4847f0=_0x18b56f;this[_0x4847f0(0x1e0)]();}));}};Ve=Ci([ve(0x1,a[_0x4d97e8(0x13d)](se[_0x4d97e8(0x38e)])),ve(0x2,a['Inject'](ne)),ve(0x3,a[_0x4d97e8(0x433)]),ve(0x4,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x3f3)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends D[_0x4d97e8(0xa2)]{constructor(_0x4f34a5,_0x496fa4){const _0x4a0699=_0x4d97e8;super(_0x4f34a5,_0x496fa4),u(this,_0x4a0699(0xb1)),u(this,_0x4a0699(0xf6),!0x1),u(this,_0x4a0699(0x41a)),u(this,_0x4a0699(0x276),''),u(this,'_labelPosition',_0x4a0699(0x105)),u(this,_0x4a0699(0x194)),(_0x496fa4&&this[_0x4a0699(0x300)](_0x496fa4),this[_0x4a0699(0x46e)][_0x4a0699(0x28f)](()=>this[_0x4a0699(0x300)]({'hovered':!0x0})),this[_0x4a0699(0x274)]['subscribeEvent'](()=>this[_0x4a0699(0x300)]({'hovered':!0x1})));}[_0x4d97e8(0x300)](_0xaaeb0e){const _0x1347f4=_0x4d97e8;var _0x5b1593,_0x22c56a,_0xbd8988,_0x1f4d11,_0x347a1f,_0x1266a4;this[_0x1347f4(0xb1)]=(_0x5b1593=_0xaaeb0e[_0x1347f4(0x441)])!=null?_0x5b1593:this[_0x1347f4(0xb1)],this[_0x1347f4(0xf6)]=(_0x22c56a=_0xaaeb0e[_0x1347f4(0x196)])!=null?_0x22c56a:this[_0x1347f4(0xf6)],this[_0x1347f4(0x41a)]=(_0xbd8988=_0xaaeb0e[_0x1347f4(0x3b9)])!=null?_0xbd8988:this[_0x1347f4(0x41a)],this[_0x1347f4(0x276)]=(_0x1f4d11=_0xaaeb0e['name'])!=null?_0x1f4d11:this[_0x1347f4(0x276)],this[_0x1347f4(0x2f9)]=(_0x347a1f=_0xaaeb0e[_0x1347f4(0x1ab)])!=null?_0x347a1f:this['_labelPosition'],this[_0x1347f4(0x194)]=(_0x1266a4=_0xaaeb0e[_0x1347f4(0x111)])!=null?_0x1266a4:this[_0x1347f4(0x194)],this[_0x1347f4(0x2b9)]({'width':_0xaaeb0e[_0x1347f4(0x2fe)],'height':_0xaaeb0e['height']});}[_0x4d97e8(0x216)](_0xd73cb){const _0x493b93=_0x4d97e8,{row:_0x11f071,column:_0x15dc74}=_0xd73cb;if(_0x11f071>=this[_0x493b93(0x41a)]['startRow']&&_0x11f071<=this[_0x493b93(0x41a)]['endRow']&&_0x15dc74>=this[_0x493b93(0x41a)][_0x493b93(0x42b)]&&_0x15dc74<=this[_0x493b93(0x41a)][_0x493b93(0x4a0)]){this[_0x493b93(0x300)]({'hovered':!0x0});return;}this[_0x493b93(0x300)]({'hovered':!0x1});}[_0x4d97e8(0x11b)](_0x4d91e5){return!0x1;}[_0x4d97e8(0x22a)](_0x49c248){const _0x4c577a=_0x4d97e8;D[_0x4c577a(0x4ad)][_0x4c577a(0x17d)](_0x49c248,{'width':this[_0x4c577a(0x2fe)],'height':this[_0x4c577a(0x474)],'strokeWidth':bi,'stroke':this[_0x4c577a(0xb1)],'evented':!0x1,'fill':this[_0x4c577a(0x194)]}),this[_0x4c577a(0xf6)]&&(_0x49c248[_0x4c577a(0x23e)](),_0x49c248[_0x4c577a(0x177)](0x1,0x0,0x0,0x1,this['width'],this[_0x4c577a(0x2f9)]===_0x4c577a(0x302)?0x0:-de),Oe[_0x4c577a(0x17d)](_0x49c248,{'text':this[_0x4c577a(0x276)],'color':this['_color']}),_0x49c248[_0x4c577a(0x3fd)]());}}var Ti=Object['defineProperty'],Ri=Object[_0x4d97e8(0x100)],Oi=(_0x36d022,_0x31665e,_0x19d07e,_0x18fb62)=>{const _0x71b7aa=_0x4d97e8;for(var _0x3e8617=_0x18fb62>0x1?void 0x0:_0x18fb62?Ri(_0x31665e,_0x19d07e):_0x31665e,_0x7980cf=_0x36d022[_0x71b7aa(0x424)]-0x1,_0x499af3;_0x7980cf>=0x0;_0x7980cf--)(_0x499af3=_0x36d022[_0x7980cf])&&(_0x3e8617=(_0x18fb62?_0x499af3(_0x31665e,_0x19d07e,_0x3e8617):_0x499af3(_0x3e8617))||_0x3e8617);return _0x18fb62&&_0x3e8617&&Ti(_0x31665e,_0x19d07e,_0x3e8617),_0x3e8617;},$e=(_0x47e0b9,_0x4412bf)=>(_0x423dc2,_0x494d8a)=>_0x4412bf(_0x423dc2,_0x494d8a,_0x47e0b9);const Di=0x1389;let We=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x174263,_0x1f88e1,_0x2a48fa,_0x558c51){const _0x36a96f=_0x4d97e8;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x36a96f(0x2bf)]=_0x174263,this[_0x36a96f(0x8d)]=_0x1f88e1,this['_collabCursorController']=_0x2a48fa,this[_0x36a96f(0x1d2)]=_0x558c51,this[_0x36a96f(0x27e)]());}[_0x4d97e8(0x27e)](){const _0x229912=_0x4d97e8;this[_0x229912(0x8d)]['currentSkeleton$']['pipe'](E['takeUntil'](this[_0x229912(0x498)]),E[_0x229912(0x8a)](_0x26da25=>{const _0x114ae2=_0x229912;if(_0x26da25){const _0x1629a7=_0x26da25[_0x114ae2(0x2e1)];return v[_0x114ae2(0x220)](this[_0x114ae2(0x33c)][_0x114ae2(0x2bd)](this[_0x114ae2(0x2bf)][_0x114ae2(0x3f2)]),this[_0x114ae2(0x1d2)][_0x114ae2(0x47d)])[_0x114ae2(0x488)](E[_0x114ae2(0x12b)](([_0x518e70,_0xbdb8dd])=>{const _0x35b4e7=_0x114ae2,_0xa01dd4=new Map();return _0x518e70[_0x35b4e7(0x373)]((_0x5ec135,_0x101c35)=>{const _0x31253c=_0x35b4e7;if(_0x5ec135[_0x31253c(0x409)]===_0x1629a7){const _0xb6cb4={..._0x5ec135};_0xb6cb4[_0x31253c(0x441)]=_0xbdb8dd[_0x5ec135[_0x31253c(0x441)]],_0xa01dd4[_0x31253c(0x24d)](_0x101c35,_0xb6cb4);}}),{'skeleton':_0x26da25,'cursors':_0xa01dd4};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1e9fd3,cursors:_0x235cdd})=>{const _0x31bec9=_0x229912;this['_removeCollabCursors'](),_0x1e9fd3&&this[_0x31bec9(0x440)](_0x1e9fd3,_0x235cdd);}),this[_0x229912(0x8d)]['currentSkeleton$']['subscribe'](_0xfb2d70=>{const _0x684d36=_0x229912;if(_0xfb2d70==null)return;const {skeleton:_0x18614e}=_0xfb2d70,{scene:_0x153b29}=this['_context'];_0x153b29[_0x684d36(0x3fb)][_0x684d36(0x28f)](a[_0x684d36(0x395)](_0x3e9177=>{const _0x3d4b5f=_0x684d36;var _0x529164,_0x57c5f1;const {offsetX:_0x4da9a2,offsetY:_0x1b5354}=_0x3e9177,{x:_0x334255,y:_0x3cd6d2}=_0x153b29[_0x3d4b5f(0x19d)](D[_0x3d4b5f(0x285)]['FromArray']([_0x4da9a2,_0x1b5354])),{scaleX:_0xa41382,scaleY:_0x1e9c2e}=_0x153b29[_0x3d4b5f(0x223)](),_0x3e0c71=_0x153b29['getViewport'](te['VIEWPORT_KEY'][_0x3d4b5f(0x9e)]),_0x4ef109=_0x153b29[_0x3d4b5f(0x466)](D[_0x3d4b5f(0x285)][_0x3d4b5f(0x3a6)]([_0x334255,_0x3cd6d2]),_0x3e0c71),_0x49bdd1=_0x18614e[_0x3d4b5f(0x180)](_0x4da9a2,_0x1b5354,_0xa41382,_0x1e9c2e,_0x4ef109);((_0x529164=this[_0x3d4b5f(0x266)])==null?void 0x0:_0x529164[_0x3d4b5f(0x9a)])===_0x49bdd1[_0x3d4b5f(0x9a)]&&((_0x57c5f1=this[_0x3d4b5f(0x266)])==null?void 0x0:_0x57c5f1[_0x3d4b5f(0x251)])===_0x49bdd1[_0x3d4b5f(0x251)]||this['_cursors']['forEach'](_0x513259=>{const _0x5b16d7=_0x3d4b5f;_0x513259[_0x5b16d7(0x216)](_0x49bdd1);});},0x64));});}[_0x4d97e8(0x440)](_0x194627,_0x365f65){const _0x12368e=_0x4d97e8;var _0x4e5469;const _0x412c47=(_0x4e5469=this['_sheetSkeletonManagerService'][_0x12368e(0x118)]())==null?void 0x0:_0x4e5469['skeleton'];if(!_0x412c47)return;const _0xa18663=this[_0x12368e(0x361)]();if(!_0xa18663)return;this['_cursors'][_0x12368e(0x373)](_0x2e9ecd=>{const _0x7b4d26=_0x12368e;_0x2e9ecd[_0x7b4d26(0x4ae)]();});const {scene:_0x569f8a}=_0xa18663,_0x523aa4=yi(Array[_0x12368e(0x237)](_0x365f65['values']()))[_0x12368e(0x12b)](_0x2ae735=>{const _0x2c31dc=_0x12368e,{color:_0x4a357a,range:_0x2e5615,name:_0x1faa22,selection:_0x3c47d9,sheetID:_0x579c0c}=_0x2ae735,{startColumn:_0x342c25,startRow:_0x3be1cf,endColumn:_0x436082,endRow:_0x14bb69}=_0x2e5615,_0x4f43cc=te['getCoordByCell'](_0x3be1cf,_0x342c25,_0x569f8a,_0x412c47),_0x94ac35=te[_0x2c31dc(0x3be)](_0x14bb69,_0x436082,_0x569f8a,_0x412c47),{columnHeaderHeightAndMarginTop:_0x3847cc}=_0x412c47,{startX:_0x2cd217,startY:_0x5dbdef}=_0x4f43cc,{endX:_0x406c94,endY:_0x4297be}=_0x94ac35,_0x20fe52=_0x406c94-_0x2cd217,_0x2c343b=_0x4297be-_0x5dbdef,_0x12f69d={'labelPosition':_0x5dbdef-_0x3847cc>=de?'top':_0x2c31dc(0x302),'sheetID':_0x579c0c,'range':_0x2e5615,'color':_0x4a357a,'name':_0x1faa22,'selection':_0x3c47d9,'left':_0x2cd217,'top':_0x5dbdef,'width':_0x20fe52,'height':_0x2c343b,'evented':!0x1,'zIndex':Di};return new Pt(_0x1faa22,_0x12f69d);});_0x569f8a[_0x12368e(0x493)](_0x523aa4,Ei),this[_0x12368e(0x27c)]=new Set(_0x523aa4);}['_removeCollabCursors'](){const _0x2778b8=_0x4d97e8;var _0x33e8e5;(_0x33e8e5=this[_0x2778b8(0x27c)])==null||_0x33e8e5[_0x2778b8(0x373)](_0x2d07e8=>_0x2d07e8[_0x2778b8(0x337)]());}[_0x4d97e8(0x361)](){const _0x4a7989=_0x4d97e8;return te[_0x4a7989(0x2e8)](this[_0x4a7989(0x2bf)][_0x4a7989(0x452)],this[_0x4a7989(0x2bf)]);}};We=Oi([$e(0x1,a[_0x4d97e8(0x13d)](te[_0x4d97e8(0x183)])),$e(0x2,a['Inject'](ne)),$e(0x3,a[_0x4d97e8(0x13d)](a['ThemeService']))],We);function yi(_0x517938){const _0x2be843=_0x4d97e8,_0x14e50c=new Map();return _0x517938['forEach'](_0x80aca7=>{const _0x2e0838=_0x4a0f;if(_0x14e50c[_0x2e0838(0x477)](_0x80aca7[_0x2e0838(0x382)])){const _0x32f7d2=_0x14e50c[_0x2e0838(0x491)](_0x80aca7[_0x2e0838(0x382)]);_0x32f7d2[_0x2e0838(0x10f)]+=',\x20'+_0x80aca7['name'];}else _0x14e50c[_0x2e0838(0x24d)](_0x80aca7[_0x2e0838(0x382)],_0x80aca7);}),Array['from'](_0x14e50c[_0x2be843(0x108)]());}var M=function(){const _0x1868f6=_0x4d97e8;return M=Object[_0x1868f6(0xce)]||function(_0x25aabc){const _0x8f8deb=_0x1868f6;for(var _0x2ee8b6,_0x5611fc=0x1,_0xedb4be=arguments[_0x8f8deb(0x424)];_0x5611fc<_0xedb4be;_0x5611fc++){_0x2ee8b6=arguments[_0x5611fc];for(var _0x1d74dc in _0x2ee8b6)Object['prototype']['hasOwnProperty']['call'](_0x2ee8b6,_0x1d74dc)&&(_0x25aabc[_0x1d74dc]=_0x2ee8b6[_0x1d74dc]);}return _0x25aabc;},M['apply'](this,arguments);},Ui=function(_0x3437c2,_0x133d0c){const _0x2b7fbd=_0x4d97e8;var _0x1e3c2e={};for(var _0x51abfc in _0x3437c2)Object[_0x2b7fbd(0x43d)]['hasOwnProperty'][_0x2b7fbd(0x1da)](_0x3437c2,_0x51abfc)&&_0x133d0c[_0x2b7fbd(0xc3)](_0x51abfc)<0x0&&(_0x1e3c2e[_0x51abfc]=_0x3437c2[_0x51abfc]);if(_0x3437c2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x488677=0x0,_0x51abfc=Object[_0x2b7fbd(0x1a2)](_0x3437c2);_0x488677<_0x51abfc[_0x2b7fbd(0x424)];_0x488677++)_0x133d0c[_0x2b7fbd(0xc3)](_0x51abfc[_0x488677])<0x0&&Object[_0x2b7fbd(0x43d)][_0x2b7fbd(0x425)][_0x2b7fbd(0x1da)](_0x3437c2,_0x51abfc[_0x488677])&&(_0x1e3c2e[_0x51abfc[_0x488677]]=_0x3437c2[_0x51abfc[_0x488677]]);}return _0x1e3c2e;},Ze=P['forwardRef'](function(_0x4c5885,_0x4258f8){const _0x58b57a=_0x4d97e8;var _0x108dc8=_0x4c5885[_0x58b57a(0x1a8)],_0x4e6692=_0x4c5885['id'],_0x3a2b30=_0x4c5885[_0x58b57a(0x394)],_0x1c115f=_0x4c5885['extend'],_0x16e9de=Ui(_0x4c5885,[_0x58b57a(0x1a8),'id',_0x58b57a(0x394),_0x58b57a(0x16d)]),_0x5c9d64=_0x58b57a(0xae)[_0x58b57a(0x255)](_0x4e6692,'\x20')[_0x58b57a(0x255)](_0x3a2b30||'')[_0x58b57a(0x352)](),_0x3e6d19=P[_0x58b57a(0x1ad)]('_'[_0x58b57a(0x255)](Ni()));return wt(_0x108dc8,''[_0x58b57a(0x255)](_0x4e6692),{'defIds':_0x108dc8[_0x58b57a(0x129)],'idSuffix':_0x3e6d19['current']},M({'ref':_0x4258f8,'className':_0x5c9d64},_0x16e9de),_0x1c115f);});function wt(_0x139a3d,_0x463da6,_0x1410b0,_0x56866a,_0x763344){const _0x4435c6=_0x4d97e8;return P['createElement'](_0x139a3d[_0x4435c6(0x321)],M(M({'key':_0x463da6},Pi(_0x139a3d,_0x1410b0,_0x763344)),_0x56866a),(wi(_0x139a3d,_0x1410b0)[_0x4435c6(0x185)]||[])[_0x4435c6(0x12b)](function(_0x26f7ea,_0x15e4c9){const _0x1f5d83=_0x4435c6;return wt(_0x26f7ea,''['concat'](_0x463da6,'-')[_0x1f5d83(0x255)](_0x139a3d[_0x1f5d83(0x321)],'-')['concat'](_0x15e4c9),_0x1410b0,void 0x0,_0x763344);}));}function Pi(_0x58e293,_0x33595b,_0x26e894){const _0x5667d7=_0x4d97e8;var _0x1dfcf3=M({},_0x58e293[_0x5667d7(0x31c)]);_0x26e894!=null&&_0x26e894[_0x5667d7(0x2ac)]&&_0x1dfcf3[_0x5667d7(0x45b)]===_0x5667d7(0x2ac)&&(_0x1dfcf3[_0x5667d7(0x45b)]=_0x26e894[_0x5667d7(0x2ac)]);var _0x41f628=_0x33595b[_0x5667d7(0x129)];return!_0x41f628||_0x41f628[_0x5667d7(0x424)]===0x0||(_0x58e293[_0x5667d7(0x321)]===_0x5667d7(0x1a1)&&_0x1dfcf3[_0x5667d7(0x45a)]&&(_0x1dfcf3['xlink:href']=_0x1dfcf3[_0x5667d7(0x45a)]+_0x33595b[_0x5667d7(0x217)]),Object['entries'](_0x1dfcf3)[_0x5667d7(0x373)](function(_0x162ba7){const _0x59834d=_0x5667d7;var _0x235071=_0x162ba7[0x0],_0x329a14=_0x162ba7[0x1];typeof _0x329a14=='string'&&(_0x1dfcf3[_0x235071]=_0x329a14[_0x59834d(0x200)](/url\(#(.*)\)/,_0x59834d(0x3db)['concat'](_0x33595b['idSuffix'],')')));})),_0x1dfcf3;}function wi(_0x41ea69,_0x4906a5){const _0x5dd99d=_0x4d97e8;var _0x2137ad,_0x15a926=_0x4906a5[_0x5dd99d(0x129)];return!_0x15a926||_0x15a926['length']===0x0?_0x41ea69:_0x41ea69[_0x5dd99d(0x321)]===_0x5dd99d(0x406)&&(!((_0x2137ad=_0x41ea69[_0x5dd99d(0x185)])===null||_0x2137ad===void 0x0)&&_0x2137ad['length'])?M(M({},_0x41ea69),{'children':_0x41ea69['children'][_0x5dd99d(0x12b)](function(_0x1cd3b1){const _0x589200=_0x5dd99d;return typeof _0x1cd3b1[_0x589200(0x31c)]['id']==_0x589200(0xbf)&&_0x15a926&&_0x15a926['indexOf'](_0x1cd3b1['attrs']['id'])>-0x1?M(M({},_0x1cd3b1),{'attrs':M(M({},_0x1cd3b1['attrs']),{'id':_0x1cd3b1[_0x589200(0x31c)]['id']+_0x4906a5[_0x589200(0x217)]})}):_0x1cd3b1;})}):_0x41ea69;}function Ni(){const _0x5e45ca=_0x4d97e8;return Math[_0x5e45ca(0x2a2)]()[_0x5e45ca(0x33f)](0x24)[_0x5e45ca(0x127)](0x2,0x8);}Ze['displayName']=_0x4d97e8(0x172);var Mi={'tag':_0x4d97e8(0x113),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4d97e8(0x21e)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d97e8(0x3de)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4d97e8(0xb8),'strokeLinejoin':_0x4d97e8(0xb8),'strokeWidth':1.2}}]},{'tag':_0x4d97e8(0x406),'attrs':{},'children':[{'tag':_0x4d97e8(0x34c),'attrs':{'id':_0x4d97e8(0x25d)},'children':[{'tag':_0x4d97e8(0x38b),'attrs':{'fill':_0x4d97e8(0x357),'d':_0x4d97e8(0x2f2)}}]}]}],'defIds':[_0x4d97e8(0x25d)]},Nt=P[_0x4d97e8(0x103)](function(_0x5b48f4,_0x4927ca){const _0x27199d=_0x4d97e8;return P[_0x27199d(0x416)](Ze,Object[_0x27199d(0xce)]({},_0x5b48f4,{'id':_0x27199d(0x21c),'ref':_0x4927ca,'icon':Mi}));});Nt['displayName']=_0x4d97e8(0x434);var Ai={'tag':'svg','attrs':{'fill':_0x4d97e8(0xcd),'viewBox':_0x4d97e8(0x449),'width':_0x4d97e8(0x21e),'height':_0x4d97e8(0x21e)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d97e8(0x372)},'children':[{'tag':'path','attrs':{'stroke':_0x4d97e8(0x1e7),'d':_0x4d97e8(0x3b7),'strokeLinecap':'round','strokeLinejoin':_0x4d97e8(0xb8),'strokeWidth':1.2}}]},{'tag':_0x4d97e8(0x406),'attrs':{},'children':[{'tag':_0x4d97e8(0x34c),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4d97e8(0x38b),'attrs':{'fill':'#fff','d':_0x4d97e8(0x2f2),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4d97e8(0x459)]},Mt=P[_0x4d97e8(0x103)](function(_0x258bb5,_0x230971){const _0x3c4d13=_0x4d97e8;return P[_0x3c4d13(0x416)](Ze,Object[_0x3c4d13(0xce)]({},_0x258bb5,{'id':'on-line-single','ref':_0x230971,'icon':Ai}));});Mt[_0x4d97e8(0x411)]='OnLineSingle';function At(_0x1fa004){const _0x1982db=_0x4d97e8;var _0x5f3d81,_0x2d88de,_0x65d5d1='';if(typeof _0x1fa004=='string'||typeof _0x1fa004==_0x1982db(0x210))_0x65d5d1+=_0x1fa004;else{if(typeof _0x1fa004=='object'){if(Array[_0x1982db(0x38a)](_0x1fa004)){var _0x504135=_0x1fa004[_0x1982db(0x424)];for(_0x5f3d81=0x0;_0x5f3d81<_0x504135;_0x5f3d81++)_0x1fa004[_0x5f3d81]&&(_0x2d88de=At(_0x1fa004[_0x5f3d81]))&&(_0x65d5d1&&(_0x65d5d1+='\x20'),_0x65d5d1+=_0x2d88de);}else{for(_0x2d88de in _0x1fa004)_0x1fa004[_0x2d88de]&&(_0x65d5d1&&(_0x65d5d1+='\x20'),_0x65d5d1+=_0x2d88de);}}}return _0x65d5d1;}function Li(){const _0xce399c=_0x4d97e8;for(var _0x22992c,_0x20b496,_0x1e77b6=0x0,_0x50acac='',_0x4fd0ea=arguments[_0xce399c(0x424)];_0x1e77b6<_0x4fd0ea;_0x1e77b6++)(_0x22992c=arguments[_0x1e77b6])&&(_0x20b496=At(_0x22992c))&&(_0x50acac&&(_0x50acac+='\x20'),_0x50acac+=_0x20b496);return _0x50acac;}const ji=_0x4d97e8(0x282),$i=_0x4d97e8(0x453),Hi=_0x4d97e8(0x33b),xi=_0x4d97e8(0x3ff),ki=_0x4d97e8(0x225),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x4e5a38){const _0x542c0a=_0x4d97e8;switch(_0x4e5a38){case U[_0x542c0a(0x283)]:return _0x542c0a(0x2d8);case U[_0x542c0a(0x4b6)]:return _0x542c0a(0x472);case U[_0x542c0a(0x310)]:return _0x542c0a(0x3c5);case U[_0x542c0a(0x306)]:return _0x542c0a(0x22b);case U['PENDING']:case U['AWAITING']:case U[_0x542c0a(0x380)]:return _0x542c0a(0xa1);case U[_0x542c0a(0x2d5)]:return _0x542c0a(0x16b);}}function Lt(_0xe8896c){const _0x14a45a=_0x4d97e8,{status$:_0x28ccde}=_0xe8896c,_0x2b4a3d=A[_0x14a45a(0x48b)](_0x28ccde,U[_0x14a45a(0x306)]),_0x3132c1=a[_0x14a45a(0x462)](a[_0x14a45a(0x10a)]),_0x34fbad=a['useDependency'](exports[_0x14a45a(0x270)]),_0x59fdf1=_0x2b4a3d!==U['OFFLINE'],_0x5516b0=_0x3132c1['t'](Bi(_0x2b4a3d)),_0x1079d4=Li(he[_0x14a45a(0x160)],{[he['online']]:_0x59fdf1,[he[_0x14a45a(0x27a)]]:!_0x59fdf1}),_0x47458b=_0x59fdf1?P[_0x14a45a(0x416)](Mt,null):P[_0x14a45a(0x416)](Nt,null),_0x82a5ae=P['useCallback'](()=>{const _0x1be147=_0x14a45a;_0x59fdf1||_0x34fbad[_0x1be147(0x229)]();},[_0x59fdf1,_0x34fbad]);function _0x1aee2b(){const _0x5b4cd1=_0x14a45a;return P[_0x5b4cd1(0x416)](_0x5b4cd1(0x479),{'className':_0x1079d4,'onClick':_0x82a5ae},P['createElement'](_0x5b4cd1(0x479),{'className':he['onlineStatusIcon']},_0x47458b),P[_0x5b4cd1(0x416)](_0x5b4cd1(0x479),{'className':he[_0x5b4cd1(0x3b2)]},_0x5516b0));}return _0x59fdf1?_0x1aee2b():P[_0x14a45a(0x416)](X[_0x14a45a(0x264)],{'title':_0x3132c1['t'](_0x14a45a(0x4a8))},_0x1aee2b());}var Vi=Object['defineProperty'],Wi=Object[_0x4d97e8(0x100)],Fi=(_0x10d8a0,_0x3161b3,_0x5583f7,_0x338b0a)=>{const _0x4d513f=_0x4d97e8;for(var _0x219b99=_0x338b0a>0x1?void 0x0:_0x338b0a?Wi(_0x3161b3,_0x5583f7):_0x3161b3,_0x27d58b=_0x10d8a0[_0x4d513f(0x424)]-0x1,_0x16d8d1;_0x27d58b>=0x0;_0x27d58b--)(_0x16d8d1=_0x10d8a0[_0x27d58b])&&(_0x219b99=(_0x338b0a?_0x16d8d1(_0x3161b3,_0x5583f7,_0x219b99):_0x16d8d1(_0x219b99))||_0x219b99);return _0x338b0a&&_0x219b99&&Vi(_0x3161b3,_0x5583f7,_0x219b99),_0x219b99;},ge=(_0x4a098d,_0x44e3e4)=>(_0x28ca97,_0x290e1f)=>_0x44e3e4(_0x28ca97,_0x290e1f,_0x4a098d);exports[_0x4d97e8(0x1b4)]=class extends a[_0x4d97e8(0x39c)]{constructor(_0x153ec7,_0x37e091,_0x37726c,_0x21a0dd){const _0x1a92e1=_0x4d97e8;super(),u(this,_0x1a92e1(0x408),new v[(_0x1a92e1(0x114))](U[_0x1a92e1(0x306)])),(this['_univerInstanceService']=_0x153ec7,this['_uiPartsService']=_0x37e091,this[_0x1a92e1(0x2cd)]=_0x37726c,this[_0x1a92e1(0x320)]=_0x21a0dd,this['_initStatusComponent'](),this[_0x1a92e1(0x107)]());}[_0x4d97e8(0x107)](){const _0x7d1c51=_0x4d97e8;this[_0x7d1c51(0x1e2)](this[_0x7d1c51(0x85)][_0x7d1c51(0x1f5)][_0x7d1c51(0x488)](v[_0x7d1c51(0x8a)](()=>{const _0x371375=_0x7d1c51,_0x21fee8=this['_univerInstanceService'][_0x371375(0x1b0)]();return _0x21fee8?this[_0x371375(0x320)][_0x371375(0x26a)](_0x21fee8[_0x371375(0x46c)]()):v['of'](null);}),v[_0x7d1c51(0x8a)](_0x9f8698=>_0x9f8698?_0x9f8698[_0x7d1c51(0x1dc)]:v['of'](U['NOT_COLLAB'])))['subscribe'](_0x2735ac=>{const _0x4d3f42=_0x7d1c51;this['_status$'][_0x4d3f42(0x120)](_0x2735ac);}));}[_0x4d97e8(0x2e9)](){const _0x5245db=_0x4d97e8;this[_0x5245db(0x1e2)](this[_0x5245db(0x2b3)][_0x5245db(0xd4)](A[_0x5245db(0x132)][_0x5245db(0x23f)],()=>a[_0x5245db(0x35c)](Gi({'status$':this[_0x5245db(0x408)][_0x5245db(0x144)]()}),this['_injector'])));}},exports[_0x4d97e8(0x1b4)]=Fi([ge(0x0,a[_0x4d97e8(0x248)]),ge(0x1,A[_0x4d97e8(0x3e8)]),ge(0x2,a[_0x4d97e8(0x13d)](a['Injector'])),ge(0x3,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x458)]))],exports[_0x4d97e8(0x1b4)]);function Gi(_0x10d1a5){const {status$:_0x272396}=_0x10d1a5;return function(){return P['createElement'](Lt,{'status$':_0x272396});};}const Qe=a[_0x4d97e8(0x290)](_0x4d97e8(0x22c));var Yi=Object[_0x4d97e8(0x8e)],Ki=Object['getOwnPropertyDescriptor'],Xi=(_0x180f24,_0x3755c3,_0x4de9b9,_0x3b1729)=>{const _0x27f0e0=_0x4d97e8;for(var _0x1b8f4f=_0x3b1729>0x1?void 0x0:_0x3b1729?Ki(_0x3755c3,_0x4de9b9):_0x3755c3,_0xd9b0c1=_0x180f24[_0x27f0e0(0x424)]-0x1,_0x5d1f46;_0xd9b0c1>=0x0;_0xd9b0c1--)(_0x5d1f46=_0x180f24[_0xd9b0c1])&&(_0x1b8f4f=(_0x3b1729?_0x5d1f46(_0x3755c3,_0x4de9b9,_0x1b8f4f):_0x5d1f46(_0x1b8f4f))||_0x1b8f4f);return _0x3b1729&&_0x1b8f4f&&Yi(_0x3755c3,_0x4de9b9,_0x1b8f4f),_0x1b8f4f;},ee=(_0x42d15d,_0x43e11b)=>(_0x2e80e9,_0x43c76c)=>_0x43e11b(_0x2e80e9,_0x43c76c,_0x42d15d);exports[_0x4d97e8(0x381)]=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x4d345b,_0x1a848,_0x113903,_0x21d5c3,_0x359b67,_0x1c862d){const _0x20372f=_0x4d97e8;super(),this[_0x20372f(0x3c7)]=_0x4d345b,this[_0x20372f(0x188)]=_0x1a848,this['_commandService']=_0x113903,this[_0x20372f(0x28a)]=_0x21d5c3,this[_0x20372f(0x383)]=_0x359b67,_0x1c862d?_0x1c862d==null||_0x1c862d[_0x20372f(0xa7)]()['then'](()=>this['_init']()):(this[_0x20372f(0x188)][_0x20372f(0x403)]('[DataLoaderController]',_0x20372f(0xf9)),this[_0x20372f(0x27e)]());}async[_0x4d97e8(0x27e)](){const _0x440537=_0x4d97e8,_0x1b1a6e=this[_0x440537(0x3c7)][_0x440537(0x3f9)](_0x440537(0x452)),_0x1635a5=this['_urlService'][_0x440537(0x3f9)](_0x440537(0x366));if(!_0x1b1a6e||!_0x1635a5){this[_0x440537(0x188)][_0x440537(0x403)](_0x440537(0x465),_0x440537(0xb9));return;}switch(Number(_0x1635a5)){case $['UNIVER_SHEET']:{const _0x5cd625=await this[_0x440537(0x1e4)](_0x1b1a6e);this['_setupSubUnitSync'](_0x5cd625);break;}case $['UNIVER_DOC']:{await this[_0x440537(0x418)](_0x1b1a6e);break;}default:{this[_0x440537(0x188)]['error'](_0x440537(0x465),_0x440537(0x377));break;}}}async[_0x4d97e8(0x3ac)](_0x48acbb){const _0x51a207=_0x4d97e8;await this[_0x51a207(0x48d)](_0x48acbb),_0x48acbb[_0x51a207(0x297)][_0x51a207(0x488)](v['takeUntil'](this['dispose$']))[_0x51a207(0x1c4)](_0xcb294=>{const _0x34fce7=_0x51a207;_0xcb294&&this[_0x34fce7(0x2c1)](_0xcb294);}),this[_0x51a207(0x3c7)][_0x51a207(0x41f)][_0x51a207(0x488)](v['takeUntil'](this['dispose$']))[_0x51a207(0x1c4)](()=>this['_updateSubUnitFromURLParams'](_0x48acbb));}[_0x4d97e8(0x2c1)](_0x499ff3,_0x67468a=!0x1){const _0xf46787=_0x4d97e8,_0x531d4a=this[_0xf46787(0x3c7)][_0xf46787(0x3f9)](_0xf46787(0x48c));_0x499ff3[_0xf46787(0x436)]()!==_0x531d4a&&this[_0xf46787(0x3c7)][_0xf46787(0x41e)]('subunit',_0x499ff3[_0xf46787(0x436)](),_0x67468a);}async[_0x4d97e8(0x48d)](_0x415f47){const _0x18fa7d=_0x4d97e8;var _0x14bdb0;const _0x20ad24=this[_0x18fa7d(0x3c7)][_0x18fa7d(0x3f9)](_0x18fa7d(0x48c));if(!_0x20ad24||!_0x415f47['getSheetBySheetId'](_0x20ad24)){const _0x28327e=_0x415f47[_0x18fa7d(0x155)]()[0x0],_0x4a60a5=_0x415f47[_0x18fa7d(0x19e)](_0x28327e);if(!_0x4a60a5)return;this['_updateURLWithCurrentState'](_0x4a60a5,!0x0),await this['_commandService'][_0x18fa7d(0x1b5)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x415f47[_0x18fa7d(0x46c)](),'subUnitId':_0x28327e});return;}((_0x14bdb0=_0x415f47[_0x18fa7d(0x1fe)]())==null?void 0x0:_0x14bdb0[_0x18fa7d(0x436)]())!==_0x20ad24&&await this['_commandService'][_0x18fa7d(0x1b5)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x415f47['getUnitId'](),'subUnitId':_0x20ad24});}async['_loadSheet'](_0x236d78){const _0x2a3698=_0x4d97e8;let _0x3800b8=0x0;const _0x30a095=await this[_0x2a3698(0x28a)]['loadOfflineData'](_0x236d78);return _0x30a095&&(_0x30a095['awaitingChangeset']||_0x30a095[_0x2a3698(0x20f)][_0x2a3698(0x424)]!==0x0)&&(_0x3800b8=_0x30a095[_0x2a3698(0x1e6)]),_0x3800b8===0x0&&this[_0x2a3698(0x188)][_0x2a3698(0x403)]('[DataLoaderController]',_0x2a3698(0x240)),this['_snapshotService']['loadSheet'](_0x236d78,_0x3800b8);}async[_0x4d97e8(0x418)](_0x207dc1){const _0x4c311e=_0x4d97e8;let _0x18fbbe=0x0;const _0x587327=await this[_0x4c311e(0x28a)][_0x4c311e(0x35b)](_0x207dc1);return _0x587327&&(_0x587327[_0x4c311e(0x3e0)]||_0x587327['mutations'][_0x4c311e(0x424)]!==0x0)&&(_0x18fbbe=_0x587327[_0x4c311e(0x1e6)]),_0x18fbbe===0x0&&this[_0x4c311e(0x188)]['debug'](_0x4c311e(0x465),_0x4c311e(0x240)),this[_0x4c311e(0x383)][_0x4c311e(0x489)](_0x207dc1,_0x18fbbe);}},exports['DataLoaderController']=Xi([ee(0x0,Qe),ee(0x1,a[_0x4d97e8(0xeb)]),ee(0x2,a[_0x4d97e8(0x433)]),ee(0x3,a['Inject'](exports[_0x4d97e8(0x18f)])),ee(0x4,a['Inject'](_[_0x4d97e8(0x44a)])),ee(0x5,a[_0x4d97e8(0x444)](Kt[_0x4d97e8(0xc5)]))],exports[_0x4d97e8(0x381)]);var qi=Object[_0x4d97e8(0x8e)],zi=Object[_0x4d97e8(0x100)],Ji=(_0x272803,_0x1da9ae,_0x5bbca8,_0x38650f)=>{for(var _0x369904=_0x38650f>0x1?void 0x0:_0x38650f?zi(_0x1da9ae,_0x5bbca8):_0x1da9ae,_0x573051=_0x272803['length']-0x1,_0x3dda45;_0x573051>=0x0;_0x573051--)(_0x3dda45=_0x272803[_0x573051])&&(_0x369904=(_0x38650f?_0x3dda45(_0x1da9ae,_0x5bbca8,_0x369904):_0x3dda45(_0x369904))||_0x369904);return _0x38650f&&_0x369904&&qi(_0x1da9ae,_0x5bbca8,_0x369904),_0x369904;},_t=(_0x104d03,_0x135917)=>(_0x1a968f,_0x3aa0a8)=>_0x135917(_0x1a968f,_0x3aa0a8,_0x104d03);const Zi=_0x4d97e8(0x12d),Qi=_0x4d97e8(0x221);function _0x2530(){const _0x5c3128=['SNAPSHOT_URL_KEY','_entities','startColumn','permission.content','session.connection-failed','_assignedColors','_snapshotServerService','image/png','onRemoteAck','LIVESHARE_NEW_HOST','ICommandService','OffLineSingle','action','getSheetId','_clearTimeoutTimer','_socket','takeUntil','{fileID}','post','getRenderById','prototype','INGEST','getCollabEntity','_updateCollabCursors','color','@univerjs/drawing','CollaborationSocketService','Optional','eventID','HEARTBEAT_INTERVAL','disposeUnit','_transformSelections','0\x200\x2017\x2016','SnapshotService','LOCAL_CACHE_INTERVAL','CollaborationSession','_online','selections','WebSocketService','json','_removeCollabCursors','unit','univer-online-status-title','RichTextEditingMutation','_unitStatus','clear','delay','CollaborationController','on-line-single_clip0_910_349','xlink:href','fill','[FetchMissState]','_acknowledgedAwaitingChangeset','onMissingChangesets','_waitForHeartbeatResponse','_onUserLeave','LEAVE','useDependency','take','submit\x20changeset\x20error!','[DataLoaderController]','getVpScrollXYInfoByPosToVp','LOGIN_URL_KEY','_changesetSessionId','getItem','originalMeta','getDocRanges','getUnitId','_onConflict','onPointerEnter$','_clearUndo','/new_changes','add','collabStatus.conflict','cursorInfo','height','onload','APPLY_REJECT','has','_cachedData','div','enableSingleActiveInstanceLock','_getCtorByUniverType','getUnit','currentTheme$','RefRangeService','localeService','enableAuthServer','Error\x20on\x20receiving\x20event','_onLocalMutation','_onUserJoin','_isPermissionRej','_pendingMutations','handleInsertCol','_getUploadFileURL','pipe','loadDoc','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','useObservable','subunit','_updateSubUnitFromURLParams','univer-pro.collaboration-client.single-active-unit-service','_onOffline','_sessions','get','failed\x20to\x20apply\x20missed\x20changesets!','addObjects','_roomMembers$','SessionStatus','/universer-api/oidc/authpage','error','dispose$','_collaborationPaused','randomUUID','pluginName','_registerRenderDependencies','\x0aAfter:\x20','CollaborationEvent','RevisionService','endColumn','&assign=','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','incrementRevOfUnit','ERROR_EXCEED_SIZE','_clearScheduledTask','_sendHeartbeat','pauseCollaboration','collab-client.tooltip.reconnect','_getSaveTimeout','_cursorInfo$','@univerjs/design','LICENSE_DISTRO_REJECTED','Rect','makeDirty','resourceIDs','encodeURIComponent','RETRY_CONNECTING_MAX_COUNT','reverse','_waitCount','saveOfflineData','members','CONFLICT','then','SheetCollabCursorShape','_clearCollaborationTimeoutTimer','transformMutation','_univerInstanceService','session','_transformUndoRedoStack','touchDependencies','getTypeOfUnitDisposed$','switchMap','state','_exhaustRemoteChangesetQueue','_sheetSkeletonManagerService','defineProperty','2702160iGtMDW','telemetry\x20info\x20is\x20not\x20initialized','APPLY_DUPLICATED','duration','equals','CHANGESET_ACK','getUndoRedoMutationParamsCache','_saveTaskMap','NodePositionConvertToCursor','_removeClearOtherTimer','fromEvent','column','_refRangeService','MSG_FOR_ERROR','APPLY_NON_SEQUENTIAL_REVISION','VIEW_MAIN','sid','MessageType','collabStatus.syncing','Shape','subUnitId','_syncEditingCollabCursorService','objectID','WorkbookEditablePermission','whenReady','POST','ICollaborationSocketService','_sendingTimer','hidden','COMPRESS_MUTATION_APPLY','onMissedChangesetFetched','univerjs-icon\x20univerjs-icon-','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_changesetReqId','_color','586104OJZkYx','updateMember','ACTIVE_UNIT_EVENT_CHANNEL','bind','awaiting_with_pending','_onCombEvent','round','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Subject','4109lXCzur','collabCursorState$','_configService','_docSyncEditingCollabCursorService','string','saveSheetBlock','&source=','socketService','indexOf','csRejEvent','IRemoteInstanceService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','updatePermissionPoint','mapTo','_handler','IBeforeCloseService','capture','[CollaborationEntity]','none','assign','updateOfflineData','Injector','_imageSourceCache','@univerjs/network','JOIN','registerComponent','_drawRectRange','open$','UniverCollaborationClientPlugin','uploadFileServerUrl','INotificationService','getUnitType','SHOULD_CLOSE_CONN','getCurrentUnitForType','unit-cache-','_render','reqId','append','_singleActiveUnitService','AuthzIoHttpService','_decreaseWaiting','_listenToOnlineEvent','_disabled','/allowed','/collaborator','replaceTextRanges','_onRecvEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','ILogService','csAckEvent','gold400','fetchMissingChangesets','removeParam','UNAUTHENTICATED','_members','getImage','PSEUDO_FETCH_MISSING_RESULT','USERS_LEAVE','unsubscribe','_hovered','disableLocalCache','_permissionService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_throwTelemetryCollaborationNewChangeset','liveShareNewHost','newValue','_change$','connection\x20error','\x20to\x20','getOwnPropertyDescriptor','1wGPmFZ','_hideTimer','forwardRef','collaboratorID','top','onCommandExecuted','_initStatusListener','values','_substituteRedoStack','LocaleService','_socketService','onRemoteChangeset','_sendHeartbeatTimer','override','name','[CollaborationState]:\x20apply\x20error!','backgroundColor','_saveCache','svg','BehaviorSubject','_docTransformIMECacheService','collaboration-session-retry','transformSelections','getCurrent','TEXT_RANGE_LAYER_INDEX','code','triggerDblclick','HTTPRequest','location','session.will-retry','PERMISSION_DENIED','next','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_redoStacks','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/-/object/list','_docSkeletonManagerService','c1Prime','substring','_onConnectionFailed','defIds','_anchor','map','@univerjs-pro/collaboration','DEFAULT_FILE_NAME','getCurrentSelections','@univerjs-pro/license','DocIMEInputManagerService','createCollaborator','BuiltInUIPart','mapDocumentTypeToUniverType','_initCommandExecutedListener','ISnapshotServerService','beginPath','setAlpha','_getLoginPath','COMPLETION_FINISHED','throttleTime','permission.title','toStringTag','Inject','createSocket','sessionStatus$','RECV','params','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','IDLE','asObservable','every','split','_colorIndex','NEW_CHANGESETS','text','getMember','716602slKhCK','serializeRangeWithSheet','_socket$','replaceState','_initUnitPermissionChange','joinRsp','[OfflineState]:\x20received\x20rejection.','/universer-api/file/{fileID}/sign-url','APPLY_REVISION_CONFILICT','ALREADY_EXISTS','getUnhiddenWorksheets','_textBubble','TOO_MANY_REQUESTS','UNDEFINED','handleIRemoveRow','transformChangesets','_onCursorUpdate','UNIVER_SHEET','UNIVER_DOC','_clearRedo','red300','onlineStatus','black','HEARTBEAT_INTERVAL_KEY','_clearLocalCache','distinctUntilChanged','_transformService','_scheduleClearOtherTimer','_onFetchMissResult','transformStack\x20failed!','_unlockTransition','/universer-api/snapshot/','collabStatus.synced','pending','extend','ranges','UNIVER_UNKNOWN','Plugin','CONNECTOR_DATA_TOO_LARGE','UniverIcon','conflict.content','@univerjs/engine-formula','InsertRowCommandId','_http','transform','UNIVER_COLLABORATION_CLIENT_PLUGIN','href','CollaborationEntity','sendChangesetTimeout','_undoRedoService','drawWith','withCredentials','_removeRoom','getCellPositionByOffset','flatMap','fetching\x20missing\x20changesets\x20from\x20','SheetSkeletonManagerService','_heartbeatTimer','children','online','_collaborationTimeoutTimer','_logService','actions','onSyncEditingCollabCursor','min','handleInsertRangeMoveDown','ITransformService','InsertRangeMoveRightCommandId','LocalCacheService','_socketMessageSubscription','_toggleOffline','updateCollaborator','_cursor','_backgroundColor','LIVESHARE_OPERATION','hovered','PERMISSION_REJ','HttpExport','fetch_missing','ITelemetryService','now','ThresholdInterceptorFactory','getRelativeToViewportCoord','getSheetBySheetId','_fetchMissChangesets','image/gif','use','getOwnPropertySymbols','_getSnapshotAPIPrefix','addImageSourceCache','onTransformChange$','deepClone','collaMsg','icon','m2Prime','_hover','labelPosition','slice','useRef','onReady','copyFileMeta','getFocusedUnit','/universer-api/authz','delete','@univerjs/engine-render','DesktopCollaborationStatusDisplayController','executeCommand','_updateLocalCache','parseProtocolChangeset','UNIVER_SLIDE','_getAPIPrefix','session.room-full','_tryEnsureSocket','/universer-api/stream/file/upload','CHANGESET_REJ','find','DisposableCollection','_docSkeleton','contains','assignAColorForMemberID','reject','subscribe','_getMergeRange','SUCCUSS','_commandService','merge','_scheduleHeartbeat','RemoveRowCommandId','authzUrl','_handleHeartbeatEvent','_colorAssignService','6815520CgFziX','_id','patch','[SyncedState]:\x20received\x20rejection.','_themeService','_anchorDot','mergeOverrideWithDependencies','/object/','UnitEmbedded','permissionRejEvent','ImageSourceType','fetchThroughInterceptors','call','HEARTBEAT_TIMEOUT','status$','_state','InsertColCommandId','_lockTransition','_refreshCollabCursors','requireSession','disposeWithMe','findNodePositionByCharIndex','_loadSheet','_getCurrentRevision','rev','currentColor','SheetsSelectionsService','auth.needGotoLoginAlert','method','SheetCollaborationEntity','_onRemoteRejected','\x20in\x20_schedule.','fillStyle','handleInsertRangeMoveRight','DependentOn','NO_OTHER_CLIENTS_EDITING','body','SetTextSelectionsOperation','getConfig','focused$','SnapshotServerOverHTTPService','userID','stringify','src','onTransformRemoteChangesetByIMECache','_telemetryService','_getUndoStack','&to=','getActiveSheet','Error','replace','data','hide','toLowerCase','INVALID_ARGUMENT','_revisionService','_applyRemoteChangeset','show','HELLO','_HTTPService','baseRev','MoveRangeCommandId','isTransformMutationFailure','_createInitialState','/fetchmissing?from=','mutations','number','COMPRESS_MUTATION_SEND','image/jpg','_messageService','file','m1Prime','onMouseMove','idSuffix','/unit/','@univerjs/docs-ui','PENDING','DocCollaborationEntity','off-line-single','FileId','1em','ImageUploadStatusType','combineLatest','Univer','save\x20fail\x20reason\x20is\x20','getAncestorScale','_scheduleTimestamp','univer-offline','addEventListener','roomMembers$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','reconnect','_draw','collabStatus.notCollab','uni.network.url-service','[CollaborationSessionService]','fillRule','CommentService','ColorKit','debounceTime','appendMutation','@univerjs/sheets-ui','parse','_substituteUndoStack','4598512HmhGYT','from','getCurrentUser','not_collab','commentUpdate$','transformRemoteChangeset','@univerjs/ui','url','save','HEADER_MENU','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','handleDeleteRangeMoveLeft','doc.mutation.rich-text-editing','LICENSE_MAX_UNITS_EXCEEDED','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','InsertSheetMutation','addObject','\x20-\x20','IUniverInstanceService','history','UNKNOWN_CMD','getTypeOfUnitAdded$','SheetPermissionInitController','set','responseType','arc','deleteCollaborator','row','_replaceFileID','LIVESHARE_FETCH_OPERATIONS','conflict','concat','_updateLocalCursor','toDisposable','[CollaborationSession]','...','Warning','storage','enableLocalCache','off-line-single_clip0_910_343','collab-text-range-','sheets','SNAPSHOT_HAS_BEEN_REMOVED','UniverCollaborationPlugin','UniverInstanceType','YUUMI_UNABLE_LOAD_URL','Tooltip','confirm','_lastPointer','_updateStatus','update','_syncEditingCollabCursor','getCollabEntity$','_initEventListeners','transformUndoRedo','_initRequestHeader','size','synced','CollaborationSessionService','_cursorShapes','isActive','fromEventSubject','onPointerLeave$','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_name','blue400','putCollaborators','[OfflineState]:\x20received\x20acknowledgement.','offline','unitId\x20is\x20not\x20found','_cursors','IAuthzIoService','_init','image/bmp','newCsEvent','jiqing500','univer-online-status-icon','OFFLINE','onSendChangeset','Vector2','ILocalStorageService','_event$','_createInitialStateImpl','_showConflictNotification','_localCacheService','getResourcesRequest','\x0aCurrent:\x20','_submitChangeset','UNKNOWN_CODE','subscribeEvent','createIdentifier','some','onTransformSelections','docStateChange$','IPermissionService','react','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','activeSheet$','shareReplay','exhaustSavingTask','_timeoutTimer','push','_transformIMECache','[CollaborationUndoRedoService]','toRgbString','registerRenderModule','_roomMembers','setUndoRedoMutationParamsCache','random','DocStateChangeManagerService','deserializeRangeWithSheet','transformMutationsWithChangeset','/universer-api/comb','LIVESHARE_TERMINATE','SEND_CHANGESET_TIMEOUT','batchAllowed','_unitOnClients','_rescheduleHeartbeat','colorChannel1','_joinRoom','_drawTextRange','getValue','_onJoinRoomEvent','_shapes','handleIRemoveCol','_uiPartsService','Module','listCollaborators','workbook','_docTransformSelectionsService','UNRECOGNIZED','transformByState','getUnitOnRev','_httpService','updatePermissionObjEvent','getCollabCursors$','roomMembers','_context','LICENSE_EXPORT_SIZE_EXCEEDED','_updateURLWithCurrentState','registerHTTPInterceptor','_onRefRangeChange','SNAPSHOT_SERVER_URL_KEY','font','_getSendChangesetTimeout','_document','_onRemoteACK','CHANGESET_REVISION_CONFILICT','CollaborationStatusDisplay','_userManagerService','symbol','_injector','_docStateChangeManagerService','_socketReady','RxDisposable','retryConnectingInterval','readAsDataURL','LIVESHARE_REQUEST_HOST','_notificationService','SYNCED','create','BASE64','collabStatus.offline','_startCollaboration','sessionStatus','@univerjs/sheets','_getRedoStack','INTERNAL_ERROR','isInternalEditorID','_registerDependencies','_beforeCloseService','sheetId','evenodd','objects','CollaborationStatus','_getAnchorBounding','getSheetBlock','_unitID','getSheetObject','_initStatusComponent','objectType','[UniverCollaborationClientPlugin]','LOCAL_CACHE_INTERVAL_KEY','collaboration.single-unit.warning','ONLINE','memberID','getRangePointData','status','M0\x200H16V16H0z','FETCH_MISSING','ws://127.0.0.1:8000/universer-api/comb/connect','_executeRemoteChangeset','headers','image/jpeg','syncEditingCollabCursor','_labelPosition','_disableEditing','InsertRangeMoveDownCommandId','[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.','IUndoRedoService','width','_incrementRevisionNumber','setShapeProps','clearInterval','bottom','CommandType','fillText','_sheetTransformSelectionsService','NOT_COLLAB','getDeserializedSheetBlock','_scheduleCollaborationTimeoutTimer','createInstance','USERS_ENTER','snapshotServerUrl','measureText','univer-pro.collaboration-client-socket-service','onCommentUpdate','JSONX','FETCH_MISS','objectActions','SUBMIT_CHANGESET','onRemoteRej','getRandomValues','loginUrlKey','joinEvent','isTransformChangesetsSuccess','IMessageService','/block/','pushState','APPLY_PERMISSION_DENIED','attrs','IImageIoService','_session','_candidateSocket','_collaborationController','tag','sequenceExecute','_retryCount','state$','_replayCachedMutations','awaiting','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabSessionService','_eventUnsubscribe','_handleLeaveEvent','init','getLatestCsReqIdBySid','FAIL','YUUMI_URL_COL_OUT_OF_RANGE','listRoles','_listenToOfflineEvent','unitID','IConfigService','closePath','_getSignURL','cmd','routeKey','dispose','_undoStacks','textRanges','DeleteRangeMoveLeftCommandId','univer-online-status','_collabCursorController','isTransformMutationsWithChangesetSuccess','@univerjs/telemetry','toString','socket\x20close','HEARTBEAT','textEncoder','x-univer-host','stopTime','_initResize','getMemberID','UserManagerService','socket$','JOINING','_checkMissing','getColor','clipPath','getUniverSheetInstance','YUUMI_RATE_OVER_LIMIT','setWaitCount','isPermissionRej','_transitionLocked','trim','Undefined','_getDownloadEndpointURL','filter','setInterval','#fff','/rev/','reduce','?url=','loadOfflineData','connectInjector','getMergeData','commentUpdateEvent','RegularPolygon','_getAPIPrefixPath','_getSheetObject','_send','MUTATION','closeSession','_onCursorDelete','type','startsWith','_instanceService','_clearHeartbeatTimer','with','leaveEvent','_schedule','interceptor','setItem','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','complete','ImageIoService','url(#on-line-single_clip0_910_349)','forEach','_transformRemoteChangesetByIMECache','getSkeleton','onStarting','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Tools','max','error$','HTTPService','signUrlServerUrl','apply','title','_config','AWAITING_WITH_PENDING','DataLoaderController','selection','_snapshotService','put','saveImage','_onConnectionOpen','81ossbrx','getUnitStatus$','_scene','isArray','path','toggleOffline','unknown','DocSkeletonManagerService','_telemetryInfo','2121350rQgIKF','_ensureSubject','handleDeleteRangeMoveUp','ENSURE_SNAPSHOT_EXECUTION','className','debounce','_collabCursorState$','serializeCombRequest','revision','rxjs/operators','@univerjs/rpc','LICENSE_IMPORT_SIZE_EXCEEDED','Disposable','registerRefRange','NOT_FOUND','AUTHZ_URL_KEY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getInterceptPoints','_compressMutationService','clearTimeout','setCurrentUser','requestParams','FromArray','_memberService','OTHER_CLIENTS_EDITING','_startDocCollabCursor','Unknown\x20user','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_setupSubUnitSync','_awaitingChangeset','_entityInit$','getRoom','_onMessage','b64DecodeUnicode','onlineStatusTitle','/role','LocalUndoRedoService','_tryReconnect','c2Prime','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','lineTo','range','target','close$','_createHandler','result','getCoordByCell','_selfUnitIDs','_handleJoinEvent','editing\x20status\x20changed\x20to','_clearOtherTimers','9210LMBYGD','setTimeout','collabStatus.fetchMiss','catch','_urlService','fetchMiss','XHRHTTPImplementation','_commentUpdate$','IRenderManagerService','ERROR_IMAGE','_transformUndoredo','toggleOnline','_stopTelemetryCollaborationNewChangeset','onTransformIME','resend','_drawAnchor','@univerjs/core','_updateState','collaboration-client.offline-data-not-saved','send','cursorInfo$','_handleHover','includes','_transformPreviousActiveRange','url(#$1','_queuedRemoteChangesets','_localStorageService','url(#off-line-single_clip0_910_343)','_initCloseConn','awaitingChangeset','getTime','saveChangeset','onRendered','event$','parseChangesetToProtocol','getAttachHeader','[OfflineState]:\x20received\x20changeset.','IUIPartsService','encode','_toggleOnline','changesets','searchParams','isValidRectRange','_shouldReportTelemetry','registerOnClose','UPDATE_PERMISSION_OBJ','transformIMECache','unitId','ThemeService','_startSheetCollabCursor','removeMember','/resources','setActiveRange','_state$','getParam','moveTo','onPointerMove$','_createSocket','restore','close','univer-online','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onlyLocal','getCurrentRevOfUnit','debug','_renderManagerService','_type','defs','EffectRefRangId','_status$','sheetID','unshift','SNAPSHOT_INVALID_SNAPSHOT','roomInfos','?size=','_localeService','ERROR_IMAGE_TYPE','_remoteChangesetQueue','displayName','_sessionStatus$','_startTelemetryCollaborationNewChangeset','_collaborationSessionService','UPDATE_CURSOR','createElement','_retryConnectingTimer','_loadDoc','COLORS','_range','session.collaboration-timeout','message$','CompressMutationService','setParam','urlChange$','SetSelectionsOperation','_transformStack','_onRemoteChangeset','generateRandomId','length','propertyIsEnumerable','getActiveRange','key','DocSelectionManagerService'];_0x2530=function(){return _0x5c3128;};return _0x2530();}let Ce=class extends a['Disposable']{constructor(_0x27d7ee,_0x423fac){const _0x71a67e=_0x4d97e8;super(),this[_0x71a67e(0x85)]=_0x27d7ee,this[_0x71a67e(0xbd)]=_0x423fac,this[_0x71a67e(0x27e)]();}[_0x4d97e8(0x27e)](){const _0x11ddb9=_0x4d97e8;this['disposeWithMe'](this['_univerInstanceService'][_0x11ddb9(0x1f5)]['subscribe'](()=>{const _0x15397a=_0x11ddb9;var _0x10a293;const _0xff5135=this[_0x15397a(0x85)][_0x15397a(0x1b0)]();let _0x361583=(_0x10a293=this[_0x15397a(0xbd)][_0x15397a(0x1f4)](Zi))!=null?_0x10a293:Qi;_0xff5135 instanceof a['Workbook']&&(_0x361583=_0xff5135['name']),document[_0x15397a(0x37e)]=_0x361583;}));}};Ce=Ji([_t(0x0,a['IUniverInstanceService']),_t(0x1,a[_0x4d97e8(0x332)])],Ce);var en=Object[_0x4d97e8(0x8e)],tn=Object[_0x4d97e8(0x100)],sn=(_0x1d4d2d,_0x65b85c,_0x351fc5,_0x322bc2)=>{const _0x305896=_0x4d97e8;for(var _0x22c61d=_0x322bc2>0x1?void 0x0:_0x322bc2?tn(_0x65b85c,_0x351fc5):_0x65b85c,_0x1d4183=_0x1d4d2d[_0x305896(0x424)]-0x1,_0x10aee2;_0x1d4183>=0x0;_0x1d4183--)(_0x10aee2=_0x1d4d2d[_0x1d4183])&&(_0x22c61d=(_0x322bc2?_0x10aee2(_0x65b85c,_0x351fc5,_0x22c61d):_0x10aee2(_0x22c61d))||_0x22c61d);return _0x322bc2&&_0x22c61d&&en(_0x65b85c,_0x351fc5,_0x22c61d),_0x22c61d;},He=(_0x4a4d12,_0x232ae4)=>(_0xdfe897,_0x3fa3c3)=>_0x232ae4(_0xdfe897,_0x3fa3c3,_0x4a4d12);let Ee=class{constructor(_0x162196,_0x22968e,_0x144572){const _0x16ab29=_0x4d97e8;this[_0x16ab29(0xbd)]=_0x162196,this['_httpService']=_0x22968e,this[_0x16ab29(0x47f)]=_0x144572,this[_0x16ab29(0x32b)]();}[_0x4d97e8(0x32b)](){const _0x3ad725=_0x4d97e8;this['_httpService'][_0x3ad725(0x2c2)]({'priority':0x1,'interceptor':(_0x2595b9,_0x1ea5c1)=>_0x1ea5c1(_0x2595b9)[_0x3ad725(0x488)](v['concatMap'](async _0x1429c6=>{const _0x4bcec1=_0x3ad725,_0x4602b0=_0x1429c6;if(_0x4602b0[_0x4bcec1(0x2f1)]===0x191&&window[_0x4bcec1(0x265)](this[_0x4bcec1(0x47f)]['t'](_0x4bcec1(0x1e9)))){const _0x151b96=window[_0x4bcec1(0x4b0)](window['location'][_0x4bcec1(0x179)]);window[_0x4bcec1(0x11d)][_0x4bcec1(0x179)]=this[_0x4bcec1(0x138)]()+_0x4bcec1(0x35a)+_0x151b96;}return _0x4602b0;}))});}[_0x4d97e8(0x138)](){const _0x1074fc=_0x4d97e8;var _0x5b9273,_0x412d1b;const _0x421d00=this[_0x1074fc(0xbd)][_0x1074fc(0x1f4)](Et),_0x16379e=this['_configService'][_0x1074fc(0x1f4)](L);return(_0x412d1b=(_0x5b9273=_0x16379e==null?void 0x0:_0x16379e[_0x1074fc(0x315)])!=null?_0x5b9273:_0x421d00)!=null?_0x412d1b:ns;}};Ee=sn([He(0x0,a[_0x4d97e8(0x332)]),He(0x1,a[_0x4d97e8(0x13d)](w['HTTPService'])),He(0x2,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)]))],Ee);var nn=Object['defineProperty'],rn=Object[_0x4d97e8(0x100)],on=(_0x1fa979,_0x35373b,_0x594057,_0x25a371)=>{const _0x255c14=_0x4d97e8;for(var _0xe99fee=_0x25a371>0x1?void 0x0:_0x25a371?rn(_0x35373b,_0x594057):_0x35373b,_0x5e6b5d=_0x1fa979[_0x255c14(0x424)]-0x1,_0x2e2fc8;_0x5e6b5d>=0x0;_0x5e6b5d--)(_0x2e2fc8=_0x1fa979[_0x5e6b5d])&&(_0xe99fee=(_0x25a371?_0x2e2fc8(_0x35373b,_0x594057,_0xe99fee):_0x2e2fc8(_0xe99fee))||_0xe99fee);return _0x25a371&&_0xe99fee&&nn(_0x35373b,_0x594057,_0xe99fee),_0xe99fee;},ut=(_0x5cdfe1,_0x5e1edf)=>(_0x1c5f23,_0x5bec35)=>_0x5e1edf(_0x1c5f23,_0x5bec35,_0x5cdfe1);const jt=_0x4d97e8(0x39f),an=_0x4d97e8(0x1b1);exports[_0x4d97e8(0xe2)]=class extends a[_0x4d97e8(0x39c)]{constructor(_0x5b3b5b,_0x47c780){const _0x3efac7=_0x4d97e8;super(),this['_HTTPService']=_0x5b3b5b,this[_0x3efac7(0xbd)]=_0x47c780,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x57ced7=_0x4d97e8,_0x30e306=this;this['disposeWithMe'](this[_0x57ced7(0x209)][_0x57ced7(0x2c2)]({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x94200d){const _0x3b23eb=_0x57ced7;var _0x1bc760;if(_0x94200d[_0x3b23eb(0x1ea)]==='POST'&&((_0x1bc760=_0x94200d[_0x3b23eb(0x3a5)])!=null&&_0x1bc760['body'])){const {objectID:_0x50232d,objectType:_0x2d0b98}=_0x94200d[_0x3b23eb(0x3a5)][_0x3b23eb(0x1f2)]||{};if(!_0x50232d||_0x2d0b98===void 0x0)return!0x1;const _0x4b4863=_0x30e306[_0x3b23eb(0x360)]()+'/'+_0x2d0b98+_0x3b23eb(0x1d5)+_0x50232d+_0x3b23eb(0xe6);if(_0x94200d[_0x3b23eb(0x23d)]===_0x4b4863)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x32ac20){const _0x3aaed6=_0x57ced7;var _0x186825;return(_0x186825=_0x32ac20[_0x3aaed6(0x3a5)])==null?void 0x0:_0x186825['body'];},'mergeParamsToRequest'(_0x784356,_0x3b321d){const _0x41900f=_0x57ced7,_0x1a8202=_0x30e306[_0x41900f(0x360)]()+'/-/object/-/batch_allowed',_0x3199bf=_0x784356[_0x41900f(0x359)]((_0xb4409e,_0x123deb)=>{const _0x4a86b4=_0x41900f,{unitID:_0x44b807,objectID:_0x7e0a69,objectType:_0x83ffcc,actions:_0x2e3e75}=_0x123deb;return _0xb4409e[_0x44b807]||(_0xb4409e[_0x44b807]={}),_0xb4409e[_0x44b807][_0x7e0a69]||(_0xb4409e[_0x44b807][_0x7e0a69]={'objectID':_0x7e0a69,'objectType':_0x83ffcc,'actions':[]}),_0xb4409e[_0x44b807][_0x7e0a69][_0x4a86b4(0x189)]['push'](..._0x2e3e75),_0xb4409e;},{}),_0x1c53a1=[];for(const _0x827cae in _0x3199bf)for(const _0x225e13 in _0x3199bf[_0x827cae]){const {actions:_0x1f5af1,objectType:_0x41e73b}=_0x3199bf[_0x827cae][_0x225e13],_0x4651ed=[...new Set(_0x1f5af1)];_0x1c53a1[_0x41900f(0x29b)]({'unitID':_0x827cae,'objectID':_0x225e13,'objectType':_0x41e73b,'actions':_0x4651ed});}return new w[(_0x41900f(0x11c))](_0x41900f(0xa8),_0x1a8202,{'headers':_0x3b321d[_0x41900f(0x2f6)],'withCredentials':_0x3b321d[_0x41900f(0x17e)],'responseType':_0x3b321d[_0x41900f(0x24e)],'body':{'requests':_0x1c53a1}});}},{'distributeResult'(_0x4d3966,_0x14fcbc){const _0x278b9e=_0x57ced7,{objectActions:_0x432f2c}=_0x4d3966;return _0x14fcbc[_0x278b9e(0x12b)](_0xf9f96=>{const _0x3f27ce=_0x278b9e,{unitID:_0x229d37,objectID:_0x48b309,actions:_0x4ce7cb}=_0xf9f96,_0x3e06e7=_0x432f2c['find'](_0x386667=>_0x386667[_0x3f27ce(0x331)]===_0x229d37&&_0x386667['objectID']===_0x48b309),_0x23a701=_0x4ce7cb[_0x3f27ce(0x12b)](_0x2c6ee8=>_0x3e06e7==null?void 0x0:_0x3e06e7[_0x3f27ce(0x189)][_0x3f27ce(0x1be)](_0x395693=>_0x395693[_0x3f27ce(0x435)]===_0x2c6ee8))[_0x3f27ce(0x355)](_0x53b137=>!!_0x53b137);return{'config':_0xf9f96,'result':{'actions':_0x23a701,'error':_0x4d3966[_0x3f27ce(0x497)]}};});}})}));}[_0x4d97e8(0x360)](){const _0x54bb72=_0x4d97e8;var _0xc99e72,_0x4346ac;const _0x198616=this['_configService']['getConfig'](jt),_0xf22c67=this['_configService'][_0x54bb72(0x1f4)](L);return(_0x4346ac=(_0xc99e72=_0xf22c67==null?void 0x0:_0xf22c67[_0x54bb72(0x1cb)])!=null?_0xc99e72:_0x198616)!=null?_0x4346ac:an;}async[_0x4d97e8(0x2d6)](_0x28b06b){const _0x38e210=_0x4d97e8,_0xe0af65=this['_getAPIPrefixPath']()+'/'+_0x28b06b[_0x38e210(0x2ea)]+'/object';return(await this[_0x38e210(0x209)]['post'](_0xe0af65,{'body':_0x28b06b}))[_0x38e210(0x1f2)][_0x38e210(0xa5)]||'';}async['list'](_0x5580c9){const _0x33bda5=_0x4d97e8,_0x4fcb59=this[_0x33bda5(0x360)]()+_0x33bda5(0x124);return(await this[_0x33bda5(0x209)]['post'](_0x4fcb59,{'body':_0x5580c9}))[_0x33bda5(0x1f2)][_0x33bda5(0x2e3)];}async[_0x4d97e8(0x268)](_0x179730){const _0x48fcf2=_0x4d97e8,_0x49a317=this['_getAPIPrefixPath']()+'/'+_0x179730[_0x48fcf2(0x2ea)]+_0x48fcf2(0x1d5)+_0x179730[_0x48fcf2(0xa5)];await this[_0x48fcf2(0x209)]['put'](_0x49a317,{'body':_0x179730});}async['allowed'](_0xac1c0b){const _0x2fcc16=_0x4d97e8,_0x15780d=this['_getAPIPrefixPath']()+'/'+_0xac1c0b[_0x2fcc16(0x2ea)]+'/object/'+_0xac1c0b[_0x2fcc16(0xa5)]+_0x2fcc16(0xe6);return(await this[_0x2fcc16(0x209)][_0x2fcc16(0x43b)](_0x15780d,{'body':_0xac1c0b}))[_0x2fcc16(0x1f2)][_0x2fcc16(0x189)];}async[_0x4d97e8(0x2a9)](_0x5e79a7){const _0x331c80=_0x4d97e8,_0x1f02fd=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x331c80(0x209)][_0x331c80(0x43b)](_0x1f02fd,{'body':{'requests':_0x5e79a7}}))[_0x331c80(0x1f2)][_0x331c80(0x311)];}async[_0x4d97e8(0x32f)](_0x59f2b3){const _0x2625f9=_0x4d97e8,_0x805c7=this[_0x2625f9(0x360)]()+'/'+_0x59f2b3['objectType']+_0x2625f9(0x3b3),_0x25b14b=await this[_0x2625f9(0x209)]['post'](_0x805c7,{'body':_0x59f2b3});return{'roles':_0x25b14b['body']['roles'],'actions':_0x25b14b['body'][_0x2625f9(0x189)]};}async[_0x4d97e8(0x250)](_0x2f697f){const _0x139046=_0x4d97e8,_0x1de301=this[_0x139046(0x360)]()+'/collaborator';await this['_HTTPService'][_0x139046(0x1b2)](_0x1de301,{'params':{'collaboratorID':_0x2f697f[_0x139046(0x104)],'objectID':_0x2f697f['objectID'],'unitID':_0x2f697f[_0x139046(0x331)]}});}async[_0x4d97e8(0x192)](_0x4e06d5){const _0x570b1e=_0x4d97e8,_0x15bb89=this['_getAPIPrefixPath']()+_0x570b1e(0xe7);await this['_HTTPService'][_0x570b1e(0x1d0)](_0x15bb89,{'body':_0x4e06d5});}async[_0x4d97e8(0x131)](_0x2d8ba2){const _0x421331=_0x4d97e8,_0x2b7638=this[_0x421331(0x360)]()+'/collaborator';await this['_HTTPService'][_0x421331(0x43b)](_0x2b7638,{'body':_0x2d8ba2});}async[_0x4d97e8(0x2b5)](_0x18b39f){const _0x1de4d0=_0x4d97e8,_0x33af41=this[_0x1de4d0(0x360)]()+_0x1de4d0(0xe7);return(await this['_HTTPService'][_0x1de4d0(0x491)](_0x33af41,{'params':{'objectID':_0x18b39f[_0x1de4d0(0xa5)],'unitID':_0x18b39f['unitID']}}))[_0x1de4d0(0x1f2)]['collaborators'];}async[_0x4d97e8(0x278)](_0x9958ff){const _0x2be83f=_0x4d97e8,_0x5b8037=this[_0x2be83f(0x360)]()+_0x2be83f(0xe7);await this[_0x2be83f(0x209)][_0x2be83f(0x384)](_0x5b8037,{'body':_0x9958ff});}},exports[_0x4d97e8(0xe2)]=on([ut(0x0,a[_0x4d97e8(0x13d)](w['HTTPService'])),ut(0x1,a[_0x4d97e8(0x13d)](a['IConfigService']))],exports[_0x4d97e8(0xe2)]);var cn=Object['defineProperty'],ln=Object[_0x4d97e8(0x100)],hn=(_0x5709ba,_0x14b2c4,_0x16238e,_0x2a8224)=>{for(var _0x1fe1e4=_0x2a8224>0x1?void 0x0:_0x2a8224?ln(_0x14b2c4,_0x16238e):_0x14b2c4,_0x2031f6=_0x5709ba['length']-0x1,_0x477beb;_0x2031f6>=0x0;_0x2031f6--)(_0x477beb=_0x5709ba[_0x2031f6])&&(_0x1fe1e4=(_0x2a8224?_0x477beb(_0x14b2c4,_0x16238e,_0x1fe1e4):_0x477beb(_0x1fe1e4))||_0x1fe1e4);return _0x2a8224&&_0x1fe1e4&&cn(_0x14b2c4,_0x16238e,_0x1fe1e4),_0x1fe1e4;},_n=(_0x49e4e4,_0x322984)=>(_0x399ce2,_0x20424c)=>_0x322984(_0x399ce2,_0x20424c,_0x49e4e4);let be=class{constructor(_0xf2b918){const _0x1a0782=_0x4d97e8;this[_0x1a0782(0x2bb)]=_0xf2b918,this['_initRequestHeader']();}[_0x4d97e8(0x26d)](){const _0x479d00=_0x4d97e8;this[_0x479d00(0x2bb)]['registerHTTPInterceptor']({'interceptor':(_0x2b1273,_0x16262b)=>{const _0x14b528=_0x479d00,_0x2807e6=_0x2b1273['headers'],_0x36a93e=Xt[_0x14b528(0x3e6)]();return _0x36a93e&&_0x2807e6[_0x14b528(0x24d)](_0x14b528(0x343),_0x36a93e),_0x16262b(_0x2b1273);}});}};be=hn([_n(0x0,a[_0x4d97e8(0x13d)](w['HTTPService']))],be);var un=Object[_0x4d97e8(0x8e)],dn=Object[_0x4d97e8(0x100)],Sn=(_0x2f9d2d,_0x40aa36,_0x1c2c82,_0x518121)=>{const _0x36eb70=_0x4d97e8;for(var _0x4a92c3=_0x518121>0x1?void 0x0:_0x518121?dn(_0x40aa36,_0x1c2c82):_0x40aa36,_0x1c3595=_0x2f9d2d[_0x36eb70(0x424)]-0x1,_0x54382a;_0x1c3595>=0x0;_0x1c3595--)(_0x54382a=_0x2f9d2d[_0x1c3595])&&(_0x4a92c3=(_0x518121?_0x54382a(_0x40aa36,_0x1c2c82,_0x4a92c3):_0x54382a(_0x4a92c3))||_0x4a92c3);return _0x518121&&_0x4a92c3&&un(_0x40aa36,_0x1c2c82,_0x4a92c3),_0x4a92c3;},xe=(_0x26e757,_0x5727ca)=>(_0x2debaa,_0x514f22)=>_0x5727ca(_0x2debaa,_0x514f22,_0x26e757);const vn=[_0x4d97e8(0x430),_0x4d97e8(0x2f7),_0x4d97e8(0x212),_0x4d97e8(0x1a0),_0x4d97e8(0x27f)],gn=0x5*0x400*0x400,mn=_0x4d97e8(0x3ab),fn=_0x4d97e8(0x1bc),In=_0x4d97e8(0xaf),pn=_0x4d97e8(0x152);exports[_0x4d97e8(0x371)]=class{constructor(_0x303ac0,_0x37ce35,_0x5a976f){const _0x5ae33e=_0x4d97e8;u(this,'_waitCount',0x0),u(this,_0x5ae33e(0xfd),new v[(_0x5ae33e(0xba))]()),u(this,'change$',this[_0x5ae33e(0xfd)]),u(this,_0x5ae33e(0xd1),new Map()),(this['_httpService']=_0x303ac0,this[_0x5ae33e(0xbd)]=_0x37ce35,this[_0x5ae33e(0x85)]=_0x5a976f);}[_0x4d97e8(0x34f)](_0x244704){const _0x570d40=_0x4d97e8;this[_0x570d40(0x4b3)]=_0x244704,this[_0x570d40(0xfd)][_0x570d40(0x120)](_0x244704);}['getImageSourceCache'](_0x37c1f0,_0x17aad4){const _0x268509=_0x4d97e8;if(_0x17aad4===j['ImageSourceType'][_0x268509(0x2d7)]){const _0x179f50=new Image();return _0x179f50[_0x268509(0x1f9)]=_0x37c1f0,_0x179f50;}return this[_0x268509(0xd1)]['get'](_0x37c1f0);}[_0x4d97e8(0x1a4)](_0x216ad7,_0x17a807,_0xab281c){const _0x4489f1=_0x4d97e8;_0x17a807===j['ImageSourceType']['BASE64']||_0xab281c==null||this[_0x4489f1(0xd1)]['set'](_0x216ad7,_0xab281c);}async[_0x4d97e8(0xf2)](_0x489c99){const _0xc8d722=_0x4d97e8;try{const _0x11f414=this[_0xc8d722(0x252)](this[_0xc8d722(0x334)](),''+_0x489c99),_0xb716fa=(await this['_httpService'][_0xc8d722(0x491)](_0x11f414))[_0xc8d722(0x1f2)];if(_0xb716fa[_0xc8d722(0x497)]&&_0xb716fa[_0xc8d722(0x497)][_0xc8d722(0x11a)]===bt['OK']){const _0x47ff25=new URL(_0xb716fa[_0xc8d722(0x23d)],this['_getDownloadEndpointURL']())[_0xc8d722(0x33f)]();return Promise['resolve'](_0x47ff25);}return Promise[_0xc8d722(0x1c3)](_0xb716fa['error']);}catch(_0x229f67){return Promise['reject'](_0x229f67);}}async[_0x4d97e8(0x385)](_0xace28e){const _0x51e2e0=_0x4d97e8;let _0x443672='';if(!vn[_0x51e2e0(0x3d9)](_0xace28e[_0x51e2e0(0x366)]))return this[_0x51e2e0(0xe3)](),Promise['reject'](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x40f)]));if(_0xace28e[_0x51e2e0(0x26e)]>gn)return this[_0x51e2e0(0xe3)](),Promise[_0x51e2e0(0x1c3)](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x4a4)]));try{const _0x3f98fd=new FormData();_0x3f98fd[_0x51e2e0(0xe0)](_0x51e2e0(0x214),_0xace28e);const _0x2921ba=this[_0x51e2e0(0x85)][_0x51e2e0(0x1b0)](),_0x423bd7=_0x2921ba==null?void 0x0:_0x2921ba[_0x51e2e0(0x46c)]();if(!_0x423bd7)throw new Error(_0x51e2e0(0x27b));const _0x1d47bc=this['_getUploadFileURL']()+_0x51e2e0(0x40d)+_0xace28e[_0x51e2e0(0x26e)][_0x51e2e0(0x33f)]()+_0x51e2e0(0xc1)+Tt['UnitEmbedded']+_0x51e2e0(0x4a1)+encodeURIComponent(_0x423bd7),_0x24f96a=await(await fetch(_0x1d47bc,{'method':'POST','body':_0x3f98fd}))[_0x51e2e0(0x450)]();if(typeof _0x24f96a[_0x51e2e0(0x21d)]!=_0x51e2e0(0xbf))return this[_0x51e2e0(0xe3)](),Promise[_0x51e2e0(0x1c3)](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x3cc)]));_0x443672=_0x24f96a['FileId'];}catch{return this[_0x51e2e0(0xe3)](),Promise[_0x51e2e0(0x1c3)](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x3cc)]));}return new Promise((_0x47f1cc,_0x4778ae)=>{const _0x2de2aa=_0x51e2e0,_0x2b62ea=new FileReader();_0x2b62ea[_0x2de2aa(0x2d2)](_0xace28e),_0x2b62ea[_0x2de2aa(0x475)]=_0x2b118b=>{const _0x35a230=_0x2de2aa;var _0x4c8e9f;const _0x2a215f=(_0x4c8e9f=_0x2b118b[_0x35a230(0x3ba)])==null?void 0x0:_0x4c8e9f['result'];if(_0x2a215f==null){this[_0x35a230(0xe3)](),_0x4778ae(new Error(j[_0x35a230(0x21f)][_0x35a230(0x3cc)]));return;}const _0x4eaffb=a[_0x35a230(0x378)]['generateRandomId'](0x6);_0x47f1cc({'imageId':_0x4eaffb,'imageSourceType':j[_0x35a230(0x1d8)]['UUID'],'source':_0x443672,'base64Cache':_0x2a215f,'status':j[_0x35a230(0x21f)][_0x35a230(0x1c6)]}),this[_0x35a230(0xe3)]();};});}[_0x4d97e8(0x487)](){const _0x2db118=_0x4d97e8;var _0x5ec45a,_0x452ae9;const _0x497eaf=this[_0x2db118(0xbd)]['getConfig'](mn),_0xe57d4=this[_0x2db118(0xbd)]['getConfig'](L);return(_0x452ae9=(_0x5ec45a=_0xe57d4==null?void 0x0:_0xe57d4[_0x2db118(0xd8)])!=null?_0x5ec45a:_0x497eaf)!=null?_0x452ae9:fn;}[_0x4d97e8(0x334)](){const _0x588672=_0x4d97e8;var _0x445a83,_0x590b34;const _0x47f330=this[_0x588672(0xbd)][_0x588672(0x1f4)](In),_0x2780f3=this[_0x588672(0xbd)][_0x588672(0x1f4)](L);return(_0x590b34=(_0x445a83=_0x2780f3==null?void 0x0:_0x2780f3[_0x588672(0x37c)])!=null?_0x445a83:_0x47f330)!=null?_0x590b34:pn;}[_0x4d97e8(0x354)](){const _0x4594f4=_0x4d97e8;var _0x540ca1;const _0x102bf3=this[_0x4594f4(0xbd)][_0x4594f4(0x1f4)](L);return(_0x540ca1=_0x102bf3==null?void 0x0:_0x102bf3['downloadEndpointUrl'])!=null?_0x540ca1:location['origin'];}[_0x4d97e8(0x252)](_0x107ae6,_0xc58021){const _0x3aef5c=_0x4d97e8;return _0x107ae6[_0x3aef5c(0x200)](_0x3aef5c(0x43a),_0xc58021);}['_decreaseWaiting'](){const _0x4f14df=_0x4d97e8;this[_0x4f14df(0x4b3)]-=0x1,this[_0x4f14df(0xfd)]['next'](this[_0x4f14df(0x4b3)]);}},exports[_0x4d97e8(0x371)]=Sn([xe(0x0,a[_0x4d97e8(0x13d)](w[_0x4d97e8(0x37b)])),xe(0x1,a[_0x4d97e8(0x332)]),xe(0x2,a[_0x4d97e8(0x13d)](a['IUniverInstanceService']))],exports[_0x4d97e8(0x371)]);var Cn=Object[_0x4d97e8(0x8e)],En=Object[_0x4d97e8(0x100)],bn=(_0xf4bfdd,_0x54c920,_0xa822,_0x77ca59)=>{const _0x559039=_0x4d97e8;for(var _0x5d9f9d=_0x77ca59>0x1?void 0x0:_0x77ca59?En(_0x54c920,_0xa822):_0x54c920,_0xfd1781=_0xf4bfdd[_0x559039(0x424)]-0x1,_0x1f4d85;_0xfd1781>=0x0;_0xfd1781--)(_0x1f4d85=_0xf4bfdd[_0xfd1781])&&(_0x5d9f9d=(_0x77ca59?_0x1f4d85(_0x54c920,_0xa822,_0x5d9f9d):_0x1f4d85(_0x5d9f9d))||_0x5d9f9d);return _0x77ca59&&_0x5d9f9d&&Cn(_0x54c920,_0xa822,_0x5d9f9d),_0x5d9f9d;},_e=(_0x1f64b9,_0x106b00)=>(_0x4012a3,_0x38ed17)=>_0x106b00(_0x4012a3,_0x38ed17,_0x1f64b9);let Te=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x1acf0e,_0x56f7b2,_0x574965,_0x29471a,_0x6a5e38){const _0x20211e=_0x4d97e8;super(),this['_injector']=_0x1acf0e,this[_0x20211e(0x85)]=_0x56f7b2,this[_0x20211e(0xf8)]=_0x574965,this[_0x20211e(0x414)]=_0x29471a,this['_localeService']=_0x6a5e38,this[_0x20211e(0x14f)](),this[_0x20211e(0x3df)]();}[_0x4d97e8(0x3df)](){const _0x116f44=_0x4d97e8,_0xe23c69=async _0x46b384=>{const _0x2c4da1=_0x4a0f;(await this[_0x2c4da1(0x414)][_0x2c4da1(0x1e1)](_0x46b384))[_0x2c4da1(0x3e4)][_0x2c4da1(0x488)](E[_0x2c4da1(0x355)](_0x5932e0=>_0x5932e0['eventID']===_[_0x2c4da1(0x49e)][_0x2c4da1(0xdb)]),E[_0x2c4da1(0x439)](this['dispose$']))[_0x2c4da1(0x1c4)](_0x4720bd=>{const _0x25522b=_0x2c4da1,_0x4cc251=_0x4720bd,{reason:_0x243a8e}=_0x4cc251['data'];this['_injector'][_0x25522b(0x491)](A['IMessageService'])[_0x25522b(0x207)]({'type':X[_0x25522b(0xa0)][_0x25522b(0x1ff)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x243a8e+')'}),this[_0x25522b(0xf8)][_0x25522b(0xc7)](new C[(_0x25522b(0xa6))](_0x46b384)['id'],!0x1),this[_0x25522b(0x414)]['closeSession'](_0x46b384);});};v['merge'](this[_0x116f44(0x85)][_0x116f44(0x24b)](a[_0x116f44(0x262)][_0x116f44(0x15c)]),this[_0x116f44(0x85)][_0x116f44(0x24b)](a[_0x116f44(0x262)][_0x116f44(0x15d)]))[_0x116f44(0x488)](E['map'](_0x4161b9=>_0x4161b9[_0x116f44(0x46c)]()),E[_0x116f44(0x355)](_0x2d3143=>!a[_0x116f44(0x2de)](_0x2d3143)),E[_0x116f44(0x439)](this['dispose$']))[_0x116f44(0x1c4)](_0x3865c3=>{_0xe23c69(_0x3865c3);});}[_0x4d97e8(0x14f)](){const _0x2be37c=_0x4d97e8,_0x45aca9=async _0x28e013=>{const _0x27a5be=_0x4a0f;(await this[_0x27a5be(0x414)][_0x27a5be(0x1e1)](_0x28e013))['event$'][_0x27a5be(0x488)](E[_0x27a5be(0x355)](_0x27e1ba=>_0x27e1ba[_0x27a5be(0x445)]===_[_0x27a5be(0x49e)][_0x27a5be(0x3f0)]),E[_0x27a5be(0x439)](this[_0x27a5be(0x498)]))['subscribe'](_0x132f99=>{const _0x5b4d75=_0x27a5be,_0x3ad1a2=_0x132f99,{objectId:_0xc60ba5}=_0x3ad1a2['data'],_0xed84f6=this[_0x5b4d75(0x2cd)][_0x5b4d75(0x491)](te[_0x5b4d75(0x24c)]);_0xc60ba5===_0x28e013?_0xed84f6['initWorkbookPermissionChange'](_0x28e013):_0xed84f6['refreshPermission'](_0x28e013,_0xc60ba5);});};v[_0x2be37c(0x1c8)](this[_0x2be37c(0x85)]['getTypeOfUnitAdded$'](a[_0x2be37c(0x262)][_0x2be37c(0x15c)]),this[_0x2be37c(0x85)][_0x2be37c(0x24b)](a[_0x2be37c(0x262)][_0x2be37c(0x15d)]))['pipe'](E[_0x2be37c(0x12b)](_0x57bac9=>_0x57bac9['getUnitId']()),E[_0x2be37c(0x355)](_0x653491=>!a[_0x2be37c(0x2de)](_0x653491)),E[_0x2be37c(0x439)](this['dispose$']))[_0x2be37c(0x1c4)](_0x7da6bd=>{_0x45aca9(_0x7da6bd);});}};Te=bn([_e(0x0,a['Inject'](a[_0x4d97e8(0xd0)])),_e(0x1,a[_0x4d97e8(0x248)]),_e(0x2,a[_0x4d97e8(0x294)]),_e(0x3,a['Inject'](exports['CollaborationSessionService'])),_e(0x4,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)]))],Te);var Tn=Object[_0x4d97e8(0x8e)],Rn=Object['getOwnPropertyDescriptor'],On=(_0xe04337,_0x46c92d,_0x343c06,_0x448221)=>{const _0x57de00=_0x4d97e8;for(var _0x8770b3=_0x448221>0x1?void 0x0:_0x448221?Rn(_0x46c92d,_0x343c06):_0x46c92d,_0x16a80e=_0xe04337[_0x57de00(0x424)]-0x1,_0x5ed2c4;_0x16a80e>=0x0;_0x16a80e--)(_0x5ed2c4=_0xe04337[_0x16a80e])&&(_0x8770b3=(_0x448221?_0x5ed2c4(_0x46c92d,_0x343c06,_0x8770b3):_0x5ed2c4(_0x8770b3))||_0x8770b3);return _0x448221&&_0x8770b3&&Tn(_0x46c92d,_0x343c06,_0x8770b3),_0x8770b3;},dt=(_0x3e41ae,_0x82da0a)=>(_0x373b4b,_0x337d16)=>_0x82da0a(_0x373b4b,_0x337d16,_0x3e41ae);exports[_0x4d97e8(0x1f6)]=class{constructor(_0x3e3872,_0x39fb5c){const _0x4c6e94=_0x4d97e8;this[_0x4c6e94(0xbd)]=_0x3e3872,this[_0x4c6e94(0x2bb)]=_0x39fb5c;}async[_0x4d97e8(0x2ba)](_0x403fcf,_0x1ea979){const _0x35e0dc=_0x4d97e8;var _0x1b3b42;const {unitID:_0x262281,type:_0x5c2540,revision:_0x47ba3c=0x0}=_0x1ea979,_0x57a1d3=this[_0x35e0dc(0x1a3)]()+'/'+_0x5c2540+_0x35e0dc(0x218)+_0x262281+_0x35e0dc(0x358)+_0x47ba3c,_0x4856df=(await this[_0x35e0dc(0x2bb)][_0x35e0dc(0x491)](_0x57a1d3))[_0x35e0dc(0x1f2)],_0x477d3d=(_0x1b3b42=_0x4856df['snapshot'])==null?void 0x0:_0x1b3b42[_0x35e0dc(0x2b6)];if(_0x477d3d){const _0x2c8d27=_0x477d3d==null?void 0x0:_0x477d3d['originalMeta'],_0x7d261f=_['textEncoder'][_0x35e0dc(0x3e9)](_[_0x35e0dc(0x3b1)](_0x2c8d27));_0x477d3d['originalMeta']=_0x7d261f,Object['entries'](_0x477d3d[_0x35e0dc(0x25f)])[_0x35e0dc(0x373)](([,_0x1f23ad])=>{const _0xdc000d=_0x35e0dc,_0x6b4676=_0x1f23ad['originalMeta'],_0xff9248=_[_0xdc000d(0x342)]['encode'](_[_0xdc000d(0x3b1)](_0x6b4676));_0x1f23ad[_0xdc000d(0x46a)]=_0xff9248;});}return _0x4856df;}async[_0x4d97e8(0x2e6)](_0x5696da,_0x2623b2){const _0x135029=_0x4d97e8,{unitID:_0x11ec59,type:_0x5c084c,blockID:_0x4e70e8}=_0x2623b2,_0x462172=this[_0x135029(0x1b9)]()+'/'+_0x5c084c+_0x135029(0x218)+_0x11ec59+_0x135029(0x319)+_0x4e70e8;return(await this[_0x135029(0x2bb)]['get'](_0x462172))[_0x135029(0x1f2)];}async[_0x4d97e8(0x307)](_0x1df0a3,_0x1f4175){const _0x2d4c3f=_0x4d97e8,{unitID:_0x4db841,type:_0x24973f,blockID:_0x543a89}=_0x1f4175,_0x4f0c7f=this['_getAPIPrefix']()+'/block/'+_0x24973f+'/unit/'+_0x4db841+_0x2d4c3f(0x319)+_0x543a89;return(await this[_0x2d4c3f(0x2bb)][_0x2d4c3f(0x491)](_0x4f0c7f))[_0x2d4c3f(0x1f2)];}async[_0x4d97e8(0xee)](_0x5557e8,_0x3cacef){const _0x105bba=_0x4d97e8,{unitID:_0x59a0e8,type:_0x433782,from:_0x592d8d,to:_0x469cf1}=_0x3cacef,_0x3e60fb=this[_0x105bba(0x1b9)]()+'/'+_0x433782+'/unit/'+_0x59a0e8+_0x105bba(0x20e)+_0x592d8d+_0x105bba(0x1fd)+_0x469cf1;return(await this['_httpService'][_0x105bba(0x491)](_0x3e60fb))[_0x105bba(0x1f2)];}[_0x4d97e8(0x1a3)](){const _0x54fd1b=_0x4d97e8;var _0x2c9f5f;return(_0x2c9f5f=this['_configService'][_0x54fd1b(0x1f4)](vt))!=null?_0x2c9f5f:this[_0x54fd1b(0x1b9)]();}['_getAPIPrefix'](){const _0xf5be10=_0x4d97e8;var _0x125f26,_0x13ed04;const _0x42d84d=this[_0xf5be10(0xbd)][_0xf5be10(0x1f4)](St),_0x52a569=this[_0xf5be10(0xbd)][_0xf5be10(0x1f4)](L);return(_0x13ed04=(_0x125f26=_0x52a569==null?void 0x0:_0x52a569[_0xf5be10(0x30b)])!=null?_0x125f26:_0x42d84d)!=null?_0x13ed04:qt;}async[_0x4d97e8(0x28b)](_0x5d2236,_0x227736){const _0x4af848=_0x4d97e8,_0x663592=_0x4af848(0x16a)+_0x227736[_0x4af848(0x366)]+'/unit/'+_0x227736[_0x4af848(0x331)]+_0x4af848(0x3f6);return(await this[_0x4af848(0x2bb)][_0x4af848(0x491)](_0x663592,{'params':{'resourceId':JSON[_0x4af848(0x1f8)](_0x227736[_0x4af848(0x4af)])}}))['body'];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4d97e8(0xc0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4d97e8(0x3e2)](){const _0x3ca7f5=_0x4d97e8;throw new Error(_0x3ca7f5(0x3a0));}[_0x4d97e8(0x1af)](){const _0x5917ad=_0x4d97e8;throw new Error(_0x5917ad(0x3a0));}[_0x4d97e8(0x32c)](){const _0x115e3=_0x4d97e8;throw new Error(_0x115e3(0x3a0));}},exports[_0x4d97e8(0x1f6)]=On([dt(0x0,a[_0x4d97e8(0x332)]),dt(0x1,a[_0x4d97e8(0x13d)](w[_0x4d97e8(0x37b)]))],exports[_0x4d97e8(0x1f6)]);var Dn=Object[_0x4d97e8(0x8e)],yn=Object['getOwnPropertyDescriptor'],Un=(_0xb789a2,_0x4f634b,_0x1909c4,_0x396cff)=>{const _0x4c15ee=_0x4d97e8;for(var _0x39d577=_0x396cff>0x1?void 0x0:_0x396cff?yn(_0x4f634b,_0x1909c4):_0x4f634b,_0x20d7d4=_0xb789a2[_0x4c15ee(0x424)]-0x1,_0x935c19;_0x20d7d4>=0x0;_0x20d7d4--)(_0x935c19=_0xb789a2[_0x20d7d4])&&(_0x39d577=(_0x396cff?_0x935c19(_0x4f634b,_0x1909c4,_0x39d577):_0x935c19(_0x39d577))||_0x39d577);return _0x396cff&&_0x39d577&&Dn(_0x4f634b,_0x1909c4,_0x39d577),_0x39d577;},ue=(_0x429d75,_0x2adff1)=>(_0x523d6c,_0x2d2a35)=>_0x2adff1(_0x523d6c,_0x2d2a35,_0x429d75);let Fe=class extends a[_0x4d97e8(0x3b4)]{constructor(_0x42550d,_0x22b5a9,_0x314ed8,_0x5a976b,_0x12afb0){const _0x27190c=_0x4d97e8;super(_0x42550d,_0x22b5a9,_0x314ed8),this[_0x27190c(0x165)]=_0x5a976b,this['_logService']=_0x12afb0;}['transformUndoRedo'](_0xe98c1b,_0x2697ee){const _0x44e5cb=_0x4d97e8,_0xbdbd7=this['_getUndoStack'](_0xe98c1b);if(_0xbdbd7)try{const _0x4d1d75=this['_transformStack'](_0xbdbd7,_0x2697ee);this[_0x44e5cb(0x235)](_0xe98c1b,_0x4d1d75);}catch(_0x16c1ba){this['_logService'][_0x44e5cb(0x497)]('[CollaborationUndoRedoService]',_0x16c1ba),this[_0x44e5cb(0x46f)](_0xe98c1b);}const _0x3e3452=this[_0x44e5cb(0x2dc)](_0xe98c1b);if(_0x3e3452)try{const _0x158dbd=this[_0x44e5cb(0x421)](_0x3e3452,_0x2697ee);this[_0x44e5cb(0x109)](_0xe98c1b,_0x158dbd);}catch(_0x9b6663){this[_0x44e5cb(0x188)][_0x44e5cb(0x497)](_0x9b6663),this[_0x44e5cb(0x15e)](_0xe98c1b);}}[_0x4d97e8(0x46f)](_0xcf000){const _0x2c5c2f=_0x4d97e8,_0x16e6ff=this[_0x2c5c2f(0x1fc)](_0xcf000);_0x16e6ff&&(_0x16e6ff['length']=0x0,this[_0x2c5c2f(0x267)]());}['_clearRedo'](_0x4ddf0d){const _0x45a85a=_0x4d97e8,_0x202885=this[_0x45a85a(0x2dc)](_0x4ddf0d);_0x202885&&(_0x202885['length']=0x0,this[_0x45a85a(0x267)]());}[_0x4d97e8(0x235)](_0x705d0b,_0x2dcc54){const _0x162db5=_0x4d97e8;this[_0x162db5(0x338)][_0x162db5(0x24d)](_0x705d0b,_0x2dcc54),this['_updateStatus']();}[_0x4d97e8(0x109)](_0x279805,_0x1388b3){const _0x29d71b=_0x4d97e8;this[_0x29d71b(0x122)][_0x29d71b(0x24d)](_0x279805,_0x1388b3),this[_0x29d71b(0x267)]();}[_0x4d97e8(0x421)](_0x561480,_0x862e50){const _0x24541d=_0x4d97e8,_0x5ee034=[];let _0x279173=_0x862e50,_0xc35218=_0x862e50;for(let _0x11b938=_0x561480[_0x24541d(0x424)]-0x1;_0x11b938>=0x0;_0x11b938--){const {unitID:_0x60e54e,undoMutations:_0x25dbb0,redoMutations:_0x905ff}=_0x561480[_0x11b938],_0x400355=this[_0x24541d(0x165)][_0x24541d(0x2a5)](_0x279173,_0x25dbb0),_0x3ebaf7=this['_transformService'][_0x24541d(0x2a5)](_0xc35218,_0x905ff);if(_['isTransformMutationsWithChangesetFailure'](_0x400355)||_['isTransformMutationsWithChangesetFailure'](_0x3ebaf7)){this['_logService'][_0x24541d(0x497)](_0x24541d(0x29d),_0x24541d(0x168),_0x400355,_0x3ebaf7);break;}_0x279173=_0x400355['c1Prime'],_0xc35218=_0x3ebaf7[_0x24541d(0x126)],_0x5ee034[_0x24541d(0x29b)]({'unitID':_0x60e54e,'undoMutations':_0x400355[_0x24541d(0x1a9)],'redoMutations':_0x3ebaf7['m2Prime']});}return _0x5ee034[_0x24541d(0x4b2)]();}};Fe=Un([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x4d97e8(0x433)]),ue(0x2,a['IContextService']),ue(0x3,_[_0x4d97e8(0x18d)]),ue(0x4,a[_0x4d97e8(0xeb)])],Fe);class $t extends a['RxDisposable']{constructor(){const _0x1c1f93=_0x4d97e8;super(),u(this,_0x1c1f93(0x41f)),this[_0x1c1f93(0x41f)]=v[_0x1c1f93(0x99)](window,'popstate')['pipe'](v[_0x1c1f93(0x439)](this['dispose$']),v[_0x1c1f93(0x298)](0x1),v[_0x1c1f93(0xc8)](void 0x0));}[_0x4d97e8(0x41e)](_0x2d0f57,_0x324c36,_0x2e50f7=!0x1){const _0x4465e8=_0x4d97e8,_0xb445bd=new URL(window['location']['href']);_0xb445bd[_0x4465e8(0x3ec)]['set'](_0x2d0f57,_0x324c36),_0x2e50f7?window[_0x4465e8(0x249)]['replaceState']('','',_0xb445bd['toString']()):window[_0x4465e8(0x249)]['pushState']('','',_0xb445bd[_0x4465e8(0x33f)]());}[_0x4d97e8(0xef)](_0x3714b6,_0x65c459=!0x1){const _0x4a4531=_0x4d97e8,_0x1c372d=new URL(window[_0x4a4531(0x11d)]['href']);_0x1c372d[_0x4a4531(0x3ec)][_0x4a4531(0x1b2)](_0x3714b6),_0x65c459?window['history'][_0x4a4531(0x14e)]('','',_0x1c372d[_0x4a4531(0x33f)]()):window['history'][_0x4a4531(0x31a)]('','',_0x1c372d[_0x4a4531(0x33f)]());}['getParam'](_0x3a87fd){const _0x2bedc6=_0x4d97e8;var _0x196731;return(_0x196731=new URL(window[_0x2bedc6(0x11d)][_0x2bedc6(0x179)])[_0x2bedc6(0x3ec)][_0x2bedc6(0x491)](_0x3a87fd))!=null?_0x196731:void 0x0;}}var Ht=Object[_0x4d97e8(0x8e)],Pn=Object[_0x4d97e8(0x100)],wn=(_0x5d3053,_0x45c764,_0x1669b7)=>_0x45c764 in _0x5d3053?Ht(_0x5d3053,_0x45c764,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1669b7}):_0x5d3053[_0x45c764]=_0x1669b7,Nn=(_0x5b2a5c,_0x170ab8,_0x468268,_0x58d7ef)=>{const _0x2d71ba=_0x4d97e8;for(var _0x21bc59=_0x58d7ef>0x1?void 0x0:_0x58d7ef?Pn(_0x170ab8,_0x468268):_0x170ab8,_0x59e31e=_0x5b2a5c[_0x2d71ba(0x424)]-0x1,_0x48602e;_0x59e31e>=0x0;_0x59e31e--)(_0x48602e=_0x5b2a5c[_0x59e31e])&&(_0x21bc59=(_0x58d7ef?_0x48602e(_0x170ab8,_0x468268,_0x21bc59):_0x48602e(_0x21bc59))||_0x21bc59);return _0x58d7ef&&_0x21bc59&&Ht(_0x170ab8,_0x468268,_0x21bc59),_0x21bc59;},me=(_0x43c3db,_0x52e386)=>(_0x574872,_0x51e3c5)=>_0x52e386(_0x574872,_0x51e3c5,_0x43c3db),Mn=(_0x420ce5,_0x4c4a84,_0x1ac791)=>wn(_0x420ce5,_0x4c4a84+'',_0x1ac791);const An=_0x4d97e8(0x178);exports['UniverCollaborationClientPlugin']=class extends a[_0x4d97e8(0x170)]{constructor(_0x2a74ad=rs,_0x736357,_0xa23f95,_0x3aba2b,_0x14b582){const _0x20cd99=_0x4d97e8;super(),this[_0x20cd99(0x37f)]=_0x2a74ad,this[_0x20cd99(0x188)]=_0x736357,this[_0x20cd99(0x404)]=_0xa23f95,this[_0x20cd99(0x2cd)]=_0x3aba2b,this[_0x20cd99(0xbd)]=_0x14b582;const {..._0x143a1e}=this[_0x20cd99(0x37f)];this[_0x20cd99(0xbd)]['setConfig'](L,_0x143a1e);}[_0x4d97e8(0x376)](){const _0x304ea1=_0x4d97e8;this['_registerDependencies'](),a[_0x304ea1(0x88)](this[_0x304ea1(0x2cd)],[[ne],[exports[_0x304ea1(0x381)]],[Te]]);}[_0x4d97e8(0x1ae)](){const _0x2cffdb=_0x4d97e8;a[_0x2cffdb(0x88)](this[_0x2cffdb(0x2cd)],[[Ce]]);}[_0x4d97e8(0x3e3)](){this['_registerRenderDependencies']();}[_0x4d97e8(0x2df)](){const _0xae2c79=_0x4d97e8;var _0x1f0285,_0x2a035b,_0x51f9c1,_0x52e33e;this[_0xae2c79(0x2cd)][_0xae2c79(0x477)](a['IUndoRedoService'])&&this[_0xae2c79(0x188)][_0xae2c79(0x497)](_0xae2c79(0x2eb),_0xae2c79(0x228));let _0x9e0fd6=[[a[_0xae2c79(0x2fd)],{'useClass':Fe}],[exports[_0xae2c79(0x270)]],[Je],[w[_0xae2c79(0x37b)]],[Qe,{'useClass':$t}],[q],[exports['LocalCacheService']],[w[_0xae2c79(0x44f)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x2a035b=(_0x1f0285=this[_0xae2c79(0x37f)])==null?void 0x0:_0x1f0285[_0xae2c79(0xc2)])!=null?_0x2a035b:exports[_0xae2c79(0x443)]}],[w['IHTTPImplementation'],{'useClass':w[_0xae2c79(0x3c9)]}],[_[_0xae2c79(0x135)],{'useClass':exports[_0xae2c79(0x1f6)]}],[a[_0xae2c79(0x27d)],{'useClass':exports[_0xae2c79(0xe2)]}],[j[_0xae2c79(0x31d)],{'useClass':exports[_0xae2c79(0x371)]}],[exports[_0xae2c79(0x458)]],[exports[_0xae2c79(0x381)]],[exports[_0xae2c79(0x1b4)]],[Ce],[ne]];(_0x51f9c1=this[_0xae2c79(0x37f)])!=null&&_0x51f9c1[_0xae2c79(0x47a)]&&_0x9e0fd6[_0xae2c79(0x29b)]([Re,{'useClass':$s}]),_0x9e0fd6=a[_0xae2c79(0x1d4)](_0x9e0fd6,(_0x52e33e=this[_0xae2c79(0x37f)])==null?void 0x0:_0x52e33e[_0xae2c79(0x10e)]),_0x9e0fd6['forEach'](_0x9a71ca=>this['_injector'][_0xae2c79(0x471)](_0x9a71ca)),this['_initModules']();}[_0x4d97e8(0x49c)](){const _0x59d7fe=_0x4d97e8;this[_0x59d7fe(0x1e2)](this['_renderManagerService'][_0x59d7fe(0x29f)](a[_0x59d7fe(0x262)][_0x59d7fe(0x15d)],[Ve])),this[_0x59d7fe(0x1e2)](this[_0x59d7fe(0x404)][_0x59d7fe(0x29f)](a['UniverInstanceType'][_0x59d7fe(0x15c)],[We]));}['_initModules'](){const _0x269f67=_0x4d97e8;var _0x44693c,_0x5ca739;this[_0x269f67(0x2cd)][_0x269f67(0x491)](w[_0x269f67(0x37b)])[_0x269f67(0x2c2)]({'priority':0x14,'interceptor':w[_0x269f67(0x19c)]({'maxParallel':0x6})}),this[_0x269f67(0x2cd)]['get'](be),(_0x44693c=this[_0x269f67(0x37f)])!=null&&_0x44693c['enableOfflineEditing']||this[_0x269f67(0x2cd)][_0x269f67(0x491)](exports[_0x269f67(0x18f)])[_0x269f67(0xf7)](),(_0x5ca739=this[_0x269f67(0x37f)])!=null&&_0x5ca739[_0x269f67(0x480)]&&this[_0x269f67(0x2cd)][_0x269f67(0x491)](Ee),this[_0x269f67(0x2cd)][_0x269f67(0x491)](exports[_0x269f67(0x458)]),this[_0x269f67(0x2cd)][_0x269f67(0x477)](exports[_0x269f67(0x1b4)])&&this[_0x269f67(0x2cd)][_0x269f67(0x491)](exports[_0x269f67(0x1b4)]);}},Mn(exports[_0x4d97e8(0xd7)],_0x4d97e8(0x49b),An),exports[_0x4d97e8(0xd7)]=Nn([a[_0x4d97e8(0x1f0)](_[_0x4d97e8(0x261)]),me(0x1,a[_0x4d97e8(0xeb)]),me(0x2,D[_0x4d97e8(0x3cb)]),me(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),me(0x4,a[_0x4d97e8(0x332)])],exports[_0x4d97e8(0xd7)]),exports[_0x4d97e8(0x39f)]=jt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=gt,exports[_0x4d97e8(0x2e4)]=U,exports[_0x4d97e8(0x2ca)]=Lt,exports[_0x4d97e8(0x22f)]=Xe,exports[_0x4d97e8(0x162)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x4d97e8(0xa9)]=Ke,exports['IURLService']=Qe,exports[_0x4d97e8(0x2ec)]=pt,exports[_0x4d97e8(0x467)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=zt,exports[_0x4d97e8(0x2c4)]=St,exports[_0x4d97e8(0x429)]=vt,exports[_0x4d97e8(0x495)]=H,exports[_0x4d97e8(0x4b8)]=Pt,exports['WebURLService']=$t,exports['deserializeToCombResponse']=Rt,exports[_0x4d97e8(0x397)]=Ot;
|
1
|
+
'use strict';const _0x37a374=_0x513c;(function(_0x4497b9,_0x53eb29){const _0x134f70=_0x513c,_0x36a86f=_0x4497b9();while(!![]){try{const _0x5524a6=parseInt(_0x134f70(0x40e))/0x1+-parseInt(_0x134f70(0x513))/0x2+parseInt(_0x134f70(0x4c4))/0x3*(-parseInt(_0x134f70(0x30a))/0x4)+-parseInt(_0x134f70(0x5a2))/0x5*(parseInt(_0x134f70(0x594))/0x6)+parseInt(_0x134f70(0x3e5))/0x7*(parseInt(_0x134f70(0x1d5))/0x8)+parseInt(_0x134f70(0x395))/0x9*(parseInt(_0x134f70(0x31e))/0xa)+parseInt(_0x134f70(0x40b))/0xb;if(_0x5524a6===_0x53eb29)break;else _0x36a86f['push'](_0x36a86f['shift']());}catch(_0x59b6db){_0x36a86f['push'](_0x36a86f['shift']());}}}(_0xad98,0x507d8));var Mn=Object['defineProperty'],An=(_0x4e6085,_0x26c063,_0x1f37a6)=>_0x26c063 in _0x4e6085?Mn(_0x4e6085,_0x26c063,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f37a6}):_0x4e6085[_0x26c063]=_0x1f37a6,I=(_0x791700,_0x1accd9,_0x27c854)=>An(_0x791700,typeof _0x1accd9!=_0x37a374(0x4a6)?_0x1accd9+'':_0x1accd9,_0x27c854);Object[_0x37a374(0x55e)](exports,Symbol[_0x37a374(0x614)],{'value':_0x37a374(0x471)});const a=require(_0x37a374(0x5d2)),A=require(_0x37a374(0x63e)),V=require('rxjs/operators'),Se=require('@univerjs/design'),te=require(_0x37a374(0x4d5)),Q=require(_0x37a374(0x51a)),p=require(_0x37a374(0x493)),Nn=require(_0x37a374(0x3d4)),Z=require(_0x37a374(0x51e)),k=require(_0x37a374(0x4de)),K=require(_0x37a374(0x4c3)),Re=require(_0x37a374(0x601)),ie=require('@univerjs/drawing'),wt=require('@univerjs/engine-formula'),Te=require(_0x37a374(0x1f5)),z=require(_0x37a374(0x5c0)),Ln=require(_0x37a374(0x24c)),Jt='SNAPSHOT_SERVER_URL_KEY',xn=_0x37a374(0x1d8),Zt=_0x37a374(0x2a3),$n='SEND_CHANGESET_TIMEOUT',jn=0x7d0,Qt=_0x37a374(0x41a),Hn=_0x37a374(0x64f),en=_0x37a374(0x64c),Bn=0x7530,It=_0x37a374(0x4c9),tn=0x4e20,kn=0x4e20,nn=_0x37a374(0x200),Wn=0x3,sn='LOCAL_CACHE_INTERVAL',Fn=0x3e8,rn=_0x37a374(0x57d),Vn='/universer-api/comb',on=_0x37a374(0x20f),Gn=_0x37a374(0x45c);var an=(_0x2f511e=>(_0x2f511e[_0x2f511e['UNDEFINED']=0x0]=_0x37a374(0x55b),_0x2f511e[_0x2f511e['OK']=0x1]='OK',_0x2f511e[_0x2f511e[_0x37a374(0x575)]=0x2]=_0x37a374(0x575),_0x2f511e[_0x2f511e[_0x37a374(0x303)]=0x3]=_0x37a374(0x303),_0x2f511e[_0x2f511e[_0x37a374(0x2ca)]=0x4]='NOT_FOUND',_0x2f511e[_0x2f511e[_0x37a374(0x59a)]=0x5]=_0x37a374(0x59a),_0x2f511e[_0x2f511e[_0x37a374(0x66d)]=0x6]=_0x37a374(0x66d),_0x2f511e[_0x2f511e[_0x37a374(0x20c)]=0x7]=_0x37a374(0x20c),_0x2f511e[_0x2f511e[_0x37a374(0x326)]=0x8]=_0x37a374(0x326),_0x2f511e[_0x2f511e[_0x37a374(0x3d6)]=0x9]=_0x37a374(0x3d6),_0x2f511e[_0x2f511e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x37a374(0x3c7),_0x2f511e[_0x2f511e[_0x37a374(0x3fb)]=0x1771]=_0x37a374(0x3fb),_0x2f511e[_0x2f511e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x37a374(0x679),_0x2f511e[_0x2f511e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x37a374(0x564),_0x2f511e[_0x2f511e['APPLY_REJECT']=0x1b59]=_0x37a374(0x474),_0x2f511e[_0x2f511e[_0x37a374(0x4e7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2f511e[_0x2f511e[_0x37a374(0x58e)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2f511e[_0x2f511e[_0x37a374(0x41e)]=0x1b5c]=_0x37a374(0x41e),_0x2f511e[_0x2f511e[_0x37a374(0x60f)]=0x1b5d]=_0x37a374(0x60f),_0x2f511e[_0x2f511e[_0x37a374(0x659)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2f511e[_0x2f511e[_0x37a374(0x446)]=0x2329]=_0x37a374(0x446),_0x2f511e[_0x2f511e[_0x37a374(0x512)]=0x232a]=_0x37a374(0x512),_0x2f511e[_0x2f511e[_0x37a374(0x488)]=0x232b]=_0x37a374(0x488),_0x2f511e[_0x2f511e[_0x37a374(0x4f4)]=0x232c]=_0x37a374(0x4f4),_0x2f511e[_0x2f511e[_0x37a374(0x543)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2f511e[_0x2f511e[_0x37a374(0x61d)]=0x2711]=_0x37a374(0x61d),_0x2f511e[_0x2f511e[_0x37a374(0x2a4)]=0x2712]=_0x37a374(0x2a4),_0x2f511e[_0x2f511e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x37a374(0x2d2),_0x2f511e[_0x2f511e[_0x37a374(0x516)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2f511e[_0x2f511e[_0x37a374(0x1d3)]=-0x1]='UNRECOGNIZED',_0x2f511e))(an||{}),se=(_0x4e3218=>(_0x4e3218[_0x4e3218[_0x37a374(0x4be)]=0x0]='UNIVER_UNKNOWN',_0x4e3218[_0x4e3218['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x4e3218[_0x4e3218[_0x37a374(0x362)]=0x2]=_0x37a374(0x362),_0x4e3218[_0x4e3218[_0x37a374(0x2ec)]=0x3]=_0x37a374(0x2ec),_0x4e3218[_0x4e3218[_0x37a374(0x582)]=0x4]='UNIVER_PROJECT',_0x4e3218[_0x4e3218['UNRECOGNIZED']=-0x1]=_0x37a374(0x1d3),_0x4e3218))(se||{}),G=(_0x6ed77b=>(_0x6ed77b[_0x6ed77b[_0x37a374(0x462)]=0x0]=_0x37a374(0x462),_0x6ed77b[_0x6ed77b[_0x37a374(0x297)]=0x1]=_0x37a374(0x297),_0x6ed77b[_0x6ed77b[_0x37a374(0x1cb)]=0x2]=_0x37a374(0x1cb),_0x6ed77b[_0x6ed77b[_0x37a374(0x64b)]=0x3]=_0x37a374(0x64b),_0x6ed77b[_0x6ed77b['INGEST']=0x4]='INGEST',_0x6ed77b[_0x6ed77b[_0x37a374(0x415)]=0x5]=_0x37a374(0x415),_0x6ed77b[_0x6ed77b['RECV']=0x6]=_0x37a374(0x2b6),_0x6ed77b[_0x6ed77b[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x6ed77b))(G||{}),Ct=(_0x2a551a=>(_0x2a551a[_0x2a551a['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x2a551a[_0x2a551a['OK']=0x1]='OK',_0x2a551a[_0x2a551a['FAIL']=0x2]=_0x37a374(0x400),_0x2a551a[_0x2a551a[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x2a551a))(Ct||{}),cn=(_0x162ca8=>(_0x162ca8[_0x162ca8['Undefined']=0x0]=_0x37a374(0x617),_0x162ca8[_0x162ca8[_0x37a374(0x26e)]=0x1]=_0x37a374(0x26e),_0x162ca8[_0x162ca8[_0x37a374(0x1f6)]=0x2]='HttpExport',_0x162ca8[_0x162ca8['UnitEmbedded']=0x3]='UnitEmbedded',_0x162ca8[_0x162ca8['UnitSnapshot']=0x4]=_0x37a374(0x393),_0x162ca8[_0x162ca8[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x162ca8))(cn||{});const ne=_0x37a374(0x3b3),Yn={};function ln(_0x3810ac){const _0x150e35=_0x37a374;var _0x36df5f,_0x4ef96f,_0x4af83a,_0x5c5db7,_0x27275b;const _0x3794d1=_0x3810ac['data'],_0x4081b8=JSON[_0x150e35(0x558)](_0x3794d1);switch(_0x4081b8[_0x150e35(0x3eb)]){case G[_0x150e35(0x415)]:case G[_0x150e35(0x297)]:{const _0x38a470=_0x4081b8[_0x150e35(0x3fc)];return{..._0x4081b8,'data':_0x38a470,'cmd':_0x4081b8[_0x150e35(0x3eb)]};}case G[_0x150e35(0x1cb)]:{const _0x56ab24=_0x4081b8[_0x150e35(0x497)];return{..._0x4081b8,'data':_0x56ab24,'cmd':_0x4081b8[_0x150e35(0x3eb)]};}case G[_0x150e35(0x2b6)]:{const _0xd80beb=_0x4081b8['collaMsg'];switch(_0xd80beb[_0x150e35(0x1d7)]){case p['CollaborationEvent'][_0x150e35(0x3f8)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x36df5f=_0xd80beb[_0x150e35(0x367)])==null?void 0x0:_0x36df5f['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x23b)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x4ef96f=_0xd80beb[_0x150e35(0x43e)])==null?void 0x0:_0x4ef96f['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)]['NEW_CHANGESETS']:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x4af83a=_0xd80beb['newCsEvent'])==null?void 0x0:_0x4af83a['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)]['CHANGESET_REJ']:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x5c5db7=_0xd80beb['csRejEvent'])==null?void 0x0:_0x5c5db7['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x24f)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x27275b=_0xd80beb[_0x150e35(0x571)])==null?void 0x0:_0x27275b['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x2f6)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['updateCursorEvent']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x4e9)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x3cc)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x5de)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['leaveEvent']},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x4e4)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['liveShareNewHost']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x2d3)]:case p[_0x150e35(0x521)]['LIVESHARE_OPERATION']:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x25c)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x61c)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x4a2)]},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x2f0)]:return{..._0x4081b8,'data':_0xd80beb,'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x487)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x351)]},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x4ed)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x5eb)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x544)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x2df)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};default:return _0x4081b8;}}default:return _0x4081b8;}}function hn(_0x20269d){const _0x55398a=_0x37a374;switch(_0x20269d['cmd']){case G[_0x55398a(0x415)]:case G[_0x55398a(0x297)]:return JSON['stringify']({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d[_0x55398a(0x55a)]});case G['INGEST']:{let _0x31ab34;switch(_0x20269d['data']['eventID']){case p[_0x55398a(0x521)][_0x55398a(0x2f6)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x2f6)],'updateCursorEvent':_0x20269d['data']['data']};break;}case p[_0x55398a(0x521)][_0x55398a(0x5de)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x5de)],'leaveEvent':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x4e9)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x4e9)],'joinEvent':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x4e4)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x4e4)],'liveShareNewHost':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x416)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x416)],'liveShareOperation':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x31ab34={'eventID':p[_0x55398a(0x521)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x3aa)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x3aa)],'liveShareRequestHost':_0x20269d[_0x55398a(0x470)]['data']};break;}case p[_0x55398a(0x521)]['LIVESHARE_FETCH_OPERATIONS']:{_0x31ab34={'eventID':p[_0x55398a(0x521)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x31ab34={'eventID':_0x20269d[_0x55398a(0x470)][_0x55398a(0x1d7)]};}return JSON['stringify']({'cmd':_0x20269d['cmd'],'routeKey':_0x20269d[_0x55398a(0x55a)],'collaMsg':_0x31ab34});}case G[_0x55398a(0x1cb)]:return JSON[_0x55398a(0x3df)]({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d['routeKey'],'joinReq':_0x20269d[_0x55398a(0x470)]});case G[_0x55398a(0x64b)]:return JSON[_0x55398a(0x3df)]({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d[_0x55398a(0x55a)],'leaveReq':_0x20269d[_0x55398a(0x470)]});default:throw new Error(_0x55398a(0x4ce));}}var Kn=Object[_0x37a374(0x55e)],qn=Object[_0x37a374(0x4a5)],zn=(_0x2a0d8b,_0x2b98d0,_0x3ea425,_0x17e747)=>{const _0x4b2ace=_0x37a374;for(var _0x5e5aef=_0x17e747>0x1?void 0x0:_0x17e747?qn(_0x2b98d0,_0x3ea425):_0x2b98d0,_0x143148=_0x2a0d8b[_0x4b2ace(0x330)]-0x1,_0x52ba84;_0x143148>=0x0;_0x143148--)(_0x52ba84=_0x2a0d8b[_0x143148])&&(_0x5e5aef=(_0x17e747?_0x52ba84(_0x2b98d0,_0x3ea425,_0x5e5aef):_0x52ba84(_0x5e5aef))||_0x5e5aef);return _0x17e747&&_0x5e5aef&&Kn(_0x2b98d0,_0x3ea425,_0x5e5aef),_0x5e5aef;},De=(_0x2f9dbf,_0x25c204)=>(_0x50d3b6,_0x25e4b1)=>_0x25c204(_0x50d3b6,_0x25e4b1,_0x2f9dbf);const Et=a[_0x37a374(0x3e0)](_0x37a374(0x27c));function Xn(_0x1a0211,_0x11d1d5,_0xdd68d0){const _0x17f7f4=_0x37a374;return _0x1a0211+'/'+_0x11d1d5+_0x17f7f4(0x625)+_0xdd68d0+_0x17f7f4(0x4a4);}exports['CollaborationSocketService']=class extends a[_0x37a374(0x65c)]{constructor(_0x26f201,_0xb14f75,_0x2ca1e4,_0x3d7cb7,_0x525ce8){const _0x23b9ce=_0x37a374;super(),this[_0x23b9ce(0x526)]=_0x26f201,this[_0x23b9ce(0x4e1)]=_0xb14f75,this[_0x23b9ce(0x3e7)]=_0x2ca1e4,this[_0x23b9ce(0x58a)]=_0x3d7cb7,this[_0x23b9ce(0x1c8)]=_0x525ce8;}[_0x37a374(0x256)](_0xb7349){const _0x402a45=_0x37a374,_0x30b83d=this['_ws'][_0x402a45(0x256)](_0xb7349);if(!_0x30b83d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x226851=new a[(_0x402a45(0x2f8))](),_0x53ceb5=new A[(_0x402a45(0x383))]();_0x226851['add'](_0x30b83d[_0x402a45(0x486)]['subscribe'](_0x171355=>_0x53ceb5[_0x402a45(0x24e)](_0x171355))),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x53ceb5[_0x402a45(0x1c0)]()));const _0x1a78ce=new A['Subject']();_0x226851['add'](_0x30b83d['error$'][_0x402a45(0x274)](_0x57d8e8=>_0x1a78ce['next'](_0x57d8e8))),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x1a78ce['complete']()));const _0x463869=new A[(_0x402a45(0x383))]();_0x226851[_0x402a45(0x63d)](_0x30b83d[_0x402a45(0x5a1)]['subscribe'](_0xe90b2d=>{const _0x5e8d58=ln(_0xe90b2d);_0x463869['next'](_0x5e8d58);})),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x463869[_0x402a45(0x1c0)]()));let _0x2a3509;const _0x5dda44=()=>{const _0x46eefb=_0x402a45;_0x1a78ce[_0x46eefb(0x24e)](new Event(_0x46eefb(0x248))),_0x53ceb5['next'](new CloseEvent(_0x46eefb(0x248))),_0x2a3509[_0x46eefb(0x46c)]();};return _0x2a3509={'memberID':'','close$':_0x53ceb5[_0x402a45(0x483)](),'error$':_0x1a78ce[_0x402a45(0x483)](),'open$':_0x30b83d[_0x402a45(0x547)],'message$':_0x463869[_0x402a45(0x483)](),'send':_0x2cf1c8=>{const _0x21ac6d=_0x402a45;if(_0x2cf1c8[_0x21ac6d(0x3eb)]===G[_0x21ac6d(0x480)]){if(_0x2cf1c8[_0x21ac6d(0x470)][_0x21ac6d(0x1d7)]===p[_0x21ac6d(0x521)][_0x21ac6d(0x380)]){this['_submitChangeset'](_0x2a3509,_0x2cf1c8[_0x21ac6d(0x470)])[_0x21ac6d(0x4bd)](_0x46f259=>{const _0xfaee=_0x21ac6d;this[_0xfaee(0x58a)][_0xfaee(0x237)](_0x46f259),_0x5dda44();});return;}if(_0x2cf1c8['data'][_0x21ac6d(0x1d7)]===p[_0x21ac6d(0x521)][_0x21ac6d(0x3e8)]){const _0x3190d0=_0x2cf1c8[_0x21ac6d(0x470)];this['_fetchMissChangesets'](_0x3190d0)['then'](_0x86535a=>{const _0x554994=_0x21ac6d;_0x463869[_0x554994(0x24e)]({'cmd':G[_0x554994(0x2b6)],'code':Ct['OK'],'routeKey':_0x3190d0[_0x554994(0x470)][_0x554994(0x505)],'routeType':'','data':{'eventID':p[_0x554994(0x521)][_0x554994(0x4af)],'data':{'changesets':_0x86535a}}});})['catch'](_0x208eff=>{const _0x55c5ad=_0x21ac6d;this[_0x55c5ad(0x58a)]['error'](_0x208eff),_0x5dda44();});return;}}_0x30b83d[_0x21ac6d(0x554)](hn(_0x2cf1c8));},'close':()=>{const _0x3e1d69=_0x402a45;_0x30b83d['close'](),_0x226851[_0x3e1d69(0x37c)]();}},_0x2a3509;}async[_0x37a374(0x1d1)](_0x318798,_0x3d2a95){const _0x59b08d=_0x37a374;var _0x5268ec,_0x1b25a4;const {unitType:_0x387356,unitID:_0x33bb5d,changeset:_0x5d2fad}=_0x3d2a95[_0x59b08d(0x470)],_0x2d3a17={'unitID':_0x33bb5d,'memberID':_0x318798[_0x59b08d(0x280)],'type':_0x387356,'changeset':p['parseChangesetToProtocol'](_0x5d2fad)},_0x1b578f=this['_configService']['getConfig'](rn),_0x1835e8=this['_configService'][_0x59b08d(0x37d)](ne),_0x51af98=Xn((_0x1b25a4=(_0x5268ec=_0x1835e8==null?void 0x0:_0x1835e8['collabSubmitChangesetUrl'])!=null?_0x5268ec:_0x1b578f)!=null?_0x1b25a4:Vn,_0x387356,_0x33bb5d);try{await this[_0x59b08d(0x526)]['post'](_0x51af98,{'body':_0x2d3a17});}catch(_0x5c48d0){throw this[_0x59b08d(0x58a)][_0x59b08d(0x237)]('[CollaborationSession]',_0x59b08d(0x52e)),_0x5c48d0;}}async[_0x37a374(0x652)](_0x4a6c30){const _0x4d0026=_0x37a374,{unitID:_0x14dbc6,from:_0x1ae4a4,to:_0x22b6ab,unitType:_0x44fe84}=_0x4a6c30[_0x4d0026(0x470)];return(await this[_0x4d0026(0x1c8)][_0x4d0026(0x525)]({'metadata':void 0x0},{'unitID':_0x14dbc6,'type':_0x44fe84,'from':_0x1ae4a4,'to':_0x22b6ab}))[_0x4d0026(0x48c)];}},exports['CollaborationSocketService']=zn([De(0x0,a[_0x37a374(0x629)](Q['HTTPService'])),De(0x1,a[_0x37a374(0x629)](Q[_0x37a374(0x319)])),De(0x2,a[_0x37a374(0x30b)]),De(0x3,a[_0x37a374(0x217)]),De(0x4,p[_0x37a374(0x5cb)])],exports[_0x37a374(0x23f)]);const Jn=_0x37a374(0x2a7);function Zn(_0x32c6b5){const _0x308fcf=_0x37a374;return JSON[_0x308fcf(0x3df)](_0x32c6b5)[_0x308fcf(0x330)];}class bt{constructor(){const _0x2842b6=_0x37a374;I(this,_0x2842b6(0x41f),new A[(_0x2842b6(0x383))]()),I(this,'commentUpdate$',this[_0x2842b6(0x41f)]['asObservable']());}[_0x37a374(0x600)](_0xe37265){const _0x2e44dd=_0x37a374;this['_commentUpdate$'][_0x2e44dd(0x24e)](_0xe37265);}}var Qn=Object['defineProperty'],ei=Object[_0x37a374(0x4a5)],ti=(_0x41390d,_0x26921a,_0x20784a,_0x539860)=>{const _0x187cae=_0x37a374;for(var _0x2eeedb=_0x539860>0x1?void 0x0:_0x539860?ei(_0x26921a,_0x20784a):_0x26921a,_0x231322=_0x41390d[_0x187cae(0x330)]-0x1,_0xbb5df3;_0x231322>=0x0;_0x231322--)(_0xbb5df3=_0x41390d[_0x231322])&&(_0x2eeedb=(_0x539860?_0xbb5df3(_0x26921a,_0x20784a,_0x2eeedb):_0xbb5df3(_0x2eeedb))||_0x2eeedb);return _0x539860&&_0x2eeedb&&Qn(_0x26921a,_0x20784a,_0x2eeedb),_0x2eeedb;},Pt=(_0x415f66,_0x259763)=>(_0x1b0388,_0x16bc9b)=>_0x259763(_0x1b0388,_0x16bc9b,_0x415f66);exports[_0x37a374(0x33d)]=class extends a['Disposable']{constructor(_0x4e5964,_0x7bf9ac){const _0x39278e=_0x37a374;super(),I(this,_0x39278e(0x633),new Map()),(this[_0x39278e(0x1d4)]=_0x4e5964,this[_0x39278e(0x48d)]=_0x7bf9ac,this[_0x39278e(0x4d6)](a[_0x39278e(0x219)](A['merge'](this[_0x39278e(0x1d4)][_0x39278e(0x44a)](a[_0x39278e(0x22d)][_0x39278e(0x362)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x29b7f4=>_0x29b7f4['getUnitId']())),this[_0x39278e(0x1d4)]['getTypeOfUnitDisposed$'](a[_0x39278e(0x22d)][_0x39278e(0x619)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x12d7fe=>_0x12d7fe[_0x39278e(0x615)]())),this[_0x39278e(0x1d4)][_0x39278e(0x44a)](a[_0x39278e(0x22d)][_0x39278e(0x2ec)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x7d6ecf=>_0x7d6ecf[_0x39278e(0x615)]())))['subscribe'](_0x22147a=>this[_0x39278e(0x241)](_0x22147a)))));}[_0x37a374(0x4aa)](_0x2ca4b6){const _0x584379=_0x37a374;this[_0x584379(0x48d)][_0x584379(0x4aa)](_0x2ca4b6);}[_0x37a374(0x1eb)](){const _0x1ddb63=_0x37a374;return this[_0x1ddb63(0x48d)][_0x1ddb63(0x1eb)]();}['updateMember'](_0x511bc1,_0x2349cc){const _0x40e40d=_0x37a374;let _0x44d5c3=this[_0x40e40d(0x633)][_0x40e40d(0x5bf)](_0x511bc1);_0x44d5c3||(_0x44d5c3=new ni(),this[_0x40e40d(0x633)][_0x40e40d(0x5d1)](_0x511bc1,_0x44d5c3)),_0x44d5c3['updateMember'](_0x2349cc);}[_0x37a374(0x595)](_0x11c31b,_0x4c660a){const _0x195aa2=_0x37a374,_0x4d384b=this[_0x195aa2(0x633)][_0x195aa2(0x5bf)](_0x11c31b);_0x4d384b&&_0x4d384b[_0x195aa2(0x595)](_0x4c660a);}[_0x37a374(0x1c4)](_0x3ed2bc){const _0x572d9e=_0x37a374;return this['_roomMembers'][_0x572d9e(0x5bf)](_0x3ed2bc);}[_0x37a374(0x2f4)](_0x307f88,_0x333947){const _0x295c7a=_0x37a374,_0x4eabd7=this[_0x295c7a(0x633)][_0x295c7a(0x5bf)](_0x307f88);if(_0x4eabd7)return _0x4eabd7[_0x295c7a(0x2f4)](_0x333947);}[_0x37a374(0x241)](_0x114d5f){const _0x5aa892=_0x37a374,_0x5c326b=this[_0x5aa892(0x633)][_0x5aa892(0x5bf)](_0x114d5f);_0x5c326b&&(_0x5c326b[_0x5aa892(0x37c)](),this[_0x5aa892(0x633)][_0x5aa892(0x412)](_0x114d5f));}[_0x37a374(0x37c)](){const _0x4b4e8d=_0x37a374;this['_roomMembers'][_0x4b4e8d(0x278)](_0x25a091=>_0x25a091[_0x4b4e8d(0x37c)]()),this[_0x4b4e8d(0x633)][_0x4b4e8d(0x65a)]();}},exports[_0x37a374(0x33d)]=ti([Pt(0x0,a[_0x37a374(0x662)]),Pt(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x403)]))],exports[_0x37a374(0x33d)]);function _0xad98(){const _0x167986=['randomUUID','_startDocCollabCursor','dispose$','INTERNAL_ERROR','_shouldReportTelemetry','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','RichTextEditingMutation','mutations','telemetry\x20info\x20is\x20not\x20initialized','_schedule','EXCHANGE_SIGN_URL_SERVER_URL_KEY','COLLAB_SUBMIT_CHANGESET_URL','hasher','_onRemoteRetry','handleInsertRangeMoveDown','_saveTaskMap','UNIVER_PROJECT','ILocalStorageService','image/jpeg','permission.title','[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.','roomMembers$','useDependency','words','_logService','status','_handleJoinEvent','finalize','APPLY_REVISION_CONFILICT','_injector','onTransformState','_colorAssignService','_syncEditingCollabCursor','collab-text-anchor-','3798672UWbuPq','removeMember','Malformed\x20UTF-8\x20data','DependentOn','POST','UniverIcon','UNAUTHENTICATED','Tools','random','none','_getRedoStack','max','SheetCollabCursorShape','message$','5vSCAUQ','_telemetryInfo','arc','SheetPermissionInitController','getUniverSheetInstance','charCodeAt','docStateChange$','getCurrentUnitForType','handleMoveRange','_cachedData','runRefRangeMutations','top','_startTelemetryCollaborationNewChangeset','_socketService','selections','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getSendChangesetTimeout','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','registerComponent','_awaitingChangeset','objects','AWAITING','target','show','saveImage','SheetSkeletonManagerService','InsertColCommandId','_timeoutTimer','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','get','react','salt','_substituteUndoStack','_localStorageService','_colorIndex','batchAllowed','_selfUnitIDs','$super','NodePositionConvertToCursor','_collabSessionService','init','ISnapshotServerService','event$','_messageService','getCollabEntity$','MoveRangeCommandId','repeat','set','@univerjs/core','_toggleOnline','getRangePointData','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_imageSourceCache','_change$','/object','_initStatusComponent','format','1em','flatMap','createDecryptor','USERS_LEAVE','onPointerMove$','switchMap','CompressMutationService','CollaborationSessionService','_id','_collaborationPaused','_handleLeaveEvent','combineLatest','ImageSourceType','/block/','collaboration.closeRoom','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','updatePermissionObjEvent','_doFinalize','textRanges','roles','_stopTelemetryCollaborationNewChangeset','toggleOffline','_onMessage','resourceIDs','objectID','getUndoRedoMutationParamsCache','readInt32LE','_memberService','_transformSelections','_onCursorUpdate','row','_map','children','includes','BlockCipher','/allowed','_handleHover','onCommentUpdate','@univerjs/docs','encode','onSendChangeset','StreamCipher','_getUploadFileURL','_scheduleCollaborationTimeoutTimer','fromEventSubject','_labelPosition','ranges','_onCombEvent','update','/universer-api/snapshot/','_transformStack','LocalUndoRedoService','APPLY_DUPLICATED','transform','collaboration-session-retry','_transformUndoRedoStack','_clearLocalCache','toStringTag','getUnitId','Vector2','Undefined','font','UNIVER_DOC','DataLoaderController','getAllMembers','LIVESHARE_TERMINATE','YUUMI_UNABLE_LOAD_URL','jiqing500','ACTIVE_UNIT_EVENT_CHANNEL','state','Decryptor','_createHandler','activeSheet$','_HTTPService','/unit/','getSheetObject','defs','focused$','Inject','isTransformMutationsWithChangesetFailure','onTransformChange$','/universer-api/stream/file/upload','interceptor','keySize','updateCollaborator','take','getSkeleton','currentSkeleton$','_roomMembers','_draw','_docSkeleton','PENDING','ceil','_sendHeartbeatTimer','_drawRectRange','baseRev','_anchorDot','reset','add','rxjs','objectType','floor','_transformRemoteChangesetByIMECache','_clearRedo','debug','isInternalEditorID','saveOfflineData','getUnitType','blockSize','onStarting','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','onlyLocal','LEAVE','HEARTBEAT_INTERVAL','RECT','Base64','ws://127.0.0.1:8000/universer-api/comb/connect','RemoveColCommandId','x-univer-host','_fetchMissChangesets','_roomMembers$','size','contains','conflict','_transformHistoryAndStateStack','hasOwnProperty','CONNECTOR_DATA_TOO_LARGE','clear','AUTHZ_URL_KEY','Disposable','on-line-single','drawWith','_throwTelemetryCollaborationNewChangeset','UUID','put','IUniverInstanceService','reqId','_entityInit$','_revisionService','transformChangesets','CommandType','_cursors','_online','IBeforeCloseService','_updateLocalCursor','_minBufferSize','ALREADY_EXISTS','/rev/','triggerDblclick','_docTransformIMECacheService','getTime','AWAITING_WITH_PENDING','Optional','InsertRowCommandId','unit-cache-','method','ColorKit','clone','SNAPSHOT_HAS_BEEN_REMOVED','labelPosition','_registerRenderDependencies','keys','session.room-full','measureText','addObjects','\x0aCurrent:\x20','complete','idSuffix','EmptyMutation','charAt','getRoom','image/bmp','action','key','_snapshotServerService','_localeService','save\x20fail\x20reason\x20is\x20','JOIN','getUnitOnRev','HEADER_MENU','DocCollaborationEntity','updateMember','unshift','_submitChangeset','type','UNRECOGNIZED','_univerInstanceService','1252144UWcvtu','onTransformRemoteChangesetByIMECache','eventID','/universer-api/snapshot','&assign=','online','getActiveRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','buffer','[FetchMissState]','_nRounds','onlineStatus','_transformUndoredo','beginPath','debounceTime','tag','propertyIsEnumerable','result','appendMutation','collab-rect-range-','ONLINE','_removeClearOtherTimer','getCurrentUser','from','getRenderById','&source=','onRemoteRetry','fetch_missing','HEARTBEAT_INTERVAL_KEY','code','deserializeToCombResponse','debounce','@univerjs/sheets-ui','HttpExport','not_collab','_urlService','moveTo','call','awaitingChangeset','DocSelectionManagerService','_localCacheService','_changesetSessionId','loginUrlKey','RETRY_CONNECTING_MAX_COUNT','storage','_iv','equals','?url=','setWaitCount','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','COMPRESS_MUTATION_APPLY','_sender','_event$','processBlock','fromCollab','INVALID_ARGUMENT','_httpService','reduce','LOGIN_URL_KEY','_unitStatus','_collaborationTimeoutTimer','COLLAB_WEB_SOCKET_URL_KEY','registerDependencies','ITransformService','_transformPreviousActiveRange','univer-online-status-title','ILogService','univer-online-status-icon','toDisposable','sendChangesetTimeout','_nDataBytes','name','RegularPolygon','setShapeProps','constructor','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','saveSheetBlock','setConfig','/universer-api/file/{fileID}/sign-url','_onRecvEvent','splice','unit','_docSyncEditingCollabCursorService','awaiting_with_pending','fromCharCode','saveChangeset','getCollabEntity','fillRule','UniverInstanceType','onRemoteRej','HMAC','ciphertext','round','transformStateCache','_lastPointer','_updateState','localeService','sid','error','status$','_unitID','indexOf','CHANGESET_ACK','off-line-single_clip0_910_343','_keyPriorReset','then','CollaborationSocketService','refreshPermission','_removeRoom','min','_onConnectionFailed','has','_transformIMECache','SessionStatus','getDocRanges','connection\x20error','_parse','extend','_cursor','@univerjs/rpc','DocSkeletonManagerService','next','CHANGESET_SHOULD_RETRY','NodePositionConvertToRectRange','undoState','_document','_onUserLeave','_getAPIPrefixPath','_checkMissing','createSocket','push','_getDownloadEndpointURL','getRelativeToViewportCoord','getActiveSheet','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','liveShareOperation','throttleTime','colorChannel1','origin','_transformStateCache','getSheetId','fillText','BufferedBlockAlgorithm','forwardRef','_onOffline','parseProtocolChangeset','all','conflict.title','setUndoRedoMutationParamsCache','_refreshCollabCursors','EffectRefRangId','authzUrl','UniverCollaborationClientPlugin','HttpImport','/resources','transformIMECache','enc','_onRefRangeChange','crypto','subscribe','_getSnapshotAPIPrefix','_eventUnsubscribe','_waitCount','forEach','_initMergeInterceptor','LocalCacheService','/-/object/list','univer-pro.collaboration-client-socket-service','takeUntil','_executeRemoteChangeset','textEncoder','memberID','ERROR_EXCEED_SIZE','resend','substr','construct','_incrementRevisionNumber','mapDocumentTypeToUniverType','getSheetBySheetId','stopTime','randomBytes','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ImageIoService','_socketReady','merge','_acknowledgedAwaitingChangeset','CollaborationStatus','roomMembers','subunit','collabCursorState$','listRoles','fromEvent','_heartbeatTimer','incrementRevOfUnit','HELLO','_append','_isPermissionRej','session.will-retry','current','_candidateSocket','addObject','mapTo','urlChange$','_getScale','withCredentials','replace','SNAPSHOT_URL_KEY','YUUMI_URL_COL_OUT_OF_RANGE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','InsertSheetMutation','collaboration_new_changeset','_xformMode','JSONX','_handleHeartbeatEvent','transformByState','fillStyle','default','pluginName','_onConflict','HmacMD5','_backgroundColor','handleDeleteRangeMoveLeft','_cipher','removeParam','/object/','RECV','backgroundColor','useCallback','SYNCED','_drawTextRange','session','_initCloseConn','purple300','UniverCollaborationPlugin','[SyncedState]:\x20received\x20rejection.','resize','_disabled','handleIRemoveCol','sheetId','_socket$','CipherParams','verdancy600','deepClone','endRow','_data','NOT_FOUND','HTTPRequest','_onRemoteChangeset','_range','svg','getFocusedUnit','clamp','_DEC_XFORM_MODE','YUUMI_RATE_OVER_LIMIT','LIVESHARE_FETCH_OPERATIONS','sheets','startColumn','_getSignURL','\x20in\x20_schedule.','ImageUploadStatusType','handleInsertRangeMoveRight','Unknown\x20user','bottom','fill','SEND_CHANGESET_TIMEOUT_KEY','searchParams','shouldCloseConn','SerializableCipher','getRandomValues','getColor','black','patch','slice','ThresholdInterceptorFactory','getCollabCursors$','_initEventListeners','syncEditingCollabCursor','failed\x20to\x20apply\x20missed\x20changesets!','save','UNIVER_SLIDE','sequenceExecute','univer-pro.collaboration-client.single-active-unit-service','\x20to\x20','MSG_FOR_ERROR','enableOfflineEditing','_singleActiveUnitService','_updateURLWithCurrentState','getMember','Error','UPDATE_CURSOR','RxDisposable','DisposableCollection','getWorkbookSelections','setAlpha','collabWebSocketUrl','_sessions','_refRangeService','_transitionLocked','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','height','M0\x200H16V16H0z','post','PERMISSION_DENIED','_sessionStatus$','_clearOtherTimers','className','_listenToOfflineEvent','number','auth.needGotoLoginAlert','20FXJbal','IConfigService','ICommandService','getMergeData','setShowComponents','range','href','defIds','COMPRESS_MUTATION_SEND','[OfflineState]:\x20received\x20rejection.','socket\x20open.','concat','[PendingState]:\x20unhandled\x20univer\x20type:\x20','MUTATION','TEXT','WebSocketService','_notificationService','sheetID','originalMeta','sessionStatus','9680RAAhMz','disposeUnit','OFFLINE','INotificationService','_tryReconnect','map','_docTransformStateCacheService','__creator','TOO_MANY_REQUESTS','encryptBlock','_getSheetObject','onTransformIME','state$','isActive','_members','_scene','getUnhiddenWorksheets','__esModule','length','_removeCollabCursors','_shapes','onRemoteAck','FETCH_MISS','unsubscribe','createElement','transformMutation','isArray','path','pushState','{fileID}','iterations','MemberService','collab-client.tooltip.reconnect','WordArray','isTransformMutationsWithChangesetSuccess','useRef','Hasher','WebURLService','getCurrentSelections','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_sheetTransformSelectionsService','ERROR_IMAGE_TYPE','/fetchmissing?from=','_scheduleClearOtherTimer','JOINING','handleInsertCol','location','_substituteRedoStack','offline','HTTPService','_lockTransition','commentUpdateEvent','SheetCollaborationEntity','values','fetchMiss','Plugin','headers','OTHER_CLIENTS_EDITING','isTransformMutationFailure','enableLocalCache','unknown','_onRemoteACK','_getCurrentRevision','MergeInterceptorFactory','_hasher','initWorkbookPermissionChange','body','AuthzIoHttpService','UNIVER_SHEET','WorkbookEditablePermission','snapshot','redoState','_joinRoom','permissionRejEvent','file','SHA1','icon','decrypt','Hex','unitId','DocStateChangeManagerService','_state$','COLORS','execute','_initDependencies','Univer','addImageSourceCache','MD5','bind','\x0aAfter:\x20','_onConnectionOpen','engine','serializeCombRequest','_send','dispose','getConfig','_assignedColors','visibilitychange','SUBMIT_CHANGESET','_mode','Rectangle','Subject','_drawAnchor','_queuedRemoteChangesets','_updateSubUnitFromURLParams','getStateCache','_resendTimeout','error$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','compute','m1Prime','transformUndoRedo','toLowerCase','image/jpg','_saveCache','_hovered','_invKeySchedule','UnitSnapshot','_collabCursorState$','900MvgmGx','[DataLoaderController]','collabStatus.fetchMiss','assign','hostname','DOC_RANGE_TYPE','encodeURIComponent','getVpScrollXYInfoByPosToVp','params','cursorInfo','0\x200\x2016\x2016','_syncEditingCollabCursorService','doc.mutation.rich-text-editing','CollaborationSession','_waitForHeartbeatResponse','_collaborationSessionService','list','getResourcesRequest','kdf','_loadSheet','_process','LIVESHARE_REQUEST_HOST','_socketMessageSubscription','FileId','OpenSSL','shareReplay','connectInjector','_handleEvent','onMissedChangesetFetched','m2Prime','collaboration-client.config','_compressMutationService','startsWith','actions','_anchor','loadOfflineData','_retryConnectingTimer','_replaceFileID','getAncestorScale','exhaustSavingTask','_applyRemoteChangeset','readAsDataURL','IMessageService','generateRandomId','ivSize','getCurrent','_init','_getAnchorBounding','setStateCache','c1Prime','CHANGESET_REVISION_CONFILICT','transformSelections','reverse','getInterceptPoints','hide','joinEvent','IUndoRedoService','handleInsertRow','roomInfos','_resendTimer','width','getImage','setTimeout','@univerjs/telemetry','collab-text-range-','COMPLETION_FINISHED','collabStatus.notCollab','onCommandExecuted','BASE64','algo','SetDocZoomRatioOperation','reconnect','Base','string','stringify','createIdentifier','RETRY_CONNECTING_MAX_COUNT_KEY','duration','title','onStateChange','14KctPhW','rev','_configService','FETCH_MISSING','pad','whenReady','cmd','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getItem','IUIPartsService','_updateCollabCursors','_collabCursorController','disableLocalCache','_remoteChangesetQueue','DocIMEInputManagerService','formatter','subscribeEvent','selection','SheetsSelectionsService','PERMISSION_REJ','_changesetReqId','[CollaborationSession]','SNAPSHOT_INVALID_SNAPSHOT','infoRsp','Shape','blue400','IRemoteInstanceService','FAIL','_initUnitPermissionChange','_docSkeletonManagerService','UserManagerService','isPermissionRej','_pendingMutations','_toggleOffline','_cursorShapes','_updateLocalCache','_updateStatus','Rect','2064007XkaxOW','Error\x20on\x20receiving\x20event','getCoordByCell','559948WvFHrx','addEventListener','_sheetSkeletonManagerService','fetching\x20missing\x20changesets\x20from\x20','delete','#fff','[CollaborationUndoRedoService]','HEARTBEAT','LIVESHARE_OPERATION','registerHTTPInterceptor','replaceState','_onUserJoin','COLLAB_WEB_SOCKET_URL','VIEW_MAIN','encrypt','_beforeCloseService','APPLY_PERMISSION_DENIED','_commentUpdate$','prototype','_clearUndo','color','useObservable','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_initCommandExecutedListener','cursorInfo$','_renderManagerService','DeleteRangeMoveUpCommandId','_getMergeRange','_startCollaboration','byteLength','_setupSubUnitSync','_sendHeartbeat','_onRemoteRejected','onTransformSelections','Tooltip','onlineStatusIcon','mixIn','resolve','filter','_createInitialState','_initStatusListener','find','delay','currentTheme$','SNAPSHOT_SERVER_URL_KEY','concatMap','CONFLICT','signUrlServerUrl','csAckEvent','loadSheet','_showConflictNotification','BehaviorSubject','getTypeOfUnitAdded$','setItem','sessionStatus$','RevisionService','LICENSE_MAX_UNITS_EXCEEDED','exports','_scheduleTimestamp','onRemoteChangeset','getTypeOfUnitDisposed$','LOCAL_CACHE_INTERVAL_KEY','FromArray','mode','onSyncEditingCollabCursor','isEditing','trim','skeleton','closeSession','padding','onTransformRemoteChangesetByStateCache','_createSocket','lib','SnapshotServerOverHTTPService','_textBubble','IPermissionService','ERROR_IMAGE','_getAPIPrefix','/universer-api/oidc/authpage','makeDirty','ICollaborationSocketService','transformMutationsWithChangeset','/collaborator','getUnit','UNKNOWN_CMD','_disableEditing','createEncryptor','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','CHANGESET_REJ','#FFF','getUnitStatus$','decryptBlock','SetTextSelectionsOperation','_hash','close','byteOffset','userID','IImageIoService','data','Module','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_startSheetCollabCursor','APPLY_REJECT','url','override','history','_permissionService','univer-online-status','_loadDoc','assignAColorForMemberID','_color','0\x200\x2017\x2016','_listenToOnlineEvent','attrs','INGEST','UNIVER_COLLABORATION_CLIENT_PLUGIN','Workbook','asObservable','collabStatus.syncing','getMemberID','close$','COMMENT_UPDATE','LICENSE_IMPORT_SIZE_EXCEEDED','awaiting','object','_commentService','changesets','_userManagerService','getParam','_commandService','text','clipPath','abs','@univerjs-pro/collaboration','_clearHeartbeatTimer','_onLocalMutation','registerRefRange','joinRsp','newValue','_docTransformSelectionsService','_prevBlock','_tryEnsureSocket','freeze','enableSingleActiveInstanceLock','updateOfflineData','IContextService','_ensureSubject','_initRequestHeader','liveShareNewHost','NOT_COLLAB','/new_changes','getOwnPropertyDescriptor','symbol','...','toggleOnline','_clearTimeoutTimer','setCurrentUser','_socket','ReplaySubject','HmacSHA1','apply','PSEUDO_FETCH_MISSING_RESULT','_createHmacHelper','_name','handleIRemoveRow','DesktopCollaborationStatusDisplayController','_getLoginPath','_uiPartsService','getCurrentRevOfUnit','Injector','objectActions','[UniverCollaborationClientPlugin]','_createHelper','createInstance','collabStatus.conflict','catch','UNIVER_UNKNOWN','pending','MessageType','displayName','_cursorInfo$','@univerjs/engine-render','34929lwaBJu','Encryptor','CollaborationEntity','url(#$1','EvpKDF','HEARTBEAT_TIMEOUT','_hideTimer','_retryCount','putCollaborators','msCrypto','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_setupBeforeClosingHandler','_hover','Utf8','toString','updatePermissionPoint','hovered','@univerjs/ui','disposeWithMe','pipe','translate(.97)','_getSaveTimeout','_onJoinRoomEvent','setInterval','clearTimeout','_onCursorDelete','@univerjs/sheets','onPointerLeave$','now','_ws','loadDoc','evenodd','LIVESHARE_NEW_HOST','_key','create','APPLY_NON_SEQUENTIAL_REVISION','_status$','USERS_ENTER','isTransformChangesetsSuccess','_ENC_XFORM_MODE','lineTo','UPDATE_PERMISSION_OBJ','OnLineSingle','_scheduleSaving','allowed','toRgbString','UniverNetworkPlugin','session.collaboration-timeout','LICENSE_EXPORT_SIZE_EXCEEDED','touchDependencies','_handler','url(#off-line-single_clip0_910_343)','setParam','_rescheduleHeartbeat','red300','transformStack\x20failed!','div','_config','DeleteRangeMoveLeftCommandId','_getCtorByUniverType','editingUnit','requireSession','OffLineSingle','fetchThroughInterceptors','collaborators','unitID','_telemetryService','BuiltInUIPart','/universer-api/authz','_docStateChangeManagerService','downloadEndpointUrl','saveSnapshot','responseType','executeCommand','serializeRangeWithSheet','_scheduleHeartbeat','every','CollaborationController','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','272812WmwiuB','getSheetBlock','_undoStacks','YUUMI_SUBSCRIPTION_NOT_FOUND','_sendingTimer','_clearScheduledTask','endColumn','@univerjs/network','univerjs-icon\x20univerjs-icon-','_getUndoStack','AES','@univerjs/docs-ui','_doReset','_initResize','CollaborationEvent','_session','BlockCipherMode','_state','fetchMissingChangesets','_http','retryConnectingInterval','Could\x20not\x20dynamically\x20require\x20\x22','_entities','_snapshotService','with','_type','pauseCollaboration','submit\x20changeset\x20error!','LocaleService','entries','SetSelectionsOperation','unitId\x20is\x20not\x20found','substring','c2Prime','_render','_themeService','_doCryptBlock','SetWorksheetActivateCommand','Pkcs7','[PendingState]:\x20received\x20rejection.','IDLE','[CollaborationEntity]','transformRemoteChangeset','NoPadding','InsertRangeMoveRightCommandId','requestParams','_transformService','_iKey','LICENSE_DISTRO_REJECTED','SHOULD_CLOSE_CONN','reject','revision','open$','registerRenderModule','sin','IAuthzIoService','restore','sigBytes','Warning','_undoRedoService','_clearCollaborationTimeoutTimer','_keySchedule','TEXT_RANGE_LAYER_INDEX','_decreaseWaiting','cfg','send','popstate','function','_resendWithTimeout','parse','ThemeService','routeKey','UNDEFINED','?size=','onMissingChangesets','defineProperty','IRenderManagerService','_registerDependencies','subUnitId','_instanceService','_transformRemoteChangesetByStateCache','ENSURE_SNAPSHOT_EXECUTION','getValue','Cipher','_unitOnClients','onMouseMove','_unlockTransition','xlink:href','_context','_createInitialStateImpl','findNodePositionByCharIndex','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','collaboratorID','json','csShouldRetryEvent'];_0xad98=function(){return _0x167986;};return _0xad98();}function _0x513c(_0x3b90a3,_0x2a7010){const _0xad9819=_0xad98();return _0x513c=function(_0x513c0e,_0x53b00f){_0x513c0e=_0x513c0e-0x1c0;let _0x338fd2=_0xad9819[_0x513c0e];return _0x338fd2;},_0x513c(_0x3b90a3,_0x2a7010);}class ni extends a[_0x37a374(0x65c)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x37a374(0x37c)](){const _0x2993df=_0x37a374;this['_members'][_0x2993df(0x65a)]();}[_0x37a374(0x1cf)](_0x20d419){const _0x3780c2=_0x37a374;this['_members'][_0x3780c2(0x5d1)](_0x20d419[_0x3780c2(0x280)],_0x20d419);}[_0x37a374(0x595)](_0x2ad61d){const _0x394e7e=_0x37a374;this[_0x394e7e(0x32c)]['delete'](_0x2ad61d);}[_0x37a374(0x2f4)](_0x2b56eb){const _0x249fc9=_0x37a374;return this[_0x249fc9(0x32c)][_0x249fc9(0x5bf)](_0x2b56eb);}[_0x37a374(0x61b)](){const _0x5a099e=_0x37a374;return Array['from'](this[_0x5a099e(0x32c)][_0x5a099e(0x353)]());}}var ii=Object[_0x37a374(0x55e)],si=Object[_0x37a374(0x4a5)],ri=(_0x4e2641,_0x2510e2,_0x17ac4f,_0x33fdff)=>{const _0x4b1b5a=_0x37a374;for(var _0x28134c=_0x33fdff>0x1?void 0x0:_0x33fdff?si(_0x2510e2,_0x17ac4f):_0x2510e2,_0x4872ee=_0x4e2641[_0x4b1b5a(0x330)]-0x1,_0x25700e;_0x4872ee>=0x0;_0x4872ee--)(_0x25700e=_0x4e2641[_0x4872ee])&&(_0x28134c=(_0x33fdff?_0x25700e(_0x2510e2,_0x17ac4f,_0x28134c):_0x25700e(_0x28134c))||_0x28134c);return _0x33fdff&&_0x28134c&&ii(_0x2510e2,_0x17ac4f,_0x28134c),_0x28134c;},de=(_0x3ee6a2,_0x71b381)=>(_0x213af1,_0x2c90f4)=>_0x71b381(_0x213af1,_0x2c90f4,_0x3ee6a2),re=(_0xb039fd=>(_0xb039fd[_0xb039fd[_0x37a374(0x53b)]=0x0]=_0x37a374(0x53b),_0xb039fd[_0xb039fd[_0x37a374(0x34a)]=0x1]='JOINING',_0xb039fd[_0xb039fd[_0x37a374(0x320)]=0x2]=_0x37a374(0x320),_0xb039fd[_0xb039fd['ONLINE']=0x3]=_0x37a374(0x1e9),_0xb039fd))(re||{});exports[_0x37a374(0x3a2)]=class extends a['RxDisposable']{constructor(_0x2e553b,_0x1be38a,_0x1155bd,_0x5d771d,_0x57bb3d,_0x3ebd73,_0x2833bd,_0x58db81,_0x424afe,_0x257afe){const _0x4a7cb7=_0x37a374;super(),I(this,_0x4a7cb7(0x304),new A[(_0x4a7cb7(0x441))](0x0)),I(this,_0x4a7cb7(0x444),this[_0x4a7cb7(0x304)][_0x4a7cb7(0x483)]()),I(this,_0x4a7cb7(0x209),new A[(_0x4a7cb7(0x383))]()),I(this,_0x4a7cb7(0x5cc),this[_0x4a7cb7(0x209)][_0x4a7cb7(0x483)]()),I(this,_0x4a7cb7(0x4ab)),I(this,_0x4a7cb7(0x3ab)),I(this,_0x4a7cb7(0x211)),I(this,'_shouldReportTelemetry',!0x1),I(this,'_telemetryInfo',null),(this['_unitID']=_0x2e553b,this[_0x4a7cb7(0x58a)]=_0x1155bd,this[_0x4a7cb7(0x41d)]=_0x5d771d,this[_0x4a7cb7(0x5cd)]=_0x57bb3d,this[_0x4a7cb7(0x3e7)]=_0x3ebd73,this[_0x4a7cb7(0x1c9)]=_0x2833bd,this[_0x4a7cb7(0x5f6)]=_0x58db81,this[_0x4a7cb7(0x48b)]=_0x424afe,this[_0x4a7cb7(0x506)]=_0x257afe,this[_0x4a7cb7(0x576)]=!!this[_0x4a7cb7(0x506)],_0x1be38a[_0x4a7cb7(0x4d7)](A[_0x4a7cb7(0x27d)](this['dispose$']))['subscribe'](_0xec4020=>{const _0x4d3563=_0x4a7cb7;var _0x5d41a2;typeof _0xec4020>'u'||(this['_socket']=_0xec4020,_0xec4020?(this[_0x4d3563(0x366)](_0xec4020),this[_0x4d3563(0x3ab)]=_0xec4020['message$'][_0x4d3563(0x274)](_0xcec7bd=>{const _0x3ef83e=_0x4d3563;_0xcec7bd['routeKey']===this[_0x3ef83e(0x239)]&&this[_0x3ef83e(0x60a)](_0xcec7bd);})):(this[_0x4d3563(0x65f)](),this[_0x4d3563(0x304)][_0x4d3563(0x24e)](0x2),(_0x5d41a2=this['_socketMessageSubscription'])==null||_0x5d41a2[_0x4d3563(0x335)](),this[_0x4d3563(0x3ab)]=null));}),this[_0x4a7cb7(0x4d6)](this[_0x4a7cb7(0x41d)]['registerOnClose'](()=>{const _0x2de8c0=_0x4a7cb7;var _0x480bf8;(_0x480bf8=this[_0x2de8c0(0x4ab)])==null||_0x480bf8[_0x2de8c0(0x554)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x2de8c0(0x239)]}});})));}get[_0x37a374(0x31d)](){const _0x20b081=_0x37a374;return this[_0x20b081(0x304)][_0x20b081(0x565)]();}[_0x37a374(0x485)](){const _0x5d88d5=_0x37a374;var _0x2c62a6,_0x5ac8c4;return(_0x5ac8c4=(_0x2c62a6=this[_0x5d88d5(0x4ab)])==null?void 0x0:_0x2c62a6[_0x5d88d5(0x280)])!=null?_0x5ac8c4:null;}[_0x37a374(0x37c)](){const _0x5714a1=_0x37a374;super[_0x5714a1(0x37c)](),this['dispose$'][_0x5714a1(0x24e)](),this[_0x5714a1(0x574)][_0x5714a1(0x1c0)]();}[_0x37a374(0x46c)](){const _0x51a7a3=_0x37a374;var _0x10ca7b,_0x334f25;this[_0x51a7a3(0x65f)](),(_0x10ca7b=this[_0x51a7a3(0x4ab)])==null||_0x10ca7b['send']({'cmd':G[_0x51a7a3(0x64b)],'data':{'roomID':this[_0x51a7a3(0x239)]}}),(_0x334f25=this['_socket'])==null||_0x334f25['close'](),this['_event$'][_0x51a7a3(0x1c0)](),this[_0x51a7a3(0x304)]['complete'](),this[_0x51a7a3(0x37c)]();}['_onCombEvent'](_0x2c63da){const _0x19a01f=_0x37a374;_0x2c63da['cmd']===G[_0x19a01f(0x1cb)]?this['_onJoinRoomEvent'](_0x2c63da):_0x2c63da[_0x19a01f(0x3eb)]===G[_0x19a01f(0x2b6)]&&this['_onRecvEvent'](_0x2c63da);}[_0x37a374(0x366)](_0x5cf2ad){const _0x125f93=_0x37a374;this[_0x125f93(0x304)][_0x125f93(0x24e)](0x1),_0x5cf2ad[_0x125f93(0x554)]({'cmd':G['JOIN'],'routeKey':this[_0x125f93(0x239)],'routeType':'','data':{'rooms':[{'roomID':this[_0x125f93(0x239)]}]}});}[_0x37a374(0x4da)](_0x275325){const _0x58f316=_0x37a374;var _0x4ba537;if(_0x275325[_0x58f316(0x1f2)]===Ct[_0x58f316(0x400)]){this[_0x58f316(0x5cd)][_0x58f316(0x5b9)]({'type':Se[_0x58f316(0x4c0)][_0x58f316(0x54d)],'content':this[_0x58f316(0x1c9)]['t'](_0x58f316(0x67d))}),this['_sessionStatus$'][_0x58f316(0x24e)](0x2);return;}this[_0x58f316(0x304)][_0x58f316(0x24e)](0x3);const _0x19f136=(_0x4ba537=_0x275325[_0x58f316(0x470)][_0x58f316(0x3cf)][this[_0x58f316(0x239)]])==null?void 0x0:_0x4ba537['members'];_0x19f136&&_0x19f136['forEach'](_0x22f6fd=>this[_0x58f316(0x5f6)][_0x58f316(0x1cf)](this[_0x58f316(0x239)],_0x22f6fd));}[_0x37a374(0x224)](_0x58471b){const _0x33d0a6=_0x37a374;try{const _0x39ed9f=_0x58471b['data'];switch(_0x39ed9f[_0x33d0a6(0x1d7)]){case p['CollaborationEvent'][_0x33d0a6(0x4e9)]:this[_0x33d0a6(0x419)](_0x39ed9f),this[_0x33d0a6(0x209)]['next'](_0x39ed9f);break;case p[_0x33d0a6(0x521)][_0x33d0a6(0x5de)]:this[_0x33d0a6(0x253)](_0x39ed9f),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)]['CHANGESET_ACK']:case p['CollaborationEvent'][_0x33d0a6(0x24f)]:this[_0x33d0a6(0x5ef)](),this[_0x33d0a6(0x54f)](),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)][_0x33d0a6(0x2f0)]:this[_0x33d0a6(0x58a)]['error'](_0x33d0a6(0x1ca)+JSON[_0x33d0a6(0x3df)](_0x39ed9f)),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)]['COMMENT_UPDATE']:this['_commentService'][_0x33d0a6(0x600)](_0x39ed9f[_0x33d0a6(0x470)]),this['_event$'][_0x33d0a6(0x24e)](_0x39ed9f);break;default:this['_event$'][_0x33d0a6(0x24e)](_0x39ed9f);}}catch(_0xedbcd){this[_0x33d0a6(0x58a)][_0x33d0a6(0x237)](_0xedbcd,_0x58471b);}}[_0x37a374(0x419)](_0x49fc37){const _0x27aaa0=_0x37a374;this['_memberService'][_0x27aaa0(0x1cf)](this['_unitID'],_0x49fc37[_0x27aaa0(0x470)]);}[_0x37a374(0x253)](_0x431600){const _0x367df9=_0x37a374;this['_memberService']['removeMember'](this[_0x367df9(0x239)],_0x431600[_0x367df9(0x470)][_0x367df9(0x280)]);}async[_0x37a374(0x554)](_0x2a3e0d,_0x1d9338){const _0x51e0e3=_0x37a374;if(this[_0x51e0e3(0x31d)]!==0x3||!this[_0x51e0e3(0x4ab)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2a3e0d[_0x51e0e3(0x1d7)]===p['CollaborationEvent'][_0x51e0e3(0x380)]&&(this[_0x51e0e3(0x606)](),this['_startTelemetryCollaborationNewChangeset'](_0x2a3e0d)),this[_0x51e0e3(0x4ab)][_0x51e0e3(0x554)]({'cmd':G['INGEST'],'routeKey':_0x1d9338,'routeType':'','data':_0x2a3e0d});}catch(_0x540a45){this[_0x51e0e3(0x58a)][_0x51e0e3(0x237)](_0x540a45);}}[_0x37a374(0x606)](){const _0x82cba7=_0x37a374;var _0x73143;this[_0x82cba7(0x211)]=window[_0x82cba7(0x3d3)](()=>{const _0x32ecb4=_0x82cba7;this[_0x32ecb4(0x211)]=null,this['_messageService'][_0x32ecb4(0x5b9)]({'type':Se[_0x32ecb4(0x4c0)][_0x32ecb4(0x2f5)],'content':this[_0x32ecb4(0x1c9)]['t'](_0x32ecb4(0x4f3))});},(_0x73143=this[_0x82cba7(0x3e7)][_0x82cba7(0x37d)](It))!=null?_0x73143:tn);}['_clearCollaborationTimeoutTimer'](){const _0x1c9aa0=_0x37a374;this[_0x1c9aa0(0x211)]&&(clearTimeout(this[_0x1c9aa0(0x211)]),this[_0x1c9aa0(0x211)]=null);}[_0x37a374(0x5ae)](_0x335eaa){const _0x4decd4=_0x37a374;if(!this[_0x4decd4(0x576)])return;const {data:_0x1fc1fc}=_0x335eaa,{unitID:_0x399a2a,changeset:_0x34a7d8}=_0x1fc1fc,{mutations:_0x57d798,type:_0x28a9b3}=_0x34a7d8;this['_telemetryInfo']={'unitId':_0x399a2a,'type':_0x28a9b3,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Zn(_0x57d798)};}[_0x37a374(0x5ef)](){const _0x24f776=_0x37a374;if(this['_shouldReportTelemetry']){if(!this[_0x24f776(0x5a3)]){this[_0x24f776(0x58a)][_0x24f776(0x237)](_0x24f776(0x3fa),_0x24f776(0x57a));return;}this[_0x24f776(0x5a3)][_0x24f776(0x288)]=performance['now'](),this[_0x24f776(0x5a3)][_0x24f776(0x3e2)]=this['_telemetryInfo']['stopTime']-this[_0x24f776(0x5a3)]['startTime'],this[_0x24f776(0x506)]['capture'](Jn,this[_0x24f776(0x5a3)]),this[_0x24f776(0x5a3)]=null;}}[_0x37a374(0x65f)](){this['_telemetryInfo']=null;}},exports[_0x37a374(0x3a2)]=ri([de(0x2,a['ILogService']),de(0x3,te[_0x37a374(0x66a)]),de(0x4,te[_0x37a374(0x3bf)]),de(0x5,a[_0x37a374(0x30b)]),de(0x6,a['Inject'](a[_0x37a374(0x52f)])),de(0x7,a['Inject'](exports[_0x37a374(0x33d)])),de(0x8,a['Inject'](bt)),de(0x9,a[_0x37a374(0x673)](Nn['ITelemetryService']))],exports['CollaborationSession']);var oi=Object['defineProperty'],ai=Object['getOwnPropertyDescriptor'],ci=(_0x15652d,_0x23ea9c,_0x401577,_0x162551)=>{const _0x497c42=_0x37a374;for(var _0x82a5cd=_0x162551>0x1?void 0x0:_0x162551?ai(_0x23ea9c,_0x401577):_0x23ea9c,_0x44a842=_0x15652d[_0x497c42(0x330)]-0x1,_0x25eb30;_0x44a842>=0x0;_0x44a842--)(_0x25eb30=_0x15652d[_0x44a842])&&(_0x82a5cd=(_0x162551?_0x25eb30(_0x23ea9c,_0x401577,_0x82a5cd):_0x25eb30(_0x82a5cd))||_0x82a5cd);return _0x162551&&_0x82a5cd&&oi(_0x23ea9c,_0x401577,_0x82a5cd),_0x82a5cd;},Ce=(_0x43edd6,_0x9e1f5e)=>(_0x480e22,_0x27e52f)=>_0x9e1f5e(_0x480e22,_0x27e52f,_0x43edd6);exports[_0x37a374(0x5e2)]=class extends a[_0x37a374(0x65c)]{constructor(_0x4f6501,_0x19feac,_0x86d56f,_0x17bb66,_0x21f1d4,_0x3f81f7){const _0x159ee4=_0x37a374;super(),I(this,_0x159ee4(0x2c4),new A[(_0x159ee4(0x441))](void 0x0)),I(this,'socket$',this[_0x159ee4(0x2c4)]['asObservable']()),I(this,'_candidateSocket',null),I(this,_0x159ee4(0x2fc),new Map()),I(this,_0x159ee4(0x4e8),new A['BehaviorSubject'](re[_0x159ee4(0x53b)])),I(this,_0x159ee4(0x238),this[_0x159ee4(0x4e8)][_0x159ee4(0x483)]()),I(this,_0x159ee4(0x28c),!0x1),I(this,_0x159ee4(0x3b9)),I(this,_0x159ee4(0x4cb),0x0),I(this,'_sendHeartbeatTimer'),I(this,_0x159ee4(0x5bd)),(this['_injector']=_0x4f6501,this[_0x159ee4(0x1c9)]=_0x19feac,this[_0x159ee4(0x5cd)]=_0x86d56f,this['_logService']=_0x17bb66,this[_0x159ee4(0x3e7)]=_0x21f1d4,this[_0x159ee4(0x5af)]=_0x3f81f7,this[_0x159ee4(0x2e8)]());}get['_socket'](){const _0x4f80d7=_0x37a374;return this['_socket$'][_0x4f80d7(0x565)]();}[_0x37a374(0x2e8)](){const _0x1e4cca=_0x37a374;this[_0x1e4cca(0x307)](),this[_0x1e4cca(0x47e)]();}[_0x37a374(0x37c)](){const _0x45472d=_0x37a374;super[_0x45472d(0x37c)](),this['_sessions'][_0x45472d(0x278)](_0x147004=>_0x147004['dispose']()),this['_sessions'][_0x45472d(0x65a)](),this['_status$']['complete']();}async[_0x37a374(0x501)](_0xeda783){const _0x58ee1f=_0x37a374;if(this[_0x58ee1f(0x2fc)][_0x58ee1f(0x244)](_0xeda783))return this['_sessions'][_0x58ee1f(0x5bf)](_0xeda783);this[_0x58ee1f(0x49b)]();const _0x116256=this[_0x58ee1f(0x58f)]['createInstance'](exports[_0x58ee1f(0x3a2)],_0xeda783,this[_0x58ee1f(0x2c4)][_0x58ee1f(0x483)]());return this[_0x58ee1f(0x2fc)][_0x58ee1f(0x5d1)](_0xeda783,_0x116256),_0x116256;}[_0x37a374(0x452)](_0x24d232){const _0x3c4c61=_0x37a374;var _0x7225b1;const _0x2f2a46=this[_0x3c4c61(0x2fc)]['get'](_0x24d232);_0x2f2a46&&(this[_0x3c4c61(0x2fc)][_0x3c4c61(0x412)](_0x24d232),_0x2f2a46[_0x3c4c61(0x46c)]()),this[_0x3c4c61(0x2fc)][_0x3c4c61(0x654)]||(_0x7225b1=this[_0x3c4c61(0x4ab)])==null||_0x7225b1[_0x3c4c61(0x46c)]();}[_0x37a374(0x3dc)](){const _0x55f531=_0x37a374;this[_0x55f531(0x4cb)]=0x0,this[_0x55f531(0x3b9)]!=null&&(clearTimeout(this[_0x55f531(0x3b9)]),this[_0x55f531(0x3b9)]=null),this[_0x55f531(0x322)]();}[_0x37a374(0x455)](){const _0x11d34a=_0x37a374;var _0x52e163,_0x3649e9;const _0x5054bd=this[_0x11d34a(0x3e7)]['getConfig'](Qt),_0x23ffe2=this[_0x11d34a(0x3e7)][_0x11d34a(0x37d)](ne),_0x340f4f=(_0x3649e9=(_0x52e163=_0x23ffe2==null?void 0x0:_0x23ffe2[_0x11d34a(0x2fb)])!=null?_0x52e163:_0x5054bd)!=null?_0x3649e9:Hn,_0x4cc750=this['_socketService'][_0x11d34a(0x256)](_0x340f4f);return this[_0x11d34a(0x29c)]=_0x4cc750,_0x4cc750;}[_0x37a374(0x49b)](){const _0xf8efc5=_0x37a374;var _0xb2883,_0x15c60c;try{const _0x553dcc=(_0x15c60c=(_0xb2883=this[_0xf8efc5(0x4ab)])!=null?_0xb2883:this['_candidateSocket'])!=null?_0x15c60c:this[_0xf8efc5(0x455)]();if(_0x553dcc){const _0x3b9a0f=_0x553dcc[_0xf8efc5(0x554)];_0x553dcc[_0xf8efc5(0x554)]=_0x501b01=>(this[_0xf8efc5(0x4f9)](),_0x3b9a0f[_0xf8efc5(0x4ae)](_0x553dcc,[_0x501b01])),_0x553dcc[_0xf8efc5(0x5a1)][_0xf8efc5(0x274)](_0xa34c6=>this[_0xf8efc5(0x5f1)](_0x553dcc,_0xa34c6)),_0x553dcc[_0xf8efc5(0x389)][_0xf8efc5(0x4d7)](V[_0xf8efc5(0x630)](0x1))[_0xf8efc5(0x274)](_0x4aed25=>this['_logService'][_0xf8efc5(0x237)]('[CollaborationSessionService]:\x20socket\x20error',_0x4aed25)),_0x553dcc[_0xf8efc5(0x547)]['pipe'](V[_0xf8efc5(0x630)](0x1))['subscribe'](()=>{const _0x440f24=_0xf8efc5;this[_0x440f24(0x378)](_0x553dcc);}),_0x553dcc['close$'][_0xf8efc5(0x4d7)](V[_0xf8efc5(0x630)](0x1))['subscribe'](_0x1953e7=>{const _0x395737=_0xf8efc5;this[_0x395737(0x58a)]['debug']('[CollaborationSessionService]','socket\x20close',_0x1953e7),this[_0x395737(0x243)]();});}}catch(_0x59e68a){this[_0xf8efc5(0x58a)][_0xf8efc5(0x237)](_0x59e68a),this[_0xf8efc5(0x243)]();}}[_0x37a374(0x378)](_0x5f4638){const _0x31bfb6=_0x37a374;this['_logService']['debug']('[CollaborationSessionService]',_0x31bfb6(0x314)),_0x5f4638[_0x31bfb6(0x554)]({'cmd':G['HELLO']}),this[_0x31bfb6(0x4f9)]();}[_0x37a374(0x307)](){const _0x12b8c0=_0x37a374;window[_0x12b8c0(0x40f)](_0x12b8c0(0x34e),()=>this[_0x12b8c0(0x265)]());}[_0x37a374(0x265)](){const _0x38f863=_0x37a374;this[_0x38f863(0x28c)]=!0x1,this[_0x38f863(0x29c)]=null,this['_status$'][_0x38f863(0x24e)](re['OFFLINE']),this[_0x38f863(0x2c4)][_0x38f863(0x24e)](null),this[_0x38f863(0x4a9)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ec612=_0x37a374;var _0x168ae4;this[_0x5ec612(0x265)](),this[_0x5ec612(0x4cb)]<((_0x168ae4=this[_0x5ec612(0x3e7)][_0x5ec612(0x37d)](nn))!=null?_0x168ae4:Wn)?(this['_messageService']['show']({'key':_0x5ec612(0x611),'type':Se[_0x5ec612(0x4c0)][_0x5ec612(0x54d)],'content':this[_0x5ec612(0x1c9)]['t'](_0x5ec612(0x29a))}),this[_0x5ec612(0x322)]()):this[_0x5ec612(0x5cd)][_0x5ec612(0x5b9)]({'key':_0x5ec612(0x611),'type':Se[_0x5ec612(0x4c0)][_0x5ec612(0x2f5)],'content':this[_0x5ec612(0x1c9)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x4d67fd=_0x37a374,_0x2938da=()=>{const _0x25dfd7=_0x513c;this[_0x25dfd7(0x4ab)]||this[_0x25dfd7(0x3dc)]();},_0x33da05=()=>{const _0x4132d0=_0x513c;this[_0x4132d0(0x4ab)]||document['visibilityState']==='hidden'||this[_0x4132d0(0x3dc)]();};window['addEventListener'](_0x4d67fd(0x1da),_0x2938da),document[_0x4d67fd(0x40f)](_0x4d67fd(0x37f),_0x33da05);}[_0x37a374(0x322)](){const _0x233955=_0x37a374;var _0x1b0140;const _0x3f32b7=this[_0x233955(0x4cb)],_0xb7f14d=this[_0x233955(0x3e7)][_0x233955(0x37d)](ne),_0x43321f=_0x3f32b7===0x0?0x0:((_0x1b0140=_0xb7f14d==null?void 0x0:_0xb7f14d[_0x233955(0x527)])!=null?_0x1b0140:kn)*0x2**_0x3f32b7;this[_0x233955(0x3b9)]=window[_0x233955(0x3d3)](()=>{const _0x2e2e6a=_0x233955;clearTimeout(this[_0x2e2e6a(0x3b9)]),this['_retryConnectingTimer']=null,this[_0x2e2e6a(0x49b)]();},_0x43321f),this[_0x233955(0x4cb)]+=0x1;}['_onMessage'](_0xb08956,_0x4f40e3){const _0x240bbe=_0x37a374,{cmd:_0x1a8ccf}=_0x4f40e3;_0x1a8ccf===G[_0x240bbe(0x297)]&&!this[_0x240bbe(0x28c)]&&(_0xb08956['memberID']=_0x4f40e3['data'][_0x240bbe(0x280)],this[_0x240bbe(0x2c4)]['next'](_0xb08956),this[_0x240bbe(0x4e8)][_0x240bbe(0x24e)](re[_0x240bbe(0x1e9)]),this['_socketReady']=!0x0,this[_0x240bbe(0x29c)]=null),_0x1a8ccf===G[_0x240bbe(0x415)]&&this[_0x240bbe(0x4a9)](),this[_0x240bbe(0x4f9)]();}[_0x37a374(0x4f9)](){const _0x4ead2f=_0x37a374;var _0x326db4;this[_0x4ead2f(0x494)](),this[_0x4ead2f(0x638)]=window[_0x4ead2f(0x3d3)](()=>this[_0x4ead2f(0x42d)](),(_0x326db4=this['_configService']['getConfig'](en))!=null?_0x326db4:Bn);}[_0x37a374(0x42d)](){const _0x3cca83=_0x37a374;this[_0x3cca83(0x4ab)][_0x3cca83(0x554)]({'cmd':G[_0x3cca83(0x415)]}),this[_0x3cca83(0x3a3)]();}[_0x37a374(0x3a3)](){const _0x4fca73=_0x37a374;var _0x5c2a27;this[_0x4fca73(0x5bd)]=window[_0x4fca73(0x3d3)](()=>this['_onConnectionFailed'](),(_0x5c2a27=this['_configService']['getConfig'](It))!=null?_0x5c2a27:tn);}[_0x37a374(0x494)](){const _0x38bf8d=_0x37a374;this[_0x38bf8d(0x638)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x37a374(0x4a9)](){const _0x2bf1d3=_0x37a374;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2bf1d3(0x5bd)]),this[_0x2bf1d3(0x5bd)]=null);}},exports['CollaborationSessionService']=ci([Ce(0x0,a['Inject'](a['Injector'])),Ce(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),Ce(0x2,te[_0x37a374(0x3bf)]),Ce(0x3,a[_0x37a374(0x217)]),Ce(0x4,a['IConfigService']),Ce(0x5,Et)],exports['CollaborationSessionService']);var Y=[];for(var Xe=0x0;Xe<0x100;++Xe)Y[_0x37a374(0x257)]((Xe+0x100)[_0x37a374(0x4d2)](0x10)[_0x37a374(0x2e5)](0x1));function li(_0x3344cd,_0x1401a3=0x0){const _0x299f4a=_0x37a374;return(Y[_0x3344cd[_0x1401a3+0x0]]+Y[_0x3344cd[_0x1401a3+0x1]]+Y[_0x3344cd[_0x1401a3+0x2]]+Y[_0x3344cd[_0x1401a3+0x3]]+'-'+Y[_0x3344cd[_0x1401a3+0x4]]+Y[_0x3344cd[_0x1401a3+0x5]]+'-'+Y[_0x3344cd[_0x1401a3+0x6]]+Y[_0x3344cd[_0x1401a3+0x7]]+'-'+Y[_0x3344cd[_0x1401a3+0x8]]+Y[_0x3344cd[_0x1401a3+0x9]]+'-'+Y[_0x3344cd[_0x1401a3+0xa]]+Y[_0x3344cd[_0x1401a3+0xb]]+Y[_0x3344cd[_0x1401a3+0xc]]+Y[_0x3344cd[_0x1401a3+0xd]]+Y[_0x3344cd[_0x1401a3+0xe]]+Y[_0x3344cd[_0x1401a3+0xf]])[_0x299f4a(0x38e)]();}var xe,hi=new Uint8Array(0x10);function _i(){const _0x712fab=_0x37a374;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x712fab(0x2e1)]&&crypto[_0x712fab(0x2e1)][_0x712fab(0x376)](crypto),!xe))throw new Error(_0x712fab(0x5b3));return xe(hi);}var ui=typeof crypto<'u'&&crypto[_0x37a374(0x572)]&&crypto[_0x37a374(0x572)][_0x37a374(0x376)](crypto);const Ut={'randomUUID':ui};function di(_0x5384b5,_0x460bbb,_0x5f0d9d){const _0x445fba=_0x37a374;if(Ut[_0x445fba(0x572)]&&!_0x460bbb&&!_0x5384b5)return Ut[_0x445fba(0x572)]();_0x5384b5=_0x5384b5||{};var _0x5df318=_0x5384b5['random']||(_0x5384b5['rng']||_i)();return _0x5df318[0x6]=_0x5df318[0x6]&0xf|0x40,_0x5df318[0x8]=_0x5df318[0x8]&0x3f|0x80,li(_0x5df318);}var fi=Object[_0x37a374(0x55e)],vi=Object[_0x37a374(0x4a5)],mi=(_0x2fd6fc,_0x1f707f,_0x3eacea,_0x4ad7c2)=>{const _0x41cdbd=_0x37a374;for(var _0x1e8298=_0x4ad7c2>0x1?void 0x0:_0x4ad7c2?vi(_0x1f707f,_0x3eacea):_0x1f707f,_0x60e415=_0x2fd6fc[_0x41cdbd(0x330)]-0x1,_0x1a4c72;_0x60e415>=0x0;_0x60e415--)(_0x1a4c72=_0x2fd6fc[_0x60e415])&&(_0x1e8298=(_0x4ad7c2?_0x1a4c72(_0x1f707f,_0x3eacea,_0x1e8298):_0x1a4c72(_0x1e8298))||_0x1e8298);return _0x4ad7c2&&_0x1e8298&&fi(_0x1f707f,_0x3eacea,_0x1e8298),_0x1e8298;},Je=(_0x2c6cca,_0xde1d3e)=>(_0x13a742,_0x22638b)=>_0xde1d3e(_0x13a742,_0x22638b,_0x2c6cca);let Be=class{constructor(_0x3a6686,_0x220d15,_0xae9115){const _0x2cb9e3=_0x37a374;this['_injector']=_0x3a6686,this[_0x2cb9e3(0x541)]=_0x220d15,this[_0x2cb9e3(0x427)]=_0xae9115;}[_0x37a374(0x270)](_0x4f1b5d){const _0x200745=_0x37a374;this[_0x200745(0x612)](_0x4f1b5d),this[_0x200745(0x215)](_0x4f1b5d);}[_0x37a374(0x53d)](_0x56029a){const _0x559207=_0x37a374,{unitID:_0x5c8c44}=_0x56029a,_0x317e5b=this[_0x559207(0x427)][_0x559207(0x1ed)](_0x5c8c44)[_0x559207(0x52b)](Z[_0x559207(0x3f3)]),{redoCache:_0x57414e}=_0x317e5b[_0x559207(0x5f4)]();if(_0x57414e[_0x559207(0x330)]===0x0)return _0x56029a;let _0x470a7e=a[_0x559207(0x59b)][_0x559207(0x2c7)](_0x56029a[_0x559207(0x579)][0x0]);for(let _0x28c9f9=0x0;_0x28c9f9<_0x57414e[_0x559207(0x330)];_0x28c9f9++){const _0x2536e8={'id':_0x559207(0x3a1),'params':{..._0x57414e[_0x28c9f9]}},_0x3b446a=this['_transformService'][_0x559207(0x337)](_0x470a7e,_0x2536e8,!0x1);if(p['isTransformMutationFailure'](_0x3b446a))throw _0x3b446a[_0x559207(0x237)];_0x470a7e=_0x3b446a[_0x559207(0x38c)];}return{...a[_0x559207(0x59b)]['deepClone'](_0x56029a),'mutations':[_0x470a7e]};}[_0x37a374(0x612)](_0x3673ef){const _0x13ea24=_0x37a374,{unitID:_0x11891a}=_0x3673ef,_0x5a413e=this[_0x13ea24(0x427)][_0x13ea24(0x1ed)](_0x11891a)[_0x13ea24(0x52b)](Z[_0x13ea24(0x3f3)]),{undoCache:_0xe2f0a3,redoCache:_0x32c145}=_0x5a413e[_0x13ea24(0x5f4)]();if(_0xe2f0a3[_0x13ea24(0x330)]===0x0||_0x32c145[_0x13ea24(0x330)]===0x0)return;const _0xe15485=[],_0x115ddf=[];let _0x518710=a[_0x13ea24(0x59b)][_0x13ea24(0x2c7)](_0x3673ef[_0x13ea24(0x579)][0x0]),_0x519863=a['Tools']['deepClone'](_0x3673ef[_0x13ea24(0x579)][0x0]);for(let _0x241193=_0xe2f0a3[_0x13ea24(0x330)]-0x1;_0x241193>=0x0;_0x241193--){const _0xdf22f1={'id':_0x13ea24(0x3a1),'params':{..._0xe2f0a3[_0x241193]}},_0x147250={'id':_0x13ea24(0x3a1),'params':{..._0x32c145[_0x241193]}},_0x13a7ba=this[_0x13ea24(0x541)][_0x13ea24(0x337)](_0x518710,_0xdf22f1,!0x1),_0x2d65f9=this[_0x13ea24(0x541)]['transformMutation'](_0x519863,_0x147250,!0x1);if(p[_0x13ea24(0x358)](_0x13a7ba))throw _0x13a7ba['error'];if(p['isTransformMutationFailure'](_0x2d65f9))throw _0x2d65f9[_0x13ea24(0x237)];_0xe15485['unshift'](_0x13a7ba[_0x13ea24(0x3b2)]['params']),_0x115ddf[_0x13ea24(0x1d0)](_0x2d65f9['m2Prime'][_0x13ea24(0x39d)]),_0x518710=_0x13a7ba['m1Prime'],_0x519863=_0x2d65f9[_0x13ea24(0x38c)];}_0x5a413e[_0x13ea24(0x269)]({'undoCache':_0xe15485,'redoCache':_0x115ddf});}['_transformPreviousActiveRange'](_0x2684e3){const _0x43d059=_0x37a374,{unitID:_0x22dba0}=_0x2684e3,_0x1cc48f=this['_renderManagerService'][_0x43d059(0x1ed)](_0x22dba0)['with'](Z[_0x43d059(0x3f3)]),_0x2b23e9=_0x1cc48f[_0x43d059(0x1db)]();if(_0x2b23e9==null)return;const _0x228b7e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2684e3[_0x43d059(0x505)],'actions':null,'textRanges':[_0x2b23e9]}}],_0x3bc778=this[_0x43d059(0x541)][_0x43d059(0x45f)](_0x2684e3,_0x228b7e);if(!p[_0x43d059(0x340)](_0x3bc778))throw _0x3bc778['error'];const _0x4ed166=_0x3bc778['m2Prime'][0x0][_0x43d059(0x39d)][_0x43d059(0x5ed)];Array[_0x43d059(0x338)](_0x4ed166)&&_0x4ed166[_0x43d059(0x330)]&&_0x1cc48f['setActiveRange'](_0x4ed166[0x0]);}};Be=mi([Je(0x0,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),Je(0x1,p[_0x37a374(0x214)]),Je(0x2,K[_0x37a374(0x55f)])],Be);var pi=Object[_0x37a374(0x55e)],Si=Object['getOwnPropertyDescriptor'],gi=(_0x4eb8fb,_0x3cb8f6,_0x14d747,_0x97eea1)=>{for(var _0x165f91=_0x97eea1>0x1?void 0x0:_0x97eea1?Si(_0x3cb8f6,_0x14d747):_0x3cb8f6,_0x2ac6f5=_0x4eb8fb['length']-0x1,_0x372e46;_0x2ac6f5>=0x0;_0x2ac6f5--)(_0x372e46=_0x4eb8fb[_0x2ac6f5])&&(_0x165f91=(_0x97eea1?_0x372e46(_0x3cb8f6,_0x14d747,_0x165f91):_0x372e46(_0x165f91))||_0x165f91);return _0x97eea1&&_0x165f91&&pi(_0x3cb8f6,_0x14d747,_0x165f91),_0x165f91;},we=(_0x7bb3a,_0x402801)=>(_0x3a764a,_0x1eade3)=>_0x402801(_0x3a764a,_0x1eade3,_0x7bb3a);exports[_0x37a374(0x27a)]=class extends a[_0x37a374(0x65c)]{constructor(_0x565ba9,_0x2013b2,_0x363001,_0x30ff50,_0x23e0d6){const _0x4a7e3e=_0x37a374;super(),I(this,_0x4a7e3e(0x5ab),new Map()),I(this,_0x4a7e3e(0x581),new Map()),I(this,_0x4a7e3e(0x2c1),!0x1),(this['_configService']=_0x565ba9,this[_0x4a7e3e(0x5c3)]=_0x2013b2,this[_0x4a7e3e(0x41d)]=_0x363001,this['_localeService']=_0x30ff50,this['_revisionService']=_0x23e0d6,this['_setupBeforeClosingHandler']());}[_0x37a374(0x3f1)](){const _0x58fc71=_0x37a374;this[_0x58fc71(0x2c1)]=!0x0;}[_0x37a374(0x359)](){const _0x4c08dd=_0x37a374;this[_0x4c08dd(0x2c1)]=!0x1;}[_0x37a374(0x37c)](){const _0x4cd6a7=_0x37a374;this[_0x4cd6a7(0x3bc)]()[_0x4cd6a7(0x23e)](()=>super[_0x4cd6a7(0x37c)]());}async['loadOfflineData'](_0x13cf06){const _0x4cb120=_0x37a374;return this[_0x4cb120(0x2c1)]?null:this['_localStorageService'][_0x4cb120(0x3ed)](Mt(_0x13cf06));}async[_0x37a374(0x645)](_0x2d5dff,_0x111f55){const _0x966bc4=_0x37a374;return!!this[_0x966bc4(0x5c3)]['setItem'](_0x2d5dff,_0x111f55);}[_0x37a374(0x49e)](_0x40708a,_0x10a8b0,_0x552e43,_0x2a85dd){const _0x510880=_0x37a374,_0x48d8b6=this[_0x510880(0x665)][_0x510880(0x4b6)](_0x40708a);this[_0x510880(0x5ab)][_0x510880(0x5d1)](_0x40708a,{'unitID':_0x40708a,'type':_0x10a8b0,'awaitingChangeset':_0x552e43,'mutations':_0x2a85dd,'rev':_0x48d8b6}),this[_0x510880(0x581)][_0x510880(0x244)](_0x40708a)||this[_0x510880(0x4ef)](_0x40708a);}[_0x37a374(0x4ef)](_0x365f73){const _0x18e39a=_0x37a374,_0x35cf6d=this[_0x18e39a(0x4d9)]();_0x35cf6d===0x0?this['_saveCache'](_0x365f73):this[_0x18e39a(0x581)]['set'](_0x365f73,setTimeout(()=>this[_0x18e39a(0x390)](_0x365f73),_0x35cf6d));}[_0x37a374(0x4d9)](){const _0x1f2b63=_0x37a374;var _0x189feb;return(_0x189feb=this[_0x1f2b63(0x3e7)][_0x1f2b63(0x37d)](sn))!=null?_0x189feb:Fn;}[_0x37a374(0x390)](_0x511383){const _0x19e3f3=_0x37a374,_0x3c8cee=this[_0x19e3f3(0x581)][_0x19e3f3(0x5bf)](_0x511383);return _0x3c8cee!==void 0x0&&window['clearTimeout'](_0x3c8cee),this['_localStorageService'][_0x19e3f3(0x443)](Mt(_0x511383),this[_0x19e3f3(0x5ab)]['get'](_0x511383))['then'](()=>this[_0x19e3f3(0x581)][_0x19e3f3(0x412)](_0x511383));}async['exhaustSavingTask'](){const _0x3270f9=_0x37a374,_0x4ba229=[];this[_0x3270f9(0x581)][_0x3270f9(0x278)]((_0x4899d3,_0x17eb34)=>{const _0x5de756=_0x3270f9;window[_0x5de756(0x4dc)](_0x4899d3),_0x4ba229['push'](this['_saveCache'](_0x17eb34)[_0x5de756(0x23e)](()=>{const _0x495436=_0x5de756;this[_0x495436(0x581)][_0x495436(0x412)](_0x17eb34);}));}),await Promise[_0x3270f9(0x267)](_0x4ba229);}[_0x37a374(0x4cf)](){const _0x59fc42=_0x37a374;this[_0x59fc42(0x4d6)](this['_beforeCloseService']['registerBeforeClose'](()=>{if(this['_saveTaskMap']['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x37a374(0x27a)]=gi([we(0x0,a[_0x37a374(0x30b)]),we(0x1,a[_0x37a374(0x583)]),we(0x2,te[_0x37a374(0x66a)]),we(0x3,a[_0x37a374(0x629)](a['LocaleService'])),we(0x4,a[_0x37a374(0x629)](p[_0x37a374(0x445)]))],exports[_0x37a374(0x27a)]);function Mt(_0x386b77){const _0x471c92=_0x37a374;return _0x471c92(0x675)+_0x386b77;}var Ii=Object[_0x37a374(0x55e)],Ci=Object[_0x37a374(0x4a5)],Ei=(_0x495753,_0x314aa4,_0xe4b7e5,_0x4117b4)=>{for(var _0x4110b5=_0x4117b4>0x1?void 0x0:_0x4117b4?Ci(_0x314aa4,_0xe4b7e5):_0x314aa4,_0xd91b0=_0x495753['length']-0x1,_0x128eb1;_0xd91b0>=0x0;_0xd91b0--)(_0x128eb1=_0x495753[_0xd91b0])&&(_0x4110b5=(_0x4117b4?_0x128eb1(_0x314aa4,_0xe4b7e5,_0x4110b5):_0x128eb1(_0x4110b5))||_0x4110b5);return _0x4117b4&&_0x4110b5&&Ii(_0x314aa4,_0xe4b7e5,_0x4110b5),_0x4110b5;},Ze=(_0x239e88,_0x2d4572)=>(_0x41b25a,_0x222230)=>_0x2d4572(_0x41b25a,_0x222230,_0x239e88);function bi(_0x57f58a){const _0x1c0077=_0x37a374,{unitID:_0x239932,mutations:_0x137d5d}=_0x57f58a;return{'unitId':_0x239932,'subUnitId':_0x137d5d[0x0][_0x1c0077(0x39d)][_0x1c0077(0x561)]};}let ke=class{constructor(_0x2b8cb7,_0x57e09b,_0x20f0b3){const _0x4caf6d=_0x37a374;this[_0x4caf6d(0x58f)]=_0x2b8cb7,this['_transformService']=_0x57e09b,this[_0x4caf6d(0x562)]=_0x20f0b3;}[_0x37a374(0x3c8)](_0x1a8d01){const _0x12dc65=_0x37a374;var _0xad8663,_0x52baf8,_0x295a2e,_0x93beb3;const _0x2a847b=this[_0x12dc65(0x58f)][_0x12dc65(0x5bf)](k[_0x12dc65(0x3f7)]),{unitId:_0xecfb79,subUnitId:_0x1360bd}=bi(_0x1a8d01),_0xb86f93=_0x2a847b[_0x12dc65(0x2f9)](_0xecfb79)[_0x12dc65(0x344)](),_0x2f18eb=(_0x52baf8=(_0xad8663=this[_0x12dc65(0x562)][_0x12dc65(0x461)](_0xecfb79))==null?void 0x0:_0xad8663[_0x12dc65(0x25a)]())==null?void 0x0:_0x52baf8[_0x12dc65(0x261)]();if(_0xb86f93['length']===0x0||!_0xecfb79||!_0x1360bd)return;const _0x40b9be=[{'id':k[_0x12dc65(0x531)]['id'],'params':{'unitId':_0xecfb79,'subUnitId':_0x2f18eb,'selections':a[_0x12dc65(0x59b)]['deepClone'](_0xb86f93)}}],_0x3a08d6=this[_0x12dc65(0x541)]['transformMutationsWithChangeset'](_0x1a8d01,_0x40b9be);if(!p[_0x12dc65(0x340)](_0x3a08d6))throw _0x3a08d6[_0x12dc65(0x237)];const _0x7b04d=(_0x93beb3=(_0x295a2e=_0x3a08d6[_0x12dc65(0x3b2)][0x0])==null?void 0x0:_0x295a2e['params'])==null?void 0x0:_0x93beb3[_0x12dc65(0x5b0)];if(Array[_0x12dc65(0x338)](_0x7b04d)&&_0x7b04d['length']){if(_0x7b04d['length']===_0x40b9be[0x0][_0x12dc65(0x39d)][_0x12dc65(0x5b0)][_0x12dc65(0x330)]&&_0x7b04d[_0x12dc65(0x510)]((_0x405fb6,_0x537501)=>a[_0x12dc65(0x382)][_0x12dc65(0x203)](_0x405fb6[_0x12dc65(0x30f)],_0x40b9be[0x0][_0x12dc65(0x39d)][_0x12dc65(0x5b0)][_0x537501]['range'])))return;this['_injector']['get'](a[_0x12dc65(0x30c)])[_0x12dc65(0x50d)](k[_0x12dc65(0x531)]['id'],{'unitId':_0xecfb79,'subUnitId':_0x2f18eb,'selections':_0x7b04d});}}};ke=Ei([Ze(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Ze(0x1,p[_0x37a374(0x214)]),Ze(0x2,a['IUniverInstanceService'])],ke);const qe=a[_0x37a374(0x3e0)](_0x37a374(0x2ee));var _n=(_0x39b54e=>(_0x39b54e[_0x39b54e['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x39b54e[_0x39b54e['OTHER_CLIENTS_EDITING']=0x1]=_0x37a374(0x357),_0x39b54e))(_n||{});const At=0x7530,Nt=_0x37a374(0x61f);class Ti extends a['Disposable']{constructor(){const _0x5a7a15=_0x37a374;super(),I(this,_0x5a7a15(0x5e3),a['Tools'][_0x5a7a15(0x3c0)]()),I(this,_0x5a7a15(0x5c6),new Set()),I(this,'_unitOnClients',new Map()),I(this,'_heartbeatTimer',null),I(this,_0x5a7a15(0x305),new Map()),I(this,_0x5a7a15(0x210),new Map()),this['_init']();}[_0x37a374(0x37c)](){const _0x12afb1=_0x37a374;super[_0x12afb1(0x37c)](),this[_0x12afb1(0x305)]['forEach']((_0x39326c,_0x5d26e7)=>this[_0x12afb1(0x1ea)](_0x5d26e7)),this[_0x12afb1(0x295)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x37a374(0x468)](_0x7a6a4d){const _0x3f0a07=_0x37a374;return this[_0x3f0a07(0x4a0)](_0x7a6a4d)[_0x3f0a07(0x4d7)](A['distinctUntilChanged']());}['editingUnit'](_0x333cc7){const _0x39384f=_0x37a374;this[_0x39384f(0x5c6)][_0x39384f(0x654)]===0x0&&this[_0x39384f(0x50f)](),this[_0x39384f(0x5c6)][_0x39384f(0x63d)](_0x333cc7),this[_0x39384f(0x37b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x333cc7],'isForwarded':!0x1});}[_0x37a374(0x31f)](_0xa3de73){const _0x3811e=_0x37a374;this['_selfUnitIDs'][_0x3811e(0x412)](_0xa3de73),this['_selfUnitIDs']['size']===0x0&&this[_0x3811e(0x295)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x3aab2e=_0x37a374;this[_0x3aab2e(0x4d6)](a['toDisposable'](A[_0x3aab2e(0x294)](window,_0x3aab2e(0x201))['subscribe'](_0x110d4f=>{const _0x5db1e2=_0x3aab2e;if(_0x110d4f[_0x5db1e2(0x1c7)]!==Nt||!_0x110d4f[_0x5db1e2(0x498)])return;const _0x312e37=JSON['parse'](_0x110d4f[_0x5db1e2(0x498)]);this[_0x5db1e2(0x3b0)](_0x312e37);}))),window[_0x3aab2e(0x40f)]('unload',()=>this[_0x3aab2e(0x37b)]({'type':0x1,'memberID':this[_0x3aab2e(0x5e3)],'unitIDs':Array[_0x3aab2e(0x1ec)](this[_0x3aab2e(0x5c6)])}));}[_0x37a374(0x3b0)](_0x34214a){const _0x53623b=_0x37a374;switch(_0x34214a[_0x53623b(0x1d2)]){case 0x0:this[_0x53623b(0x58c)](_0x34214a);break;case 0x1:this[_0x53623b(0x5e5)](_0x34214a);break;case 0x2:this[_0x53623b(0x2aa)](_0x34214a);break;}}[_0x37a374(0x58c)](_0x24c9e2){const _0x55116b=_0x37a374,{unitIDs:_0x4eb33e,memberID:_0x464ac0,isForwarded:_0x4b8f09}=_0x24c9e2;_0x4eb33e[_0x55116b(0x278)](_0x5912da=>{const _0x22428b=_0x55116b;if(!_0x4b8f09&&this[_0x22428b(0x567)][_0x22428b(0x244)](_0x5912da)&&this[_0x22428b(0x4a0)](_0x5912da)[_0x22428b(0x24e)](0x1),!this[_0x22428b(0x567)][_0x22428b(0x244)](_0x5912da)||!this[_0x22428b(0x567)][_0x22428b(0x5bf)](_0x5912da)[_0x22428b(0x244)](_0x464ac0)){const _0x2d3273=this[_0x22428b(0x567)][_0x22428b(0x5bf)](_0x5912da)||new Set();_0x2d3273[_0x22428b(0x63d)](_0x464ac0),this[_0x22428b(0x567)]['set'](_0x5912da,_0x2d3273),this['_scheduleClearOtherTimer'](_0x464ac0);}}),_0x4b8f09||this[_0x55116b(0x37b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x37a374(0x349)](_0x27eddc){const _0xcd9ebb=_0x37a374;this[_0xcd9ebb(0x1ea)](_0x27eddc);const _0x4629c9=window[_0xcd9ebb(0x3d3)](()=>{const _0x402015=_0xcd9ebb;this[_0x402015(0x567)]['forEach'](_0x4d5f3c=>{const _0x3fed0e=_0x402015;_0x4d5f3c[_0x3fed0e(0x412)](_0x27eddc);});},At*0x2);this[_0xcd9ebb(0x305)][_0xcd9ebb(0x5d1)](_0x27eddc,_0x4629c9);}[_0x37a374(0x1ea)](_0x97eb7f){const _0x2aafef=_0x37a374;if(this[_0x2aafef(0x305)][_0x2aafef(0x244)](_0x97eb7f)){const _0x589049=this[_0x2aafef(0x305)][_0x2aafef(0x5bf)](_0x97eb7f);_0x589049&&window[_0x2aafef(0x4dc)](_0x589049),this['_clearOtherTimers'][_0x2aafef(0x5d1)](_0x97eb7f,null);}}['_handleLeaveEvent'](_0x2a04bc){const _0x3be46d=_0x37a374,{memberID:_0x56d3ba,unitIDs:_0x5d8d78}=_0x2a04bc;_0x5d8d78[_0x3be46d(0x278)](_0x419d87=>{const _0x4c1986=_0x3be46d;var _0x3d24c8;const _0x3095cb=this[_0x4c1986(0x567)][_0x4c1986(0x5bf)](_0x419d87);_0x3095cb&&(_0x3095cb[_0x4c1986(0x412)](_0x56d3ba),(_0x3d24c8=this[_0x4c1986(0x4a0)](_0x419d87))==null||_0x3d24c8['next'](_0x3095cb[_0x4c1986(0x654)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x56d3ba);}[_0x37a374(0x2aa)](_0x5f0ebe){const _0x17f383=_0x37a374;this[_0x17f383(0x349)](_0x5f0ebe[_0x17f383(0x280)]);}[_0x37a374(0x37b)](_0x47f74e){const _0x484a56=_0x37a374;localStorage[_0x484a56(0x443)](Nt,JSON[_0x484a56(0x3df)](_0x47f74e));}[_0x37a374(0x50f)](){const _0x4382a7=_0x37a374;this[_0x4382a7(0x295)]=window[_0x4382a7(0x4db)](()=>{const _0x548125=_0x4382a7;this[_0x548125(0x37b)]({'type':0x2,'memberID':this['_id']});},At);}['_ensureSubject'](_0x477925){const _0x5bc2cf=_0x37a374;return this[_0x5bc2cf(0x210)][_0x5bc2cf(0x244)](_0x477925)||this[_0x5bc2cf(0x210)][_0x5bc2cf(0x5d1)](_0x477925,new A[(_0x5bc2cf(0x441))](0x0)),this[_0x5bc2cf(0x210)][_0x5bc2cf(0x5bf)](_0x477925);}}var Ri=Object['defineProperty'],yi=Object[_0x37a374(0x4a5)],Oi=(_0x25d9f0,_0x5b992d,_0x29bbb0,_0x6f85d1)=>{const _0x110765=_0x37a374;for(var _0x4be0da=_0x6f85d1>0x1?void 0x0:_0x6f85d1?yi(_0x5b992d,_0x29bbb0):_0x5b992d,_0x9287e=_0x25d9f0[_0x110765(0x330)]-0x1,_0x3f584a;_0x9287e>=0x0;_0x9287e--)(_0x3f584a=_0x25d9f0[_0x9287e])&&(_0x4be0da=(_0x6f85d1?_0x3f584a(_0x5b992d,_0x29bbb0,_0x4be0da):_0x3f584a(_0x4be0da))||_0x4be0da);return _0x6f85d1&&_0x4be0da&&Ri(_0x5b992d,_0x29bbb0,_0x4be0da),_0x4be0da;},Qe=(_0x378dd2,_0x4ce35d)=>(_0x55f007,_0x496da9)=>_0x4ce35d(_0x55f007,_0x496da9,_0x378dd2);let We=class{constructor(_0x18a592,_0x5a33b6,_0x48200b){const _0x2cd03a=_0x37a374;this[_0x2cd03a(0x58f)]=_0x18a592,this[_0x2cd03a(0x541)]=_0x5a33b6,this['_docStateChangeManagerService']=_0x48200b;}[_0x37a374(0x232)](_0x586528){this['_transformHistoryAndStateStack'](_0x586528);}[_0x37a374(0x53d)](_0x41b4d6){const _0x6d017b=_0x37a374,{unitID:_0x242fce}=_0x41b4d6,{collaboration:_0x4a447e}=this[_0x6d017b(0x509)][_0x6d017b(0x387)](_0x242fce);if(_0x4a447e[_0x6d017b(0x330)]===0x0)return _0x41b4d6;let _0x12cc01=a[_0x6d017b(0x59b)][_0x6d017b(0x2c7)](_0x41b4d6[_0x6d017b(0x579)][0x0]);for(let _0x5ab3ad=0x0;_0x5ab3ad<_0x4a447e['length'];_0x5ab3ad++){const _0x59750e={'id':_0x6d017b(0x3a1),'params':{'unitId':_0x4a447e[_0x5ab3ad][_0x6d017b(0x36d)],..._0x4a447e[_0x5ab3ad]['redoState']}},_0x1748b2=this['_transformService']['transformMutation'](_0x12cc01,_0x59750e,!0x1);if(p[_0x6d017b(0x358)](_0x1748b2))throw _0x1748b2[_0x6d017b(0x237)];_0x12cc01=_0x1748b2[_0x6d017b(0x38c)];}return{...a[_0x6d017b(0x59b)][_0x6d017b(0x2c7)](_0x41b4d6),'mutations':[_0x12cc01]};}[_0x37a374(0x657)](_0x26927c){const _0x403f40=_0x37a374,{unitID:_0x4c2827}=_0x26927c,{history:_0x1a7ba6,collaboration:_0x122be7}=this[_0x403f40(0x509)][_0x403f40(0x387)](_0x4c2827);if(_0x1a7ba6[_0x403f40(0x330)]===0x0&&_0x122be7[_0x403f40(0x330)]===0x0)return;const _0x6b0665=[],_0x4d9f2f=[];let _0x25c362=a[_0x403f40(0x59b)]['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]),_0x5f547d=a['Tools']['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]);for(let _0x50e786=_0x1a7ba6[_0x403f40(0x330)]-0x1;_0x50e786>=0x0;_0x50e786--){const _0x24ec8e={'id':_0x403f40(0x3a1),'params':{'unitId':_0x1a7ba6[_0x50e786][_0x403f40(0x36d)],..._0x1a7ba6[_0x50e786][_0x403f40(0x251)]}},_0x2ca5c4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1a7ba6[_0x50e786][_0x403f40(0x36d)],..._0x1a7ba6[_0x50e786][_0x403f40(0x365)]}},_0x3ccc07=this[_0x403f40(0x541)]['transformMutation'](_0x25c362,_0x24ec8e,!0x1),_0x1778c3=this[_0x403f40(0x541)][_0x403f40(0x337)](_0x5f547d,_0x2ca5c4,!0x1);if(p[_0x403f40(0x358)](_0x3ccc07))throw _0x3ccc07[_0x403f40(0x237)];if(p[_0x403f40(0x358)](_0x1778c3))throw _0x1778c3[_0x403f40(0x237)];_0x6b0665[_0x403f40(0x1d0)]({..._0x1a7ba6[_0x50e786],'undoState':_0x3ccc07[_0x403f40(0x3b2)]['params'],'redoState':_0x1778c3[_0x403f40(0x3b2)][_0x403f40(0x39d)]}),_0x25c362=_0x3ccc07[_0x403f40(0x38c)],_0x5f547d=_0x1778c3[_0x403f40(0x38c)];}_0x25c362=a[_0x403f40(0x59b)]['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]),_0x5f547d=a[_0x403f40(0x59b)][_0x403f40(0x2c7)](_0x26927c[_0x403f40(0x579)][0x0]);for(let _0x41cda3=_0x122be7['length']-0x1;_0x41cda3>=0x0;_0x41cda3--){const _0x338ab5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x122be7[_0x41cda3]['unitId'],..._0x122be7[_0x41cda3][_0x403f40(0x251)]}},_0x8b3785={'id':_0x403f40(0x3a1),'params':{'unitId':_0x122be7[_0x41cda3][_0x403f40(0x36d)],..._0x122be7[_0x41cda3][_0x403f40(0x365)]}},_0x4bb76e=this['_transformService'][_0x403f40(0x337)](_0x25c362,_0x338ab5,!0x1),_0x452ea1=this[_0x403f40(0x541)]['transformMutation'](_0x5f547d,_0x8b3785,!0x1);if(p[_0x403f40(0x358)](_0x4bb76e))throw _0x4bb76e[_0x403f40(0x237)];if(p[_0x403f40(0x358)](_0x452ea1))throw _0x452ea1['error'];_0x4d9f2f[_0x403f40(0x1d0)]({..._0x122be7[_0x41cda3],'undoState':_0x4bb76e[_0x403f40(0x3b2)]['params'],'redoState':_0x452ea1[_0x403f40(0x3b2)][_0x403f40(0x39d)]}),_0x25c362=_0x4bb76e[_0x403f40(0x38c)],_0x5f547d=_0x452ea1[_0x403f40(0x38c)];}this[_0x403f40(0x509)][_0x403f40(0x3c5)](_0x4c2827,{'history':_0x6b0665,'collaboration':_0x4d9f2f});}};We=Oi([Qe(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Qe(0x1,p[_0x37a374(0x214)]),Qe(0x2,a[_0x37a374(0x629)](Z[_0x37a374(0x36e)]))],We);function un(_0x17d0cf){const _0x3b51d8=_0x37a374;let _0x5080d6='';for(const _0x2f533f of _0x17d0cf){const {startOffset:_0x1c75ee,endOffset:_0x4c4850,isActive:_0x18b7c2,rangeType:_0x4f4fdc,segmentId:_0x27be97,segmentPage:_0x10176a}=_0x2f533f;_0x5080d6[_0x3b51d8(0x330)]&&(_0x5080d6+=','),_0x5080d6+=_0x1c75ee+':'+_0x4c4850+':'+(_0x18b7c2?'1':'0')+':'+_0x4f4fdc+':'+_0x27be97+':'+_0x10176a;}return _0x5080d6;}function Di(_0x3caefd){const _0x256641=_0x37a374,_0xcaec1=_0x3caefd['split'](','),_0x5cc37b=[];for(const _0x17ebc4 of _0xcaec1){const [_0x4c1dd0,_0x371d4e,_0x2226f9,_0x599517,_0x852f7f,_0x2ca5e3]=_0x17ebc4['split'](':');_0x5cc37b[_0x256641(0x257)]({'startOffset':Number(_0x4c1dd0),'endOffset':Number(_0x371d4e),'collapsed':_0x4c1dd0===_0x371d4e,'isActive':_0x2226f9==='1','rangeType':_0x599517===a[_0x256641(0x39a)][_0x256641(0x318)]?a['DOC_RANGE_TYPE'][_0x256641(0x318)]:a['DOC_RANGE_TYPE'][_0x256641(0x64d)],'segmentId':typeof _0x852f7f==_0x256641(0x3de)?String(_0x852f7f):'','segmentPage':Number(_0x2ca5e3!=null?_0x2ca5e3:-0x1)});}return _0x5cc37b['some'](_0x44aa17=>_0x44aa17[_0x256641(0x32b)])||(_0x5cc37b[0x0][_0x256641(0x32b)]=!0x0),_0x5cc37b;}class Tt extends a[_0x37a374(0x2f7)]{constructor(){const _0xde9d12=_0x37a374;super(...arguments),I(this,_0xde9d12(0x394),new A[(_0xde9d12(0x441))](null)),I(this,_0xde9d12(0x292),this[_0xde9d12(0x394)][_0xde9d12(0x483)]());}[_0x37a374(0x2e9)](_0x2a751b){const _0xa19d5=_0x37a374,{unitID:_0x568ae5,memberID:_0x4e44f8,textRanges:_0x2ed820}=_0x2a751b,_0x5a094c=un(_0x2ed820);if(_0x5a094c==='')return;const _0x20684b={'unitID':_0x568ae5,'memberID':_0x4e44f8,'selection':_0x5a094c};this[_0xa19d5(0x394)]['next'](_0x20684b);}}var wi=Object[_0x37a374(0x55e)],Pi=Object[_0x37a374(0x4a5)],Ui=(_0x44ada5,_0x3e626d,_0x54e5da,_0x41e945)=>{const _0x401b67=_0x37a374;for(var _0x604454=_0x41e945>0x1?void 0x0:_0x41e945?Pi(_0x3e626d,_0x54e5da):_0x3e626d,_0x1af719=_0x44ada5[_0x401b67(0x330)]-0x1,_0x4a9480;_0x1af719>=0x0;_0x1af719--)(_0x4a9480=_0x44ada5[_0x1af719])&&(_0x604454=(_0x41e945?_0x4a9480(_0x3e626d,_0x54e5da,_0x604454):_0x4a9480(_0x604454))||_0x604454);return _0x41e945&&_0x604454&&wi(_0x3e626d,_0x54e5da,_0x604454),_0x604454;},Lt=(_0x24664e,_0x558589)=>(_0x2dd949,_0x3f73a6)=>_0x558589(_0x2dd949,_0x3f73a6,_0x24664e);let Fe=class{constructor(_0x1d361d,_0x320698){const _0x2ada61=_0x37a374;this[_0x2ada61(0x58f)]=_0x1d361d,this[_0x2ada61(0x541)]=_0x320698;}['transformSelections'](_0x3e8652){const _0x27b383=_0x37a374;var _0x4ab6b2;const _0x46767=this[_0x27b383(0x58f)][_0x27b383(0x5bf)](Re[_0x27b383(0x1fc)]),_0x131890=(_0x4ab6b2=_0x46767[_0x27b383(0x247)]())!=null?_0x4ab6b2:[];if(_0x131890[_0x27b383(0x330)]===0x0)return;const _0x52732f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e8652[_0x27b383(0x505)],'actions':null,'textRanges':_0x131890}}],_0x331f09=this[_0x27b383(0x541)][_0x27b383(0x45f)](_0x3e8652,_0x52732f);if(!p[_0x27b383(0x340)](_0x331f09))throw _0x331f09[_0x27b383(0x237)];const _0x4491e2=_0x331f09[_0x27b383(0x3b2)][0x0]['params'][_0x27b383(0x5ed)];Array[_0x27b383(0x338)](_0x4491e2)&&_0x4491e2['length']&&_0x46767['replaceTextRanges'](_0x4491e2,!0x1);}};Fe=Ui([Lt(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Lt(0x1,p[_0x37a374(0x214)])],Fe);const Mi=new Set([k[_0x37a374(0x2a6)]['id']]);function xt(_0x4c71d9,_0x4a8d76,_0x4214c7,_0x1e8746,_0x1969f6){const _0x59fbdc=_0x37a374;var _0x8ba5ff,_0x5c4710,_0x11c4bb,_0x3d57c7;const _0x55371e=[];for(const _0x5df4de of _0x4c71d9)if(Mi['has'](_0x5df4de['id'])){if(_0x55371e['length']>0x0)break;_0x55371e[_0x59fbdc(0x257)](_0x5df4de);break;}else _0x55371e[_0x59fbdc(0x257)](_0x5df4de);const _0x3e3f32=(_0x5c4710=(_0x8ba5ff=_0x1969f6[_0x59fbdc(0x1eb)]())==null?void 0x0:_0x8ba5ff[_0x59fbdc(0x46e)])!=null?_0x5c4710:_0x59fbdc(0x35a),_0x3ecbbf=(_0x3d57c7=(_0x11c4bb=_0x1969f6[_0x59fbdc(0x1eb)]())==null?void 0x0:_0x11c4bb[_0x59fbdc(0x280)])!=null?_0x3d57c7:_0x59fbdc(0x35a);return{'changeset':{'unitID':_0x4a8d76,'type':p[_0x59fbdc(0x286)](_0x4214c7['getUnitType'](_0x4a8d76)),'baseRev':_0x1e8746[_0x59fbdc(0x4b6)](_0x4a8d76),'revision':0x0,'userID':_0x3e3f32,'memberID':_0x3ecbbf,'mutations':_0x55371e},'pendingMutations':_0x4c71d9[_0x59fbdc(0x2e5)](_0x55371e[_0x59fbdc(0x330)])};}function Ai(_0x355d6f,_0x2ca9b6,_0x581114,_0x4b116b,_0xd96efb){const _0x41b8c8=_0x37a374;var _0x3288af,_0x18c4af,_0x346f55,_0x59d617;const _0x46e276=[_0x355d6f[_0x41b8c8(0x20e)]((_0x4fcbe1,_0x3ce534)=>{const _0x25f207=_0x41b8c8;var _0x37bc55;const {id:_0x122bae}=_0x4fcbe1,{id:_0xbb3049,type:_0xac429}=_0x3ce534,_0x625a2c=(_0x37bc55=_0x4fcbe1[_0x25f207(0x39d)])!=null?_0x37bc55:{'actions':null},_0x319e04=_0x3ce534[_0x25f207(0x39d)];if(_0x122bae&&_0x122bae!==_0xbb3049)throw new Error(_0x25f207(0x5ea)+_0x122bae+'\x20-\x20'+_0xbb3049+'.');return{..._0x4fcbe1,'id':_0xbb3049,'type':_0xac429,'params':{'unitId':_0x319e04[_0x25f207(0x36d)],'textRanges':_0x319e04['textRanges'],'actions':a[_0x25f207(0x2a9)]['compose'](_0x625a2c[_0x25f207(0x3b6)],_0x319e04[_0x25f207(0x3b6)])}};},{})],_0x49abae=(_0x18c4af=(_0x3288af=_0xd96efb[_0x41b8c8(0x1eb)]())==null?void 0x0:_0x3288af[_0x41b8c8(0x46e)])!=null?_0x18c4af:'unknown',_0x4cabc6=(_0x59d617=(_0x346f55=_0xd96efb[_0x41b8c8(0x1eb)]())==null?void 0x0:_0x346f55['memberID'])!=null?_0x59d617:_0x41b8c8(0x35a);return{'changeset':{'unitID':_0x2ca9b6,'type':p[_0x41b8c8(0x286)](_0x581114[_0x41b8c8(0x646)](_0x2ca9b6)),'baseRev':_0x4b116b[_0x41b8c8(0x4b6)](_0x2ca9b6),'revision':0x0,'userID':_0x49abae,'memberID':_0x4cabc6,'mutations':_0x46e276},'pendingMutations':[]};}function dn(_0x46f38e,_0x49a41b){const _0x9555a9=_0x37a374,_0x4e2ed1=new A[(_0x9555a9(0x4ac))](0x1);return setTimeout(()=>_0x4e2ed1[_0x9555a9(0x24e)](_0x49a41b),_0x46f38e),_0x4e2ed1[_0x9555a9(0x483)]()[_0x9555a9(0x4d7)](A[_0x9555a9(0x630)](0x1));}const Ni={'id':k[_0x37a374(0x1c2)]['id'],'type':a['CommandType']['MUTATION'],'params':{}};var Li=Object[_0x37a374(0x55e)],xi=Object[_0x37a374(0x4a5)],ge=(_0x34c8fc,_0x5e0a74,_0x47d0ca,_0x21ad8a)=>{const _0x59c990=_0x37a374;for(var _0x3063d0=_0x21ad8a>0x1?void 0x0:_0x21ad8a?xi(_0x5e0a74,_0x47d0ca):_0x5e0a74,_0x35cc80=_0x34c8fc[_0x59c990(0x330)]-0x1,_0x488194;_0x35cc80>=0x0;_0x35cc80--)(_0x488194=_0x34c8fc[_0x35cc80])&&(_0x3063d0=(_0x21ad8a?_0x488194(_0x5e0a74,_0x47d0ca,_0x3063d0):_0x488194(_0x3063d0))||_0x3063d0);return _0x21ad8a&&_0x3063d0&&Li(_0x5e0a74,_0x47d0ca,_0x3063d0),_0x3063d0;},N=(_0x71e9b,_0x4d8a8c)=>(_0x331cfc,_0x583c05)=>_0x4d8a8c(_0x331cfc,_0x583c05,_0x71e9b),q=(_0x1a1c6b=>(_0x1a1c6b[_0x37a374(0x4a3)]=_0x37a374(0x1f7),_0x1a1c6b[_0x37a374(0x2b9)]='synced',_0x1a1c6b[_0x37a374(0x636)]=_0x37a374(0x4bf),_0x1a1c6b[_0x37a374(0x5b7)]=_0x37a374(0x489),_0x1a1c6b[_0x37a374(0x672)]=_0x37a374(0x228),_0x1a1c6b[_0x37a374(0x334)]=_0x37a374(0x1f0),_0x1a1c6b[_0x37a374(0x43c)]=_0x37a374(0x656),_0x1a1c6b[_0x37a374(0x320)]=_0x37a374(0x34e),_0x1a1c6b))(q||{});const fn=0xea60;class Ie{constructor(_0x22466a,_0x482f5a,_0x309807,_0x371071,_0x2140c3,_0x3cdcc4,_0x45d47f,_0x4e2aa7,_0x346b4a){const _0x5a0e43=_0x37a374;I(this,_0x5a0e43(0x5b5),null),I(this,_0x5a0e43(0x405),[]),(this['unitID']=_0x22466a,this[_0x5a0e43(0x1d2)]=_0x482f5a,this['_handler']=_0x2140c3,this[_0x5a0e43(0x48f)]=_0x3cdcc4,this[_0x5a0e43(0x54e)]=_0x45d47f,this[_0x5a0e43(0x665)]=_0x4e2aa7,this[_0x5a0e43(0x1fd)]=_0x346b4a,this[_0x5a0e43(0x5b5)]=_0x309807,this['_pendingMutations']=_0x371071);}[_0x37a374(0x255)](_0x3b8d5c){const _0x5a9d64=_0x37a374,_0x21cbee=this[_0x5a9d64(0x665)][_0x5a9d64(0x4b6)](this[_0x5a9d64(0x505)]);return _0x3b8d5c[_0x5a9d64(0x546)]>_0x21cbee+0x1?(this[_0x5a9d64(0x4f6)][_0x5a9d64(0x55d)]({'from':_0x21cbee,'to':_0x3b8d5c[_0x5a9d64(0x546)]-0x1}),!0x0):!0x1;}[_0x37a374(0x1e1)](_0x26231d){const _0x3d179e=_0x37a374;this[_0x3d179e(0x54e)][_0x3d179e(0x38d)](this['unitID'],_0x26231d);}[_0x37a374(0x5f7)](_0xb089c){const _0x593e02=_0x37a374;var _0x5994b5,_0x27c3f5;(_0x27c3f5=(_0x5994b5=this[_0x593e02(0x4f6)])[_0x593e02(0x42f)])==null||_0x27c3f5[_0x593e02(0x1fa)](_0x5994b5,_0xb089c);}['_transformIMECache'](_0x4ef4c6){const _0x3248b6=_0x37a374;var _0x368627,_0x4c1cf7;return(_0x4c1cf7=(_0x368627=this['_handler'])[_0x3248b6(0x329)])==null?void 0x0:_0x4c1cf7[_0x3248b6(0x1fa)](_0x368627,_0x4ef4c6);}[_0x37a374(0x260)](_0x5e3a4f){const _0x54b47b=_0x37a374;var _0x4b9f92,_0x3e686a;return(_0x3e686a=(_0x4b9f92=this[_0x54b47b(0x4f6)])[_0x54b47b(0x590)])==null?void 0x0:_0x3e686a[_0x54b47b(0x1fa)](_0x4b9f92,_0x5e3a4f);}[_0x37a374(0x641)](_0x1656c5){const _0x1b8f2d=_0x37a374;var _0x3dddd2,_0x2b0a54,_0x197753;return(_0x197753=(_0x2b0a54=(_0x3dddd2=this[_0x1b8f2d(0x4f6)])[_0x1b8f2d(0x1d6)])==null?void 0x0:_0x2b0a54[_0x1b8f2d(0x1fa)](_0x3dddd2,_0x1656c5))!=null?_0x197753:_0x1656c5;}['_transformRemoteChangesetByStateCache'](_0x154ed8){const _0x36c9f4=_0x37a374;var _0x842657,_0x53ffd0,_0x446c2c;return(_0x446c2c=(_0x53ffd0=(_0x842657=this['_handler'])[_0x36c9f4(0x454)])==null?void 0x0:_0x53ffd0[_0x36c9f4(0x1fa)](_0x842657,_0x154ed8))!=null?_0x446c2c:_0x154ed8;}[_0x37a374(0x592)](_0x456f42){const _0x16c565=_0x37a374;var _0x39c821,_0x3347ff;if(this[_0x16c565(0x1d2)]===se[_0x16c565(0x619)]){const {unitID:_0x1fa559,mutations:_0x2a0a02,memberID:_0x4c2991}=_0x456f42,_0x14f865=_0x2a0a02[0x0][_0x16c565(0x39d)][_0x16c565(0x5ed)];Array['isArray'](_0x14f865)&&_0x14f865[_0x16c565(0x330)]>0x0&&((_0x3347ff=(_0x39c821=this[_0x16c565(0x4f6)])[_0x16c565(0x44e)])==null||_0x3347ff[_0x16c565(0x1fa)](_0x39c821,{'unitID':_0x1fa559,'memberID':_0x4c2991,'textRanges':_0x14f865}));}}['_updateLocalCache'](){const _0x131b4c=_0x37a374;this[_0x131b4c(0x1fd)][_0x131b4c(0x49e)](this['unitID'],this[_0x131b4c(0x1d2)],this[_0x131b4c(0x5b5)],this[_0x131b4c(0x405)]);}[_0x37a374(0x35c)](){const _0x3c5ce0=_0x37a374;return this['_revisionService'][_0x3c5ce0(0x4b6)](this['unitID']);}['_incrementRevisionNumber'](){const _0x4fceee=_0x37a374;this[_0x4fceee(0x665)][_0x4fceee(0x296)](this[_0x4fceee(0x505)]);}[_0x37a374(0x27e)](_0x12c87b){const _0x23c36b=_0x37a374;var _0x1b4bcb;let _0x2dc1d5=this[_0x23c36b(0x641)](_0x12c87b);_0x2dc1d5=this[_0x23c36b(0x563)](_0x2dc1d5);const _0x22d9ba=a[_0x23c36b(0x2ed)](_0x2dc1d5[_0x23c36b(0x579)],this[_0x23c36b(0x48f)],{'fromCollab':!0x0});if(!_0x22d9ba[_0x23c36b(0x1e6)])throw _0x22d9ba[_0x23c36b(0x237)]instanceof Error?_0x22d9ba[_0x23c36b(0x237)]:new Error((_0x1b4bcb=_0x22d9ba[_0x23c36b(0x237)])!=null?_0x1b4bcb:'[CollaborationState]:\x20apply\x20error!');this[_0x23c36b(0x245)](_0x2dc1d5),this['_transformStateCache'](_0x2dc1d5),this['_transformUndoredo'](_0x12c87b),this[_0x23c36b(0x5f7)](_0x2dc1d5),this[_0x23c36b(0x592)](_0x2dc1d5),this['_incrementRevisionNumber']();}}let ye=class extends Ie{constructor(_0x18c08c,_0x45cb70,_0xdb64d0,_0xb0aaef,_0x58a277,_0x1037be,_0x37d17d,_0x2e2f60,_0x1e2a38,_0x26c0bd){const _0x7855ac=_0x37a374;super(_0x18c08c,_0x45cb70,null,[],_0xdb64d0,_0x2e2f60,_0x37d17d,_0xb0aaef,_0x58a277),I(this,_0x7855ac(0x58b),'synced'),(this['_injector']=_0x1037be,this[_0x7855ac(0x58a)]=_0x1e2a38,this[_0x7855ac(0x541)]=_0x26c0bd);}[_0x37a374(0x1e7)](_0x1791a9){const _0x5cb7da=_0x37a374,_0xe4002b=this[_0x5cb7da(0x58f)][_0x5cb7da(0x4bb)](ce,this['unitID'],this['type'],[_0x1791a9],this['_handler']);return _0xe4002b[_0x5cb7da(0x57b)](),_0xe4002b['_updateLocalCache'](),_0xe4002b;}['onRemoteChangeset'](_0xe6a800){const _0x353678=_0x37a374;if(this['_checkMissing'](_0xe6a800))return this[_0x353678(0x58f)][_0x353678(0x4bb)](oe,this[_0x353678(0x505)],this[_0x353678(0x1d2)],null,[],null,[_0xe6a800],this['_handler']);try{const _0x964bb4=this['_transformService']['transformMutationsWithChangeset'](_0xe6a800,[Ni]);if(p['isTransformMutationsWithChangesetSuccess'](_0x964bb4)){const {c1Prime:_0x38f93b}=_0x964bb4;return this['_executeRemoteChangeset'](_0x38f93b),this;}throw _0x964bb4['error'];}catch(_0x21e739){return this[_0x353678(0x58a)]['error'](_0x21e739),this[_0x353678(0x2af)](!0x1);}}[_0x37a374(0x2af)](_0x5e501b){const _0x36f9eb=_0x37a374;return this[_0x36f9eb(0x58f)][_0x36f9eb(0x4bb)](ve,this[_0x36f9eb(0x505)],this[_0x36f9eb(0x1d2)],null,[],this[_0x36f9eb(0x4f6)],_0x5e501b);}[_0x37a374(0x333)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0xc54858=_0x37a374;throw new Error(_0xc54858(0x2bf));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){const _0x1ea386=_0x37a374;return this[_0x1ea386(0x58f)][_0x1ea386(0x4bb)](me,this[_0x1ea386(0x505)],this[_0x1ea386(0x1d2)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x37a374(0x282)](){const _0x4f32ab=_0x37a374;throw new Error(_0x4f32ab(0x2ff));}[_0x37a374(0x354)](){const _0x31a353=_0x37a374,_0x50f391=this['_revisionService'][_0x31a353(0x4b6)](this[_0x31a353(0x505)]);return this['_handler'][_0x31a353(0x55d)]({'from':_0x50f391,'to':0x0}),this['_injector'][_0x31a353(0x4bb)](oe,this[_0x31a353(0x505)],this['type'],null,[],null,[],this[_0x31a353(0x4f6)]);}};ye=ge([N(0x3,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x5,a['Inject'](a[_0x37a374(0x4b7)])),N(0x6,a[_0x37a374(0x3cd)]),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x217)]),N(0x9,p[_0x37a374(0x214)])],ye);let ce=class extends Ie{constructor(_0x2d66dd,_0x35a20b,_0x3d4df,_0x49fde1,_0x157466,_0x8e8b97,_0x40f5c4,_0x43e7d4,_0x3fcdc7,_0x2e38c8,_0x59f29f,_0x10dcf5,_0x50ae61,_0x2c3333){const _0x4612e3=_0x37a374;super(_0x2d66dd,_0x35a20b,null,_0x3d4df,_0x49fde1,_0x2e38c8,_0x2c3333,_0x8e8b97,_0x40f5c4),I(this,_0x4612e3(0x58b),'pending'),I(this,'_scheduleTimestamp',null),I(this,_0x4612e3(0x517),null),(this[_0x4612e3(0x58f)]=_0x157466,this['_memberService']=_0x43e7d4,this[_0x4612e3(0x58a)]=_0x3fcdc7,this['_configService']=_0x59f29f,this[_0x4612e3(0x541)]=_0x10dcf5,this['_univerInstanceService']=_0x50ae61);}['appendMutation'](_0x12a175){const _0x2a032e=_0x37a374;return this[_0x2a032e(0x405)][_0x2a032e(0x257)](_0x12a175),this[_0x2a032e(0x408)](),this;}['onRemoteChangeset'](_0x9de953){const _0x1677ab=_0x37a374;if(this['_checkMissing'](_0x9de953))return this[_0x1677ab(0x518)](),this['_injector']['createInstance'](oe,this[_0x1677ab(0x505)],this[_0x1677ab(0x1d2)],null,this[_0x1677ab(0x405)],null,[_0x9de953],this[_0x1677ab(0x4f6)]);try{const _0xc4d889=this[_0x1677ab(0x541)]['transformMutationsWithChangeset'](_0x9de953,this['_pendingMutations']);if(p[_0x1677ab(0x340)](_0xc4d889)){const {c1Prime:_0x19f785,m2Prime:_0x5abd67}=_0xc4d889;this[_0x1677ab(0x27e)](_0x19f785);const _0x147466=this[_0x1677ab(0x58f)][_0x1677ab(0x4bb)](ce,this[_0x1677ab(0x505)],this['type'],_0x5abd67,this[_0x1677ab(0x4f6)]);return this[_0x1677ab(0x518)](),_0x147466['_schedule'](this['_scheduleTimestamp']?Math[_0x1677ab(0x59f)](0x0,new Date()[_0x1677ab(0x671)]()-this['_scheduleTimestamp']):this[_0x1677ab(0x5b2)]()),_0x147466;}throw _0xc4d889[_0x1677ab(0x237)];}catch(_0x673aea){return this[_0x1677ab(0x58a)]['error'](_0x673aea),this[_0x1677ab(0x2af)](!0x1);}}[_0x37a374(0x333)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0x39c7c1=_0x37a374;throw new Error(_0x39c7c1(0x53a));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){const _0x1dd7d9=_0x37a374;return this[_0x1dd7d9(0x518)](),this[_0x1dd7d9(0x58f)][_0x1dd7d9(0x4bb)](me,this['unitID'],this['type'],null,this[_0x1dd7d9(0x405)],this[_0x1dd7d9(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}['_schedule'](_0x3911c7){const _0x374a40=_0x37a374,_0x414823=_0x3911c7!=null?_0x3911c7:this[_0x374a40(0x5b2)]();this[_0x374a40(0x448)]=new Date()[_0x374a40(0x671)](),this[_0x374a40(0x517)]=window[_0x374a40(0x3d3)](()=>{const _0x1ac570=_0x374a40;this[_0x1ac570(0x518)]();let _0x268f89=null;switch(this['type']){case se[_0x1ac570(0x362)]:{_0x268f89=xt(this[_0x1ac570(0x405)],this[_0x1ac570(0x505)],this[_0x1ac570(0x1d4)],this[_0x1ac570(0x665)],this[_0x1ac570(0x5f6)]);break;}case se[_0x1ac570(0x619)]:{this[_0x1ac570(0x405)][_0x1ac570(0x510)](_0x797048=>_0x797048['id']===Re[_0x1ac570(0x578)]['id'])?_0x268f89=Ai(this[_0x1ac570(0x405)],this['unitID'],this[_0x1ac570(0x1d4)],this[_0x1ac570(0x665)],this[_0x1ac570(0x5f6)]):_0x268f89=xt(this[_0x1ac570(0x405)],this['unitID'],this['_univerInstanceService'],this[_0x1ac570(0x665)],this['_memberService']);break;}default:throw new Error(_0x1ac570(0x316)+this[_0x1ac570(0x1d2)]+_0x1ac570(0x2d7));}const {changeset:_0x18b8ee,pendingMutations:_0x44eab9}=_0x268f89;this['_handler'][_0x1ac570(0x603)](_0x18b8ee);const _0x4d8519=_0x44eab9[_0x1ac570(0x330)]?this['_injector']['createInstance'](le,this[_0x1ac570(0x505)],this[_0x1ac570(0x1d2)],_0x18b8ee,_0x44eab9,this[_0x1ac570(0x4f6)],void 0x0):this[_0x1ac570(0x58f)]['createInstance'](fe,this[_0x1ac570(0x505)],this[_0x1ac570(0x1d2)],_0x18b8ee,this['_handler']);_0x4d8519['_updateLocalCache'](),this[_0x1ac570(0x4f6)][_0x1ac570(0x3e4)](this,_0x4d8519);},_0x414823);}[_0x37a374(0x5b2)](){const _0x166f47=_0x37a374;var _0x5af257;const _0x506584=this[_0x166f47(0x3e7)][_0x166f47(0x37d)](ne);return(_0x5af257=_0x506584==null?void 0x0:_0x506584[_0x166f47(0x21a)])!=null?_0x5af257:jn;}[_0x37a374(0x282)](){const _0x284869=_0x37a374;throw new Error(_0x284869(0x5b1));}[_0x37a374(0x518)](){const _0x5b9b0c=_0x37a374;this[_0x5b9b0c(0x517)]!=null&&(clearTimeout(this[_0x5b9b0c(0x517)]),this[_0x5b9b0c(0x517)]=null);}[_0x37a374(0x2af)](_0x281c0c){const _0x190e84=_0x37a374;return this['_clearScheduledTask'](),this[_0x190e84(0x58f)][_0x190e84(0x4bb)](ve,this[_0x190e84(0x505)],this[_0x190e84(0x1d2)],null,this['_pendingMutations'],this[_0x190e84(0x4f6)],_0x281c0c);}};ce=ge([N(0x4,a[_0x37a374(0x629)](a['Injector'])),N(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x6,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x7,a[_0x37a374(0x629)](exports[_0x37a374(0x33d)])),N(0x8,a[_0x37a374(0x217)]),N(0x9,a[_0x37a374(0x30c)]),N(0xa,a[_0x37a374(0x30b)]),N(0xb,p[_0x37a374(0x214)]),N(0xc,a[_0x37a374(0x662)]),N(0xd,a['IUndoRedoService'])],ce);let fe=class extends Ie{constructor(_0x599c25,_0x5e1316,_0x223e94,_0x171e9e,_0x1bfae,_0x3c4045,_0x828463,_0x1a319b,_0x1308d2,_0x10c416,_0x564882){const _0x382321=_0x37a374;super(_0x599c25,_0x5e1316,_0x223e94,[],_0x171e9e,_0x1a319b,_0x564882,_0x3c4045,_0x828463),I(this,_0x382321(0x58b),_0x382321(0x489)),I(this,_0x382321(0x388),0x0),I(this,_0x382321(0x3d0)),I(this,'_sender'),(this[_0x382321(0x58f)]=_0x1bfae,this[_0x382321(0x58a)]=_0x1308d2,this[_0x382321(0x541)]=_0x10c416);}['appendMutation'](_0x4d6e85){const _0x266279=_0x37a374;this[_0x266279(0x518)]();const _0x35d39a=this[_0x266279(0x58f)]['createInstance'](le,this[_0x266279(0x505)],this[_0x266279(0x1d2)],this['_awaitingChangeset'],[_0x4d6e85],this['_handler'],this[_0x266279(0x3d0)]);return _0x35d39a[_0x266279(0x408)](),_0x35d39a;}[_0x37a374(0x449)](_0x14eab7){const _0x1c8d50=_0x37a374;if(this['_checkMissing'](_0x14eab7))return this[_0x1c8d50(0x518)](),this[_0x1c8d50(0x58f)][_0x1c8d50(0x4bb)](oe,this[_0x1c8d50(0x505)],this[_0x1c8d50(0x1d2)],this['_awaitingChangeset'],[],null,[_0x14eab7],this[_0x1c8d50(0x4f6)]);try{const _0x234357=this[_0x1c8d50(0x541)][_0x1c8d50(0x666)]([_0x14eab7],[this[_0x1c8d50(0x5b5)]],!0x1);if(p[_0x1c8d50(0x4ea)](_0x234357)){const {c1Prime:_0x250c66,c2Prime:_0x5a205b}=_0x234357;this[_0x1c8d50(0x27e)](_0x250c66[0x0]),_0x5a205b[0x0][_0x1c8d50(0x63a)]=this[_0x1c8d50(0x35c)](),this[_0x1c8d50(0x518)]();const _0x4d285b=this['_injector'][_0x1c8d50(0x4bb)](fe,this[_0x1c8d50(0x505)],this['type'],_0x5a205b[0x0],this['_handler']);return _0x4d285b[_0x1c8d50(0x408)](),_0x4d285b;}return this[_0x1c8d50(0x2af)](!0x1);}catch(_0x1b7a24){return this[_0x1c8d50(0x58a)][_0x1c8d50(0x237)](_0x1b7a24),this[_0x1c8d50(0x2af)](!0x1);}}[_0x37a374(0x333)](_0x107480){const _0x2c8966=_0x37a374;this[_0x2c8966(0x518)]();const _0xf48354=this[_0x2c8966(0x665)][_0x2c8966(0x4b6)](this['unitID']);if(_0x107480['revision']<_0xf48354-0x1)return this;if(this[_0x2c8966(0x255)](_0x107480))return this[_0x2c8966(0x58f)][_0x2c8966(0x4bb)](oe,this[_0x2c8966(0x505)],this[_0x2c8966(0x1d2)],null,[],this[_0x2c8966(0x5b5)],[],this[_0x2c8966(0x4f6)]);this[_0x2c8966(0x285)]();const _0x3f84fd=this[_0x2c8966(0x58f)][_0x2c8966(0x4bb)](ye,this['unitID'],this[_0x2c8966(0x1d2)],this[_0x2c8966(0x4f6)]);return _0x3f84fd['_updateLocalCache'](),_0x3f84fd;}[_0x37a374(0x22e)](_0x10edd4){const _0xf94502=_0x37a374;return this[_0xf94502(0x2af)](!!(_0x10edd4!=null&&_0x10edd4[_0xf94502(0x404)]));}[_0x37a374(0x1ef)](_0x4a6b69){const _0x3afcb2=_0x37a374;return this[_0x3afcb2(0x388)]>fn?this[_0x3afcb2(0x5f0)]():(this[_0x3afcb2(0x3d0)]=dn(this['_resendTimeout'],{'timeout':this[_0x3afcb2(0x388)],'reqId':_0x4a6b69[_0x3afcb2(0x663)]}),this['_sender']=this[_0x3afcb2(0x3d0)][_0x3afcb2(0x274)](({reqId:_0x17390a,timeout:_0x29566b})=>{const _0x55925e=_0x3afcb2;this[_0x55925e(0x557)](_0x17390a,_0x29566b);}),this);}[_0x37a374(0x5f0)](){const _0x57c2e1=_0x37a374;return this[_0x57c2e1(0x518)](),this['_injector'][_0x57c2e1(0x4bb)](me,this[_0x57c2e1(0x505)],this[_0x57c2e1(0x1d2)],this[_0x57c2e1(0x5b5)],[],this[_0x57c2e1(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x24b537=_0x37a374;this[_0x24b537(0x4f6)][_0x24b537(0x603)](this['_awaitingChangeset']);}[_0x37a374(0x2af)](_0x375a34){const _0x2d990c=_0x37a374;return this[_0x2d990c(0x518)](),this[_0x2d990c(0x58f)][_0x2d990c(0x4bb)](ve,this[_0x2d990c(0x505)],this['type'],this[_0x2d990c(0x5b5)],[],this[_0x2d990c(0x4f6)],_0x375a34);}[_0x37a374(0x557)](_0x4ce353,_0x531028){const _0x579aa5=_0x37a374;var _0x443e4d;_0x4ce353===((_0x443e4d=this[_0x579aa5(0x5b5)])==null?void 0x0:_0x443e4d[_0x579aa5(0x663)])&&(this[_0x579aa5(0x282)](),this[_0x579aa5(0x388)]=_0x531028===0x0?0x3e8:_0x531028*0x2);}['_clearScheduledTask'](){const _0x2df7aa=_0x37a374;var _0x5623aa;(_0x5623aa=this[_0x2df7aa(0x208)])==null||_0x5623aa['unsubscribe'](),this[_0x2df7aa(0x388)]=0x0;}};fe=ge([N(0x4,a['Inject'](a[_0x37a374(0x4b7)])),N(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x6,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x217)]),N(0x9,p['ITransformService']),N(0xa,a[_0x37a374(0x3cd)])],fe);let le=class extends Ie{constructor(_0x1768d1,_0xc51e47,_0x472b7f,_0x12232f,_0x4cf125,_0x4ff2f9,_0x5dd173,_0x9cf8b6,_0x3e957e,_0xe5cbca,_0x59997d,_0x3edda9,_0x3192dd){const _0x196a63=_0x37a374;super(_0x1768d1,_0xc51e47,_0x472b7f,_0x12232f,_0x4cf125,_0xe5cbca,_0x3192dd,_0x9cf8b6,_0x3e957e),I(this,_0x196a63(0x58b),'awaiting_with_pending'),I(this,_0x196a63(0x388),0x0),I(this,_0x196a63(0x3d0)),I(this,_0x196a63(0x208)),(this[_0x196a63(0x58f)]=_0x5dd173,this[_0x196a63(0x58a)]=_0x59997d,this['_transformService']=_0x3edda9,_0x4ff2f9&&(this[_0x196a63(0x3d0)]=_0x4ff2f9,this[_0x196a63(0x208)]=this['_resendTimer'][_0x196a63(0x274)](({reqId:_0x4a2f61,timeout:_0x4bb375})=>{const _0x317f97=_0x196a63;this[_0x317f97(0x557)](_0x4a2f61,_0x4bb375);})));}[_0x37a374(0x1e7)](_0x374fa0){return this['_pendingMutations']['push'](_0x374fa0),this;}['onRemoteChangeset'](_0x15abec){const _0x358e3e=_0x37a374;if(this[_0x358e3e(0x255)](_0x15abec))return this[_0x358e3e(0x518)](),this[_0x358e3e(0x58f)][_0x358e3e(0x4bb)](oe,this['unitID'],this[_0x358e3e(0x1d2)],this[_0x358e3e(0x5b5)],this[_0x358e3e(0x405)],null,[_0x15abec],this[_0x358e3e(0x4f6)]);try{const _0x2ac631=this['_transformService']['transformChangesets']([_0x15abec],[this['_awaitingChangeset']],!0x1);if(p['isTransformChangesetsSuccess'](_0x2ac631)){const {c1Prime:_0x3f961a,c2Prime:_0x1f5e68}=_0x2ac631,_0x300a0f=this['_transformService'][_0x358e3e(0x45f)](_0x3f961a[0x0],this[_0x358e3e(0x405)]);if(p[_0x358e3e(0x340)](_0x300a0f)){const {c1Prime:_0x4d99c9,m2Prime:_0x182c51}=_0x300a0f;return this[_0x358e3e(0x27e)](_0x4d99c9),_0x1f5e68[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x358e3e(0x58f)]['createInstance'](le,this['unitID'],this[_0x358e3e(0x1d2)],_0x1f5e68[0x0],_0x182c51,this[_0x358e3e(0x4f6)],void 0x0);}throw _0x300a0f['error'];}throw _0x2ac631[_0x358e3e(0x237)];}catch(_0xd69032){return this[_0x358e3e(0x58a)]['error'](_0xd69032),this[_0x358e3e(0x2af)](!0x1);}}[_0x37a374(0x333)](_0x4e9f37){const _0x40f9c4=_0x37a374;if(this[_0x40f9c4(0x518)](),this[_0x40f9c4(0x255)](_0x4e9f37))return this[_0x40f9c4(0x58f)]['createInstance'](oe,this['unitID'],this[_0x40f9c4(0x1d2)],null,this[_0x40f9c4(0x405)],this['_awaitingChangeset'],[],this[_0x40f9c4(0x4f6)]);this[_0x40f9c4(0x285)]();const _0x37ace6=this[_0x40f9c4(0x58f)]['createInstance'](ce,this[_0x40f9c4(0x505)],this[_0x40f9c4(0x1d2)],this[_0x40f9c4(0x405)],this[_0x40f9c4(0x4f6)]);return _0x37ace6[_0x40f9c4(0x57b)](),_0x37ace6['_updateLocalCache'](),_0x37ace6;}['onRemoteRej'](_0x4cbc72){const _0x458fc5=_0x37a374;return this['_onConflict'](!!(_0x4cbc72!=null&&_0x4cbc72[_0x458fc5(0x404)]));}[_0x37a374(0x1ef)](_0x54e6c8){const _0x10425c=_0x37a374;return this['_resendTimeout']>fn?this[_0x10425c(0x5f0)]():(this[_0x10425c(0x3d0)]=dn(this[_0x10425c(0x388)],{'timeout':this[_0x10425c(0x388)],'reqId':_0x54e6c8[_0x10425c(0x663)]}),this['_sender']=this[_0x10425c(0x3d0)][_0x10425c(0x274)](({reqId:_0x22a615,timeout:_0x5edc49})=>{const _0x21e89c=_0x10425c;this[_0x21e89c(0x557)](_0x22a615,_0x5edc49);}),this);}['toggleOffline'](){const _0x4e3af7=_0x37a374;return this[_0x4e3af7(0x518)](),this[_0x4e3af7(0x58f)][_0x4e3af7(0x4bb)](me,this[_0x4e3af7(0x505)],this[_0x4e3af7(0x1d2)],this[_0x4e3af7(0x5b5)],this[_0x4e3af7(0x405)],this[_0x4e3af7(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x1ee3cd=_0x37a374;this['_handler'][_0x1ee3cd(0x603)](this['_awaitingChangeset']);}['_onConflict'](_0x545f5b){const _0x3e627c=_0x37a374;return this[_0x3e627c(0x518)](),this[_0x3e627c(0x58f)]['createInstance'](ve,this['unitID'],this[_0x3e627c(0x1d2)],null,this['_pendingMutations'],this['_handler'],_0x545f5b);}[_0x37a374(0x557)](_0x561532,_0x2428ef){const _0x306bd3=_0x37a374;var _0x149079;_0x561532===((_0x149079=this['_awaitingChangeset'])==null?void 0x0:_0x149079['reqId'])&&(this['resend'](),this[_0x306bd3(0x388)]=_0x2428ef===0x0?0x3e8:_0x2428ef*0x2);}[_0x37a374(0x518)](){var _0x5d4da3;(_0x5d4da3=this['_sender'])==null||_0x5d4da3['unsubscribe'](),this['_resendTimeout']=0x0;}};le=ge([N(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x7,a[_0x37a374(0x629)](p['RevisionService'])),N(0x8,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x9,a[_0x37a374(0x30c)]),N(0xa,a[_0x37a374(0x217)]),N(0xb,p[_0x37a374(0x214)]),N(0xc,a['IUndoRedoService'])],le);let ve=class extends Ie{constructor(_0x12bf99,_0x45c257,_0x55a50c,_0x578b4b,_0x47480c,_0x4897f6=!0x1,_0x265ab2,_0xd2b26a,_0xfc2b6,_0x4e1713,_0x1aa4c8,_0x1e48df,_0x1b290c){const _0x639081=_0x37a374;super(_0x12bf99,_0x45c257,_0x55a50c,_0x578b4b,_0x47480c,_0xd2b26a,_0xfc2b6,_0x1aa4c8,_0x4e1713),I(this,_0x639081(0x58b),'conflict'),(this[_0x639081(0x299)]=_0x4897f6,this[_0x639081(0x478)]=_0x265ab2,this[_0x639081(0x1c9)]=_0x1e48df,this[_0x639081(0x31a)]=_0x1b290c,this[_0x639081(0x440)](),this[_0x639081(0x613)](),this[_0x639081(0x463)]());}[_0x37a374(0x1e7)](){return this;}[_0x37a374(0x449)](){return this;}[_0x37a374(0x333)](){return this;}[_0x37a374(0x22e)](){return this;}[_0x37a374(0x1ef)](){return this;}['toggleOffline'](){return this;}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x1494a4=_0x37a374;throw new Error(_0x1494a4(0x424));}[_0x37a374(0x613)](){const _0x5a00a1=_0x37a374;this[_0x5a00a1(0x1fd)]['updateOfflineData'](this[_0x5a00a1(0x505)],this[_0x5a00a1(0x1d2)],null,[]);}[_0x37a374(0x440)](){const _0x455ddf=_0x37a374;this['_isPermissionRej']?this[_0x455ddf(0x31a)][_0x455ddf(0x5b9)]({'title':this[_0x455ddf(0x1c9)]['t'](_0x455ddf(0x585)),'content':this[_0x455ddf(0x1c9)]['t']('permission.content'),'type':_0x455ddf(0x237),'duration':0x0}):this[_0x455ddf(0x31a)][_0x455ddf(0x5b9)]({'title':this[_0x455ddf(0x1c9)]['t'](_0x455ddf(0x268)),'content':this[_0x455ddf(0x1c9)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x37a374(0x463)](){const _0x21a1ee=_0x37a374;this[_0x21a1ee(0x478)][_0x21a1ee(0x4d3)](new k[(_0x21a1ee(0x363))](this[_0x21a1ee(0x505)])['id'],!0x1);}};ve=ge([N(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x459)])),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x3cd)]),N(0x9,a['Inject'](exports[_0x37a374(0x27a)])),N(0xa,a['Inject'](p[_0x37a374(0x445)])),N(0xb,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),N(0xc,te[_0x37a374(0x321)])],ve);let me=class extends Ie{constructor(_0x1df9fa,_0x37aa80,_0xf3daa6,_0xb005aa,_0x3e5951,_0x4001d6,_0x536762,_0x298850,_0x493c59,_0x570cde){const _0x38c067=_0x37a374;super(_0x1df9fa,_0x37aa80,_0xf3daa6,_0xb005aa,_0x3e5951,_0x493c59,_0x570cde,_0x536762,_0x298850),I(this,_0x38c067(0x58b),_0x38c067(0x34e)),this[_0x38c067(0x58f)]=_0x4001d6;}[_0x37a374(0x1e7)](_0x125d40){const _0x39ce55=_0x37a374;return this[_0x39ce55(0x405)][_0x39ce55(0x257)](_0x125d40),this[_0x39ce55(0x408)](),this;}[_0x37a374(0x449)](_0x58dccf){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0x4f4a54=_0x37a374;throw new Error(_0x4f4a54(0x313));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){return this;}['toggleOnline'](){const _0x16323f=_0x37a374,{_injector:_0x18bde6,_pendingMutations:_0x77ea4e,_awaitingChangeset:_0x21e51b,unitID:_0x2d514a,_handler:_0x261ec2,type:_0x45306e}=this,_0x19d48b=vn(_0x18bde6,_0x2d514a,_0x45306e,_0x21e51b,_0x77ea4e,_0x261ec2);return _0x19d48b instanceof ce?_0x19d48b[_0x16323f(0x57b)]():(_0x19d48b instanceof le||_0x19d48b instanceof fe)&&_0x19d48b[_0x16323f(0x282)](),_0x19d48b;}[_0x37a374(0x282)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};me=ge([N(0x5,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x6,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x7,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x8,a[_0x37a374(0x30c)]),N(0x9,a[_0x37a374(0x3cd)])],me);let oe=class extends Ie{constructor(_0x1b88f6,_0xbef233,_0xa699a5,_0x3cc48f,_0x598cb4,_0x132bf4,_0x635c12,_0x9c77c9,_0x49a523,_0x297f1a,_0x556fae,_0x286232,_0x3e6243,_0x476df7){const _0xe4dc37=_0x37a374;super(_0x1b88f6,_0xbef233,_0xa699a5,_0x3cc48f,_0x635c12,_0x286232,_0x3e6243,_0x49a523,_0x297f1a),I(this,_0xe4dc37(0x58b),_0xe4dc37(0x1f0)),(this['_acknowledgedAwaitingChangeset']=_0x598cb4,this[_0xe4dc37(0x385)]=_0x132bf4,this[_0xe4dc37(0x58f)]=_0x9c77c9,this[_0xe4dc37(0x58a)]=_0x556fae,this[_0xe4dc37(0x541)]=_0x476df7);}[_0x37a374(0x3b1)](_0x548ec){const _0x51b432=_0x37a374;try{const _0x1b1b2b=[..._0x548ec,...this['_queuedRemoteChangesets']],_0x31469d=[this[_0x51b432(0x5b5)]||this[_0x51b432(0x28e)]][_0x51b432(0x434)](_0x3ed658=>!!_0x3ed658);let _0x4c6638,_0x3318f3;if(_0x31469d[_0x51b432(0x330)]){const _0x35c259=this[_0x51b432(0x541)][_0x51b432(0x666)](_0x1b1b2b,_0x31469d,!0x1);if(!p[_0x51b432(0x4ea)](_0x35c259))throw _0x35c259[_0x51b432(0x237)];_0x4c6638=_0x35c259[_0x51b432(0x3c6)],_0x3318f3=_0x35c259[_0x51b432(0x534)];}else _0x4c6638=_0x1b1b2b,_0x3318f3=[];let _0x1514af=this[_0x51b432(0x405)];_0x4c6638['forEach'](_0x27a59f=>{const _0x48af2f=_0x51b432;let _0x21fc7f;if(_0x1514af[_0x48af2f(0x330)]){const _0xf3c73d=this[_0x48af2f(0x541)]['transformMutationsWithChangeset'](_0x27a59f,_0x1514af);if(!p[_0x48af2f(0x340)](_0xf3c73d))throw _0xf3c73d[_0x48af2f(0x237)];_0x21fc7f=_0xf3c73d['c1Prime'],_0x1514af=_0xf3c73d[_0x48af2f(0x3b2)];}else _0x21fc7f=_0x27a59f;this[_0x48af2f(0x27e)](_0x21fc7f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x51b432(0x285)](),this[_0x51b432(0x5b5)]&&_0x3318f3[_0x51b432(0x330)]&&(_0x3318f3[0x0]['baseRev']=this[_0x51b432(0x35c)]());let _0x5cbe05;if(this[_0x51b432(0x5b5)]&&_0x1514af[_0x51b432(0x330)]!==0x0)_0x5cbe05=this[_0x51b432(0x58f)][_0x51b432(0x4bb)](le,this['unitID'],this[_0x51b432(0x1d2)],_0x3318f3[0x0],_0x1514af,this[_0x51b432(0x4f6)],void 0x0);else{if(this[_0x51b432(0x5b5)]&&_0x1514af['length']===0x0)_0x3318f3[0x0][_0x51b432(0x63a)]=this[_0x51b432(0x35c)](),_0x5cbe05=this['_injector'][_0x51b432(0x4bb)](fe,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],_0x3318f3[0x0],this[_0x51b432(0x4f6)]);else{if(_0x1514af[_0x51b432(0x330)]!==0x0){const _0x504ef6=this[_0x51b432(0x58f)][_0x51b432(0x4bb)](ce,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],_0x1514af,this[_0x51b432(0x4f6)]);_0x504ef6[_0x51b432(0x57b)](),_0x5cbe05=_0x504ef6;}else _0x5cbe05=this[_0x51b432(0x58f)]['createInstance'](ye,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],this[_0x51b432(0x4f6)]);}}return _0x5cbe05[_0x51b432(0x408)](),_0x5cbe05;}catch(_0x3828dd){return this[_0x51b432(0x58a)]['error'](_0x51b432(0x1de),_0x51b432(0x2ea),_0x3828dd),this[_0x51b432(0x58f)][_0x51b432(0x4bb)](ve,this['unitID'],this['type'],this[_0x51b432(0x5b5)],this[_0x51b432(0x405)],this[_0x51b432(0x4f6)],!0x1);}}[_0x37a374(0x282)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x37a374(0x1e7)](_0x1f3c11){const _0x43c4f4=_0x37a374;return this[_0x43c4f4(0x405)][_0x43c4f4(0x257)](_0x1f3c11),this;}['onRemoteChangeset'](_0x2a7ac4){const _0x27cb42=_0x37a374;return this[_0x27cb42(0x385)][_0x27cb42(0x257)](_0x2a7ac4),this;}['onRemoteAck'](_0x1cd52a){const _0x29a57a=_0x37a374;if(this[_0x29a57a(0x5b5)])return this[_0x29a57a(0x28e)]=this[_0x29a57a(0x5b5)],this[_0x29a57a(0x5b5)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x37a374(0x22e)](_0x39e1af){const _0x1ae7a7=_0x37a374;return this[_0x1ae7a7(0x2af)](!!(_0x39e1af!=null&&_0x39e1af[_0x1ae7a7(0x404)]));}['onRemoteRetry'](){return this;}[_0x37a374(0x5f0)](){const _0x5bbbe6=_0x37a374;return this['_injector'][_0x5bbbe6(0x4bb)](me,this[_0x5bbbe6(0x505)],this[_0x5bbbe6(0x1d2)],this[_0x5bbbe6(0x5b5)],this['_pendingMutations'],this[_0x5bbbe6(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x2af)](_0x49ce94){const _0x522d18=_0x37a374;return this[_0x522d18(0x58f)]['createInstance'](ve,this[_0x522d18(0x505)],this['type'],this[_0x522d18(0x5b5)],this[_0x522d18(0x405)],this[_0x522d18(0x4f6)],_0x49ce94);}};oe=ge([N(0x7,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x8,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x9,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0xa,a['ILogService']),N(0xb,a[_0x37a374(0x30c)]),N(0xc,a['IUndoRedoService']),N(0xd,p['ITransformService'])],oe);function vn(_0x2b7a83,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x9d3e2e,_0x16e3b5){const _0xb21768=_0x37a374;return _0x2cd1fc&&_0x9d3e2e[_0xb21768(0x330)]?_0x2b7a83[_0xb21768(0x4bb)](le,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x9d3e2e,_0x16e3b5,void 0x0):_0x2cd1fc?_0x2b7a83[_0xb21768(0x4bb)](fe,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x16e3b5):_0x9d3e2e[_0xb21768(0x330)]?_0x2b7a83[_0xb21768(0x4bb)](ce,_0x4eab64,_0x512bdb,_0x9d3e2e,_0x16e3b5):_0x2b7a83[_0xb21768(0x4bb)](ye,_0x4eab64,_0x512bdb,_0x16e3b5);}var $i=Object[_0x37a374(0x55e)],ji=Object[_0x37a374(0x4a5)],Rt=(_0x3e1fa2,_0x402542,_0x18b4c0,_0x2d4b9b)=>{const _0x4b38c2=_0x37a374;for(var _0x4255d0=_0x2d4b9b>0x1?void 0x0:_0x2d4b9b?ji(_0x402542,_0x18b4c0):_0x402542,_0x115d3c=_0x3e1fa2[_0x4b38c2(0x330)]-0x1,_0x53066f;_0x115d3c>=0x0;_0x115d3c--)(_0x53066f=_0x3e1fa2[_0x115d3c])&&(_0x4255d0=(_0x2d4b9b?_0x53066f(_0x402542,_0x18b4c0,_0x4255d0):_0x53066f(_0x4255d0))||_0x4255d0);return _0x2d4b9b&&_0x4255d0&&$i(_0x402542,_0x18b4c0,_0x4255d0),_0x4255d0;},H=(_0x1e635b,_0x4f7371)=>(_0x2354cd,_0x41ff79)=>_0x4f7371(_0x2354cd,_0x41ff79,_0x1e635b);exports[_0x37a374(0x4c6)]=class extends a[_0x37a374(0x2f7)]{constructor(_0x149ca4,_0x342399,_0x39c667,_0x5a1524,_0x4bf99d,_0x13fe40,_0x78469f,_0x1bf878,_0x553c46,_0x598335,_0x461d18,_0x4fd497,_0x488747){const _0x40e85b=_0x37a374;super(),I(this,_0x40e85b(0x36f),new A[(_0x40e85b(0x441))](null)),I(this,'state$',this[_0x40e85b(0x36f)][_0x40e85b(0x483)]()),I(this,_0x40e85b(0x524)),I(this,_0x40e85b(0x5e4),!0x1),I(this,'_changesetSessionId',''),I(this,_0x40e85b(0x3f9),0x0),I(this,_0x40e85b(0x238),this[_0x40e85b(0x32a)][_0x40e85b(0x4d7)](A[_0x40e85b(0x323)](_0x27fbe7=>_0x27fbe7?_0x27fbe7[_0x40e85b(0x58b)]:q[_0x40e85b(0x320)]),A[_0x40e85b(0x3ae)](0x1))),I(this,_0x40e85b(0x2fe),!0x1),I(this,_0x40e85b(0x3f2),[]),(this[_0x40e85b(0x505)]=_0x149ca4,this[_0x40e85b(0x2bb)]=_0x342399,this[_0x40e85b(0x52c)]=_0x39c667,this[_0x40e85b(0x58f)]=_0x5a1524,this[_0x40e85b(0x1fd)]=_0x4bf99d,this['_compressMutationService']=_0x13fe40,this[_0x40e85b(0x1c9)]=_0x78469f,this[_0x40e85b(0x665)]=_0x1bf878,this['_logService']=_0x553c46,this[_0x40e85b(0x48f)]=_0x598335,this[_0x40e85b(0x5cd)]=_0x461d18,this[_0x40e85b(0x478)]=_0x4fd497,this[_0x40e85b(0x2f2)]=_0x488747);}get[_0x37a374(0x620)](){const _0x321c5f=_0x37a374;return this[_0x321c5f(0x524)];}async[_0x37a374(0x5ca)](){const _0x34271a=_0x37a374;if(this[_0x34271a(0x620)])throw new Error(_0x34271a(0x3ec));await this[_0x34271a(0x3c3)]();}[_0x37a374(0x52d)](){const _0x15ae7a=_0x37a374;return this[_0x15ae7a(0x5e4)]=!0x0,a[_0x15ae7a(0x219)](()=>{const _0xc1759c=_0x15ae7a;this[_0xc1759c(0x5e4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x37a374(0x234)](_0x259ca3){const _0x478d99=_0x37a374;this[_0x478d99(0x524)]=_0x259ca3,this[_0x478d99(0x36f)][_0x478d99(0x24e)](_0x259ca3);}async[_0x37a374(0x3c3)](){const _0x482c6f=_0x37a374;var _0x331a8f;this[_0x482c6f(0x234)](await this[_0x482c6f(0x435)]()),this[_0x482c6f(0x2f2)]&&((_0x331a8f=this[_0x482c6f(0x2f2)])==null||_0x331a8f[_0x482c6f(0x500)](this[_0x482c6f(0x505)]),this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2f2)][_0x482c6f(0x468)](this[_0x482c6f(0x505)])['subscribe'](_0x54471f=>{const _0x400e69=_0x482c6f;this[_0x400e69(0x58a)]['debug'](_0x400e69(0x53c),'editing\x20status\x20changed\x20to',_0x54471f),_0x54471f===_n[_0x400e69(0x357)]?(this['_messageService'][_0x400e69(0x5b9)]({'content':this[_0x400e69(0x1c9)]['t']('collaboration.single-unit.warning'),'type':Se[_0x400e69(0x4c0)][_0x400e69(0x54d)]}),this[_0x400e69(0x478)][_0x400e69(0x4d3)](new k[(_0x400e69(0x363))](this[_0x400e69(0x505)])['id'],!0x1),this[_0x400e69(0x478)][_0x400e69(0x30e)](!0x1)):(this[_0x400e69(0x478)][_0x400e69(0x4d3)](new k[(_0x400e69(0x363))](this[_0x400e69(0x505)])['id'],!0x0),this[_0x400e69(0x478)]['setShowComponents'](!0x0));})));let _0xa1aa9e=!0x1;return this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2bb)][_0x482c6f(0x444)]['subscribe'](_0x59ae9c=>{const _0x2c0158=_0x482c6f;_0x59ae9c===re[_0x2c0158(0x1e9)]?this[_0x2c0158(0x5d3)](_0xa1aa9e):_0x59ae9c===re[_0x2c0158(0x320)]&&(_0xa1aa9e=!0x0,this['_toggleOffline']());})),this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2bb)][_0x482c6f(0x5cc)][_0x482c6f(0x274)](_0x226ade=>{const _0x37a6ff=_0x482c6f;try{switch(_0x226ade[_0x37a6ff(0x1d7)]){case p[_0x37a6ff(0x521)]['NEW_CHANGESETS']:{this[_0x37a6ff(0x2cc)](p[_0x37a6ff(0x266)](_0x226ade['data']));break;}case p['CollaborationEvent']['CHANGESET_ACK']:{this[_0x37a6ff(0x35b)](_0x226ade[_0x37a6ff(0x470)]);break;}case p[_0x37a6ff(0x521)][_0x37a6ff(0x466)]:{this[_0x37a6ff(0x42e)]();break;}case p['CollaborationEvent'][_0x37a6ff(0x24f)]:{this[_0x37a6ff(0x57f)](_0x226ade[_0x37a6ff(0x470)]);break;}case p['CollaborationEvent'][_0x37a6ff(0x4af)]:{this['_onFetchMissResult'](_0x226ade[_0x37a6ff(0x470)]['changesets'][_0x37a6ff(0x323)](_0x1bc890=>p[_0x37a6ff(0x266)](_0x1bc890)));break;}case p['CollaborationEvent']['PERMISSION_REJ']:this[_0x37a6ff(0x42e)]({'isPermissionRej':!0x0});}}catch(_0x2405c7){throw console[_0x37a6ff(0x237)](_0x37a6ff(0x40c),_0x2405c7),_0x2405c7;}})),this[_0x482c6f(0x524)];}[_0x37a374(0x569)](){const _0x59c7c8=_0x37a374;this[_0x59c7c8(0x2fe)]=!0x1;}[_0x37a374(0x350)](){const _0x123532=_0x37a374;if(this[_0x123532(0x2fe)])throw new Error(_0x123532(0x586));this[_0x123532(0x2fe)]=!0x0;}[_0x37a374(0x495)](_0x76eb32){const _0x2783c8=_0x37a374;this[_0x2783c8(0x350)](),this[_0x2783c8(0x234)](this[_0x2783c8(0x524)][_0x2783c8(0x1e7)](_0x76eb32)),this['_unlockTransition']();}[_0x37a374(0x2cc)](_0x3a6f88){const _0x1754b8=_0x37a374;if(!(_0x3a6f88[_0x1754b8(0x546)]<=this[_0x1754b8(0x665)][_0x1754b8(0x4b6)](this['unitID']))){if(this[_0x1754b8(0x5e4)]){this['_remoteChangesetQueue'][_0x1754b8(0x257)](_0x3a6f88);return;}this[_0x1754b8(0x3bd)](_0x3a6f88);}}['_exhaustRemoteChangesetQueue'](){const _0x3c4624=_0x37a374;this[_0x3c4624(0x3f2)][_0x3c4624(0x278)](_0x323068=>this[_0x3c4624(0x3bd)](_0x323068)),this[_0x3c4624(0x3f2)]=[];}['_applyRemoteChangeset'](_0x1e0168){const _0x46b928=_0x37a374,_0xef8e10=this[_0x46b928(0x3b4)]['interceptor'][_0x46b928(0x503)](this[_0x46b928(0x3b4)][_0x46b928(0x62d)][_0x46b928(0x3ca)]()[_0x46b928(0x207)])(_0x1e0168[_0x46b928(0x579)],null)||_0x1e0168['mutations'],_0x13f058={..._0x1e0168,'mutations':_0xef8e10};this[_0x46b928(0x350)](),this[_0x46b928(0x234)](this[_0x46b928(0x524)][_0x46b928(0x449)](_0x13f058)),this[_0x46b928(0x569)]();}[_0x37a374(0x35b)](_0x438f64){const _0x5b2f41=_0x37a374;this[_0x5b2f41(0x350)](),this[_0x5b2f41(0x234)](this[_0x5b2f41(0x524)][_0x5b2f41(0x333)](_0x438f64)),this['_unlockTransition']();}[_0x37a374(0x42e)](_0x29092a){const _0x30afc1=_0x37a374;this[_0x30afc1(0x350)](),this[_0x30afc1(0x234)](this['_state']['onRemoteRej'](_0x29092a)),this[_0x30afc1(0x569)]();}[_0x37a374(0x57f)](_0x62b3cb){const _0x2b38b3=_0x37a374;this[_0x2b38b3(0x350)](),this[_0x2b38b3(0x234)](this['_state'][_0x2b38b3(0x1ef)](_0x62b3cb)),this[_0x2b38b3(0x569)]();}['_onFetchMissResult'](_0x51134e){const _0x1dbc33=_0x37a374;if(!(this['_state']instanceof oe))throw new TypeError(_0x1dbc33(0x577));const _0x103670=_0x51134e['map'](_0xfbcc0=>{const _0x1fee43=_0x1dbc33,_0x5a4c0e=this[_0x1fee43(0x3b4)]['interceptor'][_0x1fee43(0x503)](this[_0x1fee43(0x3b4)][_0x1fee43(0x62d)][_0x1fee43(0x3ca)]()['COMPRESS_MUTATION_APPLY'])(_0xfbcc0['mutations'],null)||_0xfbcc0['mutations'];return{..._0xfbcc0,'mutations':_0x5a4c0e};});this['_lockTransition'](),this[_0x1dbc33(0x234)](this[_0x1dbc33(0x524)][_0x1dbc33(0x3b1)](_0x103670)),this[_0x1dbc33(0x569)]();}[_0x37a374(0x406)](){const _0x3c9288=_0x37a374;this[_0x3c9288(0x350)](),this[_0x3c9288(0x234)](this[_0x3c9288(0x524)][_0x3c9288(0x5f0)]()),this[_0x3c9288(0x569)]();}[_0x37a374(0x5d3)](_0x17d4dc=!0x1){const _0x177524=_0x37a374;this[_0x177524(0x350)](),this[_0x177524(0x234)](this[_0x177524(0x524)][_0x177524(0x4a8)]()),this[_0x177524(0x569)]();const _0x3d3323=this[_0x177524(0x524)];_0x17d4dc&&_0x3d3323 instanceof ye&&(this['_lockTransition'](),this[_0x177524(0x234)](_0x3d3323[_0x177524(0x354)]()),this[_0x177524(0x569)]());}async['_createInitialState'](){return new Promise(_0x4f16b9=>{const _0x379dce=_0x513c;this[_0x379dce(0x2bb)]['sessionStatus$'][_0x379dce(0x4d7)](A[_0x379dce(0x630)](0x1))[_0x379dce(0x274)](async _0x2e5c82=>{const _0x255a13=_0x379dce;_0x4f16b9(await this[_0x255a13(0x56c)](_0x2e5c82===re[_0x255a13(0x1e9)]));});});}[_0x37a374(0x622)](){const _0x42f781=_0x37a374,_0x5f4681=this[_0x42f781(0x505)];return{'onStateChange':(_0x4370af,_0x567143)=>{const _0x308cec=_0x42f781;if(_0x4370af!==this[_0x308cec(0x524)])throw new Error(_0x308cec(0x38a)+_0x4370af[_0x308cec(0x58b)]+_0x308cec(0x377)+_0x567143[_0x308cec(0x58b)]+_0x308cec(0x680)+this[_0x308cec(0x524)][_0x308cec(0x58b)]);this[_0x308cec(0x234)](_0x567143);},'onSendChangeset':_0x57555b=>{const _0x59e1e8=_0x42f781;_0x57555b['sid']||(_0x57555b[_0x59e1e8(0x236)]=this[_0x59e1e8(0x1fe)],_0x57555b[_0x59e1e8(0x663)]=++this['_changesetReqId']);const _0xe8c83f={'eventID':p[_0x59e1e8(0x521)][_0x59e1e8(0x380)],'data':{'unitID':_0x57555b['unitID'],'unitType':this[_0x59e1e8(0x52c)],'changeset':_0x57555b,'memberID':this['session'][_0x59e1e8(0x485)]()}};this[_0x59e1e8(0x2bb)][_0x59e1e8(0x554)](_0xe8c83f,this[_0x59e1e8(0x505)]);},'onMissingChangesets':({from:_0x17d737,to:_0x4552e7})=>{const _0x2352a9=_0x42f781;this[_0x2352a9(0x58a)][_0x2352a9(0x643)](_0x2352a9(0x53c),_0x2352a9(0x411)+_0x17d737+_0x2352a9(0x2ef)+_0x4552e7);const _0x4e292c={'eventID':p['CollaborationEvent'][_0x2352a9(0x3e8)],'data':{'unitID':_0x5f4681,'unitType':this[_0x2352a9(0x52c)],'from':_0x17d737,'to':_0x4552e7}};this[_0x2352a9(0x2bb)][_0x2352a9(0x554)](_0x4e292c,this[_0x2352a9(0x505)]);}};}async[_0x37a374(0x56c)](_0x3dabd7){const _0x25d6d7=_0x37a374;var _0x18ad64,_0x56b429;const _0xee46ea=await this[_0x25d6d7(0x1fd)][_0x25d6d7(0x3b8)](this[_0x25d6d7(0x505)]),_0x4ef77d=(_0x18ad64=_0xee46ea==null?void 0x0:_0xee46ea[_0x25d6d7(0x579)])!=null?_0x18ad64:[],_0x4cc3b8=(_0x56b429=_0xee46ea==null?void 0x0:_0xee46ea[_0x25d6d7(0x1fb)])!=null?_0x56b429:null,_0x5b2dee=!!(_0x4cc3b8!=null&&_0x4cc3b8[_0x25d6d7(0x236)])&&!!(_0x4cc3b8!=null&&_0x4cc3b8[_0x25d6d7(0x663)]);this[_0x25d6d7(0x1fe)]=_0x5b2dee?_0x4cc3b8['sid']:di(),this[_0x25d6d7(0x3f9)]=_0x5b2dee?_0x4cc3b8[_0x25d6d7(0x663)]:0x0;const _0x728219=this[_0x25d6d7(0x505)];try{this['_replayCachedMutations'](_0x4cc3b8,_0x4ef77d);}catch(_0x666ab0){this[_0x25d6d7(0x58a)][_0x25d6d7(0x237)](_0x666ab0);}const _0x2a3d17=this[_0x25d6d7(0x622)]();if(_0x3dabd7){const _0x21542d=vn(this[_0x25d6d7(0x58f)],_0x728219,this[_0x25d6d7(0x52c)],_0x4cc3b8,_0x4ef77d,_0x2a3d17);return _0x21542d instanceof ce?_0x21542d[_0x25d6d7(0x57b)]():(_0x21542d instanceof le||_0x21542d instanceof fe)&&_0x21542d[_0x25d6d7(0x282)](),_0x21542d;}return this[_0x25d6d7(0x58f)][_0x25d6d7(0x4bb)](me,_0x728219,this[_0x25d6d7(0x52c)],_0x4cc3b8,_0x4ef77d,_0x2a3d17);}['_replayCachedMutations'](_0xd24bf6,_0x1826f1){const _0x203725=_0x37a374;var _0x4ce6dc,_0x10f8bd;const _0x17dd7a=this['_compressMutationService'][_0x203725(0x62d)]['fetchThroughInterceptors'](this[_0x203725(0x3b4)][_0x203725(0x62d)][_0x203725(0x3ca)]()['COMPRESS_MUTATION_APPLY']);(_0x4ce6dc=_0x17dd7a((_0xd24bf6==null?void 0x0:_0xd24bf6[_0x203725(0x579)])||[],null))==null||_0x4ce6dc[_0x203725(0x278)](_0x26ef07=>this[_0x203725(0x48f)][_0x203725(0x50d)](_0x26ef07['id'],_0x26ef07[_0x203725(0x39d)])),(_0x10f8bd=_0x17dd7a(_0x1826f1||[],null))==null||_0x10f8bd[_0x203725(0x278)](_0x2e1902=>this[_0x203725(0x48f)][_0x203725(0x50d)](_0x2e1902['id'],_0x2e1902['params']));}},exports[_0x37a374(0x4c6)]=Rt([H(0x3,a[_0x37a374(0x629)](a['Injector'])),H(0x4,a['Inject'](exports['LocalCacheService'])),H(0x5,a[_0x37a374(0x629)](p['CompressMutationService'])),H(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),H(0x7,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),H(0x8,a[_0x37a374(0x217)]),H(0x9,a['ICommandService']),H(0xa,te['IMessageService']),H(0xb,a[_0x37a374(0x459)]),H(0xc,a[_0x37a374(0x673)](qe))],exports[_0x37a374(0x4c6)]),exports[_0x37a374(0x1ce)]=class extends exports[_0x37a374(0x4c6)]{constructor(_0x1afd70,_0x4b5373,_0x2ac808,_0x2c41a2,_0x2d19ad,_0x504885,_0x2b16b2,_0x2a1ba4,_0x55c422,_0x457a7c,_0x2c4850,_0x323768,_0x44fee2,_0x5cfbc5,_0x529df4,_0x168507,_0x3d912a,_0x1b0bbd){const _0x3002b8=_0x37a374;super(_0x1afd70,_0x2ac808,_0x4b5373,_0x2c41a2,_0x2d19ad,_0x504885,_0x2b16b2,_0x2a1ba4,_0x5cfbc5,_0x529df4,_0x168507,_0x3d912a,_0x1b0bbd),this[_0x3002b8(0x505)]=_0x1afd70,this[_0x3002b8(0x1d2)]=_0x4b5373,this[_0x3002b8(0x509)]=_0x55c422,this[_0x3002b8(0x670)]=_0x457a7c,this[_0x3002b8(0x324)]=_0x2c4850,this['_docTransformSelectionsService']=_0x323768,this[_0x3002b8(0x227)]=_0x44fee2;}[_0x37a374(0x622)](){const _0x1a709b=_0x37a374,_0x184e56=super[_0x1a709b(0x622)]();return _0x184e56['onTransformIME']=_0x110090=>this[_0x1a709b(0x670)][_0x1a709b(0x270)](_0x110090),_0x184e56[_0x1a709b(0x590)]=_0x19685b=>this[_0x1a709b(0x324)][_0x1a709b(0x232)](_0x19685b),_0x184e56['onTransformSelections']=_0x1c30ec=>this[_0x1a709b(0x499)][_0x1a709b(0x3c8)](_0x1c30ec),_0x184e56['onSyncEditingCollabCursor']=_0x6b6982=>this[_0x1a709b(0x227)][_0x1a709b(0x2e9)](_0x6b6982),_0x184e56[_0x1a709b(0x1d6)]=_0x13fcce=>this[_0x1a709b(0x670)][_0x1a709b(0x53d)](_0x13fcce),_0x184e56[_0x1a709b(0x454)]=_0x344946=>this['_docTransformStateCacheService'][_0x1a709b(0x53d)](_0x344946),_0x184e56;}async['_init'](){const _0xaafae1=_0x37a374,_0x88f08e=await super['_init']();return this[_0xaafae1(0x509)][_0xaafae1(0x5a8)][_0xaafae1(0x4d7)](A[_0xaafae1(0x27d)](this[_0xaafae1(0x574)]))['subscribe'](_0x75121f=>{const _0x531651=_0xaafae1;if(_0x75121f==null)return;const {unitId:_0x1340fc,redoState:_0x4a6a61,commandId:_0x193384}=_0x75121f;if(_0x1340fc!==this[_0x531651(0x505)])return;const _0xe0586f={'id':_0x193384,'type':a[_0x531651(0x667)][_0x531651(0x317)],'params':{'unitId':_0x1340fc,'actions':_0x4a6a61[_0x531651(0x3b6)],'textRanges':null}};this[_0x531651(0x495)](_0xe0586f);}),_0x88f08e;}},exports[_0x37a374(0x1ce)]=Rt([H(0x3,a['Inject'](a['Injector'])),H(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),H(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x5e1)])),H(0x6,a['Inject'](a[_0x37a374(0x52f)])),H(0x7,a[_0x37a374(0x629)](p['RevisionService'])),H(0x8,a[_0x37a374(0x629)](Z[_0x37a374(0x36e)])),H(0x9,a['Inject'](Be)),H(0xa,a[_0x37a374(0x629)](We)),H(0xb,a['Inject'](Fe)),H(0xc,a[_0x37a374(0x629)](Tt)),H(0xd,a['ILogService']),H(0xe,a[_0x37a374(0x30c)]),H(0xf,te[_0x37a374(0x3bf)]),H(0x10,a['IPermissionService']),H(0x11,a[_0x37a374(0x673)](qe))],exports[_0x37a374(0x1ce)]),exports[_0x37a374(0x352)]=class extends exports[_0x37a374(0x4c6)]{constructor(_0x2d9a04,_0xe22a2a,_0x4c9bcc,_0x36747e,_0x4535ac,_0x1d4b3b,_0x26c617,_0x6b7c71,_0x1dc266,_0x3422ee,_0x1cc597,_0x22938b,_0x3dd47b,_0xd62b2f){const _0x47bc95=_0x37a374;super(_0x2d9a04,_0x4c9bcc,_0xe22a2a,_0x36747e,_0x4535ac,_0x1d4b3b,_0x26c617,_0x6b7c71,_0x3422ee,_0x1cc597,_0x22938b,_0x3dd47b,_0xd62b2f),this[_0x47bc95(0x505)]=_0x2d9a04,this[_0x47bc95(0x1d2)]=_0xe22a2a,this[_0x47bc95(0x346)]=_0x1dc266;}['_createHandler'](){const _0x4c3715=_0x37a374,_0x193b67=super[_0x4c3715(0x622)]();return _0x193b67[_0x4c3715(0x42f)]=_0x21736d=>this['_sheetTransformSelectionsService'][_0x4c3715(0x3c8)](_0x21736d),_0x193b67;}async[_0x37a374(0x3c3)](){const _0x1344fe=_0x37a374,_0x4bada7=await super[_0x1344fe(0x3c3)]();return this[_0x1344fe(0x4d6)](this[_0x1344fe(0x48f)]['onCommandExecuted']((_0x1a5ef8,_0x2d99c3)=>{const _0x206970=_0x1344fe;if(_0x1a5ef8[_0x206970(0x1d2)]!==a[_0x206970(0x667)][_0x206970(0x317)]||_0x2d99c3!=null&&_0x2d99c3[_0x206970(0x20b)]||_0x2d99c3!=null&&_0x2d99c3[_0x206970(0x64a)])return;const _0x59a49c=_0x1a5ef8[_0x206970(0x39d)];if((_0x59a49c==null?void 0x0:_0x59a49c[_0x206970(0x36d)])!==this[_0x206970(0x505)])return;const _0x3b720d=_0x1a5ef8,_0x1bf9c0=this['_compressMutationService'][_0x206970(0x62d)][_0x206970(0x503)](this['_compressMutationService'][_0x206970(0x62d)][_0x206970(0x3ca)]()[_0x206970(0x312)])([_0x3b720d],null)||[_0x3b720d];this[_0x206970(0x495)](_0x1bf9c0[0x0]);})),_0x4bada7;}},exports['SheetCollaborationEntity']=Rt([H(0x3,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),H(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),H(0x5,a[_0x37a374(0x629)](p['CompressMutationService'])),H(0x6,a[_0x37a374(0x629)](a['LocaleService'])),H(0x7,a[_0x37a374(0x629)](p['RevisionService'])),H(0x8,a['Inject'](ke)),H(0x9,a[_0x37a374(0x217)]),H(0xa,a['ICommandService']),H(0xb,te[_0x37a374(0x3bf)]),H(0xc,a[_0x37a374(0x459)]),H(0xd,a[_0x37a374(0x673)](qe))],exports['SheetCollaborationEntity']);var Hi=Object[_0x37a374(0x55e)],Bi=Object[_0x37a374(0x4a5)],ki=(_0x3a236f,_0x485a5b,_0x3c7801,_0x189a10)=>{const _0x3bdad7=_0x37a374;for(var _0x165fe5=_0x189a10>0x1?void 0x0:_0x189a10?Bi(_0x485a5b,_0x3c7801):_0x485a5b,_0x5eb7a8=_0x3a236f[_0x3bdad7(0x330)]-0x1,_0x6f0a67;_0x5eb7a8>=0x0;_0x5eb7a8--)(_0x6f0a67=_0x3a236f[_0x5eb7a8])&&(_0x165fe5=(_0x189a10?_0x6f0a67(_0x485a5b,_0x3c7801,_0x165fe5):_0x6f0a67(_0x165fe5))||_0x165fe5);return _0x189a10&&_0x165fe5&&Hi(_0x485a5b,_0x3c7801,_0x165fe5),_0x165fe5;},et=(_0x2581c8,_0x57b1ee)=>(_0x21f5af,_0x1fa01c)=>_0x57b1ee(_0x21f5af,_0x1fa01c,_0x2581c8);exports[_0x37a374(0x511)]=class extends a[_0x37a374(0x2f7)]{constructor(_0x394f8,_0x331e04,_0x2cedb3){const _0xc434d7=_0x37a374;super(),I(this,_0xc434d7(0x529),new Map()),I(this,_0xc434d7(0x664),new A[(_0xc434d7(0x383))]()),(this[_0xc434d7(0x58f)]=_0x394f8,this[_0xc434d7(0x5c9)]=_0x331e04,this[_0xc434d7(0x1d4)]=_0x2cedb3,this[_0xc434d7(0x3c3)]());}[_0x37a374(0x37c)](){const _0xacc96c=_0x37a374;super['dispose'](),this[_0xacc96c(0x529)][_0xacc96c(0x278)](_0x4dd68b=>_0x4dd68b[_0xacc96c(0x37c)]()),this[_0xacc96c(0x529)][_0xacc96c(0x65a)]();}[_0x37a374(0x22b)](_0x229424){const _0x39f3d3=_0x37a374;var _0x1df92e;return(_0x1df92e=this[_0x39f3d3(0x529)][_0x39f3d3(0x5bf)](_0x229424))!=null?_0x1df92e:null;}[_0x37a374(0x5ce)](_0x23f443){const _0x555204=_0x37a374,_0x443bc5=this[_0x555204(0x22b)](_0x23f443);return _0x443bc5?A['of'](_0x443bc5):this[_0x555204(0x664)][_0x555204(0x4d7)](V[_0x555204(0x434)](_0x3af32e=>_0x3af32e[_0x555204(0x505)]===_0x23f443));}[_0x37a374(0x3c3)](){const _0x4858d2=_0x37a374;this[_0x4858d2(0x1d4)][_0x4858d2(0x442)](a[_0x4858d2(0x22d)]['UNIVER_SHEET'])[_0x4858d2(0x4d7)](A['takeUntil'](this[_0x4858d2(0x574)]),V[_0x4858d2(0x438)](0x10))[_0x4858d2(0x274)](async _0x18e388=>{const _0x3bdb76=_0x4858d2,_0x5863e3=_0x18e388[_0x3bdb76(0x615)](),_0x2deeab=await this[_0x3bdb76(0x42a)](_0x5863e3,se[_0x3bdb76(0x362)]);this['_entities'][_0x3bdb76(0x5d1)](_0x5863e3,_0x2deeab);}),this[_0x4858d2(0x1d4)][_0x4858d2(0x442)](a['UniverInstanceType'][_0x4858d2(0x619)])[_0x4858d2(0x4d7)](A[_0x4858d2(0x27d)](this[_0x4858d2(0x574)]),V[_0x4858d2(0x438)](0x10))[_0x4858d2(0x4d7)](V[_0x4858d2(0x434)](_0x4ec177=>!_0x4ec177[_0x4858d2(0x615)]()[_0x4858d2(0x3b5)]('__')))[_0x4858d2(0x274)](async _0x19e33f=>{const _0x5c72e0=_0x4858d2,_0xf7d879=_0x19e33f['getUnitId'](),_0x3f83e5=await this[_0x5c72e0(0x42a)](_0xf7d879,se['UNIVER_DOC']);this[_0x5c72e0(0x529)][_0x5c72e0(0x5d1)](_0xf7d879,_0x3f83e5);}),A['merge'](this[_0x4858d2(0x1d4)][_0x4858d2(0x44a)](a[_0x4858d2(0x22d)][_0x4858d2(0x362)]),this[_0x4858d2(0x1d4)][_0x4858d2(0x44a)](a[_0x4858d2(0x22d)][_0x4858d2(0x619)]))['pipe'](A[_0x4858d2(0x27d)](this['dispose$']))[_0x4858d2(0x274)](_0x412578=>{const _0x425359=_0x4858d2,_0x56801f=_0x412578[_0x425359(0x615)](),_0x5f44a8=this[_0x425359(0x529)]['get'](_0x56801f);_0x5f44a8&&(_0x5f44a8[_0x425359(0x37c)](),this[_0x425359(0x529)][_0x425359(0x412)](_0x56801f));});}async[_0x37a374(0x42a)](_0x538e96,_0x349850){const _0x380280=_0x37a374,_0x5c9d16=await this[_0x380280(0x5c9)][_0x380280(0x501)](_0x538e96),_0x207228=this[_0x380280(0x58f)][_0x380280(0x4bb)](this[_0x380280(0x4ff)](_0x349850),_0x538e96,_0x349850,_0x5c9d16);return await _0x207228[_0x380280(0x5ca)](),this['_entityInit$']['next'](_0x207228),_0x207228;}['_getCtorByUniverType'](_0x40f54b){const _0x434a9d=_0x37a374;switch(_0x40f54b){case se[_0x434a9d(0x619)]:return exports[_0x434a9d(0x1ce)];case se['UNIVER_SHEET']:return exports[_0x434a9d(0x352)];default:throw new Error(_0x434a9d(0x5d5)+_0x40f54b);}}},exports[_0x37a374(0x511)]=ki([et(0x0,a['Inject'](a['Injector'])),et(0x1,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)])),et(0x2,a['IUniverInstanceService'])],exports[_0x37a374(0x511)]);const $t=[_0x37a374(0x2bd),_0x37a374(0x61e),_0x37a374(0x2c6),_0x37a374(0x4fa),_0x37a374(0x3fe),'gold400'];class yt extends a[_0x37a374(0x65c)]{constructor(){const _0x246b7c=_0x37a374;super(...arguments),I(this,_0x246b7c(0x37e),new Map()),I(this,'_colorIndex',0x0);}[_0x37a374(0x47b)](_0x40bd60){const _0x5b9abb=_0x37a374;if(this['_assignedColors'][_0x5b9abb(0x244)](_0x40bd60))return this[_0x5b9abb(0x37e)][_0x5b9abb(0x5bf)](_0x40bd60);const _0x5ea33f=$t[this[_0x5b9abb(0x5c4)]];return this[_0x5b9abb(0x5c4)]=(this[_0x5b9abb(0x5c4)]+0x1)%$t['length'],this[_0x5b9abb(0x37e)]['set'](_0x40bd60,_0x5ea33f),_0x5ea33f;}}var Wi=Object['defineProperty'],Fi=Object[_0x37a374(0x4a5)],Vi=(_0x1a78cb,_0x22c9ce,_0x4b7f35,_0x175071)=>{const _0x35d278=_0x37a374;for(var _0x32378f=_0x175071>0x1?void 0x0:_0x175071?Fi(_0x22c9ce,_0x4b7f35):_0x22c9ce,_0xf0bc=_0x1a78cb[_0x35d278(0x330)]-0x1,_0x37c9c7;_0xf0bc>=0x0;_0xf0bc--)(_0x37c9c7=_0x1a78cb[_0xf0bc])&&(_0x32378f=(_0x175071?_0x37c9c7(_0x22c9ce,_0x4b7f35,_0x32378f):_0x37c9c7(_0x32378f))||_0x32378f);return _0x175071&&_0x32378f&&Wi(_0x22c9ce,_0x4b7f35,_0x32378f),_0x32378f;},pe=(_0x1b7fca,_0xb9299a)=>(_0x36e75b,_0x1d5ff5)=>_0xb9299a(_0x36e75b,_0x1d5ff5,_0x1b7fca);const Gi=0x12c,Yi=0x64;let vt=class extends a[_0x37a374(0x2f7)]{constructor(_0x316666,_0x6f9d8,_0x416f22,_0x58775a,_0x3dd76e,_0x231a5b,_0x331154,_0x1ab3f0,_0x409821){const _0x29ae2a=_0x37a374;super(),I(this,_0x29ae2a(0x669),!0x1),I(this,_0x29ae2a(0x3c3),!0x1),I(this,_0x29ae2a(0x4c2),new A[(_0x29ae2a(0x441))](new Map())),I(this,'cursorInfo$',this[_0x29ae2a(0x4c2)][_0x29ae2a(0x483)]()),I(this,_0x29ae2a(0x653),new A[(_0x29ae2a(0x441))]([])),I(this,_0x29ae2a(0x587),this[_0x29ae2a(0x653)][_0x29ae2a(0x4d7)](A[_0x29ae2a(0x1e3)](Gi))),I(this,'_updateLocalCursor',a[_0x29ae2a(0x1f4)](_0x300d7d=>{const _0x2719ba=_0x29ae2a,_0x32ecbb={'eventID':p[_0x2719ba(0x521)][_0x2719ba(0x2f6)],'data':{'unitID':this[_0x2719ba(0x505)],'memberID':this['_session'][_0x2719ba(0x485)](),'selection':un(_0x300d7d)}};this['_session'][_0x2719ba(0x554)](_0x32ecbb,this['unitID']);},Yi)),(this[_0x29ae2a(0x505)]=_0x316666,this['_session']=_0x6f9d8,this['_injector']=_0x416f22,this[_0x29ae2a(0x591)]=_0x58775a,this[_0x29ae2a(0x5f6)]=_0x3dd76e,this[_0x29ae2a(0x3a0)]=_0x231a5b,this[_0x29ae2a(0x541)]=_0x331154,this['_univerInstanceService']=_0x1ab3f0,this[_0x29ae2a(0x48f)]=_0x409821);}get['cursorInfo'](){const _0x57c9c0=_0x37a374;return this[_0x57c9c0(0x4c2)]['getValue']();}get['roomMembers'](){const _0x47e707=_0x37a374;return this[_0x47e707(0x653)]['getValue']();}[_0x37a374(0x37c)](){const _0x7bc6e4=_0x37a374;super[_0x7bc6e4(0x37c)](),this[_0x7bc6e4(0x4c2)][_0x7bc6e4(0x24e)](new Map()),this[_0x7bc6e4(0x4c2)]['complete'](),this[_0x7bc6e4(0x653)][_0x7bc6e4(0x24e)]([]),this[_0x7bc6e4(0x653)][_0x7bc6e4(0x1c0)]();}[_0x37a374(0x5ca)](){const _0x15075b=_0x37a374;this['_init']||(this[_0x15075b(0x3c3)]=!0x0,this['_session']['sessionStatus$']['pipe'](A[_0x15075b(0x27d)](this['dispose$']))[_0x15075b(0x274)](_0x41dcb1=>{const _0x8d29f4=_0x15075b;_0x41dcb1===re[_0x8d29f4(0x1e9)]?this['_toggleOnline']():this[_0x8d29f4(0x406)]();}),this['_session'][_0x15075b(0x5cc)][_0x15075b(0x4d7)](A[_0x15075b(0x27d)](this['dispose$']))[_0x15075b(0x274)](_0x512c89=>{const _0x149ab9=_0x15075b,_0x55043e=_0x512c89[_0x149ab9(0x1d7)];_0x55043e===p[_0x149ab9(0x521)][_0x149ab9(0x2f6)]&&this[_0x149ab9(0x5f8)](_0x512c89),_0x55043e===p[_0x149ab9(0x521)][_0x149ab9(0x5de)]&&this[_0x149ab9(0x4dd)](_0x512c89);}),this[_0x15075b(0x4d6)](this[_0x15075b(0x48f)][_0x15075b(0x3d8)](_0x357aff=>{const _0x6c23f5=_0x15075b,_0x19aea3=_0x357aff[_0x6c23f5(0x39d)];_0x19aea3!=null&&this[_0x6c23f5(0x669)]&&_0x357aff['id']===Re[_0x6c23f5(0x46a)]['id']&&_0x19aea3['unitId']===this[_0x6c23f5(0x505)]&&_0x19aea3[_0x6c23f5(0x44f)]===!0x1&&_0x19aea3[_0x6c23f5(0x609)][_0x6c23f5(0x330)]>0x0&&this[_0x6c23f5(0x66b)](_0x19aea3[_0x6c23f5(0x609)]);})),this[_0x15075b(0x3a0)][_0x15075b(0x292)][_0x15075b(0x4d7)](A[_0x15075b(0x27d)](this[_0x15075b(0x574)]))[_0x15075b(0x274)](_0xd821a8=>{const _0x5dec48=_0x15075b;if((_0xd821a8==null?void 0x0:_0xd821a8['unitID'])!==this['unitID'])return;const _0x24375e={'eventID':p['CollaborationEvent']['UPDATE_CURSOR'],'data':_0xd821a8};this[_0x5dec48(0x5f8)](_0x24375e);}),this['disposeWithMe'](this[_0x15075b(0x48f)][_0x15075b(0x3d8)](_0x529f14=>{const _0x461274=_0x15075b;if(_0x529f14[_0x461274(0x39d)]==null)return;const _0x35b7c4=_0x529f14[_0x461274(0x39d)];if(_0x529f14['id']!==Re[_0x461274(0x578)]['id']||_0x35b7c4[_0x461274(0x36d)]!==this[_0x461274(0x505)])return;const _0x1ba061={'id':_0x461274(0x3a1),'params':_0x35b7c4},_0x273bee=this[_0x461274(0x39e)];for(const [_0x473f6d,_0x140ded]of _0x273bee){const _0xa1ba68={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x461274(0x505)],'actions':null,'textRanges':_0x140ded['ranges']}},_0x2de5e1=this[_0x461274(0x541)][_0x461274(0x337)](_0x1ba061,_0xa1ba68,!0x1);if(p[_0x461274(0x358)](_0x2de5e1))throw _0x2de5e1[_0x461274(0x237)];_0x273bee[_0x461274(0x5d1)](_0x473f6d,{..._0x140ded,'ranges':_0x2de5e1[_0x461274(0x3b2)][_0x461274(0x39d)][_0x461274(0x5ed)]});}queueMicrotask(()=>{const _0x3465a1=_0x461274;this[_0x3465a1(0x4c2)][_0x3465a1(0x24e)](_0x273bee);});})));}[_0x37a374(0x5f8)](_0x1cef96){const _0x5d9766=_0x37a374;var _0x414069,_0x2c3933;const {memberID:_0x1c2e88,selection:_0x29fb95}=_0x1cef96['data'],_0x3b18a8=Di(_0x29fb95),_0x57b63c=(_0x2c3933=(_0x414069=this[_0x5d9766(0x5f6)][_0x5d9766(0x2f4)](this[_0x5d9766(0x505)],_0x1c2e88))==null?void 0x0:_0x414069[_0x5d9766(0x21c)])!=null?_0x2c3933:_0x5d9766(0x2da),_0x3f0676={'color':this[_0x5d9766(0x591)][_0x5d9766(0x47b)](_0x1c2e88),'name':_0x57b63c,'ranges':_0x3b18a8},_0x4749d4=this[_0x5d9766(0x39e)];_0x4749d4['set'](_0x1c2e88,_0x3f0676),this[_0x5d9766(0x4c2)][_0x5d9766(0x24e)](_0x4749d4);}[_0x37a374(0x4dd)](_0x51764b){const _0x2a3196=_0x37a374,{memberID:_0x26ff9d}=_0x51764b[_0x2a3196(0x470)],_0x1c9308=this['cursorInfo'];_0x1c9308[_0x2a3196(0x412)](_0x26ff9d),this[_0x2a3196(0x4c2)][_0x2a3196(0x24e)](_0x1c9308);}['_toggleOnline'](){const _0x115957=_0x37a374;var _0x9e80e2;if(this['_online']=!0x0,((_0x9e80e2=this[_0x115957(0x1d4)][_0x115957(0x2cf)]())==null?void 0x0:_0x9e80e2[_0x115957(0x615)]())!==this['unitID'])return;const _0x52185a=this['_injector'][_0x115957(0x5bf)](Re[_0x115957(0x1fc)])[_0x115957(0x247)]();Array[_0x115957(0x338)](_0x52185a)&&_0x52185a['length']>0x0&&this[_0x115957(0x66b)](_0x52185a);}[_0x37a374(0x406)](){const _0x255a8b=_0x37a374;this[_0x255a8b(0x669)]=!0x1;}};vt=Vi([pe(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),pe(0x3,a[_0x37a374(0x629)](yt)),pe(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x33d)])),pe(0x5,a['Inject'](Tt)),pe(0x6,p[_0x37a374(0x214)]),pe(0x7,a[_0x37a374(0x662)]),pe(0x8,a['ICommandService'])],vt);var Ki=Object[_0x37a374(0x55e)],qi=Object[_0x37a374(0x4a5)],zi=(_0x50ca80,_0x586fe6,_0xd02a9c,_0x550dbd)=>{for(var _0x26ebd9=_0x550dbd>0x1?void 0x0:_0x550dbd?qi(_0x586fe6,_0xd02a9c):_0x586fe6,_0x5d4e71=_0x50ca80['length']-0x1,_0x298379;_0x5d4e71>=0x0;_0x5d4e71--)(_0x298379=_0x50ca80[_0x5d4e71])&&(_0x26ebd9=(_0x550dbd?_0x298379(_0x586fe6,_0xd02a9c,_0x26ebd9):_0x298379(_0x26ebd9))||_0x26ebd9);return _0x550dbd&&_0x26ebd9&&Ki(_0x586fe6,_0xd02a9c,_0x26ebd9),_0x26ebd9;},Ee=(_0x5e5ada,_0x2dcbe7)=>(_0x591901,_0x1b5c39)=>_0x2dcbe7(_0x591901,_0x1b5c39,_0x5e5ada);const Xi=0x12c,Ji=0x64,Zi=()=>{let _0x2e4d38=[],_0x58ed1e=!0x1;return _0x18e70c=>{const _0x395ce0=_0x513c;_0x2e4d38[_0x395ce0(0x257)](_0x18e70c),_0x58ed1e||(_0x58ed1e=!0x0,setTimeout(()=>{const _0x3cd62f=_0x395ce0;_0x2e4d38[_0x3cd62f(0x278)](_0x3a3110=>_0x3a3110()),_0x2e4d38=[],_0x58ed1e=!0x1;}));};};let mt=class extends a[_0x37a374(0x2f7)]{constructor(_0xf05a92,_0x717ad2,_0x50f8d4,_0xe5fe03,_0x5727ac,_0x317408,_0x20af47,_0x7fd335){const _0x1128aa=_0x37a374;super(),I(this,_0x1128aa(0x669),!0x1),I(this,'_init',!0x1),I(this,_0x1128aa(0x4c2),new A['BehaviorSubject'](new Map())),I(this,_0x1128aa(0x426),this['_cursorInfo$'][_0x1128aa(0x483)]()),I(this,_0x1128aa(0x653),new A['BehaviorSubject']([])),I(this,_0x1128aa(0x587),this[_0x1128aa(0x653)][_0x1128aa(0x4d7)](A[_0x1128aa(0x1e3)](Xi))),I(this,_0x1128aa(0x66b),a[_0x1128aa(0x1f4)]((_0x3911a5,_0x14dff1)=>{const _0x128532=_0x1128aa,_0x57926e={'eventID':p[_0x128532(0x521)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x128532(0x522)][_0x128532(0x485)](),'selection':wt[_0x128532(0x50e)](_0x3911a5,_0x14dff1['range'])}};this[_0x128532(0x522)][_0x128532(0x554)](_0x57926e,this[_0x128532(0x505)]);},Ji)),(this[_0x1128aa(0x505)]=_0xf05a92,this[_0x1128aa(0x522)]=_0x717ad2,this[_0x1128aa(0x58f)]=_0x50f8d4,this[_0x1128aa(0x591)]=_0xe5fe03,this[_0x1128aa(0x5f6)]=_0x5727ac,this['_univerInstanceService']=_0x317408,this[_0x1128aa(0x48f)]=_0x20af47,this[_0x1128aa(0x2fd)]=_0x7fd335);}get[_0x37a374(0x39e)](){const _0xf4f35a=_0x37a374;return this[_0xf4f35a(0x4c2)][_0xf4f35a(0x565)]();}get[_0x37a374(0x290)](){const _0x2c4492=_0x37a374;return this[_0x2c4492(0x653)][_0x2c4492(0x565)]();}[_0x37a374(0x37c)](){const _0x5762aa=_0x37a374;super[_0x5762aa(0x37c)](),this[_0x5762aa(0x4c2)]['next'](new Map()),this[_0x5762aa(0x4c2)][_0x5762aa(0x1c0)](),this[_0x5762aa(0x653)][_0x5762aa(0x24e)]([]),this[_0x5762aa(0x653)][_0x5762aa(0x1c0)]();}[_0x37a374(0x5ca)](){const _0x2ea213=_0x37a374;this[_0x2ea213(0x3c3)]||(this[_0x2ea213(0x3c3)]=!0x0,this['_session'][_0x2ea213(0x444)][_0x2ea213(0x4d7)](A[_0x2ea213(0x27d)](this['dispose$']))[_0x2ea213(0x274)](_0x2c419e=>{const _0x26fb7=_0x2ea213;_0x2c419e===re[_0x26fb7(0x1e9)]?this[_0x26fb7(0x5d3)]():this['_toggleOffline']();}),this['_session'][_0x2ea213(0x5cc)]['pipe'](A[_0x2ea213(0x27d)](this[_0x2ea213(0x574)]))[_0x2ea213(0x274)](_0x1607a5=>{const _0x4ac490=_0x2ea213,_0x562549=_0x1607a5['eventID'];_0x562549===p[_0x4ac490(0x521)][_0x4ac490(0x2f6)]&&this[_0x4ac490(0x5f8)](_0x1607a5),_0x562549===p[_0x4ac490(0x521)][_0x4ac490(0x5de)]&&this['_onCursorDelete'](_0x1607a5);}),this[_0x2ea213(0x272)](),this['disposeWithMe'](this['_commandService'][_0x2ea213(0x3d8)](_0x415c2b=>{const _0x221456=_0x2ea213;if(this[_0x221456(0x669)]&&_0x415c2b['id']===k[_0x221456(0x531)]['id']&&_0x415c2b[_0x221456(0x39d)]['unitId']===this[_0x221456(0x505)]){const _0x2c1a1f=_0x415c2b[_0x221456(0x39d)];this[_0x221456(0x66b)](_0x2c1a1f[_0x221456(0x561)],_0x2c1a1f[_0x221456(0x5b0)][0x0]);}})));}[_0x37a374(0x5f8)](_0x5c36cb){const _0x1427fe=_0x37a374;var _0x1ae20d,_0x4cdb70;const {memberID:_0x4e0e73,selection:_0x32ce68}=_0x5c36cb['data'],{sheetName:_0x3f6faa,range:_0x262971}=wt['deserializeRangeWithSheet'](_0x32ce68),_0x5cc600={'name':(_0x4cdb70=(_0x1ae20d=this[_0x1427fe(0x5f6)]['getMember'](this[_0x1427fe(0x505)],_0x4e0e73))==null?void 0x0:_0x1ae20d[_0x1427fe(0x21c)])!=null?_0x4cdb70:_0x1427fe(0x2da),'range':this[_0x1427fe(0x429)](_0x3f6faa,_0x262971),'sheetID':_0x3f6faa,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4e0e73),'selection':_0x32ce68},_0x57efff=this[_0x1427fe(0x39e)];_0x57efff[_0x1427fe(0x5d1)](_0x4e0e73,_0x5cc600),this['_cursorInfo$'][_0x1427fe(0x24e)](_0x57efff);}[_0x37a374(0x4dd)](_0x105959){const _0x53ff7e=_0x37a374,{memberID:_0x4b8785}=_0x105959[_0x53ff7e(0x470)],_0x5964a8=this[_0x53ff7e(0x39e)];_0x5964a8[_0x53ff7e(0x412)](_0x4b8785),this[_0x53ff7e(0x4c2)][_0x53ff7e(0x24e)](_0x5964a8);}[_0x37a374(0x429)](_0x492690,_0x23691d){const _0x1c29e9=_0x37a374;var _0x2598f6,_0x45bd00;const _0x457716=(_0x45bd00=(_0x2598f6=this[_0x1c29e9(0x1d4)][_0x1c29e9(0x5a6)](this[_0x1c29e9(0x505)]))==null?void 0x0:_0x2598f6[_0x1c29e9(0x287)](_0x492690))==null?void 0x0:_0x45bd00[_0x1c29e9(0x30d)]();return(_0x457716==null?void 0x0:_0x457716['find'](_0x4c7691=>a[_0x1c29e9(0x382)][_0x1c29e9(0x655)](_0x4c7691,_0x23691d)))||_0x23691d;}['_onRefRangeChange'](){const _0x4bee7d=_0x37a374,_0x1898d2=new a['DisposableCollection'](),_0x3b13cd=Zi(),_0x5475e3=()=>{const _0x17b1de=_0x513c;_0x1898d2['dispose']();const _0x3e7b5c=(_0x4ab588,_0x1bd919,_0x98d3a2,_0x38bf31)=>{const _0xfa106e=_0x513c;let _0x292200=[];switch(_0x4ab588['id']){case k[_0xfa106e(0x26b)][_0xfa106e(0x4fe)]:{_0x292200=k[_0xfa106e(0x2b2)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x428)]:{_0x292200=k['handleDeleteRangeMoveUp'](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x5bc)]:{_0x292200=k[_0xfa106e(0x34b)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)]['InsertRangeMoveDownCommandId']:{_0x292200=k[_0xfa106e(0x580)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x53f)]:{_0x292200=k[_0xfa106e(0x2d9)](_0x4ab588,_0x38bf31);break;}case k['EffectRefRangId'][_0xfa106e(0x674)]:{_0x292200=k[_0xfa106e(0x3ce)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x5cf)]:{_0x292200=k[_0xfa106e(0x5aa)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x650)]:{_0x292200=k[_0xfa106e(0x2c2)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)]['RemoveRowCommandId']:{_0x292200=k[_0xfa106e(0x4b2)](_0x4ab588,_0x38bf31);break;}}const _0x808844=k[_0xfa106e(0x5ac)](_0x292200,_0x38bf31),_0x45caa9=this[_0xfa106e(0x39e)][_0xfa106e(0x5bf)](_0x1bd919);if(_0x45caa9&&_0x808844){const _0x45153a={..._0x45caa9,'range':_0x808844};this[_0xfa106e(0x39e)][_0xfa106e(0x5d1)](_0x1bd919,_0x45153a),_0x3b13cd(()=>{const _0x651282=_0xfa106e,_0xefd84d=this[_0x651282(0x2fd)][_0x651282(0x496)](_0x808844,_0x4802ca=>(_0xefd84d[_0x651282(0x37c)](),_0x3e7b5c(_0x4802ca,_0x1bd919,_0x98d3a2,_0x808844)));_0x1898d2['add'](_0xefd84d);});}return{'redos':[],'undos':[]};};this[_0x17b1de(0x39e)]['forEach']((_0x12be22,_0x43a7d2)=>{const _0x5de0d3=_0x17b1de,{range:_0x4258a4,sheetID:_0x4183c3}=_0x12be22,_0x410418=this[_0x5de0d3(0x2fd)][_0x5de0d3(0x496)](_0x4258a4,_0x951175=>(_0x410418[_0x5de0d3(0x37c)](),_0x3e7b5c(_0x951175,_0x43a7d2,_0x4183c3,_0x4258a4)));_0x1898d2[_0x5de0d3(0x63d)](_0x410418);});};this[_0x4bee7d(0x4d6)](a[_0x4bee7d(0x219)](this[_0x4bee7d(0x4c2)][_0x4bee7d(0x274)](()=>{_0x5475e3();})));}[_0x37a374(0x5d3)](){const _0x3dca84=_0x37a374;var _0x1eb578,_0x5afd45;if(this[_0x3dca84(0x669)]=!0x0,((_0x1eb578=this[_0x3dca84(0x1d4)][_0x3dca84(0x2cf)]())==null?void 0x0:_0x1eb578['getUnitId']())!==this[_0x3dca84(0x505)])return;const _0x3bfd1a=(_0x5afd45=this[_0x3dca84(0x58f)][_0x3dca84(0x5bf)](k[_0x3dca84(0x3f7)])[_0x3dca84(0x344)]())==null?void 0x0:_0x5afd45[0x0],_0x14effa=this[_0x3dca84(0x1d4)][_0x3dca84(0x5a9)](a['UniverInstanceType'][_0x3dca84(0x362)])[_0x3dca84(0x25a)]();_0x3bfd1a&&_0x14effa&&this[_0x3dca84(0x66b)](_0x14effa['getSheetId'](),_0x3bfd1a);}[_0x37a374(0x406)](){const _0x49af3e=_0x37a374;this[_0x49af3e(0x669)]=!0x1;}};mt=zi([Ee(0x2,a[_0x37a374(0x629)](a['Injector'])),Ee(0x3,a[_0x37a374(0x629)](yt)),Ee(0x4,a['Inject'](exports[_0x37a374(0x33d)])),Ee(0x5,a[_0x37a374(0x662)]),Ee(0x6,a['ICommandService']),Ee(0x7,a[_0x37a374(0x629)](k['RefRangeService']))],mt);var Qi=Object['defineProperty'],es=Object[_0x37a374(0x4a5)],ts=(_0x3498d0,_0x4693ff,_0x4ac269,_0x4b7fef)=>{const _0x4f832e=_0x37a374;for(var _0x5b63f2=_0x4b7fef>0x1?void 0x0:_0x4b7fef?es(_0x4693ff,_0x4ac269):_0x4693ff,_0x15b997=_0x3498d0[_0x4f832e(0x330)]-0x1,_0x46192d;_0x15b997>=0x0;_0x15b997--)(_0x46192d=_0x3498d0[_0x15b997])&&(_0x5b63f2=(_0x4b7fef?_0x46192d(_0x4693ff,_0x4ac269,_0x5b63f2):_0x46192d(_0x5b63f2))||_0x5b63f2);return _0x4b7fef&&_0x5b63f2&&Qi(_0x4693ff,_0x4ac269,_0x5b63f2),_0x5b63f2;},tt=(_0x440c56,_0x10ec2e)=>(_0x37e435,_0x500c4c)=>_0x10ec2e(_0x37e435,_0x500c4c,_0x440c56);let Oe=class extends a[_0x37a374(0x2f7)]{constructor(_0x22b974,_0x28465f,_0x40e68f){const _0x10ef65=_0x37a374;super(),I(this,_0x10ef65(0x529),new Map()),I(this,'_entityInit$',new A[(_0x10ef65(0x383))]()),(this[_0x10ef65(0x1d4)]=_0x22b974,this[_0x10ef65(0x58f)]=_0x28465f,this[_0x10ef65(0x5c9)]=_0x40e68f,this['_init']());}[_0x37a374(0x37c)](){const _0x584f46=_0x37a374;super['dispose'](),this[_0x584f46(0x664)]['complete'](),this[_0x584f46(0x529)][_0x584f46(0x278)](_0x35dfff=>_0x35dfff['dispose']());}[_0x37a374(0x2e7)](_0xeac2e8){const _0x133274=_0x37a374;return this['_entities'][_0x133274(0x244)](_0xeac2e8)?this[_0x133274(0x529)]['get'](_0xeac2e8)[_0x133274(0x426)]:this[_0x133274(0x664)][_0x133274(0x4d7)](A[_0x133274(0x434)](_0x4bed0f=>_0x4bed0f[_0x133274(0x505)]===_0xeac2e8),A['switchMap'](_0x486d03=>_0x486d03[_0x133274(0x426)]));}[_0x37a374(0x3c3)](){const _0x1120d1=_0x37a374;this[_0x1120d1(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1120d1(0x22d)][_0x1120d1(0x362)])[_0x1120d1(0x4d7)](A[_0x1120d1(0x27d)](this[_0x1120d1(0x574)]))['subscribe'](async _0x46909c=>{const _0x2d434b=_0x1120d1,_0x1747e5=_0x46909c[_0x2d434b(0x615)](),_0x479db9=await this[_0x2d434b(0x473)](_0x1747e5);this[_0x2d434b(0x664)][_0x2d434b(0x24e)](_0x479db9),this['_entities'][_0x2d434b(0x5d1)](_0x1747e5,_0x479db9);}),this[_0x1120d1(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1120d1(0x22d)][_0x1120d1(0x619)])[_0x1120d1(0x4d7)](A['takeUntil'](this[_0x1120d1(0x574)]))[_0x1120d1(0x4d7)](A[_0x1120d1(0x434)](_0x1832e5=>!_0x1832e5[_0x1120d1(0x615)]()[_0x1120d1(0x3b5)]('__')))[_0x1120d1(0x274)](async _0x52813f=>{const _0x46bc44=_0x1120d1,_0x5b43e3=_0x52813f['getUnitId'](),_0x5a25bb=await this[_0x46bc44(0x573)](_0x5b43e3);this['_entityInit$']['next'](_0x5a25bb),this[_0x46bc44(0x529)][_0x46bc44(0x5d1)](_0x5b43e3,_0x5a25bb);}),A[_0x1120d1(0x28d)](this[_0x1120d1(0x1d4)]['getTypeOfUnitDisposed$'](a[_0x1120d1(0x22d)]['UNIVER_DOC']),this[_0x1120d1(0x1d4)][_0x1120d1(0x44a)](a[_0x1120d1(0x22d)][_0x1120d1(0x362)]))['pipe'](A[_0x1120d1(0x27d)](this[_0x1120d1(0x574)]))[_0x1120d1(0x274)](_0x29ffb8=>{const _0x33a738=_0x1120d1,_0x4f1330=_0x29ffb8['getUnitId'](),_0x257b7e=this[_0x33a738(0x529)][_0x33a738(0x5bf)](_0x4f1330);_0x257b7e&&(_0x257b7e[_0x33a738(0x37c)](),this[_0x33a738(0x529)][_0x33a738(0x412)](_0x4f1330));});}async['_startSheetCollabCursor'](_0x362d3c){const _0x29a6d2=_0x37a374,_0x294f37=await this[_0x29a6d2(0x5c9)][_0x29a6d2(0x501)](_0x362d3c),_0x1110be=this[_0x29a6d2(0x58f)][_0x29a6d2(0x4bb)](mt,_0x362d3c,_0x294f37);return _0x1110be[_0x29a6d2(0x5ca)](),_0x1110be;}async[_0x37a374(0x573)](_0x25ca9f){const _0x29b42c=_0x37a374,_0x243944=await this[_0x29b42c(0x5c9)][_0x29b42c(0x501)](_0x25ca9f),_0x2fd737=this[_0x29b42c(0x58f)][_0x29b42c(0x4bb)](vt,_0x25ca9f,_0x243944);return _0x2fd737[_0x29b42c(0x5ca)](),_0x2fd737;}};Oe=ts([tt(0x0,a[_0x37a374(0x662)]),tt(0x1,a[_0x37a374(0x629)](a['Injector'])),tt(0x2,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)]))],Oe);const Ne=0x14,jt=0xc8,nt=0x4,ns=0x5;function is(_0x2c06da,_0x10f3c3){const _0x569ba9=_0x37a374;let {radius:_0x5a5372,width:_0xf9ca36,height:_0x1ee8bc}=_0x10f3c3;_0x5a5372=_0x5a5372!=null?_0x5a5372:0x0,_0xf9ca36=_0xf9ca36!=null?_0xf9ca36:0x1e,_0x1ee8bc=_0x1ee8bc!=null?_0x1ee8bc:0x1e;let _0x3bf48f=0x0,_0x591ca6=0x0,_0x17e0df=0x0;_0x3bf48f=_0x591ca6=_0x17e0df=Math[_0x569ba9(0x242)](_0x5a5372,_0xf9ca36/0x2,_0x1ee8bc/0x2),_0x2c06da[_0x569ba9(0x1e2)](),_0x2c06da[_0x569ba9(0x1f9)](_0x3bf48f,0x0),_0x2c06da[_0x569ba9(0x4ec)](_0xf9ca36-_0x591ca6,0x0),_0x2c06da[_0x569ba9(0x5a4)](_0xf9ca36-_0x591ca6,_0x591ca6,_0x591ca6,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c06da[_0x569ba9(0x4ec)](_0xf9ca36,_0x1ee8bc-_0x17e0df),_0x2c06da[_0x569ba9(0x5a4)](_0xf9ca36-_0x17e0df,_0x1ee8bc-_0x17e0df,_0x17e0df,0x0,Math['PI']/0x2,!0x1),_0x2c06da[_0x569ba9(0x4ec)](0x0,_0x1ee8bc),_0x2c06da['lineTo'](0x0,_0x3bf48f),_0x2c06da[_0x569ba9(0x5a4)](_0x3bf48f,_0x3bf48f,_0x3bf48f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c06da['closePath'](),_0x10f3c3[_0x569ba9(0x2dc)]&&(_0x2c06da['save'](),_0x2c06da[_0x569ba9(0x2ac)]=_0x10f3c3[_0x569ba9(0x2dc)],_0x10f3c3[_0x569ba9(0x22c)]===_0x569ba9(0x4e3)?_0x2c06da[_0x569ba9(0x2dc)](_0x569ba9(0x4e3)):_0x2c06da[_0x569ba9(0x2dc)](),_0x2c06da[_0x569ba9(0x54b)]());}class ze extends K['Shape']{constructor(_0x266460,_0x4c9b5b){const _0x43521a=_0x37a374;super(_0x266460,_0x4c9b5b),I(this,_0x43521a(0x422)),I(this,_0x43521a(0x490)),(this[_0x43521a(0x422)]=_0x4c9b5b==null?void 0x0:_0x4c9b5b[_0x43521a(0x422)],this[_0x43521a(0x490)]=_0x4c9b5b==null?void 0x0:_0x4c9b5b['text']);}static[_0x37a374(0x65e)](_0x2b994c,_0x5e5c63){const _0x4694a8=_0x37a374,{text:_0x11ceab,color:_0x5290c3}=_0x5e5c63;_0x2b994c[_0x4694a8(0x2eb)](),_0x2b994c[_0x4694a8(0x618)]=_0x4694a8(0x1dc);const _0x4f3d33=_0x2b994c[_0x4694a8(0x67e)](_0x11ceab)[_0x4694a8(0x3d1)],_0x2993fd=Math[_0x4694a8(0x242)](_0x4f3d33+0x2*nt,jt);is(_0x2b994c,{'height':Ne,'radius':0x4,'width':_0x2993fd,'fill':_0x5290c3,'evented':!0x1}),_0x2b994c[_0x4694a8(0x2ac)]=_0x4694a8(0x467);const _0x29f60f=nt,_0x431450=Ne-ns,_0x9766f7=jt-0x2*nt;if(_0x4f3d33>_0x9766f7){let _0x1d3feb='',_0xde1519=0x0;for(const _0x23c4b2 of _0x11ceab){const _0x434b06=_0x2b994c['measureText'](_0x23c4b2)[_0x4694a8(0x3d1)];if(_0xde1519+_0x434b06<=_0x9766f7-_0x2b994c[_0x4694a8(0x67e)](_0x4694a8(0x4a7))[_0x4694a8(0x3d1)])_0x1d3feb+=_0x23c4b2,_0xde1519+=_0x434b06;else{_0x1d3feb+=_0x4694a8(0x4a7);break;}}_0x2b994c[_0x4694a8(0x262)](_0x1d3feb,_0x29f60f,_0x431450);}else _0x2b994c[_0x4694a8(0x262)](_0x11ceab,_0x29f60f,_0x431450);_0x2b994c['restore']();}[_0x37a374(0x634)](_0x42c4ab){const _0x4bd1db=_0x37a374;ze[_0x4bd1db(0x65e)](_0x42c4ab,this);}}const it=_0x37a374(0x593),ss=_0x37a374(0x3d5),rs=_0x37a374(0x1e8),Pe=0x6,os=1.5,st=0x4,as=1.5,cs='rgba(255,\x20255,\x20255,\x200.01)';class Ht{constructor(_0x14b0f6,_0x370c3d,_0x4a74bc,_0x1c0a8f){const _0x37fdec=_0x37a374;I(this,'_shapes',[]),I(this,'_anchor',null),I(this,_0x37fdec(0x458),null),I(this,_0x37fdec(0x63b),null),I(this,_0x37fdec(0x4ca),null),I(this,_0x37fdec(0x276),null),(this[_0x37fdec(0x24b)]=_0x14b0f6,this[_0x37fdec(0x32d)]=_0x370c3d,this[_0x37fdec(0x635)]=_0x4a74bc,this[_0x37fdec(0x252)]=_0x1c0a8f,this['_render']());}set[_0x37a374(0x4d0)](_0x2e2a70){const _0x7170b=_0x37a374;_0x2e2a70?(this[_0x7170b(0x63b)]&&this[_0x7170b(0x63b)][_0x7170b(0x3cb)](),this['_textBubble']&&this[_0x7170b(0x458)][_0x7170b(0x5b9)]()):(this['_anchorDot']&&this[_0x7170b(0x63b)]['show'](),this[_0x7170b(0x458)]&&this[_0x7170b(0x458)][_0x7170b(0x3cb)]());}['dispose'](){const _0x5af080=_0x37a374;for(const _0x27cf65 of this[_0x5af080(0x332)])_0x27cf65[_0x5af080(0x37c)]();this[_0x5af080(0x458)]&&this[_0x5af080(0x458)][_0x5af080(0x37c)](),this['_anchorDot']&&this['_anchorDot'][_0x5af080(0x37c)](),this['_anchor']&&this[_0x5af080(0x3b7)][_0x5af080(0x37c)](),this[_0x5af080(0x276)]&&this[_0x5af080(0x276)]();}[_0x37a374(0x535)](){const _0x51a0df=_0x37a374;var _0x40b1d6;const {_docSkeleton:_0x5fb258,_document:_0x34553c}=this,{color:_0x43a0e5,name:_0x572bf9,ranges:_0x2bef78}=this['_cursor'],_0x1821e3=_0x34553c['getOffsetConfig'](),{docsLeft:_0x46413e,docsTop:_0x676b57}=_0x1821e3,_0x186cf3=new Z[(_0x51a0df(0x5c8))](_0x1821e3,_0x5fb258);for(const {startOffset:_0x1cf479,endOffset:_0xad1533,rangeType:_0x4a8bdd,segmentId:_0x36a6b8,segmentPage:_0x2a08ca,collapsed:_0x179be9,isActive:_0x3800c1}of _0x2bef78){const _0x1fc79a=_0x5fb258[_0x51a0df(0x56d)](_0x1cf479,!0x0,_0x36a6b8,_0x2a08ca);let _0x457ca8=_0x5fb258[_0x51a0df(0x56d)](_0xad1533,!0x0,_0x36a6b8,_0x2a08ca);if(_0x457ca8==null&&(_0x457ca8=_0x5fb258[_0x51a0df(0x56d)](_0xad1533-0x1,!0x1,_0x36a6b8,_0x2a08ca)),_0x3800c1){const {contentBoxPointGroup:_0x459c2c}=_0x186cf3[_0x51a0df(0x5d4)](_0x457ca8,_0x457ca8);if(_0x459c2c[_0x51a0df(0x330)]===0x0)continue;this[_0x51a0df(0x384)](_0x43a0e5,_0x459c2c,_0x46413e,_0x676b57,_0x572bf9),this['_eventUnsubscribe']=this[_0x51a0df(0x5ff)]();}if(!_0x179be9&&_0x1fc79a&&_0x457ca8){if(_0x4a8bdd===a[_0x51a0df(0x39a)][_0x51a0df(0x64d)]){const _0x257fa2=new Z[(_0x51a0df(0x250))](_0x1821e3,_0x5fb258),{pointGroup:_0x5656fa}=(_0x40b1d6=_0x257fa2[_0x51a0df(0x5d4)](_0x1fc79a,_0x457ca8))!=null?_0x40b1d6:{};if(_0x5656fa==null||_0x5656fa[_0x51a0df(0x330)]===0x0)continue;this[_0x51a0df(0x639)](_0x43a0e5,_0x5656fa,_0x46413e,_0x676b57);}else{const {borderBoxPointGroup:_0x9c5f77}=_0x186cf3[_0x51a0df(0x5d4)](_0x1fc79a,_0x457ca8);if(_0x9c5f77['length']===0x0)continue;this['_drawTextRange'](_0x43a0e5,_0x9c5f77,_0x46413e,_0x676b57);}}}}[_0x37a374(0x384)](_0x2a3174,_0xf6a2c5,_0x35ccfb,_0x126f40,_0x5bad9f){const _0x2a3603=_0x37a374,_0x316ff0=this['_getAnchorBounding'](_0xf6a2c5),{left:_0x2fa327,top:_0x408696,height:_0xae1ddf}=_0x316ff0,_0x5f314c=this['_getScale'](),_0x4c60e5=as/_0x5f314c,_0x152997=new K[(_0x2a3603(0x40a))](it+a[_0x2a3603(0x59b)]['generateRandomId'](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40,'height':_0xae1ddf,'width':os,'fill':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'strokeWidth':_0x4c60e5,'stroke':cs,'evented':!0x0});this[_0x2a3603(0x3b7)]=_0x152997,this[_0x2a3603(0x32d)]['addObject'](_0x152997,Z[_0x2a3603(0x551)]);const _0x2dd613=new K[(_0x2a3603(0x40a))](it+a[_0x2a3603(0x59b)][_0x2a3603(0x3c0)](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40-st/0x2,'height':st,'width':st,'fill':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'strokeWidth':0x0,'stroke':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'evented':!0x1});this[_0x2a3603(0x63b)]=_0x2dd613,this[_0x2a3603(0x32d)][_0x2a3603(0x29d)](_0x2dd613,Z[_0x2a3603(0x551)]);const _0x5c9152=new ze(it+a[_0x2a3603(0x59b)][_0x2a3603(0x3c0)](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40-Ne,'text':_0x5bad9f,'color':_0x2a3174});this[_0x2a3603(0x458)]=_0x5c9152,this['_scene']['addObject'](_0x5c9152,Z[_0x2a3603(0x551)]),this[_0x2a3603(0x4d0)]=!0x1;}[_0x37a374(0x5ff)](){const _0x18d68b=_0x37a374,_0x13ef7e=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x62cb72=this[_0x18d68b(0x3b7)][_0x18d68b(0x4df)][_0x18d68b(0x3f5)](()=>{const _0x4ebda7=_0x18d68b;this[_0x4ebda7(0x4ca)]&&clearTimeout(this[_0x4ebda7(0x4ca)]),this[_0x4ebda7(0x4ca)]=setTimeout(()=>{const _0xd12097=_0x4ebda7;this[_0xd12097(0x4d0)]=!0x1;},0x7d0);});return()=>{const _0x50b8a0=_0x18d68b;_0x13ef7e['unsubscribe'](),_0x62cb72[_0x50b8a0(0x335)]();};}[_0x37a374(0x2ba)](_0x5a632e,_0x5577b3,_0x1606e9,_0x5f374c){const _0x5edb59=_0x37a374,_0x26d3e8=new a['ColorKit'](_0x5a632e)[_0x5edb59(0x2fa)](0.2)[_0x5edb59(0x4f1)](),_0x3b6576=new K['RegularPolygon'](ss+a[_0x5edb59(0x59b)][_0x5edb59(0x3c0)](Pe),{'pointsGroup':_0x5577b3,'fill':_0x26d3e8||K['getColor'](a[_0x5edb59(0x370)][_0x5edb59(0x2e3)],0.2),'left':_0x1606e9,'top':_0x5f374c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5edb59(0x332)][_0x5edb59(0x257)](_0x3b6576),this[_0x5edb59(0x32d)][_0x5edb59(0x29d)](_0x3b6576,Z[_0x5edb59(0x551)]);}[_0x37a374(0x639)](_0x50a0f5,_0x5557c1,_0x3da3cd,_0x39a0d4){const _0x298133=_0x37a374,_0x46d012=new a[(_0x298133(0x677))](_0x50a0f5)[_0x298133(0x2fa)](0.2)[_0x298133(0x4f1)](),_0x272480=new K[(_0x298133(0x21d))](rs+a[_0x298133(0x59b)][_0x298133(0x3c0)](Pe),{'pointsGroup':_0x5557c1,'fill':_0x46d012||K[_0x298133(0x2e2)](a['COLORS']['black'],0.2),'left':_0x3da3cd,'top':_0x39a0d4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x298133(0x332)][_0x298133(0x257)](_0x272480),this[_0x298133(0x32d)]['addObject'](_0x272480,Z[_0x298133(0x551)]);}[_0x37a374(0x3c4)](_0x25f796){const _0x5ac1a2=_0x25f796[0x0],_0x49ab04=_0x5ac1a2[0x0],_0x15078d=_0x5ac1a2[0x2],{x:_0x4de69c,y:_0x2f27e4}=_0x49ab04,{x:_0x4c60c9,y:_0x16c956}=_0x15078d;return{'left':_0x4de69c,'top':_0x2f27e4,'width':_0x4c60c9-_0x4de69c,'height':_0x16c956-_0x2f27e4};}[_0x37a374(0x2a0)](){const _0x480f8f=_0x37a374,{scaleX:_0x352e3e,scaleY:_0x899f49}=this[_0x480f8f(0x32d)][_0x480f8f(0x3bb)]();return Math[_0x480f8f(0x59f)](_0x352e3e,_0x899f49);}}var ls=Object['defineProperty'],hs=Object[_0x37a374(0x4a5)],_s=(_0x5e96db,_0x571e4e,_0x5dc340,_0x1fe5d8)=>{const _0x348d64=_0x37a374;for(var _0xe7c1f4=_0x1fe5d8>0x1?void 0x0:_0x1fe5d8?hs(_0x571e4e,_0x5dc340):_0x571e4e,_0x4ae3be=_0x5e96db[_0x348d64(0x330)]-0x1,_0x5c0dd6;_0x4ae3be>=0x0;_0x4ae3be--)(_0x5c0dd6=_0x5e96db[_0x4ae3be])&&(_0xe7c1f4=(_0x1fe5d8?_0x5c0dd6(_0x571e4e,_0x5dc340,_0xe7c1f4):_0x5c0dd6(_0xe7c1f4))||_0xe7c1f4);return _0x1fe5d8&&_0xe7c1f4&&ls(_0x571e4e,_0x5dc340,_0xe7c1f4),_0xe7c1f4;},$e=(_0x297f90,_0x2b283d)=>(_0x55f1e3,_0x64666e)=>_0x2b283d(_0x55f1e3,_0x64666e,_0x297f90);let pt=class extends a[_0x37a374(0x2f7)]{constructor(_0x591292,_0x41102d,_0x139005,_0x19991f,_0x2b04f1){const _0x39b337=_0x37a374;super(),I(this,_0x39b337(0x407),[]),I(this,_0x39b337(0x668),[]),(this[_0x39b337(0x56b)]=_0x591292,this['_docSkeletonManagerService']=_0x41102d,this[_0x39b337(0x3f0)]=_0x139005,this['_commandService']=_0x19991f,this['_themeService']=_0x2b04f1,this[_0x39b337(0x3c3)]());}[_0x37a374(0x3c3)](){const _0x43b122=_0x37a374,_0x7dadf6=this[_0x43b122(0x56b)][_0x43b122(0x36d)],_0x447784=this[_0x43b122(0x402)];this[_0x43b122(0x4d6)](A[_0x43b122(0x5e6)]([this['_collabCursorController'][_0x43b122(0x2e7)](_0x7dadf6),this[_0x43b122(0x536)][_0x43b122(0x439)]])[_0x43b122(0x4d7)](V[_0x43b122(0x323)](([_0x3ac278,_0x2cd950])=>({'skeleton':_0x447784[_0x43b122(0x631)](),'cursors':[..._0x3ac278[_0x43b122(0x353)]()][_0x43b122(0x5dc)](_0x49937d=>({..._0x49937d,'color':_0x2cd950[_0x49937d[_0x43b122(0x422)]]}))})))['subscribe'](_0x5e02ae=>{const _0x55e71f=_0x43b122;if(this[_0x55e71f(0x331)](),_0x5e02ae){const {skeleton:_0x3a1143,cursors:_0x372a1a}=_0x5e02ae;this[_0x55e71f(0x3ef)](_0x3a1143,_0x372a1a);}})),this[_0x43b122(0x520)](),this[_0x43b122(0x425)]();}[_0x37a374(0x3ef)](_0x2851ac,_0x556807){const _0x5cde59=_0x37a374,{scene:_0x43f91e,mainComponent:_0x1fbf94}=this[_0x5cde59(0x56b)],_0x4d3f68=_0x556807[_0x5cde59(0x323)](_0x190b5a=>new Ht(_0x190b5a,_0x43f91e,_0x2851ac,_0x1fbf94));this[_0x5cde59(0x407)]=_0x4d3f68,this[_0x5cde59(0x668)]=_0x556807;}['_refreshCollabCursors'](){const _0x1da2ab=_0x37a374;this['_removeCollabCursors']();const {scene:_0x156734,mainComponent:_0x4e966f}=this[_0x1da2ab(0x56b)],_0x2c8039=this[_0x1da2ab(0x402)][_0x1da2ab(0x631)](),_0x300030=this[_0x1da2ab(0x668)][_0x1da2ab(0x323)](_0x52b5de=>new Ht(_0x52b5de,_0x156734,_0x2c8039,_0x4e966f));this['_cursorShapes']=_0x300030;}[_0x37a374(0x331)](){const _0x2e873b=_0x37a374;this['_cursorShapes'][_0x2e873b(0x278)](_0x786233=>_0x786233[_0x2e873b(0x37c)]()),this[_0x2e873b(0x407)]=[];}[_0x37a374(0x425)](){const _0x4c4f7c=_0x37a374,_0x22b648=[Z[_0x4c4f7c(0x3db)]['id']];this[_0x4c4f7c(0x4d6)](this['_commandService'][_0x4c4f7c(0x3d8)](_0x3beda7=>{const _0x108d6d=_0x4c4f7c;_0x22b648[_0x108d6d(0x5fc)](_0x3beda7['id'])&&_0x3beda7[_0x108d6d(0x39d)][_0x108d6d(0x36d)]===this[_0x108d6d(0x56b)][_0x108d6d(0x36d)]&&this[_0x108d6d(0x26a)]();}));}[_0x37a374(0x520)](){const _0x2d7097=_0x37a374;this[_0x2d7097(0x4d6)](a[_0x2d7097(0x607)](this[_0x2d7097(0x56b)][_0x2d7097(0x379)][_0x2d7097(0x62b)])['pipe'](V[_0x2d7097(0x434)](_0x501811=>_0x501811[_0x2d7097(0x1d2)]===K[_0x2d7097(0x472)][_0x2d7097(0x2c0)]),V[_0x2d7097(0x25d)](0x10))[_0x2d7097(0x274)](()=>{this['_refreshCollabCursors']();}));}};pt=_s([$e(0x1,a[_0x37a374(0x629)](Re[_0x37a374(0x24d)])),$e(0x2,a['Inject'](Oe)),$e(0x3,a[_0x37a374(0x30c)]),$e(0x4,a[_0x37a374(0x629)](a[_0x37a374(0x559)]))],pt);const us=0x1,ds=1.5;class mn extends K[_0x37a374(0x3fd)]{constructor(_0x378058,_0x47781a){const _0x5205eb=_0x37a374;super(_0x378058,_0x47781a),I(this,'_color'),I(this,_0x5205eb(0x391),!0x1),I(this,_0x5205eb(0x2cd)),I(this,_0x5205eb(0x4b1),''),I(this,_0x5205eb(0x608),'top'),I(this,_0x5205eb(0x2b1)),(_0x47781a&&this[_0x5205eb(0x21e)](_0x47781a),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5205eb(0x21e)]({'hovered':!0x0})),this[_0x5205eb(0x4df)]['subscribeEvent'](()=>this[_0x5205eb(0x21e)]({'hovered':!0x1})));}[_0x37a374(0x21e)](_0x5924cd){const _0x4b9b7f=_0x37a374;var _0x2be879,_0x49d2ba,_0x121b89,_0x48b9d9,_0x408763,_0x3acb97;this[_0x4b9b7f(0x47c)]=(_0x2be879=_0x5924cd[_0x4b9b7f(0x422)])!=null?_0x2be879:this[_0x4b9b7f(0x47c)],this['_hovered']=(_0x49d2ba=_0x5924cd[_0x4b9b7f(0x4d4)])!=null?_0x49d2ba:this[_0x4b9b7f(0x391)],this[_0x4b9b7f(0x2cd)]=(_0x121b89=_0x5924cd[_0x4b9b7f(0x30f)])!=null?_0x121b89:this[_0x4b9b7f(0x2cd)],this[_0x4b9b7f(0x4b1)]=(_0x48b9d9=_0x5924cd['name'])!=null?_0x48b9d9:this[_0x4b9b7f(0x4b1)],this[_0x4b9b7f(0x608)]=(_0x408763=_0x5924cd[_0x4b9b7f(0x67a)])!=null?_0x408763:this['_labelPosition'],this[_0x4b9b7f(0x2b1)]=(_0x3acb97=_0x5924cd[_0x4b9b7f(0x2b7)])!=null?_0x3acb97:this[_0x4b9b7f(0x2b1)],this[_0x4b9b7f(0x2ab)]({'width':_0x5924cd[_0x4b9b7f(0x3d1)],'height':_0x5924cd[_0x4b9b7f(0x300)]});}[_0x37a374(0x568)](_0x10d058){const _0x3ecaf7=_0x37a374,{row:_0x3e0a77,column:_0xb650b6}=_0x10d058;if(_0x3e0a77>=this[_0x3ecaf7(0x2cd)]['startRow']&&_0x3e0a77<=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x2c8)]&&_0xb650b6>=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x2d5)]&&_0xb650b6<=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x519)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3ecaf7(0x21e)]({'hovered':!0x1});}[_0x37a374(0x66f)](_0x1e822f){return!0x1;}[_0x37a374(0x634)](_0x58cd0b){const _0x14bbca=_0x37a374;K[_0x14bbca(0x40a)][_0x14bbca(0x65e)](_0x58cd0b,{'width':this[_0x14bbca(0x3d1)],'height':this['height'],'strokeWidth':ds,'stroke':this[_0x14bbca(0x47c)],'evented':!0x1,'fill':this[_0x14bbca(0x2b1)]}),this[_0x14bbca(0x391)]&&(_0x58cd0b['save'](),_0x58cd0b[_0x14bbca(0x610)](0x1,0x0,0x0,0x1,this[_0x14bbca(0x3d1)],this[_0x14bbca(0x608)]==='bottom'?0x0:-Ne),ze['drawWith'](_0x58cd0b,{'text':this['_name'],'color':this[_0x14bbca(0x47c)]}),_0x58cd0b[_0x14bbca(0x54b)]());}}var fs=Object[_0x37a374(0x55e)],vs=Object[_0x37a374(0x4a5)],ms=(_0x4debae,_0x4ff8b5,_0x38a47c,_0x14e4de)=>{const _0x46e2ba=_0x37a374;for(var _0x363490=_0x14e4de>0x1?void 0x0:_0x14e4de?vs(_0x4ff8b5,_0x38a47c):_0x4ff8b5,_0x4f169a=_0x4debae[_0x46e2ba(0x330)]-0x1,_0x3be6c5;_0x4f169a>=0x0;_0x4f169a--)(_0x3be6c5=_0x4debae[_0x4f169a])&&(_0x363490=(_0x14e4de?_0x3be6c5(_0x4ff8b5,_0x38a47c,_0x363490):_0x3be6c5(_0x363490))||_0x363490);return _0x14e4de&&_0x363490&&fs(_0x4ff8b5,_0x38a47c,_0x363490),_0x363490;},rt=(_0x26cbb7,_0x3fa4c8)=>(_0x226674,_0x4a706d)=>_0x3fa4c8(_0x226674,_0x4a706d,_0x26cbb7);const ps=0x1389;let St=class extends a['RxDisposable']{constructor(_0x4cdc30,_0xe25cc2,_0x3f7747,_0x20bbff){const _0x289e0d=_0x37a374;super(),I(this,_0x289e0d(0x668),new Set()),I(this,_0x289e0d(0x233),null),(this[_0x289e0d(0x56b)]=_0x4cdc30,this[_0x289e0d(0x410)]=_0xe25cc2,this[_0x289e0d(0x3f0)]=_0x3f7747,this[_0x289e0d(0x536)]=_0x20bbff,this[_0x289e0d(0x3c3)]());}['_init'](){const _0xac9e6e=_0x37a374;this[_0xac9e6e(0x410)][_0xac9e6e(0x632)]['pipe'](V['takeUntil'](this['dispose$']),V[_0xac9e6e(0x5e0)](_0xd38546=>{const _0x4e7057=_0xac9e6e;if(_0xd38546){const _0x109102=_0xd38546[_0x4e7057(0x2c3)];return A[_0x4e7057(0x5e6)](this['_collabCursorController'][_0x4e7057(0x2e7)](this[_0x4e7057(0x56b)]['unitId']),this['_themeService']['currentTheme$'])[_0x4e7057(0x4d7)](V[_0x4e7057(0x323)](([_0x568c67,_0x9778bf])=>{const _0x3b5c1d=new Map();return _0x568c67['forEach']((_0x10ee44,_0xf00758)=>{const _0x5ca5b8=_0x513c;if(_0x10ee44[_0x5ca5b8(0x31b)]===_0x109102){const _0x5707a9={..._0x10ee44};_0x5707a9[_0x5ca5b8(0x422)]=_0x9778bf[_0x10ee44[_0x5ca5b8(0x422)]],_0x3b5c1d[_0x5ca5b8(0x5d1)](_0xf00758,_0x5707a9);}}),{'skeleton':_0xd38546,'cursors':_0x3b5c1d};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0xac9e6e(0x274)](({skeleton:_0x346e91,cursors:_0x1fe62b})=>{const _0x217f14=_0xac9e6e;this[_0x217f14(0x331)](),_0x346e91&&this[_0x217f14(0x3ef)](_0x346e91,_0x1fe62b);}),this['_sheetSkeletonManagerService'][_0xac9e6e(0x632)][_0xac9e6e(0x274)](_0x170dd6=>{const _0x49decf=_0xac9e6e;if(_0x170dd6==null)return;const {skeleton:_0x5a0875}=_0x170dd6,{scene:_0x20866f}=this[_0x49decf(0x56b)];_0x20866f[_0x49decf(0x5df)]['subscribeEvent'](a[_0x49decf(0x1f4)](_0x2f3f2f=>{const _0x10d902=_0x49decf;var _0x5ef647,_0x42c6b1;const {offsetX:_0x1d1e2e,offsetY:_0x296505}=_0x2f3f2f,{x:_0x269374,y:_0x209631}=_0x20866f[_0x10d902(0x259)](K[_0x10d902(0x616)]['FromArray']([_0x1d1e2e,_0x296505])),{scaleX:_0x198af7,scaleY:_0x1f2817}=_0x20866f[_0x10d902(0x3bb)](),_0x23be3a=_0x20866f['getViewport'](Te['VIEWPORT_KEY'][_0x10d902(0x41b)]),_0x3cb1ea=_0x20866f[_0x10d902(0x39c)](K[_0x10d902(0x616)][_0x10d902(0x44c)]([_0x269374,_0x209631]),_0x23be3a),_0x300ef9=_0x5a0875['getCellPositionByOffset'](_0x1d1e2e,_0x296505,_0x198af7,_0x1f2817,_0x3cb1ea);((_0x5ef647=this[_0x10d902(0x233)])==null?void 0x0:_0x5ef647['column'])===_0x300ef9['column']&&((_0x42c6b1=this['_lastPointer'])==null?void 0x0:_0x42c6b1[_0x10d902(0x5f9)])===_0x300ef9[_0x10d902(0x5f9)]||this['_cursors'][_0x10d902(0x278)](_0x241cc9=>{const _0x374383=_0x10d902;_0x241cc9[_0x374383(0x568)](_0x300ef9);});},0x64));});}[_0x37a374(0x3ef)](_0x564aa7,_0x10f188){const _0x21f976=_0x37a374;var _0x3d9612;const _0x1c924a=(_0x3d9612=this[_0x21f976(0x410)][_0x21f976(0x3c2)]())==null?void 0x0:_0x3d9612[_0x21f976(0x451)];if(!_0x1c924a)return;const _0x529869=this[_0x21f976(0x328)]();if(!_0x529869)return;this[_0x21f976(0x668)]['forEach'](_0x55cb60=>{const _0x297915=_0x21f976;_0x55cb60[_0x297915(0x45d)]();});const {scene:_0x3af192}=_0x529869,_0x3fb361=Ss(Array[_0x21f976(0x1ec)](_0x10f188[_0x21f976(0x353)]()))[_0x21f976(0x323)](_0x459c44=>{const _0x23c5b2=_0x21f976,{color:_0x4edd6e,range:_0x11f599,name:_0x5d1675,selection:_0x41f6fd,sheetID:_0x3ea873}=_0x459c44,{startColumn:_0x3287a8,startRow:_0x3256db,endColumn:_0x34f739,endRow:_0x4f1e48}=_0x11f599,_0x5dcd32=Te[_0x23c5b2(0x40d)](_0x3256db,_0x3287a8,_0x3af192,_0x1c924a),_0x3bbf10=Te[_0x23c5b2(0x40d)](_0x4f1e48,_0x34f739,_0x3af192,_0x1c924a),{columnHeaderHeightAndMarginTop:_0x4b29a0}=_0x1c924a,{startX:_0x52b9d5,startY:_0x2765ce}=_0x5dcd32,{endX:_0x20f401,endY:_0x187d32}=_0x3bbf10,_0x322c83=_0x20f401-_0x52b9d5,_0x3c1496=_0x187d32-_0x2765ce,_0x23730d={'labelPosition':_0x2765ce-_0x4b29a0>=Ne?_0x23c5b2(0x5ad):_0x23c5b2(0x2db),'sheetID':_0x3ea873,'range':_0x11f599,'color':_0x4edd6e,'name':_0x5d1675,'selection':_0x41f6fd,'left':_0x52b9d5,'top':_0x2765ce,'width':_0x322c83,'height':_0x3c1496,'evented':!0x1,'zIndex':ps};return new mn(_0x5d1675,_0x23730d);});_0x3af192[_0x21f976(0x67f)](_0x3fb361,us),this[_0x21f976(0x668)]=new Set(_0x3fb361);}[_0x37a374(0x331)](){const _0x3c2c26=_0x37a374;var _0x4ccdd2;(_0x4ccdd2=this['_cursors'])==null||_0x4ccdd2[_0x3c2c26(0x278)](_0x2594cf=>_0x2594cf['dispose']());}[_0x37a374(0x328)](){const _0x5425cb=_0x37a374;return Te[_0x5425cb(0x626)](this[_0x5425cb(0x56b)][_0x5425cb(0x226)],this['_context']);}};St=ms([rt(0x1,a['Inject'](Te[_0x37a374(0x5bb)])),rt(0x2,a[_0x37a374(0x629)](Oe)),rt(0x3,a[_0x37a374(0x629)](a[_0x37a374(0x559)]))],St);function Ss(_0x57f6cb){const _0x544de8=_0x37a374,_0x2f68de=new Map();return _0x57f6cb[_0x544de8(0x278)](_0x3aa953=>{const _0x17a5b4=_0x544de8;if(_0x2f68de[_0x17a5b4(0x244)](_0x3aa953[_0x17a5b4(0x3f6)])){const _0x317cb3=_0x2f68de[_0x17a5b4(0x5bf)](_0x3aa953[_0x17a5b4(0x3f6)]);_0x317cb3['name']+=',\x20'+_0x3aa953[_0x17a5b4(0x21c)];}else _0x2f68de[_0x17a5b4(0x5d1)](_0x3aa953['selection'],_0x3aa953);}),Array['from'](_0x2f68de[_0x544de8(0x353)]());}var ee=function(){const _0x192ea4=_0x37a374;return ee=Object[_0x192ea4(0x398)]||function(_0x5c2fe6){const _0x263f81=_0x192ea4;for(var _0x20dba6,_0x3654ca=0x1,_0x1e1ba1=arguments[_0x263f81(0x330)];_0x3654ca<_0x1e1ba1;_0x3654ca++){_0x20dba6=arguments[_0x3654ca];for(var _0x5a7534 in _0x20dba6)Object[_0x263f81(0x420)][_0x263f81(0x658)]['call'](_0x20dba6,_0x5a7534)&&(_0x5c2fe6[_0x5a7534]=_0x20dba6[_0x5a7534]);}return _0x5c2fe6;},ee[_0x192ea4(0x4ae)](this,arguments);},gs=function(_0x5244ee,_0x11bc04){const _0x3ba793=_0x37a374;var _0x3c220c={};for(var _0x621d50 in _0x5244ee)Object['prototype']['hasOwnProperty'][_0x3ba793(0x1fa)](_0x5244ee,_0x621d50)&&_0x11bc04[_0x3ba793(0x23a)](_0x621d50)<0x0&&(_0x3c220c[_0x621d50]=_0x5244ee[_0x621d50]);if(_0x5244ee!=null&&typeof Object['getOwnPropertySymbols']==_0x3ba793(0x556)){for(var _0x1acaf3=0x0,_0x621d50=Object['getOwnPropertySymbols'](_0x5244ee);_0x1acaf3<_0x621d50['length'];_0x1acaf3++)_0x11bc04[_0x3ba793(0x23a)](_0x621d50[_0x1acaf3])<0x0&&Object[_0x3ba793(0x420)][_0x3ba793(0x1e5)][_0x3ba793(0x1fa)](_0x5244ee,_0x621d50[_0x1acaf3])&&(_0x3c220c[_0x621d50[_0x1acaf3]]=_0x5244ee[_0x621d50[_0x1acaf3]]);}return _0x3c220c;},Ot=z['forwardRef'](function(_0x3ce58f,_0x19aad6){const _0x1c4ffb=_0x37a374;var _0x5cd7ae=_0x3ce58f[_0x1c4ffb(0x36a)],_0x2b5ed0=_0x3ce58f['id'],_0x38d704=_0x3ce58f[_0x1c4ffb(0x306)],_0x546be9=_0x3ce58f[_0x1c4ffb(0x24a)],_0x117ac5=gs(_0x3ce58f,[_0x1c4ffb(0x36a),'id',_0x1c4ffb(0x306),_0x1c4ffb(0x24a)]),_0x39924a=_0x1c4ffb(0x51b)[_0x1c4ffb(0x315)](_0x2b5ed0,'\x20')['concat'](_0x38d704||'')[_0x1c4ffb(0x450)](),_0x45bfbe=z[_0x1c4ffb(0x341)]('_'[_0x1c4ffb(0x315)](Es()));return pn(_0x5cd7ae,''[_0x1c4ffb(0x315)](_0x2b5ed0),{'defIds':_0x5cd7ae[_0x1c4ffb(0x311)],'idSuffix':_0x45bfbe[_0x1c4ffb(0x29b)]},ee({'ref':_0x19aad6,'className':_0x39924a},_0x117ac5),_0x546be9);});function pn(_0x46d1b0,_0x1b4871,_0x1a7461,_0x452fb2,_0x597639){const _0x1af853=_0x37a374;return z[_0x1af853(0x336)](_0x46d1b0[_0x1af853(0x1e4)],ee(ee({'key':_0x1b4871},Is(_0x46d1b0,_0x1a7461,_0x597639)),_0x452fb2),(Cs(_0x46d1b0,_0x1a7461)[_0x1af853(0x5fb)]||[])[_0x1af853(0x323)](function(_0xcb7793,_0x5ed244){const _0x2bf684=_0x1af853;return pn(_0xcb7793,''[_0x2bf684(0x315)](_0x1b4871,'-')[_0x2bf684(0x315)](_0x46d1b0['tag'],'-')['concat'](_0x5ed244),_0x1a7461,void 0x0,_0x597639);}));}function Is(_0xb75d6,_0x62320,_0x3b2fb4){const _0x4459b1=_0x37a374;var _0x22ffb1=ee({},_0xb75d6[_0x4459b1(0x47f)]);_0x3b2fb4!=null&&_0x3b2fb4[_0x4459b1(0x25e)]&&_0x22ffb1[_0x4459b1(0x2dc)]===_0x4459b1(0x25e)&&(_0x22ffb1[_0x4459b1(0x2dc)]=_0x3b2fb4[_0x4459b1(0x25e)]);var _0xbf28eb=_0x62320['defIds'];return!_0xbf28eb||_0xbf28eb['length']===0x0||(_0xb75d6[_0x4459b1(0x1e4)]==='use'&&_0x22ffb1[_0x4459b1(0x56a)]&&(_0x22ffb1[_0x4459b1(0x56a)]=_0x22ffb1[_0x4459b1(0x56a)]+_0x62320[_0x4459b1(0x1c1)]),Object[_0x4459b1(0x530)](_0x22ffb1)[_0x4459b1(0x278)](function(_0x39a685){const _0x1f294c=_0x4459b1;var _0x4d3be1=_0x39a685[0x0],_0x34f00d=_0x39a685[0x1];typeof _0x34f00d=='string'&&(_0x22ffb1[_0x4d3be1]=_0x34f00d[_0x1f294c(0x2a2)](/url\(#(.*)\)/,_0x1f294c(0x4c7)['concat'](_0x62320['idSuffix'],')')));})),_0x22ffb1;}function Cs(_0x5d3847,_0x3eee06){const _0x266cab=_0x37a374;var _0x24b803,_0x54f8e3=_0x3eee06[_0x266cab(0x311)];return!_0x54f8e3||_0x54f8e3['length']===0x0?_0x5d3847:_0x5d3847[_0x266cab(0x1e4)]==='defs'&&(!((_0x24b803=_0x5d3847[_0x266cab(0x5fb)])===null||_0x24b803===void 0x0)&&_0x24b803['length'])?ee(ee({},_0x5d3847),{'children':_0x5d3847['children'][_0x266cab(0x323)](function(_0xda6e31){const _0x5a1e8a=_0x266cab;return typeof _0xda6e31[_0x5a1e8a(0x47f)]['id']==_0x5a1e8a(0x3de)&&_0x54f8e3&&_0x54f8e3[_0x5a1e8a(0x23a)](_0xda6e31[_0x5a1e8a(0x47f)]['id'])>-0x1?ee(ee({},_0xda6e31),{'attrs':ee(ee({},_0xda6e31[_0x5a1e8a(0x47f)]),{'id':_0xda6e31[_0x5a1e8a(0x47f)]['id']+_0x3eee06['idSuffix']})}):_0xda6e31;})}):_0x5d3847;}function Es(){const _0x5ddd59=_0x37a374;return Math[_0x5ddd59(0x59c)]()[_0x5ddd59(0x4d2)](0x24)[_0x5ddd59(0x533)](0x2,0x8);}Ot[_0x37a374(0x4c1)]=_0x37a374(0x599);var bs={'tag':_0x37a374(0x2ce),'attrs':{'fill':_0x37a374(0x59d),'viewBox':_0x37a374(0x39f),'width':_0x37a374(0x5db),'height':_0x37a374(0x5db)},'children':[{'tag':'g','attrs':{'clipPath':_0x37a374(0x4f7)},'children':[{'tag':_0x37a374(0x339),'attrs':{'stroke':'currentColor','d':_0x37a374(0x220),'strokeLinecap':_0x37a374(0x231),'strokeLinejoin':_0x37a374(0x231),'strokeWidth':1.2}}]},{'tag':_0x37a374(0x627),'attrs':{},'children':[{'tag':_0x37a374(0x491),'attrs':{'id':_0x37a374(0x23c)},'children':[{'tag':_0x37a374(0x339),'attrs':{'fill':_0x37a374(0x413),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Sn=z[_0x37a374(0x264)](function(_0x3b0fea,_0x470dce){const _0x20946e=_0x37a374;return z['createElement'](Ot,Object[_0x20946e(0x398)]({},_0x3b0fea,{'id':'off-line-single','ref':_0x470dce,'icon':bs}));});Sn[_0x37a374(0x4c1)]=_0x37a374(0x502);var Ts={'tag':'svg','attrs':{'fill':_0x37a374(0x59d),'viewBox':_0x37a374(0x47d),'width':_0x37a374(0x5db),'height':_0x37a374(0x5db)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x37a374(0x339),'attrs':{'stroke':'currentColor','d':_0x37a374(0x465),'strokeLinecap':_0x37a374(0x231),'strokeLinejoin':_0x37a374(0x231),'strokeWidth':1.2}}]},{'tag':_0x37a374(0x627),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x37a374(0x339),'attrs':{'fill':_0x37a374(0x413),'d':_0x37a374(0x301),'transform':_0x37a374(0x4d8)}}]}]}],'defIds':['on-line-single_clip0_910_349']},gn=z[_0x37a374(0x264)](function(_0x20a39b,_0x5ea8a1){const _0x5b0d84=_0x37a374;return z[_0x5b0d84(0x336)](Ot,Object[_0x5b0d84(0x398)]({},_0x20a39b,{'id':_0x5b0d84(0x65d),'ref':_0x5ea8a1,'icon':Ts}));});gn[_0x37a374(0x4c1)]=_0x37a374(0x4ee);function In(_0x4a4a39){const _0x1fb5b9=_0x37a374;var _0x4728c4,_0xc4da25,_0x314f66='';if(typeof _0x4a4a39==_0x1fb5b9(0x3de)||typeof _0x4a4a39==_0x1fb5b9(0x308))_0x314f66+=_0x4a4a39;else{if(typeof _0x4a4a39==_0x1fb5b9(0x48a)){if(Array[_0x1fb5b9(0x338)](_0x4a4a39)){var _0x4e8907=_0x4a4a39['length'];for(_0x4728c4=0x0;_0x4728c4<_0x4e8907;_0x4728c4++)_0x4a4a39[_0x4728c4]&&(_0xc4da25=In(_0x4a4a39[_0x4728c4]))&&(_0x314f66&&(_0x314f66+='\x20'),_0x314f66+=_0xc4da25);}else{for(_0xc4da25 in _0x4a4a39)_0x4a4a39[_0xc4da25]&&(_0x314f66&&(_0x314f66+='\x20'),_0x314f66+=_0xc4da25);}}}return _0x314f66;}function Rs(){const _0x1ad24c=_0x37a374;for(var _0x215da8,_0x4212f1,_0x5cb8d3=0x0,_0x547b89='',_0x409f8b=arguments[_0x1ad24c(0x330)];_0x5cb8d3<_0x409f8b;_0x5cb8d3++)(_0x215da8=arguments[_0x5cb8d3])&&(_0x4212f1=In(_0x215da8))&&(_0x547b89&&(_0x547b89+='\x20'),_0x547b89+=_0x4212f1);return _0x547b89;}const ys=_0x37a374(0x218),Os=_0x37a374(0x216),Ds=_0x37a374(0x479),ws='univer-online',Ps='univer-offline',Ue={'onlineStatusIcon':ys,'onlineStatusTitle':Os,'onlineStatus':Ds,'online':ws,'offline':Ps};function Us(_0x4364a4){const _0x3fe4a3=_0x37a374;switch(_0x4364a4){case q[_0x3fe4a3(0x320)]:return'collabStatus.offline';case q[_0x3fe4a3(0x43c)]:return _0x3fe4a3(0x4bc);case q[_0x3fe4a3(0x334)]:return _0x3fe4a3(0x397);case q['NOT_COLLAB']:return _0x3fe4a3(0x3d7);case q[_0x3fe4a3(0x5b7)]:case q[_0x3fe4a3(0x672)]:return _0x3fe4a3(0x484);case q[_0x3fe4a3(0x2b9)]:case q['PENDING']:return'collabStatus.synced';}}function Cn(_0x426678){const _0x442d6d=_0x37a374,{status$:_0x36af28}=_0x426678,_0x6482ff=te[_0x442d6d(0x423)](_0x36af28,q[_0x442d6d(0x4a3)]),_0xebdf1c=a['useDependency'](a[_0x442d6d(0x52f)]),_0x5e3131=a[_0x442d6d(0x588)](exports[_0x442d6d(0x5e2)]),_0x58d37e=_0x6482ff!==q[_0x442d6d(0x320)],_0x509bb5=_0xebdf1c['t'](Us(_0x6482ff)),_0x4e89aa=Rs(Ue[_0x442d6d(0x1e0)],{[Ue['online']]:_0x58d37e,[Ue[_0x442d6d(0x34e)]]:!_0x58d37e}),_0xdc628=_0x58d37e?z[_0x442d6d(0x336)](gn,null):z[_0x442d6d(0x336)](Sn,null),_0x4c5584=z[_0x442d6d(0x2b8)](()=>{const _0x47ab90=_0x442d6d;_0x58d37e||_0x5e3131[_0x47ab90(0x3dc)]();},[_0x58d37e,_0x5e3131]);function _0x19aaed(){const _0x37a5b7=_0x442d6d;return z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':_0x4e89aa,'onClick':_0x4c5584},z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':Ue[_0x37a5b7(0x431)]},_0xdc628),z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':Ue['onlineStatusTitle']},_0x509bb5));}return _0x58d37e?_0x19aaed():z[_0x442d6d(0x336)](Se[_0x442d6d(0x430)],{'title':_0xebdf1c['t'](_0x442d6d(0x33e))},_0x19aaed());}var Ms=Object[_0x37a374(0x55e)],As=Object[_0x37a374(0x4a5)],Ns=(_0x3b33aa,_0x5670fd,_0x36cb25,_0x5b9c3c)=>{const _0x3798fb=_0x37a374;for(var _0x5e1bef=_0x5b9c3c>0x1?void 0x0:_0x5b9c3c?As(_0x5670fd,_0x36cb25):_0x5670fd,_0x34981b=_0x3b33aa[_0x3798fb(0x330)]-0x1,_0x41478e;_0x34981b>=0x0;_0x34981b--)(_0x41478e=_0x3b33aa[_0x34981b])&&(_0x5e1bef=(_0x5b9c3c?_0x41478e(_0x5670fd,_0x36cb25,_0x5e1bef):_0x41478e(_0x5e1bef))||_0x5e1bef);return _0x5b9c3c&&_0x5e1bef&&Ms(_0x5670fd,_0x36cb25,_0x5e1bef),_0x5e1bef;},je=(_0x1b53ee,_0x46c599)=>(_0x3de44a,_0x209ae8)=>_0x46c599(_0x3de44a,_0x209ae8,_0x1b53ee);exports[_0x37a374(0x4b3)]=class extends a[_0x37a374(0x65c)]{constructor(_0x153a70,_0x47f253,_0x470f23,_0x502cad){const _0x240668=_0x37a374;super(),I(this,_0x240668(0x4e8),new A[(_0x240668(0x441))](q[_0x240668(0x4a3)])),(this[_0x240668(0x1d4)]=_0x153a70,this[_0x240668(0x4b5)]=_0x47f253,this[_0x240668(0x58f)]=_0x470f23,this['_collaborationController']=_0x502cad,this[_0x240668(0x5d9)](),this[_0x240668(0x436)]());}['_initStatusListener'](){const _0x428416=_0x37a374;this[_0x428416(0x4d6)](this['_univerInstanceService'][_0x428416(0x628)][_0x428416(0x4d7)](A[_0x428416(0x5e0)](()=>{const _0x1d46cf=_0x428416,_0x244743=this['_univerInstanceService'][_0x1d46cf(0x2cf)]();return _0x244743?this['_collaborationController'][_0x1d46cf(0x5ce)](_0x244743[_0x1d46cf(0x615)]()):A['of'](null);}),A[_0x428416(0x5e0)](_0x4f40b1=>_0x4f40b1?_0x4f40b1[_0x428416(0x238)]:A['of'](q[_0x428416(0x4a3)])))['subscribe'](_0x1bf077=>{const _0x30d010=_0x428416;this[_0x30d010(0x4e8)][_0x30d010(0x24e)](_0x1bf077);}));}[_0x37a374(0x5d9)](){const _0x8a6acf=_0x37a374;this[_0x8a6acf(0x4d6)](this[_0x8a6acf(0x4b5)][_0x8a6acf(0x5b4)](te[_0x8a6acf(0x507)][_0x8a6acf(0x1cd)],()=>a[_0x8a6acf(0x3af)](Ls({'status$':this[_0x8a6acf(0x4e8)][_0x8a6acf(0x483)]()}),this['_injector'])));}},exports[_0x37a374(0x4b3)]=Ns([je(0x0,a['IUniverInstanceService']),je(0x1,te[_0x37a374(0x3ee)]),je(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),je(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x511)]))],exports[_0x37a374(0x4b3)]);function Ls(_0x486255){const {status$:_0x5552ea}=_0x486255;return function(){const _0x547e4c=_0x513c;return z[_0x547e4c(0x336)](Cn,{'status$':_0x5552ea});};}const Dt=a[_0x37a374(0x3e0)]('uni.network.url-service');var xs=Object[_0x37a374(0x55e)],$s=Object['getOwnPropertyDescriptor'],js=(_0x147d3c,_0x2be9f7,_0x3c10c0,_0x4d0b4a)=>{const _0x1f044b=_0x37a374;for(var _0x5508a7=_0x4d0b4a>0x1?void 0x0:_0x4d0b4a?$s(_0x2be9f7,_0x3c10c0):_0x2be9f7,_0x429dbf=_0x147d3c[_0x1f044b(0x330)]-0x1,_0x4c907e;_0x429dbf>=0x0;_0x429dbf--)(_0x4c907e=_0x147d3c[_0x429dbf])&&(_0x5508a7=(_0x4d0b4a?_0x4c907e(_0x2be9f7,_0x3c10c0,_0x5508a7):_0x4c907e(_0x5508a7))||_0x5508a7);return _0x4d0b4a&&_0x5508a7&&xs(_0x2be9f7,_0x3c10c0,_0x5508a7),_0x5508a7;},be=(_0x34c208,_0x1c0d44)=>(_0xb39d0b,_0x43e089)=>_0x1c0d44(_0xb39d0b,_0x43e089,_0x34c208);exports[_0x37a374(0x61a)]=class extends a['RxDisposable']{constructor(_0x251547,_0x47fa10,_0x51761a,_0xe3fd06,_0x1fe511,_0x2fa04f){const _0x52e0ac=_0x37a374;super(),this[_0x52e0ac(0x1f8)]=_0x251547,this[_0x52e0ac(0x58a)]=_0x47fa10,this[_0x52e0ac(0x48f)]=_0x51761a,this[_0x52e0ac(0x1fd)]=_0xe3fd06,this[_0x52e0ac(0x52a)]=_0x1fe511,_0x2fa04f?_0x2fa04f==null||_0x2fa04f[_0x52e0ac(0x3ea)]()[_0x52e0ac(0x23e)](()=>this['_init']()):(this[_0x52e0ac(0x58a)][_0x52e0ac(0x643)](_0x52e0ac(0x396),_0x52e0ac(0x28a)),this[_0x52e0ac(0x3c3)]());}async[_0x37a374(0x3c3)](){const _0x2c18d=_0x37a374,_0x44d758=this[_0x2c18d(0x1f8)][_0x2c18d(0x48e)](_0x2c18d(0x226)),_0x42f4f4=this[_0x2c18d(0x1f8)]['getParam']('type');if(!_0x44d758||!_0x42f4f4){this[_0x2c18d(0x58a)][_0x2c18d(0x643)]('[DataLoaderController]',_0x2c18d(0x345));return;}switch(Number(_0x42f4f4)){case se['UNIVER_SHEET']:{const _0x19d31d=await this[_0x2c18d(0x3a8)](_0x44d758);this[_0x2c18d(0x42c)](_0x19d31d);break;}case se[_0x2c18d(0x619)]:{await this[_0x2c18d(0x47a)](_0x44d758);break;}default:{this[_0x2c18d(0x58a)][_0x2c18d(0x237)](_0x2c18d(0x396),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x37a374(0x42c)](_0xadc861){const _0x2de6e5=_0x37a374;await this[_0x2de6e5(0x386)](_0xadc861),_0xadc861[_0x2de6e5(0x623)][_0x2de6e5(0x4d7)](A[_0x2de6e5(0x27d)](this['dispose$']))['subscribe'](_0x69c026=>{const _0x5db54a=_0x2de6e5;_0x69c026&&this[_0x5db54a(0x2f3)](_0x69c026);}),this['_urlService'][_0x2de6e5(0x29f)][_0x2de6e5(0x4d7)](A[_0x2de6e5(0x27d)](this['dispose$']))[_0x2de6e5(0x274)](()=>this[_0x2de6e5(0x386)](_0xadc861));}[_0x37a374(0x2f3)](_0x527da0,_0x2497b6=!0x1){const _0x3d0da0=_0x37a374,_0x3bdbef=this['_urlService']['getParam'](_0x3d0da0(0x291));_0x527da0['getSheetId']()!==_0x3bdbef&&this[_0x3d0da0(0x1f8)][_0x3d0da0(0x4f8)](_0x3d0da0(0x291),_0x527da0[_0x3d0da0(0x261)](),_0x2497b6);}async['_updateSubUnitFromURLParams'](_0x74a850){const _0x1ddc83=_0x37a374;var _0x4dc521;const _0x1cd507=this['_urlService'][_0x1ddc83(0x48e)](_0x1ddc83(0x291));if(!_0x1cd507||!_0x74a850[_0x1ddc83(0x287)](_0x1cd507)){const _0x7e7db3=_0x74a850[_0x1ddc83(0x32e)]()[0x0],_0x4eb621=_0x74a850[_0x1ddc83(0x287)](_0x7e7db3);if(!_0x4eb621)return;this[_0x1ddc83(0x2f3)](_0x4eb621,!0x0),await this[_0x1ddc83(0x48f)][_0x1ddc83(0x50d)](k[_0x1ddc83(0x538)]['id'],{'unitId':_0x74a850[_0x1ddc83(0x615)](),'subUnitId':_0x7e7db3});return;}((_0x4dc521=_0x74a850[_0x1ddc83(0x25a)]())==null?void 0x0:_0x4dc521[_0x1ddc83(0x261)]())!==_0x1cd507&&await this[_0x1ddc83(0x48f)][_0x1ddc83(0x50d)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x74a850[_0x1ddc83(0x615)](),'subUnitId':_0x1cd507});}async['_loadSheet'](_0x210eb7){const _0x27ba49=_0x37a374;let _0x274114=0x0;const _0x34ed8f=await this[_0x27ba49(0x1fd)][_0x27ba49(0x3b8)](_0x210eb7);return _0x34ed8f&&(_0x34ed8f['awaitingChangeset']||_0x34ed8f[_0x27ba49(0x579)][_0x27ba49(0x330)]!==0x0)&&(_0x274114=_0x34ed8f[_0x27ba49(0x3e6)]),_0x274114===0x0&&this['_logService'][_0x27ba49(0x643)](_0x27ba49(0x396),_0x27ba49(0x206)),this[_0x27ba49(0x52a)][_0x27ba49(0x43f)](_0x210eb7,_0x274114);}async['_loadDoc'](_0x411f1d){const _0x44524c=_0x37a374;let _0xbfd16a=0x0;const _0x793c90=await this['_localCacheService']['loadOfflineData'](_0x411f1d);return _0x793c90&&(_0x793c90[_0x44524c(0x1fb)]||_0x793c90[_0x44524c(0x579)][_0x44524c(0x330)]!==0x0)&&(_0xbfd16a=_0x793c90[_0x44524c(0x3e6)]),_0xbfd16a===0x0&&this[_0x44524c(0x58a)][_0x44524c(0x643)](_0x44524c(0x396),_0x44524c(0x206)),this[_0x44524c(0x52a)][_0x44524c(0x4e2)](_0x411f1d,_0xbfd16a);}},exports[_0x37a374(0x61a)]=js([be(0x0,Dt),be(0x1,a[_0x37a374(0x217)]),be(0x2,a['ICommandService']),be(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),be(0x4,a[_0x37a374(0x629)](p['SnapshotService'])),be(0x5,a[_0x37a374(0x673)](Ln[_0x37a374(0x3ff)]))],exports[_0x37a374(0x61a)]);var Hs=Object[_0x37a374(0x55e)],Bs=Object[_0x37a374(0x4a5)],ks=(_0x1accca,_0x5da12c,_0x18eca1,_0x145bd4)=>{for(var _0x525fb0=_0x145bd4>0x1?void 0x0:_0x145bd4?Bs(_0x5da12c,_0x18eca1):_0x5da12c,_0x274cee=_0x1accca['length']-0x1,_0xd81cb6;_0x274cee>=0x0;_0x274cee--)(_0xd81cb6=_0x1accca[_0x274cee])&&(_0x525fb0=(_0x145bd4?_0xd81cb6(_0x5da12c,_0x18eca1,_0x525fb0):_0xd81cb6(_0x525fb0))||_0x525fb0);return _0x145bd4&&_0x525fb0&&Hs(_0x5da12c,_0x18eca1,_0x525fb0),_0x525fb0;},Bt=(_0x2fba47,_0x3fb072)=>(_0x54073f,_0x50c9fa)=>_0x3fb072(_0x54073f,_0x50c9fa,_0x2fba47);const Ws='DEFAULT_FILE_NAME',Fs=_0x37a374(0x373);let Ve=class extends a[_0x37a374(0x65c)]{constructor(_0x357cc8,_0x1842b7){const _0x34da00=_0x37a374;super(),this[_0x34da00(0x1d4)]=_0x357cc8,this['_configService']=_0x1842b7,this['_init']();}[_0x37a374(0x3c3)](){const _0x36d9fc=_0x37a374;this['disposeWithMe'](this[_0x36d9fc(0x1d4)][_0x36d9fc(0x628)]['subscribe'](()=>{const _0x22aa01=_0x36d9fc;var _0xcd8d0c;const _0x1512a5=this[_0x22aa01(0x1d4)][_0x22aa01(0x2cf)]();let _0x15280d=(_0xcd8d0c=this[_0x22aa01(0x3e7)]['getConfig'](Ws))!=null?_0xcd8d0c:Fs;_0x1512a5 instanceof a[_0x22aa01(0x482)]&&(_0x15280d=_0x1512a5[_0x22aa01(0x21c)]),document[_0x22aa01(0x3e3)]=_0x15280d;}));}};Ve=ks([Bt(0x0,a[_0x37a374(0x662)]),Bt(0x1,a[_0x37a374(0x30b)])],Ve);var Vs=Object[_0x37a374(0x55e)],Gs=Object[_0x37a374(0x4a5)],Ys=(_0x22d10f,_0x432764,_0x82f7e0,_0x44a743)=>{const _0x579d91=_0x37a374;for(var _0xc626e4=_0x44a743>0x1?void 0x0:_0x44a743?Gs(_0x432764,_0x82f7e0):_0x432764,_0x200b73=_0x22d10f[_0x579d91(0x330)]-0x1,_0x9ee4b3;_0x200b73>=0x0;_0x200b73--)(_0x9ee4b3=_0x22d10f[_0x200b73])&&(_0xc626e4=(_0x44a743?_0x9ee4b3(_0x432764,_0x82f7e0,_0xc626e4):_0x9ee4b3(_0xc626e4))||_0xc626e4);return _0x44a743&&_0xc626e4&&Vs(_0x432764,_0x82f7e0,_0xc626e4),_0xc626e4;},ot=(_0x31b1e6,_0xb1c742)=>(_0x4b0518,_0x15263d)=>_0xb1c742(_0x4b0518,_0x15263d,_0x31b1e6);let Ge=class{constructor(_0x2e1510,_0x1c4fb5,_0x475146){const _0x54ce3d=_0x37a374;this[_0x54ce3d(0x3e7)]=_0x2e1510,this[_0x54ce3d(0x20d)]=_0x1c4fb5,this[_0x54ce3d(0x235)]=_0x475146,this[_0x54ce3d(0x5ca)]();}[_0x37a374(0x5ca)](){const _0x241103=_0x37a374;this[_0x241103(0x20d)][_0x241103(0x417)]({'priority':0x1,'interceptor':(_0x1e1b9b,_0x2ba2ef)=>_0x2ba2ef(_0x1e1b9b)['pipe'](A[_0x241103(0x43b)](async _0x2477f2=>{const _0x18369a=_0x241103,_0x405ccb=_0x2477f2;if(_0x405ccb[_0x18369a(0x58b)]===0x191&&window['confirm'](this['localeService']['t'](_0x18369a(0x309)))){const _0x198e44=window[_0x18369a(0x39b)](window['location'][_0x18369a(0x310)]);window[_0x18369a(0x34c)][_0x18369a(0x310)]=this['_getLoginPath']()+_0x18369a(0x204)+_0x198e44;}return _0x405ccb;}))});}[_0x37a374(0x4b4)](){const _0x561e4b=_0x37a374;var _0x2dfa36,_0x3e2bf1;const _0x1dff6c=this[_0x561e4b(0x3e7)][_0x561e4b(0x37d)](on),_0x2a6634=this[_0x561e4b(0x3e7)][_0x561e4b(0x37d)](ne);return(_0x3e2bf1=(_0x2dfa36=_0x2a6634==null?void 0x0:_0x2a6634[_0x561e4b(0x1ff)])!=null?_0x2dfa36:_0x1dff6c)!=null?_0x3e2bf1:Gn;}};Ge=Ys([ot(0x0,a[_0x37a374(0x30b)]),ot(0x1,a['Inject'](Q[_0x37a374(0x34f)])),ot(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x52f)]))],Ge);var Ks=Object[_0x37a374(0x55e)],qs=Object[_0x37a374(0x4a5)],zs=(_0x2cc481,_0x27f6da,_0x26b0fc,_0x430447)=>{const _0x285ec8=_0x37a374;for(var _0x25fa56=_0x430447>0x1?void 0x0:_0x430447?qs(_0x27f6da,_0x26b0fc):_0x27f6da,_0x437745=_0x2cc481[_0x285ec8(0x330)]-0x1,_0x31239b;_0x437745>=0x0;_0x437745--)(_0x31239b=_0x2cc481[_0x437745])&&(_0x25fa56=(_0x430447?_0x31239b(_0x27f6da,_0x26b0fc,_0x25fa56):_0x31239b(_0x25fa56))||_0x25fa56);return _0x430447&&_0x25fa56&&Ks(_0x27f6da,_0x26b0fc,_0x25fa56),_0x25fa56;},kt=(_0x24e380,_0x8541af)=>(_0x4d476d,_0x15560a)=>_0x8541af(_0x4d476d,_0x15560a,_0x24e380);const En='AUTHZ_URL_KEY',Xs=_0x37a374(0x508);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x3c021e,_0x41e4d7){const _0x67dd2c=_0x37a374;super(),this[_0x67dd2c(0x624)]=_0x3c021e,this[_0x67dd2c(0x3e7)]=_0x41e4d7,this[_0x67dd2c(0x279)]();}[_0x37a374(0x279)](){const _0x94d9a5=_0x37a374,_0x577b24=this;this[_0x94d9a5(0x4d6)](this[_0x94d9a5(0x624)][_0x94d9a5(0x417)]({'priority':0x3e7,'interceptor':Q[_0x94d9a5(0x35d)]({'isMatch'(_0x3b7ba4){const _0x3943a9=_0x94d9a5;var _0x568ba9;if(_0x3b7ba4[_0x3943a9(0x676)]===_0x3943a9(0x598)&&((_0x568ba9=_0x3b7ba4[_0x3943a9(0x540)])!=null&&_0x568ba9[_0x3943a9(0x360)])){const {objectID:_0x4e9c37,objectType:_0xbd3209}=_0x3b7ba4['requestParams'][_0x3943a9(0x360)]||{};if(!_0x4e9c37||_0xbd3209===void 0x0)return!0x1;const _0x1ba6d1=_0x577b24[_0x3943a9(0x254)]()+'/'+_0xbd3209+'/object/'+_0x4e9c37+_0x3943a9(0x5fe);if(_0x3b7ba4[_0x3943a9(0x475)]===_0x1ba6d1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xc2a9d8){const _0x1aa505=_0x94d9a5;var _0x299081;return(_0x299081=_0xc2a9d8[_0x1aa505(0x540)])==null?void 0x0:_0x299081['body'];},'mergeParamsToRequest'(_0x3dc781,_0xdc0d05){const _0x20d7a6=_0x94d9a5,_0x5fae01=_0x577b24['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0xef19f3=_0x3dc781[_0x20d7a6(0x20e)]((_0x2781be,_0x18f268)=>{const _0x16850e=_0x20d7a6,{unitID:_0x2f0563,objectID:_0x470b27,objectType:_0x505045,actions:_0x5c3a51}=_0x18f268;return _0x2781be[_0x2f0563]||(_0x2781be[_0x2f0563]={}),_0x2781be[_0x2f0563][_0x470b27]||(_0x2781be[_0x2f0563][_0x470b27]={'objectID':_0x470b27,'objectType':_0x505045,'actions':[]}),_0x2781be[_0x2f0563][_0x470b27][_0x16850e(0x3b6)]['push'](..._0x5c3a51),_0x2781be;},{}),_0x143b33=[];for(const _0xc2795e in _0xef19f3)for(const _0x7845a1 in _0xef19f3[_0xc2795e]){const {actions:_0xc98f46,objectType:_0x19ed29}=_0xef19f3[_0xc2795e][_0x7845a1],_0x24708b=[...new Set(_0xc98f46)];_0x143b33[_0x20d7a6(0x257)]({'unitID':_0xc2795e,'objectID':_0x7845a1,'objectType':_0x19ed29,'actions':_0x24708b});}return new Q[(_0x20d7a6(0x2cb))](_0x20d7a6(0x598),_0x5fae01,{'headers':_0xdc0d05[_0x20d7a6(0x356)],'withCredentials':_0xdc0d05[_0x20d7a6(0x2a1)],'responseType':_0xdc0d05[_0x20d7a6(0x50c)],'body':{'requests':_0x143b33}});}},{'distributeResult'(_0x37b50b,_0x2ada7e){const _0x15bc11=_0x94d9a5,{objectActions:_0x4a5a93}=_0x37b50b;return _0x2ada7e[_0x15bc11(0x323)](_0x2b45d3=>{const _0x37ff2e=_0x15bc11,{unitID:_0x3cece1,objectID:_0x489464,actions:_0x1db6a4}=_0x2b45d3,_0x1a30bb=_0x4a5a93[_0x37ff2e(0x437)](_0x22329a=>_0x22329a[_0x37ff2e(0x505)]===_0x3cece1&&_0x22329a[_0x37ff2e(0x5f3)]===_0x489464),_0x53b480=_0x1db6a4[_0x37ff2e(0x323)](_0x427683=>_0x1a30bb==null?void 0x0:_0x1a30bb['actions']['find'](_0x64eca1=>_0x64eca1[_0x37ff2e(0x1c6)]===_0x427683))[_0x37ff2e(0x434)](_0x2d50a7=>!!_0x2d50a7);return{'config':_0x2b45d3,'result':{'actions':_0x53b480,'error':_0x37b50b[_0x37ff2e(0x237)]}};});}})}));}[_0x37a374(0x254)](){const _0x4129dc=_0x37a374;var _0xf2394d,_0x309d98;const _0x3fea2c=this['_configService'][_0x4129dc(0x37d)](En),_0x347c5f=this[_0x4129dc(0x3e7)][_0x4129dc(0x37d)](ne);return(_0x309d98=(_0xf2394d=_0x347c5f==null?void 0x0:_0x347c5f[_0x4129dc(0x26c)])!=null?_0xf2394d:_0x3fea2c)!=null?_0x309d98:Xs;}async['create'](_0x43d404){const _0x3103a4=_0x37a374,_0x36ce18=this['_getAPIPrefixPath']()+'/'+_0x43d404[_0x3103a4(0x63f)]+_0x3103a4(0x5d8);return(await this[_0x3103a4(0x624)]['post'](_0x36ce18,{'body':_0x43d404}))[_0x3103a4(0x360)][_0x3103a4(0x5f3)]||'';}async[_0x37a374(0x3a5)](_0x587058){const _0x33e902=_0x37a374,_0x360f3b=this[_0x33e902(0x254)]()+_0x33e902(0x27b);return(await this[_0x33e902(0x624)][_0x33e902(0x302)](_0x360f3b,{'body':_0x587058}))['body'][_0x33e902(0x5b6)];}async[_0x37a374(0x60b)](_0x461a2e){const _0x30803b=_0x37a374,_0x50133b=this[_0x30803b(0x254)]()+'/'+_0x461a2e[_0x30803b(0x63f)]+_0x30803b(0x2b5)+_0x461a2e[_0x30803b(0x5f3)];await this[_0x30803b(0x624)][_0x30803b(0x661)](_0x50133b,{'body':_0x461a2e});}async[_0x37a374(0x4f0)](_0x2e05da){const _0x2c10e2=_0x37a374,_0x613fb2=this[_0x2c10e2(0x254)]()+'/'+_0x2e05da[_0x2c10e2(0x63f)]+'/object/'+_0x2e05da['objectID']+_0x2c10e2(0x5fe);return(await this['_HTTPService'][_0x2c10e2(0x302)](_0x613fb2,{'body':_0x2e05da}))[_0x2c10e2(0x360)]['actions'];}async[_0x37a374(0x5c5)](_0x41eb31){const _0x2303f1=_0x37a374,_0x3c4c10=this[_0x2303f1(0x254)]()+'/-/object/-/batch_allowed';return(await this[_0x2303f1(0x624)]['post'](_0x3c4c10,{'body':{'requests':_0x41eb31}}))[_0x2303f1(0x360)][_0x2303f1(0x4b8)];}async[_0x37a374(0x293)](_0x7a6e0a){const _0x149de4=_0x37a374,_0x4f89cd=this[_0x149de4(0x254)]()+'/'+_0x7a6e0a[_0x149de4(0x63f)]+'/role',_0x357311=await this[_0x149de4(0x624)]['post'](_0x4f89cd,{'body':_0x7a6e0a});return{'roles':_0x357311[_0x149de4(0x360)][_0x149de4(0x5ee)],'actions':_0x357311[_0x149de4(0x360)][_0x149de4(0x3b6)]};}async['deleteCollaborator'](_0x24b7af){const _0x23c3bf=_0x37a374,_0x3230bf=this[_0x23c3bf(0x254)]()+_0x23c3bf(0x460);await this[_0x23c3bf(0x624)][_0x23c3bf(0x412)](_0x3230bf,{'params':{'collaboratorID':_0x24b7af[_0x23c3bf(0x56f)],'objectID':_0x24b7af[_0x23c3bf(0x5f3)],'unitID':_0x24b7af[_0x23c3bf(0x505)]}});}async[_0x37a374(0x62f)](_0x3d5c6c){const _0x2a2ed8=_0x37a374,_0x1c2e57=this[_0x2a2ed8(0x254)]()+'/collaborator';await this['_HTTPService'][_0x2a2ed8(0x2e4)](_0x1c2e57,{'body':_0x3d5c6c});}async['createCollaborator'](_0x2c7cc7){const _0x42612a=_0x37a374,_0x430323=this[_0x42612a(0x254)]()+_0x42612a(0x460);await this[_0x42612a(0x624)][_0x42612a(0x302)](_0x430323,{'body':_0x2c7cc7});}async['listCollaborators'](_0x1f599b){const _0x2ff8f1=_0x37a374,_0x8f4a6a=this[_0x2ff8f1(0x254)]()+_0x2ff8f1(0x460);return(await this[_0x2ff8f1(0x624)][_0x2ff8f1(0x5bf)](_0x8f4a6a,{'params':{'objectID':_0x1f599b[_0x2ff8f1(0x5f3)],'unitID':_0x1f599b['unitID']}}))['body'][_0x2ff8f1(0x504)];}async[_0x37a374(0x4cc)](_0x5d0630){const _0x566065=_0x37a374,_0x5e7b8a=this[_0x566065(0x254)]()+_0x566065(0x460);await this[_0x566065(0x624)][_0x566065(0x661)](_0x5e7b8a,{'body':_0x5d0630});}},exports[_0x37a374(0x361)]=zs([kt(0x0,a['Inject'](Q[_0x37a374(0x34f)])),kt(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x30b)]))],exports[_0x37a374(0x361)]);var J=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function Le(_0x20eaea){const _0x4a534b=_0x37a374;return _0x20eaea&&_0x20eaea['__esModule']&&Object[_0x4a534b(0x420)]['hasOwnProperty'][_0x4a534b(0x1fa)](_0x20eaea,_0x4a534b(0x2ad))?_0x20eaea[_0x4a534b(0x2ad)]:_0x20eaea;}function Js(_0x1f065f){const _0x5165da=_0x37a374;if(_0x1f065f[_0x5165da(0x32f)])return _0x1f065f;var _0x20929f=_0x1f065f[_0x5165da(0x2ad)];if(typeof _0x20929f==_0x5165da(0x556)){var _0x52d138=function _0x2e92eb(){const _0x46626a=_0x5165da;return this instanceof _0x2e92eb?Reflect[_0x46626a(0x284)](_0x20929f,arguments,this[_0x46626a(0x21f)]):_0x20929f[_0x46626a(0x4ae)](this,arguments);};_0x52d138['prototype']=_0x20929f['prototype'];}else _0x52d138={};return Object['defineProperty'](_0x52d138,_0x5165da(0x32f),{'value':!0x0}),Object[_0x5165da(0x67c)](_0x1f065f)[_0x5165da(0x278)](function(_0x321813){const _0x1e68de=_0x5165da;var _0x293708=Object[_0x1e68de(0x4a5)](_0x1f065f,_0x321813);Object[_0x1e68de(0x55e)](_0x52d138,_0x321813,_0x293708[_0x1e68de(0x5bf)]?_0x293708:{'enumerable':!0x0,'get':function(){return _0x1f065f[_0x321813];}});}),_0x52d138;}var bn={'exports':{}};function Zs(_0x33c247){const _0x5800ea=_0x37a374;throw new Error(_0x5800ea(0x528)+_0x33c247+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var at={'exports':{}};const Qs={},er=Object[_0x37a374(0x49c)](Object[_0x37a374(0x55e)]({'__proto__':null,'default':Qs},Symbol[_0x37a374(0x614)],{'value':_0x37a374(0x471)})),tr=Js(er);var Wt;function ae(){const _0x9fed1a=_0x37a374;return Wt||(Wt=0x1,function(_0x1b4381,_0x41e2a8){(function(_0x45495b,_0x1be8ce){const _0xe5d36d=_0x513c;_0x1b4381[_0xe5d36d(0x447)]=_0x1be8ce();}(J,function(){var _0x4d6617=_0x4d6617||function(_0x8ca837,_0x3b2d1b){const _0x2dc9c6=_0x513c;var _0x23bf47;if(typeof window<'u'&&window['crypto']&&(_0x23bf47=window[_0x2dc9c6(0x273)]),typeof self<'u'&&self[_0x2dc9c6(0x273)]&&(_0x23bf47=self[_0x2dc9c6(0x273)]),typeof globalThis<'u'&&globalThis[_0x2dc9c6(0x273)]&&(_0x23bf47=globalThis[_0x2dc9c6(0x273)]),!_0x23bf47&&typeof window<'u'&&window['msCrypto']&&(_0x23bf47=window[_0x2dc9c6(0x4cd)]),!_0x23bf47&&typeof J<'u'&&J[_0x2dc9c6(0x273)]&&(_0x23bf47=J[_0x2dc9c6(0x273)]),!_0x23bf47&&typeof Zs==_0x2dc9c6(0x556))try{_0x23bf47=tr;}catch{}var _0x1d53dc=function(){const _0x48bb85=_0x2dc9c6;if(_0x23bf47){if(typeof _0x23bf47[_0x48bb85(0x2e1)]==_0x48bb85(0x556))try{return _0x23bf47[_0x48bb85(0x2e1)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x23bf47[_0x48bb85(0x289)]==_0x48bb85(0x556))try{return _0x23bf47[_0x48bb85(0x289)](0x4)[_0x48bb85(0x5f5)]();}catch{}}throw new Error(_0x48bb85(0x5be));},_0x1b3646=Object[_0x2dc9c6(0x4e6)]||(function(){function _0x4ad094(){}return function(_0x28921e){const _0x15eda9=_0x513c;var _0x3a9e09;return _0x4ad094[_0x15eda9(0x420)]=_0x28921e,_0x3a9e09=new _0x4ad094(),_0x4ad094[_0x15eda9(0x420)]=null,_0x3a9e09;};}()),_0xb77eec={},_0x397402=_0xb77eec[_0x2dc9c6(0x456)]={},_0x495658=_0x397402[_0x2dc9c6(0x3dd)]=(function(){return{'extend':function(_0xfc0f6b){const _0x5aad44=_0x513c;var _0x2a74d5=_0x1b3646(this);return _0xfc0f6b&&_0x2a74d5[_0x5aad44(0x432)](_0xfc0f6b),(!_0x2a74d5['hasOwnProperty'](_0x5aad44(0x5ca))||this[_0x5aad44(0x5ca)]===_0x2a74d5[_0x5aad44(0x5ca)])&&(_0x2a74d5[_0x5aad44(0x5ca)]=function(){const _0x2925d0=_0x5aad44;_0x2a74d5[_0x2925d0(0x5c7)][_0x2925d0(0x5ca)][_0x2925d0(0x4ae)](this,arguments);}),_0x2a74d5[_0x5aad44(0x5ca)][_0x5aad44(0x420)]=_0x2a74d5,_0x2a74d5[_0x5aad44(0x5c7)]=this,_0x2a74d5;},'create':function(){const _0x29df5a=_0x513c;var _0x49d63f=this[_0x29df5a(0x24a)]();return _0x49d63f[_0x29df5a(0x5ca)]['apply'](_0x49d63f,arguments),_0x49d63f;},'init':function(){},'mixIn':function(_0x59c74e){const _0x4bc4e9=_0x513c;for(var _0x422fa9 in _0x59c74e)_0x59c74e[_0x4bc4e9(0x658)](_0x422fa9)&&(this[_0x422fa9]=_0x59c74e[_0x422fa9]);_0x59c74e[_0x4bc4e9(0x658)]('toString')&&(this['toString']=_0x59c74e[_0x4bc4e9(0x4d2)]);},'clone':function(){const _0x19b454=_0x513c;return this[_0x19b454(0x5ca)]['prototype'][_0x19b454(0x24a)](this);}};}()),_0x2efda0=_0x397402[_0x2dc9c6(0x33f)]=_0x495658[_0x2dc9c6(0x24a)]({'init':function(_0x29c454,_0x43a14e){const _0x252cad=_0x2dc9c6;_0x29c454=this['words']=_0x29c454||[],_0x43a14e!=_0x3b2d1b?this[_0x252cad(0x54c)]=_0x43a14e:this[_0x252cad(0x54c)]=_0x29c454[_0x252cad(0x330)]*0x4;},'toString':function(_0x370c44){const _0x42b47b=_0x2dc9c6;return(_0x370c44||_0xbf5f52)[_0x42b47b(0x3df)](this);},'concat':function(_0x8266b){const _0x3d867e=_0x2dc9c6;var _0x43ece2=this[_0x3d867e(0x589)],_0x3c9e47=_0x8266b['words'],_0xdf4721=this[_0x3d867e(0x54c)],_0x27b640=_0x8266b[_0x3d867e(0x54c)];if(this[_0x3d867e(0x2d0)](),_0xdf4721%0x4)for(var _0x125862=0x0;_0x125862<_0x27b640;_0x125862++){var _0x4590f5=_0x3c9e47[_0x125862>>>0x2]>>>0x18-_0x125862%0x4*0x8&0xff;_0x43ece2[_0xdf4721+_0x125862>>>0x2]|=_0x4590f5<<0x18-(_0xdf4721+_0x125862)%0x4*0x8;}else{for(var _0x57b1e7=0x0;_0x57b1e7<_0x27b640;_0x57b1e7+=0x4)_0x43ece2[_0xdf4721+_0x57b1e7>>>0x2]=_0x3c9e47[_0x57b1e7>>>0x2];}return this[_0x3d867e(0x54c)]+=_0x27b640,this;},'clamp':function(){const _0x44af37=_0x2dc9c6;var _0x595440=this[_0x44af37(0x589)],_0x4b8dbb=this[_0x44af37(0x54c)];_0x595440[_0x4b8dbb>>>0x2]&=0xffffffff<<0x20-_0x4b8dbb%0x4*0x8,_0x595440[_0x44af37(0x330)]=_0x8ca837['ceil'](_0x4b8dbb/0x4);},'clone':function(){const _0x44eace=_0x2dc9c6;var _0x328de1=_0x495658[_0x44eace(0x678)][_0x44eace(0x1fa)](this);return _0x328de1[_0x44eace(0x589)]=this[_0x44eace(0x589)]['slice'](0x0),_0x328de1;},'random':function(_0x503d35){const _0x4342d8=_0x2dc9c6;for(var _0x189d47=[],_0xb099f3=0x0;_0xb099f3<_0x503d35;_0xb099f3+=0x4)_0x189d47[_0x4342d8(0x257)](_0x1d53dc());return new _0x2efda0[(_0x4342d8(0x5ca))](_0x189d47,_0x503d35);}}),_0x9502b9=_0xb77eec[_0x2dc9c6(0x271)]={},_0xbf5f52=_0x9502b9[_0x2dc9c6(0x36c)]={'stringify':function(_0x35ae2f){const _0xa7523d=_0x2dc9c6;for(var _0x43f432=_0x35ae2f[_0xa7523d(0x589)],_0x265320=_0x35ae2f[_0xa7523d(0x54c)],_0x41208a=[],_0x462c22=0x0;_0x462c22<_0x265320;_0x462c22++){var _0x30b61a=_0x43f432[_0x462c22>>>0x2]>>>0x18-_0x462c22%0x4*0x8&0xff;_0x41208a[_0xa7523d(0x257)]((_0x30b61a>>>0x4)['toString'](0x10)),_0x41208a[_0xa7523d(0x257)]((_0x30b61a&0xf)[_0xa7523d(0x4d2)](0x10));}return _0x41208a['join']('');},'parse':function(_0x5123b4){const _0x3e7bb6=_0x2dc9c6;for(var _0x59f039=_0x5123b4[_0x3e7bb6(0x330)],_0xe05b51=[],_0x2e51f1=0x0;_0x2e51f1<_0x59f039;_0x2e51f1+=0x2)_0xe05b51[_0x2e51f1>>>0x3]|=parseInt(_0x5123b4[_0x3e7bb6(0x283)](_0x2e51f1,0x2),0x10)<<0x18-_0x2e51f1%0x8*0x4;return new _0x2efda0['init'](_0xe05b51,_0x59f039/0x2);}},_0xf1d393=_0x9502b9['Latin1']={'stringify':function(_0x53c48c){const _0x296432=_0x2dc9c6;for(var _0xecabd8=_0x53c48c[_0x296432(0x589)],_0x450238=_0x53c48c['sigBytes'],_0x82d073=[],_0x1ad456=0x0;_0x1ad456<_0x450238;_0x1ad456++){var _0x160cbf=_0xecabd8[_0x1ad456>>>0x2]>>>0x18-_0x1ad456%0x4*0x8&0xff;_0x82d073[_0x296432(0x257)](String['fromCharCode'](_0x160cbf));}return _0x82d073['join']('');},'parse':function(_0x3b3f39){const _0x13a2c9=_0x2dc9c6;for(var _0x4a8a4e=_0x3b3f39[_0x13a2c9(0x330)],_0x346819=[],_0x2d592e=0x0;_0x2d592e<_0x4a8a4e;_0x2d592e++)_0x346819[_0x2d592e>>>0x2]|=(_0x3b3f39[_0x13a2c9(0x5a7)](_0x2d592e)&0xff)<<0x18-_0x2d592e%0x4*0x8;return new _0x2efda0[(_0x13a2c9(0x5ca))](_0x346819,_0x4a8a4e);}},_0x5a6ae1=_0x9502b9[_0x2dc9c6(0x4d1)]={'stringify':function(_0x474eb2){const _0x4d9d92=_0x2dc9c6;try{return decodeURIComponent(escape(_0xf1d393[_0x4d9d92(0x3df)](_0x474eb2)));}catch{throw new Error(_0x4d9d92(0x596));}},'parse':function(_0x1e4dcc){const _0x5aa571=_0x2dc9c6;return _0xf1d393[_0x5aa571(0x558)](unescape(encodeURIComponent(_0x1e4dcc)));}},_0x457f95=_0x397402[_0x2dc9c6(0x263)]=_0x495658[_0x2dc9c6(0x24a)]({'reset':function(){const _0x5e7075=_0x2dc9c6;this['_data']=new _0x2efda0[(_0x5e7075(0x5ca))](),this[_0x5e7075(0x21b)]=0x0;},'_append':function(_0x30393c){const _0x1390b6=_0x2dc9c6;typeof _0x30393c==_0x1390b6(0x3de)&&(_0x30393c=_0x5a6ae1[_0x1390b6(0x558)](_0x30393c)),this[_0x1390b6(0x2c9)]['concat'](_0x30393c),this[_0x1390b6(0x21b)]+=_0x30393c[_0x1390b6(0x54c)];},'_process':function(_0x1cbc19){const _0x1486ff=_0x2dc9c6;var _0x5c903f,_0x26369d=this['_data'],_0x270b53=_0x26369d[_0x1486ff(0x589)],_0x33c238=_0x26369d[_0x1486ff(0x54c)],_0x552a6e=this['blockSize'],_0x122130=_0x552a6e*0x4,_0x590892=_0x33c238/_0x122130;_0x1cbc19?_0x590892=_0x8ca837[_0x1486ff(0x637)](_0x590892):_0x590892=_0x8ca837['max']((_0x590892|0x0)-this[_0x1486ff(0x66c)],0x0);var _0x4f3907=_0x590892*_0x552a6e,_0x471188=_0x8ca837[_0x1486ff(0x242)](_0x4f3907*0x4,_0x33c238);if(_0x4f3907){for(var _0x4ec467=0x0;_0x4ec467<_0x4f3907;_0x4ec467+=_0x552a6e)this['_doProcessBlock'](_0x270b53,_0x4ec467);_0x5c903f=_0x270b53[_0x1486ff(0x225)](0x0,_0x4f3907),_0x26369d[_0x1486ff(0x54c)]-=_0x471188;}return new _0x2efda0[(_0x1486ff(0x5ca))](_0x5c903f,_0x471188);},'clone':function(){const _0x424dbf=_0x2dc9c6;var _0x2268f8=_0x495658[_0x424dbf(0x678)][_0x424dbf(0x1fa)](this);return _0x2268f8[_0x424dbf(0x2c9)]=this[_0x424dbf(0x2c9)][_0x424dbf(0x678)](),_0x2268f8;},'_minBufferSize':0x0});_0x397402[_0x2dc9c6(0x342)]=_0x457f95['extend']({'cfg':_0x495658[_0x2dc9c6(0x24a)](),'init':function(_0x3dd976){const _0x4edc40=_0x2dc9c6;this['cfg']=this[_0x4edc40(0x553)][_0x4edc40(0x24a)](_0x3dd976),this[_0x4edc40(0x63c)]();},'reset':function(){const _0x3080d8=_0x2dc9c6;_0x457f95[_0x3080d8(0x63c)][_0x3080d8(0x1fa)](this),this[_0x3080d8(0x51f)]();},'update':function(_0x171bda){return this['_append'](_0x171bda),this['_process'](),this;},'finalize':function(_0x20eefd){const _0x5ee344=_0x2dc9c6;_0x20eefd&&this[_0x5ee344(0x298)](_0x20eefd);var _0x13a9ef=this['_doFinalize']();return _0x13a9ef;},'blockSize':0x10,'_createHelper':function(_0x134c6e){return function(_0x564357,_0x5725dd){const _0x259bc4=_0x513c;return new _0x134c6e[(_0x259bc4(0x5ca))](_0x5725dd)[_0x259bc4(0x58d)](_0x564357);};},'_createHmacHelper':function(_0x5d3b14){return function(_0x1ee13e,_0x3c5ada){const _0x58e52b=_0x513c;return new _0x2f22d0[(_0x58e52b(0x22f))][(_0x58e52b(0x5ca))](_0x5d3b14,_0x3c5ada)[_0x58e52b(0x58d)](_0x1ee13e);};}});var _0x2f22d0=_0xb77eec['algo']={};return _0xb77eec;}(Math);return _0x4d6617;}));}(at)),at[_0x9fed1a(0x447)];}var ct={'exports':{}},Ft;function Tn(){const _0x17bcf0=_0x37a374;return Ft||(Ft=0x1,function(_0xb5c0af,_0x2b5d5c){(function(_0x190aa7,_0x525ed3){const _0x5de757=_0x513c;_0xb5c0af[_0x5de757(0x447)]=_0x525ed3(ae());}(J,function(_0x2fe981){return(function(){const _0x2198f3=_0x513c;var _0x20c239=_0x2fe981,_0x10bc3d=_0x20c239[_0x2198f3(0x456)],_0x1a36b8=_0x10bc3d[_0x2198f3(0x33f)],_0x3275e7=_0x20c239[_0x2198f3(0x271)];_0x3275e7[_0x2198f3(0x64e)]={'stringify':function(_0x3f01de){const _0x5c0b6b=_0x2198f3;var _0x2c2db0=_0x3f01de[_0x5c0b6b(0x589)],_0x5a2906=_0x3f01de[_0x5c0b6b(0x54c)],_0x511aaf=this[_0x5c0b6b(0x5fa)];_0x3f01de['clamp']();for(var _0x433356=[],_0x2ba51e=0x0;_0x2ba51e<_0x5a2906;_0x2ba51e+=0x3)for(var _0xc5e64=_0x2c2db0[_0x2ba51e>>>0x2]>>>0x18-_0x2ba51e%0x4*0x8&0xff,_0x1f12a0=_0x2c2db0[_0x2ba51e+0x1>>>0x2]>>>0x18-(_0x2ba51e+0x1)%0x4*0x8&0xff,_0x2df912=_0x2c2db0[_0x2ba51e+0x2>>>0x2]>>>0x18-(_0x2ba51e+0x2)%0x4*0x8&0xff,_0x48e43b=_0xc5e64<<0x10|_0x1f12a0<<0x8|_0x2df912,_0x38e818=0x0;_0x38e818<0x4&&_0x2ba51e+_0x38e818*0.75<_0x5a2906;_0x38e818++)_0x433356['push'](_0x511aaf['charAt'](_0x48e43b>>>0x6*(0x3-_0x38e818)&0x3f));var _0x32478b=_0x511aaf[_0x5c0b6b(0x1c3)](0x40);if(_0x32478b){for(;_0x433356[_0x5c0b6b(0x330)]%0x4;)_0x433356[_0x5c0b6b(0x257)](_0x32478b);}return _0x433356['join']('');},'parse':function(_0x4209d9){const _0x5557a1=_0x2198f3;var _0x3d4983=_0x4209d9[_0x5557a1(0x330)],_0x2fbf90=this[_0x5557a1(0x5fa)],_0x389b82=this['_reverseMap'];if(!_0x389b82){_0x389b82=this['_reverseMap']=[];for(var _0x2365a9=0x0;_0x2365a9<_0x2fbf90[_0x5557a1(0x330)];_0x2365a9++)_0x389b82[_0x2fbf90[_0x5557a1(0x5a7)](_0x2365a9)]=_0x2365a9;}var _0x119db6=_0x2fbf90[_0x5557a1(0x1c3)](0x40);if(_0x119db6){var _0x5aac99=_0x4209d9[_0x5557a1(0x23a)](_0x119db6);_0x5aac99!==-0x1&&(_0x3d4983=_0x5aac99);}return _0x4a4f2b(_0x4209d9,_0x3d4983,_0x389b82);},'_map':_0x2198f3(0x56e)};function _0x4a4f2b(_0x1a69d9,_0x1ed6f6,_0x327f60){const _0x5f228f=_0x2198f3;for(var _0x257bd3=[],_0x49a22c=0x0,_0x4b6d2f=0x0;_0x4b6d2f<_0x1ed6f6;_0x4b6d2f++)if(_0x4b6d2f%0x4){var _0x2020f0=_0x327f60[_0x1a69d9[_0x5f228f(0x5a7)](_0x4b6d2f-0x1)]<<_0x4b6d2f%0x4*0x2,_0x1ccf47=_0x327f60[_0x1a69d9[_0x5f228f(0x5a7)](_0x4b6d2f)]>>>0x6-_0x4b6d2f%0x4*0x2,_0x195116=_0x2020f0|_0x1ccf47;_0x257bd3[_0x49a22c>>>0x2]|=_0x195116<<0x18-_0x49a22c%0x4*0x8,_0x49a22c++;}return _0x1a36b8[_0x5f228f(0x4e6)](_0x257bd3,_0x49a22c);}}()),_0x2fe981['enc']['Base64'];}));}(ct)),ct[_0x17bcf0(0x447)];}var lt={'exports':{}},Vt;function nr(){const _0x3b0250=_0x37a374;return Vt||(Vt=0x1,function(_0x22c689,_0x17fb0a){(function(_0xb3ce88,_0x1f87e0){const _0x4471d0=_0x513c;_0x22c689[_0x4471d0(0x447)]=_0x1f87e0(ae());}(J,function(_0x1119b3){const _0x1485fc=_0x513c;return function(_0x2d9965){const _0x1de7ee=_0x513c;var _0x1f023f=_0x1119b3,_0x4dc8be=_0x1f023f[_0x1de7ee(0x456)],_0x29f211=_0x4dc8be[_0x1de7ee(0x33f)],_0x2f3c38=_0x4dc8be[_0x1de7ee(0x342)],_0x3d1151=_0x1f023f[_0x1de7ee(0x3da)],_0x3f0c52=[];(function(){const _0x30fb05=_0x1de7ee;for(var _0x34db91=0x0;_0x34db91<0x40;_0x34db91++)_0x3f0c52[_0x34db91]=_0x2d9965[_0x30fb05(0x492)](_0x2d9965[_0x30fb05(0x549)](_0x34db91+0x1))*0x100000000|0x0;}());var _0x3d2b6d=_0x3d1151[_0x1de7ee(0x375)]=_0x2f3c38[_0x1de7ee(0x24a)]({'_doReset':function(){const _0x48eeaa=_0x1de7ee;this[_0x48eeaa(0x46b)]=new _0x29f211['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x38c1e6,_0x27c9b3){const _0x27146b=_0x1de7ee;for(var _0x3efa7c=0x0;_0x3efa7c<0x10;_0x3efa7c++){var _0x35fe20=_0x27c9b3+_0x3efa7c,_0x5546dc=_0x38c1e6[_0x35fe20];_0x38c1e6[_0x35fe20]=(_0x5546dc<<0x8|_0x5546dc>>>0x18)&0xff00ff|(_0x5546dc<<0x18|_0x5546dc>>>0x8)&0xff00ff00;}var _0x59d8b9=this[_0x27146b(0x46b)]['words'],_0xa1130a=_0x38c1e6[_0x27c9b3+0x0],_0x47de8b=_0x38c1e6[_0x27c9b3+0x1],_0x40797f=_0x38c1e6[_0x27c9b3+0x2],_0x4b76ae=_0x38c1e6[_0x27c9b3+0x3],_0x50fccd=_0x38c1e6[_0x27c9b3+0x4],_0x28714b=_0x38c1e6[_0x27c9b3+0x5],_0x210097=_0x38c1e6[_0x27c9b3+0x6],_0x15ce68=_0x38c1e6[_0x27c9b3+0x7],_0x143b1f=_0x38c1e6[_0x27c9b3+0x8],_0x38c9a1=_0x38c1e6[_0x27c9b3+0x9],_0x32a5ee=_0x38c1e6[_0x27c9b3+0xa],_0x298cda=_0x38c1e6[_0x27c9b3+0xb],_0x55017c=_0x38c1e6[_0x27c9b3+0xc],_0x3bab9a=_0x38c1e6[_0x27c9b3+0xd],_0x272105=_0x38c1e6[_0x27c9b3+0xe],_0x318c63=_0x38c1e6[_0x27c9b3+0xf],_0x56ccde=_0x59d8b9[0x0],_0x416aec=_0x59d8b9[0x1],_0x330ad2=_0x59d8b9[0x2],_0x431f59=_0x59d8b9[0x3];_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0xa1130a,0x7,_0x3f0c52[0x0]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x47de8b,0xc,_0x3f0c52[0x1]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x40797f,0x11,_0x3f0c52[0x2]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x4b76ae,0x16,_0x3f0c52[0x3]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x50fccd,0x7,_0x3f0c52[0x4]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x28714b,0xc,_0x3f0c52[0x5]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x210097,0x11,_0x3f0c52[0x6]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x15ce68,0x16,_0x3f0c52[0x7]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x143b1f,0x7,_0x3f0c52[0x8]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x38c9a1,0xc,_0x3f0c52[0x9]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x32a5ee,0x11,_0x3f0c52[0xa]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x298cda,0x16,_0x3f0c52[0xb]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x55017c,0x7,_0x3f0c52[0xc]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x3bab9a,0xc,_0x3f0c52[0xd]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x272105,0x11,_0x3f0c52[0xe]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x318c63,0x16,_0x3f0c52[0xf]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x47de8b,0x5,_0x3f0c52[0x10]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x210097,0x9,_0x3f0c52[0x11]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x298cda,0xe,_0x3f0c52[0x12]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0xa1130a,0x14,_0x3f0c52[0x13]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x28714b,0x5,_0x3f0c52[0x14]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x32a5ee,0x9,_0x3f0c52[0x15]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x318c63,0xe,_0x3f0c52[0x16]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x50fccd,0x14,_0x3f0c52[0x17]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x38c9a1,0x5,_0x3f0c52[0x18]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x272105,0x9,_0x3f0c52[0x19]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x4b76ae,0xe,_0x3f0c52[0x1a]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x143b1f,0x14,_0x3f0c52[0x1b]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x3bab9a,0x5,_0x3f0c52[0x1c]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x40797f,0x9,_0x3f0c52[0x1d]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x15ce68,0xe,_0x3f0c52[0x1e]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x55017c,0x14,_0x3f0c52[0x1f]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x28714b,0x4,_0x3f0c52[0x20]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x143b1f,0xb,_0x3f0c52[0x21]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x298cda,0x10,_0x3f0c52[0x22]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x272105,0x17,_0x3f0c52[0x23]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x47de8b,0x4,_0x3f0c52[0x24]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x50fccd,0xb,_0x3f0c52[0x25]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x15ce68,0x10,_0x3f0c52[0x26]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x32a5ee,0x17,_0x3f0c52[0x27]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x3bab9a,0x4,_0x3f0c52[0x28]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0xa1130a,0xb,_0x3f0c52[0x29]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x4b76ae,0x10,_0x3f0c52[0x2a]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x210097,0x17,_0x3f0c52[0x2b]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x38c9a1,0x4,_0x3f0c52[0x2c]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x55017c,0xb,_0x3f0c52[0x2d]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x318c63,0x10,_0x3f0c52[0x2e]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x40797f,0x17,_0x3f0c52[0x2f]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0xa1130a,0x6,_0x3f0c52[0x30]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x15ce68,0xa,_0x3f0c52[0x31]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x272105,0xf,_0x3f0c52[0x32]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x28714b,0x15,_0x3f0c52[0x33]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x55017c,0x6,_0x3f0c52[0x34]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x4b76ae,0xa,_0x3f0c52[0x35]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x32a5ee,0xf,_0x3f0c52[0x36]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x47de8b,0x15,_0x3f0c52[0x37]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x143b1f,0x6,_0x3f0c52[0x38]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x318c63,0xa,_0x3f0c52[0x39]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x210097,0xf,_0x3f0c52[0x3a]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x3bab9a,0x15,_0x3f0c52[0x3b]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x50fccd,0x6,_0x3f0c52[0x3c]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x298cda,0xa,_0x3f0c52[0x3d]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x40797f,0xf,_0x3f0c52[0x3e]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x38c9a1,0x15,_0x3f0c52[0x3f]),_0x59d8b9[0x0]=_0x59d8b9[0x0]+_0x56ccde|0x0,_0x59d8b9[0x1]=_0x59d8b9[0x1]+_0x416aec|0x0,_0x59d8b9[0x2]=_0x59d8b9[0x2]+_0x330ad2|0x0,_0x59d8b9[0x3]=_0x59d8b9[0x3]+_0x431f59|0x0;},'_doFinalize':function(){const _0x340dba=_0x1de7ee;var _0x562c47=this[_0x340dba(0x2c9)],_0x1af9ab=_0x562c47[_0x340dba(0x589)],_0xbb34f=this[_0x340dba(0x21b)]*0x8,_0x549457=_0x562c47['sigBytes']*0x8;_0x1af9ab[_0x549457>>>0x5]|=0x80<<0x18-_0x549457%0x20;var _0x28be13=_0x2d9965[_0x340dba(0x640)](_0xbb34f/0x100000000),_0x1d04f0=_0xbb34f;_0x1af9ab[(_0x549457+0x40>>>0x9<<0x4)+0xf]=(_0x28be13<<0x8|_0x28be13>>>0x18)&0xff00ff|(_0x28be13<<0x18|_0x28be13>>>0x8)&0xff00ff00,_0x1af9ab[(_0x549457+0x40>>>0x9<<0x4)+0xe]=(_0x1d04f0<<0x8|_0x1d04f0>>>0x18)&0xff00ff|(_0x1d04f0<<0x18|_0x1d04f0>>>0x8)&0xff00ff00,_0x562c47[_0x340dba(0x54c)]=(_0x1af9ab[_0x340dba(0x330)]+0x1)*0x4,this[_0x340dba(0x3a9)]();for(var _0x35324c=this[_0x340dba(0x46b)],_0x5338d4=_0x35324c[_0x340dba(0x589)],_0x20a2f9=0x0;_0x20a2f9<0x4;_0x20a2f9++){var _0x588332=_0x5338d4[_0x20a2f9];_0x5338d4[_0x20a2f9]=(_0x588332<<0x8|_0x588332>>>0x18)&0xff00ff|(_0x588332<<0x18|_0x588332>>>0x8)&0xff00ff00;}return _0x35324c;},'clone':function(){const _0x1764a9=_0x1de7ee;var _0x32eeeb=_0x2f3c38['clone']['call'](this);return _0x32eeeb[_0x1764a9(0x46b)]=this['_hash']['clone'](),_0x32eeeb;}});function _0x431968(_0x54c7fc,_0x132da7,_0xc54da1,_0x146138,_0x34d41c,_0x2ae676,_0x406fcd){var _0x38133c=_0x54c7fc+(_0x132da7&_0xc54da1|~_0x132da7&_0x146138)+_0x34d41c+_0x406fcd;return(_0x38133c<<_0x2ae676|_0x38133c>>>0x20-_0x2ae676)+_0x132da7;}function _0x130fa5(_0x11e304,_0x19e318,_0x45e600,_0x5ad336,_0xa415a8,_0x3ed9c2,_0x8dbc25){var _0x1ddad0=_0x11e304+(_0x19e318&_0x5ad336|_0x45e600&~_0x5ad336)+_0xa415a8+_0x8dbc25;return(_0x1ddad0<<_0x3ed9c2|_0x1ddad0>>>0x20-_0x3ed9c2)+_0x19e318;}function _0x870908(_0xdcba55,_0x7cd290,_0x5bff34,_0x1cbd55,_0x1a2904,_0x37b127,_0x183483){var _0x159cfb=_0xdcba55+(_0x7cd290^_0x5bff34^_0x1cbd55)+_0x1a2904+_0x183483;return(_0x159cfb<<_0x37b127|_0x159cfb>>>0x20-_0x37b127)+_0x7cd290;}function _0x534fb0(_0x5853c0,_0x3b6cc9,_0x86a714,_0x5beecf,_0x2e40d0,_0x15cdd7,_0x2d25ba){var _0x1ff6ec=_0x5853c0+(_0x86a714^(_0x3b6cc9|~_0x5beecf))+_0x2e40d0+_0x2d25ba;return(_0x1ff6ec<<_0x15cdd7|_0x1ff6ec>>>0x20-_0x15cdd7)+_0x3b6cc9;}_0x1f023f[_0x1de7ee(0x375)]=_0x2f3c38[_0x1de7ee(0x4ba)](_0x3d2b6d),_0x1f023f[_0x1de7ee(0x2b0)]=_0x2f3c38[_0x1de7ee(0x4b0)](_0x3d2b6d);}(Math),_0x1119b3[_0x1485fc(0x375)];}));}(lt)),lt[_0x3b0250(0x447)];}var ht={'exports':{}},_t={'exports':{}},Gt;function ir(){const _0x5110bf=_0x37a374;return Gt||(Gt=0x1,function(_0x4b0e2f,_0x264dea){(function(_0x36c5d1,_0x1ab3e4){const _0x3bdd47=_0x513c;_0x4b0e2f[_0x3bdd47(0x447)]=_0x1ab3e4(ae());}(J,function(_0x20c748){const _0x3abd4a=_0x513c;return(function(){const _0x285157=_0x513c;var _0x436547=_0x20c748,_0x5199fc=_0x436547[_0x285157(0x456)],_0x571bfd=_0x5199fc[_0x285157(0x33f)],_0x5340f9=_0x5199fc[_0x285157(0x342)],_0x3a51b0=_0x436547[_0x285157(0x3da)],_0x2ae387=[],_0x342e76=_0x3a51b0[_0x285157(0x369)]=_0x5340f9[_0x285157(0x24a)]({'_doReset':function(){const _0x3696ca=_0x285157;this[_0x3696ca(0x46b)]=new _0x571bfd[(_0x3696ca(0x5ca))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x18498f,_0x39f8e9){const _0x5b6c22=_0x285157;for(var _0x191f23=this[_0x5b6c22(0x46b)][_0x5b6c22(0x589)],_0x35722a=_0x191f23[0x0],_0x1b5576=_0x191f23[0x1],_0x5ddba1=_0x191f23[0x2],_0x429bcd=_0x191f23[0x3],_0x59c561=_0x191f23[0x4],_0x44ad=0x0;_0x44ad<0x50;_0x44ad++){if(_0x44ad<0x10)_0x2ae387[_0x44ad]=_0x18498f[_0x39f8e9+_0x44ad]|0x0;else{var _0x250b53=_0x2ae387[_0x44ad-0x3]^_0x2ae387[_0x44ad-0x8]^_0x2ae387[_0x44ad-0xe]^_0x2ae387[_0x44ad-0x10];_0x2ae387[_0x44ad]=_0x250b53<<0x1|_0x250b53>>>0x1f;}var _0xa69803=(_0x35722a<<0x5|_0x35722a>>>0x1b)+_0x59c561+_0x2ae387[_0x44ad];_0x44ad<0x14?_0xa69803+=(_0x1b5576&_0x5ddba1|~_0x1b5576&_0x429bcd)+0x5a827999:_0x44ad<0x28?_0xa69803+=(_0x1b5576^_0x5ddba1^_0x429bcd)+0x6ed9eba1:_0x44ad<0x3c?_0xa69803+=(_0x1b5576&_0x5ddba1|_0x1b5576&_0x429bcd|_0x5ddba1&_0x429bcd)-0x70e44324:_0xa69803+=(_0x1b5576^_0x5ddba1^_0x429bcd)-0x359d3e2a,_0x59c561=_0x429bcd,_0x429bcd=_0x5ddba1,_0x5ddba1=_0x1b5576<<0x1e|_0x1b5576>>>0x2,_0x1b5576=_0x35722a,_0x35722a=_0xa69803;}_0x191f23[0x0]=_0x191f23[0x0]+_0x35722a|0x0,_0x191f23[0x1]=_0x191f23[0x1]+_0x1b5576|0x0,_0x191f23[0x2]=_0x191f23[0x2]+_0x5ddba1|0x0,_0x191f23[0x3]=_0x191f23[0x3]+_0x429bcd|0x0,_0x191f23[0x4]=_0x191f23[0x4]+_0x59c561|0x0;},'_doFinalize':function(){const _0xa8eda=_0x285157;var _0x31e1bd=this[_0xa8eda(0x2c9)],_0x2beeec=_0x31e1bd['words'],_0x4833cf=this[_0xa8eda(0x21b)]*0x8,_0xda4d1=_0x31e1bd[_0xa8eda(0x54c)]*0x8;return _0x2beeec[_0xda4d1>>>0x5]|=0x80<<0x18-_0xda4d1%0x20,_0x2beeec[(_0xda4d1+0x40>>>0x9<<0x4)+0xe]=Math[_0xa8eda(0x640)](_0x4833cf/0x100000000),_0x2beeec[(_0xda4d1+0x40>>>0x9<<0x4)+0xf]=_0x4833cf,_0x31e1bd['sigBytes']=_0x2beeec[_0xa8eda(0x330)]*0x4,this[_0xa8eda(0x3a9)](),this[_0xa8eda(0x46b)];},'clone':function(){const _0x29c81c=_0x285157;var _0x3e8bd4=_0x5340f9['clone'][_0x29c81c(0x1fa)](this);return _0x3e8bd4['_hash']=this[_0x29c81c(0x46b)][_0x29c81c(0x678)](),_0x3e8bd4;}});_0x436547[_0x285157(0x369)]=_0x5340f9[_0x285157(0x4ba)](_0x342e76),_0x436547[_0x285157(0x4ad)]=_0x5340f9[_0x285157(0x4b0)](_0x342e76);}()),_0x20c748[_0x3abd4a(0x369)];}));}(_t)),_t[_0x5110bf(0x447)];}var ut={'exports':{}},Yt;function sr(){const _0x5b9acc=_0x37a374;return Yt||(Yt=0x1,function(_0xc84671,_0x41f96e){(function(_0x49eebd,_0x12d62c){const _0x581b7f=_0x513c;_0xc84671[_0x581b7f(0x447)]=_0x12d62c(ae());}(J,function(_0x16f736){(function(){const _0x355c9a=_0x513c;var _0xb3b438=_0x16f736,_0x1bd92f=_0xb3b438[_0x355c9a(0x456)],_0x176922=_0x1bd92f[_0x355c9a(0x3dd)],_0x55169c=_0xb3b438[_0x355c9a(0x271)],_0xb12f7=_0x55169c[_0x355c9a(0x4d1)],_0x55ef4b=_0xb3b438[_0x355c9a(0x3da)];_0x55ef4b[_0x355c9a(0x22f)]=_0x176922['extend']({'init':function(_0x35547d,_0x3447a3){const _0x36f8db=_0x355c9a;_0x35547d=this['_hasher']=new _0x35547d[(_0x36f8db(0x5ca))](),typeof _0x3447a3=='string'&&(_0x3447a3=_0xb12f7['parse'](_0x3447a3));var _0x147fc3=_0x35547d['blockSize'],_0x5bd966=_0x147fc3*0x4;_0x3447a3[_0x36f8db(0x54c)]>_0x5bd966&&(_0x3447a3=_0x35547d['finalize'](_0x3447a3)),_0x3447a3[_0x36f8db(0x2d0)]();for(var _0x1a02ca=this['_oKey']=_0x3447a3['clone'](),_0x7479cc=this[_0x36f8db(0x542)]=_0x3447a3[_0x36f8db(0x678)](),_0x333095=_0x1a02ca['words'],_0x4d9dc4=_0x7479cc['words'],_0x58edad=0x0;_0x58edad<_0x147fc3;_0x58edad++)_0x333095[_0x58edad]^=0x5c5c5c5c,_0x4d9dc4[_0x58edad]^=0x36363636;_0x1a02ca['sigBytes']=_0x7479cc[_0x36f8db(0x54c)]=_0x5bd966,this[_0x36f8db(0x63c)]();},'reset':function(){const _0x237dae=_0x355c9a;var _0x708199=this[_0x237dae(0x35e)];_0x708199['reset'](),_0x708199[_0x237dae(0x60b)](this[_0x237dae(0x542)]);},'update':function(_0xfe9d32){const _0xf816de=_0x355c9a;return this[_0xf816de(0x35e)][_0xf816de(0x60b)](_0xfe9d32),this;},'finalize':function(_0x37b385){const _0x56bd79=_0x355c9a;var _0x47258f=this['_hasher'],_0x316bbd=_0x47258f[_0x56bd79(0x58d)](_0x37b385);_0x47258f[_0x56bd79(0x63c)]();var _0x1a119d=_0x47258f[_0x56bd79(0x58d)](this['_oKey'][_0x56bd79(0x678)]()[_0x56bd79(0x315)](_0x316bbd));return _0x1a119d;}});}());}));}(ut)),ut[_0x5b9acc(0x447)];}var Kt;function Rn(){const _0x49a6c1=_0x37a374;return Kt||(Kt=0x1,function(_0x243a35,_0xd3c859){(function(_0x3d07d6,_0x361d26,_0x1d7499){const _0x117352=_0x513c;_0x243a35[_0x117352(0x447)]=_0x361d26(ae(),ir(),sr());}(J,function(_0x252b0d){const _0xe6b0c9=_0x513c;return(function(){const _0x23807b=_0x513c;var _0x2407ac=_0x252b0d,_0x2f644d=_0x2407ac[_0x23807b(0x456)],_0x43fc83=_0x2f644d['Base'],_0x5b2e06=_0x2f644d[_0x23807b(0x33f)],_0x4174dc=_0x2407ac['algo'],_0x178fc2=_0x4174dc[_0x23807b(0x375)],_0x2d2798=_0x4174dc[_0x23807b(0x4c8)]=_0x43fc83[_0x23807b(0x24a)]({'cfg':_0x43fc83[_0x23807b(0x24a)]({'keySize':0x80/0x20,'hasher':_0x178fc2,'iterations':0x1}),'init':function(_0x396579){const _0x30157c=_0x23807b;this[_0x30157c(0x553)]=this[_0x30157c(0x553)][_0x30157c(0x24a)](_0x396579);},'compute':function(_0x32aef5,_0x5da290){const _0x504072=_0x23807b;for(var _0x55ee84,_0x4ce7ac=this[_0x504072(0x553)],_0x4c06b=_0x4ce7ac[_0x504072(0x57e)]['create'](),_0x3c781d=_0x5b2e06[_0x504072(0x4e6)](),_0xd504ef=_0x3c781d['words'],_0x2b8049=_0x4ce7ac['keySize'],_0x286914=_0x4ce7ac[_0x504072(0x33c)];_0xd504ef['length']<_0x2b8049;){_0x55ee84&&_0x4c06b[_0x504072(0x60b)](_0x55ee84),_0x55ee84=_0x4c06b[_0x504072(0x60b)](_0x32aef5)[_0x504072(0x58d)](_0x5da290),_0x4c06b[_0x504072(0x63c)]();for(var _0x4cc907=0x1;_0x4cc907<_0x286914;_0x4cc907++)_0x55ee84=_0x4c06b[_0x504072(0x58d)](_0x55ee84),_0x4c06b[_0x504072(0x63c)]();_0x3c781d[_0x504072(0x315)](_0x55ee84);}return _0x3c781d[_0x504072(0x54c)]=_0x2b8049*0x4,_0x3c781d;}});_0x2407ac['EvpKDF']=function(_0x322828,_0x258b7c,_0x3abd89){const _0x52d795=_0x23807b;return _0x2d2798[_0x52d795(0x4e6)](_0x3abd89)[_0x52d795(0x38b)](_0x322828,_0x258b7c);};}()),_0x252b0d[_0xe6b0c9(0x4c8)];}));}(ht)),ht[_0x49a6c1(0x447)];}var dt={'exports':{}},qt;function yn(){const _0x518294=_0x37a374;return qt||(qt=0x1,function(_0x4e0def,_0x30de47){(function(_0x2b3795,_0x3cbd10,_0x37d033){_0x4e0def['exports']=_0x3cbd10(ae(),Rn());}(J,function(_0x4c4de2){const _0x43e8cc=_0x513c;_0x4c4de2['lib'][_0x43e8cc(0x566)]||function(_0x281a46){const _0x4bbf35=_0x43e8cc;var _0xcda6e6=_0x4c4de2,_0x385970=_0xcda6e6[_0x4bbf35(0x456)],_0x14f469=_0x385970[_0x4bbf35(0x3dd)],_0x1d7172=_0x385970[_0x4bbf35(0x33f)],_0x5c8a5c=_0x385970[_0x4bbf35(0x263)],_0x5606a4=_0xcda6e6['enc'];_0x5606a4[_0x4bbf35(0x4d1)];var _0x42e1f5=_0x5606a4[_0x4bbf35(0x64e)],_0x3fa37f=_0xcda6e6['algo'],_0x407876=_0x3fa37f[_0x4bbf35(0x4c8)],_0xb28773=_0x385970['Cipher']=_0x5c8a5c[_0x4bbf35(0x24a)]({'cfg':_0x14f469[_0x4bbf35(0x24a)](),'createEncryptor':function(_0x3379fe,_0x166a3c){const _0x4b1aea=_0x4bbf35;return this['create'](this[_0x4b1aea(0x4eb)],_0x3379fe,_0x166a3c);},'createDecryptor':function(_0x30c175,_0x66f689){const _0x319a78=_0x4bbf35;return this[_0x319a78(0x4e6)](this[_0x319a78(0x2d1)],_0x30c175,_0x66f689);},'init':function(_0x215f21,_0x332ef3,_0x3ba59a){const _0x2f946d=_0x4bbf35;this[_0x2f946d(0x553)]=this[_0x2f946d(0x553)][_0x2f946d(0x24a)](_0x3ba59a),this['_xformMode']=_0x215f21,this[_0x2f946d(0x4e5)]=_0x332ef3,this[_0x2f946d(0x63c)]();},'reset':function(){const _0x309c8d=_0x4bbf35;_0x5c8a5c[_0x309c8d(0x63c)][_0x309c8d(0x1fa)](this),this[_0x309c8d(0x51f)]();},'process':function(_0x300838){const _0x949b1e=_0x4bbf35;return this[_0x949b1e(0x298)](_0x300838),this[_0x949b1e(0x3a9)]();},'finalize':function(_0x160400){const _0x229b6c=_0x4bbf35;_0x160400&&this[_0x229b6c(0x298)](_0x160400);var _0x4dbc43=this[_0x229b6c(0x5ec)]();return _0x4dbc43;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x62af2a(_0x38f461){const _0x43f16c=_0x513c;return typeof _0x38f461==_0x43f16c(0x3de)?_0x424a6d:_0x614707;}return function(_0x68fd20){return{'encrypt':function(_0x376e99,_0x4b1168,_0x3e1a89){const _0x2c2d55=_0x513c;return _0x62af2a(_0x4b1168)[_0x2c2d55(0x41c)](_0x68fd20,_0x376e99,_0x4b1168,_0x3e1a89);},'decrypt':function(_0x38f707,_0xf2297b,_0x5dba09){const _0x564ca7=_0x513c;return _0x62af2a(_0xf2297b)[_0x564ca7(0x36b)](_0x68fd20,_0x38f707,_0xf2297b,_0x5dba09);}};};}())});_0x385970[_0x4bbf35(0x604)]=_0xb28773[_0x4bbf35(0x24a)]({'_doFinalize':function(){var _0x58e98a=this['_process'](!0x0);return _0x58e98a;},'blockSize':0x1});var _0x32b848=_0xcda6e6[_0x4bbf35(0x44d)]={},_0x19bd25=_0x385970[_0x4bbf35(0x523)]=_0x14f469['extend']({'createEncryptor':function(_0x27943d,_0x23cb39){const _0x3072f4=_0x4bbf35;return this[_0x3072f4(0x4c5)][_0x3072f4(0x4e6)](_0x27943d,_0x23cb39);},'createDecryptor':function(_0x5c04a0,_0x424a65){const _0x3fe266=_0x4bbf35;return this[_0x3fe266(0x621)][_0x3fe266(0x4e6)](_0x5c04a0,_0x424a65);},'init':function(_0x13dfc9,_0x2ae9fc){const _0x298495=_0x4bbf35;this[_0x298495(0x2b3)]=_0x13dfc9,this['_iv']=_0x2ae9fc;}}),_0x201c84=_0x32b848['CBC']=(function(){const _0x1abc03=_0x4bbf35;var _0xab853c=_0x19bd25['extend']();_0xab853c[_0x1abc03(0x4c5)]=_0xab853c[_0x1abc03(0x24a)]({'processBlock':function(_0x3e284b,_0x195ba2){const _0x2a3525=_0x1abc03;var _0x3800b1=this[_0x2a3525(0x2b3)],_0x4c53d3=_0x3800b1[_0x2a3525(0x647)];_0x1d1c3d[_0x2a3525(0x1fa)](this,_0x3e284b,_0x195ba2,_0x4c53d3),_0x3800b1[_0x2a3525(0x327)](_0x3e284b,_0x195ba2),this[_0x2a3525(0x49a)]=_0x3e284b[_0x2a3525(0x2e5)](_0x195ba2,_0x195ba2+_0x4c53d3);}}),_0xab853c[_0x1abc03(0x621)]=_0xab853c['extend']({'processBlock':function(_0x43cee7,_0x22e25e){const _0x36ec7a=_0x1abc03;var _0x2ed396=this['_cipher'],_0x31443f=_0x2ed396[_0x36ec7a(0x647)],_0x23eb25=_0x43cee7[_0x36ec7a(0x2e5)](_0x22e25e,_0x22e25e+_0x31443f);_0x2ed396[_0x36ec7a(0x469)](_0x43cee7,_0x22e25e),_0x1d1c3d[_0x36ec7a(0x1fa)](this,_0x43cee7,_0x22e25e,_0x31443f),this[_0x36ec7a(0x49a)]=_0x23eb25;}});function _0x1d1c3d(_0x3a7f44,_0x15eb0b,_0x1be958){const _0x409d18=_0x1abc03;var _0x4316f5,_0x209ae2=this[_0x409d18(0x202)];_0x209ae2?(_0x4316f5=_0x209ae2,this['_iv']=_0x281a46):_0x4316f5=this[_0x409d18(0x49a)];for(var _0x267563=0x0;_0x267563<_0x1be958;_0x267563++)_0x3a7f44[_0x15eb0b+_0x267563]^=_0x4316f5[_0x267563];}return _0xab853c;}()),_0x18d0ac=_0xcda6e6[_0x4bbf35(0x3e9)]={},_0x460e3e=_0x18d0ac[_0x4bbf35(0x539)]={'pad':function(_0x54d799,_0x5488c7){const _0x3f7632=_0x4bbf35;for(var _0x73ed3b=_0x5488c7*0x4,_0x33fc1c=_0x73ed3b-_0x54d799[_0x3f7632(0x54c)]%_0x73ed3b,_0x464d98=_0x33fc1c<<0x18|_0x33fc1c<<0x10|_0x33fc1c<<0x8|_0x33fc1c,_0x2ddcdb=[],_0x1f1b9f=0x0;_0x1f1b9f<_0x33fc1c;_0x1f1b9f+=0x4)_0x2ddcdb[_0x3f7632(0x257)](_0x464d98);var _0x28a97b=_0x1d7172[_0x3f7632(0x4e6)](_0x2ddcdb,_0x33fc1c);_0x54d799[_0x3f7632(0x315)](_0x28a97b);},'unpad':function(_0xe367ff){const _0x518f88=_0x4bbf35;var _0x26f1f6=_0xe367ff[_0x518f88(0x589)][_0xe367ff['sigBytes']-0x1>>>0x2]&0xff;_0xe367ff[_0x518f88(0x54c)]-=_0x26f1f6;}};_0x385970[_0x4bbf35(0x5fd)]=_0xb28773[_0x4bbf35(0x24a)]({'cfg':_0xb28773[_0x4bbf35(0x553)][_0x4bbf35(0x24a)]({'mode':_0x201c84,'padding':_0x460e3e}),'reset':function(){const _0x218149=_0x4bbf35;var _0x14f5db;_0xb28773[_0x218149(0x63c)]['call'](this);var _0x5baa2e=this[_0x218149(0x553)],_0xe32baf=_0x5baa2e['iv'],_0x730f34=_0x5baa2e['mode'];this[_0x218149(0x2a8)]==this[_0x218149(0x4eb)]?_0x14f5db=_0x730f34[_0x218149(0x464)]:(_0x14f5db=_0x730f34[_0x218149(0x5dd)],this[_0x218149(0x66c)]=0x1),this[_0x218149(0x381)]&&this[_0x218149(0x381)]['__creator']==_0x14f5db?this[_0x218149(0x381)][_0x218149(0x5ca)](this,_0xe32baf&&_0xe32baf['words']):(this[_0x218149(0x381)]=_0x14f5db[_0x218149(0x1fa)](_0x730f34,this,_0xe32baf&&_0xe32baf[_0x218149(0x589)]),this[_0x218149(0x381)][_0x218149(0x325)]=_0x14f5db);},'_doProcessBlock':function(_0x3322a3,_0xcf480c){const _0x480051=_0x4bbf35;this[_0x480051(0x381)][_0x480051(0x20a)](_0x3322a3,_0xcf480c);},'_doFinalize':function(){const _0x55c63a=_0x4bbf35;var _0x41277d,_0x50753d=this['cfg'][_0x55c63a(0x453)];return this[_0x55c63a(0x2a8)]==this[_0x55c63a(0x4eb)]?(_0x50753d['pad'](this[_0x55c63a(0x2c9)],this[_0x55c63a(0x647)]),_0x41277d=this[_0x55c63a(0x3a9)](!0x0)):(_0x41277d=this[_0x55c63a(0x3a9)](!0x0),_0x50753d['unpad'](_0x41277d)),_0x41277d;},'blockSize':0x80/0x20});var _0x98fe61=_0x385970[_0x4bbf35(0x2c5)]=_0x14f469[_0x4bbf35(0x24a)]({'init':function(_0x5de0f3){this['mixIn'](_0x5de0f3);},'toString':function(_0x480fd1){const _0x5e69fb=_0x4bbf35;return(_0x480fd1||this[_0x5e69fb(0x3f4)])['stringify'](this);}}),_0x5d6716=_0xcda6e6[_0x4bbf35(0x5da)]={},_0x96c0a4=_0x5d6716[_0x4bbf35(0x3ad)]={'stringify':function(_0x39b561){const _0x5e2231=_0x4bbf35;var _0x2fa68e,_0x2ca2ba=_0x39b561['ciphertext'],_0x1933d4=_0x39b561['salt'];return _0x1933d4?_0x2fa68e=_0x1d7172[_0x5e2231(0x4e6)]([0x53616c74,0x65645f5f])[_0x5e2231(0x315)](_0x1933d4)['concat'](_0x2ca2ba):_0x2fa68e=_0x2ca2ba,_0x2fa68e[_0x5e2231(0x4d2)](_0x42e1f5);},'parse':function(_0x596217){const _0x2ad023=_0x4bbf35;var _0x3464ff,_0x394089=_0x42e1f5['parse'](_0x596217),_0x535110=_0x394089['words'];return _0x535110[0x0]==0x53616c74&&_0x535110[0x1]==0x65645f5f&&(_0x3464ff=_0x1d7172[_0x2ad023(0x4e6)](_0x535110[_0x2ad023(0x2e5)](0x2,0x4)),_0x535110['splice'](0x0,0x4),_0x394089[_0x2ad023(0x54c)]-=0x10),_0x98fe61[_0x2ad023(0x4e6)]({'ciphertext':_0x394089,'salt':_0x3464ff});}},_0x614707=_0x385970[_0x4bbf35(0x2e0)]=_0x14f469[_0x4bbf35(0x24a)]({'cfg':_0x14f469[_0x4bbf35(0x24a)]({'format':_0x96c0a4}),'encrypt':function(_0x58ad62,_0x38ab02,_0x69457c,_0x4ad734){const _0x15b7d2=_0x4bbf35;_0x4ad734=this[_0x15b7d2(0x553)]['extend'](_0x4ad734);var _0x4486b8=_0x58ad62[_0x15b7d2(0x464)](_0x69457c,_0x4ad734),_0x39f0c8=_0x4486b8[_0x15b7d2(0x58d)](_0x38ab02),_0x3ea35f=_0x4486b8[_0x15b7d2(0x553)];return _0x98fe61[_0x15b7d2(0x4e6)]({'ciphertext':_0x39f0c8,'key':_0x69457c,'iv':_0x3ea35f['iv'],'algorithm':_0x58ad62,'mode':_0x3ea35f[_0x15b7d2(0x44d)],'padding':_0x3ea35f[_0x15b7d2(0x453)],'blockSize':_0x58ad62[_0x15b7d2(0x647)],'formatter':_0x4ad734[_0x15b7d2(0x5da)]});},'decrypt':function(_0x2458aa,_0x55ef58,_0x1b33dc,_0x20eb24){const _0x42028e=_0x4bbf35;_0x20eb24=this[_0x42028e(0x553)]['extend'](_0x20eb24),_0x55ef58=this[_0x42028e(0x249)](_0x55ef58,_0x20eb24[_0x42028e(0x5da)]);var _0x2a5345=_0x2458aa['createDecryptor'](_0x1b33dc,_0x20eb24)[_0x42028e(0x58d)](_0x55ef58[_0x42028e(0x230)]);return _0x2a5345;},'_parse':function(_0x493869,_0x583f54){const _0x6a5c21=_0x4bbf35;return typeof _0x493869==_0x6a5c21(0x3de)?_0x583f54['parse'](_0x493869,this):_0x493869;}}),_0x45b14d=_0xcda6e6[_0x4bbf35(0x3a7)]={},_0x2b1790=_0x45b14d[_0x4bbf35(0x3ad)]={'execute':function(_0x49ff8a,_0x5493d4,_0x25d474,_0x1f7d8d,_0x11bde6){const _0x4dd7a0=_0x4bbf35;if(_0x1f7d8d||(_0x1f7d8d=_0x1d7172[_0x4dd7a0(0x59c)](0x40/0x8)),_0x11bde6)var _0x56dc2c=_0x407876['create']({'keySize':_0x5493d4+_0x25d474,'hasher':_0x11bde6})[_0x4dd7a0(0x38b)](_0x49ff8a,_0x1f7d8d);else var _0x56dc2c=_0x407876['create']({'keySize':_0x5493d4+_0x25d474})[_0x4dd7a0(0x38b)](_0x49ff8a,_0x1f7d8d);var _0x423ea5=_0x1d7172['create'](_0x56dc2c[_0x4dd7a0(0x589)]['slice'](_0x5493d4),_0x25d474*0x4);return _0x56dc2c['sigBytes']=_0x5493d4*0x4,_0x98fe61[_0x4dd7a0(0x4e6)]({'key':_0x56dc2c,'iv':_0x423ea5,'salt':_0x1f7d8d});}},_0x424a6d=_0x385970['PasswordBasedCipher']=_0x614707['extend']({'cfg':_0x614707['cfg']['extend']({'kdf':_0x2b1790}),'encrypt':function(_0x1f6c9f,_0x4db4fd,_0x537626,_0x2160ed){const _0x388f23=_0x4bbf35;_0x2160ed=this[_0x388f23(0x553)][_0x388f23(0x24a)](_0x2160ed);var _0x2833f4=_0x2160ed[_0x388f23(0x3a7)][_0x388f23(0x371)](_0x537626,_0x1f6c9f['keySize'],_0x1f6c9f[_0x388f23(0x3c1)],_0x2160ed[_0x388f23(0x5c1)],_0x2160ed[_0x388f23(0x57e)]);_0x2160ed['iv']=_0x2833f4['iv'];var _0x4e0dc6=_0x614707[_0x388f23(0x41c)][_0x388f23(0x1fa)](this,_0x1f6c9f,_0x4db4fd,_0x2833f4[_0x388f23(0x1c7)],_0x2160ed);return _0x4e0dc6[_0x388f23(0x432)](_0x2833f4),_0x4e0dc6;},'decrypt':function(_0x36f72c,_0x34cdbc,_0x5e4e1e,_0x58037d){const _0x27df40=_0x4bbf35;_0x58037d=this[_0x27df40(0x553)]['extend'](_0x58037d),_0x34cdbc=this[_0x27df40(0x249)](_0x34cdbc,_0x58037d[_0x27df40(0x5da)]);var _0x4f399e=_0x58037d[_0x27df40(0x3a7)][_0x27df40(0x371)](_0x5e4e1e,_0x36f72c[_0x27df40(0x62e)],_0x36f72c[_0x27df40(0x3c1)],_0x34cdbc[_0x27df40(0x5c1)],_0x58037d[_0x27df40(0x57e)]);_0x58037d['iv']=_0x4f399e['iv'];var _0xd17018=_0x614707[_0x27df40(0x36b)][_0x27df40(0x1fa)](this,_0x36f72c,_0x34cdbc,_0x4f399e[_0x27df40(0x1c7)],_0x58037d);return _0xd17018;}});}();}));}(dt)),dt[_0x518294(0x447)];}(function(_0x5e8dcf,_0x4f1a6a){(function(_0x4df26,_0x57ac67,_0x43f6cb){const _0xdc0097=_0x513c;_0x5e8dcf[_0xdc0097(0x447)]=_0x57ac67(ae(),Tn(),nr(),Rn(),yn());}(J,function(_0x1b019c){const _0x2243b1=_0x513c;return(function(){const _0x1e56fd=_0x513c;var _0x2d3f84=_0x1b019c,_0x382bea=_0x2d3f84[_0x1e56fd(0x456)],_0x181f3f=_0x382bea[_0x1e56fd(0x5fd)],_0x45ef4d=_0x2d3f84['algo'],_0x343e1b=[],_0x2855b9=[],_0x22edda=[],_0xdb93e3=[],_0x353d92=[],_0x1cbe2c=[],_0x34ca70=[],_0xcf8218=[],_0x33bb07=[],_0x144ba2=[];(function(){for(var _0x1ef8c8=[],_0x2e9515=0x0;_0x2e9515<0x100;_0x2e9515++)_0x2e9515<0x80?_0x1ef8c8[_0x2e9515]=_0x2e9515<<0x1:_0x1ef8c8[_0x2e9515]=_0x2e9515<<0x1^0x11b;for(var _0x59c59d=0x0,_0x78c12=0x0,_0x2e9515=0x0;_0x2e9515<0x100;_0x2e9515++){var _0x3537ca=_0x78c12^_0x78c12<<0x1^_0x78c12<<0x2^_0x78c12<<0x3^_0x78c12<<0x4;_0x3537ca=_0x3537ca>>>0x8^_0x3537ca&0xff^0x63,_0x343e1b[_0x59c59d]=_0x3537ca,_0x2855b9[_0x3537ca]=_0x59c59d;var _0x312fb3=_0x1ef8c8[_0x59c59d],_0x280116=_0x1ef8c8[_0x312fb3],_0xd7c692=_0x1ef8c8[_0x280116],_0x4bcc18=_0x1ef8c8[_0x3537ca]*0x101^_0x3537ca*0x1010100;_0x22edda[_0x59c59d]=_0x4bcc18<<0x18|_0x4bcc18>>>0x8,_0xdb93e3[_0x59c59d]=_0x4bcc18<<0x10|_0x4bcc18>>>0x10,_0x353d92[_0x59c59d]=_0x4bcc18<<0x8|_0x4bcc18>>>0x18,_0x1cbe2c[_0x59c59d]=_0x4bcc18;var _0x4bcc18=_0xd7c692*0x1010101^_0x280116*0x10001^_0x312fb3*0x101^_0x59c59d*0x1010100;_0x34ca70[_0x3537ca]=_0x4bcc18<<0x18|_0x4bcc18>>>0x8,_0xcf8218[_0x3537ca]=_0x4bcc18<<0x10|_0x4bcc18>>>0x10,_0x33bb07[_0x3537ca]=_0x4bcc18<<0x8|_0x4bcc18>>>0x18,_0x144ba2[_0x3537ca]=_0x4bcc18,_0x59c59d?(_0x59c59d=_0x312fb3^_0x1ef8c8[_0x1ef8c8[_0x1ef8c8[_0xd7c692^_0x312fb3]]],_0x78c12^=_0x1ef8c8[_0x1ef8c8[_0x78c12]]):_0x59c59d=_0x78c12=0x1;}}());var _0x293a6d=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x14355e=_0x45ef4d['AES']=_0x181f3f[_0x1e56fd(0x24a)]({'_doReset':function(){const _0x22a2bb=_0x1e56fd;var _0x3c78b1;if(!(this[_0x22a2bb(0x1df)]&&this[_0x22a2bb(0x23d)]===this['_key'])){for(var _0x11886a=this[_0x22a2bb(0x23d)]=this[_0x22a2bb(0x4e5)],_0x1c9b77=_0x11886a[_0x22a2bb(0x589)],_0x594372=_0x11886a[_0x22a2bb(0x54c)]/0x4,_0x4d9c7e=this[_0x22a2bb(0x1df)]=_0x594372+0x6,_0x2125ae=(_0x4d9c7e+0x1)*0x4,_0x595fea=this[_0x22a2bb(0x550)]=[],_0xa72aaf=0x0;_0xa72aaf<_0x2125ae;_0xa72aaf++)_0xa72aaf<_0x594372?_0x595fea[_0xa72aaf]=_0x1c9b77[_0xa72aaf]:(_0x3c78b1=_0x595fea[_0xa72aaf-0x1],_0xa72aaf%_0x594372?_0x594372>0x6&&_0xa72aaf%_0x594372==0x4&&(_0x3c78b1=_0x343e1b[_0x3c78b1>>>0x18]<<0x18|_0x343e1b[_0x3c78b1>>>0x10&0xff]<<0x10|_0x343e1b[_0x3c78b1>>>0x8&0xff]<<0x8|_0x343e1b[_0x3c78b1&0xff]):(_0x3c78b1=_0x3c78b1<<0x8|_0x3c78b1>>>0x18,_0x3c78b1=_0x343e1b[_0x3c78b1>>>0x18]<<0x18|_0x343e1b[_0x3c78b1>>>0x10&0xff]<<0x10|_0x343e1b[_0x3c78b1>>>0x8&0xff]<<0x8|_0x343e1b[_0x3c78b1&0xff],_0x3c78b1^=_0x293a6d[_0xa72aaf/_0x594372|0x0]<<0x18),_0x595fea[_0xa72aaf]=_0x595fea[_0xa72aaf-_0x594372]^_0x3c78b1);for(var _0x80bc06=this[_0x22a2bb(0x392)]=[],_0x3af0f1=0x0;_0x3af0f1<_0x2125ae;_0x3af0f1++){var _0xa72aaf=_0x2125ae-_0x3af0f1;if(_0x3af0f1%0x4)var _0x3c78b1=_0x595fea[_0xa72aaf];else var _0x3c78b1=_0x595fea[_0xa72aaf-0x4];_0x3af0f1<0x4||_0xa72aaf<=0x4?_0x80bc06[_0x3af0f1]=_0x3c78b1:_0x80bc06[_0x3af0f1]=_0x34ca70[_0x343e1b[_0x3c78b1>>>0x18]]^_0xcf8218[_0x343e1b[_0x3c78b1>>>0x10&0xff]]^_0x33bb07[_0x343e1b[_0x3c78b1>>>0x8&0xff]]^_0x144ba2[_0x343e1b[_0x3c78b1&0xff]];}}},'encryptBlock':function(_0x44bcff,_0x3c6e1b){const _0x64a12b=_0x1e56fd;this[_0x64a12b(0x537)](_0x44bcff,_0x3c6e1b,this[_0x64a12b(0x550)],_0x22edda,_0xdb93e3,_0x353d92,_0x1cbe2c,_0x343e1b);},'decryptBlock':function(_0x2ba66b,_0x5652a0){var _0x369fbb=_0x2ba66b[_0x5652a0+0x1];_0x2ba66b[_0x5652a0+0x1]=_0x2ba66b[_0x5652a0+0x3],_0x2ba66b[_0x5652a0+0x3]=_0x369fbb,this['_doCryptBlock'](_0x2ba66b,_0x5652a0,this['_invKeySchedule'],_0x34ca70,_0xcf8218,_0x33bb07,_0x144ba2,_0x2855b9);var _0x369fbb=_0x2ba66b[_0x5652a0+0x1];_0x2ba66b[_0x5652a0+0x1]=_0x2ba66b[_0x5652a0+0x3],_0x2ba66b[_0x5652a0+0x3]=_0x369fbb;},'_doCryptBlock':function(_0x140e68,_0x4ed875,_0x44c4eb,_0x5a654b,_0x93a599,_0x523fe2,_0x2dda4d,_0x29f89e){const _0x588b45=_0x1e56fd;for(var _0x2f31a9=this[_0x588b45(0x1df)],_0x29b5ad=_0x140e68[_0x4ed875]^_0x44c4eb[0x0],_0x1d1fb6=_0x140e68[_0x4ed875+0x1]^_0x44c4eb[0x1],_0x534286=_0x140e68[_0x4ed875+0x2]^_0x44c4eb[0x2],_0x3a280f=_0x140e68[_0x4ed875+0x3]^_0x44c4eb[0x3],_0x5970ce=0x4,_0x2ebe01=0x1;_0x2ebe01<_0x2f31a9;_0x2ebe01++){var _0x2b0add=_0x5a654b[_0x29b5ad>>>0x18]^_0x93a599[_0x1d1fb6>>>0x10&0xff]^_0x523fe2[_0x534286>>>0x8&0xff]^_0x2dda4d[_0x3a280f&0xff]^_0x44c4eb[_0x5970ce++],_0x593890=_0x5a654b[_0x1d1fb6>>>0x18]^_0x93a599[_0x534286>>>0x10&0xff]^_0x523fe2[_0x3a280f>>>0x8&0xff]^_0x2dda4d[_0x29b5ad&0xff]^_0x44c4eb[_0x5970ce++],_0x4a908c=_0x5a654b[_0x534286>>>0x18]^_0x93a599[_0x3a280f>>>0x10&0xff]^_0x523fe2[_0x29b5ad>>>0x8&0xff]^_0x2dda4d[_0x1d1fb6&0xff]^_0x44c4eb[_0x5970ce++],_0x28dcd7=_0x5a654b[_0x3a280f>>>0x18]^_0x93a599[_0x29b5ad>>>0x10&0xff]^_0x523fe2[_0x1d1fb6>>>0x8&0xff]^_0x2dda4d[_0x534286&0xff]^_0x44c4eb[_0x5970ce++];_0x29b5ad=_0x2b0add,_0x1d1fb6=_0x593890,_0x534286=_0x4a908c,_0x3a280f=_0x28dcd7;}var _0x2b0add=(_0x29f89e[_0x29b5ad>>>0x18]<<0x18|_0x29f89e[_0x1d1fb6>>>0x10&0xff]<<0x10|_0x29f89e[_0x534286>>>0x8&0xff]<<0x8|_0x29f89e[_0x3a280f&0xff])^_0x44c4eb[_0x5970ce++],_0x593890=(_0x29f89e[_0x1d1fb6>>>0x18]<<0x18|_0x29f89e[_0x534286>>>0x10&0xff]<<0x10|_0x29f89e[_0x3a280f>>>0x8&0xff]<<0x8|_0x29f89e[_0x29b5ad&0xff])^_0x44c4eb[_0x5970ce++],_0x4a908c=(_0x29f89e[_0x534286>>>0x18]<<0x18|_0x29f89e[_0x3a280f>>>0x10&0xff]<<0x10|_0x29f89e[_0x29b5ad>>>0x8&0xff]<<0x8|_0x29f89e[_0x1d1fb6&0xff])^_0x44c4eb[_0x5970ce++],_0x28dcd7=(_0x29f89e[_0x3a280f>>>0x18]<<0x18|_0x29f89e[_0x29b5ad>>>0x10&0xff]<<0x10|_0x29f89e[_0x1d1fb6>>>0x8&0xff]<<0x8|_0x29f89e[_0x534286&0xff])^_0x44c4eb[_0x5970ce++];_0x140e68[_0x4ed875]=_0x2b0add,_0x140e68[_0x4ed875+0x1]=_0x593890,_0x140e68[_0x4ed875+0x2]=_0x4a908c,_0x140e68[_0x4ed875+0x3]=_0x28dcd7;},'keySize':0x100/0x20});_0x2d3f84[_0x1e56fd(0x51d)]=_0x181f3f[_0x1e56fd(0x4ba)](_0x14355e);}()),_0x1b019c[_0x2243b1(0x51d)];}));}(bn));var rr=bn['exports'];const or=Le(rr);var ar=Tn();const zt=Le(ar);var On={'exports':{}};(function(_0x133c37,_0x20b450){(function(_0x3a0929,_0x3616a7){const _0x446b26=_0x513c;_0x133c37[_0x446b26(0x447)]=_0x3616a7(ae());}(J,function(_0x4355e8){const _0x4797fe=_0x513c;return _0x4355e8[_0x4797fe(0x271)][_0x4797fe(0x4d1)];}));}(On));var cr=On['exports'];const lr=Le(cr);var Dn={'exports':{}};(function(_0xc9e09c,_0x54a076){(function(_0x3699f1,_0x3dadd3){const _0x3098e7=_0x513c;_0xc9e09c[_0x3098e7(0x447)]=_0x3dadd3(ae());}(J,function(_0x151ff2){return(function(){const _0x265db9=_0x513c;if(typeof ArrayBuffer==_0x265db9(0x556)){var _0x4641bb=_0x151ff2,_0x3fd827=_0x4641bb['lib'],_0x38aa42=_0x3fd827[_0x265db9(0x33f)],_0xf65f4a=_0x38aa42[_0x265db9(0x5ca)],_0x2c3ace=_0x38aa42[_0x265db9(0x5ca)]=function(_0x12e215){const _0x36aa06=_0x265db9;if(_0x12e215 instanceof ArrayBuffer&&(_0x12e215=new Uint8Array(_0x12e215)),(_0x12e215 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x12e215 instanceof Uint8ClampedArray||_0x12e215 instanceof Int16Array||_0x12e215 instanceof Uint16Array||_0x12e215 instanceof Int32Array||_0x12e215 instanceof Uint32Array||_0x12e215 instanceof Float32Array||_0x12e215 instanceof Float64Array)&&(_0x12e215=new Uint8Array(_0x12e215[_0x36aa06(0x1dd)],_0x12e215[_0x36aa06(0x46d)],_0x12e215['byteLength'])),_0x12e215 instanceof Uint8Array){for(var _0x4533c1=_0x12e215[_0x36aa06(0x42b)],_0x49b4a7=[],_0x212adb=0x0;_0x212adb<_0x4533c1;_0x212adb++)_0x49b4a7[_0x212adb>>>0x2]|=_0x12e215[_0x212adb]<<0x18-_0x212adb%0x4*0x8;_0xf65f4a['call'](this,_0x49b4a7,_0x4533c1);}else _0xf65f4a[_0x36aa06(0x4ae)](this,arguments);};_0x2c3ace[_0x265db9(0x420)]=_0x38aa42;}}()),_0x151ff2['lib']['WordArray'];}));}(Dn));var hr=Dn[_0x37a374(0x447)];const _r=Le(hr);var wn={'exports':{}};(function(_0x324d6c,_0x72f30d){(function(_0x2171b6,_0x4f024f,_0x440545){const _0x319876=_0x513c;_0x324d6c[_0x319876(0x447)]=_0x4f024f(ae(),yn());}(J,function(_0x4ff61e){const _0x107bc1=_0x513c;return _0x4ff61e[_0x107bc1(0x3e9)][_0x107bc1(0x53e)]={'pad':function(){},'unpad':function(){}},_0x4ff61e[_0x107bc1(0x3e9)]['NoPadding'];}));}(wn));var ur=wn[_0x37a374(0x447)];const dr=Le(ur);function fr(_0x4aa2c4,_0x53c430){const _0x372800=_0x37a374,_0x197b81=_0x53c430-_0x4aa2c4[_0x372800(0x330)]%_0x53c430,_0x371ffb=String[_0x372800(0x229)](_0x197b81)[_0x372800(0x5d0)](_0x197b81);return _0x4aa2c4+_0x371ffb;}function vr(_0x1a1796,_0x23ea7c){const _0x358456=_0x37a374,_0x372d43=_r[_0x358456(0x59c)](0x10),_0x26b9f5=fr(_0x1a1796,0x10),_0x3c77e7=or[_0x358456(0x41c)](lr[_0x358456(0x558)](_0x26b9f5),zt['parse'](_0x23ea7c),{'iv':_0x372d43,'padding':dr});return _0x372d43['concat'](_0x3c77e7[_0x358456(0x230)])[_0x358456(0x4d2)](zt);}function mr(){const _0x3f6781=_0x37a374,_0x4dd1a6=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x4dd1a6){const _0x32212a={'time':Math[_0x3f6781(0x640)](Date[_0x3f6781(0x4e0)]()/0x3e8),'domain':location[_0x3f6781(0x399)]};return vr(JSON[_0x3f6781(0x3df)](_0x32212a),_0x4dd1a6);}}var pr=Object[_0x37a374(0x55e)],Sr=Object[_0x37a374(0x4a5)],gr=(_0x336fa0,_0x5dda00,_0x5b06db,_0x24dd6c)=>{const _0x46a4fe=_0x37a374;for(var _0x2e69b2=_0x24dd6c>0x1?void 0x0:_0x24dd6c?Sr(_0x5dda00,_0x5b06db):_0x5dda00,_0xa7361e=_0x336fa0[_0x46a4fe(0x330)]-0x1,_0x57900;_0xa7361e>=0x0;_0xa7361e--)(_0x57900=_0x336fa0[_0xa7361e])&&(_0x2e69b2=(_0x24dd6c?_0x57900(_0x5dda00,_0x5b06db,_0x2e69b2):_0x57900(_0x2e69b2))||_0x2e69b2);return _0x24dd6c&&_0x2e69b2&&pr(_0x5dda00,_0x5b06db,_0x2e69b2),_0x2e69b2;},Ir=(_0x5f0260,_0xd00138)=>(_0x143a82,_0x46a287)=>_0xd00138(_0x143a82,_0x46a287,_0x5f0260);let Ye=class{constructor(_0x4e7a29){const _0x996e01=_0x37a374;this['_httpService']=_0x4e7a29,this[_0x996e01(0x4a1)]();}[_0x37a374(0x4a1)](){const _0x3f1149=_0x37a374;this[_0x3f1149(0x20d)][_0x3f1149(0x417)]({'interceptor':(_0x46303d,_0x533b19)=>{const _0x4a6cbe=_0x3f1149,_0x3e5732=_0x46303d[_0x4a6cbe(0x356)],_0x4ec362=mr();return _0x4ec362&&_0x3e5732[_0x4a6cbe(0x5d1)](_0x4a6cbe(0x651),_0x4ec362),_0x533b19(_0x46303d);}});}};Ye=gr([Ir(0x0,a[_0x37a374(0x629)](Q[_0x37a374(0x34f)]))],Ye);var Cr=Object[_0x37a374(0x55e)],Er=Object[_0x37a374(0x4a5)],br=(_0x29cbe3,_0x27b21f,_0x186ee8,_0x2d9e8a)=>{const _0x3170a3=_0x37a374;for(var _0x3e4731=_0x2d9e8a>0x1?void 0x0:_0x2d9e8a?Er(_0x27b21f,_0x186ee8):_0x27b21f,_0x33ef50=_0x29cbe3[_0x3170a3(0x330)]-0x1,_0x2d21d2;_0x33ef50>=0x0;_0x33ef50--)(_0x2d21d2=_0x29cbe3[_0x33ef50])&&(_0x3e4731=(_0x2d9e8a?_0x2d21d2(_0x27b21f,_0x186ee8,_0x3e4731):_0x2d21d2(_0x3e4731))||_0x3e4731);return _0x2d9e8a&&_0x3e4731&&Cr(_0x27b21f,_0x186ee8,_0x3e4731),_0x3e4731;},ft=(_0x349cc3,_0x351002)=>(_0x4fcedb,_0x1747b1)=>_0x351002(_0x4fcedb,_0x1747b1,_0x349cc3);const Tr=['image/png',_0x37a374(0x584),_0x37a374(0x38f),'image/gif',_0x37a374(0x1c5)],Rr=0x5*0x400*0x400,yr=_0x37a374(0x649),Or=_0x37a374(0x62c),Dr=_0x37a374(0x57c),wr=_0x37a374(0x223);exports[_0x37a374(0x28b)]=class{constructor(_0x32babb,_0x45169a,_0x6efc4){const _0x46e661=_0x37a374;I(this,_0x46e661(0x277),0x0),I(this,_0x46e661(0x5d7),new A[(_0x46e661(0x383))]()),I(this,'change$',this['_change$']),I(this,_0x46e661(0x5d6),new Map()),(this[_0x46e661(0x20d)]=_0x32babb,this[_0x46e661(0x3e7)]=_0x45169a,this[_0x46e661(0x1d4)]=_0x6efc4);}[_0x37a374(0x205)](_0x597c14){const _0x237137=_0x37a374;this[_0x237137(0x277)]=_0x597c14,this['_change$'][_0x237137(0x24e)](_0x597c14);}['getImageSourceCache'](_0x253fb8,_0x444849){const _0xda9c71=_0x37a374;if(_0x444849===ie[_0xda9c71(0x5e7)][_0xda9c71(0x3d9)]){const _0x386448=new Image();return _0x386448['src']=_0x253fb8,_0x386448;}return this[_0xda9c71(0x5d6)]['get'](_0x253fb8);}[_0x37a374(0x374)](_0x2ebec6,_0x59ea44,_0x301408){const _0x2edb63=_0x37a374;_0x59ea44===ie[_0x2edb63(0x5e7)]['BASE64']||_0x301408==null||this[_0x2edb63(0x5d6)]['set'](_0x2ebec6,_0x301408);}async[_0x37a374(0x3d2)](_0x1e90a7){const _0x36588a=_0x37a374;try{const _0x4c1557=this[_0x36588a(0x3ba)](this[_0x36588a(0x2d6)](),''+_0x1e90a7),_0x4ff127=(await this[_0x36588a(0x20d)]['get'](_0x4c1557))[_0x36588a(0x360)];if(_0x4ff127[_0x36588a(0x237)]&&_0x4ff127[_0x36588a(0x237)]['code']===an['OK']){const _0x30aea6=new URL(_0x4ff127[_0x36588a(0x475)],this[_0x36588a(0x258)]())[_0x36588a(0x4d2)]();return Promise[_0x36588a(0x433)](_0x30aea6);}return Promise[_0x36588a(0x545)](_0x4ff127[_0x36588a(0x237)]);}catch(_0xc2cc05){return Promise['reject'](_0xc2cc05);}}async[_0x37a374(0x5ba)](_0x3d8565){const _0x48c2f3=_0x37a374;let _0x2a7e33='';if(!Tr[_0x48c2f3(0x5fc)](_0x3d8565[_0x48c2f3(0x1d2)]))return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie['ImageUploadStatusType'][_0x48c2f3(0x347)]));if(_0x3d8565[_0x48c2f3(0x654)]>Rr)return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x281)]));try{const _0x27cf34=new FormData();_0x27cf34['append'](_0x48c2f3(0x368),_0x3d8565);const _0x3439b6=this[_0x48c2f3(0x1d4)]['getFocusedUnit'](),_0x3e4d16=_0x3439b6==null?void 0x0:_0x3439b6[_0x48c2f3(0x615)]();if(!_0x3e4d16)throw new Error(_0x48c2f3(0x532));const _0x2088fb=this[_0x48c2f3(0x605)]()+_0x48c2f3(0x55c)+_0x3d8565[_0x48c2f3(0x654)][_0x48c2f3(0x4d2)]()+_0x48c2f3(0x1ee)+cn['UnitEmbedded']+_0x48c2f3(0x1d9)+encodeURIComponent(_0x3e4d16),_0x2cc6c3=await(await fetch(_0x2088fb,{'method':_0x48c2f3(0x598),'body':_0x27cf34}))[_0x48c2f3(0x570)]();if(typeof _0x2cc6c3['FileId']!='string')return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x45a)]));_0x2a7e33=_0x2cc6c3[_0x48c2f3(0x3ac)];}catch{return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x45a)]));}return new Promise((_0x5b09b0,_0x13a39d)=>{const _0x17b693=_0x48c2f3,_0x258b4a=new FileReader();_0x258b4a[_0x17b693(0x3be)](_0x3d8565),_0x258b4a['onload']=_0x285fb7=>{const _0x3e9b98=_0x17b693;var _0x2ab768;const _0x3d67d6=(_0x2ab768=_0x285fb7[_0x3e9b98(0x5b8)])==null?void 0x0:_0x2ab768['result'];if(_0x3d67d6==null){this[_0x3e9b98(0x552)](),_0x13a39d(new Error(ie[_0x3e9b98(0x2d8)][_0x3e9b98(0x45a)]));return;}const _0x3bbf34=a[_0x3e9b98(0x59b)][_0x3e9b98(0x3c0)](0x6);_0x5b09b0({'imageId':_0x3bbf34,'imageSourceType':ie[_0x3e9b98(0x5e7)][_0x3e9b98(0x660)],'source':_0x2a7e33,'base64Cache':_0x3d67d6,'status':ie[_0x3e9b98(0x2d8)]['SUCCUSS']}),this[_0x3e9b98(0x552)]();};});}['_getUploadFileURL'](){const _0x3d7cd5=_0x37a374;var _0x176f8e,_0x4f278f;const _0x4a37db=this[_0x3d7cd5(0x3e7)][_0x3d7cd5(0x37d)](yr),_0x5d69dd=this['_configService']['getConfig'](ne);return(_0x4f278f=(_0x176f8e=_0x5d69dd==null?void 0x0:_0x5d69dd['uploadFileServerUrl'])!=null?_0x176f8e:_0x4a37db)!=null?_0x4f278f:Or;}[_0x37a374(0x2d6)](){const _0x477d58=_0x37a374;var _0x4d3b59,_0x22beb4;const _0x2163b3=this['_configService'][_0x477d58(0x37d)](Dr),_0x319133=this[_0x477d58(0x3e7)][_0x477d58(0x37d)](ne);return(_0x22beb4=(_0x4d3b59=_0x319133==null?void 0x0:_0x319133[_0x477d58(0x43d)])!=null?_0x4d3b59:_0x2163b3)!=null?_0x22beb4:wr;}['_getDownloadEndpointURL'](){const _0x3c8f97=_0x37a374;var _0xb97d4e;const _0x1a9116=this[_0x3c8f97(0x3e7)][_0x3c8f97(0x37d)](ne);return(_0xb97d4e=_0x1a9116==null?void 0x0:_0x1a9116[_0x3c8f97(0x50a)])!=null?_0xb97d4e:location[_0x3c8f97(0x25f)];}[_0x37a374(0x3ba)](_0x37242b,_0x417e7c){const _0x3dca94=_0x37a374;return _0x37242b[_0x3dca94(0x2a2)](_0x3dca94(0x33b),_0x417e7c);}[_0x37a374(0x552)](){const _0x32af3d=_0x37a374;this[_0x32af3d(0x277)]-=0x1,this[_0x32af3d(0x5d7)][_0x32af3d(0x24e)](this[_0x32af3d(0x277)]);}},exports[_0x37a374(0x28b)]=br([ft(0x0,a[_0x37a374(0x629)](Q[_0x37a374(0x34f)])),ft(0x1,a[_0x37a374(0x30b)]),ft(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x662)]))],exports['ImageIoService']);var Pr=Object[_0x37a374(0x55e)],Ur=Object[_0x37a374(0x4a5)],Mr=(_0x43b431,_0x3a8b72,_0xd19f90,_0x1bcee7)=>{const _0x451097=_0x37a374;for(var _0x4e00ed=_0x1bcee7>0x1?void 0x0:_0x1bcee7?Ur(_0x3a8b72,_0xd19f90):_0x3a8b72,_0x386f67=_0x43b431[_0x451097(0x330)]-0x1,_0x3a3a1f;_0x386f67>=0x0;_0x386f67--)(_0x3a3a1f=_0x43b431[_0x386f67])&&(_0x4e00ed=(_0x1bcee7?_0x3a3a1f(_0x3a8b72,_0xd19f90,_0x4e00ed):_0x3a3a1f(_0x4e00ed))||_0x4e00ed);return _0x1bcee7&&_0x4e00ed&&Pr(_0x3a8b72,_0xd19f90,_0x4e00ed),_0x4e00ed;},Me=(_0x562085,_0x534db6)=>(_0x97a944,_0x44687b)=>_0x534db6(_0x97a944,_0x44687b,_0x562085);let Ke=class extends a['RxDisposable']{constructor(_0x54fa41,_0x383007,_0x3bf69b,_0x36f724,_0x24a344){const _0x5ca272=_0x37a374;super(),this[_0x5ca272(0x58f)]=_0x54fa41,this[_0x5ca272(0x1d4)]=_0x383007,this[_0x5ca272(0x478)]=_0x3bf69b,this[_0x5ca272(0x3a4)]=_0x36f724,this['_localeService']=_0x24a344,this[_0x5ca272(0x401)](),this['_initCloseConn']();}[_0x37a374(0x2bc)](){const _0x1ab7e5=_0x37a374,_0x451ec3=async _0x47e9c2=>{const _0x242481=_0x513c;(await this[_0x242481(0x3a4)][_0x242481(0x501)](_0x47e9c2))[_0x242481(0x5cc)]['pipe'](V['filter'](_0x49eb03=>_0x49eb03['eventID']===p[_0x242481(0x521)][_0x242481(0x544)]),V['takeUntil'](this[_0x242481(0x574)]))[_0x242481(0x274)](_0x5eac09=>{const _0x1d035c=_0x242481,_0x4b1fea=_0x5eac09,{reason:_0x202b5a}=_0x4b1fea[_0x1d035c(0x470)];this[_0x1d035c(0x58f)][_0x1d035c(0x5bf)](te[_0x1d035c(0x3bf)])[_0x1d035c(0x5b9)]({'type':Se[_0x1d035c(0x4c0)][_0x1d035c(0x2f5)],'content':this[_0x1d035c(0x1c9)]['t'](_0x1d035c(0x5e9))+'('+_0x202b5a+')'}),this['_permissionService']['updatePermissionPoint'](new k[(_0x1d035c(0x363))](_0x47e9c2)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x47e9c2);});};A['merge'](this[_0x1ab7e5(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1ab7e5(0x22d)][_0x1ab7e5(0x362)]),this[_0x1ab7e5(0x1d4)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x1ab7e5(0x619)]))['pipe'](V[_0x1ab7e5(0x323)](_0x94fd25=>_0x94fd25[_0x1ab7e5(0x615)]()),V[_0x1ab7e5(0x434)](_0x3974b5=>!a['isInternalEditorID'](_0x3974b5)),V[_0x1ab7e5(0x27d)](this[_0x1ab7e5(0x574)]))[_0x1ab7e5(0x274)](_0x53f2c2=>{_0x451ec3(_0x53f2c2);});}[_0x37a374(0x401)](){const _0x4e72d7=_0x37a374,_0x31c5c6=async _0x2b797a=>{const _0x4cfa41=_0x513c;(await this['_collaborationSessionService'][_0x4cfa41(0x501)](_0x2b797a))[_0x4cfa41(0x5cc)][_0x4cfa41(0x4d7)](V[_0x4cfa41(0x434)](_0x26bafe=>_0x26bafe['eventID']===p['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),V[_0x4cfa41(0x27d)](this[_0x4cfa41(0x574)]))[_0x4cfa41(0x274)](_0x2ad06f=>{const _0x28806e=_0x4cfa41,_0x23e5cb=_0x2ad06f,{objectId:_0x221ddc}=_0x23e5cb['data'],_0x9805ba=this[_0x28806e(0x58f)][_0x28806e(0x5bf)](Te[_0x28806e(0x5a5)]);_0x221ddc===_0x2b797a?_0x9805ba[_0x28806e(0x35f)](_0x2b797a):_0x9805ba[_0x28806e(0x240)](_0x2b797a,_0x221ddc);});};A['merge'](this[_0x4e72d7(0x1d4)][_0x4e72d7(0x442)](a['UniverInstanceType'][_0x4e72d7(0x362)]),this[_0x4e72d7(0x1d4)][_0x4e72d7(0x442)](a['UniverInstanceType'][_0x4e72d7(0x619)]))['pipe'](V[_0x4e72d7(0x323)](_0x405146=>_0x405146[_0x4e72d7(0x615)]()),V[_0x4e72d7(0x434)](_0x59ce86=>!a[_0x4e72d7(0x644)](_0x59ce86)),V[_0x4e72d7(0x27d)](this[_0x4e72d7(0x574)]))[_0x4e72d7(0x274)](_0x3f220a=>{_0x31c5c6(_0x3f220a);});}};Ke=Mr([Me(0x0,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),Me(0x1,a[_0x37a374(0x662)]),Me(0x2,a[_0x37a374(0x459)]),Me(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)])),Me(0x4,a['Inject'](a[_0x37a374(0x52f)]))],Ke);var Ar=Object[_0x37a374(0x55e)],Nr=Object[_0x37a374(0x4a5)],Lr=(_0x278b2b,_0x467237,_0x22d144,_0x44c57c)=>{const _0x1925c4=_0x37a374;for(var _0x5db813=_0x44c57c>0x1?void 0x0:_0x44c57c?Nr(_0x467237,_0x22d144):_0x467237,_0x51c001=_0x278b2b[_0x1925c4(0x330)]-0x1,_0x2d8b0f;_0x51c001>=0x0;_0x51c001--)(_0x2d8b0f=_0x278b2b[_0x51c001])&&(_0x5db813=(_0x44c57c?_0x2d8b0f(_0x467237,_0x22d144,_0x5db813):_0x2d8b0f(_0x5db813))||_0x5db813);return _0x44c57c&&_0x5db813&&Ar(_0x467237,_0x22d144,_0x5db813),_0x5db813;},Xt=(_0x29fe37,_0x5e4a29)=>(_0x294808,_0xf23233)=>_0x5e4a29(_0x294808,_0xf23233,_0x29fe37);exports['SnapshotServerOverHTTPService']=class{constructor(_0x4e6270,_0x148d8a){const _0x1e2e99=_0x37a374;this[_0x1e2e99(0x3e7)]=_0x4e6270,this[_0x1e2e99(0x20d)]=_0x148d8a;}async[_0x37a374(0x1cc)](_0x3bbf32,_0x88f0e7){const _0x3d37d0=_0x37a374;var _0x20f2e6;const {unitID:_0x43f2d8,type:_0x42cd78,revision:_0x34e26e=0x0}=_0x88f0e7,_0x519d55=this[_0x3d37d0(0x275)]()+'/'+_0x42cd78+_0x3d37d0(0x625)+_0x43f2d8+_0x3d37d0(0x66e)+_0x34e26e,_0x3482b9=(await this[_0x3d37d0(0x20d)][_0x3d37d0(0x5bf)](_0x519d55))[_0x3d37d0(0x360)],_0x1c81dd=(_0x20f2e6=_0x3482b9[_0x3d37d0(0x364)])==null?void 0x0:_0x20f2e6['workbook'];if(_0x1c81dd){const _0x2492aa=_0x1c81dd==null?void 0x0:_0x1c81dd[_0x3d37d0(0x31c)],_0x3596b7=p['textEncoder']['encode'](p['b64DecodeUnicode'](_0x2492aa));_0x1c81dd['originalMeta']=_0x3596b7,Object[_0x3d37d0(0x530)](_0x1c81dd[_0x3d37d0(0x2d4)])[_0x3d37d0(0x278)](([,_0x108987])=>{const _0x4beb6f=_0x3d37d0,_0x591961=_0x108987[_0x4beb6f(0x31c)],_0x2e6843=p[_0x4beb6f(0x27f)][_0x4beb6f(0x602)](p['b64DecodeUnicode'](_0x591961));_0x108987[_0x4beb6f(0x31c)]=_0x2e6843;});}return _0x3482b9;}async[_0x37a374(0x514)](_0x17885d,_0x454e65){const _0xaf736=_0x37a374,{unitID:_0x58ef3a,type:_0x1468ff,blockID:_0x727885}=_0x454e65,_0x1a71b0=this['_getAPIPrefix']()+'/'+_0x1468ff+_0xaf736(0x625)+_0x58ef3a+_0xaf736(0x5e8)+_0x727885;return(await this['_httpService'][_0xaf736(0x5bf)](_0x1a71b0))[_0xaf736(0x360)];}async['getDeserializedSheetBlock'](_0x547711,_0x403152){const _0x4a3a9a=_0x37a374,{unitID:_0x24097b,type:_0x261dcd,blockID:_0x1d65ea}=_0x403152,_0x4d6356=this[_0x4a3a9a(0x45b)]()+_0x4a3a9a(0x5e8)+_0x261dcd+'/unit/'+_0x24097b+'/block/'+_0x1d65ea;return(await this['_httpService'][_0x4a3a9a(0x5bf)](_0x4d6356))[_0x4a3a9a(0x360)];}async[_0x37a374(0x525)](_0x2414ac,_0x4f52f0){const _0x93a896=_0x37a374,{unitID:_0x57e018,type:_0x106909,from:_0x3edfbf,to:_0x5b9cef}=_0x4f52f0,_0x18a58d=this['_getAPIPrefix']()+'/'+_0x106909+_0x93a896(0x625)+_0x57e018+_0x93a896(0x348)+_0x3edfbf+'&to='+_0x5b9cef;return(await this[_0x93a896(0x20d)][_0x93a896(0x5bf)](_0x18a58d))[_0x93a896(0x360)];}['_getSnapshotAPIPrefix'](){const _0x2c7bb2=_0x37a374;var _0x2ebd13;return(_0x2ebd13=this[_0x2c7bb2(0x3e7)][_0x2c7bb2(0x37d)](Zt))!=null?_0x2ebd13:this[_0x2c7bb2(0x45b)]();}[_0x37a374(0x45b)](){const _0x240564=_0x37a374;var _0x2008cc,_0x2d80fa;const _0x31b06b=this[_0x240564(0x3e7)]['getConfig'](Jt),_0x4b0ae5=this[_0x240564(0x3e7)][_0x240564(0x37d)](ne);return(_0x2d80fa=(_0x2008cc=_0x4b0ae5==null?void 0x0:_0x4b0ae5['snapshotServerUrl'])!=null?_0x2008cc:_0x31b06b)!=null?_0x2d80fa:xn;}async[_0x37a374(0x3a6)](_0x5cee71,_0x540c81){const _0x47c091=_0x37a374,_0x3cfad5=_0x47c091(0x60c)+_0x540c81[_0x47c091(0x1d2)]+'/unit/'+_0x540c81[_0x47c091(0x505)]+_0x47c091(0x26f);return(await this[_0x47c091(0x20d)]['get'](_0x3cfad5,{'params':{'resourceId':JSON[_0x47c091(0x3df)](_0x540c81[_0x47c091(0x5f2)])}}))[_0x47c091(0x360)];}[_0x37a374(0x50b)](){const _0x3dd64b=_0x37a374;throw new Error(_0x3dd64b(0x25b));}[_0x37a374(0x221)](){const _0x125485=_0x37a374;throw new Error(_0x125485(0x25b));}[_0x37a374(0x22a)](){const _0x2869e1=_0x37a374;throw new Error(_0x2869e1(0x25b));}['copyFileMeta'](){const _0x4b1b4e=_0x37a374;throw new Error(_0x4b1b4e(0x25b));}['getLatestCsReqIdBySid'](){const _0x1a3ace=_0x37a374;throw new Error(_0x1a3ace(0x25b));}},exports[_0x37a374(0x457)]=Lr([Xt(0x0,a[_0x37a374(0x30b)]),Xt(0x1,a[_0x37a374(0x629)](Q['HTTPService']))],exports[_0x37a374(0x457)]);var xr=Object['defineProperty'],$r=Object['getOwnPropertyDescriptor'],jr=(_0xe1d711,_0x57f185,_0x429805,_0x48e749)=>{const _0x5348eb=_0x37a374;for(var _0x4be63e=_0x48e749>0x1?void 0x0:_0x48e749?$r(_0x57f185,_0x429805):_0x57f185,_0x3e4dcd=_0xe1d711[_0x5348eb(0x330)]-0x1,_0x1d9412;_0x3e4dcd>=0x0;_0x3e4dcd--)(_0x1d9412=_0xe1d711[_0x3e4dcd])&&(_0x4be63e=(_0x48e749?_0x1d9412(_0x57f185,_0x429805,_0x4be63e):_0x1d9412(_0x4be63e))||_0x4be63e);return _0x48e749&&_0x4be63e&&xr(_0x57f185,_0x429805,_0x4be63e),_0x4be63e;},Ae=(_0x299364,_0x341ad5)=>(_0x541f89,_0xd3b6fe)=>_0x341ad5(_0x541f89,_0xd3b6fe,_0x299364);let gt=class extends a[_0x37a374(0x60e)]{constructor(_0x39237b,_0x22fd65,_0x2764a6,_0x2c11de,_0x409b35){const _0xe87c66=_0x37a374;super(_0x39237b,_0x22fd65,_0x2764a6),this[_0xe87c66(0x541)]=_0x2c11de,this[_0xe87c66(0x58a)]=_0x409b35;}['transformUndoRedo'](_0x2a4675,_0x524de0){const _0x4be4b3=_0x37a374,_0x1214f6=this[_0x4be4b3(0x51c)](_0x2a4675);if(_0x1214f6)try{const _0x20411c=this[_0x4be4b3(0x60d)](_0x1214f6,_0x524de0);this['_substituteUndoStack'](_0x2a4675,_0x20411c);}catch(_0x4ac8d0){this[_0x4be4b3(0x58a)][_0x4be4b3(0x237)](_0x4be4b3(0x414),_0x4ac8d0),this['_clearUndo'](_0x2a4675);}const _0x198015=this[_0x4be4b3(0x59e)](_0x2a4675);if(_0x198015)try{const _0x50a4cf=this[_0x4be4b3(0x60d)](_0x198015,_0x524de0);this[_0x4be4b3(0x34d)](_0x2a4675,_0x50a4cf);}catch(_0x1020f0){this[_0x4be4b3(0x58a)]['error'](_0x1020f0),this[_0x4be4b3(0x642)](_0x2a4675);}}[_0x37a374(0x421)](_0x349047){const _0x78edc0=this['_getUndoStack'](_0x349047);_0x78edc0&&(_0x78edc0['length']=0x0,this['_updateStatus']());}[_0x37a374(0x642)](_0x2bed4e){const _0x4ef62d=_0x37a374,_0x308932=this[_0x4ef62d(0x59e)](_0x2bed4e);_0x308932&&(_0x308932[_0x4ef62d(0x330)]=0x0,this[_0x4ef62d(0x409)]());}[_0x37a374(0x5c2)](_0x222f18,_0x5ea173){const _0xe2cb37=_0x37a374;this[_0xe2cb37(0x515)]['set'](_0x222f18,_0x5ea173),this['_updateStatus']();}[_0x37a374(0x34d)](_0x10c50a,_0x107a2d){const _0x353393=_0x37a374;this['_redoStacks'][_0x353393(0x5d1)](_0x10c50a,_0x107a2d),this['_updateStatus']();}[_0x37a374(0x60d)](_0x55f051,_0x1def11){const _0xe736d4=_0x37a374,_0x376388=[];let _0xb3e360=_0x1def11,_0x4160e8=_0x1def11;for(let _0x4245ed=_0x55f051['length']-0x1;_0x4245ed>=0x0;_0x4245ed--){const {unitID:_0x5b3f0b,undoMutations:_0x162741,redoMutations:_0x1626c7}=_0x55f051[_0x4245ed],_0x545277=this[_0xe736d4(0x541)][_0xe736d4(0x45f)](_0xb3e360,_0x162741),_0x574263=this['_transformService'][_0xe736d4(0x45f)](_0x4160e8,_0x1626c7);if(p[_0xe736d4(0x62a)](_0x545277)||p[_0xe736d4(0x62a)](_0x574263)){this[_0xe736d4(0x58a)][_0xe736d4(0x237)]('[CollaborationUndoRedoService]',_0xe736d4(0x4fb),_0x545277,_0x574263);break;}_0xb3e360=_0x545277['c1Prime'],_0x4160e8=_0x574263[_0xe736d4(0x3c6)],_0x376388['push']({'unitID':_0x5b3f0b,'undoMutations':_0x545277[_0xe736d4(0x3b2)],'redoMutations':_0x574263[_0xe736d4(0x3b2)]});}return _0x376388[_0xe736d4(0x3c9)]();}};gt=jr([Ae(0x0,a[_0x37a374(0x662)]),Ae(0x1,a[_0x37a374(0x30c)]),Ae(0x2,a[_0x37a374(0x49f)]),Ae(0x3,p['ITransformService']),Ae(0x4,a[_0x37a374(0x217)])],gt);class Pn extends a[_0x37a374(0x2f7)]{constructor(){const _0x581b9e=_0x37a374;super(),I(this,_0x581b9e(0x29f)),this['urlChange$']=A[_0x581b9e(0x294)](window,_0x581b9e(0x555))['pipe'](A[_0x581b9e(0x27d)](this[_0x581b9e(0x574)]),A[_0x581b9e(0x3ae)](0x1),A[_0x581b9e(0x29e)](void 0x0));}[_0x37a374(0x4f8)](_0x8cb13b,_0x56a292,_0x49f34b=!0x1){const _0x4e3e99=_0x37a374,_0x305d57=new URL(window['location'][_0x4e3e99(0x310)]);_0x305d57[_0x4e3e99(0x2de)]['set'](_0x8cb13b,_0x56a292),_0x49f34b?window[_0x4e3e99(0x477)]['replaceState']('','',_0x305d57[_0x4e3e99(0x4d2)]()):window['history'][_0x4e3e99(0x33a)]('','',_0x305d57[_0x4e3e99(0x4d2)]());}[_0x37a374(0x2b4)](_0x51b370,_0x2be40a=!0x1){const _0x2d7ade=_0x37a374,_0x52e4d5=new URL(window[_0x2d7ade(0x34c)][_0x2d7ade(0x310)]);_0x52e4d5[_0x2d7ade(0x2de)][_0x2d7ade(0x412)](_0x51b370),_0x2be40a?window['history'][_0x2d7ade(0x418)]('','',_0x52e4d5[_0x2d7ade(0x4d2)]()):window[_0x2d7ade(0x477)][_0x2d7ade(0x33a)]('','',_0x52e4d5['toString']());}['getParam'](_0x30a8ab){const _0x550697=_0x37a374;var _0x5d1916;return(_0x5d1916=new URL(window[_0x550697(0x34c)][_0x550697(0x310)])[_0x550697(0x2de)][_0x550697(0x5bf)](_0x30a8ab))!=null?_0x5d1916:void 0x0;}}var Un=Object[_0x37a374(0x55e)],Hr=Object['getOwnPropertyDescriptor'],Br=(_0x5e3d6c,_0x553f16,_0x1255c2)=>_0x553f16 in _0x5e3d6c?Un(_0x5e3d6c,_0x553f16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1255c2}):_0x5e3d6c[_0x553f16]=_0x1255c2,kr=(_0x5b701a,_0x42e6a1,_0x226e05,_0x14b86a)=>{const _0x3e51d6=_0x37a374;for(var _0x4c26ca=_0x14b86a>0x1?void 0x0:_0x14b86a?Hr(_0x42e6a1,_0x226e05):_0x42e6a1,_0x17d86d=_0x5b701a[_0x3e51d6(0x330)]-0x1,_0x54668a;_0x17d86d>=0x0;_0x17d86d--)(_0x54668a=_0x5b701a[_0x17d86d])&&(_0x4c26ca=(_0x14b86a?_0x54668a(_0x42e6a1,_0x226e05,_0x4c26ca):_0x54668a(_0x4c26ca))||_0x4c26ca);return _0x14b86a&&_0x4c26ca&&Un(_0x42e6a1,_0x226e05,_0x4c26ca),_0x4c26ca;},He=(_0x1b55e2,_0x5ba626)=>(_0x15e293,_0x1ced3f)=>_0x5ba626(_0x15e293,_0x1ced3f,_0x1b55e2),Wr=(_0x43e4da,_0x2faef5,_0x58d68)=>Br(_0x43e4da,_0x2faef5+'',_0x58d68);const Fr=_0x37a374(0x481);exports[_0x37a374(0x26d)]=class extends a[_0x37a374(0x355)]{constructor(_0x5476ee=Yn,_0x33ff00,_0x211c30,_0x3c59d6,_0x46a85d){const _0x20ee11=_0x37a374;super(),this[_0x20ee11(0x4fd)]=_0x5476ee,this[_0x20ee11(0x58a)]=_0x33ff00,this['_renderManagerService']=_0x211c30,this['_injector']=_0x3c59d6,this[_0x20ee11(0x3e7)]=_0x46a85d;const {..._0x145cbb}=this[_0x20ee11(0x4fd)];this['_configService'][_0x20ee11(0x222)](ne,_0x145cbb);}[_0x37a374(0x648)](){const _0x4ca223=_0x37a374;this[_0x4ca223(0x560)](),this[_0x4ca223(0x372)]();}['onReady'](){const _0x48e4ca=_0x37a374;a[_0x48e4ca(0x4f5)](this['_injector'],[[Ve]]);}['onRendered'](){const _0x52d942=_0x37a374;this[_0x52d942(0x67b)]();}[_0x37a374(0x560)](){const _0x21b365=_0x37a374;var _0x22cb5d,_0x360706,_0x5aa8f5,_0x242436;this[_0x21b365(0x58f)]['has'](a[_0x21b365(0x3cd)])&&this[_0x21b365(0x58a)]['error'](_0x21b365(0x4b9),_0x21b365(0x2a5));const _0x46dd41=[[a['IUndoRedoService'],{'useClass':gt}],[exports[_0x21b365(0x5e2)]],[yt],[Dt,{'useClass':Pn}],[exports[_0x21b365(0x33d)]],[exports['LocalCacheService']],[Q[_0x21b365(0x319)]],[ke],[Fe],[Be],[We],[Tt],[Ge],[Ye],[bt],[Ke],[Et,{'useClass':(_0x360706=(_0x22cb5d=this['_config'])==null?void 0x0:_0x22cb5d['socketService'])!=null?_0x360706:exports[_0x21b365(0x23f)]}],[p[_0x21b365(0x5cb)],{'useClass':exports[_0x21b365(0x457)]}],[a[_0x21b365(0x54a)],{'useClass':exports[_0x21b365(0x361)]}],[ie[_0x21b365(0x46f)],{'useClass':exports['ImageIoService']}],[exports[_0x21b365(0x511)]],[exports[_0x21b365(0x61a)]],[exports[_0x21b365(0x4b3)]],[Ve],[Oe]];(_0x5aa8f5=this[_0x21b365(0x4fd)])!=null&&_0x5aa8f5[_0x21b365(0x49d)]&&_0x46dd41[_0x21b365(0x257)]([qe,{'useClass':Ti}]),a[_0x21b365(0x213)](this['_injector'],a['mergeOverrideWithDependencies'](_0x46dd41,(_0x242436=this['_config'])==null?void 0x0:_0x242436[_0x21b365(0x476)]));}['_registerRenderDependencies'](){const _0x888b71=_0x37a374;this[_0x888b71(0x4d6)](this[_0x888b71(0x427)][_0x888b71(0x548)](a[_0x888b71(0x22d)][_0x888b71(0x619)],[pt])),this[_0x888b71(0x4d6)](this[_0x888b71(0x427)][_0x888b71(0x548)](a[_0x888b71(0x22d)][_0x888b71(0x362)],[St]));}['_initDependencies'](){const _0x454b1d=_0x37a374;var _0x13a7fa,_0x2b0be4;this[_0x454b1d(0x58f)]['get'](Q[_0x454b1d(0x34f)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':Q[_0x454b1d(0x2e6)]({'maxParallel':0x6})}),(_0x13a7fa=this[_0x454b1d(0x4fd)])!=null&&_0x13a7fa[_0x454b1d(0x2f1)]||this['_injector'][_0x454b1d(0x5bf)](exports['LocalCacheService'])[_0x454b1d(0x3f1)](),(_0x2b0be4=this[_0x454b1d(0x4fd)])!=null&&_0x2b0be4['enableAuthServer']&&a['touchDependencies'](this['_injector'],[[Ge]]),a[_0x454b1d(0x4f5)](this[_0x454b1d(0x58f)],[[Ye],[Oe],[exports[_0x454b1d(0x61a)]],[exports[_0x454b1d(0x511)]],[exports[_0x454b1d(0x4b3)]],[Ke]]);}},Wr(exports['UniverCollaborationClientPlugin'],_0x37a374(0x2ae),Fr),exports[_0x37a374(0x26d)]=kr([a[_0x37a374(0x597)](p[_0x37a374(0x2be)],Q[_0x37a374(0x4f2)]),He(0x1,a['ILogService']),He(0x2,K[_0x37a374(0x55f)]),He(0x3,a[_0x37a374(0x629)](a['Injector'])),He(0x4,a[_0x37a374(0x30b)])],exports[_0x37a374(0x26d)]),exports[_0x37a374(0x65b)]=En,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=rn,exports[_0x37a374(0x212)]=Qt,exports[_0x37a374(0x28f)]=q,exports['CollaborationStatusDisplay']=Cn,exports['CommentService']=bt,exports[_0x37a374(0x1f1)]=en,exports['HEARTBEAT_TIMEOUT_KEY']=It,exports[_0x37a374(0x45e)]=Et,exports['IURLService']=Dt,exports[_0x37a374(0x44b)]=sn,exports[_0x37a374(0x20f)]=on,exports[_0x37a374(0x3e1)]=nn,exports[_0x37a374(0x2dd)]=$n,exports[_0x37a374(0x43a)]=Jt,exports[_0x37a374(0x2a3)]=Zt,exports[_0x37a374(0x246)]=re,exports[_0x37a374(0x5a0)]=mn,exports[_0x37a374(0x343)]=Pn,exports[_0x37a374(0x1f3)]=ln,exports[_0x37a374(0x37a)]=hn;
|