import{R as C,r as F}from"./index.d8a7997a.js";import{P as l}from"./af9dddda.js";import{r as te}from"./5a0f1f8c.js";import{u as re}from"./49686fa5.js";var ne=function(t,n,r,e,i,o,s,a){if(!t){var u;if(n===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[r,e,i,o,s,a],h=0;u=new Error(n.replace(/%s/g,function(){return p[h++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}},G=ne,ie=function(n,r,e,i){var o=e?e.call(i,n,r):void 0;if(o!==void 0)return!!o;if(n===r)return!0;if(typeof n!="object"||!n||typeof r!="object"||!r)return!1;var s=Object.keys(n),a=Object.keys(r);if(s.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),p=0;p<s.length;p++){var h=s[p];if(!u(h))return!1;var d=n[h],f=r[h];if(o=e?e.call(i,d,f,h):void 0,o===!1||o===void 0&&d!==f)return!1}return!0};function m(){return m=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},m.apply(this,arguments)}function B(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,_(t,n)}function _(t,n){return _=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r},_(t,n)}function W(t,n){if(t==null)return{};var r,e,i={},o=Object.keys(t);for(e=0;e<o.length;e++)n.indexOf(r=o[e])>=0||(i[r]=t[r]);return i}var c={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},oe={rel:["amphtml","canonical","alternate"]},ae={type:["application/ld+json"]},se={charset:"",name:["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"]},V=Object.keys(c).map(function(t){return c[t]}),j={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ce=Object.keys(j).reduce(function(t,n){return t[j[n]]=n,t},{}),S=function(t,n){for(var r=t.length-1;r>=0;r-=1){var e=t[r];if(Object.prototype.hasOwnProperty.call(e,n))return e[n]}return null},ue=function(t){var n=S(t,c.TITLE),r=S(t,"titleTemplate");if(Array.isArray(n)&&(n=n.join("")),r&&n)return r.replace(/%s/g,function(){return n});var e=S(t,"defaultTitle");return n||e||void 0},le=function(t){return S(t,"onChangeClientState")||function(){}},q=function(t,n){return n.filter(function(r){return r[t]!==void 0}).map(function(r){return r[t]}).reduce(function(r,e){return m({},r,e)},{})},pe=function(t,n){return n.filter(function(r){return r[c.BASE]!==void 0}).map(function(r){return r[c.BASE]}).reverse().reduce(function(r,e){if(!r.length)for(var i=Object.keys(e),o=0;o<i.length;o+=1){var s=i[o].toLowerCase();if(t.indexOf(s)!==-1&&e[s])return r.concat(e)}return r},[])},w=function(t,n,r){var e={};return r.filter(function(i){return!!Array.isArray(i[t])||(i[t]!==void 0&&console&&typeof console.warn=="function"&&console.warn("Helmet: "+t+' should be of type "Array". Instead found type "'+typeof i[t]+'"'),!1)}).map(function(i){return i[t]}).reverse().reduce(function(i,o){var s={};o.filter(function(d){for(var f,g=Object.keys(d),T=0;T<g.length;T+=1){var y=g[T],b=y.toLowerCase();n.indexOf(b)===-1||f==="rel"&&d[f].toLowerCase()==="canonical"||b==="rel"&&d[b].toLowerCase()==="stylesheet"||(f=b),n.indexOf(y)===-1||y!=="innerHTML"&&y!=="cssText"&&y!=="itemprop"||(f=y)}if(!f||!d[f])return!1;var A=d[f].toLowerCase();return e[f]||(e[f]={}),s[f]||(s[f]={}),!e[f][A]&&(s[f][A]=!0,!0)}).reverse().forEach(function(d){return i.push(d)});for(var a=Object.keys(s),u=0;u<a.length;u+=1){var p=a[u],h=m({},e[p],s[p]);e[p]=h}return i},[]).reverse()},fe=function(t,n){if(Array.isArray(t)&&t.length){for(var r=0;r<t.length;r+=1)if(t[r][n])return!0}return!1},$=function(t){return Array.isArray(t)?t.join(""):t},U=function(t,n){return Array.isArray(t)?t.reduce(function(r,e){return function(i,o){for(var s=Object.keys(i),a=0;a<s.length;a+=1)if(o[s[a]]&&o[s[a]].includes(i[s[a]]))return!0;return!1}(e,n)?r.priority.push(e):r.default.push(e),r},{priority:[],default:[]}):{default:t}},J=function(t,n){var r;return m({},t,((r={})[n]=void 0,r))},de=[c.NOSCRIPT,c.SCRIPT,c.STYLE],Y=function(t,n){return n===void 0&&(n=!0),n===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Q=function(t){return Object.keys(t).reduce(function(n,r){var e=t[r]!==void 0?r+'="'+t[r]+'"':""+r;return n?n+" "+e:e},"")},X=function(t,n){return n===void 0&&(n={}),Object.keys(t).reduce(function(r,e){return r[j[e]||e]=t[e],r},n)},L=function(t,n){return n.map(function(r,e){var i,o=((i={key:e})["data-rh"]=!0,i);return Object.keys(r).forEach(function(s){var a=j[s]||s;a==="innerHTML"||a==="cssText"?o.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:o[a]=r[s]}),C.createElement(t,o)})},v=function(t,n,r){switch(t){case c.TITLE:return{toComponent:function(){return i=n.titleAttributes,(o={key:e=n.title})["data-rh"]=!0,s=X(i,o),[C.createElement(c.TITLE,s,e)];var e,i,o,s},toString:function(){return function(e,i,o,s){var a=Q(o),u=$(i);return a?"<"+e+' data-rh="true" '+a+">"+Y(u,s)+"</"+e+">":"<"+e+' data-rh="true">'+Y(u,s)+"</"+e+">"}(t,n.title,n.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return X(n)},toString:function(){return Q(n)}};default:return{toComponent:function(){return L(t,n)},toString:function(){return function(e,i,o){return i.reduce(function(s,a){var u=Object.keys(a).filter(function(d){return!(d==="innerHTML"||d==="cssText")}).reduce(function(d,f){var g=a[f]===void 0?f:f+'="'+Y(a[f],o)+'"';return d?d+" "+g:g},""),p=a.innerHTML||a.cssText||"",h=de.indexOf(e)===-1;return s+"<"+e+' data-rh="true" '+u+(h?"/>":">"+p+"</"+e+">")},"")}(t,n,r)}}}},z=function(t){var n=t.baseTag,r=t.bodyAttributes,e=t.encode,i=t.htmlAttributes,o=t.noscriptTags,s=t.styleTags,a=t.title,u=a===void 0?"":a,p=t.titleAttributes,h=t.linkTags,d=t.metaTags,f=t.scriptTags,g={toComponent:function(){},toString:function(){return""}};if(t.prioritizeSeoTags){var T=function(y){var b=y.linkTags,A=y.scriptTags,E=y.encode,D=U(y.metaTags,se),N=U(b,oe),R=U(A,ae);return{priorityMethods:{toComponent:function(){return[].concat(L(c.META,D.priority),L(c.LINK,N.priority),L(c.SCRIPT,R.priority))},toString:function(){return v(c.META,D.priority,E)+" "+v(c.LINK,N.priority,E)+" "+v(c.SCRIPT,R.priority,E)}},metaTags:D.default,linkTags:N.default,scriptTags:R.default}}(t);g=T.priorityMethods,h=T.linkTags,d=T.metaTags,f=T.scriptTags}return{priority:g,base:v(c.BASE,n,e),bodyAttributes:v("bodyAttributes",r,e),htmlAttributes:v("htmlAttributes",i,e),link:v(c.LINK,h,e),meta:v(c.META,d,e),noscript:v(c.NOSCRIPT,o,e),script:v(c.SCRIPT,f,e),style:v(c.STYLE,s,e),title:v(c.TITLE,{title:u,titleAttributes:p},e)}},x=[],k=function(t,n){var r=this;n===void 0&&(n=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(e){r.context.helmet=e},helmetInstances:{get:function(){return r.canUseDOM?x:r.instances},add:function(e){(r.canUseDOM?x:r.instances).push(e)},remove:function(e){var i=(r.canUseDOM?x:r.instances).indexOf(e);(r.canUseDOM?x:r.instances).splice(i,1)}}},this.context=t,this.canUseDOM=n,n||(t.helmet=z({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},ee=C.createContext({}),he=l.shape({setHelmet:l.func,helmetInstances:l.shape({get:l.func,add:l.func,remove:l.func})}),me=typeof document!="undefined",I=function(t){function n(r){var e;return(e=t.call(this,r)||this).helmetData=new k(e.props.context,n.canUseDOM),e}return B(n,t),n.prototype.render=function(){return C.createElement(ee.Provider,{value:this.helmetData.value},this.props.children)},n}(F.exports.Component);I.canUseDOM=me,I.propTypes={context:l.shape({helmet:l.shape()}),children:l.node.isRequired},I.defaultProps={context:{}},I.displayName="HelmetProvider";var O=function(t,n){var r,e=document.head||document.querySelector(c.HEAD),i=e.querySelectorAll(t+"[data-rh]"),o=[].slice.call(i),s=[];return n&&n.length&&n.forEach(function(a){var u=document.createElement(t);for(var p in a)Object.prototype.hasOwnProperty.call(a,p)&&(p==="innerHTML"?u.innerHTML=a.innerHTML:p==="cssText"?u.styleSheet?u.styleSheet.cssText=a.cssText:u.appendChild(document.createTextNode(a.cssText)):u.setAttribute(p,a[p]===void 0?"":a[p]));u.setAttribute("data-rh","true"),o.some(function(h,d){return r=d,u.isEqualNode(h)})?o.splice(r,1):s.push(u)}),o.forEach(function(a){return a.parentNode.removeChild(a)}),s.forEach(function(a){return e.appendChild(a)}),{oldTags:o,newTags:s}},K=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var e=r.getAttribute("data-rh"),i=e?e.split(","):[],o=[].concat(i),s=Object.keys(n),a=0;a<s.length;a+=1){var u=s[a],p=n[u]||"";r.getAttribute(u)!==p&&r.setAttribute(u,p),i.indexOf(u)===-1&&i.push(u);var h=o.indexOf(u);h!==-1&&o.splice(h,1)}for(var d=o.length-1;d>=0;d-=1)r.removeAttribute(o[d]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==s.join(",")&&r.setAttribute("data-rh",s.join(","))}},Z=function(t,n){var r=t.baseTag,e=t.htmlAttributes,i=t.linkTags,o=t.metaTags,s=t.noscriptTags,a=t.onChangeClientState,u=t.scriptTags,p=t.styleTags,h=t.title,d=t.titleAttributes;K(c.BODY,t.bodyAttributes),K(c.HTML,e),function(y,b){y!==void 0&&document.title!==y&&(document.title=$(y)),K(c.TITLE,b)}(h,d);var f={baseTag:O(c.BASE,r),linkTags:O(c.LINK,i),metaTags:O(c.META,o),noscriptTags:O(c.NOSCRIPT,s),scriptTags:O(c.SCRIPT,u),styleTags:O(c.STYLE,p)},g={},T={};Object.keys(f).forEach(function(y){var b=f[y],A=b.newTags,E=b.oldTags;A.length&&(g[y]=A),E.length&&(T[y]=f[y].oldTags)}),n&&n(),a(t,g,T)},P=null,H=function(t){function n(){for(var e,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))||this).rendered=!1,e}B(n,t);var r=n.prototype;return r.shouldComponentUpdate=function(e){return!ie(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,i,o=this.props.context,s=o.setHelmet,a=null,u=(e=o.helmetInstances.get().map(function(p){var h=m({},p.props);return delete h.context,h}),{baseTag:pe(["href"],e),bodyAttributes:q("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:q("htmlAttributes",e),linkTags:w(c.LINK,["rel","href"],e),metaTags:w(c.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:w(c.NOSCRIPT,["innerHTML"],e),onChangeClientState:le(e),scriptTags:w(c.SCRIPT,["src","innerHTML"],e),styleTags:w(c.STYLE,["cssText"],e),title:ue(e),titleAttributes:q("titleAttributes",e),prioritizeSeoTags:fe(e,"prioritizeSeoTags")});I.canUseDOM?(i=u,P&&cancelAnimationFrame(P),i.defer?P=requestAnimationFrame(function(){Z(i,function(){P=null})}):(Z(i),P=null)):z&&(a=z(u)),s(a)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},n}(F.exports.Component);H.propTypes={context:he.isRequired},H.displayName="HelmetDispatcher";var ye=["children"],Te=["children"],M=function(t){function n(){return t.apply(this,arguments)||this}B(n,t);var r=n.prototype;return r.shouldComponentUpdate=function(e){return!te(J(this.props,"helmetData"),J(e,"helmetData"))},r.mapNestedChildrenToProps=function(e,i){if(!i)return null;switch(e.type){case c.SCRIPT:case c.NOSCRIPT:return{innerHTML:i};case c.STYLE:return{cssText:i};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var i,o=e.child,s=e.arrayTypeChildren;return m({},s,((i={})[o.type]=[].concat(s[o.type]||[],[m({},e.newChildProps,this.mapNestedChildrenToProps(o,e.nestedChildren))]),i))},r.mapObjectTypeChildren=function(e){var i,o,s=e.child,a=e.newProps,u=e.newChildProps,p=e.nestedChildren;switch(s.type){case c.TITLE:return m({},a,((i={})[s.type]=p,i.titleAttributes=m({},u),i));case c.BODY:return m({},a,{bodyAttributes:m({},u)});case c.HTML:return m({},a,{htmlAttributes:m({},u)});default:return m({},a,((o={})[s.type]=m({},u),o))}},r.mapArrayTypeChildrenToProps=function(e,i){var o=m({},i);return Object.keys(e).forEach(function(s){var a;o=m({},o,((a={})[s]=e[s],a))}),o},r.warnOnInvalidChildren=function(e,i){return G(V.some(function(o){return e.type===o}),typeof e.type=="function"?"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 "+V.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),G(!i||typeof i=="string"||Array.isArray(i)&&!i.some(function(o){return typeof o!="string"}),"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},r.mapChildrenToProps=function(e,i){var o=this,s={};return C.Children.forEach(e,function(a){if(a&&a.props){var u=a.props,p=u.children,h=W(u,ye),d=Object.keys(h).reduce(function(g,T){return g[ce[T]||T]=h[T],g},{}),f=a.type;switch(typeof f=="symbol"?f=f.toString():o.warnOnInvalidChildren(a,p),f){case c.FRAGMENT:i=o.mapChildrenToProps(p,i);break;case c.LINK:case c.META:case c.NOSCRIPT:case c.SCRIPT:case c.STYLE:s=o.flattenArrayTypeChildren({child:a,arrayTypeChildren:s,newChildProps:d,nestedChildren:p});break;default:i=o.mapObjectTypeChildren({child:a,newProps:i,newChildProps:d,nestedChildren:p})}}}),this.mapArrayTypeChildrenToProps(s,i)},r.render=function(){var e=this.props,i=e.children,o=W(e,Te),s=m({},o),a=o.helmetData;return i&&(s=this.mapChildrenToProps(i,s)),!a||a instanceof k||(a=new k(a.context,a.instances)),a?C.createElement(H,m({},s,{context:a.value,helmetData:void 0})):C.createElement(ee.Consumer,null,function(u){return C.createElement(H,m({},s,{context:u}))})},n}(F.exports.Component);M.propTypes={base:l.object,bodyAttributes:l.object,children:l.oneOfType([l.arrayOf(l.node),l.node]),defaultTitle:l.string,defer:l.bool,encodeSpecialCharacters:l.bool,htmlAttributes:l.object,link:l.arrayOf(l.object),meta:l.arrayOf(l.object),noscript:l.arrayOf(l.object),onChangeClientState:l.func,script:l.arrayOf(l.object),style:l.arrayOf(l.object),title:l.string,titleAttributes:l.object,titleTemplate:l.string,prioritizeSeoTags:l.bool,helmetData:l.object},M.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},M.displayName="Helmet";const ge=new k({});function Oe({children:t,...n}){const r=re(e=>e.ctx.head,ge);return C.createElement(M,{...n,helmetData:r},t)}export{Oe as H,ie as s};
//# sourceMappingURL=a12a92e2.js.map