ionic-framework
Version:
The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.
2 lines • 302 kB
JavaScript
module.exports=function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}i(n(2)),i(n(8)),i(n(24)),i(n(79)),i(n(80)),i(n(81)),i(n(9)),i(n(85)),i(n(12)),i(n(16)),i(n(14)),i(n(23)),i(n(18)),i(n(89)),n(90),n(91),n(92),n(93),n(94)},function(t,e,n){function i(t){void 0===t&&(t={});var e=new u.Platform,n=new v.NavRegistry(t.pages),i=t.config;i instanceof p.Config||(i=new p.Config(i)),e.setUrl(window.location.href),e.setUserAgent(window.navigator.userAgent),e.setNavigatorPlatform(window.navigator.platform),e.load(),i.setPlatform(e);var h=new y.ClickBlock,w=new m.Events,E=new b.FeatureDetect;return o(window,document,i,e,h,E),r(window,document,e,w),e.prepareReady(i),[c.IonicApp,s.provide(y.ClickBlock,{useValue:h}),s.provide(p.Config,{useValue:i}),s.provide(u.Platform,{useValue:e}),s.provide(b.FeatureDetect,{useValue:E}),s.provide(m.Events,{useValue:w}),s.provide(v.NavRegistry,{useValue:n}),_.TapClick,d.Form,f.Keyboard,g.Translate,a.ROUTER_PROVIDERS,s.provide(a.LocationStrategy,{useClass:a.HashLocationStrategy}),l.HTTP_PROVIDERS]}function o(t,e,n,i,o,r){var s=e.body,a=n.get("mode"),l=a+"-href",c=e.head.querySelector("link["+l+"]");if(c){var p=c.getAttribute(l);c.removeAttribute(l),c.href=p}s.classList.add(a),i.setDir(e.documentElement.dir,!1),i.setLang(e.documentElement.lang,!1);var u=i.versions();i.platforms().forEach(function(t){var e="platform-"+t;s.classList.add(e);var n=u[t];n&&(e+=n.major,s.classList.add(e),s.classList.add(e+"_"+n.minor))}),n.get("hoverCSS")!==!1&&s.classList.add("enable-hover"),n.get("clickBlock")&&o.enable(),r.run(t,e)}function r(t,e,n,i){t.addEventListener("online",function(t){i.publish("app:online",t)},!1),t.addEventListener("offline",function(t){i.publish("app:offline",t)},!1),t.addEventListener("orientationchange",function(t){i.publish("app:rotated",t)}),t.addEventListener("statusTap",function(t){var i=e.elementFromPoint(n.width()/2,n.height()/2);if(i){var o=w.closest(i,"scroll-content");if(o){var r=new h.ScrollTo(o);r.start(0,0,300,0)}}}),setTimeout(function(){t.addEventListener("resize",function(){n.windowResize()})},2e3)}var s=n(3),a=n(4),l=n(5),c=n(6),p=n(8),u=n(9),d=n(13),f=n(14),h=n(15),m=n(16),v=n(17),g=n(18),y=n(12),b=n(19),_=n(20),w=n(11);e.ionicProviders=i},function(t,e){t.exports=require("angular2").core},function(t,e){t.exports=require("angular2").router},function(t,e){t.exports=require("angular2").http},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(3),s=n(7),a=n(8),l=n(12),c=n(11),p=function(){function t(t,e,n){this._config=t,this._clickBlock=e,this._zone=n,this._titleSrv=new s.Title,this._title="",this._disTime=0,this._scrollTime=0,this.components={}}return t.prototype.setTitle=function(t){var e=this;t!==e._title&&(e._title=t,this._zone.runOutsideAngular(function(){function t(){e._titleSrv.setTitle(e._title)}c.rafFrames(4,t)}))},t.prototype.setEnabled=function(t,e){void 0===e&&(e=700),this._disTime=t?0:Date.now()+e,(e>32||t)&&this._clickBlock.show(!t,e+64)},t.prototype.isEnabled=function(){return this._disTime<Date.now()},t.prototype.setScrolling=function(){this._scrollTime=Date.now()},t.prototype.isScrolling=function(){return this._scrollTime+64>Date.now()},t.prototype.register=function(t,e){this.components[t]&&this.components[t]!==e,this.components[t]=e},t.prototype.unregister=function(t){delete this.components[t]},t.prototype.getRegisteredComponent=function(t){for(var e in this.components){var n=this.components[e];if(n instanceof t)return n}},t.prototype.getComponent=function(t){return this.components[t]},t=i([r.Injectable(),o("design:paramtypes",["function"==typeof(e="undefined"!=typeof a.Config&&a.Config)&&e||Object,"function"==typeof(n="undefined"!=typeof l.ClickBlock&&l.ClickBlock)&&n||Object,"function"==typeof(p="undefined"!=typeof r.NgZone&&r.NgZone)&&p||Object])],t);var e,n,p}();e.IonicApp=p},function(t,e){t.exports=require("angular2").platform.browser},function(t,e,n){var i=n(9),o=n(10),r=function(){function t(t){this._c={},this._s={},this._s=t&&o.isObject(t)&&!o.isArray(t)?t:{}}return t.prototype.settings=function(){var t=arguments;switch(t.length){case 0:return this._s;case 1:this._s=t[0],this._c={};break;case 2:this._s.platforms=this._s.platforms||{},this._s.platforms[t[0]]=t[1],this._c={}}return this},t.prototype.set=function(){var t=arguments,e=t[0],n=t[1];switch(t.length){case 2:this._s[e]=n,delete this._c[e];break;case 3:this._s.platforms=this._s.platforms||{},this._s.platforms[e]=this._s.platforms[e]||{},this._s.platforms[e][n]=t[2],delete this._c[n]}return this},t.prototype.get=function(e){if(!o.isDefined(this._c[e])){if(!o.isDefined(e))throw"config key is not defined";var n=void 0,r=this._s[e],s=void 0,a=void 0,l=void 0,c=void 0,p=null;if(this.platform){var u=this.platform.query("ionic"+e.toLowerCase());if(o.isDefined(u))return this._c[e]="true"===u?!0:"false"===u?!1:u;for(var d=this.platform.platforms(),f=0,h=d.length;h>f;f++)this._s.platforms&&(p=this._s.platforms[d[f]],p&&(o.isDefined(p[e])&&(n=p[e]),p=t.getModeConfig(p.mode),p&&o.isDefined(p[e])&&(s=p[e]))),p=i.Platform.get(d[f]),p&&p.settings&&(o.isDefined(p.settings[e])&&(l=p.settings[e]),p=t.getModeConfig(p.settings.mode),p&&o.isDefined(p[e])&&(c=p[e]))}p=t.getModeConfig(this._s.mode),p&&o.isDefined(p[e])&&(a=p[e]),this._c[e]=o.isDefined(n)?n:o.isDefined(r)?r:o.isDefined(s)?s:o.isDefined(a)?a:o.isDefined(l)?l:o.isDefined(c)?c:null}return o.isFunction(this._c[e])?this._c[e](this.platform):this._c[e]},t.prototype.getBoolean=function(t){var e=this.get(t);return e||"true"===e?!0:!1},t.prototype.setPlatform=function(t){this.platform=t},t.setModeConfig=function(t,e){s[t]=e},t.getModeConfig=function(t){return s[t]||null},t}();e.Config=r;var s={}},function(t,e,n){function i(t){var e=t.superset();if(e){var n=new a(e);n.parent=t.parent,n.child=t,n.parent&&(n.parent.child=n),t.parent=n}}var o=n(10),r=n(11),s=function(){function t(t){var e=this;void 0===t&&(t=[]),this._versions={},this._onResizes=[],this._platforms=t,this._readyPromise=new Promise(function(t){e._readyResolve=t})}return t.prototype.is=function(t){return this._platforms.indexOf(t)>-1},t.prototype.platforms=function(){return this._platforms},t.prototype.versions=function(t){return arguments.length?this._versions[t]:this._versions},t.prototype.version=function(){for(var t in this._versions)if(this._versions[t])return this._versions[t];return{}},t.prototype.ready=function(){return this._readyPromise},t.prototype.prepareReady=function(t){function e(){n._readyResolve(t)}var n=this;this._engineReady?this._engineReady(e):r.ready(e)},t.prototype.setDir=function(t,e){this._dir=(t||"").toLowerCase(),e!==!1&&document.documentElement.setAttribute("dir",t)},t.prototype.dir=function(){return this._dir},t.prototype.isRTL=function(){return"rtl"===this._dir},t.prototype.setLang=function(t,e){this._lang=t,e!==!1&&document.documentElement.setAttribute("lang",t)},t.prototype.lang=function(){return this._lang},t.prototype.on=function(){},t.prototype.onHardwareBackButton=function(){},t.prototype.registerBackButtonAction=function(){},t.prototype.exitApp=function(){},t.prototype.fullScreen=function(){},t.prototype.showStatusBar=function(){},t.prototype.setUrl=function(t){this._url=t,this._qs=o.getQuerystring(t)},t.prototype.url=function(){return this._url},t.prototype.query=function(t){return(this._qs||{})[t]},t.prototype.setUserAgent=function(t){this._ua=t},t.prototype.userAgent=function(){return this._ua||""},t.prototype.setNavigatorPlatform=function(t){this._bPlt=t},t.prototype.navigatorPlatform=function(){return this._bPlt||""},t.prototype.width=function(){return r.windowDimensions().width},t.prototype.height=function(){return r.windowDimensions().height},t.prototype.isPortrait=function(){return this.width()<this.height()},t.prototype.isLandscape=function(){return!this.isPortrait()},t.prototype.windowResize=function(){var t=this;clearTimeout(t._resizeTimer),t._resizeTimer=setTimeout(function(){r.flushDimensionCache();for(var e=0;e<t._onResizes.length;e++)try{t._onResizes[e]()}catch(n){}},250)},t.prototype.onResize=function(t){this._onResizes.push(t)},t.register=function(t){l[t.name]=t},t.registry=function(){return l},t.get=function(t){return l[t]||{}},t.setDefault=function(t){c=t},t.prototype.testQuery=function(t,e){var n=t.toLowerCase().split(";");return n.indexOf(e)>-1},t.prototype.testUserAgent=function(t){var e=new RegExp(t,"i");return e.test(this._ua||"")},t.prototype.testNavigatorPlatform=function(t){var e=new RegExp(t,"i");return e.test(this._bPlt)},t.prototype.matchUserAgentVersion=function(t){if(this._ua&&t){var e=this._ua.match(t);if(e)return{major:e[1],minor:e[2]}}},t.prototype.isPlatform=function(t,e){e||(e=t);var n=this.query("ionicplatform");return n?this.testQuery(n,t):this.testUserAgent(e)},t.prototype.load=function(t){var e=null,n=null;this.platformOverride=t;var r=null;for(var s in l)r=this.matchPlatform(s),r&&(r.isEngine?n=r:(!e||r.depth>e.depth)&&(e=r));if(e||(e=new a(c)),e){if(n){n.child=e,e.parent=n,e=n;var p=n.methods();p._engineReady=p.ready,delete p.ready,o.assign(this,p)}for(var u=e;u;)i(u),u=u.child;for(u=e.parent;u;)e=u,u=u.parent;for(u=e;u;)this._platforms.push(u.name()),this._versions[u.name()]=u.version(this),u=u.child}this._platforms.indexOf("mobile")>-1&&-1===this._platforms.indexOf("cordova")&&this._platforms.push("mobileweb")},t.prototype.matchPlatform=function(t){var e=new a(t),n=e.getRoot(this);if(n){n.depth=0;for(var i=n.child;i;)n.depth++,i=i.child}return n},t}();e.Platform=s;var a=function(){function t(t){this.c=s.get(t),this.isEngine=this.c.isEngine}return t.prototype.name=function(){return this.c.name},t.prototype.settings=function(){return this.c.settings||{}},t.prototype.superset=function(){return this.c.superset},t.prototype.methods=function(){return this.c.methods||{}},t.prototype.isMatch=function(t){return t.platformOverride&&!this.isEngine?t.platformOverride===this.c.name:this.c.isMatch?this.c.isMatch(t):!1},t.prototype.version=function(t){if(this.c.versionParser){var e=this.c.versionParser(t);if(e){var n=e.major+"."+e.minor;return{str:n,num:parseFloat(n),major:parseInt(e.major,10),minor:parseInt(e.minor,10)}}}},t.prototype.getRoot=function(e){if(this.isMatch(e)){var n=this.getSubsetParents(this.name());if(!n.length)return this;for(var i=null,o=null,r=0;r<n.length;r++)if(i=new t(n[r]),i.child=this,o=i.getRoot(e))return this.parent=i,o}return null},t.prototype.getSubsetParents=function(t){var e=s.registry(),n=[],i=null;for(var o in e)i=e[o],i.subsets&&i.subsets.indexOf(t)>-1&&n.push(o);return n},t}(),l={},c=null},function(t,e){function n(){}function i(t,e,n){return Math.max(t,Math.min(e,n))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return"function"!=typeof Object.assign?s(t[0],[].slice.call(t,1),!1):Object.assign.apply(null,t)}function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return s(t,[].slice.call(arguments,1),!0)}function s(t,n,i){for(var o=0,r=n.length;r>o;++o){var a=n[o];if(a&&(e.isObject(a)||e.isFunction(a)))for(var l=Object.keys(a),c=0,p=l.length;p>c;c++){var u=l[c],d=a[u];i&&e.isObject(d)?(e.isObject(t[u])||(t[u]=e.isArray(d)?[]:{}),s(t[u],[d],!0)):t[u]=d}}return t}function a(t,e,n){void 0===n&&(n=!1);var i,o,r,s,a;return function(){r=this,o=arguments,s=Date.now();var l=function(){var c=Date.now()-s;e>c?i=setTimeout(l,e-c):(i=null,n||(a=t.apply(r,o)))},c=n&&!i;return i||(i=setTimeout(l,e)),c&&(a=t.apply(r,o)),a}}function l(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=arguments.length-1;i>=1;i--){var o=arguments[i]||{};for(var r in o)o.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=o[r])}return t}function c(t){return void 0===t&&(t=""),t.charAt(0).toLowerCase()+t.substring(1).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}function p(){return++f}function u(t){var e={};if(t){var n=t.indexOf("?");if(-1!==n){var i=t.slice(n+1).split("&");i.forEach(function(t){var n=t.split("=");e[n[0].toLowerCase()]=n[1].split("#")[0]})}}return e}function d(t,e,n){var i,o,r,s=null,a=0;n||(n={});var l=function(){a=n.leading===!1?0:Date.now(),s=null,r=t.apply(i,o)};return function(){var c=Date.now();a||n.leading!==!1||(a=c);var p=e-(c-a);return i=this,o=arguments,0>=p?(clearTimeout(s),s=null,a=c,r=t.apply(i,o)):s||n.trailing===!1||(s=setTimeout(l,p)),r}}e.noop=n,e.clamp=i,e.assign=o,e.merge=r,e.debounce=a,e.defaults=l,e.isBoolean=function(t){return"boolean"==typeof t},e.isString=function(t){return"string"==typeof t},e.isNumber=function(t){return"number"==typeof t},e.isFunction=function(t){return"function"==typeof t},e.isDefined=function(t){return"undefined"!=typeof t},e.isUndefined=function(t){return"undefined"==typeof t},e.isBlank=function(t){return void 0===t||null===t},e.isObject=function(t){return"object"==typeof t},e.isArray=Array.isArray,e.isTrueProperty=function(t){return"undefined"!=typeof t&&"false"!==t},e.pascalCaseToDashCase=c;var f=0;e.nextUid=p,e.array={find:function(t,e){for(var n=0,i=t.length;i>n;n++)if(e(t[n],n))return t[n]},remove:function(t,n){var i=-1;return i=e.isNumber(n)?n:t.indexOf(n),0>i?!1:(t.splice(i,1),!0)}},e.getQuerystring=u,e.throttle=d},function(t,e){function n(t,n){t=Math.ceil(t),2>t?e.raf(n):setTimeout(function(){e.raf(n)},17*(t-1))}function i(t){return s(t,e.CSS.transitionEnd)}function o(t,n){return s(t,e.CSS.animationStart,n)}function r(t,n){return s(t,e.CSS.animationEnd,n)}function s(t,e,n){return new Promise(function(i){function o(r){if(r.animationName&&n){if(r.animationName!==n)return}else if(r.target!==t)return;r.stopPropagation(),e.split(" ").forEach(function(e){t.removeEventListener(e,o)}),i(r)}e.split(" ").forEach(function(e){t.addEventListener(e,o)})})}function a(t){function e(){C.removeEventListener("DOMContentLoaded",e,!1),O.removeEventListener("load",e,!1),t()}var n=null;return t||(n=new Promise(function(e){t=e})),"complete"===C.readyState||"interactive"===C.readyState?t():(C.addEventListener("DOMContentLoaded",e,!1),O.addEventListener("load",e,!1)),n}function l(t){function e(){O.removeEventListener("load",e,!1),t()}var n=null;return t||(n=new Promise(function(e){t=e})),"complete"===C.readyState?t():O.addEventListener("load",e,!1),n}function c(t){var e={x:0,y:0};if(t){var n=t.touches&&t.touches.length?t.touches:[t],i=t.changedTouches&&t.changedTouches[0]||n[0];i&&(e.x=i.clientX||i.pageX||0,e.y=i.clientY||i.pageY||0)}return e}function p(t,e,n){return e&&n&&(Math.abs(e.x-n.x)>t||Math.abs(e.y-n.y)>t)}function u(t){return!(!t||C.activeElement!==t)}function d(t){return u(t)&&t.parentElement.querySelector(":focus")===t}function f(t){return!!t&&("TEXTAREA"==t.tagName||"true"===t.contentEditable||"INPUT"==t.tagName&&!/^(radio|checkbox|range|file|submit|reset|color|image|button)$/i.test(t.type))}function h(){var t=C.activeElement;return f(t)?t.parentElement.querySelector(":focus")===t:!1}function m(t,e,n){if(t&&S)for(t=n?t:t.parentElement;null!==t;){if(t[S](e))return t;t=t.parentElement}return null}function v(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function g(t,e){var n=x[e];if(!n){if(!t.offsetWidth||!t.offsetHeight)return{width:0,height:0,left:0,top:0};n=x[e]={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop}}return n}function y(){if(!x.win){if(!O.innerWidth||!O.innerHeight)return{width:0,height:0};x.win={width:O.innerWidth,height:O.innerHeight}}return x.win}function b(){x={}}function _(t){return"static"===(t.style.position||"static")}function w(t){for(var e=t.offsetParent||C;e&&e!==C&&_(e);)e=e.offsetParent;return e||C}function E(t){var e=T(t),n={top:0,left:0},i=w(t);i!=C&&(n=T(i),n.top+=i.clientTop-i.scrollTop,n.left+=i.clientLeft-i.scrollLeft);var o=t.getBoundingClientRect();return{width:o.width||t.offsetWidth,height:o.height||t.offsetHeight,top:e.top-n.top,left:e.left-n.left}}function T(t){var e=t.getBoundingClientRect();return{width:e.width||t.offsetWidth,height:e.height||t.offsetHeight,top:e.top+(O.pageYOffset||R.scrollTop),left:e.left+(O.pageXOffset||R.scrollLeft)}}var O=window,C=document,R=C.documentElement;e.raf=O.requestAnimationFrame,e.rafFrames=n,e.CSS={},function(){var t,n=["webkitTransform","transform","-webkit-transform","webkit-transform","-moz-transform","moz-transform","MozTransform","mozTransform","msTransform"];for(t=0;t<n.length;t++)if(void 0!==R.style[n[t]]){e.CSS.transform=n[t];break}for(n=["webkitTransition","mozTransition","msTransition","transition"],t=0;t<n.length;t++)if(void 0!==R.style[n[t]]){e.CSS.transition=n[t];break}var i=e.CSS.transition.indexOf("webkit")>-1;e.CSS.transitionDuration=(i?"-webkit-":"")+"transition-duration",e.CSS.transitionEnd=(i?"webkitTransitionEnd ":"")+"transitionend"}(),void 0===O.onanimationend&&void 0!==O.onwebkitanimationend?(e.CSS.animationStart="webkitAnimationStart animationstart",e.CSS.animationEnd="webkitAnimationEnd animationend"):(e.CSS.animationStart="animationstart",e.CSS.animationEnd="animationend"),e.transitionEnd=i,e.animationStart=o,e.animationEnd=r,e.ready=a,e.windowLoad=l,e.pointerCoord=c,e.hasPointerMoved=p,e.isActive=u,e.hasFocus=d,e.isTextInput=f,e.hasFocusedTextInput=h;var S,I=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector"];I.some(function(t){return"function"==typeof R[t]?(S=t,!0):void 0}),e.closest=m,e.removeElement=v,e.getDimensions=g,e.windowDimensions=y,e.flushDimensionCache=b;var x={};e.parentOffsetEl=w,e.position=E,e.offset=T},function(t,e){function n(t){clearTimeout(r),r=setTimeout(i,t||a),l||(o.classList.add(s),l=!0)}function i(){clearTimeout(r),l&&(o.classList.remove(s),l=!1)}var o,r,s="click-block-active",a=330,l=!1,c=function(){function t(){this._enabled=!1}return t.prototype.enable=function(){o=document.createElement("click-block"),document.body.appendChild(o),o.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),this._enabled=!0},t.prototype.show=function(t,e){this._enabled&&(t?n(e):i())},t}();e.ClickBlock=c},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(3),s=function(){function t(){this._focused=null,this._ids=-1,this._inputs=[],this.focusCtrl(document)}return t.prototype.register=function(t){this._inputs.push(t)},t.prototype.deregister=function(t){var e=this._inputs.indexOf(t);e>-1&&this._inputs.splice(e,1),t===this._focused&&(this._focused=null)},t.prototype.focusCtrl=function(t){var e=t.createElement("focus-ctrl");e.setAttribute("aria-hidden",!0),this._blur=t.createElement("button"),this._blur.tabIndex=-1,e.appendChild(this._blur),t.body.appendChild(e)},t.prototype.focusOut=function(){var t=document.activeElement;t&&t.blur(),this._blur.focus()},t.prototype.setAsFocused=function(t){this._focused=t},t.prototype.focusNext=function(t){var e=this._inputs.indexOf(t);if(e>-1&&e+1<this._inputs.length){var n=this._inputs[e+1];if(n!==this._focused)return n.initFocus()}if(e=this._inputs.indexOf(this._focused),e>0){var i=this._inputs[e-1];i&&i.initFocus()}},t.prototype.nextId=function(){return++this._ids},t=i([r.Injectable(),o("design:paramtypes",[])],t)}();e.Form=s},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(3),s=n(8),a=n(13),l=n(11),c=function(){function t(t,e,n){var i=this;this._form=e,this._zone=n,n.runOutsideAngular(function(){i.focusOutline(t.get("focusOutline"),document)})}return t.prototype.isOpen=function(){return l.hasFocusedTextInput()},t.prototype.onClose=function(t,e){void 0===e&&(e=p);var n=this,i=0,o=null;return t||(o=new Promise(function(e){t=e})),n._zone.runOutsideAngular(function(){function o(){!n.isOpen()||i>100?l.rafFrames(30,function(){n._zone.run(function(){t()})}):setTimeout(o,e),i++}setTimeout(o,e)}),o},t.prototype.close=function(){var t=this;l.raf(function(){l.hasFocusedTextInput()&&t._form.focusOut()})},t.prototype.focusOutline=function(t,e){function n(){l.raf(function(){e.body.classList[a?"add":"remove"]("focus-outline")})}function i(t){a||9!=t.keyCode||(a=!0,r())}function o(){a=!1,r()}function r(){n(),s._zone.runOutsideAngular(function(){e.removeEventListener("mousedown",o),e.removeEventListener("touchstart",o),a&&(e.addEventListener("mousedown",o),e.addEventListener("touchstart",o))})}var s=this,a=!1;return t===!0?(a=!0,n()):void(t!==!1&&e.addEventListener("keydown",i))},t=i([r.Injectable(),o("design:paramtypes",["function"==typeof(e="undefined"!=typeof s.Config&&s.Config)&&e||Object,"function"==typeof(n="undefined"!=typeof a.Form&&a.Form)&&n||Object,"function"==typeof(c="undefined"!=typeof r.NgZone&&r.NgZone)&&c||Object])],t);var e,n,c}();e.Keyboard=c;var p=150},function(t,e,n){function i(t){return--t*t*t+1}var o=n(11),r=function(){function t(t){"string"==typeof t&&(t=document.querySelector(t)),t&&(t.nativeElement&&(t=t.nativeElement),1===t.nodeType&&(this._el=t))}return t.prototype.start=function(t,e,n,r){var s=this;if(!s._el)return Promise.resolve();t=t||0,e=e||0,r=r||0;var a=s._el.scrollTop,l=s._el.scrollLeft,c=Math.abs(t-l),p=Math.abs(e-a);return r>=p&&r>=c?(s._el=null,Promise.resolve()):new Promise(function(r,c){function p(){if(!s._el)return r();var d=Math.min(1,(Date.now()-u)/n),f=i(d);a!=e&&(s._el.scrollTop=Math.round(f*(e-a)+a)),l!=t&&(s._el.scrollLeft=Math.round(f*(t-l)+l)),1>d&&s.isPlaying?o.raf(p):s.isPlaying?(s._el=null,r()):(s._el=null,c())}var u;s.isPlaying=!0,o.raf(function(){u=Date.now(),o.raf(p)})})},t.prototype.stop=function(){this.isPlaying=!1},t.prototype.dispose=function(){this.stop(),this._el=null},t}();e.ScrollTo=r},function(t,e){var n=function(){function t(){this._channels=[]}return t.prototype.subscribe=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this._channels[t]||(this._channels[t]=[]),n.forEach(function(n){e._channels[t].push(n)})},t.prototype.unsubscribe=function(t,e){var n=this._channels[t];if(!n)return!1;if(!e)return delete this._channels[t],!0;var i=n.indexOf(e);return 0>i?!1:(n.splice(i,1),n.length||delete this._channels[t],!0)},t.prototype.publish=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=this._channels[t];if(!i)return null;var o=[];return i.forEach(function(t){o.push(t(e))}),o},t}();e.Events=n},function(t,e){var n=function(){function t(t){void 0===t&&(t=[]);var e=t.map(function(t){return[t.name,t]});this._pages=new Map;for(var n=0;n<e.length;n++){var i=e[n];this._pages.set(i[0],i[1])}}return t.prototype.get=function(t){return this._pages.get(t)},t.prototype.set=function(t){this._pages.set(t.name,t)},t}();e.NavRegistry=n},function(t,e){var n=function(){function t(){this._transMap={},this._language={}}return t.prototype.translations=function(t,e){this._transMap[t]=e},t.prototype.setLanguage=function(t){this._language=t},t.prototype.getTranslations=function(t){return this._transMap[t]},t.prototype.translate=function(t,e){if(!e&&!this._language)return t;var n=e||this._language,i=this.getTranslations(n);return i?this._getTranslation(i,t):""},t.prototype._getTranslation=function(t,e){return t&&t[e]||""},t}();e.Translate=n},function(t,e){var n=function(){function t(){this._results={}}return t.prototype.run=function(t,e){for(var n in i)this._results[n]=i[n](t,e,e.body)},t.prototype.has=function(t){return!!this._results[t]},t.add=function(t,e){i[t]=e},t}();e.FeatureDetect=n;var i={};n.add("hairlines",function(t,e,n){var i=!1;if(t.devicePixelRatio>=2){var o=e.createElement("div");o.style.border=".5px solid transparent",n.appendChild(o),1===o.offsetHeight&&(n.classList.add("hairlines"),i=!0),n.removeChild(o)}return i})},function(t,e,n){function i(t){for(var e=t,n=0;4>n&&e;n++){if(o(e))return e;e=e.parentElement}return null}function o(t){if(v.test(t.tagName))return!0;for(var e=t.attributes,n=0,i=e.length;i>n;n++)if(g.test(e[n].name))return!0;return!1}function r(t,e,n){document.addEventListener(t,e,n)}function s(t,e){document.removeEventListener(t,e)}var a=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},c=n(3),p=n(6),u=n(8),d=n(11),f=n(21),h=n(22),m=function(){function t(t,e,n){this.app=e,this.zone=n,this.lastTouch=0,this.disableClick=0,this.lastActivated=0;var i=this;"ripple"==t.get("activator")?i.activator=new h.RippleActivator(e,t,n):"highlight"==t.get("activator")&&(i.activator=new f.Activator(e,t,n)),i.usePolyfill=t.get("tapPolyfill")===!0,n.runOutsideAngular(function(){r("click",i.click.bind(i),!0),r("touchstart",i.touchStart.bind(i)),r("touchend",i.touchEnd.bind(i)),r("touchcancel",i.pointerCancel.bind(i)),r("mousedown",i.mouseDown.bind(i),!0),r("mouseup",i.mouseUp.bind(i),!0)}),i.pointerMove=function(t){d.hasPointerMoved(b,i.startCoord,d.pointerCoord(t))&&i.pointerCancel(t)}}return t.prototype.touchStart=function(t){this.lastTouch=Date.now(),this.pointerStart(t)},t.prototype.touchEnd=function(t){if(this.lastTouch=Date.now(),this.usePolyfill&&this.startCoord&&this.app.isEnabled()){var e=d.pointerCoord(t);if(!d.hasPointerMoved(y,this.startCoord,e))if(this.disableClick=this.lastTouch+_,this.app.isScrolling());else{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,1,0,0,e.x,e.y,!1,!1,!1,!1,0,null),n.isIonicTap=!0,t.target.dispatchEvent(n)}}this.pointerEnd(t)},t.prototype.mouseDown=function(t){this.isDisabledNativeClick()?t.stopPropagation():this.lastTouch+_<Date.now()&&this.pointerStart(t)},t.prototype.mouseUp=function(t){this.isDisabledNativeClick()&&(t.preventDefault(),t.stopPropagation()),this.lastTouch+_<Date.now()&&this.pointerEnd(t)},t.prototype.pointerStart=function(t){var e=i(t.target);if(e){this.startCoord=d.pointerCoord(t);var n=Date.now();this.lastActivated+150<n&&(this.activator&&this.activator.downAction(t,e,this.startCoord.x,this.startCoord.y),this.lastActivated=n),this.moveListeners(!0)}else this.startCoord=null},t.prototype.pointerEnd=function(t){this.moveListeners(!1),this.activator&&this.activator.upAction()},t.prototype.pointerCancel=function(t){this.activator&&this.activator.clearState(),this.moveListeners(!1)},t.prototype.moveListeners=function(t){s(this.usePolyfill?"touchmove":"mousemove",this.pointerMove),t&&r(this.usePolyfill?"touchmove":"mousemove",this.pointerMove)},t.prototype.click=function(t){var e=null;this.app.isEnabled()?!t.isIonicTap&&this.isDisabledNativeClick()&&(e="nativeClick"):e="appDisabled",null!==e&&(t.preventDefault(),t.stopPropagation())},t.prototype.isDisabledNativeClick=function(){return this.disableClick>Date.now()},t=a([c.Injectable(),l("design:paramtypes",["function"==typeof(e="undefined"!=typeof u.Config&&u.Config)&&e||Object,"function"==typeof(n="undefined"!=typeof p.IonicApp&&p.IonicApp)&&n||Object,"function"==typeof(o="undefined"!=typeof c.NgZone&&c.NgZone)&&o||Object])],t);var e,n,o}();e.TapClick=m,e.isActivatable=o;var v=/^(A|BUTTON)$/,g=/tappable|button/i,y=4,b=10,_=2500},function(t,e,n){var i=n(11),o=function(){function t(t,e,n){this.app=t,this.zone=n,this.queue=[],this.active=[],this.x=0,this.y=0,this.activatedClass=e.get("activatedClass")||"activated"}return t.prototype.downAction=function(t,e,n,o){function r(){for(var t,e=0;e<s.queue.length;e++)t=s.queue[e],t&&t.parentNode&&(s.active.push(t),t.classList.add(s.activatedClass));s.queue=[]}var s=this;return s.disableActivated(t)?!1:(s.x=n,s.y=o,s.queue.push(e),this.zone.runOutsideAngular(function(){i.rafFrames(2,r)}),!0)},t.prototype.upAction=function(){function t(){e.clearState()}var e=this;this.zone.runOutsideAngular(function(){i.rafFrames(r,t)})},t.prototype.clearState=function(){var t=this;this.app.isEnabled()?this.deactivate():setTimeout(function(){t.clearState()},600)},t.prototype.deactivate=function(){function t(){for(var t=0;t<e.active.length;t++)e.active[t].classList.remove(e.activatedClass);e.active=[]}var e=this;e.queue=[],i.rafFrames(2,t)},t.prototype.disableActivated=function(t){if(t.defaultPrevented)return!0;for(var e=t.target,n=0;4>n&&e;n++){if(e.hasAttribute("disable-activated"))return!0;e=e.parentElement}return!1},t}();e.Activator=o;var r=5},function(t,e,n){var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(21),r=n(23),s=n(11),a=function(t){function e(e,n,i){t.call(this,e,n,i),this.expands={},this.fades={}}return i(e,t),e.prototype.downAction=function(e,n,i,o){var r=this;return t.prototype.downAction.call(this,e,n,i,o)&&(this.expandSpeed=c,this.zone.runOutsideAngular(function(){s.raf(function(){var t=n.getBoundingClientRect();s.raf(function(){r.createRipple(n,i,o,t)})})})),!0},e.prototype.createRipple=function(t,e,n,i){var o=this,a=e-i.left,c=n-i.top,p=2*Math.max(Math.abs(i.width-a),a),d=2*Math.max(Math.abs(i.height-c),c),f=Math.max(Math.sqrt(Math.pow(p,2)+Math.pow(d,2)),64),h=Math.sqrt(i.width+i.height),m=1e3*Math.sqrt(h/l)+.5,v=document.createElement("md-ripple"),g=Date.now(),y=v.style;y.width=y.height=f+"px",y.marginTop=y.marginLeft=-(f/2)+"px",y.left=a+"px",y.top=c+"px",t.appendChild(v),this.fades[g]=new r.Animation(v,{renderDelay:0}),this.fades[g].fadeOut().duration(u).playbackRate(1).onFinish(function(){s.raf(function(){o.fades[g].dispose(!0),delete o.fades[g]})}),this.expands[g]=new r.Animation(v,{renderDelay:0}),this.expands[g].fromTo("scale","0.001","1").duration(m).playbackRate(this.expandSpeed).onFinish(function(){o.expands[g].dispose(),delete o.expands[g],o.next()}).play()},e.prototype.upAction=function(){var t=this;this.deactivate(),this.expandSpeed=1,this.zone.runOutsideAngular(function(){s.rafFrames(4,function(){t.next()})})},e.prototype.next=function(){var t,e=Date.now();for(t in this.expands)parseInt(t,10)+4e3<e?(this.expands[t].dispose(!0),delete this.expands[t]):this.expands[t].playbackRate()===c&&this.expands[t].playbackRate(p);for(t in this.fades)parseInt(t,10)+4e3<e?(this.fades[t].dispose(!0),delete this.fades[t]):this.fades[t].isPlaying||(this.fades[t].isPlaying=!0,this.fades[t].play())},e.prototype.clearState=function(){this.deactivate(),this.next()},e}(o.Activator);e.RippleActivator=a;var l=512,c=.35,p=3,u=700},function(t,e,n){function i(t,e,n,i){i.opts=i.opts||{};var o,s,l,c,p,u,d,f=i.opts.increment||.04,h=g[i.name];for(o=f;1-f>=o;o+=f){s={},l=!1;for(c in n)p=n[c],p.tween&&(u=e[c].num,d=p.num-u,s[c]={value:a(h(o,i.opts)*d+u)+p.unit
},l=!0);l&&t.push(r(s))}}function o(t){var e,n,i,o,r={};for(o in t)e=t[o],n=e.toString().match(/(^-?\d*\.?\d*)(.*)/),i=parseFloat(n[1]),r[o]={value:e,num:i,unit:n[0]!=n[2]?n[2]:"",tween:!isNaN(i)&&m.indexOf(o)>-1};return r}function r(t){var e,n,i={},o=[];for(n in t)e=t[n].value,h.indexOf(n)>-1?o.push(n+"("+e+")"):i[n]=e;return o.length&&(o.push("translateZ(0px)"),i.transform=o.join(" ")),i}function s(t,e){if(t&&e){var n,i,o=[];for(i in e)n=e[i].value,h.indexOf(i)>-1?o.push(i+"("+n+")"):t.style[i]=n;o.length&&(o.push("translateZ(0px)"),t.style[c.CSS.transform]=o.join(" "))}}function a(t){return Math.round(1e4*t)/1e4}function l(t,e){function n(){o++,o===i&&e&&e()}var i=t.length;if(!i)return void(e&&e());for(var o=0,r=0;i>r;r++)t[r](n)}var c=n(11),p=n(10),u=document,d=function(){function t(t,e){void 0===e&&(e={}),this.reset(),this._opts=p.assign({renderDelay:16},e),this.elements(t),!u.documentElement.animate}return t.prototype.reset=function(){this._el=[],this._chld=[],this._ani=[],this._bfSty={},this._bfAdd=[],this._bfRmv=[],this._afAdd=[],this._afRmv=[],this._readys=[],this._plays=[],this._finishes=[]},t.prototype.elements=function(t){if(t)if("string"==typeof t&&(t=u.querySelectorAll(t)),t.length)for(var e=0;e<t.length;e++)this.addElement(t[e]);else this.addElement(t);return this},t.prototype.addElement=function(t){t&&(t.nativeElement&&(t=t.nativeElement),1===t.nodeType&&this._el.push(t))},t.prototype.parent=function(t){return this._parent=t,this},t.prototype.add=function(t){for(var e=Array.isArray(t)?t:arguments,n=0;n<e.length;n++)e[n].parent(this),this._chld.push(e[n]);return this},t.prototype.duration=function(t){return arguments.length?(this._duration=t,this):this._duration||this._parent&&this._parent.duration()||0},t.prototype.clearDuration=function(){this._duration=null;for(var t=0,e=this._chld.length;e>t;t++)this._chld[t].clearDuration()},t.prototype.easing=function(t,e){return arguments.length?(this._easing={name:t,opts:e},this):this._easing||this._parent&&this._parent.easing()},t.prototype.playbackRate=function(t){if(arguments.length){this._rate=t;var e;for(e=0;e<this._chld.length;e++)this._chld[e].playbackRate(t);for(e=0;e<this._ani.length;e++)this._ani[e].playbackRate(t);return this}return"undefined"!=typeof this._rate?this._rate:this._parent&&this._parent.playbackRate()},t.prototype.reverse=function(){return this.playbackRate(-1)},t.prototype.forward=function(){return this.playbackRate(1)},t.prototype.from=function(t,e){return this._from||(this._from={}),this._from[t]=e,this},t.prototype.to=function(t,e){return this._to||(this._to={}),this._to[t]=e,this},t.prototype.fromTo=function(t,e,n){return this.from(t,e).to(t,n)},t.prototype.fadeIn=function(){return this.fromTo("opacity",.001,1)},t.prototype.fadeOut=function(){return this.fromTo("opacity",.999,0)},Object.defineProperty(t.prototype,"before",{get:function(){var t=this;return{addClass:function(e){return t._bfAdd.push(e),t},removeClass:function(e){return t._bfRmv.push(e),t},setStyles:function(e){return t._bfSty=e,t}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){var t=this;return{addClass:function(e){return t._afAdd.push(e),t},removeClass:function(e){return t._afRmv.push(e),t}}},enumerable:!0,configurable:!0}),t.prototype.play=function(t){function e(t){var e=[];i._chld.forEach(function(t){e.push(function(e){t.play(e)})}),i._ani.forEach(function(t){e.push(function(e){t.play(e)})}),l(e,t)}function n(){i._onPlay(),e(function(){i._onFinish(),t()})}var i=this;if(!i._parent){i.stage();var o;return t||(o=new Promise(function(e){t=e})),i._duration>16&&i._opts.renderDelay>0?c.rafFrames(i._opts.renderDelay/16,n):n(),o}e(t)},t.prototype.stage=function(){if(!this._isStaged){this._isStaged=!0;var t,e,n,i,o,r;for(t=0,n=this._chld.length;n>t;t++)this._chld[t].stage();for(t=0;t<this._el.length;t++){for(o=this._el[t],i=0;i<this._bfAdd.length;i++)o.classList.add(this._bfAdd[i]);for(e in this._bfSty)o.style[e]=this._bfSty[e];for(i=0;i<this._bfRmv.length;i++)o.classList.remove(this._bfRmv[i])}if(this._to)for(t=0;t<this._el.length;t++)r=new f(this._el[t],this._from,this._to,this.duration(),this.easing(),this.playbackRate()),r.shouldAnimate&&this._ani.push(r);for(t=0;t<this._readys.length;t++)this._readys[t](this)}},t.prototype._onPlay=function(){var t;for(this._isFinished=!1,t=0;t<this._chld.length;t++)this._chld[t]._onPlay();for(t=0;t<this._plays.length;t++)this._plays[t](this)},t.prototype._onFinish=function(){if(!this._isFinished&&!this.isProgress){this._isFinished=!0;var t,e,n;for(t=0;t<this._chld.length;t++)this._chld[t]._onFinish();if(this.playbackRate()<0)for(t=0;t<this._el.length;t++){for(n=this._el[t],e=0;e<this._bfAdd.length;e++)n.classList.remove(this._bfAdd[e]);for(e=0;e<this._bfRmv.length;e++)n.classList.add(this._bfRmv[e])}else for(t=0;t<this._el.length;t++){for(n=this._el[t],e=0;e<this._afAdd.length;e++)n.classList.add(this._afAdd[e]);for(e=0;e<this._afRmv.length;e++)n.classList.remove(this._afRmv[e])}for(t=0;t<this._finishes.length;t++)this._finishes[t](this)}},t.prototype.pause=function(){var t;for(t=0;t<this._chld.length;t++)this._chld[t].pause();for(t=0;t<this._ani.length;t++)this._ani[t].pause()},t.prototype.progressStart=function(){this.isProgress=!0;for(var t=0;t<this._chld.length;t++)this._chld[t].progressStart();this.duration(1e3),this.play(),this.pause()},t.prototype.progress=function(t){t=Math.min(1,Math.max(0,t)),this.isProgress=!0;var e;for(e=0;e<this._chld.length;e++)this._chld[e].progress(t);for(e=0;e<this._ani.length;e++)this._ani[e].progress(t)},t.prototype.getCurrentTime=function(){return this._chld.length>0?this._chld[0].getCurrentTime():this._ani.length>0?this._ani[0].getCurrentTime():0},t.prototype.progressEnd=function(t,e){void 0===e&&(e=3);var n=[];this.isProgress=!1;for(var i=0;i<this._chld.length;i++)n.push(this._chld[i].progressEnd(t));return this._ani.forEach(function(i){t?i.playbackRate(e):i.playbackRate(-1*e),n.push(new Promise(function(t){i.play(t)}))}),Promise.all(n)},t.prototype.onReady=function(t,e){return e&&(this._readys=[]),this._readys.push(t),this},t.prototype.onPlay=function(t,e){return e&&(this._plays=[]),this._plays.push(t),this},t.prototype.onFinish=function(t,e){return e&&(this._finishes=[]),this._finishes.push(t),this},t.prototype.clone=function(){function e(n,i){p.assign(n,i),n._isFinished=n._isStaged=n.isProgress=!1,n._chld=[],n._ani=[];for(var o=0;o<i._chld.length;o++)n.add(e(new t,i._chld[o]));return n}return e(new t,this)},t.prototype.dispose=function(t){var e;for(e=0;e<this._chld.length;e++)this._chld[e].dispose(t);for(e=0;e<this._ani.length;e++)this._ani[e].dispose();if(t)for(e=0;e<this._el.length;e++)this._el[e].parentNode&&this._el[e].parentNode.removeChild(this._el[e]);this.reset()},t.create=function(e){var n=y[e];return n||(n=t),new n},t.createTransition=function(t,e,n){void 0===n&&(n={});var i=y[n.animation];return i||(i=y["ios-transition"]),new i(t,e,n)},t.register=function(t,e){y[t]=e},t}();e.Animation=d;var f=function(){function t(t,e,n,a,l,c){if(e){if(this.toEffect=o(n),this.shouldAnimate=a>32,!this.shouldAnimate)return void s(t,this.toEffect);this.ele=t,this.fromEffect=o(e),s(t,this.fromEffect),this.duration=a,this.rate="undefined"!=typeof c?c:1,this.easing=l&&l.name||"linear",this.effects=[r(this.fromEffect)],this.easing in g?i(this.effects,this.fromEffect,this.toEffect,l):this.easing in v&&(this.easing="cubic-bezier("+v[this.easing]+")"),this.effects.push(r(this.toEffect))}}return t.prototype.play=function(t){var e=this;e.ani?e.ani.play():(e.ani=e.ele.animate(e.effects,{duration:e.duration||0,easing:e.easing,playbackRate:e.rate}),e.ani.playbackRate=e.rate),e.ani.onfinish=function(){e.ani&&(s(e.ele,e.rate<0?e.fromEffect:e.toEffect),e.ani=e.ani.onfinish=null,t&&t())}},t.prototype.pause=function(){this.ani&&this.ani.pause()},t.prototype.progress=function(t){this.ani&&("paused"!==this.ani.playState&&this.ani.pause(),t=Math.min(.999,Math.max(.001,t)),this.ani.currentTime=this.duration*t)},t.prototype.getCurrentTime=function(){return this.ani&&this.ani.currentTime||0},t.prototype.playbackRate=function(t){this.rate=t,this.ani&&(this.ani.playbackRate=t)},t.prototype.dispose=function(){this.ele=this.ani=this.effects=this.toEffect=null},t}(),h=["translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","perspective"],m=h.concat("opacity"),v={"ease-in-cubic":"0.55,0.055,0.675,0.19","ease-out-cubic":"0.215,0.61,0.355,1","ease-in-Out-cubic":"0.645,0.045,0.355,1","ease-in-circ":"0.6,0.04,0.98,0.335","ease-out-circ":"0.075,0.82,0.165,1","ease-in-out-circ":"0.785,0.135,0.15,0.86","ease-in-expo":"0.95,0.05,0.795,0.035","ease-out-expo":"0.19,1,0.22,1","ease-in-out-expo":"1,0,0,1","ease-in-quad":"0.55,0.085,0.68,0.53","ease-out-quad":"0.25,0.46,0.45,0.94","ease-in-out-quad":"0.455,0.03,0.515,0.955","ease-in-quart":"0.895,0.03,0.685,0.22","ease-out-quart":"0.165,0.84,0.44,1","ease-in-out-quart":"0.77,0,0.175,1","ease-in-quint":"0.755,0.05,0.855,0.06","ease-out-quint":"0.23,1,0.32,1","ease-in-out-quint":"0.86,0,0.07,1","ease-in-sine":"0.47,0,0.745,0.715","ease-out-sine":"0.39,0.575,0.565,1","ease-in-out-sine":"0.445,0.05,0.55,0.95","ease-in-back":"0.6,-0.28,0.735,0.045","ease-out-back":"0.175,0.885,0.32,1.275","ease-in-out-back":"0.68,-0.55,0.265,1.55"},g={elastic:function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},"swing-from-to":function(t,e){var n=e.s||1.70158;return(t/=.5)<1?.5*(t*t*(((n*=1.525)+1)*t-n)):.5*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)},"swing-from":function(t,e){var n=e.s||1.70158;return t*t*((n+1)*t-n)},"swing-to":function(t,e){var n=e.s||1.70158;return(t-=1)*t*((n+1)*t+n)+1},bounce:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},"bounce-past":function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?2-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},"ease-out-bounce":function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},"ease-from-to":function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},"ease-from":function(t,e){return Math.pow(t,e.s||4)},"ease-to":function(t,e){return Math.pow(t,e.s||.25)},spring:function(t,e){var n=e.damping||4.5,i=e.elasticity||6;return 1-Math.cos(t*n*Math.PI)*Math.exp(-t*i)},sinusoidal:function(t){return-Math.cos(t*Math.PI)/2+.5}},y={}},function(t,e,n){var i=n(25),o=n(26),r=n(27),s=n(36),a=n(46),l=n(47),c=n(42),p=n(48),u=n(49),d=n(50),f=n(51),h=n(52),m=n(54),v=n(56),g=n(58),y=n(61),b=n(64),_=n(65),w=n(41),E=n(40),T=n(66),O=n(67),C=n(69),R=n(70),S=n(63),I=n(62),x=n(71),P=n(72),k=n(73),j=n(74),A=n(75),D=n(76),L=n(39),M=n(77),N=n(78);e.IONIC_DIRECTIVES=[i.CORE_DIRECTIVES,i.FORM_DIRECTIVES,o.OverlayNav,r.Menu,s.MenuToggle,a.MenuClose,l.Badge,c.Button,p.Blur,u.Content,d.Scroll,f.Refresher,g.List,g.ListHeader,b.Item,_.ItemSliding,h.Slides,h.Slide,h.SlideLazy,m.Tabs,v.Tab,w.Toolbar,w.ToolbarTitle,w.ToolbarItem,E.Icon,k.Searchbar,k.SearchbarInput,x.Segment,x.SegmentButton,T.Checkbox,P.RadioGroup,P.RadioButton,O.Select,C.Option,R.Toggle,y.ItemInput,S.TextInput,I.Label,j.Nav,L.NavbarTemplate,L.Navbar,A.NavPush,A.NavPop,D.NavRouter,M.IdRef,N.ShowWhen,N.HideWhen]},function(t,e){t.exports=require("angular2").common},function(t,e,n){var i=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},r=n(3),s=function(){function t(){}return t=i([r.Directive({selector:"ion-overlay"}),o("design:paramtypes",[])],t)}();e.OverlayNav=s},function(t,e,n){var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=this&&this.__decorate||function(t,e,n,i){var o,r=arguments.length,s=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>r?o(s):r>3?o(e,n,s):o(e,n))||s);return r>3&&s&&Object.defineProperty(e,n,s),s},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},s=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}},a=n(3),l=n(28),c=n(6),p=n(8),u=n(9),d=n(14),f=n(29),h=function(t){function e(e,n,i,o,r,s,l){t.call(this,e),this._elementRef=e,this._config=n,this._app=i,this._platform=o,this._renderer=r,this._keyboard=s,this._zone=l,this._preventTime=0,this.isOpen=!1,this.isEnabled=!0,this.isSwipeEnabled=!0,this.opening=new a.EventEmitter}return i(e,t),e.prototype.ngOnInit=function(){var t=this,e=t.content;t._cntEle=e instanceof Node?e:e&&e.getNativeElement&&e.getNativeElement(),t._cntEle&&("left"!==t.side&&"right"!==t.side&&(t.side="left"),t._renderer.setElementAttribute(t._elementRef.nativeElement,"side",t.side),"false"===t.swipeEnabled&&(t.isSwipeEnabled=!1),t.id||(t.id=t.side+"Menu",t._app.getComponent(t.id)&&(t.id+=++v),t._app.register(t.id,t)),t._initGesture(),t._initType(t.type),t._cntEle.classList.add("menu-content"),t._cntEle.classList.add("menu-content-"+t.type),t.onContentClick=function(e){t.isEnabled&&(e.preventDefault(),e.stopPropagation(),t.close())})},e.prototype._initGesture=function(){var t=this;this._zone.runOutsideAngular(function(){switch(t.side){case"right":t._gesture=new f.RightMenuGesture(t);break;case"left":t._gesture=new f.LeftMenuGesture(t)}t._targetGesture=new f.TargetGesture(t)})},e.prototype._initType=function(t){t=t&&t.trim().toLowerCase(),t||(t=this._config.get("menuType")),this.type=t,this._renderer.setElementAttribute(this._elementRef.nativeElement,"menuType",t)},e.prototype._getType=function(){return this._type||(this._type=new m[this.type](this),this._config.get("animate")===!1&&(this._type.open.duration(33),this._type.close.duration(33))),this._type},e.prototype.setOpen=function(t){var e=this;return t===this.isOpen||this._isPrevented()?Promise.resolve():(this._before(),this._getType().setOpen(t).then(function(){e._after(t)}))},e.prototype.setProgressStart=function(){!this._isPrevented()&&this.isEnabled&&this.isSwipeEnabled&&(this._before(),this._getType().setProgressStart(this.isOpen))},e.prototype.setProgess=function(t){this.isEnabled&&this.isSwipeEnabled&&(this._prevent(),this._getType().setProgess(t),this.opening.next(t))},e.prototype.setProgressEnd=function(t){var e=this;this.isEnabled&&this.isSwipeEnabled&&(this._prevent(),this._getType().setProgressEnd(t).then(function(t){e._after(t)}))},e.prototype._before=function(){this.isEnabled&&(this.getNativeElement().classList.add("show-menu"),this.getBackdropElement().classList.add("show-backdrop"),this._prevent(),this._keyboard.close())},e.prototype._after=function(t){(this.isEnabled&&t||!t)&&(this._prevent(),this.isOpen=t,this._cntEle.classList[t?"add":"remove"]("menu-content-open"),this._cntEle.removeEventListener("click",this.onContentClick),t?this._cntEle.addEventListener("click",this.onContentClick):(this.getNativeElement().classList.remove("show-menu"),this.getBackdropElement().classList.remove("show-backdrop")))},e.prototype._prevent=function(){this._preventTime=Date.now()+20},e.prototype._isPrevented=function(){return this._preventTime>Date.now()},e.prototype.open=function(){return this.setOpen(!0)},e.prototype.close=function(){return this.setOpen(!1)},e.prototype.toggle=function(){return this.setOpen(!this.isOpen)},e.prototype.enable=function(t){return this.isEnabled=t,t||this.close(),this},e.prototype.swipeEnable=function(t){return this.isSwipeEnabled=t,this},e.prototype.getMenuElement=function(){return this.getNativeElement()},e.prototype.getContentElement=function(){return this._cntEle},e.prototype.getBackdropElement=function(){return this.backdrop.elementRef.nativeElement},e.register=function(t,e){m[t]=e},e.prototype.ngOnDestroy=function(){this._app.unregister(this.id),this._gesture&&this._gesture.destroy(),this._targetGesture&&this._targetGesture.destroy(),this._type&&this._type.ngOnDestroy(),this._cntEle=null},e.getById=function(t,e){var n=null;if(e){if(n=t.getComponent(e),!n)return}else if(n=t.getComponent("leftMenu"),n||(n=t.getComponent("rightMenu")),!n)return;return n},o([a.Input(),r("design:type",Object)],e.prototype,"content",void 0),o([a.Input(),r("design:type",String)],e.prototype,"id",void 0),o([a.Input(),r("design:type",String)],e.prototype,"side",void 0),o([a.Input(),r("design:type",String)],e.prototype,"type",void 0),o([a.Input(),r("design:type",String)],e.prototype,"swipeEnabled",void 0),o([a.Input(),r("design:type",Object)],e.prototype,"maxEdgeStart",void 0),o([a.Output(),r("design:type","function"==typeof(n="undefined"!=typeof a.EventEmitter&&a.EventEmitter)&&n||Object)],e.prototype,"opening",void 0),e=o([a.Component({selector:"ion-menu",host:{role:"navigation","[attr.side]":"side","[attr.type]":"type","[attr.swipeEnabled]":"swipeEnabled"},template:'<ng-content></ng-content><div tappable disable-activated class="backdrop"></div>',directives:[a.forwardRef(function(){return g})]}),r("design:paramtypes",["function"==typeof(s="undefined"!=typeof a.ElementRef&&a.ElementRef)&&s||Object,"function"==typeof(l="undefined"!=typeof p.Config&&p.Config)&&l||Object,"function"==typeof(h="undefined"!=typeof c.IonicApp&&c.IonicApp)&&h||Object,"function"==typeof(y="undefined"!=typeof u.Platform&&u.Platform)&&y||Object,"function"==typeof(b="undefined"!=ty