TP_JO2024/home/dist/legacy/legacy.nomodule.min.js

4 lines
124 KiB
JavaScript
Raw Permalink Normal View History

2024-03-27 17:19:37 +01:00
/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
!function(){"use strict";!function(e,t){function r(e,t){var r=arguments.length>2?arguments[2]:[];if(!1===o(e))throw new TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,r)}function n(e,t){return e[t]}function o(e){return"function"==typeof e}function i(e){if(null===e||e===t)throw TypeError();return Object(e)}function a(e,r){var n=function(e,t){return i(e)[t]}(e,r);if(null===n||n===t)return t;if(!1===o(n))throw new TypeError("Method not callable: "+r);return n}function c(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":"Symbol"in e&&(t instanceof e.Symbol||t.constructor===e.Symbol)?"symbol":"object"}}function l(e,t){return c(e)===c(t)&&("number"===c(e)?!(!isNaN(e)||!isNaN(t))||1/e==1/0&&1/t==-1/0||1/e==-1/0&&1/t==1/0||e===t:function(e,t){return e===t}(e,t))}function u(e){if("symbol"===c(e))throw new TypeError("Cannot convert a Symbol value to a number");var t=Number(e);return isNaN(t)?0:1/t==1/0||1/t==-1/0||t===1/0||t===-1/0?t:(t<0?-1:1)*Math.floor(Math.abs(t))}function f(i){var l=arguments.length>1?arguments[1]:t;if("object"===c(i)){if(arguments.length<2)var u="default";else l===String?u="string":l===Number&&(u="number");var f="function"==typeof e.Symbol&&"symbol"==typeof e.Symbol.toPrimitive?a(i,e.Symbol.toPrimitive):t;if(f!==t){var p=r(f,i,[u]);if("object"!==c(p))return p;throw new TypeError("Cannot convert exotic object to primitive.")}return"default"===u&&(u="number"),function(e,t){if("string"===t)var i=["toString","valueOf"];else i=["valueOf","toString"];for(var a=0;a<i.length;++a){var l=n(e,i[a]);if(o(l)){var u=r(l,e);if("object"!==c(u))return u}}throw new TypeError("Cannot convert to primitive.")}(i,u)}return i}function p(e){switch(c(e)){case"symbol":throw new TypeError("Cannot convert a Symbol value to a string");case"object":return p(f(e,String));default:return String(e)}}var s,b,y,v;s=Array.prototype,b="includes",y=function(e){var t=i(this),r=function(e){var t=u(e);return t<=0?0:Math.min(t,Math.pow(2,53)-1)}(n(t,"length"));if(0===r)return!1;var o=u(arguments[1]);if(o>=0)var a=o;else(a=r+o)<0&&(a=0);for(;a<r;){if(l(e,n(t,p(a))))return!0;a+=1}return!1},v={value:y,writable:!0,enumerable:!1,configurable:!0},Object.defineProperty(s,b,v),function(){function e(e,r){if(!e)throw new Error("Not enough arguments");var n;if("createEvent"in document){n=document.createEvent("Event");var o=!(!r||r.bubbles===t)&&r.bubbles,i=!(!r||r.cancelable===t)&&r.cancelable;return n.initEvent(e,o,i),n}return(n=document.createEventObject()).type=e,n.bubbles=!(!r||r.bubbles===t)&&r.bubbles,n.cancelable=!(!r||r.cancelable===t)&&r.cancelable,n}var r={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if("undefined"!=typeof document&&"undefined"!=typeof window){var n=window.Event&&window.Event.prototype||null;e.NONE=0,e.CAPTURING_PHASE=1,e.AT_TARGET=2,e.BUBBLING_PHASE=3,window.Event=Window.prototype.Event=e,n&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:n}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var e=this,t=arguments[0],n=arguments[1];if(e===window&&t in r)throw new Error("In IE8 the event: "+t+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");e._events||(e._events={}),e._events[t]||(e._events[t]=function(t){var r,n=e._events[t.type].list,o=n.slice(),i=-1,a=o.length;for(t.preventDefault=function(){!1!==t.cancelable&&(t.returnValue=!1)},t.stopPropagation=function(){t.cancelBubble=!0},t.stopImmediatePropagation=function(){t.cancelBubble=!0,t.cancelImmediate=!0},t.currentTarget=e,t.relatedTarget=t.fromElement||null,t.target=t.target||t.srcElement||e,t.timeStamp=(new Date).getTime(),t.c
//# sourceMappingURL=legacy.nomodule.min.js.map