PageSourceSearch

https://viso.haus/_next/static/chunks/481.b20f8af1337ea349.js

js viso.haus collected 2026-10-05 02:12:03 UTC 30,529 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[481],{16463:function(e,t,r){"use strict";var n=r(71169);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},58064:function(e,t,r){"use strict";Object.defineProperty(t,"$",{enumerable:!0,get:function(){return i}});let n=r(74590);function i(e){let{createServerReference:t}=r(6671);return t(e,n.callServer)}},25566:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l=[],a=!1,c=-1;function f(){a&&n&&(a=!1,n.length?l=n.concat(l):c=-1,l.length&&d())}function d(){if(!a){var e=u(f);a=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||a||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},11726:function(e,t,r){"use strict";r.d(t,{BB:function(){return c},F5:function(){return v},Mx:function(){return b},U2:function(){return a},eT:function(){return p},jR:function(){return h},lV:function(){return function e(t,r,n=[]){return null!==t&&Array.isArray(t)?t.map((t,i)=>{if(w(t)){let o=t._key;if("string"==typeof o)return e(t,r,n.concat({_key:o,_index:i}))}return e(t,r,n.concat(i))}):w(t)?Object.fromEntries(Object.entries(t).map(([t,i])=>[t,e(i,r,n.concat(t))])):r(t,n)}},tZ:function(){return E},vs:function(){return y}});let n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/_key\s*==\s*['"](.*)['"]/,o=/^\d*:\d*$/;function s(e){return"number"==typeof e||"string"==typeof e&&/^\[\d+\]$/.test(e)}function u(e){return"string"==typeof e?i.test(e.trim()):"object"==typeof e&&"_key"in e}function l(e){if("string"==typeof e&&o.test(e))return!0;if(!Array.isArray(e)||2!==e.length)return!1;let[t,r]=e;return("number"==typeof t||""===t)&&("number"==typeof r||""===r)}function a(e,t,r){let n="string"==typeof t?f(t):t;if(!Array.isArray(n))throw Error("Path must be an array or a string");let i=e;for(let e=0;e<n.length;e++){let t=n[e];if(s(t)){if(!Array.isArray(i))return r;i=i[t]}if(u(t)){if(!Array.isArray(i))return r;i=i.find(e=>e._key===t._key)}if("string"==typeof t&&(i="object"==typeof i&&null!==i?i[t]:void 0),typeof i>"u")return r}return i}function c(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let n=typeof t;if("number"===n)return`${e}[${t}]`;if("string"===n)return`${e}${0===r?"":"."}${t}`;if(u(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,n]=t;return`${e}[${r}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function f(e){if("string"!=typeof e)throw Error("Path is not a string");let t=e.match(n);if(!t)throw Error("Invalid path string");return t.map(d)}function d(e){return s(e)?Number(e.replace(/[^\d]/g,"")):u(e)?{_key:e.match(i)[1]}:l(e)?function(e){let[t,r]=e.split(":").map(e=>""===e?e:Number(e));return[t,r]}(e):e}var p=Object.freeze({__proto__:null,fromString:f,get:a,isIndexSegment:s,isIndexTuple:l,isKeySegment:u,reKeySegment:i,toString:c});let h="drafts.";function y(e){return e.startsWith(h)?e.slice(h.length):e}let m={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},g={"\\f":"\f","\\n":`
2`,"\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function v(e){let t;let r=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;for(;null!==(t=n.exec(e));){if(void 0!==t[1]){let e=t[1].replace(/\\(\\|f|n|r|t|')/g,e=>g[e]);r.push(e);continue}if(void 0!==t[2]){r.push(parseInt(t[2],10));continue}if(void 0!==t[3]){let e=t[3].replace(/\\(\\')/g,e=>g[e]);r.push({_key:e,_index:-1});continue}}return r}function b(e,t){var r;if(!t?.mappings)return;let n=(r=e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)}),`$${r.map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>m[e])}']`:"number"==typeof e?`[${e}
2]`:""!==e._key?`[?(@._key=='${e._key.replace(/['\\]/g,e=>m[e])}')]`:`[${e._index}]`).join("")}`);if(void 0!==t.mappings[n])return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};let i=Object.entries(t.mappings).filter(([e])=>n.startsWith(e)).sort(([e],[t])=>t.length-e.length);if(0==i.length)return;let[o,s]=i[0],u=n.substring(o.length);return{mapping:s,matchedPath:o,pathSuffix:u}}function w(e){return"object"==typeof e&&null!==e}function E(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:o,path:s,projectId:u,dataset:l}=e;if(!t)throw Error("baseUrl is required");if(!s)throw Error("path is required");if(!i)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let a="default"===r?void 0:r,f="default"===n?void 0:n,d=y(i),p=Array.isArray(s)?c(s.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})):s,m=new URLSearchParams({baseUrl:t,id:d,type:o,path:p});a&&m.set("workspace",a),f&&m.set("tool",f),u&&m.set("projectId",u),l&&m.set("dataset",l),i.startsWith(h)&&m.set("isDraft","");let g=["/"===t?"":t];a&&g.push(a);let v=["mode=presentation",`id=${d}`,`type=${o}`,`path=${encodeURIComponent(p)}`];return f&&v.push(`tool=${f}`),g.push("intent","edit",`${v.join(";")}?${m}`),g.join("/")}},31213:function(e,t,r){"use strict";r.d(t,{c:function(){return M},v:function(){return m}});for(var n=r(49174),i={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},o={0:8203,1:8204,2:8205,3:65279},s=[,,,,].fill(String.fromCodePoint(o[0])).join(""),u=Object.fromEntries(Object.entries(o).map(e=>e.reverse())),l=Object.fromEntries(Object.entries(i).map(e=>e.reverse())),a=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,c=RegExp(`[${a}]{4,}`,"gu"),f=[],d=0;d<256;++d)f.push((d+256).toString(16).slice(1));var p,h=new Uint8Array(16),y={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function m(e,t,r){if(y.randomUUID&&!t&&!e)return y.randomUUID();var n=(e=e||{}).random||(e.rng||function(){if(!p&&!(p="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(h)})();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(f[e[t+0]]+f[e[t+1]]+f[e[t+2]]+f[e[t+3]]+"-"+f[e[t+4]]+f[e[t+5]]+"-"+f[e[t+6]]+f[e[t+7]]+"-"+f[e[t+8]]+f[e[t+9]]+"-"+f[e[t+10]]+f[e[t+11]]+f[e[t+12]]+f[e[t+13]]+f[e[t+14]]+f[e[t+15]]).toLowerCase()}(n)}function g(e){let t=e.getBoundingClientRect();return{x:t.x+scrollX,y:t.y+scrollY,w:t.width,h:t.height}}function v(e,t){return{x:e.x+t,y:e.y+t,w:e.w-2*t,h:e.h-2*t}}function b(e,t){return e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h}function w(e,t){let r=e.x-t.x,n=e.y-t.y;return Math.sqrt(r*r+n*n)}function E(e,t){let r,n;let i={x:e.x1,y:e.y1};if(t.some(e=>(function(e,t){let r=e.x>=t.x&&e.x<=t.x+t.w,n=e.y>=t.y&&e.y<=t.y+t.h;return r&&n})(i,v(e,Math.min(e.w,e.h)/10))))return null;for(let o of t){let t=function(e,t){let r=[{x1:t.x,y1:t.y,x2:t.x+t.w,y2:t.y},{x1:t.x+t.w,y1:t.y,x2:t.x+t.w,y2:t.y+t.h},{x1:t.x+t.w,y1:t.y+t.h,x2:t.x,y2:t.y+t.h},{x1:t.x,y1:t.y+t.h,x2:t.x,y2:t.y}],n=[];for(let t=0;t<r.length;t++){let i=function(e,t){let{x1:r,y1:n,x2:i,y2:o}=e,{x1:s,y1:u,x2:l,y2:a}=t;if(r===i&&n===o||s===l&&u===a)return!1;let c=(a-u)*(i-r)-(l-s)*(o-n);if(0===c)return!1;let f=((l-s)*(n-u)-(a-u)*(r-s))/c,d=((i-r)*(n-u)-(o-n)*(r-s))/c;return!(f<0)&&!(f>1)&&!(d<0)&&!(d>1)&&{x:r+f*(i-r),y:n+f*(o-n)}}(e,r[t]);if(i){let e=!1;for(let t=0;t<n.length;t++)n[t].x===i.x&&n[t].y===i.y&&(e=!0);e||n.push(i)}}return 0!==n.length&&n.sort((t,r)=>w(t,{x:e.x1,y:e.y1})-w(r,{x:e.x1,y:e.y1}))}(e,v(o,Math.min(o.w,o.h)/10));if(t){let e=t[0];r?w(i,e)<w(i,r)&&(r=e,n=o):(r=e,n=o)}}return n||null}function x(e,t){return t.find(t=>b(g(t.elements.measureElement),e))?.sanity}function k(e,t,r){return Object.values(t).every(e=>null===e)?null:"horizontal"===r?{left:t.left?{rect:t.left,sanity:x(t.left,e)}:null,right:t.right?{rect:t.right,sanity:x(t.right,e)}:null}:{top:t.top?{rect:t.top,sanity:x(t.top,e)}:null,bottom:t.bottom?{rect:t.bottom,sanity:x(t.bottom,e)}:null}}function $(e){return{x:e.clientX,y:e.clientY+window.scrollY}}function _(e,t=!1){return c.lastIndex=0,c.test(e)?function(e,t=!1){try{let r=function(e){let t=e.match(c);if(t)return function(e,t=!1){let r=Array.from(e);if(r.length%2==0){if(r.length%4||!e.startsWith(s))return function(e,t){var r;let n=[];for(let t=.5*e.length;t--;){let r=`${l[e[2*t].codePointAt(0)]}${l[e[2*t+1].codePointAt(0)]}`;n.unshift(String.fromCharCode(parseInt(r,16)))}let i=[],o=[n.join("")],s=10;for(;o.length;){let e=o.shift();try{if(i.push(JSON.parse(e)),t)break}catch(n){if(!s--)throw n;let t=+(null==(r=n.message.match(/\sposition\s(\d+)$/))?void 0:r[1]);if(!t)throw n;o.unshift(e.substring(0,t),e.substring(t))}}return i}(r,t)}
2else throw Error("Encoded data has invalid length");let n=[];for(let e=.25*r.length;e--;){let t=r.slice(4*e,4*e+4).map(e=>u[e.codePointAt(0)]).join("");n.unshift(String.fromCharCode(parseInt(t,4)))}if(t){n.shift();let e=n.indexOf("\0");return -1===e&&(e=n.length),[JSON.parse(n.slice(0,e).join(""))]}return n.join("").split("\0").filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]}(e);return r&&"sanity.io"===r.origin?(t&&(r.href=r.href?.replace(".alt","")),r):null}catch(t){return console.error("Failed to decode stega for string: ",e,"with the original error: ",t),null}}(e,t):null}let j=e=>e.nodeType===Node.ELEMENT_NODE,P=e=>"IMG"===e.tagName,L=e=>"TIME"===e.tagName,S=e=>"SVG"===e.tagName.toUpperCase();function T(e){return"path"in e}function N(e){let t=e.lastIndexOf(".");return e.substring(t,e.length).includes("[")}function O(e){if(!N(e))return null;let t=e.split(".");return t[t.length-1]=t[t.length-1].replace(/\[.*?\]/g,"[]"),t.join(".")}let I=e=>e instanceof HTMLElement||e instanceof SVGElement;function M({handler:e,overlayElement:t,preventDefault:r}){let i=!1,o=new Map,s=new WeakMap,u=new Set,l=new WeakMap,a,c,f,d=[],p=()=>d[d.length-1];function h(e,t){e.removeEventListener("click",t.click,{capture:!0}),e.removeEventListener("mousemove",t.mousemove,{capture:!0}),e.removeEventListener("mousedown",t.mousedown,{capture:!0}),e.removeEventListener("mouseenter",t.mouseenter),e.removeEventListener("mouseleave",t.mouseleave)}function y({id:t,elements:r,handlers:n}){let{element:i,measureElement:o}=r;i.addEventListener("click",n.click,{capture:!0}),i.addEventListener("mousemove",n.mousemove,{once:!0,capture:!0}),i.addEventListener("mousedown",n.mousedown,{capture:!0}),a.observe(o),e({type:"element/activate",id:t})}function x({id:t,elements:r,handlers:n}){let{element:i,measureElement:o}=r;h(i,n),a.unobserve(o),d=d.filter(e=>e!==i),e({type:"element/deactivate",id:t})}function M(i){for(let a of function e(t){let r=[];function i(e,t){let i=(0,n.N)(t);if(!i)return;let o=function e(t){let{display:r}=window.getComputedStyle(t);if("inline"!==r)return t;let n=t.parentElement;return n?e(n):null}(e);o&&r.push({elements:{element:e,measureElement:o},sanity:i})}if(t)for(let n of t.childNodes){let{nodeType:t,parentElement:o,textContent:s}=n;if(j(n)&&void 0!==n.dataset?.sanityEditTarget){let t=e(n).map(({sanity:e})=>e);if(!t.map(e=>T(e)).every((e,t,r)=>e===r[0]))continue;let i=function(e){if(!e.length||!e.map(e=>T(e)).every((e,t,r)=>e===r[0]))return;if(!T(e[0]))return e[0];let t=e.filter(T),r=e[0],n=["projectId","dataset","id","baseUrl","workspace","tool"];for(let e=1;e<t.length;e++){let i=t[e];if(n.some(e=>i[e]!==r?.[e])){r=void 0;break}r.path=function(e,t){let r=e.split("."),n=t.split("."),i=Math.min(r.length,n.length);return r=r.slice(0,i).reverse(),n=n.slice(0,i).reverse(),r.reduce((e,t,r)=>t===n[r]?[...e,t]:[],[]).reverse().join(".")}(r.path,i.path)}return r}(t);
2i&&r.push({elements:{element:n,measureElement:n},sanity:i})}else if(t===Node.TEXT_NODE&&o&&s){let e=_(s);if(!e)continue;i(o,e)}else if(j(n)){if("SCRIPT"===n.tagName||"sanity-visual-editing"===n.id)continue;if(n.dataset?.sanity)i(n,n.dataset.sanity);else if(n.dataset?.sanityEditInfo)i(n,n.dataset.sanityEditInfo);else{if(P(n)){let e=_(n.alt,!0);if(!e)continue;i(n,e);continue}if(L(n)){let e=_(n.dateTime,!0);if(!e)continue;i(n,e)}else if(S(n)){if(!n.ariaLabel)continue;let e=_(n.ariaLabel,!0);if(!e)continue;i(n,e)}}r.push(...e(n))}}return r}(i)){let{element:n}=a.elements;s.has(n)?function({elements:t,sanity:r}){let{element:n}=t,i=s.get(n);i&&(s.set(n,{...i,sanity:r}),e({type:"element/update",id:i.id,rect:g(n),sanity:r}))}(a):function({elements:n,sanity:i}){let{element:a,measureElement:f}=n,h={click(t){let n=t.target;if(a===p()&&a.contains(n)){r&&(t.preventDefault(),t.stopPropagation());let n=s.get(a)?.sanity;n&&e({type:"element/click",id:x,sanity:n})}},mousedown(t){if(t.preventDefault(),t.currentTarget!==d.at(-1)||a.getAttribute("data-sanity-disable-drag"))return;let r=s.get(a)?.sanity;if(!r||!T(r)||!N(r.path))return;let n=[...u].reduce((e,t)=>{var n;let i=s.get(t),o=t.getAttribute("data-sanity-disable-drag");return i&&!o&&T(i.sanity)&&(n=i.sanity,!(!N(r.path)||!N(n.path))&&O(r.path)===O(n.path))&&e.push(i),e},[]);n.length<=1||function(e,t,r,n){if(0!==e.button)return;let i=r.map(e=>g(e.elements.measureElement)),o=i.some(e=>i.filter(t=>!b(e,t)).some(t=>e.y===t.y))?"horizontal":"vertical",s=null,u=$(e),l=!1,a=e=>{let a=$(e);if(4>Math.abs(w(a,u)))return;l||(n({type:"overlay/dragStart",skeleton:function(e,t){let r=g(t),n=[...t.querySelectorAll(":where(h1, h2, h3, h4, p, a, img, span, button):not(:has(*))")],i=$(e),o=n.map(e=>{let t=v(g(e),2);return{x:t.x-r.x,y:t.y-r.y,w:t.w,h:t.h,tagName:e.tagName}});return{offsetX:r.x-i.x,offsetY:r.y-i.y,w:r.w,h:r.h,childRects:o}}(e,t),flow:o}),l=!0),n({type:"overlay/dragUpdateCursorPosition",x:a.x,y:a.y});let c=function(e,t,r){if("horizontal"===r){let r={x1:e.x,y1:e.y,x2:e.x-1e8,y2:e.y},n={x1:e.x,y1:e.y,x2:e.x+1e8,y2:e.y};return{left:E(r,t),right:E(n,t)}}{let r={x1:e.x,y1:e.y,x2:e.x,y2:e.y-1e8},n={x1:e.x,y1:e.y,x2:e.x,y2:e.y+1e8};return{top:E(r,t),bottom:E(n,t)}}}(a,i,o);JSON.stringify(s)!==JSON.stringify(c)&&n({type:"overlay/dragUpdateInsertPosition",insertPosition:k(r,s=c,o)})},c=()=>{n({type:"overlay/dragEnd",insertPosition:s?k(r,s,o):null}),window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",c)};window.addEventListener("mousemove",a),window.addEventListener("mouseup",c)}(t,a,n,e)},mousemove(e){h.mouseenter(e);let t=e.currentTarget;t&&(t.addEventListener("mouseenter",h.mouseenter),t.addEventListener("mouseleave",h.mouseleave))},mouseenter(){document.querySelector("vercel-live-feedback")&&a.closest("[data-vercel-edit-info]")||a.closest("[data-vercel-edit-target]")||(d.push(a),e({type:"element/mouseenter",id:x,rect:g(a)}))},mouseleave(r){function n(){d.pop();let t=p();if(e({type:"element/mouseleave",id:x}),t){let r=s.get(t);r&&e({type:"element/mouseenter",id:r.id,rect:g(t)})}}let{relatedTarget:i}=r;if(I(i)&&t.contains(i)){let e=()=>{n(),i.removeEventListener("mouseleave",e)};i.addEventListener("mouseleave",e)}else n()}},x=m(),_={id:x,elements:n,sanity:i,handlers:h};u.add(a),l.set(f,a),o.set(x,a),s.set(a,_),c?.observe(a),e({type:"element/register",id:x,rect:g(a),sanity:i}),y(_)}(a)}}function A(t){let r=s.get(t);if(r){let{id:n,handlers:i}=r;h(t,i),a.unobserve(t),s.delete(t),u.delete(t),o.delete(n),e({type:"element/unregister",id:n})}}function C(t){let r=s.get(t);r&&e({type:"element/updateRect",id:r.id,rect:g(t)})}function R(e){if(i)for(let t of e){let{target:e}=t,r=I(e)&&s.get(e);r&&(t.isIntersecting?y(r):x(r))}}function U(){d=[],e({type:"overlay/blur"})}function W(){for(let e of u)C(e)}function D(e){let{target:t}=e;if(t!==window.document&&I(t))for(let e of u)t.contains(e)&&C(e)}function H(){i||(c=new IntersectionObserver(R,{threshold:.3}),u.forEach(e=>c.observe(e)),e({type:"overlay/activate"}),i=!0)}function z(){i&&(c?.disconnect(),u.forEach(e=>{let t=s.get(e);t&&x(t)}),e({type:"overlay/deactivate"}),i=!1)}return window.document.fonts.ready.then(()=>{for(let e of u)C(e)}),window.addEventListener("click",U),window.addEventListener("resize",W),window.addEventListener("scroll",D,{capture:!0,passive:!0}),a=new ResizeObserver(function(e){for(let t of e){let e=t.target;if(I(e)){let t=l.get(e);if(!t)return;C(t)}}}
2),(f=new MutationObserver(function(e){let r=!1;for(let n of e){let{target:e,type:i}=n,o="characterData"===i?e.parentElement:e;o===t||t.contains(o)||(r=!0,I(o)&&M({childNodes:[o]}))}if(r)for(let e of u)e.isConnected||A(e)})).observe(document.body,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),M(document.body),H(),{activate:H,deactivate:z,destroy:function(){window.removeEventListener("click",U),window.removeEventListener("resize",W),window.removeEventListener("scroll",D),f.disconnect(),a.disconnect(),u.forEach(e=>{A(e)}),o.clear(),u.clear(),d=[],z()}}}},49174:function(e,t,r){"use strict";r.d(t,{N:function(){return _},b:function(){return y},c:function(){return L},j:function(){return b},p:function(){return P}});var n,i,o,s,u=r(11726);function l(e){return{lang:e?.lang??n?.lang,message:e?.message,abortEarly:e?.abortEarly??n?.abortEarly,abortPipeEarly:e?.abortPipeEarly??n?.abortPipeEarly,skipPipe:e?.skipPipe}}function a(e,t,r,n,u){var l,a,c,f;let d;let p=u&&"input"in u?u.input:r.value,h=u?.expected??e.expects,y=u?.received??("object"==(d=typeof p)&&(d=(p&&Object.getPrototypeOf(p)?.constructor?.name)??"null"),"string"===d?`"${p}"`:"number"===d||"bigint"===d||"boolean"===d?`${p}`:d),m={kind:e.kind,type:e.type,input:p,expected:h,received:y,message:`Invalid ${t}: ${h?`Expected ${h} but r`:"R"}eceived ${y}`,requirement:e.requirement,path:u?.path,issues:u?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly,skipPipe:n.skipPipe},g="schema"===e.kind,v=e.message??(l=e.reference,a=m.lang,s?.get(l)?.get(a))??(g?(c=m.lang,o?.get(c)):null)??n.message??(f=m.lang,i?.get(f));v&&(m.message="function"==typeof v?v(m):v),g&&(r.typed=!1),r.issues?r.issues.push(m):r.issues=[m]}var c=class extends Error{issues;constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};function f(e,t){return{kind:"schema",type:"object",reference:f,expects:"Object",async:!1,entries:e,message:t,_run(e,t){let r=e.value;if(r&&"object"==typeof r)for(let n in e.typed=!0,e.value={},this.entries){let i=r[n],o=this.entries[n]._run({typed:!1,value:i},t);if(o.issues){let s={type:"object",origin:"value",input:r,key:n,value:i};for(let t of o.issues)t.path?t.path.unshift(s):t.path=[s],e.issues?.push(t);if(e.issues||(e.issues=o.issues),t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),(void 0!==o.value||n in r)&&(e.value[n]=o.value)}else a(this,"type",e,t);return e}}}function d(e,...t){let r={kind:"schema",type:"optional",reference:d,expects:`${e.expects} | undefined`,async:!1,wrapped:e,_run(e,t){return void 0===e.value&&("default"in this&&(e.value="function"==typeof this.default?this.default(e,t):this.default),void 0===e.value)?(e.typed=!0,e):this.wrapped._run(e,t)}};return 0 in t&&(r.default=t[0]),r}function p(e){return{kind:"schema",type:"string",reference:p,expects:"string",async:!1,message:e,_run(e,t){return"string"==typeof e.value?e.typed=!0:a(this,"type",e,t),e}}}function h(e,t,r){let n=e._run({typed:!1,value:t},l(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}function y(e){let t="";for(let r of e)"string"!=typeof r?"number"!=typeof r?null!==r&&Array.isArray(r)?(t&&(t+=":"),t+=`${r.join(",")}}`):r._key&&(t&&(t+=":"),t+=`${r._key}`):(t&&(t+=":"),t+=`${r}`):(t&&(t+="."),t+=r);return t}let m=/^([A-Za-z]+):([0-9]+)$/,g=/^([A-Za-z]+):([0-9]+),([0-9]+)$/,v=/^([A-Za-z]+):([a-z0-9]+)$/,b="drafts.",w=function(...e){return{...e[0],pipe:e,_run(t,r){for(let n=0;n<e.length;n++){t=e[n]._run(t,r);let i=e[n+1];if(r.skipPipe||t.issues&&(r.abortEarly||r.abortPipeEarly||i?.kind==="schema"||i?.kind==="transformation")){t.typed=!1;break}}return t}}}(p(),function e(t,r){return{kind:"validation",type:"min_length",reference:e,async:!1,expects:`>=${t}`,requirement:t,message:r,_run(e,t){return e.typed&&e.value.length<this.requirement&&a(this,"length",e,t,{received:`${e.value.length}`}),e}}}(1)),E=d(w),x=f({baseUrl:w,dataset:E,id:w,path:w,projectId:E,tool:E,type:E,workspace:E,isDraft:d(p())}),k=f({origin:w,href:w,data:d(function e(t,r,n){return{kind:"schema",type:"record",reference:e,expects:"Object",async:!1,key:t,value:r,message:n,_run(e,t){let r=e.value;if(r&&"object"==typeof r){for(let n in e.typed=!0,e.value={},r)if("__proto__"!==n&&"prototype"!==n&&"constructor"!==n){let i=r[n],o=this.key._run({typed:!1,value:n},t);
2if(o.issues){let s={type:"record",origin:"key",input:r,key:n,value:i};for(let t of o.issues)t.path=[s],e.issues?.push(t);if(e.issues||(e.issues=o.issues),t.abortEarly){e.typed=!1;break}}let s=this.value._run({typed:!1,value:i},t);if(s.issues){let o={type:"record",origin:"value",input:r,key:n,value:i};for(let t of s.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||(e.issues=s.issues),t.abortEarly){e.typed=!1;break}}o.typed&&s.typed||(e.typed=!1),o.typed&&(e.value[o.value]=s.value)}}else a(this,"type",e,t);return e}}}(p(),function e(){return{kind:"schema",type:"unknown",reference:e,expects:"unknown",async:!1,_run:e=>(e.typed=!0,e)}}()))});function $(e){let t=h(x,e);if(t.success)return t.output;let r=h(k,e);if(r.success)try{let e=new URL(r.output.href,typeof document>"u"?"https://example.com":location.origin);return e.searchParams.size>0?function(e,t,r){let n=e._run({typed:!1,value:t},l(void 0));if(n.issues)throw new c(n.issues);return n.value}(x,Object.fromEntries(e.searchParams.entries())):r.output}catch(e){return console.error("Failed to parse sanity node",e),r.output}}function _(e){if("object"==typeof e&&null!==e)return $(e);try{return $(JSON.parse(e))}catch{return function(e){let t=e.split(";").reduce((e,t)=>{let[r,n]=t.split("=");if(!r||t.includes("=")&&!n)return e;switch(r){case"id":e.id=n;break;case"type":e.type=n;break;case"path":e.path=u.eT.toString(function(e){let t=[];for(let r of e.split(".")){let e=m.exec(r);if(e){t.push(e[1],Number(e[2]));continue}let n=g.exec(r);if(n){t.push(n[1],[Number(n[2]),Number(n[3])]);continue}let i=v.exec(r);i?t.push(i[1],{_key:i[2]}):t.push(r)}return t}(n));break;case"base":e.baseUrl=decodeURIComponent(n);break;case"tool":e.tool=n;break;case"workspace":e.workspace=n;break;case"projectId":e.projectId=n;break;case"dataset":e.dataset=n;break;case"isDraft":e.isDraft=""}return e},{});if(!x._run({typed:!1,value:t},{abortEarly:!0}).issues)return t}(e)}}let j={alt:"altKey",ctrl:"ctrlKey",mod:"u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"metaKey":"ctrlKey",shift:"shiftKey"};function P(e,t){return e.every(e=>j[e]?t[j[e]]:t.key===e.toUpperCase())}function L(e){return"Alt"===e.key}},89802:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r(57437),i=r(60913),o=r(16463);r(74590);var s=(0,r(58064).$)("6d69f692d78a8846fad1639385fd46ffd3739cd7"),u=r(2265),l=r(54887);function a(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}function c(e,t){if(!function(e,t){if("string"!=typeof e)return!1;let{pathname:r}=a(e);return r===t||r.startsWith(`${t}/`)}(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}let f=(e,t)=>{let{pathname:r,query:n,hash:i}=a(e);return t?r.endsWith("/")?`${r}${n}${i}`:`${r}/${n}${i}`:`${r.replace(/\/$/,"")||"/"}${n}${i}`};function d(e){let{basePath:t="",refresh:r,trailingSlash:d=!1,zIndex:p}=e,h=(0,o.useRouter)(),y=(0,u.useRef)(h),[m,g]=(0,u.useState)();(0,u.useEffect)(()=>{y.current=h},[h]);let v=(0,u.useMemo)(()=>({subscribe:e=>(g(()=>e),()=>g(void 0)),update:e=>{switch(e.type){case"push":return y.current.push(c(e.url,t));case"pop":return y.current.back();case"replace":return y.current.replace(c(e.url,t));default:throw Error(`Unknown update type: ${e.type}`)}}}),[t]),b=(0,o.usePathname)(),w=(0,o.useSearchParams)();(0,u.useEffect)(()=>{m&&m({type:"push",url:f(function(e,t){if(!e.startsWith("/")||!t)return e;if("/"===e&&t)return t;let{pathname:r,query:n,hash:i}=a(e);return`${t}${r}${n}${i}`}(`${b}${w?.size?`?${w}`:""}`,t),d)})},[t,m,b,w,d]);let E=(0,u.useCallback)(e=>{if(r)return r(e);switch(e.source){case"manual":return e.livePreviewEnabled?(console.debug("Live preview is setup, calling router.refresh() to refresh the server components without refetching cached data"),y.current.refresh(),Promise.resolve()):(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),s());case"mutation":return e.livePreviewEnabled?(console.debug("Live preview is setup, mutation is skipped assuming its handled by the live preview"),!1):(console.debug("No loaders in live mode detected, or preview kit setup, revalidating root layout"),s());default:throw Error("Unknown refresh source",{cause:e})}},[r]),[x,k]=(0,u.useState)(null);return(0,u.useEffect)(()=>{let e=document.createElement("div");return e.id="sanity-visual-editing",document.documentElement.appendChild(e),k(e),()=>{k(null),document.documentElement.contains(e)&&document.documentElement.removeChild(e)}},[]),x?(0,l.createPortal)((0,n.jsx)(i.Q,{history:v,refresh:E,zIndex:p}),x):null}},49998:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>
2(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,o=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return i(r.overflowY,t)||i(r.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},s=(e,t,r,n,i,o,s,u)=>o<e&&s>t||o>e&&s<t?0:o<=e&&u<=r||s>=t&&u>=r?o-e-n:s>t&&u<r||o<e&&u>r?s-t+i:0,u=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>{var r,i,l,a;if("undefined"==typeof document)return[];let{scrollMode:c,block:f,inline:d,boundary:p,skipOverflowHiddenElements:h}=t,y="function"==typeof p?p:e=>e!==p;if(!n(e))throw TypeError("Invalid target");let m=document.scrollingElement||document.documentElement,g=[],v=e;for(;n(v)&&y(v);){if((v=u(v))===m){g.push(v);break}null!=v&&v===document.body&&o(v)&&!o(document.documentElement)||null!=v&&o(v,h)&&g.push(v)}let b=null!=(i=null==(r=window.visualViewport)?void 0:r.width)?i:innerWidth,w=null!=(a=null==(l=window.visualViewport)?void 0:l.height)?a:innerHeight,{scrollX:E,scrollY:x}=window,{height:k,width:$,top:_,right:j,bottom:P,left:L}=e.getBoundingClientRect(),{top:S,right:T,bottom:N,left:O}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),I="start"===f||"nearest"===f?_-S:"end"===f?P+N:_+k/2-S+N,M="center"===d?L+$/2-O+T:"end"===d?j+T:L-O,A=[];for(let e=0;e<g.length;e++){let t=g[e],{height:r,width:n,top:i,right:o,bottom:u,left:l}=t.getBoundingClientRect();if("if-needed"===c&&_>=0&&L>=0&&P<=w&&j<=b&&_>=i&&P<=u&&L>=l&&j<=o)break;let a=getComputedStyle(t),p=parseInt(a.borderLeftWidth,10),h=parseInt(a.borderTopWidth,10),y=parseInt(a.borderRightWidth,10),v=parseInt(a.borderBottomWidth,10),S=0,T=0,N="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-y:0,O="offsetHeight"in t?t.offsetHeight-t.clientHeight-h-v:0,C="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(m===t)S="start"===f?I:"end"===f?I-w:"nearest"===f?s(x,x+w,w,h,v,x+I,x+I+k,k):I-w/2,T="start"===d?M:"center"===d?M-b/2:"end"===d?M-b:s(E,E+b,b,p,y,E+M,E+M+$,$),S=Math.max(0,S+x),T=Math.max(0,T+E);else{S="start"===f?I-i-h:"end"===f?I-u+v+O:"nearest"===f?s(i,u,r,h,v+O,I,I+k,k):I-(i+r/2)+O/2,T="start"===d?M-l-p:"center"===d?M-(l+n/2)+N/2:"end"===d?M-o+y+N:s(l,o,n,p,y+N,M,M+$,$);let{scrollLeft:e,scrollTop:a}=t;S=0===R?0:Math.max(0,Math.min(a+S/R,t.scrollHeight-r/R+O)),T=0===C?0:Math.max(0,Math.min(e+T/C,t.scrollWidth-n/C+N)),I+=a-S,M+=e-T}A.push({el:t,top:S,left:T})}return A},a=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};function c(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(l(e,t));let n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:i,top:o,left:s}of l(e,a(t))){let e=o-r.top+r.bottom,t=s-r.left+r.right;i.scroll({top:e,left:t,behavior:n})}}}}]);

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.