function n(n,t){return null!==t.closest(n)}function t(n){return"string"==typeof n&&n.length>0?{"ion-color":!0,[`ion-color-${n}`]:!0}:void 0}function r(n,t){return{[t]:!0,[`${t}-${n}`]:void 0!==n}}function o(n){const t={};return function(n){return void 0!==n?(Array.isArray(n)?n:n.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[]}(n).forEach(n=>t[n]=!0),t}window;const e=/^[a-z][a-z0-9+\-.]*:/;async function i(n,t,r,o){if(null!=t&&"#"!==t[0]&&!e.test(t)){const e=n.document.querySelector("ion-router");if(e)return null!=r&&r.preventDefault(),await e.componentOnReady(),e.push(t,o)}return!1}export{t as a,n as b,o as c,r as d,i as e};