1import{ot as e}from"./dNVL65FL.js";import{B as t,Ct as n,Lt as r,x as i}from"./CCzh-hyO.js";import{v as a}from"./7bw-1-Bc.js";import"./BfpIqoY2.js";var o=``+new URL(`bootsballanbackground.8TRvC7a3.webp`,import.meta.url).href;t(),n();function s(e){return{name:`Boot.dev`,url:e,logo:`${e}/img/boots-logo-floating.png`,orgId:`${e}/#organization`,websiteId:`${e}/#website`,sameAs:[`https://twitter.com/bootdotdev`,`https://youtube.com/@bootdotdev`,`https://www.linkedin.com/school/bootdotdev`,`https://instagram.com/bootdotdev`,`https://tiktok.com/@bootdotdev`,`https://github.com/bootdotdev`,`https://discord.gg/bootdotdev`]}}function c(e,t,n){if(!n?.length)return e;let r=new URLSearchParams;for(let e of n){let n=t[e];if(n){if(Array.isArray(n)){let t=[...new Set(n.filter(l))].sort();for(let n of t)r.append(e,n);continue}l(n)&&r.append(e,n)}}let i=r.toString();return i?`${e}?${i}`:e}function l(e){return e!==null&&e!==``}function u(e,t,n){return n&&n!==``?n:`${e}${t}`}function d(e,t){if(e)return e.startsWith(`/`)?`${t}${e}`:e}function f({unwrappedTitle:e,unwrappedDescription:t,unwrappedNoindex:n,effectiveCanonicalURL:r,ogType:i=`website`,absoluteFeaturedImageURL:a}){let o=e?e.includes(`|`)?e:`${e} | Boot.dev`:null,s={title:``,meta:[{charset:`utf-8`,key:`charset`},{name:`viewport`,content:`width=device-width,initial-scale=1.0`,key:`viewport`},{"http-equiv":`X-UA-Compatible`,content:`IE=edge`,key:`httpEquiv`},{name:`msapplication-TileColor`,content:`#da532c`,key:`msTileColor`},{name:`theme-color`,content:`#ffffff`,key:`themeColor`},{name:`facebook-domain-verification`,content:`5awbavpku3pitalt00p28mmdxnf091`,key:`fbDomainVerification`},{property:`og:url`,content:r,key:`og:url`}],link:[{rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`,key:`appleTouchIcon`},{rel:`icon`,type:`image/png`,sizes:`32x32`,href:`/favicon-32x32.png`,key:`favicon32x32`},{rel:`icon`,type:`image/png`,sizes:`16x16`,href:`/favicon-16x16.png`,key:`favicon16x16`},{rel:`manifest`,href:`/site.webmanifest`,key:`manifest`},{rel:`canonical`,href:r,key:`canonical`}],noscript:[{innerHTML:`We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.`}],htmlAttrs:{lang:`en`}};return s.meta||=[],o&&(s.title=o,s.meta.push({key:`og:title`,property:`og:title`,content:o}),s.meta.push({key:`og:site_name`,property:`og:site_name`,content:`Boot.dev`}),s.meta.push({key:`og:type`,property:`og:type`,content:i}),s.meta.push({key:`twitter:title`,property:`twitter:title`,content:o})),t&&(s.meta.push({key:`description`,name:`description`,content:t}),s.meta.push({key:`og:description`,property:`og:description`,content:t}),s.meta.push({key:`twitter:description`,property:`twitter:description`,content:t})),a&&(s.meta.push({key:`og:image`,property:`og:image`,content:a}),s.meta.push({key:`twitter:image`,property:`twitter:image`,content:a}),s.meta.push({key:`twitter:card`,property:`twitter:card`,content:`summary_large_image`})),(n||{}.VITE_ENVIRONMENT===`staging`)&&s.meta.push({key:`robots`,name:`robots`,content:`noindex`}),s}function p(e,t){return{type:`application/ld+json`,textContent:JSON.stringify({"@context":`https://schema.org`,...e}),id:`jsonld-${t}`}}function m(e,t){return{"@type":`EducationalOrganization`,"@id":e.orgId,name:e.name,url:e.url,logo:e.logo,description:t,sameAs:e.sameAs,foundingDate:`2022`,founder:{"@type":`Person`,name:`Lane Wagner`,url:`${e.url}/teachers/lane-wagner`},contactPoint:{"@type":`ContactPoint`,contactType:`customer support`,url:`${e.url}/contact`}}}function h(e){return{"@type":`WebSite`,"@id":e.websiteId,name:e.name,url:e.url,publisher:{"@type":`EducationalOrganization`,"@id":e.orgId},potentialAction:{"@type":`SearchAction`,target:`${e.url}/courses?search={search_term_string}`,"query-input":`required name=search_term_string`}}}function g(e,t,n,i){let a=r(t.productName),o=r(t.productImage),s=r(t.offers);return{"@type":`Product`,"@id":`${n}#product`,name:a,description:i,image:o,brand:{"@type":`Organization`,"@id":e.orgId},offers:s.map((e,t)=>({"@type":`Offer`,"@id":`${n}#offer-${t}`,name:e.name,url:n,price:e.price,priceCurrency:e.priceCurrency.toUpperCase(),availability:`https://schema.org/InStock`,priceSpecification:{"@type":`UnitPriceSpecification`,price:e.price,priceCurrency:e.priceCurrency.toUpperCase(),billingDuration:e.billingDuration,billingIncrement:1,unitText:e.unitText}}))}}
1function _(e,t,n,i,a){let o=r(t.breadcrumbs);return{"@type":`CollectionPage`,"@id":`${n}#collectionpage`,name:i,description:a,url:n,isPartOf:{"@type":`WebSite`,"@id":e.websiteId},breadcrumb:{"@type":`BreadcrumbList`,itemListElement:o.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:e.url}))}}}function v(e,t){let n=r(e.breadcrumbs);return{"@type":`BreadcrumbList`,"@id":`${t}#breadcrumb`,itemListElement:n.map((e,t)=>({"@type":`ListItem`,position:t+1,name:e.name,item:e.url}))}}function y(e,t,n,i,a,o){let s=r(t.datePublished),c=t.dateModified?r(t.dateModified):void 0,l=r(t.authorName),u=s.toISOString().split(`T`)[0],d=(c??s).toISOString().split(`T`)[0];return{"@type":`Article`,"@id":`${n}#article`,headline:i,description:a,image:o,datePublished:u,dateModified:d,author:{"@type":`Person`,name:l},publisher:{"@type":`Organization`,name:e.name,"@id":e.orgId,logo:{"@type":`ImageObject`,url:e.logo}},isPartOf:{"@type":`WebSite`,"@id":e.websiteId}}}function b(e,t,n,i,a,o){let s=r(t.pathWorkloadMonths),c=r(t.numCourses),l=r(t.numProjects),u=r(t.teaches);return{"@type":`Course`,"@id":`${n}#course`,name:i,description:a,image:o,provider:{"@type":`Organization`,"@id":e.orgId,name:e.name,sameAs:e.url},educationalLevel:`Beginner to Intermediate`,teaches:u,inLanguage:`en`,url:n,hasCourseInstance:{"@type":`CourseInstance`,courseMode:`online`,courseWorkload:`P${s}M`},numberOfCredits:c+l,offers:[{"@type":`Offer`,name:`Free Access`,description:`Read-only access to all lessons and content.`,price:0,priceCurrency:`USD`,availability:`https://schema.org/InStock`,url:`${e.url}/pricing`},{"@type":`Offer`,name:`Paid Membership`,description:`Unlock code execution, projects, and certificates.`,category:`Subscription`,price:29,priceCurrency:`USD`,availability:`https://schema.org/InStock`,url:`${e.url}/pricing`}]}}function x(e,t,n,i,a){let o=r(t.authorName),s=r(t.authorDescription),c=r(t.authorImageURL),l=r(t.authorSlug),u=t.authorIsOrganization?r(t.authorIsOrganization):!1,d=r(t.courseSlug),f=r(t.courseName),p=r(t.courseWorkloadHours),m=r(t.totalEnrollment)??0,h=r(t.courseRating),g=r(t.totalRatings),_=r(t.showRatings),v=t.reviews?r(t.reviews):[],y=l?`${e.url}/${u?`teacher-teams`:`teachers`}/${l}`:void 0,b=d?`${e.url}/courses/${d}`:void 0;return{"@type":`Course`,name:n,description:i,image:a,...b&&{url:b},author:{"@type":u?`Organization`:`Person`,name:o,...y&&{url:y}},educationalCredentialAwarded:`Certificate of Completion`,...m>0&&{totalHistoricalEnrollment:m},hasCourseInstance:{"@type":`CourseInstance`,courseMode:`online`,courseWorkload:`PT${p}H`,instructor:[{"@type":u?`Organization`:`Person`,name:o,description:s,image:c,...y&&{url:y}}]},offers:[{"@type":`Offer`,name:`Free Access`,description:`Read-only access to all lessons and content.`,price:0,priceCurrency:`USD`,availability:`https://schema.org/InStock`,url:`${e.url}/pricing`},{"@type":`Offer`,name:`Paid Membership`,description:`Unlock code execution, projects, and certificates.`,category:`Subscription`,price:29,priceCurrency:`USD`,availability:`https://schema.org/InStock`,url:`${e.url}/pricing`}],provider:{"@type":`Organization`,name:e.name,sameAs:e.url},isPartOf:{"@type":`WebSite`,"@id":e.websiteId},breadcrumb:{"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:e.url},{"@type":`ListItem`,position:2,name:`Courses`,item:`${e.url}/courses`},...b&&f?[{"@type":`ListItem`,position:3,name:f,item:b}]:[]]},countryOfOrigin:{"@type":`Country`,name:`United States`},inLanguage:{"@type":`Language`,name:`English`},availableLanguage:{"@type":`Language`,name:`English`},..._&&{aggregateRating:{"@type":`AggregateRating`,ratingValue:h,ratingCount:g,bestRating:5,worstRating:1}},..._&&v.length>0&&{review:v.map(e=>({"@type":`Review`,reviewBody:e.publicReview,datePublished:e.createdAt,reviewRating:{"@type":`Rating`,ratingValue:e.rating,bestRating:5,worstRating:1},author:{"@type":`Person`,name:`${e.firstName} ${e.lastName}`}}))}}}
1function S(e,t,n){let i=r(t.authorName),a=r(t.authorDescription),o=r(t.authorImageURL),s=r(t.authorProfileURL),c=r(t.authorCourses),l=t.authorSocials?r(t.authorSocials):void 0,u=d(o,n),f=[];return l&&(l.twitter&&f.push(l.twitter),l.github&&f.push(l.github),l.linkedin&&f.push(l.linkedin),l.youtube&&f.push(l.youtube),l.twitch&&f.push(l.twitch)),{"@type":`Person`,name:i,description:a,image:[u],mainEntityOfPage:{"@type":`WebPage`,"@id":s},worksFor:{"@type":`Organization`,name:e.name,sameAs:e.url},knowsAbout:c,url:s,...f.length>0&&{sameAs:f}}}function C(e){return{"@type":`FAQPage`,mainEntity:r(e.faqs).map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answer}}))}}function w(t){let n=e(),o=`https://www.boot.dev`,l=s(o),w=t.schemas?.author?`profile`:`website`;a(i(()=>{let e=r(t.title),i=r(t.description),a=r(t.featuredImageURL)||``+new URL(`bootsballanbackground.8TRvC7a3.webp`,import.meta.url).href,s=r(t.noindex)??!1,T=d(a,o),E=r(t.canonicalURL),D=r(t.canonicalQueryParams),O=c(n.path,n.query,D),k=u(o,O,E),A=f({unwrappedTitle:e,unwrappedDescription:i,unwrappedNoindex:s,effectiveCanonicalURL:k,ogType:w,absoluteFeaturedImageURL:T});A.script||=[];let j=t.schemas;return j&&(j.organization&&A.script.push(p(m(l,i),`organization`)),j.website&&A.script.push(p(h(l),`website`)),j.product&&A.script.push(p(g(l,j.product,k,i),`product`)),j.collectionPage&&A.script.push(p(_(l,j.collectionPage,k,e,i),`collectionpage`)),j.breadcrumbList&&A.script.push(p(v(j.breadcrumbList,k),`breadcrumb`)),j.article&&A.script.push(p(y(l,j.article,k,e,i,T),`article`)),j.path&&A.script.push(p(b(l,j.path,k,e,i,T),`track`)),j.course&&A.script.push(p(x(l,j.course,e,i,T),`course`)),j.author&&A.script.push(p(S(l,j.author,o),`author`)),j.faq&&r(j.faq.faqs).length>0&&A.script.push(p(C(j.faq),`faq`))),A}))}export{o as n,w as t};
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.