ig.rizaldy.club/_next/static/chunks/pages/_app-0fef0fe7e2905d02.js
2024-02-02 04:50:47 +00:00

1 line
12 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{3454:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(7663)},1118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(1937)}])},7205:function(e,t,r){"use strict";r.d(t,{O_:function(){return u},Zv:function(){return n},a_:function(){return l},oZ:function(){return o}});let n=40,o={PHOTOS:"photos",VIDEOS:"videos"},l="MMXXIV",u=27},9720:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return l},ACTION_RESTORE:function(){return u},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return f}});let o="refresh",l="navigate",u="restore",a="server-patch",i="prefetch",c="fast-refresh",s="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},245:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(9082),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1032:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let n=r(8754)._(r(7294)),o=r(4879),l=r(1572),u=r(8373),a=r(6221),i=r(5933),c=r(4167),s=r(8874),f=r(6342),d=r(245),p=r(6015),h=r(9720),m=new Set;function b(e,t,r,n,o,u){if(u||(0,l.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let o=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(m.has(o))return;m.add(o)}Promise.resolve(u?e.prefetch(t,o):e.prefetch(t,r,n)).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let y=n.default.forwardRef(function(e,t){let r,u;let{href:m,as:y,children:x,prefetch:g=null,passHref:_,replace:j,shallow:T,scroll:O,locale:E,onClick:k,onMouseEnter:M,onTouchStart:N,legacyBehavior:C=!1,...w}=e;r=x,C&&("string"==typeof r||"number"==typeof r)&&(r=n.default.createElement("a",null,r));let I=n.default.useContext(c.RouterContext),P=n.default.useContext(s.AppRouterContext),A=null!=I?I:P,R=!I,L=!1!==g,S=null===g?h.PrefetchKind.AUTO:h.PrefetchKind.FULL,{href:U,as:z}=n.default.useMemo(()=>{if(!I){let e=v(m);return{href:e,as:y?v(y):e}}let[e,t]=(0,o.resolveHref)(I,m,!0);return{href:e,as:y?(0,o.resolveHref)(I,y):t||e}},[I,m,y]),D=n.default.useRef(U),H=n.default.useRef(z);C&&(u=n.default.Children.only(r));let K=C?u&&"object"==typeof u&&u.ref:t,[V,B,F]=(0,f.useIntersection)({rootMargin:"200px"}),X=n.default.useCallback(e=>{(H.current!==z||D.current!==U)&&(F(),H.current=z,D.current=U),V(e),K&&("function"==typeof K?K(e):"object"==typeof K&&(K.current=e))},[z,K,U,F,V]);n.default.useEffect(()=>{A&&B&&L&&b(A,U,z,{locale:E},{kind:S},R)},[z,U,B,E,L,null==I?void 0:I.locale,A,R,S]);let G={ref:X,onClick(e){C||"function"!=typeof k||k(e),C&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(e),A&&!e.defaultPrevented&&function(e,t,r,o,u,a,i,c,s){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!s&&!(0,l.isLocalURL)(r)))return;e.preventDefault();let d=()=>{let e=null==i||i;"beforePopState"in t?t[u?"replace":"push"](r,o,{shallow:a,locale:c,scroll:e}):t[u?"replace":"push"](o||r,{scroll:e})};s?n.default.startTransition(d):d()}(e,A,U,z,j,T,O,E,R)},onMouseEnter(e){C||"function"!=typeof M||M(e),C&&u.props&&"function"==typeof u.props.onMouseEnter&&u.props.onMouseEnter(e),A&&(L||!R)&&b(A,U,z,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:S},R)},onTouchStart(e){C||"function"!=typeof N||N(e),C&&u.props&&"function"==typeof u.props.onTouchStart&&u.props.onTouchStart(e),A&&(L||!R)&&b(A,U,z,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:S},R)}};if((0,a.isAbsoluteUrl)(z))G.href=z;else if(!C||_||"a"===u.type&&!("href"in u.props)){let e=void 0!==E?E:null==I?void 0:I.locale,t=(null==I?void 0:I.isLocaleDomain)&&(0,d.getDomainLocale)(z,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales);G.href=t||(0,p.addBasePath)((0,i.addLocale)(z,e,null==I?void 0:I.defaultLocale))}return C?n.default.cloneElement(u,G):n.default.createElement("a",{...w,...G},r)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return i}});let n=r(7294),o=r(6231),l="function"==typeof IntersectionObserver,u=new Map,a=[];function i(e){let{rootRef:t,rootMargin:r,disabled:i}=e,c=i||!l,[s,f]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(l){if(c||s)return;let e=d.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:o,elements:l}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=u.get(n)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},a.push(r),u.set(r,t),t}(r);return l.set(e,t),o.observe(e),function(){if(l.delete(e),o.unobserve(e),0===l.size){o.disconnect(),u.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!s){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,r,t,s,d.current]),[p,s,(0,n.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1937:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var n=r(5893);r(7133);var o=r(4298),l=r.n(o),u=r(1664),a=r.n(u),i=e=>{let{name:t,logo:r}=e;return(0,n.jsx)("nav",{className:"flex py-2 border-b dark:border-neutral-800",children:(0,n.jsx)("div",{className:"w-3/12 md:w-7/12 md:mx-auto",children:(0,n.jsx)("div",{className:"md:w-2/12",children:(0,n.jsx)(a(),{href:"/",children:r?(0,n.jsx)("img",{alt:t,src:r,className:"w-full"}):(0,n.jsx)("h1",{className:"font-bold leading-relaxed tracking-tight text-2xl text-neutral-800",children:t})})})})})},c=r(7205),s=e=>{let{license:t,links:r,repo:o,commitID:l}=e;return(0,n.jsx)("footer",{className:"flex py-4 text-center md:mt-10 mt-5",children:(0,n.jsxs)("div",{className:"md:w-7/12 mx-auto font-semibold",children:[(0,n.jsxs)("div",{className:"md:text-sm mb-10",children:[r.map(e=>{let{url:t,label:r}=e;return(0,n.jsx)(a(),{href:t,className:"md:mx-4 mb-1 md:inline block",children:r},t+r)}),(0,n.jsx)(a(),{href:o,className:"mx-4",children:"Source Code"})]}),(0,n.jsx)("div",{className:"text-sm font-normal text-neutral-400",children:(0,n.jsxs)("p",{children:["\xa9 ",c.a_," ",(0,n.jsx)(a(),{className:"text-neutral-600 dark:text-neutral-200",target:"_blank",rel:"noopener noreferer",href:"https://github.com/faultables",children:"faultables"})," ","• All media is licensed under"," ",(0,n.jsx)(a(),{className:"underline",href:t.url,children:t.name})," ","unless stated otherwise •"," ",(0,n.jsx)(a(),{className:"text-neutral-600 dark:text-neutral-200",target:"_blank",rel:"noopener noreferer",href:"".concat(o,"/commit/").concat(l),children:l})]})})]})})},f=r(356),d=r(3454);let p=e=>{let{children:t}=e;return(0,n.jsx)("div",{className:"flex items-center justify-between w-full my-5",children:(0,n.jsx)("div",{className:"lg:w-7/12 mx-auto",children:t})})};var h=e=>{let{Component:t,pageProps:r}=e;return(0,n.jsxs)("div",{className:"bg-white dark:bg-black dark:text-neutral-200",children:[(0,n.jsx)(i,{name:f.mx.I,logo:f.mx.j}),(0,n.jsx)(p,{children:(0,n.jsx)(t,{...r})}),(0,n.jsx)(s,{repo:f.Mv.O9,links:f.Mv.Ok,license:f.Mv.Vl,commitID:"431156a"}),d.env.UMAMI_ENABLED?(0,n.jsx)(l(),{strategy:"beforeInteractive",src:d.env.UMAMI_SCRIPT_URL,"data-website-id":d.env.UMAMI_WEBSITE_ID}):null]})}},7133:function(){},7663:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function l(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===l||!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:l}catch(e){t=l}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var i=[],c=!1,s=-1;function f(){c&&n&&(c=!1,n.length?i=n.concat(i):s=-1,i.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=i.length;t;){for(n=i,i=[];++s<t;)n&&n[s].run();s=-1,t=i.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!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(){}o.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];i.push(new p(e,t)),1!==i.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var l=r[e]={exports:{}},u=!0;try{t[e](l,l.exports,n),u=!1}finally{u&&delete r[e]}return l.exports}n.ab="//";var o=n(229);e.exports=o}()},1664:function(e,t,r){e.exports=r(1032)},4298:function(e,t,r){e.exports=r(3773)},356:function(e){"use strict";e.exports=JSON.parse('{"mx":{"I":"not instagram™","j":"https://s3.rizaldy.club/0x0/d43840c5ee4ec66a3bee3c6e2.png"},"N5":{"avatar":"https://s3.rizaldy.club/0x0/IMG_6279.JPG","username":"faultables","follow_url":"https://edgy.social/@rizaldy","message_url":"mailto:rizaldy@duck.com","display_name":"rizaldy","about":"SRE, DevOps, and everything in between","link":"rizaldy.club"},"Mv":{"O9":"https://github.com/faultables/ig.rizaldy.club","Ok":[{"label":"About","url":"/static/about"},{"label":"Blog","url":"https://rizaldy.club"},{"label":"Mastodon","url":"https://edgy.social/@rizaldy"},{"label":"Bluesky","url":"https://bsky.app/profile/rizaldy.club"}],"Vl":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"}}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(1118),t(2937)}),_N_E=e.O()}]);