UNPKG

@europeana/portal

Version:
3 lines 25.1 kB
/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{637:function(e,t,r){var content=r(640);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(106).default)("688b9c6f",content,!0,{sourceMap:!1})},638:function(e,t,r){"use strict";var n=r(6),o=r(82);function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var d={name:"SocialShare",props:{mediaUrl:{type:String,default:""},withText:{type:Boolean,default:!1}},computed:c(c({},Object(o.b)({shareUrl:"http/canonicalUrlWithoutLocale"})),{},{networks(){return[{identifier:"facebook",name:"Facebook",url:"https://www.facebook.com/sharer/sharer.php?display=page&u=".concat(this.shareUrl)},{identifier:"twitter",name:"Twitter",url:"https://twitter.com/intent/tweet?text=".concat(this.shareUrl)},{identifier:"pinterest",name:"Pinterest",url:"https://pinterest.com/pin/create/link/?url=".concat(this.shareUrl)+(this.mediaUrl?"&media=".concat(this.mediaUrl):"")}]}})},m=(r(639),r(40)),component=Object(m.a)(d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",e._l(e.networks,(function(t,n){return r("b-link",{key:n,class:"social-share mr-1 "+t.identifier,attrs:{title:e.$t("actions.shareOn",{social:t.name}),href:t.url,"data-qa":"share "+t.identifier+" button"},nativeOn:{click:function(r){e.$matomo&&e.$matomo.trackEvent("Item_share","Click social share button",t.url)}}},[r("span",{class:"icon-"+t.identifier}),e._v(" "),e.withText?r("span",{staticClass:"text"},[e._v(e._s(t.name)+"\n ")]):e._e()])})),1)}),[],!1,null,"a553b8a4",null);t.a=component.exports},639:function(e,t,r){"use strict";r(637)},640:function(e,t,r){var n=r(105)(!1);n.push([e.i,"a[data-v-a553b8a4]{align-items:center;background:transparent;border:1px solid #1a1a1a;border-radius:50%;color:#1a1a1a;display:inline-flex;height:calc(2.5rem - 1px);justify-content:center;text-decoration:none;transition:background .25s;width:calc(2.5rem - 1px)}a [class^=icon][data-v-a553b8a4]{color:#1a1a1a;font-size:1.25rem}a[data-v-a553b8a4]:hover{background:#1a1a1a}a:hover [class^=icon][data-v-a553b8a4]{color:#fff}",""]),e.exports=n},641:function(e,t,r){"use strict";r.r(t);r(21),r(42),r(22),r(14),r(38),r(43),r(48),r(80),r(41),r(76);var n=r(141),o=r.n(n),l=r(159),c=r(642),d=r(24),m=r(160),h={name:"ContentCard",components:{ClientOnly:o.a,SmartLink:l.a,MediaDefaultThumbnail:()=>r.e(23).then(r.bind(null,1101))},mixins:[c.a],props:{title:{type:[String,Object],default:""},subTitle:{type:String,default:null},texts:{type:Array,default:()=>[]},hitsText:{type:Object,default:null},url:{type:[String,Object],default:""},imageUrl:{type:String,default:""},imageContentType:{type:String,default:null},imageWidth:{type:Number,default:null},imageHeight:{type:Number,default:null},imageAlt:{type:String,default:""},imageOptimisationOptions:{type:Object,default:()=>({})},lazy:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},variant:{type:String,default:"default"},omitAllUris:{type:Boolean,default:!1},omitUrisIfOtherValues:{type:Boolean,default:!1},limitValuesWithinEachText:{type:Number,default:-1},blankImageHeight:{type:Number,default:null},blankImageWidth:{type:Number,default:null},logo:{type:Boolean,default:!1},mediaType:{type:String,default:null},offset:{type:Number,default:null}},data(){return{cardImageUrl:this.imageUrl,displayLabelTypes:"exhibitions|galleries|blog|collections",themes:m.a.map((e=>e.id))}},computed:{cardClass(){return"".concat(this.variant,"-card")},displayTitle(){if(this.title){if("string"==typeof this.title)return{value:this.title,code:null};var e=Object(d.h)(this.title,this.$i18n.locale);return{value:e.values[0],code:e.code}}return null},displaySubTitle(){return this.subTitle||this.displayLabel},displayLabel(){if(!this.displayLabelType)return!1;if("collections"===this.displayLabelType){var e="string"==typeof this.url?this.url.split("/").pop().split("-").shift():this.url.params.pathMatch;return this.themes.includes(e)?this.$t("cardLabels.theme"):this.$t("cardLabels.".concat(this.displayLabelTypeCollections))}return"blog"===this.displayLabelType?this.$tc("blog.posts",1):this.$tc("".concat(this.displayLabelType,".").concat(this.displayLabelType),1)},displayLabelTypeCollections(){return"object"==typeof this.url?this.url.params.type:this.url.split("/").slice(-2,-1)},displayLabelType(){return!!this.displayLabelMatch&&this.displayLabelMatch[1]},displayLabelMatch(){return"object"==typeof this.url?this.displayLabelMatchObject:this.displayLabelMatchString},displayLabelMatchObject(){return this.url.name.match(new RegExp("(".concat(this.displayLabelTypes,")")))},displayLabelMatchString(){return this.url.match(new RegExp("/(".concat(this.displayLabelTypes,")[/.]")))},displayTexts(){return this.texts.filter(Boolean).map((e=>"string"==typeof e?{values:[e],code:null}:Array.isArray(e)?{values:e,code:null}:Object(d.h)(e,this.$i18n.locale,{omitUrisIfOtherValues:this.omitUrisIfOtherValues,omitAllUris:this.omitAllUris})))},optimisedImageUrl(){return this.$options.filters.optimisedImageUrl(this.imageUrl,this.imageContentType,this.imageOptimisationOptions)}},watch:{imageUrl(){this.cardImageUrl=this.imageUrl}},methods:{cardText(e){var t=this.limitValuesWithinEachText>-1?e.slice(0,this.limitValuesWithinEachText):[].concat(e);e.length>t.length&&t.push(this.$t("formatting.ellipsis"));var r=t.join(this.$t("formatting.listSeperator")+" "),n=this.stripMarkdown(r);return this.$options.filters.truncate(n,255,this.$t("formatting.ellipsis"))},redrawMasonry(){this.$redrawVueMasonry&&this.$nextTick((()=>{this.$redrawVueMasonry()}))},imageNotFound(){this.cardImageUrl="",this.redrawMasonry()},imageLoaded(e){e.target.src.startsWith("data:")||this.redrawMasonry()}}},f=r(40),y=r(643),v=r.n(y),component=Object(f.a)(h,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-card",{staticClass:"text-left content-card",class:e.cardClass,attrs:{"data-qa":"content card","no-body":""}},[r("div",{staticClass:"card-wrapper"},[r("SmartLink",{attrs:{destination:e.url,"link-class":"card-link","aria-label":e.displayTitle?e.displayTitle.value:null,title:"mosaic"===e.variant&&e.displayTitle?e.displayTitle.value:null}}),e._v(" "),"mini"!==e.variant?r("MediaDefaultThumbnail",{directives:[{name:"show",rawName:"v-show",value:!e.cardImageUrl,expression:"!cardImageUrl"}],attrs:{"media-type":e.mediaType,offset:e.offset}}):e._e(),e._v(" "),e.cardImageUrl?r("div",{staticClass:"card-img",class:{logo:e.logo}},[e.lazy?r("b-img-lazy",{attrs:{src:e.optimisedImageUrl,"blank-width":e.blankImageWidth,"blank-height":e.blankImageHeight,width:e.imageWidth,height:e.imageHeight,alt:e.imageAlt},nativeOn:{error:function(t){return e.imageNotFound.apply(null,arguments)},load:function(t){return e.imageLoaded.apply(null,arguments)}}}):r("b-img",{attrs:{src:e.optimisedImageUrl,width:e.imageWidth,height:e.imageHeight,alt:e.imageAlt},on:{error:e.imageNotFound,load:e.imageLoaded}})],1):e._e(),e._v(" "),"mosaic"!==e.variant?r("b-card-body",{attrs:{"data-qa":"card body"}},[e.displaySubTitle&&"mini"!==e.variant&&e.showSubtitle?r("b-card-sub-title",{staticClass:"mt-0",attrs:{"sub-title-tag":"div","sub-title-text-variant":"default"}},[e._v("\n "+e._s(e.displaySubTitle)+"\n ")]):e._e(),e._v(" "),r("div",{staticClass:"title-texts-wrapper"},[e.displayTitle?r("b-card-title",{attrs:{"title-tag":"div","data-qa":"card title",lang:e.displayTitle.code}},[r("span",[e._v("\n "+e._s(e._f("truncate")(e.displayTitle.value,90,e.$t("formatting.ellipsis")))+"\n ")])]):e._e(),e._v(" "),e.hitsText?r("b-card-text",{attrs:{"text-tag":"div","data-qa":"highlighted search term"}},[r("p",[e._v("\n "+e._s(e.hitsText.prefix)),r("strong",{staticClass:"has-text-highlight"},[e._v(e._s(e.hitsText.exact))]),e._v(e._s(e.hitsText.suffix)+"\n ")])]):e._e(),e._v(" "),e.displayTexts.length>0?e._l(e.displayTexts,(function(text,t){return r("b-card-text",{key:t,attrs:{lang:text.code,"text-tag":"div"}},[r("p",{domProps:{innerHTML:e._s(e.cardText(text.values))}})])})):e._e()],2),e._v(" "),r("client-only",[e._t("footer")],2)],1):e._e()],1),e._v(" "),r("client-only",[e._t("image-overlay")],2)],1)}),[],!1,null,null,null);"function"==typeof v.a&&v()(component);t.default=component.exports},642:function(e,t,r){"use strict";r(80),r(14),r(41),r(21),r(22),r(28);var n=r(645);t.a={methods:{stripMarkdown(text){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""];for(var pattern of(text=n.marked.parse(text),(e=>[/\n$/].concat(e.map((e=>new RegExp("</?".concat(e,".*?>"),"gi")))))(e)))text=text.replace(pattern,"");return text}}}},643:function(e,t){},644:function(e,t,r){var content=r(651);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(106).default)("7d1c1bc9",content,!0,{sourceMap:!1})},649:function(e,t,r){"use strict";var n={name:"SocialShareModal",components:{SocialShare:r(638).a},props:{mediaUrl:{type:String,default:null}}},o=(r(650),r(40)),component=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-modal",{attrs:{id:"share-modal",title:e.$t("actions.share"),"hide-header-close":"","hide-footer":"","data-qa":"share modal"}},[r("div",{staticClass:"icon-wrapper"},[r("SocialShare",{attrs:{"media-url":e.mediaUrl,"with-text":""}})],1),e._v(" "),e._t("default"),e._v(" "),r("b-button",{staticClass:"mt-4",attrs:{variant:"outline-primary"},on:{click:function(t){return e.$bvModal.hide("share-modal")}}},[e._v("\n "+e._s(e.$t("actions.close"))+"\n ")])],2)}),[],!1,null,null,null);t.a=component.exports},650:function(e,t,r){"use strict";r(644)},651:function(e,t,r){var n=r(105)(!1);n.push([e.i,'#share-modal .modal-content .modal-body .icon-wrapper>div{display:flex;justify-content:space-between}#share-modal .modal-content .modal-body a{border-radius:.25rem;width:calc(33.3333333333% - 10px);height:3rem;margin-right:0 !important;justify-content:flex-start;padding-left:1rem}#share-modal .modal-content .modal-body a.facebook{border:solid 1px #4064ac}#share-modal .modal-content .modal-body a.facebook span{color:#4064ac}#share-modal .modal-content .modal-body a.twitter{border:solid 1px #1c9ceb}#share-modal .modal-content .modal-body a.twitter span{color:#1c9ceb}#share-modal .modal-content .modal-body a.pinterest{border:solid 1px #ba0a21}#share-modal .modal-content .modal-body a.pinterest span{color:#ba0a21}#share-modal .modal-content .modal-body a:hover{background:#fff}#share-modal .modal-content .modal-body a span.text{font-family:"Open Sans","Arial",sans-serif;font-weight:600;padding-left:.75rem}@media(max-width: 576px){#share-modal .modal-content .modal-body .icon-wrapper>div{flex-direction:column}#share-modal .modal-content .modal-body .icon-wrapper>div a{width:100%;margin-bottom:10px}}',""]),e.exports=n},663:function(e,t,r){"use strict";var n=r(685),o=r.n(n),l=(r(21),r(42),r(22),r(14),r(28),r(24)),c={name:"ItemPreviewCard",components:{ContentCard:r(641).default,RecommendationButtons:()=>r.e(122).then(r.bind(null,1115)),UserButtons:()=>r.e(21).then(r.bind(null,1106)),RightsStatement:()=>r.e(115).then(r.bind(null,661))},props:{item:{type:Object,required:!0},hitSelector:{type:Object,default:null},variant:{type:String,default:"default"},lazy:{type:Boolean,default:!0},showPins:{type:Boolean,default:!1},showMove:{type:Boolean,default:!1},enableAcceptRecommendation:{type:Boolean,default:!1},enableRejectRecommendation:{type:Boolean,default:!1},offset:{type:Number,default:null}},computed:{dcTitle(){return this.unpublishedItem?{[this.$i18n.locale]:[this.$t("record.status.unpublished")]}:this.item.dcTitleLangAware},unpublishedItem(){var e=Object.keys(this.item);return 1===e.length&&"id"===e[0]},texts(){if(["explore","mosaic"].includes(this.variant))return[];var e=[];return"list"===this.variant?!this.hitSelector&&this.item.dcDescriptionLangAware&&e.unshift(this.item.dcDescriptionLangAware):(this.item.dcCreatorLangAware&&e.unshift(this.item.dcCreatorLangAware),e.push(this.item.dataProvider)),e},hitsText(){return"list"===this.variant?this.hitSelector:null},cardClass(){return"list"===this.variant?"mx-0":null},identifier(){return this.item.id.replace("http://data.europeana.eu/item/","")},url(){return{name:"item-all",params:{pathMatch:this.identifier.slice(1)}}},imageUrl(){var e;return this.$apis.thumbnail.edmPreview(null===(e=this.item.edmPreview)||void 0===e?void 0:e[0],{size:400,type:this.item.type})||this.$apis.thumbnail.generic(this.item.id,{size:400,type:this.item.type})},subTitle(){return"list"===this.variant?Object(l.h)(this.item.dataProvider,this.$i18n.locale).values[0]:null},rights(){var e;return"list"===this.variant?null===(e=this.item.rights)||void 0===e?void 0:e[0]:null},type(){return this.item.type}}},d=r(40),m=r(669),h=r.n(m),component=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentCard",{class:e.cardClass,attrs:{title:e.dcTitle||e.item.dcDescriptionLangAware,url:e.url,"image-url":e.imageUrl,texts:e.texts,"hits-text":e.hitsText,"limit-values-within-each-text":3,"omit-all-uris":!0,"blank-image-height":280,variant:e.variant,lazy:e.lazy,"sub-title":e.subTitle,"media-type":e.type,offset:e.offset},scopedSlots:e._u(["list"===e.variant?{key:"footer",fn:function(){return[r("div",{staticClass:"data-and-buttons-wrapper d-flex"},[e.rights?r("RightsStatement",{attrs:{"rights-statement-url":e.rights,variant:"simple"}}):e._e(),e._v(" "),e.type?r("span",{staticClass:"d-inline-flex align-items-center text-uppercase"},[r("span",{staticClass:"icon-file"}),e._v(e._s(e.type)+"\n ")]):e._e(),e._v(" "),r("UserButtons",{attrs:{identifier:e.identifier,"show-pins":e.showPins,"show-move":e.showMove,"button-text":!0,"button-variant":"light-flat"},on:{like:function(t){return e.$emit("like",e.identifier)},unlike:function(t){return e.$emit("unlike",e.identifier)}}})],1)]},proxy:!0}:{key:"image-overlay",fn:function(){return[e.enableAcceptRecommendation||e.enableRejectRecommendation?r("RecommendationButtons",{attrs:{identifier:e.identifier,"enable-accept-button":e.enableAcceptRecommendation,"enable-reject-button":e.enableRejectRecommendation}}):r("UserButtons",{attrs:{identifier:e.identifier,"show-pins":e.showPins,"show-move":e.showMove},on:{like:function(t){return e.$emit("like",e.identifier)},unlike:function(t){return e.$emit("unlike",e.identifier)}}})]},proxy:!0}],null,!0)})}),[],!1,null,null,null);"function"==typeof h.a&&h()(component);var f=component.exports,y={name:"ItemPreviewCardGroup",components:{draggable:o.a,ItemPreviewCard:f},props:{items:{type:Array,default:()=>[]},hits:{type:Array,default:null},view:{type:String,default:"grid"},showPins:{type:Boolean,default:!1},showRelated:{type:Boolean,default:!1},draggableItems:{type:Boolean,default:!1},enableAcceptRecommendations:{type:Boolean,default:!1},enableRejectRecommendations:{type:Boolean,default:!1}},data:()=>({cards:[]}),fetch(){this.cards=this.items.slice(0,4).concat("related").concat(this.items.slice(4))},computed:{cardGroupClass(){var e;switch(this.view){case"list":e="card-group-list mx-0";break;case"explore":e="card-deck-4-cols narrow-gutter explore-more"}return e},cardVariant(){return"grid"===this.view?"default":this.view},masonryActive(){return"grid"===this.view||"mosaic"===this.view}},watch:{"cards.length":"redrawMasonry",items(){this.$fetch()}},mounted(){this.redrawMasonry()},methods:{endItemDrag(){this.$emit("endItemDrag",this.cards.filter((e=>"related"!==e)))},itemHitSelector(e){if(!this.hits)return null;var t=this.hits.find((t=>e.id===t.scope));return t?t.selectors[0]:null},redrawMasonry(){"function"==typeof this.$redrawVueMasonry&&this.masonryActive&&this.$nextTick((()=>{this.$redrawVueMasonry()}))}}},v=Object(d.a)(y,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.masonryActive?r("div",{directives:[{name:"masonry",rawName:"v-masonry"}],key:"searchResultsGrid"+e.view,staticClass:"masonry-container",attrs:{"transition-duration":"0.1","item-selector":".card","horizontal-order":"true","column-width":".masonry-container .card:not(.header-card)","data-qa":"item previews "+e.view}},[e._t("default"),e._v(" "),r(e.draggableItems?"draggable":"div",{tag:"component",attrs:{draggable:e.draggableItems&&".item",handle:".move-button"},on:{end:e.endItemDrag},model:{value:e.cards,callback:function(t){e.cards=t},expression:"cards"}},[e._l(e.cards,(function(t,n){return["related"===t?[r("b-card",{directives:[{name:"show",rawName:"v-show",value:e.showRelated,expression:"showRelated"}],key:n,staticClass:"text-left related-collections-card mb-4"},[e._t("related")],2)]:r("ItemPreviewCard",{key:n,staticClass:"item",attrs:{item:t,"hit-selector":e.itemHitSelector(t),variant:e.cardVariant,lazy:!0,"enable-accept-recommendation":e.enableAcceptRecommendations,"enable-reject-recommendation":e.enableRejectRecommendations,"show-pins":e.showPins,"show-move":e.draggableItems,offset:e.items.findIndex((function(e){return e.id===t.id})),"data-qa":"item preview"},on:{like:function(r){return e.$emit("like",t.id)},unlike:function(r){return e.$emit("unlike",t.id)}}})]}))],2)],2):r(e.draggableItems?"draggable":"b-card-group",{tag:"component",class:e.cardGroupClass,attrs:{draggable:e.draggableItems&&".item","data-qa":"item previews "+e.view,deck:""},on:{end:e.endItemDrag},model:{value:e.cards,callback:function(t){e.cards=t},expression:"cards"}},[e._t("default"),e._v(" "),e._l(e.cards,(function(t,n){return["related"===t?[r("b-card",{directives:[{name:"show",rawName:"v-show",value:e.showRelated,expression:"showRelated"}],key:n,staticClass:"text-left related-collections-card mb-4"},[e._t("related")],2)]:r("ItemPreviewCard",{key:t.id,staticClass:"item",attrs:{item:t,"hit-selector":e.itemHitSelector(t),variant:e.cardVariant,"show-pins":e.showPins,"show-move":e.draggableItems,offset:e.items.findIndex((function(e){return e.id===t.id})),"data-qa":"item preview"},on:{like:function(r){return e.$emit("like",t.id)},unlike:function(r){return e.$emit("unlike",t.id)}}})]}))],2)}),[],!1,null,null,null);t.a=v.exports},669:function(e,t){},786:function(e,t,r){"use strict";var n,o=r(893)("http-errors"),l=r(894),c=r(895),d=r(897),m=r(898);function h(e){return Number(String(e).charAt(0)+"00")}function f(e,t){var desc=Object.getOwnPropertyDescriptor(e,"name");desc&&desc.configurable&&(desc.value=t,Object.defineProperty(e,"name",desc))}function y(e){return"Error"!==e.substr(-5)?e+"Error":e}e.exports=function e(){for(var t,r,n=500,l={},i=0;i<arguments.length;i++){var d=arguments[i],m=typeof d;if("object"===m&&d instanceof Error)n=(t=d).status||t.statusCode||n;else if("number"===m&&0===i)n=d;else if("string"===m)r=d;else{if("object"!==m)throw new TypeError("argument #"+(i+1)+" unsupported type "+m);l=d}}"number"==typeof n&&(n<400||n>=600)&&o("non-error status code; use only 4xx or 5xx status codes");("number"!=typeof n||!c.message[n]&&(n<400||n>=600))&&(n=500);var f=e[n]||e[h(n)];t||(t=f?new f(r):new Error(r||c.message[n]),Error.captureStackTrace(t,e));f&&t instanceof f&&t.status===n||(t.expose=n<500,t.status=t.statusCode=n);for(var y in l)"status"!==y&&"statusCode"!==y&&(t[y]=l[y]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return d(e,Error),e}(),e.exports.isHttpError=(n=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof n||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,r){t.forEach((function(code){var t,n=m(c.message[code]);switch(h(code)){case 400:t=function(e,t,code){var r=y(t);function n(e){var t=null!=e?e:c.message[code],o=new Error(t);return Error.captureStackTrace(o,n),l(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),o}return d(n,e),f(n,r),n.prototype.status=code,n.prototype.statusCode=code,n.prototype.expose=!0,n}(r,n,code);break;case 500:t=function(e,t,code){var r=y(t);function n(e){var t=null!=e?e:c.message[code],o=new Error(t);return Error.captureStackTrace(o,n),l(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),o}return d(n,e),f(n,r),n.prototype.status=code,n.prototype.statusCode=code,n.prototype.expose=!1,n}(r,n,code)}t&&(e[code]=t,e[n]=t)}))}(e.exports,c.codes,e.exports.HttpError)},787:function(e,t,r){e.exports=r.p+"img/il-gallery-unauthorised.a8a707f.svg"},893:function(e,t,r){"use strict";function n(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");return e}function o(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var n=Object.getOwnPropertyDescriptor(e,t);if(!n)throw new TypeError("must call property on owner object");if(!n.configurable)throw new TypeError("property must be configurable")}e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");function t(e){}return t._file=void 0,t._ignored=!0,t._namespace=e,t._traced=!1,t._warned=Object.create(null),t.function=n,t.property=o,t}},894:function(e,t,r){"use strict";e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r]);return e})},895:function(e,t,r){"use strict";var n=r(896);function o(code){if(!Object.prototype.hasOwnProperty.call(l.message,code))throw new Error("invalid status code: "+code);return l.message[code]}function l(code){if("number"==typeof code)return o(code);if("string"!=typeof code)throw new TypeError("code must be a number or string");var e=parseInt(code,10);return isNaN(e)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(l.code,t))throw new Error('invalid status message: "'+e+'"');return l.code[t]}(code):o(e)}e.exports=l,l.message=n,l.code=function(e){var map={};return Object.keys(e).forEach((function(code){var t=e[code],r=Number(code);map[t.toLowerCase()]=r})),map}(n),l.codes=function(e){return Object.keys(e).map((function(code){return Number(code)}))}(n),l.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},l.empty={204:!0,205:!0,304:!0},l.retry={502:!0,503:!0,504:!0}},896:function(e){e.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')},897:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},898:function(e,t,r){"use strict";e.exports=function(e){return e.split(" ").map((function(e){return e.slice(0,1).toUpperCase()+e.slice(1)})).join("").replace(/[^ _0-9a-z]/gi,"")}}}]); //# sourceMappingURL=2a37974.modern.js.map