1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7497],{1344:(e,t,l)=>{l.d(t,{a:()=>a});var s=l(5155),r=l(9406),n=l(2115);function a(e){let{title:t,content:l,contentWrapperClassName:a,onClose:i,children:o,modalWidth:c="w-2/4"}=e,d=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&i()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]),(0,s.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 overflow-y-auto h-full w-full",id:"my-modal",onClick:i,children:(0,s.jsxs)("div",{className:"relative top-20 mx-auto p-6 border ".concat(c," shadow-lg rounded-md bg-white modal"),ref:d,onClick:e=>{e.stopPropagation()},children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("h4",{className:"text-lg font-bold",children:t}),(0,s.jsx)("button",{onClick:i,className:"text-black",children:"Close"})]}),(0,s.jsxs)("div",{className:"my-5",children:[l&&(0,s.jsx)("div",{className:a,children:(0,s.jsx)(r.$,{field:l})}),o]})]})})}},3989:(e,t,l)=>{l.d(t,{$:()=>o});var s=l(5155),r=l(9406),n=l(4623);function a(e){if(!e)return null;if("string"==typeof e||"number"==typeof e)return e;if(Array.isArray(e)){for(let t of e){let e=a(t);if(null!==e)return e}return null}return"object"==typeof e?a(e.props.children):e}let i={heading1:e=>{let{children:t}=e;return(0,s.jsx)(n.D,{as:"h1",className:"mb-7 mt-12 first:mt-0 last:mb-0",id:a(t),children:t})},heading2:e=>{let{children:t}=e;return(0,s.jsx)(n.D,{as:"h2",size:"md",className:"mb-7 mt-12 first:mt-0 last:mb-0",children:t})},heading3:e=>{let{children:t}=e;return(0,s.jsx)(n.D,{id:a(t),as:"h3",size:"sm",className:"mb-7 mt-12 first:mt-0 last:mb-0",children:t})},paragraph:e=>{let{children:t}=e;return(0,s.jsx)("p",{className:"mb-7 last:mb-0",children:t})},oList:e=>{let{children:t}=e;return(0,s.jsx)("ol",{className:"mb-7 pl-4 last:mb-0 md:pl-6",children:t})},oListItem:e=>{let{children:t}=e;return(0,s.jsx)("li",{className:"mb-1 list-decimal pl-1 last:mb-0 md:pl-2",children:t})},list:e=>{let{children:t}=e;return(0,s.jsx)("ul",{className:"mb-7 pl-4 last:mb-0 md:pl-6",children:t})},listItem:e=>{let{children:t}=e;return(0,s.jsx)("li",{className:"mb-1 list-disc pl-1 last:mb-0 md:pl-2",children:t})},preformatted:e=>{let{text:t}=e;return(0,s.jsx)("pre",{className:"mb-7 rounded bg-slate-100 last:mb-0 p-8 text-base",children:(0,s.jsx)("code",{style:{textWrap:"wrap"},className:"prismicCodeBlock",children:(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:function(e){var t=RegExp("<script.*?\\/?>.*?<\\/script>","gs"),l=RegExp("<script.*?\\/?>","gs");return e.replace(t,"").replace(l,"")}(t)}})})})},strong:e=>{let{children:t}=e;return(0,s.jsx)("strong",{className:"font-semibold",children:t})},hyperlink:e=>{let{children:t,node:l}=e;return(0,s.jsx)("a",{className:"underline decoration-1 underline-offset-2",href:l.data.url,children:t})}};function o(e){let{components:t,...l}=e;return(0,s.jsx)(r.$,{components:{...i,...t},...l})}},4623:(e,t,l)=>{l.d(t,{D:()=>n});var s=l(5155),r=l(2821);function n(e){let{as:t="h1",size:l="lg",children:n,className:a,id:i}=e;return(0,s.jsx)(t,{id:i,className:(0,r.A)("font-semibold leading-tight tracking-tight md:leading-tight","xl"===l&&"text-5xl md:text-7xl","lg"===l&&"text-4xl md:text-5xl","md"===l&&"text-3xl md:text-4xl","sm"===l&&"text-xl md:text-2xl",a),children:n})}},7497:(e,t,l)=>{l.d(t,{Sidebar:()=>f});var s=l(5155),r=l(2115),n=l(1344),a=l(63);function i(e){let{className:t}=e;return(0,s.jsx)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7071 4.29289C12.0976 4.68342 12.0976 5.31658 11.7071 5.70711L6.41421 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H6.41421L11.7071 18.2929C12.0976 18.6834 12.0976 19.3166 11.7071 19.7071C11.3166 20.0976 10.6834 20.0976 10.2929 19.7071L3.29289 12.7071C3.10536 12.5196 3 12.2652 3 12C3 11.7348 3.10536 11.4804 3.29289 11.2929L10.2929 4.29289C10.6834 3.90237 11.3166 3.90237 11.7071 4.29289Z",fill:"currentColor"})})}var o=l(7832);function c(){let e=(0,a.useRouter)();return(0,s.jsxs)("button",{onClick:()=>{let t=(0,o.V)();e.replace(t||"/")},className:"flex justify-center gap-4 border border-solid border-primary px-4 py-2 items-center hover:bg-primary hover:text-white w-full group",children:[(0,s.jsx)(i,{className:"h-6 w-6 text-primary group-hover:text-white"}),(0,s.jsx)("span",{className:"text-base",style:{letterSpacing:2},children:"Return"})]})}function d(e){let{onClickTableOfContentItem:t}=e,[l,n]=(0,r.useState)([]);return(0,r.useEffect)(()=>{n([...document.querySelectorAll("#documentRichText>h3")])},[]),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("label",{className:"text-sm text-primary font-bold",children:"Table of Contents"}),(0,s.jsx)("ul",{className:"flex flex-col gap-2",children:l.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)("a",{className:"text-primary text-sm hover:underline",href:"#"+encodeURI(e.id),onClick:l=>{l.preventDefault(),e.scrollIntoView({behavior:"smooth",block:"start"}),t&&t(l)},children:(0,s.jsx)("span",{children:e.innerText})})},e.id))})]})}function m(e){let{onClickTableOfContentItem:t}=e,[l,n]=(0,r.useState)([]);return(0,r.useEffect)(()=>{n([...document.querySelectorAll("#documentRichText>h2")])},[]),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("label",{className:"text-sm text-primary font-bold",children:"Table of Contents"}),(0,s.jsx)("ul",{className:"flex flex-col gap-2",children:l.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)("a",{className:"text-primary text-sm hover:underline",href:"#"+encodeURI(e.id),onClick:l=>{l.preventDefault(),e.scrollIntoView({behavior:"smooth",block:"start"}),t&&t(l)},children:(0,s.jsx)("span",{children:e.innerText})})},e.id))})]})}var x=l(2619),h=l.n(x);function u(e){let{label:t,href:l,isSelected:r,scroll:n=!1}=e;return(0,s.jsx)(h(),{href:encodeURI(l),className:"ect-tag text-xs border p-2 border-primary text-primary hover:bg-primary hover:text-white w-fit ".concat(r?"bg-primary text-white":null),scroll:n,style:{textWrap:"nowrap"},children:t})}l(3989);let p={"/articles":"encyclopedia","/lexicon":"lexicon","/responses":"responses"};function f(e){let{rootUrl:t,document:l,showBibliography:i=!0,showCitations:o=!0,showTableOfContents:x=!1,tableOfContentsVariant:h="h3",session:f,showMobileView:b=!1,showReturn:g=!0,showReturnToTop:j=!0,modalWidth:N="w-2/4",fullscreenHeight:v=!0,onClickTableOfContentItem:y=()=>{},onClickReturnToTop:w=()=>{}}=e,C="true"===(0,a.useSearchParams)().get("openCitations"),[k,R]=(0,r.useState)(!1),[T,I]=(0,r.useState)(C);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("aside",{className:"".concat(b?"block":"hidden ml-10 p-4 w-64 ".concat(v?"h-screen":""," mt-8 ")," lg:block sticky top-[104px] overflow-y-auto"),children:(0,s.jsxs)("div",{className:"flex flex-col items-start gap-10",children:[g&&(0,s.jsx)("div",{className:"flex flex-col items-start gap-4",children:(0,s.jsx)(c,{})}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[j&&(0,s.jsx)("button",{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),w()},className:"text-sm text-primary font-bold hover:underline",children:"Return To Top"}),x&&"h2"===h&&(0,s.jsx)(m,{onClickTableOfContentItem:y}),x&&"h2"!==h&&(0,s.jsx)(d,{onClickTableOfContentItem:y}),i&&(0,s.jsx)("button",{className:"text-sm text-primary font-bold hover:underline",onClick:()=>R(!0),children:"Bibliography"}),o&&(0,s.jsx)("button",{className:"text-sm text-primary font-bold hover:underline",onClick:()=>I(!0),children:"Citations"}),(0,s.jsx)("h3",{className:"text-sm text-primary font-bold",children:"Related Tags:"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:l.tags.map(e=>"featured"==e?null:(0,s.jsx)(u,{label:e,href:"/?explore=".concat(p[t]||"encyclopedia","&tag=").concat(e),scroll:!0},e))})]})]})}),k&&(0,s.jsx)(n.a,{title:"Bibliography",content:l.data.bibliography,contentWrapperClassName:"flex flex-col gap-6 break-words",onClose:()=>R(!1),modalWidth:N}),T&&(0,s.jsx)(n.a,{title:"Citations",content:l.data.citations,contentWrapperClassName:"flex flex-col gap-6 break-words",onClose:()=>I(!1),modalWidth:N})]})}},7832:(e,t,l)=>{l.d(t,{Q:()=>r,V:()=>n});let s="ect:returnUri";function r(e){if(e)try{window.sessionStorage.setItem(s,e)}catch(e){}}function n(){try{return window.sessionStorage.getItem(s)}catch(e){return null}}}}]);
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.