PageSourceSearch

https://kinsta.com/_next/static/chunks/4459-bac9a7d7cbdba915.js

js kinsta.com collected 2026-10-01 07:28:09 UTC 16,359 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4459],{2185:e=>{e.exports={root:"DocsHeader_root__B6MuJ",open:"DocsHeader_open__ZZt1W",header:"DocsHeader_header__BExdJ",homeLink:"DocsHeader_homeLink__UUDes"}},4150:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HeadingMap:()=>d});var n=s(95155),l=s(39941),a=s(31307),c=s(18955),r=s(28229),o=s(41341),i=s.n(o);let d=e=>{let{headings:t,label:s}=e,{activeHeading:o}=(0,r.OA)(),d=function e(t,s){return t?t.map(t=>{var a;if(!t||t.level>=4)return null;let c="".concat(t.level,"-").concat(t.id),r=s===t.id;if((null==(a=t.children)?void 0:a.length)===0)return(0,n.jsx)("li",{"data-level":t.level,children:(0,n.jsx)(l.Link,{"aria-current":r,className:i().link,href:"#".concat(t.id),children:t.text})},c);{let a=t.children?e(t.children,s):null;return(0,n.jsxs)("li",{"data-level":t.level,children:[(0,n.jsx)(l.Link,{"aria-current":r,className:i().link,href:"#".concat(t.id),children:t.text}),a&&(0,n.jsx)("ol",{className:i().list,children:a})]},c)}}):null}(function(e){let t={children:[],id:"",level:0,text:""},s=[t];return e.forEach(e=>{var t;if(!e)return;let n={...e,children:[]};for(;s.length>1&&(null==(t=s[s.length-1])?void 0:t.level)>=e.level;)s.pop();let l=s[s.length-1];void 0!==l&&void 0!==l.children&&l.children.push(n),s.push(n)}),t.children}(t),o),h=(0,c.c)("docs._.labels");return!d||d.length<=0?null:(0,n.jsxs)("nav",{"aria-label":h("table_of_contents"),className:i().root,children:[(0,n.jsx)("h5",{className:i().label,children:(0,n.jsx)(l.Link,{href:"#main",children:(0,a.D4)(s)})}),(0,n.jsx)("ol",{className:i().list,children:d})]})}},7256:(e,t,s)=>{"use strict";s.r(t),s.d(t,{FeedbackForm:()=>p});var n=s(95155),l=s(39941),a=s(72127),c=s(31064),r=s(2821),o=s(18955),i=s(12115),d=s(53674),h=s(24020),u=s(52571),v=s.n(u);let m=e=>{let{id:t,onCancel:s,onDone:a}=e,c=(0,d.Bi)(),r=(0,o.c)(),[u,m]=(0,i.useState)(""),[x,_]=(0,i.useState)(!1);return(0,n.jsxs)("form",{className:v().feedbackForm,children:[(0,n.jsx)("label",{htmlFor:c,children:r("docs._components.DocsSinglePost.FeedbackForm::No.label")}),(0,n.jsxs)("fieldset",{disabled:x,children:[(0,n.jsx)("textarea",{autoFocus:!0,id:c,onChange:e=>m(e.target.value),placeholder:r("docs._components.DocsSinglePost.FeedbackForm.placeholder"),rows:3}),(0,n.jsxs)("div",{className:v().buttonGroup,children:[(0,n.jsx)(l.Button,{isDisabled:x,onPress:()=>{_(!0),(0,h.Cc)({message:u,post:t,type:"negative"}).finally(()=>{_(!1),a()})},size:"xs",children:r("_.send")}),(0,n.jsx)(l.Button,{isDisabled:x,onPress:s,size:"xs",variant:"secondary",children:r("_.cancel")})]})]})]})},x=e=>{let{id:t,onCancel:s,onDone:a}=e,c=(0,d.Bi)(),r=(0,o.c)(),[u,m]=(0,i.useState)(""),[x,_]=(0,i.useState)(!1);return(0,n.jsxs)("form",{className:v().feedbackForm,children:[(0,n.jsx)("label",{htmlFor:c,children:r("docs._components.DocsSinglePost.FeedbackForm::Yes.label")}),(0,n.jsxs)("fieldset",{disabled:x,children:[(0,n.jsx)("textarea",{autoFocus:!0,id:c,onChange:e=>m(e.target.value),placeholder:r("docs._components.DocsSinglePost.FeedbackForm.placeholder"),rows:3}),(0,n.jsxs)("div",{className:v().buttonGroup,children:[(0,n.jsx)(l.Button,{isDisabled:x,onPress:()=>{_(!0),(0,h.Cc)({message:u,post:t,type:"positive"}).finally(()=>{_(!1),a()})},size:"xs",children:r("_.send")}),(0,n.jsx)(l.Button,{isDisabled:x,onPress:s,size:"xs",variant:"secondary",children:r("_.cancel")})]})]})]})},_=()=>{let e=(0,o.c)("docs._components.DocsSinglePost.FeedbackForm::Thanks");return(0,n.jsxs)("div",{className:v().thanks,children:[(0,n.jsx)(a.XXw,{}),e("label")]})},p=e=>{let{id:t}=e,s=(0,o.c)(),[d,h]=(0,c.j)(!1),[u,p]=(0,c.j)(!1),[b,j]=(0,i.useState)(!1),f=d||u;return(0,n.jsxs)("div",{className:v().root,"data-expanded":f,children:[(0,n.jsxs)("div",{className:v().feedbackQuestion,children:[(0,n.jsx)("strong",{children:s("docs._components.DocsSinglePost.FeedbackForm.label")}),(0,n.jsxs)("div",{className:v().buttonGroup,children:[(0,n.jsx)(l.Button,{className:(0,r.A)(d&&v().selected),isDisabled:f,onPress:h.open,prefix:(0,n.jsx)(a.kuE,{}),size:"xs",children:s("_.yes")}),(0,n.jsx)(l.Button,{className:(0,r.A)(u&&v().selected),isDisabled:f,onPress:p.open,prefix:(0,n.jsx)(a.jYE,{}),size:"xs",children:s("_.no")})]})]}),!b&&d&&(0,n.jsx)(x,{id:t,onCancel:h.close,onDone:()=>j(!0)}),!b&&u&&(0,n.jsx)(m,{id:t,onCancel:p.close,onDone:()=>j(!0)}),b&&(0,n.jsx)(_,{})]})}},8499:e=>{e.exports={overlay:"DocsImageLightbox_overlay__dkswO",image:"DocsImageLightbox_image__HDWDn"}},13511:e=>{e.exports={root:"Heading_root__6SfRo",anchor:"Heading_anchor__JwDnI",anchorButton:"Heading_anchorButton__kxDvK"}},24020:(e,t,s)=>{"use strict";s.d(t,{Cc:()=>a,uK:()=>c}),s(16405),s(95155),s(41034),s(52619);var n=s(58525);s(39941),s(26640),s(58715),s(24276),s(15239),s(20420),s(12115);var l=s(60968);async function a(e){let{message:t,post:s,type:n}=e;return await (0,l.Qs)("/kinsta/v1/form/article-feedback",{body:{message:t,post:s,type:n},method:"POST"})}function c(e){if(!e||!(0,n.nt)(e))return e;let t=new URL(e),s=(0,n.rg)("".concat(t.protocol,"//").concat(t.host).concat(t.pathname?t.pathname:"")),l=t.searchParams.get("post_type"),a=t.searchParams.get("docs");return a?(0,n.VZ)("".concat(s,"/docs/").concat(a)):"docs"===l?(0,n.VZ)("".concat(s,"/docs")):(0,n.VZ)(e)}},24276:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Heading:()=>x});
1var n=s(95155),l=s(39941),a=s(72127),c=s(88240),r=s(56080),o=s(2821),i=s(18955),d=s(12115),h=s(28229),u=s(13511),v=s.n(u);let m=e=>{let{className:t,id:s,onCopy:r}=e,h=(0,i.c)("docs._components.Heading::HashAnchor"),{copied:u,copy:m}=(0,c.i)({timeout:300}),{window:x}=globalThis;(0,d.useEffect)(()=>{r&&r(u)},[u]);let _=null;return(null==x?void 0:x.location.href)&&(_=new URL(null==x?void 0:x.location.href)),(0,n.jsx)("span",{className:(0,o.A)(v().anchor,t),children:(0,n.jsx)(l.Button,{"aria-hidden":"true","aria-label":h("label"),className:v().anchorButton,onPress:()=>{_ instanceof URL&&m("".concat(_.protocol,"//").concat(_.host).concat(_.pathname,"#").concat(s))},size:"xs",variant:"tertiary",children:(0,n.jsx)(a.N_E,{})})})},x=e=>{let{children:t,level:s,withAnchor:l=!1,...a}=e,{currentHeadings:c,setActiveHeading:o,setCurrentHeadings:i}=(0,h.OA)(),u=(0,d.useRef)(null),x=(0,d.useRef)(null),{entry:_,ref:p}=(0,r.v)({root:x.current,rootMargin:"0% 0% -80% 0%",threshold:.2});return((0,d.useEffect)(()=>{let e=a.id;!e||e in c||i({[e]:!1})},[]),(0,d.useEffect)(()=>{let e=a.id;if(e&&_){if(_.isIntersecting){o(e),u.current=window.scrollY;return}if(null!==u.current){let s=Object.keys(c),n=u.current-window.scrollY>0,l=s.indexOf(e);if(n){var t;o(null!=(t=s[l-1])?t:null)}}}},[_]),s>=1&&s<=6)?(0,d.createElement)("h".concat(s),{...a,className:v().root,ref:p},(0,n.jsxs)(n.Fragment,{children:[a.id&&l?(0,n.jsx)(m,{id:a.id}):null,t]})):null}},26640:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Collapsible:()=>u});var n=s(95155),l=s(72127),a=s(2821),c=s(41407),r=s(26497),o=s(20240),i=s(12115),d=s(67635),h=s.n(d);let u=e=>{let{children:t,defaultOpen:s=!1,summary:d}=e,[u,v]=(0,i.useState)(s),m=(0,c.I)();return(0,n.jsxs)("details",{className:h().root,open:!0,children:[(0,n.jsxs)("summary",{"aria-expanded":u,className:(0,a.A)(h().summary,u&&h().open),onClick:e=>{e.preventDefault(),v(!u)},children:[(0,n.jsx)(l.bBf,{className:h().chevron}),(0,n.jsx)("span",{className:h().label,children:d})]}),(0,n.jsx)(r.N,{initial:!1,children:u&&(0,n.jsx)(o.P.div,{animate:{height:"auto",opacity:1},className:h().content,exit:{height:0,opacity:0},initial:{height:0,opacity:0},transition:{duration:.25*!m,ease:"easeInOut"},children:(0,n.jsx)("div",{className:h().contentInner,children:t})})})]})}},28229:(e,t,s)=>{"use strict";s.d(t,{OA:()=>c,ll:()=>a,xH:()=>l});var n=s(12115);let l={activeHeading:null,currentHeadings:{},setActiveHeading:()=>null,setCurrentHeadings:()=>null},a=(0,n.createContext)(l),c=()=>(0,n.useContext)(a)},37882:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DocsHeader:()=>v});var n=s(95155),l=s(39941),a=s(2821),c=s(15239),r=s(18955),o=s(68680);let i=e=>{let{className:t}=e,s=(0,r.c)("docs._.labels");return(0,n.jsx)(o.N_,{"aria-label":s("kinsta_docs_homepage"),className:(0,a.A)(t),href:"/docs",children:(0,n.jsxs)("svg",{fill:"none",height:"24",width:"129",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M0 21.116h3.267v-5.978H9.09c.726 0 1.089.357 1.089 1.07v4.908h3.267v-4.25c0-1.096-.191-1.96-.572-2.591-.382-.63-.998-1.092-1.852-1.384.781-.366 1.378-.981 1.796-1.851.418-.868.625-1.924.625-3.166v-.357h-3.267v.63c0 1.37-.298 2.386-.898 3.043-.6.657-1.535.988-2.803.988H3.265V5.023H0v16.093ZM17.582 6.448c.6 0 1.089-.183 1.47-.548.382-.366.572-.84.572-1.426 0-.585-.186-1.06-.558-1.426-.372-.365-.866-.548-1.484-.548s-1.09.183-1.47.548c-.382.366-.572.84-.572 1.426s.19 1.06.572 1.426c.38.365.87.548 1.47.548ZM70.139 18.32h-5.171c-.726 0-1.09-.356-1.09-1.069v-5.867c0-.712.364-1.069 1.09-1.069h5.171c.726 0 1.09.357 1.09 1.07v5.866c0 .713-.364 1.07-1.09 1.07Zm-3.294 3.18c.997 0 1.858-.16 2.587-.48.726-.318 1.387-.825 1.987-1.522v1.618h3.076V7.517h-3.076v1.618c-.6-.694-1.261-1.201-1.987-1.523-.726-.32-1.588-.479-2.587-.479-2.052 0-3.648.653-4.79 1.96-1.144 1.308-1.714 3.048-1.714 5.224 0 2.175.572 3.915 1.714 5.223 1.144 1.307 2.74 1.96 4.79 1.96Zm-9.799-.384h2.803v-2.907h-2.94c-.726 0-1.09-.356-1.09-1.069v-6.718h4.028V7.515H55.82V4.581h-2.994v1.781c0 .769-.363 1.153-1.089 1.153h-1.824v2.907h2.64v6.25c0 1.389.395 2.477 1.183 3.264.79.786 1.89 1.177 3.306 1.177m-19.461 0h6.423c3.683 0 5.525-1.325 5.525-3.975 0-1.206-.358-2.125-1.075-2.757-.717-.63-1.9-1.064-3.552-1.303l-2.722-.412c-.781-.127-1.289-.261-1.523-.398-.237-.136-.354-.38-.354-.726v-.248c0-.31.083-.534.246-.671.
1163-.136.443-.206.843-.206h7.24V7.51h-5.988c-1.852 0-3.248.343-4.193 1.028-.944.685-1.415 1.705-1.415 3.057 0 1.171.368 2.067 1.103 2.687.735.622 1.937 1.06 3.607 1.317l2.64.384c.562.074.969.146 1.224.22.253.074.427.173.517.3.09.128.136.31.136.549v.273c0 .31-.088.535-.26.671-.172.137-.448.206-.83.206h-7.592v2.911Zm-15.65 0h3.267V11.38c0-.713.363-1.07 1.089-1.07h4.762c.726 0 1.09.357 1.09 1.07v9.733h3.266v-9.266c0-1.425-.466-2.569-1.401-3.427-.935-.859-2.272-1.29-4.014-1.29-1.052 0-2.01.174-2.872.522-.861.347-1.564.84-2.109 1.48V7.516h-3.076v13.598h-.002Zm-5.987 0h3.267V7.517h-3.267v13.599-.003Z",fill:"#F2E9E3"}),(0,n.jsx)("path",{d:"M124.124 21.276c-1.474 0-2.596-.26-3.366-.782-.757-.535-1.22-1.357-1.389-2.466l2.094-.098c.078.678.332 1.18.763 1.507.43.313 1.057.47 1.879.47.769 0 1.363-.13 1.78-.392.431-.274.646-.652.646-1.135 0-.404-.124-.717-.372-.94-.247-.221-.58-.39-.998-.508a11.939 11.939 0 0 0-1.37-.294 20.072 20.072 0 0 1-1.487-.293 5.716 5.716 0 0 1-1.37-.509 2.88 2.88 0 0 1-.998-.9c-.248-.392-.372-.907-.372-1.546 0-.979.385-1.722 1.155-2.231.77-.522 1.905-.783 3.405-.783.913 0 1.69.117 2.329.352.652.222 1.161.561 1.526 1.018.379.457.62 1.024.725 1.702l-2.114.098c-.052-.587-.281-1.03-.685-1.33-.404-.3-.985-.45-1.742-.45-.769 0-1.37.136-1.8.41-.418.261-.626.646-.626 1.155 0 .405.124.724.371.959.261.222.594.391.999.509.417.117.874.222 1.369.313.496.078.992.176 1.488.293a4.87 4.87 0 0 1 1.35.49c.418.221.75.528.998.92.261.378.392.887.392 1.526 0 .952-.392 1.683-1.175 2.192-.769.496-1.904.743-3.405.743ZM113.208 21.276c-1.044 0-1.95-.182-2.72-.547-.757-.366-1.337-.888-1.742-1.566-.404-.692-.606-1.514-.606-2.466v-1.722c0-.94.202-1.755.606-2.446a4.078 4.078 0 0 1 1.762-1.585c.756-.366 1.656-.549 2.7-.549 1.501 0 2.707.346 3.621 1.038.926.678 1.448 1.611 1.565 2.798l-1.976.157c-.157-.81-.496-1.422-1.018-1.84-.509-.417-1.213-.626-2.114-.626-.952 0-1.709.274-2.27.822-.561.535-.841 1.272-.841 2.211v1.762c0 .939.274 1.683.822 2.23.561.536 1.324.803 2.289.803.888 0 1.592-.209 2.114-.626.522-.43.861-1.044 1.018-1.84l1.976.157c-.117 1.174-.639 2.107-1.565 2.798-.914.692-2.12 1.037-3.621 1.037ZM101.23 21.276c-1.096 0-2.042-.182-2.838-.547-.783-.366-1.39-.888-1.82-1.566-.418-.692-.626-1.514-.626-2.466v-1.722c0-.952.209-1.768.626-2.446.43-.692 1.037-1.22 1.82-1.585.796-.366 1.742-.549 2.838-.549s2.035.183 2.818.549c.796.365 1.402.893 1.82 1.585.43.678.646 1.494.646 2.446v1.722c0 .953-.216 1.774-.646 2.466-.418.678-1.024 1.2-1.82 1.566-.783.365-1.722.547-2.818.547Zm0-1.604c.991 0 1.774-.268 2.348-.803.587-.548.881-1.278.881-2.192v-1.682c0-.927-.294-1.657-.881-2.192-.574-.535-1.357-.803-2.348-.803-.992 0-1.781.274-2.368.822-.587.535-.88 1.26-.88 2.173v1.682c0 .914.293 1.644.88 2.192.587.535 1.376.803 2.368.803ZM83.665 7.42h5.069c1.892 0 3.268.386 4.13 1.156.873.77 1.31 1.983 1.31 3.64v4.11c0 1.656-.437 2.87-1.31 3.64-.875.769-2.252 1.154-4.13 1.154h-5.069V7.42Zm1.605 12.232h3.053c1.37 0 2.348-.254 2.935-.763.587-.509.881-1.357.881-2.544v-4.149c0-1.2-.294-2.048-.88-2.544-.588-.509-1.566-.763-2.936-.763H85.27l.45-1.116v13.014l-.45-1.135Z",fill:"#fff"})]})})};var d=s(2185),h=s.n(d),u=s(55839);let v=e=>{let{children:t}=e,{isOpen:s,setIsOpen:r}=(0,u.useDocsHeaderContext)();return(0,n.jsxs)("header",{className:(0,a.A)(h().root,s&&h().open),"data-theme":"dark",children:[(0,n.jsxs)("div",{className:h().header,children:[(0,n.jsx)(i,{className:h().homeLink}),(0,n.jsx)(l.Button,{onPress:()=>r(!s),variant:"tertiary",children:(0,n.jsx)(c.default,{alt:"burger menu",height:24,priority:!0,src:"/images/docs/menu.svg",width:24})})]}),t]})}},41341:e=>{e.exports={root:"HeadingMap_root__Io5l0",label:"HeadingMap_label__Im1wD",list:"HeadingMap_list__c8oA8",link:"HeadingMap_link__lx44z"}},50189:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DocsHeaderProvider:()=>c});var n=s(95155),l=s(12115),a=s(55839);let c=e=>{let{children:t}=e,[s,c]=(0,l.useState)(null);return(0,n.jsx)(a.DocsHeaderContext.Provider,{value:{isOpen:s,setIsOpen:c},children:t})}},52571:e=>{e.exports={root:"FeedbackForm_root__vHGd9",buttonGroup:"FeedbackForm_buttonGroup__1UKVw",feedbackQuestion:"FeedbackForm_feedbackQuestion__CdNjO",selected:"FeedbackForm_selected__X0Ys_",feedbackForm:"FeedbackForm_feedbackForm__37pib",thanks:"FeedbackForm_thanks__7O9m3"}},55839:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DEFAULT_DOCS_HEADER_CONTEXT_VALUES:()=>l,DocsHeaderContext:()=>a,useDocsHeaderContext:()=>c});var n=s(12115);let l={isOpen:!1,setIsOpen:()=>null},a=(0,n.createContext)(l),c=()=>(0,n.useContext)(a)},60968:(e,t,s)=>{"use strict";s.d(t,{Qs:()=>l});var n=s(20420);let l=async(e,t)=>{try{let s=new URLSearchParams((null==t?void 0:t.params)||{}).toString(),l="".concat(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.Y5;return t===n.Y5?"".concat(n.iz,"/wp-json").concat(e):"".concat(n.iz,"/").concat(t,"/wp-json").concat(e)}(e,null==t?void 0:t.site)).concat(s?"?".concat(s):""),a=await fetch(l,{body:(null==t?void 0:t.body)?JSON.stringify((null==t?void 0:t.body)||{}):void 0,headers:{"Content-Type":"application/json",...null==t?void 0:t.headers},method:(null==t?void 0:t.method)||"GET",next:{tags:null==t?void 0:t.tags}});if(!a.ok)throw Error(a.statusText);if(204===a.status)return null;return await a.json()}catch(e){return null}}},67635:e=>{e.exports={root:"Collapsible_root__lJrqR",summary:"Collapsible_summary__P4k8a",open:"Collapsible_open__9GUeb",chevron:"Collapsible_chevron__CiiTN",content:"Collapsible_content__EzKIj",contentInner:"Collapsible_contentInner__672np"}},71707:(e,t,s)=>{"use strict";s.d(t,{DocsSinglePostProvider:()=>r});var n=s(95155),l=s(97224),a=s(12115),c=s(28229);let r=e=>{let{children:t}=e,[s,r]=(0,l.x)({}),[o,i]=(0,a.useState)(null);return(0,n.jsx)(c.ll.Provider,{value:{...c.xH,activeHeading:o,currentHeadings:s,setActiveHeading:i,setCurrentHeadings:r},children:t})}},96048:(e,t,s)=>{"use strict";s.d(t,{DocsImageLightbox:()=>i});var n=s(95155),l=s(26497),a=s(20240),c=s(12115),r=s(8499),o=s.n(r);let i=e=>{let{children:t}=e,[s,r]=(0,c.useState)(null),[i,d]=(0,c.useState)(""),h=(0,c.useCallback)(e=>{let t=e.target;"IMG"===t.tagName&&(r(t.src),d(t.alt||""))},[]),u=(0,c.useCallback)(()=>{r(null)},[]);return(0,c.useEffect)(()=>
1{if(!s)return;let e=e=>{"Escape"===e.key&&u()};return document.addEventListener("keydown",e),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=""}},[s,u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{onClick:h,children:t}),(0,n.jsx)(l.N,{children:s&&(0,n.jsx)(a.P.div,{animate:{opacity:1},className:o().overlay,exit:{opacity:0},initial:{opacity:0},onClick:u,transition:{duration:.2},children:(0,n.jsx)(a.P.img,{alt:i,animate:{scale:1},className:o().image,exit:{scale:.9},initial:{scale:.9},src:s,transition:{duration:.2}})})})]})}}}]);

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.