
$(document).ready(function () {
    $(document).on('click', '#bookmarklink_wrapper a', function (e) {
        e.preventDefault();
        href = $(this).attr('href');
        $('#bookmarklink_wrapper').startLoad();
        $.ajax({
            url: href,
            type: 'GET',
            dataType: "html",
            cache: false,
            success: function (data) {
                //console.log(data)
                $('#bookmarklink_wrapper').stopLoad();
                $('#bookmarklink_wrapper').html($(data).filter('#bookmarklink_wrapper').html());
            }
        });
    });
    
    $(document).on('click', '#bookmarks_list a.remove', function (e) {
        e.preventDefault();
        href = $(this).attr('href');
        $('#bookmarks_list').startLoad();
        $.ajax({
            url: href,
            type: 'GET',
            dataType: "html",
            cache: false,
            success: function (data) {
                $('#bookmarks_list').stopLoad();
                $('#bookmarks_list').html($(data).find('#bookmarks_list').html());
            }
        });
    });
})

$.additionalSetupPage.push(function(){
    if($('.bookmark_caller').length){
        url = $('.bookmark_caller').attr('data-ref');
        params = [];
        params.push("tx_bookmarks_bookmark[controller]=Bookmark");
        params.push("tx_bookmarks_bookmark[page]="+encodeURI(window.location.href));
        params.push("tx_bookmarks_bookmark[title]="+encodeURI(document.title));
        url += "?"+encodeURI(params.join("&"));
        //console.log(url);
        $.ajax({
            url : url,
            type : "GET",
            cache: false,
            success: function(data){
                $('#bookmarklink_wrapper').html($(data).filter('#bookmarklink_wrapper').html())
            }
        })
    }
})
// ABLED / DISABLED LETTERS
updateLetterIndex = function () {
    //$('.linkslibrary_links_lettersec').addClass('disabled');
    $('.linkslibrary_letters_letter').addClass('disabled').each(function () {
        nl = $('.linkslibrary_links_lettersec[data-ref="' + $(this).attr('data-ref') + '"]').find('.linkslibrary_selectfilterob').length;
        ns = $('.linkslibrary_links_lettersec[data-ref="' + $(this).attr('data-ref') + '"]').find('.linkslibrary_selectfilterob:not(.notselected)').length;
        nf = $('.linkslibrary_links_lettersec[data-ref="' + $(this).attr('data-ref') + '"]').find('.linkslibrary_selectfilterob:not(.unsearched)').length;

        if (nl && ns && nf) {
            $(this).removeClass('disabled');
           // $('.linkslibrary_links_lettersec[data-ref="' + $(this).attr('data-ref') + '"]').removeClass('disabled');
        }

    });
}

// SET POSITION OF LETTER INDEX
scrollDirection = -2;
setlettersTop = function () {
    if (!$('.linkslibrary').length) return true;
    ptop = $('#header_menu_wrapper').height();
    
    $('.linkslibrary_letters_wrapper').each(function () {
        w = $(this).closest('.linkslibrary_links_wrapper');
        toT = $(this).offset().top;
        
        /** UNDER TOP EDGE **/
        if (w.offset().top > $(window).scrollTop()) {
            $(this).addClass('totop').removeClass('tobottom fixedtop');
            scrollDirection = 1;
        } 
        /** OVER TOP EDGE **/
        else if (w.offset().top + w.height() < $(window).height() + $(window).scrollTop()) {
            $(this).removeClass('totop fixedtop').addClass('tobottom');
            scrollDirection = -1;
        /** INSIDE WINDOW **/
        } else {
            /** COMING FROM ABOVE **/
            toR = $(window).width() - $(this).width() - $(this).offset().left;
                if(scrollDirection == 1){
                    $(this).css({top:  ptop, bottom: 'auto', right: toR})
                     $(this).removeClass('totop tobottom').addClass('fixedtop');
                    scrollDirection = 0;
                    /** COMING FROM BELOW **/
                }else if(scrollDirection == -1){
                    $(this).css({bottom: $(window).height() * 0.03, top: 'auto', right: toR})
                     $(this).removeClass('totop tobottom').addClass('fixedtop');
                    scrollDirection = 0;
                    /** LOADED INTO SCREEN **/
                }else if(scrollDirection == -2){
                    $(this).css({right: toR})
                    $(this).addClass('fixedtop');
                    scrollDirection = 0;
                }
               
        }
    })
    mh = $(window).height() -  ptop;
    $('.linkslibrary_letters_wrapper').css({
        'max-height': mh
    })
}

findActiveLetter = function () {
    $('.linkslibrary_letters_letter').removeClass('act');
    $('.linkslibrary_links_lettersec').each(function () {
        if ($(this).offset().top > $(window).scrollTop() + $('#mainheader').height()) {
            $('.linkslibrary_letters_letter[data-ref="' + $(this).attr('data-ref') + '"]').addClass('act');
            return false;
        }
    })
}

linkslibrarySetupPage = function () {

    $('.linkslibrary').selectFilters({
        afterChangeCallback: function () {
            updateLetterIndex();
        },
        afterSearchCallback: function () {
            updateLetterIndex();
        }
    })

    // INDEX LETTER FUNCTIONS
    updateLetterIndex();


    setlettersTop();
    $(window).scroll(function () {
        setlettersTop();
        findActiveLetter();
    })


    $(document).on('click', '.linkslibrary_letters_letter:not(".disabled")', function () {
        $('html,body').animate({
            scrollTop: $('.linkslibrary_links_lettersec[data-ref="' + $(this).text() + '"]').offset().top - $('#mainheader').height()
        }, 'fast')
    })

}

// ADD TO PAGE SETUP
if (typeof $.additionalSetupPage == 'undefined') {
    $(document).ready(function () {
        linkslibrarySetupPage();
    })
} else {
    $.additionalSetupPage.push(linkslibrarySetupPage);
}

// ADD TO PAGE RESIZE
if (typeof $.additionalResizePage == 'undefined') {
    $(window).resize(function () {
        setlettersTop();
    })
} else {
    $.additionalResizePage.push(setlettersTop);
}


!(function () {
  var t = {
      3821: function (t) {
        t.exports = function () {
          this.lang = {
            message:
              "We use cookies and other tracking technologies to personalize and improve your experience. By continuing to use our website you consent to this.",
            dismiss: "allow cookies",
            allow: "save",
            "allow-all": "allow all!",
            deny: "decline",
            policy: "Cookie Policy",
            link: "More info",
            dpRequire: "necessary",
            dpStatistik: "statistics",
            dpMarketing: "marketing",
            media: {
              notice: "Cookie Notice",
              desc: "Loading this resource will connect to external servers which use cookies and other tracking technologies to personalize and improve experience. Further information can be found in our privacy policy.",
              btn: "allow cookies and load this resource",
            },
          };
        };
      },
      9662: function (t, e, n) {
        var o = n(7854),
          r = n(614),
          i = n(6330),
          c = o.TypeError;
        t.exports = function (t) {
          if (r(t)) return t;
          throw c(i(t) + " is not a function");
        };
      },
      9483: function (t, e, n) {
        var o = n(7854),
          r = n(4411),
          i = n(6330),
          c = o.TypeError;
        t.exports = function (t) {
          if (r(t)) return t;
          throw c(i(t) + " is not a constructor");
        };
      },
      6077: function (t, e, n) {
        var o = n(7854),
          r = n(614),
          i = o.String,
          c = o.TypeError;
        t.exports = function (t) {
          if ("object" == typeof t || r(t)) return t;
          throw c("Can't set " + i(t) + " as a prototype");
        };
      },
      1223: function (t, e, n) {
        var o = n(5112),
          r = n(30),
          i = n(3070),
          c = o("unscopables"),
          a = Array.prototype;
        null == a[c] && i.f(a, c, { configurable: !0, value: r(null) }),
          (t.exports = function (t) {
            a[c][t] = !0;
          });
      },
      1530: function (t, e, n) {
        "use strict";
        var o = n(8710).charAt;
        t.exports = function (t, e, n) {
          return e + (n ? o(t, e).length : 1);
        };
      },
      9670: function (t, e, n) {
        var o = n(7854),
          r = n(111),
          i = o.String,
          c = o.TypeError;
        t.exports = function (t) {
          if (r(t)) return t;
          throw c(i(t) + " is not an object");
        };
      },
      8533: function (t, e, n) {
        "use strict";
        var o = n(2092).forEach,
          r = n(9341)("forEach");
        t.exports = r
          ? [].forEach
          : function (t) {
              return o(this, t, arguments.length > 1 ? arguments[1] : void 0);
            };
      },
      8457: function (t, e, n) {
        "use strict";
        var o = n(7854),
          r = n(9974),
          i = n(6916),
          c = n(7908),
          a = n(3411),
          s = n(7659),
          u = n(4411),
          l = n(6244),
          f = n(6135),
          p = n(8554),
          d = n(1246),
          v = o.Array;
        t.exports = function (t) {
          var e = c(t),
            n = u(this),
            o = arguments.length,
            h = o > 1 ? arguments[1] : void 0,
            y = void 0 !== h;
          y && (h = r(h, o > 2 ? arguments[2] : void 0));
          var g,
            b,
            m,
            x,
            k,
            w,
            S = d(e),
            E = 0;
          if (!S || (this == v && s(S)))
            for (g = l(e), b = n ? new this(g) : v(g); g > E; E++)
              (w = y ? h(e[E], E) : e[E]), f(b, E, w);
          else
            for (
              k = (x = p(e, S)).next, b = n ? new this() : [];
              !(m = i(k, x)).done;
              E++
            )
              (w = y ? a(x, h, [m.value, E], !0) : m.value), f(b, E, w);
          return (b.length = E), b;
        };
      },
      1318: function (t, e, n) {
        var o = n(5656),
          r = n(1400),
          i = n(6244),
          c = function (t) {
            return function (e, n, c) {
              var a,
                s = o(e),
                u = i(s),
                l = r(c, u);
              if (t && n != n) {
                for (; u > l; ) if ((a = s[l++]) != a) return !0;
              } else
                for (; u > l; l++)
                  if ((t || l in s) && s[l] === n) return t || l || 0;
              return !t && -1;
            };
          };
        t.exports = { includes: c(!0), indexOf: c(!1) };
      },
      2092: function (t, e, n) {
        var o = n(9974),
          r = n(1702),
          i = n(8361),
          c = n(7908),
          a = n(6244),
          s = n(5417),
          u = r([].push),
          l = function (t) {
            var e = 1 == t,
              n = 2 == t,
              r = 3 == t,
              l = 4 == t,
              f = 6 == t,
              p = 7 == t,
              d = 5 == t || f;
            return function (v, h, y, g) {
              for (
                var b,
                  m,
                  x = c(v),
                  k = i(x),
                  w = o(h, y),
                  S = a(k),
                  E = 0,
                  O = g || s,
                  A = e ? O(v, S) : n || p ? O(v, 0) : void 0;
                S > E;
                E++
              )
                if ((d || E in k) && ((m = w((b = k[E]), E, x)), t))
                  if (e) A[E] = m;
                  else if (m)
                    switch (t) {
                      case 3:
                        return !0;
                      case 5:
                        return b;
                      case 6:
                        return E;
                      case 2:
                        u(A, b);
                    }
                  else
                    switch (t) {
                      case 4:
                        return !1;
                      case 7:
                        u(A, b);
                    }
              return f ? -1 : r || l ? l : A;
            };
          };
        t.exports = {
          forEach: l(0),
          map: l(1),
          filter: l(2),
          some: l(3),
          every: l(4),
          find: l(5),
          findIndex: l(6),
          filterReject: l(7),
        };
      },
      1194: function (t, e, n) {
        var o = n(7293),
          r = n(5112),
          i = n(7392),
          c = r("species");
        t.exports = function (t) {
          return (
            i >= 51 ||
            !o(function () {
              var e = [];
              return (
                ((e.constructor = {})[c] = function () {
                  return { foo: 1 };
                }),
                1 !== e[t](Boolean).foo
              );
            })
          );
        };
      },
      9341: function (t, e, n) {
        "use strict";
        var o = n(7293);
        t.exports = function (t, e) {
          var n = [][t];
          return (
            !!n &&
            o(function () {
              n.call(
                null,
                e ||
                  function () {
                    throw 1;
                  },
                1
              );
            })
          );
        };
      },
      1589: function (t, e, n) {
        var o = n(7854),
          r = n(1400),
          i = n(6244),
          c = n(6135),
          a = o.Array,
          s = Math.max;
        t.exports = function (t, e, n) {
          for (
            var o = i(t),
              u = r(e, o),
              l = r(void 0 === n ? o : n, o),
              f = a(s(l - u, 0)),
              p = 0;
            u < l;
            u++, p++
          )
            c(f, p, t[u]);
          return (f.length = p), f;
        };
      },
      206: function (t, e, n) {
        var o = n(1702);
        t.exports = o([].slice);
      },
      7475: function (t, e, n) {
        var o = n(7854),
          r = n(3157),
          i = n(4411),
          c = n(111),
          a = n(5112)("species"),
          s = o.Array;
        t.exports = function (t) {
          var e;
          return (
            r(t) &&
              ((e = t.constructor),
              ((i(e) && (e === s || r(e.prototype))) ||
                (c(e) && null === (e = e[a]))) &&
                (e = void 0)),
            void 0 === e ? s : e
          );
        };
      },
      5417: function (t, e, n) {
        var o = n(7475);
        t.exports = function (t, e) {
          return new (o(t))(0 === e ? 0 : e);
        };
      },
      3411: function (t, e, n) {
        var o = n(9670),
          r = n(9212);
        t.exports = function (t, e, n, i) {
          try {
            return i ? e(o(n)[0], n[1]) : e(n);
          } catch (e) {
            r(t, "throw", e);
          }
        };
      },
      7072: function (t, e, n) {
        var o = n(5112)("iterator"),
          r = !1;
        try {
          var i = 0,
            c = {
              next: function () {
                return { done: !!i++ };
              },
              return: function () {
                r = !0;
              },
            };
          (c[o] = function () {
            return this;
          }),
            Array.from(c, function () {
              throw 2;
            });
        } catch (t) {}
        t.exports = function (t, e) {
          if (!e && !r) return !1;
          var n = !1;
          try {
            var i = {};
            (i[o] = function () {
              return {
                next: function () {
                  return { done: (n = !0) };
                },
              };
            }),
              t(i);
          } catch (t) {}
          return n;
        };
      },
      4326: function (t, e, n) {
        var o = n(1702),
          r = o({}.toString),
          i = o("".slice);
        t.exports = function (t) {
          return i(r(t), 8, -1);
        };
      },
      648: function (t, e, n) {
        var o = n(7854),
          r = n(1694),
          i = n(614),
          c = n(4326),
          a = n(5112)("toStringTag"),
          s = o.Object,
          u =
            "Arguments" ==
            c(
              (function () {
                return arguments;
              })()
            );
        t.exports = r
          ? c
          : function (t) {
              var e, n, o;
              return void 0 === t
                ? "Undefined"
                : null === t
                ? "Null"
                : "string" ==
                  typeof (n = (function (t, e) {
                    try {
                      return t[e];
                    } catch (t) {}
                  })((e = s(t)), a))
                ? n
                : u
                ? c(e)
                : "Object" == (o = c(e)) && i(e.callee)
                ? "Arguments"
                : o;
            };
      },
      9920: function (t, e, n) {
        var o = n(2597),
          r = n(3887),
          i = n(1236),
          c = n(3070);
        t.exports = function (t, e, n) {
          for (var a = r(e), s = c.f, u = i.f, l = 0; l < a.length; l++) {
            var f = a[l];
            o(t, f) || (n && o(n, f)) || s(t, f, u(e, f));
          }
        };
      },
      8544: function (t, e, n) {
        var o = n(7293);
        t.exports = !o(function () {
          function t() {}
          return (
            (t.prototype.constructor = null),
            Object.getPrototypeOf(new t()) !== t.prototype
          );
        });
      },
      4994: function (t, e, n) {
        "use strict";
        var o = n(3383).IteratorPrototype,
          r = n(30),
          i = n(9114),
          c = n(8003),
          a = n(7497),
          s = function () {
            return this;
          };
        t.exports = function (t, e, n, u) {
          var l = e + " Iterator";
          return (
            (t.prototype = r(o, { next: i(+!u, n) })),
            c(t, l, !1, !0),
            (a[l] = s),
            t
          );
        };
      },
      8880: function (t, e, n) {
        var o = n(9781),
          r = n(3070),
          i = n(9114);
        t.exports = o
          ? function (t, e, n) {
              return r.f(t, e, i(1, n));
            }
          : function (t, e, n) {
              return (t[e] = n), t;
            };
      },
      9114: function (t) {
        t.exports = function (t, e) {
          return {
            enumerable: !(1 & t),
            configurable: !(2 & t),
            writable: !(4 & t),
            value: e,
          };
        };
      },
      6135: function (t, e, n) {
        "use strict";
        var o = n(4948),
          r = n(3070),
          i = n(9114);
        t.exports = function (t, e, n) {
          var c = o(e);
          c in t ? r.f(t, c, i(0, n)) : (t[c] = n);
        };
      },
      654: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(6916),
          i = n(1913),
          c = n(6530),
          a = n(614),
          s = n(4994),
          u = n(9518),
          l = n(7674),
          f = n(8003),
          p = n(8880),
          d = n(1320),
          v = n(5112),
          h = n(7497),
          y = n(3383),
          g = c.PROPER,
          b = c.CONFIGURABLE,
          m = y.IteratorPrototype,
          x = y.BUGGY_SAFARI_ITERATORS,
          k = v("iterator"),
          w = "keys",
          S = "values",
          E = "entries",
          O = function () {
            return this;
          };
        t.exports = function (t, e, n, c, v, y, A) {
          s(n, e, c);
          var C,
            j,
            P,
            T = function (t) {
              if (t === v && M) return M;
              if (!x && t in I) return I[t];
              switch (t) {
                case w:
                case S:
                case E:
                  return function () {
                    return new n(this, t);
                  };
              }
              return function () {
                return new n(this);
              };
            },
            R = e + " Iterator",
            L = !1,
            I = t.prototype,
            B = I[k] || I["@@iterator"] || (v && I[v]),
            M = (!x && B) || T(v),
            N = ("Array" == e && I.entries) || B;
          if (
            (N &&
              (C = u(N.call(new t()))) !== Object.prototype &&
              C.next &&
              (i || u(C) === m || (l ? l(C, m) : a(C[k]) || d(C, k, O)),
              f(C, R, !0, !0),
              i && (h[R] = O)),
            g &&
              v == S &&
              B &&
              B.name !== S &&
              (!i && b
                ? p(I, "name", S)
                : ((L = !0),
                  (M = function () {
                    return r(B, this);
                  }))),
            v)
          )
            if (((j = { values: T(S), keys: y ? M : T(w), entries: T(E) }), A))
              for (P in j) (x || L || !(P in I)) && d(I, P, j[P]);
            else o({ target: e, proto: !0, forced: x || L }, j);
          return (
            (i && !A) || I[k] === M || d(I, k, M, { name: v }), (h[e] = M), j
          );
        };
      },
      7235: function (t, e, n) {
        var o = n(857),
          r = n(2597),
          i = n(6061),
          c = n(3070).f;
        t.exports = function (t) {
          var e = o.Symbol || (o.Symbol = {});
          r(e, t) || c(e, t, { value: i.f(t) });
        };
      },
      9781: function (t, e, n) {
        var o = n(7293);
        t.exports = !o(function () {
          return (
            7 !=
            Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              },
            })[1]
          );
        });
      },
      317: function (t, e, n) {
        var o = n(7854),
          r = n(111),
          i = o.document,
          c = r(i) && r(i.createElement);
        t.exports = function (t) {
          return c ? i.createElement(t) : {};
        };
      },
      8324: function (t) {
        t.exports = {
          CSSRuleList: 0,
          CSSStyleDeclaration: 0,
          CSSValueList: 0,
          ClientRectList: 0,
          DOMRectList: 0,
          DOMStringList: 0,
          DOMTokenList: 1,
          DataTransferItemList: 0,
          FileList: 0,
          HTMLAllCollection: 0,
          HTMLCollection: 0,
          HTMLFormElement: 0,
          HTMLSelectElement: 0,
          MediaList: 0,
          MimeTypeArray: 0,
          NamedNodeMap: 0,
          NodeList: 1,
          PaintRequestList: 0,
          Plugin: 0,
          PluginArray: 0,
          SVGLengthList: 0,
          SVGNumberList: 0,
          SVGPathSegList: 0,
          SVGPointList: 0,
          SVGStringList: 0,
          SVGTransformList: 0,
          SourceBufferList: 0,
          StyleSheetList: 0,
          TextTrackCueList: 0,
          TextTrackList: 0,
          TouchList: 0,
        };
      },
      8509: function (t, e, n) {
        var o = n(317)("span").classList,
          r = o && o.constructor && o.constructor.prototype;
        t.exports = r === Object.prototype ? void 0 : r;
      },
      8113: function (t, e, n) {
        var o = n(5005);
        t.exports = o("navigator", "userAgent") || "";
      },
      7392: function (t, e, n) {
        var o,
          r,
          i = n(7854),
          c = n(8113),
          a = i.process,
          s = i.Deno,
          u = (a && a.versions) || (s && s.version),
          l = u && u.v8;
        l && (r = (o = l.split("."))[0] > 0 && o[0] < 4 ? 1 : +(o[0] + o[1])),
          !r &&
            c &&
            (!(o = c.match(/Edge\/(\d+)/)) || o[1] >= 74) &&
            (o = c.match(/Chrome\/(\d+)/)) &&
            (r = +o[1]),
          (t.exports = r);
      },
      748: function (t) {
        t.exports = [
          "constructor",
          "hasOwnProperty",
          "isPrototypeOf",
          "propertyIsEnumerable",
          "toLocaleString",
          "toString",
          "valueOf",
        ];
      },
      2109: function (t, e, n) {
        var o = n(7854),
          r = n(1236).f,
          i = n(8880),
          c = n(1320),
          a = n(3505),
          s = n(9920),
          u = n(4705);
        t.exports = function (t, e) {
          var n,
            l,
            f,
            p,
            d,
            v = t.target,
            h = t.global,
            y = t.stat;
          if ((n = h ? o : y ? o[v] || a(v, {}) : (o[v] || {}).prototype))
            for (l in e) {
              if (
                ((p = e[l]),
                (f = t.noTargetGet ? (d = r(n, l)) && d.value : n[l]),
                !u(h ? l : v + (y ? "." : "#") + l, t.forced) && void 0 !== f)
              ) {
                if (typeof p == typeof f) continue;
                s(p, f);
              }
              (t.sham || (f && f.sham)) && i(p, "sham", !0), c(n, l, p, t);
            }
        };
      },
      7293: function (t) {
        t.exports = function (t) {
          try {
            return !!t();
          } catch (t) {
            return !0;
          }
        };
      },
      7007: function (t, e, n) {
        "use strict";
        n(4916);
        var o = n(1702),
          r = n(1320),
          i = n(2261),
          c = n(7293),
          a = n(5112),
          s = n(8880),
          u = a("species"),
          l = RegExp.prototype;
        t.exports = function (t, e, n, f) {
          var p = a(t),
            d = !c(function () {
              var e = {};
              return (
                (e[p] = function () {
                  return 7;
                }),
                7 != ""[t](e)
              );
            }),
            v =
              d &&
              !c(function () {
                var e = !1,
                  n = /a/;
                return (
                  "split" === t &&
                    (((n = {}).constructor = {}),
                    (n.constructor[u] = function () {
                      return n;
                    }),
                    (n.flags = ""),
                    (n[p] = /./[p])),
                  (n.exec = function () {
                    return (e = !0), null;
                  }),
                  n[p](""),
                  !e
                );
              });
          if (!d || !v || n) {
            var h = o(/./[p]),
              y = e(p, ""[t], function (t, e, n, r, c) {
                var a = o(t),
                  s = e.exec;
                return s === i || s === l.exec
                  ? d && !c
                    ? { done: !0, value: h(e, n, r) }
                    : { done: !0, value: a(n, e, r) }
                  : { done: !1 };
              });
            r(String.prototype, t, y[0]), r(l, p, y[1]);
          }
          f && s(l[p], "sham", !0);
        };
      },
      2104: function (t) {
        var e = Function.prototype,
          n = e.apply,
          o = e.bind,
          r = e.call;
        t.exports =
          ("object" == typeof Reflect && Reflect.apply) ||
          (o
            ? r.bind(n)
            : function () {
                return r.apply(n, arguments);
              });
      },
      9974: function (t, e, n) {
        var o = n(1702),
          r = n(9662),
          i = o(o.bind);
        t.exports = function (t, e) {
          return (
            r(t),
            void 0 === e
              ? t
              : i
              ? i(t, e)
              : function () {
                  return t.apply(e, arguments);
                }
          );
        };
      },
      6916: function (t) {
        var e = Function.prototype.call;
        t.exports = e.bind
          ? e.bind(e)
          : function () {
              return e.apply(e, arguments);
            };
      },
      6530: function (t, e, n) {
        var o = n(9781),
          r = n(2597),
          i = Function.prototype,
          c = o && Object.getOwnPropertyDescriptor,
          a = r(i, "name"),
          s = a && "something" === function () {}.name,
          u = a && (!o || (o && c(i, "name").configurable));
        t.exports = { EXISTS: a, PROPER: s, CONFIGURABLE: u };
      },
      1702: function (t) {
        var e = Function.prototype,
          n = e.bind,
          o = e.call,
          r = n && n.bind(o);
        t.exports = n
          ? function (t) {
              return t && r(o, t);
            }
          : function (t) {
              return (
                t &&
                function () {
                  return o.apply(t, arguments);
                }
              );
            };
      },
      5005: function (t, e, n) {
        var o = n(7854),
          r = n(614),
          i = function (t) {
            return r(t) ? t : void 0;
          };
        t.exports = function (t, e) {
          return arguments.length < 2 ? i(o[t]) : o[t] && o[t][e];
        };
      },
      1246: function (t, e, n) {
        var o = n(648),
          r = n(8173),
          i = n(7497),
          c = n(5112)("iterator");
        t.exports = function (t) {
          if (null != t) return r(t, c) || r(t, "@@iterator") || i[o(t)];
        };
      },
      8554: function (t, e, n) {
        var o = n(7854),
          r = n(6916),
          i = n(9662),
          c = n(9670),
          a = n(6330),
          s = n(1246),
          u = o.TypeError;
        t.exports = function (t, e) {
          var n = arguments.length < 2 ? s(t) : e;
          if (i(n)) return c(r(n, t));
          throw u(a(t) + " is not iterable");
        };
      },
      8173: function (t, e, n) {
        var o = n(9662);
        t.exports = function (t, e) {
          var n = t[e];
          return null == n ? void 0 : o(n);
        };
      },
      647: function (t, e, n) {
        var o = n(1702),
          r = n(7908),
          i = Math.floor,
          c = o("".charAt),
          a = o("".replace),
          s = o("".slice),
          u = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
          l = /\$([$&'`]|\d{1,2})/g;
        t.exports = function (t, e, n, o, f, p) {
          var d = n + t.length,
            v = o.length,
            h = l;
          return (
            void 0 !== f && ((f = r(f)), (h = u)),
            a(p, h, function (r, a) {
              var u;
              switch (c(a, 0)) {
                case "$":
                  return "$";
                case "&":
                  return t;
                case "`":
                  return s(e, 0, n);
                case "'":
                  return s(e, d);
                case "<":
                  u = f[s(a, 1, -1)];
                  break;
                default:
                  var l = +a;
                  if (0 === l) return r;
                  if (l > v) {
                    var p = i(l / 10);
                    return 0 === p
                      ? r
                      : p <= v
                      ? void 0 === o[p - 1]
                        ? c(a, 1)
                        : o[p - 1] + c(a, 1)
                      : r;
                  }
                  u = o[l - 1];
              }
              return void 0 === u ? "" : u;
            })
          );
        };
      },
      7854: function (t, e, n) {
        var o = function (t) {
          return t && t.Math == Math && t;
        };
        t.exports =
          o("object" == typeof globalThis && globalThis) ||
          o("object" == typeof window && window) ||
          o("object" == typeof self && self) ||
          o("object" == typeof n.g && n.g) ||
          (function () {
            return this;
          })() ||
          Function("return this")();
      },
      2597: function (t, e, n) {
        var o = n(1702),
          r = n(7908),
          i = o({}.hasOwnProperty);
        t.exports =
          Object.hasOwn ||
          function (t, e) {
            return i(r(t), e);
          };
      },
      3501: function (t) {
        t.exports = {};
      },
      490: function (t, e, n) {
        var o = n(5005);
        t.exports = o("document", "documentElement");
      },
      4664: function (t, e, n) {
        var o = n(9781),
          r = n(7293),
          i = n(317);
        t.exports =
          !o &&
          !r(function () {
            return (
              7 !=
              Object.defineProperty(i("div"), "a", {
                get: function () {
                  return 7;
                },
              }).a
            );
          });
      },
      8361: function (t, e, n) {
        var o = n(7854),
          r = n(1702),
          i = n(7293),
          c = n(4326),
          a = o.Object,
          s = r("".split);
        t.exports = i(function () {
          return !a("z").propertyIsEnumerable(0);
        })
          ? function (t) {
              return "String" == c(t) ? s(t, "") : a(t);
            }
          : a;
      },
      9587: function (t, e, n) {
        var o = n(614),
          r = n(111),
          i = n(7674);
        t.exports = function (t, e, n) {
          var c, a;
          return (
            i &&
              o((c = e.constructor)) &&
              c !== n &&
              r((a = c.prototype)) &&
              a !== n.prototype &&
              i(t, a),
            t
          );
        };
      },
      2788: function (t, e, n) {
        var o = n(1702),
          r = n(614),
          i = n(5465),
          c = o(Function.toString);
        r(i.inspectSource) ||
          (i.inspectSource = function (t) {
            return c(t);
          }),
          (t.exports = i.inspectSource);
      },
      9909: function (t, e, n) {
        var o,
          r,
          i,
          c = n(8536),
          a = n(7854),
          s = n(1702),
          u = n(111),
          l = n(8880),
          f = n(2597),
          p = n(5465),
          d = n(6200),
          v = n(3501),
          h = "Object already initialized",
          y = a.TypeError,
          g = a.WeakMap;
        if (c || p.state) {
          var b = p.state || (p.state = new g()),
            m = s(b.get),
            x = s(b.has),
            k = s(b.set);
          (o = function (t, e) {
            if (x(b, t)) throw new y(h);
            return (e.facade = t), k(b, t, e), e;
          }),
            (r = function (t) {
              return m(b, t) || {};
            }),
            (i = function (t) {
              return x(b, t);
            });
        } else {
          var w = d("state");
          (v[w] = !0),
            (o = function (t, e) {
              if (f(t, w)) throw new y(h);
              return (e.facade = t), l(t, w, e), e;
            }),
            (r = function (t) {
              return f(t, w) ? t[w] : {};
            }),
            (i = function (t) {
              return f(t, w);
            });
        }
        t.exports = {
          set: o,
          get: r,
          has: i,
          enforce: function (t) {
            return i(t) ? r(t) : o(t, {});
          },
          getterFor: function (t) {
            return function (e) {
              var n;
              if (!u(e) || (n = r(e)).type !== t)
                throw y("Incompatible receiver, " + t + " required");
              return n;
            };
          },
        };
      },
      7659: function (t, e, n) {
        var o = n(5112),
          r = n(7497),
          i = o("iterator"),
          c = Array.prototype;
        t.exports = function (t) {
          return void 0 !== t && (r.Array === t || c[i] === t);
        };
      },
      3157: function (t, e, n) {
        var o = n(4326);
        t.exports =
          Array.isArray ||
          function (t) {
            return "Array" == o(t);
          };
      },
      614: function (t) {
        t.exports = function (t) {
          return "function" == typeof t;
        };
      },
      4411: function (t, e, n) {
        var o = n(1702),
          r = n(7293),
          i = n(614),
          c = n(648),
          a = n(5005),
          s = n(2788),
          u = function () {},
          l = [],
          f = a("Reflect", "construct"),
          p = /^\s*(?:class|function)\b/,
          d = o(p.exec),
          v = !p.exec(u),
          h = function (t) {
            if (!i(t)) return !1;
            try {
              return f(u, l, t), !0;
            } catch (t) {
              return !1;
            }
          },
          y = function (t) {
            if (!i(t)) return !1;
            switch (c(t)) {
              case "AsyncFunction":
              case "GeneratorFunction":
              case "AsyncGeneratorFunction":
                return !1;
            }
            try {
              return v || !!d(p, s(t));
            } catch (t) {
              return !0;
            }
          };
        (y.sham = !0),
          (t.exports =
            !f ||
            r(function () {
              var t;
              return (
                h(h.call) ||
                !h(Object) ||
                !h(function () {
                  t = !0;
                }) ||
                t
              );
            })
              ? y
              : h);
      },
      4705: function (t, e, n) {
        var o = n(7293),
          r = n(614),
          i = /#|\.prototype\./,
          c = function (t, e) {
            var n = s[a(t)];
            return n == l || (n != u && (r(e) ? o(e) : !!e));
          },
          a = (c.normalize = function (t) {
            return String(t).replace(i, ".").toLowerCase();
          }),
          s = (c.data = {}),
          u = (c.NATIVE = "N"),
          l = (c.POLYFILL = "P");
        t.exports = c;
      },
      111: function (t, e, n) {
        var o = n(614);
        t.exports = function (t) {
          return "object" == typeof t ? null !== t : o(t);
        };
      },
      1913: function (t) {
        t.exports = !1;
      },
      7850: function (t, e, n) {
        var o = n(111),
          r = n(4326),
          i = n(5112)("match");
        t.exports = function (t) {
          var e;
          return o(t) && (void 0 !== (e = t[i]) ? !!e : "RegExp" == r(t));
        };
      },
      2190: function (t, e, n) {
        var o = n(7854),
          r = n(5005),
          i = n(614),
          c = n(7976),
          a = n(3307),
          s = o.Object;
        t.exports = a
          ? function (t) {
              return "symbol" == typeof t;
            }
          : function (t) {
              var e = r("Symbol");
              return i(e) && c(e.prototype, s(t));
            };
      },
      9212: function (t, e, n) {
        var o = n(6916),
          r = n(9670),
          i = n(8173);
        t.exports = function (t, e, n) {
          var c, a;
          r(t);
          try {
            if (!(c = i(t, "return"))) {
              if ("throw" === e) throw n;
              return n;
            }
            c = o(c, t);
          } catch (t) {
            (a = !0), (c = t);
          }
          if ("throw" === e) throw n;
          if (a) throw c;
          return r(c), n;
        };
      },
      3383: function (t, e, n) {
        "use strict";
        var o,
          r,
          i,
          c = n(7293),
          a = n(614),
          s = n(30),
          u = n(9518),
          l = n(1320),
          f = n(5112),
          p = n(1913),
          d = f("iterator"),
          v = !1;
        [].keys &&
          ("next" in (i = [].keys())
            ? (r = u(u(i))) !== Object.prototype && (o = r)
            : (v = !0)),
          null == o ||
          c(function () {
            var t = {};
            return o[d].call(t) !== t;
          })
            ? (o = {})
            : p && (o = s(o)),
          a(o[d]) ||
            l(o, d, function () {
              return this;
            }),
          (t.exports = { IteratorPrototype: o, BUGGY_SAFARI_ITERATORS: v });
      },
      7497: function (t) {
        t.exports = {};
      },
      6244: function (t, e, n) {
        var o = n(7466);
        t.exports = function (t) {
          return o(t.length);
        };
      },
      133: function (t, e, n) {
        var o = n(7392),
          r = n(7293);
        t.exports =
          !!Object.getOwnPropertySymbols &&
          !r(function () {
            var t = Symbol();
            return (
              !String(t) ||
              !(Object(t) instanceof Symbol) ||
              (!Symbol.sham && o && o < 41)
            );
          });
      },
      8536: function (t, e, n) {
        var o = n(7854),
          r = n(614),
          i = n(2788),
          c = o.WeakMap;
        t.exports = r(c) && /native code/.test(i(c));
      },
      30: function (t, e, n) {
        var o,
          r = n(9670),
          i = n(6048),
          c = n(748),
          a = n(3501),
          s = n(490),
          u = n(317),
          l = n(6200),
          f = l("IE_PROTO"),
          p = function () {},
          d = function (t) {
            return "<script>" + t + "</" + "script>";
          },
          v = function (t) {
            t.write(d("")), t.close();
            var e = t.parentWindow.Object;
            return (t = null), e;
          },
          h = function () {
            try {
              o = new ActiveXObject("htmlfile");
            } catch (t) {}
            var t, e;
            h =
              "undefined" != typeof document
                ? document.domain && o
                  ? v(o)
                  : (((e = u("iframe")).style.display = "none"),
                    s.appendChild(e),
                    (e.src = String("javascript:")),
                    (t = e.contentWindow.document).open(),
                    t.write(d("document.F=Object")),
                    t.close(),
                    t.F)
                : v(o);
            for (var n = c.length; n--; ) delete h.prototype[c[n]];
            return h();
          };
        (a[f] = !0),
          (t.exports =
            Object.create ||
            function (t, e) {
              var n;
              return (
                null !== t
                  ? ((p.prototype = r(t)),
                    (n = new p()),
                    (p.prototype = null),
                    (n[f] = t))
                  : (n = h()),
                void 0 === e ? n : i(n, e)
              );
            });
      },
      6048: function (t, e, n) {
        var o = n(9781),
          r = n(3070),
          i = n(9670),
          c = n(5656),
          a = n(1956);
        t.exports = o
          ? Object.defineProperties
          : function (t, e) {
              i(t);
              for (var n, o = c(e), s = a(e), u = s.length, l = 0; u > l; )
                r.f(t, (n = s[l++]), o[n]);
              return t;
            };
      },
      3070: function (t, e, n) {
        var o = n(7854),
          r = n(9781),
          i = n(4664),
          c = n(9670),
          a = n(4948),
          s = o.TypeError,
          u = Object.defineProperty;
        e.f = r
          ? u
          : function (t, e, n) {
              if ((c(t), (e = a(e)), c(n), i))
                try {
                  return u(t, e, n);
                } catch (t) {}
              if ("get" in n || "set" in n) throw s("Accessors not supported");
              return "value" in n && (t[e] = n.value), t;
            };
      },
      1236: function (t, e, n) {
        var o = n(9781),
          r = n(6916),
          i = n(5296),
          c = n(9114),
          a = n(5656),
          s = n(4948),
          u = n(2597),
          l = n(4664),
          f = Object.getOwnPropertyDescriptor;
        e.f = o
          ? f
          : function (t, e) {
              if (((t = a(t)), (e = s(e)), l))
                try {
                  return f(t, e);
                } catch (t) {}
              if (u(t, e)) return c(!r(i.f, t, e), t[e]);
            };
      },
      1156: function (t, e, n) {
        var o = n(4326),
          r = n(5656),
          i = n(8006).f,
          c = n(1589),
          a =
            "object" == typeof window && window && Object.getOwnPropertyNames
              ? Object.getOwnPropertyNames(window)
              : [];
        t.exports.f = function (t) {
          return a && "Window" == o(t)
            ? (function (t) {
                try {
                  return i(t);
                } catch (t) {
                  return c(a);
                }
              })(t)
            : i(r(t));
        };
      },
      8006: function (t, e, n) {
        var o = n(6324),
          r = n(748).concat("length", "prototype");
        e.f =
          Object.getOwnPropertyNames ||
          function (t) {
            return o(t, r);
          };
      },
      5181: function (t, e) {
        e.f = Object.getOwnPropertySymbols;
      },
      9518: function (t, e, n) {
        var o = n(7854),
          r = n(2597),
          i = n(614),
          c = n(7908),
          a = n(6200),
          s = n(8544),
          u = a("IE_PROTO"),
          l = o.Object,
          f = l.prototype;
        t.exports = s
          ? l.getPrototypeOf
          : function (t) {
              var e = c(t);
              if (r(e, u)) return e[u];
              var n = e.constructor;
              return i(n) && e instanceof n
                ? n.prototype
                : e instanceof l
                ? f
                : null;
            };
      },
      7976: function (t, e, n) {
        var o = n(1702);
        t.exports = o({}.isPrototypeOf);
      },
      6324: function (t, e, n) {
        var o = n(1702),
          r = n(2597),
          i = n(5656),
          c = n(1318).indexOf,
          a = n(3501),
          s = o([].push);
        t.exports = function (t, e) {
          var n,
            o = i(t),
            u = 0,
            l = [];
          for (n in o) !r(a, n) && r(o, n) && s(l, n);
          for (; e.length > u; ) r(o, (n = e[u++])) && (~c(l, n) || s(l, n));
          return l;
        };
      },
      1956: function (t, e, n) {
        var o = n(6324),
          r = n(748);
        t.exports =
          Object.keys ||
          function (t) {
            return o(t, r);
          };
      },
      5296: function (t, e) {
        "use strict";
        var n = {}.propertyIsEnumerable,
          o = Object.getOwnPropertyDescriptor,
          r = o && !n.call({ 1: 2 }, 1);
        e.f = r
          ? function (t) {
              var e = o(this, t);
              return !!e && e.enumerable;
            }
          : n;
      },
      7674: function (t, e, n) {
        var o = n(1702),
          r = n(9670),
          i = n(6077);
        t.exports =
          Object.setPrototypeOf ||
          ("__proto__" in {}
            ? (function () {
                var t,
                  e = !1,
                  n = {};
                try {
                  (t = o(
                    Object.getOwnPropertyDescriptor(
                      Object.prototype,
                      "__proto__"
                    ).set
                  ))(n, []),
                    (e = n instanceof Array);
                } catch (t) {}
                return function (n, o) {
                  return r(n), i(o), e ? t(n, o) : (n.__proto__ = o), n;
                };
              })()
            : void 0);
      },
      4699: function (t, e, n) {
        var o = n(9781),
          r = n(1702),
          i = n(1956),
          c = n(5656),
          a = r(n(5296).f),
          s = r([].push),
          u = function (t) {
            return function (e) {
              for (
                var n, r = c(e), u = i(r), l = u.length, f = 0, p = [];
                l > f;

              )
                (n = u[f++]), (o && !a(r, n)) || s(p, t ? [n, r[n]] : r[n]);
              return p;
            };
          };
        t.exports = { entries: u(!0), values: u(!1) };
      },
      288: function (t, e, n) {
        "use strict";
        var o = n(1694),
          r = n(648);
        t.exports = o
          ? {}.toString
          : function () {
              return "[object " + r(this) + "]";
            };
      },
      2140: function (t, e, n) {
        var o = n(7854),
          r = n(6916),
          i = n(614),
          c = n(111),
          a = o.TypeError;
        t.exports = function (t, e) {
          var n, o;
          if ("string" === e && i((n = t.toString)) && !c((o = r(n, t))))
            return o;
          if (i((n = t.valueOf)) && !c((o = r(n, t)))) return o;
          if ("string" !== e && i((n = t.toString)) && !c((o = r(n, t))))
            return o;
          throw a("Can't convert object to primitive value");
        };
      },
      3887: function (t, e, n) {
        var o = n(5005),
          r = n(1702),
          i = n(8006),
          c = n(5181),
          a = n(9670),
          s = r([].concat);
        t.exports =
          o("Reflect", "ownKeys") ||
          function (t) {
            var e = i.f(a(t)),
              n = c.f;
            return n ? s(e, n(t)) : e;
          };
      },
      857: function (t, e, n) {
        var o = n(7854);
        t.exports = o;
      },
      1320: function (t, e, n) {
        var o = n(7854),
          r = n(614),
          i = n(2597),
          c = n(8880),
          a = n(3505),
          s = n(2788),
          u = n(9909),
          l = n(6530).CONFIGURABLE,
          f = u.get,
          p = u.enforce,
          d = String(String).split("String");
        (t.exports = function (t, e, n, s) {
          var u,
            f = !!s && !!s.unsafe,
            v = !!s && !!s.enumerable,
            h = !!s && !!s.noTargetGet,
            y = s && void 0 !== s.name ? s.name : e;
          r(n) &&
            ("Symbol(" === String(y).slice(0, 7) &&
              (y = "[" + String(y).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"),
            (!i(n, "name") || (l && n.name !== y)) && c(n, "name", y),
            (u = p(n)).source ||
              (u.source = d.join("string" == typeof y ? y : ""))),
            t !== o
              ? (f ? !h && t[e] && (v = !0) : delete t[e],
                v ? (t[e] = n) : c(t, e, n))
              : v
              ? (t[e] = n)
              : a(e, n);
        })(Function.prototype, "toString", function () {
          return (r(this) && f(this).source) || s(this);
        });
      },
      7651: function (t, e, n) {
        var o = n(7854),
          r = n(6916),
          i = n(9670),
          c = n(614),
          a = n(4326),
          s = n(2261),
          u = o.TypeError;
        t.exports = function (t, e) {
          var n = t.exec;
          if (c(n)) {
            var o = r(n, t, e);
            return null !== o && i(o), o;
          }
          if ("RegExp" === a(t)) return r(s, t, e);
          throw u("RegExp#exec called on incompatible receiver");
        };
      },
      2261: function (t, e, n) {
        "use strict";
        var o,
          r,
          i = n(6916),
          c = n(1702),
          a = n(1340),
          s = n(7066),
          u = n(2999),
          l = n(2309),
          f = n(30),
          p = n(9909).get,
          d = n(9441),
          v = n(7168),
          h = l("native-string-replace", String.prototype.replace),
          y = RegExp.prototype.exec,
          g = y,
          b = c("".charAt),
          m = c("".indexOf),
          x = c("".replace),
          k = c("".slice),
          w =
            ((r = /b*/g),
            i(y, (o = /a/), "a"),
            i(y, r, "a"),
            0 !== o.lastIndex || 0 !== r.lastIndex),
          S = u.BROKEN_CARET,
          E = void 0 !== /()??/.exec("")[1];
        (w || E || S || d || v) &&
          (g = function (t) {
            var e,
              n,
              o,
              r,
              c,
              u,
              l,
              d = this,
              v = p(d),
              O = a(t),
              A = v.raw;
            if (A)
              return (
                (A.lastIndex = d.lastIndex),
                (e = i(g, A, O)),
                (d.lastIndex = A.lastIndex),
                e
              );
            var C = v.groups,
              j = S && d.sticky,
              P = i(s, d),
              T = d.source,
              R = 0,
              L = O;
            if (
              (j &&
                ((P = x(P, "y", "")),
                -1 === m(P, "g") && (P += "g"),
                (L = k(O, d.lastIndex)),
                d.lastIndex > 0 &&
                  (!d.multiline ||
                    (d.multiline && "\n" !== b(O, d.lastIndex - 1))) &&
                  ((T = "(?: " + T + ")"), (L = " " + L), R++),
                (n = new RegExp("^(?:" + T + ")", P))),
              E && (n = new RegExp("^" + T + "$(?!\\s)", P)),
              w && (o = d.lastIndex),
              (r = i(y, j ? n : d, L)),
              j
                ? r
                  ? ((r.input = k(r.input, R)),
                    (r[0] = k(r[0], R)),
                    (r.index = d.lastIndex),
                    (d.lastIndex += r[0].length))
                  : (d.lastIndex = 0)
                : w &&
                  r &&
                  (d.lastIndex = d.global ? r.index + r[0].length : o),
              E &&
                r &&
                r.length > 1 &&
                i(h, r[0], n, function () {
                  for (c = 1; c < arguments.length - 2; c++)
                    void 0 === arguments[c] && (r[c] = void 0);
                }),
              r && C)
            )
              for (r.groups = u = f(null), c = 0; c < C.length; c++)
                u[(l = C[c])[0]] = r[l[1]];
            return r;
          }),
          (t.exports = g);
      },
      7066: function (t, e, n) {
        "use strict";
        var o = n(9670);
        t.exports = function () {
          var t = o(this),
            e = "";
          return (
            t.global && (e += "g"),
            t.ignoreCase && (e += "i"),
            t.multiline && (e += "m"),
            t.dotAll && (e += "s"),
            t.unicode && (e += "u"),
            t.sticky && (e += "y"),
            e
          );
        };
      },
      2999: function (t, e, n) {
        var o = n(7293),
          r = n(7854).RegExp,
          i = o(function () {
            var t = r("a", "y");
            return (t.lastIndex = 2), null != t.exec("abcd");
          }),
          c =
            i ||
            o(function () {
              return !r("a", "y").sticky;
            }),
          a =
            i ||
            o(function () {
              var t = r("^r", "gy");
              return (t.lastIndex = 2), null != t.exec("str");
            });
        t.exports = { BROKEN_CARET: a, MISSED_STICKY: c, UNSUPPORTED_Y: i };
      },
      9441: function (t, e, n) {
        var o = n(7293),
          r = n(7854).RegExp;
        t.exports = o(function () {
          var t = r(".", "s");
          return !(t.dotAll && t.exec("\n") && "s" === t.flags);
        });
      },
      7168: function (t, e, n) {
        var o = n(7293),
          r = n(7854).RegExp;
        t.exports = o(function () {
          var t = r("(?<a>b)", "g");
          return (
            "b" !== t.exec("b").groups.a || "bc" !== "b".replace(t, "$<a>c")
          );
        });
      },
      4488: function (t, e, n) {
        var o = n(7854).TypeError;
        t.exports = function (t) {
          if (null == t) throw o("Can't call method on " + t);
          return t;
        };
      },
      3505: function (t, e, n) {
        var o = n(7854),
          r = Object.defineProperty;
        t.exports = function (t, e) {
          try {
            r(o, t, { value: e, configurable: !0, writable: !0 });
          } catch (n) {
            o[t] = e;
          }
          return e;
        };
      },
      6340: function (t, e, n) {
        "use strict";
        var o = n(5005),
          r = n(3070),
          i = n(5112),
          c = n(9781),
          a = i("species");
        t.exports = function (t) {
          var e = o(t),
            n = r.f;
          c &&
            e &&
            !e[a] &&
            n(e, a, {
              configurable: !0,
              get: function () {
                return this;
              },
            });
        };
      },
      8003: function (t, e, n) {
        var o = n(3070).f,
          r = n(2597),
          i = n(5112)("toStringTag");
        t.exports = function (t, e, n) {
          t && !n && (t = t.prototype),
            t && !r(t, i) && o(t, i, { configurable: !0, value: e });
        };
      },
      6200: function (t, e, n) {
        var o = n(2309),
          r = n(9711),
          i = o("keys");
        t.exports = function (t) {
          return i[t] || (i[t] = r(t));
        };
      },
      5465: function (t, e, n) {
        var o = n(7854),
          r = n(3505),
          i = "__core-js_shared__",
          c = o[i] || r(i, {});
        t.exports = c;
      },
      2309: function (t, e, n) {
        var o = n(1913),
          r = n(5465);
        (t.exports = function (t, e) {
          return r[t] || (r[t] = void 0 !== e ? e : {});
        })("versions", []).push({
          version: "3.20.1",
          mode: o ? "pure" : "global",
          copyright: "© 2021 Denis Pushkarev (zloirock.ru)",
        });
      },
      6707: function (t, e, n) {
        var o = n(9670),
          r = n(9483),
          i = n(5112)("species");
        t.exports = function (t, e) {
          var n,
            c = o(t).constructor;
          return void 0 === c || null == (n = o(c)[i]) ? e : r(n);
        };
      },
      8710: function (t, e, n) {
        var o = n(1702),
          r = n(9303),
          i = n(1340),
          c = n(4488),
          a = o("".charAt),
          s = o("".charCodeAt),
          u = o("".slice),
          l = function (t) {
            return function (e, n) {
              var o,
                l,
                f = i(c(e)),
                p = r(n),
                d = f.length;
              return p < 0 || p >= d
                ? t
                  ? ""
                  : void 0
                : (o = s(f, p)) < 55296 ||
                  o > 56319 ||
                  p + 1 === d ||
                  (l = s(f, p + 1)) < 56320 ||
                  l > 57343
                ? t
                  ? a(f, p)
                  : o
                : t
                ? u(f, p, p + 2)
                : l - 56320 + ((o - 55296) << 10) + 65536;
            };
          };
        t.exports = { codeAt: l(!1), charAt: l(!0) };
      },
      6091: function (t, e, n) {
        var o = n(6530).PROPER,
          r = n(7293),
          i = n(1361);
        t.exports = function (t) {
          return r(function () {
            return !!i[t]() || "​᠎" !== "​᠎"[t]() || (o && i[t].name !== t);
          });
        };
      },
      3111: function (t, e, n) {
        var o = n(1702),
          r = n(4488),
          i = n(1340),
          c = n(1361),
          a = o("".replace),
          s = "[" + c + "]",
          u = RegExp("^" + s + s + "*"),
          l = RegExp(s + s + "*$"),
          f = function (t) {
            return function (e) {
              var n = i(r(e));
              return 1 & t && (n = a(n, u, "")), 2 & t && (n = a(n, l, "")), n;
            };
          };
        t.exports = { start: f(1), end: f(2), trim: f(3) };
      },
      1400: function (t, e, n) {
        var o = n(9303),
          r = Math.max,
          i = Math.min;
        t.exports = function (t, e) {
          var n = o(t);
          return n < 0 ? r(n + e, 0) : i(n, e);
        };
      },
      5656: function (t, e, n) {
        var o = n(8361),
          r = n(4488);
        t.exports = function (t) {
          return o(r(t));
        };
      },
      9303: function (t) {
        var e = Math.ceil,
          n = Math.floor;
        t.exports = function (t) {
          var o = +t;
          return o != o || 0 === o ? 0 : (o > 0 ? n : e)(o);
        };
      },
      7466: function (t, e, n) {
        var o = n(9303),
          r = Math.min;
        t.exports = function (t) {
          return t > 0 ? r(o(t), 9007199254740991) : 0;
        };
      },
      7908: function (t, e, n) {
        var o = n(7854),
          r = n(4488),
          i = o.Object;
        t.exports = function (t) {
          return i(r(t));
        };
      },
      7593: function (t, e, n) {
        var o = n(7854),
          r = n(6916),
          i = n(111),
          c = n(2190),
          a = n(8173),
          s = n(2140),
          u = n(5112),
          l = o.TypeError,
          f = u("toPrimitive");
        t.exports = function (t, e) {
          if (!i(t) || c(t)) return t;
          var n,
            o = a(t, f);
          if (o) {
            if (
              (void 0 === e && (e = "default"), (n = r(o, t, e)), !i(n) || c(n))
            )
              return n;
            throw l("Can't convert object to primitive value");
          }
          return void 0 === e && (e = "number"), s(t, e);
        };
      },
      4948: function (t, e, n) {
        var o = n(7593),
          r = n(2190);
        t.exports = function (t) {
          var e = o(t, "string");
          return r(e) ? e : e + "";
        };
      },
      1694: function (t, e, n) {
        var o = {};
        (o[n(5112)("toStringTag")] = "z"),
          (t.exports = "[object z]" === String(o));
      },
      1340: function (t, e, n) {
        var o = n(7854),
          r = n(648),
          i = o.String;
        t.exports = function (t) {
          if ("Symbol" === r(t))
            throw TypeError("Cannot convert a Symbol value to a string");
          return i(t);
        };
      },
      6330: function (t, e, n) {
        var o = n(7854).String;
        t.exports = function (t) {
          try {
            return o(t);
          } catch (t) {
            return "Object";
          }
        };
      },
      9711: function (t, e, n) {
        var o = n(1702),
          r = 0,
          i = Math.random(),
          c = o((1).toString);
        t.exports = function (t) {
          return "Symbol(" + (void 0 === t ? "" : t) + ")_" + c(++r + i, 36);
        };
      },
      3307: function (t, e, n) {
        var o = n(133);
        t.exports = o && !Symbol.sham && "symbol" == typeof Symbol.iterator;
      },
      6061: function (t, e, n) {
        var o = n(5112);
        e.f = o;
      },
      5112: function (t, e, n) {
        var o = n(7854),
          r = n(2309),
          i = n(2597),
          c = n(9711),
          a = n(133),
          s = n(3307),
          u = r("wks"),
          l = o.Symbol,
          f = l && l.for,
          p = s ? l : (l && l.withoutSetter) || c;
        t.exports = function (t) {
          if (!i(u, t) || (!a && "string" != typeof u[t])) {
            var e = "Symbol." + t;
            a && i(l, t) ? (u[t] = l[t]) : (u[t] = s && f ? f(e) : p(e));
          }
          return u[t];
        };
      },
      1361: function (t) {
        t.exports = "\t\n\v\f\r                　\u2028\u2029\ufeff";
      },
      1038: function (t, e, n) {
        var o = n(2109),
          r = n(8457);
        o(
          {
            target: "Array",
            stat: !0,
            forced: !n(7072)(function (t) {
              Array.from(t);
            }),
          },
          { from: r }
        );
      },
      6992: function (t, e, n) {
        "use strict";
        var o = n(5656),
          r = n(1223),
          i = n(7497),
          c = n(9909),
          a = n(3070).f,
          s = n(654),
          u = n(1913),
          l = n(9781),
          f = "Array Iterator",
          p = c.set,
          d = c.getterFor(f);
        t.exports = s(
          Array,
          "Array",
          function (t, e) {
            p(this, { type: f, target: o(t), index: 0, kind: e });
          },
          function () {
            var t = d(this),
              e = t.target,
              n = t.kind,
              o = t.index++;
            return !e || o >= e.length
              ? ((t.target = void 0), { value: void 0, done: !0 })
              : "keys" == n
              ? { value: o, done: !1 }
              : "values" == n
              ? { value: e[o], done: !1 }
              : { value: [o, e[o]], done: !1 };
          },
          "values"
        );
        var v = (i.Arguments = i.Array);
        if (
          (r("keys"), r("values"), r("entries"), !u && l && "values" !== v.name)
        )
          try {
            a(v, "name", { value: "values" });
          } catch (t) {}
      },
      9600: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(1702),
          i = n(8361),
          c = n(5656),
          a = n(9341),
          s = r([].join),
          u = i != Object,
          l = a("join", ",");
        o(
          { target: "Array", proto: !0, forced: u || !l },
          {
            join: function (t) {
              return s(c(this), void 0 === t ? "," : t);
            },
          }
        );
      },
      1249: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(2092).map;
        o(
          { target: "Array", proto: !0, forced: !n(1194)("map") },
          {
            map: function (t) {
              return r(this, t, arguments.length > 1 ? arguments[1] : void 0);
            },
          }
        );
      },
      7042: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(7854),
          i = n(3157),
          c = n(4411),
          a = n(111),
          s = n(1400),
          u = n(6244),
          l = n(5656),
          f = n(6135),
          p = n(5112),
          d = n(1194),
          v = n(206),
          h = d("slice"),
          y = p("species"),
          g = r.Array,
          b = Math.max;
        o(
          { target: "Array", proto: !0, forced: !h },
          {
            slice: function (t, e) {
              var n,
                o,
                r,
                p = l(this),
                d = u(p),
                h = s(t, d),
                m = s(void 0 === e ? d : e, d);
              if (
                i(p) &&
                ((n = p.constructor),
                ((c(n) && (n === g || i(n.prototype))) ||
                  (a(n) && null === (n = n[y]))) &&
                  (n = void 0),
                n === g || void 0 === n)
              )
                return v(p, h, m);
              for (
                o = new (void 0 === n ? g : n)(b(m - h, 0)), r = 0;
                h < m;
                h++, r++
              )
                h in p && f(o, r, p[h]);
              return (o.length = r), o;
            },
          }
        );
      },
      8309: function (t, e, n) {
        var o = n(9781),
          r = n(6530).EXISTS,
          i = n(1702),
          c = n(3070).f,
          a = Function.prototype,
          s = i(a.toString),
          u =
            /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,
          l = i(u.exec);
        o &&
          !r &&
          c(a, "name", {
            configurable: !0,
            get: function () {
              try {
                return l(u, s(this))[1];
              } catch (t) {
                return "";
              }
            },
          });
      },
      9720: function (t, e, n) {
        var o = n(2109),
          r = n(4699).entries;
        o(
          { target: "Object", stat: !0 },
          {
            entries: function (t) {
              return r(t);
            },
          }
        );
      },
      1539: function (t, e, n) {
        var o = n(1694),
          r = n(1320),
          i = n(288);
        o || r(Object.prototype, "toString", i, { unsafe: !0 });
      },
      4603: function (t, e, n) {
        var o = n(9781),
          r = n(7854),
          i = n(1702),
          c = n(4705),
          a = n(9587),
          s = n(8880),
          u = n(3070).f,
          l = n(8006).f,
          f = n(7976),
          p = n(7850),
          d = n(1340),
          v = n(7066),
          h = n(2999),
          y = n(1320),
          g = n(7293),
          b = n(2597),
          m = n(9909).enforce,
          x = n(6340),
          k = n(5112),
          w = n(9441),
          S = n(7168),
          E = k("match"),
          O = r.RegExp,
          A = O.prototype,
          C = r.SyntaxError,
          j = i(v),
          P = i(A.exec),
          T = i("".charAt),
          R = i("".replace),
          L = i("".indexOf),
          I = i("".slice),
          B = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,
          M = /a/g,
          N = /a/g,
          _ = new O(M) !== M,
          D = h.MISSED_STICKY,
          F = h.UNSUPPORTED_Y,
          G =
            o &&
            (!_ ||
              D ||
              w ||
              S ||
              g(function () {
                return (
                  (N[E] = !1), O(M) != M || O(N) == N || "/a/i" != O(M, "i")
                );
              }));
        if (c("RegExp", G)) {
          for (
            var H = function (t, e) {
                var n,
                  o,
                  r,
                  i,
                  c,
                  u,
                  l = f(A, this),
                  v = p(t),
                  h = void 0 === e,
                  y = [],
                  g = t;
                if (!l && v && h && t.constructor === H) return t;
                if (
                  ((v || f(A, t)) &&
                    ((t = t.source),
                    h && (e = ("flags" in g) ? g.flags : j(g))),
                  (t = void 0 === t ? "" : d(t)),
                  (e = void 0 === e ? "" : d(e)),
                  (g = t),
                  w &&
                    ("dotAll" in M) &&
                    (o = !!e && L(e, "s") > -1) &&
                    (e = R(e, /s/g, "")),
                  (n = e),
                  D &&
                    ("sticky" in M) &&
                    (r = !!e && L(e, "y") > -1) &&
                    F &&
                    (e = R(e, /y/g, "")),
                  S &&
                    ((i = (function (t) {
                      for (
                        var e,
                          n = t.length,
                          o = 0,
                          r = "",
                          i = [],
                          c = {},
                          a = !1,
                          s = !1,
                          u = 0,
                          l = "";
                        o <= n;
                        o++
                      ) {
                        if ("\\" === (e = T(t, o))) e += T(t, ++o);
                        else if ("]" === e) a = !1;
                        else if (!a)
                          switch (!0) {
                            case "[" === e:
                              a = !0;
                              break;
                            case "(" === e:
                              P(B, I(t, o + 1)) && ((o += 2), (s = !0)),
                                (r += e),
                                u++;
                              continue;
                            case ">" === e && s:
                              if ("" === l || b(c, l))
                                throw new C("Invalid capture group name");
                              (c[l] = !0),
                                (i[i.length] = [l, u]),
                                (s = !1),
                                (l = "");
                              continue;
                          }
                        s ? (l += e) : (r += e);
                      }
                      return [r, i];
                    })(t)),
                    (t = i[0]),
                    (y = i[1])),
                  (c = a(O(t, e), l ? this : A, H)),
                  (o || r || y.length) &&
                    ((u = m(c)),
                    o &&
                      ((u.dotAll = !0),
                      (u.raw = H(
                        (function (t) {
                          for (
                            var e, n = t.length, o = 0, r = "", i = !1;
                            o <= n;
                            o++
                          )
                            "\\" !== (e = T(t, o))
                              ? i || "." !== e
                                ? ("[" === e ? (i = !0) : "]" === e && (i = !1),
                                  (r += e))
                                : (r += "[\\s\\S]")
                              : (r += e + T(t, ++o));
                          return r;
                        })(t),
                        n
                      ))),
                    r && (u.sticky = !0),
                    y.length && (u.groups = y)),
                  t !== g)
                )
                  try {
                    s(c, "source", "" === g ? "(?:)" : g);
                  } catch (t) {}
                return c;
              },
              $ = function (t) {
                (t in H) ||
                  u(H, t, {
                    configurable: !0,
                    get: function () {
                      return O[t];
                    },
                    set: function (e) {
                      O[t] = e;
                    },
                  });
              },
              q = l(O),
              U = 0;
            q.length > U;

          )
            $(q[U++]);
          (A.constructor = H), (H.prototype = A), y(r, "RegExp", H);
        }
        x("RegExp");
      },
      4916: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(2261);
        o({ target: "RegExp", proto: !0, forced: /./.exec !== r }, { exec: r });
      },
      9714: function (t, e, n) {
        "use strict";
        var o = n(1702),
          r = n(6530).PROPER,
          i = n(1320),
          c = n(9670),
          a = n(7976),
          s = n(1340),
          u = n(7293),
          l = n(7066),
          f = "toString",
          p = RegExp.prototype,
          d = p.toString,
          v = o(l),
          h = u(function () {
            return "/a/b" != d.call({ source: "a", flags: "b" });
          }),
          y = r && d.name != f;
        (h || y) &&
          i(
            RegExp.prototype,
            f,
            function () {
              var t = c(this),
                e = s(t.source),
                n = t.flags;
              return (
                "/" +
                e +
                "/" +
                s(void 0 === n && a(p, t) && !("flags" in p) ? v(t) : n)
              );
            },
            { unsafe: !0 }
          );
      },
      8783: function (t, e, n) {
        "use strict";
        var o = n(8710).charAt,
          r = n(1340),
          i = n(9909),
          c = n(654),
          a = "String Iterator",
          s = i.set,
          u = i.getterFor(a);
        c(
          String,
          "String",
          function (t) {
            s(this, { type: a, string: r(t), index: 0 });
          },
          function () {
            var t,
              e = u(this),
              n = e.string,
              r = e.index;
            return r >= n.length
              ? { value: void 0, done: !0 }
              : ((t = o(n, r)), (e.index += t.length), { value: t, done: !1 });
          }
        );
      },
      5306: function (t, e, n) {
        "use strict";
        var o = n(2104),
          r = n(6916),
          i = n(1702),
          c = n(7007),
          a = n(7293),
          s = n(9670),
          u = n(614),
          l = n(9303),
          f = n(7466),
          p = n(1340),
          d = n(4488),
          v = n(1530),
          h = n(8173),
          y = n(647),
          g = n(7651),
          b = n(5112)("replace"),
          m = Math.max,
          x = Math.min,
          k = i([].concat),
          w = i([].push),
          S = i("".indexOf),
          E = i("".slice),
          O = "$0" === "a".replace(/./, "$0"),
          A = !!/./[b] && "" === /./[b]("a", "$0");
        c(
          "replace",
          function (t, e, n) {
            var i = A ? "$" : "$0";
            return [
              function (t, n) {
                var o = d(this),
                  i = null == t ? void 0 : h(t, b);
                return i ? r(i, t, o, n) : r(e, p(o), t, n);
              },
              function (t, r) {
                var c = s(this),
                  a = p(t);
                if (
                  "string" == typeof r &&
                  -1 === S(r, i) &&
                  -1 === S(r, "$<")
                ) {
                  var d = n(e, c, a, r);
                  if (d.done) return d.value;
                }
                var h = u(r);
                h || (r = p(r));
                var b = c.global;
                if (b) {
                  var O = c.unicode;
                  c.lastIndex = 0;
                }
                for (var A = []; ; ) {
                  var C = g(c, a);
                  if (null === C) break;
                  if ((w(A, C), !b)) break;
                  "" === p(C[0]) && (c.lastIndex = v(a, f(c.lastIndex), O));
                }
                for (var j, P = "", T = 0, R = 0; R < A.length; R++) {
                  for (
                    var L = p((C = A[R])[0]),
                      I = m(x(l(C.index), a.length), 0),
                      B = [],
                      M = 1;
                    M < C.length;
                    M++
                  )
                    w(B, void 0 === (j = C[M]) ? j : String(j));
                  var N = C.groups;
                  if (h) {
                    var _ = k([L], B, I, a);
                    void 0 !== N && w(_, N);
                    var D = p(o(r, void 0, _));
                  } else D = y(L, a, I, B, N, r);
                  I >= T && ((P += E(a, T, I) + D), (T = I + L.length));
                }
                return P + E(a, T);
              },
            ];
          },
          !!a(function () {
            var t = /./;
            return (
              (t.exec = function () {
                var t = [];
                return (t.groups = { a: "7" }), t;
              }),
              "7" !== "".replace(t, "$<a>")
            );
          }) ||
            !O ||
            A
        );
      },
      3123: function (t, e, n) {
        "use strict";
        var o = n(2104),
          r = n(6916),
          i = n(1702),
          c = n(7007),
          a = n(7850),
          s = n(9670),
          u = n(4488),
          l = n(6707),
          f = n(1530),
          p = n(7466),
          d = n(1340),
          v = n(8173),
          h = n(1589),
          y = n(7651),
          g = n(2261),
          b = n(2999),
          m = n(7293),
          x = b.UNSUPPORTED_Y,
          k = 4294967295,
          w = Math.min,
          S = [].push,
          E = i(/./.exec),
          O = i(S),
          A = i("".slice),
          C = !m(function () {
            var t = /(?:)/,
              e = t.exec;
            t.exec = function () {
              return e.apply(this, arguments);
            };
            var n = "ab".split(t);
            return 2 !== n.length || "a" !== n[0] || "b" !== n[1];
          });
        c(
          "split",
          function (t, e, n) {
            var i;
            return (
              (i =
                "c" == "abbc".split(/(b)*/)[1] ||
                4 != "test".split(/(?:)/, -1).length ||
                2 != "ab".split(/(?:ab)*/).length ||
                4 != ".".split(/(.?)(.?)/).length ||
                ".".split(/()()/).length > 1 ||
                "".split(/.?/).length
                  ? function (t, n) {
                      var i = d(u(this)),
                        c = void 0 === n ? k : n >>> 0;
                      if (0 === c) return [];
                      if (void 0 === t) return [i];
                      if (!a(t)) return r(e, i, t, c);
                      for (
                        var s,
                          l,
                          f,
                          p = [],
                          v =
                            (t.ignoreCase ? "i" : "") +
                            (t.multiline ? "m" : "") +
                            (t.unicode ? "u" : "") +
                            (t.sticky ? "y" : ""),
                          y = 0,
                          b = new RegExp(t.source, v + "g");
                        (s = r(g, b, i)) &&
                        !(
                          (l = b.lastIndex) > y &&
                          (O(p, A(i, y, s.index)),
                          s.length > 1 &&
                            s.index < i.length &&
                            o(S, p, h(s, 1)),
                          (f = s[0].length),
                          (y = l),
                          p.length >= c)
                        );

                      )
                        b.lastIndex === s.index && b.lastIndex++;
                      return (
                        y === i.length
                          ? (!f && E(b, "")) || O(p, "")
                          : O(p, A(i, y)),
                        p.length > c ? h(p, 0, c) : p
                      );
                    }
                  : "0".split(void 0, 0).length
                  ? function (t, n) {
                      return void 0 === t && 0 === n ? [] : r(e, this, t, n);
                    }
                  : e),
              [
                function (e, n) {
                  var o = u(this),
                    c = null == e ? void 0 : v(e, t);
                  return c ? r(c, e, o, n) : r(i, d(o), e, n);
                },
                function (t, o) {
                  var r = s(this),
                    c = d(t),
                    a = n(i, r, c, o, i !== e);
                  if (a.done) return a.value;
                  var u = l(r, RegExp),
                    v = r.unicode,
                    h =
                      (r.ignoreCase ? "i" : "") +
                      (r.multiline ? "m" : "") +
                      (r.unicode ? "u" : "") +
                      (x ? "g" : "y"),
                    g = new u(x ? "^(?:" + r.source + ")" : r, h),
                    b = void 0 === o ? k : o >>> 0;
                  if (0 === b) return [];
                  if (0 === c.length) return null === y(g, c) ? [c] : [];
                  for (var m = 0, S = 0, E = []; S < c.length; ) {
                    g.lastIndex = x ? 0 : S;
                    var C,
                      j = y(g, x ? A(c, S) : c);
                    if (
                      null === j ||
                      (C = w(p(g.lastIndex + (x ? S : 0)), c.length)) === m
                    )
                      S = f(c, S, v);
                    else {
                      if ((O(E, A(c, m, S)), E.length === b)) return E;
                      for (var P = 1; P <= j.length - 1; P++)
                        if ((O(E, j[P]), E.length === b)) return E;
                      S = m = C;
                    }
                  }
                  return O(E, A(c, m)), E;
                },
              ]
            );
          },
          !C,
          x
        );
      },
      3210: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(3111).trim;
        o(
          { target: "String", proto: !0, forced: n(6091)("trim") },
          {
            trim: function () {
              return r(this);
            },
          }
        );
      },
      1817: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(9781),
          i = n(7854),
          c = n(1702),
          a = n(2597),
          s = n(614),
          u = n(7976),
          l = n(1340),
          f = n(3070).f,
          p = n(9920),
          d = i.Symbol,
          v = d && d.prototype;
        if (
          r &&
          s(d) &&
          (!("description" in v) || void 0 !== d().description)
        ) {
          var h = {},
            y = function () {
              var t =
                  arguments.length < 1 || void 0 === arguments[0]
                    ? void 0
                    : l(arguments[0]),
                e = u(v, this) ? new d(t) : void 0 === t ? d() : d(t);
              return "" === t && (h[e] = !0), e;
            };
          p(y, d), (y.prototype = v), (v.constructor = y);
          var g = "Symbol(test)" == String(d("test")),
            b = c(v.toString),
            m = c(v.valueOf),
            x = /^Symbol\((.*)\)[^)]+$/,
            k = c("".replace),
            w = c("".slice);
          f(v, "description", {
            configurable: !0,
            get: function () {
              var t = m(this),
                e = b(t);
              if (a(h, t)) return "";
              var n = g ? w(e, 7, -1) : k(e, x, "$1");
              return "" === n ? void 0 : n;
            },
          }),
            o({ global: !0, forced: !0 }, { Symbol: y });
        }
      },
      2165: function (t, e, n) {
        n(7235)("iterator");
      },
      2526: function (t, e, n) {
        "use strict";
        var o = n(2109),
          r = n(7854),
          i = n(5005),
          c = n(2104),
          a = n(6916),
          s = n(1702),
          u = n(1913),
          l = n(9781),
          f = n(133),
          p = n(7293),
          d = n(2597),
          v = n(3157),
          h = n(614),
          y = n(111),
          g = n(7976),
          b = n(2190),
          m = n(9670),
          x = n(7908),
          k = n(5656),
          w = n(4948),
          S = n(1340),
          E = n(9114),
          O = n(30),
          A = n(1956),
          C = n(8006),
          j = n(1156),
          P = n(5181),
          T = n(1236),
          R = n(3070),
          L = n(5296),
          I = n(206),
          B = n(1320),
          M = n(2309),
          N = n(6200),
          _ = n(3501),
          D = n(9711),
          F = n(5112),
          G = n(6061),
          H = n(7235),
          $ = n(8003),
          q = n(9909),
          U = n(2092).forEach,
          V = N("hidden"),
          z = "Symbol",
          W = F("toPrimitive"),
          Y = q.set,
          J = q.getterFor(z),
          X = Object.prototype,
          K = r.Symbol,
          Q = K && K.prototype,
          Z = r.TypeError,
          tt = r.QObject,
          et = i("JSON", "stringify"),
          nt = T.f,
          ot = R.f,
          rt = j.f,
          it = L.f,
          ct = s([].push),
          at = M("symbols"),
          st = M("op-symbols"),
          ut = M("string-to-symbol-registry"),
          lt = M("symbol-to-string-registry"),
          ft = M("wks"),
          pt = !tt || !tt.prototype || !tt.prototype.findChild,
          dt =
            l &&
            p(function () {
              return (
                7 !=
                O(
                  ot({}, "a", {
                    get: function () {
                      return ot(this, "a", { value: 7 }).a;
                    },
                  })
                ).a
              );
            })
              ? function (t, e, n) {
                  var o = nt(X, e);
                  o && delete X[e], ot(t, e, n), o && t !== X && ot(X, e, o);
                }
              : ot,
          vt = function (t, e) {
            var n = (at[t] = O(Q));
            return (
              Y(n, { type: z, tag: t, description: e }),
              l || (n.description = e),
              n
            );
          },
          ht = function (t, e, n) {
            t === X && ht(st, e, n), m(t);
            var o = w(e);
            return (
              m(n),
              d(at, o)
                ? (n.enumerable
                    ? (d(t, V) && t[V][o] && (t[V][o] = !1),
                      (n = O(n, { enumerable: E(0, !1) })))
                    : (d(t, V) || ot(t, V, E(1, {})), (t[V][o] = !0)),
                  dt(t, o, n))
                : ot(t, o, n)
            );
          },
          yt = function (t, e) {
            m(t);
            var n = k(e),
              o = A(n).concat(xt(n));
            return (
              U(o, function (e) {
                (l && !a(gt, n, e)) || ht(t, e, n[e]);
              }),
              t
            );
          },
          gt = function (t) {
            var e = w(t),
              n = a(it, this, e);
            return (
              !(this === X && d(at, e) && !d(st, e)) &&
              (!(n || !d(this, e) || !d(at, e) || (d(this, V) && this[V][e])) ||
                n)
            );
          },
          bt = function (t, e) {
            var n = k(t),
              o = w(e);
            if (n !== X || !d(at, o) || d(st, o)) {
              var r = nt(n, o);
              return (
                !r || !d(at, o) || (d(n, V) && n[V][o]) || (r.enumerable = !0),
                r
              );
            }
          },
          mt = function (t) {
            var e = rt(k(t)),
              n = [];
            return (
              U(e, function (t) {
                d(at, t) || d(_, t) || ct(n, t);
              }),
              n
            );
          },
          xt = function (t) {
            var e = t === X,
              n = rt(e ? st : k(t)),
              o = [];
            return (
              U(n, function (t) {
                !d(at, t) || (e && !d(X, t)) || ct(o, at[t]);
              }),
              o
            );
          };
        (f ||
          ((K = function () {
            if (g(Q, this)) throw Z("Symbol is not a constructor");
            var t =
                arguments.length && void 0 !== arguments[0]
                  ? S(arguments[0])
                  : void 0,
              e = D(t),
              n = function (t) {
                this === X && a(n, st, t),
                  d(this, V) && d(this[V], e) && (this[V][e] = !1),
                  dt(this, e, E(1, t));
              };
            return l && pt && dt(X, e, { configurable: !0, set: n }), vt(e, t);
          }),
          B((Q = K.prototype), "toString", function () {
            return J(this).tag;
          }),
          B(K, "withoutSetter", function (t) {
            return vt(D(t), t);
          }),
          (L.f = gt),
          (R.f = ht),
          (T.f = bt),
          (C.f = j.f = mt),
          (P.f = xt),
          (G.f = function (t) {
            return vt(F(t), t);
          }),
          l &&
            (ot(Q, "description", {
              configurable: !0,
              get: function () {
                return J(this).description;
              },
            }),
            u || B(X, "propertyIsEnumerable", gt, { unsafe: !0 }))),
        o({ global: !0, wrap: !0, forced: !f, sham: !f }, { Symbol: K }),
        U(A(ft), function (t) {
          H(t);
        }),
        o(
          { target: z, stat: !0, forced: !f },
          {
            for: function (t) {
              var e = S(t);
              if (d(ut, e)) return ut[e];
              var n = K(e);
              return (ut[e] = n), (lt[n] = e), n;
            },
            keyFor: function (t) {
              if (!b(t)) throw Z(t + " is not a symbol");
              if (d(lt, t)) return lt[t];
            },
            useSetter: function () {
              pt = !0;
            },
            useSimple: function () {
              pt = !1;
            },
          }
        ),
        o(
          { target: "Object", stat: !0, forced: !f, sham: !l },
          {
            create: function (t, e) {
              return void 0 === e ? O(t) : yt(O(t), e);
            },
            defineProperty: ht,
            defineProperties: yt,
            getOwnPropertyDescriptor: bt,
          }
        ),
        o(
          { target: "Object", stat: !0, forced: !f },
          { getOwnPropertyNames: mt, getOwnPropertySymbols: xt }
        ),
        o(
          {
            target: "Object",
            stat: !0,
            forced: p(function () {
              P.f(1);
            }),
          },
          {
            getOwnPropertySymbols: function (t) {
              return P.f(x(t));
            },
          }
        ),
        et) &&
          o(
            {
              target: "JSON",
              stat: !0,
              forced:
                !f ||
                p(function () {
                  var t = K();
                  return (
                    "[null]" != et([t]) ||
                    "{}" != et({ a: t }) ||
                    "{}" != et(Object(t))
                  );
                }),
            },
            {
              stringify: function (t, e, n) {
                var o = I(arguments),
                  r = e;
                if ((y(e) || void 0 !== t) && !b(t))
                  return (
                    v(e) ||
                      (e = function (t, e) {
                        if ((h(r) && (e = a(r, this, t, e)), !b(e))) return e;
                      }),
                    (o[1] = e),
                    c(et, null, o)
                  );
              },
            }
          );
        if (!Q[W]) {
          var kt = Q.valueOf;
          B(Q, W, function (t) {
            return a(kt, this);
          });
        }
        $(K, z), (_[V] = !0);
      },
      4747: function (t, e, n) {
        var o = n(7854),
          r = n(8324),
          i = n(8509),
          c = n(8533),
          a = n(8880),
          s = function (t) {
            if (t && t.forEach !== c)
              try {
                a(t, "forEach", c);
              } catch (e) {
                t.forEach = c;
              }
          };
        for (var u in r) r[u] && s(o[u] && o[u].prototype);
        s(i);
      },
      3948: function (t, e, n) {
        var o = n(7854),
          r = n(8324),
          i = n(8509),
          c = n(6992),
          a = n(8880),
          s = n(5112),
          u = s("iterator"),
          l = s("toStringTag"),
          f = c.values,
          p = function (t, e) {
            if (t) {
              if (t[u] !== f)
                try {
                  a(t, u, f);
                } catch (e) {
                  t[u] = f;
                }
              if ((t[l] || a(t, l, e), r[e]))
                for (var n in c)
                  if (t[n] !== c[n])
                    try {
                      a(t, n, c[n]);
                    } catch (e) {
                      t[n] = c[n];
                    }
            }
          };
        for (var d in r) p(o[d] && o[d].prototype, d);
        p(i, "DOMTokenList");
      },
    },
    e = {};
  function n(o) {
    var r = e[o];
    if (void 0 !== r) return r.exports;
    var i = (e[o] = { exports: {} });
    return t[o](i, i.exports, n), i.exports;
  }
  (n.n = function (t) {
    var e =
      t && t.__esModule
        ? function () {
            return t.default;
          }
        : function () {
            return t;
          };
    return n.d(e, { a: e }), e;
  }),
    (n.d = function (t, e) {
      for (var o in e)
        n.o(e, o) &&
          !n.o(t, o) &&
          Object.defineProperty(t, o, { enumerable: !0, get: e[o] });
    }),
    (n.g = (function () {
      if ("object" == typeof globalThis) return globalThis;
      try {
        return this || new Function("return this")();
      } catch (t) {
        if ("object" == typeof window) return window;
      }
    })()),
    (n.o = function (t, e) {
      return Object.prototype.hasOwnProperty.call(t, e);
    }),
    (function () {
      "use strict";
      n(4603),
        n(4916),
        n(9714),
        n(9600),
        n(1249),
        n(9720),
        n(3123),
        n(5306),
        n(2526),
        n(1817),
        n(8309),
        n(1539),
        n(4747),
        n(3210),
        n(2165),
        n(6992),
        n(8783),
        n(3948),
        n(7042),
        n(1038);
      var t = n(3821),
        e = n.n(t);
      function o(t, e) {
        return (
          (function (t) {
            if (Array.isArray(t)) return t;
          })(t) ||
          (function (t, e) {
            var n =
              null == t
                ? null
                : ("undefined" != typeof Symbol && t[Symbol.iterator]) ||
                  t["@@iterator"];
            if (null == n) return;
            var o,
              r,
              i = [],
              c = !0,
              a = !1;
            try {
              for (
                n = n.call(t);
                !(c = (o = n.next()).done) &&
                (i.push(o.value), !e || i.length !== e);
                c = !0
              );
            } catch (t) {
              (a = !0), (r = t);
            } finally {
              try {
                c || null == n.return || n.return();
              } finally {
                if (a) throw r;
              }
            }
            return i;
          })(t, e) ||
          (function (t, e) {
            if (!t) return;
            if ("string" == typeof t) return r(t, e);
            var n = Object.prototype.toString.call(t).slice(8, -1);
            "Object" === n && t.constructor && (n = t.constructor.name);
            if ("Map" === n || "Set" === n) return Array.from(t);
            if (
              "Arguments" === n ||
              /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
            )
              return r(t, e);
          })(t, e) ||
          (function () {
            throw new TypeError(
              "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
            );
          })()
        );
      }
      function r(t, e) {
        (null == e || e > t.length) && (e = t.length);
        for (var n = 0, o = new Array(e); n < e; n++) o[n] = t[n];
        return o;
      }
      function i(t) {
        return (
          (i =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
              ? function (t) {
                  return typeof t;
                }
              : function (t) {
                  return t &&
                    "function" == typeof Symbol &&
                    t.constructor === Symbol &&
                    t !== Symbol.prototype
                    ? "symbol"
                    : typeof t;
                }),
          i(t)
        );
      }
      /*!
       * Cookie Consent
       * Copyright 2021 Dirk Persky (https://github.com/DirkPersky/npm-dp_cookieconsent/issues)
       * Licensed under AGPL v3+ (https://github.com/DirkPersky/npm-dp_cookieconsent/blob/master/LICENSE)
       */ !(function (t, n) {
        if (!t.hasInitialised) {
          !(function () {
            if ("function" == typeof window.CustomEvent) return !1;
            function t(t, e) {
              e = e || { bubbles: !1, cancelable: !1, detail: void 0 };
              var n = document.createEvent("CustomEvent");
              return n.initCustomEvent(t, e.bubbles, e.cancelable, e.detail), n;
            }
            (t.prototype = window.Event.prototype), (window.CustomEvent = t);
          })(),
            (function () {
              if ("function" == typeof window.Event) return !1;
              function t(t, e) {
                e = e || { bubbles: !0, cancelable: !0, detail: void 0 };
                var n = document.createEvent("Event");
                return n.initEvent(t, e.bubbles, e.cancelable, e.detail), n;
              }
              (t.prototype = window.Event.prototype), (window.Event = t);
            })();
          var r = {
            detectRobot: function (t) {
              return new RegExp(
                [
                  /Chrome-Lighthouse/,
                  /bot/,
                  /spider/,
                  /crawl/,
                  /APIs-Google/,
                  /AdsBot/,
                  /Googlebot/,
                  /mediapartners/,
                  /Google Favicon/,
                  /FeedFetcher/,
                  /Google-Read-Aloud/,
                  /DuplexWeb-Google/,
                  /googleweblight/,
                  /bing/,
                  /yandex/,
                  /baidu/,
                  /duckduck/,
                  /yahoo/,
                  /ecosia/,
                  /ia_archiver/,
                  /facebook/,
                  /instagram/,
                  /pinterest/,
                  /reddit/,
                  /slack/,
                  /twitter/,
                  /whatsapp/,
                  /youtube/,
                  /semrush/,
                ]
                  .map(function (t) {
                    return t.source;
                  })
                  .join("|"),
                "i"
              ).test(t);
            },
            reformatCheckboxOptions: function (t) {
              return Object.entries(t).map(function (t) {
                var e = "true" == String(t[1]).toLowerCase();
                return { name: t[0], checked: e };
              });
            },
            getCookie: function (t) {
              var e = ("; " + document.cookie).split("; " + t + "=");
              return e.length < 2
                ? void 0
                : JSON.parse(e.pop().split(";").shift());
            },
            setCookie: function (t, e, n, o, r, i) {
              var c = new Date();
              c.setHours(c.getHours() + 24 * (n || 365));
              var a = [
                t + "=" + JSON.stringify(e),
                "expires=" + c.toUTCString(),
                "path=" + (r || "/"),
                "SameSite=Strict",
              ];
              o && a.push("domain=" + o),
                i && a.push("secure"),
                (document.cookie = a.join(";"));
            },
            prepareCookie: function (t, e) {
              var n = { status: "open" },
                o = this.getCookie(e);
              return (
                void 0 !== o && this.deepExtend(n, o), this.deepExtend(n, t), n
              );
            },
            getElementsByTag: function (t, e) {
              return (
                void 0 === e && (e = "data-cookieconsent"),
                document.querySelectorAll(t + "[" + e + "]")
              );
            },
            deepExtend: function (t, e) {
              for (var n in e)
                e.hasOwnProperty(n) &&
                  (n in t && "object" === i(t[n]) && "object" === i(e[n])
                    ? this.deepExtend(t[n], e[n])
                    : (t[n] = e[n]));
              return t;
            },
            appendElement: function (t, e) {
              var n = document.createElement("div"),
                o = null != e ? e : document.body;
              n.innerHTML = this.replaceContent(t);
              var r = n.children[0];
              return o.appendChild(r), r;
            },
            applyStyle: function (t, e, n) {
              if (
                !(
                  t.length <= 0 ||
                  void 0 === this.options[e] ||
                  void 0 === this.options[e][n]
                )
              )
                for (
                  var r = 0, i = Object.entries(this.options[e][n]);
                  r < i.length;
                  r++
                ) {
                  var c = o(i[r], 2),
                    a = c[0],
                    s = c[1];
                  switch (a) {
                    case "background":
                      t.style.backgroundColor = s;
                      break;
                    case "text":
                      t.style.color = s;
                  }
                }
            },
            fireEvent: function (t, e) {
              var n;
              (n = e ? new CustomEvent(t, { $el: e }) : new Event(t)),
                document.dispatchEvent(n);
            },
          };
          t.utils = r;
          var c = (function () {
            "undefined" == typeof dpCookieConsentLang &&
              (window.DPCookieConsentL10N = e()),
              (window.DPCookieConsentL10N.prototype.getLang = function () {
                return this.lang;
              });
            var n = {
              cookie: {
                name: "dp_cookieconsent_status",
                path: "/",
                domain: "",
                expiryDays: 365,
                secure: !1,
              },
              position: "bottom-right",
              content: new window.DPCookieConsentL10N().getLang(),
              theme: "edgeless",
              type: "opt-in",
              revokable: !0,
              reloadOnRevoke: !0,
              checkboxes: [
                { name: "statistics", checked: !1 },
                { name: "marketing", checked: !1 },
              ],
              palette: {
                popup: { background: "rgba(0,0,0,0.8)", text: "#ffffff" },
                button: { background: "#f96332", text: "#ffffff" },
              },
              overlay: {
                notice: !0,
                box: { background: "rgba(0,0,0,0.8)", text: "#ffffff" },
                btn: { background: "#f96332", text: "#ffffff" },
              },
              onPopupOpen: function () {},
              onPopupClose: function () {},
              onInitialise: function () {},
              onStatusChange: function (t, e) {},
              onRevokeChoice: function () {},
              compilance: {
                "opt-in":
                  '<div class="cc-body" id="cookieconsent:body"> <span class="cc-message" id="cookieconsent:desc"> {{description}} {{selection}} </span> <div class="cc-compliance cc-highlight"> {{allow-all}} {{allow}} {{deny}} </div> </div>',
              },
              revokeBtn:
                '<div class="dp--revoke {{classes}}"> <i class="dp--icon-fingerprint"></i> <span class="dp--hover">{{policy}}</span> </div> ',
              overlayLayout:
                '<div class="dp--overlay-inner"> <div class="dp--overlay-header">{{notice}}</div> <div class="dp--overlay-description">{{desc}}</div> <div class="dp--overlay-button"> <button class="db--overlay-submit" onclick="window.DPCookieConsent.forceAccept(this)" data-cookieconsent="{{type}}" {{style}}> {{btn}} </button> </div> </div> ',
              wrap: '<div aria-describedby="cookieconsent:desc" aria-label="cookieconsent" aria-live="polite" class="cc-window {{classes}}" id="cookieconsent:window" role="dialog"></div>',
              elements: {
                "allow-all":
                  '<a href="javascript:void(0)" class="cc-btn cc-allow-all cc-w-100" role="button" tabindex="2"> {{allow-all}} </a> ',
                allow:
                  '<a href="javascript:void(0)" class="cc-btn cc-allow" role="button" tabindex="2"> {{allow}} </a> ',
                dismiss:
                  '<a href="javascript:void(0)" class="cc-btn cc-dismiss" role="button" tabindex="2"> {{dismiss}} </a> ',
                deny: '<a href="javascript:void(0)" class="cc-btn cc-deny" role="button" tabindex="2"> {{deny}} </a> ',
                selection:
                  '<div class="dp--cookie-check"> <label for="dp--cookie-require"> <input type="checkbox" id="dp--cookie-require" class="dp--check-box" checked="checked" disabled="disabled" tabindex="-1"/> {{dpRequire}} </label> <label for="dp--cookie-statistics"> <input type="checkbox" id="dp--cookie-statistics" class="dp--check-box" {{checked.statistics}} value="" tabindex="1"/> {{dpStatistik}} </label> <label for="dp--cookie-marketing"> <input type="checkbox" id="dp--cookie-marketing" class="dp--check-box" {{checked.marketing}} value="" tabindex="1"/> {{dpMarketing}} </label> </div> ',
                description:
                  '{{message}}<a class="cc-link" role="button" tabindex="1" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}"> {{link}} </a> ',
              },
            };
            function c() {}
            return (
              (c.prototype.replaceContent = function (t) {
                var e = this.options,
                  n = [
                    "cc-" + e.position,
                    "cc-type-" + e.type,
                    "cc-theme-" + e.theme,
                    "cc-hide",
                  ];
                t = t.replace("{{classes}}", n.join(" "));
                for (
                  var r = 0, i = Object.entries(e.elements);
                  r < i.length;
                  r++
                ) {
                  var c = o(i[r], 2),
                    a = c[0],
                    s = c[1];
                  t = t.replace("{{" + a + "}}", s);
                }
                for (
                  var u = 0, l = Object.entries(e.content);
                  u < l.length;
                  u++
                ) {
                  var f = o(l[u], 2),
                    p = f[0],
                    d = f[1];
                  t = t.replace("{{" + p + "}}", d);
                }
                return t;
              }),
              (c.prototype.templateOverwrites = function () {
                var e = t.utils.getElementsByTag(
                  "script",
                  "data-dp-cookieRevoke"
                );
                e.length > 0 && (this.options.revokeBtn = e[0].innerHTML);
                var n = t.utils.getElementsByTag(
                  "script",
                  "data-dp-cookieDesc"
                );
                n.length > 0 &&
                  (this.options.elements.description = n[0].innerHTML);
                var o = t.utils.getElementsByTag(
                  "script",
                  "data-dp-cookieSelect"
                );
                o.length > 0 &&
                  (this.options.elements.selection = o[0].innerHTML);
              }),
              (c.prototype.initialise = function (e) {
                r.deepExtend((this.options = {}), n),
                  "object" === i(e.checkboxes) &&
                    (e.checkboxes = r.reformatCheckboxOptions(e.checkboxes)),
                  "object" === i(e) && r.deepExtend(this.options, e);
                var o = this.options.onInitialise.bind(this);
                this.templateOverwrites(),
                  this.options.revokable &&
                    ((this.revokeBtn = t.utils.appendElement.call(
                      this,
                      this.options.revokeBtn
                    )),
                    t.utils.applyStyle.call(
                      this,
                      this.revokeBtn,
                      "palette",
                      "popup"
                    )),
                  (this.window = t.utils.appendElement.call(
                    this,
                    this.options.wrap
                  )),
                  t.utils.applyStyle.call(
                    this,
                    this.window,
                    "palette",
                    "popup"
                  ),
                  this.addCompilance(this.window),
                  o(this),
                  this.bindBtns(),
                  this.presetCheckboxes();
              }),
              (c.prototype.presetCheckboxes = function () {
                var e = this,
                  n = t.utils.getCookie(this.options.cookie.name);
                void 0 !== n &&
                  r.deepExtend(this.options.checkboxes, n.checkboxes);
                var o = this.compilance.querySelectorAll("input");
                o.length > 0 &&
                  o.forEach(function (t) {
                    var n = t.id;
                    (n = n.replace("dp--cookie-", "")),
                      e.options.checkboxes.map(function (e, o) {
                        e.name == n && (t.checked = e.checked);
                      });
                  });
              }),
              (c.prototype.addCompilance = function (e) {
                var n = this.options.compilance["opt-in"];
                void 0 !== this.options.compilance[this.options.type] &&
                  (n = this.options.compilance[this.options.type]),
                  (this.compilance = t.utils.appendElement.call(this, n, e)),
                  (this.allowAllBtn =
                    this.compilance.getElementsByClassName("cc-allow-all")),
                  (this.allowBtn =
                    this.compilance.getElementsByClassName("cc-allow")),
                  (this.denyBtn =
                    this.compilance.getElementsByClassName("cc-deny")),
                  (this.dismissBtn =
                    this.compilance.getElementsByClassName("cc-dismiss")),
                  this.allowAllBtn.length > 0
                    ? t.utils.applyStyle.call(
                        this,
                        this.allowAllBtn[0],
                        "palette",
                        "button"
                      )
                    : this.allowBtn.length > 0 &&
                      t.utils.applyStyle.call(
                        this,
                        this.allowBtn[0],
                        "palette",
                        "button"
                      );
              }),
              (c.prototype.bindBtns = function () {
                var t = this;
                this.allowAllBtn.length > 0 &&
                  (this.allowAllBtn[0].onclick = function () {
                    return t.allowAll.call(t);
                  }),
                  this.allowBtn.length > 0 &&
                    (this.allowBtn[0].onclick = function () {
                      return t.allow.call(t);
                    }),
                  this.dismissBtn.length > 0 &&
                    (this.dismissBtn[0].onclick = function () {
                      return t.allow.call(t);
                    }),
                  this.denyBtn.length > 0 &&
                    (this.denyBtn[0].onclick = function () {
                      return t.denyAll.call(t);
                    }),
                  this.revokeBtn &&
                    (this.revokeBtn.onclick = function () {
                      return t.revoke.call(t);
                    });
              }),
              (c.prototype.allowAll = function () {
                var e = this,
                  n = this.compilance.querySelectorAll("input");
                n.length > 0 &&
                  n.forEach(function (t) {
                    var n = t.id;
                    (n = n.replace("dp--cookie-", "")),
                      e.options.checkboxes.map(function (e, o) {
                        e.name == n && (t.checked = !0);
                      });
                  }),
                  t.utils.fireEvent("dp--cookie-accept"),
                  this.save();
              }),
              (c.prototype.denyAll = function () {
                var e = this,
                  n = this.compilance.querySelectorAll("input");
                n.length > 0 &&
                  n.forEach(function (t) {
                    var n = t.id;
                    (n = n.replace("dp--cookie-", "")),
                      e.options.checkboxes.map(function (e, o) {
                        e.name == n && (t.checked = !1);
                      });
                  }),
                  t.utils.fireEvent("dp--cookie-deny"),
                  this.save();
              }),
              (c.prototype.allow = function () {
                t.utils.fireEvent("dp--cookie-accept"), this.save();
              }),
              (c.prototype.saveCheckboxes = function (t, e) {
                var n = this;
                this.options.checkboxes.map(function (o, r) {
                  o.name == t && (n.options.checkboxes[r].checked = e);
                });
              }),
              (c.prototype.save = function () {
                var t = this,
                  e = this.compilance.querySelectorAll("input");
                e.length > 0 &&
                  (e.forEach(function (e) {
                    var n = e.id;
                    (n = n.replace("dp--cookie-", "")),
                      t.saveCheckboxes(n, e.checked);
                  }),
                  this.saveCookie({ checkboxes: this.options.checkboxes })),
                  this.close();
              }),
              (c.prototype.hasChanged = function () {
                var t = this,
                  e = !1;
                return (
                  void 0 !== this.originalCookie &&
                  void 0 !== this.originalCookie.checkboxes &&
                  (this.originalCookie.checkboxes.map(function (n, o) {
                    var r = t.options.checkboxes[o];
                    !0 === n.checked &&
                      ((r && 0 != r.checked) ||
                        ((e = !0), t.options.onStatusChange.bind(t)(r, n)));
                  }),
                  e)
                );
              }),
              (c.prototype.hasConsent = function () {
                var e = t.utils.getCookie(this.options.cookie.name);
                return void 0 !== e && "open" != e.status;
              }),
              (c.prototype.saveCookie = function (e) {
                t.utils.setCookie(
                  this.options.cookie.name,
                  t.utils.prepareCookie(e, this.options.cookie.name),
                  this.options.cookie.expiryDays,
                  this.options.cookie.domain,
                  this.options.cookie.path,
                  this.options.cookie.secure
                ),
                  this.hasConsent() &&
                    this.hasChanged() &&
                    this.options.reloadOnRevoke &&
                    location.reload();
              }),
              (c.prototype.revoke = function () {
                this.options.onRevokeChoice.bind(this)(this),
                  t.utils.fireEvent("dp--cookie-revoke"),
                  this.open();
              }),
              (c.prototype.open = function () {
                this.revokeBtn && this.revokeBtn.classList.add("cc-hide"),
                  this.window.classList.remove("cc-hide"),
                  (this.originalCookie = t.utils.getCookie(
                    this.options.cookie.name
                  )),
                  this.options.onPopupOpen.bind(this)(this),
                  this.saveCookie({ status: "open" }),
                  document
                    .querySelector("body")
                    .classList.add("dp--cookie-consent");
              }),
              (c.prototype.close = function () {
                this.window.classList.add("cc-hide"),
                  this.revokeBtn && this.revokeBtn.classList.remove("cc-hide"),
                  this.options.onPopupClose.bind(this)(this),
                  this.saveCookie({ status: "approved" }),
                  document
                    .querySelector("body")
                    .classList.remove("dp--cookie-consent"),
                  this.execute();
              }),
              (c.prototype.execute = function () {
                t.Handler.execute(this.options.checkboxes),
                  t.Overlay.execute(this.options.checkboxes);
              }),
              new c()
            );
          })();
          t.popup = c;
          var a = (function () {
            function e() {}
            return (
              (e.prototype.overlays = function () {
                t.popup.options.overlay.notice &&
                  (this.templateOverwrites(),
                  this.overlaysView("iframe"),
                  this.overlaysView("dp-content"));
              }),
              (e.prototype.templateOverwrites = function () {
                var e = t.utils.getElementsByTag(
                  "script",
                  "data-dp-cookieIframe"
                );
                e.length > 0 &&
                  (t.popup.options.overlayLayout = e[0].innerHTML);
              }),
              (e.prototype.overlaysView = function (e) {
                var n = t.utils.getElementsByTag(e);
                0 != n.length &&
                  n.forEach(function (e) {
                    var n =
                        e.getAttribute("data-cookieconsent-notice") ||
                        t.popup.options.content.media.notice,
                      o =
                        e.getAttribute("data-cookieconsent-description") ||
                        t.popup.options.content.media.desc,
                      r =
                        e.getAttribute("data-cookieconsent-btn") ||
                        t.popup.options.content.media.btn,
                      i = e.getAttribute("data-cookieconsent");
                    if (!e.hasAttribute("data-cookieconsent-overlay-loaded")) {
                      e.setAttribute(
                        "data-cookieconsent-overlay-loaded",
                        "loaded"
                      );
                      var c = document.createElement("div");
                      c.classList.add("dp--overlay"),
                        t.utils.applyStyle.call(t.popup, c, "overlay", "box");
                      var a = t.popup.options.overlayLayout
                          .replace("{{notice}}", n)
                          .replace("{{desc}}", o)
                          .replace("{{type}}", i)
                          .replace("{{btn}}", r),
                        s = (a = t.utils.appendElement.call(
                          t.popup,
                          a,
                          c
                        )).getElementsByClassName("db--overlay-submit");
                      s.length > 0 &&
                        t.utils.applyStyle.call(
                          t.popup,
                          s[0],
                          "overlay",
                          "btn"
                        ),
                        e.parentNode.insertBefore(c, e.nextSibling);
                    }
                  });
              }),
              (e.prototype.execute = function (t) {
                this.executeIframe(t), this.executeContent(t);
              }),
              (e.prototype.ajax = function (t, e, n, o) {
                var r = new XMLHttpRequest();
                r.open(t, e),
                  r.setRequestHeader("X-Requested-With", "XMLHttpRequest"),
                  r.setRequestHeader("Content-type", "text/html"),
                  (r.onload = function () {
                    r.status < 200 || r.status >= 300 ? o(r) : n(r);
                  }),
                  (r.onerror = function () {
                    o(r);
                  }),
                  r.send();
              }),
              (e.prototype.executeContent = function (e) {
                var n = this,
                  o = t.utils.getElementsByTag("dp-content");
                o.length > 0 &&
                  o.forEach(function (o) {
                    if (t.Handler.typeAllowed(o, e)) {
                      o.classList.add("dp--loaded"),
                        o.setAttribute(
                          "data-cookieconsent-loaded",
                          o.getAttribute("data-cookieconsent")
                        ),
                        o.removeAttribute("data-cookieconsent");
                      var r = o.getAttribute("data-src");
                      r && r.length > 0
                        ? n.ajax(
                            "GET",
                            r,
                            function (e) {
                              (o.innerHTML = e.response),
                                t.utils.fireEvent("dp--cookie-conent", o);
                            },
                            function (t) {}
                          )
                        : t.utils.fireEvent("dp--cookie-conent", o);
                    }
                  });
              }),
              (e.prototype.executeIframe = function (e) {
                var n = t.utils.getElementsByTag("iframe");
                n.length > 0 &&
                  n.forEach(function (n) {
                    if (t.Handler.typeAllowed(n, e)) {
                      var o = n.cloneNode(!0);
                      o.getAttribute("data-src") &&
                        (o.src = o.getAttribute("data-src")),
                        n.parentNode.replaceChild(o, n),
                        o.classList.add("dp--loaded"),
                        o.setAttribute(
                          "data-cookieconsent-loaded",
                          o.getAttribute("data-cookieconsent")
                        ),
                        o.removeAttribute("data-cookieconsent"),
                        t.utils.fireEvent("dp--cookie-iframe", o);
                    }
                  });
              }),
              new e()
            );
          })();
          t.Overlay = a;
          var s = (function () {
            function e() {}
            return (
              (e.prototype.execute = function (e) {
                var n = this,
                  o = t.utils.getElementsByTag("script");
                o.length > 0 &&
                  o.forEach(function (o) {
                    if (n.typeAllowed(o, e)) {
                      var r = o.innerHTML;
                      r && r.length && (r = r.trim()),
                        r && r.length
                          ? (eval.call(n, r),
                            t.utils.fireEvent("dp--cookie-fire", o))
                          : o.getAttribute("data-src")
                          ? n.asyncJS(o.getAttribute("data-src"), function (e) {
                              t.utils.fireEvent("dp--cookie-fire", o);
                            })
                          : o.src &&
                            n.asyncJS(o.src, function (e) {
                              t.utils.fireEvent("dp--cookie-fire", o);
                            }),
                        o.setAttribute(
                          "data-cookieconsent-loaded",
                          o.getAttribute("data-cookieconsent")
                        ),
                        o.removeAttribute("data-cookieconsent");
                    }
                  });
              }),
              (e.prototype.asyncLoad = function (t, e, n) {
                var o = document,
                  r = o.createElement(e),
                  i = o.getElementsByTagName(e)[0];
                switch (e) {
                  case "script":
                    (r.src = t), r.setAttribute("defer", "");
                    break;
                  case "link":
                    (r.rel = "stylesheet"),
                      (r.type = "text/css"),
                      r.setAttribute("defer", ""),
                      (r.href = t);
                }
                n &&
                  r.addEventListener(
                    "load",
                    function (t) {
                      n(null, t);
                    },
                    !1
                  ),
                  i.parentNode.insertBefore(r, i);
              }),
              (e.prototype.asyncJS = function (t, e) {
                this.asyncLoad(t, "script", e);
              }),
              (e.prototype.typeAllowed = function (t, e) {
                var n = t.getAttribute("data-cookieconsent");
                return (
                  -1 !==
                  e
                    .map(function (t) {
                      if (t.name == n && !0 === t.checked) return !0;
                    })
                    .indexOf(!0)
                );
              }),
              new e()
            );
          })();
          (t.Handler = s),
            (t.initialise = function (e, n) {
              if (
                (n || (n = function () {}),
                t.popup.initialise(e),
                t.Overlay.overlays(),
                n(t.popup),
                t.utils.fireEvent("dp--cookie-init"),
                t.popup.hasConsent() || r.detectRobot(navigator.userAgent))
              )
                return (
                  t.popup.close(),
                  void t.utils.fireEvent("dp--cookie-accept-init")
                );
              t.popup.open();
            }),
            (t.forceAccept = function (e) {
              var n = e.getAttribute("data-cookieconsent"),
                o = t.popup.compilance.querySelectorAll("input");
              o.length > 0 &&
                o.forEach(function (e) {
                  var o = e.id;
                  (o = o.replace("dp--cookie-", "")),
                    t.popup.hasConsent() || (e.checked = !1),
                    o == n && (e.checked = !0);
                }),
                t.popup.save();
            }),
            (t.forceDeny = function (e) {
              var n = e.getAttribute("data-cookieconsent"),
                o = t.popup.compilance.querySelectorAll("input");
              o.length > 0 &&
                o.forEach(function (e) {
                  var o = e.id;
                  (o = o.replace("dp--cookie-", "")),
                    t.popup.hasConsent() || (e.checked = !1),
                    o == n && (e.checked = !1);
                }),
                t.popup.save();
            }),
            (t.hasInitialised = !0),
            (window.DPCookieConsent = t),
            window.addEventListener("load", function () {
              window.DPCookieConsent.initialise(
                window.cookieconsent_options || {}
              ),
                (window.DPCookieConsent.loaded = !0);
            });
        }
      })(window.DPCookieConsent || {});
    })();
})();

class Media2Click {
  #cookieHosts = [];
  #lifetime = -1;

  constructor(lifetime = -1) {
    this.setCookieLifetime(lifetime);
    this.#cookieHosts = this.#getCookieHosts();
    let thisObject = this;

    let elementList = document.querySelectorAll('.media2click-wrap');
    elementList.forEach(function(element) {
      thisObject.#initElement(element);
    });

    let toggleList = document.querySelectorAll('.media2click-toggle');
    toggleList.forEach( function (toggle) {
      thisObject.#initToggle(toggle);
    });
  }

  /**
   * Initialise a placeholder element
   * @param element
   */
  #initElement(element) {
    let thisObject = this;
    let placeholder = element.querySelector('.media2click-placeholder');
    let host = '';
    if (placeholder !== null) {
      host = placeholder.getAttribute('data-host');
      let type = 'iframe';
      if (placeholder.classList.contains('media2click-placeholder-content')) {
        type = 'content';
      }
      let contentData = element.querySelector('.media2click-contentdata');
      let frameData = element.querySelector('.media2click-iframedata');
      let activateOnce = element.querySelector('.media2click-once');
      let activatePermanent = element.querySelector('.media2click-permanent');

      /* Activate once and load iframe */
      if (activateOnce !== null) {
        activateOnce.addEventListener('click', function(event) {
          event.preventDefault();
          if (type === 'content') {
            thisObject.#activateContent(contentData, placeholder);
          } else {
            thisObject.#activateFrame(frameData, placeholder);
          }
        }, false);
      }

      /* Activate permanently and load iframe */
      if (activatePermanent !== null) {
        activatePermanent.addEventListener('click', function(event) {
          event.preventDefault();
          thisObject.addHost(host);
          if (type === 'content') {
            thisObject.#activateContent(contentData, placeholder);
          } else {
            thisObject.#activateFrame(frameData, placeholder);
          }
        }, false);
      }
      /* If already activated permanently, load iframe */
      if (thisObject.isActiveHost(host)) {
        if (type === 'content') {
          thisObject.#activateContent(contentData, placeholder);
        } else {
          thisObject.#activateFrame(frameData, placeholder);
        }
      }
    }
  }

  /**
   * Initialize a toggle element
   * @param toggle
   */
  #initToggle(toggle) {
    let thisObject = this;
    let host = toggle.getAttribute('data-host');
    if(thisObject.isActiveHost(host)) {
      toggle.classList.add('activated');
      toggle.setAttribute('checked', 'checked');
    }
    toggle.addEventListener('click', function (event) {
      toggle.classList.toggle('activated');
      if (toggle.className === 'media2click-toggle activated') {
        thisObject.addHost(host);
      } else {
        thisObject.removeHost(host);
      }
    });
  }

  /**
   * Replace media2click dummy element with actual iframe
   * @param dataNode
   * @param placeholderNode
   */
  #activateFrame(dataNode, placeholderNode) {
    let newNode = document.createElement('iframe');
    let frameData = JSON.parse(dataNode.getAttribute('data-attributes'));
    Object.entries(frameData).forEach(([key, value]) => newNode.setAttribute(key, value));

    dataNode.parentElement.insertBefore(newNode, dataNode);
    dataNode.parentElement.removeChild(dataNode);
    placeholderNode.parentElement.removeChild(placeholderNode);
  }

  #activateContent(contentNode, placeholderNode) {
    let newNode = document.createElement('iframe');
    let contentData = JSON.parse(contentNode.text);
    Object.entries(contentData.attributes).forEach(([key, value]) => newNode.setAttribute(key, value));

    contentNode.parentElement.insertBefore(newNode, contentNode);
    newNode.contentWindow.document.open();
    newNode.contentWindow.document.write('<body>' + contentData.content + '</body>');
    newNode.contentWindow.document.close();
    contentNode.parentElement.removeChild(contentNode);
    placeholderNode.parentElement.removeChild(placeholderNode);
  }

  /**
   * Set the media2click accepted hosts cookie
   */
  #setCookie() {
    let uniqueHosts = [...new Set(this.#cookieHosts)];
    let expires = '';
    if (this.#lifetime > 0) {
      let d = new Date();
      d.setTime(d.getTime() + (this.#lifetime * 24 * 60 * 60 * 1000));
      expires = "expires=" + d.toUTCString() + ";";
    }
    document.cookie = "m2c_accepted_hosts=" + uniqueHosts.join() + ";" + expires + "path=/;SameSite=Strict";
  }

  /**
   * Get the media2click accepted hosts from cookie
   * @returns {string[]}
   */
  #getCookieHosts() {
    let thisObject = this;
    let decodedCookie = decodeURIComponent(document.cookie);
    let ca = decodedCookie.split(';');
    for (let i = 0; i < ca.length; i++) {
      let c = ca[i];
      while (c.charAt(0) === ' ') {
        c = c.substring(1);
      }
      if (c.indexOf("m2c_accepted_hosts=") === 0) {
        let hosts = c.substring(19, c.length).split(',');
        let uniqueHosts = [...new Set(hosts)];
        return uniqueHosts.filter(function(host) {
          return thisObject.#isValidHost(host);
        });
      }
    }
    return [];
  }

  /**
   * Delete the media2click accepted hosts cookie
   */
  #deleteCookie() {
    document.cookie = "m2c_accepted_hosts=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
  }

  /**
   * Check host for validity
   * @param host
   * @returns {boolean}
   */
  #isValidHost(host) {
    if (typeof host !== 'string' || host === '') {
      return false;
    }
    return !/[^a-z0-9._-]/i.test(host);
  }

  /**
   * Set the cookie lifetime
   * @param lifetime
   */
  setCookieLifetime(lifetime) {
    lifetime = Number.parseInt(lifetime, 10);
    if (Number.isNaN(lifetime) || lifetime < 0) {
      lifetime = 7;
    }
    this.#lifetime = lifetime;
  }

  /**
   *
   * @returns {string[]}
   */
  getActiveHosts() {
    return this.#cookieHosts;
  }

  /**
   * Check if a host is active
   * @param host
   * @returns {boolean}
   */
  isActiveHost(host) {
    if (!this.#isValidHost(host)) {
      return false;
    }
    return (this.#cookieHosts.indexOf(host) > -1);
  }

  /**
   * Add a host to the allowed hosts list and update the cookie
   * @param host
   * @returns {boolean}
   */
  addHost(host) {
    if (!this.#isValidHost(host)) {
      return false;
    }
    if (!this.isActiveHost(host)) {
      this.#cookieHosts.push(host);
      this.updateCookie();
    }
    return true;
  }

  /**
   * Remove a host from the allowed hosts list and update the cookie
   * @param host
   * @returns {boolean}
   */
  removeHost(host) {
    if (!this.#isValidHost(host)) {
      return false;
    }
    if (this.isActiveHost(host)) {
      this.#cookieHosts.splice(this.#cookieHosts.indexOf(host), 1);
      this.updateCookie();
    }
    return true;
  }

  /**
   * Update the cookie
   */
  updateCookie() {
    if (this.#cookieHosts.length > 0) {
      this.#setCookie();
    } else {
      this.#deleteCookie();
    }
  }

  /**
   * Activate all elements for a selected host
   * @param host
   * @returns {boolean}
   */
  activateAllForHost(host) {
    if (!this.#isValidHost(host)) {
      return false;
    }

    let thisObject = this;

    let elementList = document.querySelectorAll('.media2click-wrap');
    elementList.forEach(function(element) {
      let placeholder = element.querySelector('.media2click-placeholder');
      let elementHost = '';
      if (placeholder !== null) {
        elementHost = placeholder.getAttribute('data-host');
        let type = 'iframe';
        if (placeholder.classList.contains('media2click-placeholder-content')) {
          type = 'content';
        }

        let contentData = element.querySelector('.media2click-contentdata');
        let frameData = element.querySelector('.media2click-iframedata');

        if (elementHost === host) {
          if (type === 'content') {
            thisObject.#activateContent(contentData, placeholder);
          } else {
            thisObject.#activateFrame(frameData, placeholder);
          }
        }
      }
    });
    return true;
  }
}

document.onreadystatechange = function () {
  if (document.readyState === 'complete') {
    if (typeof media2click === 'undefined') {
      var media2click = new Media2Click(TYPO3.settings.TS.m2cCookieLifetime);
    }
  }
};

(function ($) {
    
    $.fn.kvberlinfaq = function (options) {
        _this = this;
        
        if (typeof curPageTitle !== "undefined") {
            if(curPageTitle.length > 3) $('#content_header').empty().append("<h4 class='orange'>FAQs</h4><h1>" + curPageTitle + "</h1>")
        }
        
        _this.find('.feedbacklink').each(function () {
            $(this).click(function (e) {
                e.preventDefault();
                url = $(this).attr('href');
                _this = $(this);
                container = $(this).parent();
                container.startLoad();
                $.ajax({
                    url: url,
                    type: "POST",
                    success: function (data, textStatus, jqXHR) {
                        console.log(data);
                        var content = $(data).filter("#ajax_return").html();
                        if (content == undefined)
                            content = $(data).find("#ajax_return").html();
                        container.html(content);
                        container.stopLoad();
                        setupPage();
                    },
                    error: function (jqXHR, textStatus, errorThrown) {
                        console.log(jqXHR)
                        console.log(textStatus)
                        console.log(errorThrown)
                    }
                });
            });
        });
        
        function ajaxViewed(ob){
             if(!ob.data('viewed')){
                ob.data('viewed',1);
                url = ob.attr('data-uri');
                $.ajax({
                    url: url,
                    type: "POST",
                    success: function (data, textStatus, jqXHR) {
                       // console.log(data);
                    },
                    error: function (jqXHR, textStatus, errorThrown) {
                        console.log(jqXHR)
                        console.log(textStatus)
                        console.log(errorThrown)
                    }
                })
            }
        }
        _this.find('.flydown_wrapper').click(function(){
           ajaxViewed($(this));
        })
        
        _this.find('.detail_wrapper').each(function(){
            ajaxViewed($(this));
        })

        _this.find('.ajax_faq_cat').click(function(e){
            e.preventDefault();
            title = $(this).attr('title') ? $(this).attr('title') : document.title;
            $('.ajax_faq_cat').removeClass('act');
            $(this).addClass('act');
            if ($(this).hasClass('disabled'))
                return false;
            if ($.history) {
                e.preventDefault();
                History.pushState({0 : 'faq'}, title, $(this).attr('href'));
            }
        });
            
        //_this.find('.ajax_faqform_wrapper').ajaxIt("#faq_mainwindow");
        _this.find('.ajax_faqform_wrapper').find('.kvberlinfaq_searchform').submit(function(e){
	        e.preventDefault();
	        container = $(this).closest('.ajax_faqform_wrapper');
	        var postData = $(this).serializeArray();
			var formURL = $(this).attr("action");
			retSel = "#faq_mainwindow";
			container.startLoad();
			$.ajax({
		        url: formURL,
		        type: "POST",
		        data: postData,
		        cache: false,
		        success: function (data, textStatus, jqXHR) {
		            var content = $(data).filter(retSel).html();
		            if (content == undefined)
		                content = $(data).find(retSel).html();
		              
		            container.html(content);
		            container.stopLoad();
		            setupPage();
		        },
		        error: function (jqXHR, textStatus, errorThrown) {
		            console.log(jqXHR)
		            console.log(textStatus)
		            console.log(errorThrown)
		        }
		    });

        })
        
        // AUTOCOMPLETE
        completeurl = window.location.href.split('?')[0]+"?"+"tx_kesearchextend_connector[action]=returnAutofill&tx_kesearchextend_connector[str]=!!!&tx_kesearchextend_connector[controller]=Connector";
/*
	_this.find('.kvberlinfaq_searchform_input').autocomplete({
           minLength: 3,
           source: completeurl,
           classes : {
                   'ui-autocomplete' : 'ui-autocomplete standard'
           }
        });*/
        
    }
}(jQuery));

$.additionalSetupPage.push(function () {
    $('.kvberlinfaq').kvberlinfaq();
});

$.additionalResizePage.push(function() {
    if($.isSmall){
        $('.catMenu').addClass('flydown_wrapper');
        $('.catMenu_header_wrapper').addClass('flydown_header');
        $('.catMenu_cat_wrapper').addClass('flydown_contents');
    }else{
        $('.catMenu').removeClass('flydown_wrapper');
        $('.catMenu_header_wrapper').removeClass('flydown_header');
        $('.catMenu_cat_wrapper').removeClass('flydown_contents');
    }
})
/*! jQuery UI - v1.12.1 - 2020-11-19
* http://jqueryui.com
* Includes: widget.js, position.js, keycode.js, unique-id.js, widgets/autocomplete.js, widgets/menu.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){x.ui=x.ui||{};x.ui.version="1.12.1";var n,i=0,a=Array.prototype.slice;x.cleanData=(n=x.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)try{(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove")}catch(t){}n(t)}),x.widget=function(t,i,e){var s,n,o,l={},a=t.split(".")[0],r=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),x.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr[":"][r.toLowerCase()]=function(t){return!!x.data(t,r)},x[a]=x[a]||{},s=x[a][t],n=x[a][t]=function(t,e){if(!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},x.extend(n,s,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new i).options=x.widget.extend({},o.options),x.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}x.isFunction(s)?l[e]=function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:l[e]=s}),n.prototype=x.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},l,{constructor:n,namespace:a,widgetName:t,widgetFullName:r}),s?(x.each(s._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),x.widget.bridge(t,n),n},x.widget.extend=function(t){for(var e,i,s=a.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in s[n])i=s[n][e],s[n].hasOwnProperty(e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(o,e){var l=e.prototype.widgetFullName||o;x.fn[o]=function(i){var t="string"==typeof i,s=a.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,l);return"instance"===i?(n=e,!1):e?x.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:x.error("no such method '"+i+"' for "+o+" widget instance"):x.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=x.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=x.data(this,l);t?(t.option(i||{}),t._init&&t._init()):x.data(this,l,new e(i,this))})),n}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=x(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var o=[],l=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=l.classesElementLookup[t[s]]||x(),i=n.add?x(x.unique(i.get().concat(n.element.get()))):x(i.not(n.element).get()),l.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}return n=x.extend({element:this.element,classes:this.options.classes||{}},n),this._on(n.element,{remove:"_untrackClassesElement"}),n.keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;x.each(s.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(s.classesElementLookup[t]=x(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,t={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return t.element.toggleClass(this._classes(t),s),this},_on:function(n,o,t){var l,a=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=l=x(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,l=this.widget()),x.each(t,function(t,e){function i(){if(n||!0!==a.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?a[e]:e).apply(a,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+a.eventNamespace,s=s[2];s?l.on(t,s,i):o.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!(x.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,l){x.Widget.prototype["_"+o]=function(e,t,i){var s;"string"==typeof t&&(t={effect:t});var n=t?!0!==t&&"number"!=typeof t&&t.effect||l:o;"number"==typeof(t=t||{})&&(t={duration:t}),s=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&x.effects&&x.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){x(this)[o](),i&&i.call(e[0]),t()})}});var s,C,E,o,l,r,u,h,k;x.widget;function T(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function W(t,e){return parseInt(x.css(t,e),10)||0}C=Math.max,E=Math.abs,o=/left|center|right/,l=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,h=/%$/,k=x.fn.position,x.position={scrollbarWidth:function(){if(void 0!==s)return s;var t,e=x("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=x.isWindow(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(c){if(!c||!c.of)return k.apply(this,arguments);c=x.extend({},c);var d,f,m,p,v,t,g=x(c.of),_=x.position.getWithinInfo(c.within),y=x.position.getScrollInfo(_),b=(c.collision||"flip").split(" "),w={},e=9===(t=(e=g)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:x.isWindow(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return g[0].preventDefault&&(c.at="left top"),f=e.width,m=e.height,p=e.offset,v=x.extend({},p),x.each(["my","at"],function(){var t,e,i=(c[this]||"").split(" ");1===i.length&&(i=o.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=o.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],c[this]=[u.exec(i[0])[0],u.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===c.at[0]?v.left+=f:"center"===c.at[0]&&(v.left+=f/2),"bottom"===c.at[1]?v.top+=m:"center"===c.at[1]&&(v.top+=m/2),d=T(w.at,f,m),v.left+=d[0],v.top+=d[1],this.each(function(){var i,t,l=x(this),a=l.outerWidth(),r=l.outerHeight(),e=W(this,"marginLeft"),s=W(this,"marginTop"),n=a+e+W(this,"marginRight")+y.width,o=r+s+W(this,"marginBottom")+y.height,u=x.extend({},v),h=T(w.my,l.outerWidth(),l.outerHeight());"right"===c.my[0]?u.left-=a:"center"===c.my[0]&&(u.left-=a/2),"bottom"===c.my[1]?u.top-=r:"center"===c.my[1]&&(u.top-=r/2),u.left+=h[0],u.top+=h[1],i={marginLeft:e,marginTop:s},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](u,{targetWidth:f,targetHeight:m,elemWidth:a,elemHeight:r,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[d[0]+h[0],d[1]+h[1]],my:c.my,at:c.at,within:_,elem:l})}),c.using&&(t=function(t){var e=p.left-u.left,i=e+f-a,s=p.top-u.top,n=s+m-r,o={target:{element:g,left:p.left,top:p.top,width:f,height:m},element:{element:l,left:u.left,top:u.top,width:a,height:r},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};f<a&&E(e+i)<f&&(o.horizontal="center"),m<r&&E(s+n)<m&&(o.vertical="middle"),C(E(e),E(i))>C(E(s),E(n))?o.important="horizontal":o.important="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0<l&&a<=0?(i=t.left+l+e.collisionWidth-n-s,t.left+=l-i):t.left=!(0<a&&l<=0)&&a<l?s+n-e.collisionWidth:s:0<l?t.left+=l:0<a?t.left-=a:t.left=C(t.left-o,t.left)},top:function(t,e){var i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,l=s-o,a=o+e.collisionHeight-n-s;e.collisionHeight>n?0<l&&a<=0?(i=t.top+l+e.collisionHeight-n-s,t.top+=l-i):t.top=!(0<a&&l<=0)&&a<l?s+n-e.collisionHeight:s:0<l?t.top+=l:0<a?t.top-=a:t.top=C(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,o=i.isWindow?i.scrollLeft:i.offset.left,l=t.left-e.collisionPosition.marginLeft,a=l-o,r=l+e.collisionWidth-n-o,u="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,l=-2*e.offset[0];a<0?((s=t.left+u+i+l+e.collisionWidth-n-s)<0||s<E(a))&&(t.left+=u+i+l):0<r&&(0<(o=t.left-e.collisionPosition.marginLeft+u+i+l-o)||E(o)<r)&&(t.left+=u+i+l)},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,o=i.isWindow?i.scrollTop:i.offset.top,l=t.top-e.collisionPosition.marginTop,a=l-o,r=l+e.collisionHeight-n-o,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,l=-2*e.offset[1];a<0?((s=t.top+u+i+l+e.collisionHeight-n-s)<0||s<E(a))&&(t.top+=u+i+l):0<r&&(0<(o=t.top-e.collisionPosition.marginTop+u+i+l-o)||E(o)<r)&&(t.top+=u+i+l)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};var t;x.ui.position,x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.fn.extend({uniqueId:(t=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return(i=i||e.body).nodeName||(i=e.body),i},x.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var e,i;this.previousFilter||(e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:n=!1,e=this.previousFilter||"",s=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=x.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:x(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!x(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(e=x(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=x(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||x(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(x.trim(x(this).children(".ui-menu-item-wrapper").text()))})}});x.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=x("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==x.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,e){var i;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)});i=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),(i=e.item.attr("aria-label")||i.value)&&x.trim(i).length&&(this.liveRegion.children().hide(),x("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=x("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,s,n=this;x.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=x.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(!t||e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return x.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:x.map(t,function(t){return"string"==typeof t?{label:t,value:t}:x.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(x.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;x.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return x("<li>").append(x("<div>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),x("<div>").text(e).appendTo(this.liveRegion))}});x.ui.autocomplete});
$.additionalSetupPage.push(function () {
  url =
    window.location.href.split("?")[0] +
    "?" +
    "tx_kesearchextend_connector[action]=returnAutofill&tx_kesearchextend_connector[controller]=Connector";
  classes = $("#ke_search_sword").closest("#mainheader").length
    ? "header"
    : "standard";


  $("#ke_search_sword").autocomplete({
    minLength: 3,
    //source: url,
       source: function( request, response ) {
        $.ajax({
            dataType: "json",
            type : 'Get',
            url: url + "&tx_kesearchextend_connector[str]="+$("#ke_search_sword").val(),
            success: function(data) {
	            console.log(data,11)
                response(data)
            },
            error: function(data) {
               console.log(data,22)
            }
        });
    },
    classes: {
      "ui-autocomplete": "ui-autocomplete " + classes,
    }
  });

  $(".suggestionlink a").click(function (e) {
    $(this).ajaxLink(e);
  });

  if ($("#sword").text().length) {
    let sword = $("#sword").text();
    $(".kesearch_pagebrowser a, .kesearch_ordering a").each(function (i, v) {
      if ($(this).attr("href").indexOf("sword") < 0) {
        $(this).attr(
          "href",
          $(this).attr("href") + "&tx_kesearch_pi1%5Bsword%5D=" + sword
        );
      }
    });
  }
});

(function ($) {
  $.fn.mediathek = function (options) {
    _this = this;
    let videoIdUp = this.find(".mediathekp_wrapper .mediathekp_videoid").text();
    const wrapper = _this.find(".mediathekp_wrapper");
    const iframe = _this.find(".mediap_iframe");
    const thumbs = _this.find('.mediathek_thumb');
    let videoLoaded = false;
    let cookieIt = false;
    if(typeof $.cookiesAllowed  !== 'undefined'){
      cookieIt = $.cookiesAllowed;
    }

    _this.find(".noticebutton").click(function () {
      releaseIframe();
    });

    $('.mediathek_thumb').click(function(){
      clickThumb(this);
    })

    const releaseIframe = function () {
      wrapper.addClass("released");
      videoLoaded = true;
      if(cookieIt){
        Cookies.set("playerreleased", '1', {expires: 0.25, path: ''});
      }
      loadVideo();
    };

    const clickThumb = function(ob){
      videoIdUp = $(ob).find('.videoid').text();
      wrapper.find('.mediathekp_title').text($(ob).find('.title').text());
      wrapper.find('.mediathekp_description').text($(ob).find('.description').text());
      wrapper.find('.mediathekp_timedur').text($(ob).find('.timedur').text());
      wrapper.find('.mediathekp_videoid').text($(ob).find('.videoid').text());
      wrapper.find('.mediap_img').attr('src', $(ob).find('.thumbimg').attr('src'));
      thumbs.removeClass('act');
      $(ob).addClass('act');
      loadVideo();
     _this.scrollToObject();
    }

    const loadVideo = function(){
      if(!videoLoaded) return;
      iframe.attr('src', "https://www.youtube.com/embed/"+videoIdUp);
    }

    /** START IT UP **/
    $('.mediathek_thumb:first').click();

    if(Cookies.get("playerreleased") == "1"){
      releaseIframe();
    }
  };
})(jQuery);

$(document).ready(function () {
  $(".mediathek").mediathek();
});

if ($.additionalSetupPage) {
  $.additionalSetupPage.push(function () {
    $(".mediathek").mediathek();
  });
}
