1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7222],{85902(e,t,r){r.d(t,{mg:()=>X,vd:()=>F});var n=r(15299),s=r(30115),i=r.n(s),o=r(20311),a=r.n(o),l=r(2833),c=r.n(l),p=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(p||{}),u={rel:["amphtml","canonical","alternate"]},d={type:["application/ld+json"]},h={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},m=Object.values(p),y={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},f=Object.entries(y).reduce((e,[t,r])=>(e[r]=t,e),{}),g="data-rh",T="defaultTitle",b="defer",A="encodeSpecialCharacters",C="onChangeClientState",O="titleTemplate",x="prioritizeSeoTags",w=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},$=e=>{let t=w(e,"title");const r=w(e,O);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=w(e,T);return t||n||void 0},k=e=>w(e,C)||(()=>{}),S=(e,t)=>t.filter(t=>"undefined"!==typeof t[e]).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),E=(e,t)=>t.filter(e=>"undefined"!==typeof e.base).map(e=>e.base).reverse().reduce((t,r)=>{if(!t.length){const n=Object.keys(r);for(let s=0;s<n.length;s+=1){const i=n[s].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}}return t},[]),L=(e,t,r)=>{const n={};return r.filter(t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(r=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(r)),!1);var r}).map(t=>t[e]).reverse().reduce((e,r)=>{const s={};r.filter(e=>{let r;const i=Object.keys(e);for(let n=0;n<i.length;n+=1){const s=i[n],o=s.toLowerCase();-1===t.indexOf(o)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===o&&"stylesheet"===e[o].toLowerCase()||(r=o),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;const o=e[r].toLowerCase();return n[r]||(n[r]={}),s[r]||(s[r]={}),!n[r][o]&&(s[r][o]=!0,!0)}).reverse().forEach(t=>e.push(t));const i=Object.keys(s);for(let t=0;t<i.length;t+=1){const e=i[t],r={...n[e],...s[e]};n[e]=r}return e},[]).reverse()},M=(e,t)=>{if(Array.isArray(e)&&e.length)for(let r=0;r<e.length;r+=1){if(e[r][t])return!0}return!1},v=e=>Array.isArray(e)?e.join(""):e,D=(e,t)=>Array.isArray(e)?e.reduce((e,r)=>(((e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1})(r,t)?e.priority.push(r):e.default.push(r),e),{priority:[],default:[]}):{default:e,priority:[]},j=(e,t)=>({...e,[t]:void 0}),H=["noscript","script","style"],P=(e,t=!0)=>!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),I=e=>Object.keys(e).reduce((t,r)=>{const n="undefined"!==typeof e[r]?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),U=(e,t={})=>Object.keys(e).reduce((t,r)=>(t[y[r]||r]=e[r],t),t),_=(e,t)=>t.map((t,r)=>{const s={key:r,[g]:!0};return Object.keys(t).forEach(e=>{const r=y[e]||e;if("innerHTML"===r||"cssText"===r){const e=t.innerHTML||t.cssText;s.dangerouslySetInnerHTML={__html:e}}else s[r]=t[e]}),n.default.createElement(e,s)}),N=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>((e,t,r)=>{const s=U(r,{key:t,[g]:!0}
1);return[n.default.createElement("title",s,t)]})(0,t.title,t.titleAttributes),toString:()=>((e,t,r,n)=>{const s=I(r),i=v(t);return s?`<${e} ${g}="true" ${s}>${P(i,n)}</${e}>`:`<${e} ${g}="true">${P(i,n)}</${e}>`})(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>U(t),toString:()=>I(t)};default:return{toComponent:()=>_(e,t),toString:()=>((e,t,r=!0)=>t.reduce((t,n)=>{const s=n,i=Object.keys(s).filter(e=>!("innerHTML"===e||"cssText"===e)).reduce((e,t)=>{const n="undefined"===typeof s[t]?t:`${t}="${P(s[t],r)}"`;return e?`${e} ${n}`:n},""),o=s.innerHTML||s.cssText||"",a=-1===H.indexOf(e);return`${t}<${e} ${g}="true" ${i}${a?"/>":`>${o}</${e}>`}`},""))(e,t,r)}}},q=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:p,metaTags:m,scriptTags:y}=e,f={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:f,linkTags:p,metaTags:m,scriptTags:y}=(({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const s=D(e,h),i=D(t,u),o=D(r,d);return{priorityMethods:{toComponent:()=>[..._("meta",s.priority),..._("link",i.priority),..._("script",o.priority)],toString:()=>`${N("meta",s.priority,n)} ${N("link",i.priority,n)} ${N("script",o.priority,n)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}})(e)),{priority:f,base:N("base",t,n),bodyAttributes:N("bodyAttributes",r,n),htmlAttributes:N("htmlAttributes",s,n),link:N("link",p,n),meta:N("meta",m,n),noscript:N("noscript",i,n),script:N("script",y,n),style:N("style",o,n),title:N("title",{title:a,titleAttributes:l},n)}},R=[],B=!("undefined"===typeof window||!window.document||!window.document.createElement),z=class{instances=[];canUseDOM=B;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?R:this.instances,add:e=>{(this.canUseDOM?R:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?R:this.instances).indexOf(e);(this.canUseDOM?R:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=q({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},K=n.default.createContext({}),F=class e extends n.Component{static canUseDOM=B;helmetData;constructor(t){super(t),this.helmetData=new z(this.props.context||{},e.canUseDOM)}render(){return n.default.createElement(K.Provider,{value:this.helmetData.value},this.props.children)}},Y=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${g}]`),s=[].slice.call(n),i=[];let o;return t&&t.length&&t.forEach(t=>{const r=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)r.innerHTML=t.innerHTML;else if("cssText"===e)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{const n=e,s="undefined"===typeof t[n]?"":t[n];r.setAttribute(e,s)}r.setAttribute(g,"true"),s.some((e,t)=>(o=t,r.isEqualNode(e)))?s.splice(o,1):i.push(r)}),s.forEach(e=>e.parentNode?.removeChild(e)),i.forEach(e=>r.appendChild(e)),{oldTags:s,newTags:i}},G=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(g),s=n?n.split(","):[],i=[...s],o=Object.keys(t);for(const a of o){const e=t[a]||"";r.getAttribute(a)!==e&&r.setAttribute(a,e),-1===s.indexOf(a)&&s.push(a);const n=i.indexOf(a);-1!==n&&i.splice(n,1)}for(let a=i.length-1;a>=0;a-=1)r.removeAttribute(i[a]);s.length===i.length?r.removeAttribute(g):r.getAttribute(g)!==o.join(",")&&r.setAttribute(g,o.join(","))},W=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:c,styleTags:p,title:u,titleAttributes:d}=e;G("body",n),G("html",s),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=v(e)),G("title",t)})(u,d);const h={baseTag:Y("base",r),linkTags:Y("link",i),metaTags:Y("meta",o),noscriptTags:Y("noscript",a),scriptTags:Y("script",c),styleTags:Y("style",p)},m={},y={};
1Object.keys(h).forEach(e=>{const{newTags:t,oldTags:r}=h[e];t.length&&(m[e]=t),r.length&&(y[e]=h[e].oldTags)}),t&&t(),l(e,m,y)},J=null,Q=e=>{J&&cancelAnimationFrame(J),e.defer?J=requestAnimationFrame(()=>{W(e,()=>{J=null})}):(W(e),J=null)},V=class extends n.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let r=null;const n=(s=e.get().map(e=>{const t={...e.props};return delete t.context,t}),{baseTag:E(["href"],s),bodyAttributes:S("bodyAttributes",s),defer:w(s,b),encode:w(s,A),htmlAttributes:S("htmlAttributes",s),linkTags:L("link",["rel","href"],s),metaTags:L("meta",["name","charset","http-equiv","property","itemprop"],s),noscriptTags:L("noscript",["innerHTML"],s),onChangeClientState:k(s),scriptTags:L("script",["src","innerHTML"],s),styleTags:L("style",["cssText"],s),title:$(s),titleAttributes:S("titleAttributes",s),prioritizeSeoTags:M(s,x)});var s;F.canUseDOM?Q(n):q&&(r=q(n)),t(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},X=class extends n.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!i()(j(this.props,"helmetData"),j(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(t=>{r={...r,[t]:e[t]}}),r}warnOnInvalidChildren(e,t){return a()(m.some(t=>e.type===t),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${m.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),a()(!t||"string"===typeof t||Array.isArray(t)&&!t.some(e=>"string"!==typeof e),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return n.default.Children.forEach(e,e=>{if(!e||!e.props)return;const{children:n,...s}=e.props,i=Object.keys(s).reduce((e,t)=>(e[f[t]||t]=s[t],e),{});let{type:o}=e;
1switch("symbol"===typeof o?o=o.toString():this.warnOnInvalidChildren(e,n),o){case"Symbol(react.fragment)":t=this.mapChildrenToProps(n,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(e,r,i,n);break;default:t=this.mapObjectTypeChildren(e,t,i,n)}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:s}=t;if(e&&(r=this.mapChildrenToProps(e,r)),s&&!(s instanceof z)){s=new z(s.context,!0),delete r.helmetData}return s?n.default.createElement(V,{...r,context:s.value}):n.default.createElement(K.Consumer,null,e=>n.default.createElement(V,{...r,context:e}))}}}}]); 2//# sourceMappingURL=npm.react-helmet-async.65cb5d8e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.