(()=>{"use strict";var e={d:(o,t)=>{for(var s in t)e.o(t,s)&&!e.o(o,s)&&Object.defineProperty(o,s,{enumerable:!0,get:t[s]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{clamp:()=>t,debug:()=>u,noop:()=>s,omit:()=>n,pick:()=>c});const t=(e,o,t)=>t?Math.min(e,o)===e?o:Math.max(e,t)===e?t:e:Math.max(e,o)===o?e:o,s=(...e)=>{},n=(e,...o)=>{const t={...e};return o.forEach(e=>{delete t[e]}),t},c=(e,...o)=>o.reduce((o,t)=>(o[t]=e[t],o),{}),l=()=>{try{const e=localStorage.getItem("debug")||"";return"pum:*"===e?{component:!0,effects:!0,selectors:!0,actions:!0,resolvers:!0,state:!0,stack:!0}:{component:e.includes("pum:component"),effects:e.includes("pum:effects"),selectors:e.includes("pum:selectors"),actions:e.includes("pum:actions"),resolvers:e.includes("pum:resolvers"),state:e.includes("pum:state"),stack:e.includes("pum:stack")}}catch(e){return{component:!1,effects:!1,selectors:!1,actions:!1,resolvers:!1,state:!1,stack:!1}}};let r=l();window.addEventListener("storage",()=>{r=l()});const a=()=>(new Date).toISOString().split("T")[1],p=()=>{try{const e=(new Error).stack?.split("\n").slice(3).map(e=>e.trim()).filter(e=>!e.includes("debug.ts")).join("\n");return e}catch(e){return""}},u={component:(e,...o)=>{r.component&&(console.groupCollapsed(`🔷 [${a()}][Component:${e}]`,...o),r.stack&&console.log(p()),console.groupEnd())},effect:(e,o,...t)=>{r.effects&&(console.groupCollapsed(`🔶 [${a()}][Effect:${e}:${o}]`,...t),r.stack&&console.log(p()),console.groupEnd())},selector:(e,...o)=>{r.selectors&&(console.groupCollapsed(`💠 [${a()}][Select:${e}]`,...o),r.stack&&console.log(p()),console.groupEnd())},action:(e,...o)=>{r.actions&&(console.groupCollapsed(`⚡ [${a()}][Action:${e}]`,...o),r.stack&&console.log(p()),console.groupEnd())},resolver:(e,...o)=>{r.resolvers&&(console.groupCollapsed(`🔄 [${a()}][Resolver:${e}]`,...o),r.stack&&console.log(p()),console.groupEnd())},state:(e,...o)=>{r.state&&(console.groupCollapsed(`📦 [${a()}][State:${e}]`,...o),r.stack&&console.log(p()),console.groupEnd())}};(window.popupMaker=window.popupMaker||{}).utils=o})();