1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7200],{37288:function(t,e,n){"use strict";function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const o=t.length-1;return t.slice(0,o).reduce(((t,e,r)=>t+e+n[r]),"")+t[o]}n.d(e,{Z:function(){return r}})},8146:function(t){var e,n,r=Function.prototype,o=Object.prototype,c=r.toString,u=o.hasOwnProperty,i=c.call(Object),a=o.toString,s=(e=Object.getPrototypeOf,n=Object,function(t){return e(n(t))});t.exports=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=a.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}(t))return!1;var e=s(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==i}},7297:function(t,e,n){"use strict";function r(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}n.d(e,{Z:function(){return r}})},71599:function(t,e,n){"use strict";n.d(e,{e:function(){return _}});var r=n(53584),o=n(8146),c="Invariant failed";const u={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162};function i(t,e,n="auto"){return!0===n||"auto"===n&&(function(t){return Boolean(Date.parse(t))}(t)||function(t){try{new URL(t)}catch{return!1}return!0}(t))?t:`${t}${function(t){const e=JSON.stringify(t);return Array.from(e).map((t=>{const n=t.charCodeAt(0);if(n>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${t} (${n})`);return Array.from(n.toString(16).padStart(2,"0")).map((t=>String.fromCodePoint(u[t]))).join("")})).join("")}(e)}`}Object.fromEntries(Object.entries(u).map((t=>t.reverse())));const a=`${Object.values(u).map((t=>`\\u{${t.toString(16)}}`)).join("")}`;new RegExp(`(?:[${a}]{2})+`,"gu");var s=n(34155);const l={"\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","'":"\\'","\\":"\\\\"},p={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t","\\'":"'","\\\\":"\\"};function f(t){const e=[],n=/\['(.*?)'\]|\[(\d+)\]/g;let r;for(;null!==(r=n.exec(t));)if(void 0===r[1])void 0===r[2]||e.push(parseInt(r[2],10));else{const t=r[1].replace(/\\(\\|f|n|r|t|')/g,(t=>p[t]));e.push(t)}return e}function d(t){const e=t.replace(/\/$/,"");return(t,n)=>"".concat(e,"/intent/edit/id=").concat(t._id,";path=").concat(function(t){const e=Array.isArray(t)?t:f(t);return encodeURIComponent(e.map(((t,e)=>"number"===typeof t?"[".concat(t,"]"):e>0?".".concat(t):t)).join(""))}(n))}function g(t){return"object"===typeof t&&null!==t}function h(t){return null!==t&&Array.isArray(t)}function y(t,e){return b(t.result,((n,r)=>{if("string"!==typeof n)return n;const o=function(t,e,n){const r=function(t){return"$".concat(t.map((t=>{if("string"===typeof t){const e=t.replace(/[\f\n\r\t'\\]/g,(t=>l[t]));return"['".concat(e,"']")}return"[".concat(t,"]")})).join(""))}(t);if(!e.mappings)return void(null==n||n.error("Missing resultSourceMap.mappings",{resultSourceMap:e}));if(void 0!==e.mappings[r])return[e.mappings[r],r,""];const o=Object.entries(e.mappings).filter((t=>{let[e]=t;return r.startsWith(e)})).sort(((t,e)=>{let[n]=t,[r]=e;return r.length-n.length}));if(0==o.length)return;const[c,u]=o[0],i=r.substring(c.length);return[u,c,i]}(r,t.resultSourceMap);if(!o)return n;const[c,,u]=o;if("value"!==c.type)return n;if("documentValue"!==c.source.type)return n;const i=t.resultSourceMap.documents[c.source.document],a=t.resultSourceMap.paths[c.source.path];return e(n,i,a+u)}))}function b(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return h(t)?t.map(((t,r)=>b(t,e,n.concat(r)))):g(t)?Object.fromEntries(Object.entries(t).map((t=>{let[r,o]=t;return[r,b(o,e,n.concat(r))]}))):e(t,n)}const m=t=>{let{path:e}=t;const n=e.at(-1);return("slug"!==e.at(-2)||"current"!==n)&&(("string"!==typeof n||!n.startsWith("_"))&&(("number"!==typeof n||"marks"!==e.at(-2)||"number"!==typeof e.at(-3)||"children"!==e.at(-4)||"number"!==typeof e.at(-5))&&(("href"!==n||"number"!==typeof e.at(-2)||"markDefs"!==e.at(-3)||"number"!==typeof e.at(-4))&&("string"!==typeof n||"number"!==typeof e.at(-2)||"style"!==n&&"listItem"!==n))))};function v(t,e,n){const r=d(t),o={encoded:[],skipped:[]},c=(t,c,u)=>!1===("function"===typeof e?e({path:u,filterDefault:m}):m({path:u,filterDefault:m}))?(n&&o.skipped.push({path:S(u),value:"".concat(t.slice(0,20)).concat(t.length>20?"...":""),length:t.length}),t):(n&&o.encoded.push({path:S(u),value:"".concat(t.slice(0,20)).concat(t.length>20?"...":""),length:t.length}),i(t,{origin:"sanity.io",href:r(c,u)},"auto"));return{report:o,transcode:c,walk:t=>(o.encoded.length=0,o.skipped.length=0,function(t,e){if(!t.resultSourceMap)throw new TypeError("Missing resultSourceMap");return t.result=y(t,e),t}(t,((t,e,n)=>c(t,e,f(n)))))}}function S(t){return t.map(((t,e)=>"number"===typeof t?"[".concat(t,"]"):e>0?".".concat(t):t)).join("")}function w(t){let{studioUrl:e,encodeSourceMapAtPath:n,logger:u}=t;!function(t,e){if(!t)throw new Error(c)}(e);const i=r.Lx.clone();function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return e({maxRedirects:0,...t})}return i.use(function(t){let{studioUrl:e,encodeSourceMapAtPath:n,logger:r}=t;const c=v(e,n,r);return{onResponse:t=>{if(!function(t){return"object"===typeof t&&null!==t}(t))return t;if(Array.isArray(t.body)||"string"===typeof t.body||o(t.body)){if
1(!function(t){return"object"===typeof t&&null!==t&&"resultSourceMap"in t}(t.body))return r&&(null==r||r.error("[@sanity/preview-kit]: Missing Content Source Map from response body",t.body)),t;const e=c.walk(t.body);if(r){const t=c.report.skipped.length,e=c.report.encoded.length;if((t||e)&&(null==r||r.groupCollapsed("[@sanity/preview-kit]: Stega encoding source map into result"),null==r||r.log("[@sanity/preview-kit]: Paths encoded: ".concat(c.report.encoded.length,", skipped: ").concat(c.report.skipped.length))),c.report.encoded.length>0&&(null==r||r.log("[@sanity/preview-kit]: Table of encoded paths"),null==r||r.table(c.report.encoded)),c.report.skipped.length>0){const t=new Set;for(const{path:e}of c.report.skipped)t.add(e.replace(/\[\d+\]/g,"[]"));null==r||r.log("[@sanity/preview-kit]: List of skipped paths",[...t.values()])}(t||e)&&(null==r||r.groupEnd())}return{...t,body:e}}return t}}}({studioUrl:e,encodeSourceMapAtPath:n,logger:u})),a.defaultRequester=i,a}const j=t=>{const{encodeSourceMap:e=k(),studioUrl:n=E(),logger:o}=t;let c=!0===e;"auto"===e&&(c=function(){try{return"preview"===(void 0).VERCEL_ENV}catch{}try{return"preview"===s.env.VERCEL_ENV}catch{}return!1}());try{if(c&&!1!==t.resultSourceMap){null==o||o.debug("[@sanity/preview-kit]: Creating source map enabled client");const e=w({...t,studioUrl:n});return new r.aN(e,{...t,resultSourceMap:!0})}}catch(u){console.error("[@sanity/preview-kit]: Error creating client",u,"falling back to non-embedded sourcemap mode")}return(0,r.eI)(t)};function k(){try{return"true"===(void 0).SANITY_SOURCE_MAP||"auto"}catch{}try{return"true"===s.env.SANITY_SOURCE_MAP||"auto"}catch{}return"auto"}function E(){try{return(void 0).SANITY_STUDIO_URL}catch{}try{return s.env.SANITY_STUDIO_URL}catch{}}var O=n(34155);function _(t){let{studioUrl:e=O.env.NEXT_PUBLIC_SANITY_STUDIO_URL,encodeSourceMap:n=!!e&&"auto"}=t;return"auto"===n&&"preview"===O.env.NEXT_PUBLIC_VERCEL_ENV&&(n=!0),j({...t,studioUrl:e,encodeSourceMap:n})}}}]); 2//# sourceMappingURL=7200-d585654aad81a697.js.map
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.