

/* -- 0-console.js -- */

// Avoid `console` errors in browsers that lack a console.
;(function() {
    var method;
    var noop = function noop() {};
    var methods = [
        'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
        'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
        'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
        'timeStamp', 'trace', 'warn'
    ];
    var length = methods.length;
    var console = (window.console = window.console || {});

    while (length--) {
        method = methods[length];

        // Only stub undefined methods.
        if (!console[method]) {
            console[method] = noop;
        }
    }
}());


/* -- Martini-QueryString.js -- */

/**
 * Examples:
 *   qs - provides two functions
 *      qa.get('action') will return any variable attached to ?action=foo in the querystring.
 *      qa.objToQueryString - will return a query string from a key:value object
 *
 */

var qs = {
    parsed : false,
    queryString : {},
    get:function(key) {
        if (!this.parsed) {
            this.init();
        }
        return (typeof this.queryString[key] == 'undefined') ? null : this.queryString[key];
    },
    init:function () {
        this.queryString = this.decode(location.search.replace(/\?/,''));
        this.parsed = true;
    },
    decode: function(data) {
        var pairs = data.split('&');
        var l = pairs.length;

        var parsedData = {};

        for ( var i = 0; i < l; i++) {
            var val = pairs[i].toString();
            if (pairs[i].indexOf("=") == -1) {
                continue;
            }

            var keyval = pairs[i].split( "=" );

            if (parsedData.hasOwnProperty(keyval[0]))  {
                if (parsedData[keyval[0]] instanceof Array) {
                    parsedData[keyval[0]].push(keyval[1]);
                } else {
                    var existingData = parsedData[keyval[0]];
                    parsedData[keyval[0]] = [];
                    parsedData[keyval[0]].push(existingData);
                    parsedData[keyval[0]].push(keyval[1]);
                }
            } else {
                parsedData[ keyval[0] ] = keyval[1];
            }
        }

        return parsedData;
    },
    objToQueryString : function(qs) {
        var pairs = [];
        $.each(qs, function (key, value) {
            // we don't set for invalid values
            if (value == null || value.length < 1) {
                return;
            }
            pairs.push(key+'='+encodeURIComponent(value.toLowerCase().replace('"','')));
        });

        return pairs.join('&');
    }
};


/* -- Martini-Skin.js -- */

/* eslint-disable */
/*
 *  Martinit Skin Handler
 *
 * This script is initiated by DFP skin ads and forces skin ads to be positioned below the primary navigation.
 */
(function() {
    var MartiniSkin = {
        ad_container: null,
        top_section_height: null,
        init: function(ad_container, top_section_height){

            MartiniSkin.ad_container = ad_container; // '#creative_disp'
            MartiniSkin.top_section_height = top_section_height + "px"; // '250'

            // Remove background colour and width (if set) - For some reason setting these using .css() wont work.
            $('#takeover').attr("style", "background: none !important; width: auto !important; margin-top: 0 !important");

            // Make advert go behind body content
            $(MartiniSkin.ad_container+", "+MartiniSkin.ad_container+" > div").css("z-index", "0");

            // Make all containers on page have a higher z-index
            $('#takeover .container').css("z-index", "1");

            // Make first container have a passing-top when skin is enabled.
            $('#redesign-content > .container:first-child').css("padding-top", "25px");

            // Hide top leaderboard ad.
            $('#DFP_top_leaderboard').hide();

            MartiniSkin.positionSkin();

            // Apply top margin to main content for height of top skin section
            $('#redesign-content').css("margin-top", MartiniSkin.top_section_height);

            //Re-position skin on scroll
            $(window).scroll(function() {
                MartiniSkin.positionSkin();
            });
        },
        positionSkin: function(){
            // Get height of visible header
            var header_visible = MartiniSkin.getVisible('#redesign-header');

            if(header_visible > 38){
                $(MartiniSkin.ad_container+", "+MartiniSkin.ad_container+" > div").css("top", header_visible + "px");
            }else{
                $(MartiniSkin.ad_container+", "+MartiniSkin.ad_container+" > div").css("top", "38px"); // Height of sticky nav
            }
        },
        getVisible: function(el) {
            $el = $(el);
            scrollTop = $('body').scrollTop(),
            scrollBot = scrollTop + $('body').height(),
            elTop = $el.offset().top,
            elBottom = elTop + $el.outerHeight(),
            visibleTop = elTop < scrollTop ? scrollTop : elTop,
            visibleBottom = elBottom > scrollBot ? scrollBot : elBottom;
            return visibleBottom - visibleTop;
        }
    };

    window.MartiniSkin = MartiniSkin;
})();


/* -- PageHeader.js -- */

/* eslint-disable */
; $(document).ready(function() {


var PageHeader = {

    scrollPosition: 0,
    timeout: null,
    triggerAdSticky: true,
    adHeightSet: false,

    init: function() {
        this.bind();
        this.initNav();
    },

    bind: function() {
        if ($( "#redesign-header").length === 0) {
            return;
        }


        var self = this;

        // Mega Menu Open
        $( "#redesign-header").on("click", ".trigger-mega-nav", function() {
            // Cache scroll position for when the user closes the mega menu
            self.scrollPosition = $(document).scrollTop();

            //Toggle
            $('#mega-menu, #redesign-mega-menu, #takeover').toggle();
        });

        // Mega Menu Close
        $( "#mega-menu" ).on("click", "i.m-icon-cancel-1", function() {
            //Toggle
            $('#mega-menu, #takeover').toggle( 0, function(){
                // Apply cached scroll position
                $(document).scrollTop(self.scrollPosition);
            });
        });

        // Search Tooltip
        $("#redesign-header").on("click", ".search a", function(e) {
            e.preventDefault();

            $('.search-tooltip').slideToggle(300, function(){
                if($(this).is(':visible')){
                    $(this).parent().find('a i').attr("class", "m-icon-cancel-1");
                }else{
                    $(this).parent().find('a i').attr("class", "m-icon-search");
                }
                $('.search-tooltip input').get(0).focus();
            });
        });

        // Social Tooltips
        $( "#redesign-header" ).on( "click", ".social-icon", function(e) {
            var socialItem = $(this).data("social");

            // Ensure all other social tooltips are closed.
            $(".social-tooltip").each(function( index ) {
                var network = $(this).parent().find(".social-icon").data("social");
                if(network != socialItem){
                    $(".social-tooltip-"+network).hide();
                }
            });

            $(this).parent().find(".social-tooltip").toggle();
        });
    },
    initNav: function() {

        if ($('.brand').length === 0) {
            return;
        }

        // jQuery .load() errors on mobile so we use this alternative
        var image = new Image();
        image.onload = function () {
            // Initiate ad sticky
            PageHeader.initAdSticky();

            // Initiate sticky nav
            if (window.screen.width <= 768) {
                if($('#BlockArticleDisplay').length === 0){
                    PageHeader.initSticky();
                }

                // Handle window scroll
                $(window).scroll(function() {
                    if($('#BlockArticleDisplay').length === 0){
                        PageHeader.initSticky();
                    }
                    PageHeader.initAdSticky();
                });
            }else{
                // Handle window scroll
                $(window).scroll(function() {
                    PageHeader.initAdSticky();
                });
            }

            // Handle window resizes
            // Unfortunately, we have to do this
            $(window).resize(function() {
                // Re-calculate sticky trigger
                // We have to do this, because reducing the viewport width may result in a change to the header height (as logo gets smaller).
                PageHeader.showHideNavItems();
            });

            // Run show hide nav items after 5,10,15 seconds - by this point hopefully any skins would have loaded.
            setTimeout(PageHeader.showHideNavItems, 5000);
            setTimeout(PageHeader.showHideNavItems, 10000);
            setTimeout(PageHeader.showHideNavItems, 15000);
        }

        image.src = $('.brand').attr('src');
    },

    initAdSticky: function() {
        // if we've turned off the trigger, exit.
        if (!PageHeader.triggerAdSticky) {
            return;
        }

        var advert = $('#DFP_top_leaderboard');
        var advertHeight = advert.height() + 20;

        var takeOverPos = $('#takeover').position();
        var takeOverMarginTop = parseInt($('#takeover').css("margin-top"), 10); // Some skins add a margin-top.
        var adYTriggerPoint = $('#redesign-header').height() + parseInt($('#redesign-header').css("margin-bottom"), 10) + takeOverPos.top + takeOverMarginTop;

        // adjust for smoothness
        adYTriggerPoint -= 10;

        if ($(window).scrollTop() > adYTriggerPoint){
            if (advertHeight > 0 && !PageHeader.adHeightSet) {
                advert.parent().css('height', advertHeight+'px');
                PageHeader.adHeightSet = true;
            }

            if(!advert.hasClass("is-sticky")) {
                advert.addClass("is-sticky");
                window.setTimeout(PageHeader.hideAdSticky, 3000); // hide after 3 seconds.
            }
        } else {
            advert.removeClass("is-sticky");
        }
    },
    hideAdSticky: function() {
        PageHeader.triggerAdSticky = false;
        $('#DFP_top_leaderboard').removeClass("is-sticky");
        $('#DFP_top_leaderboard').parent().css('height', 'auto');

        // This code is used to notify the "NextUpDesktop" component that the sticky ad has closed and therefore can be displayed.
        if (typeof nextUpDesktop != 'undefined') {
            nextUpDesktop.stickyAdClosedTrigger();
        }
        if (typeof articleStickyNavDesktop != 'undefined') {
            articleStickyNavDesktop.stickyAdClosedTrigger();
        }
    },

    initSticky: function(){
        var header = $('header');

        var mobileSticky = $('.primary-nav.primary-nav-mobile-sticky');
        var desktopSticky = $('.primary-nav.primary-nav-mobile-sticky');

        // NOTE: Here we will need to work out based on viewport width if desktop of mobile sticky is required. For now, always show mobile.
        var sticky = mobileSticky;

        // Accommodate skins.
        var takeOverPos = $('#takeover').position();
        var takeOverMarginTop = parseInt($('#takeover').css("margin-top"), 10); // Some skins add a margin-top.
        var navYTriggerPoint = $('#redesign-header').height() - 37 + takeOverPos.top + takeOverMarginTop;

        if ($(window).scrollTop() > navYTriggerPoint){
            // does the element already have scroll class?
            if(!sticky.hasClass("is-sticky")){
                // Make overflow hidden for duration of transition
                //$('.primary-nav-menu').animate({ marginLeft: '230px'}, 200)

                // Make sticky
                sticky.addClass("is-sticky");

                // Wait for transition to be complete before rechecking nav items.
                // header.one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(e) {
                //     // $('.primary-nav-menu').css("overflow", "visible");
                //     // PageHeader.showHideNavItems();
                // });
            }
        }else{
            sticky.removeClass("is-sticky");
            //$('.primary-nav-menu').css("margin-left", "0");
            // PageHeader.showHideNavItems();
        }
    },

    showHideNavItems: function() {
        // This function is used to hide nav links that fall below the navigation
        var $primary_nav_menu_items = $('nav.primary-nav-non-sticky .primary-nav-menu > li');

        // Loop over items
        $primary_nav_menu_items.each(function(index) {
            if(index > 0){
                $(this).show();

                var item_pos = $(this).position();

                if(item_pos.top > 0){
                    $(this).hide();
                }
            }
        });
    // window.clearTimeout(this.timeout);
        // this.timeout = window.setTimeout(PageHeader.showHideNavItems, 1000);
    },
    // checkTouchUser: function() {
    //     window.addEventListener('touchstart', function onFirstTouch() {
    //
    //         // or set your app's state however you normally would
    //         $(window).trigger('USER:TOUCHING');
    //
    //         // we've had the event, we don't care again
    //         window.removeEventListener('touchstart', onFirstTouch, false);
    //     }, false);
    // }
};
    PageHeader.init();
    window.PageHeader = PageHeader;
});


/* -- RedesignEvents.js -- */

// hack around load order
window.formValidate = function () {
    if ($('.addEventForm').length > 0) {
        if ($('.validateError').length === 0) {
            $('.addEventForm').prepend('<div class="validateError" style="display: none;"><h4>Sorry, it appears some details are missing or incorrect.</h4><p>Please review the following errors, you will then be able to preview and submit your event.</p><ul></ul></div>');
        }

        $('.addEventForm').validate({
            ignoreTitle: true,
            errorContainer: '.validateError',
            errorLabelContainer: '.validateError ul',
            wrapper: 'li',
            errorClass: 'fieldInvalid',
            highlight: function(element, errorClass) {
                $(element).addClass(errorClass);
                const label = 'label[for="'+ element.id +'"]';
                const elementId = '#'+element.id;
                $(element.form).find(label).parent().addClass(errorClass);
                $(element.form).find(elementId).parent('fieldset').addClass(errorClass);
            },
            unhighlight: function(element, errorClass) {
                const label = 'label[for="'+ element.id +'"]';
                const elementId = '#'+element.id;
                $(element).removeClass(errorClass);
                $(element.form).find(label).parent().removeClass(errorClass);
                $(element.form).find(elementId).parent('fieldset').removeClass(errorClass);
            },

            rules: {
                EventName: {
                    required: true,
                    minlength: 5,
                },
                EventTypeID: {
                    required: true,
                },
                EventDetails: {
                    required: true,
                    minlength: 5,
                    maxlength: 1000,
                },
                EventVenue: {
                    required: true,
                },
                EventAddress: {
                    required: true,
                },
                EventCityTown: {
                    required: true,
                },
                EventPostCode: {
                    required: true,
                },
                StartDate: {
                    required: true,
                },
                StartTimeHH: {
                    required: true,
                },
                StartTimeMM: {
                    required: true,
                },
                AccountName: {
                    required: true,
                },
                AccountTelephone: {
                    required: true,
                },
                AccountEmail: {
                    required: true,
                    email: true,
                },
                captcha: {
                    required: true,
                },
            },

            messages: {
                EventName: {
                    required: 'Please specify the <strong>event name</strong>',
                    minlength: window.$.validator.format('The <strong>event name</strong> should have at least {0} characters'),
                },
                EventTypeID: {
                    required: 'Please specify the <strong>event type</strong>',
                },
                EventDetails: {
                    required: 'Please specify the <strong>event details</strong>',
                },
                EventVenue: {
                    required: 'Please specify the <strong>venue name</strong>',
                },
                EventAddress: {
                    required: 'Please specify the <strong>venue street</strong>',
                },
                EventCityTown: {
                    required: 'Please specify the <strong>town/village</strong>',
                },
                EventPostCode: {
                    required: 'Please specify the <strong>event post code</strong>',
                },
                StartDate: {
                    required: 'Please specify the <strong>event start date</strong>',
                },
                StartTimeHH: {
                    required: 'Please specify the <strong>event start time, hours</strong>',
                },
                StartTimeMM: {
                    required: 'Please specify the <strong>event start time, minutes</strong>',
                },
                AccountName: {
                    required: 'Please specify <strong>your name</strong>',
                },
                AccountTelephone: {
                    required: 'Please specify <strong>your telephone number</strong>',
                },
                AccountEmail: {
                    required: 'Please specify <strong>your email address</strong>',
                    email: 'Your <strong>email address</strong> must be in the format name@domain.com',
                },
                captcha: {
                    required: 'Please enter the <strong>security words</strong>',
                },
            },
        });
    }
};



/* -- jquery.cookie.js -- */

if (typeof window.$ !== 'undefined')
{

/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2006, 2014 Klaus Hartl
 * Released under the MIT license
 */
(function (factory) {
	factory(jQuery);
	
}(function ($) {

	var pluses = /\+/g;

	function encode(s) {
		return config.raw ? s : encodeURIComponent(s);
	}

	function decode(s) {
		return config.raw ? s : decodeURIComponent(s);
	}

	function stringifyCookieValue(value) {
		return encode(config.json ? JSON.stringify(value) : String(value));
	}

	function parseCookieValue(s) {
		if (s.indexOf('"') === 0) {
			// This is a quoted cookie as according to RFC2068, unescape...
			s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
		}

		try {
			// Replace server-side written pluses with spaces.
			// If we can't decode the cookie, ignore it, it's unusable.
			// If we can't parse the cookie, ignore it, it's unusable.
			s = decodeURIComponent(s.replace(pluses, ' '));
			return config.json ? JSON.parse(s) : s;
		} catch(e) {}
	}

	function read(s, converter) {
		var value = config.raw ? s : parseCookieValue(s);
		return $.isFunction(converter) ? converter(value) : value;
	}

	var config = $.cookie = function (key, value, options) {

		// Write

		if (arguments.length > 1 && !$.isFunction(value)) {
			options = $.extend({}, config.defaults, options);

			if (typeof options.expires === 'number') {
				var days = options.expires, t = options.expires = new Date();
				t.setMilliseconds(t.getMilliseconds() + days * 864e+5);
			}

			return (document.cookie = [
				encode(key), '=', stringifyCookieValue(value),
				options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
				options.path    ? '; path=' + options.path : '',
				options.domain  ? '; domain=' + options.domain : '',
				options.secure  ? '; secure' : ''
			].join(''));
		}

		// Read

		var result = key ? undefined : {},
			// To prevent the for loop in the first place assign an empty array
			// in case there are no cookies at all. Also prevents odd result when
			// calling $.cookie().
			cookies = document.cookie ? document.cookie.split('; ') : [],
			i = 0,
			l = cookies.length;

		for (; i < l; i++) {
			var parts = cookies[i].split('='),
				name = decode(parts.shift()),
				cookie = parts.join('=');

			if (key === name) {
				// If second argument (value) is a function it's a converter...
				result = read(cookie, value);
				break;
			}

			// Prevent storing a cookie that we couldn't decode.
			if (!key && (cookie = read(cookie)) !== undefined) {
				result[name] = cookie;
			}
		}

		return result;
	};

	config.defaults = {};

	$.removeCookie = function (key, options) {
		// Must not alter options, thus extending a fresh object...
		$.cookie(key, '', $.extend({}, options, { expires: -1 }));
		return !$.cookie(key);
	};

}));

}


/* -- mobile-detect.js -- */

// THIS FILE IS GENERATED - DO NOT EDIT!
/*!mobile-detect v1.3.5 2016-11-14*/
/*global module:false, define:false*/
/*jshint latedef:false*/
/*!@license Copyright 2013, Heinrich Goebl, License: MIT, see https://github.com/hgoebl/mobile-detect.js*/
(function () {
    'use strict';

    var impl = {};

    impl.mobileDetectRules = {
    "phones": {
        "iPhone": "\\biPhone\\b|\\biPod\\b",
        "BlackBerry": "BlackBerry|\\bBB10\\b|rim[0-9]+",
        "HTC": "HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m",
        "Nexus": "Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",
        "Dell": "Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",
        "Motorola": "Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b",
        "Samsung": "\\bSamsung\\b|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F",
        "LG": "\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)",
        "Sony": "SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",
        "Asus": "Asus.*Galaxy|PadFone.*Mobile",
        "NokiaLumia": "Lumia [0-9]{3,4}",
        "Micromax": "Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",
        "Palm": "PalmSource|Palm",
        "Vertu": "Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",
        "Pantech": "PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",
        "Fly": "IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",
        "Wiko": "KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",
        "iMobile": "i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",
        "SimValley": "\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",
        "Wolfgang": "AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",
        "Alcatel": "Alcatel",
        "Nintendo": "Nintendo 3DS",
        "Amoi": "Amoi",
        "INQ": "INQ",
        "GenericPhone": "Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"
    },
    "tablets": {
        "iPad": "iPad|iPad.*Mobile",
        "NexusTablet": "Android.*Nexus[\\s]+(7|9|10)",
        "SamsungTablet": "SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|SM-T719|SM-T813|SM-T819|SM-T580|SM-T355Y|SM-T280",
        "Kindle": "Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI)\\b",
        "SurfaceTablet": "Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",
        "HPTablet": "HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",
        "AsusTablet": "^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z",
        "BlackBerryTablet": "PlayBook|RIM Tablet",
        "HTCtablet": "HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",
        "MotorolaTablet": "xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",
        "NookTablet": "Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",
        "AcerTablet": "Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20\\b|\\bA3-A30",
        "ToshibaTablet": "Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",
        "LGTablet": "\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",
        "FujitsuTablet": "Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",
        "PrestigioTablet": "PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",
        "LenovoTablet": "Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",
        "DellTablet": "Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",
        "YarvikTablet": "Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",
        "MedionTablet": "Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",
        "ArnovaTablet": "97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",
        "IntensoTablet": "INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",
        "IRUTablet": "M702pro",
        "MegafonTablet": "MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",
        "EbodaTablet": "E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",
        "AllViewTablet": "Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",
        "ArchosTablet": "\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",
        "AinolTablet": "NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",
        "NokiaLumiaTablet": "Lumia 2520",
        "SonyTablet": "Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",
        "PhilipsTablet": "\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",
        "CubeTablet": "Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",
        "CobyTablet": "MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",
        "MIDTablet": "M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10",
        "MSITablet": "MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",
        "SMiTTablet": "Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",
        "RockChipTablet": "Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",
        "FlyTablet": "IQ310|Fly Vision",
        "bqTablet": "Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris [E|M]10)|Maxwell.*Lite|Maxwell.*Plus",
        "HuaweiTablet": "MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",
        "NecTablet": "\\bN-06D|\\bN-08D",
        "PantechTablet": "Pantech.*P4100",
        "BronchoTablet": "Broncho.*(N701|N708|N802|a710)",
        "VersusTablet": "TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",
        "ZyncTablet": "z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",
        "PositivoTablet": "TB07STA|TB10STA|TB07FTA|TB10FTA",
        "NabiTablet": "Android.*\\bNabi",
        "KoboTablet": "Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",
        "DanewTablet": "DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",
        "TexetTablet": "NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",
        "PlaystationTablet": "Playstation.*(Portable|Vita)",
        "TrekstorTablet": "ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",
        "PyleAudioTablet": "\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",
        "AdvanTablet": "Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",
        "DanyTechTablet": "Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",
        "GalapadTablet": "Android.*\\bG1\\b",
        "MicromaxTablet": "Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",
        "KarbonnTablet": "Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",
        "AllFineTablet": "Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",
        "PROSCANTablet": "\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",
        "YONESTablet": "BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",
        "ChangJiaTablet": "TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",
        "GUTablet": "TX-A1301|TX-M9002|Q702|kf026",
        "PointOfViewTablet": "TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",
        "OvermaxTablet": "OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",
        "HCLTablet": "HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",
        "DPSTablet": "DPS Dream 9|DPS Dual 7",
        "VistureTablet": "V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",
        "CrestaTablet": "CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",
        "MediatekTablet": "\\bMT8125|MT8389|MT8135|MT8377\\b",
        "ConcordeTablet": "Concorde([ ]+)?Tab|ConCorde ReadMan",
        "GoCleverTablet": "GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",
        "ModecomTablet": "FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",
        "VoninoTablet": "\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",
        "ECSTablet": "V07OT2|TM105A|S10OT1|TR10CS1",
        "StorexTablet": "eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",
        "VodafoneTablet": "SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497",
        "EssentielBTablet": "Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",
        "RossMoorTablet": "RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",
        "iMobileTablet": "i-mobile i-note",
        "TolinoTablet": "tolino tab [0-9.]+|tolino shine",
        "AudioSonicTablet": "\\bC-22Q|T7-QC|T-17B|T-17P\\b",
        "AMPETablet": "Android.* A78 ",
        "SkkTablet": "Android.* (SKYPAD|PHOENIX|CYCLOPS)",
        "TecnoTablet": "TECNO P9",
        "JXDTablet": "Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",
        "iJoyTablet": "Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",
        "FX2Tablet": "FX2 PAD7|FX2 PAD10",
        "XoroTablet": "KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",
        "ViewsonicTablet": "ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",
        "OdysTablet": "LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",
        "CaptivaTablet": "CAPTIVA PAD",
        "IconbitTablet": "NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",
        "TeclastTablet": "T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",
        "OndaTablet": "\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",
        "JaytechTablet": "TPC-PA762",
        "BlaupunktTablet": "Endeavour 800NG|Endeavour 1010",
        "DigmaTablet": "\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",
        "EvolioTablet": "ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",
        "LavaTablet": "QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",
        "AocTablet": "MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712",
        "MpmanTablet": "MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010",
        "CelkonTablet": "CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",
        "WolderTablet": "miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",
        "MiTablet": "\\bMI PAD\\b|\\bHM NOTE 1W\\b",
        "NibiruTablet": "Nibiru M1|Nibiru Jupiter One",
        "NexoTablet": "NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",
        "LeaderTablet": "TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",
        "UbislateTablet": "UbiSlate[\\s]?7C",
        "PocketBookTablet": "Pocketbook",
        "KocasoTablet": "\\b(TB-1207)\\b",
        "HisenseTablet": "\\b(F5281|E2371)\\b",
        "Hudl": "Hudl HT7S3|Hudl 2",
        "TelstraTablet": "T-Hub2",
        "GenericTablet": "Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b"
    },
    "oss": {
        "AndroidOS": "Android",
        "BlackBerryOS": "blackberry|\\bBB10\\b|rim tablet os",
        "PalmOS": "PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",
        "SymbianOS": "Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",
        "WindowsMobileOS": "Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",
        "WindowsPhoneOS": "Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",
        "iOS": "\\biPhone.*Mobile|\\biPod|\\biPad",
        "MeeGoOS": "MeeGo",
        "MaemoOS": "Maemo",
        "JavaOS": "J2ME\/|\\bMIDP\\b|\\bCLDC\\b",
        "webOS": "webOS|hpwOS",
        "badaOS": "\\bBada\\b",
        "BREWOS": "BREW"
    },
    "uas": {
        "Chrome": "\\bCrMo\\b|CriOS|Android.*Chrome\/[.0-9]* (Mobile)?",
        "Dolfin": "\\bDolfin\\b",
        "Opera": "Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR\/[0-9.]+|Coast\/[0-9.]+",
        "Skyfire": "Skyfire",
        "Edge": "Mobile Safari\/[.0-9]* Edge",
        "IE": "IEMobile|MSIEMobile",
        "Firefox": "fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS",
        "Bolt": "bolt",
        "TeaShark": "teashark",
        "Blazer": "Blazer",
        "Safari": "Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",
        "UCBrowser": "UC.*Browser|UCWEB",
        "baiduboxapp": "baiduboxapp",
        "baidubrowser": "baidubrowser",
        "DiigoBrowser": "DiigoBrowser",
        "Puffin": "Puffin",
        "Mercury": "\\bMercury\\b",
        "ObigoBrowser": "Obigo",
        "NetFront": "NF-Browser",
        "GenericBrowser": "NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger",
        "PaleMoon": "Android.*PaleMoon|Mobile.*PaleMoon"
    },
    "props": {
        "Mobile": "Mobile\/[VER]",
        "Build": "Build\/[VER]",
        "Version": "Version\/[VER]",
        "VendorID": "VendorID\/[VER]",
        "iPad": "iPad.*CPU[a-z ]+[VER]",
        "iPhone": "iPhone.*CPU[a-z ]+[VER]",
        "iPod": "iPod.*CPU[a-z ]+[VER]",
        "Kindle": "Kindle\/[VER]",
        "Chrome": [
            "Chrome\/[VER]",
            "CriOS\/[VER]",
            "CrMo\/[VER]"
        ],
        "Coast": [
            "Coast\/[VER]"
        ],
        "Dolfin": "Dolfin\/[VER]",
        "Firefox": [
            "Firefox\/[VER]",
            "FxiOS\/[VER]"
        ],
        "Fennec": "Fennec\/[VER]",
        "Edge": "Edge\/[VER]",
        "IE": [
            "IEMobile\/[VER];",
            "IEMobile [VER]",
            "MSIE [VER];",
            "Trident\/[0-9.]+;.*rv:[VER]"
        ],
        "NetFront": "NetFront\/[VER]",
        "NokiaBrowser": "NokiaBrowser\/[VER]",
        "Opera": [
            " OPR\/[VER]",
            "Opera Mini\/[VER]",
            "Version\/[VER]"
        ],
        "Opera Mini": "Opera Mini\/[VER]",
        "Opera Mobi": "Version\/[VER]",
        "UC Browser": "UC Browser[VER]",
        "MQQBrowser": "MQQBrowser\/[VER]",
        "MicroMessenger": "MicroMessenger\/[VER]",
        "baiduboxapp": "baiduboxapp\/[VER]",
        "baidubrowser": "baidubrowser\/[VER]",
        "SamsungBrowser": "SamsungBrowser\/[VER]",
        "Iron": "Iron\/[VER]",
        "Safari": [
            "Version\/[VER]",
            "Safari\/[VER]"
        ],
        "Skyfire": "Skyfire\/[VER]",
        "Tizen": "Tizen\/[VER]",
        "Webkit": "webkit[ \/][VER]",
        "PaleMoon": "PaleMoon\/[VER]",
        "Gecko": "Gecko\/[VER]",
        "Trident": "Trident\/[VER]",
        "Presto": "Presto\/[VER]",
        "Goanna": "Goanna\/[VER]",
        "iOS": " \\bi?OS\\b [VER][ ;]{1}",
        "Android": "Android [VER]",
        "BlackBerry": [
            "BlackBerry[\\w]+\/[VER]",
            "BlackBerry.*Version\/[VER]",
            "Version\/[VER]"
        ],
        "BREW": "BREW [VER]",
        "Java": "Java\/[VER]",
        "Windows Phone OS": [
            "Windows Phone OS [VER]",
            "Windows Phone [VER]"
        ],
        "Windows Phone": "Windows Phone [VER]",
        "Windows CE": "Windows CE\/[VER]",
        "Windows NT": "Windows NT [VER]",
        "Symbian": [
            "SymbianOS\/[VER]",
            "Symbian\/[VER]"
        ],
        "webOS": [
            "webOS\/[VER]",
            "hpwOS\/[VER];"
        ]
    },
    "utils": {
        "Bot": "Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|YandexMobileBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",
        "MobileBot": "Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker\/M1A1-R2D2",
        "DesktopMode": "WPDesktop",
        "TV": "SonyDTV|HbbTV",
        "WebKit": "(webkit)[ \/]([\\w.]+)",
        "Console": "\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",
        "Watch": "SM-V700"
    }
};

    // following patterns come from http://detectmobilebrowsers.com/
    impl.detectMobileBrowsers = {
        fullPattern: /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,
        shortPattern: /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
        tabletPattern: /android|ipad|playbook|silk/i
    };

    var hasOwnProp = Object.prototype.hasOwnProperty,
        isArray;

    impl.FALLBACK_PHONE = 'UnknownPhone';
    impl.FALLBACK_TABLET = 'UnknownTablet';
    impl.FALLBACK_MOBILE = 'UnknownMobile';

    isArray = ('isArray' in Array) ?
        Array.isArray : function (value) { return Object.prototype.toString.call(value) === '[object Array]'; };

    function equalIC(a, b) {
        return a != null && b != null && a.toLowerCase() === b.toLowerCase();
    }

    function containsIC(array, value) {
        var valueLC, i, len = array.length;
        if (!len || !value) {
            return false;
        }
        valueLC = value.toLowerCase();
        for (i = 0; i < len; ++i) {
            if (valueLC === array[i].toLowerCase()) {
                return true;
            }
        }
        return false;
    }

    function convertPropsToRegExp(object) {
        for (var key in object) {
            if (hasOwnProp.call(object, key)) {
                object[key] = new RegExp(object[key], 'i');
            }
        }
    }

    (function init() {
        var key, values, value, i, len, verPos, mobileDetectRules = impl.mobileDetectRules;
        for (key in mobileDetectRules.props) {
            if (hasOwnProp.call(mobileDetectRules.props, key)) {
                values = mobileDetectRules.props[key];
                if (!isArray(values)) {
                    values = [values];
                }
                len = values.length;
                for (i = 0; i < len; ++i) {
                    value = values[i];
                    verPos = value.indexOf('[VER]');
                    if (verPos >= 0) {
                        value = value.substring(0, verPos) + '([\\w._\\+]+)' + value.substring(verPos + 5);
                    }
                    values[i] = new RegExp(value, 'i');
                }
                mobileDetectRules.props[key] = values;
            }
        }
        convertPropsToRegExp(mobileDetectRules.oss);
        convertPropsToRegExp(mobileDetectRules.phones);
        convertPropsToRegExp(mobileDetectRules.tablets);
        convertPropsToRegExp(mobileDetectRules.uas);
        convertPropsToRegExp(mobileDetectRules.utils);

        // copy some patterns to oss0 which are tested first (see issue#15)
        mobileDetectRules.oss0 = {
            WindowsPhoneOS: mobileDetectRules.oss.WindowsPhoneOS,
            WindowsMobileOS: mobileDetectRules.oss.WindowsMobileOS
        };
    }());

    /**
     * Test userAgent string against a set of rules and find the first matched key.
     * @param {Object} rules (key is String, value is RegExp)
     * @param {String} userAgent the navigator.userAgent (or HTTP-Header 'User-Agent').
     * @returns {String|null} the matched key if found, otherwise <tt>null</tt>
     * @private
     */
    impl.findMatch = function(rules, userAgent) {
        for (var key in rules) {
            if (hasOwnProp.call(rules, key)) {
                if (rules[key].test(userAgent)) {
                    return key;
                }
            }
        }
        return null;
    };

    /**
     * Test userAgent string against a set of rules and return an array of matched keys.
     * @param {Object} rules (key is String, value is RegExp)
     * @param {String} userAgent the navigator.userAgent (or HTTP-Header 'User-Agent').
     * @returns {Array} an array of matched keys, may be empty when there is no match, but not <tt>null</tt>
     * @private
     */
    impl.findMatches = function(rules, userAgent) {
        var result = [];
        for (var key in rules) {
            if (hasOwnProp.call(rules, key)) {
                if (rules[key].test(userAgent)) {
                    result.push(key);
                }
            }
        }
        return result;
    };

    /**
     * Check the version of the given property in the User-Agent.
     *
     * @param {String} propertyName
     * @param {String} userAgent
     * @return {String} version or <tt>null</tt> if version not found
     * @private
     */
    impl.getVersionStr = function (propertyName, userAgent) {
        var props = impl.mobileDetectRules.props, patterns, i, len, match;
        if (hasOwnProp.call(props, propertyName)) {
            patterns = props[propertyName];
            len = patterns.length;
            for (i = 0; i < len; ++i) {
                match = patterns[i].exec(userAgent);
                if (match !== null) {
                    return match[1];
                }
            }
        }
        return null;
    };

    /**
     * Check the version of the given property in the User-Agent.
     * Will return a float number. (eg. 2_0 will return 2.0, 4.3.1 will return 4.31)
     *
     * @param {String} propertyName
     * @param {String} userAgent
     * @return {Number} version or <tt>NaN</tt> if version not found
     * @private
     */
    impl.getVersion = function (propertyName, userAgent) {
        var version = impl.getVersionStr(propertyName, userAgent);
        return version ? impl.prepareVersionNo(version) : NaN;
    };

    /**
     * Prepare the version number.
     *
     * @param {String} version
     * @return {Number} the version number as a floating number
     * @private
     */
    impl.prepareVersionNo = function (version) {
        var numbers;

        numbers = version.split(/[a-z._ \/\-]/i);
        if (numbers.length === 1) {
            version = numbers[0];
        }
        if (numbers.length > 1) {
            version = numbers[0] + '.';
            numbers.shift();
            version += numbers.join('');
        }
        return Number(version);
    };

    impl.isMobileFallback = function (userAgent) {
        return impl.detectMobileBrowsers.fullPattern.test(userAgent) ||
            impl.detectMobileBrowsers.shortPattern.test(userAgent.substr(0,4));
    };

    impl.isTabletFallback = function (userAgent) {
        return impl.detectMobileBrowsers.tabletPattern.test(userAgent);
    };

    impl.prepareDetectionCache = function (cache, userAgent, maxPhoneWidth) {
        if (cache.mobile !== undefined) {
            return;
        }
        var phone, tablet, phoneSized;

        // first check for stronger tablet rules, then phone (see issue#5)
        tablet = impl.findMatch(impl.mobileDetectRules.tablets, userAgent);
        if (tablet) {
            cache.mobile = cache.tablet = tablet;
            cache.phone = null;
            return; // unambiguously identified as tablet
        }

        phone = impl.findMatch(impl.mobileDetectRules.phones, userAgent);
        if (phone) {
            cache.mobile = cache.phone = phone;
            cache.tablet = null;
            return; // unambiguously identified as phone
        }

        // our rules haven't found a match -> try more general fallback rules
        if (impl.isMobileFallback(userAgent)) {
            phoneSized = MobileDetect.isPhoneSized(maxPhoneWidth);
            if (phoneSized === undefined) {
                cache.mobile = impl.FALLBACK_MOBILE;
                cache.tablet = cache.phone = null;
            } else if (phoneSized) {
                cache.mobile = cache.phone = impl.FALLBACK_PHONE;
                cache.tablet = null;
            } else {
                cache.mobile = cache.tablet = impl.FALLBACK_TABLET;
                cache.phone = null;
            }
        } else if (impl.isTabletFallback(userAgent)) {
            cache.mobile = cache.tablet = impl.FALLBACK_TABLET;
            cache.phone = null;
        } else {
            // not mobile at all!
            cache.mobile = cache.tablet = cache.phone = null;
        }
    };

    // t is a reference to a MobileDetect instance
    impl.mobileGrade = function (t) {
        // impl note:
        // To keep in sync w/ Mobile_Detect.php easily, the following code is tightly aligned to the PHP version.
        // When changes are made in Mobile_Detect.php, copy this method and replace:
        //     $this-> / t.
        //     self::MOBILE_GRADE_(.) / '$1'
        //     , self::VERSION_TYPE_FLOAT / (nothing)
        //     isIOS() / os('iOS')
        //     [reg] / (nothing)   <-- jsdelivr complaining about unescaped unicode character U+00AE
        var $isMobile = t.mobile() !== null;

        if (
            // Apple iOS 3.2-5.1 - Tested on the original iPad (4.3 / 5.0), iPad 2 (4.3), iPad 3 (5.1), original iPhone (3.1), iPhone 3 (3.2), 3GS (4.3), 4 (4.3 / 5.0), and 4S (5.1)
            t.os('iOS') && t.version('iPad')>=4.3 ||
            t.os('iOS') && t.version('iPhone')>=3.1 ||
            t.os('iOS') && t.version('iPod')>=3.1 ||

            // Android 2.1-2.3 - Tested on the HTC Incredible (2.2), original Droid (2.2), HTC Aria (2.1), Google Nexus S (2.3). Functional on 1.5 & 1.6 but performance may be sluggish, tested on Google G1 (1.5)
            // Android 3.1 (Honeycomb)  - Tested on the Samsung Galaxy Tab 10.1 and Motorola XOOM
            // Android 4.0 (ICS)  - Tested on a Galaxy Nexus. Note: transition performance can be poor on upgraded devices
            // Android 4.1 (Jelly Bean)  - Tested on a Galaxy Nexus and Galaxy 7
            ( t.version('Android')>2.1 && t.is('Webkit') ) ||

            // Windows Phone 7-7.5 - Tested on the HTC Surround (7.0) HTC Trophy (7.5), LG-E900 (7.5), Nokia Lumia 800
            t.version('Windows Phone OS')>=7.0 ||

            // Blackberry 7 - Tested on BlackBerry Torch 9810
            // Blackberry 6.0 - Tested on the Torch 9800 and Style 9670
            t.is('BlackBerry') && t.version('BlackBerry')>=6.0 ||
            // Blackberry Playbook (1.0-2.0) - Tested on PlayBook
            t.match('Playbook.*Tablet') ||

            // Palm WebOS (1.4-2.0) - Tested on the Palm Pixi (1.4), Pre (1.4), Pre 2 (2.0)
            ( t.version('webOS')>=1.4 && t.match('Palm|Pre|Pixi') ) ||
            // Palm WebOS 3.0  - Tested on HP TouchPad
            t.match('hp.*TouchPad') ||

            // Firefox Mobile (12 Beta) - Tested on Android 2.3 device
            ( t.is('Firefox') && t.version('Firefox')>=12 ) ||

            // Chrome for Android - Tested on Android 4.0, 4.1 device
            ( t.is('Chrome') && t.is('AndroidOS') && t.version('Android')>=4.0 ) ||

            // Skyfire 4.1 - Tested on Android 2.3 device
            ( t.is('Skyfire') && t.version('Skyfire')>=4.1 && t.is('AndroidOS') && t.version('Android')>=2.3 ) ||

            // Opera Mobile 11.5-12: Tested on Android 2.3
            ( t.is('Opera') && t.version('Opera Mobi')>11 && t.is('AndroidOS') ) ||

            // Meego 1.2 - Tested on Nokia 950 and N9
            t.is('MeeGoOS') ||

            // Tizen (pre-release) - Tested on early hardware
            t.is('Tizen') ||

            // Samsung Bada 2.0 - Tested on a Samsung Wave 3, Dolphin browser
            // @todo: more tests here!
            t.is('Dolfin') && t.version('Bada')>=2.0 ||

            // UC Browser - Tested on Android 2.3 device
            ( (t.is('UC Browser') || t.is('Dolfin')) && t.version('Android')>=2.3 ) ||

            // Kindle 3 and Fire  - Tested on the built-in WebKit browser for each
            ( t.match('Kindle Fire') ||
                t.is('Kindle') && t.version('Kindle')>=3.0 ) ||

            // Nook Color 1.4.1 - Tested on original Nook Color, not Nook Tablet
            t.is('AndroidOS') && t.is('NookTablet') ||

            // Chrome Desktop 11-21 - Tested on OS X 10.7 and Windows 7
            t.version('Chrome')>=11 && !$isMobile ||

            // Safari Desktop 4-5 - Tested on OS X 10.7 and Windows 7
            t.version('Safari')>=5.0 && !$isMobile ||

            // Firefox Desktop 4-13 - Tested on OS X 10.7 and Windows 7
            t.version('Firefox')>=4.0 && !$isMobile ||

            // Internet Explorer 7-9 - Tested on Windows XP, Vista and 7
            t.version('MSIE')>=7.0 && !$isMobile ||

            // Opera Desktop 10-12 - Tested on OS X 10.7 and Windows 7
            // @reference: http://my.opera.com/community/openweb/idopera/
            t.version('Opera')>=10 && !$isMobile

            ){
            return 'A';
        }

        if (
            t.os('iOS') && t.version('iPad')<4.3 ||
            t.os('iOS') && t.version('iPhone')<3.1 ||
            t.os('iOS') && t.version('iPod')<3.1 ||

            // Blackberry 5.0: Tested on the Storm 2 9550, Bold 9770
            t.is('Blackberry') && t.version('BlackBerry')>=5 && t.version('BlackBerry')<6 ||

            //Opera Mini (5.0-6.5) - Tested on iOS 3.2/4.3 and Android 2.3
            ( t.version('Opera Mini')>=5.0 && t.version('Opera Mini')<=6.5 &&
                (t.version('Android')>=2.3 || t.is('iOS')) ) ||

            // Nokia Symbian^3 - Tested on Nokia N8 (Symbian^3), C7 (Symbian^3), also works on N97 (Symbian^1)
            t.match('NokiaN8|NokiaC7|N97.*Series60|Symbian/3') ||

            // @todo: report this (tested on Nokia N71)
            t.version('Opera Mobi')>=11 && t.is('SymbianOS')
            ){
            return 'B';
        }

        if (
        // Blackberry 4.x - Tested on the Curve 8330
            t.version('BlackBerry')<5.0 ||
            // Windows Mobile - Tested on the HTC Leo (WinMo 5.2)
            t.match('MSIEMobile|Windows CE.*Mobile') || t.version('Windows Mobile')<=5.2

            ){
            return 'C';
        }

        //All older smartphone platforms and featurephones - Any device that doesn't support media queries
        //will receive the basic, C grade experience.
        return 'C';
    };

    impl.detectOS = function (ua) {
        return impl.findMatch(impl.mobileDetectRules.oss0, ua) ||
            impl.findMatch(impl.mobileDetectRules.oss, ua);
    };

    impl.getDeviceSmallerSide = function () {
        return window.screen.width < window.screen.height ?
            window.screen.width :
            window.screen.height;
    };

    /**
     * Constructor for MobileDetect object.
     * <br>
     * Such an object will keep a reference to the given user-agent string and cache most of the detect queries.<br>
     * <div style="background-color: #d9edf7; border: 1px solid #bce8f1; color: #3a87ad; padding: 14px; border-radius: 2px; margin-top: 20px">
     *     <strong>Find information how to download and install:</strong>
     *     <a href="https://github.com/hgoebl/mobile-detect.js/">github.com/hgoebl/mobile-detect.js/</a>
     * </div>
     *
     * @example <pre>
     *     var md = new MobileDetect(window.navigator.userAgent);
     *     if (md.mobile()) {
     *         location.href = (md.mobileGrade() === 'A') ? '/mobile/' : '/lynx/';
     *     }
     * </pre>
     *
     * @param {string} userAgent typically taken from window.navigator.userAgent or http_header['User-Agent']
     * @param {number} [maxPhoneWidth=600] <strong>only for browsers</strong> specify a value for the maximum
     *        width of smallest device side (in logical "CSS" pixels) until a device detected as mobile will be handled
     *        as phone.
     *        This is only used in cases where the device cannot be classified as phone or tablet.<br>
     *        See <a href="http://developer.android.com/guide/practices/screens_support.html">Declaring Tablet Layouts
     *        for Android</a>.<br>
     *        If you provide a value < 0, then this "fuzzy" check is disabled.
     * @constructor
     * @global
     */
    function MobileDetect(userAgent, maxPhoneWidth) {
        this.ua = userAgent || '';
        this._cache = {};
        //600dp is typical 7" tablet minimum width
        this.maxPhoneWidth = maxPhoneWidth || 600;
    }

    MobileDetect.prototype = {
        constructor: MobileDetect,

        /**
         * Returns the detected phone or tablet type or <tt>null</tt> if it is not a mobile device.
         * <br>
         * For a list of possible return values see {@link MobileDetect#phone} and {@link MobileDetect#tablet}.<br>
         * <br>
         * If the device is not detected by the regular expressions from Mobile-Detect, a test is made against
         * the patterns of <a href="http://detectmobilebrowsers.com/">detectmobilebrowsers.com</a>. If this test
         * is positive, a value of <code>UnknownPhone</code>, <code>UnknownTablet</code> or
         * <code>UnknownMobile</code> is returned.<br>
         * When used in browser, the decision whether phone or tablet is made based on <code>screen.width/height</code>.<br>
         * <br>
         * When used server-side (node.js), there is no way to tell the difference between <code>UnknownTablet</code>
         * and <code>UnknownMobile</code>, so you will get <code>UnknownMobile</code> here.<br>
         * Be aware that since v1.0.0 in this special case you will get <code>UnknownMobile</code> only for:
         * {@link MobileDetect#mobile}, not for {@link MobileDetect#phone} and {@link MobileDetect#tablet}.
         * In versions before v1.0.0 all 3 methods returned <code>UnknownMobile</code> which was tedious to use.
         * <br>
         * In most cases you will use the return value just as a boolean.
         *
         * @returns {String} the key for the phone family or tablet family, e.g. "Nexus".
         * @function MobileDetect#mobile
         */
        mobile: function () {
            impl.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth);
            return this._cache.mobile;
        },

        /**
         * Returns the detected phone type/family string or <tt>null</tt>.
         * <br>
         * The returned tablet (family or producer) is one of following keys:<br>
         * <br><tt>iPhone, BlackBerry, HTC, Nexus, Dell, Motorola, Samsung, LG, Sony, Asus,
         * NokiaLumia, Micromax, Palm, Vertu, Pantech, Fly, Wiko, iMobile, SimValley,
         * Wolfgang, Alcatel, Nintendo, Amoi, INQ, GenericPhone</tt><br>
         * <br>
         * If the device is not detected by the regular expressions from Mobile-Detect, a test is made against
         * the patterns of <a href="http://detectmobilebrowsers.com/">detectmobilebrowsers.com</a>. If this test
         * is positive, a value of <code>UnknownPhone</code> or <code>UnknownMobile</code> is returned.<br>
         * When used in browser, the decision whether phone or tablet is made based on <code>screen.width/height</code>.<br>
         * <br>
         * When used server-side (node.js), there is no way to tell the difference between <code>UnknownTablet</code>
         * and <code>UnknownMobile</code>, so you will get <code>null</code> here, while {@link MobileDetect#mobile}
         * will return <code>UnknownMobile</code>.<br>
         * Be aware that since v1.0.0 in this special case you will get <code>UnknownMobile</code> only for:
         * {@link MobileDetect#mobile}, not for {@link MobileDetect#phone} and {@link MobileDetect#tablet}.
         * In versions before v1.0.0 all 3 methods returned <code>UnknownMobile</code> which was tedious to use.
         * <br>
         * In most cases you will use the return value just as a boolean.
         *
         * @returns {String} the key of the phone family or producer, e.g. "iPhone"
         * @function MobileDetect#phone
         */
        phone: function () {
            impl.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth);
            return this._cache.phone;
        },

        /**
         * Returns the detected tablet type/family string or <tt>null</tt>.
         * <br>
         * The returned tablet (family or producer) is one of following keys:<br>
         * <br><tt>iPad, NexusTablet, SamsungTablet, Kindle, SurfaceTablet, HPTablet, AsusTablet,
         * BlackBerryTablet, HTCtablet, MotorolaTablet, NookTablet, AcerTablet,
         * ToshibaTablet, LGTablet, FujitsuTablet, PrestigioTablet, LenovoTablet,
         * DellTablet, YarvikTablet, MedionTablet, ArnovaTablet, IntensoTablet, IRUTablet,
         * MegafonTablet, EbodaTablet, AllViewTablet, ArchosTablet, AinolTablet,
         * NokiaLumiaTablet, SonyTablet, PhilipsTablet, CubeTablet, CobyTablet, MIDTablet,
         * MSITablet, SMiTTablet, RockChipTablet, FlyTablet, bqTablet, HuaweiTablet,
         * NecTablet, PantechTablet, BronchoTablet, VersusTablet, ZyncTablet,
         * PositivoTablet, NabiTablet, KoboTablet, DanewTablet, TexetTablet,
         * PlaystationTablet, TrekstorTablet, PyleAudioTablet, AdvanTablet,
         * DanyTechTablet, GalapadTablet, MicromaxTablet, KarbonnTablet, AllFineTablet,
         * PROSCANTablet, YONESTablet, ChangJiaTablet, GUTablet, PointOfViewTablet,
         * OvermaxTablet, HCLTablet, DPSTablet, VistureTablet, CrestaTablet,
         * MediatekTablet, ConcordeTablet, GoCleverTablet, ModecomTablet, VoninoTablet,
         * ECSTablet, StorexTablet, VodafoneTablet, EssentielBTablet, RossMoorTablet,
         * iMobileTablet, TolinoTablet, AudioSonicTablet, AMPETablet, SkkTablet,
         * TecnoTablet, JXDTablet, iJoyTablet, FX2Tablet, XoroTablet, ViewsonicTablet,
         * OdysTablet, CaptivaTablet, IconbitTablet, TeclastTablet, OndaTablet,
         * JaytechTablet, BlaupunktTablet, DigmaTablet, EvolioTablet, LavaTablet,
         * AocTablet, MpmanTablet, CelkonTablet, WolderTablet, MiTablet, NibiruTablet,
         * NexoTablet, LeaderTablet, UbislateTablet, PocketBookTablet, KocasoTablet,
         * HisenseTablet, Hudl, TelstraTablet, GenericTablet</tt><br>
         * <br>
         * If the device is not detected by the regular expressions from Mobile-Detect, a test is made against
         * the patterns of <a href="http://detectmobilebrowsers.com/">detectmobilebrowsers.com</a>. If this test
         * is positive, a value of <code>UnknownTablet</code> or <code>UnknownMobile</code> is returned.<br>
         * When used in browser, the decision whether phone or tablet is made based on <code>screen.width/height</code>.<br>
         * <br>
         * When used server-side (node.js), there is no way to tell the difference between <code>UnknownTablet</code>
         * and <code>UnknownMobile</code>, so you will get <code>null</code> here, while {@link MobileDetect#mobile}
         * will return <code>UnknownMobile</code>.<br>
         * Be aware that since v1.0.0 in this special case you will get <code>UnknownMobile</code> only for:
         * {@link MobileDetect#mobile}, not for {@link MobileDetect#phone} and {@link MobileDetect#tablet}.
         * In versions before v1.0.0 all 3 methods returned <code>UnknownMobile</code> which was tedious to use.
         * <br>
         * In most cases you will use the return value just as a boolean.
         *
         * @returns {String} the key of the tablet family or producer, e.g. "SamsungTablet"
         * @function MobileDetect#tablet
         */
        tablet: function () {
            impl.prepareDetectionCache(this._cache, this.ua, this.maxPhoneWidth);
            return this._cache.tablet;
        },

        /**
         * Returns the (first) detected user-agent string or <tt>null</tt>.
         * <br>
         * The returned user-agent is one of following keys:<br>
         * <br><tt>Chrome, Dolfin, Opera, Skyfire, Edge, IE, Firefox, Bolt, TeaShark, Blazer,
         * Safari, UCBrowser, baiduboxapp, baidubrowser, DiigoBrowser, Puffin, Mercury,
         * ObigoBrowser, NetFront, GenericBrowser, PaleMoon</tt><br>
         * <br>
         * In most cases calling {@link MobileDetect#userAgent} will be sufficient. But there are rare
         * cases where a mobile device pretends to be more than one particular browser. You can get the
         * list of all matches with {@link MobileDetect#userAgents} or check for a particular value by
         * providing one of the defined keys as first argument to {@link MobileDetect#is}.
         *
         * @returns {String} the key for the detected user-agent or <tt>null</tt>
         * @function MobileDetect#userAgent
         */
        userAgent: function () {
            if (this._cache.userAgent === undefined) {
                this._cache.userAgent = impl.findMatch(impl.mobileDetectRules.uas, this.ua);
            }
            return this._cache.userAgent;
        },

        /**
         * Returns all detected user-agent strings.
         * <br>
         * The array is empty or contains one or more of following keys:<br>
         * <br><tt>Chrome, Dolfin, Opera, Skyfire, Edge, IE, Firefox, Bolt, TeaShark, Blazer,
         * Safari, UCBrowser, baiduboxapp, baidubrowser, DiigoBrowser, Puffin, Mercury,
         * ObigoBrowser, NetFront, GenericBrowser, PaleMoon</tt><br>
         * <br>
         * In most cases calling {@link MobileDetect#userAgent} will be sufficient. But there are rare
         * cases where a mobile device pretends to be more than one particular browser. You can get the
         * list of all matches with {@link MobileDetect#userAgents} or check for a particular value by
         * providing one of the defined keys as first argument to {@link MobileDetect#is}.
         *
         * @returns {Array} the array of detected user-agent keys or <tt>[]</tt>
         * @function MobileDetect#userAgents
         */
        userAgents: function () {
            if (this._cache.userAgents === undefined) {
                this._cache.userAgents = impl.findMatches(impl.mobileDetectRules.uas, this.ua);
            }
            return this._cache.userAgents;
        },

        /**
         * Returns the detected operating system string or <tt>null</tt>.
         * <br>
         * The operating system is one of following keys:<br>
         * <br><tt>AndroidOS, BlackBerryOS, PalmOS, SymbianOS, WindowsMobileOS, WindowsPhoneOS,
         * iOS, MeeGoOS, MaemoOS, JavaOS, webOS, badaOS, BREWOS</tt><br>
         *
         * @returns {String} the key for the detected operating system.
         * @function MobileDetect#os
         */
        os: function () {
            if (this._cache.os === undefined) {
                this._cache.os = impl.detectOS(this.ua);
            }
            return this._cache.os;
        },

        /**
         * Get the version (as Number) of the given property in the User-Agent.
         * <br>
         * Will return a float number. (eg. 2_0 will return 2.0, 4.3.1 will return 4.31)
         *
         * @param {String} key a key defining a thing which has a version.<br>
         *        You can use one of following keys:<br>
         * <br><tt>Mobile, Build, Version, VendorID, iPad, iPhone, iPod, Kindle, Chrome, Coast,
         * Dolfin, Firefox, Fennec, Edge, IE, NetFront, NokiaBrowser, Opera, Opera Mini,
         * Opera Mobi, UC Browser, MQQBrowser, MicroMessenger, baiduboxapp, baidubrowser,
         * SamsungBrowser, Iron, Safari, Skyfire, Tizen, Webkit, PaleMoon, Gecko, Trident,
         * Presto, Goanna, iOS, Android, BlackBerry, BREW, Java, Windows Phone OS, Windows
         * Phone, Windows CE, Windows NT, Symbian, webOS</tt><br>
         *
         * @returns {Number} the version as float or <tt>NaN</tt> if User-Agent doesn't contain this version.
         *          Be careful when comparing this value with '==' operator!
         * @function MobileDetect#version
         */
        version: function (key) {
            return impl.getVersion(key, this.ua);
        },

        /**
         * Get the version (as String) of the given property in the User-Agent.
         * <br>
         *
         * @param {String} key a key defining a thing which has a version.<br>
         *        You can use one of following keys:<br>
         * <br><tt>Mobile, Build, Version, VendorID, iPad, iPhone, iPod, Kindle, Chrome, Coast,
         * Dolfin, Firefox, Fennec, Edge, IE, NetFront, NokiaBrowser, Opera, Opera Mini,
         * Opera Mobi, UC Browser, MQQBrowser, MicroMessenger, baiduboxapp, baidubrowser,
         * SamsungBrowser, Iron, Safari, Skyfire, Tizen, Webkit, PaleMoon, Gecko, Trident,
         * Presto, Goanna, iOS, Android, BlackBerry, BREW, Java, Windows Phone OS, Windows
         * Phone, Windows CE, Windows NT, Symbian, webOS</tt><br>
         *
         * @returns {String} the "raw" version as String or <tt>null</tt> if User-Agent doesn't contain this version.
         *
         * @function MobileDetect#versionStr
         */
        versionStr: function (key) {
            return impl.getVersionStr(key, this.ua);
        },

        /**
         * Global test key against userAgent, os, phone, tablet and some other properties of userAgent string.
         *
         * @param {String} key the key (case-insensitive) of a userAgent, an operating system, phone or
         *        tablet family.<br>
         *        For a complete list of possible values, see {@link MobileDetect#userAgent},
         *        {@link MobileDetect#os}, {@link MobileDetect#phone}, {@link MobileDetect#tablet}.<br>
         *        Additionally you have following keys:<br>
         * <br><tt>Bot, MobileBot, DesktopMode, TV, WebKit, Console, Watch</tt><br>
         *
         * @returns {boolean} <tt>true</tt> when the given key is one of the defined keys of userAgent, os, phone,
         *                    tablet or one of the listed additional keys, otherwise <tt>false</tt>
         * @function MobileDetect#is
         */
        is: function (key) {
            return containsIC(this.userAgents(), key) ||
                   equalIC(key, this.os()) ||
                   equalIC(key, this.phone()) ||
                   equalIC(key, this.tablet()) ||
                   containsIC(impl.findMatches(impl.mobileDetectRules.utils, this.ua), key);
        },

        /**
         * Do a quick test against navigator::userAgent.
         *
         * @param {String|RegExp} pattern the pattern, either as String or RegExp
         *                        (a string will be converted to a case-insensitive RegExp).
         * @returns {boolean} <tt>true</tt> when the pattern matches, otherwise <tt>false</tt>
         * @function MobileDetect#match
         */
        match: function (pattern) {
            if (!(pattern instanceof RegExp)) {
                pattern = new RegExp(pattern, 'i');
            }
            return pattern.test(this.ua);
        },

        /**
         * Checks whether the mobile device can be considered as phone regarding <code>screen.width</code>.
         * <br>
         * Obviously this method makes sense in browser environments only (not for Node.js)!
         * @param {number} [maxPhoneWidth] the maximum logical pixels (aka. CSS-pixels) to be considered as phone.<br>
         *        The argument is optional and if not present or falsy, the value of the constructor is taken.
         * @returns {boolean|undefined} <code>undefined</code> if screen size wasn't detectable, else <code>true</code>
         *          when screen.width is less or equal to maxPhoneWidth, otherwise <code>false</code>.<br>
         *          Will always return <code>undefined</code> server-side.
         */
        isPhoneSized: function (maxPhoneWidth) {
            return MobileDetect.isPhoneSized(maxPhoneWidth || this.maxPhoneWidth);
        },

        /**
         * Returns the mobile grade ('A', 'B', 'C').
         *
         * @returns {String} one of the mobile grades ('A', 'B', 'C').
         * @function MobileDetect#mobileGrade
         */
        mobileGrade: function () {
            if (this._cache.grade === undefined) {
                this._cache.grade = impl.mobileGrade(this);
            }
            return this._cache.grade;
        }
    };

    // environment-dependent
    if (typeof window !== 'undefined' && window.screen) {
        MobileDetect.isPhoneSized = function (maxPhoneWidth) {
            return maxPhoneWidth < 0 ? undefined : impl.getDeviceSmallerSide() <= maxPhoneWidth;
        };
    } else {
        MobileDetect.isPhoneSized = function () {};
    }

    // should not be replaced by a completely new object - just overwrite existing methods
    MobileDetect._impl = impl;

    MobileDetect.version = '1.3.5 2016-11-14';

    window.MobileDetect = MobileDetect;
})();


/* -- responsive-images.js -- */

$(document).ready(function () {
    // Show appropiately sized images depending on the type of browser visiting
    function getScreenDesc() {
        if (window.screen.width <= 480) {
            return 'martini-mobile-src';
        } else if (window.screen.width > 480 && window.screen.width < 992) {
            return 'martini-tablet-src';
        }
        return 'martini-desktop-src';
    }

    function getMinHeight(el) {
        var dAttr = '';
        if (window.screen.width <= 480) {
            dAttr = 'mobile_height';
        } else {
            dAttr = 'desktop_height';
        }

        var minHeight = $(el).data(dAttr);

        return minHeight;
    }

    // grab all the <img /> tags
    $('img').each(function (i, e) {
        var srcArg = getScreenDesc();
        var src = $(e).attr(srcArg);

        var minHeight = getMinHeight(e);
        if (minHeight > 0) {
            $(e).attr('style', 'min-height: ' + minHeight);
        }

        // some we don't do
        if (typeof src === 'undefined') {
            src = $(e).attr('martini-desktop-src');
            // some we don't do
            if (typeof src === 'undefined') {
                return;
            }
        }
        if ($(e).hasClass('lazy')) {
            // NB, bypass jquery doing it in memory rather than writing it to the dom properly
            e.setAttribute('data-src', src);
        } else {
            $(e).attr('src', src).show();
        }
    });


    // fotorama uses <a and not <img, so we add a class and set it up that way.
    $('a.responsive-image').each(function (i, e) {
        var srcArg = getScreenDesc();
        var src = $(e).attr(srcArg);

        // some we don't do
        if (typeof src === 'undefined') {
            return;
        }
        $(e).attr('href', src);
        $(e).attr('data-full', src);
    });
});




/* -- site-chrome.js -- */

// top navigation bar functions
$(document).ready(function () {

    $('.gdpr-option').click(function (e) {
        e.preventDefault();
        var i = $(this).data('id');
        var pmid = '5b1a668adcffaa35696f34d9';
        window._sp_.privacyManager.loadPrivacyManagerModal(i, pmid);
    });


    window.addEventListener('message', function (message) {

        var msgData = message.data;
        if (!msgData) {
            return;
        }

        switch(msgData.action) {
            case 'sp.complete':
            case 'sp.choiceComplete':
            case 'sp.cancel':
                $('#sp-modal').modal('hide');
        }
    });

    //Handle responsive social media dropdowns
    $('.social-dropdown').on('mouseenter', function(){
        var dd = $(this).find('.social-feed');
        dd.fadeIn();
    });

    $('.social-dropdown').on('mouseleave', function(){
        var dd = $(this).find('.social-feed');
        dd.delay(200).fadeOut();
    });
    function findNavTop() {
        current = $('#mainNav').data('top');
        navTop = $('#mainNav').position().top;
        if(current != navTop) {
            $('#mainNav').data('top', navTop);
            window.setTimeout(findNavTop, 1000);
        } else {
            $('#mainNav').data('pos', 1);
        }
    }
    if ($('#mainNav').length > 0) {
        findNavTop();
    }

    var topLevel = window.location.pathname.split('/')[1];
    /*var container = $('#dropMenu .'+topLevel).addClass('tint');
    if(container) {
        $('#dropMenu').prepend(container);
    }*/

    if (topLevel.toString().length > 0) {
        $('#dropMenu .'+topLevel).remove();
    }


    $('.slide-control').on('click', function(e){
        e.preventDefault();
        // control the sub navigation wrapping
        $('#subNav').toggleClass('nav-open');

        var el = $($(this).data('slide-pane'));
        $(el).toggle(0, "linear", function(){
            if($(this).css('display') === 'none') { //Nav is to be closed

                // if the mnobile search is open and we are closing the block, we can toggle the close Function
                // so that everything is closed properly
                if ($('.mobile-search').hasClass('search-open')) {
                    $('.display-search').click();
                }

                // hide the navigation
                // $('#mainNav').removeClass('menu-open').removeAttr('style').removeData('last');
                $('#mainNav').removeClass('menu-open');
                $('.slide-control span').removeClass('fa-angle-up').addClass('fa-angle-down');
            } else { //Nav is be opened
                // if($(window).scrollTop() > $('#mainNav').position().top) {
                //     $('#mainNav').css({
                //         'position': 'absolute',
                //         'top': $(window).scrollTop(),
                //         'width': $('.page-wrapper').outerWidth(),
                //         'z-index': 9999
                //     }).data('last', $(window).scrollTop());
                // }
                $('#mainNav').addClass('menu-open');
                $('.slide-control span').removeClass('fa-angle-down').addClass('fa-angle-up');
            }
        });
    });
    $('.close-menu button').on('click', function(){ //Close button at the  bottom of the nav has been clicked
        $('div.menu.home').toggle(0, "swing", function(){
            // $('#mainNav').removeClass('menu-open').removeAttr('style').removeData('last');
            $('#mainNav').removeClass('menu-open');
            $('#subNav').removeClass('nav-open');
            $('.slide-control span').removeClass('fa-angle-up').addClass('fa-angle-down');
        });
    });
    $('.display-search').click(function(e) {
        e.preventDefault();
        $(this).parent().parent().toggleClass('show-mobile-search');
        var el = $(this).children().children();
        el.toggleClass('fa-search fa-times');

        $('.mobile-search').slideToggle('fast').toggleClass('search-open');
    });
    // var lastScroll = 0;
    // var primaryNavHeight = $('#primaryNav').outerHeight();
    // $(window).scroll(function(e) {
    //     if($('#mainNav').data('pos') === 1) {
    //         scroll = $(window).scrollTop();
    //         navTop = $('#mainNav').data('top');
    //         //if(scroll > navTop && scroll < lastScroll) {
    //
    //         if(scroll < $('#mainNav').data('last')) {
    //             newTop = $(window).scrollTop();
    //             $('#mainNav').css('top', newTop).data('last', newTop);
    //         }
    //
    //         if(scroll > navTop) {
    //             $('#mainNav').addClass('float');
    //             $('#contentContainer').css('padding-top', primaryNavHeight);
    //         } else {
    //             $('#mainNav').removeClass('float').removeAttr('style').removeData('last');
    //             $('#contentContainer').attr('style', '');
    //         }
    //     }
    //     lastScroll = scroll;
    // });
    function displayCookieNotification() {
        // check if they have seen this warning already
        if ($.cookie('nqr-eu') == 'warned') {
            return;
        }
        $('#cookieWarning').animate({'right':'0px'},300);

        $('#cookieWarning button').click(function (e) {
            e.preventDefault();
            $('#cookieWarning').stop(true).animate({'right':'-310px'},100);
            $('#cookieWarning').remove();
        });

        $('#pecr-cookie-warning').animate({'bottom':'0px'},300);

        $('#pecr-cookie-warning button').click(function (e) {
            e.preventDefault();
            $('#pecr-cookie-warning').stop(true).animate({'bottom':'-900px'},100);
            $('#pecr-cookie-warning').remove();
        });


        // set a cookie saying it's been showed.
        console.log("GDPR: Cookie in 5 seconds");
        window.gdprfirstrequest = true;
        $.cookie('nqr-eu', 'warned', {path: '/', expires: 2000});
    }
    window.gdprfirstrequest = false;
    window.setTimeout(displayCookieNotification(), 5000);
    // Logs out the user.
    $('#log-out, #mobileSignOut').on('click', function(e) {
        e.preventDefault();
        var data = {
            domain: data_layer.site.cookie_domain,
            expires: -1,
            path: '/'
        };

        // For local testing.
        if (window.location.href.split('.').length < 2) {
            data.domain = null;
        }

        $.cookie('masq', '', data);
        $.cookie('nqdm', '', data);
        $.cookie('nqjwt', '', data);
        $.cookie('nql', '', data);
        document.location = '/';
    });

    // non meganav stuff
    // To be deleted
    // top navigation bar functions
    $('.dd-container button').on('click', function(e){
        e.preventDefault();

        // close any open dds
        $('.dd-container .dd:visible').not(this).hide(400, function () {
            $(this).parent().find('button').removeClass('active');
        });

        var dd = $(this).parent('.dd-container').find('.dd');

        if( $(this).hasClass('active') ) {
            $(this).removeClass('active');
            dd.fadeOut();
        } else {
            $(this).addClass('active');
            dd.fadeIn();
        }
    });

    $('span.dd-container').on('mouseenter', function(){
        var dd = $(this).find('.dd');
        dd.fadeIn();
    });

    $('span.dd-container').on('mouseleave', function(){
        var dd = $(this).find('.dd');
        dd.delay(200).fadeOut();
    });

    $('.dd form button').click(function (e) {
        $(this).parents('form').submit();
    });
    $('.dd form').click(function (e) {
        e.stopPropagation();
    });
    // show/hide search form
    $('#btnSearchToggle').on('click', function(event){
        event.preventDefault();
        $('#divSearchBox').toggleClass('on');
    });

    // mobile nav button
    $('#btnMobileNavToggle').on('click', function(event){
        event.preventDefault();
        $('#navMobile').toggleClass('on');
    });

    $('#toggleAdminLinks').click(function(e) {
        e.preventDefault();
        if ($(this).text().indexOf('Hide') >= 0) {
            $(this).text($(this).text().replace('Hide', 'Show'));
        } else {
            $(this).text($(this).text().replace('Show', 'Hide'));
        }
        $('.admin-links').toggle();
    });

    // multimedia gallery
    $('.panel-thumbnails li').click(function(e) {

           e.preventDefault();

           var index = $(this).data('id');

           $('.panel-thumbnails li').removeClass('current');

           $(this).addClass('current');

           $('.panel-photo li').removeClass('current');

           $('#pic' + index).addClass('current');
       });

    // $(".admin-links-v2").each(function( index ) {
    //    var items = $(this).find('.circle a');
    //    var l = items.length;
    //
    //    $(this).find('.circle a').each(function( i ) {
    //        var left = (50 - 25*Math.cos(-0.5 * Math.PI - 2*(1/l)*i*Math.PI)).toFixed(4) + "%";
    //        var top = (50 + 25*Math.sin(-0.5 * Math.PI - 2*(1/l)*i*Math.PI)).toFixed(4) + "%";
    //
    //        $(this).css({"left": left, "top": top});
    //    });
    // });
    //
    // $(".admin-links-v2").on("click", ".menu-button", function(e) {
    //    e.preventDefault();
    //    $(this).prev('.circle').toggleClass("open");
    // });
});


/* -- synchronous.js -- */

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=588)}([function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(29))},function(t,e,n){var r=n(1),o=n(39),i=n(3),a=n(40),c=n(41),u=n(73),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){return i(s,t)||(c&&i(l,t)?s[t]=l[t]:s[t]=f("Symbol."+t)),s[t]}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){var r=n(1),o=n(31).f,i=n(9),a=n(16),c=n(27),u=n(70),s=n(57);t.exports=function(t,e){var n,l,f,p,d,h=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[h]||c(h,{}):(r[h]||{}).prototype)for(l in e){if(p=e[l],f=t.noTargetGet?(d=o(n,l))&&d.value:n[l],!s(v?l:h+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,t)}}},function(t,e,n){var r=n(6),o=n(11),i=n(22);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(6),o=n(46),i=n(4),a=n(25),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";t.exports=window.jQuery},,function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(1),o=n(9),i=n(3),a=n(27),c=n(38),u=n(35),s=u.get,l=u.enforce,f=String(String).split("String");(t.exports=function(t,e,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),l(n).source=f.join("string"==typeof e?e:"")),t!==r?(u?!p&&t[e]&&(s=!0):delete t[e],s?t[e]=n:o(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(t,e,n){var r=n(32),o=n(10);t.exports=function(t){return r(o(t))}},,function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(10);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(26);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(71),o=n(1),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){"use strict";var r=n(8),o=n(0),i=n(45),a=n(5),c=n(20),u=n(14),s=n(72),l=n(58),f=n(74),p=n(2),d=n(59),h=p("isConcatSpreadable"),v=d>=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),g=f("concat"),m=function(t){if(!a(t))return!1;var e=t[h];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!v||!g},{concat:function(t){var e,n,r,o,i,a=c(this),f=l(a,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],m(i)){if(p+(o=u(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(f,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,p++,i)}return f.length=p,f}})},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r,o,i=n(67),a=n(81),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,l=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(s=function(t){var e,n,r,o,a=this,s=f&&a.sticky,d=i.call(a),h=a.source,v=0,g=t;return s&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),n=new RegExp("^(?:"+h+")",d)),p&&(n=new RegExp("^"+h+"$(?!\\s)",d)),l&&(e=a.lastIndex),r=c.call(s?n:a,g),s?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),p&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=s},function(t,e,n){var r=n(1),o=n(9);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports={}},function(t,e,n){var r=n(6),o=n(60),i=n(22),a=n(17),c=n(25),u=n(3),s=n(46),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=c(e,!0),s)try{return l(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(15),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(6),o=n(0),i=n(3),a=Object.defineProperty,c={},u=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,l=i(e,0)?e[0]:u,f=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(s&&!r)return!0;var t={length:-1};s?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,f)}))}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r,o,i,a=n(76),c=n(1),u=n(5),s=n(9),l=n(3),f=n(44),p=n(30),d=c.WeakMap;if(a){var h=new d,v=h.get,g=h.has,m=h.set;r=function(t,e){return m.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var y=f("state");p[y]=!0,r=function(t,e){return s(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},,function(t,e,n){"use strict";var r=n(8),o=n(68).find,i=n(87),a=n(33),c=!0,u=a("find");"find"in[]&&Array(1).find((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(t,e,n){var r=n(47),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(48),o=n(47);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(0);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){"use strict";var r=n(0);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(39),o=n(40),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(6),o=n(0),i=n(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(27),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e){t.exports=!1},,function(t,e,n){var r=n(17),o=n(14),i=n(65),a=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),l=i(a,s);if(t&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(1),o=n(5),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){"use strict";n(21);var r=n(16),o=n(0),i=n(2),a=n(26),c=n(9),u=i("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=i("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!o((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]}));t.exports=function(t,e,n,f){var h=i(t),v=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=v&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!v||!g||"replace"===t&&(!s||!l||p)||"split"===t&&!d){var m=/./[h],y=n(h,""[t],(function(t,e,n,r,o){return e.exec===a?v&&!o?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),w=y[0],b=y[1];r(String.prototype,t,w),r(RegExp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}f&&c(RegExp.prototype[h],"sham",!0)}},function(t,e,n){var r=n(15),o=n(26);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){var r=n(55),o=n(34).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o=n(17),i=n(50).indexOf,a=n(30);t.exports=function(t,e){var n,c=o(t),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;e.length>u;)r(c,n=e[u++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){"use strict";var r=n(8),o=n(50).indexOf,i=n(42),a=n(33),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,s=i("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!s||!l},{indexOf:function(t){return u?c.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(5),o=n(45),i=n(2)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r,o,i=n(1),a=n(78),c=i.process,u=c&&c.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(43);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(75).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r=n(52),o=n(4),i=n(20),a=n(14),c=n(19),u=n(10),s=n(63),l=n(53),f=Math.max,p=Math.min,d=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&m||"string"==typeof r&&-1===r.indexOf(y)){var i=n(e,t,this,r);if(i.done)return i.value}var u=o(t),d=String(this),h="function"==typeof r;h||(r=String(r));var v=u.global;if(v){var b=u.unicode;u.lastIndex=0}for(var x=[];;){var S=l(u,d);if(null===S)break;if(x.push(S),!v)break;""===String(S[0])&&(u.lastIndex=s(d,a(u.lastIndex),b))}for(var _,E="",k=0,L=0;L<x.length;L++){S=x[L];for(var T=String(S[0]),A=f(p(c(S.index),d.length),0),P=[],j=1;j<S.length;j++)P.push(void 0===(_=S[j])?_:String(_));var O=S.groups;if(h){var I=[T].concat(P,A,d);void 0!==O&&I.push(O);var R=String(r.apply(void 0,I))}else R=w(T,d,A,P,O,r);A>=k&&(E+=d.slice(k,A)+R,k=A+T.length)}return E+d.slice(k)}];function w(t,n,r,o,a,c){var u=r+t.length,s=o.length,l=v;return void 0!==a&&(a=i(a),l=h),e.call(c,l,(function(e,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":c=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return e;if(l>s){var f=d(l/10);return 0===f?e:f<=s?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):e}c=o[l-1]}return void 0===c?"":c}))}}))},function(t,e,n){var r=n(19),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r,o=n(4),i=n(82),a=n(34),c=n(30),u=n(88),s=n(51),l=n(44),f=l("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;h=r?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[f]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){"use strict";var r=n(4);t.exports=function(){var t=r(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}},function(t,e,n){var r=n(61),o=n(32),i=n(20),a=n(14),c=n(58),u=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,l=4==t,f=6==t,p=5==t||f;return function(d,h,v,g){for(var m,y,w=i(d),b=o(w),x=r(h,v,3),S=a(b.length),_=0,E=g||c,k=e?E(d,S):n?E(d,0):void 0;S>_;_++)if((p||_ in b)&&(y=x(m=b[_],_,w),t))if(e)k[_]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:u.call(k,m)}else if(l)return!1;return f?-1:s||l?l:k}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,n){"use strict";var r=n(52),o=n(90),i=n(4),a=n(10),c=n(91),u=n(63),s=n(14),l=n(53),f=n(26),p=n(0),d=[].push,h=Math.min,v=!p((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="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 r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var c,u,s,l=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,v=new RegExp(t.source,p+"g");(c=f.call(v,r))&&!((u=v.lastIndex)>h&&(l.push(r.slice(h,c.index)),c.length>1&&c.index<r.length&&d.apply(l,c.slice(1)),s=c[0].length,h=u,l.length>=i));)v.lastIndex===c.index&&v.lastIndex++;return h===r.length?!s&&v.test("")||l.push(""):l.push(r.slice(h)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var f=i(t),p=String(this),d=c(f,RegExp),g=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),y=new d(v?f:"^(?:"+f.source+")",m),w=void 0===o?4294967295:o>>>0;if(0===w)return[];if(0===p.length)return null===l(y,p)?[p]:[];for(var b=0,x=0,S=[];x<p.length;){y.lastIndex=v?x:0;var _,E=l(y,v?p:p.slice(x));if(null===E||(_=h(s(y.lastIndex+(v?0:x)),p.length))===b)x=u(p,x,g);else{if(S.push(p.slice(b,x)),S.length===w)return S;for(var k=1;k<=E.length-1;k++)if(S.push(E[k]),S.length===w)return S;x=b=_}}return S.push(p.slice(b)),S}]}),!v)},function(t,e,n){var r=n(3),o=n(77),i=n(31),a=n(11);t.exports=function(t,e){for(var n=o(e),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(t,l)||c(t,l,u(e,l))}}},function(t,e,n){var r=n(1);t.exports=r},function(t,e,n){"use strict";var r=n(25),o=n(11),i=n(22);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},function(t,e,n){var r=n(41);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(0),o=n(2),i=n(59),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(19),o=n(10),i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){var r=n(1),o=n(38),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(23),o=n(54),i=n(62),a=n(4);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(23);t.exports=r("navigator","userAgent")||""},function(t,e){function n(t){return(n="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})(t)}function r(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=r=function(t){return n(t)}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(e)}t.exports=r},function(t,e,n){var r=n(55),o=n(34);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(0);function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,n){var r=n(6),o=n(11),i=n(4),a=n(80);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],e[n]);return t}},function(t,e){t.exports={}},,function(t,e,n){var r={};r[n(2)("toStringTag")]="z",t.exports="[object z]"===String(r)},,function(t,e,n){var r=n(2),o=n(66),i=n(11),a=r("unscopables"),c=Array.prototype;null==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},function(t,e,n){var r=n(23);t.exports=r("document","documentElement")},function(t,e,n){var r=n(11).f,o=n(3),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(5),o=n(15),i=n(2)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(4),o=n(43),i=n(2)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){t.exports=n(118)},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",s="object"==typeof t,l=e.regeneratorRuntime;if(l)s&&(t.exports=l);else{(l=e.regeneratorRuntime=s?t.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={},g={};g[a]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(O([])));y&&y!==r&&o.call(y,a)&&(g=y);var w=E.prototype=S.prototype=Object.create(g);_.prototype=w.constructor=E,E.constructor=_,E[u]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(w),t},l.awrap=function(t){return{__await:t}},k(L.prototype),L.prototype[c]=function(){return this},l.AsyncIterator=L,l.async=function(t,e,n,r){var o=new L(b(t,e,n,r));return l.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},k(w),w[u]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=O,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(t,e,n,r){var o=e&&e.prototype instanceof S?e:S,i=Object.create(o.prototype),a=new j(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=T(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=x(t,e,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function S(){}function _(){}function E(){}function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){var e;this._invoke=function(n,r){function i(){return new Promise((function(e,i){!function e(n,r,i,a){var c=x(t[n],t,r);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(s).then((function(t){u.value=t,i(u)}),a)}a(c.arg)}(n,r,e,i)}))}return e=e?e.then(i,i):i()}}function T(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,T(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:I}}function I(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e){function n(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}},,function(t,e,n){var r=n(85),o=n(15),i=n(2)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){"use strict";var r=n(68).forEach,o=n(42),i=n(33),a=o("forEach"),c=i("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},,function(t,e,n){"use strict";var r=n(8),o=n(97);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},,function(t,e,n){"use strict";var r=n(8),o=n(32),i=n(17),a=n(42),c=[].join,u=o!=Object,s=a("join",",");r({target:"Array",proto:!0,forced:u||!s},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},,,,,,,,function(t,e,n){"use strict";var r=n(16),o=n(4),i=n(0),a=n(67),c=RegExp.prototype,u=c.toString,s=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l="toString"!=u.name;(s||l)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n)}),{unsafe:!0})},function(t,e){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}},function(t,e,n){var r=n(96),o=n(83),i=n(2)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},,function(t,e,n){var r=n(1),o=n(110),i=n(97),a=n(9);for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(t){s.forEach=i}}},,function(t,e,n){"use strict";var r=n(17),o=n(87),i=n(83),a=n(35),c=n(155),u=a.set,s=a.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(4),o=n(123);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r=n(85),o=n(16),i=n(133);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new T(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?d:f,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=d,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",h={};function v(){}function g(){}function m(){}var y={};y[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(A([])));b&&b!==n&&r.call(b,i)&&(y=b);var x=m.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function _(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,a){var c=s(t[n],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(l).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,m[c]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},S(_.prototype),_.prototype[a]=function(){return this},t.AsyncIterator=_,t.async=function(e,n,r,o){var i=new _(u(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(x),x[c]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},,,,function(t,e,n){"use strict";var r=n(52),o=n(4),i=n(14),a=n(10),c=n(63),u=n(53);r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var l=a.unicode;a.lastIndex=0;for(var f,p=[],d=0;null!==(f=u(a,s));){var h=String(f[0]);p[d]=h,""===h&&(a.lastIndex=c(s,i(a.lastIndex),l)),d++}return 0===d?null:p}]}))},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){"use strict";n(24),n(56),n(101),n(21),n(69),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={log:function(){if(1===parseInt(this.getCookie("debug"),10)){for(var t,e=["color: #fff","font-weight: 800","background-color: #976F2A","font-size: 120%","padding: 2px 0 2px 2px"].join("; "),n=["color: black","font-weight: normal","background-color: white","font-size: 100%","padding: 0"].join("; "),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];(t=console).log.apply(t,["%cMartini%c",e,n].concat(o))}},getCookie:function(t){for(var e="".concat(t,"="),n=document.cookie.split(";"),r=0;r<n.length;r+=1){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return""}};e.default=r},,,,,,,,function(t,e,n){"use strict";var r=n(85),o=n(96);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){"use strict";var r=n(75).charAt,o=n(35),i=n(155),a=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(8),o=n(156),i=n(158),a=n(116),c=n(89),u=n(9),s=n(16),l=n(2),f=n(48),p=n(83),d=n(157),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m=function(){return this};t.exports=function(t,e,n,l,d,y,w){o(n,e,l);var b,x,S,_=function(t){if(t===d&&A)return A;if(!v&&t in L)return L[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",k=!1,L=t.prototype,T=L[g]||L["@@iterator"]||d&&L[d],A=!v&&T||_(d),P="Array"==e&&L.entries||T;if(P&&(b=i(P.call(new t)),h!==Object.prototype&&b.next&&(f||i(b)===h||(a?a(b,h):"function"!=typeof b[g]&&u(b,g,m)),c(b,E,!0,!0),f&&(p[E]=m))),"values"==d&&T&&"values"!==T.name&&(k=!0,A=function(){return T.call(this)}),f&&!w||L[g]===A||u(L,g,A),p[e]=A,d)if(x={values:_("values"),keys:y?A:_("keys"),entries:_("entries")},w)for(S in x)!v&&!k&&S in L||s(L,S,x[S]);else r({target:e,proto:!0,forced:v||k},x);return x}},function(t,e,n){"use strict";var r=n(157).IteratorPrototype,o=n(66),i=n(22),a=n(89),c=n(83),u=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,s,!1,!0),c[s]=u,t}},function(t,e,n){"use strict";var r,o,i,a=n(158),c=n(9),u=n(3),s=n(2),l=n(48),f=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),l||u(r,f)||c(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,e,n){var r=n(3),o=n(20),i=n(44),a=n(186),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(0),o=n(2),i=n(48),a=o("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},,,,function(t,e,n){var r=n(4);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(2),o=n(83),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,n){var r=n(16);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},,function(t,e,n){"use strict";var r=n(52),o=n(4),i=n(10),a=n(168),c=n(53);r("search",1,(function(t,e,n){return[function(e){var n=i(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=o(t),u=String(this),s=i.lastIndex;a(s,0)||(i.lastIndex=0);var l=c(i,u);return a(i.lastIndex,s)||(i.lastIndex=s),null===l?-1:l.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(80),a=n(62),c=n(60),u=n(20),s=n(32),l=Object.assign,f=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||"abcdefghijklmnopqrst"!=i(l({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,l=1,f=a.f,p=c.f;o>l;)for(var d,h=s(arguments[l++]),v=f?i(h).concat(f(h)):i(h),g=v.length,m=0;g>m;)d=v[m++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:l},,,,,,,,,,function(t,e,n){"use strict";var r=n(8),o=n(5),i=n(45),a=n(65),c=n(14),u=n(17),s=n(72),l=n(2),f=n(74),p=n(33),d=f("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),v=l("species"),g=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!d||!h},{slice:function(t,e){var n,r,l,f=u(this),p=c(f.length),d=a(t,p),h=a(void 0===e?p:e,p);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[v])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(f,d,h);for(r=new(void 0===n?Array:n)(m(h-d,0)),l=0;d<h;d++,l++)d in f&&s(r,l,f[d]);return r.length=l,r}})},function(t,e,n){var r=n(1),o=n(110),i=n(115),a=n(9),c=n(2),u=c("iterator"),s=c("toStringTag"),l=i.values;for(var f in o){var p=r[f],d=p&&p.prototype;if(d){if(d[u]!==l)try{a(d,u,l)}catch(t){d[u]=l}if(d[s]||a(d,s,f),o[f])for(var h in i)if(d[h]!==i[h])try{a(d,h,i[h])}catch(t){d[h]=i[h]}}}},function(t,e,n){"use strict";n(134);var r,o=n(8),i=n(6),a=n(159),c=n(1),u=n(82),s=n(16),l=n(124),f=n(3),p=n(169),d=n(187),h=n(75).codeAt,v=n(188),g=n(89),m=n(189),y=n(35),w=c.URL,b=m.URLSearchParams,x=m.getState,S=y.set,_=y.getterFor("URL"),E=Math.floor,k=Math.pow,L=/[A-Za-z]/,T=/[\d+-.A-Za-z]/,A=/\d/,P=/^(0x|0X)/,j=/^[0-7]+$/,O=/^\d+$/,I=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,C=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\u0009\u000A\u000D]/g,F=function(t,e){var n,r,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=U(e.slice(1,-1))))return"Invalid host";t.host=n}else if(Y(t)){if(e=v(e),R.test(e))return"Invalid host";if(null===(n=B(e)))return"Invalid host";t.host=n}else{if(C.test(e))return"Invalid host";for(n="",r=d(e),o=0;o<r.length;o++)n+=H(r[o],q);t.host=n}},B=function(t){var e,n,r,o,i,a,c,u=t.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(o=u[r]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=P.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?O:8==i?j:I).test(o))return t;a=parseInt(o,i)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=k(256,5-e))return null}else if(a>255)return null;for(c=n.pop(),r=0;r<n.length;r++)c+=n[r]*k(256,3-r);return c},U=function(t){var e,n,r,o,i,a,c,u=[0,0,0,0,0,0,0,0],s=0,l=null,f=0,p=function(){return t.charAt(f)};if(":"==p()){if(":"!=t.charAt(1))return;f+=2,l=++s}for(;p();){if(8==s)return;if(":"!=p()){for(e=n=0;n<4&&I.test(p());)e=16*e+parseInt(p(),16),f++,n++;if("."==p()){if(0==n)return;if(f-=n,s>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;f++}if(!A.test(p()))return;for(;A.test(p());){if(i=parseInt(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[s]=256*u[s]+o,2!=++r&&4!=r||s++}if(4!=r)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;u[s++]=e}else{if(null!==l)return;f++,l=++s}}if(null!==l)for(a=s-l,s=7;0!=s&&a>0;)c=u[s],u[s--]=u[l+a-1],u[l+--a]=c;else if(8!=s)return;return u},N=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=E(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(e=r,n=o),e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},q={},$=p({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),G=p({},$,{"#":1,"?":1,"{":1,"}":1}),V=p({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),H=function(t,e){var n=h(t,0);return n>32&&n<127&&!f(e,t)?t:encodeURIComponent(t)},z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(t){return f(z,t.scheme)},W=function(t){return""!=t.username||""!=t.password},K=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},X=function(t,e){var n;return 2==t.length&&L.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},J=function(t){var e;return t.length>1&&X(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Z=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&X(e[0],!0)||e.pop()},Q=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},nt={},rt={},ot={},it={},at={},ct={},ut={},st={},lt={},ft={},pt={},dt={},ht={},vt={},gt={},mt={},yt={},wt={},bt={},xt=function(t,e,n,o){var i,a,c,u,s,l=n||tt,p=0,h="",v=!1,g=!1,m=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(M,"")),e=e.replace(D,""),i=d(e);p<=i.length;){switch(a=i[p],l){case tt:if(!a||!L.test(a)){if(n)return"Invalid scheme";l=nt;continue}h+=a.toLowerCase(),l=et;break;case et:if(a&&(T.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";h="",l=nt,p=0;continue}if(n&&(Y(t)!=f(z,h)||"file"==h&&(W(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,n)return void(Y(t)&&z[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?l=dt:Y(t)&&o&&o.scheme==t.scheme?l=rt:Y(t)?l=ct:"/"==i[p+1]?(l=ot,p++):(t.cannotBeABaseURL=!0,t.path.push(""),l=yt)}break;case nt:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,l=bt;break}l="file"==o.scheme?dt:it;continue;case rt:if("/"!=a||"/"!=i[p+1]){l=it;continue}l=ut,p++;break;case ot:if("/"==a){l=st;break}l=mt;continue;case it:if(t.scheme=o.scheme,a==r)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==a||"\\"==a&&Y(t))l=at;else if("?"==a)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",l=wt;else{if("#"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),l=mt;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",l=bt}break;case at:if(!Y(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,l=mt;continue}l=st}else l=ut;break;case ct:if(l=ut,"/"!=a||"/"!=h.charAt(p+1))continue;p++;break;case ut:if("/"!=a&&"\\"!=a){l=st;continue}break;case st:if("@"==a){v&&(h="%40"+h),v=!0,c=d(h);for(var y=0;y<c.length;y++){var w=c[y];if(":"!=w||m){var b=H(w,V);m?t.password+=b:t.username+=b}else m=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)){if(v&&""==h)return"Invalid authority";p-=d(h).length+1,h="",l=lt}else h+=a;break;case lt:case ft:if(n&&"file"==t.scheme){l=vt;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)){if(Y(t)&&""==h)return"Invalid host";if(n&&""==h&&(W(t)||null!==t.port))return;if(u=F(t,h))return u;if(h="",l=gt,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),h+=a}else{if(""==h)return"Invalid host";if(u=F(t,h))return u;if(h="",l=pt,n==ft)return}break;case pt:if(!A.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)||n){if(""!=h){var x=parseInt(h,10);if(x>65535)return"Invalid port";t.port=Y(t)&&x===z[t.scheme]?null:x,h=""}if(n)return;l=gt;continue}return"Invalid port"}h+=a;break;case dt:if(t.scheme="file","/"==a||"\\"==a)l=ht;else{if(!o||"file"!=o.scheme){l=mt;continue}if(a==r)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==a)t.host=o.host,t.path=o.path.slice(),t.query="",l=wt;else{if("#"!=a){J(i.slice(p).join(""))||(t.host=o.host,t.path=o.path.slice(),Z(t)),l=mt;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",l=bt}}break;case ht:if("/"==a||"\\"==a){l=vt;break}o&&"file"==o.scheme&&!J(i.slice(p).join(""))&&(X(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),l=mt;continue;case vt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&X(h))l=mt;else if(""==h){if(t.host="",n)return;l=gt}else{if(u=F(t,h))return u;if("localhost"==t.host&&(t.host=""),n)return;h="",l=gt}continue}h+=a;break;case gt:if(Y(t)){if(l=mt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=mt,"/"!=a))continue}else t.fragment="",l=bt;else t.query="",l=wt;break;case mt:if(a==r||"/"==a||"\\"==a&&Y(t)||!n&&("?"==a||"#"==a)){if(".."===(s=(s=h).toLowerCase())||"%2e."===s||".%2e"===s||"%2e%2e"===s?(Z(t),"/"==a||"\\"==a&&Y(t)||t.path.push("")):Q(h)?"/"==a||"\\"==a&&Y(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&X(h)&&(t.host&&(t.host=""),h=h.charAt(0)+":"),t.path.push(h)),h="","file"==t.scheme&&(a==r||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",l=wt):"#"==a&&(t.fragment="",l=bt)}else h+=H(a,G);break;case yt:"?"==a?(t.query="",l=wt):"#"==a?(t.fragment="",l=bt):a!=r&&(t.path[0]+=H(a,q));break;case wt:n||"#"!=a?a!=r&&("'"==a&&Y(t)?t.query+="%27":t.query+="#"==a?"%23":H(a,q)):(t.fragment="",l=bt);break;case bt:a!=r&&(t.fragment+=H(a,$))}p++}},St=function(t){var e,n,r=l(this,St,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(r,{type:"URL"});if(void 0!==o)if(o instanceof St)e=_(o);else if(n=xt(e={},String(o)))throw TypeError(n);if(n=xt(c,a,null,e))throw TypeError(n);var u=c.searchParams=new b,s=x(u);s.updateSearchParams(c.query),s.updateURL=function(){c.query=String(u)||null},i||(r.href=Et.call(r),r.origin=kt.call(r),r.protocol=Lt.call(r),r.username=Tt.call(r),r.password=At.call(r),r.host=Pt.call(r),r.hostname=jt.call(r),r.port=Ot.call(r),r.pathname=It.call(r),r.search=Rt.call(r),r.searchParams=Ct.call(r),r.hash=Mt.call(r))},_t=St.prototype,Et=function(){var t=_(this),e=t.scheme,n=t.username,r=t.password,o=t.host,i=t.port,a=t.path,c=t.query,u=t.fragment,s=e+":";return null!==o?(s+="//",W(t)&&(s+=n+(r?":"+r:"")+"@"),s+=N(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},kt=function(){var t=_(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Y(t)?e+"://"+N(t.host)+(null!==n?":"+n:""):"null"},Lt=function(){return _(this).scheme+":"},Tt=function(){return _(this).username},At=function(){return _(this).password},Pt=function(){var t=_(this),e=t.host,n=t.port;return null===e?"":null===n?N(e):N(e)+":"+n},jt=function(){var t=_(this).host;return null===t?"":N(t)},Ot=function(){var t=_(this).port;return null===t?"":String(t)},It=function(){var t=_(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Rt=function(){var t=_(this).query;return t?"?"+t:""},Ct=function(){return _(this).searchParams},Mt=function(){var t=_(this).fragment;return t?"#"+t:""},Dt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&u(_t,{href:Dt(Et,(function(t){var e=_(this),n=String(t),r=xt(e,n);if(r)throw TypeError(r);x(e.searchParams).updateSearchParams(e.query)})),origin:Dt(kt),protocol:Dt(Lt,(function(t){var e=_(this);xt(e,String(t)+":",tt)})),username:Dt(Tt,(function(t){var e=_(this),n=d(String(t));if(!K(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=H(n[r],V)}})),password:Dt(At,(function(t){var e=_(this),n=d(String(t));if(!K(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=H(n[r],V)}})),host:Dt(Pt,(function(t){var e=_(this);e.cannotBeABaseURL||xt(e,String(t),lt)})),hostname:Dt(jt,(function(t){var e=_(this);e.cannotBeABaseURL||xt(e,String(t),ft)})),port:Dt(Ot,(function(t){var e=_(this);K(e)||(""==(t=String(t))?e.port=null:xt(e,t,pt))})),pathname:Dt(It,(function(t){var e=_(this);e.cannotBeABaseURL||(e.path=[],xt(e,t+"",gt))})),search:Dt(Rt,(function(t){var e=_(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xt(e,t,wt)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Dt(Ct),hash:Dt(Mt,(function(t){var e=_(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xt(e,t,bt)):e.fragment=null}))}),s(_t,"toJSON",(function(){return Et.call(this)}),{enumerable:!0}),s(_t,"toString",(function(){return Et.call(this)}),{enumerable:!0}),w){var Ft=w.createObjectURL,Bt=w.revokeObjectURL;Ft&&s(St,"createObjectURL",(function(t){return Ft.apply(w,arguments)})),Bt&&s(St,"revokeObjectURL",(function(t){return Bt.apply(w,arguments)}))}g(St,"URL"),o({global:!0,forced:!a,sham:!i},{URL:St})},,,,,function(t,e,n){var r=n(0);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){"use strict";var r=n(61),o=n(20),i=n(163),a=n(164),c=n(14),u=n(72),s=n(111);t.exports=function(t){var e,n,l,f,p,d,h=o(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,w=s(h),b=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),null==w||v==Array&&a(w))for(n=new v(e=c(h.length));e>b;b++)d=y?m(h[b],b):h[b],u(n,b,d);else for(p=(f=w.call(h)).next,n=new v;!(l=p.call(f)).done;b++)d=y?i(f,m,[l.value,b],!0):l.value,u(n,b,d);return n.length=b,n}},function(t,e,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,c=String.fromCharCode,u=function(t){return t+22+75*(t<26)},s=function(t,e,n){var r=0;for(t=n?a(t/700):t>>1,t+=a(t/e);t>455;r+=36)t=a(t/35);return a(r+36*t/(t+38))},l=function(t){var e,n,r=[],o=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=t.charCodeAt(n++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),n--)}else e.push(o)}return e}(t)).length,l=128,f=0,p=72;for(e=0;e<t.length;e++)(n=t[e])<128&&r.push(c(n));var d=r.length,h=d;for(d&&r.push("-");h<o;){var v=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=l&&n<v&&(v=n);var g=h+1;if(v-l>a((2147483647-f)/g))throw RangeError(i);for(f+=(v-l)*g,l=v,e=0;e<t.length;e++){if((n=t[e])<l&&++f>2147483647)throw RangeError(i);if(n==l){for(var m=f,y=36;;y+=36){var w=y<=p?1:y>=p+26?26:y-p;if(m<w)break;var b=m-w,x=36-w;r.push(c(u(w+b%x))),m=a(b/x)}r.push(c(u(m))),p=s(f,g,h==d),f=0,++h}}++f,++l}return r.join("")};t.exports=function(t){var e,n,i=[],a=t.toLowerCase().replace(o,".").split(".");for(e=0;e<a.length;e++)n=a[e],i.push(r.test(n)?"xn--"+l(n):n);return i.join(".")}},function(t,e,n){"use strict";n(115);var r=n(8),o=n(23),i=n(159),a=n(16),c=n(165),u=n(89),s=n(156),l=n(35),f=n(124),p=n(3),d=n(61),h=n(96),v=n(4),g=n(5),m=n(66),y=n(22),w=n(190),b=n(111),x=n(2),S=o("fetch"),_=o("Headers"),E=x("iterator"),k=l.set,L=l.getterFor("URLSearchParams"),T=l.getterFor("URLSearchParamsIterator"),A=/\+/g,P=Array(4),j=function(t){return P[t-1]||(P[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},O=function(t){try{return decodeURIComponent(t)}catch(e){return t}},I=function(t){var e=t.replace(A," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(j(n--),O);return e}},R=/[!'()~]|%20/g,C={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},M=function(t){return C[t]},D=function(t){return encodeURIComponent(t).replace(R,M)},F=function(t,e){if(e)for(var n,r,o=e.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),t.push({key:I(r.shift()),value:I(r.join("="))}))},B=function(t){this.entries.length=0,F(this.entries,t)},U=function(t,e){if(t<e)throw TypeError("Not enough arguments")},N=s((function(t,e){k(this,{type:"URLSearchParamsIterator",iterator:w(L(t).entries),kind:e})}),"Iterator",(function(){var t=T(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),q=function(){f(this,q,"URLSearchParams");var t,e,n,r,o,i,a,c,u,s=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(k(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:B}),void 0!==s)if(g(s))if("function"==typeof(t=b(s)))for(n=(e=t.call(s)).next;!(r=n.call(e)).done;){if((a=(i=(o=w(v(r.value))).next).call(o)).done||(c=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:c.value+""})}else for(u in s)p(s,u)&&d.push({key:u,value:s[u]+""});else F(d,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},$=q.prototype;c($,{append:function(t,e){U(arguments.length,2);var n=L(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){U(arguments.length,1);for(var e=L(this),n=e.entries,r=t+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;e.updateURL()},get:function(t){U(arguments.length,1);for(var e=L(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){U(arguments.length,1);for(var e=L(this).entries,n=t+"",r=[],o=0;o<e.length;o++)e[o].key===n&&r.push(e[o].value);return r},has:function(t){U(arguments.length,1);for(var e=L(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){U(arguments.length,1);for(var n,r=L(this),o=r.entries,i=!1,a=t+"",c=e+"",u=0;u<o.length;u++)(n=o[u]).key===a&&(i?o.splice(u--,1):(i=!0,n.value=c));i||o.push({key:a,value:c}),r.updateURL()},sort:function(){var t,e,n,r=L(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(t=i[n],e=0;e<n;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===n&&o.push(t)}r.updateURL()},forEach:function(t){for(var e,n=L(this).entries,r=d(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((e=n[o++]).value,e.key,this)},keys:function(){return new N(this,"keys")},values:function(){return new N(this,"values")},entries:function(){return new N(this,"entries")}},{enumerable:!0}),a($,E,$.entries),a($,"toString",(function(){for(var t,e=L(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(D(t.key)+"="+D(t.value));return n.join("&")}),{enumerable:!0}),u(q,"URLSearchParams"),r({global:!0,forced:!i},{URLSearchParams:q}),i||"function"!=typeof S||"function"!=typeof _||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,o=[t];return arguments.length>1&&(e=arguments[1],g(e)&&(n=e.body,"URLSearchParams"===h(n)&&((r=e.headers?new _(e.headers):new _).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=m(e,{body:y(0,String(n)),headers:y(0,r)}))),o.push(e)),S.apply(this,o)}}),t.exports={URLSearchParams:q,getState:L}},function(t,e,n){var r=n(4),o=n(111);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},,,,function(t,e,n){"use strict";var r=n(23),o=n(11),i=n(2),a=n(6),c=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r,o,i,a=n(1),c=n(0),u=n(15),s=n(61),l=n(88),f=n(51),p=n(241),d=a.location,h=a.setImmediate,v=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,w=0,b={},x=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){return function(){x(t)}},_=function(t){x(t.data)},E=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};h&&v||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++w]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(w),w},v=function(t){delete b[t]},"process"==u(g)?r=function(t){g.nextTick(S(t))}:y&&y.now?r=function(t){y.now(S(t))}:m&&!p?(i=(o=new m).port2,o.port1.onmessage=_,r=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(E)||"file:"===d.protocol?r="onreadystatechange"in f("script")?function(t){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),x(t)}}:function(t){setTimeout(S(t),0)}:(r=E,a.addEventListener("message",_,!1))),t.exports={set:h,clear:v}},function(t,e,n){var r=n(78);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){"use strict";var r=n(43),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r,o,i,a,c=n(8),u=n(48),s=n(1),l=n(23),f=n(332),p=n(16),d=n(165),h=n(89),v=n(194),g=n(5),m=n(43),y=n(124),w=n(15),b=n(38),x=n(333),S=n(334),_=n(91),E=n(240).set,k=n(335),L=n(336),T=n(337),A=n(242),P=n(338),j=n(35),O=n(57),I=n(2),R=n(59),C=I("species"),M="Promise",D=j.get,F=j.set,B=j.getterFor(M),U=f,N=s.TypeError,q=s.document,$=s.process,G=l("fetch"),V=A.f,H=V,z="process"==w($),Y=!!(q&&q.createEvent&&s.dispatchEvent),W=O(M,(function(){if(!(b(U)!==String(U))){if(66===R)return!0;if(!z&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype.finally)return!0;if(R>=51&&/native code/.test(U))return!1;var t=U.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[C]=e,!(t.then((function(){}))instanceof e)})),K=W||!S((function(t){U.all(t).catch((function(){}))})),X=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},J=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;k((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var c,u,s,l=r[a++],f=i?l.ok:l.fail,p=l.resolve,d=l.reject,h=l.domain;try{f?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===f?c=o:(h&&h.enter(),c=f(o),h&&(h.exit(),s=!0)),c===l.promise?d(N("Promise-chain cycle")):(u=X(c))?u.call(c,p,d):p(c)):d(o)}catch(t){h&&!s&&h.exit(),d(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Q(t,e)}))}},Z=function(t,e,n){var r,o;Y?((r=q.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(o=s["on"+t])?o(r):"unhandledrejection"===t&&T("Unhandled promise rejection",n)},Q=function(t,e){E.call(s,(function(){var n,r=e.value;if(tt(e)&&(n=P((function(){z?$.emit("unhandledRejection",r,t):Z("unhandledrejection",t,r)})),e.rejection=z||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){E.call(s,(function(){z?$.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,J(t,e,!0))},ot=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw N("Promise can't be resolved itself");var o=X(n);o?k((function(){var r={done:!1};try{o.call(n,nt(ot,t,r,e),nt(rt,t,r,e))}catch(n){rt(t,r,n,e)}})):(e.value=n,e.state=1,J(t,e,!1))}catch(n){rt(t,{done:!1},n,e)}}};W&&(U=function(t){y(this,U,M),m(t),r.call(this);var e=D(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(t){rt(this,e,t)}},(r=function(t){F(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(U.prototype,{then:function(t,e){var n=B(this),r=V(_(this,U));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=z?$.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=D(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},A.f=V=function(t){return t===U||t===i?new o(t):H(t)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof G&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return L(U,G.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:W},{Promise:U}),h(U,M,!1,!0),v(M),i=l(M),c({target:M,stat:!0,forced:W},{reject:function(t){var e=V(this);return e.reject.call(void 0,t),e.promise}}),c({target:M,stat:!0,forced:u||W},{resolve:function(t){return L(u&&this===i?U:this,t)}}),c({target:M,stat:!0,forced:K},{all:function(t){var e=this,n=V(e),r=n.resolve,o=n.reject,i=P((function(){var n=m(e.resolve),i=[],a=0,c=1;x(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=V(e),r=n.reject,o=P((function(){var o=m(e.resolve);x(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(1);t.exports=r.Promise},function(t,e,n){var r=n(4),o=n(164),i=n(14),a=n(61),c=n(111),u=n(163),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,l,f){var p,d,h,v,g,m,y,w=a(e,n,l?2:1);if(f)p=t;else{if("function"!=typeof(d=c(t)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,v=i(t.length);v>h;h++)if((g=l?w(r(y=t[h])[0],y[1]):w(t[h]))&&g instanceof s)return g;return new s(!1)}p=d.call(t)}for(m=p.next;!(y=m.call(p)).done;)if("object"==typeof(g=u(p,w,y.value,l))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,n){var r=n(2)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r,o,i,a,c,u,s,l,f=n(1),p=n(31).f,d=n(15),h=n(240).set,v=n(241),g=f.MutationObserver||f.WebKitMutationObserver,m=f.process,y=f.Promise,w="process"==d(m),b=p(f,"queueMicrotask"),x=b&&b.value;x||(r=function(){var t,e;for(w&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},w?a=function(){m.nextTick(r)}:g&&!v?(c=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):y&&y.resolve?(s=y.resolve(void 0),l=s.then,a=function(){l.call(s,r)}):a=function(){h.call(f,r)}),t.exports=x||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,n){var r=n(4),o=n(5),i=n(242);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(1);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},,function(t,e,n){"use strict";var r=n(8),o=n(341).start;r({target:"String",proto:!0,forced:n(343)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(14),o=n(342),i=n(10),a=Math.ceil,c=function(t){return function(e,n,c){var u,s,l=String(i(e)),f=l.length,p=void 0===c?" ":String(c),d=r(n);return d<=f||""==p?l:(u=d-f,(s=o.call(p,a(u/p.length))).length>u&&(s=s.slice(0,u)),t?l+s:s+l)}};t.exports={start:c(!1),end:c(!0)}},function(t,e,n){"use strict";var r=n(19),o=n(10);t.exports="".repeat||function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){var r=n(78);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(7);n(24),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(125)),i={runningTimers:{},timerPositions:{},timerCount:{},advertRefreshTime:16,acceptableViewability:50,browserFocus:!0,browserSetup:!1,timer:function(t,e){this.browserSetup||(this.browserSetup=!0,this.setFocusListeners()),this.checkName(t)?this.checkFocus()?(o.default.log("DFP - running for ".concat(t," at ").concat(e," percent")),e>=this.acceptableViewability?this.startTimer(t):this.pauseTimer(t)):o.default.log("DFP - Browser is not focused, ignoring ".concat(t)):o.default.log("DFP - Ignoring ".concat(t))},pauseTimer:function(t){o.default.log("DFP - pausing timer for ".concat(t)),clearTimeout(this.runningTimers[t]),this.runningTimers[t]=null},startTimer:function(t){var e=this;t in this.timerPositions||(this.timerPositions[t]=0),t in this.runningTimers||(this.runningTimers[t]=null),t in this.timerCount||(this.timerCount[t]=1),"number"!=typeof this.runningTimers[t]?(o.default.log("DFP - (re)starting a timer for ".concat(t)),this.runningTimers[t]=window.setTimeout((function(){e.updateTimer(t)}),1e3)):o.default.log("DFP - Timer for ".concat(t," already running"))},updateTimer:function(t){var e=this;if(!this.checkFocus())return o.default.log("DFP - Browser is not focused, pausing timer for ".concat(t)),void this.pauseTimer(t);if(!this.checkRefresh(t))return o.default.log("DFP - advert has no-refresh dom attribute, pausing timer for ".concat(t)),void this.pauseTimer(t);var n=this.timerPositions[t];if(n+=1,o.default.log("DFP - updating ".concat(t," to ").concat(n," seconds")),n>this.advertRefreshTime)return this.resetTimer(t),void this.refreshAdvert(t);this.timerPositions[t]=n,this.runningTimers[t]=window.setTimeout((function(){e.updateTimer(t)}),1e3)},refreshAdvert:function(t){o.default.log("DFP - Refreshing ".concat(t));var e=this.timerCount[t];o.default.log("DFP - setting rfs to ".concat(e," for ").concat(t)),window.dfpHolder[t].setTargeting("rfs",e),window.googletag.pubads().refresh([window.dfpHolder[t]]),this.timerCount[t]+=1},resetTimer:function(t){this.pauseTimer(t),this.timerPositions[t]=0},checkName:function(t){switch(t){case"DFP_top_leaderboard":case"DFP_article_fluid_1":case"DFP_teads":case"DFP_out_of_page":case"DFP_on_scroll":case"DFP_standard_mpu_3":case"DFP_standard_mpu_4":case"DFP_standard_mpu_5":case"DFP_standard_mpu_6":case"DFP_standard_mpu_7":case"DFP_gallery_mpu":case"DFP_gallery_interstitial":return!1;default:return!0}},checkFocus:function(){return this.browserFocus},setFocusListeners:function(){var t=this;window.addEventListener("focus",(function(){t.setFocused()}),!1),window.addEventListener("blur",(function(){t.setBlurred()}),!1)},setFocused:function(){o.default.log("DFP - Browser focused"),this.browserFocus=!0},setBlurred:function(){o.default.log("DFP - Browser blurred"),this.browserFocus=!1},checkRefresh:function(t){o.default.log("Checking DOM for no-refresh on ".concat(t));var e=document.getElementById(t).classList.contains("no-refresh");return o.default.log("Does ".concat(t," contain 'no-refresh'? ").concat(e)),!e}};e.default=i},function(t,e,n){"use strict";var r=n(7);n(24),n(99),n(115),n(117),n(21),n(109),n(134),n(340),n(167),n(113),n(180),n(181),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(125)),i={autoplay:!0,volumeLevel:30,createdAdTimer:[],isLiveArticle:!1,tracked:!1,videoComplete:!1,init:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isLiveArticle=n;try{var r=document.querySelectorAll(".jw-video");r.forEach((function(n){e.setupPlayer(n,t)}))}catch(t){}},setupPlayer:function(t,e){var n=this,r=t.getAttribute("data-file"),o=t.getAttribute("id"),i=t.getAttribute("data-player-id"),a=window.jwplayer(o),c=t.getAttribute("data-playlist-id"),u=t.getAttribute("data-playlist-article-matching"),s=t.getAttribute("data-playlist-display"),l=parseInt(t.getAttribute("data-preroll-limit"),10),f=parseInt(t.getAttribute("data-duration"),10),p=parseInt(t.getAttribute("data-site-id"),10),d=parseInt(t.getAttribute("data-ad-frequency"),10),h=t.getAttribute("data-autoplay"),v=t.getAttribute("data-wrapper-id"),g=document.getElementById(v),m=t.getAttribute("data-advance"),y=t.getAttribute("data-advertising-disabled");if("yes"!==g.getAttribute("data-processed")){g.setAttribute("data-processed","yes");var w="yes"===h&&"no"===t.getAttribute("data-multimedia-block")&&this.autoplay&&!1===this.isLiveArticle,b="yes"===t.getAttribute("data-popout")&&!this.isMobile()&&!this.isTablet(),x={};x.playlist=this.getPlaylist(r),x.setTimeEvents=!0,"0"===y&&!0!==window.adLight&&(x.advertising=this.getAdSettings(f,l,e,w,d)),""!==c&&"none"!==c&&(x.related=this.getRelated(c,p,s,u,m)),w&&(this.autoplay=!1,x.autostart="viewable",x.mute=!0),b&&(x.floating={},x.floating.dismissible=!0),x.autoPause={},x.autoPause.viewability=!0,this.debug("Player ID: ".concat(i),x,"jw-settings"),a.setup(x),a.on("ready",(function(t){!0===w&&(n.createMuteButton(a,o),a.on("mute",(function(){!1===a.getMute()&&(document.getElementById("mute-".concat(o)).style.display="none")})),!0===b&&!1===n.isMobile()&&!1===n.isTablet()&&n.popoutPlayer(a)),n.debug("Ready",t,"jw-settings")})),a.on("pause",(function(t){n.debug("Pause",t,"jw-settings",!0),t.pauseReason})),a.on("adTime",(function(t){void 0===n.createdAdTimer[o]&&(n.createdAdTimer[o]=!1),!1===n.createdAdTimer[o]&&(n.debug("adTime called for the first time",t,"jw-settings"),n.createdAdTimer[o]=!0,n.createAdTimer(t,o))})),a.on("adPlay",(function(t){n.debug("adPlay called",t,"jw-settings")})),a.on("play",(function(){n.videoComplete=!1})),a.on("complete",(function(){n.videoComplete=!0}))}},createAdTimer:function(t,e){var n=this,r=Math.floor(t.duration);t.position>0?r-=Math.floor(t.position):r-=1,this.createCountDown(r,e),window.setTimeout((function(){r-=1,n.updateAdTimer(r,e)}),1e3)},updateAdTimer:function(t,e){var n=this,r=t,o=this.secondsToTime(r),i="cd-".concat(e);t>0?(document.getElementById(i).innerHTML="Ad: ".concat(o),window.setTimeout((function(){r-=1,n.updateAdTimer(r,e)}),1e3)):document.getElementById(i).style.display="none"},createCountDown:function(t,e){var n="cd-".concat(e),r=this.secondsToTime(t),o=document.createElement("div");o.classList.add("jw-timer"),o.innerHTML="Ad: ".concat(r),o.id=n,document.getElementById(e).parentElement.appendChild(o)},createAdvertisingUrl:function(t,e){var n=e?1:0,r="";return parseInt(window.data_layer.article.id,10)>0&&(r=parseInt(window.data_layer.article.id,10)),"https://securepubads.g.doubleclick.net/gampad/ads?iu=".concat(t)+"&sz=640x480&cust_params=cue%3Dpre%26atp%3D".concat(n,"%26article_id%3D").concat(r,"&gdfp_req=1&env=vp&output=xml_vast3")+"&unviewed_position_start=1&url=&description_url=__page-url__&correlator="},createMuteButton:function(t,e){var n=this,r="mute-".concat(e);this.createButton(e,r,"fa-volume-mute",(function(){t.setMute(!1),t.setVolume(n.volumeLevel),document.getElementById(r).style.display="none"}))},createPlayButton:function(t,e){var n="play-".concat(e),r="mute-".concat(e);!0===t.getMute()&&document.getElementById(r)&&(document.getElementById(r).style.display="none");this.createButton(e,n,"fa-play",(function(){t.play(!1),document.getElementById(n).style.display="none",!0===t.getMute()&&document.getElementById(r)&&(document.getElementById(r).style.display="block")}))},createButton:function(t,e,n,r){if(null===document.getElementById(e)){var o=document.createElement("button");o.id=e,o.classList.add("jw-inner"),o.addEventListener("click",r);var i=document.createElement("span");i.classList.add("jw-inner-font"),i.innerHTML='<i class="fas '.concat(n,'"></i>'),o.appendChild(i),document.getElementById(t).parentElement.appendChild(o)}else document.getElementById(e).style.display="block"},popoutPlayer:function(t){var e=this,n=document.getElementById("playerDock"),r=this.getElementOffsetTop(n);window.onscroll=function(){e.videoComplete||e.onScrollViewHandler(n,t,r)}},getElementOffsetTop:function(t){var e=t.getBoundingClientRect(),n=document.body,r=document.documentElement,o=(window.pageYOffset||r.scrollTop||n.scrollTop)-(r.clientTop||n.clientTop||0);return Math.round(e.top+o)},getScrollTop:function(){var t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)},onScrollViewHandler:function(t,e,n){if(this.getScrollTop()>=n){if(!this.tracked){o.default.log("VID: setting tracking for event52"),this.tracked=!0;var r=window.s;r.suppressPageView=!0,r.events=r.apl(r.events,"event52",",",1),r.linkTrackVars="eVar2,eVar4,eVar5,eVar6,eVar10,eVar16,eVar19,eVar25,eVar43,events",r.linkTrackEvents="event52",r.tl(!0,"o","video float")}t.classList.add("popout-player")}else t.classList.remove("popout-player");e.resize()},isMobile:function(){return window.screen.width<768},isTablet:function(){return window.screen.width>=768&&window.screen.width<=1024},secondsToTime:function(t){var e=t%3600,n=Math.floor(e/60),r=e%60,o=Math.ceil(r);return o=o.toString().padStart(2,"0"),"".concat(n,":").concat(o)},debug:function(t,e,n){var r=new URLSearchParams(window.location.search);if(1===parseInt(r.get("debug"),10)){var o=document.createElement("hr"),i=document.createElement("h4");i.innerHTML=t;var a=document.createElement("pre");a.innerHTML=JSON.stringify(e,null,4),a.style.whiteSpace="pre-wrap";var c=document.getElementById(n);c.insertBefore(a,c.firstChild),c.insertBefore(i,c.firstChild),c.insertBefore(o,c.firstChild)}},getPlaylist:function(t){return"https://cdn.jwplayer.com/v2/media/".concat(t)},getRelated:function(t,e,n,r,o){var i="https://cdn.jwplayer.com/v2/playlists/".concat(t),a="tags=site%3D".concat(e);"yes"===r&&(a+="&search=__CONTEXTUAL__");var c="".concat(i,"?").concat(a),u={};return u.file=c,u.displayMode=n,"no"===o?u.oncomplete="show":(u.oncomplete="autoplay",u.autoplaytimer=parseInt(o,10)),u.onclick="play",u},getAdSettings:function(t,e,n,r,o){var i=1;t<=e&&(i=2);var a=o;a<1&&(a=1);var c={client:"googima",autoplayadsmuted:!0};c.tag=this.createAdvertisingUrl(n,r),c.vastLoadTimeout=7500;var u={};u.startOn=i,u.frequency=a,c.rules=u;var s=[];return s[0]={name:"SpotX",id:"264093"},c.bids={},c.bids.bidders=s,c.bids.settings={mediationLayerAdServer:"dfp",floorPriceCents:0,floorPriceCurrency:"gbp",bidTimeout:1e3},c}};e.default=i},function(t,e,n){"use strict";var r=n(7);n(24),n(37),n(99),n(101),n(589),n(21),n(64),n(69),n(113),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(79)),i=r(n(591)),a=r(n(12)),c=r(n(595)),u=r(n(596)),s={piano:null,dataLayer:{},init:function(){var t=this;(0,a.default)(document).on("click","#piano-helper-init",(function(e){e.preventDefault(),t.show()})),(0,a.default)(document).on("click","#show-piano-divs",(function(e){e.preventDefault(),t.showPianoDivs()})),(0,a.default)(document).on("click","#datalayer-helper-init",(function(e){e.preventDefault(),t.showLaunch()})),(0,a.default)(document).on("click","#piano-hide-newsquest",(function(e){e.preventDefault(),t.setHideNewsquestCookie()})),(0,a.default)(document).on("click","#piano-show-newsquest",(function(e){e.preventDefault(),t.unsetHideNewsquestCookie()}))},show:function(){"yes"===a.default.cookie("nq-show-piano-viewer")?((0,a.default)("#piano-no-cookie").hide(),(0,a.default)("#piano-cookie").show()):((0,a.default)("#piano-no-cookie").show(),(0,a.default)("#piano-cookie").hide()),this.list(),(0,a.default)("#piano-helper-modal").modal()},showLaunch:function(){this.listLaunch(),(0,a.default)("#launch-helper-modal").modal()},list:function(){this.getParams(),Object.entries(this.piano.customVariables).forEach((function(t){var e=(0,i.default)(t,2),n=e[0],r=e[1];(0,a.default)(".piano-custom-variables-available").append("<li>".concat(n,": ").concat(r,"</li>"))})),this.piano.tags.split(",").forEach((function(t){(0,a.default)(".piano-tags-available").append("<li>".concat(t,"</li>"))}))},showPianoDivs:function(){(0,a.default)('*[id^="piano"]').each((function(t,e){var n=(0,a.default)(e);"piano-helper-modal"!==n.attr("id")&&"piano-helper-init"!==n.attr("id")&&"piano-meter-display"!==n.attr("id")&&("piano-message"===n.attr("id")?n.html("#".concat(n.attr("id")," or #piano-expandable-open or #piano-expandable-closed (NB: Only one can run on any page or they will conflict.  The 'open' and 'closed' in the targets refer to the initial state of the expandable banner, and must be targeted with a template that can handle being expanded)")):n.html("#".concat(n.attr("id"))),n.css({border:"5px solid black",backgroundColor:"#ffffff",textAlign:"center",display:"block",zIndex:9999999999}))})),(0,a.default)('*[id^="subscription-"]').each((function(t,e){var n=(0,a.default)(e);"subscription-replace-entire-article"!==n.attr("id")&&"subscription-content"!==n.attr("id")&&(n.html("#".concat(n.attr("id"))),n.css({border:"5px solid black",backgroundColor:"#ffffff",textAlign:"center",display:"block",zIndex:9999999999,marginBottom:"10px"}))})),(0,a.default)("#subscription-replace-entire-article").css({border:"5px solid black",backgroundColor:"#ffffff",display:"block",zIndex:9999999999,marginBottom:"10px"}).html('<div style="text-align: center"><b>#subscription-replace-entire-article</b> (replaces <b>ALL</b> content below)</div>'.concat((0,a.default)("#subscription-replace-entire-article").html())),(0,a.default)("#subscription-content").css({backgroundColor:"lavender",display:"block",marginBottom:"10px",zIndex:9999999999}).html('<div style="text-align: center"><b>#subscription-content</b> (replaces all shaded content )</div>'.concat((0,a.default)("#subscription-content").html())),(0,a.default)("#piano-helper-modal").modal("hide")},getParams:function(){var t=window.tp||{customVariables:{},customParams:{},tags:""};this.piano=t},getLaunchParams:function(){return window.data_layer},jumpLaunch:function(t){var e=(0,a.default)(t.currentTarget).val();c.default.scrollTo("launch-block-".concat(e,"-list"),75)},listLaunch:function(){var t=this,e=window.data_layer;this.listItems(e,"data_layer."),Object.entries(this.dataLayer).forEach((function(e){var n=(0,i.default)(e,2),r=n[0],o=n[1],c=r.split("-"),s=(0,i.default)(c,2),l=s[0],f=s[1];0===(0,a.default)("#launch-block-".concat(l)).length&&(t.createBlock(l),(0,a.default)("#launch-jump").append('<option value="'.concat(l,'" ').concat(u.default.ucFirst(l)," items</option>")));var p=f.split(".");p.shift();var d=u.default.ucFirst(p.shift()),h=p.join(" ").replace(/_/g," ");h=(h=(h=u.default.titleCase(h)).replace("Id","ID")).replace("Cmp","CMP"),(0,a.default)("#launch-block-".concat(l,"-list")).append('\n            <li class="border mb-3">\n                <b class="pl-1">'.concat(h,':</b>\n                <div class="container">\n                    <div class="row">\n                        <div class="col-2 text-right">Current value:</div>\n                        <div class="col-10"><code>').concat(o,'</code></div>\n                        <div class="col-2 text-right">JavaScript:</div>\n                        <div class="col-10"><code>').concat(f,'</code><span class="pl-2"><i class="far fa-copy text-black-50" style="cursor:pointer;"></i></span></div>\n                        <div class="col-2 text-right">Launch code:</div>\n                        <div class="col-10"><code>_satellite.getVar("').concat(d,": ").concat(h,'");</code><span class="pl-2"><i class="far fa-copy text-black-50" style="cursor:pointer;"></i></span></div>\n                    </div>\n                </div>\n            </li>'))})),(0,a.default)(".fa-copy").on("click",(function(t){var e=t.target.parentNode.parentNode,n=(0,a.default)(e).find("code")[0].textContent;(0,a.default)('<input style="position:fixed;top:0;z-index:999999" id="copy">').appendTo("#launch-helper-modal"),(0,a.default)("#copy").val(n).focus().select(),document.execCommand("copy"),(0,a.default)("#copy").remove(),(0,a.default)('<div style="position:fixed;top:50%;left:50%;" class="bg-light"></div>'),t.target.classList.remove("text-black-50"),t.target.classList.remove("far"),t.target.classList.add("text-success"),t.target.classList.add("fa"),setTimeout((function(){t.target.classList.remove("text-success"),t.target.classList.remove("fa"),t.target.classList.add("text-black-50"),t.target.classList.add("far")}),5e3)}))},createBlock:function(t){var e=(0,a.default)('<div class="card"></div>').attr("id","launch-block-".concat(t)),n=(0,a.default)('<div class="card-header"></div>'),r=(0,a.default)("<h4></h4>").html("".concat(u.default.ucFirst(t)," items")),o=(0,a.default)('<span class="float-right collapsed collapse-icon-container"></span>').attr("data-toggle","collapse").attr("data-target","#launch-block-".concat(t,"-list-body")).html('<i class="fas fa-plus-circle"></i>').attr("id","launch-block-".concat(t,"-cross")).attr("role","button"),i=(0,a.default)('<div class="card-body collapse"></div>').attr("id","launch-block-".concat(t,"-list-body")),c=(0,a.default)("<ul></ul>").attr("id","launch-block-".concat(t,"-list")).attr("style","margin-top: 20px");i.append(c),r.append(o),n.append(r),e.append(n),e.append(i),(0,a.default)(".modal-launch-template").append(e)},listItems:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Object.entries(t).forEach((function(t){var a=(0,i.default)(t,2),c=a[0],u=a[1],s="";s=""===r?c:r;var l="";l=null===u||!1===u?"":u,"object"===(0,o.default)(l)?n.listItems(l,"".concat(e).concat(c,"."),s):n.dataLayer["".concat(r,"-").concat(e).concat(c)]=l}))},setHideNewsquestCookie:function(){var t=new Date;t.setMinutes(t.getMinutes()+60),a.default.cookie("nq-show-piano-viewer","yes",{expires:t,path:"/",domain:window.data_layer.site.cookie_domain}),document.location.reload()},unsetHideNewsquestCookie:function(){a.default.cookie("nq-show-piano-viewer","yes",{expires:-1,path:"/",domain:window.data_layer.site.cookie_domain}),document.location.reload()}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={init:function(){window.$(document).on("click","#bottom-expandable-wrapper .invisible-target",(function(){window.$("#bottom-expandable-wrapper").toggleClass("open")}))}};e.default=r},function(t,e,n){"use strict";var r=n(7);n(117),n(331),n(109),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(92));n(93);var i=r(n(94)),a={init:function(){var t=this;window.addEventListener("message",(function(e){var n=e.data;switch(n.src){case"send-email":t.handleEmail(n);break;case"expand-window":t.expandWindow();break;case"close-bottom-banner":case"close-fixed-banner":t.closeBottomBanner();break;case"login":t.login(n);break;case"register":t.register(n)}}))},closeBottomBanner:function(){$("#piano-message").hide(),$("#bottom-expandable-wrapper").hide()},handleEmail:function(t){return(0,i.default)(o.default.mark((function e(){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"email=".concat(t.email)},e.next=3,fetch("/ws/public/email/",n);case 3:document.cookie="newsletterSignUpBulletins=".concat(t.newsletterId.toString(),"; expires=; path=/;"),"undefined"!==window.data_layer.user.is_logged_in&&"yes"===window.data_layer.user.is_logged_in?window.location="/my/account/profile/#emails":window.location="/my/account/register/";case 5:case"end":return e.stop()}}),e)})))()},expandWindow:function(){window.$("#bottom-expandable-wrapper").toggleClass("open")},login:function(t){window.location="/my/account/log-in/?cmpid=".concat(t.cmpid)},register:function(t){window.location="/my/account/register/?cmpid=".concat(t.cmpid)}};e.default=a},function(t,e,n){"use strict";var r=n(7);n(24),n(99),n(56),n(101),n(179),n(117),n(21),n(109),n(122),n(69),n(113),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(79)),i=r(n(12)),a={isArticleState:!1,cookieDomain:null,moduleType:"",localInfoVirtualFolder:"",homesData:"",primaryDomain:"",path:"",googleNetworkCode:0,articleTimestamp:0,setModuleType:function(t){this.moduleType=t},setLocalInfoFolder:function(t){this.localInfoVirtualFolder=t},setHomesData:function(t,e,n,r){var o={hmsbmn:t,hmsl:r,hmspmn:e,hmspmx:n};this.homesData=o},setIsArticle:function(t){this.isArticleState=t},setCookieDomain:function(t){this.cookieDomain=t},setPrimaryDomain:function(t){this.primaryDomain=t},setPath:function(t){this.path=t},setArticleTimestamp:function(t){isNaN(parseInt(t,10))||(this.articleTimestamp=t)},setGoogleNetworkCode:function(t){this.googleNetworkCode=t},storeCurrentPageName:function(t){var e=new Date;e.setMinutes(e.getMinutes()+30),i.default.cookie("nq_prev_page",t,{expires:e,path:"/",domain:this.cookieDomain})},getReferrerHostName:function(){var t=document.referrer,e=document.createElement("a");return e.href=t,e.hostname},getAccount:function(){return 0===document.location.pathname.indexOf("/admin")?"newsquestgroupadmindev":"newsquestgroupprod"},isMobileScreen:function(){return window.screen.width<728},isArticle:function(){return this.isArticleState},itemFromObject:function(t,e){return"object"===(0,o.default)(e)&&void 0!==e[t]?decodeURIComponent(e[t]):""},getGoogleId:function(){var t="/".concat(this.googleNetworkCode,"/").concat(this.primaryDomain).concat(this.path);return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t},getPathFragment:function(t,e){var n=this.moduleType,r=this.localInfoVirtualFolder,o=document.location.pathname.toString();(n.indexOf("Block")>-1||"NationalNewsModule"===n)&&(n="ArticleModule");var i=o.substring(1,o.length-1),a=i.split("/");if(!0===e){if("/"===i)return 0===t?"homepage":"";for(var c=[],u=0;u<4;u++)void 0===a[u]||a[u].match(/[0-9]+\./)||c.push(a[u]);return void 0===c[t]?"":c[t]}a[-1]="";for(var s=0;s<4;s++)void 0===a[s]&&(a[s]=""),""===a[s]||"ArticleModule"===n&&a[s].match(/[0-9]+\./)&&this.isArticleState?a[s]=a[s-1]:s>0&&(a[s]="".concat(a[s-1],"/").concat(a[s]));"/"===o&&(a[0]="homepage",a[1]="homepage",a[2]="homepage",a[3]="homepage");var l=o.match(/(\w+)\.(in|near|compare)\.([,a-zA-Z0-9 _-]+)[/]?$/),f=o.match(/(\w+)\.detail\.(.*)$/);return null!==f&&f.length>1&&(l=f),null!==l&&l.length>1&&(a[0]="li",a[1]="li/".concat(r),a[2]="li/".concat(r,"/").concat(l[1]),a[3]="li/".concat(r,"/").concat(l[1])),a[t].toLowerCase()},getOmniturePath:function(){return 1===(0,i.default)("#gallery-base-url").length?(0,i.default)("#gallery-base-url").val():window.location.pathname},getTrackingFromCookie:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.getCookie(t);return n||e},getConsentString:function(){var t=[];return this.getCookie("consentUUID")?t.push("yes"):t.push("no"),"true"===this.getCookie("_sp_enable_dfp_personalized_ads")?t.push("yes"):"false"===this.getCookie("_sp_enable_dfp_personalized_ads")?t.push("no"):t.push("none"),t.join(",")},getDayOfWeek:function(){var t=new Date,e=[];return e[0]="Sunday",e[1]="Monday",e[2]="Tuesday",e[3]="Wednesday",e[4]="Thursday",e[5]="Friday",e[6]="Saturday",e[t.getDay()]},getAutoPlay:function(t){return"yes"===t&&"/"!==window.location.pathname?"yes":"no"},getArticleAge:function(){var t=this.articleTimestamp;if(0===t)return"";var e=parseInt(t,10),n=(new Date).getTime()/1e3;return Math.round((n-e)/60)},getSource:function(t){if(""===t)return"martini";var e=parseInt(t,10);return 6===e?"knowledge":8===e?"press association":17===e?"uefa":18===e?"jpi":"martini"},getCookie:function(t){var e=i.default.cookie(t);return e||""},getDevice:function(){var t=new MobileDetect(window.navigator.userAgent);return null!==t.phone()?"phone":null!==t.tablet()?"tablet":"desktop"},getMobileDevice:function(){return null!==new MobileDetect(window.navigator.userAgent).phone()?"yes":"no"},getTabletDevice:function(){return null!==new MobileDetect(window.navigator.userAgent).tablet()?"yes":"no"},getSourcepointAdbockStatus:function(){return void 0===i.default.cookie("nqab")?"unknown":"true"===i.default.cookie("nqab")?"yes":"no"},getSubscriptionGateway:function(t,e){return t?"sagepay":e?"piano":""},getSubscriptionLevel:function(t,e){return t?"subscribed":e?"registered":"annonymous"},getPianoTags:function(t,e,n,r,o,a,c,u,s,l,f,p,d,h,v,g,m,y){var w=this.moduleType,b=[];return b.push(w),b.push(t),""!==e&&b.push("master_".concat(e)),n&&b.push("content_is_breaking"),r&&b.push("content_is_editorial_opinion"),o&&b.push("free_subscriber"),a&&b.push("content_has_video"),c&&(b.push("content_is_article"),""!==u&&b.push("content_level_".concat(u)),s&&b.push("content_level_openaccess_override"),l>0&&b.push("content_has_gallery")),f&&"yes"!==i.default.cookie("nq-show-piano-viewer")&&b.push("user_is_newsquest"),p&&b.push("user_is_logged_in"),d&&b.push("user_has_newsletter"),h&&b.push("content_is_live_article"),""!==v&&b.push(v),m&&b.push("headline_has_covid"),y&&b.push("article_has_covid"),y&&m&&b.push("content_is_covid"),b.push("user_".concat(this.getDevice())),g.length>0&&g.forEach((function(t){b.push(t)})),b},loadScript:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=document.createElement("script"),o=document.getElementsByTagName("body")[0];r.type="text/javascript",r.async=e,r.src=t,"string"==typeof n&&(r.id=n),o.parentNode.insertBefore(r,o)},getCmpDate:function(){var t=new Date,e=t.getDate().toString();1===e.length&&(e="0".concat(e));var n=(t.getMonth()+1).toString();return 1===n.length&&(n="0".concat(n)),e+n+t.getFullYear().toString()}};e.default=a},function(t,e,n){"use strict";n(37),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={init:function(){var t=this;$(document).on("click","#secondary-nav-show-more",(function(){t.showNavLinks()})),$(document).on("click",".hide-mega-menu",(function(){t.closeMegaMenu()})),$(document).ready((function(){t.subNavTruncate()})),$(window).resize((function(){t.subNavTruncate()}))},showNavLinks:function(){var t=$("#secondary-nav");t.toggleClass("expanded"),t.find(".link-item.hidden").toggleClass("show")},subNavTruncate:function(){var t=$("#secondary-nav").find(".link-item"),e=0;t.each((function(t,n){(e+=$(n).width())>$("#secondary-nav").width()-120-$("#secondary-nav .prefix").width()?$(n).addClass("hidden"):$(n).removeClass("hidden")})),$(".link-item.hidden").length>0?$("#secondary-nav .show-more").addClass("show"):$("#secondary-nav .show-more").removeClass("show")},closeMegaMenu:function(){$("#redesign-mega-menu, #takeover").toggle()}};e.default=r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(526),o=n.n(r),i=n(527),a=n.n(i),c=n(528),u=n.n(c),s=n(529),l=n.n(s),f=n(530),p=n.n(f),d=n(531),h=n.n(d),v=n(532),g=n.n(v);n(597);g.a.init(),window.advertisingTimer=o.a,window.jwVideo=a.a,window.data_layer_helper=h.a,u.a.init(),p.a.init(),l.a.init()},function(t,e,n){var r=n(8),o=n(590).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,e,n){var r=n(6),o=n(80),i=n(17),a=n(60).f,c=function(t){return function(e){for(var n,c=i(e),u=o(c),s=u.length,l=0,f=[];s>l;)n=u[l++],r&&!a.call(c,n)||f.push(t?[n,c[n]]:c[n]);return f}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(592),o=n(593),i=n(594);t.exports=function(t,e){return r(t)||o(t,e)||i()}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={scrollTo:function(t,e){var n=document.getElementById(t).getBoundingClientRect().top-e;window.scrollTo({top:n,behavior:"smooth"})}};e.default=r},function(t,e,n){"use strict";n(99),n(101),n(179),n(21),n(64),n(69),n(113),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={ucFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},titleCase:function(t){var e=this,n=t.split(" "),r=[];return n.forEach((function(t){r.push(e.ucFirst(t))})),r.join(" ")},nl2br:function(t,e){if(null==t)return"";var n=e||void 0===e?"<br />":"<br>";return"".concat(t).replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1".concat(n,"$2"))}}},function(t,e,n){"use strict";var r=n(7);n(24),n(21),n(69);var o=r(n(79));$(document).ready((function(){var t=window.promoUnits||{},e={},n=$(window).width,r="desktop";n<768?r="mobile":n<992&&(r="tablet");$.each(t,(function(t,n){0!==n[r]&&$.each(n.position.split(","),(function(t,r){"object"!==(0,o.default)(e[r])&&(e[r]=[]);for(var i=1;i<=10*n.boost;)e[r].push(n),i+=1}))})),$.each(e,(function(t){var n,r=(n=e[t].length,Math.floor(Math.random()*n)+1);r-=1;var o=e[t][r];$("#".concat(t)).html('<a href="'.concat(o.destination,'" target="').concat(o.target,'">\n                   <img src="/resources/images/').concat(o.image_id,'/" class="img-fluid promo-unit" alt=""></img>'))}))}))}]);