1import{L as l,a8 as c,f as d}from"./COfh4MUy.js";const a=()=>{l.error(c,d("useBackgroundLayer"),"No layer with ID #bg-layer found in DOM!")},u=()=>{l.error(c,d("useBackgroundLayer"),"No targetElement was set!")},f=e=>{e?.classList.add("opacity-100"),e?.classList.remove("opacity-0","pointer-events-none")},s=e=>{e?.classList.add("opacity-0","pointer-events-none"),e?.classList.remove("opacity-100")},h=()=>{let e=null,n=null,t=null,i=null,r=!1;return{init:()=>{e=document?.querySelector("#bg-layer"),i=e?.parentElement??null},show:()=>{if(!r){if(r=!0,!e){a();return}t&&![...t.children].includes(e)&&t.append(e),e?.addEventListener("click",()=>s(e),{once:!0}),n&&e?.addEventListener("click",n,{once:!0}),f(e)}},hide:()=>{r&&(r=!1,i&&e&&i.append(e),n&&e?.removeEventListener("click",n),s(e))},addTargetElement:o=>{if(!e){a();return}if(!o){u();return}t=o},addActionOnClick:o=>{if(!e){a();return}n=()=>o()}}};export{h as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.