1import{q as b,i as a}from"./index-CaUqsW3o.js";const S="iotusecase_consent",T=50;function p(){if(typeof window>"u")return"denied";try{const e=localStorage.getItem(S);if(!e)return"undecided";const t=JSON.parse(e);if(t.status==="accepted")return"granted";if(t.status==="custom"){const n=new Set(t.acceptedCategories??[]);return n.has("analytics")||n.has("statistics")?"granted":"denied"}return t.status==="essential"?"denied":"undecided"}catch{return"denied"}}function u(){return typeof window>"u"?"":window.location.pathname||"/"}const L=function(){typeof window>"u"||(window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments))},s=[];function h(e,t){try{L("event",e,t)}catch{}}function E(e,t){if(typeof window>"u")return;const n=p();if(n!=="denied"){if(n==="undecided"){s.length<T&&s.push({name:e,params:t});return}h(e,t)}}function A(){const e=s.splice(0,s.length);if(p()!=="granted")return 0;for(const t of e)h(t.name,t.params);return e.length}const m=[25,50,75];function g(e){if(e.documentHeight-e.viewport<=0)return 0;const n=(e.scrollTop+e.viewport)/e.documentHeight*100;return Math.min(100,Math.max(0,n))}function w(e,t){return m.filter(n=>e>=n&&!t.has(n))}let l="",r=new Set,d=!1;function f(e){e!==l&&(l=e,r=new Set)}function O(){if(typeof window>"u"||d)return;d=!0;let e=!1;const t=()=>{e=!1;const o=u();if(f(o),r.size===m.length)return;const c=document.documentElement,_=g({scrollTop:window.scrollY||c.scrollTop||0,viewport:window.innerHeight||c.clientHeight||0,documentHeight:Math.max(c.scrollHeight,document.body?.scrollHeight??0)});for(const i of w(_,r))r.add(i),E("scroll_depth",{percent_scrolled:i,page_path:o})},n=()=>{e||(e=!0,window.requestAnimationFrame(t))};window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("popstate",()=>f(u()))}const C=Object.freeze(Object.defineProperty({__proto__:null,dueThresholds:w,installScrollDepthTracking:O,scrolledPercent:g},Symbol.toStringTag,{value:"Module"})),H=`*[_type == $type && !(_id in path("drafts.**"))] | order(lower(coalesce(name[$l], name.de, name)) asc) { 2 "name": coalesce(name[$l], name.de), 3 "slug": select($l == "en" => coalesce(slugEn.current, slug.current), slug.current), 4 "beschreibung": coalesce(beschreibung[$l], beschreibung.de), 5 icon, 6 "count": count(*[_type == "loesungsbeispiel" && references(^._id)]) 7}`,P='count(*[_type == $type && !(_id in path("drafts.**"))])';async function y(e,t){const[n,o]=await Promise.all([a.fetch(H,{type:e,l:t}),a.fetch(P,{type:e})]);return{items:n??[],totalCount:o??0}}const x=(e,t)=>b({queryKey:["taxonomyList",e,t],queryFn:()=>y(e,t),staleTime:300*1e3}),M=Object.freeze(Object.defineProperty({__proto__:null,fetchTaxonomyList:y,taxonomyListQueryOptions:x},Symbol.toStringTag,{value:"Module"}));export{x as a,M as b,A as f,u as p,C as s,E as t};
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.