PageSourceSearch

https://www.lge.co.kr/libs/react-dom-bridge/SmartViewComponentRenderer-DBRWyJeF.js

js lge.co.kr collected 2026-09-24 08:35:49 UTC 80,327 bytes, 2,704 lines download raw bytes

1import { r as g, g as ue, a as Me, j as m, m as Ke } from "./framer-motion-D8rsjUzR.js";
2import { g as Re, s as Ie, i as je, G as de, R as Je, S as ce, a as Qe, b as et, P as tt, c as nt, d as rt } from "./smartview.wc-dSljq8Ag.js";
3import { r as it } from "./lottie-web-DsPOioe5.js";
4const at = (e) => {
5  const n = e.toLowerCase();
6  return {
7    isApp: /lgeapp/i.test(n),
8    isIOS: /iphone|ipod|ipad/i.test(n),
9    isIPAD: /ipad/i.test(n),
10    isAndroid: /android/i.test(n),
11    isMobile: /mobile|android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(n),
12    isChrome: /ischrome|crios/i.test(n),
13    isTablet: /tablet|ipad/i.test(n),
14    isDesktop: !/mobile|tablet|ipad/i.test(n)
15  };
16}, ot = () => {
17  var l;
18  const e = ((l = window == null ? void 0 : window.navigator) == null ? void 0 : l.userAgent) || "", n = at(e), a = n.isIPAD ? n.isIPAD : /Macintosh/i.test(e) && (navigator == null ? void 0 : navigator.maxTouchPoints) > 1, s = n.isApp ? !1 : n.isTablet || a, d = !n.isApp && !s && !n.isMobile;
19  return { ...n, isIPAD: a, isTablet: s, isDesktop: d };
20};
21function st() {
22  const [e, n] = g.useState({
23    isAndroid: !1,
24    isIPAD: !1,
25    isApp: !1,
26    isChrome: !1,
27    isDesktop: !1,
28    isIOS: !1,
29    isMobile: !1,
30    isTablet: !1,
31    userAgentParsed: !1
32  });
33  return g.useEffect(() => {
34    n({ ...ot(), userAgentParsed: !0 });
35  }, []), { ua: e };
36}
37function lt({
38  delaySeconds: e = 1.5,
39  closeDelaySeconds: n = 2.5,
40  selectors: a = {
41    wrapper: ".ins-preview-wrapper",
42    closeFor1DayButton: ".ins-custom-do-now-show-again-button",
43    closeButton: ".ins-custom-close-button",
44    xButton: ".ins-element-close-button"
45  },
46  onPopupDetected: s,
47  onPopupClosed: d
48} = {}) {
49  const [l, u] = g.useState(!1), [o, r] = g.useState(!0), i = g.useRef(), c = g.useRef(), _ = g.useCallback(() => {
50    r(!0), d == null || d(), c.current = setTimeout(() => {
51      r(!1);
52    }, n * 1e3);
53  }, [n, d]), E = g.useCallback(() => {
54    const v = document.querySelector(a.wrapper);
55    if (v) {
56      u(!0), r(!0), s == null || s();
57      const T = v.querySelector(a.closeFor1DayButton), p = v.querySelector(a.closeButton), b = v.querySelector(a.xButton);
58      return T == null || T.addEventListener("click", _), p == null || p.addEventListener("click", _), b == null || b.addEventListener("click", _), () => {
59        T == null || T.removeEventListener("click", _), p == null || p.removeEventListener("click", _), b == null || b.removeEventListener("click", _);
60      };
61    } else
62      u(!1), r(!1);
63  }, [a, _, s]);
64  return g.useEffect(() => (i.current = setTimeout(() => E(), e * 1e3), () => {
65    i.current && clearTimeout(i.current), c.current && clearTimeout(c.current);
66    const v = document.querySelector(a.wrapper);
67    if (v) {
68      const T = v.querySelector(a.closeFor1DayButton), p = v.querySelector(a.closeButton), b = v.querySelector(a.xButton);
69      T == null || T.removeEventListener("click", _), p == null || p.removeEventListener("click", _), b == null || b.removeEventListener("click", _);
70    }
71  }), [e, a, E, _]), {
72    isPopupVisible: l,
73    shouldHideContent: o
74  };
75}
76const ie = ["SEARCH", "EVENT"], ct = (e, n) => e === "PDP" && !Je.includes(n) ? !1 : de.includes(n), ut = (e, n) => e === "PDP" ? !0 : n, dt = (e) => {
77  var a;
78  const n = (a = e.smartViewInfo) == null ? void 0 : a.isBuyGuideShown;
79  return n ? Object.entries(n).some(([s, d]) => s && d) : !1;
80}, ft = (e) => {
81  var n;
82  return !((n = e.smartViewInfo) != null && n.pdpExploreHistory);
83}, _t = (e, n, a) => {
84  var o, r;
85  if (!a) return !1;
86  const s = e.smartViewInfo, d = (o = s.pdpExploreHistory) == null ? void 0 : o[n], l = (d == null ? void 0 : d.modelIdList) ?? [], u = (r = s.isBuyGuideShown) == null ? void 0 : r[n];
87  return !(d != null && d.isShown) && l.length >= 2 && (!s.isBuyGuideShown || !u);
88}, ht = (e, n, a, s) => {
89  const { shouldHideContent: d } = lt({
90    delaySeconds: n === "PDP" ? 1.5 : 6
91  }), l = g.useRef(!1), [u, o] = g.useState(!1), r = g.useCallback(
92    (c) => {
93      if (!a) return !1;
94      let _ = Re(ce);
95      return _ = Ie(_, e), dt(_) ? !1 : ie.includes(c) ? ft(_) : c === "PDP" ? _t(_, a, s) : !1;
96    },
97    [a, e, s]
98  ), i = g.useCallback(
99    (c, _) => !(!ct(c, _) || !r(c) || !ut(c, l.current) || je() || d),
100    [r, d]
101  );
102  return g.useEffect(() => {
103    if (n && e && a && a && de.includes(a)) {
104      const c = () => {
105        l.current || (l.current = !0, o(i(n, a)), window.removeEventListener("scroll", c));
106      };
107      return ie.includes(n) && window.addEventListener("scroll", c), o(i(n, a)), () => {
108        ie.includes(n) && window.removeEventListener("scroll", c);
109      };
110    }
111  }, [n, e, a, s, i]), {
112    isOpenState: u
113  };
114}, De = ({
115  trigger: e,
116  thinkingDuration: n = 2e3
117}) => {
118  const [a, s] = g.useState(!1), [d, l] = g.useState(!1);
119  return g.useEffect(() => {
120    e && (s(!0), l(!1));
121  }, [e]), g.useEffect(() => {
122    if (a) {
123      const u = setTimeout(() => {
124        s(!1), je() || l(!0);
125      }, n);
126      return () => clearTimeout(u);
127    }
128  }, [a, n]), {
129    isShowThinking: a,
130    isShowContent: d
131  };
132};
133var ae = { exports: {} };
134/*!
135	Copyright (c) 2018 Jed Watson.
136	Licensed under the MIT License (MIT), see
137	http://jedwatson.github.io/classnames
138*/
139var fe;
140function pt() {
141  return fe || (fe = 1, function(e) {
142    (function() {
143      var n = {}.hasOwnProperty;
144      function a() {
145        for (var l = "", u = 0; u < arguments.length; u++) {
146          var o = arguments[u];
147          o && (l = d(l, s.call(this, o)));
148        }
149        return l;
150      }
151      function s(l) {
152        if (typeof l == "string" || typeof l == "number")
153          return this && this[l] || l;
154        if (typeof l != "object")
155          return "";
156        if (Array.isArray(l))
157          return a.apply(this, l);
158        if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
159          return l.toString();
160        var u = "";
161        for (var o in l)
162          n.call(l, o) && l[o] && (u = d(u, this && this[o] || o));
163        return u;
164      }
165      function d(l, u) {
166        return u ? l ? l + " " + u : l + u : l;
167      }
168      e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
169    })();
170  }(ae)), ae.exports;
171}
172var mt = pt();
173const j = /* @__PURE__ */ ue(mt);
174var X = {}, z = {}, Q = {}, _e;
175function gt() {
176  if (_e) return Q;
177  _e = 1, Object.defineProperty(Q, "__esModule", { value: !0 }), Q.default = T;
178  var e = "html", n = "head", a = "body", s = /<([a-zA-Z]+[0-9]?)/, d = /<head[^]*>/i, l = /<body[^]*>/i, u = function(p, b) {
179    throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
180  }, o = function(p, b) {
181    throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
182  }, r = typeof window == "object" && window.DOMParser;
183  if (typeof r == "function") {
184    var i = new r(), c = "text/html";
185    o = function(p, b) {
186      return b && (p = "<".concat(b, ">").concat(p, "</").concat(b, ">")), i.parseFromString(p, c);
187    }, u = o;
188  }
189  if (typeof document == "object" && document.implementation) {
190    var _ = document.implementation.createHTMLDocument();
191    u = function(p, b) {
192      if (b) {
193        var x = _.documentElement.querySelector(b);
194        return x && (x.innerHTML = p), _;
195      }
196      return _.documentElement.innerHTML = p, _;
197    };
198  }
199  var E = typeof document == "object" && document.createElement("template"), v;
200  E && E.content && (v = function(p) {
201    return E.innerHTML = p, E.content.childNodes;
202  });
203  function T(p) {
204    var b, x, y = p.match(s), k = y && y[1] ? y[1].toLowerCase() : "";
205    switch (k) {
206      case e: {
207        var O = o(p);
208        if (!d.test(p)) {
209          var t = O.querySelector(n);
210          (b = t == null ? void 0 : t.parentNode) === null || b === void 0 || b.removeChild(t);
211        }
212        if (!l.test(p)) {
213          var t = O.querySelector(a);
214          (x = t == null ? void 0 : t.parentNode) === null || x === void 0 || x.removeChild(t);
215        }
216        return O.querySelectorAll(e);
217      }
218      case n:
219      case a: {
220        var f = u(p).querySelectorAll(k);
221        return l.test(p) && d.test(p) ? f[0].parentNode.childNodes : f;
222      }
223      // low-level tag or text
224      default: {
225        if (v)
226          return v(p);
227        var t = u(p, a).querySelector(a);
228        return t.childNodes;
229      }
230    }
231  }
232  return Q;
233}
234var W = {}, B = {}, oe = {}, he;
235function Le() {
236  return he || (he = 1, function(e) {
237    Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
238    var n;
239    (function(s) {
240      s.Root = "root", s.Text = "text", s.Directive = "directive", s.Comment = "comment", s.Script = "script", s.Style = "style", s.Tag = "tag", s.CDATA = "cdata", s.Doctype = "doctype";
241    })(n = e.ElementType || (e.ElementType = {}));
242    function a(s) {
243      return s.type === n.Tag || s.type === n.Script || s.type === n.Style;
244    }
245    e.isTag = a, e.Root = n.Root, e.Text = n.Text, e.Directive = n.Directive, e.Comment = n.Comment, e.Script = n.Script, e.Style = n.Style, e.Tag = n.Tag, e.CDATA = n.CDATA, e.Doctype = n.Doctype;
246  }(oe)), oe;
247}
248var C = {}, pe;
249function me() {
250  if (pe) return C;
251  pe = 1;
252  var e = C && C.__extends || /* @__PURE__ */ function() {
253    var t = function(f, h) {
254      return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, N) {
255        w.__proto__ = N;
256      } || function(w, N) {
257        for (var P in N) Object.prototype.hasOwnProperty.call(N, P) && (w[P] = N[P]);
258      }, t(f, h);
259    };
260    return function(f, h) {
261      if (typeof h != "function" && h !== null)
262        throw new TypeError("Class extends value " + String(h) + " is not a constructor or null");
263      t(f, h);
264      function w() {
265        this.constructor = f;
266      }
267      f.prototype = h === null ? Object.create(h) : (w.prototype = h.prototype, new w());
268    };
269  }(), n = C && C.__assign || function() {
270    return n = Object.assign || function(t) {
271      for (var f, h = 1, w = arguments.length; h < w; h++) {
272        f = arguments[h];
273        for (var N in f) Object.prototype.hasOwnProperty.call(f, N) && (t[N] = f[N]);
274      }
275      return t;
276    }, n.apply(this, arguments);
277  };
278  Object.defineProperty(C, "__esModule", { value: !0 }), C.cloneNode = C.hasChildren = C.isDocument = C.isDirective = C.isComment = C.isText = C.isCDATA = C.isTag = C.Element = C.Document = C.CDATA = C.NodeWithChildren = C.ProcessingInstruction = C.Comment = C.Text = C.DataNode = C.Node = void 0;
279  var a = /* @__PURE__ */ Le(), s = (
280    /** @class */
281    function() {
282      function t() {
283        this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
284      }
285      return Object.defineProperty(t.prototype, "parentNode", {
286        // Read-write aliases for properties
287        /**
288         * Same as {@link parent}.
289         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
290         */
291        get: function() {
292          return this.parent;
293        },
294        set: function(f) {
295          this.parent = f;
296        },
297        enumerable: !1,
298        configurable: !0
299      }), Object.defineProperty(t.prototype, "previousSibling", {
300        /**
301         * Same as {@link prev}.
302         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
303         */
304        get: function() {
305          return this.prev;
306        },
307        set: function(f) {
308          this.prev = f;
309        },
310        enumerable: !1,
311        configurable: !0
312      }), Object.defineProperty(t.prototype, "nextSibling", {
313        /**
314         * Same as {@link next}.
315         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
316         */
317        get: function() {
318          return this.next;
319        },
320        set: function(f) {
321          this.next = f;
322        },
323        enumerable: !1,
324        configurable: !0
325      }), t.prototype.cloneNode = function(f) {
326        return f === void 0 && (f = !1), k(this, f);
327      }, t;
328    }()
329  );
330  C.Node = s;
331  var d = (
332    /** @class */
333    function(t) {
334      e(f, t);
335      function f(h) {
336        var w = t.call(this) || this;
337        return w.data = h, w;
338      }
339      return Object.defineProperty(f.prototype, "nodeValue", {
340        /**
341         * Same as {@link data}.
342         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
343         */
344        get: function() {
345          return this.data;
346        },
347        set: function(h) {
348          this.data = h;
349        },
350        enumerable: !1,
351        configurable: !0
352      }), f;
353    }(s)
354  );
355  C.DataNode = d;
356  var l = (
357    /** @class */
358    function(t) {
359      e(f, t);
360      function f() {
361        var h = t !== null && t.apply(this, arguments) || this;
362        return h.type = a.ElementType.Text, h;
363      }
364      return Object.defineProperty(f.prototype, "nodeType", {
365        get: function() {
366          return 3;
367        },
368        enumerable: !1,
369        configurable: !0
370      }), f;
371    }(d)
372  );
373  C.Text = l;
374  var u = (
375    /** @class */
376    function(t) {
377      e(f, t);
378      function f() {
379        var h = t !== null && t.apply(this, arguments) || this;
380        return h.type = a.ElementType.Comment, h;
381      }
382      return Object.defineProperty(f.prototype, "nodeType", {
383        get: function() {
384          return 8;
385        },
386        enumerable: !1,
387        configurable: !0
388      }), f;
389    }(d)
390  );
391  C.Comment = u;
392  var o = (
393    /** @class */
394    function(t) {
395      e(f, t);
396      function f(h, w) {
397        var N = t.call(this, w) || this;
398        return N.name = h, N.type = a.ElementType.Directive, N;
399      }
400      return Object.defineProperty(f.prototype, "nodeType", {
401        get: function() {
402          return 1;
403        },
404        enumerable: !1,
405        configurable: !0
406      }), f;
407    }(d)
408  );
409  C.ProcessingInstruction = o;
410  var r = (
411    /** @class */
412    function(t) {
413      e(f, t);
414      function f(h) {
415        var w = t.call(this) || this;
416        return w.children = h, w;
417      }
418      return Object.defineProperty(f.prototype, "firstChild", {
419        // Aliases
420        /** First child of the node. */
421        get: function() {
422          var h;
423          return (h = this.children[0]) !== null && h !== void 0 ? h : null;
424        },
425        enumerable: !1,
426        configurable: !0
427      }), Object.defineProperty(f.prototype, "lastChild", {
428        /** Last child of the node. */
429        get: function() {
430          return this.children.length > 0 ? this.children[this.children.length - 1] : null;
431        },
432        enumerable: !1,
433        configurable: !0
434      }), Object.defineProperty(f.prototype, "childNodes", {
435        /**
436         * Same as {@link children}.
437         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
438         */
439        get: function() {
440          return this.children;
441        },
442        set: function(h) {
443          this.children = h;
444        },
445        enumerable: !1,
446        configurable: !0
447      }), f;
448    }(s)
449  );
450  C.NodeWithChildren = r;
451  var i = (
452    /** @class */
453    function(t) {
454      e(f, t);
455      function f() {
456        var h = t !== null && t.apply(this, arguments) || this;
457        return h.type = a.ElementType.CDATA, h;
458      }
459      return Object.defineProperty(f.prototype, "nodeType", {
460        get: function() {
461          return 4;
462        },
463        enumerable: !1,
464        configurable: !0
465      }), f;
466    }(r)
467  );
468  C.CDATA = i;
469  var c = (
470    /** @class */
471    function(t) {
472      e(f, t);
473      function f() {
474        var h = t !== null && t.apply(this, arguments) || this;
475        return h.type = a.ElementType.Root, h;
476      }
477      return Object.defineProperty(f.prototype, "nodeType", {
478        get: function() {
479          return 9;
480        },
481        enumerable: !1,
482        configurable: !0
483      }), f;
484    }(r)
485  );
486  C.Document = c;
487  var _ = (
488    /** @class */
489    function(t) {
490      e(f, t);
491      function f(h, w, N, P) {
492        N === void 0 && (N = []), P === void 0 && (P = h === "script" ? a.ElementType.Script : h === "style" ? a.ElementType.Style : a.ElementType.Tag);
493        var M = t.call(this, N) || this;
494        return M.name = h, M.attribs = w, M.type = P, M;
495      }
496      return Object.defineProperty(f.prototype, "nodeType", {
497        get: function() {
498          return 1;
499        },
500        enumerable: !1,
501        configurable: !0
502      }), Object.defineProperty(f.prototype, "tagName", {
503        // DOM Level 1 aliases
504        /**
505         * Same as {@link name}.
506         * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
507         */
508        get: function() {
509          return this.name;
510        },
511        set: function(h) {
512          this.name = h;
513        },
514        enumerable: !1,
515        configurable: !0
516      }), Object.defineProperty(f.prototype, "attributes", {
517        get: function() {
518          var h = this;
519          return Object.keys(this.attribs).map(function(w) {
520            var N, P;
521            return {
522              name: w,
523              value: h.attribs[w],
524              namespace: (N = h["x-attribsNamespace"]) === null || N === void 0 ? void 0 : N[w],
525              prefix: (P = h["x-attribsPrefix"]) === null || P === void 0 ? void 0 : P[w]
526            };
527          });
528        },
529        enumerable: !1,
530        configurable: !0
531      }), f;
532    }(r)
533  );
534  C.Element = _;
535  function E(t) {
536    return (0, a.isTag)(t);
537  }
538  C.isTag = E;
539  function v(t) {
540    return t.type === a.ElementType.CDATA;
541  }
542  C.isCDATA = v;
543  function T(t) {
544    return t.type === a.ElementType.Text;
545  }
546  C.isText = T;
547  function p(t) {
548    return t.type === a.ElementType.Comment;
549  }
550  C.isComment = p;
551  function b(t) {
552    return t.type === a.ElementType.Directive;
553  }
554  C.isDirective = b;
555  function x(t) {
556    return t.type === a.ElementType.Root;
557  }
558  C.isDocument = x;
559  function y(t) {
560    return Object.prototype.hasOwnProperty.call(t, "children");
561  }
562  C.hasChildren = y;
563  function k(t, f) {
564    f === void 0 && (f = !1);
565    var h;
566    if (T(t))
567      h = new l(t.data);
568    else if (p(t))
569      h = new u(t.data);
570    else if (E(t)) {
571      var w = f ? O(t.children) : [], N = new _(t.name, n({}, t.attribs), w);
572      w.forEach(function(A) {
573        return A.parent = N;
574      }), t.namespace != null && (N.namespace = t.namespace), t["x-attribsNamespace"] && (N["x-attribsNamespace"] = n({}, t["x-attribsNamespace"])), t["x-attribsPrefix"] && (N["x-attribsPrefix"] = n({}, t["x-attribsPrefix"])), h = N;
575    } else if (v(t)) {
576      var w = f ? O(t.children) : [], P = new i(w);
577      w.forEach(function(S) {
578        return S.parent = P;
579      }), h = P;
580    } else if (x(t)) {
581      var w = f ? O(t.children) : [], M = new c(w);
582      w.forEach(function(S) {
583        return S.parent = M;
584      }), t["x-mode"] && (M["x-mode"] = t["x-mode"]), h = M;
585    } else if (b(t)) {
586      var L = new o(t.name, t.data);
587      t["x-name"] != null && (L["x-name"] = t["x-name"], L["x-publicId"] = t["x-publicId"], L["x-systemId"] = t["x-systemId"]), h = L;
588    } else
589      throw new Error("Not implemented yet: ".concat(t.type));
590    return h.startIndex = t.startIndex, h.endIndex = t.endIndex, t.sourceCodeLocation != null && (h.sourceCodeLocation = t.sourceCodeLocation), h;
591  }
592  C.cloneNode = k;
593  function O(t) {
594    for (var f = t.map(function(w) {
595      return k(w, !0);
596    }), h = 1; h < f.length; h++)
597      f[h].prev = f[h - 1], f[h - 1].next = f[h];
598    return f;
599  }
600  return C;
601}
602var ge;
603function Ge() {
604  return ge || (ge = 1, function(e) {
605    var n = B && B.__createBinding || (Object.create ? function(o, r, i, c) {
606      c === void 0 && (c = i);
607      var _ = Object.getOwnPropertyDescriptor(r, i);
608      (!_ || ("get" in _ ? !r.__esModule : _.writable || _.configurable)) && (_ = { enumerable: !0, get: function() {
609        return r[i];
610      } }), Object.defineProperty(o, c, _);
611    } : function(o, r, i, c) {
612      c === void 0 && (c = i), o[c] = r[i];
613    }), a = B && B.__exportStar || function(o, r) {
614      for (var i in o) i !== "default" && !Object.prototype.hasOwnProperty.call(r, i) && n(r, o, i);
615    };
616    Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
617    var s = /* @__PURE__ */ Le(), d = /* @__PURE__ */ me();
618    a(/* @__PURE__ */ me(), e);
619    var l = {
620      withStartIndices: !1,
621      withEndIndices: !1,
622      xmlMode: !1
623    }, u = (
624      /** @class */
625      function() {
626        function o(r, i, c) {
627          this.dom = [], this.root = new d.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof i == "function" && (c = i, i = l), typeof r == "object" && (i = r, r = void 0), this.callback = r ?? null, this.options = i ?? l, this.elementCB = c ?? null;
628        }
629        return o.prototype.onparserinit = function(r) {
630          this.parser = r;
631        }, o.prototype.onreset = function() {
632          this.dom = [], this.root = new d.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
633        }, o.prototype.onend = function() {
634          this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
635        }, o.prototype.onerror = function(r) {
636          this.handleCallback(r);
637        }, o.prototype.onclosetag = function() {
638          this.lastNode = null;
639          var r = this.tagStack.pop();
640          this.options.withEndIndices && (r.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(r);
641        }, o.prototype.onopentag = function(r, i) {
642          var c = this.options.xmlMode ? s.ElementType.Tag : void 0, _ = new d.Element(r, i, void 0, c);
643          this.addNode(_), this.tagStack.push(_);
644        }, o.prototype.ontext = function(r) {
645          var i = this.lastNode;
646          if (i && i.type === s.ElementType.Text)
647            i.data += r, this.options.withEndIndices && (i.endIndex = this.parser.endIndex);
648          else {
649            var c = new d.Text(r);
650            this.addNode(c), this.lastNode = c;
651          }
652        }, o.prototype.oncomment = function(r) {
653          if (this.lastNode && this.lastNode.type === s.ElementType.Comment) {
654            this.lastNode.data += r;
655            return;
656          }
657          var i = new d.Comment(r);
658          this.addNode(i), this.lastNode = i;
659        }, o.prototype.oncommentend = function() {
660          this.lastNode = null;
661        }, o.prototype.oncdatastart = function() {
662          var r = new d.Text(""), i = new d.CDATA([r]);
663          this.addNode(i), r.parent = i, this.lastNode = r;
664        }
664, o.prototype.oncdataend = function() {
665          this.lastNode = null;
666        }, o.prototype.onprocessinginstruction = function(r, i) {
667          var c = new d.ProcessingInstruction(r, i);
668          this.addNode(c);
669        }, o.prototype.handleCallback = function(r) {
670          if (typeof this.callback == "function")
671            this.callback(r, this.dom);
672          else if (r)
673            throw r;
674        }, o.prototype.addNode = function(r) {
675          var i = this.tagStack[this.tagStack.length - 1], c = i.children[i.children.length - 1];
676          this.options.withStartIndices && (r.startIndex = this.parser.startIndex), this.options.withEndIndices && (r.endIndex = this.parser.endIndex), i.children.push(r), c && (r.prev = c, c.next = r), r.parent = i, this.lastNode = null;
677        }, o;
678      }()
679    );
680    e.DomHandler = u, e.default = u;
681  }(B)), B;
682}
683var se = {}, ve;
684function vt() {
685  return ve || (ve = 1, function(e) {
686    Object.defineProperty(e, "__esModule", { value: !0 }), e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
687      "animateMotion",
688      "animateTransform",
689      "clipPath",
690      "feBlend",
691      "feColorMatrix",
692      "feComponentTransfer",
693      "feComposite",
694      "feConvolveMatrix",
695      "feDiffuseLighting",
696      "feDisplacementMap",
697      "feDropShadow",
698      "feFlood",
699      "feFuncA",
700      "feFuncB",
701      "feFuncG",
702      "feFuncR",
703      "feGaussianBlur",
704      "feImage",
705      "feMerge",
706      "feMergeNode",
707      "feMorphology",
708      "feOffset",
709      "fePointLight",
710      "feSpecularLighting",
711      "feSpotLight",
712      "feTile",
713      "feTurbulence",
714      "foreignObject",
715      "linearGradient",
716      "radialGradient",
717      "textPath"
718    ], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(n, a) {
719      return n[a.toLowerCase()] = a, n;
720    }, {});
721  }(se)), se;
722}
723var ye;
724function yt() {
725  if (ye) return W;
726  ye = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.formatAttributes = s, W.formatDOM = l;
727  var e = /* @__PURE__ */ Ge(), n = vt();
728  function a(u) {
729    return n.CASE_SENSITIVE_TAG_NAMES_MAP[u];
730  }
731  function s(u) {
732    for (var o = {}, r = 0, i = u.length; r < i; r++) {
733      var c = u[r];
734      o[c.name] = c.value;
735    }
736    return o;
737  }
738  function d(u) {
739    u = u.toLowerCase();
740    var o = a(u);
741    return o || u;
742  }
743  function l(u, o, r) {
744    o === void 0 && (o = null);
745    for (var i = [], c, _ = 0, E = u.length; _ < E; _++) {
746      var v = u[_];
747      switch (v.nodeType) {
748        case 1: {
749          var T = d(v.nodeName);
750          c = new e.Element(T, s(v.attributes)), c.children = l(
751            // template children are on content
752            T === "template" ? v.content.childNodes : v.childNodes,
753            c
754          );
755          break;
756        }
757        case 3:
758          c = new e.Text(v.nodeValue);
759          break;
760        case 8:
761          c = new e.Comment(v.nodeValue);
762          break;
763        default:
764          continue;
765      }
766      var p = i[_ - 1] || null;
767      p && (p.next = c), c.parent = o, c.prev = p, c.next = null, i.push(c);
768    }
769    return r && (c = new e.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), c.next = i[0] || null, c.parent = o, i.unshift(c), i[1] && (i[1].prev = i[0])), i;
770  }
771  return W;
772}
773var be;
774function bt() {
775  if (be) return z;
776  be = 1;
777  var e = z && z.__importDefault || function(l) {
778    return l && l.__esModule ? l : { default: l };
779  };
780  Object.defineProperty(z, "__esModule", { value: !0 }), z.default = d;
781  var n = e(gt()), a = yt(), s = /<(![a-zA-Z\s]+)>/;
782  function d(l) {
783    if (typeof l != "string")
784      throw new TypeError("First argument must be a string");
785    if (!l)
786      return [];
787    var u = l.match(s), o = u ? u[1] : void 0;
788    return (0, a.formatDOM)((0, n.default)(l), null, o);
789  }
790  return z;
791}
792var ee = {}, I = {}, Y = {}, Ee;
793function Et() {
794  if (Ee) return Y;
795  Ee = 1;
796  var e = 0;
797  Y.SAME = e;
798  var n = 1;
799  return Y.CAMELCASE = n, Y.possibleStandardNames = {
800    accept: 0,
801    acceptCharset: 1,
802    "accept-charset": "acceptCharset",
803    accessKey: 1,
804    action: 0,
805    allowFullScreen: 1,
806    alt: 0,
807    as: 0,
808    async: 0,
809    autoCapitalize: 1,
810    autoComplete: 1,
811    autoCorrect: 1,
812    autoFocus: 1,
813    autoPlay: 1,
814    autoSave: 1,
815    capture: 0,
816    cellPadding: 1,
817    cellSpacing: 1,
818    challenge: 0,
819    charSet: 1,
820    checked: 0,
821    children: 0,
822    cite: 0,
823    class: "className",
824    classID: 1,
825    className: 1,
826    cols: 0,
827    colSpan: 1,
828    content: 0,
829    contentEditable: 1,
830    contextMenu: 1,
831    controls: 0,
832    controlsList: 1,
833    coords: 0,
834    crossOrigin: 1,
835    dangerouslySetInnerHTML: 1,
836    data: 0,
837    dateTime: 1,
838    default: 0,
839    defaultChecked: 1,
840    defaultValue: 1,
841    defer: 0,
842    dir: 0,
843    disabled: 0,
844    disablePictureInPicture: 1,
845    disableRemotePlayback: 1,
846    download: 0,
847    draggable: 0,
848    encType: 1,
849    enterKeyHint: 1,
850    for: "htmlFor",
851    form: 0,
852    formMethod: 1,
853    formAction: 1,
854    formEncType: 1,
855    formNoValidate: 1,
856    formTarget: 1,
857    frameBorder: 1,
858    headers: 0,
859    height: 0,
860    hidden: 0,
861    high: 0,
862    href: 0,
863    hrefLang: 1,
864    htmlFor: 1,
865    httpEquiv: 1,
866    "http-equiv": "httpEquiv",
867    icon: 0,
868    id: 0,
869    innerHTML: 1,
870    inputMode: 1,
871    integrity: 0,
872    is: 0,
873    itemID: 1,
874    itemProp: 1,
875    itemRef: 1,
876    itemScope: 1,
877    itemType: 1,
878    keyParams: 1,
879    keyType: 1,
880    kind: 0,
881    label: 0,
882    lang: 0,
883    list: 0,
884    loop: 0,
885    low: 0,
886    manifest: 0,
887    marginWidth: 1,
888    marginHeight: 1,
889    max: 0,
890    maxLength: 1,
891    media: 0,
892    mediaGroup: 1,
893    method: 0,
894    min: 0,
895    minLength: 1,
896    multiple: 0,
897    muted: 0,
898    name: 0,
899    noModule: 1,
900    nonce: 0,
901    noValidate: 1,
902    open: 0,
903    optimum: 0,
904    pattern: 0,
905    placeholder: 0,
906    playsInline: 1,
907    poster: 0,
908    preload: 0,
909    profile: 0,
910    radioGroup: 1,
911    readOnly: 1,
912    referrerPolicy: 1,
913    rel: 0,
914    required: 0,
915    reversed: 0,
916    role: 0,
917    rows: 0,
918    rowSpan: 1,
919    sandbox: 0,
920    scope: 0,
921    scoped: 0,
922    scrolling: 0,
923    seamless: 0,
924    selected: 0,
925    shape: 0,
926    size: 0,
927    sizes: 0,
928    span: 0,
929    spellCheck: 1,
930    src: 0,
931    srcDoc: 1,
932    srcLang: 1,
933    srcSet: 1,
934    start: 0,
935    step: 0,
936    style: 0,
937    summary: 0,
938    tabIndex: 1,
939    target: 0,
940    title: 0,
941    type: 0,
942    useMap: 1,
943    value: 0,
944    width: 0,
945    wmode: 0,
946    wrap: 0,
947    about: 0,
948    accentHeight: 1,
949    "accent-height": "accentHeight",
950    accumulate: 0,
951    additive: 0,
952    alignmentBaseline: 1,
953    "alignment-baseline": "alignmentBaseline",
954    allowReorder: 1,
955    alphabetic: 0,
956    amplitude: 0,
957    arabicForm: 1,
958    "arabic-form": "arabicForm",
959    ascent: 0,
960    attributeName: 1,
961    attributeType: 1,
962    autoReverse: 1,
963    azimuth: 0,
964    baseFrequency: 1,
965    baselineShift: 1,
966    "baseline-shift": "baselineShift",
967    baseProfile: 1,
968    bbox: 0,
969    begin: 0,
970    bias: 0,
971    by: 0,
972    calcMode: 1,
973    capHeight: 1,
974    "cap-height": "capHeight",
975    clip: 0,
976    clipPath: 1,
977    "clip-path": "clipPath",
978    clipPathUnits: 1,
979    clipRule: 1,
980    "clip-rule": "clipRule",
981    color: 0,
982    colorInterpolation: 1,
983    "color-interpolation": "colorInterpolation",
984    colorInterpolationFilters: 1,
985    "color-interpolation-filters": "colorInterpolationFilters",
986    colorProfile: 1,
987    "color-profile": "colorProfile",
988    colorRendering: 1,
989    "color-rendering": "colorRendering",
990    contentScriptType: 1,
991    contentStyleType: 1,
992    cursor: 0,
993    cx: 0,
994    cy: 0,
995    d: 0,
996    datatype: 0,
997    decelerate: 0,
998    descent: 0,
999    diffuseConstant: 1,
1000    direction: 0,
1001    display: 0,
1002    divisor: 0,
1003    dominantBaseline: 1,
1004    "dominant-baseline": "dominantBaseline",
1005    dur: 0,
1006    dx: 0,
1007    dy: 0,
1008    edgeMode: 1,
1009    elevation: 0,
1010    enableBackground: 1,
1011    "enable-background": "enableBackground",
1012    end: 0,
1013    exponent: 0,
1014    externalResourcesRequired: 1,
1015    fill: 0,
1016    fillOpacity: 1,
1017    "fill-opacity": "fillOpacity",
1018    fillRule: 1,
1019    "fill-rule": "fillRule",
1020    filter: 0,
1021    filterRes: 1,
1022    filterUnits: 1,
1023    floodOpacity: 1,
1024    "flood-opacity": "floodOpacity",
1025    floodColor: 1,
1026    "flood-color": "floodColor",
1027    focusable: 0,
1028    fontFamily: 1,
1029    "font-family": "fontFamily",
1030    fontSize: 1,
1031    "font-size": "fontSize",
1032    fontSizeAdjust: 1,
1033    "font-size-adjust": "fontSizeAdjust",
1034    fontStretch: 1,
1035    "font-stretch": "fontStretch",
1036    fontStyle: 1,
1037    "font-style": "fontStyle",
1038    fontVariant: 1,
1039    "font-variant": "fontVariant",
1040    fontWeight: 1,
1041    "font-weight": "fontWeight",
1042    format: 0,
1043    from: 0,
1044    fx: 0,
1045    fy: 0,
1046    g1: 0,
1047    g2: 0,
1048    glyphName: 1,
1049    "glyph-name": "glyphName",
1050    glyphOrientationHorizontal: 1,
1051    "glyph-orientation-horizontal": "glyphOrientationHorizontal",
1052    glyphOrientationVertical: 1,
1053    "glyph-orientation-vertical": "glyphOrientationVertical",
1054    glyphRef: 1,
1055    gradientTransform: 1,
1056    gradientUnits: 1,
1057    hanging: 0,
1058    horizAdvX: 1,
1059    "horiz-adv-x": "horizAdvX",
1060    horizOriginX: 1,
1061    "horiz-origin-x": "horizOriginX",
1062    ideographic: 0,
1063    imageRendering: 1,
1064    "image-rendering": "imageRendering",
1065    in2: 0,
1066    in: 0,
1067    inlist: 0,
1068    intercept: 0,
1069    k1: 0,
1070    k2: 0,
1071    k3: 0,
1072    k4: 0,
1073    k: 0,
1074    kernelMatrix: 1,
1075    kernelUnitLength: 1,
1076    kerning: 0,
1077    keyPoints: 1,
1078    keySplines: 1,
1079    keyTimes: 1,
1080    lengthAdjust: 1,
1081    letterSpacing: 1,
1082    "letter-spacing": "letterSpacing",
1083    lightingColor: 1,
1084    "lighting-color": "lightingColor",
1085    limitingConeAngle: 1,
1086    local: 0,
1087    markerEnd: 1,
1088    "marker-end": "markerEnd",
1089    markerHeight: 1,
1090    markerMid: 1,
1091    "marker-mid": "markerMid",
1092    markerStart: 1,
1093    "marker-start": "markerStart",
1094    markerUnits: 1,
1095    markerWidth: 1,
1096    mask: 0,
1097    maskContentUnits: 1,
1098    maskUnits: 1,
1099    mathematical: 0,
1100    mode: 0,
1101    numOctaves: 1,
1102    offset: 0,
1103    opacity: 0,
1104    operator: 0,
1105    order: 0,
1106    orient: 0,
1107    orientation: 0,
1108    origin: 0,
1109    overflow: 0,
1110    overlinePosition: 1,
1111    "overline-position": "overlinePosition",
1112    overlineThickness: 1,
1113    "overline-thickness": "overlineThickness",
1114    paintOrder: 1,
1115    "paint-order": "paintOrder",
1116    panose1: 0,
1117    "panose-1": "panose1",
1118    pathLength: 1,
1119    patternContentUnits: 1,
1120    patternTransform: 1,
1121    patternUnits: 1,
1122    pointerEvents: 1,
1123    "pointer-events": "pointerEvents",
1124    points: 0,
1125    pointsAtX: 1,
1126    pointsAtY: 1,
1127    pointsAtZ: 1,
1128    prefix: 0,
1129    preserveAlpha: 1,
1130    preserveAspectRatio: 1,
1131    primitiveUnits: 1,
1132    property: 0,
1133    r: 0,
1134    radius: 0,
1135    refX: 1,
1136    refY: 1,
1137    renderingIntent: 1,
1138    "rendering-intent": "renderingIntent",
1139    repeatCount: 1,
1140    repeatDur: 1,
1141    requiredExtensions: 1,
1142    requiredFeatures: 1,
1143    resource: 0,
1144    restart: 0,
1145    result: 0,
1146    results: 0,
1147    rotate: 0,
1148    rx: 0,
1149    ry: 0,
1150    scale: 0,
1151    security: 0,
1152    seed: 0,
1153    shapeRendering: 1,
1154    "shape-rendering": "shapeRendering",
1155    slope: 0,
1156    spacing: 0,
1157    specularConstant: 1,
1158    specularExponent: 1,
1159    speed: 0,
1160    spreadMethod: 1,
1161    startOffset: 1,
1162    stdDeviation: 1,
1163    stemh: 0,
1164    stemv: 0,
1165    stitchTiles: 1,
1166    stopColor: 1,
1167    "stop-color": "stopColor",
1168    stopOpacity: 1,
1169    "stop-opacity": "stopOpacity",
1170    strikethroughPosition: 1,
1171    "strikethrough-position": "strikethroughPosition",
1172    strikethroughThickness: 1,
1173    "strikethrough-thickness": "strikethroughThickness",
1174    string: 0,
1175    stroke: 0,
1176    strokeDasharray: 1,
1177    "stroke-dasharray": "strokeDasharray",
1178    strokeDashoffset: 1,
1179    "stroke-dashoffset": "strokeDashoffset",
1180    strokeLinecap: 1,
1181    "stroke-linecap": "strokeLinecap",
1182    strokeLinejoin: 1,
1183    "stroke-linejoin": "strokeLinejoin",
1184    strokeMiterlimit: 1,
1185    "stroke-miterlimit": "strokeMiterlimit",
1186    strokeWidth: 1,
1187    "stroke-width": "strokeWidth",
1188    strokeOpacity: 1,
1189    "stroke-opacity": "strokeOpacity",
1190    suppressContentEditableWarning: 1,
1191    suppressHydrationWarning: 1,
1192    surfaceScale: 1,
1193    systemLanguage: 1,
1194    tableValues: 1,
1195    targetX: 1,
1196    targetY: 1,
1197    textAnchor: 1,
1198    "text-anchor": "textAnchor",
1199    textDecoration: 1,
1200    "text-decoration": "textDecoration",
1201    textLength: 1,
1202    textRendering: 1,
1203    "text-rendering": "textRendering",
1204    to: 0,
1205    transform: 0,
1206    typeof: 0,
1207    u1: 0,
1208    u2: 0,
1209    underlinePosition: 1,
1210    "underline-position": "underlinePosition",
1211    underlineThickness: 1,
1212    "underline-thickness": "underlineThickness",
1213    unicode: 0,
1214    unicodeBidi: 1,
1215    "unicode-bidi": "unicodeBidi",
1216    unicodeRange: 1,
1217    "unicode-range": "unicodeRange",
1218    unitsPerEm: 1,
1219    "units-per-em": "unitsPerEm",
1220    unselectable: 0,
1221    vAlphabetic: 1,
1222    "v-alphabetic": "vAlphabetic",
1223    values: 0,
1224    vectorEffect: 1,
1225    "vector-effect": "vectorEffect",
1226    version: 0,
1227    vertAdvY: 1,
1228    "vert-adv-y": "vertAdvY",
1229    vertOriginX: 1,
1230    "vert-origin-x": "vertOriginX",
1231    vertOriginY: 1,
1232    "vert-origin-y": "vertOriginY",
1233    vHanging: 1,
1234    "v-hanging": "vHanging",
1235    vIdeographic: 1,
1236    "v-ideographic": "vIdeographic",
1237    viewBox: 1,
1238    viewTarget: 1,
1239    visibility: 0,
1240    vMathematical: 1,
1241    "v-mathematical": "vMathematical",
1242    vocab: 0,
1243    widths: 0,
1244    wordSpacing: 1,
1245    "word-spacing": "wordSpacing",
1246    writingMode: 1,
1247    "writing-mode": "writingMode",
1248    x1: 0,
1249    x2: 0,
1250    x: 0,
1251    xChannelSelector: 1,
1252    xHeight: 1,
1253    "x-height": "xHeight",
1254    xlinkActuate: 1,
1255    "xlink:actuate": "xlinkActuate",
1256    xlinkArcrole: 1,
1257    "xlink:arcrole": "xlinkArcrole",
1258    xlinkHref: 1,
1259    "xlink:href": "xlinkHref",
1260    xlinkRole: 1,
1261    "xlink:role": "xlinkRole",
1262    xlinkShow: 1,
1263    "xlink:show": "xlinkShow",
1264    xlinkTitle: 1,
1265    "xlink:title": "xlinkTitle",
1266    xlinkType: 1,
1267    "xlink:type": "xlinkType",
1268    xmlBase: 1,
1269    "xml:base": "xmlBase",
1270    xmlLang: 1,
1271    "xml:lang": "xmlLang",
1272    xmlns: 0,
1273    "xml:space": "xmlSpace",
1274    xmlnsXlink: 1,
1275    "xmlns:xlink": "xmlnsXlink",
1276    xmlSpace: 1,
1277    y1: 0,
1278    y2: 0,
1279    y: 0,
1280    yChannelSelector: 1,
1281    z: 0,
1282    zoomAndPan: 1
1283  }, Y;
1284}
1285var we;
1286function wt() {
1287  if (we) return I;
1288  we = 1;
1289  const e = 0, n = 1, a = 2, s = 3, d = 4, l = 5, u = 6;
1290  function o(t) {
1291    return i.hasOwnProperty(t) ? i[t] : null;
1292  }
1293  function r(t, f, h, w, N, P, M) {
1294    this.acceptsBooleans = f === a || f === s || f === d, this.attributeName = w, this.attributeNamespace = N, this.mustUseProperty = h, this.propertyName = t, this.type = f, this.sanitizeURL = P, this.removeEmptyString = M;
1295  }
1296  const i = {};
1297  [
1298    "children",
1299    "dangerouslySetInnerHTML",
1300    // TODO: This prevents the assignment of defaultValue to regular
1301    // elements (not just inputs). Now that ReactDOMInput assigns to the
1302    // defaultValue property -- do we need this?
1303    "defaultValue",
1304    "defaultChecked",
1305    "innerHTML",
1306    "suppressContentEditableWarning",
1307    "suppressHydrationWarning",
1308    "style"
1309  ].forEach((t) => {
1310    i[t] = new r(
1311      t,
1312      e,
1313      !1,
1314      // mustUseProperty
1315      t,
1316      // attributeName
1317      null,
1318      // attributeNamespace
1319      !1,
1320      // sanitizeURL
1321      !1
1322      // removeEmptyString
1323    );
1324  }), [
1325    ["acceptCharset", "accept-charset"],
1326    ["className", "class"],
1327    ["htmlFor", "for"],
1328    ["httpEquiv", "http-equiv"]
1329  ].forEach(([t, f]) => {
1330    i[t] = new r(
1331      t,
1332      n,
1333      !1,
1334      // mustUseProperty
1335      f,
1336      // attributeName
1337      null,
1338      // attributeNamespace
1339      !1,
1340      // sanitizeURL
1341      !1
1342      // removeEmptyString
1343    );
1344  }), ["contentEditable", "draggable", "spellCheck", "value"].forEach((t) => {
1345    i[t] = new r(
1346      t,
1347      a,
1348      !1,
1349      // mustUseProperty
1350      t.toLowerCase(),
1351      // attributeName
1352      null,
1353      // attributeNamespace
1354      !1,
1355      // sanitizeURL
1356      !1
1357      // removeEmptyString
1358    );
1359  }), [
1360    "autoReverse",
1361    "externalResourcesRequired",
1362    "focusable",
1363    "preserveAlpha"
1364  ].forEach((t) => {
1365    i[t] = new r(
1366      t,
1367      a,
1368      !1,
1369      // mustUseProperty
1370      t,
1371      // attributeName
1372      null,
1373      // attributeNamespace
1374      !1,
1375      // sanitizeURL
1376      !1
1377      // removeEmptyString
1378    );
1379  }), [
1380    "allowFullScreen",
1381    "async",
1382    // Note: there is a special case that prevents it from being written to the DOM
1383    // on the client side because the browsers are inconsistent. Instead we call focus().
1384    "autoFocus",
1385    "autoPlay",
1386    "controls",
1387    "default",
1388    "defer",
1389    "disabled",
1390    "disablePictureInPicture",
1391    "disableRemotePlayback",
1392    "formNoValidate",
1393    "hidden",
1394    "loop",
1395    "noModule",
1396    "noValidate",
1397    "open",
1398    "playsInline",
1399    "readOnly",
1400    "required",
1401    "reversed",
1402    "scoped",
1403    "seamless",
1404    // Microdata
1405    "itemScope"
1406  ].forEach((t) => {
1407    i[t] = new r(
1408      t,
1409      s,
1410      !1,
1411      // mustUseProperty
1412      t.toLowerCase(),
1413      // attributeName
1414      null,
1415      // attributeNamespace
1416      !1,
1417      // sanitizeURL
1418      !1
1419      // removeEmptyString
1420    );
1421  }), [
1422    "checked",
1423    // Note: `option.selected` is not updated if `select.multiple` is
1424    // disabled with `removeAttribute`. We have special logic for handling this.
1425    "multiple",
1426    "muted",
1427    "selected"
1428    // NOTE: if you add a camelCased prop to this list,
1429    // you'll need to set attributeName to name.toLowerCase()
1430    // instead in the assignment below.
1431  ].forEach((t) => {
1432    i[t] = new r(
1433      t,
1434      s,
1435      !0,
1436      // mustUseProperty
1437      t,
1438      // attributeName
1439      null,
1440      // attributeNamespace
1441      !1,
1442      // sanitizeURL
1443      !1
1444      // removeEmptyString
1445    );
1446  }), [
1447    "capture",
1448    "download"
1449    // NOTE: if you add a camelCased prop to this list,
1450    // you'll need to set attributeName to name.toLowerCase()
1451    // instead in the assignment below.
1452  ].forEach((t) => {
1453    i[t] = new r(
1454      t,
1455      d,
1456      !1,
1457      // mustUseProperty
1458      t,
1459      // attributeName
1460      null,
1461      // attributeNamespace
1462      !1,
1463      // sanitizeURL
1464      !1
1465      // removeEmptyString
1466    );
1467  }), [
1468    "cols",
1469    "rows",
1470    "size",
1471    "span"
1472    // NOTE: if you add a camelCased prop to this list,
1473    // you'll need to set attributeName to name.toLowerCase()
1474    // instead in the assignment below.
1475  ].forEach((t) => {
1476    i[t] = new r(
1477      t,
1478      u,
1479      !1,
1480      // mustUseProperty
1481      t,
1482      // attributeName
1483      null,
1484      // attributeNamespace
1485      !1,
1486      // sanitizeURL
1487      !1
1488      // removeEmptyString
1489    );
1490  }), ["rowSpan", "start"].forEach((t) => {
1491    i[t] = new r(
1492      t,
1493      l,
1494      !1,
1495      // mustUseProperty
1496      t.toLowerCase(),
1497      // attributeName
1498      null,
1499      // attributeNamespace
1500      !1,
1501      // sanitizeURL
1502      !1
1503      // removeEmptyString
1504    );
1505  });
1506  const _ = /[\-\:]([a-z])/g, E = (t) => t[1].toUpperCase();
1507  [
1508    "accent-height",
1509    "alignment-baseline",
1510    "arabic-form",
1511    "baseline-shift",
1512    "cap-height",
1513    "clip-path",
1514    "clip-rule",
1515    "color-interpolation",
1516    "color-interpolation-filters",
1517    "color-profile",
1518    "color-rendering",
1519    "dominant-baseline",
1520    "enable-background",
1521    "fill-opacity",
1522    "fill-rule",
1523    "flood-color",
1524    "flood-opacity",
1525    "font-family",
1526    "font-size",
1527    "font-size-adjust",
1528    "font-stretch",
1529    "font-style",
1530    "font-variant",
1531    "font-weight",
1532    "glyph-name",
1533    "glyph-orientation-horizontal",
1534    "glyph-orientation-vertical",
1535    "horiz-adv-x",
1536    "horiz-origin-x",
1537    "image-rendering",
1538    "letter-spacing",
1539    "lighting-color",
1540    "marker-end",
1541    "marker-mid",
1542    "marker-start",
1543    "overline-position",
1544    "overline-thickness",
1545    "paint-order",
1546    "panose-1",
1547    "pointer-events",
1548    "rendering-intent",
1549    "shape-rendering",
1550    "stop-color",
1551    "stop-opacity",
1552    "strikethrough-position",
1553    "strikethrough-thickness",
1554    "stroke-dasharray",
1555    "stroke-dashoffset",
1556    "stroke-linecap",
1557    "stroke-linejoin",
1558    "stroke-miterlimit",
1559    "stroke-opacity",
1560    "stroke-width",
1561    "text-anchor",
1562    "text-decoration",
1563    "text-rendering",
1564    "underline-position",
1565    "underline-thickness",
1566    "unicode-bidi",
1567    "unicode-range",
1568    "units-per-em",
1569    "v-alphabetic",
1570    "v-hanging",
1571    "v-ideographic",
1572    "v-mathematical",
1573    "vector-effect",
1574    "vert-adv-y",
1575    "vert-origin-x",
1576    "vert-origin-y",
1577    "word-spacing",
1578    "writing-mode",
1579    "xmlns:xlink",
1580    "x-height"
1581    // NOTE: if you add a camelCased prop to this list,
1582    // you'll need to set attributeName to name.toLowerCase()
1583    // instead in the assignment below.
1584  ].forEach((t) => {
1585    const f = t.replace(_, E);
1586    i[f] = new r(
1587      f,
1588      n,
1589      !1,
1590      // mustUseProperty
1591      t,
1592      null,
1593      // attributeNamespace
1594      !1,
1595      // sanitizeURL
1596      !1
1597      // removeEmptyString
1598    );
1599  }), [
1600    "xlink:actuate",
1601    "xlink:arcrole",
1602    "xlink:role",
1603    "xlink:show",
1604    "xlink:title",
1605    "xlink:type"
1606    // NOTE: if you add a camelCased prop to this list,
1607    // you'll need to set attributeName to name.toLowerCase()
1608    // instead in the assignment below.
1609  ].forEach((t) => {
1610    const f = t.replace(_, E);
1611    i[f] = new r(
1612      f,
1613      n,
1614      !1,
1615      // mustUseProperty
1616      t,
1617      "http://www.w3.org/1999/xlink",
1618      !1,
1619      // sanitizeURL
1620      !1
1621      // removeEmptyString
1622    );
1623  }), [
1624    "xml:base",
1625    "xml:lang",
1626    "xml:space"
1627    // NOTE: if you add a camelCased prop to this list,
1628    // you'll need to set attributeName to name.toLowerCase()
1629    // instead in the assignment below.
1630  ].forEach((t) => {
1631    const f = t.replace(_, E);
1632    i[f] = new r(
1633      f,
1634      n,
1635      !1,
1636      // mustUseProperty
1637      t,
1638      "http://www.w3.org/XML/1998/namespace",
1639      !1,
1640      // sanitizeURL
1641      !1
1642      // removeEmptyString
1643    );
1644  }), ["tabIndex", "crossOrigin"].forEach((t) => {
1645    i[t] = new r(
1646      t,
1647      n,
1648      !1,
1649      // mustUseProperty
1650      t.toLowerCase(),
1651      // attributeName
1652      null,
1653      // attributeNamespace
1654      !1,
1655      // sanitizeURL
1656      !1
1657      // removeEmptyString
1658    );
1659  });
1660  const v = "xlinkHref";
1661  i[v] = new r(
1662    "xlinkHref",
1663    n,
1664    !1,
1665    // mustUseProperty
1666    "xlink:href",
1667    "http://www.w3.org/1999/xlink",
1668    !0,
1669    // sanitizeURL
1670    !1
1671    // removeEmptyString
1672  ), ["src", "href", "action", "formAction"].forEach((t) => {
1673    i[t] = new r(
1674      t,
1675      n,
1676      !1,
1677      // mustUseProperty
1678      t.toLowerCase(),
1679      // attributeName
1680      null,
1681      // attributeNamespace
1682      !0,
1683      // sanitizeURL
1684      !0
1685      // removeEmptyString
1686    );
1687  });
1688  const {
1689    CAMELCASE: T,
1690    SAME: p,
1691    possibleStandardNames: b
1692  } = Et(), y = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD" + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", k = RegExp.prototype.test.bind(
1693    // eslint-disable-next-line no-misleading-character-class
1694    new RegExp("^(data|aria)-[" + y + "]*$")
1695  ), O = Object.keys(
1696    b
1697  ).reduce((t, f) => {
1698    const h = b[f];
1699    return h === p ? t[f] = f : h === T ? t[f.toLowerCase()] = f : t[f] = h, t;
1700  }, {});
1701  return I.BOOLEAN = s, I.BOOLEANISH_STRING = a, I.NUMERIC = l, I.OVERLOADED_BOOLEAN = d, I.POSITIVE_NUMERIC = u, I.RESERVED = e, I.STRING = n, I.getPropertyInfo = o, I.isCustomAttribute = k, I.possibleStandardNames = O, I;
1702}
1703var Z = {}, $ = {}, le, xe;
1704function xt() {
1705  if (xe) return le;
1706  xe = 1;
1707  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, a = /^\s*/, s = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, d = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, u = /^[;\s]*/, o = /^\s+|\s+$/g, r = `
1708`, i = "/", c = "*", _ = "", E = "comment", v = "declaration";
1709  le = function(p, b) {
1710    if (typeof p != "string")
1711      throw new TypeError("First argument must be a string");
1712    if (!p) return [];
1713    b = b || {};
1714    var x = 1, y = 1;
1715    function k(A) {
1716      var S = A.match(n);
1717      S && (x += S.length);
1718      var R = A.lastIndexOf(r);
1719      y = ~R ? A.length - R : y + A.length;
1720    }
1721    function O() {
1722      var A = { line: x, column: y };
1723      return function(S) {
1724        return S.position = new t(A), w(), S;
1725      };
1726    }
1727    function t(A) {
1728      this.start = A, this.end = { line: x, column: y }, this.source = b.source;
1729    }
1730    t.prototype.content = p;
1731    function f(A) {
1732      var S = new Error(
1733        b.source + ":" + x + ":" + y + ": " + A
1734      );
vendor: 2,128 bytes, lines 1735-1819
1735      if (S.reason = A, S.filename = b.source, S.line = x, S.column = y, S.source = p, !b.silent) throw S;
1736    }
1737    function h(A) {
1738      var S = A.exec(p);
1739      if (S) {
1740        var R = S[0];
1741        return k(R), p = p.slice(R.length), S;
1742      }
1743    }
1744    function w() {
1745      h(a);
1746    }
1747    function N(A) {
1748      var S;
1749      for (A = A || []; S = P(); )
1750        S !== !1 && A.push(S);
1751      return A;
1752    }
1753    function P() {
1754      var A = O();
1755      if (!(i != p.charAt(0) || c != p.charAt(1))) {
1756        for (var S = 2; _ != p.charAt(S) && (c != p.charAt(S) || i != p.charAt(S + 1)); )
1757          ++S;
1758        if (S += 2, _ === p.charAt(S - 1))
1759          return f("End of comment missing");
1760        var R = p.slice(2, S - 2);
1761        return y += 2, k(R), p = p.slice(S), y += 2, A({
1762          type: E,
1763          comment: R
1764        });
1765      }
1766    }
1767    function M() {
1768      var A = O(), S = h(s);
1769      if (S) {
1770        if (P(), !h(d)) return f("property missing ':'");
1771        var R = h(l), Ze = A({
1772          type: v,
1773          property: T(S[0].replace(e, _)),
1774          value: R ? T(R[0].replace(e, _)) : _
1775        });
1776        return h(u), Ze;
1777      }
1778    }
1779    function L() {
1780      var A = [];
1781      N(A);
1782      for (var S; S = M(); )
1783        S !== !1 && (A.push(S), N(A));
1784      return A;
1785    }
1786    return w(), L();
1787  };
1788  function T(p) {
1789    return p ? p.replace(o, _) : _;
1790  }
1791  return le;
1792}
1793var Se;
1794function St() {
1795  if (Se) return $;
1796  Se = 1;
1797  var e = $ && $.__importDefault || function(s) {
1798    return s && s.__esModule ? s : { default: s };
1799  };
1800  Object.defineProperty($, "__esModule", { value: !0 }), $.default = a;
1801  var n = e(xt());
1802  function a(s, d) {
1803    var l = null;
1804    if (!s || typeof s != "string")
1805      return l;
1806    var u = (0, n.default)(s), o = typeof d == "function";
1807    return u.forEach(function(r) {
1808      if (r.type === "declaration") {
1809        var i = r.property, c = r.value;
1810        o ? d(i, c, r) : c && (l = l || {}, l[i] = c);
1811      }
1812    }), l;
1813  }
1814  return $;
1815}
1816var K = {}, Te;
1817function Tt() {
1818  if (Te) return K;
1819  Te = 1, Object.defineProperty(K, "__esModule", { value: !0 }
1819), K.camelCase = void 0;
1820  var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, a = /^[^-]+$/, s = /^-(webkit|moz|ms|o|khtml)-/, d = /^-(ms)-/, l = function(i) {
1821    return !i || a.test(i) || e.test(i);
1822  }, u = function(i, c) {
1823    return c.toUpperCase();
1824  }, o = function(i, c) {
1825    return "".concat(c, "-");
1826  }, r = function(i, c) {
1827    return c === void 0 && (c = {}), l(i) ? i : (i = i.toLowerCase(), c.reactCompat ? i = i.replace(d, o) : i = i.replace(s, o), i.replace(n, u));
1828  };
1829  return K.camelCase = r, K;
1830}
1831var J, Ce;
1832function Ct() {
1833  if (Ce) return J;
1834  Ce = 1;
1835  var e = J && J.__importDefault || function(d) {
1836    return d && d.__esModule ? d : { default: d };
1837  }, n = e(St()), a = Tt();
1838  function s(d, l) {
1839    var u = {};
1840    return !d || typeof d != "string" || (0, n.default)(d, function(o, r) {
1841      o && r && (u[(0, a.camelCase)(o, l)] = r);
1842    }), u;
1843  }
1844  return s.default = s, J = s, J;
1845}
1846var Ne;
1847function Fe() {
1848  return Ne || (Ne = 1, function(e) {
1849    var n = Z && Z.__importDefault || function(c) {
1850      return c && c.__esModule ? c : { default: c };
1851    };
1852    Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = l, e.setStyleProp = o;
1853    var a = Me(), s = n(Ct()), d = /* @__PURE__ */ new Set([
1854      "annotation-xml",
1855      "color-profile",
1856      "font-face",
1857      "font-face-src",
1858      "font-face-uri",
1859      "font-face-format",
1860      "font-face-name",
1861      "missing-glyph"
1862    ]);
1863    function l(c, _) {
1864      return c.includes("-") ? !d.has(c) : !!(_ && typeof _.is == "string");
1865    }
1866    var u = {
1867      reactCompat: !0
1868    };
1869    function o(c, _) {
1870      if (typeof c == "string") {
1871        if (!c.trim()) {
1872          _.style = {};
1873          return;
1874        }
1875        try {
1876          _.style = (0, s.default)(c, u);
1877        } catch {
1878          _.style = {};
1879        }
1880      }
1881    }
1882    e.PRESERVE_CUSTOM_ATTRIBUTES = Number(a.version.split(".")[0]) >= 16, e.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
1883      "tr",
1884      "tbody",
1885      "thead",
1886      "tfoot",
1887      "colgroup",
1888      "table",
1889      "head",
1890      "html",
1891      "frameset"
1892    ]);
1893    var r = function(c) {
1894      return !e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name);
1895    };
1896    e.canTextBeChildOfNode = r;
1897    var i = function(c) {
1898      return c;
1899    };
1900    e.returnFirstArg = i;
1901  }(Z)), Z;
1902}
1903var Ae;
1904function Be() {
1905  if (Ae) return ee;
1906  Ae = 1, Object.defineProperty(ee, "__esModule", { value: !0 }), ee.default = l;
1907  var e = wt(), n = Fe(), a = ["checked", "value"], s = ["input", "select", "textarea"], d = {
1908    reset: !0,
1909    submit: !0
1910  };
1911  function l(o, r) {
1912    o === void 0 && (o = {});
1913    var i = {}, c = !!(o.type && d[o.type]);
1914    for (var _ in o) {
1915      var E = o[_];
1916      if ((0, e.isCustomAttribute)(_)) {
1917        i[_] = E;
1918        continue;
1919      }
1920      var v = _.toLowerCase(), T = u(v);
1921      if (T) {
1922        var p = (0, e.getPropertyInfo)(T);
1923        switch (a.includes(T) && s.includes(r) && !c && (T = u("default" + v)), i[T] 
1923= E, p && p.type) {
1924          case e.BOOLEAN:
1925            i[T] = !0;
1926            break;
1927          case e.OVERLOADED_BOOLEAN:
1928            E === "" && (i[T] = !0);
1929            break;
1930        }
1931        continue;
1932      }
1933      n.PRESERVE_CUSTOM_ATTRIBUTES && (i[_] = E);
1934    }
1935    return (0, n.setStyleProp)(o.style, i), i;
1936  }
1937  function u(o) {
1938    return e.possibleStandardNames[o];
1939  }
1940  return ee;
1941}
1942var V = {}, ke;
1943function Nt() {
1944  if (ke) return V;
1945  ke = 1;
1946  var e = V && V.__importDefault || function(o) {
1947    return o && o.__esModule ? o : { default: o };
1948  };
1949  Object.defineProperty(V, "__esModule", { value: !0 }), V.default = l;
1950  var n = Me(), a = e(Be()), s = Fe(), d = {
1951    cloneElement: n.cloneElement,
1952    createElement: n.createElement,
1953    isValidElement: n.isValidElement
1954  };
1955  function l(o, r) {
1956    r === void 0 && (r = {});
1957    for (var i = [], c = typeof r.replace == "function", _ = r.transform || s.returnFirstArg, E = r.library || d, v = E.cloneElement, T = E.createElement, p = E.isValidElement, b = o.length, x = 0; x < b; x++) {
1958      var y = o[x];
1959      if (c) {
1960        var k = r.replace(y, x);
1961        if (p(k)) {
1962          b > 1 && (k = v(k, {
1963            key: k.key || x
1964          })), i.push(_(k, y, x));
1965          continue;
1966        }
1967      }
1968      if (y.type === "text") {
1969        var O = !y.data.trim().length;
1970        if (O && y.parent && !(0, s.canTextBeChildOfNode)(y.parent) || r.trim && O)
1971          continue;
1972        i.push(_(y.data, y, x));
1973        continue;
1974      }
1975      var t = y, f = {};
1976      u(t) ? ((0, s.setStyleProp)(t.attribs.style, t.attribs), f = t.attribs) : t.attribs && (f = (0, a.default)(t.attribs, t.name));
1977      var h = void 0;
1978      switch (y.type) {
1979        case "script":
1980        case "style":
1981          y.children[0] && (f.dangerouslySetInnerHTML = {
1982            __html: y.children[0].data
1983          });
1984          break;
1985        case "tag":
1986          y.name === "textarea" && y.children[0] ? f.defaultValue = y.children[0].data : y.children && y.children.length && (h = l(y.children, r));
1987          break;
1988        // skip all other cases (e.g., comment)
1989        default:
1990          continue;
1991      }
1992      b > 1 && (f.key = x), i.push(_(T(y.name, f, h), y, x));
1993    }
1994    return i.length === 1 ? i[0] : i;
1995  }
1996  function u(o) {
1997    return s.PRESERVE_CUSTOM_ATTRIBUTES && o.type === "tag" && (0, s.isCustomComponent)(o.name, o.attribs);
1998  }
1999  return V;
2000}
2001var Oe;
2002function At() {
2003  return Oe || (Oe = 1, function(e) {
2004    var n = X && X.__importDefault || function(r) {
2005      return r && r.__esModule ? r : { default: r };
2006    };
2007    Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = o;
2008    var a = n(bt());
2009    e.htmlToDOM = a.default;
2010    var s = n(Be());
2011    e.attributesToProps = s.default;
2012    var d = n(Nt());
2013    e.domToReact = d.default;
2014    var l = /* @__PURE__ */ Ge();
2015    Object.defineProperty(e, "Comment", { enumerable: !0, get: function() {
2016      return l.Comment;
2017    } }), Object.defineProperty(e, "Element", { enumerable: !0, get: function() {
2018      return l.Element;
2019    } }), Object.defineProperty(e, "ProcessingInstruction", { enumerable: !0, get: function() {
2020      return l.ProcessingInstruction;
2021    } }), Object.defineProperty(e, "Text", { enumerable: !0, get: function() {
2022      return l.Text;
2023    } });
2024    var u = { lowerCaseAttributeNames: !1 };
2025    function o(r, i) {
2026      if (typeof r != "string")
2027        throw new TypeError("First argument must be a string");
2028      return r ? (0, d.default)((0, a.default)(r, (i == null ? void 0 : i.htmlparser2) || u), i) : [];
2029    }
2030  }(X)), X;
2031}
2032var kt = At();
2033const Pe = /* @__PURE__ */ ue(kt), D = Pe.default || Pe, te = (e) => {
2034  const [n, a] = g.useState(!1);
2035  return g.useEffect(() => {
2036    const s = window.matchMedia(e);
2037    s.matches !== n && a(s.matches);
2038    const d = () => a(s.matches);
2039    return s.addEventListener("change", d), () => s.removeEventListener("change", d);
2040  }, [n, e]), n;
2041};
2042var H = /* @__PURE__ */ ((e) => (e.BgTransparent = "bg_transparent", e.BgBlack = "bg_black", e.BgWhite = "bg_white", e.BgGray = "bg_gray", e.BgPrimary = "bg_primary", e.BgSecondary = "bg_secondary", e.BgTertiary = "bg_tertiary", e))(H || {}), q = /* @__PURE__ */ ((e) => (e.Black = "text_black", e.White = "text_white", e.Gray = "text_gray", e.Primary = "text_primary", e.Secondary = "text_secondary", e.Tertiary = "text_tertiary", e))(q || {}), U = /* @__PURE__ */ ((e) => (e.Xlarge = "xl", e.Large = "lg", e.Medium = "md", e.Small = "sm", e))(U || {});
2043const G = (e, n) => ({
2044  event: "ai_widget",
2045  customEventCategory: "AI 위젯",
2046  customEventAction: e,
2047  customEventLabel: n
2048}), F = (e) => {
2049  window != null && window.dataLayer && window.dataLayer.push(e);
2050}, Ot = "_blind_19xzt_329", Pt = "_btn_19xzt_357", Mt = "_disabled_19xzt_373", Rt = "_btn_icon_19xzt_379", It = "_btn_icon_first_19xzt_386", jt = "_xl_19xzt_393", Dt = "_lg_19xzt_404", Lt = "_md_19xzt_415", Gt = "_sm_
205019xzt_426", Ft = "_bg_transparent_19xzt_437", Bt = "_bg_black_19xzt_441", zt = "_bg_white_19xzt_445", $t = "_bg_gray_19xzt_450", Vt = "_bg_primary_19xzt_460", Ht = "_bg_secondary_19xzt_470", qt = "_text_black_19xzt_474", Ut = "_text_white_19xzt_477", Xt = "_text_primary_19xzt_480", Wt = "_text_secondary_19xzt_483", Yt = "_text_tertiary_19xzt_486", Zt = "_round_19xzt_490", Kt = "_icon_link_19xzt_494", Jt = "_icon_more_19xzt_518", Qt = "_icon_refresh_19xzt_524", en = "_load_19xzt_1", tn = "_load30_19xzt_1", nn = {
2051  blind: Ot,
2052  btn: Pt,
2053  disabled: Mt,
2054  btn_icon: Rt,
2055  btn_icon_first: It,
2056  xl: jt,
2057  lg: Dt,
2058  md: Lt,
2059  sm: Gt,
2060  bg_transparent: Ft,
2061  bg_black: Bt,
2062  bg_white: zt,
2063  bg_gray: $t,
2064  bg_primary: Vt,
2065  bg_secondary: Ht,
2066  text_black: qt,
2067  text_white: Ut,
2068  text_primary: Xt,
2069  text_secondary: Wt,
2070  text_tertiary: Yt,
2071  round: Zt,
2072  icon_link: Kt,
2073  icon_more: Jt,
2074  icon_refresh: Qt,
2075  load: en,
2076  load30: tn
2077};
2078function ne(e) {
2079  const {
2080    linkUrl: n,
2081    bg: a = H.BgTransparent,
2082    size: s = U.Medium,
2083    color: d = q.White,
2084    icon: l,
2085    isDisabled: u,
2086    shape: o,
2087    iconPosition: r,
2088    className: i,
2089    children: c,
2090    ..._
2091  } = e, E = j.bind(nn), v = ["btn", a, d, l, r, o, s];
2092  return /* @__PURE__ */ m.jsx(m.Fragment, { children: n ? /* @__PURE__ */ m.jsx("a", { className: E(v, i, { isDisabled: u }), href: n, ..._, children: /* @__PURE__ */ m.jsx("span", { children: c }) }) : /* @__PURE__ */ m.jsx("button", { className: E(v, i), disabled: u, type: "button", ..._, children: c }) });
2093}
2094var ze = /* @__PURE__ */ ((e) => (e.Bottom = "--floating-bottom", e))(ze || {});
2095const $e = {
2096  StyleVariable: ze
2097}, rn = "_gradient__container_azx9h_14", an = "_gradient__top_azx9h_23", on = "_gradient__content_azx9h_34", sn = "_gradient__body_azx9h_48", ln = "_load_azx9h_1", cn = "_load30_azx9h_1", un = {
2098  gradient__container: rn,
2099  gradient__top: an,
2100  gradient__content: on,
2101  gradient__body: sn,
2102  load: ln,
2103  load30: cn
2104};
2105function Ve(e) {
2106  const { children: n } = e, a = j.bind(un), s = ["gradient__container"];
2107  return /* @__PURE__ */ m.jsx(Ke.section, { className: a(s), layout: !0, transition: { duration: 0.3 }, children: /* @__PURE__ */ m.jsxs("div", { className: a("gradient__content"), children: [
2108    /* @__PURE__ */ m.jsx("div", { className: a("gradient__top") }),
2109    /* @__PURE__ */ m.jsx("div", { className: a("gradient__body"), children: n })
2110  ] }) });
2111}
2112const dn = "_modalOverlay_184e1_24", fn = "_fadeIn_184e1_1", _n = "_modal_184e1_24", hn = "_slideUp_184e1_1", pn = "_modal__ani_184e1_117", mn = "_slideDown_184e1_1", gn = "_modalDimmed_184e1_143", vn = "_modalContent_184e1_153", yn = "_header_184e1_166", bn = "_title_184e1_173", En = "_subtitle_184e1_173", wn = "_body_184e1_228", xn = "_closeButton_184e1_232", Sn = "_fadeInText_184e1_1", Tn = "_load_184e1_1", Cn = "_load30_184e1_1", Nn = {
2113  modalOverlay: dn,
2114  fadeIn: fn,
2115  "is-scroll": "_is-scroll_184e1_37",
2116  modal: _n,
2117  slideUp: hn,
2118  modal__ani: pn,
2119  slideDown: mn,
2120  modalDimmed: gn,
2121  modalContent: vn,
2122  header: yn,
2123  title: bn,
2124  subtitle: En,
2125  body: wn,
2126  closeButton: xn,
2127  fadeInText: Sn,
2128  load: Tn,
2129  load30: Cn
2130};
2131function re(e) {
2132  const {
2133    isModalOpen: n,
2134    handleModalClose: a,
2135    bottomValue: s,
2136    className: d,
2137    children: l,
2138    hasOverlay: u,
2139    title: o,
2140    subtitle: r,
2141    isModalClosing: i,
2142    isNotScrollMove: c
2143  } = e, _ = j.bind(Nn), E = g.useRef(null), [v, T] = g.useState(!1), [p, b] = g.useState(!1), x = te("(max-width: 767px)"), y = () => {
2144    b(!0), setTimeout(() => {
2145      b(!1), a();
2146    }, 300);
2147  };
2148  g.useEffect(() => {
2149    if (c) return;
2150    const h = () => {
2151      T(window.scrollY > 0);
2152    };
2153    return window.addEventListener("scroll", h), () => {
2154      window.removeEventListener("scroll", h);
2155    };
2156  }, []), g.useEffect(() => {
2157    const h = () => {
2158      const w = typeof window.visualViewport < "u" && window.visualViewport !== null ? window.visualViewport.height * 0.01 : window.innerHeight * 0.01;
2159      document.documentElement.style.setProperty("--vh", `${w}px`);
2160    };
2161    return h(), window.addEventListener("resize", h), () => {
2162      window.removeEventListener("resize", h);
2163    };
2164  }, []), g.useEffect(() => {
2165    if (!n || typeof document > "u" || !E.current) return;
2166    const h = ".header-wrap .dimmed", w = () => {
2167      if (E.current) {
2168        const L = document.documentElement.classList.contains("scroll-fixed") || document.documentElement.classList.contains("scroll-lock"), A = document.querySelector(h), S = A && getComputedStyle(A).display === "block", R = L || S;
2169        E.current.style.zIndex = R ? "99" : "";
2170      }
2171    };
2172    w();
2173    const N = new MutationObserver(w);
2174    N.observe(document.documentElement, {
2175      attributes: !0,
2176      attributeFilter: ["class"]
2177    });
2178    const P = document.querySelector(h);
2179    let M = null;
2180    return P && (M = new MutationObserver(w), M.observe(P, {
2181      attributes: !0,
2182      attributeFilter: ["style"]
2183    })), () => {
2184      N.disconnect(), M == null || M.disconnect();
2185    };
2186  }, [n]);
2187  function k() {
2188    return u ? /* @__PURE__ */ m.jsx("div", { className: _("modalDimmed"), onClick: y, "aria-hidden": "true" }) : null;
2189  }
2190  function O() {
2191    return /* @__PURE__ */ m.jsxs("div", { className: _("header"), children: [
2192      /* @__PURE__ */ m.jsx("h2", { className: _("title"), children: typeof o == "string" ? D(o) : o }),
2193      /* @__PURE__ */ m.jsx("p", { className: _("subtitle"), children: D(r ?? "") })
2194    ] });
2195  }
2196  function t() {
2197    return /* @__PURE__ */ m.jsx("div", { className: _("body"), children: l });
2198  }
2199  function f() {
2200    return /* @__PURE__ */ m.jsx("button", { className: _("closeButton"), onClick: y, type: "button", children: /* @__PURE__ */ m.jsx("span", { className: "blind", children: "팝업 닫기" }) });
2201  }
2202  return n && n ? /* @__PURE__ */ m.jsxs(
2203    "div",
2204    {
2205      ref: E,
2206      className: _("modalOverlay"),
2207      style: s > 0 ? { [$e.StyleVariable.Bottom]: `${s}px` } : void 0,
2208      children: [
2209        k(),
2210        /* @__PURE__ */ m.jsx(
2211          "div",
2212          {
2213            className: _(
2214              "modal",
2215              d,
2216              { "is-scroll": x && v },
2217              { modal__ani: p || i }
2218            ),
2219            children: /* @__PURE__ */ m.jsx(Ve, { children: /* @__PURE__ */ m.jsxs("div", { className: _("modalContent"), children: [
2220              O(),
2221              t(),
2222              f()
2223            ] }) })
2224          }
2225        )
2226      ]
2227    }
2228  ) : null;
2229}
2230const An = "_buyguide__wrapper_9bhfc_14", kn = "_card__cta_9bhfc_18", On = "_buyguide_9bhfc_14", Pn = "_guide__message_9bhfc_29", Mn = "_load_9bhfc_1", Rn = "_load30_9bhfc_1", He = {
2231  buyguide__wrapper: An,
2232  card__cta: kn,
2233  buyguide: On,
2234  guide__message: Pn,
2235  load: Mn,
2236  load30: Rn
2237};
2238function In(e) {
2239  const { message: n } = e, a = j.bind(He);
2240  return /* @__PURE__ */ m.jsx("p", { className: a("guide__message"), children: D(n ?? "") });
2241}
2242function jn(e) {
2243  const { categoryId: n, bottomValue: a, sessionId: s, pageType: d, modelId: l, messages: u } = e, o = j.bind(He), [r, i] = g.useState(!0), [c, _] = g.useState(!1), E = te("(max-width: 767px)"), v = g.useCallback(() => {
2244    var O, t;
2245    let x = Re(ce);
2246    x = Ie(x, s);
2247    const y = x.smartViewInfo;
2248    let k = !0;
2249    d === "PDP" && n && l && (k = (((t = (O = y.pdpExploreHistory) == null ? void 0 : O[n]) == null ? void 0 : t.modelIdList) ?? []).length > 1), n && (y.isBuyGuideShown === void 0 ? y.isBuyGuideShown = { [n]: k } : y.isBuyGuideShown[n] || (y.isBuyGuideShown[n] = k), Qe(ce, x));
2250  }, [s, d, n, l]);
2251  g.useEffect(() => {
2252    const x = () => {
2253      _(window.scrollY > 0);
2254    };
2255    return window.addEventListener("scroll", x), F(G("AI 위젯 노출", "구매가이드")), () => {
2256      window.removeEventListener("scroll", x);
2257    };
2258  }, []), g.useEffect(() => {
2259    const x = setTimeout(() => {
2260      v();
2261    }, 100);
2262    return () => {
2263      clearTimeout(x);
2264    };
2265  }, [v]);
2266  function T() {
2267    return c && E ? "꼭 필요한 구매 팁 가져왔어요" : u.buyGuide.mainMessage;
2268  }
2269  const p = () => {
2270    const x = `https://www.lge.co.kr/ai-commerce/aiAssistant?speech=${u.categoryName} 구매가이드 알려주세요`;
2271    window.open(x, "aiAssistant", "height=1500, width=900;"), i(!1);
2272  }, b = (x) => {
2273    x.preventDefault(), F(
2274      G(
2275        "AI 위젯 클릭",
2276        "클릭 컨텐츠 : 넛지 진입 / 꼭 필요한 구매 팁 가져왔어요 / 구매가이드"
2277      )
2278    ), p();
2279  };
2280  return /* @__PURE__ */ m.jsx(
2281    re,
2282    {
2283      className: o("modal__smartview"),
2284      isModalOpen: r,
2285      handleModalClose: () => {
2286        F(G("AI 위젯 클릭", "클릭 컨텐츠 : 닫기 / 구매가이드")), i(!1);
2287      },
2288      bottomValue: a ?? 0,
2289      children: /* @__PURE__ */ m.jsxs("div", { className: o("buyguide__wrapper"), children: [
2290        /* @__PURE__ */ m.jsxs("a", { href: "#!", className: o("buyguide"), onClick: b, children: [
2291          /* @__PURE__ */ m.jsx("p", { className: o("title__gradient"), children: D(T()) }),
2292          /* @__PURE__ */ m.jsx(In, { message: u.buyGuide.subMessage })
2293        ] }),
2294        /* @__PURE__ */ m.jsx("div", { className: o("card__cta"), children: /* @__PURE__ */ m.jsx(
2295          ne,
2296          {
2297            bg: H.BgPrimary,
2298            color: q.White,
2299            size: U.Small,
2300            onClick: () => {
2301              F(
2302                G(
2303                  "AI 위젯 클릭",
2304                  `클릭 컨텐츠 : 알아보기 / ${u.buyGuide.mainMessage} / 구매가이드`
2305                )
2306              ), p();
2307            },
2308            children: "알아보기"
2309          }
2310        ) })
2311      ] })
2312    }
2313  );
2314}
2315var Dn = /* @__PURE__ */ it();
2316const Ln = /* @__PURE__ */ ue(Dn);
2317function Gn(e) {
2318  const [n, a] = g.useState(null), [s, d] = g.useState(!0), [l, u] = g.useState(null);
2319  return g.useEffect(() => {
2320    if (!e) {
2321      d(!1);
2322      return;
2323    }
2324    (async () => {
2325      try {
2326        d(!0), u(null);
2327        const i = "/libs/react-dom-bridge", c = await fetch(`${i}/lottie/${e}`);
2328        if (!c.ok)
2329          throw new Error(`Failed to fetch ${e}: ${c.status}`);
2330        const _ = await c.json();
2331        a(_);
2332      } catch (r) {
2333        const i = r instanceof Error ? r.message : "Unknown error";
2334        u(i), console.error("Failed to load Lottie animation:", r);
2335      } finally {
2336        d(!1);
2337      }
2338    })();
2339  }, [e]), { animationData: n, isLoading: s, error: l };
2340}
2341const qe = g.forwardRef(
2342  ({ fileName: e, animationConfig: n, className: a, onAnimationLoaded: s }, d) => {
2343    const { animationData: l } = Gn(e), u = g.useRef(null), o = g.useRef(null), [r, i] = g.useState(null);
2344    return g.useEffect(() => {
2345      if (!l) return;
2346      const c = l, _ = (c.h || 500) / (c.w || 500) * 100;
2347      i(_);
2348    }, [l]), g.useEffect(() => {
2349      if (!l || !u.current || r === null) return;
2350      const c = u.current, _ = n.renderer || "canvas", E = Ln.loadAnimation({
2351        ...n,
2352        container: c,
2353        animationData: l,
2354        renderer: _,
2355        rendererSettings: {
2356          progressiveLoad: !0,
2357          preserveAspectRatio: "xMidYMid meet",
2358          clearCanvas: _ === "canvas",
2359          ...n.rendererSettings
2360        }
2361      });
2362      return o.current = E, d && typeof d != "function" && (d.current = E), s == null || s(E), () => {
2363        var v;
2364        (v = o.current) == null || v.destroy(), o.current = null, d && typeof d != "function" && (d.current = null);
2365      };
2366    }
2366, [l, n, d, s, r]), r === null ? /* @__PURE__ */ m.jsx("div", { className: a }) : /* @__PURE__ */ m.jsx(
2367      "div",
2368      {
2369        className: a,
2370        style: { position: "relative", width: "100%", paddingBottom: `${r}%` },
2371        children: /* @__PURE__ */ m.jsx(
2372          "div",
2373          {
2374            ref: u,
2375            style: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }
2376          }
2377        )
2378      }
2379    );
2380  }
2381);
2382qe.displayName = "Lottie";
2383const Fn = { loop: !0, autoplay: !0 };
2384function Bn() {
2385  return te("(max-width: 767px)") ? /* @__PURE__ */ m.jsx(
2386    qe,
2387    {
2388      animationConfig: Fn,
2389      className: "lottie lottie__thinking--bg",
2390      fileName: "bg_thinking_mo.json"
2391    }
2392  ) : null;
2393}
2394const zn = "_smartview__motion_9gi1u_14", $n = "_smartview__toast_9gi1u_42", Vn = "_slideUp_9gi1u_1", Hn = "_ani_9gi1u_73", qn = "_load_9gi1u_1", Un = "_load30_9gi1u_1", Xn = {
2395  smartview__motion: zn,
2396  smartview__toast: $n,
2397  slideUp: Vn,
2398  ani: Hn,
2399  "smartview__toast--container": "_smartview__toast--container_9gi1u_77",
2400  load: qn,
2401  load30: Un
2402};
2403function Ue(e) {
2404  const { bottomValue: n } = e, a = j.bind(Xn);
2405  return /* @__PURE__ */ m.jsxs(
2406    "div",
2407    {
2408      className: a("smartview__motion"),
2409      style: n > 0 ? { [$e.StyleVariable.Bottom]: `${n}px` } : void 0,
2410      children: [
2411        /* @__PURE__ */ m.jsx("div", { className: a("smartview__toast"), children: /* @__PURE__ */ m.jsx(Ve, { children: /* @__PURE__ */ m.jsx("div", { className: a("smartview__toast--container"), children: /* @__PURE__ */ m.jsxs("p", { className: a("title__gradient"), children: [
2412          /* @__PURE__ */ m.jsx("strong", { children: "AI." }),
2413          " Thinking"
2414        ] }) }) }) }),
2415        /* @__PURE__ */ m.jsx(Bn, {})
2416      ]
2417    }
2418  );
2419}
2420function Wn(e) {
2421  const { pageType: n, categoryId: a, modelId: s, sessionId: d, bottomValue: l, messages: u } = e, { isOpenState: o } = ht(d, n, a, s), { isShowThinking: r, isShowContent: i } = De({ trigger: o });
2422  return r ? /* @__PURE__ */ m.jsx(Ue, { bottomValue: l }) : i ? /* @__PURE__ */ m.jsx(
2423    jn,
2424    {
2425      categoryId: a,
2426      bottomValue: l,
2427      sessionId: d,
2428      pageType: n,
2429      modelId: s,
2430      messages: u
2431    }
2432  ) : null;
2433}
2434const Yn = "_buyguide__wrapper_tupwm_14", Zn = "_card__cta_tupwm_18", Kn = "_buyguide_tupwm_14", Jn = "_guide__message_tupwm_29", Qn = "_load_tupwm_1", er = "_load30_tupwm_1", Xe = {
2435  buyguide__wrapper: Yn,
2436  card__cta: Zn,
2437  buyguide: Kn,
2438  guide__message: Jn,
2439  load: Qn,
2440  load30: er
2441};
2442function tr(e) {
2443  const { message: n } = e, a = j.bind(Xe);
2444  return /* @__PURE__ */ m.jsx("p", { className: a("guide__message"), children: D(n ?? "") });
2445}
2446function nr(e) {
2447  const { isShow: n, setIsShow: a, bottomValue: s, setIsClosedForever: d, messages: l } = e, u = j.bind(Xe), [o, r] = g.useState(!1), { isShowThinking: i, isShowContent: c } = De({ trigger: n }), _ = te("(max-width: 767px)");
2448  g.useEffect(() => {
2449    const p = () => {
2450      r(window.scrollY > 0);
2451    };
2452    return window.addEventListener("scroll", p), F(G("AI 위젯 노출", "제품목록")), () => {
2453      window.removeEventListener("scroll", p);
2454    };
2455  }, []), g.useEffect(() => {
2456    n && r(!1);
2457  }, [n]);
2458  function E() {
2459    return o && _ ? "더 많은 제품을 만나보세요" : l.plpGateway.mainMessage;
2460  }
2461  const v = () => {
2462    const p = l.plpGateway.url;
2463    p && (window.location.href = p);
2464  }, T = (p) => {
2465    p.preventDefault(), F(
2466      G(
2467        "AI 위젯 클릭",
2468        "클릭 컨텐츠 : 넛지 진입 / 더 많은 제품을 만나보세요 / 제품목록"
2469      )
2470    ), v();
2471  };
2472  return i ? /* @__PURE__ */ m.jsx(Ue, { bottomValue: s }) : c ? /* @__PURE__ */ m.jsx(
2473    re,
2474    {
2475      className: u("modal__smartview"),
2476      isModalOpen: n,
2477      handleModalClose: () => {
2478        F(G("AI 위젯 클릭", "클릭 컨텐츠 : 닫기 / 제품목록")), a(!1), d(!0);
2479      },
2480      title: "",
2481      bottomValue: s,
2482      children: /* @__PURE__ */ m.jsxs("div", { className: u("buyguide__wrapper"), children: [
2483        /* @__PURE__ */ m.jsxs("a", { href: "#!", className: u("buyguide"), onClick: T, children: [
2484          /* @__PURE__ */ m.jsx("p", { className: u("title__gradient"), children: D(E()) }),
2485          /* @__PURE__ */ m.jsx(tr, { message: l.plpGateway.subMessage })
2486        ] }),
2487        /* @__PURE__ */ m.jsx("div", { className: u("card__cta"), children: /* @__PURE__ */ m.jsx(
2488          ne,
2489          {
2490            bg: H.BgPrimary,
2491            color: q.White,
2492            size: U.Small,
2493            onClick: () => {
2494              F(
2495                G(
2496                  "AI 위젯 클릭",
2497                  `클릭 컨텐츠 : 보러가기 / ${l.plpGateway.mainMessage} / 제품목록`
2498                )
2499              ), v();
2500            },
2501            children: "보러가기"
2502          }
2503        ) })
2504      ] })
2505    }
2506  ) : null;
2507}
2508const rr = "_buyguide__wrapper_1oj5u_14", ir = "_card__cta_1oj5u_19", ar = "_buyguide_1oj5u_14", or = "_guide__message_1oj5u_30", sr = "_load_1oj5u_1", lr = "_load30_1oj5u_1", We = {
2509  buyguide__wrapper: rr,
2510  card__cta: ir,
2511  buyguide: ar,
2512  guide__message: or,
2513  load: sr,
2514  load30: lr
2515};
2516function cr(e) {
2517  const { message: n } = e, a = j.bind(We);
2518  return /* @__PURE__ */ m.jsx("p", { className: a("guide__message"), children: D(n ?? "") });
2519}
2520function ur({
2521  pdpFitMaxCaseType: e
2522}) {
2523  const n = j.bind(We), [a, s] = g.useState(!0), d = g.useCallback(() => e.caseType === "CASE1" ? "Fit & Max 전용관으로 돌아가기" : "이 모델은 Fix & Max 전용관에서<br/>저장된 상품입니다", [e]), l = g.useCallback(() => {
2524    const { caseType: u, categoryNo: o, subCategoryNo: r } = e;
2525    if (u === "CASE1") {
2526      window.location.href = `/category/fit-max-studio?step=FRIDGE&cateType=${u}`;
2527      return;
2528    } else if (u === "CASE2") {
2529      window.location.href = `/category/fit-max-studio?step=FRIDGE&categoryNo=${o}&subCategoryNo=${r}`;
2530      return;
2531    } else if (u === "CASE3") {
2532      window.location.href = `/category/fit-max-studio?step=FRIDGE&saveKey=${o}`;
2533      return;
2534    }
2535    window.location.href = "/category/fit-max-studio?step=FRIDGE";
2536  }, [e]);
2537  return /* @__PURE__ */ m.jsx(
2538    re,
2539    {
2540      className: n("modal__smartview"),
2541      isModalOpen: a,
2542      handleModalClose: () => {
2543        s(!1);
2544      },
2545      isNotScrollMove: !0,
2546      title: "",
2547      bottomValue: 56,
2548      children: /* @__PURE__ */ m.jsxs("div", { className: n("buyguide__wrapper"), children: [
2549        /* @__PURE__ */ m.jsxs("a", { href: "#!", className: n("buyguide"), children: [
2550          /* @__PURE__ */ m.jsx("p", { className: n("title__gradient"), children: D(d()) }),
2551          /* @__PURE__ */ m.jsx(cr, { message: "냉장고를 김치냉장고, 컨버터블 패키지와 조합해 구매해 보세요." })
2552        ] }),
2553        /* @__PURE__ */ m.jsx("div", { className: n("card__cta"), children: /* @__PURE__ */ m.jsx(ne, { bg: H.BgPrimary, color: q.White, size: U.Small, onClick: l, children: "바로가기" }) })
2554      ] })
2555    }
2556  );
2557}
2558const dr = () => {
2559  const [e, n] = g.useState(!1), [a, s] = g.useState("");
2560  return {
2561    isLoading: e,
2562    categoryNo: a,
2563    getFitMaxCategoryNo: async (l) => {
2564      if (l) {
2565        n(!0);
2566        try {
2567          const u = await et.getFitMaxCategoryNo(l);
2568          s(u);
2569        } catch (u) {
2570          console.error("API Error:", u), s("");
2571        } finally {
2572          n(!1);
2573        }
2574      }
2575    }
2576  };
2577}, fr = "_buyguide__wrapper_1oj5u_14", _r = "_card__cta_1oj5u_19", hr = "_buyguide_1oj5u_14", pr = "_guide__message_1oj5u_30", mr = "_load_1oj5u_1", gr = "_load30_1oj5u_1", Ye = {
2578  buyguide__wrapper: fr,
2579  card__cta: _r,
2580  buyguide: hr,
2581  guide__message: pr,
2582  load: mr,
2583  load30: gr
2584};
2585function vr(e) {
2586  const { message: n } = e, a = j.bind(Ye);
2587  return /* @__PURE__ */ m.jsx("p", { className: a("guide__message"), children: D(n ?? "") });
2588}
2589function yr({
2590  categoryId: e,
2591  setIsShowPlpFitMaxStudio: n
2592}) {
2593  const a = j.bind(Ye), [s, d] = g.useState(!0), { isLoading: l, categoryNo: u, getFitMaxCategoryNo: o } = dr();
2594  g.useEffect(() => {
2595    e && o(e);
2596  }, []), g.useEffect(() => {
2597    d(!(!l && !u));
2598  }, [l, u]);
2599  const r = g.useCallback(() => {
2600    if (!u) {
2601      window.location.href = "/category/fit-max-studio?step=FRIDGE";
2602      return;
2603    }
2604    window.location.href = `/category/fit-max-studio?step=FRIDGE&categoryNo=${u}`;
2605  }, [u]);
2606  return /* @__PURE__ */ m.jsx(
2607    re,
2608    {
2609      className: a("modal__smartview"),
2610      isModalOpen: s,
2611      handleModalClose: () => {
2612        d(!1), n(!1);
2613      },
2614      isNotScrollMove: !0,
2615      title: "",
2616      bottomValue: 56,
2617      children: /* @__PURE__ */ m.jsxs("div", { className: a("buyguide__wrapper"), children: [
2618        /* @__PURE__ */ m.jsxs("a", { href: "#!", className: a("buyguide"), children: [
2619          /* @__PURE__ */ m.jsx("p", { className: a("title__gradient"), children: D("Fit & Max 전용관에서 <br/> 우리집 주방에 꼭 맞게") }),
2620          /* @__PURE__ */ m.jsx(
2621            vr,
2622            {
2623              message: e ? tt[e] : ""
2624            }
2625          )
2626        ] }),
2627        /* @__PURE__ */ m.jsx("div", { className: a("card__cta"), children: /* @__PURE__ */ m.jsx(ne, { bg: H.BgPrimary, color: q.White, size: U.Small, onClick: r, children: "바로가기" }) })
2628      ] })
2629    }
2630  );
2631}
2632function xr({
2633  sessionId: e,
2634  categoryId: n,
2635  fitMaxCategoryId: a,
2636  modelId: s,
2637  pageType: d,
2638  isShowPlpGateway: l,
2639  isShowPlpFitMaxStudio: u,
2640  isShowPdpFitMaxStudio: o,
2641  setIsShowPlpGateway: r,
2642  setIsShowPlpFitMaxStudio: i,
2643  setIsShowPdpFitMaxStudio: c,
2644  messages: _,
2645  pdpFitMaxCaseType: E
2646}) {
2647  const { ua: v } = st(), T = v.isApp;
2648  if (!e) return null;
2649  const p = T ? 0 : 56, b = () => d === "SEARCH" ? null : n ? /* @__PURE__ */ m.jsx(
2650    Wn,
2651    {
2652      pageType: d,
2653      categoryId: n,
2654      modelId: s,
2655      sessionId: e,
2656      bottomValue: p,
2657      messages: {
2658        categoryName: _.categoryName,
2659        buyGuide: _.buyGuide
2660      }
2661    }
2662  ) : null, x = () => !nt(e) && n && de.includes(n) ? /* @__PURE__ */ m.jsx(
2663    nr,
2664    {
2665      categoryId: n,
2666      isShow: l,
2667      setIsShow: r,
2668      bottomValue: p,
2669      setIsClosedForever: (O) => rt(e, O),
2670      messages: {
2671        categoryName: _.categoryName,
2672        plpGateway: _.plpGateway
2673      }
2674    }
2675  ) : null, y = () => /* @__PURE__ */ m.jsx(
2676    yr,
2677    {
2678      categoryId: a,
2679      setIsShowPlpFitMaxStudio: i
2680    }
2681  ), k = () => /* @__PURE__ */ m.jsx(
2682    ur,
2683    {
2684      pdpFitMaxCaseType: E,
2685      setIsShowPdpFitMaxStudio: c
2686    }
2687  );
2688  switch (d) {
2689    case "BESTRANKING":
2690      return x();
2691    case "PDP":
2692      return o ? k() : null;
2693    case "PLP":
2694      return u ? y() : null;
2695    case "SEARCH":
2696    case "EVENT":
2697      return b();
2698    default:
2699      return null;
2700  }
2701}
2702export {
2703  xr as default
2704};

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.