const t=t=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t),e=t=>!!t.shadowRoot&&!!t.attachShadow,n=t=>{const e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},i=(t,n,i,r,o)=>{if(t||e(n)){let t=n.querySelector("input.aux-input");t||((t=n.ownerDocument.createElement("input")).type="hidden",t.classList.add("aux-input"),n.appendChild(t)),t.disabled=o,t.name=i,t.value=r||""}},r=(t,e,n)=>Math.max(t,Math.min(e,n)),o=(t,e)=>{if(!t){const t="ASSERT: "+e;throw console.error(t),new Error(t)}},s=(t,e=t)=>t.shadowRoot||e,a=t=>t.timeStamp||Date.now(),u=t=>{if(t){const e=t.changedTouches;if(e&&e.length>0){const t=e[0];return{x:t.clientX,y:t.clientY}}if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}},m=t=>{const e="rtl"===document.dir;switch(t){case"start":return e;case"end":return!e;default:throw new Error(`"${t}" is not a valid value for [side]. Use "start" or "end" instead.`)}},c=(t,e)=>{const n=t._original||t;return{_original:t,emit:d(n.emit.bind(n),e)}},d=(t,e=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(t,e,...i)}},l=(t,e=0)=>new Promise(n=>{f(t,e,n)}),f=(t,e=0,n)=>{let i,r;const o={passive:!0},s=()=>{i&&i()},a=e=>{void 0!==e&&t!==e.target||(s(),n(e))};return t&&(t.addEventListener("webkitTransitionEnd",a,o),t.addEventListener("transitionend",a,o),r=setTimeout(a,e+500),i=()=>{r&&(clearTimeout(r),r=void 0),t.removeEventListener("webkitTransitionEnd",a,o),t.removeEventListener("transitionend",a,o)}),s};export{i as a,o as b,r as c,c as d,d as e,n as f,s as g,e as h,m as i,a as n,u as p,t as r,l as t};