PageSourceSearch

https://www.sergehillproject.co.uk/_next/static/chunks/136.e1f3b3d4944f1c6c.js

js sergehillproject.co.uk collected 2026-10-04 13:27:47 UTC 22,847 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[136],{82500:function(n,e,t){"use strict";t.d(e,{n8:function(){return o},uy:function(){return c}});const r={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 o(n,e,t="auto"){return!0===t||"auto"===t&&(function(n){return Boolean(Date.parse(n))}(n)||function(n){try{new URL(n)}catch{return!1}return!0}(n))?n:`${n}${function(n){const e=JSON.stringify(n);return Array.from(e).map((n=>{const t=n.charCodeAt(0);if(t>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${n} (${t})`);return Array.from(t.toString(16).padStart(2,"0")).map((n=>String.fromCodePoint(r[n]))).join("")})).join("")}(e)}`}Object.fromEntries(Object.entries(r).map((n=>n.reverse())));const i=`${Object.values(r).map((n=>`\\u{${n.toString(16)}}`)).join("")}`,u=new RegExp(`(?:[${i}]{2})+`,"gu");function c(n){var e;return{cleaned:n.replace(u,""),encoded:(null===(e=n.match(u))||void 0===e?void 0:e[0])||""}}},37288:function(n,e,t){"use strict";function r(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];const o=n.length-1;return n.slice(0,o).reduce(((n,e,r)=>n+e+t[r]),"")+n[o]}t.d(e,{Z:function(){return r}})},8146:function(n){var e,t,r=Function.prototype,o=Object.prototype,i=r.toString,u=o.hasOwnProperty,c=i.call(Object),s=o.toString,a=(e=Object.getPrototypeOf,t=Object,function(n){return e(t(n))});n.exports=function(n){if(!function(n){return!!n&&"object"==typeof n}(n)||"[object Object]"!=s.call(n)||function(n){var e=!1;if(null!=n&&"function"!=typeof n.toString)try{e=!!(n+"")}catch(t){}return e}(n))return!1;var e=a(n);if(null===e)return!0;var t=u.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&i.call(t)==c}},17136:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return k}});var r=t(85893),o=t(34364),i=(t(93134),t(53584)),u=t(8146),c="Invariant failed";var s=t(82500),a=t(41083),l=t(34155);function f(n){const e=n.replace(/\/$/,"");return(n,t)=>"".concat(e,"/intent/edit/id=").concat(n._id,";path=").concat(function(n){const e=Array.isArray(n)?n:(0,a.P5)(n);return encodeURIComponent(e.map(((n,e)=>"number"===typeof n?"[".concat(n,"]"):e>0?".".concat(n):n)).join(""))}(t))}const p=n=>{let{path:e}=n;const t=e.at(-1);return("slug"!==e.at(-2)||"current"!==t)&&(("string"!==typeof t||!t.startsWith("_"))&&(("number"!==typeof t||"marks"!==e.at(-2)||"number"!==typeof e.at(-3)||"children"!==e.at(-4)||"number"!==typeof e.at(-5))&&(("href"!==t||"number"!==typeof e.at(-2)||"markDefs"!==e.at(-3)||"number"!==typeof e.at(-4))&&("string"!==typeof t||"number"!==typeof e.at(-2)||"style"!==t&&"listItem"!==t))))};function d(n){return n.map(((n,e)=>"number"===typeof n?"[".concat(n,"]"):e>0?".".concat(n):n)).join("")}function g(n){let{studioUrl:e,encodeSourceMapAtPath:t,logger:r}=n;const o=function(n,e,t){const r=f(n),o={encoded:[],skipped:[]},i=(n,i,u)=>!1===("function"===typeof e?e({path:u,filterDefault:p}):p({path:u,filterDefault:p}))?(t&&o.skipped.push({path:d(u),value:"".concat(n.slice(0,20)).concat(n.length>20?"...":""),length:n.length}),n):(t&&o.encoded.push({path:d(u),value:"".concat(n.slice(0,20)).concat(n.length>20?"...":""),length:n.length}),(0,s.n8)(n,{origin:"sanity.io",href:r(i,u)},"auto"));return{report:o,transcode:i,walk:n=>(o.encoded.length=0,o.skipped.length=0,(0,a.cv)(n,((n,e,t)=>i(n,e,(0,a.P5)(t)))))}}(e,t,r);return{onResponse:n=>{var e,t,i,c,s,a,l;if(!function(n){return"object"===typeof n&&null!==n}(n))return n;if(Array.isArray(n.body)||"string"===typeof n.body||u(n.body)){if(!function(n){return"object"===typeof n&&null!==n&&"resultSourceMap"in n}(n.body))return r&&(null==(e=null==r?void 0:r.error)||e.call(r,"[@sanity/preview-kit]: Missing Content Source Map from response body",n.body)),n;const u=o.walk(n.body);if(r){const n=o.report.skipped.length,e=o.report.encoded.length;if((n||e)&&(null==(t=(null==r?void 0:r.groupCollapsed)||r.log)||t("[@sanity/preview-kit]: Stega encoding source map into result"),null==(i=r.log)||i.call(r,"[@sanity/preview-kit]: Paths encoded: ".concat(o.report.encoded.length,", skipped: ").concat(o.report.skipped.length))),o.report.encoded.length>0&&(null==(c=null==r?void 0:r.log)||c.call(r,"[@sanity/preview-kit]: Table of encoded paths"),null==(s=(null==r?void 0:r.table)||r.log)||s(o.report.encoded)),o.report.skipped.length>0){const n=new Set;for(const{path:e}of o.report.skipped)n.add(e.replace(/\[\d+\]/g,"[]"));null==(a=null==r?void 0:r.log)||a.call(r,"[@sanity/preview-kit]: List of skipped paths",[...n.values()])}(n||e)&&(null==(l=null==r?void 0:r.groupEnd)||l.call(r))}return{...n,body:u}}return n}}}function y(n){let{studioUrl:e,encodeSourceMapAtPath:t,logger:r}=n;!function(n,e){if(!n)throw new Error(c)}(e);const o=i.Lx.clone();function u(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return e({maxRedirects:0,...n})}return o.use(g({studioUrl:e,encodeSourceMapAtPath:t,logger:r})),u.defaultRequester=o,u}const h=n=>{var e;const{encodeSourceMap:t=m(),encodeSourceMapAtPath:r,studioUrl:o=v(),logger:u,...c}=n;let s=!0===t;if("auto"===t&&(s=function(){try{return"preview"===(void 0).VERCEL_ENV}catch{}try{return"preview"===l.env.VERCEL_ENV}catch{}return!1}()),"string"===typeof t&&"auto"!==t)throw new Error("Invalid value for encodeSourceMap: ".concat(t,". Did you mean 'auto'?"));try{if(s&&!1!==n.resultSourceMap){null==(e=null==u?void 0:u.debug)||e.call(u,"[@sanity/preview-kit]: Creating source map enabled client");const n=y({encodeSourceMapAtPath:r,studioUrl:o,logger:u});return new i.aN(n,{...c,resultSourceMap:!0})}}catch(a){console.error("[@sanity/preview-kit]: Error creating client",a,"falling back to non-embedded sourcemap mode")}return(0,i.eI)(c)};function m(){try{return"true"===(void 0).SANITY_SOURCE_MAP||"auto"}catch{}try{return"true"===l.env.SANITY_SOURCE_MAP||"auto"}catch{}return"auto"}function v(){try{return(void 0).SANITY_STUDIO_URL}catch{}try{return l.env.SANITY_STUDIO_URL}catch{}}var _=t(34155);function b(n){const e=function(n){let{studioUrl:e=_.env.NEXT_PUBLIC_SANITY_STUDIO_URL,encodeSourceMap:t=!!e&&"auto"}=n;return h({...n,studioUrl:e,encodeSourceMap:t})}({projectId:o.Sx,dataset:o.gx,apiVersion:o.tW,useCdn:o.hH,perspective:"published"});if(n){if(!n.token)throw new Error("You must provide a token to preview drafts");return e.withConfig({token:n.token,useCdn:!1,ignoreBrowserTokenWarning:!0,perspective:"previewDrafts"})}return e}var S=t(74356),w=t(67294);function k(n){let{children:e,token:t}=n;const o=(0,w.useMemo)((()=>b({token:t})),[t]);return(0,r.jsx)(S.Ji,{client:o,logger:console,children:e})}},93134:function(n,e,t){"use strict";t.d(e,{GL:function(){return Z},_R:function(){return C},cg:function(){return T},ci:function(){return P},j8:function(){return L},of:function(){return A},sT:function(){return R}});var r=t(82729),o=t(37288);function i(){const n=(0,r._)(['\n  alt,\n  body,\n  asset,\n  "id": asset._ref,\n  "preview": asset->metadata.lqip,\n  "aspectRatio": asset->metadata.dimensions.aspectRatio,\n  hotspot { x, y },\n  "textColor": asset->metadata.palette.dominant.title,\n  whiteText,\n  crop {\n    bottom,\n    left,\n    right,\n    top,\n  }\n']);return i=function(){return n},n}function u(){const n=(0,r._)(["image {","}"]);return u=function(){return n},n}function c(){const n=(0,r._)(["images[] {","}"]);return c=function(){return n},n}function s(){const n=(0,r._)(['\n_type == "emailFormReference" => {\n  title,\n  "slug": "?modal=email&email=" + @.emailForm->slug.current\n},\n_type == "modalDonate" => {\n  title,\n  "slug": "?modal=donate",\n},\n_type == "modalFriend" => {\n  title,\n  "slug": "?modal=friend",\n},\n_type == "modalNewsletter" => {\n  title,\n  "slug": "?modal=newsletter",\n},\n_type in ["linkDonationForm", "donationFormLink"] => {\n  title,\n  url,\n  newWindow\n}\n']);return s=function(){return n},n}function a(){const n=(0,r._)(['\n_id,\n_type,\n_updatedAt,\n"_key": _id,\ntitle,\ndescription,\n',',\n"slug": slug.current,\nbody,\n"categories": [\n  ...categories[]->{\n    _id,\n    _type,\n    title,\n    "slug": slug.current,\n  }\n],\ndefined(recordingLink) =>
1 {\n  "categories": [\n      ...categories[]->{\n      _id,\n      _type,\n      title,\n      "slug": slug.current,\n    },\n    {\n      "_id": \'recordings\',\n      "_type": \'eventCategory\',\n      "title": \'Recordings\',\n      "slug": \'recordings\',\n    }\n  ],\n},\ndate,\ndateTimeString,\nlink,\nlinkTextOverride\n']);return a=function(){return n},n}function l(){const n=(0,r._)(['\n_key,\n_type,\nleadMedia[] {\n  _key,\n  _type,\n  _type == "image" => {\n    ','\n  },\n  _type == "video" => {\n    asset -> {\n      ...\n    }\n  }\n},\ntextItems[] {\n  _key,\n  _type,\n  _type == "textItem" => {\n    title,\n    text,\n  },\n  _type == "internalLink" => {\n    title,\n    "reference": @.reference->{\n      _type,\n      "slug": slug.current,\n    },\n  },\n  _type == "externalLink" => {\n    title,\n    url,\n    newWindow,\n  },\n  ',',\n  _type == "inlineImage" => {\n    ','\n  },\n  _type == "peopleList" => {\n    people[] {\n      _key,\n      _type,\n      name,\n      body,\n      ',',\n      externalLinks,\n    }\n  },\n},\n_type == "eventReference" => {\n  ...@->{\n    ',"\n  }\n}    \n"]);return l=function(){return n},n}function f(){const n=(0,r._)(['\n*[_type == $type && slug.current == $slug][0] {\n  _type,\n  "slug": slug.current\n}\n']);return f=function(){return n},n}function p(){const n=(0,r._)(['\n*[_type == "page"] | order(title asc) {\n  _id,\n  _type,\n  _updatedAt,\n  title,\n  "slug": slug.current,\n  description,\n  image,\n  "priority": seo.priority, \n}\n']);return p=function(){return n},n}function d(){const n=(0,r._)(['\n*[_type == "page" && defined(slug.current)][].slug.current\n']);return d=function(){return n},n}function g(){const n=(0,r._)(['\n*[_type == "page" && slug.current == $slug][0] {\n  _id,\n  title,\n  "slug": slug.current,\n  description,\n  image,\n  pageBuilderBlocks[] {\n    ','\n  },\n  slug.current == "homepage" => {\n    ',",\n    pageBuilderBlocksHomepage[] {\n      ",'\n    },\n  },\n  slug.current == "whats-on" => {\n    featuredEvents[]->{\n      ','\n    },\n    "activeEventCategories": [\n      ...activeEventCategories[]->{\n        _id,\n        _type,\n        title,\n        "slug": slug.current,\n      },\n      {\n        "_id": \'recordings\',\n        "_type": \'eventCategory\',\n        "title": \'Recordings\',\n        "slug": \'recordings\',\n      }\n    ],\n  },\n  "seoTitle": title,\n  "seoDescription": seo.description,\n  "seoImage": seo.image,\n}\n']);return g=function(){return n},n}function y(){const n=(0,r._)(['\n*[_type == "event"] | order(date asc) {\n  ',"\n}\n"]);return y=function(){return n},n}function h(){const n=(0,r._)(['\n*[_type == "event" && defined(slug.current)][].slug.current\n']);return h=function(){return n},n}function m(){const n=(0,r._)(['\n*[_type == "event" && slug.current == $slug][0] {\n  _id,\n  _type,\n  title,\n  ',",\n  bookingLink,\n  recordingLink,\n  location,\n  pageBuilderBlocks[] {\n    ",'\n  },\n  "seoTitle": title,\n  "seoDescription": pt::text(body),\n  "seoImage": image,\n}\n']);return m=function(){return n},n}function v(){const n=(0,r._)(['\n*[_type in ["newsItem", "pressItem"]] | order(date desc) {\n  ',"\n}\n"]);return v=function(){return n},n}function _(){const n=(0,r._)(['\n*[_type == "newsItem" && defined(slug.current)][].slug.current\n']);return _=function(){return n},n}function b(){const n=(0,r._)(['\n*[_type == "newsItem" && slug.current == $slug][0] {\n  _id,\n  _type,\n  title,\n  ',",\n  bookingLink,\n  location,\n  pageBuilderBlocks[] {\n    ",'\n  },\n  "seoTitle": title,\n  "seoDescription": pt::text(body),\n  "seoImage": image,\n}\n']);return b=function(){return n},n}function S(){const n=(0,r._)(['\n*[_type == "plantLibraryBed"] | order(title asc) {\n  _id,\n  _type,\n  _updatedAt,\n  title,\n  "slug": slug.current,\n  file,\n}\n']);return S=function(){return n},n}function w(){const n=(0,r._)(['\n*[_type == "plantLibraryBed" && slug.current == $slug][0] {\n  _id,\n  _type,\n  title,\n  "slug": slug.current,\n  file {\n    ...,\n    asset-> {\n      ...,\n    },\n  },\n}\n']);return w=function(){return n},n}function k(){const n=(0,r._)(['\n*[_type == "plantLibraryBed" && defined(slug.current)][].slug.current\n']);return k=function(){return n},n}function x(){const n=(0,r._)(['*[_type == "settings"][0] {\n  "title": seo.title,\n  "description": seo.description,\n  "image": seo.image,\n  header {\n    navigation[]->{\n      _id,\n      _type,\n      title,\n      "slug": slug.current,\n    }\n  },\n  footer {\n    addressInformation,\n    navigation[] {\n      title,\n      _type,\n      "_id": _key,\n      ',',\n      _type == "linkExternal" => {\n        ...\n      },\n      defined(_ref) => @-> {\n        _id,\n        _type,\n        title,\n        "slug": slug.current,\n      }\n    }\n  },\n  "emailForms": *[_type in ["emailForm"]][] {\n    _type,\n    _id,\n    title,\n    "slug": slug.current,\n    emailTo,\n    formIntro,\n    emailSubjects,\n    sections[]\n  },\n  "thePlantLibrary": *[_type == \'thePlantLibrary\'][0] {\n    ...,\n    plantLibrarySheet {\n      ...,\n      asset-> {\n        ...,\n      },\n    },\n    downloads[] {\n      ...,\n      file {\n        ...,\n        asset-> {\n          ...,\n        },\n      },\n    }\n  }\n}']);return x=function(){return n},n}const j=(0,o.Z)(i()),M=(0,o.Z)(u(),j),O=((0,o.Z)(c(),j),(0,o.Z)(s())),E=(0,o.Z)(a(),M),I=(0,o.Z)(l(),j,O,j,M,E),A=((0,o.Z)(f()),(0,o.Z)(p()),(0,o.Z)(d()),(0,o.Z)(g(),I,M,I,E)),T=(0,o.Z)(y(),E),C=((0,o.Z)(h()),(0,o.Z)(m(),E,I)),L=(0,o.Z)(v(),E),R=((0,o.Z)(_()
1),(0,o.Z)(b(),E,I)),P=((0,o.Z)(S()),(0,o.Z)(w())),Z=((0,o.Z)(k()),(0,o.Z)(x(),O))},69590:function(n){var e="undefined"!==typeof Element,t="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(n,u){if(n===u)return!0;if(n&&u&&"object"==typeof n&&"object"==typeof u){if(n.constructor!==u.constructor)return!1;var c,s,a,l;if(Array.isArray(n)){if((c=n.length)!=u.length)return!1;for(s=c;0!==s--;)if(!i(n[s],u[s]))return!1;return!0}if(t&&n instanceof Map&&u instanceof Map){if(n.size!==u.size)return!1;for(l=n.entries();!(s=l.next()).done;)if(!u.has(s.value[0]))return!1;for(l=n.entries();!(s=l.next()).done;)if(!i(s.value[1],u.get(s.value[0])))return!1;return!0}if(r&&n instanceof Set&&u instanceof Set){if(n.size!==u.size)return!1;for(l=n.entries();!(s=l.next()).done;)if(!u.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(u)){if((c=n.length)!=u.length)return!1;for(s=c;0!==s--;)if(n[s]!==u[s])return!1;return!0}if(n.constructor===RegExp)return n.source===u.source&&n.flags===u.flags;if(n.valueOf!==Object.prototype.valueOf&&"function"===typeof n.valueOf&&"function"===typeof u.valueOf)return n.valueOf()===u.valueOf();if(n.toString!==Object.prototype.toString&&"function"===typeof n.toString&&"function"===typeof u.toString)return n.toString()===u.toString();if((c=(a=Object.keys(n)).length)!==Object.keys(u).length)return!1;for(s=c;0!==s--;)if(!Object.prototype.hasOwnProperty.call(u,a[s]))return!1;if(e&&n instanceof Element)return!1;for(s=c;0!==s--;)if(("_owner"!==a[s]&&"__v"!==a[s]&&"__o"!==a[s]||!n.$$typeof)&&!i(n[a[s]],u[a[s]]))return!1;return!0}return n!==n&&u!==u}n.exports=function(n,e){try{return i(n,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},53771:function(n,e,t){"use strict";var r=t(67294);var o="function"===typeof Object.is?Object.is:function(n,e){return n===e&&(0!==n||1/n===1/e)||n!==n&&e!==e},i=r.useSyncExternalStore,u=r.useRef,c=r.useEffect,s=r.useMemo,a=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(n,e,t,r,l){var f=u(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;
1f=s((function(){function n(n){if(!c){if(c=!0,i=n,n=r(n),void 0!==l&&p.hasValue){var e=p.value;if(l(e,n))return u=e}return u=n}if(e=u,o(i,n))return e;var t=r(n);return void 0!==l&&l(e,t)?e:(i=n,u=t)}var i,u,c=!1,s=void 0===t?null:t;return[function(){return n(e())},null===s?void 0:function(){return n(s())}]}),[e,t,r,l]);var d=i(n,f[0],f[1]);return c((function(){p.hasValue=!0,p.value=d}),[d]),a(d),d}},31103:function(n,e,t){"use strict";n.exports=t(53771)},34329:function(n,e,t){"use strict";t.d(e,{Kq:function(){return c},Ts:function(){return f},iS:function(){return l},nW:function(){return o},pm:function(){return u},tT:function(){return i}});var r=t(67294);function o(n,e){return"".concat(n,"-").concat(JSON.stringify(e))}function i(n){const[e,t]=(0,r.useReducer)((n=>n+1),0),o=(0,r.useRef)(!0),i=(0,r.useCallback)((()=>{o.current&&(0,r.startTransition)((()=>t()))}),[]);(0,r.useEffect)((()=>(o.current=!0,i(),()=>{o.current=!1})),[i]);return[(0,r.useMemo)((()=>e?[...n]:[]),[n,e]),i]}const u=3e3,c="sanity.preview-kit",s=new Map,a=new Map,l=(0,r.createContext)((function(n,e,t){const r=o(e,t);s.set(r,n),a.has(r)||a.set(r,0);return{subscribe:()=>(a.set(r,a.get(r)+1),()=>{a.set(r,a.get(r)-1),0===a.get(r)&&s.delete(r)}),getSnapshot:()=>s.has(r)?s.get(r):n}})),f=(0,r.createContext)(null)},41083:function(n,e,t){"use strict";t.d(e,{Mx:function(){return l},P5:function(){return i},cv:function(){return s},lV:function(){return a}});const r={"\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","'":"\\'","\\":"\\\\"},o={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t","\\'":"'","\\\\":"\\"};function i(n){const e=[],t=/\['(.*?)'\]|\[(\d+)\]/g;let r;for(;null!==(r=t.exec(n));)if(void 0===r[1])void 0===r[2]||e.push(parseInt(r[2],10));else{const n=r[1].replace(/\\(\\|f|n|r|t|')/g,(n=>o[n]));e.push(n)}return e}function u(n){return"object"===typeof n&&null!==n}function c(n){return null!==n&&Array.isArray(n)}function s(n,e){if(!n.resultSourceMap)throw new TypeError("Missing resultSourceMap");return n.result=function(n,e){return a(n.result,((t,r)=>{if("string"!==typeof t)return t;const o=l(r,n.resultSourceMap);if(!o)return t;const[i,,u]=o;if("value"!==i.type)return t;if("documentValue"!==i.source.type)return t;const c=n.resultSourceMap.documents[i.source.document],s=n.resultSourceMap.paths[i.source.path];return e(t,c,s+u)}))}(n,e),n}function a(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return c(n)?n.map(((n,r)=>a(n,e,t.concat(r)))):u(n)?Object.fromEntries(Object.entries(n).map((n=>{let[r,o]=n;return[r,a(o,e,t.concat(r))]}))):e(n,t)}function l(n,e,t){var o;const i="$".concat(n.map((n=>{if("string"===typeof n){const e=n.replace(/[\f\n\r\t'\\]/g,(n=>r[n]));return"['".concat(e,"']")}return"[".concat(n,"]")})).join(""));if(!e.mappings)return void(null==(o=null==t?void 0:t.error)||o.call(t,"Missing resultSourceMap.mappings",{resultSourceMap:e}));if(void 0!==e.mappings[i])return[e.mappings[i],i,""];const u=Object.entries(e.mappings).filter((n=>{let[e]=n;return i.startsWith(e)})).sort(((n,e)=>{let[t]=n,[r]=e;return r.length-t.length}));if(0==u.length)return;const[c,s]=u[0];return[s,c,i.substring(c.length)]}},74356:function(n,e,t){"use strict";t.d(e,{Ji:function(){return d},yR:function(){return s}});var r=t(67294),o=t(69590),i=t(31103),u=t(34329),c=t(85893);function s(n,e,t,c){const{isEqual:s=o}=c||{},f=(0,r.useContext)(u.iS),p=l(t),d=(0,r.useMemo)((()=>f(n,e,p)),[f,n,p,e]),[g]=(0,r.useState)((()=>{if(void 0===n)throw new Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(n))}catch(e){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:n,error:e}),n}})),y=(0,r.useCallback)((()=>g),[g]),h=(0,r.useCallback)((n=>n),[]);
1return[(0,i.useSyncExternalStoreWithSelector)(d.subscribe,d.getSnapshot,y,h,s),a(e,p)]}function a(n,e){const t=(0,r.useContext)(u.Ts),o=(0,r.useMemo)((()=>(0,u.nW)(n,e)),[e,n]);return(0,r.useMemo)((()=>!!Array.isArray(t)&&!t.includes(o)),[o,t])}function l(n){const e=(0,r.useMemo)((()=>JSON.stringify(n||{})),[n]);return(0,r.useMemo)((()=>JSON.parse(e)),[e])}const f=(0,r.lazy)((()=>Promise.all([t.e(702),t.e(699),t.e(986)]).then(t.bind(t,61986)))),p=(0,r.lazy)((()=>t.e(260).then(t.bind(t,14260)))),d=(0,r.memo)((function(n){const{children:e,refreshInterval:t=1e4}=n;if(!n.client)throw new Error("Missing a `client` prop with a configured Sanity client instance");const[o]=(0,r.useState)((()=>n.client.withConfig({requestTagPrefix:n.client.config().requestTagPrefix||u.Kq}))),[i]=(0,r.useState)((()=>n.cache)),[s]=(0,r.useState)((()=>n.logger)),a=(0,r.useMemo)((()=>{var e;return null!=(e=n.turboSourceMap)?e:o.config().resultSourceMap}),[o,n.turboSourceMap]);return a?(0,c.jsx)(r.Suspense,{fallback:e,children:(0,c.jsx)(p,{client:o,logger:s,refreshInterval:t,turboSourceMap:a,children:e})}):(0,c.jsx)(g,{client:o,cache:i,logger:s,refreshInterval:t,children:e})})),g=(0,r.memo)((function(n){var e;const{children:t,refreshInterval:o,client:i,cache:s,logger:a}=n,l=null!=(e=null==s?void 0:s.maxDocuments)?e:u.pm,[f,d]=(0,r.useState)(null),[g,h]=(0,r.useState)(null),[m]=(0,r.useState)((()=>{var n;return null!=(n=null==s?void 0:s.includeTypes)?n:[]}));if(g)throw g;if((0,r.useEffect)((()=>{if(null!==f)return;null==a||a.log("[@sanity/preview-kit]: fetch documents count");const n=new AbortController;return i.fetch(m.length>0?"count(*[_type in $includeTypes])":"count(*)",{includeTypes:m},{filterResponse:!0,signal:n.signal}).then((n=>{null==a||a.log("[@sanity/preview-kit]: documents count",n),d(n)})).catch((n=>{"AbortError"!==n.name&&h(n)})),()=>{n.abort()}}),[i,f,m,a]),null===f)return t;if(o&&f>=l)return(0,c.jsx)(r.Suspense,{fallback:t,children:(0,c.jsx)(p,{client:i,refreshInterval:o,turboSourceMap:!1,logger:a,children:t})});if(f>=l)throw new Error("[@sanity/preview-kit]: You have ".concat(f," documents in your dataset, which is more than the maximum of ").concat(l," documents. Please reduce the number of documents in your dataset or increase the limit."));return(0,c.jsx)(r.Suspense,{fallback:t,children:(0,c.jsx)(y,{...n,children:t})})})),y=(0,r.memo)((function(n){var e;const{children:t,client:o,cache:i,logger:u}=n,{projectId:s,dataset:a,token:l,perspective:p="previewDrafts",requestTagPrefix:d}=(0,r.useMemo)((()=>o.config()),[o]);return(0,c.jsx)(f,{projectId:s,dataset:a,token:l,logger:u,listen:null==(e=null==i?void 0:i.listen)||e,documentLimit:null==i?void 0:i.maxDocuments,overlayDrafts:"previewDrafts"===p,includeTypes:null==i?void 0:i.includeTypes,requestTagPrefix:d,children:t})}))},82729:function(n,e,t){"use strict";function r(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}t.d(e,{_:function(){return r}})}}]);

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.