text: var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{l(r.next(e))}catch(t){o(t)}}function u(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):a(e.value).then(i,u)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(e){return function(t){return l([e,t])}}function l(i){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(o=i[0]&2?a["return"]:i[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,i[1])).done)return o;if(a=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;a=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(u){i=[6,u];a=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-90f9da43.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.p}],execute:function(){var n=this;var r=new WeakMap;var a=function(e,t,n,a){if(a===void 0){a=0}if(r.has(e)===n){return}if(n){i(e,t,a)}else{u(e,t)}};var o=function(e){return e===e.getRootNode().activeElement};var i=function(e,t,n){var a=t.parentNode;var o=t.cloneNode(false);o.classList.add("cloned-input");o.tabIndex=-1;a.appendChild(o);r.set(e,o);var i=e.ownerDocument;var u=i.dir==="rtl"?9999:-9999;e.style.pointerEvents="none";t.style.transform="translate3d("+u+"px,"+n+"px,0) scale(0)"};var u=function(e,t){var n=r.get(e);if(n){r.delete(e);n.remove()}e.style.pointerEvents="";t.style.transform=""};var l=function(e,t,n){if(!n||!t){return function(){return}}var r=function(n){if(o(t)){a(e,t,n)}};var i=function(){return a(e,t,false)};var u=function(){return r(true)};var l=function(){return r(false)};n.addEventListener("ionScrollStart",u);n.addEventListener("ionScrollEnd",l);t.addEventListener("blur",i);return function(){n.removeEventListener("ionScrollStart",u);n.removeEventListener("ionScrollEnd",l);t.addEventListener("ionBlur",i)}};var s="input, textarea, [no-blur]";var c=function(){var e=true;var t=false;var n=document;var r=function(){t=true};var a=function(){e=true};var o=function(r){if(t){t=false;return}var a=n.activeElement;if(!a){return}if(a.matches(s)){return}var o=r.target;if(o===a){return}if(o.matches(s)||o.closest(s)){return}e=false;setTimeout((function(){if(!e){a.blur()}}),50)};n.addEventListener("ionScrollStart",r);n.addEventListener("focusin",a,true);n.addEventListener("touchend",o,false);return function(){n.removeEventListener("ionScrollStart",r,true);n.removeEventListener("focusin",a,true);n.removeEventListener("touchend",o,false)}};var f=.3;var v=function(e,t,n){var r=e.closest("ion-item,[ion-item]")||e;return d(r.getBoundingClientRect(),t.getBoundingClientRect(),n,e.ownerDocument.defaultView.innerHeight)};var d=function(e,t,n,r){var a=e.top;var o=e.bottom;var i=t.top;var u=Math.min(t.bottom,r-n);var l=i+15;var s=u*.5;var c=s-o;var v=l-a;var d=Math.round(c<0?-c:v>0?-v:0);var m=Math.min(d,a-i);var p=Math.abs(m);var h=p/f;var E=Math.min(400,Math.max(150,h));return{scrollAmount:m,scrollDuration:E,scrollPadding:n,inputSafeY:-(a-l)+4}};var m=function(e,n,r,a,i){var u;var l=function(e){u=t(e)};var s=function(l){if(!u){return}var s=t(l);if(!h(6,u,s)&&!o(n)){l.preventDefault();l.stopPropagation();p(e,n,r,a,i)}};e.addEventListener("touchstart",l,true);e.addEventListener("touchend",s,true);return function(){e.removeEventListener("touchstart",l,true);e.removeEventListener("touchend",s,true)}};var p=function(e,t,r,o,i){return __awaiter(n,void 0,void 0,(function(){var n,u,l,s,c;var f=this;return __generator(this,(function(d){switch(d.label){case 0:if(!r&&!o){return[2]}n=v(e,r||o,i);if(r&&Math.abs(n.scrollAmount)<4){t.focus();return[2]}a(e,t,true,n.inputSafeY);t.focus();if(!(typeof window!=="undefined"))return[3,3];l=function(){return __awaiter(f,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(u!==undefined){clearTimeout(u)}window.removeEventListener("ionKeyboardDidShow",l);if(!r)return[3,2];return[4,r.scrollByPoint(0,n.scrollAmount,n.scrollDuration)];case 1:o.sent();o.label=2;case 2:a(e,t,false,n.inputSafeY);t.focus();return[2]}}))}))};if(!r)return[3,2];return[4,r.getScrollElement()];case 1:s=d.sent();c=s.scrollHeight-s.clientHeight;if(n.scrollAmount>c-s.scrollTop){window.addEventListener("ionKeyboardDidShow",l);u=setTimeout(l,1e3);return[2]}d.label=2;case 2:l();d.label=3;case 3:return[2]}}))}))};var h=function(e,t,n){if(t&&n){var r=t.x-n.x;var a=t.y-n.y;var o=r*r+a*a;return o>e*e}return false};var E="$ionPaddingTimer";var g=function(e){var t=document;var n=function(t){y(t.target,e)};var r=function(e){y(e.target,0)};t.addEventListener("focusin",n);t.addEventListener("focusout",r);return function(){t.removeEventListener("focusin",n);t.removeEventListener("focusout",r)}};var y=function(e,t){if(e.tagName!=="INPUT"){return}if(e.parentElement&&e.parentElement.tagName==="ION-INPUT"){return}if(e.parentElement&&e.parentElement.parentElement&&e.parentElement.parentElement.tagName==="ION-SEARCHBAR"){return}var n=e.closest("ion-content");if(n===null){return}var r=n[E];if(r){clearTimeout(r)}if(t>0){n.style.setProperty("--keyboard-offset",t+"px")}else{n[E]=setTimeout((function(){n.style.setProperty("--keyboard-offset","0px")}),120)}};var b=true;var w=true;var L=e("startInputShims",(function(e){var t=document;var r=e.getNumber("keyboardHeight",290);var a=e.getBoolean("scrollAssist",true);var o=e.getBoolean("hideCaretOnScroll",true);var i=e.getBoolean("inputBlurring",true);var u=e.getBoolean("scrollPadding",true);var s=Array.from(t.querySelectorAll("ion-input, ion-textarea"));var f=new WeakMap;var v=new WeakMap;var d=function(e){return __awaiter(n,void 0,void 0,(function(){var t,n,i,u,s,s;return __generator(this,(function(c){switch(c.label){case 0:if(!e.componentOnReady)return[3,2];return[4,e.componentOnReady()];case 1:c.sent();c.label=2;case 2:t=e.shadowRoot||e;n=t.querySelector("input")||t.querySelector("textarea");i=e.closest("ion-content");u=!i?e.closest("ion-footer"):null;if(!n){return[2]}if(!!i&&o&&!f.has(e)){s=l(e,n,i);f.set(e,s)}if((!!i||!!u)&&a&&!v.has(e)){s=m(e,n,i,u,r);v.set(e,s)}return[2]}}))}))};var p=function(e){if(o){var t=f.get(e);if(t){t()}f.delete(e)}if(a){var t=v.get(e);if(t){t()}v.delete(e)}};if(i&&b){c()}if(u&&w){g(r)}for(var h=0,E=s;h<E.length;h++){var y=E[h];d(y)}t.addEventListener("ionInputDidLoad",(function(e){d(e.detail)}));t.addEventListener("ionInputDidUnload",(function(e){p(e.detail)}))}))}}}));