PageSourceSearch

https://hardtoread.us/_next/static/chunks/544-2e8c0c7c6087571c.js

js hardtoread.us collected 2026-10-08 09:38:41 UTC 8,578 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[544],{4184:function(t,e){var n;/*!
2	Copyright (c) 2018 Jed Watson.
3	Licensed under the MIT License (MIT), see
4	http://jedwatson.github.io/classnames
5*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&t.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&t.push(l)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0!==(n=(function(){return o}).apply(e,[]))&&(t.exports=n)}()},6543:function(t,e,n){"use strict";n.d(e,{z:function(){return a}});var r=n(7294);let o=({color:t="currentColor",direction:e="left",distance:n="md",duration:o=.4,easing:i="cubic-bezier(0, 0, 0, 1)",hideOutline:a=!0,label:l,lines:s=3,onToggle:c,render:u,rounded:d=!1,size:p=32,toggle:h,toggled:g})=>{let[f,m]=(0,r.useState)(!1),y=Math.max(12,Math.min(48,p)),x=y/12,v=Math.round(x),b=y/(s*(("lg"===n?.25:"sm"===n?.75:.5)+(3===s?1:1.25))),$=Math.round(b),j=parseFloat((y/(3===s?"lg"===n?4.0425:"sm"===n?5.1625:4.6325:"lg"===n?6.7875:"sm"===n?8.4875:7.6675)-(x-v+(b-$))/(3===s?1:2)/(4/3)).toFixed(2)),w=Math.max(0,o),k={cursor:"pointer",height:"48px",position:"relative",transition:`${w}s ${i}`,userSelect:"none",width:"48px"},O={background:t,height:`${v}px`,left:`${Math.round((48-y)/2)}px`,position:"absolute"};a&&(k.outline="none"),d&&(O.borderRadius="9em");let S=h||m,E=void 0!==g?g:f,C=()=>{S(!E),"function"==typeof c&&c(!E)};return u({barHeight:v,barStyles:O,burgerStyles:k,easing:i,handler:C,isLeft:"left"===e,isToggled:E,label:l,margin:$,move:j,time:w,topOffset:Math.round((48-(v*s+$*(s-1)))/2),width:y})};function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}let a=t=>r.createElement(o,i({},t,{lines:2,render:t=>r.createElement("div",{className:"hamburger-react","aria-label":t.label,"aria-expanded":t.isToggled,onClick:t.handler,onKeyUp:e=>"Enter"===e.key&&t.handler(),role:"button",style:t.burgerStyles,tabIndex:0},r.createElement("div",{style:{transition:`${t.time/2}s ${t.easing} ${t.isToggled?"0s":`${t.time/2}s`}`,transform:`${t.isToggled?`translateY(${t.barHeight/2+t.margin/2}px)`:"none"}`}},r.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset}px`,transition:`${t.time/2}s ${t.easing} ${t.isToggled?`${t.time/2}s`:"0s"}`,transform:`${t.isToggled?"rotate(45deg)":"none"}`}})),r.createElement("div",{style:{transition:`${t.time/2}s ${t.easing} ${t.isToggled?"0s":`${t.time/2}s`}`,transform:`${t.isToggled?`translateY(-${t.barHeight/2+t.margin/2}px)`:"none"}`}},r.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+t.barHeight+t.margin}px`,transition:`${t.time/2}s ${t.easing} ${t.isToggled?`${t.time/2}s`:"0s"}`,transform:`${t.isToggled?"rotate(-45deg)":"none"}`}})))}))},8881:function(t,e,n){"use strict";n.d(e,{Z:function(){return j}});var r=n(5893),o=n(7297);n(7294);var i=n(4279),a=n(6998),l=n.n(a),s=n(3191),c=n(4372),u=n(1664),d=n.n(u),p=n(2382),h=n(7655),g=n(2553),f=n(6851),m=n(7531);function y(){let t=(0,o.Z)(["\n    margin: 0 auto;\n    font-size: lg;\n    line-height: 1.33;\n    position: relative;\n\n    h1,\n    h2,\n    h3,\n    h4,\n    h5,\n    h6 {\n      line-height: 1.1;\n    }\n\n    p {\n      margin: 4 0;\n      &:first-child {\n        margin-top: 0;\n      }\n      &:last-child {\n        margin-bottom: 0;\n      }\n    }\n\n    ul {\n      margin: 2 6;\n      list-style-type: '- ';\n      list-style-position: outside;\n    }\n    blockquote {\n      margin: 4 6;\n      background-color: ",";\n      padding: 6;\n      font-style: italic;\n      border-left: 4px solid\n        ",";\n    }\n\n    strong {\n      color: ",";\n    }\n\n    a {\n      border-bottom: 2px;\n      border-style: solid;\n      border-color: ",";\n    }\n\n    img,\n    iframe {\n      margin: 6 0;\n      max-width: 100%;\n    }\n  "]);return y=function(){return t},t}function x(){let t=(0,o.Z)(["\n  ","\n"]);return x=function(){return t},t}
5let v=c.ZPm.div(x(),t=>{let{theme:e,program:n}=t;return(0,c.ivY)(y(),"hardtoread"==n?e.colors.primary10:e.colors.secondary10,"hardtoread"==n?e.colors.primary:e.colors.secondary,"hardtoread"==n?e.colors.primary:e.colors.secondary,"hardtoread"==n?e.colors.primary:e.colors.secondary)});function b(t){let{content:e,program:n}=t,{addModals:o,isMobile:a}=(0,h.dd)(),u=(0,f.s3)(!1);return(0,r.jsx)(v,{program:n,children:(0,r.jsx)(i.YI,{value:e,components:{types:{image:t=>{let{value:e}=t,{related:o,caption:i,alt:a}=e;return(0,r.jsxs)(v,{program:n,children:[(0,r.jsx)(m.Z,{image:e.asset,caption:i,alt:a}),i&&(0,r.jsx)(c.x.figcaption,{position:"absolute",color:"white",px:2,py:3,w:"100%",bottom:0,fontSize:12,children:i})]})},youtube:t=>{let{value:e}=t,{url:n,time:o,key:i}=e,a=l()(n);if(a)return(0,r.jsx)(s.Z,{videoId:a,opts:{playerVars:{start:o||0}}},i)}},marks:{internalLink:t=>{let{value:e,children:n}=t,{slug:i={},type:l}=e,s=async t=>{console.log("VALUE on CLICK",t);let e=await u.fetch('*[_id == "'.concat(t.reference._ref,'"][0]{\n              ').concat(p.Cr,"\n            }\n            "));o([(0,g.Ow)(e)])},h="book"==l&&(null==i?void 0:i.current)?"/books/".concat(i.current):"bookCollection"==l&&(null==i?void 0:i.current)?"/collections/".concat(i.current):"event"==l&&(null==i?void 0:i.current)?"/events/".concat(i.current):"partner"==l&&(null==i?void 0:i.current)?"/partners/".concat(i.current):"person"==l&&(null==i?void 0:i.current)?"/people/".concat(i.current):"place"==l&&(null==i?void 0:i.current)?"/places/".concat(i.current):"post"==l&&(null==i?void 0:i.current)?"/blog/".concat(i.current):"theme"==l&&(null==i?void 0:i.current)?"/themes/".concat(i.current):l;return!0==a?(0,r.jsx)(d(),{href:h,legacyBehavior:!0,children:(0,r.jsx)(c.x.a,{display:"inline-block",children:n})}):(0,r.jsx)(c.x.a,{onClick:()=>s(e),onMouseDown:t=>t.stopPropagation(),children:n})},link:t=>{let{value:e,children:n}=t,o=(e.href||"").startsWith("http")?"_blank":void 0;return(0,r.jsx)(c.x.a,{href:e.href,target:o,children:n})}}}})})}function $(t){let{title:e,date:n,program:o}=t,i=new Date(n).toLocaleDateString();return(0,r.jsxs)(c.x.header,{pb:4,children:[(0,r.jsx)(c.x.h1,{mb:1,fontSize:"4xl",children:e}),(0,r.jsx)(c.x.p,{color:"hardtoread"==o?"primary":"secondary",fontSize:"lg",children:i})]})}function j(t){let{post:e}=t;return(0,r.jsxs)(c.x.article,{maxW:800,my:4,children:[(0,r.jsx)($,{title:e.title,date:e.publishedAt||e._createdAt,program:e.post_program}),(0,r.jsx)(b,{content:e.body,program:e.post_program}),(0,r.jsx)(d(),{href:"/blog/"+e.slug,legacyBehavior:!0,children:(0,r.jsx)(c.x.a,{textDecoration:"underline",display:"inline-block",my:4,color:"pillowtalk"==e.post_program?"secondary":"primary",fontSize:12,children:"(permalink)"})})]})}},8357:function(t,e,n){"use strict";n.d(e,{w_:function(){return s}});var r=n(7294),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)0>e.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function s(t){return function(e){return r.createElement(c,a({attr:a({},t.attr)},e),function t(e){return e&&e.map(function(e,n){return r.createElement(e.tag,a({key:n},e.attr),t(e.child))})}(t.child))}}function c(t){var e=function(e){var n,o=t.attr,i=t.size,s=t.title,c=l(t,["attr","size","title"]),u=i||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,c,{className:n,style:a(a({color:t.color||e.color},e.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&r.createElement("title",null,s),t.children)};return void 0!==i?r.createElement(i.Consumer,null,function(t){return e(t)}):e(o)}}}]);

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.