(()=>{"use strict";function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(n)}function n(e,n){for(var o=0;o<n.length;o++){var t=n[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,r(t.key),t)}}function r(n){var r=function(n,r){if("object"!=e(n)||!n)return n;var o=n[Symbol.toPrimitive];if(void 0!==o){var t=o.call(n,r||"default");if("object"!=e(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(n)}(n,"string");return"symbol"==e(r)?r:String(r)}var o=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}var r,o,t;return r=e,(o=[{key:"init",value:function(){$(".language-wrapper .dropdown .dropdown-toggle").off("click").on("click",(function(e){e.preventDefault();var n=$(e.currentTarget);n.hasClass("active")?(n.closest(".language-wrapper").find(".dropdown .dropdown-menu").hide(),n.removeClass("active")):(n.closest(".language-wrapper").find(".dropdown .dropdown-menu").show(),n.addClass("active"))})),$(document).on("click",(function(e){var n=$(e.currentTarget);0===n.closest(".language-wrapper").length&&(n.closest(".language-wrapper").find(".dropdown .dropdown-menu").hide(),n.closest(".language-wrapper").find(".dropdown .dropdown-toggle").removeClass("active"))}))}}])&&n(r.prototype,o),t&&n(r,t),Object.defineProperty(r,"prototype",{writable:!1}),e}();$((function(){(new o).init()}))})();