PageSourceSearch

https://www.lw.com/assets/scripts/7460.bundle.js?6ca635

js lw.com collected 2026-09-24 08:29:37 UTC 4,058 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7460],{87460:(t,e,o)=>{o.r(e),o.d(e,{default:()=>r});o(39393),o(96083),o(72254);function n(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const r=class{constructor(t){n(this,"buildEndnote",((t,e)=>{let o=document.createElement("li");o.innerHTML='<sup><a class="endnotesups" id="fn'.concat(e+1,'" href="#r').concat(e+1,'">').concat(e+1,"</a></sup> ").concat(t.innerHTML),this.notes.appendChild(o)})),n(this,"replaceCite",((t,e)=>{let o=document.createElement("sup"),n=document.createElement("a"),r=document.createTextNode("".concat(e+1));n.href="#fn".concat(e+1),n.id="r".concat(e+1),n.appendChild(r),o.appendChild(n),t.innerHTML="",t.appendChild(o),n.addEventListener("click",(t=>{t.preventDefault(),"false"===this.el.getAttribute("aria-expanded")&&this.showNotes();let e=document.querySelector(t.target.hash);e.scrollIntoView({behavior:this.noMotion?"auto":"smooth",block:"start"}),setTimeout((()=>{window.scrollBy({behavior:"smooth",top:-Math.floor(window.innerHeight/3)})}),1200),this.highlightEl(e.closest("li"))})),t.classList.add("endnote")})),n(this,"buildCollapser",(()=>{this.el.setAttribute("aria-expanded","false"),this.button=this.el.querySelector(".endnotes--showall"),this.button.addEventListener("click",(()=>{"false"===this.el.getAttribute("aria-expanded")?this.showNotes():this.hideNotes()}))})),n(this,"showNotes",(()=>{this.el.setAttribute("aria-expanded","true")})),n(this,"hideNotes",(()=>{this.el.setAttribute("aria-expanded","false")})),n(this,"highlightEl",(t=>{t.classList.add("highlight"),t.style.animationDuration="".concat(15e3,"ms"),setTimeout((()=>{t.classList.remove("highlight"),t.style=null}),15e3)})),this.el=t,this.content=this.el.parentElement,this.notes=this.el.querySelector("ol"),this.cites=this.content.querySelectorAll("cite:not(blockquote cite)"),this.endnotes=document.getElementById("endnotes"),this.noMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.cites.length?(this.cites.length>5&&this.buildCollapser(),this.cites.forEach(((t,e)=>{this.buildEndnote(t,e),this.replaceCite(t,e)}))):this.el.style.display="none",document.querySelectorAll(".endnotesups").forEach((t=>{t.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault();let e=document.querySelector(t.target.hash);e&&e.scrollIntoView({behavior:this.noMotion?"auto":"smooth",block:"center"})}))}))}}},87739:(t,e,o)=>{var n=o(22086),r=o(59413),i=o(45089),s=o(56112),a=o(10563),c=o(2964),l=n.TypeError,h=function(t){var e=0==t,o=1==t,n=2==t,h=3==t;return function(t,u,d){s(t);var f=a("Promise"),p=i(t.next),m=0,b=void 0!==u;return!b&&e||i(u),new f((function(i,a){var v=function(e,o){try{var n=c(t,"return");if(n)return f.resolve(r(n,t)).then((function(){e(o)}),(function(t){a(t)}))}catch(t){return a(t)}e(o)},g=function(t){v(a,t)},y=function(){try{if(e&&m>9007199254740991&&b)throw l("The allowed number of iterations has been exceeded");f.resolve(s(r(p,t))).then((function(t){try{if(s(t).done)e?(d.length=m,i(d)):i(!h&&(n||void 0));else{var r=t.value;b?f.resolve(e?u(r,m):u(r)).then((function(t){o?y():n?t?y():v(i,!1):e?(d[m++]=t,y()):t?v(i,h||r):y()}),g):(d[m++]=r,y())}}catch(t){g(t)}}),g)}catch(t){g(t)}};y()}))}};t.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},39393:(t,e,o)=>{var n=o(51695),r=o(87739).forEach;n({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{forEach:function(t){return r(this,t)}})},96083:(t,e,o)=>{var n=o(51695),r=o(22086),i=o(51855),s=o(90930),a=o(72585),c=o(63677),l=o(49606),h=o(50211),u=o(13083).IteratorPrototype,d=o(43296),f=h("toStringTag"),p=r.Iterator,m=d||!s(p)||p.prototype!==u||!c((function(){p({})})),b=function(){i(this,u)};l(u,f)||a(u,f,"Iterator"),!m&&l(u,"constructor")&&u.constructor!==Object||a(u,"constructor",b),b.prototype=u,n({global:!0,forced:m},{Iterator:b})},72254:(t,e,o)=>{var n=o(51695),r=o(94722),i=o(56112);n({target:"Iterator",proto:!0,real:!0,forced:!0},{forEach:function(t){r(i(this),t,{IS_ITERATOR:!0})}})}}]);

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.