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