PageSourceSearch

https://santafe.edu/assets/6081.3ed647ae.js

js santafe.edu collected 2026-10-01 08:49:44 UTC 7,539 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknew_website=self.webpackChunknew_website||[]).push([[6081],{86081(e,t,n){n.r(t),n.d(t,{default:()=>h});var r=n(80296),o=n(96540),i=n(40961);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=50,f=30,c=12,s=[[2,26],[3,24],[3,26],[4,14],[4,15],[4,22],[4,23],[4,36],[4,37],[5,13],[5,17],[5,22],[5,23],[5,36],[5,37],[6,2],[6,3],[6,12],[6,18],[6,22],[6,23],[7,2],[7,3],[7,12],[7,16],[7,18],[7,19],[7,24],[7,26],[8,12],[8,18],[8,26],[9,13],[9,17],[10,14],[10,15],[15,4],[15,5],[15,6],[15,10],[15,11],[15,12],[17,2],[17,7],[17,9],[17,14],[18,2],[18,7],[18,9],[18,14],[19,2],[19,7],[19,9],[19,14],[20,4],[20,5],[20,6],[20,10],[20,11],[20,12],[22,4],[22,5],[22,6],[22,10],[22,11],[22,12],[23,2],[23,7],[23,9],[23,14],[24,1],[24,2],[24,7],[24,9],[24,14],[25,1],[25,2],[25,7],[25,9],[25,14],[27,4],[27,5],[27,6],[27,10],[27,11],[27,12],[15,41],[15,42],[16,40],[16,41],[17,41]];function d(e,t,n,o){var i,l=Array.from({length:e},function(){return new Array(t).fill(!1)}),u=a(s);try{for(u.s();!(i=u.n()).done;){var f=(0,r.A)(i.value,2),c=f[0],d=f[1],v=n+c,h=o+d;v>=0&&v<e&&h>=0&&h<t&&(l[v][h]=!0)}}catch(e){u.e(e)}finally{u.f()}return l}var v={leftPad:0,rightPad:0,topPad:0,bottomPad:0,extCols:u,extRows:f};function h(){var e=(0,o.useRef)(null),t=(0,o.useRef)(null),n=(0,o.useState)(function(){return d(f,u,0,0)}),l=(0,r.A)(n,2),h=l[0],m=l[1],w=(0,o.useState)(v),g=(0,r.A)(w,2),p=g[0],y=g[1],x=(0,o.useState)(!1),E=(0,r.A)(x,2),b=E[0],P=E[1],A=(0,o.useRef)(!1),C=(0,o.useState)(!1),R=(0,r.A)(C,2),S=R[0],M=R[1],k=(0,o.useState)(null),L=(0,r.A)(k,2),I=L[0],z=L[1],q=(0,o.useState)(null),B=(0,r.A)(q,2),F=B[0],O=B[1];(0,o.useEffect)(function(){if("undefined"!=typeof document){var e=document.querySelector(".abm-story");O(e||document.body)}},[]),(0,o.useEffect)(function(){var t=e.current;if(t&&"undefined"!=typeof IntersectionObserver){var n=new IntersectionObserver(function(e){var t=(0,r.A)(e,1)[0];return M(t.isIntersecting)},{rootMargin:"0px"});return n.observe(t),function(){return n.disconnect()}}},[]),(0,o.useLayoutEffect)(function(){if(S)return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)};function e(){var e=t.current;if(e){var n=e.getBoundingClientRect();if(0!==n.width&&0!==n.height){var r=window.innerWidth,o=window.innerHeight,i=n.width/u,a=n.height/f,l=Math.max(0,Math.ceil(n.left/i)),c=Math.max(0,Math.ceil((r-n.right)/i)),s=Math.max(Math.ceil(n.top/a),Math.ceil((o-n.bottom)/a),0),d=l+30,v=c+30,h=s+30,m=s+30,w=d+u+v,g=h+f+m;y(function(e){return e.extCols===w&&e.extRows===g&&e.topPad===h&&e.leftPad===d?e:{leftPad:d,rightPad:v,topPad:h,bottomPad:m,extCols:w,extRows:g}})}}}},[S]),(0,o.useLayoutEffect)(function(){m(function(e){var t,n,o;if(e.length===p.extRows&&(null===(t=e[0])||void 0===t?void 0:t.length)===p.extCols)return e;var i=Array.from({length:p.extRows},function(){return new Array(p.extCols).fill(!1)}),l=e.length,c=null!==(n=null===(o=e[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0;if(l===f&&c===u)for(var d=0;d<f;d++)for(var v=0;v<u;v++){var h=p.topPad+d,m=p.leftPad+v;h>=0&&h<p.extRows&&m>=0&&m<p.extCols&&(i[h][m]=e[d][v])}else{var w,g=a(s);try{for(g.s();!(w=g.n()).done;){var y=(0,r.A)(w.value,2),x=y[0],E=y[1],b=p.topPad+x,P=p.leftPad+E;b>=0&&b<p.extRows&&P>=0&&P<p.extCols&&(i[b][P]=!0)}}catch(e){g.e(e)}finally{g.f()}}return i})},[p]),(0,o.useEffect)(function(){if(A.current=b,b){var e,t=null,n=0;return e=requestAnimationFrame(function r(o){A.current&&(null!==t&&(n+=o-t)>=100&&(m(function(e){return function(e){var t=e.length,n=e[0].length;return e.map(function(r,o){return o<3||o>=t-3?new Array(n).fill(!1):r.map(function(r,i){if(i<3||i>=n-3)return!1;for(var a=0,l=-1;l<=1;l++)for(var u=-1;u<=1;u++)if(0!==l||0!==u){var f=o+l,c=i+u;f<0||f>=t||c<0||c>=n||e[f][c]&&a++}return r&&2===a||3===a})})}(e)}),(n-=100)>=100&&(n=0)),t=o,e=requestAnimationFrame(r))}),function(){return cancelAnimationFrame(e)}}},[b]),(0,o.useEffect)(function(){if(S)return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e),window.removeEventListener("resize",e)};function e(){var e=t.current;if(e){var n=e.getBoundingClientRect();0!==n.width&&0!==n.height&&z(function(e){return e&&e.left===n.left&&e.top===n.top&&e.width===n.width&&e.height===n.height?e:{left:n.left,top:n.top,width:n.width,height:n.height}})}}},[S]);for(var T=[],j=0;j<f;j++)for(var G=function(){var e,t,n=p.topPad+j,r=p.leftPad+N,i=null!==(e=null===(t=h[n])||void 0===t?void 0:t[r])&&void 0!==e&&e;T.push(o.createElement("rect",{key:"".concat(j,"-").concat(N),x:N*c,y:j*c,width:c,height:c,fill:i?"#1a1a1a":"#f5f5f0",stroke:"#d0d0c8",onClick:function(){m(function(e){return e.map(function(e,t){return t!==n?e:e.map(function(e,t){return t!==r?e:!e})})})},style:{cursor:"pointer"}}))},N=0;N<u;N++)G();var _=I?I.width/u:c,D=I?I.height/f:c,H=Math.min(_,D)/2.8,U=[];
1if(I)for(var W=I.left-p.leftPad*_,$=I.top-p.topPad*D,J=p.topPad+f,K=p.leftPad+u,Q=0;Q<p.extRows;Q++){var V=h[Q];if(V)for(var X=Q>=p.topPad&&Q<J,Y=0;Y<p.extCols;Y++)if(V[Y]&&!(X&&Y>=p.leftPad&&Y<K)){var Z=W+Y*_+_/2,ee=$+Q*D+D/2;U.push(o.createElement("circle",{key:"".concat(Q,"-").concat(Y),cx:Z,cy:ee,r:H,fill:"#ffe39a",filter:"url(#gol-escape-glow)"}))}}var te=null,ne=S&&F&&I?o.createElement("svg",{"aria-hidden":"true",style:{position:"fixed",inset:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:0,opacity:.42,filter:"blur(0.6px)",mixBlendMode:"screen"}},o.createElement("defs",null,o.createElement("filter",{id:"gol-escape-glow",x:"-100%",y:"-100%",width:"300%",height:"300%"},o.createElement("feGaussianBlur",{stdDeviation:4.5,result:"blur"}),o.createElement("feMerge",null,o.createElement("feMergeNode",{in:"blur"}),o.createElement("feMergeNode",{in:"SourceGraphic"})))),U):null;return o.createElement("div",{ref:e},o.createElement("svg",{ref:t,width:600,height:360},T),o.createElement("div",{style:{marginTop:6,fontSize:"0.85em",color:"#f0f0f0"}},"Click any square to seed your own pattern."),o.createElement("div",{style:{marginTop:8}},o.createElement("button",{onClick:function(){return P(function(e){return!e})}},b?"Stop":"Start"),o.createElement("button",{onClick:function(){P(!1),A.current=!1,m(d(p.extRows,p.extCols,p.topPad,p.leftPad))},style:{marginLeft:8}},"Reset"),o.createElement("button",{type:"button",onClick:function(){P(!1),A.current=!1,m(Array.from({length:p.extRows},function(){return new Array(p.extCols).fill(!1)}))},style:{marginLeft:8}},"Clear")),ne&&F?(0,i.createPortal)(ne,F):null,te&&F?(0,i.createPortal)(te,F):null)}}}]);

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.