PageSourceSearch

https://shelfy.so/_next/static/chunks/64287-ec665c5688214039.js

js shelfy.so collected 2026-10-09 22:42:48 UTC 3,772 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64287],{64287:(e,t,r)=>{r.d(t,{f:()=>m});var n=r(95502);let i=function(e,t,r){let i=(0,n.C)(r);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]},o=function(e){if(null==e)return u;if("string"==typeof e){var t;return t=e,a(function(e){return e.tagName===t})}if("object"==typeof e){var r=e;let t=[],n=-1;for(;++n<r.length;)t[n]=o(r[n]);return a(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}if("function"==typeof e)return a(e);throw Error("Expected function, string, or array as `test`")};function a(e){return function(t,r,n){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function u(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let l=/\n/g,p=/[\t ]+/g,h=o("br"),c=o(function(e){return"td"===e.tagName||"th"===e.tagName}),f=o("p"),s=o("tr"),d=o(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),g=o(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function m(e,t){let r,n="children"in e?e.children:[],o=g(e),a=y(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),u=[];("text"===e.type||"comment"===e.type)&&u.push(...b(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<n.length;)u.push(...function e(t,r,n){return"element"===t.type?function(t,r,n){let o,a,u=y(t,n),l=t.children||[],p=-1,m=[];if(d(t))return m;for(h(t)||s(t)&&i(r,t,s)?a="\n":f(t)?(o=2,a=2):g(t)&&(o=1,a=1);++p<l.length;)m=m.concat(e(l[p],t,{whitespace:u,breakBefore:p?void 0:o,breakAfter:p<l.length-1?h(l[p+1]):a}));return c(t)&&i(r,t,c)&&m.push("	"),o&&m.unshift(o),a&&m.push(a),m}(t,r,n):"text"===t.type?"normal"===n.whitespace?b(t,n):[String(t.value)]:[]}(n[l],e,{whitespace:a,breakBefore:l?void 0:o,breakAfter:l<n.length-1?h(n[l+1]):o}));let p=[];for(l=-1;++l<u.length;){let e=u[l];"number"==typeof e?void 0!==r&&e>r&&(r=e):e&&(void 0!==r&&r>-1&&p.push("\n".repeat(r)||" "),r=-1,p.push(e))}return p.join("")}function b(e,t){let r,n=String(e.value),i=[],o=[],a=0;for(;a<=n.length;){l.lastIndex=a;let e=l.exec(n),r=e&&"index"in e?e.index:n.length;i.push(function(e,t,r){let n,i=[],o=0;for(;o<e.length;){p.lastIndex=o;let r=p.exec(e);n=r?r.index:e.length,o||n||!r||t||i.push(""),o!==n&&i.push(e.slice(o,n)),o=r?n+r[0].length:n}return o===n||r||i.push(""),i.join(" ")}(n.slice(a,r).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==a||t.breakBefore,r!==n.length||t.breakAfter)),a=r+1}let u=-1;for(;++u<i.length;)8203===i[u].charCodeAt(i[u].length-1)||u<i.length-1&&8203===i[u+1].charCodeAt(0)?(o.push(i[u]),r=void 0):i[u]?("number"==typeof r&&o.push(r),o.push(i[u]),r=0):(0===u||u===i.length-1)&&o.push(0);return o}function y(e,t){if("element"===e.type){let r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}}}]);

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.