"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[681],{5663:(e,n,t)=>{t.d(n,{Go:()=>v,WH:()=>I,uP:()=>E,_m:()=>H,wz:()=>S,Vq:()=>b,Rz:()=>L,sm:()=>x,PJ:()=>_,Lv:()=>N,oG:()=>q,Vs:()=>T,jX:()=>g,bl:()=>w,hm:()=>R,Xl:()=>O});var r,o,i="blockquote",u="block",a="code",c="heading",d="inlineItem",l="itemLink",s="link",f="listItem",p="list",h="paragraph",m="root",y="span",k="thematicBreak";function v(e){return"children"in e}function b(e){return e.type===c}function w(e){return e.type===y}function g(e){return e.type===m}function T(e){return e.type===h}function N(e){return e.type===p}function q(e){return e.type===f}function E(e){return e.type===i}function I(e){return e.type===u}function H(e){return e.type===a}function _(e){return e.type===s}function x(e){return e.type===l}function L(e){return e.type===d}function O(e){return e.type===k}function R(e){return e&&"value"in e&&S(e.value)}function S(e){return e&&"schema"in e&&"document"in e}(r={})[i]=[h],r[u]=[],r[a]=[],r[c]="inlineNodes",r[d]=[],r[l]="inlineNodes",r[s]="inlineNodes",r[f]=[h,p],r[p]=[f],r[h]="inlineNodes",r[m]=[i,a,p,h,c,u,k],r[y]=[],r[k]=[],(o={})[i]=["children","attribution"],o[u]=["item"],o[a]=["language","highlight","code"],o[c]=["level","children","style"],o[d]=["item"],o[l]=["item","children","meta"],o[s]=["url","children","meta"],o[f]=["children"],o[p]=["style","children"],o[h]=["children","style"],o[m]=["children"],o[y]=["value","marks"],o[k]=[]},24508:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(44501),o=t(40670),i=t(14232),u=i.useLayoutEffect;function a(){return!0}let c=function(e){var n=(0,i.useRef)(null),t=(0,i.useReducer)(a,!1),c=t[0],d=t[1],l=e.noWrapper,s=e.ssrOnly,f=e.whenIdle,p=e.whenVisible,h=e.promise,m=e.on,y=void 0===m?[]:m,k=e.children,v=e.didHydrate,b=(0,o.A)(e,["noWrapper","ssrOnly","whenIdle","whenVisible","promise","on","children","didHydrate"]);u(function(){n.current.hasChildNodes()||d()},[]),(0,i.useEffect)(function(){c&&v&&v()},[c]),(0,i.useEffect)(function(){if(!s&&!c){var e=n.current,t=[];if(h&&h.then(d,d),p){var r=l?e:e.firstElementChild;if(!r||"undefined"==typeof IntersectionObserver)return d();var o=new IntersectionObserver(function(e){e.forEach(function(e){(e.isIntersecting||e.intersectionRatio>0)&&d()})},"object"==typeof p?p:{rootMargin:"250px"});o.observe(r),t.push(function(){o.disconnect()})}if(f)if("undefined"!=typeof requestIdleCallback){var i=requestIdleCallback(d,{timeout:500});t.push(function(){cancelIdleCallback(i)})}else{var u=setTimeout(d,2e3);t.push(function(){clearTimeout(u)})}return[].concat(y).forEach(function(n){e.addEventListener(n,d,{once:!0,passive:!0}),t.push(function(){e.removeEventListener(n,d,{})})}),function(){t.forEach(function(e){e()})}}},[c,y,s,f,p,v,h,l]);var w="string"==typeof l?l:"div";return c?l?k:(0,i.createElement)(w,(0,r.A)({ref:n,style:{display:"contents"}},b),k):(0,i.createElement)(w,(0,r.A)({},b,{ref:n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}))}},25038:(e,n,t)=>{t.d(n,{vH:()=>u,XX:()=>c,bq:()=>a});var r=t(5663),o=function(){var e=function(n,t){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(n,t)};return function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),i=function(){for(var e=0,n=0,t=arguments.length;n{t.d(n,{d6:()=>s});var r=t(25038),o=t(5663),i=function(){return(i=Object.assign||function(e){for(var n,t=1,r=arguments.length;tc.createElement(c.Fragment,{key:n},e),renderText:(e,n)=>e};function l(e,n){return(0,c.isValidElement)(e)&&null===e.key?(0,c.cloneElement)(e,{key:n}):e}function s({data:e,renderInlineRecord:n,renderLinkToRecord:t,renderBlock:s,renderText:f,renderNode:p,renderFragment:h,customMarkRules:m,customRules:y,customNodeRules:k,metaTransformer:v}){var b,w,g,T;let N=(b=e,T=(w={adapter:{renderText:f||d.renderText,renderNode:p||d.renderNode,renderFragment:h||d.renderFragment},metaTransformer:v,customMarkRules:m,customNodeRules:[(0,r.bq)(o.Rz,({node:t,key:i})=>{if(!n)throw new r.vH("The Structured Text document contains an 'inlineItem' node, but no 'renderInlineRecord' prop is specified!",t);if(!((0,o.hm)(e)&&e.links))throw new r.vH("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",t);let u=e.links.find(e=>e.id===t.item);if(!u)throw new r.vH(`The Structured Text document contains an 'inlineItem' node, but cannot find a record with ID ${t.item} inside data.links!`,t);return l(n({record:u}),i)}),(0,r.bq)(o.sm,({node:n,key:i,children:u})=>{if(!t)throw new r.vH("The Structured Text document contains an 'itemLink' node, but no 'renderLinkToRecord' prop is specified!",n);if(!((0,o.hm)(e)&&e.links))throw new r.vH("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",n);let c=e.links.find(e=>e.id===n.item);if(!c)throw new r.vH(`The Structured Text document contains an 'itemLink' node, but cannot find a record with ID ${n.item} inside data.links!`,n);return l(t({record:c,children:u,transformedMeta:n.meta?(v||a)({node:n,meta:n.meta}):null}),i)}),(0,r.bq)(o.WH,({node:n,key:t})=>{if(!s)throw new r.vH("The Structured Text document contains a 'block' node, but no 'renderBlock' prop is specified!",n);if(!((0,o.hm)(e)&&e.blocks))throw new r.vH("The document contains an 'block' node, but the passed data prop is not a Structured Text GraphQL response, or data.blocks is not present!",n);let i=e.blocks.find(e=>e.id===n.item);if(!i)throw new r.vH(`The Structured Text document contains a 'block' node, but cannot find a record with ID ${n.item} inside data.blocks!`,n);return l(s({record:i}),t)}),...k||y||[]]}).metaTransformer||a,(0,r.XX)(w.adapter,b,u(w.customNodeRules||[],[(0,r.bq)(o.jX,function(e){var n=e.adapter.renderFragment,t=e.key;return n(e.children,t)}),(0,r.bq)(o.Vs,function(e){return(0,e.adapter.renderNode)("p",{key:e.key},e.children)}),(0,r.bq)(o.Lv,function(e){var n=e.adapter.renderNode,t=e.node,r=e.key,o=e.children;return n("bulleted"===t.style?"ul":"ol",{key:r},o)}),(0,r.bq)(o.oG,function(e){return(0,e.adapter.renderNode)("li",{key:e.key},e.children)}),(0,r.bq)(o.uP,function(e){var n=e.adapter.renderNode,t=e.key,r=e.node,o=e.children,i=r.attribution?u(o||[],[n("footer",{key:"footer"},r.attribution)]):o;return n("blockquote",{key:t},i)}),(0,r.bq)(o._m,function(e){var n=e.adapter,t=n.renderNode,r=n.renderText,o=e.key,i=e.node;return t("pre",{key:o,"data-language":i.language},t("code",null,r(i.code)))}),(0,r.bq)(o.PJ,function(e){var n=e.adapter.renderNode,t=e.key,r=e.children,o=e.node,u=o.meta?T({node:o,meta:o.meta}):{};return n("a",i(i({},u||{}),{key:t,href:o.url}),r)}),(0,r.bq)(o.Xl,function(e){return(0,e.adapter.renderNode)("hr",{key:e.key})}),(0,r.bq)(o.Vq,function(e){var n=e.node,t=e.adapter.renderNode,r=e.children,o=e.key;return t("h"+n.level,{key:o},r)}),(g=({customMarkRules:w.customMarkRules||[]}).customMarkRules,(0,r.bq)(o.bl,function(e){var n,t,r,o,i,u,a,c=e.adapter,d=e.key;return(e.node.marks||[]).reduce(function(e,n){if(e){var t=g.find(function(e){return e.appliable(n)});return t?t.apply({adapter:c,key:d,mark:n,children:e}):c.renderNode(function(e){switch(e){case"emphasis":return"em";case"underline":return"u";case"strikethrough":return"del";case"highlight":return"mark";default:return e}}(n),{key:d},e)}},(n=e.node,t=e.key,o=(r=e.adapter).renderNode,i=r.renderText,u=r.renderFragment,0===(a=n.value.split(/\n/)).length?i(n.value,t):u(a.slice(1).reduce(function(e,n,r){return e.concat([o("br",{key:t+"-br-"+r}),i(n,t+"-line-"+r)])},[i(a[0],t+"-line-first")]),t)))}))])));return"string"==typeof N?c.createElement(c.Fragment,null,N):N||null}}}]);