mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9817],{8064:(e,t,n)=>{n.d(t,{Z:()=>g});var a=n(67294),r=n(86010),i=n(65319),l=n(53964),s=n(87275),c=n(31984),o=n(70676),m=n(92210);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},u.apply(this,arguments)}function d(e){return a.createElement("svg",u({viewBox:"0 0 24 24"},e),a.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const b={breadcrumbsContainer:"breadcrumbsContainer_Z_bl",breadcrumbHomeIcon:"breadcrumbHomeIcon_OVgt"};function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},h.apply(this,arguments)}function p({children:e,href:t,isLast:n}){const r="breadcrumbs__link";return n?a.createElement("span",{className:r,itemProp:"name"},e):t?a.createElement(c.Z,{className:r,href:t,itemProp:"item"},a.createElement("span",{itemProp:"name"},e)):a.createElement("span",{className:r},e)}function v({children:e,active:t,index:n,addMicrodata:i}){return a.createElement("li",h({},i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,r.Z)("breadcrumbs__item",{"breadcrumbs__item--active":t})}),e,a.createElement("meta",{itemProp:"position",content:String(n+1)}))}function f(){const e=(0,o.Z)("/");return a.createElement("li",{className:"breadcrumbs__item"},a.createElement(c.Z,{"aria-label":(0,m.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:(0,r.Z)("breadcrumbs__link",b.breadcrumbsItemLink),href:e},a.createElement(d,{className:b.breadcrumbHomeIcon})))}function g(){const e=(0,l.s1)(),t=(0,s.Ns)();return e?a.createElement("nav",{className:(0,r.Z)(i.k.docs.docBreadcrumbs,b.breadcrumbsContainer),"aria-label":(0,m.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},a.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&a.createElement(f,null),e.map(((t,n)=>{const r=n===e.length-1;return a.createElement(v,{key:n,active:r,index:n,addMicrodata:!!t.href},a.createElement(p,{href:t.href,isLast:r},t.label))})))):null}},59485:(e,t,n)=>{n.r(t),n.d(t,{default:()=>V});var a=n(67294),r=n(34285),i=n(53964),l=n(70676),s=n(86010),c=n(31984),o=n(47785),m=n(92210);const u="cardContainer_fWXF",d="cardTitle_rnsV",b="cardDescription_PWke";function h({href:e,children:t}){return a.createElement(c.Z,{href:e,className:(0,s.Z)("card padding--lg",u)},t)}function p({href:e,icon:t,title:n,description:r}){return a.createElement(h,{href:e},a.createElement("h2",{className:(0,s.Z)("text--truncate",d),title:n},t," ",n),r&&a.createElement("p",{className:(0,s.Z)("text--truncate",b),title:r},r))}function v({item:e}){const t=(0,i.Wl)(e);return t?a.createElement(p,{href:t,icon:"\ud83d\uddc3\ufe0f",title:e.label,description:(0,m.I)({message:"{count} items",id:"theme.docs.DocCard.categoryDescription",description:"The default description for a category card in the generated index about how many items this category includes"},{count:e.items.length})}):null}function f({item:e}){const t=(0,o.Z)(e.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17";var n;const r=(0,i.xz)(null!==(n=e.docId)&&void 0!==n?n:void 0);return a.createElement(p,{href:e.href,icon:t,title:e.label,description:null==r?void 0:r.description})}function g({item:e}){switch(e.type){case"link":return a.createElement(f,{item:e});case"category":return a.createElement(v,{item:e});default:throw new Error(`unknown item type ${JSON.stringify(e)}`)}}function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},E.apply(this,arguments)}function y({className:e}){const t=(0,i.jA)();return a.createElement(N,{items:t.items,className:e})}function N(e){const{items:t,className:n}=e;if(!t)return a.createElement(y,E({},e));const r=(0,i.MN)(t);return a.createElement("section",{className:(0,s.Z)("row",n)},r.map(((e,t)=>a.createElement("article",{key:t,className:"col col--6 margin-bottom--lg"},a.createElement(g,{item:e})))))}var Z=n(2716),k=n(2085),O=n(22378),L=n(8064),_=n(24999);const w="generatedIndexPage_vN6x",T="list_eTzJ",x="title_kItE";function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},I.apply(this,arguments)}function j({categoryGeneratedIndex:e}){return a.createElement(r.d,{title:e.title,description:e.description,keywords:e.keywords,image:(0,l.Z)(e.image)})}function P({categoryGeneratedIndex:e}){const t=(0,i.jA)();return a.createElement("div",{className:w},a.createElement(k.Z,null),a.createElement(L.Z,null),a.createElement(O.Z,null),a.createElement("header",null,a.createElement(_.Z,{as:"h1",className:x},e.title),e.description&&a.createElement("p",null,e.description)),a.createElement("article",{className:"margin-top--lg"},a.createElement(N,{items:t.items,className:T})),a.createElement("footer",{className:"margin-top--lg"},a.createElement(Z.Z,{previous:e.navigation.previous,next:e.navigation.next})))}function V(e){return a.createElement(a.Fragment,null,a.createElement(j,I({},e)),a.createElement(P,I({},e)))}},2716:(e,t,n)=>{n.d(t,{Z:()=>o});var a=n(67294),r=n(92210),i=n(86010),l=n(31984);function s(e){const{permalink:t,title:n,subLabel:r,isNext:s}=e;return a.createElement(l.Z,{className:(0,i.Z)("pagination-nav__link",s?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},r&&a.createElement("div",{className:"pagination-nav__sublabel"},r),a.createElement("div",{className:"pagination-nav__label"},n))}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function o(e){const{previous:t,next:n}=e;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,r.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},t&&a.createElement(s,c({},t,{subLabel:a.createElement(r.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&a.createElement(s,c({},n,{subLabel:a.createElement(r.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}},22378:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(67294),r=n(86010),i=n(92210),l=n(65319),s=n(27391);function c({className:e}){const t=(0,s.E)();return t.badge?a.createElement("span",{className:(0,r.Z)(e,l.k.docs.docVersionBadge,"badge badge--secondary")},a.createElement(i.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:t.label}},"Version: {versionLabel}")):null}},2085:(e,t,n)=>{n.d(t,{Z:()=>f});var a=n(67294),r=n(86010),i=n(8241),l=n(31984),s=n(92210),c=n(55995),o=n(65319),m=n(39085),u=n(27391);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d.apply(this,arguments)}const b={unreleased:function({siteTitle:e,versionMetadata:t}){return a.createElement(s.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:e,versionLabel:a.createElement("b",null,t.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function({siteTitle:e,versionMetadata:t}){return a.createElement(s.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:e,versionLabel:a.createElement("b",null,t.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function h(e){const t=b[e.versionMetadata.banner];return a.createElement(t,d({},e))}function p({versionLabel:e,to:t,onClick:n}){return a.createElement(s.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:e,latestVersionLink:a.createElement("b",null,a.createElement(l.Z,{to:t,onClick:n},a.createElement(s.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function v({className:e,versionMetadata:t}){const{siteConfig:{title:n}}=(0,i.Z)(),{pluginId:l}=(0,c.gA)({failfast:!0}),{savePreferredVersionName:s}=(0,m.J)(l),{latestDocSuggestion:u,latestVersionSuggestion:d}=(0,c.Jo)(l),b=null!=u?u:(v=d).docs.find((e=>e.id===v.mainDocId));var v;return a.createElement("div",{className:(0,r.Z)(e,o.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},a.createElement("div",null,a.createElement(h,{siteTitle:n,versionMetadata:t})),a.createElement("div",{className:"margin-top--md"},a.createElement(p,{versionLabel:d.label,to:b.path,onClick:()=>s(d.name)})))}function f({className:e}){const t=(0,u.E)();return t.banner?a.createElement(v,{className:e,versionMetadata:t}):null}},24999:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(67294),r=n(86010),i=n(92210),l=n(86016);const s="anchorWithStickyNavbar_LWe7",c="anchorWithHideOnScrollNavbar_WYt5";function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(this,arguments)}function m(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(e){var{as:t,id:n}=e,u=m(e,["as","id"]);const{navbar:{hideOnScroll:d}}=(0,l.L)();return"h1"!==t&&n?a.createElement(t,o({},u,{className:(0,r.Z)("anchor",d?c:s),id:n}),u.children,a.createElement("a",{className:"hash-link",href:`#${n}`,title:(0,i.I)({id:"theme.common.headingLinkTitle",message:"Direct link to heading",description:"Title for link to heading"})},"\u200b")):a.createElement(t,o({},u,{id:void 0}))}}}]); |