@app4you/cookie-banner 0.0.0-stage → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1593 @@
1
+ import { m as ee, g as j, h as U, a as ve, r as xt, i as q, b as kt, C as Ct, c as Et, d as se, s as St, e as Lt, f as At, j as Tt, k as ge, l as Pt, p as Mt, n as zt, D as Ht, o as Nt, q as jt, t as It, u as Rt, v as $t, w as k, x as Ot, y as Bt, z as Ft, A as Dt } from "./native-B9FXlXDp.js";
2
+ var fe, C, Ze, R, je, Ye, et, me, te, K, tt, Se, ye, we, rt, ce = {}, le = [], qt = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, he = Array.isArray;
3
+ function I(e, t) {
4
+ for (var r in t) e[r] = t[r];
5
+ return e;
6
+ }
7
+ function Le(e) {
8
+ e && e.parentNode && e.parentNode.removeChild(e);
9
+ }
10
+ function Ut(e, t, r) {
11
+ var i, a, o, c = {};
12
+ for (o in t) o == "key" ? i = t[o] : o == "ref" ? a = t[o] : c[o] = t[o];
13
+ if (arguments.length > 2 && (c.children = arguments.length > 3 ? fe.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) c[o] === void 0 && (c[o] = e.defaultProps[o]);
14
+ return re(e, c, i, a, null);
15
+ }
16
+ function re(e, t, r, i, a) {
17
+ var o = { type: e, props: t, key: r, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: a ?? ++Ze, __i: -1, __u: 0 };
18
+ return a == null && C.vnode != null && C.vnode(o), o;
19
+ }
20
+ function z(e) {
21
+ return e.children;
22
+ }
23
+ function ne(e, t) {
24
+ this.props = e, this.context = t;
25
+ }
26
+ function O(e, t) {
27
+ if (t == null) return e.__ ? O(e.__, e.__i + 1) : null;
28
+ for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
29
+ return typeof e.type == "function" ? O(e) : null;
30
+ }
31
+ function Wt(e) {
32
+ if (e.__P && e.__d) {
33
+ var t = e.__v, r = t.__e, i = [], a = [], o = I({}, t);
34
+ o.__v = t.__v + 1, C.vnode && C.vnode(o), Ae(e.__P, o, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [r] : null, i, r ?? O(t), !!(32 & t.__u), a), o.__v = t.__v, o.__.__k[o.__i] = o, st(i, o, a), t.__e = t.__ = null, o.__e != r && nt(o);
35
+ }
36
+ }
37
+ function nt(e) {
38
+ if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
39
+ if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
40
+ }), nt(e);
41
+ }
42
+ function xe(e) {
43
+ (!e.__d && (e.__d = !0) && R.push(e) && !de.__r++ || je != C.debounceRendering) && ((je = C.debounceRendering) || Ye)(de);
44
+ }
45
+ function de() {
46
+ try {
47
+ for (var e, t = 1; R.length; ) R.length > t && R.sort(et), e = R.shift(), t = R.length, Wt(e);
48
+ } finally {
49
+ R.length = de.__r = 0;
50
+ }
51
+ }
52
+ function ot(e, t, r, i, a, o, c, l, f, d, _) {
53
+ var v, n, h, p, y, w, m = i && i.__k || le, s = t.length;
54
+ for (f = Gt(r, t, m, f, s), v = 0; v < s; v++) (h = r.__k[v]) != null && (n = h.__i != -1 && m[h.__i] || ce, h.__i = v, w = Ae(e, h, n, a, o, c, l, f, d, _), p = h.__e, h.ref && n.ref != h.ref && (n.ref && Te(n.ref, null, h), _.push(h.ref, h.__c || p, h)), y == null && p != null && (y = p), 4 & h.__u ? (f = it(h, f, e), n.__e && (n.__e = null)) : typeof h.type == "function" && w !== void 0 ? f = w : p && (f = p.nextSibling), h.__u &= -7);
55
+ return r.__e = y, f;
56
+ }
57
+ function Gt(e, t, r, i, a) {
58
+ var o, c, l, f, d, _ = r.length, v = _, n = 0;
59
+ for (e.__k = new Array(a), o = 0; o < a; o++) (c = t[o]) != null && typeof c != "boolean" && typeof c != "function" ? (typeof c == "string" || typeof c == "number" || typeof c == "bigint" || c.constructor == String ? c = e.__k[o] = re(null, c, null, null, null) : he(c) ? c = e.__k[o] = re(z, { children: c }, null, null, null) : c.constructor === void 0 && c.__b > 0 ? c = e.__k[o] = re(c.type, c.props, c.key, c.ref ? c.ref : null, c.__v) : e.__k[o] = c, f = o + n, c.__ = e, c.__b = e.__b + 1, l = null, (d = c.__i = Kt(c, r, f, v)) != -1 && (v--, (l = r[d]) && (l.__u |= 2)), l == null || l.__v == null ? (d == -1 && (a > _ ? n-- : a < _ && n++), typeof c.type != "function" && (c.__u |= 4)) : d != f && (d == f - 1 ? n-- : d == f + 1 ? n++ : (d > f ? n-- : n++, c.__u |= 4))) : e.__k[o] = null;
60
+ if (v) for (o = 0; o < _; o++) (l = r[o]) != null && (2 & l.__u) == 0 && (l.__e == i && (i = O(l)), lt(l, l));
61
+ return i;
62
+ }
63
+ function it(e, t, r) {
64
+ var i, a;
65
+ if (typeof e.type == "function") {
66
+ for (i = e.__k, a = 0; i && a < i.length; a++) i[a] && (i[a].__ = e, t = it(i[a], t, r));
67
+ return t;
68
+ }
69
+ e.__e != t && (t && e.type && !t.parentNode && (t = O(e)), t = r.insertBefore(e.__e, t || null));
70
+ do
71
+ t = t && t.nextSibling;
72
+ while (t != null && t.nodeType == 8);
73
+ return t;
74
+ }
75
+ function Kt(e, t, r, i) {
76
+ var a, o, c, l = e.key, f = e.type, d = t[r], _ = d != null && (2 & d.__u) == 0;
77
+ if (d === null && l == null || _ && l == d.key && f == d.type) return r;
78
+ if (i > (_ ? 1 : 0)) {
79
+ for (a = r - 1, o = r + 1; a >= 0 || o < t.length; ) if ((d = t[c = a >= 0 ? a-- : o++]) != null && (2 & d.__u) == 0 && l == d.key && f == d.type) return c;
80
+ }
81
+ return -1;
82
+ }
83
+ function Ie(e, t, r) {
84
+ t[0] == "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || qt.test(t) ? r : r + "px";
85
+ }
86
+ function Y(e, t, r, i, a) {
87
+ var o, c;
88
+ e: if (t == "style") if (typeof r == "string") e.style.cssText = r;
89
+ else {
90
+ if (typeof i == "string" && (e.style.cssText = i = ""), i) for (t in i) r && t in r || Ie(e.style, t, "");
91
+ if (r) for (t in r) i && r[t] == i[t] || Ie(e.style, t, r[t]);
92
+ }
93
+ else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(tt, "$1")), c = t.toLowerCase(), t = c in e || t == "onFocusOut" || t == "onFocusIn" ? c.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + o] = r, r ? i ? r[K] = i[K] : (r[K] = Se, e.addEventListener(t, o ? we : ye, o)) : e.removeEventListener(t, o ? we : ye, o);
94
+ else {
95
+ if (a == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
96
+ else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
97
+ e[t] = r ?? "";
98
+ break e;
99
+ } catch {
100
+ }
101
+ typeof r == "function" || (r == null || r === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
102
+ }
103
+ }
104
+ function Re(e) {
105
+ return function(t) {
106
+ if (this.l) {
107
+ var r = this.l[t.type + e];
108
+ if (t[te] == null) t[te] = Se++;
109
+ else if (t[te] < r[K]) return;
110
+ return r(C.event ? C.event(t) : t);
111
+ }
112
+ };
113
+ }
114
+ function Ae(e, t, r, i, a, o, c, l, f, d) {
115
+ var _, v, n, h, p, y, w, m, s, b, x, g, L, E, P, H, M = t.type;
116
+ if (t.constructor !== void 0) return null;
117
+ 128 & r.__u && (f = !!(32 & r.__u), o = [l = t.__e = r.__e]), (_ = C.__b) && _(t);
118
+ e: if (typeof M == "function") {
119
+ v = c.length;
120
+ try {
121
+ if (s = t.props, b = M.prototype && M.prototype.render, x = (_ = M.contextType) && i[_.__c], g = _ ? x ? x.props.value : _.__ : i, r.__c ? m = (n = t.__c = r.__c).__ = n.__E : (b ? t.__c = n = new M(s, g) : (t.__c = n = new ne(s, g), n.constructor = M, n.render = Vt), x && x.sub(n), n.state || (n.state = {}), n.__n = i, h = n.__d = !0, n.__h = [], n._sb = []), b && n.__s == null && (n.__s = n.state), b && M.getDerivedStateFromProps != null && (n.__s == n.state && (n.__s = I({}, n.__s)), I(n.__s, M.getDerivedStateFromProps(s, n.__s))), p = n.props, y = n.state, n.__v = t, h) b && M.getDerivedStateFromProps == null && n.componentWillMount != null && n.componentWillMount(), b && n.componentDidMount != null && n.__h.push(n.componentDidMount);
122
+ else {
123
+ if (b && M.getDerivedStateFromProps == null && s !== p && n.componentWillReceiveProps != null && n.componentWillReceiveProps(s, g), t.__v == r.__v || !n.__e && n.shouldComponentUpdate != null && n.shouldComponentUpdate(s, n.__s, g) === !1) {
124
+ t.__v != r.__v && (n.props = s, n.state = n.__s, n.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(T) {
125
+ T && (T.__ = t);
126
+ }), le.push.apply(n.__h, n._sb), n._sb = [], n.__h.length && c.push(n), l = O(r);
127
+ break e;
128
+ }
129
+ n.componentWillUpdate != null && n.componentWillUpdate(s, n.__s, g), b && n.componentDidUpdate != null && n.__h.push(function() {
130
+ n.componentDidUpdate(p, y, w);
131
+ });
132
+ }
133
+ if (n.context = g, n.props = s, n.__P = e, n.__e = !1, L = C.__r, E = 0, b) n.state = n.__s, n.__d = !1, L && L(t), _ = n.render(n.props, n.state, n.context), le.push.apply(n.__h, n._sb), n._sb = [];
134
+ else do
135
+ n.__d = !1, L && L(t), _ = n.render(n.props, n.state, n.context), n.state = n.__s;
136
+ while (n.__d && ++E < 25);
137
+ n.state = n.__s, n.getChildContext != null && (i = I(I({}, i), n.getChildContext())), b && !h && n.getSnapshotBeforeUpdate != null && (w = n.getSnapshotBeforeUpdate(p, y)), P = _ != null && _.type === z && _.key == null ? ct(_.props.children) : _, l = ot(e, he(P) ? P : [P], t, r, i, a, o, c, l, f, d), n.base = t.__e, t.__u &= -161, n.__h.length && c.push(n), m && (n.__E = n.__ = null);
138
+ } catch (T) {
139
+ if (c.length = v, t.__v = null, f || o != null) {
140
+ if (T.then) {
141
+ for (t.__u |= f ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
142
+ o != null && (o[o.indexOf(l)] = null), t.__e = l;
143
+ } else if (o != null) for (H = o.length; H--; ) Le(o[H]);
144
+ } else t.__e = r.__e;
145
+ t.__k == null && (t.__k = r.__k || []), T.then || at(t), C.__e(T, t, r);
146
+ }
147
+ } else o == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : l = t.__e = Xt(r.__e, t, r, i, a, o, c, f, d);
148
+ return (_ = C.diffed) && _(t), 128 & t.__u ? void 0 : l;
149
+ }
150
+ function at(e) {
151
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(at));
152
+ }
153
+ function st(e, t, r) {
154
+ for (var i = 0; i < r.length; i++) Te(r[i], r[++i], r[++i]);
155
+ C.__c && C.__c(t, e), e.some(function(a) {
156
+ try {
157
+ e = a.__h, a.__h = [], e.some(function(o) {
158
+ o.call(a);
159
+ });
160
+ } catch (o) {
161
+ C.__e(o, a.__v);
162
+ }
163
+ });
164
+ }
165
+ function ct(e) {
166
+ return typeof e != "object" || e == null || e.__b > 0 ? e : he(e) ? e.map(ct) : e.constructor !== void 0 ? null : I({}, e);
167
+ }
168
+ function Xt(e, t, r, i, a, o, c, l, f) {
169
+ var d, _, v, n, h, p, y, w = r.props || ce, m = t.props, s = t.type;
170
+ if (s == "svg" ? a = "http://www.w3.org/2000/svg" : s == "math" ? a = "http://www.w3.org/1998/Math/MathML" : a || (a = "http://www.w3.org/1999/xhtml"), o != null) {
171
+ for (d = 0; d < o.length; d++) if ((h = o[d]) && "setAttribute" in h == !!s && (s ? h.localName == s : h.nodeType == 3)) {
172
+ e = h, o[d] = null;
173
+ break;
174
+ }
175
+ }
176
+ if (e == null) {
177
+ if (s == null) return document.createTextNode(m);
178
+ e = document.createElementNS(a, s, m.is && m), l && (C.__m && C.__m(t, o), l = !1), o = null;
179
+ }
180
+ if (s == null) w === m || l && e.data == m || (e.data = m);
181
+ else {
182
+ if (o = s == "textarea" && m.defaultValue != null ? null : o && fe.call(e.childNodes), !l && o != null) for (w = {}, d = 0; d < e.attributes.length; d++) w[(h = e.attributes[d]).name] = h.value;
183
+ for (d in w) h = w[d], d == "dangerouslySetInnerHTML" ? v = h : d == "children" || d in m || d == "value" && "defaultValue" in m || d == "checked" && "defaultChecked" in m || Y(e, d, null, h, a);
184
+ for (d in m) h = m[d], d == "children" ? n = h : d == "dangerouslySetInnerHTML" ? _ = h : d == "value" ? p = h : d == "checked" ? y = h : l && typeof h != "function" || w[d] === h || Y(e, d, h, w[d], a);
185
+ if (_) l || v && (_.__html == v.__html || _.__html == e.innerHTML) || (e.innerHTML = _.__html), t.__k = [];
186
+ else if (v && (e.innerHTML = ""), ot(t.type == "template" ? e.content : e, he(n) ? n : [n], t, r, i, s == "foreignObject" ? "http://www.w3.org/1999/xhtml" : a, o, c, o ? o[0] : r.__k && O(r, 0), l, f), o != null) for (d = o.length; d--; ) Le(o[d]);
187
+ l && s != "textarea" || (d = "value", s == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[d] || s == "progress" && !p || s == "option" && p != w[d]) && Y(e, d, p, w[d], a), d = "checked", y != null && y != e[d] && Y(e, d, y, w[d], a));
188
+ }
189
+ return e;
190
+ }
191
+ function Te(e, t, r) {
192
+ try {
193
+ if (typeof e == "function") {
194
+ var i = typeof e.__u == "function";
195
+ i && e.__u(), i && t == null || (e.__u = e(t));
196
+ } else e.current = t;
197
+ } catch (a) {
198
+ C.__e(a, r);
199
+ }
200
+ }
201
+ function lt(e, t, r) {
202
+ var i, a;
203
+ if (C.unmount && C.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || Te(i, null, t)), (i = e.__c) != null) {
204
+ if (i.componentWillUnmount) try {
205
+ i.componentWillUnmount();
206
+ } catch (o) {
207
+ C.__e(o, t);
208
+ }
209
+ i.base = i.__P = i.__n = null;
210
+ }
211
+ if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && lt(i[a], t, r || typeof e.type != "function");
212
+ r || Le(e.__e), e.__c = e.__ = e.__e = void 0;
213
+ }
214
+ function Vt(e, t, r) {
215
+ return this.constructor(e, r);
216
+ }
217
+ function dt(e, t, r) {
218
+ var i, a, o, c;
219
+ t == document && (t = document.documentElement), C.__ && C.__(e, t), a = (i = !1) ? null : t.__k, o = [], c = [], Ae(t, e = t.__k = Ut(z, null, [e]), a || ce, ce, t.namespaceURI, a ? null : t.firstChild ? fe.call(t.childNodes) : null, o, a ? a.__e : t.firstChild, i, c), st(o, e, c), e.props.children = null;
220
+ }
221
+ function Jt(e) {
222
+ function t(r) {
223
+ var i, a;
224
+ return this.getChildContext || (i = /* @__PURE__ */ new Set(), (a = {})[t.__c] = this, this.getChildContext = function() {
225
+ return a;
226
+ }, this.componentWillUnmount = function() {
227
+ i = null;
228
+ }, this.shouldComponentUpdate = function(o) {
229
+ this.props.value != o.value && i.forEach(function(c) {
230
+ c.__e = !0, xe(c);
231
+ });
232
+ }, this.sub = function(o) {
233
+ i.add(o);
234
+ var c = o.componentWillUnmount;
235
+ o.componentWillUnmount = function() {
236
+ i && i.delete(o), c && c.call(o);
237
+ };
238
+ }), r.children;
239
+ }
240
+ return t.__c = "__cC" + rt++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(r, i) {
241
+ return r.children(i);
242
+ }).contextType = t, t;
243
+ }
244
+ fe = le.slice, C = { __e: function(e, t, r, i) {
245
+ for (var a, o, c; t = t.__; ) if ((a = t.__c) && !a.__) try {
246
+ if ((o = a.constructor) && o.getDerivedStateFromError != null && (a.setState(o.getDerivedStateFromError(e)), c = a.__d), a.componentDidCatch != null && (a.componentDidCatch(e, i || {}), c = a.__d), c) return a.__E = a;
247
+ } catch (l) {
248
+ e = l;
249
+ }
250
+ throw e;
251
+ } }, Ze = 0, ne.prototype.setState = function(e, t) {
252
+ var r;
253
+ r = this.__s != null && this.__s != this.state ? this.__s : this.__s = I({}, this.state), typeof e == "function" && (e = e(I({}, r), this.props)), e && I(r, e), e != null && this.__v && (t && this._sb.push(t), xe(this));
254
+ }, ne.prototype.forceUpdate = function(e) {
255
+ this.__v && (this.__e = !0, e && this.__h.push(e), xe(this));
256
+ }, ne.prototype.render = z, R = [], Ye = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, et = function(e, t) {
257
+ return e.__v.__b - t.__v.__b;
258
+ }, de.__r = 0, me = Math.random().toString(8), te = "__d" + me, K = "__a" + me, tt = /(PointerCapture)$|Capture$/i, Se = 0, ye = Re(!1), we = Re(!0), rt = 0;
259
+ var Qt = 0;
260
+ function u(e, t, r, i, a, o) {
261
+ t || (t = {});
262
+ var c, l, f = t;
263
+ if ("ref" in f) for (l in f = {}, t) l == "ref" ? c = t[l] : f[l] = t[l];
264
+ var d = { type: e, props: f, key: r, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Qt, __i: -1, __u: 0, __source: a, __self: o };
265
+ if (typeof e == "function" && (c = e.defaultProps)) for (l in c) f[l] === void 0 && (f[l] = c[l]);
266
+ return C.vnode && C.vnode(d), d;
267
+ }
268
+ function Zt(e) {
269
+ const t = [], r = Element.prototype.setAttribute, i = Element.prototype.removeAttribute;
270
+ function a(s, b, x) {
271
+ var L, E;
272
+ if (s.tagName === "IMG" && b === "srcset") {
273
+ const H = x.split(",").map((T) => T.trim().split(/\s+/)[0]).map((T) => ({ url: T, service: ee(T) })).filter(
274
+ (T) => T.service && T.service.requiresConsent !== !1 && !T.service.id.startsWith("external-")
275
+ ), M = H.find(
276
+ (T) => {
277
+ var Ne;
278
+ return e.auditMode || ((Ne = j().services) == null ? void 0 : Ne[T.service.id]) !== !0;
279
+ }
280
+ );
281
+ return M ? (a(s, "src", M.url), r.call(s, "data-cb-srcset", x), r.call(
282
+ s,
283
+ "data-cb-required",
284
+ JSON.stringify([
285
+ ...new Set(H.map((T) => T.service.id))
286
+ ])
287
+ ), i.call(s, "srcset"), !0) : !1;
288
+ }
289
+ if (s.tagName === "SCRIPT" && b === "type") {
290
+ const P = s.getAttribute("data-cb-service");
291
+ if (P && (e.auditMode || ((L = j().services) == null ? void 0 : L[P]) !== !0))
292
+ return x !== "text/plain" && r.call(s, "data-cb-type", x), r.call(s, "type", "text/plain"), !0;
293
+ }
294
+ if (!["src", "href"].includes(b) || !["SCRIPT", "IFRAME", "IMG", "LINK"].includes(s.tagName) || s.tagName === "LINK" && ![
295
+ "stylesheet",
296
+ "preconnect",
297
+ "dns-prefetch",
298
+ "preload",
299
+ "modulepreload",
300
+ "prefetch"
301
+ ].includes(s.getAttribute("rel") || ""))
302
+ return !1;
303
+ const g = ee(x);
304
+ if (!g || g.requiresConsent === !1 && s.tagName !== "IFRAME" || g.id.startsWith("external-") && s.tagName !== "IFRAME" || e.auditMode !== !0 && ((E = j().services) == null ? void 0 : E[g.id]) === !0)
305
+ return !1;
306
+ if (r.call(s, "data-cb-service", g.id), r.call(s, "data-cb-src", x), i.call(s, b), s.tagName === "SCRIPT") {
307
+ const P = s.getAttribute("type");
308
+ P !== "text/plain" && r.call(s, "data-cb-type", P || "text/javascript"), r.call(s, "type", "text/plain");
309
+ } else s.tagName !== "LINK" && r.call(s, "hidden", "");
310
+ return !0;
311
+ }
312
+ function o(s) {
313
+ if (!(s instanceof Element || s instanceof DocumentFragment)) return;
314
+ const b = [
315
+ ...s.querySelectorAll("script[src],iframe[src],img[src],link[href]")
316
+ ];
317
+ s instanceof Element && b.unshift(s);
318
+ for (const x of b) {
319
+ x.tagName === "SCRIPT" && x.hasAttribute("data-cb-service") && a(
320
+ x,
321
+ "type",
322
+ x.getAttribute("type") || "text/javascript"
323
+ );
324
+ const g = x.tagName === "LINK" ? "href" : "src", L = x.getAttribute(g);
325
+ L && a(x, g, L);
326
+ }
327
+ }
328
+ function c(s, b) {
329
+ const x = Object.getOwnPropertyDescriptor(s, b);
330
+ !(x != null && x.set) || !x.configurable || (Object.defineProperty(s, b, {
331
+ ...x,
332
+ set(g) {
333
+ a(this, b, String(g)) || x.set.call(this, g);
334
+ }
335
+ }), t.push(() => Object.defineProperty(s, b, x)));
336
+ }
337
+ c(HTMLScriptElement.prototype, "src"), c(HTMLScriptElement.prototype, "type"), c(HTMLIFrameElement.prototype, "src"), c(HTMLImageElement.prototype, "src"), c(HTMLImageElement.prototype, "srcset"), c(HTMLLinkElement.prototype, "href");
338
+ const l = function(s, b) {
339
+ a(this, s.toLowerCase(), String(b)) || r.call(this, s, b);
340
+ };
341
+ Element.prototype.setAttribute = l, t.push(() => {
342
+ Element.prototype.setAttribute === l && (Element.prototype.setAttribute = r);
343
+ });
344
+ const f = Element.prototype.setAttributeNS;
345
+ Element.prototype.setAttributeNS = function(s, b, x) {
346
+ s === null && a(this, b.toLowerCase(), String(x)) || f.call(this, s, b, x);
347
+ }, t.push(() => {
348
+ Element.prototype.setAttributeNS = f;
349
+ });
350
+ const d = Node.prototype.appendChild, _ = Node.prototype.insertBefore, v = Node.prototype.replaceChild;
351
+ Node.prototype.appendChild = function(s) {
352
+ return o(s), d.call(this, s);
353
+ }, Node.prototype.insertBefore = function(s, b) {
354
+ return o(s), _.call(this, s, b);
355
+ }, Node.prototype.replaceChild = function(s, b) {
356
+ return o(s), v.call(this, s, b);
357
+ }, t.push(() => {
358
+ Node.prototype.appendChild = d, Node.prototype.insertBefore = _, Node.prototype.replaceChild = v;
359
+ });
360
+ const n = Object.getOwnPropertyDescriptor(
361
+ Element.prototype,
362
+ "innerHTML"
363
+ ), h = (s) => {
364
+ const b = document.createElement("template");
365
+ return n.set.call(b, s), o(b.content), n.get.call(b);
366
+ };
367
+ if (n != null && n.set && n.get && n.configurable) {
368
+ Object.defineProperty(Element.prototype, "innerHTML", {
369
+ ...n,
370
+ set(b) {
371
+ const x = ["SCRIPT", "STYLE", "TEMPLATE", "TEXTAREA"].includes(
372
+ this.tagName
373
+ );
374
+ n.set.call(this, x ? b : h(b));
375
+ }
376
+ }), t.push(
377
+ () => Object.defineProperty(Element.prototype, "innerHTML", n)
378
+ );
379
+ const s = Element.prototype.insertAdjacentHTML;
380
+ Element.prototype.insertAdjacentHTML = function(b, x) {
381
+ s.call(this, b, h(x));
382
+ }, t.push(() => {
383
+ Element.prototype.insertAdjacentHTML = s;
384
+ });
385
+ }
386
+ if (n != null && n.set && n.get) {
387
+ for (const [b, x] of [
388
+ [Element.prototype, "outerHTML"],
389
+ [ShadowRoot.prototype, "innerHTML"],
390
+ [HTMLIFrameElement.prototype, "srcdoc"]
391
+ ]) {
392
+ const g = Object.getOwnPropertyDescriptor(b, x);
393
+ !(g != null && g.set) || !g.configurable || (Object.defineProperty(b, x, {
394
+ ...g,
395
+ set(L) {
396
+ g.set.call(this, h(L));
397
+ }
398
+ }), t.push(() => Object.defineProperty(b, x, g)));
399
+ }
400
+ const s = Range.prototype.createContextualFragment;
401
+ Range.prototype.createContextualFragment = function(b) {
402
+ return s.call(this, h(b));
403
+ }, t.push(() => {
404
+ Range.prototype.createContextualFragment = s;
405
+ });
406
+ }
407
+ const p = (s) => {
408
+ var g;
409
+ const b = ee(s);
410
+ if (!b || b.id.startsWith("external-") || b.requiresConsent === !1 || !e.auditMode && ((g = j().services) == null ? void 0 : g[b.id]) === !0)
411
+ return !1;
412
+ const x = e.detectedServices || (e.detectedServices = []);
413
+ return x.includes(b.id) || x.push(b.id), window.dispatchEvent(new Event("cb:services-changed")), window.dispatchEvent(
414
+ new CustomEvent("cb:request-blocked", {
415
+ detail: { service: b.id }
416
+ })
417
+ ), !0;
418
+ }, y = /* @__PURE__ */ new WeakSet();
419
+ function w(s) {
420
+ if (y.has(s)) return;
421
+ y.add(s);
422
+ const b = s.fetch;
423
+ b && (s.fetch = function(E, P) {
424
+ const H = typeof E == "string" ? E : E instanceof URL ? E.href : E.url;
425
+ return p(H) ? Promise.reject(
426
+ new TypeError("External request requires consent")
427
+ ) : b.call(this, E, P);
428
+ }, t.push(() => {
429
+ s.fetch = b;
430
+ }));
431
+ const x = s.XMLHttpRequest.prototype.open, g = function(E, P, ...H) {
432
+ if (p(String(P)))
433
+ throw new DOMException(
434
+ "External request requires consent",
435
+ "SecurityError"
436
+ );
437
+ Reflect.apply(x, this, [E, P, ...H]);
438
+ };
439
+ s.XMLHttpRequest.prototype.open = g, t.push(() => {
440
+ s.XMLHttpRequest.prototype.open = x;
441
+ });
442
+ const L = s.navigator.sendBeacon;
443
+ L && (s.navigator.sendBeacon = function(E, P) {
444
+ return p(String(E)) ? !1 : L.call(this, E, P);
445
+ }, t.push(() => {
446
+ s.navigator.sendBeacon = L;
447
+ }));
448
+ }
449
+ w(window);
450
+ const m = Object.getOwnPropertyDescriptor(
451
+ HTMLIFrameElement.prototype,
452
+ "contentWindow"
453
+ );
454
+ return m != null && m.get && m.configurable && (Object.defineProperty(HTMLIFrameElement.prototype, "contentWindow", {
455
+ ...m,
456
+ get() {
457
+ const s = m.get.call(this);
458
+ try {
459
+ s && w(s);
460
+ } catch {
461
+ }
462
+ return s;
463
+ }
464
+ }), t.push(
465
+ () => Object.defineProperty(
466
+ HTMLIFrameElement.prototype,
467
+ "contentWindow",
468
+ m
469
+ )
470
+ )), () => {
471
+ for (const s of t.reverse()) s();
472
+ };
473
+ }
474
+ function Yt(e, t) {
475
+ const r = e.trim(), i = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(r);
476
+ if (!i) return e;
477
+ const a = i[1], o = a.length === 3 ? a.split("").map((l) => l + l).join("") : a;
478
+ return `#${[0, 2, 4].map((l) => {
479
+ const f = Number.parseInt(o.slice(l, l + 2), 16);
480
+ return Math.round(f * (1 - t)).toString(16).padStart(2, "0");
481
+ }).join("")}`;
482
+ }
483
+ function ke(e) {
484
+ const t = /^#([a-f0-9]{3}|[a-f0-9]{6})$/i.exec(e);
485
+ if (!t) return;
486
+ const r = t[1].length === 3 ? [...t[1]].map((a) => a + a).join("") : t[1], i = [0, 2, 4].map((a) => {
487
+ const o = Number.parseInt(r.slice(a, a + 2), 16) / 255;
488
+ return o <= 0.04045 ? o / 12.92 : ((o + 0.055) / 1.055) ** 2.4;
489
+ });
490
+ return i[0] * 0.2126 + i[1] * 0.7152 + i[2] * 0.0722;
491
+ }
492
+ function er(e) {
493
+ const t = e.background || "#ffffff", r = ke(t);
494
+ if (r === void 0) return e;
495
+ const i = (l) => {
496
+ const f = ke(l);
497
+ return f === void 0 ? 1 / 0 : (Math.max(r, f) + 0.05) / (Math.min(r, f) + 0.05);
498
+ }, a = i("#000000") > i("#ffffff") ? "#000000" : "#ffffff";
499
+ let o = e.text || "#1a1a1a", c = e.primary || "#2563eb";
500
+ return i(o) < 7 && (o = a), i(c) < 4.5 && (c = a), {
501
+ ...e,
502
+ background: t,
503
+ text: o,
504
+ primary: c,
505
+ primaryHover: c === e.primary ? e.primaryHover : void 0
506
+ };
507
+ }
508
+ function pt(e, t) {
509
+ if (!t) return;
510
+ t = er(t);
511
+ const r = ke(t.primary || "#2563eb");
512
+ e.style.setProperty(
513
+ "--cb-on-primary",
514
+ r !== void 0 && r > 0.179 ? "#000000" : "#ffffff"
515
+ ), t.primary && (e.style.setProperty("--cb-primary", t.primary), e.style.setProperty(
516
+ "--cb-primary-hover",
517
+ t.primaryHover ?? Yt(t.primary, 0.18)
518
+ )), t.primaryHover && !t.primary && e.style.setProperty("--cb-primary-hover", t.primaryHover), t.background && e.style.setProperty("--cb-bg", t.background), t.text && e.style.setProperty("--cb-text", t.text);
519
+ }
520
+ function tr(e, t, r, i, a) {
521
+ const o = window.__cookieConsent, c = U(o) && !!e && ve(e), l = xt(r, o == null ? void 0 : o.customTexts), f = t === "youtube", _ = e && !t.startsWith("external-") && !/^unknown\b/i.test(e.name) ? e.name : l.content.external, v = document.createElement("section");
522
+ v.className = "cb-content-placeholder", v.lang = r, v.setAttribute("aria-label", l.content.blocked), v.style.cssText = "box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;max-width:100%;min-height:280px;padding:32px 24px;text-align:center;border:1px solid var(--cb-content-border,color-mix(in srgb,currentColor 9%,transparent));border-radius:var(--cb-content-radius,18px);background:var(--cb-content-background,linear-gradient(145deg,color-mix(in srgb,var(--cb-content-surface,#fff) 96%,var(--cb-primary,#2563eb)),var(--cb-content-surface,#fff)));box-shadow:0 8px 28px color-mix(in srgb,currentColor 5%,transparent);color:var(--cb-content-color,inherit);font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;", pt(v, (o == null ? void 0 : o.theme) || {});
523
+ for (let g = a; g; g = g.parentElement) {
524
+ const L = getComputedStyle(g).backgroundColor;
525
+ if (!(L === "transparent" || L === "rgba(0, 0, 0, 0)")) {
526
+ v.style.setProperty("--cb-content-surface", L);
527
+ break;
528
+ }
529
+ }
530
+ let n = v;
531
+ if (f) {
532
+ v.style.display = "grid", v.style.gridTemplateColumns = "minmax(0,1fr)", v.style.padding = "0", v.style.gap = "0";
533
+ const g = document.createElement("div");
534
+ g.setAttribute("aria-hidden", "true"), g.style.cssText = "grid-area:1/1;width:100%;aspect-ratio:16/9;pointer-events:none", n = document.createElement("div"), n.className = "cb-content-placeholder-body", n.style.cssText = "box-sizing:border-box;grid-area:1/1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;padding:32px 24px", v.append(g, n);
535
+ }
536
+ const h = document.createElement("div");
537
+ h.style.cssText = "display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;max-width:100%";
538
+ const p = document.createElement("span");
539
+ p.setAttribute("aria-hidden", "true"), p.style.cssText = `display:flex;flex:none;width:56px;height:56px;align-items:center;justify-content:center;border-radius:17px;background:color-mix(in srgb,var(--cb-primary,#2563eb) 9%,var(--cb-content-surface,#fff));color:${f ? "#ff0033" : "var(--cb-primary,#2563eb)"}`, p.innerHTML = f ? '<svg width="40" height="28" viewBox="0 0 40 28" fill="none" focusable="false"><rect width="40" height="28" rx="8" fill="currentColor"/><path d="m16 8 11 6-11 6V8Z" fill="white"/></svg>' : '<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" focusable="false"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="M3 9h18M7 6.5h.01M10 6.5h.01M10 12l-3 3 3 3m4-6 3 3-3 3"/></svg>';
540
+ const y = document.createElement("strong");
541
+ y.style.cssText = "font-family:inherit;font-size:18px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;color:inherit", y.textContent = f ? l.content.videoTitle : _, h.append(p, y);
542
+ const w = document.createElement("p");
543
+ w.style.cssText = "margin:0;max-width:38ch;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;color:inherit;text-wrap:pretty", w.textContent = f ? l.content.videoDescription : l.content.description;
544
+ const m = document.createElement("button");
545
+ m.type = "button", m.textContent = f ? l.content.allowPlay : l.content.allowShow, m.style.cssText = "box-sizing:border-box;max-width:100%;min-height:44px;margin:4px 0 0;padding:11px 20px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;white-space:normal;cursor:pointer;border:1px solid transparent;border-radius:var(--cb-content-button-radius,10px);background:var(--cb-content-primary,var(--cb-primary,#2563eb));color:var(--cb-content-button-text,var(--cb-on-primary,#fff));box-shadow:0 3px 8px color-mix(in srgb,var(--cb-primary,#2563eb) 16%,transparent);text-transform:none;letter-spacing:normal", m.addEventListener(
546
+ "click",
547
+ () => {
548
+ if (c)
549
+ try {
550
+ i();
551
+ } catch {
552
+ w.setAttribute("role", "alert"), w.textContent = l.disclosure.saveError;
553
+ }
554
+ else window.dispatchEvent(new Event("cb:open-preferences"));
555
+ },
556
+ {
557
+ isRocket: !0
558
+ }
559
+ ), c || (w.textContent = l.disclosure.unavailable, m.textContent = l.overlay.advancedSettings), n.append(h, w);
560
+ const s = document.createElement("details");
561
+ s.style.cssText = "max-width:48ch;font-family:inherit;font-size:12px;line-height:1.6;color:inherit";
562
+ const b = document.createElement("summary");
563
+ if (b.textContent = l.content.privacyDetails, b.style.cssText = "min-height:24px;line-height:24px;cursor:pointer;text-decoration:underline;text-underline-offset:3px", s.append(b), c && e) {
564
+ const g = document.createElement("p");
565
+ g.style.cssText = "margin:10px 0 6px;font:inherit;color:inherit", g.textContent = `${o.controller.name}. ${e.description} ${l.disclosure.retention}: ${e.retention}.`, s.append(g);
566
+ }
567
+ const x = [
568
+ [o == null ? void 0 : o.privacyPolicyUrl, l.overlay.privacyPolicy],
569
+ [e == null ? void 0 : e.privacyUrl, l.content.providerPrivacy]
570
+ ];
571
+ for (const [g, L] of x) {
572
+ if (!q(g)) continue;
573
+ const E = document.createElement("a");
574
+ E.href = g, E.textContent = L, E.style.cssText = "display:inline-block;min-height:24px;line-height:24px;margin:4px 6px;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px", E.target = "_blank", E.rel = "noopener noreferrer", s.append(E);
575
+ }
576
+ n.append(m, s);
577
+ for (const g of [m, b, ...s.querySelectorAll("a")])
578
+ g.addEventListener("focus", () => {
579
+ g.style.outline = `2px solid ${getComputedStyle(v).color}`, g.style.outlineOffset = "3px";
580
+ }), g.addEventListener("blur", () => {
581
+ g.style.removeProperty("outline"), g.style.removeProperty("outline-offset");
582
+ });
583
+ for (const g of n.children)
584
+ g.style.flexShrink = "0";
585
+ return v;
586
+ }
587
+ function $e(e, t) {
588
+ var i;
589
+ const r = Lt(e);
590
+ return !At() && ((i = t.services) == null ? void 0 : i[e.dataset.cbService]) === !0 && r !== null && r.every((a) => {
591
+ var o;
592
+ return ((o = t.services) == null ? void 0 : o[a]) === !0;
593
+ });
594
+ }
595
+ function rr(e) {
596
+ const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
597
+ let i = !1, a = Promise.resolve(), o = "";
598
+ const c = (d) => {
599
+ if (i) return;
600
+ if ((d == null ? void 0 : d.type) === "storage") {
601
+ if (!kt(d)) return;
602
+ d.key === null && (document.cookie = `${Ct}=; Path=/; Max-Age=0; SameSite=Lax`), Et(), window.location.reload();
603
+ return;
604
+ }
605
+ for (const n of document.querySelectorAll(
606
+ "[data-cb-src]:not([data-cb-service])"
607
+ )) {
608
+ const h = ee(n.dataset.cbSrc);
609
+ h && (n.dataset.cbService = h.id);
610
+ }
611
+ const _ = se().map((n) => n.id).sort().join("|");
612
+ _ !== o && (o = _, window.dispatchEvent(new Event("cb:services-changed")));
613
+ const v = j();
614
+ for (const [n, h] of r)
615
+ n.isConnected || (h.remove(), r.delete(n));
616
+ for (const n of document.querySelectorAll(
617
+ "[data-cb-service]"
618
+ )) {
619
+ const h = n.dataset.cbService, p = $e(n, v);
620
+ if (n instanceof HTMLScriptElement) {
621
+ if (p && !t.has(n) && n.dataset.cbExecuted !== "true" && (n.type === "text/plain" || !n.type && n.dataset.cbSrc && !n.hasAttribute("src"))) {
622
+ const m = document.createElement("script");
623
+ for (const b of n.attributes)
624
+ [
625
+ "type",
626
+ "src",
627
+ "data-cb-src",
628
+ "data-cb-type",
629
+ "data-cb-service",
630
+ "data-cb-executed"
631
+ ].includes(b.name) || m.setAttribute(b.name, b.value);
632
+ const s = (n.dataset.cbType || "text/javascript").replace(/^(?:true|false)\//, "");
633
+ m.type = s === "text/plain" ? "text/javascript" : s, m.async = n.hasAttribute("async"), n.dataset.cbSrc && (m.src = n.dataset.cbSrc), m.textContent = n.textContent, t.set(n, m), a = a.then(
634
+ () => new Promise((b) => {
635
+ if (i || !n.isConnected || !$e(n, j())) {
636
+ t.delete(n), b();
637
+ return;
638
+ }
639
+ (m.src || m.type === "module") && (m.addEventListener("load", () => b(), {
640
+ once: !0
641
+ }), m.addEventListener("error", () => b(), {
642
+ once: !0
643
+ })), n.dataset.cbExecuted = "true", n.after(m), !m.src && m.type !== "module" && b();
644
+ })
645
+ );
646
+ } else !p && t.has(n) && (t.get(n).remove(), t.delete(n));
647
+ continue;
648
+ }
649
+ if (n instanceof HTMLLinkElement || n instanceof HTMLImageElement) {
650
+ const m = n instanceof HTMLLinkElement ? "href" : "src";
651
+ p && n.dataset.cbSrc ? n.setAttribute(m, n.dataset.cbSrc) : n.removeAttribute(m), p && n instanceof HTMLImageElement && n.dataset.cbSrcset ? n.srcset = n.dataset.cbSrcset : n instanceof HTMLImageElement && n.removeAttribute("srcset"), n.hidden = !p;
652
+ continue;
653
+ }
654
+ if (p) {
655
+ const m = r.get(n), s = !!(m != null && m.contains(document.activeElement));
656
+ m == null || m.remove(), r.delete(n), n.hidden = !1, n.dataset.cbSrc && n.getAttribute("src") !== n.dataset.cbSrc && n.setAttribute("src", n.dataset.cbSrc), s && (n.hasAttribute("tabindex") || (n.tabIndex = 0), n.focus());
657
+ continue;
658
+ }
659
+ if (n.hasAttribute("src") && n.removeAttribute("src"), n.hidden = !0, r.has(n)) continue;
660
+ const y = se().find((m) => m.id === h), w = tr(
661
+ y,
662
+ h,
663
+ e.lang,
664
+ () => St(h, !0),
665
+ n.parentElement
666
+ );
667
+ r.set(n, w), n.after(w);
668
+ }
669
+ }, l = new MutationObserver(() => c());
670
+ l.observe(document.documentElement, {
671
+ childList: !0,
672
+ subtree: !0,
673
+ attributes: !0,
674
+ attributeFilter: ["data-cb-src", "data-cb-service", "data-cb-required"]
675
+ });
676
+ const f = (d) => {
677
+ e.strictCsp && d.persisted && window.location.reload();
678
+ };
679
+ return window.addEventListener("pageshow", f), window.addEventListener("cb:consent-update", c), window.addEventListener("storage", c), c(), () => {
680
+ i = !0, l.disconnect(), window.removeEventListener("cb:consent-update", c), window.removeEventListener("storage", c), window.removeEventListener("pageshow", f);
681
+ for (const d of r.values()) d.remove();
682
+ };
683
+ }
684
+ let Oe = !1;
685
+ function ut(e) {
686
+ var o;
687
+ if (e.preview) return;
688
+ if (e.mode !== "gtm") {
689
+ Tt(j(), e.scripts);
690
+ return;
691
+ }
692
+ if (Oe) return;
693
+ Oe = !0;
694
+ const t = ge(), r = t ? j() : { ...Ht }, i = Pt(r);
695
+ Mt(i);
696
+ const a = e.loadGtm !== !1 && !!e.gtmId;
697
+ t && (zt(i), (o = r.services) != null && o.gtm && (r.analytics || r.marketing) && a && e.gtmId && Nt(e.gtmId));
698
+ }
699
+ function nr() {
700
+ return { ...It(), services: jt() };
701
+ }
702
+ function or() {
703
+ return Rt();
704
+ }
705
+ const ir = {
706
+ position: "fixed",
707
+ inset: "0",
708
+ width: "100%",
709
+ height: "100%",
710
+ "pointer-events": "auto",
711
+ "z-index": "2147483647"
712
+ };
713
+ let X = null;
714
+ function ar(e = document.body) {
715
+ X || (X = {
716
+ body: e,
717
+ previousOverflow: e.style.overflow
718
+ }, e.style.overflow = "hidden");
719
+ }
720
+ function pe() {
721
+ if (!X) return;
722
+ const { body: e, previousOverflow: t } = X;
723
+ X = null, e.style.overflow === "hidden" && (e.style.overflow = t);
724
+ }
725
+ function Pe(e, t) {
726
+ for (const [r, i] of Object.entries(ir))
727
+ t ? e.style.setProperty(r, i) : e.style.removeProperty(r);
728
+ !t && e.style.length === 0 && e.removeAttribute("style");
729
+ }
730
+ function sr(e, t) {
731
+ Pe(e, t), t ? ar() : pe();
732
+ }
733
+ function cr(e, t) {
734
+ const r = new MutationObserver(() => {
735
+ e.isConnected || (r.disconnect(), t());
736
+ });
737
+ return r.observe(document.documentElement, {
738
+ childList: !0,
739
+ subtree: !0
740
+ }), () => r.disconnect();
741
+ }
742
+ var B, S, _e, Be, Q = 0, ft = [], A = C, Fe = A.__b, De = A.__r, qe = A.diffed, Ue = A.__c, We = A.unmount, Ge = A.__;
743
+ function Z(e, t) {
744
+ A.__h && A.__h(S, e, Q || t), Q = 0;
745
+ var r = S.__H || (S.__H = { __: [], __h: [] });
746
+ return e >= r.__.length && r.__.push({}), r.__[e];
747
+ }
748
+ function V(e) {
749
+ return Q = 1, lr(bt, e);
750
+ }
751
+ function lr(e, t, r) {
752
+ var i = Z(B++, 2);
753
+ if (i.t = e, !i.__c && (i.__ = [bt(void 0, t), function(l) {
754
+ var f = i.__N ? i.__N[0] : i.__[0], d = i.t(f, l);
755
+ f !== d && (i.__N = [d, i.__[1]], i.__c.setState({}));
756
+ }], i.__c = S, !S.__f)) {
757
+ var a = function(l, f, d) {
758
+ if (!i.__c.__H) return !0;
759
+ var _ = !1, v = i.__c.props !== l;
760
+ if (i.__c.__H.__.some(function(h) {
761
+ if (h.__N) {
762
+ _ = !0;
763
+ var p = h.__[0];
764
+ h.__ = h.__N, h.__N = void 0, p !== h.__[0] && (v = !0);
765
+ }
766
+ }), o) {
767
+ var n = o.call(this, l, f, d);
768
+ return _ ? n || v : n;
769
+ }
770
+ return !_ || v;
771
+ };
772
+ S.__f = !0;
773
+ var o = S.shouldComponentUpdate, c = S.componentWillUpdate;
774
+ S.componentWillUpdate = function(l, f, d) {
775
+ if (this.__e) {
776
+ var _ = o;
777
+ o = void 0, a(l, f, d), o = _;
778
+ }
779
+ c && c.call(this, l, f, d);
780
+ }, S.shouldComponentUpdate = a;
781
+ }
782
+ return i.__N || i.__;
783
+ }
784
+ function J(e, t) {
785
+ var r = Z(B++, 3);
786
+ !A.__s && He(r.__H, t) && (r.__ = e, r.u = t, S.__H.__h.push(r));
787
+ }
788
+ function Me(e, t) {
789
+ var r = Z(B++, 4);
790
+ !A.__s && He(r.__H, t) && (r.__ = e, r.u = t, S.__h.push(r));
791
+ }
792
+ function ze(e) {
793
+ return Q = 5, ht(function() {
794
+ return { current: e };
795
+ }, []);
796
+ }
797
+ function ht(e, t) {
798
+ var r = Z(B++, 7);
799
+ return He(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
800
+ }
801
+ function D(e, t) {
802
+ return Q = 8, ht(function() {
803
+ return e;
804
+ }, t);
805
+ }
806
+ function W(e) {
807
+ var t = S.context[e.__c], r = Z(B++, 9);
808
+ return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(S)), t.props.value) : e.__;
809
+ }
810
+ function dr() {
811
+ for (var e; e = ft.shift(); ) {
812
+ var t = e.__H;
813
+ if (e.__P && t) try {
814
+ t.__h.some(oe), t.__h.some(Ce), t.__h = [];
815
+ } catch (r) {
816
+ t.__h = [], A.__e(r, e.__v);
817
+ }
818
+ }
819
+ }
820
+ A.__b = function(e) {
821
+ S = null, Fe && Fe(e);
822
+ }, A.__ = function(e, t) {
823
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ge && Ge(e, t);
824
+ }, A.__r = function(e) {
825
+ De && De(e), B = 0;
826
+ var t = (S = e.__c).__H;
827
+ t && (_e === S ? (t.__h = [], S.__h = [], t.__.some(function(r) {
828
+ r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
829
+ })) : (t.__h.some(oe), t.__h.some(Ce), t.__h = [], B = 0)), _e = S;
830
+ }, A.diffed = function(e) {
831
+ qe && qe(e);
832
+ var t = e.__c;
833
+ t && t.__H && (t.__H.__h.length && (ft.push(t) !== 1 && Be === A.requestAnimationFrame || ((Be = A.requestAnimationFrame) || pr)(dr)), t.__H.__.some(function(r) {
834
+ r.u && (r.__H = r.u, r.u = void 0);
835
+ })), _e = S = null;
836
+ }, A.__c = function(e, t) {
837
+ t.some(function(r) {
838
+ try {
839
+ r.__h.some(oe), r.__h = r.__h.filter(function(i) {
840
+ return !i.__ || Ce(i);
841
+ });
842
+ } catch (i) {
843
+ t.some(function(a) {
844
+ a.__h && (a.__h = []);
845
+ }), t = [], A.__e(i, r.__v);
846
+ }
847
+ }), Ue && Ue(e, t);
848
+ }, A.unmount = function(e) {
849
+ We && We(e);
850
+ var t, r = e.__c;
851
+ r && r.__H && (r.__H.__.some(function(i) {
852
+ try {
853
+ oe(i);
854
+ } catch (a) {
855
+ t = a;
856
+ }
857
+ }), r.__H = void 0, t && A.__e(t, r.__v));
858
+ };
859
+ var Ke = typeof requestAnimationFrame == "function";
860
+ function pr(e) {
861
+ var t, r = function() {
862
+ clearTimeout(i), Ke && cancelAnimationFrame(t), setTimeout(e);
863
+ }, i = setTimeout(r, 35);
864
+ Ke && (t = requestAnimationFrame(r));
865
+ }
866
+ function oe(e) {
867
+ var t = S, r = e.__c;
868
+ typeof r == "function" && (e.__c = void 0, r()), S = t;
869
+ }
870
+ function Ce(e) {
871
+ var t = S;
872
+ e.__c = e.__(), S = t;
873
+ }
874
+ function He(e, t) {
875
+ return !e || e.length !== t.length || t.some(function(r, i) {
876
+ return r !== e[i];
877
+ });
878
+ }
879
+ function bt(e, t) {
880
+ return typeof t == "function" ? t(e) : t;
881
+ }
882
+ function ur(e, t) {
883
+ return Xe(e) || Xe(t);
884
+ }
885
+ function Xe(e) {
886
+ if (!e) return !1;
887
+ try {
888
+ const t = new URL(e, window.location.origin), r = new URL(window.location.href);
889
+ return t.origin === r.origin && t.pathname === r.pathname && ["page_id", "p", "pagename"].every((i) => t.searchParams.get(i) === r.searchParams.get(i)) && (!t.searchParams.has("lang") || t.searchParams.get("lang") === r.searchParams.get("lang"));
890
+ } catch {
891
+ return window.location.pathname === e;
892
+ }
893
+ }
894
+ const F = Jt(null);
895
+ function fr() {
896
+ const e = W(F);
897
+ if (!e)
898
+ throw new Error("useConsent must be used within ConfigContext.Provider");
899
+ const t = ur(
900
+ e.privacyPolicyUrl,
901
+ e.cookiePolicyUrl
902
+ ), [r, i] = V(
903
+ () => t || ge() ? "idle" : "overlay"
904
+ ), [a, o] = V(""), [c, l] = V(j), f = D(
905
+ (y) => {
906
+ $t(e, y), l(y), o("");
907
+ },
908
+ [e]
909
+ ), d = D(() => i("idle"), []), _ = D(() => i("preferences"), []);
910
+ J(() => (window.addEventListener("cb:open-preferences", _), () => window.removeEventListener("cb:open-preferences", _)), [_]);
911
+ const v = D(() => {
912
+ try {
913
+ f(nr()), d();
914
+ } catch {
915
+ o("saveError");
916
+ }
917
+ }, [f, d]), n = D(() => {
918
+ try {
919
+ f(or()), d();
920
+ } catch {
921
+ o("saveError");
922
+ }
923
+ }, [f, d]), h = D(
924
+ (y) => {
925
+ try {
926
+ f(y), d();
927
+ } catch {
928
+ o("saveError");
929
+ }
930
+ },
931
+ [f, d]
932
+ );
933
+ J(() => {
934
+ const y = (w) => {
935
+ const m = w.detail;
936
+ l(m);
937
+ };
938
+ return window.addEventListener("cb:consent-update", y), () => window.removeEventListener("cb:consent-update", y);
939
+ }, []);
940
+ const p = c;
941
+ return J(() => {
942
+ const y = (m) => {
943
+ m.target.closest(".open-consent-settings") && (m.preventDefault(), _());
944
+ }, w = {
945
+ capture: !0,
946
+ isRocket: !0
947
+ };
948
+ return document.addEventListener("click", y, w), () => document.removeEventListener("click", y, w);
949
+ }, [_]), {
950
+ config: e,
951
+ error: a,
952
+ view: r,
953
+ consentState: c,
954
+ suppressed: t,
955
+ hasConsented: ge(),
956
+ acceptAll: v,
957
+ rejectAll: n,
958
+ savePreferences: h,
959
+ openPreferences: _,
960
+ dismiss: d,
961
+ preferencesInitialState: p
962
+ };
963
+ }
964
+ const Ve = {
965
+ isRocket: !0
966
+ };
967
+ function be({ onClick: e, ...t }) {
968
+ const r = ze(null);
969
+ return Me(() => {
970
+ const i = r.current;
971
+ if (!i) return;
972
+ const a = (o) => {
973
+ o.stopPropagation(), e();
974
+ };
975
+ return i.addEventListener("click", a, Ve), () => i.removeEventListener("click", a, Ve);
976
+ }, [e]), /* @__PURE__ */ u("button", { ...t, ref: r });
977
+ }
978
+ function $({
979
+ variant: e = "primary",
980
+ ...t
981
+ }) {
982
+ const r = W(F), i = ((r == null ? void 0 : r.buttonStyle) ?? "standard") !== "standard" && e === "outline" ? "primary" : e;
983
+ return /* @__PURE__ */ u(be, { ...t, class: `cb-decision cb-decision-${i}` });
984
+ }
985
+ function mt(e) {
986
+ return /* @__PURE__ */ u(be, { ...e, class: "cb-settings" });
987
+ }
988
+ const hr = "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-.34-.017-.676-.05-1.008A3.5 3.5 0 0 1 18.5 8a3.5 3.5 0 0 1-1.008-3.45A10.05 10.05 0 0 0 12 2Z", br = [
989
+ { cx: 8, cy: 10, r: 1.5, opacity: 0.8 },
990
+ { cx: 12, cy: 14, r: 1.5, opacity: 0.8 },
991
+ { cx: 7, cy: 15, r: 1, opacity: 0.6 },
992
+ { cx: 15, cy: 11, r: 1, opacity: 0.6 }
993
+ ];
994
+ function _t({ chipFill: e = "var(--cb-bg)", opacity: t = 1 }) {
995
+ return /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
996
+ /* @__PURE__ */ u("path", { d: hr, fill: "currentColor", opacity: t }),
997
+ br.map((r) => /* @__PURE__ */ u("circle", { ...r, fill: e }, `${r.cx}-${r.cy}`))
998
+ ] });
999
+ }
1000
+ function mr({ label: e, onClick: t }) {
1001
+ return /* @__PURE__ */ u(
1002
+ be,
1003
+ {
1004
+ type: "button",
1005
+ onClick: t,
1006
+ "aria-label": e,
1007
+ title: e,
1008
+ class: "fixed bottom-4 left-4 z-2147483646 flex h-12 w-12 cursor-pointer items-center justify-center rounded-full bg-cb-primary text-cb-on-primary shadow-lg transition-transform hover:scale-110 focus-visible:ring-2 focus-visible:ring-cb-primary focus-visible:ring-offset-2 focus-visible:outline-none",
1009
+ children: /* @__PURE__ */ u(_t, { chipFill: "var(--cb-primary)", opacity: 0.9 })
1010
+ }
1011
+ );
1012
+ }
1013
+ function Je({
1014
+ children: e,
1015
+ class: t = "",
1016
+ label: r,
1017
+ onDismiss: i
1018
+ }) {
1019
+ const a = ze(null);
1020
+ return Me(() => {
1021
+ var h;
1022
+ const o = document.getElementById("cookie-consent-host"), c = document.activeElement, l = c === o ? (h = o == null ? void 0 : o.shadowRoot) == null ? void 0 : h.activeElement : c, f = a.current;
1023
+ if (!f) return;
1024
+ const d = /* @__PURE__ */ new Set(), _ = () => {
1025
+ for (const p of document.body.children)
1026
+ p instanceof HTMLElement && p !== o && !p.inert && (p.inert = !0, d.add(p));
1027
+ };
1028
+ _();
1029
+ const v = new MutationObserver(_);
1030
+ v.observe(document.body, { childList: !0 }), f.focus();
1031
+ const n = (p) => {
1032
+ if (p.key === "Escape") {
1033
+ p.preventDefault(), i();
1034
+ return;
1035
+ }
1036
+ if (p.key !== "Tab") return;
1037
+ const y = [
1038
+ ...f.querySelectorAll(
1039
+ 'button:not([disabled]),a[href],input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex="0"]'
1040
+ )
1041
+ ].filter(
1042
+ (b) => b.getClientRects().length && !b.closest("[hidden],[inert]")
1043
+ ), w = f.getRootNode() instanceof ShadowRoot ? f.getRootNode().activeElement : document.activeElement, m = y.indexOf(w);
1044
+ if (p.preventDefault(), !y.length) {
1045
+ f.focus();
1046
+ return;
1047
+ }
1048
+ const s = p.shiftKey ? m <= 0 ? y.length - 1 : m - 1 : (m + 1) % y.length;
1049
+ y[s].focus();
1050
+ };
1051
+ return f.addEventListener("keydown", n), () => {
1052
+ f.removeEventListener("keydown", n), v.disconnect();
1053
+ for (const p of d) p.inert = !1;
1054
+ queueMicrotask(() => {
1055
+ var p, y;
1056
+ document.activeElement !== document.body && document.activeElement !== o || (l != null && l.isConnected && l !== o && l !== document.body ? l.focus() : (y = (p = o == null ? void 0 : o.shadowRoot) == null ? void 0 : p.querySelector("button[title]")) == null || y.focus());
1057
+ });
1058
+ };
1059
+ }, []), /* @__PURE__ */ u("div", { class: "fixed inset-0 z-2147483647 flex items-end sm:items-center justify-center bg-cb-overlay backdrop-blur-sm", children: /* @__PURE__ */ u(
1060
+ "div",
1061
+ {
1062
+ ref: a,
1063
+ tabIndex: -1,
1064
+ role: "dialog",
1065
+ "aria-modal": "true",
1066
+ "aria-label": r,
1067
+ class: `max-h-[90vh] overflow-y-auto outline-none w-full sm:mx-4 sm:max-w-xl rounded-t-cb sm:rounded-cb bg-cb-bg shadow-2xl ${t}`.trim(),
1068
+ children: [
1069
+ /* @__PURE__ */ u(
1070
+ "button",
1071
+ {
1072
+ type: "button",
1073
+ onClick: i,
1074
+ "aria-label": k.close,
1075
+ class: "float-right self-end shrink-0 ml-3 mb-2 min-h-8 min-w-8 rounded border border-cb-border text-cb-text focus-visible:outline-2",
1076
+ children: "×"
1077
+ }
1078
+ ),
1079
+ e
1080
+ ]
1081
+ }
1082
+ ) });
1083
+ }
1084
+ const ue = "cursor-pointer underline underline-offset-2 text-cb-primary hover:text-cb-primary-hover transition-colors";
1085
+ function vt({
1086
+ privacyPolicyUrl: e,
1087
+ cookiePolicyUrl: t
1088
+ }) {
1089
+ return e = q(e) ? e : void 0, t = q(t) ? t : void 0, !e && !t ? null : /* @__PURE__ */ u(z, { children: [
1090
+ " ",
1091
+ (e || t) && k.overlay.descriptionPolicyLink && `${k.overlay.descriptionPolicyLink} `,
1092
+ e && /* @__PURE__ */ u(
1093
+ "a",
1094
+ {
1095
+ href: e,
1096
+ target: "_blank",
1097
+ rel: "noopener noreferrer",
1098
+ class: ue,
1099
+ children: k.overlay.privacyPolicy
1100
+ }
1101
+ ),
1102
+ e && t && ` ${k.overlay.andOur} `,
1103
+ t && /* @__PURE__ */ u(
1104
+ "a",
1105
+ {
1106
+ href: t,
1107
+ target: "_blank",
1108
+ rel: "noopener noreferrer",
1109
+ class: ue,
1110
+ children: k.overlay.cookiePolicy
1111
+ }
1112
+ ),
1113
+ "."
1114
+ ] });
1115
+ }
1116
+ function _r({
1117
+ privacyPolicyUrl: e,
1118
+ cookiePolicyUrl: t
1119
+ }) {
1120
+ return e = q(e) ? e : void 0, t = q(t) ? t : void 0, !e && !t ? null : /* @__PURE__ */ u(z, { children: [
1121
+ " ",
1122
+ k.preferences.descriptionPolicyLink,
1123
+ " ",
1124
+ e && /* @__PURE__ */ u(
1125
+ "a",
1126
+ {
1127
+ href: e,
1128
+ target: "_blank",
1129
+ rel: "noopener noreferrer",
1130
+ class: ue,
1131
+ children: k.overlay.privacyPolicy
1132
+ }
1133
+ ),
1134
+ e && t && ` ${k.overlay.andOur} `,
1135
+ t && /* @__PURE__ */ u(
1136
+ "a",
1137
+ {
1138
+ href: t,
1139
+ target: "_blank",
1140
+ rel: "noopener noreferrer",
1141
+ class: ue,
1142
+ children: k.overlay.cookiePolicy
1143
+ }
1144
+ ),
1145
+ "."
1146
+ ] });
1147
+ }
1148
+ function gt() {
1149
+ const e = W(F);
1150
+ return /* @__PURE__ */ u(z, { children: [
1151
+ k.overlay.description,
1152
+ e && !U(e) && /* @__PURE__ */ u("span", { class: "block mt-2", role: "status", children: k.disclosure.unavailable })
1153
+ ] });
1154
+ }
1155
+ function vr() {
1156
+ var t;
1157
+ const e = W(F);
1158
+ return e ? /* @__PURE__ */ u(z, { children: [
1159
+ ((t = e.controller) == null ? void 0 : t.name) && /* @__PURE__ */ u("span", { class: "cb-controller", children: e.controller.name }),
1160
+ e.purposes && /* @__PURE__ */ u("span", { class: "cb-purposes", children: e.purposes }),
1161
+ !U(e) && /* @__PURE__ */ u("span", { class: "block", role: "status", children: k.disclosure.unavailable })
1162
+ ] }) : null;
1163
+ }
1164
+ function gr({
1165
+ privacyPolicyUrl: e,
1166
+ cookiePolicyUrl: t,
1167
+ onAcceptAll: r,
1168
+ onOpenPreferences: i,
1169
+ onRejectAll: a
1170
+ }) {
1171
+ const o = ze(null);
1172
+ return Me(() => {
1173
+ const c = o.current;
1174
+ if (!c) return;
1175
+ const l = document.body, f = l.style.paddingBottom, d = getComputedStyle(l).paddingBottom;
1176
+ let _ = "";
1177
+ const v = () => {
1178
+ _ = `calc(${d} + ${c.getBoundingClientRect().height}px)`, l.style.paddingBottom = _, _ = l.style.paddingBottom;
1179
+ }, n = () => {
1180
+ const p = document.activeElement;
1181
+ if (!(p instanceof HTMLElement) || p.id === "cookie-consent-host")
1182
+ return;
1183
+ const y = p.getBoundingClientRect().bottom - c.getBoundingClientRect().top + 8;
1184
+ y > 0 && window.scrollBy(0, y);
1185
+ }, h = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(v);
1186
+ return h == null || h.observe(c), window.addEventListener("resize", v), v(), document.addEventListener("focusin", n), () => {
1187
+ h == null || h.disconnect(), window.removeEventListener("resize", v), document.removeEventListener("focusin", n), l.style.paddingBottom === _ && (l.style.paddingBottom = f);
1188
+ };
1189
+ }, []), /* @__PURE__ */ u(
1190
+ "div",
1191
+ {
1192
+ ref: o,
1193
+ role: "region",
1194
+ "aria-label": k.overlay.title,
1195
+ class: "fixed bottom-0 left-0 right-0 z-2147483647 max-h-[80vh] overflow-y-auto",
1196
+ children: /* @__PURE__ */ u("div", { class: "w-full bg-cb-bg shadow-[0_-4px_24px_rgba(0,0,0,0.15)] border-t border-cb-text/10", children: /* @__PURE__ */ u("div", { class: "mx-auto max-w-7xl px-4 sm:px-8 py-3 sm:py-5 flex flex-col lg:flex-row lg:items-center gap-3 lg:gap-8", children: [
1197
+ /* @__PURE__ */ u("p", { class: "flex-1 text-xs sm:text-sm leading-relaxed text-cb-text", children: [
1198
+ /* @__PURE__ */ u(gt, {}),
1199
+ /* @__PURE__ */ u(
1200
+ vt,
1201
+ {
1202
+ privacyPolicyUrl: e,
1203
+ cookiePolicyUrl: t
1204
+ }
1205
+ )
1206
+ ] }),
1207
+ /* @__PURE__ */ u("div", { class: "cb-bar-actions shrink-0 w-full lg:w-auto lg:min-w-max", children: [
1208
+ /* @__PURE__ */ u(mt, { type: "button", onClick: i, children: k.overlay.advancedSettings }),
1209
+ /* @__PURE__ */ u("div", { class: "cb-decisions", children: [
1210
+ /* @__PURE__ */ u(
1211
+ $,
1212
+ {
1213
+ variant: "outline",
1214
+ type: "button",
1215
+ onClick: a,
1216
+ children: k.preferences.rejectAll
1217
+ }
1218
+ ),
1219
+ /* @__PURE__ */ u(
1220
+ $,
1221
+ {
1222
+ type: "button",
1223
+ onClick: r,
1224
+ disabled: !U(window.__cookieConsent),
1225
+ children: k.overlay.acceptAll
1226
+ }
1227
+ )
1228
+ ] })
1229
+ ] })
1230
+ ] }) })
1231
+ }
1232
+ );
1233
+ }
1234
+ function yr({
1235
+ privacyPolicyUrl: e,
1236
+ cookiePolicyUrl: t,
1237
+ onAcceptAll: r,
1238
+ onRejectAll: i,
1239
+ onOpenPreferences: a
1240
+ }) {
1241
+ const o = U(
1242
+ W(F) || void 0
1243
+ );
1244
+ return /* @__PURE__ */ u(z, { children: [
1245
+ /* @__PURE__ */ u("div", { class: "cb-intro-icon", "aria-hidden": "true", children: /* @__PURE__ */ u(_t, {}) }),
1246
+ /* @__PURE__ */ u("h2", { class: "mb-3 text-xl sm:text-2xl font-semibold text-cb-text", children: k.overlay.title }),
1247
+ /* @__PURE__ */ u("p", { class: "mb-6 text-sm leading-relaxed text-cb-text", children: [
1248
+ /* @__PURE__ */ u(gt, {}),
1249
+ /* @__PURE__ */ u(
1250
+ vt,
1251
+ {
1252
+ privacyPolicyUrl: e,
1253
+ cookiePolicyUrl: t
1254
+ }
1255
+ )
1256
+ ] }),
1257
+ /* @__PURE__ */ u("div", { class: "cb-decisions", children: [
1258
+ /* @__PURE__ */ u($, { variant: "outline", type: "button", onClick: i, children: k.preferences.rejectAll }),
1259
+ /* @__PURE__ */ u(
1260
+ $,
1261
+ {
1262
+ type: "button",
1263
+ onClick: r,
1264
+ disabled: !o,
1265
+ children: k.overlay.acceptAll
1266
+ }
1267
+ )
1268
+ ] }),
1269
+ /* @__PURE__ */ u(mt, { type: "button", onClick: a, children: k.overlay.advancedSettings })
1270
+ ] });
1271
+ }
1272
+ function Qe({ checked: e, disabled: t, onChange: r, id: i }) {
1273
+ return /* @__PURE__ */ u(
1274
+ be,
1275
+ {
1276
+ id: i,
1277
+ role: "switch",
1278
+ type: "button",
1279
+ "aria-checked": e,
1280
+ disabled: t,
1281
+ onClick: () => !t && r(!e),
1282
+ style: {
1283
+ width: "52px",
1284
+ height: "28px",
1285
+ borderRadius: "14px",
1286
+ padding: "2px",
1287
+ border: "none",
1288
+ cursor: t ? "not-allowed" : "pointer",
1289
+ backgroundColor: t || e ? "var(--cb-primary)" : "#d1d5db",
1290
+ opacity: t ? 0.5 : 1,
1291
+ transition: "background-color 200ms ease",
1292
+ display: "inline-flex",
1293
+ alignItems: "center",
1294
+ flexShrink: 0,
1295
+ position: "relative"
1296
+ },
1297
+ children: /* @__PURE__ */ u(
1298
+ "span",
1299
+ {
1300
+ style: {
1301
+ width: "24px",
1302
+ height: "24px",
1303
+ borderRadius: "12px",
1304
+ backgroundColor: e ? "var(--cb-on-primary)" : "#374151",
1305
+ boxShadow: "0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.12)",
1306
+ transition: "transform 200ms ease",
1307
+ transform: e ? "translateX(24px)" : "translateX(0px)",
1308
+ pointerEvents: "none",
1309
+ display: "block"
1310
+ }
1311
+ }
1312
+ )
1313
+ }
1314
+ );
1315
+ }
1316
+ function wr({
1317
+ privacyPolicyUrl: e,
1318
+ cookiePolicyUrl: t,
1319
+ initialState: r,
1320
+ onSave: i,
1321
+ onAcceptAll: a,
1322
+ onRejectAll: o
1323
+ }) {
1324
+ const c = W(F), l = U(c || void 0), [f, d] = V(se);
1325
+ J(() => {
1326
+ const p = () => d(se());
1327
+ return window.addEventListener("cb:services-changed", p), () => window.removeEventListener("cb:services-changed", p);
1328
+ }, []);
1329
+ const [_, v] = V({
1330
+ ...r
1331
+ }), n = (p, y) => {
1332
+ v((w) => ({ ...w, [p]: y }));
1333
+ }, h = () => {
1334
+ i({ ..._, essential: !0 });
1335
+ };
1336
+ return /* @__PURE__ */ u(z, { children: [
1337
+ /* @__PURE__ */ u("div", { class: "shrink-0 border-b border-cb-border p-5 sm:p-6", children: [
1338
+ /* @__PURE__ */ u("div", { class: "flex items-center justify-between", children: /* @__PURE__ */ u("h2", { class: "text-lg sm:text-xl font-bold text-cb-text", children: k.preferences.title }) }),
1339
+ /* @__PURE__ */ u("p", { class: "mt-2 text-sm leading-relaxed text-cb-text", children: [
1340
+ /* @__PURE__ */ u(vr, {}),
1341
+ k.preferences.description,
1342
+ /* @__PURE__ */ u(
1343
+ _r,
1344
+ {
1345
+ privacyPolicyUrl: e,
1346
+ cookiePolicyUrl: t
1347
+ }
1348
+ )
1349
+ ] })
1350
+ ] }),
1351
+ /* @__PURE__ */ u("div", { class: "flex-1 overflow-y-auto p-5 sm:p-6", children: /* @__PURE__ */ u("div", { class: "flex flex-col gap-3 sm:gap-4", children: [
1352
+ Ot.map((p) => {
1353
+ const y = k.preferences.categories[p], w = p === "essential";
1354
+ return /* @__PURE__ */ u(
1355
+ "div",
1356
+ {
1357
+ class: "rounded-cb border border-cb-border bg-cb-surface p-3 sm:p-4",
1358
+ children: /* @__PURE__ */ u("div", { class: "flex items-start justify-between gap-3", children: [
1359
+ /* @__PURE__ */ u("div", { class: "min-w-0 flex-1", children: [
1360
+ /* @__PURE__ */ u(
1361
+ "label",
1362
+ {
1363
+ for: `cb-toggle-${p}`,
1364
+ class: "text-sm font-semibold text-cb-text",
1365
+ children: y.label
1366
+ }
1367
+ ),
1368
+ /* @__PURE__ */ u("p", { class: "mt-1 text-xs leading-relaxed text-cb-text", children: y.description })
1369
+ ] }),
1370
+ /* @__PURE__ */ u("div", { class: "shrink-0 pt-0.5", children: /* @__PURE__ */ u(
1371
+ Qe,
1372
+ {
1373
+ id: `cb-toggle-${p}`,
1374
+ checked: w ? !0 : _[p],
1375
+ disabled: w || !l,
1376
+ onChange: (m) => n(p, m)
1377
+ }
1378
+ ) })
1379
+ ] })
1380
+ },
1381
+ p
1382
+ );
1383
+ }),
1384
+ /* @__PURE__ */ u("h3", { class: "text-sm font-semibold text-cb-text", children: k.preferences.externalServices }),
1385
+ f.map((p) => {
1386
+ var y;
1387
+ return /* @__PURE__ */ u(
1388
+ "div",
1389
+ {
1390
+ class: "rounded-cb border border-cb-border p-4",
1391
+ children: [
1392
+ /* @__PURE__ */ u("div", { class: "flex items-center justify-between gap-3", children: [
1393
+ /* @__PURE__ */ u(
1394
+ "label",
1395
+ {
1396
+ for: `cb-service-${p.id}`,
1397
+ class: "text-sm font-semibold text-cb-text",
1398
+ children: p.name
1399
+ }
1400
+ ),
1401
+ /* @__PURE__ */ u(
1402
+ Qe,
1403
+ {
1404
+ id: `cb-service-${p.id}`,
1405
+ checked: ((y = _.services) == null ? void 0 : y[p.id]) === !0,
1406
+ disabled: !l || !ve(p),
1407
+ onChange: (w) => v((m) => ({
1408
+ ...m,
1409
+ services: { ...m.services, [p.id]: w }
1410
+ }))
1411
+ }
1412
+ )
1413
+ ] }),
1414
+ /* @__PURE__ */ u("p", { class: "mt-2 text-xs text-cb-text", children: [
1415
+ p.description && /* @__PURE__ */ u("span", { children: [
1416
+ p.description,
1417
+ /* @__PURE__ */ u("br", {})
1418
+ ] }),
1419
+ k.preferences.externalServicesDescription,
1420
+ p.retention && /* @__PURE__ */ u("span", { class: "block", children: [
1421
+ k.disclosure.retention,
1422
+ ": ",
1423
+ p.retention
1424
+ ] }),
1425
+ !ve(p) && /* @__PURE__ */ u("span", { class: "block", children: k.disclosure.unavailable })
1426
+ ] }),
1427
+ q(p.privacyUrl) && /* @__PURE__ */ u(
1428
+ "a",
1429
+ {
1430
+ class: "text-xs text-cb-primary underline",
1431
+ href: p.privacyUrl,
1432
+ target: "_blank",
1433
+ rel: "noopener noreferrer",
1434
+ children: k.overlay.privacyPolicy
1435
+ }
1436
+ )
1437
+ ]
1438
+ },
1439
+ p.id
1440
+ );
1441
+ })
1442
+ ] }) }),
1443
+ /* @__PURE__ */ u("div", { class: "grid grid-cols-1 sm:grid-cols-3 gap-3 border-t border-cb-border p-5 sm:p-6", children: [
1444
+ /* @__PURE__ */ u($, { variant: "outline", type: "button", onClick: o, children: k.preferences.rejectAll }),
1445
+ /* @__PURE__ */ u($, { variant: "subtle", type: "button", onClick: h, children: k.preferences.save }),
1446
+ /* @__PURE__ */ u(
1447
+ $,
1448
+ {
1449
+ type: "button",
1450
+ onClick: a,
1451
+ disabled: !l,
1452
+ children: k.preferences.acceptAllAndContinue
1453
+ }
1454
+ )
1455
+ ] })
1456
+ ] });
1457
+ }
1458
+ function xr({ config: e }) {
1459
+ return /* @__PURE__ */ u(F.Provider, { value: e, children: /* @__PURE__ */ u(kr, {}) });
1460
+ }
1461
+ function kr() {
1462
+ const {
1463
+ view: e,
1464
+ consentState: t,
1465
+ error: r,
1466
+ suppressed: i,
1467
+ hasConsented: a,
1468
+ config: o,
1469
+ acceptAll: c,
1470
+ rejectAll: l,
1471
+ savePreferences: f,
1472
+ openPreferences: d,
1473
+ preferencesInitialState: _,
1474
+ dismiss: v
1475
+ } = fr(), n = t.analytics || t.marketing || Object.values(t.services || {}).some(Boolean), h = o.variant === "bar", p = !i || a, y = p && (e === "overlay" || e === "preferences") && (e === "preferences" || !h);
1476
+ return J(() => {
1477
+ const w = document.getElementById("cookie-consent-host");
1478
+ if (w)
1479
+ return sr(w, y), () => {
1480
+ Pe(w, !1), pe();
1481
+ };
1482
+ }, [y]), p ? /* @__PURE__ */ u(z, { children: [
1483
+ r && /* @__PURE__ */ u(
1484
+ "p",
1485
+ {
1486
+ role: "alert",
1487
+ class: "fixed top-4 left-4 right-4 z-2147483647 rounded-md border bg-cb-bg p-4 text-cb-text",
1488
+ children: k.disclosure.saveError
1489
+ }
1490
+ ),
1491
+ e === "overlay" && !h && /* @__PURE__ */ u(
1492
+ Je,
1493
+ {
1494
+ label: k.overlay.title,
1495
+ onDismiss: v,
1496
+ class: "p-6 sm:p-8",
1497
+ children: /* @__PURE__ */ u(
1498
+ yr,
1499
+ {
1500
+ privacyPolicyUrl: o.privacyPolicyUrl,
1501
+ cookiePolicyUrl: o.cookiePolicyUrl,
1502
+ onAcceptAll: c,
1503
+ onRejectAll: l,
1504
+ onOpenPreferences: d
1505
+ }
1506
+ )
1507
+ }
1508
+ ),
1509
+ e === "overlay" && h && /* @__PURE__ */ u(
1510
+ gr,
1511
+ {
1512
+ privacyPolicyUrl: o.privacyPolicyUrl,
1513
+ cookiePolicyUrl: o.cookiePolicyUrl,
1514
+ onAcceptAll: c,
1515
+ onRejectAll: l,
1516
+ onOpenPreferences: d
1517
+ }
1518
+ ),
1519
+ e === "preferences" && /* @__PURE__ */ u(
1520
+ Je,
1521
+ {
1522
+ label: k.preferences.title,
1523
+ onDismiss: v,
1524
+ class: "flex max-h-[90vh] flex-col",
1525
+ children: /* @__PURE__ */ u(
1526
+ wr,
1527
+ {
1528
+ privacyPolicyUrl: o.privacyPolicyUrl,
1529
+ cookiePolicyUrl: o.cookiePolicyUrl,
1530
+ initialState: _,
1531
+ onSave: f,
1532
+ onAcceptAll: c,
1533
+ onRejectAll: l
1534
+ }
1535
+ )
1536
+ }
1537
+ ),
1538
+ e === "idle" && n && /* @__PURE__ */ u("div", { class: "fixed bottom-4 left-20 right-4 sm:right-auto z-2147483646 max-w-xs", children: /* @__PURE__ */ u(
1539
+ $,
1540
+ {
1541
+ variant: "outline",
1542
+ type: "button",
1543
+ onClick: l,
1544
+ children: k.disclosure.withdraw
1545
+ }
1546
+ ) }),
1547
+ e === "idle" && /* @__PURE__ */ u(mr, { label: k.floatingIcon.label, onClick: d })
1548
+ ] }) : null;
1549
+ }
1550
+ function Cr(e, t) {
1551
+ const r = document.createElement("div");
1552
+ r.id = "cookie-consent-host", document.body.appendChild(r);
1553
+ const i = r.attachShadow({ mode: "open" }), a = document.createElement("style");
1554
+ a.textContent = e, i.appendChild(a), pt(r, t);
1555
+ const o = document.createElement("div");
1556
+ return o.id = "cookie-consent-root", i.appendChild(o), { host: r, root: o };
1557
+ }
1558
+ const Er = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--container-xs:20rem;--container-xl:36rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-md:.375rem;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:host{--cb-bg:#fff;--cb-text:#1a1a1a;--cb-primary:#2563eb;--cb-on-primary:#fff;--cb-primary-hover:#1d4ed8;--cb-overlay:#00000080;--cb-surface:var(--cb-text)}@supports (color:color-mix(in lab,red,red)){:host{--cb-surface:color-mix(in srgb, var(--cb-text) 4%, var(--cb-bg))}}:host{--cb-border:var(--cb-text)}@supports (color:color-mix(in lab,red,red)){:host{--cb-border:color-mix(in srgb, var(--cb-text) 20%, var(--cb-bg))}}:host{--cb-radius:12px;--cb-font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;all:initial;font-family:var(--cb-font);color:var(--cb-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;line-height:1.5}*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--cb-border);margin:0;padding:0}button{cursor:pointer}}@layer components;@layer utilities{.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{top:0;right:0;bottom:0;left:0}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:0}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.left-20{left:calc(var(--spacing) * 20)}.isolate{isolation:isolate}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.float-right{float:right}.mx-auto{margin-inline:auto}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-3{margin-left:calc(var(--spacing) * 3)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-12{height:calc(var(--spacing) * 12)}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[90vh\\]{max-height:90vh}.min-h-8{min-height:calc(var(--spacing) * 8)}.w-12{width:calc(var(--spacing) * 12)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-3{gap:calc(var(--spacing) * 3)}.self-end{align-self:flex-end}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-cb{border-radius:var(--cb-radius)}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.rounded-t-cb{border-top-left-radius:var(--cb-radius);border-top-right-radius:var(--cb-radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-cb-border{border-color:var(--cb-border)}.border-cb-text\\/10{border-color:var(--cb-text)}@supports (color:color-mix(in lab,red,red)){.border-cb-text\\/10{border-color:color-mix(in oklab,var(--cb-text) 10%,transparent)}}.bg-cb-bg{background-color:var(--cb-bg)}.bg-cb-overlay{background-color:var(--cb-overlay)}.bg-cb-primary{background-color:var(--cb-primary)}.bg-cb-surface{background-color:var(--cb-surface)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-cb-on-primary{color:var(--cb-on-primary)}.text-cb-primary{color:var(--cb-primary)}.text-cb-text{color:var(--cb-text)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0_-4px_24px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 -4px 24px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}@media(hover:hover){.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:text-cb-primary-hover:hover{color:var(--cb-primary-hover)}}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-cb-primary:focus-visible{--tw-ring-color:var(--cb-primary)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media(min-width:40rem){.sm\\:right-auto{right:auto}.sm\\:mx-4{margin-inline:calc(var(--spacing) * 4)}.sm\\:max-w-xl{max-width:var(--container-xl)}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-4{gap:calc(var(--spacing) * 4)}.sm\\:rounded-cb{border-radius:var(--cb-radius)}.sm\\:p-4{padding:calc(var(--spacing) * 4)}.sm\\:p-6{padding:calc(var(--spacing) * 6)}.sm\\:p-8{padding:calc(var(--spacing) * 8)}.sm\\:px-8{padding-inline:calc(var(--spacing) * 8)}.sm\\:py-5{padding-block:calc(var(--spacing) * 5)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media(min-width:64rem){.lg\\:w-auto{width:auto}.lg\\:min-w-max{min-width:max-content}.lg\\:flex-row{flex-direction:row}.lg\\:items-center{align-items:center}.lg\\:gap-8{gap:calc(var(--spacing) * 8)}}}.cb-decision{border:1px solid var(--cb-primary);background:var(--cb-primary);width:100%;min-width:0;min-height:44px;color:var(--cb-on-primary);font:inherit;border-radius:10px;padding:10px 12px;font-size:13px;font-weight:600;line-height:1.4;transition:background .15s,box-shadow .15s}.cb-decision-primary:hover{background:var(--cb-primary-hover)}.cb-decision-outline{background:var(--cb-bg);color:var(--cb-primary)}.cb-decision-outline:hover{background:var(--cb-primary)}@supports (color:color-mix(in lab,red,red)){.cb-decision-outline:hover{background:color-mix(in srgb,var(--cb-primary) 6%,var(--cb-bg))}}.cb-decision-subtle{background:var(--cb-text)}@supports (color:color-mix(in lab,red,red)){.cb-decision-subtle{background:color-mix(in srgb,var(--cb-text) 5%,var(--cb-bg))}}.cb-decision-subtle{color:var(--cb-text);border-color:var(--cb-text)}@supports (color:color-mix(in lab,red,red)){.cb-decision-subtle{border-color:color-mix(in srgb,var(--cb-text) 20%,var(--cb-bg))}}.cb-decision-subtle:hover{background:var(--cb-text)}@supports (color:color-mix(in lab,red,red)){.cb-decision-subtle:hover{background:color-mix(in srgb,var(--cb-text) 8%,var(--cb-bg))}}.cb-decision:disabled{opacity:.6;cursor:not-allowed}.cb-decision:focus-visible,.cb-settings:focus-visible{outline:2px solid var(--cb-text);outline-offset:3px}.cb-decisions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.cb-settings{width:100%;min-height:40px;color:var(--cb-text);font:inherit;text-underline-offset:4px;text-decoration:underline;-webkit-text-decoration-color:var(--cb-text);text-decoration-color:var(--cb-text);background:0 0;border:0;margin-top:12px;font-size:13px;font-weight:500;display:block}@supports (color:color-mix(in lab,red,red)){.cb-settings{-webkit-text-decoration-color:color-mix(in srgb,var(--cb-text) 30%,transparent);text-decoration-color:color-mix(in srgb,var(--cb-text) 30%,transparent)}}.cb-settings:hover{text-decoration-color:currentColor}.cb-intro-icon{width:46px;height:46px;color:var(--cb-primary);background:var(--cb-primary);border-radius:14px;justify-content:center;align-items:center;margin-bottom:20px;display:flex}@supports (color:color-mix(in lab,red,red)){.cb-intro-icon{background:color-mix(in srgb,var(--cb-primary) 9%,var(--cb-bg))}}.cb-controller{margin-bottom:4px;font-size:12px;display:block}.cb-purposes{margin-bottom:8px;display:block}.cb-bar-actions{flex-direction:column-reverse;display:flex}.cb-bar-actions .cb-decisions{min-width:300px}@media(max-width:359px){.cb-decisions{grid-template-columns:1fr}.cb-bar-actions .cb-decisions{min-width:0}}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(forced-colors:active){button{border:1px solid buttontext}button:focus-visible,a:focus-visible{outline-offset:3px;outline:2px solid highlight}[role=switch][aria-checked=true]{outline:2px solid highlight}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}';
1559
+ let N, ie;
1560
+ function yt(e) {
1561
+ ie !== e && (N == null || N(), N = void 0, ie = void 0, !(!e.autoBlock || e.preview) && (N = Zt(e), ie = e));
1562
+ }
1563
+ window.__cookieConsent && (yt(window.__cookieConsent), ut(window.__cookieConsent));
1564
+ let G, ae;
1565
+ function wt() {
1566
+ if (N == null || N(), N = void 0, ie = void 0, G == null || G(), G = void 0, !ae) {
1567
+ pe();
1568
+ return;
1569
+ }
1570
+ const { host: e, root: t, stopObserving: r } = ae;
1571
+ ae = void 0, r(), dt(null, t), Pe(e, !1), pe(), e.removeAttribute("style"), e.remove();
1572
+ }
1573
+ function Ee() {
1574
+ if (document.getElementById("cookie-consent-host") || !window.__cookieConsent) return;
1575
+ const e = Bt(window.__cookieConsent);
1576
+ if (window.__cookieConsent = e, yt(e), ut(e), e.preview || G || (G = rr(e)), e.auditMode) return;
1577
+ Ft(e.lang ?? "en"), e.customTexts && Dt(e.customTexts);
1578
+ const { host: t, root: r } = Cr(Er, e.theme);
1579
+ t.lang = e.lang;
1580
+ const i = cr(t, wt);
1581
+ ae = { host: t, root: r, stopObserving: i }, dt(/* @__PURE__ */ u(xr, { config: e }), r);
1582
+ }
1583
+ document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Ee, { once: !0 }) : Ee();
1584
+ function Sr(e) {
1585
+ var t;
1586
+ e.persisted && ((t = window.__cookieConsent) != null && t.strictCsp) ? window.location.reload() : e.persisted && Ee();
1587
+ }
1588
+ window.addEventListener("pagehide", wt);
1589
+ window.addEventListener("pageshow", Sr);
1590
+ export {
1591
+ Ee as init,
1592
+ wt as teardown
1593
+ };