PageSourceSearch

https://damus.io/_next/static/chunks/330-9eec63b7aae593e1.js

js damus.io collected 2026-10-03 20:14:34 UTC 8,449 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{4297:function(e,t,n){n.d(t,{Z:function(){return createLucideIcon}});var r=n(7294),o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),createLucideIcon=(e,t)=>{let n=(0,r.forwardRef)(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,children:a,...u},f)=>(0,r.createElement)("svg",{ref:f,...o,width:i,height:i,stroke:n,strokeWidth:s?24*Number(l)/Number(i):l,className:`lucide lucide-${toKebabCase(e)}`,...u},[...t.map(([e,t])=>(0,r.createElement)(e,t)),...(Array.isArray(a)?a:[a])||[]]));return n.displayName=`${e}`,n}},9461:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(4297);let o=(0,r.Z)("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]])},4960:function(e,t,n){n.d(t,{c:function(){return useMotionValue}});var r=n(7294),o=n(3234),i=n(6014),l=n(6681);function useMotionValue(e){let t=(0,l.h)(()=>(0,o.BX)(e)),{isStatic:n}=(0,r.useContext)(i._);if(n){let[,n]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",n),[])}return t}},8263:function(e,t,n){let r,o;n.d(t,{v:function(){return useScroll}});var i=n(3234),l=n(6681),s=n(7294),a=n(5487);let u=new WeakMap;function notifyTarget({target:e,contentRect:t,borderBoxSize:n}){var r;null===(r=u.get(e))||void 0===r||r.forEach(r=>{r({target:e,contentSize:t,get size(){return function(e,t){if(t){let{inlineSize:e,blockSize:n}=t[0];return{width:e,height:n}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}(e,n)}})})}function notifyAll(e){e.forEach(notifyTarget)}let f=new Set;var c=n(3967),d=n(3038);let createAxisInfo=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),createScrollInfo=()=>({time:0,x:createAxisInfo(),y:createAxisInfo()}),g={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function updateAxisInfo(e,t,n,r){let o=n[t],{length:i,position:l}=g[t],s=o.current,a=n.time;o.current=e["scroll"+l],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=(0,c.Y)(0,o.scrollLength,o.current);let u=r-a;o.velocity=u>50?0:(0,d.R)(o.current-s,u)}let h={All:[[0,0],[1,1]]},p={start:0,center:.5,end:1};function resolveEdge(e,t,n=0){let r=0;if(void 0!==p[e]&&(e=p[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(r=t*e),n+r}let m=[0,0];var v=n(4606),y=n(533);let w={x:0,y:0};var E=n(2074);let x=new WeakMap,L=new WeakMap,A=new WeakMap,getEventTarget=e=>e===document.documentElement?window:e;var W=n(8868);function refWarning(e,t){(0,a.K)(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let createScrollMotionValues=()=>({scrollX:(0,i.BX)(0),scrollY:(0,i.BX)(0),scrollXProgress:(0,i.BX)(0),scrollYProgress:(0,i.BX)(0)});function useScroll({container:e,target:t,layoutEffect:n=!0,...i}={}){let c=(0,l.h)(createScrollMotionValues),d=n?W.L:s.useEffect;return d(()=>(refWarning("target",t),refWarning("container",e),function(e,{container:t=document.documentElement,...n}={}){let i=A.get(t);i||(i=new Set,A.set(t,i));let l=createScrollInfo(),s=function(e,t,n,r={}){return{measure:()=>(function(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight})(e,r.target,n),update:t=>{updateAxisInfo(e,"x",n,t),updateAxisInfo(e,"y",n,t),n.time=t,(r.offset||r.target)&&function(e,t,n){let{offset:r=h.All}=n,{target:o=e,axis:i="y"}=n,l="y"===i?"height":"width",s=o!==e?function(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let o=null,i=r.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=r.parentNode;r=o}else break;return n}(o,e):w,a=o===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in o&&"svg"!==o.tagName?o.getBBox():{width:o.clientWidth,height:o.clientHeight}
1,u={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let f=!t[i].interpolate,c=r.length;for(let e=0;e<c;e++){let n=function(e,t,n,r){let o=Array.isArray(e)?e:m,i=0;return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,p[e]?e:"0"]),resolveEdge(o[0],n,r)-resolveEdge(o[1],t)}(r[e],u[l],a[l],s[i]);f||n===t[i].interpolatorOffsets[e]||(f=!0),t[i].offset[e]=n}f&&(t[i].interpolate=(0,v.s)(t[i].offset,(0,y.Y)(r)),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=t[i].interpolate(t[i].current)}(e,n,r)},notify:()=>t(n)}}(t,e,l,n);if(i.add(s),!x.has(t)){let measureAll=()=>{for(let e of i)e.measure()},updateAll=()=>{for(let e of i)e.update(E.frameData.timestamp)},notifyAll=()=>{for(let e of i)e.notify()},listener=()=>{E.Wi.read(measureAll,!1,!0),E.Wi.update(updateAll,!1,!0),E.Wi.update(notifyAll,!1,!0)};x.set(t,listener);let e=getEventTarget(t);window.addEventListener("resize",listener,{passive:!0}),t!==document.documentElement&&L.set(t,"function"==typeof t?(f.add(t),o||(o=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};f.forEach(e=>e(t))},window.addEventListener("resize",o)),()=>{f.delete(t),!f.size&&o&&(o=void 0)}):function(e,t){r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(notifyAll));let n=function(e,t,n){var r;if("string"==typeof e){let o=document;t&&((0,a.k)(!!t.current,"Scope provided, but no element detected."),o=t.current),n?(null!==(r=n[e])&&void 0!==r||(n[e]=o.querySelectorAll(e)),e=n[e]):e=o.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}(e);return n.forEach(e=>{let n=u.get(e);n||(n=new Set,u.set(e,n)),n.add(t),null==r||r.observe(e)}),()=>{n.forEach(e=>{let n=u.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==r||r.unobserve(e)})}}(t,listener)),e.addEventListener("scroll",listener,{passive:!0})}let c=x.get(t);return E.Wi.read(c,!1,!0),()=>{var e;(0,E.Pn)(c);let n=A.get(t);if(!n||(n.delete(s),n.size))return;let r=x.get(t);x.delete(t),r&&(getEventTarget(t).removeEventListener("scroll",r),null===(e=L.get(t))||void 0===e||e(),window.removeEventListener("resize",r))}}(({x:e,y:t})=>{c.scrollX.set(e.current),c.scrollXProgress.set(e.progress),c.scrollY.set(t.current),c.scrollYProgress.set(t.progress)},{...i,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0})),[e,t,JSON.stringify(i.offset)]),c}},8828:function(e,t,n){n.d(t,{H:function(){return useTransform}});var r=n(4606);let isCustomValueType=e=>"object"==typeof e&&e.mix,getMixer=e=>isCustomValueType(e)?e.mix:void 0;var o=n(4960),i=n(8868),l=n(2074);function useCombineMotionValues(e,t){let n=(0,o.c)(t()),updateValue=()=>n.set(t());return updateValue(),(0,i.L)(()=>{let scheduleUpdate=()=>l.Wi.update(updateValue,!1,!0),t=e.map(e=>e.on("change",scheduleUpdate));return()=>{t.forEach(e=>e()),(0,l.Pn)(updateValue)}}),n}var s=n(6681),a=n(3234);function useTransform(e,t,n,o){if("function"==typeof e)return function(e){a.S1.current=[],e();let t=useCombineMotionValues(a.S1.current,e);return a.S1.current=void 0,t}(e);let i="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,o=e[0+n],i=e[1+n],l=e[2+n],s=e[3+n],a=(0,r.s)(i,l,{mixer:getMixer(l[0]),...s});return t?a(o):a}(t,n,o);return Array.isArray(e)?useListTransform(e,i):useListTransform([e],([e])=>i(e))}function useListTransform(e,t){let n=(0,s.h)(()=>[]);return useCombineMotionValues(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(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.