1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55716,t=>{"use strict";let e="America/New_York",r=["January","February","March","April","May","June","July","August","September","October","November","December"],n=/^\d{4}-\d{2}-\d{2}$/;function i(t){return"string"==typeof t&&n.test(t)}let o=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hour12:!1}),l={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6};function a(t){if("string"==typeof t&&i(t)){let[e,r,n]=t.split("-").map(Number),i=new Date(Date.UTC(e,r-1,n)).getUTCDay();return{year:e,month:r-1,day:n,weekday:i,hour:0,minute:0}}let e="string"==typeof t?new Date(t):t,r=o.formatToParts(e),n=t=>r.find(e=>e.type===t)?.value??"";return{year:Number(n("year")),month:Number(n("month"))-1,day:Number(n("day")),weekday:l[n("weekday")]??0,hour:Number(n("hour"))%24,minute:Number(n("minute"))}}function s(){return a(new Date)}function u(t){if("string"==typeof t&&i(t))return t;let{year:e,month:r,day:n}=a(t);return`${e}-${String(r+1).padStart(2,"0")}-${String(n).padStart(2,"0")}`}function h(t){return`${t.date??""}T${t.startTime??"00:00"}`}function c(t){if(!t||"string"!=typeof t)return null;let e=t.match(/^([01]\d|2[0-3]):([0-5]\d)$/);return e?{hour:Number(e[1]),minute:Number(e[2])}:null}function f({hour:t,minute:e}){let r=t%12==0?12:t%12;return{time:0===e?`${r}`:`${r}:${String(e).padStart(2,"0")}`,meridiem:t>=12?"pm":"am"}}function m(t,e){let r=c(t);if(!r)return"";let n=f(r),i=c(e);if(!i)return`${n.time}${n.meridiem} ET`;let o=f(i);return n.meridiem===o.meridiem?`${n.time}â${o.time}${o.meridiem} ET`:`${n.time}${n.meridiem}â${o.time}${o.meridiem} ET`}function p(t,e){return new Date(t,e+1,0).getDate()}function d(t,e){return new Date(t,e,1).getDay()}let y=new Intl.DateTimeFormat("en-US",{weekday:"short",month:"short",day:"numeric",timeZone:e});function g(t){if(i(t)){let[e,r,n]=t.split("-").map(Number);return new Date(e,r-1,n).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})}return y.format(new Date(t))}function w(t,e,r,n){return t.filter(t=>{if(!t.date)return!1;let i=a(t.date);return i.year===e&&i.month===r&&i.day===n})}function v(t){let e=new Map;for(let r of t){if(!r.date)continue;let{year:t,month:n}=a(r.date),i=`${t}-${String(n).padStart(2,"0")}`;e.has(i)||e.set(i,[]),e.get(i).push(r)}let n=s(),i=`${n.year}-${String(n.month).padStart(2,"0")}`,o=Array.from(e.entries()).map(([t,e])=>{let[n,i]=t.split("-").map(Number);return{key:t,year:n,month:i,label:`${r[i]} ${n}`,events:e.sort((t,e)=>h(t).localeCompare(h(e)))}});return[...o.filter(t=>t.key===i),...o.filter(t=>t.key>i).sort((t,e)=>t.key<e.key?-1:1),...o.filter(t=>t.key<i).sort((t,e)=>t.key<e.key?1:-1)]}t.s(["DAYS_OF_WEEK",0,["S","M","T","W","T","F","S"],"ET_TIME_ZONE",0,e,"EVENT_TYPE_CONFIG",0,{oralArgument:{label:"Oral Argument",color:"var(--color-airforce-500)",tagColor:"airforce"},conference:{label:"Conference",color:"var(--color-verdant-base)",tagColor:"verdant"},opinion:{label:"Opinion",color:"var(--color-ember-base)",tagColor:"ember"},orders:{label:"Orders",color:"var(--color-mustard-base)",tagColor:"mustard"},scotusblog:{label:"SCOTUSblog",color:"var(--color-navy-500)",tagColor:"navy"},holiday:{label:"Holiday",color:"var(--color-neutral-500)",tagColor:"neutral"}},"MONTH_NAMES",0,r,"eventSortKey",()=>h,"formatEventDate",()=>g,"formatEventTime",()=>m,"getDaysInMonth",()=>p,"getETDateKey",()=>u,"getETParts",()=>a,"getEventsForDay",()=>w,"getFirstDayOfMonth",()=>d,"groupEventsByMonth",()=>v,"isDateOnly",()=>i,"nowETParts",()=>s])},605540,t=>{"use strict";var e=t.i(55716);let r=/^(\d{4})-(\d{2})-(\d{2})$/;function n(t){let e=t.match(r);if(e)return Date.UTC(Number(e[1]),Number(e[2])-1,Number(e[3]),12);let n=Date.parse(t);return Number.isNaN(n)?null:n}function i(t){return new Intl.DateTimeFormat("en-US",{timeZone:e.ET_TIME_ZONE,...t})}i({month:"short",day:"numeric",hour:"numeric",minute:"2-digit"});let o=i({hour:"numeric",minute:"2-digit"}),l=i({year:"numeric",month:"2-digit"}),a=i({year:"numeric"}),s=i({month:"short",day:"numeric"}),u=i({month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),h=i({weekday:"long",month:"long",day:"numeric",year:"numeric"});function c(t){let e=i(t);return t=>{if(!t)return null;let r=n(t);if(null===r)return t;try{return e.format(r)}catch{return t}}}let f=c({month:"long",day:"numeric",year:"numeric"}),m=c({month:"short",day:"numeric",year:"numeric"});c({month:"short",year:"numeric"});let p=c({month:"short"}),d=c({day:"numeric"});function y(t){let e={};for(let r of t)e[r.type]=r.value;return e}function g(t){if(!t)return null;let e=n(t);if(null===e)return t;try{let t=y(o.formatToParts(e)),r=t.hour??"",n=t.minute??"",i=t.dayPeriod??"";return`${r}:${n}${i} ET`}catch{return t}}function w(t){if(!t)return null;let e=n(t);if(null===e)return null;try{let t=y(l.formatToParts(e));if(!t.year||!t.month)return null;return{year:t.year,month:t.month}}catch{return null}}function v(t,e){if(!t)return null;let r=n(t);if(null===r)return t;try{if("yyyy"===e)return a.format(r);if("MMM d"===e)return s.format(r);if("h:mm a"===e){let t=y(o.formatToParts(r));return`${t.hour}:${t.minute} ${t.dayPeriod}`}if("MMM. d, yyyy, h:mm a"===e){let t=y(u.formatToParts(r));return`${t.month}. ${t.day}, ${t.year}, ${t.hour}:${t.minute} ${t.dayPeriod}`}if("EEEE, MMMM d, yyyy"===e)return h.format(r);return t}catch{return t}}t.s(["formatDate",0,f,"formatDayOfMonth",0,d,"formatET",()=>v,"formatMonthAbbr",0,p,"formatShortDate",0,m,"formatTime",()=>g,"formatYearMonth",()=>w])},164099,t=>{"use strict";var e=t.i(605540);function r(t,r){if(!r)return`/${t}/`;let n=(0,e.formatYearMonth)(r);return n?`/${n.year}/${n.month}/${t}/`:`/${t}/`}function n(t){return null==t?"/cases/interim-docket/":`/cases/interim-docket/${t}/`}function i(t){return`/interim-docket-blog/#${t}`}function o(){return"/summit/"}function l(t){return`/cases/${t}/`}function a(t,e){return`/podcasts/${t}/${e}/`}t.s(["caseUrl",()=>l,"interimBlogPostAnchor",()=>i,"interimDocketUrl",()=>n,"podcastEpisodeUrl",()=>a,"postUrl",()=>r,"summitUrl",()=>o])},975284,t=>{"use strict";function e(t){return 0===t.length?"":1===t.length?t[0]:2===t.length?`${t[0]} & ${t[1]}`:`${t.slice(0,-1).join(", ")}, & ${t[t.length-1]}`}t.s(["formatByline",()=>e])},794909,(t,e,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return h},getImageProps:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=t.r(555682),l=t.r(908927),a=t.r(605500),s=o._(t.r(1948));function u(t){let{props:e}=(0,l.getImgProps)(t,{defaultLoader:s.default,imgConf:{deviceSizes:[640,828,1200,1920],imageSizes:[96,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,r]of Object.entries(e))void 0===r&&delete e[t];return{props:e}}let h=a.Image},657688,(t,e,r)=>{e.exports=t.r(794909)},439884,(t,e,r)=>{t.e,e.exports=function(){function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function e(){return(e=Object.assign.bind()).apply(null,arguments)}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(t){return("image-"+t.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var i=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],o=["clip","crop","fill","fillmax","max","scale","min"],l=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"],s=function(){function s(t,r){this.options=void 0,this.options=t?e({},t.options||{},r||{}):e({},r||{})}var u=s.prototype;return u.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,o={baseUrl:n};for(var l in r)r.hasOwnProperty(l)&&(o[function(e){for(var r,n=function(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,void 0):void 0}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(r=n()).done;){var o=r.value,l=o[0],a=o[1];if(e===l||e===a)return l}return e}(l)]=r[l]);return new s(this,e({baseUrl:n},o))},u.image=function(t){return this.withOptions({source:t})},u.dataset=function(t){return this.withOptions({dataset:t})},u.projectId=function(t){return this.withOptions({projectId:t})},u.bg=function(t){return this.withOptions({bg:t})},u.dpr=function(t){return this.withOptions(t&&1!==t?{dpr:t}:{})},u.width=function(t){return this.withOptions({width:t})},u.height=function(t){return this.withOptions({height:t})},u.focalPoint=function(t,e){return this.withOptions({focalPoint:{x:t,y:e}})},u.maxWidth=function(t){return this.withOptions({maxWidth:t})},u.minWidth=function(t){return this.withOptions({minWidth:t})},u.maxHeight=function(t){return this.withOptions({maxHeight:t})},u.minHeight=function(t){return this.withOptions({minHeight:t})},u.size=function(t,e){return this.withOptions({width:t,height:e})},u.blur=function(t){return this.withOptions({blur:t})},u.sharpen=function(t){return this.withOptions({sharpen:t})},u.rect=function(t,e,r,n){return this.withOptions({rect:{left:t,top:e,width:r,height:n}})},u.format=function(t){return this.withOptions({format:t})},u.invert=function(t){return this.withOptions({invert:t})},u.orientation=function(t){return this.withOptions({orientation:t})},u.quality=function(t){return this.withOptions({quality:t})},u.forceDownload=function(t){return this.withOptions({download:t})},u.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},u.flipVertical=function(){return this.withOptions({flipVertical:!0})},u.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},u.fit=function(t){if(-1===o.indexOf(t))throw Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},u.crop=function(t){if(-1===l.indexOf(t))throw Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},u.saturation=function(t){return this.withOptions({saturation:t})},u.auto=function(t){if(-1===a.indexOf(t))throw Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},u.pad=function(t){return this.withOptions({pad:t})},u.vanityName=function(t){return this.withOptions({vanityName:t})},u.frame=function(t){if(1!==t)throw Error('Invalid frame value "'+t+'"');return this.withOptions({frame:t})},u.url=function(){return function(t){var o=e({},t||{}),l=o.source;delete o.source;var a=function(t){var r,i;if(!t)return null;if("string"==typeof t&&(i=t,/^https?:\/\//.test(""+i)))r={asset:{_ref:n(t)}};else if("string"==typeof t)r={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)r={asset:t};else if(t&&"string"==typeof t._id)r={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)r={asset:{_ref:n(t.asset.url)}};else{if("object"!=typeof t.asset)return null;r=e({},t)}return t.crop&&(r.crop=t.crop),t.hotspot&&(r.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;var r=e({},t);
1return r.crop||(r.crop={left:0,top:0,bottom:0,right:0}),r.hotspot||(r.hotspot={x:.5,y:.5,height:1,width:1}),r}(r)}(l);if(!a){if(l&&"object"==typeof l&&null!==l&&l._upload&&(!l.asset||!l.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error("Unable to resolve image URL from source ("+JSON.stringify(l)+")")}var s=function(t){var e=t.split("-"),n=e[1],i=e[2],o=e[3];if(!n||!i||!o)throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');var l=i.split("x"),a=l[0],s=l[1],u=+a,h=+s;if(!(isFinite(u)&&isFinite(h)))throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');return{id:n,width:u,height:h,format:o}}(a.asset._ref||a.asset._id||""),u=Math.round(a.crop.left*s.width),h=Math.round(a.crop.top*s.height),c={left:u,top:h,width:Math.round(s.width-a.crop.right*s.width-u),height:Math.round(s.height-a.crop.bottom*s.height-h)},f=a.hotspot.height*s.height/2,m=a.hotspot.width*s.width/2,p=a.hotspot.x*s.width,d=a.hotspot.y*s.height;return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=e({},o,function(t,e){var r,n=e.width,i=e.height;if(!(n&&i))return{width:n,height:i,rect:t.crop};var o=t.crop,l=t.hotspot,a=n/i;if(o.width/o.height>a){var s=Math.round(o.height),u=Math.round(s*a),h=Math.max(0,Math.round(o.top)),c=Math.max(0,Math.round(Math.round((l.right-l.left)/2+l.left)-u/2));c<o.left?c=o.left:c+u>o.left+o.width&&(c=o.left+o.width-u),r={left:c,top:h,width:u,height:s}}else{var f=o.width,m=Math.round(f/a),p=Math.max(0,Math.round(o.left)),d=Math.max(0,Math.round(Math.round((l.bottom-l.top)/2+l.top)-m/2));d<o.top?d=o.top:d+m>o.top+o.height&&(d=o.top+o.height-m),r={left:p,top:d,width:f,height:m}}
1return{width:n,height:i,rect:r}}({crop:c,hotspot:{left:p-m,top:d-f,right:p+m,bottom:d+f}},o))),function(t){var e=(t.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=t.vanityName?"/"+t.vanityName:"",n=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format+r,o=e+"/images/"+t.projectId+"/"+t.dataset+"/"+n,l=[];if(t.rect){var a=t.rect,s=a.left,u=a.top,h=a.width,c=a.height;(0!==s||0!==u||c!==t.asset.height||h!==t.asset.width)&&l.push("rect="+s+","+u+","+h+","+c)}t.bg&&l.push("bg="+t.bg),t.focalPoint&&(l.push("fp-x="+t.focalPoint.x),l.push("fp-y="+t.focalPoint.y));var f=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return(f&&l.push("flip="+f),i.forEach(function(e){var r=e[0],n=e[1];void 0!==t[r]?l.push(n+"="+encodeURIComponent(t[r])):void 0!==t[n]&&l.push(n+"="+encodeURIComponent(t[n]))}),0===l.length)?o:o+"?"+l.join("&")}(e({},o,{asset:s}))}(this.options)},u.toString=function(){return this.url()},s}();return function(t){if(t&&"config"in t&&"function"==typeof t.config){var e=t.config(),r=e.apiHost,n=e.projectId,i=e.dataset;return new s(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:i})}if(t&&"clientConfig"in t&&"object"==typeof t.clientConfig){var o=t.clientConfig,l=o.apiHost,a=o.projectId,u=o.dataset;return new s(null,{baseUrl:(l||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:a,dataset:u})}return new s(null,t||{})}}()},969401,t=>{"use strict";var e=t.i(247167);function r(t,e){if(void 0===t)throw Error(e);return t}let n=r("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),i=r("pito4za5","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");e.default.env.NEXT_PUBLIC_SANITY_API_VERSION,t.s(["dataset",0,n,"projectId",0,i,"studioUrl",0,"https://scotusblog.sanity.studio"])},988845,t=>{"use strict";var e=t.i(843476),r=t.i(657688),n=t.i(439884),i=t.i(969401);let o=(0,n.default)({projectId:i.projectId,dataset:i.dataset});function l(t){let e=t.match(/-(\d+)x(\d+)-/);return e?{width:Number(e[1]),height:Number(e[2])}:null}function a(t,e,r){let n=o.image({_type:"image",asset:{_ref:t,_type:"reference"},...r?{crop:{_type:"sanity.imageCrop",...r}}:{}});return e&&(n=n.focalPoint(e.x,e.y)),n}function s(t){let n,{id:i,alt:s,hotspot:u,crop:h,mode:c,className:f,priority:m,sizes:p,style:d,lqip:y}=t,g=y?{placeholder:"blur",blurDataURL:y}:void 0;if(/-gif$/i.test(i)){let r=o.image({_type:"image",asset:{_ref:i,_type:"reference"}}).url(),n=l(i);if("fill"in t&&t.fill){let t=u?`${Math.round(100*u.x)}% ${Math.round(100*u.y)}%`:void 0,n={position:"absolute",inset:0,width:"100%",height:"100%",...c?{objectFit:c}:null,...t?{objectPosition:t}:null,...d};return(0,e.jsx)("img",{src:r,alt:s,className:f,style:n})}let{width:a,height:h}=t,m=h??(n?Math.round(a*n.height/n.width):a);return(0,e.jsx)("img",{src:r,alt:s,width:a,height:m,className:f,style:d})}if("fill"in t&&t.fill){let t=a(i,u,h).width(2e3).url(),n=u?`${Math.round(100*u.x)}% ${Math.round(100*u.y)}%`:void 0,o=c||n?{...c?{objectFit:c}:null,...n?{objectPosition:n}:null,...d}:d;return(0,e.jsx)(r.default,{src:t,alt:s,fill:!0,priority:m,sizes:p??"100vw",className:f,style:o,...g})}let{width:w,height:v}=t,b=v??((n=l(i))?Math.round(w*n.height/n.width):w),k=w/b,x=a(i,u,h).width(2e3),I=("cover"===c?x.height(Math.round(2e3/k)).fit("crop").crop("focalpoint"):x).url();return(0,e.jsx)(r.default,{src:I,alt:s,width:w,height:b,priority:m,sizes:p,className:f,style:d,...g})}t.s(["default",()=>s])},236726,908035,t=>{"use strict";var e=t.i(843476);function r(t){return"span"===t._type&&"text"in t&&"string"==typeof t.text&&(void 0===t.marks||Array.isArray(t.marks)&&t.marks.every(t=>"string"==typeof t))}function n(t){return"string"==typeof t._type&&"@"!==t._type[0]&&(!("markDefs"in t)||!t.markDefs||Array.isArray(t.markDefs)&&t.markDefs.every(t=>"string"==typeof t._key))&&"children"in t&&Array.isArray(t.children)&&t.children.every(t=>"object"==typeof t&&"_type"in t)}function i(t){return n(t)&&"listItem"in t&&"string"==typeof t.listItem&&(void 0===t.level||"number"==typeof t.level)}function o(t){return"@list"===t._type}function l(t){return"@span"===t._type}function a(t){return"@text"===t._type}let s=["strong","em","code","underline","strike-through"];function u(t,e,n){if(!r(t)||!t.marks||!t.marks.length)return[];let i=t.marks.slice(),o={};
1return i.forEach(t=>{o[t]=1;for(let i=e+1;i<n.length;i++){let e=n[i];if(e&&r(e)&&Array.isArray(e.marks)&&-1!==e.marks.indexOf(t))o[t]++;else break}}),i.sort((t,e)=>(function(t,e,r){let n=t[e],i=t[r];if(n!==i)return i-n;let o=s.indexOf(e),l=s.indexOf(r);return o===l?e.localeCompare(r):o-l})(o,t,e))}function h(t){let{children:e}=t,n=t.markDefs??[];if(!e||!e.length)return[];let i=e.map(u),o={_type:"@span",children:[],markType:"<unknown>"},l=[o];for(let t=0;t<e.length;t++){let o=e[t];if(!o)continue;let a=i[t]||[],s=1;if(l.length>1)for(;s<l.length;s++){let t=l[s]?.markKey||"",e=a.indexOf(t);if(-1===e)break;a.splice(e,1)}let u=(l=l.slice(0,s))[l.length-1];if(u){for(let t of a){let e=n?.find(e=>e._key===t),r={_type:"@span",_key:o._key,children:[],markDef:e,markType:e?e._type:t,markKey:t};u.children.push(r),l.push(r),u=r}if(r(o)){let t=o.text.split("\n");for(let e=t.length;e-- >1;)t.splice(e,0,"\n");u.children=u.children.concat(t.map(t=>({_type:"@text",text:t})))}else u.children=u.children.concat(o)}}return o.children}function c(t,e){let r=[],n;for(let a=0;a<t.length;a++){let s=t[a];if(s){var o,l;if(!i(s)){r.push(s),n=void 0;continue}if(!n){n=f(s,a,e),r.push(n);continue}if(o=s,l=n,(o.level||1)===l.level&&o.listItem===l.listItem){n.children.push(s);continue}if((s.level||1)>n.level){let t=f(s,a,e);if("html"===e){let e=n.children[n.children.length-1],r={...e,children:[...e.children,t]};n.children[n.children.length-1]=r}else n.children.push(t);n=t;continue}if((s.level||1)<n.level){let t=r[r.length-1],i=t&&m(t,s);if(i){(n=i).children.push(s);continue}n=f(s,a,e),r.push(n);continue}if(s.listItem!==n.listItem){let t=r[r.length-1],i=t&&m(t,{level:s.level||1});if(i&&i.listItem===s.listItem){(n=i).children.push(s);continue}n=f(s,a,e),r.push(n);continue}console.warn("Unknown state encountered for block",s),r.push(s)}}return r}function f(t,e,r){return{_type:"@list",_key:`${t._key||`${e}`}-parent`,mode:r,level:t.level||1,listItem:t.listItem,children:[t]}}function m(t,e){let n=e.level||1,i=e.listItem||"normal",l="string"==typeof e.listItem;if(o(t)&&(t.level||1)===n&&l&&(t.listItem||"normal")===i)return t;if(!("children"in t))return;let a=t.children[t.children.length-1];return a&&!r(a)?m(a,e):void 0}function p(t){let e="";return t.children.forEach(t=>{a(t)?e+=t.text:l(t)&&(e+=p(t))}),e}let d=/^\s/,y=/\s$/;function g(t){let e=Array.isArray(t)?t:[t],i="";return e.forEach((t,o)=>{if(!n(t))return;let l=!1;t.children.forEach(t=>{r(t)?(i+=l&&i&&!y.test(i)&&!d.test(t.text)?" ":"",i+=t.text,l=!1):l=!0}),o!==e.length-1&&(i+="\n\n")}),i}let w="html";t.s(["LIST_NEST_MODE_HTML",()=>w,"buildMarksTree",()=>h,"isPortableTextBlock",()=>n,"isPortableTextListItemBlock",()=>i,"isPortableTextToolkitList",()=>o,"isPortableTextToolkitSpan",()=>l,"isPortableTextToolkitTextNode",()=>a,"nestLists",()=>c,"spanToPlainText",()=>p,"toPlainText",()=>g],908035);var v=t.i(271645);let b={textDecoration:"underline"},k=(t,e)=>`[@portabletext/react] Unknown ${t}, specify a component for it in the \`components.${e}\` prop`,x=t=>k(`block type "${t}"`,"types");function I(t){console.warn(t)}let _={display:"none"},T={types:{},block:{normal:({children:t})=>(0,e.jsx)("p",{children:t}),blockquote:({children:t})=>(0,e.jsx)("blockquote",{children:t}),h1:({children:t})=>(0,e.jsx)("h1",{children:t}),h2:({children:t})=>(0,e.jsx)("h2",{children:t}),h3:({children:t})=>(0,e.jsx)("h3",{children:t}),h4:({children:t})=>(0,e.jsx)("h4",{children:t}),h5:({children:t})=>(0,e.jsx)("h5",{children:t}),h6:({children:t})=>(0,e.jsx)("h6",{children:t})},marks:{em:({children:t})=>(0,e.jsx)("em",{children:t}),strong:({children:t})=>(0,e.jsx)("strong",{children:t}),code:({children:t})=>(0,e.jsx)("code",{children:t}),underline:({children:t})=>(0,e.jsx)("span",{style:b,children:t}),"strike-through":({children:t})=>(0,e.jsx)("del",{children:t}),link:({children:t,value:r})=>(0,e.jsx)("a",{href:r?.href,children:t})},list:{number:({children:t})=>(0,e.jsx)("ol",{children:t}),bullet:({children:t})=>(0,e.jsx)("ul",{children:t})},listItem:({children:t})=>(0,e.jsx)("li",{children:t}),hardBreak:()=>(0,e.jsx)("br",{}),unknownType:({value:t,isInline:r})=>{let n=x(t._type);return(0,e.jsx)(r?"span":"div",{style:_,children:n})},unknownMark:({markType:t,children:r})=>(0,e.jsx)("span",{className:`unknown__pt__mark__${t}`,children:r}),unknownList:({children:t})=>(0,e.jsx)("ul",{children:t}),unknownListItem:({children:t})=>(0,e.jsx)("li",{children:t}),unknownBlockStyle:({children:t})=>(0,e.jsx)("p",{children:t})};function $(t,e,r){let n=e[r],i=t[r];return"function"==typeof n||n&&"function"==typeof i?n:n?{...i,...n}:i}function M({value:t,components:r,listNestingMode:n,onMissingComponent:i=I}){let o=i||j,l=c(Array.isArray(t)?t:null==t?[]:[t],n||w),a=(0,v.useMemo)(()=>r?function(t,e){let{block:r,list:n,listItem:i,marks:o,types:l,...a}=e;return{...t,block:$(t,e,"block"),list:$(t,e,"list"),listItem:$(t,e,"listItem"),marks:$(t,e,"marks"),types:$(t,e,"types"),...a}}(T,r):T,[r]),s=(0,v.useMemo)(()=>O(a,o),[a,o]);return(0,e.jsx)(e.Fragment,{children:l.map((t,e)=>s({node:t,index:e,isInline:!1,renderNode:s}))})}let O=(t,r)=>function s(u){var h,c,f,m,d,y,g,w;let v,b,{node:I,index:_,isInline:T}=u,$=I._key||`node-${_}`;return o(I)?function(n,i,o){let l=n.children.map((t,e)=>s({node:t._key?t:{...t,_key:`li-${i}-${e}`},index:e,isInline:!1,renderNode:s})),a=t.list,u=("function"==typeof a?a:a[n.listItem])||t.unknownList;if(u===t.unknownList){let t=n.listItem||"bullet";r(k(`list style "${t}"`,"list"),{nodeType:"listStyle",type:t})}return(0,e.jsx)(u,{value:n,index:i,isInline:!1,renderNode:s,children:l},o)}(I,_,$):i(I)?function(n,i,o){let l=A({node:n,index:i,isInline:!1,renderNode:s}),a=t.listItem,u=("function"==typeof a?a:a[n.listItem])||t.unknownListItem;if(u===t.unknownListItem){let t=n.listItem||"bullet";r(k(`list item style "${t}"`,"listItem"),{type:t,nodeType:"listItemStyle"})}let h=l.children;if(n.style&&"normal"!==n.style){let{listItem:t,...e}=n;h=s({node:e,index:i,isInline:!1,renderNode:s})}return(0,e.jsx)(u,{value:n,index:i,isInline:!1,renderNode:s,children:h},o)}(I,_,$):l(I)?function(n,i,o){let{markDef:l,markType:a,markKey:u}=n,h=t.marks[a]||t.unknownMark,c=n.children.map((t,e)=>s({node:t,index:e,isInline:!0,renderNode:s}));return h===t.unknownMark&&r(k(`mark type "${a}"`,"marks"),{nodeType:"mark",type:a}),(0,e.jsx)(h,{text:p(n),value:l,markType:a,markKey:u,renderNode:s,children:c},o)}(I,0,$):I._type in t.types?(h=I,c=_,f=$,m=T,(v=t.types[h._type])?(0,e.jsx)(v,{value:h,isInline:m,index:c,renderNode:s},f):null):n(I)?function(n,i,o,l){let{_key:a,...u}=A({node:n,index:i,isInline:l,renderNode:s}),h=u.node.style||"normal",c=("function"==typeof t.block?t.block:t.block[h])||t.unknownBlockStyle;return c===t.unknownBlockStyle&&r(k(`block style "${h}"`,"block"),{nodeType:"blockStyle",type:h}),(0,e.jsx)(c,{...u,value:u.node,renderNode:s},o)}(I,_,$,T):a(I)?function(r,n){if("\n"===r.text){let r=t.hardBreak;return r?(0,e.jsx)(r,{},n):"\n"}return r.text}(I,$):(d=I,y=_,g=$,w=T,r(x(d._type),{nodeType:"block",type:d._type}),b=t.unknownType,(0,e.jsx)(b,{value:d,isInline:w,index:y,renderNode:s},g))};function A(t){let{node:e,index:r,isInline:n,renderNode:i}=t,o=h(e).map((t,e)=>i({node:t,isInline:!0,index:e,renderNode:i}));return{_key:e._key||`block-${r}`,children:o,index:r,isInline:n,node:e}}function j(){}t.s(["PortableText",()=>M],236726)}]);
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.