var touch,__extends=this&&this.__extends||function(){var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(n,e)};return function(n,e){function o(){this.constructor=n}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(n,e),n.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}();!function(t){var n=function(t){function n(n){var e=t.call(this)||this;return e._main=null,e._tipType=0,e.can_close=!1,e._main=n,e}return __extends(n,t),n.prototype.destroy=function(){t.prototype.destroy.call(this)},n.prototype.onSetType=function(t){this._tipType=t,this.close(),this.onClickGet()},n.prototype.onClickGet=function(){this.can_close=!0},n.init=function(){n.isInit||(n.isInit=!0,n.pushState=0,n.homeScreenState=0)},n.isInit=!1,n.can_subscribe=!1,n.pushState=0,n.canCreateShortcut=!1,n.homeScreenState=0,n.pushFriendRank=0,n.pushGetGift=0,n.gameTimes=0,n.gameTimesCancel=0,n}(ui.TipDialogUI);t.TipDialog=n}(touch||(touch={}));