@quintype/arrow 3.13.1-subsequentload.0 → 3.13.1-subsequentloadcount.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AlternateCollectionFilter/styles.arrow.css +1 -0
- package/AstrologyCollection/styles.arrow.css +1 -0
- package/AuthorsList/styles.arrow.css +1 -0
- package/FourColFiveStories/styles.arrow.css +1 -0
- package/FourColPortraitStories/styles.arrow.css +1 -0
- package/FourColSixteenStories/styles.arrow.css +1 -0
- package/FourTabbedBigStorySlider/styles.arrow.css +1 -0
- package/ListComponent/styles.arrow.css +1 -0
- package/ListicleStoryTemplate/styles.arrow.css +1 -0
- package/Listicles/styles.arrow.css +1 -0
- package/LiveBlogStoryTemplate/styles.arrow.css +1 -0
- package/MagazineEditions/styles.arrow.css +1 -0
- package/MagazineHeaderCard/styles.arrow.css +1 -0
- package/MagazineWidget/styles.arrow.css +1 -0
- package/OpinionCollection/styles.arrow.css +1 -0
- package/PhotoStoryTemplate/styles.arrow.css +1 -0
- package/README.md +194 -0
- package/SixColSixStories/styles.arrow.css +1 -0
- package/TextStoryTemplate/styles.arrow.css +1 -0
- package/ThreeColFlexStories/styles.arrow.css +1 -0
- package/ThreeColTwelveStories/styles.arrow.css +1 -0
- package/TwoColFourStoryHighlight/styles.arrow.css +1 -0
- package/TwoColSixStories/styles.arrow.css +1 -0
- package/TwoColTenStoriesSidebar/styles.arrow.css +1 -0
- package/app.scss +276 -0
- package/cjs/index.js +9 -0
- package/esm/index.js +9 -0
- package/package.json +1 -1
- package/AlsoRead/index.js +0 -1
- package/AsideCollection/index.js +0 -1
- package/Attachment/index.js +0 -1
- package/Author/index.js +0 -1
- package/AuthorIntroductionCard/index.js +0 -1
- package/AuthorWithTime/index.js +0 -1
- package/BigFact/index.js +0 -1
- package/BlockQuote/index.js +0 -1
- package/Blurb/index.js +0 -1
- package/CollectionFilter/index.js +0 -1
- package/CollectionName/index.js +0 -1
- package/ElevenStories/index.js +0 -1
- package/FourColGrid/index.js +0 -1
- package/FourColTwelveStories/index.js +0 -1
- package/FourStorySlider/index.js +0 -1
- package/FourStorySliderPortrait/index.js +0 -1
- package/FullScreenSlider/index.js +0 -1
- package/HalfScreenSlider/index.js +0 -1
- package/Headline/index.js +0 -1
- package/HeroImage/index.js +0 -1
- package/Image/index.js +0 -1
- package/ImageGallery/index.js +0 -1
- package/ImageSlideshow/index.js +0 -1
- package/KeyEvents/index.js +0 -1
- package/LoadmoreButton/index.js +0 -1
- package/OneColStoryList/index.js +0 -1
- package/PageIntroductionCard/index.js +0 -1
- package/QuestionAnswer/index.js +0 -1
- package/Quote/index.js +0 -1
- package/Reference/index.js +0 -1
- package/ScrollSnap/index.js +0 -1
- package/SectionTag/index.js +0 -1
- package/SocialShareTemplate/index.js +0 -1
- package/StoryCard/index.js +0 -1
- package/StoryCollection/index.js +0 -1
- package/StoryElement/index.js +0 -1
- package/StoryElementCard/index.js +0 -1
- package/StorycardContent/index.js +0 -1
- package/Subheadline/index.js +0 -1
- package/Summary/index.js +0 -1
- package/TagIntroductionCard/index.js +0 -1
- package/Text/index.js +0 -1
- package/ThreeColFourteenStories/index.js +0 -1
- package/ThreeColGrid/index.js +0 -1
- package/ThreeColSevenStory/index.js +0 -1
- package/ThreeColSixStories/index.js +0 -1
- package/TimeStamp/index.js +0 -1
- package/TwoColFourStories/index.js +0 -1
- package/TwoColSevenStories/index.js +0 -1
- package/TwoColThreeStories/index.js +0 -1
- package/Video/index.js +0 -1
- package/VideoStoryTemplate/index.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Link as e,ResponsiveHeroImage as t,LinkBase as r,ResponsiveImage as o,collectionToStories as n}from"@quintype/components";import{connect as a,useSelector as i,useDispatch as l}from"react-redux";import c,{PropTypes as s,number as u,string as d,func as m,array as h,bool as f}from"prop-types";import p,{createContext as g,useContext as v,useState as _,useRef as b,useEffect as y}from"react";import w from"lodash.get";import E from"react-timeago";import{utcToZonedTime as x,format as T}from"date-fns-tz";function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var z=Array.isArray,C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function I(e){var t={exports:{}};return e(t,t.exports),t.exports}var j="object"==typeof C&&C&&C.Object===Object&&C,S="object"==typeof self&&self&&self.Object===Object&&self,O=j||S||Function("return this")(),A=O.Symbol,M=Object.prototype,R=M.hasOwnProperty,H=M.toString,P=A?A.toStringTag:void 0;var B=function(e){var t=R.call(e,P),r=e[P];try{e[P]=void 0;var o=!0}catch(e){}var n=H.call(e);return o&&(t?e[P]=r:delete e[P]),n},F=Object.prototype.toString;var D=function(e){return F.call(e)},W=A?A.toStringTag:void 0;var q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?B(e):D(e)};var U=function(e){return null!=e&&"object"==typeof e};var V=function(e){return"symbol"==typeof e||U(e)&&"[object Symbol]"==q(e)},G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/;var J=function(e,t){if(z(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!V(e))||(Z.test(e)||!G.test(e)||null!=t&&e in Object(t))};var Y=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var $,K=function(e){if(!Y(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},X=O["__core-js_shared__"],Q=($=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"";var ee=function(e){return!!Q&&Q in e},te=Function.prototype.toString;var re=function(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""},oe=/^\[object .+?Constructor\]$/,ne=Function.prototype,ae=Object.prototype,ie=ne.toString,le=ae.hasOwnProperty,ce=RegExp("^"+ie.call(le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(e){return!(!Y(e)||ee(e))&&(K(e)?ce:oe).test(re(e))};var ue=function(e,t){return null==e?void 0:e[t]};var de=function(e,t){var r=ue(e,t);return se(r)?r:void 0},me=de(Object,"create");var he=function(){this.__data__=me?me(null):{},this.size=0};var fe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe=Object.prototype.hasOwnProperty;var ge=function(e){var t=this.__data__;if(me){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return pe.call(t,e)?t[e]:void 0},ve=Object.prototype.hasOwnProperty;var _e=function(e){var t=this.__data__;return me?void 0!==t[e]:ve.call(t,e)};var be=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=me&&void 0===t?"__lodash_hash_undefined__":t,this};function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ye.prototype.clear=he,ye.prototype.delete=fe,ye.prototype.get=ge,ye.prototype.has=_e,ye.prototype.set=be;var we=ye;var Ee=function(){this.__data__=[],this.size=0};var xe=function(e,t){return e===t||e!=e&&t!=t};var Te=function(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1},ke=Array.prototype.splice;var Le=function(e){var t=this.__data__,r=Te(t,e);return!(r<0)&&(r==t.length-1?t.pop():ke.call(t,r,1),--this.size,!0)};var ze=function(e){var t=this.__data__,r=Te(t,e);return r<0?void 0:t[r][1]};var Ce=function(e){return Te(this.__data__,e)>-1};var Ne=function(e,t){var r=this.__data__,o=Te(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ie.prototype.clear=Ee,Ie.prototype.delete=Le,Ie.prototype.get=ze,Ie.prototype.has=Ce,Ie.prototype.set=Ne;var je=Ie,Se=de(O,"Map");var Oe=function(){this.size=0,this.__data__={hash:new we,map:new(Se||je),string:new we}};var Ae=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Me=function(e,t){var r=e.__data__;return Ae(t)?r["string"==typeof t?"string":"hash"]:r.map};var Re=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t};var He=function(e){return Me(this,e).get(e)};var Pe=function(e){return Me(this,e).has(e)};var Be=function(e,t){var r=Me(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Fe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Fe.prototype.clear=Oe,Fe.prototype.delete=Re,Fe.prototype.get=He,Fe.prototype.has=Pe,Fe.prototype.set=Be;var De=Fe;function We(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=e.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(We.Cache||De),r}We.Cache=De;var qe=We;var Ue=function(e){var t=qe(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ge=/\\(\\)?/g,Ze=Ue((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ve,(function(e,r,o,n){t.push(o?n.replace(Ge,"$1"):r||e)})),t})),Je=Ze;var Ye=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},$e=A?A.prototype:void 0,Ke=$e?$e.toString:void 0;var Xe=function e(t){if("string"==typeof t)return t;if(z(t))return Ye(t,e)+"";if(V(t))return Ke?Ke.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Qe=function(e){return null==e?"":Xe(e)};var et=function(e,t){return z(e)?e:J(e,t)?[e]:Je(Qe(e))};var tt=function(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var rt=function(e,t){for(var r=0,o=(t=et(t,e)).length;null!=e&&r<o;)e=e[tt(t[r++])];return r&&r==o?e:void 0};var ot=function(e,t,r){var o=null==e?void 0:rt(e,t);return void 0===o?r:o},nt=I((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),at=N(I((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=nt)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var a=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var a=e.split("."),i=a[0],l=a[1],c=r||o.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+i,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(a.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var a=r||o.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?n("Could not resolve the styleName '"+e+"'.",a):t[i[0]][e]}(e,t,c)}var r=t[a[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),it=g(),lt=function(){return v(it)};function ct(e){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(e)}I((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new C(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return I()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=k(i,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:m,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",m="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var b={};c(b,a,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(N([])));w&&w!==r&&o.call(w,a)&&(b=w);var E=_.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(n,a,i,l){var c=u(e[n],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}}function k(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var a=n.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function N(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:I}}function I(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(T.prototype),c(T.prototype,i,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new T(s(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(z),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),z(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;z(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:N(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var st=function(e,t,r,o){var n=-1,a=null==e?0:e.length;for(o&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r};var ut=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var ht=function(e){return(e=Qe(e))&&e.replace(dt,ut).replace(mt,"")},ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var pt=function(e){return e.match(ft)||[]},gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var vt=function(e){return gt.test(e)},_t="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bt="["+_t+"]",yt="\\d+",wt="[\\u2700-\\u27bf]",Et="[a-z\\xdf-\\xf6\\xf8-\\xff]",xt="[^\\ud800-\\udfff"+_t+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Tt="(?:\\ud83c[\\udde6-\\uddff]){2}",kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",zt="(?:"+Et+"|"+xt+")",Ct="(?:"+Lt+"|"+xt+")",Nt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",It="[\\ufe0e\\ufe0f]?"+Nt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Tt,kt].join("|")+")[\\ufe0e\\ufe0f]?"+Nt+")*"),jt="(?:"+[wt,Tt,kt].join("|")+")"+It,St=RegExp([Lt+"?"+Et+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[bt,Lt,"$"].join("|")+")",Ct+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[bt,Lt+zt,"$"].join("|")+")",Lt+"?"+zt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,jt].join("|"),"g");var Ot=function(e){return e.match(St)||[]};var At=function(e,t,r){return e=Qe(e),void 0===(t=r?void 0:t)?vt(e)?Ot(e):pt(e):e.match(t)||[]},Mt=RegExp("['’]","g");var Rt=function(e){return function(t){return st(At(ht(t).replace(Mt,"")),e,"")}},Ht=Rt((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Pt=Ht,Bt=Rt((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ft=Bt;var Dt=function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,d=n.disableMeridiem,m=void 0!==d&&d,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],b=_;u&&(b=Pt(_));var y,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,T=n.direction,k=void 0===T?"ltr":T,L=qt(o,f),z=L;if(x&&(b=ot(x,[Ft(_)])||_),E){var C=L.includes("am"),N=E.am,I=void 0===N?"am":N,j=E.pm,S=void 0===j?"pm":j;z=(C?L.replace("am",I):L.replace("pm",S))||L}return"rtl"===k?(y=i?"".concat(z):"","".concat(v," ").concat(b,", ").concat(w," ").concat(y," ")):m?"".concat(b," ").concat(v,", ").concat(w):c?"".concat(z,", ").concat(v," ").concat(b," ").concat(w):(y=i?", ".concat(z):"","".concat(v," ").concat(b,", ").concat(w).concat(y))};function Wt(e,t,r,o,n){var a,i=ot(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?Dt(e,t,r,o,n):e>1?(a=ot(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=ot(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function qt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}var Ut=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},Vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},Gt={mobile:767,tablet:1024},Zt=function(e){var t=ot(Gt,e);return!!t&&ot(global,"document.documentElement.clientWidth")<=t},Jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:Vt(e),o=Ut(r)<155?"light":"dark";return o};var Yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,a=void 0!==n&&n;if(a)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var i="section"===e.template;if(i){var l=ot(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function $t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?ot(n,["reference-url"],""):""}c.shape({"sketches-host":c.string,"cdn-name":c.string,"cdn-image":c.string}),c.shape({headline:c.string,"last-published-at":c.number,subheadline:c.string});var Kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===ot(e,["story-template"])?ot(e,["metadata","reference-url"],""):e.url||t},Xt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,a=t.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Yt(e,t):"/"},Qt={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},er=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,a=t.config,i=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,s=void 0===c?"":c,u=t.navigate,d=void 0===u||u,m=lt()||{},h=w(m,["showRowTitle"],!0),f=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(i)?" collection-".concat(i):"",g=d&&n&&Yt(n,a)||"",v=s||n.name||"",_=Jt(m.theme),b="h"+l,y=Vt(o),E=f.includes("collection-borderBottomFull")?"4px solid ".concat(y):"",x=Zt("mobile");return p.createElement(p.Fragment,null,h&&v&&p.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(f)?"arr--collection-name arrow-component ".concat(f)+" ":"")+at("collection ".concat(_," ").concat(f),Qt)},f.includes("collection-borderLeft")&&p.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:y,fontSize:function(){if(x)switch(l){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),g&&!g.includes(void 0)?p.createElement(e,{href:g,"aria-label":"collection-name"},p.createElement(b,null,v)):p.createElement(b,null,v),f.includes("collection-borderBottom")&&!f.includes("collection-borderBottomFull")?p.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(y)}}):""))};er.propTypes={collectionNameBorderColor:s.string,collection:s.object,config:s.object,collectionNameTemplate:s.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:s.string,customCollectionName:s.string,navigate:s.bool},er.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var tr=a((function(e){return{config:w(e,["qt","config"],{})}}))(er),rr=function(e){var t=e.width,r=void 0===t?40:t,o=e.height,n=void 0===o?30:o,a=e.iconColor,i=void 0===a?"#99B0CB":a;return p.createElement("svg",{width:r,height:n,viewBox:"0 0 102 76",version:"1.1"},p.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},p.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},p.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:i,fillRule:"nonzero"}),p.createElement("rect",{id:"Rectangle-19",stroke:i,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};rr.propTypes={width:c.object,height:c.object,iconColor:c.object};var or=function(){return p.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},p.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},p.createElement(rr,null)))},nr=function(t){var r=t.slug;return r?p.createElement(e,{href:r,"aria-label":"image-fallback"},or()):or()};nr.propTypes={slug:c.string};var ar=function(){return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),p.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},ir=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?p.createElement(e,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},p.createElement(ar,null)):null};ir.propTypes={hyperLink:c.string};var lr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},cr=function(r){var o=r.story,n=r.FullBleed,a=r.aspectRatio,l=r.defaultWidth,c=r.widths,s=r.isHorizontal,u=r.isHorizontalMobile,d=r.isHorizontalWithImageLast,m=r.defaultFallback,h=r.isStoryPageImage,f=r.config,g=(lt()||{}).fallbackImageUrl,v=void 0===g?"":g,_=f.StoryTemplateIcon,b=void 0===_?function(){return null}:_,y=i((function(e){return w(e,["qt","config","showPlaceholder"])}))?"placeholder":"",E=n?"":"with-padding",x="hero-image";s?x="right-padding":d&&(x="left-padding");var T=u?"right-padding-mob":"",k=function(e){var t=L(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},z=L(a,2),C=z[0],N=z[1],I=void 0===N?C:N,j=Zt("mobile"),S=j?C:I,O=k(j?C:I),A=w(o,["hero-image-s3-key"])||w(o,["alternative","home","default","hero-image","hero-image-s3-key"]),M=w(o,["hero-image-hyperlink"],""),R=function(){return A?p.createElement(p.Fragment,null,p.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+at("image ".concat(y),lr)},p.createElement(b,{storyTemplate:o["story-template"]}),p.createElement(t,{story:o,aspectRatio:S,defaultWidth:l,widths:c,imgParams:{auto:["format","compress"],fit:"max"}})),h&&M&&p.createElement(ir,{hyperLink:M})):v&&!h?p.createElement("figure",{style:{paddingTop:O+"%"},className:"arr--responsive-hero-image "+at("image ".concat(y),lr)},p.createElement("img",{className:"qt-image","data-src":"".concat(v),alt:"image-fallback"})):p.createElement(p.Fragment,null,m?p.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:O+"%"},className:"arr--fallback-hero-image "+at("image ".concat(y),lr)},p.createElement(b,{storyTemplate:o["story-template"]}),p.createElement(nr,null)):null)};return o&&(h?p.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+at("".concat(x," ").concat(E," ").concat(T),lr)},R()):p.createElement(e,{"data-test-id":"arr--hero-image",href:Kt(o,"/".concat(o.slug)),externalLink:$t(o),"aria-label":"fallback-hero-image",className:"arr--hero-image "+at("".concat(x," ").concat(E," ").concat(T),lr)},R()))};function sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}cr.propTypes={story:c.object.isRequired,FullBleed:c.bool,defaultWidth:c.number,widths:c.array,aspectRatio:c.array,isHorizontal:c.bool,isHorizontalMobile:c.bool,defaultFallback:c.bool,isHorizontalWithImageLast:c.bool,isStoryPageImage:c.bool,config:c.object},cr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var ur={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(r),!0).forEach((function(t){sr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hr=function(e){var t=e.config,o=void 0===t?{}:t,n=e.collection,a=e.template,i=void 0===a?"SubsequentLoadCount":a,l=e.onClick,c=e.navigate,s=e.qtConfig,u=o.showButton,d=void 0===u||u,m=o.buttonText,h=void 0===m?"Read More":m,f=o.theme,g=void 0===f?"":f,v=o.customUrlPath,_=void 0===v?"":v;if(!d)return null;var b=Jt(g),y=_?"/".concat(_):Xt(n,mr(mr({},s),o));return"SubsequentLoadCount"===i?p.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+at("button ".concat(b," default"),ur)},h):p.createElement(r,{href:y,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},p.createElement("div",{className:"arr--button "+at("button ".concat(b," default"),ur)},h))};hr.propTypes={collection:c.object,template:c.string,config:c.object,onClick:c.func,navigate:c.func,qtConfig:c.object};var fr=function(e){var t=e.color,r=void 0===t?"#333":t;return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},p.createElement("g",{fill:"none",fillRule:"nonzero"},p.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),p.createElement("path",{stroke:r,d:"M9 16L1 8l8-8"})))};fr.propTypes={color:c.string};var pr=function(e){var t=e.color,r=void 0===t?"#333":t;return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},p.createElement("g",{fill:"none",fillRule:"nonzero"},p.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),p.createElement("path",{stroke:r,d:"M1 0l8 8-8 8"})))};pr.propTypes={color:c.string};var gr={"./slider-arrow.m.css":{arrow:"slider-arrow-m_arrow__1eBUU","left-arrow-dark":"slider-arrow-m_left-arrow-dark__3mTJS","right-arrow-dark":"slider-arrow-m_right-arrow-dark__3hWZe","left-arrow-light":"slider-arrow-m_left-arrow-light__2ipUK","right-arrow-light":"slider-arrow-m_right-arrow-light__3omMU","left-arrow-ltr":"slider-arrow-m_left-arrow-ltr__1ngNF","right-arrow-ltr":"slider-arrow-m_right-arrow-ltr__2svWX","left-arrow-rtl":"slider-arrow-m_left-arrow-rtl__2ynyn","right-arrow-rtl":"slider-arrow-m_right-arrow-rtl__1GjPz"}},vr=function(e){var t=e.selectedIndex,r=e.previousClick,o=e.nextClick,n=e.noOfItems,a=e.perView,i=e.languageDirection;if(n<1)return null;var l=lt()||{},c=Jt(l.theme),s="rtl"===i?"left-arrow-rtl":"left-arrow-ltr",u="rtl"===i?"right-arrow-rtl":"right-arrow-ltr";return p.createElement(p.Fragment,null,0!==t?p.createElement("button",{onClick:r,className:("left-arrow ".concat(s)?"left-arrow ".concat(s)+" ":"")+at("arrow left-arrow-".concat(c," ").concat(s),gr)},p.createElement(fr,{color:"dark"===c?"#fff":"#333"})):null,t<n-1&&!(t>=n-a)?p.createElement("button",{onClick:o,className:("right-arrow ".concat(u)?"right-arrow ".concat(u)+" ":"")+at("arrow right-arrow-".concat(c," ").concat(u),gr)},p.createElement(pr,{color:"dark"===c?"#fff":"#333"})):null)};vr.propTypes={noOfItems:u,perView:u,slideIndicator:d,previousClick:m,nextClick:m,selectedIndex:u,languageDirection:d};var _r={"./slider-indicator.m.css":{indicators:"slider-indicator-m_indicators__3MNXc",indicator:"slider-indicator-m_indicator__gTv3x","indicator-button":"slider-indicator-m_indicator-button__1e82r","indicator-dots":"slider-indicator-m_indicator-dots__2TR3H","indicator-dots-dark":"slider-indicator-m_indicator-dots-dark__sGrev","indicator-dots-light":"slider-indicator-m_indicator-dots-light__2nPn-","indicator-dashes":"slider-indicator-m_indicator-dashes__DyNCE","indicator-dashes-dark":"slider-indicator-m_indicator-dashes-dark__VrqJI","indicator-dashes-light":"slider-indicator-m_indicator-dashes-light__34ESx"}},br=function(e){var t=e.indicatorItems,r=e.indicatorClick,o=e.selectedIndex,n=e.indicatorType;if(t.length<1)return null;var a=lt()||{},i=Jt(a.theme);return p.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},t.map((function(e,t){return p.createElement("li",{key:"slider-".concat(t),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(e){return r(e,t)}},p.createElement("button",{"aria-pressed":o===t?"true":"false",className:("indicator-button indicator-".concat(n)?"indicator-button indicator-".concat(n)+" ":"")+at("indicator-button indicator-".concat(n," indicator-").concat(n,"-").concat(i),_r)}))})))};br.propTypes={indicatorItems:h,perView:u,indicatorType:d,indicatorClick:m,selectedIndex:u};var yr=function(e,t,r,o){var n,a,i,l,c=Math.floor(r.current.scrollWidth*(e/o)),s="rtl"===t?-1*c:c;n=r.current,a=s,i=!0,n.scrollTo((sr(l={},i?"left":"top",a),sr(l,"behavior","smooth"),l))},wr=function(e,t){var r;return function(){clearTimeout(r),r=setTimeout((function(){r=null,e()}),t)}},Er=function(e){var t=e.children,r=e.isArrow,o=e.interval,n=e.isInfinite,a=e.pauseOnHover,l=e.perView,c=e.slideIndicator,s=L(_(0),2),u=s[0],d=s[1],m=L(_(!1),2),h=m[0],f=m[1],g=i((function(e){return ot(e,["qt","config","language","direction"],"ltr")})),v=t?t.length:0,w=b(null),E=t.length-(l-1),x=t.slice(0,E);y((function(){return w.current&&(w.current.addEventListener("scroll",wr((function(){var e=Math.round(w.current.scrollLeft/w.current.scrollWidth*v);d(Math.abs(e))}),150)),0!==u&&yr(u)),function(){w.current.removeEventListener("scroll",wr)}}),[]),y((function(){if(n&&!h){var e=setInterval((function(){T()}),o);return function(){clearInterval(e)}}}),[n,h]);var T=function(){d((function(e){var t=e===v-l?0:e+1;return yr(t,g,w,v),t}))},k=function(){a&&f(!h)};return p.createElement("div",{className:"scroll-snap-container"},p.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:k,onMouseLeave:k},p.createElement("div",{ref:w,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},t),r&&p.createElement(vr,{noOfItems:v,perView:l,previousClick:function(e){e.preventDefault(),e.stopPropagation();var t=u-1;d(t),yr(t,g,w,v)},nextClick:function(e){if(e.preventDefault(),e.stopPropagation(),u<v){var t=u+1;d(t),yr(t,g,w,v)}},selectedIndex:u,languageDirection:g})),t.length>l&&"none"!==c&&p.createElement(br,{indicatorItems:x,indicatorClick:function(e,t){e.preventDefault(),e.stopPropagation(),d(t),yr(t,g,w,v)},selectedIndex:u,indicatorType:c}))};Er.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},Er.propTypes={children:h.isRequired,isArrow:f,isInfinite:f,interval:u,pauseOnHover:f,perView:u,slideIndicator:d};var xr=function(e){var t=e.height,r=e.width,o=e.color,n=void 0===o?"#D8D8D8":o,a=e.positionTop;return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:a}},p.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},p.createElement("g",null,p.createElement("g",{transform:"translate(8 8)"},p.createElement("path",{d:"M0 0H24V24H0z"}),p.createElement("g",{fill:n,fillRule:"nonzero",transform:"translate(0 2)"},p.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};xr.propTypes={height:c.string,width:c.string,color:c.string,positionTop:c.string};var Tr=function(e){var t=e.height,r=e.width,o=e.color,n=void 0===o?"#D5D5D5":o,a=e.positionTop;return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:a}},p.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},p.createElement("g",null,p.createElement("g",{transform:"translate(8 8)"},p.createElement("path",{d:"M0 0H24V24H0z"}),p.createElement("path",{fill:n,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};Tr.propTypes={height:c.string,width:c.string,color:c.string,positionTop:c.string};var kr=function(e){var t=e.height,r=e.width,o=e.color,n=void 0===o?"#D5D5D5":o,a=e.positionTop;return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",style:{position:"relative",top:a}},p.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},p.createElement("g",null,p.createElement("g",{transform:"translate(8 8)"},p.createElement("path",{d:"M0 0H24V24H0z"}),p.createElement("g",{fill:n,fillRule:"nonzero",transform:"translate(3)"},p.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};kr.propTypes={height:c.string,width:c.string,color:c.string,positionTop:c.string};var Lr=function(e){var t=e.width,r=e.height,o=e.color,n=void 0===o?"#D5D5D5":o,a=e.positionTop,i=void 0===a?"":a;return p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},p.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},p.createElement("g",null,p.createElement("path",{fill:n,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};Lr.propTypes={height:c.string,width:c.string,color:c.string,positionTop:c.string};var zr=function(e){var t=e.width,r=e.height,o=e.color,n=e.iconType,a=e.positionTop;switch(n){case"crown":return p.createElement(xr,{width:t,height:r,color:o,positionTop:a});case"lock":return p.createElement(kr,{width:t,height:r,color:o,positionTop:a});case"key":return p.createElement(Tr,{width:t,height:r,color:o,positionTop:a});default:return p.createElement(Lr,{width:t,height:r,color:o,positionTop:a})}};function Cr(){return p.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},p.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}zr.propTypes={width:c.string,height:c.string,color:c.string,iconType:c.string,positionTop:c.string};var Nr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},Ir=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,a=void 0===n?{}:n,i=t.isLink,l=lt()||{},c=a.iconColor,s=void 0===c?"#F7B500":c,u=a.iconStyle,d=void 0===u?"star":u,m=a.enablePremiumStoryIcon,h=void 0!==m&&m,f=a.showLiveIcon,g=void 0!==f&&f,v=w(r,["alternative","home","default","headline"]),_=h&&"subscription"===w(r,["access"]),b=v||r.headline,y="h"+o,E=Jt(l.theme),x=_?"wrapper":"",T="24px",k=g&&"live-blog"===r["story-template"]&&!w(r,["metadata","is-closed"],!1);return p.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+at(x,Nr)},_&&p.createElement(zr,{width:T,height:T,color:s,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),i?p.createElement(e,{href:Kt(r,"/".concat(r.slug)),externalLink:$t(r),"aria-label":"headline"},p.createElement(y,{className:at("headline ".concat(E),Nr)},k&&p.createElement(Cr,null),b)):p.createElement(y,{className:at("headline ".concat(E),Nr)},k&&p.createElement(Cr,null),b))};Ir.propTypes={story:c.object.isRequired,headerLevel:c.string,premiumStoryIconConfig:c.shape({iconColor:c.string,iconType:c.string,enablePremiumStoryIcon:c.bool}),isLink:c.bool},Ir.defaultProps={headerLevel:"6",isLink:!0};var jr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},Sr=function(e){var t=e.story,r=e.truncateChars,o=void 0===r?200:r,n=e.lineClamp,a=e.clazzName,i=void 0===a?"":a,l=e.forceShowAtom,c=e.showFullContent,s=lt()||{};if(!(l||w(s,["showSubheadline"],!0)))return null;var u=Jt(s.theme);return p.createElement("div",{style:{WebkitLineClamp:n},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(i)?"p-alt arr--sub-headline arrow-component ".concat(i)+" ":"")+at("subheadline ".concat(u),jr)},c||"number"==typeof n?t.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(t.subheadline,o,!0))};Sr.propTypes={story:c.object.isRequired,lineClamp:c.number,truncateChars:c.number,clazzName:c.string,forceShowAtom:c.bool,showFullContent:c.bool},Sr.defaultProps={forceShowAtom:!1,showFullContent:!1};var Or={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},Ar=function(e){var t=e.story,r=e.isBottom,o=e.config,n=void 0===o?{}:o,a=lt()||{},i=w(n,["showTime"],w(a,["showTime"],!0)),l=t["last-published-at"]||t["first-published-at"],c=r?"bottom-fix":"",s=Jt(a.theme);return p.createElement(p.Fragment,null,i&&p.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+at("time ".concat(s," ").concat(c),Or)},p.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(n&&"story"===o){var a=n&&x(e,n),i=a&&T(a,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:n}),l=Dt("","","",e,r);return p.createElement("time",{dateTime:i},l)}return p.createElement(E,{date:e,formatter:function(e,o,n,a){return t(e,o,n,a,r)}})}(l,Wt,n))))};Ar.propTypes={story:c.object,isBottom:c.bool,config:c.object};var Mr={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},Rr=function(t){var r=t.story,n=t.hideAuthorImage,a=t.isBottom,i=t.prefix,l=void 0===i?"":i,c=t.config,s=void 0===c?{}:c,u=lt()||{},d=w(u,["showAuthor"],!0),m=w(r,["authors","0"],""),h=m["avatar-url"],f=m["avatar-s3-key"],g=m.name,v=m.slug,_=a?"bottom-fix":"",b=Jt(u.theme),y=w(s,["mountAt"],""),E=function(e){return l?p.createElement("div",{className:"arr-author-prefix "+at("prefix ".concat(b),Mr)},l):!n&&function(e){return h||f?p.createElement("div",{"data-test-id":"author-image",className:at("author-image ".concat(e,"-image"),Mr)},p.createElement("figure",null,f?p.createElement(o,{slug:f,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:g}):p.createElement("img",{src:h}))):null}(e)};return p.createElement(p.Fragment,null,d&&p.createElement(e,{href:"".concat(y,"/author/")+v,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+at("author ".concat(_),Mr)},E("ltr"),p.createElement("div",{"data-test-id":"author-name",className:"author-name "+at("author-name ".concat(b),Mr)},g||r["author-name"]),!l&&E("rtl")))};var Hr=a((function(e){return{config:w(e,["qt","config"],{})}}))(Rr);Rr.propTypes={story:c.object.isRequired,hideAuthorImage:c.bool,isBottom:c.bool,prefix:c.string,config:c.object},Rr.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var Pr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},Br=function(e){var t=e.width,r=void 0===t?"3px":t,o=e.height,n=void 0===o?"3px":o,a=e.color,i=void 0===a?"light":a;return p.createElement("div",{className:at(i,Pr)},p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 3 3"},p.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};Br.propTypes={color:c.string,width:c.string,height:c.string};var Fr={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},Dr=function(e){var t=e.width,r=void 0===t?"1":t,o=e.height,n=void 0===o?"10":o,a=e.color,i=void 0===a?"light":a;return p.createElement("div",{className:at(i,Fr)},p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n},p.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};Dr.propTypes={color:c.string,width:c.string,height:c.string};var Wr={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},qr=function(e){var t=e.story,r=e.opts,o=void 0===r?{}:r,n=e.isLightTheme,a=void 0!==n&&n,i=lt()||{},l=w(i,["showReadTime"])||w(o,["showReadTime"],!0),c=w(t,["read-time"],0),s=a?"light":Jt(i.theme);if(!l||!c)return null;var u=w(o,["localizedTimeToRead"])||"min read";return p.createElement(p.Fragment,null,p.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+at("read-time-wrapper ".concat(s),Wr)},p.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},p.createElement(Br,{color:s})),p.createElement("span",null,c," ",u)))};qr.propTypes={story:c.shape({"read-time":c.number}),opts:c.shape({showReadTime:c.bool}),isLightTheme:c.bool};var Ur={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},Vr=function(e){var t=e.story,r=e.separator,o=e.isBottom,n=e.hideAuthorImage,a=e.prefix,i=e.config,l=void 0===i?{}:i,c=e.isLightTheme,s=lt()||{},u=w(l,["showAuthor"],w(s,["showAuthor"],!0)),d=w(l,["showTime"],w(s,["showTime"],!0)),m=w(s,["showReadTime"],!0),h=o?"bottom-fix":"",f="dot"===r?"dot":"dash",g=c?"light":Jt(s.theme),v=function(){return d?p.createElement(p.Fragment,null,u&&p.createElement("span",{className:"arr-separator "+at("".concat(f),Ur)},"divider"===r?p.createElement(Dr,{color:g}):p.createElement(Br,{color:g})),p.createElement(Ar,{story:t,config:l}),m&&p.createElement(qr,{story:t,opts:l,isLightTheme:c})):null};return p.createElement("div",{className:"arr--author-time "+at("author-time-wrapper ".concat(h),Ur)},u?p.createElement(p.Fragment,null,p.createElement(Hr,{story:t,isBottom:!0,hideAuthorImage:n,prefix:a}),v()):v())};Vr.propTypes={story:c.object,separator:c.oneOf(["dot","divider"]),hideAuthorImage:c.bool,isBottom:c.bool,prefix:c.string,config:c.object,isLightTheme:c.bool},Vr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Gr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Zr=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,a=t.borderColor,i=void 0===a?"":a,l=t.isLightTheme,c=lt()||{},s=w(c,["showSection"],!0),u=w(c,["sectionTagTemplate"]),d=w(r,["sections",0],""),m=["borderBottomSml","borderLeft","solid"],h=d?d["section-url"]:"/",f="solid"===n||"solid"===u?i:c.theme,g=l?"light":Jt(f),v=Vt(i),_=m.includes(n)?"section section-".concat(n):"section";return u&&(_=m.includes(u)?"section section-".concat(u):"section"),s?p.createElement(e,{href:h,className:"arrow-component arr--section-name","aria-label":"section-name"},p.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:_.includes("section-solid")?v:""},className:"section-tag arrow-component "+at("".concat(g," ").concat(_),Gr)},_.includes("section-borderLeft")&&p.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:v}}),d["display-name"]||d.name,p.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":v)}}))):null};Zr.propTypes={story:c.object.isRequired,template:c.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:c.string,solidBorderColor:c.string,isLightTheme:c.bool},Zr.defaultProps={template:"",isLightTheme:!1};var Jr={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},Yr=function(e){var t,r=e.story,o=e.children,n=e.isHorizontal,a=e.aspectRatio,i=e.border,l=e.useImageAsBackground,c=e.bgImgContentOverlap,s=e.theme,u=e.borderColor,d=e.isHorizontalMobile,m=e.centerAlign,h=e.headerLevel,f=e.hideAuthorImage,g=e.prefix,v=e.config,_=e.isHorizontalWithImageLast;if(!r||(null==(t=r)||"object"===ct(t)&&0===Object.entries(t).length&&t.constructor===Object||"string"==typeof t&&0===t.trim().length))return p.createElement("div",null);var b=["default","full","bottom","boxShadow"].includes(i)?"border-".concat(i):"",y="default-card";n?y="horizontal-card":_&&(y="horizontal-image-last");var w=l?"backgroung-img":"",E=c?"content-overlap":"",x=Jt(s),T=d?"horizontal-mob":"",k=p.createElement($r,{story:r,aspectRatio:a,border:i,isHorizontalMobile:d,isHorizontal:n,centerAlign:m,headerLevel:h,borderColor:u,hideAuthorImage:f,prefix:g,config:v,isHorizontalWithImageLast:_});return p.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:s,color:x},className:"arr--story-card "+at("card ".concat(y," ").concat(b," ").concat(x," ").concat(w," ").concat(E," ").concat(T),Jr)},o||k)},$r=function(e){var t=e.story;e.border;var r=e.isHorizontal,o=e.aspectRatio,n=e.headerLevel,a=e.isHorizontalMobile,i=void 0!==a&&a,l=e.centerAlign,c=void 0!==l&&l,s=e.borderColor,u=e.hideAuthorImage,d=e.prefix,m=e.isHorizontalWithImageLast,h=e.config,f=c?"center-align":"",g=Vt(s),v=h.localizationConfig,_=void 0===v?{}:v;return p.createElement(p.Fragment,null,r?p.createElement(cr,{config:h,story:t,isHorizontal:!0,isHorizontalMobile:i,aspectRatio:o}):m?p.createElement(cr,{config:h,story:t,isHorizontalWithImageLast:!0,isHorizontalMobile:i,aspectRatio:o}):p.createElement(cr,{story:t,config:h,isHorizontalMobile:i,aspectRatio:o}),p.createElement("div",{className:"arr--story-content "+at("content ".concat(f),Jr)},p.createElement(Zr,{story:t,borderColor:g}),p.createElement(Ir,{story:t,headerLevel:n,premiumStoryIconConfig:h}),p.createElement(Vr,{config:_,story:t,isBottom:!0,prefix:d,hideAuthorImage:u}),p.createElement(Sr,{story:t})))};$r.propTypes={story:c.object.isRequired,border:c.oneOfType([c.string]),isBottom:c.bool,isHorizontal:c.bool,aspectRatio:c.oneOfType([c.array]),isHorizontalMobile:c.bool,centerAlign:c.bool,headerLevel:c.string,borderColor:c.string,hideAuthorImage:c.bool,prefix:c.string,config:c.object,isHorizontalWithImageLast:c.bool},Yr.propTypes={story:c.object.isRequired,children:c.node,isHorizontal:c.bool,border:c.oneOfType([c.string]),useImageAsBackground:c.bool,bgImgContentOverlap:c.bool,aspectRatio:c.oneOfType([c.array]),theme:c.string,isHorizontalMobile:c.bool,centerAlign:c.bool,headerLevel:c.string,borderColor:c.string,hideAuthorImage:c.bool,prefix:c.string,config:c.object,isHorizontalWithImageLast:c.bool},Yr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Kr={"./storycardContent.m.css":{wrapper:"storycardContent-m_wrapper__TEmfA","horizontal-content-wrapper":"storycardContent-m_horizontal-content-wrapper__NgpuC","border-full":"storycardContent-m_border-full__2km37"}},Xr=function(e){var t=e.story,r=e.children,o=e.theme,n=e.border,a=e.isHorizontalMobile,i=e.headerLevel,l=e.borderColor,c=e.config,s=Jt(o),u=Vt(l),d=["full"].includes(n)?"border-".concat(n):"",m=a?"horizontal-content-wrapper":"";return p.createElement("div",{"data-test-id":"story-card-content",style:{backgroundColor:o,color:s},className:"arr--content-wrapper "+at("wrapper ".concat(d," ").concat(m),Kr)},r||p.createElement(Qr,{story:t,headerLevel:i,isHorizontalMobile:a,borderColor:u,config:c}))},Qr=function(e){var t=e.story,r=e.headerLevel,o=e.borderColor,n=e.config,a=void 0===n?{}:n,i=Vt(o),l=a.localizationConfig,c=void 0===l?{}:l;return p.createElement("div",null,p.createElement(Zr,{story:t,borderColor:i}),p.createElement(Ir,{story:t,headerLevel:r,premiumStoryIconConfig:a}),p.createElement(Vr,{config:c,story:t}))};Qr.propTypes={story:c.object.isRequired,border:c.string,theme:c.string,isHorizontalMobile:c.bool,headerLevel:c.string,borderColor:c.string,config:c.object},Xr.propTypes={story:c.object.isRequired,children:c.node,theme:c.string,border:c.string,isHorizontalMobile:c.bool,headerLevel:c.string,borderColor:c.string,config:c.object};var eo=function(e){var t=e.collection,r=e.config,o=void 0===r?{}:r,a=o.collectionNameBorderColor,c=void 0===a?"":a,s=o.borderColor,u=void 0===s?"":s,d=o.theme,m=void 0===d?"":d,h=o.border,f=void 0===h?"":h,g=o.collectionNameTemplate,v=void 0===g?"":g,b=o.numberOfStoriesToShow,w=void 0===b?0:b,E=o.footerButton,x=void 0===E?"":E,T=o.footerSlotConfig,k=void 0===T?{}:T,z=o.navigationArrows,C=void 0===z||z,N=o.slideIndicator,I=void 0===N?"none":N,j=o.isInfinite,S=void 0!==j&&j,O=k.footerSlot,A=n(t);if(A.length<1)return null;var M=l(),R=i((function(e){return ot(e,["qt","config"],{})})),H=Xt(t,R),P=L(_(1),2),B=P[0],F=P[1],D=function(e){return e?parseInt(e):1}(w),W=Jt(m),q=O?O():null;y((function(){var e=ot(global,["innerWidth"],480);F(e>992?4:e>764?3:1)}),[]);var U=function(){return A.slice(0,D).map((function(e,t){return p.createElement(Yr,{story:e,theme:m,border:f,key:t,config:o,useImageAsBackground:!0},p.createElement(cr,{config:o,story:e,aspectRatio:[[9,16]]}),p.createElement(Xr,{story:e,border:f,borderColor:u,config:o}))}))};return p.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"four-story-slider-portrait",style:{backgroundColor:m,color:W}},p.createElement("div",{className:"four-story-slider-portrait-m_four-story-slider-portrait-wrapper__2A_A2"},p.createElement(tr,{collection:t,collectionNameTemplate:v,collectionNameBorderColor:c}),A.length>4?p.createElement(Er,{isArrow:C,perView:B,slideIndicator:I,isInfinite:S},U()):p.createElement("div",{className:"four-story-slider-portrait-m_story-grid__znrKy"},U()),p.createElement(hr,{collection:t,template:x,config:o,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(M,H)},qtConfig:R}),p.createElement("div",{className:"four-story-slider-portrait-m_footer-slot-wrapper__18ujz"},q)))};eo.propTypes={collection:c.object.isRequired,config:c.shape({borderColor:c.string,theme:c.string,border:c.string,footerButton:c.string,collectionNameTemplate:c.string,autoplaySpeed:c.number,numberOfStoriesToShow:c.number,collectionNameBorderColor:c.string})},eo.defaultProps={theme:"#ffffff",slotConfig:"story",border:""};var to,ro=(to=eo,function(e){return p.createElement(it.Provider,{value:e.config},p.createElement(to,e))});export{ro as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{createContext as t,useContext as r,useState as o,useRef as n,useEffect as a}from"react";import{connect as i,useSelector as l,useDispatch as c}from"react-redux";import s,{PropTypes as u,number as d,string as m,func as h,array as f,bool as p}from"prop-types";import{Link as g,LinkBase as v,ResponsiveImage as _,ResponsiveHeroImage as b,collectionToStories as y}from"@quintype/components";import w from"lodash.get";import E from"react-timeago";import{utcToZonedTime as x,format as T}from"date-fns-tz";var k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){var t={exports:{}};return e(t,t.exports),t.exports}var N=z((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),I=L(z((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=N)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var a=Object.keys(t),i=r||{},l=i.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=i.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var a=e.split("."),i=a[0],l=a[1],c=r||o.default.handleMissingStyleName;return l?t[i]?t[i][l]?t[i][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+i,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===a.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(a.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var a=r||o.default.handleMissingStyleName,i=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(i.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+i.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+i[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===i.length?n("Could not resolve the styleName '"+e+"'.",a):t[i[0]][e]}(e,t,c)}var r=t[a[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),C=Array.isArray,j="object"==typeof k&&k&&k.Object===Object&&k,O="object"==typeof self&&self&&self.Object===Object&&self,S=j||O||Function("return this")(),A=S.Symbol,M=Object.prototype,R=M.hasOwnProperty,P=M.toString,B=A?A.toStringTag:void 0;var H=function(e){var t=R.call(e,B),r=e[B];try{e[B]=void 0;var o=!0}catch(e){}var n=P.call(e);return o&&(t?e[B]=r:delete e[B]),n},F=Object.prototype.toString;var D=function(e){return F.call(e)},W=A?A.toStringTag:void 0;var q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?H(e):D(e)};var U=function(e){return null!=e&&"object"==typeof e};var G=function(e){return"symbol"==typeof e||U(e)&&"[object Symbol]"==q(e)},V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/;var J=function(e,t){if(C(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!G(e))||(Z.test(e)||!V.test(e)||null!=t&&e in Object(t))};var Y=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var $,Q=function(e){if(!Y(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=S["__core-js_shared__"],X=($=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"";var ee=function(e){return!!X&&X in e},te=Function.prototype.toString;var re=function(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""},oe=/^\[object .+?Constructor\]$/,ne=Function.prototype,ae=Object.prototype,ie=ne.toString,le=ae.hasOwnProperty,ce=RegExp("^"+ie.call(le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(e){return!(!Y(e)||ee(e))&&(Q(e)?ce:oe).test(re(e))};var ue=function(e,t){return null==e?void 0:e[t]};var de=function(e,t){var r=ue(e,t);return se(r)?r:void 0},me=de(Object,"create");var he=function(){this.__data__=me?me(null):{},this.size=0};var fe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe=Object.prototype.hasOwnProperty;var ge=function(e){var t=this.__data__;if(me){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return pe.call(t,e)?t[e]:void 0},ve=Object.prototype.hasOwnProperty;var _e=function(e){var t=this.__data__;return me?void 0!==t[e]:ve.call(t,e)};var be=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=me&&void 0===t?"__lodash_hash_undefined__":t,this};function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}ye.prototype.clear=he,ye.prototype.delete=fe,ye.prototype.get=ge,ye.prototype.has=_e,ye.prototype.set=be;var we=ye;var Ee=function(){this.__data__=[],this.size=0};var xe=function(e,t){return e===t||e!=e&&t!=t};var Te=function(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1},ke=Array.prototype.splice;var Le=function(e){var t=this.__data__,r=Te(t,e);return!(r<0)&&(r==t.length-1?t.pop():ke.call(t,r,1),--this.size,!0)};var ze=function(e){var t=this.__data__,r=Te(t,e);return r<0?void 0:t[r][1]};var Ne=function(e){return Te(this.__data__,e)>-1};var Ie=function(e,t){var r=this.__data__,o=Te(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ce.prototype.clear=Ee,Ce.prototype.delete=Le,Ce.prototype.get=ze,Ce.prototype.has=Ne,Ce.prototype.set=Ie;var je=Ce,Oe=de(S,"Map");var Se=function(){this.size=0,this.__data__={hash:new we,map:new(Oe||je),string:new we}};var Ae=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Me=function(e,t){var r=e.__data__;return Ae(t)?r["string"==typeof t?"string":"hash"]:r.map};var Re=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t};var Pe=function(e){return Me(this,e).get(e)};var Be=function(e){return Me(this,e).has(e)};var He=function(e,t){var r=Me(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function Fe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Fe.prototype.clear=Se,Fe.prototype.delete=Re,Fe.prototype.get=Pe,Fe.prototype.has=Be,Fe.prototype.set=He;var De=Fe;function We(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],a=r.cache;if(a.has(n))return a.get(n);var i=e.apply(this,o);return r.cache=a.set(n,i)||a,i};return r.cache=new(We.Cache||De),r}We.Cache=De;var qe=We;var Ue=function(e){var t=qe(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},Ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ve=/\\(\\)?/g,Ze=Ue((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ge,(function(e,r,o,n){t.push(o?n.replace(Ve,"$1"):r||e)})),t})),Je=Ze;var Ye=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},$e=A?A.prototype:void 0,Qe=$e?$e.toString:void 0;var Ke=function e(t){if("string"==typeof t)return t;if(C(t))return Ye(t,e)+"";if(G(t))return Qe?Qe.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Xe=function(e){return null==e?"":Ke(e)};var et=function(e,t){return C(e)?e:J(e,t)?[e]:Je(Xe(e))};var tt=function(e){if("string"==typeof e||G(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var rt=function(e,t){for(var r=0,o=(t=et(t,e)).length;null!=e&&r<o;)e=e[tt(t[r++])];return r&&r==o?e:void 0};var ot=function(e,t,r){var o=null==e?void 0:rt(e,t);return void 0===o?r:o},nt=t(),at=function(){return r(nt)};function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}z((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,a=Object.create(n.prototype),i=new N(o||[]);return a._invoke=function(e,t,r){var o=d;return function(n,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw a;return C()}for(r.method=n,r.arg=a;;){var i=r.delegate;if(i){var l=k(i,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:m,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",m="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var b={};c(b,a,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(I([])));w&&w!==r&&o.call(w,a)&&(b=w);var E=_.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(n,a,i,l){var c=u(e[n],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}}function k(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var a=n.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function I(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:C}}function C(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(T.prototype),c(T.prototype,i,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new T(s(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),c(E,l,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(z),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),z(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;z(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:I(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var lt=function(e,t,r,o){var n=-1,a=null==e?0:e.length;for(o&&a&&(r=e[++n]);++n<a;)r=t(r,e[n],n,e);return r};var ct=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var dt=function(e){return(e=Xe(e))&&e.replace(st,ct).replace(ut,"")},mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ht=function(e){return e.match(mt)||[]},ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var pt=function(e){return ft.test(e)},gt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="["+gt+"]",_t="\\d+",bt="[\\u2700-\\u27bf]",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+gt+_t+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kt="(?:"+yt+"|"+wt+")",Lt="(?:"+Tt+"|"+wt+")",zt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Nt="[\\ufe0e\\ufe0f]?"+zt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Et,xt].join("|")+")[\\ufe0e\\ufe0f]?"+zt+")*"),It="(?:"+[bt,Et,xt].join("|")+")"+Nt,Ct=RegExp([Tt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,Tt,"$"].join("|")+")",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,Tt+kt,"$"].join("|")+")",Tt+"?"+kt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Tt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,It].join("|"),"g");var jt=function(e){return e.match(Ct)||[]};var Ot=function(e,t,r){return e=Xe(e),void 0===(t=r?void 0:t)?pt(e)?jt(e):ht(e):e.match(t)||[]},St=RegExp("['’]","g");var At=function(e){return function(t){return lt(Ot(dt(t).replace(St,"")),e,"")}},Mt=At((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Rt=Mt,Pt=At((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Bt=Pt;var Ht=function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=n.showTime,i=void 0!==a&&a,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,d=n.disableMeridiem,m=void 0!==d&&d,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],b=_;u&&(b=Rt(_));var y,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,T=n.direction,k=void 0===T?"ltr":T,L=Dt(o,f),z=L;if(x&&(b=ot(x,[Bt(_)])||_),E){var N=L.includes("am"),I=E.am,C=void 0===I?"am":I,j=E.pm,O=void 0===j?"pm":j;z=(N?L.replace("am",C):L.replace("pm",O))||L}return"rtl"===k?(y=i?"".concat(z):"","".concat(v," ").concat(b,", ").concat(w," ").concat(y," ")):m?"".concat(b," ").concat(v,", ").concat(w):c?"".concat(z,", ").concat(v," ").concat(b," ").concat(w):(y=i?", ".concat(z):"","".concat(v," ").concat(b,", ").concat(w).concat(y))};function Ft(e,t,r,o,n){var a,i=ot(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?Ht(e,t,r,o,n):e>1?(a=ot(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(a," ").concat(i)):(a=ot(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(a," ").concat(i," "))}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),a=o>=12?"pm":"am",i=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+a;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):i}var Wt=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},Ut={mobile:767,tablet:1024},Gt=function(e){var t=ot(Ut,e);return!!t&&ot(global,"document.documentElement.clientWidth")<=t},Vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:qt(e),o=Wt(r)<155?"light":"dark";return o};var Zt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,a=void 0!==n&&n;if(a)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var i="section"===e.template;if(i){var l=ot(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?ot(n,["reference-url"],""):""}s.shape({"sketches-host":s.string,"cdn-name":s.string,"cdn-image":s.string}),s.shape({headline:s.string,"last-published-at":s.number,subheadline:s.string});var Yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===ot(e,["story-template"])?ot(e,["metadata","reference-url"],""):e.url||t},$t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,a=t.isArchivePage,i=void 0!==a&&a;return i?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Zt(e,t):"/"},Qt={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},Kt=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,a=t.config,i=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,s=void 0===c?"":c,u=t.navigate,d=void 0===u||u,m=at()||{},h=w(m,["showRowTitle"],!0),f=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(i)?" collection-".concat(i):"",p=d&&n&&Zt(n,a)||"",v=s||n.name||"",_=Vt(m.theme),b="h"+l,y=qt(o),E=f.includes("collection-borderBottomFull")?"4px solid ".concat(y):"",x=Gt("mobile");return e.createElement(e.Fragment,null,h&&v&&e.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(f)?"arr--collection-name arrow-component ".concat(f)+" ":"")+I("collection ".concat(_," ").concat(f),Qt)},f.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:y,fontSize:function(){if(x)switch(l){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),p&&!p.includes(void 0)?e.createElement(g,{href:p,"aria-label":"collection-name"},e.createElement(b,null,v)):e.createElement(b,null,v),f.includes("collection-borderBottom")&&!f.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(y)}}):""))};Kt.propTypes={collectionNameBorderColor:u.string,collection:u.object,config:u.object,collectionNameTemplate:u.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:u.string,customCollectionName:u.string,navigate:u.bool},Kt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Xt=i((function(e){return{config:w(e,["qt","config"],{})}}))(Kt);function er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tr={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(r),!0).forEach((function(t){er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var nr=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,a=t.template,i=void 0===a?"SubsequentLoadCount":a,l=t.onClick,c=t.navigate,s=t.qtConfig,u=o.showButton,d=void 0===u||u,m=o.buttonText,h=void 0===m?"Read More":m,f=o.theme,p=void 0===f?"":f,g=o.customUrlPath,_=void 0===g?"":g;if(!d)return null;var b=Vt(p),y=_?"/".concat(_):$t(n,or(or({},s),o));return"SubsequentLoadCount"===i?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+I("button ".concat(b," default"),tr)},h):e.createElement(v,{href:y,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+I("button ".concat(b," default"),tr)},h))};nr.propTypes={collection:s.object,template:s.string,config:s.object,onClick:s.func,navigate:s.func,qtConfig:s.object};var ar=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D8D8D8":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(0 2)"},e.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};ar.propTypes={height:s.string,width:s.string,color:s.string,positionTop:s.string};var ir=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("path",{fill:a,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};ir.propTypes={height:s.string,width:s.string,color:s.string,positionTop:s.string};var lr=function(t){var r=t.height,o=t.width,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:i}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:a,fillRule:"nonzero",transform:"translate(3)"},e.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};lr.propTypes={height:s.string,width:s.string,color:s.string,positionTop:s.string};var cr=function(t){var r=t.width,o=t.height,n=t.color,a=void 0===n?"#D5D5D5":n,i=t.positionTop,l=void 0===i?"":i;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("path",{fill:a,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};cr.propTypes={height:s.string,width:s.string,color:s.string,positionTop:s.string};var sr=function(t){var r=t.width,o=t.height,n=t.color,a=t.iconType,i=t.positionTop;switch(a){case"crown":return e.createElement(ar,{width:r,height:o,color:n,positionTop:i});case"lock":return e.createElement(lr,{width:r,height:o,color:n,positionTop:i});case"key":return e.createElement(ir,{width:r,height:o,color:n,positionTop:i});default:return e.createElement(cr,{width:r,height:o,color:n,positionTop:i})}};function ur(){return e.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},e.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}sr.propTypes={width:s.string,height:s.string,color:s.string,iconType:s.string,positionTop:s.string};var dr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},mr=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,a=void 0===n?{}:n,i=t.isLink,l=at()||{},c=a.iconColor,s=void 0===c?"#F7B500":c,u=a.iconStyle,d=void 0===u?"star":u,m=a.enablePremiumStoryIcon,h=void 0!==m&&m,f=a.showLiveIcon,p=void 0!==f&&f,v=w(r,["alternative","home","default","headline"]),_=h&&"subscription"===w(r,["access"]),b=v||r.headline,y="h"+o,E=Vt(l.theme),x=_?"wrapper":"",T="24px",k=p&&"live-blog"===r["story-template"]&&!w(r,["metadata","is-closed"],!1);return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+I(x,dr)},_&&e.createElement(sr,{width:T,height:T,color:s,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),i?e.createElement(g,{href:Yt(r,"/".concat(r.slug)),externalLink:Jt(r),"aria-label":"headline"},e.createElement(y,{className:I("headline ".concat(E),dr)},k&&e.createElement(ur,null),b)):e.createElement(y,{className:I("headline ".concat(E),dr)},k&&e.createElement(ur,null),b))};mr.propTypes={story:s.object.isRequired,headerLevel:s.string,premiumStoryIconConfig:s.shape({iconColor:s.string,iconType:s.string,enablePremiumStoryIcon:s.bool}),isLink:s.bool},mr.defaultProps={headerLevel:"6",isLink:!0};var hr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},fr=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,a=t.lineClamp,i=t.clazzName,l=void 0===i?"":i,c=t.forceShowAtom,s=t.showFullContent,u=at()||{};if(!(c||w(u,["showSubheadline"],!0)))return null;var d=Vt(u.theme);return e.createElement("div",{style:{WebkitLineClamp:a},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+I("subheadline ".concat(d),hr)},s||"number"==typeof a?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,n,!0))};fr.propTypes={story:s.object.isRequired,lineClamp:s.number,truncateChars:s.number,clazzName:s.string,forceShowAtom:s.bool,showFullContent:s.bool},fr.defaultProps={forceShowAtom:!1,showFullContent:!1};var pr={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},gr=function(t){var r=t.story,o=t.isBottom,n=t.config,a=void 0===n?{}:n,i=at()||{},l=w(a,["showTime"],w(i,["showTime"],!0)),c=r["last-published-at"]||r["first-published-at"],s=o?"bottom-fix":"",u=Vt(i.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+I("time ".concat(u," ").concat(s),pr)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(a&&"story"===n){var i=a&&x(t,a),l=i&&T(i,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:a}),c=Ht("","","",t,o);return e.createElement("time",{dateTime:l},c)}return e.createElement(E,{date:t,formatter:function(e,t,n,a){return r(e,t,n,a,o)}})}(c,Ft,a))))};gr.propTypes={story:s.object,isBottom:s.bool,config:s.object};var vr={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},_r=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,a=t.prefix,i=void 0===a?"":a,l=t.config,c=void 0===l?{}:l,s=at()||{},u=w(s,["showAuthor"],!0),d=w(r,["authors","0"],""),m=d["avatar-url"],h=d["avatar-s3-key"],f=d.name,p=d.slug,v=n?"bottom-fix":"",b=Vt(s.theme),y=w(c,["mountAt"],""),E=function(t){return i?e.createElement("div",{className:"arr-author-prefix "+I("prefix ".concat(b),vr)},i):!o&&function(t){return m||h?e.createElement("div",{"data-test-id":"author-image",className:I("author-image ".concat(t,"-image"),vr)},e.createElement("figure",null,h?e.createElement(_,{slug:h,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:f}):e.createElement("img",{src:m}))):null}(t)};return e.createElement(e.Fragment,null,u&&e.createElement(g,{href:"".concat(y,"/author/")+p,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+I("author ".concat(v),vr)},E("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+I("author-name ".concat(b),vr)},f||r["author-name"]),!i&&E("rtl")))};var br=i((function(e){return{config:w(e,["qt","config"],{})}}))(_r);_r.propTypes={story:s.object.isRequired,hideAuthorImage:s.bool,isBottom:s.bool,prefix:s.string,config:s.object},_r.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var yr={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},wr=function(t){var r=t.width,o=void 0===r?"3px":r,n=t.height,a=void 0===n?"3px":n,i=t.color,l=void 0===i?"light":i;return e.createElement("div",{className:I(l,yr)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a,viewBox:"0 0 3 3"},e.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};wr.propTypes={color:s.string,width:s.string,height:s.string};var Er={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},xr=function(t){var r=t.width,o=void 0===r?"1":r,n=t.height,a=void 0===n?"10":n,i=t.color,l=void 0===i?"light":i;return e.createElement("div",{className:I(l,Er)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:a},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};xr.propTypes={color:s.string,width:s.string,height:s.string};var Tr={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},kr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,a=t.isLightTheme,i=void 0!==a&&a,l=at()||{},c=w(l,["showReadTime"])||w(n,["showReadTime"],!0),s=w(r,["read-time"],0),u=i?"light":Vt(l.theme);if(!c||!s)return null;var d=w(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+I("read-time-wrapper ".concat(u),Tr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(wr,{color:u})),e.createElement("span",null,s," ",d)))};kr.propTypes={story:s.shape({"read-time":s.number}),opts:s.shape({showReadTime:s.bool}),isLightTheme:s.bool};var Lr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},zr=function(t){var r=t.story,o=t.separator,n=t.isBottom,a=t.hideAuthorImage,i=t.prefix,l=t.config,c=void 0===l?{}:l,s=t.isLightTheme,u=at()||{},d=w(c,["showAuthor"],w(u,["showAuthor"],!0)),m=w(c,["showTime"],w(u,["showTime"],!0)),h=w(u,["showReadTime"],!0),f=n?"bottom-fix":"",p="dot"===o?"dot":"dash",g=s?"light":Vt(u.theme),v=function(){return m?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+I("".concat(p),Lr)},"divider"===o?e.createElement(xr,{color:g}):e.createElement(wr,{color:g})),e.createElement(gr,{story:r,config:c}),h&&e.createElement(kr,{story:r,opts:c,isLightTheme:s})):null};return e.createElement("div",{className:"arr--author-time "+I("author-time-wrapper ".concat(f),Lr)},d?e.createElement(e.Fragment,null,e.createElement(br,{story:r,isBottom:!0,hideAuthorImage:a,prefix:i}),v()):v())};function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw n}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}zr.propTypes={story:s.object,separator:s.oneOf(["dot","divider"]),hideAuthorImage:s.bool,isBottom:s.bool,prefix:s.string,config:s.object,isLightTheme:s.bool},zr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Cr=function(t){var r=t.width,o=void 0===r?40:r,n=t.height,a=void 0===n?30:n,i=t.iconColor,l=void 0===i?"#99B0CB":i;return e.createElement("svg",{width:o,height:a,viewBox:"0 0 102 76",version:"1.1"},e.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},e.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},e.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),e.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};Cr.propTypes={width:s.object,height:s.object,iconColor:s.object};var jr=function(){return e.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},e.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},e.createElement(Cr,null)))},Or=function(t){var r=t.slug;return r?e.createElement(g,{href:r,"aria-label":"image-fallback"},jr()):jr()};Or.propTypes={slug:s.string};var Sr=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),e.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},Ar=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?e.createElement(g,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},e.createElement(Sr,null)):null};Ar.propTypes={hyperLink:s.string};var Mr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},Rr=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,a=t.defaultWidth,i=t.widths,c=t.isHorizontal,s=t.isHorizontalMobile,u=t.isHorizontalWithImageLast,d=t.defaultFallback,m=t.isStoryPageImage,h=t.config,f=(at()||{}).fallbackImageUrl,p=void 0===f?"":f,v=h.StoryTemplateIcon,_=void 0===v?function(){return null}:v,y=l((function(e){return w(e,["qt","config","showPlaceholder"])}))?"placeholder":"",E=o?"":"with-padding",x="hero-image";c?x="right-padding":u&&(x="left-padding");var T=s?"right-padding-mob":"",k=function(e){var t=Ir(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},L=Ir(n,2),z=L[0],N=L[1],C=void 0===N?z:N,j=Gt("mobile"),O=j?z:C,S=k(j?z:C),A=w(r,["hero-image-s3-key"])||w(r,["alternative","home","default","hero-image","hero-image-s3-key"]),M=w(r,["hero-image-hyperlink"],""),R=function(){return A?e.createElement(e.Fragment,null,e.createElement("figure",{style:{paddingTop:S+"%"},className:"arr--responsive-hero-image "+I("image ".concat(y),Mr)},e.createElement(_,{storyTemplate:r["story-template"]}),e.createElement(b,{story:r,aspectRatio:O,defaultWidth:a,widths:i,imgParams:{auto:["format","compress"],fit:"max"}})),m&&M&&e.createElement(Ar,{hyperLink:M})):p&&!m?e.createElement("figure",{style:{paddingTop:S+"%"},className:"arr--responsive-hero-image "+I("image ".concat(y),Mr)},e.createElement("img",{className:"qt-image","data-src":"".concat(p),alt:"image-fallback"})):e.createElement(e.Fragment,null,d?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:S+"%"},className:"arr--fallback-hero-image "+I("image ".concat(y),Mr)},e.createElement(_,{storyTemplate:r["story-template"]}),e.createElement(Or,null)):null)};return r&&(m?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+I("".concat(x," ").concat(E," ").concat(T),Mr)},R()):e.createElement(g,{"data-test-id":"arr--hero-image",href:Yt(r,"/".concat(r.slug)),externalLink:Jt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+I("".concat(x," ").concat(E," ").concat(T),Mr)},R()))};Rr.propTypes={story:s.object.isRequired,FullBleed:s.bool,defaultWidth:s.number,widths:s.array,aspectRatio:s.array,isHorizontal:s.bool,isHorizontalMobile:s.bool,defaultFallback:s.bool,isHorizontalWithImageLast:s.bool,isStoryPageImage:s.bool,config:s.object},Rr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var Pr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Br=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,a=t.borderColor,i=void 0===a?"":a,l=t.isLightTheme,c=at()||{},s=w(c,["showSection"],!0),u=w(c,["sectionTagTemplate"]),d=w(r,["sections",0],""),m=["borderBottomSml","borderLeft","solid"],h=d?d["section-url"]:"/",f="solid"===n||"solid"===u?i:c.theme,p=l?"light":Vt(f),v=qt(i),_=m.includes(n)?"section section-".concat(n):"section";return u&&(_=m.includes(u)?"section section-".concat(u):"section"),s?e.createElement(g,{href:h,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:_.includes("section-solid")?v:""},className:"section-tag arrow-component "+I("".concat(p," ").concat(_),Pr)},_.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:v}}),d["display-name"]||d.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":v)}}))):null};Br.propTypes={story:s.object.isRequired,template:s.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:s.string,solidBorderColor:s.string,isLightTheme:s.bool},Br.defaultProps={template:"",isLightTheme:!1};var Hr={"./storycard.m.css":{"author-timestamp-wrapper":"storycard-m_author-timestamp-wrapper__20yjp","default-card":"storycard-m_default-card__1-POn","horizontal-card":"storycard-m_horizontal-card___7afz","backgroung-img":"storycard-m_backgroung-img__1FMJT","content-overlap":"storycard-m_content-overlap__1yNHR","border-full":"storycard-m_border-full__1nhy7",light:"storycard-m_light__3EhXN",dark:"storycard-m_dark__2wCTq","border-bottom":"storycard-m_border-bottom__2_E-I","border-boxShadow":"storycard-m_border-boxShadow__2-k3Z","center-align":"storycard-m_center-align__1Sn8-","content-bottom":"storycard-m_content-bottom__1QHeC","content-full":"storycard-m_content-full__2zJmU","content-boxShadow":"storycard-m_content-boxShadow__2IAWZ","hero-image":"storycard-m_hero-image__1H3MB","right-padding":"storycard-m_right-padding__12-lQ","horizontal-mob":"storycard-m_horizontal-mob__17JG2",content:"storycard-m_content__1Q9vq","border-default":"storycard-m_border-default__PEZ1x",card:"storycard-m_card__KJwRa","horizontal-image-last":"storycard-m_horizontal-image-last__3o6LY"}},Fr=function(t){var r,o=t.story,n=t.children,a=t.isHorizontal,i=t.aspectRatio,l=t.border,c=t.useImageAsBackground,s=t.bgImgContentOverlap,u=t.theme,d=t.borderColor,m=t.isHorizontalMobile,h=t.centerAlign,f=t.headerLevel,p=t.hideAuthorImage,g=t.prefix,v=t.config,_=t.isHorizontalWithImageLast;if(!o||(null==(r=o)||"object"===it(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return e.createElement("div",null);var b=["default","full","bottom","boxShadow"].includes(l)?"border-".concat(l):"",y="default-card";a?y="horizontal-card":_&&(y="horizontal-image-last");var w=c?"backgroung-img":"",E=s?"content-overlap":"",x=Vt(u),T=m?"horizontal-mob":"",k=e.createElement(Dr,{story:o,aspectRatio:i,border:l,isHorizontalMobile:m,isHorizontal:a,centerAlign:h,headerLevel:f,borderColor:d,hideAuthorImage:p,prefix:g,config:v,isHorizontalWithImageLast:_});return e.createElement("div",{"data-test-id":"story-card",style:{backgroundColor:u,color:x},className:"arr--story-card "+I("card ".concat(y," ").concat(b," ").concat(x," ").concat(w," ").concat(E," ").concat(T),Hr)},n||k)},Dr=function(t){var r=t.story;t.border;var o=t.isHorizontal,n=t.aspectRatio,a=t.headerLevel,i=t.isHorizontalMobile,l=void 0!==i&&i,c=t.centerAlign,s=void 0!==c&&c,u=t.borderColor,d=t.hideAuthorImage,m=t.prefix,h=t.isHorizontalWithImageLast,f=t.config,p=s?"center-align":"",g=qt(u),v=f.localizationConfig,_=void 0===v?{}:v;return e.createElement(e.Fragment,null,o?e.createElement(Rr,{config:f,story:r,isHorizontal:!0,isHorizontalMobile:l,aspectRatio:n}):h?e.createElement(Rr,{config:f,story:r,isHorizontalWithImageLast:!0,isHorizontalMobile:l,aspectRatio:n}):e.createElement(Rr,{story:r,config:f,isHorizontalMobile:l,aspectRatio:n}),e.createElement("div",{className:"arr--story-content "+I("content ".concat(p),Hr)},e.createElement(Br,{story:r,borderColor:g}),e.createElement(mr,{story:r,headerLevel:a,premiumStoryIconConfig:f}),e.createElement(zr,{config:_,story:r,isBottom:!0,prefix:m,hideAuthorImage:d}),e.createElement(fr,{story:r})))};Dr.propTypes={story:s.object.isRequired,border:s.oneOfType([s.string]),isBottom:s.bool,isHorizontal:s.bool,aspectRatio:s.oneOfType([s.array]),isHorizontalMobile:s.bool,centerAlign:s.bool,headerLevel:s.string,borderColor:s.string,hideAuthorImage:s.bool,prefix:s.string,config:s.object,isHorizontalWithImageLast:s.bool},Fr.propTypes={story:s.object.isRequired,children:s.node,isHorizontal:s.bool,border:s.oneOfType([s.string]),useImageAsBackground:s.bool,bgImgContentOverlap:s.bool,aspectRatio:s.oneOfType([s.array]),theme:s.string,isHorizontalMobile:s.bool,centerAlign:s.bool,headerLevel:s.string,borderColor:s.string,hideAuthorImage:s.bool,prefix:s.string,config:s.object,isHorizontalWithImageLast:s.bool},Fr.defaultProps={isHorizontal:!1,isHorizontalMobile:!1,border:"default",theme:"",centerAlign:!1,borderColor:"",isHorizontalWithImageLast:!1};var Wr=function(t){var r=t.color,o=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),e.createElement("path",{stroke:o,d:"M9 16L1 8l8-8"})))};Wr.propTypes={color:s.string};var qr=function(t){var r=t.color,o=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),e.createElement("path",{stroke:o,d:"M1 0l8 8-8 8"})))};qr.propTypes={color:s.string};var Ur={"./slider-arrow.m.css":{arrow:"slider-arrow-m_arrow__1eBUU","left-arrow-dark":"slider-arrow-m_left-arrow-dark__3mTJS","right-arrow-dark":"slider-arrow-m_right-arrow-dark__3hWZe","left-arrow-light":"slider-arrow-m_left-arrow-light__2ipUK","right-arrow-light":"slider-arrow-m_right-arrow-light__3omMU","left-arrow-ltr":"slider-arrow-m_left-arrow-ltr__1ngNF","right-arrow-ltr":"slider-arrow-m_right-arrow-ltr__2svWX","left-arrow-rtl":"slider-arrow-m_left-arrow-rtl__2ynyn","right-arrow-rtl":"slider-arrow-m_right-arrow-rtl__1GjPz"}},Gr=function(t){var r=t.selectedIndex,o=t.previousClick,n=t.nextClick,a=t.noOfItems,i=t.perView,l=t.languageDirection;if(a<1)return null;var c=at()||{},s=Vt(c.theme),u="rtl"===l?"left-arrow-rtl":"left-arrow-ltr",d="rtl"===l?"right-arrow-rtl":"right-arrow-ltr";return e.createElement(e.Fragment,null,0!==r?e.createElement("button",{onClick:o,className:("left-arrow ".concat(u)?"left-arrow ".concat(u)+" ":"")+I("arrow left-arrow-".concat(s," ").concat(u),Ur)},e.createElement(Wr,{color:"dark"===s?"#fff":"#333"})):null,r<a-1&&!(r>=a-i)?e.createElement("button",{onClick:n,className:("right-arrow ".concat(d)?"right-arrow ".concat(d)+" ":"")+I("arrow right-arrow-".concat(s," ").concat(d),Ur)},e.createElement(qr,{color:"dark"===s?"#fff":"#333"})):null)};Gr.propTypes={noOfItems:d,perView:d,slideIndicator:m,previousClick:h,nextClick:h,selectedIndex:d,languageDirection:m};var Vr={"./slider-indicator.m.css":{indicators:"slider-indicator-m_indicators__3MNXc",indicator:"slider-indicator-m_indicator__gTv3x","indicator-button":"slider-indicator-m_indicator-button__1e82r","indicator-dots":"slider-indicator-m_indicator-dots__2TR3H","indicator-dots-dark":"slider-indicator-m_indicator-dots-dark__sGrev","indicator-dots-light":"slider-indicator-m_indicator-dots-light__2nPn-","indicator-dashes":"slider-indicator-m_indicator-dashes__DyNCE","indicator-dashes-dark":"slider-indicator-m_indicator-dashes-dark__VrqJI","indicator-dashes-light":"slider-indicator-m_indicator-dashes-light__34ESx"}},Zr=function(t){var r=t.indicatorItems,o=t.indicatorClick,n=t.selectedIndex,a=t.indicatorType;if(r.length<1)return null;var i=at()||{},l=Vt(i.theme);return e.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},r.map((function(t,r){return e.createElement("li",{key:"slider-".concat(r),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(e){return o(e,r)}},e.createElement("button",{"aria-pressed":n===r?"true":"false",className:("indicator-button indicator-".concat(a)?"indicator-button indicator-".concat(a)+" ":"")+I("indicator-button indicator-".concat(a," indicator-").concat(a,"-").concat(l),Vr)}))})))};Zr.propTypes={indicatorItems:f,perView:d,indicatorType:m,indicatorClick:h,selectedIndex:d};var Jr=function(e,t,r,o){var n,a,i,l,c=Math.floor(r.current.scrollWidth*(e/o)),s="rtl"===t?-1*c:c;n=r.current,a=s,i=!0,n.scrollTo((er(l={},i?"left":"top",a),er(l,"behavior","smooth"),l))},Yr=function(e,t){var r;return function(){clearTimeout(r),r=setTimeout((function(){r=null,e()}),t)}},$r=function(t){var r=t.children,i=t.isArrow,c=t.interval,s=t.isInfinite,u=t.pauseOnHover,d=t.perView,m=t.slideIndicator,h=Ir(o(0),2),f=h[0],p=h[1],g=Ir(o(!1),2),v=g[0],_=g[1],b=l((function(e){return ot(e,["qt","config","language","direction"],"ltr")})),y=r?r.length:0,w=n(null),E=r.length-(d-1),x=r.slice(0,E);a((function(){return w.current&&(w.current.addEventListener("scroll",Yr((function(){var e=Math.round(w.current.scrollLeft/w.current.scrollWidth*y);p(Math.abs(e))}),150)),0!==f&&Jr(f)),function(){w.current.removeEventListener("scroll",Yr)}}),[]),a((function(){if(s&&!v){var e=setInterval((function(){T()}),c);return function(){clearInterval(e)}}}),[s,v]);var T=function(){p((function(e){var t=e===y-d?0:e+1;return Jr(t,b,w,y),t}))},k=function(){u&&_(!v)};return e.createElement("div",{className:"scroll-snap-container"},e.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:k,onMouseLeave:k},e.createElement("div",{ref:w,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},r),i&&e.createElement(Gr,{noOfItems:y,perView:d,previousClick:function(e){e.preventDefault(),e.stopPropagation();var t=f-1;p(t),Jr(t,b,w,y)},nextClick:function(e){if(e.preventDefault(),e.stopPropagation(),f<y){var t=f+1;p(t),Jr(t,b,w,y)}},selectedIndex:f,languageDirection:b})),r.length>d&&"none"!==m&&e.createElement(Zr,{indicatorItems:x,indicatorClick:function(e,t){e.preventDefault(),e.stopPropagation(),p(t),Jr(t,b,w,y)},selectedIndex:f,indicatorType:m}))};$r.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},$r.propTypes={children:f.isRequired,isArrow:p,isInfinite:p,interval:d,pauseOnHover:p,perView:d,slideIndicator:m};var Qr={"./full-screen-slider.m.css":{"full-screen-slider":"full-screen-slider-m_full-screen-slider__1hNvv","container-width":"full-screen-slider-m_container-width__3hCBm","full-width":"full-screen-slider-m_full-width__9OJuQ","full-screen-slider-wrapper":"full-screen-slider-m_full-screen-slider-wrapper__2bQ74",wrapper:"full-screen-slider-m_wrapper__1XlGT","content-align":"full-screen-slider-m_content-align__2gQn2",blink:"full-screen-slider-m_blink__1_2aD"}},Kr=function(t){var r=t.collection,o=void 0===r?{}:r,n=t.config,a=void 0===n?{}:n,i=a.collectionNameBorderColor,s=void 0===i?"":i,u=a.borderColor,d=void 0===u?"":u,m=a.theme,h=void 0===m?"":m,f=a.collectionNameTemplate,p=void 0===f?"":f,g=a.isFullWidth,v=void 0!==g&&g,_=a.numberOfStoriesToShow,b=void 0===_?1:_,w=a.contentAlignment,E=void 0===w?"":w,x=a.footerButton,T=void 0===x?"":x,k=a.footerSlotConfig,L=void 0===k?{}:k,z=a.navigationArrows,N=void 0===z||z,C=a.slideIndicator,j=void 0===C?"none":C,O=a.isInfinite,S=void 0!==O&&O,A=a.aspectRatio,M=void 0===A?[[16,9],[4,2]]:A,R=L.footerSlot,P=y(o),B=v?"full-width":"container-width",H="center"===E?"content-align":"";if(P.length<1)return null;var F=c(),D=l((function(e){return ot(e,["qt","config"],{})})),W=$t(o,D),q=function(e){return e?parseInt(e):1}(b),U=Vt(h),G=R?R():null,V=M||[[16,9],[4,2]];return e.createElement("div",{className:("arrow-component full-width-with-padding ".concat(B)?"arrow-component full-width-with-padding ".concat(B)+" ":"")+"full-screen-slider-m_full-screen-slider-wrapper__2bQ74","data-test-id":"full-screen-slider",style:{backgroundColor:h,color:U}},e.createElement("div",{className:I("full-screen-slider ".concat(B),Qr)},e.createElement("span",{className:I("".concat(B),Qr)},e.createElement(Xt,{collection:o,collectionNameTemplate:p,collectionNameBorderColor:s,className:I("".concat(B),Qr)})),e.createElement("div",{className:I("wrapper ".concat(B," ").concat(H),Qr)},e.createElement($r,{isArrow:N,slideIndicator:j,isInfinite:S},P.slice(0,q).map((function(t,r){return e.createElement(Fr,{key:r,story:t,useImageAsBackground:!0,aspectRatio:V,headerLevel:"1",borderColor:d,config:a})})))),e.createElement(nr,{collection:o,template:T,config:a,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(F,W)},qtConfig:D}),G))};Kr.propTypes={collection:s.object.isRequired,config:s.shape({borderColor:s.string,theme:s.string,collectionTemplate:s.string,isFullWidth:s.bool,numberOfStoriesToShow:s.number,contentAlignment:s.string,footerButton:s.string,collectionNameBorderColor:s.string,aspectRatio:s.array})};var Xr,eo=(Xr=Kr,function(t){return e.createElement(nt.Provider,{value:t.config},e.createElement(Xr,t))});export{eo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{createContext as t,useContext as r,useState as o,useRef as n,useEffect as i}from"react";import a,{PropTypes as l,number as c,string as s,func as u,array as d,bool as m}from"prop-types";import{connect as h,useSelector as f,useDispatch as p}from"react-redux";import g from"lodash.get";import{Link as v,LinkBase as _,ResponsiveImage as y,ResponsiveHeroImage as b,collectionToStories as w}from"@quintype/components";import E from"react-timeago";import{utcToZonedTime as x,format as k}from"date-fns-tz";var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N(e){var t={exports:{}};return e(t,t.exports),t.exports}var j=N((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};t.default=r})),C=L(N((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=j)&&r.__esModule?r:{default:r};var n=function(e,t){if("throw"===t)throw new Error(e);return"warn"===t&&console.warn(e),null};t.default=function(e,t,r){var i=Object.keys(t),a=r||{},l=a.handleMissingStyleName,c=void 0===l?o.default.handleMissingStyleName:l,s=a.autoResolveMultipleImports,u=void 0===s?o.default.autoResolveMultipleImports:s;return e?e.split(" ").filter((function(e){return e})).map((function(e){if(function(e){return-1!==e.indexOf(".")}(e))return function(e,t,r){var i=e.split("."),a=i[0],l=i[1],c=r||o.default.handleMissingStyleName;return l?t[a]?t[a][l]?t[a][l]:n("CSS module does not exist: "+l,c):n("CSS module import does not exist: "+a,c):n("Invalid style name: "+e,c)}(e,t,c);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+e+"' without importing at least one stylesheet.");if(i.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+e+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(e,t,r){var i=r||o.default.handleMissingStyleName,a=Object.keys(t).map((function(r){return t[r][e]&&r})).filter((function(e){return e}));if(a.length>1)throw new Error('Cannot resolve styleName "'+e+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+e+'" />\n\n');return 0===a.length?n("Could not resolve the styleName '"+e+"'.",i):t[a[0]][e]}(e,t,c)}var r=t[i[0]];return r[e]?r[e]:n("Could not resolve the styleName '"+e+"'.",c)})).filter((function(e){return e})).join(" "):""}}))),S=t(),z=function(){return r(S)};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}N((function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof g?t:g,i=Object.create(n.prototype),a=new j(o||[]);return i._invoke=function(e,t,r){var o=d;return function(n,i){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===n)throw i;return S()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var l=T(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?f:m,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=f,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",m="suspendedYield",h="executing",f="completed",p={};function g(){}function v(){}function _(){}var y={};c(y,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&o.call(w,i)&&(y=w);var E=_.prototype=g.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(n,i,a,l){var c=u(e[n],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==typeof d&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function T(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var i=n.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function C(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:t,done:!0}}return v.prototype=_,c(E,"constructor",_),c(_,"constructor",v),v.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new k(s(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;N(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:C(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var I=Array.isArray,A="object"==typeof T&&T&&T.Object===Object&&T,M="object"==typeof self&&self&&self.Object===Object&&self,R=A||M||Function("return this")(),P=R.Symbol,B=Object.prototype,F=B.hasOwnProperty,D=B.toString,H=P?P.toStringTag:void 0;var U=function(e){var t=F.call(e,H),r=e[H];try{e[H]=void 0;var o=!0}catch(e){}var n=D.call(e);return o&&(t?e[H]=r:delete e[H]),n},W=Object.prototype.toString;var q=function(e){return W.call(e)},V=P?P.toStringTag:void 0;var G=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?U(e):q(e)};var Z=function(e){return null!=e&&"object"==typeof e};var Y=function(e){return"symbol"==typeof e||Z(e)&&"[object Symbol]"==G(e)},$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/;var K=function(e,t){if(I(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Y(e))||(J.test(e)||!$.test(e)||null!=t&&e in Object(t))};var X=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Q,ee=function(e){if(!X(e))return!1;var t=G(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},te=R["__core-js_shared__"],re=(Q=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"";var oe=function(e){return!!re&&re in e},ne=Function.prototype.toString;var ie=function(e){if(null!=e){try{return ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ae=/^\[object .+?Constructor\]$/,le=Function.prototype,ce=Object.prototype,se=le.toString,ue=ce.hasOwnProperty,de=RegExp("^"+se.call(ue).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var me=function(e){return!(!X(e)||oe(e))&&(ee(e)?de:ae).test(ie(e))};var he=function(e,t){return null==e?void 0:e[t]};var fe=function(e,t){var r=he(e,t);return me(r)?r:void 0},pe=fe(Object,"create");var ge=function(){this.__data__=pe?pe(null):{},this.size=0};var ve=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e=Object.prototype.hasOwnProperty;var ye=function(e){var t=this.__data__;if(pe){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return _e.call(t,e)?t[e]:void 0},be=Object.prototype.hasOwnProperty;var we=function(e){var t=this.__data__;return pe?void 0!==t[e]:be.call(t,e)};var Ee=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=pe&&void 0===t?"__lodash_hash_undefined__":t,this};function xe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}xe.prototype.clear=ge,xe.prototype.delete=ve,xe.prototype.get=ye,xe.prototype.has=we,xe.prototype.set=Ee;var ke=xe;var Te=function(){this.__data__=[],this.size=0};var Le=function(e,t){return e===t||e!=e&&t!=t};var Ne=function(e,t){for(var r=e.length;r--;)if(Le(e[r][0],t))return r;return-1},je=Array.prototype.splice;var Ce=function(e){var t=this.__data__,r=Ne(t,e);return!(r<0)&&(r==t.length-1?t.pop():je.call(t,r,1),--this.size,!0)};var Se=function(e){var t=this.__data__,r=Ne(t,e);return r<0?void 0:t[r][1]};var ze=function(e){return Ne(this.__data__,e)>-1};var Oe=function(e,t){var r=this.__data__,o=Ne(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};function Ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Ie.prototype.clear=Te,Ie.prototype.delete=Ce,Ie.prototype.get=Se,Ie.prototype.has=ze,Ie.prototype.set=Oe;var Ae=Ie,Me=fe(R,"Map");var Re=function(){this.size=0,this.__data__={hash:new ke,map:new(Me||Ae),string:new ke}};var Pe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Be=function(e,t){var r=e.__data__;return Pe(t)?r["string"==typeof t?"string":"hash"]:r.map};var Fe=function(e){var t=Be(this,e).delete(e);return this.size-=t?1:0,t};var De=function(e){return Be(this,e).get(e)};var He=function(e){return Be(this,e).has(e)};var Ue=function(e,t){var r=Be(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this};function We(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}We.prototype.clear=Re,We.prototype.delete=Fe,We.prototype.get=De,We.prototype.has=He,We.prototype.set=Ue;var qe=We;function Ve(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var o=arguments,n=t?t.apply(this,o):o[0],i=r.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return r.cache=i.set(n,a)||i,a};return r.cache=new(Ve.Cache||qe),r}Ve.Cache=qe;var Ge=Ve;var Ze=function(e){var t=Ge(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t},Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$e=/\\(\\)?/g,Je=Ze((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ye,(function(e,r,o,n){t.push(o?n.replace($e,"$1"):r||e)})),t})),Ke=Je;var Xe=function(e,t){for(var r=-1,o=null==e?0:e.length,n=Array(o);++r<o;)n[r]=t(e[r],r,e);return n},Qe=P?P.prototype:void 0,et=Qe?Qe.toString:void 0;var tt=function e(t){if("string"==typeof t)return t;if(I(t))return Xe(t,e)+"";if(Y(t))return et?et.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var rt=function(e){return null==e?"":tt(e)};var ot=function(e,t){return I(e)?e:K(e,t)?[e]:Ke(rt(e))};var nt=function(e){if("string"==typeof e||Y(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var it=function(e,t){for(var r=0,o=(t=ot(t,e)).length;null!=e&&r<o;)e=e[nt(t[r++])];return r&&r==o?e:void 0};var at=function(e,t,r){var o=null==e?void 0:it(e,t);return void 0===o?r:o};var lt=function(e,t,r,o){var n=-1,i=null==e?0:e.length;for(o&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r};var ct=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ut=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var dt=function(e){return(e=rt(e))&&e.replace(st,ct).replace(ut,"")},mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ht=function(e){return e.match(mt)||[]},ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var pt=function(e){return ft.test(e)},gt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="["+gt+"]",_t="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+gt+_t+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Tt="(?:"+bt+"|"+wt+")",Lt="(?:"+kt+"|"+wt+")",Nt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",jt="[\\ufe0e\\ufe0f]?"+Nt+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Et,xt].join("|")+")[\\ufe0e\\ufe0f]?"+Nt+")*"),Ct="(?:"+[yt,Et,xt].join("|")+")"+jt,St=RegExp([kt+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,kt,"$"].join("|")+")",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,kt+Tt,"$"].join("|")+")",kt+"?"+Tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,Ct].join("|"),"g");var zt=function(e){return e.match(St)||[]};var Ot=function(e,t,r){return e=rt(e),void 0===(t=r?void 0:t)?pt(e)?zt(e):ht(e):e.match(t)||[]},It=RegExp("['’]","g");var At=function(e){return function(t){return lt(Ot(dt(t).replace(It,"")),e,"")}},Mt=At((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Rt=Mt,Pt=At((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Bt=Pt;var Ft=function(e,t,r,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=n.showTime,a=void 0!==i&&i,l=n.isTimeFirst,c=void 0!==l&&l,s=n.isUpperCase,u=void 0!==s&&s,d=n.disableMeridiem,m=void 0!==d&&d,h=n.timeFormat,f=void 0===h?"12hours":h,p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=new Date(o),v=g.getDate().toString().padStart(2,0),_=p[g.getMonth()],y=_;u&&(y=Rt(_));var b,w=g.getFullYear(),E=n.localizedMeridiem,x=n.localizedMonths,k=n.direction,T=void 0===k?"ltr":k,L=Ht(o,f),N=L;if(x&&(y=at(x,[Bt(_)])||_),E){var j=L.includes("am"),C=E.am,S=void 0===C?"am":C,z=E.pm,O=void 0===z?"pm":z;N=(j?L.replace("am",S):L.replace("pm",O))||L}return"rtl"===T?(b=a?"".concat(N):"","".concat(v," ").concat(y,", ").concat(w," ").concat(b," ")):m?"".concat(y," ").concat(v,", ").concat(w):c?"".concat(N,", ").concat(v," ").concat(y," ").concat(w):(b=a?", ".concat(N):"","".concat(v," ").concat(y,", ").concat(w).concat(b))};function Dt(e,t,r,o,n){var i,a=at(n,["localizedPublishTime",r])||r;return"hour"===t&&e>23||-1!==["day","week","month","year"].indexOf(t)?Ft(e,t,r,o,n):e>1?(i=at(n,["localizedPublishTime","".concat(t,"s")])||"".concat(t,"s"),"".concat(e," ").concat(i," ").concat(a)):(i=at(n,["localizedPublishTime",t])||t,"".concat(e," ").concat(i," ").concat(a," "))}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12hours",r=new Date(e),o=r.getHours(),n=r.getMinutes(),i=o>=12?"pm":"am",a=(o=(o%=12)||12)+":"+(n=n<10?"0"+n:n)+" "+i;return"24hours"===t?r.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):a}var Ut=function(e){var t=function(e){return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}}(e);return.299*t.r+.587*t.g+.114*t.b},Wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):e},qt={mobile:767,tablet:1024},Vt=function(e){var t=at(qt,e);return!!t&&at(global,"document.documentElement.clientWidth")<=t},Gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",t=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e),r=t?e:Wt(e),o=Ut(r)<155?"light":"dark";return o};var Zt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.magazineSlug,o=void 0===r?"":r,n=t.isArchivePage,i=void 0!==n&&n;if(i)return"/magazine/archive/".concat(o);if(o)return"/magazine/".concat(o,"/").concat(e.slug);var a="section"===e.template;if(a){var l=at(e,["metadata","section","0","id"],""),c=t.sections,s=c&&c.find((function(e){return e.id===l}));return s?s["section-url"]:"/"}return"/collection/".concat(e.slug)};function Yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e["story-template"],r=void 0===t?"":t,o=e.metadata,n=void 0===o?{}:o;return"news-elsewhere"===r?at(n,["reference-url"],""):""}a.shape({"sketches-host":a.string,"cdn-name":a.string,"cdn-image":a.string}),a.shape({headline:a.string,"last-published-at":a.number,subheadline:a.string});var $t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===at(e,["story-template"])?at(e,["metadata","reference-url"],""):e.url||t},Jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(r)return r;var o=t.magazineSlug,n=void 0===o?"":o,i=t.isArchivePage,a=void 0!==i&&i;return a?"/magazine/archive/".concat(n):n?"/magazine/".concat(n,"/").concat(e.slug):e?Zt(e,t):"/"},Kt={"./collection-name.m.css":{collection:"collection-name-m_collection__JD6sx","collection-borderLeft":"collection-name-m_collection-borderLeft__3Dznk","border-left":"collection-name-m_border-left__3_pYw","collection-borderBottomFull":"collection-name-m_collection-borderBottomFull__Dkq3K","collection-borderBottom":"collection-name-m_collection-borderBottom__2rdQM","collection-crossLine":"collection-name-m_collection-crossLine__1sIpN","border-bottom":"collection-name-m_border-bottom__1MnlV",dark:"collection-name-m_dark__nMe5H",light:"collection-name-m_light__1vFDN"}},Xt=function(t){var r=t.collectionNameBorderColor,o=void 0===r?"":r,n=t.collection,i=t.config,a=t.collectionNameTemplate,l=t.headerLevel,c=t.customCollectionName,s=void 0===c?"":c,u=t.navigate,d=void 0===u||u,m=z()||{},h=g(m,["showRowTitle"],!0),f=["borderLeft","borderBottom","crossLine","borderBottomFull"].includes(a)?" collection-".concat(a):"",p=d&&n&&Zt(n,i)||"",_=s||n.name||"",y=Gt(m.theme),b="h"+l,w=Wt(o),E=f.includes("collection-borderBottomFull")?"4px solid ".concat(w):"",x=Vt("mobile");return e.createElement(e.Fragment,null,h&&_&&e.createElement("div",{style:{borderBottom:E},"data-test-id":"collection-name",className:("arr--collection-name arrow-component ".concat(f)?"arr--collection-name arrow-component ".concat(f)+" ":"")+C("collection ".concat(y," ").concat(f),Kt)},f.includes("collection-borderLeft")&&e.createElement("span",{className:"arr-collection-name-border-left collection-name-m_border-left__3_pYw",style:{color:w,fontSize:function(){if(x)switch(l){case"1":return"32px";case"2":return"24px";case"3":default:return"20px";case"4":return"18px";case"5":case"6":return"16px"}switch(l){case"1":return"40px";case"2":return"32px";case"3":default:return"24px";case"4":return"20px";case"5":return"18px";case"6":return"16px"}}()}}),p&&!p.includes(void 0)?e.createElement(v,{href:p,"aria-label":"collection-name"},e.createElement(b,null,_)):e.createElement(b,null,_),f.includes("collection-borderBottom")&&!f.includes("collection-borderBottomFull")?e.createElement("div",{className:"collection-name-m_border-bottom__1MnlV",style:{borderBottom:"4px solid ".concat(w)}}):""))};Xt.propTypes={collectionNameBorderColor:l.string,collection:l.object,config:l.object,collectionNameTemplate:l.oneOf(["","borderLeft","borderBottom","crossLine","borderBottomFull"]),headerLevel:l.string,customCollectionName:l.string,navigate:l.bool},Xt.defaultProps={collectionNameTemplate:"",headerLevel:"3"};var Qt=h((function(e){return{config:g(e,["qt","config"],{})}}))(Xt);function er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tr={"./load-more.m.css":{button:"load-more-m_button__1mmf1",default:"load-more-m_default__2_k4V",dark:"load-more-m_dark__3dfzb",light:"load-more-m_light__ePZQI"}};function rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(r),!0).forEach((function(t){er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var nr=function(t){var r=t.config,o=void 0===r?{}:r,n=t.collection,i=t.template,a=void 0===i?"SubsequentLoadCount":i,l=t.onClick,c=t.navigate,s=t.qtConfig,u=o.showButton,d=void 0===u||u,m=o.buttonText,h=void 0===m?"Read More":m,f=o.theme,p=void 0===f?"":f,g=o.customUrlPath,v=void 0===g?"":g;if(!d)return null;var y=Gt(p),b=v?"/".concat(v):Jt(n,or(or({},s),o));return"SubsequentLoadCount"===a?e.createElement("div",{onClick:l,"data-test-id":"load-more",className:"arr--button "+C("button ".concat(y," default"),tr)},h):e.createElement(_,{href:b,navigateTo:c,"data-test-id":"load-more","aria-label":"load-more"},e.createElement("div",{className:"arr--button "+C("button ".concat(y," default"),tr)},h))};nr.propTypes={collection:a.object,template:a.string,config:a.object,onClick:a.func,navigate:a.func,qtConfig:a.object};var ir=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D8D8D8":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(0 2)"},e.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};ir.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var ar=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("path",{fill:i,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};ar.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var lr=function(t){var r=t.height,o=t.width,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("g",{transform:"translate(8 8)"},e.createElement("path",{d:"M0 0H24V24H0z"}),e.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(3)"},e.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};lr.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var cr=function(t){var r=t.width,o=t.height,n=t.color,i=void 0===n?"#D5D5D5":n,a=t.positionTop,l=void 0===a?"":a;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",style:{position:"relative",top:l}},e.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},e.createElement("g",null,e.createElement("path",{fill:i,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};cr.propTypes={height:a.string,width:a.string,color:a.string,positionTop:a.string};var sr=function(t){var r=t.width,o=t.height,n=t.color,i=t.iconType,a=t.positionTop;switch(i){case"crown":return e.createElement(ir,{width:r,height:o,color:n,positionTop:a});case"lock":return e.createElement(lr,{width:r,height:o,color:n,positionTop:a});case"key":return e.createElement(ar,{width:r,height:o,color:n,positionTop:a});default:return e.createElement(cr,{width:r,height:o,color:n,positionTop:a})}};function ur(){return e.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},e.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}sr.propTypes={width:a.string,height:a.string,color:a.string,iconType:a.string,positionTop:a.string};var dr={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},mr=function(t){var r=t.story,o=t.headerLevel,n=t.premiumStoryIconConfig,i=void 0===n?{}:n,a=t.isLink,l=z()||{},c=i.iconColor,s=void 0===c?"#F7B500":c,u=i.iconStyle,d=void 0===u?"star":u,m=i.enablePremiumStoryIcon,h=void 0!==m&&m,f=i.showLiveIcon,p=void 0!==f&&f,_=g(r,["alternative","home","default","headline"]),y=h&&"subscription"===g(r,["access"]),b=_||r.headline,w="h"+o,E=Gt(l.theme),x=y?"wrapper":"",k="24px",T=p&&"live-blog"===r["story-template"]&&!g(r,["metadata","is-closed"],!1);return e.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+C(x,dr)},y&&e.createElement(sr,{width:k,height:k,color:s,iconType:d,positionTop:function(){switch(parseInt(o)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),a?e.createElement(v,{href:$t(r,"/".concat(r.slug)),externalLink:Yt(r),"aria-label":"headline"},e.createElement(w,{className:C("headline ".concat(E),dr)},T&&e.createElement(ur,null),b)):e.createElement(w,{className:C("headline ".concat(E),dr)},T&&e.createElement(ur,null),b))};mr.propTypes={story:a.object.isRequired,headerLevel:a.string,premiumStoryIconConfig:a.shape({iconColor:a.string,iconType:a.string,enablePremiumStoryIcon:a.bool}),isLink:a.bool},mr.defaultProps={headerLevel:"6",isLink:!0};var hr={"./subheadline.m.css":{subheadline:"subheadline-m_subheadline__3fd7z",dark:"subheadline-m_dark__28u00",light:"subheadline-m_light__2YUOe"}},fr=function(t){var r=t.story,o=t.truncateChars,n=void 0===o?200:o,i=t.lineClamp,a=t.clazzName,l=void 0===a?"":a,c=t.forceShowAtom,s=t.showFullContent,u=z()||{};if(!(c||g(u,["showSubheadline"],!0)))return null;var d=Gt(u.theme);return e.createElement("div",{style:{WebkitLineClamp:i},"data-test-id":"subheadline",className:("p-alt arr--sub-headline arrow-component ".concat(l)?"p-alt arr--sub-headline arrow-component ".concat(l)+" ":"")+C("subheadline ".concat(d),hr)},s||"number"==typeof i?r.subheadline:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"":" ...";return"string"==typeof e&&e.length>t?e.substring(0,t)+r:e}(r.subheadline,n,!0))};fr.propTypes={story:a.object.isRequired,lineClamp:a.number,truncateChars:a.number,clazzName:a.string,forceShowAtom:a.bool,showFullContent:a.bool},fr.defaultProps={forceShowAtom:!1,showFullContent:!1};var pr={"./timestamp.m.css":{time:"timestamp-m_time__2v46i","time-wrapper":"timestamp-m_time-wrapper__3O2lM","bottom-fix":"timestamp-m_bottom-fix__1Zh8r",dark:"timestamp-m_dark__2lk9E",light:"timestamp-m_light__2QlrI"}},gr=function(t){var r=t.story,o=t.isBottom,n=t.config,i=void 0===n?{}:n,a=z()||{},l=g(i,["showTime"],g(a,["showTime"],!0)),c=r["last-published-at"]||r["first-published-at"],s=o?"bottom-fix":"",u=Gt(a.theme);return e.createElement(e.Fragment,null,l&&e.createElement("div",{"data-test-id":"publish-time",className:"time arr--publish-time "+C("time ".concat(u," ").concat(s),pr)},e.createElement("div",{className:"timestamp-m_time-wrapper__3O2lM"},function(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(i&&"story"===n){var a=i&&x(t,i),l=a&&k(a,"yyyy-MM-dd'T'HH:mm:ssXXX",{timeZone:i}),c=Ft("","","",t,o);return e.createElement("time",{dateTime:l},c)}return e.createElement(E,{date:t,formatter:function(e,t,n,i){return r(e,t,n,i,o)}})}(c,Dt,i))))};gr.propTypes={story:a.object,isBottom:a.bool,config:a.object};var vr={"./author.m.css":{author:"author-m_author__WRuLm","author-image":"author-m_author-image__3q2oc","author-name":"author-m_author-name__3WP-O","bottom-fix":"author-m_bottom-fix__223TT",prefix:"author-m_prefix__YSInK","rtl-image":"author-m_rtl-image__2nglD","ltr-image":"author-m_ltr-image__3bc0L",dark:"author-m_dark__2TTlp",light:"author-m_light__3y8_x"}},_r=function(t){var r=t.story,o=t.hideAuthorImage,n=t.isBottom,i=t.prefix,a=void 0===i?"":i,l=t.config,c=void 0===l?{}:l,s=z()||{},u=g(s,["showAuthor"],!0),d=g(r,["authors","0"],""),m=d["avatar-url"],h=d["avatar-s3-key"],f=d.name,p=d.slug,_=n?"bottom-fix":"",b=Gt(s.theme),w=g(c,["mountAt"],""),E=function(t){return a?e.createElement("div",{className:"arr-author-prefix "+C("prefix ".concat(b),vr)},a):!o&&function(t){return m||h?e.createElement("div",{"data-test-id":"author-image",className:C("author-image ".concat(t,"-image"),vr)},e.createElement("figure",null,h?e.createElement(y,{slug:h,"aspect-ratio":[1,1],defaultWidth:400,imgParams:{auto:["format","compress"]},alt:f}):e.createElement("img",{src:m}))):null}(t)};return e.createElement(e.Fragment,null,u&&e.createElement(v,{href:"".concat(w,"/author/")+p,"aria-label":"author-name",className:"author-name arr-author-name arrow-component "+C("author ".concat(_),vr)},E("ltr"),e.createElement("div",{"data-test-id":"author-name",className:"author-name "+C("author-name ".concat(b),vr)},f||r["author-name"]),!a&&E("rtl")))};var yr=h((function(e){return{config:g(e,["qt","config"],{})}}))(_r);_r.propTypes={story:a.object.isRequired,hideAuthorImage:a.bool,isBottom:a.bool,prefix:a.string,config:a.object},_r.defaultProps={hideAuthorImage:!1,isBottom:!1,prefix:""};var br={"./dot.m.css":{dark:"dot-m_dark__1Njxl",light:"dot-m_light__27IA3"}},wr=function(t){var r=t.width,o=void 0===r?"3px":r,n=t.height,i=void 0===n?"3px":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:C(l,br)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,viewBox:"0 0 3 3"},e.createElement("circle",{cx:"87",cy:"9",r:"1",fill:"inherit",fillRule:"nonzero",transform:"translate(-86 -8)"})))};wr.propTypes={color:a.string,width:a.string,height:a.string};var Er={"./divider.m.css":{dark:"divider-m_dark__26FRi",light:"divider-m_light__w-7sy"}},xr=function(t){var r=t.width,o=void 0===r?"1":r,n=t.height,i=void 0===n?"10":n,a=t.color,l=void 0===a?"light":a;return e.createElement("div",{className:C(l,Er)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i},e.createElement("path",{fill:"inherit",d:"M0 0h1v10H0z"})))};xr.propTypes={color:a.string,width:a.string,height:a.string};var kr={"./read-time.m.css":{"read-time-wrapper":"read-time-m_read-time-wrapper__3GyC_","dot-indicator":"read-time-m_dot-indicator__3Sqh2",dark:"read-time-m_dark__3yRaK",light:"read-time-m_light__1GAZu"}},Tr=function(t){var r=t.story,o=t.opts,n=void 0===o?{}:o,i=t.isLightTheme,a=void 0!==i&&i,l=z()||{},c=g(l,["showReadTime"])||g(n,["showReadTime"],!0),s=g(r,["read-time"],0),u=a?"light":Gt(l.theme);if(!c||!s)return null;var d=g(n,["localizedTimeToRead"])||"min read";return e.createElement(e.Fragment,null,e.createElement("div",{"data-test-id":"read-time",className:"arrow-component arr--read-time "+C("read-time-wrapper ".concat(u),kr)},e.createElement("span",{className:"read-time-indicator read-time-m_dot-indicator__3Sqh2"},e.createElement(wr,{color:u})),e.createElement("span",null,s," ",d)))};Tr.propTypes={story:a.shape({"read-time":a.number}),opts:a.shape({showReadTime:a.bool}),isLightTheme:a.bool};var Lr={"./author-with-timestamp.m.css":{"author-time-wrapper":"author-with-timestamp-m_author-time-wrapper__G7_eI","author-image":"author-with-timestamp-m_author-image__24xrD",dot:"author-with-timestamp-m_dot__1LHXD","bottom-fix":"author-with-timestamp-m_bottom-fix__1rWGv",dash:"author-with-timestamp-m_dash__2L5XC"}},Nr=function(t){var r=t.story,o=t.separator,n=t.isBottom,i=t.hideAuthorImage,a=t.prefix,l=t.config,c=void 0===l?{}:l,s=t.isLightTheme,u=z()||{},d=g(c,["showAuthor"],g(u,["showAuthor"],!0)),m=g(c,["showTime"],g(u,["showTime"],!0)),h=g(u,["showReadTime"],!0),f=n?"bottom-fix":"",p="dot"===o?"dot":"dash",v=s?"light":Gt(u.theme),_=function(){return m?e.createElement(e.Fragment,null,d&&e.createElement("span",{className:"arr-separator "+C("".concat(p),Lr)},"divider"===o?e.createElement(xr,{color:v}):e.createElement(wr,{color:v})),e.createElement(gr,{story:r,config:c}),h&&e.createElement(Tr,{story:r,opts:c,isLightTheme:s})):null};return e.createElement("div",{className:"arr--author-time "+C("author-time-wrapper ".concat(f),Lr)},d?e.createElement(e.Fragment,null,e.createElement(yr,{story:r,isBottom:!0,hideAuthorImage:i,prefix:a}),_()):_())};function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Nr.propTypes={story:a.object,separator:a.oneOf(["dot","divider"]),hideAuthorImage:a.bool,isBottom:a.bool,prefix:a.string,config:a.object,isLightTheme:a.bool},Nr.defaultProps={separator:"dot",isBottom:!1,hideAuthorImage:!0,prefix:"",isLightTheme:!1};var Sr=function(t){var r=t.width,o=void 0===r?40:r,n=t.height,i=void 0===n?30:n,a=t.iconColor,l=void 0===a?"#99B0CB":a;return e.createElement("svg",{width:o,height:i,viewBox:"0 0 102 76",version:"1.1"},e.createElement("g",{id:"demo-home-copy",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",transform:"translate(-377.000000, -314.000000)"},e.createElement("g",{id:"Group-13",transform:"translate(377.000000, 314.000000)"},e.createElement("path",{d:"M43.2,49.7 L62.2,19.2 L87.2,59.4 L17,59.4 L32.8,39.4 L43.2,49.7 Z M29.9,28.6 C25.8683213,28.6 22.6,25.3316787 22.6,21.3 C22.6,17.2683213 25.8683213,14 29.9,14 C33.9316787,14 37.2,17.2683213 37.2,21.3 C37.2,25.3316787 33.9316787,28.6 29.9,28.6 Z",id:"Combined-Shape",fill:l,fillRule:"nonzero"}),e.createElement("rect",{id:"Rectangle-19",stroke:l,strokeWidth:"3",x:"1.5",y:"1.5",width:"99",height:"73",rx:"3"}))))};Sr.propTypes={width:a.object,height:a.object,iconColor:a.object};var zr=function(){return e.createElement("div",{className:"arr--fallback-image fallback-m_image__1GYCJ fallback-m_image-position__3KddP"},e.createElement("figure",{className:"arr--fallback-svg fallback-m_fallback-svg__tK9fL"},e.createElement(Sr,null)))},Or=function(t){var r=t.slug;return r?e.createElement(v,{href:r,"aria-label":"image-fallback"},zr()):zr()};Or.propTypes={slug:a.string};var Ir=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"28"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("rect",{width:"36",height:"28",fill:"#3D6FCF",rx:"4"}),e.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M22 14.667v4c0 .736-.597 1.333-1.333 1.333h-7.334A1.333 1.333 0 0112 18.667v-7.334c0-.736.597-1.333 1.333-1.333h4M20 8h4v4m-7.333 3.333L24 8"})))},Ar=function(t){var r=t.hyperLink,o=void 0===r?"":r;return o?e.createElement(v,{href:o,"aria-label":"hyperlink-button",className:"arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",target:"_blank",rel:"noopener noreferrer"},e.createElement(Ir,null)):null};Ar.propTypes={hyperLink:a.string};var Mr={"./hero-image.m.css":{"hero-image":"hero-image-m_hero-image__3lraV","right-padding":"hero-image-m_right-padding__1LkCe","left-padding":"hero-image-m_left-padding__pYRAj","right-padding-mob":"hero-image-m_right-padding-mob__3-uOU",placeholder:"hero-image-m_placeholder__1omCm","hero-image-mob":"hero-image-m_hero-image-mob__13JJp","with-padding":"hero-image-m_with-padding__324G_",image:"hero-image-m_image__1mz0U"}},Rr=function(t){var r=t.story,o=t.FullBleed,n=t.aspectRatio,i=t.defaultWidth,a=t.widths,l=t.isHorizontal,c=t.isHorizontalMobile,s=t.isHorizontalWithImageLast,u=t.defaultFallback,d=t.isStoryPageImage,m=t.config,h=(z()||{}).fallbackImageUrl,p=void 0===h?"":h,_=m.StoryTemplateIcon,y=void 0===_?function(){return null}:_,w=f((function(e){return g(e,["qt","config","showPlaceholder"])}))?"placeholder":"",E=o?"":"with-padding",x="hero-image";l?x="right-padding":s&&(x="left-padding");var k=c?"right-padding-mob":"",T=function(e){var t=Cr(e,2),r=t[0],o=t[1];return r>0&&o>0?o/r*100:0},L=Cr(n,2),N=L[0],j=L[1],S=void 0===j?N:j,O=Vt("mobile"),I=O?N:S,A=T(O?N:S),M=g(r,["hero-image-s3-key"])||g(r,["alternative","home","default","hero-image","hero-image-s3-key"]),R=g(r,["hero-image-hyperlink"],""),P=function(){return M?e.createElement(e.Fragment,null,e.createElement("figure",{style:{paddingTop:A+"%"},className:"arr--responsive-hero-image "+C("image ".concat(w),Mr)},e.createElement(y,{storyTemplate:r["story-template"]}),e.createElement(b,{story:r,aspectRatio:I,defaultWidth:i,widths:a,imgParams:{auto:["format","compress"],fit:"max"}})),d&&R&&e.createElement(Ar,{hyperLink:R})):p&&!d?e.createElement("figure",{style:{paddingTop:A+"%"},className:"arr--responsive-hero-image "+C("image ".concat(w),Mr)},e.createElement("img",{className:"qt-image","data-src":"".concat(p),alt:"image-fallback"})):e.createElement(e.Fragment,null,u?e.createElement("div",{"data-test-id":"arr--fallback-hero-image",style:{paddingTop:A+"%"},className:"arr--fallback-hero-image "+C("image ".concat(w),Mr)},e.createElement(y,{storyTemplate:r["story-template"]}),e.createElement(Or,null)):null)};return r&&(d?e.createElement("div",{"data-test-id":"arr--hero-image",className:"arr--hero-image "+C("".concat(x," ").concat(E," ").concat(k),Mr)},P()):e.createElement(v,{"data-test-id":"arr--hero-image",href:$t(r,"/".concat(r.slug)),externalLink:Yt(r),"aria-label":"fallback-hero-image",className:"arr--hero-image "+C("".concat(x," ").concat(E," ").concat(k),Mr)},P()))};Rr.propTypes={story:a.object.isRequired,FullBleed:a.bool,defaultWidth:a.number,widths:a.array,aspectRatio:a.array,isHorizontal:a.bool,isHorizontalMobile:a.bool,defaultFallback:a.bool,isHorizontalWithImageLast:a.bool,isStoryPageImage:a.bool,config:a.object},Rr.defaultProps={FullBleed:!0,aspectRatio:[[1,1],[16,9]],defaultWidth:480,widths:[250,480,640],isHorizontal:!1,isHorizontalMobile:!1,defaultFallback:!0,isStoryPageImage:!1,isHorizontalWithImageLast:!1,config:{}};var Pr={"./section.m.css":{section:"section-m_section__2N4S3","section-borderBottomSml":"section-m_section-borderBottomSml__2GNbo","border-bottom":"section-m_border-bottom__3cRoD","section-borderLeft":"section-m_section-borderLeft__3hKVj","border-left":"section-m_border-left__2oUyp","section-solid":"section-m_section-solid__1vB1Q",dark:"section-m_dark__1r3C4",light:"section-m_light__306hW"}},Br=function(t){var r=t.story,o=t.template,n=void 0===o?"":o,i=t.borderColor,a=void 0===i?"":i,l=t.isLightTheme,c=z()||{},s=g(c,["showSection"],!0),u=g(c,["sectionTagTemplate"]),d=g(r,["sections",0],""),m=["borderBottomSml","borderLeft","solid"],h=d?d["section-url"]:"/",f="solid"===n||"solid"===u?a:c.theme,p=l?"light":Gt(f),_=Wt(a),y=m.includes(n)?"section section-".concat(n):"section";return u&&(y=m.includes(u)?"section section-".concat(u):"section"),s?e.createElement(v,{href:h,className:"arrow-component arr--section-name","aria-label":"section-name"},e.createElement("div",{"data-test-id":"sectionTag",style:{backgroundColor:y.includes("section-solid")?_:""},className:"section-tag arrow-component "+C("".concat(p," ").concat(y),Pr)},y.includes("section-borderLeft")&&e.createElement("span",{className:"section-m_border-left__2oUyp",style:{color:_}}),d["display-name"]||d.name,e.createElement("div",{className:"section-m_border-bottom__3cRoD",style:{backgroundColor:"".concat("solid"===n?"":_)}}))):null};Br.propTypes={story:a.object.isRequired,template:a.oneOf(["","borderBottomSml","borderLeft","solid"]),borderColor:a.string,solidBorderColor:a.string,isLightTheme:a.bool},Br.defaultProps={template:"",isLightTheme:!1};var Fr={"./slider-horizontal-card.m.css":{horizontal:"slider-horizontal-card-m_horizontal__93KuC",content:"slider-horizontal-card-m_content__1EUZE",border:"slider-horizontal-card-m_border__2Mfp4"}},Dr=function(t){var r,o=t.story,n=t.border,i=void 0===n?"":n,a=t.theme,l=void 0===a?"":a,c=t.headerLevel,s=t.borderColor,u=void 0===s?"":s,d=t.config,m=void 0===d?{}:d;if(!o||(null==(r=o)||"object"===O(r)&&0===Object.entries(r).length&&r.constructor===Object||"string"==typeof r&&0===r.trim().length))return e.createElement("div",null);var h="full"===i?"border":"",f=Gt(l),p=m.localizationConfig,g=void 0===p?{}:p;return e.createElement("div",{style:{backgroundColor:l,color:f},className:C("horizontal ".concat(h),Fr)},e.createElement(Rr,{config:m,story:o,aspectRatio:[[4,3],[16,9]]}),e.createElement("div",{className:"arr--content slider-horizontal-card-m_content__1EUZE"},e.createElement(Br,{story:o,borderColor:u}),e.createElement(mr,{story:o,headerLevel:c,premiumStoryIconConfig:m}),e.createElement(fr,{story:o}),e.createElement(Nr,{config:g,story:o,isBottom:!0,prefix:"By"})))};Dr.propTypes={story:a.object.isRequired,border:a.string,theme:a.string,headerLevel:a.string,borderColor:a.string,config:a.object};var Hr=function(t){var r=t.color,o=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M17 20H-7V-4h24z",opacity:".384"}),e.createElement("path",{stroke:o,d:"M9 16L1 8l8-8"})))};Hr.propTypes={color:a.string};var Ur=function(t){var r=t.color,o=void 0===r?"#333":r;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 10 16"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.createElement("path",{d:"M-7-4h24v24H-7z",opacity:".384"}),e.createElement("path",{stroke:o,d:"M1 0l8 8-8 8"})))};Ur.propTypes={color:a.string};var Wr={"./slider-arrow.m.css":{arrow:"slider-arrow-m_arrow__1eBUU","left-arrow-dark":"slider-arrow-m_left-arrow-dark__3mTJS","right-arrow-dark":"slider-arrow-m_right-arrow-dark__3hWZe","left-arrow-light":"slider-arrow-m_left-arrow-light__2ipUK","right-arrow-light":"slider-arrow-m_right-arrow-light__3omMU","left-arrow-ltr":"slider-arrow-m_left-arrow-ltr__1ngNF","right-arrow-ltr":"slider-arrow-m_right-arrow-ltr__2svWX","left-arrow-rtl":"slider-arrow-m_left-arrow-rtl__2ynyn","right-arrow-rtl":"slider-arrow-m_right-arrow-rtl__1GjPz"}},qr=function(t){var r=t.selectedIndex,o=t.previousClick,n=t.nextClick,i=t.noOfItems,a=t.perView,l=t.languageDirection;if(i<1)return null;var c=z()||{},s=Gt(c.theme),u="rtl"===l?"left-arrow-rtl":"left-arrow-ltr",d="rtl"===l?"right-arrow-rtl":"right-arrow-ltr";return e.createElement(e.Fragment,null,0!==r?e.createElement("button",{onClick:o,className:("left-arrow ".concat(u)?"left-arrow ".concat(u)+" ":"")+C("arrow left-arrow-".concat(s," ").concat(u),Wr)},e.createElement(Hr,{color:"dark"===s?"#fff":"#333"})):null,r<i-1&&!(r>=i-a)?e.createElement("button",{onClick:n,className:("right-arrow ".concat(d)?"right-arrow ".concat(d)+" ":"")+C("arrow right-arrow-".concat(s," ").concat(d),Wr)},e.createElement(Ur,{color:"dark"===s?"#fff":"#333"})):null)};qr.propTypes={noOfItems:c,perView:c,slideIndicator:s,previousClick:u,nextClick:u,selectedIndex:c,languageDirection:s};var Vr={"./slider-indicator.m.css":{indicators:"slider-indicator-m_indicators__3MNXc",indicator:"slider-indicator-m_indicator__gTv3x","indicator-button":"slider-indicator-m_indicator-button__1e82r","indicator-dots":"slider-indicator-m_indicator-dots__2TR3H","indicator-dots-dark":"slider-indicator-m_indicator-dots-dark__sGrev","indicator-dots-light":"slider-indicator-m_indicator-dots-light__2nPn-","indicator-dashes":"slider-indicator-m_indicator-dashes__DyNCE","indicator-dashes-dark":"slider-indicator-m_indicator-dashes-dark__VrqJI","indicator-dashes-light":"slider-indicator-m_indicator-dashes-light__34ESx"}},Gr=function(t){var r=t.indicatorItems,o=t.indicatorClick,n=t.selectedIndex,i=t.indicatorType;if(r.length<1)return null;var a=z()||{},l=Gt(a.theme);return e.createElement("ul",{className:"slider-indicators slider-indicator-m_indicators__3MNXc"},r.map((function(t,r){return e.createElement("li",{key:"slider-".concat(r),className:"indicator slider-indicator-m_indicator__gTv3x",onClick:function(e){return o(e,r)}},e.createElement("button",{"aria-pressed":n===r?"true":"false",className:("indicator-button indicator-".concat(i)?"indicator-button indicator-".concat(i)+" ":"")+C("indicator-button indicator-".concat(i," indicator-").concat(i,"-").concat(l),Vr)}))})))};Gr.propTypes={indicatorItems:d,perView:c,indicatorType:s,indicatorClick:u,selectedIndex:c};var Zr=function(e,t,r,o){var n,i,a,l,c=Math.floor(r.current.scrollWidth*(e/o)),s="rtl"===t?-1*c:c;n=r.current,i=s,a=!0,n.scrollTo((er(l={},a?"left":"top",i),er(l,"behavior","smooth"),l))},Yr=function(e,t){var r;return function(){clearTimeout(r),r=setTimeout((function(){r=null,e()}),t)}},$r=function(t){var r=t.children,a=t.isArrow,l=t.interval,c=t.isInfinite,s=t.pauseOnHover,u=t.perView,d=t.slideIndicator,m=Cr(o(0),2),h=m[0],p=m[1],g=Cr(o(!1),2),v=g[0],_=g[1],y=f((function(e){return at(e,["qt","config","language","direction"],"ltr")})),b=r?r.length:0,w=n(null),E=r.length-(u-1),x=r.slice(0,E);i((function(){return w.current&&(w.current.addEventListener("scroll",Yr((function(){var e=Math.round(w.current.scrollLeft/w.current.scrollWidth*b);p(Math.abs(e))}),150)),0!==h&&Zr(h)),function(){w.current.removeEventListener("scroll",Yr)}}),[]),i((function(){if(c&&!v){var e=setInterval((function(){k()}),l);return function(){clearInterval(e)}}}),[c,v]);var k=function(){p((function(e){var t=e===b-u?0:e+1;return Zr(t,y,w,b),t}))},T=function(){s&&_(!v)};return e.createElement("div",{className:"scroll-snap-container"},e.createElement("div",{className:"scroll-snap-wrapper scroll-snap-m_wrapper__1Rz9v",onMouseEnter:T,onMouseLeave:T},e.createElement("div",{ref:w,className:"scroll-snap-carousel scroll-snap-m_carousel__2m3cg"},r),a&&e.createElement(qr,{noOfItems:b,perView:u,previousClick:function(e){e.preventDefault(),e.stopPropagation();var t=h-1;p(t),Zr(t,y,w,b)},nextClick:function(e){if(e.preventDefault(),e.stopPropagation(),h<b){var t=h+1;p(t),Zr(t,y,w,b)}},selectedIndex:h,languageDirection:y})),r.length>u&&"none"!==d&&e.createElement(Gr,{indicatorItems:x,indicatorClick:function(e,t){e.preventDefault(),e.stopPropagation(),p(t),Zr(t,y,w,b)},selectedIndex:h,indicatorType:d}))};$r.defaultProps={isArrow:!0,isInfinite:!1,interval:4e3,pauseOnHover:!0,perView:1,slideIndicator:"dots"},$r.propTypes={children:d.isRequired,isArrow:m,isInfinite:m,interval:c,pauseOnHover:m,perView:c,slideIndicator:s};var Jr,Kr={"./half-screen-slider.m.css":{"half-screen-slider":"half-screen-slider-m_half-screen-slider__1rprD",wrapper:"half-screen-slider-m_wrapper__32kXu",border:"half-screen-slider-m_border__2c1DP",dark:"half-screen-slider-m_dark__3L9l_",light:"half-screen-slider-m_light__2TZ5m",blink:"half-screen-slider-m_blink__g40vI"}},Xr=function(t){var r=t.collection,o=t.config,n=void 0===o?{}:o,i=n.collectionNameBorderColor,a=void 0===i?"":i,l=n.borderColor,c=void 0===l?"":l,s=n.theme,u=void 0===s?"":s,d=n.border,m=void 0===d?"":d,h=n.numberOfStoriesToShow,v=void 0===h?1:h,_=n.collectionNameTemplate,y=n.footerButton,b=void 0===y?"":y,E=n.footerSlotConfig,x=void 0===E?{}:E,k=n.navigationArrows,T=void 0===k||k,L=n.slideIndicator,N=void 0===L?"none":L,j=n.isInfinite,S=void 0!==j&&j,z=x.footerSlot,O=w(r),I=Gt(u),A="full"===m?"border":"";if(O.length<1)return null;var M=z?z():null,R=function(e){return e?parseInt(e):1}(v),P=p(),B=f((function(e){return g(e,["qt","config"],{})})),F=Jt(r,B);return e.createElement("div",{className:"full-width-with-padding arrow-component","data-test-id":"half-screen-slider",style:{backgroundColor:u,color:I}},e.createElement("div",{className:"half-screen-slider-m_half-screen-slider__1rprD"},e.createElement(Qt,{collection:r,collectionNameTemplate:_,collectionNameBorderColor:a}),e.createElement("div",{className:C("wrapper ".concat(A," ").concat(I),Kr)},e.createElement($r,{isArrow:T,slideIndicator:N,isInfinite:S},O.slice(0,R).map((function(t,r){return e.createElement(Dr,{headerLevel:"2",key:r,story:t,isHorizontal:!0,borderColor:c,config:n})}))))),e.createElement(nr,{template:b,collection:r,config:n,navigate:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";global.app.navigateToPage(e,t)}(P,F)},qtConfig:B}),M)},Qr=(Jr=Xr,function(t){return e.createElement(S.Provider,{value:t.config},e.createElement(Jr,t))});Xr.propTypes={footerButton:a.string,collection:a.object.isRequired,config:a.object.isRequired,border:a.string,autoplaySpeed:a.number,numberOfStoriesToShow:a.number,theme:a.string,collectionTemplate:a.string,collectionNameBorderColor:a.string,borderColor:a.string};export{Qr as default};
|
package/Headline/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t,{useContext as e,createContext as r}from"react";import n from"prop-types";import{Link as o}from"@quintype/components";import i from"lodash.get";import"react-timeago";import"date-fns-tz";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t){var e={exports:{}};return t(e,e.exports),e.exports}var c=s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={attributeNames:{styleName:"className"},generateScopedName:"[path]___[name]__[local]___[hash:base64:5]",handleMissingStyleName:"throw"};e.default=r})),u=l(s((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n=(r=c)&&r.__esModule?r:{default:r};var o=function(t,e){if("throw"===e)throw new Error(t);return"warn"===e&&console.warn(t),null};e.default=function(t,e,r){var i=Object.keys(e),a=r||{},l=a.handleMissingStyleName,s=void 0===l?n.default.handleMissingStyleName:l,c=a.autoResolveMultipleImports,u=void 0===c?n.default.autoResolveMultipleImports:c;return t?t.split(" ").filter((function(t){return t})).map((function(t){if(function(t){return-1!==t.indexOf(".")}(t))return function(t,e,r){var i=t.split("."),a=i[0],l=i[1],s=r||n.default.handleMissingStyleName;return l?e[a]?e[a][l]?e[a][l]:o("CSS module does not exist: "+l,s):o("CSS module import does not exist: "+a,s):o("Invalid style name: "+t,s)}(t,e,s);if(0===i.length)throw new Error("Cannot use styleName attribute for style name '"+t+"' without importing at least one stylesheet.");if(i.length>1){if(!u)throw new Error("Cannot use anonymous style name '"+t+"' with more than one stylesheet import without setting 'autoResolveMultipleImports' to true.");return function(t,e,r){var i=r||n.default.handleMissingStyleName,a=Object.keys(e).map((function(r){return e[r][t]&&r})).filter((function(t){return t}));if(a.length>1)throw new Error('Cannot resolve styleName "'+t+'" because it is present in multiple imports:\n\n\t'+a.join("\n\t")+'\n\nYou can resolve this by using a named import, e.g:\n\n\timport foo from "'+a[0]+'";\n\t<div styleName="foo.'+t+'" />\n\n');return 0===a.length?o("Could not resolve the styleName '"+t+"'.",i):e[a[0]][t]}(t,e,s)}var r=e[i[0]];return r[t]?r[t]:o("Could not resolve the styleName '"+t+"'.",s)})).filter((function(t){return t})).join(" "):""}}))),h=r();s((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n=h;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return z()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=L(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=u(t,e,r);if("normal"===s.type){if(n=r.done?v:f,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",f="suspendedYield",p="executing",v="completed",d={};function g(){}function y(){}function m(){}var w={};s(w,i,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(k([])));b&&b!==r&&n.call(b,i)&&(w=b);var E=m.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,l){var s=u(t[o],t,i);if("throw"!==s.type){var c=s.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,l)}))}l(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function L(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function O(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:z}}function z(){return{value:e,done:!0}}return y.prototype=m,s(E,"constructor",m),s(m,"constructor",y),y.displayName=s(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},x(j.prototype),s(j.prototype,a,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new j(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(E),s(E,l,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,S.prototype={constructor:S,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(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(n,o){return l.type="throw",l.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.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,d):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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));var f=Array.isArray,p="object"==typeof a&&a&&a.Object===Object&&a,v="object"==typeof self&&self&&self.Object===Object&&self,d=p||v||Function("return this")(),g=d.Symbol,y=Object.prototype,m=y.hasOwnProperty,w=y.toString,_=g?g.toStringTag:void 0;var b=function(t){var e=m.call(t,_),r=t[_];try{t[_]=void 0;var n=!0}catch(t){}var o=w.call(t);return n&&(e?t[_]=r:delete t[_]),o},E=Object.prototype.toString;var x=function(t){return E.call(t)},j=g?g.toStringTag:void 0;var L=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?b(t):x(t)};var O=function(t){return null!=t&&"object"==typeof t};var T=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==L(t)},S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/;var z=function(t,e){if(f(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!T(t))||(k.test(t)||!S.test(t)||null!=e&&t in Object(e))};var N=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var M,I=function(t){if(!N(t))return!1;var e=L(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},P=d["__core-js_shared__"],C=(M=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";var R=function(t){return!!C&&C in t},F=Function.prototype.toString;var A=function(t){if(null!=t){try{return F.call(t)}catch(t){}try{return t+""}catch(t){}}return""},D=/^\[object .+?Constructor\]$/,$=Function.prototype,G=Object.prototype,H=$.toString,V=G.hasOwnProperty,B=RegExp("^"+H.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var W=function(t){return!(!N(t)||R(t))&&(I(t)?B:D).test(A(t))};var Y=function(t,e){return null==t?void 0:t[e]};var q=function(t,e){var r=Y(t,e);return W(r)?r:void 0},U=q(Object,"create");var J=function(){this.__data__=U?U(null):{},this.size=0};var K=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Q=Object.prototype.hasOwnProperty;var X=function(t){var e=this.__data__;if(U){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Q.call(e,t)?e[t]:void 0},Z=Object.prototype.hasOwnProperty;var tt=function(t){var e=this.__data__;return U?void 0!==e[t]:Z.call(e,t)};var et=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=U&&void 0===e?"__lodash_hash_undefined__":e,this};function rt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}rt.prototype.clear=J,rt.prototype.delete=K,rt.prototype.get=X,rt.prototype.has=tt,rt.prototype.set=et;var nt=rt;var ot=function(){this.__data__=[],this.size=0};var it=function(t,e){return t===e||t!=t&&e!=e};var at=function(t,e){for(var r=t.length;r--;)if(it(t[r][0],e))return r;return-1},lt=Array.prototype.splice;var st=function(t){var e=this.__data__,r=at(e,t);return!(r<0)&&(r==e.length-1?e.pop():lt.call(e,r,1),--this.size,!0)};var ct=function(t){var e=this.__data__,r=at(e,t);return r<0?void 0:e[r][1]};var ut=function(t){return at(this.__data__,t)>-1};var ht=function(t,e){var r=this.__data__,n=at(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ft.prototype.clear=ot,ft.prototype.delete=st,ft.prototype.get=ct,ft.prototype.has=ut,ft.prototype.set=ht;var pt=ft,vt=q(d,"Map");var dt=function(){this.size=0,this.__data__={hash:new nt,map:new(vt||pt),string:new nt}};var gt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var yt=function(t,e){var r=t.__data__;return gt(e)?r["string"==typeof e?"string":"hash"]:r.map};var mt=function(t){var e=yt(this,t).delete(t);return this.size-=e?1:0,e};var wt=function(t){return yt(this,t).get(t)};var _t=function(t){return yt(this,t).has(t)};var bt=function(t,e){var r=yt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Et.prototype.clear=dt,Et.prototype.delete=mt,Et.prototype.get=wt,Et.prototype.has=_t,Et.prototype.set=bt;var xt=Et;function jt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(jt.Cache||xt),r}jt.Cache=xt;var Lt=jt;var Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tt=/\\(\\)?/g,St=function(t){var e=Lt(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ot,(function(t,r,n,o){e.push(n?o.replace(Tt,"$1"):r||t)})),e}));var kt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},zt=g?g.prototype:void 0,Nt=zt?zt.toString:void 0;var Mt=function t(e){if("string"==typeof e)return e;if(f(e))return kt(e,t)+"";if(T(e))return Nt?Nt.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var It=function(t){return null==t?"":Mt(t)};var Pt=function(t,e){return f(t)?t:z(t,e)?[t]:St(It(t))};var Ct=function(t){if("string"==typeof t||T(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Rt=function(t,e){for(var r=0,n=(e=Pt(e,t)).length;null!=t&&r<n;)t=t[Ct(e[r++])];return r&&r==n?t:void 0};var Ft=function(t,e,r){var n=null==t?void 0:Rt(t,e);return void 0===n?r:n},At=function(t){var e=function(t){return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16)}}(t);return.299*e.r+.587*e.g+.114*e.b},Dt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgba(255, 255, 255, 0)",e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t};function $t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t["story-template"],r=void 0===e?"":e,n=t.metadata,o=void 0===n?{}:n;return"news-elsewhere"===r?Ft(o,["reference-url"],""):""}n.shape({"sketches-host":n.string,"cdn-name":n.string,"cdn-image":n.string}),n.shape({headline:n.string,"last-published-at":n.number,subheadline:n.string});var Gt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"news-elsewhere"===Ft(t,["story-template"])?Ft(t,["metadata","reference-url"],""):t.url||e},Ht=function(e){var r=e.height,n=e.width,o=e.color,i=void 0===o?"#D8D8D8":o,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(0 2)"},t.createElement("path",{d:"M21.043 19.553c0-.743-.601-1.344-1.344-1.344h-15.4a1.343 1.343 0 100 2.688h15.4c.743 0 1.344-.603 1.344-1.344zM1.598 8.673c.022 0 .042 0 .064-.003l2.131 7.713h16.411l2.132-7.713c.022 0 .041.003.063.003a1.599 1.599 0 10-1.52-1.108L17.025 9.82 12.882 2.95a1.599 1.599 0 10-1.765 0L6.976 9.82 3.121 7.565a1.599 1.599 0 10-1.523 1.107z"}))))))};Ht.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Vt=function(e){var r=e.height,n=e.width,o=e.color,i=void 0===o?"#D5D5D5":o,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("path",{fill:i,fillRule:"nonzero",d:"M12.71 4.364A6.54 6.54 0 000 6.545a6.54 6.54 0 0012.71 2.182h4.745v4.364h4.363V8.727H24V4.364H12.71zM6.544 8.727a2.181 2.181 0 110-4.362 2.181 2.181 0 010 4.362z",transform:"translate(0 5)"})))))};Vt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Bt=function(e){var r=e.height,n=e.width,o=e.color,i=void 0===o?"#D5D5D5":o,a=e.positionTop;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 40 40",style:{position:"relative",top:a}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("g",{transform:"translate(8 8)"},t.createElement("path",{d:"M0 0H24V24H0z"}),t.createElement("g",{fill:i,fillRule:"nonzero",transform:"translate(3)"},t.createElement("path",{d:"M15.692 9h-.747V6c0-3.31-2.681-6-5.978-6C5.67 0 2.989 2.69 2.989 6v3h-.747A2.249 2.249 0 000 11.25v10.5A2.249 2.249 0 002.242 24h13.45a2.249 2.249 0 002.242-2.25v-10.5A2.249 2.249 0 0015.692 9zM4.982 6c0-2.206 1.787-4 3.985-4s3.985 1.794 3.985 4v3h-7.97V6z"}))))))};Bt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Wt=function(e){var r=e.width,n=e.height,o=e.color,i=void 0===o?"#D5D5D5":o,a=e.positionTop,l=void 0===a?"":a;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:n,viewBox:"0 0 40 40",style:{position:"relative",top:l}},t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},t.createElement("g",null,t.createElement("path",{fill:i,d:"M20 26L12.946577 29.7082039 14.2936609 21.854102 8.5873218 16.2917961 16.4732885 15.145898 20 8 23.5267115 15.145898 31.4126782 16.2917961 25.7063391 21.854102 27.053423 29.7082039z"}))))};Wt.propTypes={height:n.string,width:n.string,color:n.string,positionTop:n.string};var Yt=function(e){var r=e.width,n=e.height,o=e.color,i=e.iconType,a=e.positionTop;switch(i){case"crown":return t.createElement(Ht,{width:r,height:n,color:o,positionTop:a});case"lock":return t.createElement(Bt,{width:r,height:n,color:o,positionTop:a});case"key":return t.createElement(Vt,{width:r,height:n,color:o,positionTop:a});default:return t.createElement(Wt,{width:r,height:n,color:o,positionTop:a})}};function qt(){return t.createElement("svg",{className:"live-icon",xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24"},t.createElement("path",{fill:"#ff5858",d:"M12 18a6 6 0 110-12 6 6 0 010 12zm0 2.5a8.5 8.5 0 110-17 8.5 8.5 0 010 17zm0-1a7.5 7.5 0 100-15 7.5 7.5 0 000 15z"}))}Yt.propTypes={width:n.string,height:n.string,color:n.string,iconType:n.string,positionTop:n.string};var Ut={"./headline.m.css":{wrapper:"headline-m_wrapper__3nUmh",headline:"headline-m_headline__3_NhV",dark:"headline-m_dark__en3hW",light:"headline-m_light__3lKJB"}},Jt=function(r){var n=r.story,a=r.headerLevel,l=r.premiumStoryIconConfig,s=void 0===l?{}:l,c=r.isLink,f=e(h)||{},p=s.iconColor,v=void 0===p?"#F7B500":p,d=s.iconStyle,g=void 0===d?"star":d,y=s.enablePremiumStoryIcon,m=void 0!==y&&y,w=s.showLiveIcon,_=void 0!==w&&w,b=i(n,["alternative","home","default","headline"]),E=m&&"subscription"===i(n,["access"]),x=b||n.headline,j="h"+a,L=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(255,255,255)",e=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(t)?t:Dt(t);return At(e)<155?"light":"dark"}(f.theme),O=E?"wrapper":"",T="24px",S=_&&"live-blog"===n["story-template"]&&!i(n,["metadata","is-closed"],!1);return t.createElement("div",{"data-test-id":"headline",className:"arrow-component arr--headline "+u(O,Ut)},E&&t.createElement(Yt,{width:T,height:T,color:v,iconType:g,positionTop:function(){switch(parseInt(a)){case 1:return"-2px";case 2:return"2px";case 3:return"4px";case 4:return"5px";default:return"6px"}}()}),c?t.createElement(o,{href:Gt(n,"/".concat(n.slug)),externalLink:$t(n),"aria-label":"headline"},t.createElement(j,{className:u("headline ".concat(L),Ut)},S&&t.createElement(qt,null),x)):t.createElement(j,{className:u("headline ".concat(L),Ut)},S&&t.createElement(qt,null),x))};Jt.propTypes={story:n.object.isRequired,headerLevel:n.string,premiumStoryIconConfig:n.shape({iconColor:n.string,iconType:n.string,enablePremiumStoryIcon:n.bool}),isLink:n.bool},Jt.defaultProps={headerLevel:"6",isLink:!0};export{Jt as Headline};
|