1"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}!function(){const e="GET",t="POST";let n=null;function o(t){return n||(n=r(e,`${t}/_hd/csrf`).then(e=>e&&e.token||"").catch(e=>{throw n=null,e}),n)}function r(t,n,o,r){return t===e&&o&&Object.keys(o).length>0&&(-1===n.indexOf("?")&&(n+="?"),n+=Object.keys(o).filter(e=>o[e]&&"undefined"!==o[e]).map(e=>`${e}=${encodeURIComponent(o[e])}`).join("&")),new Promise((a,s)=>{var i=new XMLHttpRequest;if(i.open(t,n,!0),i.onreadystatechange=function(){if(4===this.readyState){if(this.status>=200&&this.status<400){var e;try{e=JSON.parse(this.responseText)}catch(t){e={responseText:this.responseText}}return a(e)}{console.log(this.status,this.responseText);const e=new Error("Something went wrong");return e.status=this.status,s(e)}}},t===e)i.send();else if(r)i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify(o));else{i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");new FormData;i.send(function(e){let t="";const n=e=>encodeURIComponent(e).replace(/%20/g,"+");return Object.keys(e).forEach(o=>{const r=e[o];r&&-1!==["string","number"].indexOf(typeof r)&&"undefined"!==r&&(t+=(t?"&":"")+n(o)+"="+n(r))}),t}(o))}i=null})}var a;a=()=>{const n=e=>{const t=Object.assign({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&"undefined"!==t[e]||delete t[e]}),t},a=(e=>{if(""===e)return{};const t={};for(let n=0;n<e.length;n+=1){const o=e[n].split("=",2);1===o.length?t[o[0]]="":t[o[0]]=decodeURIComponent(o[1].replace(/\+/g," "))}return t})(window.location.search.substr(1).split("&")),s=_objectSpread({homePath:"",seeMoreResultsString:"See more results",thanksString:"Got it!"},n(_objectSpread(_objectSpread({},(document.getElementById("feedback")||{}).dataset),document.body.dataset))),i=_objectSpread({current_page:s.searchTerm||s.originalSearchTerm?"search":s.articleId?"article":s.categoryId?"category":"home",search_container_selector:"#search",search_query_selector:".query",enable_pre_languages:"pre",disable_legacy_search_timers:!1,enable_syntax_highlighting:!0,enable_contact_form:!0,enable_live_chat_integrations:!0,focus_on_query:"auto",enable_resize_videos:!0,enable_linking_headings:!1,enable_zoomable_images:!1,enable_back_to_top_button:!1,enable_popups:!1,enable_lazy_gifs:!1,enable_mobile_nav_toggle:!1,enable_search_shortcut:!1,enable_copy_code_buttons:!1,enable_dark_mode:null},window.hd_util_params||{});i.search_container_selectors=Array.isArray(i.search_container_selector)?i.search_container_selector:[i.search_container_selector],delete i.search_container_selector;const c=1===s.homePath.length?"":s.homePath.replace(/\/l\/\w+/gi,"");delete s.homePath;let l="/search/",d="/quicksearch";s.languageCode&&(l=`/l/${s.languageCode}${l}`,d=`/l/${s.languageCode}${d}`),l=c+l,d=c+d;const u=window.HDAnalytics?.tokens?.()||{user:void 0,session:void 0},m={ready:e=>{"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}},h=e=>[...e].length,y=e=>{const t=document.createElement("div");t.className="thanks",t.setAttribute("role","status"),t.tabIndex=-1;const n=document.createElement("template");
1n.innerHTML='<svg class="fbTick" viewBox="0 0 24 24" width="32" height="32" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M20 6 9 17l-5-5"/></svg>',t.appendChild(n.content.cloneNode(!0));const o=document.createElement("span");o.textContent=s.thanks||s.thanksString,t.appendChild(o),e.innerHTML="",e.appendChild(t),t.focus()},g=(e="positive")=>{window.HDAnalytics.leaveFeedback(e);const t=document.getElementById("feedback");t&&("true"===t.dataset.feedbackEnable&&"function"==typeof m.showEmojiFeedbackForm?m.showEmojiFeedbackForm(e):y(t))},p=(e,t,n)=>{const o="string"==typeof e?document.querySelector(e):e;o&&o.addEventListener(t,n)};m.initArticleFeedbackHandlers=(e="#feedback .feedback-positive",t="#feedback .feedback-neutral",n="#feedback .feedback-negative")=>{p(e,"click",()=>g("positive")),p(t,"click",()=>g("neutral")),p(n,"click",()=>g("negative"))},m.initEmojiFeedbackForm=()=>{const e=document.getElementById("emojiFeedbackForm");if(!e)return;const n=e.querySelector('button[type="submit"]'),a=n?n.innerText:"",i=e.querySelector(".fbCount"),l=e.feedback,d=e=>{i&&(i.innerText=e||"")};p(l,"input",()=>d((()=>{const e=h(l.value.trim());return 0===e?"":e<25?`${e}/25`:e>900?`${e}/1000`:""})())),e.addEventListener("submit",i=>{if(i.preventDefault(),e.dataset.submitted)return;const u=e.dataset.sentiment,m=e.feedback.value.trim(),g=e.name?e.name.value.trim():"",p=e.email?e.email.value.trim():"";if(h(m)<25)return d(s.moreDetail||`${h(m)}/25`),void l.focus();if(e.email&&(p||e.email.required)&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p))return d(s.emailInvalid||"Please enter a valid email address."),void e.email.focus();e.dataset.submitted="true",d(""),n&&(n.disabled=!0,n.setAttribute("aria-busy","true"),s.sending&&(n.innerText=s.sending));const b=t=>{console.error("[HelpDocs] feedback failed to send",t),n&&(n.disabled=!1,n.removeAttribute("aria-busy"),n.innerText=a),t&&429===t.status?d(s.notTakingFeedback||"Thanks. We are not taking written feedback right now, but your rating was counted."):d(s.failed||"That did not send. Try again?"),e.dataset.submitted=""};o(c).catch(()=>"").then(n=>{r(t,`${c}/_hd/feedback`,{article_id:s.articleId,language_code:s.languageCode||s.defaultLanguageCode,sentiment:u,feedback:m,name:g,email:p,CSRFToken:n},!0).then(()=>{const t=document.querySelector("#feedback");t&&y(t),e.style.display="none"}).catch(b)})}),m.showEmojiFeedbackForm=t=>{if(!e)return;e.style.display="block",e.dataset.sentiment=t,document.querySelectorAll(".fbButtons button").forEach(e=>{const n=e.classList.contains(`feedback-${t}`);e.setAttribute("aria-pressed",n?"true":"false"),e.style.opacity=n?"1":"0.4"});const n=document.querySelector(".fbTitle");if(n&&s.tellUsMore&&(n.innerText=s.tellUsMore),l&&document.activeElement!==l){const e=document.activeElement;e&&e.closest&&e.closest(".fbButtons")&&l.focus()}}},m.enableCopyCodeButtons=(e="Copy",t="Copied")=>{const n=document.querySelectorAll("#articleBody pre, .articleHTML pre");Array.prototype.forEach.call(n,n=>{S(n,"hdCopyBound",()=>{const o=document.createElement("button");o.type="button",o.className="hdCopyCode",o.textContent=e,o.addEventListener("click",()=>{const r=n.querySelector("code"),a=r?r.textContent:n.textContent.replace(o.textContent,""),s=()=>{o.textContent=t,o.classList.add("is-copied"),window.setTimeout(()=>{o.textContent=e,o.classList.remove("is-copied")},1600)};navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(a).then(s).catch(()=>b(a,s)):b(a,s)});const r=window.getComputedStyle(n).position;r&&"static"!==r||(n.style.position="relative"),n.appendChild(o)})})};const b=(e,t)=>{const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:absolute;left:-9999px;top:0;",document.body.appendChild(n),n.select();try{document.execCommand("copy")&&t()}catch(e){}document.body.removeChild(n)};m.enableSyntaxHighlighting=()=>{if(!window.hljs)return;const e=document.querySelectorAll("pre");e&&Array.prototype.forEach.call(e,e=>{e.innerHTML=e.innerHTML.replace(/<br\s*\/?>/gi,"\n");const t=e.textContent,n=t.split("\n");if(n.length>1){let o=0;for(let e=0;e<n.length;e++)if(n[e].trim().length>0){const t=n[e].match(/^(\s*)/);o=t?t[1].length:0;break}let r=1/0;for(let e=1;e<n.length;e++)if(n[e].trim().length>0){const t=n[e].match(/^(\s*)/),o=t?t[1].length:0;o<r&&(r=o)}
1const a=r!==1/0?r-o:0;if(a>0){const t=n.map(function(e,t){if(0===t)return e;const n=e.match(/^(\s*)/),o=n?n[1].length:0,r=Math.min(o,a);return e.substring(r)}).join("\n");e.textContent=t}else e.textContent=t}else e.textContent=t;const o=e.getAttribute("class")||"";if(o.includes("hljs")&&!o.includes("language-")){const t=o.match(/hljs\s+([a-z0-9+#-]+)/i);if(t&&t[1]&&"auto"!==t[1]){const n=t[1],r=o.replace(/hljs\s+[a-z0-9+#-]+/i,`hljs language-${n}`);e.setAttribute("class",r),e.setAttribute("data-original-class",o)}}window.hljs.highlightElement(e);const r=e.getAttribute("data-original-class");r&&(e.setAttribute("class",r),e.removeAttribute("data-original-class"))})},m.focusOnQuery=()=>{const e=document.querySelector(i.search_query_selector);e&&e.focus()},m.getSearchTerm=()=>{const[e=""]=i.search_container_selectors.map(e=>{const t=document.querySelector(`${e} input`);return t?t.value:null}).filter(e=>"string"==typeof e&&e.length>0);return e},m.initSearchTimers=()=>{let t,n;i.search_container_selectors.forEach(e=>p(`${e} form`,"submit",e=>{e.preventDefault();const t=e.currentTarget.querySelector("input"),o=t&&t.value||" ";return n?(clearTimeout(n),!!window.HDAnalytics&&window.HDAnalytics.recordSearch(o,()=>(window.location.href=l+encodeURI(o),!0))):(window.location.href=l+encodeURI(o),!0)})),window.addEventListener("pagehide",()=>{if(n){clearTimeout(n),n=void 0;const e=m.getSearchTerm();e&&window.HDAnalytics&&window.HDAnalytics.recordSearchBeacon&&window.HDAnalytics.recordSearchBeacon(e,void 0,e)}}),i.search_container_selectors.forEach(e=>p(e,"blur",e=>setTimeout(()=>{const e=document.querySelectorAll(".search-results");e&&Array.prototype.forEach.call(e,e=>{e.innerHTML="",e.style.display="none"})},250))),i.search_container_selectors.forEach(o=>p(o,"keyup",()=>{t&&clearTimeout(t),n&&clearTimeout(n);const o=m.getSearchTerm();if(o.length<=3){const e=document.querySelectorAll(".search-results");return e&&Array.prototype.forEach.call(e,e=>{e.innerHTML="",e.style.display="none"}),!1}return t=setTimeout(()=>{r(e,d,{query:o}).then(e=>{const t=s.languageCode?`/l/${s.languageCode}`:"",r=`${c}${t}/search/${encodeURI(o)}`,a=[...e.articles.map(({article_id:e,slug:n,relative_url:o,title:r})=>`\n <li>\n <a\n class="search-result-article"\n data-article-id="${e}"\n href="${o||`${c}${t}/article/${e}-${n}`}"\n >\n ${r}\n </a>\n </li>\n `),`\n <li>\n <a href="${r}">\n ${s.seeMoreResultsString}\n </a>\n </li>\n `],i=document.querySelectorAll(".search-results");i&&Array.prototype.forEach.call(i,e=>{e.innerHTML=a.join("\n"),e.style.display="block"}),p(".search-result-article","click",e=>{e.preventDefault();const t=e.currentTarget.dataset.articleId,o=e.currentTarget.getAttribute("href"),r=m.getSearchTerm();return!!window.HDAnalytics&&(n&&(clearTimeout(n),n=void 0),window.HDAnalytics.recordSearchClick(r,t,()=>(setTimeout(()=>window.location.href=o,1),!0)))})}).catch(e=>{const t=document.querySelectorAll(".search-results");t&&Array.prototype.forEach.call(t,e=>{e.innerHTML="<li>Uh oh, something went wrong.</li>",e.style.display="initial"}),console.log(e)})},500),n=setTimeout(()=>window.HDAnalytics?window.HDAnalytics.recordSearch(o,()=>(n=void 0,!0)):(n=void 0,!1),1e4),!0}))},m.initContactModalListener=()=>{p("#contact-form","submit",e=>{let t="";const n=document.querySelector("#contact-form #noop");if(n&&(t=n.value||""),t.length>0){e.preventDefault();const t=document.querySelector("#contact-modal #contact-form-submit");return t&&(t.innerHTML="Loading"),console.log("Something phishy's going on")}}),p("#contact-form-submit","click",e=>{e.preventDefault();const a=document.getElementById("contact-form");if(!a)return;const i=a.querySelector("#name"),l=a.querySelector("#email"),d=a.querySelector("#question"),m=a.querySelector("#noop"),h=document.getElementById("contact-form-submit");
1if(!(i&&l&&d&&m&&h))return;const y=i.value,g=l.value,p=d.value;if((m.value||"").length>0)return h.innerHTML="Loading...",console.log("Something phishy's going on");let b=window.location.hostname.indexOf("helpdocs.io")>-1?"subdomain":"custom_domain";try{document.querySelector('div[data-hd-template="intercom"]')&&(b="intercom")}catch(e){}const f=n({article_id:a.dataset.articleId,category_id:a.dataset.categoryId,search_term:a.dataset.searchTerm,source:"modal",data_source:b,language_code:s.languageCode,page:window.location.href,referrer:document.referrer});if(!g||!p)return console.log("Missing values");if(-1===g.indexOf("@")||-1===g.indexOf(".")||g.lastIndexOf("@")!==g.indexOf("@")||g.lastIndexOf(".")<g.indexOf("@"))return console.log("Email address not valid");const w=h.innerHTML;h.innerHTML="Sending",h.setAttribute("disabled","disabled");const v=e=>{console.log(e),h.innerHTML="Loading...",setTimeout(()=>{h.innerHTML=w,h.removeAttribute("disabled")},2e3)};function _(e){return o(c).catch(()=>"").then(n=>r(t,`${c}/contact`,{from_name:y,from:g,message:p,language_code:s.languageCode,cap_token:e,CSRFToken:n}).then(()=>{const e=[`spam_flags=${window.HDAnalytics&&window.HDAnalytics.spamFlags&&window.HDAnalytics.spamFlags()||0}`];n&&e.unshift(`csrf=${encodeURIComponent(n)}`);const o=`${c}/analytics/contact?${e.join("&")}`;r(t,o,_objectSpread(_objectSpread({},f),{},{user_token:u.user,session_token:u.session})),k&&"function"==typeof k.reset&&k.reset(),h.innerHTML="â Sent",setTimeout(()=>{i.value="",l.value="",d.value="";const e=document.querySelector("#contact-modal .ticket-deflection-results");if(e&&(e.innerHTML=""),h.innerHTML=w,h.removeAttribute("disabled"),"undefined"!=typeof $)try{$("#contact-modal").modal("hide")}catch(e){}else try{document.querySelector("#contact-modal [data-popup-trigger=contact-modal]").click()}catch(e){}},5e3)})).catch(v)}const k=document.getElementById("hd-cap-widget");if(k){const e=k.token;if(e)_(e);else{let e,t=!1;const n=n=>{t||(t=!0,e&&clearTimeout(e),_(n))};k.addEventListener("solve",e=>{n(e&&e.detail&&e.detail.token)},{once:!0}),k.addEventListener("error",()=>n(void 0),{once:!0}),e=setTimeout(()=>n(void 0),15e3);const o=()=>{try{"function"==typeof k.solve&&k.solve()}catch(e){n(void 0)}};window.customElements&&customElements.whenDefined?customElements.whenDefined("cap-widget").then(o,()=>n(void 0)):o()}}else _();return!0})};const f=e=>{const a=document.getElementById("contact-form"),i=a&&a.dataset||{},l=n({article_id:i.articleId,category_id:i.categoryId,search_term:i.searchTerm,source:e,language_code:s.languageCode,page:window.location.href,referrer:document.referrer,user_token:u.user,session_token:u.session});return o(c).catch(()=>"").then(e=>{const n=[`spam_flags=${window.HDAnalytics&&window.HDAnalytics.spamFlags&&window.HDAnalytics.spamFlags()||0}`];e&&n.unshift(`csrf=${encodeURIComponent(e)}`);const o=`${c}/analytics/contact?${n.join("&")}`;return r(t,o,l)})};m.initLiveChatHandlers=()=>setTimeout(()=>{window.Intercom&&window.Intercom("onShow",()=>f("intercom")),window.Smooch&&window.Smooch.on("message:sent",()=>f("smooch")),window.GorgiasChat&&window.GorgiasChat.init().then(e=>{e.on("message:sent",()=>f("gorgias"))}),window.$crisp&&window.$crisp.on("message:sent",()=>f("crisp")),window.Belco&&window.Belco("on","started-conversation",()=>f("belco")),window.drift&&window.drift.on("ready",()=>{window.drift.on("startConversation",()=>f("drift"))}),window.__lc&&(window.LC_API||(window.LC_API={}),window.LC_API.on_chat_started=()=>f("livechat")),window.Kommunicate&&p("mck-msg-new","click",()=>f("kommunicate"))},500),m.initSearchClickHandler=()=>{p("a[data-article-id]","click",e=>{e.preventDefault();const t=e.currentTarget.dataset.articleId,n=e.currentTarget.getAttribute("href");return window.HDAnalytics?window.HDAnalytics.recordSearchClick(void 0,t,e=>(e&&console.log(e),window.location.href=n,!e)):(window.location.href=n,!0)})},m.setForwardUrl=()=>{const e=document.getElementById("forward");e&&a.forward&&(e.value=a.forward)},m.initPasswordResetHandler=()=>{const t=document.querySelector(".reset"),n=document.querySelector(".reset-prompt"),o=document.querySelector("input#email");if(!(t&&n&&o))return;p(o,"keyup",()=>{"1"===t.getAttribute("data-reset-sent")&&(t.removeAttribute("data-reset-sent"),t.textContent="Forgot?",t.style.cursor="pointer",v(t,"reset--done"),v(t,"reset--error"));
1const e=!!(r=t)&&"none"!==r.style.display&&"hidden"!==r.getAttribute("type")&&0!==r.offsetHeight&&0!==r.offsetWidth;var r;const a=o.value,s=a&&a.length&&a.indexOf("@")>-1&&a.lastIndexOf(".")!==a.length-1&&a.indexOf("@")===a.lastIndexOf("@")&&a.lastIndexOf(".")>a.lastIndexOf("@");!e&&s&&(t.style.display="initial",n.style.display="none"),e&&!s&&(t.style.display="none",n.style.display="block")});const a=(e,n)=>{t.textContent=e,t.style.cursor="default",t.style.color="",v(t,"reset--done"),v(t,"reset--error"),w(t,n)};p(t,"click",()=>{"1"!==t.getAttribute("data-reset-sent")&&(t.setAttribute("data-reset-sent","1"),t.style.cursor="progress",r(e,`${c}/reset?email=${encodeURIComponent(o.value)}`).then(()=>{a("Done! If you're a member of this account, you'll receive a password reset email shortly.","reset--done")}).catch((e={})=>{const{message:n="Something went wrong"}=e;console.log(e),a(n,"reset--error"),t.removeAttribute("data-reset-sent"),t.style.cursor="pointer"}))})};const w=(e,t)=>{e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)},v=(e,t)=>
1{e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},_=()=>{let e=document.getElementById("overlay");e&&(e.style.display="none")},k=(e=null,t="#6F6F6F",n=.8,o=3,r="pointer")=>{let a=document.getElementById("overlay");a||(a=document.createElement("div"),a.id="overlay",document.getElementsByTagName("body")[0].appendChild(a)),a.style.cssText=`position: fixed;display: block;width: 100%;background-color: ${t};height: 100%;opacity: ${n};top: 0;left: 0;right: 0;bottom: 0;z-index: ${o};cursor: ${r};`,e?a.addEventListener("click",()=>{e(),_()}):a.addEventListener("click",_)};m.enablePopups=()=>{try{const e=document.querySelectorAll("[data-popup-trigger]"),t=document.querySelectorAll("[data-popup-body]");if(!e||!t)return;Array.prototype.forEach.call(e,e=>{const n=e.dataset.popupTrigger;Array.prototype.forEach.call(t,t=>{const o=t.dataset.popupBody;n===o&&e.addEventListener("click",()=>{"none"===t.style.display||""===t.style.display?(t.style.display="block",t.classList.add("is-open"),k(()=>{t.style.display="none",t.classList.remove("is-open")})):"block"===t.style.display&&(t.classList.remove("is-open"),t.style.display="none",_())})})})}catch(e){console.error(e)}},m.enablePreLanguages=(e="pre")=>{const t=["hljs","auto","nohighlight","plaintext","no-highlight"],n=document.querySelectorAll(e);Array.prototype.forEach.call(n,e=>{const n=e.querySelector("code"),o=((e.getAttribute("class")||"")+" "+(n&&n.getAttribute("class")||"")).split(/\s+/).filter(Boolean).map(e=>e.replace(/^(language|lang)-/,"")).filter(e=>-1===t.indexOf(e))[0];o?e.setAttribute("data-content",o):e.removeAttribute("data-content")})},m.enableZoomableImages=(e="#articleBody img",t="1.75",n="9",o="0 4px 14px 0 rgba(0,0,0,0.1)",r="zoom-in",a="4px",s="0.25")=>{const i=document.querySelectorAll(e);i&&i.length>0&&Array.prototype.forEach.call(i,e=>{if(e.closest("a"))return void(e.style.cursor="pointer");var i;(i=e)&&i.setAttribute("data-hd-initial-style",i.getAttribute("style"));const c=()=>{(e=>{e&&e.setAttribute("style","")})(e),(e=>{e&&(e.setAttribute("style",e.getAttribute("data-hd-initial-style")),e.removeAttribute("data-hd-is-zoomed"))})(e),_()};e.addEventListener("click",()=>{if(e.getAttribute("data-hd-is-zoomed"))return c();(e=>{e&&(e.setAttribute("data-hd-initial-style",e.getAttribute("style")),e.setAttribute("style",`\n display: inline-block;\n max-width: 100%;\n height: auto;\n border-radius: ${a};\n cursor: ${r};\n `))})(e),(e=>{e&&(e.setAttribute("style",`\n -webkit-box-shadow: ${o};\n box-shadow: ${o};\n -webkit-transform: scale(${t});\n -ms-transform: scale(${t});\n transform: scale(${t});\n -webkit-transition: -webkit-transform ${s}s ease-in-out;\n transition: -webkit-transform ${s}s ease-in-out;\n -o-transition: transform ${s} ease-in-out;\n transition: transform ${s} ease-in-out;\n transition: transform ${s} ease-in-out, -webkit-transform ${s} ease-in-out;\n z-index: ${n};\n border-radius: ${a};\n position: relative;\n `),e.setAttribute("data-hd-is-zoomed",!0))})(e),k(c)})})},m.enableLinkingHeadings=(e="#articleBody h3, #articleBody h4, #articleBody h5")=>{const t=document.querySelectorAll(e);!t||t.length<1||Array.prototype.forEach.call(t,function(e){e.addEventListener("click",function(){event.preventDefault();const t=e.getAttribute("id");e.style.cursor="pointer",t&&(window.location.hash=t)})})},m.enableBackToTopButton=(e="backToTop",t="80px",n="100px",o="Go back to top of document",r="#fff",a='<svg class="backToTopIcon" height="10" viewBox="0 0 23 13" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m0 0 10 10.215-10 9.785" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" transform="matrix(0 -1 1 0 1.5 11.5)"></path></svg>',s="z-index: 100;padding: 10px;border-radius: 50%;height: 50px;width: 50px;background-color: #fff;border: 1px solid #e6e6e6;box-shadow: 0 4px 14px 0 rgba(0,0,0,0.1);cursor: pointer;transition: opacity .25s ease-in,bottom .25s ease;")=>{let i=document.getElementById(e);i||(i=document.createElement("button"),document.getElementsByTagName("body")[0].appendChild(i)),i.id=e,i.setAttribute("style",s),i.setAttribute("aria-label",o),i.style.position="fixed",i.style.opacity=0,i.style.bottom=t,i.style.right=n,i.style.backgroundColor=r,i.innerHTML=a,window.onscroll=e=>{i&&i.style&&(document.body.scrollTop>20||document.documentElement.scrollTop>40?(i.style.opacity=1,setTimeout(()=>{i.style.display=null},200)):(i.style.opacity=0,setTimeout(()=>{i.style.display="none"},200)))},i.addEventListener("click",()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0})};const A=["#article .card-block","#articleBody","#article #body"];m.enableResizeVideos=(e='iframe[src*="//www.youtube.com"]:not(.noresize), iframe[src*="//player.vimeo.com"]:not(.noresize), .hd--embed iframe:not(.noresize), .hd--embed span[id^="vidyard_span_"]:not(.noresize)',t=A)=>{const n=document.querySelectorAll(e);if(n.length<1)return;const o=Array.isArray(t)?t:[t];let r=null,a=!1;for(let e=0;e<o.length;e++)if(r=document.querySelector(o[e]),r){a="#article #body"===o[e];break}r&&(Array.prototype.forEach.call(n,e=>{window.addEventListener("resize",()=>{e.setAttribute("aspectratio",e.height/e.width||.5625),e.getAttribute("aspectratio")&&(e.removeAttribute("width"),e.removeAttribute("height"));const t=r.offsetWidth-(a?200:0);t&&Array.prototype.forEach.call(n,e=>{const n=e.getAttribute("aspectratio");e.setAttribute("width",t),e.setAttribute("height",t*n)})})}),window.dispatchEvent(new Event("resize")))},m.enableLazyGifs=(e='img[src$=".gif"]')=>{Array.prototype.forEach.call(document.querySelectorAll(e),e=>{e.setAttribute("loading","lazy")})};const S=(e,t,n)=>!(!e||e.dataset[t]||(e.dataset[t]="1",n(),0));m.enableMobileNavToggle=(e=".hnMobileNavButton",t="active")=>{const n=document.querySelector(e);n&&S(n,"hdNavToggleBound",()=>{n.addEventListener("click",()=>{n.classList.toggle(t)})})},m.enableSearchShortcut=(e=".scShortcutMeta, .siShortcutMeta",t=".scShortcut, .siShortcut",n="hd-query")=>{const o=-1!==navigator.userAgent.indexOf("Mac OS X");Array.prototype.forEach.call(document.querySelectorAll(e),e=>{e.textContent=o?"â":"Ctrl"}),S(document.documentElement,"hdSearchShortcutBound",()=>{document.addEventListener("keydown",e=>{if("k"!==e.key||!e.metaKey&&!e.ctrlKey)return;const t=document.getElementById(n);t&&(e.preventDefault(),t.focus())})}),Array.prototype.forEach.call(document.querySelectorAll(t),e=>{e.style.visibility="visible"})};const T="dark-mode",E="dark-mode-loaded",x="io.helpdocs.darkmode",L="dark",C="light",q=[C,L];switch(m.enableDarkMode=(e=".dmLinkhnLink",t="gist-css")=>{const n=document.documentElement,o=e=>{e===L?n.classList.add(T):n.classList.remove(T);const o=document.getElementById(t),r=((e,t)=>{const n=e&&e.getAttribute("href")||"";if(!n)return"";const o=n.replace("highlightjs-github-gist-dark.min.css","highlightjs-github-gist.min.css");return t!==L?o:o.replace("highlightjs-github-gist.min.css","highlightjs-github-gist-dark.min.css")})(o,e);r&&(o.href=r)};o((()=>{let e;try{e=sessionStorage.getItem(x)}catch(e){}return e&&-1!==q.indexOf(e)?e:window.matchMedia("(prefers-color-scheme: dark)").matches?L:C})()),n.classList.add(E),Array.prototype.forEach.call(document.querySelectorAll(e),e=>{S(e,"hdDarkModeBound",()=>{e.addEventListener("click",()=>{const e=n.classList.contains(T)?C:L;(e=>
1{try{sessionStorage.setItem(x,e)}catch(e){}})(e),o(e)})})})},m.disableDarkMode=()=>{document.documentElement.classList.add(E)},m.formatRelativeDates=e=>{if(!e)return;let t=function(e,t){const n=document.querySelector(e);if(n&&n.dataset)return n.dataset[t]}("body","languageCode");t&&(t=t.slice(0,2),"en"!==t&&Array.prototype.forEach.call(document.querySelectorAll(e),e=>{try{const n=e.textContent.trim().match(/(\d{1,2}\/\d{1,2}\/\d{4})/g)[0];let o=e.getAttribute("datetime");o||(o=n.split("/").reverse().join("-"));const r=new Date(o);if(isNaN(r))return;e.textContent=e.textContent.replace(n,((e,t)=>{const n=new Intl.RelativeTimeFormat(t,{numeric:"auto"}),o=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}];return function(e){let t=(e-new Date)/1e3;for(let e=0;e<o.length;e++){const r=o[e];if(Math.abs(t)<r.amount)return n.format(Math.round(t),r.name);t/=r.amount}}(e)})(r,t))}catch(e){}}))},m.getHyperpingStatus=(t,n=".hnStatus",o=".hnStatus")=>{t&&r(e,`https://api.hyperping.io/v1/${t}/status.json`).then(e=>{if(!(Object.keys(e).length<1)){var t=document.querySelector(`${n} .color-dot`),r=document.querySelector(`${n} .color-description`),a=document.querySelector(`${o}`);t&&(t.classList?t.classList.add(e.indicator):t.className+=" "+e.indicator,r.innerHTML=r?e.status:"Status",a&&(a.href=e.url,a.setAttribute("target","_blank")))}}).catch((e={})=>{console.log(e)})},m.initDecisionTree=e=>{if(!e||"1"===e.getAttribute("data-hd-dtree-ready"))return;const t=e.querySelector(".hd-dtree__stage");if(!t)return;const n=t.querySelectorAll(":scope > .hd-dtree__node");if(!n||0===n.length)return;const o={};Array.prototype.forEach.call(n,e=>{const t=e.getAttribute("data-dtree-node");t&&(o[t]=e)});const r=e.getAttribute("data-dtree-start"),a=r&&o[r]?r:n[0].getAttribute("data-dtree-node");if(!a||!o[a])return;e.setAttribute("data-hd-dtree-ready","1");const s=e.querySelector("[data-dtree-back]"),i=e.querySelector("[data-dtree-restart]"),c=e.querySelector("[data-dtree-progress]"),l=e.getAttribute("data-dtree-progress-label")||"Question",d=e.querySelector(".hd-dtree__chrome"),u=[];let m=null;const h=e=>{if(Array.prototype.forEach.call(n,e=>{e.getAttribute("data-dtree-node")===m?e.classList.add("is-active"):e.classList.remove("is-active")}),s&&(s.hidden=0===u.length),i&&(i.hidden=0===u.length),c&&(c.textContent=l+" "+(u.length+1)),e&&o[m])try{o[m].setAttribute("tabindex","-1"),o[m].focus({preventScroll:!0})}catch(e){}};e.addEventListener("click",t=>{const n=t.target.closest?t.target.closest(".hd-dtree__opt"):null;if(n&&e.contains(n)){const e=n.getAttribute("data-dtree-target");return void(e&&o[e]&&(t.preventDefault(),c=!0,o[r=e]&&(c&&m&&u.push(m),m=r,h(!0))))}var r,c;return s&&(t.target===s||t.target.closest&&t.target.closest("[data-dtree-back]"))?(t.preventDefault(),void(0!==u.length&&(m=u.pop(),h(!0)))):i&&(t.target===i||t.target.closest&&t.target.closest("[data-dtree-restart]"))?(t.preventDefault(),u.length=0,m=a,void h(!0)):void 0}),d&&d.removeAttribute("aria-hidden"),e.classList.add("is-interactive"),m=a,h(!1)},m.enableDecisionTrees=(e="#articleBody [data-hd-dtree]")=>{const t=document.querySelectorAll(e);t&&0!==t.length&&Array.prototype.forEach.call(t,e=>m.initDecisionTree(e))},i.current_page){case"article":m.initArticleFeedbackHandlers(),m.initEmojiFeedbackForm(),i.enable_syntax_highlighting&&m.enableSyntaxHighlighting(),i.enable_pre_languages&&m.enablePreLanguages(),i.enable_copy_code_buttons&&m.enableCopyCodeButtons(),i.enable_resize_videos&&m.enableResizeVideos(),i.enable_linking_headings&&m.enableLinkingHeadings(),i.enable_zoomable_images&&m.enableZoomableImages(),m.enableDecisionTrees();break;case"search":m.initSearchClickHandler(),window.HDAnalytics&&HDAnalytics.recordSearchWithHits();break;case"login":m.initPasswordResetHandler(),m.setForwardUrl();break;case"teamlogin":m.setForwardUrl()}switch(i.focus_on_query){case"always":m.focusOnQuery();break;case"auto":0===window.scrollY&&m.focusOnQuery()}!0===i.enable_dark_mode?m.enableDarkMode():!1===i.enable_dark_mode&&m.disableDarkMode(),i.enable_lazy_gifs&&m.enableLazyGifs(),i.enable_mobile_nav_toggle&&m.enableMobileNavToggle(),i.enable_search_shortcut&&m.enableSearchShortcut(),i.disable_legacy_search_timers||m.initSearchTimers(),i.enable_contact_form&&m.initContactModalListener(),i.enable_live_chat_integrations&&m.initLiveChatHandlers(),i.enable_back_to_top_button&&m.enableBackToTopButton(),i.enable_popups&&m.enablePopups(),i.relative_dates_selector&&m.formatRelativeDates(i.relative_dates_selector),window.HDUtils=m},"loading"!=document.readyState?a():document.addEventListener?document.addEventListener("DOMContentLoaded",a):document.attachEvent("onreadystatechange",function(){"loading"!=document.readyState&&a()})}();
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.