"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;_classCallCheck(this,e),this.remoteHost=t,this.remotePort=r,this.localHost=i,this.localPort=n,this.cipher=o,this.certs=s}return _createClass(e,[{key:"_write",value:function(e){e.writeString(this.remoteHost),e.writeInt(this.remotePort),e.writeString(this.localHost),e.writeInt(this.localPort),e.writeString(this.cipher),Ice.StringSeqHelper.write(e,this.certs)}},{key:"_read",value:function(e){this.remoteHost=e.readString(),this.remotePort=e.readInt(),this.localHost=e.readString(),this.localPort=e.readInt(),this.cipher=e.readString(),this.certs=Ice.StringSeqHelper.read(e)}}],[{key:"minWireSize",get:function(){return 12}}]),e}(),r.defineStruct(Glacier2.SSLInfo,!0,!0),IceMX.SessionMetrics=function(e){function t(e,r,i,n,o){var s,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=arguments.length>11&&void 0!==arguments[11]?arguments[11]:0;return _classCallCheck(this,t),(s=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,r,i,n,o))).forwardedClient=c,s.forwardedServer=l,s.routingTableSize=a,s.queuedClient=u,s.queuedServer=p,s.overriddenClient=h,s.overriddenServer=f,s}return _inherits(t,IceMX.Metrics),_createClass(t,[{key:"_iceWriteMemberImpl",value:function(e){e.writeInt(this.forwardedClient),e.writeInt(this.forwardedServer),e.writeInt(this.routingTableSize),e.writeInt(this.queuedClient),e.writeInt(this.queuedServer),e.writeInt(this.overriddenClient),e.writeInt(this.overriddenServer)}},{key:"_iceReadMemberImpl",value:function(e){this.forwardedClient=e.readInt(),this.forwardedServer=e.readInt(),this.routingTableSize=e.readInt(),this.queuedClient=e.readInt(),this.queuedServer=e.readInt(),this.overriddenClient=e.readInt(),this.overriddenServer=e.readInt()}}]),t}(),r.defineValue(IceMX.SessionMetrics,"::IceMX::SessionMetrics",!1),function(){Glacier2.CannotCreateSessionException=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,i))).reason=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return Glacier2.CannotCreateSessionException}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.reason)}},{key:"_readMemberImpl",value:function(e){this.reason=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::Glacier2::CannotCreateSessionException"}}]),t}(),r.PreservedUserException(Glacier2.CannotCreateSessionException);Glacier2.Session=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.SessionPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.Session,Glacier2.SessionPrx,["::Glacier2::Session","::Ice::Object"],0,{destroy:[,,,,,,,,,]});Glacier2.StringSet=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.StringSetPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.StringSet,Glacier2.StringSetPrx,["::Glacier2::StringSet","::Ice::Object"],0,{add:[,2,2,,,[["Ice.StringSeqHelper"]],,,,],remove:[,2,2,,,[["Ice.StringSeqHelper"]],,,,],get:[,2,2,,["Ice.StringSeqHelper"],,,,,]});Glacier2.IdentitySet=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.IdentitySetPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.IdentitySet,Glacier2.IdentitySetPrx,["::Glacier2::IdentitySet","::Ice::Object"],0,{add:[,2,2,,,[["Ice.IdentitySeqHelper"]],,,,],remove:[,2,2,,,[["Ice.IdentitySeqHelper"]],,,,],get:[,2,2,,["Ice.IdentitySeqHelper"],,,,,]});Glacier2.SessionControl=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.SessionControlPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.SessionControl,Glacier2.SessionControlPrx,["::Glacier2::SessionControl","::Ice::Object"],0,{categories:[,,,,["Glacier2.StringSetPrx"],,,,,],adapterIds:[,,,,["Glacier2.StringSetPrx"],,,,,],identities:[,,,,["Glacier2.IdentitySetPrx"],,,,,],getSessionTimeout:[,2,2,,[3],,,,,],destroy:[,,,,,,,,,]});Glacier2.SessionManager=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.SessionManagerPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.SessionManager,Glacier2.SessionManagerPrx,["::Glacier2::SessionManager","::Ice::Object"],0,{create:[,,,2,["Glacier2.SessionPrx"],[[7],["Glacier2.SessionControlPrx"]],,[Glacier2.CannotCreateSessionException],,]});Glacier2.SSLSessionManager=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.SSLSessionManagerPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.SSLSessionManager,Glacier2.SSLSessionManagerPrx,["::Glacier2::SSLSessionManager","::Ice::Object"],0,{create:[,,,2,["Glacier2.SessionPrx"],[[Glacier2.SSLInfo],["Glacier2.SessionControlPrx"]],,[Glacier2.CannotCreateSessionException],,]})}(),function(){Glacier2.PermissionDeniedException=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,i))).reason=r,e}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return Glacier2.PermissionDeniedException}},{key:"_writeMemberImpl",value:function(e){e.writeString(this.reason)}},{key:"_readMemberImpl",value:function(e){this.reason=e.readString()}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::Glacier2::PermissionDeniedException"}}]),t}(),r.PreservedUserException(Glacier2.PermissionDeniedException);Glacier2.PermissionsVerifier=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.PermissionsVerifierPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.PermissionsVerifier,Glacier2.PermissionsVerifierPrx,["::Glacier2::PermissionsVerifier","::Ice::Object"],0,{checkPermissions:[,2,1,2,[1],[[7],[7]],[[7]],[Glacier2.PermissionDeniedException],,]});Glacier2.SSLPermissionsVerifier=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),t}(),Glacier2.SSLPermissionsVerifierPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),t}(),r.defineOperations(Glacier2.SSLPermissionsVerifier,Glacier2.SSLPermissionsVerifierPrx,["::Glacier2::SSLPermissionsVerifier","::Ice::Object"],0,{authorize:[,2,1,2,[1],[[Glacier2.SSLInfo]],[[7]],[Glacier2.PermissionDeniedException],,]})}(),function(){Glacier2.SessionNotExistException=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))}return _inherits(t,Ice.UserException),_createClass(t,[{key:"_mostDerivedType",value:function(){return Glacier2.SessionNotExistException}}],[{key:"_parent",get:function(){return Ice.UserException}},{key:"_id",get:function(){return"::Glacier2::SessionNotExistException"}}]),t}();Glacier2.Router=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.Object),_createClass(t,null,[{key:"_iceImplements",get:function(){return[Ice.Router]}}]),t}(),Glacier2.RouterPrx=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,Ice.ObjectPrx),_createClass(t,null,[{key:"_implements",get:function(){return[Ice.RouterPrx]}}]),t}(),r.defineOperations(Glacier2.Router,Glacier2.RouterPrx,["::Glacier2::Router","::Ice::Object","::Ice::Router"],0,{getCategoryForClient:[,2,1,,[7],,,,,],createSession:[,,,2,["Glacier2.SessionPrx"],[[7],[7]],,[Glacier2.CannotCreateSessionException,Glacier2.PermissionDeniedException],,],createSessionFromSecureConnection:[,,,2,["Glacier2.SessionPrx"],,,[Glacier2.CannotCreateSessionException,Glacier2.PermissionDeniedException],,],refreshSession:[,,,,,,,[Glacier2.SessionNotExistException],,],destroySession:[,,,,,,,[Glacier2.SessionNotExistException],,],getSessionTimeout:[,2,1,,[4],,,,,],getACMTimeout:[,2,1,,[3],,,,,]})}(),e.Glacier2=Glacier2,e.ice=t}();