PageSourceSearch

https://sbmrj.org.br/d91e669118e103c21b24c3950c34a41ecdff1d2e-5d1a2bb6981e29c30488.js

js sbmrj.org.br collected 2026-10-02 13:37:03 UTC 7,305 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksbmrj_gatsby=self.webpackChunksbmrj_gatsby||[]).push([[7962],{721:function(e,t,n){n.d(t,{i:function(){return F}});var r=n(6540),o=n(4785),s=n(8601),i=n(5238);const c=new WeakMap;let l;function f({target:e,contentRect:t,borderBoxSize:n}){var r;null===(r=c.get(e))||void 0===r||r.forEach((r=>{r({target:e,contentSize:t,get size(){return function(e,t){if(t){const{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 a(e){e.forEach(f)}function u(e,t){l||"undefined"!=typeof ResizeObserver&&(l=new ResizeObserver(a));const n=function(e,t,n){var r;if("string"==typeof e){let o=document;t&&((0,i.V)(Boolean(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=c.get(e);n||(n=new Set,c.set(e,n)),n.add(t),null==l||l.observe(e)})),()=>{n.forEach((e=>{const n=c.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==l||l.unobserve(e)}))}}const g=new Set;let d;function h(e){return g.add(e),d||(d=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};g.forEach((e=>e(t)))},window.addEventListener("resize",d)),()=>
1{g.delete(e),!g.size&&d&&(d=void 0)}}var p=n(7170),v=n(7177);const m=50,y=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),w={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function E(e,t,n,r){const o=n[t],{length:s,position:i}=w[t],c=o.current,l=n.time;o.current=e["scroll"+i],o.scrollLength=e["scroll"+s]-e["client"+s],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=(0,p.q)(0,o.scrollLength,o.current);const f=r-l;o.velocity=f>m?0:(0,v.f)(o.current-c,f)}const x={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},L={start:0,center:.5,end:1};function b(e,t,n=0){let r=0;if(void 0!==L[e]&&(e=L[e]),"string"==typeof e){const 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}const S=[0,0];function W(e,t,n,r){let o=Array.isArray(e)?e:S,s=0,i=0;return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,L[e]?e:"0"]),s=b(o[0],n,r),i=b(o[1],t),s-i}var O=n(1486),z=n(3490);const B={x:0,y:0};function k(e,t,n){let{offset:r=x.All}=n;const{target:o=e,axis:s="y"}=n,i="y"===s?"height":"width",c=o!==e?function(e,t){const n={x:0,y:0};let 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){const e=r.getBoundingClientRect();r=r.parentElement;const t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else{if(!(r instanceof SVGGraphicsElement))break;{const{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let o=null,s=r.parentNode;for(;!o;)"svg"===s.tagName&&(o=s),s=r.parentNode;r=o}}return n}(o,e):B,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:function(e){return"getBBox"in e&&"svg"!==e.tagName?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}(o),f={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let a=!t[s].interpolate;const u=r.length;for(let g=0;g<u;g++){const e=W(r[g],f[i],l[i],c[s]);a||e===t[s].interpolatorOffsets[g]||(a=!0),t[s].offset[g]=e}a&&(t[s].interpolate=(0,O.G)(t[s].offset,(0,z.Z)(r)),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=t[s].interpolate(t[s].current)}function H(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=>{!function(e,t,n){E(e,"x",t,n),E(e,"y",t,n),t.time=n}(e,n,t),(r.offset||r.target)&&k(e,n,r)},notify:()=>t(n)}}var G=n(7745);const P=new WeakMap,A=new WeakMap,C=new WeakMap,M=e=>e===document.documentElement?window:e;function N(e,{container:t=document.documentElement,...n}={}){let r=C.get(t);r||(r=new Set,C.set(t,r));const o=y(),s=H(t,e,o,n);if(r.add(s),!P.has(t)){const e=()=>{for(const e of r)e.measure()},n=()=>{for(const e of r)e.update(G.uv.timestamp)},o=()=>{for(const e of r)e.notify()},s=()=>{G.Gt.read(e,!1,!0),G.Gt.read(n,!1,!0),G.Gt.update(o,!1,!0)};P.set(t,s);const l=M(t);window.addEventListener("resize",s,{passive:!0}),t!==document.documentElement&&A.set(t,(c=s,"function"==typeof(i=t)?h(i):u(i,c))),l.addEventListener("scroll",s,{passive:!0})}var i,c;const l=P.get(t);return G.Gt.read(l,!1,!0),()=>{var e;(0,G.WG)(l);const n=C.get(t);if(!n)return;if(n.delete(s),n.size)return;const r=P.get(t);P.delete(t),r&&(M(t).removeEventListener("scroll",r),null===(e=A.get(t))||void 0===e||e(),window.removeEventListener("resize",r))}}var Q=n(5128);function R(e,t){(0,i.$)(Boolean(!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.`)}const X=()=>({scrollX:(0,o.OQ)(0),scrollY:(0,o.OQ)(0),scrollXProgress:(0,o.OQ)(0),scrollYProgress:(0,o.OQ)(0)});var Y=n(9896),T=n(5446);var V=n(3949),q=n(4833);function j(e,t={}){const{isStatic:n}=(0,r.useContext)(T.Q),i=(0,r.useRef)(null),c=function(e){const t=(0,s.M)((()=>(0,o.OQ)(e))),{isStatic:n}=(0,r.useContext)(T.Q);if(n){const[,n]=(0,r.useState)(e);(0,r.useEffect)((()=>t.on("change",n)),[])}return t}((0,Y.S)(e)?e.get():e),l=()=>{i.current&&i.current.stop()};return(0,r.useInsertionEffect)((()=>c.attach(((e,r)=>{if(n)return r(e);if(l(),i.current=(0,V.L)({keyframes:[c.get(),e],velocity:c.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:r}),!G.uv.isProcessing){const e=performance.now()-G.uv.timestamp;e<30&&(i.current.time=(0,q.X)(e))}return c.get()}),l)),[JSON.stringify(t)]),(0,Q.E)((()=>
1{if((0,Y.S)(e))return e.on("change",(e=>c.set(parseFloat(e))))}),[c]),c}var D=n(5163);function F(e){const{scrollYProgress:t}=function({container:e,target:t,layoutEffect:n=!0,...o}={}){const i=(0,s.M)(X);return(n?Q.E:r.useEffect)((()=>(R("target",t),R("container",e),N((({x:e,y:t})=>{i.scrollX.set(e.current),i.scrollXProgress.set(e.progress),i.scrollY.set(t.current),i.scrollYProgress.set(t.progress)}),{...o,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0}))),[e,t,JSON.stringify(o.offset)]),i}(),n=j(t,{stiffness:100,damping:30,restDelta:.001});return r.createElement(D.P.div,{style:{position:"fixed",top:"50px",left:"0",right:"0",height:"10px",backgroundColor:e.bgColor||"green",transformOrigin:"0%",zIndex:"99",scaleX:n}})}}}]);
2//# sourceMappingURL=d91e669118e103c21b24c3950c34a41ecdff1d2e-5d1a2bb6981e29c30488.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.