1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85488],{781:(e,t,l)=>{l.d(t,{Jt:()=>o.Jt,Kw:()=>p,Me:()=>u,Nq:()=>a.Nq,OK:()=>f,R6:()=>m,Wh:()=>n.Wh,bX:()=>d,dI:()=>y,gY:()=>s,j:()=>n.j,kv:()=>i.kv,m7:()=>c,ov:()=>g,pb:()=>$,pl:()=>b,z1:()=>n.z1,zH:()=>a.zH});var r=l(41658),a=l(62981),i=l(76693),n=l(6742),o=l(608);let s=a.FX.limit,u=a.FX.keep,c=[{value:"journal",label:"Journal article"},{value:"online-first",label:"Journal article published online first"},{value:"preprint",label:"Preprint"},{value:"book",label:"Book"},{value:"chapter",label:"Chapter in an edited book"},{value:"website",label:"Website or webpage"},{value:"report",label:"Government or organization report"},{value:"thesis",label:"Thesis or dissertation"},{value:"conference",label:"Conference paper or presentation"}],h={key:"authors",label:"Authors",placeholder:"Smith JA",multiline:!0},d={journal:[h,{key:"title",label:"Article title (sentence case)",placeholder:"Sepsis bundles and mortality in the emergency department"},{key:"journal",label:"Journal title (NLM abbreviation)",placeholder:"N Engl J Med"},{key:"year",label:"Year",placeholder:"2021"},{key:"volume",label:"Volume",placeholder:"384"},{key:"issue",label:"Issue",placeholder:"7"},{key:"pages",label:"Pages (in full, not compressed)",placeholder:"1121-1134"},{key:"doi",label:"DOI",placeholder:"10.1056/NEJMoa2034577"}],"online-first":[h,{key:"title",label:"Article title (sentence case)",placeholder:"Early mobilization after cardiac surgery"},{key:"journal",label:"Journal title (NLM abbreviation)",placeholder:"JAMA Surg"},{key:"published",label:"Published online date",placeholder:"March 4, 2021",dateHelper:!0},{key:"doi",label:"DOI",placeholder:"10.1001/jamasurg.2021.0123"}],preprint:[h,{key:"title",label:"Title (sentence case)",placeholder:"Wastewater surveillance as an early warning signal"},{key:"journal",label:"Preprint server",placeholder:"medRxiv"},{key:"published",label:"Posted online date",placeholder:"March 3, 2020",dateHelper:!0},{key:"doi",label:"DOI",placeholder:"10.1101/2020.03.03.20028423"}],book:[h,{key:"title",label:"Book title (title case)",placeholder:"Clinical Pharmacology and Therapeutics"},{key:"edition",label:"Edition",placeholder:"3rd"},{key:"publisher",label:"Publisher",placeholder:"Elsevier"},{key:"year",label:"Year",placeholder:"2019"}],chapter:[h,{key:"title",label:"Chapter title (sentence case)",placeholder:"Management of acute pancreatitis"},{key:"editors",label:"Editors",placeholder:"Jones RB",multiline:!0},{key:"container",label:"Book title (title case)",placeholder:"Textbook of Gastroenterology"},{key:"edition",label:"Edition",placeholder:"2nd"},{key:"publisher",label:"Publisher",placeholder:"Wiley"},{key:"year",label:"Year",placeholder:"2020"},{key:"pages",label:"Page range",placeholder:"412-430"}],website:[{key:"authors",label:"Author or organization",placeholder:"{Centers for Disease Control and Prevention}",multiline:!0},{key:"title",label:"Page title (sentence case)",placeholder:"Clinical care of children with COVID-19"},{key:"container",label:"Site name",placeholder:"CDC"},{key:"published",label:"Published date",placeholder:"December 13, 2020",dateHelper:!0},{key:"updated",label:"Updated date",placeholder:"January 4, 2021",dateHelper:!0},{key:"accessed",label:"Accessed date",placeholder:"the date you actually read it",dateHelper:!0},{key:"url",label:"URL",placeholder:"https://www.cdc.gov/example"}],report:[{key:"authors",label:"Author or organization",placeholder:"{National Cancer Institute}",multiline:!0},{key:"title",label:"Report title (title case)",placeholder:"Cancer Trends Progress Report"},{key:"publisher",label:"Publisher",placeholder:"National Institutes of Health"},{key:"year",label:"Year",placeholder:"2020"},{key:"reportNo",label:"Report number",placeholder:"NIH publication 20-1234"},{key:"accessed",label:"Accessed date",placeholder:"the date you actually read it",dateHelper:!0},{key:"url",label:"URL",placeholder:"https://progressreport.cancer.gov"}],thesis:[h,{key:"title",label:"Title (title case)",placeholder:"Nurse Staffing Ratios and Failure to Re
1scue"},{key:"kind",label:"Type",placeholder:"Dissertation"},{key:"publisher",label:"University",placeholder:"University of Michigan"},{key:"year",label:"Year",placeholder:"2019"}],conference:[h,{key:"title",label:"Title of presentation (sentence case)",placeholder:"Antibiotic stewardship in rural critical access hospitals"},{key:"container",label:"Conference name",placeholder:"IDWeek 2021"},{key:"published",label:"Dates",placeholder:"September 29 to October 3, 2021"},{key:"place",label:"Location",placeholder:"San Diego, CA"}]},p=(0,o.lX)(d);function b(){return(0,o.V6)(p)}function m(e,t){var l,r;let n=[],s=i.Uc,u=i.H_,c=(l=(0,a.Nq)((0,o.Jt)(t,"authors")),(0,a.PP)(l,a.FX)),h=(0,o.Jt)(t,"title"),d=(0,o.Jt)(t,"journal"),p=(0,o.Jt)(t,"container"),b=(0,o.Jt)(t,"year"),m=(0,o.Jt)(t,"volume"),f=(0,o.Jt)(t,"issue"),g=(0,o.Jt)(t,"pages"),$=(0,i.WL)((0,o.Jt)(t,"doi")),y=(0,o.Jt)(t,"publisher"),k=(0,o.Jt)(t,"edition"),v=(0,o.Jt)(t,"published"),x=(0,o.Jt)(t,"updated"),j=(0,o.Jt)(t,"accessed"),w=(0,o.Jt)(t,"url");switch(s(n,u(c)),e){case"journal":s(n,u(h)),s(n,d,!0),s(n,d?". ":""),s(n,(0,i.fl)(b,m,f,g)),s(n,$?` ${$}`:"");break;case"online-first":s(n,u(h)),s(n,d,!0),s(n,d?". ":""),s(n,v?`Published online ${v}. `:""),s(n,$);break;case"preprint":s(n,u(h)),s(n,d,!0),s(n,d?". ":""),s(n,v?`Preprint posted online ${v}. `:""),s(n,$);break;case"book":s(n,h,!0),s(n,h?". ":""),s(n,k?`${k} ed. `:""),s(n,y?`${y}`:""),s(n,y&&b?"; ":y?". ":""),s(n,b?`${b}.`:"");break;case"chapter":{s(n,u(h));let e=(r=(0,a.Nq)((0,o.Jt)(t,"editors")),(0,a.f6)(r,a.FX));e?s(n,`In: ${e} `):p&&s(n,"In: "),s(n,p,!0),s(n,p?". ":""),s(n,k?`${k} ed. `:""),s(n,y?`${y}`:""),s(n,y&&b?"; ":y?". ":""),s(n,b?`${b}`:""),s(n,g?`:${g}.`:b?".":"");break}case"website":s(n,u(h)),s(n,p?u(p):""),s(n,v?`Published ${v}. `:""),s(n,x?`Updated ${x}. `:""),s(n,j?`Accessed ${j}. `:""),s(n,w);break;case"report":s(n,h,!0),s(n,h?". ":""),s(n,y?`${y}`:""),s(n,y&&b?"; ":y?". ":""),s(n,b?`${b}. `:""),s(n,(0,o.Jt)(t,"reportNo")?`${(0,o.Jt)(t,"reportNo")}. `:""),s(n,j?`Accessed ${j}. `:""),s(n,w);break;case"thesis":s(n,h,!0),s(n,h?". ":""),s(n,(0,o.Jt)(t,"kind")?`${(0,o.Jt)(t,"kind")}. `:""),s(n,y?`${y}`:""),s(n,y&&b?"; ":y?". ":""),s(n,b?`${b}.`:"");break;case"conference":{s(n,u(h)),s(n,p?`Presented at: ${p}`:""),s(n,p&&v?"; ":p?". ":""),s(n,v?`${v}`:"");let e=(0,o.Jt)(t,"place");s(n,v&&e?"; ":v?".":""),s(n,e?`${e}.`:"")}}return n.filter(e=>""!==e.text)}function f(e){return(0,i.h6)(m(e.type,e.fields))}function g(e){return""!==f(e).replace(/[.,;:()]/g,"").trim()}function $(e){return e.map((e,t)=>`${t+1}. ${f(e)}`).join("\n")}function y(e){return(0,r.ly)(e.map((e,t)=>`${t+1}. ${(0,i.jQ)(m(e.type,e.fields))}`),r.E8)}},13704:(e,t,l)=>{l.d(t,{Jc:()=>k,Jo:()=>y,MG:()=>j,Nq:()=>c,ST:()=>v,eI:()=>x,h6:()=>n.h6,l0:()=>o});var r=l(86514),a=l(33029),i=l(62981),n=l(76693);let o={authors:"",year:"",title:"",container:"",place:"",publisher:"",edition:"",volume:"",issue:"",pages:"",quotedPage:"",url:"",accessDate:""};function s(e){return{text:e,italic:!1}}function u(e){return{text:e,italic:!0}}function c(e){let t=[];for(let l of e.split(/[;\n]/)){let e=l.split(/\s+and\s+|\s*&\s*/i);for(let r of!(0,i.DG)(l)&&e.length>1&&e.every(e=>e.includes(","))?e:[l]){let e=function(e){let t=e.trim();if(!t)return null;if((0,i.DG)(t))return{last:(0,i.wg)(t),first:"",corporate:!0};let l=t.indexOf(",");if(-1===l)return{last:t,first:"",corporate:!0};let r=t.slice(0,l).trim(),a=t.slice(l+1).trim();return r?{last:r,first:a,corporate:!1}:{last:a,first:"",corporate:!0}}(r);e&&t.push(e)}}return t}function h(e){return e.corporate||!e.first?e.last:`${e.first} ${e.last}`}function d(e){var t;if(0===e.length)return"";let l=(t=e[0]).corporate||!t.first?t.last:`${t.last}, ${t.first}`;if(1===e.length)return p(l);if(e.length>10){let t=e.slice(1,7).map(h).join(", ");return p(`${l}, ${t}, et al`)}let r=e.slice(1).map(h);if(1===r.length)return p(`${l}, and ${r[0]}`);let a=r.slice(0,-1).join(", "),i=r[r.length-1];return p(`${l}, ${a}, and ${i}`)}function p(e){let t=e.trim();return t?/[.!?]$/.test(t)?t:`${t}.`:""}function b(e){return e.trim()||"n.d."}function m(e){return e.trim().replace(/^pp?\.?\s*/i,"")}function f(e){return m(e.quotedPage)||m(e.pages)}function g(e){return e.trim().replace(/[.,]$/,"")}function $(e){return/\.$/.test(e)?e:`${e}.`}function y(e,t,l){let r=[],i=e=>{e.text&&r.push(e)},n=()=>{r.length>0&&r.push(s(" "))},o=d(t);o&&i(s(o));let c=g(l.title),h=b(l.year),f=l.edition.trim();if("book"===e){if(c&&(n(),i(u(c)),i(s("."))),f){n();let e=f.replace(/\s*ed\.?$/i,"").trim();i(s(`${e} ed.`))}let e=l.place.trim(),t=l.publisher.trim();n(),i(e&&t?s($(`${e}: ${t}, ${h}`)):t?s($(`${t}, ${h}`)):e?s($(`${e}, ${h}`)):s($(h)))}else if("journal"===e){c&&(n(),i(s(`"${c}."`)));let e=l.container.trim();e&&(n(),i(u(e)));
1let t=l.volume.trim(),r=l.issue.trim(),a=m(l.pages),o="";t&&(o+=t),r&&(o+=`${t?", ":""}no. ${r}`),o&&(n(),i(s(o))),(l.year.trim()||e)&&(n(),i(s(a?`(${h}):`:`(${h}).`))),a&&(n(),i(s(`${a}.`)))}else{c&&(n(),i(s(`"${c}."`)));let e=l.container.trim();e&&(n(),i(s(p(e)))),l.year.trim()&&(n(),i(s(`${h}.`)));let t=l.accessDate.trim();t&&(n(),i(s(`Accessed ${t}.`)));let r=(0,a.v)(l.url);r&&(n(),i(s(p(r))))}return r}function k(e,t,l){let r=[],i=e=>{e.text&&r.push(e)},n=()=>{r.length>0&&r.push(s(" "))},o=function(e){if(0===e.length)return"";let t=e.map(h);return 1===t.length?t[0]:2===t.length?`${t[0]} and ${t[1]}`:3===t.length?`${t[0]}, ${t[1]}, and ${t[2]}`:`${t[0]} et al.`}(t);o&&(i(s(o)),i(s(",")));let c=g(l.title),d=b(l.year);if("book"===e){c&&(n(),i(u(c)));let e=l.place.trim(),t=l.publisher.trim(),r=f(l),a="";e&&t?a=`${e}: ${t}, ${d}`:t?a=`${t}, ${d}`:e?a=`${e}, ${d}`:l.year.trim()&&(a=d),a?(n(),i(s(r?`(${a}),`:$(`(${a})`)))):c&&i(s(r?",":".")),r&&(n(),i(s(`${r}.`)))}else if("journal"===e){c&&(n(),i(s(`"${c},"`)));let e=l.container.trim();e&&(n(),i(u(e)));let t=l.volume.trim(),r=l.issue.trim(),a=f(l),o="";t&&(o+=t),r&&(o+=`${t?", ":""}no. ${r}`),o&&(n(),i(s(o))),(l.year.trim()||e)&&(n(),i(s(a?`(${d}):`:`(${d}).`))),a&&(n(),i(s(`${a}.`)))}else{c&&(n(),i(s(`"${c},"`)));let e=l.container.trim();e&&(n(),i(s(`${e},`)));let t=l.accessDate.trim(),r=(0,a.v)(l.url);t&&(n(),i(s(r?`accessed ${t},`:`accessed ${t}.`))),r&&(n(),i(s(p(r))))}return r}function v(e,t,l){let r=[],i=e=>{e.text&&r.push(e)},n=()=>{r.length>0&&r.push(s(" "))},o=d(t);o&&i(s(o));let c=b(l.year);n(),i(s($(c)));let h=g(l.title),f=l.edition.trim();if("book"===e){if(h&&(n(),i(u(h)),i(s("."))),f){n();let e=f.replace(/\s*ed\.?$/i,"").trim();i(s(`${e} ed.`))}let e=l.place.trim(),t=l.publisher.trim();e&&t?(n(),i(s(`${e}: ${t}.`))):t?(n(),i(s(p(t)))):e&&(n(),i(s(p(e))))}else if("journal"===e){h&&(n(),i(s(`"${h}."`)));let e=l.container.trim();e&&(n(),i(u(e)));let t=l.volume.trim(),r=l.issue.trim(),a=m(l.pages),o="";t&&(o+=t),r&&(o+=`${t?" ":""}(${r})`),o&&(n(),i(s(a?`${o}:`:`${o}.`))),a&&(n(),i(s(`${a}.`))),!e||o||a||i(s("."))}else{h&&(n(),i(s(`"${h}."`)));let e=l.container.trim();e&&(n(),i(s(p(e))));let t=l.accessDate.trim();t&&(n(),i(s(`Accessed ${t}.`)));let r=(0,a.v)(l.url);r&&(n(),i(s(p(r))))}return r}function x(e,t){let l=function(e){if(0===e.length)return"";let t=e.map(e=>e.last);return 1===t.length?t[0]:2===t.length?`${t[0]} and ${t[1]}`:3===t.length?`${t[0]}, ${t[1]}, and ${t[2]}`:`${t[0]} et al.`}(e);if(!l)return"";let r=t.year.trim()||"n.d.",a=m(t.quotedPage);return a?`(${l} ${r}, ${a})`:`(${l} ${r})`}function j(e){return(0,r.J)(e)}},33029:(e,t,l)=>{l.d(t,{n:()=>i,v:()=>n});let r=/^10\.\d{4,9}\/\S+$/,a=/^(?:(?:https?:\/\/)?(?:dx\.)?doi\.org\/|doi:\s*|DOI:?\s+|info:doi\/)/i;function i(e){return r.test(e.trim().replace(a,""))}function n(e){let t=e.trim(),l=t.replace(a,"");return r.test(l)?`https://doi.org/${l}`:t}},55360:(e,t,l)=>{l.d(t,{Nq:()=>$,Yu:()=>j,b_:()=>w,h6:()=>i.h6,l0:()=>n,l7:()=>y});var r=l(62981),a=l(70753),i=l(76693);let n={authors:"",title:"",container:"",volume:"",issue:"",pages:"",edition:"",place:"",publisher:"",month:"",year:"",url:"",accessDate:""};function o(e){return{text:e,italic:!1}}function s(e){return{text:e,italic:!0}}function u(e){let t=e,l=!1;for(;;){let e=t.length>1&&t.startsWith("{")&&t.endsWith("}"),r=t.length>1&&t.startsWith('"')&&t.endsWith('"');if(!e&&!r)return{inner:t,wrapped:l};t=t.slice(1,-1).trim(),l=!0}}function c(e){return e.includes("&")}function h(e){let t=e.trim();if(!t)return null;let{inner:l,wrapped:a}=u(t);if(a)return l?{initials:"",last:l}:null;if(c(l))return{initials:"",last:l};let i=(0,r.$q)(l);if(!i.surname){let e=l.replace(/^,\s*/,"").trim();return e?{initials:"",last:e}:null}let n=i.suffix?`${i.surname} ${i.suffix}`:i.surname;return{initials:(0,r.ev)(i.givens),last:n}}function d(e){return(e.initials?`${e.initials} ${e.last}`:e.last).trim()}function p(e,t,l){let r=[],a="",i=0,n=!1;for(let o=0;o<e.length;o++){let s=e[o];if("{"===s){i++,a+=s;continue}if("}"===s){i>0&&i--,a+=s;continue}if('"'===s){n=!n,a+=s;continue}if(0===i&&!n){if(t.has(s)){r.push(a),a="";continue}if(l){let t=/^\s+and\s+/i.exec(e.slice(o));if(t){r.push(a),a="",o+=t[0].length-1;continue}}}a+=s}return r.push(a),r.map(e=>
1e.trim()).filter(Boolean)}let b=new Set([";","\n"]),m=new Set(["&"]),f=new Set;function g(e){return p(e,b,!1).flatMap(e=>u(e).wrapped||c(e)&&!e.includes(",")||(0,r.Hq)(e)?[e]:p(e,e.includes(",")?m:f,!0))}function $(e){return g(e).map(e=>h(e)).filter(e=>null!==e)}function y(e){let t=[];for(let l of g(e)){if(u(l).wrapped)continue;let e=h(l);if(!e)continue;let a=d(e);if(c(l)){t.push({kind:"ampersand",typed:l,printed:a});continue}(0,r.Hq)(l)&&a!==l&&t.push({kind:"organization",typed:l,printed:a})}return t}function k(e){return e.trim().replace(/\.\s*$/,"")}function v(e){let t=e[e.length-1];return!!t&&/,["']?$/.test(t.text.trim())}function x(e,t={}){let{trailingPeriod:l=!0}=t,r=[];if(e.forEach((t,l)=>{l>0&&r.push(o(v(e[l-1])?" ":", ")),r.push(...t)}),l&&r.length){let e=r[r.length-1].text;/[.!?]$/.test(e.trim())||r.push(o("."))}return r}function j(e,t,l){let r=k(l.title),i=l.container.trim(),n=k(l.volume),u=k(l.issue),c=(0,a.c)(l.pages),h=function(e,t){let l=e.trim(),r=k(t);return l&&r?`${l} ${r}`:r||l}(l.month,l.year),p=function(e){let t=e.map(d);if(0===t.length)return"";if(1===t.length)return t[0];if(t.length>=7)return`${t[0]} et al.`;if(2===t.length)return`${t[0]} and ${t[1]}`;let l=t.slice(0,-1).join(", ");return`${l}, and ${t[t.length-1]}`}(t),b=[],m=e=>{e.trim()&&b.push([o(e.trim())])},f=e=>{e.trim()&&b.push([s(e.trim())])};if(p&&m(p),"journal"===e)return r&&m(`"${r},"`),i&&f(i),n&&m(`vol. ${n}`),u&&m(`no. ${u}`),c&&m(c),h&&m(h),x(b);if("conference"===e)return r&&m(`"${r},"`),i&&b.push([o("in "),s(i)]),l.place.trim()&&m(k(l.place)),h&&m(h),c&&m(c),x(b);if("book"===e){r&&f(r);let e=function(e){let t=k(e);if(!t)return"";let l=t.replace(/\s*ed\.?$/i,"").trim();return`${l} ed.`}(l.edition);e&&m(e);let t=l.place.trim(),a=k(l.publisher),i=t&&a?`${t}: ${a}`:a||t,n=[];i&&n.push(i),h&&n.push(h);let s=n.join(", ");if(!s)return x(b);let u=x(b,{trailingPeriod:!1});if(!u.length)return[o(`${s}.`)];let c=/[.!?]$/.test(u[u.length-1].text.trim());return[...u,o(c?" ":". "),o(`${s}.`)]}r&&m(`"${r},"`),i&&f(i),h&&m(h);let g=l.url.trim(),$=k(l.accessDate);if(!g)return x(b);let y=b[b.length-1],j=x(b,{trailingPeriod:!!y&&!v(y)}),w=`[Online]. Available: ${g}.`+($?` [Accessed: ${$}].`:"");return j.length?[...j,o(" "),o(w)]:[o(w)]}function w(e){return`[${e}]`}},70753:(e,t,l)=>{l.d(t,{c:()=>r});function r(e){let t=e.trim().replace(/^(?:pp?\.?\s*)+/i,"");return t?/[-ââ]/.test(t)?`pp. ${t}`:`p. ${t}`:""}},73258:(e,t,l)=>{l.d(t,{MG:()=>w,R0:()=>j,Yu:()=>k,bX:()=>c,b_:()=>x,h6:()=>o.h6,jQ:()=>o.jQ,l0:()=>s,m7:()=>u});var r=l(86514),a=l(33029),i=l(70753),n=l(62981),o=l(76693);let s={authors:"",title:"",container:"",bookTitle:"",editors:"",uploader:"",publisher:"",edition:"",volume:"",issue:"",pages:"",date:"",url:"",accessDate:""},u=[{value:"book",label:"Book"},{value:"chapter",label:"Chapter in an edited book"},{value:"website",label:"Website / web page"},{value:"journal",label:"Journal article"},{value:"newspaper",label:"Newspaper / news article"},{value:"video",label:"Online video (YouTube)"}],c={book:[{key:"authors",label:"Author(s)",placeholder:"Wingate, Lisa"},{key:"title",label:"Book title",placeholder:"Before We Were Yours"},{key:"edition",label:"Edition (optional)",placeholder:"2nd"},{key:"publisher",label:"Publisher",placeholder:"Random House"},{key:"date",label:"Year",placeholder:"2017"},{key:"pages",label:"Page cited for in-text (optional)",placeholder:"54"},{key:"url",label:"DOI or URL (optional, for an e-book)",placeholder:""}],chapter:[{key:"authors",label:"Chapter author(s)",placeholder:"Woolf, Virginia"},{key:"title",label:"Chapter or work title",placeholder:"Kew Gardens"},{key:"bookTitle",label:"Book title",placeholder:"The Complete Shorter Fiction"},{key:"editors",label:"Editor(s)",placeholder:"Dick, Susan"},{key:"publisher",label:"Publisher",placeholder:"Harcourt"},{key:"date",label:"Year",placeholder:"1989"},{key:"pages",label:"Page range",placeholder:"84-89"}],website:[{key:"authors",label:"Author(s) (leave blank if none)",placeholder:"Sabat, Yaika"},{key:"title",label:"Page title",placeholder:"Puerto Rican Writers, Poets, and Essayists"},{key:"container",label:"Website name",placeholder:"New York Public Library"},{key:"publisher",label:"Publisher / sponsor (optional)",placeholder:"skip if same as the site"},{key:"date",label:"Publication date",placeholder:"12 Sept. 2019"},{key:"url",label:"URL",placeholder:"www.nypl.org/blog/puerto-rican-writers"},{key:"accessDate",label:"Date of access (optional)",placeholder:"3 Mar. 2026"}],journal:[{key:"authors",label:"Author(s)",placeholder:"Ioannidou, Elena"},{key:"title",label:"Article title",placeholder:"Greek in Enclave Communities"},{key:"container",label:"Journal name",placeholder:"Journal of Sociolinguistics"},{key:"volume",label:"Volume",placeholder:"24"},{key:"issue",label:"Issue",placeholder:"2"},{key:"date",label:"Year",placeholder:"2020"},{key:"pages",label:"Page range",placeholder:"160-178"},{key:"url",label:"DOI or URL (optional)",placeholder:"https://doi.org/10.1111/josl.12385"}],newspaper:[{key:"authors",label:"Author(s)",placeholder:"Berthiaume, Lee"},{key:"title",label:"Article title",placeholder:"Backlog of Applications for Vets' Benefits Grows"},{key:"container",label:"Newspaper name",placeholder:"The Globe and Mail"},{key:"date",label:"Publication date",placeholder:"8 Jan. 2020"},{key:"url",label:"URL (optional)",placeholder:"www.theglobeandmail.com/canada/article"},{key:"accessDate",label:"Date of access (optional)",placeholder:""}],video:[{key:"authors",label:"Creator (optional, if you cite the creator)",placeholder:"leave blank to start with the title"},{key:"title",label:"Video title",placeholder:"Prevent Plagiarism in 5 Steps"},{key:"uploader",label:"Uploaded by (channel)",placeholder:"Chegg"},{key:"date",label:"Upload date",placeholder:"15 Nov. 2018"},{key:"url",label:"URL",placeholder:"www.youtube.com/watch?v=6lxBP1LtFDY"}]},h=e=>({text:e,italic:!1}),d=e=>({text:e,italic:!0});function p(e){return e.split(/[;\n]/).map(e=>e.trim()).filter(e=>e.length>0)}function b(e){return e.trim().replace(/[.,]+$/,"").trim()}function m(e){return e.trim().replace(/[.]+$/,"")}function f(e){let t=m(e).trim();return t?`"${t}."`:""}function g(e){return(0,n.wg)(e)}function $(e){let t=e.trim();if((0,n.DG)(t))return(0,n.wg)(t);let l=t.indexOf(",");if(-1===l)return t;let r=t.slice(0,l).trim(),a=t.slice(l+1).trim();return r?a?`${a} ${r}`:r:a}function y(e){return"book"===e}function k(e,t){let l=[],r=e=>{e.text&&l.push(e)},n=()=>{l.length>0&&l.push(h(" "))},o=t.title.trim(),s=function(e){let t=p(e);return 0===t.length?"":1===t.length?g(t[0]):2===t.length?`${g(t[0])}, and ${$(t[1])}`:`${g(t[0])}, et al.`}(t.authors),u=!1;s?r(h(function(e){let t=e.trim();return t?/[.!?]$/.test(t)?t:`${t}.`:""}
1(s))):o&&(y(e)?(r(d(m(o))),r(h("."))):r(h(f(o))),u=!0),!u&&o&&(n(),y(e)?(r(d(m(o))),r(h("."))):r(h(f(o))));let c=(e,t)=>{let l=t.filter(e=>e.length>0).join(", "),a=e.trim().length>0;(a||l)&&(n(),a?(r(d(e.trim())),l?r(h(`, ${l}.`)):r(h("."))):r(h(`${l}.`)))},k=b(t.date),v=b(t.publisher),x=function(e){let t=e.trim();return t?(0,a.n)(t)?(0,a.v)(t):t.replace(/^https?:\/\//i,""):""}(t.url),j=(0,i.c)(b(t.pages));if("book"===e)c("",[t.edition.trim()?`${b(t.edition)} ed.`:"",v,k,x]);else if("chapter"===e){let e=function(e){let t=p(e).map($).filter(e=>e.length>0);return 0===t.length?"":1===t.length?t[0]:2===t.length?`${t[0]} and ${t[1]}`:`${t[0]} et al.`}(t.editors),l=e?`edited by ${e}`:"";c(b(t.bookTitle),[l,v,k,j])}else if("website"===e){c(b(t.container),[v,k,x]);let e=b(t.accessDate);e&&(n(),r(h(`Accessed ${e}.`)))}else if("journal"===e){let e=t.volume.trim()?`vol. ${b(t.volume)}`:"",l=t.issue.trim()?`no. ${b(t.issue)}`:"";c(b(t.container),[e,l,k,j,x])}else if("newspaper"===e){c(b(t.container),[k,x]);let e=b(t.accessDate);e&&(n(),r(h(`Accessed ${e}.`)))}else c("YouTube",[t.uploader.trim()?`uploaded by ${b(t.uploader)}`:"",k,x]);return l}function v(e){let t=e.trim();if(!t)return"";let l=t.indexOf(",");return -1===l?t:t.slice(0,l).trim()}function x(e,t){let l,r=p(t.authors).map(v).filter(e=>e.length>0),a=function(e){let t=e.pages.trim().match(/\d[\d]*/);return t?t[0]:""}(t),i=a?` ${a}`:"";if(0===r.length){let l=function(e){let t=m(e).trim().split(/\s+/).filter(Boolean);return 0===t.length?"":t.slice(0,4).join(" ")}(t.title);if(!l)return{parenthetical:"",narrative:""};let r=y(e)?l:`"${l}"`;return{parenthetical:`(${r}${i})`,narrative:""}}return l=1===r.length?r[0]:2===r.length?`${r[0]} and ${r[1]}`:`${r[0]} et al.`,{parenthetical:`(${l}${i})`,narrative:a?`${l} (${a})`:l}}function j(e){let t=p(e.authors).map(v).filter(e=>e.length>0);return(t.length>0?t[0]:m(e.title).trim()).toLowerCase().replace(/^(a|an|the)\s+/,"")}function w(e){return(0,r.J)(e)}},79442:(e,t,l)=>{l.d(t,{MG:()=>x,R0:()=>v,Yu:()=>$,bX:()=>u,b_:()=>k,h6:()=>n.h6,jQ:()=>n.jQ,l0:()=>o,m7:()=>s});var r=l(86514),a=l(62981),i=l(33029),n=l(76693);let o={authors:"",username:"",year:"",title:"",container:"",editors:"",bookTitle:"",publisher:"",edition:"",volume:"",issue:"",pages:"",url:"",accessDate:""},s=[{value:"website",label:"Website / web page"},{value:"journal",label:"Journal article"},{value:"book",label:"Book"},{value:"chapter",label:"Chapter in an edited book"},{value:"newspaper",label:"Newspaper / news article"},{value:"video",label:"Online video (YouTube)"}],u={website:[{key:"authors",label:"Author(s)",placeholder:"Smith, John A.; Doe, Jane"},{key:"year",label:"Date (Year, Month Day)",placeholder:"2024, March 8"},{key:"title",label:"Page title",placeholder:"Title of the web page"},{key:"container",label:"Site name",placeholder:"Name of the website"},{key:"url",label:"URL",placeholder:"https://example.com/page"},{key:"accessDate",label:"Retrieval date (optional)",placeholder:"January 5, 2024"}],journal:[{key:"authors",label:"Author(s)",placeholder:"Smith, John A.; Doe, Jane"},{key:"year",label:"Year",placeholder:"2024"},{key:"title",label:"Article title",placeholder:"Title of the article"},{key:"container",label:"Journal name",placeholder:"Name of the journal"},{key:"volume",label:"Volume",placeholder:"12"},{key:"issue",label:"Issue",placeholder:"3"},{key:"pages",label:"Pages",placeholder:"45-67"},{key:"url",label:"DOI / URL (optional)",placeholder:"https://doi.org/..."}],book:[{key:"authors",label:"Author(s)",placeholder:"Smith, John A."},{key:"year",label:"Year",placeholder:"2024"},{key:"title",label:"Book title",placeholder:"Title of the book"},{key:"edition",label:"Edition (optional)",placeholder:"2nd"},{key:"publisher",label:"Publisher",placeholder:"Publisher name"},{key:"url",label:"DOI / URL (optional)",placeholder:"https://doi.org/..."}],chapter:[{key:"authors",label:"Chapter author(s)",placeholder:"Smith, John A."},{key:"year",label:"Year",placeholder:"2024"},{key:"title",label:"Chapter title",placeholder:"Title of the chapter"},{key:"editors",label:"Editor(s)",placeholder:"Doe, Jane; Roe, Richard"},{key:"bookTitle",label:"Book title",placeholder:"Title of the whole book"},{key:"pages",label:"Chapter pages",placeholder:"112-135"},{key:"publisher",label:"Publisher",placeholder:"Publisher name"},{key:"url",label:"DOI / URL (optional)",placeholder:"https://doi.org/..."}],newspaper:[{key:"authors",label:"Author(s)",placeholder:"Smith, John A."},{key:"year",label:"Date (Year, Month Day)",placeholder:"2024, March 8"},{key:"title",label:"Article title",placeholder:"Title of the article"},{key:"container",label:"Newspaper name",placeholder:"The New York Times"},{key:"url",label:"URL (optional)",placeholder:"https://example.com/article"}],video:[{key:"authors",label:"Uploader or channel",placeholder:"Vliegenthart, Sanne"},{key:"username",label:"Username / handle (optional)",placeholder:"booksandquills"},{key:"year",label:"Date (Year, Month Day)",placeholder:"2024, March 8"},{key:"title",label:"Video title",placeholder:"Title of the video"},{key:"container",label:"Site",placeholder:"YouTube"},{key:"url",label:"URL",placeholder:"https://www.youtube.com/watch?v=..."}]},c=e=>({text:e,italic:!1}),h=e=>({text:e,italic:!0});function d(e){return e.split(/[;\n]/).flatMap(e=>{let t=e.trim();return t?/^\{[\s\S]*\}$/.test(t)?[t]:t.includes(",")?t.split(/\s*,?\s*&\s*/):[t]:[]}).map(e=>e.trim()).filter(e=>e.length>0)}function p(e,t){if(!t)return e;let l=/^(jr|sr)$/i.test(t)?`${t}.`:t;return`${e}, ${l}`}function b(e){let t=e.trim();if(!t)return"";let l=(0,a.$q)(t);if(null!==l.organization)return l.organization;if(!t.includes(","))return t;let r=(0,a.ev)(l.givens);return p(r?`${r} ${l.surname}`.trim():l.surname,l.suffix)}function m(e){let t=e.trim();return t?/[.!?]$/.test(t)?t:`${t}.`:""}function f(e){return e.trim().replace(/\.$/,"")}function g(e){return"website"===e||"book"===e||"video"===e}function $(e,t){let l=[],r=e=>{e.text&&l.push(e)},n=()=>{l.length>0&&l.push(c(" "))},o=t.title.trim(),s=function(e){let t=d(e).map(e=>(function(e){let t=e.trim();if(!t)return"";let l=(0,a.$q)(t);if(null!==l.organization)return l.organization;if(!t.includes(","))return t;let r=(0,a.ev)(l.givens);return l.surname?r?p(`${l.surname}, ${r}`,l.suffix):p(l.surname,l.suffix):p(r,l.suffix)})(e)).filter(e=>e.length>0);if(0===t.length)return"";if(1===t.length)return t[0];if(2===t.length)return`${t[0]}, & ${t[1]}`;if(t.length<=20){let e=t.slice(0,-1).join(", "),l=t[t.length-1];return`${e}, & ${l}`}let l=t.slice(0,19).join(", "),r=t[t.length-1];return`${l}, . . . ${r}`}(t.authors),u=()=>{let l="book"===e?t.edition.trim():"",a=`${l?` (${l} ed.)`:""}${"video"===e?" [Video]":""}`;g(e)?(r(h(f(o))),r(c(`${a}.`))):r(c(a?`${f(o)}${a}.`:m(o)))},$=!1;s?r(c(m("video"===e&&t.username.trim()?`${s} [${t.username.trim()}]`:s))):o&&(u(),$=!0),n(),r(c(function(e){let t=e.trim();return t?`(${t}).`:"(n.d.)."}(t.year)));let y=()=>{!$&&o&&(n(),u())};if("book"===e){y();let e=t.publisher.trim();e&&(n(),r(c(m(e))))}else if("journal"===e){y();let e=t.container.trim(),l=t.volume.trim(),a=t.issue.trim(),i=t.pages.trim();if(e||l||a||i){if(n(),e){let t=!!(l||a||i);r(h(e)),r(c(t?", ":"."))}l?(r(h(l)),a&&r(c(`(${a})`)),r(c(i?", ":"."))):a&&(r(c(`(${a})`)),r(c(i?", ":"."))),i&&r(c(`${i}.`))}}
1else if("chapter"===e){y();let{text:e,multiple:l}=function(e){let t=d(e).map(b).filter(e=>e.length>0);if(0===t.length)return{text:"",multiple:!1};if(1===t.length)return{text:t[0],multiple:!1};if(2===t.length)return{text:`${t[0]} & ${t[1]}`,multiple:!0};let l=t.slice(0,-1).join(", "),r=t[t.length-1];return{text:`${l}, & ${r}`,multiple:!0}}(t.editors),a=t.bookTitle.trim(),i=t.pages.trim();a&&(n(),e?r(c(`In ${e} (${l?"Eds.":"Ed."}), `)):r(c("In ")),r(h(f(a))),r(c(i?` (pp. ${i}).`:".")));let o=t.publisher.trim();o&&(n(),r(c(m(o))))}else if("newspaper"===e){y();let e=t.container.trim();e&&(n(),r(h(f(e))),r(c(".")))}else if("video"===e){y();let e=t.container.trim();e&&(n(),r(c(m(e))))}else{y();let e=t.container.trim();e&&(n(),r(c(m(e))))}let k=(0,i.v)(t.url),v=t.accessDate.trim();return k&&(n(),"website"===e&&v?r(c(`Retrieved ${v}, from ${k}`)):r(c(k))),l}function y(e){let t=e.trim();if(!t)return"";let l=(0,a.$q)(t);if(null!==l.organization)return l.organization;let r=t.indexOf(",");return -1===r?t:t.slice(0,r).trim()}function k(e,t){let l=d(t.authors).map(y).filter(e=>e.length>0),r=function(e){let t=e.match(/\d{4}/);return t?t[0]:e.trim()||"n.d."}(t.year);if(0===l.length){let l=t.title.trim();if(!l)return{parenthetical:"",narrative:""};let a=g(e)?l:`"${f(l)}"`;return{parenthetical:`(${a}, ${r})`,narrative:`${a} (${r})`}}return 1===l.length?{parenthetical:`(${l[0]}, ${r})`,narrative:`${l[0]} (${r})`}:2===l.length?{parenthetical:`(${l[0]} & ${l[1]}, ${r})`,narrative:`${l[0]} and ${l[1]} (${r})`}:{parenthetical:`(${l[0]} et al., ${r})`,narrative:`${l[0]} et al. (${r})`}}function v(e){let t=d(e.authors).map(y).filter(e=>e.length>0);return(t.length>0?t[0]:e.title.trim()).toLowerCase().replace(/^(a|an|the)\s+/,"")}function x(e){return(0,r.J)(e)}},85488:(e,t,l)=>{l.r(t),l.d(t,{default:()=>N});var r=l(45993),a=l(75837),i=l(9905),n=l.n(i),o=l(30845),s=l(35323),u=l(77771),c=l(15662),h=l(76693),d=l(33029),p=l(79442),b=l(73258),m=l(13704),f=l(86892),g=l(55360),$=l(781),y=l(38707);let k=[{value:"journal",label:"Journal article"},{value:"book",label:"Book"},{value:"website",label:"Website or web page"}],v={authors:"",year:"",title:"",container:"",place:"",publisher:"",edition:"",volume:"",issue:"",pages:"",url:"",accessDate:""};function x(e,t){let l=t.trim();return l?e.toLowerCase().indexOf(l.toLowerCase()):-1}let j={key:"authors",label:"Author(s) or organization, one per line",placeholder:"Harris, Charles R.\nMillman, K. Jarrod\n{World Health Organization}",multiline:!0},w={journal:[j,{key:"year",label:"Year",placeholder:"2020"},{key:"title",label:"Article title",placeholder:"Array programming with NumPy"},{key:"container",label:"Journal name",placeholder:"Nature"},{key:"volume",label:"Volume",placeholder:"585"},{key:"issue",label:"Issue",placeholder:"7825"},{key:"pages",label:"Pages",placeholder:"357-362"},{key:"url",label:"DOI or URL",placeholder:"10.1038/s41586-020-2649-2"}],book:[j,{key:"year",label:"Year",placeholder:"2019"},{key:"title",label:"Book title",placeholder:"Clinical Pharmacology and Therapeutics"},{key:"edition",label:"Edition (optional)",placeholder:"3rd"},{key:"place",label:"Place of publication",placeholder:"London"},{key:"publisher",label:"Publisher",placeholder:"Elsevier"},{key:"url",label:"DOI or URL (optional)",placeholder:"https://doi.org/..."}],website:[j,{key:"year",label:"Year",placeholder:"2024"},{key:"title",label:"Page title",placeholder:"Clinical care of children with COVID-19"},{key:"container",label:"Site name",placeholder:"CDC"},{key:"url",label:"URL",placeholder:"https://www.cdc.gov/example"},{key:"accessDate",label:"Date you read it",placeholder:"March 15, 2024"}]};function N(){let[e,t]=(0,a.useState)("journal"),[l,i]=(0,a.useState)(v),j=(e,t)=>i(l=>({...l,[e]:t})),N=Object.values(l).some(e=>""!==e.trim()),D=(0,a.useMemo)(()=>(function(e,t){let l=function(e){let{doi:t,url:l}=function(e){let t=e.trim();return t?(0,d.n)(t)?{doi:t,url:""}:{doi:"",url:t}:{doi:"",url:""}}(e.url);return{authors:e.authors,title:e.title,journal:e.container,container:e.container,year:e.year,volume:e.volume,issue:e.issue,pages:e.pages,edition:e.edition,place:e.place,publisher:e.publisher,doi:t,url:l,published:e.year,updated:"",accessed:e.accessDate}}(t);
1return[{id:"apa",label:"APA 7th edition",slug:"apa-citation-generator",segments:(0,p.Yu)(e,{authors:t.authors,username:"",year:t.year,title:t.title,container:t.container,editors:"",bookTitle:"",publisher:t.publisher,edition:t.edition,volume:t.volume,issue:t.issue,pages:t.pages,url:t.url,accessDate:t.accessDate})},{id:"mla",label:"MLA 9th edition",slug:"mla-citation-generator",segments:(0,b.Yu)(e,{authors:t.authors,title:t.title,container:t.container,bookTitle:"",editors:"",uploader:"",publisher:t.publisher,edition:t.edition,volume:t.volume,issue:t.issue,pages:t.pages,date:t.year,url:t.url,accessDate:t.accessDate})},{id:"chicago",label:"Chicago 17th (bibliography)",slug:"chicago-citation-generator",segments:(0,m.Jo)(e,(0,m.Nq)(t.authors),{authors:t.authors,year:t.year,title:t.title,container:t.container,place:t.place,publisher:t.publisher,edition:t.edition,volume:t.volume,issue:t.issue,pages:t.pages,quotedPage:"",url:t.url,accessDate:t.accessDate})},{id:"harvard",label:"Harvard",slug:"harvard-citation-generator",segments:(0,f.R6)(e,(0,f.Nq)(t.authors),{authors:t.authors,year:t.year,title:t.title,container:t.container,place:t.place,publisher:t.publisher,edition:t.edition,volume:t.volume,issue:t.issue,pages:t.pages,quotedPage:"",url:t.url,accessDate:t.accessDate})},{id:"ieee",label:"IEEE",slug:"ieee-citation-generator",segments:(0,g.Yu)(e,(0,g.Nq)(t.authors),{authors:t.authors,title:t.title,container:t.container,volume:t.volume,issue:t.issue,pages:t.pages,edition:t.edition,place:t.place,publisher:t.publisher,month:"",year:t.year,url:t.url,accessDate:t.accessDate})},{id:"ama",label:"AMA 11th edition",slug:"ama-citation-generator",segments:(0,$.R6)(e,l)},{id:"vancouver",label:"Vancouver",slug:"vancouver-citation-generator",segments:(0,y.R6)(e,l,y.eK)}].map(e=>({...e,text:(0,h.h6)(e.segments)}))})(e,l),[e,l]),J=(0,a.useMemo)(()=>D.map(e=>(function(e,t){let l=e.text,r=[{part:"year",at:x(l,t.year)},{part:"title",at:x(l,t.title)},{part:"container",at:x(l,t.container)}].filter(e=>e.at>=0).sort((e,t)=>e.at-t.at),a=r.length>0?r[0].at:-1,i=a>0?l.slice(0,a).trim().replace(/[\s,("'ââ]+$/,""):"",n=[];for(let e of(i&&n.push("authors"),r))n.push(e.part);let o=["year","title","container"].filter(e=>""!==t[e].trim()).filter(e=>!n.includes(e));return{id:e.id,label:e.label,order:n,italics:e.segments.filter(e=>e.italic).map(e=>e.text.trim()).filter(Boolean),authorForm:i,omitted:o}})(e,l)),[D,l]),P=(0,a.useMemo)(()=>(function(e){let t=new Map;for(let l of e){if(!l.text)continue;let e=l.text,r=t.get(e);r?r.push(l):t.set(e,[l])}return[...t.values()].filter(e=>e.length>1)})(D),[D]),A=D.map(e=>`${e.label} 2${e.text}`).join("\n\n"),C=D.map(e=>`<p><strong>${e.label}</strong><br>${(0,h.jQ)(e.segments)}</p>`).join(""),R=w[e];return(0,r.jsxs)("div",{className:"space-y-8",children:[(0,r.jsxs)("div",{className:"grid gap-8 lg:grid-cols-[minmax(0,22rem)_minmax(0,1fr)]",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)(s.J,{htmlFor:"hub-type",children:"What are you citing?"}),(0,r.jsx)("select",{id:"hub-type",value:e,onChange:e=>t(e.target.value),className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:k.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))})]}),R.map(({key:e,label:t,placeholder:a,multiline:i})=>(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)(s.J,{htmlFor:`hub-${e}`,children:t}),i?(0,r.jsx)("textarea",{id:`hub-${e}`,value:l[e],placeholder:a,rows:3,onChange:t=>j(e,t.target.value),className:"flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"}):(0,r.jsx)(o.p,{id:`hub-${e}`,value:l[e],placeholder:a,onChange:t=>j(e,t.target.value)})]},e)),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Type each author as ",(0,r.jsx)("span",{className:"font-mono",children:"Last, First"})," on its own line. Every style below reads the same lines and prints them its own way. For a body rather than a person, wrap the name in braces, like"," ",(0,r.jsx)("span",{className:"font-mono",children:"{World Health Organization}"}),", and all seven print it whole instead of reading the last word as a surname."]}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsx)(c.i,{value:A,html:C,label:"Copy all seven",copiedLabel:"Copied â",describe:"all seven references",disabled:!N}),(0,r.jsx)(u.$,{variant:"outline",size:"sm",onClick:()=>i(v),disabled:!N,children:"Clear"})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:"No account, no email, and n
2o paywall on the copy button. Everything is built in your browser and nothing is uploaded."})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(s.J,{children:"All seven styles, from the one source above"}),N?(0,r.jsx)("ul",{className:"space-y-3",children:D.map(e=>(0,r.jsxs)("li",{className:"rounded-md border border-input bg-muted p-4",children:[(0,r.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-sm font-semibold",children:e.label}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,r.jsxs)(n(),{href:`/education/${e.slug}/`,className:"text-xs underline underline-offset-2 text-muted-foreground hover:text-foreground",children:["Full ",e.label.split(" ")[0]," tool"]}),(0,r.jsx)(c.i,{value:e.text,html:(0,h.jQ)(e.segments),copiedLabel:"Copied â",describe:`the ${e.label} reference`,variant:"ghost"})]})]}),(0,r.jsx)("p",{className:"pl-6 -indent-6 text-sm leading-relaxed","aria-live":"polite",children:e.segments.map((e,t)=>e.italic?(0,r.jsx)("em",{children:e.text},t):(0,r.jsx)(a.Fragment,{children:e.text},t))})]},e.id))}):(0,r.jsx)("div",{className:"rounded-md border border-input bg-muted p-4 text-sm text-muted-foreground",children:"Fill in the source on the left. Every style below fills in at once, so you do not have to pick one before you start."})]})]}),N&&(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(s.J,{children:"What changed between the styles"}),(0,r.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Every cell below is read off the references above, not from a rule typed into this page. Change a field and the table changes with it."})]}),P.length>0&&(0,r.jsxs)("p",{className:"rounded-md border border-input bg-muted p-3 text-sm",children:["For this source,"," ",(0,r.jsx)("strong",{children:P[0].map(e=>e.label).join(" and ")})," came out character for character identical. If you are assigned one of them, the other gives you the same line."]}),(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)("table",{className:"w-full min-w-[42rem] border-collapse text-sm",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b border-input text-left",children:[(0,r.jsx)("th",{className:"py-2 pr-4 font-semibold",children:"Style"}),(0,r.jsx)("th",{className:"py-2 pr-4 font-semibold",children:"Order of the parts"}),(0,r.jsx)("th",{className:"py-2 pr-4 font-semibold",children:"Set in italics"}),(0,r.jsx)("th",{className:"py-2 font-semibold",children:"Author list becomes"})]})}),(0,r.jsx)("tbody",{children:J.map(t=>(0,r.jsxs)("tr",{className:"border-b border-input/60 align-top",children:[(0,r.jsx)("td",{className:"py-2 pr-4 font-medium",children:t.label}),(0,r.jsx)("td",{className:"py-2 pr-4 text-muted-foreground",children:t.order.length>0?t.order.map(t=>"container"===t?"journal"===e?"journal":"site":t).join(" ⺠"):"nothing shown yet"}),(0,r.jsx)("td",{className:"py-2 pr-4 text-muted-foreground",children:t.italics.length>0?(0,r.jsx)("em",{children:t.italics.join(", ")}):"nothing is italic"}),(0,r.jsx)("td",{className:"py-2 font-mono text-xs text-muted-foreground",children:t.authorForm||"no authors yet"})]},t.id))})]})}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:["The table reports where each part was printed, not why the manual says so. For the reasoning, and for source types beyond a journal article, a book and a web page, open the full tool for that style from the list above. A"," ",(0,r.jsx)(n(),{href:"/education/citation-checker/",className:"underline underline-offset-2 hover:text-foreground",children:"citation checker"})," ","is there if you already have a list to look over."]})]})]})}},86514:(e,t,l)=>{l.d(t,{J:()=>r});function r(e){return Object.values(e).some(e=>""!==e.trim())}},86892:(e,t,l)=>{l.d(t,{Ar:()=>o.h6,MG:()=>f,Nq:()=>d,R6:()=>b,b_:()=>m,l0:()=>s});var r=l(86514),a=l(62981),i=l(33029),n=l(70753),o=l(76693);let s={quotedPage:"",authors:"",year:"",title:"",container:"",place:"",publisher:"",edition:"",volume:"",issue:"",pages:"",url:"",accessDate:""};function u(e){return{text:e,italic:!1}}function c(e){return{text:e,italic:!0}}function h(e){var t;let l=e.initials?`${e.last}, ${e.initials}`:e.last,r=(t=e.suffix)?/^(jr|sr)$/i.test(t)?`${t}.`:t:"";return r?`${l} ${r}`:l}function d(e){return e.split(/[;\n]/).flatMap(e=>{let t=e.trim();return t?/^\{[\s\S]*\}$/.test(t)||(0,a.Hq)(t)?[t]:t.includes(",")?t.split(/\s+and\s+|\s*&\s*/i):t.split(/\s+and\s+/i):[]}).map(e=>(function(e){let t=e.trim();if(!t)return null;let l=(0,a.$q)(t);if(null!==l.organization)return{last:l.organization,initials:"",suffix:""};let r=t.indexOf(",");return -1===r?{last:t,initials:"",suffix:""}:t.slice(0,r).trim()?{last:l.surname,initials:(0,a.g3)(l.givens),suffix:l.suffix}:{last:t.slice(r+1).trim(),initials:"",suffix:""}})(e)).filter(e=>null!==e)}function p(e){let t=e.trim();return t?/[.!?]$/.test(t)?t:`${t}.`:""}function b(e,t,l){let r=[],a=e=>{e.text&&r.push(e)},o=()=>{r.length>0&&r.push(u(" "))},s=function(e){if(0===e.length)return"";let t=e.map(h);if(t.length>=10)return`${t[0]} et al.`;if(1===t.length)return t[0];if(2===t.length)return`${t[0]} and ${t[1]}`;let l=t.slice(0,-1).join(", "),r=t[t.length-1];return`${l} and ${r}`}(t);s&&a(u(s)),o(),a(u(function(e){let t=e.trim();return t?`(${t})`:"(no date)"}(l.year)));let d=l.title.trim(),b=l.edition.trim();if("book"===e){if(d&&(o(),a(c(d)),a(u("."))),b){o();let e=b.replace(/\s*edn\.?$/i,"").trim();a(u(`${e} edn.`))}let e=l.place.trim(),t=l.publisher.trim();e&&t?(o(),a(u(`${e}: ${t}.`))):t?(o(),a(u(p(t)))):e&&(o(),a(u(p(e))))}else if("journal"===e){d&&(o(),a(u(`'${d.replace(/[.,]$/,"")}',`)));
2let e=l.container.trim(),t=l.volume.trim(),r=l.issue.trim(),i=(0,n.c)(l.pages);if(e){o();let l=!!(t||r||i);a(c(e)),a(u(l?",":"."))}(t||r)&&(o(),t&&a(u(t)),r&&a(u(`(${r})`)),a(u(i?",":"."))),i&&(o(),a(u(`${i}.`)))}else{let e=l.container.trim();d&&(o(),a(c(d)),a(u("."))),e&&(o(),a(u(p(e))));let t=(0,i.v)(l.url),r=l.accessDate.trim();t&&(o(),a(r?u(`Available at: ${t} (Accessed: ${r}).`):u(`Available at: ${t}.`)))}if("website"!==e){let e=(0,i.v)(l.url),t=l.accessDate.trim();e&&(o(),a(t?u(`Available at: ${e} (Accessed: ${t}).`):u(`Available at: ${e}.`)))}return r}function m(e,t,l){let r=function(e){if(0===e.length)return"";if(1===e.length)return e[0].last;if(2===e.length)return`${e[0].last} and ${e[1].last}`;if(e.length<4){let t=e.map(e=>e.last),l=t.pop();return`${t.join(", ")} and ${l}`}return`${e[0].last} et al.`}(t),a=l.year.trim()||"no date";if(!r)return"";let i=(0,n.c)(l.quotedPage);return i?`(${r}, ${a}, ${i})`:`(${r}, ${a})`}function f(e){return(0,r.J)(e)}}}]);
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.