var __awaiter=this&&this.__awaiter||function(n,t,i,r){function e(n){return n instanceof i?n:new i((function(t){t(n)}))}return new(i||(i=Promise))((function(i,u){function o(n){try{a(r.next(n))}catch(n){u(n)}}function f(n){try{a(r["throw"](n))}catch(n){u(n)}}function a(n){n.done?i(n.value):e(n.value).then(o,f)}a((r=r.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,e,u,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(n){return function(t){return a([n,t])}}function a(f){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,f[0]&&(i=0)),i)try{if(r=1,e&&(u=f[0]&2?e["return"]:f[0]?e["throw"]||((u=e["return"])&&u.call(e),0):e.next)&&!(u=u.call(e,f[1])).done)return u;if(e=0,u)f=[f[0]&2,u.value];switch(f[0]){case 0:case 1:u=f;break;case 4:i.label++;return{value:f[1],done:false};case 5:i.label++;e=f[1];f=[0];continue;case 7:f=i.ops.pop();i.trys.pop();continue;default:if(!(u=i.trys,u=u.length>0&&u[u.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!u||f[1]>u[0]&&f[1]<u[3])){i.label=f[1];break}if(f[0]===6&&i.label<u[1]){i.label=u[1];u=f;break}if(u&&i.label<u[2]){i.label=u[2];i.ops.push(f);break}if(u[2])i.ops.pop();i.trys.pop();continue}f=t.call(n,i)}catch(n){f=[6,n];e=0}finally{r=u=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};System.register(["./p-4d03a77e.system.js"],(function(n){"use strict";var t;return{setters:[function(n){t=n.e}],execute:function(){var i=this;var r=n("s",(function(n){if(n){n.preventDefault();n.stopPropagation()}}));var e=n("g",(function(n){return n.target}));var u=n("l",(function(n){var t;return((t=n.nativeInput)===null||t===void 0?void 0:t.value)||""}));var o=n("k",(function(n,t){var i,r;var e=((i=n.nativeInput)===null||i===void 0?void 0:i.value)||"";var u=(r=t.target)===null||r===void 0?void 0:r.selectionStart;return e.slice(0,u)+t.key+e.slice(u+Math.abs(0))}));var f=n("d",(function(n){if(n.nativeInput){n.nativeInput.blur()}}));var a=n("b",(function(n,t){if((n.disabled||n.readonly)&&t.target&&t.target===n.el){r(t)}}));var c=n("c",(function(n){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:r.sent();(i=n===null||n===void 0?void 0:n.nativeInput)===null||i===void 0?void 0:i.focus();return[2]}}))}))}));var v=n("a",(function(n,t){if(n.disabled||n.readonly){r(t)}}));var s=n("h",(function(n,t){if(!n.disabled&&!n.readonly&&n.balClick){n.balClick.emit(t)}}));var l=n("i",(function(n,t){n.focused=true;n.inputValue=n.value;if(!n.disabled&&n.balFocus){n.balFocus.emit(t)}}));var d=n("j",(function(n,t,i){if(t===void 0){t=undefined}n.value=t;n.inputValue=n.value;clearTimeout(i);i=setTimeout((function(){if(n.nativeInput){n.nativeInput.value=n.value}}))}));var h=n("e",(function(n,t){n.focused=false;if(!n.disabled&&n.balBlur){n.balBlur.emit(t)}}));var w=n("f",(function(n){if(n.value!==n.inputValue){n.value=n.inputValue;n.balChange.emit(n.value)}}))}}}));