var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};function n(e=null){let t=e||window.location.search.toString();t.indexOf("?")>-1&&(t=t.slice(t.indexOf("?")+1));let n={};return t.split("&").forEach((e=>{let t=e,r="";e.indexOf("=")>0&&(t=decodeURIComponent(e.slice(0,e.indexOf("="))),r=decodeURIComponent(e.slice(e.indexOf("=")+1))),t.length>0&&("[]"===t.substring(-2)?(void 0===n[t]&&(n[t]=[]),n[t].push(r)):n[t]=r)})),n}function r(e,t=null){let n=[];const o=Array.isArray(e)?e.keys():Object.getOwnPropertyNames(e);for(let c of o){const o=t?t+"["+c+"]":c,i=e[c];"object"==typeof i?n.push(r(i,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(i))}return n.join("&")}function o(){return console.error("utils.isTouchDevice is deprecated and will be removed in V12, use html.is-touch instead"),"ontouchstart"in window||"DocumentTouch"in window}function c(e,t){return e.contains(t)||e===t}function i(e="",t=!1){let n=(Date.now()/1e3).toString(16).split(".").join("");for(;n.length<14;)n+="0";return e+n+(t?`.${Math.round(1e8*Math.random())}`:"")}function a(...e){const t=e=>e&&"object"==typeof e;return e.reduce(((e,n)=>(Object.keys(n).forEach((r=>{const o=e[r],c=n[r];Array.isArray(o)&&Array.isArray(c)?e[r]=o.concat(...c):t(o)&&t(c)?e[r]=a(o,c):e[r]=c})),e)),{})}function s(e){return new Promise((t=>{if(e.ep)return void t();const n=document.createElement("script");n.async=!1,n.textContent=e.textContent,Array.from(e.attributes).forEach((e=>{n.setAttribute(e.name,e.value)})),!n.hasAttribute("async")&&""===n.textContent&&n.src?(n.onload=t,e.replaceWith(n)):(e.replaceWith(n),t())}))}async function l(e){let t;function n(e){let t=[];return e instanceof HTMLScriptElement?t.push(e):Array.from(e.children).forEach((e=>{t=t.concat(n(e))})),t}e instanceof HTMLElement?t=Array.from(e.children):Array.isArray(e)&&(t=e.filter((e=>e instanceof Element)));let r=[];t.forEach((e=>{r=r.concat(n(e))}));for(const e of r)await Promise.resolve(s(e));return!0}function u(e){return Array.isArray(e)?e:e instanceof HTMLElement||e instanceof Document||e instanceof DocumentFragment?[e]:[]}e.d(t,{B4:()=>s,CN:()=>o,D9:()=>a,EV:()=>l,fX:()=>n,lK:()=>r,lL:()=>u,s8:()=>c,x8:()=>i});var f=t.s8,d=t.EV,m=t.lL,p=t.CN,h=t.D9,y=t.B4,A=t.fX,E=t.lK,b=t.x8;export{f as elementContains,d as executeScripts,m as getElementIterator,p as isTouchDevice,h as mergeDeep,y as processScriptNode,A as queryParams,E as serialize,b as uniqid};
//# sourceMappingURL=utils.mjs.map